|
!function(){var r=window,n=r.$Debug=r.$Debug||{},e=r.$Config||{};if(!n.appendLog){var t=[],o=0;n.appendLog=function(r){var n=e.maxDebugLog||25,a=(new Date).toUTCString()+":"+r;t.push(o+":"+a),t.length>n&&t.shift(),o++},n.getLogs=function(){return t}}}(),function(){function r(r,n){function e(a){var i=r[a];return t-1>a?void(o.r[i]?e(a+1):o.when(i,function(){e(a+1)})):void n(i)}var t=r.length;e(0)}function n(r,n,a){function i(){var r=!!u.method,o=r?u.method:a[0],i=u.extraArgs||[],s=t.$WebWatson;try{var l=e(a,!r);if(i&&i.length>0)for(var c=i.length,f=0;c>f;f++)l.push(i[f]);o.apply(n,l)}catch(d){return void(s&&s.submitFromException&&s.submitFromException(d))}}var u=o.r&&o.r[r];return n=n?n:this,u&&(u.skipTimeout?i():t.setTimeout(i,0)),u}function e(r,n){return Array.prototype.slice.call(r,n?1:0)}var t=window;t.$Do||(t.$Do={q:[],r:[],removeItems:[],lock:0,o:[]});var o=t.$Do;o.when=function(e,t){function a(r){n(r,i,u)||o.q.push({id:r,c:i,a:u})}var i=0,u=[],s=1,l="function"==typeof t;l||(i=t,s=2);for(var c=s;c<arguments.length;c++)u.push(arguments[c]);e instanceof Array?r(e,a):a(e)},o.register=function(r,e,t){if(!o.r[r]){o.o.push(r);var a={};if(e&&(a.method=e),t&&(a.skipTimeout=t),arguments&&arguments.length>3){a.extraArgs=[];for(var i=3;i<arguments.length;i++)a.extraArgs.push(arguments[i])}o.r[r]=a,o.lock++;try{for(var u=0;u<o.q.length;u++){var s=o.q[u];s.id==r&&n(r,s.c,s.a)&&o.removeItems.push(s)}}catch(l){throw l}finally{if(o.lock--,0===o.lock){for(var c=0;c<o.removeItems.length;c++)for(var f=o.removeItems[c],d=0;d<o.q.length;d++)if(o.q[d]===f){o.q.splice(d,1);break}o.removeItems=[]}}}},o.unregister=function(r){o.r[r]&&delete o.r[r]}}(),function(){function r(r){f&&f.appendLog&&f.appendLog(r)}function n(r){return r.length>p.length&&r.substr(r.length-p.length).toLowerCase()==p}function e(e,o,a,i,u,s,l){var c=e.src||e.href||"";if(c){var f=e.id||"";if(!o&&n(c))try{e.sheet&&e.sheet.cssRules&&!e.sheet.cssRules.length&&(o=!0)}catch(d){}o?(r("[$Loader]: "+(l||"Failed")+" '"+(c||"")+"', id:"+f+", async:"+(e.async||"")+"', defer:"+(e.defer||"")),t(c,0,f,a,i,u)):(r("[$Loader]: "+(s||"Loaded")+" '"+(c||"")+"', id:"+(e.id||"")+", async:"+(e.async||"")+"', defer:"+(e.defer||"")),i&&i())}}function t(r,n,e,o,a,i){if(r)if(o&&v>n){g++;var u=new s;u.retryOnError=!1,u.failMessage="Reload Failed",u.successMessage="Reload Success",u.Add(r,"Reload_"+g+(e?"_"+e:"")),u.Load(a,function(){t(r,n+1,e,o,a,i)})}else i&&i()}function o(r){var n=d.createElement("link");return n.rel="stylesheet",n.type="text/css",n.href=r.srcPath,n}function a(r){var n=d.createElement("script");return r.id&&(n.id=r.id),n.crossorigin="anonymous",n.type="text/javascript",n.src=r.srcPath,n.defer=!1,n.async=!1,n}function i(t,i,u,s,l,c){function f(){e(g,!1,i,u,s,l,c)}if(!t||!t.srcPath)return void(u&&u());var g=null;g=n(t.srcPath)?o(t):a(t),g.onload=f,g.onerror=function(){e(g,!0,i,u,s,l,c)},g.onreadystatechange=function(){"loaded"===g.readyState?setTimeout(f,500):"complete"===g.readyState&&f()};var v=d.getElementsByTagName("head")[0];v.appendChild(g),r("[$Loader]: Loading '"+(t.srcPath||"")+"', id:"+(t.id||""))}function u(r,n,e,t,o,a,s){function l(){u(r,n+1,e,t,o,a,s)}return n<r.length?void i(r[n],e,l,o,a,s):void(t&&t())}function s(){var r=this,n=[];r.retryOnError=!0,r.successMessage="Loaded",r.failMessage="Error",r.Add=function(r,e){r&&n.push({srcPath:r,id:e})},r.AddIf=function(n,e,t){n&&r.Add(e,t)},r.Load=function(e,t){u(n,0,r.retryOnError,e,t,r.successMessage,r.failMessage)}}var l=window,c=l.$Config,f=l.$Debug,d=l.document,g=0,v=c.slMaxRetry||2,h=c.slReportFailure||!1,p=".css";s.On=function(r,n){if(!r)throw"The target element must be provided and cannot be null";e(r,n,!0,null,function(){if(h){var n=r.src||r.href||"";throw"Failed to load external resource ['"+n+"']"}})},l.$Loader=s}(),function(){function r(){if(!m){var r=new d.$Loader;r.AddIf(!d.jQuery,v.sbundle,"WebWatson_DemandSupport"),v.sbundle=null,delete v.sbundle,r.AddIf(!d.$Api,v.fbundle,"WebWatson_DemandFramework"),v.fbundle=null,delete v.fbundle,r.Add(v.bundle,"WebWatson_DemandLoaded"),r.Load(n,e),m=!0}}function n(){if(d.$WebWatson){if(d.$WebWatson.isProxy)return void e();h.when("$WebWatson.full",function(){for(;p.length>0;){var r=p.shift();r&&d.$WebWatson[r.cmdName].apply(d.$WebWatson,r.args)}})}}function e(){var r=d.$WebWatson?d.$WebWatson.isProxy:!0;t(),v.loadErrorUrl&&r&&window.location.assign(v.loadErrorUrl)}function t(){p=[],d.$WebWatson=null}function o(n){return function(){var e=arguments;p.push({cmdName:n,args:e}),r()}}function a(){var r=["foundException","resetException","submit","submitFromException","showError","reportException"],n=this;n.isProxy=!0;for(var e=r.length,t=0;e>t;t++){var a=r[t];a&&(n[a]=o(a))}}function i(r,n,e,t,o,a,i,u,s){var l=d.event;a||(a=f(o||l,i?i+2:2)),d.$Debug&&d.$Debug.appendLog&&d.$Debug.appendLog("[WebWatson]:"+(r||"")+" in "+(n||"")+" @ "+(e||"??")),y.submit(r,n,e,t,o||l,a,i,u,s)}function u(r,n){return{signature:r,args:n,toString:function(){return this.signature}}}function s(r){for(var n=[],e=r.split("\n"),t=0;t<e.length;t++)n.push(u(e[t],[]));return n}function l(r){for(var n=[],e=r.split("\n"),t=0;t<e.length;t++){var o=u(e[t],[]);e[t+1]&&(o.signature+="@"+e[t+1],t++),n.push(o)}return n}function c(r){if(!r)return null;try{if(r.stack)return s(r.stack);if(r.error){if(r.error.stack)return s(r.error.stack)}else if(window.opera&&r.message)return l(r.message)}catch(n){}return null}function f(r,n){var e=[];try{for(var t=arguments.callee;n>0;)t=t?t.caller:t,n--;for(var o=0;t&&b>o;){var a="InvalidMethod()";try{a=t.toString()}catch(i){}var s=[],l=t.args||t.arguments;if(l)for(var f=0;f<l.length;f++)s[f]=l[f];e.push(u(a,s)),t=t.caller,o++}}catch(i){e.push(u(i.toString(),[]))}var d=c(r);return d&&(e.push(u("--- Error Event Stack -----------------",[])),e=e.concat(d)),e}var d=window,g=d.$Config||{},v=g.watson,h=d.$Do;if(!d.$WebWatson&&v){var p=[],m=!1,b=10,y=d.$WebWatson=new a;y.CB={},y._orgErrorHandler=d.onerror,d.onerror=i,y.errorHooked=!0,h.when("jQuery.version",function(r){v.expectedVersion=r}),h.register("$WebWatson")}}(),function(){function r(r,n){for(var e=n.split("."),t=e.length,o=0;t>o&&null!==r&&void 0!==r;)r=r[e[o++]];return r}function n(n){var e=null;return null===s&&(s=r(a,"Constants")),null!==s&&n&&(e=r(s,n)),null===e||void 0===e?"":e.toString()}function e(e){var t=null;return null===i&&(i=r(a,"$Config.strings")),null!==i&&e&&(t=r(i,e.toLowerCase())),(null===t||void 0===t)&&(t=n(e)),null===t||void 0===t?"":t.toString()}function t(r,n){var t=null;return r&&n&&n[r]&&(t=e("errors."+n[r])),t||(t=e("errors."+r)),t||(t=e("errors."+l)),t||(t=e(l)),t}function o(e){var t=null;return null===u&&(u=r(a,"$Config.urls")),null!==u&&e&&(t=r(u,e.toLowerCase())),(null===t||void 0===t)&&(t=n(e)),null===t||void 0===t?"":t.toString()}var a=window,i=null,u=null,s=null,l="GENERIC_ERROR";a.GetString=e,a.GetErrorString=t,a.GetUrl=o}(),function(){var r=window,n=r.$Config||{};r.$B=n.browser||{}}();
|