!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=254)}([function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(16),a=n(71),u=n(4),s=n(38),c=n(22),l=n(29),f=n(12),d=n(15),h=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.whitespaceRegex=/[\s\u202F\u00A0]/g,e.targetIdsToAnimate=[],e.CSRF_PARAM_NAME="csrfToken",e._isIE11=null,e._isEdge=null,e._isInIframe=null,e._eventThrottleId=null,e._eventThrottleCount=0,e.EVENT_THROTTLE_EVALUATION_TIME_MS=1e3,e.UNIQUE_CHILD_CLASSES=["gw-action--inner","gw-action--expand-button"],e}return r(n,t),n.prototype.shallowCompare=function(t,e){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(var n=0;n-1)return!0}return!1},n.prototype.hasUnsavedWork=function(){return this.getUtilityFlag("gw-hasUnsavedWork")},n.prototype.convertIfString=function(t){if("true"===t)return!0;if("false"===t)return!1;if("undefined"!==t)return"null"===t?null:t},n.prototype.resetEventThrottleCounterIfMaxNotHit=function(){l.gwApp.EVENT_THROTTLE_MAX_REQUESTS_PER_SECOND&&this._eventThrottleCount0&&(null===this._eventThrottleId&&(this._eventThrottleId=window.setTimeout(this.resetEventThrottleCounterIfMaxNotHit.bind(this),this.EVENT_THROTTLE_EVALUATION_TIME_MS)),this._eventThrottleCount++>=l.gwApp.EVENT_THROTTLE_MAX_REQUESTS_PER_SECOND)){if(!this.userCorrectlyEnteredPromptForMaxThrottle())throw new Error("Event throttle max count hit and user failed to enter correct prompt. This is likely because a physical key, like the enter key, is stuck or is being held. See gw.globals.gwApp.EVENT_THROTTLE_REQUEST_MAX_PER_SECOND.");this._eventThrottleCount=0,window.clearInterval(this._eventThrottleId),this._eventThrottleId=null}a.gwPerfAnalyzer.startRequest(t),u.gwEvents.disableEvents(),l.gwApp.beforeEachFireEventToServer(),$("#gw-event-source").val(t),$("#gw-root-form").submit(),this.clearEventParam(),a.gwPerfAnalyzer.requestSent()},n.prototype.renderDeferredChildren=function(t,e,n){var r=this;f.gwAjax.ajaxRequest({__renderTarget:t},function(t){if(t.deferredTarget&&(t.childContent||t.isEmptyContent))r.replaceDeferred(t.deferredTarget,t.childContent,t.isEmptyContent),e();else{if(!t.targets)throw new Error("Invalid response to rerenderTarget, missing targets or deferredTarget and childContent: "+t);r.replaceTargets(0,0,1,t.targets,!1),e()}},function(){r.replaceDeferred(t),n()})},n.prototype.showOnDemandElement=function(t,e){var n=this,r="#"+t;this.getDomNode(r)&&(u.gwEvents.disableEvents(),f.gwAjax.ajaxRequest({__onDemandElementId:t},function(i){i.id===t&&(n.replaceTarget(r,i.content,!1),u.gwEvents.addInlineEventListenersToDom(n.getDomNode(r)),u.gwEvents.enableEvents(),e&&e())},function(){u.gwEvents.enableEvents()}))},n.prototype.hideOnDemandElement=function(t){var n=this.getDomNode("#"+t);n&&(this.addClass(n,"gw-hidden"),e.gwUtil.clearInnerHTML(n))},n.prototype.freeze=function(t){return Object.freeze&&Object.freeze(t),t},n.prototype.refresh=function(t){void 0===t&&(t=""),this.setEventParam("pocTrigger",t),this.fireEvent("_refresh_")},n.prototype.unsavedWork=function(t,e){this.setEventParam("unsavedWork",e),this.fireEvent(t)},n.prototype.setEventParam=function(t,e){var n=$("#gw-event-param");n.attr("name",t),n.val(e)},n.prototype.clearEventParam=function(){var t=$("#gw-event-param");t.removeAttr("name"),t.val("")},n.prototype.runAfterPageLoad=function(){e.gwUtil.disableIEMenuShortcut(),l.gwApp.shouldFlash&&(e.gwUtil.forEach(this.targetIdsToAnimate,function(t){s.gwAnimation.addAnimation(t,"focus")}),this.targetIdsToAnimate.length=0),u.gwEvents.possiblyFireQueuedClick()},n.prototype.replaceTarget=function(t,e,n){void 0===n&&(n=!0);var r=this.getDomNode(t);if(!r){if(n)throw new Error(" replaceTarget unable to find valid target from classIdTagOrNode");return window.alert(d.gwDisplayKey.get("Web.Client.Alert.MissingIdForDiff",t)),void console.error("Server response contained an element ID unknown to the client. This can be caused by the same user accessing the application from multiple browser windows or tabs. It can also be the result of manual DOM manipulation.",t)}var i=$(r);this.isEdge()&&i.css("display","none"),i.replaceWith(e)},n.prototype.cleanId=function(t){return"#"+t.replace(/(:|\.|\[|\]|,|=)/g,"\\$1")},n.prototype.replaceTargets=function(t,n,r,i,a){void 0===a&&(a=!0);for(var u,s,c=t+l.gwApp.maxElementsToReplacePerFrame,f=[],d=t;d"):n&&(a.append(n),u.gwEvents.addInlineEventListenersToContainer(i))},n.prototype.hasValue=function(t){return void 0!==t&&null!==t},n.prototype.convertAllWhitespaceToStandard=function(t){return t.replace(this.whitespaceRegex," ")},n.prototype.reloadClient=function(){u.gwEvents.disableEvents(),window.location.reload(!1)},n.prototype.forceFullClientRefresh=function(){u.gwEvents.disableEvents(),window.location.reload(!0)},n.prototype.getDatasetPropOrDefault=function(t,n,r){void 0===r&&(r="");var i=e.gwUtil.getDomNode(t);return i&&e.gwUtil.hasValue(i.dataset)?i.dataset[n]||r:r},n.prototype.getUniqueSelector=function(t){if(t.hasAttribute("id"))return"#"+t.id;if(t.hasAttribute("name"))return'[name="'+t.getAttribute("name")+'"]';if(t.parentElement&&t.parentElement.hasAttribute("id"))for(var e=0,n=this.UNIQUE_CHILD_CLASSES;e ."+r}return null},n.prototype.getElementsByString=function(t,e){if(void 0===e&&(e=document),"string"==typeof t){if("#"===t[0]){var n=e.querySelector(t);return null===n?null:[n]}return"."===t[0]?e.getElementsByClassName(t.slice(1)):e.getElementsByTagName(t)}return[t]},n.prototype.getDomNodes=function(t,e){return void 0===e&&(e=document),t?"string"==typeof t||t instanceof Element?this.getElementsByString(t,e)||[]:t:[]},n.prototype.getDomNode=function(t,e){if(void 0===e&&(e=document),!t)return null;var n=this.getElementsByString(t,e);return null===n||void 0===n?null:n[0]||null},n.prototype.getDomNodeOrThrow=function(t,e){void 0===e&&(e=document);var n=this.getDomNode(t,e);if(!n)throw new Error("Unable to locate a matching node for: "+t);return n},n.prototype.getInputElement=function(t,e){return void 0===e&&(e=document),this.getDomNode(t,e)},n.prototype.getDomNodeByAttr=function(t,e,n){return void 0===n&&(n=document),void 0===e?n.querySelector("["+t+"]"):n.querySelector("["+t+"='"+e+"']")},n.prototype.getDomNodeByName=function(t,e){return void 0===e&&(e=document),this.getDomNodeByAttr("name",t,e)},n.prototype.getDomNodesByName=function(t,e){return void 0===e&&(e=document),this.getDomNodesByAttr("name",t,e)},n.prototype.getDomNodesByAttr=function(t,e,n){return void 0===n&&(n=document),void 0===e?n.querySelectorAll("["+t+"]"):n.querySelectorAll("["+t+"='"+e+"']")},n.prototype.removeNodeIfExists=function(t,n){var r=e.gwUtil.getDomNode(t,n||document);r&&(r.parentNode?r.parentNode.removeChild(r):n&&n.removeChild(r))},n.prototype.removeNode=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},n.prototype.getSelfOrFirstParentWithTag=function(t,e){for(var n=t,r=100;n&&r--;){if(!n||n.classList&&n.classList.contains("gw-body"))return null;if(n.tagName&&n.tagName.toLowerCase()===e)return n;n=n.parentElement}return null},n.prototype.getSelfOrFirstParentWithClass=function(t,e,n){void 0===n&&(n=100);var r=t;e=e.replace(".","");for(var i=n;r&&i--;){if(!r||r.classList&&r.classList.contains("gw-body"))return null;if(r.classList&&r.classList.contains(e))return r;r=r.parentElement}return null},n.prototype.getSelfOrFirstParentWithClassOrThrow=function(t,e){var n=this.getSelfOrFirstParentWithClass(t,e);if(!n)throw new Error("Unable to locate matching node");return n},n.prototype.getSelfOrFirstParentWithAttr=function(t,e,n){void 0===n&&(n=100);for(var r=t,i=n;r&&i--;){if(!r||r.classList&&r.classList.contains("gw-body"))return null;if(r.hasAttribute(e))return r;r=r.parentElement}return null},n.prototype.getSelfOrFirstParentMatchingOneOfSelectors=function(t,e,n){void 0===n&&(n=100),Array.isArray(e)||(e=[e]);for(var r=t,i=n;r&&i--;){if(!r||r.classList&&r.classList.contains("gw-body"))return null;for(var o=0;o=0;u--){var s=a[u];if(s)if(s.classList)for(var c=0;c=0;n--)if(e(t[n],""+n,t,n)===o.GW_BREAKER)return}else if("object"==typeof t)for(var r=Object.keys(t),i=r.length-1;i>=0;i--){var a=r[i];if(e(t[a],a,t,i)===o.GW_BREAKER)return}},n.prototype.createDiv=function(t,e,n,r,i){return this.createEl("div",t,e,n,r,i)},n.prototype.createDivWithId=function(t,e){var n=t.replace("#","");return this.createDiv(null,{id:n},void 0,void 0,e)},n.prototype.createEl=function(t,e,n,r,i,o){var a=this,u=document.createElement(t);return e&&this.addClass(u,e),this.forEach(n,function(t,e){u.setAttribute(e,""+t)}),this.forEach(r,function(t,e){a.hasValue(t)&&u.style.setProperty(e,t)}),i&&(u.textContent=i),this.forEach(o,function(t){return t?u.appendChild(t):null}),u},n.prototype.isIE11=function(){if(null===this._isIE11){var t=!!navigator.userAgent.match(/Trident\/7.0/),e=!!navigator.userAgent.match(/.NET4.0/);this._isIE11=t&&e}return this._isIE11},n.prototype.isEdge=function(){return null===this._isEdge&&(this._isEdge=!!navigator.userAgent.match(/Edge\//)),this._isEdge},n.prototype.isInIframe=function(){if(null===this._isInIframe)try{this._isInIframe=window.self!==window.top}catch(t){this._isInIframe=!0}return this._isInIframe},n.prototype.generateIEShortcutWorkAround=function(){var t=c.gwKeys.getServerKeyboardShortcutCharacters(),e="";return e+=t.map(function(t){return''}).join(""),e+=""},n.prototype.disableIEMenuShortcut=function(){if(this.isIE11()){var t=document.getElementById("gw-ie-shortcut-links"),e=this.generateIEShortcutWorkAround();t?this.replaceTarget(t,e):$(document.body).prepend(e)}},n.prototype.fireCustomEvent=function(t,e){var n;this.isIE11()?(n=document.createEvent("CustomEvent"),n.initCustomEvent(t,!1,!1,e)):n=new CustomEvent(t,{detail:e}),document.body.dispatchEvent(n)},n.prototype.clearInnerHTML=function(t){return t.innerHTML="",t},n.prototype.dangerouslySetInnerHTML=function(t,n){n||e.gwUtil.devlog("Use clearInnerHTML instead of passing an empty string to dangerouslySetInnerHTML"),t.innerHTML=n},n.prototype.addCustomEventListener=function(t,e){document.body.addEventListener(t,e,!1)},n.prototype.removeCustomEventListener=function(t,e){document.body.removeEventListener(t,e,!1)},n.prototype.mapMerge=function(){for(var t=[],n=0;n1?0:t<-1?s:Math.acos(t)}function i(t){return t>1?c:t<-1?-c:Math.asin(t)}function o(t){return(t=E(t/2))*t}n.d(e,"i",function(){return a}),n.d(e,"j",function(){return u}),n.d(e,"o",function(){return s}),n.d(e,"l",function(){return c}),n.d(e,"q",function(){return l}),n.d(e,"w",function(){return f}),n.d(e,"h",function(){return d}),n.d(e,"r",function(){return h}),n.d(e,"a",function(){return p}),n.d(e,"d",function(){return g}),n.d(e,"e",function(){return v}),n.d(e,"g",function(){return y}),n.d(e,"f",function(){return w}),n.d(e,"k",function(){return m}),n.d(e,"n",function(){return b}),n.d(e,"p",function(){return _}),n.d(e,"t",function(){return E}),n.d(e,"s",function(){return O}),n.d(e,"u",function(){return C}),n.d(e,"v",function(){return S}),e.b=r,e.c=i,e.m=o;var a=1e-6,u=1e-12,s=Math.PI,c=s/2,l=s/4,f=2*s,d=180/s,h=s/180,p=Math.abs,g=Math.atan,v=Math.atan2,y=Math.cos,w=Math.ceil,m=Math.exp,b=(Math.floor,Math.log),_=Math.pow,E=Math.sin,O=Math.sign||function(t){return t>0?1:t<0?-1:0},C=Math.sqrt,S=Math.tan},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.availableToGlobal()&&t.register(this)}return t.prototype.availableToGlobal=function(){return!0},t.register=function(t){if(this.registeredSystems.hasOwnProperty(t.getSystemName()))throw new Error("Attempting to register an global system object with a system name that's already been registered: "+t.getSystemName());this.registeredSystems[t.getSystemName()]=t},t.registeredSystems={},t}();e.GwRegisteredSystem=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=function(t){function e(){var n=t.call(this)||this;return n.availableToInitialize()&&e.register(n),n}return r(e,t),e.prototype.availableToInitialize=function(){return!0},e.register=function(t){if(e._initializableSystems.hasOwnProperty(t.getSystemName()))throw new Error("Attempting to register an initialization system object with a system name that's already been registered: "+t.getSystemName());e._initializableSystems[t.getSystemName()]=t},e.initializeSystems=function(t,n){for(var r in e._initializableSystems)if(e._initializableSystems.hasOwnProperty(r)){var i=e._initializableSystems[r];i?i.init(t,n):console.error("Found initializable system key with an invalid system object. This is likely an error in JavaScript. System name: "+r)}},e._initializableSystems={},e}(i.GwRegisteredSystem);e.GwInitializableSystem=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=n(6),a=n(11),u=n(26),s=n(15),c=n(22),l=n(32),f=n(5),d=n(40),h=n(67),p=n(69),g=n(14),v=n(49),y=n(48),w=n(68),m=n(28),b=n(0),_=n(241),E=n(18),O=n(139),C=n(93),S=n(9),A=n(143),T=n(140),x=n(242),D=n(243),P=n(39),I=n(244),M=n(29),j=n(17),N=n(13),F=n(70),k=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.LIMITED_PARENT_SEARCH_STEPS_FOR_RAPID_FIRE_EVENTS=20,n.eventLockCount=1,n._pasteCausedCurrentInputEvent=!1,n._pasteEventRawClipboardText=null,n.queuedInternalClick=null,n.dataPrefix="data-gw-",n.complexAttributeTransforms={"data-gw-menu-hover":{"data-gw-mouseenter":"gwMouse.enter"},"data-gw-helptext":{},"data-gw-autocomplete":{"data-gw-input":"gwInputSystems.inputEventNotifySystems","data-gw-focus":"gwAutocomplete.autocompleteOnFocus","data-gw-key":"gwAutocomplete.downOrEnterKeyPressed key:13|40"},"data-gw-input-mask":{"data-gw-input":"gwInputSystems.inputEventNotifySystems","data-gw-copy":"gwInputSystems.copyEventNotifySystems"},"data-gw-datetime":{"data-gw-input":"gwInputSystems.inputEventNotifySystems","data-gw-copy":"gwInputSystems.copyEventNotifySystems"},"data-gw-restricted-input":{"data-gw-input":"gwInputSystems.inputEventNotifySystems"},"data-gw-email":{"data-gw-input":"gwInputSystems.inputEventNotifySystems"},"data-gw-currency":{"data-gw-input":"gwInputSystems.inputEventNotifySystems","data-gw-copy":"gwInputSystems.copyEventNotifySystems","data-gw-paste":"gwInputSystems.pasteEventNotifySystems"},"data-gw-tooltip":{"data-gw-mouseenter":"gwMouse.enter","data-gw-mousemove":"gwTooltips.move","data-gw-mouseout":"gwTooltips.hide","data-gw-mouseover-enabled":"true","data-gw-mouseout-enabled":"true","data-gw-mousemove-enabled":"true","data-gw-mouseenter-enabled":"true"}},n.actionSuffix="_act",n.eventsEnabled=!1,n.eventsMap={keydown:"key",focusout:"blur",focusin:"focus",pointerover:"mouseenter",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerleave:"mouseout",pointerout:"mouseout",pointercancel:"mouseup",pointerup:"mouseup",mouseover:"mouseenter",mouseenter:"mouseenter",mousedown:"mousedown",mousemove:"mousemove",mouseleave:"mouseout",mouseout:"mouseout",mousecancel:"mouseup",mouseup:"mouseup"},n.disableDefaultBehaviorIfHandled={key:!0,dragover:!0,drop:!0,copy:!0,focusin:!0,focusout:!0},n.lastActiveKeydownKey=null,n.DOUBLE_CLICK_MAX_DELAY_MS=500,n.CLICK_MAX_TIME_BETWEEN_UP_AND_DOWN_MS=1500,n.DRAG_DISTANCE_TO_START_IN_PX=7,n.MOVE_DISTANCE_TO_CANCEL_LONG_PRESS_IN_PX=6,n.LONG_PRESS_TIME_MS=1e3,n.shiftKeyEnabledOnLastPointerUp=!1,n.pointerDownInfo=null,n.possibleFirstClickOfDoubleClick=null,n.longPressTimeoutInfo=null,n.scrollingSincePointerDown=!1,n.inputTypesThatConsumeClick={checkbox:!0,radio:!0},n.handleDeferredChangeEventTimer=-1,n.tempActiveId=null,n.methods={fireEvent:function(t,n,r,i){if(b.gwUtil.hasClass(t,"gw-action--inner")){var o=$(t).parents(".gw-action--outer")[0];b.gwUtil.addClass(o,"gw-event-temp-active"),e.gwEvents.tempActiveId=o.id}e.gwEvents.disableEvents(),setTimeout(function(){e.gwEvents.enableEvents(),b.gwUtil.fireEvent(n.id+n.suffix),i&&i(t,n)},0)},refresh:function(t,e){return b.gwUtil.refresh(e.id)},javascript:function(t,e,n){if(e.javascript){var r=b.gwUtil.createEl("input",null,{type:"button",onclick:e.javascript}),i=b.gwUtil.getSelfOrFirstParentWithAttr(t,"id")||t;r.onclick.call(i,n)}l.gwMenus.closeAllMenus()},noOp:function(){},addClass:function(t,e){return b.gwUtil.addClass(e.target||t,e.add)},removeClass:function(t,e){return b.gwUtil.removeClass(e.target||t,e.remove)},addAndRemoveClass:function(t,e){return b.gwUtil.addAndRemoveClasses(e.target||t,e.add,e.remove)},toggleClass:function(t,e){return b.gwUtil.toggleClass(e.target||t,e.toggle)},toggleSubMenu:function(t,e){return l.gwMenus.toggleSubMenu(e.target||t,e.eventType)},toggleOnDemand:function(t,e){throw new Error("This method no longer does anything after the Typescript conversion. Need to understand where the js went")},resetValue:function(t,e){var n=e.reset;null!==n&&void 0!==n||b.gwUtil.devlog("WARNING: resetValue called for node with no data-gw-reset attribute",t);var r=b.gwUtil.getDomNode(e.target||t);r&&(r.value=n)},unsavedWork:function(t,e){var n=e.id+(e.go?"_go":e.goGroup?"_goGroup":"_discard"),r=e.go||e.discard||e.goGroup;b.gwUtil.unsavedWork(n,r)},logout:function(t,n){e.gwEvents.methods.fireEvent(t,n)}},n}return r(n,t),Object.defineProperty(n.prototype,"BREAK_AUTOCOMPLETE_VALUE",{get:function(){return a.gwPrefPanel.getPrefValueByPrefName("useIllegalAutocompleteValueForInputs")?"off_"+Date.now():"off"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pasteCausedCurrentInputEvent",{get:function(){return this._pasteCausedCurrentInputEvent},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pasteEventRawClipboardText",{get:function(){return this._pasteEventRawClipboardText},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"mouseDown",{get:function(){return!!this.pointerDownInfo},enumerable:!0,configurable:!0}),n.prototype.getSystemName=function(){return"gwEvents"},n.prototype.forceGlobalChangeEvent=function(t,e){if(b.gwUtil.eventLog("Forcing global change event on target:",t),!t.hasAttribute("name"))throw new Error("Attempting to force a global change event by passing an element without a name.");this.onGlobalChangeEvent.call(this,new _.GwForcedEvent(t,"change",e))},n.prototype.forceGlobalClickEvent=function(t){b.gwUtil.eventLog("Forcing global click event on target:",t),this.handleDeferredChangeEvent(t),this.internalClick.call(this,new _.GwForcedEvent(t,"click")),this.doAfterAnyClick(t)},n.prototype.addAdditionalAttributeTransforms=function(t,e){var n;for(var r in e)t.hasAttribute(r)&&(n=e[r],Object.keys(n).forEach(function(e){t.hasAttribute(e)?t.getAttribute(e)!==n[e]&&b.gwUtil.devlog("EVENT METHOD WARNING: "+e+" was defined twice by two different systems: \n1. "+t.getAttribute(e)+"\n2. "+n[e]+". In most cases, this is an error state. But it's possible, in rare cases, that a client modified DOM element (like an autocomplete input) could be using another version of an inline attribute, and the DOM was updated in a way that the system could not undo its modifications."):t.setAttribute(e,n[e])}))},n.prototype.escapeKeyPressed=function(){A.gwAutocomplete.revertAutocompleteInput(),this.closeAllTemporaryUIElements(),h.gwDraggable.forceCancel(),a.gwPrefPanel.cancel(),M.gwApp.closeShortcutHelp()},n.prototype.closeAllTemporaryUIElements=function(){l.gwMenus.closeAllMenus(),S.gwInputSystems.closeOpenInputs(),d.gwTooltips.hide(),C.gwModalClientOverlay.close()},n.prototype.forceFocus=function(t){o.gwFocus.forceFocus(t,!0)},n.prototype.possiblyAddOnBeforeUnloadHandler=function(){var t=this,e=""!==b.gwUtil.getSessionInfo().userId,n=e&&(b.gwUtil.hasUnsavedWork()||a.gwPrefPanel.isDirty()),r=e&&a.gwPrefPanel.getPrefValueByPrefName("alwaysConfirmNavigation");n||r?window.onbeforeunload=function(){return t.onBeforeUnload()}:this.clearBeforeUnload()},n.prototype.clearBeforeUnload=function(){window.onbeforeunload=null},n.prototype.isBeforeUnloadRegistered=function(){return null!==window.onbeforeunload},n.prototype.orderSpecificInit=function(t,e){this.addInlineEventListenersToDom(),t&&(document.body.addEventListener("copy",this.onGlobalCopyEvent.bind(this)),document.body.addEventListener("cut",this.onGlobalCutEvent.bind(this)),document.body.addEventListener("paste",this.onGlobalPasteEvent.bind(this)),document.body.addEventListener("keydown",this.onGlobalKeyEvent.bind(this)),window.addEventListener("focusin",this.onGlobalFocusinEvent.bind(this)),window.addEventListener("focusout",this.onGlobalFocusoutEvent.bind(this)),document.addEventListener("pointerdown",this.onGlobalPointerdownEvent.bind(this)),document.addEventListener("pointerup",this.onGlobalPointerupEvent.bind(this)),document.addEventListener("pointerover",this.onGlobalPointeroverEvent.bind(this)),document.addEventListener("pointermove",this.onGlobalPointermoveEvent.bind(this)),document.addEventListener("pointerout",this.onGlobalPointeroutEvent.bind(this)),document.addEventListener("pointercancel",this.onGlobalPointercancelEvent.bind(this)),window.addEventListener("dragover",this.onGlobalDragoverEvent.bind(this)),window.addEventListener("dragenter",this.onGlobalDragenterEvent.bind(this)),window.addEventListener("dragleave",this.onGlobalDragleaveEvent.bind(this)),window.addEventListener("dragend",this.onGlobalDragendEvent.bind(this)),window.addEventListener("drop",this.onGlobalDropEvent.bind(this)),window.addEventListener("message",this.onGlobalMessageEvent.bind(this),!1),window.addEventListener("scroll",this.onGlobalScrollEvent.bind(this),!0),window.visualViewport.addEventListener("resize",this.onGlobalVisualViewportResize.bind(this))),this.possiblyAddOnBeforeUnloadHandler();var n=b.gwUtil.getDomNode(".gw-body");!n||n.hasAttribute("onchange")&&n.hasAttribute("oninput")||(n.setAttribute("onchange","gw.globals.gwEvents.onGlobalChangeEvent(event)"),n.setAttribute("oninput","gw.globals.gwEvents.onGlobalInputEvent(event)")),this.tempActiveId&&(b.gwUtil.removeClass("#"+this.tempActiveId,"gw-event-temp-active"),this.tempActiveId=null)},n.prototype.onBeforeUnload=function(){return s.gwDisplayKey.get("Web.Client.ConfirmNavigateAway")},n.prototype.getEnabledEventMethodOwnerOrBarrierEl=function(t,e){var n=this.eventsMap[e]||e;return b.gwUtil.getSelfOrFirstParentMatchingOneOfSelectors(t,["[data-gw-event-barrier]","[data-gw-"+n+"]:not([aria-disabled=true]):not(:disabled)","[data-gw-"+n+"][data-gw-"+n+"-enabled]"],this.LIMITED_PARENT_SEARCH_STEPS_FOR_RAPID_FIRE_EVENTS)},n.prototype.cancelLongpressTimer=function(){null!==this.longPressTimeoutInfo&&(window.clearInterval(this.longPressTimeoutInfo.id),this.longPressTimeoutInfo=null)},n.prototype.startLongpressTimer=function(t){this.cancelLongpressTimer();var e=window.setTimeout(this.fireLongPress.bind(this),this.LONG_PRESS_TIME_MS);this.longPressTimeoutInfo={id:e,info:t}},n.prototype.getShiftkeyPressedDuringLastMouseUp=function(){return this.shiftKeyEnabledOnLastPointerUp},n.prototype.onGlobalPointerdownEvent=function(t){if(t.target){if(b.gwUtil.eventLog("### POINTER DOWN",t),h.gwDraggable.isDragging()||!this.eventsEnabled)return t.stopPropagation(),void t.preventDefault();this.setVisibleFocusMode(!1),this.shiftKeyEnabledOnLastPointerUp=!1,this.scrollingSincePointerDown=!1;var e=new D.GwPointerInfo(t);this.pointerDownInfo?e.shouldBecomeNewMouseDownOverExistingMouseDown(this.pointerDownInfo)&&(this.pointerDownInfo=e,this.cancelLongpressTimer()):(this.pointerDownInfo=e,this.cancelLongpressTimer()),this.pointerDownInfo.isValidForMouseDown&&(P.gwMouse.updatePosition(t),this.pointerDownInfo.longPressableEl&&this.startLongpressTimer(this.pointerDownInfo))}},n.prototype.onGlobalPointerupEvent=function(t){var e=this,n=new D.GwPointerInfo(t,this.pointerDownInfo),r=null,i=null;return this.pointerDownInfo?this.pointerDownInfo.id!==n.id?(t.preventDefault(),void t.stopPropagation()):(b.gwUtil.eventLog("### POINTER UP",t),this.cancelLongpressTimer(),this.pointerDownInfo.isValidForMouseDown?(this.handleDeferredChangeEvent(this.pointerDownInfo.originalTarget||t.target),h.gwDraggable.isDragging()?(t.stopPropagation(),t.preventDefault(),b.gwUtil.eventLog("### drag end",t),h.gwDraggable.end()):n.hasSameDblClickableAs(this.possibleFirstClickOfDoubleClick)?(i=n.dblClickableEl,this.possibleFirstClickOfDoubleClick.timeBetweenEvents(n)<=this.DOUBLE_CLICK_MAX_DELAY_MS&&this.internalDoubleClick(i,t)):n.timeBetweenEvents(this.pointerDownInfo)>this.CLICK_MAX_TIME_BETWEEN_UP_AND_DOWN_MS||(n.hasSameClickableAs(this.pointerDownInfo)?(this.internalClick(n.clickableEl,t),i=n.clickableEl):n.hasSameDblClickableAs(this.pointerDownInfo)&&(r=this.pointerDownInfo,i=n.dblClickableEl)),i||o.gwFocus.findFocusableNodeForClick(this.pointerDownInfo&&this.pointerDownInfo.originalTarget)||this.scrollingSincePointerDown||o.gwFocus.setLastClickedPanelAndClearFocus(this.pointerDownInfo.originalTarget),this.pointerDownInfo=null,this.scrollingSincePointerDown=!1,this.possibleFirstClickOfDoubleClick=r,t.shiftKey&&(this.shiftKeyEnabledOnLastPointerUp=!0,setTimeout(function(){return e.shiftKeyEnabledOnLastPointerUp=!1},0)),void this.doAfterAnyClick(i||t.target)):void(this.pointerDownInfo=null)):(t.preventDefault(),void t.stopPropagation())},n.prototype.onGlobalPointermoveEvent=function(t){if(!this.pointerDownInfo)return P.gwMouse.updatePosition(t),void this.abstractOnEvent(this.getEnabledEventMethodOwnerOrBarrierEl(t.target,"mousemove"),t,!1);if(this.pointerDownInfo.id!==t.pointerId)return t.stopPropagation(),void t.preventDefault();if(this.pointerDownInfo.isValidForMouseDown){if(P.gwMouse.updatePosition(t),h.gwDraggable.isDragging())return t.stopPropagation(),t.preventDefault(),void h.gwDraggable.drag();this.pointerDownInfo.position.distanceToPoint(P.gwMouse.position)>this.MOVE_DISTANCE_TO_CANCEL_LONG_PRESS_IN_PX&&this.cancelLongpressTimer(),this.pointerDownInfo.draggableEl&&this.pointerDownInfo.position.distanceToPoint(P.gwMouse.position)>this.DRAG_DISTANCE_TO_START_IN_PX&&(t.stopPropagation(),t.preventDefault(),b.gwUtil.eventLog("###### START - DRAG",t),this.cancelLongpressTimer(),h.gwDraggable.start(this.pointerDownInfo.draggableEl,this.pointerDownInfo.position))}},n.prototype.onGlobalPointeroverEvent=function(t){if(h.gwDraggable.isDragging())return void t.stopPropagation();var e=this.getEnabledEventMethodOwnerOrBarrierEl(t.target,"mouseenter");this.abstractOnEvent(e,t,!1)},n.prototype.onGlobalPointeroutEvent=function(t){if(h.gwDraggable.isDragging())return void t.stopPropagation();this.abstractOnEvent(this.getEnabledEventMethodOwnerOrBarrierEl(t.target,"mouseout"),t,!0)},n.prototype.onGlobalPointercancelEvent=function(t){this.onGlobalPointerupEvent(t)},n.prototype.fireLongPress=function(){if(null!==this.longPressTimeoutInfo){var t=this.longPressTimeoutInfo.info.longPressableEl;if(!t)return void console.error("Attempting to fire longpress on from a GwPointerInfo instance without a longPressableEl");b.gwUtil.eventLog("###### FIRE LONG PRESS");var e=this.longPressTimeoutInfo.info.originalTarget;this.cancelLongpressTimer(),this.pointerDownInfo=null,this.possibleFirstClickOfDoubleClick=null,this.abstractOnEvent(t,new _.GwForcedEvent(t,"longpress",e||void 0))}},n.prototype.internalClick=function(t,e){if(b.gwUtil.eventLog("###### INTERNAL CLICK"),this.possibleFirstClickOfDoubleClick=null,t&&(e.preventDefault(),!this.isClickOnControlInListDetailVew(t,e)))return this.areEventsEnabled()?void this.abstractOnEvent(t,this.createMouseEvent("click",e),!1):(b.gwUtil.eventLog("###### QUEUING CLICK"),void(this.queuedInternalClick={clickableElement:t,e:this.createPointerEvent("click",e)}))},n.prototype.isClickOnControlInListDetailVew=function(t,e){if(!t.classList.contains("gw-RowWidget"))return!1;var n=e.target;return!!n&&(n instanceof HTMLInputElement?this.inputTypesThatConsumeClick[n.type]||!1:n instanceof HTMLSelectElement)},n.prototype.internalDoubleClick=function(t,e){b.gwUtil.eventLog("###### INTERNAL DBL CLICK"),this.abstractOnEvent(t,this.createMouseEvent("dblclick",e),!1),this.possibleFirstClickOfDoubleClick=null},n.prototype.possiblyFireQueuedClick=function(){this.queuedInternalClick&&(b.gwUtil.eventLog("### POSSIBLY FIRE QUEUED CLICK"),document.body.contains(this.queuedInternalClick.clickableElement)&&this.internalClick(this.queuedInternalClick.clickableElement,this.queuedInternalClick.e),this.queuedInternalClick=null)},n.prototype.onGlobalCopyEvent=function(t){t.target&&this.abstractOnEvent(this.getEnabledEventMethodOwnerOrBarrierEl(t.target,"copy"),t)},n.prototype.onGlobalPasteEvent=function(t){this._pasteEventRawClipboardText=t.clipboardData.getData("text"),t.target&&this.abstractOnEvent(this.getEnabledEventMethodOwnerOrBarrierEl(t.target,"paste"),t),this._pasteCausedCurrentInputEvent=!0},n.prototype.onGlobalCutEvent=function(t){this.onGlobalCopyEvent(t)},n.prototype.onGlobalMessageEvent=function(t){O.gwCrossOriginInternal.receiveMessageFromTargetWindow(t)},n.prototype.onGlobalInputEvent=function(t){if(!this.isBogusIE11InputEvent(t)){b.gwUtil.eventLog("### INPUT EVENT",t);var e=t.target;if(e){if(a.gwPrefPanel.getPrefValueByPrefName("replaceWordProcessingCharacters")&&f.gwInputs.isTextInputOrTextArea(e)&&x.GwCharReplacer.needsReplacement(e.value)){var n=x.GwCharReplacer.replace({value:e.value,cursorPos:S.gwInputSystems.getCursorPos(e)});e.value=n.value,S.gwInputSystems.setCursorPos(e,n.cursorPos)}g.gwForm.inputElementChanged(e),N.gwAria.addAriaLabelToInputIfPrefixedOrSuffixed(e),this.abstractOnEvent(this.getEnabledEventMethodOwnerOrBarrierEl(t.target,"input"),t)}this._pasteCausedCurrentInputEvent=!1,this._pasteEventRawClipboardText=null}},n.prototype.onGlobalChangeEvent=function(t){b.gwUtil.eventLog("### CHANGE EVENT",t);var e=t.target;if(e){var n=e.hasAttribute("data-gw-event-barrier"),r=n?null:g.gwForm.findEnclosingValueWidget(e),i=n?e:r;i&&(g.gwForm.inputElementChanged(e),_.GwForcedEvent.isGwForcedEvent(t)||n||this.isImmediateChangeNodeType(e)&&!v.gwDateValue.isDateTimeElement(r)?this.abstractOnEvent(i,t):r&&this.setPendingChangesOnValueWidget(r))}},n.prototype.isBogusIE11InputEvent=function(t){return b.gwUtil.isIE11()&&t.target!==document.activeElement},n.prototype.clearHandleDeferredChangeEventTimer=function(){this.handleDeferredChangeEventTimer>=0&&(clearTimeout(this.handleDeferredChangeEventTimer),this.handleDeferredChangeEventTimer=-1)},n.prototype.onGlobalFocusoutEvent=function(t){b.gwUtil.eventLog("### BLUR EVENT",t),o.gwFocus.setLastFocus(t.target);var e=t.target,n=t.relatedTarget;p.gwHelpText.focusOut();var r=this.getEnabledEventMethodOwnerOrBarrierEl(e,"blur");r&&!r.contains(n)&&this.abstractOnEvent(r,t),this.clearHandleDeferredChangeEventTimer(),this.handleDeferredChangeEventTimer=setTimeout(this.handleDeferredChangeEvent.bind(this,n,!0),0),o.gwFocus.possiblyHandleDocumentBlur(),t.stopPropagation(),t.preventDefault()},n.prototype.onGlobalFocusinEvent=function(t){b.gwUtil.eventLog("### FOCUS EVENT",t),this.clearHandleDeferredChangeEventTimer();var e=t.target;if(e&&e.hasAttribute){if(e.hasAttribute("data-gw-refuse-focus"))return void o.gwFocus.restoreLastFocusNodeIfAvailable(!1);var n=o.gwFocus.getCorrespondingFocusLockOrNewFocusEl(e),r=n!==e;if(r&&(e=n),e){var i=o.gwFocus.isFocusable(e,!this.mouseDown);if(this.mouseDown&&!i&&(e=o.gwFocus.findFocusableNodeForClick(e)),e){o.gwFocus.processNewFocus(e,r),p.gwHelpText.focusIn(e),b.gwUtil.hasValue(this.lastActiveKeydownKey)&&c.gwKeys.shortcutKeyWordToKeyCodeMap.TAB===this.lastActiveKeydownKey&&l.gwMenus.focusChangedViaTabPossiblyCloseAbandonedMenus(e),this.handleDeferredChangeEvent(e);var a=this.getEnabledEventMethodOwnerOrBarrierEl(e,"focus");this.abstractOnEvent(a,t)}else o.gwFocus.restoreFocus(!1);t.stopPropagation(),t.preventDefault()}}},n.prototype.handleDeferredChangeEvent=function(t,e){if(void 0===e&&(e=!1),this.clearHandleDeferredChangeEventTimer(),t||e){var n=o.gwFocus.getLastFocus();if(n){var r;if("gw-focus-barrier-bottom"===n.id?(r=b.gwUtil.getDomNodeByAttr("data-gw-pending-change"),b.gwUtil.eventLog("Focus at end of page: checked entire dom for any node with pending change: ",r)):r=b.gwUtil.getSelfOrFirstParentWithAttr(n,"data-gw-pending-change"),r&&(e||!this.isPartOfValueWidget(r,t))){var i=r.getAttribute("data-gw-pending-change");if(r.removeAttribute("data-gw-pending-change"),i){var a=u.gw.globals[i].deferredChangeOnFocusInMethod;a&&a.call(u.gw.globals[i],r)}b.gwUtil.eventLog("###### PROCESS DEFERRED CHANGE");var s=b.gwUtil.getDomNodeByName(r.id,r);s&&this.forceGlobalChangeEvent(s,t)}}}},n.prototype.isPartOfValueWidget=function(t,e){if(t.contains(e)){var n=t.querySelector(".gw-vw--children");return!n||!n.contains(e)}return!1},n.prototype.onGlobalDropEvent=function(t){if(h.gwDraggable.isDragging())return void t.stopPropagation();this.abstractGlobalDragDropEvent(t,"drop")},n.prototype.onGlobalDragoverEvent=function(t){this.abstractGlobalDragDropEvent(t,"dragover")},n.prototype.onGlobalDragenterEvent=function(t){this.abstractGlobalDragDropEvent(t,"dragenter")},n.prototype.onGlobalDragleaveEvent=function(t){this.abstractGlobalDragDropEvent(t,"dragleave")},n.prototype.onGlobalDragendEvent=function(t){this.abstractGlobalDragDropEvent(t,"dragend")},n.prototype.abstractGlobalDragDropEvent=function(t,e){if(t.preventDefault(),h.gwDraggable.isDragging())return void t.stopPropagation();var n="[data-gw-"+e+"]";if(t.target){var r=$(t.target).closest(n)[0];r&&this.abstractOnEvent(r,t)}},n.prototype.onGlobalVisualViewportResize=function(t){j.gwResizer.check()},n.prototype.onGlobalScrollEvent=function(t){null!==this.pointerDownInfo&&(this.scrollingSincePointerDown=!0);var e=t.target;!e||e.tagName&&"div"!==e.tagName.toLowerCase()||e.id!==p.gwHelpText.HELP_TEXT_EL_ID&&("gw-center-bottom-section"===e.id&&!h.gwDraggable.isDragging()&&this.eventsEnabled&&j.gwResizer.onCenterPanelScroll(e),l.gwMenus.closeAllMenusContainedBy(t.target),S.gwInputSystems.closeOpenInputs(t))},n.prototype.onElementEvent=function(t,e){var n=t,r=!1;"mouseleave"===n.type&&(r=!0),this.abstractOnEvent(e,n,r)},n.prototype.onGlobalKeyEvent=function(t){var e=this;b.gwUtil.eventLog("### onGlobalKeyEvent",t);var n=c.gwKeys.getKeyCode(t);if(null===n||void 0===n||!c.gwKeys.ignoredKeyCodes[n]){if(c.gwKeys.shortcutKeyWordToKeyCodeMap.ENTER===n){var r=o.gwFocus.getCurrentFocus();if(r&&"textarea"===(r.tagName||"").toLowerCase())return}this.setVisibleFocusMode(!0),this.lastActiveKeydownKey=n,setTimeout(function(){return e.lastActiveKeydownKey=null},0);var i=t.target;this.abstractOnEvent(this.getEnabledEventMethodOwnerOrBarrierEl(i,"key")||i,t)}},n.prototype.setVisibleFocusMode=function(t){var e=document.getElementById("gw-root-form");e&&(e.style.setProperty("--gw-focus-outline-style-for-disabled-el",t?"dashed":"none"),e.style.setProperty("--gw-focus-outline-style-for-enabled-el",t?"solid":"none"))},n.prototype.abstractOnEvent=function(t,e,n){if(void 0===n&&(n=!1),t){var r=!this.isEventEnabledOnNode(t,e.type,e);if(!n&&(!this.eventsEnabled||"keydown"!==e.type&&r))return void e.stopPropagation();"change"===e.type&&S.gwInputSystems.clearInvalidValueStatus(t);var o=i.GwEventDescription.getEventDescription(t,e,r),a=o&&o.methodName?this.findSystemAndMethod(o.methodName):null,u="change"===e.type&&y.gwReflection.isReflectionTrigger(t);if(a||u){if(o){if(o.eventTargetNode&&!this.isEventEnabledOnNode(o.eventTargetNode,o.eventType,e))return;if(!w.gwConfirm.confirmEvent(o))return;if(!this.checkForAndShowPrompt(o))return}e.stopPropagation();var s=!1;o&&this.disableDefaultBehaviorIfHandled[o.eventType]&&(o.enableDefault||(s=!0)),a&&(o&&o.unnamedArgs?a.execute(o.unnamedArgs,e):a.execute(t,o,e)),s&&e.preventDefault(),u&&y.gwReflection.notifyTriggerChange(t.id)}}},n.prototype.clearQueuedInternalClick=function(){this.queuedInternalClick=null},n.prototype.findEnclosingValueWidgetOrThrow=function(t){var e=g.gwForm.findEnclosingValueWidget(t);if(!e)throw new Error("Unable to locate value widget for dom node: "+t);return e},n.prototype.setPendingChangesOnValueWidget=function(t){b.gwUtil.eventLog("setPendingChangesOnValueWidget: el: ",t.id),t.setAttribute("data-gw-pending-change","")},n.prototype.isImmediateChangeNodeType=function(t){if(f.gwInputs.isSelect(t))return!0;var e=t.type;return!!e&&("checkbox"===e||"radio"===e||"button"===e||"file"===e)},n.prototype.findSystemAndMethod=function(t){var e=t.split(".");if(1===e.length){var n=this.methods[e[0]];return"function"!=typeof n?(b.gwUtil.devlog("WARNING: found object not of type function via data attribute path: ",t),null):new T.GwFunctionWithContext(this.methods,n)}"gw"===e[0]&&e.shift(),"globals"===e[0]&&e.shift();var r=null,i=null,o=u.gw.globals;if(!u.gw.globals[e[0]])throw new Error("Unable to locate global system "+e[0]+". Ensure that the class is set up correctly, and is being included in the import chain.");for(var a=0;a0?"SOUTH":"CENTER";var e=o.gwFocus.getLastClickedPanel();return null===e?"NULL":"S"===e?"SOUTH":"CENTER"},n.prototype.isSouthPanelOpen=function(){var t=document.getElementById("gw-south-panel");return!!t&&!(t.classList.contains("gw-placeholder")||t.classList.contains("gw-makeSouthPanel--min"))},n.prototype.internalToolsEnabled=function(){return b.gwUtil.getUtilityFlag("gw-internalTools-flag")},n.prototype.doCustomSystemWorkOnEveryNodeOnPageLoad=function(t){m.gwScroll.restoreScrollForNode(t),y.gwReflection.initForNode(t),I.gwShortcuts.registerShortcuts(t)},n.prototype.addInlineEventListenersToContainer=function(t){if(!t)throw new Error("addInlineEventListenersToContainer requires a contextNode");this.addInlineEventListenersToDom(t)},n.prototype.addInlineEventListenersToDom=function(t){void 0===t&&(t=document);for(var e=t.getElementsByTagName("*"),n=0;n=0:this.defaultFocusableMap[t.nodeName.toLowerCase()]||!1))))},t.prototype.focusableOnClick=function(t){return!!this.defaultFocusableMap[t.nodeName.toLowerCase()]||!!this.findFocusableNodeForClick(t)},t.prototype.isFocusable=function(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),null!==t&&(this.canSelfBeFocusedBasedOnHtmlState(t,n)||e&&this.getFocusable(t,n).length>0)},t.prototype.findFocusableNodeForClick=function(t){for(var e=t;e;){if(!this.allowsFocusBasedOnReadonly(e))return null;if(this.defaultFocusableMap[e.nodeName.toLowerCase()]||e.hasAttribute&&!e.hasAttribute("disabled")&&e.hasAttribute("tabIndex")&&+e.getAttribute("tabIndex")>=0)return e;e=e.parentElement}return null},t.prototype.processNewFocus=function(t,e){if(void 0===e&&(e=!1),r.gwUtil.removeClass(".gw-focus","gw-focus"),e&&o.gwAnimation.addAnimation(t,"focus"),!t)return void this.clearFocus();t!==this.getCurrentFocus()&&this.setLastFocus(this.currentFocusNode),this.currentFocusNode=t;var n=r.gwUtil.getUniqueSelector(t);a.gwPanelRef.expandAllParents(this.currentFocusNode),r.gwUtil.addClass(this.currentFocusNode,"gw-focus"),t.focus(),c.gwResizer.showNavBarIfElementIsChild(t),"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase()||s.gwEvents.setVisibleFocusMode(!0),i.gwStorage.set(this.CURR_FOCUS_KEY,n)},t.prototype.forceFocusIgnoreIfNull=function(t,e){return void 0===e&&(e=!1),null!==t&&this.forceFocus(t,e)},t.prototype.forceFocus=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=r.gwUtil.getDomNode(t);if(!i||i===document.documentElement)return!1;if(this.focusableUsingTabIndex(i,n))return this.processNewFocus(i,e),!0;var o=this.getFocusable(i,n)[0];if(o)return this.processNewFocus(o,e),!0;var a=i.children;if(a){for(var u=0;u=0)return void setTimeout(this.restoreFocus.bind(this,t),e);var n=r.gwUtil.isIE11()?null:document.activeElement,i=this.serverSpecifiedFocusNode||this.getCurrentFocus()||this.getLastFocus()||n;i?(this.forceFocus(i,t),this.serverSpecifiedFocusNode&&(u.gwScroll.saveScrollPositions(),this.serverSpecifiedFocusNode=null)):this.setCurrentAndLastFocusToNull()},t.prototype.restoreLastFocusNodeIfAvailable=function(t){void 0===t&&(t=!1),this.lastFocusNode&&this.forceFocus(this.lastFocusNode,t)},t.prototype.getLastClickedPanel=function(){return this.lastClickedPanel},t.prototype.focusIsOutsideApplication=function(){return!document.hasFocus()||document.activeElement===document.body||document.activeElement===document.documentElement},t.prototype.possiblyHandleDocumentBlur=function(){var t=this;window.setTimeout(function(){t.focusIsOutsideApplication()&&t.setCurrentAndLastFocusToNull()},0)},t.prototype.getFirstFocusableElInNorth=function(){return this.getFocusable(document.getElementById("gw-north-panel"))[0]||null},t.prototype.getLastFocusableElInCenterOrSouth=function(){var t=document.getElementById("gw-south-panel"),e=!t||r.gwUtil.hasClass(t,"gw-placeholder")?document.getElementById("gw-center-panel"):t,n=this.getFocusable(e);return n[n.length-1]||null},t.prototype.getCorrespondingLockElForLastFocusNode=function(t){if(!this.lastFocusNode)return t;var e=r.gwUtil.getSelfOrFirstParentWithAttr(this.lastFocusNode,"data-gw-focus-lock");return e?e.contains(t)?t:this.lastFocusNode.hasAttribute("data-gw-focus-lock-top")?e.querySelector("[data-gw-focus-lock-bottom]")||t:this.lastFocusNode.hasAttribute("data-gw-focus-lock-bottom")?e.querySelector("[data-gw-focus-lock-top]")||t:t:t},t.prototype.getCorrespondingFocusLockOrNewFocusEl=function(t){if(t){if("gw-focus-barrier-top"===t.id)return this.lastFocusNode&&"gw-focus-barrier-bottom"!==this.lastFocusNode.id?this.lastFocusNode.hasAttribute("data-gw-focus-lock-top")?this.getCorrespondingLockElForLastFocusNode(t):t:this.getFirstFocusableElInNorth()||t;if("gw-focus-barrier-bottom"===t.id)return this.lastFocusNode&&"gw-focus-barrier-top"!==this.lastFocusNode.id?this.lastFocusNode.hasAttribute("data-gw-focus-lock-bottom")?this.getCorrespondingLockElForLastFocusNode(t):t:this.getLastFocusableElInCenterOrSouth()||t}return this.getCorrespondingLockElForLastFocusNode(t)},t}();e.GwFocus=l,e.gwFocus=new l},function(t,e,n){"use strict";var r=n(282);n.d(e,"b",function(){return r.a});var i=n(75);n.d(e,"c",function(){return i.a});var o=n(311);n.d(e,"f",function(){return o.a});var a=n(162);n.d(e,"g",function(){return a.a});var u=n(312);n.d(e,"h",function(){return u.a});var s=n(97);n.d(e,"i",function(){return s.a});var c=n(98);n.d(e,"j",function(){return c.a});var l=n(76);n.d(e,"a",function(){return l.a});var f=n(160);n.d(e,"k",function(){return f.a});var d=n(313);n.d(e,"l",function(){return d.a});var h=n(19);n.d(e,"m",function(){return h.b});var p=n(99);n.d(e,"n",function(){return p.a});var g=n(161);n.d(e,"o",function(){return g.a});var v=n(165);n.d(e,"p",function(){return v.b});var y=n(314);n.d(e,"q",function(){return y.a});var w=n(315);n.d(e,"r",function(){return w.a});var m=n(100);n.d(e,"s",function(){return m.a});var b=n(101);n.d(e,"e",function(){return b.c}),n.d(e,"d",function(){return b.a})},function(t,e,n){"use strict";function r(t,e,n,a){function u(e){return t(e=new Date(+e)),e}return u.floor=u,u.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},u.round=function(t){var e=u(t),n=u.ceil(t);return t-e0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(u.count=function(e,r){return i.setTime(+e),o.setTime(+r),t(i),t(o),Math.floor(n(i,o))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(a?function(e){return a(e)%t==0}:function(e){return u.count(0,e)%t==0}):u:null}),u}e.a=r;var i=new Date,o=new Date},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(16),o=n(17),a=n(4),u=n(69),s=n(50),c=n(94),l=n(239),f=n(14),d=n(49),h=n(2),p=n(0),g=n(142),v=n(141),y=n(11),w=n(143),m=n(5),b=n(13),_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.DEFAULT_INPUT_MASK_PLACEHOLDER_CHAR="#",e.clearTrailingMaskCharacters=!0,e.DATE_COMPLETION_CHARS={" ":!0,".":!0,",":!0,":":!0,"\\":!0,"/":!0,"-":!0},e.maxIllegalCharsBeforePunting=3,e}return r(e,t),e.prototype.getSystemName=function(){return"gwInputSystems"},e.prototype.getCursorPos=function(t){return t.selectionStart},e.prototype.setCursorPos=function(t,e){return this.setSelectionRange(t,e,e)},e.prototype.setCursorPosToEnd=function(t){return this.setCursorPos(t,this.getValueWithMaskTrimmed(t).length)},e.prototype.setSelectionRange=function(t,e,n){t.selectionStart=e,t.selectionEnd=n},e.prototype.forcePickerIntoVerticalAlignment=function(t,e,n,r,i){void 0===i&&(i=!1),this.preventFloatingElementFromBeingOffscreen(t,e,n,i,void 0,r?"above":"below")},e.prototype.getFirstModifiedIndex=function(t,e,n){for(var r=Math.max(0,e.length-t.length),i=n-r,o=0;o=s.left,b=c.right-f>=0&&c.right<=s.right,_=r&&b||!r&&m,E=!m&&!b;u&&E&&(n.style.width=s.right+"px",n.style.overflowX="auto"),n.style.left=E?"0px":_?r?p:h:m?h:p,n.style.right="auto";var O=c.top-g>=0&&c.top<=v,C=c.bottom+g<=v&&c.bottom>=0,S=i&&O||!i&&C,A=!O&&!C;return u&&A&&(n.style.overflowY="auto",n.style.height="above"===a||i?y:s.bottom-c.bottom+"px"),"above"===a?(this.renderAddOnDiv(n,!0,w,y),!0):"below"===a?(this.renderAddOnDiv(n,!1,w,y),!1):S||A?(this.renderAddOnDiv(n,i,w,y),i):(this.renderAddOnDiv(n,O,w,y),O)},e.prototype.renderAddOnDiv=function(t,e,n,r){e?(t.style.top="auto",t.style.bottom=r):(t.style.top=n,t.style.bottom="auto")},e.prototype.clearInvalidValueStatus=function(t){$(t).closest("div.gw-ValueWidget").removeAttr("aria-invalid")},e.prototype.addInvalidValueStatus=function(t){$(t).closest("div.gw-ValueWidget").attr("aria-invalid","true")},e.prototype.inputEventNotifySystems=function(t,e,n){this.notifySystemsOfInputValueChange(n.target,null,e,n)},e.prototype.pasteEventNotifySystems=function(t,e,n){t.hasAttribute("data-gw-currency")&&l.gwCurrency.pasteOnCurrencyInput(t,e,n)},e.prototype.copyEventNotifySystems=function(t,e,n){t.hasAttribute("data-gw-input-mask")?this.copyOnInputMask(n.target,e,n):t.hasAttribute("data-gw-currency")?l.gwCurrency.copyOnCurrencyInput(n.target,e,n):d.gwDateValue.isDateTimeElement(t)&&this.copyOnDateValue(n.target,e,n)},e.prototype.notifySystemsOfInputValueChange=function(t,e,n,r){var i=f.gwForm.findEnclosingValueWidget(t);i&&("autocomplete"!==e&&i.hasAttribute("data-gw-autocomplete")&&w.gwAutocomplete.autocomplete(t),i.hasAttribute("data-gw-currency")?"currency"!==e&&l.gwCurrency.valueChangedSoProcessCurrencyInfo(i,t):i.hasAttribute("data-gw-datetime")?"date"!==e&&this.valueChangedSoProcessDateInfo(i,t):"inputmask"!==e&&(i.hasAttribute("data-gw-input-mask")||i.hasAttribute("data-gw-restricted-input")||i.hasAttribute("data-gw-email"))&&this.valueChangedSoProcessInputMask(i,t),"picker"!==e&&"datepicker"!==e&&d.gwDateValue.notifyPickerOfInputChange(i,t),p.gwUtil.eventLog("notifySystemsOfInputValueChange: setPendingChangesOnValueWidget: ",i),a.gwEvents.setPendingChangesOnValueWidget(i),f.gwForm.inputElementChanged(i))},e.prototype.getPlaceholderValueOrMaskIfPlaceholderIsIncorrectLength=function(t,e){var n=t.hasAttribute("placeholder")?t.getAttribute("placeholder"):e;return n&&n.length===e.length?n:e},e.prototype.handleUserInputRestrictionForInputsWithoutMasks=function(t,e,n){if(n&&"all"!==n){var r=e.value;if(null!==r&&0!==r.length){var i=g.gwClientValidation.getRestrictionTypeFromString(n);if(g.gwClientValidation.userRestrictionTypeUsesGroupingFormatting(i)){var o=this.handleGroupingDecimalsAndMacros(t,e);return void m.gwInputs.setValueOnTextInputElement(e,o.value,o.cursorPos,!1,"inputmask")}for(var a=g.gwClientValidation.getRegexForRestrictionTypeFromString(i),u=this.getCursorPos(e),s="",c=e.hasAttribute("data-gw-prev")?e.getAttribute("data-gw-prev"):e.getAttribute("value")||"",l=r.length-c.length,f=r[u-1],d=u,h="",p=0;p0&&g.gwClientValidation.userInputRejectedOnPaste(e,h):g.gwClientValidation.userInputRejectedSingleCharacter(e,f),m.gwInputs.setValueOnTextInputElement(e,s,d,!1,"inputmask")}}},e.prototype.isValidChar=function(t,e){if(1!==t.length)throw new Error("Attempting to pass string to a method that expects a single char.");var n=t.match(e);return null!==n&&n.length>0},e.prototype.valueChangedSoProcessInputMask=function(t,e){var n=this;if(e&&"password"!==e.type){var r=t.getAttribute("data-gw-input-mask"),i=t.getAttribute("data-gw-restricted-input");if(!r)return void(i?this.handleUserInputRestrictionForInputsWithoutMasks(t,e,i):t.hasAttribute("data-gw-email")&&g.gwClientValidation.handleValidationForEmailType(e));var o=r,a=!1,u=t.getAttribute("data-gw-input-mask-placeholder")||this.DEFAULT_INPUT_MASK_PLACEHOLDER_CHAR,s=e.value,c=e.value;if(!p.gwUtil.hasValue(s)||0===s.length)return void m.gwInputs.setValueOnTextInputElement(e,null,0,!1,"inputmask");var l=this.getCursorPos(e);s=p.gwUtil.convertAllWhitespaceToStandard(s);var f=e.hasAttribute("data-gw-prev")?e.getAttribute("data-gw-prev"):e.getAttribute("value")||"",d=s.length-f.length,h=d>=0,v=!h;if(d>3*o.length)return m.gwInputs.setValueOnTextInputElement(e,f,999,!1,"inputmask"),void g.gwClientValidation.userInputRejectedOnPaste(e,c);var y=new RegExp(p.gwUtil.escapeForRegExp(u),"g"),w=g.gwClientValidation.getRegexForRestrictionTypeFromString(i),b={},_={};p.gwUtil.forEach(o,function(t){t.match(y)?b[t]=!0:_[t]=!0});var E=function(t){return!b[t]&&n.isValidChar(t,w)};if(o){if(function(){if(!h||l<=0)return!1;var t=s[l-1],e=o[l-1];return void 0!==t&&t===e}()){var O=s.slice(0,l)+s.slice(l+1);return void m.gwInputs.setValueOnTextInputElement(e,function(t){return t.lengtho.length+1&&(g.gwClientValidation.warnAboutUserInput(e,S.join("")),a=!0);var A=[],T=0;if(S.length>0){for(var x=[],D=0;D0?(F+=S.shift(),l=k+1):F+=U&&L?R:I}if((v||A.length>0)&&F===o&&(F=""),m.gwInputs.setValueOnTextInputElement(e,F,l,!1,"inputmask"),!a)if(1===A.length)g.gwClientValidation.userInputRejectedSingleCharacter(e,A[0]);else if(A.length>1)g.gwClientValidation.userInputRejectedOnPaste(e,A.join(" "));else if(S.length>0)g.gwClientValidation.warnAboutUserInput(e,S.join(" "));else if(s.length>o.length){var B=s.slice(o.length);(function(t){for(var e=0,n=t;e=0,C=!O;if(E>3*f.length)return m.gwInputs.setValueOnTextInputElement(e,_,999,!1,"date"),void g.gwClientValidation.userInputRejectedOnPaste(e,y);var S=d.gwDateValue.getTimeInputChildOrSibling(e),A=d.gwDateValue.getAmPmHiddenInputChildOrSibling(e),T=d.gwDateValue.getAmPmButtonChildOrSibling(e);if(A&&!T||!A&&T)throw new Error("AM/PM button should always exist if the hidden form input exists and vice versa");var x,D,P=!!(r?S:A),I=function(t){var e=/[-.]/g;if(r&&u){for(var n=t.split(" "),i=u.replace(e,"/").split("/"),o=n[0].replace(e,"/").split("/"),a=void 0,s=void 0,c=void 0,l=0;l=0?a=parseInt(o[l]):i[l].indexOf("M")>=0?s=parseInt(o[l])-1:i[l].indexOf("d")>=0&&(c=parseInt(o[l]));if(a&&s&&c){var f=n[1];if(f){var h=f.split(":"),p=h[0]?parseInt(h[0]):null,g=h[1]?parseInt(h[1]):null,v=h[2]?parseInt(h[2]):null;if(p&&g){return n[2]===d.gwDateValue.getPmString()&&(p+=12),new Date(a,s,c,p,g,v||0)}}return new Date(a,s,c)}}return null}(v),M=function(t){return t.replace(/(^|\D)(\d)(?=$|\D)/g,"$10$2")},j=function(t){if(t.length>f.length+1){if(r){if(S){var e=t.substring(f.length).trim();e.length>=5&&e.length<=8&&e.indexOf(":")>-1&&(S.value=e,ht=!0,n.notifySystemsOfInputValueChange(S))}}else if(i&&A&&T){var o=d.gwDateValue.getAmString(),a=d.gwDateValue.getPmString();if(o&&a){var u=new RegExp("(("+o.toUpperCase()+")|("+o.toLowerCase()+"))");if(u.test(t.toLowerCase()))ht=!0,A.value=o,T.value=o,b.gwAria.setAriaPropertyForElement("label",o,T);else{var s=new RegExp("(("+a.toUpperCase()+")|("+a.toLowerCase()+"))");s.test(t.toLowerCase())&&(ht=!0,A.value=a,T.value=a,b.gwAria.setAriaPropertyForElement("label",a,T))}}}}else if(t.length===f.length+1&&P&&S&&A&&T){var o=d.gwDateValue.getAmString(),a=d.gwDateValue.getPmString(),c=o[0].toLowerCase(),l=a[0].toLowerCase(),h=t[t.length-1].toLowerCase();h===c?(ht=!0,A.value=o,T.value=o,b.gwAria.setAriaPropertyForElement("label",o,T)):h===l&&(ht=!0,A.value=a,T.value=a,b.gwAria.setAriaPropertyForElement("label",a,T))}};if(r&&a.gwEvents.pasteCausedCurrentInputEvent&&I&&v.length>=f.length-2){h=!0;var N=v.indexOf(":")>-1;if(v=f.slice(0).replace("yyyy",""+I.getFullYear()).replace("yy",""+I.getFullYear()).replace("MM",("0"+(I.getMonth()+1)).slice(-2)).replace("dd",("0"+I.getDate()).slice(-2)),s.gwJic.isJIC(e)){var F=v.split("/"),k=F[0]&&4===F[0].length?F[0]:F[2]&&4===F[2].length?F[2]:null;if(k){var R=parseInt(k);if(!isNaN(R)&&R>999&&R<9999){var U=c.gwJicHelper.gregYearToEraYear(I);v=U.era+" "+v.replace(k,U.year)}}}if(N&&S&&o){var L={hour:"2-digit",minute:"2-digit",hour12:p.gwUtil.hasClass(S,"gw-is12Hour")};o.indexOf("ss")>-1&&(L.second="2-digit");var B=I.toLocaleTimeString([],L);j((v+" "+M(B)).slice(0))}return void m.gwInputs.setValueOnTextInputElement(e,v,w,!1,"date")}if(r&&s.gwJic.isJIC(e)){var V=s.gwJic.possiblyHandleEraValue(v,e);if(0===V.length)return void m.gwInputs.setValueOnTextInputElement(e,null,0,!1,"date");w+=V.length-v.length,V.lengthr?(v=v.substring(0,t-1)+r+v.substring(t+2),!0):a(d.gwDateValue.getTwoDigitYearThreshold()||50)&&(r=d.gwDateValue.getTwoDigitYearLate()||20),isNaN(r))return!1;var a=r+t;return v=v.substring(0,e-2)+a+v.substring(e+4),w+=2,!0}()),a}(),z=function(t){return t.lengthf.length+1&&(g.gwClientValidation.warnAboutUserInput(e,X.join("")),h=!0);var J=[],Q=0;if(X.length>0){for(var Z=[],tt=0;tt0?(st+=X.shift(),w=ct+1):st+=ft&&dt?lt:nt}(C||J.length>0)&&st===f&&(st=""),m.gwInputs.setValueOnTextInputElement(e,st,w,!1,"date"),y=y.trim();var ht=!1;if(j(y),!h&&!ht)if(1===J.length)g.gwClientValidation.userInputRejectedSingleCharacter(e,J[0]);else if(J.length>1)g.gwClientValidation.userInputRejectedOnPaste(e,J.join(" "));else if(X.length>0)g.gwClientValidation.warnAboutUserInput(e,X.join(" "));else if(v.length>f.length){var pt=v.slice(f.length);(function(t){for(var e=0,n=t;e=i.length)&&(u=!0,s=c.gwJicHelper.getEraInputValue(t)),r=d.gwDateValue.getTimeInputChildOrSibling(t)):d.gwDateValue.isTimeInputElement(t)&&(r=t);var l=i;if(a!==o&&(l=l.substring(o,a)),r){u&&(l=l+" "+r.value);var f=d.gwDateValue.getAmPmHiddenInputChildOrSibling(r);f&&(u||a===o||o<=0&&a>=i.length)&&(l=l+" "+f.value)}s&&(l=s+" "+l);var h=n.clipboardData||window.clipboardData;void 0!==h&&null!==h?h.setData("text",l):p.gwUtil.devlog("clipboardData object not present on event or window"),"cut"===n.type&&(t.value=i.substring(0,o)+i.substring(a,i.length),this.setSelectionRange(t,o,a),this.notifySystemsOfInputValueChange(t,"date"))},e.prototype.beforeFireEvent=function(){var t=this;this.clearTrailingMaskCharacters&&(p.gwUtil.forEach($("[data-gw-input-mask] input"),function(e){return e.value=t.getValueWithMaskTrimmed(e)}),p.gwUtil.forEach($("[data-gw-datetime] .gw-DateValueWidget--dateInput"),function(e){return e.value=t.getValueWithMaskTrimmed(e)}),p.gwUtil.forEach($("[data-gw-datetime] .gw-DateValueWidget--timeInput"),function(e){return e.value=t.getValueWithMaskTrimmed(e)}))},e.prototype.getValueWithMaskTrimmed=function(t){var e=f.gwForm.findEnclosingValueWidget(t);if(!e)return"";var n=e.getAttribute("data-gw-input-mask")||"",r=e.getAttribute("data-gw-date-mask")||"",o=e.getAttribute("data-gw-time-mask")||"",a=n||r||o;if(!a)return t.value;var u=t.value;if(!p.gwUtil.hasValue(u))return"";if(e.hasAttribute("data-gw-datetime")&&(a=this.getPlaceholderValueOrMaskIfPlaceholderIsIncorrectLength(t,p.gwUtil.hasClass(t,"gw-DateValueWidget--dateInput")?r:o)),!a)return"";var s=u.length;return p.gwUtil.forEachReverse(u,function(t,e,n,r){if(t!==a[r])return i.GW_BREAKER;s--}),u.substring(0,s)},e.prototype.addGroupingSeparators=function(t,e,n,r){for(var i="",o=!0,a=!1,u=0,s=r.radix,c=r.grouping,l=0;l=0;l--){var f=t[l];d.push(f),h++,3===h&&0!==l&&(h=0,d.push(c),l<=e-1&&u++)}var g=e+u;return{value:d.reverse().join(""),cursorPos:g}},e.prototype.isActiveInputMask=function(t){return p.gwUtil.hasValue(t)&&t.indexOf(this.DEFAULT_INPUT_MASK_PLACEHOLDER_CHAR)>=0},e.prototype.closeOpenInputs=function(t){d.gwDateValue.hideDatePicker(),w.gwAutocomplete.closeAutocomplete(t&&t.target?t.target:void 0),u.gwHelpText.closeHelpText(),g.gwClientValidation.dismissAll()},e.prototype.clearNonDigitCharactersFromInput=function(t,e){t.value&&(t.value=t.value.replace(/\D/g,""))},e.prototype.hasPostOnChange=function(t){return t&&"refresh"===t.getAttribute("data-gw-change")},e.prototype.handleGroupingDecimalsAndMacros=function(t,e,n,r){var i=void 0===n?e.value:n,o=void 0===r?this.getCursorPos(e):r,a=v.GwNumberFormatInfo.getNumberFormatInfo(e,t);if(!a)return{value:i,cursorPos:o};if(!p.gwUtil.hasValue(i)||0===i.length)return i="",{value:i,cursorPos:o};var u=e.getAttribute("data-gw-prev")||"",s=i.length-u.length,c=1===s,f=o-1,d=i[f]||"",h=u[f+1]||"",w=c&&d===a.radix,m=c&&d===a.grouping,b=a.code||"USD",_=a.symb||"$",E=i.indexOf(b);E>-1&&(i=i.replace(b||"USD",""),f-=Math.min(b.length,f-E));var O=i.indexOf(_);O>-1&&(i=i.replace(_,""),f-=Math.min(_.length,f-O));var C=!1,S=0;if("-"===i[0]||"("===i[0]){C=!0,f>0&&(S=1,f--);var A=i.indexOf(")");A>-1&&A<=f&&f--}var T="[0-9\\"+a.grouping,x=y.gwPrefPanel.getPrefValueByPrefName("enableMacroChars");T+=a.maxDecimalDigits&&a.maxDecimalDigits>0||x?"\\"+a.radix:"",x&&(T+=l.gwCurrency.macroChars.join("")),T+="]";var D=new RegExp(T,"g"),P=i.match(D)||[];if(i.length-P.length>this.maxIllegalCharsBeforePunting)return g.gwClientValidation.userInputRejectedOnPaste(e,i),{value:u,cursorPos:f+1+S};if(c&&"-"!==d&&!this.isValidChar(d,D))return g.gwClientValidation.userInputRejectedSingleCharacter(e,d),{value:u,cursorPos:f+S};if(null===P||0===P.length)return{value:C?"-":"",cursorPos:1};var I=P.join(""),M=!1;if(x){for(var j="",N=0;N-1){var U=R.split(a.radix),L=U[0],B=U[1];j=L+B+k.substring(B.length,k.length)}else j=R+k;f=j.length}else j+=F}I=j}M?(d="",h="",w=!1,m=!1):c&&(d.match(D)?m?(f++,i[f+1]===a.grouping&&f++):w&&(f++,i[f+1]===a.radix&&f++):(g.gwClientValidation.userInputRejectedSingleCharacter(e,d),f--));var V="",W="",G=!0;if(w)W=I.substring(f),V=I.substring(0,f);else{var H=I.split(a.radix);1===H.length?(V=H[0],G=!1):(W=H.pop(),V=H.join(""))}W=W.replace(/[^0-9]/g,"").substring(0,a.maxDecimalDigits||(x?3:0));var K=this.addGroupingSeparators(V,f+1,-1===s,a);return f=K.cursorPos-1,V=K.value,I=V,G&&(I=I+a.radix+W),(0===I.length||I[0]===a.radix&&"0"!==h)&&(f++,I="0"+I),C&&(I="-"+I),{value:I,cursorPos:f+1+S}},e}(h.GwRegisteredSystem);e.GwInputSystems=_,e.gwInputSystems=new _},function(t,e,n){"use strict";var r=n(148);n.d(e,"b",function(){return r.c}),n.d(e,"d",function(){return r.b}),n.d(e,"c",function(){return r.a});var i=n(43);n.d(e,"a",function(){return i.a});var o=n(149);n.d(e,"e",function(){return o.a});var a=n(258);n.d(e,"f",function(){return a.a});var u=n(259);n.d(e,"g",function(){return u.a});var s=n(151);n.d(e,"h",function(){return s.a});var c=n(153);n.d(e,"i",function(){return c.a});var l=n(260);n.d(e,"j",function(){return l.a});var f=n(263);n.d(e,"w",function(){return f.a});var d=n(264);n.d(e,"x",function(){return d.a});var h=n(157);n.d(e,"y",function(){return h.a});var p=n(265);n.d(e,"k",function(){return p.a});var g=n(266);n.d(e,"l",function(){return g.a});var v=n(267);n.d(e,"m",function(){return v.a});var y=n(268);n.d(e,"n",function(){return y.a});var w=n(158);n.d(e,"o",function(){return w.a});var m=n(150);n.d(e,"p",function(){return m.a});var b=n(269);n.d(e,"q",function(){return b.a});var _=n(95);n.d(e,"r",function(){return _.a});var E=n(155);n.d(e,"s",function(){return E.a});var O=n(270);n.d(e,"t",function(){return O.a});var C=n(271);n.d(e,"u",function(){return C.a});var S=n(272);n.d(e,"v",function(){return S.a});var A=n(156);n.d(e,"B",function(){return A.a}),n.d(e,"z",function(){return A.b}),n.d(e,"A",function(){return A.c});var T=n(159);n.d(e,"C",function(){return T.a});var x=n(152);n.d(e,"D",function(){return x.a});var D=n(273);n.d(e,"E",function(){return D.a})},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(74),a=n(32),u=n(14),s=n(15),c=n(5),l=n(18),f=n(29),d=n(17),h=n(53),p=n(4),g=n(73),v=n(6),y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.PREF_PANEL_ID="gw-PrefPanel",e.PREFERENCES_KEY="gw-PrefPanel",e._dirtyPrefs=new g.GwSet,e._formWasDirtyWhenPanelOpened=!1,e._inputsThatDifferFromDefaults=new g.GwSet,e._underlyingPageFocus=null,e}return r(e,t),e.prototype.getSystemName=function(){return"gwPrefPanel"},e.prototype.orderSpecificInit=function(t){this.preferencesLoaded()},e.prototype.preferencesLoaded=function(){i.gwUtil.conditionalAddRemoveClass(this.getPrefValueByPrefName("disableFocusOutline"),"#gw-body",".gw-disableFocusOutline"),this.setDebugPrefs(),this.setFontSize(this.getPrefValueByPrefName("fontSize")),this.setGlobalSpacing(this.getPrefValueByPrefName("globalSpacingModifier")),this.setAlternateActionsIcon(i.gwUtil.convertIfString(this.getPrefValueByPrefName("alternateActionsIcon"))),this.setDatePrefs(),this.setGeneralPrefs(),this.setToolbarPrefs(),this.setTextShadowPref()},e.prototype.getPrefValueByPrefName=function(t){var e=o.gwPreferences.getPreference(this.PREFERENCES_KEY,t);if(i.gwUtil.hasValue(e))return i.gwUtil.convertIfString(e);var n=h.gwConfig.prefPanelDefaults()[t];return i.gwUtil.convertIfString(n)},e.prototype.open=function(){var t=this;a.gwMenus.closeAllMenus(),f.gwApp.closeShortcutHelp(),i.gwUtil.showOnDemandElement(this.PREF_PANEL_ID,function(){return t.onOpen()})},e.prototype.isDirty=function(){return this._dirtyPrefs.size()>0},e.prototype.change=function(t){var e=t.querySelector("input, select"),n=this.isDirty();c.gwInputs.getDefaultValueForInputElement(e)!==c.gwInputs.getValueById(t.id)?(this._dirtyPrefs.add(t.id),i.gwUtil.addClass(t,"gw-changed")):(this._dirtyPrefs.remove(t.id),i.gwUtil.removeClass(t,"gw-changed")),n!==this.isDirty()&&p.gwEvents.possiblyAddOnBeforeUnloadHandler(),this.differsFromDefaultValue(t,e)?this._inputsThatDifferFromDefaults.add(t.id):this._inputsThatDifferFromDefaults.remove(t.id),this.enableOrDisableRestoreDefaultsButton()},e.prototype.immediatelySetNewThemeAndRefresh=function(t){o.gwPreferences.storePreference(this.PREFERENCES_KEY,"theme",t,this.PREFERENCES_KEY),d.gwResizer.forceRecalcOnNextPartialPageLoad(),i.gwUtil.refresh()},e.prototype.save=function(){var t=this;if(!this.isDirty())return void this.close();this._formWasDirtyWhenPanelOpened&&!window.confirm(s.gwDisplayKey.get("Web.Client.ConfirmPrefPanelWithDirtyForm"))||(this._dirtyPrefs.forEach(function(e){o.gwPreferences.storePreference(t.PREFERENCES_KEY,t.getPrefNameFromDomIdOrName(e),c.gwInputs.getValueById(e),t.PREFERENCES_KEY)}),this.close(),d.gwResizer.forceRecalcOnNextPartialPageLoad(),i.gwUtil.refresh())},e.prototype.cancel=function(){if(this.isDirty()){if(!window.confirm(s.gwDisplayKey.get("Web.Client.PrefPanelConfirmCancel")))return;i.gwUtil.forEach(this.getAllPrefValueWidgets(),function(t){c.gwInputs.setValueById(t,c.gwInputs.getDefaultValueForInputElement(t))})}this.close()},e.prototype.reset=function(){var t=this;if(window.confirm(s.gwDisplayKey.get("Web.Client.PrefPanelConfirmReset"))){this._inputsThatDifferFromDefaults.copy().forEach(function(e){var n=i.gwUtil.getDomNodeOrThrow("#"+e),r=n.querySelector("input, select"),o=t.getDefaultValue(n.id);c.gwInputs.isCheckbox(r)?r.checked=t.normalizeBooleanDefaultValue(o):c.gwInputs.setValueOnSelect(r,t.normalizeStringDefaultValue(o)),t.change(n)})}},e.prototype.onOpen=function(){this._formWasDirtyWhenPanelOpened=u.gwForm.isDirty(),this.findInputsThatDifferFromDefaults(),this.enableOrDisableRestoreDefaultsButton(),this.storeUnderlyingPageFocus(),this.setupFocusLock()},e.prototype.setupFocusLock=function(){var t=document.getElementById("gw-PrefPanel--bottom");if(t){var e=t.querySelectorAll(".gw-Pref--val"),n=e[e.length-1];n&&n.setAttribute("data-gw-focus-lock-bottom",""),v.gwFocus.forceFocus(t,!0)}},e.prototype.getPrefNameFromDomIdOrName=function(t){return t.replace("GwPreference_","")},e.prototype.close=function(){i.gwUtil.hideOnDemandElement(this.PREF_PANEL_ID),this._dirtyPrefs.clear(),this._inputsThatDifferFromDefaults.clear(),this.restoreUnderlyingPageFocus()},e.prototype.storeUnderlyingPageFocus=function(){this._underlyingPageFocus=v.gwFocus.getCurrentFocus(),this.getPrimaryPanels().forEach(function(t){t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")})},e.prototype.restoreUnderlyingPageFocus=function(){this.getPrimaryPanels().forEach(function(t){t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden")}),this._underlyingPageFocus&&v.gwFocus.forceFocus(this._underlyingPageFocus,!0)},e.prototype.getPrimaryPanels=function(){var t=[];return t.push(document.getElementById("gw-north-panel")),t.push(document.getElementById("gw-west-panel")),t.push(document.getElementById("gw-center-panel")),t.push(document.getElementById("gw-south-panel")),t.filter(Boolean)},e.prototype.getAllPrefValueWidgets=function(){return i.gwUtil.getDomNodes(".gw-Pref")},e.prototype.setAlternateActionsIcon=function(t){i.gwUtil.conditionalAddRemoveClass(t,".gw-MenuActionsWidget",".gw-alternate-actions-icon")},e.prototype.setToolbarPrefs=function(){i.gwUtil.conditionalAddRemoveClass(this.getPrefValueByPrefName("leftAlignTopToolbar"),"#gw-center-title-toolbar",".gw-top-toolbar-left")},e.prototype.setTextShadowPref=function(){i.gwUtil.conditionalAddRemoveClass(this.getPrefValueByPrefName("forceTextShadows"),"body",".gw-force-text-shadows")},e.prototype.setDatePrefs=function(){i.gwUtil.conditionalAddRemoveClass(this.getPrefValueByPrefName("smallDatePicker"),"#gw-body",".gw-small-date-picker"),i.gwUtil.conditionalAddRemoveClass(this.getPrefValueByPrefName("complexDatePicker"),"#gw-body",".gw-complex-date-picker")},e.prototype.setDebugPrefs=function(){f.gwApp.shouldFlash=this.getPrefValueByPrefName("showDrawFlash"),i.gwUtil.conditionalAddRemoveClass(this.getPrefValueByPrefName("showWidgetTypesAsInlineTitles"),"#gw-root-form","gw-debug-show-widget-types-as-inline-titles")},e.prototype.setFontSize=function(t){i.gwUtil.hasValue(t)&&"default"!==t?document.body.style.fontSize=t+"px":document.body.style.fontSize=null},e.prototype.setGlobalSpacing=function(t){if(i.gwUtil.hasValue(t)&&"default"!==t){var e=window.getComputedStyle(document.body,void 0).getPropertyValue("font-size"),n=parseFloat(e);document.documentElement.style.fontSize=parseFloat(t)*n+"px"}else document.documentElement.style.fontSize=null},e.prototype.setGeneralPrefs=function(){i.gwUtil.conditionalAddRemoveAttr(this.getPrefValueByPrefName("disableBrowserAutocomplete"),"#gw-root-form","autocomplete",p.gwEvents.BREAK_AUTOCOMPLETE_VALUE),i.gwUtil.conditionalAddRemoveClass(this.getPrefValueByPrefName("highlightDirtyData"),"#gw-root-form","gw-highlight-changed-data")},e.prototype.findInputsThatDifferFromDefaults=function(){var t=this;this._inputsThatDifferFromDefaults.clear(),i.gwUtil.forEach(this.getAllPrefValueWidgets(),function(e){var n=e.querySelector("input, select");t.differsFromDefaultValue(e,n)&&t._inputsThatDifferFromDefaults.add(e.id)})},e.prototype.differsFromDefaultValue=function(t,e){var n=this.getDefaultValue(t.id);return c.gwInputs.isCheckbox(e)?e.checked!==this.normalizeBooleanDefaultValue(n):e.value!==this.normalizeStringDefaultValue(n)},e.prototype.normalizeBooleanDefaultValue=function(t){return Boolean(t)},e.prototype.normalizeStringDefaultValue=function(t){return void 0===t?"":String(t)},e.prototype.getDefaultValue=function(t){return h.gwConfig.prefPanelDefaults()[this.getPrefNameFromDomIdOrName(t)]},e.prototype.enableOrDisableRestoreDefaultsButton=function(){var t=0===this._inputsThatDifferFromDefaults.size();i.gwUtil.conditionalAddRemoveAttr(t,"#gw-PrefPanel--reset","aria-disabled","true")},e}(l.GwOrderDependentInitializableSystem);e.GwPrefPanel=y,e.gwPrefPanel=new y},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(4),a=n(15),u=n(0),s=n(53),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ajaxRequestCount=0,e.serverErrorHandlers=[e.badResponse.bind(e),e.httpError.bind(e),e.timedOut.bind(e),e.loggedOut.bind(e),e.alertDisplayable.bind(e)],e}return r(e,t),e.prototype.getSystemName=function(){return"gwAjax"},e.prototype.hasPendingAjaxRequests=function(){return 0!==this.ajaxRequestCount},e.prototype.getCsrfToken=function(){return u.gwUtil.getUtilityInfo("csrfToken")},e.prototype.ajaxRequest=function(t,e,n){var r=this;t[u.gwUtil.CSRF_PARAM_NAME]=this.getCsrfToken();var i={url:window.location.href,data:t,dataType:"json",type:"POST",beforeSend:function(){r.ajaxRequestCount++},success:function(t,i,o){r.ajaxRequestCount--,r.onRequestSuccess(o,t,e,n)},error:function(t,e,i){r.ajaxRequestCount--,r.onRequestError(t,e,i,n)},timeout:s.gwConfig.serverTimeoutMillis()};$.ajax(i)},e.prototype.onRequestSuccess=function(t,e,n,r){0===this.determineErrorType(e,null)?n(e):this.onRequestError(t,null,e.exceptionText,r,e)},e.prototype.onRequestError=function(t,e,n,r,i){var o,a=this.determineErrorType(i,e);r&&(o=r(t,i,a,n)),!0!==o&&this.handleFailedRequest(t,i,a,n)},e.prototype.determineErrorType=function(t,e){if(e)switch(e){case"timeout":return 5;default:return 4}return t?t.loggedOut?2:t.displayableError?3:0:4},e.prototype.addServerErrorHandler=function(t){return this.serverErrorHandlers.indexOf(t)>=0?t:(this.serverErrorHandlers.push(t),t)},e.prototype.removeServerErrorHandler=function(t){if(t){var e=this.serverErrorHandlers.indexOf(t);e>=0&&this.serverErrorHandlers.splice(e,1)}},e.prototype.handleFailedRequest=function(t,e,n,r){this.callServerErrorHandlers(t,e,n,r)||u.gwUtil.devlog("Unable to handle server error, ",[t,e,n,r])},e.prototype.callServerErrorHandlers=function(t,e,n,r){for(var i=this.serverErrorHandlers.length-1;i>0;i--)try{if(!0===(0,this.serverErrorHandlers[i])(t,e,n,r))return!0}catch(t){}return!1},e.prototype.timedOut=function(t,e,n){return 5===n&&(alert(a.gwDisplayKey.get("Web.Client.HTTPRequestTimedOut")),!0)},e.prototype.loggedOut=function(t,e){return!(!e||!e.loggedOut)&&(alert(a.gwDisplayKey.get("Web.Client.AjaxRequestSessionExpired")),o.gwEvents.clearBeforeUnload(),window.location.href=e.entryPoint,!0)},e.prototype.httpError=function(t,e,n,r){return 4===n&&(alert(a.gwDisplayKey.get("Web.Client.HTTPRequestFailed",t.status,r||"")),!0)},e.prototype.alertDisplayable=function(t,e){return!(!e||!e.exceptionText)&&(alert(a.gwDisplayKey.get("Web.Client.AjaxRequestServerError",e.exceptionText)),!0)},e.prototype.badResponse=function(t,e,n){return alert(a.gwDisplayKey.get("Web.Client.HTTPRequestBadResponse",t.status,n)),!0},e}(i.GwRegisteredSystem);e.GwAjax=c,e.gwAjax=new c},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(0),a=n(14),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getSystemName=function(){return"gwAria"},e.prototype.addRoleAttributeToElement=function(t,e){e.setAttribute("role",""+t)},e.prototype.addAriaPropertyToElement=function(t,e,n){var r=this.getAriaAttributeAndValue(t,e);n.setAttribute(r.attribute,r.value)},e.prototype.setAriaPropertyForElement=function(t,e,n){this.addAriaPropertyToElement(t,e,n)},e.prototype.getAriaAttributeAndValue=function(t,e){return{attribute:"aria-"+t,value:Array.isArray(e)?e.join(" "):""+e}},e.prototype.addAriaPropertyWithReferencesToElement=function(t,e,n){var r=[];o.gwUtil.forEach(n,function(t){t.hasAttribute("id")?r.push(t.id):console.error("Attempting to set an ARIA based reference using a dom element without an id:")}),this.addAriaPropertyToElement(t,r,e)},e.prototype.addAriaLabelToInputIfPrefixedOrSuffixed=function(t){var e=a.gwForm.findEnclosingValueWidget(t);if(e){var n=e.querySelector(".gw-ValueWidget--prefix"),r=e.querySelector(".gw-ValueWidget--suffix");if(n||r){var i=t.value;n&&n.textContent&&(i=n.textContent+" "+i),r&&r.textContent&&(i=i+" "+r.textContent),this.setAriaPropertyForElement("label",i,t)}}},e}(i.GwRegisteredSystem);e.GwAria=u,e.gwAria=new u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=n(23),a=n(0),u=n(3),s=n(73),c=n(4),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.CURRENT_EDIT_CONTROLLERS_KEY="currentEditControllers",e.FORM_EDIT_VALUES_BY_ID_KEY="formEditValuesById",e.CHANGED_CSS_CLASS="gw-changed",e.EDIT_CONTROLLER_DATA_ATTR="data-gw-edit-id",e.EDIT_CONTROLLER_NO_TRACK_ATTR="data-gw-no-track",e.NO_TRACK_CSS_CLASS="gw-noTrack",e.ADDED_ENTRY_VALUE=[],e}return r(e,t),e.prototype.getSystemName=function(){return"gwForm"},e.prototype.init=function(t){var e=this.handleNewEditableControllers();this.updateDirtyStatusOfInputs(e)},e.prototype.isDirty=function(){return!!document.querySelector("."+this.CHANGED_CSS_CLASS)},e.prototype.isInputDirty=function(t){var e=t.name;if(t.hasAttribute(e)&&(!a.gwUtil.hasValue(e)||0===e.length))return!1;var n=this.findEnclosingValueWidget(t);if(!n)return!1;var r=a.gwUtil.getSelfOrFirstParentWithAttr(t,this.EDIT_CONTROLLER_DATA_ATTR);if(!r||r.hasAttribute(this.EDIT_CONTROLLER_NO_TRACK_ATTR))return!1;var i=r.getAttribute(this.EDIT_CONTROLLER_DATA_ATTR);if(!i)return!1;var o=this.getValueWidgetOriginalServerValue(n,i);return this.updateChangedBasedOnOriginalServerValue(n,o)},e.prototype.findEnclosingValueWidget=function(t){return a.gwUtil.getSelfOrFirstParentWithClass(t,".gw-ValueWidget",c.gwEvents.LIMITED_PARENT_SEARCH_STEPS_FOR_RAPID_FIRE_EVENTS)},e.prototype.getValueWidgetOriginalServerValue=function(t,e){if(t.id){if(void 0===e){var n=a.gwUtil.getSelfOrFirstParentWithAttr(t,this.EDIT_CONTROLLER_DATA_ATTR);if(!n)throw new Error("Unable to locate screen widget for value widget: "+t.id);e=n.getAttribute(this.EDIT_CONTROLLER_DATA_ATTR)||""}if(e){var r=o.gwStorage.get(this.FORM_EDIT_VALUES_BY_ID_KEY+"."+e);if(r)return r[this.getValueId(t)]}}},e.prototype.updateChangedBasedOnOriginalServerValue=function(t,e){if(a.gwUtil.hasClass(t,this.NO_TRACK_CSS_CLASS))return!1;if(!t.id)return!1;var n=i.gwInputs.getValueById(t.id),r=this.isFromAddedEntry(e)||!a.gwUtil.shallowCompare(n,e),o=t.getAttribute("data-gw-getset");return"multiselect"===o?this.markMultiselectOptionsAsDirty(t,n,e):"checkboxgroup"===o&&this.markCheckboxgroupOptionsAsDirty(t,n,e),a.gwUtil.conditionalAddRemoveClass(r,t,this.CHANGED_CSS_CLASS),r},e.prototype.markMultiselectOptionsAsDirty=function(t,e,n){var r=this,i=t.querySelectorAll("select[multiple]");if(0!==i.length){var o=s.GwSet.createFromArray(e),u=s.GwSet.createFromArray(n),c=i[i.length-1];a.gwUtil.forEachReverse(c.options,function(t){var e=t.value,i=r.isFromAddedEntry(n)||o.has(e)!==u.has(e);a.gwUtil.conditionalAddRemoveClass(i,t,"gw-changed")})}},e.prototype.markCheckboxgroupOptionsAsDirty=function(t,e,n){var r=this,i=t.querySelectorAll("input[type='checkbox']");if(0!==i.length){var o=s.GwSet.createFromArray(e),u=s.GwSet.createFromArray(n);a.gwUtil.forEachReverse(i,function(t){var e=t.value,i=r.isFromAddedEntry(n)||o.has(e)!==u.has(e);a.gwUtil.conditionalAddRemoveClass(i,t,"gw-changed")})}},e.prototype.getEditableValueWidgetsForController=function(t){var e=this.getScreenElWithEditControllerId(t);return e&&!e.hasAttribute(this.EDIT_CONTROLLER_NO_TRACK_ATTR)?a.gwUtil.getDomNodes(".gw-editable",e):[]},e.prototype.handleNewEditableControllers=function(){var t=this,e=this.getCurrentEditableControllers(),n=new s.GwSet(a.gwUtil.getUtilityInfo("gw-editableControllers").split(","));return n.forEach(function(n){e.has(n)||t.addNewController(n)}),this.setCurrentEditableControllers(n),n},e.prototype.addNewController=function(t){var e=this,n=this.getEditableValueWidgetsForController(t),r={};a.gwUtil.forEachReverse(n,function(t){r[e.getValueId(t)]=e.getOriginalServerValue(t)}),o.gwStorage.set(this.FORM_EDIT_VALUES_BY_ID_KEY+"."+t,r)},e.prototype.getScreenElWithEditControllerId=function(t){return a.gwUtil.getDomNodeByAttr(this.EDIT_CONTROLLER_DATA_ATTR,t)},e.prototype.updateDirtyStatusOfInputs=function(t){var e=this,n=o.gwStorage.get(this.FORM_EDIT_VALUES_BY_ID_KEY),r=!1,i=!1,u={};a.gwUtil.forEach(n,function(n,o){if(t.has(o)){var s=e.getEditableValueWidgetsForController(o),c=a.gwUtil.mapMerge({},n);u[o]=c,a.gwUtil.forEach(s,function(t){if(t.id){var r=e.getValueId(t);if(n.hasOwnProperty(r)){var o=n[r];e.updateChangedBasedOnOriginalServerValue(t,o)}else{var o=e.getOriginalServerValue(t);i=!0,c[r]=o,e.isFromAddedEntry(o)&&e.updateChangedBasedOnOriginalServerValue(t,o)}}})}else r=!0}),(r||i)&&o.gwStorage.set(this.FORM_EDIT_VALUES_BY_ID_KEY,u)},e.prototype.inputElementChanged=function(t){this.isInputDirty(t)},e.prototype.getCurrentEditableControllers=function(){var t=o.gwStorage.get(this.CURRENT_EDIT_CONTROLLERS_KEY)||[];return new s.GwSet(t)},e.prototype.setCurrentEditableControllers=function(t){o.gwStorage.set(this.CURRENT_EDIT_CONTROLLERS_KEY,t.toArray())},e.prototype.getOriginalServerValue=function(t){return a.gwUtil.getSelfOrFirstParentWithAttr(t,"data-gw-added-entry")?this.ADDED_ENTRY_VALUE:i.gwInputs.getValueById(t)},e.prototype.isFromAddedEntry=function(t){return t===this.ADDED_ENTRY_VALUE},e.prototype.getValueId=function(t){var e="data-gw-entry-value-ids",n=a.gwUtil.getSelfOrFirstParentWithAttr(t,e);if(!n)return t.id;for(var r=n.getAttribute(e);;){if(null===(n=a.gwUtil.getSelfOrFirstParentWithAttr(n.parentElement,e)))break;r=n.getAttribute(e)+","+r}return r+","+t.id.replace(/-\d+/g,"-0")},e}(u.GwInitializableSystem);e.GwForm=l,e.gwForm=new l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(26),a=n(41),u=n(2),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getSystemName=function(){return"gwDisplayKey"},e.prototype.get=function(t){for(var e=[],n=1;n=0;s--){var c=o[s];c&&(c.offsetWidth<=0||c.getBoundingClientRect().right>=i&&u.push(c))}for(var s=0;se._lastCenterScrollTop&&e.setNavToHide(),e._lastCenterScrollTop=n,e._lastCenterScrollHeight=t.scrollHeight))},10))},e}(s.GwOrderDependentInitializableSystem);e.GwResizer=h,e.gwResizer=new h},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(i.GwRegisteredSystem);e.GwOrderDependentInitializableSystem=o},function(t,e,n){"use strict";function r(t,e){this._groups=t,this._parents=e}function i(){return new r([[document.documentElement]],F)}n.d(e,"c",function(){return F}),e.a=r;var o=n(283),a=n(284),u=n(285),s=n(286),c=n(163),l=n(288),f=n(289),d=n(290),h=n(291),p=n(292),g=n(293),v=n(294),y=n(295),w=n(296),m=n(297),b=n(298),_=n(165),E=n(299),O=n(300),C=n(301),S=n(302),A=n(303),T=n(304),x=n(305),D=n(306),P=n(307),I=n(308),M=n(309),j=n(101),N=n(310),F=[null];r.prototype=i.prototype={constructor:r,select:o.a,selectAll:a.a,filter:u.a,data:s.a,enter:c.b,exit:l.a,merge:f.a,order:d.a,sort:h.a,call:p.a,nodes:g.a,node:v.a,size:y.a,empty:w.a,each:m.a,attr:b.a,style:_.a,property:E.a,classed:O.a,text:C.a,html:S.a,raise:A.a,lower:T.a,append:x.a,insert:D.a,remove:P.a,clone:I.a,datum:M.a,on:j.b,dispatch:N.a},e.b=i},function(t,e,n){"use strict";var r=n(103);n.d(e,"a",function(){return r.a});var i=n(172);n.d(e,"b",function(){return i.a});var o=n(106);n.d(e,"c",function(){return o.b});var a=n(170);n.d(e,"d",function(){return a.a});var u=n(173);n.d(e,"g",function(){return u.a});var s=n(77);n.d(e,"m",function(){return s.a});var c=n(174);n.d(e,"n",function(){return c.a});var l=n(320);n.d(e,"r",function(){return l.a});var f=n(175);n.d(e,"s",function(){return f.a});var d=n(321);n.d(e,"t",function(){return d.a}),n.d(e,"u",function(){return d.b});var h=n(324);n.d(e,"v",function(){return h.a});var p=n(169);n.d(e,"o",function(){return p.a}),n.d(e,"p",function(){return p.b}),n.d(e,"q",function(){return p.c});var g=n(325);n.d(e,"j",function(){return g.a}),n.d(e,"k",function(){return g.b});var v=n(326);n.d(e,"l",function(){return v.a});var y=n(327);n.d(e,"h",function(){return y.a}),n.d(e,"i",function(){return y.b});var w=n(328);n.d(e,"e",function(){return w.b}),n.d(e,"f",function(){return w.a});var m=n(329);n.d(e,"w",function(){return m.a})},function(t,e,n){"use strict";function r(t,e){var n=o(t,e);if(n.state>f)throw new Error("too late; already scheduled");return n}function i(t,e){var n=o(t,e);if(n.state>h)throw new Error("too late; already started");return n}function o(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function a(t,e,n){function r(t){n.state=d,n.timer.restart(i,n.delay,n.time),n.delay<=t&&i(t-n.delay)}function i(r){var l,f,v,w;if(n.state!==d)return a();for(l in c)if(w=c[l],w.name===n.name){if(w.state===p)return Object(s.c)(i);w.state===g?(w.state=y,w.timer.stop(),w.on.call("interrupt",t,t.__data__,w.index,w.group),delete c[l]):+l0;)i.forEach(function(e){a.gwUtil.hasClass(u,e)&&(o=r.findMatchingKeyListener(t,r.contextualKeyListeners[e],n))}),u=u.parentElement;return o},n.prototype.getShortcutToKeyCode=function(t){return this.shortcutKeyWordToKeyCodeMap[t]||this.keyCodeMap[t]||t.charCodeAt(0)},n.prototype.findMatchingServerShortcutKeyListener=function(t,e){var n=o.gwEvents.getCurrentShortcutOwner();return"SOUTH"===n?this.findMatchingKeyListener(t,this.serverShortcutKeyListeners.S,e)||this.findMatchingKeyListener(t,this.serverShortcutKeyListeners.W,e)||this.findMatchingKeyListener(t,this.serverShortcutKeyListeners.N,e):"CENTER"===n?this.findMatchingKeyListener(t,this.serverShortcutKeyListeners.C,e)||this.findMatchingKeyListener(t,this.serverShortcutKeyListeners.W,e)||this.findMatchingKeyListener(t,this.serverShortcutKeyListeners.N,e):this.findMatchingKeyListener(t,this.serverShortcutKeyListeners[n],e)||this.findMatchingKeyListener(t,this.serverShortcutKeyListeners.C,e)||this.findMatchingKeyListener(t,this.serverShortcutKeyListeners.S,e)||this.findMatchingKeyListener(t,this.serverShortcutKeyListeners.W,e)||this.findMatchingKeyListener(t,this.serverShortcutKeyListeners.N,e)},n.prototype.findMatchingKeyListener=function(t,e,n){return this.findMatchingKeyListeners(t,e,n,!0)[0]||null},n.prototype.findMatchingKeyListeners=function(t,e,n,r){void 0===r&&(r=!1);var i=[];if(e)for(var a=t.shiftKey,u=t.altKey,s=t.ctrlKey,c=t.metaKey,l=0;l1e3));o++)u=a,this.set("MaxOutStorageTest"+o+Math.random(),e);t||localStorage.clear()},e.prototype.updateSessionId=function(){var t=i.gwUtil.getSessionInfo(),e=t.appId+":"+t.userId,n=t.isNew&&t.userId;n&&this._sessionId&&this.clearStorage(),this._sessionId=e,n&&this.clearStorage()},e.prototype.getValueAtDotPath=function(t,e,n){void 0===n&&(n=!1);for(var r=Array.isArray(t)?t:t.split("."),i=e,o=0;o2?t[2]%360*f.r:0,o()):[M*f.h,j*f.h,N*f.h]},e.precision=function(t){return arguments.length?(B=Object(g.a)(i,L=t*t),h()):Object(f.u)(L)},e.fitExtent=function(t,n){return Object(p.a)(e,t,n)},e.fitSize=function(t,n){return Object(p.c)(e,t,n)},e.fitWidth=function(t,n){return Object(p.d)(e,t,n)},e.fitHeight=function(t,n){return Object(p.b)(e,t,n)},function(){return y=t.apply(this,arguments),e.invert=y.invert&&n,o()}}e.a=i,e.b=o;var a=n(188),u=n(194),s=n(82),c=n(187),l=n(117),f=n(1),d=n(81),h=n(83),p=n(120),g=n(423),v=Object(h.b)({point:function(t,e){this.stream.point(t*f.r,e*f.r)}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),i=n(147),o=function(){function t(){this._api=null,this.draggable={},this.sockets={},this.displaykeyvalues=null}return Object.defineProperty(t.prototype,"globals",{get:function(){return r.GwRegisteredSystem.registeredSystems},enumerable:!0,configurable:!0}),t.prototype.registerDraggableSystem=function(t){if(this.draggable.hasOwnProperty(t.getSystemName()))throw new Error("Attempting to register a draggable system object with a system name that's already been registered: "+t.getSystemName());this.draggable[t.getSystemName()]=t},t.prototype.registerWebsocketSystem=function(t){if(this.sockets.hasOwnProperty(t.getSystemName()))throw new Error("Attempting to register a socket system object with a system name that's already been registered: "+t.getSystemName());this.sockets[t.getSystemName()]=t},Object.defineProperty(t.prototype,"api",{get:function(){return null===this._api&&(this._api=new i.GwApi),this._api},enumerable:!0,configurable:!0}),t}();e.Gw=o,e.gw=new o,window.gw=e.gw},function(t,e,n){"use strict";n.d(e,"d",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"a",function(){return a}),n.d(e,"e",function(){return u});var r=1e3,i=6e4,o=36e5,a=864e5,u=6048e5},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(23),a=n(18),u=n(11),s=n(136),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.DO_NOT_PERSIST_SCROLL={"gw-west-panel--children--wrapper":!0},e.LOC_NAME_ATTR="data-gw-location-name",e.LOC_OBJECT_CLASS=".gw-location-name",e.DEST_HASH_ATTR="data-gw-dest-hash",e.SCREEN_WIDGET_CLASS=".gw-ScreenWidget",e.scrollKey="scroll",e}return r(e,t),e.prototype.getSystemName=function(){return"gwScroll"},e.prototype.orderSpecificInit=function(t,e){t&&this.clearStoredScrollPositions()},e.prototype.setScreenScrollTo0=function(t){var e=i.gwUtil.getSelfOrFirstParentWithClass(t,this.SCREEN_WIDGET_CLASS);e&&this.scrollElTo0(e)},e.prototype.scrollElTo0=function(t){if(t){t.scrollTop=0,t.scrollLeft=0;var e=this.getStorageKeyForNode(t);e&&this.setTopAndLeftInStorage(e)}},e.prototype.getLocationObject=function(){return i.gwUtil.getDomNode(this.LOC_OBJECT_CLASS)},e.prototype.getLocationKey=function(){var t=this.getLocationObject();if(!t)return null;var e=t.getAttribute(this.DEST_HASH_ATTR);if(!e)return null;var n=t.getAttribute(this.LOC_NAME_ATTR);return n&&(e=e+"."+n),e},e.prototype.getStorageKeyForNode=function(t){var e=t.id;if(!e)return null;var n=this.getLocationKey();return n?this.scrollKey+"."+n+"."+e:null},e.prototype.storeScrollForNode=function(t){if(!this.DO_NOT_PERSIST_SCROLL.hasOwnProperty(t.id)&&!t.hasAttribute("data-gw-no-persist-scroll")){var e=this.getStorageKeyForNode(t);if(e){var n=t.scrollTop||0,r=t.scrollLeft||0;(n+r>0||o.gwStorage.get(e))&&this.setTopAndLeftInStorage(e,n,r)}}},e.prototype.setTopAndLeftInStorage=function(t,e,n){e=e||0,n=n||0,o.gwStorage.set(t,{top:e,left:n})},e.prototype.restoreScrollForNode=function(t){var e=this.getStorageKeyForNode(t);if(e){if(t.querySelector(".gw-alert-error")&&u.gwPrefPanel.getPrefValueByPrefName("scrollToTopOnError")&&!s.gwMessages.willFocusElementOnNextPageLoad())return void this.scrollElTo0(t);var n=o.gwStorage.get(e);n&&(t.scrollTop=n.top,t.scrollLeft=n.left)}},e.prototype.clearStoredScrollPositions=function(){o.gwStorage.set(this.scrollKey,{})},e.prototype.getScrollNodesInDom=function(){return i.gwUtil.getDomNodes("div")},e.prototype.saveScrollPositions=function(){var t=this.getScrollNodesInDom();i.gwUtil.forEach(t,this.storeScrollForNode.bind(this))},e.prototype.canScroll=function(t){return t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth},e.prototype.scrollElBy=function(t,e,n){return e&&(t.scrollLeft=t.scrollLeft+e),n&&(t.scrollTop=t.scrollTop+n),t},e.prototype.scrollElementIntoView=function(t,e){if(e&&this.canScroll(t)){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=0,o=0;r.topn.bottom&&(i=r.bottom-n.bottom),r.leftn.right&&(o=r.right-n.right),this.scrollElBy(t,o,i)}},e}(a.GwOrderDependentInitializableSystem);e.GwScroll=c,e.gwScroll=new c},function(t,e,n){"use strict";function r(t){var n=setTimeout(function(){e.gwApp.fireAfterPartialPageReload({reason:f.GwPartialReloadReason.THEME_CHANGE})},e.gwApp.MAX_WAIT_FOR_THEME),r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.href="css/gen/"+t+".css",r.onload=function(){window.clearTimeout(n),document.documentElement.id=t,e.gwApp.fireAfterPartialPageReload({reason:f.GwPartialReloadReason.THEME_CHANGE}),p.gwUtil.fireCustomEvent("themeChange",{themeId:t})},document.getElementsByTagName("head")[0].appendChild(r)}function i(t){var e=t.toLowerCase();return e.indexOf("dark")>-1?"gw-theme--darcula":e.indexOf("banff")>-1?"gw-theme--cloud-banff":"gw-theme--cloud"}function o(){var t=new URLSearchParams(window.location.search),n=t.get(e.gwApp.THEME_NAME_SEARCH_PARAM);if(!n)return null;var r=i(n);return document.documentElement.id!==r?r:null}var a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var u=n(255),s=n(256),c=n(548),l=n(2),f=n(16),d=n(11),h=n(71),p=n(0),g=n(4),v=n(41),y=n(53),w=n(23),m=n(74),b=n(230),_=n(231),E=n(17),O=n(6),C=n(32),S=n(28),A=n(48),T=n(236),x=n(12),D=n(139),P=n(9),I=n(3);window.$=u,window.d3=s,c.sideEffect=1;var M=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.MAX_WAIT_FOR_THEME=3e3,e.maxElementsToReplacePerFrame=1e3,e.shouldFlash=!1,e.showDevLogs=!1,e.showEventLogs=!1,e.showTraceInLogs=!1,e.newSession=!1,e.enableWebsocket=!1,e.EVENT_THROTTLE_MAX_REQUESTS_PER_SECOND=null,e.THEME_NAME_SEARCH_PARAM="initialTheme",e._shortcutHelpFocusRestore=null,e.isNavigating=!1,e.namedNoFormInputs={},e}return a(n,t),n.prototype.getSystemName=function(){return"gwApp"},n.prototype.fireAfterFullPageReload=function(){this.abstractReload(!0),this.registerAjaxForm()},n.prototype.fireAfterPartialPageReload=function(t){this.abstractReload(!1,t),h.gwPerfAnalyzer.responseProcessed()},n.prototype.fireAfterGwBodyReplace=function(){this.hideBody(),this.fireAfterPartialPageReload({reason:f.GwPartialReloadReason.REPLACE_BODY})},n.prototype.showBody=function(){var t=document.querySelector("body");if(!t)throw new Error("Unable to find a body element");t.style.visibility="visible",t.style.opacity="1"},n.prototype.hideBody=function(){var t=document.querySelector("body");if(!t)throw new Error("Unable to find a body element");t.style.visibility=null,t.style.opacity=null},n.prototype.resetInitOnlyValues=function(){this.newSession=!1},n.prototype._dev_showBodyAfterReloadChunk=function(){this.showBody()},n.prototype.popupAboutWindow=function(){return window.open(p.gwUtil.getCurrentUrlWithNewHandlerName("about"),"gwAboutPopupWindow","width=620, height=330")},n.prototype.openShortcutHelp=function(){var t=this;d.gwPrefPanel.cancel(),p.gwUtil.showOnDemandElement("gw-ShortcutPopupHelp",function(){return t.onOpenShortcutHelp()})},n.prototype.onOpenShortcutHelp=function(){this._shortcutHelpFocusRestore=O.gwFocus.getCurrentFocus();var t=document.getElementById("gw-ShortcutPopupHelp--close");t&&O.gwFocus.forceFocus(t,!0)},n.prototype.closeShortcutHelp=function(){p.gwUtil.hideOnDemandElement("gw-ShortcutPopupHelp"),this._shortcutHelpFocusRestore&&O.gwFocus.forceFocus(this._shortcutHelpFocusRestore,!0)},n.prototype.prepareForExitPointNavigation=function(t){void 0===t&&(t=!1),t?(g.gwEvents.clearBeforeUnload(),this.isNavigating=!0):(g.gwEvents.possiblyAddOnBeforeUnloadHandler(),g.gwEvents.isBeforeUnloadRegistered()||(this.isNavigating=!0))},n.prototype.getPreInitializationOrderSpecificSystems=function(){return[v.gwLocale,y.gwConfig,w.gwStorage,d.gwPrefPanel,b.gwServerEvents,_.gwOps]},n.prototype.getPostInitializationOrderSpecificSystems=function(){return[D.gwCrossOriginInternal,g.gwEvents,E.gwResizer,S.gwScroll]},n.prototype.abstractReload=function(t,e){t&&p.gwUtil.isIE11()&&this.addIE11Polyfills(),m.gwPreferences.init(),p.gwUtil.isInIframe()?this.handleReloadWhileInIframe(t,e):this.handleReloadNotInIframe(t,e)},n.prototype.initializeAllSystemsReturnTrueIfNavigating=function(t,e){for(var n=0,r=this.getPreInitializationOrderSpecificSystems();n0;){if(a.gwUtil.hasClass(r,"gw-action--outer")){if(a.gwUtil.hasClass(r,"gw-hasChildren"))return r;if(e)return null}r=r.parentElement}return null},n.prototype.openSubMenuMouseEnter=function(t){var e=this.getEnteredMenuNode(t);return null!=e&&this.openSubMenu(e,"mouseenter")},n.prototype.getEnteredMenuNode=function(t){if(t.hasAttribute("data-gw-menu-hover"))return t;if(a.gwUtil.hasClass(t,"gw-action--inner")){var e=t.parentElement;if(null!=e&&e.hasAttribute("data-gw-menu-hover")&&!a.gwUtil.isDisabled(e))return e}return null},n.prototype.isSubMenusBelow=function(t){return a.gwUtil.hasClass(t,"gw-putSubMenusBelow")},n.prototype.focusChangedViaTabPossiblyCloseAbandonedMenus=function(t){if(t&&t.parentElement){this.closeAllMenus(!1);if($(t).parents(".gw-subMenu")[0]){var e=$(t.parentElement).parents(".gw-hasChildren")[0];e&&this.makeMenuVisibleInDom(e)}}},n.prototype.makeMenuVisibleInDom=function(t){var e=this,n=this.isSubMenusBelow(t),r=t.querySelector(".gw-subMenu");if(r){var i=a.gwUtil.hasClass(t,"gw-staticMenus");a.gwUtil.addClass(t,"gw-hasOpenSubMenu"),a.gwUtil.addClass(r,"gw-open"),c.gwAria.setAriaPropertyForElement("hidden",!1,r);var o=t.querySelector(".gw-action--inner");if(c.gwAria.setAriaPropertyForElement("expanded",!0,o),window.requestAnimationFrame(function(){if(!i){e.resetHiddenMenus(r);var o=t.getBoundingClientRect(),a=e.getSubMenuHeight(r),u=e.getSubMenuWidth(r),s=e.getBoundaries(),c=0;c=o.right+u>s.right?n?o.right-u:o.left-u:n?o.left:o.right,c=Math.max(c,0),!n&&co.left&&(n=!0),r.style.left=c+"px",a>s.bottom-s.top?e.buildScrollingMenu(r,s,r.style.left):(e.resetMenuArrows(r),e.buildNonScrollingMenu(r,s,a,n,o))}}),!i){if(this.currentlyOpenMenus[t.id]=t,a.gwUtil.hasClass(t,"gw-isTopLevelMenu"))return void(this.topLevelGroupMenuOpen=this.getMenuGroup(t));var u=$(t).parents(".gw-hasChildren")[0];u&&this.makeMenuVisibleInDom(u)}}},n.prototype.isMultiColumnMenu=function(t){return a.gwUtil.hasClass(t.firstElementChild,"gw-menu-col")},n.prototype.getSubMenuWidth=function(t){var e=0;return t.children&&t.children.length>0&&(this.isMultiColumnMenu(t)?a.gwUtil.forEach(t.children,function(t){e+=Math.ceil(t.getBoundingClientRect().width)}):e=Math.ceil(t.getBoundingClientRect().width)),e},n.prototype.getSubMenuHeight=function(t){var e=this,n=0;if(t.children&&t.children.length>0){if(this.isMultiColumnMenu(t)){var r=0;return a.gwUtil.forEach(t.children,function(t){var n=e.getSubMenuHeight(t);n>r&&(r=n)}),r}a.gwUtil.forEach(t.children,function(t){n+=t.offsetHeight})}return n},n.prototype.resetHiddenMenus=function(t){$(t.children).removeClass("gw-hidden-menu")},n.prototype.resetMenuArrows=function(t){$(t).find("> div.gw-scrolling-menu-arrow").remove(),$(t).removeClass("gw-subMenu--scrolling")},n.prototype.buildScrollingMenu=function(t,e,n){var r=this,i=this.getMenuId(t),o=i+"_menuUp",u=i+"_menuDown",s=t.offsetWidth,c=!1,l=!1,f=$(t).find("#"+o)[0];f||(f=this.buildArrow(o,"gw-menu--up-arrow","Up",""+s),f.style.top="0px",$(f).attr("aria-disabled","true"),$(f).appendTo(t),c=!0),f.style.left=n;var d=$(t).find("#"+u)[0];d||(d=this.buildArrow(u,"gw-menu--down-arrow","Down",""+s),d.style.bottom="0px",$(d).appendTo(t),l=!0),d.style.left=n,c&&$(f).hover(function(){a.gwUtil.isDisabled(f)||(r.menuVerticalScrollAmount="-=15",r.scroll(t,f,d))},function(){r.menuVerticalScrollAmount=""}),l&&$(d).hover(function(){a.gwUtil.isDisabled(d)||(r.menuVerticalScrollAmount="+=15",r.scroll(t,f,d))},function(){r.menuVerticalScrollAmount=""}),t.style.top=e.top+"px",t.style.bottom=e.bottom+"px",t.style.height=e.bottom-e.top+"px",$(t).addClass("gw-subMenu--scrolling")},n.prototype.scroll=function(t,e,n){var r=this;$(t).animate({scrollTop:this.menuVerticalScrollAmount},100,"linear",function(){""!==r.menuVerticalScrollAmount&&(r.scroll(t,e,n),r.updateUpArrowStatus(t,e),r.updateDownArrowStatus(t,n))})},n.prototype.updateUpArrowStatus=function(t,e){a.gwUtil.conditionalAddRemoveAttr(t.scrollTop<=0,e,"aria-disabled","true")},n.prototype.updateDownArrowStatus=function(t,e){if(t.offsetHeight!==t.scrollHeight){var n=t.scrollTop+t.offsetHeight>=t.scrollHeight;a.gwUtil.conditionalAddRemoveAttr(n,e,"aria-disabled","true")}},n.prototype.buildArrow=function(t,e,n,r){var i=$('
')[0];return $(i).width(r),i},n.prototype.buildNonScrollingMenu=function(t,e,n,r,i){r?i.bottom+n>e.bottom?i.top-n>=e.top?t.style.top=i.top-n+"px":t.style.top=e.bottom-n+"px":t.style.top=i.bottom+"px":i.top+n>e.bottom?i.top-n>=e.top?t.style.top=i.bottom-t.clientHeight+"px":t.style.top=e.bottom-t.clientHeight+"px":t.style.top=i.top+"px"},n.prototype.scrollMenuUp=function(t,e,n){this.scrollMenu(t,"Up")},n.prototype.scrollMenuDown=function(t,e,n){this.scrollMenu(t,"Down")},n.prototype.scrollMenu=function(t,e){if(!a.gwUtil.isDisabled(t)){var n=a.gwUtil.getSelfOrFirstParentWithClass(t,"gw-subMenu");if(n){var r=this.calculateScrollAmount(n,e);n.scrollTop+=r;var i,o,u=this.getOtherArrow(t);a.gwUtil.hasClass(t,"gw-menu--up-arrow")?(i=t,o=u):(i=u,o=t),this.updateUpArrowStatus(n,i),this.updateDownArrowStatus(n,o)}}},n.prototype.calculateScrollAmount=function(t,e){var n=$(t).find(".gw-action--outer"),r=n[0].offsetHeight;return"Up"===e?-r:r},n.prototype.getOtherArrow=function(t){var e=$(t.parentElement).find("> .gw-scrolling-menu-arrow");if(2===e.length)return t===e[0]?e[1]:e[0];throw new Error("scroll arrows error")},n.prototype.getMenuId=function(t){var e=a.gwUtil.getSelfOrFirstParentWithClass(t,"gw-action--outer");if(!e)throw new Error("unable to locate enclosing menu");return e.id},n.prototype.openSubMenu=function(t,e){var n=a.gwUtil.getDomNodeOrThrow(t),r=this.getSelfOrFirstParentActionOptionallyWithChildren(n,!1);if(!r||a.gwUtil.isDisabled(r))return!1;if("mouseenter"===e&&a.gwUtil.hasClass(r,"gw-isTopLevelMenu")){var i=this.getMenuGroup(r);if(this.topLevelGroupMenuOpen!==i)return!1}return this.fetchMenuIfNeeded(r),this.storedMenuToOpenAfterClosingOthers={id:r.id,el:r},"click"!==e&&(this.closeAllMenus(),this.openStoredMenu(),!0)},n.prototype.getMenuGroup=function(t){return t.getAttribute("data-gw-menu-group")||"NoGroup"},n.prototype.closeAllMenus=function(t){var e=this;void 0===t&&(t=!0),a.gwUtil.forEach(this.currentlyOpenMenus,function(n){e.closeSubMenu(n,t)}),this.currentlyOpenMenus={}},n.prototype.closeAllMenusContainedBy=function(t){var e=this;if(!t||Object.keys(this.currentlyOpenMenus).length>100)return void this.closeAllMenus();a.gwUtil.forEach(this.currentlyOpenMenus,function(n){$.contains(t,n)&&e.closeSubMenu(n)})},n.prototype.openStoredMenu=function(){var t=this.storedMenuToOpenAfterClosingOthers.el;if(t){var e=this.storedMenuToOpenAfterClosingOthers.restoreFocusSelector;if(this.storedMenuToOpenAfterClosingOthers={},this.makeMenuVisibleInDom(t),e){var n=document.querySelector(e);o.gwNavigation.setFocusToClosestFocusableSelfOrParent(n,!0)}}},n.prototype.closeSubMenu=function(t,e){var n=this;void 0===e&&(e=!0);var r=a.gwUtil.getDomNodeOrThrow(t),s=this.getSelfOrFirstParentActionOptionallyWithChildren(r,!0);if(s){delete this.currentlyOpenMenus[s.id],a.gwUtil.removeClass(s,"gw-hasOpenSubMenu"),a.gwUtil.removeClass(s.getElementsByClassName("gw-hasOpenSubMenu"),"gw-hasOpenSubMenu"),a.gwUtil.removeClass(s.getElementsByClassName("gw-open"),"gw-open");var l=s.querySelector(".gw-action--inner");c.gwAria.setAriaPropertyForElement("expanded",!1,l),a.gwUtil.hasClass(s,"gw-isTopLevelMenu")&&(this.topLevelGroupMenuOpen="");var f=u.gwFocus.getCurrentFocus();if(!f)return void(this.storedMenuToOpenAfterClosingOthers.restoreFocusSelector=null);this.storedMenuToOpenAfterClosingOthers.restoreFocusSelector||(this.storedMenuToOpenAfterClosingOthers.restoreFocusSelector=a.gwUtil.getUniqueSelector(f));var d=document.querySelector("#"+s.id+" > .gw-subMenu");if(d&&(c.gwAria.setAriaPropertyForElement("hidden",!0,d),e)){var h=a.gwUtil.hasAnyClass(f,["gw-action--inner","gw-action--expand-button"])?f.parentElement:null;a.gwUtil.forEach(d.children,function(t){if(t.id===f.id||null!=h&&t.id===h.id)return n.storedMenuToOpenAfterClosingOthers.id!==t.id&&o.gwNavigation.setFocusToClosestFocusableSelfOrParent(f,!0),i.GW_BREAKER})}}},n.prototype.toggleSubMenu=function(t,e){var n=this.getSelfOrFirstParentActionOptionallyWithChildren(a.gwUtil.getDomNode(t),!0);if(n){var r=n.querySelector(".gw-subMenu");r&&(a.gwUtil.hasClass(r,"gw-open")?this.closeSubMenu(n):(f.gwResizer.showNavBarIfElementIsChild(n),this.fetchMenuIfNeeded(n),this.openSubMenu(n,e)))}},n.prototype.toggleFromShortcut=function(t,n){e.gwMenus.toggleSubMenu(n.target,"key");var r=a.gwUtil.getDomNode(n.target),i=a.gwUtil.getDomNode(".gw-subMenu gw-open",r);i?u.gwFocus.forceFocus(i,!1,!0):u.gwFocus.forceFocus(r,!1,!0)},n.prototype.fetchMenuIfNeeded=function(t){var e=this;if(a.gwUtil.hasValue(t.dataset.gwSubmenuOndemand)){var n=$(t).find(".gw-deferred-menuItem");n&&n.length>0&&(this.isSubMenusBelow(t)?n[0].style.width=t.offsetWidth+"px":n[0].style.height=t.offsetHeight+"px"),delete t.dataset.gwSubmenuOndemand;var r=t.querySelector(".gw-action--inner");a.gwUtil.renderDeferredChildren(t.id,function(){if(r){var n=r.getAttribute("aria-label");if(n){var i=l.gwDisplayKey.get("Web.Client.DeferredMenuAriaKeyword"),o=n.replace(i,"").trim();c.gwAria.setAriaPropertyForElement("label",o,r)}}e.openSubMenu(t)},function(){t.dataset.gwSubmenuOndemand="true",e.closeAllMenus()})}},n.prototype.createMenuItemDiv=function(t,n,r,i){var o=["gw-MenuItemWidget","gw-action--outer"],u={id:t};i&&i.length&&(o.push("gw-hasChildren"),u["data-gw-menu-hover"]="true",u["data-gw-mouseenter"]="gwMenus.openSubMenuMouseEnter");var s=a.gwUtil.createDiv(o,u),c={};r&&(c["data-gw-click"]=r,c.onclick="gw.globals.gwEvents.onElementEvent(event, this)",c.tabindex="0");var l=a.gwUtil.createDiv("gw-action--inner",c);if(s.appendChild(l),l.appendChild(a.gwUtil.createDiv("gw-icon")),l.appendChild(a.gwUtil.createDiv("gw-label",void 0,void 0,n)),i&&i.length){var f={"data-gw-click":"toggleSubMenu target:#"+t,onclick:"gw.globals.gwEvents.onElementEvent(event, this)",tabindex:"0"},d=a.gwUtil.createDiv("gw-action--expand-button",f);s.appendChild(d),d.appendChild(a.gwUtil.createDiv(["gw-icon","gw-icon--expand"]));var h=a.gwUtil.createDiv("gw-subMenu",void 0,{right:"100%",left:"auto",top:"0px",bottom:"auto"});s.appendChild(h),a.gwUtil.forEach(i,function(t){h.appendChild(e.gwMenus.createMenuItemDiv(t.id,t.label,t.click,t.children))})}return s},n.prototype.isInSubMenu=function(t){return!!t.parentElement&&a.gwUtil.hasClass(t.parentElement,"gw-subMenu")},n.prototype.isInStaticMenus=function(t){return a.gwUtil.hasClass(t,"gw-staticMenus")},n.prototype.getOuterFromInnerOrExpand=function(t){return $(t).parents(".gw-action--outer")[0]},n.prototype.getParentOuterFromInnerOrExpand=function(t){return this.getOuterFromInnerOrExpand(this.getOuterFromInnerOrExpand(t))},n.prototype.down=function(t){if(!t)return!1;var e=this.getOuterFromInnerOrExpand(t),n=this.isInSubMenu(e),r=this.isInStaticMenus(e),i=!n&&!r;if(a.gwUtil.hasClass(e,"gw-hasChildren")&&i)return this.openSubMenu(e),u.gwFocus.forceFocus(e.querySelector(".gw-subMenu"),!1,!0),!0;if(n||r){var s=o.gwNavigation.getNextFocusableSibling(e,!0);if(s)return u.gwFocus.forceFocus(s,!1,!0),!0}if(r){var c=this.getParentOuterFromInnerOrExpand(t);if(c){var l=o.gwNavigation.getNextFocusableSibling(c,!0);if(l)return u.gwFocus.forceFocus(l,!1,!0),!0}}return!1},n.prototype.up=function(t){var e=this.getOuterFromInnerOrExpand(t),n=this.isInSubMenu(e),r=this.isInStaticMenus(e);if(a.gwUtil.hasClass(e,"gw-hasChildren")&&this.closeSubMenu(e),n||r){var i=o.gwNavigation.getPrevFocusableSibling(e,!0);if(i)return u.gwFocus.forceFocus(i,!1,!0),!0}if(n){var s=this.getParentOuterFromInnerOrExpand(t);if(s)return this.closeSubMenu(s),u.gwFocus.forceFocus(s,!1,!0),!0}return!1},n.prototype.right=function(t){var e=this.getOuterFromInnerOrExpand(t);return this.isInSubMenu(e)||this.isInStaticMenus(e)?!!a.gwUtil.hasClass(e,"gw-hasChildren")&&(this.openSubMenu(e),u.gwFocus.forceFocus(e.querySelector(".gw-subMenu"),!1,!0),!0):(u.gwFocus.forceFocus(o.gwNavigation.getNextFocusableSibling(e,!0),!1,!0),this.closeSubMenu(e),!0)},n.prototype.left=function(t){var e=this.getOuterFromInnerOrExpand(t),n=this.isInSubMenu(e),r=this.isInStaticMenus(e);if(!n&&!r)return u.gwFocus.forceFocus(o.gwNavigation.getPrevFocusableSibling(e,!0),!1,!0),this.closeSubMenu(e),!0;this.closeSubMenu(e);var i=this.getParentOuterFromInnerOrExpand(t);return!!i&&(this.closeSubMenu(i),u.gwFocus.forceFocus(i,!1,!0),!0)},n}(s.GwInitializableSystem);e.GwMenus=d,e.gwMenus=new d},function(t,e,n){"use strict";var r=n(280);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";var r=n(370);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";function r(t,e){t&&u.hasOwnProperty(t.type)&&u[t.type](t,e)}function i(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i=0?t:"gw-animation--"+t},e.prototype.processElForAnimation=function(t,e,n){var r=this;i.gwUtil.addClass(t,e),this.animationEndEventListeners[n]||(this.animationEndEventListeners[n]=function(t){r.killAnimation(n,t.target)},document.body.addEventListener("animationend",this.animationEndEventListeners[n]))},e.prototype.addAnimation=function(t,e){var n=this,r=i.gwUtil.getDomNodes(t),o=this.getAnimClass(e);i.gwUtil.forEach(r,function(t){if((i.gwUtil.hasClass(t,"gw-action--inner")||i.gwUtil.hasClass(t,"gw-action--expand-button"))&&(t=$(t).parents(".gw-action--outer")[0]),i.gwUtil.hasClass(t,o))return n.killAnimation(e,t),void setTimeout(n.addAnimation.bind(n,t,e),0);n.processElForAnimation(t,o,e)})},e.prototype.killAnimation=function(t,e){e&&i.gwUtil.removeClass(e,this.getAnimClass(t))},e}(o.GwRegisteredSystem);e.GwAnimation=a,e.gwAnimation=new a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(32),o=n(40),a=n(2),u=n(92),s=n(0),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._position=u.GwPoint.ZERO,e}return r(e,t),e.prototype.getSystemName=function(){return"gwMouse"},e.prototype.updatePosition=function(t){if(s.gwUtil.hasValue(t.pageX))this._position=new u.GwPoint(t.pageX,t.pageY);else{if(!t.target)return;var e=t.target.getBoundingClientRect(),n=document.documentElement,r=t.clientX-e.left-n.scrollLeft,i=t.clientY-e.top-n.scrollTop;this._position=new u.GwPoint(r,i)}},Object.defineProperty(e.prototype,"position",{get:function(){return this._position},enumerable:!0,configurable:!0}),e.prototype.enter=function(t,e,n){i.gwMenus.openSubMenuMouseEnter(t)||o.gwTooltips.show(t,e,n)},e}(a.GwRegisteredSystem);e.GwMouse=c,e.gwMouse=new c},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(4),a=n(67),u=n(3),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.xOffset=8,e.yOffsetUp=8,e.yOffsetDown=14,e.tooltipDiv=null,e.DATA_TOOLTIP="data-gw-tooltip",e}return r(e,t),e.prototype.getSystemName=function(){return"gwTooltips"},e.prototype.init=function(t,e){t&&null===this.tooltipDiv&&(this.tooltipDiv=document.createElement("div"),this.tooltipDiv.classList.add("gw-tooltip"),document.body.appendChild(this.tooltipDiv))},e.prototype.addTooltip=function(t,e){t.setAttribute(this.DATA_TOOLTIP,e),o.gwEvents.addInlineEventListenersToThisSpecificNode(t)},e.prototype.getTooltipDiv=function(){if(null===this.tooltipDiv)throw new Error("Missing tooltip div");return this.tooltipDiv},e.prototype.positionTooltip=function(t){var e=this.getTooltipDiv().getBoundingClientRect(),n=Math.max(t.clientX-(e.width+this.xOffset),0),r=t.clientY-(e.height+this.yOffsetUp);r<0&&(r=t.clientY+this.yOffsetDown),this.getTooltipDiv().style.left=n+"px",this.getTooltipDiv().style.top=r+"px"},e.prototype.show=function(t,e,n){if(a.gwDraggable.isDragging()||!t.hasAttribute(this.DATA_TOOLTIP)||t.hasAttribute("data-gw-hideHelptext"))return void this.hide();i.gwUtil.addClass(this.getTooltipDiv(),"gw-show"),this.getTooltipDiv().textContent=t.getAttribute(this.DATA_TOOLTIP)||"",this.positionTooltip(n)},e.prototype.move=function(t,e,n){this.positionTooltip(n)},e.prototype.hide=function(){null!==this.tooltipDiv&&(i.gwUtil.removeClass(this.getTooltipDiv(),"gw-show"),this.getTooltipDiv().style.removeProperty("left"),this.getTooltipDiv().style.removeProperty("top"),i.gwUtil.clearInnerHTML(this.getTooltipDiv()))},e}(u.GwInitializableSystem);e.GwTooltips=s,e.gwTooltips=new s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(18),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.localeCode=null,e.languageCode=null,e}return r(e,t),e.prototype.getSystemName=function(){return"gwLocale"},e.prototype.orderSpecificInit=function(t){this.updateLocaleCode(),this.updateLanguageCode()},e.prototype.updateLocaleCode=function(){var t=this.localeCode,e=i.gwUtil.getUtilityInfo("gw-locale");e&&(this.localeCode=e,t&&t!==this.localeCode&&i.gwUtil.fireCustomEvent("localeChanged",{locale:this.localeCode}))},e.prototype.updateLanguageCode=function(){var t=this.languageCode,e=i.gwUtil.getUtilityInfo("gw-language");if(!e)throw new Error("Missing language configuration element");this.languageCode=e,t&&t!==this.languageCode&&(this.onLanguageChange(),i.gwUtil.fireCustomEvent("languageChange",{language:this.languageCode}))},e.prototype.onLanguageChange=function(){if(this.languageCode){var t=this.languageCode.indexOf("_"),e=t>0?this.languageCode.slice(0,t):this.languageCode,n=i.gwUtil.getDomNode("html");n&&e&&n.getAttribute("lang")!==e&&n.setAttribute("lang",e)}},e.prototype.getDecimalSymbol=function(){return i.gwUtil.getUtilityInfo("gw-decimal-symbol")||"."},e.prototype.getThousandsSymbol=function(){return i.gwUtil.getUtilityInfo("gw-thousands-symbol")||","},e.prototype.getMinWeekdays=function(){return i.gwUtil.getUtilityInfo("gw-minDays").split("++").filter(function(t){return i.gwUtil.hasValue(t)})||["Su","Mo","Tu","We","Th","Fr","Sa"]},e.prototype.getShortWeekdays=function(){return i.gwUtil.getUtilityInfo("gw-shortDays").split("++").filter(function(t){return i.gwUtil.hasValue(t)})||["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},e.prototype.getWeekdays=function(){return i.gwUtil.getUtilityInfo("gw-days").split("++").filter(function(t){return i.gwUtil.hasValue(t)})||["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},e.prototype.getShortMonths=function(){return i.gwUtil.getUtilityInfo("gw-shortMonths").split("++").filter(function(t){return i.gwUtil.hasValue(t)})||["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},e.prototype.getMonths=function(){return i.gwUtil.getUtilityInfo("gw-months").split("++").filter(function(t){return i.gwUtil.hasValue(t)})||["January","February","March","April","May","June","July","August","September","October","November","December"]},e.prototype.getPeriods=function(){return i.gwUtil.getUtilityInfo("gw-amPmInfo").split("++").filter(function(t){return i.gwUtil.hasValue(t)})||["AM","PM"]},e.prototype.getFirstDayOfWeek=function(){var t=i.gwUtil.getUtilityInfo("gw-firstDayOfWeek");return t?parseInt(t):0},e}(o.GwOrderDependentInitializableSystem);e.GwLocale=a,e.gwLocale=new a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(16),o=n(0),a=n(6),u=n(2),s=n(52),c=n(22),l=n(4),f=n(140),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.navHandlers=[],e}return r(e,t),e.prototype.getSystemName=function(){return"gwNavigation"},e.prototype.registerNavClasses=function(t,e){var n=this;Array.isArray(t)?o.gwUtil.forEach(t,function(t){n.addCssMatchFunction(t,e)}):this.addCssMatchFunction(t,e)},e.prototype.registerContextualNavClass=function(t,e){var n=e.getSystemName(),r={system:n},i=new s.GwKeyListener("37").withAlt().withShift().withMethodName("gwNavigation.contextualLeft").withEnableDefault().withEventDescriptionArgs(r),o=new s.GwKeyListener("38").withAlt().withShift().withMethodName("gwNavigation.contextualUp").withEnableDefault().withEventDescriptionArgs(r),a=new s.GwKeyListener("39").withAlt().withShift().withMethodName("gwNavigation.contextualRight").withEnableDefault().withEventDescriptionArgs(r),u=new s.GwKeyListener("40").withAlt().withShift().withMethodName("gwNavigation.contextualDown").withEnableDefault().withEventDescriptionArgs(r);c.gwKeys.registerContextualKeyListener(t,i),c.gwKeys.registerContextualKeyListener(t,o),c.gwKeys.registerContextualKeyListener(t,a),c.gwKeys.registerContextualKeyListener(t,u)},e.prototype.addCssMatchFunction=function(t,e){this.registerNavFunction(function(e){return o.gwUtil.hasClass(e,t)},e)},e.prototype.registerNavFunction=function(t,e){this.navHandlers.push({shouldHandle:t,handler:e})},e.prototype.goWest=function(){a.gwFocus.forceFocus("#gw-west-panel",!0)},e.prototype.goNorth=function(){a.gwFocus.forceFocus("#gw-center-tab-bar",!0)},e.prototype.goCenter=function(){a.gwFocus.forceFocus("#gw-center-title-toolbar",!0)||a.gwFocus.forceFocus("#gw-center-bottom-section",!0)},e.prototype.goSouth=function(){a.gwFocus.forceFocus("#gw-south-panel",!0)},e.prototype.getNavContextAndMethod=function(t,e,n,r){for(var i=null,o=0,a=this.navHandlers;oe?1:t>=e?0:NaN}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";function r(){this.reset()}function i(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}e.a=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){i(o,t,this.t),i(this,o.s,this.s),this.s?this.t+=o.t:this.s=o.t},valueOf:function(){return this.s}};var o=new r},function(t,e,n){"use strict";e.a=function(){return Math.random()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(){}return t.create=function(){return new t},t.withClassArr=function(e){return(new t).withClassArr(e)},t.withClasses=function(){for(var e=[],n=0;nn&&i.gwJicHelper.setEraYearSelect(n),this.onEraYearChange(t)},n.prototype.onEraYearChange=function(t){if(i.gwJicHelper.getEraYearSelect(t)){this.eraMonthOrYearChangedPossiblyRestrictDates();var e=+i.gwJicHelper.getEraYearSelect(t).value,n=i.gwJicHelper.eraYearToGregYear(e,!0),r=i.gwJicHelper.getCurrDateInfo();r.eraYear=e,r.selectedYear=n,r.drawYear=n,a.gwDatePickerHelper.adjustDate(),a.gwDatePickerHelper.putFocusBackOnInput()}},n.prototype.possiblyHandleEraValue=function(t,e){if(!this.isJIC(e)||!u.gwUtil.hasValue(t))return t;var n=i.gwJicHelper.getEraInputValue(e),r=this.eraRegex.exec(t.trim());if(r&&3===r.length){var o=r[2].trim();return""!==n&&""===o&&i.gwJicHelper.resetEraInputValue(e),i.gwJicHelper.setEraInputValue(r[1],e),o}return""===n?(i.gwJicHelper.setEraInputValue(i.gwJicHelper.highestEraIndex,e),t):t},n.prototype.datePickerCalledShow=function(t){var e=i.gwJicHelper.getEraInput(t);u.gwUtil.addClass(e,"gw-inDatePicker")},n.prototype.datePickerCalledHide=function(t){u.gwUtil.removeClass(i.gwJicHelper.getEraInput(t),"gw-inDatePicker")},n.prototype.datePickerCalledUpdate=function(t){var e=new Date(t.drawYear,t.drawMonth,t.selectedDay);i.gwJicHelper.gregYearToEraYear(e,!0)},n.prototype.getDefaultDate=function(){return new Date},n.prototype.datePickerCalledParseDate=function(t){return t?(i.gwJicHelper.setEraYearSelect(t),i.gwJicHelper.eraYearToGregYear(t)):0},n.prototype.datePickerCalledFormatDate=function(t){return+i.gwJicHelper.gregYearToEraYear(t,!0).year},n.prototype.datePickerCalledSelectDate=function(){i.gwJicHelper.setEraInputValue(i.gwJicHelper.getEraSelectValue())},n.prototype.getEraYearPickerHtml=function(t){for(var e=parseInt(t),n=i.gwJicHelper.getEraDetailsForValueOrIndexOrThrow(i.gwJicHelper.getEraSelectValue()),r='
"},n.prototype.getEraPickerHtml=function(){for(var t=i.gwJicHelper.getEraSelectValue(),e=i.gwJicHelper.getEraDetailsForValueOrIndexOrThrow(t).index,n='
"},n.prototype.getMonthOptionNames=function(){return this.monthOptions},n.prototype.initializeMonthOptionNames=function(){this.monthOptions=[];for(var t=1;t<13;t++)this.monthOptions.push(""+t+i.gwJicHelper.eraMonthLocalizedSuffix)},n.prototype.showDatePicker=function(t,e,n){var r=document.getElementById(e.id);if(r){var i=r.querySelector(".gw-DateValueWidget--dateInput");i&&o.gwFocus.forceFocus(i)}},n.prototype.eraMonthOrYearChangedPossiblyRestrictDates=function(){var t=i.gwJicHelper.getEraDetailsForValueOrIndex(i.gwJicHelper.getEraSelectValue());if(t&&1!==t.startDay){var e=i.gwJicHelper.getEraYearSelect(null);if(e){var n=+e.value;if(n){var r=+i.gwJicHelper.getMonthSelect(null).value;if(1==+n&&r===t.startMonth)a.gwDatePickerHelper.disableDaysBefore(t.startDay);else if(t.index!==i.gwJicHelper.highestEraIndex&&n>=t.total){var o=i.gwJicHelper.getEraDetailsForValueOrIndexOrThrow(t.index+1),u=o.startMonth;u===r&&a.gwDatePickerHelper.disableDaysAfter(o.startDay-1)}}}}},n}(s.GwInitializableSystem);e.GwJic=c,e.gwJic=new c},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(41),o=n(50),a=n(22),u=n(6),s=n(15),c=n(3),l=n(0),f=n(146),d=n(4),h=n(69),p=n(9),g=n(14),v=n(49),y=n(13),w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._mainDivId="gw-datePicker",e._unselectableClass=" gw-datePicker--unselectable",e._otherMonthDayClass=" gw-datePicker--other-month",e._inputtedValueDayClass=" gw-datePicker--inputted-value-day",e._todayDayClass=" gw-datePicker--today-cell",e._keyEventCurrentDayClass=" gw-datePicker--keyEventDay",e.minRows=6,e._datePickerShowing=!1,e._lastEventWasKey=!1,e._$datePickerDiv=null,e._currDateInfo=null,e._lastInput=null,e.settings={dateFormat:"mm/dd/yyyy",firstDay:0,showMonthAfterYear:!0,yearSuffix:"",defaultDate:null,changeMonth:!0,changeYear:!0,yearRange:"c-100:c+10",showOtherMonths:!0,selectOtherMonths:!0,shortYearCutoff:"49",minDate:null,maxDate:null,numberOfMonths:1,stepMonths:1,stepBigMonths:12,hidePickerOnSelect:!0},e}return r(e,t),e.prototype.availableToGlobal=function(){return!1},e.prototype.getSystemName=function(){return"gwDatePicker"},e.prototype.init=function(t){var e=this;this.settings.monthNamesShort=i.gwLocale.getShortMonths(),this.settings.dayNamesMin=i.gwLocale.getMinWeekdays(),this.settings.firstDay=i.gwLocale.getFirstDayOfWeek(),t&&(this._currDateInfo=null),l.gwUtil.forEach(l.gwUtil.getDomNodes(".gw-DateValueWidget--dateInput"),function(t){return e.setupDateInput(t)})},Object.defineProperty(e.prototype,"datePickerDiv",{get:function(){return this.$datePickerDiv[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"$datePickerDiv",{get:function(){return this._$datePickerDiv&&this._$datePickerDiv[0]||(this._$datePickerDiv=$(l.gwUtil.createDiv(["gw-min-visible","gw-inDatePicker","gw-hidden"],{id:this._mainDivId}))),this._$datePickerDiv},enumerable:!0,configurable:!0}),e.prototype.isDatePickerShowing=function(){return this._datePickerShowing},e.prototype.setupDateInput=function(t){if("input"!==t.nodeName.toLowerCase())throw new Error("Trying to add date picker to non input");t.setAttribute("data-gw-focus","gwDateValue.showDatePickerOnFocus")},Object.defineProperty(e.prototype,"currDateInfo",{get:function(){return this._currDateInfo},enumerable:!0,configurable:!0}),e.prototype.handleKeyDown=function(t){if(l.gwUtil.hasClass(t.target,"gw-inDatePicker")&&this._currDateInfo){var e=a.gwKeys.getKeyCode(t);if(null===e||void 0===e||!a.gwKeys.ignoredKeyCodes[e]){var n=!0,r=function(){return n=t.ctrlKey||t.metaKey},i=function(){return n=t.altKey};if(this._lastEventWasKey=!0,this._datePickerShowing)switch(t.keyCode){case a.gwKeys.shortcutKeyWordToKeyCodeMap.TAB:this.hideDatePicker(),n=!1;break;case a.gwKeys.shortcutKeyWordToKeyCodeMap.ENTER:n=this.selectCurrentlyKeySelectedDay();break;case a.gwKeys.shortcutKeyWordToKeyCodeMap.END:r()&&this.clearDate();break;case a.gwKeys.shortcutKeyWordToKeyCodeMap.HOME:r()&&this.adjustDatePickerToShowToday();break;case a.gwKeys.shortcutKeyWordToKeyCodeMap.LEFT:i()?this.adjustDate(-this.getSetting("stepMonths"),"M"):r()&&this.adjustDate(-1,"D");break;case a.gwKeys.shortcutKeyWordToKeyCodeMap.UP:i()?this.adjustDate(-this.getSetting("stepBigMonths"),"M"):r()&&this.adjustDate(-7,"D");break;case a.gwKeys.shortcutKeyWordToKeyCodeMap.RIGHT:i()?this.adjustDate(+this.getSetting("stepMonths"),"M"):r()&&this.adjustDate(1,"D");break;case a.gwKeys.shortcutKeyWordToKeyCodeMap.DOWN:i()?this.adjustDate(+this.getSetting("stepBigMonths"),"M"):r()&&this.adjustDate(7,"D");break;default:n=!1}else t.keyCode===a.gwKeys.shortcutKeyWordToKeyCodeMap.HOME&&t.ctrlKey?this.showDatePicker(t.target):n=!1;n&&(t.preventDefault(),t.stopPropagation())}}},e.prototype.showDatePicker=function(t){if(!this._datePickerShowing||this._lastInput!==t){var e=this._currDateInfo=new f.GwDateInfo(t);this._lastInput=t,e.isJIC&&o.gwJic.datePickerCalledShow(t),l.gwUtil.addClass(e.inputEl,"gw-inDatePicker"),e.$input.on("keydown",this.handleKeyDown.bind(this)),$(e.dateIconEl).on("keydown",this.handleKeyDown.bind(this)),l.gwUtil.addClass(e.dateIconEl,"gw-inDatePicker"),y.gwAria.setAriaPropertyForElement("expanded",!0,e.dateIconEl),l.gwUtil.removeClass(this.$datePickerDiv,"gw-hidden"),y.gwAria.setAriaPropertyForElement("hidden",!1,this.datePickerDiv),l.gwUtil.appendEl(e.$inputParent[0],this.$datePickerDiv[0]),this.updateDatePickerFromDateInputField(),this._datePickerShowing=!0,this.updateDatePicker();var n=e.$inputParent[0],r=p.gwInputSystems.preventFloatingElementFromBeingOffscreen(n,e.inputEl,this.$datePickerDiv[0]),i=g.gwForm.findEnclosingValueWidget(e.inputEl);i&&(i.setAttribute("data-gw-date-picker-v-pos",r?"above":"below"),h.gwHelpText.possiblyForceHelptextVAlign(i,e.inputEl)),e.lastVal=null}},e.prototype.putFocusBackOnInput=function(){var t=this.currDateInfo;t&&t.$input&&t.$input.is(":visible")&&!t.$input.is(":disabled")&&!t.$input.is(":focus")&&u.gwFocus.forceFocus(t.$input[0])},e.prototype.updateDatePicker=function(){if(this._datePickerShowing){var t=this.currDateInfo;if(t){t.isJIC&&o.gwJic.datePickerCalledUpdate(t);var e=this.generateHTML(t);this.$datePickerDiv.empty().append(e);var n=t.dateIconEl.querySelector(".gw-date-liveregion");if(n){var r=this.daylightSavingAdjust(new Date(t.drawYear,t.drawMonth,t.selectedDay)),i=this.getToday(),a=this.getCurrentDay(t),u=r.toDateString();i.getTime()===r.getTime()&&(u=s.gwDisplayKey.get("Web.Client.Calendar.CalendarWidgetTodayAriaKeyword")+" "+u),a.getTime()===r.getTime()&&(u=s.gwDisplayKey.get("Web.Client.Calendar.CalendarWidgetKeySelectedDayAriaKeyword")+" "+u),y.gwAria.setAriaPropertyForElement("label",u,n)}t.isJIC&&o.gwJic.eraMonthOrYearChangedPossiblyRestrictDates(),this.$datePickerDiv.width("")}}},e.prototype.hideDatePicker=function(){this._datePickerShowing&&(this._currDateInfo&&this._currDateInfo.isJIC&&o.gwJic.datePickerCalledHide(null),l.gwUtil.addClass(this.$datePickerDiv,"gw-hidden"),y.gwAria.setAriaPropertyForElement("hidden",!0,this.datePickerDiv),this._lastInput&&(l.gwUtil.removeClass(this._lastInput,"gw-inDatePicker"),$(this._lastInput).off("keydown"),g.gwForm.findEnclosingValueWidget(this._lastInput).removeAttribute("data-gw-date-picker-v-pos")),this._currDateInfo&&($(this._currDateInfo.dateIconEl).off("keydown"),l.gwUtil.removeClass(this._currDateInfo.dateIconEl,"gw-inDatePicker"),y.gwAria.setAriaPropertyForElement("expanded",!1,this._currDateInfo.dateIconEl),l.gwUtil.removeClass(this._currDateInfo.$inputParent[0],"gw-date-picker-below")),this._lastInput=null,this._datePickerShowing=!1,this._currDateInfo=null)},e.prototype.adjustDate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=""),this.adjustInternalDate(t,e),this.updateDatePicker()},e.prototype.adjustDatePickerToShowToday=function(){var t=this.currDateInfo;if(t){var e=new Date;t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),this.adjustDate()}},e.prototype.selectToday=function(){var t=new Date;this.selectDay(t.getMonth(),t.getFullYear(),t.getDate())},e.prototype.getToday=function(){var t=new Date;return this.daylightSavingAdjust(new Date(t.getFullYear(),t.getMonth(),t.getDate()))},e.prototype.getCurrentDay=function(t){return this.daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9))},e.prototype.adjustDatePickerToShowDayFromInputField=function(){var t=this.currDateInfo;t&&t.currentDay&&(t.selectedDay=t.currentDay,t.drawMonth=t.selectedMonth=t.currentMonth,t.drawYear=t.selectedYear=t.currentYear,this.adjustDate())},e.prototype.selectMonthYear=function(t,e){var n=this.currDateInfo;n&&(n["selected"+("M"===e?"Month":"Year")]=n["draw"+("M"===e?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this.adjustDate())},e.prototype.selectDay=function(t,e,n){var r=this.currDateInfo;r&&r.$input&&!r.$input.hasClass(this._unselectableClass)&&(r.selectedDay=r.currentDay=n,r.selectedMonth=r.currentMonth=t,r.selectedYear=r.currentYear=e,this.selectDate(this.formatDate(r.currentDay,r.currentMonth,r.currentYear)))},e.prototype.selectCurrentlyKeySelectedDay=function(){if(!this.isDatePickerShowing()||!this._currDateInfo)return!1;var t=$(".gw-datePicker--keyEventDay",this.$datePickerDiv)[0];return!!t&&(this.selectDay(+t.getAttribute("data-month"),+t.getAttribute("data-year"),+t.getAttribute("data-day")),!0)},e.prototype.clearDate=function(){this.selectDate("")},e.prototype.selectDate=function(t){var e=this._currDateInfo;e&&(t=null!=t?t:this.formatDate(e),e.$input&&(e.$input.val(t),e.isJIC&&o.gwJic.datePickerCalledSelectDate()),this.putFocusBackOnInput(),this.getSetting("hidePickerOnSelect")&&this.hideDatePicker(),this.markDateValueInputModified(e.inputEl,"datepicker"))},e.prototype.getCurrentDateFormat=function(){var t=this.currDateInfo;if(!t)return this.getSetting("dateFormat");var e=g.gwForm.findEnclosingValueWidget(t.inputEl);return e?(v.gwDateValue.isDateInputElement(t.inputEl)?e.getAttribute("data-gw-date-mask"):e.getAttribute("data-gw-time-mask"))||this.getSetting("dateFormat"):this.getSetting("dateFormat")},e.prototype.parseDateFromDateField=function(t){var e=this.currDateInfo,n=this.getCurrentDateFormat().toUpperCase(),r=l.gwUtil.hasValue(t)?t:e&&e.$input?e.$input.val():null;if(null===n||null===r)throw new Error("Invalid arguments");if(""===(r="object"==typeof r?r.toString():r+""))return new Date;var i=parseInt(r.substr(n.indexOf("DD"),2)),a=parseInt(r.substr(n.indexOf("MM"),2)),u=n.indexOf("YYYY"),s=4;-1===u&&(u=n.indexOf("YY"),s=2);var c=parseInt(r.substr(u,s)),f=c;if(2===s){var d=(new Date).getFullYear();c>this.settings.shortYearCutoff&&(d-=100),c=parseInt((""+d).substr(0,2)+c)}e&&e.isJIC&&(c=o.gwJic.datePickerCalledParseDate(f));var h=this.daylightSavingAdjust(new Date(c,a-1,i));if(h.getFullYear()!==c||h.getMonth()+1!==a||h.getDate()!==i)throw new Error("Invalid date");return h},e.prototype.getSetting=function(t){return this.settings[t]},e.prototype.updateDatePickerFromDateInputField=function(){var t=this.currDateInfo;if(t&&(!this._datePickerShowing||t.$input.val()!==t.lastVal)){var e=t.lastVal=t.$input?t.$input.val():null,n=this.getDefaultDate(),r=n;try{r=this.parseDateFromDateField(e),r=r||n}catch(t){e=e}t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),t.currentDay=e?r.getDate():0,t.currentMonth=e?r.getMonth():0,t.currentYear=e?r.getFullYear():0,this.adjustInternalDate()}},e.prototype.getDefaultDate=function(){var t=this.currDateInfo;if(!t)return this.getSetting("defaultDate");if(t.isJIC)return o.gwJic.getDefaultDate();var e=this.determineDate(this.getSetting("defaultDate"),new Date);if(!e)throw new Error("Unable to determine a default date.");return this.restrictMinMax(e)},e.prototype.determineDate=function(t,e){var n=this,r=this.currDateInfo;if(!r)return null;var i=e;return i=t?"string"==typeof t?0===t.length?e:function(t){try{return n.parseDateFromDateField(t)}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?n.getInternalDateIfValid(r):null)||new Date,i=e.getFullYear(),o=e.getMonth(),a=e.getDate(),u=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,s=u.exec(t);s;){switch(s[2]||"d"){case"d":case"D":a+=parseInt(s[1],10);break;case"w":case"W":a+=7*parseInt(s[1],10);break;case"m":case"M":o+=parseInt(s[1],10),a=Math.min(a,n.getDaysInMonth(i,o));break;case"y":case"Y":i+=parseInt(s[1],10),a=Math.min(a,n.getDaysInMonth(i,o))}s=u.exec(t)}return new Date(i,o,a)}(t):"number"==typeof t?isNaN(t)?e:function(t){var e=new Date;return e.setDate(e.getDate()+t),e}(t):new Date(t.getTime()):e,(i=i&&"Invalid Date"===i.toString()?e:i)?(i&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this.daylightSavingAdjust(i)):null},e.prototype.daylightSavingAdjust=function(t){return t.setHours(t.getHours()>12?t.getHours()+2:0),t},e.prototype.getInternalDateIfValid=function(t){return!t.currentYear||t.$input&&""===t.$input.val()?null:this.daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},e.prototype.disableDaysAfter=function(t){t=+t;var e=this._currDateInfo;e&&(e.selectedDay>t&&this.adjustInternalDate(t,"D"),e.disableDaysAfter=t,e.disableTestFoundDate1=0)},e.prototype.disableDaysBefore=function(t){t=+t;var e=this._currDateInfo;e&&(e.selectedDaye.disableDaysAfter)return!0;if(2===e.disableTestFoundDate1)return!0}return!1},e.prototype.getCurrentButtonText=function(){return s.gwDisplayKey.get("Web.Client.DatePicker.SelectedDay")||""},e.prototype.getTodayButtonText=function(){return s.gwDisplayKey.get("Web.Client.DatePicker.Today")||""},e.prototype.generateHTML=function(t){var e,n,r,i,o,a,u,s,c,l,f,d,h,p,g,v,y,w,m,b,_,E,O,C,S=this.getToday(),A=this.getCurrentDay(t),T=this.getMinMaxDate("min"),x=this.getMinMaxDate("max"),D=t.drawMonth,P=t.drawYear;if(D<0&&(D+=12,P--),D>11&&(D=0,P++),x)for(e=this.daylightSavingAdjust(new Date(x.getFullYear(),x.getMonth(),x.getDate())),e=T&&ee;)--D<0&&(D=11,P--);t.drawMonth=D,t.drawYear=P;var I="
"+this.getTodayButtonText()+"
",M="
"+this.getCurrentButtonText()+"
",j=this.getInfoButtonHTML(),N="";n=parseInt(this.getSetting("firstDay"),10),n=isNaN(n)?0:n;var F=this.getSetting("dayNamesMin"),k=this.getSetting("monthNamesShort");for(r=this.getSetting("showOtherMonths"),i=this.getSetting("selectOtherMonths"),o=this.getDefaultDate(),a="",s="",c=this.daylightSavingAdjust(new Date(P,D,t.selectedDay)),l="",l+="
"+this.generateMonthYearHeader(D,P,T,x,k)+"
",f="",u=0;u<7;u++)d=(u+n)%7,f+="";for(l+=f+"",h=this.getDaysInMonth(P,D),P===t.selectedYear&&D===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,h)),p=(this.getFirstDayOfMonth(P,D)-n+7)%7,g=Math.max(this.minRows,Math.ceil((p+h)/7)),v=this.daylightSavingAdjust(new Date(P,D,1-p)),y=0;y",w="",u=0;u<7;u++)m=[!0,""],b=v.getMonth()!==D,_=b&&!i||!m[0]||T&&vx,E=this.shouldDisableCalendarDate(v.getDate(),t)?"gw-disabled-day":"",O=v.getTime()===S.getTime(),C=v.getTime()===A.getTime(),w+="",v.setDate(v.getDate()+1),v=this.daylightSavingAdjust(v);l+=w+""}return l+="
=5?" class='gw-datePicker--week-end'":"")+">
"+F[d]+"
"+(b&&!r?" ":_?"
"+v.getDate()+"
":"
"+v.getDate()+"
")+"
",s+=l,a+=s,a+=N,this._lastEventWasKey=!1,t.disableDaysBefore=null,t.disableDaysAfter=null,a},e.prototype.generateMonthYearHeader=function(t,e,n,r,i){var a=this.currDateInfo;if(!a)throw new Error("Attempting to generate date picker html without current date info");var u,c,l,f,d,h="",p="",g=this.getSetting("changeMonth"),v=this.getSetting("changeYear"),y=this.getSetting("showMonthAfterYear");a.isJIC&&(i=o.gwJic.getMonthOptionNames(),h+=o.gwJic.getEraPickerHtml(),h+=o.gwJic.getEraYearPickerHtml(""+a.eraYear));var w=this.canAdjustMonth(-1,e,t)?"
":"",m=this.canAdjustMonth(1,e,t)?"
":"";u=n&&n.getFullYear()===e,c=r&&r.getFullYear()===e,p+=w,p+="
",p+=m,y||(h+=p+(g&&v?"":" "));var _="";if(v){l=this.getSetting("yearRange").split(":");var E=(new Date).getFullYear(),O=function(t){var n=t.match(/c[+\-].*/)?e+parseInt(t.substring(1),10):t.match(/[+\-].*/)?E+parseInt(t,10):parseInt(t,10);return isNaN(n)?E:n};for(f=O(l[0]),d=Math.max(f,O(l[1]||"")),f=n?Math.max(f,n.getFullYear()):f,d=r?Math.min(d,r.getFullYear()):d,_+="
",h+=_}else h+="
"+e+"
";return h+=this.getSetting("yearSuffix"),y&&(h+=(g&&v?"":" ")+p),h},e.prototype.getInfoButtonHTML=function(){return""},e.prototype.adjustInternalDate=function(t,e){void 0===t&&(t=0),void 0===e&&(e="");var n=this.currDateInfo;if(n){var r=n.selectedYear+("Y"===e?t:0),i=n.selectedMonth+("M"===e?t:0),o=Math.min(n.selectedDay,this.getDaysInMonth(r,i))+("D"===e?t:0),a=this.restrictMinMax(this.daylightSavingAdjust(new Date(r,i,o)));n.selectedDay=a.getDate(),n.drawMonth=n.selectedMonth=a.getMonth(),n.drawYear=n.selectedYear=a.getFullYear()}},e.prototype.restrictMinMax=function(t){if(null===t)throw new Error("unable to find min max for a null date");var e=this.getMinMaxDate("min"),n=this.getMinMaxDate("max"),r=e&&tn?n:r},e.prototype.getMinMaxDate=function(t){return this.determineDate(this.getSetting(t+"Date"),null)},e.prototype.getDaysInMonth=function(t,e){return 32-this.daylightSavingAdjust(new Date(t,e,32)).getDate()},e.prototype.getFirstDayOfMonth=function(t,e){return new Date(t,e,1).getDay()},e.prototype.canAdjustMonth=function(t,e,n){var r=[1,1],i=this.daylightSavingAdjust(new Date(e,n+(t<0?t:r[0]*r[1]),1));return t<0&&i.setDate(this.getDaysInMonth(i.getFullYear(),i.getMonth())),this.isDateWithinAcceptableRange(i)},e.prototype.isDateWithinAcceptableRange=function(t){var e,n,r=null,i=null,o=this.getMinMaxDate("min"),a=this.getMinMaxDate("max"),u=this.getSetting("yearRange");return u&&(e=u.split(":"),n=(new Date).getFullYear(),r=parseInt(e[0],10),i=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=n),e[1].match(/[+\-].*/)&&(i+=n)),(!o||t.getTime()>=o.getTime())&&(!a||t.getTime()<=a.getTime())&&(!r||t.getFullYear()>=r)&&(!i||t.getFullYear()<=i)},e.prototype.formatDate=function(t,e,n){var r=this.currDateInfo;if(!r)return"";t||(r.currentDay=r.selectedDay,r.currentMonth=r.selectedMonth,r.currentYear=r.selectedYear);var i=t?"object"==typeof t?t:this.daylightSavingAdjust(new Date(n,e,t)):this.daylightSavingAdjust(new Date(r.currentYear,r.currentMonth,r.currentDay));if(!i)return"";var a=this.getCurrentDateFormat(),u=0,s=function(t){var e=a.indexOf(t)>-1;return e&&(u+=t.length-1),e},c=function(t,e,n){return s(t)?l(e,n):""},l=function(t,e){for(var n=""+t;n.length180||n<-180?n-360*Math.round(n/360):n):Object(s.a)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?u:function(e,n){return n-e?i(e,n,t):Object(s.a)(isNaN(e)?n:e)}}function u(t,e){var n=e-t;return n?r(t,n):Object(s.a)(isNaN(t)?e:t)}e.c=o,e.b=a,e.a=u;var s=n(171)},function(t,e,n){"use strict";var r=n(371);n.d(e,"d",function(){return r.a});var i=n(372);n.d(e,"e",function(){return i.a});var o=n(109);n.d(e,"c",function(){return o.a});var a=n(373);n.d(e,"b",function(){return a.a});var u=n(374);n.d(e,"f",function(){return u.a});var s=n(375);n.d(e,"a",function(){return s.a})},function(t,e,n){"use strict";function r(t){return[Object(l.e)(t[1],t[0]),Object(l.c)(t[2])]}function i(t){var e=t[0],n=t[1],r=Object(l.g)(n);return[r*Object(l.g)(e),r*Object(l.t)(e),Object(l.t)(n)]}function o(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function a(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function u(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function s(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function c(t){var e=Object(l.u)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}e.g=r,e.a=i,e.d=o,e.c=a,e.b=u,e.f=s,e.e=c;var l=n(1)},function(t,e,n){"use strict";function r(t){return function(e,n){var r=Object(o.g)(e),i=Object(o.g)(n),a=t(r*i);return[a*i*Object(o.t)(e),a*Object(o.t)(n)]}}function i(t){return function(e,n){var r=Object(o.u)(e*e+n*n),i=t(r),a=Object(o.t)(i),u=Object(o.g)(i);return[Object(o.e)(e*a,r*u),Object(o.c)(r&&n*a/r)]}}e.b=r,e.a=i;var o=n(1)},function(t,e,n){"use strict";e.a=function(t,e,n,r,i){for(var o,a=t.children,u=-1,s=a.length,c=t.value&&(r-e)/t.value;++u0?(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,r=Object(o.z)(s,c,n)):r<0&&(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,r=Object(o.z)(s,c,n)),r>0?(i[a]=Math.floor(s/r)*r,i[u]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[u]=Math.floor(c*r)/r,e(i)),t},t}function i(){var t=Object(u.b)(u.c,a.m);return t.copy=function(){return Object(u.a)(t,i())},r(t)}e.b=r,e.a=i;var o=n(10),a=n(20),u=n(86),s=n(483)},function(t,e,n){"use strict";e.a=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}},function(t,e,n){"use strict";function r(t){return t>1?0:t<-1?h:Math.acos(t)}function i(t){return t>=1?p:t<=-1?-p:Math.asin(t)}n.d(e,"a",function(){return o}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return u}),n.d(e,"h",function(){return s}),n.d(e,"i",function(){return c}),n.d(e,"k",function(){return l}),n.d(e,"l",function(){return f}),n.d(e,"f",function(){return d}),n.d(e,"j",function(){return h}),n.d(e,"g",function(){return p}),n.d(e,"m",function(){return g}),e.b=r,e.c=i;var o=Math.abs,a=Math.atan2,u=Math.cos,s=Math.max,c=Math.min,l=Math.sin,f=Math.sqrt,d=1e-12,h=Math.PI,p=h/2,g=2*h},function(t,e,n){"use strict";e.a=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o=0;)n[e]=e;return n}},function(t,e,n){"use strict";function r(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function i(t,e){return e[1]-t[1]||e[0]-t[0]}function o(t,e){var n,r,o,g=t.sort(i).pop();for(c=[],u=new Array(t.length),a=new p.b,s=new p.b;;)if(o=d.c,g&&(!o||g[1]=u)return null;var s=t-i.site[0],c=e-i.site[1],l=s*s+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach(function(n){var r=o.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var s=t-u[0],c=e-u[1],f=s*s+c*c;f0?JSON.parse(e):u.gwForm.getValueWidgetOriginalServerValue(t)},e.prototype.valueDiffersFromLastChangedOrDefault=function(t){var e=this.getConfirmDataValueOrDefault(t),n=o.gwInputs.getValueById(t.id);return!i.gwUtil.shallowCompare(e,n)},e.prototype.confirmEvent=function(t){this._lastEventWasConfirmed=!1;var e=t.eventTargetNode;if(!e)return!0;if(!e.hasAttribute("data-gw-confirm"))return!0;if("click"===t.eventType||t.replacesClick){this.closeProblematicTemporyElementsDuringConfirmAndPrompt();var n=!!window.confirm(e.dataset.gwConfirm);if(this._lastEventWasConfirmed=n,!n)return!1}else if("change"===t.eventType&&this.valueDiffersFromLastChangedOrDefault(e)){this.closeProblematicTemporyElementsDuringConfirmAndPrompt();var r=!!window.confirm(e.dataset.gwConfirm);if(this._lastEventWasConfirmed=r,!r)return this.cancelValueChange(e),!1;this.saveConfirmedValue(e)}return!0},e.prototype.closeProblematicTemporyElementsDuringConfirmAndPrompt=function(){c.gwInputSystems.closeOpenInputs(),s.gwTooltips.hide()},e}(a.GwRegisteredSystem);e.GwConfirm=l,e.gwConfirm=new l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(40),o=n(9),a=n(11),u=function(){function t(){this.HELP_TEXT_EL_ID="gw-helptext",this.HELP_TEXT_OPEN="gw-helptextOpen",this.DATA_HELPTEXT="data-gw-helptext",this.DATA_HIDDEN_TOOLTIP="data-gw-hidden-tooltip"}return t.prototype.focusIn=function(t){this.enableHelptextOnInputIfAvailable(t)},t.prototype.focusOut=function(){this.disableHelpText()},t.prototype.closeHelpText=function(){this.disableHelpText()},t.prototype.getHelptextEl=function(){return document.getElementById(this.HELP_TEXT_EL_ID)||null},t.prototype.possiblyForceHelptextVAlign=function(t,n){if((t=t||r.gwUtil.getSelfOrFirstParentWithClass(n,"gw-ValueWidget"))&&r.gwUtil.hasClass(t,"gw-helptextOpen")){var i=e.gwHelpText.getHelptextEl();if(i){if(t.hasAttribute("data-gw-date-picker-v-pos"))return o.gwInputSystems.forcePickerIntoVerticalAlignment(t,n,i,"below"===t.getAttribute("data-gw-date-picker-v-pos")),!0;if(t.hasAttribute("data-gw-autocomplete-v-pos"))return o.gwInputSystems.forcePickerIntoVerticalAlignment(t,n,i,"below"===t.getAttribute("data-gw-autocomplete-v-pos")),!0}}return!1},t.prototype.enableHelptextOnInputIfAvailable=function(t){this.disableHelpText();var e=r.gwUtil.getSelfOrFirstParentWithClass(t,"gw-ValueWidget")||a.gwPrefPanel.getPrefValueByPrefName("tabIndexedTooltips")&&r.gwUtil.getSelfOrFirstParentWithAttr(t,i.gwTooltips.DATA_TOOLTIP);if(e&&!e.hasAttribute("data-gw-no-helptext-drop")){var n=e.getAttribute(this.DATA_HELPTEXT),o=e.getAttribute(i.gwTooltips.DATA_TOOLTIP);(n||o)&&(o&&(e.setAttribute(this.DATA_HIDDEN_TOOLTIP,o),e.removeAttribute(i.gwTooltips.DATA_TOOLTIP),i.gwTooltips.hide()),this.addHelptextElToNode(e,t,n||o||""))}},t.prototype.addHelptextElToNode=function(t,e,n){var i=r.gwUtil.createDiv(null,{id:this.HELP_TEXT_EL_ID,role:"alert","aria-live":"assertive","aria-atomic":"true","aria-roledescription":"tooltip"},{maxWidth:t.offsetWidth+"px"});i.textContent=n,r.gwUtil.addClass(t,this.HELP_TEXT_OPEN),t.appendChild(i),this.possiblyForceHelptextVAlign(t,e)||o.gwInputSystems.preventFloatingElementFromBeingOffscreen(t,e,i)},t.prototype.disableHelpText=function(){var t=document.getElementById(this.HELP_TEXT_EL_ID);if(t){var e=r.gwUtil.getSelfOrFirstParentWithClass(t,this.HELP_TEXT_OPEN);e&&(e.hasAttribute(this.DATA_HIDDEN_TOOLTIP)&&(e.setAttribute(i.gwTooltips.DATA_TOOLTIP,e.getAttribute(this.DATA_HIDDEN_TOOLTIP)||""),e.removeAttribute(this.DATA_HIDDEN_TOOLTIP)),r.gwUtil.removeClass(e,this.HELP_TEXT_OPEN)),t.parentNode.removeChild(t)}},t}();e.GwHelpText=u,e.gwHelpText=new u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(16),o=n(246),a=n(4),u=n(28),s=n(74),c=n(6),l=n(0),f=n(66),d=n(42),h=n(11),p=n(248),g=n(38),v=n(5),y=n(22),w=n(52),m=n(249),b=n(145),_=n(13),E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.lastClickedCheckBoxNode=null,e.PREFERENCE_TYPE="LISTVIEW",e.COLUMN_PREFERENCES="COLUMN_PREFERENCES",e.FIRST_HEADER_CELL_CLASS="gw-first-cell",e.LAST_HEADER_CELL_CLASS="gw-last-cell",e}return r(e,t),e.prototype.getSystemName=function(){return"gwListView"},e.prototype.init=function(t){this.applyPreferences(),o.gwListViewHelper.buildColumnsMenusForAllLVs(),t&&(d.gwNavigation.registerNavClasses(["gw-listDetail","gw-IteratorEntryCheckBoxWidget"],this),d.gwNavigation.registerContextualNavClass("gw-ListViewWidget--table",this),this.initializeOnEnterNavigation()),p.gwDraggableColumn.init()},e.prototype.checkBoxChanged=function(t,e){var n=m.gwFlags.getCheckBox(t);a.gwEvents.getShiftkeyPressedDuringLastMouseUp()&&null!==this.lastClickedCheckBoxNode&&this.multiToggleCheckboxNodes(this.lastClickedCheckBoxNode,n),this.lastClickedCheckBoxNode=n,m.gwFlags.checkBoxChanged(t)},e.prototype.multiToggleCheckboxNodes=function(t,e){var n=new b.GwFlagGroup(e.dataset.gwFlagsScope),r=n.checkBoxes.map(function(t){return t.name}),i=r.indexOf(t.name,0),o=r.indexOf(e.name,0);if(!(i<0||o<0))for(var a=e.checked,u=i>o?o:i,s=i>o?i:o,c=u;c<=s;c++)n.checkBoxes[c].checked=a},e.prototype.longpressRow=function(t,e,n){if(!l.gwUtil.hasClass(t,".gw-isSmartHeader")){var r=n.relatedTarget;if(r){var i=window.navigator.clipboard;if(i&&i.writeText){var o=l.gwUtil.getSelfOrFirstParentWithTag(r,"td");if(!o)return;l.gwUtil.hasClass(o,"gw-header")?i.writeText(this.getColumnAsCommaDelimitedString(o)).catch(function(t){return console.error(t)}):i.writeText(this.getRowAsCommaDelimitedString(t)).catch(function(t){return console.error(t)})}}}},e.prototype.getColumnAsCommaDelimitedString=function(t,e){void 0===e&&(e=!0);for(var n=l.gwUtil.getSelfOrFirstParentWithClassOrThrow(t,"gw-ListViewWidget"),r=0,o=t.parentElement.firstElementChild;o&&o!==t;)r++,o=o.nextElementSibling;var a=$(n).find("tr:not(.gw-RowGroup):not(.gw-isSmartHeader) td:nth-child("+(+r+1)+")"),u=this.convertCellsToCommaDelimitedString(a);if(e){var s=20;l.gwUtil.forEach(a,function(t){if(g.gwAnimation.addAnimation(t,"focus"),0==s--)return i.GW_BREAKER})}return u},e.prototype.getRowAsCommaDelimitedString=function(t,e){void 0===e&&(e=!0);var n=this.convertCellsToCommaDelimitedString(t.querySelectorAll("td"));return e&&g.gwAnimation.addAnimation(t,"focus"),n},e.prototype.convertCellsToCommaDelimitedString=function(t){var e=[];return l.gwUtil.forEach(t,function(t){var n=[];l.gwUtil.forEach(t.querySelectorAll(".gw-ValueWidget[data-gw-getset]"),function(t){var e=v.gwInputs.getValueById(t);if(l.gwUtil.hasValue(e)){var r=(e+"").trim();r.length>0&&n.push(r)}}),e.push(0===n.length?'""':'"'+n.join(" ").replace(/\"/g,'""')+'"')}),e.join(",")},e.prototype.toggleRowGroup=function(t){$(t).toggleClass("gw-RowGroup--expanded").nextUntil("tr.gw-RowGroup, tr:has(td.gw-FooterCellWidget)").toggleClass("gw-hidden"),_.gwAria.setAriaPropertyForElement("expanded",t.classList.contains("gw-RowGroup--expanded"),t)},e.prototype.headerAction=function(t,e,n){var r=$("#gw-util--headers");r.attr("name",e.id),r.val(e.act),a.gwEvents.methods.fireEvent(t,e,n,function(){r.attr("name","gw-util--headers"),r.val("")})},e.prototype.filter=function(t,e){var n=t.parentElement;if(n){var r=l.gwUtil.getSelfOrFirstParentWithClass(t,"gw-HeaderCellFilterValueWidget");if(r){var i=l.gwUtil.getDomNode(".gw-opKey--input",r);n.dataset&&l.gwUtil.hasValue(n.dataset.gwSelected)?i.value="":i.value=e.opKey,l.gwUtil.fireEvent(e.id)}}},e.prototype.page=function(t,e){var n=$("#gw-paging");n.attr("name",e.renderId),"value"===e.page?n.val(t.value):n.val(e.page),u.gwScroll.setScreenScrollTo0(t),l.gwUtil.fireEvent(e.renderId),n.attr("name","")},e.prototype.resetTablePreferences=function(t){var e=$(t).closest("div.gw-ListViewWidget").get(0),n=l.gwUtil.getDomNode(".gw-isGrouped",e),r=$("#gw-util--headers");n&&(r.attr("name",n.id),r.val("GROUP_UNGROUP")),s.gwPreferences.resetPreferencesForId(e.id),r.attr("name","gw-util--headers"),r.val("")},e.prototype.hideColumnByHeaderId=function(t){var e=this.getHeaderTD(t);if(e){var n=$(e).index(),r=$(e).closest(".gw-ListViewWidget");if(r){var i=r.find("tr:not(.gw-RowGroup) td:nth-child("+(n+1)+")");i&&(l.gwUtil.addClass(e,"gw-isHiddenViaMenu"),$(i).hide(),this.applyColumnClasses(r[0]),this.storeHiddenColumnValueInLVPreferences(r[0].id,t,!0))}}},e.prototype.getCellAtIndexIncludingColspan=function(t,e){var n=null,r=0;return l.gwUtil.forEach(t.children,function(t){if(r===e)return n=t,i.GW_BREAKER;r+=t.colSpan||1}),n},e.prototype.sizeColumnByCellId=function(t,e,n,r,o,a,u){var s=this;void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=!1),void 0===a&&(a=!1),void 0===u&&(u=!1);var c=document.getElementById(t);if(c){var f=$(c).closest(".gw-ListViewWidget");if(f){var d=c.parentElement;if(d){var h=0;l.gwUtil.forEach(d.children,function(t){if(t===c)return i.GW_BREAKER;h+=t.colSpan||1});var p=f.find("tr:not(.gw-RowGroup)"),g=t;l.gwUtil.forEach(p,function(t){var i=s.getCellAtIndexIncludingColspan(t,h);if(i&&(i.hasAttribute("data-gw-cellindex")&&(g=i.id),!i.hasAttribute("colspan"))){a?l.gwUtil.addClass(i,".gw-resizing"):(o||u)&&l.gwUtil.removeClass(i,".gw-resizing"),i.style.maxWidth=null===r?e:r,i.style.minWidth=null===n?e:n,i.style.width=e;var c=i.querySelector(".gw-cell-inner");c&&(c.style.width=e)}}),o&&this.storeSizedColumnValueInLVPreferences(f[0].id,g,e)}}}},e.prototype.showColumnByHeaderId=function(t){var e=this.getHeaderTD(t);if(e){var n=$(e).index();l.gwUtil.removeClass(e,"gw-isHiddenViaMenu");var r=$(e).closest(".gw-ListViewWidget")[0];if(r){this.storeHiddenColumnValueInLVPreferences(r.id,t);var i=$(r).find("tr:not(.gw-RowGroup) td:nth-child("+(n+1)+")");$(i).show(),this.applyColumnClasses(r)}}},e.prototype.applyPreferences=function(){var t=this,e=this.getListViewRenderIds(),n=[],r={},i=!1;l.gwUtil.forEach(e,function(e){var o=document.getElementById(e);if(o){var a=s.gwPreferences.getPreference(e,t.COLUMN_PREFERENCES);if(a){var u=JSON.parse(a);Object.getOwnPropertyNames(u).forEach(function(t){u[t].hidden&&n.push(t),u[t].size&&(i=!0,r[t]=u[t].size)}),u.ordering&&(t.resetHiddenColumns(o),t.applyColumnOrdering(o,u.ordering)),n.forEach(function(e){return t.hideColumnByHeaderId(e)}),i&&(t.removeStretchFromLV(o),l.gwUtil.forEach(r,function(e,n){return t.sizeColumnByCellId(n,e)}))}}})},e.prototype.isCellInner=function(t){return t.classList.contains("gw-cell-inner")},e.prototype.processCellInner=function(t){e.isEmpty(t)&&_.gwAria.setAriaPropertyForElement("hidden",!0,t)},e.isEmpty=function(t){return!(t.textContent&&t.textContent.length>=0)&&!t.querySelector(".gw-editable, .gw-actionable, [data-gw-click], .gw-icon")},e.prototype.removeStretchFromLV=function(t){if(t){l.gwUtil.hasClass(t,".gw-LV-stretch")&&t.setAttribute("data-gw-old-stretch","true"),t.classList.remove("gw-LV-stretch");var e=t.querySelector(".gw-ListViewWidget--table");e.setAttribute("data-gw-old-min",e.style.minWidth||""),e.style.minWidth="0px",l.gwUtil.forEachReverse(l.gwUtil.getDomNodes(".gw-cell-grow",t),function(t){t.setAttribute("data-gw-old-grow",t.style.width),t.style.width=t.clientWidth+"px",l.gwUtil.removeClass(t,".gw-cell-grow")})}},e.prototype.restoreStretchToLV=function(t){if(t&&t.hasAttribute("data-gw-old-stretch")){t.removeAttribute("data-gw-old-stretch"),l.gwUtil.addClass(t,"gw-LV-stretch");var e=t.querySelector(".gw-ListViewWidget--table");e.style.minWidth=e.getAttribute("data-gw-old-min")||"",e.removeAttribute("data-gw-old-min"),l.gwUtil.forEachReverse(l.gwUtil.getDomNodesByAttr("data-gw-old-grow",void 0,e),function(t){t.style.width=t.getAttribute("data-gw-old-grow")||"",t.removeAttribute("data-gw-old-grow")})}},e.prototype.storeColumnOrder=function(t){var e=this.headerColumnIds(t);e.length>0&&this.storeColumnOrderingInLVPreferences(t.id,e)},e.prototype.toggleColumnVisibility=function(t,e){l.gwUtil.toggleClass(t,"gw-checked"),l.gwUtil.hasClass(t,"gw-checked")?(this.showColumnByHeaderId(e.headerId),_.gwAria.setAriaPropertyForElement("checked",!0,t)):(this.hideColumnByHeaderId(e.headerId),_.gwAria.setAriaPropertyForElement("checked",!1,t))},e.prototype.toggleGroupedBy=function(t,e){l.gwUtil.toggleClass(t,"gw-grouped"),_.gwAria.setAriaPropertyForElement("pressed",l.gwUtil.hasClass(t,"gw-grouped"),t);var n=document.getElementById(e.headerId);n&&(l.gwUtil.hasClass(t,"gw-grouped")?this.headerAction(n,{id:e.headerId,act:"GROUP_GROUP",suffix:"_act"}):this.headerAction(n,{id:e.headerId,act:"GROUP_UNGROUP",suffix:"_act"}))},e.prototype.initializeOnEnterNavigation=function(){for(var t=0,e=["cellNavOnEnter","rowNavOnEnter","quickAddOnEnter"];t=0&&(o>r&&(i.splice(r,0,i.splice(o,1)[0]),n.moveColumn(t,o,r)),r++)}),this.applyColumnClasses(t),this.markColumnsAsOrdered(t)}},e.prototype.markColumnsAsOrdered=function(t){$(t).find("tr:not(.gw-RowGroup)").attr("data-gw-ordered","true")},e.prototype.left=function(t,e,n){if(l.gwUtil.hasClass(t,"gw-listDetail")){var r=t.querySelector(".gw-IteratorEntryCheckBoxWidget");return c.gwFocus.forceFocusIgnoreIfNull(r),!0}l.gwUtil.hasClass(t,".gw-IteratorEntryCheckBoxWidget");var i=null,o=100,a=function(t){for(var e=t;t.length>0&&(e=t,!(--o<=0));){if(c.gwFocus.isFocusable(t[0])){i=t[0];break}t=t.prev("td")}i||u(e)},u=function(t){if(!(--o<=0)){var e=t.closest("tr").prev("tr");e.length>0&&a(e.children("td").last())}},s=$(t).closest("td"),f=s.prev("td");return f.length>0?a(f):u(s),i&&c.gwFocus.forceFocus(i,!1),!0},e.prototype.cellNavOnEnter=function(t,e,n){return this.right(t,e,n,!0)},e.prototype.rowNavOnEnter=function(t,e,n){return this.down(t,e,n)},e.prototype.quickAddOnEnter=function(t,e,n){var r=c.gwFocus.getCurrentFocus();if(this.right(t,e,n,!0),r===c.gwFocus.getCurrentFocus()){var i=l.gwUtil.getSelfOrFirstParentWithClass(t,"gw-ListViewWidget--quickAddOnEnter");i&&i.id&&l.gwUtil.fireEvent(i.id+"_quickAdd")}return!0},e.prototype.right=function(t,e,n,r){var i=this;if(void 0===r&&(r=!1),l.gwUtil.hasClass(t,".gw-IteratorEntryCheckBoxWidget")){var o=l.gwUtil.getSelfOrFirstParentWithClass(t,"gw-listDetail");if(o)return this.moveToAndPossiblySelectListDetailRow(o),!0}var a=null,u=100,s=function(t){for(var e=t;t.length>0&&(e=t,!(--u<=0));){if(c.gwFocus.isFocusable(t[0])&&(!r||!i.isIteratorCheckBoxCell(t[0]))){a=t[0];break}t=t.next("td")}a||f(e)},f=function(t){if(!(--u<=0)){var e=t.closest("tr").next("tr");e.length>0&&s(e.children("td").first())}},d=$(t).closest("td");if(r&&d.is("[data-gw-endcellnav]"))f(d);else{var h=d.next("td");h.length>0?s(h):f(d)}return a&&c.gwFocus.forceFocus(a,!1),!0},e.prototype.up=function(t,e,n){if(l.gwUtil.hasClass(t,"gw-listDetail"))return this.moveUpInListDetail(t),!0;for(var r=null,i=$(t).closest("tr").prev("tr"),o=$(t).closest("td").index(),a=100;i.length>0&&!(--a<=0);){var u=i.children()[o];if(c.gwFocus.isFocusable(u)){r=u;break}i=i.prev("tr")}return r&&c.gwFocus.forceFocus(r,!1),!0},e.prototype.down=function(t,e,n){if(l.gwUtil.hasClass(t,"gw-listDetail"))return this.moveDownInListDetail(t),!0;for(var r=null,i=$(t).closest("tr").next("tr"),o=$(t).closest("td").index(),a=100;i.length>0&&!(--a<=0);){var u=i.children()[o];if(c.gwFocus.isFocusable(u)){r=u;break}i=i.next("tr")}return r&&c.gwFocus.forceFocus(r,!1),!0},e.prototype.isIteratorCheckBoxCell=function(t){return l.gwUtil.hasClass(t,".gw-impl-cell--CB")},e.prototype.moveDownInListDetail=function(t){this.moveToAndPossiblySelectListDetailRow($(t).next("tr.gw-listDetail")[0])},e.prototype.moveUpInListDetail=function(t){this.moveToAndPossiblySelectListDetailRow($(t).prev("tr.gw-listDetail")[0])},e.prototype.moveToAndPossiblySelectListDetailRow=function(t){t&&(h.gwPrefPanel.getPrefValueByPrefName("keyboardNavSelectsListDetail")&&a.gwEvents.forceGlobalClickEvent(t),c.gwFocus.forceFocus(t))},e.prototype.dragStart=function(t,e){o.gwListViewHelper.dragStart(t,e)},e.prototype.dragEnd=function(){o.gwListViewHelper.dragEnd()},e.prototype.dragCancel=function(){o.gwListViewHelper.dragCancel()},e.prototype.drag=function(){o.gwListViewHelper.drag()},e}(f.GwDraggableSystem);e.GwListView=E,e.gwListView=new E},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(){this.enabled=!1,this.eventId="-1",this.requestStartTimeStamp=-1,this.requestSentTimeStamp=-1,this.responseReceivedTimeStamp=-1,this.infoArray=null}return t.prototype.getPerfInput=function(){return r.gwUtil.getDomNodeByName("reqMon")},t.prototype.getPerfInputOrThrow=function(){var t=this.getPerfInput();if(!t)throw new Error("Found null perf input element");return t},t.prototype.elapsed=function(t,e){return t&&e?Math.round(e-t):0},t.prototype.startRequest=function(t){if(this.enabled=!!this.getPerfInput(),this.enabled){if(this.infoArray){var e=this.getPerfInput();if(!e)return;e.setAttribute("value",JSON.stringify(this.infoArray)),this.infoArray=null}this.eventId=t,this.requestStartTimeStamp=performance.now()}},t.prototype.requestSent=function(){this.enabled&&(this.requestSentTimeStamp=performance.now())},t.prototype.responseReceived=function(){this.enabled&&(this.responseReceivedTimeStamp=performance.now())},t.prototype.responseProcessed=function(){if(this.enabled){var t=performance.now(),e=this.elapsed(this.requestStartTimeStamp,this.requestSentTimeStamp),n=this.elapsed(this.requestSentTimeStamp,this.responseReceivedTimeStamp),r=this.elapsed(this.responseReceivedTimeStamp,t),i=Math.round(performance.timing.navigationStart+t),o=this.getPerfInputOrThrow().dataset.gwRequestId;this.infoArray=[this.eventId,e,n,r,i,o,window.navigator.userAgent]}},t}();e.GwPerfAnalyzer=i,e.gwPerfAnalyzer=new i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),o=n(22),a=n(0),u=n(52),s=function(t){function e(e){var n=t.call(this,"")||this;return n.eventType="",n.unnamedArgs="",n.replacesClick=!1,n.id="",n.suffix="",n.key="",n.metaKey=!1,n.ctrlKey=!1,n.shiftKey=!1,n.altKey=!1,n.eventTargetNode=e,n.id=e.getAttribute("id")||"",n}return r(e,t),e.copy=function(e){var n=t.copy.call(this,e);return n.eventTargetNode=e.eventTargetNode,n.eventType=e.eventType,n.unnamedArgs=e.unnamedArgs,n.replacesClick=e.replacesClick,n.id=e.id,n.suffix=e.suffix,n.key=e.key,n.metaKey=e.metaKey,n.ctrlKey=e.ctrlKey,n.shiftKey=e.shiftKey,n.altKey=e.altKey,n},e.getEventDescription=function(t,n,r){var u=i.gwEvents.eventsMap[n.type]||n.type,s=this.parseEventDescription(t,t.getAttribute(i.gwEvents.dataPrefix+u))||this.createBasicEventDescription(t);if(s.eventType=u,"key"===s.eventType){var c=n,l=o.gwKeys.getKeyCode(c),f="";null!==l&&(f=""+l);var d=[];if(a.gwUtil.hasValue(s.keyCode)){var h=s.keyCode.split("|");h.length>1?(h.forEach(function(t){var n=e.copy(s);n.key=n.keyCode=t,d.push(n)}),s=d[0]):d.push(s)}a.gwUtil.hasValue(f)&&(f=f.toString());var p=null;return r||(p=this.descriptionFromKeyListener(o.gwKeys.findMatchingKeyListener(c,d,f),s)||this.descriptionFromKeyListener(o.gwKeys.findMatchingKeyListener(c,o.gwKeys.genericKeyReactors,f),s)),p||this.descriptionFromKeyListener(o.gwKeys.findClosestMatchingContextualKeyListener(c,t,f),s)||this.descriptionFromKeyListener(o.gwKeys.findMatchingServerShortcutKeyListener(c,f),s)||this.descriptionFromKeyListener(o.gwKeys.findMatchingKeyListener(c,o.gwKeys.globalShortcutKeyListeners,f),s)}return s.methodName?s:null},e.createBasicEventDescription=function(t){var n=new e(t);return n.suffix=i.gwEvents.actionSuffix,n},e.parseEventDescription=function(t,e){if(!e||""===e)return null;var n=this.createBasicEventDescription(t),r=e.indexOf(" ");if(-1===r)return n.methodName=e,n;n.methodName=e.substring(0,r);var i=e.substring(r+1);if("javascript"===n.methodName)return n.javascript=i,n;if(-1===i.indexOf(":"))return n.unnamedArgs=i,n;var o,a,u,s,c,l,f,d=i.length,h=!1;for(s=i.length-1;s>=0;s--)o=i[s],":"!==o?(0===s||h&&" "===o)&&(u=s?s+1:s,l=i.substring(c||0,d),l="null"===l?"":l,f=i.substring(u,a),"id"===f&&"^"===l&&(l=$(t).parents("[id]")[0].id),n[f]=l,d=s,h=!1):(h=!0,c=s+1,a=s);return n.keyCode=n.keyCode||n.key,n.shift=n.shift||n.shiftKey,n.alt=n.alt||n.altKey,n.ctrl=n.ctrl||n.ctrlKey,n.meta=n.meta||n.metaKey,n},e.descriptionFromKeyListener=function(t,e){var n=e;if(!t)return null;if("reactors"===t.createEventDescription){if(!(n=t.applyReactorsForKeyEvent(e.eventTargetNode)))return null}else if("server"===t.createEventDescription){if(!(n=t.serverShortcut()))return null}else n.methodName=t.methodName;return a.gwUtil.forEach(t.eventDescriptionArgs,function(t,e){n.hasOwnProperty(e)||(n[e]=t)}),n.enableDefault=t.enableDefault,n},e}(u.GwKeyListener);e.GwEventDescription=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(16),i=function(){function t(t){this._map={},this._count=0,t&&this.add(t)}return t.create=function(){for(var t=[],e=0;e0&&(i.gwUtil.getInputElement(this.PREF_INPUT_ID_SELECTOR).value=JSON.stringify(this.alteredPrefs))},e.prototype.init=function(){i.gwUtil.getInputElement(this.PREF_INPUT_ID_SELECTOR).value="",i.gwUtil.getUtilityFlag(this.PREF_STATE_DIV_ID)&&this.clearPrefs();var t=i.gwUtil.getUtilityJson(this.PREF_DIV_ID);this.serverPrefs=t||{}},e.prototype.clearPrefs=function(){this.alteredPrefs={}},e.prototype.resetPreferencesForId=function(t){this.clearPrefs(),i.gwUtil.setEventParam("resetPreferences",t),i.gwUtil.fireEvent("_refresh_")},e}(o.GwRegisteredSystem);e.GwPreferences=a,e.gwPreferences=new a},function(t,e,n){"use strict";function r(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===a.b&&e.documentElement.namespaceURI===a.b?e.createElement(t):e.createElementNS(n,t)}}function i(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var o=n(97),a=n(98);e.a=function(t){var e=Object(o.a)(t);return(e.local?i:r)(e)}},function(t,e,n){"use strict";e.a=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){"use strict";var r=n(108);n.d(e,"b",function(){return r.b}),n.d(e,"d",function(){return r.c}),n.d(e,"e",function(){return r.d});var i=n(332);n.d(e,"c",function(){return i.a});var o=n(333);n.d(e,"a",function(){return o.a})},function(t,e,n){"use strict";function r(t,e){var n,r;return function(){var i=Object(a.h)(this,t),o=i.tween;if(o!==n){r=n=o;for(var u=0,s=r.length;uc.o?t-c.w:t<-c.o?t+c.w:t,e]}function i(t,e,n){return(t%=c.w)?e||n?Object(s.a)(a(t),u(e,n)):a(t):e||n?u(e,n):r}function o(t){return function(e,n){return e+=t,[e>c.o?e-c.w:e<-c.o?e+c.w:e,n]}}function a(t){var e=o(t);return e.invert=o(-t),e}function u(t,e){function n(t,e){var n=Object(c.g)(e),u=Object(c.g)(t)*n,s=Object(c.t)(t)*n,l=Object(c.t)(e),f=l*r+u*i;return[Object(c.e)(s*o-f*a,u*r-l*i),Object(c.c)(f*o+s*a)]}var r=Object(c.g)(t),i=Object(c.t)(t),o=Object(c.g)(e),a=Object(c.t)(e);return n.invert=function(t,e){var n=Object(c.g)(e),u=Object(c.g)(t)*n,s=Object(c.t)(t)*n,l=Object(c.t)(e),f=l*o-s*a;return[Object(c.e)(s*o+l*a,u*r+f*i),Object(c.c)(f*r-u*i)]},n}e.b=i;var s=n(187),c=n(1);r.invert=r,e.a=function(t){function e(e){return e=t(e[0]*c.r,e[1]*c.r),e[0]*=c.h,e[1]*=c.h,e}return t=i(t[0]*c.r,t[1]*c.r,t.length>2?t[2]*c.r:0),e.invert=function(e){return e=t.invert(e[0]*c.r,e[1]*c.r),e[0]*=c.h,e[1]*=c.h,e},e}},function(t,e,n){"use strict";function r(t,e,n,r){function f(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function d(i,o,a,u){var s=0,c=0;if(null==i||(s=h(i,a))!==(c=h(o,a))||g(i,o)<0^a>0)do{u.point(0===s||3===s?t:n,s>1?r:e)}while((s=(s+a+4)%4)!==c);else u.point(o[0],o[1])}function h(r,o){return Object(i.a)(r[0]-t)0?0:3:Object(i.a)(r[0]-n)0?2:1:Object(i.a)(r[1]-e)0?1:0:o>0?3:2}function p(t,e){return g(t.x,e.x)}function g(t,e){var n=h(t,1),r=h(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(i){function h(t,e){f(t,e)&&M.point(t,e)}function g(){for(var e=0,n=0,i=E.length;nr&&(f-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(f-o)*(r-a)<(d-a)*(t-o)&&--e;return e}function v(){M=j,_=[],E=[],I=!0}function y(){var t=g(),e=I&&t,n=(_=Object(s.n)(_)).length;(e||n)&&(i.polygonStart(),e&&(i.lineStart(),d(null,null,1,i),i.lineEnd()),n&&Object(u.a)(_,p,t,d,i),i.polygonEnd()),M=i,_=E=O=null}function w(){N.point=b,E&&E.push(O=[]),P=!0,D=!1,T=x=NaN}function m(){_&&(b(C,S),A&&D&&j.rejoin(),_.push(j.result())),N.point=h,D&&M.lineEnd()}function b(i,o){var u=f(i,o);if(E&&O.push([i,o]),P)C=i,S=o,A=u,P=!1,u&&(M.lineStart(),M.point(i,o));else if(u&&D)M.point(i,o);else{var s=[T=Math.max(l,Math.min(c,T)),x=Math.max(l,Math.min(c,x))],d=[i=Math.max(l,Math.min(c,i)),o=Math.max(l,Math.min(c,o))];Object(a.a)(s,d,t,e,n,r)?(D||(M.lineStart(),M.point(s[0],s[1])),M.point(d[0],d[1]),u||M.lineEnd(),I=!1):u&&(M.lineStart(),M.point(i,o),I=!1)}T=i,x=o,D=u}var _,E,O,C,S,A,T,x,D,P,I,M=i,j=Object(o.a)(),N={point:h,lineStart:w,lineEnd:m,polygonStart:v,polygonEnd:y};return N}}e.a=r;var i=n(1),o=n(190),a=n(413),u=n(191),s=n(10),c=1e9,l=-c},function(t,e,n){"use strict";function r(t){return function(e){var n=new i;for(var r in t)n[r]=t[r];return n.stream=e,n}}function i(){}e.b=r,e.a=function(t){return{stream:r(t)}},i.prototype={constructor:i,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(t,e,n){"use strict";e.a=function(t,e,n,r,i){for(var o,a=t.children,u=-1,s=a.length,c=t.value&&(i-n)/t.value;++u=n?1:r(t)}}}function o(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}function a(t,e,n,r){var i=t[0],o=t[1],a=e[0],u=e[1];return o2?u:a,l=h=null,s}function s(e){return(l||(l=c(v,y,m?i(t):t,w)))(+e)}var c,l,h,v=g,y=g,w=f.a,m=!1;return s.invert=function(t){return(h||(h=c(y,v,r,m?o(e):e)))(+t)},s.domain=function(t){return arguments.length?(v=d.a.call(t,p.a),n()):v.slice()},s.range=function(t){return arguments.length?(y=d.b.call(t),n()):y.slice()},s.rangeRound=function(t){return y=d.b.call(t),w=f.r,n()},s.clamp=function(t){return arguments.length?(m=!!t,n()):m},s.interpolate=function(t){return arguments.length?(w=t,n()):w},n()}e.c=r,e.a=s,e.b=c;var l=n(10),f=n(20),d=n(36),h=n(126),p=n(208),g=[0,1]},function(t,e,n){"use strict";var r=n(8);n.d(e,"g",function(){return r.a});var i=n(489);n.d(e,"h",function(){return i.a}),n.d(e,"i",function(){return i.b}),n.d(e,"L",function(){return i.a}),n.d(e,"M",function(){return i.b});var o=n(490);n.d(e,"r",function(){return o.a}),n.d(e,"s",function(){return o.b}),n.d(e,"V",function(){return o.a}),n.d(e,"W",function(){return o.b});var a=n(491);n.d(e,"j",function(){return a.a}),n.d(e,"k",function(){return a.b});var u=n(492);n.d(e,"e",function(){return u.a}),n.d(e,"f",function(){return u.b});var s=n(493);n.d(e,"a",function(){return s.b}),n.d(e,"b",function(){return s.a});var c=n(494);n.d(e,"B",function(){return c.g}),n.d(e,"C",function(){return c.h}),n.d(e,"t",function(){return c.g}),n.d(e,"u",function(){return c.h}),n.d(e,"l",function(){return c.c}),n.d(e,"m",function(){return c.d}),n.d(e,"x",function(){return c.k}),n.d(e,"y",function(){return c.l}),n.d(e,"z",function(){return c.m}),n.d(e,"A",function(){return c.n}),n.d(e,"v",function(){return c.i}),n.d(e,"w",function(){return c.j}),n.d(e,"c",function(){return c.a}),n.d(e,"d",function(){return c.b}),n.d(e,"p",function(){return c.e}),n.d(e,"q",function(){return c.f});var l=n(495);n.d(e,"n",function(){return l.a}),n.d(e,"o",function(){return l.b});var f=n(496);n.d(e,"D",function(){return f.a}),n.d(e,"E",function(){return f.b});var d=n(497);n.d(e,"N",function(){return d.a}),n.d(e,"O",function(){return d.b});var h=n(498);n.d(e,"J",function(){return h.a}),n.d(e,"K",function(){return h.b});var p=n(499);n.d(e,"F",function(){return p.a}),n.d(e,"G",function(){return p.b});var g=n(500);n.d(e,"_5",function(){return g.g}),n.d(e,"_6",function(){return g.h}),n.d(e,"X",function(){return g.g}),n.d(e,"Y",function(){return g.h}),n.d(e,"P",function(){return g.c}),n.d(e,"Q",function(){return g.d}),n.d(e,"_1",function(){return g.k}),n.d(e,"_2",function(){return g.l}),n.d(e,"_3",function(){return g.m}),n.d(e,"_4",function(){return g.n}),n.d(e,"Z",function(){return g.i}),n.d(e,"_0",function(){return g.j}),n.d(e,"H",function(){return g.a}),n.d(e,"I",function(){return g.b}),n.d(e,"T",function(){return g.e}),n.d(e,"U",function(){return g.f});var v=n(501);n.d(e,"R",function(){return v.a}),n.d(e,"S",function(){return v.b});var y=n(502);n.d(e,"_7",function(){return y.a}),n.d(e,"_8",function(){return y.b})},function(t,e,n){"use strict";function r(t){this._context=t}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function i(t){this._context=t}e.c=r,e.a=i,i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e.b=function(t){return new i(t)}},function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function i(t,e){this._context=t,this._k=(1-e)/6}e.c=r,e.a=i,i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:r(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.b=function t(e){function n(t){return new i(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this._x=t,this._y=e,this._length=Math.sqrt(this._x*this._x+this._y*this._y)}return Object.defineProperty(t.prototype,"x",{get:function(){return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.minus=function(e){return new t(this.x-e.x,this.y-e.y)},t.prototype.distanceToPoint=function(t){return Math.sqrt((this.x-t.x)*(this.x-t.x)+(this.y-t.y)*(this.y-t.y))},t.getElTopLeftVector=function(e){var n=e.getBoundingClientRect();return new t(n.left,n.top)},t.ZERO=new t(0,0),t}();e.GwPoint=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(0),a=n(6),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getSystemName=function(){return"gwModalClientOverlay"},e.prototype.close=function(){o.gwUtil.removeNodeIfExists("#gw-ModalClientOverlay")},e.prototype.closeButtonClicked=function(){this.close(),a.gwFocus.restoreLastFocusNodeIfAvailable(!0)},e.prototype.openWithImage=function(t){null===t&&(t="");var e=o.gwUtil.createDiv("gw-loading",{id:"gw-ModalClientOverlay-img-wrapper"}),n=o.gwUtil.createEl("img",["gw-modal-image"],{src:t});n.onload=function(){e.classList.remove("gw-loading")},e.appendChild(n),this.build(e)},e.prototype.openWithElementContainer=function(t){this.build(t)},e.prototype.build=function(t){this.close();var e=o.gwUtil.createDiv(null,{id:"gw-ModalClientOverlay--close","data-gw-refuse-focus":!0,"data-gw-click":"gwModalClientOverlay.closeButtonClicked"}),n=o.gwUtil.createDiv(null,{id:"gw-ModalClientOverlay","data-gw-refuse-focus":!0,"data-gw-click":"noOp"},void 0,void 0,[t,e]);document.getElementById("gw-body").appendChild(n)},e}(i.GwRegisteredSystem);e.GwModalClientOverlay=u,e.gwModalClientOverlay=new u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(16),i=n(51),o=n(0),a=n(250),u=n(5),s=n(53),c=function(){function t(){this.eraYearLocalizedSuffix=" Year",this.eraMonthLocalizedSuffix="",this.highestEraIndex=0,this.eraIndexOrNameToDetails={},this.eraQuickToDetails={}}return t.prototype.mapEraDataFromServer=function(){var t=o.gwUtil.getUtilityJson("gw-eraInfo");if(t&&0!==t.length){for(var e=0;e=0;i--){var o=this.eraIndexOrNameToDetails[i];if(t>=o.start){n=t.getFullYear()-o.delta,r=o.name,e&&(this.setEraYearSelect(n),this.setEraSelect(i));break}}var a=""+n;return a.length<2&&(a="0"+a),{year:a,era:r}},t.prototype.getEraSelectValue=function(){var t=this.getEraSelect(null);t||(t=this.getEraInput(null));var e;return t&&(e=t.value),e||this.getEraValueForToday()},t.prototype.resetEraInputValue=function(t){var e=this.getEraInput(t);e&&(e.value="")},t}();e.GwJicHelper=c,e.gwJicHelper=new c},function(t,e,n){"use strict";var r=n(54);e.a=function(t,e,n){if(null==n&&(n=r.a),i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,o=(i-1)*e,a=Math.floor(o),u=+n(t[a],a,t);return u+(+n(t[a+1],a+1,t)-u)*(o-a)}}},function(t,e,n){"use strict";var r=n(281);n.d(e,"a",function(){return r.a});var i=n(166);n.d(e,"b",function(){return i.a}),n.d(e,"c",function(){return i.b})},function(t,e,n){"use strict";var r=n(98);e.a=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";function r(){}e.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";function r(t,e,n){return t=i(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function i(t,e,n){return function(r){var i=l;l=r;try{t.call(this,this.__data__,e,n)}finally{l=i}}}function o(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function a(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=E.exec(t))?o(parseInt(e[1],16)):(e=O.exec(t))?new c(e[1],e[2],e[3],1):(e=C.exec(t))?new c(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=S.exec(t))?a(e[1],e[2],e[3],e[4]):(e=A.exec(t))?a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=T.exec(t))?l(e[1],e[2]/100,e[3]/100,1):(e=x.exec(t))?l(e[1],e[2]/100,e[3]/100,e[4]):D.hasOwnProperty(t)?o(D[t]):"transparent"===t?new c(NaN,NaN,NaN,0):null}function o(t){return new c(t>>16&255,t>>8&255,255&t,1)}function a(t,e,n,r){return r<=0&&(t=e=n=NaN),new c(t,e,n,r)}function u(t){return t instanceof r||(t=i(t)),t?(t=t.rgb(),new c(t.r,t.g,t.b,t.opacity)):new c}function s(t,e,n,r){return 1===arguments.length?u(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function l(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new h(t,e,n,r)}function f(t){if(t instanceof h)return new h(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=i(t)),!t)return new h;if(t instanceof h)return t;t=t.rgb();var e=t.r/255,n=t.g/255,o=t.b/255,a=Math.min(e,n,o),u=Math.max(e,n,o),s=NaN,c=u-a,l=(u+a)/2;return c?(s=e===u?(n-o)/c+6*(n0&&l<1?0:s,new h(s,c,l,t.opacity)}function d(t,e,n,r){return 1===arguments.length?f(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function p(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=r,n.d(e,"d",function(){return v}),n.d(e,"c",function(){return y}),e.e=i,e.h=u,e.g=s,e.b=c,e.f=d;var g=n(105),v=.7,y=1/v,w="\\s*([+-]?\\d+)\\s*",m="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3})$/,E=/^#([0-9a-f]{6})$/,O=new RegExp("^rgb\\("+[w,w,w]+"\\)$"),C=new RegExp("^rgb\\("+[b,b,b]+"\\)$"),S=new RegExp("^rgba\\("+[w,w,w,m]+"\\)$"),A=new RegExp("^rgba\\("+[b,b,b,m]+"\\)$"),T=new RegExp("^hsl\\("+[m,b,b]+"\\)$"),x=new RegExp("^hsla\\("+[m,b,b,m]+"\\)$"),D={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(g.a)(r,i,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(g.a)(c,s,Object(g.b)(r,{brighter:function(t){return t=null==t?y:Math.pow(y,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?v:Math.pow(v,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Object(g.a)(h,d,Object(g.b)(r,{brighter:function(t){return t=null==t?y:Math.pow(y,t),new h(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?v:Math.pow(v,t),new h(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new c(p(t>=240?t-240:t+120,i,r),p(t,i,r),p(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e.b=r,e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],u=i>0?t[i-1]:2*o-a,s=i=0&&e._call.call(null,t),e=e._next;--p}function s(){m=(w=_.now())+b,p=g=0;try{u()}finally{p=0,l(),m=0}}function c(){var t=_.now(),e=t-w;e>y&&(b-=e,w=t)}function l(){for(var t,e,n=d,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:d=e);h=t,f(r)}function f(t){if(!p){g&&(g=clearTimeout(g));t-m>24?(t<1/0&&(g=setTimeout(s,t-_.now()-b)),v&&(v=clearInterval(v))):(v||(w=_.now(),v=setInterval(c,y)),p=1,E(s))}}e.b=r,e.a=o,e.c=a,e.d=u;var d,h,p=0,g=0,v=0,y=1e3,w=0,m=0,b=0,_="object"==typeof performance&&performance.now?performance:Date,E="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};o.prototype=a.prototype={constructor:o,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||h===this||(h?h._next=this:d=this,h=this),this._call=t,this._time=n,f()},stop:function(){this._call&&(this._call=null,this._time=1/0,f())}}},function(t,e,n){"use strict";function r(){}function i(t,e){var n=new r;if(t instanceof r)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,o=-1,a=t.length;if(null==e)for(;++o=o?h=!0:(n=t.charCodeAt(f++))===c?p=!0:n===l&&(p=!0,t.charCodeAt(f)===c&&++f),t.slice(r+1,e-1).replace(/""/g,'"')}for(;f1?r[0]+r.slice(2):r,+t.slice(n+1)]}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";function r(t,e){function n(t,e){var n=Object(i.u)(u-2*o*Object(i.t)(e))/o;return[n*Object(i.t)(t*=o),s-n*Object(i.g)(t)]}var r=Object(i.t)(t),o=(r+Object(i.t)(e))/2;if(Object(i.a)(o)=0;--a)d.push(r=n.children[a]=new s(i[a])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(u)}function i(){return r(this).eachBefore(a)}function o(t){return t.children}function a(t){t.data=t.data.data}function u(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function s(t){this.data=t,this.depth=this.height=0,this.parent=null}e.c=r,e.b=u,e.a=s;var c=n(438),l=n(439),f=n(440),d=n(441),h=n(442),p=n(443),g=n(444),v=n(445),y=n(446),w=n(447),m=n(448);s.prototype=r.prototype={constructor:s,count:c.a,each:l.a,eachAfter:d.a,eachBefore:f.a,sum:h.a,sort:p.a,path:g.a,ancestors:v.a,descendants:y.a,leaves:w.a,links:m.a,copy:i}},function(t,e,n){"use strict";function r(t){return null==t?null:i(t)}function i(t){if("function"!=typeof t)throw new Error;return t}e.a=r,e.b=i},function(t,e,n){"use strict";function r(t,e,n,r,a,u){for(var s,c,l,f,d,h,p,g,v,y,w,m=[],b=e.children,_=0,E=0,O=b.length,C=e.value;_p&&(p=c),w=d*d*y,(g=Math.max(p/w,w/h))>v){d-=c;break}v=g}m.push(s={value:d,dice:l1?e:1)},n}(a)},function(t,e,n){"use strict";function r(t){return function(e,n){t(null==e?n:null)}}function i(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}var o=n(56),a=n(33);e.a=function(t,e){function n(t){var e,n=h.status;if(!n&&i(h)||n>=200&&n<300||304===n){if(c)try{e=c.call(u,h)}catch(t){return void f.call("error",u,t)}else e=h;f.call("load",u,e)}else f.call("error",u,t)}var u,s,c,l,f=Object(a.a)("beforesend","progress","load","error"),d=Object(o.c)(),h=new XMLHttpRequest,p=null,g=null,v=0;if("undefined"==typeof XDomainRequest||"withCredentials"in h||!/^(http(s)?:)?\/\//.test(t)||(h=new XDomainRequest),"onload"in h?h.onload=h.onerror=h.ontimeout=n:h.onreadystatechange=function(t){h.readyState>3&&n(t)},h.onprogress=function(t){f.call("progress",u,t)},u={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?d.get(t):(null==e?d.remove(t):d.set(t,e+""),u)},mimeType:function(t){return arguments.length?(s=null==t?null:t+"",u):s},responseType:function(t){return arguments.length?(l=t,u):l},timeout:function(t){return arguments.length?(v=+t,u):v},user:function(t){return arguments.length<1?p:(p=null==t?null:t+"",u)},password:function(t){return arguments.length<1?g:(g=null==t?null:t+"",u)},response:function(t){return c=t,u},get:function(t,e){return u.send("GET",t,e)},post:function(t,e){return u.send("POST",t,e)},send:function(e,n,i){return h.open(e,t,!0,p,g),null==s||d.has("accept")||d.set("accept",s+",*/*"),h.setRequestHeader&&d.each(function(t,e){h.setRequestHeader(e,t)}),null!=s&&h.overrideMimeType&&h.overrideMimeType(s),null!=l&&(h.responseType=l),v>0&&(h.timeout=v),null==i&&"function"==typeof n&&(i=n,n=null),null!=i&&1===i.length&&(i=r(i)),null!=i&&u.on("error",i).on("load",function(t){i(null,t)}),f.call("beforesend",u,h),h.send(null==n?null:n),u},abort:function(){return h.abort(),u},on:function(){var t=f.on.apply(f,arguments);return t===f?u:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return u.get(e)}return u}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(128);n.d(e,"d",function(){return r.a}),n.d(e,"c",function(){return r.b}),n.d(e,"f",function(){return r.c}),n.d(e,"g",function(){return r.d}),n.d(e,"h",function(){return r.e});var i=n(211);n.d(e,"e",function(){return i.a});var o=n(212);n.d(e,"a",function(){return o.a});var a=n(503);n.d(e,"b",function(){return a.a})},function(t,e,n){"use strict";function r(t){return i=Object(c.a)(t),o=i.format,a=i.parse,u=i.utcFormat,s=i.utcParse,i}n.d(e,"b",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"d",function(){return u}),n.d(e,"e",function(){return s}),e.a=r;var i,o,a,u,s,c=n(211);r({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},function(t,e,n){"use strict";var r=n(34),i=n(37),o=n(88),a=n(130);e.a=function(){function t(t){var i,o,a,f=t.length,d=!1;for(null==s&&(l=c(a=Object(r.a)())),i=0;i<=f;++i)!(io.f){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>o.f){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/f,u=(u*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,a,u,t._x2,t._y2)}function i(t,e){this._context=t,this._alpha=e}e.b=r;var o=n(62),a=n(91);i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:r(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.a=function t(e){function n(t){return e?new i(t,e):new a.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t){for(var e,n=0,r=-1,i=t.length;++r0)){if(o/=p,p<0){if(o0){if(o>h)return;o>d&&(d=o)}if(o=r-s,p||!(o<0)){if(o/=p,p<0){if(o>h)return;o>d&&(d=o)}else if(p>0){if(o0)){if(o/=g,g<0){if(o0){if(o>h)return;o>d&&(d=o)}if(o=i-c,g||!(o<0)){if(o/=g,g<0){if(o>h)return;o>d&&(d=o)}else if(g>0){if(o0||h<1)||(d>0&&(t[0]=[s+d*p,c+d*g]),h<1&&(t[1]=[s+h*p,c+h*g]),!0)}}}}}function u(t,e,n,r,i){var o=t[1];if(o)return!0;var a,u,s=t[0],c=t.left,l=t.right,f=c[0],d=c[1],h=l[0],p=l[1],g=(f+h)/2,v=(d+p)/2;if(p===d){if(g=r)return;if(f>h){if(s){if(s[1]>=i)return}else s=[g,n];o=[g,i]}else{if(s){if(s[1]1)if(f>h){if(s){if(s[1]>=i)return}else s=[(n-u)/a,n];o=[(i-u)/a,i]}else{if(s){if(s[1]=r)return}else s=[e,a*e+u];o=[r,a*r+u]}else{if(s){if(s[0]c.f||Math.abs(i[0][1]-i[1][1])>c.f)||delete c.e[o]}e.c=r,e.b=i,e.d=o,e.a=s;var c=n(65)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(71),o=n(12),a=n(136),u=function(){function t(t){this._requestId=this.generateId(),this._isInline=t}return t.prototype.downloadDirectly=function(t){this.submitForm("FileContents.do",t)},t.prototype.postDownloadRequest=function(t){t&&(i.gwPerfAnalyzer.startRequest(t),$("#gw-event-source").val(t)),this.submitForm("",{})},t.prototype.submitForm=function(t,e){var n=this,o=$("#gw-root-form")[0];this.wrapWithParameters(o,e,function(){var e="formWindow"+n._requestId,a=n.createDownloadWindow(e);if(!a)return void console.error("Cannot open new window. Stop downloading");var u=o.action,s=o.target;o.action=t,o.target=e,o.submit(),n.checkDownloadStatus(a),u?o.action=u:o.removeAttribute("action"),s?o.target=s:o.removeAttribute("target"),r.gwUtil.clearEventParam(),i.gwPerfAnalyzer.requestSent()})},t.prototype.wrapWithParameters=function(e,n,r){var i=[];for(var o in n)n.hasOwnProperty(o)&&i.push(this.createInput(e,o,n[o]));i.push(this.createInput(e,t.REQUEST_ID_PARAM,this._requestId)),r(),i.forEach(function(t){t.remove()})},t.prototype.createInput=function(t,e,n){var r=$("",{name:e,value:n,type:"hidden"});return $(t).append(r),r},t.prototype.checkDownloadStatus=function(e){var n=this;setTimeout(function(){var r={};r[t.STATUS_PARAM]=n._requestId,o.gwAjax.ajaxRequest(r,function(t){t.success?n._isInline||n.closeDownloadWindow(e):(a.gwMessages.addFileDownloadError(t.error),n.closeDownloadWindow(e))},function(t){n.closeDownloadWindow(e),console.error("Something went wrong: "+t)})},t.WAIT_TILL_STATUS_REQUEST)},t.prototype.createDownloadWindow=function(t){if(this._isInline)return window.open("about:blank",t);var e=document.createElement("iframe");return e.name=t,e.style.visibility="hidden",document.body.appendChild(e),e},t.prototype.closeDownloadWindow=function(t){this._isInline?t.close():document.body.removeChild(t)},t.prototype.generateId=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",e="",n=0;n<5;n++)e+=t.charAt(Math.floor(Math.random()*t.length));return e+Date.now()},t.REQUEST_ID_PARAM="downloadRequestId",t.STATUS_PARAM="__downloadStatus",t.WAIT_TILL_STATUS_REQUEST=100,t}();e.GwFileRequest=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),o=n(3),a=n(0),u=n(38),s=n(137),c=n(13),l=n(15),f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.NAV_ATTR="data-gw-nav",e.ERROR_CLASS="gw-navHasErrors",e.WARNING_CLASS="gw-navHasWarnings",e.ERROR_QUICK_BUTTON_ID="gw-quickErrorButton",e.LIVE_REGION_ID="gw-messagesLiveRegion",e.focusElementOnNextPageLoad=null,e.errorsOnCurrentPage=!1,e.possiblyHighlightErrorButton=!1,e.numErrorsOnPage=0,e.numWarningsOnPage=0,e.numInfosOnPage=0,e.MESSAGE_SELECTOR_PARENT=".gw-WebMessage",e.ERROR_MESSAGE_SELECTOR=e.MESSAGE_SELECTOR_PARENT+" .gw-alert-error",e.WARNING_MESSAGE_SELECTOR=e.MESSAGE_SELECTOR_PARENT+" .gw-alert-warning",e.INFO_MESSAGE_SELECTOR=e.MESSAGE_SELECTOR_PARENT+" .gw-alert-info",e}return r(e,t),e.prototype.getSystemName=function(){return"gwMessages"},e.prototype.init=function(){this.updateWebMessageIndicators()},e.prototype.addFileDownloadError=function(t){if(null!==t){var e=document.createElement("div");a.gwUtil.dangerouslySetInnerHTML(e,t);var n=e.firstChild;e.removeChild(n);for(var r=a.gwUtil.getDomNodeOrThrow("#"+n.id.replace(/-\d+$/,""));r.firstChild;)r.removeChild(r.firstChild);r.appendChild(n),a.gwUtil.removeClass(r,"gw-hidden"),this.countAllMessagesBySeverityAndUpdateLiveRegion()}},e.prototype.updateWebMessageIndicators=function(){var t=this;a.gwUtil.removeClass("."+this.ERROR_CLASS,this.ERROR_CLASS),a.gwUtil.removeClass("."+this.WARNING_CLASS,this.WARNING_CLASS),this.possiblyHighlightErrorButton=!this.errorsOnCurrentPage,this.errorsOnCurrentPage=!1,this.iterateMessagesWidgetsWithErrors(function(e){t.errorsOnCurrentPage=!0;var n=a.gwUtil.getSelfOrFirstParentWithClass(e,"gw-south-panel");n&&a.gwUtil.addClass(n,t.ERROR_CLASS)}),this.possiblyHighlightErrorButton=this.possiblyHighlightErrorButton&&this.errorsOnCurrentPage;var e=a.gwUtil.getDomNodesByAttr(this.NAV_ATTR);a.gwUtil.forEach(e,function(e){t.markNavElementAsHavingErrors(e.getAttribute(t.NAV_ATTR),a.gwUtil.hasClass(e,"gw-MessagesWidget--group-warning"))}),this.focusElementOnNextPageLoad&&(this.highlight(null,{id:this.focusElementOnNextPageLoad}),this.focusElementOnNextPageLoad=null),this.updateQuickErrorButton(),this.countAllMessagesBySeverityAndUpdateLiveRegion()},e.prototype.updateQuickErrorButton=function(){var t=this.getQuickErrorButtonOrThrow();a.gwUtil.conditionalAddRemoveClass(this.errorsOnCurrentPage,t,"gw-hasErrors"),this.possiblyHighlightErrorButton&&u.gwAnimation.addAnimation(t,"hugepulse")},e.prototype.willFocusElementOnNextPageLoad=function(){return!!this.focusElementOnNextPageLoad},e.prototype.getQuickErrorButtonOrThrow=function(){var t=document.getElementById(this.ERROR_QUICK_BUTTON_ID);if(!t)throw new Error("missing quick error button at id: "+this.ERROR_QUICK_BUTTON_ID);return t},e.prototype.getLiveRegion=function(){var t=document.getElementById(this.LIVE_REGION_ID);return t||null},e.prototype.iterateMessagesWidgetsWithErrors=function(t){a.gwUtil.forEach(a.gwUtil.getDomNodes(".gw-MessagesWidget--group-error"),function(e){var n=a.gwUtil.getSelfOrFirstParentWithClass(e,".gw-MessagesWidget");n&&!a.gwUtil.hasAnyClass(n,["gw-hidden","gw-placeholder"])&&t(n)})},e.prototype.countAllMessagesBySeverityAndUpdateLiveRegion=function(){this.numInfosOnPage=document.querySelectorAll(this.INFO_MESSAGE_SELECTOR).length,this.numWarningsOnPage=document.querySelectorAll(this.WARNING_MESSAGE_SELECTOR).length,this.numErrorsOnPage=document.querySelectorAll(this.ERROR_MESSAGE_SELECTOR).length,this.updateMessagesLiveRegion()},e.prototype.updateMessagesLiveRegion=function(){var t=this.getLiveRegion();if(t){var e="Web.Client.MessagesWidgetLiveRegionContains",n=[];this.numErrorsOnPage>0&&(e+="Errors",n.push(l.gwDisplayKey.get("Web.Client.MessagesWidgetLiveRegionNumErrors",this.numErrorsOnPage))),this.numWarningsOnPage>0&&(e+="Warnings",n.push(l.gwDisplayKey.get("Web.Client.MessagesWidgetLiveRegionNumWarnings",this.numWarningsOnPage))),this.numInfosOnPage>0&&(e+="Infos",n.push(l.gwDisplayKey.get("Web.Client.MessagesWidgetLiveRegionNumInfos",this.numInfosOnPage))),0===n.length?c.gwAria.setAriaPropertyForElement("label","",t):(n.unshift(l.gwDisplayKey.get(e)),c.gwAria.setAriaPropertyForElement("label",n.join(" "),t))}},e.prototype.quickErrorButton=function(t,e){this.iterateMessagesWidgetsWithErrors(function(t){a.gwUtil.getSelfOrFirstParentWithClass(t,"gw-south-panel")&&s.gwSouthPanel.unMinimize();var e=t.querySelector(".gw-WebMessage");if(e){var n=a.gwUtil.getSelfOrFirstParentWithClass(e,".gw-MessagesWidget--severity-sub-group");if(null===n)return;if(a.gwUtil.removeClass(n,"gw-collapsed"),null!==a.gwUtil.getSelfOrFirstParentWithClass(n,"gw-MessagesWidget--group-UNKNOWN")){var r=n.querySelector(".gw-toggle-button");i.gwFocus.forceFocus(r,!1)}else i.gwFocus.forceFocus(e,!1)}})},e.prototype.toggleGroup=function(t,e){var n=a.gwUtil.getSelfOrFirstParentWithClass(t,".gw-MessagesWidget--destination-group");n&&a.gwUtil.toggleClass(n,"gw-collapsed")},e.prototype.toggleSubGroup=function(t,e){var n=a.gwUtil.getSelfOrFirstParentWithClass(t,".gw-MessagesWidget--severity-sub-group");n&&(a.gwUtil.toggleClass(n,"gw-collapsed"),c.gwAria.setAriaPropertyForElement("expanded",!a.gwUtil.hasClass(n,"gw-collapsed"),t))},e.prototype.markNavElementAsHavingErrors=function(t,e){void 0===e&&(e=!1),a.gwUtil.addClass("#"+t,e?this.WARNING_CLASS:this.ERROR_CLASS)},e.prototype.highlight=function(t,e){i.gwFocus.forceFocus("#"+e.id,!0)},e.prototype.navigate=function(t,e){var n=a.gwUtil.getSelfOrFirstParentWithClass(t,"gw-MessagesWidget--destination-group");if(!n)throw new Error("Could not find parent group for Message Widget."+(t.id||t.name||t.innerHTML));var r=n.getAttribute(this.NAV_ATTR);r&&(e.next&&(this.focusElementOnNextPageLoad=e.next),a.gwUtil.fireEvent(r+e.suffix))},e.prototype.action=function(t,e){a.gwUtil.setEventParam("action",e.param.replace(/\+\+actionValue\+colon\+\+/g,":")),a.gwUtil.fireEvent(e.id+e.suffix)},e}(o.GwInitializableSystem);e.GwMessages=f,e.gwMessages=new f},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),o=n(23),a=n(17),u=n(0),s=n(66),c=n(39),l=n(13),f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.IS_MINIMIZED_KEY="SouthPanel_Min",e.HEIGHT_KEY="SouthPanel.size",e.DEFAULT_HEIGHT_PERCENTAGE=.4,e.MINIMUM_CENTER_PANEL_HEIGHT=10,e._snapLine=80,e._startY=null,e._offsetFromDragBar=0,e._dragBar=null,e}return r(e,t),e.prototype.getSystemName=function(){return"gwSouthPanel"},e.prototype.init=function(t){this.setSnapLineFromCss(),this.setPanelToSavedHeightAfterRender(),this.possiblyHideDuplicateTitlebar();var e=document.getElementById("gw-south-panel-toggleMinMax_float");e&&l.gwAria.setAriaPropertyForElement("expanded",!this.isMinimized(),e)},e.prototype.possiblyHideDuplicateTitlebar=function(){var t=this.getSouthPanelEl();if(t){var e=t.querySelector(".gw-isScreenTitle");if(e){var n=e.querySelector(".gw-TitleBar--title");if(n){var r=t.querySelector(".gw-WorksheetTabWidget.gw-active .gw-label");if(!r)return void u.gwUtil.removeClass(n,"gw-hidden");u.gwUtil.conditionalAddRemoveClass(n.innerText===r.innerText,e,".gw-hidden")}}}},e.prototype.ensureHeightFits=function(t){if(this.isHidden())return 0;if(this.isMinimized())return this.computeActualHeight();var e=this.getStoredHeight(),n=t-this.MINIMUM_CENTER_PANEL_HEIGHT;if(null!==e&&e<=n)return e;var r=null===e?Math.min(Math.floor(t*this.DEFAULT_HEIGHT_PERCENTAGE),n):n;return r0,a=t.right.getElementsByTagName("option").length>0;o.gwUtil.conditionalAddRemoveAttr(!i,r,"aria-disabled","true"),o.gwUtil.conditionalAddRemoveAttr(!a,n,"aria-disabled","true"),i&&t.left.removeAttribute("disabled"),a&&t.right.removeAttribute("disabled")},n.prototype.clearInternalShuttleSelect=function(t){for(var e=t.children.length-1;e>=0;e--){var n=t.children[e];t.removeChild(n)}},n.prototype.buildUpdatedValuesForShuttleWidget=function(t,e){for(var n="add"===e?t.left:t.right,r=[],i=0;i-1&&(c.selected=!0)}s.gwNavigation.setFocusToClosestFocusableSelfOrParent(o)},n.prototype.updateAvailableAndSelectedShuttleLists=function(t){var e=this.getShuttleBoxInputs("#"+t.name);this.clearInternalShuttleSelect(e.right),this.clearInternalShuttleSelect(e.left);for(var n=0;n2?n[1]:t},e.prototype.translateLogicalNameToId=function(t,e){var n=t.logicalNameToIdMap;if(!n)throw new Error("No logical name to ID map found for window. Ensure that the widget in the PCF contains one.");if(!n.hasOwnProperty(e))throw new Error("Logical name to ID map for the embedded widget does not contain an entry for logical name: "+e);return n[e]},e.prototype.translateIdToLogicalName=function(t,e){var n=t.logicalNameToIdMap;if(!n)throw new Error("No logical name to ID map found for window. Ensure that the widget in the PCF contains one.");for(var r=0,i=Object.keys(n);r0&&(this.userRestrictionTypeCustomerOverrides.customPerCharacterRegex1=new RegExp(t)),e&&e.length>0&&(this.userRestrictionTypeCustomerOverrides.customPerCharacterRegex2=new RegExp(e))},e.prototype.handleValidationForEmailType=function(t){var e=t.value;!e||e.length<7||f.test(e)||this.warnAboutUserInputFloatOnly(t,"* 1@2.3")},e.prototype.getRegexForRestrictionType=function(t){t=t||"all";var e=this.userRestrictionTypeCustomerOverrides[t]||d[t];if(!e)throw new Error("Unknown user input restriction type: "+t+". This is likely due to a misconfiguration with userRestrictionTypeCustomerOverrides");return e},e.prototype.getRegexForRestrictionTypeFromString=function(t){return this.getRegexForRestrictionType(this.getRestrictionTypeFromString(t))},e.prototype.getRestrictionTypeFromString=function(t){return null===t?"all":d.hasOwnProperty(t)?t:"all"},e.prototype.getRestrictionTypeFromValueWidget=function(t){return this.getRestrictionTypeFromString(t.getAttribute("data-gw-restricted-input"))},e.prototype.userRestrictionTypeUsesGroupingFormatting=function(t){return"integer"===t||"decimal"===t},e.prototype.userInputRejectedSingleCharacter=function(t,e){o.gwAnimation.addAnimation(t,"error-shake"),this.floatIllegalInput(t,e,"error")},e.prototype.userInputRejectedOnPaste=function(t,e){e.length>99&&(e=e.slice(0,99)),o.gwAnimation.addAnimation(t,"error-shake"),this.floatIllegalInput(t,e,"error")},e.prototype.warnAboutUserInput=function(t,e){o.gwAnimation.addAnimation(t,"error-shake"),this.floatIllegalInput(t,e,"warning")},e.prototype.warnAboutUserInputFloatOnly=function(t,e){this.floatIllegalInput(t,e,"warning")},e.prototype.floatIllegalInput=function(t,e,n){if(!a.gwUtil._isSimulatedDOM()){var r=t.parentElement;if(r){a.gwUtil.removeNodeIfExists(".gw-client-validation-float",r);var i=u.GwDivBuilder.withLabel(e).withClasses("gw-client-validation-float","gw-client-validation-"+n).withAttr("data-gw-click","gwClientValidation.dismiss").build();t.parentElement.appendChild(i);s.gwInputSystems.preventFloatingElementFromBeingOffscreen(r,t,i)&&a.gwUtil.addClass(i,"gw-client-validation-float--above"),window.setTimeout(function(){a.gwUtil.removeNode(i)},3e3)}}},e.prototype.dismiss=function(t){a.gwUtil.removeNode(t)},e.prototype.dismissAll=function(){var t=this,e=document.getElementsByClassName("gw-client-validation-float");e&&a.gwUtil.forEach(e,function(e){t.dismiss(e)})},e}(i.GwInitializableSystem);e.GwClientValidation=c,e.gwClientValidation=new c;var l="\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC",f=/^.+@.+\..+$/,d={all:/./g,numerals:new RegExp("[\\d]"),integer:new RegExp("[\\d]"),phone:new RegExp("[\\d\\+\\(\\)\\-\\s]"),decimal:new RegExp("[\\d\\.\\,]"),alphabeticAToZ:new RegExp("[a-zA-Z]"),alphabeticAToZNumeric:new RegExp("[a-zA-Z\\d]"),alphabeticAToZNameChars:new RegExp("[a-zA-Z\\-\\s\\'\\\"\\.\\,]"),alphabeticGlobal:new RegExp("["+l+"]"),alphabeticGlobalNumeric:new RegExp("["+l+"\\d]"),alphabeticGlobalNameChars:new RegExp("["+l+"\\-\\s\\'\\\"\\.\\,]"),customPerCharacterRegex1:/./g,customPerCharacterRegex2:/./g}},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(42),a=n(0),u=n(6),s=n(12),c=n(69),l=n(9),f=n(5),d=n(47),h=n(4),p=n(22),g=n(14),v=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeoutKey=-1,e.autocompleteDelay=500,e.autocompletedValueCache=null,e.currentAutocompleteEntry=null,e.autocompleteInput=null,e.autocompleteDiv=null,e}return r(n,t),n.prototype.getSystemName=function(){return"gwAutocomplete"},n.prototype.init=function(t){t&&o.gwNavigation.registerNavFunction(function(t){return t.hasAttribute("data-gw-input-for-autocomplete")},e.gwAutocomplete)},n.prototype.cancelAnyPendingAutocomplete=function(){this.timeoutKey>=0&&(clearTimeout(this.timeoutKey),this.timeoutKey=-1)},n.prototype.autocompleteOnFocus=function(t,e,n){this.isFocusEventCausedByAutocompleteEntry(n)||(this.autocompletedValueCache=null,this.currentAutocompleteEntry=null,this.autocompleteInput=null,this.autocompleteDiv=null,this.cancelAnyPendingAutocomplete())},n.prototype.autocomplete=function(t,e){void 0===e&&(e=!1),this.cancelAnyPendingAutocomplete(),this.timeoutKey=setTimeout(this.fetchAutocompleteData.bind(this,t.name||t.id,e),this.autocompleteDelay)},n.prototype.inputTabbed=function(){this.closeAutocomplete()},n.prototype.addTabListenerToInput=function(){this.autocompleteInput&&this.autocompleteInput.setAttribute("data-gw-key","gwAutocomplete.tabOrEnterKeyPressed key:9|13 enableDefault:true")},n.prototype.removeTabListenerFromInput=function(){this.autocompleteInput&&this.autocompleteInput.setAttribute("data-gw-key",h.gwEvents.complexAttributeTransforms["data-gw-autocomplete"]["data-gw-key"])},n.prototype.fetchAutocompleteData=function(t,e){void 0===e&&(e=!1),this.timeoutKey=-1;var n=a.gwUtil.getDomNodeByName(t);if(n){var r=g.gwForm.findEnclosingValueWidget(n);if(r){var i=l.gwInputSystems.getValueWithMaskTrimmed(n),o=+a.gwUtil.getDatasetPropOrDefault(r,"gwCharThreshold","1");if(i.length0?this.createAutocompleteEntries(t,e,n.results):this.destroyAutocompleteEntriesIfVisible(t)},n.prototype.createAutocompleteEntries=function(t,e,n){this.autocompleteInput=a.gwUtil.getDomNodeByAttr("name",t);var r=this.autocompleteInput;if(r&&document.activeElement===r&&l.gwInputSystems.getValueWithMaskTrimmed(r)===e){r.removeAttribute("data-gw-focus"),r.setAttribute("data-gw-blur","gwAutocomplete.autocompleteInputBlurred"),r.setAttribute("data-gw-input-for-autocomplete","true");var i=$(r).parent();i.addClass("gw-autocomplete--container"),this.autocompleteDiv?a.gwUtil.clearInnerHTML(this.autocompleteDiv):this.autocompleteDiv=a.gwUtil.createDivWithId("gw-autocomplete"),i.append(this.autocompleteDiv);for(var o=g.gwForm.findEnclosingValueWidget(r),u=o&&o.hasAttribute("data-gw-autocomplete-markup"),s=0;s=e.length&&(e=e.substring(0,t.selectionStart));var n=this.currentAutocompleteEntry.dataset.gwEntryValue||"";n.length'}),t.replace(/\[\/\w+]/g,"")},n.prototype.setCurrentAutocompleteEntry=function(t){this.autocompleteDiv&&(this.currentAutocompleteEntry&&a.gwUtil.removeClass(this.currentAutocompleteEntry,"gw-autocomplete--current-entry"),this.currentAutocompleteEntry?"down"===t&&this.currentAutocompleteEntry.nextSibling?this.currentAutocompleteEntry=this.currentAutocompleteEntry.nextSibling:"up"===t&&this.currentAutocompleteEntry.previousSibling&&(this.currentAutocompleteEntry=this.currentAutocompleteEntry.previousSibling):this.currentAutocompleteEntry=this.autocompleteDiv.firstChild,a.gwUtil.addClass(this.currentAutocompleteEntry,"gw-autocomplete--current-entry"),this.currentAutocompleteEntry&&this.currentAutocompleteEntry.scrollIntoView&&this.currentAutocompleteEntry.scrollIntoView())},n.prototype.isFocusEventCausedByAutocompleteEntry=function(t){return t.relatedTarget&&a.gwUtil.hasClass(t.relatedTarget,"gw-autocomplete--entry")},n.prototype.revertAutocompleteInput=function(){if(this.autocompleteInput){var t=this.autocompleteInput;t.selectionStart0},no:function(t,e){return 0===this.countTargetedCheckedCheckBoxesWithFlag(t,e)},all:function(t,e){var n=this.countTargetedCheckedCheckBoxesWithFlag(t,e);return n>0&&n===this.targetedCheckedCheckBoxes(t).length},exists:function(t,e){var n=this;return this.targetedCheckBoxes(t).filter(function(t){return n.checkBoxHasFlag(t,e)}).length>0}},this.checkBoxes=[],this.buttons=[],void 0===t)throw new Error("checkbox flag group missing an iterator id");$("[data-gw-flags-scope='"+t+"']").each(function(t,n){void 0!==n.dataset.gwFlagsConditions?e.buttons.push(n):void 0!==n.dataset.gwFlagsForEntry?e.checkBoxes.push(n):e.headerCheckBox=n})}return t.prototype.updateButtonsAvailability=function(){var t=this;this.buttons.forEach(function(e){return t.updateButtonAvailability(e)})},t.prototype.updateButtonAvailability=function(t){var e=this,n=t.dataset.gwFlagsConditions.split(","),i=!1;n.forEach(function(n){e.evaluateCondition(t,n.trim())||(i=!0)}),r.gwUtil.conditionalAddRemoveAttr(i,t,"aria-disabled","true"),r.gwUtil.forEach($(t).find("> .gw-action--inner, > .gw-action--expand-button"),function(t){r.gwUtil.conditionalAddRemoveAttr(i,t,"aria-disabled","true")})},t.prototype.evaluateCondition=function(t,e){var n=e.split(" ").map(function(t){return t.trim()});if(2!==n.length)return!0;var r=n[0];if("function"!=typeof this.operations[r])throw new Error("received unknown method for Flag Group: "+r);return this.operations[r].call(this,t,n[1])},t.prototype.countTargetedCheckedCheckBoxesWithFlag=function(t,e){var n=this;return this.targetedCheckedCheckBoxes(t).reduce(function(t,r){return"*"===e||n.checkBoxHasFlag(r,e)?t+1:t},0)},t.prototype.checkBoxHasFlag=function(t,e){return t.dataset.gwFlagsForEntry.split(",").indexOf(e)>=0},t.prototype.targetedCheckedCheckBoxes=function(t){return this.targetedCheckBoxes(t).filter(function(t){return t.checked})},t.prototype.targetedCheckBoxes=function(t){var e=this;return this.checkBoxes.filter(function(n){return e.targetListStartsWith(n.dataset.gwFlagsTarget,t.dataset.gwFlagsTarget)})},t.prototype.targetListStartsWith=function(t,e){return 0===t.indexOf(e)&&(e.length===t.length||","===t[e.length])},t}();e.GwFlagGroup=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50),i=function(){function t(t){this.currentDay=0,this.currentMonth=0,this.currentYear=0,this.selectedDay=0,this.selectedMonth=0,this.selectedYear=0,this.drawMonth=0,this.drawYear=0,this.eraYear=1,this.lastVal=null,this.disableDaysAfter=null,this.disableDaysBefore=null,this.disableTestFoundDate1=0,this.$input=$(t),this.inputEl=t,this.$inputParent=$(t).parent(),this.dateIconEl=document.getElementById(t.name+"_dateIcon"),this.isJIC=r.gwJic.isJIC(t)}return t}();e.GwDateInfo=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(5),o=n(12),a=n(2),u=n(3),s=function(){function t(){this._util=null}return t.prototype.addServerErrorHandler=function(t){return o.gwAjax.addServerErrorHandler(t)},t.prototype.removeServerErrorHandler=function(t){o.gwAjax.removeServerErrorHandler(t)},t.prototype.submitTemplateAction=function(t,e){r.gwUtil.setEventParam("templateJson",JSON.stringify(e)),r.gwUtil.fireEvent(t+"_templateAction")},t.prototype.updateTemplate=function(t,e,n,r){var i={__templatePanelId:t,templateJson:JSON.stringify(e)};o.gwAjax.ajaxRequest(i,n,r)},t.prototype.getValue=function(t){var e;try{e=i.gwInputs.getValueById(t)}catch(t){r.gwUtil.devlog(t.message),e=t}return e},t.prototype.getValues=function(t){var e;try{e=i.gwInputs.getValuesByIds(t)}catch(t){e=t,r.gwUtil.devlog(t.message)}return e},t.prototype.setValue=function(t,e,n){void 0===n&&(n=!0);var o;try{o=i.gwInputs.setValueById(t,e,n)}catch(t){r.gwUtil.devlog(t.message),o=t}return o},t.prototype.setValues=function(t,e){void 0===e&&(e=!0);var n;try{n=i.gwInputs.setValuesByIds(t,e)}catch(t){r.gwUtil.devlog(t.message),n=t}return n},Object.defineProperty(t.prototype,"Util",{get:function(){return null===this._util&&(this._util={getValue:this.getValue.bind(this),getValues:this.getValues.bind(this),setValue:this.setValue.bind(this),setValues:this.setValues.bind(this)}),this._util},enumerable:!0,configurable:!0}),t.prototype.registerGlobalSystem=function(t){a.GwRegisteredSystem.register(t),this.hasInit(t)&&u.GwInitializableSystem.register(t)},t.prototype.hasInit=function(t){return"init"in t},t}();e.GwApi=s},function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return u});var r=n(43),i=n(149),o=Object(i.a)(r.a),a=o.right,u=o.left;e.c=a},function(t,e,n){"use strict";function r(t){return function(e,n){return Object(i.a)(t(e),n)}}var i=n(43);e.a=function(t){return 1===t.length&&(t=r(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}},function(t,e,n){"use strict";function r(t,e){return[t,e]}e.b=r,e.a=function(t,e){null==e&&(e=r);for(var n=0,i=t.length-1,o=t[0],a=new Array(i<0?0:i);n1)return c/(a-1)}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i=0?(s>=o?10:s>=a?5:s>=u?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(s>=o?10:s>=a?5:s>=u?2:1)}function i(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),s=r/i;return s>=o?i*=10:s>=a?i*=5:s>=u&&(i*=2),e0)return[t];if((i=e0)for(t=Math.ceil(t/u),e=Math.floor(e/u),a=new Array(o=Math.ceil(e-t+1));++s=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r}},function(t,e,n){"use strict";function r(t){return t.length}var i=n(158);e.a=function(t){if(!(a=t.length))return[];for(var e=-1,n=Object(i.a)(t,r),o=new Array(n);++e1?this.each((null==e?r:"function"==typeof e?o:i)(t,e,null==n?"":n)):a(this.node(),t)}},function(t,e,n){"use strict";function r(t,e){var n=t.document.documentElement,r=Object(i.k)(t).on("dragstart.drag",null);e&&(r.on("click.drag",o.a,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}e.b=r;var i=n(7),o=n(167);e.a=function(t){var e=t.document.documentElement,n=Object(i.k)(t).on("dragstart.drag",o.a,!0);"onselectstart"in e?n.on("selectstart.drag",o.a,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}},function(t,e,n){"use strict";function r(){i.e.stopImmediatePropagation()}e.b=r;var i=n(7);e.a=function(){i.e.preventDefault(),i.e.stopImmediatePropagation()}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";function r(t){return function(e){var n,r,o=e.length,a=new Array(o),u=new Array(o),s=new Array(o);for(n=0;nl&&(c=e.slice(l,c),d[f]?d[f]+=c:d[++f]=c),(n=n[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:Object(o.a)(n,s)})),l=u.lastIndex;return lr.d&&n.state1?(null==e?g.remove(t):g.set(t,i(e)),c):g.get(t)},find:function(e,n,r){var i,o,a,u,s,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(y.on(t,e),c):y.on(t)}}}},function(t,e,n){"use strict";var r=n(80),i=n(400),o=n(401),a=n(182),u=n(183),s=n(184),c=n(404),l=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){function e(t){function e(t){var e,o,a,u=b,d=_;if("c"===m)d=E(t)+d,t="";else{t=+t;var g=t<0;if(t=E(Math.abs(t),w),g&&0==+t&&(g=!1),u=(g?"("===i?i:"-":"-"===i||"("===i?"":i)+u,d=("s"===m?l[8+s.b/3]:"")+d+(g&&"("===i?")":""),O)for(e=-1,o=t.length;++e(a=t.charCodeAt(e))||a>57){d=(46===a?h+t.slice(e+1):t.slice(e))+d,t=t.slice(0,e);break}}y&&!c&&(t=f(t,1/0));var C=u.length+t.length+d.length,S=C>1)+u+t+d+S.slice(C);break;default:t=S+u+t+d}return p(t)}t=Object(a.a)(t);var n=t.fill,r=t.align,i=t.sign,o=t.symbol,c=t.zero,v=t.width,y=t.comma,w=t.precision,m=t.type,b="$"===o?d[0]:"#"===o&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===o?d[1]:/[%p]/.test(m)?g:"",E=u.a[m],O=!m||/[defgprs%]/.test(m);return w=null==w?m?6:12:/[gprs]/.test(m)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),e.toString=function(){return t+""},e}function n(t,n){var i=e((t=Object(a.a)(t),t.type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3))),u=Math.pow(10,-o),s=l[8+o/3];return function(t){return i(u*t)+s}}var f=t.grouping&&t.thousands?Object(i.a)(t.grouping,t.thousands):c.a,d=t.currency,h=t.decimal,p=t.numerals?Object(o.a)(t.numerals):c.a,g=t.percent||"%";return{format:e,formatPrefix:n}}},function(t,e,n){"use strict";function r(t){return new i(t)}function i(t){if(!(e=a.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",u=e[4]||"",s=!!e[5],c=e[6]&&+e[6],l=!!e[7],f=e[8]&&+e[8].slice(1),d=e[9]||"";"n"===d?(l=!0,d="g"):o.a[d]||(d=""),(s||"0"===n&&"="===r)&&(s=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=u,this.zero=s,this.width=c,this.comma=l,this.precision=f,this.type=d}e.a=r;var o=n(183),a=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;r.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type}},function(t,e,n){"use strict";var r=n(402),i=n(184),o=n(403);e.a={"":r.a,"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Object(o.a)(100*t,e)},r:o.a,s:i.a,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r,i=n(116);e.a=function(t,e){var n=Object(i.a)(t,e);if(!n)return t+"";var o=n[0],a=n[1],u=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,s=o.length;return u===s?o:u>s?o+new Array(u-s+1).join("0"):u>0?o.slice(0,u)+"."+o.slice(u):"0."+new Array(1-u).join("0")+Object(i.a)(t,Math.max(0,e+u-1))[0]}},function(t,e,n){"use strict";function r(){w.point=o}function i(){a(u,s)}function o(t,e){w.point=a,u=t,s=e,t*=h.r,e*=h.r,c=t,l=Object(h.g)(e=e/2+h.q),f=Object(h.t)(e)}function a(t,e){t*=h.r,e*=h.r,e=e/2+h.q;var n=t-c,r=n>=0?1:-1,i=r*n,o=Object(h.g)(e),a=Object(h.t)(e),u=f*a,s=l*o+u*Object(h.g)(i),d=u*r*Object(h.t)(i);v.add(Object(h.e)(d,s)),c=t,l=o,f=a}n.d(e,"a",function(){return v}),n.d(e,"b",function(){return w});var u,s,c,l,f,d=n(45),h=n(1),p=n(31),g=n(35),v=Object(d.a)(),y=Object(d.a)(),w={point:p.a,lineStart:p.a,lineEnd:p.a,polygonStart:function(){v.reset(),w.lineStart=r,w.lineEnd=i},polygonEnd:function(){var t=+v;y.add(t<0?h.w+t:t),this.lineStart=this.lineEnd=this.point=p.a},sphere:function(){y.add(h.w)}};e.c=function(t){return y.reset(),Object(g.a)(t,w),2*y}},function(t,e,n){"use strict";function r(t,e,n,r,a,s){if(n){var c=Object(u.g)(e),l=Object(u.t)(e),f=r*n;null==a?(a=e+r*u.w,s=e-f/2):(a=i(c,a),s=i(c,s),(r>0?as)&&(a+=r*u.w));for(var d,h=a;r>0?h>s:h0?u.o:-u.o,l=Object(u.a)(a-n);Object(u.a)(l-u.o)0?u.l:-u.l),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(a,r),e=0):o!==c&&l>=u.o&&(Object(u.a)(n-o)u.i?Object(u.d)((Object(u.t)(e)*(o=Object(u.g)(r))*Object(u.t)(n)-Object(u.t)(r)*(i=Object(u.g)(e))*Object(u.t)(t))/(i*o*a)):(e+r)/2}function o(t,e,n,r){var i;if(null==t)i=n*u.l,r.point(-u.o,i),r.point(0,i),r.point(u.o,i),r.point(u.o,0),r.point(u.o,-i),r.point(0,-i),r.point(-u.o,-i),r.point(-u.o,0),r.point(-u.o,i);else if(Object(u.a)(t[0]-e[0])>u.i){var o=t[0]1}function i(t,e){return((t=t.x)[0]<0?t[1]-u.l-u.i:u.l-t[1])-((e=e.x)[0]<0?e[1]-u.l-u.i:u.l-e[1])}var o=n(190),a=n(191),u=n(1),s=n(193),c=n(10);e.a=function(t,e,n,u){return function(l){function f(e,n){t(e,n)&&l.point(e,n)}function d(t,e){_.point(t,e)}function h(){S.point=d,_.lineStart()}function p(){S.point=f,_.lineEnd()}function g(t,e){b.push([t,e]),O.point(t,e)}function v(){O.lineStart(),b=[]}function y(){g(b[0][0],b[0][1]),O.lineEnd();var t,e,n,i,o=O.clean(),a=E.result(),u=a.length;if(b.pop(),w.push(b),b=null,u)if(1&o){if(n=a[0],(e=n.length-1)>0){for(C||(l.polygonStart(),C=!0),l.lineStart(),t=0;t1&&2&o&&a.push(a.pop().concat(a.shift())),m.push(a.filter(r))}var w,m,b,_=e(l),E=Object(o.a)(),O=e(E),C=!1,S={point:f,lineStart:h,lineEnd:p,polygonStart:function(){S.point=g,S.lineStart=v,S.lineEnd=y,m=[],w=[]},polygonEnd:function(){S.point=f,S.lineStart=h,S.lineEnd=p,m=Object(c.n)(m);var t=Object(s.a)(w,u);m.length?(C||(l.polygonStart(),C=!0),Object(a.a)(m,i,t,n,l)):t&&(C||(l.polygonStart(),C=!0),l.lineStart(),n(null,null,1,l),l.lineEnd()),C&&(l.polygonEnd(),C=!1),m=w=null},sphere:function(){l.polygonStart(),l.lineStart(),n(null,null,1,l),l.lineEnd(),l.polygonEnd()}};return S}}},function(t,e,n){"use strict";var r=n(31);e.a=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:r.a,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}},function(t,e,n){"use strict";function r(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function i(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0;--s)u.point((h=d[s])[0],h[1]);else a(g.x,g.p.x,-1,u);g=g.p}g=g.o,d=g.z,v=!v}while(!g.v);u.lineEnd()}}}},function(t,e,n){"use strict";var r=n(1);e.a=function(t,e){return Object(r.a)(t[0]-e[0])=0?1:-1,T=A*S,x=T>o.o,D=y*O;if(a.add(Object(o.e)(D*A*Object(o.t)(T),w*C+D*Object(o.g)(T))),s+=x?S+A*o.w:S,x^g>=n^_>=n){var P=Object(i.c)(Object(i.a)(p),Object(i.a)(b));Object(i.e)(P);var I=Object(i.c)(u,P);Object(i.e)(I);var M=(x^S>=0?-1:1)*Object(o.c)(I[2]);(r>M||r===M&&(P[0]||P[1]))&&(c+=x^S>=0?1:-1)}}return(s<-o.i||sf}function s(t){var e,r,i,u,s;return{lineStart:function(){u=i=!1,s=1},point:function(f,d){var g,v=[f,d],y=n(f,d),w=h?y?0:l(f,d):y?l(f+(f<0?o.o:-o.o),d):0;if(!e&&(u=i=y)&&t.lineStart(),y!==i&&(!(g=c(e,v))||Object(a.a)(e,g)||Object(a.a)(v,g))&&(v[0]+=o.i,v[1]+=o.i,y=n(v[0],v[1])),y!==i)s=0,y?(t.lineStart(),g=c(v,e),t.point(g[0],g[1])):(g=c(e,v),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(p&&e&&h^y){var m;w&r||!(m=c(v,e,!0))||(s=0,h?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!y||e&&Object(a.a)(e,v)||t.point(v[0],v[1]),e=v,i=y,r=w},lineEnd:function(){i&&t.lineEnd(),e=null},clean:function(){return s|(u&&i)<<1}}}function c(t,e,n){var i=Object(r.a)(t),a=Object(r.a)(e),u=[1,0,0],s=Object(r.c)(i,a),c=Object(r.d)(s,s),l=s[0],d=c-l*l;if(!d)return!n&&t;var h=f*c/d,p=-f*l/d,g=Object(r.c)(u,s),v=Object(r.f)(u,h),y=Object(r.f)(s,p);Object(r.b)(v,y);var w=g,m=Object(r.d)(v,w),b=Object(r.d)(w,w),_=m*m-b*(Object(r.d)(v,v)-1);if(!(_<0)){var E=Object(o.u)(_),O=Object(r.f)(w,(-m-E)/b);if(Object(r.b)(O,v),O=Object(r.g)(O),!n)return O;var C,S=t[0],A=e[0],T=t[1],x=e[1];A0^O[1]<(Object(o.a)(O[0]-S)o.o^(S<=O[0]&&O[0]<=A)){var M=Object(r.f)(w,(-m+E)/b);return Object(r.b)(M,v),[O,Object(r.g)(M)]}}}function l(e,n){var r=h?t:o.o-t,i=0;return e<-r?i|=1:e>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}var f=Object(o.g)(t),d=6*o.r,h=f>0,p=Object(o.a)(f)>o.i;return Object(u.a)(n,s,e,h?[0,-t]:[-o.o,t-o.o])}},function(t,e,n){"use strict";var r=n(196),i=[null,null],o={type:"LineString",coordinates:i};e.a=function(t,e){return i[0]=t,i[1]=e,Object(r.a)(o)}},function(t,e,n){"use strict";function r(){g.point=o,g.lineEnd=i}function i(){g.point=g.lineEnd=d.a}function o(t,e){t*=f.r,e*=f.r,u=t,s=Object(f.t)(e),c=Object(f.g)(e),g.point=a}function a(t,e){t*=f.r,e*=f.r;var n=Object(f.t)(e),r=Object(f.g)(e),i=Object(f.a)(t-u),o=Object(f.g)(i),a=Object(f.t)(i),l=r*a,d=c*n-s*r*o,h=s*n+c*r*o;p.add(Object(f.e)(Object(f.u)(l*l+d*d),h)),u=t,s=n,c=r}var u,s,c,l=n(45),f=n(1),d=n(31),h=n(35),p=Object(l.a)(),g={sphere:d.a,point:d.a,lineStart:r,lineEnd:d.a,polygonStart:d.a,polygonEnd:d.a};e.a=function(t){return p.reset(),Object(h.a)(t,g),+p}},function(t,e,n){"use strict";function r(t,e){tu&&(u=t),es&&(s=e)}var i=n(31),o=1/0,a=o,u=-o,s=u,c={point:r,lineStart:i.a,lineEnd:i.a,polygonStart:i.a,polygonEnd:i.a,result:function(){var t=[[o,a],[u,s]];return u=s=-(a=o=1/0),t}};e.a=c},function(t,e,n){"use strict";var r=n(118);e.a=function(){return Object(r.b)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(t,e,n){"use strict";function r(t,e){return[t,e]}e.b=r;var i=n(25);r.invert=r,e.a=function(){return Object(i.a)(r).scale(152.63)}},function(t,e,n){"use strict";function r(t,e,n){var r=t.x,i=t.y,o=e.r+n.r,a=t.r+n.r,u=e.x-r,s=e.y-i,c=u*u+s*s;if(c){var l=.5+((a*=a)-(o*=o))/(2*c),f=Math.sqrt(Math.max(0,2*o*(a+c)-(a-=c)*a-o*o))/(2*c);n.x=r+l*u+f*s,n.y=i+l*s-f*u}else n.x=r+a,n.y=i}function i(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return i*i-1e-6>n*n+r*r}function o(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function a(t){this._=t,this.next=null,this.previous=null}function u(t){if(!(c=t.length))return 0;var e,n,u,c,l,f,d,h,p,g,v;if(e=t[0],e.x=0,e.y=0,!(c>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(c>2))return e.r+n.r;r(n,e,u=t[2]),e=new a(e),n=new a(n),u=new a(u),e.next=u.previous=n,n.next=e.previous=u,u.next=n.previous=e;t:for(d=3;d0&&n*n>r*r+i*i}function a(t,e){for(var n=0;n1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(r.a)},function(t,e,n){"use strict";var r=n(46);e.a=function t(e){function n(t){return function(){for(var n=0,r=0;r53)return null;"w"in s||(s.w=1),"Z"in s?(r=i(o(s.y)),u=r.getUTCDay(),r=u>4||0===u?ht.P.ceil(r):Object(ht.P)(r),r=ht.F.offset(r,7*(s.V-1)),s.y=r.getUTCFullYear(),s.m=r.getUTCMonth(),s.d=r.getUTCDate()+(s.w+6)%7):(r=e(o(s.y)),u=r.getDay(),r=u>4||0===u?ht.l.ceil(r):Object(ht.l)(r),r=ht.a.offset(r,7*(s.V-1)),s.y=r.getFullYear(),s.m=r.getMonth(),s.d=r.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),u="Z"in s?i(o(s.y)).getUTCDay():e(o(s.y)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(u+5)%7:s.w+7*s.U-(u+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,i(s)):e(s)}}function a(t,e,n,r){for(var i,o,a=0,u=e.length,s=n.length;a=s)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=Jt[i in pt?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function u(t,e,n){var r=Lt.exec(e.slice(n));return r?(t.p=Bt[r[0].toLowerCase()],n+r[0].length):-1}function s(t,e,n){var r=Gt.exec(e.slice(n));return r?(t.w=Ht[r[0].toLowerCase()],n+r[0].length):-1}function gt(t,e,n){var r=Vt.exec(e.slice(n));return r?(t.w=Wt[r[0].toLowerCase()],n+r[0].length):-1}function vt(t,e,n){var r=zt.exec(e.slice(n));return r?(t.m=Yt[r[0].toLowerCase()],n+r[0].length):-1}function yt(t,e,n){var r=Kt.exec(e.slice(n));return r?(t.m=qt[r[0].toLowerCase()],n+r[0].length):-1}function wt(t,e,n){return a(t,It,e,n)}function mt(t,e,n){return a(t,Mt,e,n)}function bt(t,e,n){return a(t,jt,e,n)}function _t(t){return kt[t.getDay()]}function Et(t){return Ft[t.getDay()]}function Ot(t){return Ut[t.getMonth()]}function Ct(t){return Rt[t.getMonth()]}function St(t){return Nt[+(t.getHours()>=12)]}function At(t){return kt[t.getUTCDay()]}function Tt(t){return Ft[t.getUTCDay()]}function xt(t){return Ut[t.getUTCMonth()]}function Dt(t){return Rt[t.getUTCMonth()]}function Pt(t){return Nt[+(t.getUTCHours()>=12)]}var It=t.dateTime,Mt=t.date,jt=t.time,Nt=t.periods,Ft=t.days,kt=t.shortDays,Rt=t.months,Ut=t.shortMonths,Lt=c(Nt),Bt=l(Nt),Vt=c(Ft),Wt=l(Ft),Gt=c(kt),Ht=l(kt),Kt=c(Rt),qt=l(Rt),zt=c(Ut),Yt=l(Ut),$t={a:_t,A:Et,b:Ot,B:Ct,c:null,d:P,e:P,f:F,H:I,I:M,j:j,L:N,m:k,M:R,p:St,Q:ft,s:dt,S:U,u:L,U:B,V:V,w:W,W:G,x:null,X:null,y:H,Y:K,Z:q,"%":lt},Xt={a:At,A:Tt,b:xt,B:Dt,c:null,d:z,e:z,f:Q,H:Y,I:$,j:X,L:J,m:Z,M:tt,p:Pt,Q:ft,s:dt,S:et,u:nt,U:rt,V:it,w:ot,W:at,x:null,X:null,y:ut,Y:st,Z:ct,"%":lt},Jt={a:s,A:gt,b:vt,B:yt,c:wt,d:b,e:b,f:A,H:E,I:E,j:_,L:S,m:m,M:O,p:u,Q:x,s:D,S:C,u:d,U:h,V:p,w:f,W:g,x:mt,X:bt,y:y,Y:v,Z:w,"%":T};return $t.x=e(Mt,$t),$t.X=e(jt,$t),$t.c=e(It,$t),Xt.x=e(Mt,Xt),Xt.X=e(jt,Xt),Xt.c=e(It,Xt),{format:function(t){var n=e(t+="",$t);return n.toString=function(){return t},n},parse:function(t){var e=n(t+="",r);return e.toString=function(){return t},e},utcFormat:function(t){var n=e(t+="",Xt);return n.toString=function(){return t},n},utcParse:function(t){var e=n(t,i);return e.toString=function(){return t},e}}}function u(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function w(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function m(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function b(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function _(t,e,n){var r=gt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function E(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function O(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function C(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function S(t,e,n){var r=gt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function A(t,e,n){var r=gt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function T(t,e,n){var r=vt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function x(t,e,n){var r=gt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function D(t,e,n){var r=gt.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function P(t,e){return u(t.getDate(),e,2)}function I(t,e){return u(t.getHours(),e,2)}function M(t,e){return u(t.getHours()%12||12,e,2)}function j(t,e){return u(1+ht.a.count(Object(ht.D)(t),t),e,3)}function N(t,e){return u(t.getMilliseconds(),e,3)}function F(t,e){return N(t,e)+"000"}function k(t,e){return u(t.getMonth()+1,e,2)}function R(t,e){return u(t.getMinutes(),e,2)}function U(t,e){return u(t.getSeconds(),e,2)}function L(t){var e=t.getDay();return 0===e?7:e}function B(t,e){return u(ht.t.count(Object(ht.D)(t),t),e,2)}function V(t,e){var n=t.getDay();return t=n>=4||0===n?Object(ht.v)(t):ht.v.ceil(t),u(ht.v.count(Object(ht.D)(t),t)+(4===Object(ht.D)(t).getDay()),e,2)}function W(t){return t.getDay()}function G(t,e){return u(ht.l.count(Object(ht.D)(t),t),e,2)}function H(t,e){return u(t.getFullYear()%100,e,2)}function K(t,e){return u(t.getFullYear()%1e4,e,4)}function q(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+u(e/60|0,"0",2)+u(e%60,"0",2)}function z(t,e){return u(t.getUTCDate(),e,2)}function Y(t,e){return u(t.getUTCHours(),e,2)}function $(t,e){return u(t.getUTCHours()%12||12,e,2)}function X(t,e){return u(1+ht.F.count(Object(ht._7)(t),t),e,3)}function J(t,e){return u(t.getUTCMilliseconds(),e,3)}function Q(t,e){return J(t,e)+"000"}function Z(t,e){return u(t.getUTCMonth()+1,e,2)}function tt(t,e){return u(t.getUTCMinutes(),e,2)}function et(t,e){return u(t.getUTCSeconds(),e,2)}function nt(t){var e=t.getUTCDay();return 0===e?7:e}function rt(t,e){return u(ht.X.count(Object(ht._7)(t),t),e,2)}function it(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Object(ht.Z)(t):ht.Z.ceil(t),u(ht.Z.count(Object(ht._7)(t),t)+(4===Object(ht._7)(t).getUTCDay()),e,2)}function ot(t){return t.getUTCDay()}function at(t,e){return u(ht.P.count(Object(ht._7)(t),t),e,2)}function ut(t,e){return u(t.getUTCFullYear()%100,e,2)}function st(t,e){return u(t.getUTCFullYear()%1e4,e,4)}function ct(){return"+0000"}function lt(){return"%"}function ft(t){return+t}function dt(t){return Math.floor(+t/1e3)}e.a=a;var ht=n(87),pt={"-":"",_:" ",0:"0"},gt=/^\s*\d+/,vt=/^%/,yt=/[\\^$*+?|[\]().{}]/g},function(t,e,n){"use strict";function r(t){return t.toISOString()}n.d(e,"b",function(){return o});var i=n(128),o="%Y-%m-%dT%H:%M:%S.%LZ",a=Date.prototype.toISOString?r:Object(i.d)(o);e.a=a},function(t,e,n){"use strict";var r=n(34),i=n(37),o=n(88),a=n(129),u=n(130);e.a=function(){function t(t){var e,i,o,a,u,g=t.length,v=!1,y=new Array(g),w=new Array(g);for(null==d&&(p=h(u=Object(r.a)())),e=0;e<=g;++e){if(!(e=i;--o)p.point(y[o],w[o]);p.lineEnd(),p.areaEnd()}v&&(y[e]=+n(a,e,t),w[e]=+c(a,e,t),p.point(s?+s(a,e,t):y[e],l?+l(a,e,t):w[e]))}if(u)return p=null,u+""||null}function e(){return Object(a.a)().defined(f).curve(h).context(d)}var n=u.a,s=null,c=Object(i.a)(0),l=u.b,f=Object(i.a)(!0),d=null,h=o.a,p=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:Object(i.a)(+e),s=null,t):n},t.x0=function(e){return arguments.length?(n="function"==typeof e?e:Object(i.a)(+e),t):n},t.x1=function(e){return arguments.length?(s=null==e?null:"function"==typeof e?e:Object(i.a)(+e),t):s},t.y=function(e){return arguments.length?(c="function"==typeof e?e:Object(i.a)(+e),l=null,t):c},t.y0=function(e){return arguments.length?(c="function"==typeof e?e:Object(i.a)(+e),t):c},t.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:Object(i.a)(+e),t):l},t.lineX0=t.lineY0=function(){return e().x(n).y(c)},t.lineY1=function(){return e().x(n).y(l)},t.lineX1=function(){return e().x(s).y(c)},t.defined=function(e){return arguments.length?(f="function"==typeof e?e:Object(i.a)(!!e),t):f},t.curve=function(e){return arguments.length?(h=e,null!=d&&(p=h(d)),t):h},t.context=function(e){return arguments.length?(null==e?d=p=null:p=h(d=e),t):d},t}},function(t,e,n){"use strict";function r(t){this._curve=t}function i(t){function e(e){return new r(t(e))}return e._curve=t,e}n.d(e,"a",function(){return a}),e.b=i;var o=n(88),a=i(o.a);r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}}},function(t,e,n){"use strict";function r(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Object(i.b)(t)):e()._curve},t}e.b=r;var i=n(214),o=n(129);e.a=function(){return r(Object(o.a)().curve(i.a))}},function(t,e,n){"use strict";e.a=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.prototype.slice},function(t,e,n){"use strict";var r=n(62);e.a={draw:function(t,e){var n=Math.sqrt(e/r.j);t.moveTo(n,0),t.arc(0,0,n,0,r.m)}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}}},function(t,e,n){"use strict";var r=Math.sqrt(1/3),i=2*r;e.a={draw:function(t,e){var n=Math.sqrt(e/i),o=n*r;t.moveTo(0,-n),t.lineTo(o,0),t.lineTo(0,n),t.lineTo(-o,0),t.closePath()}}},function(t,e,n){"use strict";var r=n(62),i=Math.sin(r.j/10)/Math.sin(7*r.j/10),o=Math.sin(r.m/10)*i,a=-Math.cos(r.m/10)*i;e.a={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),i=o*n,u=a*n;t.moveTo(0,-n),t.lineTo(i,u);for(var s=1;s<5;++s){var c=r.m*s/5,l=Math.cos(c),f=Math.sin(c);t.lineTo(f*n,-l*n),t.lineTo(l*i-f*u,f*i+l*u)}t.closePath()}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}}},function(t,e,n){"use strict";var r=Math.sqrt(3);e.a={draw:function(t,e){var n=-Math.sqrt(e/(3*r));t.moveTo(0,2*n),t.lineTo(-r*n,-n),t.lineTo(r*n,-n),t.closePath()}}},function(t,e,n){"use strict";var r=-.5,i=Math.sqrt(3)/2,o=1/Math.sqrt(12),a=3*(o/2+1);e.a={draw:function(t,e){var n=Math.sqrt(e/a),u=n/2,s=n*o,c=u,l=n*o+n,f=-c,d=l;t.moveTo(u,s),t.lineTo(c,l),t.lineTo(f,d),t.lineTo(r*u-i*s,i*u+r*s),t.lineTo(r*c-i*l,i*c+r*l),t.lineTo(r*f-i*d,i*f+r*d),t.lineTo(r*u+i*s,r*s-i*u),t.lineTo(r*c+i*l,r*l-i*c),t.lineTo(r*f+i*d,r*d-i*f),t.closePath()}}},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var i=n(89),o=n(91);r.prototype={areaStart:i.a,areaEnd:i.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(o.c)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.b=function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var i=n(91);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(i.c)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.b=function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t){return l.b[t.index]={site:t,halfedges:[]}}function i(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function o(t,e){return e[+(e.left!==t.site)]}function a(t,e){return e[+(e.left===t.site)]}function u(){for(var t,e,n,r,o=0,a=l.b.length;ol.f||Math.abs(m-v)>l.f)&&(d.splice(f,0,l.e.push(Object(c.b)(s,y,Math.abs(w-t)l.f?[t,Math.abs(g-t)l.f?[Math.abs(v-r)l.f?[n,Math.abs(g-n)l.f?[Math.abs(v-e)=-s.g)){var y=d*d+h*h,w=p*p+g*g,m=(g*y-h*w)/v,b=(d*w-p*y)/v,_=c.pop()||new r;_.arc=t,_.site=o,_.x=m+l,_.y=(_.cy=b+f)+Math.sqrt(m*m+b*b),t.circle=_;for(var E=null,O=s.c._;O;)if(_.y20&&(n+="\n\t..."),this.showAlert(n)}},e.prototype.uploadTotalSizeError=function(t,e,n){e<=0||this.showAlert(a.gwDisplayKey.get("Web.Client.Document.Upload.Failure.TotalSize",t,this.convertToMB(e),this.convertToMB(n)))},e.prototype.uploadTotalCountError=function(t,e){t<=0||this.showAlert(a.gwDisplayKey.get("Web.Client.Document.Upload.Failure.TotalCount",t,e))},e.prototype.uploadOtherError=function(t){var e=t.length;if(!(e<1)){var n="";t.length=20,t.forEach(function(t){0!==n.length&&(n+="\n"),n+=t}),e>20&&(n+="\n..."),this.showAlert(n)}},e.prototype.processUploadResponse=function(t){if(t.errors){for(var e in t.errors.errorGeneral)t.errors.errorGeneral.hasOwnProperty(e)&&this.showAlert(t.errors.errorGeneral[e]);t.errors.errorReasonSize&&this.uploadSizeError(t.errors.errorReasonSize.sizeLimit,t.errors.errorReasonSize.files),t.errors.errorReasonTotalSize&&(t.errors.errorReasonTotalSize.rejectedDueToSizeCount&&this.uploadTotalSizeError(t.errors.errorReasonTotalSize.rejectedDueToSizeCount,t.errors.errorReasonTotalSize.spaceRequested,t.errors.errorReasonTotalSize.availableSpace),t.errors.errorReasonTotalSize.rejectedDueToQuotaExceededCount&&this.uploadTotalCountError(t.errors.errorReasonTotalSize.rejectedDueToQuotaExceededCount,t.errors.errorReasonTotalSize.availableCount)),t.errors.errorReasonOther&&this.uploadOtherError(t.errors.errorReasonOther)}return t.success},e.prototype.verifyUploadFiles=function(t,e){var n=document.getElementById(t);if(n){var r=n.getAttribute("data-gw-file-info");if(r){var i=JSON.parse(r),a=[],u=[],s=0,c=e.length;if(i.hasOwnProperty("maxFileSize")){for(var l=0;l0)return this.uploadSizeError(i.maxFileSize,u),!1;if(a.length<=0)return o.gwUtil.devlog("Could not find any qualified files."),!1}if(i.hasOwnProperty("availableSpace")&&s>i.availableSpace)return this.uploadTotalSizeError(a.length,s,i.availableSpace),!1;if(i.hasOwnProperty("maxFileUploadCount")&&i.maxFileUploadCount>0&&a.length>i.availableFileUploadCount)return this.uploadTotalCountError(a.length,i.availableFileUploadCount),!1}}return!0},e.prototype.uploadFiles=function(t,e,n){var r=this;if(this.verifyUploadFiles(t,e)){$("#"+t+this.fileTextSuffix).first().val(e.map(function(t){return t.name}).join(" "));var i=new XMLHttpRequest;i.open("POST",o.gwUtil.getUtilityInfo("fileUploadUrl")),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(this.createFormData(t,e)),i.addEventListener("load",function(){var e=JSON.parse(i.response);r.processUploadResponse(e),n(),r.postOnChange(t)})}},e.prototype.downloadManually=function(t){var e="inline"===t.contentDisposition;new u.GwFileRequest(e).downloadDirectly({widgetId:t.fileInputElementId,contentDisposition:t.contentDisposition})},e.prototype.downloadHandler=function(t,e,n){new u.GwFileRequest("true"===e.inline).postDownloadRequest(e.id+e.suffix)},e.prototype.postOnChange=function(t){"refresh"===this.getFileInputOrThrow(t).getAttribute("data-gw-postOnChange")&&o.gwUtil.refresh(t)},e.prototype.getFileInput=function(t){return o.gwUtil.getInputElement("#"+t+this.fileInputSuffix)},e.prototype.getFileInputOrThrow=function(t){var e=this.getFileInput(t);if(null===e)throw new Error("Unable to locate file input widget for: "+t);return e},e.prototype.createFormData=function(t,e){var n=new FormData;n.append("widgetId",t);for(var r=0;r0;)this.forceExpandedAndStoreState(e),e=o.gwUtil.getSelfOrFirstParentWithAttr(e,"data-gw-collapsible-container")},e.prototype.toggleCollapsed=function(t,e,n){var r=this.getOuterCollapsibleContainerOrThrow(t);this.toggleCollapsedAndStoreState(r)},e.prototype.restoreCollapsedPanelStates=function(){o.gwUtil.forEachReverse(o.gwUtil.getDomNodesByAttr("data-gw-collapsible-container"),this.restoreCollapsedState.bind(this))},e.prototype.getCollapsedKey=function(t){var e=t.getAttribute("data-gw-custom-collapse");return e?this.getSystemName()+"."+e+".custom_collapsed":this.getSystemName()+"."+t.id+".collapsed"},e.prototype.restoreCollapsedState=function(t){var e=a.gwStorage.get(this.getCollapsedKey(t));return o.gwUtil.hasValue(e)||(e=t.classList.contains("gw-collapsed")),e?this.forceCollapsedAndStoreState(t):this.forceExpandedAndStoreState(t),e},e.prototype.forceCollapsedAndStoreState=function(t){a.gwStorage.set(this.getCollapsedKey(t),!0),o.gwUtil.addClass(t,"gw-collapsed"),this.updateErrorStatesOnContainer(t,!0)},e.prototype.forceExpandedAndStoreState=function(t){var e=this;a.gwStorage.set(this.getCollapsedKey(t),!1),o.gwUtil.removeClass(t,"gw-collapsed"),this.updateErrorStatesOnContainer(t,!1);var n=t.getAttribute("data-gw-accordion-group");if(o.gwUtil.hasValue(o.gwUtil.convertIfString(n))){var r=o.gwUtil.getDomNodesByAttr("data-gw-accordion-group",n);o.gwUtil.forEachReverse(r,function(n){n&&n.id===t.id||e.forceCollapsedAndStoreState(n)})}},e.prototype.toggleCollapsedAndStoreState=function(t){var e=a.gwStorage.toggleFlag(this.getCollapsedKey(t),t.classList.contains("gw-collapsed"));return e?this.forceCollapsedAndStoreState(t):this.forceExpandedAndStoreState(t),e},e.prototype.getOuterCollapsibleContainerOrThrow=function(t){var e=o.gwUtil.getSelfOrFirstParentWithAttr(t,"data-gw-collapsible-container");if(!e)throw new Error("Unable to locate collapsible container for element: "+t.id);return e},e.prototype.updateErrorStatesOnContainer=function(t,e){var n=!!t.querySelector("[aria-invalid='true']");o.gwUtil.conditionalAddRemoveClass(e&&n,t,"gw-contains-error")},e}(i.GwInitializableSystem);e.GwPanelRef=u,e.gwPanelRef=new u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),o=n(32),a=n(23),u=n(66),s=n(0),c=n(28),l=n(39),f=n(13),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.westPanelLastActiveIDs="WestPanel.lastActive",e.westPanelMinKey="WestPanel_Min",e.westPanelSizeKey="WestPanel.size",e.westPanelSnapLine=104,e.startX=null,e.offsetFromDragBar=0,e._dragBar=null,e}return r(e,t),e.prototype.getSystemName=function(){return"gwWestPanel"},e.prototype.init=function(){this._restoreWestPanel()},e.prototype.toggleMinMax=function(){var t=!a.gwStorage.toggleFlag(this.westPanelMinKey);this.restoreWestPanelWidth();var e=this.getWestPanelMinMaxToggle();e&&f.gwAria.setAriaPropertyForElement("expanded",t,e),i.gwResizer.check()},e.prototype._restoreWestPanel=function(){this.openLastActiveMenuItem(),this.restoreWestPanelWidth(),this.scrollActiveLocationMenuItemIntoViewIfNeeded()},e.prototype.scrollActiveLocationMenuItemIntoViewIfNeeded=function(){var t=document.getElementById("gw-west-panel--children--wrapper");if(t){var e=t.querySelectorAll(".gw-active");if(e){var n=e[e.length-1];c.gwScroll.scrollElementIntoView(t,n)}}},e.prototype.openLastActiveMenuItem=function(){var t=a.gwStorage.get(this.westPanelLastActiveIDs);Array.isArray(t)&&t.forEach(function(t){var e=document.getElementById(t);e&&o.gwMenus.openSubMenu(e)});var e=[];s.gwUtil.forEach(this.getWestPanelEl().querySelectorAll(".gw-staticMenus.gw-active"),function(t){t.hasAttribute("id")&&e.push(t.id)}),a.gwStorage.set(this.westPanelLastActiveIDs,e)},e.prototype.toggleActionMenu=function(){o.gwMenus.toggleSubMenu(".gw-MenuActionsWidget")},e.prototype.setWestPanelSizingOnEvent=function(){this.setWestPanelSizing(l.gwMouse.position.x-this.offsetFromDragBar),i.gwResizer.check()},e.prototype.restoreWestPanelWidth=function(t){void 0===t&&(t=!0);var e=a.gwStorage.get(this.westPanelSizeKey)||null;a.gwStorage.get(this.westPanelMinKey)&&(e="min"),this.setWestPanelSizing(e,t)},e.prototype.setWestPanelSizing=function(t,e){void 0===e&&(e=!0);var n=this.getWestPanelEl();if(n){if(t&&("min"===t||"number"==typeof t&&t1&&(e="("+e+")"),e},n.prototype.getCurrencyFormatRegEx=function(t){var e=this.escapeCurrencySymb(t.symb||"$"),n="^-?"+e+"?(([1-9]\\d{0,2}("+t.grouping+"\\d{3})*)|\\d+)?";return t.maxDecimalDigits&&t.maxDecimalDigits>0&&(n+="(\\"+t.radix+"\\d{1,"+t.maxDecimalDigits+"})?"),n+=e+"?",n+="$",new RegExp(n,"igm")},n.prototype.stripFirstAndLastCharsIfParens=function(t){return t&&"("===t[0]&&")"===t[t.length-1]?t.substring(1,t.length-1):t},n.prototype.pasteOnCurrencyInput=function(t,e,n){var r=n.clipboardData||window.clipboardData,i=r.getData("Text"),u=n.target,s=a.GwNumberFormatInfo.getNumberFormatInfo(u,t);if(!s)return!0;var c=this.stripFirstAndLastCharsIfParens(i.trim());return!!this.getCurrencyFormatRegEx(s).test(c)||(alert(o.gwDisplayKey.get("Web.Client.ConfirmPasteBadCurrency",i)),n.stopPropagation(),n.preventDefault(),!1)},n.prototype.copyOnCurrencyInput=function(t,e,n){var r=t.value,o=t.selectionStart,a=t.selectionEnd,u=t.getAttribute("name"),c=document.getElementById(u+"_prefix"),f=document.getElementById(u+"_suffix"),d=c?c.innerHTML:"",h=f?f.innerHTML:"";s.gwPrefPanel.getPrefValueByPrefName("copyAndCutGrabSymbol")||(d="",h="");var p=r,g=a===o;if(g||(p=r.substring(o,a)),g||0===o){var v=p[0];p="-"===v||"("===v?v+d+p.substring(1):d+p}(g||a>=r.length)&&(")"===p[p.length-1]?p=p.substring(0,p.length-2)+h+")":p+=h),n.clipboardData||window.clipboardData?(n.clipboardData||window.clipboardData).setData("text",p):i.gwUtil.devlog("clipboardData object not present on event or window"),"cut"===n.type&&l.gwInputs.setValueOnTextInputElement(t,r.substring(0,o)+r.substring(a,r.length),o,!1,"currency")},n.prototype.valueChangedSoProcessCurrencyInfo=function(t,e){var n=c.gwInputSystems.handleGroupingDecimalsAndMacros(t,e);l.gwInputs.setValueOnTextInputElement(e,n.value,n.cursorPos,!1,"currency")},n}(u.GwInitializableSystem);e.GwCurrency=f,e.gwCurrency=new f},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(144),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getSystemName=function(){return"gwPrivacy"},e.prototype.clearValue=function(t,e){o.gwSensitiveInputTools.clearValue(t,".gw-PrivacyValueWidget--dropMenu",".gw-PrivacyValueWidget--valueField",e)},e.prototype.setValueProgrammatically=function(t,e){return o.gwSensitiveInputTools.setValueProgammatically(t,".gw-PrivacyValueWidget--dropMenu",".gw-PrivacyValueWidget--valueField",e)},e}(i.GwRegisteredSystem);e.GwPrivacy=a,e.gwPrivacy=new a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e,n,r){this.bubbles=!1,this.isForcedEvent=!0,this.cancelable=!1,this.defaultPrevented=!0,this.isTrusted=!0,this.returnValue=0,this.srcElement=null,this.timeStamp=-1,this.scoped=!1,this.initEvent=null,this.cancelBubble=!1,this.eventPhase=-1,this.button=-1,this.AT_TARGET=-1,this.BUBBLING_PHASE=-1,this.CAPTURING_PHASE=-1,this.target=t,this.type=e,this.relatedTarget=n||t,this.currentTarget=r||t,"click"===e&&(this.button=0)}return t.isGwForcedEvent=function(t){return void 0!==t.isForcedEvent},t.prototype.stopPropagation=function(){},t.prototype.preventDefault=function(){},t.prototype.stopImmediatePropagation=function(){},t.prototype.deepPath=function(){return[]},t}();e.GwForcedEvent=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i={},o=new RegExp(""),a=function(){i[String.fromCharCode(8220)]='"',i[String.fromCharCode(8221)]='"',i[String.fromCharCode(8216)]="'",i[String.fromCharCode(8217)]="'",i[String.fromCharCode(8211)]="-",i[String.fromCharCode(8212)]="--",i[String.fromCharCode(189)]="1/2",i[String.fromCharCode(188)]="1/4",i[String.fromCharCode(190)]="3/4",i[String.fromCharCode(169)]="(C)",i[String.fromCharCode(174)]="(R)",i[String.fromCharCode(8230)]="..."},u=function(){var t="["+Object.keys(i).join("\\")+"]";o=new RegExp(t,"g")};a(),u();var s=function(){function t(){}return t.needsReplacement=function(t){return null!==t.match(o)},t.replace=function(t){var e=t.value,n=t.cursorPos,r=0;return{value:e.replace(o,function(t,e){var o=i[t];return e=d||this.width>=d;var n=this.getRelevantAncestorDataGwEventEls(this.originalTarget),i=n.clickable,a=n.draggable,u=n.dblClickable,s=n.longPressable;this.hasAnyDataGwEl=!!(i||a||u||s),this.clickableEl=i,this.draggableEl=a,this.dblClickableEl=u,this.longPressableEl=s,this.isValidForClick=0===this.button&&!this.ctrl&&!this.alt&&!!this.clickableEl,this.isValidForDblClick=!(0!==this.button||this.ctrl||this.meta||this.alt||this.shift||this.ctrl||!this.dblClickableEl),this.isValidForMouseDown=0===this.button&&!this.ctrl&&!this.alt&&!!this.originalTarget}return t.prototype.getTarget=function(t,e){void 0===e&&(e=null);var n=t.target;if(null!==n&&"gw-click-overlay"===n.id&&e&&e.originalTarget&&document.body.contains(e.originalTarget)){var r=e.originalTarget.getBoundingClientRect();if(r.left<=t.clientX&&r.right>=t.clientX&&r.top<=t.clientY&&r.bottom>=t.clientY)return e.originalTarget}return n},t.prototype.getRelevantAncestorDataGwEventEls=function(t){for(var e=null,n=null,r=null,i=null,o=t,a=100;o&&a--&&o&&o.matches&&(!o.classList||!o.classList.contains("gw-body"));)!e&&(this.isDown||this.isUp)&&o.matches(s)&&(e=o),!r&&(this.isDown||this.isUp)&&o.matches(l)&&(r=o),!n&&this.isDown&&o.matches(c)&&(n=o),!i&&this.isDown&&o.matches(f)&&(i=o),o=o.parentElement;return{clickable:e,draggable:n,dblClickable:r,longPressable:i}},t.prototype.timeSinceEventInMs=function(){return window.performance.now()-this.timestamp},t.prototype.timeBetweenEvents=function(t){return Math.abs(this.timestamp-t.timestamp)},t.prototype.hasSameClickableAs=function(t){return!!t&&(this.id===t.id&&(!(!this.isValidForClick||!t.isValidForClick)&&(!(!this.clickableEl||!t.clickableEl)&&this.clickableEl===t.clickableEl)))},t.prototype.hasSameDblClickableAs=function(t){return!!t&&(this.id===t.id&&(!(!this.isValidForDblClick||!t.isValidForDblClick)&&(!(!this.dblClickableEl||!t.dblClickableEl)&&this.dblClickableEl===t.dblClickableEl)))},t.prototype.shouldBecomeNewMouseDownOverExistingMouseDown=function(t){return!!this.isDown&&(!!this.isValidForClick&&(!t.isValidForClick||t.eventType===this.eventType&&(!(!t.isTouch||this.isTouch)||!(!t.isTouch&&this.isTouch)&&(!!i.gwPrefPanel.getPrefValueByPrefName("smartTouchRejection")&&(!(!this.isPossiblyPalm||!t.isPossiblyPalm)||!this.isPossiblyPalm&&(!!t.isPossiblyPalm||!!t.isTouch))))))},t}();e.GwPointerInfo=a;var u=":not([aria-disabled=true]):not(:disabled)",s="[data-gw-click]"+u,c="[data-gw-draggable]"+u,l="[data-gw-dblclick]"+u,f="[data-gw-longpress]"+u,d=120},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(22),a=n(245),u=n(0),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getSystemName=function(){return"gwShortcuts"},e.prototype.registerShortcut=function(t,e){var n=t.getAttribute(e);if(n)try{o.gwKeys.addServerKeyboardShortcut(new a.GwShortcutInfo(JSON.parse(n)))}catch(e){return void u.gwUtil.devlog("Failed to register shortcut for widget: ",t.id)}},e.prototype.registerShortcuts=function(t){for(var e=0,n=["data-gw-shortcut","data-gw-default"];et.clientWidth){var e=window.getComputedStyle(t);if("auto"===e.overflowX||"scroll"===e.overflowX)return t}if(u.gwUtil.hasAnyClass(t,["gw-center-panel","gw-west-panel","gw-south-panel","gw-north-panel"]))return null}return this.getScrollParentOrNull(t.parentElement)},t.prototype.moveSliderToMouse=function(){var t=this.getCurrentDragContainerOrThrow(),e=this.getMousePosOrThrow(),n=this.getMouseOffsetOrThrow(),r=this.getHeaderRowOrThrow(),i=this.getDragContainerHalfWidthOrThrow(),o=this.getOrigContainerPosOrThrow(),a=e.x+n.x,u=r.getBoundingClientRect(),s=u.left-i,c=u.right-i,l=a;ac&&(l=c),t.style.top=o.y+"px",t.style.left=l+"px",this.scrollListView(t)},t.prototype.scrollListView=function(t){var e=this.getScrollParentOrNull(this.getOwnerHeaderCellOrThrow());if(e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();n.right>=r.left+e.clientWidth-this.SCROLL_TRIGGER_MARGIN?e.scrollLeft+=this.SCROLL_AMOUNT:n.left<=r.left+this.SCROLL_TRIGGER_MARGIN&&(e.scrollLeft-=this.SCROLL_AMOUNT)}},t.prototype.processHeaderRow=function(){this.headerRow=$(this.getOwnerHeaderCellOrThrow()).closest("tr")[0],this.headerCellTds=this.getHeaderRowOrThrow().querySelectorAll("td")},t.prototype.getIndexForAndHighlightPossibleDrop=function(){var t=this.getCurrentDragContainerOrThrow(),e=this.getHeaderCellTdsOrThrow(),n=t.getBoundingClientRect().left+this.getDragContainerHalfWidthOrThrow(),r=null,i=this.getOwnerHeaderCellOrThrow();u.gwUtil.removeClass(t,"gw-possibleDrop");for(var o=0;o=r.bounds.left&&n<=r.bounds.left+this.DROP_MARGIN)return 0===o&&!this.headerCellDraggable(a)||o>0&&i===e[o-1]?null:(u.gwUtil.addClass(a,"gw-tdDropHighlightRightCell"),u.gwUtil.addClass(t,"gw-possibleDrop"),o>0&&a.previousSibling&&u.gwUtil.addClass(a.previousSibling,"gw-tdDropHighlightLeftCell"),o);if(n<=r.bounds.right&&n>=r.bounds.right-this.DROP_MARGIN)return o0)w=n.textContent;else{var b=parseInt(e.getAttribute("data-gw-cellindex"));w=b>=0?s.gwDisplayKey.get("Web.Client.ListView.Column.EmptyHeaderColumnNumber",b+1):""}if(o){var _=a.gwUtil.hasClass(e,"gw-isHiddenViaMenu"),E=a.gwUtil.createDiv([r.VISIBILITY_TOGGLE_CLASS,_?"":"gw-checked"],{"data-gw-click":"gwListView.toggleColumnVisibility headerId:"+e.id});f.gwAria.addRoleAttributeToElement("checkbox",E),f.gwAria.addAriaPropertyToElement("checked",!_,E),f.gwAria.addAriaPropertyToElement("label",s.gwDisplayKey.get("Web.Client.ListView.Column.ToggleCheckboxAriaLabel",w),E),u.gwTooltips.addTooltip(E,s.gwDisplayKey.get("Web.Client.ListView.Column.ToggleHidden",n.id)),y.appendChild(E)}var O=n.cloneNode(!0);O.removeAttribute("id"),O.classList.add("gw-columns-menu-item-label");var C=O.querySelector(".gw-label");if(!O.textContent&&!O.querySelector(".gw-icon"))if(C)C.textContent=w;else{var S=a.gwUtil.createDiv("gw-label");S.textContent=w,O.appendChild(S)}if(y.appendChild(O),d){var A=!!e.querySelector(".gw-isGrouped");A&&r.modifyGroupRowLabels(e,t);var T=a.gwUtil.createDiv([r.GROUPING_TOGGLE_CLASS,A?"gw-grouped":""],{"data-gw-click":"gwListView.toggleGroupedBy headerId:"+v,"data-gw-tooltip":s.gwDisplayKey.get("Web.Client.ListView.Column.ToggleGroup")});f.gwAria.addRoleAttributeToElement("button",T),f.gwAria.addAriaPropertyToElement("pressed",A,T),f.gwAria.addAriaPropertyToElement("label",s.gwDisplayKey.get("Web.Client.ListView.Column.GroupingButtonAriaLabel",w),T),u.gwTooltips.addTooltip(T,s.gwDisplayKey.get("Web.Client.ListView.Column.ToggleGroup")),y.appendChild(T)}i.appendChild(y)}}}),l},n.prototype.modifyGroupRowLabels=function(t,e){if(t&&e){var n=t.querySelector(".gw-label");if(n){var r=n.textContent||"_";r+=":",a.gwUtil.forEach(e.querySelectorAll(".gw-RowGroup--label"),function(t){if(!t.querySelector(".gw-RowGroup--label--col-name")){var e=document.createElement("div");e.classList.add("gw-RowGroup--label--col-name"),e.textContent=r;var n=document.createTextNode(t.textContent||"");a.gwUtil.clearInnerHTML(t),t.appendChild(e),t.appendChild(n)}})}}},n.prototype.up=function(t,e,n){var r=t.parentElement.previousElementSibling;return null!==r&&(this.focusOnMatchingToggle(r,t),!0)},n.prototype.down=function(t,e,n){var r=t.parentElement.nextElementSibling;return null!=r&&(this.focusOnMatchingToggle(r,t),!0)},n.prototype.left=function(t,e,n){return this.switchBetweenToggles(t,this.GROUPING_TOGGLE_CLASS),!0},n.prototype.right=function(t,e,n){return this.switchBetweenToggles(t,this.VISIBILITY_TOGGLE_CLASS),!0},n.prototype.switchBetweenToggles=function(t,e){if(this.toggleClass(t)===e){var n=t.parentElement.querySelector("."+this.otherToggleClass(t));null!==n&&l.gwFocus.forceFocus(n)}},n.prototype.focusOnMatchingToggle=function(t,e){if(a.gwUtil.hasClass(t,this.CUSTOM_MENU_ITEM_CLASS))for(var n=0,r=[this.toggleClass(e),this.otherToggleClass(e)];nt.clientWidth){var e=window.getComputedStyle(t);if("auto"===e.overflowX||"scroll"===e.overflowX)return t}if(i.gwUtil.hasAnyClass(t,["gw-center-panel","gw-west-panel","gw-south-panel","gw-north-panel"]))return null}return this.getScrollParentOrNull(t.parentElement)},e.prototype.setCellSize=function(t){if(void 0===t&&(t=!1),null!==this.mousePos&&null!==this.originalContainerRect&&null!==this.currentDragCell){var e=this.mousePos.x-this.originalContainerRect.left;eo.gwResizer.windowWidth&&(e=o.gwResizer.windowWidth),a.gwListView.sizeColumnByCellId(this.currentDragCell.id,e+"px",null,null,t,!t),this.scrollListView(),t&&this.clearDragVariables()}},e.prototype.scrollListView=function(){if(null!==this.mousePos){var t=this.getScrollParentOrNull(this.currentDragCell);if(t){var e=t.getBoundingClientRect();this.mousePos.x>=e.left+t.clientWidth-this.SCROLL_TRIGGER_MARGIN&&(t.scrollLeft+=this.SCROLL_AMOUNT)}}},e}(u.GwDraggableSystem);e.GwDraggableColumn=l,e.gwDraggableColumn=new l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(145),o=n(3),a=n(5),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getSystemName=function(){return"gwFlags"},e.prototype.checkAvailabilityOfAllButtons=function(){var t={};$("[data-gw-flags-scope]").each(function(e,n){var r=n.dataset.gwFlagsScope;void 0===t[r]&&(new i.GwFlagGroup(n.dataset.gwFlagsScope).updateButtonsAvailability(),t[r]=!0)})},e.prototype.headerCheckBoxChanged=function(t){var e=this.getCheckBox(t),n=new i.GwFlagGroup(e.dataset.gwFlagsScope),r=e.checked;n.checkBoxes.forEach(function(t){t.checked=r}),n.updateButtonsAvailability()},e.prototype.checkBoxChanged=function(t){var e=this.getCheckBox(t);new i.GwFlagGroup(e.dataset.gwFlagsScope).updateButtonsAvailability()},e.prototype.init=function(){this.checkAvailabilityOfAllButtons()},e.prototype.getCheckBox=function(t){return t instanceof HTMLInputElement&&a.gwInputs.isCheckbox(t)?t:t.querySelector("input")},e}(o.GwInitializableSystem);e.GwFlags=u,e.gwFlags=new u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.name=t.name,this.index=e,this.delta=t.startYear-1,this.start=new Date(t.startYear,t.startMonth,t.startDay),this.startYear=t.startYear,this.startMonth=t.startMonth,this.startDay=t.startDay,this.total=t.max}return t}();e.GwEraDetail=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){try{this.data=JSON.parse(t)}catch(e){console.error("Invalid JSON provided to GwMediaImageInfo:",t),this.data={}}}return Object.defineProperty(t.prototype,"url",{get:function(){return this.data.url},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"badgeLabel",{get:function(){return this.data.badgeLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"badgeStyleCss",{get:function(){return this.data.badgeStyleCss||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectFitCss",{get:function(){return this.data.objectFitCss},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageStyleCss",{get:function(){return this.data.imageStyleCss},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.data.altText},enumerable:!0,configurable:!0}),t}();e.GwMediaImageInfo=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(253),o=function(t){function e(e){var n=t.call(this,e)||this;return n._hasExifData=n.data.exifJSONString&&n.data.exifJSONString.length>0,n}return r(e,t),e.prototype.hasExifData=function(){return this._hasExifData},Object.defineProperty(e.prototype,"listInfoTitle",{get:function(){return this.data.listInfoTitle},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listedInfo",{get:function(){return this.data.listedInfo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lat",{get:function(){return this.data.lat},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"long",{get:function(){return this.data.long},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fileName",{get:function(){return this.data.fileName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exifJSONString",{get:function(){return this.data.exifJSONString},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paragraphInfo",{get:function(){return this.data.paragraphInfo},enumerable:!0,configurable:!0}),e}(i.GwMediaImageWithThumbInfo);e.GwMediaImageWithExifDataInfo=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(251),o=function(t){function e(e){return t.call(this,e)||this}return r(e,t),Object.defineProperty(e.prototype,"thumbUrl",{get:function(){return this.data.thumbUrl},enumerable:!0,configurable:!0}),e}(i.GwMediaImageInfo);e.GwMediaImageWithThumbInfo=o},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(146)),r(n(250)),r(n(549)),r(n(51)),r(n(49)),r(n(50)),r(n(94)),r(n(232)),r(n(550)),r(n(551)),r(n(552)),r(n(553)),r(n(136)),r(n(93)),r(n(554)),r(n(555)),r(n(237)),r(n(556)),r(n(137)),r(n(557)),r(n(238)),r(n(235)),r(n(558)),r(n(240)),r(n(559)),r(n(138)),r(n(144)),r(n(251)),r(n(252)),r(n(253)),r(n(560)),r(n(248)),r(n(70)),r(n(247)),r(n(246)),r(n(139)),r(n(135)),r(n(92)),r(n(245)),r(n(13)),r(n(72)),r(n(241)),r(n(52)),r(n(243)),r(n(4)),r(n(22)),r(n(71)),r(n(230)),r(n(26)),r(n(38)),r(n(147)),r(n(53)),r(n(68)),r(n(15)),r(n(67)),r(n(6)),r(n(14)),r(n(69)),r(n(561)),r(n(41)),r(n(32)),r(n(562)),r(n(39)),r(n(563)),r(n(42)),r(n(231)),r(n(11)),r(n(74)),r(n(17)),r(n(28)),r(n(244)),r(n(23)),r(n(564)),r(n(40)),r(n(565)),r(n(242)),r(n(145)),r(n(141)),r(n(143)),r(n(142)),r(n(239)),r(n(249)),r(n(9)),r(n(5)),r(n(233)),r(n(234)),r(n(48)),r(n(236)),r(n(47)),r(n(66)),r(n(140)),r(n(3)),r(n(18)),r(n(566)),r(n(2)),r(n(73)),r(n(567)),r(n(12)),r(n(0)),r(n(29)),r(n(568)),r(n(16))},function(t,e,n){var r,i;/*! * jQuery JavaScript Library v3.5.1 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2020-05-04T22:49Z */ !function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){"use strict";function a(t,e,n){n=n||St;var r,i,o=n.createElement("script");if(o.text=t,e)for(r in At)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function u(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?yt[wt.call(t)]||"object":typeof t}function s(t){var e=!!t&&"length"in t&&t.length,n=u(t);return!Ot(t)&&!Ct(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function c(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function l(t,e,n){return Ot(e)?Tt.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?Tt.grep(t,function(t){return t===e!==n}):"string"!=typeof e?Tt.grep(t,function(t){return vt.call(e,t)>-1!==n}):Tt.filter(e,t,n)}function f(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function d(t){var e={};return Tt.each(t.match(Rt)||[],function(t,n){e[n]=!0}),e}function h(t){return t}function p(t){throw t}function g(t,e,n,r){var i;try{t&&Ot(i=t.promise)?i.call(t).done(e).fail(n):t&&Ot(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}function v(){St.removeEventListener("DOMContentLoaded",v),n.removeEventListener("load",v),Tt.ready()}function y(t,e){return e.toUpperCase()}function w(t){return t.replace(Vt,"ms-").replace(Wt,y)}function m(){this.expando=Tt.expando+m.uid++}function b(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:qt.test(t)?JSON.parse(t):t)}function _(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(zt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=b(n)}catch(t){}Kt.set(t,e,n)}else n=void 0;return n}function E(t,e,n,r){var i,o,a=20,u=r?function(){return r.cur()}:function(){return Tt.css(t,e,"")},s=u(),c=n&&n[3]||(Tt.cssNumber[e]?"":"px"),l=t.nodeType&&(Tt.cssNumber[e]||"px"!==c&&+s)&&$t.exec(Tt.css(t,e));if(l&&l[3]!==c){for(s/=2,c=c||l[3],l=+s||1;a--;)Tt.style(t,e,l+c),(1-o)*(1-(o=u()/s||.5))<=0&&(a=0),l/=o;l*=2,Tt.style(t,e,l+c),n=n||[]}return n&&(l=+l||+s||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function O(t){var e,n=t.ownerDocument,r=t.nodeName,i=ee[r];return i||(e=n.body.appendChild(n.createElement(r)),i=Tt.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),ee[r]=i,i)}function C(t,e){for(var n,r,i=[],o=0,a=t.length;o-1)i&&i.push(o);else if(l=Qt(o),a=S(d.appendChild(o),"script"),l&&A(a),n)for(f=0;o=a[f++];)ie.test(o.type||"")&&n.push(o);return d}function x(){return!0}function D(){return!1}function P(t,e){return t===I()==("focus"===e)}function I(){try{return St.activeElement}catch(t){}}function M(t,e,n,r,i,o){var a,u;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=void 0);for(u in e)M(t,u,n,r,e[u],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=D;else if(!i)return t;return 1===o&&(a=i,i=function(t){return Tt().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=Tt.guid++)),t.each(function(){Tt.event.add(this,e,i,r,n)})}function j(t,e,n){if(!n)return void(void 0===Ht.get(t,e)&&Tt.event.add(t,e,x));Ht.set(t,e,!1),Tt.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=Ht.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(Tt.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=ht.call(arguments),Ht.set(this,e,o),r=n(this,e),this[e](),i=Ht.get(this,e),o!==i||r?Ht.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i.value}else o.length&&(Ht.set(this,e,{value:Tt.event.trigger(Tt.extend(o[0],Tt.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})}function N(t,e){return c(t,"table")&&c(11!==e.nodeType?e:e.firstChild,"tr")?Tt(t).children("tbody")[0]||t:t}function F(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function k(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function R(t,e){var n,r,i,o,a,u,s;if(1===e.nodeType){if(Ht.hasData(t)&&(o=Ht.get(t),s=o.events)){Ht.remove(e,"handle events");for(i in s)for(n=0,r=s[i].length;n1&&"string"==typeof p&&!Et.checkClone&&fe.test(p))return t.each(function(i){var o=t.eq(i);g&&(e[0]=p.call(this,i,o.html())),L(o,e,n,r)});if(d&&(i=T(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=Tt.map(S(i,"script"),F),s=u.length;f=0&&(s+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-s-u-.5))||0),s}function z(t,e,n){var r=pe(t),i=!Et.boxSizingReliable()||n,o=i&&"border-box"===Tt.css(t,"boxSizing",!1,r),a=o,u=V(t,e,r),s="offset"+e[0].toUpperCase()+e.slice(1);if(he.test(u)){if(!n)return u;u="auto"}return(!Et.boxSizingReliable()&&o||!Et.reliableTrDimensions()&&c(t,"tr")||"auto"===u||!parseFloat(u)&&"inline"===Tt.css(t,"display",!1,r))&&t.getClientRects().length&&(o="border-box"===Tt.css(t,"boxSizing",!1,r),(a=s in t)&&(u=t[s])),(u=parseFloat(u)||0)+q(t,e,n||(o?"border":"content"),a,r,u)+"px"}function Y(t,e,n,r,i){return new Y.prototype.init(t,e,n,r,i)}function $(){Se&&(!1===St.hidden&&n.requestAnimationFrame?n.requestAnimationFrame($):n.setTimeout($,Tt.fx.interval),Tt.fx.tick())}function X(){return n.setTimeout(function(){Ce=void 0}),Ce=Date.now()}function J(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)n=Xt[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function Q(t,e,n){for(var r,i=(et.tweeners[e]||[]).concat(et.tweeners["*"]),o=0,a=i.length;o=0&&n_.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[U]=!0,t}function i(t){var e=I.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=n.length;r--;)_.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function u(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Ct(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function s(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(t){return t&&void 0!==t.getElementsByTagName&&t}function l(){}function f(t){for(var e=0,n=t.length,r="";e1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function p(t,n,r){for(var i=0,o=n.length;i-1&&(r[c]=!(a[c]=f))}}else m=g(m===a?m.splice(v,m.length):m),o?o(null,a,m,s):J.apply(a,m)})}function y(t){for(var e,n,r,i=t.length,o=_.relative[t[0].type],a=o||_.relative[" "],u=o?1:0,s=d(function(t){return t===e},a,!0),c=d(function(t){return Z(e,t)>-1},a,!0),l=[function(t,n,r){var i=!o&&(r||n!==T)||((e=n).nodeType?s(t,n,r):c(t,n,r));return e=null,i}];u1&&h(l),u>1&&f(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(at,"$1"),n,u0,o=t.length>0,a=function(r,a,u,s,c){var l,f,d,h=0,p="0",v=r&&[],y=[],w=T,m=r||o&&_.find.TAG("*",c),b=B+=null==w?1:Math.random()||.1,E=m.length;for(c&&(T=a==I||a||c);p!==E&&null!=(l=m[p]);p++){if(o&&l){for(f=0,a||l.ownerDocument==I||(P(l),u=!j);d=t[f++];)if(d(l,a||I,u)){s.push(l);break}c&&(B=b)}i&&((l=!d&&l)&&h--,r&&v.push(l))}if(h+=p,i&&p!==h){for(f=0;d=n[f++];)d(v,y,a,u);if(r){if(h>0)for(;p--;)v[p]||y[p]||(y[p]=$.call(s));y=g(y)}J.apply(s,y),c&&!r&&y.length>0&&h+n.length>1&&e.uniqueSort(s)}return c&&(B=b,T=w),v};return i?r(a):a}var m,b,_,E,O,C,S,A,T,x,D,P,I,M,j,N,F,k,R,U="sizzle"+1*new Date,L=t.document,B=0,V=0,W=n(),G=n(),H=n(),K=n(),q=function(t,e){return t===e&&(D=!0),0},z={}.hasOwnProperty,Y=[],$=Y.pop,X=Y.push,J=Y.push,Q=Y.slice,Z=function(t,e){for(var n=0,r=t.length;n+~]|"+et+")"+et+"*"),ct=new RegExp(et+"|>"),lt=new RegExp(it),ft=new RegExp("^"+nt+"$"),dt={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+it),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+et+"*(even|odd|(([+-]|)(\\d*)n|)"+et+"*(?:([+-]|)"+et+"*(\\d+)|))"+et+"*\\)|)","i"),bool:new RegExp("^(?:"+tt+")$","i"),needsContext:new RegExp("^"+et+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+et+"*((?:-\\d)?\\d*)"+et+"*\\)|)(?=[^-]|$)","i")},ht=/HTML$/i,pt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,wt=/[+~]/,mt=new RegExp("\\\\[\\da-fA-F]{1,6}"+et+"?|\\\\([^\\r\\n\\f])","g"),bt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},_t=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Et=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},Ot=function(){P()},Ct=d(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{J.apply(Y=Q.call(L.childNodes),L.childNodes),Y[L.childNodes.length].nodeType}catch(t){J={apply:Y.length?function(t,e){X.apply(t,Q.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}b=e.support={},O=e.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!ht.test(e||n&&n.nodeName||"HTML")},P=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:L;return r!=I&&9===r.nodeType&&r.documentElement?(I=r,M=I.documentElement,j=!O(I),L!=I&&(n=I.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ot,!1):n.attachEvent&&n.attachEvent("onunload",Ot)),b.scope=i(function(t){return M.appendChild(t).appendChild(I.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),b.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=i(function(t){return t.appendChild(I.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=vt.test(I.getElementsByClassName),b.getById=i(function(t){return M.appendChild(t).id=U,!I.getElementsByName||!I.getElementsByName(U).length}),b.getById?(_.filter.ID=function(t){var e=t.replace(mt,bt);return function(t){return t.getAttribute("id")===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&j){var n=e.getElementById(t);return n?[n]:[]}}):(_.filter.ID=function(t){var e=t.replace(mt,bt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&j){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),_.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},_.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&j)return e.getElementsByClassName(t)},F=[],N=[],(b.qsa=vt.test(I.querySelectorAll))&&(i(function(t){var e;M.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&N.push("[*^$]="+et+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||N.push("\\["+et+"*(?:value|"+tt+")"),t.querySelectorAll("[id~="+U+"-]").length||N.push("~="),e=I.createElement("input"),e.setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||N.push("\\["+et+"*name"+et+"*="+et+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||N.push(":checked"),t.querySelectorAll("a#"+U+"+*").length||N.push(".#.+[+~]"),t.querySelectorAll("\\\f"),N.push("[\\r\\n\\f]")}),i(function(t){t.innerHTML="";var e=I.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&N.push("name"+et+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&N.push(":enabled",":disabled"),M.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&N.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),N.push(",.*:")})),(b.matchesSelector=vt.test(k=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&i(function(t){b.disconnectedMatch=k.call(t,"*"),k.call(t,"[s!='']:x"),F.push("!=",it)}),N=N.length&&new RegExp(N.join("|")),F=F.length&&new RegExp(F.join("|")),e=vt.test(M.compareDocumentPosition),R=e||vt.test(M.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},q=e?function(t,e){if(t===e)return D=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!b.sortDetached&&e.compareDocumentPosition(t)===n?t==I||t.ownerDocument==L&&R(L,t)?-1:e==I||e.ownerDocument==L&&R(L,e)?1:x?Z(x,t)-Z(x,e):0:4&n?-1:1)}:function(t,e){if(t===e)return D=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,u=[t],s=[e];if(!i||!o)return t==I?-1:e==I?1:i?-1:o?1:x?Z(x,t)-Z(x,e):0;if(i===o)return a(t,e);for(n=t;n=n.parentNode;)u.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;u[r]===s[r];)r++;return r?a(u[r],s[r]):u[r]==L?-1:s[r]==L?1:0},I):I},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if(P(t),b.matchesSelector&&j&&!K[n+" "]&&(!F||!F.test(n))&&(!N||!N.test(n)))try{var r=k.call(t,n);if(r||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){K(n,!0)}return e(n,I,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!=I&&P(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!=I&&P(t);var n=_.attrHandle[e.toLowerCase()],r=n&&z.call(_.attrHandle,e.toLowerCase())?n(t,e,!j):void 0;return void 0!==r?r:b.attributes||!j?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.escape=function(t){return(t+"").replace(_t,Et)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(D=!b.detectDuplicates,x=!b.sortStable&&t.slice(0),t.sort(q),D){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return x=null,t},E=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=E(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=E(e);return n},_=e.selectors={cacheLength:50,createPseudo:r,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(mt,bt),t[3]=(t[3]||t[4]||t[5]||"").replace(mt,bt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&<.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(mt,bt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+et+")"+t+"("+et+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ot," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,s){var c,l,f,d,h,p,g=o!==a?"nextSibling":"previousSibling",v=e.parentNode,y=u&&e.nodeName.toLowerCase(),w=!s&&!u,m=!1;if(v){if(o){for(;g;){for(d=e;d=d[g];)if(u?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&w){for(d=v,f=d[U]||(d[U]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[t]||[],h=c[0]===B&&c[1],m=h&&c[2],d=h&&v.childNodes[h];d=++h&&d&&d[g]||(m=h=0)||p.pop();)if(1===d.nodeType&&++m&&d===e){l[t]=[B,h,m];break}}else if(w&&(d=e,f=d[U]||(d[U]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[t]||[],h=c[0]===B&&c[1],m=h),!1===m)for(;(d=++h&&d&&d[g]||(m=h=0)||p.pop())&&((u?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++m||(w&&(f=d[U]||(d[U]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),l[t]=[B,m]),d!==e)););return(m-=i)===r||m%r==0&&m/r>=0}}},PSEUDO:function(t,n){var i,o=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[U]?o(n):o.length>1?(i=[t,t,"",n],_.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=Z(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=S(t.replace(at,"$1"));return i[U]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(e[u]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(mt,bt),function(e){return(e.textContent||E(e)).indexOf(t)>-1}}),lang:r(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(mt,bt).toLowerCase(),function(e){var n;do{if(n=j?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===M},focus:function(t){return t===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:u(!1),disabled:u(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return pt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:s(function(){return[0]}),last:s(function(t,e){return[e-1]}),eq:s(function(t,e,n){return[n<0?n+e:n]}),even:s(function(t,e){for(var n=0;ne?e:n;--r>=0;)t.push(r);return t}),gt:s(function(t,e,n){for(var r=n<0?n+e:n;++r2&&"ID"===(a=o[0]).type&&9===e.nodeType&&j&&_.relative[o[1].type]){if(!(e=(_.find.ID(a.matches[0].replace(mt,bt),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=dt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!_.relative[u=a.type]);)if((s=_.find[u])&&(r=s(a.matches[0].replace(mt,bt),wt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&f(o)))return J.apply(n,r),n;break}}return(l||S(t,d))(r,e,!j,n,!e||wt.test(t)&&c(e.parentNode)||e),n},b.sortStable=U.split("").sort(q).join("")===U,b.detectDuplicates=!!D,P(),b.sortDetached=i(function(t){return 1&t.compareDocumentPosition(I.createElement("fieldset"))}),i(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&i(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(tt,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(n);Tt.find=xt,Tt.expr=xt.selectors,Tt.expr[":"]=Tt.expr.pseudos,Tt.uniqueSort=Tt.unique=xt.uniqueSort,Tt.text=xt.getText,Tt.isXMLDoc=xt.isXML,Tt.contains=xt.contains,Tt.escapeSelector=xt.escape;var Dt=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&Tt(t).is(n))break;r.push(t)}return r},Pt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},It=Tt.expr.match.needsContext,Mt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Tt.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?Tt.find.matchesSelector(r,t)?[r]:[]:Tt.find.matches(t,Tt.grep(e,function(t){return 1===t.nodeType}))},Tt.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(Tt(t).filter(function(){for(e=0;e1?Tt.uniqueSort(n):n},filter:function(t){return this.pushStack(l(this,t||[],!1))},not:function(t){return this.pushStack(l(this,t||[],!0))},is:function(t){return!!l(this,"string"==typeof t&&It.test(t)?Tt(t):t||[],!1).length}});var jt,Nt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(Tt.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||jt,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Nt.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof Tt?e[0]:e,Tt.merge(this,Tt.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:St,!0)),Mt.test(r[1])&&Tt.isPlainObject(e))for(r in e)Ot(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=St.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):Ot(t)?void 0!==n.ready?n.ready(t):t(Tt):Tt.makeArray(t,this)}).prototype=Tt.fn,jt=Tt(St);var Ft=/^(?:parents|prev(?:Until|All))/,kt={children:!0,contents:!0,next:!0,prev:!0};Tt.fn.extend({has:function(t){var e=Tt(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&Tt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?Tt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?vt.call(Tt(t),this[0]):vt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Tt.uniqueSort(Tt.merge(this.get(),Tt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Tt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Dt(t,"parentNode")},parentsUntil:function(t,e,n){return Dt(t,"parentNode",n)},next:function(t){return f(t,"nextSibling")},prev:function(t){return f(t,"previousSibling")},nextAll:function(t){return Dt(t,"nextSibling")},prevAll:function(t){return Dt(t,"previousSibling")},nextUntil:function(t,e,n){return Dt(t,"nextSibling",n)},prevUntil:function(t,e,n){return Dt(t,"previousSibling",n)},siblings:function(t){return Pt((t.parentNode||{}).firstChild,t)},children:function(t){return Pt(t.firstChild)},contents:function(t){return null!=t.contentDocument&&dt(t.contentDocument)?t.contentDocument:(c(t,"template")&&(t=t.content||t),Tt.merge([],t.childNodes))}},function(t,e){Tt.fn[t]=function(n,r){var i=Tt.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Tt.filter(r,i)),this.length>1&&(kt[t]||Tt.uniqueSort(i),Ft.test(t)&&i.reverse()),this.pushStack(i)}});var Rt=/[^\x20\t\r\n\f]+/g;Tt.Callbacks=function(t){t="string"==typeof t?d(t):Tt.extend({},t);var e,n,r,i,o=[],a=[],s=-1,c=function(){for(i=i||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?Tt.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},Tt.extend({Deferred:function(t){var e=[["notify","progress",Tt.Callbacks("memory"),Tt.Callbacks("memory"),2],["resolve","done",Tt.Callbacks("once memory"),Tt.Callbacks("once memory"),0,"resolved"],["reject","fail",Tt.Callbacks("once memory"),Tt.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return Tt.Deferred(function(n){Tt.each(e,function(e,r){var i=Ot(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&Ot(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){function o(t,e,r,i){return function(){var u=this,s=arguments,c=function(){var n,c;if(!(t=a&&(r!==p&&(u=void 0,s=[n]),e.rejectWith(u,s))}};t?l():(Tt.Deferred.getStackHook&&(l.stackTrace=Tt.Deferred.getStackHook()),n.setTimeout(l))}}var a=0;return Tt.Deferred(function(n){e[0][3].add(o(0,n,Ot(i)?i:h,n.notifyWith)),e[1][3].add(o(0,n,Ot(t)?t:h)),e[2][3].add(o(0,n,Ot(r)?r:p))}).promise()},promise:function(t){return null!=t?Tt.extend(t,i):i}},o={};return Tt.each(e,function(t,n){var a=n[2],u=n[5];i[n[1]]=a.add,u&&a.add(function(){r=u},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=ht.call(arguments),o=Tt.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?ht.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(g(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||Ot(i[n]&&i[n].then)))return o.then();for(;n--;)g(i[n],a(n),o.reject);return o.promise()}});var Ut=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Tt.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&Ut.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},Tt.readyException=function(t){n.setTimeout(function(){throw t})};var Lt=Tt.Deferred();Tt.fn.ready=function(t){return Lt.then(t).catch(function(t){Tt.readyException(t)}),this},Tt.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--Tt.readyWait:Tt.isReady)||(Tt.isReady=!0,!0!==t&&--Tt.readyWait>0||Lt.resolveWith(St,[Tt]))}}),Tt.ready.then=Lt.then,"complete"===St.readyState||"loading"!==St.readyState&&!St.documentElement.doScroll?n.setTimeout(Tt.ready):(St.addEventListener("DOMContentLoaded",v),n.addEventListener("load",v));var Bt=function(t,e,n,r,i,o,a){var s=0,c=t.length,l=null==n;if("object"===u(n)){i=!0;for(s in n)Bt(t,e,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,Ot(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(Tt(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each(function(){Kt.remove(this,t)})}}),Tt.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=Ht.get(t,e),n&&(!r||Array.isArray(n)?r=Ht.access(t,e,Tt.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=Tt.queue(t,e),r=n.length,i=n.shift(),o=Tt._queueHooks(t,e),a=function(){Tt.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Ht.get(t,n)||Ht.access(t,n,{empty:Tt.Callbacks("once memory").add(function(){Ht.remove(t,[e+"queue",n])})})}}),Tt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,ie=/^$|^module$|\/(?:java|ecma)script/i;!function(){var t=St.createDocumentFragment(),e=t.appendChild(St.createElement("div")),n=St.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),Et.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",Et.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="",Et.option=!!e.lastChild}();var oe={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};oe.tbody=oe.tfoot=oe.colgroup=oe.caption=oe.thead,oe.th=oe.td,Et.option||(oe.optgroup=oe.option=[1,""]);var ae=/<|&#?\w+;/,ue=/^key/,se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ce=/^([^.]*)(?:\.(.+)|)/;Tt.event={global:{},add:function(t,e,n,r,i){var o,a,u,s,c,l,f,d,h,p,g,v=Ht.get(t);if(Gt(t))for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&Tt.find.matchesSelector(Jt,i),n.guid||(n.guid=Tt.guid++),(s=v.events)||(s=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return void 0!==Tt&&Tt.event.triggered!==e.type?Tt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Rt)||[""],c=e.length;c--;)u=ce.exec(e[c])||[],h=g=u[1],p=(u[2]||"").split(".").sort(),h&&(f=Tt.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=Tt.event.special[h]||{},l=Tt.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Tt.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=s[h])||(d=s[h]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(h,a)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),Tt.event.global[h]=!0)},remove:function(t,e,n,r,i){var o,a,u,s,c,l,f,d,h,p,g,v=Ht.hasData(t)&&Ht.get(t);if(v&&(s=v.events)){for(e=(e||"").match(Rt)||[""],c=e.length;c--;)if(u=ce.exec(e[c])||[],h=g=u[1],p=(u[2]||"").split(".").sort(),h){for(f=Tt.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,d=s[h]||[],u=u[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)l=d[o],!i&&g!==l.origType||n&&n.guid!==l.guid||u&&!u.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(t,l));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,p,v.handle)||Tt.removeEvent(t,h,v.handle),delete s[h])}else for(h in s)Tt.event.remove(t,h+e[c],n,r,!0);Tt.isEmptyObject(s)&&Ht.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,u=new Array(arguments.length),s=Tt.event.fix(t),c=(Ht.get(this,"events")||Object.create(null))[s.type]||[],l=Tt.event.special[s.type]||{};for(u[0]=s,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n-1:Tt.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&u.push({elem:c,handlers:o})}return c=this,s\s*$/g;Tt.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,o,a,u=t.cloneNode(!0),s=Qt(t);if(!(Et.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Tt.isXMLDoc(t)))for(a=S(u),o=S(t),r=0,i=o.length;r0&&A(a,!s&&S(t,"script")),u},cleanData:function(t){for(var e,n,r,i=Tt.event.special,o=0;void 0!==(n=t[o]);o++)if(Gt(n)){if(e=n[Ht.expando]){if(e.events)for(r in e.events)i[r]?Tt.event.remove(n,r):Tt.removeEvent(n,r,e.handle);n[Ht.expando]=void 0}n[Kt.expando]&&(n[Kt.expando]=void 0)}}}),Tt.fn.extend({detach:function(t){return B(this,t,!0)},remove:function(t){return B(this,t)},text:function(t){return Bt(this,function(t){return void 0===t?Tt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return L(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){N(this,t).appendChild(t)}})},prepend:function(){return L(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=N(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return L(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return L(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Tt.cleanData(S(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return Tt.clone(this,t,e)})},html:function(t){return Bt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!le.test(t)&&!oe[(re.exec(t)||["",""])[1].toLowerCase()]){t=Tt.htmlPrefilter(t);try{for(;n3,Jt.removeChild(t)),u}}))}();var ye=["Webkit","Moz","ms"],we=St.createElement("div").style,me={},be=/^(none|table(?!-c[ea]).+)/,_e=/^--/,Ee={position:"absolute",visibility:"hidden",display:"block"},Oe={letterSpacing:"0",fontWeight:"400"};Tt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=V(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=w(e),s=_e.test(e),c=t.style;if(s||(e=H(u)),a=Tt.cssHooks[e]||Tt.cssHooks[u],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:c[e];o=typeof n,"string"===o&&(i=$t.exec(n))&&i[1]&&(n=E(t,e,i),o="number"),null!=n&&n===n&&("number"!==o||s||(n+=i&&i[3]||(Tt.cssNumber[u]?"":"px")),Et.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(s?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var i,o,a,u=w(e);return _e.test(e)||(e=H(u)),a=Tt.cssHooks[e]||Tt.cssHooks[u],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=V(t,e,r)),"normal"===i&&e in Oe&&(i=Oe[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),Tt.each(["height","width"],function(t,e){Tt.cssHooks[e]={get:function(t,n,r){if(n)return!be.test(Tt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?z(t,e,r):ge(t,Ee,function(){return z(t,e,r)})},set:function(t,n,r){var i,o=pe(t),a=!Et.scrollboxSize()&&"absolute"===o.position,u=a||r,s=u&&"border-box"===Tt.css(t,"boxSizing",!1,o),c=r?q(t,e,r,s,o):0;return s&&a&&(c-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-q(t,e,"border",!1,o)-.5)),c&&(i=$t.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=Tt.css(t,e)),K(t,n,c)}}}),Tt.cssHooks.marginLeft=W(Et.reliableMarginLeft,function(t,e){if(e)return(parseFloat(V(t,"marginLeft"))||t.getBoundingClientRect().left-ge(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),Tt.each({margin:"",padding:"",border:"Width"},function(t,e){Tt.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+Xt[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(Tt.cssHooks[t+e].set=K)}),Tt.fn.extend({css:function(t,e){return Bt(this,function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=pe(t),i=e.length;a1)}}),Tt.Tween=Y,Y.prototype={constructor:Y,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||Tt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Tt.cssNumber[n]?"":"px")},cur:function(){var t=Y.propHooks[this.prop];return t&&t.get?t.get(this):Y.propHooks._default.get(this)},run:function(t){var e,n=Y.propHooks[this.prop];return this.options.duration?this.pos=e=Tt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Y.propHooks._default.set(this),this}},Y.prototype.init.prototype=Y.prototype,Y.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=Tt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){Tt.fx.step[t.prop]?Tt.fx.step[t.prop](t):1!==t.elem.nodeType||!Tt.cssHooks[t.prop]&&null==t.elem.style[H(t.prop)]?t.elem[t.prop]=t.now:Tt.style(t.elem,t.prop,t.now+t.unit)}}},Y.propHooks.scrollTop=Y.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Tt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},Tt.fx=Y.prototype.init,Tt.fx.step={};var Ce,Se,Ae=/^(?:toggle|show|hide)$/,Te=/queueHooks$/;Tt.Animation=Tt.extend(et,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return E(n.elem,t,$t.exec(e),n),n}]},tweener:function(t,e){Ot(t)?(e=t,t=["*"]):t=t.match(Rt);for(var n,r=0,i=t.length;r1)},removeAttr:function(t){return this.each(function(){Tt.removeAttr(this,t)})}}),Tt.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?Tt.prop(t,e,n):(1===o&&Tt.isXMLDoc(t)||(i=Tt.attrHooks[e.toLowerCase()]||(Tt.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void Tt.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=Tt.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!Et.radioValue&&"radio"===e&&c(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(Rt);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?Tt.removeAttr(t,n):t.setAttribute(n,n),n}},Tt.each(Tt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=De[e]||Tt.find.attr;De[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=De[a],De[a]=i,i=null!=n(t,e,r)?a:null,De[a]=o),i}});var Pe=/^(?:input|select|textarea|button)$/i,Ie=/^(?:a|area)$/i;Tt.fn.extend({prop:function(t,e){return Bt(this,Tt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Tt.propFix[t]||t]})}}),Tt.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&Tt.isXMLDoc(t)||(e=Tt.propFix[e]||e,i=Tt.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=Tt.find.attr(t,"tabindex");return e?parseInt(e,10):Pe.test(t.nodeName)||Ie.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),Et.optSelected||(Tt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),Tt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Tt.propFix[this.toLowerCase()]=this}),Tt.fn.extend({addClass:function(t){var e,n,r,i,o,a,u,s=0;if(Ot(t))return this.each(function(e){Tt(this).addClass(t.call(this,e,rt(this)))});if(e=it(t),e.length)for(;n=this[s++];)if(i=rt(n),r=1===n.nodeType&&" "+nt(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");u=nt(r),i!==u&&n.setAttribute("class",u)}return this},removeClass:function(t){var e,n,r,i,o,a,u,s=0;if(Ot(t))return this.each(function(e){Tt(this).removeClass(t.call(this,e,rt(this)))});if(!arguments.length)return this.attr("class","");if(e=it(t),e.length)for(;n=this[s++];)if(i=rt(n),r=1===n.nodeType&&" "+nt(i)+" "){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");u=nt(r),i!==u&&n.setAttribute("class",u)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):Ot(t)?this.each(function(n){Tt(this).toggleClass(t.call(this,n,rt(this),e),e)}):this.each(function(){var e,i,o,a;if(r)for(i=0,o=Tt(this),a=it(t);e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||(e=rt(this),e&&Ht.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Ht.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+nt(rt(n))+" ").indexOf(e)>-1)return!0;return!1}});var Me=/\r/g;Tt.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=Ot(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,Tt(this).val()):t,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=Tt.map(i,function(t){return null==t?"":t+""})),(e=Tt.valHooks[this.type]||Tt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return(e=Tt.valHooks[i.type]||Tt.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Me,""):null==n?"":n)}}}),Tt.extend({valHooks:{option:{get:function(t){var e=Tt.find.attr(t,"value");return null!=e?e:nt(Tt.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,u=a?null:[],s=a?o+1:i.length;for(r=o<0?s:a?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),Tt.each(["radio","checkbox"],function(){Tt.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=Tt.inArray(Tt(t).val(),e)>-1}},Et.checkOn||(Tt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),Et.focusin="onfocusin"in n;var je=/^(?:focusinfocus|focusoutblur)$/,Ne=function(t){t.stopPropagation()};Tt.extend(Tt.event,{trigger:function(t,e,r,i){var o,a,u,s,c,l,f,d,h=[r||St],p=mt.call(t,"type")?t.type:t,g=mt.call(t,"namespace")?t.namespace.split("."):[];if(a=d=u=r=r||St,3!==r.nodeType&&8!==r.nodeType&&!je.test(p+Tt.event.triggered)&&(p.indexOf(".")>-1&&(g=p.split("."),p=g.shift(),g.sort()),c=p.indexOf(":")<0&&"on"+p,t=t[Tt.expando]?t:new Tt.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:Tt.makeArray(e,[t]),f=Tt.event.special[p]||{},i||!f.trigger||!1!==f.trigger.apply(r,e))){if(!i&&!f.noBubble&&!Ct(r)){for(s=f.delegateType||p,je.test(s+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||St)&&h.push(u.defaultView||u.parentWindow||n)}for(o=0;(a=h[o++])&&!t.isPropagationStopped();)d=a,t.type=o>1?s:f.bindType||p,l=(Ht.get(a,"events")||Object.create(null))[t.type]&&Ht.get(a,"handle"),l&&l.apply(a,e),(l=c&&a[c])&&l.apply&&Gt(a)&&(t.result=l.apply(a,e),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),e)||!Gt(r)||c&&Ot(r[p])&&!Ct(r)&&(u=r[c],u&&(r[c]=null),Tt.event.triggered=p,t.isPropagationStopped()&&d.addEventListener(p,Ne),r[p](),t.isPropagationStopped()&&d.removeEventListener(p,Ne),Tt.event.triggered=void 0,u&&(r[c]=u)),t.result}},simulate:function(t,e,n){var r=Tt.extend(new Tt.Event,n,{type:t,isSimulated:!0});Tt.event.trigger(r,null,e)}}),Tt.fn.extend({trigger:function(t,e){return this.each(function(){Tt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return Tt.event.trigger(t,e,n,!0)}}),Et.focusin||Tt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){Tt.event.simulate(e,t.target,Tt.event.fix(t))};Tt.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=Ht.access(r,e);i||r.addEventListener(t,n,!0),Ht.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Ht.access(r,e)-1;i?Ht.access(r,e,i):(r.removeEventListener(t,n,!0),Ht.remove(r,e))}}});var Fe=n.location,ke={guid:Date.now()},Re=/\?/;Tt.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||Tt.error("Invalid XML: "+t),e};var Ue=/\[\]$/,Le=/\r?\n/g,Be=/^(?:submit|button|image|reset|file)$/i,Ve=/^(?:input|select|textarea|keygen)/i;Tt.param=function(t,e){var n,r=[],i=function(t,e){var n=Ot(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!Tt.isPlainObject(t))Tt.each(t,function(){i(this.name,this.value)});else for(n in t)ot(n,t[n],e,i);return r.join("&")},Tt.fn.extend({serialize:function(){return Tt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Tt.prop(this,"elements");return t?Tt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Tt(this).is(":disabled")&&Ve.test(this.nodeName)&&!Be.test(t)&&(this.checked||!ne.test(t))}).map(function(t,e){var n=Tt(this).val();return null==n?null:Array.isArray(n)?Tt.map(n,function(t){return{name:e.name,value:t.replace(Le,"\r\n")}}):{name:e.name,value:n.replace(Le,"\r\n")}}).get()}});var We=/%20/g,Ge=/#.*$/,He=/([?&])_=[^&]*/,Ke=/^(.*?):[ \t]*([^\r\n]*)$/gm,qe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ze=/^(?:GET|HEAD)$/,Ye=/^\/\//,$e={},Xe={},Je="*/".concat("*"),Qe=St.createElement("a");Qe.href=Fe.href,Tt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Fe.href,type:"GET",isLocal:qe.test(Fe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Je,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Tt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?st(st(t,Tt.ajaxSettings),e):st(Tt.ajaxSettings,t)},ajaxPrefilter:at($e),ajaxTransport:at(Xe),ajax:function(t,e){function r(t,e,r,u){var c,d,h,b,_,E=e;l||(l=!0,s&&n.clearTimeout(s),i=void 0,a=u||"",O.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(b=ct(p,O,r)),!c&&Tt.inArray("script",p.dataTypes)>-1&&(p.converters["text script"]=function(){}),b=lt(p,b,O,c),c?(p.ifModified&&(_=O.getResponseHeader("Last-Modified"),_&&(Tt.lastModified[o]=_),(_=O.getResponseHeader("etag"))&&(Tt.etag[o]=_)),204===t||"HEAD"===p.type?E="nocontent":304===t?E="notmodified":(E=b.state,d=b.data,h=b.error,c=!h)):(h=E,!t&&E||(E="error",t<0&&(t=0))),O.status=t,O.statusText=(e||E)+"",c?y.resolveWith(g,[d,E,O]):y.rejectWith(g,[O,E,h]),O.statusCode(m),m=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[O,p,c?d:h]),w.fireWith(g,[O,E]),f&&(v.trigger("ajaxComplete",[O,p]),--Tt.active||Tt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,o,a,u,s,c,l,f,d,h,p=Tt.ajaxSetup({},e),g=p.context||p,v=p.context&&(g.nodeType||g.jquery)?Tt(g):Tt.event,y=Tt.Deferred(),w=Tt.Callbacks("once memory"),m=p.statusCode||{},b={},_={},E="canceled",O={readyState:0,getResponseHeader:function(t){var e;if(l){if(!u)for(u={};e=Ke.exec(a);)u[e[1].toLowerCase()+" "]=(u[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=u[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(t,e){return null==l&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==l&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)O.always(t[O.status]);else for(e in t)m[e]=[m[e],t[e]];return this},abort:function(t){var e=t||E;return i&&i.abort(e),r(0,e),this}};if(y.promise(O),p.url=((t||p.url||Fe.href)+"").replace(Ye,Fe.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Rt)||[""],null==p.crossDomain){c=St.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=Qe.protocol+"//"+Qe.host!=c.protocol+"//"+c.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=Tt.param(p.data,p.traditional)),ut($e,p,e,O),l)return O;f=Tt.event&&p.global,f&&0==Tt.active++&&Tt.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!ze.test(p.type),o=p.url.replace(Ge,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(We,"+")):(h=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(Re.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(He,"$1"),h=(Re.test(o)?"&":"?")+"_="+ke.guid+++h),p.url=o+h),p.ifModified&&(Tt.lastModified[o]&&O.setRequestHeader("If-Modified-Since",Tt.lastModified[o]),Tt.etag[o]&&O.setRequestHeader("If-None-Match",Tt.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&O.setRequestHeader("Content-Type",p.contentType),O.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Je+"; q=0.01":""):p.accepts["*"]);for(d in p.headers)O.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(g,O,p)||l))return O.abort();if(E="abort",w.add(p.complete),O.done(p.success),O.fail(p.error),i=ut(Xe,p,e,O)){if(O.readyState=1,f&&v.trigger("ajaxSend",[O,p]),l)return O;p.async&&p.timeout>0&&(s=n.setTimeout(function(){O.abort("timeout")},p.timeout));try{l=!1,i.send(b,r)}catch(t){if(l)throw t;r(-1,t)}}else r(-1,"No Transport");return O},getJSON:function(t,e,n){return Tt.get(t,e,n,"json")},getScript:function(t,e){return Tt.get(t,void 0,e,"script")}}),Tt.each(["get","post"],function(t,e){Tt[e]=function(t,n,r,i){return Ot(n)&&(i=i||r,r=n,n=void 0),Tt.ajax(Tt.extend({url:t,type:e,dataType:i,data:n,success:r},Tt.isPlainObject(t)&&t))}}),Tt.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),Tt._evalUrl=function(t,e,n){return Tt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){Tt.globalEval(t,e,n)}})},Tt.fn.extend({wrapAll:function(t){var e;return this[0]&&(Ot(t)&&(t=t.call(this[0])),e=Tt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return Ot(t)?this.each(function(e){Tt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=Tt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=Ot(t);return this.each(function(n){Tt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){Tt(this).replaceWith(this.childNodes)}),this}}),Tt.expr.pseudos.hidden=function(t){return!Tt.expr.pseudos.visible(t)},Tt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},Tt.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Ze={0:200,1223:204},tn=Tt.ajaxSettings.xhr();Et.cors=!!tn&&"withCredentials"in tn,Et.ajax=tn=!!tn,Tt.ajaxTransport(function(t){var e,r;if(Et.cors||tn&&!t.crossDomain)return{send:function(i,o){var a,u=t.xhr();if(u.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)u.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=u.onload=u.onerror=u.onabort=u.ontimeout=u.onreadystatechange=null,"abort"===t?u.abort():"error"===t?"number"!=typeof u.status?o(0,"error"):o(u.status,u.statusText):o(Ze[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!=typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=e(),r=u.onerror=u.ontimeout=e("error"),void 0!==u.onabort?u.onabort=r:u.onreadystatechange=function(){4===u.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{u.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),Tt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),Tt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return Tt.globalEval(t),t}}}),Tt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Tt.ajaxTransport("script",function(t){if(t.crossDomain||t.scriptAttrs){var e,n;return{send:function(r,i){e=Tt("