Mini Kabibi Habibi

Current Path : C:/Program Files/Adobe/Acrobat DC/Acrobat/WebResources/Resource1/OWP/default/js/
Upload File :
Current File : C:/Program Files/Adobe/Acrobat DC/Acrobat/WebResources/Resource1/OWP/default/js/manifest.min.js

/*!************************************************************************
* ADOBE CONFIDENTIAL
* ___________________
*
* Copyright 2017-2019 Adobe
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
**************************************************************************/

var DXModules=webpackJsonpDXModules([0],[function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,i=n(39),o=(a=i)&&a.__esModule?a:{default:a};t.default=o.default},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Events=void 0;var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o,r=n(0),s=(o=r)&&o.__esModule?o:{default:o};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=(a(d,[{key:"addListener",value:function(e){return this._persist&&e(void 0!==this._data?this._data:{}),this._listeners.push(e)-1}},{key:"removeListener",value:function(e){delete this._listeners[e]}},{key:"persist",value:function(e){this._persist=e}},{key:"fire",value:function(t){this._persist&&(this._data=t),this._listeners.forEach(function(e){e(void 0!==t?t:{})})}}]),d);function d(e){l(this,d),this._name=e,this._persist=!1,this._listeners=[]}var c=(a(f,[{key:"filter",value:function(e,t){e&&(0===t?delete this._filters[e]:this._filters[e]=t)}},{key:"persist",value:function(e){e&&(this._events.hasOwnProperty.call(this._events,e)||(this._events[e]=new u(e)),this._events[e].persist(!0))}},{key:"subscribe",value:function(e,t){var n=this;this._events.hasOwnProperty.call(this._events,e)||(this._events[e]=new u(e));var a=this._events[e].addListener(t);return{remove:function(){n._events[e].removeListener(a)}}}},{key:"_dumpConsoleInfo",value:function(){}},{key:"publish",value:function(t,e){var n=this;if(this._events&&t&&this._events.hasOwnProperty.call(this._events,t)){try{window.AdbeDx.lastEvent={event:t,data:e};var a=this._filters[t];if(this._dumpConsoleInfo(t,e,a,!1),a){var i=this._filterTimers[t];i&&(clearTimeout(i),delete this._filterTimers[t]),this._filterTimers[t]=setTimeout(function(){delete n._filterTimers[t],n._dumpConsoleInfo(t,e,!1,!0),n._events[t].fire(e)},a)}else this._events[t].fire(e)}catch(e){console.error("Events.publish error for "+t+": "+e),console.trace()}t===s.default.EVENTS.DEBUG&&(this._isDebug=e)}}}]),f);function f(){l(this,f),this._events={},this._filters={},this._filterTimers={};var e=new Date;this._oldTime=e.getTime(),this._oldEvent=null,this._totalTime=0,this._delays=[],window.AdbeDx=window.AdbeDx||{},window.AdbeDx.delays=this._delays,this._isDebug=!1}t.Events=new c},function(e,d,c){"use strict";(function(o){Object.defineProperty(d,"__esModule",{value:!0}),d.Log=void 0;var e=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var t,n=c(0),r=(t=n)&&t.__esModule?t:{default:t},i=c(11),s=c(2);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this._isDebug=!1,this._shownCategory=0,this._infoMessages={},this._warningMessages={},this._errorMessages={},this._isDebug&&(s.Events.persist(r.default.EVENTS.DEBUG),s.Events.publish(r.default.EVENTS.DEBUG,!0))}var u=new(e(l,[{key:"init",value:function(){var t=this;this._setUpEvents(),s.Events.subscribe(r.default.EVENTS.ANALYTICS,function(e){t.info("analytics easter egg "+e)}),s.Events.subscribe(r.default.EVENTS.PAGES,function(e){t.info("pages easter egg "+e)}),s.Events.subscribe(r.default.EVENTS.FALLBACKS,function(e){t.info("fallbacks easter egg "+e)}),s.Events.subscribe(r.default.EVENTS.VIEWPORTCHANGED,function(e){t.info("Log - New viewport size: "+e),o("#viewportSummary").text(e)}),s.Events.subscribe(r.default.EVENTS.DEBUG,function(e){(t._isDebug=e)?(o("body").css("background-color","#fee"),t.info("start debugging")):(o("body").css("background-color","white"),t.info("stop debugging"))}),s.Events.subscribe(r.default.EVENTS.GRID,function(e){e?(t.info("enable grid"),o(r.default.DX.DOT.LAYOUTDEBUGCLASS).removeClass(r.default.DX.HIDDEN)):(t.info("disable grid"),o(r.default.DX.DOT.LAYOUTDEBUGCLASS).addClass(r.default.DX.HIDDEN))})}},{key:"handleDocumentReady",value:function(){this._createLoggingContainers(),this._createAnalyticsUI()}},{key:"addMessage",value:function(e,t,n){switch(t){case r.default.LOGCATEGORIES.ERRORS:this._addErrorMessage(e,n);break;case r.default.LOGCATEGORIES.WARNINGS:this._addWarningMessage(e,n);break;case r.default.LOGCATEGORIES.INFO:default:this._addInfoMessage(e,n)}}},{key:"toggleSummary",value:function(){this._toggleSummary()}},{key:"getMessages",value:function(){return{info:this._infoMessages,warning:this._warningMessages,error:this._errorMessages}}},{key:"_addErrorMessage",value:function(e,t){this._errorMessages[e]||(this._errorMessages[e]=[]),this._errorMessages[e].push(t),this._updateSummaryUI(r.default.LOGCATEGORIES.ERRORS),this._updateMessageUI(r.default.LOGCATEGORIES.ERRORS,e,t)}},{key:"_addInfoMessage",value:function(e,t){this._infoMessages[e]||(this._infoMessages[e]=[]),this._infoMessages[e].push(t),this._updateSummaryUI(r.default.LOGCATEGORIES.INFO),this._updateMessageUI(r.default.LOGCATEGORIES.INFO,e,t)}},{key:"_addWarningMessage",value:function(e,t){this._warningMessages[e]||(this._warningMessages[e]=[]),this._warningMessages[e].push(t),this._updateSummaryUI(r.default.LOGCATEGORIES.WARNINGS),this._updateMessageUI(r.default.LOGCATEGORIES.WARNINGS,e,t)}},{key:"_createLoggingContainers",value:function(){var e="\n      <div id='loggingSummaryContainer' class='dx-logging-summary-container dx-unselectable'>\n        <div id='loggingErrorSummary' class='dx-summary dx-error-summary'>0</div>\n        <div id='loggingWarningSummary' class='dx-summary dx-warning-summary'>0</div>\n        <div id='loggingInfoSummary' class='dx-summary dx-info-summary'>0</div>\n        <div id='viewportSummary' class='dx-summary dx-viewport-summary'>unknown</div>\n        <div id='versionInfo' class='dx-summary dx-viewport-summary'>"+i.Manifest.version+"</div>\n        <div id='dx_otherInfo' class='dx-summary dx-viewport-summary'></div>\n    ";o("body").append(e),o("body").append("\n      <div id='loggingContainer' class='dx-logging-container dx-unselectable'>\n        <div id='infoMessageContainer' class='dx-logging-message-container dx-unselectable'>\n          <div class='dx-logging-message-label dx-unselectable'>Info</div>\n        </div>\n        <div id='warningMessageContainer' class='dx-logging-message-container dx-unselectable'>\n          <div class='dx-logging-message-label dx-unselectable'>Warnings</div>\n        </div>\n        <div id='errorMessageContainer' class='dx-logging-message-container dx-unselectable'>\n          <div class='dx-logging-message-label dx-unselectable'>Errors</div>\n        </div>\n      </div>\n    ")}},{key:"_createAnalyticsUI",value:function(){o("#dx_otherInfo").append('<div id="testAnalytics" class="dx-logging-summary-container"><div id="testAnalyticsTurtle"class="dx-test-button">test analytics</div><br><div id="testAnalyticsSpeedy" class="dx-test-button">speedy analytics</div></div>'),o("#testAnalyticsTurtle").click(function(){s.Events.publish(r.default.EVENTS.STARTAUTOMATEDANALYTICSTESTS,{speedy:!1}),o("#testAnalytics").addClass("dx-selected")}),o("#testAnalyticsSpeedy").click(function(){s.Events.publish(r.default.EVENTS.STARTAUTOMATEDANALYTICSTESTS,{speedy:!0}),o("#testAnalytics").addClass("dx-selected")})}},{key:"_setUpEvents",value:function(){var t=this;o("#loggingErrorSummary").on("click",function(e){e.preventDefault(),t._toggleLogContainer(r.default.LOGCATEGORIES.ERRORS)}),o("#loggingWarningSummary").on("click",function(e){e.preventDefault(),t._toggleLogContainer(r.default.LOGCATEGORIES.WARNINGS)}),o("#loggingInfoSummary").on("click",function(e){e.preventDefault(),t._toggleLogContainer(r.default.LOGCATEGORIES.INFO)})}},{key:"_toggleLogContainer",value:function(e){if(o("#loggingContainer").is(":hidden"))o("#loggingContainer").show();else if(e===this._shownCategory)return void o("#loggingContainer").hide();switch(o("#loggingContainer > div").hide(),e){case r.default.LOGCATEGORIES.ERRORS:o("#errorMessageContainer").show();break;case r.default.LOGCATEGORIES.WARNINGS:o("#warningMessageContainer").show();break;case r.default.LOGCATEGORIES.INFO:o("#infoMessageContainer").show()}this._shownCategory=e}},{key:"_toggleSummary",value:function(){o("#loggingContainer").is(":visible")&&o("#loggingContainer").hide(),o("#loggingSummaryContainer").toggle()}},{key:"_updateMessageUI",value:function(e,t,n){var a=o("<div class='dx-logging-entry'>"+t.toUpperCase()+": "+n+"</div>");switch(e){case r.default.LOGCATEGORIES.ERRORS:a.addClass("dx-entry-error dx-unselectable"),o("#errorMessageContainer").append(a);break;case r.default.LOGCATEGORIES.WARNINGS:a.addClass("dx-entry-warning dx-unselectable"),o("#warningMessageContainer").append(a);break;case r.default.LOGCATEGORIES.INFO:default:a.addClass("dx-entry-info dx-unselectable"),o("#infoMessageContainer").append(a)}}},{key:"_updateSummaryUI",value:function(e){var t=0;switch(e){case r.default.LOGCATEGORIES.ERRORS:for(var n in this._errorMessages)Object.keys.hasOwnProperty.call(this._errorMessages,n)&&(t+=this._errorMessages[n].length);o("#loggingErrorSummary").text(t);break;case r.default.LOGCATEGORIES.WARNINGS:for(var a in this._warningMessages)Object.keys.hasOwnProperty.call(this._warningMessages,a)&&(t+=this._warningMessages[a].length);o("#loggingWarningSummary").text(t);break;case r.default.LOGCATEGORIES.INFO:default:for(var i in this._infoMessages)Object.keys.hasOwnProperty.call(this._infoMessages,i)&&(t+=this._infoMessages[i].length);o("#loggingInfoSummary").text(t)}}},{key:"debug",get:function(){return this._isDebug?window.console.debug:function(){}}},{key:"error",get:function(){return window.console.error}},{key:"info",get:function(){return this._isDebug?window.console.info:function(){}}},{key:"log",get:function(){return this._isDebug?window.console.log:function(){}}},{key:"warn",get:function(){return window.console.warn}}]),l);d.Log=u}).call(d,c(1))},function(e,c,f){"use strict";(function(n){Object.defineProperty(c,"__esModule",{value:!0});var e=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var t,i=f(0),o=(t=i)&&t.__esModule?t:{default:t},r=f(8),s=f(2),l=f(3);var u=(e(d,[{key:"init",value:function(){var t=this;this._isInitialized?l.Log.info(this._moduleName+" has already been initialized"):(s.Events.subscribe(o.default.EVENTS.VIEWPORTCHANGED,function(e){t._viewportSize=e,t._handleViewportChangedEvent(e)}),s.Events.subscribe(o.default.EVENTS.WINDOWRESIZED,function(){t._allowResize&&t._handleResize()}),s.Events.subscribe(o.default.EVENTS.VIEWPORTSCROLLED,function(){t._handleScroll()}),s.Events.subscribe(o.default.EVENTS.ENABLERESIZE,function(){t._allowResize=!0}),s.Events.subscribe(o.default.EVENTS.DISABLERESIZE,function(){t._allowResize=!1}),this._init(),this._isInitialized=!0)}},{key:"load",value:function(e){if(this._isInitialized)if(e)this._load(e);else{var t=n("body");this._load(t)}else l.Log.error(this._moduleName+" must be initialized before load()")}},{key:"handleDocumentReady",value:function(){this._isInitialized?this._handleDocumentReady():l.Log.error(this._moduleName+" must be initialized before handleDocumentReady()")}},{key:"getInterface",value:function(){return{}}},{key:"_handleResize",value:function(){}},{key:"_handleScroll",value:function(){}},{key:"_handleViewportChangedEvent",value:function(){}},{key:"_init",value:function(){}},{key:"_load",value:function(){}},{key:"_handleDocumentReady",value:function(){}},{key:"_interacted",value:function(e,t,n,a){var i=void 0===e?this._featureName:e;l.Log.info("featureName = "+i),r.Analytics.interacted(i,t,n,a)}},{key:"_globalAction",value:function(e){r.Analytics.addGlobalAction(e)}},{key:"_pageAction",value:function(e,t,n,a,i,o){r.Analytics.addPageAction(n,t,e,a,i,o)}},{key:"_writeError",value:function(e){l.Log.error(this.moduleName+" - "+e),l.Log.addMessage(this.moduleName,o.default.LOGCATEGORIES.ERRORS,e)}},{key:"_writeInfo",value:function(e){l.Log.info(this.moduleName+" - "+e),l.Log.addMessage(this.moduleName,o.default.LOGCATEGORIES.INFO,e)}},{key:"_writeWarning",value:function(e){l.Log.warn(this.moduleName+" - "+e),l.Log.addMessage(this.moduleName,o.default.LOGCATEGORIES.WARNINGS,e)}},{key:"isInitialized",get:function(){return this._isInitialized}},{key:"featureName",get:function(){return this._featureName}},{key:"moduleName",get:function(){return this._moduleName}},{key:"supportedPlatforms",get:function(){return this._supportedPlatforms}}]),d);function d(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),this._moduleName=e||"module",this._featureName=t||"feature",this._supportedPlatforms=n,this._isInitialized=!1,this._viewportSize="",this._allowResize=!0}c.default=u}).call(c,f(1))},function(e,h,A){"use strict";(function(t){Object.defineProperty(h,"__esModule",{value:!0}),h.Platform=void 0;var e=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var i=n(A(0)),o=A(2),r=A(3),s=n(A(42)),l=n(A(43)),u=n(A(44)),d=n(A(45)),c=n(A(46));function n(e){return e&&e.__esModule?e:{default:e}}var f=(e(E,[{key:"init",value:function(){var t=this;if(!this._initialized){o.Events.subscribe(i.default.EVENTS.DEBUG,function(e){t.isDebug=e}),this._standalone=!(!window.AdbeDx||!window.AdbeDx.manifestManager),this._standalone&&r.Log.info("Platform: Standalone");var e=this._getUrlParameters();if(e.platform)switch(e.platform){case"ios":this._platform=new s.default;break;case"android":this._platform=new l.default;break;case"mac":case"macos":case"osx":this._platform=new u.default(i.default.PLATFORMS.MACOS);break;case"win":case"windows":this._platform=new u.default(i.default.PLATFORMS.WINDOWS);break;case"dcweb":this._platform=new d.default}if(null===this._platform){if(this._standalone)this._platform=new c.default;else if(this._isDCWeb())this._platform=new d.default;else if(this._isAndroid())this._platform=new l.default;else if(this._isIOS())this._platform=new s.default;else if(this._isMacOS())this._platform=new u.default(i.default.PLATFORMS.MACOS);else if(this._isWindows())this._platform=new u.default(i.default.PLATFORMS.WINDOWS);else{var n=void 0===window.AdbeDxPlatform?"":window.AdbeDxPlatform;r.Log.error("Platform unknown: "+navigator.userAgent+" "+navigator.platform+" "+n)}this._platform.init()}this._initialized=!0}}},{key:"isPlatform",value:function(e){return 0!=(this._platform.type&e)}},{key:"postCSPViolation",value:function(e){var t={};t.blockedURI=e.blockedURI,t.timeStamp=e.timeStamp,t.referrer=e.referrer,t.effectiveDirective=e.effectiveDirective,t.violatedDirective=e.violatedDirective,t.originalPolicy=e.originalPolicy,t.disposition=e.disposition,t.sourceFile=e.sourceFile,t.statusCode=e.statusCode,t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t.sample=e.sample,t.bubbles=e.bubbles,t.composed=e.composed,r.Log.info("CSP VIOLATION"),r.Log.info(e),r.Log.info(JSON.stringify(t));try{this._platform.postCSPViolation(t)}catch(e){this.isStandalone||r.Log.error("Unable to inform platform of CSP violation: "+e.message)}}},{key:"postAnalytic",value:function(t,n){try{this._platform.postAnalytic(t,n)}catch(e){this.isStandalone||(r.Log.error("Analytics not supported for "+t+" "+n.action),r.Log.error(JSON.stringify(n)))}}},{key:"createAnnot",value:function(e){try{this._platform.createAnnot(e)}catch(e){this.isStandalone||r.Log.error("Error when trying to create annot: "+e.message)}}},{key:"deselectAnnot",value:function(e){try{this._platform.deselectAnnot(e)}catch(e){this.isStandalone||r.Log.error("Error when trying to deselect annot: "+e.message)}}},{key:"moveAnnot",value:function(e){try{this._platform.moveAnnot(e)}catch(e){this.isStandalone||r.Log.error("Error when trying to move annot: "+e.message)}}},{key:"selectAnnot",value:function(e){try{this._platform.selectAnnot(e)}catch(e){this.isStandalone||r.Log.error("Error when trying to select annot: "+e.message)}}},{key:"showAnnotPreview",value:function(e){try{this._platform.showAnnotPreview(e)}catch(e){this.isStandalone||r.Log.error("An error occurred when sending the preview message to the platform: "+e.message)}}},{key:"postDocumentReady",value:function(){r.Log.info("Platform: "+this.platformName);try{this._platform.postDocumentReady()}catch(e){this.isStandalone||r.Log.error("Error occurred when sending document ready message to platform: "+e.message)}}},{key:"postFindResults",value:function(e,t){try{this._platform.postFindResults(e,t)}catch(e){this.isStandalone||r.Log.error("Error when trying to post find results: "+e.message)}}},{key:"postNavHeaderHeight",value:function(e){try{this._platform.postNavHeaderHeight(e)}catch(e){this.isStandalone||r.Log.error("Unable to inform platform of header height: "+e.message)}}},{key:"postOutlineViewShown",value:function(e){try{this._platform.postOutlineViewShown(e)}catch(e){this.isStandalone||r.Log.error("Unable to inform platform of outline view change: "+e.message)}}},{key:"disableScroll",value:function(){try{this._platform.disableScroll()}catch(e){this.isStandalone||r.Log.error("Unable to inform platform to disable scrolling: "+e.message)}}},{key:"enableScroll",value:function(){try{this._platform.enableScroll()}catch(e){this.isStandalone||r.Log.error("Unable to inform platform to enable scrolling: "+e.message)}}},{key:"externalLinkClicked",value:function(e,t){try{this._platform.externalLinkClicked(e,t)}catch(e){this.isStandalone||r.Log.error("Unable to inform platform of external link click: "+e.message)}}},{key:"openContextMenu",value:function(e){try{this._platform.openContextMenu(e)}catch(e){this.isStandalone||r.Log.error("Error when trying to open platform context menu: "+e.message)}}},{key:"markFallbackPage",value:function(e,t){try{this._platform.markFallbackPage(e,t)}catch(e){this.isStandalone||r.Log.error("Unable to inform platform to markFallbackPage: "+e.message)}}},{key:"unmarkFallbackPage",value:function(e,t){try{this._platform.unmarkFallbackPage(e,t)}catch(e){this.isStandalone||r.Log.error("Unable to inform platform to unmarkFallbackPage: "+e.message)}}},{key:"postFallbackFailure",value:function(e){try{this._platform.postFallbackFailure(e)}catch(e){this.isStandalone||r.Log.error("Unable to inform platform to postFallbackFailure: "+e.message)}}},{key:"postFallbackSuccess",value:function(e){try{this._platform.postFallbackSuccess(e)}catch(e){this.isStandalone||r.Log.error("Unable to inform platform to postFallbackSuccess: "+e.message)}}},{key:"postFallbackUndoSuccess",value:function(e){try{this._platform.postFallbackUndoSuccess(e)}catch(e){this.isStandalone||r.Log.error("Unable to inform platform to postFallbackUndoSuccess: "+e.message)}}},{key:"enterImmersiveMode",value:function(){try{this._platform.enterImmersiveMode()}catch(e){this.isStandalone||r.Log.error("Unable to inform platform to enter immersive mode: "+e.message)}}},{key:"exitImmersiveMode",value:function(){try{this._platform.exitImmersiveMode()}catch(e){this.isStandalone||r.Log.error("Unable to inform platform to exit immersive mode: "+e.message)}}},{key:"DXready",value:function(){try{this._platform.DXready()}catch(e){this.isStandalone||r.Log.error("Unable to inform platform that DX is ready(  "+e.message)}}},{key:"firstUserInteraction",value:function(){try{this._platform.firstUserInteraction()}catch(e){this.isStandalone||r.Log.error("Unable to inform platform about first user interaction : "+e.message)}}},{key:"firstOutlineInteracted",value:function(){try{this._platform.firstOutlineInteracted()}catch(e){this.isStandalone||r.Log.error("Unable to inform platform about first user interaction : "+e.message)}}},{key:"documentLoaded",value:function(){try{this._platform.documentLoaded()}catch(e){this.isStandalone||r.Log.error("Unable to inform platform that documentLoaded : "+e.message)}}},{key:"documentLoading",value:function(){try{this._platform.documentLoading()}catch(e){this.isStandalone||r.Log.error("Unable to inform platform that documentLoading : "+e.message)}}},{key:"preventExit",value:function(e){try{this._platform.preventExit(e)}catch(e){this.isStandalone||r.Log.error("Error when trying to load data: "+e.message)}}},{key:"_getUrlParameters",value:function(){var e={},t=window.location.search.substring(1);if("string"==typeof t)for(var n=t.split("&"),a=0;a<n.length;++a){var i=n[a].split("=");e[i[0]]=i[1]}return e}},{key:"_isAndroid",value:function(){return/Android/i.test(navigator.userAgent)}},{key:"_isDCWeb",value:function(){return void 0!==window.AdbeDxPlatform&&"dcweb"===window.AdbeDxPlatform}},{key:"_isIOS",value:function(){var e=!1;return window.webkit&&window.webkit.messageHandlers&&(e=!0),e}},{key:"_isMacOS",value:function(){return/Macintosh|MacIntel|MacPPC|Mac68K/i.test(navigator.platform)}},{key:"_isWindows",value:function(){return/Win32|Win64|Windows|WinCE/i.test(navigator.platform)}},{key:"isDCWebIOS",get:function(){return this._platform.type===i.default.PLATFORMS.DCWEB&&this._isIOS()}},{key:"isDesktop",get:function(){return this.isPlatform(i.default.PLATFORMS.DESKTOP)}},{key:"isMobile",get:function(){return!this.isPlatform(i.default.PLATFORMS.DESKTOP)&&!this.isPlatform(i.default.PLATFORMS.DXBROWSER)}},{key:"isStandalone",get:function(){return this._standalone}},{key:"isTestMode",get:function(){return this._testMode},set:function(e){(this._testMode=e)?(r.Log.error("DX has been set into TEST mode"),t("body").css("border","solid 8px red")):t("body").css("border","")}},{key:"isDebug",get:function(){return this._isDebug},set:function(e){this._isDebug=e}},{key:"platform",get:function(){return this._platform.type}},{key:"platformName",get:function(){return this._platform.platformName}},{key:"urlParameters",get:function(){return this._getUrlParameters()}}]),E);function E(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),this._standalone=!0,this._testMode=!1,this._platform=null,this._initialized=!1,this._isDebug=!1,this._validScrollPosition=!0}h.Platform=new f}).call(h,A(1))},function(e,s,l){"use strict";(function(p){Object.defineProperty(s,"__esModule",{value:!0}),s.UtilFunctions=void 0;var e=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var t,n=l(0),g=(t=n)&&t.__esModule?t:{default:t},A=l(10),i=l(5),T=l(3);var o=(e(r,[{key:"_getDocumentBaselineFontSize",value:function(){try{var e=p("."+g.default.DOCUMENT.DOCUMENTCLASS).data(g.default.METADATA.BASELINEFONTSIZE);void 0!==e&&(this._baselineFontSize=e)}catch(e){T.Log.error(e)}return this._baselineFontSize}},{key:"init",value:function(){this._initialized||(this.createPinchAndZoomSnapshot(),this._getDocumentBaselineFontSize())}},{key:"adjustOffsetForClassic",value:function(e,t){if(e.nodeType!==Node.TEXT_NODE){if(!this.isGlyphWrapper(e))return t;e=e.firstChild,t=0}var n=0,a=e.previousSibling;for(a||!this.isAnnot(e.parentNode)&&!this.isGlyphWrapper(e.parentNode)||(a=e.parentNode.previousSibling);a;){var i=a.textContent;i&&(n+=i.length),a=a.previousSibling}return t+n}},{key:"getNow",value:function(){return(new Date).getTime()-this._startNow}},{key:"isAnnot",value:function(e){return e.nodeType!==Node.TEXT_NODE&&0!==e.classList.length&&!!Array.from(e.classList).find(function(e){return-1!==e.indexOf("ADBE_Obj_")})}},{key:"isGlyphWrapper",value:function(e){return e.nodeType!==Node.TEXT_NODE&&0!==e.id.length&&-1!==e.id.indexOf(g.default.DX.GLYPHCOMMENTWRAPPERIDPREFIX)}},{key:"setDocumentScrollability",value:function(e){if(e){if(this._scrollEnabled)return;i.Platform.enableScroll(),this._scrollEnabled=!0}else{if(!this._scrollEnabled)return;i.Platform.disableScroll(),this._scrollEnabled=!1}}},{key:"isClassicNode",value:function(e){return e&&this.isAdbeObjectNode(e)&&!this.isHidden(e)&&!this.isAnnot(e)&&!this.isGlyphWrapper(e)}},{key:"nearestClassicAncestorNode",value:function(e){for(var t=e;t&&!this.isClassicNode(t);)t=t.parentElement;return t}},{key:"isDocumentNode",value:function(e){return e.getAttribute("id")===g.default.DOCUMENT.DOCUMENTCLASS}},{key:"isAdbeObjectNode",value:function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=e.getAttribute("id");return!!t&&0===t.indexOf("ADBE_Obj")}},{key:"isSectionNode",value:function(e){return e&&e.tagName&&"SECTION"===e.tagName}},{key:"extractRangeDataFromPoint",value:function(e,t){var n=void 0,a=void 0,i=void 0;if(this.log("in extractRangeDataFromPoint, x = ",e,", y = ",t),document.caretPositionFromPoint){if(!(n=document.caretPositionFromPoint(e,t)))return this.log("document.caretPositionFromPoint returned NULL"),null;a=n.offsetNode,i=n.offset}else if(document.caretRangeFromPoint){if(!(n=document.caretRangeFromPoint(e,t)))return this.log("document.caretRangeFromPoint returned NULL"),null;a=n.endContainer,i=n.endOffset}return{node:a,offset:i}}},{key:"sanitizeText",value:function(e){var t=this;return e.replace(/[&<>'"]/g,function(e){return t._escapeMap[e]})}},{key:"createPinchAndZoomSnapshot",value:function(){var e=p("meta[name=viewport]");0<e.length?(this._pnzEnabledViewportMetaTag=e.get(0).content,1<e.length?T.Log.warn(e.length+" viewportmeta results"):T.Log.info("one viewportmeta "+e.get(0).content)):(this._pnzEnabledViewportMetaTag="width=device-width, initial-scale=1",T.Log.error("createPinchAndZoomSnapshot: could not locate meta[name=viewport]")),this._pnzDisabledViewportMetaTag=this._pnzEnabledViewportMetaTag+", maximum-scale=1, minimum-scale=1, user-scalable=0",T.Log.info("pnzDisabledViewportMetaTag = "+this._pnzDisabledViewportMetaTag)}},{key:"enablePinchAndZoom",value:function(e){var t=p("meta[name=viewport]"),n="test";if(T.Log.info("pnz "+e),0<t.length){n=e?this._pnzEnabledViewportMetaTag:this._pnzDisabledViewportMetaTag,T.Log.info(n);var a='<meta content="'+n+'" name="viewport">';t.get(0).outerHTML=a,T.Log.info(t.get(0).outerHTML)}}},{key:"isHidden",value:function(e){function t(e){return e.hasClass(g.default.DOCUMENT.ARTIFACTCLASS)||e.hasClass(g.default.DOCUMENT.ENDNOTECLASS)||e.hasClass(g.default.DOCUMENT.ENDNOTETEXTCLASS)||e.hasClass(g.default.DOCUMENT.FOOTERCLASS)||e.hasClass(g.default.DOCUMENT.FOOTNOTECLASS)||e.hasClass(g.default.DOCUMENT.FOOTNOTETEXTCLASS)||e.hasClass(g.default.DOCUMENT.HEADERCLASS)||e.hasClass(g.default.DX.NOTECONTAINERCLASS)}var n=p(e),a=t(n);return a=a||t(n.parents()),a}},{key:"removeHiddenText",value:function(e){var t="."+g.default.DOCUMENT.ARTIFACTCLASS+",\n      ."+g.default.DOCUMENT.ENDNOTECLASS+",\n      ."+g.default.DOCUMENT.ENDNOTETEXTCLASS+",\n      ."+g.default.DOCUMENT.ENDNOTEREF+",\n      ."+g.default.DOCUMENT.FOOTERCLASS+",\n      ."+g.default.DOCUMENT.FOOTNOTECLASS+",\n      ."+g.default.DOCUMENT.FOOTNOTETEXTCLASS+",\n      ."+g.default.DOCUMENT.FOOTNOTEREF+",\n      ."+g.default.DOCUMENT.FIGURECLASS+",\n      ."+g.default.DOCUMENT.HEADERCLASS+",\n      ."+g.default.DX.NOTECONTAINERCLASS+",\n      ."+g.default.DX.COMMENTCLASS+",\n      ."+g.default.DX.ABSOLUTECOMMENTCLASS;return p(e).clone().find(t).remove().end().text().trim()}},{key:"flattenArray",value:function(e){var n=this;return e.reduce(function(e,t){return Array.isArray(t)?e.concat(n.flattenArray(t)):e.concat(t)},[])}},{key:"getBoundingDocRect",value:function(e){this.log("in getBoundingDocRect, element = "),this.dir(e);var t={width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0};if(!e)return this.log("Error in getBoundingDocRect, element is null...returning zero bounds"),t;var n=e.getBoundingClientRect(),a=this.getRootScrollingObject(),i=a.get(0).getBoundingClientRect();return 0===n.height&&0===n.width?this.log("Error in getBoundingDocRect, element boundingClientRect is empty"):(t.width=n.width,t.height=n.height,t.x=n.x-i.x+a.scrollLeft(),t.y=n.y-i.y+a.scrollTop(),t.top=t.y,t.bottom=t.y+t.height,t.left=t.x,t.right=t.x+t.width),t}},{key:"isEndOfDocumentNode",value:function(e){var t=!1;try{t=e.nodeType===Node.ELEMENT_NODE&&-1!==e.className.indexOf("dx-doc-end")}catch(e){t=!1}return t}},{key:"getAllContentElements",value:function(e){var a=this;return this.log("in getAllContentElements, $parent = "),this.dir(e),e.find("*").not("section, img, comment, style, :hidden, ."+g.default.DOCUMENT.FOOTNOTECLASS+", ."+g.default.DOCUMENT.FOOTNOTETEXTCLASS+",\n        ."+g.default.DOCUMENT.ENDNOTECLASS+", ."+g.default.DOCUMENT.ENDNOTETEXTCLASS+",\n        ."+g.default.DX.COMMENTCLASS+", ."+g.default.DOCUMENT.WATERMARKCLASS+", ."+g.default.DOCUMENT.DOCUMENTCLASS).filter(function(e,t){var n=p(t);return!a.isEndOfDocumentNode(t)&&(0<n.text().trim().length||n.children().first().is("img"))})}},{key:"elementIsVisible",value:function(e){var t=!1;this.log("calling elementIsVisible, getBoundingClientRect()");var n=e.getBoundingClientRect();return 0<n.width&&0<n.height&&"none"!==window.getComputedStyle(e).display&&(t=!0),t}},{key:"closestVisibleElement",value:function(e){var t=e;do{if(this.elementIsVisible(t))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}},{key:"findDocEnclosingElementAndBounds",value:function(e,n){var a=this;if(this.time("findDocEnclosingElementAndBoundsTime"),this.log("in findDocEnclosingElementAndBounds yPos = ",n,", $elements = "),this.dir(e),!e)return null;var t,i=e.last().get(0),o=this.getBoundingDocRect(i),r=null,s=null;if(n>=o.bottom)r=i,s=o,this.log("in findDocEnclosingElementAndBounds, yPos is at end of document, detected early");else if(e.each(function(e,t){return a.log("computing  in each iterator in findDocEnclosingElementAndBounds, current element = "),a.dir(t),a.log("calling getBoundingDocRect in findDocEnclosingElementAndBounds for element = "),a.dir(t),s=a.getBoundingDocRect(t),a.log("elementDocBounds = "),a.dir(s),!(n<s.top||n>=s.top&&n<=s.bottom)||(r=t,!1)}),this.timeEnd("findDocEnclosingElementAndBoundsTime"),!r)return this.log("in findDocEnclosingElementAndBounds, ERROR: cannot find a real enclosing element"),null;return t={el:r,bounds:s},this.log("findDocEnclosingElementAndBounds returning enclosingElementAndBounds ="),this.dir(t),t}},{key:"getTopElementPosition",value:function(){this.log("in getTopElementPosition");var e=this.getRootScrollingObject(),t=e.scrollTop(),n=e.get(0);this.log("calling getBoundingClientRect() in getTopElementPosition");var a=n.getBoundingClientRect(),i=null,o=0;this.log("scrollTop = ",t,", $scrollingDoc = "),this.dir(e);var r=document.elementFromPoint((a.left+a.right)/2,a.top);if(this.log("initial quick topElement = "),this.dir(r),r=(r=r&&this.nearestClassicAncestorNode(r))||p(g.default.DOCUMENT.DOT.DOCUMENTCLASS).get(0),this.isDocumentNode(r)||this.isSectionNode(r)){this.log("getTopElementPosition the HARD WAY, topElement = "),this.dir(r);var s=this.getAllContentElements(p(r));this.log("$contentElements = "),this.dir(s),i=this.findDocEnclosingElementAndBounds(s,t)}else this.log("about to call getBoundingDocRect from fast out in getTopElementPosition()"),i={el:r,bounds:this.getBoundingDocRect(r)};if(i&&i.bounds){var l=i.bounds;l&&(o=Math.max(0,t-l.top)/l.height),i.scrollRatio=o}return this.log("getTopElementPosition returning enclosingElementPosition ="),this.dir(i),i}},{key:"getTopElementIdAndOffsetInDoc",value:function(e){this.log("In getTopElementIdAndOffsetInDoc, topElementPosition ="),this.dir(e);var t=g.default.DOCUMENT.TOPOFDOCUMENT,n=0;if(!e||!e.el)return this.log("taking early out of getTopElementIdAndOffsetInDoc because topElement is null or undefined"),{elementId:t,offset:n};var a=e.el,i=this.getRootScrollingObject().get(0);if(t=a.getAttribute("id"),n=Math.min(100,Math.round(100*e.scrollRatio)),0<p(a).children("img, svg").length)return this.log("in getTopElementIdAndOffsetInDoc, element is IMAGE, returning elementId =",t,"offset = ",n),{elementId:t,offset:n};this.log("in getTopElementIdAndOffsetInDoc, computing RANGE"),this.log("calling getBoundingClientRect() in getTopElementIdAndOffsetInDoc");var o=i.getBoundingClientRect(),r=o.y,s=o.x+o.width/2,l=this.extractRangeDataFromPoint(s,r);if(l){var u=l.node,d=l.offset;if(this.isEndOfDocumentNode(u))t=(u=this.getAllContentElements(this.getRootScrollingObject()).last().get(0)).getAttribute("id"),n=u.innerText.length;else{n=this.adjustOffsetForClassic(u,d);var c=this.nearestClassicAncestorNode(u);c?t=c.getAttribute("id"):(this.log("in getTopElementIdAndOffsetInDoc, error, parentNode is null.  Setting top element to be TOPOFDOCUMENT, offset to be 0"),t=g.default.DOCUMENT.TOPOFDOCUMENT,n=0)}}return this.log("getTopElementIdAndOffsetInDoc returning elementid = ",t,", offset = ",n),{elementId:t,offset:n}}},{key:"returnTopElementPosition",value:function(){this.log("in returnTopElementPosition");var e=this.getTopElementPosition();return e&&e.el&&(this._prevTopElementPosition=this._lastTopElementPosition,this._lastTopElementPosition=e),this.log("returnTopElementPosition returning pos ="),this.dir(e),e}},{key:"getPrevTopElementPosition",value:function(){return this._prevTopElementPosition}},{key:"getLastTopElementPosition",value:function(){return this._lastTopElementPosition}},{key:"scrollToPositionBasedOnElement",value:function(e){if(this.log("in scrollToPositionBasedOnElement, position ="),this.dir(e),this.trace(),e&&e.el){var t=e.el,n=this.getBoundingDocRect(t),a=e.scrollRatio,i=n.top+n.height*a;this.log("in scrollToPositionBasedOnElement, el ="),this.dir(t),this.log("bounds = "),this.dir(n),this.log("newScrollTop = ",i),this.getRootScrollingObject().scrollTop(i)}}},{key:"addHeadingToMap",value:function(e,t,n,a,i){var o={pos:t,selector:n,val:a,lang:i};this._docHeadingMap[e]=o}},{key:"getBaselineFontSize",value:function(){return this._baselineFontSize}},{key:"getHeadingMap",value:function(){return this._docHeadingMap}},{key:"getHeadingObj",value:function(e){return 0<Object.keys(this._docHeadingMap).length?this._docHeadingMap[e]:{}}},{key:"getHeadingPositionCheckingFallback",value:function(e){for(;0<e;){var t=this._docHeadingMap[e].pos;if(t!==g.default.NAVIGATION.FALLENBACK)return t;--e}return-1}},{key:"getNextHeadingObj",value:function(e){for(var t=Object.keys(this._docHeadingMap).length,n=e;n<t;++n){var a=this._docHeadingMap[n].pos;if(a!==g.default.NAVIGATION.NOTVISIBLE&&a!==g.default.NAVIGATION.FALLENBACK)return this._docHeadingMap[n]}return null}},{key:"updateMapHeadingPos",value:function(e,t){null!=e&&"undefined"!==e&&(this._docHeadingMap[e].pos=t)}},{key:"getRgbaFromHex",value:function(e,t){var n=parseInt(e.substr(1),16);return"rgba("+(n>>16&255)+", "+(n>>8&255)+", "+(255&n)+", "+(1!==t&&void 0!==t?t:1)+")"}},{key:"getScrollbarWidth",value:function(){return this._scrollbarWidth}},{key:"intersectRect",value:function(e,t){return!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top)}},{key:"isInView",value:function(e){var t=p(e).get(0).getBoundingClientRect(),n=p("."+g.default.DOCUMENT.SCROLLINGWRAPPERCLASS).get(0).getBoundingClientRect();return this.intersectRect(t,n)}},{key:"setScrollbarWidth",value:function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var a=n.offsetWidth;e.parentNode.removeChild(e),this._scrollbarWidth=t-a}},{key:"getElementWidth",value:function(e){return p(e).width()}},{key:"getElementHeight",value:function(e){var t=p(e);return i.Platform.isPlatform(g.default.PLATFORMS.ANDROID)?t.height():t.innerHeight()}},{key:"getWindowWidth",value:function(){var e=window.innerWidth;return i.Platform.isPlatform(g.default.PLATFORMS.ANDROID)&&(/Apple/i.test(navigator.vendor)||(e=window.outerWidth)),(i.Platform.isStandalone||i.Platform.isPlatform(g.default.PLATFORMS.DESKTOP))&&(e=window.innerWidth),e}},{key:"getWindowHeight",value:function(){return i.Platform.isPlatform(g.default.PLATFORMS.ANDROID)?window.outerHeight:this.getRootScrollingObject().height()}},{key:"getRootScrollingObject",value:function(){return i.Platform.isDCWebIOS?p("."+g.default.DX.SCROLLINGWRAPPERCLASS):p("."+g.default.DX.DOCUMENTWRAPPERCLASS)}},{key:"getRootDocumentElement",value:function(){return i.Platform.isDCWebIOS?p("."+g.default.DX.SCROLLINGWRAPPERCLASS):p("body")}},{key:"getRootScrollingElements",value:function(){return i.Platform.isDCWebIOS?p("."+g.default.DX.SCROLLINGWRAPPERCLASS):p(document.scrollingElement)}},{key:"hasAnyClass",value:function(e,t){for(var n=p(e),a=t.split(" "),i=0;i<a.length;++i)if(n.hasClass(a[i]))return!0;return!1}},{key:"removeSelection",value:function(e){var t=p('<div style="position: fixed; pointer-events: none; opacity: 0;"><div>Text</div></div>');p("body").append(t);var a=window.getSelection();t.children().each(function(e,t){var n=document.createRange();n.selectNode(t),a.removeAllRanges(),a.addRange(n)}),setTimeout(function(){t.remove(),a.removeAllRanges(),e&&e()},200)}},{key:"rgbDifference",value:function(e,t){var n=t,a=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),i=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(a&&4===a.length&&i&&4===i.length){for(var o=[],r=1;r<4;++r)o.push(Math.abs(parseInt(e[r],10)-parseInt(t[r],10)));n="rgb("+o[0]+","+o[1]+","+o[2]+")",T.Log.info("selection color: "+n)}return n}},{key:"trim",value:function(e){return"function"==typeof String.prototype.trim?String.prototype.trim.call(e):e.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}},{key:"wrapGlyph",value:function(e,t){var n=e.elementId,a=p("#"+n),i=a.find("img, svg").not("."+g.default.DX.COMMENTCLASS).eq(0),o=p([]);if(a.is(":hidden")){if(!a.hasClass(g.default.DX.PAGESELECTEDCLASS)&&!a.parents().hasClass(g.default.DX.PAGESELECTEDCLASS))return T.Log.error("Element with id="+n+" is hidden and cannot have one of its glyph wrapped."),o;var r=a.data("page")||a.parents("[data-page]").data("page");o=p("#ADBE_FB_PAGE"+r)}if(0===o.length){var s=i.parent().attr("id");if(0<i.length&&s&&s===n)o=i;else{var l=A.DomSelector.createSelectionFromSelector(e);if(!l.isEmpty()){var u=A.DomSelector.normalizeRange(l.range),d=u.start,c=u.end,f=u.commonAncestor;if(d&&d.className&&-1!==d.className.indexOf(g.default.DX.GLYPHCOMMENTWRAPPERCLASS).length?o=p(d):c&&c.className&&-1!==c.className.indexOf(g.default.DX.GLYPHCOMMENTWRAPPERCLASS).length?o=p(c):f&&f.className&&-1!==f.className.indexOf(g.default.DX.GLYPHCOMMENTWRAPPERCLASS)&&(o=p(f)),0===o.length){var E=u.textNodes().filter(function(e){return e.nodeValue&&0<e.nodeValue.length&&e.nodeValue===l.quote}),h=p(E[0]);o=p('\n              <span\n                class="'+g.default.DX.GLYPHCOMMENTWRAPPERCLASS+'"\n                id="'+g.default.DX.GLYPHCOMMENTWRAPPERIDPREFIX+this._wrapperCount+++'"\n              >\n              </span>\n            '),h.wrapAll(o).parent().show(),(o=h.parents("."+g.default.DX.GLYPHCOMMENTWRAPPERCLASS)).contents().toArray().forEach(function(e){e.data&&1<e.data.length&&0===e.data.trim().length&&e.remove()}),o.data("parentId",n)}}}}return t&&o.css("position","relative"),this.removeSelection(),o}},{key:"unwrapGlyph",value:function(a){if(a){if(0===p("."+g.default.DX.COMMENTCLASS).toArray().filter(function(e,t){var n=p(e).data();return n&&n.wrapperId&&n.wrapperId===a}).length){var e=p("#"+a);if(!e.hasClass(g.default.DX.FALLBACKFULLPAGECLASS)){var t=document.getElementById(e.data("parentId"));e.contents().unwrap(),t.normalize()}}}else T.Log.error("Unable to find glyph container with id="+a)}},{key:"xPathEvaluate",value:function(e,t,n){if(!e)return n?[]:[null];var a=[],i=null,o=p(t);0===o.length&&(o=p("html").first());var r=e;0!==r.indexOf("//")&&(r="/"+e);var s=document.evaluate(r,p(t).get(0),null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);for(i=s.iterateNext();i;)a.push(i),i=s.iterateNext();var l=p(a);return n?l:l.get()}},{key:"closestElementTo",value:function(e,t){var o=void 0,r=this.getWindowHeight()/5,s=p(window).scrollTop(),l=s+t;return p(".ADBE_E_Document *:visible").not(".dx-fb-fullpage").each(function(e,t){var n=p(t),a=n.offset().top,i=a+n.height();return 0<=i-l?(a-l<=0&&(o=t),!1):(0<i-(s+r)&&(o=t),!0)}),o}},{key:"isNavElement",value:function(e){return 0<e.parents(".dx-fake-doc").length}},{key:"ignoreDocumentClick",value:function(e){var t=p(e),n=t.hasClass(g.default.DX.COMMENTCLASS),a=t.hasClass(g.default.DX.HEADINGCLASS),i=0<t.parents("."+g.default.DX.HEADINGCLASS).length,o=t.hasClass(g.default.DX.TABLENAVPREVICONCLASS)||t.hasClass(g.default.DX.TABLENAVNEXTICONCLASS)||t.hasClass(g.default.DX.FBTABLENAVPREVICONCLASS)||t.hasClass(g.default.DX.FBTABLENAVNEXTICONCLASS),r=t.hasClass(".tablesorter-header"),s=t.is("img")||t.hasClass("."+g.default.DOCUMENT.FIGURECLASS),l=t.hasClass(g.default.DX.FAKEHEADINGCLASS),u=t.hasClass(g.default.DX.NOTECONTAINERCLASS),d=t.hasClass(g.default.DOCUMENT.FOOTNOTECLASS)||t.hasClass(g.default.DOCUMENT.FOOTNOTEREFERENCECLASS)||t.hasClass(g.default.DOCUMENT.FOOTNOTETEXTCLASS)||t.hasClass(g.default.DOCUMENT.FOOTNOTEREF),c=t.hasClass(g.default.DOCUMENT.ENDNOTECLASS)||t.hasClass(g.default.DOCUMENT.ENDNOTEREFERENCECLASS)||t.hasClass(g.default.DOCUMENT.ENDNOTETEXTCLASS)||t.hasClass(g.default.DOCUMENT.ENDNOTEREF),f=t.hasClass(g.default.DOCUMENT.TOCINDEXCLASS)||0<t.parents("."+g.default.DOCUMENT.TOCINDEXCLASS).length,E=t.is("a"),h=t.hasClass(g.default.DX.CONTEXTMENUOPTION),A=t.is("#fixItClose")||t.is("#fixItSuccessClose");return!!(n||a||i||o||r||s||l||u||d||c||f||E||h||A)}},{key:"_eligibleTableFallbackClasses",value:function(){return"\n      ."+g.default.DOCUMENT.FALLBACKMULTIPAGECOMPLEXTABLE+",\n      ."+g.default.DOCUMENT.FALLBACKREGIONCOMPLEXTABLE+",\n      ."+g.default.DOCUMENT.FALLBACKREGIONFORMFIELD+",\n      ."+g.default.DOCUMENT.FALLBACKPAGEFORMFIELD+",\n      ."+g.default.DOCUMENT.LEGACY.FALLBACKCOMPLEXTABLE+",\n      ."+g.default.DOCUMENT.LEGACY.FALLBACKCOMPLEXREGION+",\n      ."+g.default.DOCUMENT.LEGACY.FALLBACKFORMFIELD+"\n    "}},{key:"_eligibleLightBoxFallbackClasses",value:function(){return"\n      ."+g.default.DOCUMENT.FALLBACKPAGECOMPLEXPAGE+",\n      ."+g.default.DOCUMENT.FALLBACKPAGEIMAGEONLY+",\n      ."+g.default.DOCUMENT.FALLBACKPAGETITLEPAGE+",\n      ."+g.default.DOCUMENT.FALLBACKPAGEQRCODE+",\n      ."+g.default.DOCUMENT.FALLBACKPAGEBARCODE+",\n      ."+g.default.DOCUMENT.FALLBACKPAGEREADINGORDER+",\n      ."+g.default.DOCUMENT.FALLBACKREGIONINLINEFORMULA+",\n      ."+g.default.DOCUMENT.LEGACY.FALLBACKCOMPLEXPAGE+",\n      ."+g.default.DOCUMENT.LEGACY.FALLBACKIMAGEONLY+",\n      ."+g.default.DOCUMENT.LEGACY.FALLBACKCOMPLEXTITLEPAGE+",\n      ."+g.default.DOCUMENT.LEGACY.FALLBACKQR+",\n      ."+g.default.DOCUMENT.LEGACY.FALLBACKINLINEFORMULA+"\n    "}},{key:"log",get:function(){return this._isDebug?window.console.log:function(){}}},{key:"trace",get:function(){return this._isDebug?window.console.trace:function(){}}},{key:"dir",get:function(){return this._isDebug?window.console.dir:function(){}}},{key:"time",get:function(){return this._isDebug?window.console.time:function(){}}},{key:"timeEnd",get:function(){return this._isDebug?window.console.timeEnd:function(){}}},{key:"startNow",set:function(e){this._startNow=e}}]),r);function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this._escapeMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},this._isDebug=!1,this._scrollbarWidth=0,this._docHeadingMap={},this._pnzDisabledViewportMetaTag="",this._pnzDEnabledViewportMetaTag="",this._wrapperCount=0,this._scrollEnabled=!0,this._baselineFontSize=10,this._startNow=(new Date).getTime(),this._prevTopElementPosition=null,this._lastTopElementPosition=null}s.UtilFunctions=new o}).call(s,l(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Localization=void 0;var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o,r=n(0),s=(o=r)&&o.__esModule?o:{default:o},l=n(3),u=S(n(51)),d=S(n(52)),c=S(n(53)),f=S(n(54)),E=S(n(55)),h=S(n(56)),A=S(n(57)),p=S(n(58)),g=S(n(59)),T=S(n(60)),v=S(n(61)),_=S(n(62));function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var C=(a(O,[{key:"init",value:function(){if(!this._initialized){for(var e="",t=0;t<this._supportedLanguages.length;t++)e+=this._supportedLanguages[t]+" ";var n=new URL(window.location.href).searchParams.get("locale");this._lang=n||navigator.language||navigator.userLanguage,l.Log.info("languages supported: "+e),l.Log.info("User's language is "+this._lang),null!==this._lang&&"string"==typeof this._lang&&1<this._lang.length?(this._shortlang=this._lang.substring(0,2),-1===this._supportedLanguages.indexOf(this._shortlang)&&(this._lang=s.default.LANGUAGES.DEFAULT)):this._lang=s.default.LANGUAGES.DEFAULT,this._shortlang=this._lang.substring(0,2),this._initialized=!0}}},{key:"translateNumber",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:null,a={lang:"en-US",phrase:e};if(this._localizedNumberSupported()){var i=n?n.substring(0,2):this._shortlang,o=null!==n?n:this._lang;null!=o&&0<o.length?a={lang:o,phrase:e.toLocaleString(o)}:null!=i&&0<i.length&&(a={lang:i,phrase:e.toLocaleString(i)})}return a.HTML='<div lang="'+a.lang+'">'+a.phrase+"</div>",a}},{key:"_localizedNumberSupported",value:function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}},{key:"translate",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:null,a={lang:"en-US",phrase:e},i="",o=n?n.substring(0,2):this._shortlang,r=null!==n?n:this._lang,s=this._translations[o];return(a=null!=s?null!=(i=s[e])?{lang:r,phrase:i}:(l.Log.error(e+" is not recognized as a localizable string"),{lang:"en-US",phrase:e}):(l.Log.error(r+" was not a recognized language"),null!=(i=this._translations.en[e])?{lang:"en-US",phrase:i}:{lang:"en-US",phrase:e})).HTML='<div lang="'+a.lang+'">'+a.phrase+"</div>",a}},{key:"lang",get:function(){return this._lang},set:function(e){this._lang=e}}]),O);function O(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),this._supportedLanguages=["da","de","en","es","fi","fr","it","ja","nb","nl","pt","sv"],this._translations={da:u,de:d,en:c,es:f,fi:E,fr:h,it:A,ja:p,nb:g,nl:T,pt:v,sv:_},this._shortlang=s.default.LANGUAGES.DEFAULT_SHORT,this._lang=s.default.LANGUAGES.DEFAULT,this._initialized=!1}t.Localization=new C},function(e,E,h){"use strict";(function(l){Object.defineProperty(E,"__esModule",{value:!0}),E.Analytics=void 0;var e=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var u=r(h(0)),t=h(2),d=h(3),i=h(5),c=h(6),n=h(11),o=r(h(49));function r(e){return e&&e.__esModule?e:{default:e}}var s=(e(f,[{key:"getPages",value:function(){return this._pages}},{key:"_declareFeatureAnalytics",value:function(){this._features={};var e=this._features;e[u.default.ANALYTICS.OBJECTS.COLLAPSIBLEHEADING]=".dx-heading:not(.dx-no-action-heading)",e[u.default.ANALYTICS.OBJECTS.TOC]=".ADBE_E_TOC",e[u.default.ANALYTICS.OBJECTS.FOOTNOTE]=".ADBE_CM_pdfm-footnoteRef, .ADBE_CM_pdfm-EndnoteRef, .ADBE_Ref_Footnote, .ADBE_Ref_Endnote",e[u.default.ANALYTICS.OBJECTS.WATERMARK]=".ADBE_E_Watermark, .ADBE_CM_pdfm-watermark",e[u.default.ANALYTICS.OBJECTS.NAVIGATION]=".dx-fake-doc",e[u.default.ANALYTICS.OBJECTS.TABLE]=".ADBE_E_Table",e[u.default.ANALYTICS.OBJECTS.LINK]=".ADBE_E_Link",e[u.default.ANALYTICS.OBJECTS.ZOOMABLEIMAGE]='img:not([class*="ADBE_CM_fb"] img)',e[u.default.ANALYTICS.OBJECTS.EOD]=u.default.DX.DOT.ENDCONTENTCONTAINERCLASS,e[u.default.ANALYTICS.OBJECTS.FALLBACKINLINEFORMULA]=u.default.DOCUMENT.DOT.FALLBACKREGIONINLINEFORMULA+", "+u.default.DOCUMENT.DOT.LEGACY.FALLBACKINLINEFORMULA,e[u.default.ANALYTICS.OBJECTS.FALLBACKPAGECOMPLEXPAGE]=u.default.DOCUMENT.DOT.FALLBACKPAGECOMPLEXPAGE+", "+u.default.DOCUMENT.DOT.LEGACY.FALLBACKCOMPLEXPAGE+", "+u.default.DOCUMENT.DOT.LEGACY.FALLBACKCOMPLEXTITLEPAGE,e[u.default.ANALYTICS.OBJECTS.FALLBACKPAGEIMAGEONLY]=u.default.DOCUMENT.DOT.FALLBACKPAGEIMAGEONLY,e[u.default.ANALYTICS.OBJECTS.FALLBACKPAGETITLEPAGE]=u.default.DOCUMENT.DOT.FALLBACKPAGETITLEPAGE,e[u.default.ANALYTICS.OBJECTS.FALLBACKPAGEFORMFIELD]=u.default.DOCUMENT.DOT.FALLBACKPAGEFORMFIELD,e[u.default.ANALYTICS.OBJECTS.FALLBACKREGIONFORMFIELD]=u.default.DOCUMENT.DOT.FALLBACKREGIONFORMFIELD+", "+u.default.DOCUMENT.DOT.LEGACY.FALLBACKCOMPLEXREGION,e[u.default.ANALYTICS.OBJECTS.FALLBACKPAGEQRCODE]=u.default.DOCUMENT.DOT.FALLBACKPAGEQRCODE,e[u.default.ANALYTICS.OBJECTS.FALLBACKPAGEBARCODE]=u.default.DOCUMENT.DOT.FALLBACKPAGEBARCODE,e[u.default.ANALYTICS.OBJECTS.FALLBACKPAGEREADINGORDER]=u.default.DOCUMENT.DOT.FALLBACKPAGEREADINGORDER,e[u.default.ANALYTICS.OBJECTS.FALLBACKMULTIPAGECOMPLEXTABLE]=u.default.DOCUMENT.DOT.FALLBACKMULTIPAGECOMPLEXTABLE,e[u.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXTABLE]=u.default.DOCUMENT.DOT.FALLBACKREGIONCOMPLEXTABLE+", "+u.default.DOCUMENT.DOT.LEGACY.FALLBACKCOMPLEXTABLE}},{key:"_declareFallbackAnalytics",value:function(){this._fallbackAnalytics=[[u.default.DOCUMENT.FALLBACKPAGECOMPLEXPAGE,u.default.ANALYTICS.OBJECTS.FALLBACKPAGECOMPLEXPAGE],[u.default.DOCUMENT.FALLBACKPAGEIMAGEONLY,u.default.ANALYTICS.OBJECTS.FALLBACKPAGEIMAGEONLY],[u.default.DOCUMENT.FALLBACKREGIONCOMPLEXTABLE,u.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXTABLE],[u.default.DOCUMENT.FALLBACKREGIONFORMFIELD,u.default.ANALYTICS.OBJECTS.FALLBACKREGIONFORMFIELD],[u.default.DOCUMENT.FALLBACKPAGEFORMFIELD,u.default.ANALYTICS.OBJECTS.FALLBACKPAGEFORMFIELD],[u.default.DOCUMENT.FALLBACKPAGETITLEPAGE,u.default.ANALYTICS.OBJECTS.FALLBACKPAGETITLEPAGE],[u.default.DOCUMENT.FALLBACKPAGEQRCODE,u.default.ANALYTICS.OBJECTS.FALLBACKPAGEQRCODE],[u.default.DOCUMENT.FALLBACKPAGEBARCODE,u.default.ANALYTICS.OBJECTS.FALLBACKPAGEBARCODE],[u.default.DOCUMENT.FALLBACKPAGEREADINGORDER,u.default.ANALYTICS.OBJECTS.FALLBACKPAGEREADINGORDER],[u.default.DOCUMENT.FALLBACKMULTIPAGECOMPLEXTABLE,u.default.ANALYTICS.OBJECTS.FALLBACKPAGEMULTIPAGECOMPLEXTABLE],[u.default.DOCUMENT.FALLBACKREGIONINLINEFORMULA,u.default.ANALYTICS.OBJECTS.FALLBACKINLINEFORMULA],[u.default.DOCUMENT.LEGACY.FALLBACKINLINEFORMULA,u.default.ANALYTICS.OBJECTS.FALLBACKINLINEFORMULA]]}},{key:"init",value:function(){var a=this;d.Log.info("Analytics.init()"),t.Events.subscribe(u.default.EVENTS.UPDATEPAGEBOUNDARIES,function(e){a._updatePageBoundaries(e)}),t.Events.subscribe(u.default.EVENTS.VIEWPORTSCROLLED,function(){return a._checkForPageFeaturesInView()}),t.Events.subscribe(u.default.EVENTS.QUALIFYPAGE,function(e){d.Log.info("qualify page "+e.pageNumber+" "+e.startTime),a.pageTransition(u.default.ANALYTICS.TRANSITIONS.ENTER,e.startTime,e.pageNumber,0),a._checkForPageFeaturesInView()}),t.Events.subscribe(u.default.EVENTS.UNQUALIFYPAGE,function(e){if(d.Log.info("unqualify page "+e.pageNumber+" "+e.startTime+" "+e.duration),a.pageTransition(u.default.ANALYTICS.TRANSITIONS.EXIT,e.startTime,e.pageNumber,e.duration),a._oldRenderedMap)for(var t=0;t<a._oldRenderedMap.length;t++)if(e.pageNumber===a._oldRenderedMap[t].pageNumber){delete a._oldRenderedMap[t--];break}}),t.Events.subscribe(u.default.EVENTS.RENDEREDONPAGE,function(e){a.rendered(e.feature,e.start,e.pageNumber)}),t.Events.subscribe(u.default.EVENTS.INTERACTEDONPAGE,function(e){a.interacted(e.feature,e.start,e.pageNumber)}),t.Events.subscribe(u.default.EVENTS.PAGEACTION,function(e){a.pageAction(e.type,e.start,e.pageNumber,e.duration,e.reason)}),t.Events.subscribe(u.default.EVENTS.REPORTPAGEACTION,function(e){d.Log.info("page action event "+e.type+" "+e.pageNumber),a.addPageAction(e.pageNumber,e.$elem,e.type,e.start,e.duration,e.reason)}),t.Events.subscribe(u.default.EVENTS.FONTRESIZED,function(e){var t=l("html").css("fontSize"),n=Number(t.substr(0,t.length-2));n>a._oldFontSize&&0<a._oldFontSize?a.addGlobalAction(u.default.ANALYTICS.GLOBALACTIONS.INCREASECONTENTSIZE):n<a._oldFontSize&&a.addGlobalAction(u.default.ANALYTICS.GLOBALACTIONS.DECREASECONTENTSIZE),a._oldFontSize=n}),this._buildFeatureReferences(),1<=l(".dx-fake-doc").length?this.addGlobalAction(u.default.ANALYTICS.GLOBALACTIONS.NAVEXISTS):this.addGlobalAction(u.default.ANALYTICS.GLOBALACTIONS.NAVNOTQUALIFIEDDXRULES),this._checkForPageFeaturesInView(),0<this._featureReferences[u.default.ANALYTICS.OBJECTS.WATERMARK]&&this.rendered(u.default.ANALYTICS.OBJECTS.WATERMARK),i.Platform.isMobile&&document.addEventListener("securitypolicyviolation",function(e){i.Platform.postCSPViolation(e)}),this._isInitialized||(t.Events.subscribe(u.default.EVENTS.STARTAUTOMATEDANALYTICSTESTS,function(e){e.speedy&&(c.UtilFunctions.startNow=(new Date).getTime()-5e5),a._testAnalytics()}),this._isInitialized=!0)}},{key:"_identifyFallbackEvent",value:function(e){var t=null;d.Log.info(" "),d.Log.info("Image "+e.attr("id")+" "+e.attr("class"));for(var n=0;n<this._fallbackAnalytics.length;n++){var a=this._fallbackAnalytics[n],i=a[0],o=a[1];if(d.Log.info("."+i),e.hasClass(i)){d.Log.info("   match!"),null==(t=o)&&d.Log.error("Analytica Fallback event "+i+" has an invalid value");break}}return t=t||u.default.ANALYTICS.OBJECTS.ZOOMABLEIMAGE}},{key:"_addAnalyticsDetails",value:function(e){e[u.default.ANALYTICS.MANIFESTNAME]=n.Manifest.name,e[u.default.ANALYTICS.MANIFESTVERSION]=n.Manifest.version,e[u.default.ANALYTICS.VIEWPORT]=n.Manifest.viewportSize}},{key:"_postMessage",value:function(n,e){var a=e;this._addAnalyticsDetails(e),Object.keys(a).forEach(function(e){var t=a[e];t==t&&void 0!==t&&t!==1/0&&t!==-1/0||(delete a[e],d.Log.warn("%c%s","color:red","invalid analytics context value for "+e+" : "+t),d.Log.warn(n+": \n"+JSON.stringify(a,null,2)))}),i.Platform.postAnalytic(n,a)}},{key:"addPageAction",value:function(e,t,n,a,i,o){var r=4<arguments.length&&void 0!==i?i:0,s=5<arguments.length&&void 0!==o?o:"",l=this._discoverPageNumber(t,e),u=a;u=u||c.UtilFunctions.getNow(),this._pages.addPageAction(l,n,u,r,s)}},{key:"addGlobalAction",value:function(e,t){if(d.Log.info("addGlobalAction "+e),void 0!==e){var n=t,a={};n=n||c.UtilFunctions.getNow(),a[u.default.ANALYTICS.STARTTIME]=n,this._postMessage(e,a)}else d.Log.error("addGlobalAction received undefined type")}},{key:"_unknownFeature",value:function(e){var n=this,t=!1;return void 0===this._features[e]&&(t=!0,console.error(e+" not supported"),void 0===this._unknownFeatures[e]&&(this._unknownFeatures[e]=!0,this._unknownFeaturesTimer&&clearTimeout(this._unknownFeaturesTimer),this._unknownFeaturesTimer=setTimeout(function(){var t="x Features unknown to analytics: ";Object.keys(n._unknownFeatures).forEach(function(e){t+=e+", "}),t=t.substring(0,t.length-2),d.Log.addMessage("Analytics",u.default.LOGCATEGORIES.WARNINGS,t)},200))),t}},{key:"pageTransition",value:function(e,t,n,a){var i=1<arguments.length&&void 0!==t?t:void 0,o=2<arguments.length&&void 0!==n?n:void 0;if(e===u.default.ANALYTICS.TRANSITIONS.ENTER||e===u.default.ANALYTICS.TRANSITIONS.EXIT){var r={};r[u.default.ANALYTICS.PAGENUMBER]=o,r[u.default.ANALYTICS.STARTTIME]=i,this._postMessage(e,r)}}},{key:"pageAction",value:function(e,t,n,a,i){var o=1<arguments.length&&void 0!==t?t:void 0,r=2<arguments.length&&void 0!==n?n:void 0,s=4<arguments.length&&void 0!==i?i:void 0,l={};l[u.default.ANALYTICS.PAGENUMBER]=r,l[u.default.ANALYTICS.STARTTIME]=o,s&&(l[u.default.ANALYTICS.REASON]=s),this._postMessage(e,l)}},{key:"_discoverPageNumber",value:function(e,t){var n=Number(t);if((isNaN(n)||void 0===n)&&(n=void 0,e&&1===e.length))if(e.data("page"))n=Number(e.data("page"));else{var a=l(u.default.DOCUMENT.DOT.DOCUMENTCLASS).find("[data-page]");0<a.length&&(n=Number(a.data("page")))}return n}},{key:"exists",value:function(e,t,n,a){var i=1<arguments.length&&void 0!==t?t:void 0,o=3<arguments.length&&void 0!==a?a:void 0,r=2<arguments.length&&void 0!==n?n:void 0;if(!this._unknownFeature(e,"exists")){var s=this._discoverPageNumber(i,o);isNaN(s)||void 0===s||0===s||this._pages.addEventReference(s,e,i);var l={};r=r||c.UtilFunctions.getNow(),l[u.default.ANALYTICS.STARTTIME]=r,s&&(l[u.default.ANALYTICS.PAGENUMBER]=s),l[e]=u.default.ANALYTICS.OBJECTACTIONS.EXISTS,this._postMessage(u.default.ANALYTICS.CONTENTACTION,l)}}},{key:"rendered",value:function(e,t,n){if(d.Log.info("rendered "+e+" "+t+" #:"+n),this._unknownFeature(e,"rendered"))console.error("Undefined analytics feature name: "+e);else{var a={};a[u.default.ANALYTICS.STARTTIME]=t,a[u.default.ANALYTICS.PAGENUMBER]=n,a[e]=u.default.ANALYTICS.OBJECTACTIONS.RENDERED,this._postMessage(u.default.ANALYTICS.CONTENTACTION,a)}}},{key:"interacted",value:function(e,t,n,a){var i=this._discoverPageNumber(t,a);if(d.Log.info("interacted "+e+" "+n+" #:"+i),this._unknownFeature(e,"interacted"))console.error("Undefined analytics feature name : "+e+" ");else{i=i||this._discoverPageNumber(t,a),d.Log.info("interacted "+e+" "+i),i&&0<i&&this._qualifyPage(i);var o=null!=n?n:c.UtilFunctions.getNow(),r={};r[u.default.ANALYTICS.STARTTIME]=o,r[u.default.ANALYTICS.PAGENUMBER]=i,r[e]=u.default.ANALYTICS.OBJECTACTIONS.INTERACTED,this._postMessage(u.default.ANALYTICS.CONTENTACTION,r)}}},{key:"_buildFeatureReferences",value:function(){var i=this;try{var e=function(a){Object.prototype.hasOwnProperty.call(i._features,a)&&(i._featureReferences[a]=[],i._interactedFeatures[a]=0,l(i._features[a]).each(function(e,t){var n=l(t);i._featureReferences[a].push(n),i.exists(a,n)}))};for(var t in this._features)e(t)}catch(e){d.Log.error("buildFeatureReferences error: "+e)}}},{key:"_qualifyPage",value:function(e){this._pages.qualifyPage(e)}},{key:"_unqualifyPage",value:function(e){var t=this._lastPagesVisible[e],n=c.UtilFunctions.getNow()-t;this.pageTransition(u.default.ANALYTICS.TRANSITIONS.EXIT,t,e,n),delete this._qualifiedPages[e]}},{key:"_isPageInView",value:function(e){var t=void 0;return e&&1<e&&(t=this._lastPagesVisible[e]),t}},{key:"_checkForPageTransitions",value:function(){var e=c.UtilFunctions.getRootScrollingObject().scrollTop(),t=c.UtilFunctions.getWindowHeight();return this._pages.checkForPageTransitions(e,t)}},{key:"_updatePageBoundaries",value:function(e){e&&this._pages.updatePageBoundaries(e)}},{key:"_checkForPageFeaturesInView",value:function(){this.log("checkForPageFeaturesInView, features = "),this.dir(this._pages.inScopeFeatures),this.time("_checkForPageFeaturesInView"),this._checkForPageTransitions();for(var e=[],t=this._pages.inScopeFeatures,n=0;n<t.length;n++){var a=t[n];this._isInView(l(a.feature))&&e.push({instance:a.feature,type:a.featureName,pageNumber:a.pageNumber,start:a.start})}for(var i=0;i<e.length;i++){var o=!1;if(this._oldRenderedMap)for(var r=0;r<this._oldRenderedMap.length;r++)if(e[i].instance===this._oldRenderedMap[r].instance){o=!0;break}if(!o){var s=Number(e[i].pageNumber);void 0!==s&&0!==s?this._pages.addEventRendered(s,e[i].type,e[i].instance,e[i].start):(d.Log.error("rendering "+e[i].type+" event that is page-less."),this.rendered(e[i].type,e[i].start))}}this._oldRenderedMap=e,this.timeEnd("_checkForPageFeaturesInView"),this.log("checkForPageFeaturesInView end")}},{key:"_isInView",value:function(e){var t=!1;if(void 0!==e&&e.length&&0<e.length){var n=c.UtilFunctions.getRootScrollingObject(),a=n[0]===e.offsetParent()[0]?0:n.scrollTop(),i=a+c.UtilFunctions.getWindowHeight(),o=e.offset().top;t=o+e.height()<=i&&a<=o}return t}},{key:"_testAnalytics",value:function(){this.testData=[{action:u.default.ANALYTICS.OBJECTACTIONS.EXISTS,type:u.default.ANALYTICS.OBJECTS.TABLE,start:1900,pageNumber:2},{action:u.default.ANALYTICS.OBJECTACTIONS.EXISTS,type:u.default.ANALYTICS.OBJECTS.WATERMARK,start:1900},{action:u.default.ANALYTICS.OBJECTACTIONS.EXISTS,type:u.default.ANALYTICS.OBJECTS.TOC,start:1900,pageNumber:2},{action:u.default.ANALYTICS.OBJECTACTIONS.EXISTS,type:u.default.ANALYTICS.OBJECTS.COLLAPSIBLEHEADING,start:1900,pageNumber:2},{action:u.default.ANALYTICS.OBJECTACTIONS.EXISTS,type:u.default.ANALYTICS.OBJECTS.FOOTNOTE,start:1900,pageNumber:2},{action:u.default.ANALYTICS.OBJECTACTIONS.EXISTS,type:u.default.ANALYTICS.OBJECTS.COMPLEXREGION,start:1902,pageNumber:5},{action:u.default.ANALYTICS.OBJECTACTIONS.EXISTS,type:u.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXTABLE,start:1902,pageNumber:5},{action:u.default.ANALYTICS.OBJECTACTIONS.EXISTS,type:u.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXFULLPAGE,start:1902,pageNumber:5},{action:u.default.ANALYTICS.OBJECTACTIONS.EXISTS,type:u.default.ANALYTICS.OBJECTS.LINK,start:1904,pageNumber:2},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.ENTER,start:12e3,pageNumber:1},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.EXIT,start:13e3,pageNumber:1},{action:u.default.ANALYTICS.GLOBALACTION,type:u.default.ANALYTICS.GLOBALACTIONS.NAVIGATIONINVOKE,start:15e3},{action:u.default.ANALYTICS.GLOBALACTION,type:u.default.ANALYTICS.GLOBALACTIONS.NAVIGATIONTAP,start:17e3},{action:u.default.ANALYTICS.GLOBALACTION,type:u.default.ANALYTICS.GLOBALACTIONS.INCREASECONTENTSIZE,start:18e3},{action:u.default.ANALYTICS.GLOBALACTION,type:u.default.ANALYTICS.GLOBALACTIONS.DECREASECONTENTSIZE,start:2e4},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.MFB_FIX,start:25e3,pageNumber:2},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.MFB_FIXED,start:3e4,pageNumber:2},{action:u.default.ANALYTICS.GLOBALACTION,type:u.default.ANALYTICS.GLOBALACTIONS.CLIPBOARDCOPY,start:5e4},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.MFB_FIX,start:55e3,pageNumber:1},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.MFB_FABX,start:56e3},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.MFB_FAB,start:6e4,pageNumber:1},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.MFB_NOTELIGIBLE,start:65e3,pageNumber:1,reason:"already fallback"},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.MFB_FAB,start:7e4,pageNumber:2},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.MFB_FAILED,start:75e3,pageNumber:2,reason:"rasterization timed out"},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.EXIT,start:1e5,pageNumber:2,duration:8e3},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.ENTER,start:101e3,pageNumber:3},{action:u.default.ANALYTICS.GLOBALACTION,type:u.default.ANALYTICS.GLOBALACTIONS.NAVIGATIONINVOKEWHILEINFIND,start:102e3},{action:u.default.ANALYTICS.GLOBALACTION,type:u.default.ANALYTICS.GLOBALACTIONS.NAVIGATIONTAP,start:103e3},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.MFB_FAB,start:104e3,pageNumber:3},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.MFB_FIXED,start:105e3,pageNumber:3},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.MFB_UNDO,start:106e3,pageNumber:3},{action:u.default.ANALYTICS.OBJECTACTIONS.RENDERED,type:u.default.ANALYTICS.OBJECTS.TABLE,start:107e3,pageNumber:2},{action:u.default.ANALYTICS.OBJECTACTIONS.RENDERED,type:u.default.ANALYTICS.OBJECTS.TOC,start:115e3,pageNumber:2},{action:u.default.ANALYTICS.OBJECTACTIONS.INTERACTED,type:u.default.ANALYTICS.OBJECTS.TOC,start:12e4,pageNumber:2},{action:u.default.ANALYTICS.OBJECTACTIONS.RENDERED,type:u.default.ANALYTICS.OBJECTS.COLLAPSIBLEHEADING,start:125e3,pageNumber:2},{action:u.default.ANALYTICS.OBJECTACTIONS.INTERACTED,type:u.default.ANALYTICS.OBJECTS.COLLAPSIBLEHEADING,start:13e4,pageNumber:2},{action:u.default.ANALYTICS.OBJECTACTIONS.RENDERED,type:u.default.ANALYTICS.OBJECTS.FOOTNOTE,start:135e3,pageNumber:2},{action:u.default.ANALYTICS.OBJECTACTIONS.INTERACTED,type:u.default.ANALYTICS.OBJECTS.FOOTNOTE,start:14e4,pageNumber:2},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.EXIT,start:155e3,pageNumber:3,duration:8e3},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.ENTER,start:16e4,pageNumber:4},{action:u.default.ANALYTICS.OBJECTACTIONS.RENDERED,type:u.default.ANALYTICS.OBJECTS.LINK,start:165e3,pageNumber:2},{action:u.default.ANALYTICS.OBJECTACTIONS.INTERACTED,type:u.default.ANALYTICS.OBJECTS.LINK,start:17e4,pageNumber:2},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.EXIT,start:185e3,pageNumber:4,duration:8e3},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.ENTER,start:19e4,pageNumber:5},{action:u.default.ANALYTICS.OBJECTACTIONS.RENDERED,type:u.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXTABLE,start:195e3,pageNumber:5},{action:u.default.ANALYTICS.OBJECTACTIONS.INTERACTED,type:u.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXTABLE,start:2e5,pageNumber:5},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.EXIT,start:205e3,pageNumber:4,duration:8e3},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.ENTER,start:21e4,pageNumber:5},{action:u.default.ANALYTICS.OBJECTACTIONS.RENDERED,type:u.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXREGION,start:215e3,pageNumber:5},{action:u.default.ANALYTICS.OBJECTACTIONS.INTERACTED,type:u.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXREGION,start:22e4,pageNumber:5},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.EXIT,start:225e3,pageNumber:5,duration:8e3},{action:u.default.ANALYTICS.PAGETRANSITION,type:u.default.ANALYTICS.TRANSITIONS.ENTER,start:24e4,pageNumber:6},{action:u.default.ANALYTICS.OBJECTACTIONS.RENDERED,type:u.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXFULLPAGE,start:245e3,pageNumber:6},{action:u.default.ANALYTICS.OBJECTACTIONS.INTERACTED,type:u.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXFULLPAGE,start:255e3,pageNumber:6},{action:u.default.ANALYTICS.OBJECTACTIONS.INTERACTED,type:u.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXFULLPAGE,start:255e3,pageNumber:6},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.EXPANDHEADING,start:256e3,pageNumber:3},{action:u.default.ANALYTICS.PAGEACTION,type:u.default.ANALYTICS.PAGEACTIONS.COLLAPSEHEADING,start:257e3,pageNumber:3}],this._simulationTotal=this.testData.length,this._simulationCount=0,this._today=new Date;var e='<span> </span> <span id="dx_analytics_count"></span> / <span id="dx_analytics_total">'+this._simulationTotal+"</span>";l("#testAnalytics").append(l(e)),this._waitForNextSimulationEvent()}},{key:"_waitForNextSimulationEvent",value:function(){var e=this,t=c.UtilFunctions.getNow();if(void 0!==this.testData[0]){var n=Math.max(this.testData[0].start-t,0);0===n?(this._simulateNextEvent(this.testData.shift()),this._waitForNextSimulationEvent()):setTimeout(function(){e._simulateNextEvent(e.testData.shift()),e._waitForNextSimulationEvent()},n)}}},{key:"_simulateNextEvent",value:function(e){var t=e;if(void 0!==t)switch(d.Log.info("simulate: "+ ++this._simulationCount+"/"+this._simulationTotal+" "+t.action+" "+t.type+" "+t.start),l("#dx_analytics_count").html(this._simulationCount),t.action){case u.default.ANALYTICS.PAGETRANSITION:this.pageTransition(t.type,t.start,t.pageNumber);break;case u.default.ANALYTICS.GLOBALACTION:this.globalAction(t.type,t.start);break;case u.default.ANALYTICS.PAGEACTION:this.pageAction(t.type,t.start,t.pageNumber,t.reason);break;case u.default.ANALYTICS.OBJECTACTIONS.EXISTS:this.exists(t.type,void 0,t.start,t.pageNumber);break;case u.default.ANALYTICS.OBJECTACTIONS.RENDERED:this.rendered(t.type,t.start,t.pageNumber);break;case u.default.ANALYTICS.OBJECTACTIONS.INTERACTED:this.interacted(t.type,void 0,t.start,t.pageNumber)}}},{key:"log",get:function(){return this._isDebug?window.console.log:function(){}}},{key:"trace",get:function(){return this._isDebug?window.console.trace:function(){}}},{key:"dir",get:function(){return this._isDebug?window.console.dir:function(){}}},{key:"time",get:function(){return this._isDebug?window.console.time:function(){}}},{key:"timeEnd",get:function(){return this._isDebug?window.console.timeEnd:function(){}}},{key:"features",get:function(){return this._features}},{key:"unknownFeatures",get:function(){return this._unknownFeatures}}]),f);function f(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),this._scrollTimer=null,this._existingFeatures={},this._renderedFeatures={},this._interactedFeatures={},this._isInitialized=!1,this._pageStateMap=void 0,this._localMap=void 0,this._unknownFeatures={},this._unknownFeaturesTimer=null,this._featureReferences={},this._oldRenderedMap=[],this._oldFontSize=0,this._today=new Date,this._debug=!1,this._lastPagesVisible={},this._pageTimers={},this._qualifiedPages={},this._isDebug=!1,this._pages=new o.default,this._declareFeatureAnalytics(),this._declareFallbackAnalytics()}E.Analytics=new s}).call(E,h(1))},function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}Object.defineProperty(t,"__esModule",{value:!0});var i=(function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}(o,[{key:"init",value:function(){}},{key:"postCSPViolation",value:function(){}},{key:"postAnalytic",value:function(){}},{key:"createAnnot",value:function(){}},{key:"deselectAnnot",value:function(){}},{key:"moveAnnot",value:function(){}},{key:"selectAnnot",value:function(){}},{key:"showAnnotPreview",value:function(){}},{key:"postDocumentReady",value:function(){}},{key:"DXready",value:function(){}},{key:"postFindResults",value:function(){}},{key:"postNavHeaderHeight",value:function(){}},{key:"postOutlineViewShown",value:function(){}},{key:"disableScroll",value:function(){}},{key:"enableScroll",value:function(){}},{key:"externalLinkClicked",value:function(){}},{key:"openContextMenu",value:function(){}},{key:"markFallbackPage",value:function(){}},{key:"unmarkFallbackPage",value:function(){}},{key:"postFallbackFailure",value:function(){}},{key:"postFallbackSuccess",value:function(){}},{key:"postFallbackUndoSuccess",value:function(){}},{key:"enterImmersiveMode",value:function(){}},{key:"exitImmersiveMode",value:function(){}},{key:"preventExit",value:function(){}},{key:"firstUserInteraction",value:function(){}},{key:"firstOutlineInteracted",value:function(){}},{key:"documentLoaded",value:function(){}},{key:"documentLoading",value:function(){}},{key:"type",get:function(){return this._type}},{key:"platformName",get:function(){return this._platformName}}]),o);function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._type=e||"type",this._platformName="platform"}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomSelector=void 0;var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var u=l(n(1)),d=n(20),c=l(n(0)),o=n(2),f=n(5),r=n(3),s=l(n(48));function l(e){return e&&e.__esModule?e:{default:e}}var E=(a(h,[{key:"init",value:function(){this._initialized||(this.subscribe(),this._initialized=!0)}},{key:"clearSelection",value:function(e){e&&(this._ignoreChange=!0,this._informModules=!1),window.getSelection().removeAllRanges(),this._selectionInfo.clear(),this._ignoreChange&&(this._ignoreChange=!1)}},{key:"createSelectionFromSelector",value:function(e){var t=this._createRangeDataFromClassicSelector(e),n=document.createRange();return n.setStart(t.startTextNode,t.startOffset),n.setEnd(t.endTextNode,t.endOffset),this.setSelection(n,!0),this._selectionInfo}},{key:"extendSelection",value:function(e,t){var n=window.getSelection();this._ignoreChange=!0,t&&(this._informModules=!1),n.addRange(e),this._ignoreChange=!1,this._selectionChangedFunction()}},{key:"isSelectionEmpty",value:function(){return this._selectionInfo.isEmpty()}},{key:"normalizeRange",value:function(e){var t=null;try{t=d.Range.sniff(e).normalize((0,u.default)("."+c.default.DOCUMENT.DOCUMENTCLASS).get(0))}catch(e){r.Log.error(e)}return t}},{key:"setSelection",value:function(e,t){var n=document.getSelection();this._ignoreChange=!0,n.removeAllRanges(),this.extendSelection(e,t)}},{key:"subscribe",value:function(){var t=this;this._listening||((0,u.default)(document).on("selectionchange.util",function(e){t._ignoreChange||t._handleSelectionChanged(e)}),this._listening=!0)}},{key:"trigger",value:function(){(0,u.default)(document).trigger("selectionchange.util")}},{key:"unsubscribe",value:function(){this._listening&&((0,u.default)(document).off("selectionchange.util"),this._listening=!1)}},{key:"_createRangeDataFromClassicSelector",value:function(e){var t=Object.create(e);if(t.startId||(t.id?t.startId=t.id:t.startId=t.elementId,t.startOffset=t.offset,t.endId=t.elementId,t.endOffset=t.offset),t.startId===t.endId&&t.startOffset===t.endOffset){var n=(0,u.default)("#"+t.startId);n.text().length!==n.text().trim().length&&t.startOffset===n.text().trim().length&&--t.startOffset,t.endOffset=t.startOffset+1}var a=t.startId,i=t.startOffset,o=t.endId,r=t.endOffset,s=this._extractTextNodeAndOffsetForSelection(a,i);s=s||this._extractTextNodeAndOffsetForSelection(o,0);var l=this._extractTextNodeAndOffsetForSelection(o,r);return l=l||this._extractTextNodeAndOffsetForSelection(a,-1),{startTextNode:s.node,startOffset:s.offset,endTextNode:l.node,endOffset:l.offset}}},{key:"_extractTextNodeAndOffsetForSelection",value:function(e,t){var n=document.getElementById(e);if(!n)return null;for(var a=-1===t?(0,u.default)(n).text().length:t,i=n.firstChild;null!==i&&"IMG"!==i.nodeName;)if(i.nodeType===Node.TEXT_NODE){var o=i.textContent.length;if(!(o<a))break;a-=o,i=i.nextSibling}else{var r=(0,u.default)(i).text().length||0;i=r<a?(a-=r,i.nextSibling):0===r?i.nextSibling:i.firstChild}return i?{node:i,offset:a}:null}},{key:"_getRangesFromSelection",value:function(n){var e=this,t=[],a=[],i=[],o=(0,u.default)("."+c.default.DOCUMENT.DOCUMENTCLASS).get(0);if(n.isCollapsed)return{quote:"",ranges:[],serializedRanges:[]};this._ignoreChange=!0;for(var r=0;r<n.rangeCount;++r){var s=n.getRangeAt(r),l=new d.Range.BrowserRange(s);t.push(s.toString()),a.push(l),i.push(l.serialize(o,c.default.DX.COMMENTCLASS))}return f.Platform.isPlatform(c.default.PLATFORMS.IOS)&&n.removeAllRanges(),(0,u.default)(".ADBE_E_Document").get(0).normalize(),a.forEach(function(e){var t=document.createRange();t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),n.addRange(t)}),setTimeout(function(){e._ignoreChange=!1},500),{quote:t.join(" / "),ranges:a,serializedRanges:i}}},{key:"_handleSelectionChanged",value:function(){var e=this;this._selectionTimeout&&clearTimeout(this._selectionTimeout),this._selectionTimeout=setTimeout(function(){return e._selectionChangedFunction()},500)}},{key:"_normalizeRangesFromSelection",value:function(n){var e=this,t=(0,u.default)("."+c.default.DOCUMENT.DOCUMENTCLASS).get(0),a=[],i=[];if(n.isCollapsed)return a;this._ignoreChange=!0;for(var o=0;o<n.rangeCount;++o){var r=n.getRangeAt(o),s=new d.Range.BrowserRange(r).normalize().limit(t);s?a.push(s):i.push(r)}return n.removeAllRanges(),i.forEach(function(e){n.addRange(e)}),a.forEach(function(e){var t=document.createRange();t.setStartBefore(e.start),t.setEndAfter(e.end),n.addRange(t)}),setTimeout(function(){e._ignoreChange=!1},500),a}},{key:"_selectionChangedFunction",value:function(){this._selectionTimeout&&clearTimeout(this._selectionTimeout),this._setSelectionInfoFromSelection(),this._informModules?o.Events.publish(c.default.EVENTS.SELECTIONCHANGED):this._informModules=!0}},{key:"_setSelectionInfoFromSelection",value:function(){var e=(0,u.default)(document),t=e.scrollTop(),n=e.scrollLeft();this._selectionInfo.clear(),(0,u.default)("."+c.default.DOCUMENT.DOCUMENTCLASS).get(0).normalize();var a=window.getSelection();if(0!==a.rangeCount&&!a.isCollapsed){var i=a.getRangeAt(0).cloneRange(),o=i.getBoundingClientRect();0===o.height&&(o=i.getClientRects()[0]),o&&(this._selectionInfo.width=o.width,this._selectionInfo.height=o.height,this._selectionInfo.screenXStart=o.left,this._selectionInfo.screenYStart=o.top,this._selectionInfo.pageXStart=o.left+n,this._selectionInfo.pageYStart=o.top+t),(o=i.getClientRects()[0])&&(this._selectionInfo.screenXEnd=o.left,this._selectionInfo.screenYEnd=o.top,this._selectionInfo.pageXEnd=o.left+n,this._selectionInfo.pageYEnd=o.top+t);var r=this._getRangesFromSelection(a);this._selectionInfo.range=r.ranges[0],this._selectionInfo.serializedRange=r.serializedRanges[0],this._selectionInfo.text=r.quote}}},{key:"selectionInfo",get:function(){return this._selectionInfo}}]),h);function h(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),this._initialized=!1,this._listening=!1,this._selectionInfo=new s.default,this._selectionTimeout=null,this._ignoreChange=!1,this._informModules=!0}t.DomSelector=new E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Manifest=void 0;var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o,r=n(0),s=(o=r)&&o.__esModule?o:{default:o},l=n(2);var u=(a(d,[{key:"init",value:function(){var t=this;if(!this._initialized){var e=this._getUrlParameters();e.manifest&&0<e.manifest.length&&window.AdbeDx&&window.AdbeDx.manifestManager&&window.AdbeDx.manifestManager.initMessageHandlers&&(window.AdbeDx.manifestManager.initMessageHandlers(e.manifest),setTimeout(function(){window.AdbeDx.manifestManager.init&&window.AdbeDx.manifestManager.init(e.manifest)},300)),"undefined"!=typeof AdbeDxClientSpecifiedModules&&AdbeDxClientSpecifiedModules?this._modules=AdbeDxClientSpecifiedModules.split(","):e.modules&&(this._modules=e.modules.split(",")),l.Events.subscribe(s.default.EVENTS.VIEWPORTCHANGED,function(e){t._viewportSize=e}),this._initialized=!0}}},{key:"_getUrlParameters",value:function(){var e={},t=window.location.search.substring(1);if("string"==typeof t)for(var n=t.split("&"),a=0;a<n.length;++a){var i=n[a].split("=");e[i[0]]=i[1]}return e}},{key:"parameters",get:function(){return this._getUrlParameters()}},{key:"name",get:function(){return this._name}},{key:"version",get:function(){return this._version}},{key:"modules",get:function(){return this._modules}},{key:"viewportSize",get:function(){return this._viewportSize}}]),d);function d(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),this._name="DC Next Beta 22",this._version="0.26.127",this._modules=[],this._initialized=!1,this._viewportSize="S"}t.Manifest=new u},,,,function(e,t,n){var a,i,o;i=[t],void 0===(o="function"==typeof(a=function(e){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var r=!1;if("undefined"!=typeof window){var t={get passive(){r=!0}};window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}function s(t){return d.some(function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))})}function l(e){var t=e||window.event;return!!s(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)}function n(){setTimeout(function(){void 0!==h&&(document.body.style.paddingRight=h,h=void 0),void 0!==E&&(document.body.style.overflow=E,E=void 0)})}var u="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),d=[],c=!1,f=-1,E=void 0,h=void 0;e.disableBodyScroll=function(i,e){if(u){if(!i)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(i&&!d.some(function(e){return e.targetElement===i})){var t={targetElement:i,options:e||{}};d=[].concat(o(d),[t]),i.ontouchstart=function(e){1===e.targetTouches.length&&(f=e.targetTouches[0].clientY)},i.ontouchmove=function(e){var t,n,a;1===e.targetTouches.length&&(n=i,a=(t=e).targetTouches[0].clientY-f,s(t.target)||(n&&0===n.scrollTop&&0<a||n&&n.scrollHeight-n.scrollTop<=n.clientHeight&&a<0?l(t):t.stopPropagation()))},c||(document.addEventListener("touchmove",l,r?{passive:!1}:void 0),c=!0)}}else{a=e,setTimeout(function(){if(void 0===h){var e=!!a&&!0===a.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(h=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===E&&(E=document.body.style.overflow,document.body.style.overflow="hidden")});var n={targetElement:i,options:e||{}};d=[].concat(o(d),[n])}var a},e.clearAllBodyScrollLocks=function(){u?(d.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),c&&(document.removeEventListener("touchmove",l,r?{passive:!1}:void 0),c=!1),d=[],f=-1):(n(),d=[])},e.enableBodyScroll=function(t){if(u){if(!t)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");t.ontouchstart=null,t.ontouchmove=null,d=d.filter(function(e){return e.targetElement!==t}),c&&0===d.length&&(document.removeEventListener("touchmove",l,r?{passive:!1}:void 0),c=!1)}else(d=d.filter(function(e){return e.targetElement!==t})).length||n()}})?a.apply(t,i):a)||(e.exports=o)},,function(e,t,n){"use strict";function o(e,t,n,a){var i;t in e&&("function"!=typeof(i=a)||"[object Function]"!==l.call(i)||!a())||(c?d(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)}function a(e,t){var n=2<arguments.length?arguments[2]:{},a=r(t);s&&(a=u.call(a,Object.getOwnPropertySymbols(t)));for(var i=0;i<a.length;i+=1)o(e,a[i],t[a[i]],n[a[i]])}var r=n(27),s="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),l=Object.prototype.toString,u=Array.prototype.concat,d=Object.defineProperty,c=d&&function(){var e={};try{for(var t in d(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}();a.supportsDescriptors=!!c,e.exports=a},function(e,t,n){"use strict";var a=Object.prototype.toString;e.exports=function(e){var t=a.call(e),n="[object Arguments]"===t;return n=n||"[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===a.call(e.callee)}},function(e,t,n){"use strict";var a=n(12);e.exports=function(){return"function"==typeof Object.values?Object.values:a}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var r=c(n(1)),o=c(n(4)),s=c(n(0)),l=n(7),u=n(5),d=n(6);function c(e){return e&&e.__esModule?e:{default:e}}var f=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(E,o.default),a(E,[{key:"_handleDocumentReady",value:function(){}},{key:"_initTooltip",value:function(e){var t=e.data("ref"),n=(0,r.default)("#"+t),a=n.find("."+s.default.DX.NOTECLOSEBUTTONCLASS);return n.attr(s.default.ACCESSIBILITY.ARIAHIDDEN,s.default.ACCESSIBILITY.ARIAFALSE),e.data("clickEnabled")?a.show():a.hide(),this._openNote&&this._hideNote(this._openNote),n.parent().attr("id")!==e.attr("id")&&this._setUpNote(e,n),this._showNote(n),n}},{key:"_hideNote",value:function(e){this._openNote=null,e.hide()}},{key:"_showNote",value:function(e){e.show(),this._openNote=e}},{key:"_removeOnHover",value:function(e){var t=(0,r.default)("#"+e);if(!t.data("clickEnabled")){var n=t.data("ref"),a=(0,r.default)("#"+n);this._hideNote(a)}}},{key:"_setUpEvents",value:function(t){var n=this,a=(0,r.default)("#"+t),e=a.data("ref"),i=(0,r.default)("#"+e);u.Platform.isMobile||(a.on("mouseover.note",function(e){e.preventDefault(),e.stopPropagation(),n._initTooltip(a)}),a.on("mouseout.note",function(e){e.preventDefault(),e.stopPropagation(),n._removeOnHover(t)})),a.on(this._tapUserGesture,function(e){e.preventDefault(),e.stopPropagation(),n._noteClicked(e)}),a.on("keydown",function(e){13===e.keyCode&&n._noteClicked(e)});var o=i.find("."+s.default.DX.NOTECLOSEBUTTONCLASS);o.on(this._tapUserGesture,function(e){e.preventDefault(),e.stopPropagation(),n._noteCloseClicked(e,a,t)}),o.on("keydown",function(e){13===e.keyCode&&n._noteCloseClicked(e,a,t)})}},{key:"_setUpNote",value:function(e,t){u.Platform.isStandalone&&(this._tapUserGesture=s.default.GESTURES.TAP);var n=e.attr("id");e.attr(s.default.ACCESSIBILITY.ARIAROLE,s.default.ACCESSIBILITY.ARIABUTTON),e.attr(s.default.ACCESSIBILITY.TABINDEXATTR,s.default.ACCESSIBILITY.TABINDEXVALUE0);var a=l.Localization.translate(s.default.ACCESSIBILITY.ARIACLOSEPOPUPLBL);t.addClass("dx-unselectable"),t.attr(s.default.ACCESSIBILITY.ARIAHIDDEN,""+s.default.ACCESSIBILITY.ARIATRUE),t.css("display","inline-block"),this._hideNote(t),t.addClass(s.default.DX.NOTECONTAINERCLASS),t.contents().wrapAll("<div class='"+s.default.DX.NOTECONTENTCLASS+"'></div>"),t.append("\n      <span class='"+s.default.DX.NOTECLOSEBUTTONCLASS+"' role='button tabindex='0' aria-label='"+a.phrase+"'></span>\n    "),t.detach().appendTo(e),this._setUpEvents(n)}},{key:"_noteClicked",value:function(e){var t=(0,r.default)(e.delegateTarget);e.preventDefault(),e.stopPropagation(),this._interacted(s.default.ANALYTICS.OBJECTS.FOOTNOTE,t),t.data("clickEnabled",!0),this._initTooltip(t).focus()}},{key:"_noteCloseClicked",value:function(e,t,n){var a=(0,r.default)(e.delegateTarget);return e.preventDefault(),e.stopPropagation(),t.data("clickEnabled")&&(a.hide(),t.data("clickEnabled",!1)),this._removeOnHover(n),d.UtilFunctions.isInView(t)&&t.focus(),!1}}]),E);function E(e,t,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,e,t,n,a));return i._defaults={speed:400,toolTipOnHover:!0,position:"top",arrowWidth:8,width:200,background:"#f5f5f5",offsetX:0,offsetY:0},i._tapUserGesture=s.default.GESTURES.TOUCHEND,i._openNote=null,i}t.default=f},,function(e,t,n){"use strict";var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var g=c(n(1)),o=c(n(26)),T=c(n(0)),r=n(40),s=n(11),l=n(8),v=n(2),_=n(3),u=n(7),S=n(5),C=n(6),O=n(90),d=n(10),m=n(91);function c(e){return e&&e.__esModule?e:{default:e}}var f=(a(E,[{key:"_enhanceConstantsClass",value:function(e){var t=e,n=Object.keys(t);n&&(t.DOT={},n.forEach(function(e){t.DOT[e]="."+t[e]}))}},{key:"_checkResize",value:function(){var e=C.UtilFunctions.getWindowWidth();e<T.default.VIEWPORTS.MEDIUM_BOUNDARY?this._viewportSize!==T.default.VIEWPORTS.SMALL&&this._changeViewport(T.default.VIEWPORTS.SMALL):e<T.default.VIEWPORTS.LARGE_BOUNDARY?this._viewportSize!==T.default.VIEWPORTS.MEDIUM&&this._changeViewport(T.default.VIEWPORTS.MEDIUM):e<T.default.VIEWPORTS.EXTRA_LARGE_BOUNDARY?this._viewportSize!==T.default.VIEWPORTS.LARGE&&this._changeViewport(T.default.VIEWPORTS.LARGE):e>=T.default.VIEWPORTS.EXTRA_LARGE_BOUNDARY&&this._viewportSize!==T.default.VIEWPORTS.EXTRA_LARGE&&this._changeViewport(T.default.VIEWPORTS.EXTRA_LARGE)}},{key:"_changeViewport",value:function(e){this._viewportSize=e,v.Events.publish(T.default.EVENTS.VIEWPORTCHANGED,e)}},{key:"_resize",value:function(){this._checkResize(),v.Events.publish(T.default.EVENTS.WINDOWRESIZED,"Document._resize")}},{key:"_previousState",value:function(e){_.Log.info("previousState called "+e),this._isNavigationShown?(S.Platform.preventExit(!0),v.Events.publish(T.default.EVENTS.HIDEOUTLINE)):this._isLightBox?(S.Platform.preventExit(!0),v.Events.publish(T.default.EVENTS.HIDELIGHTBOX)):S.Platform.preventExit(!1)}},{key:"setUniformSizing",value:function(e){(this._isUniformSizing=e)?v.Events.publish(T.default.EVENTS.UNIFORMSIZING,!0):v.Events.publish(T.default.EVENTS.UNIFORMSIZING,!1)}},{key:"_adjustImageSize",value:function(e){var t=e.parent(),n=t.offset().left,a=t.is(C.UtilFunctions._eligibleTableFallbackClasses()),i=parseInt(e.data("point-width"),10),o=parseInt(e.data("point-height"),10),r=i/o;if(e.data("aspect",r),0<i){e.removeAttr("width"),e.removeAttr("height");var s=i/this._baselineFontSize+"rem",l=o/this._baselineFontSize+"rem",u=C.UtilFunctions.getElementWidth((0,g.default)(".ADBE_E_Document"))-n,d=u+"px",c=u/r+"px";e.css("width",s),e.css("height",l),a||(e.css("max-width",d),e.css("max-height",c)),_.Log.info("AdbeDocument.adjustImageSize("+e.parent().attr("id")+")")}}},{key:"_setDesktopSelectionColors",value:function(){try{var e=document.styleSheets[0];e&&(S.Platform.isDesktop||S.Platform.isStandalone?(e.insertRule("::selection {\n            color: none !important;\n            background: #99c1da !important;\n          }"),e.insertRule(".ADBE_E_Watermark,.ADBE_CM_pdfm-watermark {\n            opacity:.6 !important;\n          }")):S.Platform.isPlatform(T.default.PLATFORMS.IOS)&&(e.insertRule("::selection {\n            color: none !important;\n            background: #99C1DA !important;\n          }"),e.insertRule("::-webkit-selection {\n            color: none !important;\n            background: #99C1DA !important;\n          }")))}catch(e){this.warn(e)}}},{key:"_addDescendants",value:function(e,t){for(var n=0;n<t.length;n++)this._descendants[t[n]]=e;return this._descendants}},{key:"_conversionIncomplete",value:function(){console.warn("AdbeDx.document.conversionIncomplete was called but is not yet functionally complete in DX")}},{key:"_createSection",value:function(e,t){var n=document.createRange();n.setStartBefore(this._h1sArray[e]),e+1<this._h1sArray.length?n.setEndBefore(this._h1sArray[e+1]):n.setEndAfter(this._h1sArray[e].parentNode.lastChild);var a=document.createElement("section");a.className=T.default.DX.SECTIONCLASS,t&&(a.className+=" "+t),a.id="dx_ADBE_Obj_section"+(e+1);try{n.surroundContents(a)}catch(e){_.Log.info(e.message)}}},{key:"init",value:function(){var p=this;_.Log.log({a:{d:4,e:5},b:2,c:3}),_.Log.info("test"),_.Log.warn("test"),_.Log.error("test"),this._initialized&&_.Log.info("Document has already been loaded"),S.Platform.init(),S.Platform.postOutlineViewShown(!0),s.Manifest.init(),Object.values||o.default.shim(),this._setUpEvents(),this._createDocumentInterface(),this._initializeUtilModules(),this._docObserver=new MutationObserver(function(e){var t=null,n=0;p.log("processing mutations, length =",e.length);for(var a=0;a<e.length;++a){n+=e[a].addedNodes.length;for(var i=0;i<e[a].addedNodes.length;++i){var o=!1,r=(0,g.default)(e[a].addedNodes[i]);if(!r.hasClass(""+T.default.DX.PROCESSED)){if(r.addClass(""+T.default.DX.PROCESSED),t=r.attr("id"),r.hasClass("ADBE_E_Document")){(0,g.default)(T.default.DOCUMENT.DOT.DOCUMENTCLASS).attr("id","ADBE_E_Document"),C.UtilFunctions.enablePinchAndZoom(!1);var s=r.data("adbe-baseline-font-size");0<s&&(p._baselineFontSize=s),m.DomLayout.initLayout(),S.Platform.documentLoading(),v.Events.publish(T.default.EVENTS.DOCUMENTLOADINGSTART),p._setupInitialInteractionEvent(),window.addEventListener("scroll",function(){p.log("in window event listener for scroll, about to call handleScroll"),p._handleScroll()},!0)}if(r.hasClass("ADBE_E_Sect")&&r.parent().hasClass("ADBE_E_Document"))_.Log.info(r.attr("id")+" section loaded! scrollTop = "+C.UtilFunctions.getRootScrollingObject().scrollTop()),p._queueProxy.push(r),_.Log.info(r.attr("id")+" post section loaded! scrollTop = "+C.UtilFunctions.getRootScrollingObject().scrollTop());else if(r.is("img, object")){void 0===p._isUniformSizing&&(void 0===r.data("point-width")?p.setUniformSizing(!1):p.setUniformSizing(!0)),p._isUniformSizing&&p._adjustImageSize(r),r.get(0).complete?v.Events.publish(T.default.DOM_EVENTS.IMAGEFULLYLOADED,r):r.on("load",function(e){v.Events.publish(T.default.DOM_EVENTS.IMAGEFULLYLOADED,(0,g.default)(e.currentTarget))});var l=r.parent();p._imgIsFallbackTable(l)&&v.Events.publish(T.default.DOM_EVENTS.FBTABLELOADED,l)}else if(r.hasClass(""+T.default.DOCUMENT.HEADINGCLASS)||r.hasClass(""+T.default.DOCUMENT.TITLECLASS)||r.hasClass(""+T.default.DOCUMENT.SUBHEADINGCLASS)){if(O.DomTagger.tagHeading(r),r.is("h1")){if(p._h1sArray.push(r[0]),p._h1sArray.length<=1&&0<(0,g.default)(T.default.DOCUMENT.DOT.DOCUMENTCLASS).find("section").length&&(p._areThereAlreadySection=!0),1<p._h1sArray.length){if(!p._areThereAlreadySection){var u=p._h1sArray.length-2;p._createSection(u)}v.Events.publish(T.default.EVENTS.HEADINGONELOADED,p._previousNode)}p._previousNode=r}v.Events.publish(T.default.EVENTS.HEADINGLOADED,r)}else if(r.hasClass(""+T.default.DOCUMENT.WATERMARKCLASS))v.Events.publish(T.default.EVENTS.WATERMARKLOADED,r);else if(r.is("table")){var d=0===r.parents("table").length;v.Events.publish(T.default.DOM_EVENTS.TABLELOADED,{topLevel:d,data:r})}else r.hasClass(""+T.default.DOCUMENT.FOOTNOTEREFERENCECLASS)?v.Events.publish(T.default.DOM_EVENTS.FOOTNOTELOADED,r):r.hasClass("ADBE_E_TOCI")&&v.Events.publish(T.default.DOM_EVENTS.TOCLOADED,r);var c=r.data("descendants");if(c)for(var f=c.split(" "),E=0;E<f.length;E++){var h=f[E];p._descendants[h]=t,p._elementIDToScrollToOnSync&&h===p._elementIDToScrollToOnSync&&(o=!0)}(p._elementIDToScrollToOnSync&&r.is("#"+p._elementIDToScrollToOnSync)||o)&&(p.log("navsync element loaded"),AdbeDx.navSync.scrollIntoView(t,p._elementOffsetToScrollToOnSync,(0,g.default)(window))),r.hasClass("ADBE_CM_EOW")&&_.Log.info(t+")} window loaded!")}}}var A=(new Date).getTime()-p._origin;p._loadSequence.push({count:n,time:A})}),this._docObserver.observe(document.documentElement,{childList:!0,subtree:!0});var e=(0,g.default)("html");new MutationObserver(function(e){e.forEach(function(e){var t=C.UtilFunctions.getLastTopElementPosition();p.log("in AdbeDocument resizeObserver"),t&&C.UtilFunctions.scrollToPositionBasedOnElement(t),v.Events.publish(T.default.EVENTS.FONTRESIZED,"mutationObserver")})}).observe(e.get(0),{attributes:!0,attributeFilter:["style"]});var n=new MutationObserver(function(e){e.forEach(function(e){v.Events.publish(T.default.EVENTS.LAYOUTCHANGED,"Document")})});e.each(function(e,t){n.observe(t,{attributes:!0,attributeFilter:["style"]})}),(0,g.default)(document).ready(function(){_.Log.info("================DOCUMENT READY=================  scrollTop = "+C.UtilFunctions.getRootScrollingObject().scrollTop()),p._setDesktopSelectionColors(),C.UtilFunctions.setScrollbarWidth(),p._handleDocumentReady(),AdbeDx.document.platform.checkTest()}),this._initialized=!0}},{key:"_setupInitialInteractionEvent",value:function(){function t(e){n._isFirstOutlineInteractionDone=AdbeDx.outline.checkForFirstOutlineInteraction((0,g.default)(e.target)),n._isFirstUserInteractionDone||(n._isFirstUserInteractionDone=!0,S.Platform.firstUserInteraction()),n._isFirstOutlineInteractionDone&&n._isFirstUserInteractionDone&&a.forEach(function(e){window.removeEventListener(e,t,!0)})}var n=this,a=["click","dblclick","mousedown","wheel","DOMMouseScroll","mousewheel","keyup","keydown","touchstart","touchmove","touchend"];a.forEach(function(e){window.addEventListener(e,t,!0)})}},{key:"_createDocumentInterface",value:function(){var n=this;window.AdbeDx=window.AdbeDx||{},window.AdbeDx.document={previousState:function(e){n._previousState(e)},conversionIncomplete:function(){return n._conversionIncomplete()},enablePinchAndZoom:function(e){return C.UtilFunctions.enablePinchAndZoom(e)},enableScrollMemory:function(e){return n._enableScrollMemory(e)},getConstants:function(){return T.default},getVersion:function(){return s.Manifest.version},getLoadSequence:function(){for(var e=0,t=0;t<n._loadSequence.length;t++)e+=n._loadSequence[t].count;return{sequence:n._loadSequence,numElements:e}},wakeUp:function(){n.info("*** ENTERING LIQUID MODE"),n.info("sanity maintenance would be performed here.")},log:{getLogs:function(){return _.Log.getMessages()},isDebug:function(){return _.Log._isDebug}},lastPosition:function(){return C.UtilFunctions.getLastTopElementPosition()},scrollToPositionBasedOnElement:function(e){n.log("in AdbeDocument interface about to call scrollToPositionBasedOnElement, p = "),n.dir(e),C.UtilFunctions.scrollToPositionBasedOnElement(e),n.log("in AdbeDocument interface DONE wit to call scrollToPositionBasedOnElement")},scrollToLastPosition:function(){return C.UtilFunctions.scrollToPositionBasedOnElement(C.UtilFunctions.getLastTopElementPosition())},platform:{getPlatform:function(){return S.Platform.platform},callDXready:function(){return S.Platform.DXready()},callDocumentReady:function(){return S.Platform.postDocumentReady()},disableScroll:function(){return S.Platform.disableScroll()},enableScroll:function(){return S.Platform.enableScroll()},externalLinkClicked:function(e,t){return S.Platform.externalLinkClicked(e,t)},isDCWebIOS:function(){return S.Platform.isDCWebIOS},isDesktop:function(){return S.Platform.isDesktop},isMobile:function(){return S.Platform.isMobile},isStandalone:function(){return S.Platform.isStandalone},isDebug:function(){return S.Platform.isDebug},isTest:function(){return S.Platform.isTestMode},setTest:function(e){S.Platform.isTestMode=e},checkTest:function(){S.Platform.isTestMode=S.Platform.isTestMode},getPlatformName:function(){return S.Platform.platformName},getUrlParameters:function(){return S.Platform.urlParameters}},hidePages:function(){v.Events.publish(T.default.EVENTS.PAGES,!1)},showPages:function(){v.Events.publish(T.default.EVENTS.PAGES,!0)},validator:{isDocumentValid:function(){return r.Validator.isDocumentValid},modules:function(){return r.Validator.approvedModules},moduleNames:function(){return r.Validator.moduleNames},isDebug:function(){return r.Validator.isDebug}},manifest:{modules:function(){return s.Manifest.modules}},descendants:function(){return n._descendants},addDescendants:function(e,t){return n._addDescendants(e,t)},setDebug:function(e){return n._setDebugState(e)},showGrid:function(e){return n._setGridState(e)},setDebugScroll:function(e){return n._setDebugScrollState(e)},showAnalytics:function(e){return v.Events.publish(T.default.EVENTS.SHOWANALYTICS,e)}},window.AdbeDx.analytics=window.AdbeDx.analytics||{getFeatures:function(){return JSON.stringify(l.Analytics.features,null,2)},getPages:function(){return l.Analytics.getPages().getPages()},getPagesVisible:function(){return l.Analytics.getPages().getPagesVisible()},getUnknownFeatures:function(){return JSON.stringify(l.Analytics.unknownFeatures,null,2)}}}},{key:"_imgIsFallbackTable",value:function(e){return!!(e.hasClass(T.default.DOCUMENT.FALLBACKMULTIPAGECOMPLEXTABLE)||e.hasClass(T.default.DOCUMENT.FALLBACKREGIONCOMPLEXTABLE)||e.hasClass(T.default.DOCUMENT.FALLBACKREGIONFORMFIELD)||e.hasClass(T.default.DOCUMENT.FALLBACKPAGEFORMFIELD)||e.hasClass(T.default.DOCUMENT.LEGACY.FALLBACKCOMPLEXTABLE)||e.hasClass(T.default.DOCUMENT.LEGACY.FALLBACKCOMPLEXREGION)||e.hasClass(T.default.DOCUMENT.LEGACY.FALLBACKFORMFIELD))}},{key:"_setDebugState",value:function(e){v.Events.publish(T.default.EVENTS.DEBUG,e)}},{key:"_setGridState",value:function(e){v.Events.publish(T.default.EVENTS.GRID,e)}},{key:"_setDebugScrollState",value:function(e){this._isDebugScroll=e}},{key:"_enableScrollMemory",value:function(e){this._scrollMemoryEnabled=e}},{key:"_addMetaTag",value:function(e,t,n){var a=document.createElement("meta");n?a.httpEquiv=e:a.name=e,a.content=t,document.getElementsByTagName("head")[0].appendChild(a)}},{key:"_handleDocumentReady",value:function(){var n=this;for(_.Log.info("Document._handleDocumentReady()"),_.Log.info("document height "+(0,g.default)(document).height()),_.Log.handleDocumentReady(),this._docObserver.disconnect();0<this._unloadedSectionQueue.length;)this._handleSectionLoaded(!0);v.Events.publish(T.default.EVENTS.DOCUMENTLOADINGEND),this._$win.on("resize",function(t){n._resizeTimer&&clearTimeout(n._resizeTimer),n._resizeTimer=setTimeout(function(){var e=C.UtilFunctions.getWindowWidth();e!==n._lastKnownWidth&&(n._lastKnownWidth=e,n._resize(t))},200)}),this._$win.on("orientationchange",function(){n._isDebug&&n.warn("ORIENTATION CHANGE"),n.log("about to restore snapshot position orientationchange via timer");var e=C.UtilFunctions.getLastTopElementPosition();setTimeout(function(){C.UtilFunctions.scrollToPositionBasedOnElement(e)},200)}),v.Events.subscribe(T.default.EVENTS.ENABLERESIZE,function(){n._$win.resize()}),_.Log.info("calling Validator.handleDocumentReady scrollTop = "+C.UtilFunctions.getRootScrollingObject().scrollTop()),r.Validator.handleDocumentReady(),_.Log.info("calling Analytics.init"),l.Analytics.init(),this._checkResize(),_.Log.info("end of _handleDocumentReady, scrollTop = "+C.UtilFunctions.getRootScrollingObject().scrollTop())}},{key:"_handleSectionLoaded",value:function(){var e=this._unloadedSectionQueue.shift();if(e){if(e.hasClass("dx-section-loaded"))return void _.Log.info("Section already loaded. ID = "+e.attr("id"));O.DomTagger.tagSection(e),e.addClass("dx-section-loaded"),this._sectionsLoaded++}}},{key:"_initializeUtilModules",value:function(){_.Log.init(),C.UtilFunctions.init(),r.Validator.init(),u.Localization.init();var e=window.scrollY;O.DomTagger.init(),window.scrollTo(0,e),d.DomSelector.init(),this._checkResize()}},{key:"_handleSectionedDocumentReady",value:function(){this._firstSectionLoaded?this._handleSectionLoaded():this._firstSectionLoaded=!0}},{key:"_handleScroll",value:function(){var e=this;if(this._isDebugScroll){var t=C.UtilFunctions.getRootScrollingObject();this.log("in document _handleScroll, rootScroll = "),this.dir(t.get(0));var n=t.scrollTop();this.log("scrollTop = ",n)}this._scrollTimer&&clearTimeout(this._scrollTimer),this._scrollTimer=setTimeout(function(){clearTimeout(e._scrollTimer),v.Events.publish(T.default.EVENTS.VIEWPORTSCROLLED),e.log("in AdbeDocument._handleScroll timer, aboue to call _snapshotPosition"),e._snapshotPosition(),e.log("AdbeDocument._handleScroll timer done")},200),this.log("AdbeDocument._handleScroll done")}},{key:"_snapshotPosition",value:function(){if(this.log("in _snapshotPosition"),this._scrollMemoryEnabled){this.log("scrollMemoryEnabled");var e=C.UtilFunctions.returnTopElementPosition();if(this.log("In _snapshotPosition, position returned from returnTopElementPosition = "),this.dir(e),this._isDebug&&e&&e.el){var t=(0,g.default)(e.el);if(t){var n=C.UtilFunctions.getPrevTopElementPosition();if(n&&n.el){var a=(0,g.default)(n.el);a&&a.css("background-color","")}t.css("background-color","yellow")}}if(e&&e.el){var i=e.el.getAttribute("id"),o=e.el.tagName;this.log("_snapshotPosition done, id = ",i,", tagName = [",o,"], lastPosition = "),this.dir(C.UtilFunctions.getLastTopElementPosition())}else this.log("in snapshotPosition, COULD NOT SNAPSHOT.  Not changing old snapshot")}else this.log("scrollMemory NOT ENABLED")}},{key:"_setUpEvents",value:function(){var t=this;v.Events.subscribe(T.default.EVENTS.LAYOUTCHANGED,function(){t._handleScroll()}),v.Events.subscribe(T.default.EVENTS.NAVIGATIONSHOWN,function(){t._isNavigationShown=!0}),v.Events.subscribe(T.default.EVENTS.NAVIGATIONHIDDEN,function(){t._isNavigationShown=!1}),v.Events.subscribe(T.default.EVENTS.LIGHTBOXENTER,function(){t._isLightBox=!0}),v.Events.subscribe(T.default.EVENTS.LIGHTBOXEXIT,function(){t._isLightBox=!1}),this.log("setting up navsync subscribe"),v.Events.subscribe(T.default.EVENTS.NAVSYNC,function(e){t.log("received Constants.EVENTS.NAVSYNC "+e.elementId+" "+e.offset),t._elementIDToScrollToOnSync=e.elementId,t._elementOffsetToScrollToOnSync=e.offset}),v.Events.subscribe(T.default.EVENTS.DEBUG,function(e){(t._isDebug=e)||t._lastAdbeCenterObjPosition&&t._lastAdbeCenterObjPosition.$element.css("background-color","")})}},{key:"log",get:function(){return this._isDebug?window.console.log:function(){}}},{key:"trace",get:function(){return this._isDebug?window.console.trace:function(){}}},{key:"dir",get:function(){return this._isDebug?window.console.dir:function(){}}},{key:"viewportSize",get:function(){var e=T.default.VIEWPORTS.EXTRA_LARGE,t=C.UtilFunctions.getWindowWidth();return t<T.default.VIEWPORTS.MEDIUM_BOUNDARY?e=T.default.VIEWPORTS.SMALL:t<T.default.VIEWPORTS.LARGE_BOUNDARY?e=T.default.VIEWPORTS.MEDIUM:t<T.default.VIEWPORTS.EXTRA_LARGE_BOUNDARY&&(e=T.default.VIEWPORTS.LARGE),e}}]),E);function E(){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),this._initialized=!1,this._unloadedSectionQueue=[],this._firstSectionLoaded=!1,this._resizeTimer=null,this._viewportSize="XS",this._docObserver=null,this._lastKnownWidth=0,this._scrollTimer=null,this._$win=(0,g.default)(window),this._isNavigationShown=!1,this._isLightBox=!1,this._isUniformSizing=void 0,this._baselineFontSize=0,this._elementIDToScrollToOnSync=void 0,this._elementOffsetToScrollToOnSync=null,this._isDebug=!1,this._isDebugScroll=!1,this._descendants={},this._haveReceivedFirstFontSizeEvent=!1,this._desktopScrollObject=null,this._scrollMemoryEnabled=!0,this._loadSequence=[],this._isFirstOutlineInteractionDone=!1,this._isFirstUserInteractionDone=!1,this._origin=(new Date).getTime(),this._h1sArray=[],this._previousNode=null,(this._areThereAlreadySection=!1,g.default)(window).scroll(function(){a._isDebugScroll&&a.log("$(window).scroll()"),AdbeDx.navSync.setPreventNextNavSync(!0)}),this._cosmetics="background: #F27; color: white; display: block;font-weight:bold; line-height: 25px;border-left:4px solid #422; border-right:4px solid #422",v.Events.filter(T.default.EVENTS.LAYOUTCHANGED,50),v.Events.filter(T.default.EVENTS.FONTRESIZED,50),this._queueProxy=new Proxy(this._unloadedSectionQueue,{apply:function(e,t,n){return t[e].apply(a,n)},set:function(e,t,n){return"length"===t||(e[t]=n,a._handleSectionedDocumentReady()),!0}}),(0,g.default)(window).on("load",function(){S.Platform.documentLoaded(),v.Events.publish(T.default.EVENTS.DOCUMENTLOADED);var e=a._h1sArray.length-1;a._createSection(e,"dx-processed"),v.Events.publish(T.default.EVENTS.HEADINGONELOADED,a._previousNode)})}window.$=g.default,(new f).init()},function(e,t,n){"use strict";var a=n(17),i=n(12),o=n(19),r=n(38),s=o();a(s,{getPolyfill:o,implementation:i,shim:r}),e.exports=s},function(e,t,n){"use strict";var a=Array.prototype.slice,i=n(18),o=Object.keys,r=o?function(e){return o(e)}:n(28),s=Object.keys;r.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(a.call(e)):s(e)}):Object.keys=r;return Object.keys||r},e.exports=r},function(e,t,n){"use strict";var a;if(!Object.keys){var f=Object.prototype.hasOwnProperty,E=Object.prototype.toString,h=n(18),i=Object.prototype.propertyIsEnumerable,A=!i.call({toString:null},"toString"),p=i.call(function(){},"prototype"),g=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],T=function(e){var t=e.constructor;return t&&t.prototype===e},o={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},v=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!o["$"+e]&&f.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{T(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();a=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===E.call(e),a=h(e),i=t&&"[object String]"===E.call(e),o=[];if(!t&&!n&&!a)throw new TypeError("Object.keys called on a non-object");var r=p&&n;if(i&&0<e.length&&!f.call(e,0))for(var s=0;s<e.length;++s)o.push(String(s));if(a&&0<e.length)for(var l=0;l<e.length;++l)o.push(String(l));else for(var u in e)r&&"prototype"===u||!f.call(e,u)||o.push(String(u));if(A)for(var d=function(e){if("undefined"==typeof window||!v)return T(e);try{return T(e)}catch(e){return!1}}(e),c=0;c<g.length;++c)d&&"constructor"===g[c]||!f.call(e,g[c])||o.push(g[c]);return o}}e.exports=a},,,,,,,,,,function(e,t,n){"use strict";var a=n(19),i=n(17);e.exports=function(){var e=a();return i(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a={DX:{LAYOUTCONTAINER:"dx-layout-container",LAYOUTMAINCONTENT:"dx-layout-main-content",LAYOUTDEBUGCLASS:"dx-layout-container-debug",DOCUMENTWRAPPERCLASS:"dx-document",DONOTRESIZECLASS:"dx-do-not-resize",INELIGIBLESECTIONCLASS:"dx-ineligible-section",NOTALINK:"dx-not-a-link",SCROLLINGWRAPPERCLASS:"dx-scrolling-wrapper",HIDDEN:"dx-hidden",ACTIVE:"dx-active",ENDCONTENTSEPARATOR:"dx-doc-end-separator",ENDCONTENTCONTAINERCLASS:"dx-doc-end-content-container",ENDCONTENTCLASS:"dx-doc-end-content",ENDCONTENTIMAGECLASS:"dx-doc-end-img",ENDCONTENTHEADINGCLASS:"dx-doc-end-heading",ENDCONTENTSUBHEADINGCLASS:"dx-doc-end-subheading",ENDCONTENTBUTTONCLASS:"dx-doc-end-button",PROCESSED:"dx-processed",COLLAPSEDHEADINGCLASS:"icon-collapsed",COLLAPSIBLEHEADINGWRAPPER:"dx-collapsible-heading-wrapper",COLLAPSETRIGGERWRAPPER:"dx-collapse-trigger-wrapper",EMPTYHEADINGCLASS:"dx-empty-heading",EXPANDEDHEADINGCLASS:"icon-expanded",HEADINGCLASS:"dx-heading",HEADINGSEPARATORCLASS:"dx-heading-separator",HEADINGTEXTCLASS:"dx-heading-text",HIDDENCOLLAPSEDHEADINGCLASS:"hidden-collapsed",HIDDENEXPANDEDHEADINGCLASS:"hidden-expanded",NOACTIONHEADINGCLASS:"dx-no-action-heading",SUBHEADINGCLASS:"dx-sub-heading",OUTLINE:"dx-outline",OUTLINE_HEADING:"dx-outline-heading",OUTLINE_HEADING_ACTIVE:"dx-outline-heading.active",OUTLINE_SUBHEADING:"dx-outline-subheading",OUTLINE_SUBHEADING_ACTIVE:"dx-outline-subheading.active",OUTLINE_HEADING_BAR:"dx-outline-bar",OUTLINE_HEADING_BAR_TOGGLE_BUTTON:"dx-outline-bar-toggle-button",OUTLINE_HEADING_BAR_HEADING_TEXT:"dx-outline-bar-heading-text",OUTLINE_VISIBLE:"dx-outline-is-visible",OUTLINE_HIDDEN:"dx-outline-is-hidden",SECTIONCLASS:"dx-section",LIGHTBOXCONTAINER:"dx-lightbox-container",LIGHTBOXCONTENT:"dx-lightbox-content",LIGHTBOXIMAGE:"dx-lightbox-image",LIGHTBOXPORTRAITMODE:"dx-lightbox-image-potrait-mode",ABSOLUTECOMMENTCLASS:"dx-absolute-comment",CARETCOMMENTCLASS:"dx-caret-comment",COMMENTCLASS:"dx-comment",COMMENTCONTAINEROPEN:"dx-container-open",COMMENTDONTCLOSE:"dx-dont-close-container",COMMENTPREVIEWBUTTONCLASS:"dx-comment-preview-button",COMMENTREPLIESCLASS:"dx-comment-replies",CONTEXTMENUOPTION:"dx-comment-option",DRAWINGCOMMENTCLASS:"dx-drawing-comment",FLOATINGSTICKYCLASS:"dx-floating-sticky-note",FREETEXTCLASS:"dx-free-text-comment",GLYPHCOMMENTWRAPPERCLASS:"dx-glyph-comment-wrapper",GLYPHCOMMENTWRAPPERIDPREFIX:"glyphWrapper_",HIDDENCOMMENTCLASS:"dx-comment-hidden",HIGHLIGHTCLASS:"dx-comment-highlight",STAMPCOMMENTCLASS:"dx-stamp-comment",STICKYNOTECLASS:"dx-sticky-note",STICKYNOTEPLACEHOLDERCLASS:"dx-sticky-placeholder",STRIKETHROUGHCLASS:"dx-comment-strikethrough",UNANCHOREDCOMMENTCONTAINERCLASS:"dx-unanchored-comment-container",UNANCHOREDCOMMENTICONCLASS:"dx-unanchored-comment-icon",UNANCHOREDCOMMENTICONCONTAINERCLASS:"dx-unanchored-comment-icon-container",UNANCHOREDCOMMENTLISTCLASS:"dx-unanchored-comment-list",UNANCHOREDCOMMENTNUMBERCLASS:"dx-unanchored-comment-number",UNDERLINECLASS:"dx-comment-underline",UNSELECTABLECLASS:"dx-unselectable",FINDRESULTCLASS:"dx-find-result",FINDRESULTSSUMMARYCLASS:"dx-find-results-summary",HEADINGCOLLAPSETRIGGER:"dx-heading-collapse-trigger",HEADINGCONTAINERCLASS:"dx-heading-container",NAVIGATIONCLASS:"navigation",NAVIGATIONDOCUMENTSUMMARY:"dx-document-summary",NAVIGATIONCOLLAPSECLASS:"dx-navigation-collapse",NAVIGATIONOVERLAYED:"dx-nav-overlayed",SECTIONSEPARATORCLASS:"dx-section-separator",SELECTEDCLASS:"dx-selected",NOTEARROWCLASS:"dx-note-arrow",NOTECLOSEBUTTONCLASS:"dx-note-close-button",NOTECONTAINERCLASS:"dx-note-container",NOTECONTENTCLASS:"dx-note-content",TABLECONTENTWRAPPERCLASS:"dx-table-content-wrapper",TABLEHEADWRAPPERCLASS:"dx-table-head-wrapper",TABLEWRAPPERCLASS:"dx-table-wrapper",FALLBACKTABLEWRAPPERCLASS:"dx-fb-wrapper",FALLBACKTABLE:"dx-fb-table",FALLBACKLIGHTBOX:"dx-fb-lightbox",FALLBACKCLASS:"dx-fallback",FALLBACKFULLPAGECLASS:"dx-fb-fullpage",FALLBACKFULLPAGEIMAGECLASS:"dx-fb-fullpage-image",PAGESELECTEDCLASS:"dx-page-selected",SPINNERCLASS:"dx-spinner",SPINNERVISIBLECLASS:"dx-spinner-visible",SUCCESSCLASS:"dx-success",SUCCESSVISIBLECLASS:"dx-success-visible",UNDOCLASS:"dx-undo",DIALOGSHIMCLASS:"dx-dialog-shim",DIALOGCLASS:"dx-dialog",DIALOGOPENCLASS:"dx-dialog-open",DIALOGTITLECLASS:"dx-dialog-title",DIALOGRULECLASS:"dx-dialog-rule",DIALOGDESCRIPTIONCLASS:"dx-dialog-description",DIALOGUIBUTTONBARCLASS:"dx-ui-button-bar",DIALOGUIBUTTONCLASS:"dx-ui-button",DIALOGUICANCELBUTTONCLASS:"dx-ui-cancel-button",DIALOGUICONFIRMBUTTONCLASS:"dx-ui-confirm-button",SELECTEDOPTIONCLASS:"dx-selected-option",FEEDBACKMENU:"dx-feedback-menu",FEEDBACKMENUITEM:"dx-feedback-menu-item",FEEDBACKMENUITEMFIXCONTENT:"dx-feedback-menu-item-fix-content",FEEDBACKMENUITEMSHAREFEEDBACK:"dx-feedback-menu-item-share-feedback",FEEDBACKMENUITEMTEXT:"dx-feedback-menu-item-text",FEEDBACKDIALOGRULECLASS:"dx-feedback-dialog-rule",LOADINGMOREDOCUMENTCONTAINER:"dx-doc-loading-more-container",LOADINGMOREDOCUMENTANIMATION:"dot-flashing",LOADINGMOREOUTLINECONTAINER:"dx-outline-loading-more-container",LOADINGMOREOUTLINEANIMATION:"dot-flashing"},SPECTRUM:{SPECTRUMQUIETBUTTON:"dx-spectrum-quiet-button"},DOCUMENT:{ADBEIDPREFIX:"ADBE_Obj_",ARTIFACTCLASS:"ADBE_E_Artifact",DOCUMENTCLASS:"ADBE_E_Document",ENDNOTECLASS:"ADBE_E_Endnote",ENDNOTEREF:"ADBE_CM_pdfm-endnoteRef",ENDNOTEREFERENCECLASS:"ADBE_Ref_Endnote",ENDNOTETEXTCLASS:"ADBE_CM_pdfm-endnoteText",FALLBACKPAGECOMPLEXPAGE:"ADBE_CM_fb-page-complexPage",FALLBACKREGIONCOMPLEXTABLE:"ADBE_CM_fb-region-complexTable",FALLBACKPAGEIMAGEONLY:"ADBE_CM_fb-page-imageOnly",FALLBACKPAGETITLEPAGE:"ADBE_CM_fb-page-titlePage",FALLBACKREGIONFORMFIELD:"ADBE_CM_fb-region-formField",FALLBACKPAGEFORMFIELD:"ADBE_CM_fb-page-formField",FALLBACKPAGEQRCODE:"ADBE_CM_fb-page-qrCode",FALLBACKPAGEBARCODE:"ADBE_CM_fb-page-barCode",FALLBACKPAGEREADINGORDER:"ADBE_CM_fb-page-readingOrder",FALLBACKMULTIPAGECOMPLEXTABLE:"ADBE_CM_fb-multiPage-complexTable",FALLBACKREGIONINLINEFORMULA:"ADBE_CM_fb-region-inlineFormula",FIGURECLASS:"ADBE_E_Figure",FOOTERCLASS:"ADBE_E_Footer",FOOTNOTECLASS:"ADBE_E_Footnote",FOOTNOTEREF:"ADBE_CM_pdfm-footnoteRef",FOOTNOTEREFERENCECLASS:"ADBE_Ref_Footnote",FOOTNOTETEXTCLASS:"ADBE_CM_pdfm-footnoteText",HEADERCLASS:"ADBE_E_Header",HEADINGCLASS:"ADBE_E_H1",LABELCLASS:"ADBE_E_Lbl",LBODYCLASS:"ADBE_E_LBODY",REFERENCECLASS:"ADBE_E_Reference",SECTIONCLASS:"ADBE_E_Sect",SUBHEADINGCLASS:"ADBE_E_H2",SUBTITLECLASS:"ADBE_E_Subtitle",TITLECLASS:"ADBE_E_Title",TOCCLASS:"ADBE_E_TOC",TOCINDEXCLASS:"ADBE_E_TOCI",TOPOFDOCUMENT:"ADBE_Obj_Root",WATERMARKCLASS:"ADBE_E_Watermark",LEGACY:{FALLBACKCOMPLEXTABLE:"ADBE_CM_fb-complex-table",FALLBACKCOMPLEXREGION:"ADBE_CM_fb-complex-region-pixel",FALLBACKFORMFIELD:"ADBE_CM_fb-form-field",FALLBACKCOMPLEXPAGE:"ADBE_CM_fb-complex-page",FALLBACKIMAGEONLY:"ADBE_CM_fb-imageOnly",FALLBACKCOMPLEXTITLEPAGE:"ADBE_CM_fb-complex-title-page",FALLBACKQR:"ADBE_CM_fb-form-field-qr",FALLBACKINLINEFORMULA:"ADBE_CM_fb-inline-formula"}},ANALYTICS:{INTERACTFRICTION:5e3,CONTENTACTION:"Operation:Document Experience:Content Action",PAGETRANSITION:"page-transition",PAGEACTION:"page-action",GLOBALACTION:"global-action",PAGENUMBER:"adb.event.context.dv.page_number",STARTTIME:"adb.event.context.dv.time_start",MANIFESTNAME:"adb.event.context.document_experience_name",MANIFESTVERSION:"adb.event.context.document_experience_number",VIEWPORT:"adb.event.context.document_viewport_size",REASON:"adb.context.dv.fallback_reason",GLOBALACTIONS:{BADUNICODE:"Workflow:Dynamic View:PUA impact on Outline",CLIPBOARDCOPY:"Operation:Document Experience:Global Actions:ClipboardCopy",NAVIGATIONINVOKEWHILEINFIND:"Operation:Document Experience:Global Actions:navigationInvokeWhileInFind",NAVIGATIONINVOKE:"Operation:Document Experience:Global Actions:navigationInvoke",OUTLINETOGGLE:"Operation:Document Experience:Global Actions:navigationViewClose",NAVIGATIONTAP:"Operation:Document Experience:Global Actions:navigationViewTap",NAVSYNC:"Workflow:Dynamic View:Nav sync",INCREASECONTENTSIZE:"Operation:Document Experience:Global Actions:increaseContentSize",DECREASECONTENTSIZE:"Operation:Document Experience:Global Actions:decreaseContentSize",HASALTTEXT:"Workflow:Dynamic View:Outline shown with PUA substitution",NAVEXISTS:"Workflow:Dynamic View:Outline shown normal",NAVNOTQUALIFIEDDXRULES:"Workflow:Dynamic View:Outline not shown DX rules"},OBJECTS:{TABLE:"adb.event.context.table_interactivity",WATERMARK:"adb.event.context.constantly_visible_watermarks",ZOOMABLEIMAGE:"adb.event.context.image_interactivity",TOC:"adb.event.context.table_of_contents",COLLAPSIBLEHEADING:"adb.event.context.collapsible_headings",FOOTNOTE:"adb.event.context.tap_footnote",ENDNOTE:"UNKNOWN",EOD:"Workflow:Dynamic View:Doc Complete Rendered",LINK:"adb.event.context.tap_link",NAVIGATION:"adb.event.context.improved_navigation",FALLBACKPAGECOMPLEXPAGE:"adb.event.context.dv.complex_full_page_fallback",FALLBACKCOMPLEXTABLE:"adb.event.context.dv.complex_table_fallback",FALLBACKPAGEIMAGEONLY:"adb.event.context.dv.page_imageOnly_fallback",FALLBACKPAGETITLEPAGE:"adb.event.context.dv.page_title_fallback",FALLBACKREGIONFORMFIELD:"adb.event.context.dv.suspicionator_fallbacks",FALLBACKPAGEFORMFIELD:"adb.event.context.dv.page_formField_fallback",FALLBACKPAGEQRCODE:"adb.event.context.dv.page_qrCode_fallback",FALLBACKPAGEBARCODE:"adb.event.context.dv.page_barCode_fallback",FALLBACKPAGEREADINGORDER:"adb.event.context.dv.page_readingOrder_fallback",FALLBACKMULTIPAGECOMPLEXTABLE:"adb.event.context.dv.multipage_complexTable_fallback",FALLBACKCOMPLEXREGIONPIXEL:"adb.event.context.dv.suspicionator_fallbacks",FALLBACKINLINEFORMULA:"adb.event.context.dv.region_inline_formula"},OBJECTACTIONS:{EXISTS:"Exists",INTERACTED:"Interacted",RENDERED:"Rendered"},PAGEACTIONS:{MFB_FIXNOW:"Operation:Document Experience:Page Actions:Manual fallback Fix Now",MFB_FAB:"Operation:Document Experience:Page Actions:Manual fallback FAB",MFB_SUCCESS:"Operation:Document Experience:Page Actions:Manual fallback Completed toast shown",MFB_UNDO:"Operation:Document Experience:Page Actions:Manual fallback Completed toast Undo",MFB_NOTELIGIBLE:"Operation:Document Experience:Page Actions:Manual fallback Ineligible",MFB_FAILED:"Operation:Document Experience:Page Actions:Manual fallback Failed",EXPANDHEADING:"Operation:Document Experience:Page Actions:Expand Heading",COLLAPSEHEADING:"Operation:Document Experience:Page Actions:Collapse Heading"},TRANSITIONS:{ENTER:"Operation:Document Experience:Page Transition:Page Enter",EXIT:"Operation:Document Experience:Page Transition:Page Exit"}},RNA:{FUNCTION_PROXY:4,MAP_PROXY:2,PRIMITIVE_PROXY:1,VECTOR_PROXY:3,ADD_EVENT:"addProperty",CHANGE_EVENT:"change",REMOVE_EVENT:"removeProperty",REPLACE_EVENT:"replaceProperty"},PLATFORMS:{IOS:1,ANDROID:2,MOBILE:3,WINDOWS:4,MACOS:8,DESKTOP:12,DCWEB:16,DXBROWSER:32,ALLWEB:48,ALL:63},COMMENT_TYPES:{CARET:"caret",DRAWING:"drawing",FREETEXT:"freetext",HIGHLIGHT:"highlight",SHAPE:"shape",STAMP:"stamp",STICKY:"sticky-note",STRIKETHROUGH:"strikethrough",UNDERLINE:"underline"},VIEWPORTS:{EXTRA_EXTRA_SMALL:"XXS",EXTRA_SMALL:"XS",SMALL:"S",MEDIUM:"M",LARGE:"L",EXTRA_LARGE:"XL",EXTRA_EXTRA_LARGE:"XXL",MEDIUM_BOUNDARY:768,LARGE_BOUNDARY:1024,EXTRA_LARGE_BOUNDARY:1366,EXTRA_EXTRA_LARGE_BOUNDARY:1920},MODULE_INIT_TYPE:{AT_START:1,PER_SECTION:2,AT_END:3,LAST:4},ELEMENTSIZES:{FINDOFFSET:85,HEADINGSIZE:70,OUTLINEHEIGHT:50,MAC_SCROLLBARWIDTH:4,WIN_SCROLLBARWIDTH:8},LOGCATEGORIES:{ERRORS:2,INFO:0,WARNINGS:1},LANGUAGES:{DEFAULT:"en-US",DEFAULT_SHORT:"en"},PHRASES:{BACK_TO_TOP:"BACK_TO_TOP",BEGINNING_OF_DOCUMENT:"BEGINNING_OF_DOCUMENT",CANCEL:"CANCEL",COMPLETED:"COMPLETED",CONTINUE:"CONTINUE",COPY_CHOICE:"COPY_CHOICE",DOCUMENT_COMPLETE:"DOCUMENT_COMPLETE",FIX_CONTENT:"FIX_CONTENT",FIX_IT_ACTION:"FIX_IT_ACTION",FIX_IT_FAILURE_TITLE:"FIX_IT_FAILURE_TITLE",FIX_IT_FAILURE_TIMEOUT:"FIX_IT_FAILURE_TIMEOUT",FIX_IT_FAILURE_LIST:"FIX_IT_FAILURE_LIST",FIX_IT_FAILURE_MIDDLE_NODE:"FIX_IT_FAILURE_MIDDLE_NODE",FIX_IT_FAILURE_START_NODE:"FIX_IT_FAILURE_START_NODE",FIX_IT_FAILURE_END_NODE:"FIX_IT_FAILURE_END_NODE",FIX_IT_TITLE:"FIX_IT_TITLE",GREAT_JOB:"GREAT_JOB",HIGHLIGHT_CHOICE:"HIGHLIGHT_CHOICE",NAVIG_PROMPT:"NAVIG_PROMPT",NOT_LOOKING_RIGHT:"NOT_LOOKING_RIGHT",OUTLINE:"OUTLINE",OVERVIEW_PROMPT:"OVERVIEW_PROMPT",SECTION:"SECTION",SECTIONS:"SECTIONS",PROVIDE_FEEDBACK:"PROVIDE_FEEDBACK",STRIKETHROUGH_CHOICE:"STRIKETHROUGH_CHOICE",TAP_TO_VIEW:"TAP_TO_VIEW",TAP_FIX_CONTENT:"TAP_FIX_CONTENT",TITLE_SECTION:"TITLE_SECTION",UNDERLINE_CHOICE:"UNDERLINE_CHOICE",UNDO:"UNDO"},SELECTOR_TYPE:{IMAGE:"OverImage",NON_TEXT:"OverNonTextArea",TEXT:"OverText"},SELECTORS:{RANGE_SELECTOR:"RangeSelector",POSITION_SELECTOR:"PositionSelector"},ACCESSIBILITY:{ARIABUTTON:"button",ARIACLICKABLELBL:"ARIACLICKABLELBL",ARIAENDNOTELBL:"ARIAENDNOTELBL",ARIAEXPANDED:"aria-expanded",ARIAFALSE:"false",ARIAFOOTNOTELBL:"ARIAFOOTNOTELBL",ARIAHIDDEN:"aria-hidden",ARIALABEL:"aria-label",ARIALABELWATERMARK:"watermark",ARIALINK:"link",ARIAMAIN:"main",ARIANAVIGATION:"navigation",ARIAROLE:"role",ARIATRUE:"true",TABINDEXATTR:"tabindex",TABINDEXVALUE0:"0",HIGHLIGHTARIALBL:"HIGHLIGHTARIALBL",STICKYARIALBL:"STICKYARIALBL",STRIKETHROUGHARIALBL:"STRIKETHROUGHARIALBL",UNDERLINEARIALBL:"UNDERLINEARIALBL",ARIACLOSEOUTLINELBL:"ARIACLOSEOUTLINELBL",ARIACLOSEPOPUPLBL:"ARIACLOSEPOPUPLBL",ARIAOPENOUTLINELBL:"ARIAOPENOUTLINELBL",ARIACOLLAPSENAVLBL:"ARIACOLLAPSENAVLBL",ARIATAPTOPREVIEWLBL:"ARIATAPTOPREVIEWLBL"},HIGHCONTRAST:{BLACKTEXTCLASS:"hc-black-text",COLORBALCK:"rgb(0,0,0)",COLORWHITE:"rgb(255,255,255)",NONBLACKTEXTCLASS:"hc-non-black-text",NONWHITEBGCOLORCLASS:"non-white-bgcolor",STYLETAGID:"high-contrast-css",TDTHSELECTORTEXT:"td, th",WHITEBGCOLORCLASS:"bg-color",WHITETEXTCLASS:"hc-white-text"},EASTEREGGS:{FALLBACKS:"ADBE_fallbacks",NIGHTMODE:"ADBE_night",VERSION:"ADBE_version",DEBUG:"ADBE_debug",ANALYTICS:"ADBE_analytics",PAGES:"ADBE_pages",GRID:"ADBE_grid"},EVENTS:{ABANDONNAVSYNC:"abandonNavSync",ANALYTICS:"analyticsEvent",CLOSECONTEXTMENU:"closeContextMenu",COLLAPSINGEXPANDINGHEADING:"collapsingExpandingHeading",COMMENTCREATIONENTER:"commentCreationEnter",COMMENTCREATIONEXIT:"commentCreationExit",DATALOADED:"dataLoaded",DISABLERESIZE:"disableResize",DOCUMENTLOADINGEND:"documentLoadingEnd",DOCUMENTLOADINGSTART:"documentLoadingStart",DOCUMENTLOADED:"documentLoaded",ENABLERESIZE:"enableResize",ENABLESELECTION:"enableSelection",ENDOFDOCADDED:"endOfDocAdded",ENDOFDOCSCROLLSTARTED:"endOfDocScrollStarted",ENDOFDOCSCROLLENDED:"endOfDocScrollEnded",FALLBACKSHIGHLIGHT:"fallbacksHighlight",FALLBACKSHIGHLIGHTED:"fallbacksHighlighted",FALLBACKTABLECLASSADDED:"fallbackTableClassAdded",FALLBACKTRIGGERED:"fallbackTriggered",FALLBACKUNDONE:"fallbackUndone",FONTRESIZED:"fontResized",HEADINGLOADED:"headingLoaded",HEADINGONELOADED:"h1Loaded",HIDELIGHTBOX:"hideLightBox",HIDEOUTLINE:"hideOutline",HIGHLIGHT:"highlight",IGNORESELECTION:"ignoreSelection",IMMERSIVE:"immersiveFlag",IMMERSIVEMODEENTER:"immersiveModeEnter",IMMERSIVEMODEEXIT:"immersiveModeExit",INTERACTEDONPAGE:"interactedOnPage",LAYOUTCHANGED:"layoutChanged",LIGHTBOXENTER:"lightboxEnter",LIGHTBOXEXIT:"lightboxExit",NAVIGATIONHIDDEN:"navigationHidden",NAVIGATIONSHOWN:"navigationShown",NAVSYNC:"navSync",NIGHTMODE:"nightMode",OUTLINELOADINGSTART:"outlineLoadingStart",PAGES:"pagesEvent",PAGEACTION:"pageAction",QUALIFYPAGE:"qualifyPage",RENDEREDONPAGE:"renderedOnPage",REPORTEXISTS:"reportExists",REPORTPAGEACTION:"reportPageAction",SELECTIONCHANGED:"selectionChanged",SHOWANALYTICS:"showAnalytics",STICKYNOTECREATIONENTER:"stickyNoteCreationEnter",STICKYNOTECREATIONEXIT:"stickyNoteCreationExit",STRIKETHROUGH:"strikethrough",UNDERLINE:"underline",UNIFORMSIZING:"uniformSizing",UNQUALIFYPAGE:"unqualifyPage",UPDATEPAGEBOUNDARIES:"updatePageBoundaries",VIEWPORTCHANGED:"viewportChanged",VIEWPORTSCROLLED:"viewportScrolled",WATERMARKLOADED:"watermarkLoaded",WINDOWRESIZED:"windowResized",STARTAUTOMATEDANALYTICSTESTS:"startAutomatedAnalyticsTests",DEBUG:"debugMode",GRID:"gridMode"},DOM_EVENTS:{DXLAYOUTINITIALIZED:"dxLayoutInitialized",TABLELOADED:"tableLoaded",FBTABLELOADED:"fbTableLoaded",FOOTNOTELOADED:"footnoteLoaded",TOCLOADED:"tocLoaded",IMAGEFULLYLOADED:"imageFullyLoaded"},PERSONALIZATION:{FONTSIZE:"font-size",LINEHEIGHT:"line-height",CHARSPACING:"letter-spacing",FONTFAMILY:"font-family",STYLERPICKS:"dx-styler-picks",ORIGINALSTYLE:"Original",STYLESHEET:"style-chooser-css"},METADATA:{BASELINEFONTSIZE:"adbe-baseline-font-size",FALLBACKDATA:"data-adbe-fallback"},IMMERSIVE:{ENABLED:"enabled",DISABLED:"disabled",STICKY:"sticky"},FALLBACK_STATE:{DISABLED:"disabled",ENABLED:"enabled",LOADING:"loading",UNLOADING:"unloading",INELIGIBLE:"ineligible"},PAGE_NUM:{PREVIOUSLY_TAGGED:-2,MULTIPLE_PAGES:-1},GESTURES:{TAP:"tap",TOUCHSTART:"touchstart",TOUCHEND:"touchend"},NAVIGATION:{NOTVISIBLE:-1,FALLENBACK:-2},HTML:{SPINNER:'\n      <div class="spectrum-CircleLoader spectrum-CircleLoader--indeterminate dx-spinner">\n        <div class="spectrum-CircleLoader-track"></div>\n        <div class="spectrum-CircleLoader-fills">\n          <div class="spectrum-CircleLoader-fillMask1">\n            <div class="spectrum-CircleLoader-fillSubMask1">\n              <div class="spectrum-CircleLoader-fill"></div>\n            </div>\n          </div>\n          <div class="spectrum-CircleLoader-fillMask2">\n            <div class="spectrum-CircleLoader-fillSubMask2">\n              <div class="spectrum-CircleLoader-fill"></div>\n            </div>\n          </div>\n        </div>\n      </div>\n    ',DEBUGGRID:"\n    <div class='dx-layout-container-debug dx-hidden'>\n      <div class='dx-layout-row-debug row dx-debug-grid'>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>1</div></div>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>2</div></div>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>3</div></div>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>4</div></div>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>5</div></div>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>6</div></div>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>7</div></div>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>8</div></div>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>9</div></div>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>10</div></div>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>11</div></div>\n        <div class='dx-layout-col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'><div class='label'>12</div></div>\n      </div>\n    </div>"},SPECIALBEHAVIORS:{MFB_DELAY_TO_FAB:1,MFB_JUMP_TO_FAB:2},STYLESHEETS:{DOCUMENT:"styleSheetDocument",MANIFEST:"styleSheetManifest",VENDOR:"styleSheetVendor"}};function o(n){var e=Object.keys(n),a={};return e&&e.forEach(function(e){var t=n[e];"DOT"===e||("object"===(void 0===t?"undefined":i(t))?a[e]=o(t):a[e]="."+t)}),a}a.DOCUMENT.DOT=o(a.DOCUMENT),a.DX.DOT=o(a.DX);var r=a;try{}catch(e){console.log("can not find ADBE_DX_DEBUG_LOG")}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=void 0;var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=M(n(1)),r=M(n(41)),s=M(n(63)),l=M(n(68)),u=M(n(69)),d=M(n(70)),c=M(n(71)),f=M(n(73)),E=M(n(74)),h=M(n(75)),A=M(n(76)),p=M(n(77)),g=M(n(78)),T=M(n(79)),v=M(n(80)),_=M(n(81)),S=M(n(82)),C=M(n(83)),O=M(n(84)),m=M(n(85)),I=M(n(86)),N=M(n(87)),L=M(n(88)),b=M(n(89)),y=M(n(0)),D=n(2),R=n(11),P=n(3),k=n(5);function M(e){return e&&e.__esModule?e:{default:e}}var w=(a(x,[{key:"init",value:function(){var t=this;D.Events.subscribe(y.default.EVENTS.DEBUG,function(e){t._isDebug=e}),this._createModules(),this._initializeModules(),this._createInterface(),k.Platform.DXready(),window.AdbeDx.publishTranslationErrors=function(e){return t._publishTranslationErrors(e)}}},{key:"handleDocumentReady",value:function(){P.Log.info("Validator.documentReady document height "+(0,o.default)(document).height()),P.Log.info("Validator.post init document height "+(0,o.default)(document).height()),P.Log.info("post loadModules "+(0,o.default)(document).height()),this._modules.forEach(function(e){e.handleDocumentReady()}),(0,o.default)("body link").appendTo("head"),k.Platform.postDocumentReady()}},{key:"_createInterface",value:function(){var a=this;this._modules.forEach(function(e,t){var n=e.getInterface();0<Object.keys(n).length&&(a._interface[e.moduleName]=n)}),window.AdbeDx=this._interface}},{key:"_createModules",value:function(){var e=new v.default,t=[new c.default,new r.default,new s.default,new l.default,new d.default,new E.default,new h.default,new A.default,new p.default,new T.default,e,new f.default,new _.default,new S.default,new C.default,new O.default,new m.default,new I.default,new N.default,new L.default,new b.default,new u.default,new g.default];this._modules=[];for(var n=0;n<t.length;n++){var a=t[n];k.Platform.isPlatform(a.supportedPlatforms)&&this._modules.push(a)}var i=R.Manifest.modules;0<i.length&&(this._modules=t.filter(function(e){return i.includes(e.moduleName)}))}},{key:"_initializeModules",value:function(){var e=this._modules.filter(function(e){return!e.isInitialized}),a=new Date,i=a.getTime();e.forEach(function(e){e.init();var t=a.getTime(),n=t-i;i=t,P.Log.info(e._moduleName+".init() "+n+" "+(0,o.default)(window).scrollTop())})}},{key:"_publishTranslationErrors",value:function(e){0!==e.length&&e.forEach(function(e){P.Log.addMessage("translation",y.default.LOGCATEGORIES.ERRORS,e)})}},{key:"isDocumentValid",get:function(){return this._isEligible}},{key:"approvedModules",get:function(){return this._modules}},{key:"moduleNames",get:function(){var t=[];return this._modules.forEach(function(e){t.push(e.moduleName)}),t}},{key:"isDebug",get:function(){return this._isDebug}}]),x);function x(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,x),console.info("*** Validator constructor ***"),window.AdbeDx=window.AdbeDx||{},this._interface=window.AdbeDx,this._modules=[],this._isEligible=!1,this._isDebug=!1}t.Validator=new w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var s=f(n(1)),o=f(n(4)),l=f(n(0)),u=n(2),r=n(7),d=n(5),c=n(6);function f(e){return e&&e.__esModule?e:{default:e}}var E=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(h,o.default),a(h,[{key:"getInterface",value:function(){var t=this;return{toggleHeadingCollapse:function(e){return t._toggleHeadingCollapse(e)}}}},{key:"_init",value:function(){var i=this;u.Events.subscribe(l.default.EVENTS.FALLBACKTRIGGERED,function(e){var t=(0,s.default)("."+l.default.DOCUMENT.DOCUMENTCLASS+" *[data-page="+e+"]"),n=t.first().parents("section").filter(function(e,t){return(0,s.default)(t).parent().hasClass(l.default.DOCUMENT.DOCUMENTCLASS)}),a=t.last().parents("section").filter(function(e,t){return(0,s.default)(t).parent().hasClass(l.default.DOCUMENT.DOCUMENTCLASS)});n.hasClass(l.default.DX.COLLAPSEDHEADINGCLASS)&&i._toggleHeadingCollapse({delegateTarget:n},!0),a.hasClass(l.default.DX.COLLAPSEDHEADINGCLASS)&&i._toggleHeadingCollapse({delegateTarget:a},!0)}),u.Events.subscribe(l.default.EVENTS.HEADINGONELOADED,function(e){i._headingTreatment(e)})}},{key:"_headingTreatment",value:function(t){var n=this;if(!t.hasClass("."+l.default.DX.EMPTYHEADINGCLASS)||!t.hasClass("."+l.default.DX.HEADINGCLASS)){if(1===t.data("initialized"))return;if(t.hasClass(l.default.DOCUMENT.TITLECLASS)||t.hasClass(l.default.DOCUMENT.SUBTITLECLASS))return;t.wrap((0,s.default)("<div class = '"+l.default.DX.COLLAPSIBLEHEADINGWRAPPER+" row no-gutters'></div>"));var e=t.parent("."+l.default.DX.COLLAPSIBLEHEADINGWRAPPER);if(t.hasClass(l.default.DX.HEADINGCLASS)&&(0,s.default)("<hr class='"+l.default.DX.HEADINGSEPARATORCLASS+" col-12' role='presentation'/>").insertBefore(t),!t.hasClass(""+l.default.DX.EMPTYHEADINGCLASS)&&!t.hasClass(l.default.DX.EXPANDEDHEADINGCLASS)){t.addClass("col-9 col-md-10");var a=(0,s.default)("<div class='"+l.default.DX.COLLAPSETRIGGERWRAPPER+" offset-1 col-2 col-md-1'>\n            <div class=\""+l.default.DX.HEADINGCOLLAPSETRIGGER+" "+l.default.SPECTRUM.SPECTRUMQUIETBUTTON+' "></div>\n         </div>');e.append(a),t.hasClass(l.default.DX.HEADINGCLASS)&&t.addClass(l.default.DX.EXPANDEDHEADINGCLASS)}t.attr(l.default.ACCESSIBILITY.TABINDEXATTR,l.default.ACCESSIBILITY.TABINDEXVALUE0)}var i=t.next("."+l.default.DX.COLLAPSETRIGGERWRAPPER),o=r.Localization.translate(l.default.ACCESSIBILITY.ARIACLICKABLELBL);t.attr(l.default.ACCESSIBILITY.ARIAEXPANDED,l.default.ACCESSIBILITY.ARIATRUE),t.find("."+l.default.DX.HEADINGCOLLAPSETRIGGER).attr(l.default.ACCESSIBILITY.ARIALABEL,o.phrase),t.off().on("tap.collapsible",function(e){n._toggleHeadingCollapse(t)}),i.off("tap.collapsible").on("tap.collapsible",function(e){n._toggleHeadingCollapse(t)}),t.on("keydown",function(e){13===e.keyCode&&(n._toggleHeadingCollapse(e),e.preventDefault(),e.stopPropagation())}),t.data("initialized",1)}},{key:"_handleDocumentReady",value:function(){var e=(0,s.default)("."+l.default.DX.HEADINGCLASS);e.length<2&&(e.removeClass(l.default.DX.EXPANDEDHEADINGCLASS).removeClass(l.default.DX.COLLAPSEDHEADINGCLASS).addClass(l.default.DX.NOACTIONHEADINGCLASS),e.removeAttr(l.default.ACCESSIBILITY.TABINDEXATTR),(0,s.default)("."+l.default.DX.HEADINGSEPARATORCLASS).remove())}},{key:"_isHidden",value:function(e){return e.hasClass(l.default.DX.HIDDENCOLLAPSEDHEADINGCLASS)||e.hasClass(l.default.DX.HIDDENEXPANDEDHEADINGCLASS)}},{key:"_setUpEvents",value:function(e){var o=this;e.not("."+l.default.DX.EMPTYHEADINGCLASS).each(function(e,t){var n=(0,s.default)(t),a=n.next("."+l.default.DX.COLLAPSETRIGGERWRAPPER),i=r.Localization.translate(l.default.ACCESSIBILITY.ARIACLICKABLELBL);n.attr(l.default.ACCESSIBILITY.ARIAEXPANDED,l.default.ACCESSIBILITY.ARIATRUE),n.find("."+l.default.DX.HEADINGCOLLAPSETRIGGER).attr(l.default.ACCESSIBILITY.ARIALABEL,i.phrase),n.off().on("tap.collapsible",function(e){o._toggleHeadingCollapse(n)}),a.off("tap.collapsible").on("tap.collapsible",function(e){o._toggleHeadingCollapse(n)}),n.on("keydown",function(e){13===e.keyCode&&(o._toggleHeadingCollapse(e),e.preventDefault(),e.stopPropagation())}),n.data("initialized",1)})}},{key:"_toggleHeadingCollapse",value:function(e,t){var n=this,a=(0,s.default)(e);if(!a.hasClass(l.default.DX.NOACTIONHEADINGCLASS)&&!(d.Platform.isPlatform(l.default.PLATFORMS.DESKTOP)&&void 0!==AdbeDx.Dktcommenting&&null!=AdbeDx.Dktcommenting.getActiveTool()||(void 0!==e.clientX&&this._interacted(l.default.ANALYTICS.OBJECTS.COLLAPSIBLEHEADING,a),this._isHidden(a)))){var i=a.parent("."+l.default.DX.COLLAPSIBLEHEADINGWRAPPER).nextUntil([]),o=i.length,r=0;u.Events.publish(l.default.EVENTS.DISABLERSIZE),u.Events.publish(l.default.EVENTS.COLLAPSINGEXPANDINGHEADING),a.hasClass(l.default.DX.EXPANDEDHEADINGCLASS)?(a.addClass(l.default.DX.COLLAPSEDHEADINGCLASS).removeClass(l.default.DX.EXPANDEDHEADINGCLASS),this._pageAction(l.default.ANALYTICS.PAGEACTIONS.COLLAPSEHEADING,a),i.find("\n          ."+l.default.DOCUMENT.ENDNOTEREF+",\n          ."+l.default.DOCUMENT.ENDNOTEREFERENCECLASS+",\n          ."+l.default.DOCUMENT.FOOTNOTEREF+",\n          ."+l.default.DOCUMENT.FOOTNOTEREFERENCECLASS+"\n        ").toArray().map(function(e){return(0,s.default)(e).data("ref")}).forEach(function(e){return(0,s.default)("#"+e).not(":hidden").find("."+l.default.DX.NOTECLOSEBUTTONCLASS).trigger("click")}),i.slideUp({duration:t?0:400,complete:function(){++r===o&&(u.Events.publish(l.default.EVENTS.ENABLERESIZE),u.Events.publish(l.default.EVENTS.LAYOUTCHANGED,"Collapsible"))}}),a.attr(l.default.ACCESSIBILITY.ARIAEXPANDED,l.default.ACCESSIBILITY.ARIAFALSE)):(a.addClass(l.default.DX.EXPANDEDHEADINGCLASS).removeClass(l.default.DX.COLLAPSEDHEADINGCLASS),this._pageAction(l.default.ANALYTICS.PAGEACTIONS.EXPANDHEADING,a),i.filter(function(e,t){return n._filterHeadingContentForUncollapse(e,t)}).slideDown({duration:t?0:400,complete:function(){++r===o&&(u.Events.publish(l.default.EVENTS.ENABLERESIZE),u.Events.publish(l.default.EVENTS.LAYOUTCHANGED,"Collapsible"))}}),a.attr(l.default.ACCESSIBILITY.ARIAEXPANDED,l.default.ACCESSIBILITY.ARIATRUE))}}},{key:"_filterHeadingContentForUncollapse",value:function(e,t){var n=(0,s.default)(t);return!n.hasClass(l.default.DOCUMENT.FOOTNOTECLASS)&&!c.UtilFunctions.isHidden(n)}}]),h);function h(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,"collapsibleHeading","collapsibleHeading",l.default.PLATFORMS.ALL))}t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=l(n(9)),r=l(n(0)),s=n(3);function l(e){return e&&e.__esModule?e:{default:e}}var u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(d,o.default),a(d,[{key:"postCSPViolation",value:function(e){window.webkit.messageHandlers&&window.webkit.messageHandlers.CSPViolation.postMessage(e)}},{key:"postAnalytic",value:function(e,t){var n={event:e,contextData:t};s.Log.info("ios: reportAnalytic"),window.webkit.messageHandlers.reportAnalytic.postMessage(n)}},{key:"createAnnot",value:function(e){var t={createAnnot:e};s.Log.log("Posting create annot to iOS:"),s.Log.log(t),window.webkit.messageHandlers&&window.webkit.messageHandlers.commenting.postMessage(t)}},{key:"deselectAnnot",value:function(e){s.Log.log("Posting to de-select comment on iOS: "+e);var t={deselectAnnot:e};window.webkit.messageHandlers&&window.webkit.messageHandlers.commenting.postMessage(t)}},{key:"moveAnnot",value:function(e){var t={moveAnnot:e};s.Log.log("Posting move annot to iOS:"),s.Log.log(t),window.webkit.messageHandlers&&window.webkit.messageHandlers.commenting.postMessage(t)}},{key:"selectAnnot",value:function(e){var t={selectAnnot:e};s.Log.log("Posting to select comment on iOS: "+e),window.webkit.messageHandlers&&window.webkit.messageHandlers.commenting.postMessage(t)}},{key:"showAnnotPreview",value:function(e){s.Log.log("Posting to show preview on iOS: "+e);var t={showPreview:e};window.webkit.messageHandlers&&window.webkit.messageHandlers.commenting.postMessage(t)}},{key:"postDocumentReady",value:function(){window.webkit.messageHandlers&&window.webkit.messageHandlers.document.postMessage({status:"ready"})}},{key:"DXready",value:function(){window.webkit.messageHandlers.runtime.postMessage({status:"ready"})}},{key:"postFindResults",value:function(e,t){var n={numResults:e,selectedIndex:t};window.webkit.messageHandlers&&window.webkit.messageHandlers.findResultsUpdated.postMessage(n)}},{key:"postNavHeaderHeight",value:function(e){s.Log.log("Informing iOS platform navigation header height: "+e),window.webkit.messageHandlers&&window.webkit.messageHandlers.navigationHeader.postMessage({headerHeightInPx:e})}},{key:"postOutlineViewShown",value:function(e){s.Log.log("Informing iOS platform outline view status changed: shown="+e),window.webkit.messageHandlers&&window.webkit.messageHandlers.outlineView.postMessage({isShown:e})}},{key:"disableScroll",value:function(){window.webkit.messageHandlers&&window.webkit.messageHandlers.scrollView.postMessage({scrollEnabled:!1})}},{key:"enableScroll",value:function(){window.webkit.messageHandlers&&window.webkit.messageHandlers.scrollView.postMessage({scrollEnabled:!0})}},{key:"externalLinkClicked",value:function(){}},{key:"openContextMenu",value:function(){}},{key:"markFallbackPage",value:function(e,t){window.webkit.messageHandlers&&window.webkit.messageHandlers.markFallbackPage.postMessage({pageNumber:e,dpi:t})}},{key:"unmarkFallbackPage",value:function(e,t){window.webkit.messageHandlers&&window.webkit.messageHandlers.unmarkFallbackPage.postMessage({pageNumber:e,dpi:t})}},{key:"postFallbackFailure",value:function(e){window.webkit.messageHandlers&&window.webkit.messageHandlers.postFallbackFailure.postMessage(e)}},{key:"postFallbackSuccess",value:function(e){window.webkit.messageHandlers&&window.webkit.messageHandlers.postFallbackSuccess.postMessage({pageNumber:e})}},{key:"postFallbackUndoSuccess",value:function(e){window.webkit.messageHandlers&&window.webkit.messageHandlers.postFallbackUndoSuccess.postMessage({pageNumber:e})}},{key:"enterImmersiveMode",value:function(){window.webkit.messageHandlers&&window.webkit.messageHandlers.immersiveMode.postMessage({enabled:!0})}},{key:"exitImmersiveMode",value:function(){window.webkit.messageHandlers&&window.webkit.messageHandlers.immersiveMode.postMessage({enabled:!1})}},{key:"preventExit",value:function(e){window.webkit.messageHandlers&&window.webkit.messageHandlers.state.postMessage({shouldPreventExit:e})}},{key:"firstUserInteraction",value:function(){window.webkit.messageHandlers&&window.webkit.messageHandlers.firstUserInteraction.postMessage({})}},{key:"firstOutlineInteracted",value:function(){window.webkit.messageHandlers&&window.webkit.messageHandlers.firstOutlineInteracted.postMessage({})}},{key:"documentLoaded",value:function(){window.webkit.messageHandlers&&window.webkit.messageHandlers.documentLoaded.postMessage({})}},{key:"documentLoading",value:function(){window.webkit.messageHandlers&&window.webkit.messageHandlers.documentLoading.postMessage({})}}]),d);function d(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,r.default.PLATFORMS.IOS));return e._platformName="MOBILE (iOS)",e}t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=n(15),r=u(n(9)),s=u(n(0)),l=n(3);function u(e){return e&&e.__esModule?e:{default:e}}var d=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,r.default),a(c,[{key:"postCSPViolation",value:function(e){window.JavaInterface&&window.JavaInterface.postCSPViolation&&window.JavaInterface.postCSPViolation(JSON.stringify(e))}},{key:"postAnalytic",value:function(e,t){var n={event:e,contextData:t},a=JSON.stringify(n);l.Log.info("Analytics posting to android native: "+a),window.JavaInterface.postAnalyticsMessage(a)}},{key:"createAnnot",value:function(e){var t=JSON.stringify(e);l.Log.log("Posting move annot to android native: "+t),window.JavaInterface&&window.JavaInterface.createAnnot&&window.JavaInterface.createAnnot(t)}},{key:"deselectAnnot",value:function(e){l.Log.log("Posting to de-select comment on Android: "+e),window.JavaInterface&&window.JavaInterface.deselectComment(e)}},{key:"moveAnnot",value:function(e){var t=JSON.stringify(e);l.Log.log("Posting move annot to android native: "+t),window.JavaInterface&&window.JavaInterface.moveAnnot(t)}},{key:"selectAnnot",value:function(e){l.Log.log("Posting to select comment on Android: "+e),window.JavaInterface&&window.JavaInterface.selectComment(e)}},{key:"showAnnotPreview",value:function(e){l.Log.log("Posting to show preview on Android: "+e),window.JavaInterface&&window.JavaInterface.showPreview(e)}},{key:"postDocumentReady",value:function(){window.JavaInterface&&window.JavaInterface.postStatusMessage("ready")}},{key:"DXready",value:function(){window.JavaInterface&&window.JavaInterface.postDXStatusMessage("ready")}},{key:"postFindResults",value:function(e,t){window.JavaInterface&&window.JavaInterface.postFindMessage(e,t)}},{key:"postNavHeaderHeight",value:function(){}},{key:"postOutlineViewShown",value:function(e){var t=JSON.stringify({isShown:e});l.Log.log("Informing Android platform outline view status changed: "+t),window.JavaInterface&&window.JavaInterface.outlineViewChanged(t)}},{key:"disableScroll",value:function(){(0,o.disableBodyScroll)()}},{key:"enableScroll",value:function(){(0,o.enableBodyScroll)()}},{key:"externalLinkClicked",value:function(e,t){e.preventDefault();var n=JSON.stringify(t);l.Log.log("Posting to open URL on native Android: "+n),window.JavaInterface&&window.JavaInterface.openExternalLink(n)}},{key:"openContextMenu",value:function(e){var t=JSON.stringify(e);l.Log.log("Posting to open context menu on native Android at point: "+t),window.JavaInterface&&window.JavaInterface.openCommentContextMenu(t)}},{key:"markFallbackPage",value:function(e,t){l.Log.info("markFallbackPage "+e+" "+t);var n=JSON.stringify({pageNumber:e,dpi:t});window.ManualFallbacks?window.ManualFallbacks.markFallbackPage(n):window.JavaInterface&&window.JavaInterface.markFallbackPage(n)}},{key:"unmarkFallbackPage",value:function(e,t){var n=JSON.stringify({pageNumber:e,dpi:t});window.ManualFallbacks?window.ManualFallbacks.unmarkFallbackPage(n):window.AdbeDx.fallbacks.removePageFallback(e)}},{key:"postFallbackFailure",value:function(e){var t=JSON.stringify(e);window.JavaInterface&&window.JavaInterface.postFallbackFailure(t)}},{key:"postFallbackSuccess",value:function(e){var t=JSON.stringify({pageNum:e});window.JavaInterface&&window.JavaInterface.postFallbackSuccess(t)}},{key:"postFallbackUndoSuccess",value:function(e){var t=JSON.stringify({pageNum:e});window.JavaInterface&&window.JavaInterface.postFallbackUndoSuccess(t)}},{key:"enterImmersiveMode",value:function(){if(window.JavaInterface){var e=JSON.stringify({enabled:!0});window.JavaInterface.setImmersiveMode(e)}}},{key:"exitImmersiveMode",value:function(){if(window.JavaInterface){var e=JSON.stringify({enabled:!1});window.JavaInterface.setImmersiveMode(e)}}},{key:"preventExit",value:function(e){if(window.JavaInterface){var t=JSON.stringify({shouldPreventExit:e});window.JavaInterface.preventExit(t)}}},{key:"firstUserInteraction",value:function(){window.JavaInterface&&window.JavaInterface.firstUserInteraction()}},{key:"firstOutlineInteracted",value:function(){window.JavaInterface&&window.JavaInterface.firstOutlineInteracted()}},{key:"documentLoaded",value:function(){window.JavaInterface&&window.JavaInterface.documentLoaded()}},{key:"documentLoading",value:function(){window.JavaInterface&&window.JavaInterface.documentLoading()}}]),c);function c(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,s.default.PLATFORMS.ANDROID));return e._platformName="MOBILE (Android)",e}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=n(15),r=u(n(9)),s=u(n(0)),l=n(3);function u(e){return e&&e.__esModule?e:{default:e}}var d=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,r.default),a(c,[{key:"postCSPViolation",value:function(){}},{key:"postAnalytic",value:function(t){AdbeDx.appApi.analyticsApi().then(function(e){e(t)})}},{key:"createAnnot",value:function(){}},{key:"deselectAnnot",value:function(){}},{key:"moveAnnot",value:function(){}},{key:"selectAnnot",value:function(){}},{key:"showAnnotPreview",value:function(){}},{key:"postDocumentReady",value:function(){AdbeDx.Dktcommenting.loadComments(),AdbeDx.appApi.viewerUIApi().then(function(e){e.getAppPreferences([{pref:"avpAccessColorPolicy"}]).then(function(e){l.Log.info("getAppPreferences::Promise recieved !!!"),AdbeDx.appApi.processAppPrefChanged(e)}),e.docLoadComplete([{}])})}},{key:"postFindResults",value:function(t,n){AdbeDx.appApi.viewerUIApi().then(function(e){e.findResult([{numResults:t,selectedIndex:n}])})}},{key:"postNavHeaderHeight",value:function(){}},{key:"postOutlineViewShown",value:function(){}},{key:"disableScroll",value:function(){(0,o.disableBodyScroll)()}},{key:"enableScroll",value:function(){(0,o.enableBodyScroll)()}},{key:"externalLinkClicked",value:function(){}},{key:"openContextMenu",value:function(){}},{key:"markFallbackPage",value:function(){}},{key:"unmarkFallbackPage",value:function(){}},{key:"postFallbackFailure",value:function(){}},{key:"postFallbackSuccess",value:function(){}},{key:"postFallbackUndoSuccess",value:function(){}},{key:"enterImmersiveMode",value:function(){}},{key:"exitImmersiveMode",value:function(){}},{key:"firstUserInteraction",value:function(){}},{key:"firstOutlineInteracted",value:function(){}},{key:"documentLoaded",value:function(){}},{key:"documentLoading",value:function(){}}]),c);function c(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e));return t._platformName="DESKTOP ("+(e===s.default.PLATFORMS.MACOS?"MacOS":"Windows")+")",t}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=n(15),r=l(n(9)),s=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}var u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(d,r.default),a(d,[{key:"postCSPViolation",value:function(){}},{key:"postAnalytic",value:function(e){window.virgoPreviewApi.returnAnalyticsResult(e)}},{key:"createAnnot",value:function(){}},{key:"deselectAnnot",value:function(){}},{key:"moveAnnot",value:function(){}},{key:"selectAnnot",value:function(){}},{key:"showAnnotPreview",value:function(){}},{key:"postDocumentReady",value:function(){window.parent.postMessage({messageType:"PDFNextDocumentReady",payload:{ready:!0}},window.parent.location.origin)}},{key:"postFindResults",value:function(e,t){window.virgoPreviewApi.returnFindResults(e,t)}},{key:"postNavHeaderHeight",value:function(){}},{key:"postOutlineViewShown",value:function(){}},{key:"disableScroll",value:function(){(0,o.disableBodyScroll)()}},{key:"enableScroll",value:function(){(0,o.enableBodyScroll)()}},{key:"externalLinkClicked",value:function(e,t){e.preventDefault();var n=document.createElement("a");if(n.href=t,n.protocol!==window.location.protocol||n.hostname!==window.location.hostname||n.port!==window.location.port){var a={messageType:"PDFNextHyperlinkResponse",payload:{data:t}};window.parent.postMessage(a,window.parent.location.origin)}}},{key:"openContextMenu",value:function(){}},{key:"markFallbackPage",value:function(){}},{key:"unmarkFallbackPage",value:function(){}},{key:"postFallbackFailure",value:function(){}},{key:"postFallbackSuccess",value:function(){}},{key:"postFallbackUndoSuccess",value:function(){}},{key:"enterImmersiveMode",value:function(){}},{key:"exitImmersiveMode",value:function(){}},{key:"firstUserInteraction",value:function(){}},{key:"firstOutlineInteracted",value:function(){}},{key:"documentLoaded",value:function(){}},{key:"documentLoading",value:function(){}}]),d);function d(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,s.default.PLATFORMS.DCWEB));return e._platformName="DCWeb",e}t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=l(n(9)),r=l(n(0)),s=(n(2),n(3));function l(e){return e&&e.__esModule?e:{default:e}}var u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(d,o.default),a(d,[{key:"_dumpAnalytics",value:function(){}},{key:"_writeInfo",value:function(e){s.Log.info(this._platformName+" - "+e),s.Log.addMessage(this.platformName,r.default.LOGCATEGORIES.INFO,e)}},{key:"postCSPViolation",value:function(){}},{key:"postAnalytic",value:function(e,t){s.Log.info("%c%s","color:grey","standalone: "+e+"\n"+JSON.stringify(t,null,2))}},{key:"createAnnot",value:function(e,t){var n=t.elementId?t.elementId+"_"+Date.now():t.startId+"_"+Date.now();t.startId?AdbeDx.commenting.applyTextRangeSelector(n,e,t):t.offset?AdbeDx.commenting.applyTextGlyphSelector(n,e,t):AdbeDx.commenting.applyImageSelector(n,e,t)}},{key:"deselectAnnot",value:function(e){e?s.Log.info("De-select annot: "+e):s.Log.info("De-select annots"),AdbeDx.commenting.selectComment()}},{key:"moveAnnot",value:function(e,t,n){this.deselectAnnot(e),n.startId?AdbeDx.commenting.applyTextRangeSelector(e,t,n):n.offset?AdbeDx.commenting.applyTextGlyphSelector(e,t,n):AdbeDx.commenting.applyImageSelector(e,t,n)}},{key:"selectAnnot",value:function(e){s.Log.info("Select annot: "+e),AdbeDx.commenting.selectComment(e)}},{key:"showAnnotPreview",value:function(){}},{key:"postDocumentReady",value:function(){console.info("document ready")}},{key:"DXready",value:function(){console.info("DX ready")}},{key:"postFindResults",value:function(){}},{key:"postNavHeaderHeight",value:function(){}},{key:"postOutlineViewShown",value:function(){}},{key:"disableScroll",value:function(){}},{key:"enableScroll",value:function(){}},{key:"externalLinkClicked",value:function(){}},{key:"openContextMenu",value:function(){}},{key:"markFallbackPage",value:function(e,t){this._writeInfo("P.SA.markFallbackPage "+e+" "+t),window.AdbeDx.fallbacks.setPageFallback(e,"images/page2.png",t,0,0,!0)}},{key:"unmarkFallbackPage",value:function(e){s.Log.info("P.SA.unmarkFallbackPage "+e)}},{key:"postFallbackFailure",value:function(e){s.Log.info("P.SA.postFallbackFailure "+e)}},{key:"postFallbackSuccess",value:function(e){s.Log.info("P.SA.postFallbackSuccess "+e)}},{key:"postFallbackUndoSuccess",value:function(e){s.Log.info("P.SA.postFallbackUndoSuccess "+e)}},{key:"enterImmersiveMode",value:function(){}},{key:"exitImmersiveMode",value:function(){}},{key:"preventExit",value:function(e){s.Log.info("P.SA.preventExit "+e)}},{key:"firstUserInteraction",value:function(){s.Log.info("Standalone: Analytics firstUserInteraction")}},{key:"firstOutlineInteracted",value:function(){s.Log.info("Standalone: Analytics firstOutlineInteracted")}},{key:"documentLoaded",value:function(){s.Log.info("Standalone: Analytics documentLoaded")}},{key:"documentLoading",value:function(){s.Log.info("Standalone: Analytics documentLoading")}}]),d);function d(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,r.default.PLATFORMS.DXBROWSER));return e._platformName="BROWSER",e._immersiveMode=r.default.IMMERSIVE.ENABLED,e._immersiveFlag=!1,e._immersiveeTimer=void 0,e._appChromeTimer=void 0,e}t.default=u},,function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}Object.defineProperty(t,"__esModule",{value:!0});var i=(function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}(o,[{key:"clear",value:function(){this._text={quote:"",characters:0,charactersAll:0},this._dimensions={height:0,width:0},this._position={screen:{start:{x:0,y:0},end:{x:0,y:0}},page:{start:{x:0,y:0},end:{x:0,y:0}}},this._range=null,this._normalizedRange=null,this._serializedRange=null}},{key:"isEmpty",value:function(){var e=this._position.screen,t=this._position.screen;return 0===this._text.quote.length||0===this._dimensions.height&&0===this._dimensions.width||0===e.start.x&&0===e.start.y&&0===e.end.x&&0===e.end.y||0===t.start.x&&0===t.start.y&&0===t.end.x&&0===t.end.y||!this._range||!(this._normalizedRange||this._serializedRange)}},{key:"quote",get:function(){return this._text.quote}},{key:"characters",get:function(){return this._text.characters}},{key:"charactersAll",get:function(){return this._text.charactersAll}},{key:"height",get:function(){return this._dimensions.height},set:function(e){this._dimensions.height=e}},{key:"width",get:function(){return this._dimensions.width},set:function(e){this._dimensions.width=e}},{key:"screenXStart",get:function(){return this._position.screen.start.x},set:function(e){this._position.screen.start.x=e}},{key:"screenYStart",get:function(){return this._position.screen.start.y},set:function(e){this._position.screen.start.y=e}},{key:"screenXEnd",get:function(){return this._position.screen.end.x},set:function(e){this._position.screen.end.x=e}},{key:"screenYEnd",get:function(){return this._position.screen.end.y},set:function(e){this._position.screen.end.y=e}},{key:"pageXStart",get:function(){return this._position.page.start.x},set:function(e){this._position.page.start.x=e}},{key:"pageYStart",get:function(){return this._position.page.start.y},set:function(e){this._position.page.start.y=e}},{key:"pageXEnd",get:function(){return this._position.page.end.x},set:function(e){this._position.page.end.x=e}},{key:"pageYEnd",get:function(){return this._position.page.end.y},set:function(e){this._position.page.end.y=e}},{key:"range",get:function(){return this._range},set:function(e){this._range=e}},{key:"normalizedRange",get:function(){return this._normalizedRange},set:function(e){this._normalizedRange=e}},{key:"serializedRange",get:function(){return this._serializedRange},set:function(e){this._serializedRange=e}},{key:"text",set:function(e){0<(this._text.quote=e).length?(this._text.characters=e.replace(/\s/g,"").length,this._text.charactersAll=e.replace(/[\n\r]/g,"").length):(this._text.characters=0,this._text.charactersAll=0)}}]),o);function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._text={quote:"",characters:0,charactersAll:0},this._dimensions={height:0,width:0},this._position={screen:{start:{x:0,y:0},end:{x:0,y:0}},page:{start:{x:0,y:0},end:{x:0,y:0}}},this._range=null,this._normalizedRange=null,this._serializedRange=null}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=l(n(50)),r=n(2),c=l(n(0)),f=n(6),s=n(3);function l(e){return e&&e.__esModule?e:{default:e}}var u=(a(d,[{key:"toObject",value:function(){return{totalPages:this._maxPageNumber}}},{key:"_padPages",value:function(e){(isNaN(this.length)||e>this.length)&&(this.length=e)}},{key:"getPage",value:function(e){var t=void 0;return e<=this._maxPageNumber&&(t=this._pages[e]),t}},{key:"getPages",value:function(){return this._pages}},{key:"getPagesVisible",value:function(){return this._pagesVisible}},{key:"qualifyPage",value:function(e){0<e&&e<=this._maxPageNumber&&this._pages[e].qualify()}},{key:"addEventReference",value:function(e,t,n){var a=Number(e);this._padPages(a),this._pages[a].addEventReference(t,n)}},{key:"addEventRendered",value:function(e,t,n,a){var i=Number(e);this._padPages(i),this._pages[i].addEventRendered(t,n,a)}},{key:"addPageAction",value:function(e,t,n,a,i){if(void 0!==e){var o=n,r=Number(e);this._padPages(r),void 0===o&&(o=f.UtilFunctions.getNow()),this._pages[r].addPageAction(t,o,a,i)}else s.Log.error("addPageAction "+t+" with no page number")}},{key:"addGlobalAction",value:function(e,t,n){var a=t;void 0===a&&(a=f.UtilFunctions.getNow()),r.Events.publish(c.default.EVENTS.GLOBALACTION,{type:e,startTime:a,duration:n})}},{key:"updatePageBoundaries",value:function(e){var t=Object.keys(e);this.length=t&&0<t.length?Math.max.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t)):0;for(var n=1;n<=this.length;n++)this._pages[n].updatePageBoundaries()}},{key:"checkPageBoundaries",value:function(e,t){var n={},a=this.length,i=e+t,o=document.getElementsByClassName(""+c.default.DX.DOCUMENTWRAPPERCLASS);if("none"===window.getComputedStyle(o[0]).getPropertyValue("display"))return n;for(var r=1;r<=a;r++){var s=this._pages[r],l=s.top>=e&&s.top<=i,u=s.bottom>=e&&s.bottom<=i,d=s.top<e&&s.bottom>i;(l||u||d)&&(n[r]=f.UtilFunctions.getNow(),s.startTime=n[r])}return n}},{key:"checkForPageTransitions",value:function(e,t){var o=this,n=this.checkPageBoundaries(e,t),a=Object.keys(n);s.Log.info("visible pages "+a),this._inScopeFeatures=[],a.forEach(function(a){var i=o._pages[a];i.isVisible=!0,i.featureReferences&&Object.keys(i.featureReferences).forEach(function(e){for(var t=i.featureReferences[e],n=0;n<t.length;n++)o._inScopeFeatures.push({featureName:e,feature:t[n],pageNumber:a,start:f.UtilFunctions.getNow()})})}),this._pagesVisible&&Object.keys(this._pagesVisible).forEach(function(e){var t=o._pages[e];n[e]||(t.isVisible=!1)}),this._pagesVisible=n}},{key:"log",get:function(){return this._isDebug?window.console.log:function(){}}},{key:"trace",get:function(){return this._isDebug?window.console.trace:function(){}}},{key:"dir",get:function(){return this._isDebug?window.console.dir:function(){}}},{key:"time",get:function(){return this._isDebug?window.console.time:function(){}}},{key:"timeEnd",get:function(){return this._isDebug?window.console.timeEnd:function(){}}},{key:"length",get:function(){return this._maxPageNumber},set:function(e){var t=Number(e);if(void 0!==t&&!isNaN(t)){for(var n=Number(this._maxPageNumber),a=0<n?n+1:n;a<=t;a++)this._pages.push(new o.default(this,a));this._maxPageNumber=t}}},{key:"inScopeFeatures",get:function(){return this._inScopeFeatures}}]),d);function d(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),this._maxPageNumber=0,this._pages=[],this._pagesVisible={},this._inScopeFeatures=[],this.length=e,this._isDebug=!1}t.default=u},function(e,d,c){"use strict";(function(o){Object.defineProperty(d,"__esModule",{value:!0});var e=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var t,r=c(2),n=c(0),s=(t=n)&&t.__esModule?t:{default:t},i=c(6);var l=(e(u,[{key:"toObject",value:function(){return{pageNumber:this._pageNumber}}},{key:"_toggleFallbackHighlighting",value:function(e){e?(this.updatePageBoundaries(),this.createMarker(this._top,this._bottom)):(this.updatePageBoundaries(),this.removeMarker())}},{key:"addEventReference",value:function(e,t){void 0===this._featureReferences[e]&&(this._featureReferences[e]=[]),this._featureReferences[e].push(t)}},{key:"addEventRendered",value:function(e,t,n){var a={feature:e,ref:t,start:n,pageNumber:this.pageNumber};this.isQualified?r.Events.publish(s.default.EVENTS.RENDEREDONPAGE,a):this._featuresRendered.push(a)}},{key:"addEventInteracted",value:function(e,t,n){var a={feature:e,ref:t,start:n,pageNumber:this.pageNumber};this.isVisible&&!this.isQualified?this.isQualified=!0:this.IsVisible?this.isQualified&&r.Events.publish(s.default.EVENTS.INTERACTEDONPAGE,a):this._featuresInteracted.push(a)}},{key:"addPageAction",value:function(e,t,n,a){var i={type:e,start:t,duration:n,reason:a,pageNumber:this.pageNumber};r.Events.publish(s.default.EVENTS.PAGEACTION,i)}},{key:"setBoundaries",value:function(e,t){e===this._top&&t===this._bottom||(this.removeMarker(),this._fallbackHighlighting&&this.createMarker(e,t),this._top=e,this._bottom=t)}},{key:"updatePageBoundaries",value:function(){var e=AdbeDx.fallbacks.getBoundsForPage(this.pageNumber);this.setBoundaries(Math.round(e.top),Math.round(e.bottom))}},{key:"removeMarker",value:function(){o("."+this._myClassName).remove()}},{key:"createMarker",value:function(e,t){var n=o('<div class="dx-page-marker '+this._myClassName+'"><div class="dx-page-marker-number">'+this.pageNumber+"</div></div>");n.css("top",e),n.css("height",t-e);var a=5*Math.round(this.pageNumber%5)+60;n.css("left",a+"%"),n.css("width","10%");var i=this.pageNumber%2?"blue":"green";n.css("background-color",i),o("body").append(n)}},{key:"_clearQualifyTimer",value:function(){var e=this._qualifyTimer;e&&(clearTimeout(e),this._qualifyTimer=void 0)}},{key:"_setQualifyTimer",value:function(e){var t=this;this._clearQualifyTimer(),this._qualifyTimer=setTimeout(function(){t._qualifyTimer=void 0,t.isQualified=!0},e)}},{key:"_dispatchRendered",value:function(){for(var e=0;e<this._featuresRendered.length;e++)r.Events.publish(s.default.EVENTS.RENDEREDONPAGE,this._featuresRendered[e]);this._featuresRendered=[]}},{key:"_dispatchPageActions",value:function(){for(var e=0;e<this._pageActions.length;e++)r.Events.publish(s.default.EVENTS.PAGEACTION,this._pageActions[e]);this._pageActions=[]}},{key:"qualify",value:function(){this.isVisible&&(this.isQualified=!0)}},{key:"pageNumber",get:function(){return this._pageNumber}},{key:"top",get:function(){return this._top}},{key:"bottom",get:function(){return this._bottom}},{key:"isVisible",get:function(){return this._isVisible},set:function(e){e?this._isVisible||this._setQualifyTimer(this._qualifyDuration):(this._clearQualifyTimer(),this.isQualified=!1),this._isVisible=e}},{key:"isQualified",get:function(){return this._isQualified},set:function(e){e&&!this._isQualified?(r.Events.publish(s.default.EVENTS.QUALIFYPAGE,{pageNumber:this._pageNumber,startTime:this.startTime}),this._dispatchRendered(),this._dispatchPageActions()):!e&&this._isQualified&&(r.Events.publish(s.default.EVENTS.UNQUALIFYPAGE,{pageNumber:this._pageNumber,startTime:this.now,duration:this.duration}),this._featuresRendered=[],this._pageActions=[]),this._isQualified=e}},{key:"startTime",get:function(){return this._startTime},set:function(e){this._startTime=e}},{key:"duration",get:function(){return this.now-this._startTime}},{key:"height",get:function(){return this.bottom-this.top}},{key:"now",get:function(){return i.UtilFunctions.getNow()}},{key:"featureReferences",get:function(){return this._featureReferences}}]),u);function u(e,t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),this._pages=e,this._pageNumber=t,this._qualifyDuration=1e4,this._featureReferences={},this._featuresRendered=[],this._pageActions=[],this._top=0,this._bottom=0,this._isVisible=!1,this._startTime=void 0,this._qualifyTimer=void 0,this._myClassName="dx-page-"+t+"-marker",0<t&&r.Events.subscribe(s.default.EVENTS.PAGES,function(e){n._toggleFallbackHighlighting(e)})}d.default=l}).call(d,c(1))},function(e,t){e.exports={ARIAFOOTNOTELBL:"Klik for at åbne fodnote-vindue",ARIAENDNOTELBL:"Klik for at åbne slutnote-vindue",ARIACLICKABLELBL:"Klikbar",ARIACLOSEPOPUPLBL:"Luk vindue",ARIAOPENOUTLINELBL:"Tryk for at vise omrids",ARIACLOSEOUTLINELBL:"Luk omridsvisning",ARIACOLLAPSENAVLBL:"Tryk på Enter for at slå venstre navigation til",ARIATAPTOPREVIEWLBL:"Tryk for at vise ufastgjort annoteringsvisning",BACK_TO_TOP:"Tilbage til toppen",BEGINNING_OF_DOCUMENT:"Start på dokument",CANCEL:"Annuller",CONTINUE:"Fortsæt",COMPLETED:"Fuldført",COPY_CHOICE:"Kopiér",DOCUMENT_COMPLETE:"Dokumentfuldførelse",FIX_CONTENT:"Vis original side",FIX_IT_ACTION:"Reparer",FIX_IT_FAILURE_TITLE:"Indhold kan ikke omformateres",FIX_IT_FAILURE_TIMEOUT:"Handlingen var for længe om at blive udført",FIX_IT_FAILURE_LIST:"Side er på en liste eller tabel, der spænder flere sider",FIX_IT_FAILURE_MIDDLE_NODE:"Side, der vises i midten af en tvetydig tekstnode, spændte flere sider",FIX_IT_FAILURE_START_NODE:"Side, der vises i starten af en tvetydig tekstnode, spændte flere sider",FIX_IT_FAILURE_END_NODE:"Side, der vises i slutningen af en tvetydig tekstnode, spændte flere sider",GREAT_JOB:"Super, du kan læse alt!",HIGHLIGHTARIALBL:"Fremhævet",HIGHLIGHT_CHOICE:"Fremhæv",NAVIG_PROMPT:"Tryk for at vise omrids",NOT_LOOKING_RIGHT:"Vis original side?",OUTLINE:"Omrids",OVERVIEW_PROMPT:"Vis oversigt",PROVIDE_FEEDBACK:"Send feedback",SECTION:"sektion",SECTIONS:"sektioner",STRIKETHROUGHARIALBL:"Gennemstreg",STRIKETHROUGH_CHOICE:"Gennemstreg",TITLE_SECTION:"Titelsektion",TAP_TO_VIEW:"Tryk for at se",TAP_FIX_CONTENT:"Brug det originale layout til denne sektion.",UNDERLINEARIALBL:"Understreget",UNDERLINE_CHOICE:"Understreg",UNDO:"Fortryd",SHARE_FEEDBACK:"Del feedback"}},function(e,t){e.exports={ARIAFOOTNOTELBL:"Zum Öffnen des Fußnoten-Popups klicken",ARIAENDNOTELBL:"Zum Öffnen des Endnoten-Popups klicken",ARIACLICKABLELBL:"Klickbar",ARIACLOSEPOPUPLBL:"Popup schließen",ARIAOPENOUTLINELBL:"Zum Anzeigen der Kontur tippen",ARIACLOSEOUTLINELBL:"Konturansicht schließen",ARIACOLLAPSENAVLBL:"Drücken Sie die Eingabetaste, um die Navigation auf der linken Seite zu aktivieren/deaktivieren.",ARIATAPTOPREVIEWLBL:"Zum Anzeigen der nicht verankerten Anmerkungsvorschau tippen",BACK_TO_TOP:"Zurück zum Anfang",BEGINNING_OF_DOCUMENT:"Anfang des Dokuments",CANCEL:"Abbrechen",CONTINUE:"Fortfahren",COMPLETED:"Abgeschlossen",COPY_CHOICE:"Kopieren",DOCUMENT_COMPLETE:"Dokument abgeschlossen",FIX_CONTENT:"Ursprüngliche Seite anzeigen",FIX_IT_ACTION:"Korrigieren",FIX_IT_FAILURE_TITLE:"Inhalt kann nicht auf das ursprüngliche Format geändert werden",FIX_IT_FAILURE_TIMEOUT:"Der Abschluss des Vorgangs hat zu viel Zeit in Anspruch genommen",FIX_IT_FAILURE_LIST:"Seite ist in einer Liste oder Tabelle enthalten, die sich über mehrere Seiten erstreckt",FIX_IT_FAILURE_MIDDLE_NODE:"Seite wird in der Mitte eines mehrdeutigen Textknotens angezeigt, der sich über mehrere Seiten erstreckt",FIX_IT_FAILURE_START_NODE:"Seite wird am Beginn eines mehrdeutigen Textknotens angezeigt, der sich über mehrere Seiten erstreckt",FIX_IT_FAILURE_END_NODE:"Seite wird am Ende eines mehrdeutigen Textknotens angezeigt, der sich über mehrere Seiten erstreckt",GREAT_JOB:"Gute Arbeit, alle Inhalte wurden gelesen.",HIGHLIGHTARIALBL:"Hervorgehoben",HIGHLIGHT_CHOICE:"Hervorheben",NAVIG_PROMPT:"Zum Anzeigen der Kontur tippen",NOT_LOOKING_RIGHT:"Ursprüngliche Seite anzeigen?",OUTLINE:"Gliederung",OVERVIEW_PROMPT:"Übersicht anzeigen",PROVIDE_FEEDBACK:"Feedback geben",SECTION:"Abschnitt",SECTIONS:"Abschnitte",STRIKETHROUGHARIALBL:"Durchstreichen",STRIKETHROUGH_CHOICE:"Durchstreichen",TITLE_SECTION:"Titel-Abschnitt",TAP_TO_VIEW:"Zum Anzeigen tippen",TAP_FIX_CONTENT:"Stellen Sie das ursprüngliche Layout des Abschnitts wieder her.",UNDERLINEARIALBL:"Unterstrichen",UNDERLINE_CHOICE:"Unterstreichen",UNDO:"Rückgängig",SHARE_FEEDBACK:"Feedback freigeben"}},function(e,t){e.exports={ARIAFOOTNOTELBL:"Click to open footnote popup",ARIAENDNOTELBL:"Click to open endnote popup",ARIACLICKABLELBL:"Clickable",ARIACLOSEPOPUPLBL:"Close popup",ARIAOPENOUTLINELBL:"Tap to show outline",ARIACLOSEOUTLINELBL:"Close outline view",ARIACOLLAPSENAVLBL:"Press enter to toggle left hand navigation",ARIATAPTOPREVIEWLBL:"Tap to show unanchored annotation preview",BACK_TO_TOP:"Back to Top",BEGINNING_OF_DOCUMENT:"Beginning of Document",CANCEL:"Cancel",CONTINUE:"Continue",COMPLETED:"Completed",COPY_CHOICE:"Copy",DOCUMENT_COMPLETE:"Document Complete",FIX_CONTENT:"Show original page",FIX_IT_ACTION:"Fix",FIX_IT_FAILURE_TITLE:"Content cannot be reformatted",FIX_IT_FAILURE_TIMEOUT:"Operation took too long to complete",FIX_IT_FAILURE_LIST:"Page is in a list or a table that spans multiple pages",FIX_IT_FAILURE_MIDDLE_NODE:"Page appeared at the middle of an ambiguous text node found spanning multiple pages",FIX_IT_FAILURE_START_NODE:"Page appeared at the start of an ambiguous text node found spanning multiple pages",FIX_IT_FAILURE_END_NODE:"Page appeared at the end of an ambiguous text node found spanning multiple pages",GREAT_JOB:"Great job, you read everything!",HIGHLIGHTARIALBL:"Highlighted",HIGHLIGHT_CHOICE:"Highlight",NAVIG_PROMPT:"Tap to show outline",NOT_LOOKING_RIGHT:"Show original page?",OUTLINE:"Outline",OVERVIEW_PROMPT:"Show overview",PROVIDE_FEEDBACK:"Provide Feedback",SECTION:"section",SECTIONS:"sections",STRIKETHROUGHARIALBL:"Strikethrough",STRIKETHROUGH_CHOICE:"Strikethrough",TITLE_SECTION:"Title Section",TAP_TO_VIEW:"Tap to view",TAP_FIX_CONTENT:"Turn this section back to its original layout.",UNDERLINEARIALBL:"Underlined",UNDERLINE_CHOICE:"Underline",UNDO:"Undo",SHARE_FEEDBACK:"Share Feedback"}},function(e,t){e.exports={ARIAFOOTNOTELBL:"Haga clic para abrir la nota al pie emergente",ARIAENDNOTELBL:"Haga clic para abrir la nota final emergente",ARIACLICKABLELBL:"Se puede hacer clic encima",ARIACLOSEPOPUPLBL:"Cerrar elemento emergente",ARIAOPENOUTLINELBL:"Toque para mostrar la descripción",ARIACLOSEOUTLINELBL:"Cerrar vista descriptiva",ARIACOLLAPSENAVLBL:"Pulsar Intro para activar la navegación para zurdos",ARIATAPTOPREVIEWLBL:"Toque para mostrar una vista previa de la anotación sin fijar.",BACK_TO_TOP:"Volver al principio",BEGINNING_OF_DOCUMENT:"Principio del documento",CANCEL:"Cancelar",CONTINUE:"Continuar",COMPLETED:"Completado",COPY_CHOICE:"Copiar",DOCUMENT_COMPLETE:"Documento completado",FIX_CONTENT:"Muestra la página original",FIX_IT_ACTION:"Corregir",FIX_IT_FAILURE_TITLE:"No se puede cambiar el formato del contenido",FIX_IT_FAILURE_TIMEOUT:"La operación ha tardado demasiado en completarse.",FIX_IT_FAILURE_LIST:"La página figura en una lista o tabla que abarca varias páginas.",FIX_IT_FAILURE_MIDDLE_NODE:"La página ha aparecido en el medio de un nodo de texto ambiguo que se ha detectado y que abarca varias páginas.",FIX_IT_FAILURE_START_NODE:"La página ha aparecido al inicio de un nodo de texto ambiguo que se ha detectado y que abarca varias páginas.",FIX_IT_FAILURE_END_NODE:"La página ha aparecido al final de un nodo de texto ambiguo que se ha detectado y que abarca varias páginas.",GREAT_JOB:"Lo ha leído todo, ¡bien hecho!",HIGHLIGHTARIALBL:"Resaltado",HIGHLIGHT_CHOICE:"Resaltar",NAVIG_PROMPT:"Toque para mostrar la descripción",NOT_LOOKING_RIGHT:"¿Mostrar la página original?",OUTLINE:"Contorno",OVERVIEW_PROMPT:"Mostrar descripción general",PROVIDE_FEEDBACK:"Proporcione sus comentarios",SECTION:"sección",SECTIONS:"secciones",STRIKETHROUGHARIALBL:"Tachar",STRIKETHROUGH_CHOICE:"Tachar",TITLE_SECTION:"Sección del título",TAP_TO_VIEW:"Toque para ver.",TAP_FIX_CONTENT:"Devolver esta sección a su diseño original.",UNDERLINEARIALBL:"Subrayado",UNDERLINE_CHOICE:"Subrayar",UNDO:"Deshacer",SHARE_FEEDBACK:"Compartir comentarios"}},function(e,t){e.exports={ARIAFOOTNOTELBL:"Avaa alaviitteen ponnahdusikkuna napsauttamalla",ARIAENDNOTELBL:"Avaa loppuviitteen ponnahdusikkuna napsauttamalla",ARIACLICKABLELBL:"Napsautettava",ARIACLOSEPOPUPLBL:"Sulje ponnahdusikkuna",ARIAOPENOUTLINELBL:"Näytä ääriviiva napauttamalla",ARIACLOSEOUTLINELBL:"Sulje ääriviivanäkymä",ARIACOLLAPSENAVLBL:"Vaihda vasemmanpuoleista siirtymisvalikkoa painamalla Enter-näppäintä",ARIATAPTOPREVIEWLBL:"Näytä ankkuroimaton merkintäesikatselu napauttamalla",BACK_TO_TOP:"Takaisin alkuun",BEGINNING_OF_DOCUMENT:"Dokumentin alku",CANCEL:"Peruuta",CONTINUE:"Jatka",COMPLETED:"Valmis",COPY_CHOICE:"Kopioi",DOCUMENT_COMPLETE:"Dokumentti valmis",FIX_CONTENT:"Näytä alkuperäinen sivu",FIX_IT_ACTION:"Korjaa",FIX_IT_FAILURE_TITLE:"Sisältöä ei voi muotoilla uudelleen.",FIX_IT_FAILURE_TIMEOUT:"Toiminnon suorittaminen kesti liian kauan.",FIX_IT_FAILURE_LIST:"Sivu on usean sivun pituisessa luettelossa tai taulukossa.",FIX_IT_FAILURE_MIDDLE_NODE:"Sivu näkyi usean sivun pituisen moniselitteisen tekstisolmun keskellä.",FIX_IT_FAILURE_START_NODE:"Sivu näkyi usean sivun pituisen moniselitteisen tekstisolmun alussa.",FIX_IT_FAILURE_END_NODE:"Sivu näkyi usean sivun pituisen moniselitteisen tekstisolmun lopussa.",GREAT_JOB:"Hienoa, luit kaiken!",HIGHLIGHTARIALBL:"Korostettu",HIGHLIGHT_CHOICE:"Korosta",NAVIG_PROMPT:"Näytä ääriviiva napauttamalla",NOT_LOOKING_RIGHT:"Näytetäänkö alkuperäinen sivu?",OUTLINE:"Ääriviiva",OVERVIEW_PROMPT:"Näytä yleiskatsaus",PROVIDE_FEEDBACK:"Anna palautetta",SECTION:"osa",SECTIONS:"osaa",STRIKETHROUGHARIALBL:"Yliviivaa",STRIKETHROUGH_CHOICE:"Yliviivaa",TITLE_SECTION:"Otsikko-osa",TAP_TO_VIEW:"Näytä napauttamalla",TAP_FIX_CONTENT:"Muunna tämä osa takaisin alkuperäisen asettelunsa mukaiseksi.",UNDERLINEARIALBL:"Alleviivattu",UNDERLINE_CHOICE:"Alleviivaa",UNDO:"Kumoa",SHARE_FEEDBACK:"Jaa palautetta"}},function(e,t){e.exports={ARIAFOOTNOTELBL:"Cliquez pour ouvrir la fenêtre contextuelle de note de bas de page.",ARIAENDNOTELBL:"Cliquez pour ouvrir la fenêtre contextuelle de note de fin.",ARIACLICKABLELBL:"Cliquable",ARIACLOSEPOPUPLBL:"Fermer la fenêtre contextuelle",ARIAOPENOUTLINELBL:"Appuyez pour afficher la structure.",ARIACLOSEOUTLINELBL:"Fermer le mode Plan",ARIACOLLAPSENAVLBL:"Appuyez sur Enter pour passer à la navigation gauche",ARIATAPTOPREVIEWLBL:"Appuyer pour afficher un aperçu non ancré de l’annotation",BACK_TO_TOP:"Retour au début",BEGINNING_OF_DOCUMENT:"Début du document",CANCEL:"Annuler",CONTINUE:"Continuer",COMPLETED:"Terminé",COPY_CHOICE:"Copier",DOCUMENT_COMPLETE:"Document terminé",FIX_CONTENT:"Afficher la page d’origine",FIX_IT_ACTION:"Corriger",FIX_IT_FAILURE_TITLE:"Impossible de remettre en forme le contenu",FIX_IT_FAILURE_TIMEOUT:"L’opération a duré trop longtemps.",FIX_IT_FAILURE_LIST:"La page figure dans une liste ou un tableau qui s’étend sur plusieurs pages.",FIX_IT_FAILURE_MIDDLE_NODE:"La page apparaissait au milieu d’un nœud de texte ambigu s’étendant sur plusieurs pages.",FIX_IT_FAILURE_START_NODE:"La page apparaissait au début d’un nœud de texte ambigu s’étendant sur plusieurs pages.",FIX_IT_FAILURE_END_NODE:"La page apparaissait à la fin d’un nœud de texte ambigu s’étendant sur plusieurs pages.",GREAT_JOB:"Bravo, vous avez tout lu.",HIGHLIGHTARIALBL:"Surligné",HIGHLIGHT_CHOICE:"Surligner",NAVIG_PROMPT:"Appuyez pour afficher la structure.",NOT_LOOKING_RIGHT:"Voulez-vous afficher la page d’origine ?",OUTLINE:"Contour",OVERVIEW_PROMPT:"Afficher l’aperçu",PROVIDE_FEEDBACK:"Formuler des commentaires",SECTION:"section",SECTIONS:"sections",STRIKETHROUGHARIALBL:"Barré",STRIKETHROUGH_CHOICE:"Barré",TITLE_SECTION:"Section Titre",TAP_TO_VIEW:"Appuyer pour afficher",TAP_FIX_CONTENT:"Permet de rétablir la mise en page d’origine de cette section.",UNDERLINEARIALBL:"Souligné",UNDERLINE_CHOICE:"Souligner",UNDO:"Annuler",SHARE_FEEDBACK:"Partager vos commentaires"}},function(e,t){e.exports={ARIAFOOTNOTELBL:"Fare clic per aprire la finestra a comparsa della nota a piè di pagina",ARIAENDNOTELBL:"Fare clic per aprire la finestra a comparsa della nota di chiusura",ARIACLICKABLELBL:"Cliccabile",ARIACLOSEPOPUPLBL:"Chiudi pannello a comparsa",ARIAOPENOUTLINELBL:"Tocca per mostrare la struttura",ARIACLOSEOUTLINELBL:"Chiudi vista struttura",ARIACOLLAPSENAVLBL:"Premi Invio per mostrare o nascondere l'area di navigazione a sinistra",ARIATAPTOPREVIEWLBL:"Tocca per mostrare anteprima annotazione non ancorata",BACK_TO_TOP:"Torna all'inizio",BEGINNING_OF_DOCUMENT:"Inizio documento",CANCEL:"Annulla",CONTINUE:"Continua",COMPLETED:"Completato",COPY_CHOICE:"Copia",DOCUMENT_COMPLETE:"Documento completato",FIX_CONTENT:"Mostra la pagina originale",FIX_IT_ACTION:"Correggi",FIX_IT_FAILURE_TITLE:"Impossibile riformattare il contenuto",FIX_IT_FAILURE_TIMEOUT:"L'operazione richiede troppo tempo",FIX_IT_FAILURE_LIST:"La pagina è in un elenco o una tabella che si estende su più pagine",FIX_IT_FAILURE_MIDDLE_NODE:"Pagina al centro di un nodo di testo ambiguo che si estende su più pagine",FIX_IT_FAILURE_START_NODE:"Pagina all'inizio di un nodo di testo ambiguo che si estende su più pagine",FIX_IT_FAILURE_END_NODE:"Pagina alla fine di un nodo di testo ambiguo che si estende su più pagine",GREAT_JOB:"Ottimo, hai letto tutto!",HIGHLIGHTARIALBL:"Evidenziato",HIGHLIGHT_CHOICE:"Evidenzia",NAVIG_PROMPT:"Tocca per mostrare la struttura",NOT_LOOKING_RIGHT:"Mostrare la pagina originale?",OUTLINE:"Struttura",OVERVIEW_PROMPT:"Mostra panoramica",PROVIDE_FEEDBACK:"Fornisci un feedback",SECTION:"sezione",SECTIONS:"sezioni",STRIKETHROUGHARIALBL:"Barra",STRIKETHROUGH_CHOICE:"Barra",TITLE_SECTION:"Titolo sezione",TAP_TO_VIEW:"Tocca per visualizzare",TAP_FIX_CONTENT:"Ripristina il layout originale di questa sezione.",UNDERLINEARIALBL:"Sottolineato",UNDERLINE_CHOICE:"Sottolinea",UNDO:"Annulla",SHARE_FEEDBACK:"Condividi feedback"}},function(e,t){e.exports={ARIAFOOTNOTELBL:"フットノートポップアップを開く",ARIAENDNOTELBL:"クリックしてエンドノートポップアップを開く",ARIACLICKABLELBL:"クリック可能",ARIACLOSEPOPUPLBL:"ポップアップを閉じる",ARIAOPENOUTLINELBL:"タップしてアウトラインを表示",ARIACLOSEOUTLINELBL:"アウトライン表示を閉じる",ARIACOLLAPSENAVLBL:"Enter キーを押して左側のナビゲーションを切り替えます",ARIATAPTOPREVIEWLBL:"タップして、アンカーに設定されていない注釈のプレビューを表示",BACK_TO_TOP:"先頭に戻る",BEGINNING_OF_DOCUMENT:"文書の先頭",CANCEL:"キャンセル",CONTINUE:"続行",COMPLETED:"完了",COPY_CHOICE:"コピー",DOCUMENT_COMPLETE:"文書が完了しました",FIX_CONTENT:"元のページを表示しますか",FIX_IT_ACTION:"修正",FIX_IT_FAILURE_TITLE:"コンテンツの形式を指定し直すことができません",FIX_IT_FAILURE_TIMEOUT:"操作に時間がかかりすぎています",FIX_IT_FAILURE_LIST:"ページが、複数のページにわたるリストまたはテーブル内にあります",FIX_IT_FAILURE_MIDDLE_NODE:"不明なテキストノードの中ほどに表示されたページは複数のページにわたります",FIX_IT_FAILURE_START_NODE:"不明なテキストノードの最初に表示されたページは複数のページにわたります",FIX_IT_FAILURE_END_NODE:"不明なテキストノードの最後に表示されたページは複数のページにわたります",GREAT_JOB:"よくできました。すべてを読みました。",HIGHLIGHTARIALBL:"ハイライト表示",HIGHLIGHT_CHOICE:"ハイライト",NAVIG_PROMPT:"タップしてアウトラインを表示",NOT_LOOKING_RIGHT:"元のページを表示しますか?",OUTLINE:"アウトライン",OVERVIEW_PROMPT:"概要を表示",PROVIDE_FEEDBACK:"フィードバックを提供",SECTION:"セクション",SECTIONS:"セクション",STRIKETHROUGHARIALBL:"取り消し線",STRIKETHROUGH_CHOICE:"取り消し線",TITLE_SECTION:"タイトルセクション",TAP_TO_VIEW:"タップして表示",TAP_FIX_CONTENT:"このセクションをオリジナルのレイアウトに戻します。",UNDERLINEARIALBL:"下線",UNDERLINE_CHOICE:"下線",UNDO:"取り消し",SHARE_FEEDBACK:"フィードバックを共有"}},function(e,t){e.exports={ARIAFOOTNOTELBL:"Klikk for å åpne fotnote-popupvindu",ARIAENDNOTELBL:"Klikk for å åpne sluttnote-popupvindu",ARIACLICKABLELBL:"Klikkbar",ARIACLOSEPOPUPLBL:"Lukk popupvindu",ARIAOPENOUTLINELBL:"Trykk for å vise disposisjon",ARIACLOSEOUTLINELBL:"Lukk disposisjonsvisning",ARIACOLLAPSENAVLBL:"Trykk på Enter for å slå venstre navigering på/av",ARIATAPTOPREVIEWLBL:"Trykk for å vise forhåndsvisning av ikke forankret kommentar",BACK_TO_TOP:"Tilbake til toppen",BEGINNING_OF_DOCUMENT:"Begynnelsen av dokumentet",CANCEL:"Avbryt",CONTINUE:"Fortsett",COMPLETED:"Fullført",COPY_CHOICE:"Kopier",DOCUMENT_COMPLETE:"Dokument fullført",FIX_CONTENT:"Vis opprinnelig side",FIX_IT_ACTION:"Fiks",FIX_IT_FAILURE_TITLE:"Innhold kan ikke omformateres",FIX_IT_FAILURE_TIMEOUT:"Det tok for lang tid å fullføre operasjonen",FIX_IT_FAILURE_LIST:"Side er i en liste eller tabell som går over flere sider",FIX_IT_FAILURE_MIDDLE_NODE:"Side vistes midt i en tvetydig tekstnode som ble funnet å gå over flere sider",FIX_IT_FAILURE_START_NODE:"Side vistes ved starten av en tvetydig tekstnode som ble funnet å gå over flere sider",FIX_IT_FAILURE_END_NODE:"Side vistes ved slutten av en tvetydig tekstnode som ble funnet å gå over flere sider",GREAT_JOB:"Flott jobb, du leste alt!",HIGHLIGHTARIALBL:"Uthevet",HIGHLIGHT_CHOICE:"Utheving",NAVIG_PROMPT:"Trykk for å vise disposisjon",NOT_LOOKING_RIGHT:"Vise opprinnelig side?",OUTLINE:"Disposisjon",OVERVIEW_PROMPT:"Vis oversikt",PROVIDE_FEEDBACK:"Gi tilbakemelding",SECTION:"inndeling",SECTIONS:"inndelinger",STRIKETHROUGHARIALBL:"Gjennomstreking",STRIKETHROUGH_CHOICE:"Gjennomstreking",TITLE_SECTION:"Tittelinndeling",TAP_TO_VIEW:"Trykk for å vise",TAP_FIX_CONTENT:"Sett denne delen tilbake til opprinnelig oppsett.",UNDERLINEARIALBL:"Understreket",UNDERLINE_CHOICE:"Understreking",UNDO:"Angre",SHARE_FEEDBACK:"Del tilbakemelding"}},function(e,t){e.exports={ARIAFOOTNOTELBL:"Klik om de voetnootpop-up te openen",ARIAENDNOTELBL:"Klik om de eindnootpop-up te openen",ARIACLICKABLELBL:"Klikbaar",ARIACLOSEPOPUPLBL:"Pop-up sluiten",ARIAOPENOUTLINELBL:"Tik om de contour weer te geven",ARIACLOSEOUTLINELBL:"Contourweergave sluiten",ARIACOLLAPSENAVLBL:"Druk op Enter om te schakelen naar de linkse navigatie",ARIATAPTOPREVIEWLBL:"Tik voor een voorvertoning van niet-verankerde annotaties",BACK_TO_TOP:"Terug naar boven",BEGINNING_OF_DOCUMENT:"Begin van document",CANCEL:"Annuleren",CONTINUE:"Doorgaan",COMPLETED:"Voltooid",COPY_CHOICE:"Kopiëren",DOCUMENT_COMPLETE:"Document voltooid",FIX_CONTENT:"Oorspronkelijke pagina tonen",FIX_IT_ACTION:"Corrigeren",FIX_IT_FAILURE_TITLE:"Inhoud kan niet opnieuw worden opgemaakt",FIX_IT_FAILURE_TIMEOUT:"De bewerking duurde te lang om te voltooien",FIX_IT_FAILURE_LIST:"De pagina staat in een lijst of tabel die meerdere pagina's beslaat",FIX_IT_FAILURE_MIDDLE_NODE:"De pagina verschijnt in het midden van een ambigu tekstknooppunt dat meerdere pagina's beslaat",FIX_IT_FAILURE_START_NODE:"De pagina verschijnt aan het begin van een ambigu tekstknooppunt dat meerdere pagina's beslaat",FIX_IT_FAILURE_END_NODE:"De pagina verschijnt aan het einde van een ambigu tekstknooppunt dat meerdere pagina's beslaat",GREAT_JOB:"Prima, u hebt alles gelezen!",HIGHLIGHTARIALBL:"Gemarkeerd",HIGHLIGHT_CHOICE:"Markeren",NAVIG_PROMPT:"Tik om de contour weer te geven",NOT_LOOKING_RIGHT:"Oorspronkelijke pagina tonen?",OUTLINE:"Contour",OVERVIEW_PROMPT:"Overzicht weergeven",PROVIDE_FEEDBACK:"Feedback geven",SECTION:"sectie",SECTIONS:"secties",STRIKETHROUGHARIALBL:"Doorhalen",STRIKETHROUGH_CHOICE:"Doorhalen",TITLE_SECTION:"Titelsectie",TAP_TO_VIEW:"Tik om weer te geven",TAP_FIX_CONTENT:"Herstel de oorspronkelijke lay-out van deze sectie.",UNDERLINEARIALBL:"Onderstreept",UNDERLINE_CHOICE:"Onderstrepen",UNDO:"Ongedaan maken",SHARE_FEEDBACK:"Feedback delen"}},function(e,t){e.exports={ARIAFOOTNOTELBL:"Clique para abrir a pop-up de nota de rodapé",ARIAENDNOTELBL:"Clique para abrir a pop-up de nota final",ARIACLICKABLELBL:"Clicável",ARIACLOSEPOPUPLBL:"Fechar pop-up",ARIAOPENOUTLINELBL:"Toque para mostrar o resumo",ARIACLOSEOUTLINELBL:"Fechar exibição de resumo",ARIACOLLAPSENAVLBL:"Pressione a tecla Enter para alternar para a navegação do lado esquerdo",ARIATAPTOPREVIEWLBL:"Toque para exibir a visualização de anotação não-ancorada",BACK_TO_TOP:"Voltar ao topo",BEGINNING_OF_DOCUMENT:"Início do documento",CANCEL:"Cancelar",CONTINUE:"Continuar",COMPLETED:"Concluído",COPY_CHOICE:"Copiar",DOCUMENT_COMPLETE:"Documento concluído",FIX_CONTENT:"Mostrar página original",FIX_IT_ACTION:"Corrigir",FIX_IT_FAILURE_TITLE:"O conteúdo não pode ser reformatado",FIX_IT_FAILURE_TIMEOUT:"A operação demorou muito para ser concluída",FIX_IT_FAILURE_LIST:"A página está em uma lista ou tabela que se estende por várias páginas",FIX_IT_FAILURE_MIDDLE_NODE:"A página foi exibida no meio de um nó de texto ambíguo encontrado entre várias páginas",FIX_IT_FAILURE_START_NODE:"A página foi exibida no início de um nó de texto ambíguo encontrado entre várias páginas",FIX_IT_FAILURE_END_NODE:"A página foi exibida no final de um nó de texto ambíguo encontrado entre várias páginas",GREAT_JOB:"Muito bem, você concluiu a leitura!",HIGHLIGHTARIALBL:"Realçado",HIGHLIGHT_CHOICE:"Realçar",NAVIG_PROMPT:"Toque para mostrar o resumo",NOT_LOOKING_RIGHT:"Mostrar página original?",OUTLINE:"Resumo",OVERVIEW_PROMPT:"Mostrar visão geral",PROVIDE_FEEDBACK:"Fornecer feedback",SECTION:"seção",SECTIONS:"seções",STRIKETHROUGHARIALBL:"Tachar texto",STRIKETHROUGH_CHOICE:"Tachar texto",TITLE_SECTION:"Seção de título",TAP_TO_VIEW:"Toque para visualizar",TAP_FIX_CONTENT:"Restaurar esta seção para o layout original.",UNDERLINEARIALBL:"Sublinhado",UNDERLINE_CHOICE:"Sublinhar texto",UNDO:"Desfazer",SHARE_FEEDBACK:"Compartilhar Feedback"}},function(e,t){e.exports={ARIAFOOTNOTELBL:"Klicka för att öppna popup för fotnot",ARIAENDNOTELBL:"Klicka för att öppna popup för slutnot",ARIACLICKABLELBL:"Klickbar",ARIACLOSEPOPUPLBL:"Stäng popup-fönster",ARIAOPENOUTLINELBL:"Tryck för att visa kontur",ARIACLOSEOUTLINELBL:"Stäng konturläge",ARIACOLLAPSENAVLBL:"Tryck på retur för att växla navigeringsfönstret till vänster",ARIATAPTOPREVIEWLBL:"Tryck för att förhandsvisa flytande kommentarer",BACK_TO_TOP:"Till början",BEGINNING_OF_DOCUMENT:"Dokumentets början",CANCEL:"Avbryt",CONTINUE:"Fortsätt",COMPLETED:"Slutfört",COPY_CHOICE:"Kopiera",DOCUMENT_COMPLETE:"Dokument slutfört",FIX_CONTENT:"Visa originalsidan",FIX_IT_ACTION:"Korrigera",FIX_IT_FAILURE_TITLE:"Innehållet kan inte formateras igen",FIX_IT_FAILURE_TIMEOUT:"Åtgärden tog för lång tid",FIX_IT_FAILURE_LIST:"Sida finns i en lista eller tabell som sträcker sig över flera sidor",FIX_IT_FAILURE_MIDDLE_NODE:"Sidan finns i mitten av en tvetydig textnod som sträcker sig över flera sidor",FIX_IT_FAILURE_START_NODE:"Sidan finns i början av en tvetydig textnod som sträcker sig över flera sidor",FIX_IT_FAILURE_END_NODE:"Sidan finns i slutet av en tvetydig textnod som sträcker sig över flera sidor",GREAT_JOB:"Bra gjort, du har läst allt!",HIGHLIGHTARIALBL:"Markerad",HIGHLIGHT_CHOICE:"Markera",NAVIG_PROMPT:"Tryck för att visa kontur",NOT_LOOKING_RIGHT:"Visa originalsidan?",OUTLINE:"Kontur",OVERVIEW_PROMPT:"Visa översikt",PROVIDE_FEEDBACK:"Skicka feedback",SECTION:"område",SECTIONS:"områden",STRIKETHROUGHARIALBL:"Genomstruken",STRIKETHROUGH_CHOICE:"Genomstruken",TITLE_SECTION:"Rubrikdel",TAP_TO_VIEW:"Tryck för att visa",TAP_FIX_CONTENT:"Ändra det här avsnittet till den ursprungliga layouten.",UNDERLINEARIALBL:"Understruken",UNDERLINE_CHOICE:"Stryk under",UNDO:"Ångra",SHARE_FEEDBACK:"Ge feedback"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var B=d(n(1)),o=d(n(64)),r=d(n(65)),s=d(n(66)),l=d(n(67)),u=d(n(4)),U=d(n(0)),E=n(10),h=n(2),c=n(7),G=n(3),H=n(5),X=n(6);function d(e){return e&&e.__esModule?e:{default:e}}var V="ADBE_Obj_stickyPlaceholder",f=U.default.PLATFORMS.MOBILE|U.default.PLATFORMS.DCWEB|U.default.PLATFORMS.DXBROWSER,A=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(p,u.default),a(p,[{key:"getInterface",value:function(){var i=this;return{applyFilter:function(e){return i._applyFilter(e)},applyImageSelector:function(e,t,n){return i._applyImageSelector(e,t,n)},applyTextGlyphSelector:function(e,t,n){return i._applyTextGlyphSelector(e,t,n)},applyTextRangeSelector:function(e,t,n){return i._applyTextRangeSelector(e,t,n)},clearSelection:function(){return i._clearSelection()},createAnnotParams:function(e,t,n,a){return i._createAnnotParams(e,t,n,a)},createImageSelector:function(e,t,n){return i._createImageSelector(e,t,n)},createTextGlyphSelector:function(e,t,n,a){return i._createTextGlyphSelector(e,t,n,a)},createTextRangeSelector:function(e,t,n,a){return i._createTextRangeSelector(e,t,n,a)},deleteComment:function(e){return i._deleteComment(e)},deselectComment:function(){return i._selectComment()},enterCreationMode:function(e,t,n){return i._enterCreationMode(e,t,n)},enterStickyNoteCreationMode:function(){return i._enterStickyNoteCreationMode()},exitCreationMode:function(){return i._exitCreationMode()},exitStickyNoteCreationMode:function(e){return i._exitStickyNoteCreationMode(e)},getCommentRect:function(e){return i._getCommentRect(e)},handleComment:function(e,t,n){return i._handleComment(e,t,n)},removeFilter:function(){return i._removeFilter()},selectComment:function(e){return i._selectComment(e)}}}},{key:"_handleDocumentReady",value:function(){this._updateMap()}},{key:"_init",value:function(){if(this._setUpSelectEvents(),H.Platform.isStandalone){var e="\n        <div id='commentingPanel' class='dx-commenting-panel-container'>\n          <div class='dx-commenting-trigger'>Commenting</div>\n          <div class='dx-commenting-options'>\n            <div data-comment-type='"+U.default.COMMENT_TYPES.HIGHLIGHT+"' class='dx-commenting-action'>HL</div>\n            <div data-comment-type='"+U.default.COMMENT_TYPES.STRIKETHROUGH+"' class='dx-commenting-action'>ST</div>\n            <div data-comment-type='"+U.default.COMMENT_TYPES.UNDERLINE+"' class='dx-commenting-action'>UL</div>\n            <div data-comment-type='"+U.default.COMMENT_TYPES.STICKY+"' class='dx-commenting-action'>Sticky</div>\n            <div class='dx-commenting-exit'>X</div>\n          </div>\n        </div>\n      ";(0,B.default)("body").append(e),(0,B.default)("."+U.default.DX.DOCUMENTWRAPPERCLASS).css("margin-bottom","40px"),(0,B.default)("body").append('\n        <div id="commentDeleteButton" class="dx-comment-delete-button">\n          <div>Delete</div>\n        </div>')}this._setUpEvents()}},{key:"_load",value:function(e){var t=e.attr("id"),n=e.get(0);this._docSectionIds.push(t);var a={el:n,selector:e};this._docSectionMap[t]=a}},{key:"_applyAnchoredAnnot",value:function(e,t,n){var a=void 0,i=void 0;e===U.default.COMMENT_TYPES.STICKY?(i=U.default.DX.COMMENTCLASS+" "+U.default.DX.ABSOLUTECOMMENTCLASS+" "+U.default.DX.STICKYNOTECLASS,n&&(i=U.default.DX.COMMENTCLASS+" "+U.default.DX.STICKYNOTECLASS+" "+U.default.DX.STICKYNOTEPLACEHOLDERCLASS),a=(0,B.default)('<img class="'+i+" "+U.default.DX.DONOTRESIZECLASS+'" />')):e===U.default.COMMENT_TYPES.CARET&&(i=U.default.DX.COMMENTCLASS+" "+U.default.DX.ABSOLUTECOMMENTCLASS+" "+U.default.DX.CARETCOMMENTCLASS,a=(0,B.default)('<span class="'+i+'"></span>'));var o=X.UtilFunctions.wrapGlyph(t,!0);return 0<o.length&&(e===U.default.COMMENT_TYPES.STICKY?o.append(a):e===U.default.COMMENT_TYPES.CARET&&o.prepend(a),a.data("selector",t),a.data("wrapperId",o.attr("id")),e===U.default.COMMENT_TYPES.STICKY?this._setStickyAnnotPosition(a):e===U.default.COMMENT_TYPES.CARET&&this._setCaretAnnotPosition(a)),a}},{key:"_applyAnnotText",value:function(e,t,n){var a=[],i=X.UtilFunctions.getRgbaFromHex(e,t),o=U.default.DX.COMMENTCLASS+" "+n;if(this._removeSelectEvents(),!this._selectionInfo.isEmpty()){var r=E.DomSelector.normalizeRange(this._selectionInfo.range),s=(0,B.default)('<span class="'+o+'" style="--color: '+i+'"></span>');r.textNodes().filter(function(e){return e.nodeValue&&0<X.UtilFunctions.trim(e.nodeValue).length}).forEach(function(e){a.push((0,B.default)(e).wrapAll(s).parent().show()[0])}),X.UtilFunctions.removeSelection()}return this._setUpSelectEvents(),(0,B.default)(a)}},{key:"_applyFilter",value:function(e){var n=this;e.forEach(function(e){var t=n._getAnnotById(e.id);e.show?t.removeClass(U.default.DX.HIDDENCOMMENTCLASS):(t.addClass(U.default.DX.HIDDENCOMMENTCLASS),t.removeClass(U.default.DX.SELECTEDCLASS))})}},{key:"_applyImageSelector",value:function(u,d,c,e){var f=this,E=c.elementId,h=c.topOffset,A=c.leftOffset,p=d.type,g=(0,B.default)("#"+E);if(0<g.length){var T=U.default.DX.COMMENTCLASS+" "+U.default.DX.ABSOLUTECOMMENTCLASS+" "+U.default.DX.STICKYNOTECLASS;e?T=U.default.DX.COMMENTCLASS+" "+U.default.DX.STICKYNOTECLASS+" "+U.default.DX.STICKYNOTEPLACEHOLDERCLASS:this._deleteComment(V),0<this._getAnnotById(u).length&&this._deleteComment(u);var v=g.find("img"),t=function(){if(p!==U.default.COMMENT_TYPES.STICKY||A<-50||150<A||h<-50||150<h){var e=f._createTextGlyphSelector(E,1,A,h);f._applyTextGlyphSelector(u,d,e)}else{var t=v.width(),n=v.height();g.hasClass(U.default.DOCUMENT.WATERMARKCLASS)||g.css("position","relative");var a=document.createElement("img");a.setAttribute("class",T+" "+U.default.DX.DONOTRESIZECLASS),a.style.left=A+"%",a.style.top=h+"%",a.style.display="none",g.append(a);var i=(0,B.default)(a);if(i.data("selector",c),0<i.length){var o=Number.parseFloat(i.css("left"))/100,r=Number.parseFloat(i.css("top"))/100,s=i.width(),l=i.height();i.css("--color",X.UtilFunctions.getRgbaFromHex(d.color)),i.css({left:t*o-s/2,top:n*r-l/2,display:""}),f._setAnnotationName(i,u),f._setClickEvents(i,u,!0)}}};v.get(0).complete?t():v.on("load",function(){t()})}}},{key:"_applyTextGlyphSelector",value:function(e,t,n,a){var i=t.type,o=n.elementId,r=n.leftOffset,s=n.topOffset;if(i!==U.default.COMMENT_TYPES.STICKY||a||this._deleteComment(V),0<this._getAnnotById(e).length&&this._deleteComment(e),i===U.default.COMMENT_TYPES.STICKY&&-50<=r&&r<=150&&-50<=s&&s<=150){var l=this._applyAnchoredAnnot(i,n,a);0<l.length&&this._setAnnotationProperties(l,e,t)}else{var u=this._getElementForUnanchoredAnnot(o),d=u.$element,c=u.$originalElement;if(0<d.length&&0<c.length){var f=U.default.DX.COMMENTCLASS+" "+U.default.DX.ABSOLUTECOMMENTCLASS+" ";switch(i){case U.default.COMMENT_TYPES.STICKY:f+=""+U.default.DX.FLOATINGSTICKYCLASS;break;case U.default.COMMENT_TYPES.FREETEXT:f+=""+U.default.DX.FREETEXTCLASS;break;case U.default.COMMENT_TYPES.DRAWING:case U.default.COMMENT_TYPES.SHAPE:f+=""+U.default.DX.DRAWINGCOMMENTCLASS;break;case U.default.COMMENT_TYPES.STAMP:f+=""+U.default.DX.STAMPCOMMENTCLASS;break;default:return void G.Log.error("Unknown unanchored comment type: "+i)}var E=X.UtilFunctions.hasAnyClass(c,U.default.DOCUMENT.HEADERCLASS+" "+U.default.DOCUMENT.FOOTERCLASS);E&&(c.removeClass(""+U.default.DX.UNSELECTABLECLASS),c.show());var h=X.UtilFunctions.wrapGlyph(n),A=h.offset().top;if(E&&(c.hide(),c.addClass(""+U.default.DX.UNSELECTABLECLASS)),"IMG"===h.get(0).nodeName){var p=h.data("stackedAnnotPositions");p&&0!==p.length||(this._updateImageStackedAnnotPositions(h),p=h.data("stackedAnnotPositions"));var g=h.height(),T=g*(s/100);s<0?T=0:100<s&&(T=g);var v=0;p.forEach(function(e){e<=T&&(v=A+e)}),A=v}var _=d.find("."+U.default.DX.UNANCHOREDCOMMENTCONTAINERCLASS),S=[];if(0<_.length&&(S=_.filter(function(e,t){return(0,B.default)(t).offset().top===A})),0===S.length)S=this._createStackedAnnotContainer(d,A,e,f);else{S.removeClass(U.default.DX.COMMENTDONTCLOSE);var C=S.find("."+U.default.DX.ABSOLUTECOMMENTCLASS);C.hasClass(U.default.DX.SELECTEDCLASS)||S.removeClass(U.default.DX.COMMENTCONTAINEROPEN);var O=C.length+1,m='<span class="'+f+'"></span>';(0,B.default)(m).insertAfter(C.last());var I=S.find("."+U.default.DX.UNANCHOREDCOMMENTNUMBERCLASS);I.text(O),O<10?I.css("right","-0.1875rem"):O<100?I.css("right","-0.4375rem"):I.css("right","-0.75rem")}var N=S.find("."+U.default.DX.ABSOLUTECOMMENTCLASS).last();0<N.length&&(N.css("--color",X.UtilFunctions.getRgbaFromHex(t.color)),this._setAnnotationName(N,e),N.data({name:e,params:t,selector:n,wrapperId:h.attr("id")}),this._setClickEvents(N,e))}}}},{key:"_applyTextRangeSelector",value:function(e,t,n){var a=t.type,i=t.color,o=t.opacity,r=t.hasNotes,s=[],l=this._getAnnotById(e);if(0<l.length){var u=X.UtilFunctions.getRgbaFromHex(i,o);return l.css("--color",u),void this._updateCommentReplies(e,i,r)}switch(a!==U.default.COMMENT_TYPES.CARET&&(this._selectionInfo=E.DomSelector.createSelectionFromSelector(n)),a){case U.default.COMMENT_TYPES.HIGHLIGHT:s=this._applyAnnotText(i,o,U.default.DX.HIGHLIGHTCLASS);break;case U.default.COMMENT_TYPES.STRIKETHROUGH:s=this._applyAnnotText(i,o,U.default.DX.STRIKETHROUGHCLASS);break;case U.default.COMMENT_TYPES.UNDERLINE:s=this._applyAnnotText(i,o,U.default.DX.UNDERLINECLASS);break;case U.default.COMMENT_TYPES.CARET:s=this._applyAnchoredAnnot(a,n);break;default:G.Log.error("Invalid type: "+a)}0<s.length&&this._setAnnotationProperties(s,e,t)}},{key:"_createStackedAnnotContainer",value:function(e,t,n,a){var i=this,o=[];e.css("position","relative");var r=c.Localization.translate(U.default.PHRASES.TAP_TO_VIEW),s=c.Localization.translate(U.default.ACCESSIBILITY.ARIATAPTOPREVIEWLBL),l=Number.parseFloat((0,B.default)("."+U.default.DOCUMENT.DOCUMENTCLASS).css("margin-left"))-6,u='\n      <div\n        style="top: '+(t-e.offset().top)+"px; left: -"+l+'px;"\n        class="'+U.default.DX.UNANCHOREDCOMMENTCONTAINERCLASS+" "+U.default.DX.COMMENTCONTAINEROPEN+" "+U.default.DX.COMMENTDONTCLOSE+'"\n      >\n        <div class="'+U.default.DX.UNANCHOREDCOMMENTICONCONTAINERCLASS+'">\n          <span class="'+U.default.DX.UNANCHOREDCOMMENTICONCLASS+'"></span>\n          <span class="'+U.default.DX.UNANCHOREDCOMMENTNUMBERCLASS+'">1</span>\n        </div>\n        <div class="'+U.default.DX.UNANCHOREDCOMMENTLISTCLASS+'">\n          <span class="'+a+'"></span>\n          <span\n            class="'+U.default.DX.COMMENTPREVIEWBUTTONCLASS+'"\n            lang="'+r.lang+'"\n            tabindex="0"\n            role="button"\n            aria-label="'+s.phrase+'"\n          >\n            '+r.phrase+"\n          </span>\n        </div>\n      </div>\n    ";o=(0,B.default)(u),e.append(o),o.find("."+U.default.DX.UNANCHOREDCOMMENTICONCONTAINERCLASS).on("tap",function(e){e.preventDefault(),e.stopPropagation(),o.addClass(U.default.DX.COMMENTCONTAINEROPEN),i._sendPlatformSelect(n)});var d=o.find("."+U.default.DX.COMMENTPREVIEWBUTTONCLASS);return 0<d.length&&d.on("tap",function(e){e.preventDefault(),e.stopPropagation();var t=i._selectedCommentId;H.Platform.isStandalone?((0,B.default)("."+U.default.DX.DOCUMENTWRAPPERCLASS).append('\n            <div class="dx-preview-container">\n              <div class="dx-preview-header"><span class="dx-preview-close">X</span></div>\n              <div class="dx-preview-content">Annotation Preview for '+t+"</div>\n            </div>\n          "),(0,B.default)(".dx-preview-close").on("tap",function(e){e.preventDefault(),(0,B.default)(".dx-preview-container").remove()})):H.Platform.showAnnotPreview(t)}),o}},{key:"_clearSelection",value:function(){window.getSelection().removeAllRanges(),h.Events.publish(U.default.EVENTS.CLOSECONTEXTMENU)}},{key:"_createAnnotParams",value:function(e,t,n,a){var i=t;if(!i||"none"===i)switch(e){case U.default.COMMENT_TYPES.HIGHLIGHT:i="#FFFF00";break;case U.default.COMMENT_TYPES.STRIKETHROUGH:i="#FF0000";break;case U.default.COMMENT_TYPES.UNDERLINE:i="#00FF00";break;case U.default.COMMENT_TYPES.STICKY:i="#FFFF00"}return new o.default(e,i,n,a)}},{key:"_createClassicSelectorFromRangeData",value:function(e){var t=(0,B.default)(".ADBE_E_Document"),n=X.UtilFunctions.xPathEvaluate(e.start,t)[0],a=X.UtilFunctions.xPathEvaluate(e.end,t)[0];if(!n||!a)return null;var i=this._extractNodeIdAndOffsetForClassic(n,e.startOffset),o=this._extractNodeIdAndOffsetForClassic(a,e.endOffset);return{startId:i.id,startOffset:i.offset,endId:o.id,endOffset:o.offset}}},{key:"_createImageSelector",value:function(e,t,n){return new r.default(e,t,n)}},{key:"_createTextGlyphSelector",value:function(e,t,n,a){return new s.default(e,t,n,a)}},{key:"_createTextRangeSelector",value:function(e,t,n,a){return new l.default(e,t,n,a)}},{key:"_createStickyNoteFromTouchedObj",value:function(e,t,n){var a=!!n,i=this._createAnnotParams(U.default.COMMENT_TYPES.STICKY,"#FFFF00",0),o=null,r={x:e.pageX,y:e.pageY,clientX:e.clientX,clientY:e.clientY},s=t,l=(0,B.default)(s),u=l.contents(),d=!1,c=null,f=0;if(l.hasClass(U.default.DOCUMENT.DOCUMENTCLASS)||l.hasClass(U.default.DX.DOCUMENTWRAPPERCLASS)||l.hasClass(U.default.DOCUMENT.SECTIONCLASS)||l.hasClass(U.default.DOCUMENT.WATERMARKCLASS)||l.hasClass(U.default.DX.HEADINGCONTAINERCLASS)||0<l.parents("."+U.default.DX.HEADINGCONTAINERCLASS).length||0<l.parents("."+U.default.DX.FAKEDOCUMENTCLASS).length||0===u.text().trim().length){var E=Object.values(this._docSectionMap).find(function(e,t){var n=r.y,a=e.bounds;return n>a.top&&n<=a.bottom});if(E){var h=X.UtilFunctions.getSectionElementTags(E.selector),A=h.length,p=h.find(function(e,t){var n=r.y,a=e.bounds,i=a.bottom;return a.top<n&&n<=i+(t===A-1?50:0)});if(p){var g=(0,B.default)("."+U.default.DOCUMENT.DOCUMENTCLASS).offset().left,T=p.selector.find("img").not("."+U.default.DX.COMMENTCLASS).first(),v=p.bounds,_=p.selector.height(),S=p.selector.width();r.x<v.left?r.x=v.left:r.x>v.left+S&&(r.x=v.left+S),r.y<v.top?r.y=v.top:r.y>v.top+_&&(r.y=v.top+_),r.clientX=r.x-X.UtilFunctions.getRootScrollingObject().scrollLeft(),r.clientY=r.y-X.UtilFunctions.getRootScrollingObject().scrollTop(),T.is("img")&&0<T.length?(s=T.get(0),l=T):r.clientX<g&&(f=l.hasClass(U.default.DOCUMENT.SECTIONCLASS)?2:1)}}}if("IMG"===s.nodeName){var C=l.offset(),O=C.left,m=C.top,I=l.width(),N=l.height(),L=(r.x-O)/I*100;(100<L||L<0)&&(L=100);var b=(r.y-m)/N*100;100<b?b=100:b<0&&(b=0),c=X.UtilFunctions.extractParentNodeForClassic(s).getAttribute("id"),o=this._createImageSelector(c,L,b),d=!0}else{var y=X.UtilFunctions.extractRangeDataFromPoint(r.clientX,r.clientY,!0),D=X.UtilFunctions.adjustOffsetForClassic(y.node,y.offset);c=X.UtilFunctions.extractParentNodeForClassic(y.node).getAttribute("id"),0<f&&(D+=f);var R=(0,B.default)("#"+c).text().length;R<=D&&(D=R-1);var P=X.UtilFunctions.wrapGlyph({elementId:c,offset:D}),k=P.offset(),M=(r.x-k.left)/P.width()*100,w=(r.y-k.top)/P.height()*100;M<0?M=0:100<M&&(M=100),w<0?w=0:100<w&&(w=100),o=this._createTextGlyphSelector(c,D,M,w)}d?this._applyImageSelector(V,i,o,!0):this._applyTextGlyphSelector(V,i,o,!0);var x=Object.assign({},o.toObject(),i.toObject());if(H.Platform.isStandalone){G.Log.log("Sticky annot event"),G.Log.log(a?{moveAnnot:x}:{createAnnot:x});var F=n;a?this._sendPlatformSelect():F=c+"_"+Date.now(),d?this._applyImageSelector(F,i,o):this._applyTextGlyphSelector(F,i,o)}else H.Platform.isStandalone||(a?H.Platform.moveAnnot(x):H.Platform.createAnnot(x))}},{key:"_deleteComment",value:function(e){var t=this._getAnnotById(e);if(0<t.length)if(t.hasClass(U.default.DX.HIGHLIGHTCLASS)||t.hasClass(U.default.DX.STRIKETHROUGHCLASS)||t.hasClass(U.default.DX.UNDERLINECLASS))this._deleteTextAnnot(e,t);else{var n=t.data("wrapperId"),a=t.parents("."+U.default.DX.UNANCHOREDCOMMENTCONTAINERCLASS);0<a.length?this._deleteUnanchoredAnnot(t,a):this._deleteAnchoredAnnot(t),n&&e!==V&&X.UtilFunctions.unwrapGlyph(n)}}},{key:"_deleteAnchoredAnnot",value:function(e){e.remove()}},{key:"_deleteTextAnnot",value:function(e,t){for(var n=0;n<t.length;++n){var a=t.eq(n),i=t.get(n),o=this._getParentContainerNode(i);if(a.removeClass(e),-1===i.className.indexOf("ADBE_Obj"))a.contents().unwrap(),o.normalize();else{var r=Array.from(i.classList).find(function(e){return-1!==e.indexOf("ADBE_Obj")});if(r){var s=a.siblings("."+r);0===s.length?(s=a.parent()).prepend(a.contents()):s.append(a.contents()),a.remove(),o&&o.normalize(),s.get(0).normalize()}}}}},{key:"_deleteUnanchoredAnnot",value:function(e,t){e.remove();var n=t.find("."+U.default.DX.ABSOLUTECOMMENTCLASS).length;t.find("."+U.default.DX.UNANCHOREDCOMMENTNUMBERCLASS).text(n),0===n?t.remove():1===n&&t.addClass(U.default.DX.COMMENTCONTAINEROPEN).addClass(U.default.DX.COMMENTDONTCLOSE)}},{key:"_extractNodeIdAndOffsetForClassic",value:function(e,t){for(var n=t,a=e;null===a.getAttribute("id");){for(var i=a.previousSibling;null!==i;)i.nodeType===Node.TEXT_NODE?n+=i.textContent.length:n+=(0,B.default)(i).text().length,i=i.previousSibling;a=a.parentNode}return{id:a.getAttribute("id"),offset:n}}},{key:"_enterCreationMode",value:function(l,u,d){var c=this;switch(h.Events.publish(U.default.EVENTS.COMMENTCREATIONENTER),l){case U.default.COMMENT_TYPES.HIGHLIGHT:case U.default.COMMENT_TYPES.STRIKETHROUGH:case U.default.COMMENT_TYPES.UNDERLINE:break;default:return void G.Log.error("Invalid comment type: "+l)}if(this._isInCreationMode&&this._exitCreationMode(),this._isInCreationMode=!0,H.Platform.isPlatform(U.default.PLATFORMS.IOS))this._creationModeOptions={type:l,color:u,opacity:d};else if(H.Platform.isPlatform(U.default.PLATFORMS.ANDROID)){this._removeSelectEvents(),this._eventsOff=!0;var f=(0,B.default)("."+U.default.DOCUMENT.DOCUMENTCLASS);f.on("taphold.creationHold",function(e){return e.preventDefault(),e.stopPropagation(),!1}),f.on("tapstart.creation",function(e){return function n(i){var o=!1,r=null,s=document.createRange();f.on("tapend.scroll",function(e){r&&clearTimeout(r),o=!0,f.off("tapend.scroll")}),f.on("tapmove.scroll",function(e){r&&clearTimeout(r),o=!0,f.off("tapmove.scroll")}),r=setTimeout(function(){if(c._isCommentClick)c._isCommentClick=!1;else{if(r&&clearTimeout(r),f.off("tapend.scroll"),f.off("tapmove.scroll"),!o){X.UtilFunctions.setDocumentScrollability(),H.Platform.isStandalone&&(0,B.default)(".ADBE_E_Document").append('\n                <div id="inst" style="position: fixed; width: 100%; left: 0; top: 70px; display: flex; align-items: center; justify-content: center;">\n                  <div style="padding: 10px; text-align: center; border: 1px solid black; border-radius: 5px; background: #FFF;">\n                    Hold and drag to create comment\n                  </div>\n                </div>\n              ');var e=i.touches?i.touches[0]:i,t=X.UtilFunctions.extractRangeDataFromPoint(e.clientX,e.clientY,!0);if(t){(s=document.createRange()).setStart(t.node,t.offset),s.setEnd(t.node,t.offset);var a=window.getSelection();a.removeAllRanges(),a.addRange(s),f.on("tapmove.creation",function(e){e.preventDefault();var t=e.touches?e.touches[0]:e,n=X.UtilFunctions.extractRangeDataFromPoint(t.clientX,t.clientY,!0);n.node&&n.offset&&(s.setEnd(n.node,n.offset),a.removeAllRanges(),a.addRange(s))}),f.on("tapend.creation",function(e){e.preventDefault(),H.Platform.isStandalone&&(0,B.default)("#inst").remove(),E.DomSelector.setSelection(s),c._selectionInfo=E.DomSelector.selectionInfo,f.off("tapmove.creation"),f.off("tapend.creation"),X.UtilFunctions.setDocumentScrollability(!0),c._pushRange(l,u,d)})}}H.Platform.platform===U.default.PLATFORMS.ANDROID&&(f.off("tapstart.creation"),f.on("tapstart.creation",function(e){return n(e)}),c._isCommentClick=!1)}},250)}(e)})}}},{key:"_enterStickyNoteCreationMode",value:function(){var a=this;if(!this._isInStickyNoteCreationMode){this._isInStickyNoteCreationMode=!0,this._removeSelectEvents(),this._eventsOff=!0,h.Events.publish(U.default.EVENTS.STICKYNOTECREATIONENTER);var i=(0,B.default)("."+U.default.DX.DOCUMENTWRAPPERCLASS);i.on("taphold.creationHold",function(e){return e.preventDefault(),e.stopPropagation(),!1}),(0,B.default)("."+U.default.DX.HEADINGCLASS).addClass(""+U.default.DX.NOACTIONHEADINGCLASS);var o=!1;H.Platform.platform===U.default.PLATFORMS.IOS&&i.on("tapstart.creation",function(e){e.stopPropagation(),o=!1}),i.on("tapmove.creation",function(e){e.stopPropagation(),o=!0}),i.on("tapend.creation",function(e){if(e.preventDefault(),e.stopPropagation(),!o){var t=a._extractTouchedObj(e,!0);if(!t)return G.Log.warn("Unable to get touched object"),void i.off("tapend.creation");var n=e.target;a._createStickyNoteFromTouchedObj(t,n),i.off("tapend.creation"),H.Platform.isStandalone&&a._exitStickyNoteCreationMode()}H.Platform.platform!==U.default.PLATFORMS.ANDROID&&!H.Platform.isStandalone||(o=!1)})}}},{key:"_exitCreationMode",value:function(){if(this._isInCreationMode){h.Events.publish(U.default.EVENTS.COMMENTCREATIONEXIT);var e=(0,B.default)("."+U.default.DOCUMENT.DOCUMENTCLASS);this._isInCreationMode=!1,this._eventsOff=!1,this._setUpSelectEvents(),X.UtilFunctions.setDocumentScrollability(!0),H.Platform.isStandalone&&(0,B.default)("#inst").remove(),(0,B.default)("#commentingPanel .dx-selected").removeClass("dx-selected"),e.off("taphold.creationHold"),e.off("tapstart.creation"),e.off("tapmove.creation"),e.off("tapend.creation")}}},{key:"_exitStickyNoteCreationMode",value:function(e){if(e&&this._deleteComment(V),this._isInStickyNoteCreationMode){var t=(0,B.default)("."+U.default.DX.DOCUMENTWRAPPERCLASS);h.Events.publish(U.default.EVENTS.STICKYNOTECREATIONEXIT),this._isInStickyNoteCreationMode=!1,this._eventsOff=!1,this._setUpSelectEvents(),(0,B.default)("#commentingPanel .dx-selected").removeClass("dx-selected"),t.off("taphold.creationHold"),t.off("tapstart.creation"),t.off("tapmove.creation"),t.off("tapend.creation"),(0,B.default)("\n      ."+U.default.DX.HEADINGCLASS+"."+U.default.DX.EXPANDEDHEADINGCLASS+"\n      ."+U.default.DX.HEADINGCLASS+"."+U.default.DX.COLLAPSEDHEADINGCLASS+"\n    ").removeClass(""+U.default.DX.NOACTIONHEADINGCLASS)}}},{key:"_extractTouchedObj",value:function(e,t){var n=void 0;return t?(n=e.originalEvent.changedTouches?e.originalEvent.changedTouches[0]:void 0)||e.clientX&&e.clientY&&e.pageX&&e.pageY&&(n={pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY}):n=e.touches?e.touches[0]:e,n}},{key:"_getAnnotById",value:function(e){return(0,B.default)("."+e)}},{key:"_getCommentRect",value:function(e){var t=this._getAnnotById(e),n=t.is(":hidden"),a=t.parents("."+U.default.DX.UNANCHOREDCOMMENTCONTAINERCLASS),i=t.get(0),o=(0,B.default)(this._getParentContainerNode(i)),r=o.is(":hidden");n&&(r&&o.show(),0<a.length&&(i=a.get(0)));var s=X.UtilFunctions.getBoundingDocRect(i);return r&&o.hide(),s}},{key:"_getElementForUnanchoredAnnot",value:function(e){for(var t=document.getElementById(e),n=t;n&&"SECTION"!==n.parentElement.tagName;)n=n.parentElement;return{$element:(0,B.default)(n),$originalElement:(0,B.default)(t)}}},{key:"_getElementTextNode",value:function(e){for(var t=null,n=e.childNodes,a=0;a<n.length;++a){var i=n[a];if(i.nodeType===Node.TEXT_NODE){t=i;break}}return t}},{key:"_getParentContainerNode",value:function(e){if(e.nodeType!==Node.TEXT_NODE&&0<e.classList.length&&!X.UtilFunctions.isAnnot(e))return e;for(var t=e.parentNode;t;){if(0<t.classList.length&&!X.UtilFunctions.isAnnot(t)){var n=t.getAttribute("id");if(n&&-1!==n.indexOf(U.default.DOCUMENT.ADBEIDPREFIX))return t}t=t.parentNode}return null}},{key:"_getTextAnnotationElements",value:function(e,t,n){var a=[];if(t.isEqualNode(n)){var i=this._getTextAnnotationNewElements(e,t);i&&a.push(i)}else{var o=(0,B.default)(".ADBE_E_Document section").get();a.push(this._getTextAnnotationNewElements(e,o))}return(0,B.default)(X.UtilFunctions.flattenArray(a))}},{key:"_getTextAnnotationNewElements",value:function(e,t){var n=(0,B.default)(t),a="i, em";switch(e){case U.default.COMMENT_TYPES.UNDERLINE:a="u";break;case U.default.COMMENT_TYPES.STRIKETHROUGH:a="strike";break;case U.default.COMMENT_TYPES.HIGHLIGHT:}return n.find(a).get().filter(function(e,t){return 0===e.classList.length})}},{key:"_getTextNodeAndOffset",value:function(e,t){for(var n=[],a=0,i=e.firstChild,o=null;i;){var r=i.textContent;if(r?(a+=r.length,n.push(r.length)):n.push(0),t<a)break;i=i.nextSibling}var s=t,l=e.firstChild;if(l)for(var u=0;u<n.length-1;++u)s-=n[u],l=l.nextSibling;return l.nodeType===Node.ELEMENT_NODE&&("STRIKE"!==l.nodeName&&"U"!==l.nodeName||(o=l.nodeName),l=this._getElementTextNode(l)),{textNode:l,offset:s,elementNode:o}}},{key:"_handleComment",value:function(e,t,n){var a=window.getSelection().getRangeAt(0);E.DomSelector.setSelection(a,!0),this._selectionInfo=E.DomSelector.selectionInfo,this._pushRange(e,t,n)}},{key:"_handleCommentClick",value:function(e,t){return this._isCommentClick=!0,e.preventDefault(),e.stopPropagation(),this._selectedCommentId!==t?this._sendPlatformSelect(t):this._sendPlatformSelect(),!1}},{key:"_handleResize",value:function(){var r=this;(0,B.default)("."+U.default.DX.UNANCHOREDCOMMENTCONTAINERCLASS+" ."+U.default.DX.ABSOLUTECOMMENTCLASS).each(function(e,t){var n=(0,B.default)(t),a=n.data("name"),i=n.data("params"),o=n.data("selector");r._applyTextGlyphSelector(a,i,o)}),(0,B.default)("."+U.default.DX.STICKYNOTECLASS).each(function(e,t){r._setStickyAnnotPosition((0,B.default)(t))}),(0,B.default)("."+U.default.DX.CARETCOMMENTCLASS).each(function(e,t){r._setCaretAnnotPosition((0,B.default)(t))}),this._selectedCommentId&&this._selectComment(this._selectedCommentId)}},{key:"_preventDefault",value:function(e){if(e)e.preventDefault&&e.preventDefault(),e.returnValue=!1;else{var t=window.event;t.preventDefault&&t.preventDefault(),t.returnValue=!1}}},{key:"_pushRange",value:function(e,t,n){if(this._selectionInfo&&!this._selectionInfo.isEmpty()){var a=this._createClassicSelectorFromRangeData(this._selectionInfo.serializedRange);if(!a)return void G.Log.error("Unable to convert xPath to classic range selector");var i=a.startId,o=a.startOffset,r=a.endId,s=a.endOffset,l=this._createAnnotParams(e,t,n),u=this._createTextRangeSelector(i,o,r,s);if(document.getElementById(i).normalize(),document.getElementById(r).normalize(),H.Platform.isStandalone){var d=i.substr(0,i.lastIndexOf("_"))+"_"+Date.now();l.hasNotes=1===Math.round(Math.random()),this._applyTextRangeSelector(d,l,u)}else{var c=Object.assign({},u.toObject(),l.toObject());H.Platform.createAnnot(c)}}h.Events.publish(U.default.EVENTS.CLOSECONTEXTMENU)}},{key:"_removeSelectEvents",value:function(){h.Events.publish(U.default.EVENTS.IGNORESELECTION)}},{key:"_removeFilter",value:function(){(0,B.default)(""+U.default.DX.HIDDENCOMMENTCLASS).removeClass(U.default.DX.HIDDENCOMMENTCLASS)}},{key:"_selectComment",value:function(o){var r=this,e=X.UtilFunctions.getRootDocumentElement(),t=(0,B.default)("."+U.default.DX.COMMENTCLASS+"."+U.default.DX.SELECTEDCLASS);if(o&&0<o.length){var n=this._getAnnotById(o);if(n.hasClass(U.default.DX.HIDDENCOMMENTCLASS))return;if(t.hasClass(U.default.DX.STICKYNOTECLASS)&&t.data("allowMove",!1),t.removeClass(U.default.DX.SELECTEDCLASS),(0,B.default)("."+U.default.DX.COMMENTPREVIEWBUTTONCLASS).hide(),(0,B.default)("."+U.default.DX.UNANCHOREDCOMMENTCONTAINERCLASS).not("."+U.default.DX.COMMENTDONTCLOSE).removeClass(U.default.DX.COMMENTCONTAINEROPEN),H.Platform.isStandalone&&((0,B.default)(".dx-preview-container").remove(),(0,B.default)(".dx-comment-delete-button").show()),!this._selectedCommentId){var a=function(e){var t=(0,B.default)(e.target);if(!(t.hasClass(U.default.DX.COMMENTCLASS)||t.hasClass(U.default.DX.UNANCHOREDCOMMENTICONCLASS)||t.hasClass(U.default.DX.UNANCHOREDCOMMENTNUMBERCLASS)||t.hasClass(U.default.DX.COMMENTPREVIEWBUTTONCLASS)||H.Platform.isStandalone&&t.hasClass("dx-preview-close")||H.Platform.isStandalone&&(t.hasClass("dx-comment-delete-button")||t.parent().hasClass("dx-comment-delete-button")))){if(r._stickyDroppedData){var n=r._stickyDroppedData,a=n.touchedObj,i=n.overElement;r._deleteComment(o),r._createStickyNoteFromTouchedObj(a,i,o),r._stickyDroppedData=null}r._sendPlatformSelect()}};H.Platform.isPlatform(U.default.PLATFORMS.ANDROID)?e.on("tapstart.commentSelect",function(e){return a(e)}):e.on("tapend.commentSelect",function(e){return a(e)})}var i=n.parents("."+U.default.DX.UNANCHOREDCOMMENTCONTAINERCLASS);0<i.length&&i.addClass(U.default.DX.COMMENTCONTAINEROPEN);var s=n.siblings("."+U.default.DX.COMMENTPREVIEWBUTTONCLASS);if(0<s.length&&s.show(),this._selectedCommentId=o,n.addClass(U.default.DX.SELECTEDCLASS),n.hasClass(U.default.DX.STICKYNOTECLASS)){n.data("allowMove",!0);var l=n.parents(U.default.DX.TABLECONTENTWRAPPERCLASS);0<l.length&&l.css("overflow-x","")}}else{if(t.hasClass(U.default.DX.STICKYNOTECLASS)){t.data("allowMove",!1);var u=t.parents(U.default.DX.TABLECONTENTWRAPPERCLASS);0<u.length&&u.css("overflow-x","")}t.removeClass(U.default.DX.SELECTEDCLASS),(0,B.default)("."+U.default.DX.UNANCHOREDCOMMENTCONTAINERCLASS).not("."+U.default.DX.COMMENTDONTCLOSE).removeClass(U.default.DX.COMMENTCONTAINEROPEN),(0,B.default)("."+U.default.DX.COMMENTPREVIEWBUTTONCLASS).hide(),H.Platform.isStandalone&&((0,B.default)(".dx-preview-container").remove(),(0,B.default)(".dx-comment-delete-button").hide()),H.Platform.isPlatform(U.default.PLATFORMS.ANDROID)?e.off("tapstart.commentSelect"):e.off("tapend.commentSelect"),this._selectedCommentId=null}}},{key:"_sendPlatformSelect",value:function(e){if(e&&0<e.length){if(this._getAnnotById(e).hasClass(U.default.DX.HIDDENCOMMENTCLASS))return;H.Platform.isStandalone?(G.Log.info("Select "+e),this._selectComment(e)):H.Platform.selectAnnot(e)}else{var t=this._selectedCommentId;H.Platform.isStandalone?(G.Log.info("De-select comments"),this._selectComment()):H.Platform.deselectAnnot(t)}}},{key:"_setAnnotationName",value:function(e,t){e.addClass(t)}},{key:"_setAnnotationProperties",value:function(e,t,n){var a=n.type,i=n.color,o=n.hasNotes,r=e.find("."+U.default.DX.HEADINGCOLLAPSETRIGGER);if(0<r.length){var s=r.parents("."+U.default.DX.HEADINGCLASS+", ."+U.default.DX.SUBHEADINGCLASS);r.detach(),s.prepend(r)}this._setAnnotationName(e,t),this._updateCommentReplies(t,i,o),a!==U.default.COMMENT_TYPES.STICKY&&a!==U.default.COMMENT_TYPES.CARET&&e.addClass(U.default.DX.COMMENTCLASS),this._setClickEvents(e,t,a===U.default.COMMENT_TYPES.STICKY)}},{key:"_setCaretAnnotPosition",value:function(e){var t=e.parents("."+U.default.DX.GLYPHCOMMENTWRAPPERCLASS),n=e.data("selector"),a=t.height(),i=Number.parseFloat((0,B.default)("#"+n.startId).css("font-size"))/16,o=16*i,r=13*i;e.css({"--width":o,"--height":r});var s=-o/2+1,l=a-r+3;e.css({"--left":s+"px","--top":l+"px"})}},{key:"_setClickEvents",value:function(t,n,a){var i=this,o=!1;H.Platform.platform===U.default.PLATFORMS.IOS&&t.on("tapstart.creation",function(e){e.stopPropagation(),o=!1}),t.on("tapmove.creation",function(e){e.stopPropagation(),o=!0}),t.on("tapend.creation",function(e){o||i._handleCommentClick(e,n),a&&(t.data("eventsSet")||(i._setStickyEvents(t),t.data("eventsSet",!0))),H.Platform.platform!==U.default.PLATFORMS.ANDROID&&!H.Platform.isStandalone||(o=!1)})}},{key:"_setStickyAnnotPosition",value:function(e){if(!e.data("allowMove")){var t=e.parents("."+U.default.DX.GLYPHCOMMENTWRAPPERCLASS),n=e.data("selector"),a=e.height(),i=e.width(),o=void 0,r=void 0;if(0<t.length)o=t.height(),r=t.get(0).getBoundingClientRect().width;else{var s=(0,B.default)("#"+n.elementId);o=s.height(),r=s.width()}var l=n.leftOffset/100*r-i/2,u=n.topOffset/100*o-a/2;e.css({left:l+"px",top:u+"px"})}}},{key:"_setStickyEvents",value:function(i){var o=this,r=i.width()/2,e=i.data().wrapperId?(0,B.default)("#"+i.data().wrapperId):[],t=i.siblings("img").not("."+U.default.DX.COMMENTCLASS),n=i.parents("table"),a=!1,s={left:0,top:0};0<e.length?s=e.offset():0<t.length?s=t.offset():0<n.length&&(s=n.offset()),i.on("tapstart.stickyNoteMove",function(e){i.data("allowMove")&&(e.stopPropagation(),a=!0,H.Platform.isPlatform(U.default.PLATFORMS.ANDROID)&&e.preventDefault(),X.UtilFunctions.setDocumentScrollability(!1),(0,B.default)("."+U.default.DX.TABLEWRAPPERCLASS).css("overflow","hidden"),0<n.length&&n.parents("."+U.default.DX.TABLECONTENTWRAPPERCLASS).css("overflow-x","unset"))}),i.on("tapmove.stickyNoteMove",function(e){e.stopPropagation();var t=o._extractTouchedObj(e),n=t.pageY-r-s.top+"px",a=t.pageX-r-s.left+"px";i.css({top:n,left:a})}),i.on("tapend.stickyNoteMove",function(e){if(a){e.stopPropagation(),a=!1,H.Platform.isPlatform(U.default.PLATFORMS.IOS)&&e.preventDefault(),X.UtilFunctions.setDocumentScrollability(!0),(0,B.default)("."+U.default.DX.TABLEWRAPPERCLASS).css("overflow",""),i.hide();var t=o._extractTouchedObj(e,!0),n=document.elementFromPoint(t.clientX,t.clientY);o._stickyDroppedData={touchedObj:t,overElement:n},i.show()}})}},{key:"_setUpEvents",value:function(){var r=this;(0,B.default)(window).on("orientationchange",function(e){E.DomSelector.trigger()}),h.Events.subscribe(U.default.EVENTS.STRIKETHROUGH,function(){r._pushRange(U.default.COMMENT_TYPES.STRIKETHROUGH,"#FF0000",1)}),h.Events.subscribe(U.default.EVENTS.UNDERLINE,function(){r._pushRange(U.default.COMMENT_TYPES.UNDERLINE,"#0066FF",1)}),h.Events.subscribe(U.default.EVENTS.HIGHLIGHT,function(){r._pushRange(U.default.COMMENT_TYPES.HIGHLIGHT,"#FFFF00",1)}),h.Events.subscribe(U.default.EVENTS.FONTRESIZED,function(){E.DomSelector.trigger(),(0,B.default)("."+U.default.DX.DOCUMENTWRAPPERCLASS+" img").each(function(e,t){r._updateImageStackedAnnotPositions((0,B.default)(t))}),(0,B.default)("."+U.default.DX.UNANCHOREDCOMMENTCONTAINERCLASS+" ."+U.default.DX.ABSOLUTECOMMENTCLASS).each(function(e,t){var n=(0,B.default)(t),a=n.data("name"),i=n.data("params"),o=n.data("selector");r._applyTextGlyphSelector(a,i,o)}),(0,B.default)("."+U.default.DX.STICKYNOTECLASS).each(function(e,t){r._setStickyAnnotPosition((0,B.default)(t))}),(0,B.default)("."+U.default.DX.CARETCOMMENTCLASS).each(function(e,t){r._setCaretAnnotPosition((0,B.default)(t))}),r._selectedCommentId&&r._selectComment(r._selectedCommentId)}),h.Events.subscribe(U.default.EVENTS.LAYOUTCHANGED,function(){r._updateMap()}),H.Platform.isStandalone&&((0,B.default)(".dx-commenting-trigger").on("click",function(e){e.preventDefault();var t=(0,B.default)(e.delegateTarget);t.hide(),t.next().show()}),(0,B.default)(".dx-commenting-action").on("click",function(e){e.preventDefault();var t=(0,B.default)(e.delegateTarget),n=t.data("commentType");if(!r._isInStickyNoteCreationMode||(r._exitStickyNoteCreationMode(),n!==U.default.COMMENT_TYPES.STICKY))if(r._isInCreationMode&&r._exitCreationMode(),t.addClass("dx-selected"),n===U.default.COMMENT_TYPES.STICKY)r._enterStickyNoteCreationMode();else{var a="#FFFF00";switch(n){case U.default.COMMENT_TYPES.UNDERLINE:a="#0000FF";break;case U.default.COMMENT_TYPES.STRIKETHROUGH:a="#FF0000";break;case U.default.COMMENT_TYPES.HIGHLIGHT:}r._enterCreationMode(n,a,1)}}),(0,B.default)(".dx-commenting-exit").on("click",function(e){e.preventDefault();var t=(0,B.default)(e.delegateTarget);r._isInCreationMode&&r._exitCreationMode(),r._isInStickyNoteCreationMode&&r._exitStickyNoteCreationMode(),t.parent().hide(),t.parent().prev().show()}),(0,B.default)("#commentDeleteButton").on("click",function(e){e.preventDefault(),r._selectedCommentId?(r._deleteComment(r._selectedCommentId),r._selectComment()):G.Log.error("No comment selected")}),h.Events.subscribe(U.default.EVENTS.NAVIGATIONSHOWN,function(){(0,B.default)("#commentingPanel").hide()}),h.Events.subscribe(U.default.EVENTS.NAVIGATIONHIDDEN,function(){(0,B.default)("#commentingPanel").show()}))}},{key:"_setUpSelectEvents",value:function(){this._eventsOff||h.Events.publish(U.default.EVENTS.ENABLESELECTION)}},{key:"_updateCommentReplies",value:function(e,t,n){var a=this._getAnnotById(e).eq(0),i=X.UtilFunctions.getRgbaFromHex(t);0<a.length&&(a.css("--color",i),n?a.addClass(U.default.DX.COMMENTREPLIESCLASS):a.removeClass(U.default.DX.COMMENTREPLIESCLASS))}},{key:"_updateImageStackedAnnotPositions",value:function(e){for(var t=1.1875*Number.parseFloat((0,B.default)("html").css("font-size")),n=e.height()/t,a=[],i=0;i<n;++i)a.push(i*t);e.data("stackedAnnotPositions",a)}},{key:"_updateMap",value:function(){for(var e=this._docSectionIds.length,t=0;t<e;++t){var n=null;if(0<t){var a=this._docSectionIds[t-1];n=this._docSectionMap[a].bounds}var i=this._docSectionIds[t],o=X.UtilFunctions.getBoundingDocRect(document.getElementById(i));n&&(n.bottom=Math.floor(o.top),n.height=n.bottom-n.top),this._docSectionMap[i].bounds=o}}}]),p);function p(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,"commenting","commenting",f,U.default.MODULE_INIT_TYPE.PER_SECTION));return e._overlay=null,e._selectionTimeout=null,e._creationModeType="",e._fakeTapEndTimeout=null,e._scrollTimeout=null,e._selectedCommentId=null,e._eventsOff=!1,e._prevSelection=null,e._originalEvents={},e._scrollingDisabled=!1,e._docSectionIds=[],e._docSectionMap={},e._isCommentClick=!0,e._stickyDroppedData=null,e._selectionInfo=E.DomSelector.selectionInfo,e._isInCreationMode=!1,e._isInStickyNoteCreationMode=!1,e}t.default=A},function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}Object.defineProperty(t,"__esModule",{value:!0});var i=(function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}(o,[{key:"toObject",value:function(){return{type:this._type,color:this._color,opacity:this._opacity,hasNotes:this._hasNotes}}},{key:"type",get:function(){return this._type},set:function(e){this._type=e}},{key:"color",get:function(){return this._color},set:function(e){this._color=e}},{key:"opacity",get:function(){return this._opacity},set:function(e){this._opacity=e}},{key:"hasNotes",get:function(){return this._hasNotes},set:function(e){this._hasNotes=!!e}}]),o);function o(e,t,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._type=e||"none",this._color=t||"#000000",this._opacity=n||1,this._hasNotes=!!a}t.default=i},function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}Object.defineProperty(t,"__esModule",{value:!0});var i=(function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}(o,[{key:"toObject",value:function(){return{elementId:this._elementId,leftOffset:this._leftOffset,topOffset:this._topOffset}}},{key:"elementId",get:function(){return this._elementId},set:function(e){this._elementId=e}},{key:"leftOffset",get:function(){return this._leftOffset},set:function(e){this._leftOffset=e}},{key:"topOffset",get:function(){return this._topOffset},set:function(e){this._topOffset=e}}]),o);function o(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._elementId=e||null,this._leftOffset=t||0,this._topOffset=n||0}t.default=i},function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}Object.defineProperty(t,"__esModule",{value:!0});var i=(function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}(o,[{key:"toObject",value:function(){return{elementId:this._elementId,offset:this._offset,leftOffset:this._leftOffset,topOffset:this._topOffset}}},{key:"elementId",get:function(){return this._elementId},set:function(e){this._elementId=e}},{key:"offset",get:function(){return this._offset},set:function(e){this._offset=e}},{key:"leftOffset",get:function(){return this._leftOffset},set:function(e){this._leftOffset=e}},{key:"topOffset",get:function(){return this._topOffset},set:function(e){this._topOffset=e}}]),o);function o(e,t,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._elementId=e||null,this._offset=t||0,this._leftOffset=n||0,this._topOffset=a||0}t.default=i},function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}Object.defineProperty(t,"__esModule",{value:!0});var i=(function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}(o,[{key:"toObject",value:function(){return{startId:this._startId,startOffset:this._startOffset,endId:this._endId,endOffset:this._endOffset}}},{key:"startId",get:function(){return this._startId},set:function(e){this._startId=e}},{key:"startOffset",get:function(){return this._startOffset},set:function(e){this._startOffset=e}},{key:"endId",get:function(){return this._endId},set:function(e){this._endId=e}},{key:"endOffset",get:function(){return this._endOffset},set:function(e){this._endOffset=e}}]),o);function o(e,t,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._startId=e||null,this._startOffset=t||0,this._endId=n||null,this._endOffset=a||0}t.default=i},function(e,u,d){"use strict";(function(_){Object.defineProperty(u,"__esModule",{value:!0});var e=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var S=o(d(0)),t=o(d(4)),C=d(6),O=d(2),m=d(5),n=d(10),i=d(3),I=d(7);function o(e){return e&&e.__esModule?e:{default:e}}var r=S.default.PLATFORMS.MOBILE|S.default.PLATFORMS.DCWEB|S.default.PLATFORMS.DXBROWSER,s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,t.default),e(l,[{key:"getInterface",value:function(){var e=this;return{handleSelectionChanged:function(){return e._handleSelectionChanged()},selectionChangedEvent:function(){return e._getSelectionChangedEvent()}}}},{key:"_init",value:function(){this._setUpEvents()}},{key:"_setUpEvents",value:function(){var n=this;m.Platform.isStandalone&&_("."+S.default.DOCUMENT.DOCUMENTCLASS).on("contextmenu",function(e){var t=e||window.event;return t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0,t.returnValue=!1}),this._selectionChangedEvent=O.Events.subscribe(S.default.EVENTS.SELECTIONCHANGED,function(){n._handleSelectionChanged()}),O.Events.subscribe(S.default.EVENTS.CLOSECONTEXTMENU,function(){n._closeContextMenu()}),O.Events.subscribe(S.default.EVENTS.IGNORESELECTION,function(){n._ignoreSelection=!0,_(window).off("scroll.contextMenu")}),O.Events.subscribe(S.default.EVENTS.ENABLESELECTION,function(){n._ignoreSelection=!1,_(window).on("scroll.contextMenu",function(e){n._creationMode||(n._scrollTimeout&&clearTimeout(n._scrollTimeout),n._scrollTimeout=setTimeout(function(){if(n._selectionInfo.quote&&0<n._selectionInfo.quote.length){var e=_(window).scrollTop(),t=_(window).height();n._selectionInfo.pageYStart>e&&n._selectionInfo.pageYStart<e+t&&n._handleSelectionChanged()}},200))})})}},{key:"_handleSelectionChanged",value:function(){if(!this._ignoreSelection){if(this._selectionInfo.isEmpty())return void i.Log.info("Selection is empty");i.Log.info(this._selectionInfo);var e=C.UtilFunctions.xPathEvaluate(this._selectionInfo.serializedRange.start,_(".ADBE_E_Document"))[0],t=C.UtilFunctions.xPathEvaluate(this._selectionInfo.serializedRange.end,_(".ADBE_E_Document"))[0];if(!e||!t)return e||i.Log.error("Start element cannot be located; xPath Selector: "+this._selectionInfo.serializedRange.start),void(t||i.Log.error("End element cannot be located; xPath Selector: "+this._selectionInfo.serializedRange.end));if(e.isEqualNode(t)){if(_(e).hasClass("dx-comment"))return}else if(_(e).hasClass("dx-comment")&&_(t).hasClass("dx-comment"))return;var n={x:this._selectionInfo.pageXStart>=this._selectionInfo.pageXEnd?this._selectionInfo.pageXStart-(this._selectionInfo.pageXStart-this._selectionInfo.pageXEnd)/2:this._selectionInfo.pageXStart+(this._selectionInfo.pageXEnd-this._selectionInfo.pageXStart)/2,y:this._selectionInfo.pageYStart};m.Platform.isStandalone?this._openContextMenu(n):m.Platform.openContextMenu(n)}}},{key:"_openContextMenu",value:function(e){var t=this;this._contextMenu=document.getElementById("commentPopupContainer"),null!=this._contextMenu&&this._closeContextMenu();var n=document.createElement("div"),a=C.UtilFunctions.getWindowWidth();n.id="commentPopupContainer",n.className="dx-comment-popup-container";var i=document.createElement("div");i.className="dx-comment-popup";var o=document.createElement("div");o.className="dx-comment-arrow";var r=document.createElement("span"),s=I.Localization.translate(S.default.PHRASES.HIGHLIGHT_CHOICE);r.className="dx-comment-option",r.appendChild(document.createTextNode(s.phrase));var l=document.createElement("span"),u=I.Localization.translate(S.default.PHRASES.STRIKETHROUGH_CHOICE);l.className="dx-comment-option",_(l).attr("lang",u.lang),l.appendChild(document.createTextNode(u.phrase));var d=document.createElement("span"),c=I.Localization.translate(S.default.PHRASES.UNDERLINE_CHOICE);d.className="dx-comment-option",_(d).attr("lang",c.lang),d.appendChild(document.createTextNode(c.phrase));var f=document.createElement("span"),E=I.Localization.translate(S.default.PHRASES.COPY_CHOICE);f.className="dx-comment-option",_(f).attr("lang",E.lang),f.appendChild(document.createTextNode(E.phrase));var h=document.createElement("hr");h.className="dx-comment-popup-separator",i.appendChild(r),i.appendChild(h.cloneNode()),i.appendChild(l),i.appendChild(h.cloneNode()),i.appendChild(d),i.appendChild(h.cloneNode()),i.appendChild(f),i.appendChild(o),n.appendChild(i),document.body.appendChild(n);var A=50;_(".dx-comment-popup span").each(function(e,t){A+=_(t).width()});var p=e.y-40;n.style.top=p+"px";var g=e.x;this._viewportSize===S.default.VIEWPORTS.SMALL?g-=A/2:g-=A;var T=!1,v=!1;g<10?(g=10,T=!0):a-A-30<g&&(g=a-A-30,v=!0),n.style.left=g+"px",_(".dx-comment-popup").css("visibility","visible").width(A+"px"),T&&(o.className+=" left"),v&&(o.className+=" right"),r.addEventListener("click",function(e){e.stopPropagation(),O.Events.publish(S.default.EVENTS.HIGHLIGHT)}),l.addEventListener("click",function(e){e.stopPropagation(),O.Events.publish(S.default.EVENTS.STRIKETHROUGH)}),d.addEventListener("click",function(e){e.stopPropagation(),O.Events.publish(S.default.EVENTS.UNDERLINE)}),f.addEventListener("click",function(e){e.stopPropagation(),document.execCommand("copy"),t._closeContextMenu()}),_("body").on("click.contextMenu",function(e){return t._handleClose(e)}),m.Platform.isStandalone||_("body").on("touchend.contextMenu",function(e){return t._handleClose(e)}),this._contextMenu=n}},{key:"_closeContextMenu",value:function(){var e=_("body");_("#commentPopupContainer").remove(),e.off("click.contextmenu"),e.off("touchend.contextMenu"),this._contextMenu=null}},{key:"_handleClose",value:function(e){0===_(e.target).parents(".dx-comment-popup").length&&this._closeContextMenu()}}]),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,"contextMenu","contextMenu",r));return e._contextMenu=null,e._ignoreSelection=!1,e._selectionInfo=n.DomSelector.selectionInfo,e}u.default=s}).call(u,d(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=u(n(1)),r=u(n(4)),s=u(n(0)),l=n(2);function u(e){return e&&e.__esModule?e:{default:e}}var d=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,r.default),a(c,[{key:"_init",value:function(){var e=this;l.Events.subscribe(s.default.DOM_EVENTS.DXLAYOUTINITIALIZED,function(){e._addDocumentLoadingMore()}),l.Events.subscribe(s.default.EVENTS.OUTLINELOADINGSTART,function(){e._addOutlineLoadingMore()}),l.Events.subscribe(s.default.EVENTS.DOCUMENTLOADINGEND,function(){e._removeDocumentLoadingMore(),e._removeOutlineLoadingMore()})}},{key:"_addDocumentLoadingMore",value:function(){0===(0,o.default)("."+s.default.DX.LOADINGMOREDOCUMENTCONTAINER).length&&(0,o.default)("."+s.default.DOCUMENT.DOCUMENTCLASS).after('\n      <div class="'+s.default.DX.LOADINGMOREDOCUMENTCONTAINER+'">\n        <div class="'+s.default.DX.LOADINGMOREDOCUMENTANIMATION+'">\n        </div>\n      </div>')}},{key:"_removeDocumentLoadingMore",value:function(){(0,o.default)("."+s.default.DX.LOADINGMOREDOCUMENTCONTAINER).remove()}},{key:"_addOutlineLoadingMore",value:function(){0===(0,o.default)("."+s.default.DX.LOADINGMOREOUTLINECONTAINER).length&&(0,o.default)(".dx-outline").append("\n        <div class='"+s.default.DX.LOADINGMOREOUTLINECONTAINER+"'>\n          <div class='"+s.default.DX.LOADINGMOREOUTLINEANIMATION+"'>\n        </div>\n        </div>")}},{key:"_removeOutlineLoadingMore",value:function(){(0,o.default)("."+s.default.DX.LOADINGMOREOUTLINECONTAINER).remove()}}]),c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,"progressIndicator","progressIndicator",s.default.PLATFORMS.ALL,s.default.MODULE_INIT_TYPE.AT_START))}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var l=r(n(1)),o=r(n(23)),u=r(n(0)),d=n(7),c=n(3);function r(e){return e&&e.__esModule?e:{default:e}}var s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(f,o.default),a(f,[{key:"_handleDocumentReady",value:function(){var s=this,e=(0,l.default)("."+u.default.DOCUMENT.DOCUMENTCLASS);e.find("."+u.default.DOCUMENT.ENDNOTEREFERENCECLASS).each(function(e,t){var n=(0,l.default)(t),a=n.attr("id"),i=n.attr("data-ref"),o=(0,l.default)("#"+i);o.addClass("dx-unselectable"),0===o.length&&c.Log.warn("Can't find matching endnote. ID: "+a);var r=d.Localization.translate(u.default.ACCESSIBILITY.ARIAFOOTNOTELBL);n.attr(u.default.ACCESSIBILITY.ARIALABEL,r.phrase),s._setUpNote(n,o),n.removeClass("ADBE_CM_pdfm-endnoteRef"),o.removeClass("ADBE_CM_pdfm-endnoteText")}),this._oldMethod(e)}},{key:"_oldMethod",value:function(e){var s=this;e.find(".ADBE_CM_pdfm-endnoteRef").each(function(e,t){var n=(0,l.default)(t),a=n.attr("id"),i=n.attr("data-ref"),o=(0,l.default)("#"+i);o.addClass("dx-unselectable"),0===(0,l.default)("#"+i).length&&c.Log.warn("Can't find matching endnote. ID: "+a);var r=d.Localization.translate(u.default.ACCESSIBILITY.ARIAENDNOTELBL);n.attr(u.default.ACCESSIBILITY.ARIALABEL,r.phrase),s._setUpNote((0,l.default)("#"+a),o)})}}]),f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,"endnote","inlinePopupNote",u.default.PLATFORMS.ALL,u.default.MODULE_INIT_TYPE.PER_SECTION))}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var _=u(n(1)),o=n(8),r=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(72)),s=u(n(4)),S=u(n(0)),E=n(2),c=n(5),C=n(6),l=n(7),f=n(3);function u(e){return e&&e.__esModule?e:{default:e}}function O(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var d=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(h,s.default),a(h,[{key:"getInterface",value:function(){var r=this;return{initiateFallback:function(){return r._initiateFallback()},setPageFallback:function(e,t,n,a,i,o){return r._setPageFallback(e,t,n,a,i,o)},removePageFallback:function(e){return r._removePageFallback(e)},getBoundsForPage:function(e){return r._getBoundsForPage(e)},getPageObject:function(e){return r._getPageObj(e)},existingFeatures:function(){return o.Analytics._existingFeatures},initiateUndoFallback:function(e){return r._initiateUndoFallback(e)},show:function(){r._toggleFallbackHighlighting(!0),E.Events.publish(S.default.EVENTS.FALLBACKSHIGHLIGHTED,!0)},hide:function(){r._toggleFallbackHighlighting(!1),E.Events.publish(S.default.EVENTS.FALLBACKSHIGHLIGHTED,!1)},bounds:function(e){return C.UtilFunctions.getBoundingDocRect(e)}}}},{key:"_initiateFallback",value:function(){this._fixSelectedPage()}},{key:"_setPageFallback",value:function(e,t,n,a,i){var o=this._getPageObj(e);o.url=t,o.dpi=n,o.width=a,o.height=i,o.state===S.default.FALLBACK_STATE.LOADING&&o.ready&&this._setPageFallbackImage(e)}},{key:"_removePageFallback",value:function(e){f.Log.info("removePageFallback "+e),this._updatePageState(e,S.default.FALLBACK_STATE.DISABLED),E.Events.publish(S.default.EVENTS.FALLBACKUNDONE)}},{key:"_initiateUndoFallback",value:function(e){E.Events.publish(S.default.EVENTS.REPORTPAGEACTION,{type:S.default.ANALYTICS.PAGEACTIONS.MFB_UNDO,pageNumber:e}),this._undoManualFallback(e)}},{key:"_setPageFallbackImage",value:function(e){var t=this,n=this._getPageObj(e);if(clearTimeout(n.timeoutTimer),E.Events.publish(S.default.EVENTS.REPORTPAGEACTION,{type:S.default.ANALYTICS.PAGEACTIONS.MFB_SUCCESS,pageNumber:e}),void 0!==n.url){this._lastPage=e;var a=n.dpi,i=n.url,o=n.$fallbackContainer,r=o.find("img");0===r.length?(o.append('\n         <img\n           alt="Manual full page fallback for page '+e+'"\n           class="ADBE_CM_rasterizedContent '+S.default.DX.FALLBACKFULLPAGEIMAGECLASS+'"\n           data-dpi="'+a+'"\n           src="'+i+'"\n         />\n        '),r=o.find("img"),AdbeDx.image.initializeImage(r.get(0),function(){t._updatePageState(e,S.default.FALLBACK_STATE.ENABLED)}),c.Platform.postFallbackSuccess(e),r.css("min-height: 200px")):(r.show(),this._updatePageState(e,S.default.FALLBACK_STATE.ENABLED),c.Platform.postFallbackSuccess(e)),E.Events.publish(S.default.EVENTS.FALLBACKTRIGGERED,e),this._skipConfirmationDialog=!0}}},{key:"filterAdobeClasses",value:function(e){f.Log.info("classes:  "+e);var t=e.split(" ");for(var n in t)-1===t[n].indexOf("ADBE_CM")&&delete t[n];return t.join(" ")}},{key:"showDetail",value:function(e){void 0!==this._fallbackHoverTimer&&(clearTimeout(this._fallbackHoverTimer),this._fallbackHoverTimer=void 0);var t="<b>"+this.filterAdobeClasses(e.get(0).className)+"</b><br/>";1!==e.length&&void 0===e.attr("data-adbe-fallback")||(t+=e.attr("data-adbe-fallback")),t+="<br>baseline font size = ",t+=C.UtilFunctions.getBaselineFontSize(),(0,_.default)("#info").html(t),(0,_.default)("#info").detach().prependTo(e),(0,_.default)("#info").addClass("visible")}},{key:"hideDetail",value:function(e){this._fallbackHoverTimer=setTimeout(function(){e.removeClass("fallback-hover"),(0,_.default)("#info").removeClass("visible")},1e3)}},{key:"addFallbackInteraction",value:function(){var n=this;(0,_.default)(".dx-document-wrapper").prepend('<div class="dx-fallback-stats"><b># fallbacks:\n      '+this._fallbacksLength+"</b><br><br>"+this._fallbacksOverview+"</div>"),(0,_.default)("body").prepend('<div class="info" id="info"></div>'),(0,_.default)(".dx-fallback").click(function(e){(0,_.default)("#info").removeClass("visible"),AdbeDx.lightboxImage.showLightbox((0,_.default)(e.delegateTarget).children("img").get(0))}),(0,_.default)(".dx-fallback").hover(function(e){var t=(0,_.default)(e.target);t.addClass("fallback-hover"),n.showDetail(t)},function(e){(0,_.default)(e.target).removeClass("fallback-hover"),n.hideDetail((0,_.default)(e.target))})}},{key:"removeFallbackInteraction",value:function(){(0,_.default)(".dx-fallback-stats").remove(),(0,_.default)("#info").remove(),(0,_.default)(".dx-fallback").off("click"),(0,_.default)(".dx-fallback").off("hover")}},{key:"_toggleFallbackHighlighting",value:function(e){if(e){f.Log.info("toggle fallback highlighting enabled"),this._showPageNumbers(),this._colorEvenOddPages((0,_.default)(".ADBE_E_Document [data-page]")),(0,_.default)("head").append('<style id="style-fallbacks-css" type="text/css"></style>');var t=(0,_.default)("#style-fallbacks-css").get(0).sheet,n=r;for(var a in f.Log.info(n),n)"default"!==a&&t.insertRule(n[a],t.cssRules.length);this.addFallbackInteraction()}else f.Log.info("toggle fallback highlighting disabled"),(0,_.default)("#style-fallbacks-css").remove(),this.removeFallbackInteraction(),this._removePageNumbers(),this._removeEvenOddPageColoring((0,_.default)(".ADBE_E_Document"))}},{key:"_isDisqualifiedElement",value:function(e){return e.hasClass("ADBE_CM_pdfm-footer")||e.hasClass("ADBE_CM_pdfm-header")||e.hasClass("ADBE_E_Footnote")||e.hasClass("ADBE_E_Endnote")||e.hasClass("ADBE_CM_pdfm-footer-fixed")||e.hasClass("ADBE_E_Watermark")||e.hasClass("ADBE_E_Header")||e.hasClass("ADBE_E_Footer")}},{key:"_tagElementsWithPage",value:function(e){var o=this,t=e.find("*[data-page]"),r=!1;t.each(function(e,t){var n=(0,_.default)(t),i=n.data("page");if(r=!1,o._isDisqualifiedElement(n))return n.removeData("page"),void n.removeAttr("data-page");n.data("page")!==S.default.PAGE_NUM.PREVIOUSLY_TAGGED&&n.data("page")!==S.default.PAGE_NUM.MULTIPLE_PAGES&&o._getContentParentNodes(n).each(function(e,t){var n=(0,_.default)(t),a=n.data();r&&o._markNodeWithMultiplePages(n),a.page?a.page!==S.default.PAGE_NUM.MULTIPLE_PAGES&&a.page!==S.default.PAGE_NUM.PREVIOUSLY_TAGGED&&a.page!==i&&a.page&&(o._markNodeWithMultiplePages(n),r=!0):o._hasDirectTextNodes(t)?(n.attr("data-page",S.default.PAGE_NUM.MULTIPLE_PAGES),a.page=S.default.PAGE_NUM.MULTIPLE_PAGES,r=!0):(n.attr("data-page",i),a.page=i,n.children('[data-page="'+i+'"]').each(function(e,t){var n=(0,_.default)(t);n.attr("data-page",S.default.PAGE_NUM.PREVIOUSLY_TAGGED),n.data("page",S.default.PAGE_NUM.PREVIOUSLY_TAGGED)}))})}),e.find('\n      *[data-page="'+S.default.PAGE_NUM.MULTIPLE_PAGES+'"], *[data-page="'+S.default.PAGE_NUM.PREVIOUSLY_TAGGED+'"]\n    ').each(function(e,t){var n=(0,_.default)(t);n.removeData("page"),n.removeAttr("data-page")})}},{key:"_markNodeWithMultiplePages",value:function(e){var a=e.attr("data-page"),t=e.data();e.attr("data-page",S.default.PAGE_NUM.MULTIPLE_PAGES),t.page=S.default.PAGE_NUM.MULTIPLE_PAGES,e.children('[data-page="'+S.default.PAGE_NUM.PREVIOUSLY_TAGGED+'"]').each(function(e,t){var n=(0,_.default)(t);n.attr("data-page",a),n.data("page",a)})}},{key:"_addPageToEndOfDocContainer",value:function(e){var t=void 0;if(e&&0<(t=e.find("[data-page]")).length){var n=t.last().data().page;(0,_.default)(S.default.DX.DOT.ENDCONTENTCONTAINERCLASS).attr("data-page",n+1)}}},{key:"_getContentParentNodes",value:function(e){return e.parents().not("."+S.default.DOCUMENT.DOCUMENTCLASS+", ."+S.default.DX.DOCUMENTWRAPPERCLASS+", body, html")}},{key:"_hasDirectTextNodes",value:function(e){var t=e.childNodes,n=!1;return t.forEach(function(e){n||e.nodeType===Node.TEXT_NODE&&0<e.wholeText.trim.length&&(n=!0)}),n}},{key:"_identifyDescendants",value:function(e){var n=[];return e&&e.each(function(e,t){n.push((0,_.default)(t).attr("id"))}),n}},{key:"_fixSelectedPage",value:function(){var n=this;(0,_.default)(S.default.DX.DOT.DIALOGSHIMCLASS).addClass(S.default.DX.HIDDEN),(0,_.default)(S.default.DX.DOT.DIALOGSHIMCLASS).remove();try{var a=this._getPageObjFromDocumentPosition(),e=void 0,t=void 0,i=void 0,o=void 0;if(a&&(e=a.reason,t=a.pageNum),-1===t)return;if(E.Events.publish(S.default.EVENTS.REPORTPAGEACTION,{type:S.default.ANALYTICS.PAGEACTIONS.MFB_FIXNOW,pageNumber:t}),!(a&&a.state===S.default.FALLBACK_STATE.DISABLED||(a=this._getPageObjFromDocumentPosition(!0))&&a.state===S.default.FALLBACK_STATE.DISABLED)){a||e?(i=e,o=t,a&&(i=a.reason,o=a.pageNum),E.Events.publish(S.default.EVENTS.REPORTPAGEACTION,{type:S.default.ANALYTICS.PAGEACTIONS.MFB_NOTELIGIBLE,reason:i,pageNumber:o})):E.Events.publish(S.default.EVENTS.REPORTPAGEACTION,{type:S.default.ANALYTICS.PAGEACTIONS.MFB_FAILED,reason:"Failed to identify current page",pageNumber:0});var r={isSDKFailure:!0,reason:i,pageNumber:o};return void c.Platform.postFallbackFailure(r)}var s=a.pageNum;E.Events.publish(S.default.EVENTS.REPORTPAGEACTION,{type:S.default.ANALYTICS.PAGEACTIONS.MFB_FAB,pageNumber:s}),E.Events.publish(S.default.EVENTS.FALLBACKTRIGGERED,s),this._removePageNumber(s);var l=(0,_.default)('\n        <figure id="ADBE_FB_PAGE'+s+'" class="'+S.default.DX.FALLBACKCLASS+" "+S.default.DX.FALLBACKFULLPAGECLASS+'" data-page="'+s+'">\n          <div class="dx-fake-fallback-container" style="height: '+a.bounds.height+'px"></div>\n          '+S.default.HTML.SPINNER+"\n        </figure>\n      ");if(a.$contents.length){var u=a.$contents[0];l.data("head",u)}var d=this._identifyDescendants(a.$contents);AdbeDx.document.addDescendants("ADBE_FB_PAGE"+s,d),f.Log.info("descendants: "+JSON.stringify(d)),l.insertBefore(a.$contents.first()),(a.$fallbackContainer=l).hide(),a.originalHeight=a.bounds.height,a.originalWidth=a.bounds.width,l.find(".dx-fake-fallback-container").height(a.bounds.height),this._updatePageState(s,S.default.FALLBACK_STATE.LOADING,function(){(a=n._getPageObj(s)).ready=!0,a.timeoutTimer=setTimeout(function(){return n._handlePlatformTimeout(a)},5e3);var e=a.$contents.last().closest("section").find("."+S.default.DX.HEADINGCLASS);e.hasClass(S.default.DX.COLLAPSEDHEADINGCLASS)&&e.click(),"pdfStructure"===n._generator||"pdfServer"===n._generator||a.url?(a.url||(a.url="images/page"+s+".png",a.dpi=300,a.width="100%"),n._setPageFallbackImage(s)):c.Platform.markFallbackPage(s,200);var t={el:l[0],scrollRatio:0};C.UtilFunctions.scrollToPositionBasedOnElement(t)})}catch(e){f.Log.error("error in fixSelectedPage: "+e.message)}}},{key:"_handlePlatformTimeout",value:function(e){var t=e.pageNum;E.Events.publish(S.default.EVENTS.REPORTPAGEACTION,{type:S.default.ANALYTICS.PAGEACTIONS.MFB_FAILED,pageNumber:t,reason:S.default.PHRASES.FIX_IT_FAILURE_TIMEOUT});var n={isSDKFailure:!1,reason:e.reason,pageNumber:e.pageNum};c.Platform.postFallbackFailure(n),e.$contents.show(),this._undoManualFallback(e.pageNum)}},{key:"_undoManualFallback",value:function(e){var t=this;E.Events.publish(S.default.EVENTS.FALLBACKUNDONE);var n=e?this._getPageObj(e):this._getPageObj(this._lastPage);this._updatePageState(n.pageNum,S.default.FALLBACK_STATE.UNLOADING,function(){c.Platform.isStandalone?t._removePageFallback(n.pageNum):c.Platform.unmarkFallbackPage(n.pageNum,n.dpi)}),this._lastPage=0,c.Platform.postFallbackUndoSuccess(n.pageNum)}},{key:"_init",value:function(){E.Events.subscribe(S.default.DOM_EVENTS.FBTABLELOADED,function(e){e.addClass(S.default.DX.FALLBACKCLASS),e.addClass(S.default.DX.FALLBACKTABLE),E.Events.publish(S.default.EVENTS.FALLBACKTABLECLASSADDED,e)}),1<(0,_.default)("[data-page]").get().map(function(e){return(0,_.default)(e).data("page")}).filter(function(e,t,n){return n.indexOf(e)===t}).length||(this._manualFallbacksEnabled=!1),this._isDebug&&((0,_.default)("body").prepend('<div id="dot"></div>'),(0,_.default)("#dot").css({left:C.UtilFunctions.getWindowWidth()/2,top:C.UtilFunctions.getWindowHeight()/2})),c.Platform.isStandalone&&(this._tapUserGesture=S.default.GESTURES.TAP),this._isDebug&&((0,_.default)("body").prepend('<div id="dot"></div>'),(0,_.default)("#dot").css({left:C.UtilFunctions.getWindowWidth()/2,top:C.UtilFunctions.getWindowHeight()/2})),this._generator=(0,_.default)("meta[name=generator]").attr("content"),this._setUpEvents()}},{key:"_setUpEvents",value:function(){var t=this;E.Events.subscribe(S.default.EVENTS.FALLBACKSHIGHLIGHT,function(e){t._toggleFallbackHighlighting(e),E.Events.publish(S.default.EVENTS.FALLBACKSHIGHLIGHTED,e)}),E.Events.subscribe(S.default.EVENTS.LAYOUTCHANGED,function(e){t._recalculatePageBoundaries()}),window.addEventListener("orientationchange",function(){t._recalculatePageBoundaries()})}},{key:"_recalculatePageBoundaries",value:function(){var t=this;Object.keys(this._pageStateMap).forEach(function(e){t._getPageObj(e).bounds=t._getBoundsForPage(e)}),E.Events.publish(S.default.EVENTS.UPDATEPAGEBOUNDARIES,this._pageStateMap)}},{key:"_removeEvenOddPageColoring",value:function(e){e.find(".dx-odd-page,.dx-even-page").removeClass("dx-odd-page").removeClass("dx-even-page")}},{key:"_colorEvenOddPages",value:function(e){var i=this;e.each(function(e,t){var n=(0,_.default)(t),a=i._getPageObj(n.data("page"));a?(a.pageNum%2?n.addClass("dx-odd-page"):n.addClass("dx-even-page"),a.reason&&n.addClass("dx-page-disqualified")):i._colorEvenOddPages(n)})}},{key:"_updatePageState",value:function(e,t,n){var a=this._getPageObj(e),i=a.$fallbackContainer.find("."+S.default.DX.SPINNERCLASS),o=a.$fallbackContainer,r=o.find(".dx-fake-fallback-container"),s=o.find("img"),l=a.$contents,u=a.state,d=0,c=0,f=0;switch(t){case S.default.FALLBACK_STATE.LOADING:a.ready=!1,o.show(),r.hide(),i.css({left:a.bounds.width/2-16,top:a.bounds.height/4}).addClass(S.default.DX.SPINNERVISIBLECLASS),c=l.length+s.length,a.state=t,l.add(s).animate({opacity:0},{duration:1e3,complete:function(){a.state===t&&++f>=c&&(r.show(),l.hide(),r.animate({height:"200px"},{duration:1e3,complete:function(){s.css("opacity",""),o.removeClass(S.default.DX.PAGESELECTEDCLASS),n&&n()}}),i.animate({top:"100px"},2e3))}});break;case S.default.FALLBACK_STATE.UNLOADING:o.show(),r.hide(),i.css({left:u===a.originalWidth/2,top:"100px"===u}).addClass(S.default.DX.SPINNERVISIBLECLASS),c=l.length+s.length,l.add(s).animate({opacity:0},{duration:1e3,complete:function(){++f>=c&&(r.show(),r.animate({height:a.originalHeight+"px"},{duration:2e3,complete:function(){s.css("opacity",""),o.removeClass(S.default.DX.PAGESELECTEDCLASS)}}),i.animate({top:a.originalHeight/4+"px"},2e3))}}),a.state=t,n&&n();break;case S.default.FALLBACK_STATE.ENABLED:l.show(),l.addClass(S.default.DX.PAGESELECTEDCLASS),d=C.UtilFunctions.getElementHeight(s),r.hide(),o.addClass(S.default.DX.PAGESELECTEDCLASS),i.removeClass(S.default.DX.SPINNERVISIBLECLASS),c=s.length,s.css({height:"200px"}).animate({height:d},{duration:500,complete:function(){s.animate({opacity:1},{duration:1e3,complete:function(){E.Events.publish(S.default.EVENTS.LAYOUTCHANGED,"AdbeFallbackManager")}})}}),a.state=t,n&&n();break;case S.default.FALLBACK_STATE.DISABLED:case S.default.FALLBACK_STATE.INELIGIBLE:default:i.removeClass(S.default.DX.SPINNERVISIBLECLASS),o.hide(),c=l.length,l.removeClass(S.default.DX.PAGESELECTEDCLASS).animate({opacity:1},{duration:2e3,complete:function(){++f>=c&&(l.css("opacity",""),E.Events.publish(S.default.EVENTS.LAYOUTCHANGED,"AdbeFallbackManager.updatePageState"))}}),a.state=t,n&&n()}}},{key:"_getPageObjFromDocumentPosition",value:function(e){var t=(0,_.default)("."+S.default.DX.DOCUMENTWRAPPERCLASS).scrollTop(),n=Object.values(this._pageStateMap),a=t+C.UtilFunctions.getWindowHeight()/2;return e?n.find(function(e){return a>=e.bounds.bottom&&e.bounds.bottom-t>.2*e.bounds.height}):n.find(function(e){return a>=e.bounds.top&&a<=e.bounds.bottom})}},{key:"_handleDocumentReady",value:function(){var e=(0,_.default)("."+S.default.DOCUMENT.DOCUMENTCLASS);e.find(C.UtilFunctions._eligibleLightBoxFallbackClasses()).each(function(e,t){(0,_.default)(t).addClass(S.default.DX.FALLBACKCLASS),(0,_.default)(t).addClass(S.default.DX.FALLBACKLIGHTBOX)}),e.find('[class^="ADBE_CM_fb-"]').each(function(e,t){(0,_.default)(t).addClass(S.default.DX.FALLBACKCLASS)||((0,_.default)(t).addClass(S.default.DX.FALLBACKCLASS),(0,_.default)(t).addClass(S.default.DX.FALLBACKLIGHTBOX))});var t=(0,_.default)(".dx-fallback");this._fallbacksLength=t.length;var d={};t.each(function(e,t){var n=(0,_.default)(t).attr("class").split(" ")[Symbol.iterator](),a=!0,i=!1,o=void 0;try{for(var r,s=n[Symbol.iterator]();!(a=(r=s.next()).done);a=!0){var l=r.value;if(-1!==l.indexOf("ADBE_CM_fb-")&&-1===l.indexOf("fb-lightbox")&&-1===l.indexOf("fb-table")){var u=d[l];void 0===u&&(u=0),d[l]=++u}}}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}});var n=Object.keys(d),a=!(this._fallbacksOverview=""),i=!1,o=void 0;try{for(var r,s=n[Symbol.iterator]();!(a=(r=s.next()).done);a=!0){var l=r.value,u=l.substr(8),c=d[l];this._fallbacksOverview+=u+" : "+c+"<br>"}}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}this._tagElementsWithPage((0,_.default)(S.default.DOCUMENT.DOT.DOCUMENTCLASS)),this._addPageToEndOfDocContainer((0,_.default)(S.default.DOCUMENT.DOT.DOCUMENTCLASS)),this._pageStateMap={};for(var f=(0,_.default)("[data-page]").get().map(function(e){return Number.parseInt((0,_.default)(e).data("page"),10)}).filter(function(e,t,n){return n.indexOf(e)===t}),E=Math.max.apply(Math,O(f)),h=Math.min.apply(Math,O(f)),A=h,p=(0,_.default)('[data-page="'+A+'"]').filter(function(e,t){var n=(0,_.default)(t);return n.is(":visible")&&0<C.UtilFunctions.getElementHeight(n)&&0<n.width()});A<=E;){var g={pageNum:A,reason:this._qualifiedPages[A]=null,$contents:p,$fallbackContainer:(0,_.default)("figure."+S.default.DX.FALLBACKFULLPAGECLASS+'[data-page="'+A+'"]')};(this._pageStateMap[A]=g).state=S.default.FALLBACK_STATE.DISABLED,g.bounds=this._getBoundsForPage(A),this._checkPageDisqualification(g),p=(0,_.default)('[data-page="'+ ++A+'"]').filter(function(e,t){var n=(0,_.default)(t);return n.is(":visible")&&0<C.UtilFunctions.getElementHeight(n)&&0<n.width()})}for(var T=h;T<=E;++T){var v=this._pageStateMap[T].$contents;null!=this._qualifiedPages[T]&&(this._pageStateMap[T].state=S.default.FALLBACK_STATE.INELIGIBLE,this._pageStateMap[T].reason=this._qualifiedPages[T]),v.first().addClass("dx-page-boundary"),this._isDebug&&(this._showPageNumbers(),this._colorEvenOddPages((0,_.default)(".ADBE_E_Document [data-page]")))}}},{key:"_getPageObj",value:function(e){return this._pageStateMap[e]}},{key:"_checkPageDisqualification",value:function(e){var o=this,r=e.pageNum,s=null==this._qualifiedPages[r];s&&e.$contents.each(function(e,t){if(s){var n=(0,_.default)(t),a=0<n.parents("ul, ol, table").not("[data-page]").length,i=0<o._getContentParentNodes(n).not("[data-page]").filter(function(e,t){return o._hasDirectTextNodes(t)}).length;a&&(s=!1,o._qualifiedPages[r]=S.default.PHRASES.FIX_IT_FAILURE_LIST),i&&(s=!1,o._qualifiedPages[r]=S.default.PHRASES.FIX_IT_FAILURE_MIDDLE_NODE,1<r&&(o._qualifiedPages[r-1]=S.default.PHRASES.FIX_IT_FAILURE_START_NODE),o._qualifiedPages[r+1]=S.default.PHRASES.FIX_IT_FAILURE_END_NODE)}})}},{key:"_getBoundsForPage",value:function(e){var t=this._getPageObj(e),n={};if(0===t.$contents.length)return n;if(0<t.$fallbackContainer.length&&t.state===S.default.FALLBACK_STATE.ENABLED){var a=t.$fallbackContainer;return n.top=a.offset().top,n.height=C.UtilFunctions.getElementHeight(a),n.bottom=n.top+n.height,n.left=a.left,n.width=a.width(),n.right=n.left+n.width,n}var i=t.$contents.first(),o=t.$contents.last();if(i.hasClass(S.default.DX.TABLEWRAPPERCLASS)&&0<o.parents("."+S.default.DX.TABLEWRAPPERCLASS).length&&(o=i),i.is(":hidden")||o.is(":hidden")){var r=t.$contents.filter("h1");0<r.length&&r.is(":visible")&&(i.is(":hidden")?i=r.first():o.is(":hidden")&&(o=r.last()))}var s=C.UtilFunctions.getBoundingDocRect(i[0]),l=C.UtilFunctions.getBoundingDocRect(o[0]);return n.top=s.top,n.bottom=l.top+l.height,n.height=n.bottom-n.top,n.left=s.left,n.right=s.left+s.width,n.width=n.right-n.left,n}},{key:"_removePageNumbers",value:function(){(0,_.default)(".dx-page-number").remove()}},{key:"_removePageNumber",value:function(e){f.Log.info("remove page "+e),(0,_.default)(".dx-page-container[data-page='"+e+"']").addClass(S.default.DX.HIDDEN)}},{key:"_showPageNumbers",value:function(){var r=this;(0,_.default)(".dx-page-boundary").each(function(e,t){var n=(0,_.default)(t),a=n.data("page"),i=r._getPageObj(a),o=void 0;i.reason&&(o=l.Localization.translate(i.reason)),(0,_.default)("\n        <div class='dx-page-container' data-page='"+a+"'>\n          <div class='"+(null!=i.reason?"dx-page-number dx-page-disqualified":"dx-page-number")+"'>"+a+"</div>\n          "+(null!=i.reason?"<div class='dx-page-disqualified-reason' lang=\""+o.lang+'">'+o.phrase+"</div>":"")+"\n        </div>\n      ").insertBefore(n)}),(0,_.default)(".dx-page-container").on(this._tapUserGesture,function(e){e.preventDefault(),(0,_.default)(e.delegateTarget).find(".dx-page-disqualified-reason").toggle()})}}]),h);function h(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,"fallbacks","fallbacks",S.default.PLATFORMS.ALL));return e._isDebug=!1,e._fallbacksLength=0,e._transitionOutTimer=0,e._startHeight=0,e._lastPage=0,e._pageStateMap={},e._animationRunning=!1,e._blockmap=[],e._qualifiedPages=[],e._tapUserGesture=S.default.GESTURES.TOUCHEND,e._closeFixItTimer=0,e._skipConfirmationDialog=!1,e._generator=void 0,e._manualFallbacksEnabled=!0,e}t.default=d},function(e,t){e.exports=[".info { display:none; font-family: Helvetica; font-size:8pt; padding: 6px; pointer-events: none;}",".info.visible {display:block;}",".dx-fallback,.dx-table-content-wrapper,.ADBE_E_Figure { position:relative; vertical-align: middle; display: block; transition: 0.5s; cursor: pointer; -webkit-transition:0.5s; margin: 2px; border: 1 px blue dashed;}",".dx-fallback::before,.dx-table-content-wrapper::before,.ADBE_E_Figure::before { width: 100%; height:100%; z-index: 3; content:''; position: absolute; background-color:blue; opacity:.05; top:0; left:0; box-sizing: border-box; transition: 0.7s; -webkit-transform-origin: 0 100%;}",".dx-table-content-wrapper::before { background-color:pink;}",".ADBE_E_Figure:NOT(.dx-fallback)::before {background-color:green;}",".dx-fallback.fallback-hover,.dx-table-content-wrapper.fallback-hover,.ADBE_E_Figure.fallback-hover { border: 2px dashed blue; color: #007; padding: 8px; transition: 0.7s;}",".dx-fallback:hover::before, .dx-table-content-wrapper:hover::before, .ADBE_E_Figure:hover::before { transition: 0.7s; -webkit-transform: scale(1);}"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var s=d(n(1)),o=d(n(4)),l=d(n(0)),r=n(2),u=n(6);function d(e){return e&&e.__esModule?e:{default:e}}var c=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(f,o.default),a(f,[{key:"_init",value:function(){var t=this;r.Events.subscribe(l.default.EVENTS.FALLBACKTABLECLASSADDED,function(e){t._loadFbTable(e)})}},{key:"_loadFbTable",value:function(e){var r=this;e.children("img, object").each(function(e,t){var a=(0,s.default)(t);a.addClass(l.default.DX.DONOTRESIZECLASS),a.parent().addClass(l.default.DX.FALLBACKCLASS);var n=a.parent(),i=n.data("page")?n.data("page"):null,o=(0,s.default)('\n        <div class="'+l.default.DX.FALLBACKTABLEWRAPPERCLASS+'" '+(i?'data-page="'+i+'"':"")+"></div>\n      ");n.wrap(o),o=n.parent(),n.css("margin-left","28px"),n.css("margin-right","28px"),n.css("overflow-x","scroll"),n.on("scroll",function(e){var t=(0,s.default)(e.target);e.preventDefault(),r._analyticsTimer?clearTimeout(r._analyticsTimer):r._interactionTimeStamp=u.UtilFunctions.getNow();var n=l.default.ANALYTICS.INTERACTFRICTION;r._analyticsTimer=setTimeout(function(){r._analyticsTimer=null,t.hasClass(""+l.default.DOCUMENT.FALLBACKMULTIPAGECOMPLEXTABLE)?r._interacted(l.default.ANALYTICS.OBJECTS.FALLBACKMULTIPAGECOMPLEXTABLE,a,r._interactionTimeStamp):t.hasClass(""+l.default.DOCUMENT.FALLBACKPAGEFORMFIELD)?r._interacted(l.default.ANALYTICS.OBJECTS.FALLBACKPAGEFORMFIELD,a,r._interactionTimeStamp):t.hasClass(""+l.default.DOCUMENT.FALLBACKREGIONFORMFIELD)?r._interacted(l.default.ANALYTICS.OBJECTS.FALLBACKREGIONFORMFIELD,a,r._interactionTimeStamp):(t.hasClass(""+l.default.DOCUMENT.FALLBACKREGIONCOMPLEXTABLE)||t.hasClass(""+l.default.DOCUMENT.LEGACY.FALLBACKCOMPLEXTABLE))&&r._interacted(l.default.ANALYTICS.OBJECTS.FALLBACKCOMPLEXTABLE,a,r._interactionTimeStamp)},n)}),r._addAdvancerButtons(n,o),r._setUpEvents(n,o)})}},{key:"_setUpEvents",value:function(t,n){var a=this;t.on("scroll",function(){a._updateScrollButtons(t,n)}),(0,s.default)(window).on("resize",function(){a._updateScrollButtons(t,n)}),n.find(".dx-advancer-left").on("click tap",function(e){e.preventDefault(),e.stopPropagation(),a._doScroll(t,n,"left")}),n.find(".dx-advancer-right").on("click tap",function(e){e.preventDefault(),e.stopPropagation(),a._doScroll(t,n,"right")})}},{key:"_doScroll",value:function(e,t,n){e.animate({scrollLeft:this._calcNewScrollPosition(e,t,n)},200)}},{key:"_calcNewScrollPosition",value:function(e,t,n){var a=e.scrollLeft(),i=.6*u.UtilFunctions.getElementWidth(e);return"left"===n?a-i:a+i}},{key:"_addAdvancerButtons",value:function(e,t){t.append('\n          <button class="dx-advancer dx-advancer-left" type="button">\n            <svg class="dx-advancer-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 551 1024">\n              <path d="M445.44 38.183L-2.53 512l447.97 473.817 85.857-81.173-409.6-433.23v81.172l409.6-433.23L445.44 38.18z"/>\n            </svg>\n          </button>\n          <button class="dx-advancer dx-advancer-right" type="button">\n            <svg class="dx-advancer-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 551 1024">\n              <path d="M105.56 985.817L553.53 512 105.56 38.183l-85.857 81.173 409.6 433.23v-81.172l-409.6 433.23 85.856 81.174z"/>\n            </svg>\n          </button>'),this._updateScrollButtons(e,t)}},{key:"_updateScrollButtons",value:function(e,t){e.attr("data-overflowing",this._determineOverflow(e.find("img, object"),t))}},{key:"_determineOverflow",value:function(e,t){var n=t[0]?t[0].getBoundingClientRect():{right:0,left:0},a=e[0]?e[0].getBoundingClientRect():{right:0,left:0},i="none",o=a.right>n.right-24,r=a.left<n.left+24;return o&&r?i="both":r?i="left":o&&(i="right"),i}}]),f);function f(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,"fallbackTable","fallbackTable",l.default.PLATFORMS.ALL));return e._analyticsTimer=null,e}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var g=r(n(1)),o=r(n(4)),T=r(n(0)),E=n(2),h=n(3),A=n(5),v=n(6),_=n(7);function r(e){return e&&e.__esModule?e:{default:e}}var s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,o.default),a(l,[{key:"getInterface",value:function(){var a=this;return{clear:function(){return a._clearResults()},invokeFind:function(e,t,n){return a._handleDocumentFind(e,t,n)},isFindActive:function(){return a._isFindActive()},next:function(e){return a._moveResult(e,!0)},prev:function(e){return a._moveResult(e)}}}},{key:"_handleDocumentReady",value:function(){A.Platform.isStandalone&&(this._findOffset=T.default.ELEMENTSIZES.FINDOFFSET,(0,g.default)("body").append("\n        <div class='dx-find-trigger-button-container'>\n          <button id='findTrigger' class='dx-find-trigger-button'>Find</button>\n        </div>\n    "),(0,g.default)("body").append("\n        <div id = 'findResultPanel' class = 'dx-find-result-panel'>\n          <div id='findBar' class='dx-find-bar-container'>\n            <div>\n              <span id='findClose' class='dx-find-bar-close'>x</span>\n              <div class='dx-find-input-wrapper'>\n                <input id='findInput' class='dx-find-input' placeholder='Find' />\n                <span id='findClear' class='dx-find-input-clear'>x</span>\n              </div>\n              <button id='findButton' class='dx-find-button'>Go</button>\n              <span id='findPrevButton' class='dx-find-result-button dx-find-prev-button'></span>\n              <span id='findNextButton' class='dx-find-result-button dx-find-next-button'></span>\n            </div>\n          </div>\n\n          <div id='findBar2' class='dx-find-bar-container dx-container-2'>\n            <div>\n              <span id='resultsContainer' class='dx-results-container'>\n                <span id='currentResult' class='dx-results-value'>1</span> of <span id='totalResults' class='dx-results-value'>30</span>\n              </span>\n              <span id='noResultsContainer' class='dx-results-none'>No Results</span>\n              <span id='caseSensitiveButton' class='dx-find-panel-button'>Case Sensitive</span>\n              <span id='wrapButton' class='dx-find-panel-button'>Wrap Results</span>\n            </div>\n          </div>\n        </div>\n    ")),(0,g.default)("body").append('<input id="hiddenFindInput" style="display: none;" />'),this._setUpEvents()}},{key:"_isFindActive",value:function(){return 1<=(0,g.default)(".dx-find-results-summary").length}},{key:"_clearFind",value:function(e){(0,g.default)("body").unmark(this._findOptions),(0,g.default)(".dx-find-results-summary").remove(),(0,g.default)(".dx-find-results-mini-summary").remove(),(0,g.default)("#loggingContainer").is(":visible")&&h.Log.toggleSummary(),this._findResults=[],this._navFindResults=[],this._resultCounter=0,this._summaryHeadingClicked=!1,e||((0,g.default)("#resultsContainer").hide(),(0,g.default)("#noResultsContainer").show(),this._curResult=null),(0,g.default)(".dx-fake-header").off("click.find"),(0,g.default)(".dx-fake-sub-header").off("click.find"),(0,g.default)("."+T.default.DX.COLLAPSETRIGGERWRAPPER).off("click.findtrigger")}},{key:"_clearFindInput",value:function(e){e.val("")}},{key:"_clearResults",value:function(e){this._handleDocumentFind("",!1,!1,e)}},{key:"_updateFindResultElements",value:function(e,t){this._findResults[e].elements.push(t)}},{key:"_pushToFindResults",value:function(e){var t=this._findResults.length-1,n=this._findResults[t],a="",i=void 0,o=0,r=void 0;if(n&&((i=n.elements).forEach(function(e){a+=e.text()}),o=a.length,r=i[i.length-1]),n&&this._areConsecutive(r,e)&&this._searchTerm.length>=o&&this._searchTerm.includes(e.text(),o))e.data("id",t),this._updateFindResultElements(t,e);else{e.data("id",1+t);var s={elements:[e],sectionID:this._getParentSectionID(e)};this._findResults.push(s)}}},{key:"_getParentSectionID",value:function(e){return 0<e.parents("."+T.default.DOCUMENT.TITLECLASS+", ."+T.default.DX.HEADINGCLASS).length?null:e.parents("section").filter(function(e,t){return 0<(0,g.default)(t).parent("."+T.default.DOCUMENT.DOCUMENTCLASS).length}).eq(0).attr("id")}},{key:"_findEachFunction",value:function(e){var t=(0,g.default)(e);if(v.UtilFunctions.isNavElement(t))this._navFindResults.push(t);else{if(v.UtilFunctions.isHidden(t))return void this._ineligbleResults.push(t);this._pushToFindResults(t)}}},{key:"_areConsecutive",value:function(e,t){var n=v.UtilFunctions.getBoundingDocRect(e.get(0)),a=v.UtilFunctions.getBoundingDocRect(t.get(0));if(n.y===a.y)return n.right>=a.left-5;var i=(0,g.default)("."+T.default.DOCUMENT.DOCUMENTCLASS).get(0);return a.left===v.UtilFunctions.getBoundingDocRect(i).left}},{key:"_findDoneFunction",value:function(e){var p=this;if(void 0!==e){var t=!!this._curResult;t||(this._curResult=-1);for(var n=this._findResults.length;0<this._ineligbleResults.length;)this._ineligbleResults.shift().unmark();if(0<n){(0,g.default)("#resultsContainer").show(),(0,g.default)("#noResultsContainer").hide(),(0,g.default)("#totalResults").html(this._findResults.length),0<this._navFindResults.length&&this._navFindResults.forEach(function(e){var t=(0,g.default)(e),n=t.parents(".dx-fake-title, .dx-fake-header, .dx-fake-sub-header").attr("id");if(n){n=n.substr(0,n.indexOf("_fake"));var a=p._findResults.find(function(e){var t=e.elements[0];return t.parents("\n                                          ."+T.default.DOCUMENT.TITLECLASS+",\n                                          ."+T.default.DX.HEADINGCLASS+",\n                                          ."+T.default.DX.SUBHEADINGCLASS+"\n                                        ").attr("id")===n&&void 0===t.data("fakeElement")});a&&a.elements.forEach(function(e){e.data("fakeElement",t),t.data("id",e.data("id"))})}}),(0,g.default)(".icon-collapsed:visible, .dx-fake-header").each(function(e,t){var n=(0,g.default)(t),a=[];if(n.hasClass("icon-collapsed"))a=n.parent().nextUntil([]).find("."+T.default.DX.FINDRESULTCLASS);else{var i=n.data("headingId"),o=v.UtilFunctions.getHeadingObj(i);if(a=n.hasClass(T.default.DX.FAKEUNWRAPPEDSECTIONCLASS)?(0,g.default)(o.selector).find("."+T.default.DX.FINDRESULTCLASS).get().filter(function(e){return!(0,g.default)(e).parents().is("."+T.default.DOCUMENT.TITLECLASS+", ."+T.default.DOCUMENT.SUBTITLECLASS)}):(0,g.default)(o.selector).nextUntil([]).find("."+T.default.DX.FINDRESULTCLASS),n.hasClass("dx-fake-sub-header")){var r=n.prevAll(".dx-fake-header:first"),s=r.find(".dx-find-results-summary");if(0<s.length){var l=s.data("results")-a.length;if(0==l)r.removeClass("dx-summarized-header"),s.remove();else{var u=a.eq(0).data("id")-1;s.html(l),s.data({results:l,maxIdx:u})}}}}if(0<a.length){n.hasClass("icon-collapsed")&&n.addClass("dx-summarized-header");var d=(0,g.default)(a).eq(0).data("id"),c=(0,g.default)(a).eq(a.length-1).data("id"),f=(0,g.default)(a).eq(0).parents("section").last().attr("id"),E=p._findResults.filter(function(e){return e.sectionID===f}),h=_.Localization.translateNumber(E.length),A=(0,g.default)("<span class='dx-find-results-summary' lang='"+h.lang+"'>"+h.phrase+"</span>");A.data({results:E.length,minIdx:d,maxIdx:c}),n.append(A)}});var a=[];-1!==this._curResult&&a.push({idx:this._curResult,result:this._findResults[this._curResult]});for(var i=0;i<n;++i){var o=this._getCollapsedHeadingSummary(i,!1);(!this._isAboveViewPort(this._findResults[i])||0<o.length&&!this._isAboveViewPort(o))&&a.push({idx:i,result:this._findResults[i]})}0<a.length?this._curResult=a[0].idx:this._curResult=0,(0,g.default)("#currentResult").html(this._curResult+1);var r=void 0;this._findResults[this._curResult].elements.forEach(function(e){if(e.addClass("dx-selected"),void 0!==(r=e).data("fakeElement")){var t=(0,g.default)(e.data("fakeElement"));t.addClass("dx-selected"),p._isInNavigationMode()&&(r=t)}});var s=this._getCollapsedHeadingSummary(this._curResult,!0);0<s.length&&s.addClass("dx-selected");var l=this._getCollapsedHeadingSummary(this._curResult,!1);this._headingClicked||(0<l.length?(this._scrollIntoViewIfNeeded(l),this._onCollapsed=!0):this._scrollIntoViewIfNeeded(r))}else(0,g.default)("#resultsContainer").hide(),(0,g.default)("#noResultsContainer").show();(0,g.default)(".dx-find-results-summary:not(.dx-fake-doc .dx-find-results-summary)").on("click.find",function(e){p._handleSummaryClick(e)}),(0,g.default)(".dx-fake-header").on("click.find",function(e){return p._handleSummaryClick(e)}),(0,g.default)(".dx-fake-sub-header").on("click.find",function(e){return p._handleSummaryClick(e)}),(0,g.default)("."+T.default.DX.COLLAPSETRIGGERWRAPPER).off("click.findtrigger").on("click.findtrigger",function(e){p._headingClicked=!0,p._handleHeadingBehavior(e)}),t||this._returnResultsToApp(n,this._curResult+1)}}},{key:"_getCollapsedHeadingSummary",value:function(n,e){var t=[];if(e)t=(0,g.default)("section .dx-find-results-summary, .dx-fake-doc .dx-find-results-summary").toArray();else{var a=this._isInNavigationMode()?".dx-fake-doc .dx-find-results-summary":"section .dx-find-results-summary";t=(0,g.default)(a).toArray()}function i(e){var t=(0,g.default)(e);return n>=t.data("minIdx")&&n<=t.data("maxIdx")}var o=[];return o=e?t.filter(i):t.find(i),(0,g.default)(o)}},{key:"_toggleEasterEgg",value:function(e){var t=this._easterEggToggles[e];return void 0===t&&(t=0),t=!t,this._easterEggToggles[e]=t}},{key:"_handleDocumentFind",value:function(e,t,n,a){this._searchTerm=e,this._clearFind(t);var i=v.UtilFunctions.sanitizeText(e);if(i){if((0,g.default)("#hiddenFindInput").text(i),i=(0,g.default)("#hiddenFindInput").text(),e===T.default.EASTEREGGS.VERSION?(h.Log.toggleSummary(),i=null):(0,g.default)("#loggingContainer").is(":visible")&&h.Log.toggleSummary(),e===T.default.EASTEREGGS.NIGHTMODE){var o=this._toggleEasterEgg(T.default.EASTEREGGS.NIGHTMODE);E.Events.publish(T.default.EVENTS.NIGHTMODE,o)}else if(e===T.default.EASTEREGGS.FALLBACKS){var r=this._toggleEasterEgg(T.default.EASTEREGGS.FALLBACKS);h.Log.info("triggering fallbacks highlighting "+r),E.Events.publish(T.default.EVENTS.FALLBACKSHIGHLIGHT,r)}else if(e===T.default.EASTEREGGS.DEBUG){var s=this._toggleEasterEgg(T.default.EASTEREGGS.DEBUG);E.Events.publish(T.default.EVENTS.DEBUG,s)}else if(e===T.default.EASTEREGGS.ANALYTICS){var l=this._toggleEasterEgg(T.default.EASTEREGGS.NIGHTMODE);E.Events.publish(T.default.EVENTS.ANALYTICS,l)}else if(e===T.default.EASTEREGGS.PAGES){var u=this._toggleEasterEgg(T.default.EASTEREGGS.PAGES);E.Events.publish(T.default.EVENTS.PAGES,u)}else if(e===T.default.EASTEREGGS.GRID){var d=this._toggleEasterEgg(T.default.EASTEREGGS.GRID);E.Events.publish(T.default.EVENTS.GRID,d)}var c=this._findOptions,f=g.default.extend({},{caseSensitive:(0,g.default)("#caseSensitiveButton").hasClass("dx-selected")},{caseSensitive:n});c.caseSensitive=f.caseSensitive,(0,g.default)(this._findSelector).mark(e,c)}else A.Platform.isMobile&&!t&&(a?this._returnResultsToApp(-1,-1):this._returnResultsToApp(0,0))}},{key:"_handleHeadingBehavior",value:function(e){e.preventDefault();var t=(0,g.default)(e.delegateTarget),n=null;t.hasClass("dx-collapse-trigger-wrapper")&&(n=(t=t.siblings(".dx-heading")).hasClass(""+T.default.DX.COLLAPSEDHEADINGCLASS)),n?this._handleDocumentFind((0,g.default)("#hiddenFindInput").text().trim(),!0):this._showHiddenResults(t.find(".dx-find-results-summary"),!1),this._headingClicked=!1}},{key:"_handleSummaryClick",value:function(e){e.preventDefault();var t=(0,g.default)(e.delegateTarget);this._showHiddenResults(t)}},{key:"_isInNavigationMode",value:function(){return this._viewportSize===T.default.VIEWPORTS.SMALL&&(0,g.default)(".dx-fake-doc").is(":visible")||this._viewportSize!==T.default.VIEWPORTS.SMALL&&(0,g.default)("body").hasClass("overviewMode")}},{key:"_scrollIntoViewIfNeeded",value:function(e){var t=void 0;if(t=e.elements?e.elements[0]:e,this._isOutOfView(t)){var n=t.offset().top-250;n+=v.UtilFunctions.getRootScrollingObject().scrollTop(),v.UtilFunctions.getRootScrollingObject().scrollTop(n)}var a=t.closest(".ADBE_E_Table");if(0<a.length){var i=a.parent();v.UtilFunctions.getRootScrollingObject().scrollTop(i.offset().top-150);var o=t.offset().top,r=o+t.height(),s=i.offset()?i.offset().top:0;(s+i.height()<r||o<s)&&i.scrollTop(i.scrollTop()+t.offset().top+t.height());var l=t.offset().left,u=l+t.width(),d=i.offset()?i.offset().left:0,c=d+i.width();(l<d||c<u)&&(l<d?i.scrollLeft(l-d):i.scrollLeft(l+100))}}},{key:"_isOutOfView",value:function(e){var t=void 0,n=(t=e.elements?e.elements[0]:e).offset().top,a=void 0!==t.data("fakeElement")?(0,g.default)(t.data("fakeElement")).offset().top:-1,i=v.UtilFunctions.getRootScrollingObject().height(),o=(0,g.default)(window).scrollTop();return this._isInNavigationMode()?a<o+this._findOffset||a>i-this._findOffset:n<o+this._findOffset+this._outlineBarHeight||n>i-this._findOffset}},{key:"_isAboveViewPort",value:function(e){var t=void 0,n=(t=e.elements?e.elements[0]:e).offset().top,a=void 0!==t.data("fakeElement")?(0,g.default)(t.data("fakeElement")).offset().top:-1,i=(0,g.default)(window).scrollTop();return this._isInNavigationMode()?a<i+this._findOffset:n<i+this._findOffset+this._outlineBarHeight}},{key:"_moveResult",value:function(e,t){if(0===this._findResults.length)return-1;if(this._findResults[this._curResult].elements.forEach(function(e){e.removeClass("dx-selected"),void 0!==e.data("fakeElement")&&(0,g.default)(e.data("fakeElement")).removeClass("dx-selected")}),this._onCollapsed){var n=(0,g.default)(".dx-find-results-summary.dx-selected").eq(0);0<n.length&&(t?this._curResult=n.data("maxIdx")+1:this._curResult--),(this._onCollapsed=!1,g.default)(".dx-find-results-summary.dx-selected").removeClass("dx-selected")}else t?this._curResult++:this._curResult--;t&&this._curResult>=this._findResults.length&&(this._curResult=e?0:this._findResults.length-1),t||this._curResult<0&&(this._curResult=e?this._findResults.length-1:0);var a=this._findResults[this._curResult],i=a,o=this._getCollapsedHeadingSummary(this._curResult);0<o.length&&(this._onCollapsed=!0,o.addClass("dx-selected"),i=o.eq(0),this._curResult!==o.data("minIdx")&&(this._curResult=o.data("minIdx"),a=this._findResults[this._curResult])),a.elements.forEach(function(e){e.addClass("dx-selected"),void 0!==e.data("fakeElement")&&(0,g.default)(e.data("fakeElement")).addClass("dx-selected")});var r=this._getCollapsedHeadingSummary(this._curResult,!0);0<r.length&&r.parents(".dx-fake-doc")&&((0,g.default)("."+T.default.DX.FAKEDOCUMENTCLASS+" ."+T.default.DX.FINDRESULTSSUMMARYCLASS+"."+T.default.DX.SELECTEDCLASS).removeClass(T.default.DX.SELECTEDCLASS),r.addClass(T.default.DX.SELECTEDCLASS)),this._scrollIntoViewIfNeeded(i);var s=this._curResult+1;return(0,g.default)("#currentResult").html(s),s}},{key:"_returnResultsToApp",value:function(e,t){A.Platform.postFindResults(e,t)}},{key:"_setUpEvents",value:function(){var i=this;(0,g.default)("#findTrigger").on("click",function(e){e.preventDefault();var t=(0,g.default)(e.delegateTarget);i._handleDocumentFind((0,g.default)("#findInput").val().trim()),t.parent().hide(),(0,g.default)(".dx-find-bar-container").show(),(0,g.default)("."+T.default.DX.DOCUMENTWRAPPERCLASS).css("margin-top","90px"),(0,g.default)("#findInput").focus(),E.Events.publish(T.default.EVENTS.LAYOUTCHANGED,"Find")}),(0,g.default)("#findClose").on("click",function(e){e.preventDefault(),e.stopPropagation(),i._handleDocumentFind(""),(0,g.default)("#findInput").val(""),(0,g.default)("#findClear").hide(),(0,g.default)("."+T.default.DX.DOCUMENTWRAPPERCLASS).css("margin-top",""),(0,g.default)(".dx-find-bar-container").hide(),(0,g.default)(".dx-find-trigger-button-container").show(),E.Events.publish(T.default.EVENTS.LAYOUTCHANGED,"Find")}),(0,g.default)("#findInput").on("keyup",function(e){var t=(0,g.default)("#findClear"),n=(0,g.default)(e.delegateTarget),a=e.keyCode;t.is(":hidden")&&t.show(),13===a&&(i._handleDocumentFind(n.val().trim()),e.stopPropagation())}),(0,g.default)("#findButton").on("click",function(e){e.stopPropagation(),i._handleDocumentFind((0,g.default)("#findInput").val().trim())}),(0,g.default)("#findPrevButton").on("click",function(e){e.stopPropagation();var t=(0,g.default)("#wrapButton").hasClass("dx-selected");i._moveResult(t)}),(0,g.default)("#findNextButton").on("click",function(e){e.stopPropagation();var t=(0,g.default)("#wrapButton").hasClass("dx-selected");i._moveResult(t,!0)}),(0,g.default)("#findClear").on("click",function(e){e.stopPropagation();var t=(0,g.default)(e.delegateTarget);i._clearFindInput((0,g.default)("#findInput")),t.hide()}),(0,g.default)(".dx-find-panel-button").on("click",function(e){e.stopPropagation(),(0,g.default)(e.delegateTarget).toggleClass("dx-selected")}),E.Events.subscribe(T.default.EVENTS.NAVIGATIONSHOWN,function(){var e=i._getCollapsedHeadingSummary(i._curResult);i._onCollapsed=0<e.length}),E.Events.subscribe(T.default.EVENTS.NAVIGATIONHIDDEN,function(){var e=i._getCollapsedHeadingSummary(i._curResult);i._onCollapsed=0<e.length}),E.Events.subscribe(T.default.EVENTS.LAYOUTCHANGED,function(){if(0<i._findResults.length&&i._summaryHeadingClicked){var e=(i._summaryHeadingClicked=!1,g.default)("."+T.default.DX.FINDRESULTCLASS+"."+T.default.DX.SELECTEDCLASS);0===e.length&&(e=(0,g.default)(".dx-find-results-summary.dx-selected")),i._scrollIntoViewIfNeeded(e)}var t=i._findResults[i._curResult];if(t&&t.elements[0].hasClass("dx-selected")){if(0!==t.elements[0].parents(".dx-heading").length)return;var n=t.elements[0].parents("section").find(".dx-heading");n.hasClass("icon-collapsed")&&(i._onCollapsed=!0),n.hasClass("icon-expanded")&&(i._onCollapsed=!1)}}),E.Events.subscribe(T.default.EVENTS.FALLBACKTRIGGERED,function(){i._clearResults(!0)}),E.Events.subscribe(T.default.EVENTS.FALLBACKUNDONE,function(){i._clearResults(!0)}),E.Events.subscribe(T.default.EVENTS.LIGHTBOXENTER,function(){i._clearResults(!0)})}},{key:"_showHiddenResults",value:function(n,e){if(0!==n.length){var a=[],t=!1;if(n.hasClass("dx-fake-header")){var i=n.find("."+T.default.DX.FINDRESULTCLASS);0<i.length?(this._curResult=i.eq(0).data("id"),t=!0):(0===(a=n.find(".dx-find-results-summary")).length&&n.nextUntil(".dx-fake-header").each(function(e,t){if(!(0<a.length)){var n=(0,g.default)(t);a=n.find(".dx-find-results-summary")}}),0<a.length&&(this._summaryHeadingClicked=!0,this._curResult=a.data("minIdx"),a.parent().hasClass("icon-collapsed")&&a.parent().click()))}else if(n.hasClass("dx-fake-sub-header")){var o=n.find("."+T.default.DX.FINDRESULTCLASS);if(0<o.length)this._curResult=o.eq(0).data("id"),t=!0;else if(0<(a=n.find(".dx-find-results-summary")).length){this._summaryHeadingClicked=!0;var r=n.data("headingId"),s=(0,g.default)(v.UtilFunctions.getHeadingObj(r).selector);0<s.length&&(this._curResult=s.nextUntil([]).find("."+T.default.DX.FINDRESULTCLASS).eq(0).data("id"))}}else{if(e||(this._curResult=n.data("minIdx")),this._viewportSize!==T.default.VIEWPORTS.SMALL){var l=(0,g.default)("."+T.default.DX.FAKEDOCUMENTCLASS+" ."+T.default.DX.FINDRESULTSSUMMARYCLASS).toArray().find(function(e){var t=(0,g.default)(e).data();return t.minIdx===n.data().minIdx&&t.maxIdx===n.data().maxIdx});l&&(a=(0,g.default)(l))}n.remove()}(0,g.default)("."+T.default.DX.FINDRESULTCLASS+"."+T.default.DX.SELECTEDCLASS+",\n       ."+T.default.DX.FINDRESULTSSUMMARYCLASS+"."+T.default.DX.SELECTEDCLASS).removeClass("dx-selected");var u=this._findResults[this._curResult];u&&u.elements.forEach(function(e){e.addClass("dx-selected"),void 0!==e.data("fakeElement")&&(0,g.default)(e.data("fakeElement")).addClass("dx-selected")}),0<a.length&&this._viewportSize!==T.default.VIEWPORTS.SMALL&&a.addClass("dx-selected");var d=this._curResult+1;(0,g.default)("#currentResult").html(d);var c=this._findResults.length;this._returnResultsToApp(c,this._curResult+1),t&&this._scrollIntoViewIfNeeded(u)}}}]),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,"find","find",T.default.PLATFORMS.ALL));return t._searchTerm="",t._easterEggToggles={},t._includesPosition=0,t._findResults=[],t._navFindResults=[],t._ineligbleResults=[],t._curResult=-1,t._onCollapsed=!1,t._resultCounter=0,t._summaryHeadingClicked=!1,t._findOffset=0,t._headingClicked=!1,t._findSelector="."+T.default.DOCUMENT.DOCUMENTCLASS+", ."+T.default.DX.FAKEDOCUMENTCLASS,t._outlineBarHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--outline-bar-hamburger-margin-top"),10)+parseInt(getComputedStyle(document.documentElement).getPropertyValue("--outline-bar-hamburger-height"),10)+parseInt(getComputedStyle(document.documentElement).getPropertyValue("--outline-bar-hamburger-margin-bottom"),10),t._findOptions={element:"span",className:T.default.DX.FINDRESULTCLASS,exclude:[],separateWordSearch:!1,accuracy:"partially",diacritics:!0,acrossElements:!0,ignoreJoiners:!0,debug:!0,each:function(e){return t._findEachFunction(e)},done:function(e){return t._findDoneFunction(e)}},t}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var s=r(n(1)),o=r(n(23)),l=r(n(0)),u=n(7),d=n(3),c=n(2);function r(e){return e&&e.__esModule?e:{default:e}}var f=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(E,o.default),a(E,[{key:"init",value:function(){var r=this;c.Events.subscribe(l.default.DOM_EVENTS.FOOTNOTELOADED,function(e){var t=(0,s.default)(e),n=t.attr("id"),a=t.attr("data-ref"),i=(0,s.default)("#"+a);0===i.length&&d.Log.warn("Can't find matching footnote. ID: "+n);var o=u.Localization.translate(l.default.ACCESSIBILITY.ARIAFOOTNOTELBL);t.attr(l.default.ACCESSIBILITY.ARIALABEL,o.phrase),r._setUpNote(t,i)}),this._isInitialized=!0}}]),E);function E(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,"footnote","inlinePopupNote",l.default.PLATFORMS.ALL))}t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var u=r(n(1)),o=r(n(4)),d=r(n(0)),c=n(5);function r(e){return e&&e.__esModule?e:{default:e}}var s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,o.default),a(l,[{key:"_init",value:function(){(0,u.default)("body").on("keydown",this._onBodyKeyDown),(0,u.default)("a").on("keydown",this._onLinkKeyDown)}},{key:"_onBodyKeyDown",value:function(e){var t=!1;if(t=c.Platform.isPlatform(d.default.PLATFORMS.MACOS)?!0===e.metaKey&&!1===e.ctrlKey:!0===e.ctrlKey&&!1===e.metaKey,13===e.keyCode&&!1===e.altKey&&!1===e.ctrlKey&&!1===e.metaKey){(0,u.default)("html, body").stop(!0,!0);var n=0,a=.875*window.innerHeight;n=!1===e.shiftKey?Math.min(window.scrollY+a,(0,u.default)(document).height()-window.innerHeight):Math.max(window.scrollY-a,0),window.scrollY!==n&&(0,u.default)("html, body").animate({scrollTop:n},200),e.stopPropagation()}else if(33!==e.keyCode&&38!==e.keyCode||!1!==e.altKey||!0!==t||!0!==e.shiftKey)if(34!==e.keyCode&&40!==e.keyCode||!1!==e.altKey||!0!==t||!0!==e.shiftKey){if(27===e.keyCode){var i=(0,u.default)(document.activeElement),o=!0;if(void 0!==i){if(i.hasClass("note_content")){var r=i.attr("id");void 0!==r&&(r=r.substring(0,r.indexOf("_note")),(0,u.default)("#"+r).focus(),o=!0)}else if(i.hasClass("note_close")||i.hasClass("note_object")){var s=i.parent().attr("id");void 0!==s&&(s=s.substring(0,s.indexOf("_note")),(0,u.default)("#"+s).focus(),o=!0)}}else o=!1;(0,u.default)(".note_content").each(function(e,t){var n=(0,u.default)(t);if(n.is(":visible")){var a=n.attr("id");a=a.substring(0,a.indexOf("_note"));var i=(0,u.default)("#"+a);n.find(".note_close").hide(),i.data("clickEnabled")&&(n.find(".note_close").hide(),i.data("clickEnabled",!1)),n.animate({top:"-=10"},50,function(){o||n.prev().focus(),n.hide()})}})}}else{(0,u.default)("html, body").stop(!0,!0);var l=(0,u.default)(document).height()-window.innerHeight;window.scrollY!==l&&(0,u.default)("html, body").animate({scrollTop:l},200),e.stopPropagation()}else(0,u.default)("html, body").stop(!0,!0),0!==window.scrollY&&(0,u.default)("html, body").animate({scrollTop:0},200),e.stopPropagation()}},{key:"_onLinkKeyDown",value:function(e){13===e.keyCode&&e.stopPropagation()}}]),l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,"keyboardHandler","keyboardHandler",d.default.PLATFORMS.DESKTOP))}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var c=r(n(1)),o=r(n(4)),f=r(n(0)),E=n(6),h=n(3),A=n(2),p=n(8);function r(e){return e&&e.__esModule?e:{default:e}}var s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,o.default),a(l,[{key:"getInterface",value:function(){var n=this;return{abort:function(){return n._abort()},getTopElementAndOffsetInViewport:function(){n.log("from interface, client calling getTopElementIdAndOffsetInDoc (DV->CV navsync)");var e=E.UtilFunctions.getLastTopElementPosition();e=e||E.UtilFunctions.getTopElementPosition();var t=E.UtilFunctions.getTopElementIdAndOffsetInDoc(e);return n.log("about to return elemOffset from getTopElementIdAndOffsetInDoc, $elemOffset = "),n.dir(t),t},scrollIntoView:function(e,t){n.log("from navsync interface, calling _scrollIntoView"),n._scrollIntoView(e,t,(0,c.default)(window)),n.log("done with scrollIntoView from navsync interface")},setPreventNextNavSync:function(e){n._setPreventNextNavSync(e)},getPreventNextNavSync:function(){return n._getPreventNextNavSync()},setNavSyncPreventionEnabled:function(e){n._setNavSyncPreventionEnabled(e)},getNavSyncPreventionEnabled:function(){return n._getNavSyncPreventionEnabled()}}}},{key:"_abort",value:function(){this._navSyncTargetElement=null,this._navSyncTargetOffset=0,A.Events.publish(f.default.EVENTS.NAVSYNC,{elementId:null,offset:0})}},{key:"_init",value:function(){var t=this;try{A.Events.subscribe(f.default.EVENTS.ABANDONNAVSYNC,function(e){t._abort()})}catch(e){h.Log.error("Could not initialize Nav Sync. "+e)}}},{key:"_testNavSync",value:function(){var e=window.AdbeDxNavSyncDestination,t=window.AdbeDxNavSyncOffset;t=t||0,e&&(A.Events.publish(f.default.EVENTS.DEBUG,!0),this._scrollIntoView(e,t,(0,c.default)(window)))}},{key:"_setPreventNextNavSync",value:function(e){this.log("setPreventNextNavSync, prevent =  "+e+", preventionEnabled = "+this._getNavSyncPreventionEnabled()),this._getNavSyncPreventionEnabled()&&(this._preventNextNavSync=e)}},{key:"_getPreventNextNavSync",value:function(){var e=!!this._getNavSyncPreventionEnabled()&&this._preventNextNavSync;return this.log("getPreventNextNavSync() returning "+e),e}},{key:"_setNavSyncPreventionEnabled",value:function(e){this._navSyncPreventionEnabled=e,this.log("setNavSyncPreventionEnabled("+e+")"),e||(this._preventNextNavSync=!1)}},{key:"_getNavSyncPreventionEnabled",value:function(){return this.log("getNavSyncPreventionEnabled() returning "+this._navSyncPreventionEnabled),this._navSyncPreventionEnabled}},{key:"_scrollIntoView",value:function(e,t){if(this.log("navSync started (scroll into view), elementId = ",e,", elementOffset = ",t),this.trace(),!0===this._getPreventNextNavSync())return this.log("navSync prevented"),void this._setNavSyncPreventionEnabled(!1);this.log("navSync allowed");var n=e,a=t;if(n!==f.default.DOCUMENT.TOPOFDOCUMENT){var i=(0,c.default)("#"+n+":visible");if(0===i.length){var o=AdbeDx.document.descendants();o&&o[n]?(n=o[n],i=(a=0,c.default)("#"+n),this.log("found descendant "+e+" in "+n)):i=(0,c.default)("#"+n)}if(this._navSyncTargetElement=n,this._navSyncTargetOffset=a,0===i.length)return this.log("$element to navsync to not found, id = ",n),void("complete"===document.readyState?this.log("scrollIntoView: No such element exists: "+n):(A.Events.publish(f.default.EVENTS.NAVSYNC,{elementId:n,offset:a}),this.info("%c NavSync waiting for "+n+" "+a,this._cosmetics)));this._setNavSyncPreventionEnabled(!1);var r=E.UtilFunctions.hasAnyClass(i,f.default.DOCUMENT.HEADERCLASS+" "+f.default.DOCUMENT.FOOTERCLASS),s=i.is(":hidden");r&&i.removeClass(""+f.default.DX.UNSELECTABLECLASS),s&&i.show();var l=1;i.data("page")&&(l=i.data("page")),h.Log.info("attempting to wrap glyph");var u=void 0;try{u=E.UtilFunctions.wrapGlyph({elementId:n,offset:a})}catch(e){h.Log.error("Error when attempting to wrap glyph: "+e)}this.log("wrapped glyph ="),this.dir(u),p.Analytics.addPageAction(l,i,f.default.ANALYTICS.GLOBALACTIONS.NAVSYNC);var d={el:null,scrollRatio:0};u&&(d.el=u.get(0),(u.is("img")||u.is("svg"))&&(d.scrollRatio=a/100)),r&&i.addClass(""+f.default.DX.UNSELECTABLECLASS),this.log("in scrollIntoView, about to call scrollToPositionBasedOnElement, glyphPos = "),this.dir(d),E.UtilFunctions.scrollToPositionBasedOnElement(d),u&&0<u.length&&0===u.find("."+f.default.DX.COMMENTCLASS).length&&E.UtilFunctions.unwrapGlyph(u.attr("id"))}else E.UtilFunctions.getRootScrollingObject().scrollTop(0)}},{key:"log",get:function(){return this._isDebug?window.console.log:function(){}}},{key:"trace",get:function(){return this._isDebug?window.console.trace:function(){}}},{key:"dir",get:function(){return this._isDebug?window.console.dir:function(){}}},{key:"info",get:function(){return this._isDebug?window.console.info:function(){}}}]),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,"navSync","navSync",f.default.PLATFORMS.ALL));return t._isDebug=!1,t._navSyncTargetElement=null,t._navSyncTargetOffset=0,t._oldPosition=null,t._preventNextNavSync=!1,t._navSyncPreventionEnabled=!0,t._cosmetics="background: #F66; color: white; display: block;font-weight:bold; line-height: 25px;border-left:4px solid #422; border-right:4px solid #422",A.Events.subscribe(f.default.EVENTS.DEBUG,function(e){(t._isDebug=e)||t._oldPosition&&(E.UtilFunctions.getTopElementIdAndOffsetInDoc(),(0,c.default)("#"+t._oldPosition.elementId).css("border",""),t._oldPosition=void 0)}),t._testNavSync(),t}t.default=s},function(e,E,h){"use strict";(function(l){Object.defineProperty(E,"__esModule",{value:!0});var e=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var t=s(h(4)),u=s(h(0)),n=h(7),i=h(2),o=h(8),r=h(5),d=h(6);function s(e){return e&&e.__esModule?e:{default:e}}var c=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(f,t.default),e(f,[{key:"getInterface",value:function(){var t=this;return{checkForFirstOutlineInteraction:function(e){return t._checkForFirstOutlineInteraction(e)}}}},{key:"_init",value:function(){var e=this;this._subscribeEvents(),window.addEventListener("orientationchange",function(){e._updateFabIcon()})}},{key:"_subscribeEvents",value:function(){var t=this;i.Events.subscribe(u.default.EVENTS.HEADINGLOADED,function(e){t._handleHeadingLoaded(e)}),i.Events.subscribe(u.default.EVENTS.ENDOFDOCSCROLLSTARTED,function(){t._scrollLock=!0}),i.Events.subscribe(u.default.EVENTS.ENDOFDOCSCROLLENDED,function(){t._scrollLock=!1})}},{key:"_createOutlineIfNecessary",value:function(){if(!this._$outline){var e="\n        <div class='"+u.default.DX.OUTLINE+" col-xl-3 col-md-4 px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'/>\n      ";l("."+u.default.DX.LAYOUTMAINCONTENT).prepend(e),this._$outline=l("."+u.default.DX.OUTLINE),i.Events.publish(u.default.EVENTS.OUTLINELOADINGSTART)}}},{key:"_createOutlineBarIfNecessary",value:function(){if(!this._$outlineBar){this._$layoutContainer=l("."+u.default.DX.LAYOUTCONTAINER),this._$documentWrapper=l("."+u.default.DX.DOCUMENTWRAPPERCLASS),this._topPositionOffset=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--top-position-offset"),10);var e="\n        <div class='dx-spectrum-quiet-button "+u.default.DX.OUTLINE_HEADING_BAR_TOGGLE_BUTTON+'\'>\n        <svg version="1.1" id="Layer_1" class="dx-outline-bar-icon"\n        xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n        x="0px" y="0px" viewBox="0 0 22 22" style="enable-background:new 0 0 22 22;" xml:space="preserve">\n           <g>\n             <rect x="7.5" y="4.5" class="dx-svg-menu-icon-background" width="11.1" height="12"/>\n             <rect x="3.5" y="4.5" class="dx-svg-menu-icon-grey-background" width="4" height="12"/>\n             <rect x="2" y="4" class="dx-svg-menu-icon-outline dx-svg-menu-icon-move dx-svg-menu-icon-animation" width="1.5" height="12.7"/>\n             <rect x="3.5" y="4.5" class="dx-svg-menu-icon-background dx-svg-menu-icon-move dx-svg-menu-icon-animation" width="5" height="12"/>\n             <path class="dx-svg-menu-icon-three-lines dx-svg-menu-icon-move dx-svg-menu-icon-animation" d="M5.4,7.5C5.4,7.2,5.6,7,5.9,\n             7H11c0.3,0,0.5,0.2,0.5,0.5V8c0,0.3-0.2,0.5-0.5,0.5H5.9C5.6,8.5,5.4,8.3,5.4,8V7.5z M5.4,10.5c0-0.3,0.2-0.5,0.5-0.5H11c0.3,0,0.5,0.2,\n             0.5,0.5V11c0,0.3-0.2,0.5-0.5,0.5H5.9c-0.3,0-0.5-0.2-0.5-0.5V10.5zM5.4,13.5c0-0.3,0.2-0.5,0.5-0.5H11c0.3,0,0.5,0.2,0.5,0.5V14c0,\n             0.3-0.2,0.5-0.5,0.5H5.9c-0.3,0-0.5-0.2-0.5-0.5V13.5z"/>\n             <path class="dx-svg-menu-icon-three-lines" d="M10.6,7.5C10.6,7.2,10.8,7,11,7h5.1c0.3,0,0.5,0.2,0.5,0.5V8c0,0.3-0.2,0.5-0.5,\n             0.5H11c-0.3,0-0.5-0.2-0.5-0.5V7.5z M10.6,10.5c0-0.3,0.2-0.5,0.5-0.5h5.1c0.3,0,0.5,0.2,0.5,0.5V11c0,0.3-0.2,0.5-0.5,0.5H11c-0.3,\n             0-0.5-0.2-0.5-0.5V10.5zM10.6,13.5c0-0.3,0.2-0.5,0.5-0.5h5.1c0.3,0,0.5,0.2,0.5,0.5V14c0,0.3-0.2,0.5-0.5,0.5H11c-0.3,\n             0-0.5-0.2-0.5-0.5V13.5z"/>\n             <path class="dx-svg-menu-icon-outline" d="M19,3c0.5,0,1,0.5,1,1l0,0V17c0,0.6-0.4,1-1,1l0,0H3c-0.5,0-1-0.5-1-1l0,0V4c0-0.6,0.4-1,\n             1-1l0,0H19zM18.6,4.6l-15.1,0v11.9h15.1V4.6z"/>\n           </g>\n        </svg>\n        </div>\n        <div class=\''+u.default.DX.OUTLINE_HEADING_BAR+" row'>\n          <div class='"+u.default.SPECTRUM.SPECTRUMQUIETBUTTON+" "+u.default.DX.OUTLINE_HEADING_BAR_HEADING_TEXT+"'/>\n        </div>";this._$layoutContainer.prepend(e),this._$outlineBar=l("."+u.default.DX.OUTLINE_HEADING_BAR),this._$outlineHeaderBar=l("."+u.default.DX.OUTLINE_HEADING_BAR),this._setUpOutlineBarEvents()}}},{key:"_createObserverIfNecessary",value:function(){var t=this;this._outlineObserver||(this._outlineObserver=new IntersectionObserver(function(e){t._outlineHeadingChange(e)},{root:null,rootMargin:-this._$outlineHeaderBar.height()+"px 0px 0px 0px",threshold:1}),i.Events.subscribe(u.default.EVENTS.COLLAPSINGEXPANDINGHEADING,function(){t._scrollLock=!0,setTimeout(function(){t._scrollLock=!1},500)}))}},{key:"_setUpOutlineBarEvents",value:function(){var n=this;l("."+u.default.DX.OUTLINE_HEADING_BAR_TOGGLE_BUTTON+", ."+u.default.DX.OUTLINE_HEADING_BAR_HEADING_TEXT).on("click",function(e){var t=void 0;l(window).width()>=u.default.VIEWPORTS.MEDIUM_BOUNDARY&&(t=d.UtilFunctions.returnTopElementPosition()),n._toggleOutlineVisibility(),void 0!==t&&l(document).width()>=u.default.VIEWPORTS.MEDIUM_BOUNDARY&&d.UtilFunctions.scrollToPositionBasedOnElement(t),e.preventDefault(),e.stopPropagation()}),l(window).on("orientationchange",function(){n._$layoutContainer.removeClass(u.default.DX.OUTLINE_VISIBLE+" "+u.default.DX.OUTLINE_HIDDEN)}),l("."+u.default.DX.OUTLINE_HEADING_BAR).on("touchmove",function(e){e.preventDefault()})}},{key:"_setUpOutlineScrolling",value:function(e,o){var r=this;e.on("click",function(){var e=o[0];r._$documentWrapper.is(":visible")||r._toggleOutlineVisibility(),r._updateOutlineHeaderSelected(e),r._stopHeadingBarGradientWatcher(),r._scrollLock=!0,r._gradientLock=!0;var t="H1"===e.tagName&&"true"===o.attr("aria-expanded"),n="H2"===e.tagName&&o.is(":visible");if(!t&&!n)if("H1"===e.tagName)r._$headings.find(function(e){return l(e).attr("id")===o.attr("id")}).click();else if("H2"===e.tagName){var a=r._$headings.findIndex(function(e){return l(e).attr("id")===o.attr("id")});if(0<a)for(var i=a;0<i;i--)if("H1"===r._$headings[i].tagName){r._$headings[i].click();break}}l("."+u.default.DX.OUTLINE_HEADING_BAR_HEADING_TEXT).css("opacity",0),r._scrollToHeading(o).then(function(){r._updateOutlineBarText(e),r._scrollLock=!1,setTimeout(function(){r._gradientLock=!1,r._startHeadingBarGradientWatcher(e)},500)})})}},{key:"_startHeadingBarGradientWatcher",value:function(a){var i=this;this._stopHeadingBarGradientWatcher(),this._$documentWrapper.on("scroll",function(e){var t=l(a).offset().top;if(e.target.scrollTop<=0)return i._updateOutlineBarText(null,i._getLocalizedNavigPrompt()),void l("."+u.default.DX.OUTLINE_HEADING_BAR_HEADING_TEXT).css("opacity",1);var n=Math.abs(.005*(t-i._$outlineHeaderBar.height()-8));l("."+u.default.DX.OUTLINE_HEADING_BAR_HEADING_TEXT).css("opacity",n)})}},{key:"_stopHeadingBarGradientWatcher",value:function(){this._$documentWrapper.off("scroll")}},{key:"_scrollToHeading",value:function(e,t){var n=this,a=null;return a=-1<t?t:this._$outlineBar.is(":visible")?this._$documentWrapper.scrollTop()+e.offset().top-this._$outlineHeaderBar.height():this._$documentWrapper.scrollTop()+e.offset().top-this._topPositionOffset,new Promise(function(e){n._$documentWrapper.scrollTop(a),e()})}},{key:"_outlineHeadingChange",value:function(e){var n=this;this._scrollLock||e.forEach(function(t){if(t.rootBounds)if(t.intersectionRect.y<=t.rootBounds.height/2&&t.boundingClientRect.y<=t.rootBounds.height/2)if(n._startHeadingBarGradientWatcher(t.target),t.isIntersecting){n._atEnd=!1;var e=n._$headings.findIndex(function(e){return e.innerText===t.target.innerText});0<e?(n._updateOutlineBarText(n._$headings[e-1]),n._updateOutlineHeaderSelected(n._currentHeading)):(n._updateOutlineBarText(null,n._getLocalizedNavigPrompt()),n._updateOutlineHeaderSelected(null))}else 0<t.intersectionRatio&&(n._updateOutlineBarText(t.target),n._updateOutlineHeaderSelected(n._currentHeading));else l(t.target).hasClass(u.default.DX.ENDCONTENTHEADINGCLASS)&&(t.isIntersecting?(n._atEnd=!0,n._updateOutlineBarText(null,"&nbsp;"),n._updateOutlineHeaderSelected(null)):n._atEnd&&(n._updateOutlineBarText(n._$headings[n._$headings.length-1]),n._updateOutlineHeaderSelected(n._currentHeading)))})}},{key:"_updateOutlineBarText",value:function(e,t){this._currentHeading=e;var n=l("."+u.default.DX.OUTLINE_HEADING_BAR+" ."+u.default.DX.OUTLINE_HEADING_BAR_HEADING_TEXT);e?l(n).text(this._getCleanText(l(e))):t&&"string"==typeof t&&l(n).html(t)}},{key:"_getOutlineBarText",value:function(){return l("."+u.default.DX.OUTLINE_HEADING_BAR+" ."+u.default.DX.OUTLINE_HEADING_BAR_HEADING_TEXT).text()}},{key:"_getLocalizedNavigPrompt",value:function(){return n.Localization.translate(u.default.PHRASES.NAVIG_PROMPT).phrase}},{key:"_updateOutlineHeaderSelected",value:function(e){if(l("."+u.default.DX.OUTLINE+" ."+u.default.DX.PROCESSED).removeClass(u.default.DX.ACTIVE),e){var t=l("."+u.default.DX.OUTLINE+" #dx_"+e.id);if(0<t.length&&!this._inViewport(t)){var n=l(t).offset();n.top-=20,l("."+u.default.DX.OUTLINE).animate({scrollTop:n.top})}t.addClass(u.default.DX.ACTIVE)}}},{key:"_toggleOutlineVisibility",value:function(){this._scrollLock=!0,this._$layoutContainer.hasClass(""+u.default.DX.OUTLINE_VISIBLE)||this._$layoutContainer.hasClass(""+u.default.DX.OUTLINE_HIDDEN)?this._$layoutContainer.toggleClass(u.default.DX.OUTLINE_VISIBLE+" "+u.default.DX.OUTLINE_HIDDEN):l("."+u.default.DX.OUTLINE).is(":visible")?this._$layoutContainer.addClass(""+u.default.DX.OUTLINE_HIDDEN):this._$layoutContainer.addClass(""+u.default.DX.OUTLINE_VISIBLE),this._updateFabIcon(),this._scrollLock=!1}},{key:"_listOfDescendentOriginalAdbeTypes",value:function(e,a){var i=[];return e.each(function(e,t){var n=l(t).data("target");l("#"+n).hasClass(a)&&i.push(t)}),i}},{key:"_isFirstQualified",value:function(){var e=!1;if(!this._isAlreadyQualified){var t=this._listOfDescendentOriginalAdbeTypes(this._$outline.children(),u.default.DOCUMENT.HEADINGCLASS),n=this._listOfDescendentOriginalAdbeTypes(this._$outline.children(),u.default.DOCUMENT.SUBHEADINGCLASS);(1<t.length||2<n.length&&0<t.length)&&(e=!0,this._isAlreadyQualified=!0)}return e}},{key:"_inViewport",value:function(e){var t=l(e).offset().top,n=t+l(e).outerHeight(),a=l(window).scrollTop(),i=a+l(window).height();return a<n&&t<i}},{key:"_handleHeadingLoaded",value:function(e){this._createOutlineBarIfNecessary(),this._createOutlineIfNecessary(),this._createObserverIfNecessary();var t=e.get(0),n=t.tagName,a=e.attr("id"),i="h2"===n.toLowerCase(),o=d.UtilFunctions.sanitizeText(this._getCleanText(e)),r=l("\n        <"+n+' class="'+(i?u.default.DX.OUTLINE_SUBHEADING:u.default.DX.OUTLINE_HEADING)+"\n          "+u.default.DX.PROCESSED+'" id="dx_'+a+'" data-target="'+a+'">\n          '+o+"\n        </"+n+">\n      "),s=this._$outline.children().last();0!==s.length&&s.hasClass(""+u.default.DX.LOADINGMOREOUTLINECONTAINER)?r.insertBefore(s):this._$outline.append(r),this._isFirstQualified()&&this._$layoutContainer.removeClass("dx-pending-eligibility"),this._outlineObserver.observe(t),this._$headings.length<=0&&(this._updateOutlineBarText(null,this._getLocalizedNavigPrompt()),this._updateOutlineHeaderSelected(null)),this._setUpOutlineScrolling(r,e),this._$headings.push(t)}},{key:"_getCleanText",value:function(e){var n=this;if(!e)return"";var a="",i=!1;return e.data("alt-text")&&(this._hasReportedAltText||(o.Analytics.addGlobalAction(u.default.ANALYTICS.GLOBALACTIONS.HASALTTEXT),this._hasReportedAltText=!0),a=e.data("alt-text"),i=!0),e.contents().each(function(e,t){t.nodeType===Node.TEXT_NODE?i?i=!1:a+=t.textContent:a+=n._getCleanText(l(t))}),a}},{key:"_isOutlineElement",value:function(e){return 0<e.closest("."+u.default.DX.OUTLINE).length||0<e.closest("."+u.default.DX.OUTLINE_HEADING_BAR).length||0<e.closest("."+u.default.DX.OUTLINE_HEADING_BAR_TOGGLE_BUTTON).length}},{key:"_updateFabIcon",value:function(){l("."+u.default.DX.DOCUMENTWRAPPERCLASS).is(":hidden")?r.Platform.postOutlineViewShown(!0):r.Platform.postOutlineViewShown(!1)}},{key:"_checkForFirstOutlineInteraction",value:function(e){return!this._outlineInteracted&&this._isOutlineElement(e)&&(this._outlineInteracted=!0,r.Platform.firstOutlineInteracted()),this._outlineInteracted}}]),f);function f(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,"outline","outline",u.default.PLATFORMS.ALL,u.default.MODULE_INIT_TYPE.AT_START));return e._$layoutContainer=null,e._$documentWrapper=null,e._$outline=null,e._$outlineHeaderBar=null,e._isAlreadyQualified=!1,e._outlineObserver=null,e._$headings=[],e._scrollLock=!1,e._gradientLock=!1,e._currentHeading=null,e._outlineInteracted=!1,e._atEnd=!1,e._headerBarHeight=-1,e._topPositionOffset=8,e}E.default=c}).call(E,h(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=d(n(1)),r=d(n(4)),s=d(n(0)),l=n(2),u=n(5);function d(e){return e&&e.__esModule?e:{default:e}}var c=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(f,r.default),a(f,[{key:"getInterface",value:function(){var t=this;return{setNightMode:function(e){return t._setNightMode(e)},changeZoomLevel:function(e){return t._changeZoomLevel(e)}}}},{key:"_init",value:function(){u.Platform.isMobile&&(0,o.default)("."+s.default.DOCUMENT.DOCUMENTCLASS).css("visibility","visible")}},{key:"_handleDocumentReady",value:function(){this._setUpEvents()}},{key:"_changeZoomLevel",value:function(e){if(void 0!==e){var t=this._originalFontSize*e+"px";document.documentElement.style.setProperty("font-size",t,"important")}}},{key:"_setNightMode",value:function(e){var t="body { filter: grayscale(100%) invert(100%); background-color: rgb(0, 0, 0) !important; }";this._isNightMode!==e&&(e?this._insertDXRule(t):this._deleteDXRule(t),this._isNightMode=e)}},{key:"_toggleNightMode",value:function(){this._setNightMode(!this._isNightMode)}},{key:"_insertDXRule",value:function(e){var t=this._getStyleSheet(s.default.STYLESHEETS.MANIFEST);t&&t.insertRule(e)}},{key:"_deleteDXRule",value:function(e){var t=this._getStyleSheet(s.default.STYLESHEETS.MANIFEST);if(t)for(var n=("cssRules"in t?t.cssRules:t.rules),a=0;a<n.length;a++)n[a].cssText===e&&t.deleteRule(a--)}},{key:"_getStyleSheet",value:function(e){var t=void 0,n=void 0;switch(e){case s.default.STYLESHEETS.DOCUMENT:n="style.css";break;case s.default.STYLESHEETS.MANIFEST:n="manifest.css";break;case s.default.STYLESHEETS.VENDOR:n="vendor.css";break;default:return null}for(var a=0;a<document.styleSheets.length;a++){var i=document.styleSheets[a].href;if(null===i){console.error("stylesheet ["+a+"] has no href");break}if(-1!==i.indexOf(n)){t=document.styleSheets[a];break}}return t}},{key:"_setUpEvents",value:function(){var e=this;l.Events.subscribe(s.default.EVENTS.NIGHTMODE,function(){e._toggleNightMode()})}}]),f);function f(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,"styler","styler",s.default.PLATFORMS.ALL));return e._isDebug=!1,e._isNightMode=!1,e._originalFontSize=parseFloat((0,o.default)("html").css("font-size")),e}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=f(n(1)),r=f(n(4)),s=f(n(0)),l=n(2),u=n(5),d=n(6),c=n(7);function f(e){return e&&e.__esModule?e:{default:e}}var E=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(h,r.default),a(h,[{key:"_handleDocumentReady",value:function(){u.Platform.postOutlineViewShown(!1),this._addEndOfDocContent(),d.UtilFunctions.getRootDocumentElement().find("ul, ol").each(function(e,t){var a=(0,o.default)(t),n=a.attr("class");null!==n&&-1!==n.indexOf("TOC")||a.children("li").each(function(e,t){var n=(0,o.default)(t);0===n.children("label").length&&0===n.children("."+s.default.DOCUMENT.LABELCLASS).length&&a.addClass("malformed-list")})});for(var e=(0,o.default)(".ADBE_E_Watermark, .ADBE_CM_pdfm-watermark"),t=1;t<e.length;t++)e.eq(t).children("img").hide();(0,o.default)("."+s.default.DOCUMENT.HEADERCLASS+", ."+s.default.DOCUMENT.FOOTERCLASS).addClass(""+s.default.DX.UNSELECTABLECLASS),this._setUpEvents(),this._makeAccessible(),this._adjustEndOfDocSize()}},{key:"getInterface",value:function(){var e=this;return{fixJustifiedText:function(){return e._fixJustifiedText()}}}},{key:"_isStyleSheetExempted",value:function(e){var t=!1;if(null!==e&&"string"==typeof e&&0<e.length)for(var n=0;n<this._styleSheetExemptions.length;n++){var a=this._styleSheetExemptions[n];if(-1!==e.indexOf(a)){t=!0;break}}return t}},{key:"_fixJustifiedText",value:function(){for(var e=/text-align\s*:\s*justify;/g,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n){if(this._isStyleSheetExempted(n.href))continue;for(var a=("cssRules"in n?n.cssRules:n.rules),i=a.length,o=0;o<i;o++){var r=a[o];if(e.test(r.cssText)){var s=r.cssText.replace(e,"text-align: start;");n.deleteRule(o--),n.insertRule(s)}}}}}},{key:"_handleResize",value:function(){this._adjustEndOfDocSize()}},{key:"_adjustEndOfDocSize",value:function(){var e=+window.innerHeight;(0,o.default)("."+s.default.DX.ENDCONTENTCONTAINERCLASS).height(e);var t=(0,o.default)("."+s.default.DX.ENDCONTENTCLASS),n=e-t.height();0<n&&t.css({"padding-top":.2*n+"px"})}},{key:"_addEndOfDocContent",value:function(){var e=(0,o.default)("\n    <div class='"+s.default.DX.ENDCONTENTCONTAINERCLASS+"'>\n      <div class='"+s.default.DX.ENDCONTENTCLASS+"'>\n        <div class='"+s.default.DX.ENDCONTENTIMAGECLASS+"' />\n        <div class='"+s.default.DX.ENDCONTENTHEADINGCLASS+"'>"+c.Localization.translate(s.default.PHRASES.DOCUMENT_COMPLETE).phrase+"</div>\n        <div class='"+s.default.DX.ENDCONTENTBUTTONCLASS+"'>"+c.Localization.translate(s.default.PHRASES.BACK_TO_TOP).phrase+"</div>\n      </div>\n    </div>\n  ");(0,o.default)("."+s.default.DX.DOCUMENTWRAPPERCLASS).append(e),(0,o.default)(".ADBE_E_Document").append("\n      <hr id='"+s.default.DX.ENDCONTENTSEPARATOR+"' class='"+s.default.DX.ENDCONTENTSEPARATOR+"' role='presentation'></hr>\n    "),(0,o.default)("."+s.default.DX.ENDCONTENTBUTTONCLASS).on("click",function(e){l.Events.publish(s.default.EVENTS.ENDOFDOCSCROLLSTARTED),e.preventDefault(),e.stopPropagation(),d.UtilFunctions.getRootScrollingObject().scrollTop(0),l.Events.publish(s.default.EVENTS.ENDOFDOCSCROLLENDED)}),l.Events.publish(s.default.EVENTS.ENDOFDOCADDED)}},{key:"_setUpEvents",value:function(){var a=this,e=(0,o.default)("."+s.default.DOCUMENT.DOCUMENTCLASS);e.find("a").on("click",function(e){var t=(0,o.default)(e.delegateTarget),n=t.attr("href");!n||0!==n.indexOf("http")&&0!==n.indexOf("mailto")||(a._interacted(s.default.ANALYTICS.OBJECTS.LINK,t,null,null),u.Platform.externalLinkClicked(e,n)),t.addClass("visited")}),e.find("[tabindex]").on("focus",function(e){(0,o.default)(e.delegateTarget).css("outline","none")}),e.find("[tabindex]").on("keyup",function(e){9===e.keyCode&&(0,o.default)(e.delegateTarget).css("outline","")})}},{key:"_makeAccessible",value:function(){var e=(0,o.default)("."+s.default.DOCUMENT.DOCUMENTCLASS);if(!this._isWatermarkFound){var t=e.find(".ADBE_E_Watermark");void 0!==t&&t.attr(""+s.default.ACCESSIBILITY.ARIAHIDDEN,""+s.default.ACCESSIBILITY.ARIATRUE)}}}]),h);function h(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,"styler2","styler2",s.default.PLATFORMS.ALL,s.default.MODULE_INIT_TYPE.AT_END));return e._isWatermarkFound=!1,l.Events.subscribe(s.default.EVENTS.DOCUMENTLOADED,function(){setTimeout(function(){return e._fixJustifiedText()},200)}),e._styleSheetExemptions=["manifest.css","vendor.css"],e}t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var d=r(n(1)),o=r(n(4)),l=r(n(0)),c=n(2),f=n(3),E=n(5),h=n(6);function r(e){return e&&e.__esModule?e:{default:e}}var s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,o.default),a(u,[{key:"getInterface",value:function(){var n=this;return{initializeImage:function(e,t){return n._initializeImage(e,t)}}}},{key:"_init",value:function(){E.Platform.isMobile&&(0,d.default)("."+l.default.DOCUMENT.DOCUMENTCLASS).css("visibility","visible")}},{key:"_handleDocumentReady",value:function(){var n=this,e=(0,d.default)("."+l.default.DOCUMENT.DOCUMENTCLASS);this._isUniformSizing||(e.find("img, object").not("."+l.default.DX.DONOTRESIZECLASS).each(function(e,t){n._setImageSizeOnLoad(t)}),c.Events.subscribe(l.default.EVENTS.FONTRESIZED,function(){n._handleResize()}),c.Events.publish(l.default.EVENTS.UNIFORMSIZING,!0),(0,d.default)(window).on("orientationchanged",function(e){n._isLightboxShown()&&n._setLightBoxImageSize()}),e.find(l.default.DOCUMENT.DOT.WATERMARKCLASS+" > img, "+l.default.DOCUMENT.DOT.WATERMARKCLASS+" > object").addClass(""+l.default.DX.DONOTRESIZECLASS),this._updateWatermarkImages(e),this._setSectionImageSizes(e))}},{key:"_updateWatermarkImages",value:function(e){e.find(l.default.DOCUMENT.DOT.WATERMARKCLASS+" > img, "+l.default.DOCUMENT.DOT.WATERMARKCLASS+" > object").addClass(""+l.default.DX.DONOTRESIZECLASS)}},{key:"_setImageSizeOnLoad",value:function(e){var t=this,n=(0,d.default)(e),a=0,i=0;i=n.attr("height")&&n.attr("width")?(a=n.attr("height"),n.attr("width")):(a=n.get(0).naturalHeight,n.get(0).naturalWidth),n.parent().hasClass("ADBE_CM_fb-lightbox")?(n.parent().addClass("dx-fallback"),e.complete?this._adjustSizeToBaselineFont(n,h.UtilFunctions.getBaselineFontSize()):n.on("load",function(e){t._adjustSizeToBaselineFont(n,h.UtilFunctions.getBaselineFontSize())})):n.css({height:a,width:i}),n.removeAttr("width").removeAttr("height").data({naturalHeight:a,naturalWidth:i})}},{key:"_adjustSizeToBaselineFont",value:function(e,t){var n=e.attr("data-dpi");void 0===n&&(n=300);var a=72*e.get(0).naturalWidth/(n*t);e.css("width",a+"rem")}},{key:"_initializeImage",value:function(e,t){this._setImageSize(e,t)}},{key:"_calculateAdjustedWidthHeight",value:function(e,t){var n=(0,d.default)(e),a=!0,i=300,o=e.naturalWidth?e.naturalWidth:n.data("naturalWidth"),r=e.naturalHeight?e.naturalHeight:n.data("naturalHeight");o||(E.Platform.isMobile&&(o=Number.parseInt(n.css("width"),10)),o&&0!==o||(o=e.naturalWidth,n.data("naturalWidth",o))),r||(E.Platform.isMobile&&(r=Number.parseInt(n.css("height"),10)),r&&0!==r||(r=e.naturalHeight,n.data("naturalHeight",r))),(0,d.default)(e)&&((0,d.default)(e).hasClass("ADBE_CM_rasterizedContent")||(0,d.default)(e).hasClass("ADBE_CM_rasterizedContent"))?(0,d.default)(e).data("dpi")&&(i=(0,d.default)(e).data("dpi")):(0,d.default)(e).parent()&&(0<(0,d.default)(e).parents(".ADBE_CM_rasterizedContent").length||0<(0,d.default)(e).parents(".ADBE_CM_vectorizedContent").length)?((0,d.default)(e).parents(".ADBE_CM_rasterizedContent").data("dpi")||(0,d.default)(e).parents(".ADBE_CM_vectorizedContent").data("dpi"))&&(i=(0,d.default)(e).parents(".ADBE_CM_rasterizedContent").data("dpi")||(0,d.default)(e).parents(".ADBE_CM_vectorizedContent").data("dpi")):a=!1,a&&(o*=110/i,r*=110/i);var s=Math.min(o,t);return{width:s,height:r*(s/o)}}},{key:"_getAdjustedSize",value:function(e,t){var n=t;return 0<e.parents("ul").length&&(n-=1/375*t*50),n}},{key:"_setSectionImageSizes",value:function(e){var n=this;null!=e&&void 0!==e&&0!==e.length&&e.find("img, object").not("."+l.default.DX.DONOTRESIZECLASS).each(function(e,t){n._setImageSize(t)})}},{key:"_setImageSize",value:function(n,a){var i=this,o=(0,d.default)(n),r=h.UtilFunctions.getElementWidth((0,d.default)(".ADBE_E_Document"));if(o.addClass("imageSized"),n.complete){var e=this._getAdjustedSize(o,r);this._setCalculatedImageSize(n,e),a&&a()}else o.on("load",function(e){var t=i._getAdjustedSize(o,r);i._setCalculatedImageSize(n,t),a&&a()})}},{key:"_handleResize",value:function(){var i=this,e=h.UtilFunctions.getWindowWidth();if(e!==this._oldWindowWidth)if(this._oldWindowWidth=e,this._isUniformSizing){var u=h.UtilFunctions.getElementWidth((0,d.default)(".ADBE_E_Document"));(0,d.default)("img, object").not("."+l.default.DX.DONOTRESIZECLASS+", ."+l.default.DX.LIGHTBOXIMAGE).each(function(e,t){var n=(0,d.default)(t),a=n.parent(),i=a.offset().left,o=n.data("aspect"),r=(0,d.default)(".ADBE_E_Document").offset().left+u-i,s=r+"px",l=r/o+"px";a.is(h.UtilFunctions._eligibleTableFallbackClasses())||(n.css("max-width",s),n.css("max-height",l))})}else{var o=h.UtilFunctions.getElementWidth((0,d.default)(".ADBE_E_Document")),t=(0,d.default)("img, object").not("."+l.default.DX.DONOTRESIZECLASS+", ."+l.default.DX.LIGHTBOXIMAGE),r=t.length,s=0;t.each(function(e,t){var n=(0,d.default)(t),a=i._getAdjustedSize(n,o);E.Platform.isDebug&&(n.css("border","1px red solid"),f.Log.info("adjustedWidth: "+a)),i._setCalculatedImageSize(t,a),++s===r&&c.Events.publish(l.default.EVENTS.LAYOUTCHANGED,"Image")})}}},{key:"_setCalculatedImageSize",value:function(e,t){var n=this._calculateAdjustedWidthHeight(e,t),a=(0,d.default)(e);a.parent().hasClass("ADBE_CM_fb-lightbox")?a.css("max-width",t+"px"):a.css({"max-width":n.width+"px","max-height":n.height+"px"}),a.parent().hasClass("ADBE_CM_fb-lightbox")?this._adjustSizeToBaselineFont(a,h.UtilFunctions.getBaselineFontSize()):a.css({width:n.width+"px",height:n.height+"px"}),c.Events.publish(l.default.EVENTS.LAYOUTCHANGED,"Image")}}]),u);function u(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,"image","image",l.default.PLATFORMS.ALL));return t._isDebug=!1,t._isUniformSizing=void 0,c.Events.subscribe(l.default.EVENTS.UNIFORMSIZING,function(e){t._isUniformSizing=e}),t}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var f=c(n(1)),E=c(n(24)),r=n(8),o=c(n(4)),h=c(n(0)),s=n(2),l=n(3),u=n(5),d=n(6);function c(e){return e&&e.__esModule?e:{default:e}}var A=h.default.PLATFORMS.MOBILE|h.default.PLATFORMS.DCWEB|h.default.PLATFORMS.DXBROWSER,p=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(g,o.default),a(g,[{key:"getInterface",value:function(){var t=this;return{showLightbox:function(e){return t._showLightbox(e)},initializeLightboxImage:function(e){return t._initializeLightboxImage(e)},suppressLightbox:function(e){return t._suppressLightbox(e)},isLightboxActive:function(){return t._isLightboxActive()}}}},{key:"_setUpEvents",value:function(){var t=this;s.Events.subscribe(h.default.EVENTS.STICKYNOTECREATIONENTER,function(){t._isLightboxSuppressed=!0}),s.Events.subscribe(h.default.EVENTS.STICKYNOTECREATIONEXIT,function(){t._isLightboxSuppressed=!1}),s.Events.subscribe(h.default.DOM_EVENTS.IMAGEFULLYLOADED,function(e){t._initializeLightboxImage(e)});var e=d.UtilFunctions.getRootScrollingObject();e.on("orientationchange",function(e){t._hasOrientationChanged=!0}),e.resize(function(e){t._hasOrientationChanged&&(t._isLightboxActive()&&t._setLightBoxImageSize(),t._hasOrientationChanged=!1)}),s.Events.subscribe(h.default.EVENTS.DEBUG,function(e){t._isDebug=e}),s.Events.subscribe(h.default.EVENTS.HIDELIGHTBOX,function(){return t._removeLightbox()})}},{key:"_handleResize",value:function(){this._isLightboxActive()&&this._setLightBoxImageSize()}},{key:"_initializeLightboxImage",value:function(t){var n=this,e=void 0,a=t.parent();if(a.is(d.UtilFunctions._eligibleTableFallbackClasses()))return l.Log.info("Image "+a.attr("id")+" not lightboxed because is a table"),void l.Log.info(a.attr("class"));l.Log.info("Image "+a.attr("id")+" "+a.attr("class")),t.is(":visible")&&((e=t.hasClass(h.default.DX.FALLBACKFULLPAGEIMAGECLASS)?new E.default.Manager(t.parent().get(0)):new E.default.Manager(t.get(0))).add(new E.default.Tap({event:"doubletap",taps:2})),e.add(new E.default.Tap({event:"singletap"})),e.get("doubletap").recognizeWith("singletap"),e.get("singletap").requireFailure("doubletap"),e.on("singletap doubletap",function(e){n._isLightboxSuppressed||n._showLightbox(t)}))}},{key:"_showLightbox",value:function(e){var t=this;this._removeLightbox(),s.Events.publish(h.default.EVENTS.LIGHTBOXENTER);var n=(0,f.default)(e).parent(),a=r.Analytics._identifyFallbackEvent(n);this._interacted(a,(0,f.default)(e));var i="<div class='"+h.default.DX.LIGHTBOXCONTAINER+" dx-unselectable'>\n        <div class='"+h.default.DX.LIGHTBOXCONTENT+"'></div>\n      </div>\n    ";(0,f.default)("body").append(i);var o=(0,f.default)(e).clone();o.addClass(""+h.default.DX.LIGHTBOXIMAGE),(0,f.default)("."+h.default.DX.LIGHTBOXCONTENT).append(o),d.UtilFunctions.setDocumentScrollability(!1),this._setLightboxData(o),setTimeout(function(){t._setLightBoxImageSize()},35),this._setupLightboxEvents(o)}},{key:"_setLightboxData",value:function(e){var t={width:0,height:0},n=u.Platform.isMobile?e.data("naturalWidth"):e.naturalWidth,a=u.Platform.isMobile?e.data("naturalHeight"):e.naturalHeight;n||(n=e.data("naturalWidth"),u.Platform.isMobile&&(n=Number.parseInt(e.css("width"),10)),n&&0!==n||(n=e.naturalWidth,e.data("naturalWidth",n))),a||(a=e.data("naturalHeight"),u.Platform.isMobile&&(a=Number.parseInt(e.css("height"),10))),t.width=n,t.height=a,e.data("dimensions",t)}},{key:"_setLightBoxImageSize",value:function(){var e=(0,f.default)("."+h.default.DX.LIGHTBOXIMAGE).eq(0),t=d.UtilFunctions.getWindowWidth()/d.UtilFunctions.getWindowHeight(),n=e.data("dimensions");1<=n.width/n.height/t?this._fitToWindowWidth():this._fitToWindowHeight(),(0,f.default)("."+h.default.DX.LIGHTBOXCONTENT).height(e.height())}},{key:"_fitToWindowHeight",value:function(){var e=(0,f.default)("."+h.default.DX.LIGHTBOXIMAGE).eq(0),t=d.UtilFunctions.getWindowWidth(),n=d.UtilFunctions.getWindowHeight(),a=e.data("dimensions"),i=a.width,o=a.height;if(e.removeClass(""+h.default.DX.LIGHTBOXPORTRAITMODE),o<n){var r=Math.max(o,n),s=i*(r/o);e.css("height",r+"px"),e.css("width",s+"px"),e.css("max-height",""),e.css("max-width","")}else e.css("height",""),e.css("width",""),e.css("max-height",n+"px"),e.css("max-width",t+"px")}},{key:"_fitToWindowWidth",value:function(){var e=(0,f.default)("."+h.default.DX.LIGHTBOXIMAGE).eq(0),t=d.UtilFunctions.getWindowWidth(),n=d.UtilFunctions.getWindowHeight(),a=e.data("dimensions"),i=a.width,o=a.height;if(i<t){var r=Math.max(i,t),s=o*(r/i);n<s&&(r=i*((s=n)/o),e.addClass(""+h.default.DX.LIGHTHBOXPORTRAITMODE)),e.css("height",s+"px"),e.css("width",r+"px"),e.css("max-height",""),e.css("max-width","")}else e.css("height",""),e.css("width",""),e.css("max-height",n+"px"),e.css("max-width",t+"px")}},{key:"_removeLightbox",value:function(){var e=(0,f.default)("body").find("."+h.default.DX.LIGHTBOXCONTAINER);0<e.length&&(e.remove(),s.Events.publish(h.default.EVENTS.LIGHTBOXEXIT)),d.UtilFunctions.setDocumentScrollability(!0)}},{key:"_setupLightboxEvents",value:function(e){var t=e.parents("."+h.default.DX.LIGHTBOXCONTAINER).get(0),n=e.get(0),a=new E.default.Manager(t);this._setupLightboxTapEvent(a);var i=new E.default.Manager(n);this._setupLightboxTapEvent(i),this._setupLightboxPinchAndZoomEvent()}},{key:"_setupLightboxTapEvent",value:function(e){var t=this;e.add(new E.default.Tap({event:"doubletap",taps:2})),e.add(new E.default.Tap({event:"singletap"})),e.get("doubletap").recognizeWith("singletap"),e.get("singletap").requireFailure("doubletap"),e.on("singletap doubletap",function(e){t._removeLightbox()})}},{key:"_setupLightboxPinchAndZoomEvent",value:function(){var e=(0,f.default)("."+h.default.DX.LIGHTBOXCONTENT).get(0),t=new E.default(e,{});t.get("pinch").set({enable:!0});var n=0,a=0,i=1,o=1,r=0,s=0,l=0,u=0,d="",c=e;t.on("pan pinch panend pinchend",function(e){1!==i&&(n=r+e.deltaX,a=s+e.deltaY,l=Math.ceil((i-1)*c.clientWidth/2),u=Math.ceil((i-1)*c.clientHeight/2),l<n&&(n=l),n<-l&&(n=-l),u<a&&(a=u),a<-u&&(a=-u)),"pinch"===e.type&&(i=Math.max(.999,Math.min(o*e.scale,4))),"pinchend"===e.type&&(o=i),"panend"===e.type&&(r=n<l?n:l,s=a<u?a:u),1!==i&&(d="translate3d("+n+"px,"+a+"px, 0) scale3d("+i+", "+i+", 1)"),d&&(c.style.webkitTransform=d)})}},{key:"_isLightboxActive",value:function(){return 0<(0,f.default)("body").find("."+h.default.DX.LIGHTBOXCONTAINER).length}},{key:"_suppressLightbox",value:function(e){this._isLightboxSuppressed=e}}]),g);function g(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,"lightboxImage","lightboxImage",A));return e._isDebug=!0,e._isLightboxSuppressed=!1,e._hasOrientationChanged=!1,e._setUpEvents(),e}t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var s=c(n(1)),o=c(n(4)),l=c(n(0)),r=n(2),u=n(5),d=n(6);function c(e){return e&&e.__esModule?e:{default:e}}var f=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(E,o.default),a(E,[{key:"getInterface",value:function(){return{isImmersiveModeEventsSupressed:this._isImmersiveModeEventsSupressed,isImmersiveModeEnabled:this._isImmersiveModeEnabled}}},{key:"_init",value:function(){u.Platform.isStandalone&&this._appendStandaloneImmersiveModeUI()}},{key:"_handleDocumentReady",value:function(){this._setUpEvents()}},{key:"setIsImmersiveModeEnabled",value:function(e){this._isImmersiveModeEnabled=e,u.Platform.isStandalone&&(0,s.default)("#dx-isImmersiveValue").html(""+this._isImmersiveModeEnabled)}},{key:"setIsImmersiveModeEventsSupressed",value:function(e){this._isImmersiveModeEventsSupressed=e,u.Platform.isStandalone&&(0,s.default)("#dx-isImmersiveSuppressedValue").html(""+this._isImmersiveModeSupressed)}},{key:"_appendStandaloneImmersiveModeUI",value:function(){(0,s.default)("body").append("\n      <div class='dx-immersivemode-trigger-button-container'>\n        <button id='immersiveModeTrigger' class='dx-immersivemode-trigger-button'>Immersive Mode</button>\n      </div>\n    ");var e='\n      <div class=\'dx-immersiveMode-summary-container dx-unselectable dx-teststub-visible\' style="display: none;">\n        <br>\n        <span id=\'dx-immersive-close\' class=\'dx-immersive-close\'>x</span>\n        <div class="dx-summary dx-viewport-summary" style=\'margin-left: 17%;\'> Immersive Mode </div>\n        <br>\n        <div id="dx-immersive-enter" class="dx-test-button">Enter</div>\n        <div id="dx-immersive-exit" class="dx-test-button">Exit</div>\n        <div id="dx-immersive-toggle" class="dx-test-button">Toggle</div>\n        <br>\n        <div id="dx-immersive-listen" class="dx-test-button">Listen</div>\n        <div id="dx-immersive-suppress" class="dx-test-button">Suppress</div>\n        <br>\n        <div id="dx-immersive-isImmersive" class="dx-test-status">isImmersive:\n          <span id=\'dx-isImmersiveValue\' class=\'dx-on\'> '+this._isImmersiveModeEnabled+" </span>\n        </div>\n        <br>\n        <div id=\"dx-immersive-isImmersiveSuppressed\" class=\"dx-test-status\">isImmersiveSuppressed:\n          <span id='dx-isImmersiveSuppressedValue' class='dx-on'> "+this._isImmersiveModeEventsSupressed+" </span>\n        </div>\n      </div>";(0,s.default)("body").append(e)}},{key:"_setUpEvents",value:function(){var e=this;u.Platform.isStandalone&&this._standAloneEvents(),r.Events.subscribe(l.default.EVENTS.LIGHTBOXENTER,function(){e._lastStatus=e._isImmersiveModeEnabled,e._enterImmersiveMode(),e._suppressImmersiveModeEvents()}),r.Events.subscribe(l.default.EVENTS.LIGHTBOXEXIT,function(){e._lastStatus||e._exitImmersiveMode(),e._listenImmersiveModeEvents()}),r.Events.subscribe(l.default.EVENTS.STICKYNOTECREATIONENTER,function(){e._lastStatus=e._isImmersiveModeEnabled,e._exitImmersiveMode(),e._suppressImmersiveModeEvents()}),r.Events.subscribe(l.default.EVENTS.STICKYNOTECREATIONEXIT,function(){e._lastStatus&&e._enterImmersiveMode(),e._listenImmersiveModeEvents()}),r.Events.subscribe(l.default.EVENTS.COMMENTCREATIONENTER,function(){e._lastStatus=e._isImmersiveModeEnabled,e._exitImmersiveMode(),e._suppressImmersiveModeEvents()}),r.Events.subscribe(l.default.EVENTS.COMMENTCREATIONEXIT,function(){e._lastStatus&&e._enterImmersiveMode(),e._listenImmersiveModeEvents()})}},{key:"_standAloneEvents",value:function(){var e=this;(0,s.default)("#dx-immersive-suppress").on("click",function(){e._suppressImmersiveModeEvents()}),(0,s.default)("#dx-immersive-listen").on("click",function(){e._listenImmersiveModeEvents()}),(0,s.default)("#dx-immersive-enter").on("click",function(){e._isImmersiveModeEventsSupressed||e._enterImmersiveMode()}),(0,s.default)("#dx-immersive-exit").on("click",function(){e._isImmersiveModeEventsSupressed||e._exitImmersiveMode()}),(0,s.default)("#dx-immersive-toggle").on("click",function(){e._isImmersiveModeEventsSupressed||e._toggleImmersiveMode()}),(0,s.default)("#dx-immersive-close").on("click",function(){(0,s.default)(".dx-immersiveMode-summary-container").hide()})}},{key:"_handleDocumentTap",value:function(){var n=this,e=(0,s.default)("."+l.default.DX.DOCUMENTWRAPPERCLASS),a=!1,i=0,o=0,r=0;u.Platform.platform===l.default.PLATFORMS.IOS&&e.on("touchstart.immersiveMode",function(e){a=!1,i=e.timeStamp}),e.on("touchmove.immersiveMode",function(e){i=i||e.timeStamp,a=!0}),e.on("touchend.immersiveMode",function(e){o=e.timeStamp,r=o-i;var t=u.Platform.platform!==l.default.PLATFORMS.ANDROID&&2e3<r;a||t||n._isImmersiveModeEventsSupressed||d.UtilFunctions.ignoreDocumentClick(e.target)||n._toggleImmersiveMode(),u.Platform.platform!==l.default.PLATFORMS.ANDROID&&!u.Platform.isStandalone||(a=!1)})}},{key:"_enterImmersiveMode",value:function(){this.setIsImmersiveModeEnabled(!0),r.Events.publish(l.default.EVENTS.IMMERSIVEMODEENTER),u.Platform.isStandalone&&((0,s.default)("#dx-isImmersiveValue").html(""+this._isImmersiveModeEnabled),(0,s.default)(".dx-test-button").removeClass("dx-test-button-selected"),(0,s.default)("#findTrigger").hide(),(0,s.default)("#styleChooserTrigger").hide(),(0,s.default)("#fixItFab").hide(),(0,s.default)("#commentingPanel").hide(),(0,s.default)("#dx-immersive-enter").addClass("dx-test-button-selected")),u.Platform.enterImmersiveMode()}},{key:"_exitImmersiveMode",value:function(){this.setIsImmersiveModeEnabled(!1),r.Events.publish(l.default.EVENTS.IMMERSIVEMODEEXIT),u.Platform.isStandalone&&((0,s.default)("#findTrigger").show(),(0,s.default)("#styleChooserTrigger").show(),(0,s.default)("#fixItFab").show(),(0,s.default)("#commentingPanel").show(),(0,s.default)("#dx-isImmersiveValue").html(""+this._isImmersiveModeEnabled),(0,s.default)(".dx-test-button").removeClass("dx-test-button-selected"),(0,s.default)("#dx-immersive-exit").addClass("dx-test-button-selected")),u.Platform.exitImmersiveMode()}},{key:"_toggleImmersiveMode",value:function(){this._isImmersiveModeSupressed||(this._isImmersiveModeEnabled?this._exitImmersiveMode():this._enterImmersiveMode())}},{key:"_suppressImmersiveModeEvents",value:function(){this.setIsImmersiveModeEventsSupressed(!0),u.Platform.isStandalone&&((0,s.default)("#dx-immersive-suppress").addClass("dx-on"),(0,s.default)("#dx-isImmersiveSuppressedValue").html(""+this._isImmersiveModeEventsSupressed),(0,s.default)("#dx-immersive-listen").removeClass("dx-on"))}},{key:"_listenImmersiveModeEvents",value:function(){this.setIsImmersiveModeEventsSupressed(!1),u.Platform.isStandalone&&((0,s.default)("#dx-immersive-suppress").removeClass("dx-on"),(0,s.default)("#dx-isImmersiveSuppressedValue").html(""+this._isImmersiveModeEventsSupressed),(0,s.default)("#dx-immersive-listen").addClass("dx-on"))}}]),E);function E(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,"immersiveMode","immersiveMode",l.default.PLATFORMS.ALL));return e._isImmersiveModeEventsSupressed=!1,e._isImmersiveModeEnabled=!1,e._lastStatus=e._isImmersiveModeEnabled,e}t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var s=f(n(1)),o=f(n(4)),l=f(n(0)),u=n(2),r=n(5),d=n(3),c=n(6);function f(e){return e&&e.__esModule?e:{default:e}}var E=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(h,o.default),a(h,[{key:"getInterface",value:function(){var t=this;return{toggleContainer:function(){return t._toggleStyleContainer()},returnEmbeddedFonts:function(){return t._returnEmbeddedFonts()},setProfile:function(e){return t._setProfile(e)}}}},{key:"_handleDocumentReady",value:function(){this._addStandAloneUI(),(0,s.default)("head").append('<style id="'+l.default.PERSONALIZATION.STYLESHEET+'" type="text/css"></style>'),this._checkAndReturnStylesheet(),this._setUpEvents(),(0,s.default)(".ADBE_E_Sect *").addClass(l.default.PERSONALIZATION.STYLERPICKS)}},{key:"_addStandAloneUI",value:function(){if(r.Platform.isStandalone){(0,s.default)("body").append("\n        <div class='dx-style-chooser-trigger-button-container' style=\"z-index: 1001;\">\n          <button id='styleChooserTrigger' class='dx-style-chooser-trigger-button'>Aa</button>\n        </div>\n      ");var e='\n        <div class="dx-style-chooser-container">\n          <div class=\'dx-style-chooser-bar-container\'>\n            <div class="dx-style-chooser-section">\n              <div class="dx-style-chooser-section-header">Font Size</div>\n              <div class="dx-style-chooser dx-font-sizer" data-style-key="'+l.default.PERSONALIZATION.FONTSIZE+'">\n                <div class="dx-style-chooser-option" data-value="50">8</div>\n                <div class="dx-style-chooser-option" data-value="75">12</div>\n                <div class="dx-style-chooser-option" data-value="100">16</div>\n                <div class="dx-style-chooser-option" data-value="125">20</div>\n                <div class="dx-style-chooser-option" data-value="150">24</div>\n                <div class="dx-style-chooser-option" data-value="175">28</div>\n                <div class="dx-style-chooser-option" data-value="200">32</div>\n                <div class="dx-style-chooser-option" data-value="250">40</div>\n                <div class="dx-style-chooser-option" data-value="300">48</div>\n              </div>\n            </div>\n            <div class="dx-style-chooser-section">\n              <div class="dx-style-chooser-section-header">Line Height</div>\n              <div class="dx-style-chooser dx-line-height" data-style-key="'+l.default.PERSONALIZATION.LINEHEIGHT+'">\n                <div class="dx-style-chooser-option" data-value="1">1.0</div>\n                <div class="dx-style-chooser-option" data-value="1.2">1.2</div>\n                <div class="dx-style-chooser-option" data-value="1.5">1.5</div>\n                <div class="dx-style-chooser-option" data-value="2">2.0</div>\n                <div class="dx-style-chooser-option" data-value="2.5">2.5</div>\n              </div>\n            </div>\n            <div class="dx-style-chooser-section">\n              <div class="dx-style-chooser-section-header">Character Spacing</div>\n              <div class="dx-style-chooser dx-char-spacing" data-style-key="'+l.default.PERSONALIZATION.CHARSPACING+'">\n              <div class="dx-style-chooser-option" data-value="-0.10">-.10</div>\n                <div class="dx-style-chooser-option" data-value="-0.05">-.05</div>\n                <div class="dx-style-chooser-option" data-value="0">.00</div>\n                <div class="dx-style-chooser-option" data-value="0.05">.05</div>\n                <div class="dx-style-chooser-option" data-value="0.10">.10</div>\n                <div class="dx-style-chooser-option" data-value="0.15">.15</div>\n              </div>\n            </div>\n            <div id="dxFontFamilySection" class="dx-style-chooser-section">\n              <div class="dx-style-chooser-section-header">Font</div>\n              <div class="dx-style-chooser dx-font-family" data-style-key="'+l.default.PERSONALIZATION.FONTFAMILY+'">\n                <div id="dxFontFamilyDiv1" class="dx-style-chooser-option" data-value='+l.default.PERSONALIZATION.ORIGINALSTYLE+'>Original</div>\n                <div id="dxFontFamilyDiv2" class="dx-style-chooser-option" data-value="Kepler">Kepler</div>\n                <div id="dxFontFamilyDiv3" class="dx-style-chooser-option" data-value="Myriad Pro">Myriad Pro</div>\n              </div>\n            </div>\n            <div class="dx-style-chooser-footer">\n              <div class="dx-style-chooser-bar-close">x</div>\n              <div class="dx-style-chooser-reset">Reset</div>\n            </div>\n          </div>\n        </div>\n      ';(0,s.default)("body").append(e),(0,s.default)(".dx-style-chooser-container").hide()}}},{key:"_setProfile",value:function(e){var t=JSON.parse(e);this._setStyles(t)}},{key:"_setStyles",value:function(e){var i=this;null===e?((0,s.default)("#"+l.default.PERSONALIZATION.STYLESHEET).remove(),(0,s.default)("head").append('<style id="'+l.default.PERSONALIZATION.STYLESHEET+'" type="text/css"></style>'),u.Events.publish(l.default.EVENTS.FONTRESIZED),u.Events.publish(l.default.EVENTS.LAYOUTCHANGED,"Personalization")):Object.entries(e).forEach(function(e){var t=e[0],n=e[1];if(!0===i._isStyleSupported(t)){var a=i._getStyle(t,n);null===n?"font-size"===t?i._deleteRuleFromSheet("html","font-size:"):i._deleteRuleFromSheet("."+l.default.PERSONALIZATION.STYLERPICKS,t+":"):i._switchCssAndInsertRule(t,a)}})}},{key:"_getStyle",value:function(e,t){var n=void 0;switch(e){case"font-size":n=t+"%";break;case"line-height":n=t+" !important";break;case"letter-spacing":n=t+"rem !important";break;case"font-family":n=t}return n}},{key:"_returnEmbeddedFonts",value:function(){return this._supportedFonts}},{key:"_isStyleSupported",value:function(t){var n=!1;return this._supportedStyles.forEach(function(e){e===t&&(n=!0)}),n}},{key:"_deleteRuleFromSheet",value:function(e,t){var n=this._checkAndReturnStylesheet();if(n)for(var a=n.cssRules,i=0;i<a.length;i++){var o=a[i];o.selectorText===e&&-1!==o.cssText.indexOf(t)&&n.deleteRule(i)}}},{key:"_checkAndReturnStylesheet",value:function(){var e=(0,s.default)("#"+l.default.PERSONALIZATION.STYLESHEET).get(0),t=void 0;return e?t=e.sheet:((0,s.default)("head").append('<style id="'+l.default.PERSONALIZATION.STYLESHEET+'" type="text/css"></style>'),(e=(0,s.default)("#"+l.default.PERSONALIZATION.STYLESHEET).get(0))?t=e.sheet:d.Log.error("The stylesheet did not get generated")),t}},{key:"_switchCssAndInsertRule",value:function(e,t){var n=this._checkAndReturnStylesheet();n&&("font-size"===e?(this._deleteRuleFromSheet("html",e+":"),n.insertRule("html {"+e+": "+t+" !important;}")):(this._deleteRuleFromSheet("."+l.default.PERSONALIZATION.STYLERPICKS,e+":"),-1===t.toString().indexOf(l.default.PERSONALIZATION.ORIGINALSTYLE)&&n.insertRule("."+l.default.PERSONALIZATION.STYLERPICKS+" {"+e+": "+t+";}")),u.Events.publish(l.default.EVENTS.FONTRESIZED),u.Events.publish(l.default.EVENTS.LAYOUTCHANGED,"Personalization"))}},{key:"_setDefaultStylesInUi",value:function(){(0,s.default)(".dx-style-chooser .dx-style-chooser-option").each(function(e,t){(0,s.default)(t).removeClass("dx-styler-base dx-styler-selected"),"16"!==(0,s.default)(t).html()&&"1.2"!==(0,s.default)(t).html()&&".00"!==(0,s.default)(t).html()&&"Normal"!==(0,s.default)(t).html()&&"Original"!==(0,s.default)(t).html()||(0,s.default)(t).addClass("dx-styler-base dx-styler-selected")})}},{key:"_setUpEvents",value:function(){var r=this,e=(0,s.default)("#styleChooserTrigger"),t=(0,s.default)("#findTrigger"),n=(0,s.default)(".dx-style-chooser .dx-style-chooser-option");this._setDefaultStylesInUi(),e.on("click",function(){e.hide(),t.hide(),r._toggleStyleContainer(!0)}),(0,s.default)(".dx-style-chooser-reset").on("click touchstart",function(){(0,s.default)("#"+l.default.PERSONALIZATION.STYLESHEET).remove(),(0,s.default)("head").append('<style id="'+l.default.PERSONALIZATION.STYLESHEET+'" type="text/css"></style>'),r._setDefaultStylesInUi(),u.Events.publish(l.default.EVENTS.FONTRESIZED),u.Events.publish(l.default.EVENTS.LAYOUTCHANGED,"Personalization")}),(0,s.default)(".dx-style-chooser-bar-close").on("click touchstart",function(){r._toggleStyleContainer(!1),e.show(),t.show()}),n.on("click touchstart",function(e){var t=c.UtilFunctions.returnTopElementPosition(),n=(0,s.default)(e.delegateTarget),a=n.data("value"),i=n.parent().data("styleKey");if(n.siblings().removeClass("dx-styler-selected"),n.addClass("dx-styler-selected"),!0===r._isStyleSupported(i)){var o=r._getStyle(i,a);r._switchCssAndInsertRule(i,o)}c.UtilFunctions.scrollToPositionBasedOnElement(t)})}},{key:"_toggleStyleContainer",value:function(){var e=(0,s.default)(".dx-style-chooser-container");this._panelShown?(e.hide(),this._panelShown=!1):(this._panelShown=!0,e.show())}}]),h);function h(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,"personalization","personalization",l.default.PLATFORMS.ALL));return e._panelShown=!1,e._supportedFonts=["Kepler Std","Myriad Pro"],e._supportedStyles=["font-size","line-height","letter-spacing","font-family"],e._findOffset=l.default.ELEMENTSIZES.FINDOFFSET,e}t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var d=u(n(1)),o=u(n(4)),r=u(n(0)),s=n(6),c=n(3),l=n(2);function u(e){return e&&e.__esModule?e:{default:e}}var f=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(E,o.default),a(E,[{key:"_init",value:function(){var t=this;l.Events.subscribe(r.default.DOM_EVENTS.TABLELOADED,function(e){null!=e&&!1!==e.topLevel&&e.data.hasClass("ADBE_E_Table")&&t._loadTable(e.data)})}},{key:"_setColumnHeaders",value:function(o,e){var r=1<arguments.length&&void 0!==e?e:null,s=o.children("thead"),t=s.children().length,l=0,n=null,a="",i=o.children("tbody");if(0===i.length)return c.Log.error("a table with no tbody?"),0;if(null==r?c.Log.info("table: adjusting to default"):n=r-t,0<n||null==n)a="table: unknown",0===s.length&&(s=(0,d.default)("<thead/>"),o.prepend(s)),i.children().each(function(e,t){var n=(0,d.default)(t).children(),a=!1,i=!0;if(null===r||e<r){if(n.each(function(e,t){return(0,d.default)(t).attr("rowspan")&&(i=!1),a="TH"===(0,d.default)(t).prop("tagName")}),!1===i&&(c.Log.error("["+(0,d.default)(o).attr("id")+"] rowspans in column headers disqualify this table"),(0,d.default)(o).attr("data-row-spans-exist",!0)),!a)return!1;l++,(0,d.default)(t).remove().appendTo(s)}return!0});else if(n<0){c.Log.warn("should be removing rows.");var u=-n;i=o.children("tbody"),(0,d.default)(s.children().get().reverse()).each(function(e,t){return(0,d.default)(t).remove().prependTo(i),!(--u<=0)}),0===(l=s.children().length)&&s.remove()}return a="setColumnHeaders ["+(0,d.default)(o).attr("id")+"] header rows: "+l,(0,d.default)(o).attr("data-column-header-rows",l),c.Log.info(a),l}},{key:"_loadTable",value:function(e){var t=e.data("page")?e.data("page"):null;e.css("margin-bottom","0");var n=(0,d.default)("\n      <div class='"+r.default.DX.TABLEWRAPPERCLASS+"' id='TW"+e.attr("id")+"' "+(t?'data-page="'+t+'"':"")+"></div>\n    ");e.wrap(n),n=e.parent(),e.css("margin-left","28px"),e.css("margin-right","28px"),e.css("overflow-x","scroll"),this._addAdvancerButtons(e,n),this._setUpEvents(e,n)}},{key:"_setUpEvents",value:function(t,n){var a=this,e=null;t.on("scroll",function(){a._updateScrollButtons(t,n),e&&(clearTimeout(e),e=null),e=setTimeout(function(){a._interacted(r.default.ANALYTICS.OBJECTS.TABLE,t)},r.default.ANALYTICS.INTERACTFRICTION)}),(0,d.default)(window).on("resize",function(){a._updateScrollButtons(t,n)}),l.Events.subscribe(r.default.EVENTS.FONTRESIZED,function(){a._updateScrollButtons(t,n)}),n.find(".dx-advancer-left").on("click tap",function(e){e.preventDefault(),e.stopPropagation(),a._doScroll(t,n,"left")}),n.find(".dx-advancer-right").on("click tap",function(e){e.preventDefault(),e.stopPropagation(),a._doScroll(t,n,"right")})}},{key:"_doScroll",value:function(e,t,n){e.animate({scrollLeft:this._calcNewScrollPosition(e,t,n)},200)}},{key:"_calcNewScrollPosition",value:function(e,t,n){var a=e.scrollLeft(),i=.6*s.UtilFunctions.getElementWidth(e);return"left"===n?a-i:a+i}},{key:"_addAdvancerButtons",value:function(e,t){0<e.parents("table").length||(t.append('\n          <button class="dx-advancer dx-advancer-left" type="button">\n            <svg class="dx-advancer-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 551 1024">\n              <path d="M445.44 38.183L-2.53 512l447.97 473.817 85.857-81.173-409.6-433.23v81.172l409.6-433.23L445.44 38.18z"/>\n            </svg>\n          </button>\n          <button class="dx-advancer dx-advancer-right" type="button">\n            <svg class="dx-advancer-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 551 1024">\n              <path d="M105.56 985.817L553.53 512 105.56 38.183l-85.857 81.173 409.6 433.23v-81.172l-409.6 433.23 85.856 81.174z"/>\n            </svg>\n          </button>'),this._updateScrollButtons(e,t))}},{key:"_updateScrollButtons",value:function(e,t){e.attr("data-overflowing",this._determineOverflow(e.find("tbody"),t))}},{key:"_determineOverflow",value:function(e,t){var n=t[0]?t[0].getBoundingClientRect():{right:0,left:0},a=e[0]?e[0].getBoundingClientRect():{right:0,left:0},i="none",o=a.right>n.right-24,r=a.left<n.left+24;return o&&r?i="both":r?i="left":o&&(i="right"),i}}]),E);function E(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,"tables","scrollableTable",r.default.PLATFORMS.ALL))}t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var s=d(n(1)),o=d(n(4)),l=d(n(0)),r=n(2),u=n(6);function d(e){return e&&e.__esModule?e:{default:e}}var c=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(f,o.default),a(f,[{key:"_init",value:function(){var t=this;r.Events.subscribe(l.default.DOM_EVENTS.TOCLOADED,function(e){t._handleTOCLoaded(e)})}},{key:"_handleTOCLoaded",value:function(e){if(0!==e.html().trim().length){this._sanitizeContents(e.contents().filter(function(e,t){return t.nodeType!==Node.COMMENT_NODE}));var t=e.find("a");if(0<t.length&&(t.addClass(l.default.DX.NOTALINK),t.attr("href"))){var n=t.attr("href").split("#")[1],a=e.attr("id");this._tocItemMap[a]={destinationRef:n,link:t}}}}},{key:"_handleDocumentReady",value:function(){this._$documentWrapper=u.UtilFunctions.getRootScrollingObject(),(0,s.default)(".ADBE_E_TOC").children().not(".ADBE_E_TOCI").remove();for(var e=Object.keys(this._tocItemMap),t=0;t<e.length;t++){var n=e[t];if(this._tocItemMap[n]){var a=this._tocItemMap[n].destinationRef,i=(0,s.default)("#"+a);0<i.length&&!u.UtilFunctions.isHidden(i)&&(0,s.default)(this._tocItemMap[n].link).removeClass(l.default.DX.NOTALINK)}}this._setUpEvents()}},{key:"_sanitizeContents",value:function(e){var a=this;e.each(function(e,t){var n=(0,s.default)(t).contents().filter(function(e,t){return t.nodeType!==Node.COMMENT_NODE});0<n.length?a._sanitizeContents(n):t.textContent=a._sanitizeTOCText(t.textContent)})}},{key:"_sanitizeTOCText",value:function(e){return e.replace(/([ ._-]{2,}.+)|(\s*[Pp]age\s\d+)|(\s*[Pp][Gg.]+\s*\d+)|(\s*Error! Bookmark not defined[.\s]*)/gi,"")}},{key:"_getViewportOffset",value:function(){return this._viewportSize===l.default.VIEWPORTS.SMALL?this._headingHeight:125}},{key:"_setUpEvents",value:function(){var r=this;(0,s.default)(".ADBE_E_TOCI a").on("click",function(e){if((0,s.default)(e.target).hasClass(l.default.DX.NOTALINK))return e.preventDefault(),void e.stopPropagation();e.preventDefault();var t=(0,s.default)(e.delegateTarget);if(r._interacted(l.default.ANALYTICS.OBJECTS.TOC,t),t.addClass("visited"),0<t.attr("href").length){var n=(0,s.default)(t.attr("href")),a=[],i=!1;n.hasClass(l.default.DX.HEADINGCLASS)&&n.hasClass(l.default.DX.COLLAPSEDHEADINGCLASS)?(i=!0,a=n):n.is(":header")&&n.is(":hidden")&&(i=!0,a=n.parents("."+l.default.DOCUMENT.SECTIONCLASS).children().filter("."+l.default.DX.HEADINGCLASS)),i&&AdbeDx.collapsibleHeading.toggleHeadingCollapse(a);var o=r._$documentWrapper.scrollTop()+n.offset().top-r._headingHeight;r._$documentWrapper.animate({scrollTop:o+"px"},500)}})}}]),f);function f(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,"tableOfContents","tableOfContents",l.default.PLATFORMS.ALL));return e._headingHeight=l.default.ELEMENTSIZES.HEADINGSIZE,e._$documentWrapper=null,e._tocItemMap={},e}t.default=c},function(e,c,f){"use strict";(function(r){Object.defineProperty(c,"__esModule",{value:!0});var e=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var t=n(f(4)),i=n(f(0));f(5);function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=(e(l,[{key:"_onProxyEvent",value:function(e,t){var n=void 0,a=void 0;switch(e){case i.default.RNA.ADD_EVENT:this.hasOwnProperty(t.key)||(this[t.key]=t.property);break;case i.default.RNA.REMOVE_EVENT:delete this[t.key];break;case i.default.RNA.REPLACE_EVENT:n=t.key,a=t.newVal,this[n]=a;break;case i.default.RNA.CHANGE_EVENT:}}}]),l);function l(e){o(this,l),this._proxy=e,this._contextId=this._proxy._context,this.id=this._proxy._id,this._proxy._addEventListener("all",this._onProxyEvent,null,this)}var u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(d,t.default),e(d,[{key:"getInterface",value:function(){var t=this;return{analyticsApi:function(){return t._analyticsApi()},commentingApi:function(){return t._commentingApi()},viewerUIApi:function(){return t._viewerUIApi()},enableTouchSelection:function(e){return t._enableTouchSelection(e)},processAppPrefChanged:function(e){return t._processAppPrefChanged(e)},getActiveAcroApp:function(){return t._activeAcroApp},processZoomLevelChanged:function(e){return t._processZoomLevelChanged(e)}}}},{key:"_init",value:function(){this._setMouseEvents(),this._setViewerEvents(),this._setTouchSelectionEvents()}},{key:"_createRNAProxyObject",value:function(e){var t=void 0;switch(e._type){case i.default.RNA.PRIMITIVE_PROXY:return e._value;case i.default.RNA.FUNCTION_PROXY:return new Proxy(function(){},this._getRNAProxyHandler(e));case i.default.RNA.VECTOR_PROXY:case i.default.RNA.MAP_PROXY:return t=new s(e),new Proxy(t,this._getRNAProxyHandler(e))}return!0}},{key:"_IsCaretSelected",value:function(e){var t=window.getSelection();if(!t.isCollapsed){var n=t.getRangeAt(0);if(n&&n.compareBoundaryPoints(Range.START_TO_START,e)<=0&&0<=n.compareBoundaryPoints(Range.START_TO_END,e))return!0}return!1}},{key:"_OnLongTap",value:function(){r(".ADBE_E_Document").contextmenu(),this._lastCaret=void 0}},{key:"_OnContextMenuPreventTimeout",value:function(){this._preventContextMenu=!1}},{key:"_OnContextMenu",value:function(e){this._preventContextMenu&&(this._preventContextMenu=!1,e.preventDefault())}},{key:"_OnSelectStartPreventTimeout",value:function(){this._preventSelectStart=!1}},{key:"_OnSelectStart",value:function(e){this._preventSelectStart&&(this._preventSelectStart=!1,e.preventDefault())}},{key:"_DisplayContextMenu",value:function(){var t=~~this._tapX,n=~~this._tapY;this._viewerUIApi().then(function(e){e.showContextMenu([{x:t,y:n}])})}},{key:"_EnableContextMenu",value:function(){this._preventContextMenu=!1}},{key:"_OnTouchStart",value:function(e){if(e&&e.touches&&1===e.touches.length){var t=document.caretRangeFromPoint(e.touches[0].clientX,e.touches[0].clientY);this._touchEventInProgress=!0,this._allowTouchSelection=this._touchSelectionEnabled,t&&t.startContainer.id&&"dx-touch-selection-grabber-begin"===t.startContainer.id?(this._startNode=this._endNode,this._allowTouchSelection=!0):t&&t.startContainer.id&&"dx-touch-selection-grabber-end"===t.startContainer.id?this._allowTouchSelection=!0:t&&this._IsCaretSelected(t)?(this._lastCaret=t,this._waitForMenu=!0,this._storeEvent=e,this._tapX=e.touches[0].clientX,this._tapY=e.touches[0].clientY):this._allowTouchSelection&&(this._startNode=t),this._preventContextMenu=!0}this._allowTouchSelection?(e.stopPropagation(),e.preventDefault()):this._preventContextMenu=!0}},{key:"_OnTouchMove",value:function(e){if(this._preventContextMenu=!1,this._waitForMenu=!1,e&&e.touches&&1===e.touches.length){var t=document.caretRangeFromPoint(e.touches[0].clientX,e.touches[0].clientY);if(this._timer&&t&&this._lastCaret&&t.compareBoundaryPoints(Range.START_TO_START,this._lastCaret)&&(clearTimeout(this._timer),this._lastCaret=this._timer=void 0),this._timer||t&&t.startContainer&&t.startContainer.id&&("dx-touch-selection-grabber-begin"===t.startContainer.id||"dx-touch-selection-grabber-end"===t.startContainer.id))return;this._allowTouchSelection&&(this._endNode=t,this._UpdateSelection(),e.touches[0].clientY<this._toScrollOffset?window.scrollBy(0,-this._toScrollOffset/5):window.innerHeight<e.touches[0].clientY+this._toScrollOffset&&window.scrollBy(0,this._toScrollOffset/5))}}},{key:"_OnTouchEnd",value:function(e){if(this._waitForMenu)this._storeEvent.preventDefault(),e.preventDefault(),this._waitForMenu=!1,this._timer=setTimeout(this._DisplayContextMenu.bind(this),10);else{var t=this._preventContextMenu;if(this._OnTouchMove(e),this._preventContextMenu=t,this._timer){if(clearTimeout(this._timer),this._lastCaret&&0===e.touches.length){var n=window.getSelection();n&&n.removeAllRanges()}this._timer=this._lastCaret=void 0}this._allowTouchSelection=this._touchSelectionEnabled,this._preventContextMenu&&setTimeout(this._OnContextMenuPreventTimeout.bind(this),this._touchDuration)}this._preventContextMenu=!0,setTimeout(this._EnableContextMenu.bind(this),200)}},{key:"_UpdateSelection",value:function(){if(this._endNode&&this._startNode){var e=document.createRange();if(this._startNode.compareBoundaryPoints(Range.START_TO_START,this._endNode)<0?(e.setStart(this._startNode.startContainer,this._startNode.startOffset),e.setEnd(this._endNode.startContainer,this._endNode.startOffset)):(e.setStart(this._endNode.startContainer,this._endNode.startOffset),e.setEnd(this._startNode.startContainer,this._startNode.startOffset)),!e.collapsed){var t=window.getSelection();t.removeAllRanges(),t.addRange(e),event.preventDefault()}}}},{key:"_OnSelectionChange",value:function(){var e=window.getSelection();if(e&&!e.isCollapsed){var t=e.getRangeAt(0);if(!t.collapsed){this._startNode||(this._startNode=t.cloneRange(),this._startNode.collapse(!0)),this._endNode||(this._endNode=t.cloneRange(),this._endNode.collapse(!1));var n=t.getClientRects();if(n.length){var a=n[0],i=n[n.length-1];return r("#dx-touch-selection-grabber-begin").show().offset({left:window.pageXOffset+a.left-11,top:window.pageYOffset+a.top-15}),r("#dx-touch-selection-grabber-end").show().offset({left:window.pageXOffset+i.right-8,top:window.pageYOffset+i.bottom}),void(this._touchEventInProgress||(r("#dx-touch-selection-grabber-begin").hide(),r("#dx-touch-selection-grabber-end").hide()))}}}r("#dx-touch-selection-grabber-begin").hide(),r("#dx-touch-selection-grabber-end").hide(),this._startNode=this._endNode=void 0}},{key:"_OnScrollOnNotification",value:function(){this._touchEventInProgress=r("#dx-touch-selection-grabber-begin").is(":visible"),this._OnSelectionChange()}},{key:"_setDelayedTableScrollEvents",value:function(){r("."+i.default.DX.TABLEWRAPPERCLASS).on("scroll",this._OnScrollOnNotification.bind(this)),window.addEventListener("scroll",this._OnScrollOnNotification.bind(this))}},{key:"_setTouchSelectionEvents",value:function(){if(navigator.maxTouchPoints){var e=r(".ADBE_E_Document");e.on("touchstart",this._OnTouchStart.bind(this)),e.on("touchmove",this._OnTouchMove.bind(this)),e.on("touchend",this._OnTouchEnd.bind(this)),document.addEventListener("selectionchange",this._OnSelectionChange.bind(this)),window.addEventListener("resize",this._OnScrollOnNotification.bind(this)),setTimeout(this._setDelayedTableScrollEvents.bind(this),200),document.addEventListener("contextmenu",this._OnContextMenu.bind(this)),e.append("<div id='dx-touch-selection-grabber-begin'></div>"),e.append("<div id='dx-touch-selection-grabber-end'></div>")}}},{key:"_clickOnAnnot",value:function(e){if(void 0===e||null==e||void 0===e.srcElement||null==e.srcElement)return!1;for(var t=e.srcElement,n=null;t&&t.nodeType==Node.ELEMENT_NODE&&"BODY"!==t.nodeName;t=t.parentNode)if(void 0!==t.className&&null!==t.className&&"annotator"==t.className.split("-")[0]){n=t;break}return null!=n}},{key:"_clickOnImage",value:function(e){return void 0!==e&&null!=e&&void 0!==e.target&&null!=e.target&&e.target.nodeType==Node.ELEMENT_NODE&&"IMG"===e.target.nodeName}},{key:"_handleMouseEvent",value:function(e){if(this._touchEventInProgress=!1,"dx-touch-selection-grabber-begin"!=e.target.id&&"dx-touch-selection-grabber-end"!=e.target.id||(r("#dx-touch-selection-grabber-begin").hide(),r("#dx-touch-selection-grabber-end").hide(),r(".ADBE_E_Document").contextmenu(),e.preventDefault()),1==e.which)this._preventSelectStart=!1;else if(3==e.which){this._preventSelectStart=!0,setTimeout(this._OnSelectStartPreventTimeout.bind(this),this._touchDuration);var t=document.caretRangeFromPoint(e.clientX,e.clientY);if(!t||this._IsCaretSelected(t))return;var n=window.getSelection();if((!n||""===n.toString())&&this._clickOnAnnot(e))return;if(this._clickOnImage(e))return;n&&n.removeAllRanges(),e.preventDefault()}}},{key:"_setMouseEvents",value:function(){document.addEventListener("selectstart",this._OnSelectStart.bind(this)),document.addEventListener("mousedown",this._handleMouseEvent.bind(this))}},{key:"_setViewerEvents",value:function(){var o=this;this._viewerUIApi().then(function(i){i.initEvents(),i._proxy._addEventListener("all",function(e,t,n){if(Log.log("Event from viewer: "+e),"custom:getID"===e)o._processGetIDEvent(i,e,t,n);else if("custom:Find"===e)o._processFindEvent(i,t.params);else if("custom:appPrefChanged"===e)o._processAppPrefChanged(t.params);else if("custom:acroAppUpdate"===e){var a=t.params;o._activeAcroApp=void 0!==a.acroAppId?a.acroAppId:null}else"custom:zoomLevelChanged"===e&&o._processZoomLevelChanged(t.params)},null,this)})}},{key:"_processGetIDEvent",value:function(e,t,n){var a=n.params,i=document.elementFromPoint(a.x,a.y),o=r(i).attr("id");null==o&&(o=r(i).parent().attr("id")),null!=o&&e.elementInfo([{id:o}])}},{key:"_processFindEvent",value:function(e,t){if(void 0!==t&&void 0!==t.function)switch(t.function){case"invokeFind":if(void 0===t.findText||void 0===t.matchCase)return void Log.log("Missing FindText");AdbeDx.find.invokeFind(t.findText,!1,t.matchCase);break;case"next":var n=AdbeDx.find.next(!0);e.findResult([{isNextHit:1,selectedIndex:n}]);break;case"prev":n=AdbeDx.find.prev(!0),e.findResult([{isNextHit:0,selectedIndex:n}]);break;case"clear":AdbeDx.find.clear()}else Log.log("Incorrect params")}},{key:"_processAppPrefChanged",value:function(e){if(void 0!==e&&void 0!==e.avpType)switch(e.avpType){case"avpAccessColorPolicy":AdbeDx.docColorsHandler.changeDocColors(e)}else Log.log("Incorrect params")}},{key:"_processZoomLevelChanged",value:function(e){void 0!==e.newZoomLevel&&AdbeDx.styler.changeZoomLevel(e.newZoomLevel)}},{key:"_analyticsApi",value:function(){var n=this;return new Promise(function(t,e){n._getAcrobatApi().then(function(e){t(e.DynAnalyticsAPI)}).catch(function(e){n._writeInfo("Handle rejected analytics promise ("+e+") here.")})})}},{key:"_commentingApi",value:function(){var n=this;return new Promise(function(t,e){n._getAcrobatApi().then(function(e){t(e.DynCommentAPI)}).catch(function(e){n._writeInfo("Handle rejected commenting promise ("+e+") here.")})})}},{key:"_viewerUIApi",value:function(){var n=this;return new Promise(function(t,e){n._getAcrobatApi().then(function(e){t(e.DynViewerUIAPI)}).catch(function(e){n._writeInfo("Handle rejected viewerUI promise ("+e+") here.")})})}},{key:"_enableTouchSelection",value:function(e){this._touchSelectionEnabled=e}},{key:"_getAcrobatApi",value:function(){var o=this;return new Promise(function(a,i){o._appApiProxy?a(o._appApiProxy):odm.createContext("processType=p6:",function(e,t,n){e&&i(e),o._appApiProxy=o._createRNAProxyObject(n.rna),a(o._appApiProxy)})})}},{key:"_getRNAProxyHandler",value:function(o){var r=this;return{_proxy:o,get:function(e,t){return e.hasOwnProperty(t)||o._hasProperty(t)&&(e[t]=r._createRNAProxyObject(o[t])),e[t]},set:function(e,t,n){return!(t in e)&&e.setItem(t,n)},deleteProperty:function(e,t){return!(t in e)&&e.removeItem(t)},apply:function(e,t,n){return new Promise(function(a,i){var e=o._invoke(n[0]);e._done(function(e,t){if(0===e){var n=r._createRNAProxyObject(t);a(null==n?t:n)}else i(t)}),e._fail(function(e,t){i(t)})})},enumerate:function(e){return e.keys()},ownKeys:function(e){return e.keys()},has:function(e,t){return t in e||e.hasItem(t)},defineProperty:function(e,t,n){return n&&"value"in n&&e.setItem(t,n.value),e},getOwnPropertyDescriptor:function(e,t){var n=e.getItem(t);return n?{value:n,writable:!1,enumerable:!0,configurable:!1}:void 0}}}}]),d);function d(){o(this,d);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,"appApi","appApi",i.default.PLATFORMS.DESKTOP,i.default.MODULE_INIT_TYPE.AT_START));return e._appApiProxy=null,e._startNode=void 0,e._endNode=void 0,e._lastCaret=void 0,e._timer=void 0,e._touchDuration=500,e._toScrollOffset=30,e._preventContextMenu=!1,e._preventSelectStart=!1,e._touchSelectionEnabled=!1,e._allowTouchSelection=!1,e._touchEventInProgress=!1,e._waitForMenu=!1,e._storeEvent=!1,e._tapX=0,e._tapY=0,e._activeAcroApp=null,e}c.default=u}).call(c,f(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var E=r(n(1)),o=r(n(4)),h=r(n(0)),A=n(10),p=n(3),g=n(5);function r(e){return e&&e.__esModule?e:{default:e}}var s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,o.default),a(l,[{key:"getInterface",value:function(){var t=this;return{getSelectedText:function(e){return t._getSelectedText(new Event("copy"),e)},setCopyProtection:function(e){return t._setCopyProtection(e)}}}},{key:"_setCopyProtection",value:function(e){this._copyProtectionEnabled=e}},{key:"_css",value:function(e){var t=document.styleSheets,n={};try{for(var a in t)if(null!==t[a]&&(void 0===t[a].ownerNode||void 0===t[a].ownerNode.id||t[a].ownerNode.id!==""+h.default.HIGHCONTRAST.STYLETAGID)){var i=t[a].rules||t[a].cssRules;for(var o in i)if(i[o].type===CSSRule.STYLE_RULE){var r=i[o].selectorText;if(null!==r&&"hover"!==r&&-1===r.indexOf(":"))try{e.is(r)&&(n=E.default.extend(n,this._css2json(i[o].style),this._css2json(e.attr("style"))))}catch(e){p.Log.error("copy: problem with selector: "+r+" -- "+e)}}}}catch(e){p.Log.warn("Exception in _css() in AdbeClipboard()")}return n}},{key:"_css2json",value:function(e){var t={};if(!e)return t;if(e instanceof CSSStyleDeclaration)for(var n in e)e[n].toLowerCase&&(t[e[n].toLowerCase()]=e[e[n]]);else if("string"==typeof e){var a=e.split("; ");for(var i in a)if(a[i].split){var o=a[i].split(": ");t[o[0].toLowerCase()]=o[1]}}return t}},{key:"_filterCopyFragment",value:function(e){e.find("\n      ."+h.default.DOCUMENT.FOOTNOTETEXTCLASS+"\n      , ."+h.default.DOCUMENT.FOOTNOTECLASS+"\n      , ."+h.default.DOCUMENT.ENDNOTETEXTCLASS+"\n      , ."+h.default.DOCUMENT.ENDNOTECLASS+"\n      , ."+h.default.DOCUMENT.HEADERCLASS+"\n      , ."+h.default.DOCUMENT.FOOTERCLASS+"\n      , ."+h.default.DOCUMENT.WATERMARKCLASS+"\n      , .ADBE_CM_pdfm-watermark\n      , ."+h.default.DX.NOTECONTAINERCLASS+"\n      , ."+h.default.DX.FAKEDOCUMENTCONTAINERCLASS+"\n      , ."+h.default.DOCUMENT.LABELCLASS+"\n    ").remove(),e.find(".dx-unselectable").remove(),e.find("tbody").css("height","auto"),e.find("."+h.default.DX.TABLEHEADWRAPPERCLASS).remove(),e.find("thead").css("display","table-header-group"),e.find("td:first-child, th:first-child").css("height","12pt"),e.find("img").each(function(e,t){var n=(0,E.default)(t),a=n.css("max-width"),i=n.css("max-height"),o=n.attr("width");void 0!==a&&(void 0===o||parseInt(o,10)>parseInt(a,10))&&(n.attr("width",parseInt(a,10)),void 0!==i&&n.attr("height",parseInt(i,10)))});var n=[];e.find(".annotator-hl, .annotator-ul, .annotator-st, .annotator-hl, .annotator-sticky").each(function(e,t){return t.parentNode&&(!1===n.includes(t.parent)&&n.push(t.parentNode),void 0!==t.childNodes&&(0,E.default)(t).replaceWith(t.childNodes)),!0});for(var t=0;t<n.length;t++)n[t].normalize()}},{key:"_addRange",value:function(e){var a="";return(0,E.default)(e).children().each(function(e,t){try{a+=t.innerText;var n=document.createRange();n.selectNode(t),A.DomSelector.extendSelection(n,!0)}catch(e){p.Log.error("Copy: Could not add range "+t+", "+t.tagName)}}),a}},{key:"_bindStyles",value:function(e){var s=this;(0,E.default)(e).children().each(function(e,t){if(void 0!==t&&null!==t.id&&0!==t.id.length){var n=t.id;(0,E.default)(t).attr("id",null);var a=s._css((0,E.default)("#"+n));try{for(var i in a)if("font-size"===i){var o=a[i];if(o.endsWith("rem")){var r=12*parseFloat(o);g.Platform.isDesktop&&(r*=1.3),(0,E.default)(t).css(i,r+"pt")}}else(0,E.default)(t).css(i,a[i])}catch(e){p.Log.error("copy #"+t.id+" error")}}s._bindStyles(t)})}},{key:"_handleDocumentReady",value:function(){var t=this,e=(0,E.default)(document);g.Platform.isDesktop&&(e=(0,E.default)("body")),e.on("copy",function(e){t._copyProtectionEnabled?e.preventDefault():t._getSelectedText(e,!1)})}},{key:"_saveSelection",value:function(){var e=document.getSelection();this._prevSelection={anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}},{key:"_restoreSelection",value:function(){var e=document.getSelection(),t=this._prevSelection;null!=t&&e.setBaseAndExtent(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}},{key:"_getSelectedText",value:function(e,t){var n=this,a="",i="",o="",r=!1;this._globalAction(h.default.ANALYTICS.GLOBALACTIONS.CLIPBOARDCOPY);try{var s=getSelection(),l=s.getRangeAt(0),u=void 0;if(void 0===l)p.Log.error("copy: No range selected.");else if(l.startContainer===l.endContainer)if(3===l.startContainer.nodeType){if(void 0!==(a=l.startContainer.textContent.substring(l.startOffset,l.endOffset))&&0<a.length&&((u=l.startContainer.parentElement.cloneNode()).textContent=a,"SPAN"===u.nodeName)){var d=l.startContainer.parentElement.parentElement.cloneNode();d.appendChild(u),u=d}}else 1===l.startContainer.nodeType&&(u=l.startContainer.cloneNode(!0));else{u=l.cloneContents();var c=l.commonAncestorContainer;"BODY"===c.nodeName||(0,E.default)(c).hasClass(h.default.DX.SCROLLINGWRAPPERCLASS)||((c=c.cloneNode()).append(u),u=c)}void 0!==u&&(g.Platform.isDesktop?(r=!0,e.preventDefault(),AdbeDx.appApi.viewerUIApi().then(function(e){try{e.showCopyProgress([{}])}catch(e){p.Log.warn("exception on showCopyProgress: "+e)}try{i=n._formatCopyFragment(u),a=i.html()}catch(e){a="",p.Log.warn("exception on _formatCopyFragment: "+e)}""!==a?AdbeDx.appApi.viewerUIApi().then(function(e){e.setClipboardData([{html:a,text:i.text()}])}):AdbeDx.appApi.viewerUIApi().then(function(e){e.setClipboardData([{}])}),i.remove()})):(i=this._formatCopyFragment(u),a=i.html().replace(/&quot;/g,"'"),t||this._saveSelection(),o=this._addRange(i,s),window.setTimeout(function(){i.remove(),A.DomSelector.clearSelection(!0),t||n._restoreSelection()},1e3)))}catch(e){p.Log.error("exception on copy: "+e)}!1===r&&g.Platform.isDesktop&&AdbeDx.appApi.viewerUIApi().then(function(e){e.setClipboardData([{}])});var f={formattedText:a,plainText:o};return p.Log.info(f),f}},{key:"_formatCopyFragment",value:function(e){var t="";return(t=(0,E.default)('<div id="copyFragment"></div>').appendTo((0,E.default)("body"))).css("position","fixed"),t.css("pointer-events","none"),t.css("opacity","0"),(0,E.default)('<div id="copyFragmentChild"></div>').appendTo(t).append(e),this._filterCopyFragment(t),this._bindStyles(t),t}}]),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,"clipboard","clipboard",h.default.PLATFORMS.ALL));return e._prevSelection=null,e._setCopyProtection(!0),e}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var u=l(n(1)),o=l(n(4)),d=l(n(0)),r=n(3),s=n(6);function l(e){return e&&e.__esModule?e:{default:e}}var c=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(f,o.default),a(f,[{key:"_handleDocumentReady",value:function(){this._backgroundColor=(0,u.default)("body").css("background-color"),this._addStyleToHead(),this._addClassToEachNode(),this._forceHighContrast&&this._changeDocColors({useAccessibilityColors:!0,backgroundColor:"#000000",foregroundColor:"#ffffff",overrideDocumentColors:!1,overrideLineArtColors:!1})}},{key:"getInterface",value:function(){var t=this;return{changeDocColors:function(e){return t._changeDocColors(e)},useAccessibilityColors:function(){return t._useAccessibilityColors}}}},{key:"_changeDocColors",value:function(e){if(this._parseAndUpdatePrefParams(e)){var t="",n="",a="",i="";!0===this._useAccessibilityColors?(n=this._foregroundColor,!0===this._overrideDocumentColors&&(a=this._foregroundColor,i=this._backgroundColor),t=this._backgroundColor):(this._foregroundColor=d.default.HIGHCONTRAST.COLORBLACK,this._backgroundColor=this._originalBgColor,(0,u.default)(".note_content").css("background-color",""),(0,u.default)(".note_arrow").css("border-top-color","")),(0,u.default)("body").css("background-color",this._backgroundColor),this._changeBgColor(n),this._updateCssSelectorStyle(n,a,i,t),this._updateStaticDVContent(n,t)}}},{key:"_parseAndUpdatePrefParams",value:function(e){var t=!1,n="prefParams.useAccessibilityColors: "+e.useAccessibilityColors+";";return n+="prefParams.backgroundColor: "+e.backgroundColor+";",n+="prefParams.foregroundColor: "+e.foregroundColor+";",n+="prefParams.overrideDocumentColors: "+e.overrideDocumentColors+";",n+="prefParams.overrideLineArtColors: "+e.overrideLineArtColors,r.Log.info(n),void 0!==e.useAccessibilityColors&&(e.useAccessibilityColors!==this._useAccessibilityColors&&(t=!0,this._useAccessibilityColors=e.useAccessibilityColors),!0===e.useAccessibilityColors&&(void 0!==e.backgroundColor&&0<e.backgroundColor.length&&this._backgroundColor!==e.backgroundColor&&(t=!0,this._backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&0<e.foregroundColor.length&&this._foregroundColor!==e.foregroundColor&&(t=!0,this._foregroundColor=e.foregroundColor),void 0!==e.overrideDocumentColors&&this._overrideDocumentColors!==e.overrideDocumentColors&&(t=!0,this._overrideDocumentColors=e.overrideDocumentColors),void 0!==e.overrideLineArtColors&&this._overrideLineArtColors!==e.overrideLineArtColors&&(t=!0,this._overrideLineArtColors=e.overrideLineArtColors))),t}},{key:"_addStyleToHead",value:function(){try{var e="."+d.default.HIGHCONTRAST.BLACKTEXTCLASS+"{}\n              ."+d.default.HIGHCONTRAST.NONBLACKTEXTCLASS+"{}\n              ."+d.default.HIGHCONTRAST.WHITETEXTCLASS+"{}\n              ::selection{} "+d.default.HIGHCONTRAST.TDTHSELECTORTEXT+"{}\n              "+d.default.HIGHCONTRAST.TDTHSELECTORTEXTNONWHITEBGCOLORCLASS+"{}\n              "+d.default.HIGHCONTRAST.WHITEBGCOLORCLASS+"{}\n              ",t=document.head||document.getElementsByTagName("head")[0];this._hcStyleTag=document.createElement("style"),this._hcStyleTag.type="text/css",this._hcStyleTag.id=""+d.default.HIGHCONTRAST.STYLETAGID,this._hcStyleTag.styleSheet?this._hcStyleTag.styleSheet.cssText="":this._hcStyleTag.appendChild(document.createTextNode(e)),t.appendChild(this._hcStyleTag)}catch(e){r.Log.error("Exception in _addStyleToHead: "+e.message)}}},{key:"_updateCssSelectorStyle",value:function(e,t,n,a){try{for(var i=this._hcStyleTag.sheet.cssRules||this._hcStyleTag.sheet.rules,o=0;o<i.length;o++)i[o].selectorText.toLowerCase()==="."+d.default.HIGHCONTRAST.BLACKTEXTCLASS&&i[o].style.setProperty("color",e,"important"),i[o].selectorText.toLowerCase()==="."+d.default.HIGHCONTRAST.NONBLACKTEXTCLASS&&i[o].style.setProperty("color",t,"important"),i[o].selectorText.toLowerCase()==="."+d.default.HIGHCONTRAST.WHITETEXTCLASS&&i[o].style.setProperty("color",n,"important"),"::selection"===i[o].selectorText.toLowerCase()&&(""!==a&&this._getBrightness(a)<20?(i[o].style.setProperty("background-color","rgb(51,255,255)","important"),i[o].style.setProperty("color","rgb(51,51,255)","important")):(i[o].style.setProperty("background-color",s.UtilFunctions.rgbDifference(this._origSelectionColor,a),"important"),i[o].style.setProperty("color","","important"))),i[o].selectorText.toLowerCase()===""+d.default.HIGHCONTRAST.TDTHSELECTORTEXT&&(!0===this._useAccessibilityColors&&!0===this._overrideLineArtColors?i[o].style.setProperty("border-color",e,"important"):i[o].style.setProperty("border-color","","important")),i[o].selectorText.toLowerCase()===""+d.default.HIGHCONTRAST.WHITEBGCOLORCLASS&&i[o].style.setProperty("background-color",this._backgroundColor,"important")}catch(e){r.Log.error("Exception in _updateCssSelectorStyle: "+e.message)}}},{key:"_addClassToEachNode",value:function(){(0,u.default)("*").each(function(e,t){if(t.childNodes.length>t.childElementCount){var n=(0,u.default)(t),a=n.css("color");void 0!==a&&0<a.length&&!a.startsWith("rgb(0, 0, 0")&&"#000"!==a&&"#000000"!==a&&!a.startsWith("rgb(0,0,0")?a.startsWith("rgb(255, 255, 255")||a.startsWith("rgb(255,255,255")?n.addClass(""+d.default.HIGHCONTRAST.WHITETEXTCLASS):n.addClass(""+d.default.HIGHCONTRAST.NONBLACKTEXTCLASS):n.addClass(""+d.default.HIGHCONTRAST.BLACKTEXTCLASS);var i=n.css("background-color");void 0!==i&&0<i.length&&(i.startsWith("rgba(0, 0, 0, 0")||i.startsWith("rgb(255, 255, 255")||i.startsWith("rgb(255,255,255")||"#fff"===i||"#ffffff"===i||n.addClass(""+d.default.HIGHCONTRAST.NONWHITEBGCOLORCLASS))}})}},{key:"_changeBgColor",value:function(r){var s=this;if(!this._overrideLineArtColors||void 0===r||0===r.length||r.startsWith("rgb(0, 0, 0")||r.startsWith("rgb(0,0,0"))(0,u.default)("."+d.default.HIGHCONTRAST.NONWHITEBGCOLORCLASS+", td, th").css("background-color","");else{var l=this._getArrayFromRGB(r);(0,u.default)("."+d.default.HIGHCONTRAST.NONWHITEBGCOLORCLASS).each(function(e,t){var n=(0,u.default)(t);n.css("background-color","");var a=n.css("background-color");if(a.startsWith("rgb(0, 0, 0")||a.startsWith("rgb(0,0,0"))n.css("background-color",r);else if(s._overrideDocumentColors){var i=s._getArrayFromRGB(a),o=s._recommendBgColor(l,i,4.5);n.css("background-color",s._getRGBStringFromArr(o))}});var e="td:not(."+d.default.HIGHCONTRAST.NONWHITEBGCOLORCLASS+")";e+=",th:not(."+d.default.HIGHCONTRAST.NONWHITEBGCOLORCLASS+")",(0,u.default)(e).css("background-color",this._backgroundColor)}}},{key:"_updateStaticDVContent",value:function(e,t){(0,u.default)("hr").css("border-color",e),(0,u.default)(".dx-fake-doc-container").css("border-right-color",e),(0,u.default)(".note_content").css("background-color",""),this._overrideDocumentColors?(0,u.default)("a.visited").css("color",e):(0,u.default)("a.visited").css("color",""),this._updateBrightnessBasedColors(e,t)}},{key:"_updateBrightnessBasedColors",value:function(e,t){var n="";if(""!==t&&!1===this._isColorBright(t)){if((0,u.default)(".dx-collapse-nav-container").css({"border-color":"#fff","background-color":t}),(0,u.default)(".dx-heading-collapse-trigger, .dx-collapse-nav-button, .note_close, .nav-container-icon, #closeNavButton").css("filter","invert(1)"),(0,u.default)(".ADBE_E_TOC").css("background-color",t),n=(0,u.default)(".note_content").css("background-color"),""!==e){var a=this._getArrayFromRGB(e),i=this._getArrayFromRGB(n),o=this._recommendBgColor(a,i,4.5);n=this._getRGBStringFromArr(o)}}else(0,u.default)(".dx-collapse-nav-container").css({"border-color":"","background-color":""}),(0,u.default)(".dx-heading-collapse-trigger, .dx-collapse-nav-button, .note_close, .nav-container-icon, #closeNavButton").css("filter",""),(0,u.default)(".ADBE_E_TOC").css("background-color","");(0,u.default)(".note_content").css("background-color",n),(0,u.default)(".note_arrow").css("border-top-color",n)}},{key:"_getRGBStringFromArr",value:function(e){var t="";return void 0!==e&&(t="rgb("+parseInt(255*e[0],10)+", "+parseInt(255*e[1],10)+", "+parseInt(255*e[2],10)+")"),t}},{key:"_getArrayFromRGB",value:function(e){var t=[];if(void 0!==e){var n=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(null!=n&&4===n.length)for(var a=1;a<4;++a)t.push(parseInt(n[a],10)/255)}return t}},{key:"_recommendBgColor",value:function(e,t,n){var a=t;if(void 0!==e&&void 0!==t){var i=this._getContrastRatio(e,t);if(i<n){var o=.9975;this._getRelativeLuminance(t)>this._getRelativeLuminance(e)&&(o=1/o);for(var r=t,s=!0,l=!1,u=!1;i<n;){var d=1===r[0]&&1===r[1]&&1===r[2],c=0===r[0]&&0===r[1]&&0===r[2];if(l||!s&&(d||c)){if(u){var f=[1,1,1],E=[0,0,0];return r=this._getContrastRatio(e,f)<=this._getContrastRatio(e,E)?E:f}u=!0,o=1/o}a=this._modifyColorIntensity(r,a,o),l=r[0]===a[0]&&r[1]===a[1]&&r[2]===a[2],r=a,i=this._getContrastRatio(e,a),s=!1}}}return a}},{key:"_getContrastRatio",value:function(e,t){var n=this._getRelativeLuminance(e),a=this._getRelativeLuminance(t);return n<0||a<0?0:a<=n?(n+.05)/(a+.05):(a+.05)/(n+.05)}},{key:"_getRelativeLuminance",value:function(e){if(void 0===e||e.length<3)return-1;var t=e[0],n=e[1],a=e[2];return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))}},{key:"_modifyColorIntensity",value:function(e,t,n){var a={Y:0,I:0,Q:0};this._RGB2YIQ(e[0],e[1],e[2],a),a.Y*=n,a.Y=Math.max(0,Math.min(1,a.Y));var i={R:t[0],G:t[1],B:t[2]};return this._YIQ2RGB(a.Y,a.I,a.Q,i),[i.R,i.G,i.B]}},{key:"_RGB2YIQ",value:function(e,t,n,a){void 0!==a.Y&&void 0!==a.I&&void 0!==a.Q&&(a.Y=.299*e+.587*t+.114*n,a.I=.595716*e-.274453*t-.321263*n,a.Q=.211456*e-.522591*t+.311135*n,a.Y=Math.max(0,Math.min(1,a.Y)),a.I=Math.max(-.5957,Math.min(.5957,a.I)),a.Q=Math.max(-.5226,Math.min(.5226,a.Q)))}},{key:"_YIQ2RGB",value:function(e,t,n,a){void 0!==a.R&&void 0!==a.G&&void 0!==a.B&&(a.R=+e+.9563*t+.621*n,a.G=e-.2721*t-.6474*n,a.B=e-1.107*t+1.7046*n,a.R=Math.max(0,Math.min(1,a.R)),a.G=Math.max(0,Math.min(1,a.G)),a.B=Math.max(0,Math.min(1,a.B)))}},{key:"_getBrightness",value:function(e){var t=this._getArrayFromRGB(e);return 255*(.299*t[0]+.587*t[1]+.114*t[2])}},{key:"_isColorBright",value:function(e){return 127.5<this._getBrightness(e)}}]),f);function f(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,"docColorsHandler","docColorsHandler",d.default.PLATFORMS.DESKTOP));return e._useAccessibilityColors=!1,e._overrideDocumentColors=!1,e._overrideLineArtColors=!1,e._originalBgColor=(0,u.default)("body").css("background-color"),e._backgroundColor=d.default.HIGHCONTRAST.COLORWHITE,e._foregroundColor=d.default.HIGHCONTRAST.COLORBLACK,e._origSelectionColor="rgb(153, 183, 218)",e._hcStyleTag=null,e._forceHighContrast=!1,e}t.default=c},function(e,l,u){"use strict";(function(s){Object.defineProperty(l,"__esModule",{value:!0}),l.DomTagger=void 0;var e=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var t,n=u(0),r=(t=n)&&t.__esModule?t:{default:t};var i=(e(o,[{key:"init",value:function(){this._initialized||(this._initialized=!0)}},{key:"tagSection",value:function(e){var o=this,t=e.children().first(),n=t.attr("class");if(n&&(-1===n.indexOf("ADBE_E_H")||-1!==n.indexOf("ADBE_E_Head"))){var a=e.children("."+r.default.DOCUMENT.TITLECLASS);if(!(0<a.length))return;var i=s("."+r.default.DOCUMENT.TITLECLASS+":first");if(a.is(i))return;t=a}this._isElementIneligible(t)?e.addClass(r.default.DX.INELIGIBLESECTIONCLASS):this._isElementEmpty(t)?t.addClass(r.default.DX.EMPTYHEADINGCLASS):e.children("."+r.default.DOCUMENT.SECTIONCLASS).each(function(e,t){var n=s(t),a=n.children().first(),i=a.attr("class");-1!==i.indexOf("ADBE_E_H")&&-1===i.indexOf("ADBE_E_Head")&&(o._isElementIneligible(a)?n.addClass(r.default.DX.INELIGIBLESECTIONCLASS):0<a.length&&o._isElementEmpty(a,!0)&&a.addClass(r.default.DX.EMPTYHEADINGCLASS))})}},{key:"tagHeading",value:function(e){e.hasClass(""+r.default.DOCUMENT.HEADINGCLASS)||e.hasClass(""+r.default.DOCUMENT.TITLECLASS)?e.addClass(r.default.DX.HEADINGCLASS):e.hasClass(""+r.default.DOCUMENT.SUBHEADINGCLASS)&&e.addClass(r.default.DX.SUBHEADINGCLASS)}},{key:"_hasHeaderParent",value:function(e){return e.parent().prev().hasClass(r.default.DX.HEADINGCLASS)}},{key:"_isElementEmpty",value:function(e,t){var a=this;if(0===e.text().trim().length)return!0;if(t)return!1;var i=!0,n=!0,o=e.nextAll();if(0<o.length){if(o.each(function(e,t){var n=s(t);i=i&&(a._isElementIneligible(n)||!n.is("figure")&&0===n.text().trim().length)}),!i)return!1;var r=o.children();0<r.length&&(o.each(function(e,t){i=i&&(a._isElementIneligible(s(t))||0===s(t).text().trim().length)}),r.each(function(e,t){n=n&&(a._isElementIneligible(s(t))||0===s(t).text().trim().length)}))}return i||n}},{key:"_isElementIneligible",value:function(e){return e.hasClass(r.default.DOCUMENT.SUBTITLECLASS)||e.hasClass(r.default.DOCUMENT.TOCINDEXCLASS)||e.hasClass(r.default.DOCUMENT.ARTIFACTCLASS)}}]),o);function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._initialized=!1}l.DomTagger=new i}).call(l,u(1))},function(e,u,d){"use strict";(function(e){Object.defineProperty(u,"__esModule",{value:!0}),u.DomLayout=void 0;var t=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var n,i=d(0),o=(n=i)&&n.__esModule?n:{default:n},r=d(2);var s=(t(l,[{key:"initLayout",value:function(){e("."+o.default.DOCUMENT.DOCUMENTCLASS).wrap("\n      <div class='dx-layout-container dx-pending-eligibility p-0'>\n        <div class='dx-layout-main-content row'>\n            <div class='dx-document col px-xxs-2 px-xs-2 px-sm-3 px-md-3 px-lg-4 px-xl-4 px-xxl-0'>\n            </div>\n        </div>\n      </div>"),e("body").append(""+o.default.HTML.DEBUGGRID),r.Events.publish(o.default.DOM_EVENTS.DXLAYOUTINITIALIZED)}}]),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l)}u.DomLayout=new s}).call(u,d(1))}],[25]).DXModules;