/* SmartClient Ajax RIA system Version v10.0p_2015-08-28/PowerEdition Deployment (2015-08-28) Copyright 2000 and beyond Isomorphic Software, Inc. All rights reserved. "SmartClient" is a trademark of Isomorphic Software, Inc. LICENSE NOTICE INSTALLATION OR USE OF THIS SOFTWARE INDICATES YOUR ACCEPTANCE OF THE SOFTWARE LICENSE AGREEMENT. If you have received this file without an Isomorphic Software license file, please see: http://www.isomorphic.com/licenses/license-power.html You are not required to accept this agreement, however, nothing else grants you the right to copy or use this software. Unauthorized copying and use of this software is a violation of international copyright law. PROPRIETARY & PROTECTED MATERIAL This software contains proprietary materials that are protected by contract and intellectual property law. YOU ARE EXPRESSLY PROHIBITED FROM ATTEMPTING TO REVERSE ENGINEER THIS SOFTWARE OR MODIFY THIS SOFTWARE FOR HUMAN READABILITY. CONTACT ISOMORPHIC For more information regarding license rights and restrictions, or to report possible license violations, please contact Isomorphic Software by email (licensing@isomorphic.com) or web (www.isomorphic.com). */ var isc=window.isc?window.isc:{};if(window.isc&&!window.isc.module_Core){isc.module_Core=1;isc._moduleStart=isc._Core_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'Core load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;var isc=window.isc?window.isc:{};isc.$d=new Date().getTime();isc.version="v10.0p_2015-08-28/PowerEdition Deployment";isc.versionNumber="v10.0p_2015-08-28";isc.buildDate="2015-08-28";isc.expirationDate="";isc.licenseType="PowerEdition";isc.licenseCompany="Isomorphic Software";isc.licenseSerialNumber="ISC_POWER_NIGHTLY";isc.licensingPage="http://smartclient.com/product/";isc.$1142="debugModules";isc.$1143="nonDebugModules";isc.checkForDebugAndNonDebugModules=function(){if(isc.checkForDebugAndNonDebugModules.$75z)return;var _1=isc['_'+this.$1142],_2=_1!=null&&_1.length>0,_3=isc['_'+this.$1143],_4=_3!=null&&_3.length>0;if(_2&&_4){isc.logWarn("Both Debug and non-Debug modules were loaded; the Debug versions of '"+_1.join("', '")+"' and the non-Debug versions of '"+_3.join("', '")+"' were loaded. Mixing Debug and non-Debug modules is not supported and may lead to JavaScript errors and/or unpredictable behavior. To fix, ensure that only modules in the modules/ folder or the modules-debug/ folder are loaded and clear the browser cache. If using Smart GWT, also clear the GWT unit cache and recompile.");isc.checkForDebugAndNonDebugModules.$75z=true}};isc.$41r={SCServer:{present:"true",name:"SmartClient Server",serverOnly:true,isPro:true},Drawing:{present:"${includeDrawing}",name:"Drawing Module"},PluginBridges:{present:"true",name:"PluginBridges Module"},RichTextEditor:{present:"true",name:"RichTextEditor Module"},Calendar:{present:"true",name:"Calendar Module"},Analytics:{present:"false",name:"Analytics Module"},Charts:{present:"true",name:"Charts Module"},Tools:{present:"${includeTools}",name:"Dashboards and Tools Module"},NetworkPerformance:{present:"true",name:"Network Performance Module"},FileLoader:{present:"true",name:"Network Performance Module"},RealtimeMessaging:{present:"false",name:"RealtimeMessaging Module"},serverCriteria:{present:"true",name:"Server Advanced Filtering",serverOnly:true,isFeature:true},customSQL:{present:"true",name:"SQL Templating",serverOnly:true,isFeature:true},chaining:{present:"true",name:"Transaction Chaining",serverOnly:true,isFeature:true},batchDSGenerator:{present:"false",name:"Batch DS-Generator",serverOnly:true,isFeature:true},batchUploader:{present:"true",name:"Batch Uploader",serverOnly:true,isFeature:true},transactions:{present:"true",name:"Automatic Transaction Management",serverOnly:true,isFeature:true}};isc.canonicalizeModules=function(_1){if(!_1)return null;if(isc.isA.String(_1)){if(_1.indexOf(",")!=-1){_1=_1.split(",");var _2=/^\s+/,_3=/\s+$/;for(var i=0;i<_1.length;i++){_1[i]=_1[i].replace(_2,"").replace(_3,"")}}else _1=[_1]} return _1};isc.hasOptionalModules=function(_1){if(!_1)return true;_1=isc.canonicalizeModules(_1);for(var i=0;i<_1.length;i++)if(!isc.hasOptionalModule(_1[i]))return false;return true};isc.getMissingModules=function(_1){var _2=[];_1=isc.canonicalizeModules(_1);for(var i=0;i<_1.length;i++){var _4=_1[i];if(!isc.hasOptionalModule(_4))_2.add(isc.$41r[_4])} return _2};isc.hasOptionalModule=function(_1){var v=isc.$41r[_1];if(!v){if(isc.Log)isc.Log.logWarn("isc.hasOptionalModule - unknown module: "+_1);return false} return v.present=="true"||v.present.charAt(0)=="$"};isc.getOptionalModule=function(_1){return isc.$41r[_1]};isc.$a4b5c1c2d3=function(_1){if(this.hasOptionalModule(_1))return;var _2=isc.$41r[_1];if(_2)_2.present=!!_1+""};isc.$a=window.isc_useSimpleNames;if(isc.$a==null)isc.$a=true;if(window.OpenAjax){isc.$b=isc.versionNumber.replace(/[a-zA-Z_]+/,".0");OpenAjax.registerLibrary("SmartClient","http://smartclient.com/SmartClient",isc.$b,{namespacedMode:!isc.$a,iscVersion:isc.version,buildDate:isc.buildDate,licenseType:isc.licenseType,licenseCompany:isc.licenseCompany,licenseSerialNumber:isc.licenseSerialNumber});OpenAjax.registerGlobals("SmartClient",["isc"])} isc.$e=window.isc_useLongDOMIDs;isc.$f="isc.";isc.addGlobal=function(_1,_2){if(_1.indexOf(isc.$f)==0)_1=_1.substring(4);isc[_1]=_2;if(isc.$a)window[_1]=_2} isc.onLine=true;isc.isOffline=function(){return!isc.onLine};isc.goOffline=function(){isc.onLine=false};isc.goOnline=function(){isc.onLine=true};if(window.addEventListener){window.addEventListener("online",isc.goOnline,false);window.addEventListener("offline",isc.goOffline,false)} if(typeof isc.Packager!="object"){}else{var priority=4,category="Packager",packageIndex=isc.Packager.packageIndex;var packageCount=0;for(var loadedPackage in packageIndex){if(packageIndex.hasOwnProperty(loadedPackage))packageCount++} var message="Ignoring attempt to redefine isc.Packager containing "+packageCount+" packages";if(isc.Log){isc.Log.logMessage(priority,message,category)}else{if(!isc.$j)isc.$j=[];isc.$j[isc.$j.length]={priority:priority,category:category,message:message,timestamp:new Date()}}} isc.addGlobal("Browser",{isSupported:false});isc.Browser.isOpera=(navigator.appName=="Opera"||navigator.userAgent.indexOf("Opera")!=-1);isc.Browser.isNS=(navigator.appName=="Netscape"&&!isc.Browser.isOpera);isc.Browser.isIE=(navigator.appName=="Microsoft Internet Explorer"&&!isc.Browser.isOpera)||navigator.userAgent.indexOf("Trident/")!=-1;isc.Browser.isMSN=(isc.Browser.isIE&&navigator.userAgent.indexOf("MSN")!=-1);isc.Browser.isMoz=(navigator.userAgent.indexOf("Gecko")!=-1)&&(navigator.userAgent.indexOf("Safari")==-1)&&(navigator.userAgent.indexOf("AppleWebKit")==-1)&&!isc.Browser.isIE;isc.Browser.isCamino=(isc.Browser.isMoz&&navigator.userAgent.indexOf("Camino/")!=-1);isc.Browser.isFirefox=(isc.Browser.isMoz&&navigator.userAgent.indexOf("Firefox/")!=-1);isc.Browser.isAIR=(navigator.userAgent.indexOf("AdobeAIR")!=-1);isc.Browser.isWebKit=navigator.userAgent.indexOf("WebKit")!=-1;isc.Browser.isSafari=isc.Browser.isAIR||navigator.userAgent.indexOf("Safari")!=-1||navigator.userAgent.indexOf("AppleWebKit")!=-1;isc.Browser.isEdge=isc.Browser.isSafari&&(navigator.userAgent.indexOf("Edge/")!=-1);isc.Browser.isChrome=isc.Browser.isSafari&&!isc.Browser.isEdge&&(navigator.userAgent.indexOf("Chrome/")!=-1);if(!isc.Browser.isIE&&!isc.Browser.isOpera&&!isc.Browser.isMoz&&!isc.Browser.isAIR&&!isc.Browser.isWebkit&&!isc.Browser.isSafari) {if(navigator.appVersion.indexOf("MSIE")!=-1){isc.Browser.isIE=true}} if(navigator.userAgent.indexOf("Trident/")>=0&&navigator.userAgent.lastIndexOf("rv:")>=0) {isc.Browser.minorVersion=parseFloat(navigator.userAgent.substring(navigator.userAgent.lastIndexOf("rv:")+"rv:".length))}else{isc.Browser.minorVersion=parseFloat(isc.Browser.isIE?navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE")+5):navigator.appVersion)} if(isc.Browser.isIE){if(document.documentMode!=null){isc.Browser.minorVersion=Math.max(isc.Browser.minorVersion,document.documentMode)}}else(function(){var _1,_2;if(navigator.appVersion){_1="Version/";_2=navigator.appVersion.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(navigator.appVersion.substring(_2+_1.length));return}} var _3=navigator.userAgent;_1="Chrome/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return} _1="Camino/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return} _1="Firefox/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return} if(_3.indexOf("Opera/")>=0){_1="Version/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}else{_1="Opera/";_2=_3.indexOf(_1);isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}}})();isc.Browser.version=parseInt(isc.Browser.minorVersion);isc.Browser.isIE6=isc.Browser.isIE&&isc.Browser.version<=6;if(isc.Browser.isCamino){isc.Browser.caminoVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Camino/")+7)} if(isc.Browser.isFirefox){var userAgent=navigator.userAgent,firefoxVersion=userAgent.substring(userAgent.indexOf("Firefox/")+8),majorMinorVersion=firefoxVersion.replace(/([^.]+\.[^.]+)\..*/,"$1");isc.Browser.firefoxVersion=firefoxVersion;isc.Browser.firefoxMajorMinorNumber=parseFloat(majorMinorVersion)} if(isc.Browser.isMoz){isc.Browser.$g=navigator.userAgent.indexOf("Gecko/")+6;isc.Browser.geckoVersion=parseInt(navigator.userAgent.substring(isc.Browser.$g,isc.Browser.$g+8));if(isc.Browser.isFirefox){if(isc.Browser.firefoxVersion.match(/^1\.0/))isc.Browser.geckoVersion=20050915;else if(isc.Browser.firefoxVersion.match(/^2\.0/))isc.Browser.geckoVersion=20071108} if(isc.Browser.version>=17)isc.Browser.geckoVersion=20121121} isc.Browser.isStrict=document.compatMode=="CSS1Compat";if(isc.Browser.isStrict&&isc.Browser.isMoz){isc.Browser.$51p=document.doctype.publicId;isc.Browser.$51q=document.doctype.systemId} isc.Browser.isTransitional=/.*(Transitional|Frameset)/.test((document.all&&document.all[0]&&document.all[0].nodeValue)||(document.doctype&&document.doctype.publicId));isc.Browser.isIE7=isc.Browser.isIE&&isc.Browser.version==7;isc.Browser.isIE8=isc.Browser.isIE&&isc.Browser.version>=8&&document.documentMode==8;isc.Browser.isIE8Strict=isc.Browser.isIE&&(isc.Browser.isStrict&&document.documentMode==8)||document.documentMode>8;isc.Browser.isIE9=isc.Browser.isIE&&isc.Browser.version>=9&&document.documentMode>=9;isc.Browser.isIE10=isc.Browser.isIE&&isc.Browser.version>=10;isc.Browser.isIE11=isc.Browser.isIE&&isc.Browser.version>=11;isc.Browser.AIRVersion=(isc.Browser.isAIR?navigator.userAgent.substring(navigator.userAgent.indexOf("AdobeAir/")+9):null);if(isc.Browser.isSafari){if(isc.Browser.isAIR){isc.Browser.safariVersion=530}else{if(navigator.userAgent.indexOf("Safari/")!=-1){isc.Browser.rawSafariVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Safari/")+7)}else if(navigator.userAgent.indexOf("AppleWebKit/")!=-1){isc.Browser.rawSafariVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("AppleWebKit/")+12)}else{isc.Browser.rawSafariVersion="530"} isc.Browser.safariVersion=(function(){var _1=isc.Browser.rawSafariVersion,_2=_1.indexOf(".");if(_2==-1)return parseInt(_1);var _3=_1.substring(0,_2+1),_4;while(_2!=-1){_2+=1;_4=_1.indexOf(".",_2);_3+=_1.substring(_2,(_4==-1?_1.length:_4));_2=_4} return parseFloat(_3)})()}} isc.Browser.isWin=navigator.platform.toLowerCase().indexOf("win")>-1;isc.Browser.isWin2k=navigator.userAgent.match(/NT 5.01?/)!=null;isc.Browser.isMac=navigator.platform.toLowerCase().indexOf("mac")>-1;isc.Browser.isUnix=(!isc.Browser.isMac&&!isc.Browser.isWin);isc.Browser.isAndroid=navigator.userAgent.indexOf("Android")>-1;if(isc.Browser.isAndroid){var pos=navigator.userAgent.indexOf("Android");if(pos>=0){isc.Browser.androidMinorVersion=parseFloat(navigator.userAgent.substring(pos+"Android".length));if(window.isNaN(isc.Browser.androidMinorVersion))delete isc.Browser.androidMinorVersion} isc.Browser.isAndroidWebView=navigator.userAgent.indexOf("Version/")>=0} isc.Browser.isRIM=isc.Browser.isBlackBerry=navigator.userAgent.indexOf("BlackBerry")>-1||navigator.userAgent.indexOf("PlayBook")>-1;isc.Browser.isMobileIE=navigator.userAgent.indexOf("IEMobile")>-1;isc.Browser.isMobileFirefox=isc.Browser.isFirefox&&(navigator.userAgent.indexOf("Mobile")>-1||navigator.userAgent.indexOf("Tablet")>-1);isc.Browser.isMobileWebkit=(isc.Browser.isSafari&&navigator.userAgent.indexOf(" Mobile/")>-1||isc.Browser.isAndroid||isc.Browser.isBlackBerry)&&!isc.Browser.isFirefox;isc.Browser.isMobile=(isc.Browser.isMobileFirefox||isc.Browser.isMobileIE||isc.Browser.isMobileWebkit);isc.Browser.isTouch=(isc.Browser.isMobileFirefox||isc.Browser.isMobileIE||isc.Browser.isMobileWebkit);isc.Browser.setIsTouch=function(_1){_1=isc.Browser.isTouch=!!_1;if(isc.Browser.isDesktop){isc.Browser.isHandset=false;isc.Browser.isTablet=false}else{isc.Browser.isHandset=_1&&!isc.Browser.isTablet;isc.Browser.isTablet=!isc.Browser.isHandset} isc.Browser.hasNativeDrag=!_1&&"draggable"in document.documentElement&&!isc.Browser.isIE;isc.Browser.nativeMouseMoveOnCanvasScroll=!_1&&(isc.Browser.isSafari||isc.Browser.isChrome)};isc.Browser.isIPhone=(isc.Browser.isMobileWebkit&&(navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPad")>-1));if(isc.Browser.isIPhone){var match=navigator.userAgent.match(/CPU\s+(?:iPhone\s+)?OS\s*([0-9_]+)/i);if(match!=null){isc.Browser.iOSMinorVersion=window.parseFloat(match[1].replace('_','.'));isc.Browser.iOSVersion=isc.Browser.iOSMinorVersion<<0} isc.Browser.isUIWebView=navigator.userAgent.indexOf("Safari")<0;isc.Browser.isMobileSafari=!isc.Browser.isUIWebView&&navigator.userAgent.indexOf("CriOS/")<0} isc.Browser.isIPad=(isc.Browser.isIPhone&&navigator.userAgent.indexOf("iPad")>-1);isc.Browser.isWindowsPhone=navigator.userAgent.indexOf("Windows Phone")>-1;if(isc.Browser.isIPad&&isc.Browser.isMobileSafari&&isc.Browser.iOSVersion==7){var iOS7IPadStyleSheetID="isc_iOS7IPadStyleSheet";if(document.getElementById(iOS7IPadStyleSheetID)==null){var styleElement=document.createElement("style");styleElement.id=iOS7IPadStyleSheetID;document.head.appendChild(styleElement);var s=styleElement.sheet;s.insertRule("\n@media (orientation:landscape) {\nhtml {position: fixed;bottom: 0px;width: 100%;height: 672px;}body {position: fixed;top: 0px;margin: 0px;padding: 0px;width: 100%;height: 672px;}\n}\n",0)} (function(){var _1=function(_7){if(_7==null)return false;var _2=_7.tagName;return(_2==="INPUT"||_2==="SELECT"||_2==="TEXTAREA")};var _3=null;window.addEventListener("scroll",function(){if(document.body==null)return;var _4=document.body.scrollTop;if(_4==0)return;var _5=document.activeElement;if(_1(_5)){var _6=function onBlur(_7){_5.removeEventListener("blur",_6,true);if(_3!=null)clearTimeout(_3);_3=setTimeout(function(){_3=null;_5=document.activeElement;if(_5!==_7.target&&_1(_5)){_5.addEventListener("blur",_6,true)}else{document.body.scrollTop=0}},1)};_5.addEventListener("blur",_6,true)}else{document.body.scrollTop=0}},false)})()} if(window.isc_isTablet!=null){isc.Browser.isTablet=!!window.isc_isTablet}else{isc.Browser.isTablet=isc.Browser.isIPad||(isc.Browser.isRIM&&navigator.userAgent.indexOf("Tablet")>-1)||(isc.Browser.isAndroid&&navigator.userAgent.indexOf("Mobile")==-1)} isc.Browser.$138e=isc.Browser.isTablet;isc.Browser.setIsTablet=function(_1){_1=isc.Browser.isTablet=!!_1;isc.Browser.isHandset=(isc.Browser.isTouch&&!isc.Browser.isTablet);isc.Browser.isDesktop=(!isc.Browser.isTablet&&!isc.Browser.isHandset)};isc.Browser.isHandset=(isc.Browser.isTouch&&!isc.Browser.isTablet);isc.Browser.setIsHandset=function(_1){_1=isc.Browser.isHandset=!!_1;isc.Browser.isTablet=(isc.Browser.isTouch&&!isc.Browser.isHandset);isc.Browser.isDesktop=(!isc.Browser.isTablet&&!isc.Browser.isHandset)};isc.Browser.isDesktop=(!isc.Browser.isTablet&&!isc.Browser.isHandset);isc.Browser.setIsDesktop=function(_1){_1=isc.Browser.isDesktop=!!_1;if(_1){isc.Browser.isHandset=false;isc.Browser.isTablet=false}else{isc.Browser.isTablet=isc.Browser.$138e;isc.Browser.isHandset=!isc.Browser.isTablet}};isc.Browser.isBorderBox=(isc.Browser.isIE&&!isc.Browser.isStrict);isc.Browser.lineFeed=(isc.Browser.isWin?"\r\n":"\r");isc.Browser.$h=false;isc.Browser.isDOM=(isc.Browser.isMoz||isc.Browser.isOpera||isc.Browser.isSafari||(isc.Browser.isIE&&isc.Browser.version>=5));isc.Browser.isSupported=((isc.Browser.isIE&&isc.Browser.minorVersion>=5.5&&isc.Browser.isWin)||isc.Browser.isMoz||isc.Browser.isOpera||isc.Browser.isSafari||isc.Browser.isAIR);isc.Browser.nativeMouseMoveOnCanvasScroll=!isc.Browser.isTouch&&(isc.Browser.isSafari||isc.Browser.isChrome);isc.Browser.seleniumPresent=(function(){var _1=location.href.match(/[?&](?:sc_selenium)=([^&#]*)/);return _1&&_1.length>1&&"true"==_1[1]})();isc.Browser.SHOWCASE="showcase";isc.Browser.RUNNER="runner";isc.Browser.autotest=(function(){var _1=location.href.match(/[?&](?:autotest)=([^&#]*)/);return _1&&_1.length>1?_1[1]:null})();isc.Browser.allowsXSXHR=((isc.Browser.isFirefox&&isc.Browser.firefoxMajorMinorNumber>=3.5)||(isc.Browser.isChrome)||(isc.Browser.isSafari&&isc.Browser.safariVersion>=531));var isc_useGradientsPreIE9=window.isc_useGradientsPreIE9;isc.Browser.useCSSFilters=!isc.Browser.isIE||isc.Browser.isIE9||isc_useGradientsPreIE9!=false;var isc_css3Mode=window.isc_css3Mode;if(isc_css3Mode=="on"){isc.Browser.useCSS3=true}else if(isc_css3Mode=="off"){isc.Browser.useCSS3=false}else if(isc_css3Mode=="supported"||isc_css3Mode=="partialSupport"||isc_css3Mode===undefined) {isc.Browser.useCSS3=isc.Browser.isWebKit||isc.Browser.isFirefox||(isc.Browser.isIE&&(isc.Browser.isIE9||isc.Browser.version>=10))}else{isc.Browser.useCSS3=false} var isc_spriting=window.isc_spriting;if(isc_spriting=="off"){isc.Browser.useSpriting=false}else{isc.Browser.useSpriting=(!isc.Browser.isIE||isc.Browser.version>=7)} isc.Browser.useInsertAdjacentHTML=!!document.documentElement.insertAdjacentHTML;isc.Browser.hasNativeGetRect=(!isc.Browser.isIE&&(!isc.Browser.isSafari||!isc.Browser.isMac||isc.Browser.version>=6)&&!!document.createRange&&!!(document.createRange().getBoundingClientRect));isc.Browser.$113k=!((isc.Browser.isIE&&isc.Browser.version<10&&!isc.Browser.isIE9)||(isc.Browser.isWebKit&&!(parseFloat(isc.Browser.rawSafariVersion)>=532.3)));isc.Browser.useClipDiv=isc.Browser.$113k;isc.Browser.useCreateContextualFragment=!!document.createRange&&!!document.createRange().createContextualFragment;isc.Browser.hasTextOverflowEllipsis=(!isc.Browser.isMoz||isc.Browser.version>=7)&&(!isc.Browser.isOpera||isc.Browser.version>=9);isc.Browser.$114w=(!isc.Browser.isOpera||isc.Browser.version>=11?"text-overflow":"-o-text-overflow");isc.Browser.$117b=!isc.Browser.isSafari||isc.Browser.version>=4;isc.Browser.$120b=("pointerEvents"in document.documentElement.style&&!isc.Browser.isOpera&&(!isc.Browser.isIE||isc.Browser.version>=11));isc.Browser.hasNativeDrag=!isc.Browser.isTouch&&"draggable"in document.documentElement&&!isc.Browser.isIE;isc.Browser.$120h=!!(window.getSelection&&document.createRange&&window.Range);isc.Browser.$124v="backgroundSize"in document.documentElement.style;isc.Browser.$139c=("transition"in document.documentElement.style||"WebkitTransition"in document.documentElement.style||"OTransition"in document.documentElement.style)&&!isc.Browser.isMoz;isc.Browser.$139y=("WebkitTransition"in document.documentElement.style?"webkitTransitionEnd":("OTransition"in document.documentElement.style?(isc.Browser.isOpera&&isc.Browser.version>=12?"otransitionend":"oTransitionEnd"):"transitionend"));isc.Browser.$1398=function(){return(this.isTouch&&(!(this.isIPhone||this.isIPad)||this.iOSVersion>=6))};isc.Browser.$1395=("WebkitOverflowScrolling"in document.documentElement.style&&isc.Browser.iOSVersion>=6);isc.Browser.$141c=(function(){var _1=document.createElement("canvas");if(_1.getContext!=null){var _2=_1.getContext("2d");return!!_2.isPointInStroke} return false})();isc.Browser.$145h=("contains"in document.documentElement);if(!isc.Browser.$145h&&window.Node!=null){Node.prototype.contains=function(_1){for(;_1!=null;_1=_1.parentNode){if(this===_1)return true} return false}} isc.Browser.$152d=(isc.Browser.isIPhone&&!isc.Browser.isIPad&&isc.Browser.isMobileSafari&&7.1==isc.Browser.iOSMinorVersion);isc.Browser.$16ab=(document.createElementNS&&"parentElement"in document.createElementNS("http://www.w3.org/2000/svg","svg"));if(!isc.Browser.$16ab&&window.SVGElement!=null&&Object.defineProperty){Object.defineProperty(SVGElement.prototype,"parentElement",{enumerable:true,"get":function(){var _1=this.parentNode;while(_1!=null&&_1.nodeType!=1){_1=_1.parentNode} return _1}})} isc.Browser.$158n=isc.Browser.isMobileWebkit&&"webkitMaskBoxImage"in document.documentElement.style;isc.noOp=function isc_noOp(){};isc.emptyObject={};isc.$ac=[];isc.emptyString=isc.$ad="";isc.space=" ";isc.dot=".";isc.semi=";";isc.colon=":";isc.slash="/";isc.star="*";isc.apos="'";isc.auto="auto";isc.px="px";isc.nbsp=" ";isc.xnbsp="&nbsp;";isc.$ae="false";isc.$af="FALSE";isc.$ag="_";isc.$75g="$";isc.$ah="_$observed_";isc.$ai="_$SuperProto_";isc.gwtRef="__ref";isc.gwtModule="__module";isc.logWarn=function isc_logWarn(_1,_2){isc.Log.logWarn(_1,_2)};isc.echo=function isc_echo(_1){return isc.Log.echo(_1)};isc.echoAll=function isc_echoAll(_1){return isc.Log.echoAll(_1)};isc.echoLeaf=function isc_echoLeaf(_1){return isc.Log.echoLeaf(_1)};isc.echoFull=function isc_echoFull(_1){return isc.Log.echoFull(_1)};isc.logEcho=function isc_logEcho(_1,_2){if(_2)_2+=": ";isc.Log.logWarn((_2||isc.$ad)+isc.echo(_1))} isc.logEchoAll=function isc_logEchoAll(_1,_2){if(_2)_2+=": ";isc.Log.logWarn((_2||isc.$ad)+isc.echoAll(_1))} isc.$aq=function isc__makeFunction(_1,_2){var _3=_2||_1;var _4;if(_2==null){_4=new Function(_3);_4.$123y=isc.$ad}else{_4=new Function(_1,_3)} return _4};isc.doEval=function isc_doEval(_1){if(isc.Browser.isMoz)return isc.$as(_1);if(!isc.$at)isc.$at=[];isc.$at[isc.$at.length]=_1;return null} isc.finalEval=function isc_finalEval(){if(isc.$at){if(isc.Browser.isMoz){for(var i=0;i_4)return false} if(_6!=_4)return false;return true}}else{return false}});isc.addGlobal("combineObjects",function isc_combineObjects(_1,_2){if(_1==null||!isc.isAn.Object(_1))return _2;if(_2==null||!isc.isAn.Object(_2))return _1;for(var _3 in _2){var _4=_1[_3],_5=_2[_3];if(isc.isAn.Object(_4)&&!isc.isAn.Array(_4)&&!isc.isA.Date(_4)&&isc.isAn.Object(_5)&&!isc.isAn.Array(_5)&&!isc.isA.Date(_5)) {isc.combineObjects(_4,_5)}else{_1[_3]=_5}}});isc.applyMask=function isc_applyMask(_1,_2){var _3={};if(_1==null)return _3;if(_2==null){return isc.addProperties(_3,_1)} var _4=false;if(!isc.isAn.Array(_1)){_4=true;_1=[_1]} if(!isc.isAn.Array(_2))_2=isc.getKeys(_2);var _3=[],_5,_6,_7,_8;for(var i=0;i<_1.length;i++){_5=_1[i];_6=_3[i]={};for(var j=0;j<_2.length;j++){_7=_2[j];if(_5[_7]===_8)continue;_6[_7]=_5[_7]}} return(_4?_3[0]:_3)} isc.getProperties=function isc_getProperties(_1,_2,_3){if(_1==null)return null;_3=_3||{};if(_2==null)return _3;for(var i=0;i<_2.length;i++){var _5=_2[i];_3[_5]=_1[_5]} return _3} isc.$bg={};isc.$bh=Math.floor;isc.$bi="-";for(isc.$bj=0;isc.$bj<10;isc.$bj++) isc.$bg[isc.$bj]=isc.$bj.toString();isc.$bk=function isc__fillNumber(_1,_2,_3,_4,_5){var _6=_3+_4-1,_7=_2,_8=false,_9;if(_2<0){_9=true;_2=-_2;_1[_3]=this.$bi;_3+=1;_4-=1} while(_2>9){var _10=this.$bh(_2/10),_11=_2-(_10*10);_1[_6]=this.$bg[_11];_2=_10;if(_6==(_3+1)&&_2>9){isc.Log.logWarn("fillNumber: number too large: "+_7+isc.Log.getStackTrace());_8=true;break} _6-=1} if(_8){_6=_3+_4-1 _1[_6--]=(!_9?_7:-_7)}else{_1[_6--]=this.$bg[_2]} for(var i=_6;i>=_3;i--){_1[i]=null}};if(!isc.Browser.isIE||isc.Browser.version>7){isc.$bk=function isc__fillNumber(_1,_2,_3,_4,_5){_1[_3]=_2;if(_5){var _6=_3+_4;for(var i=_3+1;i<_6;++i){_1[i]=null}}}} isc.booleanValue=function isc_booleanValue(_1,_2){if(_1==null)return _2;if(isc.isA.String(_1))return _1!=isc.$ae&&_1!=isc.$af;return _1?true:false} isc.iscToLocaleString=function isc_iscToLocaleString(_1){if(_1!=null){return _1.iscToLocaleString?_1.iscToLocaleString():(_1.toLocaleString?_1.toLocaleString():(_1.toString?_1.toString():isc.emptyString+_1))} return isc.emptyString+_1} isc.$101g=["ToolSkin","ToolSkinNative"];isc.setCurrentSkin=function isc_setCurrentSkin(_1){if(isc.currentSkin&&!isc.$101g.contains(_1)){isc.logWarn("Detected loading of more than one skin - '"+_1+"' was loaded when '"+isc.currentSkin+"' was already loaded. See the QuickStart Guide for instructions on correctly changing the current skin")} isc.currentSkin=_1} isc.addGlobal("isA",{});isc.addGlobal("isAn",isc.isA);isc.addGlobal("is",isc.isA);isc.isA.Class="isA";isc.isA.isc=isc.isA;Function.$k=1;Array.$k=2;Date.$k=3;String.$k=4;Number.$k=5;Boolean.$k=6;RegExp.$k=7;Object.$k=8;Function.prototype.$k=1;isc.A=isc.isA;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.useTypeOf=isc.Browser.isMoz||isc.Browser.isSafari;isc.A.$bl="object";isc.A.$73x="String";isc.A.$a7="function";isc.A.$bm="text/xml";isc.A.$58k={SelectItem:true,Time:true};isc.B.push(isc.A.emptyString=function isc_isA_emptyString(_1){return isc.isA.String(_1)&&_1==isc.emptyString},isc.A.nonemptyString=function isc_isA_nonemptyString(_1){return isc.isA.String(_1)&&_1!=isc.emptyString},isc.A.Object=function isc_isA_Object(_1){if(_1==null)return false;if(isc.Browser.isIE&&typeof _1==this.$a7)return false;if(this.useTypeOf){var _2=typeof _1;return(_2=="object"||_2=="array"||_2=="date"||(isc.Browser.isMoz&&_2=="function"&&isc.isA.RegularExpression(_1)))} if(_1.constructor&&_1.constructor.$k!=null){var _3=_1.constructor.$k;if(_3==1){}else{return(_3==8||_3==7||_3==3||_3==2)}} if(_1.Class!=null&&_1.Class==this.$73x)return false;if(typeof _1==this.$bl){if(isc.Browser.isIE&&isc.isA.Function(_1))return false;else return true}else return false},isc.A.emptyObject=function isc_isA_emptyObject(_1){if(!isc.isAn.Object(_1))return false;for(var i in _1){return false} return true},isc.A.emptyArray=function isc_isA_emptyArray(_1){return isc.isAn.Array(_1)&&_1.length==0},isc.A.String=function isc_isA_String(_1){if(_1==null)return false;if(this.useTypeOf){return typeof _1=="string"||(_1.Class!=null&&_1.Class==this.$73x)} if(_1.constructor&&_1.constructor.$k!=null){return _1.constructor.$k==4} if(_1.Class!=null&&_1.Class==this.$73x)return true;return typeof _1=="string"},isc.A.Array=function isc_isA_Array(_1){if(_1==null)return false;if(this.useTypeOf&&typeof _1=="array")return true;if(typeof _1==this.$a7)return false;if(_1.constructor&&_1.constructor.$k!=null){return _1.constructor.$k==2} if(isc.Browser.isSafari){var _2=""+_1.splice;return(_2=="function splice() {\n [native code]\n}"||_2=="(Internal function)")} return""+_1.constructor==""+Array},isc.A.Function=function isc_isA_Function(_1){if(_1==null)return false;if(isc.Browser.isIE&&typeof _1==this.$a7)return true;if(isc.Browser.isIE&&((_1==window)||(_1.document!=null&&(_1.toString!=null)&&_1.toString().contains("Window")))) {return false} var _2=_1.constructor;if(_2&&_2.$k!=null){if(_2.$k!=1)return false;if(_2===Function)return true} return isc.Browser.isIE?(isc.emptyString+_1.constructor==Function.toString()):(typeof _1==this.$a7)},isc.A.Number=function isc_isA_Number(_1){if(_1==null)return false;if(this.useTypeOf&&typeof _1=="number"){return!isNaN(_1)&&_1!=Number.POSITIVE_INFINITY&&_1!=Number.NEGATIVE_INFINITY} if(_1.constructor&&_1.constructor.$k!=null){if(_1.constructor.$k!=5)return false}else{if(typeof _1!="number")return false} return!isNaN(_1)&&_1!=Number.POSITIVE_INFINITY&&_1!=Number.NEGATIVE_INFINITY},isc.A.SpecialNumber=function isc_isA_SpecialNumber(_1){if(_1==null)return false;if(_1.constructor&&_1.constructor.$k!=null){if(_1.constructor.$k!=5)return false}else{if(typeof _1!="number")return false} return(isNaN(_1)||_1==Number.POSITIVE_INFINITY||_1==Number.NEGATIVE_INFINITY)},isc.A.Boolean=function isc_isA_Boolean(_1){if(_1==null)return false;if(_1.constructor&&_1.constructor.$k!=null){return _1.constructor.$k==6} return typeof _1=="boolean"},isc.A.Date=function isc_isA_Date(_1){if(_1==null)return false;if(_1.constructor&&_1.constructor.$k!=null){return _1.constructor.$k==3} return(""+_1.constructor)==(""+Date)&&_1.getDate&&isc.isA.Number(_1.getDate())},isc.A.RegularExpression=function isc_isA_RegularExpression(_1){if(_1==null)return false;if(_1.constructor&&_1.constructor.$k!=null){return _1.constructor.$k==7} return(""+_1.constructor)==(""+RegExp)},isc.A.XMLNode=function isc_isA_XMLNode(_1){if(_1==null)return false;if(isc.Browser.isIE){return _1.specified!=null&&_1.parsed!=null&&_1.nodeType!=null&&_1.hasChildNodes!=null} var _2=_1.ownerDocument;if(_2==null)return false;return _2.contentType==this.$bm},isc.A.AlphaChar=function isc_isA_AlphaChar(_1){var _2=_1.charCodeAt(0);return((_2>=65&&_2<=90)||(_2>=97&&_2<=122))},isc.A.NumChar=function isc_isA_NumChar(_1){var _2=_1.charCodeAt(0) return(_2>=48&&_2<=57)},isc.A.AlphaNumericChar=function isc_isA_AlphaNumericChar(_1){return(isc.isA.AlphaChar(_1)||isc.isA.NumChar(_1))},isc.A.WhitespaceChar=function isc_isA_WhitespaceChar(_1){var _2=_1.charCodeAt(0) return(_2>=0&&_2<=32)},isc.A.color=function isc_isA_color(_1){if(!isc.isA.String(_1))return false;if(!this.$bn){this.$bn=new RegExp("^(#([\\dA-F]{2}){3}|rgb\\((\\s*[\\d]{1,3}\\s*,\\s*){2}\\s*[\\d]{1,3}\\s*\\)|[a-z]+)$","i")} return this.$bn.test(_1)},isc.A.ResultSet=function isc_isA_ResultSet(_1){return false},isc.A.ResultTree=function isc_isA_ResultTree(_1){return false},isc.A.SelectItem=function isc_isA_SelectItem(_1){if(!_1||!isc.isA.FormItem(_1))return false;var _2=_1.getClass();return(_2==isc.SelectItem||_2==isc.NativeSelectItem)},isc.A.SelectOtherItem=function isc_isA_SelectOtherItem(_1){if(!_1||!isc.isA.FormItem(_1))return false;var _2=_1.getClass();return((_2==isc.SelectItem||_2==isc.NativeSelectItem)&&_1.isSelectOther)},isc.A.Time=function isc_isA_Time(_1){return isc.isA.Date(_1)});isc.B._maxIndex=isc.C+24;if(Array.isArray){isc.A=isc.isA;isc.A.Array=Array.isArray} isc.addGlobal("ClassFactory",{});isc.ClassFactory.Class="ClassFactory";isc.A=isc.isA;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.Instance=function isc_isA_Instance(_1){return(_1!=null&&_1.$76y!=null)},isc.A.ClassObject=function isc_isA_ClassObject(_1){return(_1!=null&&_1.$bp==true)},isc.A.Interface=function isc_isA_Interface(_1){return(_1!=null&&_1.$a5==true)},isc.A.InstancePrototype=function isc_isA_InstancePrototype(_1){return(isc.isAn.Instance(_1)&&_1.$76y==_1)});isc.B._maxIndex=isc.C+4;isc.isA.instanceMethodsAdded=true;isc.A=isc.ClassFactory;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$162b="Set";isc.A.$bq="Window";isc.A.$br="Selection";isc.A.$136h="DataView";isc.A.$136p={};isc.A.$1368="\nThis conflict would be avoided by disabling ISC Simple Names mode. See documentation for further information.";isc.A.$f="isc.";isc.A.$bs={};isc.A._reservedWords={toolbar:true,parent:true,window:true,top:true,opener:true,event:true};isc.A._$isc_OID_="isc_OID_";isc.A._$isc_="isc_";isc.A.$bv="_";isc.A.$bw=[];isc.A.$75m={};isc.A.reuseGlobalIDs=true;isc.A.globalIDClassPoolSize=1000;isc.A.$63v={};isc.A.$bx=0;isc.A._$isc_="isc_";isc.A.$by=[null,"_",null];isc.A.reuseDOMIDs=false;isc.A.DOMIDPoolSize=10000;isc.A.$63w=[];isc.A.$bz=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];isc.A.$b0=[];isc.A.$100p="initInterface";isc.A.$101h="destroyInterface";isc.A.$b1="a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p";isc.B.push(isc.A.defineClass=function isc_ClassFactory_defineClass(_1,_2,_3,_4){return this.$b2(_1,_2,_3,null,_4)},isc.A.overwriteClass=function isc_ClassFactory_overwriteClass(_1,_2,_3,_4){return this.$b2(_1,_2,_3,null,_4,true)},isc.A.defineInterface=function isc_ClassFactory_defineInterface(_1,_2){return this.$b2(_1,_2,null,true)},isc.A.defineRootClass=function isc_ClassFactory_defineRootClass(_1){return this.$b3(_1,null)},isc.A.$b2=function isc_ClassFactory__defineNonRootClass(_1,_2,_3,_4,_5,_6){_2=(_2||isc.ClassFactory.defaultSuperClass);if(!_2){isc.Log.logWarn("isc.ClassFactory.defineClass("+_1+") called with null superClass and no ClassFactory.defaultRootClass is defined.");return null} isc.overridingFrameworkClass=isc.isA.ClassObject(_2)&&_2.isFrameworkClass;return this.$b3(_1,_2,_3,_4,_5,_6)},isc.A.$137e=function isc_ClassFactory__installIgnoredGlobalOverrides(){var _1=isc.Browser,_2=this.$136p;if(_1.isChrome||_1.isIE||_1.isMoz||_1.isSafari){_2[this.$162b]=true;_2[this.$bq]=true;_2[this.$br]=true;_2[this.$136h]=true}},isc.A.$b3=function isc_ClassFactory__defineClass(_1,_2,_3,_4,_5,_6){_2=this.getClass(_2);var _7=(isc.definingFramework==true||isc.overridingFrameworkClass==true);if(!_7&&_2&&_2.$1226&&!isc.isVisualBuilderSDK){var _8=!!(isc.ClassFactory.defaultSuperClass);var _9="The framework class "+_2.getClassName()+" is only available for subclassing if isc.licenseType is \"Enterprise\" or \"Eval\". "+(_8?"Continuing with the default super class.":"Returning null as there is no ClassFactory.defaultSuperClass specified.");isc.logWarn(_9);if(!_2.$1228){_2.$1228=true;isc.warn(_9)} if(_8){_2=this.getClass(isc.ClassFactory.defaultSuperClass)}else{return null}} var _10,_11,_12=this.$136p[_1],_13=(isc.$a&&!_5);_10=isc[_1];if(_10!=null)_11=true else if(_13&&!_12){_10=window[_1]} if(_10!=null&&_1!="IButton"&&_6!=true) {var _14="New Class ID: '"+_1+"' collides with ID of existing "+(isc.isA&&isc.isA.Function(isc.isA.Class)&&isc.isA.Class(_10)?"Class object '":"object with value '")+_10+"'. Existing object will be replaced.";if(!_11)_14+=this.$1368;if(window.isc.Log)isc.Log.logWarn(_14)} var _15=(_2?new _2.$b4.$b5():{});var _16=this.$b6(_2);_15.$b5=this.$b7(_15);_16.Class=_1;_16.$bp=true;if(_7)_16.isFrameworkClass=true;else _16.isFrameworkClass=false;if(!_16.isFrameworkClass){var _17=_2;while(_17&&!_17.isFrameworkClass){_17=_17.getSuperClass()} if(_17)_16.$75y=_17.Class} if(!_16.$75y)_16.$75y=_16.Class;_16.$a5=_15.$a5=!!_4;_16.$b8=_2;_16.$b4=_15;_15.Class=_1;_15.$b9=_16;_15.$76y=_15;_15.isFrameworkClass=_16.isFrameworkClass;_15.$75y=_16.$75y;isc[_1]=_16;if(_13){if(_12){var _18=this.tryBindingGlobalID(window,_1,_16);if(!_18&&window.isc.Log){isc.Log.logWarn("We expected to override global "+_1+" without any trouble, but were unable to replace it."+this.$1368)}}else window[_1]=_16} this.classList[this.classList.length]=_1 if(!(isc.isA.$58k[_1]&&isc.isA[_1])){isc.isA[_1]=this.makeIsAFunc(_1)} if(_3!=null){if(!isc.isAn.Array(_3))_3=[_3];for(var i=0;i<_3.length;i++){this.mixInInterface(_1,_3[i])}} return _16},isc.A.makeIsAFunc=function isc_ClassFactory_makeIsAFunc(_1){if(this.isFirefox2==null){this.isFirefox2=(isc.Browser.isFirefox&&isc.Browser.geckoVersion>=20061010)} if(this.isFirefox2){return function(_2){if(_2==null||_2.isA==null||_2.isA==isc.isA)return false;return _2.isA(_1)}}else{return function(_2){if(_2==null||_2.isA==null||_2.isA==isc.isA){return false} return _2.isA(isc[_1])}}},isc.A.$b6=function isc_ClassFactory__makeSubClass(_1){if(!_1)return{};var _2=_1.$b8,_3=_1.$ca;if(! (_3&&(_2==null||_3!==_2.$ca))) {_3=_1.$ca=this.$b7(_1)} return new _3()},isc.A.getClass=function isc_ClassFactory_getClass(_1,_2){if(isc.isA.String(_1)){var _3=isc[_1];if(_3){if(isc.isA.ClassObject(_3))return _3;if(isc.isA.SGWTFactoryObject&&isc.isA.SGWTFactoryObject(_3))return _3}} if(isc.isA.ClassObject(_1))return _1;if(isc.isA.SGWTFactoryObject&&isc.isA.SGWTFactoryObject(_1))return _1;if(isc.isAn.Instance(_1))return _1.$b9;if(isc.Log&&_2){isc.Log.logWarn("ClassFactory.getClass() couldn't find class: "+_1+"; defined classes are: "+this.classList.sort())} return null},isc.A.newInstance=function isc_ClassFactory_newInstance(_1,_2,_3,_4,_5,_6){var _7=this.getClass(_1);if(_7==null&&isc.isAn.Object(_1)){var _8;for(var i=0;i0){var _3=_2[_2.length-1];_2.length=_2.length-1;return _3} var _4;if(this.$75m[_1]==null)this.$75m[_1]=0;_4=this.$75m[_1]++;var _5=this.$bw;_5[0]=this._$isc_;_5[1]=_1;_5[2]=this.$bv;isc.$bk(_5,_4,3,5);var _6=_5.join(isc.emptyString);return _6} return this._$isc_OID_+this.$cb++},isc.A.dereferenceGlobalID=function isc_ClassFactory_dereferenceGlobalID(_1){if(window[_1.ID]==_1){if(!isc.Browser.isIE||isc.Browser.isIE9){try{delete window[_1.ID]}catch(e){isc.logWarn("ClassFactory.dereferenceGlobalID(): Failed to delete the '"+_1.ID+"' global.")} if(window[_1.ID]!=null)window[_1.ID]=null}else{window[_1.ID]=null} if(_1._autoAssignedID&&(_1.AUTOIDClass!=null||_1.Class!=null)){this.releaseGlobalID(_1.AUTOIDClass||_1.Class,_1.ID)}}},isc.A.releaseGlobalID=function isc_ClassFactory_releaseGlobalID(_1,_2){if(!this.reuseGlobalIDs)return;var _3=this.$63v[_1];if(!_3)this.$63v[_1]=[_2];else if(_3.length<=this.globalIDClassPoolSize){if(!_3.contains(_2))_3[_3.length]=_2}},isc.A.releaseDOMID=function isc_ClassFactory_releaseDOMID(_1){if(!this.reuseDOMIDs||this.$63w.length>this.DOMIDPoolSize)return;this.$63w[this.$63w.length]=_1},isc.A.getDOMID=function isc_ClassFactory_getDOMID(_1,_2){if(!isc.$e||!_1||!_2){var _3=this.$63w.length if(_3>0){var _1=this.$63w[_3-1];this.$63w.length=_3-1;return _1} var _4=this.$bx++;return this.$cc(_4,this._$isc_)} this.$by[0]=_1;this.$by[2]=_2;return this.$by.join(isc.emptyString)},isc.A.$cc=function isc_ClassFactory__convertToBase36(_1,_2){var _3=this.$bz,_4=this.$b0;_4.length=0;if(_2)_4[0]=_2;var _5=3;if(_1>46655){while(Math.pow(36,_5)<=_1)_5+=1} while(_1>=36){var _6=_1%36;_4[_5-(_2?0:1)]=_3[_6];_5-=1;_1=Math.floor(_1/36)} _4[_5-(_2?0:1)]=_3[_1];return _4.join(isc.emptyString)},isc.A.mixInInterface=function isc_ClassFactory_mixInInterface(_1,_2){var _3=this.getClass(_2),_4=this.getClass(_1);if(!_3||!_4)return null;if(!_3.$a5){isc.Log.logWarn("ClassFactory.mixInInterface asked to mixin a class which was not declared as an Interface: "+_2+" onto "+_1);return} if(!_4.$cd)_4.$cd=[];else _4.$cd=_4.$cd.duplicate();while(_3){this.$ce(_3,_4,true);this.$ce(_3,_4);_4.$cd[_4.$cd.length]=_2;_3=_3.getSuperClass();if(_3&&!_3.$a5)break}},isc.A.$ce=function isc_ClassFactory__mixInProperties(_1,_2,_3){var _4,_5=_2;if(_3){_4=isc.$a3[_1.Class]}else{_4=isc.$a2[_1.Class];_1=_1.getPrototype();_2=_2.getPrototype()} if(_4==null)return;for(var i=0;i<_4.length;i++){var _7=_4[i];if(_2[_7]!=null)continue;var _8=_1[_7];if(isc.isA.String(_8)&&_8==this.TARGET_IMPLEMENTS){var _9=(_3?"Class":"Instance")+" method "+_7+" of Interface "+_1.Class+" must be implemented by class "+_2.Class;_2[_7]=function(){this.logError(_9)}}else if(_7==this.$100p&&!_3){if(_5.$100q==null)_5.$100q=[];_5.$100q[_5.$100q.length]=_8}else if(_7==this.$101h&&!_3){if(_5.$101i==null)_5.$101i=[];_5.$101i[_5.$101i.length]=_8}else{_2[_7]=_8}}},isc.A.makePassthroughMethods=function isc_ClassFactory_makePassthroughMethods(_1,_2,_3,_4,_5){if(!_2)_2="parentElement";var _6;if(!_3){_6=this.$cf;if(_6==null){_6=this.$cf=["return this.",,".",,"("+this.$b1+")"]}}else{_6=this.$89q;if(_6==null){_6=this.$89q=["if(this.",,"==null){\n",,"return}\n",,"return this.",,".",,"("+this.$b1+")"]}} var _7={};for(var i=0;i<_1.length;i++){var _9=_1[i];if(_3){_6[1]=_2;if(_4!=null){var _10={methodName:_9,propName:_2};var _11=_4.evalDynamicString(this,_10);_6[3]="isc.logWarn(\""+_11+"\");"} if(_5!=null){_6[5]="this."+_2+"."+_5+"=this."+_5+";\n"} _6[7]=_2;_6[9]=_9}else{_6[1]=_2;_6[3]=_9} _7[_9]=isc.$aq(this.$b1,_6.join(isc.emptyString))} return _7},isc.A.writePassthroughFunctions=function isc_ClassFactory_writePassthroughFunctions(_1,_2,_3){var _4=this.makePassthroughMethods(_3,_2);_1.addMethods(_4)});isc.B._maxIndex=isc.C+25;isc.A=isc.ClassFactory;isc.A.TARGET_IMPLEMENTS="TARGET_IMPLEMENTS";isc.A.$cb=0;isc.A.classList=[];isc.defineClass=function(_1,_2,_3,_4){return isc.ClassFactory.defineClass(_1,_2,_3,_4)} isc.overwriteClass=function(_1,_2,_3,_4){return isc.ClassFactory.overwriteClass(_1,_2,_3,_4)} isc.defineInterface=function(_1,_2){return isc.ClassFactory.defineInterface(_1,_2)} isc.defer=function(_1){var _2=isc.ClassFactory.getClass(isc.ClassFactory.classList.last()),_3=_2.$cg;isc.Log.logDebug("deferred code being placed on class: "+_2);if(!_3)_2.$cg=[_1];else _3.add(_1)} isc.ClassFactory.$137e();if(!isc.Browser.isSafari){isc.$ch=window;isc.$ci=window.document} if(window.isc_enableCrossWindowCallbacks&&isc.Browser.isIE){isc.enableCrossWindowCallbacks=true;Object.$ch=window} isc.ClassFactory.defineRootClass('Class');isc.ClassFactory.defaultSuperClass=isc.Class;isc.A=isc.Class;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.addClassMethods=function isc_Class_addClassMethods(){for(var i=0;i"];isc.A.$ck={};isc.A.fireOnPauseDelay=200;isc.A.$cl="$cm";isc.A.$cn={};isc.A.$co={};isc.A.useFastEvalWithVars=isc.Browser.isMoz&&isc.Browser.geckoVersion>=20061010;isc.A.$cp="ID";isc.A.getWindow=(isc.Browser.isSafari?function(){return window}:function(){return this.ns.$ch});isc.A.getDocument=(isc.Browser.isSafari?function(){return window.document}:function(){return this.ns.$ci});isc.A.$123z={};isc.B.push(isc.A.create=function isc_c_Class_create(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){var _14=this.createRaw();if(_14!=null){_14=_14.completeCreation(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)} return _14},isc.A.createRaw=function isc_c_Class_createRaw(){if(this.$1226&&!isc.isVisualBuilderSDK){var _1="Attempt to create "+this.getClassName()+". This class requires the Dashboards & Tools framework which is only included with Enterprise licenses.";isc.logWarn(_1);if(!this.$1228){this.$1228=true;isc.warn(_1)} return null} if(!this.initialized())this.init();var _2=new this.$b4.$b5();_2.ns=this.ns;return _2},isc.A.init=function isc_c_Class_init(){var _1=this.getSuperClass();if(_1!=null&&!_1.initialized())_1.init();var _2=this.$cg;if(_2!=null){this.$cg=null;_2.map(function(_3){isc.eval(_3)})} if(this.autoDupMethods){isc.Class.duplicateMethods(this,this.autoDupMethods)} this.$cj[this.Class]=true},isc.A.modifyFrameworkStart=function isc_c_Class_modifyFrameworkStart(){isc.definingFramework=true},isc.A.modifyFrameworkDone=function isc_c_Class_modifyFrameworkDone(){isc.definingFramework=false},isc.A.duplicateMethods=function isc_c_Class_duplicateMethods(_1,_2){if(_1.Class&&this.dontDup[_1.Class])return;for(var i=0;i<_2.length;i++){var _4=_2[i];this.duplicateMethod(_4,_1)}},isc.A.duplicateMethod=function(methodName,target){if(!target)target=this;var method=target[methodName];if(method==null)return;if(method.$761){while(method.$761)method=method.$761} var dup;if(method.toSource==null){dup=eval("dup = "+method.toString())}else{dup=eval(method.toSource())} if(!method.$dx)isc.Func.getName(method,true);dup.$dx=method.$dx+"[d]";dup.$761=method;target[methodName]=dup;return dup},isc.A.$1361=function isc_c_Class__createUnsupportedMethodImpl(_1,_2){var _3={};var _4=function(){var _5=this.getClassName();if(_3[_5])return;var _6=_1.replace(/(\$?)\$(class|method)/g,function(_8,_9,_10,_11,_1){if(_9==="$")return"$"+_10;else if(_10==="class")return _5;else if(_10==="method")return _2});this.logWarn(_6);_3[_5]=true};_4.$1362=true;var _7=this.$b4[_2];if(isc.isA.Function(_7)){_4.$123y=isc.Func.getArgString(_7)} return _4},isc.A.markUnsupportedMethods=function isc_c_Class_markUnsupportedMethods(_1,_2){if(_1==null)_1="$class does not support the $method() method.";for(var i=0;i<_2.length;++i){var _4=_2[i];this.$b4[_4]=this.$1361(_1,_4)}},isc.A.isMethodSupported=function isc_c_Class_isMethodSupported(_1){var _2=this.$b4[_1];return _2!=null&&!_2.$1362},isc.A.isMethodUnsupported=function isc_c_Class_isMethodUnsupported(_1){return!this.isMethodSupported(_1)},isc.A.initialized=function isc_c_Class_initialized(){return this.$cj[this.Class]},isc.A.getClassName=function isc_c_Class_getClassName(){return this.Class},isc.A.getScClassName=function isc_c_Class_getScClassName(){return this.isFrameworkClass?this.Class:this.$75y},isc.A.getSuperClass=function isc_c_Class_getSuperClass(){return this.$b8},isc.A.getPrototype=function isc_c_Class_getPrototype(){return this.$b4},isc.A.addMethods=function isc_c_Class_addMethods(){if(this.$a5){this.logWarn("Use addInterfaceMethods() to add methods to interface "+this)} for(var i=0;ithis.evalFrameResetInterval||this.evalFrame.frame==null){this.resetEvalFrame()} if(this.evalFrame.frame==null)this.logInfo("Temporarily unable to evaluate in a HiddenFrame for domain "+document.domain+"; falling back to a simpler evaluate that may leak memory");return this.evalFrame.frame==null?this.evaluate(_1,_2):this.evalFrame.doEval(_1,_2)},isc.A.makeEvalFrame=function isc_c_Class_makeEvalFrame(){this.evalFrame=isc.HiddenFrame.create(this.evalFrameDefaults);this.$104k=document.domain;this.evalFrame.draw();if(document.domain==location.hostname&&this.evalFrame.getFrameDocument()==null) {var _1=isc.addProperties({location:isc.Page.getURL("[HELPERS]empty.html")},this.evalFrameDefaults);this.evalFrame=isc.HiddenFrame.create(_1);this.evalFrame.draw()}},isc.A.resetEvalFrame=function isc_c_Class_resetEvalFrame(){if(this.logIsInfoEnabled("iframeEval")){this.logInfo("Using iframe for evaluation - resetting iframe.","iframeEval")} this.evalFrame.evalCount=0;var _1=this.evalFrame.frame=this.evalFrame.getFrameDocument();if(_1!=null){_1.open();var _2=this.evalFrame.$104k?"document.domain = '"+this.evalFrame.$104k+"';":"";_1.write(this.evalFrameHTML[0]+_2+this.evalFrameHTML[1]);_1.close()}else{this.evalFrame.$104k=document.domain}},isc.A.addClassProperties=function isc_c_Class_addClassProperties(){isc.addPropertyList(this,arguments);return this},isc.A.markAsFrameworkClass=function isc_c_Class_markAsFrameworkClass(){this.isFrameworkClass=true;this.$b4.isFrameworkClass=true;this.$75y=this.Class;this.$b4.$75y=this.Class},isc.A.addProperties=function isc_c_Class_addProperties(){if(this.$a5){this.logWarn("Use addInterfaceProperties() to add methods to interface "+this)} isc.addPropertyList(this.$b4,arguments,true);return this},isc.A.addPropertyList=function isc_c_Class_addPropertyList(_1){isc.addPropertyList(this.$b4,_1,true);return this},isc.A.changeDefaults=function isc_c_Class_changeDefaults(_1,_2){var _3=this.$cr(_1),_4=false;var _5=this.getSuperClass();if(_5){var _6=_5.$cr(_1);if(_6!=null&&_6==_3){_3=isc.addProperties({},_3);_4=true}} if(_3==null){_3=_2||{};_4=true}else{isc.addProperties(_3,_2)} if(_4){var _7={};_7[_1]=_3;this.addProperties(_7)}},isc.A.$cr=function isc_c_Class__getDefaults(_1){var _2=this.$ck[this.Class],_3=this.getInstanceProperty(_1,true)||(_2?_2[_1]:null);return _3},isc.A.replaceDefaults=function isc_c_Class_replaceDefaults(_1,_2){this.changeDefaults(_1,_2)},isc.A.setProperties=function isc_c_Class_setProperties(){var _1;if(arguments.length==1){_1=arguments[0]}else{_1={};for(var i=0;i=(this.$c9-_7)) {return} if(this.$da)isc.Timer.clearTimeout(this.$da);this.$da=this.delayCall(this.$cl,null,_3);this.$c9=_3},isc.A.$cm=function isc_c_Class__fireActionsOnPause(){this.$926=true;var _1;var _2=isc.timeStamp()-this.$c8,_1;for(var _3 in this.$cn){var _4=this.$cn[_3];var _5=isc.getKeys(_4);for(var i=0;i<_5.length;i++){var _7=_5[i];var _8=_4[_7];if(_8.fireTime<=_2){delete this.$cn[_3][_7];this.fireCallback(_8.callback,null,null,_8.target)}else{_8.fireTime-=_2;if(_1==null)_1=_8.fireTime;else _1=Math.min(_1,_8.fireTime)}} if(isc.isAn.emptyObject(this.$cn[_3]))delete this.$cn[_3]} if(_1!=null){this.$c9=_1;this.$c8=isc.timeStamp();this.delayCall(this.$cl,null,_1)}else{this.$c9=null;this.$c8=null} this.$926=null},isc.A.evalWithVars=function isc_c_Class_evalWithVars(_1,_2,_3){if(!_3)_3=window;if(this.useFastEvalWithVars){return this.evaluate.call(_3,_1,_2)} var _4="_1";while(_2&&isc.propertyDefined(_2,_4)){_4+="1"} var _5=[_4];var _6=[_1];if(_2){for(var _7 in _2){_5.push(_7);_6.push(_2[_7])}} var _8=isc.$aq(_5.join(","),"return eval("+_4+")");return _8.apply(_3,_6)},isc.A.evalWithCapture=function isc_c_Class_evalWithCapture(_1,_2,_3){var _4=isc.globalsSnapshot=[];this.evalWithVars(_1,_2,_3);isc.globalsSnapshot=null;return _4},isc.A.destroyGlobals=function isc_c_Class_destroyGlobals(_1){if(_1==null)return;if(!isc.isAn.Array(_1))_1=[_1];for(var i=0;i<_1.length;i++){var _3=_1[i];var _4=window[_3];if(_4){if(isc.isA.Function(_4.destroy))_4.destroy();else window[_3]=null}}},isc.A.globalEvalWithCapture=function isc_c_Class_globalEvalWithCapture(_1,_2,_3,_4){if(_4==null)_4=true;this.$db=_3;this.$dc=_2;if(!_2){this.startGlobalsCapture(null,isc.keepGlobals===undefined?null:isc.keepGlobals)}else{this.startGlobalsCapture()} var _5;try{if(isc.Browser.isIE){if(window.execScript!=null){window.execScript(_1,"javascript")}else{window.eval(_1)}}else{isc.Class.evaluate(_1,null,true)}}catch(e){if(_4)isc.Log.$am(e,null,null,null,"Problem during global eval()");_5=e} return this.endGlobalsCapture(_5)},isc.A.startGlobalsCapture=function isc_c_Class_startGlobalsCapture(_1,_2){if(isc.$141t){isc.logWarn("startGlobalsCapture() called again without endGlobalsCapture being called!");return} isc.$141t=true;if(!this.$dc){if(_2===undefined){isc.keepGlobals=[]}else{isc.keepGlobals=_2}} var _3,_4=this.$db?this.$db:_1;this.$df={};if(_4){for(var _5 in _4){var _6=window[_5];if(_6!==_3)this.$df[_5]=_6;window[_5]=_4[_5]}} isc.autoAssignedTempGlobals={};isc.globalsSnapshot=isc.keepGlobals?{}:[]},isc.A.$147d=function isc_c_Class__globalsCaptureRestoreGlobal(_1,_2,_3){var _4=_3[_1];if(_4){delete _3[_1];isc.ClassFactory.releaseGlobalID(_4,_1)} window[_1]=_2[_1]},isc.A.endGlobalsCapture=function isc_c_Class_endGlobalsCapture(_1,_2,_3){if(!isc.$141t){isc.logWarn("endGlobalsCapture() called before having a startGlobalsCapture() call!");return{globals:null,error:"endGlobalsCapture() called before having a startGlobalsCapture() call!"}} if(_1!=null&&_2)isc.Log.$am(_1,null,null,null,"Problem during global eval()");var _4,_5=this.$db;if(_5){for(var _6 in _5){var _7=this.$df[_6];if(_7!==_4)window[_6]=this.$df[_6];else window[_6]=_4}} var _8=this.$dc,_9=isc.globalsSnapshot,_10=isc.autoAssignedTempGlobals;isc.globalsSnapshot=this.$dc=this.$db=this.$df=window.$98f=isc.autoAssignedTempGlobals=null;isc.$141t=null;this.fireCallback(_8,"globals,error,idsToFree",[_9,_1,_10]);if(!_8){var _11=isc.keepGlobals;if(_3===undefined||_3){if(_11){for(var _12 in _9){if(_11.contains(_12)){continue} this.$147d(_12,_9,_10)}}else{isc.logWarn("Cannot restore globals in endGlobalsCapture because non-keepGlobals mode was also required by caller")}} isc.keepGlobals=null} return{globals:_9,error:_1}},isc.A.globalEvalAndRestore=function isc_c_Class_globalEvalAndRestore(_1,_2,_3,_4,_5,_6){if(_2==null)_2=[];isc.keepGlobals=_2;return this.globalEvalWithCapture(_1,function(_11,_12,_13){isc.keepGlobals=null;var _7={},_8=isc.Canvas.$112q(_11);for(var _9 in _11){if(_2.contains(_9))continue;_7[_9]=window[_9];if(_6){var _10=window[_9];if(_10&&isc.isA.Canvas(_10)){if(_8){if(!_8.$112o){_8.$112o={}} _8.$112o[_9]=_10;_10.setProperty("$112p",_8)}else{if(_10.topElement||_10.masterElement){isc.logWarn("Cannot find top level of "+_10)}}}} isc.Class.$147d(_9,_11,_13)} isc.Class.fireCallback(_3,"globals,error,suppressedGlobals",[_11,_12,_7])},_4,_5)},isc.A.$dg=function isc_c_Class__notifyFunctionComplete(_1,_2,_3){_3.$dh-=1;if(_3.$dh)return;for(var i=0;i<_3.length;i++){var q=_3[i];if(q.$di){_3.removeItem(i);i--;continue} if(q.$dj){delete q.$dj}} if(_3.length==0){var _6=isc.$ah+_2;_1[_2]=_1[_6];delete _1[_6];delete _1.$ba[_2]}},isc.A.getArrayItem=function isc_c_Class_getArrayItem(_1,_2,_3){if(_2==null)return null;if(isc.isA.Number(_1))return _2[_1];if(isc.isAn.Object(_1))return _1;if(isc.isA.String(_1))return _2.find(_3||this.$cp,_1);return null},isc.A.getArrayItemIndex=function isc_c_Class_getArrayItemIndex(_1,_2,_3){if(isc.isA.Number(_1))return _1;var _4=isc.Class.getArrayItem(_1,_2,_3);return _2.indexOf(_4)},isc.A.getDocumentBody=function isc_c_Class_getDocumentBody(_1){var _2=(!_1&&isc.Browser.isIE&&isc.Browser.isStrict);var _3=(_2?this.ns.$dl:this.ns.$dm);if(_3!=null)return _3;var _4=this.getDocument();if(_2){this.ns.$dl=_4.documentElement;return this.ns.$dl} if(isc.Browser.isIE){_3=_4.body}else{if(_4.body!=null)_3=_4.body;else{var _5=_4.documentElement.namespaceURI;_3=_4.getElementsByTagNameNS(_5,"body")[0];if(_3==null){_3=_4.documentElement.childNodes[1];if(_3!=null&&_3.tagName!="body")_3=null} if(!_3)return null}} this.ns.$dm=_3;return _3});isc.evalBoundary;isc.B.push(isc.A.getActiveElement=function isc_c_Class_getActiveElement(){try{return this.getDocument().activeElement}catch(e){this.logWarn("error accessing activeElement: "+e.message)} return null},isc.A.$dk=function isc_c_Class__makeNotifyFunction(_1){var _2=function observation(){if(isc.$cv)arguments.$cw=this;var _3=this[arguments.callee.$c1].apply(this,arguments);var _4=this.$ba[_1];if(!_4)return _3;_4.$dh=_4.$dh?_4.$dh+1:1;var q,_6;for(var i=0,_8=_4.length;i<_8;++i){q=_4[i];if(q.$dj)continue;_6=q.action;_6.$f0=q.target;_6.$1230=this;_6.$1233=_3;try{_6.apply(q.target,arguments)}finally{_6.$f0=null;_6.$1230=null;_6.$1233=null}} if(isc.Browser.isSafari){arguments.callee.$dv.Class.$dg(this,_1,_4)}else{isc.Class.$dg(this,_1,_4)} return _3};_2.$dw=true;_2.$dx=_1+"Observation";_2.$c1=isc.$ah+_1;if(isc.Browser.isSafari)_2.$dv=isc;return _2},isc.A.$1231=function isc_c_Class__makeThunkFunction(_1,_2){if(_1==null)_1=isc.$ad;var _3="var observer = arguments.callee.caller.$f0, it = observer, observed = this, returnVal = arguments.callee.caller.$1233;\n";_3+=_2;var _4=isc.Class.$123z[_1];if(_4==null)_4=isc.Class.$123z[_1]={};var _5=_4[_2];if(_5==null){_5=_4[_2]=isc.$aq(_1,_3);_5.$123y=_1} return function thunk(){_5.apply(arguments.callee.$1230,arguments)}},isc.A.$102q=function isc_c_Class__assert(_1,_2){if(!_1){throw(_2||"assertion failed")}});isc.B._maxIndex=isc.C+73;isc.A=isc.Class;isc.A.newInstance=isc.Class.create;isc.Class.ns=isc;isc.A=isc.ClassFactory;isc.A.ns=isc;isc.A.getWindow=isc.Class.getWindow;isc.A.getDocument=isc.Class.getDocument;isc.A=isc.Class.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.getWindow=(isc.Browser.isSafari?function(){return window}:function(){return this.ns.$ch});isc.A.getDocument=(isc.Browser.isSafari?function(){return window.document}:function(){return this.ns.$ci});isc.A.$dn="_autoMaker";isc.A.$58e="creator";isc.A.$do="show";isc.A.$dp="Constructor";isc.A.$dq="Defaults";isc.A.$dr="Properties";isc.A.$90j="spacer:";isc.A.map=isc.Class.map;isc.A.Super=isc.Class.Super;isc.A.$116f=isc.Class.$116f;isc.A.invokeSuper=isc.Class.invokeSuper;isc.A.$102q=isc.Class.$102q;isc.B.push(isc.A.init=function isc_Class_init(){},isc.A.destroy=function isc_Class_destroy(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){var _14=this.getClass();if(_14.$101i){for(var i=0;i<_14.$101i.length;i++){_14.$101i[i].call(this,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)}} var _16=this.__sgwtDestroy;if(_16){delete this.__sgwtDestroy;_16.apply(this)}},isc.A.completeCreation=function isc_Class_completeCreation(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){if(this.addPropertiesOnCreate!=false){if(isc.captureDefaults){isc.captureDefaults=false;var _14={type:this.Class,defaults:isc.addProperties({},_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)} if(!isc.capturedComponents)isc.capturedComponents=[];isc.capturedComponents.add(_14);if(_14.defaults.ID){isc.ClassFactory.addGlobalID(_14,_14.defaults.ID)} isc.captureDefaults=true;return _14} isc.addProperties(this,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)} var _15=this.getClass(),_16=_15.$769;if(_16!=null){for(var i=0;i<_16.length;i++){var _18=_16[i];if(this[_18]==_15.$b4[_18]){this[_18]=_15.cloneDupPropertyValue(_18,this[_18])}}} if(_15.$100q){for(var i=0;i<_15.$100q.length;i++){_15.$100q[i].call(this,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)}} this.init(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13);if(this.autoDupMethods){isc.Class.duplicateMethods(this,this.autoDupMethods)} return this},isc.A.duplicateMethod=function isc_Class_duplicateMethod(_1){isc.Class.duplicateMethod(_1,this)},isc.A.getUniqueProperties=function isc_Class_getUniqueProperties(_1){if(_1==null)_1={};var _2=this.getPrototype();for(var _3 in this){if(_3.startsWith("_"))continue;if(_3=="ns")continue;if(_3=="ID"&&this.ID.startsWith("isc_OID_"))continue;var _4=this[_3];if(isc.isA.Function(_4))continue;if(_4!=_2[_3]){_1[_3]=this[_3]}} return _1},isc.A.clone=function isc_Class_clone(){return this.getClass().create(this.getUniqueProperties())},isc.A.serialize=function isc_Class_serialize(_1){return isc.Comm.serialize(this,_1)},isc.A.xmlSerialize=function isc_Class_xmlSerialize(_1){return isc.Comm.xmlSerialize(this.getClassName(),this,_1)},isc.A.getSerializeableFields=function isc_Class_getSerializeableFields(_1,_2){var _3=isc.DS?isc.DS.getNearestSchema(this):null;var _4=this.getUniqueProperties();if(_3==null){this.logDebug("No schema available for class"+this.getClassName());return _4}else{this.logDebug("Constraining serializeable fields for class: "+this.getClassName()+" with schema : "+_3.ID)} var _5=isc.applyMask(_4,_3.getFields());_1=_1||[];_2=_2||[];_1.map(function(_7){delete _5[_7]});for(var i=0;i<_2.length;i++){_5[_2[i]]=this[_2[i]]} return _5},isc.A.getID=function isc_Class_getID(){return this.ID},isc.A.getClass=function isc_Class_getClass(){return this.$b9},isc.A.getSuperClass=function isc_Class_getSuperClass(){return this.$b9.$b8},isc.A.getClassName=function isc_Class_getClassName(){return this.getClass().getClassName()},isc.A.getScClassName=function isc_Class_getScClassName(){return this.getClass().getScClassName()},isc.A.getPrototype=function isc_Class_getPrototype(){return this.$76y},isc.A.getGlobalReference=function isc_Class_getGlobalReference(_1){if(typeof _1=="string")return this.evaluate(_1);return _1},isc.A.addMethods=function isc_Class_addMethods(){for(var i=0;i0){_8.argStr=_6}}else{var _8=_1.$ba[_2];for(var i=0,_10=_8.length;i<_10;i++){var q=_8[i];if(q.target==this){if(q.$di&&!q.$dj) {q.$di=false;q.$dj=true;q.action=_3;return true} this.logWarn("Observer: "+this+" is already observing method '"+_2+"' on object '"+_1+"', ignoring");return false}}} var _12=!!_8.$dh;var q={target:this,action:_3,$dj:_12};_8.add(q);var _13=isc.$ah+_2;if(_1[_13]==null){_1[_13]=_5}else if(!_1[_2].$dw){this.logWarn("Observation error: method "+_2+" is being observed on object "+_1+" but the function appears to have been directly overridden. This may lead to unexpected behavior - to avoid seeing this message in the future, ensure the addMethods() or addProperties() API is used to modify methods on live SmartClient instances, rather than simply reassigning the method name to a new function instance.");_1[_13]=_1[_2]} if(!_12&&!_1[_2].$dw){_1[_2]=isc.Class.$dk(_2)} return true},isc.A.ignore=function isc_Class_ignore(_1,_2){var _3;var _4=isc.$a9[_2];if(_4!==_3&&_1[_4])this.ignore(_1,_4);var _5=isc.$ah+_2;if(!_1[_5]||!_1.$ba)return false;var _6=_1.$ba[_2],_7=_6.$dh;var q;for(var i=0,_10=_6.length;i<_10;i++){q=_6[i];if(q.target==this){if(_7){q.$di=true}else{_6.removeAt(i)} break}} if(!_1[_2]||!_1[_2].$dw){this.logWarn("Observation error caught in ignore(): Method "+_2+" was being observed on object "+_1+" but the function appears to have been directly overridden. This may lead to unexpected behavior - to avoid seeing this message in the future, ensure the addMethods() or addProperties() API is used to modify methods on live SmartClient instances, rather than simply reassigning the method name to a new function instance.");_1[_5]=_1[_2]} if(_6.length==0){_1[_2]=_1[_5];delete _1[_5];delete _1.$ba[_2]} return true},isc.A.getObserversOf=function isc_Class_getObserversOf(_1){if(!this.$ba||!this.$ba[_1])return null;var _2=this.$ba[_1];for(var _3=[],i=0;i<_2.length;i++){_3[i]=(_2[i]?_2[i].target:null)} return _3},isc.A.isObserving=function isc_Class_isObserving(_1,_2){if(!_1.$ba)return false;var _3=_1.$ba[_2];if(!_3)return false;for(var i=0;i<_3.length;i++){if(_3[i].target==this)return true} return false},isc.A.convertToMethod=function isc_Class_convertToMethod(_1){return isc.Func.convertToMethod(this,_1)},isc.A.evaluate=function isc_Class_evaluate(_1,_2){return isc.Class.evaluate.apply(this,[_1,_2])},isc.A.fireCallback=function isc_Class_fireCallback(_1,_2,_3,_4){return this.getClass().fireCallback(_1,_2,_3,this,_4)},isc.A.delayCall=function isc_Class_delayCall(_1,_2,_3){return this.getClass().delayCall(_1,_2,_3,this)},isc.A.fireOnPause=function isc_Class_fireOnPause(_1,_2,_3){return this.getClass().fireOnPause(_1,_2,_3,this,this.getID())},isc.A.pendingActionOnPause=function isc_Class_pendingActionOnPause(_1){var _2=this.getClass().$cn[_1];return _2?!!_2[this.getID()]:false},isc.A.evalWithVars=function isc_Class_evalWithVars(_1,_2){return isc.Class.evalWithVars(_1,_2,this)},isc.A.getDocumentBody=function isc_Class_getDocumentBody(){return isc.Class.getDocumentBody()},isc.A.getActiveElement=function isc_Class_getActiveElement(){return isc.Class.getActiveElement()},isc.A.addAutoChildren=function isc_Class_addAutoChildren(_1,_2,_3){if(_1==null)return;if(!isc.isAn.Array(_1))_1=[_1];for(var i=0;i<_1.length;i++){var _5=_1[i];if(isc.isA.Canvas(_5)){_2=_2||this;this.$dy(_5,_2,_3);continue} this.addAutoChild(_5,null,null,_2,_3)}},isc.A.addAutoChild=function isc_Class_addAutoChild(_1,_2,_3,_4,_5){var _6=this[_1];if(isc.isAn.Instance(_6))return _6;if(isc.isAn.Object(_1)&&_1.autoChildName){_2=_1;_3=_2._constructor||_3;_1=_2.autoChildName} if(isc.isA.String(_6)&&window[_6]){this[_1]=window[_6];return this[_1]} if(_1!=null&&!this.shouldCreateChild(_1))return;var _7,_8=_1+this.$dn;if(_1!=null&&this[_8])_7=this[_8](_2);else{_7=this.createAutoChild(_1,_2,_3,true)} if(!_7)return;if(_7.$120w!==false)this[_1]=_7;this.$dz(_1,_7,_4,_5);return _7},isc.A.$dz=function isc_Class__addToParent(_1,_2,_3,_4){if(_3==null){_3=_2.autoParent||this.getAutoChildParent(_1)} if(isc.isA.String(_3)){if(_3==isc.Canvas.NONE){if(this.isDrawn())_2.draw();return} var _5=this[_3]||window[_3]||_3;if(!isc.isA.Canvas(_5)){this.logWarn("no valid parent could be found for String '"+_3+"'")}else _3=_5} if(!isc.isA.Canvas(_2)||!isc.isA.Canvas(_3))return;this.$dy(_2,_3,_4)},isc.A.$dy=function isc_Class__addAutoChildToParent(_1,_2,_3){if(_1.addAsPeer||_1.snapEdge)_2.addPeer(_1);else if(isc.isA.Layout(_2)&&!_1.addAsChild&&!_1.snapTo)_2.addMember(_1,_3);else if(isc.TileLayout&&isc.isA.TileLayout(_2)&&!_1.addAsChild&&!_1.snapTo)_2.addTile(_1,_3);else _2.addChild(_1)},isc.A.shouldCreateChild=function isc_Class_shouldCreateChild(_1){var _2=this.$do+_1.charAt(0).toUpperCase()+_1.substring(1);if(this[_2]!=null&&this[_2]==false)return false;var _3=this.$d0(_1);if(_3==null)return true;return(this.shouldCreateChild(_3))},isc.A.getAutoChildClass=function isc_Class_getAutoChildClass(_1,_2,_3,_4,_5){_4=_4||this.$d1(_1);var _6=this[_4];_5=_5||this.$543(_1);var _7=this[_5];return this[_1+this.$dp]||(_2?_2._constructor:null)||(_7?_7._constructor:null)||(_6?_6._constructor:null)||_3||isc.Canvas},isc.A.applyBaseDefaults=function isc_Class_applyBaseDefaults(_1,_2,_3){_1.autoDraw=false;_1._generated=true;_1.creator=this;var _4=this.creatorName;if(_4)_1[_4]=this;var _5;if(_3==null||_3.ID===_5){_1.ID=this.getID()+isc.$ag+_2;if(window[_1.ID]){_1.ID=_1.ID+isc.$ag+isc.ClassFactory.getNextGlobalID()}}},isc.A.getDynamicDefaults=function isc_Class_getDynamicDefaults(){},isc.A.$d1=function isc_Class__getDefaultsName(_1){var _2=isc.Class.$d2;if(!_2)isc.Class.$d2=_2={};if(_2[_1])return _2[_1];var _3=_1+this.$dq;if(this[_3])_2[_1]=_3;return _3},isc.A.$543=function isc_Class__getPropertiesName(_1){var _2=isc.Class.$544;if(!_2)isc.Class.$544=_2={};if(_2[_1])return _2[_1];var _3=_1+this.$dr;if(this[_3])_2[_1]=_3;return _3},isc.A.createAutoChild=function isc_Class_createAutoChild(_1,_2,_3,_4){if(isc.startsWith(_1,this.$90j)){var _5=_1.substring(this.$90j.length);var _6="width";if(this.orientation==isc.Layout.VERTICAL)_6="height";var _7={autoDraw:false,$120w:false};_7[_6]=_5;return isc.LayoutSpacer.create(_7)} var _8=this.getDynamicDefaults(_1);if(_8!=null&&_2!=null){_8=isc.addProperties({},_8,_2)}else{_8=_2||_8} var _9=this.$d1(_1),_10=this[_9],_11=this.$543(_1),_12=this[_11],_13=this.getAutoChildClass(_1,_8,_3,_9,_11),_14=isc.ClassFactory.getClass(_13);if(_14==null){this.logWarn("Unable to create autoChild '"+_1+"' of type '"+_13+"' - no such class in runtime.");if(isc.isA.String(_13)&&_13.contains(".")){this.logWarn("Did you make the SmartGWT class reflectable? See http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/docs/Reflection.html")} return null} _8=this.applyDuplicateAutoChildDefaults(_14,_9,_8);var _15=_14.createRaw();var _16=this.autoPassthroughs,_17,_18;if(_16){for(var _19 in _16){var _20=_16[_19];if(_1==_20&&this[_19]!==_18){_15[_19]=this[_19]}}} this.applyBaseDefaults(_15,_1,_2);isc.addProperties(_15,this.autoChildDefaults,_10,_17,_8);if(_4)this[_1]=_15;if(_15.autoConfigure)_15.autoConfigure(this,_1);if(this.configureAutoChild)this.configureAutoChild(_15,_1);isc.addProperties(_15,this[_11]);if(_14.$100q){for(var i=0;i<_14.$100q.length;i++){_14.$100q[i].call(_15)}} _15.init();_15=isc.SGWTFactory.extractFromConfigBlock(_15);if(_4)this[_1]=_15;if(!this.$542)this.$542={};var _22=_15.getID?_15.getID():null;if(_22!=null){if(!isc.isAn.Array(this.$542[_1])){if(this.$542[_1]!=null){isc.logWarn(this+".createAutoChild(): Creating auto child named:"+_1+" appears to be replacing autoChild with same name...")} this.$542[_1]=[_22]}else{this.$542[_1].add(_22)}} return _15},isc.A.applyDuplicateAutoChildDefaults=function isc_Class_applyDuplicateAutoChildDefaults(_1,_2,_3){var _4=_1.$769;if(_4&&_4.length>0){var _5=this[_2];if(_5!=null||this.autoChildDefaults!=null){for(var i=0;i<_4.length;i++){var _7=_4[i],_8;if(_5!=null&&_5[_7]!=null){if(_3==null)_3={};if(_3[_7]===_8){_3[_7]=_1.cloneDupPropertyValue(_7,_5[_7])}}else if(this.autoChildDefaults!=null&&this.autoChildDefaults[_7]!=null) {if(_3==null)_3={};if(_3[_7]===_8){_3[_7]=_1.cloneDupPropertyValue(_7,this.autoChildDefaults[_7])}}}}} return _3},isc.A.$d3=function isc_Class__completeCreationWithDefaults(_1,_2,_3){this.applyBaseDefaults(_2,_1,_3);var _4=this.$d1(_1),_5=this.$543(_1);var _6=_2.getClass();_3=this.applyDuplicateAutoChildDefaults(_6,_4,_3);_2.completeCreation(this.autoChildDefaults,this[_4],_3,this[_5])},isc.A.$d0=function isc_Class__getAutoChildParentName(_1){var _2=this.autoChildParentMap;if(_2)return _2[_1]},isc.A.getAutoChildParent=function isc_Class_getAutoChildParent(_1){var _2=this.$d0(_1);if(_2)return this[_2];return this},isc.A.setAutoChild=function isc_Class_setAutoChild(_1,_2){if(!this.shouldCreateChild(_1)){if(this[_1])this[_1].destroy();delete this[_1]}else{if(isc.isA.Canvas(_2)){var _3=_2;if(this[_1])this[_1].destroy();this[_1]=_3;this.$dz(_1,_3);return} return this.addAutoChild(_1,_2)}});isc.B._maxIndex=isc.C+56;isc.Class.toString=function(){return"[Class "+this.Class+"]"} isc.Class.getPrototype().toString=function(){return"["+this.Class+" ID:"+this.ID+"]"} isc.A=isc.Class;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.ns=isc;isc.A._stringMethodRegistry={};isc.A.useChromeAPIToPrepareStackTrace=true;isc.B.push(isc.A.NO_OP=function isc_c_Class_NO_OP(){},isc.A.RET_TRUE=function isc_c_Class_RET_TRUE(){return true});isc.B._maxIndex=isc.C+2;isc.A=isc.ClassFactory;isc.A.observe=isc.Class.getPrototype().observe;isc.A.ignore=isc.Class.getPrototype().ignore;isc.eval=function(_1,_2){return isc.Class.evaluate(_1,null,false,_2)} Function.prototype.Class="Function";isc.ClassFactory.defineClass("Func");isc.A=isc.Func;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$d5=new RegExp("function\\s+([\\w$]+)\\s*\\(");isc.B.push(isc.A.parseFunctionName=function isc_c_Func_parseFunctionName(_1){var _2=isc.Func.$d5.exec(_1.toString());if(_2)return _2[1];else return"anonymous"},isc.A.getName=function isc_c_Func_getName(_1,_2){if(_1==Function.prototype.apply)return"Function.apply";if(_1==Function.prototype.call)return"Function.call";if(!_1){if(!arguments.callee||arguments.callee.caller===undefined)return"unknown";if(!arguments.callee.caller)return"none";_1=arguments.callee.caller} if(_1.$dx==null){if(_1.$bd==null&&isc._allFuncs){var _3=isc._allFuncs.indexOf(_1);if(_3!=-1){for(var _4=isc._funcClasses[_3];_4==null;_3--){_4=isc._funcClasses[_3]} _1.$bd=_4}else{var _5=this.parseFunctionName(_1);var _6;if(_5.startsWith("isc_c_")){_5=_5.substring(6);_6=true}else{_5=_5.substring(4)} _4=_5.substring(0,_5.indexOf("_"));_12=_5.substring(_4.length+1);var _7=isc.ClassFactory.getClass(_4),_8=null;if(_7){_8=_6?_7[_12]:_7.getInstanceProperty(_12)}}} var _9=_1.$bc,_6;if(_9==null&&_1.$bd!=null){var _10;var _11=isc.ClassFactory.getClass(_1.$bd);if(_11==null){_11=isc[_1.$bd]||window[_1.$bd]}else{_10=_11.getPrototype()} if(_10!=null){for(var _12 in _10){if(_10[_12]===_1){_9=_12;break}}} if(_9==null&&_11!=null){for(var _12 in _11){if(_11[_12]===_1){_9=_12;_6=true;break}} if(_9==null&&!isc.isA.Class(_11)&&_11.prototype!=null){for(var _12 in _11.prototype){if(_11.prototype[_12]===_1){_9=_12;break}}}}} if(_9!=null){_1.$dx=(_1.$be?(_1.$bf?"[o]":"[a]"):isc.$ad)+(_6?"[c]":isc.$ad)+(_1.$bd?_1.$bd+isc.dot:isc.$ad)+_9}else{if(_1.$c6)_1.$dx="callback";else{_1.$dx=isc.Func.parseFunctionName(_1)}}} return _1.$dx},isc.A.getArgs=function isc_c_Func_getArgs(_1){var _2=isc.Func.getArgString(_1);if(_2=="")return[];return _2.split(",")},isc.A.getArgString=function isc_c_Func_getArgString(_1){if(_1.$123y!=null)return _1.$123y;var _2=_1.toString(),_3=_2.indexOf("(")+1,_4=_2.substring(_3,_2.indexOf(")",_3));_4=_4.replace(/\/\*.*?\*\/|\/\/.*$/gm,isc.space);_4=_4.replace(/\s+/g,isc.emptyString);_1.$123y=_4;return _4},isc.A.getBody=function isc_c_Func_getBody(_1){var _2=_1.toString();return _2.substring(_2.indexOf("{")+1,_2.lastIndexOf("}"))},isc.A.getShortBody=function isc_c_Func_getShortBody(_1){var _2=_1.toString();return _2.substring(_2.indexOf("{")+1,_2.lastIndexOf("}")).replace(/[\r\n\t]*/g,"")});isc.B._maxIndex=isc.C+6;if(!Function.prototype.apply){isc.A=Function.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.apply=function(targetObject,args){if(targetObject==null)targetObject=window;var tempFunctionName="__TEMPF_"+Function.prototype.$d6++;var returnValue;targetObject[tempFunctionName]=this;if(!args)args=[];if(args.length<=10){returnValue=targetObject[tempFunctionName](args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],args[9])}else{var functionString='targetObject[tempFunctionName](';for(var i=0;i","<","|","&",",","\\"];isc.B.push(isc.A.expressionToFunction=function isc_c_Func_expressionToFunction(_1,_2,_3){var _4=this.$eb(_1,_2,_3);return _4},isc.A.$eb=function isc_c_Func__expressionToFunction(_1,_2,_3){if(_2==null){isc.Log.logInfo("makeFunctionExpression() called with empty expression");_2=""} if(isc.isAn.Object(_2)){if(isc.isA.StringMethod(_2))_2=_2.getValue();else if(_2.Action&&!_2.target)_2=_2.Action;var _4=_1;if(isc.isA.String(_4))_4=_1.split(",");else if(isc.isAn.Array(_4)){_1=_4.join()} if(!isc.isAn.Array(_4))_4=[];var _5=["if (!window.",,"){var message='Component ID \"",,"\", target of action \"",,"\" does not exist';isc.Log.logWarn(message);if(isc.designTime)isc.say(message)}",,".",,"(",,")"];_5[1]=_5[3]=_5[7]=_2.target;_5[9]=_2.name;if(_2.title)_5[5]=_2.title;else _5[5]="[No title specified]" var _6=_2.mapping||[];if(!isc.isAn.Array(_6))_6=[];_5[11]=_6.join();var _7=_5.join(isc.emptyString);var _8;try{_8=isc.$aq(_1,_7)}catch(e){this.logWarn("invalid code: "+_7+" generated from action: "+this.echo(_2));_8=function(){}} _8.iscAction=_2;return _8} var _9="swirfv";if(isc.isAn.Array(_1)){_1=_1.join()} var _10=true;var i=0;var _12=this.$d7;var _13=this.$d8;var _14=this.$d9;var _15=this.$ea;var _16=false;var _17=isc.$ad,_18=isc.slash,_19="\n",_20="\\",_21="+",_22=isc.semi;var _23=_17;var _24=_17;while(i<_2.length){var _25=_2.charAt(i);if(_25==_18){for(var j=0;j<_12.length;j++){var _27=_12[j],_28=_27[0],_29=_27[1];if(_2.indexOf(_28,i)==i){var k=i+_28.length;while(k<_2.length){if(_2.substring(k,k+_29.length)==_29){k=k+_29.length;break} k++} i=k;_23=_17;_24=this.$ec(_2,i)}}} if(_16){if(_24==_17){break}else{if(isc.isA.WhitespaceChar(_25)){i++;continue}else{_10=false;break}}} for(var j=0;j<_13.length;j++){var _31=_13[j] if(_25==_31){var k=i+1;while(k<_2.length){if(_2.charAt(k)==_20)k=k+2;if(_2.charAt(k)==_31){k++;break} k++} i=k;_23=_31.charAt(0);_24=this.$ec(_2,i)}} if(_25==_19){var _32=false;for(var j=0;j<_15.length;j++){if(_23==_15[j]){_32=true;break}} if(_32||_24==_21){_23=_17}else{_10=false;break}} if(_25==_22){_16=true} if(_9.indexOf(_25)!=-1){for(var j=0;j<_14.length;j++){var _33=_14[j],_34=_33.length;if((i+_34<=_2.length)&&(_2.substring(i,i+_34)==_33)&&(i+_34==_2.length||!isc.isA.AlphaNumericChar(_2.charAt(i+_34)))&&(i==0||!isc.isA.AlphaNumericChar(_2.charAt(i-1)))){_10=false;break}}} if(!isc.isA.WhitespaceChar(_25))_23=_25;i++;_24=this.$ec(_2,i)} if(_10){_2="return "+_2} if(_3)_2="//"+_3+"\r\n"+_2;var _8=isc.$aq(_1,_2);return _8},isc.A.$ec=function isc_c_Func__getNextNonWhitespaceChar(_1,_2){var _3=isc.$ad;for(var j=(_2+1);j<_1.length;j++){if(!isc.isA.WhitespaceChar(_1.charAt(j))){_3=_1.charAt(j);break}} if(j>=_1.length)_3=isc.$ad;return _3},isc.A.convertToMethod=function isc_c_Func_convertToMethod(_1,_2){if(!isc.isAn.Object(_1)||!isc.isA.nonemptyString(_2)){isc.Log.logWarn("convertToMethod() called with bad parameters. Cannot convert property '"+_2+"' on object "+_1+" to a function. Returning false.");return false} if(_1[_2]&&isc.isA.Function(_1[_2]))return true;var _3=(isc.isAn.Instance(_1)?_1.getClass()._stringMethodRegistry:_1._stringMethodRegistry);if(_3==null)return false;var _4;var _5=_3[_2];if(_5===_4)return false;isc.Func.replaceWithMethod(_1,_2,_5);return true},isc.A.replaceWithMethod=function isc_c_Func_replaceWithMethod(_1,_2,_3,_4){if(_1[_2]==null){_1[_2]=isc.is.emptyString(_3)?isc.Class.NO_OP:isc.$aq(_3,isc.$ad)} var _5=_1[_2];if(isc.isA.Function(_5))return;var _6;if(isc.isA.String(_5)||isc.isA.Object(_5)){_6=isc.Func.expressionToFunction(_3,_5,_4)}else{isc.Log.logWarn("Property '"+_2+"' on object "+_1+" is of type "+typeof _5+". This can not be converted to a method.","Function");return} var _7={};_7[_2]=_6;isc.addMethods(_1,_7)});isc.B._maxIndex=isc.C+5;Array.prototype.Class="Array";Array.newInstance=function(){var _1=[];isc.addPropertyList(_1,arguments);return _1} Array.create=Array.newInstance;Array.duplicate=function(_1){return isc.$ac.concat(_1)},Array.createFromItemArgs=function(){return Array.prototype.slice.call(arguments)},Array.LOADING="loading";Array.isLoading=function(_1){return _1!=null&&!isc.isAn.XMLNode(_1)&&(_1===Array.LOADING)} Array.CASE_INSENSITIVE=function(_1,_2,_3){return(_1==_2||(isc.isA.String(_1)&&isc.isA.String(_2)&&_1.toLowerCase()==_2.toLowerCase()))};Array.DATE_VALUES=function(_1,_2,_3){return(_1==_2||(isc.isA.Date(_1)&&isc.isA.Date(_2)&&Date.compareLogicalDates(_1,_2)==0))};Array.DATETIME_VALUES=function(_1,_2,_3){return(_1==_2||(isc.isA.Date(_1)&&isc.isA.Date(_2)&&Date.compareDates(_1,_2)==0))};if(!Array.prototype.localeStringFormatter) Array.prototype.localeStringFormatter="toString";Array.excludeFromSortProperty="_excludeFromSort";isc.A=Array.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.newInstance=Array.newInstance;isc.A.create=Array.newInstance;isc.A.nativeIndexOf=Array.prototype.indexOf;isc.A.nativeLastIndexOf=Array.prototype.lastIndexOf;isc.A.$1187=true;isc.A.slice=(Array.prototype.slice?Array.prototype.slice:function(_1,_2){if(_2==null)_2=this.length;for(var _3=[],l=this.length;_1<_2&&_1=_3;i--){if(_5?_4(this[i],_1):this[i]==_1){return i}} return-1},isc.A.contains=function isc_Arra_contains(_1,_2,_3){return(this.indexOf(_1,_2,null,_3)!=-1)},isc.A.containsSubstring=function isc_Arra_containsSubstring(_1,_2,_3,_4,_5){if(_1==null)return true;if(_5==null)_5="substring";var _6=this.indexOf(_1,_2,_3,function(_10,_11){var _7=_11==null?null:(isc.isA.String(_11)?_11:_11.toString()),_8=_10==null?null:(isc.isA.String(_10)?_10:_10.toString());if(_4){if(_7!=null)_7=_7.toLowerCase();if(_8!=null)_8=_8.toLowerCase()} var r=false;if(_8!=null&&_7!=null){if(_8==_7){r=true}else if(_5=="substring"&&_8&&_8.contains&&_8.contains(_7)) {r=true}else if(_5=="startsWith"&&_8&&_8.startsWith&&_8.startsWith(_7)) {r=true}} return r});return _6>=0},isc.A.containsAll=function isc_Arra_containsAll(_1){if(_1==null)return true;var _2=_1.getLength();for(var i=0;i<_2;i++){if(!this.contains(_1.get(i)))return false} return true},isc.A.containsAllSubstring=function isc_Arra_containsAllSubstring(_1,_2){if(_1==null)return true;var _3=_1.getLength();for(var i=0;i<_3;i++){if(!this.containsSubstring(_1.get(i),null,null,_2))return false} return true},isc.A.intersect=function isc_Arra_intersect(){var _1=[];for(var i=0;i=_2||_1<0)return null;var _3=this.splice(_1,1);this.dataChanged();return _3[0]},isc.A.add=function isc_Arra_add(_1,_2,_3){var _4;if(_2!==_4){return this.addAt(_1,_2)} var _5;if(this.sortUnique){_5=this.indexOf(_1);if(_5==-1)_5=this.length}else{_5=this.length} this[_5]=_1;if(this.sortProps&&this.sortProps.length>0&&(_1==null||!_1[Array.excludeFromSortProperty])) {this.sortByProperties(this.sortProps,this.sortDirections,this.sortNormalizers,_4,_4,false,_3)} this.dataChanged();return _1},isc.A.addList=function isc_Arra_addList(_1,_2,_3){if(_1==null)return null;this.$ed();if(_2==null)_2=0;if(_3==null)_3=_1.getLength();for(var _4=_2;_4<_3;_4++){this.add(_1.get(_4))} this.$ee();return _1},isc.A.setLength=function isc_Arra_setLength(_1){this.length=_1},isc.A.addListAt=function isc_Arra_addListAt(_1,_2){if(_1==null)return null;var _3=this.splice(_2,this.length-_2);this.push.apply(this,_1);this.push.apply(this,_3);this.dataChanged();return _1},isc.A.remove=function isc_Arra_remove(_1){var _2=this.indexOf(_1);if(_2==-1)return false;this.removeAt(_2);return true},isc.A.removeList=function isc_Arra_removeList(_1){if(_1==null)return null;for(var _2=[],i=0,l=this.length;i0)},isc.A.setArray=function isc_Arra_setArray(_1){this.setLength(0);this.push.apply(this,_1);this.dataChanged()},isc.A.addAsList=function isc_Arra_addAsList(_1){if(!isc.isAn.Array(_1))_1=[_1];return this.addList(_1)},isc.A.removeRange=function isc_Arra_removeRange(_1,_2){var _3;if(_1===_3)return this;if(!isc.isA.Number(_1))_1=0;if(!isc.isA.Number(_2))_2=this.length;return this.splice(_1,_2-_1)},isc.A.removeWhere=function isc_Arra_removeWhere(_1,_2){for(var i=0,_4=[];i>>0}else{_11=O.getLength()} var _12=new Array(_11);for(var i=0;i<_11;++i){var _14;if(_10){_14=O[i];_12[i]=_1.call(_2,_14,i,O)}else{_14=O.get(i);if(_8){_12[i]=_1(_14,_2,_3,_4,_5,_6)}else{_12[i]=(_14&&_14[_1]!=null?_14[_1](_2,_3,_4,_5,_6):null)}}} return _12},isc.A.setProperty=function isc_Arra_setProperty(_1,_2){for(var i=0,l=this.length;i=this.length)return-1;if(_4==null)_4=this.length-1;if(_2==null)return-1;var _6=_4>=_1;if(isc.isA.String(_2)){if(_5){for(var i=_1;(_6?i<=_4:i>=_4);(_6?i++:i--)){if(this[i]&&_5(this[i][_2],_3,_2))return i}}else{for(var i=_1;(_6?i<=_4:i>=_4);(_6?i++:i--)){if(this[i]&&this[i][_2]==_3)return i}} return-1}else if(isc.isA.Function(_2)){for(var i=_1;(_6?i<=_4:i>=_4);(_6?i++:i--)){if(_2(this[i]))return i} return-1}else{return this.findNextMatch(_2,_1,_4,_5)}},isc.A.findAllIndices=function isc_Arra_findAllIndices(_1,_2,_3){var _4=[];var _5=0;var _6;do{_6=this.findNextIndex(_5,_1,_2,null,_3);if(_6!=-1){_4.add(_6);_5=_6+1}}while(_6!=-1);return _4},isc.A.findNextMatch=function isc_Arra_findNextMatch(_1,_2,_3,_4){if(_1._constructor=="AdvancedCriteria"){if(isc.DataSource==null){isc.warn("DataBinding module not loaded, AdvancedCriteria not supported for find()/findAll()");return-1} var _5=this.dataSource||isc.DataSource;var _6=_5.applyFilter(this.getRange(_2,_3+1),_1);if(_6.size()!=0)return this.findIndex(_6.get(0));else return-1} var _7=isc.getKeys(_1),_8=_3>=_2;if(_4){for(var i=_2;(_8?i<=_3:i>=_3);(_8?i++:i--)){var _10=this.get(i);if(!_10)continue;var _11=true;for(var j=0;j<_7.length;j++){var _13=_7[j];if(!_4(_10[_13],_1[_13],_13)){_11=false;break}} if(_11)return i}}else{for(var i=_2;(_8?i<=_3:i>=_3);(_8?i++:i--)){var _10=this.get(i);if(!_10)continue;var _11=true;for(var j=0;j<_7.length;j++){var _13=_7[j];if(_10[_13]!=_1[_13]){_11=false;break}} if(_11)return i}} return-1},isc.A.find=function isc_Arra_find(_1,_2,_3){var _4=this.findIndex(_1,_2,_3);return(_4!=-1)?this.get(_4):null},isc.A.findByKeys=function isc_Arra_findByKeys(_1,_2,_3,_4){if(_1==null){isc.Log.logWarn("findByKeys: passed null record");return-1} var _5={},_6=_2.getPrimaryKeyFields(),_7=false;for(var _8 in _6){_7=true;if(_1[_8]==null){isc.Log.logWarn("findByKeys: passed record does not have a value for key field '"+_8+"'");return-1} _5[_8]=_1[_8]} if(!_7){isc.Log.logWarn("findByKeys: dataSource '"+_2.ID+"' does not have primary keys declared, can't find record");return-1} return this.findNextIndex(_3,_5,null,_4)},isc.A.containsProperty=function isc_Arra_containsProperty(_1,_2){var _3=this.findIndex(_1,_2);return(_3!=-1)},isc.A.findAll=function isc_Arra_findAll(_1,_2,_3){if(_1==null)return null;if(isc.isA.String(_1)){var _4=null,l=this.length;var _6=isc.isAn.Array(_2),_7=(_3!=null);for(var i=0;i0){var i=Math.floor(Math.random()*n);n--;var _3=this[n];this[n]=this[i];this[i]=_3}},isc.A.removeItem=function isc_Arra_removeItem(_1){return this.removeAt(_1)},isc.A.getItem=function isc_Arra_getItem(_1){return this.get(_1)},isc.A.setItem=function isc_Arra_setItem(_1){return this.set(_1)},isc.A.clearAll=function isc_Arra_clearAll(_1){return this.removeList(this)},isc.A.size=function isc_Arra_size(){return this.getLength()},isc.A.subList=function isc_Arra_subList(_1,_2){return this.getRange(_1,_2)},isc.A.addAll=function isc_Arra_addAll(_1){return this.addList(_1)},isc.A.removeAll=function isc_Arra_removeAll(_1){var _2=this.getLength();this.removeList(_1);return this.getLength()!=_2},isc.A.clear=function isc_Arra_clear(){this.setLength(0)},isc.A.toArray=function isc_Arra_toArray(){return this.duplicate()});isc.B._maxIndex=isc.C+77;if(!isc.Browser.isIE||isc.Browser.isIE8Strict){Array.prototype.duplicate=Array.prototype.slice} if(Array.prototype.nativeIndexOf!=null){Array.prototype.indexOf=function(_1,_2,_3,_4){if(_2==null)_2=0;if(_3==null)_3=this.length-1;var i;if(_4!=null){for(i=_2;i<=_3;++i){if(_4(this[i],_1))return i}}else{if(isc.isAn.Instance(_1)){i=this.nativeIndexOf(_1,_2);if(i>_3)i=-1;return i} for(i=_2;i<=_3;++i){if(this[i]==_1)return i}} return-1}} if(Array.prototype.filter==null){isc.A=Array.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.filter=function isc_Arra_filter(_1,_2){var _3=[],_4=this.length;for(var i=0;i<_4;i++){if(i in this&&_1.call(_2,this[i])){_3.add(this[i])}} return _3});isc.B._maxIndex=isc.C+1} isc.Array={$149f:function(_1,_2,_3,_4){if(_1.length<2){return} var m=_3-_2+1;if(m>1){_4=(m+(_4%m))%m;var _6=isc.Math.$108y(_4,m),s=(m/_6);for(var p=_6;p--;){var _9=_2+_4,k=_2+p,_11=_1[k];for(var q=s-1;q--;){var l=k-_4;if(k<_9){l+=m} _1[k]=_1[l];k=l} _1[k]=_11}}},$149g:function(_1,_2,_3,_4){if(_2<_3){isc.Array.$149f(_1,_2,_3,-_4)}else{isc.Array.$149f(_1,_3+1,_2+_4-1,_4)}},$96c:function(_1,_2,_3,_4){if(!_3){_3=isc.Array.$96d} var _5=0,_6=_1.length,_7=_6-1;var i=0,_9;while(_5<=_7){i=Math.floor((_5+_7)/2);_9=_3(_1[i],_2);if(_9<0){_5=i+1}else if(_9>0){_7=i-1}else{if(_4){var j=i;do{if(_1[j]===_2){return j} ++j}while(j<_6&&_3(_1[j],_2)==0)} while(i>0&&_3(_1[i-1],_2)==0){if(_4&&_1[i-1]===_2){return i-1} --i} if(_4){return-i-1}else{return i}}} if(_9!==undefined&&_9<0){return-(i+1)-1}else{return-i-1}},$96d:function(_1,_2){if(_1<_2){return-1}else if(_1>_2){return 1}else{return 0}}};isc.ClassFactory.defineClass("BitSet");isc.A=isc.BitSet.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.addPropertiesOnCreate=false;isc.B.push(isc.A.init=function isc_BitSet_init(){this.$157o=[];return this.Super("init",arguments)},isc.A.$157p=function isc_BitSet__getRangesIndex(_1){var k=isc.Array.$96c(this.$157o,_1);return(k<0?-(2+k):k)},isc.A.get=function isc_BitSet_get(_1){return(this.$157p(_1)%2==0)},isc.A.nextIndex=function isc_BitSet_nextIndex(_1){var _2=this.$157o;return(_1+1<_2.length?_2[_1+1]:-1)},isc.A.all=function isc_BitSet_all(_1,_2,_3){var i=this.$157p(_2),j=this.$157p(_3-1);return(i==j&&(_1==(i%2==0)))},isc.A.none=function isc_BitSet_none(_1,_2,_3){var i=this.$157p(_2),j=this.$157p(_3-1);return(i==j&&(_1!=(i%2==0)))},isc.A.firstIndexOf=function isc_BitSet_firstIndexOf(_1,_2,_3){if(!(_2<_3)){return-1} var _4=this.$157o,j=this.$157p(_2);if(_1==(j%2==0)){return _2}else if(j+1<_4.length&&_4[j+1]<_3){return _4[j+1]}else{return-1}},isc.A.lastIndexOf=function isc_BitSet_lastIndexOf(_1,_2,_3){if(!(_2<_3)){return-1} var _4=this.$157o,j=this.$157p(_3-1);if(_1==(j%2==0)){return _3-1}else if(0<=j&&_2<=_4[j]-1){return _4[j]-1}else{return-1}},isc.A.set=function isc_BitSet_set(_1,_2){var k=this.$157p(_1),_4=(_2!=(k%2==0));if(_4){this.$157q(_1,k,_1+1,k,_2)} return _4},isc.A.setRange=function isc_BitSet_setRange(_1,_2,_3){if(!(0<=_1&&_1<_2)){return} this.$157q(_1,this.$157p(_1),_2,this.$157p(_2-1),_3)},isc.A.$157q=function isc_BitSet__setRange(_1,_2,_3,_4,_5){var _6=this.$157o;var _7=(_5!=(_2%2==0)),_8=(_5!=(_4%2==0)),_9=(_7&&0<=_2&&_1==_6[_2]),_10=(_8&&_4+1<_6.length&&_3==_6[_4+1]),_11=(!_9&&_7),_12=(!_10&&_8),_13=_2+(_9?0:1),_14=(_4-_2+(_9?1:0)+(_10?1:0));if(_11&&_12){_6.splice(_13,_14,_1,_3)}else if(_11){_6.splice(_13,_14,_1)}else if(_12){_6.splice(_13,_14,_3)}else{_6.splice(_13,_14)}});isc.B._maxIndex=isc.C+11;isc.defineClass("NumberUtil");isc.A=isc.NumberUtil;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$eh=".";isc.A.decimalSymbol=".";isc.A.groupingSymbol=",";isc.A.negativeSymbol="-";isc.A.currencySymbol="$";isc.A.negativeFormat=1;isc.A.groupingFormat=1;isc.A._1zero="0";isc.A._2zero="00";isc.A._3zero="000";isc.A._4zero="0000";isc.A.useAccurateRounding=false;isc.B.push(isc.A.setStandardFormatter=function isc_c_NumberUtil_setStandardFormatter(_1){if(isc.isA.Function(isc.NumberUtil[_1])) isc.NumberUtil.formatter=_1},isc.A.setStandardLocaleStringFormatter=function isc_c_NumberUtil_setStandardLocaleStringFormatter(_1){if(isc.isA.Function(isc.NumberUtil[_1])) isc.NumberUtil.localeStringFormatter=_1},isc.A.$eg=function isc_c_NumberUtil__getZeroString(_1){if(_1<=0)return;var _2=isc.NumberUtil,_3;while(_1>4){if(_3==null)_3=_2._4zero;else _3+=_2._4zero;_1-=4} var _4;switch(_1){case 4:_4=_2._4zero;break;case 3:_4=_2._3zero;break;case 2:_4=_2._2zero;break;case 1:_4=_2._1zero;break} if(_3==null)return _4;return _3+_4},isc.A.$109c=function isc_c_NumberUtil__expandExponent(_1){return _1.replace(/^([+-])?(\d+).?(\d*)[eE]([-+]?\d+)$/,function(_9,_10,_11,_12,_13){var _2=+_13<0,_3=_11.length+(+_13),_4=(_2?_11:_12).length;_13=Math.abs(_13);var _5=_13>=_4?_13-_4+_2:0,_6=_5>0?isc.NumberUtil.$eg(_5):"";var _7=_11+_12;if(_2)_7=_6+_7;else _7+=_6;if(_2)_3+=_6.length;var _8=(_10||"")+_7.substr(0,_3);if(_3<_7.length){_8+="."+_7.substr(_3)} return _8})},isc.A.stringify=function isc_c_NumberUtil_stringify(_1,_2,_3){if(!isc.isA.Number(_1))return"";return isc.NumberUtil.$117c(_2,_3,_1)},isc.A.$117c=function isc_c_NumberUtil__stringify(_1,_2,_3,_4){if(_3==null)_3=this;if(!_1)_1=2;var _5=(_4!=null?_3.toString(_4):_3.toString()),_6=_1-_5.length;if(_2){var _7=_5.indexOf(isc.dot);if(_7!=-1){_6+=(_5.length-_7)}} var _8=isc.NumberUtil.$eg(_6);if(_8==null)return _5;return _8+_5},isc.A.toCurrencyString=function isc_c_NumberUtil_toCurrencyString(_1,_2,_3,_4,_5){if(!isc.isA.Number(_1))return"";return isc.NumberUtil.$117d(_2,_3,_4,_5,_1)},isc.A.$117d=function isc_c_NumberUtil__toCurrencyString(_1,_2,_3,_4,_5){if(_5==null)_5=this;var _6=_5<0,_7=_5<0?Math.ceil(_5):Math.floor(_5),_8=Math.abs(Math.round((_5-_7)*100)),_9=isc.StringBuffer.create();_7=Math.abs(_7);_1=_1||isc.NumberUtil.currencySymbol||"$";_2=_2||isc.NumberUtil.decimalSymbol||".";if(_3==null)_3=true;if(_6)_9.append(isc.NumberUtil.negativeSymbol||"-");if(_4!=true)_9.append(_1);_9.append(_7.stringify(1));if(_3){_9.append(_2);_9.append(_8.stringify(2))}else if(_8!=0){_9.append(_2);if(_8%10==0)_9.append(_8/10);else _9.append(_8.stringify(2))} if(_4==true)_9.append(_1);return _9.release(false)},isc.A.toLocalizedString=function isc_c_NumberUtil_toLocalizedString(_1,_2,_3,_4,_5,_6,_7,_8,_9){if(!isc.isA.Number(_1))return"";var _10=(_1<0),_11=null,_12=null;if(_10){_1=-_1} var _13=(_8!=null||_9!=null),_14=0;if(_13){_8=Math.max(1,Math.min(21,_8||0));_9=Math.max(_8,Math.min(21,_9||0))}else{_6=Math.max(1,Math.min(21,_6||0));_14=Math.max(0,Math.min(20,_2||0));_7=Math.max(_14,Math.min(20,_7||0))} var _15=isc.NumberUtil.$eg(1);if(_13){var p=_9,e=0,m;if(_1==0){e=0;m=isc.NumberUtil.$eg(p);if(e==p-1){_11=m}}else{e=Math.floor(Math.log(_1)/Math.LN10);var n=0;if(e=p){_11=(isc.NumberUtil.$141d(n)+isc.NumberUtil.$eg(e-p+1))}else if(e==p-1){_11=isc.NumberUtil.$141d(n)}else{m=isc.NumberUtil.$141d(n)}} if(_11==null){if(e>=0){_11=m.substr(0,e+1);_12=m.substr(e+1,p-(e+1))}else{_11=_15;_12=isc.NumberUtil.$eg(-(e+1))+m} var _20=_9-_8,_21=_20;while(_21>0){if(_12[p-(e+1)-1-(_20-_21)]==_15){--_21}else{break}} if(p-(e+1)==_20-_21){_12=null}else{_12=_12.substr(0,p-(e+1)-(_20-_21))}}}else{var f=_7,n=Math.round(_1*Math.pow(10,f)),m=(n==0?_15:isc.NumberUtil.$141d(n)),l=0;if(f>0){var k=m.length;if(k<=f){m=isc.NumberUtil.$eg(f+1-k)+m;k=f+1} _11=m.substr(0,k-f);_12=m.substr(k-f,f);l=k-f;var _20=_7-_14,_21=_20;while(_21>0){if(_12[f-1-(_20-_21)]==_15){--_21}else{break}} if(f==_20-_21){_12=null}else{_12=_12.substr(0,f-(_20-_21))}}else{_11=m;l=m.length} if(l<_6){_11=isc.NumberUtil.$eg(_6-l)+_11}} var _25=_11.length,r=_25%3,_27=(_25-r)/3,_28=(_10?1:0)+(r!=0?1:0),_29=(r!=0?1:0)+_27-1,_30=(_28+_29+_27+(_12!=null?2:0)),_31=new Array(_30);var k=0;if(_10){_31[k++]=(_5||isc.NumberUtil.negativeSymbol)} _4=_4||isc.NumberUtil.groupingSymbol;var _32=false;if(r!=0){_31[k++]=_11.substr(0,r);_32=true} for(var i=0,j=r;i<_27;++i,j+=3,_32=true){if(_32){_31[k++]=_4} _31[k++]=_11.substr(j,3)} if(_12!=null){_31[k++]=(_3||isc.NumberUtil.decimalSymbol);_31[k]=_12} return _31.join("")},isc.A.$141d=function isc_c_NumberUtil__toFixed(_1){var _2=_1.toFixed(),k=_2.lastIndexOf("e");if(k==-1){return _2}else{var _4=parseInt(_2.substr(k+1),10),_5=1+_4,_6="",_7=0;do{var _8=parseInt(_2,10),_9=parseInt(_2.substr(k+1),10);if(_4>_9+1){_6=_6+isc.NumberUtil.$eg(_4-_9-1)+_8}else{_6=_6+_8} _7+=_8*Math.pow(10,_9);_2=(_1-_7).toFixed();k=_2.lastIndexOf("e");_4=_9}while(k!=-1);var l=_5-_6.length-_2.length;if(l>0){return _6+isc.NumberUtil.$eg(l)+_2}else{return _6+_2}}},isc.A.floatValueToLocalizedString=function isc_c_NumberUtil_floatValueToLocalizedString(_1,_2,_3,_4){if(!isc.isA.Number(_1))return"";if(!_3)_3=0;if(_2==null)_2=2;var _5=isc.NumberUtil.toLocalizedString(_1,_2);if(_4)_5=_5.replaceAll(isc.NumberUtil.groupingSymbol,"");var _6=_5.indexOf(isc.NumberUtil.decimalSymbol);var _7=0;if(_6<0){if(_3==0)return _5;_7=_3;_5+=isc.NumberUtil.decimalSymbol}else{_7=_3-(_5.length-_6-1)} if(_7>0){_5+=new Array(_7+1).join('0')}else if(_7<0){for(var i=(_5.length-1);i>(_6+_3);i--){if(_5[i]!='0'&&_5[i]!=isc.NumberUtil.decimalSymbol)break} if(_5[i]==isc.NumberUtil.decimalSymbol)i--;_5=_5.substr(0,i+1)} return _5},isc.A.toUSString=function isc_c_NumberUtil_toUSString(_1,_2,_3,_4,_5,_6){return isc.NumberUtil.toLocalizedString(_1,_2,".",",","-",_3,_4,_5,_6)},isc.A.toUSCurrencyString=function isc_c_NumberUtil_toUSCurrencyString(_1,_2){if(!isc.isA.Number(_1))return"";var _3=isc.NumberUtil;return"$"+_3.toLocalizedString(_1,_2,".",",","-")},isc.A.$141e=function isc_c_NumberUtil__toUSPercentString(_1,_2,_3,_4,_5,_6){if(!isc.isA.Number(_1)){return""}else{return(isc.NumberUtil.toLocalizedString(100*_1,_3,".",",","-",_2,_4,_5,_6)+"%")}},isc.A.iscToLocaleString=function isc_c_NumberUtil_iscToLocaleString(_1){var f=isc.NumberUtil.localeStringFormatter;var _3=isc.isA.Function(f)?f:isc.NumberUtil[f];return _3?_3(_1):_1.toString()},isc.A.toFormattedString=function isc_c_NumberUtil_toFormattedString(_1,_2){var f=_2||isc.NumberUtil.formatter;var _4=isc.isA.Function(f)?f:isc.NumberUtil[f];return _4?_4(_1):_1.toString()},isc.A.parseInt=function isc_c_NumberUtil_parseInt(_1){if(isc.isA.String(_1)){_1=_1.replace(new RegExp("["+this.groupingSymbol+"|"+this.currencySymbol+"]","g"),"")} return parseInt(_1)},isc.A.parseFloat=function isc_c_NumberUtil_parseFloat(_1){if(isc.isA.String(_1)){_1=_1.replace(new RegExp("["+this.groupingSymbol+"|"+this.currencySymbol+"]","g"),"");if(this.decimalSymbol!="."){_1=_1.replace(new RegExp("["+this.decimalSymbol+"]","g"),".")}} return parseFloat(_1)},isc.A.parseLocaleFloat=function isc_c_NumberUtil_parseLocaleFloat(_1,_2,_3){if(_1==null)return Number.NaN;if(!_2)_2=isc.NumberUtil.decimalSymbol;if(!_3)_3=isc.NumberUtil.groupingSymbol;var _4="";var _5=-1;var _6=false;var _7=true;var _8=_1.contains(_3);for(var i=0;i<_1.length;i++){if(i==0){if(_1[i]=="-"){_7=false;continue}else if(_1[i]=="+"){continue}} var _10=!_6&&_8;if(_10){if(_5!=-1){_10=(i-_5)==4}else{_10=(i==3)||(_1[i]==_3)}} if(_1[i]==_3){if(!_10){return Number.NaN} _5=i;continue}else if(_10&&_1[i]!=_2){return Number.NaN}else if(_1[i]==_2){if(_6)return Number.NaN;if(_8&&(i-_5)!=4)return Number.NaN;_6=true;_4+=".";continue} if(_1[i]<"0"||_1[i]>"9")return Number.NaN;_4+=_1[i]} if(!_6&&_8&&((i-_5)!=4)){return Number.NaN} return _7?parseFloat(_4):-parseFloat(_4)},isc.A.parseLocaleInt=function isc_c_NumberUtil_parseLocaleInt(_1,_2){if(_1==null)return Number.NaN;if(!_2)_2=isc.NumberUtil.groupingSymbol;var _3="";var _4=-1;var _5=true;var _6=_1.contains(_2);for(var i=0;i<_1.length;i++){if(i==0){if(_1[i]=="-"){_5=false;continue}else if(_1[i]=="+"){continue}} var _8=_6;if(_8){if(_4!=-1){_8=(i-_4)==4}else{_8=(i==3)||(_1[i]==_2)}} if(_1[i]==_2){if(!_8){return Number.NaN} _4=i;continue}else if(_8){return Number.NaN} if(_1[i]<"0"||_1[i]>"9")return Number.NaN;_3+=_1[i]} if(_6&&((i-_4)!=4)){return Number.NaN} return _5?parseInt(_3):-parseInt(_3)},isc.A.parseLocaleCurrency=function isc_c_NumberUtil_parseLocaleCurrency(_1,_2,_3,_4){if(_1==null)return Number.NaN;if(!_2)_2=isc.NumberUtil.currencySymbol;if(_1.startsWith(_2)){_1=_1.substring(_2.length)}else if(_1.endsWith(_2)){_1=_1.substring(0,_1.length-_2.length)} return this.parseLocaleFloat(_1)},isc.A.parseIfNumeric=function isc_c_NumberUtil_parseIfNumeric(_1){if(isc.isA.Number(_1)){return _1}else if(isc.isA.nonemptyString(_1)){if(isNaN(_1)){return _1}else{return parseInt(_1,10)}}else{return _1}},isc.A.format=function isc_c_NumberUtil_format(_1,_2){if(!isc.isA.Number(_1)){this.logWarn("Cannot format '"+_1+"' - not a Number");return _1} if(!isc.isA.String(_2)){this.logWarn("Cannot use format '"+_2+"' - not a String");return _1} if(_2==""){return _1.toString()} var _3=_2+"",n=_1+0,_5=n<0,_6=Math.abs(_1),_7,_8=_6.toString().split('.'),_9=_8[0],_10=_8[1];if(_5){if(_3.indexOf(";")!=-1){_3=_7=_3.substring(_3.indexOf(";")+1)}else{_3=_3.indexOf(";")==-1?_3:_3.substring(0,_3.indexOf(";"))}}else{_3=_3.indexOf(";")==-1?_3:_3.substring(0,_3.indexOf(";"))} var _11=_3.indexOf("'"),_12=[],_13=[];while(_11!=-1){var _14=_11,_15=_3.indexOf("'",_14+1);if(_15==-1){var _16="Invalid format string \""+_2+"\" - contains mismatched quotes" this.logWarn(_16);return _16} var _17=_3.substring(_14+1,_15);if(_17==="")_17="'";_12.push(_17);_13.push(_14);_3=_3.substring(0,_14)+_3.substring(_15+1);_11=_3.indexOf("'")} var _18=_3.indexOf(",");if(_18>-1){_3=_3.replace(/,/g,'')} var _19=_3.indexOf("0"),_20=_3.indexOf("#"),_21=_3.indexOf("."),_22=Math.min(_19==-1?999:_19,_20==-1?999:_20,_21==-1?999:_21),_23=_3.length-1,_24=false,_25=false,_26=0;for(var i=_3.length-1;i>_22;i--){var _28=_3.charAt(i);if(_28=='0'||_28=='#'||_28=='.')break;if(_28=='%')_24=true;if(_28=='\u2030')_25=true;_23--} if(_22==999||_23<0||_22>_23){_8=Math.abs(n).toString().split('.');_9=_8[0];_10="";var _29=_3;if(_13){for(var i=_13.length-1;i>=0;i--){_29=_29.substring(0,_13[i])+_12[i]+_29.substring(_13[i])}} if(_5&&!_7)_29="-"+_29;var _30="",_31=""}else{if(_19!=-1&&_20!=-1&&_21!=-1){if(_19<_20&&_20<_21){var _16="Invalid format string \""+_2+"\" - cannot specify '0' to the left of '#' in the integer part" this.logWarn(_16);return _16}} var _32=_3.indexOf("\u00a4");while(_32!=-1){_3=_3.substring(0,_32)+isc.NumberUtil.currencySymbol+_3.substring(_32+1);_32=_3.indexOf("\u00a4")} var _29=_3.substring(0,_22);var _30=_3.substring(_23+1);for(var i=_13.length-1;i>=0;i--){if(_13[i]>_22&&_13[i]<_23){this.logWarn("Format string \""+_2+"\" contains quoted characters within the actual number area - these will be ignored")}else if(_13[i]<=_22){_29=_29.substring(0,_13[i])+_12[i]+_29.substring(_13[i])}else{_13[i]-=(_23+1);_30=_30.substring(0,_13[i])+_12[i]+_30.substring(_13[i])}} if(_19!=-1&&(_21==-1||_19<_21)){_26=(_21==-1?_23+1:_21)-_19} if(_24)n=n*100;else if(_25)n=n*1000;var _33="";if(_21!=-1)_33=_3.substring(_21+1,_23+1);n=this.$124q(n,_33.length,_10?_10.length:0);_8=Math.abs(n).toString().split('.');_9=_8[0];_10=_8[1]||"";if(_10.length<_33.length){var c=_10.length;while(_33[c]==="0"&&c++<_33.length)_10+="0"} if(_9=="0"){_9="0000000000000000000000000000000000000000".substring(0,_26)}else if(_26>_9.length){_9="0000000000000000000000000000000000000000".substring(_9.length,_26)+_9} if(_18>-1){_9=_9.replace(/(\d)(?=(\d{3})+(?!\d))/g,'$1'+isc.NumberUtil.groupingSymbol)} if(_5&&!_7){_29=_29?"-"+_29:"-"} var _31=_10&&_10.length>0?isc.NumberUtil.decimalSymbol:""} return _29+_9+_31+_10+_30},isc.A.$124q=function isc_c_NumberUtil__roundDecimalForFormatting(_1,_2,_3){if(_3<=_2)return _1;var _4=_1<0;if(_4)_1=0-_1;var _5=_1;var m=Math.pow(10,_2);_1=_1*m;if(isc.NumberUtil.useAccurateRounding){var e=Math.pow(10,_3*-1);_1+=e} _1=Math.round(_1) _1=_1/m;var _8=(Math.round(_1*m)/m).toFixed(_2);if(_1!=_8){alert("Round "+_5+" to "+_2+"dp. My way gives "+_1+", numeral.js gives "+_8)} return _4?0-_1:_1});isc.B._maxIndex=isc.C+24;isc.NumberUtil.toString=function(_1){if(_1==null)return"";if(isc.isA.Class(_1))return _1.valueOf().toString();return _1.toString()};if(!isc.NumberUtil.formatter)isc.NumberUtil.formatter="toString";if(!isc.NumberUtil.localeStringFormatter) isc.NumberUtil.localeStringFormatter="toString";Number.prototype.Class="Number";isc.A=Number;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.setStandardFormatter=function isc_Number_setStandardFormatter(_1){isc.NumberUtil.setStandardFormatter(_1)},isc.A.setStandardLocaleStringFormatter=function isc_Number_setStandardLocaleStringFormatter(_1){isc.NumberUtil.setStandardLocaleStringFormatter(_1)});isc.B._maxIndex=isc.C+2;isc.A=Number.prototype;isc.A.stringify=isc.NumberUtil.$117c;isc.A.toCurrencyString=isc.NumberUtil.$117d;isc.A=Number.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.iscToLocaleString=function isc_Numbe_iscToLocaleString(){var _1=isc.NumberUtil.iscToLocaleString(this);return _1},isc.A.toFormattedString=function isc_Numbe_toFormattedString(_1){var _2=isc.NumberUtil.toFormattedString(this,_1) return _2},isc.A.toLocalizedString=function isc_Numbe_toLocalizedString(_1,_2,_3,_4){var _5=isc.NumberUtil.toLocalizedString(this,_1,_2,_3,_4);return _5},isc.A.toUSString=function isc_Numbe_toUSString(_1){var _2=isc.NumberUtil.toUSString(this,_1);return _2},isc.A.toUSDollarString=function isc_Numbe_toUSDollarString(_1){return isc.NumberUtil.toUSCurrencyString(this,_1)},isc.A.toUSCurrencyString=function isc_Numbe_toUSCurrencyString(_1){var _2=isc.NumberUtil.toUSCurrencyString(this,_1);return _2});isc.B._maxIndex=isc.C+6;isc.defineClass("Format");isc.A=isc.Format;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.toUSString=function isc_c_Format_toUSString(_1,_2){if(!isc.isA.Number(_1))return _1;return isc.NumberUtil.toUSString(_1,_2)},isc.A.toUSCurrencyString=function isc_c_Format_toUSCurrencyString(_1,_2){if(!isc.isA.Number(_1))return _1;return isc.NumberUtil.toUSCurrencyString(_1,_2)},isc.A.toUSDollarString=function isc_c_Format_toUSDollarString(_1,_2){if(!isc.isA.Number(_1))return _1;return isc.NumberUtil.toUSCurrencyString(_1,_2)},isc.A.toCurrencyString=function isc_c_Format_toCurrencyString(_1,_2,_3,_4,_5){if(!isc.isA.Number(_1))return _1;return isc.NumberUtil.$117d(_2,_3,_4,_5,_1)});isc.B._maxIndex=isc.C+4;isc.Math={clamp:function(_1,_2,_3){if(_1<_2)return _2;if(_1>_3)return _3;return _1},random:function(_1,_2){if(_2==null){return Math.floor(Math.random()*(_1+1))}else{return Math.floor(Math.random()*(_2-_1+1))+_1}},$119q:function(_1,_2){var _3=_1.toString(16);if(_3.length<_2)_3=isc.NumberUtil.$eg(_2-_3.length)+_3;return _3},randomUUID:function(){var _1;if(window.Uint16Array&&window.crypto&&window.crypto.getRandomValues){_1=new window.Uint16Array(8);window.crypto.getRandomValues(_1)}else{_1=new Array(8);var _2=new Date().getTime();for(var i=0;i<_1.length;++i){_1[i]=(_2^(Math.random()*65536))&0xFFFF}} _1[3]=(_1[3]&0x0FFF)|0x4000;_1[4]=(_1[4]&0xBFFF)|0x8000;return(this.$119q(_1[0],4)+this.$119q(_1[1],4)+"-"+this.$119q(_1[2],4)+"-"+this.$119q(_1[3],4)+"-"+this.$119q(_1[4],4)+"-"+this.$119q(_1[5],4)+this.$119q(_1[6],4)+this.$119q(_1[7],4)).toUpperCase()},randomString:function(_1,_2){var _3=new Array(_1);var _4;if(isc.isA.Number(_2)){_4=_2;_2="0123456789abcdefghijklmnopqrstuvwxyz".substring(0,_4)}else{_4=_2.length} for(var i=0;i<_1;++i){_3[i]=_2[this.random(_4-1)]} return _3.join("")},$101j:function(_1){return(_1<0?-1:(_1>0?1:0))},$101k:function(_1,_2){_1=Math.abs(_1);_2=Math.abs(_2);if(_1>_2){return _1*Math.sqrt(1+_2*_2/_1/_1)}else if(_2!=0){return _2*Math.sqrt(1+_1*_1/_2/_2)}else{return _1}},euclideanDistanceToLine:function(_1,_2,_3,_4,_5,_6){var _7=_3-_1,_8=_4-_2;var _9=_7*_7+_8*_8;if(_9<=0.00001){return this.euclideanDistance(_1,_2,_5,_6)} var u=((_5-_1)*(_3-_1)+(_6-_2)*(_4-_2))/_9;if(u<0){return this.euclideanDistance(_1,_2,_5,_6)}else if(u>1){return this.euclideanDistance(_3,_4,_5,_6)}else{var x=_1+u*_7,y=_2+u*_8;return this.euclideanDistance(x,y,_5,_6)}},euclideanDistance:function(_1,_2,_3,_4){if(arguments.length==2){var _5=_1,_6=_2;_1=_5[0];_2=_5[1];_3=_6[0];_4=_6[1]} return this.$101k((_1-_3),(_2-_4))},$125w:Math.PI/180,toRadians:function(_1){return _1*this.$125w},cosdeg:function(_1){return Math.cos(_1*this.$125w)},sindeg:function(_1){return Math.sin(_1*this.$125w)},$fr:function(_1,_2){var _3=0;for(var i=0;i<_1.length;++i){_3+=_1[i]*_2[i]} return _3},$101l:function(_1){var m=_1.length,n=_1[0].length,_4=new Array(n);for(var i=n;i--;){_4[i]=new Array(n)} for(var i=n;i--;){var _6=_4[i];for(var j=i;j=0;--k){if(s[k]!=0){for(var j=k+1;j=0;--k){if(k<_17&&e[k]!=0){for(var j=k+1;j<_13;++j){var t=0;for(var i=k+1;i0){if(_29>_2){return null} var k,_30;for(k=p-2;k>=-1;--k){if(k==-1){break} if(Math.abs(e[k])<=_7+_6*(Math.abs(s[k])+Math.abs(s[k+1]))){e[k]=0;break}} if(k==p-2){_30=4}else{var _31;for(_31=p-1;_31>=k;--_31){if(_31==k){break} var t=(_31!=p?Math.abs(e[_31]):0)+(_31!=k+1?Math.abs(e[_31-1]):0);if(Math.abs(s[_31])<=_7+_6*t){s[_31]=0;break}} if(_31==k){_30=3}else if(_31==p-1){_30=1}else{_30=2;k=_31}} ++k;switch(_30){case 1:var f=e[p-2];e[p-2]=0;for(var j=p-2;j>=k;--j){var t=_12(s[j],f),_33=s[j]/t,_34=f/t;s[j]=t;if(j!=k){f=-_34*e[j-1];e[j-1]=_33*e[j-1]} if(_4){for(var i=0;i=s[k+1]){break} var t=s[k];s[k]=s[k+1];s[k+1]=t;if(_4&&k1.0){++i} return Math.pow(2,-i+1)})(),$1437:function(_1,_2){this.real=_1;this.imag=_2},$1438:{p:[],qp:[],k:[],qk:[],svk:[],sr:0,si:0,u:0,v:0,a:0,b:0,c:0,d:0,a1:0,a2:0,a3:0,a6:0,a7:0,e:0,f:0,g:0,h:0,szr:0,szi:0,lzr:0,lzi:0,n:0,nn:0},$1439:function(_1,_2){var _3=isc.Math.$1438,_4=[],_5=false;var _6=isc.Math.$1436,_7=_6,_8=_6;var _9=Math.SQRT1_2;var _10=-_9;var _11=Math.cos(94*Math.PI/180);var _12=Math.sin(94*Math.PI/180);var _13=0;while(_13<=_2&&_1[_13]==0){++_13} _2-=Math.min(_2,_13);if(_2==0){_5=true;_2=0;return{degree:_2,zeros:_4,fail:_5}} _3.n=_2;_3.nn=_2+1;while(_1[_13+_3.nn-1]==0){var j=_2-_3.n;_4[j]=new isc.Math.$1437(0,0);--_3.nn;--_3.n} for(var i=_3.nn;i--;){_3.p[i]=_1[_13+i]} var _16=new Array(101),_17=new Array(101);for(;;){if(_3.n<=2){if(_3.n==2){var _18=isc.Math.$144a(_3.p[0],_3.p[1],_3.p[2]);_4[_2-2]=new isc.Math.$1437(_18.sr,_18.si);_4[_2-1]=new isc.Math.$1437(_18.lr,_18.li)}else if(_3.n==1){_4[_2-1]=new isc.Math.$1437(-_3.p[1]/_3.p[0],0)} return{degree:_2,zeros:_4,fail:_5}} var _19=0;var _20=Number.MAX_VALUE;for(var i=_3.nn;i--;){var x=Math.abs(_3.p[i]);if(x>_19){_19=x} if(x!=0&&x<_20){_20=x}} var _22=(Number.MIN_VALUE/_6)/_20;if((_22>1&&Number.MAX_VALUE/_22>=_19)||_19>=10){if(_22==0){_22=Number.MIN_VALUE} var _23=Math.pow(10,Math.floor(Math.log(_22)/Math.LN10+0.5));if(_23!=1){for(var i=_3.nn;i--;){_3.p[i]*=_23}}} for(var i=_3.nn;i--;){_16[i]=Math.abs(_3.p[i])} _16[_3.nn-1]=-_16[_3.nn-1];var x=Math.exp((Math.log(-_16[_3.nn-1])-Math.log(_16[0]))/_3.n);if(_16[_3.n-1]!=0){var _24=-_16[_3.nn-1]/_16[_3.n-1];if(_240){x=_24}else{break}} for(var _26=x;Math.abs(_26/x)>5e-3;){var _25=_16[0];var _27=_25;for(var i=1;i<_3.n;++i){_25=_25*x+_16[i];_27=_27*x+_25} _25=_25*x+_16[_3.nn-1];_26=_25/_27;x-=_26} var _28=x;var _29=_3.n-1;_3.k[0]=_3.p[0];for(var i=_3.n;(--i)>=1;){_3.k[i]=(_3.nn-i-1)*_3.p[i]/_3.n} var _30=_3.p[_3.nn-1];var _31=_3.p[_3.n-1];var _32=(_3.k[_3.n-1]==0);for(var _33=5;_33--;){var _34=_3.k[_3.n-1];if(_32){for(var i=0;i<_29;++i){var j=_3.nn-i;_3.k[j]=_3.k[j-1]} _3.k[0]=0;_32=(_3.k[_3.n-1]==0)}else{var t=-_30/_34;for(var i=0;i<_29;++i){var j=_3.nn-i;_3.k[j]=t*_3.k[j-1]+_3.p[j]} _3.k[0]=_3.p[0];_32=(Math.abs(_3.k[_3.n-1])<=Math.abs(_31)*_6*10)}} for(var i=_3.n;i--;){_17[i]=_3.k[i]} for(var _36=1;_36<=20;++_36){var _37=_11*_9-_12*_10;_10=_12*_9+_11*_10;_9=_37;_3.sr=_28*_9;_3.si=_28*_10;_3.u=_3.sr*-2;_3.v=_28;var _38=isc.Math.$144b(_3,_36*20,_6,_7,_8);if(_38!=0){var j=_2-_3.n;_4[j]=new isc.Math.$1437(_3.szr,_3.szi);_3.nn-=_38;_3.n=_3.nn-1;for(var i=_3.nn;i--;){_3.p[i]=_3.qp[i]} if(_38!=1){_4[j+1]=new isc.Math.$1437(_3.lzr,_3.lzi)} break} for(var i=_3.n;i--;){_3.k[i]=_17[i]}}} _5=true;_2-=_3.n;return{degree:_2,zeros:_4,fail:_5}},$144b:function(_1,_2,_3,_4,_5){var _6=0.25;var _7=0.25;var _8=_1.sr;var _9=_1.v;var _10=0,_11=0;var _12=isc.Math.$144c(_1.nn,_1.u,_1.v,_1.p);for(var i=_1.nn;i--;){_1.qp[i]=_12.q[i]} _1.a=_12.a;_1.b=_12.b;var _14=isc.Math.$144d(_1,_3);var _15=0,_16=0,_17=0,_18=0;for(var j=1;j<=_2;++j,_9=_15,_8=_16,_10=_17,_11=_18){isc.Math.$144e(_1,_14,_3);_14=isc.Math.$144d(_1,_3);var _20=isc.Math.$144f(_1,_14);var _21=_20.uu;var _22=_20.vv;_15=_22;_16=0;if(_1.k[_1.n-1]!=0){_16=-_1.p[_1.nn-1]/_1.k[_1.n-1]} _17=1;_18=1;if(j==1||_14==3){continue} if(_15!=0){_17=Math.abs((_15-_9)/_15)} if(_16!=0){_18=Math.abs((_16-_8)/_16)} var _23=1;if(_17<_10){_23=_17*_10} var _24=1;if(_18<_11){_24=_18*_11} var _25=_23<_6;var _26=_24<_7;if(!(_26||_25)){continue} var _27=_1.u;var _28=_1.v;for(var i=_1.n;i--;){_1.svk[i]=_1.k[i]} var s=_16;var _30=false;var _31=false;for(var _32=!(_26&&(!_25||_24<_23));true;){if(_32){var _33=isc.Math.$144g(_1,_21,_22,_3,_4,_5);if(_33>0){return _33} _30=true;_6/=4;if(_31||!_26){_1.u=_27;_1.v=_28;for(var i=_1.n;i--;){_1.k[i]=_1.svk[i]} if(_25&&!_30){_32=true;continue}else{break}} for(var i=_1.n;i--;){_1.k[i]=_1.svk[i]}} var _34=isc.Math.$144h(_1,s,_3,_4,_5);s=_34.sss;var _33=_34.nz;var _35=_34.iflag;if(_33>0){return _33} _31=true;_7/=4;if(_35!=0){_21=-(s+s);_22=s*s;_32=true;continue} _1.u=_27;_1.v=_28;for(var i=_1.n;i--;){_1.k[i]=_1.svk[i]} _32=_25&&!_30;if(!_32){break}} var _12=isc.Math.$144c(_1.nn,_1.u,_1.v,_1.p);for(var i=_1.nn;i--;){_1.qp[i]=_12.q[i]} _1.a=_12.a;_1.b=_12.b;_14=isc.Math.$144d(_1,_3)} return 0},$144g:function(_1,_2,_3,_4,_5,_6){_1.u=_2;_1.v=_3;var _7=false,_8=0,_9=0;var j=0;for(;;){var _11=isc.Math.$144a(1,_1.u,_1.v);_1.szr=_11.sr;_1.szi=_11.si;_1.lzr=_11.lr;_1.lzi=_11.li;if(Math.abs(Math.abs(_1.szr)-Math.abs(_1.lzr)) >Math.abs(_1.lzr)*1e-2) {return 0} var _12=isc.Math.$144c(_1.nn,_1.u,_1.v,_1.p);for(var i=_1.nn;i--;){_1.qp[i]=_12.q[i]} _1.a=_12.a;_1.b=_12.b;var _14=(Math.abs(_1.a-_1.szr*_1.b)+Math.abs(_1.szi*_1.b));var _15=Math.sqrt(Math.abs(_1.v));var _16=Math.abs(_1.qp[0])*2;var t=-_1.szr*_1.b;for(var i=1;i<_1.n;++i){_16=_16*_15+Math.abs(_1.qp[i])} _16=_16*_15+Math.abs(_1.a+t);_16=((5*_6+4*_5)*_16- (5*_6+2*_5)*(Math.abs(_1.a+t)+Math.abs(_1.b)*_15)+_5*2*Math.abs(t));if(_14<=_16*20){return 2} ++j;if(j>20){return 0} if(!(j<2||_8>1e-2||_14<_9||_7)){_8=Math.sqrt(Math.max(_4,_8));_1.u-=_1.u*_8;_1.v+=_1.v*_8;var _12=isc.Math.$144c(_1.nn,_1.u,_1.v,_1.p);for(var i=_1.nn;i--;){_1.qp[i]=_12.q[i]} _1.a=_12.a;_1.b=_12.b;for(var i=5;i--;){isc.Math.$144e(_1,isc.Math.$144d(_1,_4),_4)} _7=true;j=0} _9=_14;isc.Math.$144e(_1,isc.Math.$144d(_1,_4),_4);var _18=isc.Math.$144f(_1,isc.Math.$144d(_1,_4));var _19=_18.uu;var _20=_18.vv;if(_20==0){return 0} _8=Math.abs((_20-_1.v)/_20);_1.u=_19;_1.v=_20}},$144h:function(_1,_2,_3,_4,_5){var _6=_1.n-1;var s=_2;var _8=0;var _9=0;for(var j=0,_11=0;true;){var _12=_1.p[0];_1.qp[0]=_12;for(var i=1;i<_1.nn;++i){_12=_12*s+_1.p[i];_1.qp[i]=_12} var _14=Math.abs(_12);var _15=Math.abs(s);var _16=_5/(_4+_5)*Math.abs(_1.qp[0]);for(var i=1;i<_1.nn;++i){_16=_16*_15+Math.abs(_1.qp[i])} if(_14<=((_4+_5)*_16-_5*_14)*20){_8=1;_1.szr=s;_1.szi=0;return{sss:_2,nz:_8,iflag:_9}} ++j;if(j>10){return{sss:_2,nz:_8,iflag:_9}} if(!(j<2||Math.abs(t)>Math.abs(s-t)*1e-3||_14<=_11)){_9=1;_2=s;return{sss:_2,nz:_8,iflag:_9}} _11=_14;var _17=_1.k[0];_1.qk[0]=_17;for(var i=1;i<_1.n;++i){_17=_17*s+_1.k[i];_1.qk[i]=_17} if(Math.abs(_17)<=Math.abs(_1.k[_1.n-1])*10*_3){_1.k[0]=0;for(var i=_1.n;(--i)>=1;){_1.k[i]=_1.qk[i-1]}}else{var t=-_12/_17;_1.k[0]=_1.qp[0];for(var i=_1.n;(--i)>=1;){_1.k[i]=t*_1.qk[i-1]+_1.qp[i]}} _17=_1.k[0];for(var i=1;i<_1.n;++i){_17=_17*s+_1.k[i]} var t=0;if(Math.abs(_17)>Math.abs(_1.k[_1.n-1])*10*_3){t=-_12/_17} s+=t}},$144d:function(_1,_2){var _3=isc.Math.$144c(_1.n,_1.u,_1.v,_1.k);for(var i=_1.n;i--;){_1.qk[i]=_3.q[i]} _1.c=_3.a;_1.d=_3.b;var _5=!(Math.abs(_1.c)>Math.abs(_1.k[_1.n-1])*100*_2||Math.abs(_1.d)>Math.abs(_1.k[_1.n-2])*100*_2);if(_5){return 3}else if(Math.abs(_1.d)=2;){_1.k[i]=_1.qk[i-2]}}else{var _5=(_2==1?_1.b:_1.a);if(Math.abs(_1.a1)>Math.abs(_5)*_3*10){_1.a7/=_1.a1;_1.a3/=_1.a1;_1.k[0]=_1.qp[0];_1.k[1]=_1.qp[1]-_1.a7*_1.qp[0];for(var i=_1.n;(--i)>=2;){_1.k[i]=(_1.a3*_1.qk[i-2]-_1.a7*_1.qp[i-1]+_1.qp[i])}}else{_1.k[0]=0;_1.k[1]=-_1.a7*_1.qp[0];for(var i=_1.n;(--i)>=2;){_1.k[i]=_1.a3*_1.qk[i-2]-_1.a7*_1.qp[i-1]}}}},$144f:function(_1,_2){if(_2!=3){var _3,_4;if(_2==2){_3=(_1.a+_1.g)*_1.f+_1.h;_4=(_1.f+_1.u)*_1.c+_1.v*_1.d}else{_3=_1.a+_1.u*_1.b+_1.h*_1.f;_4=_1.c+(_1.u+_1.v*_1.f)*_1.d} var _5=-_1.k[_1.n-1]/_1.p[_1.nn-1];var _6=-(_1.k[_1.n-2]+_5*_1.p[_1.n-1])/_1.p[_1.nn-1];var _7=_1.v*_6*_1.a1;var _8=_5*_1.a7;var _9=_5*_5*_1.a3;var _10=_7-_8-_9;var _11=_4+_5*_3-_10;if(_11!=0){var _12=_1.u-(_1.u*(_9+_8)+_1.v* (_5*_1.a1+_6*_1.a7))/_11;var _13=_1.v*(_10/_11+1);return{uu:_12,vv:_13}}} return{uu:0,vv:0}},$144c:function(_1,_2,_3,_4){var q=new Array(_1),b=q[0]=_4[0],a=q[1]=_4[1]-_2*b;for(var i=2;i<_1;++i){var c=_4[i]-_2*a-_3*b;q[i]=c;b=a;a=c} return{q:q,a:a,b:b}},$144a:function(_1,_2,_3){var _4=0,_5=0,_6=0,_7=0;if(_1==0){_4=0;if(_2!=0){_4=-_3/_2} _6=0;_5=0;_7=0;return{sr:_4,si:_5,lr:_6,li:_7}}else if(_3==0){_4=0;_6=-_2/_1;_5=0;_7=0;return{sr:_4,si:_5,lr:_6,li:_7}} var b=_2/2,d=0,e=0;if(Math.abs(b)=0){d=-d} _6=(-b+d)/_1;_4=0;if(_6!=0){_4=_3/_6/_1} _5=0;_7=0;return{sr:_4,si:_5,lr:_6,li:_7}}},$108y:function(_1,_2){if(_1<0){_1=-_1} if(_2<0){_2=-_2} if(_1==0){return _2}else if(_2==0){return _1}else{var _3=_1,_4=_2,_5=0;while((_5=_3%_4)!=0){_3=_4;_4=_5} return _4}},$1615:function(_1){return(isc.isAn.Object(_1)&&isc.isAn.Array(_1.translate)&&_1.translate.length==2&&isc.isA.Number(_1.translate[0])&&isc.isA.Number(_1.translate[1])&&isc.isAn.Array(_1.scale)&&_1.scale.length==2&&isc.isA.Number(_1.scale[0])&&isc.isA.Number(_1.scale[1])&&isc.isA.Number(_1.xShearFactor)&&isc.isA.Number(_1.yShearFactor)&&isc.isA.Number(_1.rotation)&&isc.isAn.Array(_1.rotationCenter)&&_1.rotationCenter.length==2&&isc.isA.Number(_1.rotationCenter[0])&&isc.isA.Number(_1.rotationCenter[1]))},$1616:function(_1,_2,_3,_4,_5,_6){this.translate=_1;this.scale=_2;this.xShearFactor=_3;this.yShearFactor=_4;this.rotation=_5;this.rotationCenter=_6}};isc.defineClass("AffineTransform").addClassProperties({getRotateTransform:function(_1,_2,_3){var c=isc.Math.cosdeg(_1),s=isc.Math.sindeg(_1);return isc.AffineTransform.create(c,-s,-c*_2+s*_3+_2,s,c,-s*_2-c*_3+_3)},getTranslateTransform:function(_1,_2){return isc.AffineTransform.create(1,0,_1,0,1,_2)},$147f:isc.AffineTransform.create(),$147g:function(){return isc.AffineTransform.$147f},$146s:{dx:0,dy:0,sx:0,sy:0,kx:0,ky:0,theta:0,cx:0,cy:0,h00:0,h01:0,h02:0,h10:0,h11:0,h12:0},$145r:function(_1,_2,_3){var _4=_1.m00,_5=_1.m01,_6=_1.m02,_7=_1.m10,_8=_1.m11,_9=_1.m12,_10=isc.AffineTransform.$146s;if(_4==0&&_5==0&&_7==0&&_8==0){_10.sx=_10.sy=_10.kx=_10.ky=_10.theta=0;_10.dx=_10.h02=_6;_10.dy=_10.h12=_9;_10.h00=_10.h01=_10.h10=_10.h11;return _10} var _11=1e-9,_12=_4*_8-_5*_7,_13=(Math.abs(_12)<_11);var _14=Math.abs(_12),_15=(_12<0?-1:1),_16=_4+_15*_8,_17=_5-_15*_7,_18=_7-_15*_5,_19=_8+_15*_4,_20=_16*_19-_17*_18,_21=Math.sqrt(Math.abs(_20));var _22=(_20<0),_23=Math.atan2(_18,_16);_16/=_21;_17/=_21;_18/=_21;_19/=_21;var _24=(_4*_4+_7*_7+_14)/_21,_25=(_4*_5+_7*_8)/_21,_26=_25,_27=(_5*_5+_8*_8+_14)/_21;var c=Math.cos(_23),s=Math.sin(_23),_30=c*c,_31=s*s,_32=Math.cos(2*_23),_33=Math.sin(2*_23),_34=0,_35=0,_36=0,_37=0;if(_22){_34=_30*_24+_33*_25+_31*_27;_35=-_32*_25+c*s*(_24-_27);_36=_35;_37=_30*_27-_33*_25+_31*_24}else{_34=_30*_24-_33*_25+_31*_27;_35=_32*_25+c*s*(_24-_27);_36=_35;_37=_30*_27+_33*_25+_31*_24} var _38=(_34*_37-_35*_36);var _39=0,_40=0,_41=0,_42=0,_43=0,_44=0;if(_22){var _45=_33-s,_46=c-_32,_21=(-_2*_46+_3*_45),_47=(_2*_45+_3*_46);_43=_6-(_34*_21+_35*_47);_44=_9-(_35*_21+_37*_47);_40=_33*_35-_32*_37;_42=(_32*_35+_33*_37)/_40;_39=-_38/_40;_41=(_33*_34-_32*_35)/_39}else{var _45=(_3*s+_2*(1-c)),_46=(-_2*s+_3*(1-c));_43=_6-(_45*_34+_46*_35);_44=_9-(_45*_35+_46*_37);if(_34==0||_37==0||_35==0){_39=_34;_40=_37;_41=_42=0}else if(_38==0){_39=_34;_40=_37;_41=_42=0}else{_39=_38/_37;_40=_37;_41=_35/_39;_42=_35/_40}} _10.dx=_43;_10.dy=_44;_10.sx=_39;_10.sy=_40;_10.kx=_41;_10.ky=_42;_10.theta=_23;_10.cx=_2;_10.cy=_3;_10.h00=_24;_10.h01=_25;_10.h10=(_22?-_26:_26);_10.h11=(_22?-_27:_27);_10.h02=_6*c+_9*s;_10.h12=-_6*s+_9*c;return _10},recompose:function(_1,_2){if(_2==null){_2=isc.AffineTransform.create()} if(_1==null){return} var _3=0,_4=0,_5=1,_6=1,_7=0,_8=0,_9=0,_10=0,_11=0;if(isc.isAn.Array(_1.translate)){if(isc.isA.Number(_1.translate[0])){_3=_1.translate[0]} if(isc.isA.Number(_1.translate[1])){_4=_1.translate[1]}} if(isc.isAn.Array(_1.scale)){if(isc.isA.Number(_1.scale[0])){_5=_1.scale[0]} if(isc.isA.Number(_1.scale[1])){_6=_1.scale[1]}} if(isc.isA.Number(_1.xShearFactor)){_7=_1.xShearFactor} if(isc.isA.Number(_1.yShearFactor)){_8=_1.yShearFactor} if(isc.isA.Number(_1.rotation)){_9=_1.rotation*Math.PI/180} if(isc.isAn.Array(_1.rotationCenter)){if(isc.isA.Number(_1.rotationCenter[0])){_10=_1.rotationCenter[0]} if(isc.isA.Number(_1.rotationCenter[1])){_11=_1.rotationCenter[1]}} var _12=Math.sin(_9),_13=Math.cos(_9),_14=_5*_12,_15=_5*_13,_16=_6*_12,_17=_6*_13,_18=_7*_8+1,_19=_8*_11-_10,_20=_8*_10+_11;_2.setTransform(_7*_14+_18*_15,-_18*_14+_7*_15,(_7*_19+_11)*_14+(_7*_20+_10)*_5*(1-_13)+_3,_16+_8*_17,_17-_8*_16,_19*_16+_20*_6*(1-_13)+_4);return _2}});isc.A=isc.AffineTransform.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.m00=1;isc.A.m01=0;isc.A.m02=0;isc.A.m10=0;isc.A.m11=1;isc.A.m12=0;isc.A.addPropertiesOnCreate=false;isc.B.push(isc.A.init=function isc_AffineTransform_init(_1,_2,_3,_4,_5,_6){if(isc.isA.Number(_1)&&isc.isA.Number(_2)&&isc.isA.Number(_3)&&isc.isA.Number(_4)&&isc.isA.Number(_5)&&isc.isA.Number(_6)) {this.m00=_1;this.m01=_2;this.m02=_3;this.m10=_4;this.m11=_5;this.m12=_6}else if(isc.Math.$1615(_1)){return isc.AffineTransform.recompose(_1)}else{var _7=arguments.length;for(var i=0;i<_7;++i){var _9=arguments[i];if(isc.isAn.Object(_9)){isc.addProperties(this,_9)}}} return this.Super("init",arguments)},isc.A.duplicate=function isc_AffineTransform_duplicate(){return isc.AffineTransform.create(this.m00,this.m01,this.m02,this.m10,this.m11,this.m12)},isc.A.$152v=function isc_AffineTransform__copy(_1){_1.setTransform(this.m00,this.m01,this.m02,this.m10,this.m11,this.m12);return _1},isc.A.getDeterminant=function isc_AffineTransform_getDeterminant(){return this.m00*this.m11-this.m10*this.m01},isc.A.getInverse=function isc_AffineTransform_getInverse(_1){var _2=this.getDeterminant(),_3=isc.isA.Number(_2)&&_2!=0;if(!_3)return null;if(_1==null){_1=isc.AffineTransform.create()} _1.setTransform(this.m11/_2,-this.m01/_2,(this.m01*this.m12-this.m11*this.m02)/_2,-this.m10/_2,this.m00/_2,(this.m10*this.m02-this.m00*this.m12)/_2);return _1},isc.A.leftMultiply=function isc_AffineTransform_leftMultiply(_1){var _2=this.m00,_3=this.m10;this.m00=_1.m00*_2+_1.m01*_3;this.m10=_1.m10*_2+_1.m11*_3;_2=this.m01;_3=this.m11;this.m01=_1.m00*_2+_1.m01*_3;this.m11=_1.m10*_2+_1.m11*_3;_2=this.m02;_3=this.m12;this.m02=_1.m00*_2+_1.m01*_3+_1.m02;this.m12=_1.m10*_2+_1.m11*_3+_1.m12;return this},isc.A.rightMultiply=function isc_AffineTransform_rightMultiply(_1){var _2=this.m00,_3=this.m01;this.m00=_2*_1.m00+_3*_1.m10;this.m01=_2*_1.m01+_3*_1.m11;this.m02=_2*_1.m02+_3*_1.m12+this.m02;_2=this.m10;_3=this.m11;this.m10=_2*_1.m00+_3*_1.m10;this.m11=_2*_1.m01+_3*_1.m11;this.m12=_2*_1.m02+_3*_1.m12+this.m12;return this},isc.A.preRotate=function isc_AffineTransform_preRotate(_1,_2,_3){return this.leftMultiply(isc.AffineTransform.getRotateTransform(_1,_2,_3))},isc.A.rotate=function isc_AffineTransform_rotate(_1,_2,_3){return this.rightMultiply(isc.AffineTransform.getRotateTransform(_1,_2,_3))},isc.A.preScale=function isc_AffineTransform_preScale(_1,_2){this.m00*=_1;this.m01*=_1;this.m02*=_1;this.m10*=_2;this.m11*=_2;this.m12*=_2;return this},isc.A.scale=function isc_AffineTransform_scale(_1,_2){this.m00*=_1;this.m01*=_2;this.m10*=_1;this.m11*=_2;return this},isc.A.preTranslate=function isc_AffineTransform_preTranslate(_1,_2){this.m02+=_1;this.m12+=_2;return this},isc.A.translate=function isc_AffineTransform_translate(_1,_2){this.m02+=this.m00*_1+this.m01*_2;this.m12+=this.m10*_1+this.m11*_2;return this},isc.A.preXShear=function isc_AffineTransform_preXShear(_1){this.m00+=_1*this.m10;this.m01+=_1*this.m11;this.m02+=_1*this.m12;return this},isc.A.xShear=function isc_AffineTransform_xShear(_1){this.m01+=_1*this.m00;this.m11+=_1*this.m10;return this},isc.A.preYShear=function isc_AffineTransform_preYShear(_1){this.m10+=_1*this.m00;this.m11+=_1*this.m01;this.m12+=_1*this.m02;return this},isc.A.yShear=function isc_AffineTransform_yShear(_1){this.m00+=_1*this.m01;this.m10+=_1*this.m11;return this},isc.A.transform=function isc_AffineTransform_transform(_1,_2,_3){if(isc.isAn.Array(_1)){_3=_2;_2=_1[1];_1=_1[0]} if(!isc.isAn.Array(_3)){_3=new Array(2)} _3[0]=this.m00*_1+this.m01*_2+this.m02;_3[1]=this.m10*_1+this.m11*_2+this.m12;return _3},isc.A.setTransform=function isc_AffineTransform_setTransform(_1,_2,_3,_4,_5,_6){this.m00=_1;this.m01=_2;this.m02=_3;this.m10=_4;this.m11=_5;this.m12=_6},isc.A.decompose=function isc_AffineTransform_decompose(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]} if(!(isc.isA.Number(_1)&&isc.isA.Number(_2))){_1=_2=0} var _3=isc.AffineTransform.$145r(this,_1,_2);return new isc.Math.$1616([_3.dx,_3.dy],[_3.sx,_3.sy],_3.kx,_3.ky,_3.theta*180/Math.PI,[_1,_2])});isc.B._maxIndex=isc.C+20;isc.AffineTransform.getPrototype().toString=function(){return"["+this.m00+" , "+this.m01+" , "+this.m02+"]\n["+this.m10+" , "+this.m11+" , "+this.m12+"]"};isc.defineClass("DateUtil");isc.A=isc.DateUtil;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$1329=function isc_c_DateUtil__min(_1,_2){return(_1.getTime()<_2.getTime()?_1:_2)},isc.A.$133a=function isc_c_DateUtil__max(_1,_2){return(_1.getTime()<_2.getTime()?_2:_1)},isc.A.format=function isc_c_DateUtil_format(_1,_2){if(!isc.isA.String(_2)){isc.logWarn("Cannot use Date format '"+_2+"' - not a String");return _1.toString()} var p=function p(_5){return(_5.toString().length==1)?"0"+_5:_5};return _2?_2.replace(/dd?d?d?|EE?E?E?|MM?M?M?|yy?y?y?|YY?Y?Y?|LL?L?L?|ww?|CC?|cc?|DD?|hh?|HH?|mm?|ss?|a|u/g,function(_5){switch(_5){case"hh":var _4=_1.getHours();if(_2.contains("a")&&_4==0)_4=12;return p(_4<13?_4:(_4-12));case"h":var _4=_1.getHours();if(_2.contains("a")&&_4==0)_4=12;return _4<13?_4:(_4-12);case"HH":var _4=_1.getHours();if(_2.contains("a")&&_4==0)_4=12;return p(_4);case"H":var _4=_1.getHours();if(_2.contains("a")&&_4==0)_4=12;return _4;case"mm":return p(_1.getMinutes());case"m":return _1.getMinutes();case"ss":return p(_1.getSeconds());case"s":return _1.getSeconds();case"yyyy":return _1.getFullYear();case"yy":return _1.getFullYear().toString().substring(2,4);case"YYYY":return isc.DateUtil.getWeekNumber(_1)[0];case"YY":return isc.DateUtil.getWeekNumber(_1)[0].toString().substring(2,4);case"dddd":case"EEEE":return _1.getDayName();case"ddd":case"E":case"EE":case"EEE":return _1.getShortDayName();case"dd":return p(_1.getDate());case"d":return _1.getDate().toString();case"DD":return p(isc.DateUtil.getDayNumber(_1));case"D":return isc.DateUtil.getDayNumber(_1).toString();case"u":return(_1.getDay()||7)+"";case"MMMM":return _1.getMonthName();case"MMM":return _1.getShortMonthName();case"MM":return p((_1.getMonth()+1));case"M":return _1.getMonth()+1;case"w":return isc.DateUtil.getWeekNumber(_1)[1];case"ww":return p(isc.DateUtil.getWeekNumber(_1)[1]);case"a":return _1.getHours()<12?isc.Time.AMIndicator:isc.Time.PMIndicator;default:return""}}):""},isc.A.getWeekNumber=function isc_c_DateUtil_getWeekNumber(_1){var d=new Date(_1);d.setHours(0,0,0);d.setDate(d.getDate()+4-(d.getDay()||7));var _3=new Date(d.getFullYear(),0,1);var _4=Math.ceil((((d-_3)/86400000)+1)/7);return[d.getFullYear(),_4]},isc.A.getDayNumber=function isc_c_DateUtil_getDayNumber(_1){var d=new Date(_1);d.setHours(0,0,0);var _3=new Date(d.getFullYear(),0,1);return Math.ceil(((d-_3)/86400000)+1)},isc.A.createLogicalDate=function isc_c_DateUtil_createLogicalDate(_1,_2,_3,_4){var d=new Date();d.setHours(12,0,0,0);_1=(_1!=null?_1:d.getFullYear());_2=(_2!=null?_2:d.getMonth());_3=(_3!=null?_3:d.getDate());d.setFullYear(_1,_2,_3);if(_4){var _6=(d.getFullYear()==_1&&d.getMonth()==_2&&d.getDate()==_3);if(!_6)return null} d.logicalDate=true;return d});isc.B._maxIndex=isc.C+6;isc.addGlobal("timeStamp",function(){return new Date().getTime()});isc.addGlobal("timestamp",isc.timeStamp);Date.prototype.Class="Date";Date.Class="Date";isc.Date=Date;isc.A=Date;isc.A.INVALID_DATE_STRING="Invalid date format";isc.A=Date;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$64g={toUSShortDate:"MDY",toUSShortDateTime:"MDY",toUSShortDatetime:"MDY",toEuropeanShortDate:"DMY",toEuropeanShortDateTime:"DMY",toEuropeanShortDatetime:"DMY",toJapanShortDate:"YMD",toJapanShortDateTime:"YMD",toJapanShortDatetime:"YMD"};isc.A.$100d=(1000*60*60*24);isc.A.$100s=0;isc.A.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];isc.A.derivedShortMonthNameLength=3;isc.A.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];isc.B.push(isc.A.newInstance=function isc_Date_newInstance(_1,_2,_3,_4,_5,_6,_7){return new Date(_1,_2,_3,_4,_5,_6,_7)},isc.A.create=function isc_Date_create(_1,_2,_3,_4,_5,_6,_7){var _8;if(_1===_8)return new Date();if(_2===_8)return new Date(_1);if(_3===_8)_3=0;if(_4===_8)_4=0;if(_5===_8)_5=0;if(_6===_8)_6=0;if(_7===_8)_7=0;return new Date(_1,_2,_3,_4,_5,_6,_7)},isc.A.createLogicalDate=function isc_Date_createLogicalDate(_1,_2,_3,_4){return isc.DateUtil.createLogicalDate(_1,_2,_3,_4)},isc.A.createLogicalTime=function isc_Date_createLogicalTime(_1,_2,_3,_4){return isc.Time.createLogicalTime(_1,_2,_3,_4)},isc.A.createDatetime=function isc_Date_createDatetime(_1,_2,_3,_4,_5,_6,_7,_8){var _9=_4!=null,_10=_5!=null,_11=_6!=null;if(isc.isA.String(_4))_4=parseInt(_4||12,10);if(isc.isA.String(_5))_5=parseInt(_5||0,10);if(isc.isA.String(_6))_6=parseInt(_6||0,10);var _12;if(!isc.Time.$854){_12=new Date(_1,_2,_3);if(_9){if(_7!=null)_12.setHours(_4,_5,_6,_7);else if(_11)_12.setHours(_4,_5,_6);else if(_10)_12.setHours(_4,_5);else _12.setHours(_4)} if(!_8)return _12;var _13=(_12.getFullYear()==_1&&_12.getMonth()==_2&&_12.getDate()==_3&&(!_9||_12.getHours()==_4)&&(!_10||_12.getMinutes()==_5)&&(!_11||_12.getSeconds()==_6));return(_13?_12:null)}else{if(_4==null)_4=0;if(_5==null)_5=0;if(_6==null)_6=0;if(_7==null)_7=0;_12=new Date(Date.UTC(_1,_2,_3,_4,_5,_6,_7));if(_8){var _13=(_12.getUTCFullYear()==_1&&_12.getUTCMonth()==_2&&_12.getUTCDate()==_3&&(!_9||_12.getUTCHours()==_4)&&(!_10||_12.getUTCMinutes()==_5)&&(!_11||_12.getUTCSeconds()==_6));if(!_13)_12=null} if(_12!=null){_12.$68d(-isc.Time.UTCHoursDisplayOffset,-isc.Time.UTCMinutesDisplayOffset);_12.$68d(-isc.Time.getUTCHoursDisplayOffset(_12,0),-isc.Time.getUTCMinutesDisplayOffset(_12,0))} return _12}},isc.A.getLogicalDateOnly=function isc_Date_getLogicalDateOnly(_1){if(!isc.isA.Date(_1)){isc.logWarn("getLogicalDateOnly() passed invalid value:"+_1+". Returning null.");return null} var _2,_3,_4;if(_1.logicalDate){_2=_1.getFullYear();_3=_1.getMonth();_4=_1.getDate()}else{var _5=_1.$68g(isc.Time.getUTCHoursDisplayOffset(_1),isc.Time.getUTCMinutesDisplayOffset(_1));_5.$68d(0,_5.getTimezoneOffset());_3=_5.getMonth();_4=_5.getDate();_2=_5.getFullYear()} return this.createLogicalDate(_2,_3,_4)},isc.A.getLogicalTimeOnly=function isc_Date_getLogicalTimeOnly(_1){if(!isc.isA.Date(_1)){isc.logWarn("getLogicalTimeOnly() passed invalid value:"+_1+". Returning null.");return null} var _2=0,_3=0;if(!_1.logicalTime){_2=isc.Time.getUTCHoursDisplayOffset(_1);_3=isc.Time.getUTCMinutesDisplayOffset(_1)+_1.getTimezoneOffset()} return this.createLogicalTime(_1.getHours()+_2,_1.getMinutes()+_3,_1.getSeconds(),_1.getMilliseconds())},isc.A.combineLogicalDateAndTime=function isc_Date_combineLogicalDateAndTime(_1,_2){var _3=isc.isA.Date(_1),_4=isc.isA.Date(_2);if(!_3||!_4){if(_3){return this.createDatetime(_1.getFullYear(),_1.getMonth(),_1.getDate(),0,0,0)}else if(_4){return _2.duplicate()}else{isc.logWarn("combineLogicalDateAndTime passed invalid parameters:"+_1+" and "+_2+". Returning null.");return null}} var _5=_2.getHours(),_6=_2.getMinutes();return this.createDatetime(_1.getFullYear(),_1.getMonth(),_1.getDate(),_5,_6,_2.getSeconds(),_2.getMilliseconds())},isc.A.compareDates=function isc_Date_compareDates(_1,_2){if(_1==_2)return 0;var _3=(isc.isA.Date(_1)?_1.getTime():0),_4=(isc.isA.Date(_2)?_2.getTime():0);return _3>_4?-1:(_4>_3?1:0)},isc.A.compareLogicalDates=function isc_Date_compareLogicalDates(_1,_2){if(_1==_2)return 0;if(!isc.isA.Date(_1)||!isc.isA.Date(_2))return false;var _3=_1.getFullYear(),_4=_1.getMonth(),_5=_1.getDate(),_6=_2.getFullYear(),_7=_2.getMonth(),_8=_2.getDate();var _9=_3*10000+_4*100+_5,_10=_6*10000+_7*100+_8;return _9>_10?-1:(_10>_9?1:0)},isc.A.getJulianDayNumber=function isc_Date_getJulianDayNumber(_1,_2,_3){var y=_1,m=_2+1,d=_3;if(m<=2){--y;m+=12} var a=parseInt(y/100),b=parseInt(a/4),c=2-a+b,e=parseInt(365.25*(y+4716)),f=parseInt(30.6001*(m+1)) return c+d+e+f-1524},isc.A.$1091=function isc_Date__getWeekdayCounts(){var _1=isc.Date.getWeekendDays();var _2=_1.$1092;if(!_2){var _3={},_4=0;for(var i=0;i<_1.length;++i){if(!_3[_1[i]]){++_4;_3[_1[i]]=true}} _2=[];for(var d=0;d<=6;++d){var _7=0;var _8=[0];for(var _9=1;_9<7;++_9){if(!_3[(d+_9-1)%7])++_7;_8.push(_7)} _2[d]=_8} _2.$1093=_4;_1.$1092=_2} return _2},isc.A.$1094=function isc_Date__getDayDiff(_1,_2,_3,_4){var _5,_6;var _7=isc.Date.compareDates(_1,_2);var _8=(_7>0?1:-1);if(_7>=0){if(_4!==false){_5=isc.Date.getLogicalDateOnly(_1);_6=isc.Date.getLogicalDateOnly(_2)}else{_5=_1;_6=_2}}else{if(_4!==false){_5=isc.Date.getLogicalDateOnly(_2);_6=isc.Date.getLogicalDateOnly(_1)}else{_5=_2;_6=_1}} var _9=isc.Date.getJulianDayNumber(_5.getFullYear(),_5.getMonth(),_5.getDate()),_10=isc.Date.getJulianDayNumber(_6.getFullYear(),_6.getMonth(),_6.getDate());if(_3){var _11=_10-_9;var _12=isc.Date.$1091();return _8*(parseInt(_11/7)*(7-_12.$1093)+_12[_5.getDay()][_11%7])}else{return _8*(_10-_9)}},isc.A.setInputFormat=function isc_Date_setInputFormat(_1){this.$ei=_1},isc.A.getInputFormat=function isc_Date_getInputFormat(){if(this.$ei!=null)return this.$ei;return this.mapDisplayFormatToInputFormat("toShortDate")},isc.A.mapDisplayFormatToInputFormat=function isc_Date_mapDisplayFormatToInputFormat(_1){if(_1==null||_1=="toShortDate"){_1=Date.prototype.$el}else if(_1=="toNormalDate"){_1=Date.prototype.formatter} if(isc.isA.Function(_1)){isc.Log.logInfo("Unable to determine input format associated with display format function - returning default input format","Date");return this.$ei||"MDY"} var _2=this.$64g[_1];if(_2!=null&&isc.isA.String(_2))return _2;if(_1=="toSerializeableDate")return this.parseSchemaDate;isc.Log.logInfo("Unable to determine input format associated with display format "+_1+" - returning default input format","Date");return this.$ei||"MDY"},isc.A.parseInput=function isc_Date_parseInput(_1,_2,_3,_4,_5){var _6=(_5==false);if(isc.isA.Date(_1))return _1;if(!isc.isA.String(_1)||isc.isAn.emptyString(_1)){return null} var _7=_1;_1=_1.trim();if(_1.startsWith("$$DATESTAMP$$:")){return new Date(parseInt(_1.substring(14)))} if(_1.startsWith("$$DATE$$:")){_1=_1.substring(9).trimLeft()} if(_2==null)_2=this.getInputFormat();if(isc.isA.Function(Date[_2]))_2=Date[_2];if(isc.isA.Function(_2)){return _2(_7,_3,_4)} var _8=this.$ej(_1,_2);if(_8!=null){var _9=_8[0],_10=_9&&_9.contains("-");if(_9&&_10)_9=_9.replaceAll("-","");if(_9){if(_9.length<=2){_9=parseInt(_9,10);if(_3!=null){if(_9<_3)_9+=2000;else _9+=1900} _8[0]=_9}else if(_9.length==3){_8[0]="0"+_9.toString()}else{_8[0]=_9} if(_10)_8[0]="-"+_8[0]} if(_6){return Date.createLogicalDate(_8[0],_8[1],_8[2],_4)}else{return Date.createDatetime(_8[0],_8[1],_8[2],_8[3],_8[4],_8[5],null,_4)}}else{return null}},isc.A.isDatetimeString=function isc_Date_isDatetimeString(_1,_2){_2=_2||isc.Date.getInputFormat();if(!isc.isA.Function(_2)){var _3=this.$ej(_1,_2,false);if(_3==null)return false;return(_3[3]!=null&&!isc.isA.emptyString(_3[3]))&&(_3[4]!=null&&!isc.isA.emptyString(_3[4]))} if(!_1.contains(" "))return false;var _4=_1.lastIndexOf(":");if(_4<1)return false;if(isNaN(_1.substring(_4-1,_4))||isNaN(_1.substring(_4+1,_4+2))) {return false} return true},isc.A.parseSchemaDate=function isc_Date_parseSchemaDate(_1){if(isc.isA.Date(_1))return _1;if(!isc.isA.String(_1))_1=(_1.toString?_1.toString():_1+"");var _2=_1.match(/(\d{4})[\/-](\d{2})[\/-](\d{2})([T ](\d{2}):(\d{2})(:(\d{2}))?)?(\.(\d+))?([+-]\d\d?:\d{2}|Z)?/);if(_2==null)return null;_1=_1.trim();var _3=8;var _4=10;var _5=11;var _6;if(!_2[4]){if(_1.length>10&&_1.contains(" "))return null;_6=Date.createLogicalDate(_2[1],_2[2]-1,_2[3])}else if(!_2[_4]){_6=new Date(Date.UTC(_2[1],_2[2]-1,_2[3],_2[5],_2[6],_2[_3]||0))}else{var _7=_2[_4];if(_7.length!=3){var _8=Math.pow(10,3-_7.length);_7=Math.round(parseInt(_7,10)*_8)} _6=new Date(Date.UTC(_2[1],_2[2]-1,_2[3],_2[5],_2[6],_2[_3]||0,_7))} if(_2[_5]&&_2[_5].toLowerCase()!="z"){var _9=_2[_5].split(":"),H=_9[0],_11=H&&H.startsWith("-"),M=_9[1];H=parseInt(H,10);M=parseInt(M,10);var _13=_6.getTime();if(isc.isA.Number(H))_13-=(3600000*H);if(isc.isA.Number(M))_13-=(60000*M*(_11?-1:1));_6.setTime(_13)} return _6},isc.A.parseDate=function isc_Date_parseDate(_1,_2,_3,_4){return this.parseInput(_1,_2,_3,_4)},isc.A.parseDateTime=function isc_Date_parseDateTime(_1,_2,_3,_4){return this.parseDatetime(_1,_2,_3,_4)},isc.A.parseDatetime=function isc_Date_parseDatetime(_1,_2,_3,_4){return this.parseInput(_1,_2,_3,_4)},isc.A.parseServerDate=function isc_Date_parseServerDate(_1,_2,_3){return Date.createLogicalDate(_1,_2,_3)},isc.A.parseServerTime=function isc_Date_parseServerTime(_1,_2,_3){return Date.createLogicalTime(_1,_2,_3)},isc.A.$ej=function isc_Date__splitDateString(_1,_2,_3){var _4=isc.isA.Function(_2);if(_3==null)_3=true;var _5,_6,_7,_8,_9,_10;var _11=_2&&!_4?_2.indexOf("M"):0,_12=_2&&!_4?_2.indexOf("D"):1,_13=_2&&!_4?_2.indexOf("Y"):2;if(isc.Browser.isSafari&&isc.Browser.safariVersion<=312){var _14=this.$ek(_1,_11,_12,_13,_3);_7=_14[0];_5=_14[1];_6=_14[2];_8=_14[3];_9=_14[4];_10=_14[5]}else{var _15=new RegExp(/^\s*(-?\d{1,4})[^\d](-?\d{1,4})[^\d](-?\d{1,4})([^\d](\d{1,2})[^\d](\d\d)[^\d]?(\d\d)?)?\s*$/),_16=_1.match(_15);if(_16==null)return null;_5=_16[_11+1]-1;_6=_16[_12+1];_7=_16[_13+1];_8=_16[5];if(_3&&_8==null)_8=0;_9=_16[6];if(_3&&_16[6]==null)_9=0;_10=_16[7];if(_3&&_16[7]==null)_10=0} var _17=_3?isc.isA.Number(_7-_5-_6-_8-_9-_10):isc.isA.Number(_7-_5-_6);if(_17){return([_7,_5,_6,_8!=null?_8%24:null,_9,_10])} else return null},isc.A.setNormalDisplayFormat=function isc_Date_setNormalDisplayFormat(_1){if(isc.isA.Function(Date.prototype[_1])||isc.isA.Function(_1)||isc.isA.String(_1)) {Date.prototype.formatter=_1}},isc.A.setNormalDateDisplayFormat=function isc_Date_setNormalDateDisplayFormat(_1){this.setNormalDisplayFormat(_1)},isc.A.setNormalDatetimeDisplayFormat=function isc_Date_setNormalDatetimeDisplayFormat(_1){if(isc.isA.Function(Date.prototype[_1])||isc.isA.Function(_1)||isc.isA.String(_1)) {Date.prototype.datetimeFormatter=_1}},isc.A.setShortDisplayFormat=function isc_Date_setShortDisplayFormat(_1){if(isc.isA.Function(Date.prototype[_1])||isc.isA.Function(_1)||isc.isA.String(_1)) {Date.prototype.$el=_1}},isc.A.setDefaultDateSeparator=function isc_Date_setDefaultDateSeparator(_1){Date.prototype.$em=[,,,,_1,,,,,_1,,,,null];Date.prototype.$665=_1},isc.A.getDefaultDateSeparator=function isc_Date_getDefaultDateSeparator(_1){if(Date.prototype.$665)return Date.prototype.$665;else return"/"},isc.A.setShortDatetimeDisplayFormat=function isc_Date_setShortDatetimeDisplayFormat(_1){if(isc.isA.Function(Date.prototype[_1])||isc.isA.Function(_1)||isc.isA.String(_1)) {Date.prototype.$68e=_1}},isc.A.setFiscalCalendar=function isc_Date_setFiscalCalendar(_1){if(!_1.fiscalYears)_1.fiscalYears=[];Date.prototype.fiscalCalendar=_1;Date.$100e(new Date())},isc.A.getFiscalCalendar=function isc_Date_getFiscalCalendar(){if(!Date.prototype.fiscalCalendar.fiscalYears){Date.prototype.fiscalCalendar.fiscalYears=[]} return Date.prototype.fiscalCalendar},isc.A.getFiscalStartDate=function isc_Date_getFiscalStartDate(_1,_2){var _3=Date.$100e(_1,_2);return new Date(_3.year,_3.month,_3.date)},isc.A.getFiscalEndDate=function isc_Date_getFiscalEndDate(_1,_2){var _3=Date.$100e(_1,_2),_4=Date.getFiscalYear(_3.fiscalYear+1);if(_4.year<_3.fiscalYear)_4=Date.getFiscalYear(_4.fiscalYear+1);var _5=new Date(_4.startDate.getTime()-1);return _5},isc.A.$100e=function isc_Date__getFiscalYearObjectForDate(_1,_2){_2=_2||Date.getFiscalCalendar();if(!_2.fiscalYears)_2.fiscalYears=[];var _3=_2.fiscalYears;var _4=_2.defaultDate,_5=_2.defaultMonth;if(_4==null)_4=1;if(_5==null)_5=0;var _6=true;for(var i=0;i<_3.length;i++){if(_3[i].startDate==null||_3[i].endDate==null){_6=false;_3[i].startDate=Date.createDatetime(_3[i].year,_3[i].month,_3[i].date)}} _3.setSort({property:"startDate",direction:"ascending"});if(!_6){for(var i=0;i<_3.length;i++){var _8;var _9=_3[i],_10=_3[i+1];if(_10&&(_10.year==_9.year||(_10.year==_9.year+1))){_9.endDate=new Date(_10.startDate.getTime()-1)}else{_9.endDate=Date.createDatetime(_9.year+1,_5,_4);_9.endDate.setTime(_9.endDate.getTime()-1)}}} if(!isc.isA.Date(_1)){var _11=_3.find("fiscalYear",_1);if(_11!=null){return _11} var _12=_1;if(_2.defaultYearMode!="start"&&(_5!=0||_4!=1)) {_12-=1} var _13={year:_12,fiscalYear:_1,month:_5,date:_4,startDate:isc.DateUtil.getStartOf(new Date(_12,_5,_4),"d")};return _13}else{var _14=_1.getTime();_3.sortByProperty("startDate",Array.ASCENDING);for(var i=0;i<_3.length;i++){if(_14<_3[i].startDate.getTime())break;if(_14<=_3[i].endDate.getTime()){return _3[i]}} var _15=_1.getFullYear(),_16=Date.createDatetime(_15,_5,_4);if(_16.getTime()>_14){_15-=1;_16=Date.createDatetime(_15,_5,_4)} var _8=Date.createDatetime(_15+1,_5,_4);_8.setTime(_8.getTime()-1);var _17=_8.getTime();for(var i=0;i<_3.length;i++){if(_17<_3[i].endDate.getTime()){continue}else{if(_17>_3[i].startDate.getTime()){_8=new Date(_3[i].startDate.getTime()-1)}else break}} var _18=_15;if(_8.getFullYear()!=_16.getFullYear()&&_2.defaultYearMode!="start") {if(_8.getFullYear()<_1.getFullYear()){_18=_1.getFullYear();var _19=new Date(_18,_5,_4);if(_1.getTime()>_19.getTime()){_18++}}else{_18=_8.getFullYear()}} return{year:_15,fiscalYear:_18,date:_4,month:_5}}},isc.A.setShowChooserFiscalYearPickers=function isc_Date_setShowChooserFiscalYearPickers(_1){isc.DateItem.addProperties({showChooserFiscalYearPicker:_1});isc.DateChooser.addProperties({showFiscalYearChooser:_1})},isc.A.setShowChooserWeekPickers=function isc_Date_setShowChooserWeekPickers(_1){isc.DateItem.addProperties({showChooserWeekPicker:_1});isc.DateChooser.addProperties({showWeekChooser:_1})},isc.A.setFirstDayOfWeek=function isc_Date_setFirstDayOfWeek(_1){if(isc.DateChooser){if(_1==null||_1<0||_1>6) _1=0;isc.DateChooser.addProperties({firstDayOfWeek:_1})}},isc.A.getFirstDayOfWeek=function isc_Date_getFirstDayOfWeek(){if(isc.DateChooser){return isc.DateChooser.getInstanceProperty("firstDayOfWeek")} return 0},isc.A.getFiscalYear=function isc_Date_getFiscalYear(_1,_2){return Date.$100e(_1,_2)},isc.A.getFiscalWeek=function isc_Date_getFiscalWeek(_1,_2,_3){_2=_2||Date.getFiscalCalendar();var _4=Date.getFiscalStartDate(_1,_2),_5=Date.getLogicalDateOnly(_4),_6=_1.logicalDate?_1:Date.getLogicalDateOnly(_1);return this.$100t(_6,_5,_3)},isc.A.$100t=function isc_Date__getWeekOffset(_1,_2,_3){var _4=Math.round((_1-_2)/86400000);var _5=0;if(_3==null){_3=isc.DateChooser.getInstanceProperty("firstDayOfWeek")} if(_3!=null){_5=_2.getDay()-_3;if(_5<0)_5+=7} return Math.ceil((_4+_5)/7)},isc.A.setFormatter=function isc_Date_setFormatter(_1){Date.setNormalDisplayFormat(_1)},isc.A.setLocaleStringFormatter=function isc_Date_setLocaleStringFormatter(_1){if(isc.isA.Function(Date.prototype[_1])||isc.isA.Function(_1)) Date.prototype.localeStringFormatter=_1},isc.A.getShortMonthNames=function isc_Date_getShortMonthNames(_1){var _2=Date.shortMonthNames;if(_2==null)_2=Date.$41t;if(_2==null){var _3=Date.$41t=[];for(var i=0;i<12;i++){var _5=Date.createLogicalDate(2000,i,2);_3[i]=_5.deriveShortMonthName(Date.derivedShortMonthNameLength)} _2=Date.$41t} var _6=[];for(var i=0;i<12;i++){if(!_1){_6[i]=_2[i]}else{_6[i]=_2[i].substring(0,_1)}} return _6},isc.A.getMonthNames=function isc_Date_getMonthNames(){var _1=Date.monthNames;if(_1==null)_1=Date.$124r;if(_1==null){var _2=Date.$124r=[];for(var i=0;i<12;i++){var _4=Date.createLogicalDate(2000,i,2);_2[i]=_4.deriveMonthName()} _1=Date.$124r} return _1},isc.A.getShortDayNames=function isc_Date_getShortDayNames(_1){_1=_1||3;var _2=Date.shortDayNames;if(_2==null)_2=Date.$41s;if(_2==null){Date.$41s=[];var _3=new Date();_3.setDate(1);if(_3.getDay()>0)_3.setDate(_3.getDate()+(7-_3.getDay()));var _4=_3.getDate();for(var i=0;i<7;i++){_3.setDate(_4+i);Date.$41s[i]=_3.deriveShortDayName()} _2=Date.$41s} var _6=[];for(var i=0;i<7;i++){_6[i]=_2[i].substring(0,_1)} return _6},isc.A.getDayNames=function isc_Date_getDayNames(){var _1=Date.dayNames;if(_1==null)_1=Date.$124s;if(_1==null){Date.$124s=[];var _2=new Date();_2.setDate(1);if(_2.getDay()>0)_2.setDate(_2.getDate()+(7-_2.getDay()));var _3=_2.getDate();for(var i=0;i<7;i++){_2.setDate(_3+i);Date.$41s[i]=_2.deriveDayName()} _1=Date.$124s} var _5=[];for(var i=0;i<7;i++){_5[i]=_1[i]} return _5},isc.A.setWeekendDays=function isc_Date_setWeekendDays(_1){Date.weekendDays=_1},isc.A.getWeekendDays=function isc_Date_getWeekendDays(){var _1=Date.weekendDays;if(_1==null)_1=Date.$54i;if(_1==null){_1=Date.$54i=[0,6]} return _1},isc.A.getFormattedDateRangeString=function isc_Date_getFormattedDateRangeString(_1,_2){if(_1!=null&&!isc.isA.Date(_1)){_1=null} if(_2!=null&&!isc.isA.Date(_2)){_2=null} var _3=_1?_1.getMonth():null,_4=_1?_1.getShortMonthName():null,_5=_1?_1.getFullYear():null,_6=_1?_1.getDate():null,_7=_2?_2.getMonth():null,_8=_2?_2.getShortMonthName():null,_9=_2?_2.getFullYear():null,_10=_2?_2.getDate():null,_11="";if(_1&&_2){if(_5==_9){if(_3==_7){if(_6==_10){_11=_4+" "+_1.getDate()+", "+_5}else{_11=_4+" "+_1.getDate()+" - "+_2.getDate()+", "+_5}}else{_11=_4+" "+_1.getDate()+" - "+_8+" "+_2.getDate()+", "+_5}}else{_11=_4+" "+_1.getDate()+", "+_5+" - "+_8+" "+_2.getDate()+", "+_9}}else if(_1){_11=_4+" "+_1.getDate()+", "+_5}else if(_2){_11=_8+" "+_2.getDate()+", "+_9} return _11});isc.B._maxIndex=isc.C+53;isc.A=Date.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$em=[,,,,"/",,,,,"/",,,,null];isc.A.$en="MDY";isc.A.$eo="DMY";isc.A.$ep="YMD";isc.A.$en="MDY";isc.A.$w0="0";isc.A.$68f=[null,null];isc.B.push(isc.A.duplicate=function isc_Dat_duplicate(){var _1=new Date();_1.setTime(this.getTime());_1.logicalDate=this.logicalDate;_1.logicalTime=this.logicalTime;_1.$84l=this.$84l;_1.$84n=this.$84n return _1},isc.A.clearTimeFields=function isc_Dat_clearTimeFields(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this},isc.A.deriveShortDayName=function isc_Dat_deriveShortDayName(_1){var _2=this.toString();if(_1==null||_1<=0||_1>3)_1=3;return _2.substring(0,_1)},isc.A.deriveDayName=function isc_Dat_deriveDayName(){var _1=this.toString();var _2=_1.indexOf(" ");return _1.substring(0,_2)},isc.A.getShortDayName=function isc_Dat_getShortDayName(){return Date.getShortDayNames()[this.getDay()]},isc.A.getDayName=function isc_Dat_getDayName(){return Date.getDayNames()[this.getDay()]},isc.A.deriveShortMonthName=function isc_Dat_deriveShortMonthName(_1){var _2=this.toUTCString();var _3=8;var _4=Date.derivedShortMonthNameLength;if(_1==null||_1<0||_1>_4)_1=_4;if(_2.substring(6,7)==' '){_3=7} return _2.substring(_3,(_3+_1))},isc.A.deriveMonthName=function isc_Dat_deriveMonthName(){var _1=this.toUTCString();var _2=8;if(_1.substring(6,7)==' '){_2=7} var _3=_1.indexOf(" ",_2);return _1.substring(_2,(_2+_3))},isc.A.getShortMonthName=function isc_Dat_getShortMonthName(_1){return Date.getShortMonthNames(_1)[this.getMonth()]},isc.A.getMonthName=function isc_Dat_getMonthName(){return Date.getMonthNames()[this.getMonth()]},isc.A.getShortYear=function isc_Dat_getShortYear(){var _1=this.getFullYear();return(_1%100).stringify(2)},isc.A.getWeek=function isc_Dat_getWeek(_1){var _2=this;if(!this.logicalDate){_2=Date.getLogicalDateOnly(this)} var _3=Date.createLogicalDate(this.getFullYear(),0,1);return Date.$100t(_2,_3,_1)},isc.A.getFiscalCalendar=function isc_Dat_getFiscalCalendar(){return Date.getFiscalCalendar()},isc.A.getFiscalYear=function isc_Dat_getFiscalYear(_1){return Date.getFiscalYear(this,_1)},isc.A.getFiscalWeek=function isc_Dat_getFiscalWeek(_1,_2){return Date.getFiscalWeek(this,_1,_2)},isc.A.toDateStamp=function isc_Dat_toDateStamp(){return this.getUTCFullYear()+(this.getUTCMonth()+1).stringify()+this.getUTCDate().stringify()+"T"+this.getUTCHours().stringify()+this.getUTCMinutes().stringify()+this.getUTCSeconds().stringify()+"Z"},isc.A.toNormalDate=function isc_Dat_toNormalDate(_1,_2){if(!_1)_1=this.formatter;if(isc.isA.Function(_1)){return _1.apply(this,[_2])}else if(this[_1]){return this[_1](_2)}else if(isc.isA.String(_1)){return isc.DateUtil.format(this,_1)}},isc.A.toNormalDateTime=function isc_Dat_toNormalDateTime(_1,_2){return this.toNormalDatetime(_1,_2)},isc.A.toNormalDatetime=function isc_Dat_toNormalDatetime(_1,_2){if(!_1)_1=this.datetimeFormatter;return this.toNormalDate(_1,_2)},isc.A.toShortDate=function isc_Dat_toShortDate(_1,_2){if(!_1)_1=this.$el;if(isc.isA.Function(_1))return _1.apply(this,[_2]);else if(isc.isA.Function(this[_1])){if(_1=="toSerializeableDate")return this[_1]();return this[_1](_2)}else if(isc.isA.String(_1)){return isc.DateUtil.format(this,_1)} isc.logWarn("Date.toShortDate() specified formatter not understood:"+_1);return this.toUSShortDate()},isc.A.toShortDateTime=function isc_Dat_toShortDateTime(_1,_2){return this.toShortDatetime(_1,_2)},isc.A.toShortDatetime=function isc_Dat_toShortDatetime(_1,_2){if(!_1)_1=this.$68e;return this.toShortDate(_1,_2)},isc.A.setDefaultDateSeparator=function isc_Dat_setDefaultDateSeparator(_1){this.$em=[,,,,_1,,,,,_1,,,,null];this.$665=_1},isc.A.getDefaultDateSeperator=function isc_Dat_getDefaultDateSeperator(_1){if(this.$665)return this.$665;else return"/"},isc.A.$68d=function isc_Dat__applyTimezoneOffset(_1,_2,_3){if(_3==null)_3=this.getTime();if(isc.isA.Number(_1))_3+=(3600000*_1);if(isc.isA.Number(_2))_3+=(60000*_2);this.setTime(_3)},isc.A.$68g=function isc_Dat__getTimezoneOffsetDate(_1,_2){var _3=Date.$68h;if(_3==null)_3=Date.$68h=new Date();_3.$68d(_1,_2,this.getTime());return _3},isc.A.$es=function isc_Dat__toShortDate(_1,_2){if(_2==null){_2=!this.logicalDate} var _3=this.$em,_4,_5,_6;if(!_2||!isc.Time.$854){_4=this.getMonth()+1;_5=this.getDate();_6=this.getFullYear()}else{var _7=this.$68g(isc.Time.getUTCHoursDisplayOffset(this),isc.Time.getUTCMinutesDisplayOffset(this));_4=_7.getUTCMonth()+1;_5=_7.getUTCDate();_6=_7.getUTCFullYear()} var _8,_9,_10;if(_1==this.$en){_8=0;_9=5;_10=10}else if(_1==this.$eo){_9=0;_8=5;_10=10}else if(_1==this.$ep){_10=0;_8=5;_9=10}else{_9=_1.indexOf("D")*5;_10=_1.indexOf("Y")*5;_8=_1.indexOf("M")*5} _3[_9]=_5<10?this.$w0:null isc.$bk(_3,_5,_9+1,3);_3[_8]=_4<10?this.$w0:null isc.$bk(_3,_4,_8+1,3);_3[_10+1]=null;isc.$bk(_3,_6,_10,4);return _3.join(isc.emptyString)},isc.A.toUSShortDate=function isc_Dat_toUSShortDate(_1){return this.$es(this.$en,_1)},isc.A.$68i=function isc_Dat__toShortTime(_1){return isc.Time.toShortTime(this,"toShortPadded24HourTime")},isc.A.toUSShortDateTime=function isc_Dat_toUSShortDateTime(_1){return this.toUSShortDatetime(_1)},isc.A.toUSShortDatetime=function isc_Dat_toUSShortDatetime(_1){return this.toUSShortDate(_1)+" "+this.$68i(_1)},isc.A.toEuropeanShortDate=function isc_Dat_toEuropeanShortDate(_1){return this.$es(this.$eo,_1)},isc.A.toEuropeanShortDateTime=function isc_Dat_toEuropeanShortDateTime(_1){return this.toEuropeanShortDatetime()},isc.A.toEuropeanShortDatetime=function isc_Dat_toEuropeanShortDatetime(_1){return this.toEuropeanShortDate(_1)+" "+this.$68i(_1)},isc.A.toJapanShortDate=function isc_Dat_toJapanShortDate(_1){return this.$es(this.$ep,_1)},isc.A.toJapanShortDateTime=function isc_Dat_toJapanShortDateTime(_1){return this.toJapanShortDatetime(_1)},isc.A.toJapanShortDatetime=function isc_Dat_toJapanShortDatetime(_1){return this.toJapanShortDate(_1)+" "+this.$68i(_1)},isc.A.$eu=function isc_Dat__serialize(){if(isc.Comm.$ev){return isc.SB.concat('"'+this.toDBDate(),'"')}else{return isc.SB.concat("new Date(",this.getTime(),")")}},isc.A.$ew=function isc_Dat__xmlSerialize(_1,_2,_3,_4){return isc.Comm.$ex(_1,this.toSchemaDate(null,isc.Comm.$136q),_2||(this.logicalDate?"date":(this.logicalTime&&!isc.DataSource.serializeTimeAsDatetime?"time":"datetime")),_3,_4)},isc.A.toSchemaDate=function isc_Dat_toSchemaDate(_1,_2){if((_1=="date")||this.logicalDate){return isc.SB.concat(this.getFullYear().stringify(4),"-",(this.getMonth()+1).stringify(2),"-",this.getDate().stringify(2))};if((!isc.DataSource||!isc.DataSource.serializeTimeAsDatetime)&&(_1=="time"||this.logicalTime)) {var _3=isc.SB.concat(this.getHours().stringify(2),":",this.getMinutes().stringify(2),":",this.getSeconds().stringify(2));if(_2!==true){_3+="."+this.getUTCMilliseconds().stringify(3)};return _3} var _3=isc.SB.concat(this.getUTCFullYear().stringify(4),"-",(this.getUTCMonth()+1).stringify(2),"-",this.getUTCDate().stringify(2),"T",this.getUTCHours().stringify(2),":",this.getUTCMinutes().stringify(2),":",this.getUTCSeconds().stringify(2));if(_2!==true){_3+="."+this.getUTCMilliseconds().stringify(3)};return _3},isc.A.toSerializeableDate=function isc_Dat_toSerializeableDate(_1){var _2=isc.SB.create();_2.append(this.getFullYear().stringify(4),"-",(this.getMonth()+1).stringify(2),"-",this.getDate().stringify(2));_2.append(isc.Comm.xmlSchemaMode?"T":" ",isc.Time.toShortTime(this,"toPadded24HourTime"));return _2.release(false)},isc.A.toDBDate=function isc_Dat_toDBDate(){return isc.StringBuffer.concat("$$DATE$$:",this.toSerializeableDate())},isc.A.toDBDateTime=function isc_Dat_toDBDateTime(){return this.toDBDate()},isc.A.setFormatter=function isc_Dat_setFormatter(_1){this.setNormalDisplayFormat(_1)},isc.A.setLocaleStringFormatter=function isc_Dat_setLocaleStringFormatter(_1){if(isc.isA.Function(this[_1])||isc.isA.Function(_1)) this.localeStringFormatter=_1},isc.A.isBeforeToday=function isc_Dat_isBeforeToday(_1){var _2=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0).getTime();if(_1.getTime()<_2)return true;else return false},isc.A.isToday=function isc_Dat_isToday(_1){if(this.getFullYear()==_1.getFullYear()&&this.getMonth()==_1.getMonth()&&this.getDate()==_1.getDate()) return true;else return false},isc.A.isTomorrow=function isc_Dat_isTomorrow(_1){var _2=new Date(this.getFullYear(),this.getMonth(),this.getDate()+1,0);var _3=new Date(this.getFullYear(),this.getMonth(),this.getDate()+1,23);var _4=_1.getTime();if(_4>=_2.getTime()&&_4<=_3.getTime()){return true}else{return false}},isc.A.isThisWeek=function isc_Dat_isThisWeek(_1){var _2=new Date(this.getFullYear(),this.getMonth(),this.getDate()-this.getDay(),0);var _3=new Date(this.getFullYear(),this.getMonth(),this.getDate()+(7-this.getDay()),23);var _4=_1.getTime();if(_4>=_2.getTime()&&_4<=_3.getTime()){return true}else{return false}},isc.A.isNextWeek=function isc_Dat_isNextWeek(_1){var _2=new Date(this.getFullYear(),this.getMonth(),(this.getDate()-this.getDay())+7,0);var _3=new Date(this.getFullYear(),this.getMonth(),(this.getDate()-this.getDay())+14,23);var _4=_1.getTime();if(_4>=_2.getTime()&&_4<=_3.getTime()){return true}else{return false}},isc.A.isNextMonth=function isc_Dat_isNextMonth(_1){var _2=new Date(this.getFullYear(),this.getMonth());_2.setMonth(_2.getMonth()+1);if(_2.getFullYear()==_1.getFullYear()&&_2.getMonth()==_1.getMonth()){return true}else{return false}});isc.B._maxIndex=isc.C+51;Date.prototype.toBrowserString=Date.prototype.toString;Date.prototype.toBrowserLocaleString=Date.prototype.toLocaleString;Date.prototype.fiscalCalendar={defaultMonth:0,defaultDate:1,fiscalYears:[]};if(!Date.prototype.formatter)Date.setNormalDateDisplayFormat("toLocaleString");if(!Date.prototype.datetimeFormatter)Date.setNormalDatetimeDisplayFormat("toLocaleString");if(!Date.prototype.$el)Date.setShortDisplayFormat("toUSShortDate");if(!Date.prototype.$68e)Date.setShortDatetimeDisplayFormat("toUSShortDatetime");Date.prototype.iscToLocaleString=function(){var _1=this.localeStringFormatter;if(isc.isA.Function(_1))return _1.apply(this);else if(this[_1])return this[_1]()} if(!Date.prototype.localeStringFormatter) Date.prototype.localeStringFormatter="toLocaleString";isc.A=Date;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$ek=function isc_Date__splitDateViaSubstring(_1,_2,_3,_4){var _5=_4*3,_6=_1.substring(_5,_5+4);var _7=_6.length;var _8=0,_9=0;if(_2>_3)_8+=3;else _9+=3;if(_2>_4)_8+=_7+1;if(_3>_4)_9+=_7+1;var _10=_1.substring(_8,_8+2)-1;var _11=_1.substring(_9,_9+2);var _12=7+_7,_13=(_1.substring(_12,_12+2)||0),_14=(_1.substring(_12+3,_12+5)||0),_15=(_1.substring(_12+6,_12+8)||0);return[_6,_10,_11,_13,_14,_15]});isc.B._maxIndex=isc.C+1;isc.A=Date.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.toPrettyString=function isc_Dat_toPrettyString(){return this.toUSShortDatetime()});isc.B._maxIndex=isc.C+1;isc.A=Date;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.parseStandardDate=function isc_Date_parseStandardDate(_1){if(!isc.isA.String(_1))return null;var _2=_1.substring(0,4),_3=_1.substring(5,7)-1,_4=_1.substring(8,10),_5=_1.substring(11,13),_6=_1.substring(14,16),_7=_1.substring(17,19);if(_1.length<19){if(!isc.isA.Number(_2-_3-_4))return null}else{if(!isc.isA.Number(_2-_3-_4-_5-_6-_7))return null} return new Date(_2,_3,_4,_5,_6,_7)},isc.A.parseSerializeableDate=function isc_Date_parseSerializeableDate(_1){return this.parseStandardDate(_1)},isc.A.parseDBDate=function isc_Date_parseDBDate(_1){if(isc.isA.String(_1)&&_1.startsWith("$$DATE$$:")){_1=_1.substring(9) return this.parseStandardDate(_1)} return null},isc.A.parseDateStamp=function isc_Date_parseDateStamp(_1){if(_1==null||isc.isA.Date(_1))return _1;var _2=new Date(Date.UTC(_1.substring(0,4),parseInt(_1.substring(4,6),10)-1,_1.substring(6,8),_1.substring(9,11),_1.substring(11,13),_1.substring(13,15)));if(isc.isA.Date(_2))return _2;else return null},isc.A.parseShortDate=function isc_Date_parseShortDate(_1,_2){return this.parseInput(_1,"MDY",_2)},isc.A.parseShortDateTime=function isc_Date_parseShortDateTime(_1,_2){return this.parseShortDate(_1,_2)},isc.A.parsePrettyString=function isc_Date_parsePrettyString(_1,_2){return this.parseShortDate(_1,_2)},isc.A.parseEuropeanShortDate=function isc_Date_parseEuropeanShortDate(_1,_2){return this.parseInput(_1,"DMY",_2)},isc.A.parseEuropeanShortDateTime=function isc_Date_parseEuropeanShortDateTime(_1,_2){return this.parseInput(_1,"DMY",_2)},isc.A.setToZeroTime=function isc_Date_setToZeroTime(_1){if(_1==null||!isc.isA.Date(_1))return _1;var _2=_1.logicalDate;_1.logicalDate=false;var _3=_1.getTime();var _4=isc.Time.getUTCHoursDisplayOffset(_1),_5=isc.Time.getUTCMinutesDisplayOffset(_1);if(_2){var _6=new Date(_1);_6.setHours(0);_6.setMinutes(0);var _7=isc.Time.getUTCHoursDisplayOffset(_6);if(_4!=_7){_4=_7}} var _8=_4>0?24-_4:0-_4,_9=60-_5;if(_9>=60){_9-=60}else if(_9!=0){_8-=1} var _10;if(_2){_10=_1.getDate()}else{var _11=_1.$68g(_4,_5);_10=_11.getUTCDate()} _1.setUTCHours(_8);_1.setUTCMinutes(_9);var _12=_1.$68g(_4,_5),_13=_12.getUTCDate(),_14=_8;if(_13!=_10){var _15=_1.getTime()<_3;_14+=_15?24:-24;_1.setUTCHours(_14)} if(_1.getUTCHours()!=_8){_1.setTime(_3);_1.setUTCHours(_14+1);if(_1.getUTCHours()!=_8+1){_1.setTime(_3);_1.setUTCHours(_14+2)}}});isc.B._maxIndex=isc.C+10;isc.A=isc.DateUtil;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$86v={ms:true,MS:true,s:true,S:true,mn:true,MN:true,n:true,N:true,h:true,H:true,d:true,D:true};isc.A.$85j={ms:"millisecond",s:"second",mn:"minute",n:"minute",h:"hour",d:"day",w:"week",m:"month",q:"quarter",y:"year",yy:"year",yyyy:"year",dc:"decade",c:"century"};isc.B.push(isc.A.mapRelativeDateShortcut=function isc_c_DateUtil_mapRelativeDateShortcut(_1,_2){switch(_1){case"$now":return"+0MS";case"$today":if(_2=="end"){return"+0D"}else{return"-0D"} case"$startOfToday":return"-0D";case"$endOfToday":return"+0D";case"$yesterday":if(_2=="end"){return"-1d[+0D]"}else{return"-1D"} case"$startOfYesterday":return"-1D";case"$endOfYesterday":return"-1d[+0D]";case"$tomorrow":if(_2=="end"){return"+1D"}else{return"+1d[-0D]"} case"$startOfTomorrow":return"+1d[-0D]";case"$endOfTomorrow":return"+1D";case"$startOfWeek":return"-0W";case"$endOfWeek":return"+0W";case"$startOfMonth":return"-0M";case"$endOfMonth":return"+0M";case"$startOfYear":return"-0Y";case"$endOfYear":return"+0Y";case"$weekFromNow":if(_2=="end"){return"+1w[+0D]"}else{return"+1w[-0D]"} case"$weekAgo":if(_2=="end"){return"-1w[+0D]"}else{return"-1w[-0D]"} case"$monthFromNow":if(_2=="end"){return"+1m[+0D]"}else{return"+1m[-0D]"} case"$monthAgo":if(_2=="end"){return"-1m[+0D]"}else{return"-1m[-0D]"}} return _1},isc.A.getAbsoluteDate=function isc_c_DateUtil_getAbsoluteDate(_1,_2,_3,_4){if(this.isRelativeDate(_1)){if(!_3)_3=_1.rangePosition;_1=_1.value} if(_1.startsWith("$")){_1=this.mapRelativeDateShortcut(_1,_3)} var _5=_1,_6=_4?Date.createLogicalDate():new Date();if(_2!=null)_6.setTime(_2.getTime());var _7=this.getRelativeDateParts(_5);if(_7.qualifier){_7.qualifier=_7.qualifier.toUpperCase();var _8=this.getRelativeDateParts(_7.qualifier);var _9=["S","MN","N","H","D","W","M","Q","Y","YY","YYYY"];if(_9.contains(_8.period)){_6=this.dateAdd(_6,_8.period,_8.countValue,(_8.direction=="+"?1:-1),_4)}else{isc.logWarn("Invalid date-offset qualifier provided: "+_8.period+". Valid options are: S, MN (or N), H, D, W, M, Q and Y (or YY, YYYY).")}} var _10=this.dateAdd(_6,_7.period,_7.countValue,(_7.direction=="+"?1:-1),_4);if(_4)_10.isLogicalDate=true;return _10},isc.A.isRelativeDate=function isc_c_DateUtil_isRelativeDate(_1){if(isc.isA.Date(_1))return false;if(isc.isAn.Object(_1)&&_1._constructor=="RelativeDate")return true;return false},isc.A.getRelativeDateParts=function isc_c_DateUtil_getRelativeDateParts(_1){var _2=_1,_3=_2.substring(0,1),_4=_2.indexOf("["),_5=(_4>0?_2.substring(_4):null),_6=(_5!=null?_2.substring(1,_4):_2.substring(1)),_7=parseInt(_6),_8=_6.replace(_7,"");return{direction:(_3=="+"||_3=="-"?_3:"+"),qualifier:_5?_5.replace("[","").replace("]","").replace(",",""):null,countValue:isc.isA.Number(_7)?_7:0,period:_8?_8:_3}},isc.A.dateAdd=function isc_c_DateUtil_dateAdd(_1,_2,_3,_4,_5){var _6=false;if(_2==null)_2="d";if(_3==null)_3=1;if(_4==null)_4=1;if(_5==null)_5=_1.logicalDate;if(_2.length>2)_2=isc.DateUtil.getTimeUnitKey(_2);switch(_2){case"MS":case"ms":_1.setMilliseconds(_1.getMilliseconds()+(_3*_4));break;case"S":_6=true;case"s":_1.setSeconds(_1.getSeconds()+(_3*_4));break;case"MN":case"N":_6=true;case"mn":case"n":_1.setMinutes(_1.getMinutes()+(_3*_4));break;case"H":_6=true;case"h":_1.setHours(_1.getHours()+(_3*_4));break;case"D":_6=true;case"d":_1.setDate(_1.getDate()+(_3*_4));break;case"W":_6=true;case"w":_1.setDate(_1.getDate()+((_3*7)*_4));break;case"M":_6=true;case"m":var _7=isc.Date.createLogicalDate(_1.getFullYear(),_1.getMonth(),1);_7.setMonth(_7.getMonth()+(_3*_4));_7=isc.DateUtil.getEndOf(_7,_2,true);if(_7.getDate()<_1.getDate())_1.setDate(_7.getDate());_1.setMonth(_7.getMonth());_1.setFullYear(_7.getFullYear());break;case"Q":_6=true;case"q":_1.setMonth(_1.getMonth()+((_3*3)*_4));break;case"Y":case"YY":case"YYYY":_6=true;case"y":case"yy":case"yyyy":_1.setFullYear(_1.getFullYear()+(_3*_4));break;case"DC":_6=true;case"dc":_1.setFullYear(_1.getFullYear()+((_3*10)*_4));break;case"C":_6=true;case"c":_1.setFullYear(_1.getFullYear()+((_3*100)*_4));break} if(_6){if(_4>0){_1=this.getEndOf(_1,_2,_5)}else{_1=this.getStartOf(_1,_2,_5)}} return _1},isc.A.getStartOf=function isc_c_DateUtil_getStartOf(_1,_2,_3,_4){var _5,_6,_7,_8,_9,_10,_11;if(_3==null)_3=_1.logicalDate;if(_4==null&&isc.DateChooser) _4=isc.DateChooser.getInstanceProperty("firstDayOfWeek");if(_3&&this.$86v[_2]==true){this.logInfo("DateUtil.getStartOf() passed period:"+_2+" for logical date. Ignoring");var _12=new Date(_1.getTime());_12.logicalDate=true;return _12} if(!isc.Time.$854||_3){_6=_1.getMonth();_7=_1.getDate();_5=_1.getFullYear();_8=_1.getHours();_9=_1.getMinutes();_10=_1.getSeconds();_11=_1.getDay()}else{var _13=_1.$68g(isc.Time.getUTCHoursDisplayOffset(_1),isc.Time.getUTCMinutesDisplayOffset(_1));_6=_13.getUTCMonth();_7=_13.getUTCDate();_5=_13.getUTCFullYear();_8=_13.getUTCHours();_9=_13.getUTCMinutes();_10=_13.getUTCSeconds();_11=_13.getDay()} switch(_2.toLowerCase()){case"s":return Date.createDatetime(_5,_6,_7,_8,_9,_10,0);case"mn":case"n":return Date.createDatetime(_5,_6,_7,_8,_9,0,0);case"h":return Date.createDatetime(_5,_6,_7,_8,0,0,0);case"d":if(_3){return Date.createLogicalDate(_5,_6,_7)}else{return Date.createDatetime(_5,_6,_7,0,0,0,0)} case"w":var _12;if(_3){_12=Date.createLogicalDate(_5,_6,_7)}else{_12=Date.createDatetime(_5,_6,_7,0,0,0,0)} var _14=_4-_11;_12.setDate(_12.getDate()+_14);return _12;case"m":if(_3){return Date.createLogicalDate(_5,_6,1)}else{return Date.createDatetime(_5,_6,1,0,0,0,0)} case"q":var _15=_6-(_6%3);if(_3){return Date.createLogicalDate(_5,_15,1)}else{return Date.createDatetime(_5,_15,1,0,0,0,0)} case"y":case"yy":case"yyyy":if(_3){return Date.createLogicalDate(_5,0,1)}else{return Date.createDatetime(_5,0,1,0,0,0,0)} case"dc":var _16=_5-(_5%10);if(_3){return Date.createLogicalDate(_16,0,1)}else{return Date.createDatetime(_16,0,1,0,0,0,0)} case"c":var _17=_5-(_5%100);if(_3){return Date.createLogicalDate(_17,0,1)}else{return Date.createDatetime(_17,0,1,0,0,0,0)}} return _1.duplicate()},isc.A.getEndOf=function isc_c_DateUtil_getEndOf(_1,_2,_3,_4){var _5,_6,_7,_8,_9,_10,_11;if(_3==null)_3=_1.logicalDate;if(_4==null&&isc.DateChooser) _4=isc.DateChooser.getInstanceProperty("firstDayOfWeek");if(_3&&this.$86v[_2]==true){this.logInfo("DateUtil.getEndOf() passed period:"+_2+" for logical date. Ignoring");var _12=new Date(_1.getTime());_12.logicalDate=true;return _12} if(!isc.Time.$854||_3){_6=_1.getMonth();_7=_1.getDate();_5=_1.getFullYear();_8=_1.getHours();_9=_1.getMinutes();_10=_1.getSeconds();_11=_1.getDay()}else{var _13=_1.$68g(isc.Time.getUTCHoursDisplayOffset(_1),isc.Time.getUTCMinutesDisplayOffset(_1));_6=_13.getUTCMonth();_7=_13.getUTCDate();_5=_13.getUTCFullYear();_8=_13.getUTCHours();_9=_13.getUTCMinutes();_10=_13.getUTCSeconds();_11=_13.getDay()} switch(_2.toLowerCase()){case"s":return Date.createDatetime(_5,_6,_7,_8,_9,_10,999);case"mn":case"n":return Date.createDatetime(_5,_6,_7,_8,_9,59,999);case"h":return Date.createDatetime(_5,_6,_7,_8,59,59,999);case"d":if(_3){return Date.createLogicalDate(_5,_6,_7)}else{return Date.createDatetime(_5,_6,_7,23,59,59,999)} case"w":var _14=(6-(_11-_4));if(_14>=7)_14-=7;var _15=_7+_14;if(_3){return Date.createLogicalDate(_5,_6,_15)}else{return Date.createDatetime(_5,_6,_15,23,59,59,999)} case"m":var _12;if(_3){_12=Date.createLogicalDate(_5,_6+1,1);_12.setDate(_12.getDate()-1)}else{_12=Date.createDatetime(_5,_6+1,1,0,0,0,0);_12.setTime(_12.getTime()-1)} return _12;case"q":var _16=_6+3-(_6%3),_12;if(_3){_12=Date.createLogicalDate(_5,_16,1);_12.setDate(_12.getDate()-1)}else{_12=Date.createDatetime(_5,_16,1,0,0,0,0);_12.setTime(_12.getTime()-1)} return _12;case"y":case"yy":case"yyyy":if(_3){return Date.createLogicalDate(_5,11,31)}else{return Date.createDatetime(_5,11,31,23,59,59,999)} case"dc":var _17=_5+10-(_5%10);if(_3){return Date.createLogicalDate(_17,11,31)}else{return Date.createDatetime(_17,11,31,23,59,59,999)} case"c":var _18=_5+100-(_5%100);if(_3){return Date.createLogicalDate(_18,11,31)}else{return Date.createDatetime(_18,11,31,23,59,59,999)}} return _1.duplicate()},isc.A.getTimeUnitName=function isc_c_DateUtil_getTimeUnitName(_1){var _2=_1.toLowerCase();return this.$85j[_2]||_2},isc.A.getTimeUnitKey=function isc_c_DateUtil_getTimeUnitKey(_1){if(this.$85k==null){this.$85k=isc.makeReverseMap(this.$85j)} var _2=_1.toLowerCase();return this.$85k[_2]||_2},isc.A.compareTimeUnits=function isc_c_DateUtil_compareTimeUnits(_1,_2){var _3=this.getTimeUnitMilliseconds(_1),_4=this.getTimeUnitMilliseconds(_2);if(_3<=_4)return-1;if(_3==_4)return 0;return 1},isc.A.getTimeUnitMilliseconds=function isc_c_DateUtil_getTimeUnitMilliseconds(_1){var _2=this.getTimeUnitName(_1),l={millisecond:1,second:1000};l.minute=l.second*60;l.hour=l.minute*60;l.day=l.hour*24;l.week=l.day*7;l.month=l.day*30;l.quarter=l.month*3;l.year=l.day*365;l.decade=l.year*10;l.century=l.decade*10;return l[_2]},isc.A.convertPeriodUnit=function isc_c_DateUtil_convertPeriodUnit(_1,_2,_3){if(_2==_3)return _1;var _4=this.getTimeUnitKey(_2),_5=this.getTimeUnitKey(_3),_6=(_4=="ms"?_1:_1*this.getTimeUnitMilliseconds(_4)),_7=_6/this.getTimeUnitMilliseconds(_5);return _7},isc.A.getTimeUnitTitle=function isc_c_DateUtil_getTimeUnitTitle(_1){return this.getTimeUnitName(_1)},isc.A.getPeriodLength=function isc_c_DateUtil_getPeriodLength(_1,_2,_3,_4){var _5=(_2.getTime()-_1.getTime());if(_3)_5=isc.DateUtil.convertPeriodUnit(_5,"ms",_3);return _5});isc.B._maxIndex=isc.C+14;String.prototype.Class="String";isc.$ey=function(){var _1=[Array,Number,Date].getProperty("prototype");for(var i=0;i<_1.length;i++){var _3=_1[i];if(_3.toLocaleString==null){_3.toLocaleString=_3.toString}} var _4=String.prototype;if(!_4.toLocaleUpperCase){_4.toLocaleUpperCase=_4.toUpperCase;_4.toLocaleLowerCase=_4.toLowerCase} if(isc.Browser.isMoz){var _5="x",_6=_5.toLocaleString();if(_6!=_5){_4.toBrowserLocaleString=_4.toLocaleString;_4.toLocaleString=_4.toString} _5=true;_6=_5.toLocaleString();if(_6!=_5+""){Boolean.prototype.toBrowserLocaleString=Boolean.prototype.toLocaleString;Boolean.prototype.toLocaleString=Boolean.prototype.toString}}} isc.$ey();isc.A=String;isc.A.$ez=new RegExp("'","g");isc.A.$e0=new RegExp("\"","g");isc.A=String.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.replaceAll=function isc_Strin_replaceAll(_1,_2){return isc.replaceAll(this,_1,_2)},isc.A.contains=function isc_Strin_contains(_1){if(_1&&!isc.isA.String(_1))_1=_1.toString();return isc.contains(this,_1)},isc.A.startsWith=function isc_Strin_startsWith(_1){if(_1&&!isc.isA.String(_1))_1=_1.toString();return isc.startsWith(this,_1)},isc.A.endsWith=function isc_Strin_endsWith(_1){if(_1&&!isc.isA.String(_1))_1=_1.toString();return isc.endsWith(this,_1)},isc.A.trim=function isc_Strin_trim(_1){var _2=_1||" \t\n\r",l=this.length,_4=0,_5=l-1,i=0;while(_4=0&&_5>=_4&&_2.contains(this.charAt(i--)))_5--;return this.substring(_4,_5+1)},isc.A.convertTags=function isc_Strin_convertTags(_1,_2){return(_1?_1:"")+this.replace(//g,">")+(_2?_2:"")},isc.A.asHTML=function isc_Strin_asHTML(_1){var s=this.replace(/&/g,"&").replace(//g,">").replace(/(\r\n|\r|\n) /g,"
 ").replace(/(\r\n|\r|\n)/g,"
").replace(/\t/g,"    ");return(_1?s.replace(/ /g," "):s.replace(/ /g,"  "))},isc.A.asAttValue=function isc_Strin_asAttValue(_1,_2){return String.asAttValue(this,_1,_2)},isc.A.unescapeHTML=function isc_Strin_unescapeHTML(){return this.replace(/ /g," ").replace(/
/gi,"\n").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")},isc.A.toInitialCaps=function isc_Strin_toInitialCaps(){var _1=this.toLowerCase().split(" ");for(var i=0;i<_1.length;i++){_1[i]=_1[i].substring(0,1).toLocaleUpperCase()+_1[i].substring(1)} return _1.join(" ")},isc.A.evalDynamicString=function isc_Strin_evalDynamicString(_1,_2){if(this.indexOf("${")<0)return this.toString();var _3=this,_4,_5,_6,_7;var _8=isc.StringBuffer.create();while((_5=_3.indexOf("${"))!=-1){_6=_3.indexOf("}",_5+1);if(_6==-1)break;if(_3.charAt(_5-1)=='\\'){_8.append(_3.slice(0,_5-1),_3.slice(_5,_6+1));_3=_3.substring(_6+1,_3.length);continue} var _7=_3.slice(_5+2,_6);var _9;if(_2!=null&&_2[_7]){_9=_2[_7]}else{try{_9=isc.Class.evalWithVars(_7,_2,_1)}catch(e){var _10=_1?_1:isc.Log;_10.logWarn("dynamicContents eval error - returning empty string for block -->${"+_7+"}<-- error was: "+isc.Log.echo(e));_9=isc.emptyString}} _8.append(_3.slice(0,_5),_9);_3=_3.substring(_6+1,_3.length)} _8.append(_3);return _8.release(false)},isc.A.asSource=function isc_Strin_asSource(_1){return String.asSource(this,_1)},isc.A.cssToCamelCaps=function isc_Strin_cssToCamelCaps(){return this.replace(/-([^a-z]*)([a-z])/g,function(_1,_2,_3,_4,_5){return _2+_3.toUpperCase()})});isc.B._maxIndex=isc.C+13;String.$101w="[\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]";String.$101x="[\u16ee-\u16f0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303a\ua6e6-\ua6ef]";String.$101y="[\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e4-\u08fe\u0900-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962\u0963\u0981\u09bc\u09c1-\u09c4\u09cd\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b62\u0b63\u0b82\u0bc0\u0bcd\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc6\u0ccc\u0ccd\u0ce2\u0ce3\u0d41-\u0d44\u0d4d\u0d62\u0d63\u0dca\u0dd2-\u0dd4\u0dd6\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1bab\u1be6\u1be8\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1dc0-\u1de6\u1dfc-\u1dff\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u3099\u309a\ua66f\ua674-\ua67d\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaec\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe26]";String.$101z="[\u0903\u093b\u093e-\u0940\u0949-\u094c\u094e\u094f\u0982\u0983\u09be-\u09c0\u09c7\u09c8\u09cb\u09cc\u09d7\u0a03\u0a3e-\u0a40\u0a83\u0abe-\u0ac0\u0ac9\u0acb\u0acc\u0b02\u0b03\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd7\u0c01-\u0c03\u0c41-\u0c44\u0c82\u0c83\u0cbe\u0cc0-\u0cc4\u0cc7\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0d02\u0d03\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d57\u0d82\u0d83\u0dcf-\u0dd1\u0dd8-\u0ddf\u0df2\u0df3\u0f3e\u0f3f\u0f7f\u102b\u102c\u1031\u1038\u103b\u103c\u1056\u1057\u1062-\u1064\u1067-\u106d\u1083\u1084\u1087-\u108c\u108f\u109a-\u109c\u17b6\u17be-\u17c5\u17c7\u17c8\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u19b0-\u19c0\u19c8\u19c9\u1a19-\u1a1b\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1b04\u1b35\u1b3b\u1b3d-\u1b41\u1b43\u1b44\u1b82\u1ba1\u1ba6\u1ba7\u1baa\u1bac\u1bad\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1c24-\u1c2b\u1c34\u1c35\u1ce1\u1cf2\u1cf3\u302e\u302f\ua823\ua824\ua827\ua880\ua881\ua8b4-\ua8c3\ua952\ua953\ua983\ua9b4\ua9b5\ua9ba\ua9bb\ua9bd-\ua9c0\uaa2f\uaa30\uaa33\uaa34\uaa4d\uaa7b\uaaeb\uaaee\uaaef\uaaf5\uabe3\uabe4\uabe6\uabe7\uabe9\uabea\uabec]";String.$1010="[\u0030-\u0039\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]";String.$1011="[\u005f\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f]";String.$1012="\\u[0-9A-Fa-f]{4}";String.$1013="(?:"+String.$101w+"|[$_]|"+String.$1012+")";String.$1014="(?:"+String.$101y+"|"+String.$101z+")";String.$1015=String.$1010;String.$1016=String.$1011;String.$1017="\u200c";String.$1018="\u200d";String.$1019="(?:"+String.$1013+"|"+String.$1014+"|"+String.$1015+"|"+String.$1016+"|"+String.$1017+"|"+String.$1018+")";String.$102a="^(?:"+String.$1013+String.$1019+"*)$";String.$102b=new RegExp(String.$102a);String.$102c="(?:break|case|catch|continue|debugger|default|delete|do|else|finally|for|function|if|in|instanceof|new|return|switch|this|throw|try|typeof|var|void|while|with)";String.$102d="(?:class|const|enum|export|extends|import|super)";String.$102e="(?:implements|interface|let|package|private|protected|public|static|yield)";String.$102f=new RegExp("^(?:"+String.$102c+"|"+String.$102d+"|"+String.$102e+"|null|true|false)$");String.$1561='(?:[^"\'>]|"[^"]*"|\'[^\']*\')*';isc.A=String;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$159u=new RegExp("[<&\"']","");isc.A.$152w=new RegExp("[^ _.,!#%a-zA-Z0-9-]+","");isc.A.$1562=new RegExp('<(?:!--(?:(?:-*[^->])*--+|-?)|script\\b'+String.$1561+'>[\\s\\S]*?[\\s\\S]*?',"ig");isc.B.push(isc.A.asSource=function isc_String_asSource(_1,_2){if(!isc.isA.String(_1))_1=""+_1;var _3=_2?String.$ez:String.$e0,_4=_2?"'":'"';return _4+_1.replace(/\\/g,"\\\\").replace(_3,'\\'+_4).replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+_4},isc.A.asAttValue=function isc_String_asAttValue(_1,_2,_3){var _4;if(_1==null){_4=isc.emptyString}else{_1=String(_1);if(!this.$159u.test(_1)){_4=_1}else{var _5,_6;if(_2){_5=this.$e0;_6=isc.$94s}else{_5=this.$ez;_6=isc.$139i} _4=_1.replace(isc.$94o,isc.$94p).replace(isc.$94q,isc.$36h).replace(_5,_6)}} if(_3){var _7=_2?"\"":"'";return _7+_4+_7}else{return _4}},isc.A.$152x=function isc_String__asCSSDeclarationValue(_1){if(_1==null){return""}else{return String(_1).replace(this.$152w,"")}},isc.A.htmlStringToString=function isc_String_htmlStringToString(_1){if(_1==null)return"";_1=String(_1).replace(//ig,"\n");var _2;do{_2=_1;_1=_1.replace(this.$1562,"")}while(_1.length!=_2.length);var _3=_1.search(/<(?!\s)[^>]*$/);if(_3>=0&&(_3==_1.length-1||_1.charCodeAt(_3+1)!=60))_1=_1.substring(0,_3);var _4;if(_1.indexOf("&")>=0){var _5=document.createElement("span");_5.innerHTML=_1;_4=(_5.innerText||_5.textContent)}else{_4=_1} return _4},isc.A.isValidID=function isc_String_isValidID(_1){if(!isc.isA.String(_1))return false;return(_1.search(String.$102b)!=-1&&_1.search(String.$102f)==-1)});isc.B._maxIndex=isc.C+5;isc.addMethods(isc,{replaceAll:function(_1,_2,_3){return _1.split(_2).join(_3)},contains:function(_1,_2){if(_1==null)return false;return _1.indexOf(_2)>-1},startsWith:function(_1,_2){if(_1==null)return false;return(_1.lastIndexOf(_2,0)==0)},endsWith:function(_1,_2){if(_1==null)return false;var _3=_1.length-_2.length;if(_3<0)return false;return(_1.indexOf(_2,_3)==_3)},makeXMLSafe:function(_1,_2,_3,_4,_5,_6,_7){if(_1==null)return isc.emptyString;else if(!isc.isA.String(_1))_1=_1.toString();if(_2!=false)_1=_1.replace(this.$94o,this.$94p);if(_3!=false)_1=_1.replace(this.$94q,this.$36h);if(_4!=false)_1=_1.replace(this.$94r,this.$36i);if(_5!=false)_1=_1.replace(String.$e0,this.$94s);if(_6!=false)_1=_1.replace(String.$ez,this.$94t);if(_7!=false)_1=_1.replace(this.$94u,this.$94v);return _1},$94p:"&",$36h:"<",$36i:">",$94s:""",$94t:"'",$139i:"'",$94v:" ",$94o:/&/g,$94q://g,$94u:/\r/g,makeCDATA:function(_1){return"/,"]]")+"]]>"}});isc.ClassFactory.defineClass("StringBuffer");isc.SB=isc.StringBuffer;isc.A=isc.StringBuffer;isc.A.$e1=[];isc.A.$e2=50;isc.A=isc.StringBuffer.getPrototype();isc.A.maxStreamLength=(isc.Browser.isIE6?1000:100000);isc.A.addPropertiesOnCreate=false;isc.A=isc.StringBuffer.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.init=function isc_StringBuffer_init(){this.$e3=[]},isc.A.append=function isc_StringBuffer_append(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27){var _28=this.$e3,_29,_30;if(_1!=null&&_1.constructor.$k==2){var _31=_1.length;if(_31<=30){var _31=_28.length;for(var i=0;i<_1.length;i++){_28[_31++]=_1[i]}}else{_28[_28.length]=_1.join(isc.emptyString)}}else{if(_27===_30&&_26===_30&&_25===_30){if(_1!=null)_28[_28.length]=_1;if(_2!=null)_28[_28.length]=_2 if(_3!=null)_28[_28.length]=_3 if(_4!=null)_28[_28.length]=_4 if(_5!=null)_28[_28.length]=_5 if(_6!=null)_28[_28.length]=_6 if(_7!=null)_28[_28.length]=_7 if(_8!=null)_28[_28.length]=_8 if(_9!=null)_28[_28.length]=_9 if(_10!=null)_28[_28.length]=_10 if(_11!=null)_28[_28.length]=_11 if(_12!=null)_28[_28.length]=_12 if(_13!=null)_28[_28.length]=_13 if(_14!=null)_28[_28.length]=_14 if(_15!=null)_28[_28.length]=_15 if(_16!=null)_28[_28.length]=_16 if(_17!=null)_28[_28.length]=_17 if(_18!=null)_28[_28.length]=_18 if(_19!=null)_28[_28.length]=_19 if(_20!=null)_28[_28.length]=_20 if(_21!=null)_28[_28.length]=_21 if(_22!=null)_28[_28.length]=_22 if(_23!=null)_28[_28.length]=_23 if(_24!=null)_28[_28.length]=_24}else{_29=arguments;for(var i=0,l=_29.length;ithis.maxStreamLength){_28[0]=_28.join(isc.emptyString);_28.length=1} return this},isc.A.appendNumber=function isc_StringBuffer_appendNumber(_1,_2){var _3=this.$e3;if(_2==null){_2=5;var _4=_1;if(_4<0){_4=0-_4;_2+=1} if(_4>=100000){_4=_4/100000;while(_4>=1){_2+=1;_4=_4/10}}} isc.$bk(_3,_1,_3.length,_2)},isc.A.clear=function isc_StringBuffer_clear(){this.$e3.length=0},isc.A.release=function isc_StringBuffer_release(_1){var _2=isc.SB,_3=_2.$e1,_4=_1?null:this.toString();if(_3.length<_2.$e2){this.clear();_3[_3.length]=this} if(!_1)return _4},isc.A.getArray=function isc_StringBuffer_getArray(){return this.$e3});isc.B._maxIndex=isc.C+6;isc.StringBuffer.getPrototype().toString=function(){return this.$e3.join(isc.emptyString)} isc.StringBuffer.$e4=Array.prototype.join;isc.A=isc.StringBuffer;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$bw=[];isc.B.push(isc.A.create=function isc_c_StringBuffer_create(){var _1=this.$e1,_2=_1.length;if(_2>0){var _3=_1[_2-1];_1.length=_2-1;return _3}else{return isc.Class.create.apply(this)}},isc.A.concat=function isc_c_StringBuffer_concat(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27,_28,_29,_30,_31,_32,_33,_34,_35,_36,_37,_38,_39,_40,_41,_42,_43,_44,_45,_46,_47,_48,_49,_50,_51,_52){var _53,_54;if(isc.Browser.isIE&&_50===_53&&_51===_53&&_52===_53){var _55=this.$bw;_55.length=0;if(_1!=null)_55[_55.length]=_1;if(_2!=null)_55[_55.length]=_2;if(_3!=null)_55[_55.length]=_3;if(_4!=null)_55[_55.length]=_4;if(_5!=null)_55[_55.length]=_5;if(_6!=null)_55[_55.length]=_6;if(_7!=null)_55[_55.length]=_7;if(_8!=null)_55[_55.length]=_8;if(_9!=null)_55[_55.length]=_9;if(_10!=null)_55[_55.length]=_10;if(_11!=null)_55[_55.length]=_11;if(_12!=null)_55[_55.length]=_12;if(_13!=null)_55[_55.length]=_13;if(_14!=null)_55[_55.length]=_14;if(_15!=null)_55[_55.length]=_15;if(_16!=null)_55[_55.length]=_16;if(_17!=null)_55[_55.length]=_17;if(_18!=null)_55[_55.length]=_18;if(_19!=null)_55[_55.length]=_19;if(_20!=null)_55[_55.length]=_20;if(_21!=null)_55[_55.length]=_21;if(_22!=null)_55[_55.length]=_22;if(_23!=null)_55[_55.length]=_23;if(_24!=null)_55[_55.length]=_24;if(_25!=null)_55[_55.length]=_25;if(_26!=null)_55[_55.length]=_26;if(_27!=null)_55[_55.length]=_27;if(_28!=null)_55[_55.length]=_28;if(_29!=null)_55[_55.length]=_29;if(_30!=null)_55[_55.length]=_30;if(_31!=null)_55[_55.length]=_31;if(_32!=null)_55[_55.length]=_32;if(_33!=null)_55[_55.length]=_33;if(_34!=null)_55[_55.length]=_34;if(_35!=null)_55[_55.length]=_35;if(_36!=null)_55[_55.length]=_36;if(_37!=null)_55[_55.length]=_37;if(_38!=null)_55[_55.length]=_38;if(_39!=null)_55[_55.length]=_39;if(_40!=null)_55[_55.length]=_40;if(_41!=null)_55[_55.length]=_41;if(_42!=null)_55[_55.length]=_42;if(_43!=null)_55[_55.length]=_43;if(_44!=null)_55[_55.length]=_44;if(_45!=null)_55[_55.length]=_45;if(_46!=null)_55[_55.length]=_46;if(_47!=null)_55[_55.length]=_47;if(_48!=null)_55[_55.length]=_48;if(_49!=null)_55[_55.length]=_49;if(_50!=null)_55[_55.length]=_50;if(_51!=null)_55[_55.length]=_51;if(_52!=null)_55[_55.length]=_52;_54=_55.join(isc.emptyString)}else{arguments.join=this.$e4;_54=arguments.join(isc.emptyString)} return _54});isc.B._maxIndex=isc.C+2;isc.defineClass("StringMethod");isc.A=isc.StringMethod.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.getValue=function isc_StringMethod_getValue(){return this.value},isc.A.getDisplayValue=function isc_StringMethod_getDisplayValue(){var _1=this.getValue();if(_1==null||isc.isA.String(_1))return _1;if(_1.title!=null)return"["+_1.title+"]" return _1},isc.A.cdata=function isc_StringMethod_cdata(_1){var _2=_1.indexOf("]]>");if(_2==-1)return"";return this.cdata(_1.slice(0,_2))+"]]>"+this.cdata(_1.slice(_2+3))},isc.A.$ew=function isc_StringMethod__xmlSerialize(_1,_2,_3,_4,_5,_6){var _7=this.value;if(isc.isA.String(_7))return isc.Comm.$ex(_1,this.cdata(_7),_2||"stringMethod",_3,_4);else return isc.StringMethod.$41u(_7,_1,_4,_5,_6)});isc.B._maxIndex=isc.C+4;isc.StringMethod.getPrototype().toString=function(){var _1=this.getValue();if(_1==null||isc.isA.String(_1))return _1;return _1.toString()},isc.A=isc.StringMethod;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$41v="Action";isc.B.push(isc.A.$41u=function isc_c_StringMethod__xmlSerializeAction(_1,_2,_3,_4,_5){var _6=isc.DataSource.get(this.$41v);if(!_6)return isc.Comm.$36t(_2,_1,_5,_4,_3);return[isc.Comm.$36u(_2),_6.xmlSerialize(_1,null,_3+" ",this.$41v),"\n",_3,isc.Comm.$36v(_2)].join(isc.emptyString)});isc.B._maxIndex=isc.C+1;isc.defineClass("URIBuilder").addClassMethods({create:function(_1){if(isc.isA.String(_1))return this.Super("create",[{uri:_1}],arguments);else return this.Super("create",arguments)}});isc.A=isc.URIBuilder.getPrototype();isc.A.uri="";isc.A=isc.URIBuilder.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.init=function isc_URIBuilder_init(){this.Super("init",arguments);if(this.uri==null)this.uri="";else this.uri=String(this.uri);this.$109n=this.$109o()},isc.A.$109o=function isc_URIBuilder__getQsStartPos(){var _1=this.uri;var _2=_1.indexOf('#');if(_2==-1){return _1.indexOf('?')}else{var _3=_1.indexOf('?');if(_3>=_2){return-1} return _3}},isc.A.appendPath=function isc_URIBuilder_appendPath(_1){if(_1==null||_1.length==0)return;var _2=encodeURI(_1).replace('?',encodeURIComponent('?')).replace('#',encodeURIComponent('#'));if(this.uri.length==0){this.uri=_2}else{var _3=this.$109n;if(_3==-1){_3=this.uri.indexOf('#')} if(_3==-1){_3=this.uri.length} var _4=this.uri.substring(0,_3);if(_3>0&&this.uri[_3-1]!='/'&&_1[0]!='/'){_4+='/'} _4+=_2;_4+=this.uri.substring(_3);this.uri=_4;this.$109n=this.$109o()}},isc.A.$109p=function isc_URIBuilder__indexOfQueryParam(_1,_2){if(_2==null)_2=this.$109n;else _2=Math.max(this.$109n,_2);if(_2<0)return-1;var _3=this.uri.indexOf('#',this.$109n+1);var _4=_3==-1?this.uri.length:_3;for(;_2<_4&&(_2=this.uri.indexOf(_1,_2))!=-1;_2+=_1.length){if(this.uri[_2-1]=='&'||this.uri[_2-1]=='?'){var _5=_2+_1.length;if(_5<=_4&&(_5==_4||this.uri[_5]=='='||this.uri[_5]=='&')) {return _2}}} return-1},isc.A.containsQueryParam=function isc_URIBuilder_containsQueryParam(_1){return _1!=null&&this.$109p(encodeURIComponent(_1))!=-1},isc.A.getQueryValue=function isc_URIBuilder_getQueryValue(_1,_2){var _3=encodeURIComponent(_1);var _4=this.$109p(_3);if(_4<0)return null;var _5=this.uri.indexOf('#',this.$109n==-1?0:this.$109n+1);if(_5==-1)_5=this.uri.length;var _6=this.uri.indexOf('&',_4+_3.length);var _7=_4+(this.uri[_4+_3.length]==='='?_3.length+1:_3.length);var _8=_6>=0?Math.min(_6,_5):_5;var _9=this.uri.substring(_7,_8);if(_2||(_4=this.$109p(_3,_8))<0){return decodeURIComponent(_9)}else{var _10=[decodeURIComponent(_9)];do{_6=this.uri.indexOf('&',_4+_3.length);_7=_4+(this.uri[_4+_3.length]==='='?_3.length+1:_3.length);_8=_6>=0?Math.min(_6,_5):_5;_9=this.uri.substring(_7,_8);_10.add(decodeURIComponent(_9));_4=this.$109p(_3,_8)}while(_4>=0);return _10}},isc.A.$109q=function isc_URIBuilder__appendQueryParamHelper(_1,_2){if(_2==null)return;if(isc.isA.String(_2)){var _3=this.uri.indexOf('#',this.$109n==-1?0:this.$109n+1);if(_3==-1)_3=this.uri.length;var _4=this.uri.substring(0,_3);if(this.$109n==-1){this.$109n=_3;_4+='?'}else _4+='&';_4+=_1;_4+=encodeURIComponent(_2.toString());_4+=this.uri.substring(_3);this.uri=_4}else if(isc.isAn.Array(_2)){for(var i=0;i<_2.length;++i){this.$109q(_1,_2[i])}}else{this.$109q(_1,String(_2))}},isc.A.appendQueryParam=function isc_URIBuilder_appendQueryParam(_1,_2){if(_1==null)return;var _3=encodeURIComponent(_1);var _4=_3+'=';this.$109q(_4,_2)},isc.A.setQueryParam=function isc_URIBuilder_setQueryParam(_1,_2){var _3=encodeURIComponent(_1);var _4=_3+'=';if(this.$109n!=-1){var _5=this.uri.indexOf('#',this.$109n+1);var _6=_5==-1?this.uri.length:_5;var _7="";_7+=this.uri.substring(0,this.$109n);var _8=this.$109n,_9=this.$109n;while(_9<_6&&(_9=this.uri.indexOf(_4,_9))!=-1){var _10=this.uri.indexOf('&',_9+_4.length);if(this.uri[_9-1]=='&'||this.uri[_9-1]=='?'){_7+=this.uri.substring(_8,_9);if(_10!=-1&&_10<_6){_9=_10+1}else{_9=_6;_7=_7.substring(0,_7.length-1)}}else{_9=(_10!=-1&&_10<_6?_10+1:_6);_7+=this.uri.substring(_8,_9)} _8=_9} _7+=this.uri.substring(_8,this.uri.length);this.uri=_7;this.$109n=this.$109o()} this.appendQueryParam(_1,_2)});isc.B._maxIndex=isc.C+9;isc.ClassFactory.defineClass("Cookie");isc.A=isc.Cookie;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.init=function isc_c_Cookie_init(){isc.Cookie.list={};if(document.cookie=="")return;var _1=(""+document.cookie).split("; ");for(var i=0,_3=_1.length,_4;_4=_1[i],i<_3;i++){var _5=_4.indexOf('='),_6=(_5==-1?_4:_4.substring(0,_5));isc.Cookie.list[_6]=(_5==-1?'':unescape(_4.substring(_5+1)))}},isc.A.get=function isc_c_Cookie_get(_1){isc.Cookie.init();return isc.Cookie.list[_1]},isc.A.set=function isc_c_Cookie_set(_1,_2,_3,_4,_5){isc.Cookie.init();document.cookie=_1+"="+escape(_2)+(_3?";path="+_3:"")+(_4?";domain="+_4:"")+(_5?";expires="+(isc.isA.String(_5)?_5:_5.toGMTString()):"")},isc.A.clear=function isc_c_Cookie_clear(_1,_2,_3){isc.Cookie.init();this.set(_1,"",_2,_3,"Thu, 01-Jan-70 00:00:01 GMT")},isc.A.getList=function isc_c_Cookie_getList(){isc.Cookie.init();return isc.getKeys(isc.Cookie.list)});isc.B._maxIndex=isc.C+5;isc.defineClass("StackTrace");isc.A=isc.StackTrace;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.fromNativeStack=function isc_c_StackTrace_fromNativeStack(_1){if(isc.Browser.isMoz){return isc.MozStackTrace.create({stack:_1})}else if(isc.Browser.isChrome){return isc.ChromeStackTrace.create({stack:_1})}else if(isc.Browser.isIE){return isc.IEStackTrace.create({stack:_1})}else{return isc.UnsupportedStackTrace.create({stack:_1})}},isc.A.getSourceLine=function isc_c_StackTrace_getSourceLine(_1,_2,_3){_2=_2||isc.Page.getAppDir();_3=_3||window.location.protocol+"//"+window.location.host;_1=_1.replace(/(\?|\&)?sc_selenium=true/,"");var _4=_1.indexOf("/system/modules/ISC_"),_5=_1.indexOf("/system/development/ISC_");if(_4!=-1){_1=_1.substring(_4+16)}else if(_5!=-1){_1=_1.substring(_5+20)+"[d]"} if(_4!=-1||_5!=-1){if(!isc.Log.logIsDebugEnabled("traceLineNumbersCore"))return"";var _6=_1.indexOf("?isc_version");if(_6!=-1){_1=_1.substring(0,_6)+_1.substring(_1.indexOf(":"))}} if(_1.startsWith(_2)){_1=_1.substring(_2.length)}else if(_1.startsWith(_3)){_1=_1.substring(_3.length)} return" @ "+_1});isc.B._maxIndex=isc.C+2;isc.A=isc.StackTrace.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.stack=null;isc.A.preambleLines=0;isc.A.$83t="";isc.B.push(isc.A.init=function isc_StackTrace_init(){if(this.stack){this.$83u()}},isc.A.extractFunctionFromLine=function isc_StackTrace_extractFunctionFromLine(_1){this.logError("Should implement extractFunctionFromLine in subclass")},isc.A.extractArgumentsFromLine=function isc_StackTrace_extractArgumentsFromLine(_1){this.logError("Should implement extractArgumentsFromLine in subclass")},isc.A.extractSourceFromLine=function isc_StackTrace_extractSourceFromLine(_1){this.logError("Should implement extractSourceFromLine in subclass")},isc.A.$83u=function isc_StackTrace__parseStack(){try{var _1=this.stack.split("\n"),_2=isc.StringBuffer.create(),_3=isc.Page.getAppDir(),_4=window.location.protocol+"//"+window.location.host;for(var i=this.preambleLines;i<_1.length;i++){var _6=_1[i],_7=null,_8=null,_9=null;if(isc.isAn.emptyString(_6))continue;var _10=this.extractFunctionFromLine(_6);if(_10==""){_10="unnamed"}else if(_10.startsWith("isc_")){var _11;if(_10.startsWith("isc_c_")){_10=_10.substring(6);_11=true}else{_10=_10.substring(4)} _8=_10.substring(0,_10.indexOf("_"));_9=_10.substring(_8.length+1);var _12=isc.ClassFactory.getClass(_8),_13=null;if(_12){_13=_11?_12[_9]:_12.getInstanceProperty(_9)} if(_13!=null){_10=isc.Func.getName(_13,true);var _14;if(!_11){_14=_12.getArgString(_9)}else{_14=isc.Func.getArgString(_13)} _7=_14.split(",")}else{_10=_10.replace(/_{1}/,".");_10=_10.replace(/_{2}/,"._")}} _2.append(" ",_10,"(");var _14=this.extractArgumentsFromLine(_6);var _15=0;while(_14&&_14.length>0){if(_15>0)_2.append(", ");if(_7)_2.append(_7[_15]+"=>");var _16=_14.length;_14=this.$83v(_14,_2);if(_14.length==_16){isc.logWarn("failure to parse next arg at:\n"+_14);break} _15++} _2.append(")");var _17=_6.lastIndexOf("@");_2.append(isc.StackTrace.getSourceLine(this.extractSourceFromLine(_6),_3,_4));_2.append("\n")} this.$83t=_2.release(false)} catch(e){this.$83t=this.stack}},isc.A.$83v=function isc_StackTrace__parseArgument(_1,_2){var _3=_1.charAt(0);if(_3=="\""){var _4=_1.search(/[^\\]"/);if(_4==-1)_4=_1.length;var _5=_1.substring(0,_4+2);if(_5.length>40){_5=_5.substring(0,40)+"...\"[ "+_5.length+"]"} _2.append(_5);return _1.substring(_4+3)}else if(_3=="["){var _6=_1.substring(1).indexOf("]"),_7=_1.substring(0,_6+2);if(_7=="[object Object]")_7="{Obj}";_2.append(_7);return _1.substring(_6+3)}else if(_1.startsWith("(void 0)")){_2.append("undef");return _1.substring(9)}else if(_1.startsWith("undefined")){_2.append("undef");return _1.substring(10)}else if(_1.startsWith("(function ")){var _8=_1.substring(1,_1.indexOf("{"));if(_8.endsWith(" "))_8=_8.substring(0,_8.length-1);_2.append(_8);var _9=_1.indexOf("}),");if(_9==-1)return"";return _1.substring(_9+3)}else{var _10=_1.indexOf(",");if(_10==-1)_10=_1.length;_2.append(_1.substring(0,_10));return _1.substring(_10+1)}});isc.B._maxIndex=isc.C+6;isc.StackTrace.getPrototype().toString=function(){return this.$83t};isc.defineClass("MozStackTrace",isc.StackTrace);isc.A=isc.MozStackTrace.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.extractFunctionFromLine=function isc_MozStackTrace_extractFunctionFromLine(_1){var _2=isc.Browser.version>=14,_3=_1.indexOf(_2?"@":"(");return _1.substring(0,_3)},isc.A.extractArgumentsFromLine=function isc_MozStackTrace_extractArgumentsFromLine(_1){if(isc.Browser.version>=14)return"";var _2=_1.indexOf("(");var _3=_1.lastIndexOf("@");return _1.substring(_2+1,_3-1)},isc.A.extractSourceFromLine=function isc_MozStackTrace_extractSourceFromLine(_1){var _2=_1.lastIndexOf("@");if(_2>=0){return _1.substring(_2+1)}else{return""}});isc.B._maxIndex=isc.C+3;isc.defineClass("ChromeStackTrace",isc.StackTrace);isc.A=isc.ChromeStackTrace.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.preambleLines=1;isc.A.$83x=/at (Object\.)?([^ ]+)/;isc.A.$83y=/\((.+)\)/;isc.B.push(isc.A.extractFunctionFromLine=function isc_ChromeStackTrace_extractFunctionFromLine(_1){var _2=_1.match(this.$83x);return _2?_2[2]:""},isc.A.extractArgumentsFromLine=function isc_ChromeStackTrace_extractArgumentsFromLine(_1){return""},isc.A.extractSourceFromLine=function isc_ChromeStackTrace_extractSourceFromLine(_1){var _2=_1.match(this.$83y);return _2?_2[1]:""});isc.B._maxIndex=isc.C+3;isc.defineClass("IEStackTrace",isc.StackTrace);isc.A=isc.IEStackTrace.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.preambleLines=1;isc.A.$83x=/at ((?:[A-Za-z_$0-9]+ )+)/;isc.A.$83y=/\((.+)\)/;isc.B.push(isc.A.extractFunctionFromLine=function isc_IEStackTrace_extractFunctionFromLine(_1){var _2=_1.match(this.$83x);return _2?_2[1]:""},isc.A.extractArgumentsFromLine=function isc_IEStackTrace_extractArgumentsFromLine(_1){return""},isc.A.extractSourceFromLine=function isc_IEStackTrace_extractSourceFromLine(_1){var _2=_1.match(this.$83y);return _2?_2[1]:""});isc.B._maxIndex=isc.C+3;isc.defineClass("UnsupportedStackTrace",isc.StackTrace);isc.A=isc.UnsupportedStackTrace.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$83u=function isc_UnsupportedStackTrace__parseStack(){});isc.B._maxIndex=isc.C+1;isc.UnsupportedStackTrace.getPrototype().toString=function(){return this.stack};if(isc.Browser.isChrome){isc.StackTrace.$123q=null;if(Error.prepareStackTrace!=null){isc.StackTrace.$123q=Error.prepareStackTrace} Error.prepareStackTrace=function(_1,_2){isc.$122w=_2;if(_1.getStackTraceOnly){return isc.$ad} var _3=null;if(isc.StackTrace.$123q!=null){_3=isc.StackTrace.$123q(_1,_2)}else{var _4=Error.prepareStackTrace;delete Error.prepareStackTrace;try{throw _1}catch(e){_3=e.stack} Error.prepareStackTrace=_4} return _3}};isc.$94b={};isc.A=isc.$94b;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$1050=40;isc.A.$fj={outerText:false,innerText:false,parentTextEdit:false,isTextEdit:false,parentTextEdit:false,contentEditable:false,canHaveHTML:true,isMultiLine:false,filters:false,canHaveChildren:false,behaviorUrns:false,sourceIndex:false,accelerator:false,textDecorationUnderline:false,textDecorationNone:false};isc.B.push(isc.A.getCallTrace=function isc__debug_getCallTrace(_1,_2,_3,_4,_5,_6){if(_1==null)_1=arguments.caller;if(_1==null)return"[getCallTrace(): Error: couldn't get arguments object]";var _7,_8=_1.callee;if(_8==null){_7="[args.callee == null]"}else if(!isc.Func){_7="[Func utility class not loaded]"}else{_7=isc.Func.getName(_8,true)} _7+="(";_4=_4||(_8!=null?isc.Func.getArgs(_8):[]);_5=_5||_1;var _9=Math.max(_5.length,_4.length);for(var i=0;i<_9;i++){var _11=_4[i],_12=_5[i];if(i>0)_7+=", ";if(_11!=null){_7+=_11+"=>"} _7+=this.echoLeaf(_12)} _7+=")";_2=_2||_1.$cw;if(_2)_7+=" on "+this.echoLeaf(_2);var _13=false;if(_13||(!_3&&!_8.$c7))return _7;var _14=this.$e6(_8);if(!_8.$c7){var _15=_14.split(/[\r\n]+/);if(_15.length>1||_15[0].length>200)return _7} _7+='\n "'+_14+'"';return _7},isc.A.$e6=function isc__debug__getTrimmedMethodBody(_1){var _2=isc.Func.getBody(_1);return _2.trim()},isc.A.getStackTrace=function isc__debug_getStackTrace(_1,_2,_3,_4,_5){if(isc.Class.useChromeAPIToPrepareStackTrace&&isc.Browser.isChrome){var e=new Error;var _7=Error.prepareStackTrace;Error.prepareStackTrace=function(_10,_11){return _11};Error.captureStackTrace(e,arguments.callee);isc.$122w=e.stack;Error.prepareStackTrace=_7;return this.$122x(false)} var _8="";if(!_2){_2=1} _8+=this.$76x(_1,_2,_3);if(this.hasFireBug()&&!_4&&isc.Log.showFireBugTrace!=false){isc.Log.$50m=isc.Log.$50m||0;var _9="FBugTrace"+isc.Log.$50m++;_8+="\r\n"+this.fireBugTrace(_9)} return _8},isc.A.$122x=function isc__debug__getLastErrorCallSitesParsedStack(_1){var _2=isc.StringBuffer.create();if(isc.$122w){var _3=[];var _4=null;for(var i=0;i"}else{if(_10&&_10.startsWith("isc_")){if(_10.startsWith("isc_c_")){_10=_10.substring(6);var _12=_10.indexOf("_");_8=_10.substring(0,_12);_10=_10.substring(_12+1)}else{_10=_10.substring(_10.lastIndexOf("_")+1)}}else{_10=_10.substring(_10.lastIndexOf(".")+1)}} var _13=this.$122y(_10,_8,_11);var _14=(_8!=null?_8:_9)+"."+_10;var _15="";if(_1&&_11.arguments==null){_15="() "}else if(_3.contains(_10)){_15="() "}else{var _16=isc.Func.getArgs(_11);var _17=_11.arguments||[];if(_10!="")_3.add(_14);if(_16.length>0){for(var j=0;j<_16.length;j++){if(j!=0){_15+=", "} _15+=_16[j]+"=>"+isc.echoLeaf(_17[j])} _15="("+_15+") "}else{_15="() "}} if(_8==null&&(_9=="Object"||_9=="Window")){_14=_10} _2.append("\t",_13,_14,_15);if(isc.isAn.Instance(_7)){_2.append("on ",this.echoLeaf(_7)," ")} var _19=_6.getFileName();if(_19){_19=_19.substring(_19.lastIndexOf("/")+1) var _20=_19.lastIndexOf("?");if(_20>0){_19=_19.substring(0,_20)} _2.append("@ ",_19)}else{_2.append("@ [no file]")} _2.append(":",_6.getLineNumber(),":",_6.getColumnNumber(),"\n");if(_11!=null&&_11.arguments!=null&&_11.arguments.timerTrace){_2.append("Stack trace for setTimeout() call:\n"+_11.arguments.timerTrace);_4=false}else if(_14=="Timer.$150o"&&_4==null) {_4=true}} if(_4&&isc.Timer.currentAction&&isc.Timer.currentAction.timerTrace) {_2.append("Stack trace for setTimeout() call:\n"+isc.Timer.currentAction.timerTrace)} delete isc.$122w} return _2.release(false)},isc.A.$122y=function isc__debug__getFunctionModifier(_1,_2,_3){if(_2==null)return"";var _4=isc.ClassFactory.getClass(_2);return(_3.$be?(_3.$bf?"[o]":"[a]"):isc.$ad)+((_4!=null&&_4[_1]===_3)?"[c]":isc.$ad)},isc.A.$76x=function isc__debug__getStackTraceFromArgs(_1,_2,_3,_4){if(!arguments||!arguments.callee||!arguments.callee.caller){return" [Stack trace not supported in this browser]"} if(_1==null)_1=arguments.caller||arguments.callee.caller.arguments;var _5=[];var _6=_4||(isc.Browser.isIE&&isc.Browser.version<=5);if(_2!=null){for(var i=0;i<_2;i++){if(_1==null)break;if(!_6){_1=_1.callee.caller.arguments}else{_1=_1.caller}}} if(_1==null){return""} var _8=_1.callee;var _9=[];var _10=true;if(_3==null)_3=Number.MAX_VALUE;var _11=0;var _12="";while(_8!=null&&_1!=null&&_11<_3){if(_1.timerTrace){_5.add("\nStack trace for setTimeout() call: "+_1.timerTrace);break}else if(isc.Func.getName(_8,true)=="[c]Timer.$in"&&isc.Timer.currentAction&&isc.Timer.currentAction.timerTrace){_5.add("\nStack trace for setTimeout() call: "+isc.Timer.currentAction.timerTrace);break} if(!_6){if(_9.contains(_8)){_5.add(" ** recursed on "+isc.Func.getName(_8,true));break} _9.add(_8)} var _13=(_10||(_1.callee!=null&&_1.callee.caller==null));if(_4){}else{_5.add(" "+this.getCallTrace(_1,null,_13))} if(_11==0||isc.showLocalsInTraces){var _14=_1.$e8;var _15=this.$e7(_14,_11!=0);if(_15)_5.add(_15)} _8=_1.callee;if(!_6){_8=_8.caller;if(_8)_1=_8.arguments}else _1=_1.caller;_10=false;_11++;if(_4&&_1!=null&&_1.callee==null){_5.add(" [global scope]");break}} if(_5.length==0)return"";return"\r\n"+_5.join("\r")+"\r"},isc.A.hasFireBug=function isc__debug_hasFireBug(){return(isc.Browser.isMoz&&window.console!=null&&(window.console.firebug!=null||(window.console.exception!=null&&(isc.Browser.version<=27||window.console.exception.toString().indexOf("[native code]")<0))))},isc.A.fireBugVersion=function isc__debug_fireBugVersion(){return this.hasFireBug()?window.console.firebug:null},isc.A.fireBugTrace=function isc__debug_fireBugTrace(_1){window.console.trace(_1);return" [Complete stack trace logged via Firebug: "+_1+"]"},isc.A.$e7=function isc__debug__getFrameLocals(_1,_2){var _3=isc.SB.create();var _4=true;for(var _5 in _1){var _6=_1[_5],_7;if(_6===_7)continue;if(isc.startsWith(_5,isc.$ag))continue;if(_2){if(!_4)_3.append(", ");else _3.append("\n locals: ");_3.append(_5+"=>"+this.echoLeaf(_6));_4=false}else{_3.append("\n "+_5+" = "+this.echoLeaf(_6))}} return _3.release(false)},isc.A.$am=function isc__debug__reportJSError(_1,_2,_3,_4,_5){if(_1.$fa)return;_1.$fa=true;var _6=(_5?_5+": ":"")+_1.toString();if(_1.stack){_6+="\nStack from error.stack:\n";if(isc.Class.useChromeAPIToPrepareStackTrace&&isc.Browser.isChrome){_6+=this.$122x(true)}else{_6+=isc.StackTrace.fromNativeStack(_1.stack).toString()}}else{_6+=" [No error.stack available]"} this.$115i(_6)},isc.A.$115i=function isc__debug__reportJSErrorStack(_1){this.logWarn(_1)},isc.A.transformMozStackTrace=function isc__debug_transformMozStackTrace(_1){return isc.StackTrace.fromNativeStack(_1).toString()},isc.A.echoLeaf=function isc__debug_echoLeaf(_1,_2){var _3="",_4;if(_1===_4)return"undef";try{if(_1!=null&&isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1)) return _1.toString();if(isc.isA.Class(_1)){_3+=_1.toString()}else if(isc.isAn.Array(_1)){_3+="Array["+_1.length+"]"}else if(isc.isA.Date(_1)){_3+="Date("+_1.toShortDate()+")"}else if(isc.isA.Function(_1)){_3+=isc.Func.getName(_1,true)+"()"}else{switch(typeof _1){case"string":var _5=this.$1050;if(_1.length<=_5||_2){_3+='"'+_1+'"';break} _3+='"'+_1.substring(0,_5)+'..."['+_1.length+']';_3=_3.replaceAll("\n","\\n").replaceAll("\r","\\r");break;case"object":if(_1==null){_3+="null";break} if(_1.tagName!=null){_3+="["+_1.tagName+"Element]"+this.getIDText(_1);break} var _6="[object]";try{_6=""+_1}catch(e){} if(_6!=""&&_6!="[object Object]"&&_6!="[object]") {_3+=_6;break} _3+="Obj"+this.getIDText(_1);break;default:_3+=""+_1}} return _3}catch(e){var _7="[Error in echoLeaf: "+e+"]";_3+=_7;this.logDebug(_7,"Log");return _3}},isc.A.getIDText=function isc__debug_getIDText(_1){var _2=_1.name||(isc.isAn.XMLNode(_1)?_1.getAttribute("name"):null);if(_2!=null&&!isc.isAn.emptyString(_2))return"{name:"+_2+"}";var _3=_1.ID!=null?_1.ID:_1.id!=null?_1.id:(isc.isAn.XMLNode(_1)?_1.getAttribute("id"):null);if(_3!=null&&!isc.isAn.emptyString(_3))return"{ID:"+_3+"}";if(_1.nodeName!=null&&!isc.isAn.emptyString(_1.nodeName)){return"{nodeName:"+_1.nodeName+"}"} var _4=_1.title||(isc.isAn.XMLNode(_1)?_1.getAttribute("title"):null);if(_4!=null&&!isc.isAn.emptyString(_4))return"{title:"+_4+"}";var _5=_1.type||(isc.isAn.XMLNode(_1)?_1.getAttribute("type"):null);if(_5!=null&&!isc.isAn.emptyString(_5))return"{type:"+_5+"}";var _5=_1._constructor;if(_5!=null&&!isc.isAn.emptyString(_5))return"{_constructor:"+_5+"}";var _6=_1.label||(isc.isAn.XMLNode(_1)?_1.getAttribute("label"):null);if(_6!=null&&!isc.isAn.emptyString(_6))return"{label:"+_6+"}";var _5=_1.className;if(_5!=null&&!isc.isAn.emptyString(_5))return"{className:"+_5+"}";if(_1.length!=null)return"{length:"+_1.length+"}";return""},isc.A.echo=function isc__debug_echo(_1,_2,_3,_4){if(_1==null)return this.echoLeaf(_1);if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1))return _1.toString();if(_2==null)_2=true;if(_1.tagName)return this.echoDOM(_1);if(typeof _1!="object"||isc.isA.Date(_1))return this.echoLeaf(_1,true);if(isc.isAn.Array(_1)){var _5=(_3?"[\n":"[");for(var i=0;i<_1.length;i++){_5+=(_3?this.echo(_1[i],_2):this.echoLeaf(_1[i]));if(i+1<_1.length)_5+=(_3?",\n":", ")} _5+="\n]";return _5} var _5="{";if(_1.getUniqueProperties!=null){_5=_1.getClassName()+"{";_1=_1.getUniqueProperties();if(_4==null)_4=false} if(_4==null)_4=true;var _7;try{_7=isc.getKeys(_1)}catch(e){return this.echoLeaf(_1)} if(isc.Browser.isSafari){var _8=false,_9="[object CSSStyleDeclaration]";try{_8=(_1+""==_9)}catch(e){} if(_8){_5=_9+"{\n[standard props only]\n";_7=isc.getKeys(isc.Canvas.$fi());_7.add("cssText")}} for(var i=0;i<_7.length;i++){var _10=_7[i],_11;try{_11=_1[_10]}catch(e){_11="[error accessing property: "+e+"]"} if(!_4&&isc.isA.Function(_11))continue;if(_10.startsWith("$"))continue;var _12;if(_10==isc.gwtRef){_12="{GWT Java Obj}"}else if(_10==isc.gwtModule){_12="{GWT Module Obj}"}else{_12=this.echoLeaf(_11)} _5+=_10+": "+_12;if(i+1<_7.length)_5+=(_2?",\r":", ")} _5+="}";return _5},isc.A.echoAll=function isc__debug_echoAll(_1,_2){return this.echo(_1,_2,true)},isc.A.echoFull=function isc__debug_echoFull(_1){return isc.JSON.encode(_1,{prettyPrint:true,showDebugOutput:true})},isc.A.echoShort=function isc__debug_echoShort(_1){return this.echo(_1,false,false)},isc.A.echoArray=function isc__debug_echoArray(_1){if(!isc.isAn.Array(_1))return this.echo(_1);if(_1.length==0)return"[empty array]";var _2=["["];for(var i=0;i<_1.length;i++){_2.addList([i,":",_1[i],"\n"])} _2.add("]");return _2.join("")},isc.A.echoDOM=function isc__debug_echoDOM(_1){return this.echoDelta(_1,window.Node,_1.tagName+this.getIDText(_1))},isc.A.echoEvent=function isc__debug_echoEvent(_1){return this.echoDelta(_1,(isc.Browser.isMoz?window.KeyEvent:window.Event))},isc.A.echoDelta=function isc__debug_echoDelta(_1,_2,_3){if(_1==null)return null;if(isc.Browser.isIE&&isc.isAn.XMLNode(_1)){var _4="<"+_1.tagName+" [XMLNode] ";var _5=_1.attributes;for(var i=0;i<_5.length;i++){var _7=_5[i];if(i>0)_4+=" ";_4+=_7.name+"="+this.echoLeaf(_7.value)} _4+=(i>0?" [":"")+_1.childNodes.length+" child nodes]>";return _4} var _4=(_3||isc.emptyString)+"{",_8=isc.getKeys(_1);for(var i=0;i<_8.length;i++){var _9=_8[i];if(this.$fj[_9]!=null)continue;if(_2!=null&&_2[_9]!=null)continue;if(_9.length>3&&_9.toUpperCase()==_9)continue;try{var _10=_1[_9];if(_10==null||_10=="")continue;if(isc.isA.Function(_10))continue;_4+=_9+": "+this.echoLeaf(_1[_9])}catch(e){_4+=_9+": "+this.echoLeaf(e)} if(i+1<_8.length)_4+=", "} _4+="}";return _4},isc.A.echoElementSize=function isc__debug_echoElementSize(_1){var _2;return this.echo({scrollLeft:_1.scrollLeft,scrollTop:_1.scrollTop,scrollWidth:_1.scrollWidth,scrollHeight:_1.scrollHeight,clientWidth:_2,clientHeight:_2,offsetWidth:_1.offsetWidth,offsetHeight:_1.offsetHeight,styleLeft:_1.style.left,styleTop:_1.style.top,styleWidth:_1.style.width,styleHeight:_1.style.height,styleClip:_1.style.clip})});isc.B._maxIndex=isc.C+24;isc.Class.addProperties(isc.$94b) isc.Class.addClassProperties(isc.$94b) isc.$fk={logMessage:function(_1,_2,_3,_4){var _5=isc.Log;if(!_5)return;if(_1==null)_1=_5.defaultPriority;if(_1<=_5.stackTracePriority&&this.getStackTrace!=null){_2+="\nStack trace:\n"+this.getStackTrace(arguments,2)} if(!_3)_3=this.Class;var _6=this.ID;if(isc.FormItem&&isc.isA.FormItem(this)&&this.name!=null){_6+="["+this.name+"]"} _5.log(_1,_2,_3,_6,this,_4)},logDebug:function(_1,_2){return this.logMessage(isc.Log.DEBUG,_1,_2)},logInfo:function(_1,_2){return this.logMessage(isc.Log.INFO,_1,_2)},logWarn:function(_1,_2){return this.logMessage(isc.Log.WARN,_1,_2)},logError:function(_1,_2){return this.logMessage(isc.Log.ERROR,_1,_2)},logFatal:function(_1,_2){return this.logMessage(isc.Log.FATAL,_1,_2)},logIsEnabledFor:function(_1,_2){return(isc.Log.isEnabledFor&&isc.Log.isEnabledFor((_2?_2:this.Class),_1,this))},logIsDebugEnabled:function(_1){return this.logIsEnabledFor(isc.Log.DEBUG,_1)},logIsInfoEnabled:function(_1){return this.logIsEnabledFor(isc.Log.INFO,_1)},logIsWarnEnabled:function(_1){return this.logIsEnabledFor(isc.Log.WARN,_1)},logIsErrorEnabled:function(_1){return this.logIsEnabledFor(isc.Log.ERROR,_1)},setLogPriority:function(_1,_2){isc.Log.setPriority(_1,_2,this)},setDefaultLogPriority:function(_1){isc.Log.setDefaultPriority(_1,this)},getDefaultLogPriority:function(){return isc.Log.getDefaultPriority(this)},clearLogPriority:function(_1){isc.Log.clearPriority(_1,this)}};isc.Class.addMethods(isc.$fk) isc.Class.addClassMethods(isc.$fk) isc.ClassFactory.defineClass("Log");isc.A=isc.Log;isc.A.FATAL=1;isc.A.ERROR=2;isc.A.WARN=3;isc.A.INFO=4;isc.A.DEBUG=5;isc.A.PRIORITY_NAMES=["NONE","FATAL","ERROR","WARN","INFO","DEBUG"];isc.A=isc.Log;isc.A.defaultPriority=isc.Log.WARN;isc.A.stackTracePriority=isc.Log.ERROR;isc.A.$fl={"sgwtInternal":(isc.Log.FATAL)};isc.A.$fm={};isc.A.$fn=1000;isc.A.$fo=0;isc.A.$fp=[];isc.A.$fq=":";isc.A.$fr=".";isc.A._allCategories="_allCategories";isc.A.$fs="$fs";isc.A=isc.Log;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A._1zero="0";isc.A._2zero="00";isc.A.showInlineLogs=false;isc.A.$ft="$T_";isc.A.$73n={};isc.A.$fu=["Timed ",,": ",,"ms"];isc.A.flashHiliteCount=7;isc.A.flashHilitePeriod=500;isc.B.push(isc.A.applyLogPriorities=function isc_c_Log_applyLogPriorities(_1){if(!this.$fl){this.$fl={}} if(_1){isc.addProperties(this.$fl,_1)}},isc.A.getLogPriorities=function isc_c_Log_getLogPriorities(_1,_2){var _3;if(_1!=null){var _4=this.$fv(_1);_3=this.$fm[_4];if(_2){return isc.addProperties({},_3)}} var _5=isc.addProperties({},this.$fl);if(_3)_5=isc.addProperties(_5,_3);return _5},isc.A.$fv=function isc_c_Log__getObjectID(_1){var _2;if(_1==null)_2=isc.emptyString;else if(isc.isA.String(_1))return _1;else _2=(_1.getID?_1.getID():_1.getClassName());return _2},isc.A.getPriority=function isc_c_Log_getPriority(_1,_2){if(_2!=null){var _3=this.$fv(_2),_4=this.$fm[_3];if(_4){if(_4._allCategories!=null)return _4._allCategories;if(_4[_1]!=null)return _4[_1];if(_4.$fs!=null)return _4.$fs}} var _5=this.$fl;return _5[_1]||_5.$fs},isc.A.setPriority=function isc_c_Log_setPriority(_1,_2,_3){if(_3!=null){var _4=this.$fv(_3);if(this.$fm[_4]==null) this.$fm[_4]={};if(!_1)_1=this._allCategories;this.$fm[_4][_1]=_2}else{this.$fl[_1]=_2}},isc.A.setDefaultPriority=function isc_c_Log_setDefaultPriority(_1,_2){if(!_2||_2==isc.Log)isc.Log.defaultPriority=_1;else isc.Log.setPriority("$fs",_1,_2)},isc.A.getDefaultPriority=function isc_c_Log_getDefaultPriority(_1){var _2;if(_1&&_1!=isc.Log)_2=this.getPriority("$fs",_1);return _2||isc.Log.defaultPriority},isc.A.clearPriority=function isc_c_Log_clearPriority(_1,_2){if(_2){var _3=this.$fv(_2);if(!_1) delete this.$fm[_3];else if(this.$fm[_3]) delete this.$fm[_3][_1]}else{delete this.$fl[_1]}},isc.A.isEnabledFor=function isc_c_Log_isEnabledFor(_1,_2,_3){if(!_1)_1=isc.$ad;while(_1!=isc.$ad){var _4=this.getPriority(_1,_3);if(_4!=null){return _2<=_4} var _5=_1.lastIndexOf(this.$fr);if(_5>0){_1=_1.substring(0,_5)}else{break}} return _2<=isc.Log.defaultPriority},isc.A.log=function isc_c_Log_log(_1,_2,_3,_4,_5,_6){if(this.isEnabledFor(_3,_1,_5)) this.addLogMessage(_1,_2,_3,_4,_6);else if(this.reportSuppressedLogs){this.logWarn("suppressed log, category: "+_3+": "+_2)}},isc.A.getLogTimestamp=function isc_c_Log_getLogTimestamp(_1){var _2=this.$fw;if(_2==null){_2=this.$fw=[];_2[2]=this.$fq;_2[5]=this.$fq;_2[8]=this.$fr} if(_1==null)_1=new Date();var _3=_1.getHours(),_4=_1.getMinutes(),_5=_1.getSeconds(),_6=_1.getMilliseconds();_2[1]=_3;if(_3<10)_2[0]=this._1zero;else _2[0]=null;_2[4]=_4;if(_4<10)_2[3]=this._1zero;else _2[3]=null;_2[7]=_5;if(_5<10)_2[6]=this._1zero;else _2[6]=null;_2[10]=_6;if(_6<10)_2[9]=this._2zero;else if(_6<100)_2[9]=this._1zero;else _2[9]=null;return _2.join(isc.$ad)},isc.A.getPriorityName=function isc_c_Log_getPriorityName(_1){if(_1==null)return isc.$ad;return this.PRIORITY_NAMES[_1]},isc.A.$fc=function isc_c_Log__makeLogMessage(_1,_2,_3,_4,_5){var _6=this.$fx;if(_6==null){_6=this.$fx=[]} if(!_3)_3=this.category;_6[0]=this.getLogTimestamp(_5);_6[1]=this.$fq;if(this.ns.EH&&this.ns.EH.$lc!=null){_6[2]=this.ns.EH.$lc;_6[3]=this.$fq} if(_1!=null){_6[4]=this.getPriorityName(_1);_6[5]=this.$fq} _6[6]=_3;_6[7]=this.$fq;if(_4){_6[8]=_4 _6[9]=this.$fq} _6[10]=_2;var _7=_6.join(isc.$ad);_6.length=0;return _7},isc.A.addLogMessage=function isc_c_Log_addLogMessage(_1,_2,_3,_4,_5){var _6=this.$fc(_1,_2,_3,_4,_5);this.addToMasterLog(_6);if(this.warningLogged!=null&&_1!=null&&_1<=this.WARN){this.warningLogged(_6)} if(_1!=null&&_1<=this.ERROR){if(!isc.Browser.seleniumPresent)alert(_2)}},isc.A.addToMasterLog=function(message){this.$fp[this.$fo]=message;this.$fo++;if(this.$fo>this.$fn){this.$fo=0} if(this.showInlineLogs){this.updateInlineLogResults()}},isc.A.updateInlineLogResults=function isc_c_Log_updateInlineLogResults(){if(isc.Canvas==null||this.$fp==null)return;if(!this.inlineLogCanvas){this.inlineLogCanvas=isc.Canvas.create({width:"50%",height:"100%",overflow:"auto",backgroundColor:"white",canDragReposition:true,autoDraw:true})} this.inlineLogCanvas.setContents(this.$fp.join("
"));this.inlineLogCanvas.bringToFront()},isc.A.getMessages=function isc_c_Log_getMessages(){var _1=this.$fp,_2=this.$fo,_3=this.$fn;return _1.slice(_3-_2,_3).concat(_1.slice(0,_2))},isc.A.show=function isc_c_Log_show(_1,_2,_3,_4,_5){if(!this.logViewer)this.logViewer=isc.LogViewer.create();this.logViewer.showLog(_1,_2,_3,_4,_5)},isc.A.clear=function isc_c_Log_clear(){this.$fp=[];this.$fo=0;if(this.logViewer)this.logViewer.clear()},isc.A.evaluate=function isc_c_Log_evaluate(_1,_2){var _3=isc.timeStamp();var _4,_5;if(isc.Log.supportsOnError){_5=isc.Class.evalWithVars(_1,_2,this)}else{try{_5=isc.Class.evalWithVars(_1,_2,this)}catch(e){_4=e}} var _6=isc.timeStamp(),_7=isc.Log.getLogTimestamp()+":";var _8=_1.split(/[\r\n]+/);if(_8.length>1)_1=_8[0]+"...";if(_1.length>200)_1=_1.substring(0,200)+"...";if(_4){if(!isc.Log.supportsOnError){isc.Log.$am(_4);return} _7+="Evaluator: '"+_1+"' returned a script error: \r\n'"+_4+"'"}else{_7="Evaluator: result of '"+_1+"' ("+(_6-_3)+"ms):\r\n"+this.echo(_5)} if(this.logViewer)this.logViewer.addToLog(_7,true)},isc.A.updateStats=function isc_c_Log_updateStats(_1){if(isc.debugTarget)isc.debugTarget.updateStats(_1)},isc.A.$fy=function isc_c_Log__logPrelogs(){var _1=isc.$j;if(!_1)return;for(var i=0;i<_1.length;i++){var _3=_1[i];if(isc.isA.String(_3))this.logDebug(_3);else this.logMessage(_3.priority||isc.Log.INFO,_3.message,_3.category,_3.timestamp)} isc.$j=null},isc.A.traceMethod=function isc_c_Log_traceMethod(_1,_2,_3){if(!_1||!_2)return;var _4=this.validObservation(_1,_2);if(!_4)return;if(!this.$fz)this.$fz={};if(!this.$fz[_1])this.$fz[_1]=[];if(!this.$f0)this.$f0=isc.Class.create();var _5=this.$f0;if(_5.isObserving(_4,_2)&&this.$fz[_1].contains(_2)) {_5.ignore(_4,_2);this.logWarn("MethodTimer: Stopped logging stack traces for "+_2+" method on "+_1);this.$fz[_1].remove(_2)}else{var _6=_4.ID?_4.ID:(_4.Class?_4.Class:_4),_7="isc.Log.logWarn('"+_6+"."+_2+"() - trace:' +";if(_3){_7+="'\\n' + isc.Log.getCallTrace(arguments))"}else{_7+="isc.Log.getStackTrace())"} this.logWarn("expression is: "+_7);_5.observe(_4,_2,_7);this.logWarn("MethodTimer: Logging traces whenever "+_2+" method on "+_1+" is called");this.$fz[_1].add(_2)}},isc.A.traceCall=function isc_c_Log_traceCall(_1,_2){this.traceMethod(_1,_2,true)},isc.A.timeMethod=function isc_c_Log_timeMethod(_1,_2,_3,_4,_5){if(!_1||!_2)return;var _6=this.validObservation(_1,_2);if(!_6)return;if(!this.$f1)this.$f1={};if(!this.$f1[_1])this.$f1[_1]=[];if(this.$f1[_1].contains(_2))return;var _7=isc.Log.$ft+_2,_8=isc.$ah+_2,_9=(_6[_8]?_8:_2);_6[_7]=_6[_9];_6[_9]=isc.Log.makeTimerFunction(_2,_6,_3,_4,_5);this.logWarn("MethodTimer: Timing "+_2+" method on "+_1);this.$f1[_1].add(_2)},isc.A.stopTimingMethod=function isc_c_Log_stopTimingMethod(_1,_2){var _3=this.validObservation(_1,_2);if(!_3)return;if(this.$f1[_1].contains(_2)){var _4=isc.Log.$ft+_2,_5=isc.$ah+_2,_6=(_3[_5]?_5:_2) if(!_3[_4]){this.logWarn("Not timing method '"+_2+"' on object '"+_1+"'.");this.$f1[_1].remove(_2);return} _3[_6]=_3[_4];delete _3[_4];this.logWarn("MethodTimer: "+_2+" method on "+_1+" is no longer being timed");this.$f1[_1].remove(_2);return}},isc.A.makeTimerFunction=function isc_c_Log_makeTimerFunction(_1,_2,_3,_4,_5){var _6=_2[_1],_7=isc.Func.getName(_6,true);var _8=function(_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22){if(_5)isc.Log.$f2();var _9=isc.timeStamp();var _10=_6.call(this,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22);var _11=(isc.timeStamp()-_9);if(!_4)isc.Log.$f3(this,_7,_11);return _10} _8.$dx=(_2.ID||_2.Class||"")+"_"+_1+"Timing";_8.$f4=true;_8.$c1=isc.Log.$ft+_1;return _8},isc.A.$f3=function isc_c_Log__logTimerResult(_1,_2,_3){if(this.deferTimerLogs)return this.$f5(_1,_2,_3);var _4=isc.Log.$fu;_4[1]=(_1.logWarn?_2:_2+" on "+this.echoLeaf(_1));_4[3]=_3.toFixed(3);var _5=_4.join(isc.emptyString);if(_1.logMessage)_1.logWarn(_5);else isc.Log.logWarn(_5)},isc.A.validObservation=function isc_c_Log_validObservation(_1,_2){if(isc.isAn.emptyString(_1)||isc.isAn.emptyString(_2))return false;var _3=_1;if(isc.isA.String(_1)){_3=isc.Class.evaluate(_1);if(!_3){this.logWarn("MethodTimer: "+_1+" is not an object.");return false}} if(_2.indexOf("(")!=-1){_2=_2.slice(0,_2.indexOf("("))} if(isc.isA.ClassObject(_3)){var _4=_3.getPrototype();if(isc.isA.Function(_4[_2]))return _4;if(!_3[_2]){this.logWarn("MethodTimer: "+_2+" could not be found as a static or instance property on "+_1);return false}}else if(!_3[_2]){this.logWarn("MethodTimer: "+_2+" is undefined or null on "+_1);return false} if(!isc.Func.convertToMethod(_3,_2)){this.logWarn("MethodTimer: "+_2+" is not a method on "+_1);return false} return _3},isc.A.hiliteCanvas=function isc_c_Log_hiliteCanvas(_1){var _2=_1;if(isc.isA.String(_1))_2=window[_1];if(!isc.isA.Canvas(_2)){this.logWarn("Unable to find specified canvas '"+_1+"'.");return} this.showHiliteCanvas(_2.getPageRect())},isc.A.hiliteElement=function isc_c_Log_hiliteElement(_1){var _2=_1||this.elementToHilite;if(isc.isA.String(_1))_2=isc.Element.get(_1);if(_2==null){this.logWarn("Unable to find specified element '"+_1+"'.");return} this.showHiliteCanvas(isc.Element.getElementRect(_2));this.elementToHilite=null},isc.A.showHiliteCanvas=function isc_c_Log_showHiliteCanvas(_1){var _2=this._hiliteCanvas;if(!_2){_2=this._hiliteCanvas=isc.Canvas.create({ID:"logHiliteCanvas",autoDraw:false,overflow:"hidden",hide:function(){this.Super("hide",arguments);this.resizeTo(1,1);this.setTop(-20)},border1:"2px dotted red",border2:"2px dotted white"})} _2.setPageRect(_1);isc.Page.setEvent("click",_2.getID()+".hide()");_2.setBorder(_2.border1);_2.bringToFront();_2.show();this.$f6()},isc.A.hideHiliteCanvas=function isc_c_Log_hideHiliteCanvas(){if(this._hiliteCanvas)this._hiliteCanvas.hide()},isc.A.$f6=function isc_c_Log__flashHiliteCanvas(){var _1=[this._hiliteCanvas.border1,this._hiliteCanvas.border2];for(var i=0;i=11)||isc.Browser.isMoz&&isc.Browser.version>=31);isc.Log.fallThroughToOnError=isc.Browser.isChrome&&isc.Browser.version>=34;if((isc.Log.supportsOnError||isc.Log.fallThroughToOnError)&&!(window.isc_installOnError==false)) {window.onerror=function(_1,_2,_3,_4,_5){if(_5!=null){isc.Log.$am(_5)}else{var _6=arguments.caller,_7;if(_6==null&&arguments.callee.caller!=null){_7=arguments.callee.caller;_6=_7.arguments} if(_6&&_6.$e9){return} var _8="Error:\r\t'"+_1+"'\r\tin "+_2+"\r\tat line "+_3;if(_7!=null&&_6==null&&isc.Browser.isIE&&isc.Browser.version>=9) {_8+="\r\n crashed in: "+isc.Func.getName(_7,true)+"()\r\n Use any version of Internet Explorer other than IE9 for best diagnostics, otherwise Firefox or Chrome"}else if(_6!=null){_8+=isc.Log.getStackTrace(_6)} isc.Log.logWarn(_8)} if(isc.Browser.isIE&&isc.useIEDebugger){if(confirm("Run debugger?\r\r"+_8)){debugger}}}}else if(isc.Browser.autotest==isc.Browser.RUNNER){window.onerror=function(_1,_2,_3){if(isc.TestRunner){isc.TestRunner.addUnassignedErrorDetails("Javascript Exception at "+_2+", line "+_3+": "+_1)}}} isc.$63a=function(){var _1=this.getDataSource();if(_1&&_1.ID){return"["+this.Class+" ID:"+this.ID+(this.componentId!=null?" (dataSource: "+_1.ID+", created by: "+this.componentId+")":"(dataSource: "+_1.ID+", created directly)")+"]"}else{return"["+this.Class+" ID:"+this.ID+(this.componentId!=null?" (created by: "+this.componentId+")":"(created directly)")+"]"}} isc.$63b=function(_1,_2,_3,_4){var _5=isc.Log;if(!_5)return;if(_1==null)_1=_5.defaultPriority;if(_1<=_5.stackTracePriority&&this.getStackTrace!=null){_2+="\nStack trace:\n"+this.getStackTrace(arguments,2)} if(!_3)_3=this.Class;var _6=this.getDataSource();if(_6&&_6.ID){_5.log(_1,_2,_3,this.ID+" (dataSource: "+_6.ID+", created by: "+this.componentId+")",this,_4)}else{_5.log(_1,_2,_3,this.ID+" (created by: "+this.componentId+")",this,_4)}} isc.A=Array;isc.A.ASCENDING=true;isc.A.DESCENDING=false;isc.A=Array;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.shouldSortAscending=function isc_Array_shouldSortAscending(_1){if(_1==Array.ASCENDING)return true;if(_1==Array.DESCENDING)return false;if(isc.isA.String(_1)){if(_1.toLowerCase()=="ascending")return true;if(_1.toLowerCase()=="descending")return false} return null});isc.B._maxIndex=isc.C+1;isc.A=Array.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.sortByProperty=function isc_Arra_sortByProperty(_1,_2,_3,_4){return this.sortByProperties({property:_1,direction:_2,normalizer:_3,context:_4})},isc.A.setSort=function isc_Arra_setSort(_1){var _2=_1.length,_3=new Array(_2),_4=new Array(_2),_5=new Array(_2),_6=new Array(_2),_7=new Array(_2);for(var i=0;i<_2;++i){var _9=_1[i];_3[i]=_9.property;_4[i]=Array.shouldSortAscending(_9.direction);_5[i]=_9.normalizer;_6[i]=_9.context;_7[i]=_9.$114u} return this.sortByProperties(_3,_4,_5,_6,_7)},isc.A.sortByProperties=function isc_Arra_sortByProperties(){if(this.$506==null){this.$506=[];this.$gh=[];this.$gi=[]} var _1=this.$gh,_2=this.$gi;var _3=false,_4=false;if(isc.isAn.Array(arguments[0])){this.sortProps=arguments[0];this.sortDirections=arguments[1]||[];this.normalizers=arguments[2]||[];this.contexts=arguments[3]||[];this.$135c=arguments[4]||[];_3=arguments[5]||false;_4=arguments[6]||false}else{if(!this.sortProps){this.sortProps=[];this.normalizers=[];this.sortDirections=[];this.contexts=[];this.$135c=[]}else{this.sortProps.clear();this.sortDirections.clear();this.normalizers.clear();this.contexts.clear();this.$135c.clear()} for(var i=0,_6=arguments.length,_7=0;i<_6;++i){var _8=arguments[i];if(!isc.isAn.Object(_8)){if(_7==0){_3=_8||false}else if(_7==1){_4=_8||false} ++_7}else{this.sortProps[i]=_8.property;this.sortDirections[i]=_8.direction;this.normalizers[i]=_8.normalizer;this.contexts[i]=_8.context;this.$135c[i]=_8.$114u;_3=_4=false;_7=0}}} if(this.sortProps==null||this.sortProps.length==0){return(_3?null:this)} var _9=this.sortProps,_10=this.normalizers,_11=this.contexts;_1.length=_9.length;_2.length=_9.length;var _12=(_4&&isc.ResultSet!=null?isc.ResultSet.getLoadingMarker():undefined);var _13=Array.compareAscending,_14=Array.compareDescending;var _15=isc.timestamp();for(var i=0;i<_9.length;i++){var _16=this.$506[i]=this.sortDirections[i];if(!isc.isA.Function(this.$135c[i])){this.$135c[i]=(_16?_13:_14)} var _17=_9[i],_18=_10[i],_19=_11[i],l=this.length;_1[i]=new Array(l);_2[i]=new Array(l);var _21=null;var _22=false;var _23=false;if(isc.isA.Function(_18)){for(var _24=0;_24=0)}} if(_21==null){_21=this.$gj(_9[i])} var _28=isc.SimpleType.getType(_21);var _29=isc.SimpleType.getBaseType(_28);if(_29==null){_29=_21} if(!_22){_18=Array.$gk(_29)} if(_18==null)_18=Array.$gl;var _30=this.normalizers[i];for(var _24=0;_24=9)} if(isc.Browser.compensateForUnstableSort){var _33=_1.length;_1[_33]=new Array(this.length);for(var i=0;i0){_35=true;break}} this.$752=_35;var _36=this.$gh,_37=this.$506,_38=this.$gi,_39=this.$135c;var _40=function(_49,_50){var _41=(_49!=null?_49.$gm:null),_42=(_50!=null?_50.$gm:null);for(var i=0;i<_36.length;i++){var _43=_36[i][_41],_44=_36[i][_42];if(_35&&_43!=null&&_44!=null){var _45=_38[i][_41],_46=_38[i][_42];if(_45!==undefined&&_46!==undefined){_43=_45;_44=_46}} var _47=_39[i](_43,_44);if(_47!=0)return _47;else if(_35){if((_45!==undefined)!=(_46!==undefined)){return(_45!==undefined)==!!_37[i]?-1:1}}} return 0};var _15=isc.timeStamp();this.sort(_40);if(isc.$gq){isc.Log.logWarn("Attempt to sort array by property hit null entry where a record should be. Array:"+isc.Log.echo(this));isc.$gq=null} var _48=null;if(_3){_48=this.$120z("$gm")}else{this.clearProperty("$gm")} _1.clear();_2.clear();this.$506.clear();this.dataChanged();return(_3?_48:this)},isc.A.unsort=function isc_Arra_unsort(){if(this.sortProps)this.sortProps.clear();return true},isc.A.$gj=function isc_Arra__getSortDataType(_1,_2){var _3=(_2!=null?(isc.isAn.Array(_2)?_2:[_2]):this);for(var i=0;i<_3.length;i++){if(!isc.isAn.Object(_3[i]))continue;_2=_3[i][_1];if(_2==null)continue;var _5=Array.$gr(_2);if(_5!=null)return _5} return null},isc.A.$gs=function isc_Arra__getNormalizer(_1,_2){var _3=this.$gj(_1,_2);var _4=Array.$gk(_3);return _4||Array.$gl},isc.A.normalize=function isc_Arra_normalize(_1,_2){var _3=(_2.indexOf("/")>=0);var _4=null;var _5;if(isc.isA.String(this.normalizer)){var _6=this.$gj(_2);_4=isc.SimpleType.getType(_6);var _7=isc.SimpleType.getBaseType(_4);_5=this.$gk(_7)}else{_5=this.normalizer} var _8=Array.$905(_1,_2,_3,_4);return _5[_8]});isc.B._maxIndex=isc.C+7;isc.A=Array;isc.A.$gt="$gu";isc.A.$gv="$gw";isc.A=Array;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$a6="string";isc.A.$gx="text";isc.A.$gy="number";isc.A.$gz="integer";isc.A.$g0="float";isc.A.$g1="int";isc.A.$g2="boolean";isc.A._$Date_="Date";isc.A.$g3="Time";isc.A.$68l="datetime";isc.A.$89w="Datetime";isc.A.$g4="date";isc.A.$g5="time";isc.A.$bl="object";isc.A.$g6={"float":"number","int:":"number","integer":"number","text":"string","Date":"date","Time":"date","time":"date"};isc.B.push(isc.A.$gl=function isc_Array__normalizeObj(_1){return _1},isc.A.$905=function isc_Array__getAtomicValue(_1,_2,_3,_4){var _5=null;if(_3){_5=isc.Canvas.$70o(_2,null,_1,null,true)}else{_5=_1[_2]} if(_4&&_4.getAtomicValue){isc.Func.replaceWithMethod(_4,"getAtomicValue","value");_5=_4.getAtomicValue(_5)} return _5},isc.A.$g7=function isc_Array__normalizeStr(_1){return(isc.isA.String(_1)?_1.toLowerCase():isc.emptyString)},isc.A.$g8=function isc_Array__normalizeNum(_1){return isc.isA.Number(_1)?_1:(0-Number.MAX_VALUE)},isc.A.$g9=function isc_Array__normalizeBool(_1){if(_1==true)return 1;if(_1==false)return 0;if(_1==null)return-1;return-2},isc.A.$ha=function isc_Array__normalizeDate(_1){var _2=(_1&&isc.isA.Date(_1)?_1.getTime():new Date(_1).getTime()) if(isNaN(_2)||_1==null)return-8640000000000000;return _2},isc.A.$hb=function isc_Array__normalizeTime(_1){if(!isc.isA.Date(_1)&&_1!=null)_1=isc.Time.parseInput(_1);if(isc.isA.Date(_1))return _1.getTime();return 0},isc.A.textToNumericNormalizer=function isc_Array_textToNumericNormalizer(_1){var _2=parseInt(_1,10);if(isc.isA.Number(_2))return _2;else return 0},isc.A.$gk=function isc_Array__getNormalizerFromType(_1){if(!_1||!isc.isA.String(_1))return null;switch(_1){case this.$a6:case this.$gx:return Array.$g7;case this.$g2:return Array.$g9;case this._$Date_:case this.$g4:case this.$89w:case this.$68l:return Array.$ha;case this.$g3:case this.$g5:return Array.$hb;case this.$gy:case this.$gz:case this.$g1:case this.$g0:return Array.$g8} return Array.$gl},isc.A.$gr=function isc_Array__getType(_1){var _2=typeof _1;if(_2==this.$bl){if(isc.isA.Date(_1))_2=this.$g4} return _2},isc.A.$gn=function isc_Array__matchesType(_1,_2){var _3=this.$gr(_1);if(_3==_2)return true;return(this.$g6[_2]==_3)},isc.A.compareAscending=function isc_Array_compareAscending(_1,_2){if(_1!=null&&_1.localeCompare!=null){return _1.localeCompare(_2)} if(_2!=null&&_2.localeCompare!=null){return-_2.localeCompare(_1)} return(_2>_1?-1:_2<_1?1:0)},isc.A.compareDescending=function isc_Array_compareDescending(_1,_2){if(_1!=null&&_1.localeCompare!=null){return-_1.localeCompare(_2)} if(_2!=null&&_2.localeCompare!=null){return _2.localeCompare(_1)} return(_2<_1?-1:_2>_1?1:0)},isc.A.safariCompareAscending=function isc_Array_safariCompareAscending(_1,_2){if(_1!=null&&_1.localeCompare!=null){return(_1.localeCompare(_2)-2)} if(_2!=null&&_2.localeCompare!=null){return-(_2.localeCompare(_1)-2)} return(_2>_1?-1:_2<_1?1:0)},isc.A.safariCompareDescending=function isc_Array_safariCompareDescending(_1,_2){if(_1!=null&&_1.localeCompare!=null){return-(_1.localeCompare(_2)-2)} if(_2!=null&&_2.localeCompare!=null){return(_2.localeCompare(_1)-2)} return(_2<_1?-1:_2>_1?1:0)});isc.B._maxIndex=isc.C+15;(function(){if(isc.Browser.isSafari){var b="b";if(b.localeCompare("a")==3){Array.compareAscending=Array.safariCompareAscending;Array.compareDescending=Array.safariCompareDescending}}})();isc.A=Array.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.max=function isc_Arra_max(_1,_2){if(_1==null)_1=0;if(_2==null)_2=this.length;var _3=null;for(var i=_1;i<_2;i++){var _5=this[i];if(isc.isA.Number(_5)){if(_3==null)_3=_5;else _3=Math.max(_3,_5)}} return _3},isc.A.min=function isc_Arra_min(_1,_2){if(_1==null)_1=0;if(_2==null)_2=this.length;var _3=null;for(var i=_1;i<_2;i++){var _5=this[i];if(isc.isA.Number(_5)){if(_3==null)_3=_5;else _3=Math.min(_3,_5)}} return _3},isc.A.sum=function isc_Arra_sum(_1,_2){if(_1==null)_1=0;if(_2==null)_2=this.length;var _3=0;for(var i=_1;i<_2;i++) if(isc.isA.Number(this[i]))_3+=this[i];return _3},isc.A.and=function isc_Arra_and(_1,_2){if(_1==null)_1=0;if(_2==null)_2=this.length;for(var i=_1;i<_2;i++) if(!this[i])return false;return true},isc.A.or=function isc_Arra_or(_1,_2){if(_1==null)_1=0;if(_2==null)_2=this.length;var _3=0;for(var i=_1;i<_2;i++) if(this[i])return true;return false});isc.B._maxIndex=isc.C+5;isc.getValueForKey=function(_1,_2,_3){if(_2&&_2[_1]!=null&&!isc.isAn.Array(_2))return _2[_1];return(arguments.length<3?_1:_3)} isc.getKeyForValue=function(_1,_2,_3){if(_2){for(var _4 in _2){if(_2[_4]==_1)return _4}} return(arguments.length<3?_1:_3)} isc.makeReverseMap=function(_1){var _2={},_3;for(var _4 in _1){_3=_1[_4];_2[_3]=_4} return _2} isc.sortByKey=function(_1){var _2={},_3=isc.getKeys(_1).sort();for(var i=0;i<_3.length;i++){_2[_3[i]]=_1[_3[i]]} return _2} isc.sortByValue=function(_1){return isc.makeReverseMap(isc.sortByKey(isc.makeReverseMap(_1)))} isc.ClassFactory.defineClass("Time");isc.A=isc.Time;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$he=[/^\s*(\d?\d)\s*[: ]\s*(\d?\d)\s*[: ]\s*(\d?\d)?\s*([AaPp][Mm]?)?\s*([+-]\d{2}:\d{2}|Z)?\s*$/,/^\s*(\d?\d)\s*[: ]\s*(\d?\d)(\s*)([AaPp][Mm]?)?\s*([+-]\d{2}:\d{2}|Z)?\s*$/,/^\s*(\d\d)(\d\d)(\d\d)?\s*([AaPp][Mm]?)?\s*([+-]\d{2}:\d{2}|Z)?\s*$/,/^\s*(\d)(\d\d)(\d\d)?\s*([AaPp][Mm]?)?\s*([+-]\d{2}:\d{2}|Z)?\s*$/,/^\s*(\d\d?)(\s)?(\s*)([AaPp][Mm]?)?\s*([+-]\d{2}:\d{2}|Z)?\s*$/];isc.A.$111p=/(?:(\d?\d)\s*[: ]\s*(\d?\d)\s*[: ]\s*(\d?\d)?|(\d?\d)\s*[: ]\s*(\d?\d)(\s*)|(\d\d)(\d\d)(\d\d)|(\d)(\d\d)(\d\d)?|(\d\d?)(\s)?(\s*))\s*([AaPp][Mm])?/g;isc.A.formatterMap={toTime:{showSeconds:true,padded:false,show24:false},to24HourTime:{showSeconds:true,padded:false,show24:true},toPaddedTime:{showSeconds:true,padded:true,show24:false},toPadded24HourTime:{showSeconds:true,padded:true,show24:true},toShortTime:{showSeconds:false,padded:false,show24:false},toShort24HourTime:{showSeconds:false,padded:false,show24:true},toShortPaddedTime:{showSeconds:false,padded:true,show24:false},toShortPadded24HourTime:{showSeconds:false,padded:true,show24:true},toTimestamp:{showSeconds:true,padded:true,show24:true,showMillis:true}};isc.A.displayFormat="toTime";isc.A.shortDisplayFormat="toShortTime";isc.A.AMIndicator=" am";isc.A.PMIndicator=" pm";isc.B.push(isc.A.setDefaultDisplayTimezone=function isc_c_Time_setDefaultDisplayTimezone(_1,_2){this.$854=!_2;if(_1==null)return;var _3,_4;if(isc.isA.Number(_1)){_1=-_1;_3=Math.floor(_1/60);_4=_1-(_3*60)}else if(isc.isA.String(_1)){var _5=_1.split(":");_3=_5[0];var _6=_3&&_3.startsWith("-");if(_6)_3=_3.substring(1);_4=_5[1];_3=(_6?-1:1)*parseInt(_3,10);_4=(_6?-1:1)*parseInt(_4,10)} if(isc.isA.Number(_3)&&isc.isA.Number(_4)){this.UTCHoursDisplayOffset=_3;this.UTCMinutesDisplayOffset=_4}},isc.A.getDefaultDisplayTimezone=function isc_c_Time_getDefaultDisplayTimezone(){var H=this.UTCHoursDisplayOffset,M=this.UTCMinutesDisplayOffset,_3=H<0;return(!_3?"+":"-")+((_3?-1:1)*H).stringify(2)+":"+((_3?-1:1)*M).stringify(2)});isc.B._maxIndex=isc.C+2;isc.A=isc.Time;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$hf=[null,":",null,":"];isc.A.$hg=[null,":"];isc.B.push(isc.A.toTime=function isc_c_Time_toTime(_1,_2,_3){return this.format(_1,_2,false,_3)},isc.A.toShortTime=function isc_c_Time_toShortTime(_1,_2,_3){return this.format(_1,_2,true,_3)},isc.A.format=function isc_c_Time_format(_1,_2,_3,_4){if(!isc.isA.Date(_1))return _1;var _5=_2;if(!_2&&!isc.isA.String(_2)&&!isc.isA.Function(_2)){_2=_3?this.shortDisplayFormat:this.displayFormat} if(isc.isA.Function(_2))return _2(_1,_4);if(isc.isA.String(_2))_2=this.formatterMap[_2];if(!isc.isAn.Object(_2)){this.logWarn("Invalid time formatter:"+_5+" - using 'toTime'");_2=this.formatterMap.toTime} var _6=_2.showSeconds,_7=_2.padded,_8=_2.show24,_9=_2.showMillis;var _10;if(_4!=null)_10=!_4;else _10=!_1.logicalTime&&!_1.logicalDate;var _11,_12;if(!_10){_11=_1.getHours();_12=_1.getMinutes()}else{var _11=_1.getUTCHours(),_12=_1.getUTCMinutes();var _13=this.$68d(_11,_12,this.getUTCHoursDisplayOffset(_1),this.getUTCMinutesDisplayOffset(_1));_11=_13[0];_12=_13[1]} var _14=_6?_1.getUTCSeconds():null,_15=_8?null:(_11>=12);if(!_8){if(_11>12)_11=_11-12;if(_11==0)_11=12} if(_7)_11=_11.stringify(2);var _16=_6?this.$hf:this.$hg;_16[0]=_11;_16[2]=_12.stringify();if(_6)_16[4]=_14.stringify();if(!_8)_16[5]=(_15?this.PMIndicator:this.AMIndicator);else _16[5]=null;var _17=_16.join(isc.emptyString);if(_9){var _18=_1.getMilliseconds().stringify(3);_17+="."+_18} return _17},isc.A.parseInput=function isc_c_Time_parseInput(_1,_2,_3,_4,_5){var _6=null,_7=null,_8=null,_9=null,_10;var _11,_12;if(isc.isA.Date(_1)){_3=true;_6=_1.getUTCHours();_7=_1.getUTCMinutes();_8=_1.getUTCSeconds();_9=_1.getUTCMilliseconds()}else if(_1!=null){for(var i=0;i=60){_2-=60;_1+=1} while(_2<0){_2+=60;_1-=1} var _5=0;while(_1>=24){_1-=24;_5+=1} while(_1<0){_1+=24;_5-=1} return[_1,_2,_5]},isc.A.createDate=function isc_c_Time_createDate(_1,_2,_3,_4,_5){return this.createLogicalTime(_1,_2,_3,_4,_5)},isc.A.createLogicalTime=function isc_c_Time_createLogicalTime(_1,_2,_3,_4,_5){var _6=new Date(null);if(_1==null)_1=0;if(_2==null)_2=0;if(_3==null)_3=0;if(_4==null)_4=0;if(_5){_6.setUTCHours(_1,_2,_3,_4)}else{_6.setHours(_1,_2,_3,_4)} _6.logicalTime=true;return _6},isc.A.setShortDisplayFormat=function isc_c_Time_setShortDisplayFormat(_1){this.shortDisplayFormat=_1},isc.A.setNormalDisplayFormat=function isc_c_Time_setNormalDisplayFormat(_1){this.displayFormat=_1},isc.A.compareTimes=function isc_c_Time_compareTimes(_1,_2){if(isc.isA.String(_1))_1=isc.Time.parseInput(_1);if(isc.isA.String(_2))_2=isc.Time.parseInput(_2);if(_1==null&&_2==null)return true;if(!isc.isA.Date(_1)||!isc.isA.Date(_2))return false;return((_1.getUTCHours()==_2.getUTCHours())&&(_1.getUTCMinutes()==_2.getUTCMinutes())&&(_1.getUTCSeconds()==_2.getUTCSeconds()))},isc.A.compareLogicalTimes=function isc_c_Time_compareLogicalTimes(_1,_2){if(!isc.isA.Date(_1)||!isc.isA.Date(_2))return false;_1=isc.Date.getLogicalTimeOnly(_1);_2=isc.Date.getLogicalTimeOnly(_2);var _3=_1.getHours(),_4=_1.getMinutes(),_5=_1.getSeconds(),_6=_1.getMilliseconds();var _7=_2.getHours(),_8=_2.getMinutes(),_9=_2.getSeconds(),_10=_2.getMilliseconds();var _11=_6+1000*(_5+60*(_4+60*_3));var _12=_10+1000*(_9+60*(_8+60*_7));return _11>_12?-1:(_12>_11?1:0)},isc.A.$76r=function isc_c_Time__performDstInit(){var _1=new Date(),_2=new Date(0),_3=new Date(0);_2.setUTCFullYear(_1.getUTCFullYear());_2.setUTCMonth(0);_2.setUTCDate(1);_3.setUTCFullYear(_1.getUTCFullYear());_3.setUTCMonth(6);_3.setUTCDate(1);var _4=_1.getTimezoneOffset();this.januaryDstOffset=_2.getTimezoneOffset();var _5=_3.getTimezoneOffset();this.dstDeltaMinutes=this.januaryDstOffset-_5;if(this.dstDeltaMinutes>0){this.southernHemisphere=false;this.adjustForDST=true;if(_4==_5)this.currentlyInDST=true}else if(this.dstDeltaMinutes<0){this.southernHemisphere=true;this.adjustForDST=true;if(_4==this.januaryDstOffset)this.currentlyInDST=true}else{this.adjustForDST=false} this.dstDeltaMinutes=Math.abs(this.dstDeltaMinutes);this.dstDeltaHours=Math.floor(this.dstDeltaMinutes/60);this.dstDeltaMinutes-=(this.dstDeltaHours*60)},isc.A.getUTCHoursDisplayOffset=function isc_c_Time_getUTCHoursDisplayOffset(_1,_2){var _3=this.currentlyInDST?-(this.dstDeltaHours):0;if(this.adjustForDST){if(_1.getTimezoneOffset()==this.januaryDstOffset){if(this.southernHemisphere){_3+=this.dstDeltaHours}}else{if(!this.southernHemisphere){_3+=this.dstDeltaHours}}} return(_2!=null?_2:this.UTCHoursDisplayOffset)+(this.adjustForDST?_3:0)},isc.A.getUTCMinutesDisplayOffset=function isc_c_Time_getUTCMinutesDisplayOffset(_1,_2){var _3=this.currentlyInDST?-(this.dstDeltaMinutes):0;if(this.adjustForDST){if(_1.getTimezoneOffset()==this.januaryDstOffset){if(this.southernHemisphere){_3+=this.dstDeltaMinutes}}else{if(!this.southernHemisphere){_3+=this.dstDeltaMinutes}}} return(_2!=null?_2:this.UTCMinutesDisplayOffset)+(this.adjustForDST?_3:0)});isc.B._maxIndex=isc.C+15;isc.Time.$76r();isc.Time.setDefaultDisplayTimezone(new Date().getTimezoneOffset(),true);isc.A=isc.Class.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.getSGWTInstance=function isc_Class_getSGWTInstance(){return this[isc.gwtRef]},isc.A.getSGWTModule=function isc_Class_getSGWTModule(){return this[isc.gwtModule]},isc.A.getSGWTFactory=function isc_Class_getSGWTFactory(){var _1=this.getSGWTModule();if(!_1)return null;var _2=this.getSGWTInstance();if(!_2)return null;return _1.getSGWTFactory(_2)},isc.A.getSGWTClassName=function isc_Class_getSGWTClassName(){var _1=this.getSGWTFactory();return _1?_1.getClassName():null},isc.A.setSGWTProperties=function isc_Class_setSGWTProperties(_1){var _2=this.getSGWTFactory();if(_2){_2.setSGWTProperties(this.getSGWTInstance(),_1)}else{this.setProperties(_1)}},isc.A.getSGWTAttributes=function isc_Class_getSGWTAttributes(){var _1=this.getSGWTFactory();if(_1){return _1.getSGWTAttributes()}else{var _2=[];for(var _3 in this){if(typeof this[_3]=="function")continue;if(_3.charAt(0)=="_")continue;if(_3==_3.toUpperCase())continue;_2[_2.length]=_3} return _2}},isc.A.getSGWTProperty=function isc_Class_getSGWTProperty(_1){var _2=this.getSGWTModule();if(_2){return _2.getProperty(this.getSGWTInstance(),_1)}else{return this.getProperty(_1)}},isc.A.getSGWTPropertyAsString=function isc_Class_getSGWTPropertyAsString(_1){var _2=this.getSGWTModule();if(_2){return _2.getPropertyAsString(this.getSGWTInstance(),_1)}else{var _3=this.getProperty(_1);return _3?_3.toString():_3}});isc.B._maxIndex=isc.C+8;isc.defineClass("SGWTFactory");isc.A=isc.SGWTFactory;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.CONFIG_BLOCK="sgwtConfigBlock";isc.A.SC_INSTANCE="smartclientInstance";isc.A.BEAN_CLASS_PARTS="beanClassParts";isc.B.push(isc.A.getFactory=function isc_c_SGWTFactory_getFactory(_1){if(!_1)return null;var _2=isc[_1];if(_2&&isc.isA.SGWTFactoryObject(_2)){return _2}else{return null}},isc.A.extractFromConfigBlock=function isc_c_SGWTFactory_extractFromConfigBlock(_1){if(_1[isc.SGWTFactory.CONFIG_BLOCK]){return _1[isc.SGWTFactory.SC_INSTANCE]}else{return _1}});isc.B._maxIndex=isc.C+2;isc.A=isc.isA;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.SGWTFactoryObject=function isc_isA_SGWTFactoryObject(_1){return _1!=null&&_1.$1229==true});isc.B._maxIndex=isc.C+1;isc.A=isc.SGWTFactory.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$1229=true;isc.B.push(isc.A.getClassName=function isc_SGWTFactory_getClassName(){return this.beanClassName},isc.A.getSGWTClassName=function isc_SGWTFactory_getSGWTClassName(){return this.beanClassName},isc.A.getSuperClass=function isc_SGWTFactory_getSuperClass(){return this.$b8},isc.A.init=function isc_SGWTFactory_init(){this.Super("init",arguments);this.Class=this.beanClassName;this.isFrameworkClass=this.isSGWTFrameworkClass();if(!this.isFrameworkClass){var _1=this.getSGWTSuperClass();while(_1&&!_1.isFrameworkClass){_1=_1.getSGWTSuperClass()} if(_1)this.$75y=_1.Class} if(!this.$75y)this.$75y=this.Class;this.$b8=this.getSGWTSuperClass();isc.isA[this.beanClassName]=isc.ClassFactory.makeIsAFunc(this.beanClassName);if(this.isA("Canvas"))this._isA_Canvas=true},isc.A.registerClassName=function isc_SGWTFactory_registerClassName(){try{var _1=this;var _2=isc[this.beanClassName];if(_2){if(isc.isA.ClassObject(_2)){this.logWarn("beanClassName '"+this.beanClassName+"' collides with existing native SmartClient class with the same name. The bean will not be registered.");return}else if(isc.isA.SGWTFactoryObject(_2)){this.logWarn("beanClassName '"+this.beanClassName+"' has already been registered. The existing bean will be replaced.")}else{this.logWarn("beanClassName '"+this.beanClassName+"' collides with the ID of an existing object with value '"+this.echo(_2)+"'. The bean will not be registered.");return}} var _3=this.beanClassName.split(".");if(_3.length>1){var _4=isc;var _5="isc";for(var i=0;i<_3.length-1;i++){var _7=_3[i] var _2=_4[_7];_5=_5+"."+_7;if(_2){if(!_2[isc.SGWTFactory.BEAN_CLASS_PARTS]){this.logWarn("beanClassName '"+this.beanClassName+"' collides with existing object located at '"+_5+"' with value '"+this.echo(_2)+"'. The bean will not be registered.");return}}else{_4[_7]={};_4[_7][isc.SGWTFactory.BEAN_CLASS_PARTS]=true} _4=_4[_7]} var _8=_3[_3.length-1];_4[_8]=_1} isc[this.beanClassName]=_1} catch(e){this.logError(e.message)}},isc.A.create=function isc_SGWTFactory_create(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){if(isc.captureDefaults){isc.captureDefaults=false;var _14={type:this.Class,defaults:isc.addProperties({},_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)} delete _14.defaults._constructor;if(!isc.capturedComponents)isc.capturedComponents=[];isc.capturedComponents.add(_14);if(_14.defaults.ID){isc.ClassFactory.addGlobalID(_14,_14.defaults.ID)} isc.captureDefaults=true;return _14} var _15=isc.addProperties({},_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13);delete _15._constructor;var _16=this.sgwtModule.newInstance(this.beanClassName,_15);return this.getOrCreateJsObj(_16)},isc.A.createRaw=function isc_SGWTFactory_createRaw(){var _1=this;var _2={getClass:function(){return isc[_1.beanClassName]},init:function(_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16){isc.addProperties(this,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16);delete(this.init);delete(this.completeCreation);delete(this.getClass);delete(this[isc.SGWTFactory.CONFIG_BLOCK]);if(this[isc.gwtRef]===null)delete this[isc.gwtRef];if(isc.captureDefaults){var _3={type:_1.beanClassName,defaults:isc.addProperties({},this)} if(!isc.capturedComponents)isc.capturedComponents=[];isc.capturedComponents.add(_3);if(_3.defaults.ID){isc.ClassFactory.addGlobalID(_3,_3.defaults.ID)} this[isc.SGWTFactory.SC_INSTANCE]=_3;this[isc.SGWTFactory.CONFIG_BLOCK]=true;return} this[isc.SGWTFactory.SC_INSTANCE]=_1.create(this);this[isc.SGWTFactory.CONFIG_BLOCK]=true},completeCreation:function(_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16){this.init(_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16);return this[isc.SGWTFactory.SC_INSTANCE]}} _2[isc.SGWTFactory.CONFIG_BLOCK]=true;return _2},isc.A.setSGWTProperties=function isc_SGWTFactory_setSGWTProperties(_1,_2){if(_2){if(isc.isA.String(_2)){if(!(isc.startsWith(_2,'(')&&isc.endsWith(_2,')'))){_2='('+_2+')'} _2=isc.Class.evaluate(_2)} for(var _3 in _2){this.sgwtModule.setProperty(_1,_3,_2[_3])}}},isc.A.getSGWTAttributes=function isc_SGWTFactory_getSGWTAttributes(){return this.sgwtModule.getAttributes(this.beanClassName)},isc.A.getSGWTProperty=function isc_SGWTFactory_getSGWTProperty(_1,_2){return this.sgwtModule.getProperty(_1,_2)},isc.A.getSGWTPropertyAsString=function isc_SGWTFactory_getSGWTPropertyAsString(_1,_2){return this.sgwtModule.getPropertyAsString(_1,_2)},isc.A.getOrCreateJsObj=function isc_SGWTFactory_getOrCreateJsObj(_1){return this.sgwtModule.getOrCreateJsObj(_1)},isc.A.setJsObj=function isc_SGWTFactory_setJsObj(_1,_2){this.sgwtModule.setJsObj(_1,_2)},isc.A.getSGWTSuperClass=function isc_SGWTFactory_getSGWTSuperClass(){return this.sgwtModule.getSGWTSuperClass(this)},isc.A.isSGWTFrameworkClass=function isc_SGWTFactory_isSGWTFrameworkClass(){return this.sgwtModule.isSGWTFrameworkClass(this)},isc.A.getDefaultScClassName=function isc_SGWTFactory_getDefaultScClassName(){return this.sgwtModule.getDefaultScClassName(this)},isc.A.getDefaultScClass=function isc_SGWTFactory_getDefaultScClass(){return isc.ClassFactory.getClass(this.getDefaultScClassName())},isc.A.isA=function isc_SGWTFactory_isA(_1){if(_1==null)return false;var _2=this.getDefaultScClass();if(_2&&_2.isA(_1))return true;if(!isc.isA.String(_1)){if(_1.getSGWTClassName)_1=_1.getSGWTClassName();if(!isc.isA.String(_1))return false} if(isc.startsWith(_1,isc.ClassFactory.$f)){_1=_1.substring(4)} var _3=this;while(_3){if(_3.beanClassName==_1)return true;_3=_3.getSGWTSuperClass()} return false});isc.B._maxIndex=isc.C+18;isc.A=isc.SGWTFactory.getPrototype();isc.A.newInstance=isc.SGWTFactory.getInstanceProperty("create");isc.ClassFactory.defineClass("Page");isc.A=isc.Page;isc.A.$hi=[];isc.A.$hj=false;isc.A.defaultUnsupportedBrowserURL="[SKIN]/unsupported_browser.html";isc.A.$hk={};isc.A.protocolURLs=window.isc_protocolURLs||["http://","https://","file://","mailto:","app-resource:","data:"];isc.A.textDirection=null;isc.A.LTR="ltr";isc.A.RTL="rtl";isc.A.$148v=false;isc.A=isc.Page;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$hm="[SKIN]";isc.A.$hn="[SKIN]/";isc.A.$ho="[";isc.A.$hp="./";isc.A.$hq="..";isc.A.$880="body";isc.A.$55w="html";isc.A.$942="direction";isc.A.leaveScrollbarGap=isc.Browser.isMoz&&isc.Browser.geckoVersion<20051107;isc.A.getWidth=(isc.Browser.isNS?function(_1,_2){if(!_1)_1=window;_2=_2||(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20080529);if(isc.Browser.isMoz&&_1==window&&!_2){if(this.width!=null){return this.width-(this.leaveScrollbarGap?(isc.Element?isc.Element.getNativeScrollbarSize():16):0)} this.logInfo("NOTE: isc.Page.getWidth() unable to determine page width. Returning 500","sizing");return 500}else{var _3=isc.Browser.geckoVersion!=null&&isc.Browser.geckoVersion<20051111;var _4=!isc.Browser.isAndroid&&!this.leaveScrollbarGap&&!_3&&_1.document.body!=null,_5;if(_4){var _6=isc.Browser.isStrict?_1.document.documentElement:_1.document.body;if(_6!=null)_5=_6.clientWidth} if(_5==null||_5==0){_5=_1.innerWidth} if(_1==window)this.width=_5;return _5}}:function(_1){if(!_1)_1=window;var _2=_1.document.body;if(isc.Browser.isStrict&&(!isc.Browser.isOpera||isc.Browser.minorVersion>=9.5)) _2=_1.document.documentElement;if(_2){return _2.clientWidth}else{if(!isc.Page.isLoaded()){isc.Page.setEvent("load","isc.EH.$hr()",isc.Page.FIRE_ONCE)} this.logWarn("NOTE: isc.Page.getWidth() called before tag was written out -- value cannot be determined. Returning 500");return 500}});isc.A.getHeight=(isc.Browser.isNS?function(_1,_2){if(!_1)_1=window;_2=_2||(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20080529);if(isc.Browser.isMoz&&_1==window&&!_2){if(this.height!=null)return this.height;return 500}else{var _3=!isc.Browser.isAndroid&&isc.Browser.isMobileWebkit||(!isc.Browser.isStrict&&isc.Browser.geckoVersion>=20051111)&&_1.document.body!=null,_4;if(_3){_4=(isc.Browser.isStrict?_1.document.documentElement:_1.document.body).clientHeight} if(_4==null||_4==0){_4=_1.innerHeight} if(isc.Browser.isIPad&&isc.Browser.isMobileSafari&&isc.Browser.iOSVersion==7){if(this.getOrientation()==="landscape"){var _5=this.$130f();_4=((692-20)/_5)<<0;document.body.style.height=_4+"px";document.documentElement.style.height=_4+"px"}else{document.body.style.height="";document.documentElement.style.height=""}} if(isc.Browser.isTouch&&(isc.Browser.isAndroid||isc.Browser.isRIM)){if(this.$893==null){this.$893=_4;this.$26u=isc.Page.getWidth(_1,_2);this.$94e=this.getOrientation()}else{var _6=this.getOrientation();if(_4>this.$893||Math.abs(_4-this.$893)<=100||_6!=this.$94e) {this.$94e=_6;this.$893=_4;this.$26u=isc.Page.getWidth(_1,_2)}else{_4=this.$893}}} if(_1==window)this.height=_4;return _4}}:function(_1){if(!_1)_1=window;var _2=_1.document.body;if(isc.Browser.isStrict&&(!isc.Browser.isOpera||isc.Browser.minorVersion>=9.5)) _2=_1.document.documentElement;if(_2){return _2.clientHeight}else{this.logWarn("NOTE: isc.Page.getHeight() called before tag was written out -- value cannot be determined. Returning 500");return 500}});isc.A.getScrollLeft=(isc.Browser.isNS?function(_1){var _2=window.pageXOffset;if(isc.Page.isRTL()&&!_1){_2=isc.Canvas.$92y(_2,isc.Page.getScrollWidth(),isc.Page.getWidth(),false,true,false)} return _2}:function(_1){if(document==null||document.body==null)return 0;var _2=(isc.Browser.isStrict?document.documentElement.scrollLeft:document.body.scrollLeft);if(isc.Page.isRTL()){var _3=isc.Browser.isIE9&&isc.Browser.isStrict;var _4=(_3||_1)?isc.Page.getScrollWidth():null,_5=(_3||_1)?isc.Page.getWidth():null;if(_3){_2=isc.Canvas.$92y(_2,_4,_5,false,!_3,_3)} if(_1){_2=isc.Canvas.$92y(_2,_4,_5,true,true)}} return _2});isc.A.getScrollTop=(isc.Browser.isNS?function(){return window.pageYOffset}:function(){if(document==null||document.body==null)return 0;return(isc.Browser.isStrict?document.documentElement.scrollTop:document.body.scrollTop)});isc.A.unsupportedBrowserAction="continue";isc.B.push(isc.A.finishedLoading=function isc_c_Page_finishedLoading(){isc.Page.$hj=true;isc.Log.logInfo("isc.Page is loaded");isc.EH.startIdleTimer();if(isc.Browser.isSafari)isc.Canvas.clearCSSCaches();if(!window.suppressAutoLogWindow){var _1=isc.LogViewer.getLogCookie();if(_1!=null&&_1.keepOpen){isc.Timer.setTimeout("isc.Log.show(true)",1000)}} if(isc.Time&&isc.Time.UTCHoursOffset!=null){isc.logWarn("This application includes code to set the Time.UTCHoursOffset attribute. This property will be respected but has been deprecated in favor of the classMethod isc.Time.setDefaultDisplayTimezone().");isc.Time.setDefaultDisplayTimezone(isc.Time.UTCHoursOffset.stringify()+":00")} if(isc.Page.pollPageSize){isc.EH.$hr()}else{isc.EH.delayCall("$hr",[true],200)} if(isc.Browser.isIE){isc.Class.evaluate("1",null,false,true)}},isc.A.isLoaded=function isc_c_Page_isLoaded(){return this.$hj},isc.A.getBlankFrameURL=function isc_c_Page_getBlankFrameURL(){if(isc.Browser.isIE&&("https:"==window.location.protocol||document.domain!=location.hostname)){return this.getURL("[HELPERS]empty.html")} return"about:blank"},isc.A.setTitle=function isc_c_Page_setTitle(_1){document.title=_1},isc.A.setDirectories=function isc_c_Page_setDirectories(_1){if(_1==null){_1={imgDir:window.imgDir,isomorphicDir:(window.isomorphicDir?window.isomorphicDir:window.IsomorphicDir),isomorphicClientDir:window.isomorphicClientDir,isomorphicDocsDir:window.isomorphicDocsDir,skinDir:window.skinDir,helperDir:window.helperDir,toolsDir:window.isomorphicToolsDir}} this.$hs();this.setIsomorphicDir(_1.isomorphicDir);this.setIsomorphicClientDir(_1.isomorphicClientDir);this.setIsomorphicDocsDir(_1.isomorphicDocsDir);this.setAppImgDir(_1.imgDir);this.setSkinDir(_1.skinDir);this.setHelperDir(_1.helperDir);this.setIsomorphicToolsDir(_1.isomorphicToolsDir)},isc.A.$hs=function isc_c_Page__deriveAppDir(){var _1=window.location.href;if(_1.contains("?"))_1=_1.substring(0,_1.indexOf("?"));if(_1.contains("#"))_1=_1.substring(0,_1.indexOf("#"));if(_1.charAt(_1.length-1)!="/"){_1=_1.substring(0,_1.lastIndexOf("/")+1)} this.$hk.APP=_1;if(this.logIsInfoEnabled()){this.logInfo("app dir is "+this.$hk.APP)} this.setAppImgDir()},isc.A.getAppDir=function isc_c_Page_getAppDir(){return this.$hk.APP},isc.A.setAppImgDir=function isc_c_Page_setAppImgDir(_1){this.$hk.APPIMG=this.combineURLs(this.getAppDir(),_1!=null?_1:"[APP]images/")},isc.A.getAppImgDir=function isc_c_Page_getAppImgDir(_1){if(_1!=null){if(isc.startsWith(_1,this.$ho))_1=this.getURL(_1);if(isc.startsWith(_1,isc.slash)||this.getProtocol(_1)!=isc.emptyString){return _1} return this.$hk.APPIMG+_1} return this.$hk.APPIMG},isc.A.setAppFilesDir=function isc_c_Page_setAppFilesDir(_1){this.$hk.APPFILES=this.combineURLs(this.getAppDir(),_1)},isc.A.getAppFilesDir=function isc_c_Page_getAppFilesDir(_1){return this.$hk.APPFILES},isc.A.setIsomorphicDir=function isc_c_Page_setIsomorphicDir(_1){this.$hk.ISOMORPHIC=this.combineURLs(this.getAppDir(),_1!=null?_1:"../isomorphic/");this.setIsomorphicClientDir();this.setIsomorphicDocsDir();if(!window.isomorphicToolsDir)this.setIsomorphicToolsDir()},isc.A.getIsomorphicDir=function isc_c_Page_getIsomorphicDir(){return this.$hk.ISOMORPHIC},isc.A.setIsomorphicToolsDir=function isc_c_Page_setIsomorphicToolsDir(_1){this.$hk.TOOLS=this.combineURLs(this.getIsomorphicDir(),_1!=null?_1:"../tools/")},isc.A.getIsomorphicToolsDir=function isc_c_Page_getIsomorphicToolsDir(){return this.$hk.TOOLS},isc.A.setSkinDir=function isc_c_Page_setSkinDir(_1){this.$hk.SKIN=this.combineURLs(this.getAppDir(),_1!=null?_1:"[ISOMORPHIC]/skins/standard/");this.$hk.SKINIMG=this.$hk.SKIN+"images/";if(isc.Canvas)isc.Canvas.$ht=isc.Canvas.$hu=null},isc.A.getSkinDir=function isc_c_Page_getSkinDir(){return this.$hk.SKIN},isc.A.getSkinImgDir=function isc_c_Page_getSkinImgDir(_1){if(_1==null)return this.$hk.SKINIMG;return this.combineURLs(this.$hk.SKIN,_1)},isc.A.setIsomorphicClientDir=function isc_c_Page_setIsomorphicClientDir(_1){this.$hk.ISOMORPHIC_CLIENT=this.combineURLs(this.getAppDir(),_1!=null?_1:"[ISOMORPHIC]/system/");this.setSkinDir();this.setHelperDir()},isc.A.getIsomorphicClientDir=function isc_c_Page_getIsomorphicClientDir(){return this.$hk.ISOMORPHIC_CLIENT},isc.A.setIsomorphicDocsDir=function isc_c_Page_setIsomorphicDocsDir(_1){this.$hk.ISOMORPHIC_DOCS=this.combineURLs(this.getAppDir(),_1!=null?_1:"[ISOMORPHIC]/system/reference/");this.setIsomorphicDocsSkinDir()},isc.A.getIsomorphicDocsDir=function isc_c_Page_getIsomorphicDocsDir(){return this.$hk.ISOMORPHIC_DOCS},isc.A.setIsomorphicDocsSkinDir=function isc_c_Page_setIsomorphicDocsSkinDir(_1){this.$hk.ISO_DOCS_SKIN=this.combineURLs(this.getIsomorphicDocsDir(),_1!=null?_1:"skin/")},isc.A.getIsomorphicDocsSkinDir=function isc_c_Page_getIsomorphicDocsSkinDir(){return this.$hk.ISO_DOCS_SKIN},isc.A.setHelperDir=function isc_c_Page_setHelperDir(_1){this.$hk.HELPERS=this.combineURLs(this.getAppDir(),_1!=null?_1:"[ISOMORPHIC_CLIENT]/helpers/")},isc.A.getHelperDir=function isc_c_Page_getHelperDir(){return isc.Page.$hk.HELPERS},isc.A.$1624=function isc_c_Page__isRelativeURL(_1){return this.getProtocol(_1)==isc.$ad&&!isc.startsWith(_1,isc.slash)},isc.A.getImgURL=function isc_c_Page_getImgURL(_1,_2,_3){var _4;if(isc.startsWith(_1,this.$hm)){_4=isc.Page.getSkinImgDir(_2);var _5=isc.startsWith(_1,this.$hn)?7:6;_1=_1.substring(_5)}else{_4=_3?null:isc.Page.getAppImgDir(_2)} return isc.Page.combineURLs(_4,_1)},isc.A.getURL=function isc_c_Page_getURL(_1){if(isc.startsWith(_1,this.$ho)){var _2=_1.indexOf("]");if(_2>0){var _3=_1.substring(1,_2).toUpperCase(),_4=isc.Page.$hk[_3];if(_4!=null){_1=isc.Page.combineURLs(_4,_1.substring(_2+(_1.charAt(_2+1)!="/"?1:2)))}else{this.logDebug("getURL("+_1+"): couldn't find cached directory "+_3)}}else{this.logDebug("getURL("+_1+"): didn't find matching ']' in URL")}} return _1},isc.A.combineURLs=function isc_c_Page_combineURLs(_1,_2){if(!isc.isA.String(_2))return _1;if(isc.startsWith(_2,this.$ho)){return this.getURL(_2)} var _3=isc.$ad;if(_1==null||_1==_3||isc.Page.getProtocol(_2)!=_3){return _2} var _4=isc.slash;var _5=isc.Page.getProtocol(_1);if(isc.startsWith(_2,_4)){if(isc.isAn.emptyString(_5)){_1=isc.emptyString}else if(_1.indexOf(_4,_5.length)!=-1){_1=_1.substring(0,_1.indexOf(_4,_5.length))}}else if(_2.indexOf(this.$hp)>-1){_1=_1.substring(_5.length,_1.length-1);var _6=_1.split(_4),_7=_2.split(_4);var _8=_6[0];_6.shift();while(_7[0]==isc.dot||_7[0]==this.$hq){if(_7[0]==isc.dot){_7.shift();continue} _7.shift();if(_6.length==0)break;_6.pop()} _1=_5+_8+_4;if(_6.length>0)_1+=_6.join(_4)+_4;_2=_7.join(_4)} return _1+_2},isc.A.getProtocol=function isc_c_Page_getProtocol(_1){for(var i=0;i";if(_2==null)_2=window;if(isc.Page.isLoaded()&&_2==window){if(isc.FileLoader){var _7=isc.FileLoader.$hw;if(_7!=null){for(var i=0;i<_7.length;i++){if(_4.indexOf(_7[i])!=-1){this.logDebug("skin "+_7[i]+" already loaded by FileLoader - not loading css file");return}}} isc.FileLoader.loadCSSFile(_4,_3)}else{this.logWarn("isc.Page.loadStylesheet('"+_1+"') called after page load. Stylesheet not loaded.")}}else{if(this.isXHTML()){var _9=this.getDocument(),_10=_9.documentElement.firstChild,_11=_9.createElementNS(_9.documentElement.namespaceURI,"link");_11.rel="stylesheet";_11.type="text/css";_11.href=_4;_10.appendChild(_11);this.logWarn("added stylesheet DOM style")}else{_2.document.write(_6)}}},isc.A.resizeTo=function isc_c_Page_resizeTo(_1,_2){window.resizeTo(_1,_2)},isc.A.moveTo=function isc_c_Page_moveTo(_1,_2){window.moveTo(_1,_2)},isc.A.scrollTo=function isc_c_Page_scrollTo(_1,_2){window.scroll(_1,_2)},isc.A.getBodyOverflow=function isc_c_Page_getBodyOverflow(){if(this.$943==null){var _1;var _2=document.body;if(_2&&_2.style){_1=_2.style.overflow} this.$943=(_1==null||_1=="")?"auto":_1.toLowerCase()} return this.$943},isc.A.getOrientation=function isc_c_Page_getOrientation(){var _1=this.getWidth();if(isc.EH!=null&&_1==isc.EH.$118t)return isc.EH.currentOrientation;var _2;if(isc.Browser.isIPhone||isc.Browser.isIPad){_2=window.orientation==0||window.orientation==180}else if("matchMedia"in window){var _3=window.matchMedia("(orientation: portrait)");_2=_3&&_3.matches} if(_2==null){_2=this.getHeight()>=_1} return _2?"portrait":"landscape"},isc.A.$130g=function isc_c_Page__getViewportTag(_1){var _2=document.head||document.getElementsByTagName("head")[0];if(_2==null){if(_1)return null;_2=document.createElement("head");var _3=document.body||document.getElementsByTagName("body")[0];_3.parentNode.insertBefore(_2,_3)} var _4=_2.getElementsByTagName("meta"),_5=null;for(var i=0;i<_4.length;){if(_4[i].name=="viewport"){if(_5!=null){_5.parentNode.removeChild(_5);_5=_4[i-1]}else{_5=_4[i];++i}}else++i} if(_5==null&&!_1){_5=document.createElement("meta");_5.name="viewport";_2.appendChild(_5)} return _5},isc.A.$151x=function isc_c_Page__applyDefaultViewport(){if(window.isc_useDefaultViewport==false)return;var _1={};if(isc.Browser.$152d&&window.isc_useMinimalUI!=false){_1["minimal-ui"]=null;isc.Canvas.defaultPageSpace=(isc.Page.getOrientation()==="landscape"?20:0);window.addEventListener("orientationchange",function(){window.scrollTo(0,0);isc.Canvas.setDefaultPageSpace(isc.Page.getOrientation()==="landscape"?20:0)},true)} this.updateViewport(1.0,"device-width",null,false,_1)},isc.A.$130h=function isc_c_Page__parseViewportOptions(_1){var _2={};if(isc.isA.String(_1)&&!isc.isAn.emptyString(_1)){var _3=_1.replace(/[\t\n\r ]+/g,"").split(/,|;/);for(var i=0,_5=_3.length;i<_5;++i){var _6=_3[i];var _7=_6.indexOf('=');if(_7<=0){_2[_6]=null}else{_2[_6.substring(0,_7).toLowerCase()]=_6.substring(_7+1)}}} return _2},isc.A.updateViewport=function isc_c_Page_updateViewport(_1,_2,_3,_4,_5){var _6=this.$130g();var _7=isc.addProperties(this.$130h(_6.content),_5);if(_2==null)_2=_7["width"];if(_3==null)_3=_7["height"];if(_4==null)_4=_7["user-scalable"]!="no";if(_1!=null){if(isc.isA.Number(_1))_1=_1.toFixed(2);_7["initial-scale"]=_1} if(_2!=null)_7["width"]=_2;if(_3!=null)_7["height"]=_3;if(_4!=null){_7["user-scalable"]=(_4==false?"no":"yes");if(_4==false&&_1!=null){_7["minimum-scale"]=_7["maximum-scale"]=_1}} var _8=[];for(var _9 in _7){var _10=_7[_9];if(_10==null){_8.push(_9)}else{_8.push(_9+"="+_10)}} _8=_8.join(", ");if(isc.Browser.isMobileFirefox){_6.insertAdjacentHTML("afterend","");var _11=_6;_6=_6.nextSibling;_11.parentNode.removeChild(_11)}else{_6.content=_8}},isc.A.$130f=function isc_c_Page__getPageZoom(){if(isc.Browser.isTouch){var _1;var _2=window.screen.width,_3=window.screen.height;if(_2<=document.documentElement.clientWidth){if(this.getOrientation()==="portrait"){return Math.min(_2,_3)/window.innerWidth}else{return Math.max(_2,_3)/window.innerWidth}}else if((_1=this.$130g(true))!=null){var _4=this.$130h(_1.content);var _5=_4["user-scalable"]!="no";if(!_5){if(isc.Browser.isAndroidWebView&&isc.Browser.androidMinorVersion<4.4){return 1}else{var _6=parseFloat(_4["initial-scale"]);if(!window.isNaN(_6))return _6;_6=parseFloat(_4["minimum-scale"]);if(!window.isNaN(_6))return _6}}else{var _7;if("minimum-scale"in _4){_7=parseFloat(_4["minimum-scale"])}else{_7=parseFloat(_4["initial-scale"])} if(!window.isNaN(_7))_7}}} return 1},isc.A.getScrollWidth=function isc_c_Page_getScrollWidth(_1){var _1=_1||document;if(_1==null||_1.body==null)return 500;if(isc.Browser.isIE&&isc.Browser.version>=6){var _2=Math.max(Math.max(_1.body.scrollWidth,_1.documentElement.clientWidth)) if(isc.Browser.isStrict)_2=Math.max(_2,_1.documentElement.scrollWidth);return _2} return _1.body.scrollWidth},isc.A.getScrollHeight=function isc_c_Page_getScrollHeight(_1){var _1=_1||document;if(_1==null||_1.body==null){return this.getHeight()} var _2=_1.body.scrollHeight;if(isc.Browser.isStrict){var _3=_1.documentElement;if(_3){var _4=_3.scrollHeight;if(!isc.isA.Number(_3.scrollHeight)){_4=Math.max(_3.offsetHeight,_3.clientHeight)} if(_4&&_4>_2){_2=_4}}} return _2},isc.A.getScreenWidth=function isc_c_Page_getScreenWidth(){return screen.width},isc.A.getScreenHeight=function isc_c_Page_getScreenHeight(){return screen.height},isc.A.getWindowRect=function isc_c_Page_getWindowRect(_1){if(!_1)_1=window;return{left:(isc.Browser.isIE||isc.Browser.isOpera?_1.screenLeft:_1.screenX),top:(isc.Browser.isIE||isc.Browser.isOpera?_1.screenTop:_1.screenY),width:isc.Page.getWidth(_1),height:isc.Page.getHeight(_1)}},isc.A.setUnloadMessage=function isc_c_Page_setUnloadMessage(_1){if(_1==null)window.onbeforeunload=null;else window.onbeforeunload=function(){return _1}},isc.A.goBack=function isc_c_Page_goBack(){if(history.length==0&&window.opener){window.close()}else{history.back()}},isc.A.print=function isc_c_Page_print(_1){if(!_1)_1=window;if(_1.print){_1.print()}else{var _2=_1.document;if(!_2||!_2.body){this.logError("isc.Page.print() called on a window that doesn't have a document.body defined. Exiting.");return} if(isc.Browser.isWin){_2.body.insertAdjacentHTML('beforeEnd','');var _3=_2.all.printControl;if(!_3){this.logError("isc.Page.print() couldn't create or find print control. Exiting.");return} _3.ExecWB(6,1);_3.outerHTML=""}else{alert("Choose 'Print...' from the File menu to print this page.")}}},isc.A.observe=function isc_c_Page_observe(_1,_2,_3){var _4=isc.Class.create();return _4.observe(_1,_2,_3)},isc.A.waitFor=function isc_c_Page_waitFor(_1,_2,_3,_4,_5){var _6=isc.Class.create({$545:_1,$546:_2,$547:_3,_fired:function(_8){if(this.$59i){isc.Timer.clear(this.$59i)} this.ignore(this.$545,this.$546);this.fireCallback(this.$547,"observed",[_8]);this.destroy()},$59j:function(){this.ignore(this.$545,this.$546);this.fireCallback(this.$59k);this.destroy()}});isc.ClassFactory.addGlobalID(_6);var _7=_6.observe(_1,_2,function(){this._fired(_1)});if(!_7)_6.destroy();if(_4&&_5){_6.$59k=_5;_6.$59i=isc.Timer.setTimeout(function(){_6.$59j()},_4)} return _7},isc.A.waitForMultiple=function isc_c_Page_waitForMultiple(_1,_2,_3,_4){var _5=true;var _6=isc.Class.create({$59l:_1,$59m:[],$547:_2,$59n:function(_9){this.$59m.remove(_9);if(this.$59m.isEmpty()){if(this.$59i){isc.Timer.clear(this.$59i)} this.fireCallback(this.$547);this.destroy()}},$59j:function(){var _7=this.$59m;for(var i=0;i<_7.length;i++){_7[i].ignore(_7[i].$545,_7[i].$546);_7[i].destroy()} this.fireCallback(this.$59k);this.destroy()}});for(var i=0;i<_1.length;i++){var _9=isc.Class.create({$545:_1[i].object,$546:_1[i].method,$59o:_6,_fired:function(_12){this.ignore(this.$545,this.$546);this.$59o.$59n(this);this.destroy()}});isc.ClassFactory.addGlobalID(_9);var _10=(function(_12){return function(){this._fired(_12)}})(_1[i].object);var _11=_9.observe(_1[i].object,_1[i].method,_10);if(_11){_6.$59m.add(_9)}else{_9.destroy();_5=false}} if(_3&&_4){_6.$59k=_4;_6.$59i=isc.Timer.setTimeout(function(){_6.$59j()},_3)} return _5},isc.A.checkBrowserAndRedirect=function isc_c_Page_checkBrowserAndRedirect(_1){if(!isc.Browser.isSupported){if(isc.Log){isc.Log.logWarn("Unsupported browser detected - userAgent:"+navigator.userAgent)} if(this.unsupportedBrowserAction=="continue")return;var _2=this.unsupportedBrowserAction=="confirm"&&confirm(this.getUnsupportedBrowserPromptString()) if(_2)return;if(_1==null)_1=isc.Page.defaultUnsupportedBrowserURL;var _3=true;window.location.replace(isc.Page.getURL(_1))}},isc.A.getUnsupportedBrowserPromptString=function isc_c_Page_getUnsupportedBrowserPromptString(){var _1="This page uses the Isomorphic SmartClient web presentation layer (Version"+isc.version+" - "+isc.buildDate+"). The web browser you are using is not supported by this version of SmartClient and you may encounter errors on this page. Would you like to continue anyway?\n\n(Reported userAgent string for this browser:"+navigator.userAgent+")";return _1},isc.A.setAddVersionToSkinCSS=function isc_c_Page_setAddVersionToSkinCSS(_1){this.$148v=_1},isc.A.isAddVersionToSkinCSS=function isc_c_Page_isAddVersionToSkinCSS(){return this.$148v});isc.B._maxIndex=isc.C+61;if(isc.Page.isXHTML())isc.nbsp=isc.xnbsp;isc.Page.setDirectories();if(isc.Browser.isMoz){isc.Page.getWidth(null,true);isc.Page.getHeight(null,true)} if(isc.Browser.isAndroid){isc.Page.pollPageSize=true} isc.Page.getToolsDir=isc.Page.getIsomorphicToolsDir;isc.Page.setToolsDir=isc.Page.setIsomorphicToolsDir;isc.addGlobal("Params",function(_1){if(!_1)_1=window;var _2=typeof _1=="string"?_1:_1.location.href;var _3=_2.indexOf("?"),_4=_2.indexOf("#");if(_4<0||_4<_3)_4=_2.length;if(_3!=-1){var _5=_2.substring(_3+1,_4).split("&");for(var i=0,_7,_8;i<_5.length;i++){_7=_5[i];if(!_7)continue;_8=_7.indexOf("=");this[_7.substring(0,_8)]=unescape(_7.substring(_8+1))}}}) isc.params=new isc.Params();isc.getParams=function(_1){return new isc.Params(_1)} isc.ClassFactory.defineClass("Comm");isc.A=isc.Comm;isc.A.sendMethod="POST";isc.A.$hz=0;isc.A=isc.Comm;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.xmlHttpConstructors=["MSXML2.XMLHTTP","Microsoft.XMLHTTP","MSXML.XMLHTTP","MSXML3.XMLHTTP"];isc.A.$50c=[];isc.B.push(isc.A.$h0=function isc_c_Comm__fireXMLCallback(_1,_2,_3){if(!_3)isc.EH.$h1("XRP");isc.Class.fireCallback(_2,"xmlHttpRequest",[_1],null,true);if(!_3)isc.EH.$h2()},isc.A.$h3=function isc_c_Comm__getStateChangeHandler(){return function(){var _1=arguments.callee.request;if(!_1)return;if(_1.readyState!=4)return;arguments.callee.request=null;isc.Timer.setTimeout({target:isc.Comm,methodName:"$h0",args:[_1,arguments.callee.callback,true]},0)}},isc.A.createXMLHttpRequest=function isc_c_Comm_createXMLHttpRequest(){if(isc.Browser.isIE&&!isc.Browser.isIE10){var _1;if(this.preferNativeXMLHttpRequest){_1=this.getNativeRequest();if(!_1)_1=this.getActiveXRequest()}else{_1=this.getActiveXRequest();if(!_1)_1=this.getNativeRequest()} if(!_1)isc.rpc.logWarn("Couldn't create XMLHttpRequest");return _1}else{return new XMLHttpRequest()}},isc.A.getNativeRequest=function isc_c_Comm_getNativeRequest(){var _1;if(isc.Browser.version>=7){isc.rpc.logDebug("Using native XMLHttpRequest");_1=new XMLHttpRequest()} return _1},isc.A.getActiveXRequest=function isc_c_Comm_getActiveXRequest(){var _1;if(!this.$h4){for(var i=0;i1){for(var i=0;i"+decodeURIComponent(_7)+"<--")} _12.open(_4,_2,!_9);if(_10!=null)_12.responseType=_10;var _17=this.$h5(_12,_6);if(!_17){_5==_12.setRequestHeader("Content-Type",_5)} if(_8){_8.xhrHeaders=_6;_8.xhrData=_7} if(_7!=null&&!isc.isA.String(_7)){this.logWarn("Non-string data object passed to sendXML as request.data:"+this.echo(_7)+" attempting to convert to a string.");_7=_7.toString?_7.toString():""+_7} _12.send(_7)}else{var _18=isc.rpc.addParamsToURL(_2,_3);_12.open(_4,_18,!_9);if(_10!=null)_12.responseType=_10;if(_1.bypassCache){_12.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")} this.$h5(_12,_6);if(isc.rpc.logIsDebugEnabled()){isc.rpc.logDebug("XMLHttpRequest GET from "+_2+" with fields: "+isc.Log.echoAll(_3)+" full URL string: "+_18)} _12.send(null)} return _12},isc.A.addTransactionToFields=function isc_c_Comm_addTransactionToFields(_1){var _2=_1.fields _2=isc.addProperties(_2,{_transaction:isc.RPCManager.serializeTransaction(_1.transaction),protocolVersion:"1.0"})},isc.A.performXmlTransactionReply=function isc_c_Comm_performXmlTransactionReply(_1,_2){var _3=this.$50c[_1] delete this.$50c[_1];this.fireCallback(_3,"transactionNum,results,wd",[_1,_2])},isc.A.$h5=function isc_c_Comm__setHttpHeaders(_1,_2){if(_2==null)return;var _3=false;for(var _4 in _2){var _5=_2[_4];if(_5!=null){_1.setRequestHeader(_4,_5);if(_4.toLowerCase()=="content-type")_3=true}} return _3});isc.B._maxIndex=isc.C+11;isc.ClassFactory.defineClass("HiddenFrame");isc.A=isc.HiddenFrame;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A._stats={draws:0,destroys:0};isc.A.$h6=[];isc.B.push(isc.A.$h7=function isc_c_HiddenFrame__killLoadingIndicators(){if(isc.Browser.isMoz)this.delayCall("$h8")},isc.A.$h8=function isc_c_HiddenFrame__doKillLoadingIndicators(){var _1=isc.HiddenFrame.create();_1.draw();_1.destroy()});isc.B._maxIndex=isc.C+2;isc.A=isc.HiddenFrame.getPrototype();isc.A.text=" ";isc.A._generated=true;isc.A.$h9=[];isc.A.pollInterval=100;isc.A.useHtmlfile=false;isc.A=isc.HiddenFrame.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.init=function isc_HiddenFrame_init(){isc.ClassFactory.addGlobalID(this);isc.HiddenFrame.$h6.add(this)},isc.A.getID=function isc_HiddenFrame_getID(){return this.ID},isc.A.draw=function isc_HiddenFrame_draw(_1){if(this.isDrawn()){if(_1!=null)this.fireCallback(_1);return this} if(!this.$ia()){if(!this.$ib){this.$83s=isc.Page.setEvent("load",this.getID()+".draw()",isc.Page.FIRE_ONCE);this.$ib=true} if(_1!=null){this.$h9[this.$h9.length]=_1}}else{this.$ic();for(var i=0;i";if(this.useHtmlfile){try{this.$1128=new ActiveXObject("htmlfile")}catch(e){this.useHtmlfile=false}} if(!this.useHtmlfile){var _1=this.frameHTML;isc.Element.createAbsoluteElement(_1);if(!(isc.Browser.isIE&&isc.Browser.minorVersion<5.5)){this.$id=isc.Element.get(this.getName());if(!isc.Browser.isSafari)this.$ie=this.$id.contentWindow} if(this.$ie==null){for(var i=0;i");_4.write(this.frameHTML);_4.write(_2);_4.write("");_4.close();_4.parentWindow.isc=isc;_3=_4.getElementById(this.formName)}else{if(isc.isA.Canvas(this.$ig))this.$ig.destroy();this.$ig=isc.Canvas.create({autoDraw:true,ID:this.getID()+"$ig",visibility:"hidden",overflow:"ignore",top:-9999,width:1,height:1,contents:_2,_generated:true,$ih:true});isc.HiddenFrame._stats.draws++;_3=isc.Element.get(this.formName)} if(!_3.acceptCharset){_3.acceptCharset="UTF-8"} for(var _5 in this.fieldList){if(this.fieldList[_5]!=null)_3.elements[_5].value=this.fieldList[_5]} if(_3){_3.submit();this.logInfo("Form submitted to server");if(this.callback){this.convertToMethod("callback");this.delayCall("checkLoaded",[],this.pollInterval)}}else{this.logWarn("couldn't get handle to comm form")}},isc.A.checkLoaded=function isc_HiddenFrame_checkLoaded(){var _1=this.getHandle();if(_1&&_1[this.resultVarName]){if(this.callback)this.callback(_1)}else{this.delayCall("checkLoaded",[],this.pollInterval)}});isc.B._maxIndex=isc.C+15;isc.HiddenFrame.registerStringMethods({callback:"frame"});if(!isc.FileLoader){isc.defineClass("FileLoader").addClassProperties({$139n:true,modulesDir:"system/development/",ensureLoaded:function(_1){isc.fileLoaderLoaded=function(){isc.fileLoaderLoaded=null;_1()};isc.Comm.sendScriptInclude({URL:isc.Page.getIsomorphicDir()+this.modulesDir+"/ISC_FileLoader.js"})}});isc.addGlobal("FL",isc.FileLoader)} isc.ClassFactory.defineClass("Timer");isc.A=isc.Timer;isc.A.$ii=null;isc.A.listEvent={action:null,iterationInterval:null,iterationsRemaining:0,$ij:null,$ik:null};isc.A.MSEC=1;isc.A.SEC=1000;isc.A.MIN=60000;isc.A.HOUR=3600000;isc.A.DEFAULT_TIMEOUT_LENGTH=100;isc.A.$il=null;isc.A=isc.Timer;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$io=0;isc.A.$ip={};isc.A.$16af={};isc.A.$iq="TMR";isc.A.$612=5000;isc.B.push(isc.A.setTimeout=function isc_c_Timer_setTimeout(_1,_2,_3,_4){if(_1==null)return;if(_1.action!=null){_2=_1.delay;_3=_1.units;_1=_1.action} if(_3==null)_3=isc.Timer.MSEC;if(_2==null)_2=isc.Timer.DEFAULT_TIMEOUT_LENGTH;_2=_2*_3;if(isc.Browser.isMobileSafari){if(isc.isA.String(_1)||_1.$143n!=null)_1={$143o:_1};_1.$143n=_2+isc.timeStamp()} var _5="$ir"+this.$io++;this[_5]=_1;if(this.logIsDebugEnabled("traceTimers")) {delete this.currentAction;_1.timerTrace=this.getStackTrace(null,1,null,true)} var _6=setTimeout(function(){isc.Timer.$in(_5,_6)},_2);this.$ip[_6]=_5;return _6},isc.A.$in=function isc_c_Timer__fireTimeout(_1,_2,_3){if(isc.$611!=null){if(this.logIsInfoEnabled()){this.logInfo("timer ID:"+_1+" fired during eval. Delaying until this thread completes")} if(!this.$613)this.$613=isc.timeStamp();if((isc.timeStamp()-this.$613)>this.$612){this.logWarn("timer ID:"+_1+" fired during eval thread lasting more than "+this.$612+"ms. Thread may have caused an error and failed to complete. Allowing delayed action to fire.");delete isc.$611}else{_3=setTimeout(function(){isc.Timer.$in(_1,_2,_3)},0);this.$16af[_1]=_3;return}} delete this.$613;var _4=this[_1];if(_4&&_4.$143o)_4=_4.$143o;delete this[_1];delete this.$ip[_2];delete this.$16af[_3];if(_4==null)return;isc.EH.$h1(this.$iq);arguments.timerTrace=_4.timerTrace;this.currentAction=_4;this.fireCallback(_4,null,null,null,true);isc.EH.$h2()},isc.A.clear=function isc_c_Timer_clear(_1){if(isc.isAn.Array(_1)) for(var i=0;i<_1.length;i++)this.clear(_1[i]);else{var _3=this.$ip[_1];delete this[_3] delete this.$ip[_1];if(this.$16af.hasOwnProperty(_3)){_1=this.$16af[_3];delete this.$16af[_3]} clearTimeout(_1)} return null},isc.A.clearTimeout=function isc_c_Timer_clearTimeout(_1){return this.clear(_1)},isc.A.$143p=function isc_c_Timer__getTimeoutFireTime(_1){var _2=this[_1]||{};return _2.$143n},isc.A.firePendingTimeouts=function isc_c_Timer_firePendingTimeouts(){var _1=isc.addProperties({},this.$ip),_2=this.$16af,_3=isc.timeStamp();for(var _4 in _1){if(!_1.hasOwnProperty(_4))continue;var _5=_1[_4];if(_5==null)continue;var _6=this.$143p(_5);if(_6!=null&&_6<_3){if(_2.hasOwnProperty(_5)){var _7=_2[_5];clearTimeout(_7);this.$in(_5,_4,_7)}else{clearTimeout(_4);this.$in(_5,_4)}}}});isc.B._maxIndex=isc.C+6;isc.A=isc.Page;isc.A.$is={};isc.A.$it=0;isc.A.FIRE_ONCE="once";isc.A.$iu={};isc.A.$151b=new Array(32);isc.A.$151c=0;isc.A.$1511=0;isc.A.$1512=1;isc.A=isc.Page;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$cp="ID";isc.A.$151d=0;isc.B.push(isc.A.setEvent=function isc_c_Page_setEvent(_1,_2,_3,_4){if(isc.isA.String(_2)){if(_1==isc.EH.LOAD||_1==isc.EH.IDLE||_1==isc.EH.RESIZE||_1==isc.EH.ORIENTATION_CHANGE) {_2=isc.$aq("target,eventInfo",_2)}else{_2=isc.Func.expressionToFunction("target,eventInfo",_2)}} if(this.logIsDebugEnabled()){this.logDebug("setEvent("+_1+"): action => "+(isc.isA.Function(_2)?isc.Func.getShortBody(_2):_2))} var _5=isc.Page.$it++,_6={action:_2,functionName:_4,fireStyle:_3,ID:_5};var _7=this.$is;if(!isc.isAn.Array(_7[_1]))_7[_1]=[];_7[_1].add(_6);if(_1==isc.EH.IDLE){isc.EventHandler.startIdleTimer()} return _5},isc.A.clearEvent=function isc_c_Page_clearEvent(_1,_2){var _3=this.$is;if(_2==null){_3[_1]=[]}else{if(this.$iv==_1){var _4=_3[_1],_5=isc.isA.Array(_4)?_4.findIndex(this.$cp,_2):-1;if(_5!=-1)_4[_5]=null}else{if(isc.isA.Array(_3[_1])){_3[_1].removeWhere(this.$cp,_2)}}}},isc.A.$iw=function isc_c_Page__getPageEventName(_1){var _2=this.$ix=this.$ix||{};if(!_2[_1]){_2[_1]="page"+_1.charAt(0).toUpperCase()+_1.substring(1)} return _2[_1]},isc.A.handleEvent=function isc_c_Page_handleEvent(_1,_2,_3){if(_2==isc.EH.UNLOAD)isc.Canvas.$iy();this.$151e();var _4=isc.Page.$is[_2];if(!isc.isAn.Array(_4)||_4.length==0)return true;var _5=this.$iw(_2);var _6=true;this.$iv=_2;for(var i=0,_8=_4.length;_6&&(i<_8);i++){var _9=_4[i];if(!_9)continue;if(_9.fireStyle==isc.Page.FIRE_ONCE)_4[i]=null;if(this.logIsDebugEnabled()){this.logDebug("handleEvent("+_2+"): firing action => "+isc.Func.getShortBody(_9.action))} if(isc.isA.Function(_9.action)){_6=(_9.action(_1,_3)!=false)}else{var _10=_9.action;if(!_10||_10.destroyed){_4[i]=null;continue} var _11=_9.functionName||_5;if(isc.isA.Function(_10[_11])){_6=(_10[_11](_1,_3)!=false)}}} this.$iv=null;this.$is[_2].removeEmpty();return _6},isc.A.actionsArePendingForEvent=function isc_c_Page_actionsArePendingForEvent(_1){return(isc.isAn.Array(this.$is[_1])&&this.$is[_1].length!=0)},isc.A.registerKey=function isc_c_Page_registerKey(_1,_2,_3){if(_1==null||_2==null)return;var _4=_1;if(isc.isAn.Object(_1)){_4=_1.keyName} if(_4.length==1)_4=_4.toUpperCase();var _5=false;for(var i in isc.EH.$iz){if(isc.EH.$iz[i]==_4){_5=true;break}} if(!_5){this.logWarn("Page.registerKey() passed unrecognized key name '"+_1+"'. Not registering","events");return} var _7=this.$iu;if(!_7[_4])_7[_4]=[];_7[_4].add({target:_3,action:_2,key:_1})},isc.A.unregisterKey=function isc_c_Page_unregisterKey(_1,_2){var _3=_1;if(!this.$iu[_3]){isc.Log.logInfo("Page.unregisterKey(): No events registered for key "+isc.Log.echo(_3)+".","events");return false} this.$iu[_3].removeWhere("target",_2)},isc.A.handleKeyPress=function isc_c_Page_handleKeyPress(){var _1=isc.EH,_2=_1.getKey(),_3=this.$iu;if(!_3[_2])return true;var _4=_3[_2],_5=_4.duplicate(),_6=_5.length,_7=true;for(var i=0;i<_6;i++){var _9=_5[i];if(!_4.contains(_9))continue;if(!_1.$160v(_9.key))continue;if(_9.action!=null&&!isc.isA.Function(_9.action)){isc.Func.replaceWithMethod(_9,"action","key,target")} _7=((_9.action(_2,_9.target)!=false)&&_7)} return _7},isc.A.$151f=function isc_c_Page__registerModifierKeys(_1,_2,_3,_4,_5){if(_1==null||(_3==null&&_4==null))return;var _6=this.$151b,_7=this.$1513(_1,_2);if(!_6[_7])_6[_7]=[];_6[_7].add({target:_5,downAction:_3,upAction:_4});++this.$151c},isc.A.$1513=function isc_c_Page__getModifierKeysRegistryIndex(_1,_2){var _3=isc.Page.$151g(_1);return((_2==isc.Page.$1512?0x1:0)|(_3<<1))},isc.A.$151g=function isc_c_Page__getModifierKeysFlags(_1){var _2=false,_3=false,_4=false,_5=false;if(isc.isAn.Array(_1)){_2=_1.contains("Ctrl");_3=_1.contains("Shift");_4=_1.contains("Alt");_5=_1.contains("Meta")}else if(isc.isAn.Object(_1)){_2=_1.ctrlKey;_3=_1.shiftKey;_4=_1.altKey;_5=_1.metaKey}else if(_1=="Ctrl"){_2=true}else if(_1=="Shift"){_3=true}else if(_1=="Alt"){_4=true}else if(_1=="Meta"){_5=true} return((_2?0x1:0)|(_3?0x2:0)|(_4?0x4:0)|(_5?0x8:0))},isc.A.$151h=function isc_c_Page__unregisterModifierKeys(_1,_2,_3){var _4=this.$151b,_5=this.$1513(_1,_2),_6=_4[_5];if(_6){var _7=_6.length;_6.removeWhere("target",_3);this.$151c-=(_7-_6.length)}},isc.A.$151i=function isc_c_Page__modifierKeysDown(_1){var _2=this.$151d,_3=this.$151g(_1);return(_3==(_2&_3))},isc.A.$151e=function isc_c_Page__handleModifierKeysChanged(){if(this.$151c==0){return} var _1=this.$151b,_2=this.$151d,_3=((isc.EH.ctrlKeyDown()?0x1:0)|(isc.EH.shiftKeyDown()?0x2:0)|(isc.EH.altKeyDown()?0x4:0)|(isc.EH.metaKeyDown()?0x8:0));if(_3!=_2){for(var i=0;i<32;++i){if(_1[i]!=null){var f=(i>>1),_6=false,_7=false;if(i<16){_6=((_2&f)!=0);_7=((_3&f)!=0)}else{_6=((_2&f)==f);_7=((_3&f)==f)} var _8=!_6,_9=!_7,_10=(_8&&_7),_11=(_6&&_9),_12=(_10?"downAction":(_11?"upAction":null));if(_12!=null){var _13=_1[i];for(var j=0,_15=_13.length;j<_15;++j){var _16=_13[j],_17=_16[_12];if(_17!=null){_17(_16.target)}}}}}} this.$151d=_3});isc.B._maxIndex=isc.C+14;isc.ClassFactory.defineClass("EventHandler");isc.EH=isc.Event=isc.EventHandler;isc.A=isc.EventHandler;isc.A.lastEvent={};isc.A.$i0=[];isc.A.$i1=[];isc.A.passThroughEvents=true;isc.A.maskNativeTargets=true;isc.A.STILL_DOWN_DELAY=100;isc.A.DOUBLE_CLICK_DELAY=500;isc.A.IDLE_DELAY=10;isc.A.STOP_BUBBLING="***STOP***";isc.A.ALL_EDGES=["T","L","B","R","TL","TR","BL","BR"];isc.A.eventTypes={MOUSE_LEAVE:"mouseLeave",MOUSE_DOWN:"mouseDown",RIGHT_MOUSE_DOWN:"rightMouseDown",MOUSE_MOVE:"mouseMove",MOUSE_UP:"mouseUp",SHOW_CONTEXT_MENU:"showContextMenu",CLICK:"click",DOUBLE_CLICK:"doubleClick",MOUSE_OUT:"mouseOut",MOUSE_STILL_DOWN:"mouseStillDown",MOUSE_OVER:"mouseOver",POINTER_DOWN:"pointerDown",POINTER_MOVE:"pointerMove",POINTER_UP:"pointerUp",POINTER_CANCEL:"pointerCancel",TOUCH_START:"touchStart",TOUCH_MOVE:"touchMove",TOUCH_END:"touchEnd",TOUCH_CANCEL:"touchCancel",LONG_TOUCH:"longTouch",SET_DRAG_TRACKER:"setDragTracker",GET_DRAG_DATA:"getDragData",RELEASE_DRAG_DATA:"releaseDragData",DRAG_START:"dragStart",DRAG_STOP:"dragStop",DRAG_MOVE:"dragMove",DRAG_OUT:"dragOut",DRAG_REPOSITION_START:"dragRepositionStart",DRAG_REPOSITION_MOVE:"dragRepositionMove",DRAG_REPOSITION_STOP:"dragRepositionStop",DRAG_RESIZE_START:"dragResizeStart",DRAG_RESIZE_MOVE:"dragResizeMove",DRAG_RESIZE_STOP:"dragResizeStop",DROP_OVER:"dropOver",DROP_MOVE:"dropMove",DROP_OUT:"dropOut",DROP:"drop",TRANSITION_END:"transitionEnd",KEY_DOWN:"keyDown",KEY_UP:"keyUp",KEY_PRESS:"keyPress",MOUSE_WHEEL:"mouseWheel",SELECT_START:"selectStart",SELECTION_CHANGE:"selectionChange",FOCUS_IN:"focusIn",FOCUS_OUT:"focusOut",IDLE:"idle",LOAD:"load",UNLOAD:"unload",RESIZE:"resize",ORIENTATION_CHANGE:"orientationChange"};isc.A.$i2={mousemove:"mouseMove",mousedown:"mouseDown",mouseup:"mouseUp",click:"click",contextmenu:"contextMenu",mousewheel:"mouseWheel",selectionchange:"selectionChange",DOMMouseScroll:"mouseWheel",mouseMove:"mouseMove",mouseDown:"mouseDown",mouseUp:"mouseUp",mouseWheel:"mouseWheel",pointerdown:"pointerDown",pointermove:"pointerMove",pointerup:"pointerUp",pointercancel:"pointerCancel",touchstart:"touchStart",touchmove:"touchMove",touchend:"touchEnd",touchcancel:"touchCancel",touchStart:"touchStart",touchMove:"touchMove",touchEnd:"touchEnd",touchCancel:"touchCancel",dragstart:"dragStart",drag:"drag",dragenter:"dragEnter",dragexit:"dragExit",dragleave:"dragLeave",dragover:"dragOver",drop:"drop",dragend:"dragEnd",selectionstart:"selectionStart",selectionStart:"selectionStart",selectionchange:"selectionChange",selectionChange:"selectionChange"};isc.A.$94w={READY_FOR_TOUCH:"ready",TOUCH_STARTED:"started",TOUCH_ENDING:"ending",TOUCH_COMPLETE:"complete"};isc.A.$i3="event,eventInfo";isc.A.DRAG_RESIZE="dragResize";isc.A.DRAG_REPOSITION="dragReposition";isc.A.DRAG_SCROLL="dragScroll";isc.A.DRAG_SELECT="dragSelect";isc.A.DRAG="drag";isc.A.NONE="none";isc.A.TRACKER="tracker";isc.A.TARGET="target";isc.A.OUTLINE="outline";isc.A.INTERSECT_WITH_MOUSE="mouse";isc.A.INTERSECT_WITH_RECT="rect";isc.A.artificialDragTargetDefaults={_constructor:"Canvas",canDrag:true,useNativeDrag:true,canDrop:true,dragAppearance:"none",cloneDragData:function(){return isc.EH.getNativeDragData()}};isc.A.dragTargetShadowDepth=10;isc.A.dragOffsetX=0;isc.A.dragOffsetY=0;isc.A.$i4={A:true,AREA:true};isc.A.$i5={INPUT:true,TEXTAREA:true,SELECT:true,OPTION:true};isc.A.$i6="LABEL";isc.A.$i7={keydown:"keyDown",keyup:"keyUp",keypress:"keyPress",contextmenu:"contextMenu"};isc.A.$i8={Backspace:8,Tab:9,Shift:16,Ctrl:17,Alt:18,Pause_Break:19,Caps_Lock:20,Page_Up:33,Page_Down:34,End:35,Home:36,Arrow_Left:37,Arrow_Up:38,Arrow_Right:39,Arrow_Down:40,Insert:45,Delete:46,Meta:91,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,Num_Lock:144,Scroll_Lock:145};isc.A.$944={A:true,C:true,D:true,R:true,V:true};isc.A.$90v={Backspace:true,Tab:true,Shift:true,Ctrl:true,Alt:true,Pause_Break:true,Caps_Lock:true,Escape:true,Page_Up:true,Page_Down:true,End:true,Home:true,Arrow_Left:true,Arrow_Up:true,Arrow_Right:true,Arrow_Down:true,Insert:true,Delete:true,Meta:true,Menu:true,f1:true,f2:true,f3:true,f4:true,f5:true,f6:true,f7:true,f8:true,f9:true,f10:true,f11:true,f12:true,Num_Lock:true,Scroll_Lock:true};isc.A.$iz={'0':'$i9','8':'Backspace','9':'Tab','13':'Enter','16':'Shift','17':'Ctrl','18':'Alt','19':'Pause_Break','20':'Caps_Lock','27':'Escape','32':'Space','33':'Page_Up','34':'Page_Down','35':'End','36':'Home','37':'Arrow_Left','38':'Arrow_Up','39':'Arrow_Right','40':'Arrow_Down','44':'Print_Screen','45':'Insert','46':'Delete','48':'0',"49":"1","50":"2","51":"3","52":"4","53":"5","54":"6","55":"7","56":"8","57":"9",'58':';','59':';','60':',','61':'=','62':"/",'65':'A','66':'B','67':'C','68':'D','69':'E','70':'F','71':'G','72':'H','73':'I','74':'J','75':'K','76':'L','77':'M','78':'N','79':'O','80':'P','81':'Q','82':'R','83':'S','84':'T','85':'U','86':'V','87':'W','88':'X','89':'Y','90':'Z','91':'Meta','92':'Meta','93':'Menu','96':'0','97':'1','98':'2','99':'3','100':'4','101':'5','102':'6','103':'7','104':'8','105':'9','106':'*','107':'+','109':'-','110':'.','111':'/','112':'f1','113':'f2','114':'f3','115':'f4','116':'f5','117':'f6','118':'f7','119':'f8','120':'f9','121':'f10','122':'f11','123':'f12','144':'Num_Lock','145':'Scroll_Lock','160':'Shift','161':'Shift','162':'Ctrl','163':'Ctrl','164':'Alt','165':'Alt','186':';','187':'=','188':',','189':'-','190':'.','191':'/','192':'`','219':'[','220':'\\','221':']','222':"'",'224':"Meta"};isc.A.$ja={'8':'Backspace','9':'Tab','13':'Enter','27':'Escape','32':'Space','33':'1','34':"'",'35':'3','36':'4','37':'5','38':'7','39':"'",'40':'9','41':'0','42':'8','43':'=','44':',','45':'-','46':'.','47':'/','48':'0','49':'1','50':'2','51':'3','52':'4','53':'5','54':'6','55':'7','56':'8','57':'9','58':';','59':';','60':',','61':'=','62':'.','63':'/','64':'2','65':'A','66':'B','67':'C','68':'D','69':'E','70':'F','71':'G','72':'H','73':'I','74':'J','75':'K','76':'L','77':'M','78':'N','79':'O','80':'P','81':'Q','82':'R','83':'S','84':'T','85':'U','86':'V','87':'W','88':'X','89':'Y','90':'Z','91':'[','92':'\\','93':']','94':'6','95':'-','96':'`','97':'A','98':'B','99':'C','100':'D','101':'E','102':'F','103':'G','104':'H','105':'I','106':'J','107':'K','108':'L','109':'M','110':'N','111':'O','112':'P','113':'Q','114':'R','115':'S','116':'T','117':'U','118':'V','119':'W','120':'X','121':'Y','122':'Z','123':'[','124':'\\','125':']','126':'`'};isc.A.$jb={'3':"Enter",'25':"Tab",'63232':"Arrow_Up",'63233':"Arrow_Down",'63234':"Arrow_Left",'63235':"Arrow_Right",'64236':"f1",'64237':"f2",'64238':"f3",'64239':"f4",'64240':"f5",'64241':"f6",'64242':"f7",'64243':"f8",'64244':"f9",'64245':"f10",'64246':"f11",'63247':"f12",'63273':"Home",'63275':"End",'63276':"Page_Up",'63277':"Page_Down"};isc.A.$jc={};isc.A.dynamicBackMask=false;isc.A.alwaysBackMask=false;isc.A.dragTrackerDefaults={ID:"isc_dragTracker",$119r:true,width:10,height:10,offsetX:-10,offsetY:-10,autoDraw:false,visibility:"hidden",overflow:"visible",cursor:"arrow"};isc.EventHandler.addClassProperties(isc.EventHandler.eventTypes) isc.A=isc.EventHandler;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$je="f10";isc.A.$20w="Escape";isc.A.$85t=[];isc.A.$85z={};isc.A.$jf="Tab";isc.A.$70a={keydown:true,keyup:true,keypress:true};isc.A.$jg="IMG";isc.A.$jh="progid:DXImageTransform.Microsoft.AlphaImageLoader";isc.A.enableMouseMoveBackCompat=false;isc.A.longTouchDelay=500;isc.A.$ji={};isc.A.$jj="BODY";isc.A.$jk="HTML";isc.A.$jl="eventProxy";isc.A.$945="eventpart";isc.A.$jm="[object Text]";isc.A.$jn={autoDraw:false,$jo:true,$jp:false,overflow:"hidden",visibility:"hidden",$jq:false,getTarget:function(){return this.$jr},show:function(){var _1=this.masterElement;this.moveAbove(_1);return this.Super("show",arguments)}};isc.A.$js=isc.Browser.isIE?isc.undef:true;isc.A.$jt="handleNativeEvents";isc.A.$49r="APPLET";isc.A.$160l={touchstart:true,touchmove:true,touchend:true,touchcancel:true,touchStart:true,touchMove:true,touchEnd:true,touchCancel:true};isc.A.$160m={pointerdown:true,pointermove:true,pointerup:true,pointercancel:true,pointerDown:true,pointerMove:true,pointerUp:true,pointerCancel:true};isc.A.$ju={mouseMove:true,mouseOver:true,mouseOut:true};isc.A.$41z="selectionChange";isc.A.$120k="application/x-isc-dragtype";isc.A.$120l=0;isc.A.$120p="dyn.a";isc.A.$120m={"a":0,"b":1,"c":2,"d":3,"e":4,"f":5,"g":6,"h":7,"k":8,"m":9,"n":10,"p":11,"q":12,"r":13,"s":14,"t":15,"u":16,"v":17,"w":18,"x":19,"y":20,"z":21,"0":22,"1":23,"2":24,"3":25,"4":26,"5":27,"6":28,"7":29,"8":30,"9":31};isc.A.$119s="drop";isc.A.$119t={dateFormat:"xmlSchema",prettyPrint:false,skipInternalProperties:true,strictQuoting:true};isc.A.$119u="dragstart";isc.A.$120c={"none":"none","copy":"copy","copyLink":"copyLink","copylink":"copyLink","copyMove":"copyMove","copymove":"copyMove","link":"link","linkMove":"linkMove","linkmove":"linkMove","move":"move","all":"all","uninitialized":"uninitialized"};isc.A.$1197=isc.Browser.isMoz&&isc.Browser.version<10;isc.A.$119v=600;isc.A.$119w={"none":"none","copy":"copy","copyLink":"copy","copylink":"copy","copyMove":"copy","copymove":"copy","all":"copy","link":"link","linkMove":"link","linkmove":"link","move":"move"};isc.A.$27r="none";isc.A.currentOrientation=isc.Page.getOrientation();isc.A.$118t=isc.Page.getWidth();isc.A.$jv="$jw";isc.A.$jx=0;isc.A.$jy={load:"LOD",mousedown:"MDN",mouseup:"MUP",mousemove:"MMV",mouseout:"MOU",touchstart:"TDN",touchmove:"TMVP",touchend:"TUP",contextmenu:"CXT",keypress:"KPR",keydown:"KDN",keyup:"KUP",resize:"RSZ"};isc.A.$jz="nativeEvents";isc.A.$j0="event";isc.A.$j1="if (!isc.Browser.isIE && event == null) return;"+((isc.Browser.isMoz&&isc.Browser.version>=6)||isc.Browser.isChrome?"if(event.defaultPrevented)return;":(isc.Browser.isMoz?"if(event.getPreventDefault&&event.getPreventDefault())return;":isc.Browser.isSafari?"if(event.returnValue==false)return;":""))+"var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);"+(!isc.Browser.isIE&&isc.Browser.isDOM?"if(returnVal==false)event.preventDefault();else if(returnVal==isc.EH.STOP_BUBBLING)event.stopPropogation();":"")+"return returnVal;";isc.A.$j3={};isc.A.$j4={onmousedown:"mousedown",onmouseup:"mouseup",onclick:"click",ondblclick:"dblclick",oncontextmenu:"contextmenu",onmousewheel:"mousewheel",onmouseover:"mouseover",onmouseout:"mouseout",onmousemove:"mousemove",ondragstart:"dragstart",ondrag:"drag",ondragend:"dragend",ondragenter:"dragenter",ondragover:"dragover",ondragleave:"dragleave",ondrop:"drop",onresize:"resize",onload:"load",onunload:"unload",onselecttext:"selecttext",onselectionchanged:"selectionchanged",onkeydown:"keydown",onkeyup:"keyup",onkeypress:"keypress",pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",pointercancel:"pointercancel"};isc.A.$649={};isc.A.$mt=isc.Browser.isMobileIE;isc.A.$168h=isc.Browser.isIE&&isc.Browser.version<=8;isc.A.getMouseEventProperties=(isc.Browser.isIE?function(_1){var _2=this.lastEvent;if(!_1)_1=this.getWindow().event;_2.DOMevent=_1;_2.eventType=this.$i2[_1.type];_2.y=parseInt(_1.clientY)+this.ns.Page.getScrollTop();_2.x=parseInt(_1.clientX);if(!isc.Page.isRTL()){_2.x+=this.ns.Page.getScrollLeft()}else{if(isc.Browser.isIE&&isc.Browser.version<=7&&isc.Browser.isStrict&&isc.Page.getBodyOverflow()!=isc.Canvas.HIDDEN) {if(!this.$946){if(isc.Browser.version<=6){this.$946=document.documentElement.offsetWidth-document.documentElement.clientWidth}else if(isc.Browser.version<=7){this.$946=document.documentElement.offsetWidth-document.body.offsetWidth}else{this.$946=document.body.offsetWidth-document.body.clientWidth}} _2.x-=this.$946}} _2.nativeTarget=_1.srcElement;var _3=_1.wheelDelta;if(_3!=null){_2.wheelDelta=-_3/120;_2.wheelDeltaY=_2.wheelDelta;_2.wheelDeltaX=0}else{_2.wheelDelta=null;_2.wheelDeltaX=null;_2.wheelDeltaY=null} _2.screenX=_1.screenX;_2.screenY=_1.screenY;if(isc.Browser.isIE9){if(_2.eventType===isc.EH.POINTER_UP||_2.eventType===isc.EH.MOUSE_UP) {if(_1.button==0)_2.buttonNum=1;else if(_1.button==1)_2.buttonNum=4;else if(_1.button==2)_2.buttonNum=2;else _2.buttonNum=0}else{_2.buttonNum=_1.buttons}}else{_2.buttonNum=_1.button} _2.shiftKey=(_1.shiftKey==true);_2.ctrlKey=(_1.ctrlKey==true);_2.altKey=(_1.altKey==true);_2.metaKey=(_1.metaKey==true);_2.target=this.getEventTargetCanvas(_1,_2.nativeTarget,_2);return _2}:function(_1){var _2=this.lastEvent;_2.DOMevent=_1;_2.eventType=this.$i2[_1.type];var _3=false;if(isc.Browser.isMobileWebkit){if(isc.startsWith(_2.eventType,"touch")){if(_2.eventType==isc.EH.TOUCH_END){_3=true}else if(_1.touches!=null&&_1.touches[0]!=null){var _4=_1.touches[0];_2.clientX=_4.clientX;_2.clientY=_4.clientY;_2.screenX=_4.screenX;_2.screenY=_4.screenY;_2.x=_4.pageX;_2.y=_4.pageY;if(isc.Browser.isIPad&&isc.Browser.isMobileSafari&&isc.Browser.iOSVersion==7&&isc.Page.getOrientation()==="landscape") {var _5=this.getDocumentBody(),_6=_5.getBoundingClientRect();var _7=Math.max(0,(-_6.top)<<0);_2.screenY+=((-_5.scrollTop+_7)*isc.Page.$130f())<<0;_2.y+=-_5.scrollTop+_7}}}else if(isc.Browser.isAndroid&&_1.type==isc.EH.CLICK){_2.screenX=_1.screenX;_2.screenY=_1.screenY;_2.x=parseInt(_1.clientX)+isc.Page.getScrollLeft(true);_2.y=parseInt(_1.clientY)+isc.Page.getScrollTop()}}else{_2.screenX=_1.screenX;_2.screenY=_1.screenY;if(_2.eventType!=this.MOUSE_WHEEL){var _8=true;_2.x=parseInt(_1.clientX)+(_8?isc.Page.getScrollLeft(true):0);_2.y=parseInt(_1.clientY)+(_8?isc.Page.getScrollTop():0)}} _2.nativeTarget=_1.target;_2.$j5=null;_2.target=this.getEventTargetCanvas(_1,_2.nativeTarget,_2);if(_2.eventType==this.MOUSE_WHEEL){var _9=_1.wheelDeltaY,_10=_1.wheelDeltaX,_11=_1.wheelDelta,_12=_11,_13=_1.detail,_14=_1.axis;if(_9!=null||_10!=null){_2.wheelDeltaX=_10==null?0:-_10/120;_2.wheelDeltaY=_9==null?0:-_9/120;_2.wheelDelta=_2.wheelDeltaY}else{if(_13==0||(_13==null&&_11!=null)){var _12=_1.wheelDelta;if(_12!=null){_2.wheelDelta=-_12/120;_2.wheelDeltaY=_2.wheelDelta;_2.wheelDeltaX=0}else{_2.wheelDelta=null;_2.wheelDeltaX=null;_2.wheelDeltaY=null}}else{if(isc.Canvas.useNativeWheelDelta&&_1.detail==_1.SCROLL_PAGE_UP){_2.wheelDelta=-Math.floor(_2.target.height/isc.Canvas.scrollWheelDelta)}else if(isc.Canvas.useNativeWheelDelta&&_1.detail==_1.SCROLL_PAGE_DOWN){_2.wheelDelta=Math.floor(_2.target.height/isc.Canvas.scrollWheelDelta)}else{var _15=_14==null||_14==2;var _12=_1.detail/3;if(!isc.isA.Number(_12))_12=0;if(_15){_2.wheelDelta=_12;_2.wheelDeltaY=_12;_2.wheelDeltaX=0}else{_2.wheelDelta=0;_2.wheelDeltaY=0;_2.wheelDeltaX=_12}}}}}else{_2.wheelDelta=null;_2.wheelDeltaX=null;_2.wheelDeltaY=null} if(_2.eventType==isc.EH.MOUSE_MOVE||_2.eventType==isc.EH.TOUCH_MOVE){if(!this.$j6)_2.buttonNum=0}else if(isc.Browser.isTouch){if(_1.targetTouches&&_1.targetTouches.length>1){_2.buttonNum=2}else{_2.buttonNum=1}}else{if(_1.which==2){_2.buttonNum=4}else{_2.buttonNum=(_1.which==1||(isc.Browser.isSafari&&_1.which==65536)?1:2)}} _2.shiftKey=(_1.shiftKey==true);_2.ctrlKey=(_1.ctrlKey==true);_2.altKey=(_1.altKey==true);_2.metaKey=(_1.metaKey==true);return _2});isc.A.$688="f1";isc.A.$689="help";isc.A.HARD="hard";isc.A.SOFT="soft";isc.A.SOFT_CANCEL="softCancel";isc.A.$j7=0;isc.A.clickMaskRegistry=[];isc.A.$cp='ID';isc.B.push(isc.A.handleSyntheticEvent=function isc_c_EventHandler_handleSyntheticEvent(_1){var _2=_1.target;_1.$49s=true;if(_2){_1.clientX+=_2.getPageLeft();_1.clientY+=_2.getPageTop();if(isc.Browser.isIE){_1.clientX+=_2.getLeftMargin()+_2.getLeftBorderSize()+_2.getLeftPadding()+2;_1.clientY+=_2.getTopMargin()+_2.getRightBorderSize()+_2.getTopPadding()+2} switch(_1.type){case"mouseup":this.handleMouseUp(_1);break;case"mousedown":this.handleMouseDown(_1);break;case"mousemove":this.handleMouseMove(_1);break}}},isc.A.handleEvent=function isc_c_EventHandler_handleEvent(_1,_2,_3){this.$77e=_2;var _4=isc.EH;var _5;if(isc.Page.handleEvent(_1,_2,_3)==false){_5=false}else if(_4.targetIsEnabled(_1)&&_4.bubbleEvent(_1,_2,_3)==false){_5=false}else{_5=true} delete this.$77e;return _5},isc.A.handleLoad=function isc_c_EventHandler_handleLoad(_1){if(isc.SA_Page)isc.SA_Page.$o();if(!isc.Browser.isMoz){if(isc.EH.$j8()&&document&&document.body){document.body.addEventListener("unload",isc.EH.handleUnload,false)}} if(isc.Log.supportsOnError){return(isc.Page.handleEvent(null,isc.EH.LOAD)!=false)}else{try{return(isc.Page.handleEvent(null,isc.EH.LOAD)!=false)}catch(e){isc.Log.$am(e);throw e;}}},isc.A.handleUnload=function isc_c_EventHandler_handleUnload(_1){var _2=isc.EH;var _3=(isc.Page.handleEvent(null,_2.UNLOAD)!=false);if(_3==true){this.releaseEvents()} return _3},isc.A.$j9=function isc_c_EventHandler__handleNativeKeyDown(_1,_2){if(!isc.Page.isLoaded())return false;var _3=isc.EH;var _4=_3.lastEvent;if(!_1)_1=_3.getWindow().event;_3.getKeyEventProperties(_1);if(isc.Browser.isIE&&_4.keyName==this.$688&&!_2){return} var _5=true;var _6=_4.keyName,_7=_4.characterValue;var _8=_3.$85t.duplicate();for(var i=0;i<_8.length;i++){var _10=_8[i];if(_10==null||_10==_6)break;if(this.$90x(_10))continue;_4.characterValue=null;_4.keyName=_10;this.handleKeyPress();_3.$85z[_4.keyName]=true} _4.keyName=_6;_4.characterValue=_7;var _11=this.$90x(_6);if(_3.$85t.indexOf(_4.keyName)!=-1){if(!_11){_5=_3.handleKeyPress();_3.$85z[_4.keyName]=true}}else{_5=_3.handleKeyDown(_1)} if(_5!=false&&_4.keyName){_3.$85t[_3.$85t.length]=_4.keyName} _3.$885=_4.ctrlKey;_3.$886=_4.altKey;if(_5!=false&&_11){_5=_3.handleKeyPress(_1);_3.$85z[_4.keyName]=true} if(_5==false){this.cancelKeyEvent(_1)} return _5},isc.A.$90x=function isc_c_EventHandler__fireKeypressOnKeyDown(_1){return false},isc.A.$947=function isc_c_EventHandler__mozFireKeypressOnKeyDown(_1){return _1==this.$je&&this.shiftKeyDown()},isc.A.$948=function isc_c_EventHandler__ieFireKeypressOnKeyDown(_1){var _2=isc.EH;if(_2.$i8[_1]!=null)return true;return _2.$949()},isc.A.$95a=function isc_c_EventHandler__safariFireKeypressOnKeyDown(_1){var _2=isc.EH;if(_2.$90v[_1]!=null)return true;return _2.$944[_1]!=null&&_2.$949()},isc.A.$949=function isc_c_EventHandler__modifierKeyDownOnly(_1){if(!_1)_1=this.lastEvent;if(isc.Browser.isMac)return _1.metaKey&&!_1.altKey&&!_1.shiftKey;else return(_1.ctrlKey&&!_1.metaKey&&!_1.altKey&&!_1.shiftKey)||(_1.altKey&&!_1.metaKey&&!_1.ctrlKey&&!_1.shiftKey)},isc.A.handleKeyDown=function isc_c_EventHandler_handleKeyDown(_1,_2){var _3=isc.EH,_4=_3.lastEvent,_5;var _6=_3.eventHandledNatively(_4.eventType,_4.nativeKeyTarget);if(_6)_5=_3.$js;if(_2!=null)isc.addProperties(_4,_2);if(!_6){var _7=[_4,_4.target,_4.keyName];var _8=_4.keyTarget;if(_8==null)_8=this.getEventTargetCanvas(_1,_4.nativeKeyTarget);if(_3.targetIsEnabled(_8)){_5=(_3.bubbleEvent(_8,_3.KEY_DOWN,_7)!=false)}} return _5},isc.A.$kb=function isc_c_EventHandler__handleNativeKeyUp(_1){if(!isc.Page.isLoaded())return false;var _2=isc.EH,_3=_2.lastEvent;if(!_1)_1=_2.getWindow().event;_2.getKeyEventProperties(_1);_2.$885=_3.ctrlKey _2.$886=_3.altKey _2.$85z[_3.keyName]=null;if(_2.$85t.indexOf(_2.lastEvent.keyName)!=-1){if(_2.handleKeyPress(_1)==false){this.cancelKeyEvent(_1);return false}} var _4=_2.handleKeyUp(_1) return _4},isc.A.handleKeyUp=function isc_c_EventHandler_handleKeyUp(_1,_2){var _3=isc.EH,_4=_3.lastEvent,_5=[_4,_4.target,_4.keyName];if(_3.eventHandledNatively(_4.eventType,_4.nativeKeyTarget)){return _3.$js} var _6=true;if(_2!=null){isc.addProperties(_4,_2)} var _7=_4.keyTarget;if(_7==null)_7=this.getEventTargetCanvas(_1,_4.nativeKeyTarget);if(_3.targetIsEnabled(_7)) _6=(_3.bubbleEvent(_7,_3.KEY_UP,_5)!=false);if(!isc.Browser.isMac&&_4.keyName==_3.$je&&_3.shiftKeyDown()&&isc.Menu&&isc.Menu.$kc&&isc.Menu.$kc.length>0) {_6=false} isc.Page.$151e();_3.clearKeyEventProperties(_4.keyName);return _6},isc.A.$kd=function isc_c_EventHandler__handleNativeKeyPress(_1){if(!isc.Page.isLoaded())return false;var _2=isc.EH;var _3=_2.lastEvent,_4=_2.KEY_PRESS;if(!_1)_1=_2.getWindow().event;_2.getKeyEventProperties(_1);_3.eventType=_4;_3.ctrlKey=_2.$885;_3.altKey=_2.$886;if(_2.$85z[_3.keyName]==true){_2.$85z[_3.keyName]=null;return} var _5=_2.handleKeyPress(_1);if(_5==false){this.cancelKeyEvent(_1)} return _5},isc.A.cancelKeyEvent=function isc_c_EventHandler_cancelKeyEvent(_1){if(isc.Browser.isIE||isc.Browser.isSafari){if(this.$70a[_1.type]==true){try{_1.keyCode=0}catch(e){}}}},isc.A.handleKeyPress=function isc_c_EventHandler_handleKeyPress(_1,_2){var _3=isc.EH,_4=_3.lastEvent,_5=_3.KEY_PRESS;if(_2!=null){isc.addProperties(_4,_2)} var _6={keyName:_4.keyName,characterValue:_4.characterValue};_4.eventType=_5;_3.$85t.removeAt(0);if(isc.Page.handleEvent(_4.keyTarget,_5)==false)return false;var _7=(_3.eventHandledNatively(_5,_4.nativeKeyTarget));if(_7!==false){_3.logDebug("keyPress handled natively");return _3.$js}else{_3.logDebug("keyPress not handled natively")} var _8=_4.keyTarget;if(_8==null)_8=this.getEventTargetCanvas(_1,_4.nativeKeyTarget);if(_3.targetIsEnabled(_8)){var _9=_3.bubbleEvent(_8,_4.eventType,_6) if(_9==false)return false} if(_9!=_3.STOP_BUBBLING&&isc.Page.handleKeyPress()==false)return false;if(this.clickMaskUp()&&_4.keyName==this.$jf){var _10,_11=this.clickMaskRegistry;for(var i=_11.length-1;i>=0;i--){if(this.isHardMask(_11[i])){_10=_11[i];break}} if(_10!=null){var _13=_3.$ke;if(_13!=null){this.logInfo("Telling focus canvas:"+_13+" to shift focus","syntheticTabIndex") _13.$kf(!this.shiftKeyDown(),_10)}else{if(this.shiftKeyDown()){this.logInfo("Putting focus into last widget in response to Tab keydown","syntheticTabIndex") this.$kg(_10)}else{this.logInfo("Putting focus into first widget in response to Tab keydown","syntheticTabIndex") this.$kh(_10)}} return false}} if(_4.keyName==isc.EH.$je&&isc.EH.shiftKeyDown()){var _14=this.handleContextMenu(_1,true);if(isc.Browser.isIE&&_14){this.$ki=true} return _14} if(isc.Browser.isMoz&&isc.RPCManager&&isc.RPCManager.$410.length>0&&_4.keyName==isc.EH.$20w) {return false} return true},isc.A.$kh=function isc_c_EventHandler__focusInFirstWidget(_1){if(this.$170w)return;this.$170w=true;var _2=this.$kj;if(_2){if((!_1||!this.targetIsMasked(_2,_1))&&_2.isDrawn()&&_2.isVisible()&&!_2.isDisabled()&&_2.$kk()) {_2.focusAtEnd(true)}else{_2.$kf(true,_1)}} this.$170w=false},isc.A.$kg=function isc_c_EventHandler__focusInLastWidget(_1){if(this.$170x)return;this.$170x=true;var _2=this.$kl;if(_2){if((!_1||!this.targetIsMasked(_2,_1))&&_2.isDrawn()&&_2.isVisible()&&!_2.isDisabled()&&_2.$kk()) {_2.focusAtEnd()}else{_2.$kf(false,_1)}} this.$170x=false},isc.A.handleMouseLeaveDocument=function isc_c_EventHandler_handleMouseLeaveDocument(_1){var _2=isc.EH;_2.$168i=!!_2.$j6},isc.A.handleMouseDown=function isc_c_EventHandler_handleMouseDown(_1,_2){if((isc.Browser.isTouch||navigator.pointerEnabled)&&!_2)return;var _3=isc.EH;_3.$km=true;var _4=_3.doHandleMouseDown(_1,_2);_3.$km=false;return _4},isc.A.doHandleMouseDown=function isc_c_EventHandler_doHandleMouseDown(_1,_2){if(!isc.Page.isLoaded())return false;var _3=this;_3.$j6=true;_3.$94x=null;var _4=_2||_3.getMouseEventProperties(_1);var _5=_3.$ke,_6=_5!=null&&(_5!=_4.target)&&!_5._useNativeTabIndex&&!_5._useFocusProxy&&!(isc.isA.DynamicForm!=null&&isc.isA.DynamicForm(_5)&&_5.getFocusSubItem()&&_5.getFocusSubItem().hasFocus);if(_6){if(isc.Browser.isIE){var _7=_3.$ke.getID();if(_3.$ko==null) _3.$ko=["if (",_7," && ",_7,".hasFocus)",_7,".blur();"] else _3.$ko[1]=_3.$ko[3]=_3.$ko[5]=_7;isc.Timer.setTimeout(_3.$ko.join(isc.emptyString),0)}else{_3.$ke.blur()}} _3.mouseDownEvent=isc.addProperties({},_4);var _8=_4.target;if(isc.Browser.isAndroid&&isc.Browser.isChrome&&isc.isA.Canvas(_8)&&_8.isDrawn()){var _9=_8.getTopLevelCanvas();_9.getClipHandle().dataset.iscMouseDownEventTimeStamp=String(_4.DOMevent.timeStamp)} var _10=(_3.clickMaskClick(_8)==false);if(_10){_3.$kp=true;if(isc.Browser.isChrome){var _11=isc.Element.getNativeScrollbarSize();var _12=isc.Page.getHeight(),_13=isc.Page.getWidth(),_14=isc.Page.getScrollWidth()>isc.Page.getWidth(),_15=isc.Page.getScrollHeight()>isc.Page.getHeight();if(_14&&isc.EH.getY()>(_12-_11)+isc.Page.getScrollTop()){return true} if(_15&&isc.EH.getX()>_13+isc.Page.getScrollLeft()){return true}} return false}else{_3.$kp=false} var _16=_3.rightButtonDown()?_3.RIGHT_MOUSE_DOWN:_3.MOUSE_DOWN;if(isc.Page.handleEvent(_8,_16)==false){return false} if(_3.eventHandledNatively(_16,_4.nativeTarget)) return _3.$js;if(!_3.targetIsEnabled(_8))return false;var _17;if(_8&&!_8.hasFocus){if(((isc.Browser.isMoz&&_8.canSelectText)||isc.Browser.isSafari)&&_8._useFocusProxy) {_3.focusInCanvas(_8)}else if(!_8._useNativeTabIndex){_8.focus("focus on mousedown")}else if(isc.Browser.isMoz||isc.Browser.isSafari){_8.focus("focus on mousedown")}else if(isc.Browser.isIE){var _18=_4.nativeTarget;if(isc.Browser.isStrict){_17=_8}else{if(_18&&_18.tagName==this.$jg){var _19=_18.style,_20=_19?_19.filter:null;if(_20.contains(this.$jh)){_17=_8}}}}} if(_8)_3.prepareForDragging(_8);var _21=_3.bubbleEvent(_8,_16,null,_10);if(_17!=null)_17.focus();if(_21==false){delete _3.dragTarget;delete _3.dragTargetLink} if(_3.rightButtonDown()){if(!this.useSyntheticRightButtonEvents())return true;if(_8&&(_3.getBubbledProperty(_8,"contextMenu")||_3.getBubbledProperty(_8,"showContextMenu",true)!=isc.Canvas.getInstanceProperty("showContextMenu"))) {_4.returnValue=false;return false} return true} if(_21!=false){if(_3.hasEventHandler(_8,_3.MOUSE_STILL_DOWN)){_3.$kq()}} var _22=(_3.dragTarget!=null&&_3.dragOperation!=_3.DRAG_SELECT);var _23=(isc.Browser.hasNativeDrag&&_8.$120u())||(!_22&&((_3.$94y==_3.$94w.TOUCH_STARTED)||!(isc.Browser.isMoz||isc.Browser.isSafari)||!!_8.$kr(_4)));return _23},isc.A.stillWithinMouseDownTarget=function isc_c_EventHandler_stillWithinMouseDownTarget(){var _1=this.mouseDownTarget();if(!_1)return false;var _2=this.lastEvent;var _3=(_1==_2.target);if(!_3)return false;if(_2.$j5!=null)return _2.$j5;return _3},isc.A.handleMouseMove=function isc_c_EventHandler_handleMouseMove(_1){if(!isc.Page.isLoaded())return false;var _2=isc.EH;if(!_2.nativeDragging&&(isc.Browser.isTouch||navigator.pointerEnabled))return;if(_2.$km||_2.$ku)return;var _3=_2.getMouseEventProperties(_1);if(_2.$168h&&_2.$168i!=null) {if(_2.$168i){if(_3.buttonNum==0){_2.handleMouseUp(_1,true)}} _2.$168i=null} if((isc.Browser.isMoz||isc.Browser.isIE)&&!_2.immediateMouseMove&&!_2.nativeDragging){if(_2.delayedMouseMoveTimer==null){_2.delayedMouseMoveTimer=isc.Timer.setTimeout({target:_2,methodName:"$kv",args:[isc.timeStamp()]},0,true)} return true} var _4=_2.$kx(_1,_3);return _4},isc.A.$kv=function isc_c_EventHandler__delayedMouseMove(_1){this.delayedMouseMoveTimer=null;this.$kx(null,this.lastEvent)},isc.A.$kx=function isc_c_EventHandler__handleMouseMove(_1,_2){this.$ky=true;var _3=this.$kz(_1,_2);this.$ky=null;return _3},isc.A.$kz=function isc_c_EventHandler___handleMouseMove(_1,_2){var _3=this;var _4=_3.mouseIsDown();var _5=(_4&&_3.dragTarget&&(!isc.Browser.hasNativeDrag||!_3.dragTarget.$120u())&&!_3.dragging) if(_5&&isc.Menu&&isc.Menu.$kc&&isc.Menu.$kc.length>0){if(!_3.dragTarget.$131p&&!isc.isA.Menu(_3.dragTarget)&&_3.mouseDownEvent.$173o!=null&&(_3.mouseDownEvent.$173o==isc.Menu.mouseDownEventID)) {_5=false}} var _6;if(isc.Browser.isIE&&_2.originalType!==_3.POINTER_MOVE){var _7=_2.buttonNum;if(_4){if(!_5&&_7==0){if(_3.dragging){}else{_6=true}}}else if(_7==1&&_2.eventType==_3.MOUSE_MOVE){if(_3.$94x){}else{_2.eventType=_3.MOUSE_DOWN;_3.handleMouseDown(null,_2);_2.eventType=_3.MOUSE_MOVE}}} var _8=_2.target,_9=_3.eventHandledNatively(_3.MOUSE_MOVE,_2.nativeTarget);if(_3.$k0){_3.handleMouseUp(_1,true)}else if(_6){_3.logInfo("sythesizing mouseUp "+(_3.$k1?"due to mouseUp outside window,":"[buttonNum cleared on mouseMove with no mouseUp event],")+" buttonNum: "+_2.buttonNum);_3.handleMouseUp(_1,true)} delete _3.$k1;if(!_3.mouseIsDown()){_5=_4=false} if(isc.Browser.isMoz&&(isc.Browser.geckoVersion<20100914)&&_4&&_2.target&&_2.target.$ks&&_2.target!=_3.mouseDownTarget()) {_2.nativeDraggingTarget=_2.nativeTarget;_2.nativeTarget=null;_8=_2.target=_3.mouseDownTarget()} if(_5&&(Math.abs(_2.x-_3.mouseDownEvent.x)>_3.dragTarget.dragStartDistance||Math.abs(_2.y-_3.mouseDownEvent.y)>_3.dragTarget.dragStartDistance)) {_3.handleDragStart()} if(_3.dragging){return _3.handleDragMove()} if(_3.rightButtonDown()){if(!isc.Browser.isMac||!_3.ctrlKeyDown())return true} if(_3.enableMouseMoveBackCompat&&_4){_8=_3.stillWithinMouseDownTarget()?_3.mouseDownTarget():null}else{_8=_2.target} if(_8!=_3.lastMoveTarget){if(this.logIsDebugEnabled()){this.logDebug((_3.lastMoveTarget?"mousing out of "+_3.lastMoveTarget+" ":"")+(_8?"mousing over "+_8:""))} var _10=_3.lastMoveTarget,_11,_12=_3.lastHoverTarget;if(_10){delete _3.lastMoveTarget;_3.handleEvent(_10,_3.MOUSE_OUT)} if(_8){var _13=_3.handleEvent(_8,_3.MOUSE_OVER);if(_13!=false)_11=_8.getHoverTarget(_2)} if(_11!=_12){if(_12)_12.stopHover();if(_11)_11.startHover();_3.lastHoverTarget=_11} _3.lastMoveTarget=_8} if(isc.Page.handleEvent(_8,_3.MOUSE_MOVE)==false)return false;if(_9)return _3.$js;if(!_3.targetIsEnabled(_8))return false;_3.bubbleEvent(_8,_3.MOUSE_MOVE);if(_8)_8.$k2();return true},isc.A.getNativeMouseTarget=function isc_c_EventHandler_getNativeMouseTarget(_1){if(!this.nativeTargetWarningLogged){this.nativeTargetWarningLogged=true;this.logWarn("getNativeMouseTarget(). This method will return the DOM element the browser reports as the target or source of the current mouse event. Please note that SmartClient cannot guarantee that the same element will be reported in all browser/platform configurations for all event types. If you wish to make use of this value, we recommend testing your use case in all target browser configurations.")} if(_1==null)_1=this.lastEvent;return _1.nativeTarget||_1.nativeDraggingTarget},isc.A.handleNativeMouseOut=function isc_c_EventHandler_handleNativeMouseOut(_1){if(isc.Browser==null)return;var _2=isc.EH;if(_2.$km||_2.$ku)return;var _3=(_1?_1:_2.getWindow().event),_4=(isc.Browser.isDOM?_3.target:_3.srcElement),_5=false;if(isc.Browser.isIE){_5=(_3.toElement==null)}else{_5=(_3.relatedTarget==null)} if(_5)_2.$k1=true;var _6=_2.lastMoveTarget;if(_5&&_6){_2.$k3(_3);delete _2.lastMoveTarget;_2.handleEvent(_6,_2.MOUSE_OUT);if(_2.lastHoverTarget){_2.lastHoverTarget.stopHover();delete _2.lastHoverTarget}}},isc.A.$k3=function isc_c_EventHandler__updateMouseOutEventProperties(_1){var _2=isc.EH;var _3=_2.lastEvent;if(isc.Browser.isIE){_3.nativeTarget=_1.toElement}else{_3.nativeTarget=_1.relatedTarget} if(_3.nativeTarget==null)_3.target=null else _3.target=this.getEventTargetCanvas(_1,_3.nativeTarget)},isc.A.$kq=function isc_c_EventHandler__handleMouseStillDown(_1){if(!isc.Page.isLoaded())return false;var _2=this;_2.$k4=isc.Timer.clear(_2.$k4);if(!_2.mouseIsDown()||!_2.mouseDownTarget())return false;if(_2.bubbleEvent(_2.mouseDownTarget(),_2.MOUSE_STILL_DOWN)==false)return false;var _3=_2.mouseDownTarget(),_4=this.$km?_3.mouseStillDownInitialDelay:_3.mouseStillDownDelay;_2.$k4=this.delayCall("$kq",[],_4);return true},isc.A.handleMouseUp=function isc_c_EventHandler_handleMouseUp(_1,_2){var _3=isc.EH;if(!_3.nativeDragging&&(isc.Browser.isTouch||navigator.pointerEnabled)&&!_2)return;if(isc.Browser.isIE&&!_3.$j6){if(_3.$94x)return;var _4=_3.lastEvent;_4.eventType=_3.MOUSE_DOWN;_3.handleMouseDown(null,_3.lastEvent)} _3.$94x=_2&&_3.$168i==null;if(!_2)_3.$ku=true;var _5=_3.$k5(_1,_2);_3.$ku=false;if(isc.Browser.isSafari)_5=true;return _5},isc.A.$k5=function isc_c_EventHandler__handleMouseUp(_1,_2){if(!isc.Page.isLoaded())return false;var _3=this,_4=(!_2?_3.getMouseEventProperties(_1):_3.lastEvent),_5=false;_3.$j6=false;delete _3.$k6;_3.$k4=isc.Timer.clear(_3.$k4);var _6=_3.$k7;if(_6){_6.focus();_3.$k7=null} var _7=_3.$kp;_3.$kp=null;var _8;if(_7==null){_7=(_3.clickMaskClick(_4.target)==false);_8=_7} if(_7==true){if(_3.logIsDebugEnabled())_3.logDebug("mouseUp cancelled by clickMask");return false} var _9=false;if(_3.dragging){_9=_3.handleDragStop()} if(_3.rightButtonDown(_4)){if(this.useSyntheticRightButtonEvents()){_3.handleContextMenu()} _3.$k6=false}else{if(!_9){if(isc.Page.handleEvent(_4.target,_3.MOUSE_UP)!=false){var _10=true,x=_4.x,y=_4.y,_13=_3.mouseDownTarget();_5=_3.eventHandledNatively(_3.MOUSE_UP,_4.nativeTarget);if(!_5&&_3.targetIsEnabled(_13)){if(_13.visibleAtPoint(x,y)){_10=_3.bubbleEvent(_13,_3.MOUSE_UP,null,_8)}else if(_3.$94y===_3.$94w.TOUCH_ENDING||_13.containsPoint(x,y)){_10=_3.bubbleEvent(_13,_3.MOUSE_OUT,null,_8)}} if(_10!=false&&(_3.$94y!==_3.$94w.TOUCH_ENDING||(_3.mouseDownEvent!=null&&Math.abs(_3.mouseDownEvent.x-x)<=10&&Math.abs(_3.mouseDownEvent.y-y)<=10))) {var _14;if(_3.$94y===_3.$94w.TOUCH_ENDING&&(_14=_1.target&&(_1.target.nodeType==1?_1.target:_1.target.parentElement))!=null&&(!isc.Browser.isAndroid||_4.originalType!==_3.CLICK)) {if(!_3.$145u(_14)){var _15=_1.view.document;var _16=_15.createEvent("MouseEvents");_16.initMouseEvent("click",true,true,_1.view,1,_1.screenX,_1.screenY,_1.clientX,_1.clientY,false,false,false,false,0,null);_16.$145v=true;window.setTimeout(function(){_14.dispatchEvent(_16)},1)}} _3.$k6=_3.handleClick(_4.target)}}}} delete _3.redrawnWhileDown;_3.clearDragProperties();if(_3.$k0)_3.$k0=false;var _17=_4.target,_18=isc.isA.DynamicForm!=null&&isc.isA.DynamicForm(_17);if(_5&&(_18||_3.$k6==true)) return _3.$js;return(_18&&_3.$k6==true)});isc.evalBoundary;isc.B.push(isc.A.clearDragProperties=function isc_c_EventHandler_clearDragProperties(){var _1=this;_1.wasNativeDragging=false;_1.crossFrameDragging=_1.nativeDragging=_1.dragging=false;delete _1.$1198;if(_1.$119z!=null){isc.Timer.clear(_1.$119z);delete _1.$119z} delete _1.dragTarget;delete _1.dragTargetStartRect;delete _1.dragTargetLink;delete _1.dragMoveTarget;delete _1.dragMoveAction;delete _1.dragOperation;delete _1.dragAppearance;delete _1.dropTarget;delete _1.lastDropTarget},isc.A.handleContextMenu=function isc_c_EventHandler_handleContextMenu(_1,_2){if(!isc.Page.isLoaded())return false;var _3=isc.EH;_3.$ku=true;var _4=_3.$k8(_1,_2);_3.$ku=false;return _4},isc.A.$k8=function isc_c_EventHandler__handleContextMenu(_1,_2){var _3=this.isMouseEvent(this.lastEvent.eventType);if(this.$ki){delete this.$ki;if(!_2){return true}} if(_1)this.getMouseEventProperties(_1);var _4=this,_5=_4.lastEvent,_6=!_3?_5.keyTarget||_5.target:_5.target;_5.keyboardContextMenu=!_3;_5.eventType="contextMenu";if(!_3){_5.x=_6?_6.getPageLeft():0;_5.y=_6?_6.getPageTop():0} if(isc.Browser.isSafari&&_4.clickMaskClick(_6)==false){return false} if(isc.Page.handleEvent(_6,_4.SHOW_CONTEXT_MENU)==false){return false} var _7=true;if(_4.targetIsEnabled(_6)){_7=_4.bubbleEvent(_6,_4.SHOW_CONTEXT_MENU)} if(_7!=false){var _8=_4.lastMoveTarget;if(_8){delete _4.lastMoveTarget;_4.handleEvent(_8,_4.MOUSE_OUT)}} return _7},isc.A.handleNativeClick=function isc_c_EventHandler_handleNativeClick(_1){var _2=isc.EH,_3=(_2.$k6!=false);delete _2.$k6;if(_1.$145v)return _3;if(isc.Browser.isAndroid){if(isc.Browser.isChrome){var _4=_2.mouseDownEvent;if(_4!=null){var _5=_2.lastEvent.target;_2.DOMevent=_1;var _6=_2.getMouseEventProperties(_1);if(isc.isA.Canvas(_6.target)){var _7=_6.target.getTopLevelCanvas();var _8=_7.getClipHandle();var _9=_8.dataset.iscMouseDownEventTimeStamp;if(_9==null||parseFloat(_9)<_4.DOMevent.timeStamp){_1.preventDefault();return false}} if(_5!==_6.target||(_5.$146b!=null&&_5.$146b(_4,_6))) {_6.originalType=_2.CLICK;_6.eventType=_2.MOUSE_MOVE;_2.$kx(_1,_6);_6.eventType=_2.MOUSE_DOWN;_2.doHandleMouseDown(_1,_6);_6.eventType=_2.MOUSE_UP;_2.$k5(_1,true)}}}else{_2.DOMevent=_1;var _6=_2.getMouseEventProperties(_1);switch(this.$94y){case _2.$94w.READY_FOR_TOUCH:_6.originalType=_2.CLICK;_6.eventType=_2.MOUSE_MOVE;_2.$kx(_1,_6);_6.eventType=_2.MOUSE_DOWN;_2.doHandleMouseDown(_1,_6);case _2.$94w.TOUCH_STARTED:_6.originalType=_2.CLICK;_6.eventType=_2.MOUSE_UP;_2.$k5(_1,true);break;case _2.$94w.TOUCH_COMPLETE:if(isc.Browser.isAndroidWebView&&isc.Browser.androidMinorVersion<4.4){var _10=_1.target&&(_1.target.nodeType==1?_1.target:_1.target.parentElement);if(!_2.$145u(_10)){_1.preventDefault();return false}} break} this.$94y=_2.$94w.READY_FOR_TOUCH}} if(isc.Browser.isIE&&!isc.Browser.isIE10){_2.DOMevent=_1;var _6=_2.getMouseEventProperties(_1);if(_6.target&&_6.target.$120u())return false}},isc.A.handleClick=function isc_c_EventHandler_handleClick(_1,_2){if(!isc.Page.isLoaded())return false;var _3=this,_4=_3.lastEvent,_5;if(!_2)_2=(_3.isDoubleClick(_1)?_3.DOUBLE_CLICK:_3.CLICK);if(isc.Page.handleEvent(_1,_2)==false){_5=false}else if(_3.eventHandledNatively(_2,_4.nativeTarget)){_5=_3.$js}else if(!_3.targetIsEnabled(_1)){_5=false}else if(_3.$94y!==_3.$94w.TOUCH_ENDING&&!_3.stillWithinMouseDownTarget()) {_5=false}else{var _1=_3.mouseDownTarget();_5=_3.bubbleEvent(_1,_2)} _3.$k9=isc.timeStamp();return _5},isc.A.isDoubleClick=function isc_c_EventHandler_isDoubleClick(_1){var _2=this,_1=_1||_2.lastEvent.nativeTarget;var _3=_2.useNativeEventTime!=null?_2.useNativeEventTime:(isc.Browser.isMoz&&isc.Browser.isWin),_4,_5;if(_2._isSecondClick!=null){_5=_2._isSecondClick}else{if(_3){var _6=_2.lastEvent.DOMevent _4=_6?_6.timeStamp:null;if(_4==0||!isc.isA.Number(_4)){this.logDebug("Unable to derive native 'timeStamp' attribute from DOM event");_4=isc.timeStamp()} _5=((_4-_2.lastClickTime)<_2.DOUBLE_CLICK_DELAY)}else{_4=isc.timeStamp();_5=((_2.$k9-_2.lastClickTime)<_2.DOUBLE_CLICK_DELAY)?((_4-_2.lastClickTime)<_2.DOUBLE_CLICK_DELAY):((_4-_2.$k9)<100)}} _2.lastClickTime=_4;if(!_5){delete _2.lastClickTarget} var _7=false;if(_1==_2.lastClickTarget){_7=!_1.noDoubleClicks;if(_7){var _8=_1;while(_8.parentElement){_8=_8.parentElement;if(_8.noDoubleClicks){_7=false;break}}}} _2.lastClickTarget=(_7?null:_1);return _7},isc.A.targetIsEnabled=function isc_c_EventHandler_targetIsEnabled(_1){if(!_1)return false;if(_1.destroyed)return false;if(isc.isA.Function(_1.isDisabled))return!_1.isDisabled();return true},isc.A.$149j=function isc_c_EventHandler__handlePointerDown(_1){var _2=isc.EH;if(_1.pointerType==="touch"){return _2.$77p(_1)}else{_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;_3.originalType=_3.eventType;_3.eventType=_2.MOUSE_DOWN;return _2.doHandleMouseDown(_1,_3)}},isc.A.$149k=function isc_c_EventHandler__handlePointerMove(_1){var _2=isc.EH;if(_1.pointerType==="touch"){return _2.$77q(_1)}else{_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;_3.originalType=_3.eventType;_3.eventType=_2.MOUSE_MOVE;return _2.$kx(_1,_3)}},isc.A.$149l=function isc_c_EventHandler__handlePointerUp(_1){var _2=isc.EH;if(_1.pointerType==="touch"){return _2.$77r(_1)}else{_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;_3.originalType=_3.eventType;_3.eventType=_2.MOUSE_UP;return _2.$k5(_1,true)}},isc.A.$149m=function isc_c_EventHandler__handlePointerCancel(_1){var _2=isc.EH;if(_1.pointerType==="touch"){return _2.$86w(_1)}else{_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;_3.originalType=_3.eventType;_3.eventType=_2.MOUSE_UP;return _2.$k5(_1,true)}},isc.A.$129k=function isc_c_EventHandler__handlingTouchEventSequence(){var _1=isc.EH;return(_1.$94y!=null&&_1.$94y!=_1.$94w.READY_FOR_TOUCH&&_1.$94y!=_1.$94w.TOUCH_COMPLETE)},isc.A.$77p=function isc_c_EventHandler__handleTouchStart(_1){var _2=isc.EH;_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;delete _3.touchStartReturnValue;this.$94y=_2.$94w.TOUCH_STARTED;var _4=_2.handleEvent(_3.target,_2.TOUCH_START);if(_4!==false){_3.originalType=_2.TOUCH_START;_3.eventType=_2.MOUSE_MOVE;_2.$kx(_1,_3);_3.eventType=_2.MOUSE_DOWN;_4=_2.doHandleMouseDown(_1,_3);if(_2.$78m!=null)isc.Timer.clear(_2.$78m);_2.$78m=this.delayCall("$78n",[],_2.longTouchDelay)} return _3.touchStartReturnValue},isc.A.$78n=function isc_c_EventHandler__handleLongTouch(){var _1=isc.EH;_1.$78m=null;if(_1.dragging)return;if(!_1.mouseIsDown()||!_1.mouseDownTarget()||!_1.stillWithinMouseDownTarget())return;_1.bubbleEvent(_1.mouseDownTarget(),_1.LONG_TOUCH)},isc.A.$148k=function isc_c_EventHandler__isDescendantOfNativeTouchScrollableElement(_1){while(_1!=null){if(_1.$145k()&&(_1.hscrollOn||_1.vscrollOn)){return true} _1=_1.parentElement} return false},isc.A.$77q=function isc_c_EventHandler__handleTouchMove(_1){var _2=isc.EH;_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;var _4=_2.handleEvent(_3.target,_2.TOUCH_MOVE);if(_4!==false){_3.originalType=_2.TOUCH_MOVE;_3.eventType=_2.MOUSE_MOVE;_2.$kx(_1,_3);if(_2.dragging&&window.event!=null)window.event.preventDefault()} if(_2.$78m!=null){isc.Timer.clear(_2.$78m);_2.$78m=null} if(isc.Browser.isChrome){var _5=_1.target&&(_1.target.nodeType==1?_1.target:_1.target.parentElement);if(_2.dragTarget!=null){_1.preventDefault();return false}else if(_5!=null&&_5.tagName==="TEXTAREA"&&(_5.scrollWidth>_5.clientWidth||_5.scrollHeight>_5.clientHeight)){}else if(_3.target!=null){var _6=_3.target;if(isc.isA.DrawItem&&isc.isA.DrawItem(_6)){_6=_6.drawPane} if(isc.isA.Canvas(_6)&&!_2.$148k(_6)){_1.preventDefault();return false}}}},isc.A.$145u=function isc_c_EventHandler__shouldIgnoreTargetElem(_1){var _2=this;if(_1==null)return true;var _3=_1.tagName;if(_3==="INPUT"){var _4=_1.type;if(_4==="submit"){if(_2.mouseDownEvent!=null&&_2.mouseDownEvent.DOMevent.target!=null&&!_1.contains(_2.mouseDownEvent.DOMevent.target)) {return true}}else if(_4!=="button"&&_4!=="checkbox"&&_4!=="file"&&_4!=="radio"){return true}}else if(_3==="LABEL"||_3==="SELECT"||_3==="TEXTAREA") {return true} return false},isc.A.$77r=function isc_c_EventHandler__handleTouchEnd(_1){var _2=isc.EH;_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;if(_2.$94y==_2.$94w.TOUCH_STARTED){_2.$94y=_2.$94w.TOUCH_ENDING} var _4=_2.handleEvent(_3.target,_2.TOUCH_END);if(_4!==false){_3.originalType=_2.TOUCH_END;_3.eventType=_2.MOUSE_UP;_2.$k5(_1,true)} if(_2.$94y==_2.$94w.TOUCH_ENDING){_2.$94y=_2.$94w.TOUCH_COMPLETE} if(_2.$78m!=null){isc.Timer.clear(_2.$78m);_2.$78m=null} var _5=(_1.target&&(_1.target.nodeType==1?_1.target:_1.target.parentElement));if(!_2.$145u(_5)){_1.preventDefault();return false}},isc.A.$86w=function isc_c_EventHandler__handleTouchCancel(_1){var _2=isc.EH;_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;if(_2.$94y==_2.$94w.TOUCH_STARTED){_2.$94y=_2.$94w.TOUCH_ENDING} this.delayCall("$894",[_3,_1])},isc.A.$894=function isc_c_EventHandler__handleDelayedTouchCancel(_1,_2){var _3=isc.EH;var _4=_3.handleEvent(_1.target,_3.TOUCH_END);if(_4!==false){_1.originalType=_3.TOUCH_CANCEL _1.eventType=_3.MOUSE_UP;_3.$k5(_2,true)} if(_3.$94y==_3.$94w.TOUCH_ENDING){_3.$94y=_3.$94w.TOUCH_COMPLETE} if(_3.$78m!=null){isc.Timer.clear(_3.$78m);_3.$78m=null}},isc.A.getFocusCanvas=function isc_c_EventHandler_getFocusCanvas(){return this.$ke},isc.A.$la=function isc_c_EventHandler__logFocus(_1,_2){if(!this.logIsDebugEnabled("nativeFocus"))return;this.logDebug((_2?"onfocus":"onblur")+" fired on: "+_1+this.$lb(),"nativeFocus")},isc.A.$lb=function isc_c_EventHandler__getActiveElementText(){if(!isc.Browser.isIE)return isc.$ad;var _1=this.getActiveElement();if(_1==null)return isc.$ad;return", activeElement: "+(_1.tagName)},isc.A.blurFocusCanvas=function isc_c_EventHandler_blurFocusCanvas(_1,_2){var _3=this.$lc;if(_2){this.$h1("BLR");this.$la(_1);isc.EH.$ld=null} this.$le(_1,_2);if(_2)this.$lc=_3},isc.A.$le=function isc_c_EventHandler__blurFocusCanvas(_1,_2){if(this.$ke){var _3=this.$ke;if(_1!=null&&_3!=_1)return;this.$ke=null;_3.$lf(false)}},isc.A.focusInCanvas=function isc_c_EventHandler_focusInCanvas(_1,_2){var _3=this.$lc;if(_2){this.$h1("FCS");this.$la(_1,true);isc.EH.$lg=null} if(isc.Browser.isMoz){if(_2&&(this.lastEvent.eventType!=this.KEY_DOWN&&this.lastEvent.eventType!=this.KEY_PRESS&&this.lastEvent.eventType!=this.KEY_UP)) {if(_1&&_1.showFocusOutline)_1.setShowFocusOutline(false,true)}else{if(_1&&_1.showFocusOutline)_1.setShowFocusOutline(true,true)}} this._focusInCanvas(_1,_2);if(_2)this.$lc=_3},isc.A._focusInCanvas=function isc_c_EventHandler__focusInCanvas(_1,_2){if(!_1||_1.hasFocus||!_1.$kk()||_1.isDisabled())return;if(this.$ke==_1)return;this.checkMaskedFocus(_1);if(this.targetIsMasked(_1)&&!_1.$1196){var _3=this.clickMaskRegistry.last();this.setMaskedFocusCanvas(_1,_3)} if(_2&&isc.Browser.isMoz){if(_1.parentElement)_1.parentElement.$lh(null,true)} var _4=this.$ke;this.$ke=_1;if(_4)_4.$lf(false) if(this.$ke!=_1)return;_1.$lf(true)},isc.A.setMaskedFocusCanvas=function isc_c_EventHandler_setMaskedFocusCanvas(_1,_2){if(!_2)return;_2.$li=_1},isc.A.getMaskedFocusCanvas=function isc_c_EventHandler_getMaskedFocusCanvas(_1){if(_1==null)_1=this.clickMaskRegistry.last();else _1=this.getClickMask(_1);if(_1)return _1.$li},isc.A.checkMaskedFocus=function isc_c_EventHandler_checkMaskedFocus(_1){if(isc.Browser.isIE||isc.Browser.seleniumPresent){var _2=this.getActiveElement();var _3=_1?_1.getHandle():null;if(!_3)return;var _4;while(_2&&_2.tagName){if(_2==_3){_4=true;break} if(_2.eventProxy){_4=(_2.eventProxy==_1.getID());break} _2=_2.parentElement} if(!_4)return} if(isc.Browser.isMobileWebkit){if(isc.EH.isMouseEvent(isc.EH.lastEvent.eventType)&&(isc.EH.mouseDownTarget()==_1)) {return}} var _5=this.clickMaskRegistry;for(var i=_5.length-1;i>=0;i--){var _7=_5[i];if(!this.targetIsMasked(_1,_7))return;else{if(this.isHardMask(_7))return false;this.$lj(_7)}}},isc.A.prepareForDragging=function isc_c_EventHandler_prepareForDragging(_1){var _2=this;if(_2.dragging)_2.handleDragStop();delete _2.dragMoveAction;delete _2.dragTarget;_2.bubbleEvent(_1,"prepareForDragging");if(!_2.dragTarget){if(this.logIsDebugEnabled("dragDrop"))this.logDebug("No dragTarget, not dragging","dragDrop");return} if(this.logIsInfoEnabled("dragDrop")) this.logInfo("target is draggable with dragOperation: "+_2.dragOperation+", dragTarget is : "+_2.dragTarget+(_2.dragTarget!=_1?" (delegated from: "+_1+")":""),"dragDrop");_2.dragTargetStartRect=_2.dragTarget.getRect()},isc.A.handleDragStart=function isc_c_EventHandler_handleDragStart(_1){var _2=this,_3=_2.lastEvent;if(!_2.mouseIsDown()||!_2.dragTarget)return false;delete _2.dropTarget;delete _2.dragMoveTarget;_2.dragOffsetX=-10;_2.dragOffsetY=-10;_2.handleEvent(_2.lastMoveTarget,_2.MOUSE_OUT);if(_2.lastMoveTarget!=_2.mouseDownTarget()){_2.handleEvent(_2.mouseDownTarget(),_2.MOUSE_OUT)} if(isc.Hover)isc.Hover.clear();_2.dragStartOffsetX=_2.mouseDownEvent.x-_2.dragTarget.getPageLeft();_2.dragStartOffsetY=_2.mouseDownEvent.y-_2.dragTarget.getPageTop();var _4=_2.dragOperation+"Start";if(_2.handleEvent(_2.dragTarget,_4)==false){this.logInfo("drag cancelled by false return from: "+_4+" on "+_2.dragTarget,"dragDrop");delete _2.dragTarget;delete _2.dragTargetLink;_2.handleEvent(_2.dragTarget,_2.MOUSE_OVER);return false} delete _2.lastMoveTarget;var _5=_2.dragTarget.getDragAppearance(_2.dragOperation);if(_5!=_2.TRACKER) {_2.dragOffsetX=_2.dragStartOffsetX;_2.dragOffsetY=_2.dragStartOffsetY} if(_2.dragOperation==_2.DRAG_SCROLL||_1) {_2.dragAppearance=_2.NONE}else{_2.dragAppearance=_2.dragTarget.getDragAppearance(_2.dragOperation)} if(_2.dragAppearance==_2.TRACKER){_2.dragMoveTarget=_2.$lk();if(!_2.dragMoveAction)_2.dragMoveAction=_2.$ll;_2.dragTracker.setOverflow(isc.Canvas.VISIBLE);_2.bubbleEvent(_2.dragTarget,_2.SET_DRAG_TRACKER);_2.dragOffsetX=_2.dragTracker.offsetX;_2.dragOffsetY=_2.dragTracker.offsetY}else if(_2.dragAppearance==_2.OUTLINE){_2.dragMoveTarget=_2.getDragOutline(_2.dragTarget);if(!_2.dragMoveAction)_2.dragMoveAction=_2.$ll}else if(_2.dragAppearance==_2.TARGET){_2.dragMoveTarget=_2.dragTarget;if(!_2.dragMoveAction)_2.dragMoveAction=_2.$ll;if(_2.dragTarget.showDragShadow)this.$lm();if(_2.dragTarget.dragOpacity!=null)this.$ln()}else{} if(_2.dragMoveTarget){if(_2.dragMoveTarget!=_2.dragTarget){_2.dragMoveTarget.dragIntersectStyle=_2.dragTarget.dragIntersectStyle} _2.dragMoveTarget.show();_2.dragMoveTarget.bringToFront()} var _6=_2.dragMoveTarget?_2.dragMoveTarget:_2.dragTarget;if((isc.Browser.isIE||isc.Browser.isMoz)&&_2.dragAppearance!=_2.OUTLINE&&!(_6.$lo||_6.neverBackMask)) {if(_2.alwaysBackMask){this.$lp(_6)}else{var _7=[];if(isc.BrowserPlugin){var _8=isc.BrowserPlugin.instances;for(var i=0;i<_8.length;i++){var _10=_8[i];if(_10.isVisible()&&(_6.parentElement==null||_6.parentElement.contains(_10,true))) {_7.add({instance:_10,rect:_10.getPageRect()})}}} if(isc.Browser.isIE&&isc.Browser.minorVersion>=5.5&&isc.NativeSelectItem){var _11=isc.NativeSelectItem.instances;for(var i=0;i<_11.length;i++){var _12=_11[i];if(_12.isVisible()&&(_6.parentElement==null||_6.parentElement.contains(_12.containerWidget,true))) {_7.add({instance:_12,rect:_12.getPageRect()})}}} if(_7.length>0&&_2.dynamicBackMask===false) {this.$lp(_6)}else{_2.$lq=_7}}} _2.showEventMasks((_2.dragOperation==_2.DRAG_RESIZE));_2.dragging=true;_2.nativeDragging=!!_1;_2.crossFrameDragging=false;if(_2.nativeDragging&&_2.delayedMouseMoveTimer!=null){isc.Timer.clear(_2.delayedMouseMoveTimer);_2.delayedMouseMoveTimer=null} this.logInfo("Started dragOperation: "+_2.dragOperation+" with dragTarget: "+_2.dragTarget+" dragAppearance: "+_2.dragAppearance,"dragDrop");return true},isc.A.$lm=function isc_c_EventHandler__showTargetDragShadow(){var _1=isc.EH;var _2=_1.dragTarget;_1.$lr=(!_2.showShadow);_1.$ls=_2.shadowDepth;_2.shadowDepth=_1.dragTargetShadowDepth;_2.updateShadow();if(!_2.showShadow)_2.setShowShadow(true)},isc.A.$lt=function isc_c_EventHandler__hideTargetDragShadow(){var _1=isc.EH;var _2=_1.dragTarget;if(_1.$lr)_2.setShowShadow(false);_2.shadowDepth=_1.$ls;_2.updateShadow();delete _1.$lr;delete _1.$ls},isc.A.$ln=function isc_c_EventHandler__setTargetDragOpacity(){var _1=isc.EH;var _2=_1.dragTarget;_1.$lu=_2.opacity;_2.setOpacity(_2.dragOpacity)},isc.A.$lv=function isc_c_EventHandler__resetTargetDragOpacity(){var _1=isc.EH,_2=_1.dragTarget;_2.setOpacity(_1.$lw)},isc.A.$lp=function isc_c_EventHandler__showBackMask(_1){if(_1._backMask){if(!_1._backMask.isVisible())_1._backMask.show()}else{_1.makeBackMask({$lx:true})}},isc.A.$ly=function isc_c_EventHandler__hideBackMask(_1){if(_1._backMask&&_1._backMask.$lx&&_1._backMask.isVisible()) {_1._backMask.hide()}},isc.A.$lz=function isc_c_EventHandler__getDragMoveComponents(){var _1=this.dragMoveTarget;if(!_1)return;var _2=[_1];if(_1._backMask)_2.add(_1._backMask);if(_1.$l0)_2.add(_1.$l0);if(_1._shadow)_2.add(_1._shadow);return _2},isc.A.$l1=function isc_c_EventHandler__getDragMoveEventName(_1){var _2=this.$ji;if(!_2[_1]){_2[_1]=_1+"Move"} return _2[_1]},isc.A.handleDragMove=function isc_c_EventHandler_handleDragMove(){var _1=this,_2=_1.lastEvent;isc.$54j=true;_1.dropTarget=_1.getDropTarget(_2);isc.$54j=false;if(_1.$lq&&_1.dynamicBackMask){var _3=false;var _4=_1.dragMoveTarget?_1.dragMoveTarget:_1.dragTarget;var _5=_4.getRect();for(var i=0;i<_1.$lq.length;i++){var _7=_1.$lq[i];if(isc.Canvas.rectsIntersect(_7.rect,_5)) {_1.$l2=_7.instance;_3=true;break}} if(_1.$l2){if(_1.$l2.repaintIfRequired)_1.$l2.repaintIfRequired()} if(_3){this.$lp(_4)}else{this.$ly(_4);delete _1.$l2}}else if(isc.BrowserPlugin){isc.BrowserPlugin.handleDragMoveNotify()} if(_1.dragMoveAction)_1.dragMoveAction();if(_1.handleEvent(_1.dragTarget,this.$l1(_1.dragOperation))==false){delete _1.dropTarget;return false} if(_1.dropTarget!=_1.lastDropTarget){this.logDebug("New drop target: "+_1.dropTarget,"dragDrop");if(_1.lastDropTarget){_1.handleEvent(_1.lastDropTarget,_1.DROP_OUT)} if(_1.dropTarget){_1.handleEvent(_1.dropTarget,_1.DROP_OVER)} _1.lastDropTarget=_1.dropTarget} if(_1.dropTarget){_1.handleEvent(_1.dropTarget,_1.DROP_MOVE)} isc.$54j=true;this.$l3();isc.$54j=false;if(this.dragOperation==_1.DRAG_SELECT)return true;return false},isc.A.$l3=function isc_c_EventHandler__handleDragScroll(){var _1=this,_2=_1.dragTarget;if(_1.dragOperation==_1.DRAG_SCROLL)return;var _3=[];var _4=(_1.dragOperation==_1.DRAG_SELECT)||_2.dragScrollType=="parentsOnly"?_2.getParentElements():isc.Canvas._canvasList;;if(_1.dragOperation==_1.DRAG_SELECT)_4.addAt(_2,0);if(_4==null||_4.length==0)return;for(var i=0;i<_4.length;i++){if(_4[i].isDrawn()&&_4[i].isVisible()&&_4[i].shouldDragScroll()){_3.add(_4[i])}} var _6=_1.lastEvent,_7=_6.x,_8=_6.y,_9=[];for(var i=0;i<_3.length;i++){if(_3[i].visibleAtPoint(_7,_8,false,_1.$lz())) _9.add(_3[i])} if(_9.length>0){var _10;for(var i=0;i<_9.length;i++){if(_9[i].$l4(_2.dragScrollDirection)){if(_10==null||_10.contains(_9[i],true)) _10=_9[i]}} if(_10!=null){_10.$l5(_2.dragScrollDirection,_1.dragOperation==_1.DRAG_SELECT)}}},isc.A.handleDragStop=function isc_c_EventHandler_handleDragStop(){var _1=this,_2=_1.lastEvent,_3=false;_1.wasNativeDragging=_1.nativeDragging;_1.crossFrameDragging=_1.nativeDragging=_1.dragging=false;this.logInfo("end of drag interaction","dragDrop");_1.dragOffsetX=_1.dragOffsetY=0;var _4=_1.dragTarget,_5=_1.dragMoveTarget,_6=_1.dragOperation;if(_5&&(_5==_1.dragTracker||_5==_1.dragOutline)) {_5.hide()}else{if(_4.showDragShadow)_1.$lt();if(_4.dragOpacity!=null)_1.$lv()} if(this.dragTracker&&this.dragTracker.$l6){this.dragTracker.destroy();delete this.dragTracker} var _7=_1.dragMoveTarget?_1.dragMoveTarget:_1.dragTarget;this.$ly(_7);if(_1.$lq)delete _1.$lq;var _8=_1.dropTarget;if(_8){_1.handleEvent(_1.dropTarget,_1.DROP_OUT);_1.handleEvent(_8,_1.DROP);_3=true} var _9=(_4==_5);if(_1.handleEvent(_4,_6+"Stop")!=false){_3=true;if(_6==_1.DRAG_RESIZE){if(!_9){if(_5!=null&&this.dragAppearance!=this.TRACKER){_4.setPageRect(_5.getPageLeft(),_5.getPageTop(),_5.getWidth(),_5.getHeight(),true)}else{var _10=isc.EH.resizeEdge;if(_10!=null){var X=isc.EH.getX(),Y=isc.EH.getY(),_13=_10.contains("L")?X-_1.dragTargetStartRect[0]:0,_14=_10.contains("T")?Y-_1.dragTargetStartRect[1]:0;_4.setPageRect(_10.contains("L")?X:_1.dragTargetStartRect[0],_10.contains("T")?Y:_1.dragTargetStartRect[1],_10.contains("R")?X-_4.getPageLeft():_1.dragTargetStartRect[2]-_13,_10.contains("B")?isc.EH.getY()-_4.getPageTop():_1.dragTargetStartRect[3]-_14,true)}}} var _15=_4.getVisibleWidth()-_1.dragTargetStartRect[2],_16=_4.getVisibleHeight()-_1.dragTargetStartRect[3];_4.dragResized(_15,_16)}else if(_6==_1.DRAG_REPOSITION){if(!_9){if(_5!=null){_4.setPageRect(_5.getPageLeft(),_5.getPageTop())}else{_4.setPageRect(isc.EH.getX(),isc.EH.getY())} _4.bringToFront()} _1.dragTarget.dragRepositioned()}}else{if(_6==_1.DRAG_RESIZE){if(_9){_4.setRect(_1.dragTargetStartRect)}}else if(_1.dragOperation==_1.DRAG_REPOSITION){if(_9){_4.moveTo(_1.dragTargetStartRect[0],_1.dragTargetStartRect[1])}}} _1.clearDragProperties();_1.hideEventMasks();if(_1.$94y!=_1.$94w.TOUCH_ENDING){var _17=_1.lastEvent.target;if(_17)_1.handleEvent(_17,_1.MOUSE_OVER);_1.lastMoveTarget=_17} return _3},isc.A.getEventTargetCanvas=function isc_c_EventHandler_getEventTargetCanvas(_1,_2,_3){if(_1==null)_1={};var _4=this,_5=this.getWindow();if(!_2)_2=(isc.Browser.isIE?_1.srcElement:_1.target);if(!_4.$l7(_2)){return _4.lastTarget} if(_1&&_1.$49s)return _1.target;if(!_2||_2.tagName==this.$jj||_2.tagName==this.$jk){return(_4.lastTarget=null)} if(_2&&_2.tagName&&_2.tagName==this.$49r){var _6=isc.Applet?isc.Applet.idForName(_2.name):null;return _6?window[_6]:_4.lastTarget} if(isc.Browser.isIE&&_2.parentElement==null){_2=_4.lastTarget}else{var _7=this.$jl,_8=this.$945,_9=null,_10=null,_11=null;if(isc.Browser.isIE&&!isc.Browser.isIE9){while(_2!=null){if(_3!=null&&_10==null&&_2[_8]!=null){_9=_2;_10=_2.eventpart;_11=_2.id} if(_2.eventProxy)break;_2=_2.parentElement} if(_11==isc.emptyString)_11=null}else{while(_2!=null){var _12=(_2.hasAttribute!=null);if(_3!=null&&_10==null&&(_2.eventpart!=null||(_12&&_2.hasAttribute(_8)))) {_9=_2;_10=_2.getAttribute(_8);_11=_2.getAttribute("id")} if(_2.eventProxy!=null||(_2.hasAttribute!=null&&_2.hasAttribute(_7)))break;_2=_2.parentNode}} if(_3&&_2!=null){_3.eventPart=_10;_3.eventPartElement=_9;_3.eventPartID=_11} if(!_2)return(_4.lastTarget=null);_2=_5[_2.getAttribute(_7)];while(_2&&_2.eventProxy){if(isc.isA.String(_2.eventProxy)){_2.eventProxy=_5[_2.eventProxy]} _2=_2.eventProxy} if(this.logIsInfoEnabled()&&!_1||(_1.type!="mousemove"&&_1.type!="selectstart")) {if(_2!=null){this.logInfo("Target Canvas for event '"+_1.type+"': "+_2)}else{this.logDebug("No target Canvas for event '"+_1.type+"'")}} if(_2==_4.dragTracker){_2=_4.lastTarget} _4.lastTarget=_2} if(isc.isA.Canvas(_2)){if(_3&&_2.getEventTarget){_2=_2.getEventTarget(_3)} return _2} return null},isc.A.$l7=function isc_c_EventHandler__canAccessNativeTargetProperties(_1){try{if(!(isc.Browser.isMoz&&_1==this.$jm))return true;_1.parentNode}catch(e){return false} return true},isc.A.getDropTarget=function isc_c_EventHandler_getDropTarget(_1){var _2=this;if(!_2.dragTarget||!_2.dragTarget.canDrop||_2.dragOperation==_2.DRAG_RESIZE)return null;var _3=(_2.dragMoveTarget||_2.dragTarget),_4=_2.$i0,_5=[],i=0,_7=_4.length,_8=(_3.getDragAppearance(_2.dragOperation)!=isc.EH.TARGET);if(_3.dragIntersectStyle==_2.INTERSECT_WITH_MOUSE){if((_1.target!=this.mouseDownTarget()||(isc.Browser.isIE||(isc.Browser.isSafari&&!isc.Browser.isTouch)||(isc.Browser.isMoz&&isc.Browser.geckoVersion>20040616&&!this.mouseDownTarget().$ks)))) {var _9=_1.target;while(_9&&_9.dropTarget)_9=_9.dropTarget;if((_8||_9!=_3)&&(_4.contains(_9))) {return _9}} for(;i<_7;i++){var _10=_4[i];if(_10.canAcceptDrop&&!_10.isDisabled()&&(_10.visibleAtPoint(_1.x,_1.y,false,_2.$lz()))&&(_8||!_3.contains(_10,true))) {_5.add(_10)}}}else{for(;i<_7;i++){var _10=_4[i];if(!_8&&_10==_3)continue;if(_10.intersects(_3)&&_10.canAcceptDrop&&!_10.isDisabled()) {_5.add(_10)}}} if(_5.length<2)return _5[0];var _11=_5[0];for(var i=1;i<_5.length;i++){var _12=_5[i];if(_11.contains(_12,true)){_11=_12}else if(_3.dragIntersectStyle==_2.INTERSECT_WITH_RECT){var _13=null,_14=_11,_15=_12;while(_13==null){if(_14.parentElement==null){_13=true;_15=_12.topElement||_12}else if(_14.parentElement.contains(_12,true)){_13=_14.parentElement;while(_15.parentElement!=_13){_15=_15.parentElement}}else{_14=_14.parentElement}} if(_15.getZIndex()>_14.getZIndex()){_11=_12}}} return _11},isc.A.registerDroppableItem=function isc_c_EventHandler_registerDroppableItem(_1){if(!_1.$ma){this.$i0.add(_1);_1.$ma=true}});isc.evalBoundary;isc.B.push(isc.A.unregisterDroppableItem=function isc_c_EventHandler_unregisterDroppableItem(_1){this.$i0.remove(_1);delete _1.$ma},isc.A.registerMaskableItem=function isc_c_EventHandler_registerMaskableItem(_1,_2){if(!this.$i1.contains(_1)&&(_1.$jr==null||!this.$i1.contains(_1.$jr))){this.$i1.add(_1);if(_1.dragMaskType=="iframe"){if(_2)this.makeEventFrame(_1,{eventProxy:_1})}else if(_1.dragMaskType=="hide"){}else if(_1.dragMaskType=="hidePlugin"){}else{if(_2)this.makeEventMask(_1,{eventProxy:_1})}}},isc.A.unregisterMaskableItem=function isc_c_EventHandler_unregisterMaskableItem(_1){this.$i1.remove(_1);if(_1._eventMask)_1._eventMask.destroy();delete _1._eventMask},isc.A.makeEventMask=function isc_c_EventHandler_makeEventMask(_1,_2,_3){if(isc.isA.Function(_1.makeEventMask))return _1.makeEventMask(_2,_3);var _4=this.$jn;if(!_4.contents)_4.contents=isc.Browser.isIE&&isc.Browser.version>6?isc.Canvas.blankImgHTML(3200,2400):isc.Canvas.spacerHTML(3200,2400);var _5=isc.Canvas.create({ID:_1.getID()+"_eventMask",cursor:_1.cursor,$jr:_1},_4,_2);_5.setRect(_3?_3:_1.getRect());_1._eventMask=_5;_1.addPeer(_5);return _5},isc.A.showEventMasks=function isc_c_EventHandler_showEventMasks(_1,_2){var _3=this,_4=_3.$i1;if(_1){if(!_3._eventMask)_3._eventMask=isc.ScreenSpan.create({ID:"isc_EH_eventMask",mouseDown:function(){this.hide()},pointersToThis:[{object:_3,property:"_eventMask"}]});_3._eventMask.show();_3._eventMask.bringToFront();if(isc.BrowserPlugin){_4.intersect(isc.BrowserPlugin.instances).map("$mb")}}else{for(var i=0;i<_4.length;i++){var _6=_4[i];if(_2&&_2[_6.getID()]){_6.$mc()}else{_6.$mb()}}}},isc.A.hideEventMasks=function isc_c_EventHandler_hideEventMasks(){var _1=this,_2=_1.$i1;if(_1._eventMask&&_1._eventMask.isVisible()){_1._eventMask.hide();if(isc.BrowserPlugin){_2.intersect(isc.BrowserPlugin.instances).map("$mc")}}else{for(var i=0;i<_2.length;i++){_2[i].$mc()}}},isc.A.eventHandledNatively=function isc_c_EventHandler_eventHandledNatively(_1,_2,_3){var _4=_1;if(!this.reverseEventTypes[_1]){if(this.$i2[_1]) _4=this.$i2[_1];else if(this.$i7[_1]) _4=this.$i7[_1]} var _5=this.$md(_4,_2,_3);if(_5&&this.logIsDebugEnabled()&&_4!="mouseMove"){this.logDebug(_1+" event on "+(_3?" native target:"+_2:this.lastTarget)+" handled natively")} return _5},isc.A.$md=function isc_c_EventHandler__eventHandledNatively(_1,_2,_3){_1=(_1||"");var _4=this,_5=_4.lastEvent;if(!_4.$l7(_2)){return true} if(_2&&_2.tagName==this.$49r)return true;var _6=(_4.isMouseEvent(_1)||_4.isTouchEvent(_1)||_4.isPointerEvent(_1)),_7=_6?_5.target:_5.keyTarget;if(!_3&&_6&&_7==null)return true;if((this.logIsInfoEnabled()&&_1==_4.KEY_DOWN)||(this.logIsDebugEnabled()&&(_1==_4.KEY_UP||_1==_4.KEY_PRESS))) {this.logInfo(_1+" event with Canvas target: "+this.lastEvent.keyTarget+", native target: "+this.echoLeaf(_2))} if(_4.passThroughEvents&&_2){var _8=_2,_9=(_8.handleNativeEvents||(_8.getAttribute?_8.getAttribute(this.$jt):null)),_10=_8.tagName,_11;if(!_4.$me)_4.$me="false";if(_9==null){_11=(!_8.focusProxy&&((_8.form!=null&&_10!=_4.$i6)||_4.$i5[_10]!=null||(_8.isContentEditable&&!_8.getAttribute(this.$jl))));if(!_11&&(_1!=_4.MOUSE_WHEEL)&&(_1!=_4.MOUSE_MOVE)){while(_8&&_8.tagName!=_4.BODY_TAG&&_8.tagName!=this.$jk) {if(_8.eventProxy!=null||(_8.hasAttribute!=null&&_8.hasAttribute(this.$jl)))break;if(_4.$i4[_8.tagName]!=null){var _12=(_8.handleNativeEvents||(_8.getAttribute?_8.getAttribute(this.$jt):null));if(_12!=null&&!isc.isA.emptyString(_12)){if(isc.isA.String(_12)) _12=(_12==isc.EH.$me?false:true)} if(_12!=false){_11=true;break}} _8=_8.parentNode}}}else{_11=_9;if(_11==_4.$me)_11=false} if(_11){return true}else if(_9!=null){return false}} if(!_3&&_6&&this.$mf(_7,_1,_5)) {return true} return false},isc.A.isMouseEvent=function isc_c_EventHandler_isMouseEvent(_1){_1=_1||this.lastEvent.eventType;if(this.$mg==null){this.$mg={mouseOver:true,mouseover:true,mouseDown:true,mousedown:true,rightMouseDown:true,mouseMove:true,mousemove:true,mouseOut:true,mouseout:true,mouseUp:true,mouseup:true,DOMMouseScroll:true,mousewheel:true,mouseWheel:true,click:true,doubleClick:true,doubleclick:true,showContextMenu:true,showcontextmenu:true,selectStart:true,selectstart:true}} if(this.$mg[_1]==true)return true;if(_1=="selectionChange"){return(this.lastEvent.keyName==null||this.lastEvent.keyName=="")} if(_1=="contextMenu"||_1=="contextmenu"){return!this.lastEvent.keyboardContextMenu} return false},isc.A.isTouchEvent=function isc_c_EventHandler_isTouchEvent(_1){return(_1 in this.$160l)},isc.A.isPointerEvent=function isc_c_EventHandler_isPointerEvent(_1){return(_1 in this.$160m)},isc.A.isKeyEvent=function isc_c_EventHandler_isKeyEvent(_1){_1=_1||this.lastEvent.eventType;if(this.$mh==null){this.$mh={};var _2=this.$mh;_2[this.KEY_DOWN]=true;_2[this.KEY_PRESS]=true;_2[this.KEY_UP]=true;var _3=this.$i7;for(var _4 in _3)_2[_4]=true} if(this.$mh[_1]==true)return true;if(_1=="contextMenu"||_1=="contextmenu"){return!!this.lastEvent.keyboardContextMenu} return false},isc.A.$mf=function isc_c_EventHandler__eventOverCSSScrollbar(_1,_2,_3){if(isc.Browser.isTouch)return false;var _4=this;if(!_1||_1.showCustomScrollbars||!(_1.vscrollOn||_1.hscrollOn))return false;var _5=isc.Element.getNativeScrollbarSize();if(_1.isRTL()){if((_1.vscrollOn&&(_3.x<_1.getPageLeft()+_5))||(_1.hscrollOn&&(_3.y>_1.getPageTop()+_1.getHeight()-_5))) {if(_2==_4.MOUSE_DOWN)_4.$k0=true;return true}}else{if((_1.vscrollOn&&(_3.x>_1.getPageRight()-_5))||(_1.hscrollOn&&(_3.y>_1.getPageBottom()-_5))) {if(_2==_4.MOUSE_DOWN)_4.$k0=true;return true}} return false},isc.A.bubbleEvent=function isc_c_EventHandler_bubbleEvent(_1,_2,_3,_4){var _5=this,_6=_5.lastEvent;var _7=this.logIsDebugEnabled()&&!this.$ju[_2];var _8=this.isMouseEvent(_2);if(_8){if(_4==null){_4=this.targetIsMasked(_1,null)} if(_4){if(_7){this.logDebug(_2+" on "+_1+" blocked by clickmask")} return false}} var _9=this.$mi(_2);var _10=null;while(_1){if(_1.destroyed)break;var _11=null;var _12=null;if(_1.mouseEventParent&&_2.startsWith("mouse")){_11=_1.mouseEventParent}else if(_1.keyEventParent&&_2.startsWith("key")){_11=_1.keyEventParent}else{_11=(_1.eventParent||_1.parentElement)} if(_11&&_11.eventProxy)_11=_11.eventProxy;if(_1.editingOn&&_1.editProxy){var _13=_1.editProxy;if(_13[_9]!=null){_12=_9}else if(_13[_2]!=null&&_13[_2]!=isc.Class.NO_OP&&!isc.is.emptyString(_13[_2])){_12=_2;if(isc.isA.String(_13[_2])){_13.convertToMethod(_2)} if(_7){this.logDebug("Bubbling event '"+_2+"', target '"+_1+"' has handler: "+this.echoLeaf(_13[_2]))}} if(_12)_1=_13} if(!_12){if(_1[_9]!=null){_12=_9}else if(_1[_2]!=null&&_1[_2]!=isc.Class.NO_OP&&!isc.is.emptyString(_1[_2])){_12=_2;if(isc.isA.String(_1[_2])){_1.convertToMethod(_2)} if(_7){this.logDebug("Bubbling event '"+_2+"', target '"+_1+"' has handler: "+this.echoLeaf(_1[_2]))}}} if(_12!=null&&_1[_12]!=null){var _14;if(isc.DrawItem!=null&&isc.isA.DrawItem(_1)&&_12=="dragMove"){_14=_1[_12](_6,_3,_10)}else if(_12=="handleDrop"||_12=="drop"){var _15=_1.willAcceptDrop();if(_15){_14=_1[_12](_6,_3)}else{var _16=_1.isA("EditProxy")?_1.creator:_1;if(_16){var _17=_16.creator;if(_17&&_17.editingOn&&_17.editProxy){var _18=_17.editProxy.willAcceptDrop();if(_18||(_18==null)){_15=_18}}} if(_15){_14=_1[_12](_6,_3)}else if(_15==null){_14=true}else{_14=false}}}else{_14=_1[_12](_6,_3)} if(_14==false){if(_7){this.logDebug("Bubbling for event '"+_2+"' cancelled via false return value by target: "+_1)} return false} if(_14==_5.STOP_BUBBLING){if(_7){this.logDebug("Bubbling for event '"+_2+"' cancelled via STOP_BUBBLING return value by target: "+_1)} return _5.STOP_BUBBLING}} if(_1.bubbleEvents==false||(_1.bubbleMouseEvents==false&&_5.isMouseEvent(_2))) {if(_7){this.logDebug("Bubbling for event '"+_2+"' stopped by '"+_1+"' which does not allow bubbling")} return true}else if(isc.isAn.Array(_1.bubbleMouseEvents)){if(_1.bubbleMouseEvents.contains(_2)){if(_7){this.logDebug("Bubbling for event '"+_2+"' stopped by '"+_1+"' which does not allow bubbling")} return true}} _10=_1;_1=_11} if(_7)this.logDebug("Event '"+_2+"' bubbled to top");return true},isc.A.$mi=function isc_c_EventHandler__getInternalHandlerName(_1){if(!this.$jc[_1]){this.$jc[_1]="handle"+_1.charAt(0).toUpperCase()+_1.substring(1)} return this.$jc[_1]},isc.A.hasEventHandler=function isc_c_EventHandler_hasEventHandler(_1,_2){if(!isc.isAn.Object(_1)||!isc.isA.String(_2)){isc.Log.logWarn("EventHandler.hasEventHandler() passed bad parameters ["+[_1,_2]+"]. returning null;","event");return null} var _3=this.$mi(_2);if(this.getBubbledProperty(_1,_2,true,_3,true)!=null){return true} return false},isc.A.getBubbledProperty=function isc_c_EventHandler_getBubbledProperty(_1,_2,_3,_4,_5){while(_1){var _6=_1[_2];if(_6&&(!_3||(_6!==this.NO_OP&&!isc.isAn.emptyString(_6)))) {return _6} if(_4!=null){_6=_1[_4];if(_6&&(!_5||(_6!==this.NO_OP&&!isc.isAn.emptyString(_6)))) {return _6}} _1=(_1.eventParent||_1.parentElement);if(_1&&_1.eventProxy)_1=_1.eventProxy} return null},isc.A.handleSelectStart=function isc_c_EventHandler_handleSelectStart(){var _1=isc.EH;if(_1.$904)return true;var _2=_1.getWindow(),_3=_2.event?_2.event.srcElement:null,_4=_1.mouseDownEvent?_1.mouseDownEvent.nativeTarget:null;if(_3&&_4==_3&&_3.form&&!_1.dragging) {return true} if(isc.EH.$mj)return true;var _5=isc.EH.mouseIsDown()?_1.mouseDownTarget():null,_6=_1.getEventTargetCanvas(_2.event);var _7=(_1.dragging||_1.dragTarget)&&_1.dragOperation!=_1.DRAG_SELECT;var _8=!_7&&(_5!=null?_5.$kr():true)&&(_6!=null?_6.$kr():true);if(_8)return true;return _1.killEvent()},isc.A.handleSelectionChange=function isc_c_EventHandler_handleSelectionChange(_1){if(!_1)_1=window.event;var _2=isc.EH;var _3=_2.lastEvent;var _4=isc.Element.$mk(document);if(_4){var _5=_2.getEventTargetCanvas(_1,_4);_3.nativeKeyTarget=_4 _3.keyTarget=_5;_3.eventType=this.$41z;if(_5){_5.keyTarget=_5;_2.bubbleEvent(_3.keyTarget,"selectionChange")}} return true},isc.A.handleNativeHelp=function isc_c_EventHandler_handleNativeHelp(){if(this.$69a){if(this.$69a()==false)return false} if(this.$69b){if(this.$69b()==false)return false} return isc.EH.$j9(window.event,true)},isc.A.setDragTrackerImage=function isc_c_EventHandler_setDragTrackerImage(_1,_2,_3){var _4=this.lastEvent,_5,_6;if(!isc.Browser.hasNativeDrag||_4==null||(_5=_4.DOMevent)==null||(_6=_5.dataTransfer)==null||_6.setDragImage==null||_5.type!=this.$119u||!this.dragTarget) {return} if(isc.Browser.isSafari&&!isc.Browser.isChrome)return;var _7=document.createElement("img");_7.src=this.dragTarget.getImgURL(_1==null?isc.Canvas.$wz:_1);_2=_2<<0;_3=_3<<0;_6.setDragImage(_7,_2,_3)},isc.A.encodeDragType=function isc_c_EventHandler_encodeDragType(_1){if(!_1)return this.$120k+this.$120l.toString(36);var _2=isc.SB.create(),_3=0,_4;_2.append(this.$120k,this.$120l.toString(36));for(var i=0,_4=_1.length;i<_4;){var _6=_1.charCodeAt(i++),_7=_6,_8=i;if(0xD800<=_6&&_6<=0xDBFF){var _9=_1.charCodeAt(i++);_7=((_6-0xD800)*0x400)+(_9-0xDC00)+0x10000} if((0x30<=_7&&_7<=0x39)||(0x61<=_7&&_7<=0x7A)) {continue} _2.append(_1.substring(_3,_8-1),'_',_7.toString(16),'_');_3=i} _2.append(_1.substring(_3,_4));return _2.release(false)},isc.A.decodeDragDataItemTypeString=function isc_c_EventHandler_decodeDragDataItemTypeString(_1){if(!_1)return null;_1=_1.toLowerCase();if(_1.startsWith(this.$120p)){var _2=this.$120m,_3=[];var _4=0,_5=0;for(var i=this.$120p.length;i<_1.length;++i){var _7=_2[_1[i]];_7<<=3;_5|=_7>>>_4;_4+=5;if(_4>=8){_3.add(_5&255);_4-=8;if(_4>0)_5=(_7<<(5-_4))&255;else _5=0}} _1=String.fromCharCode.apply(String,_3);var _8=_1.indexOf(this.$120k);if(_8<0)return null;var _9=_1.indexOf(':',_8+this.$120k.length);if(_9<0)_9=_1.length;_1=_1.substring(_8,_9)}else if(!_1.startsWith(this.$120k)){return null} var _10=_1.substring(this.$120k.length),_11;if(!_10||(_11=parseInt(_10[0],36))>this.$120l) {return null} var _12=isc.SB.create();if(0==_11){var _13=0;for(var _14=_10.indexOf('_');_14>=0;_14=_10.indexOf('_',_13+1)){_12.append(_10.substring(_13+1,_14));_13=_10.indexOf('_',_14+1);if(_13<0)return null;var _15=parseInt(_10.substring(_14+1),16);if(isNaN(_15))continue;if(_15>=0x10000){var d=_15-0x10000,_17=(d>>10)+0xD800,_18=(d&0x3FF)+0xDC00;_12.append(String.fromCharCode(_17,_18))}else{if(0xD800<=_15&&_15<=0xDFFF)return null;_12.append(String.fromCharCode(_15))}} _12.append(_10.substring(_13+1))} return _12.release(false)},isc.A.$120q=function isc_c_EventHandler__getEncodedDragType(_1){var _2;if(_1==null||(_2=_1.types)==null)return null;var _3=_2.length;for(var i=0;i<_3;++i){var _5=_2[i];if(_5&&_5.startsWith(this.$120k)){return _5}} for(var i=0;i<_3;++i){var _5=_2[i];if(_5&&_5.startsWith(this.$120p)){var _6=this.decodeDragDataItemTypeString(_5);if(_6!=null)return _5}} return null},isc.A.$120r=function isc_c_EventHandler__getDragType(_1){var _2=this.$120q(_1);if(_2==null)return null;return this.decodeDragDataItemTypeString(_2)},isc.A.getNativeDragData=function isc_c_EventHandler_getNativeDragData(){var _1=this.lastEvent,_2;if(!isc.Browser.hasNativeDrag||_1==null||(_2=_1.DOMevent)==null||_2.dataTransfer==null||_2.type!=this.$119s) {return null} var _3=_2.dataTransfer,_4;if(isc.Browser.isIE){_4=_3.getData("Text")}else{var _5=this.$120q(_3);if(_5==null)return null;_4=_3.getData(_5)} var _6=null;try{if(_4!=null)_6=isc.JSON.decode(_4)}catch(e){this.logWarn("Failed to decode as JSON: "+e)} return _6==null?null:_6.data},isc.A.setNativeDragData=function isc_c_EventHandler_setNativeDragData(_1,_2,_3){var _4=this.lastEvent,_5;if(!isc.Browser.hasNativeDrag||_4==null||(_5=_4.DOMevent)==null||_5.dataTransfer==null||_5.type!=this.$119u||!this.dragTarget) {return} if(_3==null)_3=this.dragTarget.dragType;if(isc.$119x==null)isc.$119x=isc.Math.randomUUID();var _6={iscVersion:isc.version,iscVersionNumber:isc.versionNumber,windowUUID:isc.$119x,dragType:_3,data:_1};var _7=isc.JSON.encode(_6,this.$119t);var _8=_4.DOMevent.dataTransfer;if(isc.Browser.isIE){_8.setData("Text",_7)}else{_8.setData(this.encodeDragType(_3),_7);if(_2==null||(_2=String(_2).trim()).length==0)_2="\u00A0";_8.setData("Text",_2)}},isc.A.handleNativeDragStart=function isc_c_EventHandler_handleNativeDragStart(_1){if(isc.Browser.hasNativeDrag&&_1.dataTransfer){var _2=isc.EH,_3=_1.dataTransfer,_4=_2.getMouseEventProperties(_1),_5=_4.target;if(_5!=null&&(_5=_5.$120v())!=null){_4.target=_5;if(!_5.useNativeDrag)return false;if(isc.Browser.isIE){if(_5.dragType==null){this.logWarn("No dragType string is set on "+_5.getID()+". Canceling native drag...");return false} var _6=isc.Canvas.getCrossFrameDragByDragType&&isc.Canvas.getCrossFrameDragByDragType(_5.dragType);if(_6==null){this.logWarn("No cross-frame drag settings have been registered for dragType:'"+_5.dragType+"'. Canvas.registerCrossFrameDrags() must be called to register cross-frame drag settings for this dragType. Canceling native drag...");return false} _3.effectAllowed=_2.$120c[_6.effectAllowed]}else{_3.effectAllowed="copy"} if(!(isc.isA.DataBoundComponent&&isc.isA.DataBoundComponent(_5))){_2.setNativeDragData(null,null,_5.dragType)}else{_2.setNativeDragData(_5.cloneDragData(),null,_5.dragType)} _2.dragTarget=_5;_2.dragOperation="drag";var _7=_2.handleDragStart(true);_2.handleDragMove();return _7}} if(isc.EH.dragTarget)return false;var _5=isc.EH.mouseDownTarget();if(_5)return!!(_5.$kr());if(this.$ml)return this.$ml();if(this.$mm)return this.$mm()},isc.A.$119y=function isc_c_EventHandler__setCrossFrameDragCleanupTimer(){var _1=this;if(_1.$119z!=null)isc.Timer.clear(_1.$119z);_1.$119z=isc.Timer.setTimeout(_1.$1190,_1.$119v)},isc.A.$1190=function isc_c_EventHandler__crossFrameDragCleanupAction(){var _1=isc.EH;delete _1.$119z;if(_1.crossFrameDragging){_1.artificialDragTarget.dragType=null;_1.$1191(_1.lastEvent.DOMevent)}else if(_1.nativeDragging){if(_1.dragMoveTarget)_1.dragMoveTarget.hide()}},isc.A.$1192=function isc_c_EventHandler__handleNativeDragOver(_1){var _2=_1.dataTransfer,_3=_2.dropEffect,_4=isc.EH;if(_2.files!=null&&_2.files.length>0)return;var _5=_2.types,_6=false;if(_5!=null){for(var _7=_5.length;_7>0;--_7){if(_5[_7-1]=="Files"){_6=true;break}}} if(!_6)_2.dropEffect=_4.$27r;var _8;if(isc.Browser.isIE){try{_8=_4.$120c[_2.effectAllowed]}catch(e){_8=_3}}else{_8=_2.effectAllowed} if(!_4.nativeDragging){var _9=null;if(isc.Browser.isIE){var _10=isc.Canvas.getCrossFrameDragByEffectAllowed(_8);if(_10==null){return} _9=_10.dragType}else{_9=this.$120r(_2);if(_9==null)return} _2.dropEffect=_4.$27r;if(_4.artificialDragTarget)_4.artificialDragTarget.destroy();var _11=_4.artificialDragTargetConstructor||_4.artificialDragTargetDefaults._constructor;_4.dragTarget=_4.artificialDragTarget=isc[_11].create({autoDraw:false,_generated:true},_4.artificialDragTargetDefaults,_4.artificialDragTargetProperties,{left:_1.pageX,top:_1.pageY,dragType:_9});var _12=_4.getMouseEventProperties(_1);_12.target=_4.dragTarget;_4.dragOperation="drag";_4.$j6=true;_4.mouseDownEvent=isc.addProperties({},_12);_4.handleDragStart(true);_4.crossFrameDragging=true;if(_4.$1197)_4.$119y()}else{if(_4.$1197)_4.$119y();_2.dropEffect=_4.$27r;var _13=_4.lastEvent;if(_13!=null&&_13.screenX==_1.screenX&&_13.screenY==_1.screenY) {if(_13.$1193===false){_2.dropEffect=_4.$119w[_8]} return _13.$1193}} _4.handleMouseMove(_1);var _14,_15=_4.dropTarget;if(_15&&_15.canAcceptDrop){var _16=_15.creator;if((_15.editingOn&&_15.editProxy&&_15.editProxy.willAcceptDrop())||(_16&&_16.editingOn&&_16.editProxy&&_16.editProxy.willAcceptDrop())||_15.willAcceptDrop()) {_14=false;_2.dropEffect=_4.$119w[_8]}} _4.lastEvent.$1193=_14;return _14},isc.A.$1199=function isc_c_EventHandler__handleNativeDragEnter(_1){var _2=isc.EH;_2.$1198=(_1.srcElement||_1.target);if(isc.Browser.isIE){_2.handleMouseMove(_1);var _3=_2.dropTarget,_4;if(_3&&_3.canAcceptDrop){var _5=_3.creator;if((_3.editingOn&&_3.editProxy&&_3.editProxy.willAcceptDrop())||(_5&&_5.editingOn&&_5.editProxy&&_5.editProxy.willAcceptDrop())||_3.willAcceptDrop()) {if(_1.preventDefault)_1.preventDefault();_4=false}} _2.lastEvent.$1193=_4;return _4}},isc.A.$120a=function isc_c_EventHandler__handleNativeDragLeave(_1){var _2=isc.EH;if(_2.$1198==(_1.srcElement||_1.target)){_2.$1198=null;if(!_2.$1197){if(_2.crossFrameDragging){_2.artificialDragTarget.dragType=null;_2.$1191(_1)}else if(_2.nativeDragging){if(_2.dragMoveTarget)_2.dragMoveTarget.hide()}}}},isc.A.$1191=function isc_c_EventHandler__handleNativeDragEnd(_1){var _2=isc.EH;_2.handleMouseUp(_1)},isc.A.$1194=function isc_c_EventHandler__handleNativeDrop(_1){var _2=isc.EH,_3=_2.nativeDragging;_2.handleMouseUp(_1);if(_3)return false},isc.A.$139z=function isc_c_EventHandler__handleTransitionEnd(_1){var _2=isc.EH;var _3={DOMevent:_1,eventType:_2.TRANSITION_END,nativeTarget:_1.target,propertyName:_1.propertyName,prefixedPropertyName:_1.propertyName,elapsedTime:_1.elapsedTime};if(_1.propertyName!=null&&_1.propertyName.startsWith(isc.Element.vendorCSSPrefix)){_3.propertyName=_1.propertyName.substring(isc.Element.vendorCSSPrefix.length)} var _4=_3.target=_2.getEventTargetCanvas(_1,_3.nativeTarget,_3);return _2.handleEvent(_4,_2.TRANSITION_END,_3)},isc.A.handleResize=function isc_c_EventHandler_handleResize(_1){if(isc.EH.resizeTimer==null){isc.EH.resizeTimer=isc.Timer.setTimeout("isc.EH.$hr()",0)} return true},isc.A.handleOrientationChange=function isc_c_EventHandler_handleOrientationChange(_1){this.$78p()},isc.A.$mn=function isc_c_EventHandler__pageResizePollMethod(){isc.EH.$hr(true)},isc.A.$hr=function isc_c_EventHandler__pageResize(_1){isc.EH.resizeTimer=null;var _2=isc.Page.getOrientation();if(!_1){this.$mo=isc.Page.getWidth(window,true);this.$mp=isc.Page.getHeight(window,true);if(this.resizingPollTimer!=null)isc.Timer.clearTimeout(this.resizingPollTimer);this.resizingPollTimer=isc.Timer.setTimeout(this.$mn,100)}else{var _3=isc.Page.getWidth(window,true),_4=isc.Page.getHeight(window,true),_5=(_2==this.currentOrientation)&&(_3==this.$mo&&_4==this.$mp) if(isc.Page.pollPageSize){isc.Page.setEvent(isc.EH.IDLE,this.$mn,isc.Page.FIRE_ONCE)} if(_5)return;this.$mo=_3;this.$mp=_4} this.$78p(_2)},isc.A.$78p=function isc_c_EventHandler__fireResizeEvent(_1){isc.Page.handleEvent(null,isc.EH.RESIZE);var _2=isc.Page.getWidth();if(_2==this.$118t)return;if(_1==null)_1=isc.Page.getOrientation();if(_1!=this.currentOrientation){this.$118t=_2;this.currentOrientation=_1;isc.Page.handleEvent(null,isc.EH.ORIENTATION_CHANGE)}},isc.A.handleMouseWheel=function isc_c_EventHandler_handleMouseWheel(_1){var _2=isc.EH;if(!_1)_1=_2.getWindow().event;var _3=(_1.srcElement||_1.target);if(_2.eventHandledNatively(_1.type,_3))return _2.$js;_2.getMouseEventProperties(_1);var _4=_2.lastEvent.target;var _5;if(_2.targetIsEnabled(_4)){_5=_2.bubbleEvent(_4,_2.eventTypes.MOUSE_WHEEL)} if(_5==false){if(_1.preventDefault)_1.preventDefault();return false} return true},isc.A.getWheelDelta=function isc_c_EventHandler_getWheelDelta(_1){return(_1||this.lastEvent).wheelDelta},isc.A.getWheelDeltaX=function isc_c_EventHandler_getWheelDeltaX(_1){return(_1||this.lastEvent).wheelDeltaX},isc.A.getWheelDeltaY=function isc_c_EventHandler_getWheelDeltaY(_1){return(_1||this.lastEvent).wheelDeltaY},isc.A.handleDOMMouseScroll=function isc_c_EventHandler_handleDOMMouseScroll(_1){return isc.EH.handleMouseWheel(_1)},isc.A.handleScroll=function isc_c_EventHandler_handleScroll(_1){},isc.A.prepareForLinkDrag=function isc_c_EventHandler_prepareForLinkDrag(_1,_2){this.dragTarget=(isc.isA.String(_1)?this.getWindow()[_1]:_1);this.dragTargetLink=_2;return false},isc.A.setDragTracker=function isc_c_EventHandler_setDragTracker(_1,_2,_3,_4,_5,_6){var _7=this.$lk(_6);_2=_2||10;_3=_3||10;_7.resizeTo(_2,_3);_7.setContents(_1);_7.redrawIfDirty("setDragTracker");if(_4)_7.offsetX=_4;if(_5)_7.offsetY=_5;_7.$l6=true},isc.A.$lk=function isc_c_EventHandler__makeDragTracker(_1){if(!this.dragTracker){var _2=this.dragTrackerDefaults;_2.contents=isc.Canvas.imgHTML("[SKIN]black.gif",10,10);this.dragTracker=isc.Canvas.create(_2,_1)}else if(_1!=null)this.dragTracker.setProperties(_1);return this.dragTracker},isc.A.getDragOutline=function isc_c_EventHandler_getDragOutline(_1,_2,_3){if(!this.dragOutline){this.dragOutline=isc.Canvas.create({autoDraw:false,overflow:isc.Canvas.HIDDEN}) if(isc.Browser.isIE)this.dragOutline.setContents(isc.Canvas.spacerHTML(3200,2400))} var _4=this.dragOutline;if(isc.Element.getStyleDeclaration(_1.dragOutlineStyle)){_4.setStyleName(_1.dragOutlineStyle)}else{_4.setBorder((_2||1)+"px solid "+(_3||"black"))} _4.setPageRect(_1.getPageLeft(),_1.getPageTop(),_1.getVisibleWidth(),_1.getVisibleHeight());_4.minWidth=_1.minWidth;_4.minHeight=_1.minHeight;_4.maxWidth=_1.maxWidth;_4.maxHeight=_1.maxHeight;_4.keepInParentRect=_1.keepInParentRect;return _4},isc.A.getDragRect=function isc_c_EventHandler_getDragRect(){var _1=this.dragMoveTarget||this.dragTarget;if(!_1)return null;return _1.getPageRect()},isc.A.$ll=function isc_c_EventHandler__moveDragMoveTarget(){var _1=this;var _2=_1.dragMoveTarget;if(!_2)return true;var _3=(isc.Browser.isMoz&&isc.Browser.geckoVersion<20031007&&!_2.keepInParentRect);if(_3&&(_2.parentElement&&!_2.parentElement.containsPoint(_1.lastEvent.x,_1.lastEvent.y))) {return true} isc.$54j=true;_2.moveToEvent(_1.dragOffsetX,_1.dragOffsetY);isc.$54j=false;_2.show();return true},isc.A.$mq=function isc_c_EventHandler__resizeDragMoveTarget(){var _1=this;if(_1.dragMoveTarget)_1.dragMoveTarget.resizeToEvent(_1.resizeEdge);return true},isc.A.killEvent=function isc_c_EventHandler_killEvent(_1){if(!_1)_1=isc.EH.getWindow().event;_1.cancelBubble=true;return false},isc.A.stopBubbling=function isc_c_EventHandler_stopBubbling(){return isc.EH.STOP_BUBBLING},isc.A.startIdleTimer=function isc_c_EventHandler_startIdleTimer(){if(!isc.Page.isLoaded())return;if(!this.idleTimer){this.idleTimer=isc.Timer.setTimeout({target:isc.EH,methodName:this.$jv},this.IDLE_DELAY)}},isc.A.$jw=function isc_c_EventHandler__handleIdle(){this.idleTimer=null;var _1=isc.Page.handleEvent(null,this.IDLE);if(isc.Page.actionsArePendingForEvent(this.IDLE))this.startIdleTimer();return _1},isc.A.$h1=function isc_c_EventHandler__setThread(_1){var _2=_1+this.$jx++;if(this.$lc!=null)this.$90m=this.$lc;this.$lc=_2;if(isc.Log.logIsInfoEnabled("RpcTabTiming")){this.$117e=isc.timeStamp()} if(this.$jx>9)this.$jx=0},isc.A.$h2=function isc_c_EventHandler__clearThread(){if(this.$mr!=null)this.runTeas();if(this.$90m){this.$lc=this.$90m;this.$90m=null}else{this.$lc=null}},isc.A.$ms=function isc_c_EventHandler__setThreadExitAction(_1){isc.Timer.setTimeout(_1,0);var _2=this.$mr;if(_2==null)_2=this.$mr=[];_2.add(_1)},isc.A.runTeas=function isc_c_EventHandler_runTeas(){var _1=this.$lc;while(this.$mr!=null){var _2=this.$mr;this.$mr=null;if(this.logIsDebugEnabled()){this.logDebug("firing threadExitActions: "+this.echoAll(_2))} for(var i=0;i<_2.length;i++){this.$lc=_1+"[E"+i+"]";var _4=_2[i];if(isc.isA.String(_4))isc.eval(_4);else _4()}}},isc.A.dispatch=function isc_c_EventHandler_dispatch(_1,_2){if(!_2)_2=this.getWindow().event;if(isc.$611!=null){delete isc.$611} this.$h1(this.$jy[_2.type]||_2.type);var _3;if(isc.Log.supportsOnError){_3=_1.call(this,_2)}else{try{_3=_1.call(this,_2)}catch(e){isc.Log.$am(e);throw e;}} this.$h2();if(_3!=false&&this.$j3[_2.type]){var _4=this.$j3[_2.type](_2);if(_4==false)_3=false} return _3},isc.A.captureEvent=function isc_c_EventHandler_captureEvent(_1,_2,_3,_4){var _5=this.getWindow(),_6=this.$mt;var _7=isc.$aq(this.$j0,this.$j1);_7.$ch=_5;_7.$j2=_4;var _8;if(!_6){if(_1[_2]!=null){var _8=this.$j4[_2]||_2.substring(2);this.$j3[_8]=_1[_2]} _1[_2]=_7}else{if(isc.Browser.isIE&&isc.Browser.version<11){_1.attachEvent(_2,_7)}else if(isc.Browser.isDOM){_8=this.$j4[_2]||_2.substring(2);_1.addEventListener(_8,_7,false)}else{this.logWarn("Unable to use event listeners in this browser");this.$mt=false;return this.captureEvent(_1,_2,_3,_4)}} if(_1===_5.document){var _9=(!_6||isc.Browser.isIE)?_2:_8;this.$649[_9]=_7}});isc.evalBoundary;isc.B.push(isc.A.captureEvents=function isc_c_EventHandler_captureEvents(_1){var _2=this;if(window.isc_useEventListeners!=null)_2.$mt=window.isc_useEventListeners;var _3=isc.makeReverseMap(_2.eventTypes);isc.addProperties(_2,{reverseEventTypes:_3});if(_1==null)_1=this.getWindow();var _4=_1.document;isc.Page.setEvent(_2.LOAD,isc.Page.finishedLoading);if(isc.Browser.isIE&&isc.Browser.version<11){_1.attachEvent("onload",_2.handleLoad)}else if(isc.Browser.isDOM&&!isc.Browser.isOpera){_1.addEventListener("load",_2.handleLoad,true)}else{this.captureEvent(_1,"onload",_2.LOAD,_2.handleLoad)} if(!this.$j8()){this.captureEvent(_1,"onunload",_2.UNLOAD,_2.handleUnload)} this.captureEvent(_1,"onresize",_2.RESIZE,_2.handleResize);if(this.$168h){this.captureEvent(_4.documentElement,"onmouseleave",_2.MOUSE_LEAVE,_2.handleMouseLeaveDocument)} this.captureEvent(_4,"onmousedown",_2.MOUSE_DOWN,_2.handleMouseDown);this.captureEvent(_4,"onmousemove",_2.MOUSE_MOVE,_2.handleMouseMove);this.captureEvent(_4,"onmouseup",_2.MOUSE_UP,_2.handleMouseUp);this.captureEvent(_4,"onclick",_2.CLICK,_2.handleNativeClick);this.captureEvent(_4,"ondblclick",_2.DOUBLE_CLICK,_2.handleNativeClick);this.captureEvent(_4,"onscroll","scroll",_2.handleScroll);this.captureEvent(_4,"onmousewheel",_2.MOUSE_WHEEL,_2.handleMouseWheel);if(isc.Browser.isMoz){_1.addEventListener("DOMMouseScroll",_2.handleDOMMouseScroll,true)} this.captureEvent(_4,"onmouseout",_2.MOUSE_OUT,_2.handleNativeMouseOut);this.captureEvent(_4,"oncontextmenu",_2.SHOW_CONTEXT_MENU,_2.handleContextMenu);this.captureEvent(_4,"onselectstart",_2.SELECT_START,_2.handleSelectStart);this.captureEvent(_1,"onselectstart",_2.SELECT_START,_2.handleSelectStart);if(isc.Browser.isIE){this.captureEvent(_4,"onselectionchange",_2.SELECTION_CHANGE,_2.handleSelectionChange)} if(_1.isc_captureKeyEvents!=false){this.captureEvent(_4,"onkeydown",_2.KEY_DOWN,_2.$j9);this.captureEvent(_4,"onkeypress",_2.KEY_PRESS,_2.$kd);this.captureEvent(_4,"onkeyup",_2.KEY_UP,_2.$kb)} if(isc.Browser.hasNativeDrag||isc.Browser.isIE){this.$mm=_1.ondragstart;this.$ml=_4.ondragstart;_1.ondragstart=_4.ondragstart=null;this.captureEvent(_4,"ondragstart",_2.DRAG_START,_2.handleNativeDragStart)} if(isc.Browser.hasNativeDrag){this.captureEvent(_4,"ondragend",_2.DRAG_STOP,_2.$1191);this.captureEvent(_4,"ondragenter",_2.DROP_OVER,_2.$1199);this.captureEvent(_4,"ondragover",_2.DROP_MOVE,_2.$1192);this.captureEvent(_4,"ondragleave",_2.DROP_OUT,_2.$120a);this.captureEvent(_4,"ondrop",_2.DROP,_2.$1194)} if(isc.Browser.$139c){_4.addEventListener(isc.Browser.$139y,_2.$139z,false)} if(isc.Browser.isIE){this.$69b=_1.onhelp;this.$69a=_4.onhelp;_4.onhelp=_1.onhelp=_2.handleNativeHelp} if(isc.Browser.isTouch){this.$94y=_2.$94w.READY_FOR_TOUCH;if(isc.Browser.isMobileIE){this.captureEvent(_4,"pointerdown",_2.TOUCH_START,_2.$77p);this.captureEvent(_4,"pointermove",_2.TOUCH_MOVE,_2.$77q);this.captureEvent(_4,"pointerup",_2.TOUCH_END,_2.$77r);this.captureEvent(_4,"pointercancel",_2.TOUCH_CANCEL,_2.$86w)}else{this.captureEvent(_4,"ontouchstart",_2.TOUCH_START,_2.$77p);this.captureEvent(_4,"ontouchmove",_2.TOUCH_MOVE,_2.$77q);this.captureEvent(_4,"ontouchend",_2.TOUCH_END,_2.$77r);this.captureEvent(_4,"ontouchcancel",_2.TOUCH_CANCEL,_2.$86w)}}else if(navigator.pointerEnabled){this.captureEvent(_4,"onpointerdown",_2.POINTER_DOWN,_2.$149j);this.captureEvent(_4,"onpointermove",_2.POINTER_MOVE,_2.$149k);this.captureEvent(_4,"onpointerup",_2.POINTER_UP,_2.$149l);this.captureEvent(_4,"onpointercancel",_2.POINTER_CANCEL,_2.$149m)} if(isc.Browser.isMobile){isc.Page.pollPageSize=true} var _5=null;if(isc.Browser.isMoz)_5=isc.EH.$947;else if(isc.Browser.isIE)_5=isc.EH.$948;else if(isc.Browser.isSafari)_5=isc.EH.$95a;if(_5)isc.EH.addClassMethods({$90x:_5})},isc.A.$j8=function isc_c_EventHandler__useEventListenerForUnload(){return(isc.Browser.isSafari&&isc.Browser.safariVersion<=412)},isc.A.releaseEvents=function isc_c_EventHandler_releaseEvents(_1){var _2=this;if(_1==null)_1=this.getWindow();var _3=_1.document,_4=this.$649;for(var _5 in _4){if(!this.$mt){_3[_5]=null}else{if(isc.Browser.isIE&&isc.Browser.version<11){_3.detachEvent(_5,_4[_5])}else if(isc.Browser.isDOM){_3.removeEventListener(_5,_4[_5],false)}}} if(isc.Browser.hasNativeDrag||isc.Browser.isIE){_3.ondragstart=_1.onhelp=null} if(isc.Browser.isIE){_3.onhelp=_1.onhelp=null} delete this.$649},isc.A.getLastEvent=function isc_c_EventHandler_getLastEvent(){return this.lastEvent},isc.A.getEventType=function isc_c_EventHandler_getEventType(_1){return(_1||this.lastEvent).eventType},isc.A.getTarget=function isc_c_EventHandler_getTarget(_1){return(_1||this.lastEvent).target},isc.A.getDragTarget=function isc_c_EventHandler_getDragTarget(){return this.dragTarget},isc.A.getX=function isc_c_EventHandler_getX(_1){return(_1||this.lastEvent).x},isc.A.getY=function isc_c_EventHandler_getY(_1){return(_1||this.lastEvent).y},isc.A.getScreenX=function isc_c_EventHandler_getScreenX(_1){return(_1||this.lastEvent).screenX},isc.A.getScreenY=function isc_c_EventHandler_getScreenY(_1){return(_1||this.lastEvent).screenY},isc.A.mouseIsDown=function isc_c_EventHandler_mouseIsDown(){return!!(this.$j6)},isc.A.mouseDownTarget=function isc_c_EventHandler_mouseDownTarget(){return(this.mouseDownEvent?this.mouseDownEvent.target:null)},isc.A.getButtonNum=function isc_c_EventHandler_getButtonNum(_1){return(_1||this.lastEvent).buttonNum},isc.A.leftButtonDown=function isc_c_EventHandler_leftButtonDown(_1){return((_1||this.lastEvent).buttonNum==1)},isc.A.rightButtonDown=function isc_c_EventHandler_rightButtonDown(_1){if(!_1)_1=this.lastEvent;return(_1.buttonNum==2)||(_1.button==2)||(isc.Browser.isMac&&_1.ctrlKey)||(isc.Browser.isOpera&&(_1.ctrlKey&&_1.shiftKey))||((isc.Browser.isSafari&&(isc.Browser.safariVersion<125))&&_1.altKey)},isc.A.middleButtonDown=function isc_c_EventHandler_middleButtonDown(_1){return(_1||this.lastEvent).buttonNum==4},isc.A.useSyntheticRightButtonEvents=function isc_c_EventHandler_useSyntheticRightButtonEvents(){return isc.Browser.isOpera||(isc.Browser.isSafari&&(isc.Browser.safariVersion<125))},isc.A.getKeyEventCharacterValue=function isc_c_EventHandler_getKeyEventCharacterValue(_1){return(_1||this.lastEvent).characterValue},isc.A.getKeyEventCharacter=function isc_c_EventHandler_getKeyEventCharacter(_1){return String.fromCharCode(this.getKeyEventCharacterValue(_1))},isc.A.getKey=function isc_c_EventHandler_getKey(_1){return(_1||this.lastEvent).keyName||null},isc.A.getKeyName=function isc_c_EventHandler_getKeyName(_1){return this.getKey(_1)},isc.A.shiftKeyDown=function isc_c_EventHandler_shiftKeyDown(_1){return!!((_1||this.lastEvent).shiftKey)},isc.A.ctrlKeyDown=function isc_c_EventHandler_ctrlKeyDown(_1){return!!((_1||this.lastEvent).ctrlKey)},isc.A.altKeyDown=function isc_c_EventHandler_altKeyDown(_1){return!!((_1||this.lastEvent).altKey)},isc.A.metaKeyDown=function isc_c_EventHandler_metaKeyDown(_1){return!!((_1||this.lastEvent).metaKey)},isc.A.modifierKeyDown=function isc_c_EventHandler_modifierKeyDown(_1){if(isc.Browser.isMac)return!!((_1||this.lastEvent).metaKey);else return!!((_1||this.lastEvent).ctrlKey)},isc.A.$160v=function isc_c_EventHandler__matchesKeyIdentifier(_1,_2){_2=_2||this.lastEvent;var _3=_1;if(isc.isAn.Object(_1)){_3=_1.keyName;if(_1.shiftKey!=null&&!!_1.shiftKey!=this.shiftKeyDown(_2))return false;if(_1.ctrlKey!=null&&!!_1.ctrlKey!=this.ctrlKeyDown(_2))return false;if(_1.altKey!=null&&!!_1.altKey!=this.altKeyDown(_2))return false;if(_1.metaKey!=null&&!!_1.metaKey!=this.metaKeyDown(_2))return false} return _3==this.getKey(_2)},isc.A.getKeyEventProperties=function isc_c_EventHandler_getKeyEventProperties(_1){if(_1==null)_1=this.getWindow().event;var _2=this.lastEvent;_2.nativeKeyTarget=(_1.target||_1.srcElement);_2.keyTarget=this.$ke;if(isc.isA&&isc.DynamicForm&&isc.isA.DynamicForm(this.$ke)){var _3=isc.DynamicForm._getItemInfoFromElement(_2.nativeKeyTarget,_2.keyTarget);if(_3&&_3.item)_2.keyTarget=_3.item} _2.eventType=this.getKeyEventType(_1.type);if(_2.eventType==this.KEY_PRESS){_2.characterValue=this.$mv(_1)} var _4=this.determineEventKeyName(_1);if(_4!=null){_2.keyName=_4}else if(_2.eventType!=isc.EH.KEY_PRESS)delete _2.keyName;_2.nativeKeyCode=_1.keyCode;_2.shiftKey=(_1.shiftKey==true||(isc.Browser.isMoz&&_2.shiftKey));_2.ctrlKey=(_1.ctrlKey==true);_2.altKey=(_1.altKey==true);_2.metaKey=(_1.metaKey==true)},isc.A.getKeyEventType=function isc_c_EventHandler_getKeyEventType(_1){if(!_1)return;return this.$i7[_1]},isc.A.$mv=function isc_c_EventHandler__determineKeyEventCharacterValue(_1){if(isc.Browser.isIE)return(_1.keyCode||null);if(isc.Browser.isMoz){return(_1.which||null)} return(_1.which||_1.keyCode||null)},isc.A.determineEventKeyName=function isc_c_EventHandler_determineEventKeyName(_1){if(_1==null)return;var _2=_1.keyCode,_3=_1.which,_4=isc.EH,_5=_4.getKeyEventType(_1.type),_6=this.getWindow().event;if(_1.type==this.$689)return this.$688;if(isc.Browser.isIE){if(_5==_4.KEY_DOWN||_5==_4.KEY_UP){return _4.$iz[_2]} if(_5==_4.KEY_PRESS){var _7=_4.$85t[_4.$85t.length-1];if(_7!=null)return _7;var _8=_4.$ja[_2];if(!_8&&_6&&_6.ctrlKey){_8=isc.EH.$mw(_2)} return _8}}else if(isc.Browser.isMoz){if(_5==_4.KEY_DOWN||_5==_4.KEY_UP){return _4.$iz[_2]}else if(_5==_4.KEY_PRESS){if(_3==0&&_2!=0)return _4.$iz[_2];var _7=_4.$85t[_4.$85t.length-1];if(_7!=null)return _7;if(_2==0){return _4.$ja[_3]}else{return _4.$iz[_3]}}}else if(isc.Browser.isSafari){if(_5==_4.KEY_DOWN||_5==_4.KEY_UP){return _4.$iz[_2]} var _9=(_3!=null?_3:_2);if(_9!=null&&_9!=0){if(_6&&_6.ctrlKey){var _10=isc.EH.$ja[_9];if(_10==null){if((isc.Browser.isChrome&&isc.Browser.version<33)||(!isc.Browser.isChrome&&isc.Browser.version<6)) {if(_9==10)_10="Enter";else _10=isc.EH.$mw(_9)}else{_10=isc.EH.$mw(_9)}} return _10} var _10=isc.EH.$ja[_9];if(_10==null)_10=isc.EH.$jb[_9] return _10}else if(_5==this.KEY_PRESS){return null}}else{var _9=_3;if(_9==null||(_9==0&&_2))_9=_2 if(_9!=null)return isc.EH.$ja[_9]} isc.Log.logWarn("EventHandler.determineEventKeyName(): Unable to determine key for '"+_1.type+"' event. Returning null");return null},isc.A.$mw=function isc_c_EventHandler__getKeyNameFromCtrlCharValue(_1){if(_1==30)return"6";if(_1==31)return"-";return String.fromCharCode(_1+64)},isc.A.clearKeyEventProperties=function isc_c_EventHandler_clearKeyEventProperties(_1){var _2=this.lastEvent;delete _2.eventType;delete _2.nativeKeyTarget;delete _2.characterValue;delete _2.keyName;delete _2.shiftKey;delete _2.ctrlKey;delete _2.altKey;delete _2.metaKey;this.$85t.remove(_1)},isc.A.canvasDestroyed=function isc_c_EventHandler_canvasDestroyed(_1){if(this.clickMaskUp())isc.EH.maskTarget(_1);if(_1.$rq)isc.Page.clearEvent(_1.$nx,_1.$rq);if(this.mouseDownEvent&&this.mouseDownEvent.target==_1) this.mouseDownEvent.target=null;if(this.lastClickTarget==_1)this.lastClickTarget=null;if(this.lastEvent.target==_1)this.lastEvent.target=null;if(this.lastEvent.keyTarget==_1)this.lastEvent.keyTarget=null;if(this.$ke==_1)this.$ke=null;if(this.$k7==_1)this.$k7=null},isc.A.showClickMask=function isc_c_EventHandler_showClickMask(_1,_2,_3,_4){this.$118u=true;var _5;if(_2==true){_5=true;_2=isc.EH.SOFT}else if(_2==false||_2==null){_5=false;_2=isc.EH.HARD}else{_5=(_2!=isc.EH.HARD)} if(_3==null)_3=[];else if(!isc.isAn.Array(_3))_3=[_3] var _6=this,_7=_6.clickMaskRegistry,_8=_6.getFocusCanvas();if(this.logIsInfoEnabled("clickMask")){this.logInfo("showing click mask, action: "+_1+(_5?", autoHide true ":", autoHide false ")+(_4?", ID: "+_4:"")+", focusCanvas: "+_8,"clickMask")} var _9=_6.lastMoveTarget;if(_9){delete _6.lastMoveTarget;_6.handleEvent(_9,_6.MOUSE_OUT)} var _10={autoHide:_5,mode:_2,ID:(_4!=null?_4:"cm_"+_6.$j7++),$mx:{}};this.$my(_3,_10);var _11=_7.last();_7.add(_10);delete this.$118u;_10.clickAction=_1;if(_8!=null&&!_3.contains(_8)&&!_8.$1196) {_8.blur("showing clickMask");this.setMaskedFocusCanvas(_8,_10)}else if(_11!=null){this.setMaskedFocusCanvas(_11.$li,_10)} var _12=this.isHardMask(_10);if(_12){var _13=isc.timeStamp();var _14;if(_7.length>1){var _15=false,_16=[];for(var i=_7.length-2;i>=0;i--){_16.add(_7[i]);if(this.isHardMask(_7[i])){_15=true;break}} if(_15){for(var i=0;i<_16.length;i++){var _18=_16[i].$mx;if(_18){this.$mz(_18,_3,true,true)}}}else{_14=true;this.$mz(isc.Canvas._canvasList,_3,false,true)}}else{_14=true;this.$mz(isc.Canvas._canvasList,_3,false,true)}} if(this.maskNativeTargets){if(_11==null){this.showScreenSpan(_10)}else if(_12){this.$m0(_10.$mx)}} this.updateEventMasks();return _10.ID},isc.A.updateEventMasks=function isc_c_EventHandler_updateEventMasks(){var _1=this.clickMaskRegistry,_2=_1?_1[_1.length-1]:null;if(_2&&_2.autoHide){var _3={};isc.addProperties(_3,_2.$mx);this.showEventMasks(false,_3)}else{this.hideEventMasks()}},isc.A.$my=function isc_c_EventHandler__applyUnmaskedTargets(_1,_2){_1=this.$m1(_1,_2);for(var i=0;i<_1.length;i++){var _4=_1[i];if(_4==null)continue;_2.$mx[_4.getID()]=_4}},isc.A.$m1=function isc_c_EventHandler__getFullSetOfTargetsToUnmask(_1,_2){if(!_1||_1.length==0||!_2)return _1;for(var i=0;i<_1.length;i++) _1[i]=this.$m2(_1[i]);var _4=_2.$mx;if(!_2.autoHide&&_1.length>0){var _5=_1.length;for(var i=0;i<_5;i++){var _6=_1[i];if(_6.topElement&&!_4[_6.topElement.getID()]&&!_1.contains(_6.topElement)) {this.logWarn("Attempting to unmask target canvas:"+_6.getID()+" with respect to a hard click mask. This is not a top level Canvas - all ancestors of this Canvas will also be unmasked.","clickMask");_1.add(_6.topElement)}}} this.$m3(_1);this.$m4(_1);return _1},isc.A.$m4=function isc_c_EventHandler__combineDescendantsIntoList(_1){var _2=_1.length;for(var i=0;i<_2;i++){if(_1[i]==null)continue;this.$m5(_1[i],_1)}},isc.A.$m5=function isc_c_EventHandler__addDescendantsToList(_1,_2,_3){if(_3&&!_2.contains(_1))_2.add(_1);if(_1.children){for(var i=0;i<_1.children.length;i++){this.$m5(_1.children[i],_2,true)}} if(isc.DynamicForm&&isc.CanvasItem&&isc.isA.DynamicForm(_1)){var _5=_1.getItems()||[];for(var i=0;i<_5.length;i++){if(_5[i].containerWidget==_1)continue;if(isc.isA.CanvasItem(_5[i])&&isc.isA.Canvas(_5[i].canvas)){this.$m5(_5[i].canvas,_2,true)}}}},isc.A.$m3=function isc_c_EventHandler__combineTopPeersIntoList(_1){for(var i=0,_3=_1.length;i<_3;i++){var t=_1[i];if(t.parentElement&&_1.contains(t.parentElement))continue;this.$m6(_1[i],_1)}},isc.A.$m6=function isc_c_EventHandler__addPeersToList(_1,_2,_3){if(_3&&!_2.contains(_1))_2.add(_1);var _4=_1.peers;if(_4){for(var i=0;i<_4.length;i++){this.$m6(_4[i],_2,true)}} this.$m5(_1,_2)},isc.A.getClickMask=function isc_c_EventHandler_getClickMask(_1){var _2=this.clickMaskRegistry;if(isc.isAn.Object(_1)){return _2.contains(_1)?_1:null} return _2.find(this.$cp,_1)},isc.A.changeClickMaskID=function isc_c_EventHandler_changeClickMaskID(_1,_2){var _3=this.getClickMask(_1);if(_3)_3.ID=_2},isc.A.isHardMask=function isc_c_EventHandler_isHardMask(_1){if(!isc.isAn.Object(_1))_1=this.getClickMask(_1);return _1==null?false:(_1.mode==isc.EH.HARD)},isc.A.getTopHardMask=function isc_c_EventHandler_getTopHardMask(){var _1=this.clickMaskRegistry;for(var i=_1.length-1;i>=0;i--){if(this.isHardMask(_1[i]))return _1[i]} return null},isc.A.$mz=function isc_c_EventHandler__hardMaskTargets(_1,_2,_3,_4){if(!_1)return;if(_3){for(var _5 in _1){var _6=_1[_5];this.$m7(_6,_2,_4)}}else{for(var i=0;i<_1.length;i++){var _6=this.$m2(_1[i]);this.$m7(_6,_2,_4)}}},isc.A.$m7=function isc_c_EventHandler__hardMaskTarget(_1,_2,_3){if(!isc.isA.Canvas(_1)||_1.destroyed){isc.Log.logWarn("showClickMask - attempting to remove invalid object :"+isc.Log.echo(_1)+" from tab order","clickMask");return} if(_2&&_2[_1.getID()])return;if(_1.isDrawn()){if(_1.getParentCanvas()==null){if(!_3&&this.$m8&&this.$m8.isDrawn()&&_1.getZIndex()>=this.$m8.getZIndex()) {this.logDebug("lowering zIndex of: "+_1,"clickMask");_1.setZIndex(isc.EH.$m8.getZIndex()-1)}}} if(_1.accessKey!=null&&_1.isDrawn()){_1.$m9(null)}},isc.A.hideClickMask=function isc_c_EventHandler_hideClickMask(_1){if(this.logIsInfoEnabled("clickMask")) this.logInfo("hideClickMask called with ID: "+_1,"clickMask");var _2=this.clickMaskRegistry;if(_2.length==0)return;if(_1==null){this.hideClickMask(_2[0].ID) if(_2.length>0){this.hideClickMask()}else{this.logInfo("all clickmasks hidden","clickMask")} return} var _3=this.getClickMask(_1);if(_3==null)return;var _4=_2.indexOf(_3),_5=(_4==(_2.length-1)),_6=this.isHardMask(_3),_7=(_4>0?_2[_4-1]:null),_8,_9;if(this.logIsInfoEnabled("clickMask")){var _10="hiding clickMask ID: "+_1;if(_6)_10+="[autoHide:false]";else _10+="[autoHide:true]";if(_2.length<2){_10+=", all masks hidden"}else{_10+=" with index: "+_4+" of "+(_2.length-1)} this.logInfo(_10,"clickMask")} if(_6){_9=this.$na(_4,false);var _11=this.$na(_4,true);_8=(_11==null)} var _12=_3.$li,_13=_3.$mx;_2.remove(_3);if(_7!=null){if(_13!=null){if(_7.$mx==null)_7.$mx={};isc.addProperties(_7.$mx,_13)} if(_12&&!_7.$mx[_12.getID()]){this.setMaskedFocusCanvas(_12,_7)}} if(this.$m8){if(_5&&_7==null){if(isc.Browser.isIE){isc.Timer.setTimeout({target:this.$m8,methodName:"hide"},0)}else{this.$m8.hide()}}else if(_8){if(_9){var _13=isc.addProperties({},_9.$mx);var _14=_2.length-1,_15=_2[_14];while(_15!=_9){isc.addProperties(_13,_15.$mx);_14--;_15=_2[_14]} this.$m0(_13)}else this.$m8.sendToBack()} if(_6){var _16;if(_9!=null){_16=[];for(var i=_4-1;i>=0;i--){var _18=_2[i];_16.addList(isc.getKeys(_18.$mx));if(_18==_9)break}}else{_16=isc.Canvas._canvasList} this.$nb(_16,true)} if(_12!=null&&!_12.destroyed&&!this.targetIsMasked(_12)&&!_12.$167w) {if(this.logIsInfoEnabled("clickMask")){this.logInfo("focusing in "+_12+" on clickMask hide with current focusCanvas: "+isc.EH.$ke,"clickMask")} var _19=(isc.Browser.isIE&&this.lastEvent.eventType==this.MOUSE_DOWN) if(_19){this.$k7=_12}else{try{_12.$170m()}catch(e){}}}} this.updateEventMasks()},isc.A.$na=function isc_c_EventHandler__getNextHardMask(_1,_2){var _3=this.clickMaskRegistry;if(_2){for(var i=_1+1;i<_3.length;i++){if(this.isHardMask(_3[i]))return _3[i]}}else{for(var i=_1-1;i>=0;i--){if(this.isHardMask(_3[i]))return _3[i]}} return null},isc.A.$m2=function isc_c_EventHandler__getCanvas(_1){if(isc.isA.String(_1))return window[_1];return _1},isc.A.$nb=function isc_c_EventHandler__hardUnmaskTargets(_1,_2){if(!_1||_1.length==0)return;for(var i=0;i<_1.length;i++){var _4=this.$m2(_1[i]);if(!_4)continue;if(_4.accessKey!=null&&_4.isDrawn()){_4.$m9(_4.accessKey)} if(!_4.isDrawn()&&isc.isA.DynamicForm&&isc.isA.DynamicForm(_4)&&_4.items&&_4.items.length>0) {var _5=_4.items[0];if(_5.containerWidget!=_4)_4=_5.containerWidget} if(!_2&&_4.getParentCanvas()==null&&_4.getZIndex()<=this.$m8.getZIndex()&&_4!=this.$m8) {_4.setZIndex(this.$m8.getZIndex()+1);this.logDebug("raised above screenspan: "+_4,"clickMask")}}},isc.A.clickMaskUp=function isc_c_EventHandler_clickMaskUp(_1){var _2=this.clickMaskRegistry;if(_1==null)return(_2.length>0);else return(_2.find("ID",_1)!=null)},isc.A.getAllClickMaskIDs=function isc_c_EventHandler_getAllClickMaskIDs(){var _1=this.clickMaskRegistry;if(_1.length<1)return[];return _1.getProperty("ID")},isc.A.showScreenSpan=function isc_c_EventHandler_showScreenSpan(_1){if(!this.$m8){this.$m8=isc.ScreenSpan.create({ID:"isc_EH_screenSpan",pointersToThis:[{object:this,property:"$m8"}]},this.clickMaskProperties)} var _2=this.$m8;_2.show();if(!this.isHardMask(_1)){_2.sendToBack()}else{this.$m0(_1.$mx)}},isc.A.$m0=function isc_c_EventHandler__adjustSpanZIndex(_1){this.$nc=true;var _2;for(var _3 in _1){var _4=this.$m2(_3);if(!_4||_4.destroyed||_4.getParentCanvas()!=null){continue} if(_4.getMasterCanvas()&&_1[_4.getMasterCanvas().getID()])continue;_4.bringToFront();if(_2==null)_2=_4.getZIndex(true);if(_4.peers){for(var i=0;i<_4.peers.length;i++){if(!_4.peers[i].isDrawn())continue;_2=Math.min(_2,_4.peers[i].getZIndex(true))}}} if(_2!=null)this.$m8.setZIndex(_2-1);else this.$m8.bringToFront();this.$nc=false},isc.A.maskTarget=function isc_c_EventHandler_maskTarget(_1,_2){return this.maskTargets(_1,_2)},isc.A.maskTargets=function isc_c_EventHandler_maskTargets(_1,_2,_3){var _4=this.clickMaskRegistry;if(_1==null||_4.length==0)return;if(!isc.isAn.Array(_1))_1=[_1];else if(_1.length==0)return;var _5=(_2==null?_4[0]:(isc.isA.String(_2)?this.getClickMask(_2):_2));if(_5==null){this.logInfo("maskTargets called with invalid maskID - returning.","event") return} var _6=_1.length for(var i=0;i<_6;i++){var _8=_1[i];if(!_3&&_8.children!=null){this.$m5(_8,_1)} var _9=_8.parentElement;while(_9!=null){if(!_1.contains(_9)){_1.add(_9);if(_3)this.$m6(_9,_1)} _9=_9.parentElement} if(_3||!_9){this.$m6(_8,_1)} if(_9)this.$m6(_9,_1)} var _10=_4.indexOf(_5);var _11;for(var i=_10;i<_4.length;i++){_14=_4[i];if(this.isHardMask(_14))_11=i} var _12;if(_11!=null)_12=[];for(var n=0;n<_1.length;n++){var _8=_1[n];if(_8.hasFocus&&!_8.$1196)_8.blur();var _14,_11,_15=null;for(var i=_10;i<_4.length;i++){_14=_4[i];if(_14.$mx[_8.getID()]){_15=i;var _16=_14.$mx;if(_16[_8.getID()]===_8)delete _16[_8.getID()]}} if(_11!=null&&_15!=null&&(_11<=_15)){_12.add(_8)}} if(_11!=null)this.$mz(_12,null,false,false)},isc.A.addUnmaskedTarget=function isc_c_EventHandler_addUnmaskedTarget(_1,_2){return this.addUnmaskedTargets(_1,_2)},isc.A.addUnmaskedTargets=function isc_c_EventHandler_addUnmaskedTargets(_1,_2){if(isc.$nd&&this.$nc)return;var _3=this.clickMaskRegistry;if(_1==null||_3.length==0)return;if(!isc.isAn.Array(_1))_1=[_1];if(_1.length==0)return;var _4;if(_2==null){_4=_3.last()}else{if(isc.isA.String(_2))_4=this.getClickMask(_2);else _4=_2} if(_4==null){this.logInfo("addUnmaskedTargets called with invalid maskID - returning.","clickMask") return} var _5=_4;while(_5&&!this.isHardMask(_5)){_5=_3[_3.indexOf(_5)-1]} if(_5!=null){if(isc.$nd&&_1.length==1&&_1[0].topElement!=null){return}} _1=this.$m1(_1,_4);if(this.logIsDebugEnabled("clickMask")){this.logDebug("Added unmasked targets:"+_1.getProperty("ID")+" [+ decendants] to clickMask with ID: "+_4.ID,"clickMask")} var _6=false;for(var i=_3.indexOf(_4)+1;i<_3.length;i++){if(this.isHardMask(_3[i]))_6=true} for(var n=0;n<_1.length;n++){var _9=_1[n];if(_4.$mx==null)_4.$mx={};_4.$mx[_9.getID()]=_9} if(!_6){this.$nb(_1)}},isc.A.targetIsMasked=function isc_c_EventHandler_targetIsMasked(_1,_2,_3){var _4=this.clickMaskRegistry;if(_4.length==0)return false;if(_1==null)return true;var _5;if(_2==null)_5=_4.last();else if(isc.isA.String(_2))_5=_4.find("ID",_2);else _5=_2;if(!isc.isAn.Object(_5)){this.logWarn("EventHandler.targetIsMasked() passed invalid maskID:"+_2,"clickMask");return false} var _6=_4.indexOf(_5);var _7=false;for(var i=_6;i<_4.length;i++){if(i!=_6)_5=_4[i];if(_3){if(_5.mode==isc.EH.HARD||_5.mode==isc.EH.SOFT_CANCEL){_7=true}else{continue}} if(_5.$mx){if(_5.$mx[_1.getID()])return false;if(isc.DrawItem&&isc.isA.DrawItem(_1)){var _9=_1.drawPane;if(_9&&_9.getID&&_5.$mx[_9.getID()])return false} if(isc.isA.DynamicForm!=null&&isc.isA.DynamicForm(_1)){var _10=_1.$ne(isc.EH.lastEvent);if(_10&&_10.item&&_10.item.form==_1&&_10.item.containerWidget!=_1&&_5.$mx[_10.item.containerWidget.getID()])return false}}} return(_3&&!_7?false:true)},isc.A.clickMaskClick=function isc_c_EventHandler_clickMaskClick(_1){var _2=this.clickMaskRegistry.duplicate(),_3=_2.last();while(_3!=null&&(this.targetIsMasked(_1)||_1==this.$m8)){if(this.logIsInfoEnabled("clickMask")){this.logInfo("mouseDown on masked "+_1+(_3.clickAction!=null?" firing clickAction, ":"")+(_3.autoHide?"will hide mask"+(_3.mode==isc.EH.SOFT_CANCEL?" and block click":""):"will block click"))} var _4=(_3.mode!=isc.EH.SOFT);this.$lj(_3) if(_4)return false;_3=_2[_2.indexOf(_3)-1]} return true},isc.A.$lj=function isc_c_EventHandler__clickMaskClick(_1){var _2=_1.autoHide,_3=_1.clickAction;if(_2==true)this.hideClickMask(_1.ID);if(_3!=null)this.fireCallback(_3)});isc.B._maxIndex=isc.C+207;isc.EventHandler.captureEvents();isc.defineClass("MessagingDMISocket").addProperties({receiveChannel:null,defaultRequestTimeout:300000,requestReaperInterval:5000,sequence:0,pendingRequests:null,outstandingRequests:null,init:function(){this.Super("init");this.pendingRequests=[];this.outstandingRequests=[];this.ns.ClassFactory.addGlobalID(this);this.directBindingQueue=[];if(this.directBinding)this.directBindingOnly=true},bind:function(_1){var _2=this;this.logDebug("bind");if(!this.receiveChannel){this.logError("Unable to bind null receiveChannel");return} if(this.directBindingOnly){this.$159x=true;if(_1)this.fireCallback(_1);return} if(!isc.Messaging){this.logError("Messaging not available - unable to bind() socket");return} isc.Messaging.isRemoteDebug=this.isRemoteDebug;isc.Messaging.subscribe(this.receiveChannel,function(_3){_2.receive(_3)},function(){_2.$159x=true;if(_1)_2.fireCallback(_1)});delete isc.Messaging.isRemoteDebug},close:function(_1){if(!this.directBindingOnly)isc.Messaging.unsubscribe(this.receiveChannel);delete this.$159x;this.$139q();if(_1)this.fireCallback(_1)},$139q:function(){isc.Timer.clear(this.$139r);delete this.$139r},$139s:function(_1){this.$139q();var _2=this;this.$139r=isc.Timer.setTimeout(function(){_2.$139t()},_1);this.$139u=isc.timeStamp()+_1},$139t:function(){var _1=isc.timeStamp();var _2=-1;for(var i=0;i=_4.expiresAt){this.outstandingRequests.removeAt(i);if(this.logIsDebugEnabled()){this.logDebug("Reaped request: "+isc.echo(_4))}}else{i++;if(_2==-1)_2=_4.timeout;else if(_4.timeout<_2)_2=_4.timeout}} if(_2!=-1)this.$139s(_2)},getNextSequence:function(){this.sequence+=1;return this.sequence},send:function(_1,_2,_3,_4,_5){var _6=isc.addProperties({payload:_2,sequence:this.getNextSequence(),originChannel:this.receiveChannel,expectsReply:_3!=null},_4);var _7=isc.addProperties({sendChannel:_1,packet:_6,callback:_3,sequence:_6.sequence},_5);var _8=this;if(!this.$159x){this.pendingRequests.add(_7);this.bind(function(){while(_8.pendingRequests.length)_8.$139v(_8.pendingRequests.shift())});return} this.$139v(_7)},$139v:function(_1){if(this.logIsDebugEnabled()){this.logDebug("$139v: "+isc.echo(_1))} if(_1.callback){this.outstandingRequests.add(_1);var _2=isc.timeStamp();_1.sendTime=_2;if(_1.timeout==null)_1.timeout=this.defaultRequestTimeout;_1.expiresAt=_2+_1.timeout;if(this.$139u==null){this.$139s(_1.timeout)}else{if(this.$139u>_1.expiresAt)this.$139s(_1.timeout)}} if(this.directBindingOnly){var _3;try{this.directBinding.window.isc;_3=this.directBinding.getSocket(_1.sendChannel)}catch(e){return} if(!_3){this.logWarn("Unable to obtain direct binding socket for channel: "+_1.sendChannel);return} this.sendDirectBindingPacket(_1.packet,_3,this.directBinding.window)}else{isc.Messaging.isRemoteDebug=this.isRemoteDebug;isc.Messaging.send(_1.sendChannel,_1.packet,null,{sequenced:true,doNotTrackRPC:this.doNotTrackRPC});delete isc.Messaging.isRemoteDebug}},sendDirectBindingPacket:function(_1,_2,_3){_2.directBindingQueue.add({serializedPacket:isc.Comm.serialize(_1),originSocket:this,originWindow:window});try{var _4=_2.ID;_3.setTimeout("if (window."+_4+") "+_4+".processDirectBindingQueue()",0)}catch(e){}},processDirectBindingQueue:function(){while(this.directBindingQueue.length){var _1=this.directBindingQueue.shift();try{var _2=isc.$aq("return "+_1.serializedPacket)();this.delayCall("receive",[_2,_1.originSocket,_1.originWindow])}catch(e){}}},sendReply:function(_1,_2,_3,_4){if(!_1.expectsReply)return;var _5={payload:_2,originChannel:this.receiveChannel,sequence:this.getNextSequence(),inResponseTo:{originChannel:_1.originChannel,sequence:_1.sequence}} if(this.logIsDebugEnabled()){this.logDebug("sendReply to :"+_1.originChannel+": "+isc.echo(_5))} if(_3){try{_4.isc}catch(e){return} this.sendDirectBindingPacket(_5,_3,_4)}else{isc.Messaging.isRemoteDebug=this.isRemoteDebug;isc.Messaging.send(_1.originChannel,_5,null,{sequenced:true,doNotTrackRPC:this.doNotTrackRPC});delete isc.Messaging.isRemoteDebug}},packetReceived:function(_1,_2,_3){},receive:function(_1,_2,_3){var _4=_1;if(_4.inResponseTo){var _5;var _5=this.outstandingRequests.find("sequence",_4.inResponseTo.sequence);if(!_5){if(this.logIsWarnEnabled()){this.logWarn("Unable to find originating request for response packet: "+isc.echo(_4));this.logWarn("Outstanding requests: "+isc.echo(this.outstandingRequests))} return} if(this.logIsDebugEnabled()){this.logDebug("original request: "+isc.echo(_5));this.logDebug("callback args "+isc.echoFull([_4.payload]))} if(_5.callback)this.fireCallback(_5.callback,"payload",[_4.payload])}else{this.packetReceived(_4,_2,_3)}}});isc.defineClass("MessagingDMIClient").addProperties({socketConstructor:"MessagingDMISocket",getGUID:function(_1){if(!this.GUID)this.GUID=isc.Math.randomUUID();this.fireCallback(_1,"GUID",[this.GUID])},call:function(_1,_2,_3){var _4=this;var _5={};if(isc.isAn.Object(_1)){_5=isc.addProperties({},_1);_1=_5.methodName;_2=_5.args;_3=_5.callback} if(!_2)_2=[];if(!isc.isAn.Array(_2)){this.logError("Expected Array as second arg or props.args in MessagingDMIClient.call(), but got:"+isc.echo(_2));return} var _6=null;if(_3){_6=function(_10){_4.fireCallback(_3,"retVal",[_10])}} isc.addProperties(_5,{methodName:_1,args:_2});var _7=_5.packetProperties;var _8=_5.requestProperties;delete _5.packetProperties;delete _5.requestProperties;var _9=_5.sendChannel||this.sendChannel;delete _5.sendChannel;if(!_9){this.logError("Error in call() - unable to resolve sendChannel"+this.getStackTrace());return} if(!this.socket)this.connect(_9);this.socket.send(_9,_5,_6,_7,_8)},connect:function(_1,_2){var _3=this;if(_1.getServerProperties){this.directBinding=_1;_1=_1.getServerProperties()} if(isc.isA.String(_1)){this.serverProperties={GUID:_1,receiveChannel:_1};this.sendChannel=this.serverProperties.receiveChannel}else if(_1.receiveChannel){this.serverProperties=_1;this.sendChannel=this.serverProperties.receiveChannel} if(this.socket)this.socket.close();if(!this.receiveChannel){this.getGUID(function(_4){_3.receiveChannel=_4;_3.connect(_1,_2)});return} this.socket=isc.ClassFactory.getClass(this.socketConstructor).create({receiveChannel:this.receiveChannel,directBinding:this.directBinding},this.socketDefaults,this.socketProperties);if(_2)this.call("connect",null,_2)},disconnect:function(_1){var _2=this;if(!this.socket){if(_1)this.fireCallback(_1);return} var _3=function(_1){_2.socket.close(function(){delete _2.socket;delete _2.directBinding;if(_1)_2.fireCallback(_1)})} if(_1){this.call("disconnect",[],function(){_3(_1)})}else{_3()}},ping:function(_1,_2){var _3=_2?{timeout:_2}:null;this.call({methodName:"ping",callback:_1,requestProperties:_3})}});isc.defineClass("MessagingDMIServer").addProperties({socketConstructor:"MessagingDMISocket",init:function(){if(!this.visibleMethods)this.visibleMethods=[];this.window=window},getGUID:function(_1){if(!this.GUID)this.GUID=isc.Math.randomUUID();this.fireCallback(_1,"GUID",[this.GUID])},handlePacket:function(_1,_2,_3){if(this.logIsDebugEnabled()){this.logDebug("packetReceived: "+isc.echo(_1))} var _4=this;var _5=isc.addProperties({},_1.payload);_5.callback=function(_6){if(this.logIsDebugEnabled)_4.logDebug("invocation of: "+_1.payload.methodName+" returned");_4.socket.sendReply(_1,_6,_2,_3)};this.call(_5)},getServerProperties:function(){return{GUID:this.GUID,receiveChannel:this.receiveChannel,discoverableOnChannel:this.discoverableOnChannel,generatedDate:new Date(),userAgent:navigator.userAgent,platform:navigator.platform,vendor:navigator.vendor,visibleMethods:this.visibleMethods}},getSocket:function(_1){if(this.sockets)return this.sockets.find("receiveChannel",_1);return null},start:function(_1){var _2=this;if(this.sockets){this.logWarn("start() called when socket is connected - restarting");this.stop()} if(!this.receiveChannel){this.getGUID(function(_6){_2.receiveChannel=_6;_2.start(_1)});return} this.sockets=[];this.socket=isc.ClassFactory.getClass(this.socketConstructor).create({receiveChannel:this.receiveChannel,packetReceived:function(_6,_7,_8){_2.handlePacket(_6,_7,_8)}},this.socketDefaults,this.socketProperties);this.sockets.add(this.socket);if(this.discoverableOnChannel){this.discoverySocket=isc.ClassFactory.getClass(this.socketConstructor).create({receiveChannel:this.discoverableOnChannel,packetReceived:function(_6,_7,_8){_2.handlePacket(_6,_7,_8)}},this.socketDefaults,this.socketProperties);this.sockets.add(this.discoverySocket)} var _2=this;var _3=0;for(var i=0;i1)_3[i]._queueIndex=i} _2.rpcs=_3;isc.debugMaster.call("isc.RPCTracker.updateTransactionRecord",[_2]);_1.pushedToDebugMaster=true},isc.A.rpcToRecord=function isc_DebugTarget_rpcToRecord(_1,_2,_3){var _4=_2._dsRequest||_2.$374;var _5="RPCRequest";if(_4!=null)_5="DSRequest";else if(_2.data&&_2.data.is_ISC_RPC_DMI)_5="RPC DMI";else if(_2.wsOperation)_5="WSRequest";var _6;if(_2.operationType){_6=_2.operationType;if(_2.operationId){_6+="<"+_2.operationId+">"} if(_2.wsOperation)_6+="["+_2.wsOperation+"]"}else if(_2.wsOperation){_6=_2.wsOperation}else{if(_2.data&&_2.data.methodName)_6=_2.data.methodName;else _6="RPC"} var _7;if(_2.dataSource){_7=_2.dataSource}else{if(_2.data&&_2.data.appID)_7=_2.data.appID+"/"+_2.data.className} var _8=_2.componentId||"",_9=_2.componentContext;if(_9){_8+=" <"+_9+">"} var _10=_1.mergedActionURL?_1.mergedActionURL:_2.actionURL;if(_1.isProxied)_10=_1.proxiedURL;if(_1.allClientOnly)_10="[client only]";var _11={url:_10,transactionNum:_1.transactionNum,type:_5,ds:_7,operationType:_6,componentId:_8,transport:_2.transport,httpMethod:_2.httpMethod,timeSent:new Date(_1.sendTime),proxied:_2.isProxied,timeout:_1.timeout,xhrData:_1.xhrData,xhrHeaders:_1.xhrHeaders,callStack:_2.$138k,clientTiming:_2.clientTiming};if(_3&&_3.clientOnlyData){_11.clientOnlyData=isc.JSON.encode(_3.clientOnlyData,{prettyPrint:true,strictQuoting:false,serializeInstances:"short",skipInternalProperties:true})} if(_11.transport=="xmlHttpRequest"||_11.transport=="hiddenFrame"){var _12=["actionURL","showPrompt","prompt","transport","useSimpleHttp","promptStyle","timeout","params","httpMethod","contentType","httpHeaders","ignoreTimeout","sendNoQueue","paramsOnly","bypassCache","isProxied"];if(_11.type=="RPCRequest"){_12.addList(["callback","willHandleError","evalResult","evalVars","serverOutputAsString","containsCredentials","clientContext","internalClientContext"])} _12.add("data");var _13=isc.applyMask(_2,_12);_11.decoded=isc.JSON.encode(_13,{prettyPrint:true,serializeInstances:"short"})} var _14=_2._dsRequest||_2.$374;if(_14){var _12=["dataSource","operationType","operationId","componentId","data","startRow","endRow","sortBy","textMatchStyle","resultSet","resultTree","parentNode","callback","willHandleError","showPrompt","prompt","oldValues","requestId","clientContext","internalClientContext"];var _15=(_14.operation&&_14.operation.source=="auto");var _16={};for(var i=0;i<_12.length;i++){var _18=_12[i];if(_18=="operationId"&&_15)continue;var _19=_14[_18];if(_19==null)continue;if(_18=="parentNode"){_16[_18]=this.getShallowData(_19)}else if(_18=="clientContext"||_18=="internalClientContext"){var _20=_16[_18]={};for(var _21 in _19){_20[_21]=this.getShallowData(_19[_21])}}else{_16[_18]=_19}} var _22=["originalData","operation","unconvertedDSRequest"];var _23=isc.getKeys(_14);for(var i=0;i<_23.length;i++){var _18=_23[i];if(_12.contains(_18))continue;if(_22.contains(_18))continue;var _19=_14[_18];if(_19==null)continue;if(!isc.DS.isSimpleTypeValue(_19)&&!isc.isAn.Instance(_19))continue;_16[_18]=_19} var _24=isc.JSON.encode(_16,{prettyPrint:true,strictQuoting:false,serializeInstances:"short",skipInternalProperties:true});_11.dsReqJSON=_24} if(_3){var _12=["operationId","transactionNum","httpResponseCode","transport","status","clientOnly","httpHeaders","isStructured","isDSResponse","invalidateCache","startRow","endRow","totalRows","clientTiming","timing"];var _25=isc.applyMask(_3,_12);_11.rpcResponseRecord=isc.JSON.encode(_25,{prettyPrint:false,strictQuoting:false,serializeInstances:"short",skipInternalProperties:false})} if(_3){isc.addProperties(_11,{status:_3.status,httpCode:_3.httpResponseCode,responseReceived:new Date(_1.receiveTime)})}else if(_1.cancelled){isc.addProperties(_11,{status:"CANCELLED"})} return _11},isc.A.getShallowData=function isc_DebugTarget_getShallowData(_1){if(isc.DS.isSimpleTypeValue(_1))return _1;var _2={};for(var _3 in _1){var _4=_1[_3];if(_4==null)continue;if(isc.DS.isSimpleTypeValue(_4)){_2[_3]=_4}else{_2[_3]={output:isc.echoLeaf(_4),$eu:function(){return this.output}}}} return _2},isc.A.updateStats=function isc_DebugTarget_updateStats(_1){if(!isc.debugMaster)return;if(isc.$gd)return;var _2=isc.Canvas;var _3,_4;if(_1==null){var _5=isc,_2=_5.Canvas,_6=_2._stats,_7=_5.EH.lastTarget,_8=_5.EH.getFocusCanvas();_4={draws:_6.draws,clears:_6.clears,redraws:_6.redraws,destroys:_6.destroys,count:_2._canvasList.length-_2._iscInternalCount,currentCanvas:_7!=null?_7.getID():"",currentFocusCanvas:_8!=null?_8.getID():""}}else if(_1==this.$f8){_3=_2._canvasList.length-_2._iscInternalCount}else if(_1){_3=_2._stats[_1]} if(_4){isc.debugMaster.call("staticForm.setValues",[_4])}else{isc.debugMaster.call("staticForm.setValue",[_1,_3])}},isc.A.displayEventTarget=function isc_DebugTarget_displayEventTarget(){if(!isc.debugMaster)return;var _1=isc.EH.lastTarget?isc.EH.lastTarget.getID():"";if(_1==this.$ge)return;this.$ge=_1;isc.debugMaster.call("staticForm.setValue",["currentCanvas",_1]);var _2=isc.EH.lastEvent.nativeTarget;var _3=(_2?(_2.id||_2.ID||_2.tagName):'none') isc.debugMaster.call("staticForm.setValue",["nativeTarget",_3])},isc.A.displayFocusTarget=function isc_DebugTarget_displayFocusTarget(){if(!isc.debugMaster)return;var _1=isc.EH.getFocusCanvas(),_2=_1?_1.getID():"";if(_2==this.$gf)return;this.$gf=_2;isc.debugMaster.call("staticForm.setValue",["currentFocusCanvas",_2])},isc.A.displayMouseDownTarget=function isc_DebugTarget_displayMouseDownTarget(){if(!isc.debugMaster)return;var _1=isc.EH.mouseDownEvent.target,_2=_1?_1.getID():"";isc.debugMaster.call("staticForm.setValue",["lastMouseDown",_2]);if(isc.AutoTest!=null&&isc.Log.showLocatorOnMouseDown){var _3=isc.AutoTest.getLocator();isc.debugMaster.call("staticForm.setValue",["autoTestLocator",_3||"none"])}},isc.A.showFocus=function isc_DebugTarget_showFocus(){isc.DebugFocus.showFocus()},isc.A.clearFocus=function isc_DebugTarget_clearFocus(){isc.DebugFocus.clearFocus()},isc.A.debugDisable=function isc_DebugTarget_debugDisable(_1){if(isc.debugMaster){isc.debugMaster.disconnect();this.ignore(isc.Log,"addToMasterLog");this.ignore(isc.EventHandler,"getEventTargetCanvas");this.ignore(isc.EventHandler,"_focusInCanvas");this.ignore(isc.EventHandler,"doHandleMouseDown");isc.debugMaster=null} if(_1)_1()},isc.A.debugEnable=function isc_DebugTarget_debugEnable(_1,_2){var _3=this;this.debugDisable();var _4=isc.MessagingDMIClient.create({socketProperties:{doNotTrackRPC:true,isRemoteDebug:true}});if(_1==null){_1=isc.Log.logViewer._logWindow.debugMaster} _4.connect(_1,function(){if(_2)_3.fireCallback(_2,"props",[_3.getProps()]);_4.call("clearLog");_4.call("addToLog",[isc.Log.getMessages()]);isc.debugMaster=_4;_3.updateStats();if(isc.RPCManager)isc.RPCManager.pushBufferedTransactionsToDebugMaster();if(isc.xml&&isc.xml.xmlResponses){_4.call("window.updateCommWatcher",[isc.xml.xmlResponses])} _3.observe(isc.Log,"addToMasterLog","isc.Log.logViewer.addToLog(message)");_3.observe(isc.EventHandler,"getEventTargetCanvas","observer.displayEventTarget()");_3.observe(isc.EventHandler,"_focusInCanvas","observer.displayFocusTarget()");_3.observe(isc.EventHandler,"doHandleMouseDown","observer.displayMouseDownTarget()")})},isc.A.getProps=function isc_DebugTarget_getProps(){var _1=this.getGlobalLogCookie();if(!_1)_1={};var _2={isc_version:isc.version,isc_Browser_isIE:isc.Browser.isIE,isc_Browser_isMoz:isc.Browser.isMoz,isc_Browser_isSGWT:isc.Browser.isSGWT,isc_RPCManager:isc.RPCManager!=null,isc_AutoTest:isc.AutoTest!=null,isc_Log_showLocatorOnMouseDown:isc.Log.showLocatorOnMouseDown,isc_xml:isc.xml!=null,globalLogCookie:_1,_includeOriginalMozStack:window._includeOriginalMozStack,_remoteControlEnabled:isc.Log.logViewer._remoteControlEnabled};return _2},isc.A.evalJSWithDevConsoleVars=function isc_DebugTarget_evalJSWithDevConsoleVars(_1,_2,_3){var _4=isc.Canvas._canvasList[0];_4=window[_2.watchedId];isc.addProperties(_2,{watched:_4,time:function(_5,_6){isc.Log.timeMethod(_5,_6)},trace:function(_5,_6){isc.Log.traceMethod(_5,_6)},traceCall:function(_5,_6){isc.Log.traceMethod(_5,_6,true)},timeExpression:function(_1,_5,_6){isc.Log.timeExpression(_1,_5,_6)},log:function(_5,_6){return isc.Log.logWarn.call(isc.Log,_5,_6)},echo:function(_5){return isc.Log.echo(_5)},echoAll:function(_5){return isc.Log.echoAll(_5)},echoFull:function(_5){return isc.Log.echoFull(_5)}});if(_3){isc.Log.logViewer.delayCall("evaluate",[_1,_2],3000)}else{isc.Log.logViewer.evaluate(_1,_2)}},isc.A.browserEvalXML=function isc_DebugTarget_browserEvalXML(_1){if(isc.DS.get("Canvas")==null){isc.Log.logWarn("Browser eval XML: couldn't find schema for Canvas, please load it using the jsp tag")} isc.XMLTools.toComponents(_1)},isc.A.browserXMLToJS=function isc_DebugTarget_browserXMLToJS(_1){if(isc.DS.get("Canvas")==null){isc.Log.logWarn("Browser eval XML: couldn't find schema for Canvas, please load it using the jsp tag")} var _2=isc.XMLTools.toComponents(_1,{propertiesOnly:true});isc.Log.logInfo("Browser xmlToJS: \n\n"+isc.echoFull(_2))},isc.A.literalTextAsCanvasContents=function isc_DebugTarget_literalTextAsCanvasContents(_1){isc.Canvas.create({ID:"literalHTMLCanvas",autoDraw:true,contents:_1,backgroundColor:"gray"}) window.literalHTMLCanvas.bringToFront()},isc.A.getVersionCanvasContents=function isc_DebugTarget_getVersionCanvasContents(_1){var _2="SmartClient Version: ${isc.version} ";if(["Eval","PNC","IDev"].contains(isc.licenseType)){if(isc.licenseType=="Eval"){_2+="(expires ${isc.expirationDate})"}else{_2+="(built ${isc.buildDate})"} _2+=" Licensed to: ${isc.licenseCompany} (#${isc.licenseSerialNumber})"}else{_2+="(built ${isc.buildDate})"} _1(_2.evalDynamicString(this))},isc.A.toggleRuler=function isc_DebugTarget_toggleRuler(){if(window.isc_dev_ruler){window.isc_dev_ruler.destroy();return} isc.Canvas.create({ID:"isc_dev_ruler",left:isc.Page.getScrollLeft()+5,top:isc.Page.getScrollTop()+5,overflow:"hidden",canDragResize:true,dragAppearance:"target",canDragReposition:true,backgroundImage:"[SKIN]/grid.gif",backgroundColor:"powderBlue",opacity:75,moved:function(){this.markForRedraw()},getInnerHTML:function(){var _1=this.getWidth()+"w x "+this.getHeight()+"h
at: "+this.getPageLeft()+","+this.getPageTop();return""+_1+""},autoDraw:true});window.isc_dev_ruler.bringToFront()},isc.A.getCanvasList=function isc_DebugTarget_getCanvasList(_1,_2,_3,_4){var _5=isc.Canvas._canvasList,_6=[],_7={};var _8=[,"w x ",,"h"];var _9=[,", "];for(var i=0;i<_5.length;i++){var _11=_5[i];if(isc.Page._eT==_11)continue;else if(isc.Log._hiliteCanvas==_11)continue;else if(!_3&&!_11.isVisible())continue;else if(!_2&&!_11.isDrawn())continue;else if(_11._generated&&!_1)continue;var _12={id:_11.getID(),theClass:_11.Class,drawn:_11.isDrawn(),visible:_11.isVisible(),zIndex:_11.getZIndex(),pageLeft:_11.getPageLeft(),pageTop:_11.getPageTop(),overflow:_11.overflow,hasChildren:_7[_11.getID()]};_8[0]=_11.getWidth();_8[2]=_11.getHeight();_12.size=_8.join(isc.emptyString);_8[0]=_11.getVisibleWidth();_8[2]=_11.getVisibleHeight();_12.drawnSize=_8.join(isc.emptyString);try{_9[0]=_12.pageLeft;_9[2]=_12.pageTop;_12.position=_9.join(isc.emptyString);_12.positionSortField=_12.pageLeft*100000+_12.pageTop}catch(e){_12.position="Error: "+e} var _13=_11;while(_13&&(_13.masterElement||_13.parentElement)){_13=(_13.masterElement||_13.parentElement);if(_1||!_13._generated)break} if(_13!=_11){var _14=_7[_13.getID()];if(_14)_14.hasChildren=true;else _7[_13.getID()]=true;_12.treeParentId=_13.ID} _7[_11.ID]=_12;_6.add(_12)} _4(_6)},isc.A.measureGC=function isc_DebugTarget_measureGC(){isc.debugMaster.call("addToLog",["GC Time: "+isc.Log.getGCTime().toFixed(2)+"ms"])},isc.A.getDefaultLogCategories=function isc_DebugTarget_getDefaultLogCategories(){return this.DEFAULT_CATEGORIES.getProperty("name")},isc.A.getLogCategories=function isc_DebugTarget_getLogCategories(_1,_2){var _3=this.getDefaultLogCategories();var _4=isc.Log.getLogPriorities(_1);for(var _5 in _4){if(_3.contains(_5))continue;_3[_3.length]=_5} if(_2)isc.Class.fireCallback(_2,"categories",[_3]);return _3},isc.A.getLogCategoryData=function isc_DebugTarget_getLogCategoryData(_1,_2){var _3=(_1?isc.Log.getLogPriorities(_1,true):null),_4=this.getLogCategories(_1),_5=isc.Log;var _6=[],_7;for(var i=0;i<_4.length;i++){var _9=_4[i];if(_1){if(_9==isc.Log._allCategories)continue;else if(_9==isc.Log.$fs){_7=window[_1].getDefaultLogPriority();continue}} var _10=_5.getPriority(_9,_1);var _11=this.DEFAULT_CATEGORIES.findIndex("name",_9);var _12;if(_11!=-1)_12=this.DEFAULT_CATEGORIES[_11].description;_6.add({category:_9,description:_12,priority:_10||_5.defaultPriority,custom:_3&&_3[_9]!=null})} _6.add({category:"[default]",priority:(_7||_5.defaultPriority),custom:(_7?true:false)});this.fireCallback(_2,"categoryData",[_6])},isc.A.generateLogMenuItems=function isc_DebugTarget_generateLogMenuItems(_1,_2,_3){var _4=this.getLogCategories(),_5=[],_6=[];var _7=Math.min(_4.length,_2);for(var i=0;i<_7;i++){var _9=_4[i];var _10=isc.Log.getPriority(_9,_1);if(_10==null)_10=isc.Log.getDefaultPriority();_6.add({title:_9,selectedLevel:_10,category:_9,addPrioritiesSubmenu:true,enableIf:"menu.allCategoriesOverride() == null"})} _6.add({isSeparator:true});_6.add({title:"[default]",category:"$fs",addPrioritiesSubmenu:true,selectedLevel:isc.Log.getDefaultPriority(_1),enableIf:"menu.allCategoriesOverride() == null"}) _6.add({title:"More...",click:"menu.setCustomLogPriorities()"});_5=_6.duplicate();_6=_1!=null?_5:_6;for(var i=0;i<_6.length;i++){var _11=_6[i],_9=_11.category;if(_9){var _12=isc.Log.getPriority(_9,_1),_13=(_12>isc.Log.WARN?"color:blue;":null);if(_13!=_11.cssText){_11.cssText=_13}}} this.fireCallback(_3,"menuItems",[_6])},isc.A.getGlobalLogCookie=function isc_DebugTarget_getGlobalLogCookie(_1){var _2=isc.LogViewer.getGlobalLogCookie();if(_2==null)_2={};_2.priorityDefaults=isc.Log.getLogPriorities();_2.defaultPriority=isc.Log.defaultPriority;if(_1)this.fireCallback(_1,"globalLogCookie",[_2]);return _2},isc.A.set=function isc_DebugTarget_set(_1,_2,_3){var _1=isc.Class.globalEvalWithCapture(_1+"="+_2);if(_3)this.fireCallback(_3,"lValue",[eval(_1)])},isc.A.get=function isc_DebugTarget_get(_1,_2){this.fireCallback(_2,"value",[eval(_1)])});isc.B._maxIndex=isc.C+30;isc.defineClass("DebugFocus").addClassProperties({hideTimeout:2000,opacityMax:75,opacityMin:50,oscillationFrequency:2000,showFocus:function(){if(this.$ke&&this.$ke.isVisible()){this.clearHideTimer();this.setHideTimer();return} if(!this.$ke){this.$ke=isc.Canvas.create({width:"100%",height:"100%",overflow:"hidden",backgroundColor:"#4169E1",hideUsingDisplayNone:true})} var _1=this.$ke;_1.setOpacity(this.opacityMin);_1.show();_1.bringToFront();this.setHideTimer();this.startFadeInAnimation()},clearFocus:function(){this.clearHideTimer();this.hideFocus()},startFadeOutAnimation:function(){this.$ke.cancelAnimation(this.fadeAnimationID);this.fadeAnimationID=this.$ke.animateFade(this.opacityMin,"isc.DebugFocus.startFadeInAnimation()",this.oscillationFrequency/2,"smoothStart")},startFadeInAnimation:function(){this.$ke.cancelAnimation(this.fadeAnimationID);this.fadeAnimationID=this.$ke.animateFade(this.opacityMax,"isc.DebugFocus.startFadeOutAnimation()",this.oscillationFrequency/2,"smoothStart")},hideFocus:function(){if(this.$ke!=null){this.$ke.cancelAnimation(this.fadeAnimationID);this.$ke.hide()}},clearHideTimer:function(){if(this.$144p!=null){isc.Timer.clearTimeout(this.$144p);delete this.$144p}},setHideTimer:function(){this.$144p=isc.Timer.setTimeout("isc.DebugFocus.hideFocus()",this.hideTimeout)}});isc.defineClass("RemoteDebug").addClassProperties({isEnabled:false,modulesDir:"system/development/",getUniqueChannelName:function(){return navigator.userAgent},conditionallyEnable:function(){this.logDebug("conditionally enabling debug");if(window.isc_remoteDebug&&isc.Browser.isMobile){this.enable()}else if(isc.params["isc_remoteDebug"]=="true"){this.enable()}},requiredModules:["RealtimeMessaging"],loadRequiredModules:function(_1){var _2=this;isc.FileLoader.ensureLoaded(function(){var _3=isc.FileLoader.modulesDir;isc.FileLoader.modulesDir=_2.modulesDir isc.FileLoader.loadModules(_2.requiredModules,function(){isc.FileLoader.modulesDir=_3;_2.fireCallback(_1)});isc.FileLoader.modulesDir=_3})},enable:function(_1){if(this.isEnabled){_2.fireCallback(_1)} if(!isc.hasOptionalModules("SCServer")){alert("Remote debugging requires a Pro or better license.");return} if(!isc.Log.logViewer)isc.Log.logViewer=isc.LogViewer.create();var _2=this;this.loadRequiredModules(function(){isc.debugTarget=isc.DebugTarget.create({});isc.debugTarget.start(function(){isc.debugTarget.sendTargetAvailableNotify();_2.isEnabled=true;_2.logInfo("Remote debug enabled");_2.fireCallback(_1)})})},enableLocal:function(_1){if(isc.debugTarget){isc.debugTarget.debugDisable()} var _2=this;this.isEnabled=false;isc.debugTarget=isc.DebugTarget.create({socketProperties:{directBindingOnly:true}});isc.debugTarget.start(function(){_2.fireCallback(_1)})}});if(isc.Page.isLoaded()){isc.RemoteDebug.conditionallyEnable()}else{isc.Page.setEvent("load","isc.RemoteDebug.conditionallyEnable()",isc.Page.FIRE_ONCE)} isc.ClassFactory.defineClass("Element",null,null,true);isc.A=isc.Element;isc.A.vendorCSSPrefix=(isc.Browser.isMoz?"-moz-":isc.Browser.isChrome?"-webkit-":isc.Browser.isSafari?"-webkit-":isc.Browser.isOpera?"-o-":isc.Browser.isIE?"-ms-":"");isc.A.vendorStylePrefix=(isc.Browser.isMoz?"Moz":isc.Browser.isChrome?"Webkit":isc.Browser.isSafari?"Webkit":isc.Browser.isOpera?"O":isc.Browser.isIE?"ms":"");isc.A=isc.Element;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$wq=window.isc_insertAfterBodyStart;isc.A.$wr="isc_global_insertion_marker";isc.A.$n7="afterBegin";isc.A.$n9="afterEnd";isc.A.$n6="beforeBegin";isc.A.$n8="beforeEnd";isc.A.$1434=("boxSizing"in document.documentElement.style?"box-sizing":isc.Element.vendorCSSPrefix+"box-sizing");isc.A.$1435=("boxSizing"in document.documentElement.style?"boxSizing":isc.Element.vendorStylePrefix+"BoxSizing");isc.A.$84e=(isc.Browser.isIE&&!isc.Browser.isIE9)||isc.Browser.isOpera;isc.A.$w2="borderLeftWidth";isc.A.$w3="borderTopWidth";isc.A.$oi="marginLeft";isc.A.$ok="marginTop";isc.A.$27r="none";isc.A.$808="$808";isc.A.$809="$809";isc.A.$jj="BODY";isc.A.$jk="HTML";isc.A.$118s=!isc.Browser.isIE&&!isc.Browser.isOpera;isc.A.cacheOffsetCoords=true;isc.A.$95b=(isc.Browser.isMoz||(isc.Browser.isIE&&isc.Browser.minorVersion<5.5));isc.A.$95c=(isc.Browser.isIE9&&isc.Browser.isStrict);isc.A.$nk={};isc.A.$419={border:"borderStyle",borderWidth:"borderStyle",borderLeft:"borderLeftStyle",borderRight:"borderRightStyle",borderTop:"borderTopStyle",borderBottom:"borderBottomStyle",borderLeftWidth:"borderLeftStyle",borderRightWidth:"borderRightStyle",borderBottomWidth:"borderBottomStyle",borderTopWidth:"borderTopStyle"};isc.A.$nl={};isc.A.$39=";";isc.A.$159t=(!("transform"in document.documentElement.style)?isc.Element.vendorCSSPrefix+"transform":"transform");isc.A.$1388=(!("transformOrigin"in document.documentElement.style)?isc.Element.vendorCSSPrefix+"transform-origin":"transform-origin");isc.A.$139a=(!("transform"in document.documentElement.style)?isc.Element.vendorStylePrefix+"Transform":"transform");isc.A.$139b=(!("transformOrigin"in document.documentElement.style)?isc.Element.vendorStylePrefix+"TransformOrigin":"transformOrigin");isc.B.push(isc.A.get=function isc_c_Element_get(_1,_2){_2=_2||this.getDocument();if(isc.Browser.isDOM)return _2.getElementById(_1)},isc.A.$mk=function isc_c_Element__getElementFromSelection(_1){if(!_1)_1=document;if(isc.Browser.$120h){var _2=_1.getSelection();if(!_2.rangeCount)return null;var _3=_2.getRangeAt(0).commonAncestorContainer;while(_3!=null&&_3.nodeType!=1){_3=_3.parentNode} return _3}else if(isc.Browser.isIE){var _2=_1.selection;try{var _4=_2.type.toLowerCase()}catch(e){return null} var _5=(_4=="text"||_4=="none");if(!_2)return null;if(_5){var _6;try{_6=_2.createRange()}catch(e){} return _6?_6.parentElement():null}else{var _6=_2.createRange(),_7;for(var i=0;i<_6.length;i++){if(!_7){_7=_6(i).parentElement}else{while(!_7.contains(_6(i))){_7=_7.parentElement}}} return _7}}},isc.A.hasClassName=function isc_c_Element_hasClassName(_1,_2){if(!_2)return false;var _3=_1.className,_4=_3.indexOf(_2);while(_4!=-1){if(_4==0||_3[_4-1]==' '){_4+=_2.length;if(_4==_3.length||_3[_4]==' '){return true}}else _4+=_2.length;if(_4>=_3.length)break;_4=_3.indexOf(_2,_4)} return false},isc.A.forEachDescendantHavingClass=function isc_c_Element_forEachDescendantHavingClass(_1,_2,_3){if(_1==null||!_2)return;if(_1.querySelectorAll){var _4=_1.querySelectorAll("."+_2),_5=_4.length;for(var _6=_5;_6>0;--_6){_3(_4[_6-1])}}else{var _7=_1.childNodes,_5=_7.length;for(var _6=_5;_6>0;--_6){var _8=_7[_6-1];if(_8.nodeType!=1)continue;this.forEachDescendantHavingClass(_8,_2,_3);if(this.hasClassName(_8,_2))_3(_8)}}},isc.A.findAttribute=function isc_c_Element_findAttribute(_1,_2,_3){if(!_1)return null;if(_1[_2]==_3||(_1.getAttribute&&_1.getAttribute(_2)==_3)){return _1} var _4=_1.childNodes;for(var i=0;i<_4.length;i++){var _6=this.findAttribute(_4[i],_2,_3);if(_6)return _6} return null},isc.A.evaluateXPath=function isc_c_Element_evaluateXPath(_1,_2,_3,_4){var _5;if(_2==null){_5=_2=document}else if(_2.nodeType==9){_5=_2}else{_5=_2.ownerDocument} var _6=function(_12){var _7=_3[_12];return _7==null?null:String(_7)};if(_4==null)_4=9;var _8=_5.evaluate(_1,_2,_3==null?null:_6,_4,null);switch(_4){case 0:break;case 1:return _8.numberValue;case 2:return _8.stringValue;case 3:return _8.booleanValue;case 4:case 5:return _8;case 6:case 7:var _9=_8.snapshotLength;var _10=new Array(_9);for(var i=0;i<_9;++i){_10[i]=_8.snapshotItem(i)} return _10;case 8:case 9:return _8.singleNodeValue} return _8},isc.A.getInsertionMarkerHTML=function isc_c_Element_getInsertionMarkerHTML(){return""},isc.A.getInsertionMarker=function isc_c_Element_getInsertionMarker(){return document.getElementById(this.$wr)},isc.A.createAbsoluteElement=function isc_c_Element_createAbsoluteElement(_1,_2){var _3=_2||this.getWindow(),_4=this.getDocumentBody(true);if(_4==null&&!isc.Element.noBodyTagMessageShown){isc.Element.noBodyTagMessageShown=true;var _5="Error: Attempt to write content into a page outside the BODY tag. Isomorphic SmartClient requires this tag be present and all widgets be written out inside it.\rPlease ensure your file has a BODY tag and any code to draw SmartClient widgets is enclosed in this tag.";this.logError(_5);return} if(this.$wq){return isc.Element.insertAdjacentHTML(_4,this.$n7,_1,true)} if(isc.Browser.isIE){if(!this.$w7){if(_4.childNodes.length<2){isc.Element.insertAdjacentHTML(_4,this.$n7,this.getInsertionMarkerHTML())}else{var _6=_4.lastChild;while(_6&&_6.nodeType==3)_6=_6.previousSibling;if(_6!=null){isc.Element.insertAdjacentHTML(_6,this.$n6,this.getInsertionMarkerHTML())}else{isc.Element.insertAdjacentHTML(_4,this.$n7,this.getInsertionMarkerHTML())}} this.$w7=this.getInsertionMarker()} return isc.Element.insertAdjacentHTML(this.$w7,this.$n9,_1,true)}else{return isc.Element.insertAdjacentHTML(_4,this.$n8,_1,true)}},isc.A.insertAdjacentHTML=function isc_c_Element_insertAdjacentHTML(_1,_2,_3,_4){_2=_2.toLowerCase();if(isc.isA.String(_1))_1=isc.Element.get(_1);if(!_1)this.logWarn("insertAdjacentHTML: element is null for where: '"+_2+"' with html: "+_3);if(isc.Browser.useInsertAdjacentHTML){try{_1.insertAdjacentHTML(_2,_3);if(_4){switch(_2){case"beforebegin":return _1.previousSibling;case"afterbegin":return _1.firstChild;case"beforeend":return _1.lastChild;case"afterend":return _1.nextSibling}} return}catch(e){}} var _5,_6=_1.ownerDocument;if(!_4&&isc.Browser.useCreateContextualFragment){var _7=_6.createRange();_7.setStartBefore(_1);_5=_7.createContextualFragment(_3)}else{var _8=_6.createElement("DIV");if(_1.tagName=="TR"&&isc.Browser.isIE){_8.innerHTML=""+_3+"
";_8=_8.firstChild.firstChild.firstChild}else{_8.innerHTML=_3} if(_4||_8.firstChild==_8.lastChild)_5=_8.firstChild;else{_5=_6.createDocumentFragment();var _9;while(_9=_8.firstChild){_5.appendChild(_9)}}} switch(_2){case"beforebegin":_1.parentNode.insertBefore(_5,_1);break;case"afterbegin":_1.insertBefore(_5,_1.firstChild);break;case"beforeend":_1.appendChild(_5);break;case"afterend":if(_1.nextSibling)_1.parentNode.insertBefore(_5,_1.nextSibling);else _1.parentNode.appendChild(_5);break} if(_4)return _5},isc.A.clear=function isc_c_Element_clear(_1,_2){if(_1==null)return;if(!_2&&isc.Page.isLoaded()&&isc.Browser.isIE&&_1.ownerDocument.documentElement.contains(_1)) {_1.outerHTML=isc.emptyString;return} if(_1.parentNode!=null){_1.parentNode.removeChild(_1)}else{isc.Log.logWarn("element parentNode null");_1.innerHTML=""}},isc.A.isBorderBox=function isc_c_Element_isBorderBox(_1){if(!_1)return false;if(!isc.Browser.isMoz)return isc.Browser.isBorderBox;return(_1.style[this.$1435]==="border-box")},isc.A.getScrollHeight=function isc_c_Element_getScrollHeight(_1){if(_1==null)return 0;var _2=((_1.scrollHeight!=null&&_1.scrollHeight!="undefined")?_1.scrollHeight:_1.offsetHeight);var _3=this.$yq(_1);return _3>_2?_3:_2},isc.A.$yq=function isc_c_Element__getPositionedChildrenBottom(_1){if(_1.childNodes==null)return 0;var _2=0,_3=document.ELEMENT_NODE||1,_4=this.logIsDebugEnabled("sizing");for(var i=0;i<_1.childNodes.length;i++){var _6=_1.childNodes.item(i);if(_6.nodeType!=_3)continue;var _7=isc.Element.getComputedStyleAttribute(_6,"position");var _8=0;if(_7==isc.Canvas.ABSOLUTE||_7==isc.Canvas.RELATIVE){_8+=isc.Element.getOffsetTop(_6)}else{continue} var _9=_6.getAttribute("eventProxy"),_10;if(_9!=null&&!isc.isAn.emptyString(_9)&&!window[_9].$s0&&isc.isA.Function(window[_9].getVisibleHeight)) {_10=window[_9].getVisibleHeight()}else{_10=isc.Element.getVisibleHeight(_6)} var _11=_8+_10;if(_7==isc.Canvas.ABSOLUTE&&(_1.style.overflow==isc.Canvas.SCROLL||_1.style.overflow==isc.Canvas.AUTO||_1.style.overflow==isc.Canvas.HIDDEN)) _11-=isc.Element.getBottomMargin(_6);if(_11>_2)_2=_11} return _2},isc.A.getScrollWidth=function isc_c_Element_getScrollWidth(_1){if(_1==null)return 0;var _2=((_1.scrollWidth!=null&&_1.scrollWidth!="undefined")?_1.scrollWidth:_1.offsetWidth);var _3=this.$yr(_1);return _3>_2?_3:_2},isc.A.$yr=function isc_c_Element__getPositionedChildrenRight(_1){if(_1.childNodes==null)return 0;var _2=0,_3=document.ELEMENT_NODE||1,_4=this.logIsDebugEnabled("sizing");for(var i=0;i<_1.childNodes.length;i++){var _6=_1.childNodes.item(i);if(_6.nodeType!=_3)continue;var _7=isc.Element.getComputedStyle(_6,["position","display","left"]);var _8=0;if(_7.position==isc.Canvas.ABSOLUTE||_7.position==isc.Canvas.RELATIVE) {_8=isc.Element.getOffsetLeft(_6)}else{continue} var _9=_6.getAttribute("eventProxy"),_10;if(_9!=null&&!isc.isAn.emptyString(_9)&&!window[_9].$sv&&isc.isA.Function(window[_9].getVisibleWidth)) {_10=window[_9].getVisibleWidth()}else{_10=isc.Element.getVisibleWidth(_6)} var _11=_8+_10;if(_1.style.overflow==isc.Canvas.SCROLL||_1.style.overflow==isc.Canvas.HIDDEN||_1.style.overflow==isc.Canvas.AUTO){_11-=isc.Element.getRightMargin(_6)} if(_11>_2)_2=_11;if(_4){this.logInfo("getChildNodesRight: child node "+i+" of "+_1.childNodes.length+" ("+this.echoLeaf(_6)+") left:"+_8+", width: "+_10+", right:"+_11,"sizing")}} return _2},isc.A.getClientWidth=function isc_c_Element_getClientWidth(_1){if(isc.Browser.isIE&&(isc.Browser.isIE9||isc.Browser.version>=10)){var _2=window.getComputedStyle(_1,null),_3=parseFloat(_2.width)+parseFloat(_2.paddingRight)+parseFloat(_2.paddingLeft);return Math.ceil(_3)}else{return _1.clientWidth}},isc.A.getElementRect=function isc_c_Element_getElementRect(_1){var _2=this.getDocumentBody(),_3=this.getLeftOffset(_1,_2),_4=this.getTopOffset(_1,_2);var _5=0,_6=0;if(_1.style&&_1.style.overflow=="visible"){_5=this.getScrollWidth(_1);_6=this.getScrollHeight(_1)} _5=Math.max(_1.offsetWidth,_1.clientWidth,_5);_6=Math.max(_1.offsetHeight,_1.clientHeight,_6);return[_3,_4,_5,_6]},isc.A.getInnerWidth=function isc_c_Element_getInnerWidth(_1){var _2=_1.style.width;if(_2!=null&&!isc.isAn.emptyString(_2)){_2=parseInt(_2);if(isc.isA.Number(_2))return _2} var _3=_1.clientWidth,_4=parseInt(this.getComputedStyleAttribute("paddingLeft")),_5=parseInt(this.getComputedStyleAttribute("paddingRight")),_6=_4+_5;if(isc.isA.Number(_6))_3-=_6;return _3},isc.A.getInnerHeight=function isc_c_Element_getInnerHeight(_1){var _2=_1.style.height;if(_2!=null&&!isc.isAn.emptyString(_2)){_2=parseInt(_2);if(isc.isA.Number(_2))return _2} var _3=_1.clientHeight,_4=parseInt(this.getComputedStyleAttribute("paddingTop")),_5=parseInt(this.getComputedStyleAttribute("paddingBottom")),_6=_4+_5;if(isc.isA.Number(_6))_3-=_6;return _3},isc.A.getNativeInnerWidth=function isc_c_Element_getNativeInnerWidth(_1){if(isc.Browser.isMoz)return this.getInnerWidth(_1);var _2=_1.offsetWidth;if(!_2)_2=this.getInnerWidth(_1);return _2},isc.A.getNativeInnerHeight=function isc_c_Element_getNativeInnerHeight(_1){if(isc.Browser.isMoz)return this.getInnerHeight(_1);var _2=_1.offsetHeight;if(!_2)_2=this.getInnerHeight(_1);return _2},isc.A.getTopMargin=function isc_c_Element_getTopMargin(_1){if(_1!=null){var _2;if(_1.style!=null)_2=parseInt(_1.style.marginTop);if(isc.isA.Number(_2))return _2;if(_1.className!=null)return isc.Element.$th(_1.className)} return 0},isc.A.getBottomMargin=function isc_c_Element_getBottomMargin(_1){if(_1!=null){var _2;if(_1.style!=null)_2=parseInt(_1.style.marginBottom);if(isc.isA.Number(_2))return _2;if(_1.className!=null)return isc.Element.$ti(_1.className)} return 0},isc.A.getLeftMargin=function isc_c_Element_getLeftMargin(_1){if(_1!=null){var _2;if(_1.style!=null)_2=parseInt(_1.style.marginLeft);if(isc.isA.Number(_2))return _2;if(_1.className!=null)return isc.Element.$tf(_1.className)} return 0},isc.A.getRightMargin=function isc_c_Element_getRightMargin(_1){if(_1!=null){var _2;if(_1.style!=null)_2=parseInt(_1.style.marginRight);if(isc.isA.Number(_2))return _2;if(_1.className!=null)return isc.Element.$tg(_1.className)} return 0},isc.A.getHMarginSize=function isc_c_Element_getHMarginSize(_1){return isc.Element.getLeftMargin(_1)+isc.Element.getRightMargin(_1)},isc.A.getVMarginSize=function isc_c_Element_getVMarginSize(_1){return isc.Element.getTopMargin(_1)+isc.Element.getBottomMargin(_1)},isc.A.getTopBorderSize=function isc_c_Element_getTopBorderSize(_1){if(_1==null)return 0;if(isc.Browser.isOpera&&_1.currentStyle.borderTopStyle==this.$27r)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.borderTopWidth):parseInt(isc.Element.getComputedStyleAttribute(_1,"borderTopWidth")));return isNaN(_2)?0:_2},isc.A.getBottomBorderSize=function isc_c_Element_getBottomBorderSize(_1){if(_1==null)return 0;if(isc.Browser.isOpera&&_1.currentStyle.borderBottomStyle==this.$27r)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.borderBottomWidth):parseInt(isc.Element.getComputedStyleAttribute(_1,"borderBottomWidth")));return isNaN(_2)?0:_2},isc.A.getLeftBorderSize=function isc_c_Element_getLeftBorderSize(_1){if(_1==null)return 0;if(isc.Browser.isOpera&&_1.currentStyle.borderLeftStyle==this.$27r)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.borderLeftWidth):parseInt(isc.Element.getComputedStyleAttribute(_1,"borderLeftWidth")));return isNaN(_2)?0:_2},isc.A.getRightBorderSize=function isc_c_Element_getRightBorderSize(_1){if(_1==null)return 0;if(isc.Browser.isOpera&&_1.currentStyle.borderRightStyle==this.$27r)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.borderRightWidth):parseInt(isc.Element.getComputedStyleAttribute(_1,"borderRightWidth")));return isNaN(_2)?0:_2},isc.A.getBorderSizes=function isc_c_Element_getBorderSizes(_1){var _2={top:isc.Element.getTopBorderSize(_1),bottom:isc.Element.getBottomBorderSize(_1),left:isc.Element.getLeftBorderSize(_1),right:isc.Element.getRightBorderSize(_1)};_2.Top=_2.top;_2.Bottom=_2.bottom;_2.Left=_2.left;_2.Right=_2.right;return _2},isc.A.getVBorderSize=function isc_c_Element_getVBorderSize(_1){return isc.Element.getTopBorderSize(_1)+isc.Element.getBottomBorderSize(_1)},isc.A.getHBorderSize=function isc_c_Element_getHBorderSize(_1){return isc.Element.getLeftBorderSize(_1)+isc.Element.getRightBorderSize(_1)},isc.A.getTopPaddingSize=function isc_c_Element_getTopPaddingSize(_1){if(_1==null)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.paddingTop):parseInt(isc.Element.getComputedStyleAttribute(_1,"paddingTop")));return isNaN(_2)?0:_2},isc.A.getBottomPaddingSize=function isc_c_Element_getBottomPaddingSize(_1){if(_1==null)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.paddingBottom):parseInt(isc.Element.getComputedStyleAttribute(_1,"paddingBottom")));return isNaN(_2)?0:_2},isc.A.getLeftPaddingSize=function isc_c_Element_getLeftPaddingSize(_1){if(_1==null)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.paddingLeft):parseInt(isc.Element.getComputedStyleAttribute(_1,"paddingLeft")));return isNaN(_2)?0:_2},isc.A.getRightPaddingSize=function isc_c_Element_getRightPaddingSize(_1){if(_1==null)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.paddingRight):parseInt(isc.Element.getComputedStyleAttribute(_1,"paddingRight")));return isNaN(_2)?0:_2},isc.A.getVPaddingSize=function isc_c_Element_getVPaddingSize(_1){return isc.Element.getTopPaddingSize(_1)+isc.Element.getBottomPaddingSize(_1)},isc.A.getHPaddingSize=function isc_c_Element_getHPaddingSize(_1){return isc.Element.getLeftPaddingSize(_1)+isc.Element.getRightPaddingSize(_1)},isc.A.getVisibleWidth=function isc_c_Element_getVisibleWidth(_1){if(_1==null)return 0;var _2=isc.Element.getComputedStyleAttribute(_1,"overflow"),_3;if(_2==isc.Canvas.VISIBLE||!isc.isA.Number(parseInt(_1.style.width))){_3=isc.Element.getScrollWidth(_1)+isc.Element.getHBorderSize(_1)}else{_3=parseInt(_1.style.width)} return _3+isc.Element.getHMarginSize(_1)},isc.A.getVisibleHeight=function isc_c_Element_getVisibleHeight(_1){if(_1==null)return 0;var _2=isc.Element.getComputedStyleAttribute(_1,"overflow"),_3;if(_2==isc.Canvas.VISIBLE||!isc.isA.Number(parseInt(_1.style.height))){_3=isc.Element.getScrollHeight(_1)+isc.Element.getVBorderSize(_1)}else{_3=parseInt(_1.style.height)} return _3+isc.Element.getVMarginSize(_1)},isc.A.getOffsetLeft=function isc_c_Element_getOffsetLeft(_1){if(_1==null){this.logWarn("getOffsetLeft: passed null element");return 0} var _2=_1.offsetLeft;if(_1.$ys==_2){return _1.$yt}else{} var _3=parseInt(isc.Element.getComputedStyleAttribute(_1,"marginLeft"));if(isc.isA.Number(_3)&&_3>0){_2-=_3} var _4=this.getDocumentBody(),_5,_6="px",_7=_1.style.position;if(isc.Browser.isMoz){if(_1.offsetParent==null)return _2;if(_1.offsetParent!=_4){_5=this.ns.Element.getComputedStyle(_1.offsetParent,["borderLeftWidth","overflow"]);var _8=isc.Browser.geckoVersion,_9=_8<20100101&&((_5.overflow!="visible")&&(_8>=20051111||(_7==isc.Canvas.ABSOLUTE&&_5.overflow!="hidden"))),_10=(_8>20020826&&(_1.offsetParent.style[this.$1435]==="border-box"));if(isc.Browser.version<8&&_10!=_9){if(_10){_2-=(isc.isA.Number(parseInt(_5.borderLeftWidth))?parseInt(_5.borderLeftWidth):0)} if(_9){_2+=(isc.isA.Number(parseInt(_5.borderLeftWidth))?parseInt(_5.borderLeftWidth):0)}}}} if(isc.Browser.isIE8Strict&&!isc.Browser.isIE9){var _11=_1.offsetParent,_5=_11?_11.currentStyle:null,_12=_5?_5.borderLeftWidth:null;if(isc.isA.String(_12)&&_12.contains(_6)){_2-=parseInt(_12)}}else if(isc.Browser.isIE&&!isc.Browser.isIE9){var _11=_1.offsetParent,_5;if(_5!=_4)_5=_11.currentStyle;var _13=(_1.currentStyle.height!=isc.Canvas.AUTO||_1.currentStyle.width!=isc.Canvas.AUTO);var _14=true;while(_11!=_4){if(_5.position==isc.Canvas.ABSOLUTE)_14=false;if(_5.width==isc.Canvas.AUTO&&_5.height==isc.Canvas.AUTO&&_5.position==isc.Canvas.RELATIVE){if(_14&&isc.isA.String(_5.borderLeftWidth)&&_5.borderLeftWidth.contains(_6)){_2-=parseInt(_5.borderLeftWidth)} if(_13){if(isc.isA.String(_5.marginLeft)&&_5.marginLeft.contains(_6)) {var _15=parseInt(_5.marginLeft);if(_15>0)_2-=_15} if(_11.offsetParent!=_4){var _16=_11.offsetParent.currentStyle.padding;if(isc.isA.String(_16)&&_16.contains(_6)){_2-=parseInt(_16)}}else{_2-=(_4.leftMargin?parseInt(_4.leftMargin):0)}}} _7=_11.style.position;_11=_11.offsetParent;if(_11!=document.body){_5=_11.currentStyle}}} if(isc.Browser.isSafari&&isc.Browser.safariVersion<525.271){if(_1.offsetParent!=null&&_1.offsetParent!=_4){var _17=this.ns.Element.getComputedStyle(_1.offsetParent,["borderLeftWidth"]).borderLeftWidth;if(_17!=null)_17=parseInt(_17);if(isc.isA.Number(_17))_2-=_17}}else if(isc.Browser.isOpera&&isc.Browser.version>=12&&_1.offsetParent){if(_1.offsetParent.id.endsWith("_clipDiv")){var _18=this.getBoundingClientRect(_1.offsetParent),_19=this.getBoundingClientRect(_1);_2=_19.left-_18.left}} _1.$ys=_1.offsetLeft;_1.$yt=_2;return _2},isc.A.getOffsetTop=function isc_c_Element_getOffsetTop(_1){if(_1==null){this.logWarn("getOffsetTop: passed null element");return 0} var _2=_1.offsetTop;if(isc.Browser.isFirefox&&isc.Browser.isStrict&&_2<0){var _3=_1.offsetParent;if(_3!=null){if(this.getBoundingClientRect(_3).top==this.getBoundingClientRect(_1).top) {_2=0}}} if(_1.$yu==_2){return _1.$yv}else{} var _4=parseInt(isc.Element.getComputedStyleAttribute(_1,"marginTop"));if(isc.isA.Number(_4)&&_4>0){_2-=_4} var _5=this.getDocumentBody(),_6,_7="px",_8=_1.style.position;if(isc.Browser.isMoz){if(_1.offsetParent==null)return _2;if(_1.offsetParent!=_5){_6=this.ns.Element.getComputedStyle(_1.offsetParent,["overflow","borderTopWidth"]);var _9=isc.Browser.geckoVersion;var _10=_9<20100101&&((_6.overflow!="visible")&&(_9>=20051111||(_8==isc.Canvas.ABSOLUTE&&_6.overflow!="hidden"))),_11=(isc.Browser.geckoVersion>20020826&&_1.offsetParent.style[this.$1435]==="border-box");if(isc.Browser.version<8&&_11!=_10){if(_11){_2-=(isc.isA.Number(parseInt(_6.borderTopWidth))?parseInt(_6.borderTopWidth):0)} if(_10){_2+=(isc.isA.Number(parseInt(_6.borderTopWidth))?parseInt(_6.borderTopWidth):0)}}}} if(isc.Browser.isIE8Strict&&!isc.Browser.isIE9){var _12=_1.offsetParent,_6=_12?_12.currentStyle:null,_13=_6?_6.borderTopWidth:null;if(isc.isA.String(_13)&&_13.contains(_7)){_2-=parseInt(_13)}}else if(isc.Browser.isIE&&!isc.Browser.isIE9){if(_1.offsetParent&&_1.offsetParent!=_5){_6=_1.offsetParent.currentStyle;if(_6.position==isc.Canvas.RELATIVE&&_6.height==isc.Canvas.AUTO&&_6.width==isc.Canvas.AUTO&&isc.isA.String(_6.borderTopWidth)&&_6.borderTopWidth.contains(_7)){_2-=parseInt(_6.borderTopWidth)}}} if(isc.Browser.isSafari&&isc.Browser.safariVersion<525.271){if(_1.offsetParent&&_1.offsetParent!=_5){var _14=this.ns.Element.getComputedStyle(_1.offsetParent,["borderTopWidth"]).borderTopWidth;if(_14!=null)_14=parseInt(_14);if(isc.isA.Number(_14))_2-=_14}}else if(isc.Browser.isOpera&&isc.Browser.version>=12&&_1.offsetParent){if(_1.offsetParent.id.endsWith("_clipDiv")){var _15=this.getBoundingClientRect(_1.offsetParent),_16=this.getBoundingClientRect(_1);_2=_16.top-_15.top}} _1.$yu=_1.offsetTop;_1.$yv=_2;return _2},isc.A.getLeftOffset=function isc_c_Element_getLeftOffset(_1,_2,_3,_4){return this.getOffset(isc.Canvas.LEFT,_1,_2,_3,_4)},isc.A.getTopOffset=function isc_c_Element_getTopOffset(_1,_2,_3){return this.getOffset(isc.Canvas.TOP,_1,_2,null,_3)},isc.A.getBoundingClientRect=function isc_c_Element_getBoundingClientRect(_1){var _2=this.$118s;if(_1.tagName===this.$jj||(!_2&&_1.tagName===this.$jk)) {var _3=_1.ownerDocument,_4=_3.documentElement;if(_2){return _4.getBoundingClientRect()}else{var _5=isc.Browser.isIE&&!isc.Browser.isStrict;if(_5&&isc.Browser.version==6){var _6=_1.getBoundingClientRect(),_7=-_3.body.scrollLeft+(_4.clientLeft||0),_8=-_3.body.scrollTop+(_4.clientTop||0),_9=Math.max(_4.offsetWidth,_6.right),_10=Math.max(_4.offsetHeight,_6.bottom);return{left:_7,top:_8,right:_7+_9,bottom:_8+_10,width:_9,height:_10}}else{var _6=_1.getBoundingClientRect(),_9=Math.max(_4.clientWidth,_6.right),_10=Math.max(_4.clientHeight,_6.bottom),_7=_4.clientLeft||0,_8=_4.clientTop||0;if(_5){_7-=_3.body.scrollLeft;_8-=_3.body.scrollTop}else{var _11=_3.defaultView||window;_7-=_11.pageXOffset||_4.scrollLeft;_8-=_11.pageYOffset||_4.scrollTop} return{left:_7,top:_8,right:_7+_9,bottom:_8+_10,width:_9,height:_10}}}}else{var _6=_1.getBoundingClientRect();if(_6.width==null){return{left:_6.left,top:_6.top,right:_6.right,bottom:_6.bottom,width:_6.right-_6.left,height:_6.bottom-_6.top}}else{return _6}}},isc.A.getOffsets=function isc_c_Element_getOffsets(_1,_2,_3,_4){var _5=_4||isc.isA.Canvas(_1),_6=_4||_2==null||isc.isA.Canvas(_2);var _7=_5&&_6&&this.cacheOffsetCoords&&(_1.cacheOffsetCoords!=false),_8=_2?_2.ID:this.$27r;if(_7&&_1[this.$808]!=null&&_1[this.$809]!=null) {var _9=_1[this.$808][_8],_10=_1[this.$809][_8];if(_9!=null&&_10!=null){return{left:_9,top:_10}}} var _11=_5?_1.getClipHandle():_1;var _12;if(_2==null)_12=this.getDocumentBody();else if(_6)_12=_2.getHandle();else _12=_2;if(_12==null||_11==null){return{left:0,top:0}} var _13;if(isc.Browser.$117b){var _14=this.getBoundingClientRect(_11),_15=this.getBoundingClientRect(_12);_13={left:(_14["left"]-_15["left"])<<0,top:(_14["top"]-_15["top"])<<0}}else{var _16=_11.offsetParent;if(isc.Browser.isMoz&&_16==null)return 0;var _17=_12.offsetParent,_18=_11;_13={left:0,top:0};if(_3==null)_3=isc.Page.isRTL();var _19=0;while(_16!=_12&&_16!=_17){this.$117h(_13,_18,_16,_3);_18=_16;_16=_18.offsetParent;_19++} this.$117h(_13,_18,_16,_3);if(_16==_17){_13.left-=this.getOffsetLeft(_12);_13.top-=this.getOffsetTop(_12)}} if(_7){var _20=_1[this.$808]=_1[this.$808]||{};_20[_8]=_13.left;_20=_1[this.$809]=_1[this.$809]||{};_20[_8]=_13.top} return _13},isc.A.$117h=function isc_c_Element__adjustOffsets(_1,_2,_3,_4){_1.left+=this.getOffsetLeft(_2);_1.top+=this.getOffsetTop(_2);if(!_4){_1.left-=_3.scrollLeft||0}else{var _5=_3.scrollLeft;if(isc.isA.Number(_5)){var _6=_3.style?_3.style.overflow:isc.emptyString;if(_6!=isc.Canvas.VISIBLE&&_6!=isc.emptyString){var _7=this.$95b,_8=this.$95c;if(_8){_5=-_5;_7=true} if(!_7){_5=isc.Canvas.$92y(_5,_3.scrollWidth,_3.clientWidth,true,true)} _1.left-=_5}}} _1.top-=_3.scrollTop||0;var _9,_10,_11,_12,_13;if(this.$84e){_9=_3.currentStyle;if(!isc.Browser.isOpera||_9.borderLeftStyle!=this.$27r){_10=parseInt(_9.borderLeftWidth);if(_10>0)_1.left+=_10} if(!isc.Browser.isOpera||_9.borderTopStyle!=this.$27r){_11=parseInt(_9.borderTopWidth);if(_11>0)_1.top+=_11} _12=parseInt(_9.marginLeft);if(_12>0)_1.left+=_12;_13=parseInt(_9.marginTop);if(_13>0)_1.left+=_12}else if(isc.Browser.isMoz){_9=window.getComputedStyle(_3,null);_1.left+=parseInt(_9.borderLeftWidth);_1.top+=parseInt(_9.borderTopWidth);_12=parseInt(_9.marginLeft);if(_12>0)_1.left+=_12;_13=parseInt(_9.marginTop);if(_13>0)_1.top+=_13}else{_10=parseInt(this.getComputedStyleAttribute(_3,this.$w2));if(_10>0)_1.left+=_10;_11=parseInt(this.getComputedStyleAttribute(_3,this.$w3));if(_11>0)_1.top+=_11;_12=parseInt(this.getComputedStyleAttribute(_3,this.$oi));if(_12>0)_1.left+=_12;_13=parseInt(this.getComputedStyleAttribute(_3,this.$ok));if(_13>0)_1.top+=_13}},isc.A.getOffset=function isc_c_Element_getOffset(_1,_2,_3,_4,_5){var _6=this.getOffsets(_2,_3,_4,_5);return _6[_1]},isc.A.getStyleEdges=function isc_c_Element_getStyleEdges(_1){if(isc.Browser.isSafari&&!isc.Element.$x1){isc.Browser.isStrict=isc.Element.$x2();isc.Element.$x1=true} if(_1==null)return null;var _2;if(this.$nk[_1]!==_2)return this.$nk[_1];var _3=(isc.Browser.isMoz&&isc.Browser.geckoVersion<20040616),_4;if(_3){_4=this.getStyleDeclaration(_1)}else{var _5=isc.Browser.isIE?this.$x3:this.$x4;_4=this.$x5(_1,_5)} this.$nk[_1]=_4;return _4},isc.A.$x2=function isc_c_Element__testForSafariStrictMode(){if(document.compatMode!=null){return document.compatMode=="CSS1Compat"} var _1="
x
" var _2=isc.Element.createAbsoluteElement(_1);var _3=_2.offsetHeight>30;isc.Element.clear(_2);return _3},isc.A.$x5=function isc_c_Element__deriveStyleProperties(_1,_2){var _3=(isc.Browser.isIE||isc.Browser.isOpera||isc.Browser.isSafari||(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20080205));if(!this.$x6){this.createAbsoluteElement("":" ID='isc_cellStyleTester'> ")+"
"+isc.Canvas.blankImgHTML(30,30)+"
 
");this.$x6=isc.Element.get("isc_cellStyleTester");if(isc.Browser.isIE8Strict){this.$62a=isc.Element.get("isc_cellInnerStyleTester")} this.$x7="81px";if(isc.Browser.isSafari||isc.Browser.isChrome){var _4=isc.Element.get("isc_cellNoStyleTester");var _5=["paddingLeft"];var _6=this.getComputedStyle(_4,_5).paddingLeft;if(_6!=this.$x7){this.logDebug("Browser natively misreporting cell-padding (81px reported as:"+_6+"). This behavior is known to occur when the view is zoomed in certain browsers but is worked around by SmartClient and should have no visible effect on the application.","sizing");this.$x7=_6}} this.$x8="-16384px";if(_3){this.createAbsoluteElement("
 
");this.$x9=isc.Element.get("isc_styleTester");this.$ya=["marginLeft","marginTop","marginRight","marginBottom"];if(isc.Browser.isIE8Strict){this.$ya.addList(["borderLeftWidth","borderTopWidth","borderRightWidth","borderBottomWidth"])}}} this.$x6.className=_1;var _7=this.getComputedStyle(this.$x6,_2);var _8=this.$x7;if(_7.paddingLeft==_8)_7.paddingLeft=null;if(_7.paddingTop==_8)_7.paddingTop=null;if(_7.paddingRight==_8)_7.paddingRight=null;if(_7.paddingBottom==_8)_7.paddingBottom=null;if(isc.Browser.isIE8Strict){var _9=this.$62a,_10=_9.offsetLeft,_11=_9.offsetTop;if(_10==81)_7.paddingLeft=null;if(_11==81)_7.paddingTop=null;if(this.$x6.offsetWidth-_10-30==81){_7.paddingRight=null} if(this.$x6.offsetHeight-_11-30==81){_7.paddingBottom=null}} if(isc.Browser.isSafari){if(isc.Browser.safariVersion<419.3){_8=isc.Canvas.AUTO;if(_7.paddingLeft==_8)_7.paddingLeft=null;if(_7.paddingTop==_8)_7.paddingTop=null;if(_7.paddingRight==_8)_7.paddingRight=null;if(_7.paddingBottom==_8)_7.paddingBottom=null} _8=this.$x8;if(_7.marginTop==_8)_7.marginTop=null;if(_7.marginBottom==_8)_7.marginBottom=null} if(_3){this.$x9.className=_1;var _12=this.getComputedStyle(this.$x9,this.$ya);_7.marginLeft=_12.marginLeft;_7.marginRight=_12.marginRight;_7.marginTop=_12.marginTop;_7.marginBottom=_12.marginBottom;if(isc.Browser.isIE8Strict){_7.borderLeftWidth=_12.borderLeftWidth;_7.borderRightWidth=_12.borderRightWidth;_7.borderTopWidth=_12.borderTopWidth;_7.borderBottomWidth=_12.borderBottomWidth}} return _7});isc.evalBoundary;isc.B.push(isc.A.getComputedStyle=function isc_c_Element_getComputedStyle(_1,_2){var _3,_4,_5;if(isc.isA.String(_1)){_3=isc.Element.get(_1)}else{_3=_1} if(_3==null||!isc.isAn.Object(_3)){this.logWarn("getComputedStyle: Unable to get to DOM element specified by '"+_1+"'."+this.getStackTrace());return null} if(this.$84e){_4=_3.currentStyle;if(_2==null)_2=this.$yb;var _6=isc.applyMask(_4,_2);return _6} if(_2==null){_2=this.$yc}else if(isc.isAn.Array(_2)){var _7={},_8=this.$yc;for(var i=0;i<_2.length;i++){_7[_2[i]]=_8[_2[i]]} _2=_7} var _10=isc.Browser.isSafari&&isc.Browser.safariVersion<312,_11;if(_10){_4=_3.style;_11=this.getStyleDeclaration(_3.className);_5={};for(var _12 in _2){_5[_12]=_4.getPropertyValue(_2[_12]);if(_5[_12]==null&&_11!=null&&_11[_12]!=null&&!isc.isAn.emptyString(_11[_12])) {_5[_12]=_11[_12]}}}else{if(document.defaultView&&document.defaultView.getComputedStyle){_4=document.defaultView.getComputedStyle(_3,null)} if(_4==null){_4={};this.logWarn("getComputedStyle() not natively available - can't guarantee accurate styling information for element:"+this.echoLeaf(_3));if(this.logIsDebugEnabled()){this.logDebug(this.getStackTrace())}} _5={};for(var _12 in _2){_5[_12]=_4[_12]}} return _5},isc.A.getComputedStyleAttribute=function isc_c_Element_getComputedStyleAttribute(_1,_2){if(_1==null||_2==null)return null;if(this.$84e){if(_1.currentStyle==null)return null;if(isc.Browser.isOpera&&this.$419[_2]!=null&&_1.currentStyle[this.$419[_2]]==this.$27r)return 0;return _1.currentStyle[_2]} if(isc.Browser.isSafari&&isc.Browser.version<5){var _3=null;if(_1.style)_3=_1.style[_2];if((_3==null||isc.isAn.emptyString(_3))&&_1.className) {var _4=isc.Element.getStyleEdges(_1.className);if(_4)_3=_4[_2]} if(isc.isAn.emptyString(_3))return null;return _3} var _5=this.$yc;var _6=this.$yd=this.$yd||document.defaultView;var _7=(_5[_2]||_2),_8=_6.getComputedStyle(_1,null);return _8.getPropertyValue(_7)},isc.A.$132f=function isc_c_Element__matchesSelector(_1,_2){try{if(!!_1.matches)return _1.matches(_2);if(isc.Browser.isIE9)return _1.msMatchesSelector(_2);else if(isc.Browser.isChrome||isc.Browser.isWebKit)return _1.webkitMatchesSelector(_2);else if(isc.Browser.isMoz)return _1.mozMatchesSelector(_2);else if(isc.Browser.isOpera)return _1.oMatchesSelector(_2)}catch(e){return false} if(isc.isAn.emptyString(_1.className))return false;var _3="."+_1.className,_4=_2.split(/(?:,\s*)+/);for(var k=0;k<_4.length;k++){if(_4==_3)return true} return false},isc.A.getStyleDeclaration=function isc_c_Element_getStyleDeclaration(_1,_2,_3){if(!_1)return null;if(_3==null){_3=this.$132g;if(_3==null){_3=this.$132g=document.createElement("div");_3.id="isc_getStyleDeclaration_defaultReferenceElement";_3.style.display="none";document.body.appendChild(_3)} _3.className=_1} if(!isc.allowDuplicateStyles)_2=false;var _4,_5=_2?[]:null;for(var i=document.styleSheets.length-1;i>=0;i--){var _7=this.$ye(document.styleSheets[i]);if(_7==null)continue;for(var j=_7.length-1;j>=0;j--){var _9=_7[j].selectorText;if(_9==null)continue;if(isc.Browser.isSafari&&530.17>isc.Browser.safariVersion&&isc.Browser.safariVersion>=312){_9+=", "+_9.toLowerCase()} if(this.$132f(_3,_9)){var _4=_7[j].style;if(_2)_5[_5.length]=_4;else return _4}}} if(_2&&_5.length>0)return _5;return null},isc.A.$ye=function isc_c_Element__getCSSRules(_1){if(!this.$yf){this.$yf=function(_2){try{return _2.rules||_2.cssRules}catch(e){isc.Page.$yh=true}}} return this.$yf(_1)},isc.A.getStyleText=function isc_c_Element_getStyleText(_1,_2){if(!isc.allowDuplicateStyles)_2=false;var _3=this.$nl,_4=_3[_1];if(_4!=null)return _4;var _5=this.getStyleDeclaration(_1,_2);if(_5==null){if(!isc.Browser.isSafari||isc.Page.isLoaded()) this.$nl[_1]=isc.emptyString;return isc.emptyString} if(_2){for(var i=_5.length-1;i>-1;i--){var _7=_5[i];var _8=_7.cssText;if(_8==null)continue;if(!isc.endsWith(_8,this.$39))_8+=this.$39;if(_4==null)_4=_8;else _4+=_8} if(_4==null)_4=isc.$ad}else{_4=(_5.cssText||isc.$ad)} if(!isc.endsWith(_4,isc.semi))_4+=isc.semi;return(_3[_1]=_4)},isc.A.$50f=function isc_c_Element__clearCSSCaches(){isc.Element.$nk={};isc.Element.$nl={};isc.Element.$yj=isc.Element.$yk=isc.Element.$yl=null},isc.A.$th=function isc_c_Element__getTopMargin(_1){return this.$sd(_1).top},isc.A.$ti=function isc_c_Element__getBottomMargin(_1){return this.$sd(_1).bottom},isc.A.$tf=function isc_c_Element__getLeftMargin(_1){return this.$sd(_1).left},isc.A.$tg=function isc_c_Element__getRightMargin(_1){return this.$sd(_1).right},isc.A.$sd=function isc_c_Element__calculateMargins(_1){if(this.$yk==null)this.$yk={};else if(this.$yk[_1]!=null){return this.$yk[_1]} var _2={top:0,bottom:0,left:0,right:0},_3=isc.Element.getStyleEdges(_1);if(_3==null)return _2;var _4=_3.marginTop,_5=_3.marginBottom,_6=_3.marginLeft,_7=_3.marginRight,_8=isc.px;if(isc.isA.String(_4)&&isc.endsWith(_4,_8)) _2.top=parseInt(_4);if(isc.isA.String(_5)&&isc.endsWith(_5,_8)) _2.bottom=parseInt(_5);if(isc.isA.String(_6)&&isc.endsWith(_6,_8)) _2.left=parseInt(_6);if(isc.isA.String(_7)&&isc.endsWith(_7,_8)) _2.right=parseInt(_7);this.$yk[_1]=_2;return _2},isc.A.$tn=function isc_c_Element__getTopBorderSize(_1){return this.$tj(_1).top},isc.A.$to=function isc_c_Element__getBottomBorderSize(_1){return this.$tj(_1).bottom},isc.A.$tl=function isc_c_Element__getLeftBorderSize(_1){return this.$tj(_1).left},isc.A.$tm=function isc_c_Element__getRightBorderSize(_1){return this.$tj(_1).right},isc.A.$tj=function isc_c_Element__calculateBorderSize(_1){if(this.$yj==null)this.$yj={};else if(this.$yj[_1]!=null){return this.$yj[_1]} var _2={top:0,bottom:0,left:0,right:0},_3=isc.Element.getStyleEdges(_1);if(_3==null)return _2;var _4=_3.borderTopWidth,_5=_3.borderBottomWidth,_6=_3.borderLeftWidth,_7=_3.borderRightWidth,_8=isc.px;if(isc.isA.String(_4)&&isc.endsWith(_4,_8)) _2.top=parseInt(_4);if(isc.isA.String(_5)&&isc.endsWith(_5,_8)) _2.bottom=parseInt(_5);if(isc.isA.String(_6)&&isc.endsWith(_6,_8)) _2.left=parseInt(_6);if(isc.isA.String(_7)&&isc.endsWith(_7,_8)) _2.right=parseInt(_7);this.$yj[_1]=_2;return _2},isc.A.$ym=function isc_c_Element__getVBorderSize(_1){return this.$tn(_1)+this.$to(_1)},isc.A.$yn=function isc_c_Element__getHBorderSize(_1){return this.$tl(_1)+this.$tm(_1)},isc.A.$tt=function isc_c_Element__getTopPadding(_1,_2){var _3=this.$tq(_1);if(_2&&_3.nullTop)return null;return _3.top},isc.A.$tu=function isc_c_Element__getBottomPadding(_1,_2){var _3=this.$tq(_1);if(_2&&_3.nullBottom)return null;return _3.bottom},isc.A.$tr=function isc_c_Element__getLeftPadding(_1,_2){var _3=this.$tq(_1);if(_2&&_3.nullLeft)return null;return _3.left},isc.A.$ts=function isc_c_Element__getRightPadding(_1,_2){var _3=this.$tq(_1);if(_2&&_3.nullRight)return null;return _3.right},isc.A.$tq=function isc_c_Element__calculatePadding(_1){if(this.$yl==null)this.$yl={};else if(this.$yl[_1]!=null){return this.$yl[_1]} var _2={top:0,bottom:0,left:0,right:0},_3=isc.Element.getStyleEdges(_1);if(_3==null){_2.nullLeft=true;_2.nullRight=true;_2.nullTop=true;_2.nullBottom=true;return _2} var _4=_3.paddingTop,_5=_3.paddingBottom,_6=_3.paddingLeft,_7=_3.paddingRight,_8=isc.px;_2.nullTop=(_4==null||_4==isc.emptyString);_2.nullBottom=(_5==null||_5==isc.emptyString) _2.nullLeft=(_6==null||_6==isc.emptyString);_2.nullRight=(_7==null||_7==isc.emptyString);if(isc.isA.String(_4)&&isc.endsWith(_4,_8)) _2.top=parseInt(_4);if(isc.isA.String(_5)&&isc.endsWith(_5,_8)) _2.bottom=parseInt(_5);if(isc.isA.String(_6)&&isc.endsWith(_6,_8)) _2.left=parseInt(_6);if(isc.isA.String(_7)&&isc.endsWith(_7,_8)) _2.right=parseInt(_7);this.$yl[_1]=_2;return _2},isc.A.$s1=function isc_c_Element__getVPadding(_1){return this.$tt(_1)+this.$tu(_1)},isc.A.$sw=function isc_c_Element__getHPadding(_1){return this.$tr(_1)+this.$ts(_1)},isc.A.$yo=function isc_c_Element__getVBorderPad(_1){return this.$ym(_1)+this.$s1(_1)},isc.A.$yp=function isc_c_Element__getHBorderPad(_1){return this.$yn(_1)+this.$sw(_1)},isc.A.getNativeScrollbarSize=function isc_c_Element_getNativeScrollbarSize(){if(isc.Element.$yi==null){if(isc.Browser.isMobileWebkit){return(isc.Element.$yi=0)} var _1="
"+isc.nbsp+"
";this.createAbsoluteElement(_1);var _2=this.get('isc_ScrollbarTest');isc.Element.$yi=parseInt(_2.style.height)-_2.clientHeight;this.clear(_2)} return isc.Element.$yi},isc.A.getRotationCSS=function isc_c_Element_getRotationCSS(_1,_2){_1=+_1;var _3=this.vendorCSSPrefix;var _4=this.$159t+": rotate("+_1.toFixed(3)+"deg);";if(_2!=null){_4+=this.$1388+": "+_2+";"} return _4},isc.A.$136r=function isc_c_Element__updateTransformStyle(_1,_2,_3){var _4=_1.getClipHandle();if(_4==null)return;_1.$808=_1.$809=null;_1.$81b();if(!_2)_2="none";var _5=_4.style;_5[this.$139a]=_2;if(_3!=null){_5[this.$139b]=_3}});isc.B._maxIndex=isc.C+85;isc.Element.$50g=function(){var _1=this.$x4={borderLeftWidth:"border-left-width",borderRightWidth:"border-right-width",borderTopWidth:"border-top-width",borderBottomWidth:"border-bottom-width",marginLeft:"margin-left",marginRight:"margin-right",marginTop:"margin-top",marginBottom:"margin-bottom",paddingLeft:"padding-left",paddingRight:"padding-right",paddingTop:"padding-top",paddingBottom:"padding-bottom"} var _2=this.$yc=isc.addProperties({position:"position",overflow:"overflow",top:"top",left:"left",width:"width",height:"height",display:"display"},_1);if(isc.Browser.isIE||isc.Browser.isOpera){this.$yb=isc.getKeys(_2);this.$x3=isc.getKeys(_1)}} isc.Element.$50g();isc.ClassFactory.defineClass("Canvas");isc.defer("isc.Canvas.addProperties({ $1399: isc.Browser.$1398() });if (isc.Canvas.$b4.edgeMarginSize == null) isc.Canvas.addProperties({ edgeMarginSize: isc.Browser.isTouch ? 10 : 5 });isc.Page.$151x();");isc.isA.Canvas=function(_1){return(_1!=null&&_1._isA_Canvas)};isc.A=isc.Canvas;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A._isA_Canvas=true;isc.A.AUTO="auto";isc.A.ANYTHING="**anything**";isc.A.ABSOLUTE="absolute";isc.A.RELATIVE="relative";isc.A.INHERIT="inherit";isc.A.VISIBLE="visible";isc.A.HIDDEN="hidden";isc.A.COMPLETE="complete";isc.A.DRAWN="complete";isc.A.DRAWING_HANDLE="drawingHandle";isc.A.HANDLE_DRAWN="handleDrawn";isc.A.UNDRAWN="undrawn";isc.A.SCROLL="scroll";isc.A.CLIP_H="clip-h";isc.A.CLIP_V="clip-v";isc.A.IGNORE="ignore";isc.A.NATIVE="native";isc.A.CLIP="clip";isc.A.NESTED_DIV="nestedDiv";isc.A.CENTER="center";isc.A.LEFT="left";isc.A.RIGHT="right";isc.A.TOP="top";isc.A.BOTTOM="bottom";isc.A.UP="up";isc.A.DOWN="down";isc.A.BOTH="both";isc.A.NONE="none";isc.A.VERTICAL="vertical";isc.A.HORIZONTAL="horizontal";isc.A.MARKED="marked";isc.A.MIDDLE="middle";isc.A.ALL="all";isc.A.DEFAULT="default";isc.A.ARROW="default";isc.A.WAIT="wait";isc.A.HAND=(isc.Browser.isMoz||(isc.Browser.isSafari&&isc.Browser.isStrict)||(isc.Browser.isIE&&isc.Browser.version>=9&&isc.Browser.isStrict)?"pointer":"hand");isc.A.MOVE="move";isc.A.HELP="help";isc.A.TEXT="text";isc.A.CROSSHAIR="crosshair";isc.A.NOT_ALLOWED="not-allowed";isc.A.COL_RESIZE=(isc.Browser.isIE&&isc.Browser.version>=6?"col-resize":"e-resize");isc.A.RTL_COL_RESIZE=(isc.Browser.isIE&&isc.Browser.version>=6?"col-resize":"w-resize");isc.A.ROW_RESIZE=(isc.Browser.isIE&&isc.Browser.version>=6?"row-resize":"n-resize");isc.A.TILE="tile";isc.A.STRETCH="stretch";isc.A.NORMAL="normal";isc.A.REPEAT="repeat";isc.A.NO_REPEAT="no-repeat";isc.A.REPEAT_X="repeat-x";isc.A.REPEAT_Y="repeat-y";isc.A.LTR="ltr";isc.A.RTL="rtl";isc.A.BEFORE="before";isc.A.AFTER="after";isc.A.NEAREST="nearest";isc.A._nextZIndex=200000;isc.A._SMALL_Z_INDEX=199950;isc.A._BIG_Z_INDEX=800000;isc.A.TAB_INDEX_GAP=50;isc.A.TAB_INDEX_FLOOR=1000;isc.A.TAB_INDEX_CEILING=32766;isc.A.textStyleAttributes=["fontFamily","fontSize","color","backgroundColor","fontWeight","fontStyle","textDecoration","textAlign"];isc.A.$816=[];isc.A.allowExternalFilters=true;isc.A.$nm=[];isc.A._redrawQueueDelay=(0);isc.A.$nn=200;isc.A._canvasList=[];isc.A._iscInternalCount=0;isc.A._stats={redraws:0,clears:0,destroys:0,draws:0};isc.A.$no={};isc.A.$np={};isc.A.$nq=[];isc.A.useMozBackMasks=false;isc.A.useNativeWheelDelta=true;isc.A.scrollWheelDelta=50;isc.A.loadingImageSrc="[SKINIMG]loadingSmall.gif";isc.A.loadingImageSize=16;isc.A.defaultPageSpace=0;isc.B.push(isc.A.$814=function isc_c_Canvas__setDoublingStrings(){this.$42a=isc.Browser.isIE&&(!this.neverUseFilters||this.allowExternalFilters)?"margin:0px;border:0px;padding:0px;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;filter:none;":"margin:0px;border:0px;padding:0px;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;";isc.Canvas.addProperties({$4o:"' style='"+isc.Canvas.$42a});for(var i=0;i4)||(isc.Browser.isUnix&&isc.Browser.isMoz&&isc.Browser.geckoVersion>=20020826&&isc.Browser.geckoVersion<=20031007));isc.A.useNativeTouchScrolling=true;isc.A.scrollbarSize=16;isc.A.scrollbarConstructor="Scrollbar";isc.A.scrollLeft=0;isc.A.$1314=0;isc.A.scrollTop=0;isc.A.scrollDelta=20;isc.A.$nr="unset";isc.A.enabled="unset";isc.A.redrawOnDisable=false;isc.A.$jp=true;isc.A.$jo=true;isc.A.$ns=true;isc.A.$nt=true;isc.A.$jq=true;isc.A._redrawWithParent=true;isc.A.showFocusOutline=true;isc.A._useNativeTabIndex=(isc.Browser.isIE&&isc.Browser.version>=5)||isc.Browser.isSafari||(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20051111);isc.A._useFocusProxy=(isc.Browser.isMoz&&isc.Browser.geckoVersion<20051111)||isc.Browser.isOpera;isc.A.contextMenuProperties={autoDraw:false,width:200,showIcons:true};isc.A.menuConstructor="Menu";isc.A.clippedCorners=["TL","TR","BL","BR"];isc.A.cornerClipColor="FFFFFF";isc.A.cornerClipImage="[SKIN]corner.gif";isc.A.cornerClipSize=10;isc.A.$nv={_generated:true,overflow:"hidden",$jp:false,$jo:false,autoDraw:false,skinImgDir:"images/corners/",draw:function(){this.Super("draw",arguments)}};isc.A.dragOutlineStyle="dragOutline";isc.A.dragStartDistance=5;isc.A.canDragScroll=true;isc.A.dragScrollDelay=100;isc.A.dragScrollThreshold=null;isc.A.minDragScrollIncrement=1;isc.A.maxDragScrollIncrement="5%";isc.A.dragIntersectStyle=isc.EventHandler.INTERSECT_WITH_MOUSE;isc.A.dragRepositionCursor=isc.Canvas.MOVE;isc.A.proportionalResizing="none";isc.A.proportionalResizeModifiers=["Shift"];isc.A.dragScrollType="any";isc.A.useDragMask=false;isc.A.dragMaskType="div";isc.A.dragPlaceholderMessage="Dragging...";isc.A.dragPlaceholderStyle="normal";isc.A.hoverDelay=300;isc.A.showHover=true;isc.A.edgeMarginSize=null;isc.A.minNonEdgeSize=0;isc.A.edgeCursorMap={"T":"n-resize","L":"w-resize","B":"s-resize","R":"e-resize","TL":"nw-resize","TR":"ne-resize","BL":"sw-resize","BR":"se-resize"};isc.A.dragAppearance=isc.EventHandler.OUTLINE;isc.A.dropTypes=isc.Canvas.ANYTHING;isc.A.mouseStillDownInitialDelay=400;isc.A.mouseStillDownDelay=100;isc.A.doubleClickDelay=250;isc.A.refreshVariable="refresh";isc.A.$ks=(isc.Browser.isMoz&&(!isc.Browser.isUnix||isc.Browser.geckoVersion>20031007));isc.A.$se=isc.Browser.isMoz&&isc.Browser.version>=18;isc.A.useClipDiv=isc.Browser.useClipDiv;isc.A.manageChildOverflow=true;isc.A.$nw={};isc.A.percentBox="visible";isc.A.$520="viewport";isc.A.snapHGap=20;isc.A.snapVGap=20;isc.A.snapHDirection=isc.Canvas.AFTER;isc.A.snapVDirection=isc.Canvas.AFTER;isc.A.snapAxis=isc.Canvas.BOTH;isc.A.snapOnDrop=true;isc.B.push(isc.A.$120u=function isc_Canvas__getUseNativeDrag(){var _1=this;while(_1!=null){if(_1.useNativeDrag!=null){return!!_1.canDrag&&_1.useNativeDrag} _1=_1.getParentCanvas()} return false},isc.A.$120v=function isc_Canvas__getNativeDragTarget(){var _1=this;while(_1!=null){if(_1.useNativeDrag!=null){if(!!_1.canDrag&&_1.useNativeDrag){return _1}} _1=_1.getParentCanvas()} return null},isc.A.setCanDragResize=function isc_Canvas_setCanDragResize(_1){if(this.canDragResize!=_1){this.canDragResize=_1;this.$151k()}},isc.A.$151j=function isc_Canvas__getProportionalResizing(){var _1=this.proportionalResizing,_2=_1=="always",_3=!_2&&_1=="modifier",_4=!(_2||_3)&&_1=="modifierOff";if(!(_2||_3||_4)){return"none"} var _5=this.resizeFrom,_6=(this.canDragResize&&!this.destroying&&!this.destroyed&&(_5==null||(isc.isAn.Array(_5)&&_5.length>0&&(_5.contains("TL")||_5.contains("TR")||_5.contains("BL")||_5.contains("BR")))));if(!_6){return"none"}else{var _7=(isc.Page.$151g(this.proportionalResizeModifiers)==0);if(_7){if(_3){return"always"}else if(_4){return"none"}} return _1}},isc.A.setResizeFrom=function isc_Canvas_setResizeFrom(_1){if(this.resizeFrom!=_1){this.resizeFrom=_1;this.$151k()}},isc.A.getDragAppearance=function isc_Canvas_getDragAppearance(_1){if(_1==isc.EH.DRAG_RESIZE&&this.dragResizeAppearance!=null) return this.dragResizeAppearance;if(_1==isc.EH.DRAG_REPOSITION&&this.dragRepositionAppearance!=null) return this.dragRepositionAppearance;return this.dragAppearance});isc.B._maxIndex=isc.C+6;isc.A=isc.Canvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$nx="resize";isc.A.$ny="draw";isc.A.$nz="hidden";isc.A.$n0="redraw";isc.A.$n1="undefined";isc.A.$n2="draws";isc.A.$n3="drawing";isc.A.$n4="redraws";isc.A.$n5="autoDraw";isc.A.$n6="beforeBegin";isc.A.$n7="afterBegin";isc.A.$n8="beforeEnd";isc.A.$n9="afterEnd";isc.A.$oa=">";isc.A.$ob="'";isc.A.$77b='"';isc.A.$oc="initWidget";isc.A.iFrameHeightAdjustment=0;isc.A.$55w="html";isc.A.$54t=isc.nbsp;isc.A.$od="initial draw";isc.A.$oe="parentDrawn";isc.A.notifyAncestorsOnReflow=true;isc.A.$of="eventProxy";isc.A.reuseDOMIDs=false;isc.A.$og="canvas";isc.A.$oh="canvas_clipDiv";isc.A.clipHandleIsFocusHandle=true;isc.A.$129l=";outline-style:none";isc.A.$131k="
 
"];isc.A.$ow="scrollSizeDiv";isc.A.$ox="enforceScrollSize";isc.A.$oy="-1px";isc.A.$1514=new Array(4);isc.A.useClientRectAPI=false;isc.A.useBoxObjectAPI=false;isc.A.useBoxObjectAPISelectively=true;isc.A.$65h="0px";isc.A.$oz="left";isc.A.$o0="top";isc.A.$o1="right";isc.A.$o2="bottom";isc.A.$o3="center";isc.A.$o4="childMoved";isc.A.$o5="height";isc.A.$o6="width";isc.A.$oz="left";isc.A.$o0="top";isc.A.$o7="$o8";isc.A.$o9="%";isc.A.$pa="*";isc.A.$pb={height:"_percent_height",width:"_percent_width",left:"_percent_left",top:"_percent_top"};isc.A.$90f={height:"minHeight",width:"minWidth"};isc.A.$90u={height:"maxHeight",width:"maxWidth"};isc.A.$pc="resized";isc.A.$pd="childResized";isc.A.$151u="none";isc.A.momentumScrolling=true;isc.A.momentumScrollTime=1500;isc.A.momentumScrollMinSpeed=200;isc.A.momentumScrollAcceleration="smoothStart";isc.A.shouldSetNoDropTracker=isc.Browser.isOpera;isc.A.noDropTracker="[SKIN]/shared/no_drop.png";isc.A.$146z=(isc.Browser.$139c?function(){if(this.transitionsRemoved!=null)this.transitionsRemoved();var _1=this.children;for(var i=0,_3=(_1==null?0:_1.length);i<_3;++i){_1[i].$146z()}}:isc.Class.NO_OP);isc.A.adjustOverflowWhileDirty=true;isc.A.$pe={hidden:true,visible:true,scroll:true,auto:true,"clip-v":true,"clip-h":true,ignore:true};isc.A.$pf="sizing";isc.A.$pg="overflow";isc.A.$148n=false;isc.A.$146n=null;isc.A.$1390=false;isc.A.$1315="nativeScroll";isc.A.$143e="data-isc-page-space";isc.A.$ph="px";isc.A.$27r="none";isc.A.$411="relative";isc.A.$pi="disabled";isc.A.$27r="none";isc.A.$pj="styleName";isc.A.$pk="eventpart";isc.A.snapGridPaneConstructor="Canvas";isc.A.snapGridPaneDefaults={width:"100%",height:"100%"};isc.A.snapGridCrossLength=3;isc.A.snapGridLineDefaults={lineWidth:1};isc.A.$f8="count";isc.A.$pl=["edgeImage","edgeColor","customEdges","shownEdges","edgeSize","edgeTop","edgeBottom","edgeLeft","edgeRight","edgeOffset","edgeOffsetTop","edgeOffsetBottom","edgeOffsetLeft","edgeOffsetRight","canDragResize","canDragReposition"];isc.A.shadowDepth=4;isc.A.dragResizeFromShadow=true;isc.A.$pm="shadow";isc.A.$131z="snapHGap";isc.A.$1310="snapVGap";isc.A.$1311="childrenSnapToGrid";isc.A.$1312="childrenSnapResizeToGrid";isc.A.isGroup=false;isc.A.groupBorderCSS="2px solid black";isc.A.groupLabelPadding=10;isc.A.showGroupLabel=true;isc.A.groupLabelStyleName="groupLabel";isc.A.groupLabelDefaults={_constructor:"Label",overflow:"visible",height:1,width:1,$jo:false,wrap:false,vAlign:"center",align:"center",redraw:function(){var _1=this.Super("redraw",arguments);this.creator.$1332();return _1},handleParentMoved:function(){this.Super("handleParentMoved",arguments);this.creator.$1332()}};isc.A.showTriggerArea=false;isc.A.triggerAreaDefaults={redrawOnResize:false,_redrawWithParent:false,$jp:false,$jo:false,overflow:"hidden",canFocus:false,$1515:function(){var _1=this.masterElement,_2=_1.$1516();this.setRect(_2)},masterResized:function(){this.$1515()}};isc.A.triggerAreaTop=5;isc.A.triggerAreaRight=5;isc.A.triggerAreaBottom=5;isc.A.triggerAreaLeft=5;isc.B.push(isc.A.init=function isc_Canvas_init(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){if(isc.$cv)arguments.$cw=this;if(!isc.Canvas.$80c){if(this.getDocumentBody(true)==null){isc.logWarn("Canvas created in a page outside the BODY tag. This is not supported. Isomorphic Software requires the tag to be present and all widgets be created and drawn inside it. Canvas details follow:\n"+isc.Log.echo(this))} isc.Canvas.$80c=true} this.ns.ClassFactory.addGlobalID(this);if(this.useTouchScrolling==false){if(isc.Browser.isTouch)this.showCustomScrollbars=true;this.useNativeTouchScrolling=false}else if(this.useNativeTouchScrolling&&this.$1399&&!this.alwaysShowScrollbars) {this.showCustomScrollbars=false} this._canvasList(true);if(this.position==null){this.position=this.htmlElement!=null?isc.Canvas.RELATIVE:isc.Canvas.ABSOLUTE} if(this.className!=null&&this.logIsInfoEnabled(this.$pj)){this.logInfo("'className' property specified. This property has been deprecated in favor of 'styleName' as of SmartClient 5.5.",this.$pj)} if(this.styleName!=null){if(this.className!=null){var _14=this.getPrototype(),_15=(this.styleName!=_14.styleName),_16=(this.className!=_14.className);if(_15)this.className=this.styleName;else if(_16)this.styleName=this.className;else this.styleName=this.className}else{this.className=this.styleName}}else if(this.className!=null){this.styleName=this.className} if(this.size!=null)this.height=this.width=this.size;this.$pn=this.width=isc.NumberUtil.parseIfNumeric(this.width);this.$po=this.height=isc.NumberUtil.parseIfNumeric(this.height);if(this.width==null)this.width=this.defaultWidth;if(this.height==null)this.height=this.defaultHeight;this.$o8=this.height;if(isc.isA.String(this.margin)){var _17=parseInt(this.margin);if(isc.isA.Number(_17))this.margin=_17;else{this.logWarn("Invalid setting for this.margin:"+this.margin+". This should be a numeric value - ignoring");this.margin=null}} if(isc.isA.String(this.padding)){var _18=parseInt(this.padding);if(isc.isA.Number(_18))this.padding=_18;else{this.logWarn("Invalid setting for this.padding:"+this.padding+". This should be set to a numeric value - ignoring");this.padding=null}} if(this.border!=null&&!isc.isA.String(this.border)){this.border=this.$63e(this.border)} if(this.borderRadius!=null&&!isc.isA.String(this.borderRadius)){this.borderRadius=this.$95d(this.borderRadius)} if(this.percentSource)this.setPercentSource(this.percentSource,true);this.$pp=true;this.resizeTo(this.width,this.$o8,undefined,undefined,"init");this.moveTo(this.left,this.top);this.$pp=null;if(this.children&&!isc.isAn.Array(this.children))this.children=[this.children];if(this.peers&&!isc.isAn.Array(this.peers))this.peers=[this.peers];if(this.enabled!=this.$nr){this.logWarn("Widget initialized with explicitly specified 'enabled' property. This property has been deprecated - use 'disabled' instead.");this.disabled=!this.enabled} if(this.redrawOnEnable!=null){this.logWarn("Widget initialized with deprecated 'redrawOnEnable' - use 'redrawOnDisable' instead.");this.redrawOnDisable=this.redrawOnEnable} if(this.$145l()){this.$144x=1} this.$151k();this.initWidget(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13);this.$pq();if(this.showShadow)this.$pr();if(this.clipCorners)this.$ps();if(this.shouldUseBackMask()){this.makeBackMask()} if(this.isGroup){this.isGroup=null;this.setIsGroup(true)} if(this.showTriggerArea)this.$1517();if(this.children)this.children.setProperty(this.$n5,false);if(this.peers)this.peers.setProperty(this.$n5,false);if(this.observes){var _19,_20,_21=this.observes,_22=_21.length;for(var i=0;i<_22;i++){var _19=_21[i];if(!_19)continue;if(isc.isA.String(_19.source))_20=this.getGlobalReference(_19.source);else _20=_19.source;if(_20){this.observe(_20,_19.message,_19.action)}}} this.$pt();if(this.autoChildren)this.addAutoChildren(this.autoChildren);if(this.addOns)this.addAutoChildren(this.addOns);if(this._adjacentHandle&&!this.drawContext){this.drawContext={element:this._adjacentHandle}} if(this.htmlElement){var _24=this.htmlElement;delete this.htmlElement;this.setHtmlElement(_24)} if(this.eventProxy!=null){if(!isc.isA.Canvas(this.eventProxy)){this.logWarn("Canvas ID:'"+this.getID()+"' initialized with bad eventProxy. This property should be set to another Canvas instance. Clearing this property.") delete this.eventProxy}else{if(this.eventProxy.$kt==null)this.eventProxy.$kt=[];this.eventProxy.$kt.add(this)}} if(this.parentCanvas){this.parentElement=this.parentCanvas} var _25=this.parentElement;if(_25){this.parentElement=null;if(isc.isA.String(_25))_25=window[_25];_25.addChild(this)} if(this.autoFetchAsFilter!=null){var _26=this.autoFetchAsFilter?"substring":"exact";this.logWarn("This component has autoFetchAsFilter explicitly specified as:"+this.autoFetchAsFilter+". This attribute is deprecated in favor of this.autoFetchTextMatchStyle. Defaulting autoFetchTextMatchStyle to \""+_26+"\" based on this setting.");this.autoFetchTextMatchStyle=_26} this.initializeValuesManager();if(this.showPanelHeader==true){if(this.setupPanelHeader)this.setupPanelHeader();if(this.refreshPanelControls)this.refreshPanelControls()} if(this.autoDraw&&!this.parentElement&&!isc.noAutoDraw){if(isc.Browser.isSafari&&!isc.Browser.isChrome&&isc.deferAutoDraw&&!isc.Page.isLoaded()&&this.position!="relative") {isc.Page.setEvent("load","if(window."+this.getID()+")"+this.getID()+".$77f()")}else{this.draw()}} if(this.showSnapGrid){this.$1313()}},isc.A.$77f=function isc_Canvas__deferredAutoDraw(){if(this.destroyed||this.isDrawn())return;this.draw()},isc.A.initWidget=function isc_Canvas_initWidget(){},isc.A.setID=function isc_Canvas_setID(_1){var _2=this.pointersToThis=this.pointersToThis||[];_2.add({object:window,property:this.ID});this.ns.EH.changeClickMaskID(this.getID(),_1);this.ID=_1;window[_1]=this;this.clear();this.draw()},isc.A.clearIDs=function isc_Canvas_clearIDs(){this.clear();window[this.ID]=null;if(this.children){for(var i=0;i"},isc.A.$pw=function isc_Canvas__sizeIFrame(){var _1=this.getDrawnState();if(_1!=isc.Canvas.COMPLETE&&_1!=isc.Canvas.HANDLE_DRAWN)return;var _2=this.getHandle(),_3=_2?_2.firstChild:null;if(_3==null)return;_3.style.height=(this.getInnerContentHeight()-this.iFrameHeightAdjustment)+isc.px},isc.A.$px=function isc_Canvas__getInnerHTML(_1){if(isc.$cv)arguments.$cw=this;this.$py();var _2=this;var _3=function completeInnerHTMLFun(_5){if(_2.$pz){var _4=_2.$pz.join(isc.emptyString);_5=(_5==null||_5==isc.nbsp?_4:_5+_4)} if(_1!=null)_2.fireCallback(_1,"HTML",[_5]);return _5};var _5=this.getInnerHTML(_3);if(_5===false){return false}else{_1=null;return _3(_5)}},isc.A.setSnapOffsetLeft=function isc_Canvas_setSnapOffsetLeft(_1){var _2=this.snapOffsetLeft;this.snapOffsetLeft=_1;if(_2!=_1)this.$qw()},isc.A.setSnapOffsetTop=function isc_Canvas_setSnapOffsetTop(_1){var _2=this.snapOffsetTop;this.snapOffsetTop=_1;if(_2!=_1)this.$qw()},isc.A.readyToDraw=function isc_Canvas_readyToDraw(){var _1=this.getDrawnState();if(this.getDrawnState()!=isc.Canvas.UNDRAWN){var _1=this.getDrawnState();this.logWarn("draw() called on widget with current drawn state: "+_1+(_1==isc.Canvas.COMPLETE?", use redraw() instead.":", ignoring.")+this.getStackTrace(),"drawing");return false} if(this.showIf!=null){this.convertToMethod("showIf");if(this.showIf(this)==false)return false} var _2=this.getWidth(),_3=this.getHeight();if(_2<=0||_3<=0){if(this.$77g){this.$77h();return false} if(!isc.NativeScrollbar||!isc.isA.NativeScrollbar(this)||_2<0||_3<0){this.logWarn("negative or zero area: height: "+this.getHeight()+", width: "+this.getWidth()+", refusing to draw"+this.getStackTrace(),"drawing")} return false} if(this.deferredDrawEvent!=null){this.logInfo("draw() called while object already pending a delayed draw - no action to take","drawing");return false} if(this.parentElement!=null&&(!isc.isA.Canvas(this.parentElement)||this.parentElement.getDrawnState()==isc.Canvas.UNDRAWN)) {this.logWarn("Attempt to draw child of an undrawn parent - ignoring"+this.getStackTrace(),"drawing");return false} if(isc.Browser.isSafari&&!isc.Page.isLoaded()){var _4=isc.Browser.safariVersion;if(parseInt(_4)<100){this.drawDeferred();return false}else{}} return true},isc.A.$77h=function isc_Canvas__deferDrawForPageSize(){if(isc.Page.isLoaded())this.drawDeferred();else{isc.Page.setEvent("load",this.getID()+".$77i()")}},isc.A.$77i=function isc_Canvas__fireDeferredDrawForPageResize(){if(this.destroyed)return;if(isc.Page.getWidth()==0||isc.Page.getHeight()==0){this.delayCall("draw",null,100)} else{this.draw()}},isc.A.$p2=function isc_Canvas__mustDocumentWrite(){return false},isc.A.$p4=function isc_Canvas__requestsDocumentWrite(){if(this.$p5)return true;var _1=this.parentElement;while(_1){if(_1.$p5)return true;_1=_1.parentElement} if(this.children){for(var i=0;i0){this.predrawPeers()} var _3=(isc.Browser.isIE&&this.fixIEOpacity&&!this.masterElement),_4=isc.Element.cacheOffsetCoords,_5=this.parentElement!=null&&this.parentElement.$1390;if(this.position==isc.Canvas.RELATIVE){_4=false} if(_3||_4){var _6=this.parentElement;while(_6!=null){if(_6.opacity!=null&&_6.opacity!=100){this.setOpacity(100,null,true);_3=false;if(!_4)break} if(_6.position==isc.Canvas.RELATIVE){_4=false;if(!_3)break} _6=_6.parentElement}} if(_5){this.$808=this.$809=null;this.$1390=true;this.$1391=_4;this.cacheOffsetCoords=false}else{this.$1390=false;this.cacheOffsetCoords=_4;delete this.$1391} if(this.htmlElement!=null&&this.matchElement){if(isc.isA.String(this.htmlElement))this.htmlElement=isc.Element.get(this.htmlElement);var _7=isc.Element.getNativeInnerWidth(this.htmlElement),_8=isc.Element.getNativeInnerHeight(this.htmlElement);this.setWidth(_7);this.setHeight(_8)} var _9=this.parentElement;var _10=(!isc.Page.isLoaded()&&!this.drawContext&&(_9==null&&this.position==isc.Canvas.RELATIVE));_10=_10||this.$p2();var _11=this.separateContentInsertion;if(isc.Page.isLoaded()||!_10){this.$p8(!_11);if(_11)this.$p9();this.drawChildren();this.$qa()}else{var _6=this.parentElement;if((isc.Browser.isOpera||isc.Browser.isIE)&&this.getDocument().readyState=="complete") {isc.Page.finishedLoading()} this.$qb()} if(_2)isc.RPCManager.sendQueue();if(this._useFocusProxy&&this.$kk())this.makeFocusProxy();if(this.accessKey!=null&&this.$qc()&&this.$kk()){this.$qd()} if(this.$qe!=null) this.enforceScrollSize(this.$qe[0],this.$qe[1]);if(this.$qf())isc.EH.$mz([this]);if(this.clipCorners)this.$qg();this.$806=this.isVisible();if(!_1&&this.$806)this.show();if(this.parentElement)this.parentElement.childDrawn(this);if(this.masterElement)this.masterElement.peerDrawn(this);if(this.parentElement==null&&isc.Page.isLoaded()&&!isc.Page.pollPageSize) {if(this.getPageRight()>=isc.Page.getWidth()||this.getPageBottom()>=isc.Page.getHeight()) {isc.EH.fireOnPause("checkForBodyOverflowChange",{target:isc.Canvas,methodName:"checkForPageResize"},100)}} if(this.parentElement==null&&this.position==this.$411){this.$412=this.getPageLeft();this.$413=this.getPageTop();isc.Page.setEvent("resize",this,isc.Page.FIRE_ONCE,"$414")} if(this.useDragMask){isc.EH.registerMaskableItem(this,true)} this.onDraw();if(this.editProxy&&this.editingOn){if(this.editProxy.hasEditMask())this.editProxy.showEditMask(this.parentElement);if(this.editContext.isComponentSelected(this))this.editContext.refreshSelectedAppearance(this)} if(!this.$qz&&this.overflow==isc.Canvas.VISIBLE){var _12=this.getVisibleWidth(),_13=this.getVisibleHeight(),w=this.getWidth(),h=this.getHeight();if(_12>w||_13>h){this.$5y(_12-w,_13-h,"Overflow on initial draw")}} return this},isc.A.onDraw=function isc_Canvas_onDraw(){},isc.A.doInitialFetch=function isc_Canvas_doInitialFetch(){},isc.A.$qb=function isc_Canvas__writeHTML(){this.setDrawnState(isc.Canvas.DRAWING_HANDLE);var _1=this.getDocument(),_2=this.separateContentInsertion;if(this.children!=null&&this.$p2()){this.$p5=true;var _3=this.getTagStart(),_4=this.getTagEnd();_1.write(_2?_3:_3+this.$px()) this.drawChildren();_1.write(_2?this.$px()+_4:_4);this.setDrawnState(isc.Canvas.HANDLE_DRAWN)}else{_1.write(isc.SB.concat(this.getTagStart(),(_2?null:this.$px()),this.getTagEnd()));this.setDrawnState(isc.Canvas.HANDLE_DRAWN);if(_2)this.$p9();this.drawChildren()} this.$qa();if(isc.Browser.isMoz&&this.getScrollingMechanism()==isc.Canvas.NATIVE) this.checkNativeScroll();return this},isc.A.drawDeferred=function isc_Canvas_drawDeferred(){var _1=(isc.Page.isLoaded()?"idle":"load");if(this.deferredDrawEvent!=null){this.logInfo("drawDeferred() called when object is already pending drawing - No action to take.");return} var _2=this.getID();this.deferredDrawEvent=isc.Page.setEvent(_1,"delete "+_2+".deferredDrawEvent;"+_2+".draw();",isc.Page.FIRE_ONCE)},isc.A.getPrintHTML=function(printProperties,callback){this.isPrinting=true;printProperties=isc.addProperties({},printProperties,this.printProperties);if(printProperties.topLevelCanvas==null){printProperties.topLevelCanvas=this;printProperties.isDrawn=this.isDrawn();printProperties.isVisible=this.isVisible()} if(printProperties.omitControls==null) printProperties.omitControls=isc.Canvas.printOmitControls;if(printProperties.includeControls==null) printProperties.includeControls=isc.Canvas.printIncludeControls;var absPos=printProperties.absPos;this.currentPrintProperties=printProperties;var HTML=[this.getPrintTagStart(absPos),,,this.getPrintTagEnd(absPos)];var wentAsync=false;var self=this;var continuePrintHTMLFun=function continuePrintHTMLFun(printInnerHTML){HTML[1]=printInnerHTML;delete printProperties.inline;printProperties.absPos=self.printChildrenAbsolutelyPositioned;if(printProperties.omitComponents){var omitComponents=printProperties.omitComponents for(var i=0;i0){var childrenHTML=[],childCount=children.length,completedCount=0;var childHTMLComplete=function childHTMLComplete(childIndex,html){childrenHTML[childIndex]=html;++completedCount;if(completedCount==childCount){return completePrintHTML(childrenHTML)}};var thisHTML=null;for(var i=0;i0;if(_4&&_5==_2.$54t)_5=isc.emptyString;if(_1!=null)_2.fireCallback(_1,"HTML",[_5]);return _5};var _5=this.$px(_3);if(_5===false){return null}else{_1=null;if(_5==null)_5=isc.emptyString;return _3(_5)}},isc.A.getPrintChildren=function isc_Canvas_getPrintChildren(){var _1=this.children;if(!_1||_1.length==0)return;var _2=[];for(var i=0;i<_1.length;i++){if(this.shouldPrintChild(_1[i]))_2.add(_1[i])} return(_2.length>0)?_2:null},isc.A.shouldPrintChild=function isc_Canvas_shouldPrintChild(_1){if(_1.shouldPrint!=null)return _1.shouldPrint;if(_1.masterElement)return false;var _2=this.currentPrintProperties,_3=_2.omitControls,_4=_2.omitComponents;if(!isc.isAn.Instance(_1)||(_4&&_4.contains(_1))) {return false} if(_3){var _5=_2.includeControls;if(_5&&_5.length>0){for(var i=0;i<_5.length;i++){var _7=_5[i];if(isc.isA[_7]&&isc.isA[_7](_1))return true}} for(var i=0;i<_3.length;i++){var _7=_3[i];if(isc.isA[_7]&&isc.isA[_7](_1)){return false}}} if((!_1.isDrawn()&&_2.isDrawn)||(!_1.isVisible()&&_2.isVisible))return false;return true},isc.A.$xo=function isc_Canvas__fixPNG(){if(this.isPrinting)return false;return true},isc.A.getPrintStyleName=function isc_Canvas_getPrintStyleName(){return this.printStyleName||this.styleName},isc.A.getPrintTagStart=function isc_Canvas_getPrintTagStart(_1){var _2=this.currentPrintProperties,_3=_2.topLevelCanvas==this,_4=!_3&&!_1&&_2.inline,_5=this.getPrintStyleName();var _6;if(this.isGroup){_6=this.getPrintHTMLTagStart()} return[_6,(_4?""].join(isc.emptyString)},isc.A.getPrintHTMLTagStart=function isc_Canvas_getPrintHTMLTagStart(){var _1="
";if(this.groupTitle!=null){_1+=""+this.groupTitle+""} return _1},isc.A.getPrintHTMLTagEnd=function isc_Canvas_getPrintHTMLTagEnd(){return"
"},isc.A.getPrintTagStartAttributes=function isc_Canvas_getPrintTagStartAttributes(_1){if(_1){return" style='position:absolute;left:"+this.getLeft()+"px;top:"+this.getTop()+"px;width:"+this.getWidth()+"px;height:"+this.getHeight()+"px;' "}else if(this.printChildrenAbsolutelyPositioned){return" style='position:relative;width:"+this.getScrollWidth()+"px;height:"+this.getScrollHeight()+"px;background-color:lightblue;' "} return null},isc.A.getPrintTagEnd=function isc_Canvas_getPrintTagEnd(_1){var _2=this.currentPrintProperties,_3=_2.topLevelCanvas==this,_4=!_3&&!_1&&_2.inline;var _5;if(this.isGroup){_5=this.getPrintHTMLTagEnd()} var _6=(this.wrap==false)?"":_4?"
":"";if(this.isGroup)_6+=_5;return _6},isc.A.shouldUseBackMask=function isc_Canvas_shouldUseBackMask(){if(!this.useBackMask)return false;if(isc.Browser.isIE&&isc.Browser.minorVersion<5.5)return false;if(!isc.Canvas.useMozBackMasks&&isc.Browser.isMoz)return false;return true},isc.A.makeBackMask=function isc_Canvas_makeBackMask(_1){if(isc.Browser.isMoz&&!isc.Page.isLoaded()){this.$49t=_1;isc.Page.setEvent("load",this,isc.Page.FIRE_ONCE,"makeBackMask");return} if(this.$49t){_1=this.$49t;delete this.$49t} this._backMask=isc.BackMask.create(_1);this.addPeer(this._backMask);this._backMask.setZIndex(this.getZIndex(true)-2);this.$qi()},isc.A.makeFocusProxy=function isc_Canvas_makeFocusProxy(){if(!this._useFocusProxy||this.$qj||this.$qk||!this.isDrawn()||this.$ql!=null)return;this.$qk=true;this.$qm();this.$qk=null},isc.A.$qm=function isc_Canvas__makeFocusProxy(){if(!isc.Page.isLoaded()&&isc.Browser.isSafari){this.getTabIndex();this.$ql=isc.Page.setEvent("load",this,null,"delayedMakeFocusProxy");return} var _1=this.getTabIndex();if(this.isDisabled())_1=-1;if(isc.Browser.isSafari&&_1==-1){return} var _2=(isc.Browser.isSafari?1:this.getViewportWidth()),_3=(isc.Browser.isSafari?1:this.getViewportHeight());var _4=isc.Canvas.getFocusProxyString(this.getCanvasName(),true,this.getOffsetLeft()-1,this.getOffsetTop()-1,_2,_3,this.isVisible(),this.$kk(),_1,this.accessKey,false,this.$qn(),this.$qo());isc.Element.insertAdjacentHTML(this.getClipHandle(),"afterEnd",_4) this.$qj=true},isc.A.delayedMakeFocusProxy=function isc_Canvas_delayedMakeFocusProxy(){this.$ql=null;this.makeFocusProxy()},isc.A.$qp=function isc_Canvas__clearFocusProxy(){if(!this._useFocusProxy)return;if(this.$ql!=null){isc.Page.clearEvent("load",this.$ql);this.$ql=null} if(!this.$qj)return;var _1=this.$qq();if(_1!=null){if(isc.Browser.isDOM){if(_1.parentNode){_1.parentNode.removeChild(_1)}else{this.logWarn("Unable clear focusProxy for this widget - element has no parentNode.")}} this.$qr=null} this.$qj=null},isc.A.$qc=function isc_Canvas__useAccessKeyProxy(){var _1=(isc.Browser.isChrome||(isc.Browser.isMoz&&this._useNativeTabIndex));return _1},isc.A.$qd=function isc_Canvas__makeAccessKeyProxy(){var _1=this.accessKey;if(!_1||!this.isDrawn()||!this.$kk())return;var _2=this.$qs("focusProxy");var _3=isc.StringBuffer.concat("");isc.Element.insertAdjacentHTML(this.getClipHandle(),"beforeEnd",_3);this.$qt=isc.Element.get(_2)},isc.A.$qu=function isc_Canvas__clearAccessKeyProxy(){var _1=this.$qt;delete this.$qt;if(_1)isc.Element.clear(_1)},isc.A.drawChildren=function isc_Canvas_drawChildren(){if(this.children==null)return true;if(this.isDrawn()){this.logWarn("drawChildren() is only safe to call BEFORE a canvas has been drawn"+this.getStackTrace());return} if(this.children&&this.logIsInfoEnabled(this.$n3)){this.logInfo("drawChildren(): "+this.children.length+" children",this.$n3)} this.$pt();this.layoutChildren(this.$od);if(this.manageChildOverflow)this.$qv=true;for(var i=0;i0;--_16){var _17=_14[_16-1];if(_17.handleDrawn()||_17.isDrawn()){_10.element=_17.getClipHandle();_10.position=this.$n9;break}} if(_16==0){++i;for(var _18=_14.length;i<_18;++i){var _17=_14[i];if(_17.handleDrawn()||_17.isDrawn()){_10.element=_17.getClipHandle();_10.position=this.$n6;break}}}} _8=this.$q1(_10.element,_10.position,_6,true)}else{if(_9){this.logDebug("inserting HTML at top level","drawing")} _8=this.$q2(_6)} if(_8!=null){if(this.$113l){this._clipDiv=_8;this.$q3=_8.firstChild}else{this.$q3=_8}} this.setDrawnState(isc.Canvas.HANDLE_DRAWN)},isc.A.$q2=function isc_Canvas__createAbsoluteElement(_1){return this.ns.Element.createAbsoluteElement(_1)},isc.A.$q1=function isc_Canvas__insertAdjacentHTML(_1,_2,_3,_4){return this.ns.Element.insertAdjacentHTML(_1,_2,_3,_4)},isc.A.$qa=function isc_Canvas__completeHTMLInit(){this.modifyContent();if((isc.Browser.isSafari||isc.Browser.isMoz)&&isc.Browser.isStrict&&this.containsIFrame())this.$pw();if(this.manageChildOverflow&&this.children!=null){this.$qx(this.children)} this.setUpEvents();if(this.$q4){this.$q5(this.left,this.top,this.width,this.$o8);var _1=this.$q6;if(isc.isAn.Array(_1))this.setClip(_1)} this.setDrawnState(isc.Canvas.COMPLETE);this.$q7=false;this.$ve();if(this.$145l()){var _2=this.parentElement;while(_2!=null){_2.$144z();_2=_2.parentElement}} if(this.parentElement==null)isc.Canvas.$q8(this);if(this.parentElement!=null&&this.parentElement.$qv){this.$qz=true}else{this.adjustOverflow(this.$ny)} this.drawPeers()},isc.A.setHtmlElement=function isc_Canvas_setHtmlElement(_1){if(this.htmlElement==_1)return;this.htmlElement=_1;if(!this.htmlPosition)this.htmlPosition="afterBegin";var _2=_1?{position:this.htmlPosition,element:this.htmlElement}:null;this.setDrawContext(_2)},isc.A.setHtmlPosition=function isc_Canvas_setHtmlPosition(_1){if(_1==null)_1="afterBegin";if(this.htmlPosition==_1)return;this.htmlPosition=_1;if(this.htmlElement==null)return;var _2={position:this.htmlPosition,element:this.htmlElement};this.setDrawContext(_2)},isc.A.isDirty=function isc_Canvas_isDirty(){return this.$q7==true},isc.A.markForRedraw=function isc_Canvas_markForRedraw(_1){if(isc.$cv)arguments.$cw=this;if(this.isDrawn()&&!this.isDirty()){this.$q9(_1);isc.Canvas.scheduleRedraw(this);this.$q7=true}},isc.A.readyToRedraw=function isc_Canvas_readyToRedraw(_1,_2){if(isc.$cv)arguments.$cw=this;if(!this.isDrawn()){return false} var _3=true;var _4=this.ns.EH;if(_4.lastTarget==this&&(_4.$ku||_4.$km||(isc.Browser.isMobileWebkit&&_4.dragOperation==_4.DRAG_SCROLL))) {_3=false} if(_4.$129k()){if(isc.Browser.isChrome){var _5=_4.mouseDownEvent;if(_5!=null&&_5.DOMevent.target!=null&&this.getClipHandle().contains(_5.DOMevent.target)) {_3=false}}else if(isc.Browser.isMobileWebkit){var _5=_4.mouseDownEvent,_6=_4.lastEvent;if(_5!=null&&_6.DOMevent.target!=null&&_6.DOMevent.target===_5.DOMevent.target&&this.getClipHandle().contains(_6.DOMevent.target)) {_3=false}}} if(_3==false&&_2){this.$q9(_1,true);this.priorityRedraw=true;this.$q7=false;this.markForRedraw(false)} return _3},isc.A.$q9=function isc_Canvas__logRedraw(_1,_2){if(_1==false||!this.logIsInfoEnabled(this.$n4))return;var _3=(!_1&&this.logIsDebugEnabled(this.$n4)||this.logIsDebugEnabled("redrawTrace"));var _4;if(_2==null)_4="Scheduling redraw ";else _4=(_2==true?"DEFERRED ":"")+"Immediate redraw ";this.logInfo(_4+(this.isDirty()&&_2!=null?"of dirty widget ":"")+(this.children&&this.children.length>0?"("+this.getChildCount()+" children) ":"")+"("+(_1?_1:"no reason provided")+")"+(_3?this.getStackTrace():""),this.$n4)},isc.A.redraw=function isc_Canvas_redraw(_1){if(isc.$cv)arguments.$cw=this;if(!this.readyToRedraw(_1,true))return this;this.$q9(_1,false);this.$p6(this.$n4);var _2=isc.timeStamp();this.$ra();this.$rb=isc.timeStamp()-_2;return this},isc.A.redrawIfDirty=function isc_Canvas_redrawIfDirty(_1){if(this.isDrawn()&&this.isDirty())return this.redraw(_1)},isc.A.$ra=function isc_Canvas__updateHTML(){var _1=this.logIsDebugEnabled(this.$n3),_2=this.logIsInfoEnabled(this.$n3),_3;if(_1)_3=isc.timeStamp();if(_2)this.logInfo("$ra(): redrawing","drawing");if(this.peers!=null&&this.peers.getLength()>0)this.redrawPredrawnPeers();var _4=this.children&&this.children.length>0,_5=this.allowContentAndChildren&&_4;if(_4&&!_5&&this.shouldRedrawOnResize()){_5=true} if((!_4||_5)&&(this.getVisibleWidth()>this.getWidth()||this.getVisibleHeight()>this.getHeight())) {if(this.notifyAncestorsOnReflow&&this.parentElement!=null){this.notifyAncestorsAboutToReflow()} this.$q5(null,null,this.width,this.$o8)} if(_4){if(_5)this.$p9();this.redrawChildren()}else{this.$rd()} if(this.$qe&&!_4){delete this.$re;this.enforceScrollSize(this.$qe[0],this.$qe[1])} this.modifyContent();this.setUpEvents();this.$q7=false;this.adjustOverflow(this.$n0,null,true);this.redrawPeers();if(_1){this.logDebug("Redraw() - Total time to redraw in DOM:"+(isc.timeStamp()-_3),"drawing")} if(this.notifyAncestorsOnReflow&&this.parentElement!=null){this.notifyAncestorsReflowComplete()} return this},isc.A.notifyAncestorsAboutToReflow=function isc_Canvas_notifyAncestorsAboutToReflow(){if(this.parentElement)this.parentElement.$86k(this)},isc.A.notifyAncestorsReflowComplete=function isc_Canvas_notifyAncestorsReflowComplete(){if(this.parentElement)this.parentElement.$86l(this)},isc.A.$86k=function isc_Canvas__childAboutToReflow(_1){if(this.overflow!=isc.Canvas.VISIBLE){this.$86m=this.getScrollTop();this.$86n=this.getScrollLeft();this.$417=true}else{if(this.parentElement)this.parentElement.$86k(_1)}},isc.A.$86l=function isc_Canvas__childReflowComplete(_1){if(this.overflow!=isc.Canvas.VISIBLE&&this.$417){delete this.$417;var _2=false,_3,_4;if(this.$86m!=null&&this.$86m!=this.getScrollTop()){_2=true;_4=this.$86m;delete this.$86m} if(this.$86n!=null&&this.$86n!=this.getScrollLeft()){_2=true;_3=this.$86n;delete this.$86n} if(_2){this.scrollTo(_3,_4,"Reset scroll position for child content reflow")}}else{if(this.parentElement)this.parentElement.$86l(_1)}},isc.A.$p9=function isc_Canvas__updateParentHTML(){var _1=this.$px(),_2=this.getHandle();while(_2.hasChildNodes()){var _3=_2.firstChild.getAttribute?_2.firstChild.getAttribute(this.$of):null;if(_3&&isc.isA.Canvas(window[_3]))break;_2.removeChild(_2.firstChild)} isc.Element.insertAdjacentHTML(_2,this.$n7,_1)},isc.A.$rd=function isc_Canvas__updateInnerHTML(){var _1=this.isPrinting;this.isPrinting=false;var _2=this.$px();this.getHandle().innerHTML=_2;this.isPrinting=_1},isc.A.modifyContent=function isc_Canvas_modifyContent(){},isc.A.redrawChildren=function isc_Canvas_redrawChildren(){if(!this.children)return true;this.logInfo("redrawChildren(): "+this.children.length+" children","drawing");for(var _1=this.children,i=0;i<_1.length;i++){var _3=_1[i];if(!isc.isA.Canvas(_3))continue;if(_3._redrawWithParent){_3.redraw(false)}}},isc.A.redrawPredrawnPeers=function isc_Canvas_redrawPredrawnPeers(){if(!this.peers||this.peers.getLength<1)return;for(var _1=this.peers,i=0;i<_1.length;i++){if(_1[i]&&_1[i].$jp&&_1[i].$q0){_1[i].redraw("redrawPeers")}}},isc.A.redrawPeers=function isc_Canvas_redrawPeers(){if(!this.peers)return true;this.logInfo("redrawPeers(): "+this.peers.length+" peers","drawing");for(var _1=this.peers,i=0;i<_1.length;i++){if(_1[i]&&_1[i].$jp&&!_1[i].$q0){_1[i].redraw("redrawPeers")}}},isc.A.updateFromServer=function isc_Canvas_updateFromServer(_1){_1=isc.clone(_1);isc.addProperties(_1,{useXmlHttpRequest:true,evalResult:true,suppressAutoDraw:true});if(!_1.evalVars)_1.evalVars={};if(!_1.evalVars.targetComponent)_1.evalVars.targetComponent=this;isc.rpc.sendRequest(_1)},isc.A.refreshFromServer=function isc_Canvas_refreshFromServer(_1,_2,_3,_4){this.$rf("refresh",_1,_2,_3,_4)},isc.A.replaceFromServer=function isc_Canvas_replaceFromServer(_1,_2,_3,_4){this.$rf("replace",_1,_2,_3,_4)},isc.A.$rf=function isc_Canvas__refreshOrReplaceFromURL(_1,_2,_3,_4,_5){if(this.$rg){this.logWarn("Attempt to "+_1+" while "+this.$rh+" is in progress - ignoring.");return} this.$rg=true;this.$rh=_1;this.$ri=_5;this.logDebug("Submitting to "+_1+" URL: "+_2+", with data: "+this.echo(_3));isc.Comm.sendFieldsToServer({URL:_2,fields:_3,prompt:_4,callback:this.getID()+".$rj(frame)",resultVarName:this.refreshVariable})},isc.A.$rj=function isc_Canvas__refreshReply(_1){this.$rg=false;var _2=this.$rh;var _3=_1[this.refreshVariable];if(!isc.isAn.Object(_3)){this.logError("Expected object literal for "+_2+", but got: "+isc.Log.echo(_3));return} _3=isc.clone(_3);var _4=this;if(_2=="refresh")this.setProperties(_3);else{if(!_3._constructor)_3._constructor=this.getClassName();_4=this.replaceWith(_3)} isc.clearPrompt();if(this.$ri){if(!isc.isA.Function(this.$ri)){this.$ri=isc.Func.expressionToFunction("canvas",this.$ri)} if(!isc.isA.Function(this.$ri)){this.logError("Can't convert "+_2+" callback '"+this.$ri+" to a function - not firing callback!");return} this.$ri(_4)}},isc.A.clear=function isc_Canvas_clear(_1){this.$66p=true;if(!_1&&this.logIsInfoEnabled("clears")){var _2="clear()"+(this.children&&this.children.length>0?" ("+this.getChildCount()+" children) ":"")+(this.logIsDebugEnabled("clears")?this.getStackTrace():"");this.logInfo(_2,"clears")} this.$rk();if(this._eventMask)this.ns.EH.unregisterMaskableItem(this);if(this._useFocusProxy)this.$qp();if(this.children){for(var _3=this.children,i=0;i<_3.length;i++){var _5=_3[i];if(!isc.isA.Canvas(_5))continue;_5.$74w=true;_5.clear(true);_5.$74w=null}} if(this.getHandle()){this.clearHandle();if(this.$145l()){var _6=this.parentElement;while(_6!=null){_6.$1440();_6=_6.parentElement}}} if(this.parentElement)this.parentElement.childCleared(this);if(this.masterElement)this.masterElement.peerCleared(this);delete this.$re;delete this.$qt;if(this.deferredDrawEvent){isc.Page.clearEvent(this.deferredDrawEvent);delete this.deferredDrawEvent} if(this.peers){for(var _3=this.peers,i=0;i<_3.length;i++){if(this.$74w)_3[i].$74w=true;_3[i].clear(true);_3[i].$74w=null}} if(this.canAcceptDrop)this.ns.EH.unregisterDroppableItem(this);this.setDrawnState(isc.Canvas.UNDRAWN);delete this.$66p},isc.A.destroy=function isc_Canvas_destroy(_1,_2,_3,_4,_5){if(this.selectionComponent){this.ignore(this.selectionComponent,"selectionChanged");this.ignore(this.selectionComponent,"cellSelectionChanged")} if(this.doNotDestroy){this.clear();return} if(this.destroyed)return;this.destroying=true;this.prepareForDestroy(_1,_2,_3,_4,_5);this.destroyed=true;this.invokeSuper(isc.Canvas,"destroy",_1,_2,_3,_4,_5)},isc.A.prepareForDestroy=function isc_Canvas_prepareForDestroy(_1,_2,_3,_4,_5){if(this.$112p&&this.$112p.$112o){for(i in this.$112p.$112o){if(this.$112p.$112o[i]==this){delete this.$112p.$112o[i]}}} if(this.$rm)isc.Timer.clearTimeout(this.$rn);this.hideClickMask();this.$75s(true,_1);if(isc.Hover.lastHoverCanvas==this)isc.Hover.hide();this.clear(true);if(this.masterElement)this.depeer();else if(this.parentElement)this.deparent();if(this.children){for(var _6=this.children.duplicate(),i=0;i<_6.length;i++){var _8=_6[i];if(!isc.isA.Canvas(_8))continue;if(_8.destroyWithParent===false)_8.deparent();else _8.destroy(true)}} if(this.peers){for(var _6=this.peers.duplicate(),i=0;i<_6.length;i++){if(_6[i].destroyWithMaster===false)_6[i].depeer();else _6[i].destroy(true)}} delete this.peers;delete this.children;if(this.hscrollbar&&!this.hscrollbar.destroyed){this.hscrollbar.destroy(true);delete this.hscrollbar} if(this.vscrollbar&&!this.vscrollbar.destroyed){this.vscrollbar.destroy(true);delete this.vscrollbar} var _9=this.$542;if(_9!=null){for(var _10 in _9){var _11=_9[_10];for(var i=0,_12=_11.length;i<_12;++i){var _13=_11[i],_8=(_13?window[_13]:null)||this[_10];if(_8&&!_8.destroyed&&_8.destroy&&!_8.dontAutoDestroy){_8.destroy()}} delete this[_10]}} if(this.eventProxy!=null)this.clearEventProxy();if(this.$kt!=null){for(var _6=this.$kt.duplicate(),i=0;i<_6.length;i++){_6[i].clearEventProxy()}} if(this.locatorParent&&this.locatorParent.locatorChildDestroyed){this.locatorParent.locatorChildDestroyed(this)} delete this.locatorParent;this._canvasList();isc.Canvas.$ro(this);this.$rp();isc.EH.canvasDestroyed(this);isc.ClassFactory.dereferenceGlobalID(this);if(this.pointersToThis!=null){for(var i=0;i0?" ("+this.getChildCount()+" children) ":"")+(this.logIsDebugEnabled("destroys")?this.getStackTrace():""),"destroys")}},isc.A.clearHandle=function isc_Canvas_clearHandle(_1){if(!this.getHandle())return;this.$p6("clears");this.getHandle().eventProxy=null;this.getClipHandle().eventProxy=null;var _2=this.getClipHandle();this.$q3=null;this.$rs=null;this._clipDiv=null;isc.Element.clear(_2,_1||this._clearWithRemoveChild);if(isc.Browser.$1395&&this.$146n!=null){isc.Timer.clear(this.$146n);this.$146n=null} delete this.$62u;delete this.$vh;this.$808=this.$809=null;delete this.$113l;_2.onscroll=null;if(this.$772!=null){this.cancelAnimation(this.$772);this.$772=null}},isc.A.replaceWith=function isc_Canvas_replaceWith(_1){if(!isc.isAn.Object(_1))return;var _2;if(isc.Browser.isDOM){var _3=isc.ClassFactory.getNextGlobalID();isc.Element.insertAdjacentHTML(this.getClipHandle(),"afterEnd","
");var _2=this.getDocument().getElementById(_3);_1.drawContext={element:_2}} var _4=this.parentElement,_5=this.masterElement,_6=(isc.isA.Layout(_4)&&_4.hasMember(this)),_7=(_6?_4.getMemberNumber(this):0);this.destroy();if(isc.isA.Canvas(_1)){_1.clear()}else{_1.autoDraw=false;_1=isc.ClassFactory.newInstance(_1);if(_1==null){this.logWarn("canvas.replaceWith(): Unable to create a widget instance from the argument passed in. Returning.") return}} if(_6){_4.addMember(_1,_7)}else if(_4){_4.addChild(_1)}else if(_5){_5.addPeer(_1)} if(!_1.isDrawn())_1.draw();if(isc.Browser.isDOM){if(_2.parentNode){_2.parentNode.removeChild(_2)}else{this.logWarn("unable to clear marker")}} return _1},isc.A.setDrawContext=function isc_Canvas_setDrawContext(_1){var _2=this.isDrawn();this.deparent();if(_2)this.clear();this.drawContext=_1;if(_2)this.draw()},isc.A.$qs=function isc_Canvas__getDOMID(_1,_2,_3){if(_2){var _4=isc.ClassFactory.getDOMID(this.getID(),_1);if(this.reuseDOMIDs){if(!this.$63y)this.$63y=[];this.$63y[this.$63y.length]=_4} return _4} if(!this.$rt)this.$rt={};if(!this.$rt[_1]) this.$rt[_1]=isc.ClassFactory.getDOMID(this.getID(),_1);return this.$rt[_1]},isc.A.$557=function isc_Canvas__getDOMPartName(_1){if(!this.$rt)return null;for(var _2 in this.$rt){if(this.$rt[_2]==_1)return _2}},isc.A.$63x=function isc_Canvas__releaseDOMIDs(){if(!this.reuseDOMIDs)return;if(this.$63y){for(var i=0;i","
")}else{var _23=67;if(!_2.$r4){_2.$r5=" style='POSITION:absolute;LEFT:";_2.$r6=" style='POSITION:relative;LEFT:";_2.$bd=" class='";_2.$416="'";_2.$143g=" data-isc-page-space='";_2.$r7=";VISIBILITY:";_2.$r8=";CURSOR:";var _24=_2.$r4=[];_24[2]="' eventProxy=";_24[15]="px;TOP:";_24[22]="px;WIDTH:";_24[28]="px;HEIGHT:";_24[34]="px;Z-INDEX:";_24[44]=";OVERFLOW:";_24[_23]="' ONSCROLL='return ";_24[_23+2]=".$lh()' "} var _24=_2.$r4;_24[0]=(_14&&isc.Browser.isIE&&!isc.Browser.isIE10?this.$131l:this.$131k);_24[1]=this.getCanvasName();_24[3]=_4;if(this.className!=null){_24[4]=_2.$bd;_24[5]=this.className;_24[6]=_2.$416}else{_24[4]=_24[5]=_24[6]=null} _24[7]=(this.textDirection!=null?" dir="+this.textDirection:null);_24[8]=(this.position==_2.RELATIVE?_2.$r6:_2.$r5);isc.$bk(_24,_9,9,6);isc.$bk(_24,_10,16,6);isc.$bk(_24,_7,23,5);isc.$bk(_24,_8,29,5);if(this.zIndex!=_2.AUTO)isc.$bk(_24,this.zIndex,35,9);else{_24[35]=this.zIndex;_24[36]=_24[37]=_24[38]=_24[39]=_24[40]=_24[41]=_24[42]=_24[43]=null} _24[45]=_3;if(this.visibility!=_2.INHERIT){_24[46]=_2.$r7;_24[47]=this.visibility}else{_24[46]=_24[47]=null} _24[48]=(this.backgroundColor==null?null:";BACKGROUND-COLOR:"+this.backgroundColor);_24[49]=(this.backgroundImage==null?null:";BACKGROUND-IMAGE:url("+this.getImgURL(this.backgroundImage)+");BACKGROUND-REPEAT:"+this.backgroundRepeat+(this.backgroundPosition?";BACKGROUND-POSITION:"+this.backgroundPosition:""));if(!this.isBorderBox){_24[50]=null}else{_24[50]=";"+isc.Element.$1434+":border-box"} var _16=this.getCurrentCursor();if(_16==_2.AUTO){_24[51]=_24[52]=null}else{_24[51]=_2.$r8;_24[52]=_16} _24[53]=this.$r2();_24[54]=(this.padding!=null?";PADDING:"+this.padding+isc.px:null);if(this.topPadding!=null) _24[54]=(_24[54]||"")+";padding-top:"+this.topPadding+"px";if(this.bottomPadding!=null) _24[54]=(_24[54]||"")+";padding-bottom:"+this.bottomPadding+"px";if(this.leftPadding!=null) _24[54]=(_24[54]||"")+";padding-left:"+this.leftPadding+"px";if(this.rightPadding!=null) _24[54]=(_24[54]||"")+";padding-right:"+this.rightPadding+"px";var _20=this.$95e()||"",_21=this.$95f()||"";_24[55]=_20+_21;if(isc.Browser.isIE&&!isc.Browser.isIE9){if(!isc.Browser.useCSSFilters&&isc.Img&&isc.isA.Img(this)){_24[56]=";filter:none;";_24[57]=null}else{if(!isc.Canvas.neverUseFilters||this.useOpacityFilter){_24[56]=(_13==null?null:";filter:progid:DXImageTransform.Microsoft.Alpha(opacity="+_13+")")}else{_24[56]=null} if(!isc.Canvas.neverUseFilters){if(this.$r9){_24[57]=";filter:progid:DXImageTransform.Microsoft.iris(irisStyle=circle)"}else{_24[57]=null}}else{_24[57]=null}}}else{if(_13!=null){_24[56]=(this.$65q?";-moz-opacity:":";opacity:")+_13}else{_24[56]=null}} _24[58]=this.getTransformCSS();if(isc.Browser.isWebKit){_24[59]=";-webkit-margin-collapse:collapse collapse"}else if(isc.Browser.$113k){_24[59]=";display:inline-block"}else{_24[59]=null} if(isc.Browser.isTouch){_24[60]=!this.canSelectText?";-webkit-user-select:none":";-webkit-user-select:text";_24[61]=";-webkit-tap-highlight-color:rgba(0,0,0,0)"}else{_24[60]=null;_24[61]=null} if(_14&&isc.Browser.isSafari){_24[62]=";-khtml-user-drag:element"}else{_24[62]=null} if(!this.showFocusOutline){_24[63]=this.$129l}else{_24[63]=null} if(_14&&isc.Browser.isIE&&!isc.Browser.isIE10){_24[64]=";display:block;text-decoration:none"}else{_24[64]=null} if(isc.Browser.$1395){if(_15){_24[65]=";-webkit-overflow-scrolling:touch"}else{_24[65]=";-webkit-overflow-scrolling:auto"}}else{_24[65]=null} if(isc.Browser.$120b){var _25,_26;if((_25=this.cssPointerEvents)!=null){_24[66]=";pointer-events:"+_25}else if((_26=this.parentElement)!=null&&(_25=_26.cssPointerEvents)!=null) {_24[66]=";pointer-events:auto"}else{_24[66]=null}}else{_24[66]=null} _24[_23+1]=_4;var _27=_23+5;if(this.$kk()&&this._useNativeTabIndex&&this.clipHandleIsFocusHandle){_24[_27]=_2.$ry;_24[_27+1]=this.$qn();_24[_27+2]=_2.$rz;_24[_27+3]=this.$qo();if(!this.isDisabled()){_24[_27+4]=_2.$r0;isc.$bk(_24,this.getTabIndex(),_27+5,5,true);if(this.accessKey!=null){_24[_27+10]=_2.$r1;_24[_27+11]=this.accessKey;_27+=12}else _27+=10;if(isc.Browser.isIE&&!this.showFocusOutline){if(!_2.$sa)_2.$sa=" hideFocus=true";_24[_27++]=_2.$sa}}else _27+=4} if(_14){_24[_27++]=" draggable='true'"} if((this.ariaRole||this.ariaState)&&isc.Canvas.ariaEnabled()&&!isc.Canvas.useLiteAria()) {if(this.ariaRole){_24[_27++]=" role='";_24[_27++]=this.ariaRole;_24[_27++]="' "} if(this.ariaState&&this.getAriaStateAttributes){_24[_27++]=this.getAriaStateAttributes()}} if(_11!=0){_24[_27++]=_2.$143g;_24[_27++]=_11;_24[_27++]=this.$ob} if(this.overflowStyle!=null){_24[_27++]=" data-isc-overflow-style='";_24[_27++]=this.overflowStyle;_24[_27++]=this.$ob} _24.length=_27;_24[_27]=this.$oa;if(_1)_22=_24;else _22=_24.join(isc.emptyString)} this.$113l=_5;return _22});isc.evalBoundary;isc.B.push(isc.A.$r2=function isc_Canvas__getMarginHTML(){if(!this.$sb()&&this.$sc==null){if(this.margin==null)return null;return isc.SB.concat(isc.semi,this.$om,this.margin,isc.px)} var _1=this.$sd(),_2=isc.SB.concat(isc.semi,this.$oi,_1.left,isc.px,isc.semi,this.$oj,_1.right,isc.px,isc.semi,this.$ok,_1.top,isc.px,isc.semi,this.$ol,_1.bottom,isc.px);return _2},isc.A.$95e=function isc_Canvas__getBorderHTML(){return this.border?";BORDER:"+this.border:null},isc.A.$95f=function isc_Canvas__getBorderRadiusHTML(){return this.borderRadius?";BORDER-RADIUS:"+this.borderRadius:null},isc.A.getTagEnd=function isc_Canvas_getTagEnd(){if(this.$113l)return this.$oo;return(this.$145m()&&isc.Browser.isIE&&!isc.Browser.isIE10?this.$131m:this.$on)},isc.A.$rw=function isc_Canvas__getHandleOverflow(){if(this.containsIFrame()){return this.$nz} var _1=this.overflow;var _2=(this.overflow===isc.Canvas.SCROLL||this.overflow===isc.Canvas.AUTO),_3=_2&&this.showCustomScrollbars,_4=_2&&!this.showCustomScrollbars;if(this.overflow==isc.Canvas.HIDDEN||_3){if(this.alwaysShowScrollbars&&this.useNativeTouchScrolling&&this.$1399) {}else if(this.$ks){_1=this.$se?this.$nz:"-moz-scrollbars-none";this.$r3=true}else{_1=this.$nz}}else if(isc.Browser.isOpera&&this.overflow==isc.Canvas.VISIBLE){_1=this.$nz}else if(isc.Browser.isIE&&this.overflow==isc.Canvas.VISIBLE){if(this.forceHandleOverflowHidden)_1=this.$nz}else if(isc.Browser.isMoz){if(_4)this.$r3=true;else if(this.$ks){_1=this.$se?this.$nz:"-moz-scrollbars-none";this.$r3=true}} if(this.$113l&&(this.overflow==isc.Canvas.CLIP_H||this.overflow==isc.Canvas.CLIP_V)) {_1=this.$nz} return _1},isc.A.$rx=function isc_Canvas__getInitialHandleSize(_1){var _2=this.getInitialWidth(),_3=this.getInitialHeight();return this.$sf(_2,_3,_1)},isc.A.getInitialWidth=function isc_Canvas_getInitialWidth(){return this.getWidth()},isc.A.getInitialHeight=function isc_Canvas_getInitialHeight(){return this.getHeight()},isc.A.$sf=function isc_Canvas__adjustHandleSize(_1,_2,_3){var _4=this.$sd();if(_3==null)_3=this.$113l;if(_1!=null){if(this.showCustomScrollbars&&this.vscrollOn){_1-=this.getScrollbarSize()} _1-=(_4.left+_4.right);if(this.isBorderBox){}else if(_3){if(!this.$1000(false,true)){_1-=this.getHBorderPad()}else{_1-=this.getHBorderSize()}}else{_1-=this.getHBorderPad()}} if(_2!=null){if(this.showCustomScrollbars&&this.hscrollOn){_2-=this.getScrollbarSize()} _2-=(_4.top+_4.bottom);if(this.isBorderBox){}else if(_3){if(!this.$1000(true,false)){_2-=this.getVBorderPad()}else{_2-=this.getVBorderSize()}}else{_2-=this.getVBorderPad()}} if(_1!=null&&_1<1){this.logInfo("Specified width:"+this.getInitialWidth()+" adjusted for border, margin, and scrollbars would cause initial handle size to be less than or equal to zero, which is not supported. Clamping handle width to 1px.","sizing");_1=1} if(_2!=null&&_2<1){this.logInfo("Specified height:"+this.getInitialHeight()+" adjusted for border, margin, and scrollbars would cause initial handle size to be less than or equal to zero, which is not supported. Clamping handle height to 1px.","sizing");_2=1} var _5=this.$op;_5[0]=_1;_5[1]=_2;return _5},isc.A.$1000=function isc_Canvas__willSuppressOuterDivPadding(_1,_2){return(this.padding!=null||this.$415||(_1!=false?(this.topPadding!=null||this.bottomPadding!=null):false)||(_2!=false?(this.leftPadding!=null||this.rightPadding!=null):false))},isc.A.$qn=function isc_Canvas__getNativeFocusHandlerString(_1){var _2=this.getID();var _3=_1?null:this.$ob;if(isc.Browser.isMoz) return isc.SB.concat(_3,this.$or,_2,this.$ot,_3);return isc.SB.concat(_3,this.$oq,this.getID(),this.$ot,_3)},isc.A.$qo=function isc_Canvas__getNativeBlurHandlerString(_1){var _2=_1?null:this.$ob;return isc.SB.concat(_2,this.$os,this.getID(),this.$ot,_2)},isc.A.$sg=function isc_Canvas__getNativeFocusHandlerMethod(){if(!this.$sh){this.$sh=isc.$aq("event",this.$qn(true))} return this.$sh},isc.A.$si=function isc_Canvas__getNativeBlurHandlerMethod(){if(!this.$sj){this.$sj=isc.$aq("event",this.$qo(true))} return this.$sj},isc.A.$16aj=function isc_Canvas__getAriaHandleID(){var _1=this.isDrawn();if((_1&&this.$113l)||(!_1&&this.$1316())) {return this.$rv()}else{return this.getCanvasName()}},isc.A.getHandle=function isc_Canvas_getHandle(){if(isc.$cv)arguments.$cw=this;if(this.destroyed){this.logWarn("Attempt to access destroyed widget in the DOM - destroy() called at invalid time (eg: mid-draw) or invalid method called on destroy()d widget. Stack Trace:"+this.getStackTrace())} if(!(this.$pu||this.$if))return null;if(this.$q3==null){var _1=this.getCanvasName();this.$q3=this.ns.Element.get(_1);if(this.$q3==null){this.logWarn("Unable to find handle for drawn Canvas, elementId: "+_1)}} return this.$q3},isc.A.getClipHandle=function isc_Canvas_getClipHandle(){if(!this.$113l)return this.getHandle();if(!(this.$pu||this.$if))return null;if(this._clipDiv==null){var _1=this.$rv();this._clipDiv=this.ns.Element.get(_1);if(this._clipDiv==null){this.logWarn("Unable to find clipHandle for drawn Canvas, elementId: "+_1)}} return this._clipDiv},isc.A.getOuterElement=function isc_Canvas_getOuterElement(){return this.getClipHandle()},isc.A.getContentElement=function isc_Canvas_getContentElement(){return this.getHandle()},isc.A.getScrollHandle=function isc_Canvas_getScrollHandle(){return this.getClipHandle()},isc.A.$sk=function isc_Canvas__getURLHandle(){if(!this.containsIFrame())return null;var _1=this.getHandle();if(!_1)return null;_1=_1.firstChild;if(_1&&_1.tagName&&(_1.tagName.toLowerCase()=="iframe"))return _1 return null},isc.A.$sl=function isc_Canvas__getFocusProxyHandle(){if(!this._useFocusProxy||!this.$qj)return null;if(!this.$qr){var _1=this.getCanvasName()+"__focusProxy";this.$qr=this.getDocument().getElementById(_1)} return this.$qr},isc.A.$qq=function isc_Canvas__getFocusProxyParentHandle(){if(!this._useFocusProxy)return null;if(!this.$qr)this.$qr=this.$sl();return(this.$qr!=null?this.$qr.parentNode:null)},isc.A.getStyleHandle=function isc_Canvas_getStyleHandle(){if(!this.$rs){var _1=this.getClipHandle();this.$rs=(_1!=null?_1.style:null)} return this.$rs},isc.A.setUpEvents=function isc_Canvas_setUpEvents(){if(this.canAcceptDrop)this.ns.EH.registerDroppableItem(this)},isc.A.$pt=function isc_Canvas__instantiateChildren(_1){if(!_1)_1=this.children;if(!_1)return;this.children=[];for(var i=0,_3;i<_1.length;i++){_3=_1[i];if(!_3)continue;if(!isc.isA.Canvas(_3)||_3.parentElement!=this){this.addChild(_3)}else{this.children.add(_3)}}},isc.A.$sm=function isc_Canvas__lazyAutoChildCreate(_1){_1=_1.substring(this.$ou.length);var _2=this.$d1(_1),_3=this.$543(_1);var _4=this[_2]||this[_3]?this:isc.isA.Canvas(this.creator)&&(this.creator[_2]||this.creator[_3])?this.creator:this;if(isc.isA.Canvas(_4[_1]))return _4[_1];return(_4[_1]=_4.createAutoChild(_1))},isc.A.createCanvas=function isc_Canvas_createCanvas(_1){if(isc.isA.Canvas(_1))return _1;if(_1==null)return;if(isc.isA.String(_1)){if(isc.startsWith(_1,this.$ou)){return this.$sm(_1)} if(isc.startsWith(_1,this.$90j)){var _2=_1.substring(this.$90j.length);var _3="width";if(this.orientation==isc.Layout.VERTICAL)_3="height";var _4={autoDraw:false};_4[_3]=_2;return isc.LayoutSpacer.create(_4)} return window[_1]} var _5=_1.autoChildName;if(_5){return this[_5]=this.createAutoChild(_5,_1)} var _6=_1._constructor;if(_6==null||isc.ClassFactory.getClass(_6)==null){this.logWarn("Unable to create canvas of type '"+_6+"' - no such class in runtime. Will default to Canvas.");if(isc.isA.String(_6)&&_6.contains(".")){this.logWarn("Did you make the SmartGWT class reflectable? See http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/docs/Reflection.html")} _6=isc.Canvas} _1._constructor=null;_1.autoDraw=false;return isc.ClassFactory.newInstance(_6,_1)},isc.A.createCanvii=function isc_Canvas_createCanvii(_1){if(_1==null)return;for(var i=0;i<_1.length;i++){_1[i]=this.createCanvas(_1[i])} return _1},isc.A.setEventProxy=function isc_Canvas_setEventProxy(_1){var _2=this.eventProxy;if(_2==_1)return;if(_2!=null){_2.$kt.remove(this);if(this.isDrawn()){if(this.getHandle()!=null)this.getHandle().eventProxy=null;if(this.getClipHandle()!=this.getHandle())this.getClipHandle().eventProxy=null}} this.eventProxy=_1;if(_1!=null){if(!isc.isA.Canvas(_1)){this.logWarn("setEventProxy() passed invalid eventProxy - clearing this property");this.eventProxy=null}else{if(_1.$kt==null)_1.$kt=[];_1.$kt.add(this)}} if(this.isDrawn())this.redraw("eventProxy updated")},isc.A.clearEventProxy=function isc_Canvas_clearEventProxy(){this.setEventProxy()},isc.A.addChild=function isc_Canvas_addChild(_1,_2,_3){if(isc.$cv)arguments.$cw=this;if(!_1)return null;if(_1==this){this.logWarn("Attempt to add a child to itself");return} if(!isc.isAn.Instance(_1))_1=this.createCanvas(_1);if(!isc.isA.Canvas(_1)){this.logWarn("addChild(): trying to install a non-canvas as a child. Returning.");return null} if(_1.parentElement==this)return _1;var _4=_1.isDrawn();if(_1.parentElement)_1.deparent(_2);if(_1.isDrawn())_1.clear();isc.Canvas.$ro(_1);if(_1.drawContext)_1.drawContext=null;if(_1.htmlElement)_1.htmlElement=null;_1.parentElement=this;_1.topElement=(this.topElement||this);_1.$sn();if(_2)this[_2]=_1;if(!this.children)this.children=[];if(!this.children.contains(_1))this.children.add(_1);var _5=_1.masterElement;if(_5&&_5.parentElement!=this){_5.peers.remove(_1);if(_5[_2]==_1)_5[_2]=null;_1.masterElement=null} if(_1.peers){for(var i=0;i<_1.peers.length;i++)this.addChild(_1.peers[i])} if(_4&&!this.warnAboutClear&&!isc.Page.isLoaded()){this.logWarn("Adding already drawn widget:"+_1.getID()+" to new parent:"+this.getID()+". Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.")} if(this.isDrawn())_1.$qw();var _7=this.ns.EH;if(_7.clickMaskUp()){var _8=_7.getAllClickMaskIDs();for(var i=_8.length-1;i>=0;i--){var _9=_7.targetIsMasked(this,_8[i]);if(!_9){_7.addUnmaskedTarget(_1,_8[i]);break}else{var _10=_7.targetIsMasked(_1,_8[i]);if(!_10)_7.maskTarget(_1,_8[i])}}} if(_3==false||_1.$so){_1.$so=null;return _1} var _11=false,_12=(_1.$sp||!_1.tabIndex);if(isc.isA&&isc.isA.Layout&&_12&&(_1.$kk()||(_1.children!=null&&_1.children.length>0))) {var _13=_1;while(_13.parentElement){if(isc.isA.Layout(_13.parentElement)&&_13.parentElement.isDrawn()) {_13.parentElement.updateMemberTabIndex(_13);if(_13.parentElement==this)_11=true} _13=_13.parentElement}} if(this.isDrawn()&&!_1.masterElement){if(this.logIsDebugEnabled(this.$n3)){this.logInfo("child added to already drawn parent: "+(isc.Page.isLoaded()?"page loaded, will draw immediately":"page not loaded, will defer child drawing"),"drawing")} if(!_11&&_12){var _14;if(this.children.length>1){for(var i=this.children.length-2;i>=0;i--){if(this.children[i].$sp){_14=this.children[i];break}}} if(_14==null&&this.$sp){_14=this} if(_14!=null)_1.$sq(_14)} _1.draw();this.adjustOverflow("addChild")} if(this.componentMaskShowing&&this.componentMask){var _15=this.componentMask.getZIndex();if(_1.getZIndex()>_15){_1.moveBelow(this.componentMask)} _1.disableKeyboardEvents(true,true,true)} return _1},isc.A.$sn=function isc_Canvas__updateChildrenTopElement(){if(this.dataPath)this.setDataPath(this.dataPath);var _1=this.children;if(!_1||_1.length==0)return;for(var i=0;i<_1.length;i++){var _3=_1[i];_3.topElement=this.topElement;_3.$sn()}},isc.A.reparent=function isc_Canvas_reparent(_1){if(this.getID()==_1.getID())return false;if((this.parentElement==_1.parentElement)&&this.getClipHandle()&&_1.getClipHandle()&&(this.getClipHandle().parentNode==_1.getClipHandle().parentNode)){return false} this._adjacentHandle=_1.getClipHandle();if(_1.parentElement){_1.parentElement.addChild(this)}else{if(this.parentElement)this.deparent();else this.clear();this.draw()} return true},isc.A.removePeer=function isc_Canvas_removePeer(_1,_2){if(_1==null)return;var _3=this.peers;if(_3==null){this.logWarn("Attempt to remove peer: "+_1+" from Canvas that does not have peers");return} var _4=_3.indexOf(_1);if(_4<0){this.logWarn("Attempt to remove peer: "+_1+" from Canvas that is not its master");return} if(this.parentElement){this.parentElement.removeChild(_1)} _3.removeAt(_4);if(this[_2]==_1)this[_2]=null;_1.masterElement=null;if(_1.depeered)_1.depeered(this,_2);if(this.peerRemoved)this.peerRemoved(_1,_2)},isc.A.depeer=function isc_Canvas_depeer(_1){if(!this.masterElement)return;this.masterElement.removePeer(this,_1)},isc.A.deparent=function isc_Canvas_deparent(_1){if(!this.parentElement)return;this.parentElement.removeChild(this,_1)},isc.A.removeChild=function isc_Canvas_removeChild(_1,_2){if(isc.$cv)arguments.$cw=this;if(_1==null)return;var _3=this.children,_4;if(!_3||(_4=_3.indexOf(_1))==-1){this.logWarn("Attempt to remove child: "+_1+" from Canvas that is not its parent");return} _3.removeAt(_4);if(this[_2]==_1)this[_2]=null;if(_1.isDrawn())_1.clear();delete _1.parentElement;delete _1.topElement;isc.Canvas.$q8(_1);if(_1.peers)_1.peers.map("deparent");if(_1.deparented)_1.deparented(this,_2);if(this.childRemoved)this.childRemoved(_1,_2);if(this.selectedComponents&&this.selectedComponents.remove(_1))this.fireSelectedEditNodesUpdated()},isc.A.addPeer=function isc_Canvas_addPeer(_1,_2,_3,_4){if(!_1)return null;if(!isc.isAn.Instance(_1))_1=this.createCanvas(_1);if(_4==true)_1.$q0=true;if(_1.masterElement==this)return null;if(_1.masterElement)_1.depeer(_2);_1.masterElement=this;if(_2)this[_2]=_1;if(!this.peers)this.peers=[];if(!this.peers.contains(_1))this.peers.add(_1);if(this.parentElement){this.parentElement.addChild(_1,_2)}else if(_1.parentElement){_1.deparent()} if(_1.$nt&&(_1.opacity!=this.opacity)) _1.setOpacity(this.opacity);if(_1.$jq&&(_1.visibility!=this.visibility)){_1.setVisibility(this.visibility)} if(_1.snapTo||_1.snapEdge)_1.$qw();var _5=this.ns.EH;if(_5.clickMaskUp()){var _6=_5.getAllClickMaskIDs();for(var i=_6.length-1;i>=0;i--){var _8=_5.targetIsMasked(this,_6[i]);if(!_8){_5.addUnmaskedTarget(_1,_6[i]);break}else{var _9=_5.targetIsMasked(_1,_6[i]);if(!_9)_5.maskTarget(_1,_6[i])}}} if(_3==false)return _1;if(this.isDrawn()&&!_1.isDrawn()){_1.draw();if(_1.$q0)this.redraw()} return _1},isc.A.setSnapTo=function isc_Canvas_setSnapTo(_1){this.snapTo=_1;this.parentResized()},isc.A.getSnapTo=function isc_Canvas_getSnapTo(){return this.snapTo},isc.A.setSnapEdge=function isc_Canvas_setSnapEdge(_1){this.snapEdge=_1;this.parentResized()},isc.A.getSnapEdge=function isc_Canvas_getSnapEdge(){return this.snapEdge},isc.A.getFieldMethod=function isc_Canvas_getFieldMethod(_1,_2,_3,_4){if(_3=="children"){if(_4=="add")return"addChild";if(_4=="remove")return"removeChild"} return this.Super("getFieldMethod",arguments)},isc.A.getTopLevelCanvas=function isc_Canvas_getTopLevelCanvas(){var _1=this;while(_1.parentElement!=null){_1=_1.parentElement} return _1},isc.A.getParentCanvas=function isc_Canvas_getParentCanvas(){return this.parentElement},isc.A.getMasterCanvas=function isc_Canvas_getMasterCanvas(){return this.masterElement},isc.A.getParentElements=function isc_Canvas_getParentElements(){var _1=[],_2=this.parentElement;while(_2){_1.add(_2);_2=_2.parentElement} return _1},isc.A.contains=function isc_Canvas_contains(_1,_2){if(!_2&&_1&&_1.getParentCanvas)_1=_1.getParentCanvas();while(_1){if(_1==this)return true;if(!_1||!_1.getParentCanvas)break;_1=_1.getParentCanvas()} return false},isc.A.$sr=function isc_Canvas__isVisibilityAncestorOf(_1){var _2=_1;while(_2){if(_2==this)return true;var _3=(_2.visibility==isc.Canvas.INHERIT);if(!_3)return false;_2=_2.parentElement} return false},isc.A.getChildCount=function isc_Canvas_getChildCount(){if(this.children==null)return;return this.children.map("getChildCount").sum()+this.children.length},isc.A.showClickMask=function isc_Canvas_showClickMask(_1,_2,_3){var _4=this.getID();if(!this.ns.EH.clickMaskUp(_4)){return this.ns.EH.showClickMask(_1,_2,_3,_4)}},isc.A.hideClickMask=function isc_Canvas_hideClickMask(_1){if(_1==null)_1=this.getID();if(this.ns.EH.clickMaskUp(_1))this.ns.EH.hideClickMask(_1)},isc.A.clickMaskUp=function isc_Canvas_clickMaskUp(_1){if(_1==null)_1=this.getID();return this.ns.EH.clickMaskUp(_1)},isc.A.unmask=function isc_Canvas_unmask(_1){this.ns.EH.addUnmaskedTarget(this,_1)},isc.A.mask=function isc_Canvas_mask(_1){this.ns.EH.maskTarget(this,_1)},isc.A.isMasked=function isc_Canvas_isMasked(_1){return this.ns.EH.targetIsMasked(this,_1)},isc.A.$qf=function isc_Canvas__isHardMasked(){var _1=isc.EH.clickMaskRegistry;if(!_1||_1.length==0)return false;for(var i=_1.length-1;i>=0;i--){var _3=_1[i];if(!this.isMasked(_3))return false;if(isc.EH.isHardMask(_3))return true} return false},isc.A.showComponentMask=function isc_Canvas_showComponentMask(_1,_2){if(this.componentMaskShowing)this.hideComponentMask();if(_1!=null&&!isc.isAn.Array(_1)){_1=[_1]} this.$168r=_1;if(!this.componentMask){this.componentMask=this.addAutoChild("componentMask",isc.addProperties({},_2,{addAsChild:true,disabled:true,autoDraw:false,overflow:"hidden",_generated:true,width:1,height:1}));this.addChild(this.componentMask)}else{if(_2!=null)this.componentMask.setProperties(_2);if(!this.componentMask.isDrawn()){this.componentMask.resizeTo(1,1);this.componentMask.draw()}} this.componentMask.bringToFront();this.$168s();this.componentMaskShowing=true;this.$168q()},isc.A.$168q=function isc_Canvas__updateChildrenForComponentMask(){var _1=this.$168r;var _2=this.children;var _3=this.componentMask.getZIndex();for(var i=0;i<_2.length;i++){if(_2[i]==this.componentMask)continue;if(_1&&_1.contains(this.children[i])){if(this.children[i].getZIndex()<_3){this.children[i].moveAbove(this.componentMask)}}else{if(this.children[i].getZIndex()>_3){this.children[i].moveBelow(this.componentMask)}}} this.disableKeyboardEvents(true,true,true,_1)},isc.A.$168s=function isc_Canvas__fixComponentMaskSize(){if(!this.componentMask||!this.componentMask.isDrawn())return;this.componentMask.resizeTo(this.getInnerWidth(true),this.getInnerHeight(true))},isc.A.hideComponentMask=function isc_Canvas_hideComponentMask(){if(!this.componentMaskShowing)return;if(this.componentMask){this.componentMask.resizeTo(1,1);this.componentMask.clear()} this.disableKeyboardEvents(false,true,true,this.$168r);this.componentMaskShowing=false},isc.A.setRect=function isc_Canvas_setRect(_1,_2,_3,_4,_5){if(isc.$cv)arguments.$cw=this;if(isc.isAn.Array(_1)){_2=_1[1];_3=_1[2];_4=_1[3];_1=_1[0]}else if(_1!=null&&_1.top!=null){_2=_1.top;_3=_1.width;_4=_1.height;_1=_1.left} if(this.logIsDebugEnabled()){this.logDebug("setRect: "+this.echo({left:_1,top:_2,width:_3,height:_4}))} var _6=this.resizeTo(_3,_4,_5,true);if(_6)this.$ss=true;this.moveTo(_1,_2,_5,true);this.$ss=null;return _6},isc.A.getRect=function isc_Canvas_getRect(){return[this.getLeft(),this.getTop(),this.getVisibleWidth(),this.getVisibleHeight()]},isc.A.getLeft=function isc_Canvas_getLeft(){var _1=this.getStyleHandle();if(_1==null)return this.left;var _2=(isc.Browser.isIE?_1.pixelLeft:parseInt(_1.left));if(this.vscrollOn&&this.showCustomScrollbars&&this.isRTL()){return _2-this.getScrollbarSize()} return _2},isc.A.getOffsetLeft=function isc_Canvas_getOffsetLeft(){var _1=this.getClipHandle();if(this.$st())_1=null;if(_1==null){if(this.logIsInfoEnabled()){this.logInfo("getOffsetLeft() called before widget is drawn - unable to calculate offset coordinates. Returning specified coordinates")} return this.left} var _2=isc.Element.getOffsetLeft(_1);if(this.vscrollOn&&this.showCustomScrollbars&&this.isRTL()){_2-=this.getScrollbarSize()} return _2},isc.A.setLeft=function isc_Canvas_setLeft(_1){this.moveTo(_1,null)},isc.A.getTop=function isc_Canvas_getTop(_1){var _2=this.getStyleHandle();if(_2==null)return this.top;var _3=(isc.Browser.isIE?_2.pixelTop:parseInt(_2.top,10));if(_1){var _4=this.getClipHandle(),_5=_4.getAttribute(this.$143e);if(_5){_5=parseInt(_5,10);_3-=_5}} return _3},isc.A.getOffsetTop=function isc_Canvas_getOffsetTop(){var _1=this.getClipHandle();if(this.$st())_1=null;if(_1==null)return this.top;var _2=isc.Element.getOffsetTop(_1);return _2},isc.A.setTop=function isc_Canvas_setTop(_1){this.moveTo(null,_1)},isc.A.$143f=function isc_Canvas__getPageSpace(){return this.parentElement!=null?0:this.leavePageSpace!=null?this.leavePageSpace:isc.Canvas.defaultPageSpace},isc.A.setLeavePageSpace=function isc_Canvas_setLeavePageSpace(_1){this.leavePageSpace=_1;this.pageResize()},isc.A.getWidth=function isc_Canvas_getWidth(){return this.width},isc.A.setWidth=function isc_Canvas_setWidth(_1){this.resizeTo(_1)},isc.A.getHeight=function isc_Canvas_getHeight(){return this.$o8},isc.A.setHeight=function isc_Canvas_setHeight(_1){this.resizeTo(null,_1)},isc.A.getMinWidth=function isc_Canvas_getMinWidth(){return this.minWidth},isc.A.getMinHeight=function isc_Canvas_getMinHeight(){return this.minHeight},isc.A.getMaxWidth=function isc_Canvas_getMaxWidth(){return this.maxWidth},isc.A.getMaxHeight=function isc_Canvas_getMaxHeight(){return this.maxHeight},isc.A.getRight=function isc_Canvas_getRight(){return this.getLeft()+this.getVisibleWidth()},isc.A.setRight=function isc_Canvas_setRight(_1){if(isc.isA.Number(_1)){this.resizeTo(_1-this.getLeft(),null)}else{this.logWarn("setRight() expects an integer value")}},isc.A.getBottom=function isc_Canvas_getBottom(){return this.getTop()+this.getVisibleHeight()},isc.A.setBottom=function isc_Canvas_setBottom(_1){if(isc.isA.Number(_1)){this.resizeTo(null,_1-this.getTop())}else{this.logWarn("setBottom() expects an integer value")}},isc.A.enforceScrollSize=function isc_Canvas_enforceScrollSize(_1,_2){if(this.logIsDebugEnabled(this.$ox)){this.logDebug("enforcing scroll size:"+[_1,_2],"enforceScrollSize")} if(!this.$pu&&!this.$if)return;if(_1==null)_1=0;if(_2==null)_2=0;if(isNaN(_1)||isNaN(_2)||(!isc.Page.isRTL()&&_1<0)||_2<0){this.logWarn("Invalid width or height in Canvas.enforceScrollSize() on component: "+this.getID()+" with sizes: "+[_1,_2]+this.getStackTrace());return} if(this.$113l&&isc.Browser.isMoz){var _3=this.getHandle();_3.style.width=_1+isc.px;_3.style.height=_2+isc.px}else if(this.$re==null){var _4=this.$ov;var _5=this.$qs(this.$ow);_4[1]=_5;_4[3]=_1-1;_4[5]=_2-1;var _6=_4.join(isc.emptyString);this.$re=isc.Element.insertAdjacentHTML(this.getHandle(),this.$n8,_6,true);if(this.$re==null){this.$re=document.getElementById(_5)}}else if(!this.$qe||this.$qe[0]!=_1||this.$qe[1]!=_2) {this.$re.style.left=(_1-1)+isc.px;this.$re.style.top=(_2-1)+isc.px} this.$qe=[_1,_2]},isc.A.stopEnforcingScrollSize=function isc_Canvas_stopEnforcingScrollSize(){if(this.logIsDebugEnabled(this.$ox)){this.logDebug("stop enforcing scroll size","enforceScrollSize")} delete this.$qe;if(!this.isDrawn())return;if(this.$113l&&isc.Browser.isMoz){var _1=this.getHandle();_1.style.removeProperty("width");_1.style.removeProperty("height")}else if(this.$re){this.$re.style.left=this.$oy;this.$re.style.top=this.$oy}},isc.A.getScrollWidth=function isc_Canvas_getScrollWidth(_1){if(isc.$cv)arguments.$cw=this;if(this.$qz){this.$qz=null;this.adjustOverflow("widthCheckWhileDeferred")} if(this.containsIFrame()){return this.getInnerWidth()} if(!_1&&this.$su!=null)return this.$su;var _2=0,_3=this.getClipHandle();if(_3==null){this.logDebug("No size info available from DOM, returning user-specified size");return this.getInnerWidth()} if(this.allowNativeContentPositioning){this.$sv=true;if(isc.Browser.isSafari||(isc.Browser.isMoz&&((_3.scrollWidth||_3.offsetWidth)<=parseInt(_3.style.width)))) {_2=isc.Element.getScrollWidth(this.getHandle())}else{_2=isc.Element.getScrollWidth(_3)} delete this.$sv}else{var _4=this.children,_5=_4&&_4.length>0,_6=0;if(!_5||this.allowContentAndChildren){if((isc.Browser.isSafari||(isc.Browser.isMoz&&isc.Browser.version>=21)||isc.Browser.isIE)&&this.$113l) {_2=this.getHandle().scrollWidth;if(this.useClipDiv&&!this.$1000(false,true)){_2+=isc.Element.$sw(this.styleName)}}else if(isc.Browser.isMoz&&this.$113l){var _7=this.getHandle();var _8=_3.scrollWidth,_9=_7.scrollWidth;if(_8>_9){_2=_8}else{var _10=_7.style.display;_7.style.display="inline-block";_2=_7.scrollWidth;_7.style.display=_10}}else{_6=(_3.scrollWidth||_3.offsetWidth);if(_6!=null&&_6!=this.$n1){_2=_6;if(isc.Browser.isOpera||(isc.Browser.isMoz&&isc.Browser.version<16)){_2-=this.getHBorderSize()} if(isc.Browser.isMoz&&!this.isRTL()){_2-=this.$sx()} if(isc.Browser.isMoz&&this.getScrollingMechanism()==isc.Canvas.NESTED_DIV) {var _11=this.getHandle().offsetLeft;if(_11<0)_11=-_11;_2-=_11}} if(isc.Browser.isSafari||(isc.Browser.isMoz&&_2<=parseInt(_3.style.width))) {var _7=this.getHandle(),_12=_7.scrollWidth||_7.offsetWidth;if(_12>_2)_2=_12}}} if(_5){var _13=this.$sy(this.children);_2=Math.max(_13,_2)}} if(this.$qe!=null){var _14=this.$qe[0];_2=Math.max(_2,_14)} this.$su=_2;return _2},isc.A.$sy=function isc_Canvas__getWidthSpan(_1,_2){var _3=0,_4=0,_5=this.overflow==isc.Canvas.VISIBLE||this.overflow==isc.Canvas.CLIP_H,_6;var _7=this.isRTL()&&(this.overflow!=isc.Canvas.VISIBLE);if(_7)_4=this.getViewportWidth();for(var i=0;i<_1.length;i++){var _9=_1[i];if(!_9.isDrawn()&&!_9.$59d)continue;if(_2&&_9.visibility==isc.Canvas.HIDDEN)continue;var _10=(_9.position!=isc.Canvas.RELATIVE),_11=_9.getVisibleWidth(),_12=(_10?_9.getLeft():_9.getOffsetLeft());if(!_5&&_10)_11-=_9.getRightMargin();if(!_7&&(_12+_11>_4)){_4=_12+_11;_6=_9} if(_12<_3)_3=_7?_12:Math.max(0,_12)} return _4-_3},isc.A.getScrollHeight=function isc_Canvas_getScrollHeight(_1){if(isc.$cv)arguments.$cw=this;if(this.$qz){this.$qz=null;this.adjustOverflow("heightCheckWhileDeferred")} if(this.containsIFrame()){return this.getInnerHeight()} if(!_1&&this.$sz!=null)return this.$sz;var _2=0,_3=this.getScrollHandle();if(_3==null){this.logDebug("No size info available from DOM, returning user-specified size","sizing");return this.getInnerHeight()} if(this.allowNativeContentPositioning){this.$s0=true;if(isc.Browser.isSafari||(isc.Browser.isMoz&&((_3.scrollHeight||_3.offsetHeight)<=parseInt(_3.style.height)))) {_2=isc.Element.getScrollHeight(this.getHandle())}else{_2=isc.Element.getScrollHeight(_3)} delete this.$s0}else{var _4=(this.children&&this.children.length>0);if(!_4||this.allowContentAndChildren){if(this.$113l){_2=this.getHandle().scrollHeight;if(!this.$1000(true,false)){_2+=isc.Element.$s1(this.styleName)}}else{var _5=(_3.scrollHeight||_3.offsetHeight);if(_5!=null&&_5!=this.$n1){_2=_5;if(isc.Browser.isMoz)_2-=this.$s2();if(isc.Browser.isOpera||(isc.Browser.isMoz&&isc.Browser.version<16)){_2-=this.getVBorderSize()} if(this.$113l&&(isc.Browser.isSafari||(isc.Browser.isMoz&&_2<=parseInt(_3.style.height)))) {var _6=this.getHandle(),_7=_6.scrollHeight||_6.offsetHeight;if(_7>_2)_2=_7}}}} if(_4){var _8=this.$s3(this.children);if(_8>_2){_2=_8}}} if(this.$qe!=null){var _9=this.$qe[1];_2=Math.max(_2,_9)} this.$sz=_2;return _2});isc.evalBoundary;isc.B.push(isc.A.$s2=function isc_Canvas__offscreenChildrenHeight(){if(!isc.isAn.Array(this.children))return 0;var _1=0;for(var i=0;i_4)_4=_9+_10;if(_10<_3)_3=Math.max(0,_10)} return _4-_3},isc.A.getScrollLeft=function isc_Canvas_getScrollLeft(){if(!this.isDrawn())return this.scrollLeft;var _1=this.getScrollingMechanism(),_2=this.scrollLeft;if(_1==isc.Canvas.NATIVE){_2=this.getScrollHandle().scrollLeft;if(this.isRTL()){_2=this.$92y(_2)}}else if(_1==isc.Canvas.NESTED_DIV&&this.isRTL()){_2+=this.getScrollRight()-this.$1314} return _2},isc.A.getScrollTop=function isc_Canvas_getScrollTop(){if(!this.isDrawn()||this.getScrollingMechanism()!=isc.Canvas.NATIVE){return this.scrollTop} return this.getScrollHandle().scrollTop},isc.A.setPageLeft=function isc_Canvas_setPageLeft(_1){this.moveBy(_1-this.getPageLeft(),0)},isc.A.setPageTop=function isc_Canvas_setPageTop(_1){this.moveBy(0,_1-this.getPageTop())},isc.A.getParentPageRect=function isc_Canvas_getParentPageRect(){if(this.parentElement){var _1=this.parentElement,_2=_1.getPageRect();var _3=_1.getLeftMargin(),_4=_1.getTopMargin();_2[0]+=_3;_2[1]+=_4;_2[2]-=(_3+_1.getRightMargin());_2[3]-=(_4+_1.getBottomMargin());var _5=_1.$tj();_2[0]+=_5.left;_2[1]+=_5.top;_2[2]-=_5.right+_5.left;_2[3]-=_5.bottom+_5.top;var _6=_1.getScrollbarSize();if(_1.vscrollOn)_2[2]-=_6;if(_1.hscrollOn)_2[3]-=_6;return this.$113b(_2)} else return[0,0,isc.Page.getScrollWidth(),isc.Page.getScrollHeight()]},isc.A.$113b=function isc_Canvas__adjustParentPageRect(_1){if(this.peers&&this.peers.length>0){var _2=this.getPeerRect(),_3=this.getPageRect();_1[0]+=(_3[0]-_2[0]);_1[1]+=(_3[1]-_2[1]);_1[2]-=(_2[2]-_3[2]);_1[3]-=(_2[3]-_3[3])} return _1},isc.A.$1518=function isc_Canvas__shouldKeepInParentRect(){return(this.keepInParentRect&&this.ns.EH.dragging&&this==this.ns.EH.dragMoveTarget)},isc.A.$1519=function isc_Canvas__getKeepInParentRect(_1){var _2=this.ns.EH,_3=_2.getDragTarget(_2.getLastEvent()),_4=_3.parentElement,_5=isc.isAn.Array(this.keepInParentRect),_6;if(_5){_6=this.keepInParentRect;if(_4){_6=_6.duplicate();_6[0]+=_4.getPageLeft();_6[1]+=_4.getPageTop()}}else{if(_4){_6=_3.$113b(_3.getParentPageRect())}else{_6=this.getParentPageRect()}} var _7=_6[0],_8=_6[1],_9=_6[2],_10=_6[3],_11=_7+_9,_12=_8+_10;if(_4){var _13=_4.getScrollLeft(),_14=_4.getScrollWidth()- _4.getViewportWidth()-_13,_15=_4.getScrollTop(),_16=_4.getScrollHeight()- _4.getViewportHeight()-_15}else{var _13=isc.Page.getScrollLeft(),_14=isc.Page.getScrollWidth()- isc.Page.getWidth()-_13,_15=isc.Page.getScrollTop(),_16=isc.Page.getScrollHeight()- isc.Page.getHeight()-_15} if(_14<0)_14=0;if(_16<0)_16=0;var _17=this.$1514,_18=_7,_19=_11,_20=_8,_21=_12;if(_1){_18-=_13;_19+=_14;_20-=_15;_21+=_16} _17[0]=_18;_17[1]=_20;_17[2]=_19-_18;_17[3]=_21-_20;return _17},isc.A.setPageRect=function isc_Canvas_setPageRect(_1,_2,_3,_4,_5){if(isc.isAn.Array(_1)){_2=_1[1];_3=_1[2];_4=_1[3];_1=_1[0]} if(this.$1518()){var _6=(_3==null&&_4==null);if(_3==null)_3=this.getVisibleWidth();if(_4==null)_4=this.getVisibleHeight();var _7=_1+_3,_8=_2+_4,_9=this.$1519(_6),_10=_9[0],_11=_10+_9[2],_12=_9[1],_13=_12+_9[3];if(_6){if(_1<_10){_1=_10}else if(_7>_11){_1=_11-_3} if(_2<_12){_2=_12}else if(_8>_13){_2=_13-_4}}else{if(_1<_10){_3=_3-(_10-_1);_1=_10}else if(_7>_11){_3=_3-(_7-_11)} if(_2<_12){_4=_4-(_12-_2);_2=_12}else if(_8>_13){_4=_4-(_8-_13)}}} this.moveBy(_1-this.getPageLeft(),_2-this.getPageTop());if(_5){var _14=this.getVisibleWidth(),_15=this.getVisibleHeight(),_16=_14-_3,_17=_15-_4;this.resizeTo(_3,_4);this.redrawIfDirty("setPageRect");var _18=(_14-this.getVisibleWidth()),_19=(_15-this.getVisibleHeight());if(_1>this.getPageLeft())_1-=(_16-_18);if(_2>this.getPageTop())_2-=(_17-_19)}else{this.resizeTo(_3,_4)}},isc.A.getCanvasOffsets=function isc_Canvas_getCanvasOffsets(_1){if(_1!=null){if(!_1.contains(this,false)){this.logWarn("getCanvasOffsets passed ancestor:"+_1+". This is not an ancestor of this component - ignoring");_1=this.parentElement}}else{_1=this.parentElement} if(!this.isDrawn()||this.$st()) {if(!this.isDrawn()&&this.position==isc.Canvas.RELATIVE){this.logWarn("getCanvasOffsets(): Called on undrawn relatively-positioned widget '"+this.getID()+"'. The drawn coordinates can not be reliably calculated until the widget has been drawn - returning estimated position")} var _2=this.left,_3=this.top,_4=this.parentElement;while(_1!=_4){_2+=_4.left;_3+=_4.top;_4=_4.parentElement} return{left:_2,top:_3}} var _5=this.getOffsets(_1);return _5},isc.A.getPageOffsets=function isc_Canvas_getPageOffsets(){if(isc.$cv)arguments.$cw=this;var _1=this.getClipHandle();if(_1&&this.$st()){_1=null} if(_1==null){if(!this.isDrawn()&&this.position==isc.Canvas.RELATIVE){this.logWarn("getPageOffsets(): Called on undrawn relatively-position widget '"+this.getID()+"'. The page level coordinates can not be reliably calculated until the widget has been drawn - returning estimated position")} var _2=this.parentElement;var _3,_4;if(_2){var _5=0;if(_2.hscrollOn){if(!this.isRTL())_5=_2.getScrollLeft();else{var _6=_2.getScrollWidth()-_2.getViewportWidth();_5=-1*(_6-_2.getScrollLeft())}} var _7=_2.getPageOffsets();_3=this.getOffsetLeft()+_2.getLeftBorderSize()+_2.getLeftMargin()+_7.left-_5;_4=this.getOffsetTop()+_2.getTopBorderSize()+_2.getTopMargin()+_7.top-_2.getScrollTop()}else{_3=this.getOffsetLeft();_4=this.getOffsetTop()} if(this.isRTL()&&this.vscrollOn&&this.showCustomScrollbars)_3-=this.getScrollbarSize();return{left:_3,top:_4}} if(this.useClientRectAPI&&_1.getBoundingClientRect!=null){var _8=isc.Element.getBoundingClientRect(_1);var _3=_8.left;_3-=this.getLeftMargin();var _9=!isc.Browser.isIE9;if(_9){var _10=isc.Page.getScrollLeft(true);_3+=_10} if(this.isRTL()){if(this.vscrollOn&&this.showCustomScrollbars){_3-=this.getScrollbarSize()} if(isc.Browser.isIE&&(isc.Browser.version<9||!isc.Browser.isStrict)&&(isc.Page.getBodyOverflow()!=isc.Canvas.HIDDEN)) {if(isc.EH.$946==null){isc.EH.$946=(document.body.offsetWidth- document.body.clientWidth)} _3-=isc.EH.$946}} var _4=_8.top;_4-=this.getTopMargin();_4+=isc.Page.getScrollTop();return{left:_3,top:_4}} var _11=this.getOffsets(),_12=this.$sd();return{left:_11.left-_12.left,top:_11.top-_12.top}},isc.A.getCanvasLeft=function isc_Canvas_getCanvasLeft(_1){return this.getCanvasOffsets(_1).left},isc.A.getPageLeft=function isc_Canvas_getPageLeft(){return this.getPageOffsets().left},isc.A.getOffsets=function isc_Canvas_getOffsets(_1){var _2=this.isRTL(),_3=this.ns.Element.getOffsets(this,_1,_2,true);if(_2&&this.vscrollOn&&this.showCustomScrollbars)_3.left-=this.getScrollbarSize();return _3},isc.A.getCanvasTop=function isc_Canvas_getCanvasTop(_1){return this.getCanvasOffsets(_1).top},isc.A.getPageTop=function isc_Canvas_getPageTop(){return this.getPageOffsets().top},isc.A.getPageRight=function isc_Canvas_getPageRight(_1){_1=_1||this.getPageOffsets();return _1.left+this.getVisibleWidth()},isc.A.getPageBottom=function isc_Canvas_getPageBottom(_1){_1=_1||this.getPageOffsets();return _1.top+this.getVisibleHeight()},isc.A.getPageRect=function isc_Canvas_getPageRect(){var _1=this.getPageOffsets();return[_1.left,_1.top,this.getVisibleWidth(),this.getVisibleHeight()]},isc.A.usingCSSScrollbars=function isc_Canvas_usingCSSScrollbars(){return!this.showCustomScrollbars&&(this.overflow==isc.Canvas.AUTO||this.overflow==isc.Canvas.SCROLL)},isc.A.getScrollingMechanism=function isc_Canvas_getScrollingMechanism(){if(!this.$s6){if(!this.showCustomScrollbars&&(this.overflow==isc.Canvas.AUTO||this.overflow==isc.Canvas.SCROLL)) {this.$s6=isc.Canvas.NATIVE}else{if(isc.Browser.isIE&&this.isRTL()&&(isc.Browser.version<=7||(isc.Browser.version==8&&!isc.Browser.isStrict))) {this.$s6=isc.Canvas.NESTED_DIV}else{this.$s6=isc.Canvas.NATIVE}}} return this.$s6},isc.A.setMargin=function isc_Canvas_setMargin(_1){this.$s7=null;this.$s8=null;if(_1==null){delete this.margin}else{var _2=_1;if(isc.isA.String(_1))_1=parseInt(_1);if(!isc.isA.Number(_1)){this.logWarn("setMargin() passed invalid margin:"+_2+", ignoring.");return} this.margin=_1} var _3=this.getStyleHandle();if(!_3)return;this.$883();this.adjustOverflow("setMargin");this.innerSizeChanged("Margin thickness changed")},isc.A.$883=function isc_Canvas__applyFullMargins(){var _1=this.getClipHandle();if(!_1)return;if(!this.$sb()&&this.$sc==null){_1.style.marginTop="";_1.style.marginBottom="";_1.style.marginLeft="";_1.style.marginRight="";if(this.margin==null)_1.style.margin=0;else _1.style.margin=this.margin+isc.px;return} var _2=this.$sd();_1.style.marginTop=_2.top+isc.px;_1.style.marginLeft=_2.left+isc.px;_1.style.marginBottom=_2.bottom+isc.px;_1.style.marginRight=_2.right+isc.px},isc.A.getMargin=function isc_Canvas_getMargin(){return this.margin},isc.A.getTopMargin=function isc_Canvas_getTopMargin(){return this.$sd().top},isc.A.getLeftMargin=function isc_Canvas_getLeftMargin(){return this.$sd().left},isc.A.getBottomMargin=function isc_Canvas_getBottomMargin(){return this.$sd().bottom},isc.A.getRightMargin=function isc_Canvas_getRightMargin(){return this.$sd().right},isc.A.$88x=function isc_Canvas__removeDestroyedPeers(_1,_2){var _3=[];for(var i=0;i<_1.length;i++){if(_1[i].destroyed){_3[_3.length]={peer:_1[i],side:_2};_1[i]=null}} _1.removeEmpty();return _3},isc.A.$sd=function isc_Canvas__calculateMargins(){var _1=this.$sc,_2=(_1!=null),_3,_4,_5,_6;if(_2){_3=_1.top;_6=_1.bottom;_4=_1.left;_5=_1.right;var _7=[];if(_3!=null)_7.addList(this.$88x(_3,"top"));if(_6!=null)_7.addList(this.$88x(_6,"bottom"));if(_4!=null)_7.addList(this.$88x(_4,"left"));if(_5!=null)_5.addList(this.$88x(_5,"right"));if(_7.length>0){for(var i=0;i<_7.length;i++){this.$wj(_7[i].peer,_7[i].side)}} if((_3==null||_3.length==0)&&(_6==null||_6.length==0)&&(_4==null||_4.length==0)&&(_5==null||_5.length==0))_2=false} if(!this.$sb()&&!_2)return this.$s9();var _9=this.$s8;if(_9)return _9;var _10=this.$ta();_9={left:_10.left,right:_10.right,top:_10.top,bottom:_10.bottom};if(_2){if(_3){for(var i=0;i<_3.length;i++){var _11=_3[i];_9.top+=_11.getVisibleHeight();if(_11.$55s!=null){_9.top-=_11.$55s}}} if(_6){for(var i=0;i<_6.length;i++){var _12=_6[i];_9.bottom+=_12.getVisibleHeight();if(_12.$55s!=null){_9.bottom-=_12.$55s}}} if(_4){for(var i=0;i<_4.length;i++){var _13=_4[i];_9.left+=_13.getVisibleWidth();if(_13.$55s!=null){_9.left-=_13.$55s}}} if(_5){for(var i=0;i<_5.length;i++){var _14=_5[i];_9.right+=_14.getVisibleWidth();if(_14.$55s!=null){_9.right-=_14.$55s}}}} if(this.$sb()){var _15=this.$pq();_9.left+=_15.$tb,_9.right+=_15.$tc,_9.top+=_15.$td,_9.bottom+=_15.$te} return(this.$s8=_9)},isc.A.$ta=function isc_Canvas__getSpecifiedMargins(){var _1=this.$if;this.$if=false;var _2=this.$s9();this.$if=_1;return _2},isc.A.$s9=function isc_Canvas__calculateNormalMargins(){if(this.$s7!=null)return this.$s7;var _1={},_2=isc.px;if(!this.isDrawn()){var _3=this.margin;if(isc.isA.String(_3)){if(isc.endsWith(_3,_2)||parseInt(_3)+isc.emptyString==_3) _3=parseInt(_3)} if(isc.isA.Number(_3)){_1.top=_3;_1.bottom=_3;_1.left=_3;_1.right=_3;this.$s7=_1;return _1}}else{var _4=this.getStyleHandle(),_5=_4.marginLeft,_6=_4.marginRight,_7=_4.marginTop,_8=_4.marginBottom;if(isc.isA.String(_5)&&isc.endsWith(_5,_2)) _5=parseInt(_5);if(isc.isA.String(_6)&&isc.endsWith(_6,_2)) _6=parseInt(_6) if(isc.isA.String(_7)&&isc.endsWith(_7,_2)) _7=parseInt(_7);if(isc.isA.String(_8)&&isc.endsWith(_8,_2)) _8=parseInt(_8) if(isc.isA.Number(_5))_1.left=_5;if(isc.isA.Number(_6))_1.right=_6;if(isc.isA.Number(_7))_1.top=_7;if(isc.isA.Number(_8))_1.bottom=_8} if(this.className){if(!isc.isA.Number(_1.left)) _1.left=isc.Element.$tf(this.className);if(!isc.isA.Number(_1.right)) _1.right=isc.Element.$tg(this.className);if(!isc.isA.Number(_1.top)) _1.top=isc.Element.$th(this.className);if(!isc.isA.Number(_1.bottom)) _1.bottom=isc.Element.$ti(this.className)}else{if(!isc.isA.Number(_1.left)) _1.left=0;if(!isc.isA.Number(_1.right)) _1.right=0;if(!isc.isA.Number(_1.top)) _1.top=0;if(!isc.isA.Number(_1.bottom)) _1.bottom=0} return(this.$s7=_1)},isc.A.getTopBorderSize=function isc_Canvas_getTopBorderSize(){return this.$tj().top},isc.A.getBottomBorderSize=function isc_Canvas_getBottomBorderSize(){return this.$tj().bottom},isc.A.getLeftBorderSize=function isc_Canvas_getLeftBorderSize(){return this.$tj().left},isc.A.getRightBorderSize=function isc_Canvas_getRightBorderSize(){return this.$tj().right},isc.A.getHBorderSize=function isc_Canvas_getHBorderSize(){return(this.getLeftBorderSize()+this.getRightBorderSize())},isc.A.getVBorderSize=function isc_Canvas_getVBorderSize(){return this.getTopBorderSize()+this.getBottomBorderSize()},isc.A.$tj=function isc_Canvas__calculateBorderSize(){if(this.$tk!=null)return this.$tk;var _1={},_2=isc.px;if(!this.isDrawn()){var _3=this.border;if(_3!=null&&isc.contains(_3,_2)){var _4=_3.match(/\s*\d+px/g);if(isc.isAn.Array(_4))_4=parseInt(_4[0]);else _4=parseInt(_4);if(isc.isA.Number(_4)){this.$tk={left:_4,right:_4,top:_4,bottom:_4} return this.$tk}}}else{var _5=this.getStyleHandle(),_6=_5.borderLeftWidth,_7=_5.borderRightWidth,_8=_5.borderTopWidth,_9=_5.borderBottomWidth;if(isc.isA.String(_6)&&isc.endsWith(_6,_2)) _6=parseInt(_6);if(isc.isA.String(_7)&&isc.endsWith(_7,_2)) _7=parseInt(_7) if(isc.isA.String(_8)&&isc.endsWith(_8,_2)) _8=parseInt(_8);if(isc.isA.String(_9)&&isc.endsWith(_9,_2)) _9=parseInt(_9) if(isc.isA.Number(_6))_1.left=_6;if(isc.isA.Number(_7))_1.right=_7;if(isc.isA.Number(_8))_1.top=_8;if(isc.isA.Number(_9))_1.bottom=_9} var _10=this.$95g();if(_10){if(!isc.isA.Number(_1.left)) _1.left=isc.Element.$tl(_10);if(!isc.isA.Number(_1.right)) _1.right=isc.Element.$tm(_10);if(!isc.isA.Number(_1.top)) _1.top=isc.Element.$tn(_10);if(!isc.isA.Number(_1.bottom)) _1.bottom=isc.Element.$to(_10)}else{if(!isc.isA.Number(_1.left)) _1.left=0;if(!isc.isA.Number(_1.right)) _1.right=0;if(!isc.isA.Number(_1.top)) _1.top=0;if(!isc.isA.Number(_1.bottom)) _1.bottom=0} return(this.$tk=_1)},isc.A.$95g=function isc_Canvas__getBorderClassName(){return this.className},isc.A.setTopPadding=function isc_Canvas_setTopPadding(_1){this.$tp=null;this.topPadding=_1;if(isc.isA.Number(_1))_1+="px";if(this.isDrawn()){var _2=this.$113l?this.getHandle().style:this.getStyleHandle();_2.paddingTop=_1}},isc.A.setLeftPadding=function isc_Canvas_setLeftPadding(_1){this.$tp=null;this.leftPadding=_1;if(isc.isA.Number(_1))_1+="px";if(this.isDrawn()){var _2=this.$113l?this.getHandle().style:this.getStyleHandle();_2.paddingLeft=_1}},isc.A.setRightPadding=function isc_Canvas_setRightPadding(_1){this.$tp=null;this.rightPadding=_1;if(isc.isA.Number(_1))_1+="px";if(this.isDrawn()){var _2=this.$113l?this.getHandle().style:this.getStyleHandle();_2.paddingRight=_1}},isc.A.setBottomPadding=function isc_Canvas_setBottomPadding(_1){this.$tp=null;this.bottomPadding=_1;if(isc.isA.Number(_1))_1+="px";if(this.isDrawn()){var _2=this.$113l?this.getHandle().style:this.getStyleHandle();_2.paddingBottom=_1}},isc.A.setPadding=function isc_Canvas_setPadding(_1){this.$tp=null;if(_1!=null){var _2=_1;if(isc.isA.String(_1))_1=parseInt(_1);if(!isc.isA.Number(_1)){this.logWarn("setPadding passed unrecognized value:"+_2+" - ignoring");return}} this.padding=_1;var _3=isc.Browser.isDOM?this.getHandle():null;if(!_3){return} if(_1==null){_3.style.padding=null;if(this.$113l)this.getClipHandle().style.padding=null}else{_3.style.padding=this.padding+isc.px;if(this.$113l)this.getClipHandle().style.padding=this.$65h}},isc.A.getPadding=function isc_Canvas_getPadding(){return this.padding},isc.A.getTopPadding=function isc_Canvas_getTopPadding(){return this.$tq().top},isc.A.getBottomPadding=function isc_Canvas_getBottomPadding(){return this.$tq().bottom},isc.A.getLeftPadding=function isc_Canvas_getLeftPadding(){return this.$tq().left},isc.A.getRightPadding=function isc_Canvas_getRightPadding(){return this.$tq().right},isc.A.getVPadding=function isc_Canvas_getVPadding(){return this.getTopPadding()+this.getBottomPadding()},isc.A.getHPadding=function isc_Canvas_getHPadding(){return this.getLeftPadding()+this.getRightPadding()},isc.A.$tq=function isc_Canvas__calculatePadding(){if(this.$tp!=null)return this.$tp;var _1={},_2=isc.px;if(this.isDrawn()&&this.getHandle()!=null){var _3=this.getHandle().style;if(_3.paddingTop!=null&&!isc.isAn.emptyString(_3.paddingTop)&&isc.endsWith(_3.paddingTop,_2)){_1.top=parseInt(_3.paddingTop)} if(_3.paddingBottom!=null&&!isc.isAn.emptyString(_3.paddingBottom)&&isc.endsWith(_3.paddingBottom,_2)){_1.bottom=parseInt(_3.paddingBottom)} if(_3.paddingLeft!=null&&!isc.isAn.emptyString(_3.paddingLeft)&&isc.endsWith(_3.paddingLeft,_2)){_1.left=parseInt(_3.paddingLeft)} if(_3.paddingRight!=null&&!isc.isAn.emptyString(_3.paddingRight)&&isc.endsWith(_3.paddingRight,_2)){_1.right=parseInt(_3.paddingRight)}}else{if(this.topPadding!=null)_1.top=this.topPadding;if(this.leftPadding!=null)_1.left=this.leftPadding;if(this.rightPadding!=null)_1.right=this.rightPadding;if(this.bottomPadding!=null)_1.bottom=this.bottomPadding;if(this.padding!=null){var _4=parseInt(this.padding);if(_1.left==null)_1.left=_4;if(_1.top==null)_1.top=_4;if(_1.bottom==null)_1.bottom=_4;if(_1.right==null)_1.right=_4}} if(this.className){if(!isc.isA.Number(_1.left))_1.left=isc.Element.$tr(this.className);if(!isc.isA.Number(_1.right))_1.right=isc.Element.$ts(this.className);if(!isc.isA.Number(_1.top))_1.top=isc.Element.$tt(this.className);if(!isc.isA.Number(_1.bottom))_1.bottom=isc.Element.$tu(this.className)}else{if(!isc.isA.Number(_1.left))_1.left=0;if(!isc.isA.Number(_1.right))_1.right=0;if(!isc.isA.Number(_1.top))_1.top=0;if(!isc.isA.Number(_1.bottom))_1.bottom=0} return(this.$tp=_1)},isc.A.containsPoint=function isc_Canvas_containsPoint(_1,_2,_3){if(isc.$cv)arguments.$cw=this;if(!this.isVisible()||!this.isDrawn())return false;if(_3==null)_3=false;var _4=this.getPageLeft()+this.getLeftMargin();if(_1<_4){return false} var _5=this.getPageTop()+this.getTopMargin();if(_2<_5){return false} var _6=_3?this.getViewportWidth():(this.getVisibleWidth()-this.getHMarginSize());if(_1>_4+_6){return false} var _7=_3?this.getViewportHeight():(this.getVisibleHeight()-this.getVMarginSize());if(_2>_5+_7){return false} var _8=0,_9=0;var _10=this.$tv=this.$tv||[];_10.length=1;_10[0]=this;var i=1,_12=this;while(_12.parentElement!=null){_12=_12.parentElement _10[i]=_12;i++} var _13,_14;for(var j=_10.length-1;j>=0;j--){var _16=_10[j];var _17=_16.getCanvasOffsets();_8+=_17.left;_9+=_17.top;if(_16==this&&!_3){_13=_16.getVisibleWidth()-_16.getHMarginSize();_14=_16.getVisibleHeight()-_16.getVMarginSize()}else{_13=_16.getViewportWidth();_14=_16.getViewportHeight()} if(!((_1>=_8)&&(_1<=_8+_13)&&(_2>=_9)&&(_2<=_9+_14))) {return false}} return true},isc.A.visibleAtPoint=function isc_Canvas_visibleAtPoint(_1,_2,_3,_4,_5){if(isc.$cv)arguments.$cw=this;if(!this.containsPoint(_1,_2,_3)){return false} if(!isc.isAn.Array(_4))_4=[_4];var _6=this;while(_6!=null&&_6!=_5){var _7=(_6.parentElement!=null?_6.parentElement.children:isc.Canvas.$tw);for(var i=0;i<_7.length;i++){var _9=_7[i];if(_9==null||_9==_6||!_9.isDrawn()||!_9.isVisible()||_4.contains(_9)||_9.isMouseTransparent||(_9.getZIndex()<_6.getZIndex())) {continue} if(_9.$jr)continue;if(isc.isA.Scrollbar(_9)||isc.isA.ScrollThumb(_9))continue;if(isc.EdgedCanvas&&isc.isA.EdgedCanvas(_9)&&_9.masterElement&&_9.masterElement.$l0==_9)continue;if(isc.Layout&&isc.isA.Layout(_9.parentElement)&&_9.parentElement.hasMember(_9)&&_9.parentElement.hasMember(_6)) {continue} if(isc.TabSet&&isc.isA.TabBar(_9)&&isc.isA.TabSet(_9.parentElement)&&_9.parentElement.paneContainer&&_9.parentElement.paneContainer.contains(this)) {continue} if(_9.containsPoint(_1,_2,false)){return false}} _6=_6.parentElement} return true},isc.A.scrollIntoView=function isc_Canvas_scrollIntoView(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11){if(_3==null)_3=0;if(_4==null)_4=0;if(_10==null){_10=this} if(this.isRTL()){_1=this.$95h(_1,false)} var _12=true;var _13,_14;if(this.overflow!=isc.Canvas.VISIBLE&&this.overflow!=isc.Canvas.IGNORE){if(_1!=null){var _15=this.getScrollLeft(),_16=this.getViewportWidth(),_17=_15+_16,_18=false,_19=false;if(_1+_3>_17){_18=true} if(_1<_15){_19=true} if(_18!=_19||_9){if(_5==this.$oz){_13=_1}else if(_5==this.$o1){_13=(_1+_3)-_16}else{_13=(_1+parseInt(_3/2)) -parseInt(_16/2)}}} if(_2!=null){var _20=this.getScrollTop(),_21=this.getViewportHeight(),_22=_20+_21,_23=false,_24=false;if(_2+_4>_22)_24=true;if(_2<_20)_23=true;if(_23!=_24||_9){if(_6==this.$o0){_14=_2}else if(_6==this.$o2){_14=(_2+_4)-_21}else{_14=(_2+parseInt(_4/2)) -parseInt(_21/2)}}} if(_13!=null||_14!=null){if(_7){this.animateScroll(_13,_14,_8);_12=false}else{this.scrollTo(_13,_14,"scrollIntoView")}}} if(this!=_11&&this.parentElement!=null){var _25=_1,_26=_2;if(_25!=null){_25-=(_13!=null?_13:this.getScrollLeft());_25+=this.getOffsetLeft()} if(_26!=null){_26-=(_14!=null?_14:this.getScrollTop());_26+=this.getOffsetTop()} this.parentElement.scrollIntoView(_25,_26,_3,_4,null,null,null,null,null,_10,_11)} if(_8&&_12)this.fireCallback(_8)},isc.A.intersects=function isc_Canvas_intersects(_1){var _2=_1.getPageLeft(),_3=_1.getVisibleWidth(),_4=_1.getPageTop(),_5=_1.getVisibleHeight();return this.intersectsRect(_2,_4,_3,_5)},isc.A.intersectsRect=function isc_Canvas_intersectsRect(_1,_2,_3,_4){var _5,_6=[];if(isc.isAn.Array(_1))_5=_1;else _5=[_1,_2,_3,_4];return isc.Canvas.rectsIntersect(_5,[this.getPageLeft(),this.getPageTop(),this.getVisibleWidth(),this.getVisibleHeight()])},isc.A.encloses=function isc_Canvas_encloses(_1){var _2=_1.getPageLeft(),_3=_1.getVisibleWidth(),_4=_1.getPageTop(),_5=_1.getVisibleHeight();return this.enclosesRect(_2,_4,_3,_5)},isc.A.enclosesRect=function isc_Canvas_enclosesRect(_1,_2,_3,_4){var _5=[];if(isc.isAn.Array(_1))_5=_1;else _5=[_1,_2,_3,_4];return isc.Canvas.rectEnclosesRect([this.getPageLeft(),this.getPageTop(),this.getVisibleWidth(),this.getVisibleHeight()],_5)},isc.A.$146b=function isc_Canvas__differentEventCharacteristics(_1,_2){var _3=(_1.DOMevent.target&&_1.DOMevent.target.nodeType==1?_1.DOMevent.target:_1.DOMevent.target.parentElement);var _4=(_2.DOMevent.target&&_2.DOMevent.target.nodeType==1?_2.DOMevent.target:_2.DOMevent.target.parentElement);if(_3!=null&&_4!=null&&_3!==_4&&(_3.tagName!==_4.tagName||_3.id!==_4.id)) {return true} return false},isc.A.containsEvent=function isc_Canvas_containsEvent(){return this.containsPoint(this.ns.EH.getX(),this.ns.EH.getY())},isc.A.getEventEdge=function isc_Canvas_getEventEdge(_1,_2){var _3=this.ns.EH;if(!_1)_1=(this.resizeFrom||_3.ALL_EDGES);if(!isc.isAn.Array(_1))_1=[_1];var _4=this.$ta(),_5=_4.left,_6=_4.right,_7=_4.top,_8=_4.bottom;var _9=this.getPageOffsets(),_10=_9.left+_5,_11=_9.top+_7,_12=(this.getPageRight(_9)-_6)+1,_13=(this.getPageBottom(_9)-_8)+1,_14="",_15="",x,y;if(_2){x=_2[0];y=_2[1]}else{x=_3.getX();y=_3.getY()} if(y<_11||y>_13||x<_10||x>_12)return null;var _18=this.edgeMarginSize;if(this.minNonEdgeSize>0){if(_1.contains("B")||_1.contains("T")){if(_1.contains("B")&&_1.contains("T")){if((_13-_11)<(this.minNonEdgeSize+2*_18)){_18=(_13-_11)/3}}else{if((_13-_11)<(this.minNonEdgeSize+_18)){_18=(_13-_11)/2}}} if(_1.contains("L")||_1.contains("R")){if(_1.contains("L")&&_1.contains("R")){if((_12-_10)<(this.minNonEdgeSize+2*_18)){_18=(_12-_10)/3}}else{if((_12-_10)<(this.minNonEdgeSize+_18)){_18=(_12-_10)/2}}}} if(y>=(_13-_18)&&y<=_13)_15="B";else if(y>=_11&&y<=(_11+_18+1))_15="T";if(x>=(_12-_18)&&x<=_12)_14="R";else if(x>=_10&&x<=(_10+_18+1))_14="L";if(_14!=""||_15!=""){var _19=_15+_14;if(_1.contains(_19))return _19;else if(_14!=""&&_1.contains(_14))return _14;else if(_15!=""&&_1.contains(_15))return _15} return null},isc.A.getOffsetX=function isc_Canvas_getOffsetX(_1){var _2=this.ns.EH.getX(_1) -(this.getPageLeft()+this.getLeftBorderSize())+this.getScrollLeft() -(this.vscrollOn&&this.isRTL()?this.getScrollbarSize():0);return _2},isc.A.getOffsetY=function isc_Canvas_getOffsetY(_1){return this.ns.EH.getY(_1)+this.getScrollTop() -(this.getPageTop()+this.getTopBorderSize())},isc.A.setClip=function isc_Canvas_setClip(_1,_2,_3,_4){if(isc.isAn.Array(_1)) this.$q6=_1;else this.$q6=[_1,_2,_3,_4];var _5=this.getClipHandle();if(_5!=null){var _6=this.$q6;_5.style.clip="rect("+_6.join("px ")+"px)"}},isc.A.getScrollbarSize=function isc_Canvas_getScrollbarSize(){if(this.showCustomScrollbars)return this.getCustomScrollbarSize();return isc.Element.getNativeScrollbarSize()},isc.A.getViewportWidth=function isc_Canvas_getViewportWidth(){return this.getVisibleWidth()- (this.vscrollOn?this.getScrollbarSize():0)- this.getHMarginBorder()},isc.A.getViewportHeight=function isc_Canvas_getViewportHeight(){return this.getVisibleHeight()- (this.hscrollOn?this.getScrollbarSize():0)- this.getVMarginBorder()},isc.A.getOuterViewportWidth=function isc_Canvas_getOuterViewportWidth(){return this.getVisibleWidth()-(this.vscrollOn?this.getScrollbarSize():0)- this.getHMarginSize()},isc.A.getOuterViewportHeight=function isc_Canvas_getOuterViewportHeight(){return this.getVisibleHeight()-(this.hscrollOn?this.getScrollbarSize():0)- this.getVMarginSize()},isc.A.getInnerHeight=function isc_Canvas_getInnerHeight(_1){return(_1?this.getVisibleHeight():this.getHeight()) -((this.hscrollOn||this.overflow==isc.Canvas.SCROLL)?this.getScrollbarSize():0) -this.getVMarginBorder()},isc.A.getInnerWidth=function isc_Canvas_getInnerWidth(_1){var _2=_1?this.getVisibleWidth():this.getWidth();if(this.vscrollOn||this.overflow==isc.Canvas.SCROLL||this.alwaysShowVScrollbar) _2-=this.getScrollbarSize();return _2-this.getHMarginBorder()},isc.A.getInnerContentHeight=function isc_Canvas_getInnerContentHeight(_1){return Math.max(1,(_1?this.getVisibleHeight():this.getHeight()) -(this.hscrollOn||this.overflow==isc.Canvas.SCROLL?this.getScrollbarSize():0) -this.getVMarginBorderPad())},isc.A.getInnerContentWidth=function isc_Canvas_getInnerContentWidth(_1){var _2=_1?this.getVisibleWidth():this.getWidth();if(this.vscrollOn||this.overflow==isc.Canvas.SCROLL||this.alwaysShowVScrollbar) _2-=this.getScrollbarSize();return Math.max(1,_2-this.getHMarginBorderPad())});isc.evalBoundary;isc.B.push(isc.A.getVBorderPad=function isc_Canvas_getVBorderPad(){return this.getVBorderSize()+this.getVPadding()},isc.A.getHBorderPad=function isc_Canvas_getHBorderPad(){return this.getHBorderSize()+this.getHPadding()},isc.A.getHMarginSize=function isc_Canvas_getHMarginSize(){return this.getLeftMargin()+this.getRightMargin()},isc.A.getVMarginSize=function isc_Canvas_getVMarginSize(){return this.getTopMargin()+this.getBottomMargin()},isc.A.getVMarginBorder=function isc_Canvas_getVMarginBorder(){var _1=this.$sd(),_2=this.$tj();return _1.top+_1.bottom+_2.top+_2.bottom},isc.A.getHMarginBorder=function isc_Canvas_getHMarginBorder(){var _1=this.$sd(),_2=this.$tj();return _1.left+_1.right+_2.left+_2.right},isc.A.getVMarginBorderPad=function isc_Canvas_getVMarginBorderPad(){return this.getVMarginSize()+this.getVBorderPad()},isc.A.getHMarginBorderPad=function isc_Canvas_getHMarginBorderPad(){return this.getHMarginSize()+this.getHBorderPad()},isc.A.getClipWidth=function isc_Canvas_getClipWidth(){return this.getVisibleWidth()},isc.A.getClipHeight=function isc_Canvas_getClipHeight(){return this.getVisibleHeight()},isc.A.getVisibleWidth=function isc_Canvas_getVisibleWidth(_1){if((this.$if||this.$pu)&&(this.overflow==isc.Canvas.VISIBLE||this.overflow==isc.Canvas.CLIP_V)){return Math.max(this.width,(this.getScrollWidth(_1)+this.getHMarginBorder()))}else{var _2=this.isAnimating(this.$do)?this.$showAnimationInfo:this.isAnimating(this.$zb)?this.$hideAnimationInfo:null;if(_2!=null&&!_2.$1l&&this.vscrollOn){var _3=0;if(this.vscrollbar.visibility==isc.Canvas.HIDDEN){_3=this.getScrollbarSize()}else{_3=this.getScrollbarSize()-this.getScrollbarSize()} return Math.max(this.getWidth()-_3,1)} return this.getWidth()}},isc.A.getVisibleHeight=function isc_Canvas_getVisibleHeight(_1){if((this.$if||this.$pu)&&(this.overflow==isc.Canvas.VISIBLE||this.overflow==isc.Canvas.CLIP_H)) {return Math.max(this.getHeight(),(this.getScrollHeight(_1)+this.getVMarginBorder()))}else{if(this.isAnimating()){var _2=this.isAnimating(this.$do)?this.$showAnimationInfo:this.isAnimating(this.$zb)?this.$hideAnimationInfo:null;if(_2!=null&&_2.$1l&&this.hscrollOn){var _3=0;if(this.hscrollbar&&this.hscrollbar.visibility==isc.Canvas.HIDDEN){_3=this.getScrollbarSize()}else{_3=this.getScrollbarSize()-this.getScrollbarSize()} return Math.max(this.getHeight()-_3,1)}} return this.getHeight()}},isc.A.getPeerRect=function isc_Canvas_getPeerRect(){var _1=this.getPageRect();if(this.peers==null)return _1;for(var i=0;i_1[0]+_1[2])_1[2]=_5-_1[0];var _6=_4[1]+_4[3];if(_6>_1[1]+_1[3])_1[3]=_6-_1[1]} return _1},isc.A.moveBy=function isc_Canvas_moveBy(_1,_2,_3,_4){var _5=_3&&_4;if(!_5&&this.rectAnimation)this.finishAnimation("rect");else if(!_3&&this.moveAnimation)this.finishAnimation("move");if(isc.$cv)arguments.$cw=this;if(isc.isA.Number(_1)) this.left+=_1;else _1=0;if(isc.isA.Number(_2)) this.top+=_2;else _2=0;var _6=(_1!=0||_2!=0);if(!_6&&!_4)return false;this.$tx=_1;this.$ty=_2;var _7=this.left,_8=this.top,_9=(_4&&this.$tz?this.width:null),_10=(_4&&this.$t0?this.$o8:null);if(this.isDrawn()){var _11=this.getClipHandle(),_12=_11.getAttribute(this.$143e);if(_12){_12=parseInt(_12,10)}else{_12=0} var _13=this.$143f(),d=_13-_12;if(d!=0){this.$808=this.$809=null;this.$81b()} _8+=d} this.$q5(_7,_8,_9,_10);if(this.isDrawn()){var _13=this.$143f(),_11=this.getClipHandle();if(_13!=0)_11.setAttribute(this.$143e,String(_13));else _11.removeAttribute(this.$143e)} if(_4)this.$t1();this.$t2();return _6},isc.A.$t2=function isc_Canvas__completeMoveBy(){var _1=(this.$tx||0),_2=(this.$ty||0),_3;this.$tx=_3;this.$ty=_3;if(!_1&&!_2)return;this.$t3(this,_1,_2);this.$t4(_1,_2);if(this.parentElement)this.parentElement.childMoved(this,_1,_2);if(this.masterElement)this.masterElement.peerMoved(this,_1,_2);if(this._useFocusProxy&&this.$qj){var _4=this.$qq();if(_4!=null){var _5=parseInt(_4.style.left)+_1,_6=parseInt(_4.style.top)+_2;_4.style.left=_5+"px";_4.style.top=_6+"px"}} this.$808=this.$809=null;this.handleMoved(_1,_2)},isc.A.handleMoved=function isc_Canvas_handleMoved(_1,_2){if(!this.$832&&this.isDrawn()&&this.parentElement==null&&!isc.Page.pollPageSize) {isc.EH.fireOnPause("checkForBodyOverflowChange",{target:isc.Canvas,methodName:"checkForPageResize"},100)} this.moved(_1,_2)},isc.A.moved=function(deltaX,deltaY){},isc.A.parentMoved=function isc_Canvas_parentMoved(_1,_2,_3){},isc.A.handleParentMoved=function isc_Canvas_handleParentMoved(_1,_2,_3){this.$808=this.$809=null;this.parentMoved(_1,_2,_3);this.$t3(_1,_2,_3)},isc.A.$t3=function isc_Canvas__fireParentMoved(_1,_2,_3){var _4=this.children;if(_4!=null){for(var i=0;i<_4.length;i++){if(isc.isA.Canvas(_4[i])){_4[i].handleParentMoved(_1,_2,_3)}}}},isc.A.childMoved=function isc_Canvas_childMoved(_1,_2,_3){if(this.editingOn&&this.editContext){this.editContext.saveCoordinates(_1);if(this.editProxy&&this.editProxy.canSelectChildren&&!this.$128p){var _4=this.editContext.getSelectedComponents();if(_4.length>0&&_4.contains(_1)){this.$128p=true;for(var i=0;i<_4.length;i++){if(_4[i]!=_1){_4[i].moveBy(_2,_3)}} this.$128p=false}}} if(_1&&_1.masterElement!=null&&_1.containedPeer==true)return;if(this.allowContentAndChildren&&this.overflow==isc.Canvas.VISIBLE) this.$t5=true;this.$t6(this.$o4)},isc.A.$t4=function isc_Canvas__fireMasterMoved(_1,_2){var _3=this.peers;if(_3==null)return;for(var i=0;i<_3.length;i++){if(_3[i])_3[i].masterMoved(_1,_2)}},isc.A.masterMoved=function isc_Canvas_masterMoved(_1,_2){if(this.$ns)this.moveBy(_1,_2)},isc.A.peerMoved=function isc_Canvas_peerMoved(_1,_2,_3){},isc.A.dragRepositioned=function isc_Canvas_dragRepositioned(){},isc.A.getDelta=function isc_Canvas_getDelta(_1,_2,_3){if(_2==null)return null;var _4=_1,_5=this.$pb[_1];if(_1==this.$o5)_4=this.$o7;if(isc.isA.Number(_2)){var _6=Math.round(_2);if(_6!=_2){this.logWarn(_1+" specified as fractional coordinate:"+_2+". Rounded to:"+_6);_2=_6}}else if(isc.isA.String(_2)&&isc.endsWith(_2,this.$o9)){this[_5]=_2;if(this.masterElement==null&&this.parentElement==null&&this.$rq==null){this.$rq=isc.Page.setEvent(this.$nx,this,isc.Page.FIRE_ONCE)} if(this.$pp){_3=this[_4]=0;if(this.percentBox=="custom")this[_4]=1} if(this.percentBox=="custom")return 0;var _7,_8,_9,_10=(_1==this.$oz||_1==this.$o6);if(this.percentSource||(this.snapTo&&this.masterElement)){_7=this.percentSource||this.masterElement;_9=(this.percentBox==this.$520),_8=_10?(_9?_7.getViewportWidth():_7.getVisibleWidth()):(_9?_7.getViewportHeight():_7.getVisibleHeight())}else{_7=this.parentElement;_8=(_10?(_7?_7.getInnerWidth():isc.Page.getWidth()):(_7?_7.getInnerHeight():isc.Page.getHeight()-this.$143f()))} if(isc.Browser.isIE&&!isc.Page.isLoaded()&&((isc.Page.getWidth()==0)||(isc.Page.getHeight()==0))) {isc.Page.setEvent("load","if(window["+this.ID+"])"+this.ID+".pageResize()",isc.Page.FIRE_ONCE);this.$77g=true} if(isc.Browser.isChrome&&(!isc.Page.isLoaded()||isc.EH.$77e=="load")&&(isc.Page.getWidth()==0||isc.Page.getHeight()==0)) {if(isc.Page.isLoaded()){isc.Page.setEvent("idle","if(window."+this.ID+")"+this.ID+".pageResize()",isc.Page.FIRE_ONCE)}else{isc.Page.setEvent("load","if(window."+this.ID+")"+this.ID+".delayCall('pageResize',[],100)",isc.Page.FIRE_ONCE)} this.$77g=true} _2=Math.round((parseInt(_2,10)/100)*_8);var _11=this[this.$90f[_1]];if(_11!=null&&_2<_11){_2=_11} var _12=this[this.$90u[_1]];if(_12!=null&&_2>_12){_2=_12} return _2-_3} var _13=_2;if(!isc.isA.Number(_2)){_2=parseInt(_2);if(isc.isA.Number(_2)&&isc.isA.String(_3)){this[_4]=_3=_2}} this[_5]=null;if(!isc.isA.Number(_2)||(_2<0&&(_1==this.$o6||_1==this.$o5))) {var _14=false;if(_13!="*"){this.logWarn("ignoring bad or negative "+_1+": "+_13+(this.logIsDebugEnabled("sizing")?this.getStackTrace():" [enable 'sizing' log for stack trace]"))}else{_1==this.$o6?this.$pn="*":this.$po="*";var _7=this.parentElement;if(isc.isA.Layout(_7)&&_7.hasMember(this)){_7.reflow(this.getID()+" set "+_1+" to '*'");_14=true}} if(!_14&&(_3==this[_1]||_3==this[_4])) {_3=this.restoreDefaultSize(_1==this.$o5)} this.adjustOverflow();return null} return _2-_3},isc.A.restoreDefaultSize=function isc_Canvas_restoreDefaultSize(_1){var _2=_1?this.$o5:this.$o6,_3=this.getClass().getInstanceProperty(_2);if(!isc.isA.Number(_3)){if(_1)_3=this.defaultHeight;else _3=this.defaultWidth} var _4=this[_2]=(isc.isA.Number(_3)?_3:0);if(_1)this.$o8=_4;return _4},isc.A.pageResize=function isc_Canvas_pageResize(){this.$832=true;this.$rq=null;this.$77g=null;this.$qw();delete this.$832},isc.A.moveTo=function isc_Canvas_moveTo(_1,_2,_3,_4){if(!_4&&_1==null&&_2==null)return false;if(isc.$cv)arguments.$cw=this;if(_1!=null&&_1.top!=null){_2=_1.top;_1=_1.left} var _5=this.getDelta(this.$oz,_1,this.getLeft()),_6=this.getDelta(this.$o0,_2,this.getTop(true));return this.moveBy(_5,_6,_3,_4)},isc.A.moveToEvent=function isc_Canvas_moveToEvent(_1,_2){var _3=this.ns.EH.getLastEvent(),x=_3.x,y=_3.y;if(isc.isA.Number(_1))x-=_1;if(isc.isA.Number(_2))y-=_2;var _6=this.ns.EH;var _7=_6.getDragTarget(_3);var _8;if(_6.getDragTarget().canDrop){_8=_6.getDropTarget(_3);if(_8){if(!_7.snapOnDrop||!_8.shouldSnapOnDrop(_7)){_8=null}}else{_8=_6.getDragTarget(_3).parentElement}}else{_8=_6.getDragTarget(_3).parentElement} var _9=_7.snapToGrid,_10=(_8?_8.childrenSnapToGrid:null);if(_7.editingOn&&_7.editProxy)_9=_7.editProxy.snapToGrid||_9;if(_8&&_8.editingOn&&_8.editProxy)_10=_8.editProxy.childrenSnapToGrid||_10;if(_8&&_8.editingOn&&isc.isA.Canvas(_8)&&_9!=true&&_10!=true&&_8.editProxy&&!_8.editProxy.canAdd(_7.getClassName())&&_8.parentElement) {if(_8.parentElement.containsPoint(_3.x,_3.y)&&_8.parentElement.childrenSnapToGrid){_8=_8.parentElement;_10=_8.childrenSnapToGrid;if(_8&&_8.editingOn&&_8.editProxy)_10=_8.editProxy.childrenSnapToGrid||_10}} if(isc.isA.Canvas(_8)&&(_9==true||(_9==null&&_10==true))&&!_3.shiftKey) {if(_8.noSnapDragOffset(this)){x=_3.x,y=_3.y} if(_8.suppressHSnapOffset==true)x=_3.x;if(_8.suppressVSnapOffset==true)y=_3.y;if(_8.snapAxis==isc.Canvas.HORIZONTAL||_8.snapAxis==isc.Canvas.BOTH) {var _11=(_8.getPageLeft()+_8.getLeftBorderSize()+_8.getLeftMargin()-_8.getScrollLeft());x-=_11;x=_8.getHSnapPosition(x)+_8.getHSnapOrigin(_7);x+=_11} if(_8.snapAxis==isc.Canvas.VERTICAL||_8.snapAxis==isc.Canvas.BOTH) {var _11=(_8.getPageTop()+_8.getTopBorderSize()+_8.getTopMargin()-_8.getScrollTop()) y-=_11;y=_8.getVSnapPosition(y)+_8.getVSnapOrigin(_7);y+=_11}} this.setPageRect(x,y)},isc.A.getVSnapOrigin=function isc_Canvas_getVSnapOrigin(_1){return this.VSnapOrigin?this.VSnapOrigin:0},isc.A.getHSnapOrigin=function isc_Canvas_getHSnapOrigin(_1){return this.HSnapOrigin?this.HSnapOrigin:0},isc.A.placeNextTo=function isc_Canvas_placeNextTo(_1,_2,_3,_4){var _5=_1.getPeerRect(),_6=this.getPeerRect(),_7=isc.Canvas.$t7(_6[2],_6[3],_5,_2,_3,_4);this.setPageRect(_7[0],_7[1])},isc.A.showNextTo=function isc_Canvas_showNextTo(_1,_2,_3,_4){if(_2==null)_2="right";if(_3==null)_3=false;this.placeNextTo(_1,_2,_3);if(_4){if(!this.parentElement||this.parentElement.isDrawn()){this.draw()} if(!this.isVisible())this.show()}else{this.animateShow("fade")}},isc.A.placeNear=function isc_Canvas_placeNear(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}else if(isc.isAn.Object(_1)){_2=_1.top;_1=_1.left} if(this.showShadow&&this._shadow)this.updateShadow();var _3=this.getPeerRect(),_4=isc.Canvas.$t7(_3[2],_3[3],{left:_1,top:_2});this.setPageRect(_4[0],_4[1])},isc.A.resizeBy=function isc_Canvas_resizeBy(_1,_2,_3,_4,_5){if(isc.$cv)arguments.$cw=this;var _6=_3&&_4;if(!_6&&this.rectAnimation)this.finishAnimation("rect");if(!_3){if(_6&&this.resizeAnimation)this.finishAnimation("resize");if(this.hideAnimation)this.finishAnimation("hide");if(this.showAnimation)this.finishAnimation("show")} var _7=this.getWidth(),_8=this.getHeight();if(isc.isA.Number(_1)){this.width+=_1;if(!this.$pp)this.$t8=true}else{_1=0} if(isc.isA.Number(_2)){this.height=this.$o8=_8+_2;if(!this.$pp)this.$t9=true}else{_2=0} if(_1==0&&_2==0)return false;this.$tz=_1;this.$t0=_2;this.$ua=_3;if(this.isDrawn()&&this.logIsInfoEnabled(this.$nx)){this.logInfo("resize of drawn component: new width/height: "+[this.width,this.$o8]+", old width/height: "+[_7,_8]+", delta width/height: "+[_1,_2]+(this.logIsDebugEnabled(this.$nx)?this.getStackTrace():""),this.$nx)} if(!_4){var _9=this.$q6;if(isc.isAn.Array(_9)){_9[1]+=_1;_9[2]+=_2} var _10=this.getDrawnState();if(_10==isc.Canvas.COMPLETE){this.$q5(this.left,this.top,this.width,this.$o8);if(isc.isAn.Array(_9))this.setClip(_9)}else if(_10!=isc.Canvas.UNDRAWN){this.$q4=true} this.$t1(_5)} return true},isc.A.$t1=function isc_Canvas__completeResizeBy(_1){var _2=(this.$tz||0),_3=(this.$t0||0),_4=this.$ua,_5;this.$tz=_5;this.$t0=_5;this.$ua=_5;if(!_2&&!_3)return;var _6;if(this.isDrawn()){_6=this.shouldRedrawOnResize(_2,_3,_4);if(_6){this.markForRedraw(this.$nx)}} if(!_4)this.layoutChildren(this.$pc,_2,_3) if((isc.Browser.isMoz||isc.Browser.isSafari)&&this.containsIFrame())this.$pw();this.$ub(_2,_3);if(!_6)this.adjustOverflow(this.$nx);if(!_4&&this._useFocusProxy&&this.$qj){var _7=this.$sl();if(_7!=null){_7.style.width=this.getWidth()+isc.px;_7.style.height=this.getHeight()+isc.px}} this.resizePeersBy(_2,_3);this.$5y(_2,_3,_1)},isc.A.shouldRedrawOnResize=function isc_Canvas_shouldRedrawOnResize(_1,_2){var _3=this.redrawOnResize;if(_3==null){_3=!((this.children!=null&&this.children.length>0&&!this.allowContentAndChildren)||(this.getInnerHTML==isc.Canvas.$b4.getInnerHTML&&!isc.isA.Function(this.contents)))} return _3},isc.A.dragResizing=function isc_Canvas_dragResizing(){var _1=isc.EH;return(_1.dragging&&_1.dragOperation==_1.DRAG_RESIZE&&_1.dragTarget==this)},isc.A.$5y=function(deltaX,deltaY,reason){if(isc.$cv)arguments.$cw=this;if(this.snapTo)this.$qw(true);if(this.parentElement)this.parentElement.childResized(this,deltaX,deltaY,reason);if(this.masterElement)this.masterElement.peerResized(this,deltaX,deltaY,reason);var peers=this.peers;if(peers){for(var i=0;i0){for(var i=0;i<_1.length;i++){if(isc.isA.Canvas(_1[i]))_1[i].parentResized()}}},isc.A.resizeTo=function isc_Canvas_resizeTo(_1,_2,_3,_4,_5){if(isc.$cv)arguments.$cw=this;if(_1==null&&_2==null)return false;var _6=this.getDelta(this.$o6,_1,this.getWidth()),_7=this.getDelta(this.$o5,_2,this.getHeight());return this.resizeBy(_6,_7,_3,_4,_5)},isc.A.resizeToEvent=function isc_Canvas_resizeToEvent(_1){var _2=this.ns.EH,_3=_2.getLastEvent(),x=_3.x,y=_3.y,_6=this.getPageLeft(),_7=_6,_8=this.getPageTop(),_9=_8,_10=this.getPageRight(),_11=_10,_12=this.getPageBottom(),_13=_12,_14=this.getVisibleWidth(),_15=this.getVisibleHeight();var _16=_2.getDragTarget(_3);var _17=_2.getDragTarget(_3).parentElement;if(_17){if(_16.snapResizeToGrid==true||(_16.snapResizeToGrid==null&&_16.snapToGrid==true)||(_16.snapResizeToGrid==null&&(_17.childrenSnapResizeToGrid==true||(_17.childrenSnapResizeToGrid==null&&_17.childrenSnapToGrid==true)))&&!_3.shiftKey) {if(_17.snapAxis==isc.Canvas.HORIZONTAL||_17.snapAxis==isc.Canvas.BOTH){var _18=(_17.getPageLeft()+_17.getLeftBorderSize()+_17.getLeftMargin()-_17.getScrollLeft());x-=_18;x=_17.getHSnapPosition(x)+_17.getHSnapOrigin(_16);x+=_18} if(_17.snapAxis==isc.Canvas.VERTICAL||_17.snapAxis==isc.Canvas.BOTH){_18=(_17.getPageTop()+_17.getTopBorderSize()+_17.getTopMargin()-_17.getScrollTop());y-=_18;y=_17.getVSnapPosition(y)+_17.getVSnapOrigin(_16);y+=_18}}} if(this.logIsDebugEnabled("dragResize")){this.logDebug("resizeToEvent: coords: "+isc.Log.echo({x:x,y:y,left:_7,top:_9,right:_11,bottom:_13}),"dragResize")} _1=_1||_2.resizeEdge||"BR";var _19=_1.contains("T"),_20=!_19&&_1.contains("B");if(_19){var _21=Math.min(this.maxHeight,Math.max(_13-y,this.minHeight));_9=_13-_21}else if(_20){var _21=Math.min(this.maxHeight,Math.max(y-_9,this.minHeight));_13=_9+_21} var _22=_1.contains("L"),_23=!_22&&_1.contains("R");if(_22){var _24=Math.min(this.maxWidth,Math.max(_11-x,this.minWidth));_7=_11-_24}else if(_23){var _24=Math.min(this.maxWidth,Math.max(x-_7,this.minWidth));_11=_7+_24} var _25=_11-_7,_26=_13-_9;var _27=false,_28=0,_29=0,_30=0,_31=0,_32=0,_33=0;var _34=_2.dragTarget;if(_34.$151o&&(_22||_23)&&(_19||_20)) {var _35=_2.dragTargetStartRect,_28=_35[2],_29=_35[3];if(_28!=0&&_29!=0){_27=true;_30=_7;_31=_9;_32=_11;_33=_13;if(_34.$1518()){var _36=_34.$1519(false),_37=_36[0],_38=_37+_36[2],_39=_36[1],_40=_39+_36[3];if(_7<_37){_7=_37}else if(_11>_38){_11=_38} _25=_11-_7;if(_9<_39){_9=_39}else if(_13>_40){_13=_40} _26=_13-_9} var _41=_34.minWidth,_42=_34.minHeight,_43=(_25/_28),_44=(_26/_29);if(_43<_44){var _45=Math.round(_26-_43*_29);if(_26-_45<_42){if(_45>0&&_25==Math.round(_42*_28/_29)){_45=_26-_42}else{return}} if(_20){_13-=_45}else{_9+=_45} _26=_13-_9}else if(_44<_43){var _46=Math.round(_25-_44*_28);if(_25-_46<_41){if(_46>0&&_26==Math.round(_41*_29/_28)){_46=_25-_41}else{return}} if(_23){_11-=_46}else{_7+=_46} _25=_11-_7}}} var _47=(_19||_22||_27);this.setPageRect(_7,_9,_25,_26,_47);if(_27&&_34.getDragAppearance(isc.EH.DRAG_RESIZE)!=isc.EH.OUTLINE) {var _48=(this.$l0!=null&&!this.$l0.destroyed);if(_48){this.$l0.fitToMaster()} var _49=this.getPageLeft(),_50=this.getPageTop(),_51=this.getVisibleWidth(),_52=this.getVisibleHeight();if(_7!=_49||_9!=_50||_25!=_51||_26!=_52) {var _41=Math.max(this.minWidth,_51),_42=Math.max(this.minHeight,_52);_7=_30;_9=_31;_11=_32;_13=_33;_25=_32-_30;_26=_33-_31;if(_25<_41||_26<_42){this.setPageRect(_6,_8,_14,_15,_47);if(_48){this.$l0.fitToMaster()} return} var _43=(_25/_28),_44=(_26/_29);if(_43<_44){var _45=Math.round(_26-_43*_29);if(_26-_45<_42){if(_45>0&&_25==Math.round(_42*_28/_29)){_45=_26-_42}else{this.setPageRect(_6,_8,_10-_6,_12-_8,_47);if(_48){this.$l0.fitToMaster()} return}} if(_20){_13-=_45}else{_9+=_45} _26=_13-_9}else if(_44<_43){var _46=Math.round(_25-_44*_28);if(_25-_46<_41){if(_46>0&&_26==Math.round(_41*_29/_28)){_46=_25-_41}else{this.setPageRect(_6,_8,_14,_15,_47);if(_48){this.$l0.fitToMaster()} return}} if(_23){_11-=_46}else{_7+=_46} _25=_11-_7} this.setPageRect(_7,_9,_25,_26,_47)}} _2.dragResizeWidth=_25;_2.dragResizeHeight=_26;if(this==this.ns.EH.dragTracker)this.redrawIfDirty()},isc.A.$151k=function isc_Canvas__checkProportionalResizing(){var _1=this.$151u,_2=this.$151j();if(_1==_2){return} if(_1=="none"){if(_2=="always"){this.$151p(this)}else{var _3=(_2=="modifierOff"),_4=this.$151p,_5=this.$151q;if(_3){_4=this.$151q;_5=this.$151p} var _6=isc.Page.$151i(this.proportionalResizeModifiers);if(_6!=_3){this.$151p(this)} isc.Page.$151f(this.proportionalResizeModifiers,isc.Page.$1511,_4,_5,this)}}else{this.$151q(this);if(_1!="always"){isc.Page.$151h(this.proportionalResizeModifiers,isc.Page.$1511,this)}} this.$151u=_2},isc.A.$151p=function isc_Canvas__enableProportionalResizing(_1){if(!_1.$151o){_1.$151o=true;if(_1.dragResizing()){isc.EH.dragMoveTarget.resizeToEvent(isc.EH.resizeEdge)}}},isc.A.$151q=function isc_Canvas__disableProportionalResizing(_1){if(_1.$151o){_1.$151o=false;if(_1.dragResizing()){isc.EH.dragMoveTarget.resizeToEvent(isc.EH.resizeEdge)}}},isc.A.resizeTarget=function isc_Canvas_resizeTarget(_1,_2,_3,_4,_5,_6,_7){_5=_5||0;_4=_4||0;if(_6==null)_6=_2?isc.EH.getY():isc.EH.getX();_6+=_4;if(this.parentElement){var _8=this.getParentPageRect(),_9=_2?(_8[1]+_8[3]):(_8[0]+_8[2]);_9-=_2?this.getVisibleHeight():this.getVisibleWidth();if(_6>_9)_6=_9} _7=_7!=null?_7:!_2&&this.isRTL();var _10=_2?_1.getMinHeight():_1.getMinWidth(),_11=_2?_1.getMaxHeight():_1.getMaxWidth();var _12;if(_7){_12=(_2?_1.getPageBottom():_1.getPageRight()) -(_2?this.getVisibleHeight():this.getVisibleWidth())}else{_12=_2?_1.getPageTop():_1.getPageLeft()} var _13=!_7?_6-_12-_5:_12-_6-_5;if(_13<_10){_13=_10}else if(_13>_11){_13=_11} this.$ug=_13;_6=_12+_5+(_7?-_13:_13);if(_3){_2?_1.setHeight(this.$ug):_1.setWidth(this.$ug)}else{_2?this.setPageTop(_6):this.setPageLeft(_6)}},isc.A.finishTargetResize=function isc_Canvas_finishTargetResize(_1,_2,_3){if(_3)return;_2?_1.setHeight(this.$ug):_1.setWidth(this.$ug)},isc.A.parentResized=function isc_Canvas_parentResized(){if(isc.$cv)arguments.$cw=this;this.$qw()},isc.A.$qw=function isc_Canvas__resolvePercentageSize(_1){if(this.snapTo!=null&&this.percentBox!="custom"){if((this._percent_width||this._percent_height)&&!_1){this.resizeTo(this._percent_width,this._percent_height)} var _2,_3,_4;_2=(this.masterElement?this.masterElement:this.parentElement);if(!_2)return;isc.Canvas.snapToEdge(_2,this.snapTo,this,this.snapEdge)} if(this.snapTo==null&&!_1){if(this._percent_left||this._percent_top||this._percent_width||this._percent_height) {this.setRect(this._percent_left,this._percent_top,this._percent_width,this._percent_height)}}},isc.A.prepareForDragging=function isc_Canvas_prepareForDragging(){var _1=this.ns.EH;if(_1.dragTarget)return;var _2=false,_3=this.dragOperation;if(isc.Browser.isTouch&&this.touchDragOperation!=null&&_1.$94y===_1.$94w.TOUCH_STARTED) {_3=this.touchDragOperation} if(_3){_2=true;_1.dragOperation=_3}else if(this.canDragResize){_1.resizeEdge=this.getEventEdge();if(_1.resizeEdge){_2=true;_1.dragOperation=_1.DRAG_RESIZE;var _4=this.getDragAppearance(_1.DRAG_RESIZE);_1.dragMoveAction=(_4=="tracker")?_1.$ll:_1.$mq}} if(!_2){if(this.canDragReposition){_2=true;_1.dragOperation=_1.DRAG_REPOSITION;_1.dragMoveAction=_1.$ll}else if(_1.$94y===_1.$94w.TOUCH_STARTED&&(this.hscrollOn||this.vscrollOn)&&!this.dragOperation&&this.useTouchScrolling!=false&&!this.$145k()) {_2=true;_1.dragOperation=_1.DRAG_SCROLL}else if(this.canDrag){_2=true;_1.dragOperation=_1.DRAG}else if(_1.$94y!==_1.$94w.TOUCH_STARTED&&this.canSelectText){_2=true;_1.dragOperation=_1.DRAG_SELECT;this.dragAppearance="none"}} if(_2){var _5=this;if(_1.dragOperation!=_1.DRAG_SELECT&&this.dragTarget!=null){if(isc.isA.Canvas(this.dragTarget)){_5=this.dragTarget}else if(this.dragTarget=="top"&&this.topElement){_5=this.topElement}else if(this.dragTarget=="parent"&&this.parentElement){_5=this.parentElement}else if(this.dragTarget=="creator"&&this.creator){_5=this.creator}else if(isc.isA.String(this.dragTarget)&&isc.isA.Canvas(window[this.dragTarget])) {_5=window[this.dragTarget]}else{this.logWarn('prepareForDragging(): target.dragTarget not understood : '+this.dragTarget)}} _1.dragTarget=_5}},isc.A.dragScrollStart=function isc_Canvas_dragScrollStart(){var _1=this.dragScrollTarget||this;this.$77s=isc.EH.getX();this.$77t=isc.EH.getY();this.$77u=_1.scrollLeft||0;this.$77v=_1.scrollTop||0;this.$77w=this.$77x=isc.EH.getX();this.$77y=this.$77z=isc.EH.getY();this.$770=this.$771=isc.timestamp()},isc.A.dragScrollMove=function isc_Canvas_dragScrollMove(){var _1=this.dragScrollTarget||this;var _2=this.$77s-isc.EH.getX(),_3=this.$77t-isc.EH.getY();_1.scrollTo(this.$77u+_2,this.$77v+_3,"dragScrollMove");if(window.event)window.event.preventDefault();this.$77w=this.$77x;this.$77y=this.$77z;this.$770=this.$771;this.$77x=isc.EH.getX();this.$77z=isc.EH.getY();this.$771=isc.timestamp();return false});isc.evalBoundary;isc.B.push(isc.A.dragScrollStop=function isc_Canvas_dragScrollStop(){if(!this.momentumScrolling)return;var _1=(this.$771-this.$770);if(_1==0)return;if(isc.timestamp()-this.$771>100)return;var _2=(this.$77x-this.$77w)/_1,_3=(this.$77z-this.$77y)/_1,_4=this,_5=this.dragScrollTarget||this;if(!(isc.isA.DrawPane&&isc.isA.DrawPane(_5))){if(!_5.hscrollOn)_2=0;if(!_5.vscrollOn)_3=0} if(this.logIsDebugEnabled("dragScroll")){this.logDebug("dragScroll: x/y: "+[this.$77x,this.$77z]+", last: "+[this.$77w,this.$77y]+", elapsed: "+_1+", speed: "+[_2,_3],"dragScroll")} var _6=this.momentumScrollMinSpeed/1000;if(Math.abs(_2)<_6&&Math.abs(_3)<_6) {return} var _7=this.$772=this.registerAnimation(function(_15){var _8=isc.timestamp(),_1=_8-_4.$771;_4.$771=_8;var _9=_2*(1-_15),_10=_3*(1-_15);var _11=Math.round(_9*_1),_12=Math.round(_10*_1);if(this.logIsDebugEnabled("dragScroll")){this.logDebug("animating: elapsed: "+_1+", frame speed: "+[_9,_10]+", distance: "+[_11,_12],"dragScroll")} if(_11==0&&_12==0)_4.cancelAnimation(_7);var _13=_5.getScrollLeft(),_14=_5.getScrollTop();_5.scrollTo(_5.getScrollLeft()-_11,_5.getScrollTop()-_12,"dragScrollStop");if(_13==_5.getScrollLeft()&&_14==_5.getScrollTop()) {_4.cancelAnimation(_7);_4.$772=null}},this.momentumScrollTime,this.momentumScrollAcceleration)},isc.A.setNoDropIndicator=function isc_Canvas_setNoDropIndicator(){this.$uh=true;this.$k2();if(this.shouldSetNoDropTracker&&isc.EH.dragTracker&&isc.EH.dragTracker.isVisible()){if(!this.$ui)this.$ui=isc.EH.dragTracker.getContents();isc.EH.setDragTracker(this.imgHTML(this.noDropTracker))}},isc.A.clearNoDropIndicator=function isc_Canvas_clearNoDropIndicator(){if(!this.$uh)return;delete this.$uh;this.$k2();if(this.shouldSetNoDropTracker&&isc.EH.dragTracker){isc.EH.setDragTracker(this.$ui);delete this.$ui}},isc.A.shouldDragScroll=function isc_Canvas_shouldDragScroll(){return this.canDragScroll&&(this.hscrollOn||this.vscrollOn)},isc.A.$uj=function isc_Canvas__getVDragScrollDirection(_1){var _2=this.getVDragScrollThreshold();if(_1<_2)return-1;if(_1>(this.getViewportHeight()-_2))return 1;return 0},isc.A.$uk=function isc_Canvas__getHDragScrollDirection(_1){var _2=this.getHDragScrollThreshold();if(_1<_2)return-1;if(_1>(this.getViewportWidth()-_2))return 1;return 0},isc.A.$l4=function isc_Canvas__overDragThreshold(_1){var _2=(this.getOffsetY()-this.getScrollTop()),_3=(this.getOffsetX()-this.getScrollLeft());if(_1!=null){if(_1==isc.Canvas.VERTICAL) return this.$uj(_2)!=0;else return this.$uk(_3)!=0} return(this.$uj(_2)!=0||this.$uk(_3)!=0)},isc.A.getDragScrollThreshold=function isc_Canvas_getDragScrollThreshold(){if(this.dragScrollThreshold!=null){return this.dragScrollThreshold}else{return(isc.Browser.isTouch?"30%":"10%")}},isc.A.getHDragScrollThreshold=function isc_Canvas_getHDragScrollThreshold(){if(this.$ud!=null)return this.$ud;var _1=this.getDragScrollThreshold();if(isc.isA.Number(_1))this.$ud=_1;else{_1=parseInt(_1);if(!isNaN(_1)){this.$ud=parseInt(_1*this.getViewportWidth()/100);return this.$ud}else{isc.Log.logWarn("Unable to resolve specified drag scroll threshold '"+this.getDragScrollThreshold()+"' to a valid size. Should be specified as an absolute pixel value, or a percentage of widget viewport.");return 0}}},isc.A.getVDragScrollThreshold=function isc_Canvas_getVDragScrollThreshold(){if(this.$ue!=null)return this.$ue;var _1=this.getDragScrollThreshold();if(isc.isA.Number(_1))this.$ue=_1;else{_1=parseInt(_1);if(!isNaN(_1)){this.$ue=parseInt(_1*this.getViewportHeight()/100);return this.$ue}else{isc.Log.logWarn("Unable to resolve specified drag scroll threshold '"+this.getDragScrollThreshold()+"' to a valid size. Should be specified as an absolute pixel value, or a percentage of widget viewport.");return 0}}},isc.A.$l5=function isc_Canvas__setupDragScroll(_1,_2){if(this.$ul!=null)return;var _3=(this.getOffsetY()-this.getScrollTop()),_4=(this.getOffsetX()-this.getScrollLeft()),_5=this.$uk(_4),_6=this.$uj(_3);this.$ul=isc.Timer.setTimeout({target:this,methodName:"$um",args:[_5,_6,true,_1,_2]},this.dragScrollDelay)},isc.A.$um=function isc_Canvas__performDragScroll(_1,_2,_3,_4,_5){this.$ul=null;var _6=0,_7=0;var _8=this.containsEvent();if(this.ns.EH.dragging&&(_5||_8)){var _9=this.getOffsetX()-this.getScrollLeft(),_10=this.getOffsetY()-this.getScrollTop(),_11=this.getViewportWidth(),_12=this.getViewportHeight();if(!isc.isA.Number(this.maxDragScrollIncrement)){var _13=parseInt(this.maxDragScrollIncrement);if(!isc.isA.Number(_13)) this.logWarn("Unable to resolve this.maxDragScrollIncrement '"+this.maxDragScrollIncrement+"' to a valid value. This should be an absolute pixel value or a percentage to scroll by.");this.$un=parseInt(_13/100*this.getScrollWidth());this.$uo=parseInt(_13/100*this.getScrollHeight())}else{this.$un=this.$uo=this.maxDragScrollIncrement} if(!isc.isA.Number(this.minDragScrollIncrement)){var _14=parseInt(this.minDragScrollIncrement);if(!isc.isA.Number(_14)) this.logWarn("Unable to resolve this.minDragScrollIncrement '"+this.minDragScrollIncrement+"' to a valid value. This should be an absolute pixel value or a percentage to scroll by.");this.$up=parseInt(_14/100*(this.getScrollWidth()-_11));this.$uq=parseInt(_14/100*(this.getScrollHeight()-_12))}else{this.$up=this.$uq=this.minDragScrollIncrement} var _15=(_4==isc.Canvas.VERTICAL?0:this.$uk(_9)),_16=(_4==isc.Canvas.HORIZONTAL?0:this.$uj(_10));if(_3){if(_1!=0&&_1!=_15) _1=0;if(_2!=0&&_2!=_16) _2=0}else{_1=_15;_2=_16} if(_5){var _17=isc.EH.dragTarget;if(this!=_17){if(_1!=0){var _18=_17.getCanvasLeft(this);if(_1<0){if(_18>=0){_1=0}}else{if(_18+_17.getVisibleWidth() <=this.getViewportWidth()) {_1=0}}} if(_2!=0){var _19=_17.getCanvasTop(this);if(_2<0){if(_19>=0){_2=0}}else{if(_19+_17.getVisibleHeight() <=this.getViewportHeight()) {_2=0}}}}} if(_8){_6=this.getScrollIncrement(_1,_9,_11,this.getHDragScrollThreshold(),this.$un,this.$up);_7=this.getScrollIncrement(_2,_10,_12,this.getVDragScrollThreshold(),this.$uo,this.$uq)}else{_6=_1*this.$un;_7=_2*this.$uo} if((_6>0&&(this.getScrollLeft()>=this.getScrollRight()))||(_6<0&&(this.getScrollLeft()<=0)))_6=0;if((_7>0&&(this.getScrollTop()>=this.getScrollBottom()))||(_7<0&&(this.getScrollTop()<=0)))_7=0} if(_6!=0||_7!=0){this.scrollBy(_6,_7);this.$ul=isc.Timer.setTimeout({target:this,methodName:"$um",args:[null,null,null,_4,_5]},50)}else{delete this.$un;delete this.$up;delete this.$uo;delete this.$uq}},isc.A.getScrollIncrement=function isc_Canvas_getScrollIncrement(_1,_2,_3,_4,_5,_6){if(_1==null||_1==0)return 0;if(_1>0){_2=_2-(_3-_4)}else if(_1<0){_2=_4-_2} if(_2<0||_2>_4)return 0;var _7=_1* ((_2/_4)*(_5-_6)+_6);return parseInt(_7)},isc.A.hasInherentHeight=function isc_Canvas_hasInherentHeight(){if(this.inherentHeight!=null)return this.inherentHeight;return(this.children==null&&(this.overflow==isc.Canvas.VISIBLE||this.overflow==isc.Canvas.CLIP_H))},isc.A.hasInherentWidth=function isc_Canvas_hasInherentWidth(){if(this.inherentWidth!=null)return this.inherentWidth;return(this.children==null&&(this.overflow==isc.Canvas.VISIBLE||this.overflow==isc.Canvas.CLIP_V))},isc.A.canOverflowWidth=function isc_Canvas_canOverflowWidth(_1){if(_1==null)_1=this.overflow;return _1==isc.Canvas.VISIBLE||_1==isc.Canvas.CLIP_H},isc.A.canOverflowHeight=function isc_Canvas_canOverflowHeight(_1){if(_1==null)_1=this.overflow;return _1==isc.Canvas.VISIBLE||_1==isc.Canvas.CLIP_V},isc.A.$1316=function isc_Canvas__shouldWriteClipDiv(){return(this.useClipDiv&&(!isc.Browser.$113k||(this.overflow==isc.Canvas.VISIBLE&&(!isc.Browser.isOpera||isc.Browser.minorVersion>=11.1))))||this.getScrollingMechanism()==isc.Canvas.NESTED_DIV},isc.A.getOverflow=function isc_Canvas_getOverflow(){return this.overflow},isc.A.setOverflow=function isc_Canvas_setOverflow(_1){if(this.$va!=null&&!this.$vb) this.finishAnimation(this.$va);if(this.$vc!=null&&!this.$vd) this.finishAnimation(this.$vc);if(this.overflow==_1)return;var _2=this.overflow,_3=this.$145l();this.overflow=_1;var _4=this.$145l();if(!_3&&_4){this.$144z();var _5=this.parentElement;while(_5!=null){_5.$144z();_5=_5.parentElement}}else if(_3&&!_4){this.$1440();var _5=this.parentElement;while(_5!=null){_5.$1440();_5=_5.parentElement}} if(!this.isDrawn())return;var _6=false;if(_1!=isc.Canvas.SCROLL&&_1!=isc.Canvas.AUTO&&(this.hscrollOn||this.vscrollOn)) {if(this.hscrollOn||this.vscrollOn)_6=true;this.hscrollOn=this.vscrollOn=false;if(this.hscrollbar!=null)this.hscrollbar.hide();if(this.vscrollbar!=null)this.vscrollbar.hide()} if(isc.Browser.isIE&&(_1==isc.Canvas.CLIP_H||_1==isc.Canvas.CLIP_V)) {this.markForRedraw();return} var _7;var _8=this.$113l,_9=this.$1316();if(isc.Browser.$113k&&_8!=_9){_7=this.getHandle();var _10=this.getClipHandle(),_11=_10.parentNode,_12=_10.nextSibling,_13,_14;if(isc.Browser.useCreateContextualFragment){var _15=_7.ownerDocument.createRange();_15.selectNode(_7);_13=_15.createContextualFragment(this.getTagStart()+this.getTagEnd());this.$113l=_8;this.clearHandle(true);var _16=_13.firstChild;if(_9)_16=_16.firstChild;while((_14=_7.firstChild)!=null){_16.appendChild(_14)} _11.insertBefore(_13,_12);this.$q3=_16}else{this.$113l=_8;this.clearHandle(true);_13=_7.ownerDocument.createDocumentFragment();while((_14=_7.firstChild)!=null){_13.appendChild(_14)} var _17;if(_12==null){_17={element:_11,position:"beforeEnd"}}else{_17={element:_12}} this.$p8(false,_17);this.getHandle().appendChild(_13);this.$if=true} this.$113l=_9;this.$ve();this.$1728()} _7=this.getStyleHandle();var _18=this.$rw();_7.overflow=_18;if(isc.Browser.$1395){_7.WebkitOverflowScrolling=this.$145k()?"touch":"auto"} var _19=this.$rx();_7.width=_19[0]+this.$ph;_7.height=_19[1]+this.$ph;if(_7.clip!=null&&_7.clip!=""&&_7.clip!="rect(auto auto auto auto)") {_7.clip=(isc.Browser.isIE?"rect(auto)":"")} this.adjustOverflow("setOverflow");if(_2==isc.Canvas.VISIBLE&&_1!=isc.Canvas.VISIBLE){var _20=Math.max(this.getScrollWidth()-this.getInnerWidth(),0),_21=Math.max(this.getScrollHeight()-this.getInnerHeight(),0);if(_20>0||_21>0)this.$5y(-_20,-_21,"overflow changed")}else if(_2!=isc.Canvas.VISIBLE&&_1==isc.Canvas.VISIBLE){var _20=Math.max(this.getScrollWidth()-this.getInnerWidth(),0),_21=Math.max(this.getScrollHeight()-this.getInnerHeight(),0);if(_20>0||_21>0)this.$5y(_20,_21,"overflow changed")}else if(_6){this.innerSizeChanged("scrolling state changed")} if((_1==isc.Canvas.HIDDEN||_1==isc.Canvas.VISIBLE)&&(_2==isc.Canvas.HIDDEN||_2==isc.Canvas.VISIBLE)){}else{this.$ur()}},isc.A.$1728=function isc_Canvas__descendentHTMLRefreshed(){var _1=this.children;for(var i=0,_3=(_1==null?0:_1.length);i<_3;++i){_1[i].$1729()}},isc.A.$1729=function isc_Canvas__domRefreshedByParent(){this.$146z();var _1=this.children;for(var i=0,_3=(_1==null?0:_1.length);i<_3;++i){_1[i].$1729()}},isc.A.$t6=function isc_Canvas__markForAdjustOverflow(_1){if(!this.isDrawn()||this.isDirty()||this.destroying||this.$66p)return;if(!this.$rm){if(this.logIsDebugEnabled()) this.logDebug("delaying adjustOverflow: "+(_1?_1:this.getStackTrace()));var _2=this;this.$rn=isc.Timer.setTimeout(function(){if(!_2.destroyed)_2.adjustOverflow(_1,true)},0)} this.$rm=true},isc.A.adjustForContent=function isc_Canvas_adjustForContent(_1){var _2="adjustForContent() called";if(_1)this.adjustOverflow(_2);else this.$t6(_2)},isc.A.$qy=function isc_Canvas__browserDoneDrawing(){var _1=this.getHandle();if(isc.Browser.isOpera){var _1=this.getHandle();return!(_1.scrollHeight==0&&_1.scrollWidth==0)} if(!isc.Browser.isIE){var _2=this.getClipHandle();if(_2==null)return false;var _3=_2.scrollHeight;if(_3==null||_3==0)_3=this.getClipHandle().offsetHeight;return _3!=0} var _4;if(isc.Browser.isWin){return _1!=null&&_1.scrollHeight!=this.$n1&&_1.scrollHeight!=0}},isc.A.adjustOverflow=function isc_Canvas_adjustOverflow(_1,_2,_3){if(isc.$cv)arguments.$cw=this;if(_2&&!this.$rm){return} this.$rm=false;if(!this.isDrawn()||this.overflow==isc.Canvas.IGNORE)return true;if(!this.adjustOverflowWhileDirty&&!_3&&this.isDirty()&&(this.overflow!=isc.Canvas.VISIBLE)) {return} if(!isc.Page.isLoaded()&&(isc.Browser.isSafari||(isc.Browser.isMoz&&isc.Browser.geckoVersion<20040616))) {isc.Page.setEvent("load",this,isc.Page.FIRE_ONCE,"$us");if(isc.Browser.isMoz)return} if(this.$417)return;if(this.$qy())return this.$ut(_1);if(this.logIsDebugEnabled("overflow")){this.logDebug("browser not done drawing, deferring overflow.","overflow");if(this.$113l){this.logDebug("clipHandle sizes: "+this.echoElementSize(this.getClipHandle()),"overflow")} this.logDebug("handle sizes: "+this.echoElementSize(this.getHandle()),"overflow")} if(!this.$uu){this.$t6();this.$uu=true}else{this.logDebug("still waiting for size to become available","overflow");this.$uv()} return false},isc.A.$us=function isc_Canvas__adjustOverflowForPageLoad(){if(!this.destroyed&&this.isDrawn())this.adjustOverflow("pageLoad")},isc.A.$uv=function isc_Canvas__queueForDelayedAdjustOverflow(){isc.Canvas.$uv(this.getID())},isc.A.$ut=function isc_Canvas__adjustOverflow(_1){if(this.$uw){return} this.$uw=true;if(this.componentMask!=null&&this.componentMask.isDrawn()){this.componentMask.resizeTo(1,1)} this.$ux(_1);if(this.componentMask!=null&&this.componentMask.isDrawn()){this.$168s()} this.$uw=false},isc.A.$ux=function isc_Canvas___adjustOverflow(_1){if(!this.$pe[this.overflow]){this.logWarn("This widget has overflow specified as "+this.echo(this.overflow)+". This overflow setting is not supported - defaulting to overflow:\"visible\".");this.overflow=isc.Canvas.VISIBLE} if(this.$su!=null)delete this.$su;if(this.$sz!=null)delete this.$sz;var _2=this.$uy,_3=this.$uz;delete this.$uy;delete this.$uz;var _4=this.$u0;this.$u0=false;var _5=isc.Canvas;this.$uu=null;if(this.getHandle()==null)this.logWarn("adjustOverflow: handle null");if(this.getClipHandle()==null)this.logWarn("adjustOverflow: clipHandle null");if(this.alwaysShowVScrollbar){if(this.overflow!=isc.Canvas.AUTO||this.overflow!=isc.Canvas.SCROLL){this.logInfo("alwaysShowVScrollbar specified as true, but overflow set to \""+this.overflow+"\". Property will be ignored.")}else if(this.showCustomScrollbars==false){this.logWarn("alwaysShowVScrollbar property not supported when showing native scrollbars")}} if(this.logIsInfoEnabled(this.$pf)){this.logInfo("Specified size: "+this.getWidth()+"x"+this.getHeight()+", drawn scroll size: "+this.getScrollWidth(true)+"x"+this.getScrollHeight(true)+", border: "+this.getVBorderSize()+"x"+this.getHBorderSize()+", margin: "+this.getVMarginSize()+"x"+this.getHMarginSize()+(_2==null?"":", old size: "+_2+"x"+_3)+", reason: "+_1,"sizing")} if(this.logIsDebugEnabled(this.$pf)){if(this.$113l){this.logDebug("clipHandle sizes: "+this.echoElementSize(this.getClipHandle()),"sizing")} this.logDebug("handle sizes: "+this.echoElementSize(this.getHandle()),"sizing")} if(this.overflow==_5.IGNORE){}else if(this.overflow==_5.VISIBLE){var _6=false;if(this.$t5){if(this.getWidth()_10||_8>_11);if(!_4&&_2>this.getWidth()){_4=true} if(!_12&&!_4) {this.$uy=_7;this.$uz=_8;return} var _13=this.getHMarginBorder(),_14=this.getVMarginBorder();var _15=Math.max((_7+_13),this.getWidth()),_16=Math.max((_8+_14),this.getHeight());if(isc.Menu&&isc.isA.Menu(this.parentElement)&&isc.isA.GridBody(this)&&(_15>this.getWidth()||_16>this.getHeight())){this.$t5=true} this.$q5(this.left,this.top,_15,_16);if(this.isRTL())this.handleMoved();var _17=this.children&&this.children.length>0;if(!_17||this.allowContentAndChildren){var _18=this.getScrollHeight(true),_19=this.getScrollWidth(true);if(_18!=_8||_19!=_7){_7=_19;_8=_18;this.$q5(this.left,this.top,Math.max((_7+_13),this.getWidth()),Math.max((_8+_14),this.getHeight()));if(this.isRTL())this.handleMoved()}} if(_6&&this.parentElement!=null){this.parentElement.childResetHandleForAdjustOverflowComplete()} if(this.snapTo!=null&&_12&&(_1==this.$oe||_1==this.$ny)) {this.$qw(true)} this.$uy=_7;this.$uz=_8;if((_2!=null&&_2!=_7)||(_3!=null&&_3!=_8)) {if(!_12&&_1==this.$nx)return;this.$5y(_7-_2,_8-_3,this.$pg)}}else if(this.overflow==_5.HIDDEN){this.$q5(this.left,this.top,this.getWidth(),this.getHeight());if(this.isRTL()){var _20=this.getScrollingMechanism();if(_20==isc.Canvas.NATIVE){this.scrollLeft=this.getScrollLeft()}else if(_20==isc.Canvas.NESTED_DIV){this.scrollLeft=this.getScrollLeft()}} this.$51s()}else if(this.overflow==_5.CLIP_H){var _8=this.getScrollHeight(),_14=this.getVMarginBorder(),_21=Math.max(_8+_14,this.getHeight());this.$uz=_21;this.setClip(0,this.getWidth(),_21,0);this.$q5(this.left,this.top,this.getWidth(),_21)}else if(this.overflow==_5.CLIP_V){var _7=this.getScrollWidth(),_13=this.getHMarginBorder();if((isc.Browser.isIE||isc.Browser.isMoz||isc.Browser.isOpera)&&(_7>this.getInnerWidth())&&(this.$uy==_7)){this.$q5(this.left,this.top,this.getWidth(),this.getHeight());_7=this.getScrollWidth(true) if(_7>this.getInnerWidth()){this.$q5(this.left,this.top,_7+_13,this.getHeight())}}else{this.$q5(this.left,this.top,Math.max(_7+_13,this.getWidth()),this.getHeight())} var _22=Math.max(_7+_13,this.getWidth());this.setClip(0,_22,this.getHeight(),0);this.$uy=_22}else{var _20=this.getScrollingMechanism();if((isc.Browser.isIE&&this.showCustomScrollbars&&_20==isc.Canvas.NATIVE)||_20==isc.Canvas.NESTED_DIV) {var _23=this.scrollLeft,_24=this.scrollTop,_25=this.getScrollLeft(),_26=this.getScrollTop();if(_25!=_23||_26!=_24){this.scrollTo(_25,_26,this.$1315)}} var _27=this.vscrollOn,_28=this.hscrollOn,_29=this.$kk();var _30=(this.alwaysShowVScrollbar&&this.showCustomScrollbars);if(this.overflow==isc.Canvas.SCROLL){this.hscrollOn=this.vscrollOn=true}else{var _8=this.getScrollHeight(),_31=this.getHeight(),_7=this.getScrollWidth(),_32=this.getWidth(),_33=this.getScrollbarSize(),_34;var _14=this.getVMarginBorder(),_13=this.getHMarginBorder();var _35=this.getClipHandle();if(!this.showCustomScrollbars&&_35.clientHeight!=null){this.vscrollOn=(_8>_35.clientHeight);this.hscrollOn=(_7>_35.clientWidth)}else{this.vscrollOn=_30||(_8>_31-_14);this.hscrollOn=(_7>_32-_13)} if((this.vscrollOn&&!_27)||(this.hscrollOn&&!_28)) {if(isc.Browser.$1395&&this.$145k()&&_1==="resize") {this.getStyleHandle().WebkitOverflowScrolling="auto";if(this.$146n!=null){isc.Timer.clear(this.$146n)} this.$146n=this.delayCall("$146m")} if(!this.hscrollOn||!this.vscrollOn){if(this.showCustomScrollbars){this.$q5(this.left,this.top,this.getWidth(),this.getHeight())} _34=(this.vscrollOn?"V":"")+(this.hscrollOn?"H":"");this.innerSizeChanged("introducing scrolling: "+_34);var _19=this.getScrollWidth(true),_18=this.getScrollHeight(true);if(this.logIsDebugEnabled("scrolling")){this.logDebug("Rechecking scrollWidth/Height on introduction of scroll: old: "+[_7,_8]+", new: "+[_19,_18],"scrolling")} _7=_19;_8=_18}} if(this.showCustomScrollbars){if(this.vscrollOn&&!this.hscrollOn){this.hscrollOn=(_7>_32-_13-_33)}else if(this.hscrollOn){this.vscrollOn=_30||(_8>_31-_14-_33)}}} if(this.logIsInfoEnabled("scrolling")){this.logInfo("Drawn size: "+this.getScrollWidth(true)+" by "+this.getScrollHeight(true)+", specified: "+this.getWidth()+" by "+this.getHeight()+", scrollbar state: "+(this.hscrollOn?"h":"")+(this.vscrollOn?"v":""),"scrolling")} if(this.showCustomScrollbars&&(this.hscrollOn!=_28||this.vscrollOn!=_27)) {this.$q5(this.left,this.top,this.getWidth(),this.getHeight());if(this.$su!=null)delete this.$su;if(this.$sz!=null)delete this.$sz} var _36=((_27?"V":"")+(_28?"H":"")),_37=((this.vscrollOn?"V":"")+(this.hscrollOn?"H":""));if(_36!=_37){var _38=_36+" -> "+_37;this.logInfo("Scrollbar state: "+_38,"scrolling");if(_34==null||_37!=_34) {this.innerSizeChanged("scrolling state changed: "+_38)}} if(this.isRTL()){if(this.hscrollOn&&!_28){var _39=this.getScrollLeft();this.scrollLeft=_39} if(!!this.vscrollOn!=!!_27){this.$808=null}} if(this.showCustomScrollbars){if(!this.hscrollOn&&_28)this.hscrollbar.hide();if(!this.vscrollOn&&_27)this.vscrollbar.hide();if(this.hscrollOn){this.$u1()}else{if(_28)this.scrollTo(0,null,"ending hscroll")} if(this.vscrollOn){this.$u2()}else{if(_27)this.scrollTo(null,0,"ending vscroll")} this.$51s()} if((this._useNativeTabIndex||this._useFocusProxy)&&_29!=this.$kk()) {this.$ur()}} this.$1314=this.getScrollRight();return true},isc.A.$51s=function isc_Canvas__clampToContent(){if(this.scrollLeft==0&&this.scrollTop==0)return;var _1=Math.max(0,this.getScrollBottom()),_2=Math.max(0,this.getScrollRight()),_3=this.getScrollLeft(),_4=this.getScrollTop(),_5=false;if(_3>_2){_5=true;_3=_2} if(_4>_1){_5=true;_4=_1} if(_5){this.scrollTo(_3,_4,"clampToContent")}},isc.A.checkNativeScroll=function isc_Canvas_checkNativeScroll(){if(!this.isDrawn()||this.getScrollingMechanism()!=isc.Canvas.NATIVE)return;var _1=this.getScrollHandle(),_2=_1.scrollLeft,_3=_1.scrollTop;if(this.isRTL()){_2=this.$92y(_2)} if(_2!=this.scrollLeft||_3!=this.scrollTop){this.scrollTo(this.scrollLeft,this.scrollTop,"removing native scroll")}},isc.A.$u1=function isc_Canvas__setHorizontalScrollbar(){var _1=this.hscrollbar;if(!_1){_1=this.hscrollbar=isc.ClassFactory.newInstance(this.scrollbarConstructor,{ID:this.getID()+"_hscroll",autoDraw:false,_generated:true,zIndex:this.getZIndex()+1,showThumbTriggerArea:isc.Browser.isTouch,vertical:false,scrollTarget:this,visibility:this.visibility,$jp:false,$jo:false,_redrawWithParent:false,$u3:false})} if(!isc.Page.isLoaded()){var _2=this;isc.Page.setEvent("load",function(){if(!_2.destroyed)_2.$u1()});return} if(!this.hscrollOn)return;_1.setRect(this.getOffsetLeft()+this.getLeftMargin()+(this.vscrollOn&&this.isRTL()?this.getCustomScrollbarSize():0),this.getOffsetTop()+this.getHeight()- (this.getBottomMargin()+this.getCustomScrollbarSize()),this.getOuterViewportWidth(),this.getCustomScrollbarSize());if(!_1.masterElement){this.addPeer(_1)}else{if(this.visibility!=isc.Canvas.HIDDEN)_1.show()}},isc.A.getCustomScrollbarSize=function isc_Canvas_getCustomScrollbarSize(){var _1=this.scrollbarConstructor;if(isc.isA.String(_1))_1=isc[_1];if(isc.NativeScrollbar!=null&&_1==isc.NativeScrollbar)return isc.NativeScrollbar.getScrollbarSize();return this.scrollbarSize},isc.A.$u2=function isc_Canvas__setVerticalScrollbar(){var _1=this.vscrollbar if(!_1){_1=this.vscrollbar=isc.ClassFactory.newInstance(this.scrollbarConstructor,{ID:this.getID()+"_vscroll",autoDraw:false,_generated:true,zIndex:this.getZIndex()+1,showThumbTriggerArea:isc.Browser.isTouch,vertical:true,scrollTarget:this,visibility:this.visibility,$jp:false,$jo:false,_redrawWithParent:false,$u3:false})} if(!isc.Page.isLoaded()){var _2=this;isc.Page.setEvent("load",function(){if(!_2.destroyed)_2.$u2()});return} if(!this.vscrollOn)return;_1.setShowCorner(this.hscrollOn&&this.vscrollOn);_1.setRect(this.getOffsetLeft()+(this.isRTL()?this.getLeftMargin():this.getWidth()-(this.getRightMargin()+this.getScrollbarSize())),this.getOffsetTop()+this.getTopMargin(),this.getScrollbarSize(),this.getHeight()-this.getVMarginSize());if(!_1.masterElement){this.addPeer(_1)}else{if(this.visibility!=isc.Canvas.HIDDEN)_1.show()}},isc.A.scrollByPage=function isc_Canvas_scrollByPage(_1,_2,_3){var _4=(_1?this.getViewportHeight():this.getViewportWidth())- this.scrollDelta;this.$u4(_1,_2*_4,_3||"scrollByPage")},isc.A.scrollByDelta=function isc_Canvas_scrollByDelta(_1,_2,_3){this.$u4(_1,_2*this.scrollDelta,_3||"scrollByDelta")},isc.A.$u4=function isc_Canvas__scrollByAmount(_1,_2,_3){if(_1){this.scrollTo(null,this.getScrollTop()+_2,_3)}else{this.scrollTo(this.getScrollLeft()+_2,null,_3)}},isc.A.canScroll=function isc_Canvas_canScroll(_1){var _2=_1?this.getScrollHeight():this.getScrollWidth(),_3=_1?this.getViewportHeight():this.getViewportWidth();return(_2>_3)},isc.A.getScrollRatio=function isc_Canvas_getScrollRatio(_1){var _2=_1?this.getScrollHeight():this.getScrollWidth(),_3=_1?this.getViewportHeight():this.getViewportWidth(),_4=_1?this.getScrollTop():this.getScrollLeft(),_5=_2-_3;if(_5==0)return 0;return _4/_5},isc.A.scrollToRatio=function isc_Canvas_scrollToRatio(_1,_2,_3){var _4=Math.max(0,(_1?this.getScrollBottom():this.getScrollRight())),_5=Math.round(_4*_2),_3=_3||"scrollToRatio";if(_1){this.scrollTo(null,_5,_3)}else{this.scrollTo(_5,null,_3)}},isc.A.getViewportRatio=function isc_Canvas_getViewportRatio(_1){if(_1){return this.getViewportHeight()/this.getScrollHeight()}else{return this.getViewportWidth()/this.getScrollWidth()}},isc.A.getScrollBottom=function isc_Canvas_getScrollBottom(){if(this.overflow==isc.Canvas.VISIBLE)return 0;return this.getScrollHeight()-this.getViewportHeight()},isc.A.getScrollRight=function isc_Canvas_getScrollRight(){if(this.overflow==isc.Canvas.VISIBLE)return 0;return this.getScrollWidth()-this.getViewportWidth()},isc.A.scrollToTop=function isc_Canvas_scrollToTop(){this.scrollTo(null,0,"scrollToTop")});isc.evalBoundary;isc.B.push(isc.A.scrollToBottom=function isc_Canvas_scrollToBottom(){this.scrollTo(null,this.getScrollBottom(),"scrollToBottom")},isc.A.scrollToLeft=function isc_Canvas_scrollToLeft(){this.scrollTo(0,null,"scrollToLeft")},isc.A.scrollToRight=function isc_Canvas_scrollToRight(){this.scrollTo(this.getScrollRight(),null,"scrollToRight")},isc.A.scrollBy=function isc_Canvas_scrollBy(_1,_2,_3){var _4,_5;if(_1!=null)_4=this.getScrollLeft()+_1;if(_2!=null)_5=this.getScrollTop()+_2;return this.scrollTo(_4,_5,_3||"scrollBy")},isc.A.scrollByPercent=function isc_Canvas_scrollByPercent(_1,_2){if(isc.isA.String(_1))_1=parseInt(_1);if(isc.isA.String(_2))_2=parseInt(_2);if(!isc.isA.Number(_1))_1=0;else _1=parseInt(_1/100*Math.max(0,(this.getScrollWidth()-this.getViewportWidth())));if(!isc.isA.Number(_2))_2=0;else _2=parseInt(_2/100*Math.max(0,(this.getScrollHeight()-this.getViewportHeight())));this.scrollBy(_1,_2)},isc.A.scrollTo=function(left,top,reason,animating){if(isc.$cv)arguments.$cw=this;if(!animating){if(this.scrollAnimation)this.finishAnimation("scroll");if(this.hideAnimation&&this.$hideAnimationInfo.slideOut) this.$hideAnimationInfo.slideOut=false;if(this.showAnimation&&this.$showAnimationInfo.slideIn) this.$showAnimationInfo.slideIn=false} if(this.logIsDebugEnabled("scrolling")){this.logDebug("scrollTo("+left+", "+top+"), reason: "+reason,"scrolling")} if(left==null){left=this.getScrollLeft()} if(top==null){top=this.getScrollTop()} var actuallyMoved=false;if((left!=null&&left!=this.scrollLeft)||(top!=null&&top!=this.scrollTop)){actuallyMoved=true;this.lastScrollLeft=this.scrollLeft;this.lastScrollTop=this.scrollTop;this.lastScrollDirection=(left!=null&&left!=this.scrollLeft&&top!=null&&top!=this.scrollTop?"both":top!=null&&top!=this.scrollTop?"vertical":"horizontal")} if(reason=="nativeScroll"||!this.isDrawn()){this.scrollLeft=left;this.scrollTop=top}else{var maxScrollLeft=this.getScrollRight();this.scrollLeft=Math.max(0,Math.min(maxScrollLeft,left));var maxScrollTop=this.getScrollBottom();this.scrollTop=Math.max(0,Math.min(maxScrollTop,top));this.$u5(this.scrollLeft,this.scrollTop)} if(this.showCustomScrollbars){if(this.hscrollOn&&this.hscrollbar)this.hscrollbar.setThumb();if(this.vscrollOn&&this.vscrollbar)this.vscrollbar.setThumb()} if(actuallyMoved)this.$u6(this.lastScrollLeft-this.scrollLeft,this.lastScrollTop-this.scrollTop)},isc.A.scrolled=function isc_Canvas_scrolled(_1,_2){},isc.A.$u6=function isc_Canvas__scrolled(_1,_2){if(!isc.EH.$ky&&!isc.Browser.nativeMouseMoveOnCanvasScroll){this.$1336()} if(this.hasFocus&&isc.Browser.isIE9){this.$148o()} this.$95i(this,_1,_2);if(this.scrolled)this.scrolled(_1,_2);if(this.$171b){this.$171b=false}},isc.A.$148o=function isc_Canvas__fixIEFocusScrollArtifacts(){if(this.$148n){this.fireOnPause("redrawToFixIEFocusScrollArtifacts",{target:this,methodName:"markForRedraw",args:["fixIEScrollArtifacts"]},100)}else{var _1=this.getStyleHandle();if(_1)_1.backgroundColor=_1.backgroundColor}},isc.A.$1336=function isc_Canvas__fireSyntheticMouseMove(){var _1=isc.EH.lastEvent,_2=isc.EH.isMouseEvent(_1.eventType),_3=_2?_1.target:isc.EH.lastMoveTarget;if(_3!=null){if(!this.contains(_3,true))_3=null;else if(!_2&&_3!=this){var _4=this.getOffsetX(),_5=this.getOffsetY();if(!_3.visibleAtPoint(isc.EH.getX(),isc.EH.getY(),false,null,this)) {_3=null}} if(_3!=null){this.$1337=true;isc.EH.$kx(null,isc.EH.lastEvent);delete this.$1337}}},isc.A.parentScrolled=function isc_Canvas_parentScrolled(_1,_2,_3){},isc.A.handleParentScrolled=function isc_Canvas_handleParentScrolled(_1,_2,_3){if(isc.Element.cacheOffsetCoords)this.$808=this.$809=null;this.parentScrolled(_1,_2,_3);this.$95i(_1,_2,_3)},isc.A.$95i=function isc_Canvas__fireParentScrolled(_1,_2,_3){var _4=this.children;if(_4!=null){for(var i=0;i<_4.length;i++){if(isc.isA.Canvas(_4[i])){_4[i].handleParentScrolled(_1,_2,_3)}}}},isc.A.$81b=function isc_Canvas__childrenCoordsChanged(){if(!isc.Element.cacheOffsetCoords)return;var _1=this.children;if(_1!=null){for(var i=0,_3=_1.length;i<_3;++i){var _4=_1[i];_4.$808=_4.$809=null;_4.$81b()}}},isc.A.$146m=function isc_Canvas__reapplyWebkitOverflowScrollingTouch(){this.$146n=null;if(!this.isDrawn()||!this.$145k()||(!this.isVisible()&&(this.hideUsingDisplayNone||this.$144x>0))||(isc.Browser.iOSVersion>=7&&this.$1390)) {return} var _1=this.getStyleHandle();_1.WebkitOverflowScrolling="touch"},isc.A.$1392=function isc_Canvas__disableOffsetCoordsCaching(){if(!isc.Element.cacheOffsetCoords||!this.isDrawn()||this.$1390)return;if(isc.Browser.iOSVersion>=7&&isc.Browser.$1395&&this.$145k()) {if(this.$146n!=null){isc.Timer.clear(this.$146n);this.$146n=null} var _1=this.getStyleHandle();_1.WebkitOverflowScrolling="auto"} this.$808=this.$809=null;this.$1390=true;this.$1391=this.cacheOffsetCoords;this.cacheOffsetCoords=false;var _2=this.children;if(_2!=null){for(var i=0,_4=_2.length;i<_4;++i){_2[i].$1392()}}},isc.A.$1393=function isc_Canvas__enableOffsetCoordsCaching(){if(!isc.Element.cacheOffsetCoords||!this.isDrawn()||!this.$1390)return;if(isc.Browser.iOSVersion>=7&&isc.Browser.$1395&&this.$145k()) {if(this.$146n!=null){isc.Timer.clear(this.$146n)} this.$146n=this.delayCall("$146m")} this.$1390=false;this.cacheOffsetCoords=this.$1391;delete this.$1391;var _1=this.children;if(_1!=null){for(var i=0,_3=_1.length;i<_3;++i){_1[i].$1393()}}},isc.A.scrollToPercent=function isc_Canvas_scrollToPercent(_1,_2,_3){if(isc.isA.String(_1))_1=parseInt(_1);if(isc.isA.String(_2))_2=parseInt(_2);if(_1!=null){if(!isc.isA.Number(_1))_1=0;_1=parseInt(_1/100*Math.max(0,(this.getScrollWidth()- this.getViewportWidth())))} if(_2!=null){if(!isc.isA.Number(_2))_2=0;_2=parseInt(_2/100*Math.max(0,(this.getScrollHeight()- this.getViewportHeight())))} this.scrollTo(_1,_2,_3||"scrollToPercent")},isc.A.$92y=function isc_Canvas__adjustScrollLeftForRTL(_1,_2){var _3=isc.Browser.isMoz||(isc.Browser.isIE&&isc.Browser.minorVersion<5.5),_4=(isc.Browser.isIE8||isc.Browser.isIE9)&&isc.Browser.isStrict;if(!_3&&!_4)return _1;var _5=this.getScrollWidth(),_6=this.getViewportWidth();return isc.Canvas.$92y(_1,_5,_6,_2,_3,_4)},isc.A.$95h=function isc_Canvas__shiftScrollLeftOrigin(_1,_2){var _3=this.getScrollWidth(),_4=this.getViewportWidth();return isc.Canvas.$92y(_1,_3,_4,_2,true)},isc.A.$u5=function isc_Canvas__scrollHandle(_1,_2){var _3=this.getScrollingMechanism();if(_3==isc.Canvas.NATIVE){if(this.isRTL()){_1=this.$92y(_1,true)} var _4=this.getScrollHandle();if(_4){this.$u7=true;_4.scrollLeft=_1;_4.scrollTop=_2;var _5=_4.scrollLeft,_6=_4.scrollTop;if(this.isRTL()){_5=this.$92y(_5)} if(_5!=this.scrollLeft||_6!=this.scrollTop){this.scrollLeft=_5;this.scrollTop=_6} delete this.$u7}}else if(_3==isc.Canvas.NESTED_DIV){var _4=this.getHandle();if(_4==null){this.logWarn(this.getCallTrace(arguments)+" in NS6 with null handle");return} _4=_4.style;if(this.isRTL()){_1=this.$95h(-_1);_2=-_2}else{_1=-_1;_2=-_2} _4.left=_1+this.$ph;_4.top=_2+this.$ph}},isc.A.$lh=function isc_Canvas__handleCSSScroll(_1,_2){if(isc.$cv)arguments.$cw=this;if(this.$u7)return;if(!this.isDrawn())return;var _3=this.getScrollingMechanism();if(_3!=isc.Canvas.NATIVE){this.logWarn("unsupported native scroll occurred on this widget - resetting");var _4=this.getScrollHandle();if(_3==isc.Canvas.NESTED_DIV){this.$u5(this.isRTL()?this.getScrollRight():0,0)}else{this.$u5(this.scrollLeft,this.scrollTop)} return} if(isc.Browser.isMoz&&!_1&&(_2||isc.Browser.geckoVersion<20030312)){if(!this.$u8) this.$u8=this.delayCall("$lh",[true],10);return} this.$u8=null;var _5=this.getScrollLeft(),_6=this.getScrollTop();if(_5==this.scrollLeft&&_6==this.scrollTop)return;isc.EH.$h1("SCR");this.scrollTo(_5,_6,this.$1315);isc.EH.$h2()},isc.A.mouseWheel=function isc_Canvas_mouseWheel(){if((this.overflow==isc.Canvas.AUTO||this.overflow==isc.Canvas.SCROLL)&&this.showCustomScrollbars&&(this.vscrollOn||this.hscrollOn)) {var _1=this.ns.EH.lastEvent.wheelDeltaY,_2=this.ns.EH.lastEvent.wheelDeltaX;var _3=this.scrollTop+Math.round(_1*isc.Canvas.scrollWheelDelta);var _4=this.scrollLeft+Math.round(_2*isc.Canvas.scrollWheelDelta);this.scrollTo(_4,_3,"mouseWheel");return false} return true},isc.A.isDragScrolling=function isc_Canvas_isDragScrolling(){if(this.vscrollOn&&this.vscrollbar&&this.vscrollbar.isDragScrolling())return true;if(this.hscrollOn&&this.hscrollbar&&this.hscrollbar.isDragScrolling())return true;return false},isc.A.isRepeatTrackScrolling=function isc_Canvas_isRepeatTrackScrolling(){if(this.vscrollOn&&this.vscrollbar&&this.vscrollbar.isRepeatTrackScrolling())return true;if(this.hscrollOn&&this.hscrollbar&&this.hscrollbar.isRepeatTrackScrolling())return true;return false},isc.A.isMouseWheelScrolling=function isc_Canvas_isMouseWheelScrolling(){return isc.EH.lastEvent.eventType==isc.EH.MOUSE_WHEEL},isc.A.handleKeyPress=function isc_Canvas_handleKeyPress(_1,_2){var _3;if(this.convertToMethod("keyPress")){_3=this.keyPress(_1,_2)} if(_3!=false&&this.shouldCancelKey!=null&&this.shouldCancelKey(_1,_2)) {_3=false} if(_3==false)return false;if(this.widgetHandleKeyPress){_3=this.widgetHandleKeyPress(_1,_2);if(_3==false)return false} var _4=_1.keyName;if(this._useFocusProxy&&((isc.Browser.isMoz&&this.canSelectText)||isc.Browser.isSafari)&&_4=="Tab") {this.setFocus(true)} if((this.overflow==isc.Canvas.AUTO||this.overflow==isc.Canvas.SCROLL)&&this.showCustomScrollbars) {_3=this.handleKeyboardScroll(_4)} return _3},isc.A.handleKeyboardScroll=function isc_Canvas_handleKeyboardScroll(_1){if(isc.EH.ctrlKeyDown()||isc.EH.altKeyDown())return;var _2=0,_3=0;if(_1=="Page_Up")_3-=this.getViewportHeight();else if(_1=="Page_Down")_3+=this.getViewportHeight();else if(_1=="Arrow_Up")_3-=10;else if(_1=="Arrow_Down")_3+=10;else if(_1=="Arrow_Left")_2-=10;else if(_1=="Arrow_Right")_2+=10;var _4="cancel native keyPress scrolling";if(_2!=0||_3!=0){this.scrollTo(this.scrollLeft+_2,this.scrollTop+_3,_4);return false} if(_1=="Home"){this.scrollTo(null,0,_4);return false}else if(_1=="End"){this.scrollTo(null,(this.getScrollHeight()-this.getViewportHeight()),_4);return false}},isc.A.handleKeyDown=function isc_Canvas_handleKeyDown(_1,_2){var _3 if(this.convertToMethod("keyDown")){_3=this.keyDown(_1,_2)} return _3},isc.A.$q5=function isc_Canvas__setHandleRect(_1,_2,_3,_4){var _5=this.getStyleHandle();if(_5==null)return;if(this.shrinkElementOnHide&&!this.isVisible()){return} if(this.showCustomScrollbars&&this.vscrollOn&&_1!=null&&this.isRTL()){_1+=this.getScrollbarSize()} if(_3!=null||_4!=null){var _6=this.$sf(_3,_4);_3=_6[0];_4=_6[1]} this.$118i(_1,_2,_3,_4,_5)},isc.A.$118i=function isc_Canvas__assignRectToHandle(_1,_2,_3,_4,_5){if(_1!=null&&isc.isA.Number(_1))this.$u9(_5,isc.Canvas.LEFT,_1);if(_2!=null&&isc.isA.Number(_2)){var _6=this.getClipHandle(),_7=_6.getAttribute(this.$143e);if(_7){_7=parseInt(_7,10);_2+=_7} this.$u9(_5,isc.Canvas.TOP,_2)} if(_3!=null&&isc.isA.Number(_3))this.$u9(_5,this.$o6,Math.max(_3,1));if(_4!=null&&isc.isA.Number(_4))this.$u9(_5,this.$o5,Math.max(_4,1))},isc.A.$u9=function isc_Canvas__assignSize(_1,_2,_3){if(isc.Browser.isIE||isc.Browser.isOpera){if((_2==this.$o6||_2==this.$o5))_3=Math.max(1,_3);if(!isc.Browser.isStrict){_1[_2]=_3}else{_1[_2]=_3+this.$ph}}else{if(_1==null){return} var _4=_3+this.$ph;_1[_2]=_4;if(_1.setAttribute!=null){_1.setAttribute(_2,_4)}}},isc.A.$qi=function isc_Canvas__sizeBackMask(){var _1=this._backMask;if(!_1)return;if(this.showEdges){var _2=this.$l0,_3=this.maskEdgeCenterOnly,_4=_3?_2.$y4:_2.$tb,_5=_3?_2.$y5:_2.$tc,_6=_3?_2.$y6:_2.$td,_7=_3?_2.$y7:_2.$te,_8=this.getVisibleWidth()-(_4+_5),_9=this.getVisibleHeight()-(_6+_7);if(_8<=0||_9<=0)_1.hide();else{if(this.isVisible())_1.show();_1.setRect(this.getLeft()+_4,this.getTop()+_6,_8,_9)}}else{_1.setRect(this.getRect())}},isc.A.getTextDirection=function isc_Canvas_getTextDirection(){if(this.$81a)return this.$81a;var _1=this;while(_1){if(_1.textDirection!=null){return(this.$81a=_1.textDirection)} _1=_1.parentElement;if(_1&&_1.eventProxy)_1=_1.eventProxy} return(this.$81a=isc.Page.getTextDirection())},isc.A.isRTL=function isc_Canvas_isRTL(){return(this.getTextDirection()==isc.Canvas.RTL)},isc.A.getRTLSign=function isc_Canvas_getRTLSign(){return this.isRTL()?-1:1},isc.A.setVisibility=function isc_Canvas_setVisibility(_1){if(this.$va!=null&&!this.$vb) this.finishAnimation(this.$va);if(this.$vc!=null&&!this.$vd) this.finishAnimation(this.$vc);if(this.fadeAnimation)this.finishAnimation("fade");if(!isc.isA.String(_1)){_1=(_1!=false?isc.Canvas.INHERIT:isc.Canvas.HIDDEN)} if(this.visibility==_1)return;var _2=this.isVisible();this.visibility=_1;var _3=this.isVisible();if(this.isDrawn()){if(!_2&&_3){if(this.isDirty()){this.redraw("show() while dirty")}else if(this.children&&this.children.length>0){var _4=isc.Canvas.$nm.duplicate();for(var i=0;i<_4.length;i++){var _6=_4[i];if(_6&&_6.isDirty()&&this.$sr(_6)){_6.redraw("show() on parent while dirty")}}}} this.$vf(_1);if(isc.Canvas.ariaEnabled()&&(this.ariaState==null||this.ariaState.hidden!=true)){this.setAriaState("hidden",!_3)} this.$ve()} if(this.peers){for(var i=0;i0;if(!_1||!this.isDrawn())return;var _2=this.getStyleHandle(),_3=this.isVisible();if(!_3&&!this.$62u){if(isc.Browser.iOSVersion>=7&&isc.Browser.$1395&&this.$145k()) {if(this.$146n!=null){isc.Timer.clear(this.$146n);this.$146n=null} _2.WebkitOverflowScrolling="auto"} this.$vh=_2.display;this.$62u=true;_2.display=this.$27r;this.$808=this.$809=null}else if(_3&&this.$62u){if(isc.Browser.iOSVersion>=7&&isc.Browser.$1395&&this.$145k()) {if(this.$146n!=null){isc.Timer.clear(this.$146n)} this.$146n=this.delayCall("$146m")} _2.display=(this.$vh!=null?this.$vh:isc.emptyString);delete this.$62u;delete this.$vh}},isc.A.$418=function isc_Canvas__drawOnShow(){return(this.getDrawnState()==isc.Canvas.UNDRAWN)&&!this.parentElement&&!this.masterElement},isc.A.show=function isc_Canvas_show(){if(isc.$cv)arguments.$cw=this;var _1=this.hasFocus;if(this.$418()){this.draw(true)} this.setVisibility(isc.Canvas.INHERIT);if(this.shrinkElementOnHide){this.$q5(this.getLeft(),this.getTop(),this.getWidth(),this.getHeight());this.getStyleHandle().overflow=this.overflow} if(_1&&this.hasFocus){this.logInfo("Show: Hidden / Undrawn widget marked as having focus - calling focus()","events");this.hasFocus=false;this.focus()} if(this.parentElement!=null&&this.autoShowParent){this.parentElement.show()}},isc.A.showRecursively=function isc_Canvas_showRecursively(){var _1=this.parentElement;if(this.$86x==null&&_1==null){this.show()}else{this.setVisibility(isc.Canvas.INHERIT);if(this.$86x!=null){_1=window[this.$86x]} _1.showRecursively();if(isc.TabSet!=null&&isc.isA.TabSet(_1)){_1.selectTab(_1.tabForPane(this))}else if(isc.SectionStack!=null&&isc.isA.SectionStack(_1)){_1.expandSection(_1.sectionForItem(this))}}},isc.A.$414=function isc_Canvas__relativePageResized(){if(!this.isDrawn()||this.parentElement||this.position!=this.$411)return;var _1=this.$412,_2=this.$413,_3=this.getPageLeft(),_4=this.getPageTop();this.$tx=(_3-_1);this.$ty=(_4-_2);this.$t2();this.$412=_3;this.$413=_4;isc.Page.setEvent("resize",this,isc.Page.FIRE_ONCE,"$414")},isc.A.hide=function isc_Canvas_hide(){this.$rk();if(this.shrinkElementOnHide){this.getStyleHandle().overflow=isc.Canvas.HIDDEN;this.$q5(this.left,this.top,0,0)} this.setVisibility(isc.Canvas.HIDDEN)},isc.A.isVisible=function isc_Canvas_isVisible(){var _1=this;while(_1){if(_1.visibility==isc.Canvas.HIDDEN)return false;if(_1.visibility==isc.Canvas.VISIBLE)return true;_1=_1.parentElement} return true},isc.A.$st=function isc_Canvas__isDisplayNone(){var _1=this;do{if(_1.visibility==isc.Canvas.HIDDEN&&(_1.hideUsingDisplayNone||_1.$144x>0)) {return true} _1=_1.parentElement}while(_1!=null);return false},isc.A.setEnabled=function isc_Canvas_setEnabled(_1){this.logWarn("call to deprecated method 'setEnabled()' - use 'setDisabled()' instead.");var _2=((_1==null||isc.isA.Boolean(_1))?!_1:(_1==this.$pi));this.setDisabled(_2)},isc.A.setDisabled=function isc_Canvas_setDisabled(_1,_2){if(_1==null)_1=false;if(!isc.isA.Boolean(_1))_1=(_1==this.$pi);if(this.disabled==_1)return;if(this.peers)this.peers.map("masterDisabled",_1);var _3=this.isDisabled() this.disabled=_1;var _4=this.isDisabled();if(_3!=_4||_2){this.setHandleDisabled(_4);if(this.children)this.children.map("parentDisabled",_4)}},isc.A.masterDisabled=function isc_Canvas_masterDisabled(_1){this.setDisabled(_1)},isc.A.parentDisabled=function isc_Canvas_parentDisabled(_1){if(this.disabled)return;if(!this.parentElement.redrawOnDisable)this.setHandleDisabled(_1);if(this.children)this.children.map("parentDisabled",_1)},isc.A.setHandleDisabled=function isc_Canvas_setHandleDisabled(_1){if(!this.isDrawn())return;if(this.redrawOnDisable)this.markForRedraw("setDisabled");else this.$k2();if(this.$kk())this.disableKeyboardEvents(_1)},isc.A.disableKeyboardEvents=function isc_Canvas_disableKeyboardEvents(_1,_2,_3,_4){if(!_3||this.$kk()){if(_1){this.$vi(-1);if(this.accessKey!=null)this.$m9(null)}else{this.$vi(this.getTabIndex());if(this.accessKey!=null)this.$m9(this.accessKey)} if(_1&&this.hasFocus)this.blur()} this.$167w=_1;if(_2&&this.children){for(var i=0;i=_2){var _3=_2-1;this.logWarn("setTabIndex(): Passed index of "+_1+". This method does not support setting a tab index greater than "+_3+". Setting tab index for this widget to "+_3+this.getStackTrace());_1=_3} this.$rp();this.$vk(_1,false)},isc.A.$vk=function isc_Canvas__setTabIndex(_1,_2){this.$sp=_2;this.tabIndex=_1;if(this.$kk()&&!this.isDisabled()){this.$vi(_1)}},isc.A.$vi=function isc_Canvas__setHandleTabIndex(_1){if(this._useNativeTabIndex&&this.isDrawn()){var _2=this.getFocusHandle();_2.tabIndex=_1;if(isc.Browser.isIE)isc.Canvas.$vs()} if(this._useFocusProxy){if(!this.$qj)return this.makeFocusProxy();var _2=this.$sl();var _3=(this.hasFocus&&!this.$vq);if(_3&&_2){this.logDebug("$vi() about to call native blur() on the focus proxy handle","nativeFocus");_2.blur()} if(isc.Browser.isSafari&&_1<0)return this.$qp();if(_2!=null){_2.tabIndex=_1;if(isc.Browser.isMoz){_2.style.MozUserFocus=(_1<0?"ignore":"normal")} if(_3){this.logDebug("$vi() about to call native focus() on the focus proxy handle","nativeFocus");_2.focus()}}}});isc.evalBoundary;isc.B.push(isc.A.$vr=function isc_Canvas__autoAllocateTabIndex(){var _1=isc.Canvas;if(_1.$vt==null){_1.$vt=_1.TAB_INDEX_FLOOR} var _2=isc.EH.$kl;if(_2)_1.$vt+=_2.getTabIndexSpan();_1.$vt+=_1.TAB_INDEX_GAP if(_1.$vt>isc.Canvas.TAB_INDEX_CEILING&&!isc.Canvas.$vu) {isc.Canvas.logWarn("Auto allocation of tab-indices has reached native browser ceiling - tab-order cannot be guaranteed for widgets on this page.");isc.Canvas.$vu=true} this.$vk(_1.$vt,true);if(_2){_2.$vv(this);this.$vw=_2}else{isc.EH.$kj=this} isc.EH.$kl=this},isc.A.$vx=function isc_Canvas__setTabBefore(_1){if(this==_1||this.$vy()==_1)return;var _2=_1.getTabIndex();if(!_1.$sp){this.logWarn("$vx() attempting to set tab index adjacent to widget "+_1+" with explicitly specified tabIndex ["+_1.tabIndex+"]. This method can only manipulate widgets with auto-assigned tab indexes.");return} var _3=_1.$vw;var _4=this.$vz(),_5=this.$vy();if(isc.EH.$kl==this)isc.EH.$kl=_4;if(isc.EH.$kj==this)isc.EH.$kj=_5;if(_4!=null) _4.$vv(_5);if(_5!=null) _5.$v0(_4);this.$v0(null);this.$vv(null);this.$v1(_1.$vz(),_1);this.$v2()},isc.A.$sq=function isc_Canvas__setTabAfter(_1){if(this==_1||this.$vw==_1)return;_1.getTabIndex();if(!_1.$sp){this.$v2(_1);this.logWarn("$sq() attempting to set tab index adjacent to widget "+_1+" with explicitly specified tabIndex ["+_1.tabIndex+"]. This method can only manipulate widgets with auto-assigned tab indexes.");return} var _2=_1,_3=this.$vz(),_4=this.$vy();if(isc.EH.$kl==this)isc.EH.$kl=_3;if(isc.EH.$kj==this)isc.EH.$kj=_4;if(_3!=null) _3.$vv(_4);if(_4!=null) _4.$v0(_3);this.$v0(null);this.$vv(null);this.$v1(_1,_1.$vy());this.$v2()},isc.A.$v1=function isc_Canvas__slotTabBetween(_1,_2){if(_2==null)return this.$vr();if(_1==null){var _3=_2.$vy();_2.$rp();this.$vv(_3);this.$v0(null);this.$vk(_2.tabIndex,true);isc.EH.$kj=this;_2.$v1(this,_3);return} this.$vv(_2);_2.$v0(this);this.$v0(_1);_1.$vv(this);var _4=_1.tabIndex+_1.getTabIndexSpan(),_5=_2.tabIndex,_6=_4+Math.floor((_5-_4)/2),_7=this.getTabIndexSpan();if((_6+_7)>_5){_2.$v3((_6+_7)-_5)} if(this.logIsDebugEnabled("tabIndex")){this.logDebug("Putting "+this.getID()+" in tab order between: "+_1.getID()+":"+_1.tabIndex+", and :"+_2.getID()+":"+_2.tabIndex+". Resulting tabIndex:"+_6,"tabIndex")} this.$vk(_6,true)},isc.A.$v3=function isc_Canvas__shiftTabIndexForward(_1){var _2=this.$vy();if(_2==null){this.$vk(this.tabIndex+_1+isc.Canvas.TAB_INDEX_GAP,true);return} var _3=_2.getTabIndex(),_4=_3-this.getTabIndexSpan();if(this.tabIndex+_1<_4)this.$vk(_4,true);else{_2.$v3(_1-(_4-this.tabIndex));this.$vk(_2.tabIndex-this.getTabIndexSpan(),true)}},isc.A.$vy=function isc_Canvas__getNextTabWidget(_1){if(!_1)return this.$v4;else return this.$vw},isc.A.$vz=function isc_Canvas__getPreviousTabWidget(){return this.$vy(true)},isc.A.$vv=function isc_Canvas__setNextTabWidget(_1,_2){if(!_2)this.$v4=_1;else this.$vw=_1},isc.A.$v0=function isc_Canvas__setPreviousTabWidget(_1){return this.$vv(_1,true)},isc.A.focusInNextTabElement=function isc_Canvas_focusInNextTabElement(){if(this.$kf){this.$kf(true,this.$1096())}},isc.A.focusInPreviousTabElement=function isc_Canvas_focusInPreviousTabElement(){if(this.$kf){this.$kf(false,this.$1096())}},isc.A.$1096=function isc_Canvas__getTopHardMask(){return isc.EH.getTopHardMask()},isc.A.$kf=function isc_Canvas__focusInNextTabElement(_1,_2){if(isc.CanvasItem&&this.isDrawn()&&this.isVisible()){var _3=null,_4=this;do{if(_4.canvasItem!=null){_3=_4.canvasItem}else{_4=_4.getParentCanvas()}}while(_4&&(_3==null)) if(_3&&_3.form){this.logInfo("$kf() called on a descendent of a CanvasItem "+_3+". Delegating focus manipulation to parent form "+_3.form,"syntheticTabIndex");return _3.form.$kf(_1,_2)}} var _5=this;while(_5.tabIndex==-1&&_5.parentElement!=null){_5=_5.parentElement} if(_5!=this){if(_5.tabIndex!=-1){this.logDebug("$kf() was called for a Canvas with a tabIndex of -1 ("+this.ID+"). Delegating focus manipulation to the nearest ancestor with a tabIndex ("+_5.ID+")")}else{this.logDebug("$kf() was called for a Canvas with a tabIndex of -1 ("+this.ID+"), but we failed to find an ancestor with a real tabIndex, so we could not delegate. Proceeding with the original target, which is going to mean we cycle back to the start of the tab order");_5=this}} if(_5!=this){return _5.$kf(_1,_2)} if(isc.CanvasItem&&this.canvasItem!=null&&this.canvasItem.form!=null){this.canvasItem.form.$kf(_1,_2);return} var _6=this;do{_6=(_1?_6.$vy():_6.$vz())}while(_6&&(isc.EH.targetIsMasked(_6,_2)||_6.$167w||_6.isDisabled()||!_6.isDrawn()||!_6.isVisible()||!_6.$kk())&&(!isc.CanvasItem||_6.canvasItem==null||_6.canvasItem.form==null)) if(_6){this.logInfo("focusInNextTabElement() shifting focus to:"+_6,"syntheticTabIndex");_6.focusAtEnd(_1)}else if(_1){this.logInfo("focusInNextTabElement() shifting focus to first widget","syntheticTabIndex");if(isc.EH.$kj==null||(isc.EH.$kj==this&&(this.isDisabled()||!this.isDrawn()||!this.isVisible()||!this.$kk()||this.isMasked(_2)))) {return} isc.EH.$kh(_2)}else{this.logInfo("focusInNextTabElement() shifting focus to last widget","syntheticTabIndex");if(isc.EH.$kl==null||(isc.EH.$kl==this&&(this.isDisabled()||!this.isDrawn()||!this.isVisible()||!this.$kk()||this.isMasked(_2)))) {return} isc.EH.$kg(_2)}},isc.A.$v2=function isc_Canvas__slotChildrenIntoTabOrder(_1){_1=_1||this;var _2=isc.isA.Layout(this)?this.members:this.children;if(!_2||_2.length==0)return;var _3=_1.$vy();for(var i=_2.length-1;i>=0;i--){if(_2[i]==null)continue;if(_2[i].tabIndex==null||_2[i].$sp) {if(_3==null)_2[i].$sq(_1);else _2[i].$vx(_3);_3=_2[i]}else{_2[i].$v2(_1);_3=_1.$vy()}}},isc.A.$v5=function isc_Canvas__getLastAutoIndexDescendant(_1){var _2=this.children;if(isc.Layout&&isc.isA.Layout(this))_2=this.members;if(_2!=null){for(var i=_2.length-1;i>=0;i--){if(_2[i]==null||(_2[i].tabIndex!=null&&!_2[i].$sp)||(!_1&&!_2[i].$sp)) {continue} var _4=_2[i].$v5(_1);if(_4!=null)return _4}} if(!_1&&this.tabIndex==null||this.$sp) return this;return null},isc.A.$rp=function isc_Canvas__removeFromAutoTabOrder(){if(!this.$sp||!this.tabIndex)return;var _1=this.$vz(),_2=this.$vy();if(_1==null&&_2==null&&isc.EH.$kl!=this&&isc.EH.$kj!=this)return;if(_1){_1.$vv(_2)}else{isc.EH.$kj=_2} if(_2){_2.$v0(_1)}else{isc.EH.$kl=_1} this.$v0(null);this.$vv(null)},isc.A.getZIndex=function isc_Canvas_getZIndex(_1){if(!this.isDrawn()||isc.Browser.isSafari){if(_1&&this.zIndex==isc.Canvas.AUTO){this.setZIndex(isc.Canvas.getNextZIndex())} return this.zIndex} return parseInt(this.getStyleHandle().zIndex)},isc.A.setZIndex=function isc_Canvas_setZIndex(_1){var _2=this.zIndex;if(_2==_1)return;var _3=false;if(isc.Browser.isIE&&this.hasFocus&&this._useNativeTabIndex) {_3=true;this.logDebug("blurring due to zIndex change","nativeFocus");this.$vo(false)} if(_1<_2)this.$v6(_1);this.zIndex=_1;if(this.isDrawn()){if(this.$113l)this.getHandle().style.zIndex=_1 this.getStyleHandle().zIndex=_1} if(_1>_2)this.$v6(_1);if(this.hscrollbar)this.hscrollbar.moveAbove(this);if(this.vscrollbar)this.vscrollbar.moveAbove(this);if(this.clipCorners){var _4=this.$uc;if(_4.TL)_4.TL.moveAbove(this);if(_4.TR)_4.TR.moveAbove(this);if(_4.BL)_4.BL.moveAbove(this);if(_4.BR)_4.BR.moveAbove(this)} if(_3){this.delayCall("$vn",[],0)} this.zIndexChanged(_2,_1)},isc.A.$v6=function isc_Canvas__adjustSpecialPeers(_1){if(this.$sb())this.$l0.setZIndex(_1-1);if(this._backMask)this._backMask.setZIndex(_1-2);if(this._shadow)this._shadow.setZIndex(_1-3);if(this.modalMask)this.modalMask.setZIndex(_1-4)},isc.A.zIndexChanged=function isc_Canvas_zIndexChanged(_1,_2){if(!this.parentElement&&isc.Hover.lastHoverCanvas==this&&isc.Hover.hoverCanvas.isVisible()&&isc.Hover.hoverCanvas.getZIndex()<_2) {isc.Hover.hoverCanvas.bringToFront()} if(this.children)this.children.map("parentZIndexChanged")},isc.A.parentZIndexChanged=function isc_Canvas_parentZIndexChanged(){if(isc.Hover.lastHoverCanvas==this&&isc.Hover.hoverCanvas.isVisible()){var _1=this.getTopLevelCanvas();if(isc.Hover.hoverCanvas.getZIndex()<_1.getZIndex()) {isc.Hover.hoverCanvas.bringToFront()}} if(this.children)this.children.map("parentZIndexChanged")},isc.A.bringToFront=function isc_Canvas_bringToFront(_1){if(isc.$cv)arguments.$cw=this;isc.Canvas._BIG_Z_INDEX+=18;this.setZIndex(isc.Canvas._BIG_Z_INDEX);if(this.groupLabel)this.groupLabel.moveAbove(this);var _2=this.getParentCanvas();if(_2&&_2.componentMaskShowing){if(_2.$168r==null){_2.$168r=[this]}else if(!_2.$168r.contains(this)){_2.$168r.add(this)} this.disableKeyboardEvents(false,true,true)} if(_1&&!this.$qf())return;isc.$nd=true;this.unmask();isc.$nd=false},isc.A.sendToBack=function isc_Canvas_sendToBack(){if(this.groupLabel)this.groupLabel.sendToBack();isc.Canvas._SMALL_Z_INDEX-=18;this.setZIndex(isc.Canvas._SMALL_Z_INDEX)},isc.A.moveAbove=function isc_Canvas_moveAbove(_1){var z=_1.getZIndex(true);if(_1.groupLabel)z=Math.max(z,_1.groupLabel.getZIndex(true));this.setZIndex(z+6)},isc.A.moveBelow=function isc_Canvas_moveBelow(_1){var z=_1.getZIndex(true);this.setZIndex(z-6)},isc.A.getContents=function isc_Canvas_getContents(){var _1=(isc.isA.Function(this.contents)?this.contents():this.contents);return this.dynamicContents?_1.evalDynamicString(this,this.dynamicContentsVars):_1},isc.A.setContents=function isc_Canvas_setContents(_1){if(_1!=null)this.contents=_1;this.markForRedraw("setContents")},isc.A.containsIFrame=function isc_Canvas_containsIFrame(){return this.contentsURL!=null&&this.contentsType=="page"},isc.A.getContentsURL=function isc_Canvas_getContentsURL(){return this.contentsURL},isc.A.setContentsURL=function isc_Canvas_setContentsURL(_1,_2){this.contentsURL=_1;_1=isc.Page.getURL(_1);var _3=isc.addProperties({},this.contentsURLParams,_2),_1=isc.rpc.addParamsToURL(_1,_3);if(!this.isDrawn())return;if(this.containsIFrame()){var _4=this.$sk();if(!_4||!_1)this.markForRedraw("setContentsURL");else _4.src=_1}},isc.A.setBackgroundColor=function isc_Canvas_setBackgroundColor(_1){this.backgroundColor=_1;var _2=this.getStyleHandle();if(_2!=null){_2.backgroundColor=(_1==null?"":_1)}},isc.A.setTextColor=function isc_Canvas_setTextColor(_1){this.textColor=_1;var _2=this.getStyleHandle();if(_2){return _2.color=_1}},isc.A.setBackgroundImage=function isc_Canvas_setBackgroundImage(_1){this.backgroundImage=_1;var _2=this.getStyleHandle();if(_2){if(_1==null){_2.backgroundImage=""}else{_2.backgroundImage='url('+this.getImgURL(this.backgroundImage)+')'}}},isc.A.setBorder=function isc_Canvas_setBorder(_1){this.$tk=null;if(_1!=null&&!isc.isA.String(_1)){_1=this.$63e(_1)} if(_1==null)_1=isc.emptyString;if(isc.endsWith(_1,isc.semi))_1=_1.slice(0,_1.length-1);this.border=_1;var _2=this.getStyleHandle();if(!_2)return;if(_2.border!=_1){_2.border=_1} this.adjustOverflow("setBorder");this.innerSizeChanged("Border thickness changed")},isc.A.$63e=function isc_Canvas__convertBorderToString(_1){var _2=_1;if(isc.isA.Number(_1)){_1+="px solid"}else{_1=null;this.logWarn("this.border defined as "+_2+". This property should have a string value - dropping this attribute.")} return _1},isc.A.$95d=function isc_Canvas__convertBorderRadiusToString(_1){return(isc.isA.Number(_1)?_1+"px":null)},isc.A.getBorder=function isc_Canvas_getBorder(){return this.border},isc.A.setOpacity=function isc_Canvas_setOpacity(_1,_2,_3){if(!_2&&this.fadeAnimation)this.finishAnimation("fade");var _4=this.opacity;this.opacity=_1;if(this.opacity==100&&!_3&&!(this.smoothFade&&isc.Browser.isMoz))this.opacity=null;if(this.isDrawn()){if(isc.Browser.isMoz){var _5=(this.opacity!=null)?this.opacity/100:"";if(this.smoothFade&&(_5==1||this.opacity==null))_5=0.9999;if(this.$65q)this.getStyleHandle().MozOpacity=_5;else this.getStyleHandle().opacity=_5}else if(isc.Browser.isIE&&!isc.Browser.isIE9){if(!isc.Canvas.neverUseFilters||this.useOpacityFilter){this.getStyleHandle().filter=(this.opacity==null?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+this.opacity+")")}}else{var _5=(this.opacity!=null)?this.opacity/100:"";this.getStyleHandle().opacity=_5}} this.$v7(_1,_2,_3||_1!=null);if(isc.Browser.isIE&&this.fixIEOpacity&&this.children){for(var i=0;i=_3.scrollHeight){_3.scrollTop=_3.scrollHeight-_3.clientHeight-1} this.$168k=_3.scrollHeight<=_3.clientHeight}},isc.A.handleTouchMove=function isc_Canvas_handleTouchMove(_1,_2){if((isc.Browser.isIPhone||isc.Browser.isIPad)&&_1.target===this&&this.isDrawn()&&this.$145k()&&this.$168k) {return false}},isc.A.handleLongTouch=function isc_Canvas_handleLongTouch(_1,_2){return this.handleShowContextMenu(_1,_2)},isc.A.getEventPart=function isc_Canvas_getEventPart(_1){if(!_1)_1=isc.EH.lastEvent;var _2=_1.eventPart,_3=_1.eventPartID;if(_3==isc.emptyString){_3=null}else if(_3!=null){_3=_3.substring(this.getID().length+_2.length+2)} var _4={part:_2,ID:_3,element:_1.nativeTarget};return _4},isc.A.getElementPart=function isc_Canvas_getElementPart(_1){var _2,_3;if(this.isDrawn()&&_1!=null){var _4=this.getHandle();if(isc.isA.Canvas(_1))_1=_1.getHandle();while(_1!=_4&&_1!=null){if(_1.getAttribute){_2=_1.getAttribute(this.$pk)} if(_2==null||_2==isc.emptyString){_1=_1.parentNode}else{break}} if(_2&&_2!=isc.emptyString){var _5=_1.id;if(_5&&_5!=isc.emptyString){_3=_5.substring(this.getID().length+_2.length+2)}}} return{part:_2,ID:_3,element:_1}},isc.A.getPartElement=function isc_Canvas_getPartElement(_1){var _2=_1.part,_3=_1.partID,_4=this.getID()+"_"+_2;if(_3)_4+=_3;var _5=isc.Element.get(_4);if(_5)return _5;return isc.Element.findAttribute(this.getHandle(),this.$pk,_2)},isc.A.firePartEvent=function isc_Canvas_firePartEvent(_1,_2){if(!this.useEventParts||!_1)return;var _3=this.getEventPart(_1);if(!_3.part)return;if(!_2)_2=_1.eventType;return this.$wd(_3.part,_2,_3.element,_3.ID,_1)},isc.A.$wd=function isc_Canvas__firePartEvent(_1,_2,_3,_4,_5){var _6=this.getPartEventHandler(_1,_2);if(this[_6]){return this[_6](_3,_4,_5)}},isc.A.getPartEventHandler=function isc_Canvas_getPartEventHandler(_1,_2){if(!isc.Canvas.$np[_1])isc.Canvas.$np[_1]={};if(!isc.Canvas.$np[_1][_2]){var _3=_2.substring(0,1).toUpperCase()+_2.substring(1);isc.Canvas.$np[_1][_2]=_1+_3} return isc.Canvas.$np[_1][_2]},isc.A.getDragType=function isc_Canvas_getDragType(){return this.dragType},isc.A.willAcceptDrop=function isc_Canvas_willAcceptDrop(){var _1=this.ns.EH;if((_1.nativeDragging&&(_1.lastEvent==null||_1.lastEvent.DOMevent==null||_1.lastEvent.DOMevent.dataTransfer==null))||_1.dragTarget==null) {return false} if(this.dropTypes==isc.Canvas.ANYTHING||this.dropTypes==null||isc.is.emptyString(this.dropTypes)) {return true} var _2=_1.dragTarget==null?null:_1.dragTarget.getDragType();if(_2==null&&_1.nativeDragging){var _3=_1.lastEvent;_2=isc.EH.$120r(_3.DOMevent.dataTransfer)} if(_2==null||isc.is.emptyString(_2))return false;if(isc.isA.String(_2)){return this.dropTypes.contains(_2)}else if(isc.isAn.Array(_2)){for(var i=0,_5=true,_6=_2.length;i<_6&&_5;i++){_5=_5&&(this.dropTypes.contains(_2))} return _5} return false},isc.A.$mb=function isc_Canvas__showDragMask(){if(this.useDragMask&&this.dragMaskType=="hide"){var _1=this.getStyleHandle();this.display_bak=_1.display;_1.display="none"}else if(this.useDragMask&&this.dragMaskType=="hidePlugin"&&this.usePlaceholderDragMask){var _2=this.getPluginHandle();if(_2){_2.style.visibility="hidden";if(!this.$49u)this.$49u=this.createDragPlaceholder();if(this.$49u){isc.addProperties(this.$49u,{$jr:this,getTarget:function(){return this.$jr}});this.$49u.setRect(this.getPageRect());this.$49u.show()}}}else if(this._eventMask){if(this._eventMask.visibility==isc.Canvas.HIDDEN)this._eventMask.show()}},isc.A.getPluginHandle=function isc_Canvas_getPluginHandle(){return document.getElementById(this.getPluginID())},isc.A.getPluginID=function isc_Canvas_getPluginID(){return},isc.A.createDragPlaceholder=function isc_Canvas_createDragPlaceholder(){return isc.Label.create({align:"center",contents:this.dragPlaceholderMessage,styleName:this.dragPlaceholderStyle})},isc.A.$mc=function isc_Canvas__hideDragMask(){if(this.useDragMask&&this.dragMaskType=="hide"){this.getStyleHandle().display=this.display_bak;delete this.display_bak}else if(this.useDragMask&&this.dragMaskType=="hidePlugin"&&this.usePlaceholderDragMask){var _1=this.getPluginHandle();if(_1){_1.style.visibility="inherit";if(this.$49u)this.$49u.hide()}}else if(this._eventMask){if(this._eventMask.visibility!=isc.Canvas.HIDDEN)this._eventMask.hide()}},isc.A.handleDrop=function isc_Canvas_handleDrop(_1,_2){if(this.onDrop!=null&&(this.onDrop()==false))return false;return this.drop(_1,_2)},isc.A.getHSnapPosition=function isc_Canvas_getHSnapPosition(_1,_2){if(!_2){_2=this.snapHDirection} if(_2!=isc.Canvas.BEFORE&&_2!=isc.Canvas.AFTER&&_2!=isc.Canvas.NEAREST){return _1} var _3=Math.floor(_1/this.snapHGap)*this.snapHGap;var _4=_3+this.snapHGap;var _5=_3+this.snapHGap/2;if(_2==isc.Canvas.BEFORE){return _3}else if(_2==isc.Canvas.AFTER){return _4}else{if(_1<=_5)return _3;else return _4}},isc.A.getVSnapPosition=function isc_Canvas_getVSnapPosition(_1,_2){if(!_2){_2=this.snapVDirection} if(_2!=isc.Canvas.BEFORE&&_2!=isc.Canvas.AFTER&&_2!=isc.Canvas.NEAREST){return _1} var _3=Math.floor(_1/this.snapVGap)*this.snapVGap;var _4=_3+this.snapVGap;var _5=_3+this.snapVGap/2;if(_2==isc.Canvas.BEFORE){return _3}else if(_2==isc.Canvas.AFTER){return _4}else{if(_1<=_5)return _3;else return _4}},isc.A.shouldSnapOnDrop=function isc_Canvas_shouldSnapOnDrop(_1){return true},isc.A.noSnapDragOffset=function isc_Canvas_noSnapDragOffset(_1){return false},isc.A.setShowSnapGrid=function isc_Canvas_setShowSnapGrid(_1){if(this.showSnapGrid==_1)return;this.showSnapGrid=_1;if(_1){this.$1313()}else{if(this.snapGridPane)this.snapGridPane.hide()}},isc.A.$1313=function isc_Canvas__showSnapGrid(){if(!this.childrenSnapToGrid&&!this.childrenSnapResizeToGrid)return;if(this.snapVGap<8||this.snapHGap<8){this.logWarn("Attempt to showSnapGrid ignored - snapVGap or snapHGap < 8");return} if(!this.snapGridPane){var _1=isc.DrawPane.create({autoDraw:false,height:this.snapVGap,width:this.snapHGap,top:-1000,left:-1000});var _2=Math.floor(this.snapGridCrossLength/2)*2,_3=_2/2,x=_3,y=_3;var _6=isc.addProperties({},this.snapGridLineDefaults,{drawPane:_1,startPoint:[x-_3,y],endPoint:[x+_3,y]});isc.DrawLine.create(_6);var _7=isc.addProperties({},this.snapGridLineDefaults,{drawPane:_1,startPoint:[x,y-_3],endPoint:[x,y+_3]});isc.DrawLine.create(_7);_1.draw();_1.refreshNow();var _8=_1.getDataURL();_1.markForDestroy();this.snapGridPane=this.createAutoChild("snapGridPane",{backgroundImage:_8,backgroundRepeat:"repeat",backgroundPosition:(this.snapHGap-_3)+"px "+(this.snapVGap-_3)+"px"});this.addChild(this.snapGridPane);this.snapGridPane.sendToBack()} this.snapGridPane.show()},isc.A.setAppImgDir=function isc_Canvas_setAppImgDir(_1){if(_1)this.appImgDir=_1},isc.A.getAppImgDir=function isc_Canvas_getAppImgDir(){return isc.Page.getImgURL("",this.appImgDir)},isc.A.setSkinImgDir=function isc_Canvas_setSkinImgDir(_1){if(_1)this.skinImgDir=_1},isc.A.getSkinImgDir=function isc_Canvas_getSkinImgDir(){return isc.Page.getSkinImgDir(this.skinImgDir)},isc.A.getImgURL=function isc_Canvas_getImgURL(_1,_2){return isc.Canvas.getImgURL(_1,_2,this)},isc.A.imgHTML=function isc_Canvas_imgHTML(_1,_2,_3,_4,_5,_6,_7,_8){return isc.Canvas.imgHTML(_1,_2,_3,_4,_5,_6,_7,this,false,_8)});isc.evalBoundary;isc.B.push(isc.A.$wf=function isc_Canvas__getImgHTMLTemplate(_1,_2,_3,_4,_5,_6,_7,_8){return isc.Canvas.imgHTML(_1,_2,_3,_4,_5,_6,_7,this,true,_8)},isc.A.getImage=function isc_Canvas_getImage(_1,_2){if(isc.isA.String(_1))_1=this.getCanvasName()+_1;var _3=this.getHandle();if(_3){var _4=_3.document||document;if(isc.Page.isXHTML()||_2){return _4.getElementById(_1)}else{return _4.images[_1]}} return null},isc.A.setImage=function isc_Canvas_setImage(_1,_2,_3,_4){var _5=this.getImage(_1,_4);if(_5==null){this.logWarn("setImage: image '"+_1+"' couldn't be found");return} isc.Canvas.$wg(_5,_2,_3,this)},isc.A.linkHTML=function isc_Canvas_linkHTML(_1,_2,_3,_4,_5,_6,_7){return isc.Canvas.linkHTML(_1,_2,_3,_4,_5,_6,_7)},isc.A.inWhichPosition=function isc_Canvas_inWhichPosition(_1,_2,_3){if(!_1||_2<0)return-1;if(_3==isc.Page.RTL){var _4=_1.sum();for(var c=0,_6=_1.length;c<_6;c++){if(_2>=_4-_1[c])return c;_4-=_1[c]}}else{for(var c=0,_6=_1.length;c<_6;c++){if(_2<=_1[c]){return c} _2-=_1[c]}} return-2},isc.A._canvasList=function isc_Canvas__canvasList(_1){var _2=isc.Canvas._canvasList;if(_1)_2.add(this);else _2.remove(this);if(this.$ih){isc.Canvas._iscInternalCount+=(_1?1:-1)}else{isc.Log.updateStats(this.$f8)}},isc.A.$p6=function isc_Canvas__addStat(_1){if(!this.$ih){isc.Canvas._stats[_1]++;isc.Log.updateStats(_1)}},isc.A.$wh=function isc_Canvas__attachedPeers(_1){var _2=this.$sc;if(!_2)return null;if(_1)return _2[_1]},isc.A.$wi=function isc_Canvas__registerAttachedPeer(_1,_2,_3,_4){if(_1==null||_2==null)return;if(!this.$sc)this.$sc={};if(!this.$sc[_2])this.$sc[_2]=[];this.$sc[_2].add(_1);if(_3!=null)_1.$55s=_3 if(_4){this.observe(_1,"resized","observer.$88y(observed)")} delete this.$s7;delete this.$s8},isc.A.$wj=function isc_Canvas__unRegisterAttachedPeer(_1,_2,_3){if(_1==null||_2==null)return;if(!this.$sc||!this.$sc[_2])return;this.$sc[_2].remove(_1);if(this.isObserving(_1,"resized")){this.ignore(_1,"resized")} delete _1.$55s;delete this.$s7;delete this.$s8},isc.A.$88y=function isc_Canvas__attachedPeerResized(_1){this.refreshMargin()},isc.A.refreshMargin=function isc_Canvas_refreshMargin(){this.setMargin(this.margin)},isc.A.$ps=function isc_Canvas__makeCornerClips(){this.$uc={};for(var i=0;i=5.5)){this.noCornerClipImages=false} var _7=_2[_1]=isc.ClassFactory.newInstance({_constructor:(this.noCornerClipImages?"Canvas":"Img"),left:_3,top:_4,width:_5,height:_6,eventProxy:this,src:(this.noCornerClipImages?null:this.$wl(_1)),contents:(this.noCornerClipImages?this.$wm(_5,_6,_1):null)},this.$nv);this.addPeer(_7);_7.moveAbove(this)},isc.A.$qg=function isc_Canvas__finishCornerClips(){if(!this.noCornerClipImages)return;for(var _1 in this.$uc){var _2=this.$uc[_1],_3=_2.getHandle().firstChild,_4=_3.style;_3.filters[0].apply();_4.visibility="hidden";_3.filters[0].percent=71}},isc.A.$wl=function isc_Canvas__getCornerImage(_1){return isc.Img.urlForState(this.cornerClipImage,null,null,this.cornerClipColor,_1)},isc.A.$wm=function isc_Canvas__getCornerHTML(_1,_2,_3){var _4=isc.SB.create();_4.append("
");return _4.release(false)},isc.A.$sb=function isc_Canvas__edgesAsPeer(){return this.showEdges&&!this.edgesAsChild},isc.A.$pq=function isc_Canvas__createEdges(){if(!this.showEdges||isc.isA.EdgedCanvas(this)||this.$l0!=null){return this.$l0} var _1=this.$l0=this.$wn();if(this.edgesAsChild){_1.resizeTo("100%","100%");_1.sendToBack();this.addChild(_1)}else{this.addPeer(_1)} return _1},isc.A.setEdgeOpacity=function isc_Canvas_setEdgeOpacity(_1){var _2=this.edgeOpacity=_1;if(this.opacity>0&&this.opacity<100){_2=this.opacity*(this.edgeOpacity/100)} this.$l0.setOpacity(_2)},isc.A.$wn=function isc_Canvas__createEdgedCanvas(){var _1=this.$pl,_2=isc.EdgedCanvas.createRaw();_2.autoDraw=false;_2._generated=true;_2.containedPeer=true;_2.dragTarget=this;_2.visibility=this.visibility;_2.opacity=this.opacity;_2.useOpacityFilter=this.useOpacityFilter;if(this.edgeOpacity!=null){_2.opacity=this.edgeOpacity;_2.$nt=false} _2.smoothFade=this.smoothFade;if(this.edgeOverflow!=null)_2.overflow=this.edgeOverflow;_2.eventProxy=this;for(var i=0;i<_1.length;i++){var _4=_1[i];if(this[_4]!=null)_2[_4]=this[_4]} if(this.edgeBackgroundColor)_2.backgroundColor=this.edgeBackgroundColor;if(this.edgeCenterBackgroundColor){_2.centerBackgroundColor=this.edgeCenterBackgroundColor} if(this.edgeShowCenter!=null)_2.showCenter=this.edgeShowCenter;if(!this.edgesAsChild)_2.zIndex=this.getZIndex(true)-1;_2.completeCreation();return _2},isc.A.setShowShadow=function isc_Canvas_setShowShadow(_1){this.showShadow=_1;if(_1){if(!this._shadow)this.$pr();else if(this.isDrawn())this._shadow.show()}else{if(this._shadow)this._shadow.hide()}},isc.A.$pr=function isc_Canvas__createShadow(){var _1=this._shadow=this.createAutoChild("shadow",{visibility:this.visibility,zIndex:this.getZIndex(true)-3},isc.DropShadow);this.updateShadow(true);this.addPeer(_1);_1.moveBelow(this)},isc.A.updateShadow=function isc_Canvas_updateShadow(_1){if(!_1)this.setShowShadow(this.showShadow);var _2=this._shadow;if(!_2)return;_2.offset=this.shadowOffset;_2.offsetX=this.shadowOffsetX;_2.offsetY=this.shadowOffsetY;_2.softness=this.shadowSoftness;if(this.shadowImage)_2.setEdgeImage(this.shadowImage);_2.setDepth(this.shadowDepth);if(this.dragResizeFromShadow&&this.canDragResize){_2.canDragResize=this.canDragResize;_2.resizeFrom=this.resizeFrom;_2.dragTarget=this}},isc.A.propertyChanged=function isc_Canvas_propertyChanged(_1,_2){if(isc.contains(_1,this.$pm)&&this.updateShadow)this.updateShadow();if((_1==this.$131z||_1==this.$1310)&&this.snapGridPane){var _3=this.showSnapGrid;this.setShowSnapGrid(false);this.snapGridPane=null;if(_3)this.setShowSnapGrid(true)} if(_1==this.$1311||_1==this.$1312){if((this.childrenSnapToGrid||this.childrenSnapResizeToGrid)&&this.showSnapGrid)this.$1313();else if(this.snapGridPane)this.snapGridPane.hide()}},isc.A.setIsGroup=function isc_Canvas_setIsGroup(_1){if(_1==this.isGroup)return;var _2=this.shouldShowGroupLabel()&&this.isDrawn();if(_2)this.clear();if(_1){this.$55t=this.border;this.setBorder(this.groupBorderCSS);if(this.shouldShowGroupLabel())this.$55u()}else{this.setBorder(this.$55t||"");if(this.shouldShowGroupLabel())this.$55v()} this.isGroup=_1;if(_2)this.draw()},isc.A.shouldShowGroupLabel=function isc_Canvas_shouldShowGroupLabel(){return this.showGroupLabel},isc.A.makeGroupLabel=function isc_Canvas_makeGroupLabel(){if(!this.groupLabel){var _1={autoDraw:false,backgroundColor:this.getGroupLabelBackgroundColor(),eventProxy:this,styleName:this.groupLabelStyleName} if(this.groupTitle!=null)_1.contents=this.groupTitle;this.groupLabel=this.createAutoChild("groupLabel",_1)}else{if(this.groupTitle!=null)this.groupLabel.setContents(this.groupTitle);this.groupLabel.setBackgroundColor(this.getGroupLabelBackgroundColor())}},isc.A.getGroupLabelBackgroundColor=function isc_Canvas_getGroupLabelBackgroundColor(){if(this.groupLabelBackgroundColor)return this.groupLabelBackgroundColor;if(this.backgroundColor)return this.backgroundColor;return"white"},isc.A.setGroupLabelBackgroundColor=function isc_Canvas_setGroupLabelBackgroundColor(_1){this.groupLabelBackgroundColor=_1;if(this.groupLabel)this.groupLabel.setBackgroundColor(this.getGroupLabelBackgroundColor())},isc.A.$55u=function isc_Canvas__showGroupLabel(){this.makeGroupLabel();var _1=this.groupLabel;var _2;if(_1.overflow==isc.Canvas.VISIBLE){if(_1.parentElement!=null)_1.deparent();_1.setTop(-1000);_1.draw();_2=_1.getVisibleHeight()}else{_2=_1.getVisibleHeight()} var _3=Math.round(_2/2);this.$wi(_1,isc.Canvas.TOP,_3);var _4=_2-_3;if(this.padding)_4+=this.padding;this.setTopPadding(_4);this.$1332();if(_1.masterElement!=this)this.addPeer(_1);if(this.isDrawn()){if(!_1.isDrawn())_1.draw()} this.getTopMargin();_1.moveAbove(this);if(_1.isDrawn()&&!this.isDrawn())_1.clear()},isc.A.$55v=function isc_Canvas__hideGroupLabel(){if(!this.groupLabel)return;var _1=this.groupLabel;this.$wj(_1,isc.Canvas.TOP);this.setTopPadding(null);_1.clear();_1.depeer()},isc.A.$1332=function isc_Canvas__moveGroupLabelIntoPlace(){var _1=this.groupLabel;var _2,_3=this.getTop();if(this.isRTL()){_2=this.getRight()-this.groupLabelPadding-_1.getVisibleWidth()}else{_2=this.getLeft()+this.groupLabelPadding} _1.moveTo(_2,_3)},isc.A.setGroupTitle=function isc_Canvas_setGroupTitle(_1){this.groupTitle=_1;if(this.groupLabel){this.groupLabel.setContents(this.groupTitle)}else{this.$55u()}},isc.A.setTriggerAreaTop=function isc_Canvas_setTriggerAreaTop(_1){if(this.triggerAreaTop==_1)return;this.triggerAreaTop=_1;if(this.triggerArea!=null)this.triggerArea.$1515()},isc.A.setTriggerAreaRight=function isc_Canvas_setTriggerAreaRight(_1){if(this.triggerAreaRight==_1)return;this.triggerAreaRight=_1;if(this.triggerArea!=null)this.triggerArea.$1515()},isc.A.setTriggerAreaBottom=function isc_Canvas_setTriggerAreaBottom(_1){if(this.triggerAreaBottom==_1)return;this.triggerAreaBottom=_1;if(this.triggerArea!=null)this.triggerArea.$1515()},isc.A.setTriggerAreaLeft=function isc_Canvas_setTriggerAreaLeft(_1){if(this.triggerAreaLeft==_1)return;this.triggerAreaLeft=_1;if(this.triggerArea!=null)this.triggerArea.$1515()},isc.A.$1516=function isc_Canvas__getTriggerAreaRect(){var _1=this.triggerAreaTop,_2=this.triggerAreaRight,_3=this.triggerAreaBottom,_4=this.triggerAreaLeft;return{left:this.getLeft()-_4,top:this.getTop()-_1,width:this.getVisibleWidth()+_2+_4,height:this.getVisibleHeight()+_1+_3}},isc.A.$1517=function isc_Canvas__createTriggerArea(){var _1=this.$1516();var _2=this.triggerArea=this.createAutoChild("triggerArea",{eventProxy:this,left:_1.left,top:_1.top,width:_1.width,height:_1.height},isc.Browser.isAndroid&&isc.Browser.isChrome?isc.Img:isc.Canvas);this.addPeer(_2);return _2});isc.B._maxIndex=isc.C+616;isc.A=isc.Canvas;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$hm="[SKIN]";isc.A.$1625="{allowRelativeSrc}";isc.A.printOmitControls=["Button","StretchImgButton","ImgButton","MenuButton","Toolbar","ToolStrip","ButtonItem","ToolbarItem"];isc.A.printIncludeControls=["Label"];isc.A.$ws=0;isc.A.$94t="'";isc.A.$123d={"TEXTTOP":"text-top","texttop":"text-top","absmiddle":"middle"};isc.A.$166p=new String;isc.A.$wt="ID='";isc.A.$ob="'";isc.A.$wu="absmiddle";isc.A.$wv=[,,," eventpart='valueicon' ",null];isc.A.$124g="margin-left:";isc.A.$124h="px;margin-right:";isc.A.$ww={};isc.A.$wx={png:true,PNG:true,Png:true};isc.A.$wy=["",,""];isc.A.$wz="[SKINIMG]/blank.gif";isc.A.$w0="0";isc.A.$123e=!isc.Browser.isIE||isc.Browser.version>=9;isc.A.$w1="clearRedrawQueue";isc.A.$65j=[];isc.A.$65k=0;isc.A.$65l="clearDestroyQueue";isc.A.$tw=[];isc.B.push(isc.A.stripScriptTags=function isc_c_Canvas_stripScriptTags(_1){return _1.replace(/]*)?>(.|\n|\r)*?<\/script>/ig,isc.emptyString)},isc.A.stripLinkTags=function isc_c_Canvas_stripLinkTags(_1){return _1.replace(/]*)?>/ig,isc.emptyString)},isc.A.getById=function isc_c_Canvas_getById(_1){var _2=window[_1]||null;return _2?(isc.isA.Canvas(_2)?_2:null):null},isc.A.getNextZIndex=function isc_c_Canvas_getNextZIndex(){return(isc.Canvas._nextZIndex+=18)},isc.A.getFocusProxyString=function isc_c_Canvas_getFocusProxyString(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16){if(this.$w8==null){this.$w9="' ONFOCUS=";this.$xa="' ";this.$xb=" ONBLUR=";this.$w8=["",(isc.Browser.isSafari?"=20051111?"",(isc.Browser.isSafari?"":(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20051111?"
":"")),""]} var _17=this.$w8;_17[2]=_1;_17[4]=(_2?"absolute":"inline");_17[6]=_3;_17[8]=_4;_17[12]=_1;_17[15]=(_7?"visible;":"hidden;");_17[17]=_5;_17[19]=_6;if(isc.Browser.isMoz){if(!_8||_9==-1)_17[21]="-moz-user-focus:ignore;";else _17[21]="-moz-user-focus:normal;"} if(_12&&_12!=isc.emptyString){_17[22]=this.$w9;_17[23]=_12}else{_17[22]=this.$xa;_17[23]=null} if(_13&&_13!=isc.emptyString){_17[24]=this.$xb;_17[25]=_13}else{_17[24]=null;_17[25]=null} _17[26]=(_14!=null?" onkeydown="+_14:null);_17[27]=(_15!=null?" onkeypress="+_15:null);_17[28]=(_16!=null?" onkeyup="+_16:null);_17[30]=(_8?_9:-1);_17[31]=(_8&&_10?"' accesskey='"+_10:null);_17[33]=(_11?true:false);return _17.join(isc.$ad)},isc.A.showAllocatedTabChain=function isc_c_Canvas_showAllocatedTabChain(){var _1=isc.EH.$kj,_2=isc.EH.$kl;var _3="First tab widget:"+_1+", and last:"+_2+"\nFull chain:";var _4=_1;do{_3+="\n\t"+_4.getID()+" - "+_4.getTabIndex()+" -->";_4=_4.$v4}while(_4!=null&&_4!=_2) this.logWarn(_3)},isc.A.clearCSSCaches=function isc_c_Canvas_clearCSSCaches(){isc.Element.$50f();var _1=isc.Canvas._canvasList;for(var i=0;i<_1.length;i++){var _3=_1[i];if(_3==null||_3.destroyed)continue;_3.$s8=_3.$s7=_3.$tk=_3.$tp=null}},isc.A.setAppImgDir=function isc_c_Canvas_setAppImgDir(_1){this.getPrototype().appImgDir=_1},isc.A.getAppImgDir=function isc_c_Canvas_getAppImgDir(){return isc.Page.getImgURL(isc.emptyString,this.getPrototype().appImgDir)},isc.A.setSkinImgDir=function isc_c_Canvas_setSkinImgDir(_1){this.getPrototype().skinImgDir=_1},isc.A.getSkinImgDir=function isc_c_Canvas_getSkinImgDir(){return isc.Page.getSkinImgDir(this.getPrototype().skinImgDir)},isc.A.getImgURL=function isc_c_Canvas_getImgURL(_1,_2,_3){if(_1==null||isc.isAn.emptyString(_1))return isc.$ad;_3=_3||this.getPrototype();if(_1.imgDir!=null&&_2==null)_2=_1.imgDir;if(_1.src!=null)_1=_1.src;var _4;if(_2==this.$1625){if(isc.Page.$1624(_1))_4=true;_2=null} if(_2==null){_2=(isc.startsWith(_1,this.$hm)?_3.skinImgDir:_3.appImgDir)} var _5=isc.Page.getImgURL(_1,_2,_4);return _5},isc.A.setShowCustomScrollbars=function isc_c_Canvas_setShowCustomScrollbars(_1){isc.Canvas.addProperties({showCustomScrollbars:_1})},isc.A.getPrintHTML=function isc_c_Canvas_getPrintHTML(_1,_2,_3,_4,_5,_6){if(!isc.isAn.Array(_1))_1=[_1];if(_5==null)_5=[];if(_6==null)_6=0;var _7,_8={target:this,methodName:"gotComponentPrintHTML",components:_1,printProperties:_2,callback:_3,HTML:_5,index:_6,separator:_4};for(;_6<_1.length;_6++){_8.index+=1;var _9=_1[_6];var _10;if(isc.isA.String(_9))_10=_9;else _10=_9.getPrintHTML(_2,_8);if(_10!=null){_5.add(_10)}else{_7=true;break}} if(_7){if(!_3){this.logWarn("getPrintHTML(): HTML generated asynchronously, but no callback passed in")} return null} if(_3){this.fireCallback(_3,"HTML,callback",[_5.join(_4||isc.emptyString),_3])} return _5.join(_4||isc.emptyString)},isc.A.gotComponentPrintHTML=function isc_c_Canvas_gotComponentPrintHTML(_1,_2){_2.HTML.add(_1);this.getPrintHTML(_2.components,_2.printProperties,_2.callback,_2.separator,_2.HTML,_2.index)},isc.A.getImgHTML=function isc_c_Canvas_getImgHTML(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10){return this.imgHTML(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10)},isc.A.$wf=function isc_c_Canvas__getImgHTMLTemplate(_1,_2,_3,_4,_5,_6,_7,_8){return isc.Canvas.imgHTML(_1,_2,_3,_4,_5,_6,_7,null,true,_8)},isc.A.imgHTML=function isc_c_Canvas_imgHTML(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10){var _11,_12;if(isc.isAn.Object(_1)){if(_1.width!=null)_2=_1.width;if(_1.height!=null)_3=_1.height;if(_1.name!=null)_4=_1.name;if(_1.extraStuff!=null)_5=_1.extraStuff;if(_1.imgDir!=null)_6=_1.imgDir;if(_1.align!=null)_11=_1.align;if(_1.activeAreaHTML!=null)_7=_1.activeAreaHTML;if(_1.generateSpan!=null)_10=_1.generateSpan;if(_1.extraCSSText!=null)_12=_1.extraCSSText;_1=_1.src} if(_1===this.$166p){_1=null}else if(_1==null||isc.isAn.emptyString(_1)){return(_9?[isc.$ad]:isc.$ad)} var _13=this.$xd;if(!_13){this.$xe="";this.$xd=_13=[this.$xe];this.$xm="' style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"";this.$xn="\",sizingMethod=\"scale\");";this.$166q=""+_7+""} if(_9)return _13;var _18=_13.join(isc.$ad);_13.length=3;return _18},isc.A.$xq=function isc_c_Canvas__getValueIconHTML(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10){var _11=this.$wv;if(_7!=null){_11[0]=this.$wt;_11[1]=_7;_11[2]=this.$ob}else{_11[0]=_11[1]=_11[2]=null} _11[4]=_9;var _12=this.$ww;_12.src=_1===this.$166p?this.$166p:isc.Canvas.getImgURL(_1,_2,_8);_12.width=_3 _12.height=_4 if(_4!=null&&_4<16&&(isc.Browser.isMoz||isc.Browser.isSafari||(isc.Browser.isIE&&(isc.Browser.isIE9||isc.Browser.version>=10)))) {_12.align=null}else{_12.align=this.$wu} _12.imgDir=_2;_12.extraStuff=_11.join(isc.emptyString);_12.extraCSSText=this.$124g+(_5||0)+this.$124h+(_6||0)+isc.px;if(_10!=null)_12.extraCSSText+=";"+_10;_12.generateSpan=((_8==null||!_8.isPrinting)&&this.$123e&&isc.Browser.$124v);return isc.Canvas.imgHTML(_12)},isc.A.$xo=function isc_c_Canvas__fixPNG(_1){if(this.usePNGFix==false)return false;var _2=isc.Browser.isIE&&isc.Browser.minorVersion>=5.5&&!isc.Browser.isIE9&&isc.Browser.isWin&&(!isc.Canvas.neverUseFilters&&this.neverUsePNGWorkaround!=true);if(_2&&_1&&_1.$xo&&!_1.$xo()){_2=false} return _2},isc.A.$xp=function isc_c_Canvas__isPNG(_1){return(_1&&this.$wx[_1.substring(_1.lastIndexOf(isc.dot)+1)])},isc.A.$wg=function isc_c_Canvas__setImageURL(_1,_2,_3,_4){var _5=_1.style,_6=_1.tagName==="SPAN",_7,_8;if(_2===this.$166p&&_6){_7=null;_8=false}else{if(_2===this.$166p)_2=this.$hu;_7=this.getImgURL(_2,_3,_4);_8=this.$xo(_4)&&this.$xp(_2)} if(_8){_5.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\""+_7+"\",sizingMethod=\"scale\")";if(!_6)_1.src=this.$hu}else{if(_6){if(_2===this.$166p||!_2){_5.backgroundSize=isc.$ad;_5.backgroundImage=isc.$ad}else{_5.backgroundImage="url(\""+_7+"\")"}}else{_5.filter=isc.$ad;_1.src=_7}}},isc.A.linkHTML=function isc_c_Canvas_linkHTML(_1,_2,_3,_4,_5,_6,_7){if(_2==null){_2=(!_1?isc.nbsp:String(_1).asHTML())} var _8=this.$wy;if(_4!=null)_8[1]=" ID='"+_4+"'";else _8[1]=null;_8[3]=String.asAttValue(_1);_8[5]=(_3?String.asAttValue(_3):"_blank");if(_5!=null)_8[7]=" tabIndex="+_5;else _8[7]=null;if(_6!=null)_8[8]=" accessKey='"+_6+"'";else _8[8]=null;if(_7)_8[9]=" "+_7;_8[11]=_2;return _8.join(isc.emptyString)},isc.A.blankImgHTML=function isc_c_Canvas_blankImgHTML(_1,_2){var _3=this.$ht;if(!_3){_3=this.$ht=this.$wf(this.$wz,1,1,null,null,null,null,this.$123e)} _3[7]=_1||this.$w0;_3[9]=_2||this.$w0;return _3.join(isc.$ad)},isc.A.spacerHTML=function isc_c_Canvas_spacerHTML(_1,_2,_3){if(_1==0&&_2==0)return isc.$ad;if(isc.Browser.isMoz||isc.Browser.isSafari||isc.Browser.isOpera||isc.Browser.isStrict||(isc.Browser.isIE&&(isc.Browser.version>=10||(_2<3&&(isc.Browser.minorVersion==5.5||isc.Browser.isMac))))) {var _4;if(isc.Browser.isSafari){_4=32000}else if(isc.Browser.isFirefox&&isc.Browser.geckoVersion>=20090219){_4=17895580}else if(isc.Browser.isIE&&isc.Browser.isStrict){_4=16000} if(_4!=null&&(_1>_4||_2>_4)){var _5=isc.SB.create(),_6=_4,_7=Math.floor(_2/_6),_8=Math.floor(_1/_6);_5.append("");for(var i=0;i<=_7;i++){_5.append("");for(var j=0;j<=_8;j++){_5.append("")} _5.append("")} _5.append("
");var _11=((i==j)||(i>_8&&j==0)||(j>_7&&i==0));if(_11){var _12=(i<_7?_6:_2-(i*_6)),_13=(j<_8?_6:_1-(j*_6));_5.append(this.blankImgHTML(_13,_12))} _5.append("
");return _5.release(false)} return this.blankImgHTML(_1,_2)} var _14=1300000;if(_2>_14){var _15=[];var _16=0;while(_16<_2){var _17,_18;if(_16+1400>=_2){_17=true;_18=_2-_16}else{_18=1400;_17=false} _15[_15.length]=this.spacerHTML(_1,_18);_15[_15.length]="
";_16+=_18} return _15.join(isc.$ad)} var _19=this.$xs;if(_19==null){_19=this.$xs=["",null,""]} _19[1]=_1;_19[3]=_2;_19[5]=_3?_3:isc.nbsp;return _19.join(isc.$ad)},isc.A.hiliteCharacter=function isc_c_Canvas_hiliteCharacter(_1,_2,_3,_4){if(!isc.isA.String(_1)||!isc.isA.String(_2)||_2.length!=1) return _1;if(_2==" ")return _1;if(_3==null||_4==null){_3="";_4=""} var _5=_1.indexOf(_2.toUpperCase());if(_5==-1)_5=_1.indexOf(_2.toLowerCase());if(_5!=-1){var _6=_1.slice(0,_5),_7=_1.slice(_5,_5+1),_8=_1.slice(_5+1);_7=_3+_7+_4;_1=_6.concat(_7,_8)} return _1},isc.A.scheduleRedraw=function isc_c_Canvas_scheduleRedraw(_1){if(_1&&_1.priorityRedraw){this.$nm.addAt(_1,0)}else{this.$nm.add(_1)} if(!this.$xu){this.$xu=isc.Timer.setTimeout({target:isc.Canvas,methodName:this.$w1},this._redrawQueueDelay)}},isc.A.clearRedrawQueue=function isc_c_Canvas_clearRedrawQueue(){var _1=(isc.EH.$lc!=null&&isc.EH.$lc.contains("TMR"));if(!_1)isc.EH.$h1("RDQ");var _2=isc.timeStamp();this.$xu=null;var _3=this.$nm;this.$nm=[];if(this.logIsDebugEnabled()){var _4="";for(var i=0;i<_3.length;i++){_4+=_3[i];if(i!=_3.length-1)_4+=", "} this.logDebug("clearRedrawQueue: "+_4,"drawing")} var _6,_7;for(var i=0;i<_3.length;i++){_6=_3[i];if(_6&&_6.priorityRedraw){_6.priorityRedraw=false;if(_7==null)_7=[];_7.add(_6);_3[i]=null}} if(_7!=null){this.logInfo("Priority redraw: postponing non-priority items","drawing");this.$nm=_3;this.scheduleRedraw(_3[0]);_3=_7} var _8=0,_6;for(var i=0;i<_3.length;i++){_6=_3[i];if(_6==null||_6.destroyed)continue;if(_6&&_6.isDirty()){_6.redraw(false);_8++}} if(this.logIsDebugEnabled("redraws")){this.logDebug("clearRedrawQueue: "+_8+" redraws ("+_3.length+" items), "+(isc.timeStamp()-_2)+"ms","redraws")} if(!_1)isc.EH.$h2()},isc.A.$uv=function isc_c_Canvas__queueForDelayedAdjustOverflow(_1){if(!isc.Canvas.$xv)isc.Canvas.$xv=[];isc.Canvas.$xv.add(_1);if(!isc.Canvas.$xw){isc.Canvas.$xw=isc.Timer.setTimeout({target:isc.Canvas,methodName:"$xx"},isc.Canvas.$nn)}},isc.A.$xx=function isc_c_Canvas__clearDelayedAdjustOverflowQueue(){var _1=isc.Canvas.$xv;isc.Canvas.$xv=[];isc.Canvas.$xw=null;if(!_1||_1.length==0)return;for(var i=0;i<_1.length;i++){var _3=window[_1[i]];if(isc.isA.Canvas(_3))_3.adjustOverflow("delayed")}},isc.A.checkForPageResize=function isc_c_Canvas_checkForPageResize(){isc.EH.$hr(true)},isc.A.moveOffscreen=function isc_c_Canvas_moveOffscreen(_1){if(_1.isDrawn())return;var _2=(!(!isc.Browser.isWin&&isc.Browser.isMoz&&_1.showCustomScrollbars==false&&(_1.overflow==isc.Canvas.AUTO)));if(_2)_1.moveTo(null,-9999)},isc.A.scheduleDestroy=function isc_c_Canvas_scheduleDestroy(_1){if(!_1||_1.destroyed||_1.destroying||!_1.destroy)return;this.$65j.add(_1);if(!this.$65m){this.$65m=isc.Timer.setTimeout({target:isc.Canvas,methodName:this.$65l},this.$65k)}},isc.A.clearDestroyQueue=function isc_c_Canvas_clearDestroyQueue(){isc.EH.$h1("DSQ");var _1=isc.timeStamp();this.$65m=null;var _2=this.$65j;this.$65j=[];if(this.logIsDebugEnabled("destroys")){var _3="";for(var i=0;i<_2.length;i++){_3+=_2[i];if(i!=_2.length-1)_3+=", "} this.logDebug("clearDestroyQueue: "+_3,"destroys")} var _5=0,_6;for(var i=0;i<_2.length;i++){_6=_2[i];if(_6==null||_6.destroyed||_6.destroying)continue;_6.destroy(false);_5++} if(this.logIsDebugEnabled("destroys")){this.logDebug("clearDestroyQueue: "+_5+" direct destroy() calls ("+_2.length+" items), "+(isc.timeStamp()-_1)+"ms","destroys")} isc.EH.$h2()},isc.A.outsetRect=function isc_c_Canvas_outsetRect(_1,_2){if(!_2)return _1;if(isc.isAn.Array(_1)){_1[0]-=_2;_1[1]-=_2;_1[2]+=2*_2;_1[3]+=2*_2;return _1} _1.left-=_2;_1.top-=_2;_1.width+=2*_2;_1.height+=2*_2;return _1},isc.A.rectsIntersect=function isc_c_Canvas_rectsIntersect(_1,_2){var _3=_1[0],_4=_1[1],_5=_1[2],_6=_1[3],_7=_2[0],_8=_2[1],_9=_2[2],_10=_2[3],_11=((_3>_7+_9-1)||(_3+_5-1<_7)),_12=((_4>_8+_10-1)||(_4+_6-1<_8));return!_11&&!_12},isc.A.rectEnclosesRect=function isc_c_Canvas_rectEnclosesRect(_1,_2){var _3=_1[0],_4=_1[1],_5=_1[2],_6=_1[3],_7=_2[0],_8=_2[1],_9=_2[2],_10=_2[3],_11=((_3<=_7)&&(_3+_5>=_7+_9)),_12=((_4<=_8)&&(_4+_6>=_8+_10));return _11&&_12},isc.A.$vs=function isc_c_Canvas__forceNativeTabOrderUpdate(){if(!this.$xy){this.ns.Element.createAbsoluteElement("
 
");this.$xy=document.all["$xz"]}else{this.$xy.innerHTML=" "}},isc.A.$q8=function isc_c_Canvas__addToTopLevelCanvasList(_1){if(!isc.isA.Canvas(_1)||_1.$x0!=null)return;this.$tw.add(_1);_1.$x0=this.$tw.length-1},isc.A.$ro=function isc_c_Canvas__removeFromTopLevelCanvasList(_1){if(!isc.isA.Canvas(_1)||_1.$x0==null)return;this.$tw[_1.$x0]=null;_1.$x0=null},isc.A.$151r=function isc_c_Canvas__isInFront(_1){while(_1.parentElement!=null)_1=_1.parentElement;var _2=_1.getZIndex(true),_3=this.$tw;for(var i=0,_5=_3.length;i<_5;++i){var _6=_3[i];if(_6!=null&&_6.isDrawn()&&_6.isVisible()&&_6.getZIndex(true)>_2) {return false}} return true},isc.A.$92y=function isc_c_Canvas__adjustScrollLeftForRTL(_1,_2,_3,_4,_5,_6){if(_5){var _7=_2-_3;if(_4)_1-=_7;else _1+=_7}else if(_6){var _8=_2-_3;if(_8>0&&_8>=_1){_1=_8-_1}} return _1},isc.A.showClickMask=function isc_c_Canvas_showClickMask(_1,_2,_3){return this.ns.EH.showClickMask(_1,_2,_3)},isc.A.hideClickMask=function isc_c_Canvas_hideClickMask(_1){this.ns.EH.hideClickMask(_1)},isc.A.$t7=function isc_c_Canvas__placeRect(_1,_2,_3,_4,_5,_6){if(isc.isAn.Array(_3)){_3={left:_3[0],top:_3[1],width:_3[2],height:_3[3]}}else if(_3==null){_3={left:this.ns.EH.getX(),top:this.ns.EH.getY()}} if(_3.width==null)_3.width=0;if(_3.height==null)_3.height=0;if(_4==null)_4="bottom";if(_5==null)_5=true;var _7=(_4=="bottom"||_4=="top");if(_7){if(_6=="inside-right")_6="right";if(_6!="right"&&_6!="outside-right"&&_6!="outside-left")_6="left"}else{if(_6=="inside-bottom")_6="bottom";if(_6!="bottom"&&_6!="outside-bottom"&&_6!="outside-top")_6="top"} var _8=_3.left;if(_7){if(_6=="right")_8+=(_3.width-_1);else if(_6=="outside-right")_8+=_3.width;else if(_6=="outside-left")_8-=_1}else{if(_4=="left")_8-=_1;else _8+=_3.width} var _9=_3.top;if(_7){if(_4=="top")_9-=_2;else _9+=_3.height}else{if(_6=="bottom")_9+=(_3.height-_2);else if(_6=="outside-bottom")_9+=_3.height;else if(_6=="outside-top")_9-=_2} var _10=isc.Page.getWidth(),_11=isc.Page.getHeight(),_12=isc.Page.getScrollLeft(true),_13=isc.Page.getScrollTop();var _14=_12-_8,_15=_8+_1-(_10+_12),_16=_13-_9,_17=_9+_2-(_11+_13);;if(_14<=0&&_15<=0&&_16<=0&&_17<=0){return[_8,_9]} if(_14>0){if(_4=="left"&&!_5){if(_3.left+_3.width<_12){_8=_12}else{_8=_3.left+_3.width}}else{_8=_12}}else if(_15>0){if(_4=="right"&&!_5){if((_3.left-_1)>=_12){if(_3.left>(_12+_10)) _8=(_12+_10)-_1;else _8=_3.left-_1}}else{if(_10<_1){_8=_12}else{_8=_12+_10-_1}}} if(_16>0){if(_4=="top"&&!_5){if(_3.top+_3.height<_13){_9=_13}else{_9=_3.top+_3.height}}else{_9=_13}}else if(_17>0){if(_4=="bottom"&&!_5){if((_3.top-_2)>=_13){if(_3.top>(_13+_11)) _9=(_13+_11)-_2;else _9=_3.top-_2}}else{if(_11<_2){_9=_13}else{_9=_13+_11-_2}}} return[_8,_9]},isc.A.$iy=function isc_c_Canvas__handleUnload(){if(isc.Browser.isIE)this.$xt();var _1=isc.Log.logViewer;if(_1&&_1.logWindowLoaded()){_1._logWindow.openerUnloading();_1._logWindow=null}},isc.A.$xt=function isc_c_Canvas__clearDOMHandles(){var _1=this._canvasList;for(var i=0;i<_1.length;i++){var _3=_1[i];if(_3){if(_3.$q3){_3.$q3.eventProxy=null;_3.$q3=null}}} return true},isc.A.snapToEdge=function isc_c_Canvas_snapToEdge(_1,_2,_3,_4,_5){var _6,_7,_8;if(isc.isAn.Array(_1)){_7=false;_8=[_1[1],_1[0]];_6=[_1[2],_1[3]]}else if(_3.masterElement){_7=(_3.percentBox==_3.$520),_6=[_7?_1.getViewportWidth():_1.getVisibleWidth(),_7?_1.getViewportHeight():_1.getVisibleHeight()];_8=[_1.getTop()+(_7?(_1.getTopBorderSize()+_1.getTopMargin()):0),_1.getLeft()+(_7?(_1.getLeftBorderSize()+_1.getLeftMargin()):0)]}else if(isc.isA.Canvas(_5)){_7=(_3.percentBox==_3.$520),_6=[_7?_5.getViewportWidth():_5.getVisibleWidth(),_7?_5.getViewportHeight():_5.getVisibleHeight()];_8=[_5.getPageTop()+(_7?(_5.getTopBorderSize()+_5.getTopMargin()):0),_5.getPageLeft()+(_7?(_5.getLeftBorderSize()+_5.getLeftMargin()):0)]}else{_7=true;_6=[_1.getViewportWidth(),_1.getViewportHeight()];_8=[0,0]} var _9=isc.Canvas.$52c(_2,_8,_6,false);var _10=isc.Canvas.$52c((_4||_2),_9,[_3.getVisibleWidth(),_3.getVisibleHeight()],true);if(_3.snapOffsetLeft!=null)_10[1]+=_3.snapOffsetLeft;if(_3.snapOffsetTop!=null)_10[0]+=_3.snapOffsetTop;_3.moveTo(_10[1],_10[0]);_3.$jo=false},isc.A.$52c=function isc_c_Canvas__getSnapPoint(_1,_2,_3,_4){var _5=_3[0],_6=_3[1];var _7;if(_1=="TL")_7=[0,0];else if(_1=="T")_7=[0,_5/2];else if(_1=="TR")_7=[0,_5];else if(_1=="R")_7=[_6/2,_5];else if(_1=="BR")_7=[_6,_5];else if(_1=="B")_7=[_6,_5/2];else if(_1=="BL")_7=[_6,0];else if(_1=="L")_7=[_6/2,0];else if(_1=="C")_7=[_6/2,_5/2];else _7=[0,0];_7[0]=Math.floor(_7[0]);_7[1]=Math.floor(_7[1]);if(_4)return[_2[0]-_7[0],_2[1]-_7[1]];else return[_2[0]+_7[0],_2[1]+_7[1]]},isc.A.$112q=function isc_c_Canvas__getTopLevelWidget(_1){if(!_1){return null} var _2=isc.isAn.Array(_1)?_1:isc.getKeys(_1) var _3;for(var i=0;i<_2.length;i++){var _5=_2[i];var _6=window[_5];if(_6&&isc.isA.Canvas(_6)&&!_6.destroyed&&_6.parentElement==null&&_6.masterElement==null) {_3=_6}} return _3},isc.A.ariaEnabled=function isc_c_Canvas_ariaEnabled(){return false},isc.A.useLiteAria=function isc_c_Canvas_useLiteAria(){return false});isc.B._maxIndex=isc.C+52;isc.Canvas.registerStringMethods({resized:"deltaX,deltaY",showIf:"canvas",childRemoved:"child,name",peerRemoved:"peer,name",deparented:"oldParent,name",depeered:"oldMaster,name",parentMoved:"parent,deltaX,deltaY",moved:"deltaX,deltaY",focusChanged:"hasFocus",scrolled:"deltaX,deltaY",parentScrolled:"parent,deltaX,deltaY",hover:"",onDrop:"",visibilityChanged:"isVisible"});isc.Canvas.$yx=function(){var _1=isc.EH,_2={};for(var _3 in _1.eventTypes){this.registerStringMethods(_1.eventTypes[_3],_1.$i3);var _4=_1.eventTypes[_3];if(this.getInstanceProperty(_4)==null){_2[_4]=isc.Class.NO_OP}} this.addMethods(_2)} isc.Canvas.$yx();isc.defineClass("BackMask","Canvas");isc.A=isc.BackMask.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.autoDraw=false;isc.A.$lo=true;isc.A._generated=true;isc.A.useClipDiv=false;isc.A.hideUsingDisplayNone=isc.Browser.isMoz||(isc.Browser.isIPhone&&isc.Browser.iOSVersion>=7)||isc.Browser.isChrome;isc.A.overflow=isc.Canvas.HIDDEN;isc.A.contents="";isc.A.$ns=false;isc.A.$jo=false;isc.A.$jp=false;isc.A._redrawWithParent=false;isc.B.push(isc.A.masterMoved=function isc_BackMask_masterMoved(){this.masterElement.$qi()},isc.A.masterResized=function isc_BackMask_masterResized(){this.masterElement.$qi()},isc.A.draw=function isc_BackMask_draw(_1,_2,_3){if(this.suppressed)return this;if(!this.readyToDraw())return this;this.invokeSuper(isc.BackMask,this.$ny,_1,_2,_3);if(this.masterElement.overflow==isc.Canvas.VISIBLE)this.masterElement.$qi();return this},isc.A.show=function isc_BackMask_show(){if(!this.suppressed)this.invokeSuper(isc.BackMask,"show")});isc.B._maxIndex=isc.C+4;isc.defineClass("ScreenSpan","Canvas");isc.A=isc.ScreenSpan.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A._generated=true;isc.A.$94z=3200;isc.A.$940=2400;isc.A.src="[SKINIMG]/blank.gif";isc.A.redrawOnResize=false;isc.A.overflow="hidden";isc.B.push(isc.A.getInnerHTML=function isc_ScreenSpan_getInnerHTML(){if(!this.$yy){this.$yy=isc.Browser.isIE&&isc.Browser.version>6?isc.Canvas.imgHTML(this.src,this.$94z,this.$940):isc.Canvas.spacerHTML(this.$94z,this.$940)} return this.$yy},isc.A.hide=function isc_ScreenSpan_hide(_1,_2,_3,_4){isc.ScreenSpan.removeFromSpanRegistry(this);this.resizeTo(1,1);this.moveTo(null,-this.getHeight());return this.invokeSuper(isc.ScreenSpan,"hide",_1,_2,_3,_4)},isc.A.show=function isc_ScreenSpan_show(_1,_2,_3,_4){isc.ScreenSpan.addToSpanRegistry(this);this.fitToScreen();return this.invokeSuper(isc.ScreenSpan,"show",_1,_2,_3,_4)},isc.A.fitToScreen=function isc_ScreenSpan_fitToScreen(){var _1=Math.max(isc.Page.getWidth(null,true),isc.Page.getScrollWidth()),_2=Math.max(isc.Page.getHeight(null,true),isc.Page.getScrollHeight());this.resizeTo(_1,_2);if(_1>this.$94z||_2>this.$940){this.$94z=Math.max(_1,this.$94z);this.$940=Math.max(_2,this.$940);delete this.$yy;this.markForRedraw("Resizing spacer HTML to fit large page content.")} this.moveTo(0,0)});isc.B._maxIndex=isc.C+4;isc.A=isc.ScreenSpan;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.spanRegistry={};isc.B.push(isc.A.addToSpanRegistry=function isc_c_ScreenSpan_addToSpanRegistry(_1){this.spanRegistry[_1.getID()]=true;if(this.pageResizedEvent==null){this.pageResizedEvent=isc.Page.setEvent("resize",this,isc.Page.FIRE_ONCE,"pageResized")}},isc.A.removeFromSpanRegistry=function isc_c_ScreenSpan_removeFromSpanRegistry(_1){delete this.spanRegistry[_1.getID()];var _2=true;for(var i in this.spanRegistry){if(this.spanRegistry[i]){_2=false;break}} if(this.pageResizedEvent!=null&&_2){isc.Page.clearEvent("resize",this.pageResizedEvent);delete this.pageResizedEvent}},isc.A.pageResized=function isc_c_ScreenSpan_pageResized(){var _1=[];for(var _2 in this.spanRegistry){if(this.spanRegistry[_2]){var _3=window[_2];if(_3&&_3.isVisible()){_1.add(_3);_3.resizeTo(isc.Page.getWidth(null,true),isc.Page.getHeight(null,true))}}} _1.map("fitToScreen");this.pageResizedEvent=isc.Page.setEvent("resize",this,isc.Page.FIRE_ONCE,"pageResized")});isc.B._maxIndex=isc.C+3;isc.$yz={getForm:function(_1){if(_1&&typeof _1=="object")return _1;var _2;if(_1!=null&&isc.Browser.isDOM){_2=document.getElementById(_1)} if(_2!=null)return _2;if(_1==null)_1=0;if(_2==null)return document.forms[_1];return _2},getFormElementValue:function(_1,_2){var _3=this.getFormElement(_1,_2);if(!_3)return;switch(_3.type){case"radio":return(_3.checked?_3.value:null) case"checkbox":return _3.checked;case"select-one":if(!_3.options||_3.options.length==0)return null;var _4=_3.options[_3.selectedIndex];return _4.value;case"select-multiple":var _5=[];for(var i=0,_7=_3.options.length;i<_7;i++){var _4=_3.options[i];if(_4.selected) _5.add(_4.value)} return _5;case"button":case"reset":case"submit":return null;default:return _3.value}},getFormValues:function(_1){var _2=this.getForm(_1);if(!_2)return null;var _3={};if(!_2.elements){this.logWarn("Form '"+_1+"' contains no elements - returning empty map for data.");return{}} for(var i=0;i<_2.elements.length;i++){var _5=_2.elements[i];if(_5.name!=null){var _6=this.getFormElementValue(_2,_2.elements[i]);if(_6!=null)_3[_5.name]=_6}} return _3},getFormElement:function(_1,_2){if(typeof _2=="object")return _2;var _3=this.getForm(_1);if(_3)return _3.elements[_2];return null}};isc.Canvas.addClassMethods(isc.$yz) isc.Canvas.addMethods(isc.$yz) isc.setAutoDraw=function(_1){if(_1==null)_1=true;isc.Canvas.addProperties({autoDraw:_1})};isc.allowDuplicateStyles=true;isc.defineClass("PrintCanvas","Canvas");isc.A=isc.PrintCanvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.redrawOnResize=false;isc.A.overflow="hidden";isc.A.useExplicitHeight=isc.Browser.isSafari||(isc.Browser.isFirefox&&isc.Browser.isStrict&&isc.Browser.geckoVersion>=20100101);isc.A.printFrameURL="[HELPERS]printFrame.html";isc.B.push(isc.A.initWidget=function isc_PrintCanvas_initWidget(){this.Super("initWidget",arguments)},isc.A.resized=function isc_PrintCanvas_resized(){if(this.useExplicitHeight){var _1=this.getIFrameHandle();if(_1){_1.style.width=this.getInnerWidth();_1.style.height=this.getInnerHeight()}}},isc.A.getInnerHTML=function isc_PrintCanvas_getInnerHTML(){var _1="100%",_2="100%";if(this.useExplicitHeight){_1=this.getInnerWidth();_2=this.getInnerHeight()} return""},isc.A.getIFrameID=function isc_PrintCanvas_getIFrameID(){return this.getID()+"$55y"},isc.A.getPrintFrameURL=function isc_PrintCanvas_getPrintFrameURL(_1){return isc.Page.getURL(this.printFrameURL+"?id="+this.getID()+"&title="+(_1||""))},isc.A.getIFrameHandle=function isc_PrintCanvas_getIFrameHandle(){return document.getElementById(this.getIFrameID())},isc.A.getIFrameWindow=function isc_PrintCanvas_getIFrameWindow(){return this.getIFrameHandle().contentWindow},isc.A.iframeLoad=function isc_PrintCanvas_iframeLoad(){this.iframeLoaded=true;if(this.isRTL()){this.logInfo("Print preview - applying 'rtl' direction to print frame.","printing");var _1=this.getIFrameWindow().document.body;if(_1==null){this.logWarn("Print preview - unable to get 'body' tag for print frame. Right-to-left text direction cannot be guaranteed in this print preview.","printing")}else{_1.style.direction="rtl"}} if(isc.Browser.isIE){var _1=this.getIFrameWindow().document.body;if(_1)_1.style.overflow="auto"}},isc.A.setHTML=function isc_PrintCanvas_setHTML(_1,_2){if(!this.isDrawn()){this.$741={HTML:_1,callback:_2};return} if(!this.iframeLoaded){this.delayCall("setHTML",[_1,_2],100);return} if(this.externalStylesheet){var _3='\n';_1=_3+_1} var _4=this.getIFrameWindow();_4.assignHTML(_1);if(isc.Browser.isIE&&isc.Browser.hasVML&&_1.contains("class=rvml")){_4.document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)")} this.fireCallback(_2,["printPreview","callback"],[this,_2])},isc.A.draw=function isc_PrintCanvas_draw(){this.Super("draw",arguments);if(this.$741!=null){var _1=this.$741;this.$741=null;this.setHTML(_1.HTML,_1.callback)}},isc.A.setTitle=function isc_PrintCanvas_setTitle(_1){this.title=_1;if(!this.isDrawn()&&!this.iframeLoaded)return;delete this.iframeLoaded;if(this.isDrawn())this.redraw()},isc.A.printHTML=function isc_PrintCanvas_printHTML(_1,_2,_3){var _4=this;this.setTitle(_2);this.setHTML(_1,function(){_4.print()})},isc.A.print=function isc_PrintCanvas_print(){if(!this.isDrawn()){this.logWarn("print(): Attempt to print an undrawn PrintCanvas. Ignoring.");return} if(!this.iframeLoaded){this.delayCall("print",[],100);return} this.getIFrameWindow().doPrint()},isc.A.printComplete=function isc_PrintCanvas_printComplete(){});isc.B._maxIndex=isc.C+14;isc.A=isc.Canvas;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.printComponents=function isc_c_Canvas_printComponents(_1,_2,_3,_4){isc.Canvas.getPrintHTML(_1,_2,{target:this,methodName:"$57f",title:_3,debugOnly:_4})},isc.A.$57f=function isc_c_Canvas__printComponentHTML(_1,_2){var _3=_2.title,_4=_2.debugOnly;if(!this.$55z)this.$55z=isc.PrintCanvas.create({width:"100%",height:"100%",autoDraw:false,backgroundColor:"white"});this.$55z.moveTo(null,-isc.Page.getHeight());if(!this.$55z.isDrawn())this.$55z.draw();this.$55z.printHTML(_1,_3,_4)},isc.A.getPrintPreview=function isc_c_Canvas_getPrintPreview(_1,_2,_3,_4,_5){if(_3==null)_3={};_3.autoDraw=true;isc.Canvas.getPrintHTML(_1,_2,{target:this,methodName:"$57g",origCallback:_4,previewProperties:_3},_5)},isc.A.$57g=function isc_c_Canvas__createPrintPreview(_1,_2){var _3=isc.PrintCanvas.create(_2.previewProperties);_3.setHTML(_1,{target:this,methodName:"$57h",origCallback:_2.origCallback})},isc.A.$57h=function isc_c_Canvas__printPreviewGenerated(_1,_2){if(_2.origCallback){this.fireCallback(_2.origCallback,["printPreview"],[_1])}},isc.A.showPrintPreview=function isc_c_Canvas_showPrintPreview(_1,_2,_3,_4,_5){if(!isc.PrintWindow){isc.definePrintWindow()} if(!isc.PrintWindow)return;if(_3==null)_3={};_3.autoDraw=false;if(_3.width==null)_3.width="100%";if(_3.height==null)_3.height="100%";if(_3.left==null)_3.left=0;if(_3.top==null)_3.top=0;if(!this.$57i){this.$57i=isc.PrintWindow.create(_3)}else{this.$57i.setProperties(_3)} this.$57i.showPrintPreview(_1,_2,_4,_5)});isc.B._maxIndex=isc.C+6;isc.definePrintWindow=function(){if(!isc.Window){isc.logWarn("Attempting to create PrintWindow class with no defined Window class. Ensure the required 'Containers' module is laoded");return} isc.defineClass("PrintWindow","Window");isc.PrintWindow.addProperties({isModal:true,headerControls:["headerIcon","headerLabel","printButton","closeButton"],printButtonDefaults:{_constructor:"IButton",height:20,click:"this.creator.printClicked()"},showMinimizeButton:false,showShadow:false,title:"Print Preview",printButtonTitle:"Print",setPrintButtonTitle:function(_4){this.printButtonTitle=_4;if(this.printButton!=null)this.printButton.setTitle(_4)},initWidget:function(){if(isc.Browser.isAndroid){var _1=this.headerControls;if(_1!=null){_1=this.headerControls=_1.duplicate();_1.remove("printButton")}} this.Super("initWidget",arguments)},printButton_autoMaker:function(_4){_4=isc.addProperties({},_4,{title:this.printButtonTitle});return this.createAutoChild("printButton",_4)},showPrintPreview:function(_4,_5,_6,_7){if(!isc.isAn.Array(_4))_4=[_4];isc.Canvas.getPrintHTML(_4,_5,{target:this,methodName:"$57j",origCallback:_6},_7)},$57j:function(_4,_5){if(!this.previewPane){this.previewPane=this.createPreviewPane();this.previewPane.addProperties({title:this.title});this.addItem(this.previewPane)}else{this.previewPane.setTitle(this.title)} this.previewPane.externalStylesheet=this.externalStylesheet;this.setVisibility("hidden");if(!this.isDrawn())this.draw();this.previewPane.setHTML(_4,{target:this,methodName:"$57h",origCallback:_5.origCallback})},$57h:function(_4,_5){if(!this.isVisible())this.show();this.bringToFront();if(_5.origCallback){this.fireCallback(_5.origCallback,["printPreview","printWindow"],[_4,this])}},printClicked:function(){var _2=this.getPrintCanvas();if(!_2)return;_2.print()},createPreviewPane:function(_4){var _3=isc.PrintCanvas.create({width:"100%",height:"100%"});return _3},getPrintCanvas:function(){return this.previewPane},closeClick:function(){this.Super("closeClick",arguments);this.clear()}})} isc.A=isc.Canvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.drawRect=function isc_Canvas_drawRect(_1,_2,_3,_4,_5,_6,_7,_8){if(!this.$pz)this.$pz=[];this.$pz.add(isc.DrawRegion.getRectHTML(this,_1,_2,_3,_4,_6,_7,_8,_5))},isc.A.$py=function isc_Canvas__clearRectInfo(){delete this.$qh;delete this.$pz});isc.B._maxIndex=isc.C+2;isc.A=isc.Canvas;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.getRectHTML=function isc_c_Canvas_getRectHTML(_1,_2,_3,_4,_5,_6,_7,_8,_9){if(_2==null)_2=0;if(_3==null)_3=0;if(_4==null)_4=1;if(_5==null)_5=1;if(!_6||_6==isc.emptyString)_6=isc.nbsp;if(!this.$xr){this.$xr=["
",,"
"]} if(!_1.$qh)_1.$qh=0;var _10=this.$xr;_10[1]=_7;_10[3]=_8;isc.$bk(_10,_2,5,6);isc.$bk(_10,_3,12,6);isc.$bk(_10,_4,19,5);isc.$bk(_10,_5,25,5);_10[31]=_1.getID();if(!_9)_9=_1.$qh++;if(isc.isA.Number(_9)&&_9<100000) isc.$bk(_10,_9,33,5);else _10[33]=_9;_10[39]=_6;return _10.join(isc.emptyString)});isc.B._maxIndex=isc.C+1;isc.Canvas.registerStringMethods({rectMouseOver:"element,ID,event",rectMouseOut:"element,ID,event",rectMouseMove:"element,ID,event",rectMouseDown:"element,ID,event",rectMouseUp:"element,ID,event",rectClick:"element,ID,event",rectDoubleClick:"element,ID,event",rectShowContextMenu:"element,ID,event",rectHover:"element,ID"});isc.ClassFactory.defineClass("DrawRegion","Canvas");isc.A=isc.DrawRegion.getPrototype();isc.A.useEventParts=true;isc.ClassFactory.defineInterface("DataBoundComponent");isc.A=isc.Canvas;isc.A.COPY="copy";isc.A.MOVE="move";isc.A.CLONE="clone";isc.A.validateFieldNames=false;isc.A.maxNumInvalidFieldNameWarnings=1;isc.A.$1026=0;isc.A=isc.Canvas;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$70l="/";isc.A.$605=".";isc.B.push(isc.A.$1027=function isc_c_Canvas__validateFieldNames(_1,_2){var _3=isc.isAn.Instance(_2)&&_2.getClass().isA(isc.DynamicForm),i,_5,_6;for(i=0;i<_1.length;i++){_5=_1[i];var _7=((_3&&_5.shouldSaveValue===false&&_5.name==null)||String.isValidID(_5.name));if(!_7&&isc.Canvas.$1026++0;i--){if(isc.isAn.emptyObject(_15[i])){delete _15[i-1][_14[i-1]]}}}}else{if(_1=="get"){if(_3!=null&&_3.type!=null){var _18=isc.SimpleType.getType(_3.type);if(_18&&_18.getAtomicValue&&_4[_2]!==_16) {return _18.getAtomicValue(_4[_2],_10)}} return _4[_2]}else if(_1=="clear"){delete _4[_2]}else if(_1=="save"){if(_3!=null&&_3.type!=null){var _18=isc.SimpleType.getType(_3.type);if(_18&&_18.updateAtomicValue){var _19=_18.updateAtomicValue(_7,_4[_2],_10);if(_19!=null)return _19}} _4[_2]=_7}}},isc.A.deriveImplicitArrayEntry=function isc_c_Canvas_deriveImplicitArrayEntry(_1,_2,_3,_4,_5,_6,_7,_8){return 0},isc.A.$70m=function isc_c_Canvas__clearFieldValue(_1,_2,_3,_4){var _5=_1;if(isc.isAn.Object(_1)&&!isc.isA.Date(_1)){_5=this.$923(_1,_3)}else{_1=null} this.$833("clear",_5,_1,_2,_3,_4,null,false)},isc.A.$70n=function isc_c_Canvas__saveFieldValue(_1,_2,_3,_4,_5,_6,_7){if(_1==null&&_2!=null)_1=this.$923(_2,_5);this.$833("save",_1,_2,_4,_5,_6,_3,false,null,_7);return _4},isc.A.$923=function isc_c_Canvas__getDataPathFromField(_1,_2){var _3;if(_1.dataPath){_3=_1.dataPath;if(_2){_3=this.$840(_1.dataPath,_2)}}else{_3=_1.name} return _3},isc.A.$70o=function isc_c_Canvas__getFieldValue(_1,_2,_3,_4,_5,_6){if(_1==null&&_2!=null)_1=this.$923(_2,_4);return this.$833("get",_1,_2,_3,_4,_5,null,false,null,_6)},isc.A.$840=function isc_c_Canvas__trimDataPath(_1,_2){if(!_1)return _1;var _3=_1.trim(isc.Canvas.$70l);if(!_3.contains(isc.Canvas.$70l))return _1;var _4=_2.getFullDataPath();if(_4==null||_4=="")return _3;_4=_4.trim(isc.Canvas.$70l);var _5=_4.split(isc.Canvas.$70l);var _6=_3.split(isc.Canvas.$70l);for(var i=0;i<_5.length;i++){if(_5[i]!=_6[i]){break}} if(i==0)return _1;var _8="";for(var j=i;j<_6.length;j++){_8+=_6[j];_8+="/"} return _8.substring(0,_8.length-1)},isc.A.$702=function isc_c_Canvas__combineDataPaths(_1,_2){if(_1==null&&_2==null)return null;if(isc.isA.String(_2)&&_2.startsWith(this.$70l))return _2;if(_1==null)return""+_2;if(_2==null)return _1+"";if(isc.isA.String(_1)&&_1.endsWith(this.$70l)){return _1+_2}else{return _1+this.$70l+_2}},isc.A.$91f=function isc_c_Canvas__duplicateValues(_1,_2,_3,_4){var _5=_1.getDataSource();this.$91g(_1,_3,_2,_5,null,_4)},isc.A.$91g=function isc_c_Canvas__cloneComponentValues(_1,_2,_3,_4,_5,_6,_7){if(_3==null)return;var _8=(_6!=null);var _9=_4?_4.deepCloneOnEdit:null;if(_9==null)_9=_1.deepCloneOnEdit;var _10=_9==null?(isc.DataSource?isc.DataSource.deepCloneOnEdit:_9):_9;if(isc.isAn.Array(_3)){for(var i=0;i<_3.length;i++){var _12=_3[i];if(isc.isA.Function(_12))continue;if(isc.isAn.Instance(_3[_15])||isc.isA.Class(_3[_15]))continue;if(_12==null||isc.isA.String(_12)||isc.isA.Boolean(_12)||isc.isA.Number(_12)) {_2[_2.length]=_12}else if(isc.isA.Date(_12)){_2[_2.length]=new Date(_12.getTime())}else if(isc.isAn.Object(_12)){var _13;if(isc.isAn.Array(_12)){_13=_2[_2.length]=[]}else{_13=_2[_2.length]={}} this.$91g(_1,_13,_12,_4,(_8?_5:null),_6)}} return} if(_3.$42c!=null){_3=isc.JSONEncoder.$42b(_3)} var _14={__ref:true,__module:true};if(isc.DataSource&&isc.DataSource.cloneValuesSafely){if(!_7)_7=[];if(_7.contains(_3)){_2=_3;return} _7.add(_3)} for(var _15 in _3){if(isc.isA.Function(_3[_15]))continue;if(_14[_15]==true)continue;if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_3[_15]))continue;if(isc.isAn.Instance(_3[_15])||isc.isA.Class(_3[_15]))continue;var _16;if(_8){if(_5){_16=_5+_15}else{_16=_15} var _17;if(_1.getItem)_17=_1.getItem(_16);if(_17&&_17.isSetToDefaultValue()){_6.add(_16)}} var _18=_3[_15];if(isc.isA.Date(_18)){_2[_15]=_18.duplicate()}else if(isc.isAn.Object(_18)&&!isc.isAn.Array(_18)){var _19=_4?_4.getField(_15):null;if(!_19){_2[_15]=_3[_15]}else{var _20=isc.SimpleType.getType(_19.type);if(_20&&_20.duplicate){_2[_15]=_20.duplicate(_3[_15])}else if(_19.deepCloneOnEdit==true||(_19.deepCloneOnEdit==null&&_10)) {if(isc.DataSource&&isc.DataSource.cloneValuesSafely){if(_7.contains(_18)){_2[_15]=_3[_15];continue} _7.add(_18)} _2[_15]={};this.$91g(_1,_2[_15],_18,isc.DataSource?isc.DataSource.get(_19.type):null,_8?(_16+isc.Canvas.$70l):null,_6,_7)}else{_2[_15]=_3[_15]}}}else if(isc.isAn.Array(_18)){var _19=_4?_4.getField(_15):null;if(!_19){_2[_15]=_3[_15]}else{var _20=isc.SimpleType.getType(_19.type);if(_20&&_20.duplicate){var _21=[];for(var i=0;i<_2[_15];i<_2[_15].length){_21[i]=_20.duplicate(_2[_15][i])}}else if(_19.deepCloneOnEdit==true||(_19.deepCloneOnEdit==null&&_10)) {if(isc.DataSource&&isc.DataSource.cloneValuesSafely){if(_7.contains(_18)){_2[_15]=_3[_15];continue} _7.add(_18)} _2[_15]=[];this.$91g(_1,_2[_15],_18,isc.DataSource?isc.DataSource.get(_19.type):null,_8?(_16+isc.Canvas.$70l):null,_6,_7)}else{_2[_15]=_3[_15]}}}else{_2[_15]=_3[_15]}}},isc.A.evalViewState=function isc_c_Canvas_evalViewState(_1,_2,_3,_4){if(isc.isA.String(_1)){var _5=_1;try{_1=isc.eval(_1)}catch(e){if(!_3){var _6="Unable to parse "+_2+" object passed in: "+isc.Log.echo(_5)+" Ignoring." if(!_4||_4.logWarn==null){if(_4)_6+=" [target:"+isc.Log.echo(_4)+"]";this.logWarn(_6)}else{_4.logWarn(_6)}} return}} return _1},isc.A.getNumberValueAsString=function isc_c_Canvas_getNumberValueAsString(_1,_2,_3,_4){if(!isc.isA.Number(_1)){if(_4){return null} _1=isc.DataSource.$93o(_3)} if(!isc.isA.Number(_2)||_2<=0){_2=null} if(_2!=null){_2=this.$111l(_2,1,21,"precision");return isc.NumberUtil.$109c(_1.toPrecision(_2))}else{return isc.DataSource.$93p(_1,_3)}},isc.A.getFloatValueAsString=function isc_c_Canvas_getFloatValueAsString(_1,_2,_3,_4){if(!isc.isA.Number(_1)){if(_4){return null} _1=isc.DataSource.$93o("float")} if(!isc.isA.Number(_2)||_2<0){_2=null} if(!isc.isA.Number(_3)||_3<0){_3=null} if(_2!=null&&_3!=null){if(_2<_3){_3=_2} _2=null} if(_3!=null){_3=this.$111l(_3,0,20,"decimalPad");return _1.toFixed(_3)}else if(_2!=null){var _5=Math.pow(10,_2);var _6=Math.round(_1*_5)/_5;return isc.DataSource.$93p(_6,"float")}else{return isc.DataSource.$93p(_1,"float")}},isc.A.$111l=function isc_c_Canvas__filterFieldValueAndWarn(_1,_2,_3,_4){var _5;if(_1<_2)_5=_2;else if(_1>_3)_5=_3;else return _1;this.logWarn("Ignoring invalid value "+_1+" for "+_4);return _5});isc.B._maxIndex=isc.C+16;isc.A=isc.Canvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.showComplexFields=true;isc.A.exportIncludeSummaries=true;isc.A.ignoreEmptyCriteria=true;isc.A.dragRecategorize="checked";isc.A.duplicateDragMessage="Duplicates not allowed";isc.A.showOfflineMessage=true;isc.A.offlineMessage="This data not available while offline";isc.A.offlineMessageStyle="offlineMessage";isc.A.offlineSaveMessage="Data cannot be saved because you are not online";isc.A.addDropValues=true;isc.A.fieldIdProperty="name";isc.A.dataArity="multiple";isc.A.autoTrackSelection=true;isc.A.$308={date:true,DateItem:true};isc.A.$1007="canEdit";isc.A.applyLengthValidators=true;isc.A.canEditTitles=false;isc.A.$301="false;";isc.A.$18r="false";isc.A.$18q="true";isc.A.styleOpposite="cellHiliteOpposite";isc.A.canEditHilites=false;isc.A.hiliteIcons=["[SKINIMG]/Dialog/notify.png","[SKINIMG]/Dialog/warn.png","[SKINIMG]/actions/approve.png"];isc.A.hiliteIconPosition="before";isc.A.hiliteIconSize=12;isc.A.hiliteIconLeftPadding=2;isc.A.hiliteIconRightPadding=2;isc.A.hiliteProperty="_hilite";isc.A.hiliteMarker="$63i";isc.A.$578=0;isc.A.$144i="nonSummaryAffecting";isc.A.$144j="simpleSummaryAffecting";isc.A.$144k="summaryDependentSummaryAffecting";isc.A.fieldNamingStrategy="simple";isc.A.fieldNameGenerator={};isc.A.$579=[];isc.A.editHilitesText="Edit Highlights...";isc.A.editHilitesDialogTitle="Edit Highlights";isc.A.hiliteWindowConstructor="Window";isc.A.hiliteWindowDefaults={autoDraw:false,autoParent:"none",height:400,width:875,autoCenter:true,overflow:"visible",canDragResize:true,keepInParentRect:true,isModal:true,showModalMask:true,bodyProperties:{layoutMargin:8,membersMargin:8,overflow:"visible"},closeClick:function(){this.hide()}};isc.A.fieldEditorWindowTitle="${builderType} Editor [${fieldTitle}]";isc.A.fieldEditorWindowConstructor="Window";isc.A.fieldEditorWindowDefaults={keepInParentRect:true,showMinimizeButton:false,showMaximizeButton:false,autoDraw:false,isModal:true,showModalMask:true,width:400,height:400,overflow:"visible",autoCenter:true,bodyProperties:{overflow:"visible"},canDragResize:true,headerIconProperties:{padding:1,src:"[SKINIMG]ListGrid/formula_menuItem.png"},closeClick:function(){this.items.get(0).completeEditing(true);return this.Super('closeClick',arguments)}};isc.A.hiliteEditorConstructor="HiliteEditor";isc.A.hiliteEditorDefaults={autoDraw:false,autoParent:"none",callback:function(_1){var _2=this.creator;if(_1!=null)_2.$1024(_1);_2.hiliteWindow.hide()}};isc.A.dragDataAction=isc.Canvas.MOVE;isc.A.dragTrackerStyle="gridDragTracker";isc.A.canExport=true;isc.A.canPrint=true;isc.A.panelControls=["action:edit","action:editNew","action:sort","action:export","action:print"];isc.A.dbcProperties=["autoFetchData","autoFetchTextMatchStyle","autoFetchAsFilter","dataSource"];isc.A.badFormulaResultValue=".";isc.A.missingSummaryFieldValue="-";isc.A.missingFormulaFieldValue="-";isc.A.canAddFormulaFields=false;isc.A.addFormulaFieldText="Add formula column...";isc.A.editFormulaFieldText="Edit formula...";isc.A.removeFormulaFieldText="Remove formula";isc.A.$132l=0;isc.A.canAddSummaryFields=false;isc.A.addSummaryFieldText="Add summary column...";isc.A.editSummaryFieldText="Edit summary format...";isc.A.removeSummaryFieldText="Remove summary column..";isc.A.includeHilitesInSummaryFields=true;isc.A.exportDataChunkSize=50;isc.A.exportWidthScale=0.12;isc.A.emptyExportMessage="You are attempting to export an empty dataset";isc.A.defaultExportAs="csv";isc.A.defaultExportFilename="export";isc.A.defaultExportDisplay="download";isc.A.unknownErrorMessage="Invalid value";isc.A.$685=["isInteger","isFloat","isBoolean","isString"];isc.A.$746="partial";isc.A.$75a={};isc.A.$75b=null;isc.B.push(isc.A.$122r=function isc_Canvas__resolveEmptyDisplayValue(_1){var _2=_1.emptyCellValue;if(_2==null)_2=_1.emptyDisplayValue;if(_2==null)_2=this.emptyCellValue;return _2},isc.A.setFetchOperation=function isc_Canvas_setFetchOperation(_1){this.fetchOperation=_1;if(this.$114v)this.$114v()},isc.A.setUpdateOperation=function isc_Canvas_setUpdateOperation(_1){this.updateOperation=_1;if(this.$114v)this.$114v()},isc.A.setAddOperation=function isc_Canvas_setAddOperation(_1){this.addOperation=_1;if(this.$114v)this.$114v()},isc.A.setRemoveOperation=function isc_Canvas_setRemoveOperation(_1){this.removeOperation=_1;if(this.$114v)this.$114v()},isc.A.setProgressiveLoading=function isc_Canvas_setProgressiveLoading(_1){this.progressiveLoading=_1;if((isc.ResultSet&&isc.isA.ResultSet(this.data))||(isc.ResultTree&&isc.isA.ResultTree(this.data))) {this.data.progressiveLoading=_1}},isc.A.setValuesManager=function isc_Canvas_setValuesManager(_1){if(_1)_1.addMember(this)},isc.A.initializeValuesManager=function isc_Canvas_initializeValuesManager(){var _1=this.valuesManager;delete this.valuesManager;if(_1!=null){if(isc.ValuesManager==null){this.logWarn("Widget initialized with specified 'valuesManager' property but ValuesManager class is not loaded. This functionality requires the Forms module.");return} if(isc.isA.ValuesManager(_1)){_1.addMember(this)}else if(isc.isA.ValuesManager(window[_1])){window[_1].addMember(this)}else if(isc.isA.String(_1)){isc.ValuesManager.create({ID:_1,dataSource:this.dataSource,members:[this]})}else{this.logWarn("Widget initialized with invalid 'valuesManager' property:"+isc.Log.echo(_1)+", clearing this property out")}}},isc.A.setDataPath=function isc_Canvas_setDataPath(_1){this.dataPath=_1;if(this.getFields==null||this.getFields()==null)return;if(_1==null){delete this.$704;if(this.valuesManager&&this.$703){this.valuesManager.removeMember(this);delete this.$703} return} var _2;var _3=this;while(_3&&(!_3.valuesManager||_3.$703)&&!_3.dataSource) {if(_3.dataPath){if(_2){_2=isc.Canvas.$702(_3.dataPath,_2)}else{_2=_3.dataPath}} _3=_3.parentElement} this.$704=_2;if(_3){if(_3!=this||!this.dataSource){if(_3.valuesManager==null){_3.createDefaultValuesManager()} var _4=isc.isA.DynamicForm(this)?this.$834:this.getFields();_4=_4||this.getFields();if(_3.valuesManager.getDataSource()){var _5=_3.valuesManager.getDataSource(),_1=this.$704;if(_1){_5=_5.getDataSourceForDataPath(_1,true)} this.setDataSource(_5,_4)} _3.valuesManager.addMember(this,true)}}},isc.A.getFullDataPath=function isc_Canvas_getFullDataPath(){var _1=this.$704||this.dataPath;if(!_1&&this.masterElement){return this.masterElement.$704||this.masterElement.dataPath} return _1},isc.A.buildFieldDataPath=function isc_Canvas_buildFieldDataPath(_1,_2){var _3=_2.dataPath||_2.name;if(_1!=null){_3=isc.Canvas.$702(_1,_3)} return!_3?null:_3.replace(/^\/*/,"")},isc.A.createDefaultValuesManager=function isc_Canvas_createDefaultValuesManager(_1){if(!_1)_1=[];_1.add(this);isc.ValuesManager.create({members:_1,ID:this.getID()+"$705",dataSource:this.dataSource})},isc.A.$840=function isc_Canvas__trimDataPath(_1){return isc.Canvas.$840(_1,this)},isc.A.getDataPathField=function isc_Canvas_getDataPathField(_1){if(!_1)return null;var _2;if(this.valuesManager&&this.valuesManager.getDataSource){_2=this.valuesManager.getDataSource()}else if(this.grid&&this.grid.valuesManager&&this.grid.valuesManager.getDataSource){_2=this.grid.valuesManager.getDataSource()}else{_2=this.getDataSource()} var _3=_1.split(isc.slash),_4;if(!_2)return;for(var i=0;i<_3.length;i++){var _6=_3[i],_7=_2.getField(_6);_2=_7?(_2.getSchema(_7.type)||_2):_2;if(_7==null){this.logWarn("Unable to find dataSource field matching specified dataPath: '"+_1+"'");return}} return _7},isc.A.registerWithDataView=function isc_Canvas_registerWithDataView(_1){if(!this.inputDataPath)return;_1=this.parentElement;while(_1&&!isc.isA.DataView(_1))_1=_1.parentElement;if(!_1){this.logWarn("Component initialized with an inputDataPath property, but no DataView was found in the parent hierarchy. inputDataPath is only applicable to DataBoundComponents and FormItems being managed by a DataView");return} _1.registerItem(this)},isc.A.bindToDataSource=function isc_Canvas_bindToDataSource(_1,_2){if(this.dataPath)this.setDataPath(this.dataPath);if(this.dataSource==null&&this.data!=null)this.dataSource=this.data.dataSource;var _3=this.fields||this.items;if(isc.isAn.Array(_3))this.originalFields=_3.duplicate();var _4=this.getDataSource();if(_4==null&&this.valuesManager&&this.valuesManager.getDataSource){_4=this.valuesManager.getDataSource()} if(_4!=null&&isc.isA.String(_4)){this.logWarn("unable to look up DataSource: "+_4+", databinding will not be used");return _1} var _5=(_1==null||_1.length==0),_6;if(_4){var _7=this.useFlatFields;if(_7==null)_7=_4.useFlatFields;_6=_7?_4.getFlattenedFields():_4.getFields()} if(!_5&&isc.Canvas.validateFieldNames){isc.Canvas.$1027(_1,this)} if(_4==null||_6==null){if(_1!=null&&isc.SimpleType){for(var i=0;i<_1.length;i++){if(_1[i]==null)continue;if(_1[i].type==null&&this.$308[_1[i].editorType]==true) {_1[i].type="date"} if(_1[i].type==null){var _9=null;if(_1[i]._constructor&&isc[_1[i]._constructor]){_9=_1[i]._constructor} if(_1[i].editorType&&isc[_1[i].editorType]){_9=_1[i].editorType} if(_9&&isc[_9]&&isc[_9].getInstanceProperty){if(_1[i].valueMap||_1[i].editorValueMap)_1[i].type="text";else _1[i].type=isc[_9].getInstanceProperty("type")}} isc.SimpleType.addTypeDefaults(_1[i]);if(_1[i].type){var _10=isc.SimpleType.getType(_1[i].type);if(_10&&_10.fieldProperties){_1[i]=isc.addProperties({},_10.fieldProperties,_1[i])} if(!_1[i].format&&_10&&_10.format){_1[i].format=_10.format}}}} this.addFieldValidators(_1);return _1} if(this.doNotUseDefaultBinding)return[];if(_4!=null&&_5){if(this.suppressAllDSFields)return[];_1=[];for(var _11 in _6){var _12=_6[_11];if(!this.shouldUseField(_12,_4))continue;var _13=isc.addProperties({},_12) var _14=this.getDefaultCanEdit(_12);var _15;if(_14===_15){delete _13.canEdit}else{_13.canEdit=_14} if(_13.hidden)delete _13.hidden;_1.add(_13)} this.addFieldValidators(_1);return _1} if(_4!=null&&!_5){var _16={};for(var i=_1.length-1;i>=0;i--){var _12=_1[i];if(_12==null)continue;var _17=(_12.name!=null)?_4.getField(_12.name):null;if(_17&&_17.canView===false){this.logInfo("Dropping explicitly-named field "+_12.name+" because it is marked canView: false");_1.removeAt(i);continue} if(_12.type==null&&this.$308[_12.editorType]==true){var _18=_12.name;var _17=(_18!=null)?_4.getField(_18):null;if(_17==null||_17.type==null){_12.type="date"}} if(isc.SimpleType){isc.SimpleType.addTypeDefaults(_1[i]);var _19=_1[i].type;if(_19==null){var _17=(_12.name!=null)?_4.getField(_12.name):null;if(_17)_19=_17.type} if(_19){var _10=isc.SimpleType.getType(_19);if(_10&&_10.fieldProperties){_1[i]=isc.addProperties({},_10.fieldProperties,_1[i])}} _12=_1[i]} if(_17){var _14=_12.canEdit;if(_14==null){_14=this.getDefaultCanEdit(_17)}else{this.logDebug("DataBoundComponent respecting explicit 'canEdit' on target field "+_17.name,"canEditField")} _16[_12.name]=_14}else if(_12.includeFrom!=null){var _14=_12.canEdit;if((_14==null)&&(this.canEditIncludeFromFields()==false)){_14=false} _16[_12.includeFrom]=_14}else{_16[_12.name]=_12.canEdit} if(_12.type!=null){isc.SimpleType.addTypeDefaults(_12)}} if(this.useAllDataSourceFields||_2){var _20=this;var _21=_4.combineFieldOrders(_6,_1,function(_12,_4,_22){return _20.shouldUseField(_12,_4,_22)});for(var i=0;i<_21.length;i++){var _12=_21[i];if(!_1.containsProperty("name",_12.name)){if(_2&&_12.showIf==null){_12.showIf="return false"}}else{if(_12.includeFrom!=null&&_4.getField(_12.name)==null){this.$785(_12)}} var _14;if(_1.contains(_12)){_14=_12.includeFrom?_16[_12.includeFrom]:_16[_12.name]}else{_14=this.getDefaultCanEdit(_12)} var _15;if(_14===_15){delete _12.canEdit}else{_12.canEdit=_14}} this.addFieldValidators(_21);return _21}else{for(var i=0;i<_1.length;i++){var _12=_1[i];if(!_12)continue;_12=this.combineFieldData(_12);_12.canEdit=_12.includeFrom?_16[_12.includeFrom]:_16[_12.name];if(_12.canEdit==undefined){delete _12.canEdit}} this.addFieldValidators(_1);return _1}}},isc.A.getDefaultCanEdit=function isc_Canvas_getDefaultCanEdit(_1){var _2=this.canEditFieldAttribute;if(_2==null)_2="canEdit";var _3=_1[_2];if(_3==null){if(_1.canSave==false&&!this.$66m){_3=false}} this.logDebug("DataBoundComponent using canEditFieldAttribute:"+_2+" setting 'canEdit' to "+_3+" on target field "+_1.name,"canEditField");return _3},isc.A.canEditIncludeFromFields=function isc_Canvas_canEditIncludeFromFields(){var _1=this.canEditFieldAttribute;if(_1==null||_1==this.$1007){return false} return true},isc.A.combineFieldData=function isc_Canvas_combineFieldData(_1){var _2=this.getDataSource();if(this.getFullDataPath()||_1.dataPath){var _3=this.buildFieldDataPath(this.getFullDataPath(),_1);isc.DataSource.combineFieldData(_1,this.getDataPathField(_3));return _1}else if(_2!=null&&_2.getField(_1.name)){return _2.combineFieldData(_1)}else if(_1.includeFrom!=null){return this.$785(_1)} return _1},isc.A.$785=function isc_Canvas__combineIncludeFromFieldData(_1){var _2=_1.includeFrom.split(".");if(_2==null||_2.length!=2){this.logWarn("This component includes a field with includeFrom set to:"+_1.includeFrom+". Format not understood.")}else{var _3=isc.DataSource.get(_2[0]),_4=_2[1];if(_3==null){this.logWarn("Field specifies includeFrom:"+_1.includeFrom+". Unable to find dataSource with ID:"+_2[0])}else{if(_1.name==null)_1.name=_4;return _3.combineFieldData(_1,_3.getField(_4))}}},isc.A.shouldUseField=function isc_Canvas_shouldUseField(_1,_2,_3){if(_1.canView===false)return false;if(_2&&!_3&&!this.showHiddenFields){if(_1.hidden)return false} if(_1.canFilter==false&&this.showFilterFieldsOnly){return false} if(_1.detail&&!this.showDetailFields)return false;if(!this.showComplexFields&&_2.fieldIsComplexType(_1.name))return false;return true},isc.A.addFieldValidators=function isc_Canvas_addFieldValidators(_1){if(_1==null)return;for(var i=0;i<_1.length;i++){var _3=_1[i];if(_3.validators!=null)_3.validators=_3.validators.duplicate();if(_3.required){var _4=this.getRequiredValidator(_3),_5=_4.errorMessage;if(!_3.validators){_3.validators=[_4]}else{if(!isc.isAn.Array(_3.validators)){_3.validators=[_3.validators]} if(!_3.validators.containsProperty("type",_4.type)&&!_3.validators.containsProperty("_constructor",_4.type)) {if(_3.validators.$69){_3.validators=_3.validators.duplicate()} _3.validators.add(_4)}else if(_5!=null){var _6=this.getDataSource(),v=(_3.validators.find("type",_4.type)||_3.validators.find("_constructor",_4.type));if(v.errorMessage==null||(_6&&v.errorMessage==_6.requiredMessage)){v.errorMessage=_5}}}}else if(_3.required==false){var _8=_3.validators;if(_3.validators!=null){var _9=_3.validators.findIndex("type","required");if(_9!=-1){_3.validators.removeAt(_9)}}} if(this.applyLengthValidators&&_3.length!=null){var _4=this.getMaxLengthValidator(_3);if(!_3.validators){_3.validators=[_4]}else{if(!isc.isAn.Array(_3.validators)){_3.validators=[_3.validators]} var _10=false;for(var _11=0;_11<_3.validators.length;_11++){var _12=_3.validators[_11];if((_12.type==_4.type||_12._constructor==_4.type)&&_12.max!=null&&_12.max<=_4.max) {_10=true;break}} if(!_10){_3.validators.add(_4)}}} if(_3.multiple&&_3.validateEachItem==null)_3.validateEachItem=true}},isc.A.getRequiredValidator=function isc_Canvas_getRequiredValidator(_1){var _2={type:"required"},_3=_1.requiredMessage||this.requiredMessage;if(_3!=null)_2.errorMessage=_3;return _2},isc.A.getMaxLengthValidator=function isc_Canvas_getMaxLengthValidator(_1){var _2={type:"lengthRange",max:_1.length} return _2},isc.A.getAllFields=function isc_Canvas_getAllFields(){return this.completeFields||this.fields},isc.A.getField=function isc_Canvas_getField(_1){if(!this.fields)return null;return isc.Class.getArrayItem(_1,this.fields,this.fieldIdProperty)},isc.A.getUnderlyingField=function isc_Canvas_getUnderlyingField(_1){if(!this.fields&&!this.completeFields&&!this.dataSource){this.logWarn("fields and completeFields are null and there is no DataSource");return null} var _2=null;if(this.fields){_2=this.getField(_1)} if(!_2&&this.completeFields){_2=isc.Class.getArrayItem(_1,this.completeFields,this.fieldIdProperty)} if(!_2&&this.dataSource){if(!isc.isA.DataSource(this.dataSource))this.dataSource=this.getDataSource(this.dataSource);_2=this.dataSource.getField(_1)} return _2},isc.A.getFieldNum=function isc_Canvas_getFieldNum(_1){if(!this.fields)return-1;if(isc.isA.Object(_1)&&(_1[this.fieldIdProperty]!=null)){_1=_1[this.fieldIdProperty]} return isc.Class.getArrayItemIndex(_1,this.fields,this.fieldIdProperty)},isc.A.isXMLRequired=function isc_Canvas_isXMLRequired(_1){if(!_1||!this.useXMLRequired||!_1.xmlRequired)return false;if(!_1.dataPath)return true;var _2=this.getDataSource();if(!_2)return true;var _3=_1.dataPath.split(isc.slash),_1;for(var i=0;i<_3.length;i++){var _5=_3[i];if(!_2)return true;_1=_2.getField(_5);if(!_1)return true;if(_1.xmlMinOccurs!=null&&_1.xmlMinOccurs<1){return false} _2=_2.getSchema(_1.type)} return true},isc.A.evalViewState=function isc_Canvas_evalViewState(_1,_2,_3){return isc.Canvas.evalViewState(_1,_2,_3,this)},isc.A.shouldIncludeTitleInFieldState=function isc_Canvas_shouldIncludeTitleInFieldState(){return this.canEditTitles},isc.A.getFieldState=function isc_Canvas_getFieldState(_1){var _2=this.shouldIncludeTitleInFieldState();var _3=[];var _4=this.getAllFields();if(_4){for(var i=0;i<_4.length;i++){var _6=_4[i];if(!_6||_6.excludeFromState)continue;var _7=_6[this.fieldIdProperty],_8=this.getStateForField(_7,_2);_3.add(_8)}} if(_1)return _3;return isc.Comm.serialize(_3,false)},isc.A.getStateForField=function isc_Canvas_getStateForField(_1,_2){var _3=this.getAllFields().find(this.fieldIdProperty,_1),_4={name:_1};if(!_3)return null;if(_3.frozen==true)_4.frozen=true;if(!this.fieldShouldBeVisible(_3,this.getFieldNum(_1)))_4.visible=false;if(_3.userFormula){_4.userFormula=_3.userFormula;_4.type=_3.type} if(_3.userSummary)_4.userSummary=_3.userSummary;if(_2||_3.userSummary||_3.userFormula){_4.title=_3.title} var _5;if(_3.autoFitWidth!==_5)_4.autoFitWidth=_3.autoFitWidth;if(_3.precision!==_5)_4.precision=_3.precision;if(_3.decimalPrecision!==_5)_4.decimalPrecision=_3.decimalPrecision;if(_3.decimalPad!==_5)_4.decimalPad=_3.decimalPad;if(this.getSpecifiedFieldWidth){var _6=this.getSpecifiedFieldWidth(_3);if(_6!=null)_4.width=_6} return _4},isc.A.$31y=function isc_Canvas__setFieldState(_1,_2){if(_1==null)return this.getAllFields();var _3=this.getAllFields();var _4=_3.getProperty(this.fieldIdProperty),_5=[];for(var i=0;i<_1.length;i++){var _7=_1[i],_8=_3.find(this.fieldIdProperty,_7.name);if(_8==null){if(_7.userFormula||_7.userSummary){_8={};_8[this.fieldIdProperty]=_7.name}else continue} _4.remove(_7.name);if(_7.visible==false){_8.showIf=this.$18r;_8.hidden=true}else{_8.showIf=null;_8.detail=false;_8.hidden=false} if(_7.width!=null&&(!isNaN(_7.width)||_7.width=="*"))_8.width=_7.width;_8.frozen=_7.frozen;var _9;if(_7.title)_8.title=_7.title;if(_7.userFormula!=null)_8.userFormula=_7.userFormula;if(_7.userSummary!=null)_8.userSummary=_7.userSummary;if(_7.type!=null)_8.type=_7.type;if(_7.autoFitWidth!==_9&&_7.autoFitWidth!=_8.autoFitWidth)_8.autoFitWidth=_7.autoFitWidth;if(_7.precision!==_9&&_7.precision!=_8.precision)_8.precision=_7.precision;if(_7.decimalPrecision!==_9&&_7.decimalPrecision!=_8.decimalPrecision)_8.decimalPrecision=_7.decimalPrecision;if(_7.decimalPad!==_9&&_7.decimalPad!=_8.decimalPad)_8.decimalPad=_7.decimalPad;_5.add(_8)} var _10=this.defaultFieldState;if(_10!=null)_10=this.evalViewState(_10,"fieldState");for(var i=0;i<_4.length;i++){var _11=_4[i],_12=_3.findIndex(this.fieldIdProperty,_11),_8=_3[_12],_13=_3[_12-1];var _14=_10?_10.find("name",_11):null;if(_14!=null){var _15=_14.visible==false;if(_15){_8.showIf=this.$18r}else{_8.showIf=null;_8.detail=false} if(_14.width!=null&&(!isNaN(_14.width)||_14.width=="*")) {_8.width=_14.width} _8.frozen=_14.frozen;if(_14.title)_8.title=_14.title;if(_14.userFormula!=null)_8.userFormula=_14.userFormula;if(_14.userSummary!=null)_8.userSummary=_14.userSummary;if(_14.autoFitWidth!=_8.autoFitWidth)_8.autoFitWidth=_14.autoFitWidth} if(_13!=null){var _16=_5.indexOf(_13);if(_16!=-1){_5.addAt(_8,_16+1);continue}} if(this.fieldShouldBeVisible(_8,_12)&&!_2){_5.addAt(_8,this.$31z(_5)+1)}else{_5.add(_8)}} return _5},isc.A.fieldStateChanged=function isc_Canvas_fieldStateChanged(){},isc.A.$31z=function isc_Canvas__lastVisibleFieldIndex(_1){if(_1==null)_1=this.completeFields;var _2=this.getVisibleFields(_1);if(_2.length==0)return-1;return _1.lastIndexOf(_2.last())},isc.A.getVisibleFields=function isc_Canvas_getVisibleFields(_1){var _2=[];for(var i=0;i<_1.length;i++){var _4=_1[i];if(_4==null)continue;if(this.fieldShouldBeVisible(_4,i))_2.add(_4)} return _2},isc.A.fieldShouldBeVisible=function isc_Canvas_fieldShouldBeVisible(_1,_2){if(_1.showIf!=null){if(_1.showIf==this.$18r||_1.showIf==this.$301)return false;if(_1.showIf==this.$18q)return true;isc.Func.replaceWithMethod(_1,"showIf","list,field,fieldNum");if(!_1.showIf(this,_1,_2))return false}else if((this.fields!=null||!this.showHiddenFields)&&_1.hidden){return false} return true},isc.A.setFieldValueMap=function isc_Canvas_setFieldValueMap(_1,_2){if(!isc.isAn.Object(_1))_1=this.getField(_1);if(!_1)return;_1.valueMap=_2},isc.A.find=function isc_Canvas_find(_1){return this.data.find(_1)},isc.A.findAll=function isc_Canvas_findAll(_1){return this.data.findAll(_1)},isc.A.findIndex=function isc_Canvas_findIndex(_1){return this.data.findIndex(_1)},isc.A.findNextIndex=function isc_Canvas_findNextIndex(_1,_2,_3){return this.data.findNextIndex(_1,_2,null,_3)},isc.A.setDataSource=function isc_Canvas_setDataSource(_1,_2){if(isc.$cv)arguments.$cw=this;this.dataSource=_1||this.dataSource;if(this.setFields)this.setFields(_2);if(this.dataSource){if(this.isA("DynamicForm"))this.setData({});else this.setData([])} this.markForRedraw("bind")},isc.A.bind=function isc_Canvas_bind(_1,_2){this.setDataSource(_1,_2)},isc.A.getDataSource=function isc_Canvas_getDataSource(){if(isc.isA.String(this.dataSource)){if(this.serviceNamespace||this.serviceName){this.dataSource=this.lookupSchema()}else{var _1=isc.DS.get(this.dataSource);if(_1!=null)return _1;_1=this.getWindow()[this.dataSource];if(_1&&isc.isA.DataSource(_1))return(this.dataSource=_1)}} return this.dataSource},isc.A.setData=function isc_Canvas_setData(_1){this.data=_1},isc.A.lookupSchema=function isc_Canvas_lookupSchema(){var _1;if(this.serviceName)_1=isc.WebService.getByName(this.serviceName,this.serviceNamespace);else _1=isc.WebService.get(this.serviceNamespace);if((this.serviceNamespace||this.serviceName)&&_1==null){this.logWarn("Could not find WebService definition: "+(this.serviceName?"serviceName: "+this.serviceName:"")+(this.serviceNamespace?" serviceNamespace: "+this.serviceNamespace:""))} if(!isc.isA.String(this.dataSource)){this.logWarn("this.dataSource was not a String in lookupSchema");return} var _2;if(_1)_2=_1.getSchema(this.dataSource);return _2||this.dataSource},isc.A.fieldValuesAreEqual=function isc_Canvas_fieldValuesAreEqual(_1,_2,_3){if(_1!=null){if(!isc.isAn.Object(_1))_1=this.getUnderlyingField(_1)||_1;if(_1.type!=null){if(isc.SimpleType.inheritsFrom(_1.type,"datetime")){if(isc.isA.Date(_2)&&isc.isA.Date(_3)){return(Date.compareDates(_2,_3)==0)}}else if(isc.SimpleType.inheritsFrom(_1.type,"date")){if(isc.isA.Date(_2)&&isc.isA.Date(_3)){return(Date.compareLogicalDates(_2,_3)==0)}}else if(_1.type=="valueMap"){if(isc.isAn.Array(_2)&&isc.isAn.Array(_3)){return _2.equals(_3)}else if(isc.isAn.Object(_2)&&isc.isAn.Object(_3)){for(var i in _2){if(_3[i]!=_2[i])return false} for(var j in _3){if(_2[j]!=_3[j])return false} return true}}}} if(!isc.isAn.Object(_1)){if(isc.isA.Date(_2)&&isc.isA.Date(_3)){if(_2.logicalDate||_3.logicalDate) return isc.Date.compareLogicalDates(_2,_3)==0;else if(_2.logicalTime||_3.logicalTime) return isc.Time.compareLogicalTimes(_2,_3)==0;else return _2.getTime()==_3.getTime()}} if(_2==_3)return true;return false},isc.A.setFields=function isc_Canvas_setFields(_1){_1=this.bindToDataSource(_1);this.invalidateUserCache();this.fields=_1},isc.A.getSerializeableFields=function isc_Canvas_getSerializeableFields(_1,_2){_1=_1||[];_1.addList(["zIndex","data"]);if(this.ID&&this.ID.startsWith("isc_"))_1.add("ID");if(this.dataSource)_1.addList(["fields","items"]);if(this.getClassName()!="Canvas"&&this.getClassName()!="Layout"){_1.add("children")} return this.Super("getSerializeableFields",[_1,_2],arguments)},isc.A.addField=function isc_Canvas_addField(_1,_2,_3){if(_1==null)return;if(_3==null)_3=(this.fields||this.items||isc.$ac);_3=_3.duplicate();var _4=isc.Class.getArrayItem(_1.name,this.getAllFields(),this.fieldIdProperty);if(_4)_3.remove(_4);if(_2==null||_2>_3.length)_2=_3.length;_3.addAt(_1,_2);this.setFields(_3)},isc.A.removeField=function isc_Canvas_removeField(_1,_2){if(_2==null)_2=(this.fields||this.items||isc.$ac);_2=_2.duplicate();var _3=_1.name?_1.name:_1;_2.remove(_2.find("name",_3));this.setFields(_2)},isc.A.setCanEdit=function isc_Canvas_setCanEdit(_1){this.canEdit=_1},isc.A.filterData=function isc_Canvas_filterData(_1,_2,_3){this.$wo("filter",_1,_2,_3)},isc.A.fetchData=function isc_Canvas_fetchData(_1,_2,_3){if(!_3)_3={};if(!_3.textMatchStyle)_3.textMatchStyle="exact";this.$wo("fetch",_1,_2,_3)},isc.A.$71s=function isc_Canvas__canExportField(_1){return(this.canExport!=false&&_1.canExport!=false&&!_1.hidden)},isc.A.exportData=function isc_Canvas_exportData(_1,_2){if(!_1)_1={};var _3=this.getSort();if(_3){_1.sortBy=isc.DS.getSortBy(_3)}else if(this.sortField){_1.sortBy=(Array.shouldSortAscending(this.sortDirection)?"":"-")+this.sortField} if(!_1.textMatchStyle){var _4=this.data.context;if(_4&&_4.textMatchStyle){_1.textMatchStyle=_4.textMatchStyle}} if(!this.exportAll&&!_1.exportFields){var _5=this.exportFields,_6="",_7=this.getDataSource();if(!_5){_5=[];for(var i=0;i1){if(_6.endsWith(",")){_6=_6.substring(0,_6.length-1)} _1.additionalOutputs=_6} if(_5&&_5.length>0)_1.exportFields=_5} var _12=_1.exportFields||this.exportFields||this.fields,_13={},_7=this.getDataSource();for(var i=0;i<_12.length;i++){var _9=_12[i];var _14;if(isc.isA.String(_9)){_14=_9;_9=this.getField(_14);if(!_9&&_7!=null)_9=_7.getField(_14)} if(_9){_13[_9.name]=this.htmlUnescapeExportFieldTitle(_9.exportTitle||_9.title)}else{_13[_14]=this.htmlUnescapeExportFieldTitle(_14)}} _1.exportFieldTitles=_13;if(_1.exportRawValues==null){_1.exportRawValues=true} if(this.headerHeight&&this.exportHeaderHeights){_1.exportHeaderHeight=this.headerHeight} var _15={};if(this.headerSpans&&_1.exportShowHeaderSpanTitles!==false){_1.exportHeaderSpans=this.prepareHeaderSpansForExport(this.headerSpans,this.getAllFields(),_15)} _1.exportOtherFields={};for(var i=0;i<_12.length;++i){var _14=_12[i];if(!_15.hasOwnProperty(_14)){_1.exportOtherFields[_14]=_13[_14]}} if(this.exportFieldWidths&&isc.isAn.Array(this.fields)&&this.getFieldWidth){_1.exportFieldPixelWidths=this.getFieldPixelWidths();_1.exportWidthScale=this.exportWidthScale} if(_1.exportWrapHeaderTitles==null){_1.exportWrapHeaderTitles=this.exportWrapHeaderTitles} if(this.exportFieldAlignments&&isc.isAn.Array(this.fields)){_1.exportAlignments=this.getFieldAlignments()} if(_1.exportPropertyIdentifier==null){_1.exportPropertyIdentifier="name"} this.getDataSource().exportData(this.getCriteria(),_1,_2,this)},isc.A.getFieldPixelWidths=function isc_Canvas_getFieldPixelWidths(){var _1=[];for(var i=0;i0){_5.$73p=_6;_5.$39x=isc.DS.getSortBy(_5.$73p)}} if(this.shouldFilterLocalData()){var _7=this.$900!=null?this.$900:this.data;if(isc.isAn.Array(_7)){_5.allRows=_7;_5.fetchMode="local";_5.useClientFiltering=true;_5.useClientSorting=true;_5.disableCacheSync=true;_5.neverDropCache=true}else{isc.logWarn("createDataModel method: data should be an array.")}} return _4.getResultSet(_5)},isc.A.updateDataModel=function isc_Canvas_updateDataModel(_1,_2,_3){if(this.logIsDebugEnabled()){this.logDebug("Setting filter to: "+this.echoFull(_1))} var _4=this.getData();if(!this.dataObjectSupportsFilter(_4))_4=this.originalData;if(!this.dataObjectSupportsFilter(_4)){return} _4.setContext(_3);if(!_4.willFetchData(_1))delete _3.afterFlowCallback;_4.setCriteria(_1);return _4},isc.A.dataObjectSupportsFilter=function isc_Canvas_dataObjectSupportsFilter(_1){return(isc.ResultSet&&isc.isA.ResultSet(_1))||(isc.ResultTree&&isc.isA.ResultTree(_1))},isc.A.requestVisibleRows=function isc_Canvas_requestVisibleRows(){return this.data.get(0)},isc.A.getDataAsList=function isc_Canvas_getDataAsList(){var _1=this.getData?this.getData():this.data;if(_1==null)return null;if(!isc.isA.List(_1))_1=[_1];return _1},isc.A.invalidateCache=function isc_Canvas_invalidateCache(){if(this.data&&this.data.invalidateCache!=null)return this.data.invalidateCache();else if(this.isGrouped&&isc.isA.ResultSet(this.originalData)){this.originalData.setSort(this.data.getSort(),true);this.originalData.invalidateCache();this.regroup()}},isc.A.willFetchData=function isc_Canvas_willFetchData(_1,_2){var _3=this.data;if(_3&&_3.willFetchData==null&&this.originalData!=null)_3=this.orginalData;if(_3&&_3.willFetchData!=null){return _3.willFetchData(_1,_2)} return!this.shouldFilterLocalData()},isc.A.findByKey=function isc_Canvas_findByKey(_1){if(isc.isA.ResultSet(this.data))return this.data.findByKey(_1);else if(isc.isA.Tree(this.data))return this.data.findById(_1);else return null},isc.A.shouldSaveLocally=function isc_Canvas_shouldSaveLocally(){return(!this.dataSource||this.getFullDataPath()!=null||this.saveLocally||this.shouldFilterLocalData())},isc.A.addData=function isc_Canvas_addData(_1,_2,_3){return this.$wp("add",_1,_2,_3)},isc.A.updateData=function isc_Canvas_updateData(_1,_2,_3){return this.$wp("update",_1,_2,_3)},isc.A.removeData=function isc_Canvas_removeData(_1,_2,_3){return this.$wp("remove",_1,_2,_3)},isc.A.$wp=function isc_Canvas__performDSOperation(_1,_2,_3,_4){if(isc.$cv)arguments.$cw=this;if(_4==null&&isc.isAn.Object(_3)&&_3.methodName==null) {_4=_3;_3=null} if(this.shouldSaveLocally()||this.getDataSource()==null){return this.$117j(_1,_2)} _4=this.buildRequest(_4,_1);return this.getDataSource().performDSOperation(_1,_2,_3,_4)},isc.A.$117j=function isc_Canvas__performDSOperationInner(_1,_2){if(_1=="update"){var _3=this.getDataSource();if(!_3){isc.logWarn("Update by primary key cannot be performed without a DataSource.Modify the record directly instead");return} if(this.originalData){var _4=this.originalData.get(_3.findByKeys(_2,this.originalData));isc.addProperties(_4,_2)} var _5=this.data.get(_3.findByKeys(_2,this.data));isc.addProperties(_5,_2);if(this.originalData){this.dataChanged("update",null,null,_5)}else this.data.dataChanged();return}else if(_1=="add"){if(this.originalData){this.originalData.add(_2);this.dataChanged("add",null,null,_2)}else{if(isc.isA.Tree(this.data)){var _6=this.data.getParent(_2)||this.data.getRoot();this.data.add(_2,_6)}else if(isc.ResultSet&&isc.isA.ResultSet(this.data)){if(this.data.allRows!=null){this.data.allRows.add(_2);this.data.filterLocalData()}else{isc.logWarn("Unable to add data to resultSet - allRows is not set")}}else{this.data.add(_2)}} return}else if(_1=="remove"){if(this.originalData){this.originalData.remove(_2);this.dataChanged("remove",null,null,_2)}else{if(isc.ResultSet&&isc.isA.ResultSet(this.data)){if(this.data.allRows!=null){this.data.allRows.remove(_2);this.data.filterLocalData()}else{isc.logWarn("Unable to remove data from resultSet - allRows is not set")}}else{this.data.remove(_2)}} return}},isc.A.removeSelectedData=function isc_Canvas_removeSelectedData(_1,_2){if(_2==null&&isc.isAn.Object(_1)&&_1.methodName==null) {_2=_1;_1=null} var _3=this.getSelection(),_4=_3.length;if(isc.isA.ListGrid(this)&&this.canEdit&&this.selectOnEdit&&_4==0&&this.getEditRow()!=null&&this.getRecord(this.getEditRow())==null) {this.discardEdits(this.getEditRow());return} if(this.dataSource==null||this.shouldSaveLocally()){if(this.data){if(isc.ResultSet&&isc.isA.ResultSet(this.data)&&this.shouldSaveLocally()){if(this.data.allRows!=null){this.data.allRows.removeList(_3);this.data.filterLocalData()}else{isc.logWarn("Unable to remove data from resultSet - allRows is not set")}}else{this.data.removeList(_3)} if(_1)this.fireCallback(_1)} return} var _5=this.buildRequest(_2,"remove",_1),_6=this.getDataSource();if(_4>0){this.deleteRecords(_3,_5.operation,_5,_6)}},isc.A.deleteRecords=function isc_Canvas_deleteRecords(_1,_2,_3,_4){isc.addProperties(_3,{prompt:(_3.prompt||isc.RPCManager.removeDataPrompt)});var _5=_4.getPrimaryKeyFieldNames(),_6=_4.getFieldNames();var _7=isc.RPCManager.startQueue();if(!isc.isAn.Array(_1))_1=[_1];for(var i=0;i<_1.length;i++){var _9=_1[i];if(_9.$52e)continue;var _10=isc.applyMask(_9,_5);_3.oldValues=isc.applyMask(_9,_6);_4.performDSOperation(_2.type,_10,null,_3)} if(!_7)isc.RPCManager.sendQueue()},isc.A.createSelectionModel=function isc_Canvas_createSelectionModel(_1){if(this.selection)this.destroySelectionModel();if(this.canSelectCells&&this.cellDataModel){var _2=[];if(this.numRows!=null){for(var i=0;i0?_1[0]:null);this.selectionUpdated(_2,_1)}},isc.A.getHiliteIconLeftPadding=function isc_Canvas_getHiliteIconLeftPadding(_1){return(_1.hiliteIconLeftPadding!=null?_1.hiliteIconLeftPadding:this.hiliteIconLeftPadding||0)},isc.A.getHiliteIconRightPadding=function isc_Canvas_getHiliteIconRightPadding(_1){return(_1.hiliteIconRightPadding!=null?_1.hiliteIconRightPadding:this.hiliteIconRightPadding||0)},isc.A.getHiliteIconWidth=function isc_Canvas_getHiliteIconWidth(_1){return(_1.hiliteIconWidth!=null?_1.hiliteIconWidth:(_1.hiliteIconSize!=null?_1.hiliteIconSize:(this.hiliteIconWidth!=null?this.hiliteIconWidth:this.hiliteIconSize)))},isc.A.getHiliteIconHeight=function isc_Canvas_getHiliteIconHeight(_1){return(_1.hiliteIconHeight!=null?_1.hiliteIconHeight:(_1.hiliteIconSize!=null?_1.hiliteIconSize:(this.hiliteIconHeight!=null?this.hiliteIconHeight:this.hiliteIconSize)))},isc.A.getHiliteIconPosition=function isc_Canvas_getHiliteIconPosition(_1){return _1.hiliteIconPosition!=null?_1.hiliteIconPosition:this.hiliteIconPosition},isc.A.getHiliteIconHTML=function isc_Canvas_getHiliteIconHTML(_1,_2){var _3=_2.imageURLPrefix,_4=this.getHiliteIconWidth(_2),_5=this.getHiliteIconHeight(_2),_6=this.getHiliteIconLeftPadding(_2),_7=this.getHiliteIconRightPadding(_2);var _8=isc.Canvas.$xq(_1,_3,_4,_5,_6,_7,null,this);return _8},isc.A.getHilites=function isc_Canvas_getHilites(){return this.hilites},isc.A.setHilites=function isc_Canvas_setHilites(_1){this.hilites=_1;this.$63j(this.hilites)},isc.A.getHiliteState=function isc_Canvas_getHiliteState(_1){var _2=this.getHilites();if(_2==null)return null;if(_1)return _2;return"("+isc.JSON.encode(_2,{dateFormat:"logicalDateConstructor",prettyPrint:false})+")"},isc.A.setHiliteState=function isc_Canvas_setHiliteState(_1){if(_1==null)this.setHilites(null);var _2=eval(_1);this.setHilites(_2)},isc.A.$63j=function isc_Canvas__setupHilites(_1,_2){if(_1!=null){this.$63k=this.$63k||0;var _3={},_4=[];for(var i=0;i<_1.length;i++){var _6=_1[i].id;if(_6!=null){if(_3[_6]){this.logWarn("This component has more than one hilite object with the same specified id:"+_6+". Hilite IDs must be unique within a component.","hiliting")}else{_3[_6]=true;var _7=parseInt(_6);if(_6==_7){this.$63k=Math.max(this.$63k,(_7+1))}}}else{_4.add(_1[i])}} for(var i=0;i<_4.length;i++){_4[i].id=this.$63k++} this.$58b=_1.makeIndex("id",-1)} if(!_2)this.applyHilites()},isc.A.$144l=function isc_Canvas__storeFormulaFieldValues(_1,_2,_3,_4){for(var j=0;j<_1.length;j++){var _6=_1[j];for(var i=0;i<_2.length;i++){var _8=_2[i],_9=_8[this.fieldIdProperty];if(this.shouldApplyUserFormulaAfterSummary(_8)&&this.shouldShowUserFormula(_8,_6)) {if(!_3||!_6.$52e){this.storeFormulaFieldValue(_8,_6)} if(j==0){delete _4[_9]}}} for(var _10 in _4){delete _6[_10]}} for(var _10 in _4){delete this.$120o[_10]}},isc.A.$144m=function isc_Canvas__storeSummaryFieldValues(_1,_2,_3,_4){for(var j=0;j<_1.length;j++){var _6=_1[j];for(var i=0;i<_2.length;i++){var _8=_2[i],_9=_8[this.fieldIdProperty];if(_8.userSummary){if(!_3||!_6.$52e){this.storeSummaryFieldValue(_8,_6)} if(j==0){delete _4[_9]}}} for(var _10 in _4){delete _6[_10]}} for(var _10 in _4){delete this.$120n[_10]}},isc.A.$144n=function isc_Canvas__partitionSummaryHiliteRules(_1,_2){var _3={nonSummaryAffecting:[],simpleSummaryAffecting:[],summaryDependentSummaryAffecting:[]};if(_1==null||this.fields==null)return _3;var _4=this,_5=this.$134o();for(var i=0;i<_1.length;i++){var _7=this.getHilite(_1[i]);if(!_7||_7.disabled)continue;var _8=_7.fieldName||(this.fields?this.fields.getProperty("name"):[]);if(!isc.isAn.Array(_8))_8=[_8];var _9=isc.DataSource?isc.DataSource.getCriteriaFields(_7.criteria,this.dataSource):null;if(_9)_9=_9.filter(function(_10){var _10=_4.getField(_10);return _10&&_10.userSummary!=null});var _11=this.$144i;for(var j=0;j<_8.length;j++){var _13=_5[_8[j]]||{};for(var _14 in _13){var _15=_13[_14];if(_15.userSummary==null||!this.shouldIncludeHiliteInSummaryField(_14,_8[j])) {continue} if(_11==this.$144i){_11=this.$144j} if(!_9||_9.length>0){_11=this.$144k;_2[_14]=_15}}} _3[_11].push(_7)} return _3},isc.A.applyHilites=function isc_Canvas_applyHilites(_1){var _2=this.hilites,_3=this.data;if(_2&&!this.$58b)this.$63j(_2,true);if(isc.isA.ResultSet(_3))_3=_3.getAllLoadedRows();if(isc.isA.Tree(_3))_3=_3.getAllItems();_3.setProperty(this.hiliteMarker,null);var _4=this.getAllFields();if(_4==null)_4=[];var _5=this.isGrouped&&!this.showGroupSummaryInHeader;var _6=isc.addProperties({},this.$120o);this.$144l(_3,_4,_5,_6);var _7=this,_8={},_9=function(_12){_7.applyHilite(_12,_3)},_10=this.$144n(_2,_8);_10.simpleSummaryAffecting.map(_9);var _11=isc.addProperties({},this.$120n);this.$144m(_3,_4,_5,_11);_10.nonSummaryAffecting.map(_9);if(_10.summaryDependentSummaryAffecting.length>0){_10.summaryDependentSummaryAffecting.map(_9);this.invalidateUserCache(null,isc.getValues(_8));this.$144m(_3,_4,_5,{})} if(!_1)this.redrawHilites()},isc.A.storeFormulaFieldValue=function isc_Canvas_storeFormulaFieldValue(_1,_2){var _3=_1[this.fieldIdProperty];if(this.$120o==null)this.$120o={};if(!this.$120o[_3])this.$120o[_3]=true;this.getFormulaFieldValue(_1,_2)},isc.A.storeSummaryFieldValue=function isc_Canvas_storeSummaryFieldValue(_1,_2){var _3=_1[this.fieldIdProperty];if(this.$120n==null)this.$120n={};if(!this.$120n[_3])this.$120n[_3]=true;this.getSummaryFieldValue(_1,_2)},isc.A.getHilite=function isc_Canvas_getHilite(_1){if(isc.isAn.Object(_1))return _1;if(this.hilites==null)return null;if(!this.$58b&&this.hilites){this.$63j(this.hilites)} var _2=this.$58b[_1];if(_2==null)_2=this.hilites[_1];return _2},isc.A.applyHilite=function isc_Canvas_applyHilite(_1,_2,_3){var _4=this.getRecordsMatchingHilite(_1,_2);if(_4==null||_4.length==0)return;_1=this.getHilite(_1);var _3=_3||_1.fieldName;if(_3==null)_3=this.fields?this.fields.getProperty("name"):[];var _5=isc.isAn.Array(_3)?_3:[_3];if(this.logIsDebugEnabled("hiliting")){this.logDebug("applying hilite: "+this.echo(_1)+", to fields: "+_5,"hiliting")} for(var j=0;j<_5.length;j++){var _7=this.getField(_5[j]);for(var i=0;i<_4.length;i++){var _9=_4[i];this.hiliteRecord(_9,_7,_1)}}},isc.A.getRecordsMatchingHilite=function isc_Canvas_getRecordsMatchingHilite(_1,_2){_1=this.getHilite(_1);if(!_1.criteria)return;if(_1.disabled)return;var _3=[],_4=this.getDataSource();if(_4){var _5=_4.dropUnknownCriteria;var _6=_4.strictSQLFiltering;_4.dropUnknownCriteria=false;var _7;if(this.strictSQLFilteringForHilites!==_7)_4.strictSQLFiltering=this.strictSQLFilteringForHilites;_3=this.getDataSource().applyFilter(_2,_1.criteria);_4.dropUnknownCriteria=_5;if(this.strictSQLFilteringForHilites!==_7)_4.strictSQLFiltering=_6}else{_3=this.unboundApplyFilter(_2,_1.criteria)} if(this.logIsDebugEnabled("hiliting")){this.logDebug("applying filter: "+this.echoFull(_1.criteria)+", produced matches: "+isc.echoLeaf(_3),"hiliting")} return _3},isc.A.unboundApplyFilter=function isc_Canvas_unboundApplyFilter(_1,_2){var _3=[];if(_1){if(_2){for(var _4=0;_4<_1.length;_4++){if(!_2.operator||this.evaluateCriterion(_1[_4],_2)){_3.add(_1[_4])}}}else{_3=_1}} return _3},isc.A.evaluateCriterion=function isc_Canvas_evaluateCriterion(_1,_2){var _3=isc.DataSource.$57z[_2.operator];if(_3==null){isc.logWarn("Attempted to use unknown operator "+_2.operator);return false} var _4=this.getDataSource();var _5=this.getField(_2.fieldName);var _6=isc.DataSource.getPathValue(_1,_2.fieldName,_5);var _7=_5&&(isc.SimpleType.inheritsFrom(_5.type,"date")||isc.SimpleType.inheritsFrom(_5.type,"datetime"));var _8=function(_13){if(_7&&!isc.isA.Date(_13)&&isc.DateUtil.isRelativeDate(_13)){return isc.DateUtil.getAbsoluteDate(_13)} return _13} var _9={value:_8(_2.value),start:_8(_2.start),end:_8(_2.end)};if(_3.valueType==="fieldName"){var _10=this.getField(_9.value);var _11=isc.DataSource.getPathValue(_1,_9.value,_10);_9.otherValue=_8(_11)}else if(_3.valueType==="criteria"){_9.criterion=_2;_9.record=_1} var _12=_3.condition(_2.fieldName,_6,_9,_4||this,_7);return(_3.negate?!_12:_12)},isc.A.compareValues=function isc_Canvas_compareValues(_1,_2,_3,_4){if(isc.isA.Date(_1)&&isc.isA.Date(_2)){if(_1.logicalDate||_2.logicalDate){return Date.compareLogicalDates(_1,_2)}else{return Date.compareDates(_1,_2)}}else{var _5=_4&&_1.toLowerCase?_1.toLowerCase():_1,_6=_4&&_2.toLowerCase?_2.toLowerCase():_2;if(_5==null&&_6!=null)return 1;if(_5!=null&&_6==null)return-1;return _5>_6?-1:(_5<_6?1:(_5==_6?0:2))}},isc.A.hiliteRecord=function isc_Canvas_hiliteRecord(_1,_2,_3){if(!_2)return;var _4=_1[this.hiliteMarker];if(_4==null)_4=_1[this.hiliteMarker]=this.$578++;var _5=_2.$58c=_2.$58c||{},_6=_5[_4];if(_6==null)_5[_4]=_3.id;else if(isc.isAn.Array(_6))_6.add(_3.id);else _5[_4]=[_6,_3.id]},isc.A.getHiliteCSSText=function isc_Canvas_getHiliteCSSText(_1){var _1=this.getHilite(_1);if(_1==null)return;var _2=_1.cssText||"";if(_2==""){if(_1.textColor)_2+="color:"+_1.textColor+";";if(_1.backgroundColor)_2+="background-color:"+_1.backgroundColor+";";if(_2=="")_2==null} return _2||_1.style},isc.A.addHiliteCSSText=function isc_Canvas_addHiliteCSSText(_1,_2,_3){if(!_1)return _3;var _4=_1[this.hiliteMarker],_2=this.getField(_2);if(!_2||!_2.$58c)return _3;var _5=_2.$58c[_4];if(_5==null)return _3;if(!isc.isAn.Array(_5)){this.$579[0]=_5;_5=this.$579} for(var i=0;i<_5.length;i++){var _7=this.getHiliteCSSText(_5[i]);if(_7!=null){_3=_3?_3+isc.semi+_7:_7}} return _3},isc.A.addObjectHilites=function isc_Canvas_addObjectHilites(_1,_2,_3){if(!this.hilites||!_1)return _2;var _4;if(!isc.isAn.Array(_1)){this.$579[0]=_1;_4=this.$579} if(_4&&_4.length>0){for(var i=0;i<_4.length;i++){var _6,_7,_8;var _9=_4[i];if(isc.isA.String(_9))_6=_9;else _6=(_9!=null?_9[this.hiliteProperty]:null);_7=this.getHilite(_6);if(_7!=null&&!_7.disabled){_8=_7.cssText||_7.style;var _10=[];if(_7) _10=isc.isAn.Array(_7.fieldName)?_7.fieldName:[_7.fieldName];var _11=(!_7.fieldName||!_3||_10.contains(_3.name));if(_8!=null&&_8!=isc.emptyString&&_11){if(_2==null)_2=_8;else _2+=isc.semi+_8}}}} return _2},isc.A.getFieldHilites=function isc_Canvas_getFieldHilites(_1,_2){if(!_1||!_2)return null;if(_1[this.hiliteProperty]!=null){var _3=this.getHilite(_1[this.hiliteProperty]),_4;if(_3) _4=isc.isAn.Array(_3.fieldName)?_3.fieldName:[_3.fieldName];if(_4&&_4.contains(_2.name))return[_3];else return null} if(_1[this.hiliteMarker]!=null){var _5=_1[this.hiliteMarker];if(!_2.$58c)return null;else return _2.$58c[_5]}},isc.A.applyHiliteHTML=function isc_Canvas_applyHiliteHTML(_1,_2){if(!this.hilites)return _2;var _3,_4,_5;if(!isc.isAn.Array(_1)){this.$579[0]=_1;_1=this.$579} for(var i=0;i<_1.length;i++){_5=_1[i];_3=this.getHilite(_5);if(_3!=null){if(_3.htmlValue!=null)_2=_3.htmlValue;if(!_3.disabled){if(_3.replacementValue){_2=_3.replacementValue} _4=_3.htmlBefore;if(_4!=null&&_4.length>0){_2=_4+_2} _4=_3.htmlAfter;if(_4!=null&&_4.length>0){_2=_2+_4} var _7=_3.htmlOpposite,_8=_3.styleOpposite||this.styleOpposite;if(_7){if(!isc.Browser.isIE){_2="
 "+_7+" 
"+_2+"
"}else{_2="
"+_7+"
"+_2+"
"}}}}} return _2},isc.A.applyHiliteIcon=function isc_Canvas_applyHiliteIcon(_1,_2,_3){if(!this.hilites||!_2)return _3;var _4,_5,_6;if(!isc.isAn.Array(_1)){this.$579[0]=_1;_1=this.$579} for(var i=0;i<_1.length;i++){_6=_1[i];_4=this.getHilite(_6);if((_4!=null)&&_4.icon){_5=this.getHiliteIconHTML(_4.icon,_2);var _8=this.getHiliteIconPosition(_2);if(_8=="after"){_3=_3+_5}else if(_8=="replace"){_3=_5}else{_3=_5+_3}}} return _3},isc.A.enableHilite=function isc_Canvas_enableHilite(_1,_2){if(_2==null)_2=true;var _3=this.getHilite(_1);if(_3==null)return;_3.disabled=!_2;this.redrawHilites()},isc.A.disableHilite=function isc_Canvas_disableHilite(_1){this.enableHilite(_1,false)},isc.A.enableHiliting=function isc_Canvas_enableHiliting(_1){if(_1==null)_1=true;if(this.hilites)this.hilites.setProperty("disabled",!_1);this.redrawHilites()},isc.A.disableHiliting=function isc_Canvas_disableHiliting(){this.enableHiliting(false)},isc.A.redrawHilites=function isc_Canvas_redrawHilites(){this.markForRedraw()},isc.A.getHiliteCriteriaFields=function isc_Canvas_getHiliteCriteriaFields(){var _1=this.getAllFields();if(!_1)return;var _2=_1?_1.findAll("canHilite",false):null;if(_2&&_2.length>0){_1.removeList(_2)} for(var i=0;i<_1.length;i++){if(_1[i].dataPath){_1[i]=isc.addProperties({},_1[i],{dataPath:this.$840(_1[i].dataPath)})}} return _1},isc.A.editHilites=function isc_Canvas_editHilites(){var _1=this.getDataSource(),_2=_1?isc.getValues(_1.getFields()).duplicate():[],_3=(this.getHiliteCriteriaFields()||[]).duplicate(),_4=[];for(var i=0;i<_3.length;i++){var _6=_3[i];if(_6.userSummary&&this.fieldIsVisible(_6.name)){var _7=_6.userSummary.summaryVars;for(var _8 in _7){var _9=_7[_8];if(!_4.contains(_9))_4.add(_9)}}} _2.setProperty("showInSimpleEditor",false);_3.setProperty("showInSimpleEditor",true);for(var i=0;i<_3.length;i++){var _6=_3[i],_10=this.fieldIsVisible(_6.name),_11=_4.contains(_6.name),_12=_2.find("name",_6.name);if(!_12){_12=isc.addProperties({},_6);_2.add(_12)} if(_6.canHilite!=null)_12.canHilite=_6.canHilite;_12.title=this.getFieldTitle?this.getFieldTitle(_6):_6.title||_6.name;_12.showInSimpleEditor=_10||_11} var _13=isc.DataSource.create({inheritsFrom:this.getDataSource(),isHiliteCriteriaDS:true,fields:_2});if(this.hiliteWindow){this.hiliteEditor.setDataSource(_13);this.hiliteEditor.rootDataSource=this.getDataSource();this.hiliteEditor.clearHilites();this.hiliteEditor.setHilites(this.getHilites());this.hiliteEditor.setHiliteIcons(this.hiliteIcons);this.hiliteWindow.show();return} var _14=this,_15=this.addAutoChild("hiliteEditor",{dataSource:_13,rootDataSource:this.getDataSource(),hilites:this.getHilites(),hiliteIcons:this.hiliteIcons,hiliteCanReplaceValue:this.hiliteCanReplaceValue,hiliteReplaceValueFieldTitle:this.hiliteReplaceValueFieldTitle}),_16=this.addAutoChild("hiliteWindow",{title:this.editHilitesDialogTitle,items:[_15]});_16.centerInPage();_16.show();return _16},isc.A.$1024=function isc_Canvas__handleHilitesChanged(_1){this.setHilites(_1)},isc.A.transferRecords=function isc_Canvas_transferRecords(_1,_2,_3,_4,_5){if(!this.$67u("transferRecords",_1,_2,_3,_4,_5)){return} if(isc.isAn.Array(this.data)&&this.data.length==0&&this.dataSource&&!this.shouldSaveLocally()) {this.fetchData(null,null,{$326:true});this.data.setFullLength(0)} if(_4==this){if(_3!=null&&!this.isGrouped)this.data.slideList(_1,_3)}else{var _6=this.getDataSource();var _7=_4.getDataSource();if(_6&&_6==_7&&_4.dragDataAction==isc.Canvas.MOVE&&!(_4.shouldSaveLocally()||this.shouldSaveLocally())) {var _8=isc.rpc.startQueue();for(var i=0;i<_1.length;i++){var _10={};var _11=_6.getPrimaryKeyFieldNames();for(var j=0;j<_11.length;j++){_10[_11[j]]=_1[i][_11[j]]} isc.addProperties(_10,this.getDropValues(_10,_7,_2,_3,_4));this.updateDataViaDataSource(_10,_7,null,_4)} if(!_8)isc.rpc.sendQueue()}else{if(!isc.isAn.Array(_1))_1=[_1];var _13=true;if(_7!=null&&_6!=null){var _14=_6.getPrimaryKeyFieldNames(),_13=true;if(_14){for(var i=0;i<_14.length;i++){if(_7.getField(_14[i])==null){_13=false;break}}}} if(_13){if(this.selectionType==isc.Selection.MULTIPLE||this.selectionType==isc.Selection.SIMPLE) {this.selection.deselectAll();this.selection.selectList(_1)}else if(this.selectionType==isc.Selection.SINGLE){this.selection.selectSingle(_1[0])} this.fireSelectionUpdated()} if(_6){this.$67o=isc.rpc.startQueue();for(var i=0;i<_1.length;i++){if(_1[i].$52e)continue;var _10={};isc.addProperties(_10,_1[i]);isc.addProperties(_10,this.getDropValues(_10,_7,_2,_3,_4));if(_6!=_7){var _15=_6.getForeignKeysByRelation(_10,_7);var _16=false;isc.addProperties(_10,_15);if(_6.titleField&&_7&&_7.titleField&&_6.titleField!=_7.titleField){var _17;if(_10[_6.titleField]===_17){_10[_6.titleField]=_10[_7.titleField]}}} this.$61d(_10,_7,_4,_15)}}else{if(this.isGrouped){for(var i=0;i<_1.length;i++){var _10={};isc.addProperties(_10,_1[i]);isc.addProperties(_10,this.getDropValues(_10,_7,_2,_3,_4));if(!this.$61e(_10)){this.$52u(this.groupTree,_10,true);this.originalData.add(_10)}}}else{for(var i=0;i<_1.length;i++){var _10={};isc.addProperties(_10,_1[i]);isc.addProperties(_10,this.getDropValues(_10,_7,_2,_3,_4));if(_3!=null){if(this.$61d(_10,null,_4,null,_3)){_3++}}else{this.$61d(_10,null,_4)}}}}}} if(this.canReorderRecords&&this.getSort){var _18=this.getSort();if(_18&&_18.length>0)this.unsort()} if(!this.$67l){isc.Log.logDebug("Invoking transferDragData from inside transferRecords - no server queries needed?","dragDrop");_4.transferDragData(this.$67n,this);if(_6){if(!this.$67o)isc.rpc.sendQueue()}} this.$67m=false});isc.evalBoundary;isc.B.push(isc.A.$67u=function isc_Canvas__storeTransferState(_1,_2,_3,_4,_5,_6){if(!isc.isAn.Array(this.$67k))this.$67k=[];if(this.$67l&&this.$67l!=0){isc.logWarn("transferRecords was invoked but the prior transfer is not yet complete - \ the transfer will be queued up to run after the current transfer");this.$67k.add({implementation:_1,dropRecords:_2,targetRecord:_3,index:_4,sourceWidget:_5,callback:_6});return false} this.$67k.addAt({implementation:_1,dropRecords:_2,targetRecord:_3,index:_4,sourceWidget:_5,callback:_6},0);this.$67m=true;this.$67n=[];this.$67l=0;return true},isc.A.updateDataViaDataSource=function isc_Canvas_updateDataViaDataSource(_1,_2,_3,_4){var _5=this;if(this.updateOperation){if(_3==null)_3={};isc.addProperties(_3,{operationId:this.updateOperation})} if(!this.preventDuplicates){if(!_4.$67v)_4.$67v=0;_4.$67v++;_2.updateData(_1,function(_7,_8,_9){_4.$67w(_7,_8,_9)},_3);return} var _6=this.getCleanRecordData(_1);if(this.data.find(_6,null,Array.DATETIME_VALUES)){isc.Log.logDebug("Found client-side duplicate, skipping update for '"+_1[isc.firstKey(_1)]+"'","dragDrop");this.$67n.add(this.getCleanRecordData(_1))}else{if(this.data.allMatchingRowsCached()){if(!_4.$67v)_4.$67v=0;_4.$67v++;_2.updateData(_1,function(_7,_8,_9){_4.$67w(_7,_8,_9)},_3)}else{isc.Log.logDebug("Incrementing dup query count: was "+_5.$67l,"dragDrop");this.$67l++;_2.fetchData(_6,function(_7,_8,_9){if(_8&&_8.length>0){isc.Log.logDebug("Found server-side duplicate, skipping update for '"+_1[isc.firstKey(_1)]+"'","dragDrop");_5.$67n.add(_5.getCleanRecordData(_8[0]))}else{if(!_4.$67v)_4.$67v=0;_4.$67v++;_2.updateData(_1,function(_7,_8,_9){_4.$67w(_7,_8,_9)},_3)} isc.Log.logDebug("Decrementing dup query count: was "+_5.$67l,"dragDrop");if(--_5.$67l==0&&!_5.$67m){if(_4.dragDataAction==isc.Canvas.MOVE){isc.Log.logDebug("Invoking transferDragData from inside callback","dragDrop");_4.transferDragData(_5.$67n,_5);delete _5.$67n;if(!_5.$67o)isc.rpc.sendQueue()}}},{sendNoQueue:true})}}},isc.A.$61d=function isc_Canvas__addIfNotDuplicate(_1,_2,_3,_4,_5,_6){var _7=this.getDataSource(),_8,_9=this,_10={};if(this.addOperation){isc.addProperties(_10,{operationId:this.addOperation})} if(_7)_8=_7.getPrimaryKeyFields();if(_7){var _11;if(_8&&isc.firstKey(_8)!=null){for(var _12 in _8){if(_8[_12].type=="sequence"){_11=true;break}}} if(_11){var _13;for(var _12 in _8){_1[_12]=_13} if(!_3.$67v)_3.$67v=0;_3.$67v++;this.addData(_1,function(_15,_16,_17){_3.$67w(_15,_16,_17)});return true}} if(!this.preventDuplicates){if(_7){if(!_3.$67v)_3.$67v=0;_3.$67v++;this.addData(_1,function(_15,_16,_17){_3.$67w(_15,_16,_17)},_10)}else{if(isc.Tree&&isc.isA.Tree(this.data)){this.data.add(_1,_6,_5)}else if(isc.ResultSet&&isc.isA.ResultSet(this.data)){if(this.data.allRows!=null){if(_5!=null)this.data.allRows.addAt(_1,_5);else this.data.allRows.add(_1);this.data.filterLocalData()}else{isc.logWarn("Unable to add data to resultSet - allRows is not set")}}else{if(_5!=null)this.data.addAt(_1,_5);else this.data.add(_1)}} return true} if(this.$61e(_1,_2,_4)){if(this.duplicateDragMessage!=null)isc.warn(this.duplicateDragMessage);isc.Log.logDebug("Found client-side duplicate, adding '"+_1[isc.firstKey(_1)]+"' to exception list","dragDrop");this.$67n.add(this.getCleanRecordData(_1));return false}else{if(!_7){if(isc.Tree&&isc.isA.Tree(this.data)){this.data.add(_1,_6,_5)}else if(isc.ResultSet&&isc.isA.ResultSet(this.data)){if(this.data.allRows!=null){if(_5!=null)this.data.allRows.addAt(_1,_5);else this.data.allRows.add(_1)}else{isc.logWarn("Unable to add data to resultSet - allRows is not set")}}else{if(_5!=null)this.data.addAt(_1,_5);else this.data.add(_1)} return true}else{if(!isc.ResultSet||!isc.isA.ResultSet(this.data)){if(!_3.$67v)_3.$67v=0;_3.$67v++;this.addData(_1,function(_15,_16,_17){_3.$67w(_15,_16,_17)},_10);return true}else{if(this.data.allRowsCached()||(_4&&isc.firstKey(_4)&&this.data.allMatchingRowsCached())){if(!_3.$67v)_3.$67v=0;_3.$67v++;this.addData(_1,function(_15,_16,_17){_3.$67w(_15,_16,_17)},_10);return true} if(_7&&_2==_7){if(_8&&isc.firstKey(_8)!=null){var _14=isc.applyMask(_1,_8)}else{_14=this.getCleanRecordData(_1)}}else if(_4&&isc.firstKey(_4)){_14=isc.addProperties({},this.data.getCriteria());isc.addProperties(_14,_4)}else if(_7&&_8&&isc.firstKey(_8)!=null){_14=isc.applyMask(_1,_8)}else{_14=this.getCleanRecordData(_1)} isc.Log.logDebug("Incrementing dup query count: was "+_9.$67l,"dragDrop");this.$67l++;_7.fetchData(_14,function(_15,_16,_17){if(_16&&_16.length>0){if(_9.duplicateDragMessage!=null)isc.warn(_9.duplicateDragMessage);isc.Log.logDebug("Found server-side duplicate, adding '"+_1[isc.firstKey(_1)]+"' to exception list","dragDrop");_9.$67n.add(_9.getCleanRecordData(_1))}else{if(!_3.$67v)_3.$67v=0;_3.$67v++;_7.addData(_1,function(_15,_16,_17){_3.$67w(_15,_16,_17)},_10)} isc.Log.logDebug("Decrementing dup query count: was "+_9.$67l,"dragDrop");if(--_9.$67l==0&&!_9.$67m){if(_3.dragDataAction==isc.Canvas.MOVE){isc.Log.logDebug("Invoking transferDragData from inside callback","dragDrop");_3.transferDragData(_9.$67n,_9);delete _9.$67n;if(!_9.$67o)isc.rpc.sendQueue()}}},{sendNoQueue:true})}}}},isc.A.$61e=function isc_Canvas__isDuplicateOnClient(_1,_2,_3){var _4=this.getDataSource(),_5;if(!this.preventDuplicates)return false;if(_4)_5=_4.getPrimaryKeyFields();if(_4&&_4==_2){if(_5&&isc.firstKey(_5)!=null){for(var _6 in _5){if(_5[_6].type=="sequence"){return false}}}} if(!_4){var _7=this.getCleanRecordData(_1)}else if(_4&&_2==_4){if(_5&&isc.firstKey(_5)!=null){_7=isc.applyMask(_1,_5)}else{_7=this.getCleanRecordData(_1)}}else if(_3&&isc.firstKey(_3)){_7={};var _8=this.data.getCriteria();if(!_4.isAdvancedCriteria(_8)){var _9=this.data.context;if(!_9||(_9.textMatchStyle==null||_9.textMatchStyle=="exact")){isc.addProperties(_7,_8)}} isc.addProperties(_7,_3)}else if(_4&&_5&&isc.firstKey(_5)!=null){_7=isc.applyMask(_1,_5)}else{_7=this.getCleanRecordData(_1)} var _10=this.originalData||this.data;if(_10.findIndex(_7,null,Array.DATETIME_VALUES)>=0)return true;else return false},isc.A.getCleanRecordData=function isc_Canvas_getCleanRecordData(_1){if(isc.Tree&&isc.isA.Tree(this.data)){return this.data.getCleanNodeData(_1,false)} var _2={};for(var _3 in _1){if(_3.startsWith("_selection_"))continue;_2[_3]=_1[_3]} return _2},isc.A.$67w=function isc_Canvas__updateComplete(_1,_2,_3){if(this.$67v){isc.Log.logDebug("Decrementing update count - was "+this.$67v,"dragDrop");this.$67v-=1} if(!this.$67v){isc.Log.logDebug("All updates complete, calling dragComplete()","dragDrop");if(isc.isA.Function(this.dragComplete))this.dragComplete()}},isc.A.getDropValues=function isc_Canvas_getDropValues(_1,_2,_3,_4,_5,_6){if(!this.addDropValues)return;var _7={},_8;if(this.data&&this.data.getNodeDataSource){_8=this.data.getNodeDataSource(_3)} if(!_8){_8=this.getDataSource()} var _9=(this.isGrouped?this.getOriginalData():this.data);if(_9&&_9.getCriteria)_7=_9.getCriteria(_8);var _10;if(isc.isAn.emptyObject(_7)||(_8&&!_8.isAdvancedCriteria(_7))){var _11=_9.context;if(_11&&(_11.textMatchStyle==null||_11.textMatchStyle=="exact")){_10=isc.addProperties({},_7);if(this.dropValues){_10=isc.addProperties(_10,this.dropValues)} return _10}} return this.dropValues},isc.A.transferDragData=function isc_Canvas_transferDragData(_1,_2){var _3=[],_4,_5,_6;if(_2&&_2.$67k!=null&&!_2.$67k.isEmpty()){_6=_2.$67k.shift();_4=_6.dropRecords;_5=_6.callback}else{_4=this.getDragData();_6={}} if(_4==null)_4=[];for(var i=0;i<_4.length;i++){var _8=this.getCleanRecordData(_4[i]);if(!_1||!_1.find(_8,null,Array.DATETIME_VALUES)){_3.add(_4[i])}} if(this.dragDataAction==isc.Canvas.MOVE&&_2!=this&&!_6.noRemove){if(this.dataSource&&!this.shouldSaveLocally()){var _9=_2.getDataSource();if(_9!=this.getDataSource()){var _10=isc.rpc.startQueue();for(var i=0;i<_3.length;i++){this.getDataSource().removeData(_3[i])} if(!_10)isc.rpc.sendQueue()}}else if(this.data){var _11=isc.ResultSet&&isc.isA.ResultSet(this.data)&&this.shouldSaveLocally();for(var i=0;i<_3.length;i++){if(_11){if(this.data.allRows!=null){this.data.allRows.remove(_3[i])}else{isc.logWarn("Unable to remove data from resultSet - allRows is not set")}}else{this.data.remove(_3[i])} if(this.isGrouped){this.originalData.remove(_3[i])}} if(_11)this.data.filterLocalData()} if(this.selection&&this.selection.deselectList){this.selection.deselectList(_4)}} if(_2){if(isc.isA.Function(_2.dropComplete))_2.dropComplete(_3);if(_5){this.fireCallback(_5,"records",[_3])} if(_2.$67k&&_2.$67k.length>0){var _12=_2.$67k.shift();isc.Timer.setTimeout(function(){if(_12.implementation=="transferNodes"){_2.transferNodes(_12.dropRecords,_12.targetRecord,_12.index,_12.sourceWidget,_12.callback)}else{_2.transferRecords(_12.dropRecords,_12.targetRecord,_12.index,_12.sourceWidget,_12.callback)}},0)}} return _3},isc.A.getDragData=function isc_Canvas_getDragData(){var _1=(this.selection&&this.selection.getSelection)?this.selection.getSelection():null;return _1},isc.A.cloneDragData=function isc_Canvas_cloneDragData(){var _1=this.$758;if(_1==null){_1=this.getDragData()} this.$758=null;var _2=this.dragDataAction==isc.Canvas.COPY||this.dragDataAction==isc.Canvas.CLONE;var _3=[] if(_2&&_1){if(isc.isA.Tree(this.data)){_1=this.data.getCleanNodeData(_1)}else{if(!isc.isAn.Array(_1))_1=[_1];var _4=[];for(var i=0;i<_1.length;i++){_4[i]=this.getCleanRecordData(_1[i])} _1=_4}} return _1},isc.A.transferSelectedData=function isc_Canvas_transferSelectedData(_1,_2,_3){if(!this.isValidTransferSource(_1)){if(_3)this.fireCallback(_3);return} if(_2!=null)_2=Math.min(_2,this.data.getLength());var _4=_1.cloneDragData();var _5;if(_2!=null)_5=this.data.get(_2);this.transferRecords(_4,_5,_2,_1,_3)},isc.A.isValidTransferSource=function isc_Canvas_isValidTransferSource(_1){if(!_1||!_1.transferDragData){this.logWarn("transferSelectedData(): "+(_1?"Invalid ":"No ")+"source widget passed in - "+(_1||"")+" taking no action.");return false} if(_1==this){this.logWarn("transferSelectedData(): target parameter contains a pointer back to this grid - ignoring");return false} return true},isc.A.setDragTracker=function isc_Canvas_setDragTracker(){var _1=isc.EH,_2=this.dragTrackerMode;if(_2=="none"||_1.dragOperation==_1.DRAG_SCROLL||this.canDragSelectText){_1.setDragTracker("");return false}else if(_2=="icon"){var _3=this.getSelection(),_4=this.getDragTrackerIcon(_3);_1.setDragTracker(this.imgHTML(_4),null,null,null,null,this.getDragTrackerProperties());return false}else{var _5=this.getSelectedRecord(),_6=_5&&this.data?this.data.indexOf(_5):-1;if(_5==null)return false;if(_2=="title"){var _7=this.getDragTrackerTitle(_5,_6);_1.setDragTracker(_7,null,null,null,null,this.getDragTrackerProperties());return false}else if(_2=="record"){var _8=this.body.getTableHTML([0,this.fields.length-1],_6,_6+1);_1.setDragTracker(_8,null,null,null,null,this.getDragTrackerProperties());return false}}},isc.A.getDragTrackerProperties=function isc_Canvas_getDragTrackerProperties(){var _1=isc.addProperties({},this.dragTrackerProperties);_1.styleName=this.dragTrackerStyle;if(this.dragTrackerMode=="record")_1.opacity=50;return _1},isc.A.makeDragLine=function isc_Canvas_makeDragLine(){if(this._dragLine)return false;var _1={ID:this.getID()+"_dragLine",width:2,height:2,overflow:isc.Canvas.HIDDEN,visibility:isc.Canvas.HIDDEN,isMouseTransparent:true,dropTarget:this,redrawOnResize:false,styleName:"dragLine"};if(this.ns.Element.getStyleEdges(_1.styleName)==null){_1.backgroundColor="black"} isc.addProperties(_1,this.dragLineDefaults,this.dragLineProperties);this._dragLine=this.ns.Canvas.create(_1);return true},isc.A.hideDragLine=function isc_Canvas_hideDragLine(){if(this._dragLine){this._dragLine.hide();this._dragLine.moveTo(0,-9999)}},isc.A.configureFrom=function isc_Canvas_configureFrom(_1){var _2=this.dbcProperties;for(var i=0;i<_2.length;i++){this[_2[i]]=_1[_2[i]];if(_2[i]=="dataSource"){var _4=this.autoFetchData;this.autoFetchData=false;this.setDataSource(isc.DS.getDataSource(this.dataSource));this.autoFetchData=_4}} this.setCriteria(_1.getCriteria());this.setData(_1.getData())},isc.A.addFormulaField=function isc_Canvas_addFormulaField(){this.editFormulaField()},isc.A.$1144=function isc_Canvas__editComputedField(_1,_2){if(isc.FormulaBuilder==null)return;var _3=this,_4=!_1?false:true,_5=_2.toLowerCase();if(isc.isA.String(_1)){_1=this.getField(_1)} var _6=isc[_2+"Builder"].create({autoDraw:false,overflow:"visible",component:_3,dataSource:_3.getDataSource(),editMode:_4,field:_1,mathFunctions:_2=="Formula"?isc.MathFunction.getDefaultFunctionNames():null,headerSpans:this.headerSpans,showHeaderSpanTitles:this.showHeaderSpanTitlesInFormulaBuilder,spanTitleSeparator:this.formulaBuilderSpanTitleSeparator,fieldKeyProperties:{height:"*"},fireOnClose:function(){_3.userFieldCallback(this)}},this[_5+"BuilderProperties"]);this.fieldEditorWindow=this.createAutoChild("fieldEditorWindow",isc.addProperties({},{title:this.fieldEditorWindowTitle.evalDynamicString(this,{builderType:_2,fieldTitle:_6.field.title}),items:[_6]},this[_5+"EditorProperties"]));this.fieldEditorWindow.show()},isc.A.editFormulaField=function isc_Canvas_editFormulaField(_1){return this.$1144(_1,"Formula")},isc.A.invalidateUserCache=function isc_Canvas_invalidateUserCache(_1,_2){if(!_1){if(!_2){this.$132l++;return} _1=this.data||[];if(isc.ResultSet&&isc.isA.ResultSet(_1))_1=_1.getAllLoadedRows();if(isc.Tree&&isc.isA.Tree(_1))_1=_1.getAllItems()} if(!_1)return;if(!isc.isAn.Array(_1))_1=[_1];if(_2!=null){if(!isc.isAn.Array(_2))_2=[_2];_2=this.getCacheableFields(_2)} for(var i=0;i<_1.length;i++){if(!_1[i])continue;var _4=_1[i]["_cache_"+this.ID];if(!_4)continue;if(_2==null)delete _1[i]["_cache_"+this.ID] else{for(var j=0;j<_2.length;j++){delete _4[_2[j].name]}}}},isc.A.$134n=function isc_Canvas__addDependentUserFields(_1){var _2={},_3=this.$134o();for(var i=0;i<_1.length;i++){var _5=_3[_1[i].name];if(_5)isc.addProperties(_2,_5);_2[_1[i].name]=_1[i]} return isc.getValues(_2)},isc.A.$134p=function isc_Canvas__getUserFieldInputFields(_1){var _2;if(_1.userFormula!=null){_2=_1.userFormula.formulaVars}else if(_1.userSummary!=null){_2=_1.userSummary.summaryVars} if(!_2)return{};else _2=isc.getValues(_2);var _3={};for(var i=0;i<_2.length;i++){var _5=this.getField(_2[i]);if(_5){_3[_5.name]=_5;isc.addProperties(_3,this.$134p(_5))}} return _3},isc.A.$134o=function isc_Canvas__getFieldDependencyTable(){if(this.$134q==null){var _1=this.$134q={};var _2=this.fields;for(var i=0;i<_2.length;i++){var _4=isc.getKeys(this.$134p(_2[i]));for(var j=0;j<_4.length;j++){var _6=_4[j];if(_1[_6]==null){_1[_6]={}} _1[_6][_2[i].name]=_2[i]}}} return this.$134q},isc.A.$134r=function isc_Canvas__clearFieldDependencyTable(){delete this.$134q},isc.A.shouldApplyUserFormulaAfterSummary=function isc_Canvas_shouldApplyUserFormulaAfterSummary(_1){return _1&&_1.userFormula!=null},isc.A.shouldShowUserFormula=function isc_Canvas_shouldShowUserFormula(_1,_2){return true},isc.A.getCacheableFields=function isc_Canvas_getCacheableFields(_1){var _1=_1!=null?_1:this.getFields();if(_1==null)return[];return _1.filter(function(_2){return _2.userFormula!=null||_2.userSummary!=null})},isc.A.getFormulaFieldValue=function isc_Canvas_getFormulaFieldValue(_1,_2){if(!isc.isAn.Object(_1))_1=this.getField(_1);if(_2&&_2["_cache_"+this.ID]&&_1&&_1.name&&_2["_cache_"+this.ID][_1.name]==this.$132l) {return _2[_1.name]} var _3=this.getFormulaFunction(_1);if(!_3)return null;var _4=_3(_2,this);if(_2&&!_2.$132m){if(!_2["_cache_"+this.ID])_2["_cache_"+this.ID]={};_2["_cache_"+this.ID][_1.name]=this.$132l;_2[_1.name]=_4} return _4},isc.A.getFormulaFunction=function isc_Canvas_getFormulaFunction(_1){if(!_1||!_1.userFormula)return null;var _2=_1.$65w;if(_2!=null&&_2.$111j==_1.userFormula)return _2;_2=_1.$65w=isc.FormulaBuilder.generateFunction(_1.userFormula,this.getAllFields(),this);_2.$111j=_1.userFormula;return _2},isc.A.addSummaryField=function isc_Canvas_addSummaryField(){this.editSummaryField()},isc.A.editSummaryField=function isc_Canvas_editSummaryField(_1){return this.$1144(_1,"Summary")},isc.A.userFieldCallback=function isc_Canvas_userFieldCallback(_1){if(!_1)return;var _2=this.fieldEditorWindow;if(_1.cancelled){_2.destroy();return} var _3=_1.getUpdatedFieldObject();var _4=_3.name;if(this.getField(_4)==null){var _5=_3.title;if(_5!=null&&!isc.isA.emptyString(_5)&&_5!=_1.defaultNewFieldTitle) {var _6=_5;_6=_6.replace(/ |\.|-/g,"_");if(_6.match(/^[0-9]/))_6="_"+_6;if(String.isValidID(_6)){_3.name=_1.getNewUniqueFieldName(_6)}else{this.logInfo("User-created field: unable to create fieldName based on specified title "+_5+", using default name:"+_3.name,"summaryField")}}else{this.logDebug("User-created field: not attempting to create fieldName based on specified title "+_5+", using default name:"+_3.name,"summaryField")} var _7,_8=_1.getUsedFields(true).first();if(_3.summaryFunction===_7&&_8&&_8.summaryFunction!=null){_3.summaryFunction=_8.summaryFunction}} if(this.userAddedField&&this.userAddedField(_3)==false){_2.destroy();return} if(this.formulaUpdated&&_1.builderTypeText=="Formula"){this.formulaUpdated(_3,_3.userFormula)} if(this.hideField&&_1.shouldHideUsedFields()){var _9=_1.getUsedFields();for(var i=0;i<_9.length;i++){var _11=_9.get(i);this.hideField(_11.name)}} var _12=this.getAllFields();var _13=isc.Class.getArrayItemIndex(_3.name,_12,this.fieldIdProperty);if(_13>=0)_12[_13]=_3;else _12.addAt(_3,this.getFields().length);this.setFields(_12);if(this.markForRedraw)this.markForRedraw();var _14=_1.restartBuilder,_15=_1.builderTypeText;_2.destroy();if(_14){if(_15=="Formula")this.addFormulaField();else this.addSummaryField()}},isc.A.getSummaryFunction=function isc_Canvas_getSummaryFunction(_1){if(!_1||!_1.userSummary)return null;var _2=_1.$652;if(_2!=null)return _2;_2=_1.$652=isc.SummaryBuilder.generateFunction(_1.userSummary,this.getAllFields(),this);return _2},isc.A.getSummaryFieldValue=function isc_Canvas_getSummaryFieldValue(_1,_2){if(!isc.isAn.Object(_1))_1=this.getField(_1);if(_2&&_2["_cache_"+this.ID]&&_1&&_1.name&&_2["_cache_"+this.ID][_1.name]==this.$132l) {return _2[_1.name]} var _3=this.getSummaryFunction(_1);if(!_3)return null;var _4=_3(_2,_1[this.fieldIdProperty],this);if(_2){if(!_2["_cache_"+this.ID])_2["_cache_"+this.ID]={};_2["_cache_"+this.ID][_1.name]=this.$132l;_2[_1.name]=_4} return _4},isc.A.shouldIncludeHiliteInSummaryField=function isc_Canvas_shouldIncludeHiliteInSummaryField(_1,_2){return this.includeHilitesInSummaryFields},isc.A.getRecordIndex=function isc_Canvas_getRecordIndex(_1){return this.data.indexOf(_1)},isc.A.getTitleFieldValue=function isc_Canvas_getTitleFieldValue(_1){},isc.A.getTitleField=function isc_Canvas_getTitleField(){if(this.titleField!=null)return this.titleField;if(this.dataSource!=null){var _1=this.getDataSource().getTitleField(),_2=this.getField(_1);if(!_2||_2.excludeFromState){var _3=this.getFields(),_4=false;for(var i=0,_6=_3.length;!_4&&i<_6;++i){_2=_3[i];if(!_2.excludeFromState){if(_1==null)_1=_2[this.fieldIdProperty];if(this.fieldIsVisible(_2)&&this.shouldUseField(_2)){_1=_2[this.fieldIdProperty];_4=true}}} if(_1==null){_1=_3[0][this.fieldIdProperty]}} this.titleField=_1}else{var _3=this.getFields(),_7=["title","label","name","id"],_4=false;for(var i=0;!_4&&i<_7.length;++i){var _8=_7[i],_1=_3.find(this.fieldIdProperty,_8);if(_1&&this.fieldIsVisible(_1)&&this.shouldUseField(_1)&&!_1.excludeFromState) {this.titleField=_8;_4=true}} if(!_4){this.titleField=_3.first()[this.fieldIdProperty];for(var i=0;i<_3.length;++i){var _1=_3[i];if(!_1.excludeFromState){this.titleField=_1[this.fieldIdProperty];break}}}} return this.titleField},isc.A.getRecordHiliteCSSText=function isc_Canvas_getRecordHiliteCSSText(_1,_2,_3,_4){if(_1==null)return _2;if(_1.isGroupSummary&&(!this.showHilitesInGroupSummary||_3.showHilitesInGroupSummary==false))return _2;_2=this.addObjectHilites(_1,_2,_3);if(_4==null){_4=this.getFields().contains(_3)&&((isc.isA.List(this.data)&&this.getRecordIndex(_1)!=-1)||this.data==_1)} if(_4){_2=this.addHiliteCSSText(_1,_3,_2)}else{var _5=this.hilites;if(_5){for(var i=0;i<_5.length;i++){if(_3&&_3.name){var _7=_5[i].fieldName;if(_7&&(isc.isAn.Array(_7)?!_7.contains(_3.name):_7!=_3.name)) {continue}} var _8=this.getRecordsMatchingHilite(_5[i],[_1]);if(_8&&_8.length!=0){if(_2==null){_2=this.getHiliteCSSText(_5[i])}else{_2+=this.getHiliteCSSText(_5[i])}}}}} if(this.logIsDebugEnabled("hiliting")&&_2!=null){this.logDebug("getRecordHiliteCSSText for field:"+_3.name+" on record:"+this.echo(_1)+"\n- gives back value: "+_2,"hiliting")} return _2},isc.A.convertCSSToProperties=function isc_Canvas_convertCSSToProperties(_1,_2){if(_1==null)return null;var _3=_1.split(";"),_4;_3.map(function(_9){var _5=_9.split(":");if(_5.length!=2)return null;var _6=/^\s*(\S*)\s*$/,_7=_5[0].cssToCamelCaps().replace(_6,"$1"),_8=_5[1].replace(_6,"$1");if(!_2||_2.contains(_7)){if(!_4)_4={};_4[_7]=_8}});return _4},isc.A.getExportFieldValue=function isc_Canvas_getExportFieldValue(_1,_2,_3){return this.htmlUnescapeExportFieldValue(this.getStandaloneFieldValue(_1,_2,false))},isc.A.addDetailedExportFieldValue=function isc_Canvas_addDetailedExportFieldValue(_1,_2,_3,_4,_5,_6,_7){var _8=_6.allowedProperties,_9=_6.propagateInputHilites,_10=_6.alwaysExportExpandedStyles,_11=_6.exportDatesAsFormattedString;var _12=_4.name,_13=this.getRecordHiliteCSSText(_3,null,_4),_14,_15={};var _16=this.getExportBGColor(_7,_5,_3);if(_7!=null&&_16){_13+="; backgroundColor: "+_16} var _17=this.getDeclarativeFormat(_4);if(_17){_15.rawValue=_3[_4.name];_15.format=_17}else if(isc.isA.Date(_3[_4.name])&&!_11){_15=this.getDateFormattingProperties(_4,_3[_4.name],_1[_4.title])} if(isc.isA.Number(_3[_4.name])){_15.rawValue=_3[_4.name]} if(_15&&isc.getKeys(_15).length==0){_15=null} if(_4.exportRawValues||(this.exportRawValues&&_4.exportRawValues!=false)) _14=_3[_4[this.fieldIdProperty]];else _14=this.getExportFieldValue(_3,_4.name,_5);if(!_4.userSummary||!_9){if(_13||_15){var _18=this.convertCSSToProperties(_13,_8);if(_15){if(!_18)_18={};isc.addProperties(_18,_15)} if(_18){if(_10) _1[_2]=[{value:_14,style:_18}];else _1[_2]=_18}} return} if(!_4.userSummary.text)this.logError("Summary field does not have text format");var _19=[],_20={},_21={};var _22=(_13&&_13!="");for(var _23 in _4.userSummary.summaryVars){var _24=_4.userSummary.summaryVars[_23],_25=this.getField(_24);if(!_25)_19.add(_24);else{_20[_23]=_25;var _26=this.getRecordHiliteCSSText(_3,null,_25);if(_26){_21[_23]=_26;_22=true}}} if(!_22)return;if(_19.length!=0&&_13){if(_10){_1[_2]={style:this.convertCSSToProperties(_13,_8),value:_14}}else{_1[_2]=this.convertCSSToProperties(_13,_8)} return} var _27=null,_28=null,_29=[];var _30=this;var _31=function(_42,_43){if(_42){_42=_30.htmlUnescapeExportFieldValue(_42);if(_27&&_28==_43){_27.value+=_42}else{if(_27)_29.push(_27);_27={value:_42};_28=_43;if(_43)_27.style=_30.convertCSSToProperties(_43,_8)}}};var _32=_4.userSummary.text.split("#"),_33=/^\{([A-Z]+)\}/;if(_32[0])_31(_32[0],_13);for(var i=1;i<_32.length;i++){var _35=_32[i],_36,_37,_38,_39,_40,_41;_38=_35.charAt(0);_37=_20[_38];if(_37)_41=_35.substr(1);else if(_36=_35.match(_33)){_41=_35.substr(_36[0].length);_38=_36[1];_37=_20[_38];if(!_37)_41=this.missingSummaryFieldValue+_41}else _41="#"+_35;if(_37){_39=this.getExportFieldValue(_3,_37.name,this.getFieldNum(_37.name));_40=null;if(_13)_40=(_40||"")+_13;if(_21[_38])_40=(_40||"")+_21[_38]} _31(_39,_40);_31(_41,_13)} if(_27)_29.push(_27);_1[_2]=_29},isc.A.getDeclarativeFormat=function isc_Canvas_getDeclarativeFormat(_1){return!_1?null:_1.exportFormat||_1.format},isc.A.getClientExportData=function isc_Canvas_getClientExportData(_1,_2){var _3=this.originalData||this.data,_4=[],_5=this.getClientExportFields(_1),_6,_7,_8,_9,_10=_1&&_1.exportFields;if(_1==null)_1={};if(_1.exportData!=null)_3=_1.exportData;_6=_1.includeHiddenFields;_7=_1.allowedProperties;_8=_1.includeCollapsedNodes;_9=_1.alwaysExportExpandedStyles;if(_10){if(_6!==false)_6=true} if(isc.isA.ResultSet(_3))_3=_3.getAllLoadedRows();if(isc.isA.Tree(_3)){if(_8)_3=_3.getAllNodes();else _3=_3.getOpenList()} var _11={settings:_1,callback:_2,chunkSize:this.exportDataChunkSize,data:_3,exportData:_4,fields:_5,includeHiddenFields:_6,allowedProperties:_7,includeCollapsedNodes:_8,alwaysExportExpandedStyles:_9,totalRows:_3.getLength(),startRow:0,endRow:Math.min(this.exportDataChunkSize,_3.getLength()),exportFieldsSpecified:_10};_1.exportRowBGColors={};_1.exportColumnBGColors={};_11.firstTimeStamp=_11.thisTimeStamp=isc.timeStamp();this.logInfo("starting export chunking process - "+_11.firstTimeStamp,"export");this.getClientExportDataChunk(_11);return});isc.evalBoundary;isc.B.push(isc.A.getClientExportDataChunk=function isc_Canvas_getClientExportDataChunk(_1){var _2=_1.settings,_3=_1.data,_4=_1.exportData,_5=_1.fields,_6=_1.includeHiddenFields,_7=_1.includeCollapsedNodes,_8=_1.totalRows,_9=_1.startRow,_10=_1.endRow,_11=_2.exportValueFields,_12=_1.exportFieldsSpecified,_13=_2.exportRowBGColors,_14=_2.exportColumnBGColors;for(var _15=_9;_15<_10;_15++){var _16=_3[_15],_17=this.getRecordExportObject(_16,_5,_6,_7,_11,_12,_2,_15);;_4.push(_17);var _18=this.getExportRowBGColor(_15,_16);if(_18){_13[_15]=_18}} for(var _19=0;_19<_5.length;_19++){var _20=_5[_19];if((!this.fields.contains(_20))&&!_6)continue;var _21=this.getFieldNum(_20.name);var _22=this.getExportColumnBGColor(_21);if(_22){_14[_21]=_22}} if(_1.endRow<_1.totalRows){_1.lastTimeStamp=_1.thisTimeStamp;_1.thisTimeStamp=isc.timeStamp();if(this.logIsInfoEnabled("export")){this.logInfo("processed "+_1.endRow+" rows - starting next chunk - "+((_1.thisTimeStamp-_1.lastTimeStamp)/1000),"export")} _1.startRow=_1.endRow;_1.endRow=Math.min(_1.startRow+_1.chunkSize,_1.totalRows);return this.delayCall("getClientExportDataChunk",[_1],0)} if(this.showGridSummary&&this.summaryRow&&this.exportIncludeSummaries){var _23=this.summaryRow,_3=this.getGridSummaryData(true);for(var _15=0;_15<_3.getLength();_15++){var _16=_3[_15],_17=this.getRecordExportObject(_16,_5,_6,_7,_11,_12,_2,_15);;_4.push(_17)}} if(_1.callback){var _3=_1.exportData;if(this.logIsInfoEnabled("export")){this.logInfo("finished processing "+_1.endRow+" rows - about to export - "+isc.timestamp(),"export")} this.fireCallback(_1.callback,"data,context",[_3,_1.settings])}},isc.A.getClientExportFields=function isc_Canvas_getClientExportFields(_1){var _2=this.getAllFields();var _3=[],i,_5=_2.length,_6;if(isc.isAn.Object(_1)&&_1.exportFields){for(i=0;i<_5;++i){_6=_2[i];if(_1.exportFields.contains(_6.name))_3.add(_6)} _2=_3}else{for(i=0;i<_5;++i){_6=_2[i];if(this.$71s(_6)){_3[_3.length]=_6}} _2=_3} return _2},isc.A.getRecordExportObject=function isc_Canvas_getRecordExportObject(_1,_2,_3,_4,_5,_6,_7,_8){var _9={};for(var _10=0;_10<_2.length;_10++){var _11=_2[_10];if((!this.fields.contains(_11))&&!_3)continue;var _12=this.getFieldNum(_11.name),_13=_11.name,_14=_13+"$style",_15;if(_11.exportRawValues||(this.exportRawValues&&_11.exportRawValues!=false)) _15=_1[_11[this.fieldIdProperty]];else _15=this.getExportFieldValue(_1,_11.name,_12);if(_15==null||_15==" ")_15="";if(!_6){if(_5){if(_11.displayField){var _16=_11.name;if(_16==_13)_16+="_value";_9[_16]=_1[_11.name]}}} _9[_13]=_15;this.addDetailedExportFieldValue(_9,_14,_1,_11,_12,_7,_8)} return _9},isc.A.htmlUnescapeExportFieldTitle=function isc_Canvas_htmlUnescapeExportFieldTitle(_1){return this.htmlUnescapeExportFieldValue(_1)},isc.A.htmlUnescapeExportFieldValue=function isc_Canvas_htmlUnescapeExportFieldValue(_1){if(isc.isA.String(_1))return _1.unescapeHTML().replace(/<.*?>/g,isc.emptyString);return _1},isc.A.addHiliteSpan=function isc_Canvas_addHiliteSpan(_1,_2,_3){var _4=this.getRecordHiliteCSSText(_1,null,_2);if(_4)return""+_3+"";else return _3},isc.A.getRawValue=function isc_Canvas_getRawValue(_1,_2){if(!_1||!_2)return null;var _3=_2.dataPath==null?_2.displayField:isc.Canvas.$923(_2,this);return isc.Canvas.$70o(_3,_2,_1,this)},isc.A.getFormattedValue=function isc_Canvas_getFormattedValue(_1,_2,_3){return _3},isc.A.fieldIsVisible=function isc_Canvas_fieldIsVisible(_1){return true},isc.A.getSpecifiedField=function isc_Canvas_getSpecifiedField(_1){return this.getField(_1)},isc.A.getStandaloneFieldValue=function isc_Canvas_getStandaloneFieldValue(_1,_2,_3){var _4=this.getSpecifiedField(_2),_5;if(!_4)return;if(_4.userFormula)_5=this.getFormulaFieldValue(_4,_1);else if(_4.userSummary)_5=this.getSummaryFieldValue(_4,_1);else{if(this.$425&&this.$425(_4)){_5=_1[_4.displayField]}else{_5=this.getRawValue(_1,_2)} if(!_3)_5=this.getFormattedValue(_1,_2,_5)} var _6=this.addHiliteSpan(_1,_4,_5);return _6},isc.A.getDateFormattingProperties=function isc_Canvas_getDateFormattingProperties(_1,_2,_3){if(!isc.SimpleType.inheritsFrom(_1.type,"date"))return;if(!isc.isA.Date(_2))return;var _4=isc.SimpleType.inheritsFrom(_1.type,"datetime");var _5;if(_1.dateFormatter&&isc.isA.Function(Date.prototype[_1.dateFormatter])){_5=_1.dateFormatter}else if(_1.displayFormat&&isc.isA.Function(Date.prototype[_1.displayFormat])){_5=_1.displayFormat} if(!_5){var _6=this.getDataSource(),_7=_6?_6.getField(_1.name):null,_8=_7?_7.dateFormatter||_7.displayFormat:null;if(_8&&isc.isA.Function(Date.prototype[_8])){_5=_8}} if(!_5){var _9;if(this.datetimeFormatter!=null&&_4){_9=this.datetimeFormatter}else{_9=this.dateFormatter} if(_9&&isc.isA.Function(Date.prototype[_9])){_5=_9}} if(!_5){var _10=!_4?Date.prototype.$el:Date.prototype.$68e;if(_10&&isc.isA.Function(Date.prototype[_10])){_5=_10}} var _11={rawValue:_2,dateFormatter:_5};return _11},isc.A.getExportBGColor=function isc_Canvas_getExportBGColor(_1,_2,_3){return null},isc.A.getExportRowBGColor=function isc_Canvas_getExportRowBGColor(_1,_2){return null},isc.A.getExportColumnBGColor=function isc_Canvas_getExportColumnBGColor(_1){return null},isc.A.exportClientData=function isc_Canvas_exportClientData(_1,_2){if(_2)_1.$90b=_2;this.getClientExportData(_1,this.getID()+".exportClientDataReply(data,context)");return},isc.A.exportClientDataReply=function isc_Canvas_exportClientDataReply(_1,_2){if(_1==null||_1.length==0){isc.warn(this.emptyExportMessage);return} var _3=_2||{},_4=_3.exportAs?_3.exportAs:this.defaultExportAs,_5=_3.exportFilename?_3.exportFilename:this.defaultExportFilename,_6=_3.exportDisplay?_3.exportDisplay:this.defaultExportDisplay,_7=_3.downloadToNewWindow==null?(_6=="window"):_3.downloadToNewWindow;var _8={operationId:_3.operationId,showPrompt:false,transport:_3.exportToClient===false?"xmlHttpRequest":"hiddenFrame",exportResults:true,downloadResult:!(_3.exportToClient===false),download_filename:(_6=="window"?_5:null),params:_3.params,xmlHttpRequestResponseType:_3.xmlHttpRequestResponseType};if(_3.exportRawValues==null){_3.exportRawValues=false} var _9={targetMainWindow:_3.targetMainWindow,downloadToNewWindow:_7,exportDisplay:_3.exportDisplay,exportAs:_3.exportAs,exportToClient:_3.exportToClient,exportToFilesystem:_3.exportToFilesystem,exportPath:_3.exportPath,exportFilename:_5,exportDelimiter:_3.exportDelimiter,exportHeader:_3.exportHeader,exportHeaderless:_3.exportHeaderless,exportFooter:_3.exportFooter,exportDefaultBGColor:_3.exportDefaultBGColor,exportAlternateRowBGColor:_3.exportAlternateRowBGColor,exportRowBGColors:_3.exportRowBGColors,exportColumnBGColors:_3.exportColumnBGColors,exportWrapHeaderTitles:_3.exportWrapHeaderTitles,exportTitleSeparatorChar:_3.exportTitleSeparatorChar,exportSpanTitleSeparator:_3.exportSpanTitleSeparator,exportShowHeaderSpanTitles:_3.exportShowHeaderSpanTitles,lineBreakStyle:_3.lineBreakStyle,exportDatesAsFormattedString:_3.exportDatesAsFormattedString,exportHeaderBGColor:_3.exportHeaderBGColor,exportHeaderTextColor:_3.exportHeaderTextColor,exportRawValues:_3.exportRawValues,exportStreaming:_3.exportStreaming,exportCurrencySymbol:isc.NumberUtil.currencySymbol,params:_3.params};var _10=_1.$142v,_11=_1.$142w;if(_10==null){_10=this.getClientExportFields(_3);for(var i=0;i<_10.length;i++){if(isc.isAn.Object(_10[i]))_10[i]=_10[i].name} var _13=[];for(var i=0;i<_10.length;++i){if(this.getField(_10[i])!=null)_13.add(_10[i])} _10=_13} _9.exportFields=_10;var _14=this.getAllFields();var _15=[];for(var i=0;i<_14.length;++i){var _16=_14[i];if(_16.userFormula!=null){_15[_15.length]=_16.userFormula;_15[_15.length-1].name=_16.name;_15[_15.length-1].title=_16.title}} if(_15.length>0){var _17=[];for(var u=0;u<_14.length;++u){_17[u]={name:_14[u].name,title:_14[u].title}} _9.formulaFields=_15;_9.formulaRemap=_17} if(_11==null){var _11={};if(this.headerSpans&&_3.exportShowHeaderSpanTitles!==false){_9.exportHeaderSpans=this.prepareHeaderSpansForExport(this.headerSpans,_14,_11)} if(_10){_9.exportOtherFields={};for(var i=0;i<_10.length;++i){var _19=_10[i];if(!_11.hasOwnProperty(_19)){var _16=this.getField(_19);_9.exportOtherFields[_19]=this.htmlUnescapeExportFieldTitle(_16.exportTitle||_16.title||_16.name)}}}}else{_9.exportOtherFields=_11} _9.exportDefaultBGColor=this.exportDefaultBGColor;_9.exportAlternateRowBGColor=this.exportAlternateRowBGColor;if(isc.isA.Function(this.getExportRowBGColors)){_9.exportRowBGColors=this.getExportRowBGColors()} if(isc.isA.Function(this.getExportColumnBGColors)){_9.exportColumnBGColors=this.getExportColumnBGColors()} if(this.headerHeight&&this.exportHeaderHeights){_9.exportHeaderHeight=this.headerHeight} if(this.exportFieldWidths&&isc.isAn.Array(this.fields)&&this.getFieldWidth){_9.exportFieldPixelWidths=this.getFieldPixelWidths();_9.exportWidthScale=this.exportWidthScale} if(_9.exportWrapHeaderTitles==null){_9.exportWrapHeaderTitles=this.exportWrapHeaderTitles} if(this.exportFieldAlignments&&isc.isAn.Array(this.fields)){_9.exportAlignments=this.getFieldAlignments()} if(_3.exportPropertyIdentifier){_9.exportPropertyIdentifier=_3.exportPropertyIdentifier} if(this.getDataSource()){isc.addProperties(_8,{exportContext:_9});this.getDataSource().exportClientData(_1,_8,_2.$90b)}else{isc.DMI.callBuiltin({methodName:"downloadClientExport",arguments:[_1,_4,_5,_6,_9],requestParams:_8,callback:_2.$90b})} if(_2.$90b&&_8.downloadResult)this.fireCallback(_2.$90b)},isc.A.prepareHeaderSpansForExport=function isc_Canvas_prepareHeaderSpansForExport(_1,_2,_3){_3=_3||{};var _4=[];for(var i=0;i<_1.length;i++){var _6=_1[i].exportTitle||_1[i].title||isc.emptyString;_4[i]={title:this.htmlUnescapeExportFieldTitle(_6)};if(_1[i].height!=null){_4[i].height=_1[i].height} if(_1[i].spans){_4[i].spans=this.prepareHeaderSpansForExport(_1[i].spans,_2,_3)}else{_4[i].fields=[];for(var j=0;j<_1[i].fields.length;j++){var _8=_1[i].fields[j],_9=_2.find("name",_8);if(!_9||this.getFieldNum(_8)==-1)continue;var _10=_9.exportTitle||_9.title||_9.name;if(_10){var _11=this.htmlUnescapeExportFieldTitle(_10);_4[i].fields.push({name:_8,title:_11});_3[_8]=_11}}}} return _4},isc.A.getSort=function isc_Canvas_getSort(){return this.$73p?this.removeSortSpecifierMarkers(isc.shallowClone(this.$73p)):null},isc.A.removeSortSpecifierMarkers=function isc_Canvas_removeSortSpecifierMarkers(_1){if(_1==null)return null;_1.clearProperty("context");_1.clearProperty("sortIndex");return _1},isc.A.setSort=function isc_Canvas_setSort(_1){this.$73p=isc.shallowClone(_1);if(this.data&&this.$73p&&this.$73p.length>0){for(var i=0;i0&&_5.$74r.contains(_2)) {return true}} return false},isc.A.getFieldDependencies=function isc_Canvas_getFieldDependencies(_1){if(!_1.validators)return null;var _2=this.getDataSource(),_3=[];for(var i=0;i<_1.validators.length;i++){var _5=_1.validators[i];if(!_5)continue;if(!_5.$74r&&_5.applyWhen&&_2!=null){_5.$74r=_2.getCriteriaFields(_5.applyWhen)} if(_5.dependentFields){if(!isc.isAn.Array(_5.dependentFields)){_5.dependentFields=[_5.dependentFields]} for(var j=0;j<_5.dependentFields.length;j++){_3.add(_5.dependentFields[j])}} if(_5.$74r&&_5.$74r.length>0) {_3.addList(_5.$74r)}} return(_3.length==0?null:_3)},isc.A.validateFieldAndDependencies=function isc_Canvas_validateFieldAndDependencies(_1,_2,_3,_4,_5){var _6={},_7=false,_8={valid:true,errors:null,resultingValue:null};_4[_1.name]=_3;var _9=this.validateField(_1,_1.validators,_3,_4,_5);if(_9!=null){_8.valid=_9.valid;_8.stopOnError=_9.stopOnError;if(_9.errors!=null){this.addValidationError(_6,_1.name||_1.dataPath,_9.errors)} if(_9.resultingValue!=null){_8.resultingValue=_9.resultingValue;_4[_1.name]=_9.resultingValue} _7=true} var _10=_1.name||_1.dataPath,_11=this.getFields()||[];for(var i=0;i<_11.length;i++){var _13=_11[i];if(_13.name!=_10&&_13.dataPath!=_10&&this.isFieldDependentOnOtherField(_13,_10)) {_9=this.validateField(_13,_13.validators,_4[_13.name],_4,_5);if(_9!=null){if(_9.errors!=null){this.addValidationError(_6,_13.name||_13.dataPath,_9.errors)}else{this.addValidationError(_6,_13.name||_13.dataPath,null)} if(_9.resultingValue!=null){_4[_13.name]=_9.resultingValue}}}} _8.errors=_6;return(_7?_8:null)},isc.A.validateField=function isc_Canvas_validateField(_1,_2,_3,_4,_5){if(!_2)return null;var _6=[],_7=false,_8=null,_9={valid:true,errors:null,resultingValue:null},_10=false,_11=false;if(!isc.isAn.Array(_2)){_2=[_2]} for(var i=0;i<_2.length;i++){var _13=_2[i];if(!_13)continue;var _14=isc.Validator.getValidatorType(_13);if(_5&&_5.typeValidationsOnly&&!this.$685.contains(_14)) {continue} if(_5&&_5.dontValidateNullValue&&_3==null&&_14!="required"&&_14!='requiredIf') {continue} if(!_5||!_5.changing||(_13.validateOnChange!=false&&(_13.validateOnChange||_1.validateOnChange||this.validateOnChange))) {if(isc.Validator.isServerValidator(_13)){_10=true;if(_13.stopOnError)_11=true;continue} if(_13.applyWhen){var _15=this.getDataSource(),_16=_13.applyWhen;if(_15==null){isc.logWarn("Conditional validator criteria ignored because form has no dataSource")}else{var _17=_15.applyFilter([_4],_16);if(_17.length==0){isc.Validator.performAction(null,_1,_13,_4,this);continue}}} _7=true;var _18=(isc.Validator.processValidator(_1,_13,_3,null,_4)==true);isc.Validator.performAction(_18,_1,_13,_4,this);if(!_18){var _19=isc.Validator.getErrorMessage(_13);if(_19==null){if(_5&&_5.unknownErrorMessage){_19=_5.unknownErrorMessage}else{_19=this.unknownErrorMessage}} _6.add(_19);if(_13.stopOnError)_8=true} if(_13.resultingValue!=null){_9.resultingValue=_13.resultingValue;_3=_13.resultingValue} if(!_18&&_13.stopIfFalse)break}} if(_10&&_5&&_5.deferServerValidation){_9.needsServerValidation=true}else if(_10&&(!_5||_5.skipServerValidation!=true)){_11=this.$75e(_11,_1.stopOnError,this.stopOnError);var _20=((_5&&_5.serverValidationMode)?_5.serverValidationMode:this.$746),_21=(_11||_1.synchronousValidation||this.synchronousValidation||false);var _22;if(this.getDataSource()){_22=this.getDataSource().$708(_4)}else{_22=isc.addProperties({},_4)} var _23=this.getSaveOperationType&&this.getSaveOperationType()=="add";var _24=isc.Canvas.$923(_1,this);isc.DynamicForm.$70n(_24,_1,_3,_22,this,true);this.fireServerValidation(_1,_22,_20,_21,_5.rowNum,_23);_7=true} _9.stopOnError=(_6.length>0&&this.$75e(_8,_1.stopOnError,this.stopOnError));_9.errors=(_6.length==0?null:_6);_9.valid=(_6.length==0);return(_7?_9:null)},isc.A.validateFieldsOnServer=function isc_Canvas_validateFieldsOnServer(_1,_2,_3){if(!isc.isAn.Array(_1))_1=[_1];var _4=null,_5=false;for(var i=0;i<_1.length;i++){var _7=_1[i],_8=_7.validators;for(var j=0;j<_8.length;j++){var _10=_8[j];if(!_10)continue;if(!isc.Validator.isServerValidator(_10))continue;if(_10.stopOnError){_4=_7;_5=true}}} _5=this.$75e(_5,_7.stopOnError,this.stopOnError);var _11=((_3&&_3.serverValidationMode)?_3.serverValidationMode:this.$746),_12=(_5||_7.synchronousValidation||this.synchronousValidation||false);var _13;if(this.getDataSource()){_13=this.getDataSource().$708(_2)}else{_13=isc.addProperties({},_2)} var _14=this.getSaveOperationType&&this.getSaveOperationType()=="add";if(!_4)_4=_1[0];this.fireServerValidation(_4,_13,_11,_12,_3.rowNum,_14)},isc.A.$75e=function isc_Canvas__resolveStopOnError(_1,_2,_3){if(_1!=null)return _1;return(_2==null&&_3)||_2||false},isc.A.fireServerValidation=function isc_Canvas_fireServerValidation(_1,_2,_3,_4,_5,_6){var _7=this.getDataSource();if(_7==null)return;var _8={showPrompt:_4,prompt:isc.RPCManager.validateDataPrompt,validationMode:_3,internalClientContext:{component:this,fieldName:_1.name,rowNum:_5}};if(_6)_8.pendingAdd=true;if(_3==this.$746){for(var _9 in _2){if(_2[_9]===null)delete _2[_9]}} if(!_4){var _10=this.$75c(_1);_8.internalClientContext.pendingFields=_10} _7.validateData(_2,this.$742,_8)},isc.A.$742=function isc_Canvas__handleServerValidationReply(_1,_2,_3){if(_1.status==isc.DSResponse.STATUS_FAILURE){isc.logWarn("Server-side validation failed: "+_1.data);isc.say(_1.data)} var _4=_1.internalClientContext,_5=_4.component,_6=_4.pendingFields,_7=_1.errors==null?null:isc.DynamicForm.getSimpleErrors(_1.errors);if(_1.errors){for(var _8 in _7){var _9=_7[_8],_10=_5.getField(_8);if(_9!=null&&_10!=null){if(!isc.isAn.Array(_9))_9=[_9];var _11=null;for(var i=0;i<_9.length;i++){_5.addFieldErrors(_8,_9[i].errorMessage,false,_4.rowNum);if(_9[i].stopOnError)_11=true} if(_10.redraw)_10.redraw();_11=_5.$75e(_11,_10.stopOnError,_5.stopOnError);if(_8==_4.fieldName&&_11==true&&!_10.hasFocus){if(!_10.synchronousValidation&&!_5.synchronousValidation){isc.logWarn("Server validation for "+_8+" signaled stopOnError but validation is not set for synchronousValidation:true - stop ignored.")}else{_5.focusInItem(_10)}}}}} if(_6){_5.$75d(_6)} if(_5&&_5.handleAsyncValidationReply!=null){if(_7!=null){_7=isc.DynamicForm.formatValidationErrors(_7)} _5.handleAsyncValidationReply(_7==null,_7)}},isc.A.handleAsyncValidationReply=function isc_Canvas_handleAsyncValidationReply(_1,_2){},isc.A.isPendingAsyncValidation=function isc_Canvas_isPendingAsyncValidation(){return!isc.isAn.emptyObject(this.$75a)},isc.A.$75c=function isc_Canvas__registerAsyncValidation(_1){var _2=this.getFields()||[],_3=[_1.name],_4=_1.name;this.$75a[_4]=(this.$75a[_4]==null?1:this.$75a[_4]++);for(var i=0;i<_2.length;i++){var _6=_2[i];if(_6.name!=_4&&this.isFieldDependentOnOtherField(_6,_4)){var _7=_6.name;_3.add(_7);this.$75a[_7]=(this.$75a[_7]==null?1:this.$75a[_7]++)}} return _3},isc.A.$75d=function isc_Canvas__clearAsyncValidation(_1){var _2=false;for(var i=0;i<_1.length;i++){this.$75a[_1[i]]--;if(this.$75a[_1[i]]==0){delete this.$75a[_1[i]];_2=true}} if(_2&&this.$75b!=null){var _4=true;for(var i=0;i0){_4=false;break}} if(_4){this.$75b=null;isc.clearPrompt()}}},isc.A.blockOnFieldBusy=function isc_Canvas_blockOnFieldBusy(_1){if(this.$75b!=null)return true;var _2=false;for(var _3 in this.$75a){_2=true;break} if(!_2)return false;var _4=this.getFieldDependencies(_1)||[];_4.add(_1.name);var _5=[];for(var i=0;i<_4.length;i++){var _7=_4[i];if(this.$75a[_7]>0){_5.add(_7)}} if(_5.length>0){this.$75b=_5;this.delayCall("showValidationBlockingPrompt");return true} return false},isc.A.showValidationBlockingPrompt=function isc_Canvas_showValidationBlockingPrompt(){if(this.$75b)isc.showPrompt(isc.RPCManager.validateDataPrompt)},isc.A.enableField=function isc_Canvas_enableField(_1){if(_1==null||isc.isAn.emptyString(_1))return;var _2=this.getField(_1);if(_2){_2.disabled=false;this.redraw()}},isc.A.disableField=function isc_Canvas_disableField(_1){if(_1==null||isc.isAn.emptyString(_1))return;var _2=this.getField(_1);if(_2){_2.disabled=true;this.redraw()}},isc.A.showField=function isc_Canvas_showField(_1){if(_1==null||isc.isAn.emptyString(_1))return;var _2=this.getField(_1);if(_2)_2.show()},isc.A.hideField=function isc_Canvas_hideField(_1){if(_1==null||isc.isAn.emptyString(_1))return;var _2=this.getField(_1);if(_2)_2.hide()},isc.A.setFieldCanEdit=function isc_Canvas_setFieldCanEdit(_1,_2){if(_1==null||isc.isAn.emptyString(_1))return;var _3=this.getField(_1);if(_3){_3.canEdit=_2;this.redraw()}},isc.A.isOffline=function isc_Canvas_isOffline(){if(this.data&&this.data.$78c)return true;return false},isc.A.setSelectionComponent=function isc_Canvas_setSelectionComponent(_1,_2){if(!_1){if(this.selectionComponent!=null){this.ignore(this.selectionComponent,"selectionChanged");this.ignore(this.selectionComponent,"cellSelectionChanged")} delete this.selectionComponent;if(this.valuesManager){this.ignore(this.valuesManager,"$71e")}}else{var _3=_1;if(isc.isA.String(_1))_1=window[_1];if(!_1||!isc.isA.Canvas(_1)||_1.dataArity!="multiple"){this.logWarn("setSelectionComponent() - selection component specified as:"+_3+" this is not a valid component");return} if(!_1.getSelection){this.logWarn("setSelectionComponent() - specified selection component:"+_1+" does not support selection - ignoring");return} if(!_2&&this.selectionComponent){if(this.selectionComponent==_1)return if(this.isObserving(this.selectionComponent,"selectionChanged")){this.ignore(this.selectionComponent,"selectionChanged")} if(this.isObserving(this.selectionComponent,"cellSelectionChanged")){this.ignore(this.selectionComponent,"cellSelectionChanged")}} this.selectionComponent=_1;if(!this.selectionComponent.useCellRecords){this.observe(this.selectionComponent,"selectionChanged","observer.selectionComponentSelectionChanged(observed, record,state)")}else{this.observe(this.selectionComponent,"cellSelectionChanged","observer.selectionComponentCellSelectionChanged(observed, cellList)")}}},isc.A.selectionComponentSelectionChanged=function isc_Canvas_selectionComponentSelectionChanged(_1,_2,_3){if(!_3){if(this.dataArity=="single"){_2=null}else{return}} if(this.dataArity=="single"){this.setData(_2)}else{var _4=this.dataPath.split("/");this.setData(_2[_4[_4.length-1]]);if(this.dataArity=="multiple"&&isc.isA.Function(this.deselectAllRecords)){this.deselectAllRecords()}}},isc.A.selectionComponentCellSelectionChanged=function isc_Canvas_selectionComponentCellSelectionChanged(_1,_2){for(var i=0;i<_2.length;i++){var _4=_2[i],_5=this.selectionComponent.getCellRecord(_4[0],_4[1]);if(_1.cellIsSelected(_5))break;_5=null} if(_5){this.$71d=_1.getPrimaryKeys(_5);this.editRecord(_5)}},isc.A.createFieldPickerWindowMenuItem=function isc_Canvas_createFieldPickerWindowMenuItem(_1){return{title:_1,component:this,click:function(){this.component.editFields()}}},isc.A.editFields=function isc_Canvas_editFields(){var _1=this.fieldPickerWindow;if(_1)_1.show();else{var _2=this.fieldPickerWindowProperties||{},_3=_2.fieldPickerProperties||{};this.fieldPickerWindow=this.createAutoChild("fieldPickerWindow",{fieldPickerProperties:isc.addProperties(_3,{dataBoundComponent:this,canEditTitles:this.canEditTitles})});this.fieldPickerWindow.show()}});isc.B._maxIndex=isc.C+247;isc.ClassFactory.defineClass("MathFunction","Class");isc.A=isc.MathFunction;isc.A.$65z={};isc.A=isc.MathFunction;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.registerFunction=function isc_c_MathFunction_registerFunction(_1){if(!this.$65z[_1.name]){this.$65z[_1.name]=_1} var _2=isc.addProperties({},_1);_2.name=_1.name.toLowerCase();_2.defaultSortPosition=-1;if(!this.$65z[_2.name]){this.$65z[_2.name]=_2} var _3=isc.addProperties({},_1);_3.name=_1.name.toUpperCase();_3.defaultSortPosition=-1;if(!this.$65z[_3.name]){this.$65z[_3.name]=_3} var _4=isc.addProperties({},_1);_4.name=(_1.name.substr(0,1).toUpperCase()+_1.name.substr(1));_4.defaultSortPosition=-1;if(!this.$65z[_4.name]){this.$65z[_4.name]=_4}},isc.A.getRegisteredFunctionNames=function isc_c_MathFunction_getRegisteredFunctionNames(){return isc.getKeys(this.$65z)},isc.A.getDefaultFunctionNames=function isc_c_MathFunction_getDefaultFunctionNames(){var _1=this.getDefaultFunctions(),_2=_1.makeIndex("name",false);return isc.getKeys(_2)},isc.A.getRegisteredFunctions=function isc_c_MathFunction_getRegisteredFunctions(){return isc.getValues(this.$65z)},isc.A.getDefaultFunctions=function isc_c_MathFunction_getDefaultFunctions(){var _1=this.getRegisteredFunctions(),_2=_1.findAll("defaultSortPosition",-1)||[];for(var i=0;i<_2.length;i++){var _4=_2[i];_1.remove(_4)} _1.sortByProperties(["defaultSortPosition"],["true"]);return _1},isc.A.getRegisteredFunctionIndex=function isc_c_MathFunction_getRegisteredFunctionIndex(){var x=this.getRegisteredFunctions();var _2=x.makeIndex("name",false);return _2},isc.A.getDefaultFunctionIndex=function isc_c_MathFunction_getDefaultFunctionIndex(){return this.getDefaultFunctions().makeIndex("name",false)},isc.A.isRegistered=function isc_c_MathFunction_isRegistered(_1){if(this.$65z[_1])return true;return false});isc.B._maxIndex=isc.C+8;isc.A=isc.MathFunction.getPrototype();isc.A.defaultSortPosition=-1;isc.MathFunction.registerFunction(isc.MathFunction.create({name:"max",description:"Maximum of two values",usage:"max(value1, value2)",defaultSortPosition:1,jsFunction:function(_1,_2){return Math.max(_1,_2)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"min",description:"Minimum of two values",usage:"min(value1, value2)",defaultSortPosition:2,jsFunction:function(_1,_2){return Math.min(_1,_2)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"clamp",description:"Value clamped to range specified",usage:"clamp(value1, value2)",defaultSortPosition:2,jsFunction:function(_1,_2,_3){return isc.Math.clamp(_1,_2,_3)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"round",description:"Round a value up or down, optionally providing decimalDigits as the maximum number of decimal places to round to. For fixed or precision rounding, use toFixed() and toPrecision() respectively.",usage:"round(value,decimalDigits)",defaultSortPosition:3,jsFunction:function(_1,_2){if(_2){var _3=Math.pow(10,_2),_4=Math.round(_1*_3)/_3;return _4} return Math.round(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"ceil",description:"Round a value up",usage:"ceil(value)",defaultSortPosition:4,jsFunction:function(_1){return Math.ceil(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"floor",description:"Round a value down",usage:"floor(value)",defaultSortPosition:5,jsFunction:function(_1){return Math.floor(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"abs",description:"Absolute value",usage:"abs(value)",defaultSortPosition:6,jsFunction:function(_1){return Math.abs(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"pow",description:"Value1 to the power of Value2",usage:"pow(value1, value2)",defaultSortPosition:7,jsFunction:function(_1,_2){return Math.pow(_1,_2)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"sin",description:"Sine of a value",usage:"sin(value)",defaultSortPosition:8,jsFunction:function(_1){return Math.sin(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"cos",description:"Cosine of a value",usage:"cos(value)",defaultSortPosition:9,jsFunction:function(_1){return Math.cos(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"tan",description:"Tangent of a value",usage:"tan(value)",defaultSortPosition:10,jsFunction:function(_1){return Math.tan(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"ln",description:"Natural logarithm of a value",usage:"ln(value)",defaultSortPosition:11,jsFunction:function(_1){return Math.log(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"log",description:"logarithm of a value with the specified base",usage:"log(base, value)",defaultSortPosition:12,jsFunction:function(_1,_2){return Math.log(_2)/Math.log(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"asin",description:"Arcsine of a value",usage:"asin(value)",defaultSortPosition:13,jsFunction:function(_1){return Math.asin(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"acos",description:"Arccosine of a value",usage:"acos(value)",defaultSortPosition:14,jsFunction:function(_1){return Math.acos(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"atan",description:"Arctangent of a value (-PI/2 to PI/2 radians)",usage:"atan(value)",defaultSortPosition:15,jsFunction:function(_1){return Math.atan(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"atan2",description:"Angle theta of a point (-PI to PI radians)",usage:"atan2(value1,value2)",defaultSortPosition:16,jsFunction:function(_1,_2){return Math.atan2(_1,_2)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"exp",description:"The value of Evalue",usage:"exp(value)",defaultSortPosition:17,jsFunction:function(_1){return Math.exp(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"random",description:"Random number between 0 and 1",usage:"random()",defaultSortPosition:18,jsFunction:function(){return Math.random()}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"sqrt",description:"Square root of a value",usage:"sqrt(value)",defaultSortPosition:19,jsFunction:function(_1){return Math.sqrt(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"toPrecision",description:"Format a number to a length of precision digits, rounding or adding a decimal point and zero-padding as necessary. Note that the values 123, 12.3 and 1.23 have an equal precision of 3. Returns a formatted string and should be used as the outermost function call in a formula. For rounding, use round().",usage:"toPrecision(value,precision)",defaultSortPosition:20,jsFunction:function(_1,_2){var _3=_1;if(isc.isA.String(_3))_3=parseFloat(_3);if(isNaN(_3))return _1;return _3.toPrecision(_2)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"toFixed",description:"Round or zero-pad a number to digits decimal places. Returns a formatted string and should be used as the outermost function call in a formula. To round values or restrict precision, use round() and toPrecision() respectively.",usage:"toFixed(value,digits)",defaultSortPosition:21,jsFunction:function(_1,_2){var _3=_1;if(isc.isA.String(_3))_3=parseFloat(_3);if(isNaN(_3))return _1;return _3.toFixed(_2)}}));isc.Canvas.registerStringMethods({userAddedField:"field",selectionUpdated:"record,recordList",onFetchData:"criteria,requestProperties"});isc.defineClass("EdgedCanvas","Canvas");isc.A=isc.EdgedCanvas.getPrototype();isc.A.redrawOnResize=false;isc.A._redrawWithParent=false;isc.A.$jp=false;isc.A.$jo=false;isc.A.useClipDiv=false;isc.A.overflow=isc.Browser.isMoz?isc.Canvas.VISIBLE:isc.Canvas.HIDDEN;isc.A.$ks=false;isc.A.$tb=0;isc.A.$td=0;isc.A.$tc=0;isc.A.$te=0;isc.A.$y0=["TL","T","TR","L","center","R","BL","B","BR"];isc.A.$98g={L:true,TL:true,BL:true};isc.A.$98h={R:true,TR:true,BR:true};isc.A.$920=["TR","T","TL","R","center","L","BR","B","BL"];isc.A.skinImgDir="images/edges/";isc.A.edgeImage="[SKIN]/rounded/frame/FFFFFF/6.png";isc.A.shownEdges={TL:true,T:true,TR:true,L:true,R:true,BL:true,B:true,BR:true};isc.A.edgeSize=6;isc.A=isc.EdgedCanvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$61h="";isc.A.$y2="=8)||(isc.Browser.isMoz&&isc.Browser.isUnix))) {var _12=isc.EdgedCanvas.$y8;if(!_12){_12=isc.EdgedCanvas.$y8={width:"100%",height:"100%"};if(isc.Browser.isSafari)_12.align="middle";if(isc.Browser.isStrict&&!isc.Browser.isTransitional){_12.extraCSSText="display:block"} if(isc.Browser.isTouch){_12.extraCSSText=((_12.extraCSSText==null?"":_12.extraCSSText+";")+"-webkit-touch-callout:none");_12.extraStuff=" oncontextmenu='javascript:return false;'"}} _12.src=_2;var _13=this.imgHTML(_12);if(isc.Browser.isSafari){_13="
"+_13+"
"} var _14=_13.lastIndexOf(isc.dot);_9=this.$oa+_13.substring(0,_14);_10=_13.substring(_14);_11=""}else{_9=" STYLE='background:url("+_6;_10=_5+");" _11="'>"} if(this.edgeColor)_9+=isc.$ag+this.edgeColor;var _15=this.shownEdges;var _16=this.isRTL(),_17=_16?this.$y5:this.$y4,_18=_16?this.$y4:this.$y5;_1.append(this.$y2,_17,this.$y3,_18,this.$oa,"")}else{_1.append("")} if(isc.Browser.isMoz||isc.Browser.isWebKit){this.$y9(_7,_19,isc.px,_9,_10,_11,3,5,_15,_1)}else{this.$y9(_7,null,isc.px,_9,_10,_11,3,5,_15,_1)} _1.append("");this.$y9(_7,this.$y7,isc.px,_9,_10,_11,6,8,_15,_1);_1.append("
");return _1.release(false)},isc.A.$y9=function isc_EdgedCanvas__writeEdgeCells(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10){var _11=this.isRTL()?this.$920:this.$y0;var _12=isc.Browser.isIE9||isc.Browser.isEdge;for(var i=_7;i<=_8;i++){var _14=_11[i],_15=null;if(_12&&_2!=null){if(this.$98g[_14]){this.$98i[1]=this.$y4;this.$98i[2]=isc.px;this.$98i[4]=_2;this.$98i[5]=_3;_15=this.$98i.join(isc.emptyString)}else if(this.$98h[_14]){this.$98i[1]=this.$y5;this.$98i[2]=isc.px;this.$98i[4]=_2;this.$98i[5]=_3;_15=this.$98i.join(isc.emptyString)}else if(_14!=isc.Canvas.CENTER){this.$98i[1]=100;this.$98i[2]=this.$o9;this.$98i[4]=_2;this.$98i[5]=_3;_15=this.$98i.join(isc.emptyString)}} var _16=this.getEdgeStyleName(_14),_17=_16?this.$4n:null;if(_9[_14]||(this.showCenter&&_14==isc.Canvas.CENTER)){if(_2!=null){_10.append(_1,_2,_3)}else{_10.append(_1,"''")} if(isc.Browser.isOpera){if(_14=="TL"||_14=="L"||_14=="BL"){_10.append(" width=",this.$y4)}else if(_14=="TR"||_14=="R"||_14=="BR"){_10.append(" width=",this.$y5)}} _10.append(_17,_16,_4,this.getEdgePrefix(_14),isc.$ag,_14,_5,_15,_6)}else{if(this.centerBackgroundColor&&_14==isc.Canvas.CENTER){_10.append("")}else{_10.append(this.$61h,_17,_16,this.$61i)}}}},isc.A.getEdgeStyleName=function isc_EdgedCanvas_getEdgeStyleName(_1){if(this.edgeStyleName==null)return;if(!this.addEdgeStyleSuffix)return this.edgeStyleName;if(!this.$61j||this.$61j.base!=this.edgeStyleName){var _2=this.edgeStyleName;this.$61j={base:_2,TL:_2+"$61o",T:_2+"$61p",TR:_2+"$61q",L:_2+"$61r",C:_2+"$61s",R:_2+"$61t",BL:_2+"$61u",B:_2+"$61v",BR:_2+"$61w"}} return this.$61j[_1]},isc.A.getEdgePrefix=function isc_EdgedCanvas_getEdgePrefix(_1){},isc.A.$ub=function isc_EdgedCanvas__handleResized(){if(!this.isDrawn()||this.$za)return;if(isc.Browser.isOpera){this.masterElement.bringToFront();return} if(isc.Browser.isIE&&isc.Browser.isStrict){var _1=this.getHandle().firstChild.rows[1];this.$u9(_1.style,this.$o5,this.getHeight()-this.$y6-this.$y7);return} if(isc.Browser.isWebKit){var _1=this.getHandle().firstChild.rows[1];var _2=Math.max(0,this.getHeight()-this.$y6-this.$y7);for(var i=0;i<_1.cells.length;i++){this.$u9(_1.cells[i].style,this.$o5,_2)} return} if(!isc.Browser.isMoz)return;var _4=this.getHandle().firstChild.rows[1].cells[1],_5=this.getHeight()-this.$y6-this.$y7;if(_5<0)_5=0;this.$u9(_4.style,this.$o5,_5);if(this.forceMozRowHeight){var _6=_4.parentNode.cells;this.$u9(_6[0].style,this.$o5,_5);this.$u9(_6[2].style,this.$o5,_5)}},isc.A.layoutChildren=function isc_EdgedCanvas_layoutChildren(_1,_2,_3){var _4=this.children;if(!_4)return;isc.Canvas.$b4.layoutChildren.call(this,_1,_2,_3);if(_4.length==0)return;var _5=_4[0];_5.setRect(this.$tb,this.$td,this.getInnerWidth(),this.getInnerHeight())},isc.A.addChild=function isc_EdgedCanvas_addChild(_1,_2,_3){isc.Canvas.$b4.addChild.call(this,_1,_2,_3);this.layoutChildren("addChild")},isc.A.draw=function isc_EdgedCanvas_draw(_1,_2,_3,_4){if(!this.readyToDraw())return this;if(this.masterElement){var _5=this.masterElement,_6=false;while(_5){if(_5.position==this.$411){_6=true;break} _5=_5.parentElement} if(!_6||isc.Page.isLoaded())this.fitToMaster();else isc.Page.setEvent("load",this,isc.Page.FIRE_ONCE,"fitToMaster")} this.invokeSuper(isc.EdgedCanvas,"draw",_1,_2,_3,_4);this.$ub();return this},isc.A.fitToMaster=function isc_EdgedCanvas_fitToMaster(){if(this.destroyed)return;var _1=this.masterElement;if(_1.$uu){isc.Timer.setTimeout({target:this,methodName:"fitToMaster"},200);return}else if(_1.$rm){_1.adjustOverflow()} var _2=_1.$ta();this.setRect(_1.getOffsetLeft()+_2.left,_1.getOffsetTop()+_2.top,Math.max(1,(_1.getVisibleWidth()-_2.left-_2.right)),Math.max(1,(_1.getVisibleHeight()-_2.top-_2.bottom)))},isc.A.redraw=function isc_EdgedCanvas_redraw(){this.Super("redraw",arguments);this.$ub();return this},isc.A.masterResized=function isc_EdgedCanvas_masterResized(){var _1=this.masterElement;if(this.masterElement.isAnimating([this.$do,this.$zb]))return;var _2=isc.Browser.isSafari;if(_2){this.delayCall("$663",[_1])}else{this.$663(_1)}},isc.A.$663=function isc_EdgedCanvas__sizeToMaster(_1){if(this.destroyed||_1!=this.masterElement)return;var _2=_1.$ta();this.resizeTo(Math.max(1,_1.getVisibleWidth()-_2.left-_2.right),Math.max(1,_1.getVisibleHeight()-_2.top-_2.bottom))},isc.A.setEdgeImage=function isc_EdgedCanvas_setEdgeImage(_1){if(this.edgeImage==_1)return;this.edgeImage=_1;this.markForRedraw("setEdgeImage")});isc.B._maxIndex=isc.C+17;isc.defineClass("DropShadow","EdgedCanvas");isc.A=isc.DropShadow.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$114r=true;isc.A.skinImgDir="images/shared/shadows/";isc.A.edgeImage="[SKIN]ds.png";isc.A.isMouseTransparent=true;isc.A.shownEdges={center:true,TL:true,T:true,TR:true,L:true,R:true,BL:true,B:true,BR:true};isc.A.depth=4;isc.A.showShadow=false;isc.B.push(isc.A.initWidget=function isc_DropShadow_initWidget(){this.setDepth(this.depth);this.Super(this.$oc)},isc.A.setDepth=function isc_DropShadow_setDepth(_1){if(_1!=null)this.depth=_1;var _2=(this.softness||this.depth),_3=this.$zc!=_2;this.$zc=_2;this.edgeSize=2*this.$zc;var _4=this.$du(this.offset,Math.round(this.depth/2));this.$zd=this.$du(this.offsetX,_4);this.$ze=this.$du(this.offsetY,_4);this.updateEdgeSizes();if(this.isDrawn()){this.masterMoved();if(_3||this.isDirty())this.redraw();this.masterResized()}},isc.A.getEdgePrefix=function isc_DropShadow_getEdgePrefix(_1){if(_1!=isc.Canvas.CENTER)return this.$zc},isc.A.masterMoved=function isc_DropShadow_masterMoved(){var _1=this.visibility==isc.Canvas.HIDDEN,_2=this.masterElement,_3=_2.getOffsetLeft(),_4=_2.getOffsetTop();if(!_1){_3+=this.$zd-this.$zc;_4+=this.$ze-this.$zc} this.moveTo(_3,_4)},isc.A.masterResized=function isc_DropShadow_masterResized(){if(this.visibility==isc.Canvas.HIDDEN)return;var _1=this.masterElement;this.resizeTo(_1.getVisibleWidth()+2*this.$zc,_1.getVisibleHeight()+2*this.$zc)},isc.A.fitToMaster=function isc_DropShadow_fitToMaster(){this.masterMoved();this.masterResized()},isc.A.setVisibility=function isc_DropShadow_setVisibility(_1,_2,_3,_4,_5){var _6=(_1!=this.visibility);this.invokeSuper(isc.DropShadow,"setVisibility",_1,_2,_3,_4,_5);if(_6){if(_1==isc.Canvas.HIDDEN){this.resizeTo(1,1);var _7=this.masterElement;this.moveTo(_7.getOffsetLeft(),_7.getOffsetTop())}else{this.fitToMaster()}}},isc.A.getCurrentCursor=function isc_DropShadow_getCurrentCursor(_1,_2,_3,_4){var _5=this.masterElement;if(_5&&_5.dragResizeFromShadow)this.canDragResize=_5.canDragResize;return this.invokeSuper(isc.DropShadow,"getCurrentCursor",_1,_2,_3,_4)},isc.A.prepareForDragging=function isc_DropShadow_prepareForDragging(_1,_2,_3,_4){var _5=this.masterElement;if(_5&&_5.dragResizeFromShadow)this.canDragResize=_5.canDragResize;return this.invokeSuper(isc.DropShadow,"prepareForDragging",_1,_2,_3,_4)});isc.B._maxIndex=isc.C+9;isc.ClassFactory.defineClass("Hover");isc.A=isc.Hover;isc.A.delay=500;isc.A.leftOffset=15;isc.A.topOffset=15;isc.A.hoverCanvasDefaults={defaultWidth:100,defaultHeight:1,baseStyle:"canvasHover",align:isc.Canvas.LEFT,valign:isc.Canvas.TOP,wrap:true,autoDraw:false};isc.A=isc.Hover;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.show=function isc_c_Hover_show(_1,_2,_3,_4){if(isc.isA.Canvas(_1)){this.showingHoverComponent=true;this.hoverCanvas=_1;this.hoverCanvas.hide=function(){this.Super("hide",arguments);isc.Hover.hoverCanvasHidden()};if(_4!=null){_4.hoverCanvas=_1}} if(!this.hoverCanvas)this.$zf();var _5=this.hoverCanvas;if(_1==null||_1==""){_5.hide();return} this.lastHoverCanvas=_4;if(!this.showingHoverComponent)_5.setContents(_1);if(_2==null)_2={};var _6=this.hoverCanvasDefaults;if(_5.setAlign)_5.setAlign(_2.align||_6.align);if(_5.setVAlign)_5.setVAlign(_2.valign||_6.valign);if(_5.setBaseStyle)_5.setBaseStyle(_2.baseStyle||_6.baseStyle);if(_5.setOpacity)_5.setOpacity(_2.opacity||_6.opacity);if(_5.setWrap)_5.setWrap(_2.wrap!=null?_2.wrap:_6.wrap);if(_2.moveWithMouse!=null)this.$zg=_2.moveWithMouse else this.$zg=this.moveWithMouse;var _7=isc.EH.getX(),_8=isc.EH.getY(),_9=_2.left,_10=_2.top,_11=_2.width||(this.showingHoverComponent?_5.width:_6.defaultWidth),_12=_2.height||(this.showingHoverComponent?_5.height:_6.defaultHeight);if(_9!=null||_10!=null){_9=_9?_9:_7+this.leftOffset;_10=_10?_10:_8+this.topOffset}else{_5.setRect(null,-9999,_11,_12);if(!_5.isDrawn())_5.draw();if(!_5.isVisible())_5.show();else _5.redrawIfDirty("placing hover");var _13=_3?_3:[_7-this.leftOffset,_8-this.topOffset,2*this.leftOffset,2*this.topOffset];var _14=_5.getPeerRect();var _15=isc.Canvas.$t7(_14[2],_14[3],_13,"bottom",false,"outside-right");_9=_15[0];_10=_15[1]} _5.setRect(_9,_10,_11,_12);_5.bringToFront();if(!_5.isDrawn()||!_5.isVisible())_5.show();if(this.$zg){this.$zh=isc.Page.setEvent("mouseMove",function(){isc.Hover.$zi()})} return},isc.A.hoverCanvasHidden=function isc_c_Hover_hoverCanvasHidden(){var _1=this.lastHoverCanvas;delete this.lastHoverCanvas;if(_1!=null){_1.$80l()}},isc.A.hide=function isc_c_Hover_hide(){var _1=isc.Hover.hoverCanvas;if(_1!=null){if(this.$zh){isc.Page.clearEvent("mouseMove",this.$zh);delete this.$zh} _1.hide();if(this.showingHoverComponent){if(!_1)return;delete this.hoverCanvas;this.showingHoverComponent=false}else{var _2=this.hoverCanvasDefaults;_1.setRect(0,-1000)}}},isc.A.$zf=function isc_c_Hover__makeHoverCanvas(){var _1=isc.addProperties({hide:function(){this.Super("hide",arguments);isc.Hover.hoverCanvasHidden()}},this.hoverCanvasDefaults);this.hoverCanvas=isc.Label.create(_1)},isc.A.$zi=function isc_c_Hover__moveWithMouse(){var _1=this.hoverCanvas.getPeerRect();var _2=isc.Canvas.$t7(_1[2],_1[3],this.getMousePointerRect(),"bottom",false,"outside-right");this.hoverCanvas.moveTo(_2[0],_2[1])},isc.A.getMousePointerRect=function isc_c_Hover_getMousePointerRect(){return[isc.EH.getX()-this.leftOffset,isc.EH.getY()-this.topOffset,2*this.leftOffset,2*this.topOffset]},isc.A.setAction=function isc_c_Hover_setAction(_1,_2,_3,_4){if(_4==null)_4=this.delay;if(this.isActive||_4==0){_2.apply((_1?_1:this),_3?_3:[]);this.isActive=true} else{if(this.timer!=null)this.timer=isc.Timer.clear(this.timer);this.actionTarget=(_1?_1:this);this.action=_2;this.actionArgs=_3?_3:[];this.timer=isc.Timer.setTimeout({target:isc.Hover,methodName:"$zj"},_4)}},isc.A.$zj=function isc_c_Hover__doAction(){if(this.action&&!this.actionTarget.destroyed){this.action.apply(this.actionTarget,this.actionArgs)} this.actionTarget=this.action=this.actionArgs=null;this.isActive=true},isc.A.clear=function isc_c_Hover_clear(){this.hide();if(this.timer!=null)this.timer=isc.Timer.clear(this.timer);this.actionTarget=this.action=this.actionArgs=null;this.isActive=false});isc.B._maxIndex=isc.C+9;if(!isc.Comm)isc.ClassFactory.defineClass("Comm");isc.A=isc.Comm;isc.A.$zk=/^[\$_a-zA-Z][\$\w]*$/;isc.A.BACKREF_PREFIX="$$BACKREF$$:";isc.A.indent=" ";isc.A=isc.Comm;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.serialize=function isc_c_Comm_serialize(_1,_2){var _3={strictQuoting:false,dateFormat:"logicalDateConstructor"};if(_2!=null)_3.prettyPrint=_2;return isc.JSON.encode(_1,_3)});isc.B._maxIndex=isc.C+1;isc.ClassFactory.defineClass("JSON",null,null,true);isc.A=isc.JSON;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.encode=function isc_c_JSON_encode(_1,_2){return isc.JSONEncoder.create(_2).encode(_1)},isc.A.decode=function isc_c_JSON_decode(_1){return eval("("+_1+")")});isc.B._maxIndex=isc.C+2;isc.ClassFactory.defineClass("JSONEncoder");isc.A=isc.JSONEncoder;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$zm=function isc_c_JSONEncoder__serialize_remember(_1,_2,_3){if(_1&&_1.obj&&_1.obj.add)_1.obj.add(_2);if(_1&&_1.path&&_1.path.add)_1.path.add(_3)},isc.A.$42b=function isc_c_JSONEncoder__serialize_cleanNode(_1){var _2=_1["$42c"];if(_2!=null){var _3=window[_2];if(_3&&_3.parentProperty&&_1[_3.parentProperty]){_1=_3.getCleanNodeData(_1)}} return _1},isc.A.$zl=function isc_c_JSONEncoder__serialize_alreadyReferenced(_1,_2){var _3=_1.obj.indexOf(_2);if(_3==-1)return null;return _1.path[_3]},isc.A.$zp=function isc_c_JSONEncoder__serialize_addToPath(_1,_2){if(isc.isA.Number(_2)){return _1+"["+_2+"]"}else if(!isc.Comm.$zk.test(_2)){return _1+'["'+_2+'"]'}else{return _1+"."+_2}});isc.B._maxIndex=isc.C+4;isc.A=isc.JSONEncoder.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.serializeInstances="long";isc.A.dateFormat="xmlSchema";isc.A.strictQuoting=true;isc.A.circularReferenceMode="path";isc.A.circularReferenceMarker="$$BACKREF$$";isc.A.prettyPrint=true;isc.B.push(isc.A.encode=function isc_JSONEncoder_encode(_1){this.objRefs={obj:[],path:[]};var _2=this.$eu(_1,this.prettyPrint?this.leadingIndent||"":null,null);this.objRefs=null;return _2},isc.A.encodeDate=function isc_JSONEncoder_encodeDate(_1){if(!_1.toSchemaDate){var _2=new Date(_1.getTime());_2.logicalDate=this.logicalDate;_2.logicalTime=this.logicalTime;_1=_2} if(this.dateFormat=="dateConstructor"){return _1.$eu()}else if(this.dateFormat=="logicalDateConstructor"){if(_1.logicalTime){return"isc.Time.createLogicalTime("+_1.getHours()+", "+_1.getMinutes()+", "+_1.getSeconds()+", "+_1.getMilliseconds()+")"}else if(_1.logicalDate){return"isc.DateUtil.createLogicalDate("+_1.getFullYear()+", "+_1.getMonth()+", "+_1.getDate()+")"}else{return _1.$eu()}}else{return'"'+_1.toSchemaDate(null,this.trimMilliseconds)+'"'}},isc.A.$eu=function isc_JSONEncoder__serialize(_1,_2,_3){if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1)){if(_1==null)_1=null;else{if(window.SmartGWT.warnOnSerializeError){window.SmartGWT.throwUnconvertibleObjectException(_1,window.SmartGWT.serializeErrorMessage)} _1=String.asSource(_1+"")} return _1} if(!_3){if(_1&&isc.isA.Function(_1.getID))_3=_1.getID();else _3=""} if(_1==null)return null;if(isc.isA.String(_1))return(_1.asSource!=null?_1.asSource():String.asSource(_1));if(isc.isA.Function(_1))return null;if(isc.isA.Number(_1)||isc.isA.SpecialNumber(_1))return _1;if(isc.isA.Boolean(_1))return _1;if(isc.isA.Date(_1))return this.encodeDate(_1);if(isc.isAn.Instance(_1)||isc.isA.Class(_1)){if(this.serializeInstances=="skip")return null;else if(this.serializeInstances=="short")return isc.echoLeaf(_1)} var _4=isc.JSONEncoder.$zl(this.objRefs,_1);if(_4!=null&&_3.contains(_4)){var _5=_3.substring(_4.length,_4.length+1);if(_5=="."||_5=="["||_5=="]"){var _6=this.circularReferenceMode;if(_6=="marker"){return"'"+this.circularReferenceMarker+"'"}else if(_6=="path"){return"'"+this.circularReferenceMarker+":"+_4+"'"}else{return null}}} if(_1==window){this.logWarn("Serializer encountered the window object at path: "+_3+" - returning null for this slot.");return null} isc.JSONEncoder.$zm(this.objRefs,_1,_3);if(isc.isA.Function(_1.$eu))return _1.$eu(_2,this.objRefs,_3,_2);if(isc.isAn.Array(_1))return this.$zn(_1,_3,this.objRefs,_2);var _7;if(_1.getSerializeableFields){_7=_1.getSerializeableFields([],[])}else{_7=_1} return this.$zo(_7,_3,this.objRefs,_2)},isc.A.$zn=function isc_JSONEncoder__serializeArray(_1,_2,_3,_4){var _5=isc.SB.create();_5.append("[");for(var i=0,_7=_1.length;i<_7;i++){var _8=_1[i];if(_4!=null)_5.append("\r",_4,isc.Comm.indent);var _9=isc.JSONEncoder.$zp(_2,i);var _10=this.$eu(_8,(_4!=null?_4+isc.Comm.indent:null),_9);_5.append(_10+",");if(_4!=null)_5.append(" ")} _5=_5.release(false);var _11=_5.lastIndexOf(",");if(_11>-1)_5=_5.substring(0,_11);if(_4!=null)_5+="\r"+_4;_5+="]";return _5},isc.A.$zo=function isc_JSONEncoder__serializeObject(_1,_2,_3,_4){var _5=isc.SB.create(),_6;_1=isc.JSONEncoder.$42b(_1);try{for(var _7 in _1)break}catch(e){if(this.showDebugOutput){if(isc.isAn.XMLNode(_1))return isc.echoLeaf(_1);var _8;if(e.message){_8=(e.message.asSource!=null?e.message.asSource():String.asSource(e.message));return"{ cantEchoObject: "+_8+"}"}else{return"{ cantEchoObject: 'unspecified error' }"}}else return null} _5.append("{");for(var _7 in _1){if(_7==null)continue;if(this.skipInternalProperties&&(isc.startsWith(_7,isc.$ag)||isc.startsWith(_7,isc.$75g)))continue;var _9=_1[_7];if(isc.isA.Function(_9))continue;var _10=isc.Browser.isSGWT?window.SmartGWT.isNativeJavaObject(_9):false;if(_7!=isc.gwtRef&&!_10&&isc.isAn.Instance(_9)&&this.serializeInstances=="skip")continue;var _11=_7.toString();if(this.strictQuoting||!isc.Comm.$zk.test(_11)){if(_11.contains('"')){if(_11.contains("'")){_11='"'+this.convertToEncodedQuotes(_11)+'"'}else{_11="'"+_11+"'"}}else{_11='"'+_11+'"'}} var _12=isc.JSONEncoder.$zp(_2,_7);var _13;if(_7==isc.gwtRef){if(!this.showDebugOutput)continue;_13=String.asSource("{GWT Java Obj}")}else if(_7==isc.gwtModule){if(!this.showDebugOutput)continue;_13=String.asSource("{GWT Module}")}else if(_10){_13=(_9==null?null:String.asSource(_9+""))}else{_13=this.$eu(_9,(_4!=null?_4+isc.Comm.indent:null),_12)} if(_4!=null)_5.append("\r",_4,isc.Comm.indent);_5.append(_11,":"+_13,",");if(_4!=null)_5.append(" ")} _5=_5.release(false);var _14=_5.lastIndexOf(",");if(_14>-1)_5=_5.substring(0,_14);if(_4!=null)_5+="\r"+_4;_5+="}";return _5},isc.A.convertToEncodedQuotes=function isc_JSONEncoder_convertToEncodedQuotes(_1){return _1.replace(String.$e0,""").replace(String.$ez,"'")},isc.A.convertFromEncodedQuotes=function isc_JSONEncoder_convertFromEncodedQuotes(_1){return _1.replace(new RegExp(""","g"),'"').replace(new RegExp("'","g"),"'")});isc.B._maxIndex=isc.C+7;isc.addGlobal("clone",function(_1,_2){return isc.Comm.$360(_1)});isc.addGlobal("shallowClone",function(_1){return isc.Comm.$675(_1)});isc.A=isc.Comm;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.clone=isc.clone;isc.A.shallowClone=isc.shallowClone;isc.B.push(isc.A.$360=function isc_c_Comm__clone(_1){var _2;if(_1===_2)return _2;if(_1==null)return null;if(isc.isA.String(_1)||isc.isA.Boolean(_1)||isc.isA.Number(_1)||isc.isA.Function(_1))return _1;if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1))return _1;if(isc.isA.Date(_1))return _1.duplicate();if(isc.isAn.Array(_1))return isc.Comm.$361(_1);if(isc.isA.Function(_1.clone)){if(isc.isA.Class(_1))return isc.echoLeaf(_1);return _1.clone()} return isc.Comm.$362(_1)},isc.A.$361=function isc_c_Comm__cloneArray(_1){var _2=[];for(var i=0,_4=_1.length;i<_4;i++){_2[i]=isc.Comm.$360(_1[i])} return _2},isc.A.$362=function isc_c_Comm__cloneObject(_1){var _2={};for(var _3 in _1){var _4=_1[_3];if(_3==isc.gwtRef||_3==isc.gwtModule)continue;_2[_3]=isc.Comm.$360(_4)} return _2},isc.A.$675=function isc_c_Comm__shallowClone(_1){var _2;if(_1===_2)return _2;if(_1==null)return null;if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1))return _1;if(isc.isA.String(_1)||isc.isA.Boolean(_1)||isc.isA.Number(_1)||isc.isA.Function(_1))return _1;if(isc.isA.Date(_1))return _1.duplicate();if(isc.isAn.Array(_1))return isc.Comm.$676(_1);return isc.addProperties({},_1)},isc.A.$676=function isc_c_Comm__shallowCloneArray(_1){var _2=[];for(var i=0,_4=_1.length;i<_4;i++){if(isc.isAn.Array(_1[i]))_2[i]=_1[i];else _2[i]=isc.Comm.$675(_1[i])} return _2});isc.B._maxIndex=isc.C+5;isc.defineClass("AutoTest");isc.A=isc.AutoTest;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.fallback_valueOnlyField="$75w";isc.A.fallback_startMarker="[";isc.A.fallback_endMarker="]";isc.A.fallback_separator="||";isc.A.fallback_equalMarker="=";isc.A.slashMarker="$fs$";isc.A.robustLocatorWarning="If you are seeing unexpected results in recorded tests, it is likely that the application has been modified since the test was recorded. We would recommend re-recording your test script with the latest version of your application. Note that you may be able to avoid seeing this message in future by using the AutoChild subsystem or providing explicit global IDs to components whose function within the page is unlikely to change.";isc.B.push(isc.A.locatorsEqual=function isc_c_AutoTest_locatorsEqual(_1,_2){if(_1&&_2){_1=_1.replace(/^[^\/]*(\/\/.*?)[\/]*$/,"$1");_2=_2.replace(/^[^\/]*(\/\/.*?)[\/]*$/,"$1")} return _1==_2},isc.A.getLocator=function isc_c_AutoTest_getLocator(_1,_2,_3){var _4=isc.EH.lastEvent,_5;if(_4){if(_1==null){_1=_4.nativeTarget;_5=true} if(_3==null){_3=[isc.EH.getX(),isc.EH.getY()]}} var _6;if(isc.isA.Canvas(_1)){_6=_1;_1=_6.getHandle()}else{_6=isc.AutoTest.locateCanvasFromDOMElement(_1)} var _7=_6?_6.getLocator(_1,_5,_3):"";if(_2&&_7&&_7!=""&&_6.checkLocatorForNativeElement(_7,_1)) {_7=""} return _7},isc.A.getObjectLocator=function isc_c_AutoTest_getObjectLocator(_1){var _2=this.$90w(_1);var _3=_2.getLocator();if(_2==_1){return _3} var _4=_2.getObjectLocator(_1);if(_4!=null)_3+="/"+_4;return _3},isc.A.getLocatorObjectType=function isc_c_AutoTest_getLocatorObjectType(_1){var _2=_1.substring(_1.lastIndexOf("/")+1);if(_2&&_2.startsWith("objectType=")){return _2.substring(11)} return"Canvas"},isc.A.locateCanvasFromDOMElement=function isc_c_AutoTest_locateCanvasFromDOMElement(_1){return isc.EH.getEventTargetCanvas(null,_1)},isc.A.getRelativeLocator=function isc_c_AutoTest_getRelativeLocator(_1,_2){var _3=this.locateCanvasFromDOMElement(_2),_4=this.getRelativeCanvasLocator(_1,_3)+"/"+_3.getInteriorLocator(_2);return _4},isc.A.isRelativeLocator=function isc_c_AutoTest_isRelativeLocator(_1){return(!_1.startsWith("//"))},isc.A.getRelativeCanvasLocator=function isc_c_AutoTest_getRelativeCanvasLocator(_1,_2){if(_1==_2)return"";var _3=_2,_4=[];while(_3!=_1){var _5=_3.getLocatorParent();if(_5==null){this.logWarn("Unexpected error: attempting to get relative locator from baseComponent:"+_1+" and target:"+_2+". Unable to determine relationship between these objects.");return""} var _6=_5.getChildLocator(_3);if(_6!=null)_4.add(_6);_3=_5} var _7="";for(var i=_4.length-1;i>=0;i--){_7+=_4[i];if(i!=0)_7+="/"} return _7},isc.A.getRelativeObjectLocator=function isc_c_AutoTest_getRelativeObjectLocator(_1,_2){var _3=this.$90w(_2);var _4=this.getRelativeCanvasLocator(_1,_3);if(_3==_2){return _4} var _5=_3.getObjectLocator(_2);if(_5!=null)_4+="/"+_5;return _4},isc.A.$90w=function isc_c_AutoTest__getCanvasForSCObject(_1){if(_1.$75r!=null)_1=_1.$75r;if(_1.isSectionHeader){return _1.parentElement} if(isc.FormItem&&isc.isA.FormItem(_1))return _1.form;if(isc.isA.Canvas(_1))return _1;this.logWarn("getRelativeLocatorObject() passed target object:"+this.echo(_1)+" This is not a recognized supported SmartClient object - expected to be a Canvas, FormItem or SectionStackSection only");return null},isc.A.getElement=function isc_c_AutoTest_getElement(_1){return this.getAttribute(_1,isc.Canvas.$95j)},isc.A.getObject=function isc_c_AutoTest_getObject(_1){return this.getAttribute(_1,isc.Canvas.$95k)},isc.A.getValue=function isc_c_AutoTest_getValue(_1){return this.getAttribute(_1,isc.Canvas.$95l)},isc.A.getAttribute=function isc_c_AutoTest_getAttribute(_1,_2){if(!_1)return null;_1=_1.replace(/^(scLocator|ScID)=/i,"");if(_1.startsWith("'")||_1.startsWith('"'))_1=_1.substring(1);if(_1.endsWith("'")||_1.endsWith('"'))_1=_1.substring(0,_1.length-1);if(!_1.startsWith("//")){if(_1.startsWith("ID=")||_1.startsWith("id=")){_1=_1.substring(3)} _1='//*any*[ID="'+_1+'"]'} var _3=_1.trim("/").split("/"),_4;var _5=_3[0];if(!_5)return null;_3=_3.slice(1);var _6={attribute:_2},_7=this.getBaseComponentFromLocatorSubstring(_5,_6);if(!_7)return null;return _7.getAttributeFromSplitLocator(_3,_6)},isc.A.resolveRelativeLocator=function isc_c_AutoTest_resolveRelativeLocator(_1,_2){var _3=_2.split("/");return _1.getAttributeFromSplitLocator(_3,{attribute:isc.Canvas.$95j})},isc.A.resolveRelativeObjectLocator=function isc_c_AutoTest_resolveRelativeObjectLocator(_1,_2){var _3=isc.isAn.Array(_2)?_2:_2.split("/");return _1.getAttributeFromSplitLocator(_3,{attribute:isc.Canvas.$95k})},isc.A.getPageCoords=function isc_c_AutoTest_getPageCoords(_1){var _2=this.getElement(_1);if(_2==null)return;var _3=this.locateCanvasFromDOMElement(_2);return _3?_3.getAutoTestLocatorCoords(_1,_2):null},isc.A.getBaseComponentFromLocatorSubstring=function isc_c_AutoTest_getBaseComponentFromLocatorSubstring(_1,_2){var _3=_1.match("(.*)\\[");var _4=_3?_3[1]:null;switch(_4){case"autoID":var _5=isc.AutoTest.parseLocatorFallbackPath(_1),_6=_5.config,_7="name",_8="Class";var _9=isc.Canvas.getCanvasFromFallbackLocator(_1,_6,isc.Canvas.$tw,_7,_8);if(_9==null){this.setLogFailureText(true,"there's no top level Canvas identifiable by name or Class from fallback locator '"+_1+"' for locator")} return _9;case"testRoot":var _3=_1.match("testRoot\\[(.*)?\\]"),_10=_3?_3[1]:null;if(_10)this.installLocatorConfiguration(_10,_2);if(this.testRoot==null){this.logWarn("Unable to process scLocators starting with "+this.$119l+"... when no test root canvas has been configured");return null} return this.testRoot;case"Menu":if(!isc.Menu){this.setLogFailureText(true,"the Menu module is required to resolve locator");return null} var _11=_1.match(/Menu\[level=(.*)(,.*)?\]/i),_12=_11?_11[1]:null;if(_12!=null){var _13=isc.Menu.getMenuAtLevel(_12);if(_13==null){this.setLogFailureText(true,"there is no Menu corresponding to level '"+_12+"' for locator")} return _13} default:var _14=_4,_3=_1.match('\\[ID=[\\"\'](.*)[\'\\"](,.*)?\\]'),_15=_3?_3[1]:null;if(_15==null){this.setLogFailureText(true,"there appears to be a problem with the syntax for locator");return null} if(_3[2])this.installLocatorConfiguration(_3[2],_2);var _16=window[_15];if(!_16){this.setLogFailureText(true,"there is no "+_14+"with ID '"+_15+"' for locator");return null} if(_16&&_14!="*any*"&&(!isc.isA[_14]||!isc.isA[_14](_16))) {this.logWarn("AutoTest.getElement(): Component:"+_16+" expected to be of class:"+_14)} return _16}},isc.A.installLocatorConfiguration=function isc_c_AutoTest_installLocatorConfiguration(_1,_2){if(!_1)return;var _3=_1.split(",");for(var i=0;i<_3.length;i++){var _5=_3[i].trim().match("([^=]*)=([^=]*)");if(_5)_2[_5[1]]=_5[2]}},isc.A.getLocatorCanvas=function isc_c_AutoTest_getLocatorCanvas(_1){if(_1==null||isc.isAn.emptyString(_1))return null;var _2=_1.split("/"),_3;if(_2==null||_2.length<3)return null;var _4=_2[2];var _5=_2.length;for(var i=3;i<_5;i++){_2[i-3]=_2[i]} _2.length=_5-3;if(!_4)return null;var _7=this.getBaseComponentFromLocatorSubstring(_4);if(_7){var i=0,_8=_7.getChildFromLocatorSubstring(_2[i],i,_2);while(_8!=null){i++;_7=_8;_8=_7.getChildFromLocatorSubstring(_2[i],i,_2)} return _7} return null},isc.A.getLocatorFormItem=function isc_c_AutoTest_getLocatorFormItem(_1){if(_1==null||isc.isAn.emptyString(_1))return null;var _2=_1.split("/"),_3;if(_2==null||_2.length<3)return null;var _4=_2[2];var _5=_2.length;for(var i=3;i<_5;i++){_2[i-3]=_2[i]} _2.length=_5-3;if(!_4)return null;var _7=this.getBaseComponentFromLocatorSubstring(_4);if(_7){var _8=_7.getChildFromLocatorSubstring(_2[0],0,_2);while(_8!=null){_2.removeAt(0);_7=_8;_8=_7.getChildFromLocatorSubstring(_2[0],0,_2)}} if(isc.isA.DynamicForm(_7)){return _7.getItemFromSplitLocator(_2)} return null},isc.A.createLocatorFallbackPath=function isc_c_AutoTest_createLocatorFallbackPath(_1,_2){var _3=[];for(var _4 in _2){var _5=_2[_4];if(isc.isA.String(_5)){_5=_5.replaceAll("/",this.slashMarker);_5=escape(_5)} if(_4==this.fallback_valueOnlyField){_3.add(_5)}else{_3.add(_4+this.fallback_equalMarker+_5)}} return _1+this.fallback_startMarker+_3.join(this.fallback_separator)+this.fallback_endMarker},isc.A.$1232=function isc_c_AutoTest__compareLocatorFallbackConfigValues(_1,_2){if(isc.isA.Number(_1)||isc.isA.Boolean(_1))_1=_1.toString();if(isc.isA.Number(_2)||isc.isA.Boolean(_2))_2=_2.toString();return _1==_2},isc.A.parseLocatorFallbackPath=function isc_c_AutoTest_parseLocatorFallbackPath(_1){var _2=_1.split(this.fallback_startMarker);if(_2==null||_2.length<2)return;var _3=_2[0],_1=_2[1].substring(0,_2[1].length-this.fallback_endMarker.length);var _4=_1.split(this.fallback_separator),_5={};for(var i=0;i<_4.length;i++){var _7=_4[i],_8=_7.indexOf(this.fallback_equalMarker),_9;if(_8==-1){_9=this.fallback_valueOnlyField}else{_9=_7.substring(0,_8);_7=_7.substring(_8+1)} _7=unescape(_7);_7=_7.replaceAll(this.slashMarker,"/");_5[_9]=_7} if(_2[2]!=null){var _7=_2[2].substring(0,_2[2].length-this.fallback_endMarker.length),_8=_7.indexOf(this.fallback_equalMarker),_10=_7.substring(0,_8),_11=_7.substring(_8+1);if(_11.startsWith("\""))_11=_11.substring(1,_11.length-1);_5[_10]=_11} return{name:_3,config:_5}},isc.A.getObjectLocatorFallbackPath=function isc_c_AutoTest_getObjectLocatorFallbackPath(_1,_2,_3,_4){if(_3==null)_3={};if(_4==null)_4={title:"title",Class:"ClassName"};if(isc.isAn.Array(_4)){for(var i=0;i<_4.length;i++){var _6=_2.getProperty?_2.getProperty(_4[i]):_2[_4[i]];if(_6!=null&&!isc.isAn.emptyString(_6))_3[_4[i]]=_6}}else{for(var _7 in _4){var _6=_2.getProperty?_2.getProperty(_4[_7]):_2[_4[_7]];if(_6!=null&&!isc.isAn.emptyString(_6))_3[_7]=_6}} return isc.AutoTest.createLocatorFallbackPath(_1,_3)},isc.A.logRobustLocatorWarning=function isc_c_AutoTest_logRobustLocatorWarning(){if(this.$75z)return;this.logWarn(this.robustLocatorWarning,"AutoTest");this.$75z=true},isc.A.createDetailViewerForTestResults=function isc_c_AutoTest_createDetailViewerForTestResults(_1,_2){var _3=isc.Browser.seleniumPresent;return isc.DetailViewer.create({ID:"isc_AutoTest_DetailViewer",left:_1.getWidth()-300,canDragReposition:true,canDragResize:true,width:280,showEmptyField:false,blockSeparator:"
",autoDraw:true,fields:[{name:"result",valueMap:{failure:"failure",disabled:"disabled"}},{name:"description",escapeHTML:true,formatCellValue:function(_5,_6){_5=_5.replace(/\s+/g," ");_5=_5.replace(/\/gi," ");var _4=!_3||!_6._autoAssignedID;if(_6.ID&&_4)_5=_6.ID+": "+_5;if(_5.length>250)_5=_5.substring(0,250)+"...";return _5}},{name:"detail",escapeHTML:true}],data:_2})},isc.A.setLogFailureForReturnValue=function isc_c_AutoTest_setLogFailureForReturnValue(_1,_2,_3,_4){var _5,_6=_1.emptyLocatorArray(_2)?"directly with":"with the locator suffix '"+_2.join("/")+"' of";_1.setLogFailureText(true,"there is no "+_4+" associated "+_6);return _3},isc.A.getAttributeDefault=function isc_c_AutoTest_getAttributeDefault(_1,_2){switch(_2){case isc.Canvas.$95j:return _1?_1.$1304():null;case isc.Canvas.$95k:return _1?_1:null;case isc.Canvas.$95l:return}});isc.B._maxIndex=isc.C+29;isc.ApplyAutoTestMethods=function(){isc.Canvas.addClassMethods({$95j:"element",$95k:"object",$95l:"value",getFallbackPropertyMatch:function(_219,_31,_32,_220,_34){var _1=_31.scRole,_2=_31.Class,_3=_31.scClass||_31.Class,_4=_31[_219];if(_4==null)return;var _5=_32.findAll(_219,_4)||[];_5=_5.filter(this.isValidFallbackLocatorCandidate);if(_5.length==0)return;var _6;switch(_34){case"Class":if(_2){var _7=_5.findAll("Class",_2);if(_7!=null){_6=_7[0];if(_7.length==1&&_6){if(this.logIsDebugEnabled("AutoTest")){this.logDebug("Locator string:"+_220+" - returning widget with matching "+_219+" and ClassName:"+_6,"AutoTest")} return _6}}} case"scClass":if(_3){var _7=_5.findAll("$75y",_3);if(_7!=null){if(_7.length==1||_6==null) _6=_7[0];if(_7.length==1&&_6){if(this.logIsDebugEnabled("AutoTest")){this.logDebug("Locator string:"+_220+" - returning widget with matching "+_219+" and scClassName:"+_6,"AutoTest")} return _6}}} case"role":if(_1){var _7=_5.findAll("ariaRole",_1);if(_7!=null){if(_7.length==1||_6==null) _6=_7[0];if(_7.length==1&&_6){if(this.logIsDebugEnabled("AutoTest")){this.logDebug("Locator string:"+_220+" - returning widget with matching "+_219+" and role:"+_6,"AutoTest")} return _6}}} default:if(_5.length==1){if(_34!="none"){isc.AutoTest.logRobustLocatorWarning();this.logWarn("Locator string:"+_220+". Returning closest match:"+_5[0]+". This has the same "+_219+" as the recorded component but does not match class or role.","AutoTest")}else{if(this.logIsDebugEnabled("AutoTest")){this.logDebug("Locator string:"+_220+" - returning widget with matching "+_219+":"+_6,"AutoTest")}} return _5[0]}else{this.logWarn("Locator string:"+_220+", attempt to match by "+_219+" failed -- multiple candidate components have this same "+_219+". Attempting to match by index instead.","AutoTest")}}},getCanvasFromFallbackLocator:function Canvas_getCanvasFromFallbackLocator(_219,_31,_32,_33,_34){var _8=_31.name;var _2=_31.Class,_3=_31.scClass||_31.Class,_1=_31.scRole;var _9;switch(_33){case"name":_9=this.getFallbackPropertyMatch("name",_31,_32,_219,_34);if(_9)return _9;case"title":_9=this.getFallbackPropertyMatch("title",_31,_32,_219,_34);if(_9)return _9;default:var _10,_11,_12;switch(_34){case"Class":if(_2&&_31.classIndex){var _13=_32.findAll("Class",_2);if(_13&&_13.length>0){_10=_13[parseInt(_31.classIndex)];if(_13.length==parseInt(_31.classLength)){if(this.logIsInfoEnabled("AutoTest")){this.logInfo("Locator string:"+_219+" - returning widget with matching ClassName / index by ClassName:"+_10,"AutoTest")} return _10}}} case"scClass":if(_3&&_31.scClassIndex){var _14=_32.findAll("$75y",_3);if(_14&&_14.length>0){_11=_14[parseInt(_31.scClassIndex)];if(_14.length==parseInt(_31.scClassLength)){if(this.logIsInfoEnabled("AutoTest")){this.logInfo("Locator string:"+_219+" - returning widget with matching SmartClient superclass / index by ClassName:"+_11,"AutoTest")} return _11}}} case"role":if(_1&&_31.roleIndex){var _15=_32.findAll("ariaRole",_1);if(_15&&_15.length>0){_12=_15[parseInt(_31.roleIndex)];if(_15.length==parseInt(_31.roleLength)){if(this.logIsInfoEnabled("AutoTest")){this.logInfo("Locator string:"+_219+" - returning widget with matching role / index by role:"+_12,"AutoTest")} return _12}}} default:if((_34!="none"&&(_2||_3||_1))||(_31.length!=null&&(parseInt(_31.length)!=_32.length))) {isc.AutoTest.logRobustLocatorWarning()} var _9=_10||_11||_12;if(_9==null){var _16=_31[isc.AutoTest.fallback_valueOnlyField];if(_16==null)_16=_31.index;_16=parseInt(_16);_9=_32[_16]} if(_9){this.logWarn("Locator string:"+_219+" matching by index gave "+_9+". Reliability cannot be guaranteed for matching by index if the underlying application undergoes any changes.","AutoTest");return _9}}} this.logDebug("AutoTest.getElement(): locator substring:"+_219+" parsed to fallback locator name:"+_8+", unable to find relevant child - may refer to inner element.","AutoTest")},isValidFallbackLocatorCandidate:function Canvas_isValidFallbackLocatorCandidate(_219){return _219&&!_219.destroyed&&_219.isVisible()&&_219.isDrawn()}});isc.Class.addClassMethods({getCanvasLocatorFallbackPath:function Class_getCanvasLocatorFallbackPath(_8,_57,_219,_220,_221){if(_220==null)_220={};if(_221==null)_221={};else if(isc.isAn.Array(_221)){var _17={};for(var i=0;i<_221.length;i++){_17[_221[i]]=_221[i]} _221=_17} if(_221.title==null)_221.title="title";if(_221.scRole==null)_221.scRole="ariaRole";if(_221.name==null)_221.name="name";var _19=_57.getClass(),_20=_57.getClassName();_220.Class=_20;var _3;if(!_19.isFrameworkClass){_3=_19.$750} if(_3!=null)_220.scClass=_3;if(_219!=null){_220.index=_219.indexOf(_57);_220.length=_219.length;var _21=_219.findAll("Class",_20);_220.classIndex=_21.indexOf(_57);_220.classLength=_21.length;if(_3!=null){var _22=_219.findAll("$75y",_3);_220.scClassIndex=_22.indexOf(_57);_220.scClassLength=_22.length} if(_57.ariaRole!=null){var _23=_219.findAll("ariaRole",_57.ariaRole);_220.roleIndex=_23.indexOf(_57);_220.roleLength=_23.length}} return isc.AutoTest.getObjectLocatorFallbackPath(_8,_57,_220,_221)}});isc.Class.addMethods({getChildLocatorStrategy:function class_getChildLocatorStrategy(_219){if(isc.AutoTest.locStrategyNames==null){isc.AutoTest.locStrategyNames={}} var _24=isc.AutoTest.locStrategyNames[_219];if(_24==null){var _25=_219;if(isc.isA.String(this.$558[_219])){_25=this.$558[_219]} _24=isc.AutoTest.locStrategyNames[_219]="locate"+_25.substring(0,1).toUpperCase()+_25.substring(1)+"By"} return this[_24]},getChildLocatorTypeStrategy:function class_getChildLocatorTypeStrategy(_219){if(isc.AutoTest.locStrategyTypes==null){isc.AutoTest.locStrategyTypes={}} var _24=isc.AutoTest.locStrategyTypes[_219];if(_24==null){var _25=_219;if(isc.isA.String(this.$558[_219])){_25=this.$558[_219]} _24=isc.AutoTest.locStrategyTypes[_219]="locate"+_25.substring(0,1).toUpperCase()+_25.substring(1)+"Type"} return this[_24]},getAutoChildLocator:function class_getAutoChildLocator(_219){if(this.$542){var _26=_219.getID();for(var _27 in this.$542){var _28=this.$542[_27];if(_28.contains(_26)){if(_219==this[_27])return _27;else{var _29=[];for(var i=0;i<_28.length;i++){_29[i]=window[_28[i]]} return this.getCanvasLocatorFallbackPath(_27,_219,_29)}}}} return null},getCanvasFromFallbackLocator:function class_getCanvasFromFallbackLocator(_219,_31,_32,_33,_34){return isc.Canvas.getCanvasFromFallbackLocator(_219,_31,_32,_33,_34)},getChildFromFallbackLocator:function class_getChildFromFallbackLocator(_219,_58){var _30=_58.name,_31=_58.config;if(this==isc.AutoTest.testRoot&&this.getScClassName()=="Canvas"){if(_30=="member")_30="child"} var _32=this.getFallbackLocatorCandidates(_30);if(_32&&_32.length>0){var _33=this.getChildLocatorStrategy(_30);if(_33==null)_33="name";var _34=this.getChildLocatorTypeStrategy(_30);if(_34==null)_34="Class";var _9=this.getCanvasFromFallbackLocator(_219,_31,_32,_33,_34);if(_9!=null)return _9} this.logDebug("AutoTest.getElement(): locator substring:"+_219+" parsed to fallback locator name:"+_30+", unable to find relevant child - may refer to inner element.","AutoTest")},getFallbackLocatorCandidates:function class_getFallbackLocatorCandidates(_8){var _32;if(this.$542!=null&&this.$542[_8]!=null){var _35=this.$542[_8];_32=[];for(var i=0;i<_35.length;i++){_32[i]=window[_35[i]]}}else if(isc.isA.String(this.$558[_8])){_32=this[this.$558[_8]]}else if(this[_8]&&isc.isAn.Array(this[_8])){_32=this[_8]} return _32},getCanvasLocatorFallbackPath:function class_getCanvasLocatorFallbackpath (_8,_57,_219,_220,_221){return isc.Canvas.getCanvasLocatorFallbackPath(_8,_57,_219,_220,_221)},setLogFailureText:function class_setLogFailureText(_87,_72,_73){var _36=isc.Class.getPrototype().setLogFailureText.caller||arguments.callee.caller,_37=_36.name||isc.Func.getName(_36,true),_38=_37.replace(/^.*[_]+([^_]+)/,"\137$1")+"Log";if(isc.AutoTest[_38])return;isc.AutoTest[_38]=this.$130m(_87,_72,_73)},$130k:function class__getDescription(_87){var _39=false,_40=this.hasStableID(),_41=this.getScClassName();if(_87==true){_87=false;_39=true} if(_40)_41+=" with ID "+this.ID;else if(!isc.isA.String(_87))_87=this.getLocator();if(_87)_41+=" identified by "+_87;if(_39)_41+=isc.AutoTest.$130l(_87);return _41},$130m:function class__getLogFailureText(_87,_72,_73){var _41="the "+this.$130k(_87);if(_73&&!_73.match(/^[.,;:\\s]/))_73=" "+_73;if(_72)_41=_72+" "+_41;if(_73)_41+=_73;return _41},hasStableID:function class_hasStableID(){if(this._autoAssignedID)return false;var _42=this.creator||this.locatorParent;if(_42!=null)return _42.hasStableID();return true}});isc.Canvas.addMethods({getLocator:function canvas_getLocator(_61,_219,_131){var _43=this.getLocatorInternal();if(!_61)return _43;return[_43,this.getInteriorLocator(_61,_219,_131)].join("/")},getLocatorInternal:function canvas_getLocatorInternal(_219,_220){var _44,_45;var _46=_219?null:isc.AutoTest.testRoot;if(_46!=this){if(this._generated||this.locatorParent||this.creator||!this.hasStableID()){_44=this.getLocatorParent()} if(_46!=null&&_44==null){if(!_220){_220=true;_45=this.getLocatorInternal(true)} _44=this.getLocatorParent()}} var _43;if(_44==null){_43=this.getLocatorRoot()}else{_43=_44.getLocatorInternal(false,_220);var _47=_44.getChildLocator(this);if(_47!=null)_43+="/"+_47} return _45!=null&&!_43.startsWith(isc.AutoTest.$119l)?_45:_43},getObjectLocator:function canvas_getObjectLocator(_219){},$549:["//",,'[ID="',,'"]'],getLocatorRoot:function canvas_getLocatorRoot(){if(!this.locatorRoot){if(this==isc.AutoTest.testRoot){this.locatorRoot=isc.AutoTest.$119l}else if(!this.hasStableID()&&this.parentElement==null){this.locatorRoot="//"+isc.Canvas.getCanvasLocatorFallbackPath("autoID",this,isc.Canvas.$tw)}else{this.$549[1]=this.getClassName();this.$549[3]=this.getID();this.locatorRoot=this.$549.join(isc.emptyString)}} return this.locatorRoot},containsLocatorChild:function canvas_containsLocatorChild(_57){if(this.namedLocatorChildren!=null){for(var i=0;i_16+1&&_133[_16+1].startsWith("targetValue[")) {return null}} return this.Super("getChildFromLocatorSubstring",arguments)}});isc.Slider.changeDefaults("trackDefaults",{getInnerAttributeFromSplitLocator:function sliderTrack_getInnerAttributeFromSplitLocator(_133,_219){if(!isc.isA.StretchImg(this)&&_133.length>0&&(_133[0]=="stretch"||_133[0]=="start"||_133[0]=="end")) {_133=[]} return this.Super("getInnerAttributeFromSplitLocator",[_133,_219],arguments)}})} if(isc.DynamicForm){isc.DynamicForm.addProperties({getInteriorLocator:function dynamicForm_getInteriorLocator(_61){var _92=isc.DynamicForm._getItemInfoFromElement(_61,this);if(!_92.item)return this.Super("getInteriorLocator",arguments);var _83=_92.item,_87=[this.getItemLocator(_83),'/'];if(_92.overElement)_87[_87.length]="element";else if(_92.overValueIcon)_87[_87.length]="valueicon";else if(_92.overTitle)_87[_87.length]="title";else if(_92.overTextBox)_87[_87.length]="textbox";else if(_92.overControlTable)_87[_87.length]="controltable";else if(_92.overInlineError)_87[_87.length]="inlineerror";else if(_92.overIcon)_87[_87.length]="[icon=\""+_92.overIcon+"\"]";return _87.join(isc.emptyString)},getItemLocator:function dynamicForm_getItemLocator(_83){if(_83.parentItem&&(_83.parentItem!=this)){return this.getItemLocator(_83.parentItem)+"/"+_83.parentItem.getItemLocator(_83)} var _93={};if(_83.name!=null&&!_83._autoAssignedName)_93.name=_83.name;var _76=_83.getTitle();if(_76!=null)_93.title=_76;var _88=_83.getValue();if(_88!=null)_93.value=_88;_93.index=this.getItems().indexOf(_83);_93.Class=_83.getClassName();var _94=isc.AutoTest.createLocatorFallbackPath("item",_93);return _94},getObjectLocator:function dynamicForm_getObjectLocator(_219){if(isc.isA.FormItem(_219)){var _95=this.getItemLocator(_219);_95+="/objectType=FormItem";return _95} return this.Super("getObjectLocator",arguments)},containsLocatorChild:function dynamicForm_containsLocatorChild(_57){if(isc.isA.DateChooser(_57)&&_57.callingForm==this)return true;return this.Super("containsLocatorChild",arguments)},getChildLocator:function dynamicForm_getChildLocator(_57){if(_57.canvasItem){var _83=_57.canvasItem;return this.getItemLocator(_83)+"/canvas"} if(isc.isA.PickListMenu(_57)){var _83=_57.formItem;return this.getItemLocator(_83)+"/pickList"} if(isc.isA.DateChooser(_57)){var _83=_57.callingFormItem;return this.getItemLocator(_83)+"/picker"} return this.Super("getChildLocator",arguments)},getItemFromSplitLocator:function dynamicForm_getItemFromSplitLocator(_133){var _96=_133[0],_2;if(_96.contains("[Class=")){var _97=_96.match("item\\[(.+)'\\]\\[Class=\"(.+)\"\\]");_2=_97[1].substring(6,_97[1].length-2);_96=_97[0]} var _98=isc.AutoTest.parseLocatorFallbackPath(_96);if(_98&&_98.name=="item"&&_98.config!=null){var _31=_98.config;_2=_31.Class;var _83;if(_31.name!=null){_83=this.getItem(_31.name)}else{for(var i=0;i0){if(this[_8]!=null)return this[_8]}else{var _58=isc.AutoTest.parseLocatorFallbackPath(_8);if(_58!=null){return this.getChildFromFallbackLocator(_8,_58)}}},$558:{button:"buttons"},emptyLocatorArray:isc.Canvas.getPrototype().emptyLocatorArray});isc.HeaderItem.addProperties({locateItemBy:"value"});if(isc.PickListMenu){isc.PickListMenu.addProperties({getLocatorParent:function pickListMenu_getLocatorParent(){if(this.formItem)return this.formItem.form;return this.Super("getLocatorParent",arguments)}})}} if(isc.GridRenderer){isc.GridRenderer.addProperties({$1306:function gridRenderer__getValidIndices(_219){var _55="; valid row indices are [0, "+this.getTotalRows()+"]";if(_219){_55+=" and valid column indices for the "+this.getScClassName()+" are [0, "+this.fields.length+"]"} return _55},$1307:function gridRenderer__getTableElementAndLogFailure (_133,_111,_112){var _61=this.getTableElement(_111,_112);if(_61!=null)return _61;var _63,_109,_8;if(_112!==_63){_109="("+_111+", "+_112+")";_8="position"}else{_109=_111;_8="row"} var _110=this.$1306(_112!==_63);if(_111<0||_112<0){_109+=", derived from the locator suffix '"+_133.join("/")+"',";if(_112<0){_110="; a negative colNum may indicate a field could not be found"}else{_110="; a negative rowNum may indicate the targeted record is not present, perhaps not yet loaded"}} this.setLogFailureText(true,_109+" does not represent a valid "+_8+" within",_110);if(this.grid)this.grid.$1308();return null},$1309:function gridRenderer__reportInvalidCellLocator (_133,_111,_112){var _63,_73,_72="the locator suffix '"+_133.join("/")+"' could not be resolved to a numerical";if(_112!==_63){_72+=" row and column position within";_73="; only able to resolve to ("+_111+", "+_112+")"}else{_72+=" row position within";_73="; detected row as "+_111} this.setLogFailureText(true,_72,_73);if(this.grid)this.grid.$1308()},getInteriorLocator:function gridRenderer_getInteriorLocator(_61,_219){var _103=this.getCellFromDomElement(_61);if(_103==null)return this.Super("getInteriorLocator",[_61,_219]);var _111=_103[0],_112=_103[1],_87=this.getCellLocator(_111,_112);if(_87!=null&&this.grid!=null){if(this==isc.EH.dropTarget){var _113=this.grid.getRecordDropPosition(_111);if(_113!=null)_87+="/"+_113}else{var _114=false;var _115=_61.parentNode;while(_115&&_61!=_103){if(_61.getAttribute&&(_61.getAttribute("eventpart")=="valueicon")) {_114=true;break} _61=_115;_115=_115.parentNode} if(_114){_87+="/valueicon"}}} return _87},getCellFromDomElement:function gridRenderer_getCellFromDomElement(_61){var _71=this.getHandle(),_116=this.getTableElement();if(!_116)return null;var _117=_116.rows,_118,_119,_103,_120="tr",_121="TR",_122="td",_123="TD";while(_61&&_61!=_116&&_61!=_71){_118=_61.tagName;if(_118==_122||_118==_123){_103=_61} if(_118==_120||_118==_121){_119=_61} _61=_61.parentNode} if(!_119||!_103)return null;var _117=_116.rows,_111,_124;for(var i=0;i<_117.length;i++){if(_117[i]==_119){_111=i;break}} var _125=_119.cells,_112,_126;for(var i=0;i<_125.length;i++){if(_125[i]==_103){_112=i;break}} _124=_111+(this.$252||0);_126=_112+(this.$254||0);return[_124,_126]},getCellLocator:function gridRenderer_getCellLocator(_111,_112){return"row["+_111+"]/col["+_112+"]"},getInnerAttributeFromSplitLocator:function gridRenderer_getInnerAttributeFromSplitLocator(_133,_219){if(_219.attribute==isc.Canvas.$95j){if(this.emptyLocatorArray(_133))return this.$1304();if(_133.length==2){var _103=this.getCellFromLocator(_133[0],_133[1]),_111=_103[0],_112=_103[1];if(isc.isA.Number(_111)&&isc.isA.Number(_112)){if(this.$29p()){this.setLogFailureText(true,null,"is being animated");return null} return this.$1307(_133,_111,_112)}else{this.$1309(_133,_111,_112)}}} return this.Super("getInnerAttributeFromSplitLocator",arguments)},getCellFromLocator:function gridRenderer_getCellFromLocator(_179,_156){var _127=_179.replace(/^row.*(?:\|\||\[)([0-9]+)\]$/,"$1"),_128=_156.replace(/^col.*(?:\|\||\[)([0-9]+)\]$/,"$1");return[parseInt(_127),parseInt(_128)]},$124j:function gridRenderer__isProcessingDone(_219){var _129=this.grid&&!_219;if(_129)return this.grid.$124j();else return this.Super("$124j",arguments)}})} if(isc.ListGrid){isc.ListGrid.addProperties({remapOverRecordPositionAs:isc.ListGrid.AFTER,namedLocatorChildren:["header","frozenHeader","body","frozenBody",{attribute:"$286",name:"editRowForm"},"filterEditor"]});isc.GridBody.addProperties({getInteriorLocator:function gridBody_getInteriorLocator(_61,_219){if(_219){var _28=this.children;if(_28!=null&&_28.length>0){for(var i=0;i<_28.length;i++){var _54=_28[i];if(_54&&_54.eventProxy==this){var _71=_54.getHandle();if(_71!=null){var _130=_61;while(_130!=this.getHandle()&&_130!=null) {if(_130==_71){var _111=this.getEventRow(),_112=this.getEventColumn();return this.getCellLocator(_111,_112)} _130=_130.parentNode}}}}}} return this.Super("getInteriorLocator",arguments)},getAutoTestLocatorCoords:function gridBody_getAutoTestLocatorCoords(_87,_61){var _131=this.Super("getAutoTestLocatorCoords",arguments);if(_131==null)return null;var _132=this.grid,_133=_87.split("/").slice(-3),_113=_133[2];if(_132.$126y(_113)){var _111=_132.getRowNumFromLocator(_133,0);if(isc.isA.Number(_111)){if(_113==isc.ListGrid.OVER&&_132.recordDropAppearance!=isc.ListGrid.OVER&&_132.recordDropAppearance!=isc.ListGrid.BOTH) {var _134=_132.remapOverRecordPositionAs,_135=_132.$126y(_134);if(isc.TreeGrid&&isc.isA.TreeGrid(_132)){var _136=_132.getRecord(_111);if(_132.canDropOnLeaves||_132.data.isFolder(_136)){_135=false}} if(_135)_113=_134} var _137=this.getRowTop(_111),_138=this.getRowSize(_111);switch(_113){case isc.ListGrid.BEFORE:_131[1]-=_138/2;break;case isc.ListGrid.AFTER:_131[1]+=3*_138/8;break}}} return _131},getCellLocator:function gridBody_getCellLocator(_111,_112){var _132=this.grid;if(_132==null)return this.Super("getCellLocator",arguments);return _132.getCellLocator(this,_111,_112)}});isc.ListGrid.addProperties({testReplayLoggedRows:50,$1308:function listGrid__testReplayDumpRows(){if(!isc.Log.logIsDebugEnabled("testReplay")||!isc.JSON)return;var _139=Math.min(this.testReplayLoggedRows,this.getTotalRows()),_55="The first "+_139+" rows of "+this.$130k()+" are: \n";for(var i=0;i<_139;i++){_55+="#"+(i+1)+": "+isc.JSON.encode(this.getRecord(i))+"\n"} isc.AutoTest.logDebug(_55.trim(),"testReplay")},getCellLocator:function listGrid_getCellLocator(_154,_111,_112){var _140=this.getRowLocatorOptions(_154,_111,_112),_141=this.getColLocatorOptions(_154,_111,_112);return isc.AutoTest.createLocatorFallbackPath("row",_140)+"/"+isc.AutoTest.createLocatorFallbackPath("col",_141)},getRowLocatorOptions:function listGrid_getRowLocatorOptions(_154,_111,_112){var _142={},_143=this.getFieldNumFromLocal(_112,_154),_144=this.getEditedRecord(_111,_143),_145=this.getDataSource();if(_144!=null){if(_145!=null){var _146=_145.getPrimaryKeyFieldNames();for(var i=0;i<_146.length;i++){var _147=_146[i];if(_144[_147]!=null){_142[_147]=_144[_147]}}} var _148=this.getTitleField();if(_148!=null&&_144[_148]!=null){_142[_148]=_144[_148]}else if(isc.isA.Tree(this.data)){var _76=_144[this.data.titleProperty];if(_76!=null)_142[this.data.titleProperty]=_76} var _149=this.getFieldName(_143);if(_149!=null&&_144[_149]!=null){_142[_149]=_144[_149]}} _142[isc.AutoTest.fallback_valueOnlyField]=_111;return _142},getColLocatorOptions:function listGrid_getColLocatorOptions(_154,_111,_112){var _142={},_143=this.getFieldNumFromLocal(_112,_154);var _150=this.getField(_143);if(this.isCheckboxField(_150)){_142.isCheckboxField=true}else{var _149=this.getFieldName(_143);if(_149!=null)_142.fieldName=_149} _142[isc.AutoTest.fallback_valueOnlyField]=_112;return _142},getChildFromLocatorSubstring:function listGrid_getChildFromLocatorSubstring(_219,_16,_133){if(_219=="frozenBody"||_219=="body"){switch(_133.length-_16){case 4:if(_133[_16+3]!="valueicon"&&!this.$126y(_133[_16+3]))break;case 3:if(!_133[_16+2].startsWith("col["))break;case 2:if(!_133[_16+1].startsWith("row["))break;return null}} return this.Super("getChildFromLocatorSubstring",arguments)},getRowNumFromLocator:function listGrid_getRowNumFromLocator(_133,_16){var _151=isc.AutoTest.parseLocatorFallbackPath(_133[_16]);if(_151.name!="row"){this.logWarn("Error parsing locator: "+_133.join("/")+"; unable to resolve the row");return null} return this.getRowNumFromLocatorConfig(_151.config)},getInnerAttributeFromSplitLocator:function listGrid_getInnerAttributeFromSplitLocator(_133,_219){var _53=_219.attribute,_152=isc.AutoTest.getAttributeDefault(null,_53),_153=isc.AutoTest.getAttributeDefault(this,_53);if(this.emptyLocatorArray(_133)){return isc.AutoTest.setLogFailureForReturnValue(this,_133,_153,_53)} var _154=_133[0];if(_154=="body"||_154=="frozenBody"){var _155=_133[3],_113;var _114=false;if(_155=="valueicon")_114=true;else _113=_155;if(_133.length==2&&_53==isc.Canvas.$95j){var _111=this.getRowNumFromLocator(_133,1);if(_111==null)return _153;if(isc.isA.Number(_111)){if(this.body.$29p()){this.body.setLogFailureText(true,null,"is being animated");return _152} return this.body.$1307(_133,_111)}}else if(_133.length==3||(_133.length==4&&(_114||this.$126y(_113)))) {var _156=_133[2],_157=isc.AutoTest.parseLocatorFallbackPath(_156);if(_157.name!="col"){if(_53==isc.Canvas.$95j)this.setLogFailureText(true,"could not parse column locator '"+_156+"' for");this.logWarn("Error parsing locator:"+_133.join("")+" returning ListGrid handle");return _153} var _150=this.getFieldFromColLocatorConfig(_157.config),_158;if(_150==null){_158=parseInt(_157.config[isc.AutoTest.fallback_valueOnlyField]);if(_154=="frozenBody"&&this.frozenBody==null){this.setLogFailureText(true,"the column locator '"+_156+"' is specified on a frozen body but","has none");return _152} _154=this[_154]}else{_158=this.getLocalFieldNum(this.getFieldNum(_150));if(this.fieldIsFrozen(_150))_154=this.frozenBody;else _154=this.body} if(_154==null){this.setLogFailureText(true,"there was a problem locating the correct GridBody for field "+_150.name+" using column locator '"+_156+"' within",", this field seems to be"+(this.fieldIsFrozen(_150)?" ":" not ")+"frozen");return _152} var _111=this.getRowNumFromLocator(_133,1);if(_111==null){if(_53==isc.Canvas.$95j)this.setLogFailureText(true,"locator suffix '"+_133.join("/")+"' does not identify a valid row within");return _153} var _159=_154==this.frozenBody?"frozen GridBody":"GridBody";if(isc.isA.Number(_111)&&isc.isA.Number(_158)){if(_154.$29p()){_154.setLogFailureText(true,null,"is being animated");return _152} switch(_53){case isc.Canvas.$95j:var _103=_154.$1307(_133,_111,_158);if(_103&&_114){if(_103.querySelectorAll){var _32=_103.querySelectorAll("[eventpart=valueicon]");if(_32.length==1)return _32[0]} this.logWarn("Locator specified click event on value icon but unable to find valueIcon element for this cell - recorded test may be invalid.","AutoTest")} return _103;case isc.Canvas.$95l:var _160=this.getFieldNumFromLocal(_158,_154),_150=this.getField(_160);if(_150!=null){var _144=this.getEditedRecord(_111,_160);if(_144==null){this.setLogFailureText(true,"no record could be found for field "+_150.name+" and row "+_111+" in");break} if(_150.$63f)return this.isSelected(_144);if(_150.$109b===true){return!!_144.checked} return this.getRawCellValue(_144,_111,_160)}else{this.setLogFailureText(true,"no field could be found for column "+_158+" within the "+_159+" of")}}}else{_154.$1309(_133,_111,_158)}}} return this.Super("getInnerAttributeFromSplitLocator",arguments)},getFieldFromColLocatorConfig:function listGrid_getFieldFromColLocatorConfig(_219){if(_219.isCheckboxField!=null){for(var i=0;i0;for(var i=0;i<_165.length;i++){if(_219[_165[i]]==null){_166=false;break}} if(_166){var _111=this.findRowNum(_219);if(_111!=-1){this.logDebug("Located row "+_111+" by pk","autotest");return _111}}} this.logDebug("Failed to locate row by pk. Config: "+isc.echoAll(_219),"autotest");if(isc.AutoTest.skipFallback)return-1;case"titleField":var _148=this.getTitleField();if(_148!=null&&_219[_148]!=null){var _167=_163.findAllIndices(_148,_219[_148]);if(_167.length==0)return-1;if(_167.length==1)return _167[0];var _168=[];for(var i=0;i<_167.length;i++){_168[_167[i]]=_163.get(_167[i])} _164=_167[0];_163=_168} case"targetCellValue":for(var _149 in _219){if(_149==isc.AutoTest.fallback_valueOnlyField)continue;if(_219[_149]!=null){var _167=_163.findAllIndices(_149,_219[_149],isc.AutoTest.$1232);if(_167.length==0)return-1;if(_167.length==1)return _167[0];var _168=[];for(var i=0;i<_167.length;i++){_168[_167[i]]=_163.get(_167[i])} _164=_167[0];_163=_168}} default:var _111=parseInt(_219[isc.AutoTest.fallback_valueOnlyField]);var _63;if(_164==null||_163[_111]!==_63)return _111;else return _164}},$126y:function listGrid__isValidDropPosition(_113){switch(_113){case isc.ListGrid.BEFORE:case isc.ListGrid.AFTER:case isc.ListGrid.OVER:return true} return false},$124j:function listGrid__isProcessingDone(_219){var _169=!_219||isc.RecordEditor&&isc.isA.RecordEditor(this);if(isc.AutoTest.isGridDone(this,_169)==false)return false;return this.Super("$124j",arguments)}})} if(isc.Menu){isc.Menu.addClassMethods({getMenuAtLevel:function(_172){var _170=isc.Menu.$kc||[],_171=_170.find("$35q",null);if(_171==null)return null;for(var i=0;i<_172;i++){_171=_171.$35s;if(_171==null){this.logInfo("Unable to locate active menu at level "+_172+" - returning null");return null}} return _171}});isc.Menu.addMethods({$123v:["//Menu[level=",,"]"],getLocatorRoot:function menu_getLocatorRoot(){if(this.hasStableID())return this.Super("getLocatorRoot",arguments);if(!this.locatorRoot){var _172=0;for(var _173=this;_173&&_173.$35q;_173=_173.$35q)_172++;this.$123v[1]=_172;this.locatorRoot=this.$123v.join(isc.emptyString)} return this.locatorRoot}})} if(isc.TreeGrid){isc.TreeGridBody.addProperties({getOpenAreaWidth:function treeGridBody_getOpenAreaWidth(_111,_112){var _132=this.grid,_163=_132.data,_136=_132.getRecord(_111);_112=_132.getFieldNumFromLocal(_112,this);if(_132.getTreeFieldNum()!=_112||_163==null||!_163.isFolder(_136)){return null} return _132.getOpenAreaWidth(_136)},getInteriorLocator:function treeGridBody_getInteriorLocator(_61,_219,_131){var _84=_61;var _132=this.grid,_71=this.getHandle(),_174=this.getTableElement();if(!_61||!_71||!_174)return isc.emptyString;var _175=_132.getCanvasName()+_132.$34l,_111,_112;var _176=_132.getCanvasName()+_132.$349;while(_61!=this.tableElement&&_61!=_71&&_61.getAttribute){var _26=_61.getAttribute(isc.Canvas.$123e?"id":"name");if(_26){if(_26.startsWith(_176)){_111=parseInt(_26.substring(_176.length));_112=_132.getLocalFieldNum(_132.getTreeFieldNum());return this.getCellLocator(_111,_112)+"/extra"}} _61=_61.parentNode} var _103=this.getCellFromDomElement(_84);if(_103){var _177=this.getOpenAreaWidth(_103[0],_103[1]);if(_177!=null){var _64=this.getCellPageRect(_103[0],_103[1]),x=_131[0]-_64[0];if(x>=0&&x<_177){return this.getCellLocator(_103[0],_103[1])+"/open"}}} return this.Super("getInteriorLocator",[_84,_219,_131])},getInnerAttributeFromSplitLocator:function treeGridBody_getInnerAttributeFromSplitLocator(_133,_219){var _132=this.grid,_53=_219.attribute,_152=isc.AutoTest.getAttributeDefault(null,_53),_153=isc.AutoTest.getAttributeDefault(this,_53);if(this.emptyLocatorArray(_133)){return isc.AutoTest.setLogFailureForReturnValue(this,_133,_153,_53)} if(_133.length==3){if(_133[2]=="open"){if(this.$29p()){this.setLogFailureText(true,null,"is being animated");return _152} var _179=_133[0];var _111;if(_179.charAt(3)!="["){_111=parseInt(_179.substring(3))}else{var _151=isc.AutoTest.parseLocatorFallbackPath(_179);if(_151==null||_151.name!="row"){this.setLogFailureText(true,"the row locator '"+_179+"' for","could not be parsed")} _111=_132.getRowNumFromLocatorConfig(_151.config)} if(_53==isc.Canvas.$95l){var _163=_132.data,_144=_132.getRecord(_111);if(_144==null||!_163){this.setLogFailureText(true,"no record could be found for row "+_111+" of");return} return _163.isOpen(_144)}else{var _112=_132.getLocalFieldNum(_132.getTreeFieldNum());if(isc.isA.Number(_111)&&isc.isA.Number(_112)){return this.$1307(_133,_111,_112)}else{this.$1309(_133,_111,_112);return null}}}else if(_133[2]=="extra"){if(this.$29p()){this.setLogFailureText(true,null,"is being animated");return _152} var _179=_133[0];var _111;if(_179.charAt(3)!="["){_111=parseInt(_179.substring(3))}else{var _151=isc.AutoTest.parseLocatorFallbackPath(_179);if(_151==null||_151.name!="row"){this.setLogFailureText(true,"the row locator '"+_179+"' for","could not be parsed")} _111=_132.getRowNumFromLocatorConfig(_151.config)} if(_53==isc.Canvas.$95l){var _180=_132.selection,_144=_132.getRecord(_111);if(_144==null){this.setLogFailureText(true,"no record could be found for row "+_111+" of");return} if(_180==null){this.setLogFailureText(true,"no selection object could be found for");return} var _181=_180.isSelected(_144);if(!_181||!_132.showPartialSelection)return _181;return _180.isPartiallySelected(_144)?"partial":_181}else{var _182=_132.$349+_111,_86=_132.getImage(_182,isc.Canvas.$123e);if(_86)return _86;else{this.setLogFailureText(true,"no opener image could be found for row "+_119+" of");return null}}}} return this.Super("getInnerAttributeFromSplitLocator",arguments)},getAutoTestLocatorCoords:function treeGridBody_getAutoTestLocatorCoords(_87,_61){var _131=this.Super("getAutoTestLocatorCoords",arguments);if(_131==null)return _131;var _183=this.grid;if(_183==null||_87.endsWith("/extra"))return _131;var _184=_131[1]-this.getPageTop()+this.getScrollTop(),_185=_131[0]-this.getPageLeft()+this.getScrollLeft();var _111=this.getEventRow(_184),_112=this.getEventColumn(_185),_177=this.getOpenAreaWidth(_111,_112);if(_177!=null){var _64=isc.Element.getElementRect(_61),_65=_64[0],_66=_64[2];if(_87.endsWith("/open")){_131[0]=_65+Math.floor(_177/2)}else{_65+=_177;_66-=_177;_131[0]=_65+Math.floor(_66/2)}} return _131}})} if(isc.TileGrid){isc.TileGrid.addMethods({$124j:function tileGrid__isProcessingDone(_219){if(_219&&!this.isDrawn())return true;return isc.AutoTest.isTileGridDone(this)!=false},getCanvasFromFallbackLocator:function tileGrid_getCanvasFromFallbackLocator(_219,_31,_32,_33,_34){if(_34=="Class"&&_31.Class=="SimpleTile"){var _163=this.data,_186=parseInt(_31.classIndex);if(this.recycleTiles)_186+=this.getDrawnStartIndex();var _187=this.getTileID(_163.get(_186));if(_187&&window[_187]){_31.classIndex=this.tiles.indexOf(window[_187])}} return this.Super("getCanvasFromFallbackLocator",arguments)},getCanvasLocatorFallbackPath:function tileGrid_getCanvasLocatorFallbackPath(_27,_219,_29){var _188=_219.tileNum;if(this.recycleTiles)_188-=this.getDrawnStartIndex();_219=_29[_188];return this.Super("getCanvasLocatorFallbackPath",arguments)}})} if(isc.TileLayout){isc.TileLayout.addMethods({$124j:function tileLayout__isProcessingDone(_219){if(_219&&!this.isDrawn())return true;return isc.AutoTest.isTileLayoutDone(this)!=false}})} if(isc.TabSet){isc.TabSet.addProperties({containsLocatorChild:function tabSet_containsLocatorChild(_57){if(this.Super("containsLocatorChild",arguments))return true;if(this.getTabNumber(_57)!=-1)return true;return false},getChildLocator:function(_57){if(_57===this.paneContainer){return null} return this.Super("getChildLocator",arguments)},$150p:function(_191,_190){var _189={};if(_191.name!=null)_189.name=_191.name;if(_191.title!=null)_189.title=_191.title;if(_191.ID!=null&&!_191._autoAssignedID)_189.ID=_191.ID;_189.index=_190;return _189},getStandardChildLocator:function tabSet_getStandardChildLocator(_57){var _190=this.getTabNumber(_57);if(_190!=-1){var _191=this.getTabObject(_190);var _189=this.$150p(_191,_190);return isc.AutoTest.createLocatorFallbackPath("tab",_189)} return this.Super("getStandardChildLocator",arguments)},getChildFromLocatorSubstring:function tabSet_getChildFromLocatorSubstring(_219){var _192,_193;if(_219!=null&&((_192=_219.startsWith("tab["))||(_193=_219.startsWith("tabPane[")))) {var _194=isc.AutoTest.parseLocatorFallbackPath(_219),_31=_194.config,_195;if(_31.ID!=null){_195=_31.ID}else if(_31.name!=null){_195=_31.name}else{var _196=this.locateTabsBy;if(_196==null)_196="title";if(_31.title&&_196=="title"){_195=this.tabs.findIndex("title",_31.title)}else{_195=parseInt(_31.index)}} if(_192){return this.getTab(_195)}else{return this.getTabPane(_195)}} return this.Super("getChildFromLocatorSubstring",arguments)}});var _197={getChildLocator:function(_57){var _198=this.creator,_199=_198&&_198.tabs;if(_199!=null){var _190=_199.findIndex("pane",_57);if(_190>=0){var _191=_199[_190];var _189=_198.$150p(_191,_190);return isc.AutoTest.createLocatorFallbackPath("tabPane",_189)}} return this.Super("getChildLocator",arguments)},getFallbackLocatorCandidates:function(_8){if(_8==="member"){if(!isc.TabSet.$150q){this.logWarn("scLocators involving selection of a member of a TabSet's paneContainer are deprecated. Instead, use a \"tabPane[]\" locator. Note: A \"tabPane[]\" locator will be generated automatically if the test script is re-recorded.");isc.TabSet.$150q=true} return this.creator&&this.creator.tabs&&this.creator.tabs.getProperty("pane")} return this.Super("getFallbackLocatorCandidates",arguments)}};isc.TabSet.changeDefaults("paneContainerDefaults",_197);if(isc.PaneContainer)isc.PaneContainer.addProperties(_197)} if(isc.StatefulCanvas){isc.StatefulCanvas.addProperties({getInteriorLocator:function statefulCanvas_getInteriorLocator(_61,_219,_131){if(isc.Slider&&isc.isA.Slider(this.creator)&&this.creator._track==this){return this.creator.getInteriorLocator(_61,_219,_131)} return this.Super("getInteriorLocator",arguments)},getInnerAttributeFromSplitLocator:function statefulCanvas_getInnerAttributeFromSplitLocator(_133,_219){if(!this.emptyLocatorArray(_133)&&this.label){return this.label.getInnerAttributeFromSplitLocator(_133,_219)} var _53=_219.attribute;if(isc.Canvas.$95l==_53&&isc.isA.Function(this.isSelected)){return this.isSelected()} return this.Super("getInnerAttributeFromSplitLocator",arguments)},getAutoTestLocatorCoords:function statefulCanvas_getAutoTestLocatorCoords(_87,_61){if(isc.Slider&&isc.isA.Slider(this.creator)&&this.creator._track==this){return this.creator.getAutoTestLocatorCoords(_87,_61)} return this.Super("getAutoTestLocatorCoords",arguments)}})} if(isc.Menu){isc.Menu.addProperties({hasStableID:function menu_hasStableID(){var _200=this.$350;if(_200!=null&&this.ID.startsWith(_200.ID)){return _200.hasStableID()} return this.Super("hasStableID",arguments)}})} if(isc.DateChooser){isc.DateChooser.addMethods({getInteriorLocator:function dateChooser_getInteriorLocator(_61){var _71=this.getHandle();if(!_71||!_61)return"";var _201=_61.$73l;if(_201!=null&&_201!="")return _201;return _61.$73l=this.$73m(_61,_71)},$73m:function dateChooser__getInteriorLocator(_61,_71){var _202=_61;while(_202&&_202!=null){if(_202==_71){_202=null;break} if(_202.tagName&&_202.tagName.toLowerCase()=="td"){break} _202=_202.parentElement} if(_202==null||_202.getAttribute==null)return"";var _203=_202.getAttribute(isc.EH.$945);if(!_203)return"";var _204=_71.childNodes,_205=[];for(var i=0;i<_204.length;i++){if(!_204[i].tagName||_204[i].tagName.toLowerCase()!="table"){continue} _205[_205.length]=_204[i]} var _206=_205.length==2?_205[0]:null,_207=_205.length==2?_205[1]:_205[0];if(_206!=null&&_202.offsetParent==_206){switch(_203){case"showPrevYear":return"prevYearButton";case"showPrevMonth":return"prevMonthButton";case"showMonthMenu":return"monthMenuButton";case"showYearMenu":return"yearMenuButton";case"showNextMonth":return"nextMonthButton";case"showNextYear":return"nextYearButton"} return""}else if(_207!=null&&_202.offsetParent==_207){switch(_203){case"cancel":return"cancelButton";case"today":return"todayButton";default:var _208=_202.id;if(_208){var _209=_208.split("_");if(_209&&_209.length>=3){_209=_209.slice(_209.length-3)} return _209.join("/")}}} return""},getInnerAttributeFromSplitLocator:function dateChooser_getInnerAttributeFromSplitLocator(_133,_219){if(_219.attribute==isc.Canvas.$95l){this.setLogFailureText(true,"getValue() is not supported for");return} var _71=this.$1304();if(_71==null||this.emptyLocatorArray(_133))return _71;var _210=(_133.length==3);if(!_210){var _80=_133[0];if(_80=="")return _71;var _211=(_80=="todayButton"),_212=!_211?(_80=="cancelButton"):false;var _204=_71.childNodes;if(_211||_212){if(_211&&!this.showTodayButton){this.logWarn("DateChooser attempting to locate element for 'todayButton' but showTodayButton is false. Returning handle.","AutoTest");return _71} if(_212&&!this.showCancelButton){this.logWarn("DateChooser attempting to locate element for 'cancelButton' but showCancelButton is false. Returning handle.","AutoTest");return _71} var _207;for(var i=_204.length-1;i>=0;i--){if(_204[i].tagName&&_204[i].tagName.toLowerCase()=="table") {_207=_204[i];break}} var _213=_207.rows[_207.rows.length-1],_125=_213.cells;for(var i=0;i<_125.length;i++){if(this.getInteriorLocator(_125[i])==_80){return _125[i]}}}else{if(!this.showHeader){this.logWarn("DateChooser attempting to locate element for "+_133+" but this.showHeader is false so this element will not be present. Returning handle.","AutoTest");return _71} var _206;for(var i=0;i<_204.length;i++){if(_204[i].tagName&&_204[i].tagName.toLowerCase()=="table") {_206=_204[i];break}} if(_206){var _119=_206.rows[0],_125=_119.cells;for(var i=0;i<_125.length;i++){if(this.getInteriorLocator(_125[i])==_80){return _125[i]}}}}}else{var _214=_133[0],_215=_133[1],_216=_133[2];if((_214==this.year)&&(this.month==_215||this.month==_215+1||this.month==_215-1)) {var _217=Date.createLogicalDate(_214,_215,_216),_218=_217.getDay(),_103=this.dateGrid.getDateCell(_217);if(_103){return this.dateGrid.body.$1307(_133,_103.rowNum,_103.colNum)}}else{this.logInfo("DateChooser passed ID for the wrong year or month - passed:"+_133+", showing:"+[this.year,this.month],"AutoTest")} this.logWarn("DateChooser - passed inner locator for date ("+_133.join("/")+") -- not currently showing this date.","AutoTest")} this.logWarn("DateChooser, unable to find element for inner locator:"+_133+" returning handle");return _71}})}};isc.AutoTest.customizeCalendar=function(){isc.$755={getRowLocatorOptions:function calendarView_getRowLocatorOptions(_54,_28,_29){var _1=this.Super("getRowLocatorOptions",arguments);var _2=this.creator.chosenDate;_1.date=_2.toSchemaDate("date");_1.minutes=_28*30;return _1},getRowNumFromLocatorConfig:function calendarView_getRowNumFromLocatorConfig(_54){var _3=this.creator.locateCellsBy;if((_3=="date"||_3==null)&&_54.date!=null) {var _2=isc.Date.parseSchemaDate(_54.date);if(!this.showingDate(_2)){this.logWarn("Locator for cell in this calendar day-view grid has date stored as:"+_2.toUSShortDate()+", but we're currently showing "+this.creator.chosenDate.toUSShortDate()+". The stored date doesn't map to a visible cell so not returning a cell - if this is not the intended behavior in this test case you may need to set calendar.locateCellsBy to 'index'.","AutoTest");return-1} return parseInt(_54.minutes)/30} this.locateRowsBy="index";return this.Super("getRowNumFromLocatorConfig",arguments)},showingDate:function calendarView_showingDate(_2){return(isc.Date.compareLogicalDates(_2,this.creator.chosenDate)==0)}};isc.DaySchedule.addProperties(isc.$755);isc.WeekSchedule.addProperties(isc.$755,{showingDate:function weekSchedule_showingDate(_2){for(var i=0;i0,_46={};for(var i=0;i<_33.length;i++){if(_23[_33[i]]==null){_45=false;break}else{_46[_33[i]]=_23[_33[i]]}} if(_45){this.logDebug("All key fields present: "+isc.echoAll(_46),"autotest");var _9=_44.findByKeys(_23,this.data);if(_9!=null&&_9!=-1){this.logDebug("Successfully located event by pk. Record: "+isc.echoAll(this.data.get(_9)),"autotest");return this.data.get(_9)}}else{this.logDebug("PK values missing. Config: "+isc.echoAll(_23),"autotest")}} this.logDebug("Failed to locate event by pk. Config: "+isc.echoAll(_23),"autotest");if(isc.AutoTest.skipFallback)return null;case"name":var _47=_23[this.nameField];if(_47!=null)return this.data.find(this.nameField,_47);case"date":var _36=_23[this.startDateField],_38=_23[this.endDateField];for(var i=0;i0) {_2.setLogFailureText(true,null,"is currently animating");return false} if(_2.$u8!=null){_2.setLogFailureText(true,null,"currently has pending scroll events");return false} if(isc.isA.SplitPaneSidePanel(_2)&&!_2.onScreen){_2.setLogFailureText(true,null,"has not yet set onSCreen: true");return false} return true},isc.A.isTileLayoutDone=function isc_c_AutoTest_isTileLayoutDone(_1){if(!isc.Page.isLoaded()){this.$141g="the page is not loaded";return false} if(_1==null){this.$141g="the element is null";return null} if(isc.isA.String(_1))_1=this.getElement(_1);var _2=isc.isA.Canvas(_1)?_1:this.locateCanvasFromDOMElement(_1);if(_2==null||!isc.isA.TileLayout(_2)){this.$141g=this.getLocator(_1)+" does not correspond to a valid TileLayout!";return null} if(!this.isCanvasDone(_2))return false;if(_2.isAnimatingTileLayout()){_2.setLogFailureText(true,null,"is currently animating");return false} if(_2.$57s!=null){_2.setLogFailureText(true,null,"has a layout after scroll scheduled");return false} return true},isc.A.isTileGridDone=function isc_c_AutoTest_isTileGridDone(_1){if(!isc.Page.isLoaded()){this.$130u="the page is not loaded";return false} if(_1==null){this.$130u="the element is null";return null} if(isc.isA.String(_1))_1=this.getElement(_1);var _2=isc.isA.Canvas(_1)?_1:this.locateCanvasFromDOMElement(_1);if(_2==null||!isc.isA.TileGrid(_2)){this.$130u=this.getLocator(_1)+" does not correspond to a valid TileGrid!";return null} if(!this.isTileLayoutDone(_2))return false;if(_2.pendingActionOnPause("tileGridAnimate")){_2.setLogFailureText(true,"there is a pending animation for");return false} return true},isc.A.$151y=function isc_c_AutoTest__isGridBodyDone(_1){if(_1==null)return true;var _2="body",_3=_1.grid;if(_3.body!=_1)_2="frozen "+_2;if(_1.isDirty()){_3.setLogFailureText(true,"the "+_2+" of","is dirty");return false} if(_1.pendingActionOnPause("scrollRedraw")){_3.setLogFailureText(true,null,"is scrolling");return false} return true},isc.A.isGridDone=function isc_c_AutoTest_isGridDone(_1,_2){if(!isc.Page.isLoaded()){this.$130v="the page is not loaded";return false} if(_1==null){this.$130v="the element is null";return null} if(isc.isA.String(_1))_1=this.getElement(_1);var _3=isc.isA.Canvas(_1)?_1:this.locateCanvasFromDOMElement(_1);while(_3!=null&&!isc.isA.ListGrid(_3))_3=_3.parentElement;if(_3==null){this.$130w="there's no ListGrid containing locator "+this.getLocator(_1);return null} if(_3.summaryRow&&!isc.AutoTest.isGridDone(_3.summaryRow,_2)){return false} var _4=_3.filterEditor;if(_4&&_4.pendingActionOnPause("performFilter")){_3.setLogFailureText(true,"there is a pending filter operation for the FilterEditor of");return false} if(!_2&&_3.hasChanges()){_3.setLogFailureText(true,null,"has unsaved edits");return false} if(_3.$1097){_3.setLogFailureText(true,null,"is regrouping asynchronously");return false} if(_3.data!=null&&isc.isA.ResultSet(_3.data)){if(!_3.data.lengthIsKnown()){_3.setLogFailureText(true,"the length of the ResultSet associated with","is not yet known");return false} if(_3.data.fetchIsPending()){_3.setLogFailureText(true,"has a pending fetch");return false}} return this.$151y(_3.body)&&this.$151y(_3.frozenBody)},isc.A.isSystemDone=function isc_c_AutoTest_isSystemDone(_1){if(!isc.Page.isLoaded()){this.$130x="the page is not loaded";return false} if(this.implicitNetworkWait&&isc.RPCManager.requestsArePending()){this.$130x="RPCManager.requestsArePending() is true";return false} var _2=isc.Canvas.$101e;if(_1&&isc.isAn.Array(_2)&&_2.length>0){this.$130x="there are "+_2.length+" pending redraws";return false} for(var i=0;i