function resizeView(){var e=document.documentElement.clientHeight,t=$(".footer").length>0?$(".footer").css("height"):0,a=$(".left-menu-content").length>0?$(".left-menu-content").css("height"):0,n=$(".footer").length>0?$(".footer").width():0,i=$(".right-content").length>0?$(".right-content").width():0;2==$(".left-menu, .right-content").length&&n!=i-1&&($(".footer").length>0?$(".footer").hide():$(".footer").show()),$(".main-panel-body,.panel-cut").css("min-height",e-100),$(".caret-wxapp .panel-app").css("min-height",e-95),parseInt(a)>e-50?$(".skin-black .right-content>.content").css("min-height",parseInt(a)-parseInt(t)-30+"px"):$(".skin-black .right-content>.content").css("min-height",e-parseInt(t)-93+"px"),$(".link-group").each(function(){var e=$(this).children("a").length;$(this).css("min-width",100*e+10)})}function we7ResourceMusicFormController(e){var t=this;t.music={title:"",HQUrl:"",url:"",description:""},t.$onInit=function(){t.music.url=t.musicurl},t.$onChanges=function(e){t.music.url=e.musicurl.currentValue},t.selectVoice=function(){t.doselect()},t.ok=function(){""!=t.music.title?""!=t.music.url?e.$emit("add_music",t.music):util.message("请选择媒体文件"):util.message("标题不能为空")}}function UploadController(e,t,a,n){function i(t){n(function(){e.uploading=t})}function s(e){if(!l.uploading){var t=e[0];l.filename=t.name,l.filesize=parseInt(t.size/1024),l.files=e,i(!0);var n=l.uploadUrl;a.upload(e,n,{onProgress:o}).then(function(e){var t=JSON.parse(e);i(!1),r(),t.message&&""!=t.message?l.onUploadError({mes:t.message}):l.onUploaded()},function(e){r(),i(!1),l.onUploadError("")})}}function o(t){var a=parseInt(t.loaded/t.total*100);t.filename=t.name,t.filesize=parseInt(t.size/1024),t.progress=a,l.onProgress({file:t,progress:a}),n(function(){e.progress=a})}function r(){var e=document.getElementById("we7resourceFile");e.value=null,e.addEventListener("change",function(e){s(e.target.files)})}var l=this;l.currentFile=null,e.uploading=!0,l.uploadProgress=0,l.$onInit=function(){},document.addEventListener&&(document.addEventListener("dragenter",function(e){e.stopPropagation(),e.preventDefault()},!1),document.addEventListener("dragover",function(e){e.stopPropagation(),e.preventDefault()},!1),document.getElementById("material-Modal").addEventListener("drop",function(e){e.stopPropagation(),e.preventDefault(),s(e.dataTransfer.files)})),r()}function uiUploader(e,t){function a(e){for(var t=0;t=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function n(e,t,i){var s,o;if(e)if(I(e))for(s in e)"prototype"==s||"length"==s||"name"==s||e.hasOwnProperty&&!e.hasOwnProperty(s)||t.call(i,e[s],s,e);else if(_n(e)||a(e)){var r="object"!=typeof e;for(s=0,o=e.length;s=0&&e.splice(a,1),a}function B(e,t){function a(e,t){var a,n=t.$$hashKey;if(_n(e))for(var s=0,o=e.length;s2?V(arguments,2):[];return!I(t)||t instanceof RegExp?t:a.length?function(){return arguments.length?t.apply(e,F(a,arguments,0)):t.apply(e,a)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function H(t,a){var n=a;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:A(a)?n="$WINDOW":a&&e.document===a?n="$DOCUMENT":C(a)&&(n="$SCOPE"),n}function W(e,t){if(!v(e))return x(t)||(t=t?2:null),JSON.stringify(e,H,t)}function Y(e){return $(e)?JSON.parse(e):e}function G(e,t){e=e.replace(Nn,"");var a=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(a)?t:a}function Q(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function K(e,t,a){a=a?-1:1;var n=e.getTimezoneOffset();return Q(e,a*(G(t,n)-n))}function J(e){e=bn(e).clone();try{e.empty()}catch(e){}var t=bn("
").append(e).html();try{return e[0].nodeType===Rn?fn(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+fn(t)})}catch(e){return fn(t)}}function Z(e){try{return decodeURIComponent(e)}catch(e){}}function X(e){var t={};return n((e||"").split("&"),function(e){var a,n,i;e&&(n=e=e.replace(/\+/g,"%20"),-1!==(a=e.indexOf("="))&&(n=e.substring(0,a),i=e.substring(a+1)),b(n=Z(n))&&(i=!b(i)||Z(i),gn.call(t,n)?_n(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i))}),t}function ee(e){var t=[];return n(e,function(e,a){_n(e)?n(e,function(e){t.push(ae(a,!0)+(!0===e?"":"="+ae(e,!0)))}):t.push(ae(a,!0)+(!0===e?"":"="+ae(e,!0)))}),t.length?t.join("&"):""}function te(e){return ae(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ae(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ne(e,t){var a,n,i=On.length;for(n=0;n/,">"))}(a=a||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&a.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),a.unshift("ng");var s=Ze(a,i.strictDi);return s.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,a,n){e.$apply(function(){t.data("$injector",n),a(t)(e)})}]),s},o=/^NG_ENABLE_DEBUG_INFO!/,r=/^NG_DEFER_BOOTSTRAP!/;if(e&&o.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(o,"")),e&&!r.test(e.name))return s();e.name=e.name.replace(r,""),Cn.resumeBootstrap=function(e){return n(e,function(e){a.push(e)}),s()},I(Cn.resumeDeferredBootstrap)&&Cn.resumeDeferredBootstrap()}function oe(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function re(e){var t=Cn.element(e).injector();if(!t)throw An("test","no injector found for element argument to getTestability");return t.get("$$testability")}function le(e,t){return t=t||"_",e.replace(Ln,function(e,a){return(a?t:"")+e.toLowerCase()})}function ce(e,t,a){if(!e)throw An("areq","Argument '{0}' is {1}",t||"?",a||"required");return e}function ue(e,t,a){return a&&_n(e)&&(e=e[e.length-1]),ce(I(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function de(e,t){if("hasOwnProperty"===e)throw An("badname","hasOwnProperty is not a valid {0} name",t)}function pe(e,t,a){if(!t)return e;for(var n,i=t.split("."),s=e,o=i.length,r=0;r=0)return"...";t.push(a)}return a})}function ve(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):v(e)?"undefined":"string"!=typeof e?he(e):e}function be(){return++Wn}function ye(e){return e.replace(Qn,function(e,t,a,n){return n?a.toUpperCase():a}).replace(Kn,"Moz$1")}function we(e){return!ei.test(e)}function $e(e){var t=e.nodeType;return t===Bn||!t||t===Fn}function xe(e,t){var a,i,s,o,r=t.createDocumentFragment(),l=[];if(we(e))l.push(t.createTextNode(e));else{for(a=a||r.appendChild(t.createElement("div")),i=(ti.exec(e)||["",""])[1].toLowerCase(),s=ni[i]||ni._default,a.innerHTML=s[1]+e.replace(ai,"<$1>")+s[2],o=s[0];o--;)a=a.lastChild;l=F(l,a.childNodes),(a=r.firstChild).textContent=""}return r.textContent="",r.innerHTML="",n(l,function(e){r.appendChild(e)}),r}function ke(t,a){a=a||e.document;var n;return(n=Xn.exec(t))?[a.createElement(n[1])]:(n=xe(t,a))?n.childNodes:[]}function Ie(e,t){var a=e.parentNode;a&&a.replaceChild(t,e),t.appendChild(e)}function Se(e){if(e instanceof Se)return e;var t;if($(e)&&(e=Tn(e),t=!0),!(this instanceof Se)){if(t&&"<"!=e.charAt(0))throw Zn("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Se(e)}t?Ne(this,ke(e)):Ne(this,e)}function Ae(e){return e.cloneNode(!0)}function Ce(e,t){if(t||_e(e),e.querySelectorAll)for(var a=e.querySelectorAll("*"),n=0,i=a.length;n0||(Gn(e,t,r),delete o[t])};n(t.split(" "),function(e){l(e),Jn[e]&&l(Jn[e])})}else for(t in o)"$destroy"!==t&&Gn(e,t,r),delete o[t]}function _e(e,t){var a=e.ng339,n=a&&Hn[a];if(n){if(t)return void delete n.data[t];n.handle&&(n.events.$destroy&&n.handle({},"$destroy"),Me(e)),delete Hn[a],e.ng339=void 0}}function De(e,t){var a=e.ng339,n=a&&Hn[a];return t&&!n&&(e.ng339=a=be(),n=Hn[a]={events:{},data:{},handle:void 0}),n}function Te(e,t,a){if($e(e)){var n=b(a),i=!n&&t&&!y(t),s=!t,o=De(e,!i),r=o&&o.data;if(n)r[t]=a;else{if(s)return r;if(i)return r&&r[t];c(r,t)}}}function Ee(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Pe(e,t){t&&e.setAttribute&&n(t.split(" "),function(t){e.setAttribute("class",Tn((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Tn(t)+" "," ")))})}function je(e,t){if(t&&e.setAttribute){var a=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");n(t.split(" "),function(e){e=Tn(e),-1===a.indexOf(" "+e+" ")&&(a+=e+" ")}),e.setAttribute("class",Tn(a))}}function Ne(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var a=t.length;if("number"==typeof a&&t.window!==t){if(a)for(var n=0;n1&&(i=R(i));for(var l=0;lu&&this.remove(m.key),t},get:function(e){if(u";var n=$e.firstChild.attributes,i=n[0];n.removeNamedItem(i.name),i.value=a,e.attributes.setNamedItem(i)}function O(e,t){try{e.addClass(t)}catch(e){}}function B(t,a,n,i,s){t instanceof bn||(t=bn(t));for(var o=/\S+/,r=0,l=t.length;r").append(t).html())):a?si.clone.call(t):t,o)for(var c in o)l.data("$"+c+"Controller",o[c].instance);return B.$$addScopeInfo(l,e),a&&a(l,e),u&&u(e,l,l,i),l}}function R(e){var t=e&&e[0];return t&&"foreignobject"!==L(t)&&In.call(t).match(/SVG/)?"svg":"html"}function F(e,t,a,n,i,s){for(var o,r,l,c,u,d,p,m=[],g=0;g0);else n.push(e);return bn(n)}function G(e,t,a){return function(n,i,s,o,r){return i=Y(i[0],t,a),e(n,i,s,o,r)}}function Q(e,t,a,n,i,s){var o;return e?B(t,a,n,i,s):function(){return o||(o=B(t,a,n,i,s),t=a=s=null),o.apply(this,arguments)}}function K(e,t,a,s,o,r,l,u,d){function p(e,t,a,n){e&&(a&&(e=G(e,a,n)),e.require=g.require,e.directiveName=f,(S===g||g.$$isolateScope)&&(e=fe(e,{isolateScope:!0})),l.push(e)),t&&(a&&(t=G(t,a,n)),t.require=g.require,t.directiveName=f,(S===g||g.$$isolateScope)&&(t=fe(t,{isolateScope:!0})),u.push(t))}function m(e,i,s,o,r){var d,p,m,g,f,h,b,w,$,M;t===s?($=a,w=a.$$element):$=new j(w=bn(s),a),f=i,S?g=i.$new(!0):x&&(f=i.$parent),r&&((b=function(e,t,a,n){var i;if(C(e)||(n=a,a=t,t=e,e=void 0),T&&(i=h),a||(a=T?w.parent():w),!n)return r(e,t,i,a,O);var s=r.$$slots[n];if(s)return s(e,t,i,a,O);if(v(s))throw Ii("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',n,J(w))}).$$boundTransclude=r,b.isSlotFilled=function(e){return!!r.$$slots[e]}),k&&(h=X(w,$,b,k,g,i,S)),S&&(B.$$addScopeInfo(w,g,!0,!(A&&(A===S||A===S.$$originalDirective))),B.$$addScopeClass(w,!0),g.$$isolateBindings=S.$$isolateBindings,(M=ve(i,$,g,g.$$isolateBindings,S)).removeWatches&&g.$on("$destroy",M.removeWatches));for(var _ in h){var D=k[_],E=h[_],P=D.$$bindings.bindToController;E.identifier&&P?E.bindingInfo=ve(f,$,E.instance,P,D):E.bindingInfo={};var N=E();N!==E.instance&&(E.instance=N,w.data("$"+D.name+"Controller",N),E.bindingInfo.removeWatches&&E.bindingInfo.removeWatches(),E.bindingInfo=ve(f,$,E.instance,P,D))}for(n(k,function(e,t){var a=e.require;e.bindToController&&!_n(a)&&y(a)&&c(h[t].instance,Z(t,a,w,h))}),n(h,function(e){var t=e.instance;I(t.$onChanges)&&t.$onChanges(e.bindingInfo.initialChanges),I(t.$onInit)&&t.$onInit(),I(t.$onDestroy)&&f.$on("$destroy",function(){t.$onDestroy()})}),d=0,p=l.length;d=0;d--)he(m=u[d],m.isolateScope?g:i,w,$,m.require&&Z(m.directiveName,m.require,w,h),b);n(h,function(e){var t=e.instance;I(t.$postLink)&&t.$postLink()})}d=d||{};for(var g,f,h,b,w,$=-Number.MAX_VALUE,x=d.newScopeDirective,k=d.controllerDirectives,S=d.newIsolateScopeDirective,A=d.templateDirective,M=d.nonTlbTranscludeDirective,_=!1,D=!1,T=d.hasElementTranscludeDirective,E=a.$$element=bn(t),P=r,N=s,O=!1,U=!1,R=0,z=e.length;Rg.priority)break;if((w=g.scope)&&(g.templateUrl||(y(w)?(oe("new/isolated scope",S||x,g,E),S=g):oe("new/isolated scope",S,g,E)),x=x||g),f=g.name,!O&&(g.replace&&(g.templateUrl||g.template)||g.transclude&&!g.$$tlb)){for(var K,te=R+1;K=e[te++];)if(K.transclude&&!K.$$tlb||K.replace&&(K.templateUrl||K.template)){U=!0;break}O=!0}if(!g.templateUrl&&g.controller&&(w=g.controller,k=k||ge(),oe("'"+f+"' controller",k[f],g,E),k[f]=g),w=g.transclude)if(_=!0,g.$$tlb||(oe("transclusion",M,g,E),M=g),"element"==w)T=!0,$=g.priority,h=E,E=a.$$element=bn(B.$$createComment(f,a[f])),t=E[0],me(o,V(h),t),h[0].$$parentNode=h[0].parentNode,N=Q(U,h,s,$,P&&P.name,{nonTlbTranscludeDirective:M});else{var ae=ge();if(h=bn(Ae(t)).contents(),y(w)){h=[];var se=ge(),re=ge();n(w,function(e,t){var a="?"===e.charAt(0);e=a?e.substring(1):e,se[e]=t,ae[t]=null,re[t]=a}),n(E.contents(),function(e){var t=se[ut(L(e))];t?(re[t]=!0,ae[t]=ae[t]||[],ae[t].push(e)):h.push(e)}),n(re,function(e,t){if(!e)throw Ii("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var le in ae)ae[le]&&(ae[le]=Q(U,ae[le],s))}E.empty(),(N=Q(U,h,s,void 0,void 0,{needsNewScope:g.$$isolateScope||g.$$newScope})).$$slots=ae}if(g.template)if(D=!0,oe("template",A,g,E),A=g,w=I(g.template)?g.template(E,a):g.template,w=Ce(w),g.replace){if(P=g,h=we(w)?[]:pt(ue(g.templateNamespace,Tn(w))),t=h[0],1!=h.length||t.nodeType!==Bn)throw Ii("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f,"");me(o,E,t);var ce={$attr:{}},de=W(t,[],ce),pe=e.splice(R+1,e.length-(R+1));(S||x)&&ee(de,S,x),e=e.concat(de).concat(pe),ne(a,ce),z=e.length}else E.html(w);if(g.templateUrl)D=!0,oe("template",A,g,E),A=g,g.replace&&(P=g),m=ie(e.splice(R,e.length-R),E,a,o,_&&N,l,u,{controllerDirectives:k,newScopeDirective:x!==g&&x,newIsolateScopeDirective:S,templateDirective:A,nonTlbTranscludeDirective:M}),z=e.length;else if(g.compile)try{b=g.compile(E,a,N);var be=g.$$originalDirective||g;I(b)?p(null,q(be,b),F,H):b&&p(q(be,b.pre),q(be,b.post),F,H)}catch(e){i(e,J(E))}g.terminal&&(m.terminal=!0,$=Math.max($,g.priority))}return m.scope=x&&!0===x.scope,m.transcludeOnThisElement=_,m.templateOnThisElement=D,m.transclude=N,d.hasElementTranscludeDirective=T,m}function Z(e,t,a,i){var s;if($(t)){var o=t.match(k),r=t.substring(o[0].length),l=o[1]||o[3],c="?"===o[2];if("^^"===l?a=a.parent():(s=i&&i[r],s=s&&s.instance),!s){var u="$"+r+"Controller";s=l?a.inheritedData(u):a.data(u)}if(!s&&!c)throw Ii("ctreq","Controller '{0}', required by directive '{1}', can't be found!",r,e)}else if(_n(t)){s=[];for(var d=0,p=t.length;dg.priority)&&-1!=g.restrict.indexOf(n)){if(l&&(g=p(g,{$$start:l,$$end:c})),!g.$$bindings){var w=g.$$bindings=o(g,g.name);y(w.isolateScope)&&(g.$$isolateBindings=w.isolateScope)}e.push(g),m=g}}catch(e){i(e)}return m}function ae(e){if(u.hasOwnProperty(e))for(var a=t.get(e+d),n=0,i=a.length;n"+a+"",n.childNodes[0].childNodes;default:return a}}function de(e,t){if("srcdoc"==t)return A.HTML;var a=L(e);return"xlinkHref"==t||"form"==a&&"action"==t||"img"!=a&&("src"==t||"ngSrc"==t)?A.RESOURCE_URL:void 0}function pe(e,t,n,i,s){var o=de(e,i);s=x[i]||s;var r=a(n,!0,o,s);if(r){if("multiple"===i&&"select"===L(e))throw Ii("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",J(e));t.push({priority:100,compile:function(){return{pre:function(e,t,l){var c=l.$$observers||(l.$$observers=ge());if(S.test(i))throw Ii("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var u=l[i];u!==n&&(r=u&&a(u,!0,o,s),n=u),r&&(l[i]=r(e),(c[i]||(c[i]=[])).$$inter=!0,(l.$$observers&&l.$$observers[i].$$scope||e).$watch(r,function(e,t){"class"===i&&e!=t?l.$updateClass(e,t):l.$set(i,e)}))}}}})}}function me(t,a,n){var i,s,o=a[0],r=a.length,l=o.parentNode;if(t)for(i=0,s=t.length;i0&&D.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&D.removeClass(this.$$element,e)},$updateClass:function(e,t){var a=dt(e,t);a&&a.length&&D.addClass(this.$$element,a);var n=dt(t,e);n&&n.length&&D.removeClass(this.$$element,n)},$set:function(e,t,a,s){var o,r=ze(this.$$element[0],e),l=Fe(e),c=e;if(r?(this.$$element.prop(e,t),s=r):l&&(this[l]=t,c=l),this[e]=t,s?this.$attr[e]=s:(s=this.$attr[e])||(this.$attr[e]=s=le(e,"-")),"a"===(o=L(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===o&&"src"===e)this[e]=t=E(t,"src"===e);else if("img"===o&&"srcset"===e&&b(t)){for(var u="",d=Tn(t),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,m=/\s/.test(d)?p:/(,)/,g=d.split(m),f=Math.floor(g.length/2),h=0;h0?" ":"")+o}return a}function pt(e){var t=(e=bn(e)).length;if(t<=1)return e;for(;t--;)e[t].nodeType===zn&&xn.call(e,t,1);return e}function mt(e,t){if(t&&$(t))return t;if($(e)){var a=Mi.exec(e);if(a)return a[3]}}function gt(){var e={},a=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,a){de(t,"controller"),y(t)?c(e,t):e[t]=a},this.allowGlobals=function(){a=!0},this.$get=["$injector","$window",function(n,i){function s(e,a,n,i){if(!e||!y(e.$scope))throw t("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,a);e.$scope[a]=n}return function(t,o,r,l){var u,d,p,m;if(r=!0===r,l&&$(l)&&(m=l),$(t)){if(!(d=t.match(Mi)))throw Ci("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);p=d[1],m=m||d[3],ue(t=e.hasOwnProperty(p)?e[p]:pe(o.$scope,p,!0)||(a?pe(i,p,!0):void 0),p,!0)}if(r){var g=(_n(t)?t[t.length-1]:t).prototype;u=Object.create(g||null),m&&s(o,m,u,p||t.name);return c(function(){var e=n.invoke(t,u,o,p);return e!==u&&(y(e)||I(e))&&(u=e,m&&s(o,m,u,p||t.name)),u},{instance:u,identifier:m})}return u=n.instantiate(t,o,p),m&&s(o,m,u,p||t.name),u}}]}function ft(){this.$get=["$window",function(e){return bn(e.document)}]}function ht(){this.$get=["$log",function(e){return function(t,a){e.error.apply(e,arguments)}}]}function vt(e){return y(e)?k(e)?e.toISOString():W(e):e}function bt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return i(e,function(e,a){null===e||v(e)||(_n(e)?n(e,function(e){t.push(ae(a)+"="+ae(vt(e)))}):t.push(ae(a)+"="+ae(vt(e))))}),t.join("&")}}}function yt(){this.$get=function(){return function(e){function t(e,s,o){null===e||v(e)||(_n(e)?n(e,function(e,a){t(e,s+"["+(y(e)?a:"")+"]")}):y(e)&&!k(e)?i(e,function(e,a){t(e,s+(o?"":"[")+a+(o?"":"]"))}):a.push(ae(s)+"="+ae(vt(e))))}if(!e)return"";var a=[];return t(e,"",!0),a.join("&")}}}function wt(e,t){if($(e)){var a=e.replace(ji,"").trim();if(a){var n=t("Content-Type");(n&&0===n.indexOf(Di)||$t(a))&&(e=Y(a))}}return e}function $t(e){var t=e.match(Ei);return t&&Pi[t[0]].test(e)}function xt(e){function t(e,t){e&&(i[e]=i[e]?i[e]+", "+t:t)}var a,i=ge();return $(e)?n(e.split("\n"),function(e){a=e.indexOf(":"),t(fn(Tn(e.substr(0,a))),Tn(e.substr(a+1)))}):y(e)&&n(e,function(e,a){t(fn(a),Tn(e))}),i}function kt(e){var t;return function(a){if(t||(t=xt(e)),a){var n=t[fn(a)];return void 0===n&&(n=null),n}return t}}function It(e,t,a,i){return I(i)?i(e,t,a):(n(i,function(n){e=n(e,t,a)}),e)}function St(e){return 200<=e&&e<300}function At(){var e=this.defaults={transformResponse:[wt],transformRequest:[function(e){return!y(e)||M(e)||D(e)||_(e)?e:W(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:R(Ti),put:R(Ti),patch:R(Ti)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},a=!1;this.useApplyAsync=function(e){return b(e)?(a=!!e,this):a};var i=!0;this.useLegacyPromiseExtensions=function(e){return b(e)?(i=!!e,this):i};var s=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(o,r,l,u,d,p){function m(a){function s(e){var t=c({},e);return t.data=It(e.data,e.headers,e.status,r.transformResponse),St(e.status)?t:d.reject(t)}function o(e,t){var a,i={};return n(e,function(e,n){I(e)?null!=(a=e(t))&&(i[n]=a):i[n]=e}),i}if(!y(a))throw t("$http")("badreq","Http request configuration must be an object. Received: {0}",a);if(!$(a.url))throw t("$http")("badreq","Http request configuration url must be a string. Received: {0}",a.url);var r=c({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},a);r.headers=function(t){var a,n,i,s=e.headers,r=c({},t.headers);s=c({},s.common,s[fn(t.method)]);e:for(a in s){n=fn(a);for(i in r)if(fn(i)===n)continue e;r[a]=s[a]}return o(r,R(t))}(a),r.method=hn(r.method),r.paramSerializer=$(r.paramSerializer)?p.get(r.paramSerializer):r.paramSerializer;var l=[function(t){var a=t.headers,i=It(t.data,kt(a),void 0,t.transformRequest);return v(i)&&n(a,function(e,t){"content-type"===fn(t)&&delete a[t]}),v(t.withCredentials)&&!v(e.withCredentials)&&(t.withCredentials=e.withCredentials),g(t,i).then(s,s)},void 0],u=d.when(r);for(n(w,function(e){(e.request||e.requestError)&&l.unshift(e.request,e.requestError),(e.response||e.responseError)&&l.push(e.response,e.responseError)});l.length;){var m=l.shift(),f=l.shift();u=u.then(m,f)}return i?(u.success=function(e){return ue(e,"fn"),u.then(function(t){e(t.data,t.status,t.headers,r)}),u},u.error=function(e){return ue(e,"fn"),u.then(null,function(t){e(t.data,t.status,t.headers,r)}),u}):(u.success=Oi("success"),u.error=Oi("error")),u}function g(t,i){function s(e){if(e){var t={};return n(e,function(e,n){t[n]=function(t){function n(){e(t)}a?u.$applyAsync(n):u.$$phase?n():u.$apply(n)}}),t}}function l(e,a,n,i){(St(a=a>=-1?a:0)?$.resolve:$.reject)({data:e,status:a,headers:kt(n),config:t,statusText:i})}function c(e){l(e.data,e.status,R(e.headers()),e.statusText)}function p(){var e=m.pendingRequests.indexOf(t);-1!==e&&m.pendingRequests.splice(e,1)}var g,w,$=d.defer(),x=$.promise,k=t.headers,I=f(t.url,t.paramSerializer(t.params));if(m.pendingRequests.push(t),x.then(p,p),!t.cache&&!e.cache||!1===t.cache||"GET"!==t.method&&"JSONP"!==t.method||(g=y(t.cache)?t.cache:y(e.cache)?e.cache:h),g&&(b(w=g.get(I))?E(w)?w.then(c,c):_n(w)?l(w[1],w[0],R(w[2]),w[3]):l(w,200,{},"OK"):g.put(I,x)),v(w)){var S=Ma(t.url)?r()[t.xsrfCookieName||e.xsrfCookieName]:void 0;S&&(k[t.xsrfHeaderName||e.xsrfHeaderName]=S),o(t.method,I,i,function(e,t,n,i){function s(){l(t,e,n,i)}g&&(St(e)?g.put(I,[e,t,xt(n),i]):g.remove(I)),a?u.$applyAsync(s):(s(),u.$$phase||u.$apply())},k,t.timeout,t.withCredentials,t.responseType,s(t.eventHandlers),s(t.uploadEventHandlers))}return x}function f(e,t){return t.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+t),e}var h=l("$http");e.paramSerializer=$(e.paramSerializer)?p.get(e.paramSerializer):e.paramSerializer;var w=[];return n(s,function(e){w.unshift($(e)?p.get(e):p.invoke(e))}),m.pendingRequests=[],function(e){n(arguments,function(e){m[e]=function(t,a){return m(c({},a||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){n(arguments,function(e){m[e]=function(t,a,n){return m(c({},n||{},{method:e,url:t,data:a}))}})}("post","put","patch"),m.defaults=e,m}]}function Ct(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Mt(){this.$get=["$browser","$window","$document","$xhrFactory",function(e,t,a,n){return _t(e,n,e.defer,t.angular.callbacks,a[0])}]}function _t(e,t,a,i,s){function o(e,t,a){var n=s.createElement("script"),o=null;return n.type="text/javascript",n.src=e,n.async=!0,o=function(e){Gn(n,"load",o),Gn(n,"error",o),s.body.removeChild(n),n=null;var r=-1,l="unknown";e&&("load"!==e.type||i[t].called||(e={type:"error"}),l=e.type,r="error"===e.type?404:200),a&&a(r,l)},Yn(n,"load",o),Yn(n,"error",o),s.body.appendChild(n),o}return function(s,r,l,c,u,d,p,g,f,h){function y(){x&&x(),k&&k.abort()}function w(t,n,i,s,o){b(S)&&a.cancel(S),x=k=null,t(n,i,s,o),e.$$completeOutstandingRequest(m)}if(e.$$incOutstandingRequestCount(),r=r||e.url(),"jsonp"==fn(s)){var $="_"+(i.counter++).toString(36);i[$]=function(e){i[$].data=e,i[$].called=!0};var x=o(r.replace("JSON_CALLBACK","angular.callbacks."+$),$,function(e,t){w(c,e,i[$].data,"",t),i[$]=m})}else{var k=t(s,r);k.open(s,r,!0),n(u,function(e,t){b(e)&&k.setRequestHeader(t,e)}),k.onload=function(){var e=k.statusText||"",t="response"in k?k.response:k.responseText,a=1223===k.status?204:k.status;0===a&&(a=t?200:"file"==Ca(r).protocol?404:0),w(c,a,t,k.getAllResponseHeaders(),e)};var I=function(){w(c,-1,null,null,"")};if(k.onerror=I,k.onabort=I,n(f,function(e,t){k.addEventListener(t,e)}),n(h,function(e,t){k.upload.addEventListener(t,e)}),p&&(k.withCredentials=!0),g)try{k.responseType=g}catch(e){if("json"!==g)throw e}k.send(v(l)?null:l)}if(d>0)var S=a(y,d);else E(d)&&d.then(y)}}function Dt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(a,n,i){function s(e){return"\\\\\\"+e}function o(a){return a.replace(m,e).replace(g,t)}function r(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=W(e)}return e}function l(e,t,a,n){var i;return i=e.$watch(function(e){return i(),n(e)},t,a)}function u(s,u,m,g){if(!s.length||-1===s.indexOf(e)){var h;return u||((h=f(o(s))).exp=s,h.expressions=[],h.$$watchDelegate=l),h}g=!!g;for(var y,w,$,x=0,k=[],S=[],A=s.length,C=[],M=[];x1&&Li.throwNoconcat(s),!u||k.length){var _=function(e){for(var t=0,a=k.length;t4,p=d?V(arguments,4):[],m=t.setInterval,g=t.clearInterval,f=0,h=b(c)&&!c,v=(h?n:a).defer(),y=v.promise;return l=b(l)?l:0,y.$$intervalId=m(function(){h?i.defer(u):e.$evalAsync(u),v.notify(f++),l>0&&f>=l&&(v.resolve(f),g(y.$$intervalId),delete o[y.$$intervalId]),h||e.$apply()},r),o[y.$$intervalId]=v,y}var o={};return s.cancel=function(e){return!!(e&&e.$$intervalId in o)&&(o[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete o[e.$$intervalId],!0)},s}]}function Et(e){for(var t=e.split("/"),a=t.length;a--;)t[a]=te(t[a]);return t.join("/")}function Pt(e,t){var a=Ca(e);t.$$protocol=a.protocol,t.$$host=a.hostname,t.$$port=d(a.port)||Bi[a.protocol]||null}function jt(e,t){var a="/"!==e.charAt(0);a&&(e="/"+e);var n=Ca(e);t.$$path=decodeURIComponent(a&&"/"===n.pathname.charAt(0)?n.pathname.substring(1):n.pathname),t.$$search=X(n.search),t.$$hash=decodeURIComponent(n.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Nt(e,t){return 0===e.lastIndexOf(t,0)}function Ot(e,t){if(Nt(t,e))return t.substr(e.length)}function Lt(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function Ut(e){return e.replace(/(#.+)|#$/,"$1")}function Bt(e){return e.substr(0,Lt(e).lastIndexOf("/")+1)}function Rt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function zt(e,t,a){this.$$html5=!0,a=a||"",Pt(e,this),this.$$parse=function(e){var a=Ot(t,e);if(!$(a))throw Ri("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);jt(a,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ee(this.$$search),a=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Et(this.$$path)+(e?"?"+e:"")+a,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(n,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var s,o,r;return b(s=Ot(e,n))?(o=s,r=b(s=Ot(a,s))?t+(Ot("/",s)||s):e+o):b(s=Ot(t,n))?r=t+s:t==n+"/"&&(r=t),r&&this.$$parse(r),!!r}}function Ft(e,t,a){Pt(e,this),this.$$parse=function(n){var i,s=Ot(e,n)||Ot(t,n);v(s)||"#"!==s.charAt(0)?this.$$html5?i=s:(i="",v(s)&&(e=n,this.replace())):v(i=Ot(a,s))&&(i=s),jt(i,this),this.$$path=function(e,t,a){var n,i=/^\/[A-Z]:(\/.*)/;return Nt(t,a)&&(t=t.replace(a,"")),i.exec(t)?e:(n=i.exec(e))?n[1]:e}(this.$$path,i,e),this.$$compose()},this.$$compose=function(){var t=ee(this.$$search),n=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Et(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+(this.$$url?a+this.$$url:"")},this.$$parseLinkUrl=function(t,a){return Lt(e)==Lt(t)&&(this.$$parse(t),!0)}}function Vt(e,t,a){this.$$html5=!0,Ft.apply(this,arguments),this.$$parseLinkUrl=function(n,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var s,o;return e==Lt(n)?s=n:(o=Ot(t,n))?s=e+a+o:t===n+"/"&&(s=t),s&&this.$$parse(s),!!s},this.$$compose=function(){var t=ee(this.$$search),n=this.$$hash?"#"+te(this.$$hash):"";this.$$url=Et(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+a+this.$$url}}function qt(e){return function(){return this[e]}}function Ht(e,t){return function(a){return v(a)?this[e]:(this[e]=t(a),this.$$compose(),this)}}function Wt(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return b(t)?(e=t,this):e},this.html5Mode=function(e){return T(e)?(t.enabled=e,this):y(e)?(T(e.enabled)&&(t.enabled=e.enabled),T(e.requireBase)&&(t.requireBase=e.requireBase),T(e.rewriteLinks)&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(a,n,i,s,o){function r(e,t,a){var i=c.url(),s=c.$$state;try{n.url(e,t,a),c.$$state=n.state()}catch(e){throw c.url(i),c.$$state=s,e}}function l(e,t){a.$broadcast("$locationChangeSuccess",c.absUrl(),e,c.$$state,t)}var c,u,d,p=n.baseHref(),m=n.url();if(t.enabled){if(!p&&t.requireBase)throw Ri("nobase","$location in HTML5 mode requires a tag to be present!");d=Rt(m)+(p||"/"),u=i.history?zt:Vt}else d=Lt(m),u=Ft;var g=Bt(d);(c=new u(d,g,"#"+e)).$$parseLinkUrl(m,m),c.$$state=n.state();var f=/^\s*(javascript|mailto):/i;s.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=bn(e.target);"a"!==L(i[0]);)if(i[0]===s[0]||!(i=i.parent())[0])return;var r=i.prop("href"),l=i.attr("href")||i.attr("xlink:href");y(r)&&"[object SVGAnimatedString]"===r.toString()&&(r=Ca(r.animVal).href),f.test(r)||!r||i.attr("target")||e.isDefaultPrevented()||c.$$parseLinkUrl(r,l)&&(e.preventDefault(),c.absUrl()!=n.url()&&(a.$apply(),o.angular["ff-684208-preventDefault"]=!0))}}),Ut(c.absUrl())!=Ut(m)&&n.url(c.absUrl(),!0);var h=!0;return n.onUrlChange(function(e,t){v(Ot(g,e))?o.location.href=e:(a.$evalAsync(function(){var n,i=c.absUrl(),s=c.$$state;e=Ut(e),c.$$parse(e),c.$$state=t,n=a.$broadcast("$locationChangeStart",e,i,t,s).defaultPrevented,c.absUrl()===e&&(n?(c.$$parse(i),c.$$state=s,r(i,!1,s)):(h=!1,l(i,s)))}),a.$$phase||a.$digest())}),a.$watch(function(){var e=Ut(n.url()),t=Ut(c.absUrl()),s=n.state(),o=c.$$replace,u=e!==t||c.$$html5&&i.history&&s!==c.$$state;(h||u)&&(h=!1,a.$evalAsync(function(){var t=c.absUrl(),n=a.$broadcast("$locationChangeStart",t,e,c.$$state,s).defaultPrevented;c.absUrl()===t&&(n?(c.$$parse(e),c.$$state=s):(u&&r(t,o,s===c.$$state?null:c.$$state),l(e,s)))})),c.$$replace=!1}),c}]}function Yt(){var e=!0,t=this;this.debugEnabled=function(t){return b(t)?(e=t,this):e},this.$get=["$window",function(a){function i(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function s(e){var t=a.console||{},s=t[e]||t.log||m,o=!1;try{o=!!s.apply}catch(e){}return o?function(){var e=[];return n(arguments,function(t){e.push(i(t))}),s.apply(t,e)}:function(e,t){s(e,null==t?"":t)}}return{log:s("log"),info:s("info"),warn:s("warn"),error:s("error"),debug:function(){var a=s("debug");return function(){e&&a.apply(t,arguments)}}()}}]}function Gt(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw Fi("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function Qt(e){return e+""}function Kt(e,t){if(e){if(e.constructor===e)throw Fi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw Fi("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw Fi("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw Fi("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function Jt(e,t){if(e){if(e.constructor===e)throw Fi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===Vi||e===qi||e===Hi)throw Fi("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function Zt(e,t){if(e&&(e===(0).constructor||e===(!1).constructor||e==="".constructor||e==={}.constructor||e===[].constructor||e===Function.constructor))throw Fi("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t)}function Xt(e,t){return void 0!==e?e:t}function ea(e,t){return void 0===e?t:void 0===t?e:e+t}function ta(e,t){return!e(t).$stateful}function aa(e,t){var a,i;switch(e.type){case Qi.Program:a=!0,n(e.body,function(e){aa(e.expression,t),a=a&&e.expression.constant}),e.constant=a;break;case Qi.Literal:e.constant=!0,e.toWatch=[];break;case Qi.UnaryExpression:aa(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Qi.BinaryExpression:aa(e.left,t),aa(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Qi.LogicalExpression:aa(e.left,t),aa(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Qi.ConditionalExpression:aa(e.test,t),aa(e.alternate,t),aa(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Qi.Identifier:e.constant=!1,e.toWatch=[e];break;case Qi.MemberExpression:aa(e.object,t),e.computed&&aa(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case Qi.CallExpression:a=!!e.filter&&ta(t,e.callee.name),i=[],n(e.arguments,function(e){aa(e,t),a=a&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=a,e.toWatch=e.filter&&ta(t,e.callee.name)?i:[e];break;case Qi.AssignmentExpression:aa(e.left,t),aa(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Qi.ArrayExpression:a=!0,i=[],n(e.elements,function(e){aa(e,t),a=a&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=a,e.toWatch=i;break;case Qi.ObjectExpression:a=!0,i=[],n(e.properties,function(e){aa(e.value,t),a=a&&e.value.constant&&!e.computed,e.value.constant||i.push.apply(i,e.value.toWatch)}),e.constant=a,e.toWatch=i;break;case Qi.ThisExpression:case Qi.LocalsExpression:e.constant=!1,e.toWatch=[]}}function na(e){if(1==e.length){var t=e[0].expression,a=t.toWatch;return 1!==a.length?a:a[0]!==t?a:void 0}}function ia(e){return e.type===Qi.Identifier||e.type===Qi.MemberExpression}function sa(e){if(1===e.body.length&&ia(e.body[0].expression))return{type:Qi.AssignmentExpression,left:e.body[0].expression,right:{type:Qi.NGValueParameter},operator:"="}}function oa(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Qi.Literal||e.body[0].expression.type===Qi.ArrayExpression||e.body[0].expression.type===Qi.ObjectExpression)}function ra(e){return e.constant}function la(e,t){this.astBuilder=e,this.$filter=t}function ca(e,t){this.astBuilder=e,this.$filter=t}function ua(e){return"constructor"==e}function da(e){return I(e.valueOf)?e.valueOf():Ji.call(e)}function pa(){var e,t,a=ge(),i=ge(),s={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){s[e]=t},this.setIdentifierFns=function(a,n){return e=a,t=n,this},this.$get=["$filter",function(o){function r(e,t,n){var s,r,c;switch(n=n||w,typeof e){case"string":c=e=e.trim();var h=n?i:a;if(!(s=h[c])){":"===e.charAt(0)&&":"===e.charAt(1)&&(r=!0,e=e.substring(2));var b=n?y:v,$=new Gi(b);(s=new Ki($,o,b).parse(e)).constant?s.$$watchDelegate=g:r?s.$$watchDelegate=s.literal?p:d:s.inputs&&(s.$$watchDelegate=u),n&&(s=l(s)),h[c]=s}return f(s,t);case"function":return f(e,t);default:return f(m,t)}}function l(e){function t(t,a,n,i){var s=w;w=!0;try{return e(t,a,n,i)}finally{w=s}}if(!e)return e;t.$$watchDelegate=e.$$watchDelegate,t.assign=l(e.assign),t.constant=e.constant,t.literal=e.literal;for(var a=0;e.inputs&&a0&&r(this.$$state),n.promise},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return p(t,!0,e)},function(t){return p(t,!1,e)},t)}}),c(l.prototype,{resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(u("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){function t(e){o||(o=!0,i.$$reject(e))}var n,i=this,o=!1;try{(y(e)||I(e))&&(n=e&&e.then),I(n)?(this.promise.$$state.status=-1,n.call(e,function(e){o||(o=!0,i.$$resolve(e))},t,s(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,r(this.promise.$$state))}catch(e){t(e),a(e)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,r(this.promise.$$state)},notify:function(t){var n=this.promise.$$state.pending;this.promise.$$state.status<=0&&n&&n.length&&e(function(){for(var e,i,s=0,o=n.length;s=0&&b(s,-1),r=null}},$watchGroup:function(e,t){function a(){l=!1,c?(c=!1,t(s,s,r)):t(s,i,r)}var i=new Array(e.length),s=new Array(e.length),o=[],r=this,l=!1,c=!0;if(!e.length){var u=!0;return r.$evalAsync(function(){u&&t(s,s,r)}),function(){u=!1}}return 1===e.length?this.$watch(e[0],function(e,a,n){s[0]=e,i[0]=a,t(s,e===a?s:i,n)}):(n(e,function(e,t){var n=r.$watch(e,function(e,n){s[t]=e,i[t]=n,l||(l=!0,r.$evalAsync(a))});o.push(n)}),function(){for(;o.length;)o.shift()()})},$watchCollection:function(e,t){function n(e){var t,n,o,r;if(!v(i=e)){if(y(i))if(a(i)){s!==p&&(f=(s=p).length=0,u++),t=i.length,f!==t&&(u++,s.length=f=t);for(var l=0;lt){u++;for(n in s)gn.call(i,n)||(f--,delete s[n])}}else s!==i&&(s=i,u++);return u}}n.$stateful=!0;var i,s,o,r=this,l=t.length>1,u=0,d=c(e,n),p=[],m={},g=!0,f=0;return this.$watch(d,function(){if(g?(g=!1,t(i,i,r)):t(i,o,r),l)if(y(i))if(a(i)){o=new Array(i.length);for(var e=0;e-1)throw Zi("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=En(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(S(e))return new RegExp("^"+e.source+"$");throw Zi("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function wa(e){var t=[];return b(e)&&n(e,function(e){t.push(ya(e))}),t}function $a(){this.SCE_CONTEXTS=Xi;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=wa(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=wa(e)),t},this.$get=["$injector",function(a){function n(e,t){return"self"===e?Ma(t):!!e.exec(t.href)}function i(a){var i,s,o=Ca(a.toString()),r=!1;for(i=0,s=e.length;i to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=R(Xi);i.isEnabled=function(){return e},i.trustAs=a.trustAs,i.getTrusted=a.getTrusted,i.valueOf=a.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=g),i.parseAs=function(e,a){var n=t(a);return n.literal&&n.constant?n:t(a,function(t){return i.getTrusted(e,t)})};var s=i.parseAs,o=i.getTrusted,r=i.trustAs;return n(Xi,function(e,t){var a=fn(t);i[ye("parse_as_"+a)]=function(t){return s(e,t)},i[ye("get_trusted_"+a)]=function(t){return o(e,t)},i[ye("trust_as_"+a)]=function(t){return r(e,t)}}),i}]}function ka(){this.$get=["$window","$document",function(e,t){var a,n,i={},s=!(e.chrome&&e.chrome.app&&e.chrome.app.runtime)&&e.history&&e.history.pushState,o=d((/android (\d+)/.exec(fn((e.navigator||{}).userAgent))||[])[1]),r=/Boxee/i.test((e.navigator||{}).userAgent),l=t[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,u=l.body&&l.body.style,p=!1,m=!1;if(u){for(var g in u)if(n=c.exec(g)){a=(a=n[0])[0].toUpperCase()+a.substr(1);break}a||(a="WebkitOpacity"in u&&"webkit"),p=!!("transition"in u||a+"Transition"in u),m=!!("animation"in u||a+"Animation"in u),!o||p&&m||(p=$(u.webkitTransition),m=$(u.webkitAnimation))}return{history:!(!s||o<4||r),hasEvent:function(e){if("input"===e&&vn<=11)return!1;if(v(i[e])){var t=l.createElement("div");i[e]="on"+e in t}return i[e]},csp:Pn(),vendorPrefix:a,transitions:p,animations:m,android:o}}]}function Ia(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,a,n,i){function s(o,r){s.totalPendingRequests++,$(o)&&!v(t.get(o))||(o=i.getTrustedResourceUrl(o));var l=a.defaults&&a.defaults.transformResponse;return _n(l)?l=l.filter(function(e){return e!==wt}):l===wt&&(l=null),a.get(o,c({cache:t,transformResponse:l},e)).finally(function(){s.totalPendingRequests--}).then(function(e){return t.put(o,e.data),e.data},function(e){if(!r)throw es("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,e.status,e.statusText);return n.reject(e)})}return s.totalPendingRequests=0,s}]}function Sa(){this.$get=["$rootScope","$browser","$location",function(e,t,a){var i={};return i.findBindings=function(e,t,a){var i=[];return n(e.getElementsByClassName("ng-binding"),function(e){var s=Cn.element(e).data("$binding");s&&n(s,function(n){a?new RegExp("(^|\\s)"+En(t)+"(\\s|\\||$)").test(n)&&i.push(e):-1!=n.indexOf(t)&&i.push(e)})}),i},i.findModels=function(e,t,a){for(var n=["ng-","data-ng-","ng\\:"],i=0;i0&&(l=t(s.substring(0,r)),v(n[l])&&(n[l]=t(s.substring(r+1))));return n}}function Ta(){this.$get=Da}function Ea(e){function t(i,s){if(y(i)){var o={};return n(i,function(e,a){o[a]=t(a,e)}),o}return e.factory(i+a,s)}var a="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+a)}}],t("currency",La),t("date",Qa),t("filter",Pa),t("json",Ka),t("limitTo",Ja),t("lowercase",cs),t("number",Ua),t("orderBy",Za),t("uppercase",us)}function Pa(){return function(e,n,i){if(!a(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}var s,o;switch(Oa(n)){case"function":s=n;break;case"boolean":case"null":case"number":case"string":o=!0;case"object":s=ja(n,i,o);break;default:return e}return Array.prototype.filter.call(e,s)}}function ja(e,t,a){var n=y(e)&&"$"in e;return!0===t?t=z:I(t)||(t=function(e,t){return!v(e)&&(null===e||null===t?e===t:!(y(t)||y(e)&&!h(e))&&(e=fn(""+e),t=fn(""+t),-1!==e.indexOf(t)))}),function(i){return n&&!y(i)?Na(i,e.$,t,!1):Na(i,e,t,a)}}function Na(e,t,a,n,i){var s=Oa(e),o=Oa(t);if("string"===o&&"!"===t.charAt(0))return!Na(e,t.substring(1),a,n);if(_n(e))return e.some(function(e){return Na(e,t,a,n)});switch(s){case"object":var r;if(n){for(r in e)if("$"!==r.charAt(0)&&Na(e[r],t,a,!0))return!0;return!i&&Na(e,t,a,!1)}if("object"===o){for(r in t){var l=t[r];if(!I(l)&&!v(l)){var c="$"===r;if(!Na(c?e:e[r],l,a,c,c))return!1}}return!0}return a(e,t);case"function":return!1;default:return a(e,t)}}function Oa(e){return null===e?"null":typeof e}function La(e){var t=e.NUMBER_FORMATS;return function(e,a,n){return v(a)&&(a=t.CURRENCY_SYM),v(n)&&(n=t.PATTERNS[1].maxFrac),null==e?e:za(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,n).replace(/\u00A4/g,a)}}function Ua(e){var t=e.NUMBER_FORMATS;return function(e,a){return null==e?e:za(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,a)}}function Ba(e){var t,a,n,i,s,o=0;for((a=e.indexOf(is))>-1&&(e=e.replace(is,"")),(n=e.search(/e/i))>0?(a<0&&(a=n),a+=+e.slice(n+1),e=e.substring(0,n)):a<0&&(a=e.length),n=0;e.charAt(n)==ss;n++);if(n==(s=e.length))t=[0],a=1;else{for(s--;e.charAt(s)==ss;)s--;for(a-=n,t=[],i=0;n<=s;n++,i++)t[i]=+e.charAt(n)}return a>ns&&(t=t.splice(0,ns-1),o=a-1,a=1),{d:t,e:o,i:a}}function Ra(e,t,a,n){var i=e.d,s=i.length-e.i,o=(t=v(t)?Math.min(Math.max(a,s),n):+t)+e.i,r=i[o];if(o>0){i.splice(Math.max(e.i,o));for(var l=o;l=5)if(o-1<0){for(var u=0;u>o;u--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[o-1]++;for(;s0?m=u.splice(d,u.length):(m=u,u=[0]);var g=[];for(u.length>=t.lgSize&&g.unshift(u.splice(-t.lgSize,u.length).join(""));u.length>t.gSize;)g.unshift(u.splice(-t.gSize,u.length).join(""));u.length&&g.unshift(u.join("")),c=g.join(a),m.length&&(c+=n+m.join("")),p&&(c+="e+"+p)}return e<0&&!r?t.negPre+c+t.negSuf:t.posPre+c+t.posSuf}function Fa(e,t,a,n){var i="";for((e<0||n&&e<=0)&&(n?e=1-e:(e=-e,i="-")),e=""+e;e.length0||o>-a)&&(o+=a),0===o&&-12==a&&(o=12),Fa(o,t,n,i)}}function qa(e,t,a){return function(n,i){var s=n["get"+e]();return i[hn((a?"STANDALONE":"")+(t?"SHORT":"")+e)][s]}}function Ha(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Wa(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Ya(e){return function(t){var a=Ha(t.getFullYear()),n=+Wa(t)-+a;return Fa(1+Math.round(n/6048e5),e)}}function Ga(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function Qa(e){function t(e){var t;if(t=e.match(a)){var n=new Date(0),i=0,s=0,o=t[8]?n.setUTCFullYear:n.setFullYear,r=t[8]?n.setUTCHours:n.setHours;t[9]&&(i=d(t[9]+t[10]),s=d(t[9]+t[11])),o.call(n,d(t[1]),d(t[2])-1,d(t[3]));var l=d(t[4]||0)-i,c=d(t[5]||0)-s,u=d(t[6]||0),p=Math.round(1e3*parseFloat("0."+(t[7]||0)));return r.call(n,l,c,u,p),n}return e}var a=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(a,i,s){var o,r,l="",c=[];if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,$(a)&&(a=ls.test(a)?d(a):t(a)),x(a)&&(a=new Date(a)),!k(a)||!isFinite(a.getTime()))return a;for(;i;)(r=rs.exec(i))?i=(c=F(c,r,1)).pop():(c.push(i),i=null);var u=a.getTimezoneOffset();return s&&(u=G(s,u),a=K(a,s,!0)),n(c,function(t){o=os[t],l+=o?o(a,e.DATETIME_FORMATS,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function Ka(){return function(e,t){return v(t)&&(t=2),W(e,t)}}function Ja(){return function(e,t,a){return t=Math.abs(Number(t))===1/0?Number(t):d(t),isNaN(t)?e:(x(e)&&(e=e.toString()),_n(e)||$(e)?(a=!a||isNaN(a)?0:d(a),a=a<0?Math.max(0,e.length+a):a,t>=0?e.slice(a,a+t):0===a?e.slice(t,e.length):e.slice(Math.max(0,a+t),a)):e)}}function Za(e){function n(t,a){return a=a?-1:1,t.map(function(t){var n=1,i=g;if(I(t))i=t;else if($(t)&&("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(n="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=e(t)).constant)){var s=i();i=function(e){return e[s]}}return{get:i,descending:n*a}})}function i(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function s(e,t){return"function"==typeof e.valueOf&&(e=e.valueOf(),i(e))?e:h(e)&&(e=e.toString(),i(e))?e:t}function o(e,t){var a=typeof e;return null===e?(a="string",e="null"):"string"===a?e=e.toLowerCase():"object"===a&&(e=s(e,t)),{value:e,type:a}}function r(e,t){var a=0;return e.type===t.type?e.value!==t.value&&(a=e.value=f},o.$observe("min",function(e){f=p(e),r.$validate()})}if(b(o.max)||o.ngMax){var h;r.$validators.max=function(e){return!d(e)||v(h)||a(e)<=h},o.$observe("max",function(e){h=p(e),r.$validate()})}}}function on(e,t,a,n){var i=t[0];(n.$$hasNativeValidators=y(i.validity))&&n.$parsers.push(function(e){var a=t.prop(mn)||{};return a.badInput||a.typeMismatch?void 0:e})}function rn(e,t,a,n,i){var s;if(b(n)){if(!(s=e(n)).constant)throw eo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",a,n);return s(t)}return i}function ln(e,t){return e="ngClass"+e,["$animate",function(a){function i(e,t){var a=[];e:for(var n=0;n0||a[e])&&(a[e]=(a[e]||0)+t,a[e]===+(t>0)&&i.push(e))}),r.data("$classCounts",a),i.join(" ")}function p(e,t){var n=i(t,e),s=i(e,t);n=d(n,1),s=d(s,-1),n&&n.length&&a.addClass(r,n),s&&s.length&&a.removeClass(r,s)}function m(e){if(!0===t||(1&o.$index)===t){var a=s(e||[]);g?z(e,g)||p(s(g),a):c(a)}g=_n(e)?e.map(function(e){return R(e)}):R(e)}var g;o.$watch(l[e],m,!0),l.$observe("class",function(t){m(o.$eval(l[e]))}),"ngClass"!==e&&o.$watch("$index",function(a,n){var i=1&a;if(i!==(1&n)){var r=s(o.$eval(l[e]));i===t?c(r):u(r)}})}}}]}function cn(e){function t(e,t,a){s[e]||(s[e]={}),l(s[e],t,a)}function a(e,t,a){s[e]&&c(s[e],t,a),un(s[e])&&(s[e]=void 0)}function n(e,t){t&&!r[e]?(u.addClass(o,e),r[e]=!0):!t&&r[e]&&(u.removeClass(o,e),r[e]=!1)}function i(e,t){e=e?"-"+le(e,"-"):"",n(Qs+e,!0===t),n(Ks+e,!1===t)}var s=e.ctrl,o=e.$element,r={},l=e.set,c=e.unset,u=e.$animate;r[Ks]=!(r[Qs]=o.hasClass(Qs)),s.$setValidity=function(e,o,r){v(o)?t("$pending",e,r):a("$pending",e,r),T(o)?o?(c(s.$error,e,r),l(s.$$success,e,r)):(l(s.$error,e,r),c(s.$$success,e,r)):(c(s.$error,e,r),c(s.$$success,e,r)),s.$pending?(n(Xs,!0),s.$valid=s.$invalid=void 0,i("",null)):(n(Xs,!1),s.$valid=un(s.$error),s.$invalid=!s.$valid,i("",s.$valid));var u;i(e,u=s.$pending&&s.$pending[e]?void 0:!s.$error[e]&&(!!s.$$success[e]||null)),s.$$parentForm.$setValidity(e,u,s)}}function un(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function dn(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}var pn=/^\/(.+)\/([a-z]*)$/,mn="validity",gn=Object.prototype.hasOwnProperty,fn=function(e){return $(e)?e.toLowerCase():e},hn=function(e){return $(e)?e.toUpperCase():e};"i"!=="I".toLowerCase()&&(fn=function(e){return $(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},hn=function(e){return $(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e});var vn,bn,yn,wn,$n=[].slice,xn=[].splice,kn=[].push,In=Object.prototype.toString,Sn=Object.getPrototypeOf,An=t("ng"),Cn=e.angular||(e.angular={}),Mn=0;vn=e.document.documentMode,m.$inject=[],g.$inject=[];var _n=Array.isArray,Dn=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Tn=function(e){return $(e)?e.trim():e},En=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#(?:<\/\1>|)$/,ei=/<|&#?\w+;/,ti=/<([\w:-]+)/,ai=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ni={option:[1,'"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ni.optgroup=ni.option,ni.tbody=ni.tfoot=ni.colgroup=ni.caption=ni.thead,ni.th=ni.td;var ii=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},si=Se.prototype={ready:function(t){function a(){n||(n=!0,t())}var n=!1;"complete"===e.document.readyState?e.setTimeout(a):(this.on("DOMContentLoaded",a),Se(e).on("load",a))},toString:function(){var e=[];return n(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return bn(e>=0?this[e]:this[this.length+e])},length:0,push:kn,sort:[].sort,splice:[].splice},oi={};n("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){oi[fn(e)]=e});var ri={};n("input,select,option,textarea,button,form,details".split(","),function(e){ri[e]=!0});var li={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};n({data:Te,removeData:_e,hasData:function(e){for(var t in Hn[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,a=e.length;t=0?t.split(" "):[t],l=r.length,c=function(t,n,i){var r=s[t];r||((r=s[t]=[]).specialHandlerWrapper=n,"$destroy"===t||i||Yn(e,t,o)),r.push(a)};l--;)t=r[l],Jn[t]?(c(Jn[t],He),c(t,void 0,!0)):c(t)}},off:Me,one:function(e,t,a){(e=bn(e)).on(t,function n(){e.off(t,a),e.off(t,n)}),e.on(t,a)},replaceWith:function(e,t){var a,i=e.parentNode;Ce(e),n(new Se(t),function(t){a?i.insertBefore(t,a.nextSibling):i.replaceChild(t,e),a=t})},children:function(e){var t=[];return n(e.childNodes,function(e){e.nodeType===Bn&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var a=e.nodeType;if(a===Bn||a===Vn)for(var n=0,i=(t=new Se(t)).length;n/,di=/^[^\(]*\(\s*([^\)]*)\)/m,pi=/,/,mi=/^\s*(_?)(\S+?)\1\s*$/,gi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,fi=t("$injector");Ze.$$annotate=function(e,t,a){var i,s;if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw $(a)&&a||(a=e.name||Je(e)),fi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",a);n(Ke(e)[1].split(pi),function(e){e.replace(mi,function(e,t,a){i.push(a)})})}e.$inject=i}}else _n(e)?(ue(e[s=e.length-1],"fn"),i=e.slice(0,s)):ue(e,"fn",!0);return i};var hi=t("$animate"),vi=1,bi=function(){this.$get=m},yi=function(){var e=new Ge,t=[];this.$get=["$$AnimateRunner","$rootScope",function(a,i){function s(e,t,a){var i=!1;return t&&n(t=$(t)?t.split(" "):_n(t)?t:[],function(t){t&&(i=!0,e[t]=a)}),i}function o(){n(t,function(t){var a=e.get(t);if(a){var i=at(t.attr("class")),s="",o="";n(a,function(e,t){e!==!!i[t]&&(e?s+=(s.length?" ":"")+t:o+=(o.length?" ":"")+t)}),n(t,function(e){s&&je(e,s),o&&Pe(e,o)}),e.remove(t)}}),t.length=0}function r(a,n,r){var l=e.get(a)||{},c=s(l,n,!0),u=s(l,r,!1);(c||u)&&(e.put(a,l),t.push(a),1===t.length&&i.$$postDigest(o))}return{enabled:m,on:m,off:m,pin:m,push:function(e,t,n,i){i&&i(),(n=n||{}).from&&e.css(n.from),n.to&&e.css(n.to),(n.addClass||n.removeClass)&&r(e,n.addClass,n.removeClass);var s=new a;return s.complete(),s}}}]},wi=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(a,n){if(a&&"."!==a.charAt(0))throw hi("notcsel","Expecting class selector starting with '.' got '{0}'.",a);var i=a+"-animation";t.$$registeredAnimations[a.substr(1)]=i,e.factory(i,n)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter&&new RegExp("(\\s+|\\/)ng-animate(\\s+|\\/)").test(this.$$classNameFilter.toString())))throw hi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate");return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,a){if(a){var n=tt(a);!n||n.parentNode||n.previousElementSibling||(a=null)}a?a.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(a,n,i,s){return n=n&&bn(n),i=i&&bn(i),n=n||i.parent(),t(a,n,i),e.push(a,"enter",nt(s))},move:function(a,n,i,s){return n=n&&bn(n),i=i&&bn(i),n=n||i.parent(),t(a,n,i),e.push(a,"move",nt(s))},leave:function(t,a){return e.push(t,"leave",nt(a),function(){t.remove()})},addClass:function(t,a,n){return n=nt(n),n.addClass=et(n.addclass,a),e.push(t,"addClass",n)},removeClass:function(t,a,n){return n=nt(n),n.removeClass=et(n.removeClass,a),e.push(t,"removeClass",n)},setClass:function(t,a,n,i){return i=nt(i),i.addClass=et(i.addClass,a),i.removeClass=et(i.removeClass,n),e.push(t,"setClass",i)},animate:function(t,a,n,i,s){return s=nt(s),s.from=s.from?c(s.from,a):a,s.to=s.to?c(s.to,n):n,i=i||"ng-inline-animate",s.tempClasses=et(s.tempClasses,i),e.push(t,"animate",s)}}}]}],$i=function(){this.$get=["$$rAF",function(e){function t(t){a.push(t),a.length>1||e(function(){for(var e=0;e <= >= && || ! = |".split(" "),function(e){Wi[e]=!0});var Yi={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Gi=function(e){this.options=e};Gi.prototype={constructor:Gi,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index=55296&&a<=56319&&n>=56320&&n<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,a){a=a||this.index;var n=b(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,a)+"]":" "+a;throw Fi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,n,this.text)},readNumber:function(){for(var e="",t=this.index;this.index0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:Qi.Program,body:e}},expressionStatement:function(){return{type:Qi.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();return this.expect("=")&&(e={type:Qi.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,a=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Qi.ConditionalExpression,test:a,alternate:e,consequent:t}):a},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Qi.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Qi.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Qi.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Qi.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Qi.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Qi.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Qi.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=B(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Qi.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:Qi.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Qi.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Qi.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],a={type:Qi.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return a},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.expression())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:Qi.Identifier,name:e.text}},constant:function(){return{type:Qi.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Qi.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Qi.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Qi.ObjectExpression,properties:t}},throwError:function(e,t){throw Fi("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Fi("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Fi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,a,n){return this.peekAhead(0,e,t,a,n)},peekAhead:function(e,t,a,n,i){if(this.tokens.length>e){var s=this.tokens[e],o=s.text;if(o===t||o===a||o===n||o===i||!t&&!a&&!n&&!i)return s}return!1},expect:function(e,t,a,n){var i=this.peek(e,t,a,n);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:Qi.ThisExpression},$locals:{type:Qi.LocalsExpression}}},la.prototype={compile:function(e,t){var a=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},aa(i,a.$filter);var s,o="";if(this.stage="assign",s=sa(i)){this.state.computing="assign";var r=this.nextId();this.recurse(s,r),this.return_(r),o="fn.assign="+this.generateFunction("assign","s,v,l")}var l=na(i.body);a.stage="inputs",n(l,function(e,t){var n="fn"+t;a.state[n]={vars:[],body:[],own:{}},a.state.computing=n;var i=a.nextId();a.recurse(e,i),a.return_(i),a.state.inputs.push(n),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i);var c='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+o+this.watchFns()+"return fn;",u=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",c)(this.$filter,Gt,Kt,Jt,Qt,Zt,Xt,ea,e);return this.state=this.stage=void 0,u.literal=oa(i),u.constant=ra(i),u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,a=this;return n(t,function(t){e.push("var "+t+"="+a.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return n(this.state.filters,function(a,n){e.push(a+"=$filter("+t.escape(n)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,a,i,s,o){var r,l,c,u,d,p=this;if(i=i||m,!o&&b(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,a,i,s,!0));switch(e.type){case Qi.Program:n(e.body,function(t,a){p.recurse(t.expression,void 0,void 0,function(e){l=e}),a!==e.body.length-1?p.current().body.push(l,";"):p.return_(l)});break;case Qi.Literal:u=this.escape(e.value),this.assign(t,u),i(u);break;case Qi.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){l=e}),u=e.operator+"("+this.ifDefined(l,0)+")",this.assign(t,u),i(u);break;case Qi.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){r=e}),this.recurse(e.right,void 0,void 0,function(e){l=e}),u="+"===e.operator?this.plus(r,l):"-"===e.operator?this.ifDefined(r,0)+e.operator+this.ifDefined(l,0):"("+r+")"+e.operator+"("+l+")",this.assign(t,u),i(u);break;case Qi.LogicalExpression:t=t||this.nextId(),p.recurse(e.left,t),p.if_("&&"===e.operator?t:p.not(t),p.lazyRecurse(e.right,t)),i(t);break;case Qi.ConditionalExpression:t=t||this.nextId(),p.recurse(e.test,t),p.if_(t,p.lazyRecurse(e.alternate,t),p.lazyRecurse(e.consequent,t)),i(t);break;case Qi.Identifier:t=t||this.nextId(),a&&(a.context="inputs"===p.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),a.computed=!1,a.name=e.name),Gt(e.name),p.if_("inputs"===p.stage||p.not(p.getHasOwnProperty("l",e.name)),function(){p.if_("inputs"===p.stage||"s",function(){s&&1!==s&&p.if_(p.not(p.nonComputedMember("s",e.name)),p.lazyAssign(p.nonComputedMember("s",e.name),"{}")),p.assign(t,p.nonComputedMember("s",e.name))})},t&&p.lazyAssign(t,p.nonComputedMember("l",e.name))),(p.state.expensiveChecks||ua(e.name))&&p.addEnsureSafeObject(t),i(t);break;case Qi.MemberExpression:r=a&&(a.context=this.nextId())||this.nextId(),t=t||this.nextId(),p.recurse(e.object,r,void 0,function(){p.if_(p.notNull(r),function(){s&&1!==s&&p.addEnsureSafeAssignContext(r),e.computed?(l=p.nextId(),p.recurse(e.property,l),p.getStringValue(l),p.addEnsureSafeMemberName(l),s&&1!==s&&p.if_(p.not(p.computedMember(r,l)),p.lazyAssign(p.computedMember(r,l),"{}")),u=p.ensureSafeObject(p.computedMember(r,l)),p.assign(t,u),a&&(a.computed=!0,a.name=l)):(Gt(e.property.name),s&&1!==s&&p.if_(p.not(p.nonComputedMember(r,e.property.name)),p.lazyAssign(p.nonComputedMember(r,e.property.name),"{}")),u=p.nonComputedMember(r,e.property.name),(p.state.expensiveChecks||ua(e.property.name))&&(u=p.ensureSafeObject(u)),p.assign(t,u),a&&(a.computed=!1,a.name=e.property.name))},function(){p.assign(t,"undefined")}),i(t)},!!s);break;case Qi.CallExpression:t=t||this.nextId(),e.filter?(l=p.filter(e.callee.name),c=[],n(e.arguments,function(e){var t=p.nextId();p.recurse(e,t),c.push(t)}),u=l+"("+c.join(",")+")",p.assign(t,u),i(t)):(l=p.nextId(),r={},c=[],p.recurse(e.callee,l,r,function(){p.if_(p.notNull(l),function(){p.addEnsureSafeFunction(l),n(e.arguments,function(e){p.recurse(e,p.nextId(),void 0,function(e){c.push(p.ensureSafeObject(e))})}),r.name?(p.state.expensiveChecks||p.addEnsureSafeObject(r.context),u=p.member(r.context,r.name,r.computed)+"("+c.join(",")+")"):u=l+"("+c.join(",")+")",u=p.ensureSafeObject(u),p.assign(t,u)},function(){p.assign(t,"undefined")}),i(t)}));break;case Qi.AssignmentExpression:if(l=this.nextId(),r={},!ia(e.left))throw Fi("lval","Trying to assign a value to a non l-value");this.recurse(e.left,void 0,r,function(){p.if_(p.notNull(r.context),function(){p.recurse(e.right,l),p.addEnsureSafeObject(p.member(r.context,r.name,r.computed)),p.addEnsureSafeAssignContext(r.context),u=p.member(r.context,r.name,r.computed)+e.operator+l,p.assign(t,u),i(t||u)})},1);break;case Qi.ArrayExpression:c=[],n(e.elements,function(e){p.recurse(e,p.nextId(),void 0,function(e){c.push(e)})}),u="["+c.join(",")+"]",this.assign(t,u),i(u);break;case Qi.ObjectExpression:c=[],d=!1,n(e.properties,function(e){e.computed&&(d=!0)}),d?(t=t||this.nextId(),this.assign(t,"{}"),n(e.properties,function(e){e.computed?(r=p.nextId(),p.recurse(e.key,r)):r=e.key.type===Qi.Identifier?e.key.name:""+e.key.value,l=p.nextId(),p.recurse(e.value,l),p.assign(p.member(t,r,e.computed),l)})):(n(e.properties,function(t){p.recurse(t.value,e.constant?void 0:p.nextId(),void 0,function(e){c.push(p.escape(t.key.type===Qi.Identifier?t.key.name:""+t.key.value)+":"+e)})}),u="{"+c.join(",")+"}",this.assign(t,u)),i(t||u);break;case Qi.ThisExpression:this.assign(t,"s"),i("s");break;case Qi.LocalsExpression:this.assign(t,"l"),i("l");break;case Qi.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(e,t){var a=e+"."+t,n=this.current().own;return n.hasOwnProperty(a)||(n[a]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),n[a]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,a){if(!0===e)t();else{var n=this.current().body;n.push("if(",e,"){"),t(),n.push("}"),a&&(n.push("else{"),a(),n.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var a=/[^$_a-zA-Z0-9]/g;return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(t)?e+"."+t:e+'["'+t.replace(a,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,a){return a?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,a,n,i,s){var o=this;return function(){o.recurse(e,t,a,n,i,s)}},lazyAssign:function(e,t){var a=this;return function(){a.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if($(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Fi("esc","IMPOSSIBLE")},nextId:function(e,t){var a="v"+this.state.nextId++;return e||this.current().vars.push(a+(t?"="+t:"")),a},current:function(){return this.state[this.state.computing]}},ca.prototype={compile:function(e,t){var a=this,i=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,aa(i,a.$filter);var s,o;(s=sa(i))&&(o=this.recurse(s));var r,l=na(i.body);l&&(r=[],n(l,function(e,t){var n=a.recurse(e);e.input=n,r.push(n),e.watchId=t}));var c=[];n(i.body,function(e){c.push(a.recurse(e.expression))});var u=0===i.body.length?m:1===i.body.length?c[0]:function(e,t){var a;return n(c,function(n){a=n(e,t)}),a};return o&&(u.assign=function(e,t,a){return o(e,a,t)}),r&&(u.inputs=r),u.literal=oa(i),u.constant=ra(i),u},recurse:function(e,t,a){var i,s,o,r=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Qi.Literal:return this.value(e.value,t);case Qi.UnaryExpression:return s=this.recurse(e.argument),this["unary"+e.operator](s,t);case Qi.BinaryExpression:case Qi.LogicalExpression:return i=this.recurse(e.left),s=this.recurse(e.right),this["binary"+e.operator](i,s,t);case Qi.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Qi.Identifier:return Gt(e.name,r.expression),r.identifier(e.name,r.expensiveChecks||ua(e.name),t,a,r.expression);case Qi.MemberExpression:return i=this.recurse(e.object,!1,!!a),e.computed||(Gt(e.property.name,r.expression),s=e.property.name),e.computed&&(s=this.recurse(e.property)),e.computed?this.computedMember(i,s,t,a,r.expression):this.nonComputedMember(i,s,r.expensiveChecks,t,a,r.expression);case Qi.CallExpression:return o=[],n(e.arguments,function(e){o.push(r.recurse(e))}),e.filter&&(s=this.$filter(e.callee.name)),e.filter||(s=this.recurse(e.callee,!0)),e.filter?function(e,a,n,i){for(var r=[],l=0;l":function(e,t,a){return function(n,i,s,o){var r=e(n,i,s,o)>t(n,i,s,o);return a?{value:r}:r}},"binary<=":function(e,t,a){return function(n,i,s,o){var r=e(n,i,s,o)<=t(n,i,s,o);return a?{value:r}:r}},"binary>=":function(e,t,a){return function(n,i,s,o){var r=e(n,i,s,o)>=t(n,i,s,o);return a?{value:r}:r}},"binary&&":function(e,t,a){return function(n,i,s,o){var r=e(n,i,s,o)&&t(n,i,s,o);return a?{value:r}:r}},"binary||":function(e,t,a){return function(n,i,s,o){var r=e(n,i,s,o)||t(n,i,s,o);return a?{value:r}:r}},"ternary?:":function(e,t,a,n){return function(i,s,o,r){var l=e(i,s,o,r)?t(i,s,o,r):a(i,s,o,r);return n?{value:l}:l}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,a,n,i){return function(s,o,r,l){var c=o&&e in o?o:s;n&&1!==n&&c&&!c[e]&&(c[e]={});var u=c?c[e]:void 0;return t&&Kt(u,i),a?{context:c,name:e,value:u}:u}},computedMember:function(e,t,a,n,i){return function(s,o,r,l){var c,u,d=e(s,o,r,l);return null!=d&&(Gt(c=Qt(c=t(s,o,r,l)),i),n&&1!==n&&(Zt(d),d&&!d[c]&&(d[c]={})),Kt(u=d[c],i)),a?{context:d,name:c,value:u}:u}},nonComputedMember:function(e,t,a,n,i,s){return function(o,r,l,c){var u=e(o,r,l,c);i&&1!==i&&(Zt(u),u&&!u[t]&&(u[t]={}));var d=null!=u?u[t]:void 0;return(a||ua(t))&&Kt(d,s),n?{context:u,name:t,value:d}:d}},inputs:function(e,t){return function(a,n,i,s){return s?s[t]:e(a,n,i)}}};var Ki=function(e,t,a){this.lexer=e,this.$filter=t,this.options=a,this.ast=new Qi(e,a),this.astCompiler=a.csp?new ca(this.ast,t):new la(this.ast,t)};Ki.prototype={constructor:Ki,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var Ji=Object.prototype.valueOf,Zi=t("$sce"),Xi={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},es=t("$compile"),ts=e.document.createElement("a"),as=Ca(e.location.href);Da.$inject=["$document"],Ea.$inject=["$provide"];var ns=22,is=".",ss="0";La.$inject=["$locale"],Ua.$inject=["$locale"];var os={yyyy:Va("FullYear",4,0,!1,!0),yy:Va("FullYear",2,0,!0,!0),y:Va("FullYear",1,0,!1,!0),MMMM:qa("Month"),MMM:qa("Month",!0),MM:Va("Month",2,1),M:Va("Month",1,1),LLLL:qa("Month",!1,!0),dd:Va("Date",2),d:Va("Date",1),HH:Va("Hours",2),H:Va("Hours",1),hh:Va("Hours",2,-12),h:Va("Hours",1,-12),mm:Va("Minutes",2),m:Va("Minutes",1),ss:Va("Seconds",2),s:Va("Seconds",1),sss:Va("Milliseconds",3),EEEE:qa("Day"),EEE:qa("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,a){var n=-1*a,i=n>=0?"+":"";return i+=Fa(Math[n>0?"floor":"ceil"](n/60),2)+Fa(Math.abs(n%60),2)},ww:Ya(2),w:Ya(1),G:Ga,GG:Ga,GGG:Ga,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},rs=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,ls=/^\-?\d+$/;Qa.$inject=["$locale"];var cs=f(fn),us=f(hn);Za.$inject=["$parse"];var ds=f({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var a="[object SVGAnimatedString]"===In.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(a)||e.preventDefault()})}}}}),ps={};n(oi,function(e,t){function a(e,a,i){e.$watch(i[n],function(e){i.$set(t,!!e)})}if("multiple"!=e){var n=ut("ng-"+t),i=a;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[n]&&a(e,0,i)}),ps[n]=function(){return{restrict:"A",priority:100,link:i}}}}),n(li,function(e,t){ps[t]=function(){return{priority:100,link:function(e,a,n){if("ngPattern"===t&&"/"==n.ngPattern.charAt(0)){var i=n.ngPattern.match(pn);if(i)return void n.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(n[t],function(e){n.$set(t,e)})}}}}),n(["src","srcset","href"],function(e){var t=ut("ng-"+e);ps[t]=function(){return{priority:99,link:function(a,n,i){var s=e,o=e;"href"===e&&"[object SVGAnimatedString]"===In.call(n.prop("href"))&&(o="xlinkHref",i.$attr[o]="xlink:href",s=null),i.$observe(t,function(t){t?(i.$set(o,t),vn&&s&&n.prop(s,i[o])):"href"===e&&i.$set(o,null)})}}}});var ms={$addControl:m,$$renameControl:function(e,t){e.$name=t},$removeControl:m,$setValidity:m,$setDirty:m,$setPristine:m,$setSubmitted:m},gs="ng-submitted";en.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var fs=function(e){return["$timeout","$parse",function(t,a){function n(e){return""===e?a('this[""]').assign:a(e).assign||m}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:en,compile:function(a,i){a.addClass(Js).addClass(Qs);var s=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,a,i,o){var r=o[0];if(!("action"in i)){var l=function(t){e.$apply(function(){r.$commitViewValue(),r.$setSubmitted()}),t.preventDefault()};Yn(a[0],"submit",l),a.on("$destroy",function(){t(function(){Gn(a[0],"submit",l)},0,!1)})}(o[1]||r.$$parentForm).$addControl(r);var u=s?n(r.$name):m;s&&(u(e,r),i.$observe(s,function(t){r.$name!==t&&(u(e,void 0),r.$$parentForm.$$renameControl(r,t),(u=n(r.$name))(e,r))})),a.on("$destroy",function(){r.$$parentForm.$removeControl(r),u(e,void 0),c(r,ms)})}}}}}]},hs=fs(),vs=fs(!0),bs=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,ys=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ws=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,$s=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,xs=/^(\d{4,})-(\d{2})-(\d{2})$/,ks=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Is=/^(\d{4,})-W(\d\d)$/,Ss=/^(\d{4,})-(\d\d)$/,As=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Cs="keydown wheel mousedown",Ms=ge();n("date,datetime-local,month,time,week".split(","),function(e){Ms[e]=!0});var _s={text:function(e,t,a,n,i,s){an(e,t,a,n,i,s),tn(n)},date:sn("date",xs,nn(xs,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":sn("datetimelocal",ks,nn(ks,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:sn("time",As,nn(As,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:sn("week",Is,function(e,t){if(k(e))return e;if($(e)){Is.lastIndex=0;var a=Is.exec(e);if(a){var n=+a[1],i=+a[2],s=0,o=0,r=0,l=0,c=Ha(n),u=7*(i-1);return t&&(s=t.getHours(),o=t.getMinutes(),r=t.getSeconds(),l=t.getMilliseconds()),new Date(n,0,c.getDate()+u,s,o,r,l)}}return NaN},"yyyy-Www"),month:sn("month",Ss,nn(Ss,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,a,n,i,s){if(on(e,t,a,n),an(e,t,a,n,i,s),n.$$parserName="number",n.$parsers.push(function(e){return n.$isEmpty(e)?null:$s.test(e)?parseFloat(e):void 0}),n.$formatters.push(function(e){if(!n.$isEmpty(e)){if(!x(e))throw eo("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),b(a.min)||a.ngMin){var o;n.$validators.min=function(e){return n.$isEmpty(e)||v(o)||e>=o},a.$observe("min",function(e){b(e)&&!x(e)&&(e=parseFloat(e,10)),o=x(e)&&!isNaN(e)?e:void 0,n.$validate()})}if(b(a.max)||a.ngMax){var r;n.$validators.max=function(e){return n.$isEmpty(e)||v(r)||e<=r},a.$observe("max",function(e){b(e)&&!x(e)&&(e=parseFloat(e,10)),r=x(e)&&!isNaN(e)?e:void 0,n.$validate()})}},url:function(e,t,a,n,i,s){an(e,t,a,n,i,s),tn(n),n.$$parserName="url",n.$validators.url=function(e,t){var a=e||t;return n.$isEmpty(a)||ys.test(a)}},email:function(e,t,a,n,i,s){an(e,t,a,n,i,s),tn(n),n.$$parserName="email",n.$validators.email=function(e,t){var a=e||t;return n.$isEmpty(a)||ws.test(a)}},radio:function(e,t,a,n){v(a.name)&&t.attr("name",o());t.on("click",function(e){t[0].checked&&n.$setViewValue(a.value,e&&e.type)}),n.$render=function(){var e=a.value;t[0].checked=e==n.$viewValue},a.$observe("value",n.$render)},checkbox:function(e,t,a,n,i,s,o,r){var l=rn(r,e,"ngTrueValue",a.ngTrueValue,!0),c=rn(r,e,"ngFalseValue",a.ngFalseValue,!1);t.on("click",function(e){n.$setViewValue(t[0].checked,e&&e.type)}),n.$render=function(){t[0].checked=n.$viewValue},n.$isEmpty=function(e){return!1===e},n.$formatters.push(function(e){return z(e,l)}),n.$parsers.push(function(e){return e?l:c})},hidden:m,button:m,submit:m,reset:m,file:m},Ds=["$browser","$sniffer","$filter","$parse",function(e,t,a,n){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,s,o,r){r[0]&&(_s[fn(o.type)]||_s.text)(i,s,o,r[0],t,e,a,n)}}}}],Ts=/^(true|false|\d+)$/,Es=function(){return{restrict:"A",priority:100,compile:function(e,t){return Ts.test(t.ngValue)?function(e,t,a){a.$set("value",e.$eval(a.ngValue))}:function(e,t,a){e.$watch(a.ngValue,function(e){a.$set("value",e)})}}}},Ps=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,a,n){e.$$addBindingInfo(a,n.ngBind),a=a[0],t.$watch(n.ngBind,function(e){a.textContent=v(e)?"":e})}}}}],js=["$interpolate","$compile",function(e,t){return{compile:function(a){return t.$$addBindingClass(a),function(a,n,i){var s=e(n.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(n,s.expressions),n=n[0],i.$observe("ngBindTemplate",function(e){n.textContent=v(e)?"":e})}}}}],Ns=["$sce","$parse","$compile",function(e,t,a){return{restrict:"A",compile:function(n,i){var s=t(i.ngBindHtml),o=t(i.ngBindHtml,function(t){return e.valueOf(t)});return a.$$addBindingClass(n),function(t,n,i){a.$$addBindingInfo(n,i.ngBindHtml),t.$watch(o,function(){var a=s(t);n.html(e.getTrustedHtml(a)||"")})}}}}],Os=f({restrict:"A",require:"ngModel",link:function(e,t,a,n){n.$viewChangeListeners.push(function(){e.$eval(a.ngChange)})}}),Ls=ln("",!0),Us=ln("Odd",0),Bs=ln("Even",1),Rs=Xa({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),zs=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Fs={},Vs={blur:!0,focus:!0};n("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=ut("ng-"+e);Fs[t]=["$parse","$rootScope",function(a,n){return{restrict:"A",compile:function(i,s){var o=a(s[t],null,!0);return function(t,a){a.on(e,function(a){var i=function(){o(t,{$event:a})};Vs[e]&&n.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var qs=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(a,n,i,s,o){var r,l,c;a.$watch(i.ngIf,function(a){a?l||o(function(a,s){l=s,a[a.length++]=t.$$createComment("end ngIf",i.ngIf),r={clone:a},e.enter(a,n.parent(),n)}):(c&&(c.remove(),c=null),l&&(l.$destroy(),l=null),r&&(c=me(r.clone),e.leave(c).then(function(){c=null}),r=null))})}}}],Hs=["$templateRequest","$anchorScroll","$animate",function(e,t,a){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Cn.noop,compile:function(n,i){var s=i.ngInclude||i.src,o=i.onload||"",r=i.autoscroll;return function(n,i,l,c,u){var d,p,m,g=0,f=function(){p&&(p.remove(),p=null),d&&(d.$destroy(),d=null),m&&(a.leave(m).then(function(){p=null}),p=m,m=null)};n.$watch(s,function(s){var l=function(){!b(r)||r&&!n.$eval(r)||t()},p=++g;s?(e(s,!0).then(function(e){if(!n.$$destroyed&&p===g){var t=n.$new();c.template=e;var r=u(t,function(e){f(),a.enter(e,null,i).then(l)});m=r,(d=t).$emit("$includeContentLoaded",s),n.$eval(o)}},function(){n.$$destroyed||p===g&&(f(),n.$emit("$includeContentError",s))}),n.$emit("$includeContentRequested",s)):(f(),c.template=null)})}}}}],Ws=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(a,n,i,s){if(In.call(n[0]).match(/SVG/))return n.empty(),void t(xe(s.template,e.document).childNodes)(a,function(e){n.append(e)},{futureParentElement:n});n.html(s.template),t(n.contents())(a)}}}],Ys=Xa({priority:450,compile:function(){return{pre:function(e,t,a){e.$eval(a.ngInit)}}}}),Gs=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,a,i){var s=t.attr(a.$attr.ngList)||", ",o="false"!==a.ngTrim,r=o?Tn(s):s;i.$parsers.push(function(e){if(!v(e)){var t=[];return e&&n(e.split(r),function(e){e&&t.push(o?Tn(e):e)}),t}}),i.$formatters.push(function(e){if(_n(e))return e.join(s)}),i.$isEmpty=function(e){return!e||!e.length}}}},Qs="ng-valid",Ks="ng-invalid",Js="ng-pristine",Zs="ng-dirty",Xs="ng-pending",eo=t("ngModel"),to=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,a,i,s,o,r,l,c,u){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=u(a.name||"",!1)(e),this.$$parentForm=ms;var d,p=s(a.ngModel),g=p.assign,f=p,h=g,y=null,w=this;this.$$setOptions=function(e){if(w.$options=e,e&&e.getterSetter){var t=s(a.ngModel+"()"),n=s(a.ngModel+"($$$p)");f=function(e){var a=p(e);return I(a)&&(a=t(e)),a},h=function(e,t){I(p(e))?n(e,{$$$p:t}):g(e,t)}}else if(!p.assign)throw eo("nonassign","Expression '{0}' is non-assignable. Element: {1}",a.ngModel,J(i))},this.$render=m,this.$isEmpty=function(e){return v(e)||""===e||null===e||e!==e},this.$$updateEmptyClasses=function(e){w.$isEmpty(e)?(o.removeClass(i,"ng-not-empty"),o.addClass(i,"ng-empty")):(o.removeClass(i,"ng-empty"),o.addClass(i,"ng-not-empty"))};var $=0;cn({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:o}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,o.removeClass(i,Zs),o.addClass(i,Js)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,o.removeClass(i,Js),o.addClass(i,Zs),w.$$parentForm.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,o.setClass(i,"ng-untouched","ng-touched")},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,o.setClass(i,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){r.cancel(y),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!x(w.$modelValue)||!isNaN(w.$modelValue)){var e=w.$$lastCommittedViewValue,t=w.$$rawModelValue,a=w.$valid,n=w.$modelValue,i=w.$options&&w.$options.allowInvalid;w.$$runValidators(t,e,function(e){i||a===e||(w.$modelValue=e?t:void 0,w.$modelValue!==n&&w.$$writeModelToScope())})}},this.$$runValidators=function(e,t,a){function i(e,t){o===$&&w.$setValidity(e,t)}function s(e){o===$&&a(e)}var o=++$;!function(){var e=w.$$parserName||"parse";return v(d)?(i(e,null),!0):(d||(n(w.$validators,function(e,t){i(t,null)}),n(w.$asyncValidators,function(e,t){i(t,null)})),i(e,d),d)}()?s(!1):function(){var a=!0;return n(w.$validators,function(n,s){var o=n(e,t);a=a&&o,i(s,o)}),!!a||(n(w.$asyncValidators,function(e,t){i(t,null)}),!1)}()?function(){var a=[],o=!0;n(w.$asyncValidators,function(n,s){var r=n(e,t);if(!E(r))throw eo("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",r);i(s,void 0),a.push(r.then(function(){i(s,!0)},function(){o=!1,i(s,!1)}))}),a.length?c.all(a).then(function(){s(o)},m):s(!0)}():s(!1)},this.$commitViewValue=function(){var e=w.$viewValue;r.cancel(y),(w.$$lastCommittedViewValue!==e||""===e&&w.$$hasNativeValidators)&&(w.$$updateEmptyClasses(e),w.$$lastCommittedViewValue=e,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){w.$modelValue!==i&&w.$$writeModelToScope()}var a=w.$$lastCommittedViewValue;if(d=!v(a)||void 0)for(var n=0;n=0;t--){var n=k.items[t];Be(n.group?n.element.parentNode:n.element)}k=I.getOptions();var i={};if($&&a.prepend(m),k.items.forEach(function(e){var t;b(e.group)?((t=i[e.group])||(t=l.cloneNode(!1),S.appendChild(t),t.label=e.group,i[e.group]=t),u(e,t)):u(e,S)}),a[0].appendChild(S),f.$render(),!f.$isEmpty(e)){var s=g.readValue();(I.trackBy||h?z(e,s):e===s)||(f.$setViewValue(s),f.$render())}}for(var m,g=c[0],f=c[1],h=s.multiple,v=0,y=a.children(),w=y.length;v0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",o,e,J(a));s=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||v(s)||s.test(t)}}}}},Mo=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,a,n){if(n){var i=-1;a.$observe("maxlength",function(e){var t=d(e);i=isNaN(t)?-1:t,n.$validate()}),n.$validators.maxlength=function(e,t){return i<0||n.$isEmpty(t)||t.length<=i}}}}},_o=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,a,n){if(n){var i=0;a.$observe("minlength",function(e){i=d(e)||0,n.$validate()}),n.$validators.minlength=function(e,t){return n.$isEmpty(t)||t.length>=i}}}}};e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load angular more than once."):(!function(){var t;if(!Un){var a=jn();(yn=v(a)?e.jQuery:a?e[a]:void 0)&&yn.fn.on?(bn=yn,c(yn.fn,{scope:si.scope,isolateScope:si.isolateScope,controller:si.controller,injector:si.injector,inheritedData:si.inheritedData}),t=yn.cleanData,yn.cleanData=function(e){for(var a,n,i=0;null!=(n=e[i]);i++)(a=yn._data(n,"events"))&&a.$destroy&&yn(n).triggerHandler("$destroy");t(e)}):bn=Se,Cn.element=bn,Un=!0}}(),function(a){c(a,{bootstrap:se,copy:B,extend:c,merge:u,equals:z,element:bn,forEach:n,injector:Ze,noop:m,bind:q,toJson:W,fromJson:Y,identity:g,isUndefined:v,isDefined:b,isString:$,isFunction:I,isObject:y,isNumber:x,isElement:N,isArray:_n,version:qn,isDate:k,lowercase:fn,uppercase:hn,callbacks:{counter:0},getTestability:re,$$minErr:t,$$csp:Pn,reloadWithDebugInfo:oe}),(wn=fe(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:ba}),e.provider("$compile",lt).directive({a:ds,input:Ds,textarea:Ds,form:hs,script:wo,select:ko,style:So,option:Io,ngBind:Ps,ngBindHtml:Ns,ngBindTemplate:js,ngClass:Ls,ngClassEven:Bs,ngClassOdd:Us,ngCloak:Rs,ngController:zs,ngForm:vs,ngHide:mo,ngIf:qs,ngInclude:Hs,ngInit:Ys,ngNonBindable:so,ngPluralize:co,ngRepeat:uo,ngShow:po,ngStyle:go,ngSwitch:fo,ngSwitchWhen:ho,ngSwitchDefault:vo,ngOptions:lo,ngTransclude:yo,ngModel:ao,ngList:Gs,ngChange:Os,pattern:Co,ngPattern:Co,required:Ao,ngRequired:Ao,minlength:_o,ngMinlength:_o,maxlength:Mo,ngMaxlength:Mo,ngValue:Es,ngModelOptions:io}).directive({ngInclude:Ws}).directive(ps).directive(Fs),e.provider({$anchorScroll:Xe,$animate:wi,$animateCss:ki,$$animateJs:bi,$$animateQueue:yi,$$AnimateRunner:xi,$$animateAsyncRun:$i,$browser:st,$cacheFactory:ot,$controller:gt,$document:ft,$exceptionHandler:ht,$filter:Ea,$$forceReflow:_i,$interpolate:Dt,$interval:Tt,$http:At,$httpParamSerializer:bt,$httpParamSerializerJQLike:yt,$httpBackend:Mt,$xhrFactory:Ct,$location:Wt,$log:Yt,$parse:pa,$rootScope:va,$q:ma,$$q:ga,$sce:xa,$sceDelegate:$a,$sniffer:ka,$templateCache:rt,$templateRequest:Ia,$$testability:Sa,$timeout:Aa,$window:_a,$$rAF:ha,$$jqLite:We,$$HashMap:ci,$$cookieReader:Ta})}])}(Cn),Cn.module("ngLocale",[],["$provide",function(e){function t(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}function a(e,a){var n=a;void 0===n&&(n=Math.min(t(e),3));var i=Math.pow(10,n);return{v:n,f:(e*i|0)%i}}var n={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var i=0|e,s=a(e,t);return 1==i&&0==s.v?n.ONE:n.OTHER}})}]),bn(e.document).ready(function(){ie(e.document,se)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(''),function(e,t){"use strict";function a(e,t,a){if(!e)throw le("areq","Argument '{0}' is {1}",t||"?",a||"required");return e}function n(e,t){return e||t?e?t?(F(e)&&(e=e.join(" ")),F(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function s(e,t,a){var n="";return e=F(e)?e:e&&V(e)&&e.length?e.split(/\s+/):[],z(e,function(e,i){e&&e.length>0&&(n+=i>0?" ":"",n+=a?t+e:e+t)}),n}function o(e,t){var a=e.indexOf(t);t>=0&&e.splice(a,1)}function r(e){if(e instanceof R)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===Q)return e;break;default:return R(l(e))}if(e.nodeType===Q)return R(e)}function l(e){if(!e[0])return e;for(var t=0;t=0)&&(a=M(a)),0===a&&(a=null),n[t]=a}}),n}function M(e){var t=0,a=e.split(/\s*,\s*/);return z(a,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function _(e){return 0===e||null!=e}function D(e,t){var a=P,n=e+"s";return t?a+=te:n+=" linear all",[a,n]}function T(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var a=e[t];return a?a.total:0},get:function(t){var a=e[t];return a&&a.value},put:function(t,a){e[t]?e[t].total++:e[t]={total:1,value:a}}}}function E(e,t,a){z(a,function(a){e[a]=W(e[a])?e[a]:t.style.getPropertyValue(a)})}var P,j,N,O,L=t.noop,U=t.copy,B=t.extend,R=t.element,z=t.forEach,F=t.isArray,V=t.isString,q=t.isObject,H=t.isUndefined,W=t.isDefined,Y=t.isFunction,G=t.isElement,Q=1,K="-add",J="-remove",Z="ng-",X="ng-animate",ee="$$ngAnimateChildren";H(e.ontransitionend)&&W(e.onwebkittransitionend)?("-webkit-",P="WebkitTransition",j="webkitTransitionEnd transitionend"):(P="transition",j="transitionend"),H(e.onanimationend)&&W(e.onwebkitanimationend)?("-webkit-",N="WebkitAnimation",O="webkitAnimationEnd animationend"):(N="animation",O="animationend");var te="Duration",ae="TimingFunction",ne="PlayState",ie=N+"Delay",se=N+te,oe=P+"Delay",re=P+te,le=t.$$minErr("ng"),ce=["$$rAF",function(e){function t(e){n=n.concat(e),a()}function a(){if(n.length){for(var t=n.shift(),s=0;s0&&!(c=a.get(r))){var u=s(o,"-stagger");n.addClass(i,u),(c=C(e,i,l)).animationDuration=Math.max(c.animationDuration,0),c.transitionDuration=Math.max(c.transitionDuration,0),n.removeClass(i,u),a.put(r,c)}return c||{}}function M(e){V.push(e),h.waitUntilQuiet(function(){t.flush(),a.flush();for(var e=c(),n=0;n=ne&&n>=ie&&(Q=!0,h())}function V(){function t(){if(!Y){if(w(!1),z(re,function(e){var t=e[0],a=e[1];W.style[t]=a}),B(e,q),n.addClass(e,$e),je.recalculateTimingStyles){if(we=W.className+" "+ye,ke=y(W,we),Ee=T(W,we,ke),Pe=Ee.maxDelay,te=Math.max(Pe,0),0===(ie=Ee.maxDuration))return void h();je.hasTransitions=Ee.transitionDuration>0,je.hasAnimations=Ee.animationDuration>0}if(je.applyAnimationDelay&&(Pe="boolean"!=typeof q.delay&&_(q.delay)?parseFloat(q.delay):Pe,te=Math.max(Pe,0),Ee.animationDelay=Pe,Ne=A(Pe,!0),re.push(Ne),W.style[Ne[0]]=Ne[1]),ne=te*pe,se=ie*pe,q.easing){var t,i=q.easing;je.hasTransitions&&(t=P+ae,re.push([t,i]),W.style[t]=i),je.hasAnimations&&(t=N+ae,re.push([t,i]),W.style[t]=i)}Ee.transitionDuration&&ue.push(j),Ee.animationDuration&&ue.push(O),oe=Date.now();var s=ne+ge*se,o=oe+s,r=e.data(de)||[],c=!0;if(r.length){var u=r[0];(c=o>u.expectedEndTime)?l.cancel(u.timer):r.push(h)}if(c){var d=l(a,s,!1);r[0]={timer:d,expectedEndTime:o},r.push(h),e.data(de,r)}ue.length&&e.on(ue.join(" "),R),q.to&&(q.cleanupStyles&&E(H,W,Object.keys(q.to)),f(e,q))}}function a(){var t=e.data(de);if(t){for(var a=1;a0&&(Ee.transitionDuration&&0===Ie.transitionDuration||Ee.animationDuration&&0===Ie.animationDuration)&&Math.max(Ie.animationDelay,Ie.transitionDelay);s?l(t,Math.floor(s*De*pe),!1):t(),ee.resume=function(){i(!0)},ee.pause=function(){i(!1)}}else h()}var q=a||{};q.$$prepared||(q=p(U(q)));var H={},W=b(e);if(!W||!W.parentNode||!v.enabled())return C();var Y,G,Q,X,ee,te,ne,ie,se,oe,re=[],le=e.attr("class"),ce=i(q),ue=[];if(0===q.duration||!u.animations&&!u.transitions)return C();var fe=q.event&&F(q.event)?q.event.join(" "):q.event,ve="",be="";fe&&q.structural?ve=s(fe,Z,!0):fe&&(ve=fe),q.addClass&&(be+=s(q.addClass,K)),q.removeClass&&(be.length&&(be+=" "),be+=s(q.removeClass,J)),q.applyClassesEarly&&be.length&&B(e,q);var ye=[ve,be].join(" ").trim(),we=le+" "+ye,$e=s(ye,"-active"),xe=ce.to&&Object.keys(ce.to).length>0;if(!((q.keyframeStyle||"").length>0)&&!xe&&!ye)return C();var ke,Ie;if(q.stagger>0){var Se=parseFloat(q.stagger);Ie={transitionDelay:Se,animationDelay:Se,transitionDuration:0,animationDuration:0}}else ke=y(W,we),Ie=I(W,ye,ke,he);q.$$skipPreparationClasses||n.addClass(e,ye);var Ae;if(q.transitionStyle){var Ce=[P,q.transitionStyle];k(W,Ce),re.push(Ce)}if(q.duration>=0){Ae=W.style[P].length>0;var Me=D(q.duration,Ae);k(W,Me),re.push(Me)}if(q.keyframeStyle){var _e=[N,q.keyframeStyle];k(W,_e),re.push(_e)}var De=Ie?q.staggerIndex>=0?q.staggerIndex:t.count(ke):0,Te=0===De;Te&&!q.skipBlocking&&$(W,9999);var Ee=T(W,we,ke),Pe=Ee.maxDelay;te=Math.max(Pe,0),ie=Ee.maxDuration;var je={};if(je.hasTransitions=Ee.transitionDuration>0,je.hasAnimations=Ee.animationDuration>0,je.hasTransitionAll=je.hasTransitions&&"all"==Ee.transitionProperty,je.applyTransitionDuration=xe&&(je.hasTransitions&&!je.hasTransitionAll||je.hasAnimations&&!je.hasTransitions),je.applyAnimationDuration=q.duration&&je.hasAnimations,je.applyTransitionDelay=_(q.delay)&&(je.applyTransitionDuration||je.hasTransitions),je.applyAnimationDelay=_(q.delay)&&je.hasAnimations,je.recalculateTimingStyles=be.length>0,(je.applyTransitionDuration||je.applyAnimationDuration)&&(ie=q.duration?parseFloat(q.duration):ie,je.applyTransitionDuration&&(je.hasTransitions=!0,Ee.transitionDuration=ie,Ae=W.style[P+"Property"].length>0,re.push(D(ie,Ae))),je.applyAnimationDuration&&(je.hasAnimations=!0,Ee.animationDuration=ie,re.push(S(ie)))),0===ie&&!je.recalculateTimingStyles)return C();if(null!=q.delay){var Ne;"boolean"!=typeof q.delay&&(Ne=parseFloat(q.delay),te=Math.max(Ne,0)),je.applyTransitionDelay&&re.push(A(Ne)),je.applyAnimationDelay&&re.push(A(Ne,!0))}return null==q.duration&&Ee.transitionDuration>0&&(je.recalculateTimingStyles=je.recalculateTimingStyles||Te),ne=te*pe,se=ie*pe,q.skipBlocking||(je.blockTransition=Ee.transitionDuration>0,je.blockKeyframeAnimation=Ee.animationDuration>0&&Ie.animationDelay>0&&0===Ie.animationDuration),q.from&&(q.cleanupStyles&&E(H,W,Object.keys(q.from)),g(e,q)),je.blockTransition||je.blockKeyframeAnimation?w(ie):q.skipBlocking||$(W,!1),{$$willAnimate:!0,end:c,start:function(){if(!Y)return ee={end:c,cancel:d,resume:null,pause:null},X=new r(ee),M(V),X}}}}]}],be=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var a="ng-animate-shim",n="ng-anchor",i="ng-anchor-out",s="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,o,r,l,c,u,p){function m(e){return e.replace(/\bng-\S+\b/g,"")}function g(e,t){return V(e)&&(e=e.split(" ")),V(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function f(t,o,l){function c(e){var t={},a=b(e).getBoundingClientRect();return z(["width","height","top","left"],function(e){var n=a[e];switch(e){case"top":n+=y.scrollTop;break;case"left":n+=y.scrollLeft}t[e]=Math.floor(n)+"px"}),t}function u(e){return e.attr("class")||""}function d(){var t=m(u(l)),a=g(t,h),n=g(h,t),o=e(f,{to:c(l),addClass:s+" "+a,removeClass:i+" "+n,delay:!0});return o.$$willAnimate?o:null}function p(){f.remove(),o.removeClass(a),l.removeClass(a)}var f=R(b(o).cloneNode(!0)),h=m(u(f));o.addClass(a),l.addClass(a),f.addClass(n),$.append(f);var v,w=function(){var t=e(f,{addClass:i,delay:!0,from:c(o)});return t.$$willAnimate?t:null}();if(!w&&!(v=d()))return p();var x=w||v;return{start:function(){function e(){a&&a.end()}var t,a=x.start();return a.done(function(){if(a=null,!v&&(v=d()))return(a=v.start()).done(function(){a=null,p(),t.complete()}),a;p(),t.complete()}),t=new r({end:e,cancel:e})}}}function h(e,t,a,n){var i=v(e),s=v(t),o=[];if(z(n,function(e){var t=e.out,n=e.in,i=f(a,t,n);i&&o.push(i)}),i||s||0!==o.length)return{start:function(){function e(){z(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),s&&t.push(s.start()),z(o,function(e){t.push(e.start())});var a=new r({end:e,cancel:e});return r.all(t,function(e){a.complete(e)}),a}}}function v(t){var a=t.element,n=t.options||{};t.structural&&(n.event=t.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===t.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=I(n.event,n.preparationClasses));var i=e(a,n);return i.$$willAnimate?i:null}if(!c.animations&&!c.transitions)return L;var y=p[0].body,w=b(l),$=R(t(w)||y.contains(w)?w:y);d(u);return function(e){return e.from&&e.to?h(e.from,e.to,e.classes,e.anchors):v(e)}}]}],ye=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,a,n){function i(a){a=F(a)?a:a.split(" ");for(var n=[],i={},s=0;s0,n=(e.removeClass||"").length>0;return t?a&&n:a||n}var u=1,g=2,f=" ",v=this.rules={skip:[],cancel:[],join:[]};v.join.push(function(e,t,a){return!t.structural&&c(t)}),v.skip.push(function(e,t,a){return!t.structural&&!c(t)}),v.skip.push(function(e,t,a){return"leave"==a.event&&t.structural}),v.skip.push(function(e,t,a){return a.structural&&a.state===g&&!t.structural}),v.cancel.push(function(e,t,a){return a.structural&&t.structural}),v.cancel.push(function(e,t,a){return a.state===g&&t.structural}),v.cancel.push(function(e,t,a){if(a.structural)return!1;var n=t.addClass,i=t.removeClass,o=a.addClass,r=a.removeClass;return!(H(n)&&H(i)||H(o)&&H(r))&&(s(n,r)||s(i,o))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(i,s,f,v,$,x,k,I,S,A){function C(){var e=!1;return function(t){e?t():s.$$postDigest(function(){e=!0,t()})}}function M(e,t){return h(e,t,{})}function _(e,t,a){var n=b(t),i=b(e),s=[],o=X[a];return o&&z(o,function(e){ie.call(e.node,n)?s.push(e.callback):"leave"===a&&ie.call(e.node,i)&&s.push(e.callback)}),s}function D(e,t,a){var n=l(t);return e.filter(function(e){return!(e.node===n&&(!a||e.callback===a))})}function T(e,t){"close"!==e||t[0].parentNode||se.off(t)}function E(e,t,a){function n(t,a,n,s){S(function(){var t=_(f,e,a);t.length?i(function(){z(t,function(t){t(e,n,s)}),T(n,e)}):T(n,e)}),t.progress(a,n,s)}function l(t){w(e,$),ne(e,$),m(e,$),$.domOperation(),I.complete(!t)}var d,f,$=U(a);(e=r(e))&&(d=b(e),f=e.parent()),$=p($);var I=new k,S=C();if(F($.addClass)&&($.addClass=$.addClass.join(" ")),$.addClass&&!V($.addClass)&&($.addClass=null),F($.removeClass)&&($.removeClass=$.removeClass.join(" ")),$.removeClass&&!V($.removeClass)&&($.removeClass=null),$.from&&!q($.from)&&($.from=null),$.to&&!q($.to)&&($.to=null),!d)return l(),I;var A=[d.className,$.addClass,$.removeClass].join(" ");if(!ae(A))return l(),I;var D=["enter","move","leave"].indexOf(t)>=0,E=v[0].hidden,N=!J||E||K.get(d),B=!N&&Y.get(d)||{},R=!!B.state;if(N||R&&B.state==u||(N=!O(e,f,t)),N)return E&&n(I,t,"start"),l(),E&&n(I,t,"close"),I;D&&P(e);var H={structural:D,element:e,event:t,addClass:$.addClass,removeClass:$.removeClass,close:l,options:$,runner:I};if(R){if(o("skip",e,H,B))return B.state===g?(l(),I):(h(e,B,H),B.runner);if(o("cancel",e,H,B))if(B.state===g)B.runner.end();else{if(!B.structural)return h(e,B,H),B.runner;B.close()}else if(o("join",e,H,B)){if(B.state!==g)return y(e,D?t:null,$),t=H.event=B.event,$=h(e,B,H),B.runner;M(e,H)}}else M(e,H);var W=H.structural;if(W||(W="animate"===H.event&&Object.keys(H.options.to||{}).length>0||c(H)),!W)return l(),j(e),I;var G=(B.counter||0)+1;return H.counter=G,L(e,u,H),s.$$postDigest(function(){var a=Y.get(d),i=!a;a=a||{};var s=(e.parent()||[]).length>0&&("animate"===a.event||a.structural||c(a));if(i||a.counter!==G||!s)return i&&(ne(e,$),m(e,$)),(i||D&&a.event!==t)&&($.domOperation(),I.end()),void(s||j(e));t=!a.structural&&c(a,!0)?"setClass":a.event,L(e,g);var o=x(e,t,a.options);I.setHost(o),n(I,t,"start",{}),o.done(function(a){l(!a);var i=Y.get(d);i&&i.counter===G&&j(b(e)),n(I,t,"close",{})})}),I}function P(e){var t=b(e).querySelectorAll("["+$e+"]");z(t,function(e){var t=parseInt(e.getAttribute($e)),a=Y.get(e);if(a)switch(t){case g:a.runner.end();case u:Y.remove(e)}})}function j(e){var t=b(e);t.removeAttribute($e),Y.remove(t)}function N(e,t){return b(e)===b(t)}function O(e,t,a){var n,i=R(v[0].body),s=N(e,i)||"HTML"===e[0].nodeName,o=N(e,f),r=!1,l=K.get(b(e)),c=R.data(e[0],xe);for(c&&(t=c),t=b(t);t&&(o||(o=N(t,f)),t.nodeType===Q);){var u=Y.get(t)||{};if(!r){var d=K.get(t);if(!0===d&&!1!==l){l=!0;break}!1===d&&(l=!1),r=u.structural}if(H(n)||!0===n){var p=R.data(t,ee);W(p)&&(n=p)}if(r&&!1===n)break;if(s||(s=N(t,i)),s&&o)break;t=o||!(c=R.data(t,xe))?t.parentNode:b(c)}return(!r||n)&&!0!==l&&o&&s}function L(e,t,a){(a=a||{}).state=t;var n=b(e);n.setAttribute($e,t);var i=Y.get(n),s=i?B(i,a):a;Y.put(n,s)}var Y=new $,K=new $,J=null,Z=s.$watch(function(){return 0===I.totalPendingRequests},function(e){e&&(Z(),s.$$postDigest(function(){s.$$postDigest(function(){null===J&&(J=!0)})}))}),X={},te=n.classNameFilter(),ae=te?function(e){return te.test(e)}:function(){return!0},ne=d(S),ie=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},se={on:function(e,t,a){var n=l(t);X[e]=X[e]||[],X[e].push({node:n,callback:a}),R(t).on("$destroy",function(){Y.get(n)||se.off(e,t,a)})},off:function(e,a,n){if(1!==arguments.length||t.isString(arguments[0])){var i=X[e];i&&(X[e]=1===arguments.length?null:D(i,a,n))}else{a=arguments[0];for(var s in X)X[s]=D(X[s],a)}},pin:function(e,t){a(G(e),"element","not an element"),a(G(t),"parentElement","not an element"),e.data(xe,t)},push:function(e,t,a,n){return a=a||{},a.domOperation=n,E(e,t,a)},enabled:function(e,t){var a=arguments.length;if(0===a)t=!!J;else if(G(e)){var n=b(e),i=K.get(n);1===a?t=!i:K.put(n,!t)}else t=J=!!e;return t}};return se}]}],Ie=["$animateProvider",function(e){function t(e,t){e.data(r,t)}function a(e){e.removeData(r)}function i(e){return e.data(r)}var s="ng-animate-ref",o=this.drivers=[],r="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(e,r,l,c,u,g){function f(e){function t(e){if(e.processed)return e;e.processed=!0;var a=e.domNode,s=a.parentNode;i.put(a,e);for(var o;s;){if(o=i.get(s)){o.processed||(o=t(o));break}s=s.parentNode}return(o||n).children.push(e),e}var a,n={children:[]},i=new u;for(a=0;a=0,l=e.structural?w(i):[];if(l.length){var c=r?"to":"from";z(l,function(e){var t=e.getAttribute(s);a[t]=a[t]||{},a[t][c]={animationID:n,element:R(e)}})}else t.push(e)});var n={},i={};return z(a,function(a,s){var o=a.from,r=a.to;if(o&&r){var l=e[o.animationID],c=e[r.animationID],u=o.animationID.toString();if(!i[u]){var d=i[u]={structural:!0,beforeStart:function(){l.beforeStart(),c.beforeStart()},close:function(){l.close(),c.close()},classes:x(l.classes,c.classes),from:l,to:c,anchors:[]};d.classes.length?t.push(d):(t.push(l),t.push(c))}i[u].anchors.push({out:o.element,in:r.element})}else{var p=o?o.animationID:r.animationID,m=p.toString();n[m]||(n[m]=!0,t.push(e[p]))}}),t}function x(e,t){e=e.split(" "),t=t.split(" ");for(var a=[],n=0;n=0;t--){var a=o[t];if(l.has(a)){var n=l.get(a)(e);if(n)return n}}}function I(e,t){function a(e){var a=i(e);a&&a.setHost(t)}e.from&&e.to?(a(e.from.element),a(e.to.element)):a(e.element)}function S(){var e=i(u);!e||"leave"===d&&y.$$domOperationFired||e.end()}function A(t){u.off("$destroy",S),a(u),v(u,y),m(u,y),y.domOperation(),D&&e.removeClass(u,D),u.removeClass(X),M.complete(!t)}y=p(y);var C=["enter","move","leave"].indexOf(d)>=0,M=new c({end:function(){A()},cancel:function(){A(!0)}});if(!o.length)return A(),M;t(u,M);var _=n(u.attr("class"),n(y.addClass,y.removeClass)),D=y.tempClasses;D&&(_+=" "+D,y.tempClasses=null);var T;return C&&(T="ng-"+d+"-prepare",e.addClass(u,T)),h.push({element:u,classes:_,event:d,structural:C,options:y,beforeStart:function(){u.addClass(X),D&&e.addClass(u,D),T&&(e.removeClass(u,T),T=null)},close:A}),u.on("$destroy",S),h.length>1?M:(r.$$postDigest(function(){var e=[];z(h,function(t){i(t.element)?e.push(t):t.close()}),h.length=0;var t=$(e),a=[];z(t,function(e){a.push({domNode:b(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,a=e.close;if(i(e.anchors?e.from.element||e.to.element:e.element)){var n=k(e);n&&(t=n.start)}if(t){var s=t();s.done(function(e){a(!e)}),I(e,s)}else a()}})}),g(f(a))}),M)}}]}],Se=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,a,n,i,s){var o,r;t.$watchCollection(n.ngAnimateSwap||n.for,function(n){o&&e.leave(o),r&&(r.$destroy(),r=null),(n||0===n)&&(r=t.$new(),s(r,function(t){o=t,e.enter(t,null,a)}))})}}}];t.module("ngAnimate",[]).directive("ngAnimateSwap",Se).directive("ngAnimateChildren",ue).factory("$$rAFScheduler",ce).provider("$$animateQueue",ke).provider("$$animation",Ie).provider("$animateCss",ve).provider("$$animateCssDriver",be).provider("$$animateJs",ye).provider("$$animateJsDriver",we)}(window,window.angular),angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(e,t,a,n){var i=n.has("$animateCss")?n.get("$animateCss"):null;return{link:function(n,s,o){function r(e){return h?{width:e.scrollWidth+"px"}:{height:e.scrollHeight+"px"}}function l(){s.hasClass("collapse")&&s.hasClass("in")||t.resolve(p(n)).then(function(){s.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),i?i(s,{addClass:"in",easing:"ease",to:r(s[0])}).start().finally(c):e.addClass(s,"in",{to:r(s[0])}).then(c)})}function c(){s.removeClass("collapsing").addClass("collapse").css(v),m(n)}function u(){if(!s.hasClass("collapse")&&!s.hasClass("in"))return d();t.resolve(g(n)).then(function(){s.css(r(s[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),i?i(s,{removeClass:"in",to:b}).start().finally(d):e.removeClass(s,"in",{to:b}).then(d)})}function d(){s.css(b),s.removeClass("collapsing").addClass("collapse"),f(n)}var p=a(o.expanding),m=a(o.expanded),g=a(o.collapsing),f=a(o.collapsed),h=!1,v={},b={};(h=!!("horizontal"in o))?(v={width:"auto",height:"inherit"},b={width:"0"}):(v={width:"inherit",height:"auto"},b={height:"0"}),n.$eval(o.uibCollapse)||s.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(v),n.$watch(o.uibCollapse,function(e){e?u():l()})}}}]),angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(e,t,a){a.$observe("disabled",function(e){a.$set("tabindex",e?-1:null)})}}}),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,t,a){this.groups=[],this.closeOthers=function(n){(angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):a.closeOthers)&&angular.forEach(this.groups,function(e){e!==n&&(e.isOpen=!1)})},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",function(a){t.removeGroup(e)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,a,n){t.addClass("panel"),n.addGroup(e),e.openClass=a.openClass||"panel-open",e.panelClass=a.panelClass||"panel-default",e.$watch("isOpen",function(a){t.toggleClass(e.openClass,!!a),a&&n.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)};var i="accordiongroup-"+e.$id+"-"+Math.floor(1e4*Math.random());e.headingId=i+"-tab",e.panelId=i+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,a,n,i){n.setHeading(i(e,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:"^uibAccordionGroup",link:function(e,t,a,n){e.$watch(function(){return n[a.uibAccordionTransclude]},function(e){if(e){var a=angular.element(t[0].querySelector("uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"));a.html(""),a.append(e)}})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(e,t,a,n,i){e.closeable=!!a.close,t.addClass("alert"),a.$set("role","alert"),e.closeable&&t.addClass("alert-dismissible");var s=angular.isDefined(a.dismissOnTimeout)?n(a.dismissOnTimeout)(e.$parent):null;s&&i(function(){e.close()},parseInt(s,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(e){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,a,n,i){var s=i[0],o=i[1],r=e(n.uibUncheckable);a.find("input").css({display:"none"}),o.$render=function(){a.toggleClass(s.activeClass,angular.equals(o.$modelValue,t.$eval(n.uibBtnRadio)))},a.on(s.toggleEvent,function(){if(!n.disabled){var e=a.hasClass(s.activeClass);e&&!angular.isDefined(n.uncheckable)||t.$apply(function(){o.$setViewValue(e?null:t.$eval(n.uibBtnRadio)),o.$render()})}}),n.uibUncheckable&&t.$watch(r,function(e){n.$set("uncheckable",e?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(e,t,a,n){function i(){return o(a.btnCheckboxTrue,!0)}function s(){return o(a.btnCheckboxFalse,!1)}function o(t,a){return angular.isDefined(t)?e.$eval(t):a}var r=n[0],l=n[1];t.find("input").css({display:"none"}),l.$render=function(){t.toggleClass(r.activeClass,angular.equals(l.$modelValue,i()))},t.on(r.toggleEvent,function(){a.disabled||e.$apply(function(){l.$setViewValue(t.hasClass(r.activeClass)?s():i()),l.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(e,t,a,n,i){function s(){for(;b.length;)b.shift()}function o(e){for(var t=0;t1){f[n].element.data(h,a.direction);var c=g.getCurrentIndex();angular.isNumber(c)&&f[c].element&&f[c].element.data(h,a.direction),e.$currentTransition=!0,i.on("addClass",f[n].element,function(t,a){if("close"===a&&(e.$currentTransition=null,i.off("addClass",t),b.length)){var n=b.pop().slide,o=n.index,l=o>g.getCurrentIndex()?"next":"prev";s(),r(n,o,l)}})}e.active=a.index,v=a.index,o(n),u()}}function l(e){for(var t=0;t0&&(p=a(d,t))}function d(){var t=+e.interval;m&&!isNaN(t)&&t>0&&f.length?e.next():e.pause()}var p,m,g=this,f=g.slides=e.slides=[],h="uib-slideDirection",v=e.active,b=[],y=!1;t.addClass("carousel"),g.addSlide=function(t,a){f.push({slide:t,element:a}),f.sort(function(e,t){return+e.slide.index-+t.slide.index}),(t.index===e.active||1===f.length&&!angular.isNumber(e.active))&&(e.$currentTransition&&(e.$currentTransition=null),v=t.index,e.active=t.index,o(v),g.select(f[l(t)]),1===f.length&&e.play())},g.getCurrentIndex=function(){for(var e=0;e0&&v===a?a>=f.length?(v=f.length-1,e.active=v,o(v),g.select(f[f.length-1])):(v=a,e.active=v,o(v),g.select(f[a])):v>a&&(v--,e.active=v),0===f.length&&(v=null,e.active=null,s())},g.select=e.select=function(t,a){var n=l(t.slide);void 0===a&&(a=n>g.getCurrentIndex()?"next":"prev"),t.slide.index===v||e.$currentTransition?t&&t.slide.index!==v&&e.$currentTransition&&b.push(f[n]):r(t.slide,n,a)},e.indexOfSlide=function(e){return+e.slide.index},e.isActive=function(t){return e.active===t.slide.index},e.isPrevDisabled=function(){return 0===e.active&&e.noWrap()},e.isNextDisabled=function(){return e.active===f.length-1&&e.noWrap()},e.pause=function(){e.noPause||(m=!1,c())},e.play=function(){m||(m=!0,u())},t.on("mouseenter",e.pause),t.on("mouseleave",e.play),e.$on("$destroy",function(){y=!0,c()}),e.$watch("noTransition",function(e){i.enabled(t,!e)}),e.$watch("interval",u),e.$watchCollection("slides",function(t){t.length||(e.$currentTransition=null,s())}),e.$watch("active",function(e){if(angular.isNumber(e)&&v!==e){for(var t=0;t-1){var s=!1;e=e.split("");for(var o=i;o-1){e=e.split(""),a[i]="("+n.regex+")",e[i]="$";for(var s=i+1,o=i+n.key.length;s=e.length||"'"!==e.charAt(i+1))&&(n.push(o(e,a,i)),a=null);else if(i===e.length)for(;a28?29===a&&(e%4==0&&e%100!=0||e%400==0):3!==t&&5!==t&&8!==t&&10!==t||a<31)}function c(e){return parseInt(e,10)}function u(e,t){e=e.replace(/:/g,"");var a=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(a)?t:a}function d(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function p(e,t,a){a=a?-1:1;var n=e.getTimezoneOffset();return d(e,a*(u(t,n)-n))}var m,g,f=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){m=t.id,this.parsers={},this.formatters={},g=[{key:"yyyy",regex:"\\d{4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),a(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(e){e=+e,this.year=e<69?e+2e3:e+1900},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),a(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),a(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){var t=e.getMonth();return/^[0-9]$/.test(t)?a(e,"MM"):a(e,"M")}},{key:"MMMM",regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)},formatter:function(e){return a(e,"MMMM")}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)},formatter:function(e){return a(e,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return a(e,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return a(e,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){var t=e.getDate();return/^[1-9]$/.test(t)?a(e,"dd"):a(e,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return a(e,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return a(e,"d")}},{key:"EEEE",regex:t.DATETIME_FORMATS.DAY.join("|"),formatter:function(e){return a(e,"EEEE")}},{key:"EEE",regex:t.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(e){return a(e,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return a(e,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return a(e,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return a(e,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return a(e,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return a(e,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return a(e,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e},formatter:function(e){return a(e,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return a(e,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return a(e,"s")}},{key:"a",regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&&(this.hours=0),"PM"===e&&(this.hours+=12)},formatter:function(e){return a(e,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(e){var t=e.match(/([+-])(\d{2})(\d{2})/),a=t[1],n=t[2],i=t[3];this.hours+=c(a+n),this.minutes+=c(a+i)},formatter:function(e){return a(e,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(e){return a(e,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(e){return a(e,"w")}},{key:"GGGG",regex:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(e){return a(e,"GGGG")}},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return a(e,"GGG")}},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return a(e,"GG")}},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return a(e,"G")}}]},this.init(),this.filter=function(e,a){return angular.isDate(e)&&!isNaN(e)&&a?(a=t.DATETIME_FORMATS[a]||a,t.id!==m&&this.init(),this.formatters[a]||(this.formatters[a]=s(a)),this.formatters[a].reduce(function(t,a){return t+a(e)},"")):""},this.parse=function(a,n,s){if(!angular.isString(a)||!n)return a;n=(n=t.DATETIME_FORMATS[n]||n).replace(f,"\\$&"),t.id!==m&&this.init(),this.parsers[n]||(this.parsers[n]=i(n));var o=this.parsers[n],r=o.regex,c=o.map,u=a.match(r),d=!1;if(u&&u.length){var p,g;angular.isDate(s)&&!isNaN(s.getTime())?p={year:s.getFullYear(),month:s.getMonth(),date:s.getDate(),hours:s.getHours(),minutes:s.getMinutes(),seconds:s.getSeconds(),milliseconds:s.getMilliseconds()}:(s&&e.warn("dateparser:","baseDate is not a valid date"),p={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var h=1,v=u.length;hm.modes.indexOf(m[t]))&&(e.datepickerMode=m[t],e.datepickerOptions.datepickerMode=m[t])}):m[t]=e[t]=l[t]||null}}),e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),e.disabled=angular.isDefined(a.disabled)||!1,angular.isDefined(a.ngDisabled)&&h.push(e.$parent.$watch(a.ngDisabled,function(t){e.disabled=t,m.refreshView()})),e.isActive=function(t){return 0===m.compare(t.date,m.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(t){g=t,f=t.$options||e.datepickerOptions.ngModelOptions||l.ngModelOptions,e.datepickerOptions.initDate?(m.activeDate=d.fromTimezone(e.datepickerOptions.initDate,f.timezone)||new Date,e.$watch("datepickerOptions.initDate",function(e){e&&(g.$isEmpty(g.$modelValue)||g.$invalid)&&(m.activeDate=d.fromTimezone(e,f.timezone),m.refreshView())})):m.activeDate=new Date;var a=g.$modelValue?new Date(g.$modelValue):new Date;this.activeDate=isNaN(a)?d.fromTimezone(new Date,f.timezone):d.fromTimezone(a,f.timezone),g.$render=function(){m.render()}},this.render=function(){if(g.$viewValue){var e=new Date(g.$viewValue);!isNaN(e)?this.activeDate=d.fromTimezone(e,f.timezone):u||o.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()},this.refreshView=function(){if(this.element){e.selectedDt=null,this._refreshView(),e.activeDt&&(e.activeDateId=e.activeDt.uid);var t=g.$viewValue?new Date(g.$viewValue):null;t=d.fromTimezone(t,f.timezone),g.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,a){var n=g.$viewValue?new Date(g.$viewValue):null;n=d.fromTimezone(n,f.timezone);var i=new Date;i=d.fromTimezone(i,f.timezone);var s=this.compare(t,i),o={date:t,label:d.filter(t,a),selected:n&&0===this.compare(t,n),disabled:this.isDisabled(t),past:s<0,current:0===s,future:s>0,customClass:this.customClass(t)||null};return n&&0===this.compare(t,n)&&(e.selectedDt=o),m.activeDate&&0===this.compare(o.date,m.activeDate)&&(e.activeDt=o),o},this.isDisabled=function(t){return e.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0||e.dateDisabled&&e.dateDisabled({date:t,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var a=[];e.length>0;)a.push(e.splice(0,t));return a},e.select=function(t){if(e.datepickerMode===m.minMode){var a=g.$viewValue?d.fromTimezone(new Date(g.$viewValue),f.timezone):new Date(0,0,0,0,0,0,0);a.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a=d.toTimezone(a,f.timezone),g.$setViewValue(a),g.$render()}else m.activeDate=t,p(m.modes[m.modes.indexOf(e.datepickerMode)-1]),e.$emit("uib:datepicker.mode");e.$broadcast("uib:datepicker.focus")},e.move=function(e){var t=m.activeDate.getFullYear()+e*(m.step.years||0),a=m.activeDate.getMonth()+e*(m.step.months||0);m.activeDate.setFullYear(t,a,1),m.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===m.maxMode&&1===t||e.datepickerMode===m.minMode&&-1===t||(p(m.modes[m.modes.indexOf(e.datepickerMode)+t]),e.$emit("uib:datepicker.mode"))},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};e.$on("uib:datepicker.focus",function(){m.element[0].focus()}),e.keydown=function(t){var a=e.keys[t.which];if(a&&!t.shiftKey&&!t.altKey&&!e.disabled)if(t.preventDefault(),m.shortcutPropagation||t.stopPropagation(),"enter"===a||"space"===a){if(m.isDisabled(m.activeDate))return;e.select(m.activeDate)}else!t.ctrlKey||"up"!==a&&"down"!==a?(m.handleKeyDown(a,t),m.refreshView()):e.toggleMode("up"===a?1:-1)},t.on("keydown",function(t){e.$apply(function(){e.keydown(t)})}),e.$on("$destroy",function(){for(;h.length;)h.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(e,t,a){function n(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?s[t]:29}function i(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var a=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((a-t)/864e5)/7)+1}var s=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),e.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(e,t){for(var a,n=new Array(t),i=new Date(e),s=0;s0?7-o:-o,l=new Date(s);r>0&&l.setDate(1-r);for(var c=this.getDates(l,42),u=0;u<42;u++)c[u]=angular.extend(this.createDateObject(c[u],this.formatDay),{secondary:c[u].getMonth()!==n,uid:e.uniqueId+"-"+u});e.labels=new Array(7);for(var d=0;d<7;d++)e.labels[d]={abbr:a(c[d].date,this.formatDayHeader),full:a(c[d].date,"EEEE")};if(e.title=a(this.activeDate,this.formatDayTitle),e.rows=this.split(c,7),e.showWeeks){e.weekNumbers=[];for(var p=(11-this.startingDay)%7,m=e.rows.length,g=0;g3?this.monthColumns-2:1},this.compare=function(e,t){var a=new Date(e.getFullYear(),e.getMonth()),n=new Date(t.getFullYear(),t.getMonth());return a.setFullYear(e.getFullYear()),n.setFullYear(t.getFullYear()),a-n},this.handleKeyDown=function(e,t){var a=this.activeDate.getMonth();if("left"===e)a-=1;else if("up"===e)a-=this.monthColumns;else if("right"===e)a+=1;else if("down"===e)a+=this.monthColumns;else if("pageup"===e||"pagedown"===e){var n=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(n)}else"home"===e?a=0:"end"===e&&(a=11);this.activeDate.setMonth(a)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(e,t,a){function n(e){return parseInt((e-1)/s,10)*s+1}var i,s;this.element=t,this.yearpickerInit=function(){i=this.yearColumns,s=this.yearRows*i,this.step={years:s}},this._refreshView=function(){for(var t,a=new Array(s),o=0,r=n(this.activeDate.getFullYear());o
');e.find("body").append(o),a=o[0].offsetWidth-o[0].clientWidth,a=isFinite(a)?a:0,o.remove()}return a},scrollbarPadding:function(e){e=this.getRawNode(e);var a=t.getComputedStyle(e),n=this.parseStyle(a.paddingRight),i=this.parseStyle(a.paddingBottom),s=this.scrollParent(e,!1,!0),r=this.scrollbarWidth(s,o.test(s.tagName));return{scrollbarWidth:r,widthOverflow:s.scrollWidth>s.clientWidth,right:n+r,originalRight:n,heightOverflow:s.scrollHeight>s.clientHeight,bottom:i+r,originalBottom:i}},isScrollable:function(e,a){e=this.getRawNode(e);var n=a?i.hidden:i.normal,s=t.getComputedStyle(e);return n.test(s.overflow+s.overflowY+s.overflowX)},scrollParent:function(a,n,s){a=this.getRawNode(a);var o=n?i.hidden:i.normal,r=e[0].documentElement,l=t.getComputedStyle(a);if(s&&o.test(l.overflow+l.overflowY+l.overflowX))return a;var c="absolute"===l.position,u=a.parentElement||r;if(u===r||"fixed"===l.position)return r;for(;u.parentElement&&u!==r;){var d=t.getComputedStyle(u);if(c&&"static"!==d.position&&(c=!1),!c&&o.test(d.overflow+d.overflowY+d.overflowX))break;u=u.parentElement}return u},position:function(a,n){a=this.getRawNode(a);var i=this.offset(a);if(n){var s=t.getComputedStyle(a);i.top-=this.parseStyle(s.marginTop),i.left-=this.parseStyle(s.marginLeft)}var o=this.offsetParent(a),r={top:0,left:0};return o!==e[0].documentElement&&((r=this.offset(o)).top+=o.clientTop-o.scrollTop,r.left+=o.clientLeft-o.scrollLeft),{width:Math.round(angular.isNumber(i.width)?i.width:a.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:a.offsetHeight),top:Math.round(i.top-r.top),left:Math.round(i.left-r.left)}},offset:function(a){var n=(a=this.getRawNode(a)).getBoundingClientRect();return{width:Math.round(angular.isNumber(n.width)?n.width:a.offsetWidth),height:Math.round(angular.isNumber(n.height)?n.height:a.offsetHeight),top:Math.round(n.top+(t.pageYOffset||e[0].documentElement.scrollTop)),left:Math.round(n.left+(t.pageXOffset||e[0].documentElement.scrollLeft))}},viewportOffset:function(a,n,i){i=!1!==i;var s=(a=this.getRawNode(a)).getBoundingClientRect(),o={top:0,left:0,bottom:0,right:0},r=n?e[0].documentElement:this.scrollParent(a),l=r.getBoundingClientRect();if(o.top=l.top+r.clientTop,o.left=l.left+r.clientLeft,r===e[0].documentElement&&(o.top+=t.pageYOffset,o.left+=t.pageXOffset),o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,i){var c=t.getComputedStyle(r);o.top+=this.parseStyle(c.paddingTop),o.bottom-=this.parseStyle(c.paddingBottom),o.left+=this.parseStyle(c.paddingLeft),o.right-=this.parseStyle(c.paddingRight)}return{top:Math.round(s.top-o.top),bottom:Math.round(o.bottom-s.bottom),left:Math.round(s.left-o.left),right:Math.round(o.right-s.right)}},parsePlacement:function(e){var t=s.auto.test(e);return t&&(e=e.replace(s.auto,"")),e=e.split("-"),e[0]=e[0]||"top",s.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",s.secondary.test(e[1])||(e[1]="center"),e[2]=!!t,e},positionElements:function(e,a,n,i){e=this.getRawNode(e),a=this.getRawNode(a);var o=angular.isDefined(a.offsetWidth)?a.offsetWidth:a.prop("offsetWidth"),r=angular.isDefined(a.offsetHeight)?a.offsetHeight:a.prop("offsetHeight");n=this.parsePlacement(n);var l=i?this.offset(e):this.position(e),c={top:0,left:0,placement:""};if(n[2]){var u=this.viewportOffset(e,i),d=t.getComputedStyle(a),p={width:o+Math.round(Math.abs(this.parseStyle(d.marginLeft)+this.parseStyle(d.marginRight))),height:r+Math.round(Math.abs(this.parseStyle(d.marginTop)+this.parseStyle(d.marginBottom)))};if(n[0]="top"===n[0]&&p.height>u.top&&p.height<=u.bottom?"bottom":"bottom"===n[0]&&p.height>u.bottom&&p.height<=u.top?"top":"left"===n[0]&&p.width>u.left&&p.width<=u.right?"right":"right"===n[0]&&p.width>u.right&&p.width<=u.left?"left":n[0],n[1]="top"===n[1]&&p.height-l.height>u.bottom&&p.height-l.height<=u.top?"bottom":"bottom"===n[1]&&p.height-l.height>u.top&&p.height-l.height<=u.bottom?"top":"left"===n[1]&&p.width-l.width>u.right&&p.width-l.width<=u.left?"right":"right"===n[1]&&p.width-l.width>u.left&&p.width-l.width<=u.right?"left":n[1],"center"===n[1])if(s.vertical.test(n[0])){var m=l.width/2-o/2;u.left+m<0&&p.width-l.width<=u.right?n[1]="left":u.right+m<0&&p.width-l.width<=u.left&&(n[1]="right")}else{var g=l.height/2-p.height/2;u.top+g<0&&p.height-l.height<=u.bottom?n[1]="top":u.bottom+g<0&&p.height-l.height<=u.top&&(n[1]="bottom")}}switch(n[0]){case"top":c.top=l.top-r;break;case"bottom":c.top=l.top+l.height;break;case"left":c.left=l.left-o;break;case"right":c.left=l.left+l.width}switch(n[1]){case"top":c.top=l.top;break;case"bottom":c.top=l.top+l.height-r;break;case"left":c.left=l.left;break;case"right":c.left=l.left+l.width-o;break;case"center":s.vertical.test(n[0])?c.left=l.left+l.width/2-o/2:c.top=l.top+l.height/2-r/2}return c.top=Math.round(c.top),c.left=Math.round(c.left),c.placement="center"===n[1]?n[0]:n[0]+"-"+n[1],c},adjustTop:function(e,t,a,n){if(-1!==e.indexOf("top")&&a!==n)return{top:t.top-n+"px"}},positionArrow:function(e,a){var n=(e=this.getRawNode(e)).querySelector(".tooltip-inner, .popover-inner");if(n){var i=angular.element(n).hasClass("tooltip-inner"),o=i?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(o){var r={top:"",bottom:"",left:"",right:""};if("center"!==(a=this.parsePlacement(a))[1]){var l="border-"+a[0]+"-width",c=t.getComputedStyle(o)[l],u="border-";s.vertical.test(a[0])?u+=a[0]+"-"+a[1]:u+=a[1]+"-"+a[0],u+="-radius";var d=t.getComputedStyle(i?n:e)[u];switch(a[0]){case"top":r.bottom=i?"0":"-"+c;break;case"bottom":r.top=i?"0":"-"+c;break;case"left":r.right=i?"0":"-"+c;break;case"right":r.left=i?"0":"-"+c}r[a[1]]=d,angular.element(o).css(r)}else angular.element(o).css(r)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(e,t,a,n,i,s,o,r,l,c,u,d,p,m,g,f){function h(t){var a=d.parse(t,x,e.date);if(isNaN(a))for(var n=0;n
")).attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":A}),(_=angular.element(M.children()[0])).attr("template-url",C),e.datepickerOptions||(e.datepickerOptions={}),N&&"month"===a.type&&(e.datepickerOptions.datepickerMode="month",e.datepickerOptions.minMode="month"),_.attr("datepicker-options","datepickerOptions"),N?T.$formatters.push(function(t){return e.date=t,t}):(T.$$parserName="date",T.$validators.date=b,T.$parsers.unshift(v),T.$formatters.push(function(t){return T.$isEmpty(t)?(e.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),e.date=t,d.filter(e.date,x))})),T.$viewChangeListeners.push(function(){e.date=h(T.$viewValue)}),t.on("keydown",w),P=n(M)(e),M.remove(),I?r.find("body").append(P):t.after(P),e.$on("$destroy",function(){for(!0===e.isOpen&&(l.$$phase||e.$apply(function(){e.isOpen=!1})),P.remove(),t.off("keydown",w),r.off("click",y),D&&D.off("scroll",$),angular.element(o).off("resize",$);O.length;)O.shift()()})},e.getText=function(t){return e[t+"Text"]||p[t+"Text"]},e.isDisabled=function(t){"today"===t&&(t=new Date);var a={};return angular.forEach(["minDate","maxDate"],function(t){e.datepickerOptions[t]?angular.isDate(e.datepickerOptions[t])?a[t]=new Date(e.datepickerOptions[t]):(f&&i.warn("Literal date support has been deprecated, please switch to date object usage"),a[t]=new Date(u(e.datepickerOptions[t],"medium"))):a[t]=null}),e.datepickerOptions&&a.minDate&&e.compare(t,a.minDate)<0||a.maxDate&&e.compare(t,a.maxDate)>0},e.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.dateSelection=function(a){e.date=a;var n=e.date?d.filter(e.date,x):null;t.val(n),T.$setViewValue(n),k&&(e.isOpen=!1,t[0].focus())},e.keydown=function(a){27===a.which&&(a.stopPropagation(),e.isOpen=!1,t[0].focus())},e.select=function(t,a){if(a.stopPropagation(),"today"===t){var n=new Date;angular.isDate(e.date)?(t=new Date(e.date)).setFullYear(n.getFullYear(),n.getMonth(),n.getDate()):t=new Date(n.setHours(0,0,0,0))}e.dateSelection(t)},e.close=function(a){a.stopPropagation(),e.isOpen=!1,t[0].focus()},e.disabled=angular.isDefined(a.disabled)||!1,a.ngDisabled&&O.push(e.$parent.$watch(s(a.ngDisabled),function(t){e.disabled=t})),e.$watch("isOpen",function(n){n?e.disabled?e.isOpen=!1:m(function(){$(),S&&e.$broadcast("uib:datepicker.focus"),r.on("click",y);var n=a.popupPlacement?a.popupPlacement:p.placement;I||c.parsePlacement(n)[2]?(D=D||angular.element(c.scrollParent(t)))&&D.on("scroll",$):D=null,angular.element(o).on("resize",$)},0,!1):(r.off("click",y),D&&D.off("scroll",$),angular.element(o).off("resize",$))}),e.$on("uib:datepicker.mode",function(){m($,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(e,t,a,n){var i=n[0];n[1].init(i)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(e){return function(t,a){var n;return function(){var i=this,s=Array.prototype.slice.call(arguments);n&&e.cancel(n),n=e(function(){t.apply(i,s)},a)}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(e,t){var a=null;this.open=function(t,i){a||e.on("click",n),a&&a!==t&&(a.isOpen=!1),a=t},this.close=function(t,i){if(a===t){a=null,e.off("click",n);var s=t.getDropdownElement();s&&s.off("keydown",this.keybindFilter)}};var n=function(e){if(a&&!(e&&"disabled"===a.getAutoClose()||e&&3===e.which)){var n=a.getToggleElement();if(!(e&&n&&n[0].contains(e.target))){var i=a.getDropdownElement();e&&"outsideClick"===a.getAutoClose()&&i&&i[0].contains(e.target)||(a.isOpen=!1,a.focusToggleElement(),t.$$phase||a.$apply())}}};this.keybindFilter=function(e){27===e.which?(e.stopPropagation(),a.focusToggleElement(),n()):a.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&a.isOpen&&(e.preventDefault(),e.stopPropagation(),a.focusDropdownEntry(e.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(e,t,a,n,i,s,o,r,l,c,u){var d,p,m=this,g=e.$new(),f=i.appendToOpenClass,h=i.openClass,v=angular.noop,b=a.onToggle?n(a.onToggle):angular.noop,y=!1,w=null,$=!1,x=l.find("body");t.addClass("dropdown"),this.init=function(){if(a.isOpen&&(p=n(a.isOpen),v=p.assign,e.$watch(p,function(e){g.isOpen=!!e})),angular.isDefined(a.dropdownAppendTo)){var i=n(a.dropdownAppendTo)(g);i&&(w=angular.element(i))}y=angular.isDefined(a.dropdownAppendToBody),$=angular.isDefined(a.keyboardNav),y&&!w&&(w=x),w&&m.dropdownMenu&&(w.append(m.dropdownMenu),t.on("$destroy",function(){m.dropdownMenu.remove()}))},this.toggle=function(e){return g.isOpen=arguments.length?!!e:!g.isOpen,angular.isFunction(v)&&v(g,g.isOpen),g.isOpen},this.isOpen=function(){return g.isOpen},g.getToggleElement=function(){return m.toggleElement},g.getAutoClose=function(){return a.autoClose||"always"},g.getElement=function(){return t},g.isKeynavEnabled=function(){return $},g.focusDropdownEntry=function(e){var a=m.dropdownMenu?angular.element(m.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(m.selectedOption)?m.selectedOption=m.selectedOption===a.length-1?m.selectedOption:m.selectedOption+1:m.selectedOption=0;break;case 38:angular.isNumber(m.selectedOption)?m.selectedOption=0===m.selectedOption?0:m.selectedOption-1:m.selectedOption=a.length-1}a[m.selectedOption].focus()},g.getDropdownElement=function(){return m.dropdownMenu},g.focusToggleElement=function(){m.toggleElement&&m.toggleElement[0].focus()},g.$watch("isOpen",function(a,n){if(w&&m.dropdownMenu){var i,l,p,$=r.positionElements(t,m.dropdownMenu,"bottom-left",!0),x=0;if(i={top:$.top+"px",display:a?"block":"none"},(l=m.dropdownMenu.hasClass("dropdown-menu-right"))?(i.left="auto",(p=r.scrollbarPadding(w)).heightOverflow&&p.scrollbarWidth&&(x=p.scrollbarWidth),i.right=window.innerWidth-x-($.left+t.prop("offsetWidth"))+"px"):(i.left=$.left+"px",i.right="auto"),!y){var k=r.offset(w);i.top=$.top-k.top+"px",l?i.right=window.innerWidth-($.left-k.left+t.prop("offsetWidth"))+"px":i.left=$.left-k.left+"px"}m.dropdownMenu.css(i)}var I=w||t;if(I.hasClass(w?f:h)===!a&&o[a?"addClass":"removeClass"](I,w?f:h).then(function(){angular.isDefined(a)&&a!==n&&b(e,{open:!!a})}),a)m.dropdownMenuTemplateUrl?u(m.dropdownMenuTemplateUrl).then(function(e){d=g.$new(),c(e.trim())(d,function(e){var t=e;m.dropdownMenu.replaceWith(t),m.dropdownMenu=t,m.dropdownMenu.on("keydown",s.keybindFilter)})}):m.dropdownMenu&&m.dropdownMenu.on("keydown",s.keybindFilter),g.focusToggleElement(),s.open(g,t);else{if(s.close(g,t),m.dropdownMenuTemplateUrl){d&&d.$destroy();var S=angular.element('');m.dropdownMenu.replaceWith(S),m.dropdownMenu=S}m.selectedOption=null}angular.isFunction(v)&&v(e,a)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(e,t,a,n){n.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,a,n){if(n&&!angular.isDefined(a.dropdownNested)){t.addClass("dropdown-menu");var i=a.templateUrl;i&&(n.dropdownMenuTemplateUrl=i),n.dropdownMenu||(n.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,t,a,n){if(n){t.addClass("dropdown-toggle"),n.toggleElement=t;var i=function(i){i.preventDefault(),t.hasClass("disabled")||a.disabled||e.$apply(function(){n.toggle()})};t.bind("click",i),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(n.isOpen,function(e){t.attr("aria-expanded",!!e)}),e.$on("$destroy",function(){t.unbind("click",i)})}}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,a){e.push({key:t,value:a})},get:function(t){for(var a=0;a-1&&e0&&(t=$.top().value).modalDomEl.toggleClass(t.windowTopClass||"",e)}function m(){if(v&&-1===u()){var e=b;g(v,b,function(){e=null}),v=void 0,b=void 0}}function g(t,a,n,i){function o(){o.done||(o.done=!0,e.leave(t).then(function(){n&&n(),t.remove(),i&&i.resolve()}),a.$destroy())}var r,l=null;return a.$broadcast(k.NOW_CLOSING_EVENT,function(){return r||(r=s.defer(),l=r.promise),function(){r.resolve()}}),s.when(l).then(o)}function f(e){if(e.isDefaultPrevented())return e;var t=$.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),i.$apply(function(){k.dismiss(t.key,"escape key press")}));break;case 9:var a=k.loadFocusElementList(t),n=!1;e.shiftKey?(k.isFocusInFirstItem(e,a)||k.isModalFocused(e,t))&&(n=k.focusLastFocusableElement(a)):k.isFocusInLastItem(e,a)&&(n=k.focusFirstFocusableElement(a)),n&&(e.preventDefault(),e.stopPropagation())}}function h(e,t,a){return!e.value.modalScope.$broadcast("modal.closing",t,a).defaultPrevented}var v,b,y,w="modal-open",$=r.createNew(),x=o.createNew(),k={NOW_CLOSING_EVENT:"modal.stack.now-closing"},I=0,S=null;return i.$watch(u,function(e){b&&(b.index=e)}),a.on("keydown",f),i.$on("$destroy",function(){a.off("keydown",f)}),k.open=function(t,s){var o=a[0].activeElement,r=s.openedClass||w;p(!1),S=$.top(),$.add(t,{deferred:s.deferred,renderDeferred:s.renderDeferred,closedDeferred:s.closedDeferred,modalScope:s.scope,backdrop:s.backdrop,keyboard:s.keyboard,openedClass:s.openedClass,windowTopClass:s.windowTopClass,animation:s.animation,appendTo:s.appendTo}),x.put(r,t);var c=s.appendTo,d=u();if(!c.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");d>=0&&!v&&((b=i.$new(!0)).modalOptions=s,b.index=d,(v=angular.element('
')).attr({class:"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),s.backdropClass&&v.addClass(s.backdropClass),s.animation&&v.attr("modal-animation","true"),n(v)(b),e.enter(v,c),l.isScrollable(c)&&(y=l.scrollbarPadding(c)).heightOverflow&&y.scrollbarWidth&&c.css({paddingRight:y.right+"px"})),I=S?parseInt(S.value.modalDomEl.attr("index"),10)+1:0;var m=angular.element('
');m.attr({class:"modal","template-url":s.windowTemplateUrl,"window-top-class":s.windowTopClass,role:"dialog",size:s.size,index:I,animate:"animate","ng-style":"{'z-index': 1050 + index*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).html(s.content),s.windowClass&&m.addClass(s.windowClass),s.animation&&m.attr("modal-animation","true"),c.addClass(r),e.enter(n(m)(s.scope),c),$.top().value.modalDomEl=m,$.top().value.modalOpener=o},k.close=function(e,t){var a=$.get(e);return a&&h(a,t,!0)?(a.value.modalScope.$$uibDestructionScheduled=!0,a.value.deferred.resolve(t),d(e,a.value.modalOpener),!0):!a},k.dismiss=function(e,t){var a=$.get(e);return a&&h(a,t,!1)?(a.value.modalScope.$$uibDestructionScheduled=!0,a.value.deferred.reject(t),d(e,a.value.modalOpener),!0):!a},k.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},k.getTop=function(){return $.top()},k.modalRendered=function(e){var t=$.get(e);t&&t.value.renderDeferred.resolve()},k.focusFirstFocusableElement=function(e){return e.length>0&&(e[0].focus(),!0)},k.focusLastFocusableElement=function(e){return e.length>0&&(e[e.length-1].focus(),!0)},k.isModalFocused=function(e,t){if(e&&t){var a=t.value.modalDomEl;if(a&&a.length)return(e.target||e.srcElement)===a[0]}return!1},k.isFocusInFirstItem=function(e,t){return t.length>0&&(e.target||e.srcElement)===t[0]},k.isFocusInLastItem=function(e,t){return t.length>0&&(e.target||e.srcElement)===t[t.length-1]},k.loadFocusElementList=function(e){if(e){var t=e.value.modalDomEl;if(t&&t.length){var a=t[0].querySelectorAll("a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]");return a?Array.prototype.filter.call(a,function(e){return c(e)}):a}}},k}]).provider("$uibModal",function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,a,n,i,s,o,r){function l(e){return e.template?a.when(e.template):i(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}var c={},u=null;return c.getPromiseChain=function(){return u},c.open=function(i){function c(){return v}var d=a.defer(),p=a.defer(),m=a.defer(),g=a.defer(),f={result:d.promise,opened:p.promise,closed:m.promise,rendered:g.promise,close:function(e){return r.close(f,e)},dismiss:function(e){return r.dismiss(f,e)}};if(i=angular.extend({},e.options,i),i.resolve=i.resolve||{},i.appendTo=i.appendTo||n.find("body").eq(0),!i.template&&!i.templateUrl)throw new Error("One of template or templateUrl options is required.");var h,v=a.all([l(i),o.resolve(i.resolve,{},null,null)]);return h=u=a.all([u]).then(c,c).then(function(e){var a=i.scope||t,n=a.$new();n.$close=f.close,n.$dismiss=f.dismiss,n.$on("$destroy",function(){n.$$uibDestructionScheduled||n.$dismiss("$uibUnscheduledDestruction")});var o,l,c={};i.controller&&(c.$scope=n,c.$scope.$resolve={},c.$uibModalInstance=f,angular.forEach(e[1],function(e,t){c[t]=e,c.$scope.$resolve[t]=e}),l=s(i.controller,c,!0,i.controllerAs),i.controllerAs&&i.bindToController&&((o=l.instance).$close=n.$close,o.$dismiss=n.$dismiss,angular.extend(o,{$resolve:c.$scope.$resolve},a)),o=l(),angular.isFunction(o.$onInit)&&o.$onInit()),r.open(f,{scope:n,deferred:d,renderDeferred:g,closedDeferred:m,content:e[0],animation:i.animation,backdrop:i.backdrop,keyboard:i.keyboard,backdropClass:i.backdropClass,windowTopClass:i.windowTopClass,windowClass:i.windowClass,windowTemplateUrl:i.windowTemplateUrl,size:i.size,openedClass:i.openedClass,appendTo:i.appendTo}),p.resolve(!0)},function(e){p.reject(e),d.reject(e)}).finally(function(){u===h&&(u=null)}),f},c}]};return e}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(e){return{create:function(t,a,n){t.setNumPages=n.numPages?e(n.numPages).assign:angular.noop,t.ngModelCtrl={$setViewValue:angular.noop},t._watchers=[],t.init=function(e,i){t.ngModelCtrl=e,t.config=i,e.$render=function(){t.render()},n.itemsPerPage?t._watchers.push(a.$parent.$watch(n.itemsPerPage,function(e){t.itemsPerPage=parseInt(e,10),a.totalPages=t.calculateTotalPages(),t.updatePage()})):t.itemsPerPage=i.itemsPerPage,a.$watch("totalItems",function(e,n){(angular.isDefined(e)||e!==n)&&(a.totalPages=t.calculateTotalPages(),t.updatePage())})},t.calculateTotalPages=function(){var e=t.itemsPerPage<1?1:Math.ceil(a.totalItems/t.itemsPerPage);return Math.max(e||0,1)},t.render=function(){a.page=parseInt(t.ngModelCtrl.$viewValue,10)||1},a.selectPage=function(e,n){n&&n.preventDefault(),(!a.ngDisabled||!n)&&a.page!==e&&e>0&&e<=a.totalPages&&(n&&n.target&&n.target.blur(),t.ngModelCtrl.$setViewValue(e),t.ngModelCtrl.$render())},a.getText=function(e){return a[e+"Text"]||t.config[e+"Text"]},a.noPrevious=function(){return 1===a.page},a.noNext=function(){return a.page===a.totalPages},t.updatePage=function(){t.setNumPages(a.$parent,a.totalPages),a.page>a.totalPages?a.selectPage(a.totalPages):t.ngModelCtrl.$render()},a.$on("$destroy",function(){for(;t._watchers.length;)t._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(e,t,a,n){e.align=angular.isDefined(t.align)?e.$parent.$eval(t.align):n.align,a.create(this,e,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(e){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(e,t){return t.templateUrl||"uib/template/pager/pager.html"},link:function(t,a,n,i){a.addClass("pager");var s=i[0],o=i[1];o&&s.init(o,e)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(e,t,a,n,i){function s(e,t,a){return{number:e,text:t,active:a}}function o(e,t){var a=[],n=1,i=t,o=angular.isDefined(l)&&lt&&(n=(i=t)-l+1):(n=(Math.ceil(e/l)-1)*l+1,i=Math.min(n+l-1,t)));for(var r=n;r<=i;r++){var m=s(r,p(r),r===e);a.push(m)}if(o&&l>0&&(!c||u||d)){if(n>1){if(!d||n>3){var g=s(n-1,"...",!1);a.unshift(g)}if(d){if(3===n){var f=s(2,"2",!1);a.unshift(f)}var h=s(1,"1",!1);a.unshift(h)}}if(i0&&e.page<=e.totalPages&&(e.pages=o(e.page,e.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(e,t){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"uib/template/pagination/pagination.html"},link:function(e,a,n,i){a.addClass("pagination");var s=i[0],o=i[1];o&&s.init(o,t)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function e(e){var t=/[A-Z]/g;return e.replace(t,function(e,t){return(t?"-":"")+e.toLowerCase()})}var t={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},a={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},n={};this.options=function(e){angular.extend(n,e)},this.setTriggers=function(e){angular.extend(a,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(i,s,o,r,l,c,u,d,p){function m(e){if(27===e.which){var t=g.top();t&&(t.value.close(),g.removeTop(),t=null)}}var g=p.createNew();return r.on("keypress",m),u.$on("$destroy",function(){r.off("keypress",m)}),function(i,u,p,m){function f(e){var t=(e||m.trigger||p).split(" ");return{show:t,hide:t.map(function(e){return a[e]||e})}}m=angular.extend({},t,n,m);var h=e(i),v=c.startSymbol(),b=c.endSymbol(),y="
';return{compile:function(e,t){var a=s(y);return function(e,t,n,s){function c(){U.isOpen?h():p()}function p(){L&&!e.$eval(n[u+"Enable"])||(w(),k(),U.popupDelay?T||(T=o(v,U.popupDelay,!1)):v())}function h(){b(),U.popupCloseDelay?E||(E=o(y,U.popupCloseDelay,!1)):y()}function v(){if(b(),w(),!U.content)return angular.noop;$(),U.$evalAsync(function(){U.isOpen=!0,I(!0),V()})}function b(){T&&(o.cancel(T),T=null),P&&(o.cancel(P),P=null)}function y(){U&&U.$evalAsync(function(){U&&(U.isOpen=!1,I(!1),U.animation?D||(D=o(x,150,!1)):x())})}function w(){E&&(o.cancel(E),E=null),D&&(o.cancel(D),D=null)}function $(){M||(_=U.$new(),M=a(_,function(e){N?r.find("body").append(e):t.after(e)}),S())}function x(){b(),w(),A(),M&&(M.remove(),M=null),_&&(_.$destroy(),_=null)}function k(){U.title=n[u+"Title"],U.content=z?z(e):n[i],U.popupClass=n[u+"Class"],U.placement=angular.isDefined(n[u+"Placement"])?n[u+"Placement"]:m.placement;var t=l.parsePlacement(U.placement);j=t[1]?t[0]+"-"+t[1]:t[0];var a=parseInt(n[u+"PopupDelay"],10),s=parseInt(n[u+"PopupCloseDelay"],10);U.popupDelay=isNaN(a)?m.popupDelay:a,U.popupCloseDelay=isNaN(s)?m.popupCloseDelay:s}function I(t){R&&angular.isFunction(R.assign)&&R.assign(e,t)}function S(){F.length=0,z?(F.push(e.$watch(z,function(e){U.content=e,!e&&U.isOpen&&y()})),F.push(_.$watch(function(){B||(B=!0,_.$$postDigest(function(){B=!1,U&&U.isOpen&&V()}))}))):F.push(n.$observe(i,function(e){U.content=e,!e&&U.isOpen?y():V()})),F.push(n.$observe(u+"Title",function(e){U.title=e,U.isOpen&&V()})),F.push(n.$observe(u+"Placement",function(e){U.placement=e||m.placement,U.isOpen&&V()}))}function A(){F.length&&(angular.forEach(F,function(e){e()}),F.length=0)}function C(e){U&&U.isOpen&&M&&(t[0].contains(e.target)||M[0].contains(e.target)||h())}var M,_,D,T,E,P,j,N=!!angular.isDefined(m.appendToBody)&&m.appendToBody,O=f(void 0),L=angular.isDefined(n[u+"Enable"]),U=e.$new(!0),B=!1,R=!!angular.isDefined(n[u+"IsOpen"])&&d(n[u+"IsOpen"]),z=!!m.useContentExp&&d(n[i]),F=[],V=function(){M&&M.html()&&(P||(P=o(function(){var e=l.positionElements(t,M,U.placement,N),a=angular.isDefined(M.offsetHeight)?M.offsetHeight:M.prop("offsetHeight"),n=N?l.offset(t):l.position(t);M.css({top:e.top+"px",left:e.left+"px"});var i=e.placement.split("-");M.hasClass(i[0])||(M.removeClass(j.split("-")[0]),M.addClass(i[0])),M.hasClass(m.placementClassPrefix+e.placement)||(M.removeClass(m.placementClassPrefix+j),M.addClass(m.placementClassPrefix+e.placement)),o(function(){var e=angular.isDefined(M.offsetHeight)?M.offsetHeight:M.prop("offsetHeight"),t=l.adjustTop(i,n,a,e);t&&M.css(t)},0,!1),M.hasClass("uib-position-measure")?(l.positionArrow(M,e.placement),M.removeClass("uib-position-measure")):j!==e.placement&&l.positionArrow(M,e.placement),j=e.placement,P=null},0,!1)))};U.origScope=e,U.isOpen=!1,g.add(U,{close:y}),U.contentExp=function(){return U.content},n.$observe("disabled",function(e){e&&b(),e&&U.isOpen&&y()}),R&&e.$watch(R,function(e){U&&!e===U.isOpen&&c()});var q=function(){O.show.forEach(function(e){"outsideClick"===e?t.off("click",c):(t.off(e,p),t.off(e,c))}),O.hide.forEach(function(e){"outsideClick"===e?r.off("click",C):t.off(e,h)})};!function(){var a=[],i=[],s=e.$eval(n[u+"Trigger"]);q(),angular.isObject(s)?(Object.keys(s).forEach(function(e){a.push(e),i.push(s[e])}),O={show:a,hide:i}):O=f(s),"none"!==O.show&&O.show.forEach(function(e,a){"outsideClick"===e?(t.on("click",c),r.on("click",C)):e===O.hide[a]?t.on(e,c):e&&(t.on(e,p),t.on(O.hide[a],h)),t.on("keypress",function(e){27===e.which&&h()})})}();var H=e.$eval(n[u+"Animation"]);U.animation=angular.isDefined(H)?!!H:m.animation;var W,Y=u+"AppendToBody";W=Y in n&&void 0===n[Y]||e.$eval(n[Y]),N=angular.isDefined(W)?W:N,e.$on("$destroy",function(){q(),x(),g.remove(U),U=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,a,n){return{link:function(i,s,o){var r,l,c,u=i.$eval(o.tooltipTemplateTranscludeScope),d=0,p=function(){l&&(l.remove(),l=null),r&&(r.$destroy(),r=null),c&&(e.leave(c).then(function(){l=null}),l=c,c=null)};i.$watch(t.parseAsResourceUrl(o.uibTooltipTemplateTransclude),function(t){var o=++d;t?(n(t,!0).then(function(n){if(o===d){var i=u.$new(),l=a(n)(i,function(t){p(),e.enter(t,s)});c=l,(r=i).$emit("$includeContentLoaded",t)}},function(){o===d&&(p(),i.$emit("$includeContentError",t))}),i.$emit("$includeContentRequested",t)):p()}),i.$on("$destroy",p)}}}]).directive("uibTooltipClasses",["$uibPosition",function(e){return{restrict:"A",link:function(t,a,n){if(t.placement){var i=e.parsePlacement(t.placement);a.addClass(i[0])}t.popupClass&&a.addClass(t.popupClass),t.animation&&a.addClass(n.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(e,t,a){function n(){return angular.isDefined(e.maxParam)?e.maxParam:a.max}var i=this,s=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):a.animate;this.bars=[],e.max=n(),this.addBar=function(e,t,a){s||t.css({transition:"none"}),this.bars.push(e),e.max=n(),e.title=a&&angular.isDefined(a.title)?a.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){var t=i.bars.reduce(function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent},0);t>100&&(e.percent-=t-100)},e.$on("$destroy",function(){t=null,i.removeBar(e)})},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach(function(e){e.recalculatePercentage()})},e.$watch("maxParam",function(e){i.bars.forEach(function(e){e.max=n(),e.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(e,t,a,n){n.addBar(e,t,a)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(e,t,a,n){n.addBar(e,angular.element(t.children()[0]),{title:a.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,t,a){var n={$setViewValue:angular.noop},i=this;this.init=function(i){(n=i).$render=this.render,n.$formatters.push(function(e){return angular.isNumber(e)&&e<<0!==e&&(e=Math.round(e)),e}),this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):a.stateOn,this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):a.stateOff,this.enableReset=angular.isDefined(t.enableReset)?e.$parent.$eval(t.enableReset):a.enableReset;var s=angular.isDefined(t.titles)?e.$parent.$eval(t.titles):a.titles;this.titles=angular.isArray(s)&&s.length>0?s:a.titles;var o=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):a.max);e.range=this.buildTemplateObjects(o)},this.buildTemplateObjects=function(e){for(var t=0,a=e.length;t=this.titles.length?e+1:this.titles[e]},e.rate=function(t){if(!e.readonly&&t>=0&&t<=e.range.length){var a=i.enableReset&&n.$viewValue===t?0:t;n.$setViewValue(a),n.$render()}},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=n.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=n.$viewValue,e.title=i.getTitle(e.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(e,t,a,n){var i=n[0],s=n[1];i.init(s)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){function t(e){for(var t=0;tt.index?1:e.index0&&t<13:t>=0&&t<24)&&""!==e.hours)return e.showMeridian&&(12===t&&(t=0),e.meridian===$[1]&&(t+=12)),t}function l(){var t=+e.minutes;if(t>=0&&t<60&&""!==e.minutes)return t}function c(){var t=+e.seconds;return t>=0&&t<60?t:void 0}function u(e,t){return null===e?"":angular.isDefined(e)&&e.toString().length<2&&!t?"0"+e:e.toString()}function d(e){p(),w.$setViewValue(new Date(b)),m(e)}function p(){w.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1,e.invalidSeconds=!1}function m(t){if(w.$modelValue){var a=b.getHours(),n=b.getMinutes(),i=b.getSeconds();e.showMeridian&&(a=0===a||12===a?12:a%12),e.hours="h"===t?a:u(a,!x),"m"!==t&&(e.minutes=u(n)),e.meridian=b.getHours()<12?$[0]:$[1],"s"!==t&&(e.seconds=u(i)),e.meridian=b.getHours()<12?$[0]:$[1]}else e.hours=null,e.minutes=null,e.seconds=null,e.meridian=$[0]}function g(e){b=h(b,e),d()}function f(e,t){return h(e,60*t)}function h(e,t){var a=new Date(e.getTime()+1e3*t),n=new Date(e);return n.setHours(a.getHours(),a.getMinutes(),a.getSeconds()),n}function v(){return(null===e.hours||""===e.hours)&&(null===e.minutes||""===e.minutes)&&(!e.showSeconds||e.showSeconds&&(null===e.seconds||""===e.seconds))}var b=new Date,y=[],w={$setViewValue:angular.noop},$=angular.isDefined(a.meridians)?e.$parent.$eval(a.meridians):o.meridians||s.DATETIME_FORMATS.AMPMS,x=!angular.isDefined(a.padHours)||e.$parent.$eval(a.padHours);e.tabindex=angular.isDefined(a.tabindex)?a.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,n){(w=t).$render=this.render,w.$formatters.unshift(function(e){return e?new Date(e):null});var i=n.eq(0),s=n.eq(1),r=n.eq(2);(angular.isDefined(a.mousewheel)?e.$parent.$eval(a.mousewheel):o.mousewheel)&&this.setupMousewheelEvents(i,s,r),(angular.isDefined(a.arrowkeys)?e.$parent.$eval(a.arrowkeys):o.arrowkeys)&&this.setupArrowkeyEvents(i,s,r),e.readonlyInput=angular.isDefined(a.readonlyInput)?e.$parent.$eval(a.readonlyInput):o.readonlyInput,this.setupInputEvents(i,s,r)};var k=o.hourStep;a.hourStep&&y.push(e.$parent.$watch(n(a.hourStep),function(e){k=+e}));var I=o.minuteStep;a.minuteStep&&y.push(e.$parent.$watch(n(a.minuteStep),function(e){I=+e}));var S;y.push(e.$parent.$watch(n(a.min),function(e){var t=new Date(e);S=isNaN(t)?void 0:t}));var A;y.push(e.$parent.$watch(n(a.max),function(e){var t=new Date(e);A=isNaN(t)?void 0:t}));var C=!1;a.ngDisabled&&y.push(e.$parent.$watch(n(a.ngDisabled),function(e){C=e})),e.noIncrementHours=function(){var e=f(b,60*k);return C||e>A||eb&&e>A},e.noIncrementMinutes=function(){var e=f(b,I);return C||e>A||eb&&e>A},e.noIncrementSeconds=function(){var e=h(b,M);return C||e>A||eb&&e>A},e.noToggleMeridian=function(){return b.getHours()<12?C||f(b,720)>A:C||f(b,-720)0};t.bind("mousewheel wheel",function(t){C||e.$apply(i(t)?e.incrementHours():e.decrementHours()),t.preventDefault()}),a.bind("mousewheel wheel",function(t){C||e.$apply(i(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()}),n.bind("mousewheel wheel",function(t){C||e.$apply(i(t)?e.incrementSeconds():e.decrementSeconds()),t.preventDefault()})},this.setupArrowkeyEvents=function(t,a,n){t.bind("keydown",function(t){C||(38===t.which?(t.preventDefault(),e.incrementHours(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementHours(),e.$apply()))}),a.bind("keydown",function(t){C||(38===t.which?(t.preventDefault(),e.incrementMinutes(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementMinutes(),e.$apply()))}),n.bind("keydown",function(t){C||(38===t.which?(t.preventDefault(),e.incrementSeconds(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementSeconds(),e.$apply()))})},this.setupInputEvents=function(t,a,n){if(e.readonlyInput)return e.updateHours=angular.noop,e.updateMinutes=angular.noop,void(e.updateSeconds=angular.noop);var i=function(t,a,n){w.$setViewValue(null),w.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t),angular.isDefined(a)&&(e.invalidMinutes=a),angular.isDefined(n)&&(e.invalidSeconds=n)};e.updateHours=function(){var e=r(),t=l();w.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(b.setHours(e),b.setMinutes(t),bA?i(!0):d("h")):i(!0)},t.bind("blur",function(t){w.$setTouched(),v()?p():null===e.hours||""===e.hours?i(!0):!e.invalidHours&&e.hours<10&&e.$apply(function(){e.hours=u(e.hours,!x)})}),e.updateMinutes=function(){var e=l(),t=r();w.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(b.setHours(t),b.setMinutes(e),bA?i(void 0,!0):d("m")):i(void 0,!0)},a.bind("blur",function(t){w.$setTouched(),v()?p():null===e.minutes?i(void 0,!0):!e.invalidMinutes&&e.minutes<10&&e.$apply(function(){e.minutes=u(e.minutes)})}),e.updateSeconds=function(){var e=c();w.$setDirty(),angular.isDefined(e)?(b.setSeconds(e),d("s")):i(void 0,void 0,!0)},n.bind("blur",function(t){v()?p():!e.invalidSeconds&&e.seconds<10&&e.$apply(function(){e.seconds=u(e.seconds)})})},this.render=function(){var t=w.$viewValue;isNaN(t)?(w.$setValidity("time",!1),i.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(b=t),bA?(w.$setValidity("time",!1),e.invalidHours=!0,e.invalidMinutes=!0):p(),m())},e.showSpinners=angular.isDefined(a.showSpinners)?e.$parent.$eval(a.showSpinners):o.showSpinners,e.incrementHours=function(){e.noIncrementHours()||g(60*k*60)},e.decrementHours=function(){e.noDecrementHours()||g(60*-k*60)},e.incrementMinutes=function(){e.noIncrementMinutes()||g(60*I)},e.decrementMinutes=function(){e.noDecrementMinutes()||g(60*-I)},e.incrementSeconds=function(){e.noIncrementSeconds()||g(M)},e.decrementSeconds=function(){e.noDecrementSeconds()||g(-M)},e.toggleMeridian=function(){var t=l(),a=r();e.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(a)?g(720*(b.getHours()<12?60:-60)):e.meridian=e.meridian===$[0]?$[1]:$[0])},e.blur=function(){w.$setTouched()},e.$on("$destroy",function(){for(;y.length;)y.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(e){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(t,a){return a.templateUrl||e.templateUrl},link:function(e,t,a,n){var i=n[0],s=n[1];s&&i.init(s,t.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(e){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(a){var n=a.match(t);if(!n)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+a+'".');return{itemName:n[3],source:e(n[4]),viewMapper:e(n[2]||n[1]),modelMapper:e(n[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(e,t,a,n,i,s,o,r,l,c,u,d,p){function m(){B.moveInProgress||(B.moveInProgress=!0,B.$digest()),K()}function g(){B.position=_?d.offset(t):d.position(t),B.position.top+=t.prop("offsetHeight")}var f,h,v=[9,13,27,38,40],b=e.$eval(a.typeaheadMinLength);b||0===b||(b=1),e.$watch(a.typeaheadMinLength,function(e){b=e||0===e?e:1});var y=e.$eval(a.typeaheadWaitMs)||0,w=!1!==e.$eval(a.typeaheadEditable);e.$watch(a.typeaheadEditable,function(e){w=!1!==e});var $,x,k=i(a.typeaheadLoading).assign||angular.noop,I=a.typeaheadShouldSelect?i(a.typeaheadShouldSelect):function(e,t){var a=t.$event;return 13===a.which||9===a.which},S=i(a.typeaheadOnSelect),A=!!angular.isDefined(a.typeaheadSelectOnBlur)&&e.$eval(a.typeaheadSelectOnBlur),C=i(a.typeaheadNoResults).assign||angular.noop,M=a.typeaheadInputFormatter?i(a.typeaheadInputFormatter):void 0,_=!!a.typeaheadAppendToBody&&e.$eval(a.typeaheadAppendToBody),D=a.typeaheadAppendTo?e.$eval(a.typeaheadAppendTo):null,T=!1!==e.$eval(a.typeaheadFocusFirst),E=!!a.typeaheadSelectOnExact&&e.$eval(a.typeaheadSelectOnExact),P=i(a.typeaheadIsOpen).assign||angular.noop,j=e.$eval(a.typeaheadShowHint)||!1,N=i(a.ngModel),O=i(a.ngModel+"($$$p)"),L=function(t,a){return angular.isFunction(N(e))&&h&&h.$options&&h.$options.getterSetter?O(t,{$$$p:a}):N.assign(t,a)},U=p.parse(a.uibTypeahead),B=e.$new(),R=e.$on("$destroy",function(){B.$destroy()});B.$on("$destroy",R);var z="typeahead-"+B.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":z});var F,V;j&&((F=angular.element("
")).css("position","relative"),t.after(F),(V=t.clone()).attr("placeholder",""),V.attr("tabindex","-1"),V.val(""),V.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),t.css({position:"relative","vertical-align":"top","background-color":"transparent"}),V.attr("id")&&V.removeAttr("id"),F.append(V),V.after(t));var q=angular.element("
");q.attr({id:z,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(a.typeaheadTemplateUrl)&&q.attr("template-url",a.typeaheadTemplateUrl),angular.isDefined(a.typeaheadPopupTemplateUrl)&&q.attr("popup-template-url",a.typeaheadPopupTemplateUrl);var H=function(){j&&V.val("")},W=function(){B.matches=[],B.activeIdx=-1,t.attr("aria-expanded",!1),H()},Y=function(e){return z+"-option-"+e};B.$watch("activeIdx",function(e){e<0?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",Y(e))});var G=function(e,t){return!!(B.matches.length>t&&e)&&e.toUpperCase()===B.matches[t].label.toUpperCase()},Q=function(a,n){var i={$viewValue:a};k(e,!0),C(e,!1),s.when(U.source(e,i)).then(function(s){var o=a===f.$viewValue;if(o&&$)if(s&&s.length>0){B.activeIdx=T?0:-1,C(e,!1),B.matches.length=0;for(var r=0;r0&&l.slice(0,a.length).toUpperCase()===a.toUpperCase()?V.val(a+l.slice(a.length)):V.val("")}}else W(),C(e,!0);o&&k(e,!1)},function(){W(),k(e,!1),C(e,!0)})};_&&(angular.element(l).on("resize",m),r.find("body").on("scroll",m));var K=u(function(){B.matches.length&&g(),B.moveInProgress=!1},200);B.moveInProgress=!1,B.query=void 0;var J,Z=function(e){J=o(function(){Q(e)},y)},X=function(){J&&o.cancel(J)};W(),B.assignIsOpen=function(t){P(e,t)},B.select=function(n,i){var s,r,l={};x=!0,l[U.itemName]=r=B.matches[n].model,s=U.modelMapper(e,l),L(e,s),f.$setValidity("editable",!0),f.$setValidity("parse",!0),S(e,{$item:r,$model:s,$label:U.viewMapper(e,l),$event:i}),W(),!1!==B.$eval(a.typeaheadFocusOnSelect)&&o(function(){t[0].focus()},0,!1)},t.on("keydown",function(t){if(0!==B.matches.length&&-1!==v.indexOf(t.which)){var a=I(e,{$event:t});if(-1===B.activeIdx&&a||9===t.which&&t.shiftKey)return W(),void B.$digest();t.preventDefault();var n;switch(t.which){case 27:t.stopPropagation(),W(),e.$digest();break;case 38:B.activeIdx=(B.activeIdx>0?B.activeIdx:B.matches.length)-1,B.$digest(),(n=q[0].querySelectorAll(".uib-typeahead-match")[B.activeIdx]).parentNode.scrollTop=n.offsetTop;break;case 40:B.activeIdx=(B.activeIdx+1)%B.matches.length,B.$digest(),(n=q[0].querySelectorAll(".uib-typeahead-match")[B.activeIdx]).parentNode.scrollTop=n.offsetTop;break;default:a&&B.$apply(function(){angular.isNumber(B.debounceUpdate)||angular.isObject(B.debounceUpdate)?u(function(){B.select(B.activeIdx,t)},angular.isNumber(B.debounceUpdate)?B.debounceUpdate:B.debounceUpdate.default):B.select(B.activeIdx,t)})}}}),t.bind("focus",function(e){$=!0,0!==b||f.$viewValue||o(function(){Q(f.$viewValue,e)},0)}),t.bind("blur",function(e){A&&B.matches.length&&-1!==B.activeIdx&&!x&&(x=!0,B.$apply(function(){angular.isObject(B.debounceUpdate)&&angular.isNumber(B.debounceUpdate.blur)?u(function(){B.select(B.activeIdx,e)},B.debounceUpdate.blur):B.select(B.activeIdx,e)})),!w&&f.$error.editable&&(f.$setViewValue(),B.$apply(function(){f.$setValidity("editable",!0),f.$setValidity("parse",!0)}),t.val("")),$=!1,x=!1});var ee=function(a){t[0]!==a.target&&3!==a.which&&0!==B.matches.length&&(W(),c.$$phase||e.$digest())};r.on("click",ee),e.$on("$destroy",function(){r.off("click",ee),(_||D)&&te.remove(),_&&(angular.element(l).off("resize",m),r.find("body").off("scroll",m)),q.remove(),j&&F.remove()});var te=n(q)(B);_?r.find("body").append(te):D?angular.element(D).eq(0).append(te):t.after(te),this.init=function(t,a){f=t,h=a,B.debounceUpdate=f.$options&&i(f.$options.debounce)(e),f.$parsers.unshift(function(t){return $=!0,0===b||t&&t.length>=b?y>0?(X(),Z(t)):Q(t):(k(e,!1),X(),W()),w?t:t?void f.$setValidity("editable",!1):(f.$setValidity("editable",!0),null)}),f.$formatters.push(function(t){var a,n,i={};return w||f.$setValidity("editable",!0),M?(i.$model=t,M(e,i)):(i[U.itemName]=t,a=U.viewMapper(e,i),i[U.itemName]=void 0,n=U.viewMapper(e,i),a!==n?a:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(e,t,a,n){n[2].init(n[0],n[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(e){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(t,a,n){t.templateUrl=n.templateUrl,t.isOpen=function(){var e=t.matches.length>0;return t.assignIsOpen({isOpen:e}),e},t.isActive=function(e){return t.active===e},t.selectActive=function(e){t.active=e},t.selectMatch=function(a,n){var i=t.debounce();angular.isNumber(i)||angular.isObject(i)?e(function(){t.select({activeIdx:a,evt:n})},angular.isNumber(i)?i:i.default):t.select({activeIdx:a,evt:n})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,a){return{scope:{index:"=",match:"=",query:"="},link:function(n,i,s){var o=a(s.templateUrl)(n.$parent)||"uib/template/typeahead/typeahead-match.html";e(o).then(function(e){var a=angular.element(e.trim());i.replaceWith(a),t(a)(n)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(e,t,a){function n(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function i(e){return/<.*>/g.test(e)}var s;return s=t.has("$sanitize"),function(t,o){return!s&&i(t)&&a.warn("Unsafe use of typeahead please use ngSanitize"),t=o?(""+t).replace(new RegExp(n(o),"gi"),"$&"):t,s||(t=e.trustAsHtml(t)),t}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion-group.html",'\n
\n
\n
\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion.html",'
')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("uib/template/alert/alert.html",'\n
\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/carousel.html",'\n\n \n previous\n\n\n \n next\n\n\n')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/slide.html",'
\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/datepicker.html",'
\n
\n
\n
\n
\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/day.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{{::label.abbr}}
{{ weekNumbers[$index] }}\n \n
\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/month.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n
\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/year.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n
\n')}]),angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepickerPopup/popup.html",'\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/window.html","
\n")}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(e){e.put("uib/template/pager/pager.html",'
  • {{::getText(\'previous\')}}
  • \n
  • {{::getText(\'next\')}}
  • \n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("uib/template/pagination/pagination.html",'
  • {{::getText(\'first\')}}
  • \n
  • {{::getText(\'previous\')}}
  • \n
  • {{page.text}}
  • \n
  • {{::getText(\'next\')}}
  • \n
  • {{::getText(\'last\')}}
  • \n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-html-popup.html",'
    \n
    \n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-popup.html",'
    \n
    \n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-template-popup.html",'
    \n
    \n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-html.html",'
    \n\n
    \n

    \n
    \n
    \n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-template.html",'
    \n\n
    \n

    \n
    \n
    \n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover.html",'
    \n\n
    \n

    \n
    \n
    \n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/bar.html",'
    \n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progress.html",'
    ')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progressbar.html",'
    \n
    \n
    \n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("uib/template/rating/rating.html",'\n ({{ $index < value ? \'*\' : \' \' }})\n \n\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tab.html",'\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tabset.html",'
    \n \n
    \n
    \n
    \n
    \n
    \n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/timepicker/timepicker.html",'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
      
    \n \n :\n \n :\n \n
      
    \n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-match.html",'\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-popup.html",'\n')}]),angular.module("ui.bootstrap.carousel").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibCarouselCss&&angular.element(document).find("head").prepend(''),angular.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerCss&&angular.element(document).find("head").prepend(''),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend(''),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerpopupCss&&angular.element(document).find("head").prepend(''),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find("head").prepend(''),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTimepickerCss&&angular.element(document).find("head").prepend(''),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTypeaheadCss&&angular.element(document).find("head").prepend(''),angular.$$uibTypeaheadCss=!0}),function(e,t){"function"==typeof define&&define.amd?define(["angular"],t):"object"==typeof module&&module.exports?module.exports=t(require("angular")):e.angularClipboard=t(e.angular)}(this,function(e){return e.module("angular-clipboard",[]).factory("clipboard",["$document","$window",function(e,t){function a(a,n){var i=e[0].createElement("textarea");return i.style.position="absolute",i.textContent=a,i.style.left="-10000px",i.style.top=(t.pageYOffset||e[0].documentElement.scrollTop)+"px",i}function n(t){try{e[0].body.style.webkitUserSelect="initial";var a=e[0].getSelection();if(a.removeAllRanges(),t.select(),!e[0].execCommand("copy"))throw"failure copy";a.removeAllRanges()}finally{e[0].body.style.webkitUserSelect=""}}return{copyText:function(t,i){var s=a(t,i);e[0].body.appendChild(s),n(s),e[0].body.removeChild(s)},supported:"queryCommandSupported"in e[0]&&e[0].queryCommandSupported("copy")}}]).directive("clipboard",["clipboard",function(t){return{restrict:"A",scope:{onCopied:"&",onError:"&",text:"=",supported:"=?"},link:function(a,n){a.supported=t.supported,n.on("click",function(i){try{t.copyText(a.text,n[0]),e.isFunction(a.onCopied)&&a.$evalAsync(a.onCopied())}catch(t){e.isFunction(a.onError)&&a.$evalAsync(a.onError({err:t}))}})}}}])}),function(){"use strict";angular.module("cfp.hotkeys",[]).provider("hotkeys",["$injector",function(e){this.includeCheatSheet=!0,this.useNgRoute=e.has("ngViewDirective"),this.templateTitle="Keyboard Shortcuts:",this.templateHeader=null,this.templateFooter=null,this.template='',this.cheatSheetHotkey="?",this.cheatSheetDescription="Show / hide this help menu",this.$get=["$rootElement","$rootScope","$compile","$window","$document",function(e,t,a,n,i){function s(e){var t={command:"⌘",shift:"⇧",left:"←",right:"→",up:"↑",down:"↓",return:"⏎",backspace:"⌫"};e=e.split("+");for(var a=0;a=0?e[a]="command":e[a]="ctrl"),e[a]=t[e[a]]||e[a];return e.join(" + ")}function o(e,t,a,n,i,s){this.combo=e instanceof Array?e:[e],this.description=t,this.callback=a,this.action=n,this.allowIn=i,this.persistent=s,this._formated=null}function r(){for(var e=g.hotkeys.length;e--;){var t=g.hotkeys[e];t&&!t.persistent&&u(t)}}function l(){g.helpVisible=!g.helpVisible,g.helpVisible?(y=d("esc"),u("esc"),c("esc",y.description,l,null,["INPUT","SELECT","TEXTAREA"])):(u("esc"),!1!==y&&c(y))}function c(e,t,a,n,i,s){var r,l=["INPUT","SELECT","TEXTAREA"];if("[object Object]"===Object.prototype.toString.call(e)&&(t=e.description,a=e.callback,n=e.action,s=e.persistent,i=e.allowIn,e=e.combo),u(e),t instanceof Function?(n=a,a=t,t="$$undefined$$"):angular.isUndefined(t)&&(t="$$undefined$$"),void 0===s&&(s=!0),"function"==typeof a){r=a,i instanceof Array||(i=[]);for(var c,d=0;d-1)t=!0;else for(var i=0;i-1&&(g.hotkeys[i].combo.length>1?g.hotkeys[i].combo.splice(g.hotkeys[i].combo.indexOf(t),1):(angular.forEach(f,function(e){var t=e.indexOf(g.hotkeys[i]);-1!==t&&e.splice(t,1)}),g.hotkeys.splice(i,1)),!0)}function d(e){if(!e)return g.hotkeys;for(var t,a=0;a-1)return t;return!1}function p(e){return function(a,n){if(e instanceof Array){var i=e[0],s=e[1];e=function(e){s.scope.$eval(i)}}t.$apply(function(){e(a,d(n))})}}var m=!0;Mousetrap.prototype.stopCallback=function(e,t){return!m||!((" "+t.className+" ").indexOf(" mousetrap ")>-1)&&(t.contentEditable&&"true"==t.contentEditable)},o.prototype.format=function(){if(null===this._formated){for(var e=this.combo[0].split(/[\s]/),t=0;t1?c.apply(this,arguments):c(t),f[e.$id].push(a),this}}},template:this.template,toggleCheatSheet:l,includeCheatSheet:this.includeCheatSheet,cheatSheetHotkey:this.cheatSheetHotkey,cheatSheetDescription:this.cheatSheetDescription,useNgRoute:this.useNgRoute,purgeHotkeys:r,templateTitle:this.templateTitle,pause:function(){m=!1},unpause:function(){m=!0}}}]}]).directive("hotkey",["hotkeys",function(e){return{restrict:"A",link:function(t,a,n){var i,s=[];angular.forEach(t.$eval(n.hotkey),function(t,a){i="string"==typeof n.hotkeyAllowIn?n.hotkeyAllowIn.split(/[\s,]+/):[],s.push(a),e.add({combo:a,description:n.hotkeyDescription,callback:t,action:n.hotkeyAction,allowIn:i})}),a.bind("$destroy",function(){angular.forEach(s,e.del)})}}}]).run(["hotkeys",function(e){}])}(),function(e,t,a){function n(e,t,a){e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent("on"+t,a)}function i(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return v[e.which]?v[e.which]:b[e.which]?b[e.which]:String.fromCharCode(e.which).toLowerCase()}function s(e,t){return e.sort().join(",")===t.sort().join(",")}function o(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}function r(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function l(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function c(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function u(){if(!h){h={};for(var e in v)e>95&&e<112||v.hasOwnProperty(e)&&(h[v[e]]=e)}return h}function d(e,t,a){return a||(a=u()[e]?"keydown":"keypress"),"keypress"==a&&t.length&&(a="keydown"),a}function p(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}function m(e,t){var a,n,i,s=[];for(a=p(e),i=0;i1?h(e,o,t,a):(s=m(e,a),b._callbacks[s.key]=b._callbacks[s.key]||[],u(s.key,s.modifiers,{type:s.action},n,e,i),b._callbacks[s.key][n?"unshift":"push"]({callback:t,modifiers:s.modifiers,action:s.action,seq:n,level:i,combo:e}))}var b=this;if(e=e||t,!(b instanceof f))return new f(e);b.target=e,b._callbacks={},b._directMap={};var y,w={},$=!1,x=!1,k=!1;b._handleKey=function(e,t,n){var i,s=u(e,t,n),o={},r=0,l=!1;for(i=0;i":".","?":"/","|":"\\"},w={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},$=1;$<20;++$)v[111+$]="f"+$;for($=0;$<=9;++$)v[$+96]=$;f.prototype.bind=function(e,t,a){var n=this;return e=e instanceof Array?e:[e],n._bindMultiple.call(n,e,t,a),n},f.prototype.unbind=function(e,t){var a=this;return a.bind.call(a,e,function(){},t)},f.prototype.trigger=function(e,t){var a=this;return a._directMap[e+":"+t]&&a._directMap[e+":"+t]({},e),a},f.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},f.prototype.stopCallback=function(e,t){var a=this;return!((" "+t.className+" ").indexOf(" mousetrap ")>-1)&&(!g(t,a.target)&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable))},f.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},f.init=function(){var e=f(t);for(var a in e)"_"!==a.charAt(0)&&(f[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a))},f.init(),e.Mousetrap=f,"undefined"!=typeof module&&module.exports&&(module.exports=f),"function"==typeof define&&define.amd&&define(function(){return f})}(window,document),function(e,t){"use strict";function a(e){var a=[];return r(a,t.noop).chars(e),a.join("")}function n(e,a){var n,i={},s=e.split(",");for(n=0;n/g,">")}function r(e,a){var n=!1,i=t.bind(e,e.push);return{start:function(e,s){e=t.lowercase(e),!n&&w[e]&&(n=e),n||!0!==$[e]||(i("<"),i(e),t.forEach(s,function(n,s){var r=t.lowercase(s),l="img"===e&&"src"===r||"background"===r;!0!==S[r]||!0===x[r]&&!a(n,l)||(i(" "),i(s),i('="'),i(o(n)),i('"'))}),i(">"))},end:function(e){e=t.lowercase(e),n||!0!==$[e]||!0===m[e]||(i("")),e==n&&(n=!1)},chars:function(e){n||i(o(e))}}}function l(t){if(t.nodeType===e.Node.ELEMENT_NODE)for(var a=t.attributes,n=0,i=a.length;n"\u201d\u2019]/i,i=/^mailto:/i,s=t.$$minErr("linky"),o=t.isString;return function(r,l,c){function u(e){e&&f.push(a(e))}if(null==r||""===r)return r;if(!o(r))throw s("notstring","Expected string but received: {0}",r);for(var d,p,m,g=r,f=[];d=g.match(n);)p=d[0],d[2]||d[4]||(p=(d[3]?"http://":"mailto:")+p),m=d.index,u(g.substr(0,m)),function(e,a){var n;if(f.push("'),u(a),f.push("")}(p,d[0].replace(i,"")),g=g.substring(m+d[0].length);return u(g),e(f.join(""))}}])}(window,window.angular);var mod;(mod=angular.module("infinite-scroll",[])).directive("infiniteScroll",["$rootScope","$window","$timeout",function(e,t,a){return{link:function(n,i,s){var o,r,l,c;return t=angular.element(t),l=0,null!=s.infiniteScrollDistance&&n.$watch(s.infiniteScrollDistance,function(e){return l=parseInt(e,10)}),c=!0,o=!1,null!=s.infiniteScrollDisabled&&n.$watch(s.infiniteScrollDisabled,function(e){if((c=!e)&&o)return o=!1,r()}),r=function(){var a,r,u,d;return d=t.height()+t.scrollTop(),a=i.offset().top+i.height(),r=a-d,(u=r<=t.height()*l)&&c?e.$$phase?n.$eval(s.infiniteScroll):n.$apply(s.infiniteScroll):u?o=!0:void 0},t.on("scroll",r),n.$on("$destroy",function(){return t.off("scroll",r)}),a(function(){return s.infiniteScrollImmediateCheck?n.$eval(s.infiniteScrollImmediateCheck)?r():void 0:r()},0)}}}]),function(e,t){"use strict";function a(e){return t.lowercase(e.nodeName||e[0]&&e[0].nodeName)}function n(e,a){var n=!1,i=!1;this.ngClickOverrideEnabled=function(s){return t.isDefined(s)?(s&&!i&&(i=!0,o.$$moduleName="ngTouch",a.directive("ngClick",o),e.decorator("ngClickDirective",["$delegate",function(e){if(n)e.shift();else for(var t=e.length-1;t>=0;){if("ngTouch"===e[t].$$moduleName){e.splice(t,1);break}t--}return e}])),n=s,this):n},this.$get=function(){return{ngClickOverrideEnabled:function(){return n}}}}function i(e,a,n){s.directive(e,["$parse","$swipe",function(i,s){var o=75,r=.3,l=30;return function(c,u,d){function p(e){if(!m)return!1;var t=Math.abs(e.y-m.y),n=(e.x-m.x)*a;return g&&t0&&n>l&&t/ns?(c=!1,void(n.cancel&&n.cancel(t))):(t.preventDefault(),void(n.move&&n.move(a,t)))}}),t.on(a(i,"end"),function(t){c&&(c=!1,n.end&&n.end(e(t),t))})}}}]);var o=["$parse","$timeout","$rootElement",function(e,n,i){function s(e,t,a,n){return Math.abs(e-a)m)){var t=e.touches&&e.touches.length?e.touches:[e],n=t[0].clientX,i=t[0].clientY;n<1&&i<1||p&&p[0]===n&&p[1]===i||(p&&(p=null),"label"===a(e.target)&&(p=[n,i]),o(d,n,i)||(e.stopPropagation(),e.preventDefault(),e.target&&e.target.blur&&e.target.blur()))}}function l(e){var t=e.touches&&e.touches.length?e.touches:[e],a=t[0].clientX,i=t[0].clientY;d.push(a,i),n(function(){for(var e=0;e")}):(module_status=util.cookie.get("module_status:"+window.sysinfo.module.name),module_status=$.parseJSON(module_status),1==module_status.ban?$(".head").after(''):1==module_status.upgrade.upgrade&&1==window.sysinfo.isfounder&&$(".head").after('"))),window.sysinfo.isfounder,$(".js-big-main").click(function(){var t=$(".skin-default").hasClass("main-lg-body")?"0":"1";util.cookie.set("main-lg",t),e()}),window.sysinfo.uid){var t=new Date;$.getJSON("./index.php?c=message&a=notice&do=event_notice",function(e){var a="";0==e.message.errno&&e.message.message.total&&(a+=''+e.message.message.total+" ",a+='",$(".header-notice").html(a));var n=parseInt(t.getTime()/1e3),i=21600+Math.ceil(1800*Math.random()),s=n+i;util.cookie.set("__notice",s,i)})}}),window.UEDITOR_HOME_URL="./resource/components/ueditor/",$(function(){if(1==$("[data-skin='black']").length&&resizeView(),3==$(".menu-fixed, .left-menu, .right-content").length){require(["slimscroll"],function(){$(".plugin-menu-sub").slimscroll({width:"210px",height:"100%",opacity:.4,color:"#aaa"})});var e=document.documentElement.clientHeight,t=$(".left-menu"),a=t.offset().top,n=t.css("position"),i=$(".footer").length>0?$(".footer").css("height"):0;"default"==$(".skin-default").attr("data-skin")&&$(".left-menu, .skin-default .right-content").css("min-height",e-174-parseInt(i)+"px"),"black"==$(".skin-black").attr("data-skin")&&$(".left-menu, .skin-default .right-content").css("min-height",e-51+"px"),$(window).scroll(function(){var i=$(".footer").length>0&&!$(".footer").is(":hidden")?$(".footer").offset().top:0,s=$(document).scrollTop(),o=i?i-s:e;"default"==$(".skin-default").attr("data-skin")?(s>a?t.css({position:"fixed",height:"auto",top:0,bottom:e>o?e-o+31+"px":"0"}):t.css({position:n,height:e}),s>a?$(".right-content").css({marginLeft:t.css("width")}):$(".right-content").css({marginLeft:0,minHeight:t.height()})):"black"==$(".skin-black").attr("data-skin")&&(s>a?t.css({position:"fixed",top:0,bottom:0}):t.css({position:n,top:s}),s>a?$(".right-content").css({marginLeft:t.css("width")}):$(".right-content").css({marginLeft:0,minHeight:t.height()}))})}if(1==$("[data-skin='classical']").length){var e=document.documentElement.clientHeight,i=$(".footer").length>0?$(".footer").css("height"):0;2==$(".left-menu, .right-content").length&&$(".right-content>.content").css("min-height",e-parseInt(i)-71),$(".panel-cut").length>0&&$(".panel-cut").css("min-height",e-parseInt(i)-71)}var s=document.createElement("script");s.src="";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(s,o)}),angular.module("we7app").directive("we7Colorpicker",[function(){return{templateUrl:"directive-colorpicker-colorpicker.html",scope:{colorValue:"=we7MyColor",colorDefault:"=we7MyDefaultColor",colorFormName:"=we7FormName"},link:function(e,t,a){$(t).data("data-colorpicker-init")||(util.colorpicker(t,function(a){$(t).parent().parent().find(":text").val(a.toHexString()),e.colorValue=a.toHexString(),e.$apply("colorValue"),e.$watch("colorValue",function(a){$(t).spectrum("get")!=a&&($(t).spectrum("set",a||e.colorDefault),$(t).parent().parent().find(":text").val(a||e.colorDefault),$(t).parent().parent().find(".input-group-addon").css("background-color",a||e.colorDefault))})}),$(t).find(".colorclean").click(function(){return $(t).find(":text").val("rgba(0,0,0,0)"),$(t).find(".input-group-addon").css("background-color","rgba(0,0,0,0)"),e.colorValue=e.colorDefault="rgba(0,0,0,0)",$(t).spectrum("set",e.colorDefault),e.$apply("colorValue"),!1}),$(t).data("data-colorpicker-init",!0))}}}]),angular.module("we7app").directive("we7DatePicker",["$http","$parse",function(){return{transclude:!0,template:"",scope:{dateValue:"=we7DateValue"},link:function(e,t,a){var n={lang:"zh",step:"1",format:"Y-m-d H:i:s",closeOnDateSelect:!0,onSelectDate:function(t,a){e.dateValue=t.dateFormat("Y-m-d H:i:s"),e.$apply("dateValue")},onSelectTime:function(t,a){e.dateValue=t.dateFormat("Y-m-d H:i:s"),e.$apply("dateValue")}};$(t).datetimepicker(n)}}}]),angular.module("we7app").directive("we7DateRangePicker",["$compile","$parse","$filter",function(e,t,a){return{restrict:"A",require:"?ngModel",link:function(e,n,i,s){require(["daterangepicker"],function(){function o(e){return moment.isMoment(e)?e.toDate():e}function r(e){return moment.isMoment(e)?e:moment(e)}function l(e){return a("date")(o(e),u.format.replace(/Y/g,"y").replace(/D/g,"d"))}function c(e){return[l(e.startDate),l(e.endDate)].join(u.separator)}var u={};u.format=i.format||"YYYY-MM-DD",u.separator=i.separator||" - ",u.minDate=i.minDate&&moment(i.minDate),u.maxDate=i.maxDate&&moment(i.maxDate),u.dateLimit=i.limit&&moment.duration.apply(this,i.limit.split(" ").map(function(e,t){return 0===t&&parseInt(e,10)||e})),u.ranges=i.ranges&&t(i.ranges)(e),u.locale=i.locale&&t(i.locale)(e),u.opens=i.opens||t(i.opens)(e),i.enabletimepicker&&(u.timePicker=!0,angular.extend(u,t(i.enabletimepicker)(e))),s.$render=function(){s.$viewValue&&s.$viewValue.startDate&&n.val(c(s.$viewValue))},e.$watch(function(){return i.ngModel},function(t,a){e[t]&&e[t].startDate?a===t&&(n.data("daterangepicker").startDate=r(e[t].startDate),n.data("daterangepicker").endDate=r(e[t].endDate),n.data("daterangepicker").updateView(),n.data("daterangepicker").updateCalendars(),n.data("daterangepicker").updateInputText()):s.$setViewValue({startDate:moment().startOf("day"),endDate:moment().startOf("day")})}),n.daterangepicker(u,function(t,a,n){var i=s.$viewValue;angular.equals(t,i.startDate)&&angular.equals(a,i.endDate)||e.$apply(function(){s.$setViewValue({startDate:moment.isMoment(i.startDate)?t:t.toDate(),endDate:moment.isMoment(i.endDate)?a:a.toDate()}),s.$render()})})})}}}]),angular.module("we7app").directive("we7Editor",function(){var e={scope:{value:"=?we7MyValue",params:"=?we7MyParams"},template:'',link:function(t,a,n){if(!a.data("editor")){a.find("textarea").attr("id","editor"+(new Date).getTime());var i={autoClearinitialContent:!1,toolbars:[["fullscreen","source","preview","|","bold","italic","underline","strikethrough","forecolor","backcolor","|","justifyleft","justifycenter","justifyright","|","insertorderedlist","insertunorderedlist","blockquote","emotion","link","removeformat","|","rowspacingtop","rowspacingbottom","lineheight","indent","paragraph","fontfamily","fontsize","|","inserttable","deletetable","insertparagraphbeforetable","insertrow","deleterow","insertcol","deletecol","mergecells","mergeright","mergedown","splittocells","splittorows","splittocols","|","anchor","map","print","drafts"]],elementPathEnabled:!1,initialFrameHeight:200,focus:!1,maximumWords:9999999999999,autoFloatEnabled:!1};e=UE.getEditor(a.find("textarea").attr("id"),i),a.data("editor",e),e.addListener("contentChange",function(){t.value=e.getContent(),t.value&&(t.params=t.value.replace(/\"/g,"#quot;")),t.$root.$$phase||t.$apply("value")}),e.addListener("ready",function(){!t.value&&t.params&&(t.value=t.params.replace(/\#quot;/g,""")),t.value&&e&&e.getContent()!=t.value&&e.setContent(t.value),t.$watch("value",function(t){e&&e.getContent()!=t&&e.setContent(t||"")})})}}};return e}),angular.module("we7app").directive("we7Iconer",["$templateCache",function(e){e.get("directive-iconer-nav-pills-inline.html"),e.get("directive-iconer-tab-content-inline.html");return{scope:{image:"=we7MyImage",icon:"=we7MyIcon",iconcolor:"=we7MyIconColor"},transclude:!0,templateUrl:"directive-iconer-iconer.html",link:function(e,t,a){e.selectIcon=function(){require(["fileUploader"],function(t){t.show(function(t){e.icon={},e.icon.name=t.name,e.icon.color=t.color,e.$apply("image"),e.$apply("icon")},{direct:!0,multiple:!1,type:"icon",otherVal:e.iconcolor})})},e.removeIcon=function(){e.image="",e.icon={}}}}}]),angular.module("we7app").directive("we7InitialSearchbar",function(){return{templateUrl:"directive-initialsearchbar-searchbar.html",scope:{doSearch:"&we7SearchCallback"},link:function(e,t,a){e.alphabet=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],e.searchResult=function(t){e.activeLetter=t,e.doSearch({letter:t})}}}}),angular.module("we7app").directive("we7Linker",["$http","$templateCache",function(e,t){var a=t.get("directive-linker-cms-header-inline.html"),n=t.get("directive-linker-cms-content-inline.html"),s=t.get("directive-linker-cms-article-item-inline.html"),o=t.get("directive-linker-cms-cate-item-inline.html"),r=t.get("directive-linker-news-content-inline.html"),l=t.get("directive-linker-news-item-inline.html"),c=t.get("directive-linker-page-content-inline.html"),u=t.get("directive-linker-page-item-inline.html"),d=t.get("directive-linker-map-content-inline.html"),p=t.get("directive-linker-tel-content-inline.html");return{templateUrl:"directive-linker-linker.html",scope:{url:"=we7MyUrl",title:"=we7MyTitle"},link:function(t,m,g){m.find(".input-group-btn").mouseover(function(e){clearTimeout(t.timer),m.find(".dropdown-menu").show()}).mouseout(function(){t.timer=setTimeout(function(){m.find(".dropdown-menu").hide()},500)}),m.find(".dropdown-menu").mouseover(function(){clearTimeout(t.timer),m.find(".dropdown-menu").show()}).mouseout(function(){t.timer=setTimeout(function(){m.find(".dropdown-menu").hide()},500)}),t.addLink=function(e,a){t.url=e,a&&(t.title=a)},t.searchSystemLinker=function(){t.modalobj=util.dialog("请选择链接",["./index.php?c=utility&a=link&callback=selectLinkComplete"],"",{containerName:"link-search-system"}),t.modalobj.modal({keyboard:!1}),t.modalobj.find(".modal-body").css({height:"680px","overflow-y":"auto"}),t.modalobj.modal("show"),window.selectLinkComplete=function(e,a){t.addLink(e,a),t.$apply("url","title"),t.modalobj.modal("hide")}},t.searchCmsLinker=function(r){var l={};l.header=a,l.content=n,l.footer="",l.articleitem=s,l.cateitem=o,$("#link-search-cms")[0]?t.modalobj=$("#link-search-cms").data("modal"):(t.modalobj=util.dialog(l.header,l.content,l.footer,{containerName:"link-search-cms"}),t.modalobj.find(".modal-body").css({height:"680px","overflow-y":"auto"}),t.modalobj.modal("show"),t.modalobj.on("hidden.bs.modal",function(){t.modalobj.remove()}),$("#link-search-cms").data("modal",t.modalobj)),r=r||1;var c=$("#articlelist .article-list-input").val();e.get("./index.php?c=utility&a=link&do=articlelist&page="+r+"&keyword="+c).success(function(e,a,n,s){var o={items:[]};if(e.message=e.message.message,e.message.list){for(i in e.message.list)o.items.push({title:e.message.list[i].title,id:e.message.list[i].id,uniacid:e.message.list[i].uniacid,attachment:e.message.list[i].thumb_url,createtime:e.message.list[i].createtime});t.modalobj.find("#articlelist tbody").html(_.template(l.articleitem)(o)),t.modalobj.find("#pager").html(e.message.pager),t.modalobj.find("#pager .pagination li[class!='active'] a").click(function(){return t.searchCmsLinker($(this).attr("page")),!1}),t.modalobj.find("#articlelist .input-group-btn").click(function(){return t.searchCmsLinker(),!1}),t.modalobj.find(".js-btn-select").click(function(){t.addLink($(this).attr("js-url"),$(this).attr("js-title")),t.$apply("url","title"),t.modalobj.modal("hide")})}});var u=$("#category .category-list-input").val();e.get("./index.php?c=utility&a=link&do=catelist&page="+r+"&keyword="+u).success(function(e,a,n,s){var o={items:[]};if(e.message=e.message.message,e.message){for(i in e.message)o.items.push({id:e.message[i].id,uniacid:e.message[i].uniacid,name:e.message[i].name,children:e.message[i].children});t.modalobj.find("#category tbody").html(_.template(l.cateitem)(o)),t.modalobj.find("#category .input-group-btn").click(function(){return t.searchCmsLinker(),!1}),t.modalobj.find(".js-btn-select").click(function(){t.addLink($(this).attr("js-url"),$(this).attr("js-title")),t.$apply("url","title"),t.modalobj.modal("hide")})}})},t.searchNewsLinker=function(a){var n={};n.content=r,n.footer="",n.newsitem=l,$("#link-search-news")[0]?t.modalobj=$("#link-search-news").data("modal"):(t.modalobj=util.dialog(n.header,n.content,n.footer,{containerName:"link-search-news"}),t.modalobj.find(".modal-body").css({height:"680px","overflow-y":"auto"}),t.modalobj.modal("show"),t.modalobj.on("hidden.bs.modal",function(){t.modalobj.remove()}),$("#link-search-news").data("modal",t.modalobj)),a=a||1;var s=$("#newslist .news-list-input").val();e.get("./index.php?c=utility&a=link&do=newslist&page="+a+"&keyword="+s).success(function(e,a,s,o){var r={items:[]};if(e.message=e.message.message,e.message.list){for(i in e.message.list)r.items.push({title:e.message.list[i].title,id:e.message.list[i].id,uniacid:window.sysinfo.uniacid,attachment:e.message.list[i].thumb_url,createtime:e.message.list[i].createtime,url:e.message.list[i].url});t.modalobj.find("#newslist tbody").html(_.template(n.newsitem)(r)),t.modalobj.find("#pager").html(e.message.pager),t.modalobj.find("#pager .pagination li[class!='active'] a").click(function(){return t.searchNewsLinker($(this).attr("page")),!1}),t.modalobj.find("#newslist .input-group-btn").click(function(){return t.searchNewsLinker(),!1}),t.modalobj.find(".js-btn-select").click(function(){t.addLink($(this).attr("js-url"),$(this).attr("js-title")),t.$apply("url","title"),t.modalobj.modal("hide")})}})},t.searchPageLinker=function(a){var n={};n.content=c,n.footer="",n.pageItem=u,$("#link-search-page")[0]?t.modalobj=$("#link-search-page").data("modal"):(t.modalobj=util.dialog(n.header,n.content,n.footer,{containerName:"link-search-page"}),t.modalobj.find(".modal-body").css({height:"680px","overflow-y":"auto"}),t.modalobj.modal("show"),t.modalobj.on("hidden.bs.modal",function(){t.modalobj.remove()}),$("#link-search-page").data("modal",t.modalobj)),a=a||1;var s=$("#pageList .page-list-input").val();e.get("./index.php?c=utility&a=link&do=pagelist&&page="+a+"&keyword="+s).success(function(e,a,s,o){var r={items:[]};if(e.message=e.message.message,e.message.list){for(i in e.message.list)r.items.push({title:e.message.list[i].title,id:e.message.list[i].id,uniacid:window.sysinfo.uniacid,createtime:e.message.list[i].createtime});t.modalobj.find("#pageList tbody").html(_.template(n.pageItem)(r)),t.modalobj.find("#pager").html(e.message.pager),t.modalobj.find("#pager .pagination li[class!='active'] a").click(function(){return t.searchPageLinker($(this).attr("page")),!1}),t.modalobj.find("#pageList .input-group-btn").click(function(){return t.searchPageLinker(),!1}),t.modalobj.find(".js-btn-select").click(function(){t.addLink($(this).attr("js-url"),$(this).attr("js-title")),t.$apply("url","title"),t.modalobj.modal("hide")})}})},t.searchMapPosLinker=function(){var e={};e.content=d,t.modalobj=util.dialog(e.content),t.modalobj.modal("show"),t.modalobj.find("#getnav").click(function(){t.addLink("https://api.map.baidu.com/marker?location="+$("#navlat").val()+","+$("#navlng").val()+"&title="+$("#navtitle").val()+"&name="+$("#navtitle").val()+"&output=html&src=we7",$("#navtitle").val()),t.$apply("url","title"),t.modalobj.modal("hide")})},t.addTelLinker=function(){var e={};e.content=p,t.modalobj=util.dialog("一键拨号",e.content),t.modalobj.modal("show"),t.modalobj.find(".btn-primary").click(function(){t.addLink("tel:"+t.modalobj.find("#telphone").val(),""),t.$apply("url","title"),t.modalobj.modal("hide")})}}}}]),angular.module("we7app").directive("we7ResourcePicker",function(){return{scope:{type:"@type",isWechat:"@isWechat",multiple:"@mutiple",showType:"@showType",needType:"@needType",global:"@global",dest_dir:"@dest_dir",onSelect:"&onSelect"},link:function(e,t,a){$(t).unbind("click").on("click",function(){e.show()}),$(window).unbind("resource_selected").on("resource_selected",function(t,a){e.finish(a.type,a.items)})},controller:function(e){var t=function(e){return"'};e.show=function(){var a={type:e.type,isWechat:"true"===e.isWechat,multiple:"true"===e.multiple,needType:e.needType<=3?e.needType:3,global:"true"===e.global,dest_dir:e.dest_dir};$("#material-Modal").remove();var n=t(e.type);$(document.body).prepend(n);var i=$("#material-Modal");i.modal("show"),angular.module("we7resource").value("config",a),angular.bootstrap(i,["we7resource"])},e.finish=function(t,a){e.onSelect({type:t,items:a}),$("#material-Modal").modal("hide")}}}}),angular.module("we7app").run(["$templateCache",function(e){"use strict";e.put("directive-colorpicker-colorpicker.html",'
    '),e.put("directive-iconer-iconer.html",''),e.put("directive-iconer-nav-pills-inline.html",''),e.put("directive-iconer-tab-content-inline.html",'
    '),e.put("directive-initialsearchbar-searchbar.html",''),e.put("directive-linker-cms-article-item-inline.html",'<%_.each(items, function(item) {%><%=item.title%><%=item.createtime%><%});%>'),e.put("directive-linker-cms-cate-item-inline.html",'<%_.each(items, function(item) {%><%=item.name%>选取<%_.each(item.children, function(child) {%><%=child.name%>选取<%});%><%});%>'),e.put("directive-linker-cms-content-inline.html",'
    标题创建时间
    标题创建时间
    '),e.put("directive-linker-cms-header-inline.html",''),e.put("directive-linker-linker.html",''),e.put("directive-linker-map-content-inline.html",'