var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments);};var InvestingChannel=__assign(function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=5)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(7);t.Utility=n.default;var r=i(9);t.Constant=r.default;var o=i(10);t.CallbackType=o.default;var a=i(11);t.DocumentType=a.default;var s=i(12);t.FrequencyCapUnit=s.default;var u=i(13);t.FrequencyType=u.default;var c=i(14);t.InsertionType=c.default;var d=i(15);t.LoadType=d.default;var l=i(16);t.PageType=l.default;var p=i(17);t.PlacementState=p.default;var f=i(18);t.PlacementType=f.default;var m=i(19);t.ReferrerType=m.default;var g=i(20);t.TagType=g.default;var h=i(21);t.DFPTemplateParams=h.default;var b=i(22);t.DFPPlacementParams=b.default;var y=i(23);t.DeviceType=y.default;var v=i(24);t.RefreshType=v.default;var T=i(25);t.TemplateConfig=T.default;var S=i(26);t.PlacementConfig=S.default;var E=i(2);t.GDPRStatus=E.default;var I=i(27);t.ErrorType=I.default;var A=i(28);t.APIStatus=A.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6);t.Callback=n.default;var r=i(29);t.CustomVariable=r.default;var o=i(30);t.Frequency=o.default;var a=i(31);t.Selector=a.default;var s=i(32);t.Tag=s.default;var u=i(33);t.Targeting=u.default;var c=i(3);t.Placement=c.default;var d=i(40);t.Template=d.default;var l=i(41);t.Site=l.default},function(e,t,i){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.APPLICABLE="APPLICABLE",e.NOT_APPLICABLE="NOT_APPLICABLE",e.INPROGRESS="INPROGRESS"}(n=t.GDPRStatus||(t.GDPRStatus={})),t.default=n},function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i=1||"fluid"==n||"oop"==n))return!1}return!0},e.prototype.createDAT=function(e){var t=e.getTargetName(),i=e.getSiteDFPKeyName()+"/"+t;this.mSelector.getIdentifier();for(var n=[],r=function(e){if(e.indexOf("x")>=1){var t=e.split("x");if(t.length>2)return"continue";var i=!1;if(t.forEach(function(e){Number(e)||(i=!0)}),i)return"continue";n.push(t.map(function(e){return parseInt(e,10)}))}else"fluid"==e&&n.push(e)},o=0,a=e.getAdSize().replace(/\s/g,"").toLowerCase().split(",");o-1)switch(a.replace("%%SYSTEM:","").replace("%%","")){case"TARGET":e=e.replace(a,t.getTargetName());break;case"TARGET_KVAL":e=e.replace(a,t.getTargetKval());break;case"PAGE_ID":e=e.replace(a,""+this.mTemplate.getPageId());break;case"VIEW_COUNT":e=this.mTemplate.getGDPRStatus()==u.GDPRStatus.NOT_APPLICABLE?e.replace(a,n.getFromCookie(u.Constant.VIEWCOUNTER_COOKIE_NAME_PREFIX+n.getTopWindowDomain())):e.replace(a,"-1");break;case"REFERRER_TYPE":e=e.replace(a,this.mTemplate.getReferrerType());break;case"PAGE_TYPE":e=e.replace(a,this.mTemplate.getPageType());break;case"DOCUMENT_TYPE":e=e.replace(a,this.mTemplate.getDocumentType());break;case"EXELATE_ID":e=e.replace(a,this.mTemplate.getExelateId());break;case"PAGE_URL":e=e.replace(a,u.Utility.window.top.location.href);break;case"AUTO_KVAL":e=e.replace(a,JSON.stringify(this.mTemplate.getAutoKval()));break;case"PIXEL_SEGMENT":e=e.replace(a,JSON.stringify(this.mTemplate.getPixelSegment()));break;case"USER_ID":e=e.replace(a,this.mTemplate.getUserId())}else if(a.indexOf("CUSTOM")>-1){var s=a.replace("%%CUSTOM:","").replace("%%",""),c="";r[s]&&void 0!=r[s].getValue()?c=r[s].getValue():u.Utility.ICJQuery(document).trigger("IC_JSErrorEvent",["Placement with id "+this.mId+": Either the custom variable with the name "+s+" does not exist or can't find the value of variable in a given source."]),e=e.replace(a,c)}}return e},e.prototype.getTagToDrop=function(){Math.floor(Math.random()*this.mTagsTotalWeight);for(var e=0;e.ic_1x1_css_class{width: 1px;height: 1px;}")),t="3",e="
"):(t="4",e="
")}catch(e){u.Utility.getInstance().ic_ga_event("placement.prepareCustomDiv",u.Utility.getInstance().prepareGALabel(c.Template.getAPIKey(),this.mTemplate.getPageId(),t+") "+e.message+" PlacementId: "+this.mId))}return e},e.prototype.dropCustomDiv=function(e){var t="0";try{var i=this.mTemplate.getElementForThePlacement(this.mRandomNumber),n=void 0;if(t="1",!i)return;switch(n=u.Utility.ICJQuery(i),t="2",this.mSelector.getInsertionType()){case u.InsertionType.AFTER:n.after(e);break;case u.InsertionType.BEFORE:n.before(e);break;case u.InsertionType.FIRST_CHILD:n.prepend(e);break;case u.InsertionType.LAST_CHILD:n.append(e);break;case u.InsertionType.REPEAT:n.prepend(e)}}catch(e){u.Utility.getInstance().ic_ga_event("placement.dropCustomDiv",u.Utility.getInstance().prepareGALabel(c.Template.getAPIKey(),this.mTemplate.getPageId(),t+") "+e.message+" $# "+this.mId+" $# "+this.mSelector.getInsertionType()))}},e.prototype.setTargetToDFPParams=function(e){if(this.mType!=u.PlacementType.PIXEL&&e.getType()==u.TagType.DISPLAY){this.mDFPParams.setTarget(e.getTargetName());var t=[];if(null==e.getTargetKval()){var i=this.mTemplate.getTargetData(e.getTargetName());null!=i&&(t=i.kval)}else t=e.getTargetKval();if("kval"in this.mPublisherKval){var n=this.mPublisherKval.kval;Array.isArray(n)||(n=[n]),t=t.concat(n)}if("kval"in this.mTemplate.getPublisherKval()){n=this.mTemplate.getPublisherKval().kval;Array.isArray(n)||(n=[n]),t=t.concat(n)}t=u.Utility.getInstance().removeDuplicateFromArray(t),this.mDFPParams.setTargetKval(t)}},e.prototype.setAdRefreshParameters=function(){void 0==this.mDFPParams.getAdRefreshCount()||isNaN(this.mDFPParams.getAdRefreshCount())?this.mDFPParams.setAdRefreshCount(0):this.mDFPParams.setAdRefreshCount(this.mDFPParams.getAdRefreshCount()+1),this.mDFPParams.setAdRefreshType(this.mDATRefreshType)},e.prototype.updateAdPositionParametersToDFPParams=function(e){if(this.mType!=u.PlacementType.PIXEL&&e.getType()==u.TagType.DISPLAY){var t=this.prepareAdPositionsParams();null!=t.browserSize&&this.mTemplate.getDocumentType()==u.DocumentType.PAGE&&this.mDFPParams.setBrowserSize(t.browserSize),null!=t.absolutePosition&&this.mDFPParams.setAbsolutePosition(t.absolutePosition),null!=t.relativePosition&&this.mDFPParams.setRelativePosition(t.relativePosition)}},e.prototype.updateViewabilityAttributesToDFPParams=function(e){if(this.mType!=u.PlacementType.PIXEL&&e.getType()==u.TagType.DISPLAY)if(this.mTemplate.getDocumentType()==u.DocumentType.FRIENDLYFRAME&&parent==top||this.mTemplate.getDocumentType()==u.DocumentType.PAGE){var t=this.calculateViewabilityAttributes();this.mDFPParams.setFoldPosition(""+t.foldPosition),this.mDFPParams.setVisiblePercentage(""+t.visiblePercentage)}else this.mDFPParams.setFoldPosition("-1"),this.mDFPParams.setVisiblePercentage("-1")},e.prototype.updateAdxParametersToDFPParams=function(){var e="e"+Math.floor(10*Math.random());this.mDFPParams.setAdxRandomNumber(e),this.mDFPParams.setAdxHour((new Date).getUTCHours().toString())},e.prototype.updateAdomikParametersToDFPParams=function(e){if(this.mType!=u.PlacementType.PIXEL&&e.getType()==u.TagType.DISPLAY&&this.mTemplate.isAdomikEnable()){this.mDFPParams.setAdomikRandomNumber(u.Utility.getInstance().adomikRandomAdGroup()),this.mDFPParams.setAdomikHour((new Date).getUTCHours().toString());var t=Math.random(),i=t<.1?t<.09?"e"+Math.floor(200*t):"b":"o";this.mDFPParams.setAdxRandomNumber(i),this.mDFPParams.setAdxHour((new Date).getUTCHours().toString())}},e.prototype.getLogParams=function(e,t){var i=e.getId(),r=this.mId;"ADVANCE"==this.mPublisherType&&(i=null,r=null);var o={publisherType:this.mPublisherType,pageId:""+this.mTemplate.getPageId(),rnd:""+this.mRandomNumber,apiKey:c.Template.getAPIKey(),placementId:""+r,placementType:this.mType,tagId:""+i,tagType:e.getType(),logType:t,documentType:this.mTemplate.getDocumentType(),device:this.mTemplate.getDeviceType(),sitename:"",adsize:"",dfpKval:encodeURIComponent("bs:"+u.Utility.getInstance().getBrowserSize()),atStatus:this.mTemplate.getAutoTargetStatus(),version:u.Constant.VERSION,refererUrl:encodeURIComponent(this.mTemplate.getReferer()),pageUrl:encodeURIComponent(this.mTemplate.getUrl()),renderType:""};if(this.mType==u.PlacementType.HTML&&(o.renderType=this.mSelector.getInsertionType(),e.getType()==u.TagType.DISPLAY)){this.updateViewabilityAttributesToDFPParams(e),this.updateAdPositionParametersToDFPParams(e),o.sitename=e.getSiteDFPKeyName()+"/"+e.getTargetName(),o.adsize=e.getAdSize();var a={},s=this.getTickerValues(e),d=this.mTemplate.getParametersForDFP();a=s.length>0?n(n(n(n(n(n({},this.mPublisherKval),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),d),{t:s}):n(n(n(n(n({},this.mPublisherKval),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),d);var l="";for(var p in a)"tl"!=p&&"rnd"!=p&&"pageId"!=p&&"dt"!=p&&"d"!=p&&"referer"!=p&&(l+=p+":"+a[p]+";");o.dfpKval=l.length>0?encodeURIComponent(l.replace(/;\s*$/,"")):l}return o},e.prototype.sspCallback=function(e){if(e&&e.markit)for(var t in e.markit)this.mDFPSSPParams[t]=""+e.markit[t]},e.prototype.prepareUAT5Key=function(){"uat5"in this.mPublisherKval||(this.mPublisherKval.uat5=["true"]);var e=u.Constant.ENVIRONMENT;"prod"!=e&&-1==this.mPublisherKval.uat5.indexOf(e)&&this.mPublisherKval.uat5.push(e),-1==this.mPublisherKval.uat5.indexOf("srt_v2")&&-1==this.mPublisherKval.uat5.indexOf("srt_v1")&&(this.mIsSortableV2Enable?this.mPublisherKval.uat5.push("srt_v2"):this.mTemplate.isSortableV2Enable()&&this.mPublisherKval.uat5.push("srt_v1"))},e.prototype.prepareDFPParams=function(e){var t=this;if(this.mDFPSSPParams={},this.prepareUAT5Key(),"ADVANCE"!=this.mPublisherType&&this.mDFPParams.setTagId(e.getId()),!e.isOOPUnit()){if(this.updateViewabilityAttributesToDFPParams(e),this.updateAdPositionParametersToDFPParams(e),null!=d.SSP.getInstance()){var i=void 0;if(i=this.mIsSortableV2Enable?d.SSP.getInstance().getBids(this.mICDivId,this.sspCallback.bind(this)):d.SSP.getInstance().getBids(this.mICDivId)){if(i.a9)for(var n in i.a9)this.mDFPSSPParams[n]=""+i.a9[n];if(i.prebid){String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e});var r=-2,o="",a="",c="",l="",p=this.mTemplate.getSSPPrebidIgnoreList();for(var n in i.prebid){var f=i.prebid[n];if(p.indexOf(n)>=0)for(var m in f)this.mDFPSSPParams[m]=""+f[m];else for(var m in f)if(!m.endsWith("_id")&&!m.endsWith("_d")&&r=-1&&(this.mDFPSSPParams["pb_"+c]=""+r,r>0&&(this.mDFPSSPParams.pb_v=o,a&&(this.mDFPSSPParams["pb_"+c+"_id"]=a),l&&(this.mDFPSSPParams["pb_"+c+"_d"]=l)))}if(i.markit)for(var n in i.markit)this.mDFPSSPParams[n]=""+i.markit[n]}}if(this.mTemplate.isPredictiveEnabled()){var h=this.mTemplate.getPredictiveValue(this,this.mDATRefreshType,this.getSSPAdSizes());if(h)for(var n in h)if(h[n]&&h.hasOwnProperty(n)){var b="ml_"+s[n],y=10*Math.round(h[n]/10);this.mDFPSSPParams[b]=""+y}}}try{this.mTemplate.isKruxScriptDropped()&&u.Utility.window.Krux&&(u.Utility.window.Krux.user||u.Utility.window.ic_krux_getuserid(),this.mDFPDMPParams.kuid=u.Utility.window.Krux.user,!u.Utility.window.Krux.user&&this.mIsSortableV2Enable&&(this.mKruxTimeoutInstance=setTimeout(function(){return t.getKruxData()},this.mTemplate.getKruxTimeout())))}catch(e){}},e.prototype.getKruxData=function(){var e=this;u.Utility.window.ic_krux_getuserid(),u.Utility.window.Krux.user?(this.mDFPDMPParams.kuid=u.Utility.window.Krux.user,clearInterval(this.mKruxTimeoutInstance)):this.mKruxTimeoutInstance=setTimeout(function(){return e.getKruxData()},this.mTemplate.getKruxTimeout())},e.prototype.validateSSP=function(e,t){var i=this;if(this.mTemplate.getGDPRStatus()==u.GDPRStatus.NOT_APPLICABLE){var n=(new Date).valueOf()-this.mTemplate.getLastDFPCallTime();if(n0){var a=this.mTemplate.getPredictiveValue(this,this.mDATRefreshType,o);r=this.mTemplate.isSspHVPlacement(a)}}d.SSP.getInstance().refreshBids(this.mICDivId,this.mDATRefreshType,r),this.mSSPFetchBidsStartTime=(new Date).getTime()}var s=t?+this.mTemplate.getSSPConfig().totalDelayRefresh:+this.mTemplate.getSSPConfig().totalDelay;this.waitForSSP(e,s,t,!0)}}else t?this.refreshDisplayTag(e):this.renderDisplayTag(e)},e.prototype.waitForSSP=function(e,t,i,n){var r=this,o=t-((new Date).getTime()-this.mSSPFetchBidsStartTime);if((!d.SSP.getInstance()||"RECEIVED"!=d.SSP.getInstance().getStatus(this.mICDivId)&&"NOT_APPLICABLE"!=d.SSP.getInstance().getStatus(this.mICDivId))&&o>0){var a=+this.mTemplate.getSSPConfig().delayStep;a=n?Math.round(o/2.5):a>o?o:a,this.mWaitForSSPTimeout=setTimeout(function(){r.waitForSSP(e,t,i,!1)},a)}else clearInterval(this.mWaitForSSPTimeout),this.mSSPFetchBidsStartTime=0,i?this.refreshDisplayTag(e):this.renderDisplayTag(e)},e.prototype.getTickerValues=function(e){var t=[];try{"t"in this.mPublisherKval&&(t=t.concat(this.mPublisherKval.t.join().toUpperCase().split(","))),"t"in this.mDFPSSPParams&&(t=t.concat(this.mDFPSSPParams.t.toUpperCase().split(",")));var i=this.mTemplate.getParametersForDFP();"t"in i&&(t=t.concat(i.t.toUpperCase().split(",")))}catch(e){}return t=u.Utility.getInstance().removeDuplicateFromArray(t)},e.prototype.renderDisplayTag=function(e){var t=this;if(this.mDATRefreshType=u.RefreshType.ONLOAD,e.getTargetName().indexOf(".bottom")>0&&!this.mTemplate.eligibleForBottomZoning(this)){if(e.disableBottomZoning(),e.getDAT()){var i=e.getDAT(),r=i.getTargeting();i.destroy(),i=this.createDAT(e),e.setDAT(i),e.getSizeMapping()&&e.getDAT().defineSizeMapping(e.getSizeMapping()),i.setTargeting(r)}this.mDFPParams.setTarget(e.getTargetName())}e.getDAT()||(e.setDAT(this.createDAT(e)),e.getSizeMapping()&&e.getDAT().defineSizeMapping(e.getSizeMapping())),this.prepareDFPParams(e);var o=e.getDAT(),a=this.getTickerValues(e),s=this.mTemplate.getParametersForDFP(),c=n(n({},this.mTemplate.getPublisherKval()),this.mPublisherKval),l={};if(l=a.length>0?n(n(n(n(n(n({},c),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),s),{t:a}):n(n(n(n(n({},c),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),s),o.setTargeting(l),this.mTemplate.getDocumentType()==u.DocumentType.IFRAME){o.setTargetingByKey("rft",[""])}try{this.mTemplate.isDebugModeEnabled()&&u.Utility.getInstance().debugConsoleMessage("Calling DFP for "+e.getAdSize()+" with the parameters ",[l])}catch(e){}if(this.mIsSortableV2Enable){var p=d.SortableV2.getInstance(),f=d.DATManager.getInstance();p&&f&&(p.display(o),p.refresh([o],!0))}else this.mTemplate.isSingleRequestEnabled()?this.mLoadType==u.LoadType.ON_VIEW?this.mTemplate.readyToRender(this.mICDivId,this.mLoadType,e):this.mTemplate.readyToRender(this.mICDivId,this.mLoadType):o.render();e.isOOPUnit()||(this.mTargetRuleTimeoutInstance=setTimeout(function(){return t.executeTargetRules(e)},this.mTemplate.getTargetRulesTimeout()))},e.prototype.refreshDisplayTag=function(e){this.prepareDFPParams(e);var t=e.getDAT();t.clearTargeting();var i=this.getTickerValues(e),o=this.mTemplate.getParametersForDFP(),a=n(n({},this.mTemplate.getPublisherKval()),this.mPublisherKval),s={};s=i.length>0?n(n(n(n(n(n({},a),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),o),{t:i}):n(n(n(n(n({},a),this.mDFPParams),this.mDFPDMPParams),this.mDFPSSPParams),o),t.setTargeting(s);try{this.mTemplate.isDebugModeEnabled()&&u.Utility.getInstance().debugConsoleMessage("Refreshing the tag "+e.getAdSize(),[s])}catch(e){}if(this.mIsSortableV2Enable){var c=d.SortableV2.getInstance();c&&c.refresh([t],!1)}else this.mTemplate.isSingleRequestEnabled()?this.mTemplate.readyToRefresh(this.mICDivId):(this.mTemplate.setLastDFPCallTime((new Date).valueOf()),t.refresh());this.mDATAdRefreshTimerStartTime=0,this.mDATAdRefreshTimerStopTime=0,this.mDATNotInViewTime=0,this.mDATInViewTime=0,this.mDATSlotRendered=!1,this.mDATAdRefreshState=r.STOP,this.mIsDATAdIndirectAdvertiser=!1,this.mDATAdRefreshTimerInstance},e.prototype.dropTag=function(e,t){t&&u.Utility.ICJQuery(document).trigger("Callback_Preload_"+this.mRandomNumber);var i=this.replaceMacros(e.getScript(),e);if(this.mType==u.PlacementType.PIXEL)u.Utility.ICJQuery("head").prepend(i),u.Utility.getInstance().pushToReportLog(this.getLogParams(e,a.SERVED));else{if(void 0==this.mSelector)return;switch(e.getType()){case u.TagType.CUSTOM:u.Utility.ICJQuery("#"+this.mICDivId).append(i),u.Utility.getInstance().pushToReportLog(this.getLogParams(e,a.SERVED));break;case u.TagType.DISPLAY:t?this.mIsSortableV2Enable?this.renderDisplayTag(e):this.validateSSP(e,!1):this.mIsSortableV2Enable?this.refreshDisplayTag(e):this.validateSSP(e,!0);break;case u.TagType.NATIVE:case u.TagType.VIDEO:}}t&&(u.Utility.ICJQuery(document).trigger("Callback_Postload_"+this.mRandomNumber),u.Utility.ICJQuery(document).trigger("Callback_OnViewport_"+this.mRandomNumber,[this.mICDivId])),this.mState=u.PlacementState.LOADED},e.prototype.saveToStorage=function(e,t){var i=u.Utility.getInstance();i.isLocalStorageSupported()?i.saveToLocalStorage(e,t):i.saveToCookie(e,t)},e.prototype.getFromStorage=function(e){var t=u.Utility.getInstance();return t.isLocalStorageSupported()?t.getFromLocalStorage(e):t.getFromCookie(e)},e.prototype.deleteFromStorage=function(e){var t=u.Utility.getInstance();t.isLocalStorageSupported()?t.deleteFromLocalStorage(e):t.deleteFromCookie(e)},e.prototype.displayTag=function(e){var t=this;if(this.mState=u.PlacementState.INITIALIZED,this.mLastRenderedTagType=this.mTagToRender.getType(),this.mType==u.PlacementType.HTML){if(e&&!u.Utility.ICJQuery("#"+this.mICDivId).length){var i=this.prepareCustomDiv();this.dropCustomDiv(i)}this.mTagToRender.getType()!=u.TagType.DISPLAY||!this.mTemplate.isSingleRequestEnabled()||e||this.mIsSortableV2Enable||this.mTemplate.addTagToRefreshArray(this.mICDivId,this.mTagToRender)}switch(this.setTargetToDFPParams(this.mTagToRender),this.updateAdxParametersToDFPParams(),this.updateAdomikParametersToDFPParams(this.mTagToRender),this.setAdRefreshParameters(),e&&u.Utility.getInstance().pushToReportLog(this.getLogParams(this.mTagToRender,a.PROBABLE)),this.mLoadType){case u.LoadType.ON_LOAD:"complete"==document.readyState?this.dropTag(this.mTagToRender,e):u.Utility.ICJQuery(window).on("load",function(){t.dropTag(t.mTagToRender,e)});break;case u.LoadType.ON_VIEW:var n=u.Utility.getInstance(),r=this.mTemplate.getOnViewBufferPercentage();n.isInViewport("#"+this.mICDivId,0)?this.dropTag(this.mTagToRender,e):u.Utility.ICJQuery(document).on("scroll."+this.mRandomNumber,function(i){n.isInViewport("#"+t.mICDivId,r)&&(u.Utility.ICJQuery(document).off("scroll."+t.mRandomNumber),t.dropTag(t.mTagToRender,e))});break;case u.LoadType.ON_REALTIME:case u.LoadType.CUSTOM:this.dropTag(this.mTagToRender,e)}},e.prototype.getAbsolutePosition=function(e){var t=0,i=0;if(this.mTemplate.getDocumentType()==u.DocumentType.FRIENDLYFRAME){var n=u.Utility.window.frameElement.getBoundingClientRect();null==n||void 0==n||0==n.top&&0==n.left&&0==n.right&&0==n.bottom||(void 0!==u.Utility.window.top.pageXOffset?(t=Math.round(n.left+u.Utility.window.top.pageXOffset),i=Math.round(n.top+u.Utility.window.top.pageYOffset)):(t=Math.round(n.left+u.Utility.window.top.document.documentElement.scrollLeft),i=Math.round(n.top+u.Utility.window.top.document.documentElement.scrollTop)))}var r=e.getBoundingClientRect();return null==r||void 0==r||0==r.top&&0==r.left&&0==r.right&&0==r.bottom?null:void 0!==pageXOffset?(t+=Math.round(r.left+pageXOffset))+"x"+(i+=Math.round(r.top+pageYOffset)):(t+=Math.round(r.left+document.documentElement.scrollLeft))+"x"+(i+=Math.round(r.top+document.documentElement.scrollTop))},e.prototype.getRelativePosition=function(e){var t=0,i=0;if(this.mTemplate.getDocumentType()==u.DocumentType.FRIENDLYFRAME){var n=u.Utility.window.frameElement.getBoundingClientRect();null==n||void 0==n||0==n.top&&0==n.left&&0==n.right&&0==n.bottom||(t=Math.round(n.left),i=Math.round(n.top))}var r=e.getBoundingClientRect();return null==r||void 0==r||0==r.top&&0==r.left&&0==r.right&&0==r.bottom?null:(t+=Math.round(r.left))+"x"+(i+=Math.round(r.top))},e.prototype.prepareAdPositionsParams=function(){var e=null,t=null,i=null;if(this.mTemplate.getDocumentType()==u.DocumentType.FRIENDLYFRAME&&parent==top||this.mTemplate.getDocumentType()==u.DocumentType.PAGE){e=u.Utility.getInstance().getBrowserSize();var n=document.getElementById(this.mICDivId),r=this.getAbsolutePosition(n),o=this.getRelativePosition(n);r&&(t=r),o&&(i=o)}return{browserSize:e,absolutePosition:t,relativePosition:i}},e.prototype.getVisibleAreaPercentage=function(e,t,i){try{if(!u.Utility.ICJQuery(e).is(":visible"))return-2}catch(e){}var n=e.getBoundingClientRect(),r=u.Utility.getInstance().clientWindowHeight(),o=u.Utility.getInstance().clientWindowWidth(),a=n.top,s=n.left,c=0,d=0;if(this.mTemplate.getDocumentType()==u.DocumentType.FRIENDLYFRAME){var l=u.Utility.window.frameElement.getBoundingClientRect(),p=u.Utility.window.top.innerHeight,f=u.Utility.window.top.innerWidth;if(l.top>p||l.left>f||l.bottom<0||l.right<0||l.top+n.top>p||l.left+n.left>f||n.bottom<0||n.right<0)return 0;l.top<0&&(a+=l.top),l.left<0&&(s+=l.left),pr?r:h,b=b>o?o:b;var y=m<0?0:m,v=g<0?0:g;return((y=y>r?r:y)-h)*((v=v>o?o:v)-b)/(Number(i)*Number(t))*100},e.prototype.calculateViewabilityAttributes=function(){var e="300x250",t=this.getNonNullPrimaryAdSize(),i=document.getElementById(this.mICDivId);t.indexOf("x")>=0&&!isNaN(+t.split("x")[0])&&!isNaN(+t.split("x")[1])&&(e=t);var n=e.split("x")[0],r=e.split("x")[1];i.setAttribute("style","display: block; min-width: "+n+"px; min-height: "+r+"px;");var o=this.getVisibleAreaPercentage(i,+n,+r);o>=0&&(o=10*Math.ceil(o/10)),i.setAttribute("style","");var a=0;return o<=-1?a=o:o>=u.Constant.FOLDPOSITION_TOLERANCE&&(a=1),{foldPosition:a,visiblePercentage:o}},e.prototype.setWaitingForTarget=function(e){this.mWaitingForTarget=e},e.prototype.getWaitingForTarget=function(){return this.mWaitingForTarget},e.prototype.initialiseObject=function(e){var t="0";try{this.mICDivId="investingchannel_div_"+this.mRandomNumber,t="1",this.mStorageKey="IC_Placement_"+this.mId,t="2",this.mState=u.PlacementState.UNKNOWN,t="3",this.mDFPParams=new u.DFPPlacementParams,t="4",this.mDFPParams.setRandomNumber(this.mRandomNumber),t="5",this.mDFPParams.setTile(e),t="6",this.mDFPParams.setPosition(this.mTemplate.calculatePosition(this.getNonNullPrimaryAdSize(),this.mRandomNumber)),t="7";for(var i=0;i1&&n.getType()==u.TagType.DISPLAY&&n.enableBottomZoning(),t="9."+i,t="11."+i,n.getPublisherKVal()){var r=n.getPublisherKVal().split("&");t="12."+i;for(var o=0;o0?this.mDATAdRefreshTimerStartTime-this.mDATAdRefreshTimerStopTime:0;this.mDATNotInViewTime+=t;var i=this.mTemplate.getAutoRefreshConfig().RefreshTime,n=this.mTemplate.getAutoRefreshConfig().OutOfViewTime;this.mIsDATAdIndirectAdvertiser&&(i=this.mTemplate.getAutoRefreshConfig().RefreshTimeIndirect,n=this.mTemplate.getAutoRefreshConfig().OutOfViewTimeIndirect),t>n?(this.mDATRefreshType=u.RefreshType.ACTIVEWINDOW,this.displayTag(!1)):this.mDATAdRefreshTimerInstance=setTimeout(function(){e.mDATRefreshType=u.RefreshType.TIME,e.displayTag(!1)},i-this.mDATInViewTime),this.mDATAdRefreshState=r.START}},e.prototype.stopRefreshTimer=function(){this.mDATAdRefreshState==r.START&&(this.mDATAdRefreshTimerStopTime=(new Date).valueOf(),this.mDATInViewTime=this.mDATInViewTime+(this.mDATAdRefreshTimerStopTime-this.mDATAdRefreshTimerStartTime),clearInterval(this.mDATAdRefreshTimerInstance),this.mDATAdRefreshState=r.STOP)},e.prototype.evaluateAdRefresh=function(e){if(this.mIsAutoRefreshEnabled&&2==this.mDATRenderedAdSize.length){var t=this.mDATRenderedAdSize[0]+"x"+this.mDATRenderedAdSize[1];if(!(this.mDFPParams.getAdRefreshCount()>=this.mTemplate.getAutoRefreshConfig().MaxRefreshCount||0!=this.mTemplate.getAutoRefreshConfig().EnabledAdSizes.length&&-1===this.mTemplate.getAutoRefreshConfig().EnabledAdSizes.indexOf(t))){var i=this.mTemplate.getAutoRefreshConfig().ViewabilityThresholdPercentage;if(this.mIsDATAdIndirectAdvertiser&&(i=this.mTemplate.getAutoRefreshConfig().ViewabilityThresholdPercentageIndirect),"300x1050"==t){if(!this.mIsDATAdIndirectAdvertiser)return void(this.mIsAutoRefreshEnabled=!1);i*=.6}e>=i?this.startRefreshTimer():this.stopRefreshTimer()}}},e.prototype.windowEventHandler=function(e){if(this.mIsAutoRefreshEnabled){var t=document.getElementById(this.mICDivId);if(t)if(e==o.BLUR)this.mTemplate.getDocumentType()!=u.DocumentType.PAGE?this.mActiveBrowserWindow=document.hasFocus()||parent.document.hasFocus():this.mActiveBrowserWindow=!1,this.mDATSlotRendered&&!this.mActiveBrowserWindow&&this.evaluateAdRefresh(0);else if(e==o.FOCUS&&(this.mActiveBrowserWindow=!0),this.mDATSlotRendered&&this.mActiveBrowserWindow){var i=this.getVisibleAreaPercentage(t,this.mDATRenderedAdSize[0],this.mDATRenderedAdSize[1]);this.evaluateAdRefresh(i)}}},e.prototype.registerWindowEvent=function(){var e=this;this.mTemplate.getDocumentType()!=u.DocumentType.IFRAME&&this.mTemplate.getAutoRefreshConfig().IsEnabled&&(this.mScrollEvent=function(){e.windowEventHandler(o.SCROLL)},this.mResizeEvent=function(){e.windowEventHandler(o.RESIZE)},this.mFocusEvent=function(){e.windowEventHandler(o.FOCUS)},this.mBlurEvent=function(){e.windowEventHandler(o.BLUR)},u.Utility.window.attachEvent?(u.Utility.window.attachEvent("onscroll",this.mScrollEvent,!0),u.Utility.window.attachEvent("onresize",this.mResizeEvent,!1),u.Utility.window.attachEvent("onfocus",this.mFocusEvent,!1),u.Utility.window.attachEvent("onblur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=u.DocumentType.PAGE&&(u.Utility.window.top.attachEvent("onscroll",this.mScrollEvent,!0),u.Utility.window.top.attachEvent("onresize",this.mResizeEvent,!1),u.Utility.window.top.attachEvent("onfocus",this.mFocusEvent,!1),u.Utility.window.top.attachEvent("onblur",this.mBlurEvent,!1))):(u.Utility.window.addEventListener("scroll",this.mScrollEvent,!0),u.Utility.window.addEventListener("resize",this.mResizeEvent,!1),u.Utility.window.addEventListener("focus",this.mFocusEvent,!1),u.Utility.window.addEventListener("blur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=u.DocumentType.PAGE&&(u.Utility.window.top.addEventListener("scroll",this.mScrollEvent,!0),u.Utility.window.top.addEventListener("resize",this.mResizeEvent,!1),u.Utility.window.top.addEventListener("focus",this.mFocusEvent,!1),u.Utility.window.top.addEventListener("blur",this.mBlurEvent,!1))))},e.prototype.unregisterWindowEvent=function(){this.mTemplate.getDocumentType()!=u.DocumentType.IFRAME&&this.mTemplate.getAutoRefreshConfig().IsEnabled&&(u.Utility.window.detachEvent?(u.Utility.window.detachEvent("onscroll",this.mScrollEvent,!0),u.Utility.window.detachEvent("onresize",this.mResizeEvent,!1),u.Utility.window.detachEvent("onfocus",this.mFocusEvent,!1),u.Utility.window.detachEvent("onblur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=u.DocumentType.PAGE&&(u.Utility.window.top.detachEvent("onscroll",this.mScrollEvent,!0),u.Utility.window.top.detachEvent("onresize",this.mResizeEvent,!1),u.Utility.window.top.detachEvent("onfocus",this.mFocusEvent,!1),u.Utility.window.top.detachEvent("onblur",this.mBlurEvent,!1))):(u.Utility.window.removeEventListener("scroll",this.mScrollEvent,!0),u.Utility.window.removeEventListener("resize",this.mResizeEvent,!1),u.Utility.window.removeEventListener("focus",this.mFocusEvent,!1),u.Utility.window.removeEventListener("blur",this.mBlurEvent,!1),this.mTemplate.getDocumentType()!=u.DocumentType.PAGE&&(u.Utility.window.top.removeEventListener("scroll",this.mScrollEvent,!0),u.Utility.window.top.removeEventListener("resize",this.mResizeEvent,!1),u.Utility.window.top.removeEventListener("focus",this.mFocusEvent,!1),u.Utility.window.top.removeEventListener("blur",this.mBlurEvent,!1))))},e.prototype.executeTargetRules=function(e){if(clearInterval(this.mTargetRuleTimeoutInstance),e.isForcedTargetEnabled()||null==this.mTemplate.getGlobalTarget())if(null!=e.getTargetRule())this.mTemplate.executeTargetRules(e.getTargetName(),e.getTargetRule());else{var t=this.mTemplate.getTargetData(e.getTargetName());null!=t&&this.mTemplate.executeTargetRules(e.getTargetName(),t.rules)}else this.mTemplate.dropGlobalTargetRules()},e.prototype.eventDATSlotRenderEnded=function(e){this.mDATSlotRendered=!e.isEmpty,this.mDATRenderedAdSize=e.size,this.mTemplate.getDocumentType()!=u.DocumentType.IFRAME&&this.mTemplate.getAutoRefreshConfig().IsEnabled?(this.mIsDATAdIndirectAdvertiser=this.mTemplate.getAutoRefreshConfig().AdvertisersIndirect.indexOf(e.advertiserId)>=0,this.mTemplate.getAutoRefreshConfig().DisabledCampaigns.indexOf(e.campaignId)>=0&&(this.mIsAutoRefreshEnabled=!1)):this.mIsAutoRefreshEnabled=!1,this.mDATSlotRendered||u.Utility.ICJQuery(document).trigger("Callback_Blank_"+this.mRandomNumber)},e.prototype.eventDATImpressionViewable=function(e,t){var i=document.getElementById(this.mICDivId);if(i&&(u.Utility.getInstance().pushToReportLog(this.getLogParams(e,a.VIEWED)),!e.isOOPUnit()&&this.mDATSlotRendered&&this.mActiveBrowserWindow&&void 0!==this.mDATRenderedAdSize&&this.mDATRenderedAdSize.length>1)){var n=i.querySelectorAll("iframe[id^=google_ads_iframe_]");if(!n||n.length<1)return;var r=n[0];if(r){var o=this.getVisibleAreaPercentage(r,this.mDATRenderedAdSize[0],this.mDATRenderedAdSize[1]);this.evaluateAdRefresh(Math.round(o))}}},e.prototype.eventDATSlotVisibilityChanged=function(e){this.mDATSlotRendered&&this.mActiveBrowserWindow&&this.evaluateAdRefresh(e.inViewPercentage)},e.prototype.eventDATSlotRequested=function(e,t){u.Utility.getInstance().pushToReportLog(this.getLogParams(e,a.SERVED)),this.mKruxTimeoutInstance&&clearInterval(this.mKruxTimeoutInstance)},e.prototype.getId=function(){return this.mId},e.prototype.getState=function(){return this.mState},e.prototype.getSelector=function(){return this.mSelector},e.prototype.isParent=function(){return this.mIsParent},e.prototype.makeChild=function(){this.mIsParent=!1},e.prototype.getPriority=function(){return this.mPriority},e.prototype.getLoadType=function(){return this.mLoadType},e.prototype.getDivId=function(){return this.mICDivId},e.prototype.getPublisherType=function(){return this.mPublisherType},e.prototype.getTagToRender=function(){return this.mTagToRender},e.prototype.isEligibleForRendering=function(e){if(this.mState!=u.PlacementState.UNKNOWN&&this.mState!=u.PlacementState.SELECTOR_NOT_LOADED&&this.mState!=u.PlacementState.SELECTOR_LOADED)return!1;if(e&&this.mLoadType==u.LoadType.CUSTOM)return!1;if(void 0!=this.mTargeting&&!this.mTargeting.isIsPlacementEligibleForRendering())return!1;if(this.mFrequency){var t=this.getFromStorage(this.mStorageKey);if(t){t=JSON.parse(t);var i=new Date(t.dateTime);switch(this.mFrequency.getUnit()){case u.FrequencyCapUnit.MILLISECONDS:i.setMilliseconds(i.getMilliseconds()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.SECONDS:i.setSeconds(i.getSeconds()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.MINUTES:i.setMinutes(i.getMinutes()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.HOURS:i.setHours(i.getHours()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.DAYS:i.setDate(i.getDate()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.WEEKS:i.setDate(i.getDate()+7*this.mFrequency.getDuration());break;case u.FrequencyCapUnit.MONTHS:i.setMonth(i.getMonth()+this.mFrequency.getDuration());break;case u.FrequencyCapUnit.YEARS:i.setFullYear(i.getFullYear()+this.mFrequency.getDuration())}if(i>new Date){if(Number(t.count)>=this.mFrequency.getCap())return this.mState=u.PlacementState.CAPPING_EXPIRED,!1}else this.deleteFromStorage(this.mStorageKey)}}if(this.mType!=u.PlacementType.HTML)return!0;if("ADVANCE"==this.mPublisherType&&"COMPLETED"!=this.mTemplate.getTargetStatus(this.mTagToRender.getTargetName())&&!this.mTemplate.getGlobalTarget())return console.log("**** Not eligible because of Target"),!1;if(this.mTagToRender.getType()==u.TagType.DISPLAY&&""==this.mTagToRender.getAdSize())return this.mState=u.PlacementState.TAG_NOT_AVAILABLE,!1;if(!this.mIsParent)return!0;var n=u.Utility.getInstance();if(void 0!=this.mSelector&&n.isSelectorLoaded(this.mSelector.getIdentifier(),this.mTemplate.getPageId(),this.mId,this.mRandomNumber)){if(this.mState=u.PlacementState.SELECTOR_LOADED,!u.Utility.ICJQuery("#"+this.mICDivId).length){var r=this.prepareCustomDiv();this.dropCustomDiv(r)}return!0}return this.mState=u.PlacementState.SELECTOR_NOT_LOADED,this.mLoadType==u.LoadType.CUSTOM&&this.mTemplate.pushPlacementErrorLog(this.mId,this.mType,this.mRandomNumber,this.getPublisherType(),u.ErrorType.SELECTOR_NOT_FOUND),!1},e.prototype.isEligibleForRefreshing=function(){return(this.mState==u.PlacementState.LOADED||this.mState==u.PlacementState.VIEWED)&&this.mType==u.PlacementType.HTML},e.prototype.render=function(){var e=d.DATManager.getInstance();if(null!=e&&e.initialLoadDisabled()&&this.mTagToRender.getType()==u.TagType.DISPLAY&&(this.mTagToRender.setDAT(this.createDAT(this.mTagToRender)),this.mTagToRender.getSizeMapping()&&this.mTagToRender.getDAT().defineSizeMapping(this.mTagToRender.getSizeMapping())),this.mLoadType==u.LoadType.CUSTOM&&this.mTemplate.addTagToRenderArray(this.mICDivId,this.mTagToRender,this.mLoadType),this.mSSPFetchBidsStartTime=this.mTemplate.getSSPFetchBidsStartTime(),this.mFrequency){var t=this.getFromStorage(this.mStorageKey),i={};if(t){t=JSON.parse(decodeURIComponent(t));var n=new Date(t.dateTime),r=Number(t.count);++r,i.count=r,i.dateTime=n}else i.count=1,i.dateTime=new Date;this.saveToStorage(this.mStorageKey,JSON.stringify(i))}this.displayTag(!0)},e.prototype.getLastRenderedTagType=function(){return this.mLastRenderedTagType},e.prototype.refresh=function(){this.mDATRefreshType=u.RefreshType.MANUAL,this.displayTag(!1)},e.prototype.clear=function(){u.Utility.ICJQuery("#"+this.mICDivId).length&&u.Utility.ICJQuery("#"+this.mICDivId).remove()},e.prototype.destroy=function(){for(var e=0,t=this.mTags;e=0||(e=e.concat(i.split(",")))}return e},e.prototype.getPosition=function(){return this.mDFPParams?this.mDFPParams.getPosition():null},e.prototype.getTile=function(){return this.mDFPParams?this.mDFPParams.getTile():null},e.prototype.getType=function(){return this.mType},e.prototype.getRandomNumber=function(){return this.mRandomNumber},e.prototype.getRawData=function(){return this.mCorePlacement},e.prototype.isSortableV2Enable=function(){return this.mIsSortableV2Enable},e}();t.default=l,function(e){e.STOP="STOPPED",e.START="STARTED"}(r||(r={})),function(e){e.SCROLL="SCROLL",e.RESIZE="RESIZE",e.FOCUS="FOCUS",e.BLUR="BLUR"}(o||(o={})),function(e){e.SERVED="S",e.VIEWED="V",e.PROBABLE="P"}(a||(a={})),function(e){e["160x600"]="16",e["250x250"]="22",e["320x50"]="35",e["300x250"]="32",e["300x600"]="36",e["300x1050"]="31",e["468x60"]="46",e["728x90"]="79",e["970x90"]="99",e["970x250"]="92",e["320x100"]="30"}(s||(s={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(34);t.DAT=n.default;var r=i(35);t.SSP=r.default;var o=i(37);t.DMP=o.default;var a=i(38);t.DATManager=a.default;var s=i(39);t.SortableV2=s.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),r=i(0);function o(e,t,i){i?(ga("create",i,"auto","UAT5JS"),ga("UAT5JS.send",{hitType:"event",eventCategory:"UAT 5 v1.9",eventAction:e,eventLabel:t})):(ga("create","UA-136075674-1","auto","UAT5UATJS"),ga("UAT5UATJS.send",{hitType:"event",eventCategory:"UAT 5 v1.9",eventAction:e,eventLabel:t}))}function a(){return!!document.querySelector("[alt='ZeroHedge']")}t.gaNewElem={},t.gaElems={},function(){var e=new Date;!function(t,i,n,r,o,a,s){t.GoogleAnalyticsObject=o,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*e,a=i.createElement(n),s=i.getElementsByTagName(n)[0],a.async=1,a.src="//www.google-analytics.com/analytics.js",s.parentNode.insertBefore(a,s)}(window,document,"script",0,"ga",t.gaNewElem,t.gaElems)}();var s,u,c,d=[];function l(e,t){try{var i=[];if(i.push("%c IC UAT ","border-radius:4px;background:#8bc43f;color:#fff;font-weight: bold;"),i.push(e),t)for(var n=0;n0)for(var s=0;s0)for(var a=0;a0&&this.mTemplate.renderAdvancePlacements(t)}catch(e){s=this.mTemplate?this.mTemplate.getPageId():"null";n.Template.pushAPILog(r.ErrorType.PAGE_RENDERTAG_FAILED,"("+e.message+")",s)}else n.Template.pushAPILog(r.ErrorType.PAGE_OBJECT_NOT_FOUND,"(page.renderTags())")},e.prototype.refreshTags=function(e){if(p&&l("Invoked global refresh tags command"),this.mTemplate)try{if(e&&Array.isArray(e))for(var t=0;t0?this.mPlacements[0].getRandomNumber():null},e.prototype.render=function(){try{try{if(p)for(var e=0;e0&&this.mTemplate&&this.mTemplate.renderAdvancePlacements(this.mPlacements)}catch(a){for(e=0;e0)for(;InvestingChannelQueue.length>0;){var e=c.Page.getAPIStatus();if("NOT_READY"==e||"READY"==e)InvestingChannelQueue.shift()();else if("INPROGRESS"==e){c.Page.apiReady(m);break}}!function(e,t){e.push=function(i){Array.prototype.push.call(e,i),t(e)}}(InvestingChannelQueue,function(e){m()})}var g=document.currentScript||function(){for(var e=document.getElementsByTagName("script"),t=null,i=0;i-1&&-1!==n.indexOf(".js",n.length-".js".length))return e[i]}catch(e){o("uat.js","Error while parcing the script src on "+(a()?"ZeroHedge":"Other"))}return null}();null!=g?g.addEventListener("load",function(){p&&l("Script loaded."),m()}):(console.warn("IC: Not able to add load event...."),o("uat.js","Not able to add load event "+(a()?"ZeroHedge":"Other")))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=function(){function e(e,t){this.mCallbackid=e.callbackid,this.mScript=e.script,this.mType=e.type,this.registerEvent(t)}return e.prototype.registerEvent=function(e){var t=this;switch(this.mType){case n.CallbackType.PRELOAD:n.Utility.ICJQuery(document).on("Callback_Preload_"+e,function(){return t.loadScript()});break;case n.CallbackType.POSTLOAD:n.Utility.ICJQuery(document).on("Callback_Postload_"+e,function(){return t.loadScript()});break;case n.CallbackType.ON_VIEWPORT:n.Utility.ICJQuery(document).on("Callback_OnViewport_"+e,function(i,r){var o=n.Utility.getInstance();o.isInViewport("#"+r,null)?t.loadScript():n.Utility.ICJQuery(document).on("resize scroll."+e,function(){o.isInViewport("#"+r,null)&&(n.Utility.ICJQuery(document).off("resize scroll."+e),t.loadScript())})});break;case n.CallbackType.ON_DOMLOAD:"complete"===document.readyState?this.loadScript():window.onload=function(){t.loadScript()};break;case n.CallbackType.ON_DOMREADY:n.Utility.ICJQuery(document).ready(function(){return t.loadScript()});break;case n.CallbackType.ON_DOMUNLOAD:n.Utility.ICJQuery(window).on("unload",function(){return t.loadScript()});break;case n.CallbackType.ON_BLANK:n.Utility.ICJQuery(document).on("Callback_Blank_"+e,function(){return t.loadScript()})}},e.prototype.loadScript=function(){n.Utility.getInstance().executeJS(this.mScript)},e.prototype.getType=function(){return this.mType},e.prototype.getScript=function(){return this.mScript},e}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(8),r=i(0),o=i(2);t.gaNewElem={},t.gaElems={};var a=function(){function e(){var e=this;this.mErrors=[],this.mReports=[],this.mAPIs=[],this.mGDPRStatus=o.GDPRStatus.NOT_APPLICABLE,r.Utility.ICJQuery(window).on("unload",function(){return e.postLogsToServer()}),setInterval(function(){e.postLogsToServer()},1e3)}return e.getInstance=function(){return this.mUtil||(this.mUtil=new e),this.mUtil},e.prototype.setGDPRStatus=function(e){this.mGDPRStatus=e},e.prototype.executeJS=function(t){e.ICJQuery.globalEval(t)},e.prototype.isSelectorLoaded=function(t,i,n,r){return!!e.ICJQuery("#investingchannel_div_"+r).length||this.getEmptyElementsForSelector(t,i,n).length>0},e.prototype.getEmptyElementsForSelector=function(e,t,i){var n="0";try{var o=[],a=document.querySelectorAll(e);n="1";for(var s=0;s-1){if(u[d].getAttribute("ic_pageId")!=t){c=!0;break}if(u[d].getAttribute("ic_placementid")==""+i){c=!0;break}}c||(n="2."+s,o.push(a[s]))}return o}catch(e){r.Utility.getInstance().ic_ga_event("Utility.getEmptyElementsForSelector",this.prepareGALabel("",t,n+") "+e.message+" $# "+i))}},e.prototype.executeOnLoad=function(e){try{var t=document.readyState;if("interactive"==t||"complete"==t)return void this.executeJS(e);window.addEventListener("DOMContentLoaded",this.executeJS(e),!1)}catch(t){this.executeJS(e)}},e.prototype.clientWindowHeight=function(){var e=0;return"number"==typeof window.innerHeight?e=window.innerHeight:document.documentElement&&document.documentElement.clientHeight?e=document.documentElement.clientHeight:document.body&&document.body.clientHeight&&(e=document.body.clientHeight),e},e.prototype.clientWindowWidth=function(){var e=0;return"number"==typeof window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(e=document.body.clientWidth),e},e.prototype.getBrowserSize=function(){return this.clientWindowWidth()+"x"+this.clientWindowHeight()},e.prototype.convertAdSize=function(e){var t="";if(e.constructor!==Array&&("fluid"==e.toString()||"oop"==e.toString()))return e.toString();if(2==e.length&&"number"==typeof e[0]&&"number"==typeof e[1])return e.join("x");for(var i=0;i0&&(u+=a*(i/100),c+=s*(i/100),d-=a*(i/100),l-=s*(i/100)),u>=0&&c>=0&&d<=a&&l<=s},e.prototype.isCookieEnabled=function(){try{document.cookie="ic_cookietest=1";var e=-1!=document.cookie.indexOf("ic_cookietest=");return document.cookie="ic_cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(e){}return!1},e.prototype.getFromLocalStorage=function(e){try{if("undefined"!=typeof Storage)return localStorage.getItem(e)}catch(e){}return null},e.prototype.getFromSessionStorage=function(e){try{if("undefined"!=typeof Storage)return sessionStorage.getItem(e)}catch(e){}return null},e.prototype.getFromCookie=function(e){if(navigator.cookieEnabled){var t=("; "+document.cookie).split("; "+e+"=");if(2==t.length)return t.pop().split(";").shift()}return""},e.prototype.isCookieExists=function(e){if(navigator.cookieEnabled&&2==("; "+document.cookie).split("; "+e+"=").length)return!0;return!1},e.prototype.deleteFromLocalStorage=function(e){try{"undefined"!=typeof Storage&&localStorage.removeItem(e)}catch(e){}},e.prototype.deleteFromSessionStorage=function(e){try{"undefined"!=typeof Storage&&sessionStorage.removeItem(e)}catch(e){}},e.prototype.deleteFromCookie=function(e){navigator.cookieEnabled&&(document.cookie=e+"=;expires=Fri, 02-Jan-1970 00:00:00 GMT;path=/")},e.prototype.saveToLocalStorage=function(e,t){try{"undefined"!=typeof Storage&&localStorage.setItem(e,t)}catch(e){}},e.prototype.saveToSessionStorage=function(e,t){try{"undefined"!=typeof Storage&&sessionStorage.setItem(e,t)}catch(e){}},e.prototype.saveToCookie=function(e,t,i){navigator.cookieEnabled&&(document.cookie=void 0==i?e+"="+t+";path=/":e+"="+t+"; max-age="+i+";path=/")},e.prototype.getFromQueryString=function(e,t){var i=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&]*)|&|$)").exec(i);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},e.prototype.pushToErrorLog=function(e){this.mErrors.push(e)},e.prototype.pushToReportLog=function(e){this.mReports.push(e)},e.prototype.pushToAPILog=function(e){this.mAPIs.push(e)},e.prototype.isLocalStorageSupported=function(){try{if("undefined"==typeof Storage)return!1}catch(e){return!1}return!0},e.prototype.adomikRandomAdGroup=function(){var e=Math.random();switch(!1){case!(e<.09):return"ad_ex"+Math.floor(100*e);case!(e<.1):return"ad_bc";default:return"ad_opt"}},e.prototype.removeDuplicateFromArray=function(e){if(!e)return e;for(var t=[],i=[],n=0;n=0||(t.push(e[n].toLowerCase()),i.push(e[n]));return i},e.prototype.getTopWindowDomain=function(){try{return r.Utility.window.top.location.hostname}catch(e){}try{return document.referrer.match(/:\/\/(.[^/]+)/)[1]}catch(e){}return""},e.prototype.prepareGALabel=function(e,t,i){return(e||"")+" $# "+(t||"")+" $# "+i},e.prototype.initializeGA=function(){var e=new Date;!function(t,i,n,r,o,a,s){t.GoogleAnalyticsObject=o,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*e,a=i.createElement(n),s=i.getElementsByTagName(n)[0],a.async=1,a.src="//www.google-analytics.com/analytics.js",s.parentNode.insertBefore(a,s)}(window,document,"script",0,"ga",t.gaNewElem,t.gaElems)},e.prototype.ic_ga_event=function(e,t,i){i?(ga("create",i,"auto","UAT5Data"),ga("UAT5Data.send",{hitType:"event",eventCategory:"UAT 5 v1.9",eventAction:e,eventLabel:t})):(ga("create","UA-44058249-9","auto","UAT5"),ga("UAT5.send",{hitType:"event",eventCategory:"UAT 5 v1.9",eventAction:e,eventLabel:t}))},e.prototype.postLogsToServer=function(){if(this.mReports.length>0){var t=this.mReports;this.mReports=[],e.ICJQuery.post({url:r.Constant.UAT_LOG_REPORT_URL+"?gdprstatus="+this.mGDPRStatus,async:!0,data:JSON.stringify(t),contentType:"application/json; charset=UTF-8",xhrFields:{withCredentials:!0}})}if(this.mErrors.length>0){var i=this.mErrors;this.mErrors=[],e.ICJQuery.post({url:r.Constant.UAT_LOG_ERROR_URL+"?gdprstatus="+this.mGDPRStatus,async:!0,data:JSON.stringify(i),contentType:"application/json; charset=UTF-8",xhrFields:{withCredentials:!0}})}if(this.mAPIs.length>0){var n=this.mAPIs;this.mAPIs=[],e.ICJQuery.post({url:r.Constant.UAT_LOG_API_URL+"?gdprstatus="+this.mGDPRStatus,async:!0,data:JSON.stringify(n),contentType:"application/json; charset=UTF-8",xhrFields:{withCredentials:!0}})}},e.prototype.pushAPILog=function(t,i,n,r,o,a){var s=r.toString();s+=o;var u=e.window.location.href,c=this.updateUrlIfTranslator(t,u);c&&(u=c),a||(a="null"),this.mAPIs.push({apiKey:i,placementId:"null",placementType:"null",publisherType:"ADVANCE",pageId:a,rnd:"null",documentType:t,errorCode:e.getInstance().getErrorTypeKeyFromValue(r),errorDetail:s,kval:encodeURIComponent("bs:"+this.getBrowserSize()),refererUrl:encodeURIComponent(n),pageUrl:encodeURIComponent(u)})},e.prototype.getErrorTypeKeyFromValue=function(e){switch(e){case r.ErrorType.ADSIZE_INVALID:return"ADSIZE_INVALID";case r.ErrorType.CUSTOM_TARGETING_FAILED:return"CUSTOM_TARGETING_FAILED";case r.ErrorType.DEVICE_TARGETING_FAILED:return"DEVICE_TARGETING_FAILED";case r.ErrorType.GDPR_TARGETING_FAILED:return"GDPR_TARGETING_FAILED";case r.ErrorType.GEO_TARGETING_FAILED:return"GEO_TARGETING_FAILED";case r.ErrorType.SELECTOR_INVALID:return"SELECTOR_INVALID";case r.ErrorType.SELECTOR_NOT_FOUND:return"SELECTOR_NOT_FOUND";case r.ErrorType.TAG_NOT_CONFIGURED:return"TAG_NOT_CONFIGURED";case r.ErrorType.TARGET_INVALID:return"TARGET_INVALID";case r.ErrorType.ADSIZEMAPPING_INVALID:return"ADSIZEMAPPING_INVALID";case r.ErrorType.ADSIZEMAPPING_TARGETING_FAILED:return"ADSIZEMAPPING_TARGETING_FAILED";case r.ErrorType.NO_ADS:return"NO_ADS";case r.ErrorType.UNKNOW_ERROR:return"UNKNOW_ERROR";case r.ErrorType.PAGE_OBJECT_NOT_FOUND:return"PAGE_OBJECT_NOT_FOUND";case r.ErrorType.PAGE_DESTROY_TEMPLATE_NOT_FOUND:return"PAGE_DESTROY_TEMPLATE_NOT_FOUND";case r.ErrorType.PAGE_DESTROY_FAILED:return"PAGE_DESTROY_FAILED";case r.ErrorType.PAGE_REFRESHTAG_TAG_NOT_FOUND:return"PAGE_REFRESHTAG_TAG_NOT_FOUND";case r.ErrorType.PAGE_REFRESHTAG_FAILED:return"PAGE_REFRESHTAG_FAILED";case r.ErrorType.ADD_SIZEMAPPING_FAILED:return"ADD_SIZEMAPPING_FAILED";case r.ErrorType.BUILD_SIZEMAPPING_FAILED:return"BUILD_SIZEMAPPING_FAILED";case r.ErrorType.PAGE_DEFINETAG_SITE_MISMATCH:return"PAGE_DEFINETAG_SITE_MISMATCH";case r.ErrorType.PAGE_DEFINETAG_TARGET_NOT_FOUND:return"PAGE_DEFINETAG_TARGET_NOT_FOUND";case r.ErrorType.PAGE_DEFINETAG_INVALID_SIZE:return"PAGE_DEFINETAG_INVALID_SIZE";case r.ErrorType.PAGE_DEFINETAG_FAILED:return"PAGE_DEFINETAG_FAILED";case r.ErrorType.PAGE_DEFINETAG_INVALID_DIVID:return"PAGE_DEFINETAG_INVALID_DIVID";case r.ErrorType.PAGE_DEFINEOOPTAG_SITE_MISMATCH:return"PAGE_DEFINEOOPTAG_SITE_MISMATCH";case r.ErrorType.PAGE_DEFINEOOPTAG_TARGET_NOT_FOUND:return"PAGE_DEFINEOOPTAG_TARGET_NOT_FOUND";case r.ErrorType.PAGE_DEFINEOOPTAG_FAILED:return"PAGE_DEFINEOOPTAG_FAILED";case r.ErrorType.PAGE_DEFINEOOPTAG_INVALID_DIVID:return"PAGE_DEFINEOOPTAG_INVALID_DIVID";case r.ErrorType.PAGE_GETPUBTAG_TAG_NOT_FOUND:return"PAGE_GETPUBTAG_TAG_NOT_FOUND";case r.ErrorType.PAGE_GETPUBTAG_FAILED:return"PAGE_GETPUBTAG_FAILED";case r.ErrorType.PAGE_SETKVAL_FAILED:return"PAGE_SETKVAL_FAILED";case r.ErrorType.PAGE_CLEARKVAL_FAILED:return"PAGE_CLEARKVAL_FAILED";case r.ErrorType.PAGE_RENDERTAG_TAG_NOT_FOUND:return"PAGE_RENDERTAG_TAG_NOT_FOUND";case r.ErrorType.PAGE_RENDERTAG_FAILED:return"PAGE_RENDERTAG_FAILED";case r.ErrorType.TAG_DEFINESIZEMAPPING_FAILED:return"TAG_DEFINESIZEMAPPING_FAILED";case r.ErrorType.TAG_SETKVAL_FAILED:return"TAG_SETKVAL_FAILED";case r.ErrorType.TAG_CLEARKVAL_FAILED:return"TAG_CLEARKVAL_FAILED";case r.ErrorType.TAG_RENDER_FAILED:return"TAG_RENDER_FAILED";case r.ErrorType.TAG_REFRESH_FAILED:return"TAG_REFRESH_FAILED";case r.ErrorType.TAG_CLEAR_FAILED:return"TAG_CLEAR_FAILED";case r.ErrorType.TAG_DESTROY_FAILED:return"TAG_DESTROY_FAILED"}},e.prototype.updateUrlIfTranslator=function(e,t){if(e==r.DocumentType.IFRAME){var i=r.Utility.ICJQuery("").prop("href",t).prop("hostname");if("translate.google.com"==i.toLowerCase()||"translate.googleusercontent.com"==i.toLowerCase()){var n=this.getQueryStringParam("u",t);if(n&&n.length>0)return n[1]}return null}},e.prototype.debugConsoleMessage=function(e,t){try{var i=[];if(i.push("%c IC UAT ","border-radius:4px;background:#8bc43f;color:#fff;font-weight: bold;"),i.push(e),t)for(var n=0;n0&&t-1 in e)}I.fn=I.prototype={jquery:"3.5.0",constructor:I,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=I.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return I.each(this,e)},map:function(e){return this.pushStack(I.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(I.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(I.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i+~]|"+F+")"+F+"*"),W=new RegExp(F+"|>"),K=new RegExp(M),H=new RegExp("^"+z+"$"),Y={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=Te(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{N.apply(O=k.call(S.childNodes),S.childNodes),O[S.childNodes.length].nodeType}catch(e){N={apply:O.length?function(e,t){w.apply(e,k.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function se(e,t,n,r){var o,s,c,d,l,m,b,y=t&&t.ownerDocument,S=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==S&&9!==S&&11!==S)return n;if(!r&&(p(t),t=t||f,g)){if(11!==S&&(l=$.exec(e)))if(o=l[1]){if(9===S){if(!(c=t.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(y&&(c=y.getElementById(o))&&v(t,c)&&c.id===o)return n.push(c),n}else{if(l[2])return N.apply(n,t.getElementsByTagName(e)),n;if((o=l[3])&&i.getElementsByClassName&&t.getElementsByClassName)return N.apply(n,t.getElementsByClassName(o)),n}if(i.qsa&&!_[e+" "]&&(!h||!h.test(e))&&(1!==S||"object"!==t.nodeName.toLowerCase())){if(b=e,y=t,1===S&&(W.test(e)||q.test(e))){for((y=ee.test(e)&&be(t.parentNode)||t)===t&&i.scope||((d=t.getAttribute("id"))?d=d.replace(ne,re):t.setAttribute("id",d=T)),s=(m=a(e)).length;s--;)m[s]=(d?"#"+d:":scope")+" "+ve(m[s]);b=m.join(",")}try{return N.apply(n,y.querySelectorAll(b)),n}catch(t){_(e,!0)}finally{d===T&&t.removeAttribute("id")}}}return u(e.replace(G,"$1"),t,n,r)}function ue(){var e=[];return function t(i,r){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=r}}function ce(e){return e[T]=!0,e}function de(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var i=e.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=t}function pe(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return ce(function(t){return t=+t,ce(function(i,n){for(var r,o=e([],i.length,t),a=o.length;a--;)i[r=o[a]]&&(i[r]=!(n[r]=i[r]))})})}function be(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,i=(e.ownerDocument||e).documentElement;return!J.test(t||i&&i.nodeName||"HTML")},p=se.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:S;return a!=f&&9===a.nodeType&&a.documentElement?(m=(f=a).documentElement,g=!o(f),S!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),i.scope=de(function(e){return m.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),i.attributes=de(function(e){return e.className="i",!e.getAttribute("className")}),i.getElementsByTagName=de(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),i.getElementsByClassName=Z.test(f.getElementsByClassName),i.getById=de(function(e){return m.appendChild(e).id=T,!f.getElementsByName||!f.getElementsByName(T).length}),i.getById?(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i=t.getElementById(e);return i?[i]:[]}}):(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i,n,r,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(r=t.getElementsByName(e),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},b=[],h=[],(i.qsa=Z.test(f.querySelectorAll))&&(de(function(e){var t;m.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+F+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+T+"-]").length||h.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")}),de(function(e){e.innerHTML="";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(i.matchesSelector=Z.test(y=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&de(function(e){i.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),b.push("!=",M)}),h=h.length&&new RegExp(h.join("|")),b=b.length&&new RegExp(b.join("|")),t=Z.test(m.compareDocumentPosition),v=t||Z.test(m.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e==f||e.ownerDocument==S&&v(S,e)?-1:t==f||t.ownerDocument==S&&v(S,t)?1:d?U(d,e)-U(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var i,n=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==f?-1:t==f?1:r?-1:o?1:d?U(d,e)-U(d,t):0;if(r===o)return pe(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)s.unshift(i);for(;a[n]===s[n];)n++;return n?pe(a[n],s[n]):a[n]==S?-1:s[n]==S?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),i.matchesSelector&&g&&!_[t+" "]&&(!b||!b.test(t))&&(!h||!h.test(t)))try{var n=y.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){_(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=f&&p(e),v(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=f&&p(e);var r=n.attrHandle[t.toLowerCase()],o=r&&R.call(n.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==o?o:i.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(ne,re)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,o=0;if(l=!i.detectDuplicates,d=!i.sortStable&&e.slice(0),e.sort(D),l){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return d=null,e},r=se.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},(n=se.selectors={cacheLength:50,createPseudo:ce,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&K.test(i)&&(t=a(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=A[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&A(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(n){var r=se.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&r.indexOf(i)>-1:"$="===t?i&&r.slice(-i.length)===i:"~="===t?(" "+r.replace(B," ")+" ").indexOf(i)>-1:"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,u){var c,d,l,p,f,m,g=o!==a?"nextSibling":"previousSibling",h=t.parentNode,b=s&&t.nodeName.toLowerCase(),y=!u&&!s,v=!1;if(h){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===b:1===p.nodeType)return!1;m=g="only"===e&&!m&&"nextSibling"}return!0}if(m=[a?h.firstChild:h.lastChild],a&&y){for(v=(f=(c=(d=(l=(p=h)[T]||(p[T]={}))[p.uniqueID]||(l[p.uniqueID]={}))[e]||[])[0]===E&&c[1])&&c[2],p=f&&h.childNodes[f];p=++f&&p&&p[g]||(v=f=0)||m.pop();)if(1===p.nodeType&&++v&&p===t){d[e]=[E,f,v];break}}else if(y&&(v=f=(c=(d=(l=(p=t)[T]||(p[T]={}))[p.uniqueID]||(l[p.uniqueID]={}))[e]||[])[0]===E&&c[1]),!1===v)for(;(p=++f&&p&&p[g]||(v=f=0)||m.pop())&&((s?p.nodeName.toLowerCase()!==b:1!==p.nodeType)||!++v||(y&&((d=(l=p[T]||(p[T]={}))[p.uniqueID]||(l[p.uniqueID]={}))[e]=[E,v]),p!==t)););return(v-=r)===n||v%n==0&&v/n>=0}}},PSEUDO:function(e,t){var i,r=n.pseudos[e]||n.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return r[T]?r(t):r.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,i){for(var n,o=r(e,t),a=o.length;a--;)e[n=U(e,o[a])]=!(i[n]=o[a])}):function(e){return r(e,0,i)}):r}},pseudos:{not:ce(function(e){var t=[],i=[],n=s(e.replace(G,"$1"));return n[T]?ce(function(e,t,i,r){for(var o,a=n(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,n(t,null,o,i),t[0]=null,!i.pop()}}),has:ce(function(e){return function(t){return se(e,t).length>0}}),contains:ce(function(e){return e=e.replace(te,ie),function(t){return(t.textContent||r(t)).indexOf(e)>-1}}),lang:ce(function(e){return H.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,i){return[i<0?i+t:i]}),even:he(function(e,t){for(var i=0;it?t:i;--n>=0;)e.push(n);return e}),gt:he(function(e,t,i){for(var n=i<0?i+t:i;++n1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function Ee(e,t,i,n,r){for(var o,a=[],s=0,u=e.length,c=null!=t;s-1&&(o[c]=!(a[c]=l))}}else b=Ee(b===a?b.splice(m,b.length):b),r?r(null,a,b,u):N.apply(a,b)})}function Ae(e){for(var t,i,r,o=e.length,a=n.relative[e[0].type],s=a||n.relative[" "],u=a?1:0,d=Te(function(e){return e===t},s,!0),l=Te(function(e){return U(t,e)>-1},s,!0),p=[function(e,i,n){var r=!a&&(n||i!==c)||((t=i).nodeType?d(e,i,n):l(e,i,n));return t=null,r}];u1&&Se(p),u>1&&ve(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(G,"$1"),i,u0,r=e.length>0,o=function(o,a,s,u,d){var l,m,h,b=0,y="0",v=o&&[],T=[],S=c,I=o||r&&n.find.TAG("*",d),A=E+=null==S?1:Math.random()||.1,P=I.length;for(d&&(c=a==f||a||d);y!==P&&null!=(l=I[y]);y++){if(r&&l){for(m=0,a||l.ownerDocument==f||(p(l),s=!g);h=e[m++];)if(h(l,a||f,s)){u.push(l);break}d&&(E=A)}i&&((l=!h&&l)&&b--,o&&v.push(l))}if(b+=y,i&&y!==b){for(m=0;h=t[m++];)h(v,T,a,s);if(o){if(b>0)for(;y--;)v[y]||T[y]||(T[y]=x.call(u));T=Ee(T)}N.apply(u,T),d&&!o&&T.length>0&&b+t.length>1&&se.uniqueSort(u)}return d&&(E=A,c=S),v};return i?ce(o):o}(o,r))).selector=e}return s},u=se.select=function(e,t,i,r){var o,u,c,d,l,p="function"==typeof e&&e,f=!r&&a(e=p.selector||e);if(i=i||[],1===f.length){if((u=f[0]=f[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&9===t.nodeType&&g&&n.relative[u[1].type]){if(!(t=(n.find.ID(c.matches[0].replace(te,ie),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=Y.needsContext.test(e)?0:u.length;o--&&(c=u[o],!n.relative[d=c.type]);)if((l=n.find[d])&&(r=l(c.matches[0].replace(te,ie),ee.test(u[0].type)&&be(t.parentNode)||t))){if(u.splice(o,1),!(e=r.length&&ve(u)))return N.apply(i,r),i;break}}return(p||s(e,f))(r,t,!g,i,!t||ee.test(e)&&be(t.parentNode)||t),i},i.sortStable=T.split("").sort(D).join("")===T,i.detectDuplicates=!!l,p(),i.sortDetached=de(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),de(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),i.attributes&&de(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),de(function(e){return null==e.getAttribute("disabled")})||le(L,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),se}(i);I.find=P,I.expr=P.selectors,I.expr[":"]=I.expr.pseudos,I.uniqueSort=I.unique=P.uniqueSort,I.text=P.getText,I.isXMLDoc=P.isXML,I.contains=P.contains,I.escapeSelector=P.escape;var C=function(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&I(e).is(i))break;n.push(e)}return n},_=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},D=I.expr.match.needsContext;function R(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function x(e,t,i){return b(t)?I.grep(e,function(e,n){return!!t.call(e,n,e)!==i}):t.nodeType?I.grep(e,function(e){return e===t!==i}):"string"!=typeof t?I.grep(e,function(e){return d.call(t,e)>-1!==i}):I.filter(t,e,i)}I.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?I.find.matchesSelector(n,e)?[n]:[]:I.find.matches(e,I.grep(t,function(e){return 1===e.nodeType}))},I.fn.extend({find:function(e){var t,i,n=this.length,r=this;if("string"!=typeof e)return this.pushStack(I(e).filter(function(){for(t=0;t1?I.uniqueSort(i):i},filter:function(e){return this.pushStack(x(this,e||[],!1))},not:function(e){return this.pushStack(x(this,e||[],!0))},is:function(e){return!!x(this,"string"==typeof e&&D.test(e)?I(e):e||[],!1).length}});var w,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(I.fn.init=function(e,t,i){var n,r;if(!e)return this;if(i=i||w,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof I?t[0]:t,I.merge(this,I.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),O.test(n[1])&&I.isPlainObject(t))for(n in t)b(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=v.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==i.ready?i.ready(e):e(I):I.makeArray(e,this)}).prototype=I.fn,w=I(v);var k=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}I.fn.extend({has:function(e){var t=I(e,this),i=t.length;return this.filter(function(){for(var e=0;e-1:1===i.nodeType&&I.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?I.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(I(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(I.uniqueSort(I.merge(this.get(),I(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),I.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,i){return C(e,"parentNode",i)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,i){return C(e,"nextSibling",i)},prevUntil:function(e,t,i){return C(e,"previousSibling",i)},siblings:function(e){return _((e.parentNode||{}).firstChild,e)},children:function(e){return _(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(R(e,"template")&&(e=e.content||e),I.merge([],e.childNodes))}},function(e,t){I.fn[e]=function(i,n){var r=I.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=I.filter(n,r)),this.length>1&&(U[e]||I.uniqueSort(r),k.test(e)&&r.reverse()),this.pushStack(r)}});var F=/[^\x20\t\r\n\f]+/g;function z(e){return e}function j(e){throw e}function M(e,t,i,n){var r;try{e&&b(r=e.promise)?r.call(e).done(t).fail(i):e&&b(r=e.then)?r.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}I.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return I.each(e.match(F)||[],function(e,i){t[i]=!0}),t}(e):I.extend({},e);var t,i,n,r,o=[],a=[],s=-1,u=function(){for(r=r||e.once,n=t=!0;a.length;s=-1)for(i=a.shift();++s-1;)o.splice(i,1),i<=s&&s--}),this},has:function(e){return e?I.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=a=[],i||t||(o=i=""),this},locked:function(){return!!r},fireWith:function(e,i){return r||(i=[e,(i=i||[]).slice?i.slice():i],a.push(i),t||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},I.extend({Deferred:function(e){var t=[["notify","progress",I.Callbacks("memory"),I.Callbacks("memory"),2],["resolve","done",I.Callbacks("once memory"),I.Callbacks("once memory"),0,"resolved"],["reject","fail",I.Callbacks("once memory"),I.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return I.Deferred(function(i){I.each(t,function(t,n){var r=b(e[n[4]])&&e[n[4]];o[n[1]](function(){var e=r&&r.apply(this,arguments);e&&b(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(e,n,r){var o=0;function a(e,t,n,r){return function(){var s=this,u=arguments,c=function(){var i,c;if(!(e=o&&(n!==j&&(s=void 0,u=[i]),t.rejectWith(s,u))}};e?d():(I.Deferred.getStackHook&&(d.stackTrace=I.Deferred.getStackHook()),i.setTimeout(d))}}return I.Deferred(function(i){t[0][3].add(a(0,i,b(r)?r:z,i.notifyWith)),t[1][3].add(a(0,i,b(e)?e:z)),t[2][3].add(a(0,i,b(n)?n:j))}).promise()},promise:function(e){return null!=e?I.extend(e,r):r}},o={};return I.each(t,function(e,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add(function(){n=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,i=t,n=Array(i),r=s.call(arguments),o=I.Deferred(),a=function(e){return function(i){n[e]=this,r[e]=arguments.length>1?s.call(arguments):i,--t||o.resolveWith(n,r)}};if(t<=1&&(M(e,o.done(a(i)).resolve,o.reject,!t),"pending"===o.state()||b(r[i]&&r[i].then)))return o.then();for(;i--;)M(r[i],a(i),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;I.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&B.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},I.readyException=function(e){i.setTimeout(function(){throw e})};var G=I.Deferred();function V(){v.removeEventListener("DOMContentLoaded",V),i.removeEventListener("load",V),I.ready()}I.fn.ready=function(e){return G.then(e).catch(function(e){I.readyException(e)}),this},I.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--I.readyWait:I.isReady)||(I.isReady=!0,!0!==e&&--I.readyWait>0||G.resolveWith(v,[I]))}}),I.ready.then=G.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?i.setTimeout(I.ready):(v.addEventListener("DOMContentLoaded",V),i.addEventListener("load",V));var q=function(e,t,i,n,r,o,a){var s=0,u=e.length,c=null==i;if("object"===E(i))for(s in r=!0,i)q(e,t,s,i[s],!0,o,a);else if(void 0!==n&&(r=!0,b(n)||(a=!0),c&&(a?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(I(e),i)})),t))for(;s1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),I.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=X.get(e,t),i&&(!n||Array.isArray(i)?n=X.access(e,t,I.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=I.queue(e,t),n=i.length,r=i.shift(),o=I._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete o.stop,r.call(e,function(){I.dequeue(e,t)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return X.get(e,i)||X.access(e,i,{empty:I.Callbacks("once memory").add(function(){X.remove(e,[t+"queue",i])})})}}),I.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=v.createDocumentFragment().appendChild(v.createElement("div")),t=v.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",h.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="",h.option=!!e.lastChild}();var he={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function be(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&R(e,t)?I.merge([e],i):i}function ye(e,t){for(var i=0,n=e.length;i",""]);var ve=/<|&#?\w+;/;function Te(e,t,i,n,r){for(var o,a,s,u,c,d,l=t.createDocumentFragment(),p=[],f=0,m=e.length;f-1)r&&r.push(o);else if(c=ae(o),a=be(l.appendChild(o),"script"),c&&ye(a),i)for(d=0;o=a[d++];)ge.test(o.type||"")&&i.push(o);return l}var Se=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ie=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Pe(){return!1}function Ce(e,t){return e===function(){try{return v.activeElement}catch(e){}}()==("focus"===t)}function _e(e,t,i,n,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof i&&(n=n||i,i=void 0),t)_e(e,s,i,n,t[s],o);return e}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=Pe;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return I().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=I.guid++)),e.each(function(){I.event.add(this,t,r,n,i)})}function De(e,t,i){i?(X.set(e,t,!1),I.event.add(e,t,{namespace:!1,handler:function(e){var n,r,o=X.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(I.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),X.set(this,t,o),n=i(this,t),this[t](),o!==(r=X.get(this,t))||n?X.set(this,t,!1):r={},o!==r)return e.stopImmediatePropagation(),e.preventDefault(),r.value}else o.length&&(X.set(this,t,{value:I.event.trigger(I.extend(o[0],I.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&I.event.add(e,t,Ae)}I.event={global:{},add:function(e,t,i,n,r){var o,a,s,u,c,d,l,p,f,m,g,h=X.get(e);if(J(e))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&I.find.matchesSelector(oe,r),i.guid||(i.guid=I.guid++),(u=h.events)||(u=h.events=Object.create(null)),(a=h.handle)||(a=h.handle=function(t){return void 0!==I&&I.event.triggered!==t.type?I.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(F)||[""]).length;c--;)f=g=(s=Ie.exec(t[c])||[])[1],m=(s[2]||"").split(".").sort(),f&&(l=I.event.special[f]||{},f=(r?l.delegateType:l.bindType)||f,l=I.event.special[f]||{},d=I.extend({type:f,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&I.expr.match.needsContext.test(r),namespace:m.join(".")},o),(p=u[f])||((p=u[f]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,n,m,a)||e.addEventListener&&e.addEventListener(f,a)),l.add&&(l.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,d):p.push(d),I.event.global[f]=!0)},remove:function(e,t,i,n,r){var o,a,s,u,c,d,l,p,f,m,g,h=X.hasData(e)&&X.get(e);if(h&&(u=h.events)){for(c=(t=(t||"").match(F)||[""]).length;c--;)if(f=g=(s=Ie.exec(t[c])||[])[1],m=(s[2]||"").split(".").sort(),f){for(l=I.event.special[f]||{},p=u[f=(n?l.delegateType:l.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)d=p[o],!r&&g!==d.origType||i&&i.guid!==d.guid||s&&!s.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(p.splice(o,1),d.selector&&p.delegateCount--,l.remove&&l.remove.call(e,d));a&&!p.length&&(l.teardown&&!1!==l.teardown.call(e,m,h.handle)||I.removeEvent(e,f,h.handle),delete u[f])}else for(f in u)I.event.remove(e,f+t[c],i,n,!0);I.isEmptyObject(u)&&X.remove(e,"handle events")}},dispatch:function(e){var t,i,n,r,o,a,s=new Array(arguments.length),u=I.event.fix(e),c=(X.get(this,"events")||Object.create(null))[u.type]||[],d=I.event.special[u.type]||{};for(s[0]=u,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},i=0;i-1:I.find(r,this,null,[c]).length),a[r]&&o.push(n);o.length&&s.push({elem:c,handlers:o})}return c=this,u\s*$/g;function we(e,t){return R(e,"table")&&R(11!==t.nodeType?t:t.firstChild,"tr")&&I(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ke(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ue(e,t){var i,n,r,o,a,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(r in X.remove(t,"handle events"),s)for(i=0,n=s[r].length;i1&&"string"==typeof m&&!h.checkClone&&Oe.test(m))return e.each(function(r){var o=e.eq(r);g&&(t[0]=m.call(this,r,o.html())),Fe(o,t,i,n)});if(p&&(o=(r=Te(t,e[0].ownerDocument,!1,e,n)).firstChild,1===r.childNodes.length&&(r=o),o||n)){for(s=(a=I.map(be(r,"script"),Ne)).length;l0&&ye(a,!u&&be(e,"script")),s},cleanData:function(e){for(var t,i,n,r=I.event.special,o=0;void 0!==(i=e[o]);o++)if(J(i)){if(t=i[X.expando]){if(t.events)for(n in t.events)r[n]?I.event.remove(i,n):I.removeEvent(i,n,t.handle);i[X.expando]=void 0}i[Z.expando]&&(i[Z.expando]=void 0)}}}),I.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return q(this,function(e){return void 0===e?I.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Fe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||we(this,e).appendChild(e)})},prepend:function(){return Fe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=we(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(I.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return I.clone(this,e,t)})},html:function(e){return q(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Re.test(e)&&!he[(me.exec(e)||["",""])[1].toLowerCase()]){e=I.htmlPrefilter(e);try{for(;i3,oe.removeChild(e)),s}}))}();var We=["Webkit","Moz","ms"],Ke=v.createElement("div").style,He={};function Ye(e){var t=I.cssProps[e]||He[e];return t||(e in Ke?e:He[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=We.length;i--;)if((e=We[i]+t)in Ke)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function $e(e,t,i){var n=ne.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function et(e,t,i,n,r,o){var a="width"===t?1:0,s=0,u=0;if(i===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(u+=I.css(e,i+re[a],!0,r)),n?("content"===i&&(u-=I.css(e,"padding"+re[a],!0,r)),"margin"!==i&&(u-=I.css(e,"border"+re[a]+"Width",!0,r))):(u+=I.css(e,"padding"+re[a],!0,r),"padding"!==i?u+=I.css(e,"border"+re[a]+"Width",!0,r):s+=I.css(e,"border"+re[a]+"Width",!0,r));return!n&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function tt(e,t,i){var n=Me(e),r=(!h.boxSizingReliable()||i)&&"border-box"===I.css(e,"boxSizing",!1,n),o=r,a=Ve(e,t,n),s="offset"+t[0].toUpperCase()+t.slice(1);if(je.test(a)){if(!i)return a;a="auto"}return(!h.boxSizingReliable()&&r||!h.reliableTrDimensions()&&R(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===I.css(e,"display",!1,n))&&e.getClientRects().length&&(r="border-box"===I.css(e,"boxSizing",!1,n),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+et(e,t,i||(r?"border":"content"),o,n,a)+"px"}function it(e,t,i,n,r){return new it.prototype.init(e,t,i,n,r)}I.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Ve(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=Y(t),u=Qe.test(t),c=e.style;if(u||(t=Ye(s)),a=I.cssHooks[t]||I.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(e,!1,n))?r:c[t];"string"===(o=typeof i)&&(r=ne.exec(i))&&r[1]&&(i=ce(e,t,r),o="number"),null!=i&&i==i&&("number"!==o||u||(i+=r&&r[3]||(I.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,n))||(u?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var r,o,a,s=Y(t);return Qe.test(t)||(t=Ye(s)),(a=I.cssHooks[t]||I.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,i)),void 0===r&&(r=Ve(e,t,n)),"normal"===r&&t in Ze&&(r=Ze[t]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),I.each(["height","width"],function(e,t){I.cssHooks[t]={get:function(e,i,n){if(i)return!Je.test(I.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,n):Be(e,Xe,function(){return tt(e,t,n)})},set:function(e,i,n){var r,o=Me(e),a=!h.scrollboxSize()&&"absolute"===o.position,s=(a||n)&&"border-box"===I.css(e,"boxSizing",!1,o),u=n?et(e,t,n,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-et(e,t,"border",!1,o)-.5)),u&&(r=ne.exec(i))&&"px"!==(r[3]||"px")&&(e.style[t]=i,i=I.css(e,t)),$e(0,i,u)}}}),I.cssHooks.marginLeft=qe(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-Be(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),I.each({margin:"",padding:"",border:"Width"},function(e,t){I.cssHooks[e+t]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[e+re[n]+t]=o[n]||o[n-2]||o[0];return r}},"margin"!==e&&(I.cssHooks[e+t].set=$e)}),I.fn.extend({css:function(e,t){return q(this,function(e,t,i){var n,r,o={},a=0;if(Array.isArray(t)){for(n=Me(e),r=t.length;a1)}}),I.Tween=it,it.prototype={constructor:it,init:function(e,t,i,n,r,o){this.elem=e,this.prop=i,this.easing=r||I.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(I.cssNumber[i]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,i=it.propHooks[this.prop];return this.options.duration?this.pos=t=I.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=I.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){I.fx.step[e.prop]?I.fx.step[e.prop](e):1!==e.elem.nodeType||!I.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:I.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},I.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},I.fx=it.prototype.init,I.fx.step={};var nt,rt,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){rt&&(!1===v.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(st):i.setTimeout(st,I.fx.interval),I.fx.tick())}function ut(){return i.setTimeout(function(){nt=void 0}),nt=Date.now()}function ct(e,t){var i,n=0,r={height:e};for(t=t?1:0;n<4;n+=2-t)r["margin"+(i=re[n])]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function dt(e,t,i){for(var n,r=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=r.length;o1)},removeAttr:function(e){return this.each(function(){I.removeAttr(this,e)})}}),I.extend({attr:function(e,t,i){var n,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?I.prop(e,t,i):(1===o&&I.isXMLDoc(e)||(r=I.attrHooks[t.toLowerCase()]||(I.expr.match.bool.test(t)?pt:void 0)),void 0!==i?null===i?void I.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:(e.setAttribute(t,i+""),i):r&&"get"in r&&null!==(n=r.get(e,t))?n:null==(n=I.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&R(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,r=t&&t.match(F);if(r&&1===e.nodeType)for(;i=r[n++];)e.removeAttribute(i)}}),pt={set:function(e,t,i){return!1===t?I.removeAttr(e,i):e.setAttribute(i,i),i}},I.each(I.expr.match.bool.source.match(/\w+/g),function(e,t){var i=ft[t]||I.find.attr;ft[t]=function(e,t,n){var r,o,a=t.toLowerCase();return n||(o=ft[a],ft[a]=r,r=null!=i(e,t,n)?a:null,ft[a]=o),r}});var mt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function ht(e){return(e.match(F)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(F)||[]}I.fn.extend({prop:function(e,t){return q(this,I.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[I.propFix[e]||e]})}}),I.extend({prop:function(e,t,i){var n,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&I.isXMLDoc(e)||(t=I.propFix[t]||t,r=I.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=I.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(I.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),I.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){I.propFix[this.toLowerCase()]=this}),I.fn.extend({addClass:function(e){var t,i,n,r,o,a,s,u=0;if(b(e))return this.each(function(t){I(this).addClass(e.call(this,t,bt(this)))});if((t=yt(e)).length)for(;i=this[u++];)if(r=bt(i),n=1===i.nodeType&&" "+ht(r)+" "){for(a=0;o=t[a++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r!==(s=ht(n))&&i.setAttribute("class",s)}return this},removeClass:function(e){var t,i,n,r,o,a,s,u=0;if(b(e))return this.each(function(t){I(this).removeClass(e.call(this,t,bt(this)))});if(!arguments.length)return this.attr("class","");if((t=yt(e)).length)for(;i=this[u++];)if(r=bt(i),n=1===i.nodeType&&" "+ht(r)+" "){for(a=0;o=t[a++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r!==(s=ht(n))&&i.setAttribute("class",s)}return this},toggleClass:function(e,t){var i=typeof e,n="string"===i||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):b(e)?this.each(function(i){I(this).toggleClass(e.call(this,i,bt(this),t),t)}):this.each(function(){var t,r,o,a;if(n)for(r=0,o=I(this),a=yt(e);t=a[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==i||((t=bt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+ht(bt(i))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;I.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=b(e),this.each(function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,I(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=I.map(r,function(e){return null==e?"":e+""})),(t=I.valHooks[this.type]||I.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=I.valHooks[r.type]||I.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(vt,""):null==i?"":i:void 0}}),I.extend({valHooks:{option:{get:function(e){var t=I.find.attr(e,"value");return null!=t?t:ht(I.text(e))}},select:{get:function(e){var t,i,n,r=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:r.length;for(n=o<0?u:a?o:0;n-1)&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),I.each(["radio","checkbox"],function(){I.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=I.inArray(I(e).val(),t)>-1}},h.checkOn||(I.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in i;var Tt=/^(?:focusinfocus|focusoutblur)$/,St=function(e){e.stopPropagation()};I.extend(I.event,{trigger:function(e,t,n,r){var o,a,s,u,c,d,l,p,m=[n||v],g=f.call(e,"type")?e.type:e,h=f.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=n=n||v,3!==n.nodeType&&8!==n.nodeType&&!Tt.test(g+I.event.triggered)&&(g.indexOf(".")>-1&&(g=(h=g.split(".")).shift(),h.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[I.expando]?e:new I.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:I.makeArray(t,[e]),l=I.event.special[g]||{},r||!l.trigger||!1!==l.trigger.apply(n,t))){if(!r&&!l.noBubble&&!y(n)){for(u=l.delegateType||g,Tt.test(u+g)||(a=a.parentNode);a;a=a.parentNode)m.push(a),s=a;s===(n.ownerDocument||v)&&m.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=m[o++])&&!e.isPropagationStopped();)p=a,e.type=o>1?u:l.bindType||g,(d=(X.get(a,"events")||Object.create(null))[e.type]&&X.get(a,"handle"))&&d.apply(a,t),(d=c&&a[c])&&d.apply&&J(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||l._default&&!1!==l._default.apply(m.pop(),t)||!J(n)||c&&b(n[g])&&!y(n)&&((s=n[c])&&(n[c]=null),I.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,St),n[g](),e.isPropagationStopped()&&p.removeEventListener(g,St),I.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,i){var n=I.extend(new I.Event,i,{type:e,isSimulated:!0});I.event.trigger(n,null,t)}}),I.fn.extend({trigger:function(e,t){return this.each(function(){I.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return I.event.trigger(e,t,i,!0)}}),h.focusin||I.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){I.event.simulate(t,e.target,I.event.fix(e))};I.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,r=X.access(n,t);r||n.addEventListener(e,i,!0),X.access(n,t,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=X.access(n,t)-1;r?X.access(n,t,r):(n.removeEventListener(e,i,!0),X.remove(n,t))}}});var Et=i.location,It={guid:Date.now()},At=/\?/;I.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||I.error("Invalid XML: "+e),t};var Pt=/\[\]$/,Ct=/\r?\n/g,_t=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function Rt(e,t,i,n){var r;if(Array.isArray(t))I.each(t,function(t,r){i||Pt.test(e)?n(e,r):Rt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,i,n)});else if(i||"object"!==E(t))n(e,t);else for(r in t)Rt(e+"["+r+"]",t[r],i,n)}I.param=function(e,t){var i,n=[],r=function(e,t){var i=b(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!I.isPlainObject(e))I.each(e,function(){r(this.name,this.value)});else for(i in e)Rt(i,e[i],t,r);return n.join("&")},I.fn.extend({serialize:function(){return I.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=I.prop(this,"elements");return e?I.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!I(this).is(":disabled")&&Dt.test(this.nodeName)&&!_t.test(e)&&(this.checked||!fe.test(e))}).map(function(e,t){var i=I(this).val();return null==i?null:Array.isArray(i)?I.map(i,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:i.replace(Ct,"\r\n")}}).get()}});var Ot=/%20/g,xt=/#.*$/,wt=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,kt=/^(?:GET|HEAD)$/,Ut=/^\/\//,Lt={},Ft={},zt="*/".concat("*"),jt=v.createElement("a");function Mt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,o=t.toLowerCase().match(F)||[];if(b(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Bt(e,t,i,n){var r={},o=e===Ft;function a(s){var u;return r[s]=!0,I.each(e[s]||[],function(e,s){var c=s(t,i,n);return"string"!=typeof c||o||r[c]?o?!(u=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),u}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Gt(e,t){var i,n,r=I.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&I.extend(!0,e,n),e}jt.href=Et.href,I.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":I.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,I.ajaxSettings),t):Gt(I.ajaxSettings,e)},ajaxPrefilter:Mt(Lt),ajaxTransport:Mt(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,o,a,s,u,c,d,l,p,f=I.ajaxSetup({},t),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?I(m):I.event,h=I.Deferred(),b=I.Callbacks("once memory"),y=f.statusCode||{},T={},S={},E="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Nt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=S[e.toLowerCase()]=S[e.toLowerCase()]||e,T[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)A.always(e[A.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||E;return n&&n.abort(t),P(0,t),this}};if(h.promise(A),f.url=((e||f.url||Et.href)+"").replace(Ut,Et.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(F)||[""],null==f.crossDomain){u=v.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=jt.protocol+"//"+jt.host!=u.protocol+"//"+u.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=I.param(f.data,f.traditional)),Bt(Lt,f,t,A),c)return A;for(l in(d=I.event&&f.global)&&0==I.active++&&I.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!kt.test(f.type),r=f.url.replace(xt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ot,"+")):(p=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(At.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(wt,"$1"),p=(At.test(r)?"&":"?")+"_="+It.guid+++p),f.url=r+p),f.ifModified&&(I.lastModified[r]&&A.setRequestHeader("If-Modified-Since",I.lastModified[r]),I.etag[r]&&A.setRequestHeader("If-None-Match",I.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&A.setRequestHeader("Content-Type",f.contentType),A.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+zt+"; q=0.01":""):f.accepts["*"]),f.headers)A.setRequestHeader(l,f.headers[l]);if(f.beforeSend&&(!1===f.beforeSend.call(m,A,f)||c))return A.abort();if(E="abort",b.add(f.complete),A.done(f.success),A.fail(f.error),n=Bt(Ft,f,t,A)){if(A.readyState=1,d&&g.trigger("ajaxSend",[A,f]),c)return A;f.async&&f.timeout>0&&(s=i.setTimeout(function(){A.abort("timeout")},f.timeout));try{c=!1,n.send(T,P)}catch(e){if(c)throw e;P(-1,e)}}else P(-1,"No Transport");function P(e,t,a,u){var l,p,v,T,S,E=t;c||(c=!0,s&&i.clearTimeout(s),n=void 0,o=u||"",A.readyState=e>0?4:0,l=e>=200&&e<300||304===e,a&&(T=function(e,t,i){for(var n,r,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in s)if(s[r]&&s[r].test(n)){u.unshift(r);break}if(u[0]in i)o=u[0];else{for(r in i){if(!u[0]||e.converters[r+" "+u[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),i[o]}(f,A,a)),!l&&I.inArray("script",f.dataTypes)>-1&&(f.converters["text script"]=function(){}),T=function(e,t,i,n){var r,o,a,s,u,c={},d=e.dataTypes.slice();if(d[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=d.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!u&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=d.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],d.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(f,T,A,l),l?(f.ifModified&&((S=A.getResponseHeader("Last-Modified"))&&(I.lastModified[r]=S),(S=A.getResponseHeader("etag"))&&(I.etag[r]=S)),204===e||"HEAD"===f.type?E="nocontent":304===e?E="notmodified":(E=T.state,p=T.data,l=!(v=T.error))):(v=E,!e&&E||(E="error",e<0&&(e=0))),A.status=e,A.statusText=(t||E)+"",l?h.resolveWith(m,[p,E,A]):h.rejectWith(m,[A,E,v]),A.statusCode(y),y=void 0,d&&g.trigger(l?"ajaxSuccess":"ajaxError",[A,f,l?p:v]),b.fireWith(m,[A,E]),d&&(g.trigger("ajaxComplete",[A,f]),--I.active||I.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,i){return I.get(e,t,i,"json")},getScript:function(e,t){return I.get(e,void 0,t,"script")}}),I.each(["get","post"],function(e,t){I[t]=function(e,i,n,r){return b(i)&&(r=r||n,n=i,i=void 0),I.ajax(I.extend({url:e,type:t,dataType:r,data:i,success:n},I.isPlainObject(e)&&e))}}),I.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),I._evalUrl=function(e,t,i){return I.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){I.globalEval(e,t,i)}})},I.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=I(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return b(e)?this.each(function(t){I(this).wrapInner(e.call(this,t))}):this.each(function(){var t=I(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=b(e);return this.each(function(i){I(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){I(this).replaceWith(this.childNodes)}),this}}),I.expr.pseudos.hidden=function(e){return!I.expr.pseudos.visible(e)},I.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},I.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},qt=I.ajaxSettings.xhr();h.cors=!!qt&&"withCredentials"in qt,h.ajax=qt=!!qt,I.ajaxTransport(function(e){var t,n;if(h.cors||qt&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Vt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),I.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),I.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return I.globalEval(e),e}}}),I.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),I.ajaxTransport("script",function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,r){t=I("