assets.js.GroupdocsViewer.all.min.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of groupdocs-viewer Show documentation
Show all versions of groupdocs-viewer Show documentation
GroupDocs.Viewer for Java is a powerful document viewer component
that allows you to display over 50 document formats in your Java applications.
The viewer can both rasterize documents and convert them to SVG+HTML+CSS, delivering true-text high-fidelity rendering.
Supported file formats include: Microsoft Office, Microsoft Visio, Microsoft Project, Outlook documents, PDF, AutoCAD, Image files (JPG, BMP, GIF, TIFF, etc.) and many more formats.
if(!window.jGroupdocs)window.jGroupdocs={};window.jGroupdocs.stringExtensions={format:function(c){var b=c,a=arguments.length;while(--a)b=b.replace(new RegExp("\\{"+(a-1)+"\\}","gm"),arguments[a]);return b},trim:function(b,a){var c=new RegExp("^["+a+"]+|["+a+"]+$","g");return b.replace(c,"")},trimStart:function(a,b){var c=new RegExp("^["+b+"]+","g");return a.replace(c,"")},trimEnd:function(a,b){var c=new RegExp("["+b+"]+$","g");return a.replace(c,"")}};window.jGroupdocs.http={splitUrl:function(){var a=new RegExp("(\\w+)://([^/]+)([^?]*)([?].+)?");return function(e){var b=e.match(a),d=b.length>3?b[3]:null,c=b.length>4?b[4]:null;return{schema:b[1],authority:b.length>2?b[2]:null,path:d,query:c,queryDict:$.fn.q(c),pathAndQuery:c?d+c:d}}}()};JsInject={Container:function(){this.serviceEntries=[];this.disposables=[]}};JsInject.Container.prototype.Resolve=function(a,c,b,d,e,f,g,h,i,j){return this.ResolveInternal(a,!0,c,b,d,e,f,g,h,i,j)};JsInject.Container.prototype.TryResolve=function(a,c,b,d,e,f,g,h,i,j){return this.ResolveInternal(a,!1,c,b,d,e,f,g,h,i,j)};JsInject.Container.prototype.RegisterInternal=function(a,c,b,d){if(this.RegisteredInternal(a))throw"Factory with name '"+a+"' alredy registered";this.serviceEntries[a]={factory:c,scope:b,owner:d,instance:null}};JsInject.Container.prototype.Dispose=function(){for(var a in this.disposables)this.disposables[a].Dispose()};JsInject.Container.prototype.ResolveInternal=function(a,k,b,c,d,e,f,g,h,i,j){if(!this.RegisteredInternal(a))if(k)throw"Factory with name '"+a+"' is not registered";else return null;a=this.serviceEntries[a];if(a.scope==="container"){if(a.instance===null)a.instance=this.CreateInstanceInternal(a.factory,a.owner,b,c,d,e,f,g,h,i,j);return a.instance}return this.CreateInstanceInternal(a.factory,a.owner,b,c,d,e,f,g,h,i,j)};JsInject.Container.prototype.CreateInstanceInternal=function(a,c,b,d,e,f,g,h,i,j,k){a=a(this,b,d,e,f,g,h,i,j,k);c==="container"&&typeof a.Dispose==="function"&&this.disposables.push(a);return a};JsInject.Container.prototype.RegisteredInternal=function(a){return this.serviceEntries[a]!==void 0};JsInject.Registration=function(a,b){this.name=a;this.factory=b;this.scope="none";this.owner="consumer"};JsInject.Registration.prototype.Reused=function(){this.scope="container";this.Owned();return this};JsInject.Registration.prototype.Owned=function(){this.owner="container";return this};JsInject.ContainerBuilder=function(){this.registrations=[]};JsInject.ContainerBuilder.prototype.Register=function(b,c){var a=new JsInject.Registration(b,c);this.registrations.push(a);return a};JsInject.ContainerBuilder.prototype.Create=function(){var b=new JsInject.Container,c;for(c in this.registrations){var a=this.registrations[c];b.RegisterInternal(a.name,a.factory,a.scope,a.owner)}return b};JsInject.Container.prototype.Register=function(a,c,b){a=new JsInject.Registration(a,c);b&&a.Reused();this.RegisterInternal(a.name,a.factory,a.scope,a.owner)};if(!window.jSaaspose)window.jSaaspose={};if(!window.Container){window.Container=new JsInject.Container;Container.Register("Cacher",function(){return $.jCacher},true);Container.Register("Rx.Observable",function(){return Rx.Observable},true);Container.Register("RequestObservable",function(){return $.ajaxAsObservable},true);Container.Register("AsyncSubject",function(){return new Rx.AsyncSubject},false);var host=window.location.hostname+(window.location.port?":"+window.location.port:""),applicationPath=$.ui.groupdocsViewer.prototype.applicationPath;if(applicationPath!="/"){var slashPosition=applicationPath.indexOf("//"),hostNamePosition=slashPosition+2;if(applicationPath.indexOf(host,hostNamePosition)!=hostNamePosition)$.ui.groupdocsViewer.prototype.isWorkingCrossDomain=true}Container.Register("PortalService",function(){return new jSaaspose.PortalService($.ui.groupdocsViewer.prototype.applicationPath,$.ui.groupdocsViewer.prototype.useHttpHandlers,$.ui.groupdocsViewer.prototype.isWorkingCrossDomain)},true);Container.Register("HttpProvider",function(){return{buildUrl:function(d,b,c){var a=jGroupdocs.stringExtensions.trimEnd(d,"/");if(b&&b.length>0)a+="/"+jGroupdocs.stringExtensions.trimStart(b,"/");if(c)a+=(a.indexOf("&")!=-1||a.indexOf("?")!=-1?"&":"?")+jQuery.param(c);return a},signUrl:function(){return""}}},true)}/*
* Bootstrap.js by @fat & @mdo
* Copyright 2012 Twitter, Inc. - 2.3.2
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
!function(a){"use strict";a(function(){a.support.transition=function(){var a=function(){var c=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},a;for(a in b)if(c.style[a]!==undefined)return b[a]}();return a&&{end:a}}()})}(window.jQuery),!function(a){"use strict";var c='[data-dismiss="alert"]',b=function(b){a(b).on("click",c,this.close)};b.prototype.close=function(e){function f(){b.trigger("closed").remove()}var d=a(this),c=d.attr("data-target"),b;c||(c=d.attr("href"),c=c&&c.replace(/.*(?=#[^\s]*$)/,"")),b=a(c),e&&e.preventDefault(),b.length||(b=d.hasClass("alert")?d:d.parent()),b.trigger(e=a.Event("close"));if(e.isDefaultPrevented())return;b.removeClass("in"),a.support.transition&&b.hasClass("fade")?b.on(a.support.transition.end,f):f()};var d=a.fn.alert;a.fn.alert=function(c){return this.each(function(){var e=a(this),d=e.data("alert");d||e.data("alert",d=new b(this)),typeof c=="string"&&d[c].call(e)})},a.fn.alert.Constructor=b,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.alert.data-api",c,b.prototype.close)}(window.jQuery),!function(a){"use strict";var b=function(c,b){this.$element=a(c),this.options=a.extend({},a.fn.button.defaults,b)};b.prototype.setState=function(c){var b="disabled",a=this.$element,e=a.data(),d=a.is("input")?"val":"html";c+="Text",e.resetText||a.data("resetText",a[d]()),a[d](e[c]||this.options[c]),setTimeout(function(){c=="loadingText"?a.addClass(b).attr(b,b):a.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons-radio"]');a&&a.find(".active").removeClass("active"),this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var e=a(this),d=e.data("button"),f=typeof c=="object"&&c;d||e.data("button",d=new b(this,f)),c=="toggle"?d.toggle():c&&d.setState(c)})},a.fn.button.defaults={loadingText:"loading..."},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.button.data-api","[data-toggle^=button]",function(c){var b=a(c.target);b.hasClass("btn")||(b=b.closest(".btn")),b.button("toggle")})}(window.jQuery),!function(a){"use strict";var b=function(c,b){this.$element=a(c),this.$indicators=this.$element.find(".carousel-indicators"),this.options=b,this.options.pause=="hover"&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.prototype={cycle:function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(b){var c=this.getActiveIndex(),d=this;return b>this.$items.length-1||b<0?void 0:this.sliding?this.$element.one("slid",function(){d.to(b)}):c==b?this.pause().cycle():this.slide(b>c?"next":"prev",a(this.$items[b]))},pause:function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){return this.sliding?void 0:this.slide("next")},prev:function(){return this.sliding?void 0:this.slide("prev")},slide:function(e,i){var g=this.$element.find(".item.active"),b=i||g[e](),h=this.interval,d=e=="next"?"left":"right",j=e=="next"?"first":"last",f=this,c;this.sliding=!0,h&&this.pause(),b=b.length?b:this.$element.find(".item")[j](),c=a.Event("slide",{relatedTarget:b[0],direction:d});if(b.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var b=a(f.$indicators.children()[f.getActiveIndex()]);b&&b.addClass("active")}));if(a.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(c);if(c.isDefaultPrevented())return;b.addClass(e),b[0].offsetWidth,g.addClass(d),b.addClass(d),this.$element.one(a.support.transition.end,function(){b.removeClass([e,d].join(" ")).addClass("active"),g.removeClass(["active",d].join(" ")),f.sliding=!1,setTimeout(function(){f.$element.trigger("slid")},0)})}else{this.$element.trigger(c);if(c.isDefaultPrevented())return;g.removeClass("active"),b.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return h&&this.cycle(),this}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var g=a(this),d=g.data("carousel"),e=a.extend({},a.fn.carousel.defaults,typeof c=="object"&&c),f=typeof c=="string"?c:e.slide;d||g.data("carousel",d=new b(this,e)),typeof c=="number"?d.to(c):f?d[f]():e.interval&&d.pause().cycle()})},a.fn.carousel.defaults={interval:5e3,pause:"hover"},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(g){var b=a(this),e,c=a(b.attr("data-target")||(e=b.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},c.data(),b.data()),d;c.carousel(f),(d=b.attr("data-slide-to"))&&c.data("carousel").pause().to(d).cycle(),g.preventDefault()})}(window.jQuery),!function(a){"use strict";var b=function(c,b){this.$element=a(c),this.options=a.extend({},a.fn.collapse.defaults,b),this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.prototype={constructor:b,dimension:function(){var a=this.$element.hasClass("width");return a?"width":"height"},show:function(){var d,e,b,c;if(this.transitioning||this.$element.hasClass("in"))return;d=this.dimension(),e=a.camelCase(["scroll",d].join("-")),b=this.$parent&&this.$parent.find("> .accordion-group > .in");if(b&&b.length){c=b.data("collapse");if(c&&c.transitioning)return;b.collapse("hide"),c||b.data("collapse",null)}this.$element[d](0),this.transition("addClass",a.Event("show"),"shown"),a.support.transition&&this.$element[d](this.$element[0][e])},hide:function(){var b;if(this.transitioning||!this.$element.hasClass("in"))return;b=this.dimension(),this.reset(this.$element[b]()),this.transition("removeClass",a.Event("hide"),"hidden"),this.$element[b](0)},reset:function(a){var b=this.dimension();return this.$element.removeClass("collapse")[b](a||"auto")[0].offsetWidth,this.$element[a!==null?"addClass":"removeClass"]("collapse"),this},transition:function(f,c,e){var b=this,d=function(){c.type=="show"&&b.reset(),b.transitioning=0,b.$element.trigger(e)};this.$element.trigger(c);if(c.isDefaultPrevented())return;this.transitioning=1,this.$element[f]("in"),a.support.transition&&this.$element.hasClass("collapse")?this.$element.one(a.support.transition.end,d):d()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var e=a(this),d=e.data("collapse"),f=a.extend({},a.fn.collapse.defaults,e.data(),typeof c=="object"&&c);d||e.data("collapse",d=new b(this,f)),typeof c=="string"&&d[c]()})},a.fn.collapse.defaults={toggle:!0},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.collapse.data-api","[data-toggle=collapse]",function(f){var b=a(this),d,c=b.attr("data-target")||f.preventDefault()||(d=b.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),e=a(c).data("collapse")?"toggle":b.data();b[a(c).hasClass("in")?"addClass":"removeClass"]("collapsed"),a(c).collapse(e)})}(window.jQuery),!function(a){"use strict";function e(){a(".dropdown-backdrop").remove(),a(c).each(function(){d(a(this)).removeClass("open")})}function d(d){var b=d.attr("data-target"),c;b||(b=d.attr("href"),b=b&&/#/.test(b)&&b.replace(/.*(?=#[^\s]*$)/,"")),c=b&&a(b);if(!c||!c.length)c=d.parent();return c}var c="[data-toggle=dropdown]",b=function(c){var b=a(c).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){b.parent().removeClass("open")})};b.prototype={constructor:b,toggle:function(){var b=a(this),c,f;return b.is(".disabled, :disabled")?void 0:(c=d(b),f=c.hasClass("open"),e(),f||("ontouchstart"in document.documentElement&&a('').insertBefore(a(this)).on("click",e),c.toggleClass("open")),b.focus(),!1)},keydown:function(e){var g,f,j,h,i,b;if(!/(38|40|27)/.test(e.keyCode))return;g=a(this),e.preventDefault(),e.stopPropagation();if(g.is(".disabled, :disabled"))return;h=d(g),i=h.hasClass("open");if(!i||i&&e.keyCode==27)return e.which==27&&h.find(c).focus(),g.click();f=a("[role=menu] li:not(.divider):visible a",h);if(!f.length)return;b=f.index(f.filter(":focus")),e.keyCode==38&&b>0&&b--,e.keyCode==40&&b ').appendTo(document.body),this.$backdrop.click(this.options.backdrop=="static"?a.proxy(this.$element[0].focus,this.$element[0]):a.proxy(this.hide,this)),c&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in");if(!b)return;c?this.$backdrop.one(a.support.transition.end,b):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b):b()):b&&b()}};var c=a.fn.modal;a.fn.modal=function(c){return this.each(function(){var e=a(this),d=e.data("modal"),f=a.extend({},a.fn.modal.defaults,e.data(),typeof c=="object"&&c);d||e.data("modal",d=new b(this,f)),typeof c=="string"?d[c]():f.show&&d.show()})},a.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.modal.data-api",'[data-toggle="modal"]',function(f){var b=a(this),c=b.attr("href"),d=a(b.attr("data-target")||c&&c.replace(/.*(?=#[^\s]+$)/,"")),e=d.data("modal")?"toggle":a.extend({remote:!/#/.test(c)&&c},d.data(),b.data());f.preventDefault(),d.modal(e).one("hide",function(){b.focus()})})}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(i,g,h){var e,f,d,b,c;this.type=i,this.$element=a(g),this.options=this.getOptions(h),this.enabled=!0,d=this.options.trigger.split(" ");for(c=d.length;c--;)b=d[c],b=="click"?this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this)):b!="manual"&&(e=b=="hover"?"mouseenter":"focus",f=b=="hover"?"mouseleave":"blur",this.$element.on(e+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f+"."+this.type,this.options.selector,a.proxy(this.leave,this)));this.options.selector?(this._options=a.extend({},this.options,{trigger:"manual",selector:""})):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,this.$element.data(),b),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b},enter:function(e){var d=a.fn[this.type].defaults,c={},b;this._options&&a.each(this._options,function(a,b){d[a]!=b&&(c[a]=b)},this),b=a(e.currentTarget)[this.type](c).data(this.type);if(!b.options.delay||!b.options.delay.show)return b.show();clearTimeout(this.timeout),b.hoverState="in",this.timeout=setTimeout(function(){b.hoverState=="in"&&b.show()},b.options.delay.show)},leave:function(c){var b=a(c.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!b.options.delay||!b.options.delay.hide)return b.hide();b.hoverState="out",this.timeout=setTimeout(function(){b.hoverState=="out"&&b.hide()},b.options.delay.hide)},show:function(){var c,b,f,e,g,d,h=a.Event("show");if(this.hasContent()&&this.enabled){this.$element.trigger(h);if(h.isDefaultPrevented())return;c=this.tip(),this.setContent(),this.options.animation&&c.addClass("fade"),g=typeof this.options.placement=="function"?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,c.detach().css({top:0,left:0,display:"block"}),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element),b=this.getPosition(),f=c[0].offsetWidth,e=c[0].offsetHeight;switch(g){case"bottom":d={top:b.top+b.height,left:b.left+b.width/2-f/2};break;case"top":d={top:b.top-e,left:b.left+b.width/2-f/2};break;case"left":d={top:b.top+b.height/2-e/2,left:b.left-f};break;case"right":d={top:b.top+b.height/2-e/2,left:b.left+b.width}}this.applyPlacement(d,g),this.$element.trigger("shown")}},applyPlacement:function(b,e){var a=this.tip(),i=a[0].offsetWidth,f=a[0].offsetHeight,d,c,g,h;a.offset(b).addClass(e).addClass("in"),d=a[0].offsetWidth,c=a[0].offsetHeight,e=="top"&&c!=f&&(b.top=b.top+f-c,h=!0),e=="bottom"||e=="top"?(g=0,b.left<0&&(g=b.left*-2,b.left=0,a.offset(b),d=a[0].offsetWidth,c=a[0].offsetHeight),this.replaceArrow(g-i+d,d,"left")):this.replaceArrow(c-f,c,"top"),h&&a.offset(b)},replaceArrow:function(a,c,b){this.arrow().css(b,a?50*(1-a/c)+"%":"")},setContent:function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},hide:function(){function d(){var c=setTimeout(function(){b.off(a.support.transition.end).detach()},500);b.one(a.support.transition.end,function(){clearTimeout(c),b.detach()})}var e=this,b=this.tip(),c=a.Event("hide");this.$element.trigger(c);return c.isDefaultPrevented()?void 0:(b.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d():b.detach(),this.$element.trigger("hidden"),this)},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var b=this.$element[0];return a.extend({},typeof b.getBoundingClientRect=="function"?b.getBoundingClientRect():{width:b.offsetWidth,height:b.offsetHeight},this.$element.offset())},getTitle:function(){var b,c=this.$element,a=this.options;return b=c.attr("data-original-title")||(typeof a.title=="function"?a.title.call(c[0]):a.title),b},tip:function(){return this.$tip=this.$tip||a(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(c){var b=c?a(c.currentTarget)[this.type](this._options).data(this.type):this;b.tip().hasClass("in")?b.hide():b.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var e=a(this),d=e.data("tooltip"),f=typeof c=="object"&&c;d||e.data("tooltip",d=new b(this,f)),typeof c=="string"&&d[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype,{constructor:b,setContent:function(){var a=this.tip(),c=this.getTitle(),b=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](c),a.find(".popover-content")[this.options.html?"html":"text"](b),a.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var b,c=this.$element,a=this.options;return b=(typeof a.content=="function"?a.content.call(c[0]):a.content)||c.attr("data-content"),b},tip:function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var e=a(this),d=e.data("popover"),f=typeof c=="object"&&c;d||e.data("popover",d=new b(this,f)),typeof c=="string"&&d[c]()})},a.fn.popover.Constructor=b,a.fn.popover.defaults=a.extend({},a.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:''}),a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(window.jQuery),!function(a){"use strict";function b(b,e){var f=a.proxy(this.process,this),d=a(b).is("body")?a(window):a(b),c;this.options=a.extend({},a.fn.scrollspy.defaults,e),this.$scrollElement=d.on("scroll.scroll-spy.data-api",f),this.selector=(this.options.target||(c=a(b).attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=a("body"),this.refresh(),this.process()}b.prototype={constructor:b,refresh:function(){var b=this,c;this.offsets=a([]),this.targets=a([]),c=this.$body.find(this.selector).map(function(){var e=a(this),d=e.data("target")||e.attr("href"),c=/^#\w/.test(d)&&a(d);return c&&c.length&&[[c.position().top+(!a.isWindow(b.$scrollElement.get(0))&&b.$scrollElement.scrollTop()),d]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},process:function(){var c=this.$scrollElement.scrollTop()+this.options.offset,g=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,f=g-this.$scrollElement.height(),b=this.offsets,d=this.targets,e=this.activeTarget,a;if(c>=f)return e!=(a=d.last()[0])&&this.activate(a);for(a=b.length;a--;)e!=d[a]&&c>=b[a]&&(!b[a+1]||c<=b[a+1])&&this.activate(d[a])},activate:function(c){var b,d;this.activeTarget=c,a(this.selector).parent(".active").removeClass("active"),d=this.selector+'[data-target="'+c+'"],'+this.selector+'[href="'+c+'"]',b=a(d).parent("li").addClass("active"),b.parent(".dropdown-menu").length&&(b=b.closest("li.dropdown").addClass("active")),b.trigger("activate")}};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var e=a(this),d=e.data("scrollspy"),f=typeof c=="object"&&c;d||e.data("scrollspy",d=new b(this,f)),typeof c=="string"&&d[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.defaults={offset:10},a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),!function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype={constructor:b,show:function(){var b=this.element,g=b.closest("ul:not(.dropdown-menu)"),c=b.attr("data-target"),d,f,e;c||(c=b.attr("href"),c=c&&c.replace(/.*(?=#[^\s]*$)/,""));if(b.parent("li").hasClass("active"))return;d=g.find(".active:last a")[0],e=a.Event("show",{relatedTarget:d}),b.trigger(e);if(e.isDefaultPrevented())return;f=a(c),this.activate(b.parent("li"),g),this.activate(f,f.parent(),function(){b.trigger({type:"shown",relatedTarget:d})})},activate:function(b,g,d){function e(){c.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),f?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var c=g.find("> .active"),f=d&&a.support.transition&&c.hasClass("fade");f?c.one(a.support.transition.end,e):e(),c.removeClass("in")}};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var e=a(this),d=e.data("tab");d||e.data("tab",d=new b(this)),typeof c=="string"&&d[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(window.jQuery),!function(a){"use strict";var b=function(c,b){this.$element=a(c),this.options=a.extend({},a.fn.typeahead.defaults,b),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=a(this.options.menu),this.shown=!1,this.listen()};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(a)).change(),this.hide()},updater:function(a){return a},show:function(){var b=a.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:b.top+b.height,left:b.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(){var b;return this.query=this.$element.val(),!this.query||this.query.length"+a+""})},render:function(b){var c=this;return b=a(b).map(function(b,d){return b=a(c.options.item).attr("data-value",d),b.find("a").html(c.highlighter(d)),b[0]}),b.first().addClass("active"),this.$menu.html(b),this},next:function(){var c=this.$menu.find(".active").removeClass("active"),b=c.next();b.length||(b=a(this.$menu.find("li")[0])),b.addClass("active")},prev:function(){var b=this.$menu.find(".active").removeClass("active"),a=b.prev();a.length||(a=this.$menu.find("li").last()),a.addClass("active")},listen:function(){this.$element.on("focus",a.proxy(this.focus,this)).on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",a.proxy(this.keydown,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this)).on("mouseleave","li",a.proxy(this.mouseleave,this))},eventSupported:function(a){var b=a in this.$element;return b||(this.$element.setAttribute(a,"return;"),b=typeof this.$element[a]=="function"),b},move:function(a){if(!this.shown)return;switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:a.preventDefault(),this.prev();break;case 40:a.preventDefault(),this.next()}a.stopPropagation()},keydown:function(b){this.suppressKeyPressRepeat=~a.inArray(b.keyCode,[40,38,9,13,27]),this.move(b)},keypress:function(a){if(this.suppressKeyPressRepeat)return;this.move(a)},keyup:function(a){switch(a.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}a.stopPropagation(),a.preventDefault()},focus:function(){this.focused=!0},blur:function(){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(a){a.stopPropagation(),a.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(b){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")},mouseleave:function(){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var c=a.fn.typeahead;a.fn.typeahead=function(c){return this.each(function(){var e=a(this),d=e.data("typeahead"),f=typeof c=="object"&&c;d||e.data("typeahead",d=new b(this,f)),typeof c=="string"&&d[c]()})},a.fn.typeahead.defaults={source:[],items:8,menu:' ',minLength:1},a.fn.typeahead.Constructor=b,a.fn.typeahead.noConflict=function(){return a.fn.typeahead=c,this},a(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(){var b=a(this);if(b.data("typeahead"))return;b.typeahead(b.data())})}(window.jQuery),!function(a){"use strict";var b=function(c,b){this.options=a.extend({},a.fn.affix.defaults,b),this.$window=a(window).on("scroll.affix.data-api",a.proxy(this.checkPosition,this)).on("click.affix.data-api",a.proxy(function(){setTimeout(a.proxy(this.checkPosition,this),1)},this)),this.$element=a(c),this.checkPosition()};b.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var h=a(document).height(),f=this.$window.scrollTop(),g=this.$element.offset(),c=this.options.offset,e=c.bottom,d=c.top,i="affix affix-top affix-bottom",b;typeof c!="object"&&(e=d=c),typeof d=="function"&&(d=c.top()),typeof e=="function"&&(e=c.bottom()),b=this.unpin!=null&&f+this.unpin<=g.top?!1:e!=null&&g.top+this.$element.height()>=h-e?"bottom":d!=null&&f<=d?"top":!1;if(this.affixed===b)return;this.affixed=b,this.unpin=b=="bottom"?g.top-f:null,this.$element.removeClass(i).addClass("affix"+(b?"-"+b:""))};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var e=a(this),d=e.data("affix"),f=typeof c=="object"&&c;d||e.data("affix",d=new b(this,f)),typeof c=="string"&&d[c]()})},a.fn.affix.Constructor=b,a.fn.affix.defaults={offset:0},a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),b=c.data();b.offset=b.offset||{},b.offsetBottom&&(b.offset.bottom=b.offsetBottom),b.offsetTop&&(b.offset.top=b.offsetTop),c.affix(b)})})}(window.jQuery);(function(a){a.fn.ellipsis=function(c){var b=document.documentElement.style;return!("textOverflow"in b||"OTextOverflow"in b)?this.each(function(){var b=a(this);if(b.css("overflow")=="hidden"){var f=b.html(),h=b.width(),e=a(this.cloneNode(true)).hide().css({position:"absolute",width:"auto",overflow:"visible","max-width":"inherit"});b.after(e);var d=f;while(d.length>0&&e.width()>b.width()){d=d.substr(0,d.length-1);e.html(d+"...")}b.html(e.html());e.remove();if(c==true){var g=b.width();setInterval(function(){if(b.width()!=g){g=b.width();b.html(f);b.ellipsis()}},200)}}}):this}})(jQuery);(function(a){a.fn.innerTip=function(b){return this.each(function(){var c=a(this);c.focusin(function(){if(c.hasClass("empty")){c.val("");c.removeClass("empty")}});c.focusout(function(){if(c.val()==""){c.val(b.text);c.addClass("empty")}});c.bind("reset",function(){c.val(b.text);c.addClass("empty")});c.val(b.text);c.addClass("empty")})}})(jQuery);(function(a){var b={classes:[]};a.fn.corners=function(c){return this.each(function(){var d=a(this);if(a.inArray(c.id,b.classes)===-1){b.classes.push(c.id);a("body").append('")}d.css({position:"relative"});d.prepend('');d.append('')})}})(jQuery);(function(a){a.fn.hitch=function(c,d,a,b){return this.bind(c,b,function(){return d.apply(a||this,Array.prototype.slice.call(arguments))})}})(jQuery);(function(a){a.fn.q=function(b){var c={};if(b){var b=b.replace(/^\?/,"").replace(/\&$/,"");a.each(b.split("&"),function(){var b=this.split("=")[0],a=this.split("=")[1];if(/^[0-9.]+$/.test(a))a=parseFloat(a);if(a)c[b]=a})}return c}})(jQuery);(function(a){var c=function(a){a.preventDefault()},b=function(a){a.click(c);a.is("input[type='submit'],input[type='button']")&&a.attr("disabled","disabled")},d=function(d,e,f){var c=d.data("clone");if(!c){c=d.clone(false);a.each(c[0].attributes,function(b,a){a!=null&&a.name!="class"&&c.attr(a.name,"")});e!=""&&c.addClass(e);b(c);d.data("clone",c);d.after(c)}c.attr("title",f);d.hide();c.show()},e=function(b){var a=b.data("clone");if(a){b.show();a.hide()}};a.fn.activator=function(b){return this.each(function(){var c=a(this);if(b.action=="enable"){e(c);return}b.action=="disable"&&d(c,b.cl,b.tip)})};a.fn.isEnable=function(){var c=a(this),b=c.data("clone");return b&&b.is(":visible")?false:true}})(jQuery);var ZeroClipboard={version:"1.0.7",clients:{},moviePath:"ZeroClipboard.swf",nextId:1,$:function(a){if(typeof a=="string")a=document.getElementById(a);if(!a.addClass){a.hide=function(){this.style.display="none"};a.show=function(){this.style.display=""};a.addClass=function(a){this.removeClass(a);this.className+=" "+a};a.removeClass=function(d){for(var a=this.className.split(/\s+/),c=-1,b=0;b-1){a.splice(c,1);this.className=a.join(" ")}return this};a.hasClass=function(a){return!!this.className.match(new RegExp("\\s*"+a+"\\s*"))}}return a},setMoviePath:function(a){this.moviePath=a},dispatch:function(d,b,c){var a=this.clients[d];a&&a.receiveEvent(b,c)},register:function(b,a){this.clients[b]=a},getDOMObjectPosition:function(a){return{left:0,top:0,width:a.width?a.width:a.offsetWidth,height:a.height?a.height:a.offsetHeight}},Client:function(a){this.handlers={};this.id=ZeroClipboard.nextId++;this.movieId="ZeroClipboardMovie_"+this.id;ZeroClipboard.register(this.id,this);a&&this.glue(a)}};ZeroClipboard.Client.prototype={id:0,ready:false,movie:null,clipText:"",handCursorEnabled:true,cssEffects:true,handlers:null,glue:function(f,a,d){this.domElement=ZeroClipboard.$(f);var e=99;if(this.domElement.style.zIndex)e=parseInt(this.domElement.style.zIndex,10)+1;if(typeof a=="string")a=ZeroClipboard.$(a);else if(typeof a=="undefined")a=document.getElementsByTagName("body")[0];var c=ZeroClipboard.getDOMObjectPosition(this.domElement,a);this.div=document.createElement("div");var b=this.div.style;b.position="absolute";b.left=""+c.left+"px";b.top=""+c.top+"px";b.width=""+c.width+"px";b.height=""+c.height*2+"px";b.zIndex=e;if(typeof d=="object")for(addedStyle in d)b[addedStyle]=d[addedStyle];a.appendChild(this.div);this.div.innerHTML=this.getHTML(c.width,c.height)},getHTML:function(b,a){var c="",d="id="+this.id+"&width="+b+"&height="+a;if(navigator.userAgent.match(/MSIE/)){var e=location.href.match(/^https/i)?"https://":"http://";c+=''}else c+='';return c},hide:function(){if(this.div)this.div.style.left="-2000px"},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML="";var a=document.getElementsByTagName("body")[0];try{a.removeChild(this.div)}catch(b){}this.domElement=null;this.div=null}},reposition:function(b){if(b){this.domElement=ZeroClipboard.$(b);!this.domElement&&this.hide()}if(this.domElement&&this.div){var c=ZeroClipboard.getDOMObjectPosition(this.domElement),a=this.div.style;a.left=""+c.left+"px";a.top=""+c.top+"px"}},setText:function(a){this.clipText=a;this.ready&&this.movie.setText(a)},addEventListener:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");if(!this.handlers[a])this.handlers[a]=[];this.handlers[a].push(b)},setHandCursor:function(a){this.handCursorEnabled=a;this.ready&&this.movie.setHandCursor(a)},setCSSEffects:function(a){this.cssEffects=!!a},receiveEvent:function(b,c){b=b.toString().toLowerCase().replace(/^on/,"");switch(b){case"load":this.movie=document.getElementById(this.movieId);if(!this.movie){var e=this;setTimeout(function(){e.receiveEvent("load",null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){var e=this;setTimeout(function(){e.receiveEvent("load",null)},100);this.ready=true;return}this.ready=true;this.movie.setText(this.clipText);this.movie.setHandCursor(this.handCursorEnabled);break;case"mouseover":if(this.domElement&&this.cssEffects){this.domElement.addClass("hover");this.recoverActive&&this.domElement.addClass("active")}break;case"mouseout":if(this.domElement&&this.cssEffects){this.recoverActive=false;if(this.domElement.hasClass("active")){this.domElement.removeClass("active");this.recoverActive=true}this.domElement.removeClass("hover")}break;case"mousedown":this.domElement&&this.cssEffects&&this.domElement.addClass("active");break;case"mouseup":if(this.domElement&&this.cssEffects){this.domElement.removeClass("active");this.recoverActive=false}}if(this.handlers[b])for(var d=0,f=this.handlers[b].length;d0)h=setTimeout(n,a);else n()}},p=function(b,a){o.trigger("itemremoved",[b,a])};f.itemremoved=function(a){o.bind("itemremoved",a)};f.add=function(k,o,h,m,n){if(o!==b){if(a.inArray(k,g.getCacheKeys())==-1)f.count++;var e;if(h||m)if(h)e=l(new Date,h*1e3);else if(m)e=m;n&&g.registerDependencies(k,n);var p=new d(k,o,e,h);g.addCacheItem(p);(e&&(c===b||e0){return k(a,"removed");i==a&&j()}};f.clear=function(){if(f.count>0){f.count=0;g.clear();if(h!==null){clearTimeout(h);h=null}}};g.getCacheItems().length>0&&j()};function d(d,c,b,a){this.key=d;this.value=c;this.expires=b;this.slidingExpiration=a}function c(b,a){this.key=b;this.mappings=a}function e(f){var d=[],b=[],e=[];(function(){if(f&&window.localStorage){if(!window.localStorage.jCacher)window.localStorage.jCacher=jQuery.toJSON({items:[],dependencyMappings:[]});else{for(var c=jQuery.parseJSON(window.localStorage.jCacher),a=0;a-1?d[c]:null};this.getCacheItems=function(){return d};this.removeCacheItem=function(h){var c=a.inArray(h,b);if(f&&window.localStorage){var g=jQuery.parseJSON(window.localStorage.jCacher);g.dependencyMappings.splice(c,1);g.items.splice(c,1);window.localStorage.jCacher=jQuery.toJSON(g)}d.splice(c,1);b.splice(c,1);e.splice(c,1)};this.addCacheItem=function(g){var i=a.inArray(g.key,b);if(i==-1){var j=new c(g.key,[]);d.push(g);b.push(g.key);e.push(j);if(f&&window.localStorage){var h=jQuery.parseJSON(window.localStorage.jCacher),k=function(){var a={};a.expires=g.expires.getTime();a.key=g.key;a.value=g.value;a.slidingExpiration=g.slidingExpiration;return a}();h.items.push(k);h.dependencyMappings.push(j);window.localStorage.jCacher=jQuery.toJSON(h)}}else{d[i]=g;if(f&&window.localStorage){var h=jQuery.parseJSON(window.localStorage.jCacher);h.items[i]=g;window.localStorage.jCacher=jQuery.toJSON(h)}}};this.getCacheKeys=function(){return b};this.registerDependencies=function(d,h){for(var g=0;g-1?e[c].mappings:null};this.clear=function(){window.localStorage&&window.localStorage.removeItem("jCacher");d=[];e=[];b=[]}}})(jQuery);ko.exportSymbol=function(d,e){for(var a=d.split("."),c=window,b=0;b1&&l(a[0]))throw Error("When calling ko.update*, the key '"+b+"' was not unique!");return a[0]}function e(b,a){return ko.utils.arrayMap(ko.utils.unwrapObservable(b),function(b){return a?s(b,a):b})}function r(b,c){if(b instanceof Array)for(var a=0;a=0?(b[e]=d):(a.push(c),b.push(d))};this.get=function(c){c=ko.utils.arrayIndexOf(a,c);if(c>=0)return b[c]}}ko.mapping={};var b="__ko_mapping__",h=ko.dependentObservable,m=0,k,f,i={include:["_destroy"],ignore:[],copy:[]},a=i;ko.mapping.isMapped=function(a){return(a=ko.utils.unwrapObservable(a))&&a[b]};ko.mapping.fromJS=function(e){if(arguments.length==0)throw Error("When calling ko.fromJS, pass the object you want to convert.");window.setTimeout(function(){m=0},0);m++||(k=[],f=new t);var a,c;arguments.length==2&&(arguments[1][b]?(c=arguments[1]):(a=arguments[1]));arguments.length==3&&(a=arguments[1],c=arguments[2]);c&&(a=p(a,c[b]));a=o(a);var d=j(c,e,a);c&&(d=c);--m||window.setTimeout(function(){ko.utils.arrayForEach(k,function(a){a&&a()})},0);d[b]=p(d[b],a);return d};ko.mapping.fromJSON=function(a){var b=ko.utils.parseJson(a);arguments[0]=b;return ko.mapping.fromJS.apply(this,arguments)};ko.mapping.updateFromJS=function(){throw Error("ko.mapping.updateFromJS, use ko.mapping.fromJS instead. Please note that the order of parameters is different!");};ko.mapping.updateFromJSON=function(){throw Error("ko.mapping.updateFromJSON, use ko.mapping.fromJSON instead. Please note that the order of parameters is different!");};ko.mapping.toJS=function(d,c){a||ko.mapping.resetDefaultOptions();if(arguments.length==0)throw Error("When calling ko.mapping.toJS, pass the object you want to convert.");if(!(a.ignore instanceof Array))throw Error("ko.mapping.defaultOptions().ignore should be an array.");if(!(a.include instanceof Array))throw Error("ko.mapping.defaultOptions().include should be an array.");if(!(a.copy instanceof Array))throw Error("ko.mapping.defaultOptions().copy should be an array.");c=o(c,d[b]);return ko.mapping.visitModel(d,function(a){return ko.utils.unwrapObservable(a)},c)};ko.mapping.toJSON=function(a,c){var b=ko.mapping.toJS(a,c);return ko.utils.stringifyJson(b)};ko.mapping.defaultOptions=function(){if(arguments.length>0)a=arguments[0];else return a};ko.mapping.resetDefaultOptions=function(){a={include:i.include.slice(0),ignore:i.ignore.slice(0),copy:i.copy.slice(0)}};ko.mapping.visitModel=function(f,g,a){a=a||{};a.visitedObjects=a.visitedObjects||new t;a.parentName||(a=o(a));var e,d=ko.utils.unwrapObservable(f);if(l(d))g(f,a.parentName),e=d instanceof Array?[]:{};else return g(f,a.parentName);a.visitedObjects.save(f,e);var h=a.parentName;r(d,function(f){if(!(a.ignore&&ko.utils.arrayIndexOf(a.ignore,f)!=-1)){var i=d[f],j=a,k=h||"";d instanceof Array?h&&(k+="["+f+"]"):(h&&(k+="."),k+=f);j.parentName=k;if(!(ko.utils.arrayIndexOf(a.copy,f)===-1&&ko.utils.arrayIndexOf(a.include,f)===-1&&d[b]&&d[b].mappedProperties&&!d[b].mappedProperties[f]&&!(d instanceof Array)))switch(c(ko.utils.unwrapObservable(i))){case"object":case"undefined":j=a.visitedObjects.get(i);e[f]=c(j)!=="undefined"?j:ko.mapping.visitModel(i,g,a);break;default:e[f]=g(i,a.parentName)}}});return e};ko.exportSymbol("ko.mapping",ko.mapping);ko.exportSymbol("ko.mapping.fromJS",ko.mapping.fromJS);ko.exportSymbol("ko.mapping.fromJSON",ko.mapping.fromJSON);ko.exportSymbol("ko.mapping.isMapped",ko.mapping.isMapped);ko.exportSymbol("ko.mapping.defaultOptions",ko.mapping.defaultOptions);ko.exportSymbol("ko.mapping.toJS",ko.mapping.toJS);ko.exportSymbol("ko.mapping.toJSON",ko.mapping.toJSON);ko.exportSymbol("ko.mapping.updateFromJS",ko.mapping.updateFromJS);ko.exportSymbol("ko.mapping.updateFromJSON",ko.mapping.updateFromJSON);ko.exportSymbol("ko.mapping.visitModel",ko.mapping.visitModel)})();(function(){var a,h,t=this,y="Index out of range";if(typeof ProvideCustomRxRootObject=="undefined")h=t.Rx={};else h=ProvideCustomRxRootObject();var u=function(){},z=function(){return(new Date).getTime()},A=function(a,b){return a===b},x=function(a){return a},n=function(a){return{Dispose:a}},o={Dispose:u};h.Disposable={Create:n,Empty:o};var H=h.BooleanDisposable=function(){var a=false;this.GetIsDisposed=function(){return a};this.Dispose=function(){a=true}},S=function(a){var b=false;a.a++;this.Dispose=function(){var b=false;if(!a.b)if(!this.c){this.c=true;a.a--;if(a.a==0&&a.d){a.b=true;b=true}}b&&a.e.Dispose()}},T=h.RefCountDisposable=function(a){this.d=false;this.b=false;this.e=a;this.a=0;this.Dispose=function(){var a=false;if(!this.b)if(!this.d){this.d=true;if(this.a==0){this.b=true;a=true}}a&&this.e.Dispose()};this.GetDisposable=function(){return this.b?o:new S(this)}},d=h.CompositeDisposable=function(){for(var a=new r,c=0;c=b)throw y;if(a==0){c.shift();b--}else{c.splice(a,1);b--}};this.IndexOf=function(d){for(var a=0;a=b)throw y;return c[a]};this.SetItem=function(a,d){if(a<0||a>=b)throw y;c[a]=d};this.ToArray=function(){for(var b=[],a=0;a=this.h||a<0)return;var b=a-1>>1;if(b<0||b==a)return;if(this.i(a,b)){var c=this.g[a];this.g[a]=this.g[b];this.g[b]=c;this.j(b)}};k.prototype.k=function(b){if(b===a)b=0;var d=2*b+1,e=2*b+2,c=b;if(d0){var a=this.m.Dequeue();this.l=a.n;a.o()}};a.RunTo=function(b){while(this.m.GetCount()>0&&this.f(this.m.Peek().n,b)<=0){var a=this.m.Dequeue();this.l=a.n;a.o()}};a.GetTicks=function(){return this.l};a.l=0;a.m=new k(function(a,c){return b(a.n,c.n)});a.f=b;return a},ob=h.TestScheduler=function(){return new W(function(a,b){return a-b},function(a,b){return a+b},function(a){return new Date(a)},function(a){return a<=0?1:a})},j=new s(function(a){return this.ScheduleWithTime(a,0)},function(d,e){var f=this.Now()+e,b=new L(d,f);if(this.m===a){var c=new K;try{this.m.Enqueue(b);c.p()}finally{c.q()}}else this.m.Enqueue(b);return b.r()},z);j.s=function(b){if(this.m===a){var c=new K;try{b();c.p()}finally{c.q()}}else b()};s.CurrentThread=j;var K=function(){j.m=new k(function(a,b){try{return a.n-b.n}catch(c){}});this.q=function(){j.m=a};this.p=function(){while(j.m.GetCount()>0){var a=j.m.Dequeue();if(!a.t()){while(a.n-j.Now()>0);!a.t()&&a.o()}}}},Z=0,L=function(a,b){this.u=Z++;this.o=a;this.n=b;this.v=new H;this.t=function(){return this.v.GetIsDisposed()};this.r=function(){return this.v}},f=new s(function(a){a();return o},function(a,b){while(this.Now1||typeof a=="function")b=new g(a,c,d);else b=a;return this.x(b)},x:function(c){var a=false,b=new e,f=this;j.s(function(){var d=new g(function(b){!a&&c.OnNext(b)},function(d){if(!a){a=true;b.Dispose();c.OnError(d)}},function(){if(!a){a=true;b.Dispose();c.OnCompleted()}});b.Replace(f.w(d))});return new d(b,n(function(){a=true}))},Select:function(a){var c=this;return b(function(b){var d=0;return c.Subscribe(new g(function(e){var c;try{c=a(e,d++)}catch(f){b.OnError(f);return}b.OnNext(c)},function(a){b.OnError(a)},function(){b.OnCompleted()}))})},Let:function(c,f){if(f===a)return c(this);var g=this;return b(function(a){var h=f(),i;try{i=c(h)}catch(l){return I(l).Subscribe(a)}var j=new e,k=new e,b=new d(k,j);j.Replace(i.Subscribe(function(b){a.OnNext(b)},function(c){a.OnError(c);b.Dispose()},function(){a.OnCompleted();b.Dispose()}));k.Replace(g.Subscribe(h));return b})},MergeObservable:function(){var a=this;return b(function(c){var f=false,b=new d,g=new e;b.Add(g);g.Replace(a.Subscribe(function(d){var a=new e;b.Add(a);a.Replace(d.Subscribe(function(a){c.OnNext(a)},function(a){c.OnError(a)},function(){b.Remove(a);b.GetCount()==1&&f&&c.OnCompleted()}))},function(a){c.OnError(a)},function(){f=true;b.GetCount()==1&&c.OnCompleted()}));return b})},y:function(b,c){var a=J(c);a.unshift(this);return b(a)},Concat:function(){return this.y(G,arguments)},Merge:function(){return this.y(Q,arguments)},Catch:function(){return this.y(V,arguments)},OnErrorResumeNext:function(){return this.y(Y,arguments)},Zip:function(e,c){var f=this;return b(function(b){var m=false,h=[],i=[],j=false,k=false,g=new d,l=function(c){g.Dispose();h=a;i=a;b.OnError(c)};g.Add(f.Subscribe(function(a){if(k){b.OnCompleted();return}if(i.length>0){var e=i.shift(),d;try{d=c(a,e)}catch(f){g.Dispose();b.OnError(f);return}b.OnNext(d)}else h.push(a)},l,function(){if(k){b.OnCompleted();return}j=true}));g.Add(e.Subscribe(function(a){if(j){b.OnCompleted();return}if(h.length>0){var e=h.shift(),d;try{d=c(e,a)}catch(f){g.Dispose();b.OnError(f);return}b.OnNext(d)}else i.push(a)},l,function(){if(j){b.OnCompleted();return}k=true}));return g})},CombineLatest:function(c,a){var e=this;return b(function(b){var n=false,j=false,k=false,l,m,g=false,h=false,f=new d,i=function(a){f.Dispose();b.OnError(a)};f.Add(e.Subscribe(function(c){if(h){b.OnCompleted();return}if(k){var d;try{d=a(c,m)}catch(e){f.Dispose();b.OnError(e);return}b.OnNext(d)}l=c;j=true},i,function(){if(h){b.OnCompleted();return}g=true}));f.Add(c.Subscribe(function(c){if(g){b.OnCompleted();return}if(j){var d;try{d=a(l,c)}catch(e){f.Dispose();b.OnError(e);return}b.OnNext(d)}m=c;k=true},i,function(){if(g){b.OnCompleted();return}h=true}))})},Switch:function(){var c=this;return b(function(f){var g=false,b=new e,h=new e;h.Replace(c.Subscribe(function(d){if(!g){var c=new e;c.Replace(d.Subscribe(function(a){f.OnNext(a)},function(a){h.Dispose();b.Dispose();f.OnError(a)},function(){b.Replace(a);g&&f.OnCompleted()}));b.Replace(c)}},function(a){b.Dispose();f.OnError(a)},function(){g=true;b.Get()===a&&f.OnCompleted()}));return new d(h,b)})},TakeUntil:function(a){var c=this;return b(function(e){var b=new d;b.Add(a.Subscribe(function(){e.OnCompleted();b.Dispose()},function(a){e.OnError(a)},function(){}));b.Add(c.Subscribe(e));return b})},SkipUntil:function(a){var c=this;return b(function(b){var e=true,f=new d;f.Add(a.Subscribe(function(){e=false},function(a){b.OnError(a)},u));f.Add(c.Subscribe(new g(function(a){!e&&b.OnNext(a)},function(a){b.OnError(a)},function(){!e&&b.OnCompleted()})));return f})},Scan1:function(a){var b=this;return q(function(){var c,d=false;return b.Select(function(b){if(d)c=a(c,b);else{c=b;d=true}return c})})},Scan:function(b,a){var c=this;return q(function(){var d,e=false;return c.Select(function(c){if(e)d=a(d,c);else{d=a(b,c);e=true}return d})})},Scan0:function(a,c){var d=this;return b(function(b){var e=a,f=true;return d.Subscribe(function(a){if(f){f=false;b.OnNext(e)}try{e=c(e,a)}catch(d){b.OnError(d);return}b.OnNext(e)},function(a){f&&b.OnNext(e);b.OnError(a)},function(){f&&b.OnNext(e);b.OnCompleted()})})},Finally:function(a){var b=this;return E(function(c){var d=b.Subscribe(c);return function(){try{d.Dispose();a()}catch(b){a();throw b;}}})},Do:function(d,e,f){var c;if(arguments.length==0||arguments.length>1||typeof d=="function")c=new g(d,e!==a?e:u,f);else c=d;var h=this;return b(function(b){return h.Subscribe(new g(function(a){try{c.OnNext(a)}catch(d){b.OnError(d);return}b.OnNext(a)},function(d){if(e!==a)try{c.OnError(d)}catch(f){b.OnError(f);return}b.OnError(d)},function(){if(f!==a)try{c.OnCompleted()}catch(d){b.OnError(d);return}b.OnCompleted()}))})},Where:function(a){var c=this;return b(function(b){var d=0;return c.Subscribe(new g(function(c){var e=false;try{e=a(c,d++)}catch(f){b.OnError(f);return}e&&b.OnNext(c)},function(a){b.OnError(a)},function(){b.OnCompleted()}))})},Take:function(d,c){if(c===a)c=f;var e=this;return b(function(a){if(d<=0){e.Subscribe().Dispose();return B(c).Subscribe(a)}var b=d;return e.Subscribe(new g(function(c){if(b-->0){a.OnNext(c);b==0&&a.OnCompleted()}},function(b){a.OnError(b)},function(){a.OnCompleted()}))})},GroupBy:function(c,f,g){if(c===a)c=x;if(f===a)f=x;if(g===a)g=function(a){return a.toString()};var h=this;return b(function(j){var i={},k=new e,l=new T(k);k.Replace(h.Subscribe(function(r){var h;try{h=c(r)}catch(s){for(var n in i)i[n].OnError(s);j.OnError(s);return}var o=false,e;try{var k=g(h);if(i[k]===a){e=new m;i[k]=e;o=true}else e=i[k]}catch(s){for(var n in i)i[n].OnError(s);j.OnError(s);return}if(o){var p=b(function(a){return new d(l.GetDisposable(),e.Subscribe(a))});p.Key=h;j.OnNext(p)}var q;try{q=f(r)}catch(s){for(var n in i)i[n].OnError(s);j.OnError(s);return}e.OnNext(q)},function(a){for(var b in i)i[b].OnError(a);j.OnError(a)},function(){for(var a in i)i[a].OnCompleted();j.OnCompleted()}));return l})},TakeWhile:function(a){var c=this;return b(function(b){var d=true;return c.Subscribe(new g(function(c){if(d){try{d=a(c)}catch(e){b.OnError(e);return}if(d)b.OnNext(c);else b.OnCompleted()}},function(a){b.OnError(a)},function(){b.OnCompleted()}))})},SkipWhile:function(a){var c=this;return b(function(b){var d=false;return c.Subscribe(new g(function(c){if(!d)try{d=!a(c)}catch(e){b.OnError(e);return}d&&b.OnNext(c)},function(a){b.OnError(a)},function(){b.OnCompleted()}))})},Skip:function(a){var c=this;return b(function(b){var d=a;return c.Subscribe(new g(function(a){d--<=0&&b.OnNext(a)},function(a){b.OnError(a)},function(){b.OnCompleted()}))})},SelectMany:function(a){return this.Select(a).MergeObservable()},TimeInterval:function(b){if(b===a)b=f;var c=this;return q(function(){var a=b.Now();return c.Select(function(d){var c=b.Now(),e=c-a;a=c;return{Interval:e,Value:d}})})},RemoveInterval:F,Timestamp:function(b){if(b===a)b=f;return this.Select(function(a){return{Timestamp:b.Now(),Value:a}})},RemoveTimestamp:F,Materialize:function(){var a=this;return b(function(b){return a.Subscribe(new g(function(a){b.OnNext(new l("N",a))},function(a){b.OnNext(new l("E",a));b.OnCompleted()},function(){b.OnNext(new l("C"));b.OnCompleted()}))})},Dematerialize:function(){return this.SelectMany(function(a){return a})},AsObservable:function(){var a=this;return b(function(b){return a.Subscribe(b)})},Delay:function(f,c){if(c===a)c=i;var g=this;return b(function(j){var b=[],h=false,i=new e,k=g.Materialize().Timestamp().Subscribe(function(d){if(d.Value.Kind=="E"){j.OnError(d.Value.Value);b=[];h&&i.Dispose();return}b.push({Timestamp:c.Now()+f,Value:d.Value});if(!h){i.Replace(c.ScheduleRecursiveWithTime(function(e){var d;do{d=a;if(b.length>0&&b[0].Timestamp<=c.Now())d=b.shift().Value;d!==a&&d.Accept(j)}while(d!==a);if(b.length>0){e(Math.max(0,b[0].Timestamp-c.Now()));h=true}else h=false},f));h=true}});return new d(k,i)})},Throttle:function(f,c){if(c===a)c=i;var g=this;return b(function(h){var j,a=false,i=new e,b=0,k=g.Subscribe(function(d){a=true;j=d;b++;var e=b;i.Replace(c.ScheduleWithTime(function(){a&&b==e&&h.OnNext(j);a=false},f))},function(c){i.Dispose();h.OnError(c);a=false;b++},function(){i.Dispose();a&&h.OnNext(j);h.OnCompleted();a=false;b++});return new d(k,i)})},Timeout:function(g,f,c){if(c===a)c=i;if(f===a)f=I("Timeout",c);var h=this;return b(function(i){var j=new e,k=new e,b=0,l=b,a=false;k.Replace(c.ScheduleWithTime(function(){a=b==l;a&&j.Replace(f.Subscribe(i))},g));j.Replace(h.Subscribe(function(e){var d=0;if(!a){b++;d=b;i.OnNext(e);k.Replace(c.ScheduleWithTime(function(){a=b==d;a&&j.Replace(f.Subscribe(i))},g))}},function(c){if(!a){b++;i.OnError(c)}},function(){if(!a){b++;i.OnCompleted()}}));return new d(j,k)})},Sample:function(e,c){if(c===a)c=i;var f=this;return b(function(a){var g=false,h,i=false,b=new d;b.Add(ab(e,c).Subscribe(function(){if(g){a.OnNext(h);g=false}i&&a.OnCompleted()},function(b){a.OnError(b)},function(){a.OnCompleted()}));b.Add(f.Subscribe(function(a){g=true;h=a},function(c){a.OnError(c);b.Dispose()},function(){i=true}));return b})},Repeat:function(c,g){var h=this;if(g===a)g=f;if(c===a)c=-1;return b(function(a){var b=c,f=new e,i=new d(f),j=function(c){f.Replace(h.Subscribe(function(b){a.OnNext(b)},function(b){a.OnError(b)},function(){if(b>0){b--;if(b==0){a.OnCompleted();return}}c()}))};i.Add(g.ScheduleRecursive(j));return i})},Retry:function(c,g){var h=this;if(g===a)g=f;if(c===a)c=-1;return b(function(a){var b=c,f=new e,i=new d(f),j=function(c){f.Replace(h.Subscribe(function(b){a.OnNext(b)},function(d){if(b>0){b--;if(b==0){a.OnError(d);return}}c()},function(){a.OnCompleted()}))};i.Add(g.ScheduleRecursive(j));return i})},BufferWithTime:function(f,e,c){if(c===a)c=i;if(e===a)e=f;var g=this;return b(function(b){var a=new r,k=c.Now(),l=function(){for(var c=[],b=0;b=0&&c.push(d.Value)}return c},h=new d,i=function(a){b.OnError(a)},j=function(){b.OnNext(l());b.OnCompleted()};h.Add(g.Subscribe(function(b){a.Add({Value:b,Timestamp:c.Now()})},i,j));h.Add(C(f,e,c).Subscribe(function(){var g=l(),d=c.Now()+e-f;while(a.GetCount()>0&&a.GetItem(0).Timestamp-d<=0)a.RemoveAt(0);b.OnNext(g);k=d},i,j));return h})},BufferWithTimeOrCount:function(f,g,c){if(c===a)c=i;var h=this;return b(function(j){var b=0,a=new r,k=function(){j.OnNext(a.ToArray());a.Clear();b++},l=new e,i;i=function(a){var d=c.ScheduleWithTime(function(){var c=false,d=0;if(a==b){k();d=b;c=true}c&&i(d)},f);l.Replace(d)};i(b);var m=h.Subscribe(function(e){var c=false,d=0;a.Add(e);if(a.GetCount()==g){k();d=b;c=true}c&&i(d)},function(b){j.OnError(b);a.Clear()},function(){j.OnNext(a.ToArray());b++;j.OnCompleted();a.Clear()});return new d(m,l)})},BufferWithCount:function(d,c){if(c===a)c=d;var e=this;return b(function(b){var a=[],f=0;return e.Subscribe(function(j){if(f==0)a.push(j);else f--;var g=a.length;if(g==d){var h=a;a=[];for(var i=Math.min(c,g),e=i;e0&&b.OnNext(a);b.OnCompleted()})})},StartWith:function(c,e){if(!(c instanceof Array))c=[c];if(e===a)e=f;var g=this;return b(function(f){var a=new d,b=0;a.Add(e.ScheduleRecursive(function(d){if(ba&&b.OnNext(d.shift())},function(a){b.OnError(a)},function(){b.OnCompleted()})})},TakeLast:function(a){var c=this;return b(function(d){var b=[];return c.Subscribe(function(c){b.push(c);b.length>a&&b.shift()},function(a){d.OnError(a)},function(){while(b.length>0)d.OnNext(b.shift());d.OnCompleted()})})}};var Q=c.Merge=function(c,b){if(b===a)b=f;return R(c,b).MergeObservable()},G=c.Concat=function(g,c){if(c===a)c=f;return b(function(a){var f=new e,b=0,h=c.ScheduleRecursive(function(d){if(b0){e--;if(e==0){a.OnCompleted();return}}b()})})},X=c.Generate=function(d,e,g,h,c){if(c===a)c=f;return b(function(b){var a=d,f=true;return c.ScheduleRecursive(function(i){var c=false,d;try{if(f)f=false;else a=g(a);c=e(a);if(c)d=h(a)}catch(j){b.OnError(j);return}if(c){b.OnNext(d);i()}else b.OnCompleted()})})},nb=c.GenerateWithTime=function(d,e,f,g,h,c){if(c===a)c=i;return new b(function(i){var a=d,l=true,b=false,j,k;return c.ScheduleRecursiveWithTime(function(c){b&&i.OnNext(j);try{if(l)l=false;else a=f(a);b=e(a);if(b){j=g(a);k=h(a)}}catch(d){i.OnError(d);return}if(b)c(k);else i.OnCompleted()},0)})},Y=c.OnErrorResumeNext=function(g,c){if(c===a)c=f;return b(function(b){var f=new e,a=0,h=c.ScheduleRecursive(function(c){if(a0,g=function(c,a){b.Add({Value:new l(c,a),Timestamp:e.Now()})};this.A=function(){if(h!==a)while(b.GetCount()>h)b.RemoveAt(0);if(k)while(b.GetCount()>0&&e.Now()-b.GetItem(0).Timestamp>i)b.RemoveAt(0)};this.OnNext=function(d){if(!f){for(var b=c.ToArray(),a=0;a99?Math.round(l/10):l),t:g<12?"a":"p",tt:g<12?"am":"pm",T:g<12?"A":"P",TT:g<12?"AM":"PM",Z:k?"UTC":(String(e).match(c)||[""]).pop().replace(b,""),o:(n>0?"-":"+")+a(Math.floor(Math.abs(n)/60)*100+Math.abs(n)%60,4),S:(["th","st","nd","rd"])[j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(d,function(a){return a in o?o[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)};(function(){var a=8,m="",l=0,i=function(c){for(var d=[],f=(1<>5]|=(c.charCodeAt(b/a)&f)<<32-a-b%32;return d},h=function(c){for(var d=[],e=c.length,b,a=0;a>3]|=b<<24-4*(a%8);else return"INVALID HEX STRING"}return d},g=function(d){for(var e=l?"0123456789ABCDEF":"0123456789abcdef",c="",f=d.length*4,b,a=0;a>2]>>(3-a%4)*8;c+=e.charAt(b>>4&15)+e.charAt(b&15)}return c},f=function(b){for(var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="",f=b.length*4,c,e,a=0;a>2]>>8*(3-a%4)&255)<<16|(b[a+1>>2]>>8*(3-(a+1)%4)&255)<<8|b[a+2>>2]>>8*(3-(a+2)%4)&255;for(c=0;c<4;c+=1)if(a*8+c*6<=b.length*32)d+=g.charAt(e>>6*(3-c)&63);else d+=m}return d},b=function(b,a){return b<>>32-a},j=function(a,b,c){return a^b^c},o=function(a,b,c){return a&b^~a&c},n=function(a,b,c){return a&b^a&c^b&c},c=function(b,c){var a=(b&65535)+(c&65535),d=(b>>>16)+(c>>>16)+(a>>>16);return(d&65535)<<16|a&65535},d=function(a,b,c,d,e){var f=(a&65535)+(b&65535)+(c&65535)+(d&65535)+(e&65535),g=(a>>>16)+(b>>>16)+(c>>>16)+(d>>>16)+(e>>>16)+(f>>>16);return(g&65535)<<16|f&65535},e=function(p,q){var f=[],g,h,i,k,l,m,r,a,t,e=[1732584193,4023233417,2562383102,271733878,3285377520],s=[1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782];p[q>>5]|=128<<24-q%32;p[(q+65>>9<<4)+15]=q;t=p.length;for(r=0;rd/8)b[15]&=4294967040;for(c=0;c<=15;c+=1){m[c]=b[c]^909522486;n[c]=b[c]^1549556828}k=e(m.concat(this.strToHash),512+this.strBinLen);k=e(n.concat(k),672);return l(k)}};window.jsSHA=k})();ItemViewModel=function(a){this.item=ko.observable(a);this.types=ko.observableArray([]);this.typesCaption=ko.observable("Please Select...");this.inedit=ko.observable(false);this.inprogress=ko.observable(false);this.selected=ko.observable(false)};jSaaspose._defaultModel={inedit:false,inprogress:false,selected:false,changed:false};ko.createViewModel=function(b){var c=$.extend({},b,jSaaspose._defaultModel),a=ko.mapping.fromJS(c);for(prop in b)a[prop].subscribe&&prop!=="changed"&&a[prop].subscribe(function(){a.changed(true)}.bind(a));a.reset=function(e){for(var d=0;d
',item:'