/*! AdminLTE app.js * ================ * Main JS application file for AdminLTE v2. This file * should be included in all pages. It controls some layout * options and implements exclusive AdminLTE plugins. * * @Author Almsaeed Studio * @Support * @Email * @version 2.3.8 * @license MIT */ function _init(){"use strict";$.AdminLTE.layout={activate:function(){var e=this;e.fix(),e.fixSidebar(),$("body, html, .wrapper").css("height","auto"),$(window,".wrapper").resize(function(){e.fix(),e.fixSidebar()})},fix:function(){$(".layout-boxed > .wrapper").css("overflow","hidden");var e=$(".main-footer").outerHeight()||0,t=$(".main-header").outerHeight()+e,n=$(window).height(),r=$(".sidebar").height()||0;if($("body").hasClass("fixed"))$(".content-wrapper, .right-side").css("min-height",n-e);else{var o;n>=r?($(".content-wrapper, .right-side").css("min-height",n-t),o=n-t):($(".content-wrapper, .right-side").css("min-height",r),o=r);var i=$($.AdminLTE.options.controlSidebarOptions.selector);void 0!==i&&i.height()>o&&$(".content-wrapper, .right-side").css("min-height",i.height())}},fixSidebar:function(){return $("body").hasClass("fixed")?(void 0===$.fn.slimScroll&&window.console&&window.console.error("Error: the fixed layout requires the slimscroll plugin!"),void($.AdminLTE.options.sidebarSlimScroll&&void 0!==$.fn.slimScroll&&($(".sidebar").slimScroll({destroy:!0}).height("auto"),$(".sidebar").slimScroll({height:$(window).height()-$(".main-header").height()+"px",color:"rgba(0,0,0,0.2)",size:"3px"})))):void(void 0!==$.fn.slimScroll&&$(".sidebar").slimScroll({destroy:!0}).height("auto"))}},$.AdminLTE.pushMenu={activate:function(e){var t=$.AdminLTE.options.screenSizes;$(document).on("click",e,function(e){e.preventDefault(),$(window).width()>t.sm-1?$("body").hasClass("sidebar-collapse")?$("body").removeClass("sidebar-collapse").trigger("expanded.pushMenu"):$("body").addClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").hasClass("sidebar-open")?$("body").removeClass("sidebar-open").removeClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").addClass("sidebar-open").trigger("expanded.pushMenu")}),$(".content-wrapper").click(function(){$(window).width()<=t.sm-1&&$("body").hasClass("sidebar-open")&&$("body").removeClass("sidebar-open")}),($.AdminLTE.options.sidebarExpandOnHover||$("body").hasClass("fixed")&&$("body").hasClass("sidebar-mini"))&&this.expandOnHover()},expandOnHover:function(){var e=this,t=$.AdminLTE.options.screenSizes.sm-1;$(".main-sidebar").hover(function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-collapse")&&$(window).width()>t&&e.expand()},function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-expanded-on-hover")&&$(window).width()>t&&e.collapse()})},expand:function(){$("body").removeClass("sidebar-collapse").addClass("sidebar-expanded-on-hover")},collapse:function(){$("body").hasClass("sidebar-expanded-on-hover")&&$("body").removeClass("sidebar-expanded-on-hover").addClass("sidebar-collapse")}},$.AdminLTE.tree=function(e){var t=this,n=$.AdminLTE.options.animationSpeed;$(document).off("click",e+" li a").on("click",e+" li a",function(e){var r=$(this),o=r.next();if(o.is(".treeview-menu")&&o.is(":visible")&&!$("body").hasClass("sidebar-collapse"))o.slideUp(n,function(){o.removeClass("menu-open")}),o.parent("li").removeClass("active");else if(o.is(".treeview-menu")&&!o.is(":visible")){var i=r.parents("ul").first(),a=i.find("ul:visible").slideUp(n);a.removeClass("menu-open");var s=r.parent("li");o.slideDown(n,function(){o.addClass("menu-open"),i.find("li.active").removeClass("active"),s.addClass("active"),t.layout.fix()})}o.is(".treeview-menu")&&e.preventDefault()})},$.AdminLTE.controlSidebar={activate:function(){var e=this,t=$.AdminLTE.options.controlSidebarOptions,n=$(t.selector);$(t.toggleBtnSelector).on("click",function(r){r.preventDefault(),n.hasClass("control-sidebar-open")||$("body").hasClass("control-sidebar-open")?e.close(n,t.slide):e.open(n,t.slide)});var r=$(".control-sidebar-bg");e._fix(r),$("body").hasClass("fixed")?e._fixForFixed(n):$(".content-wrapper, .right-side").height() .box-body, > .box-footer, > form >.box-body, > form > .box-footer");n.hasClass("collapsed-box")?(e.children(":first").removeClass(t.icons.open).addClass(t.icons.collapse),r.slideDown(t.animationSpeed,function(){n.removeClass("collapsed-box")})):(e.children(":first").removeClass(t.icons.collapse).addClass(t.icons.open),r.slideUp(t.animationSpeed,function(){n.addClass("collapsed-box")}))},remove:function(e){e.parents(".box").first().slideUp(this.animationSpeed)}}}function $notificationProvider(){function e(e,n,r){function o(n,r){function i(){r=angular.extend({focusWindowOnClick:!0},t.options||{},r);try{a.baseNotification=new e.Notification(n,r)}catch(e){return}r.delay&&setTimeout(angular.bind(a,a.close),r.delay),r.focusWindowOnClick&&a.$on("click",function(){e.focus()}),a._events.forEach(function(e){a.$on.apply(a,e)}),a._events=[]}if(!e.Notification)return!1;r=r||{};var a=this;if(this._events=[],"granted"===e.Notification.permission)return i();"denied"!==e.Notification.permission&&o.requestPermission().then(i)}function i(e,t){return new o(e,t)}return o.prototype.$on=function(e,t){function r(){var e=arguments;n.$apply(function(){t.apply(o,e)})}var o=this;return this.baseNotification?(this.baseNotification.addEventListener(e,r),function(){this.baseNotification.removeListener(event,r)}):this._events.push([e,t])},o.prototype.close=function(){this.baseNotification&&this.baseNotification.close()},o.isSupported=!!e.Notification,o.getPermission=function(){return e.Notification?e.Notification.permission:void 0},o.requestPermission=function(){return r(function(t,n){if(!e.Notification)return n();e.Notification.requestPermission(function(n){e.Notification.permission=e.Notification.permission||n,t(e.Notification.permission)})})},i.isSupported=o.isSupported,i.getPermission=o.getPermission,i.requestPermission=o.requestPermission,i}var t=this;this.$get=["$window","$rootScope","$q",e],this.setOptions=function(e){this.options=e}}if("undefined"==typeof jQuery)throw new Error("AdminLTE requires jQuery");$.AdminLTE={},$.AdminLTE.options={navbarMenuSlimscroll:!0,navbarMenuSlimscrollWidth:"3px",navbarMenuHeight:"200px",animationSpeed:500,sidebarToggleSelector:"[data-toggle='offcanvas']",sidebarPushMenu:!0,sidebarSlimScroll:!0,sidebarExpandOnHover:!1,enableBoxRefresh:!0,enableBSToppltip:!0,BSTooltipSelector:"[data-toggle='tooltip']",enableFastclick:!1,enableControlTreeView:!0,enableControlSidebar:!0,controlSidebarOptions:{toggleBtnSelector:"[data-toggle='control-sidebar']",selector:".control-sidebar",slide:!0},enableBoxWidget:!0,boxWidgetOptions:{boxWidgetIcons:{collapse:"fa-minus",open:"fa-plus",remove:"fa-times"},boxWidgetSelectors:{remove:'[data-widget="remove"]',collapse:'[data-widget="collapse"]'}},directChat:{enable:!0,contactToggleSelector:'[data-widget="chat-pane-toggle"]'},colors:{lightBlue:"#3c8dbc",red:"#f56954",green:"#00a65a",aqua:"#00c0ef",yellow:"#f39c12",blue:"#0073b7",navy:"#001F3F",teal:"#39CCCC",olive:"#3D9970",lime:"#01FF70",orange:"#FF851B",fuchsia:"#F012BE",purple:"#8E24AA",maroon:"#D81B60",black:"#222222",gray:"#d2d6de"},screenSizes:{xs:480,sm:768,md:992,lg:1200}},$(function(){"use strict";$("body").removeClass("hold-transition"),"undefined"!=typeof AdminLTEOptions&&$.extend(!0,$.AdminLTE.options,AdminLTEOptions);var e=$.AdminLTE.options;_init(),$.AdminLTE.layout.activate(),e.enableControlTreeView&&$.AdminLTE.tree(".sidebar"),e.enableControlSidebar&&$.AdminLTE.controlSidebar.activate(),e.navbarMenuSlimscroll&&void 0!==$.fn.slimscroll&&$(".navbar .menu").slimscroll({height:e.navbarMenuHeight,alwaysVisible:!1,size:e.navbarMenuSlimscrollWidth}).css("width","100%"),e.sidebarPushMenu&&$.AdminLTE.pushMenu.activate(e.sidebarToggleSelector),e.enableBSToppltip&&$("body").tooltip({selector:e.BSTooltipSelector,container:"body"}),e.enableBoxWidget&&$.AdminLTE.boxWidget.activate(),e.enableFastclick&&"undefined"!=typeof FastClick&&FastClick.attach(document.body),e.directChat.enable&&$(document).on("click",e.directChat.contactToggleSelector,function(){$(this).parents(".direct-chat").first().toggleClass("direct-chat-contacts-open")}),$('.btn-group[data-toggle="btn-toggle"]').each(function(){var e=$(this);$(this).find(".btn").on("click",function(t){e.find(".btn.active").removeClass("active"),$(this).addClass("active"),t.preventDefault()})})}),function(e){"use strict";e.fn.boxRefresh=function(t){function n(e){e.append(i),o.onLoadStart.call(e)}function r(e){e.find(i).remove(),o.onLoadDone.call(e)}var o=e.extend({trigger:".refresh-btn",source:"",onLoadStart:function(e){return e},onLoadDone:function(e){return e}},t),i=e('
');return this.each(function(){if(""===o.source)return void(window.console&&window.console.log("Please specify a source first - boxRefresh()"));var t=e(this);t.find(o.trigger).first().on("click",function(e){e.preventDefault(),n(t),t.find(".box-body").load(o.source,function(){r(t)})})})}}(jQuery),function(e){"use strict";e.fn.activateBox=function(){e.AdminLTE.boxWidget.activate(this)},e.fn.toggleBox=function(){var t=e(e.AdminLTE.boxWidget.selectors.collapse,this);e.AdminLTE.boxWidget.collapse(t)},e.fn.removeBox=function(){var t=e(e.AdminLTE.boxWidget.selectors.remove,this);e.AdminLTE.boxWidget.remove(t)}}(jQuery),function(e){"use strict";e.fn.todolist=function(t){var n=e.extend({onCheck:function(e){return e},onUncheck:function(e){return e}},t);return this.each(function(){void 0!==e.fn.iCheck?(e("input",this).on("ifChecked",function(){var t=e(this).parents("li").first();t.toggleClass("done"),n.onCheck.call(t)}),e("input",this).on("ifUnchecked",function(){var t=e(this).parents("li").first();t.toggleClass("done"),n.onUncheck.call(t)})):e("input",this).on("change",function(){var t=e(this).parents("li").first();t.toggleClass("done"),e("input",t).is(":checked")?n.onCheck.call(t):n.onUncheck.call(t)})})}}(jQuery),/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Version: 1.3.8 * */ function(e){e.fn.extend({slimScroll:function(n){var r=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},n);return this.each(function(){function o(t){if(u){t=t||window.event;var n=0;t.wheelDelta&&(n=-t.wheelDelta/120),t.detail&&(n=t.detail/3),e(t.target||t.srcTarget||t.srcElement).closest("."+r.wrapperClass).is(y.parent())&&i(n,!0),t.preventDefault&&!v&&t.preventDefault(),v||(t.returnValue=!1)}}function i(e,t,n){v=!1;var o=y.outerHeight()-C.outerHeight();t&&(t=parseInt(C.css("top"))+e*parseInt(r.wheelStep)/100*C.outerHeight(),t=Math.min(Math.max(t,0),o),t=0=y.outerHeight()?v=!0:(C.stop(!0,!0).fadeIn("fast"),r.railVisible&&w.stop(!0,!0).fadeIn("fast"))}function l(){r.alwaysVisible||(f=setTimeout(function(){r.disableFadeOut&&u||c||d||(C.fadeOut("slow"),w.fadeOut("slow"))},1e3))}var u,c,d,f,p,h,g,m,v=!1,y=e(this);if(y.parent().hasClass(r.wrapperClass)){var b=y.scrollTop(),C=y.siblings("."+r.barClass),w=y.siblings("."+r.railClass);if(a(),e.isPlainObject(n)){if("height"in n&&"auto"==n.height){y.parent().css("height","auto"),y.css("height","auto");var S=y.parent().parent().height();y.parent().css("height",S),y.css("height",S)}else"height"in n&&(S=n.height,y.parent().css("height",S),y.css("height",S));if("scrollTo"in n)b=parseInt(r.scrollTo);else if("scrollBy"in n)b+=parseInt(r.scrollBy);else if("destroy"in n)return C.remove(),w.remove(),void y.unwrap();i(b,!1,!0)}}else if(!(e.isPlainObject(n)&&"destroy"in n)){r.height="auto"==r.height?y.parent().height():r.height,b=e("
").addClass(r.wrapperClass).css({position:"relative",overflow:"hidden",width:r.width,height:r.height}),y.css({overflow:"hidden",width:r.width,height:r.height});var w=e("
").addClass(r.railClass).css({width:r.size,height:"100%",position:"absolute",top:0,display:r.alwaysVisible&&r.railVisible?"block":"none","border-radius":r.railBorderRadius,background:r.railColor,opacity:r.railOpacity,zIndex:90}),C=e("
").addClass(r.barClass).css({background:r.color,width:r.size,position:"absolute",top:0,opacity:r.opacity,display:r.alwaysVisible?"block":"none","border-radius":r.borderRadius,BorderRadius:r.borderRadius,MozBorderRadius:r.borderRadius,WebkitBorderRadius:r.borderRadius,zIndex:99}),S="right"==r.position?{right:r.distance}:{left:r.distance};w.css(S),C.css(S),y.wrap(b),y.parent().append(C),y.parent().append(w),r.railDraggable&&C.bind("mousedown",function(n){var r=e(document);return d=!0,t=parseFloat(C.css("top")),pageY=n.pageY,r.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,C.css("top",currTop),i(0,C.position().top,!1)}),r.bind("mouseup.slimscroll",function(e){d=!1,l(),r.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(e){return e.stopPropagation(),e.preventDefault(),!1}),w.hover(function(){s()},function(){l()}),C.hover(function(){c=!0},function(){c=!1}),y.hover(function(){u=!0,s(),l()},function(){u=!1,l()}),y.bind("touchstart",function(e,t){e.originalEvent.touches.length&&(p=e.originalEvent.touches[0].pageY)}),y.bind("touchmove",function(e){v||e.originalEvent.preventDefault(),e.originalEvent.touches.length&&(i((p-e.originalEvent.touches[0].pageY)/r.touchScrollStep,!0),p=e.originalEvent.touches[0].pageY)}),a(),"bottom"===r.start?(C.css({top:y.outerHeight()-C.outerHeight()}),i(0,!0)):"top"!==r.start&&(i(e(r.start).position().top,null,!0),r.alwaysVisible||C.hide()),window.addEventListener?(this.addEventListener("DOMMouseScroll",o,!1),this.addEventListener("mousewheel",o,!1)):document.attachEvent("onmousewheel",o)}}),this}}),e.fn.extend({slimscroll:e.fn.slimScroll})}(jQuery),function(e,t,n){"use strict";!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return o(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},l=function(e){var n=t.createElement("div");return n.appendChild(t.createTextNode(e)),n.innerHTML},u=function(e){e.style.opacity="",e.style.display="block"},c=function(e){if(e&&!e.length)return u(e);for(var t=0;t0?setTimeout(r,t):e.style.display="none"});r()},v=function(n){if("function"==typeof MouseEvent){var r=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(r)}else if(t.createEvent){var o=t.createEvent("MouseEvents");o.initEvent("click",!1,!1),n.dispatchEvent(o)}else t.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},y=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)};o.hasClass=i,o.addClass=a,o.removeClass=s,o.escapeHtml=l,o._show=u,o.show=c,o._hide=d,o.hide=f,o.isDescendant=p,o.getTopMargin=h,o.fadeIn=g,o.fadeOut=m,o.fireClick=v,o.stopEventPropagation=y},{}],5:[function(t,r,o){Object.defineProperty(o,"__esModule",{value:!0});var i=t("./handle-dom"),a=t("./handle-swal-dom"),s=function(t,r,o){var s=t||e.event,l=s.keyCode||s.which,u=o.querySelector("button.confirm"),c=o.querySelector("button.cancel"),d=o.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(l)){for(var f=s.target||s.srcElement,p=-1,h=0;h
\n \n \n \n \n
\n \n \n
\n \n \n\n
\n
\n

Title

\n

Text

\n
\n \n
\n
\n
!
\n

Not valid!

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
',t.exports=n.default},{}],8:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var o=e("./utils"),i=e("./handle-swal-dom"),a=e("./handle-dom"),s=["error","warning","info","success","input","prompt"],l=function(e){var t=i.getModal(),r=t.querySelector("h2"),l=t.querySelector("p"),u=t.querySelector("button.cancel"),c=t.querySelector("button.confirm");if(r.innerHTML=e.html?e.title:a.escapeHtml(e.title).split("\n").join("
"),l.innerHTML=e.html?e.text:a.escapeHtml(e.text||"").split("\n").join("
"),e.text&&a.show(l),e.customClass)a.addClass(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var d=t.getAttribute("data-custom-class");a.removeClass(t,d),t.setAttribute("data-custom-class","")}if(a.hide(t.querySelectorAll(".sa-icon")),e.type&&!o.isIE8()){var f=function(){for(var r=!1,o=0;or;r++)n=parseInt(e.substr(2*r,2),16),n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16),o+=("00"+n).substr(n.length);return o};r.extend=o,r.hexToRgb=i,r.isIE8=a,r.logStr=s,r.colorLuminance=l},{}]},{},[1]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document),function(e){"use strict";var t='[data-toggle="context"]',n=function(t,n){this.$element=e(t),this.before=n.before||this.before,this.onItem=n.onItem||this.onItem,this.scopes=n.scopes||null,n.target&&this.$element.data("target",n.target),this.listen()};n.prototype={constructor:n,show:function(t){var n,r,o,i={relatedTarget:this,target:t.currentTarget};if(!this.isDisabled()&&(this.closemenu(),!1!==this.before.call(this,t,e(t.currentTarget))))return n=this.getMenu(),n.trigger(e.Event("show.bs.context",i)),r=this.getPosition(t,n),o="li:not(.divider)",n.attr("style","").css(r).addClass("open").on("click.context.data-api",o,e.proxy(this.onItem,this,e(t.currentTarget))).trigger("shown.bs.context",i),e("html").on("click.context.data-api",n.selector,e.proxy(this.closemenu,this)),!1},closemenu:function(t){var n,r,o;n=this.getMenu(),n.hasClass("open")&&(o={relatedTarget:this},n.trigger(e.Event("hide.bs.context",o)),r="li:not(.divider)",n.removeClass("open").off("click.context.data-api",r).trigger("hidden.bs.context",o),e("html").off("click.context.data-api",n.selector),t&&t.stopPropagation())},keydown:function(e){27==e.which&&this.closemenu(e)},before:function(e){return!0},onItem:function(e){return!0},listen:function(){this.$element.on("contextmenu.context.data-api",this.scopes,e.proxy(this.show,this)),e("html").on("click.context.data-api",e.proxy(this.closemenu,this)),e("html").on("keydown.context.data-api",e.proxy(this.keydown,this))},destroy:function(){this.$element.off(".context.data-api").removeData("context"),e("html").off(".context.data-api")},isDisabled:function(){return this.$element.hasClass("disabled")||this.$element.attr("disabled")},getMenu:function(){var t,n=this.$element.data("target");return n||(n=this.$element.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),t=e(n),t&&t.length?t:this.$element.find(n)},getPosition:function(t,n){var r,o,i,a=t.clientX,s=t.clientY,l=e(window).width(),u=e(window).height(),c=n.find(".dropdown-menu").outerWidth(),d=n.find(".dropdown-menu").outerHeight(),f={position:"absolute","z-index":9999};return r=s+d>u?{top:s-d+e(window).scrollTop()}:{top:s+e(window).scrollTop()},o=a+c>l&&a-c>0?{left:a-c+e(window).scrollLeft()}:{left:a+e(window).scrollLeft()},i=n.offsetParent().offset(),o.left=o.left-i.left,r.top=r.top-i.top,e.extend(f,r,o)}},e.fn.contextmenu=function(t,r){return this.each(function(){var o=e(this),i=o.data("context"),a="object"==typeof t&&t;i||o.data("context",i=new n(o,a)),"string"==typeof t&&i[t].call(i,r)})},e.fn.contextmenu.Constructor=n,e(document).on("contextmenu.context.data-api",function(){e(t).each(function(){var t=e(this).data("context");t&&t.closemenu()})}).on("contextmenu.context.data-api",t,function(t){e(this).contextmenu("show",t),t.preventDefault(),t.stopPropagation()})}(jQuery),function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof module&&module.exports?module.exports=t():t()}(0,function(){function e(e){"use strict";var t=e.storageKey(),n=e.storage(),r=function(){var r=e.preferredLanguage();angular.isString(r)?e.use(r):n.put(t,e.use())};r.displayName="fallbackFromIncorrectStorageValue",n?n.get(t)?e.use(n.get(t)).catch(r):r():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function t(e,t,n,r){"use strict";var o,i,a,s,l,u,c,d,f,p,h,g,m,v,y,b,C={},w=[],S=e,T=[],$="translate-cloak",x=!1,k=!1,E=".",A=!1,O=!1,B=0,L=!0,M="default",P={default:function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():t},bcp47:function(e){var t=(e||"").split("_").join("-"),n=t.split("-");switch(n.length){case 1:n[0]=n[0].toLowerCase();break;case 2:n[0]=n[0].toLowerCase(),4===n[1].length?n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase():n[1]=n[1].toUpperCase();break;case 3:n[0]=n[0].toLowerCase(),n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase(),n[2]=n[2].toUpperCase();break;default:return t}return n.join("-")},"iso639-1":function(e){return(e||"").split("_").join("-").split("-")[0].toLowerCase()}},N=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var e,n,o=t.$get().navigator,i=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(o.languages))for(e=0;e-1)return w[r];if(i){var a;for(var s in i)if(i.hasOwnProperty(s)){var l=!1,u=Object.prototype.hasOwnProperty.call(i,s)&&j(s)===j(e);if("*"===s.slice(-1)&&(l=j(s.slice(0,-1))===j(e.slice(0,s.length-1))),(u||l)&&(a=i[s],_(t,j(a))>-1))return a}}var c=e.split("_");return c.length>1&&_(t,j(c[0]))>-1?c[0]:void 0}},R=function(e,t){if(!e&&!t)return C;if(e&&!t){if(angular.isString(e))return C[e]}else angular.isObject(C[e])||(C[e]={}),angular.extend(C[e],z(t));return this};this.translations=R,this.cloakClassName=function(e){return e?($=e,this):$},this.nestedObjectDelimeter=function(e){return e?(E=e,this):E};var z=function(e,t,n,r){var o,i,a;t||(t=[]),n||(n={});for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a=e[o],angular.isObject(a)?z(a,t.concat(o),n,o):(i=t.length?""+t.join(E)+E+o:o,t.length&&o===r&&(n[""+t.join(E)]="@:"+i),n[i]=a));return n};z.displayName="flatObject",this.addInterpolation=function(e){return T.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return p=e,this},this.useSanitizeValueStrategy=function(e){return n.useStrategy(e),this},this.preferredLanguage=function(e){return e?(U(e),this):o};var U=function(e){return e&&(o=e),o};this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(m=e,this):m},this.translationNotFoundIndicatorRight=function(e){return e?(v=e,this):v},this.fallbackLanguage=function(e){return q(e),this};var q=function(e){return e?(angular.isString(e)?(s=!0,a=[e]):angular.isArray(e)&&(s=!1,a=e),angular.isString(o)&&_(a,o)<0&&a.push(o),this):s?a[0]:a};this.use=function(e){if(e){if(!C[e]&&!h)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return l=e,this}return l},this.resolveClientLocale=function(){return D()};var W=function(e){return e?(S=e,this):d?d+S:S};this.storageKey=W,this.useUrlLoader=function(e,t){return this.useLoader("$translateUrlLoader",angular.extend({url:e},t))},this.useStaticFilesLoader=function(e){return this.useLoader("$translateStaticFilesLoader",e)},this.useLoader=function(e,t){return h=e,g=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return c=e,this},this.storagePrefix=function(e){return e?(d=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return f=e,this},this.usePostCompiling=function(e){return x=!!e,this},this.forceAsyncReload=function(e){return k=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},M=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():D();return o=w.length?F(t)||t:t,this},this.registerAvailableLanguageKeys=function(e,t){return e?(w=e,t&&(i=t),this):w},this.useLoaderCache=function(e){return!1===e?y=void 0:!0===e?y=!0:void 0===e?y="$translationCache":e&&(y=e),this},this.directivePriority=function(e){return void 0===e?B:(B=e,this)},this.statefulFilter=function(e){return void 0===e?L:(L=e,this)},this.postProcess=function(e){return b=e||void 0,this},this.keepContent=function(e){return O=!!e,this},this.$get=["${mbroot}/var/log","$injector","$rootScope","$q",function(e,t,n,r){var i,d,M,P=t.get(p||"$translateDefaultInterpolation"),N=!1,j={},H={},V=function(e,t,n,s,u,f){!l&&o&&(l=o);var p=u&&u!==l?F(u)||u:l;if(u&&ue(u),angular.isArray(e))return function(e){for(var o={},i=[],a=0,l=e.length;a0?M:d,e,t,n,r,o)},oe=function(e,t,n,r){return ne(M>0?M:d,e,t,n,r)},ie=function(e,t,n,o,i,s){var l=r.defer(),u=i?C[i]:C,c=n?j[n]:P;if(u&&Object.prototype.hasOwnProperty.call(u,e)&&null!==u[e]){var d=u[e];if("@:"===d.substr(0,2))V(d.substr(2),t,n,o,i,s).then(l.resolve,l.reject);else{var p=c.interpolate(d,t,"service",s,e);p=le(e,d,p,t,i),l.resolve(p)}}else{var h;f&&!N&&(h=ee(e,t,o)),i&&a&&a.length?re(e,t,c,o,s).then(function(e){l.resolve(e)},function(e){l.reject(X(e))}):f&&!N&&h?o?l.resolve(o):l.resolve(h):o?l.resolve(o):l.reject(X(e))}return l.promise},ae=function(e,t,n,r,o){var i,s=r?C[r]:C,l=P;if(j&&Object.prototype.hasOwnProperty.call(j,n)&&(l=j[n]),s&&Object.prototype.hasOwnProperty.call(s,e)&&null!==s[e]){var u=s[e];"@:"===u.substr(0,2)?i=ae(u.substr(2),t,n,r,o):(i=l.interpolate(u,t,"filter",o,e),i=le(e,u,i,t,r,o))}else{var c;f&&!N&&(c=ee(e,t,o)),r&&a&&a.length?(d=0,i=oe(e,t,l,o)):i=f&&!N&&c?c:X(e)}return i},se=function(e){u===e&&(u=void 0),H[e]=void 0},le=function(e,n,r,o,i,a){var s=b;return s&&("string"==typeof s&&(s=t.get(s)),s)?s(e,n,r,o,i,a):r},ue=function(e){C[e]||!h||H[e]||(H[e]=K(e).then(function(e){return R(e.key,e.table),e}))};V.preferredLanguage=function(e){return e&&U(e),o},V.cloakClassName=function(){return $},V.nestedObjectDelimeter=function(){return E},V.fallbackLanguage=function(e){if(void 0!==e&&null!==e){if(q(e),h&&a&&a.length)for(var t=0,n=a.length;t-1&&(M=t)}else M=0},V.proposedLanguage=function(){return u},V.storage=function(){return i},V.negotiateLocale=F,V.use=function(e){if(!e)return l;var t=r.defer();t.promise.then(null,angular.noop),n.$emit("$translateChangeStart",{language:e});var o=F(e);return w.length>0&&!o?r.reject(e):(o&&(e=o),u=e,!k&&C[e]||!h||H[e]?H[e]?H[e].then(function(e){return u===e.key&&G(e.key),t.resolve(e.key),e},function(e){return!l&&a&&a.length>0&&a[0]!==e?V.use(a[0]).then(t.resolve,t.reject):t.reject(e)}):(t.resolve(e),G(e)):(H[e]=K(e).then(function(n){return R(n.key,n.table),t.resolve(n.key),u===e&&G(n.key),n},function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),r.reject(e)}),H[e].finally(function(){se(e)}).catch(angular.noop)),t.promise)},V.resolveClientLocale=function(){return D()},V.storageKey=function(){return W()},V.isPostCompilingEnabled=function(){return x},V.isForceAsyncReloadEnabled=function(){return k},V.isKeepContent=function(){return O},V.refresh=function(e){function t(e){var t=K(e);return H[e]=t,t.then(function(t){C[e]={},R(e,t.table),i[e]=!0},angular.noop),t}if(!h)throw new Error("Couldn't refresh translation table, no loader registered!");n.$emit("$translateRefreshStart",{language:e});var o=r.defer(),i={};if(o.promise.then(function(){for(var e in C)C.hasOwnProperty(e)&&(e in i||delete C[e]);l&&G(l)},angular.noop).finally(function(){n.$emit("$translateRefreshEnd",{language:e})}),e)C[e]?t(e).then(o.resolve,o.reject):o.reject();else{var s=a&&a.slice()||[];l&&-1===s.indexOf(l)&&s.push(l),r.all(s.map(t)).then(o.resolve,o.reject)}return o.promise},V.instant=function(e,t,n,r,i){var s=r&&r!==l?F(r)||r:l;if(null===e||angular.isUndefined(e))return e;if(r&&ue(r),angular.isArray(e)){for(var u={},c=0,d=e.length;c0?w:null},V.getTranslationTable=function(e){return(e=e||V.use())&&C[e]?angular.copy(C[e]):null};var de=n.$on("$translateReady",function(){ce.resolve(),de(),de=null}),fe=n.$on("$translateChangeEnd",function(){ce.resolve(),fe(),fe=null});if(h){if(angular.equals(C,{})&&V.use()&&V.use(V.use()),a&&a.length)for(var pe=0,he=a.length;pe13&&function(e){v.$observe(e,function(t){y[e]=t,T()})}(w);if(v.$observe("translateDefault",function(e){l.defaultText=e,T()}),f&&v.$observe("translateSanitizeStrategy",function(e){l.sanitizeStrategy=r(e)(l.$parent),T()}),c&&v.$observe("translateValues",function(e){e&&l.$parent.$watch(function(){angular.extend(l.interpolateParams,r(e)(l.$parent))})}),p)for(var S in v)Object.prototype.hasOwnProperty.call(v,S)&&"translateValue"===S.substr(0,14)&&"translateValues"!==S&&function(e){v.$observe(e,function(t){var n=s(e.substr(14,1))+e.substr(15);l.interpolateParams[n]=t})}(S);var T=function(){for(var e in y)y.hasOwnProperty(e)&&void 0!==y[e]&&$(e,y[e],l,l.interpolateParams,l.defaultText,l.translateNamespace)},$=function(t,n,r,o,i,a){n?(a&&"."===n.charAt(0)&&(n=a+n),e(n,o,d,i,r.translateLanguage,r.sanitizeStrategy).then(function(e){x(e,r,!0,t)},function(e){x(e,r,!1,t)})):x(n,r,!1,t)},x=function(t,r,o,i){if(o||void 0!==r.defaultText&&(t=r.defaultText),"translate"===i){(o||!o&&!e.isKeepContent()&&void 0===v.translateKeepContent)&&m.empty().append(r.preText+t+r.postText);var a=e.isPostCompilingEnabled(),s=void 0!==u.translateCompile,l=s&&"false"!==u.translateCompile;(a&&!s||l)&&n(m.contents())(r)}else{var c=v.$attr[i];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),m.attr(c,t)}};(c||p||v.translateDefault)&&l.$watch("interpolateParams",T,!0),l.$on("translateLanguageChanged",T);var k=i.$on("$translateChangeSuccess",T);m.text().length?b(v.translate?v.translate:""):v.translate&&b(v.translate),T(),l.$on("$destroy",k)}}}}function o(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?o(e.$parent):void 0}function i(e,t){"use strict";return{restrict:"A",priority:e.directivePriority(),link:function(n,r,o){var i,s,l,u={},c=function(){angular.forEach(i,function(t,i){t&&(u[i]=!0,n.translateNamespace&&"."===t.charAt(0)&&(t=n.translateNamespace+t),e(t,s,o.translateInterpolation,void 0,n.translateLanguage,l).then(function(e){r.attr(i,e)},function(e){r.attr(i,e)}))}),angular.forEach(u,function(e,t){i[t]||(r.removeAttr(t),delete u[t])})};a(n,o.translateAttr,function(e){i=e},c),a(n,o.translateValues,function(e){s=e},c),a(n,o.translateSanitizeStrategy,function(e){l=e},c),o.translateValues&&n.$watch(o.translateValues,c,!0),n.$on("translateLanguageChanged",c);var d=t.$on("$translateChangeSuccess",c);c(),n.$on("$destroy",d)}}}function a(e,t,n,r){"use strict";t&&("::"===t.substr(0,2)?t=t.substr(2):e.$watch(t,function(e){n(e),r()},!0),n(e.$eval(t)))}function s(e,t){"use strict";return{compile:function(n){var r=function(t){t.addClass(e.cloakClassName())},o=function(t){t.removeClass(e.cloakClassName())};return r(n),function(n,i,a){var s=o.bind(this,i),l=r.bind(this,i);a.translateCloak&&a.translateCloak.length?(a.$observe("translateCloak",function(t){e(t).then(s,l)}),t.$on("$translateChangeSuccess",function(){e(a.translateCloak).then(s,l)})):e.onReady(s)}}}}function l(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,n){e.translateNamespace=o(e),e.translateNamespace&&"."===n.translateNamespace.charAt(0)?e.translateNamespace+=n.translateNamespace:e.translateNamespace=n.translateNamespace}}}}}function o(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?o(e.$parent):void 0}function u(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",function(t){e.translateLanguage=t}),e.$watch("translateLanguage",function(){e.$broadcast("translateLanguageChanged")})}}}}function c(e,t){"use strict";var n=function(n,r,o,i){if(!angular.isObject(r)){var a=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"};r=e(r)(a)}return t.instant(n,r,o,i)};return t.statefulFilter()&&(n.$stateful=!0),n}function d(e){"use strict";return e("translations")}return e.$inject=["$translate"],t.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],n.$inject=["$interpolate","$translateSanitization"],r.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],i.$inject=["$translate","$rootScope"],s.$inject=["$translate","$rootScope"],c.$inject=["$parse","$translate"],d.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(e),e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",function(){"use strict";var e,t,n,r=null,o=!1,i=!1;(n={sanitize:function(e,t){return"text"===t&&(e=s(e)),e},escape:function(e,t){return"text"===t&&(e=a(e)),e},sanitizeParameters:function(e,t){return"params"===t&&(e=u(e,s)),e},escapeParameters:function(e,t){return"params"===t&&(e=u(e,a)),e},sce:function(e,t,n){return"text"===t?e=l(e):"params"===t&&"filter"!==n&&(e=u(e,a)),e},sceParameters:function(e,t){return"params"===t&&(e=u(e,l)),e}}).escaped=n.escapeParameters,this.addStrategy=function(e,t){return n[e]=t,this},this.removeStrategy=function(e){return delete n[e],this},this.useStrategy=function(e){return o=!0,r=e,this},this.$get=["$injector","${mbroot}/var/log",function(a,s){var l={},u=function(e,t,r,o){return angular.forEach(o,function(o){if(angular.isFunction(o))e=o(e,t,r);else if(angular.isFunction(n[o]))e=n[o](e,t,r);else{if(!angular.isString(n[o]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+o+"'");if(!l[n[o]])try{l[n[o]]=a.get(n[o])}catch(e){throw l[n[o]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+o+"'")}e=l[n[o]](e,t,r)}}),e},c=function(){o||i||(s.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),i=!0)};return a.has("$sanitize")&&(e=a.get("$sanitize")),a.has("$sce")&&(t=a.get("$sce")),{useStrategy:function(e){return function(t){e.useStrategy(t)}}(this),sanitize:function(e,t,n,o){if(r||c(),n||null===n||(n=r),!n)return e;o||(o="service");var i=angular.isArray(n)?n:[n];return u(e,t,o,i)}}}];var a=function(e){var t=angular.element("
");return t.text(e),t.html()},s=function(t){if(!e)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return e(t)},l=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return t.trustAsHtml(e)},u=function(e,t,n){if(angular.isDate(e))return e;if(angular.isObject(e)){var r=angular.isArray(e)?[]:{};if(n){if(n.indexOf(e)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(e),angular.forEach(e,function(e,o){angular.isFunction(e)||(r[o]=u(e,t,n))}),n.splice(-1,1),r}return angular.isNumber(e)?e:!0===e||!1===e?e:angular.isUndefined(e)||null===e?e:t(e)}}),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",t),t.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",n),n.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",r),r.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",i),i.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",s),s.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",l),l.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",u),u.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",c),c.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",d),d.displayName="$translationCache","pascalprecht.translate"}),function(){"use strict";function e(e){return angular.isUndefined(e)||null===e}function t(){try{return require("moment")}catch(e){throw new Error("Please install moment via npm. Please reference to: https://github.com/urish/angular-moment")}}function n(n,r){if(void 0===r){if("function"!=typeof require)throw new Error("Moment cannot be found by angular-moment! Please reference to: https://github.com/urish/angular-moment");r=t()}return n.module("angularMoment",[]).constant("angularMomentConfig",{preprocess:null,timezone:null,format:null,statefulFilters:!0}).constant("moment",r).constant("amTimeAgoConfig",{withoutSuffix:!1,serverTime:null,titleFormat:null,fullDateThreshold:null,fullDateFormat:null,fullDateThresholdUnit:"day"}).directive("amTimeAgo",["$window","moment","amMoment","amTimeAgoConfig",function(t,r,o,i){return function(a,s,l){function u(){var e;if(g)e=g;else if(i.serverTime){var t=(new Date).getTime(),n=t-S+i.serverTime;e=r(n)}else e=r();return e}function c(){m&&(t.clearTimeout(m),m=null)}function d(e){var n=u().diff(e,w),r=b&&n>=b;if(r?s.text(e.format(C)):s.text(e.from(u(),v)),y&&x&&s.attr("title",e.format(y)),!r){var o=Math.abs(u().diff(e,"minute")),i=3600;o<1?i=1:o<60?i=30:o<180&&(i=300),m=t.setTimeout(function(){d(e)},1e3*i)}}function f(e){$&&s.attr("datetime",e)}function p(){if(c(),h){var e=o.preprocessDate(h);d(e),f(e.toISOString())}}var h,g,m=null,v=i.withoutSuffix,y=i.titleFormat,b=i.fullDateThreshold,C=i.fullDateFormat,w=i.fullDateThresholdUnit,S=(new Date).getTime(),T=l.amTimeAgo,$="TIME"===s[0].nodeName.toUpperCase(),x=!s.attr("title");a.$watch(T,function(t){return e(t)||""===t?(c(),void(h&&(s.text(""),f(""),h=null))):(h=t,void p())}),n.isDefined(l.amFrom)&&a.$watch(l.amFrom,function(t){g=e(t)||""===t?null:r(t),p()}),n.isDefined(l.amWithoutSuffix)&&a.$watch(l.amWithoutSuffix,function(e){"boolean"==typeof e?(v=e,p()):v=i.withoutSuffix}),l.$observe("amFullDateThreshold",function(e){b=e,p()}),l.$observe("amFullDateFormat",function(e){C=e,p()}),l.$observe("amFullDateThresholdUnit",function(e){w=e,p()}),a.$on("$destroy",function(){c()}),a.$on("amMoment:localeChanged",function(){p()})}}]).service("amMoment",["moment","$rootScope","${mbroot}/var/log","angularMomentConfig",function(e,t,r,o){var i=null;this.changeLocale=function(r,o){var i=e.locale(r,o);return n.isDefined(r)&&t.$broadcast("amMoment:localeChanged"),i},this.changeTimezone=function(n){e.tz&&e.tz.setDefault?(e.tz.setDefault(n),t.$broadcast("amMoment:timezoneChanged")):r.warn("angular-moment: changeTimezone() works only with moment-timezone.js v0.3.0 or greater."),o.timezone=n,i=n},this.preprocessDate=function(t){return i!==o.timezone&&this.changeTimezone(o.timezone),o.preprocess?o.preprocess(t):e(!isNaN(parseFloat(t))&&isFinite(t)?parseInt(t,10):t)}}]).filter("amParse",["moment",function(e){return function(t,n){return e(t,n)}}]).filter("amFromUnix",["moment",function(e){return function(t){return e.unix(t)}}]).filter("amUtc",["moment",function(e){return function(t){return e.utc(t)}}]).filter("amUtcOffset",["amMoment",function(e){function t(t,n){return e.preprocessDate(t).utcOffset(n)}return t}]).filter("amLocal",["moment",function(e){return function(t){return e.isMoment(t)?t.local():null}}]).filter("amTimezone",["amMoment","angularMomentConfig","${mbroot}/var/log",function(e,t,n){function r(t,r){var o=e.preprocessDate(t);return r?o.tz?o.tz(r):(n.warn("angular-moment: named timezone specified but moment.tz() is undefined. Did you forget to include moment-timezone.js ?"),o):o}return r}]).filter("amCalendar",["moment","amMoment","angularMomentConfig",function(t,n,r){function o(t,r,o){if(e(t))return"";var i=n.preprocessDate(t);return i.isValid()?i.calendar(r,o):""}return o.$stateful=r.statefulFilters,o}]).filter("amDifference",["moment","amMoment","angularMomentConfig",function(t,n,r){function o(r,o,i,a){if(e(r))return"";var s=n.preprocessDate(r),l=e(o)?t():n.preprocessDate(o);return s.isValid()&&l.isValid()?s.diff(l,i,a):""}return o.$stateful=r.statefulFilters,o}]).filter("amDateFormat",["moment","amMoment","angularMomentConfig",function(t,n,r){function o(t,r){if(e(t))return"";var o=n.preprocessDate(t);return o.isValid()?o.format(r):""}return o.$stateful=r.statefulFilters,o}]).filter("amDurationFormat",["moment","angularMomentConfig",function(t,n){function r(n,r,o){return e(n)?"":t.duration(n,r).humanize(o)}return r.$stateful=n.statefulFilters,r}]).filter("amTimeAgo",["moment","amMoment","angularMomentConfig",function(t,n,r){function o(r,o,i){var a,s;return e(r)?"":(r=n.preprocessDate(r),a=t(r),a.isValid()?(s=t(i),!e(i)&&s.isValid()?a.from(s,o):a.fromNow(o)):"")}return o.$stateful=r.statefulFilters,o}]).filter("amSubtract",["moment","angularMomentConfig",function(t,n){function r(n,r,o){return e(n)?"":t(n).subtract(parseInt(r,10),o)}return r.$stateful=n.statefulFilters,r}]).filter("amAdd",["moment","angularMomentConfig",function(t,n){function r(n,r,o){return e(n)?"":t(n).add(parseInt(r,10),o)}return r.$stateful=n.statefulFilters,r}]).filter("amStartOf",["moment","angularMomentConfig",function(t,n){function r(n,r){return e(n)?"":t(n).startOf(r)}return r.$stateful=n.statefulFilters,r}]).filter("amEndOf",["moment","angularMomentConfig",function(t,n){function r(n,r){return e(n)?"":t(n).endOf(r)}return r.$stateful=n.statefulFilters,r}]),"angularMoment"}var r=window&&window.process&&window.process.type;"function"==typeof define&&define.amd?define(["angular","moment"],n):"undefined"!=typeof module&&module&&module.exports&&"function"==typeof require&&!r?module.exports=n(require("angular"),require("moment")):n(angular,("undefined"!=typeof global?global:window).moment)}(),function(e,t){if("function"==typeof define&&define.amd)define(["module","exports","angular","ws"],t);else if("undefined"!=typeof exports)t(module,exports,require("angular"),require("ws"));else{var n={exports:{}};t(n,n.exports,e.angular,e.ws),e.angularWebsocket=n.exports}}(this,function(e,t,n,r){"use strict";function o(e,t,n,r){function o(t,n,r){r||!g(n)||m(n)||(r=n,n=void 0),this.protocols=n,this.url=t||"Missing URL",this.ssl=/(wss)/i.test(this.url),this.scope=r&&r.scope||e,this.rootScopeFailover=r&&r.rootScopeFailover&&!0,this.useApplyAsync=r&&r.useApplyAsync||!1,this.initialTimeout=r&&r.initialTimeout||500,this.maxTimeout=r&&r.maxTimeout||3e5,this.reconnectIfNotNormalClose=r&&r.reconnectIfNotNormalClose||!1,this.binaryType=r&&r.binaryType||"blob",this._reconnectAttempts=0,this.sendQueue=[],this.onOpenCallbacks=[],this.onMessageCallbacks=[],this.onErrorCallbacks=[],this.onCloseCallbacks=[],c(this._readyStateConstants),t?this._connect():this._setInternalState(0)}return o.prototype._readyStateConstants={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3,RECONNECT_ABORTED:4},o.prototype._normalCloseCode=1e3,o.prototype._reconnectableStatusCodes=[4e3],o.prototype.safeDigest=function(e){e&&!this.scope.$$phase&&this.scope.$digest()},o.prototype.bindToScope=function(t){var n=this;return t&&(this.scope=t,this.rootScopeFailover&&this.scope.$on("$destroy",function(){n.scope=e})),n},o.prototype._connect=function(e){!e&&this.socket&&this.socket.readyState===this._readyStateConstants.OPEN||(this.socket=r.create(this.url,this.protocols),this.socket.onmessage=s.default.bind(this,this._onMessageHandler),this.socket.onopen=s.default.bind(this,this._onOpenHandler),this.socket.onerror=s.default.bind(this,this._onErrorHandler),this.socket.onclose=s.default.bind(this,this._onCloseHandler),this.socket.binaryType=this.binaryType)},o.prototype.fireQueue=function(){for(;this.sendQueue.length&&this.socket.readyState===this._readyStateConstants.OPEN;){var e=this.sendQueue.shift();this.socket.send(f(e.message)||"blob"!=this.binaryType?e.message:JSON.stringify(e.message)),e.deferred.resolve()}},o.prototype.notifyOpenCallbacks=function(e){for(var t=0;t-1)&&this.reconnect()},o.prototype._onErrorHandler=function(e){var t=this;t.useApplyAsync?t.scope.$applyAsync(function(){t.notifyErrorCallbacks(e)}):(t.notifyErrorCallbacks(e),t.safeDigest(!0))},o.prototype._onMessageHandler=function(e){function t(e,t,n){n=y.call(arguments,2),o.useApplyAsync?o.scope.$applyAsync(function(){e.apply(o,n)}):(e.apply(o,n),o.safeDigest(t))}for(var n,r,o=this,i=0;ie||e>4)throw new Error("state must be an integer between 0 and 4, got: "+e);d||(this.readyState=e||this.socket.readyState),this._internalConnectionState=e,v(this.sendQueue,function(e){e.deferred.reject("Message cancelled due to closed socket connection")})},d&&d(o.prototype,"readyState",{get:function(){return this._internalConnectionState||this.socket.readyState},set:function(){throw new Error("The readyState property is read-only")}}),function(e,t,n){return new o(e,t,n)}}function i(e){this.create=function(e,t){if(!/wss?:\/\//.exec(e))throw new Error("Invalid url provided");return t?new a(e,t):new a(e)},this.createWebSocketBackend=function(t,n){return e.warn("Deprecated: Please use .create(url, protocols)"),this.create(t,n)}}Object.defineProperty(t,"__esModule",{value:!0});var a,s=function(e){return e&&e.__esModule?e:{default:e}}(n),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};if("object"===(void 0===t?"undefined":l(t))&&"function"==typeof require)try{a=r.Client||r.client||r}catch(e){}a=a||window.WebSocket||window.MozWebSocket;var u=s.default.noop,c=Object.freeze?Object.freeze:u,d=Object.defineProperty,f=s.default.isString,p=s.default.isFunction,h=s.default.isDefined,g=s.default.isObject,m=s.default.isArray,v=s.default.forEach,y=Array.prototype.slice;Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,n=Number(arguments[1])||0;for(0>(n=0>n?Math.ceil(n):Math.floor(n))&&(n+=t);t>n;n++)if(n in this&&this[n]===e)return n;return-1}),s.default.module("ngWebSocket",[]).factory("$websocket",["$rootScope","$q","$timeout","$websocketBackend",o]).factory("WebSocket",["$rootScope","$q","$timeout","WebsocketBackend",o]).service("$websocketBackend",["${mbroot}/var/log",i]).service("WebSocketBackend",["${mbroot}/var/log",i]),s.default.module("angular-websocket",["ngWebSocket"]),t.default=s.default.module("ngWebSocket"),e.exports=t.default}),angular.module("ab-base64",[]).constant("base64",function(){var e={alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",lookup:null,ie:/MSIE /.test(navigator.userAgent),ieo:/MSIE [67]/.test(navigator.userAgent),encode:function(t){var n,r,o,i,a=e.toUtf8(t),s=-1,l=a.length,u=[,,,];if(e.ie){for(n=[];++s>2,u[1]=(3&r)<<4|o>>4,isNaN(o)?u[2]=u[3]=64:(i=a[++s],u[2]=(15&o)<<2|i>>6,u[3]=isNaN(i)?64:63&i),n.push(e.alphabet.charAt(u[0]),e.alphabet.charAt(u[1]),e.alphabet.charAt(u[2]),e.alphabet.charAt(u[3]));return n.join("")}for(n="";++s>2,u[1]=(3&r)<<4|o>>4,isNaN(o)?u[2]=u[3]=64:(i=a[++s],u[2]=(15&o)<<2|i>>6,u[3]=isNaN(i)?64:63&i),n+=e.alphabet[u[0]]+e.alphabet[u[1]]+e.alphabet[u[2]]+e.alphabet[u[3]];return n},decode:function(t){if(t=t.replace(/\s/g,""),t.length%4)throw new Error("InvalidLengthError: decode failed: The string to be decoded is not the correct length for a base64 encoded string.");if(/[^A-Za-z0-9+\/=\s]/g.test(t))throw new Error("InvalidCharacterError: decode failed: The string contains characters invalid in a base64 encoded string.");var n,r=e.fromUtf8(t),o=0,i=r.length;if(e.ieo){for(n=[];i>o;)n.push(r[o]<128?String.fromCharCode(r[o++]):r[o]>191&&r[o]<224?String.fromCharCode((31&r[o++])<<6|63&r[o++]):String.fromCharCode((15&r[o++])<<12|(63&r[o++])<<6|63&r[o++]));return n.join("")}for(n="";i>o;)n+=String.fromCharCode(r[o]<128?r[o++]:r[o]>191&&r[o]<224?(31&r[o++])<<6|63&r[o++]:(15&r[o++])<<12|(63&r[o++])<<6|63&r[o++]);return n},toUtf8:function(e){var t,n=-1,r=e.length,o=[];if(/^[\x00-\x7f]*$/.test(e))for(;++nt?o.push(t):2048>t?o.push(t>>6|192,63&t|128):o.push(t>>12|224,t>>6&63|128,63&t|128);return o},fromUtf8:function(t){var n,r=-1,o=[],i=[,,,];if(!e.lookup){for(n=e.alphabet.length,e.lookup={};++r>4),i[2]=e.lookup[t.charAt(++r)],64!==i[2])&&(o.push((15&i[1])<<4|i[2]>>2),i[3]=e.lookup[t.charAt(++r)],64!==i[3]);)o.push((3&i[2])<<6|i[3]);return o}},t={decode:function(t){t=t.replace(/-/g,"+").replace(/_/g,"/");var n=t.length%4;if(n){if(1===n)throw new Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");t+=new Array(5-n).join("=")}return e.decode(t)},encode:function(t){return e.encode(t).replace(/\+/g,"-").replace(/\//g,"_").split("=",1)[0]}};return{decode:e.decode,encode:e.encode,urldecode:t.decode,urlencode:t.encode}}()),function(e,t){var n=t.isDefined,r=t.isUndefined,o=t.isNumber,i=t.isObject,a=t.isArray,s=t.isString,l=t.extend,u=t.toJson;t.module("LocalStorageModule",[]).provider("localStorageService",function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/",secure:!1},this.defaultToCookie=!0,this.notify={setItem:!0, removeItem:!1},this.setPrefix=function(e){return this.prefix=e,this},this.setStorageType=function(e){return this.storageType=e,this},this.setDefaultToCookie=function(e){return this.defaultToCookie=!!e,this},this.setStorageCookie=function(e,t,n){return this.cookie.expiry=e,this.cookie.path=t,this.cookie.secure=n,this},this.setStorageCookieDomain=function(e){return this.cookie.domain=e,this},this.setNotify=function(e,t){return this.notify={setItem:e,removeItem:t},this},this.$get=["$rootScope","$window","$document","$parse","$timeout",function(e,t,c,d,f){function p(n){if(n||(n=t.event),y.setItem&&s(n.key)&&S(n.key)){var r=w(n.key);f(function(){e.$broadcast("LocalStorageModule.notification.changed",{key:r,newvalue:n.newValue,storageType:g.storageType})})}}var h,g=this,m=g.prefix,v=g.cookie,y=g.notify,b=g.storageType;c?c[0]&&(c=c[0]):c=document,"."!==m.substr(-1)&&(m=m?m+".":"");var C=function(e){return m+e},w=function(e){return e.replace(new RegExp("^"+m,"g"),"")},S=function(e){return 0===e.indexOf(m)},T=function(){try{var n=b in t&&null!==t[b],r=C("__"+Math.round(1e7*Math.random()));return n&&(h=t[b],h.setItem(r,""),h.removeItem(r)),n}catch(t){return g.defaultToCookie&&(b="cookie"),e.$broadcast("LocalStorageModule.notification.error",t.message),!1}},$=T(),x=function(t,n,o){var i=D();try{if(_(o),n=r(n)?null:u(n),!$&&g.defaultToCookie||"cookie"===g.storageType)return $||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),y.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"}),L(t,n);try{h&&h.setItem(C(t),n),y.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:g.storageType})}catch(r){return e.$broadcast("LocalStorageModule.notification.error",r.message),L(t,n)}return!0}finally{_(i)}},k=function(t,n){var r=D();try{if(_(n),!$&&g.defaultToCookie||"cookie"===g.storageType)return $||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),M(t);var o=h?h.getItem(C(t)):null;if(!o||"null"===o)return null;try{return JSON.parse(o)}catch(e){return o}}finally{_(r)}},E=function(){var t=D();try{var n=0;arguments.length>=1&&("localStorage"===arguments[arguments.length-1]||"sessionStorage"===arguments[arguments.length-1])&&(n=1,_(arguments[arguments.length-1]));var r,o;for(r=0;r0||(c.cookie="test").indexOf.call(c.cookie,"test")>-1)}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}}(),L=function(t,n,s,l){if(r(n))return!1;if((a(n)||i(n))&&(n=u(n)),!B)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var d="",f=new Date,p="";if(null===n?(f.setTime(f.getTime()+-864e5),d="; expires="+f.toGMTString(),n=""):o(s)&&0!==s?(f.setTime(f.getTime()+24*s*60*60*1e3),d="; expires="+f.toGMTString()):0!==v.expiry&&(f.setTime(f.getTime()+24*v.expiry*60*60*1e3),d="; expires="+f.toGMTString()),t){var h="; path="+v.path;v.domain&&(p="; domain="+v.domain),"boolean"==typeof l?!0===l&&(p+="; secure"):!0===v.secure&&(p+="; secure"),c.cookie=C(t)+"="+encodeURIComponent(n)+d+h+p}}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}return!0},M=function(t){if(!B)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(var n=c.cookie&&c.cookie.split(";")||[],r=0;r=0;a--){var l=g[a];if(i.replaceMessage&&awindow.innerHeight&&(y=c,t++,e=0);var b=n=y?0===e?y:y+f:c,C=r+t*(p+v);l.css(l._positionY,b+"px"),"center"==l._positionX?l.css("left",parseInt(window.innerWidth/2-v/2)+"px"):l.css(l._positionX,C+"px"),o[l._positionY+l._positionX]=b+m,u.maxCount>0&&g.length>u.maxCount&&0===a&&l.scope().kill(!0),e++}}},y=n(t)(o);y._positionY=i.positionY,y._positionX=i.positionX,y._priority=i.priority,y.addClass(i.type);var C=function(e){e=e.originalEvent||e,("click"===e.type||"opacity"===e.propertyName&&e.elapsedTime>=1)&&(o.onClose&&o.$apply(o.onClose(y)),y.remove(),g.splice(g.indexOf(y),1),o.$destroy(),v())};i.closeOnClick&&(y.addClass("clickable"),y.bind("click",C)),y.bind("webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd",C),angular.isNumber(i.delay)&&e(function(){y.addClass("killed")},i.delay),r("none"),angular.element(document.querySelector(i.container)).append(y);var w=-(parseInt(y[0].offsetHeight)+50);if(y.css(y._positionY,w+"px"),g.push(y),"center"==i.positionX){var S=parseInt(y[0].offsetWidth);y.css("left",parseInt(window.innerWidth/2-S/2)+"px")}e(function(){r("")}),o._templateElement=y,o.kill=function(t){t?(o.onClose&&o.$apply(o.onClose(o._templateElement)),g.splice(g.indexOf(o._templateElement),1),o._templateElement.remove(),o.$destroy(),e(v)):o._templateElement.addClass("killed")},e(v),m||(angular.element(l).bind("resize",function(t){e(v)}),m=!0),b.resolve(o)}var b=s.defer();"object"==typeof i&&null!==i||(i={message:i}),i.scope=i.scope?i.scope:o,i.template=i.templateUrl?i.templateUrl:u.templateUrl,i.delay=angular.isUndefined(i.delay)?h:i.delay,i.type=v||i.type||u.type||"",i.positionY=i.positionY?i.positionY:u.positionY,i.positionX=i.positionX?i.positionX:u.positionX,i.replaceMessage=i.replaceMessage?i.replaceMessage:u.replaceMessage,i.onClose=i.onClose?i.onClose:u.onClose,i.closeOnClick=null!==i.closeOnClick&&void 0!==i.closeOnClick?i.closeOnClick:u.closeOnClick,i.container=i.container?i.container:u.container,i.priority=i.priority?i.priority:u.priority;var C=r.get(i.template);return C?y(C):t.get(i.template,{cache:!0}).then(function(e){y(e.data)}).catch(function(e){throw new Error("Template ("+i.template+") could not be loaded. "+e)}),b.promise};return v.primary=function(e){return this(e,"primary")},v.error=function(e){return this(e,"error")},v.success=function(e){return this(e,"success")},v.info=function(e){return this(e,"info")},v.warning=function(e){return this(e,"warning")},v.clearAll=function(){angular.forEach(g,function(e){e.addClass("killed")})},v}]}),angular.module("ui-notification").run(["$templateCache",function(e){e.put("angular-ui-notification.html",'

')}]),angular.module("angularBittorrentPeerid",[]),angular.module("angularBittorrentPeerid").run(function(){"function"!=typeof String.prototype.endsWith&&(String.prototype.endsWith=function(e){return this.slice(-e.length)===e}),"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(e,t){return t=t||0,this.slice(t,t+e.length)===e})}),angular.module("angularBittorrentPeerid").factory("peeridUtils",function(){function e(e){var t=e.charCodeAt(0);return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)}function t(e){var t=e.toLowerCase().charCodeAt(0);return t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)}function n(n){return e(n)||t(n)||"."===n}function r(e,t){t=t||0;for(var n=""+(255&e);n.lengthn?r.push(n):2048>n?r.push(192|n>>6,128|63&n):r.push(224|n>>12,128|63&n>>6,128|63&n);return r},isAzStyle:function(e){return"-"===e.charAt(0)&&("-"===e.charAt(7)||("FG"===e.substring(1,3)||("LH"===e.substring(1,3)||("NE"===e.substring(1,3)||("KT"===e.substring(1,3)||"SP"===e.substring(1,3))))))},isShadowStyle:function(r){var o,i,a;if("-"!==r.charAt(5))return!1;if(!t(r.charAt(0)))return!1;if(!e(r.charAt(1))&&"-"!==r.charAt(1))return!1;for(o=4;o>0&&"-"===r.charAt(o);o--);for(i=1;o>=i;i++){if("-"===(a=r.charAt(i)))return!1;if(null===n(a))return!1}return!0},isMainlineStyle:function(e){return"-"===e.charAt(2)&&"-"===e.charAt(7)&&("-"===e.charAt(4)||"-"===e.charAt(5))},isPossibleSpoofClient:function(e){return e.endsWith("UDP0")||e.endsWith("HTTPBT")},decodeNumericValueOfByte:r,getAzStyleVersionNumber:function(e,t){return"function"==typeof t?t(e):null},getShadowStyleVersionNumber:function(){return null},decodeBitSpiritClient:function(e,t){if("BS"!==e.substring(2,4))return null;var n=""+t[1];return"0"===n&&(n=1),{client:"BitSpirit",version:n}},decodeBitCometClient:function(e,t){var n,o,i,a,s="";if(e.startsWith("exbc"))s="";else if(e.startsWith("FUTB"))s="(Solidox Mod)";else{if(!e.startsWith("xUTB"))return null;s="(Mod 2)"}return n="LORD"===e.substring(6,10),o=n?"BitLord":"BitComet",i=r(t[4]),a=n&&"0"!==i?1:2,{client:o+(s?" "+s:""),version:i+"."+r(t[5],a)}},identifyAwkwardClient:function(e,t){var n,r,o=20;for(n=0;20>n;++n)if(t[n]>0){o=n;break}if(0===o){for(r=!0,n=0;16>n;++n)if(0===t[n]){r=!1;break}if(r){for(n=16;20>n;++n)if(t[n]!==(t[n%16]^t[15-n%16])){r=!1;break}if(r)return{client:"Shareaza"}}}return 9===o&&3===t[9]&&3===t[10]&&3===t[11]?{client:"I2PSnark"}:12===o&&97===t[12]&&97===t[13]?{client:"Experimental",version:"3.2.1b2"}:12===o&&0===t[12]&&0===t[13]?{client:"Experimental",version:"3.1"}:12===o?{client:"Mainline"}:null}}}),angular.module("angularBittorrentPeerid").provider("bittorrentPeeridService",function(){var e={},t={},n={},r={},o={},i=[],a=function(e){return e[0]+"."+e[1]+"."+e[2]},s=function(e){return isNaN(e[2])?e[0]+"."+e[1]+".1"+"ABCDE".indexOf(e[2]):e[0]+"."+e[1]+"."+e[2]},l=function(e){var t=e[3];return t="B"===t?"Beta":"A"===t?"Alpha":"",e[0]+"."+e[1]+"."+e[2]+" "+t},u=function(e){return e[0]+"."+e[1]+"."+e[2]+"."+e[3]},c=function(e){return e[0]+e[1]+"."+e[2]+e[3]},d=function(e){return e[1]+"."+e[2]+e[3]},f=function(e){return"0"===e[0]&&"0"===e[1]&&"0"===e[2]?"0."+e[3]:"0"===e[0]&&"0"===e[1]?"0."+e[2]+e[3]:e[0]+"."+e[1]+e[2]+("Z"===e[3]||"X"===e[3]?"+":"")},p=function(e){var t="";return t+="0"===e[0]?e[1]+".":""+e[0]+e[1]+".",t+="0"===e[2]?e[3]:""+e[2]+e[3]},h="2.33.4",g="NO_VERSION",m=this.addAzStyle=function(n,r,o){o=o||u,e[n]=r,t[r]=o},v=this.addShadowStyle=function(e,t,o){o=o||a,n[e]=t,r[t]=o},y=this.addMainlineStyle=function(e,t){o[e]=t},b=this.addSimpleClient=function(e,t,n,r){("number"==typeof n||void 0===n)&&(r=n,n=t,t=void 0),i.push({id:n,client:e,version:t,position:r||0})};!function(){m("A~","Ares",a),m("AG","Ares",a),m("AN","Ares",u),m("AR","Ares"),m("AV","Avicora"),m("AX","BitPump",c),m("AT","Artemis"),m("AZ","Vuze",u),m("BB","BitBuddy","1.234"),m("BC","BitComet",d),m("BE","BitTorrent SDK"),m("BF","BitFlu",g),m("BG","BTG",u),m("bk","BitKitten (libtorrent)"),m("BR","BitRocket","1.2(34)"),m("BS","BTSlave"),m("BT","BitTorrent",l),m("BW","BitWombat"),m("BX","BittorrentX"),m("CB","Shareaza Plus"),m("CD","Enhanced CTorrent",c),m("CT","CTorrent","1.2.34"),m("DP","Propogate Data Client"),m("DE","Deluge",s),m("EB","EBit"),m("ES","Electric Sheep",a),m("FC","FileCroc"),m("FG","FlashGet",d),m("FT","FoxTorrent/RedSwoosh"),m("GR","GetRight","1.2"),m("GS","GSTorrent"),m("HL","Halite",a),m("HN","Hydranode"),m("KG","KGet"),m("KT","KTorrent","1.2.3=[RD].4"),m("LC","LeechCraft"),m("LH","LH-ABC"),m("LK","linkage",a),m("LP","Lphant",c),m("LT","libtorrent (Rasterbar)",h),m("lt","libTorrent (Rakshasa)",h),m("LW","LimeWire",g),m("MO","MonoTorrent"),m("MP","MooPolice",a),m("MR","Miro"),m("MT","MoonlightTorrent"),m("NE","BT Next Evolution",a),m("NX","Net Transport"),m("OS","OneSwarm",u),m("OT","OmegaTorrent"),m("PC","CacheLogic","12.3-4"),m("PT","Popcorn Time"),m("PD","Pando"),m("PE","PeerProject"),m("pX","pHoeniX"),m("qB","qBittorrent",s),m("QD","qqdownload"),m("RT","Retriever"),m("RZ","RezTorrent"),m("S~","Shareaza alpha/beta"),m("SB","SwiftBit"),m("SD","迅雷在线 (Xunlei)"),m("SG","GS Torrent",u),m("SN","ShareNET"),m("SP","BitSpirit",a),m("SS","SwarmScope"),m("ST","SymTorrent","2.34"),m("st","SharkTorrent"),m("SZ","Shareaza"),m("TN","Torrent.NET"),m("TR","Transmission",f),m("TS","TorrentStorm"),m("TT","TuoTu",a),m("UL","uLeecher!"),m("UE","µTorrent Embedded",l),m("UT","µTorrent",l),m("UM","µTorrent Mac",l),m("WD","WebTorrent Desktop",p),m("WT","Bitlet"),m("WW","WebTorrent",p),m("WY","FireTorrent"),m("VG","哇嘎 (Vagaa)",u),m("XL","迅雷在线 (Xunlei)"),m("XT","XanTorrent"),m("XF","Xfplay",f),m("XX","XTorrent","1.2.34"),m("XC","XTorrent","1.2.34"),m("ZT","ZipTorrent"),m("7T","aTorrent"),m("ZO","Zona",u),m("#@","Invalid PeerID"),v("A","ABC"),v("O","Osprey Permaseed"),v("Q","BTQueue"),v("R","Tribler"),v("S","Shad0w"),v("T","BitTornado"),v("U","UPnP NAT"),y("M","Mainline"),y("Q","Queen Bee"),b("µTorrent","1.7.0 RC","-UT170-"),b("Azureus","1","Azureus"),b("Azureus","2.0.3.2","Azureus",5),b("Aria","2","-aria2-"),b("BitTorrent Plus!","II","PRC.P---"),b("BitTorrent Plus!","P87.P---"),b("BitTorrent Plus!","S587Plus"),b("BitTyrant (Azureus Mod)","AZ2500BT"),b("Blizzard Downloader","BLZ"),b("BTGetit","BG",10),b("BTugaXP","btuga"),b("BTugaXP","BTuga",5),b("BTugaXP","oernu"),b("Deadman Walking","BTDWV-"),b("Deadman","Deadman Walking-"),b("External Webseed","Ext"),b("G3 Torrent","-G3"),b("GreedBT","2.7.1","271-"),b("Hurricane Electric","arclight"),b("HTTP Seed","-WS"),b("JVtorrent","10-------"),b("Limewire","LIME"),b("Martini Man","martini"),b("Pando","Pando"),b("PeerApp","PEERAPP"),b("SimpleBT","btfans",4),b("Swarmy","a00---0"),b("Swarmy","a02---0"),b("Teeweety","T00---0"),b("TorrentTopia","346-"),b("XanTorrent","DansClient"),b("MediaGet","-MG1"),b("MediaGet","2.1","-MG21"),b("Amazon AWS S3","S3-"),b("BitTorrent DNA","DNA"),b("Opera","OP"),b("Opera","O"),b("Burst!","Mbrst"),b("TurboBT","turbobt"),b("BT Protocol Daemon","btpd"),b("Plus!","Plus"),b("XBT","XBT"),b("BitsOnWheels","-BOW"),b("eXeem","eX"),b("MLdonkey","-ML"),b("Bitlet","BitLet"),b("AllPeers","AP"),b("BTuga Revolution","BTM"),b("Rufus","RS",2),b("BitMagnet","BM",2),b("QVOD","QVOD"),b("Top-BT","TB"),b("Tixati","TIX"),b("folx","-FL"),b("µTorrent Mac","-UM"),b("µTorrent","-UT")}(),this.$get=["peeridUtils",function(r){var a=function(t){return e[t.substring(1,3)]},s=function(e){return n[e.substring(0,1)]},l=function(e){return o[e.substring(0,1)]},u=function(e){var t,n;for(t=0;t0):!!n.durationPromise||n.promises.length>0)},n}}]),angular.module("cgBusy").value("cgBusyDefaults",{}),angular.module("cgBusy").directive("cgBusy",["$compile","$templateCache","cgBusyDefaults","$http","_cgBusyTrackerFactory",function(e,t,n,r,o){return{restrict:"A",link:function(i,a,s){var l=a.css("position");("static"===l||""===l||void 0===l)&&a.css("position","relative");var u,c,d,f,p,h=o(),g={templateUrl:"angular-busy.html",delay:0,minDuration:0,backdrop:!0,message:"Please Wait...",wrapperClass:"cg-busy cg-busy-animation"};angular.extend(g,n),i.$watchCollection(s.cgBusy,function(n){if(n||(n={promise:null}),angular.isString(n))throw new Error("Invalid value for cg-busy. cgBusy no longer accepts string ids to represent promises/trackers.");(angular.isArray(n)||h.isPromise(n))&&(n={promise:n}),n=angular.extend(angular.copy(g),n),n.templateUrl||(n.templateUrl=g.templateUrl),angular.isArray(n.promise)||(n.promise=[n.promise]),f||(f=i.$new()),f.$message=n.message,angular.equals(h.promises,n.promise)||h.reset({promises:n.promise,delay:n.delay,minDuration:n.minDuration}),f.$cgBusyIsActive=function(){return h.active()},u&&d===n.templateUrl&&p===n.backdrop||(u&&u.remove(),c&&c.remove(),d=n.templateUrl,p=n.backdrop,r.get(d,{cache:t}).then(function(t){if(n.backdrop=void 0===n.backdrop||n.backdrop,n.backdrop){c=e('
')(f),a.append(c)}var r='
'+t.data+"
";u=e(r)(f),angular.element(u.children()[0]).css("position","absolute").css("top",0).css("left",0).css("right",0).css("bottom",0),a.append(u)},function(e){throw new Error("Template specified for cgBusy ("+n.templateUrl+") could not be loaded. "+e)}))},!0)}}}]),angular.module("cgBusy").run(["$templateCache",function(e){"use strict";e.put("angular-busy.html",'
\n\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
{{$message}}
\n\n
\n\n
')}]),angular.module("angularPromiseButtons",[]),angular.module("angularPromiseButtons").directive("promiseBtn",["angularPromiseButtons","$parse","$timeout","$compile",function(e,t,n,r){"use strict";return{restrict:"EA",priority:e.config.priority,scope:{promiseBtn:"=",promiseBtnOptions:"=?",ngDisabled:"=?"},link:function(o,i,a){function s(e){y.btnLoadingClass&&!y.addClassToCurrentBtnOnly&&e.addClass(y.btnLoadingClass),y.disableBtn&&!y.disableCurrentBtnOnly&&e.attr("disabled","disabled")}function l(e){y.minDuration&&!m||!v||(y.btnLoadingClass&&e.removeClass(y.btnLoadingClass),y.disableBtn&&!o.ngDisabled&&e.removeAttr("disabled"))}function u(e,t){o.$watch(e,function(e){m=!1,v=!1,y.minDuration&&(g=n(function(){m=!0,l(t)},y.minDuration)),e&&e.then?(s(t),e.finally?e.finally(function(){v=!0,l(t)}):e.then(function(){v=!0,l(t)}).catch(function(){v=!0,l(t)})):e&&e.$promise&&(s(t),e.$promise.finally(function(){v=!0,l(t)}))})}function c(e){return e.split(";").map(function(e){return t(e)})}function d(e){e.append(r(y.spinnerTpl)(o))}function f(e){y.addClassToCurrentBtnOnly&&e.on(y.CLICK_EVENT,function(){e.addClass(y.btnLoadingClass)}),y.disableCurrentBtnOnly&&e.on(y.CLICK_EVENT,function(){e.attr("disabled","disabled")})}function p(e,t,n){o.$evalAsync(function(){var r=c(a[t]);i.unbind(e),i.bind(e,function(e){o.$apply(function(){r.forEach(function(t){var r=t(o.$parent,{$event:e});h||(h=u(function(){return r},n))})})})})}var h,g,m,v,y=e.config;if(a.promiseBtn)d(i),f(i),u(function(){return o.promiseBtn},i);else if(a.hasOwnProperty(y.CLICK_ATTR))d(i),f(i),p(y.CLICK_EVENT,y.CLICK_ATTR,i);else if(a.hasOwnProperty(y.SUBMIT_ATTR)){var b=function(t){for(var n=[],r=t.find(e.config.BTN_SELECTOR),o=0;o',priority:0,disableBtn:!0,btnLoadingClass:"is-loading",addClassToCurrentBtnOnly:!1,disableCurrentBtnOnly:!1,minDuration:!1,CLICK_EVENT:"click",CLICK_ATTR:"ngClick",SUBMIT_EVENT:"submit",SUBMIT_ATTR:"ngSubmit",BTN_SELECTOR:"button"};return{extendConfig:function(t){e=angular.extend(e,t)},$get:function(){return{config:e}}}}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.angularDragula=e()}}(function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return o(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a=0?i.models.splice(r,1,t):i.models.push(t)}else i.models=[t];e.handleModels(a,i)}})}return{restrict:"A",scope:{dragulaScope:"=",dragulaModel:"="},link:t}}]}var o=e("dragula");t.exports=r},{dragula:10}],3:[function(e,t,n){t.exports=function(e,t){return Array.prototype.slice.call(e,t)}},{}],4:[function(e,t,n){"use strict";var r=e("ticky");t.exports=function(e,t,n){e&&r(function(){e.apply(n||null,t||[])})}},{ticky:11}],5:[function(e,t,n){"use strict";var r=e("atoa"),o=e("./debounce");t.exports=function(e,t){var n=t||{},i={};return void 0===e&&(e={}),e.on=function(t,n){return i[t]?i[t].push(n):i[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var r=arguments.length;if(1===r)delete i[t];else if(0===r)i={};else{var o=i[t];if(!o)return e;o.splice(o.indexOf(n),1)}return e},e.emit=function(){var t=r(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var a=(i[t]||[]).slice(0);return function(){var i=r(arguments),s=this||e;if("error"===t&&!1!==n.throws&&!a.length)throw 1===i.length?i[0]:i;return a.forEach(function(r){n.async?o(r,i,s):r.apply(s,i),r._once&&e.off(t,r)}),e}},e}},{"./debounce":4,atoa:3}],6:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){return e.addEventListener(t,n,r)}function o(e,t,n){return e.attachEvent("on"+t,u(e,t,n))}function i(e,t,n,r){return e.removeEventListener(t,n,r)}function a(e,t,n){var r=c(e,t,n);return r?e.detachEvent("on"+t,r):void 0}function s(e,t,n){var r=-1===p.indexOf(t)?function(){return new f(t,{detail:n})}():function(){var e;return h.createEvent?(e=h.createEvent("Event"),e.initEvent(t,!0,!0)):h.createEventObject&&(e=h.createEventObject()),e}();e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r)}function l(e,t,r){return function(t){var o=t||n.event;o.target=o.target||o.srcElement,o.preventDefault=o.preventDefault||function(){o.returnValue=!1},o.stopPropagation=o.stopPropagation||function(){o.cancelBubble=!0},o.which=o.which||o.keyCode,r.call(e,o)}}function u(e,t,n){var r=c(e,t,n)||l(e,t,n);return v.push({wrapper:r,element:e,type:t,fn:n}),r}function c(e,t,n){var r=d(e,t,n);if(r){var o=v[r].wrapper;return v.splice(r,1),o}}function d(e,t,n){var r,o;for(r=0;r0?e:le.revertOnSpill,n=oe||Q,r=p(n),o=F(r);!1===o&&t&&(oe?r&&r.removeChild(oe):Y.insertBefore(n,ne)),o||t?ue.emit("cancel",n,Y,Y):ue.emit("drop",n,r,Y,re),j()}}function j(){var e=oe||Q;P(),H(),e&&w.rm(e,"gu-transit"),ie&&clearTimeout(ie),ue.dragging=!1,se&&ue.emit("out",e,se,Y),ue.emit("dragend",e),Y=Q=oe=ne=re=ie=se=null}function F(e,t){var n;return n=void 0!==t?t:K?re:m(oe||Q),e===Y&&n===ne}function R(e,t,r){for(var o=e;o&&!function(){if(!1===n(o))return!1;var i=V(o,e),a=X(o,i,t,r);return!!F(o,a)||le.accepts(Q,o,Y,a)}();)o=p(o);return o}function z(e){function t(e){ue.emit(e,a,se,Y)}if(K){e.preventDefault();var n=y("clientX",e),r=y("clientY",e),o=n-Z,i=r-J;K.style.left=o+"px",K.style.top=i+"px";var a=oe||Q,s=l(K,n,r),u=R(s,n,r),c=null!==u&&u!==se;(c||null===u)&&(function(){se&&t("out")}(),se=u,function(){c&&t("over")}());var d=p(a);if(u===Y&&oe&&!le.copySortSource)return void(d&&d.removeChild(a));var f,h=V(u,s);if(null!==h)f=X(u,h,n,r);else{if(!0!==le.revertOnSpill||oe)return void(oe&&d&&d.removeChild(a));f=ne,u=Y}(null===f&&c||f!==a&&f!==m(a))&&(re=f,u.insertBefore(a,f),ue.emit("shadow",a,u,Y))}}function U(e){w.rm(e,"gu-hide")}function q(e){ue.dragging&&w.add(e,"gu-hide")}function W(){if(!K){var e=Q.getBoundingClientRect();K=Q.cloneNode(!0),K.style.width=d(e)+"px",K.style.height=f(e)+"px",w.rm(K,"gu-transit"),w.add(K,"gu-mirror"),le.mirrorContainer.appendChild(K),o(T,"add","mousemove",z),w.add(le.mirrorContainer,"gu-unselectable"),ue.emit("cloned",K,Q,"mirror")}}function H(){K&&(w.rm(le.mirrorContainer,"gu-unselectable"),o(T,"remove","mousemove",z),p(K).removeChild(K),K=null)}function V(e,t){for(var n=t;n!==e&&p(n)!==e;)n=p(n);return n===T?null:n}function X(e,t,n,r){function o(e){return e?m(t):t}var i="horizontal"===le.direction;return t!==e?function(){var e=t.getBoundingClientRect();return o(i?n>e.left+d(e)/2:r>e.top+f(e)/2)}():function(){var t,o,a,s=e.children.length;for(t=0;s>t;t++){if(o=e.children[t],a=o.getBoundingClientRect(),i&&a.left+a.width/2>n)return o;if(!i&&a.top+a.height/2>r)return o}return null}()}function G(e,t){return"boolean"==typeof le.copy?le.copy:le.copy(e,t)}1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var K,Y,Q,Z,J,ee,te,ne,re,oe,ie,ae,se=null,le=t||{};void 0===le.moves&&(le.moves=c),void 0===le.accepts&&(le.accepts=c),void 0===le.invalid&&(le.invalid=L),void 0===le.containers&&(le.containers=e||[]),void 0===le.isContainer&&(le.isContainer=u),void 0===le.copy&&(le.copy=!1),void 0===le.copySortSource&&(le.copySortSource=!1),void 0===le.revertOnSpill&&(le.revertOnSpill=!1),void 0===le.removeOnSpill&&(le.removeOnSpill=!1),void 0===le.direction&&(le.direction="vertical"),void 0===le.ignoreInputTextSelection&&(le.ignoreInputTextSelection=!0),void 0===le.mirrorContainer&&(le.mirrorContainer=S.body);var ue=b({containers:le.containers,start:O,end:M,cancel:I,remove:_,destroy:v,canMove:A,dragging:!1});return!0===le.removeOnSpill&&ue.on("over",U).on("out",q),r(),ue}function o(e,t,r,o){var i={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},a={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},s={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};n.navigator.pointerEnabled?C[t](e,a[r],o):n.navigator.msPointerEnabled?C[t](e,s[r],o):(C[t](e,i[r],o),C[t](e,r,o))}function i(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function a(e){var t=e.getBoundingClientRect();return{left:t.left+s("scrollLeft","pageXOffset"),top:t.top+s("scrollTop","pageYOffset")}}function s(e,t){return void 0!==n[t]?n[t]:T.clientHeight?T[e]:S.body[e]}function l(e,t,n){var r,o=e||{},i=o.className;return o.className+=" gu-hide",r=S.elementFromPoint(t,n),o.className=i,r}function u(){return!1}function c(){return!0}function d(e){return e.width||e.right-e.left}function f(e){return e.height||e.bottom-e.top}function p(e){return e.parentNode===S?null:e.parentNode}function h(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||g(e)}function g(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||g(p(e))))}function m(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function v(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}function y(e,t){var n=v(t),r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in n)&&r[e]in n&&(e=r[e]),n[e]}var b=e("contra/emitter"),C=e("crossvent"),w=e("./classes"),S=document,T=S.documentElement;t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":9,"contra/emitter":5,crossvent:6}],11:[function(e,t,n){var r;r="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},t.exports=r},{}],12:[function(e,t,n){"use strict";function r(e,t,n){function r(e){function r(){var r=o(arguments).map(a);r.unshift(t.name+"."+e),n.$emit.apply(n,r)}t.drake.on(e,r)}function a(t){return e.isElement(t)?e.element(t):t}i.forEach(r)}var o=e("atoa"),i=["cancel","cloned","drag","dragend","drop","out","over","remove","shadow","drop-model","remove-model"];t.exports=r},{atoa:3}],13:[function(e,t,n){"use strict";function r(e){return[function(){function t(t,n){if(!n.registered){var o,i,a,s;n.on("remove",function(e,r){n.models&&(s=n.models[n.containers.indexOf(r)],t.$applyAsync(function(){s.splice(i,1),n.emit("remove-model",e,r)}))}),n.on("drag",function(e,t){o=e,i=r(e,t)}),n.on("drop",function(l,u,c){n.models&&(a=r(l,u),t.$applyAsync(function(){if(s=n.models[n.containers.indexOf(c)], u===c)s.splice(a,0,s.splice(i,1)[0]);else{var t=o===l,r=n.models[n.containers.indexOf(u)],d=t?s[i]:e.copy(s[i]);t&&s.splice(i,1),r.splice(a,0,d),u.removeChild(l)}n.emit("drop-model",l,u,c)}))}),n.registered=!0}}function n(e){var t=e[i];return t||(t=e[i]={bags:[]}),t}function r(t,n){return Array.prototype.indexOf.call(e.element(n).children(),t)}function s(r,o,i){var s=l(r,o);if(s)throw new Error('Bag named: "'+o+'" already exists in same angular scope.');var u=n(r);return s={name:o,drake:i},u.bags.push(s),a(e,s,r),i.models&&t(r,i),s}function l(e,t){for(var r=n(e).bags,o=0;o