var timerModule,ngFileUpload;!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function hr(n,t,i){var r,u=(t=t||f).createElement("script");if(u.text=n,i)for(r in df)i[r]&&(u[r]=i[r]);t.head.appendChild(u).parentNode.removeChild(u)}function it(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?bt[or.call(n)]||"object":typeof n}function hi(n){var t=!!n&&"length"in n&&n.length,i=it(n);return!u(n)&&!tt(n)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in n)}function v(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function li(n,t,r){return u(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return wt.call(t,n)>-1!==r}):i.filter(t,n,r)}function wr(n,t){while((n=n[t])&&1!==n.nodeType);return n}function ne(n){var t={};return i.each(n.match(l)||[],function(n,i){t[i]=!0}),t}function ut(n){return n}function dt(n){throw n;}function br(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function ni(){f.removeEventListener("DOMContentLoaded",ni);n.removeEventListener("load",ni);i.ready()}function re(n,t){return t.toUpperCase()}function y(n){return n.replace(te,"ms-").replace(ie,re)}function at(){this.expando=i.expando+at.uid++}function ee(n){return"true"===n||"false"!==n&&("null"===n?null:n===+n+""?+n:ue.test(n)?JSON.parse(n):n)}function dr(n,t,i){var r;if(void 0===i&&1===n.nodeType)if(r="data-"+t.replace(fe,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(r))){try{i=ee(i)}catch(n){}o.set(n,t,i)}else i=void 0;return i}function tu(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==e&&+o)&&vt.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function oe(n){var r,f=n.ownerDocument,u=n.nodeName,t=ai[u];return t||(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),"none"===t&&(t="block"),ai[u]=t,t)}function ft(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)(u=n[i]).style&&(e=u.style.display,t?("none"===e&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),""===u.style.display&&ti(u)&&(f[i]=oe(u))):"none"!==e&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)null!=f[i]&&(n[i].style.display=f[i]);return n}function s(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&v(n,t)?i.merge([n],r):r}function vi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function eu(n,t,r,u,f){for(var e,o,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if((e=n[l])||0===e)if("object"===it(e))i.merge(y,e.nodeType?[e]:e);else if(fu.test(e)){for(o=o||h.appendChild(t.createElement("div")),p=(ru.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=h.firstChild).textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];)if(u&&i.inArray(e,u)>-1)f&&f.push(e);else if(w=i.contains(e.ownerDocument,e),o=s(h.appendChild(e),"script"),w&&vi(o),r)for(v=0;e=o[v++];)uu.test(e.type||"")&&r.push(e);return h}function ri(){return!0}function et(){return!1}function su(){try{return f.activeElement}catch(n){}}function yi(n,t,r,u,f,e){var o,s;if("object"==typeof t){"string"!=typeof r&&(u=u||r,r=void 0);for(s in t)yi(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),!1===f)f=et;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function hu(n,t){return v(n,"table")&&v(11!==t.nodeType?t:t.firstChild,"tr")?i(n).children("tbody")[0]||n:n}function ye(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function pe(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function cu(n,t){var u,c,f,s,h,l,a,e;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),e=s.events)){delete h.handle;h.events={};for(f in e)for(u=0,c=e[f].length;u<c;u++)i.event.add(t,f,e[f][u])}o.hasData(n)&&(l=o.access(n),a=i.extend({},l),o.set(t,a))}}function we(n,t){var i=t.nodeName.toLowerCase();"input"===i&&iu.test(n.type)?t.checked=n.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=n.defaultValue)}function ot(n,t,f,o){t=er.apply([],t);var l,w,a,v,h,b,c=0,y=n.length,d=y-1,p=t[0],k=u(p);if(k||y>1&&"string"==typeof p&&!e.checkClone&&ae.test(p))return n.each(function(i){var r=n.eq(i);k&&(t[0]=p.call(this,i,r.html()));ot(r,t,f,o)});if(y&&(l=eu(t,n[0].ownerDocument,!1,n,o),w=l.firstChild,1===l.childNodes.length&&(l=w),w||o)){for(v=(a=i.map(s(l,"script"),ye)).length;c<y;c++)h=l,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(a,s(h,"script"))),f.call(n[c],h,c);if(v)for(b=a[a.length-1].ownerDocument,i.map(a,pe),c=0;c<v;c++)h=a[c],uu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(b,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?i._evalUrl&&i._evalUrl(h.src):hr(h.textContent.replace(ve,""),b,h))}return n}function lu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(s(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&vi(s(u,"script")),u.parentNode.removeChild(u));return n}function yt(n,t,r){var o,s,h,f,u=n.style;return(r=r||ui(n))&&(""!==(f=r.getPropertyValue(t)||r[t])||i.contains(n.ownerDocument,n)||(f=i.style(n,t)),!e.pixelBoxStyles()&&pi.test(f)&&be.test(t)&&(o=u.width,s=u.minWidth,h=u.maxWidth,u.minWidth=u.maxWidth=u.width=f,f=r.width,u.width=o,u.minWidth=s,u.maxWidth=h)),void 0!==f?f+"":f}function au(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function ge(n){if(n in wu)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=pu.length;t--;)if((n=pu[t]+i)in wu)return n}function bu(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=ge(n)||n),t}function ku(n,t,i){var r=vt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wi(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+w[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+w[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+w[o]+"Width",!0,f))):(s+=i.css(n,"padding"+w[o],!0,f),"padding"!==r?s+=i.css(n,"border"+w[o]+"Width",!0,f):h+=i.css(n,"border"+w[o]+"Width",!0,f));return!u&&e>=0&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))),s}function du(n,t,r){var f=ui(n),u=yt(n,t,f),s="border-box"===i.css(n,"boxSizing",!1,f),o=s;if(pi.test(u)){if(!r)return u;u="auto"}return o=o&&(e.boxSizingReliable()||u===n.style[t]),("auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&(u=n["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),(u=parseFloat(u)||0)+wi(n,t,r||(s?"border":"content"),o,f,u)+"px"}function h(n,t,i,r,u){return new h.prototype.init(n,t,i,r,u)}function bi(){fi&&(!1===f.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(bi):n.setTimeout(bi,i.fx.interval),i.fx.tick())}function tf(){return n.setTimeout(function(){st=void 0}),st=Date.now()}function ei(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=w[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function rf(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function no(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&ti(n),e=r.get(n,"fxshow");u.queue||(null==(c=i._queueHooks(n,"fx")).unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],gu.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if((h=!i.isEmptyObject(t))||!i.isEmptyObject(p)){k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(ft([n],!0),o=n.style.display||o,l=i.css(n,"display"),ft([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block"));u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]}));h=!1;for(f in p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&ft([n],!0),v.done(function(){a||ft([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),h=rf(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}}function to(n,t){var r,f,e,u,o;for(r in n)if(f=y(r),e=t[f],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),(o=i.cssHooks[f])&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function a(n,t,r){var o,s,h=0,v=a.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=st||tf(),t=Math.max(0,f.startTime+f.duration-o),i=1-(t/f.duration||0),r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return e.notifyWith(n,[f,i,t]),i<1&&u?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:st||tf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(to(c,f.opts.specialEasing);h<v;h++)if(o=a.prefilters[h].call(f,n,c,f.opts))return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,rf,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function g(n){return(n.match(l)||[]).join(" ")}function nt(n){return n.getAttribute&&n.getAttribute("class")||""}function ki(n){return Array.isArray(n)?n:"string"==typeof n?n.match(l)||[]:[]}function tr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||io.test(n)?u(n,i):tr(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==it(t))u(n,t);else for(f in t)tr(n+"["+f+"]",t[f],r,u)}function af(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))while(r=e[f++])"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function vf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===ir;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ur(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function lo(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function ao(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(!(f=o[e+" "+u]||o["* "+u]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}var k=[],f=n.document,bf=Object.getPrototypeOf,d=k.slice,er=k.concat,si=k.push,wt=k.indexOf,bt={},or=bt.toString,kt=bt.hasOwnProperty,sr=kt.toString,kf=sr.call(Object),e={},u=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType},tt=function(n){return null!=n&&n===n.window},df={type:!0,src:!0,noModule:!0},i=function(n,t){return new i.fn.init(n,t)},gf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b,ci,ar,vr,yr,pr,l,kr,gt,lt,ai,fu,st,fi,gu,nf,uf,ht,ff,ef,of,di,gi,yf,ct,fr,oi,pf,wf;i.fn=i.prototype={jquery:"3.3.1",constructor:i,length:0,toArray:function(){return d.call(this)},get:function(n){return null==n?d.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:si,sort:k.sort,splice:k.splice};i.extend=i.fn.extend=function(){var o,e,t,r,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for("boolean"==typeof n&&(c=n,n=arguments[f]||{},f++),"object"==typeof n||u(n)||(n={}),f===l&&(n=this,f--);f<l;f++)if(null!=(o=arguments[f]))for(e in o)t=n[e],n!==(r=o[e])&&(c&&r&&(i.isPlainObject(r)||(s=Array.isArray(r)))?(s?(s=!1,h=t&&Array.isArray(t)?t:[]):h=t&&i.isPlainObject(t)?t:{},n[e]=i.extend(c,h,r)):void 0!==r&&(n[e]=r));return n};i.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==or.call(n))&&(!(t=bf(n))||"function"==typeof(i=kt.call(t,"constructor")&&t.constructor)&&sr.call(i)===kf)},isEmptyObject:function(n){for(var t in n)return!1;return!0},globalEval:function(n){hr(n)},each:function(n,t){var r,i=0;if(hi(n)){for(r=n.length;i<r;i++)if(!1===t.call(n[i],i,n[i]))break}else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},trim:function(n){return null==n?"":(n+"").replace(gf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(hi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):si.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:wt.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var f,u=[],r=0,e=n.length,o=!i;r<e;r++)(f=!t(n[r],r))!==o&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(hi(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return er.apply([],f)},guid:1,support:e});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=k[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){bt["[object "+t+"]"]=t.toLowerCase()});b=function(n){function u(n,t,r,u){var s,p,l,a,w,d,g,y=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==v&&(w=cr.exec(n)))if(s=w[1]){if(9===v){if(!(l=t.getElementById(s)))return r;if(l.id===s)return r.push(l),r}else if(y&&(l=y.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(w[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=w[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(1!==v)y=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),p=(d=ft(n)).length;p--;)d[p]="#"+a+" "+yt(d[p]);g=d.join(",");y=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,y.querySelectorAll(g)),r}catch(n){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&"parentNode"===e,s=di++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,h))return!0}else while(t=t[r])if(1===t.nodeType||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:wt(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[pt(ui(e),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return!0===n.disabled&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(n){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return!!t&&"HTML"!==t.nodeName};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement?(i=l,s=i.documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i):i};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):void 0;return void 0!==u?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};(t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,d,y,c,a,w,b=s!==o?"nextSibling":"previousSibling",k=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(k){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(y=(c=k)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[v,a,l];break}}else if(g&&(l=a=(p=(d=(y=(c=t)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1]),!1===l)while(c=++a&&c&&c[b]||(l=a=0)||w.pop())if((e?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&((d=(y=c[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]=[v,l]),c===t))break;return(l-=u)===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}}).pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)(i=ei(t[r]))[f]?u.push(i):e.push(i);(i=lt(n,pr(e,u))).selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if((f=s[0]=s[0].slice(0)).length>2&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(!(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0]))return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&yt(f)))return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(dt,function(n,t,i){var r;if(!i)return!0===n[t]?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=b;i.expr=b.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=b.uniqueSort;i.text=b.getText;i.isXMLDoc=b.isXML;i.contains=b.contains;i.escapeSelector=b.escape;var rt=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},cr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},lr=i.expr.match.needsContext;ci=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(li(this,n||[],!1))},not:function(n){return this.pushStack(li(this,n||[],!0))},is:function(n){return!!li(this,"string"==typeof n&&lr.test(n)?i(n):n||[],!1).length}});vr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||ar,"string"==typeof n){if(!(e="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:vr.exec(n))||!e[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),ci.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(o=f.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;ar=i(f);yr=/^(?:parents|prev(?:Until|All))/;pr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!lr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?wt.call(i(n),this[0]):wt.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return rt(n,"parentNode")},parentsUntil:function(n,t,i){return rt(n,"parentNode",i)},next:function(n){return wr(n,"nextSibling")},prev:function(n){return wr(n,"previousSibling")},nextAll:function(n){return rt(n,"nextSibling")},prevAll:function(n){return rt(n,"previousSibling")},nextUntil:function(n,t,i){return rt(n,"nextSibling",i)},prevUntil:function(n,t,i){return rt(n,"previousSibling",i)},siblings:function(n){return cr((n.parentNode||{}).firstChild,n)},children:function(n){return cr(n.firstChild)},contents:function(n){return v(n,"iframe")?n.contentDocument:(v(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(pr[n]||i.uniqueSort(f),yr.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n="string"==typeof n?ne(n):i.extend({},n);var f,r,c,e,t=[],s=[],o=-1,l=function(){for(e=e||n.once,c=f=!0;s.length;o=-1)for(r=s.shift();++o<t.length;)!1===t[o].apply(r[0],r[1])&&n.stopOnFalse&&(o=t.length,r=!1);n.memory||(r=!1);f=!1;e&&(t=r?[]:"")},h={add:function(){return t&&(r&&!f&&(o=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&h.has(r)||t.push(r):r&&r.length&&"string"!==it(r)&&f(r)})}(arguments),r&&!f&&l()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=o&&o--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return e=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return e=s=[],r||f||(t=r=""),this},locked:function(){return!!e},fireWith:function(n,t){return e||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),f||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(t){var f=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,f,e){return function(){var h=this,c=arguments,a=function(){var n,i;if(!(t<o)){if((n=f.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;u(i)?e?i.call(n,s(o,r,ut,e),s(o,r,dt,e)):(o++,i.call(n,s(o,r,ut,e),s(o,r,dt,e),s(o,r,ut,r.notifyWith))):(f!==ut&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}},l=e?a:function(){try{a()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,l.stackTrace);t+1>=o&&(f!==dt&&(h=void 0,c=[n]),r.rejectWith(h,c))}};t?l():(i.Deferred.getStackHook&&(l.stackTrace=i.Deferred.getStackHook()),n.setTimeout(l))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:ut,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:ut));f[2][3].add(s(0,n,u(r)?r:dt))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=d.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=arguments.length>1?d.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(br(n,r.done(s(t)).resolve,r.reject,!e),"pending"===r.state()||u(f[t]&&f[t].then)))return r.then();while(t--)br(f[t],s(t),r.reject);return r.promise()}});kr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&kr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};gt=i.Deferred();i.fn.ready=function(n){return gt.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0,!0!==n&&--i.readyWait>0||gt.resolveWith(f,[i]))}});i.ready.then=gt.then;"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?n.setTimeout(i.ready):(f.addEventListener("DOMContentLoaded",ni),n.addEventListener("load",ni));var p=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=null==r;if("object"===it(r)){e=!0;for(h in r)p(n,t,h,r[h],!0,o,s)}else if(void 0!==f&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},te=/^-ms-/,ie=/-([a-z])/g;lt=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};at.uid=1;at.prototype={cache:function(n){var t=n[this.expando];return t||(t={},lt(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(u=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(l)||[]).length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new at,o=new at,ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,fe=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],s=i&&i.attributes;if(void 0===n){if(this.length&&(e=o.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&0===(u=s[f].name).indexOf("data-")&&(u=y(u.slice(5)),dr(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){o.set(this,n)}):p(this,function(t){var r;if(i&&void 0===t){if(void 0!==(r=o.get(i,n))||void 0!==(r=dr(i,n)))return r}else this.each(function(){o.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){o.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)(u=r.get(f[s],n+"queueHooks"))&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var gr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,vt=new RegExp("^(?:([+-])=|)("+gr+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],ti=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&i.contains(n.ownerDocument,n)&&"none"===i.css(n,"display")},nu=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};ai={};i.fn.extend({show:function(){return ft(this,!0)},hide:function(){return ft(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){ti(this)?i(this).show():i(this).hide()})}});var iu=/^(?:checkbox|radio)$/i,ru=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,uu=/^$|^module$|\/(?:java|ecma)script/i,c={option:[1,"<select multiple='multiple'>","<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;fu=/<|&#?\w+;/;!function(){var n=f.createDocumentFragment().appendChild(f.createElement("div")),t=f.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);e.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var ii=f.documentElement,se=/^key/,he=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ou=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,v,k,y,w,h,s,c,o,b,d,a=r.get(n);if(a)for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(ii,e),u.guid||(u.guid=i.guid++),(y=a.events)||(y=a.events={}),(v=a.handle)||(v=a.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(l)||[""]).length;w--;)o=d=(k=ou.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=y[o])||((c=y[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,v)||n.addEventListener&&n.addEventListener(o,v)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,h,v,p,s,c,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(h=ou.exec(t[p])||[],o=d=h[1],b=(h[2]||"").split(".").sort(),o){for(c=i.event.special[o]||{},a=v[o=(f?c.delegateType:c.bindType)||o]||[],h=h[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||h&&!h.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,c.remove&&c.remove.call(n,s));k&&!a.length&&(c.teardown&&!1!==c.teardown.call(n,b,w.handle)||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,h,c,e,f,l,s=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==su()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===su()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&v(this,"input"))return this.click(),!1},_default:function(n){return v(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?ri:et,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ri;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ri;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ri;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return null==n.which&&se.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==t&&he.test(n.type)?1&t?1:2&t?3:4&t?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return yi(this,n,t,i,r)},one:function(n,t,i,r){return yi(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=et),this.each(function(){i.event.remove(this,n,r,t)})}});var ce=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,le=/<script|<style|<link/i,ae=/checked\s*(?:[^=]|=\s*.checked.)/i,ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(ce,"<$1><\/$2>")},clone:function(n,t,r){var u,c,o,f,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=s(h),u=0,c=(o=s(n)).length;u<c;u++)we(o[u],f[u]);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)cu(o[u],f[u]);else cu(n,h);return(f=s(h,"script")).length>0&&vi(f,!l&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;void 0!==(t=n[e]);e++)if(lt(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[o.expando]&&(t[o.expando]=void 0)}}});i.fn.extend({detach:function(n){return lu(this,n,!0)},remove:function(n){return lu(this,n)},text:function(n){return p(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return ot(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||hu(this,n).appendChild(n)})},prepend:function(){return ot(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=hu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return p(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!le.test(n)&&!c[(ru.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return ot(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),si.apply(f,u.get());return this.pushStack(f)}});var pi=new RegExp("^("+gr+")(?!px)[a-z%]+$","i"),ui=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},be=new RegExp(w.join("|"),"i");!function(){function r(){if(t){o.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";ii.appendChild(o).appendChild(t);var i=n.getComputedStyle(t);s="1%"!==i.top;a=12===u(i.marginLeft);t.style.right="60%";l=36===u(i.right);h=36===u(i.width);t.style.position="absolute";c=36===t.offsetWidth||"absolute";ii.removeChild(o);t=null}}function u(n){return Math.round(parseFloat(n))}var s,h,c,l,a,o=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return r(),h},pixelBoxStyles:function(){return r(),l},pixelPosition:function(){return r(),s},reliableMarginLeft:function(){return r(),a},scrollboxSize:function(){return r(),c}}))}();var ke=/^(none|table(?!-c[ea]).+)/,vu=/^--/,de={position:"absolute",visibility:"hidden",display:"block"},yu={letterSpacing:"0",fontWeight:"400"},pu=["Webkit","Moz","ms"],wu=f.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=yt(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=y(t),l=vu.test(t),s=n.style;if(l||(t=bu(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=vt.exec(r))&&f[1]&&(r=tu(n,t,f),h="number");null!=r&&r===r&&("number"===h&&(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=y(t);return vu.test(t)||(t=bu(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=yt(n,t,u)),"normal"===f&&t in yu&&(f=yu[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!ke.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?du(n,t,u):nu(n,de,function(){return du(n,t,u)})},set:function(n,r,u){var s,f=ui(n),h="border-box"===i.css(n,"boxSizing",!1,f),o=u&&wi(n,t,u,h,f);return h&&e.scrollboxSize()===f.position&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-wi(n,t,"border",!1,f)-.5)),o&&(s=vt.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),ku(n,r,o)}}});i.cssHooks.marginLeft=au(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(yt(n,"marginLeft"))||n.getBoundingClientRect().left-nu(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=ku)});i.fn.extend({css:function(n,t){return p(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ui(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=h;h.prototype={constructor:h,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=h.propHooks[this.prop];return n&&n.get?n.get(this):h.propHooks._default.get(this)},run:function(n){var t,r=h.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):h.propHooks._default.set(this),this}};h.prototype.init.prototype=h.prototype;h.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[i.cssProps[n.prop]]&&!i.cssHooks[n.prop]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}};h.propHooks.scrollTop=h.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=h.prototype.init;i.fx.step={};gu=/^(?:toggle|show|hide)$/;nf=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return tu(i.elem,n,vt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],a.tweeners[i]=a.tweeners[i]||[],a.tweeners[i].unshift(t)},prefilters:[no],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:"number"!=typeof f.duration&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),null!=f.queue&&!0!==f.queue||(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ti).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&!1!==n&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&nf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return!1!==n&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ei(t,!0),n,i,u)}});i.each({slideDown:ei("show"),slideUp:ei("hide"),slideToggle:ei("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(st=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();st=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){fi||(fi=!0,bi())};i.fx.stop=function(){fi=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=f.createElement("input"),t=f.createElement("select").appendChild(f.createElement("option"));n.type="checkbox";e.checkOn=""!==n.value;e.optSelected=t.selected;(n=f.createElement("input")).value="t";n.type="radio";e.radioValue="t"===n.value}();ht=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return p(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?uf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&v(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(l);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});uf={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ht[t]||i.find.attr;ht[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ht[u],ht[u]=f,f=null!=r(n,t,i)?u:null,ht[u]=e),f}});ff=/^(?:input|select|textarea|button)$/i;ef=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return p(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):ff.test(n.nodeName)||ef.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if((o=ki(n)).length)while(t=this[c++])if(f=nt(t),r=1===t.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)r.indexOf(" "+e+" ")<0&&(r+=e+" ");f!==(h=g(r))&&t.setAttribute("class",h)}return this},removeClass:function(n){var o,r,t,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if((o=ki(n)).length)while(r=this[c++])if(f=nt(r),t=1===r.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)while(t.indexOf(" "+e+" ")>-1)t=t.replace(" "+e+" "," ");f!==(h=g(t))&&r.setAttribute("class",h)}return this},toggleClass:function(n,t){var f=typeof n,e="string"===f||Array.isArray(n);return"boolean"==typeof t&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=ki(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==f||((t=nt(this))&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+g(nt(t))+" ").indexOf(i)>-1)return!0;return!1}});of=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=e?n.call(this,r,i(this).val()):n)?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),(t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(f,"value"))?r:"string"==typeof(r=f.value)?r.replace(of,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:g(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(((t=o[r]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!v(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=i.inArray(i.valHooks.option.get(u),e)>-1)&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;di=/^(?:focusinfocus|focusoutblur)$/;gi=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,p,w=[o||f],h=kt.call(t,"type")?t.type:t,b=kt.call(t,"namespace")?t.namespace.split("."):[];if(c=p=l=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!di.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t),t.isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!tt(o)){for(d=a.delegateType||h,di.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||f)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=k>1?d:a.bindType||h,(y=(r.get(c,"events")||{})[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&lt(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),e)||!lt(o)||v&&u(o[h])&&!tt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,gi),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,gi),i.event.triggered=void 0,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});e.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var pt=n.location,sf=Date.now(),nr=/\?/;i.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(n){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var io=/\[\]$/,hf=/\r?\n/g,ro=/^(?:submit|button|image|reset|file)$/i,uo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)tr(r,n[r],t,e);return f.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&uo.test(this.nodeName)&&!ro.test(n)&&(this.checked||!iu.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(hf,"\r\n")}}):{name:t.name,value:r.replace(hf,"\r\n")}}).get()}});var fo=/%20/g,eo=/#.*$/,oo=/([?&])_=[^&]*/,so=/^(.*?):[ \t]*([^\r\n]*)$/gm,ho=/^(?:GET|HEAD)$/,co=/^\/\//,cf={},ir={},lf="*/".concat("*"),rr=f.createElement("a");return rr.href=pt.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":lf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ur(ur(n,i.ajaxSettings),t):ur(i.ajaxSettings,n)},ajaxPrefilter:af(cf),ajaxTransport:af(ir),ajax:function(t,r){function b(t,r,f,c){var v,rt,b,p,g,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=c||"",e.readyState=t>0?4:0,v=t>=200&&t<300||304===t,f&&(p=lo(u,e,f)),p=ao(u,p,e,v),v?(u.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,v=!(b=p.error))):(b=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",v?tt.resolveWith(h,[rt,l,e]):tt.rejectWith(h,[e,l,b]),e.statusCode(w),w=void 0,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:b]),it.fireWith(h,[e,l]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,v,d,c,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=so.exec(k);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||pt.href)+"").replace(co,pt.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],null==u.crossDomain){c=f.createElement("a");try{c.href=u.url;c.href=c.href;u.crossDomain=rr.protocol+"//"+rr.host!=c.protocol+"//"+c.host}catch(n){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),vf(cf,u,r,e),s)return e;(y=i.event&&u.global)&&0==i.active++&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!ho.test(u.type);o=u.url.replace(eo,"");u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(fo,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||"string"==typeof u.data)&&(o+=(nr.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(o=o.replace(oo,"$1"),p=(nr.test(o)?"&":"?")+"_="+sf+++p),u.url=o+p);u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(u.data&&u.hasContent&&!1!==u.contentType||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType);e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+lf+"; q=0.01":""):u.accepts["*"]);for(g in u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(!1===u.beforeSend.call(h,e,u)||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),a=vf(ir,u,r,e)){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&u.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;a.send(rt,b)}catch(n){if(s)throw n;b(-1,n)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return u(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=u(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(n){}},yf={0:200,1223:204},ct=i.ajaxSettings.xhr(),e.cors=!!ct&&"withCredentials"in ct,e.ajax=ct=!!ct,i.ajaxTransport(function(t){var i,r;if(e.cors||ct&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(yf[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(n){if(i)throw n;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(u,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}}),fr=[],oi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=fr.pop()||i.expando+"_"+sf++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=!1!==t.jsonp&&(oi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&oi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(oi,"$1"+e):!1!==t.jsonp&&(t.url+=(nr.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){void 0===o?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,fr.push(e));s&&u(o)&&o(s[0]);s=o=void 0}),"script"}),e.createHTMLDocument=function(){var n=f.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",2===n.childNodes.length}(),i.parseHTML=function(n,t,r){if("string"!=typeof n)return[];"boolean"==typeof t&&(r=t,t=!1);var s,u,o;return t||(e.createHTMLDocument?((s=(t=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,t.head.appendChild(s)):t=f),u=ci.exec(n),o=!r&&[],u?[t.createElement(u[1])]:(u=eu([n],t,o),o&&o.length&&i(o).remove(),i.merge([],u.childNodes))},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return o>-1&&(f=g(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),e.length>0&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var v,o,s,h,f,c,y,l=i.css(n,"position"),a=i(n),e={};"static"===l&&(n.style.position="relative");f=a.offset();s=i.css(n,"top");c=i.css(n,"left");(y=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1)?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));null!=t.top&&(e.top=t.top-f.top+h);null!=t.left&&(e.left=t.left-f.left+o);"using"in t?t.using.call(n,e):a.css(e)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||ii})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return p(this,function(n,i,u){var f;if(tt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=au(e.pixelPosition,function(n,r){if(r)return r=yt(n,t),pi.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(!0===f||!0===e?"margin":"border");return p(this,function(t,r,f){var e;return tt(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}}),i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.proxy=function(n,t){var f,e,r;if("string"==typeof t&&(f=n[t],t=n,n=f),u(n))return e=d.call(arguments,2),r=function(){return n.apply(t||this,e.concat(d.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=v,i.isFunction=u,i.isWindow=tt,i.camelCase=y,i.type=it,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),pf=n.jQuery,wf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=wf),t&&n.jQuery===i&&(n.jQuery=pf),i},t||(n.jQuery=n.$=i),i}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var v,c;if(arguments.length>1&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(v=s.expires,c=s.expires=new Date,c.setMilliseconds(c.getMilliseconds()+v*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(var l=u?undefined:{},y=document.cookie?document.cookie.split("; "):[],a=0,b=y.length;a<b;a++){var p=y[a].split("="),w=f(p.shift()),h=p.join("=");if(u===w){l=r(h,o);break}u||(h=r(h))===undefined||(l[w]=h)}return l};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t)}}),function(n,t,i){"use strict";function y(n){return function(){for(var i=arguments[0],i="["+(n?n+":":"")+i+"] http://errors.angularjs.org/1.2.26/"+(n?n+"/":"")+i,t=1;t<arguments.length;t++)i=i+(1==t?"?":"&")+"p"+(t-1)+"="+encodeURIComponent("function"==typeof arguments[t]?arguments[t].toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof arguments[t]?"undefined":"string"!=typeof arguments[t]?JSON.stringify(arguments[t]):arguments[t]);return Error(i)}}function yi(n){if(null==n||ei(n))return!1;var t=n.length;return 1===n.nodeType&&t?!0:e(n)||o(n)||0===t||"number"==typeof t&&0<t&&t-1 in n}function r(n,t,i){var u;if(n)if(h(n))for(u in n)"prototype"==u||"length"==u||"name"==u||n.hasOwnProperty&&!n.hasOwnProperty(u)||t.call(i,n[u],u);else if(o(n)||yi(n))for(u=0;u<n.length;u++)t.call(i,n[u],u);else if(n.forEach&&n.forEach!==r)n.forEach(t,i);else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u);return n}function af(n){var t=[];for(var i in n)n.hasOwnProperty(i)&&t.push(i);return t.sort()}function ko(n,t,i){for(var r=af(n),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function vf(n){return function(t,i){n(i,t)}}function ar(){for(var n=vt.length,t;n;){if(n--,t=vt[n].charCodeAt(0),57==t)return vt[n]="A",vt.join("");if(90==t)vt[n]="0";else return vt[n]=String.fromCharCode(t+1),vt.join("")}return vt.unshift("0"),vt.join("")}function yf(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function c(n){var t=n.$$hashKey;return r(arguments,function(t){t!==n&&r(t,function(t,i){n[i]=t})}),yf(n,t),n}function b(n){return parseInt(n,10)}function pf(n,t){return c(new(c(function(){},{prototype:n})),t)}function s(){}function pi(n){return n}function nt(n){return function(){return n}}function l(n){return"undefined"==typeof n}function f(n){return"undefined"!=typeof n}function a(n){return null!=n&&"object"==typeof n}function e(n){return"string"==typeof n}function vr(n){return"number"==typeof n}function yt(n){return"[object Date]"===ui.call(n)}function h(n){return"function"==typeof n}function yr(n){return"[object RegExp]"===ui.call(n)}function ei(n){return n&&n.document&&n.location&&n.alert&&n.setInterval}function go(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}function ns(n,t,i){var u=[];return r(n,function(n,r,f){u.push(t.call(i,n,r,f))}),u}function wi(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0;i<n.length;i++)if(t===n[i])return i;return-1}function bi(n,t){var i=wi(n,t);return 0<=i&&n.splice(i,1),t}function oi(n,t,i,u){var e,f,s;if(ei(n)||n&&n.$evalAsync&&n.$watch)throw ir("cpws");if(t){if(n===t)throw ir("cpi");if(i=i||[],u=u||[],a(n)){if(e=wi(i,n),-1!==e)return u[e];i.push(n);u.push(t)}if(o(n))for(f=t.length=0;f<n.length;f++)e=oi(n[f],null,i,u),a(n[f])&&(i.push(n[f]),u.push(e)),t.push(e);else{s=t.$$hashKey;o(t)?t.length=0:r(t,function(n,i){delete t[i]});for(f in n)e=oi(n[f],null,i,u),a(n[f])&&(i.push(n[f]),u.push(e)),t[f]=e;yf(t,s)}}else(t=n)&&(o(n)?t=oi(n,[],i,u):yt(n)?t=new Date(n.getTime()):yr(n)?(t=RegExp(n.source,n.toString().match(/[^\/]*$/)[0]),t.lastIndex=n.lastIndex):a(n)&&(t=oi(n,{},i,u)));return t}function rt(n,t){if(o(n)){t=t||[];for(var i=0;i<n.length;i++)t[i]=n[i]}else if(a(n))for(i in t=t||{},n)ru.call(n,i)&&("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=n[i]);return t||n}function gt(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!==n&&t!==t)return!0;var u=typeof n,r;if(u==typeof t&&"object"==u)if(o(n)){if(!o(t))return!1;if((u=n.length)==t.length){for(r=0;r<u;r++)if(!gt(n[r],t[r]))return!1;return!0}}else{if(yt(n))return yt(t)?isNaN(n.getTime())&&isNaN(t.getTime())||n.getTime()===t.getTime():!1;if(yr(n)&&yr(t))return n.toString()==t.toString();if(n&&n.$evalAsync&&n.$watch||t&&t.$evalAsync&&t.$watch||ei(n)||ei(t)||o(t))return!1;u={};for(r in n)if("$"!==r.charAt(0)&&!h(n[r])){if(!gt(n[r],t[r]))return!1;u[r]=!0}for(r in t)if(!u.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t[r]!==i&&!h(t[r]))return!1;return!0}return!1}function hu(n,t){var i=2<arguments.length?ri.call(arguments,2):[];return!h(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,i.concat(ri.call(arguments,0))):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function ts(n,r){var u=r;return"string"==typeof n&&"$"===n.charAt(0)?u=i:ei(r)?u="$WINDOW":r&&t===r?u="$DOCUMENT":r&&r.$evalAsync&&r.$watch&&(u="$SCOPE"),u}function st(n,t){return"undefined"==typeof n?i:JSON.stringify(n,ts,t?"  ":null)}function wf(n){return e(n)?JSON.parse(n):n}function ki(n){return"function"==typeof n?n=!0:n&&0!==n.length?(n=v(""+n),n=!("f"==n||"0"==n||"false"==n||"no"==n||"n"==n||"[]"==n)):n=!1,n}function ut(n){n=u(n).clone();try{n.empty()}catch(i){}var t=u("<div>").append(n).html();try{return 3===n[0].nodeType?v(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(n,t){return"<"+v(t)})}catch(r){return v(t)}}function bf(n){try{return decodeURIComponent(n)}catch(t){}}function kf(n){var i={},u,t;return r((n||"").split("&"),function(n){n&&(u=n.replace(/\+/g,"%20").split("="),t=bf(u[0]),f(t)&&(n=f(u[1])?bf(u[1]):!0,ru.call(i,t)?o(i[t])?i[t].push(n):i[t]=[i[t],n]:i[t]=n))}),i}function cu(n){var t=[];return r(n,function(n,i){o(n)?r(n,function(n){t.push(ni(i,!0)+(!0===n?"":"="+ni(n,!0)))}):t.push(ni(i,!0)+(!0===n?"":"="+ni(n,!0)))}),t.length?t.join("&"):""}function pr(n){return ni(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ni(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function is(n,i){function f(n){n&&s.push(n)}var s=[n],u,e,o=["ng:app","ng-app","x-ng-app","data-ng-app"],h=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;r(o,function(i){o[i]=!0;f(t.getElementById(i));i=i.replace(":","\\:");n.querySelectorAll&&(r(n.querySelectorAll("."+i),f),r(n.querySelectorAll("."+i+"\\:"),f),r(n.querySelectorAll("["+i+"]"),f))});r(s,function(n){if(!u){var t=h.exec(" "+n.className+" ");t?(u=n,e=(t[2]||"").replace(/\s+/g,",")):r(n.attributes,function(t){!u&&o[t.name]&&(u=n,e=t.value)})}});u&&i(u,e?[e]:[])}function df(i,f){var e=function(){if(i=u(i),i.injector()){var n=i[0]===t?"document":ut(i);throw ir("btstrpd",n.replace(/</,"&lt;").replace(/>/,"&gt;"));}return f=f||[],f.unshift(["$provide",function(n){n.value("$rootElement",i)}]),f.unshift("ng"),n=fe(f),n.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),n},o=/^NG_DEFER_BOOTSTRAP!/;if(n&&!o.test(n.name))return e();n.name=n.name.replace(o,"");rr.resumeBootstrap=function(n){r(n,function(n){f.push(n)});e()}}function wr(n,t){return t=t||"_",n.replace(nc,function(n,i){return(i?t:"")+n.toLowerCase()})}function lu(n,t,i){if(!n)throw ir("areq",t||"?",i||"required");return n}function di(n,t,i){return i&&o(n)&&(n=n[n.length-1]),lu(h(n),t,"not a function, got "+(n&&"object"==typeof n?n.constructor.name||"Object":typeof n)),n}function ti(n,t){if("hasOwnProperty"===n)throw ir("badname",t);}function gf(n,t,i){if(!t)return n;t=t.split(".");for(var u,f=n,e=t.length,r=0;r<e;r++)u=t[r],n&&(n=(f=n)[u]);return!i&&h(n)?hu(f,n):n}function au(n){var t=n[0],i;if(n=n[n.length-1],t===n)return u(t);i=[t];do{if(t=t.nextSibling,!t)break;i.push(t)}while(t!==n);return u(i)}function rs(n){var t=y("$injector"),i=y("ng");return n=n.angular||(n.angular={}),n.$$minErr=n.$$minErr||y,n.module||(n.module=function(){var n={};return function(r,u,f){if("hasOwnProperty"===r)throw i("badname","module");return u&&n.hasOwnProperty(r)&&(n[r]=null),n[r]||(n[r]=function(){function n(n,t,r){return function(){return i[r||"push"]([n,t,arguments]),s}}if(!u)throw t("nomod",r);var i=[],e=[],o=n("$injector","invoke"),s={_invokeQueue:i,_runBlocks:e,requires:u,name:r,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:n("$provide","value"),constant:n("$provide","constant","unshift"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),config:o,run:function(n){return e.push(n),this}};return f&&o(f),s}())}}())}function us(t){c(t,{bootstrap:df,copy:oi,extend:c,equals:gt,element:u,forEach:r,injector:fe,noop:s,bind:hu,toJson:st,fromJson:wf,identity:pi,isUndefined:l,isDefined:f,isString:e,isFunction:h,isObject:a,isNumber:vr,isElement:go,isArray:o,version:tc,isDate:yt,lowercase:v,uppercase:ci,callbacks:{counter:0},$$minErr:y,$$csp:fr});ur=rs(n);try{ur("ngLocale")}catch(i){ur("ngLocale",[]).provider("$locale",nh)}ur("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:sh});n.provider("$compile",ee).directive({a:ao,input:po,textarea:po,form:rl,script:ba,select:ga,style:tv,option:nv,ngBind:pl,ngBindHtml:bl,ngBindTemplate:wl,ngClass:kl,ngClassEven:gl,ngClassOdd:dl,ngCloak:na,ngController:ta,ngForm:ul,ngHide:la,ngIf:ra,ngInclude:ua,ngInit:ea,ngNonBindable:oa,ngPluralize:sa,ngRepeat:ha,ngShow:ca,ngStyle:aa,ngSwitch:va,ngSwitchWhen:ya,ngSwitchDefault:pa,ngOptions:da,ngTransclude:wa,ngModel:cl,ngList:al,ngChange:ll,required:wo,ngRequired:wo,ngValue:yl}).directive({ngInclude:fa}).directive(fu).directive(bo);n.provider({$anchorScroll:es,$animate:yc,$browser:hs,$cacheFactory:cs,$controller:as,$document:vs,$exceptionHandler:ys,$filter:ke,$interpolate:ds,$interval:gs,$http:ps,$httpBackend:bs,$location:th,$log:ih,$parse:rh,$rootScope:oh,$q:uh,$sce:lh,$sceDelegate:ch,$sniffer:ah,$templateCache:ls,$timeout:vh,$window:yh,$$rAF:eh,$$asyncCallback:os})}])}function gi(n){return n.replace(rc,function(n,t,i,r){return r?i.toUpperCase():i}).replace(uc,"Moz$1")}function vu(n,t,i,r){function e(n){var h=i&&n?[this.filter(n)]:[this],c=t,l,o,a,e,s,v;if(!r||null!=n)for(;h.length;)for(l=h.shift(),o=0,a=l.length;o<a;o++)for(e=u(l[o]),c?e.triggerHandler("$destroy"):c=!c,s=0,e=(v=e.children()).length;s<e;s++)h.push(ii(v[s]));return f.apply(this,arguments)}var f=ii.fn[n],f=f.$original||f;e.$original=f;ii.fn[n]=e}function w(n){var r,o,i,f;if(n instanceof w)return n;if(e(n)&&(n=g(n)),!(this instanceof w)){if(e(n)&&"<"!=n.charAt(0))throw ef("nosel");return new w(n)}if(e(n)){if(r=n,n=t,o=fc.exec(r))n=[n.createElement(o[1])];else{if(i=n,n=i.createDocumentFragment(),o=[],of.test(r)){for(i=n.appendChild(i.createElement("div")),f=(ec.exec(r)||["",""])[1].toLowerCase(),f=tt[f]||tt._default,i.innerHTML="<div>&#160;<\/div>"+f[1]+r.replace(oc,"<$1><\/$2>")+f[2],i.removeChild(i.firstChild),r=f[0];r--;)i=i.lastChild;for(r=0,f=i.childNodes.length;r<f;++r)o.push(i.childNodes[r]);i=n.firstChild;i.textContent=""}else o.push(i.createTextNode(r));n.textContent="";n.innerHTML="";n=o}ku(this,n);u(t.createDocumentFragment()).append(this)}else ku(this,n)}function yu(n){return n.cloneNode(!0)}function si(n){pu(n);var t=0;for(n=n.childNodes||[];t<n.length;t++)si(n[t])}function ne(n,t,i,u){if(f(u))throw ef("offargs");var e=ht(n,"events");ht(n,"handle")&&(l(t)?r(e,function(t,i){or(n,i,t);delete e[i]}):r(t.split(" "),function(t){l(i)?(or(n,t,e[t]),delete e[t]):bi(e[t]||[],i)}))}function pu(n,t){var u=n.ng339,r=er[u];r&&(t?delete er[u].data[t]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),ne(n)),delete er[u],n.ng339=i))}function ht(n,t,i){var r=n.ng339,r=er[r||-1];if(f(i))r||(n.ng339=r=++ic,r=er[r]={}),r[t]=i;else return r&&r[t]}function wu(n,t,i){var r=ht(n,"data"),u=f(i),e=!u&&f(t),o=e&&!a(t);if(r||o||ht(n,"data",r={}),u)r[t]=i;else if(e){if(o)return r&&r[t];c(r,t)}else return r}function bu(n,t){return n.getAttribute?-1<(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" "):!1}function br(n,t){t&&n.setAttribute&&r(t.split(" "),function(t){n.setAttribute("class",g((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+g(t)+" "," ")))})}function kr(n,t){if(t&&n.setAttribute){var i=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(n){n=g(n);-1===i.indexOf(" "+n+" ")&&(i+=n+" ")});n.setAttribute("class",g(i))}}function ku(n,t){if(t){t=t.nodeName||!f(t.length)||ei(t)?[t]:t;for(var i=0;i<t.length;i++)n.push(t[i])}}function te(n,t){return dr(n,"$"+(t||"ngController")+"Controller")}function dr(n,t,r){for(9==n.nodeType&&(n=n.documentElement),t=o(t)?t:[t];n;){for(var f=0,e=t.length;f<e;f++)if((r=u.data(n,t[f]))!==i)return r;n=n.parentNode||11===n.nodeType&&n.host}}function ie(n){for(var t=0,i=n.childNodes;t<i.length;t++)si(i[t]);for(;n.firstChild;)n.removeChild(n.firstChild)}function re(n,t){var i=sr[t.toLowerCase()];return i&&sf[n.nodeName]&&i}function fs(n,i){var u=function(u,f){var e,o;u.preventDefault||(u.preventDefault=function(){u.returnValue=!1});u.stopPropagation||(u.stopPropagation=function(){u.cancelBubble=!0});u.target||(u.target=u.srcElement||t);l(u.defaultPrevented)&&(e=u.preventDefault,u.preventDefault=function(){u.defaultPrevented=!0;e.call(u)},u.defaultPrevented=!1);u.isDefaultPrevented=function(){return u.defaultPrevented||!1===u.returnValue};o=rt(i[f||u.type]||[]);r(o,function(t){t.call(n,u)});8>=p?(u.preventDefault=null,u.stopPropagation=null,u.isDefaultPrevented=null):(delete u.preventDefault,delete u.stopPropagation,delete u.isDefaultPrevented)};return u.elem=n,u}function hi(n,t){var u=typeof n,r;return"function"==u||"object"==u&&null!==n?"function"==typeof(r=n.$$hashKey)?r=n.$$hashKey():r===i&&(r=n.$$hashKey=(t||ar)()):r=n,u+":"+r}function nr(n,t){if(t){var i=0;this.nextUid=function(){return++i}}r(n,this.put,this)}function ue(n){var i,t;return"function"==typeof n?(i=n.$inject)||(i=[],n.length&&(t=n.toString().replace(ac,""),t=t.match(hc),r(t[1].split(cc),function(n){n.replace(lc,function(n,t,r){i.push(r)})})),n.$inject=i):o(n)?(t=n.length-1,di(n[t],"fn"),i=n.slice(0,t)):di(n,"fn",!0),i}function fe(n){function i(n){return function(t,i){if(a(t))r(t,vf(n));else return n(t,i)}}function w(n,i){if(ti(n,"service"),(h(i)||o(i))&&(i=t.instantiate(i)),!i.$get)throw hr("pget",n);return u[n+c]=i}function v(n,t){return w(n,{$get:t})}function b(n){var i=[],u,s,f,c;return r(n,function(n){if(!d.get(n)){d.put(n,!0);try{if(e(n))for(u=ur(n),i=i.concat(b(u.requires)).concat(u._runBlocks),s=u._invokeQueue,f=0,c=s.length;f<c;f++){var l=s[f],a=t.get(l[0]);a[l[1]].apply(a,l[2])}else h(n)?i.push(t.invoke(n)):o(n)?i.push(t.invoke(n)):di(n,"module")}catch(r){throw o(n)&&(n=n[n.length-1]),r.message&&r.stack&&-1==r.stack.indexOf(r.message)&&(r=r.message+"\n"+r.stack),hr("modulerr",n,r.stack||r.message||r);}}}),i}function k(n,t){function i(i){if(n.hasOwnProperty(i)){if(n[i]===y)throw hr("cdep",i+" <- "+l.join(" <- "));return n[i]}try{return l.unshift(i),n[i]=y,n[i]=t(i)}catch(r){throw n[i]===y&&delete n[i],r;}finally{l.shift()}}function r(n,t,r){for(var s=[],h=ue(n),u,f=0,e=h.length;f<e;f++){if(u=h[f],"string"!=typeof u)throw hr("itkn",u);s.push(r&&r.hasOwnProperty(u)?r[u]:i(u))}return o(n)&&(n=n[e]),n.apply(t,s)}return{invoke:r,instantiate:function(n,t){var i=function(){},u;return i.prototype=(o(n)?n[n.length-1]:n).prototype,i=new i,u=r(n,i,t),a(u)||h(u)?u:i},get:i,annotate:ue,has:function(t){return u.hasOwnProperty(t+c)||n.hasOwnProperty(t)}}}var y={},c="Provider",l=[],d=new nr([],!0),u={$provide:{provider:i(w),factory:i(v),service:i(function(n,t){return v(n,["$injector",function(n){return n.instantiate(t)}])}),value:i(function(n,t){return v(n,nt(t))}),constant:i(function(n,t){ti(n,"constant");u[n]=t;p[n]=t}),decorator:function(n,i){var r=t.get(n+c),u=r.$get;r.$get=function(){var n=f.invoke(u,r);return f.invoke(i,null,{$delegate:n})}}}},t=u.$injector=k(u,function(){throw hr("unpr",l.join(" <- "));}),p={},f=p.$injector=k(p,function(n){return n=t.get(n+c),f.invoke(n.$get,n)});return r(b(n),function(n){f.invoke(n||s)}),f}function es(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,u){function o(n){var t=null;return r(n,function(n){t||"a"!==v(n.nodeName)||(t=n)}),t}function f(){var n=i.hash(),r;n?(r=e.getElementById(n))?r.scrollIntoView():(r=o(e.getElementsByName(n)))?r.scrollIntoView():"top"===n&&t.scrollTo(0,0):t.scrollTo(0,0)}var e=t.document;return n&&u.$watch(function(){return i.hash()},function(){u.$evalAsync(f)}),f}]}function os(){this.$get=["$$rAF","$timeout",function(n,t){return n.supported?function(t){return n(t)}:function(n){return t(n,0,!1)}}]}function ss(n,t,f,o){function nt(n){try{n.apply(null,ri.call(arguments,1))}finally{if(a--,0===a)for(;b.length;)try{b.pop()()}catch(t){f.error(t)}}}function ht(n,t){(function i(){r(k,function(n){n()});ot=t(i,n)})()}function v(){it=null;d!=h.url()&&(d=h.url(),r(rt,function(n){n(h.url())}))}var h=this,y=t[0],c=n.location,p=n.history,et=n.setTimeout,ct=n.clearTimeout,w={},a,b,k,ot,rt,ut;h.isMock=!1;a=0;b=[];h.$$completeOutstandingRequest=nt;h.$$incOutstandingRequestCount=function(){a++};h.notifyWhenNoOutstandingRequests=function(n){r(k,function(n){n()});0===a?n():b.push(n)};k=[];h.addPollFn=function(n){return l(ot)&&ht(100,et),k.push(n),n};var d=c.href,tt=t.find("base"),it=null;h.url=function(t,i){if(c!==n.location&&(c=n.location),p!==n.history&&(p=n.history),t){if(d!=t)return d=t,o.history?i?p.replaceState(null,"",t):(p.pushState(null,"",t),tt.attr("href",tt.attr("href"))):(it=t,i?c.replace(t):c.href=t),h}else return it||c.href.replace(/%27/g,"'")};rt=[];ut=!1;h.onUrlChange=function(t){if(!ut){if(o.history)u(n).on("popstate",v);if(o.hashchange)u(n).on("hashchange",v);else h.addPollFn(v);ut=!0}return rt.push(t),t};h.$$checkUrlChange=v;h.baseHref=function(){var n=tt.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var g={},ft="",st=h.baseHref();h.cookies=function(n,t){var r,u,o,s;if(n)t===i?y.cookie=escape(n)+"=;path="+st+";expires=Thu, 01 Jan 1970 00:00:00 GMT":e(t)&&(r=(y.cookie=escape(n)+"="+escape(t)+";path="+st).length+1,4096<r&&f.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+r+" > 4096 bytes)!"));else{if(y.cookie!==ft)for(ft=y.cookie,r=ft.split("; "),g={},o=0;o<r.length;o++)u=r[o],s=u.indexOf("="),0<s&&(n=unescape(u.substring(0,s)),g[n]===i&&(g[n]=unescape(u.substring(s+1))));return g}};h.defer=function(n,t){var i;return a++,i=et(function(){delete w[i];nt(n)},t||0),w[i]=!0,i};h.defer.cancel=function(n){return w[n]?(delete w[n],ct(n),nt(s),!0):!1}}function hs(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new ss(n,r,t,i)}]}function cs(){this.$get=function(){function t(t,i){function a(n){n!=f&&(r?r==n&&(r=n.n):r=n,h(n.n,n.p),h(n,f),f=n,f.n=null)}function h(n,t){n!=t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw y("$cacheFactory")("iid",t);var o=0,v=c({},i,{id:t}),e={},s=i&&i.capacity||Number.MAX_VALUE,u={},f=null,r=null;return n[t]={put:function(n,t){if(s<Number.MAX_VALUE){var i=u[n]||(u[n]={key:n});a(i)}if(!l(t))return n in e||o++,e[n]=t,o>s&&this.remove(r.key),t},get:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;a(t)}return e[n]},remove:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;t==f&&(f=t.p);t==r&&(r=t.n);h(t.n,t.p);delete u[n]}delete e[n];o--},removeAll:function(){e={};o=0;u={};f=r=null},destroy:function(){u=v=e=null;delete n[t]},info:function(){return c({},v,{size:o})}}}var n={};return t.info=function(){var t={};return r(n,function(n,i){t[i]=n.info()}),t},t.get=function(t){return n[t]},t}}function ls(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function ee(n,s){var l={},v="Directive",y=/^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,w=/(([\d\w_\-]+)(?:\:([^;]+))?;?)/,b=/^(on[a-z]+|formaction)$/;this.directive=function k(t,i){return ti(t,"directive"),e(t)?(lu(i,"directiveFactory"),l.hasOwnProperty(t)||(l[t]=[],n.factory(t+v,["$injector","$exceptionHandler",function(n,i){var u=[];return r(l[t],function(r,f){try{var e=n.invoke(r);h(e)?e={compile:nt(e)}:!e.compile&&e.link&&(e.compile=nt(e.link));e.priority=e.priority||0;e.index=f;e.name=e.name||t;e.require=e.require||e.controller&&e.name;e.restrict=e.restrict||"A";u.push(e)}catch(o){i(o)}}),u}])),l[t].push(i)):r(t,vf(k)),this};this.aHrefSanitizationWhitelist=function(n){return f(n)?(s.aHrefSanitizationWhitelist(n),this):s.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return f(n)?(s.imgSrcSanitizationWhitelist(n),this):s.imgSrcSanitizationWhitelist()};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(n,f,s,k,d,nt,tt,it,ft,ot,st,ht){function wt(n,t,i,f,e){n instanceof u||(n=u(n));r(n,function(t,i){3==t.nodeType&&t.nodeValue.match(/\S+/)&&(n[i]=u(t).wrap("<span><\/span>").parent()[0])});var o=bt(n,t,n,i,f,e);return lt(n,"ng-scope"),function(t,i,u,f){var e,h,s;for(lu(t,"scope"),e=i?fi.clone.call(n):n,r(u,function(n,t){e.data("$"+t+"Controller",n)}),u=0,h=e.length;u<h;u++)s=e[u].nodeType,1!==s&&9!==s||e.eq(u).data("$scope",t);return i&&i(e,t),o&&o(t,e,e,f),e}}function lt(n,t){try{n.addClass(t)}catch(i){}}function bt(n,t,r,f,e,o){function y(n,r,f,e){var s,h,l,o,y,a,p,v;for(s=r.length,v=Array(s),o=0;o<s;o++)v[o]=r[o];for(a=o=0,y=c.length;o<y;a++)h=v[a],r=c[o++],s=c[o++],r?(r.scope?(l=n.$new(),u.data(h,"$scope",l)):l=n,p=r.transcludeOnThisElement?vt(n,r.transclude,e):!r.templateOnThisElement&&e?e:!e&&t?vt(n,t):null,r(s,l,h,f,p)):s&&s(n,h.childNodes,i,e)}for(var c=[],s,l,a,v,h=0;h<n.length;h++)s=new dt,l=kt(n[h],[],s,0===h?f:i,e),(o=l.length?ii(l,n[h],s,t,r,null,[],[],o):null)&&o.scope&&lt(s.$$element,"ng-scope"),s=o&&o.terminal||!(a=n[h].childNodes)||!a.length?null:bt(a,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),c.push(o,s),v=v||o||s,o=null;return v?y:null}function vt(n,t,i){return function(r,u,f){var e=!1;if(r||(r=n.$new(),e=r.$$transcluded=!0),u=t(r,u,f,i),e)u.on("$destroy",function(){r.$destroy()});return u}}function kt(n,t,i,r,u){var k=i.$attr,o,l,a,b;switch(n.nodeType){case 1:yt(t,ct(li(n).toLowerCase()),"E",r,u);for(var f,s,v,h=n.attributes,c=0,d=h&&h.length;c<d;c++)l=!1,a=!1,f=h[c],(!p||8<=p||f.specified)&&(o=f.name,s=g(f.value),f=ct(o),(v=ki.test(f))&&(o=wr(f.substr(6),"-")),b=f.replace(/(Start|End)$/,""),f===b+"Start"&&(l=o,a=o.substr(0,o.length-5)+"end",o=o.substr(0,o.length-6)),f=ct(o.toLowerCase()),k[f]=o,(v||!i.hasOwnProperty(f))&&(i[f]=s,re(n,f)&&(i[f]=!0)),bi(n,t,s,f),yt(t,f,"A",r,u,l,a));if(n=n.className,e(n)&&""!==n)for(;o=w.exec(n);)f=ct(o[2]),yt(t,f,"C",r,u)&&(i[f]=g(o[3])),n=n.substr(o.index+o[0].length);break;case 3:yi(t,n.nodeValue);break;case 8:try{(o=y.exec(n.nodeValue))&&(f=ct(o[1]),yt(t,f,"M",r,u)&&(i[f]=g(o[2])))}catch(nt){}}return t.sort(vi),t}function ni(n,t,i){var r=[],f=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw et("uterdir",t,i);1==n.nodeType&&(n.hasAttribute(t)&&f++,n.hasAttribute(i)&&f--);r.push(n);n=n.nextSibling}while(0<f)}else r.push(n);return u(r)}function ti(n,t,i){return function(r,u,f,e,o){return u=ni(u[0],t,i),n(r,u,f,e,o)}}function ii(n,c,l,v,y,p,w,b,k){function di(n,t,i,r){n&&(i&&(n=ti(n,i,r)),n.require=d.require,n.directiveName=st,(ft===d||d.$$isolateScope)&&(n=oi(n,{isolateScope:!0})),w.push(n));t&&(i&&(t=ti(t,i,r)),t.require=d.require,t.directiveName=st,(ft===d||d.$$isolateScope)&&(t=oi(t,{isolateScope:!0})),b.push(t))}function wi(n,t,i,u){var f,s="data",h=!1;if(e(t)){for(;"^"==(f=t.charAt(0))||"?"==f;)t=t.substr(1),"^"==f&&(s="inheritedData"),h=h||"?"==f;if(f=null,u&&"data"===s&&(f=u[t]),f=f||i[s]("$"+t+"Controller"),!f&&!h)throw et("ctreq",t,n);}else o(t)&&(f=[],r(t,function(t){f.push(wi(n,t,i,u))}));return f}function ct(n,t,e,o,h){function st(n,t){var r;return 2>arguments.length&&(t=n,n=i),yi&&(r=d),h(n,t,r)}var v,y,it,p,k,a,d={},g,ot;for(v=c===e?l:rt(l,new dt(u(e),l.$attr)),y=v.$$element,ft&&(ot=/^\s*([@=&])(\??)\s*(\w*)\s*$/,a=t.$new(!0),!ht||ht!==ft&&ht!==ft.$$originalDirective?y.data("$isolateScopeNoTemplate",a):y.data("$isolateScope",a),lt(y,"ng-isolate-scope"),r(ft.scope,function(n,i){var e=n.match(ot)||[],r=e[3]||i,c="?"==e[2],e=e[1],o,u,h,s;a.$$isolateBindings[i]=e+r;switch(e){case"@":v.$observe(r,function(n){a[i]=n});v.$$observers[r].$$scope=t;v[r]&&(a[i]=f(v[r])(t));break;case"=":if(c&&!v[r])break;u=nt(v[r]);s=u.literal?gt:function(n,t){return n===t||n!==n&&t!==t};h=u.assign||function(){o=a[i]=u(t);throw et("nonassign",v[r],ft.name);};o=a[i]=u(t);a.$watch(function(){var n=u(t);return s(n,a[i])||(s(n,o)?h(t,n=a[i]):a[i]=n),o=n},null,u.literal);break;case"&":u=nt(v[r]);a[i]=function(n){return u(t,n)};break;default:throw et("iscp",ft.name,i,n);}})),g=h&&st,vt&&r(vt,function(n){var r={$scope:n===ft||n.$$isolateScope?a:t,$element:y,$attrs:v,$transclude:g},i;k=n.controller;"@"==k&&(k=v[n.name]);i=tt(k,r);d[n.name]=i;yi||y.data("$"+n.name+"Controller",i);n.controllerAs&&(r.$scope[n.controllerAs]=i)}),o=0,it=w.length;o<it;o++)try{p=w[o];p(p.isolateScope?a:t,y,v,p.require&&wi(p.directiveName,p.require,y,d),g)}catch(ct){s(ct,ut(y))}for(o=t,ft&&(ft.template||null===ft.templateUrl)&&(o=a),n&&n(o,e.childNodes,i,h),o=b.length-1;0<=o;o--)try{p=b[o];p(p.isolateScope?a:t,y,v,p.require&&wi(p.directiveName,p.require,y,d),g)}catch(at){s(at,ut(y))}}var hi,pi,gi;k=k||{};for(var fi=-Number.MAX_VALUE,li,vt=k.controllerDirectives,ft=k.newIsolateScopeDirective,ht=k.templateDirective,vi=k.nonTlbTranscludeDirective,bi=!1,ki=!1,yi=k.hasElementTranscludeDirective,ot=l.$$element=u(c),d,st,it,si=v,bt,yt=0,ii=n.length;yt<ii;yt++){if(d=n[yt],hi=d.$$start,pi=d.$$end,hi&&(ot=ni(c,hi,pi)),it=i,fi>d.priority)break;if((it=d.scope)&&(li=li||d,d.templateUrl||(at("new/isolated scope",ft,d,ot),a(it)&&(ft=d))),st=d.name,!d.templateUrl&&d.controller&&(it=d.controller,vt=vt||{},at("'"+st+"' controller",vt[st],d,ot),vt[st]=d),(it=d.transclude)&&(bi=!0,d.$$tlb||(at("transclusion",vi,d,ot),vi=d),"element"==it?(yi=!0,fi=d.priority,it=ot,ot=l.$$element=u(t.createComment(" "+st+": "+l[st]+" ")),c=ot[0],pt(y,ri.call(it,0),c),si=wt(it,v,fi,p&&p.name,{nonTlbTranscludeDirective:vi})):(it=u(yu(c)).contents(),ot.empty(),si=wt(it,v))),d.template)if(ki=!0,at("template",ht,d,ot),ht=d,it=h(d.template)?d.template(ot,l):d.template,it=ci(it),d.replace){if(p=d,it=of.test(it)?u(g(it)):[],c=it[0],1!=it.length||1!==c.nodeType)throw et("tplrt",st,"");pt(y,ot,c);ii={$attr:{}};it=kt(c,[],ii);gi=n.splice(yt+1,n.length-(yt+1));ft&&ui(it);n=n.concat(it).concat(gi);ei(l,ii);ii=n.length}else ot.html(it);if(d.templateUrl)ki=!0,at("template",ht,d,ot),ht=d,d.replace&&(p=d),ct=ai(n.splice(yt,n.length-yt),ot,l,y,bi&&si,w,b,{controllerDirectives:vt,newIsolateScopeDirective:ft,templateDirective:ht,nonTlbTranscludeDirective:vi}),ii=n.length;else if(d.compile)try{bt=d.compile(ot,l,si);h(bt)?di(null,bt,hi,pi):bt&&di(bt.pre,bt.post,hi,pi)}catch(nr){s(nr,ut(ot))}d.terminal&&(ct.terminal=!0,fi=Math.max(fi,d.priority))}return ct.scope=li&&!0===li.scope,ct.transcludeOnThisElement=bi,ct.templateOnThisElement=ki,ct.transclude=si,k.hasElementTranscludeDirective=yi,ct}function ui(n){for(var t=0,i=n.length;t<i;t++)n[t]=pf(n[t],{$$isolateScope:!0})}function yt(t,r,u,f,e,o,h){var c,a,y;if(r===e)return null;if(e=null,l.hasOwnProperty(r))for(r=n.get(r+v),a=0,y=r.length;a<y;a++)try{c=r[a];(f===i||f>c.priority)&&-1!=c.restrict.indexOf(u)&&(o&&(c=pf(c,{$$start:o,$$end:h})),t.push(c),e=c)}catch(p){s(p)}return e}function ei(n,t){var u=t.$attr,f=n.$attr,i=n.$$element;r(n,function(i,r){"$"!=r.charAt(0)&&(t[r]&&t[r]!==i&&(i+=("style"===r?";":" ")+t[r]),n.$set(r,i,!0,u[r]))});r(t,function(t,r){"class"==r?(lt(i,t),n["class"]=(n["class"]?n["class"]+" ":"")+t):"style"==r?(i.attr("style",i.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):"$"==r.charAt(0)||n.hasOwnProperty(r)||(n[r]=t,f[r]=u[r])})}function ai(n,t,i,f,e,o,s,l){var v=[],p,w,b=t[0],y=n.shift(),tt=c({},y,{templateUrl:null,transclude:null,replace:null,$$originalDirective:y}),nt=h(y.templateUrl)?y.templateUrl(t,i):y.templateUrl;return t.empty(),k.get(ot.getTrustedResourceUrl(nt),{cache:d}).success(function(h){var c,d,k,rt;if(h=ci(h),y.replace){if(h=of.test(h)?u(g(h)):[],c=h[0],1!=h.length||1!==c.nodeType)throw et("tplrt",y.name,nt);h={$attr:{}};pt(f,t,c);k=kt(c,[],h);a(y.scope)&&ui(k);n=k.concat(n);ei(i,h)}else c=b,t.html(h);for(n.unshift(tt),p=ii(n,c,i,e,t,y,o,s,l),r(f,function(n,i){n==c&&(f[i]=t[0])}),w=bt(t[0].childNodes,e);v.length;){h=v.shift();d=v.shift();var ut=v.shift(),it=v.shift(),k=t[0];d!==b&&(rt=d.className,l.hasElementTranscludeDirective&&y.replace||(k=yu(c)),pt(ut,u(d),k),lt(u(k),rt));d=p.transcludeOnThisElement?vt(h,p.transclude,it):it;p(w,h,k,f,d)}v=null}).error(function(n,t,i,r){throw et("tpload",r.url);}),function(n,t,i,r,u){n=u;v?(v.push(t),v.push(i),v.push(r),v.push(n)):(p.transcludeOnThisElement&&(n=vt(t,p.transclude,u)),p(w,t,i,r,n))}}function vi(n,t){var i=t.priority-n.priority;return 0!==i?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function at(n,t,i,r){if(t)throw et("multidir",t.name,i.name,n,ut(r));}function yi(n,t){var i=f(t,!0);i&&n.push({priority:0,compile:function(n){var t=n.parent().length;return t&&lt(n.parent(),"ng-binding"),function(n,r){var u=r.parent(),f=u.data("$binding")||[];f.push(i);u.data("$binding",f);t||lt(u,"ng-binding");n.$watch(i,function(n){r[0].nodeValue=n})}}})}function wi(n,t){if("srcdoc"==t)return ot.HTML;var i=li(n);if("xlinkHref"==t||"FORM"==i&&"action"==t||"IMG"!=i&&("src"==t||"ngSrc"==t))return ot.RESOURCE_URL}function bi(n,t,i,r){var u=f(i,!0);if(u){if("multiple"===r&&"SELECT"===li(n))throw et("selmulti",ut(n));t.push({priority:100,compile:function(){return{pre:function(t,i,e){if(i=e.$$observers||(e.$$observers={}),b.test(r))throw et("nodomevents");(u=f(e[r],!0,wi(n,r)))&&(e[r]=u(t),(i[r]||(i[r]=[])).$$inter=!0,(e.$$observers&&e.$$observers[r].$$scope||t).$watch(u,function(n,t){"class"===r&&n!=t?e.$updateClass(n,t):e.$set(r,n)}))}}}})}}function pt(n,i,r){var f=i[0],h=i.length,s=f.parentNode,e,o,c;if(n)for(e=0,o=n.length;e<o;e++)if(n[e]==f){for(n[e++]=r,o=e+h-1,c=n.length;e<c;e++,o++)o<c?n[e]=n[o]:delete n[e];n.length-=h-1;break}for(s&&s.replaceChild(r,f),n=t.createDocumentFragment(),n.appendChild(f),r[u.expando]=f[u.expando],f=1,h=i.length;f<h;f++)s=i[f],u(s).remove(),n.appendChild(s),delete i[f];i[0]=r;i.length=1}function oi(n,t){return c(function(){return n.apply(null,arguments)},n,t)}var dt=function(n,t){this.$$element=n;this.$attr=t||{}};dt.prototype={$normalize:ct,$addClass:function(n){n&&0<n.length&&st.addClass(this.$$element,n)},$removeClass:function(n){n&&0<n.length&&st.removeClass(this.$$element,n)},$updateClass:function(n,t){var i=oe(n,t),r=oe(t,n);0===i.length?st.removeClass(this.$$element,r):0===r.length?st.addClass(this.$$element,i):st.setClass(this.$$element,i,r)},$set:function(n,t,u,f){var e=re(this.$$element[0],n);e&&(this.$$element.prop(n,t),f=e);this[n]=t;f?this.$attr[n]=f:(f=this.$attr[n])||(this.$attr[n]=f=wr(n,"-"));e=li(this.$$element);("A"===e&&"href"===n||"IMG"===e&&"src"===n)&&(this[n]=t=ht(t,"src"===n));!1!==u&&(null===t||t===i?this.$$element.removeAttr(f):this.$$element.attr(f,t));(u=this.$$observers)&&r(u[n],function(n){try{n(t)}catch(i){s(i)}})},$observe:function(n,t){var i=this,r=i.$$observers||(i.$$observers={}),u=r[n]||(r[n]=[]);return u.push(t),it.$evalAsync(function(){u.$$inter||t(i[n])}),t}};var si=f.startSymbol(),hi=f.endSymbol(),ci="{{"==si||"}}"==hi?pi:function(n){return n.replace(/\{\{/g,si).replace(/}}/g,hi)},ki=/^ngAttr[A-Z]/;return wt}]}function ct(n){return gi(n.replace(pc,""))}function oe(n,t){var r="",e=n.split(/\s+/),o=t.split(/\s+/),u=0,f,i;n:for(;u<e.length;u++){for(f=e[u],i=0;i<o.length;i++)if(f==o[i])continue n;r+=(0<r.length?" ":"")+f}return r}function as(){var n={},t=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,i){ti(t,"controller");a(t)?c(n,t):n[t]=i};this.$get=["$injector","$window",function(i,r){return function(u,f){var s,o,h;if(e(u)&&(s=u.match(t),o=s[1],h=s[3],u=n.hasOwnProperty(o)?n[o]:gf(f.$scope,o,!0)||gf(r,o,!0),di(u,o,!0)),s=i.instantiate(u,f),h){if(!f||"object"!=typeof f.$scope)throw y("$controller")("noscp",o||u.name,h);f.$scope[h]=s}return s}}]}function vs(){this.$get=["$window",function(n){return u(n.document)}]}function ys(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function se(n){var t={},i,u,f;return n?(r(n.split("\n"),function(n){f=n.indexOf(":");i=v(g(n.substr(0,f)));u=g(n.substr(f+1));i&&(t[i]=t[i]?t[i]+", "+u:u)}),t):t}function he(n){var t=a(n)?n:i;return function(i){return t||(t=se(n)),i?t[v(i)]||null:t}}function ce(n,t,i){return h(i)?i(n,t):(r(i,function(i){n=i(n,t)}),n)}function ps(){var u=/^\s*(\[|\{[^\{])/,s=/[\}\]]\s*$/,y=/^\)\]\}',?\n/,t={"Content-Type":"application/json;charset=utf-8"},n=this.defaults={transformResponse:[function(n){return e(n)&&(n=n.replace(y,""),u.test(n)&&s.test(n)&&(n=wf(n))),n}],transformRequest:[function(n){return a(n)&&"[object File]"!==ui.call(n)&&"[object Blob]"!==ui.call(n)?st(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:rt(t),put:rt(t),patch:rt(t)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},p=this.interceptors=[],w=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(t,u,s,y,b,k){function d(t){function s(n){var t=c({},n,{data:ce(n.data,n.headers,f.transformResponse)});return 200<=n.status&&300>n.status?t:b.reject(t)}var f={method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse},e=function(t){var i=n.headers,u=c({},t.headers),f,e,i=c({},i.common,i[v(t.method)]);n:for(f in i){t=v(f);for(e in u)if(v(e)===t)continue n;u[f]=i[f]}return function(n){var t;r(n,function(i,r){h(i)&&(t=i(),null!=t?n[r]=t:delete n[r])})}(u),u}(t),o,a,u;for(c(f,t),f.headers=e,f.method=ci(f.method),o=[function(t){e=t.headers;var i=ce(t.data,he(e),t.transformRequest);return l(i)&&r(e,function(n,t){"content-type"===v(t)&&delete e[t]}),l(t.withCredentials)&&!l(n.withCredentials)&&(t.withCredentials=n.withCredentials),nt(t,i,e).then(s,s)},i],u=b.when(f),r(g,function(n){(n.request||n.requestError)&&o.unshift(n.request,n.requestError);(n.response||n.responseError)&&o.push(n.response,n.responseError)});o.length;)t=o.shift(),a=o.shift(),u=u.then(t,a);return u.success=function(n){return u.then(function(t){n(t.data,t.status,t.headers,f)}),u},u.error=function(n){return u.then(null,function(t){n(t.data,t.status,t.headers,f)}),u},u}function nt(r,e,s){function ut(n,t,i,r){v&&(200<=n&&300>n?v.put(p,[n,t,se(i),r]):v.remove(p));k(t,n,i,r);y.$$phase||y.$apply()}function k(n,t,i,u){t=Math.max(t,0);(200<=t&&300>t?g.resolve:g.reject)({data:n,status:t,headers:he(i),config:r,statusText:u})}function w(){var n=wi(d.pendingRequests,r);-1!==n&&d.pendingRequests.splice(n,1)}var g=b.defer(),nt=g.promise,v,c,p=tt(r.url,r.params);if(d.pendingRequests.push(r),nt.then(w,w),(r.cache||n.cache)&&!1!==r.cache&&("GET"===r.method||"JSONP"===r.method)&&(v=a(r.cache)?r.cache:a(n.cache)?n.cache:it),v)if(c=v.get(p),f(c)){if(c&&h(c.then))return c.then(w,w),c;o(c)?k(c[1],c[0],rt(c[2]),c[3]):k(c,200,{},"OK")}else v.put(p,nt);return l(c)&&((c=rf(r.url)?u.cookies()[r.xsrfCookieName||n.xsrfCookieName]:i)&&(s[r.xsrfHeaderName||n.xsrfHeaderName]=c),t(r.method,p,e,ut,s,r.timeout,r.withCredentials,r.responseType)),nt}function tt(n,t){if(!t)return n;var i=[];return ko(t,function(n,t){null===n||l(n)||(o(n)||(n=[n]),r(n,function(n){a(n)&&(n=yt(n)?n.toISOString():st(n));i.push(ni(t)+"="+ni(n))}))}),0<i.length&&(n+=(-1==n.indexOf("?")?"?":"&")+i.join("&")),n}var it=s("$http"),g=[];return r(p,function(n){g.unshift(e(n)?k.get(n):k.invoke(n))}),r(w,function(n,t){var i=e(n)?k.get(n):k.invoke(n);g.splice(t,0,{response:function(n){return i(b.when(n))},responseError:function(n){return i(b.reject(n))}})}),d.pendingRequests=[],function(){r(arguments,function(n){d[n]=function(t,i){return d(c(i||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){r(arguments,function(n){d[n]=function(t,i,r){return d(c(r||{},{method:n,url:t,data:i}))}})}("post","put"),d.defaults=n,d}]}function ws(t){if(8>=p&&(!t.match(/^(get|post|head|put|delete|options)$/i)||!n.XMLHttpRequest))return new n.ActiveXObject("Microsoft.XMLHTTP");if(n.XMLHttpRequest)return new n.XMLHttpRequest;throw y("$httpBackend")("noxhr");}function bs(){this.$get=["$browser","$window","$document",function(n,t,i){return ks(n,ws,n.defer,t.angular.callbacks,i[0])}]}function ks(n,t,i,u,o){function l(n,t,i){var r=o.createElement("script"),f=null;return r.type="text/javascript",r.src=n,r.async=!0,f=function(n){or(r,"load",f);or(r,"error",f);o.body.removeChild(r);r=null;var e=-1,s="unknown";n&&("load"!==n.type||u[t].called||(n={type:"error"}),s=n.type,e="error"===n.type?404:200);i&&i(e,s)},uu(r,"load",f),uu(r,"error",f),8>=p&&(r.onreadystatechange=function(){e(r.readyState)&&/loaded|complete/.test(r.readyState)&&(r.onreadystatechange=null,f({type:"load"}))}),o.body.appendChild(r),f}var c=-1;return function(e,o,a,y,w,b,k,d){function ut(){tt=c;it&&it();g&&g.abort()}function ft(t,r,u,f,e){rt&&i.cancel(rt);it=g=null;0===r&&(r=u?200:"file"==wt(o).protocol?404:0);t(1223===r?204:r,u,f,e||"");n.$$completeOutstandingRequest(s)}var tt,nt,it,g,rt;if(n.$$incOutstandingRequestCount(),o=o||n.url(),"jsonp"==v(e))nt="_"+(u.counter++).toString(36),u[nt]=function(n){u[nt].data=n;u[nt].called=!0},it=l(o.replace("JSON_CALLBACK","angular.callbacks."+nt),nt,function(n,t){ft(y,n,u[nt].data,"",t);u[nt]=s});else{if(g=t(e),g.open(e,o,!0),r(w,function(n,t){f(n)&&g.setRequestHeader(t,n)}),g.onreadystatechange=function(){if(g&&4==g.readyState){var n=null,t=null,i="";tt!==c&&(n=g.getAllResponseHeaders(),t="response"in g?g.response:g.responseText);tt===c&&10>p||(i=g.statusText);ft(y,tt||g.status,t,n,i)}},k&&(g.withCredentials=!0),d)try{g.responseType=d}catch(et){if("json"!==d)throw et;}g.send(a||null)}0<b?rt=i(ut,b):b&&h(b.then)&&b.then(ut)}}function ds(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,r,u){function f(f,s,h){for(var v,p,c=0,l=[],a=f.length,y=!1,w=[];c<a;)-1!=(v=f.indexOf(n,c))&&-1!=(p=f.indexOf(t,v+e))?(c!=v&&l.push(f.substring(c,v)),l.push(c=i(y=f.substring(v+e,p))),c.exp=y,c=p+o,y=!0):(c!=a&&l.push(f.substring(c)),c=a);if((a=l.length)||(l.push(""),a=1),h&&1<l.length)throw fo("noconcat",f);if(!s||y)return w.length=a,c=function(n){try{for(var i=0,e=a,t;i<e;i++){if("function"==typeof(t=l[i]))if(t=t(n),t=h?u.getTrusted(h,t):u.valueOf(t),null==t)t="";else switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=st(t)}w[i]=t}return w.join("")}catch(o){n=fo("interr",f,o.toString());r(n)}},c.exp=f,c.parts=l,c}var e=n.length,o=t.length;return f.startSymbol=function(){return n},f.endSymbol=function(){return t},f}]}function gs(){this.$get=["$rootScope","$window","$q",function(n,t,i){function u(u,e,o,s){var a=t.setInterval,v=t.clearInterval,c=i.defer(),h=c.promise,l=0,y=f(s)&&!s;return o=f(o)?o:0,h.then(null,null,u),h.$$intervalId=a(function(){c.notify(l++);0<o&&l>=o&&(c.resolve(l),v(h.$$intervalId),delete r[h.$$intervalId]);y||n.$apply()},e),r[h.$$intervalId]=c,h}var r={};return u.cancel=function(n){return n&&n.$$intervalId in r?(r[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete r[n.$$intervalId],!0):!1},u}]}function nh(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January February March April May June July August September October November December".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a",short:"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(n){return 1===n?"one":"other"}}}}function du(n){n=n.split("/");for(var t=n.length;t--;)n[t]=pr(n[t]);return n.join("/")}function le(n,t,i){n=wt(n,i);t.$$protocol=n.protocol;t.$$host=n.hostname;t.$$port=b(n.port)||bc[n.protocol]||null}function ae(n,t,i){var r="/"!==n.charAt(0);r&&(n="/"+n);n=wt(n,i);t.$$path=decodeURIComponent(r&&"/"===n.pathname.charAt(0)?n.pathname.substring(1):n.pathname);t.$$search=kf(n.search);t.$$hash=decodeURIComponent(n.hash);t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function lt(n,t){if(0===t.indexOf(n))return t.substr(n.length)}function tr(n){var t=n.indexOf("#");return-1==t?n:n.substr(0,t)}function gu(n){return n.substr(0,tr(n).lastIndexOf("/")+1)}function ve(n,t){this.$$html5=!0;t=t||"";var r=gu(n);le(n,this,n);this.$$parse=function(t){var i=lt(r,t);if(!e(i))throw hf("ipthprfx",t,r);ae(i,this,n);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=cu(this.$$search),t=this.$$hash?"#"+pr(this.$$hash):"";this.$$url=du(this.$$path)+(n?"?"+n:"")+t;this.$$absUrl=r+this.$$url.substr(1)};this.$$rewrite=function(u){var f;return(f=lt(n,u))!==i?(u=f,(f=lt(t,f))!==i?r+(lt("/",f)||f):n+u):(f=lt(r,u))!==i?r+f:r==u+"/"?r:void 0}}function nf(n,t){var i=gu(n);le(n,this,n);this.$$parse=function(r){var u=lt(n,r)||lt(i,r),u="#"==u.charAt(0)?lt(t,u):this.$$html5?u:"",f;if(!e(u))throw hf("ihshprfx",r,t);ae(u,this,n);r=this.$$path;f=/^\/[A-Z]:(\/.*)/;0===u.indexOf(n)&&(u=u.replace(n,""));f.exec(u)||(r=(u=f.exec(r))?u[1]:r);this.$$path=r;this.$$compose()};this.$$compose=function(){var i=cu(this.$$search),r=this.$$hash?"#"+pr(this.$$hash):"";this.$$url=du(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+(this.$$url?t+this.$$url:"")};this.$$rewrite=function(t){if(tr(n)==tr(t))return t}}function tf(n,t){this.$$html5=!0;nf.apply(this,arguments);var i=gu(n);this.$$rewrite=function(r){var u;return n==tr(r)?r:(u=lt(i,r))?n+t+u:i===r+"/"?i:void 0};this.$$compose=function(){var i=cu(this.$$search),r=this.$$hash?"#"+pr(this.$$hash):"";this.$$url=du(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+t+this.$$url}}function gr(n){return function(){return this[n]}}function ye(n,t){return function(i){return l(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function th(){var t="",i=!1;this.hashPrefix=function(n){return f(n)?(t=n,this):t};this.html5Mode=function(n){return f(n)?(i=n,this):i};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,f,e,o){function p(n){r.$broadcast("$locationChangeSuccess",s.absUrl(),n)}var s,l,b=f.baseHref(),h=f.url(),c,w,y;i?(c=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(b||"/"),l=e.history?ve:tf):(c=tr(h),l=nf);s=new l(c,"#"+t);s.$$parse(s.$$rewrite(h));w=/^\s*(javascript|mailto):/i;o.on("click",function(i){var p,e,y,h,b;if(!i.ctrlKey&&!i.metaKey&&2!=i.which){for(p=u(i.target);"a"!==v(p[0].nodeName);)if(p[0]===o[0]||!(p=p.parent())[0])return;if(e=p.prop("href"),a(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=wt(e.animVal).href),!w.test(e)){if(l===tf&&(h=p.attr("href")||p.attr("xlink:href"),h&&0>h.indexOf("://")))if(e="#"+t,"/"==h[0])e=c+e+h;else if("#"==h[0])e=c+e+(s.path()||"/")+h;else{for(y=s.path().split("/"),h=h.split("/"),2!==y.length||y[1]||(y.length=1),b=0;b<h.length;b++)"."!=h[b]&&(".."==h[b]?y.pop():h[b].length&&y.push(h[b]));e=c+e+y.join("/")}y=s.$$rewrite(e);e&&!p.attr("target")&&y&&!i.isDefaultPrevented()&&(i.preventDefault(),y!=f.url()&&(s.$$parse(y),r.$apply(),n.angular["ff-684208-preventDefault"]=!0))}}});s.absUrl()!=h&&f.url(s.absUrl(),!0);f.onUrlChange(function(n){s.absUrl()!=n&&(r.$evalAsync(function(){var t=s.absUrl();s.$$parse(n);r.$broadcast("$locationChangeStart",n,t).defaultPrevented?(s.$$parse(t),f.url(t)):p(t)}),r.$$phase||r.$digest())});return y=0,r.$watch(function(){var n=f.url(),t=s.$$replace;return y&&n==s.absUrl()||(y++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",s.absUrl(),n).defaultPrevented?s.$$parse(n):(f.url(s.absUrl(),t),p(n))})),s.$$replace=!1,y}),s}]}function ih(){var n=!0,t=this;this.debugEnabled=function(t){return f(t)?(n=t,this):n};this.$get=["$window",function(i){function f(n){return n instanceof Error&&(n.stack?n=n.message&&-1===n.stack.indexOf(n.message)?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var t=i.console||{},u=t[n]||t.log||s;n=!1;try{n=!!u.apply}catch(e){}return n?function(){var n=[];return r(arguments,function(t){n.push(f(t))}),u.apply(t,n)}:function(n,t){u(n,null==t?"":t)}}return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var i=u("debug");return function(){n&&i.apply(t,arguments)}}()}}]}function ft(n,t){if("__defineGetter__"===n||"__defineSetter__"===n||"__lookupGetter__"===n||"__lookupSetter__"===n||"__proto__"===n)throw ot("isecfld",t);return n}function pt(n,t){if(n){if(n.constructor===n)throw ot("isecfn",t);if(n.document&&n.location&&n.alert&&n.setInterval)throw ot("isecwindow",t);if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw ot("isecdom",t);if(n===Object)throw ot("isecobj",t);}return n}function nu(n,t,r,u,f){var e,s,o;for(pt(n,u),f=f||{},t=t.split("."),s=0;1<t.length;s++)e=ft(t.shift(),u),o=pt(n[e],u),o||(o={},n[e]=o),n=o,n.then&&f.unwrapPromises&&(kt(u),"$$v"in n||function(n){n.then(function(t){n.$$v=t})}(n),n.$$v===i&&(n.$$v={}),n=n.$$v);return e=ft(t.shift(),u),pt(n[e],u),n[e]=r}function pe(n,t,r,u,f,e,o){return ft(n,e),ft(t,e),ft(r,e),ft(u,e),ft(f,e),o.unwrapPromises?function(o,s){var h=s&&s.hasOwnProperty(n)?s:o,c;return null==h?h:((h=h[n])&&h.then&&(kt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!t)?h:null==h?i:((h=h[t])&&h.then&&(kt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!r)?h:null==h?i:((h=h[r])&&h.then&&(kt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!u)?h:null==h?i:((h=h[u])&&h.then&&(kt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!f)?h:null==h?i:((h=h[f])&&h.then&&(kt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),h)}:function(e,o){var s=o&&o.hasOwnProperty(n)?o:e;return null==s?s:(s=s[n],!t)?s:null==s?i:(s=s[t],!r)?s:null==s?i:(s=s[r],!u)?s:null==s?i:(s=s[u],f?null==s?i:s=s[f]:s)}}function we(n,t,u){var f,h,o,e,s;return lf.hasOwnProperty(n)?lf[n]:(f=n.split("."),h=f.length,t.csp?o=6>h?pe(f[0],f[1],f[2],f[3],f[4],u,t):function(n,r){var e=0,o;do o=pe(f[e++],f[e++],f[e++],f[e++],f[e++],u,t)(n,r),r=i,n=o;while(e<h);return o}:(e="var p;\n",r(f,function(n,i){ft(n,u);e+="if(s == null) return undefined;\ns="+(i?"s":'((k&&k.hasOwnProperty("'+n+'"))?k:s)')+'["'+n+'"];\n'+(t.unwrapPromises?'if (s && s.then) {\n pw("'+u.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n':"")}),e=e+"return s;",s=new Function("s","k","pw",e),s.toString=nt(e),o=t.unwrapPromises?function(n,t){return s(n,t,kt)}:s),"hasOwnProperty"!==n&&(lf[n]=o),o)}function rh(){var t={},n={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=function(t){return f(t)?(n.unwrapPromises=!!t,this):n.unwrapPromises};this.logPromiseWarnings=function(t){return f(t)?(n.logPromiseWarnings=t,this):n.logPromiseWarnings};this.$get=["$filter","$sniffer","$log",function(i,r,u){return n.csp=r.csp,kt=function(t){n.logPromiseWarnings&&!eo.hasOwnProperty(t)&&(eo[t]=!0,u.warn("[$parse] Promise found in the expression `"+t+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))},function(r){var u;switch(typeof r){case"string":return t.hasOwnProperty(r)?t[r]:(u=new cf(n),u=new ai(u,i,n).parse(r),"hasOwnProperty"!==r&&(t[r]=u),u);case"function":return r;default:return s}}}]}function uh(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return fh(function(t){n.$evalAsync(t)},t)}]}function fh(n,t){function f(n){return n}function c(n){return s(n)}var u=function(){var r=[],o,s;return s={resolve:function(t){if(r){var u=r;r=i;o=e(t);u.length&&n(function(){for(var n,t=0,i=u.length;t<i;t++)n=u[t],o.then(n[0],n[1],n[2])})}},reject:function(n){s.resolve(l(n))},notify:function(t){if(r){var i=r;r.length&&n(function(){for(var r,n=0,u=i.length;n<u;n++)r=i[n],r[2](t)})}},promise:{then:function(n,i,e){var s=u(),l=function(i){try{s.resolve((h(n)?n:f)(i))}catch(r){s.reject(r);t(r)}},a=function(n){try{s.resolve((h(i)?i:c)(n))}catch(r){s.reject(r);t(r)}},v=function(n){try{s.notify((h(e)?e:f)(n))}catch(i){t(i)}};return r?r.push([l,a,v]):o.then(l,a,v),s.promise},"catch":function(n){return this.then(null,n)},"finally":function(n){function t(n,t){var i=u();return t?i.resolve(n):i.reject(n),i.promise}function i(i,r){var u=null;try{u=(n||f)()}catch(e){return t(e,!1)}return u&&h(u.then)?u.then(function(){return t(i,r)},function(n){return t(n,!1)}):t(i,r)}return this.then(function(n){return i(n,!0)},function(n){return i(n,!1)})}}}},e=function(t){return t&&h(t.then)?t:{then:function(i){var r=u();return n(function(){r.resolve(i(t))}),r.promise}}},s=function(n){var t=u();return t.reject(n),t.promise},l=function(i){return{then:function(r,f){var e=u();return n(function(){try{e.resolve((h(f)?f:c)(i))}catch(n){e.reject(n);t(n)}}),e.promise}}};return{defer:u,reject:s,when:function(i,r,o,l){var v=u(),a,w=function(n){try{return(h(r)?r:f)(n)}catch(i){return t(i),s(i)}},y=function(n){try{return(h(o)?o:c)(n)}catch(i){return t(i),s(i)}},p=function(n){try{return(h(l)?l:f)(n)}catch(i){t(i)}};return n(function(){e(i).then(function(n){a||(a=!0,v.resolve(e(n).then(w,y,p)))},function(n){a||(a=!0,v.resolve(y(n)))},function(n){a||v.notify(p(n))})}),v.promise},all:function(n){var i=u(),f=0,t=o(n)?[]:{};return r(n,function(n,r){f++;e(n).then(function(n){t.hasOwnProperty(r)||(t[r]=n,--f||i.resolve(t))},function(n){t.hasOwnProperty(r)||i.reject(n)})}),0===f&&i.resolve(t),i.promise}}}function eh(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function oh(){var t=10,i=y("$rootScope"),n=null;this.digestTtl=function(n){return arguments.length&&(t=n),t};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(u,f,e,o){function l(){this.$id=ar();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;this.$$destroyed=!1;this.$$asyncQueue=[];this.$$postDigestQueue=[];this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings={}}function v(n){if(c.$$phase)throw i("inprog",c.$$phase);c.$$phase=n}function y(n,t){var i=e(n);return di(i,t),i}function p(n,t,i){do n.$$listenerCount[i]-=t,0===n.$$listenerCount[i]&&delete n.$$listenerCount[i];while(n=n.$parent)}function w(){}l.prototype={constructor:l,$new:function(n){return n?(n=new l,n.$root=this.$root,n.$$asyncQueue=this.$$asyncQueue,n.$$postDigestQueue=this.$$postDigestQueue):(this.$$childScopeClass||(this.$$childScopeClass=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$id=ar();this.$$childScopeClass=null},this.$$childScopeClass.prototype=this),n=new this.$$childScopeClass),n["this"]=n,n.$parent=this,n.$$prevSibling=this.$$childTail,this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=n:this.$$childHead=this.$$childTail=n,n},$watch:function(t,i,r){var e=y(t,"watch"),f=this.$$watchers,u={fn:i,last:w,get:e,exp:t,eq:!!r},o,c;return n=null,h(i)||(o=y(i||s,"listener"),u.fn=function(n,t,i){o(i)}),"string"==typeof t&&e.constant&&(c=u.fn,u.fn=function(n,t,i){c.call(this,n,t,i);bi(f,u)}),f||(f=this.$$watchers=[]),f.unshift(u),function(){bi(f,u);n=null}},$watchCollection:function(n,t){var s=this,i,r,o,v=1<t.length,u=0,y=e(n),h=[],c={},l=!0,f=0;return this.$watch(function(){i=y(s);var t,n,e;if(a(i))if(yi(i))for(r!==h&&(r=h,f=r.length=0,u++),t=i.length,f!==t&&(u++,r.length=f=t),n=0;n<t;n++)e=r[n]!==r[n]&&i[n]!==i[n],e||r[n]===i[n]||(u++,r[n]=i[n]);else{r!==c&&(r=c={},f=0,u++);t=0;for(n in i)i.hasOwnProperty(n)&&(t++,r.hasOwnProperty(n)?(e=r[n]!==r[n]&&i[n]!==i[n],e||r[n]===i[n]||(u++,r[n]=i[n])):(f++,r[n]=i[n],u++));if(f>t)for(n in u++,r)r.hasOwnProperty(n)&&!i.hasOwnProperty(n)&&(f--,delete r[n])}else r!==i&&(r=i,u++);return u},function(){if(l?(l=!1,t(i,i,s)):t(i,o,s),v)if(a(i))if(yi(i)){o=Array(i.length);for(var n=0;n<i.length;n++)o[n]=i[n]}else for(n in o={},i)ru.call(i,n)&&(o[n]=i[n]);else o=i})},$digest:function(){var r,e,s,l,y=this.$$asyncQueue,tt=this.$$postDigestQueue,k,a,d=t,u,p=[],b,g,nt;v("$digest");o.$$checkUrlChange();n=null;do{for(a=!1,u=this;y.length;){try{nt=y.shift();nt.scope.$eval(nt.expression)}catch(it){c.$$phase=null;f(it)}n=null}n:do{if(l=u.$$watchers)for(k=l.length;k--;)try{if(r=l[k])if((e=r.get(u))===(s=r.last)||(r.eq?gt(e,s):"number"==typeof e&&"number"==typeof s&&isNaN(e)&&isNaN(s))){if(r===n){a=!1;break n}}else a=!0,n=r,r.last=r.eq?oi(e,null):e,r.fn(e,s===w?e:s,u),5>d&&(b=4-d,p[b]||(p[b]=[]),g=h(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,g+="; newVal: "+st(e)+"; oldVal: "+st(s),p[b].push(g))}catch(rt){c.$$phase=null;f(rt)}if(!(l=u.$$childHead||u!==this&&u.$$nextSibling))for(;u!==this&&!(l=u.$$nextSibling);)u=u.$parent}while(u=l);if((a||y.length)&&!d--)throw c.$$phase=null,i("infdig",t,st(p));}while(a||y.length);for(c.$$phase=null;tt.length;)try{tt.shift()()}catch(ut){f(ut)}},$destroy:function(){if(!this.$$destroyed){var n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this!==c&&(r(this.$$listenerCount,hu(null,p,this)),n.$$childHead==this&&(n.$$childHead=this.$$nextSibling),n.$$childTail==this&&(n.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null,this.$$listeners={},this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[],this.$destroy=this.$digest=this.$apply=s,this.$on=this.$watch=function(){return s})}},$eval:function(n,t){return e(n)(this,t)},$evalAsync:function(n){c.$$phase||c.$$asyncQueue.length||o.defer(function(){c.$$asyncQueue.length&&c.$digest()});this.$$asyncQueue.push({scope:this,expression:n})},$$postDigest:function(n){this.$$postDigestQueue.push(n)},$apply:function(n){try{return v("$apply"),this.$eval(n)}catch(i){f(i)}finally{c.$$phase=null;try{c.$digest()}catch(t){throw f(t),t;}}},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){r[wi(r,t)]=null;p(u,1,n)}},$emit:function(n){var s=[],r,i=this,o=!1,u={name:n,targetScope:i,stopPropagation:function(){o=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},h=[u].concat(ri.call(arguments,1)),t,e;do{for(r=i.$$listeners[n]||s,u.currentScope=i,t=0,e=r.length;t<e;t++)if(r[t])try{r[t].apply(null,h)}catch(c){f(c)}else r.splice(t,1),t--,e--;if(o)break;i=i.$parent}while(i);return u},$broadcast:function(n){for(var t=this,i=this,u={name:n,targetScope:this,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},o=[u].concat(ri.call(arguments,1)),r,e;t=i;){for(u.currentScope=t,i=t.$$listeners[n]||[],r=0,e=i.length;r<e;r++)if(i[r])try{i[r].apply(null,o)}catch(s){f(s)}else i.splice(r,1),r--,e--;if(!(i=t.$$listenerCount[n]&&t.$$childHead||t!==this&&t.$$nextSibling))for(;t!==this&&!(i=t.$$nextSibling);)t=t.$parent}return u}};var c=new l;return c}]}function sh(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return f(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return f(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return(!p||8<=p)&&(u=wt(i).href,""!==u&&!u.match(f))?"unsafe:"+u:i}}}function hh(n){if("self"===n)return n;if(e(n)){if(-1<n.indexOf("***"))throw dt("iwcard",n);return n=n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08").replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),RegExp("^"+n+"$")}if(yr(n))return RegExp("^"+n.source+"$");throw dt("imatcher");}function be(n){var t=[];return f(n)&&r(n,function(n){t.push(hh(n))}),t}function ch(){this.SCE_CONTEXTS=it;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=be(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=be(n)),t};this.$get=["$injector",function(r){function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var o=function(){throw dt("unsafe");},e,u;return r.has("$sanitize")&&(o=r.get("$sanitize")),e=f(),u={},u[it.HTML]=f(e),u[it.CSS]=f(e),u[it.URL]=f(e),u[it.JS]=f(e),u[it.RESOURCE_URL]=f(u[it.URL]),{trustAs:function(n,t){var r=u.hasOwnProperty(n)?u[n]:null;if(!r)throw dt("icontext",n,t);if(null===t||t===i||""===t)return t;if("string"!=typeof t)throw dt("itype",n);return new r(t)},getTrusted:function(r,f){var s,e,c,h;if(null===f||f===i||""===f)return f;if(s=u.hasOwnProperty(r)?u[r]:null,s&&f instanceof s)return f.$$unwrapTrustedValue();if(r===it.RESOURCE_URL){for(s=wt(f.toString()),h=!1,e=0,c=n.length;e<c;e++)if("self"===n[e]?rf(s):n[e].exec(s.href)){h=!0;break}if(h)for(e=0,c=t.length;e<c;e++)if("self"===t[e]?rf(s):t[e].exec(s.href)){h=!1;break}if(h)return f;throw dt("insecurl",f.toString());}if(r===it.HTML)return o(f);throw dt("unsafe");},valueOf:function(n){return n instanceof e?n.$$unwrapTrustedValue():n}}}]}function lh(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sniffer","$sceDelegate",function(t,i,u){var f;if(n&&i.msie&&8>i.msieDocumentMode)throw dt("iequirks");f=rt(it);f.isEnabled=function(){return n};f.trustAs=u.trustAs;f.getTrusted=u.getTrusted;f.valueOf=u.valueOf;n||(f.trustAs=f.getTrusted=function(n,t){return t},f.valueOf=pi);f.parseAs=function(n,i){var r=t(i);return r.literal&&r.constant?r:function(t,i){return f.getTrusted(n,r(t,i))}};var e=f.parseAs,o=f.getTrusted,s=f.trustAs;return r(it,function(n,t){var i=v(t);f[gi("parse_as_"+i)]=function(t){return e(n,t)};f[gi("get_trusted_"+i)]=function(t){return o(n,t)};f[gi("trust_as_"+i)]=function(t){return s(n,t)}}),f}]}function ah(){this.$get=["$window","$document",function(n,t){var s={},h=b((/android (\d+)/.exec(v((n.navigator||{}).userAgent))||[])[1]),y=/Boxee/i.test((n.navigator||{}).userAgent),u=t[0]||{},c=u.documentMode,i,r=u.body&&u.body.style,f=!1,o=!1,a;if(r){for(a in r)if(f=/^(Moz|webkit|O|ms)(?=[A-Z])/.exec(a)){i=f[0];i=i.substr(0,1).toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in r&&"webkit");f=!!("transition"in r||i+"Transition"in r);o=!!("animation"in r||i+"Animation"in r);!h||f&&o||(f=e(u.body.style.webkitTransition),o=e(u.body.style.webkitAnimation))}return{history:!(!n.history||!n.history.pushState||4>h||y),hashchange:"onhashchange"in n&&(!c||7<c),hasEvent:function(n){if("input"==n&&9==p)return!1;if(l(s[n])){var t=u.createElement("div");s[n]="on"+n in t}return s[n]},csp:fr(),vendorPrefix:i,transitions:f,animations:o,android:h,msie:p,msieDocumentMode:c}}]}function vh(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(n,t,i,r){function e(e,o,s){var h=i.defer(),c=h.promise,l=f(s)&&!s;return o=t.defer(function(){try{h.resolve(e())}catch(t){h.reject(t);r(t)}finally{delete u[c.$$timeoutId]}l||n.$apply()},o),c.$$timeoutId=o,u[o]=h,c}var u={};return e.cancel=function(n){return n&&n.$$timeoutId in u?(u[n.$$timeoutId].reject("canceled"),delete u[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},e}]}function wt(n){var t=n;return p&&(d.setAttribute("href",t),t=d.href),d.setAttribute("href",t),{href:d.href,protocol:d.protocol?d.protocol.replace(/:$/,""):"",host:d.host,search:d.search?d.search.replace(/^\?/,""):"",hash:d.hash?d.hash.replace(/^#/,""):"",hostname:d.hostname,port:d.port,pathname:"/"===d.pathname.charAt(0)?d.pathname:"/"+d.pathname}}function rf(n){return n=e(n)?wt(n):n,n.protocol===so.protocol&&n.host===so.host}function yh(){this.$get=nt(n)}function ke(n){function t(u,f){if(a(u)){var e={};return r(u,function(n,i){e[i]=t(i,n)}),e}return n.factory(u+i,f)}var i="Filter";this.register=t;this.$get=["$injector",function(n){return function(t){return n.get(t+i)}}];t("currency",de);t("date",to);t("filter",ph);t("json",wh);t("limitTo",bh);t("lowercase",co);t("number",ge);t("orderBy",io);t("uppercase",lo)}function ph(){return function(n,t,i){var u,r,e,f,s;if(!o(n))return n;u=typeof i;r=[];r.check=function(n){for(var t=0;t<r.length;t++)if(!r[t](n))return!1;return!0};"function"!==u&&(i="boolean"===u&&i?function(n,t){return rr.equals(n,t)}:function(n,t){if(n&&t&&"object"==typeof n&&"object"==typeof t){for(var r in n)if("$"!==r.charAt(0)&&ru.call(n,r)&&i(n[r],t[r]))return!0;return!1}return t=(""+t).toLowerCase(),-1<(""+n).toLowerCase().indexOf(t)});e=function(n,t){if("string"==typeof t&&"!"===t.charAt(0))return!e(n,t.substr(1));switch(typeof n){case"boolean":case"number":case"string":return i(n,t);case"object":switch(typeof t){case"object":return i(n,t);default:for(var r in n)if("$"!==r.charAt(0)&&e(n[r],t))return!0}return!1;case"array":for(r=0;r<n.length;r++)if(e(n[r],t))return!0;return!1;default:return!1}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};case"object":for(f in t)(function(n){"undefined"!=typeof t[n]&&r.push(function(i){return e("$"==n?i:i&&i[n],t[n])})})(f);break;case"function":r.push(t);break;default:return n}for(u=[],f=0;f<n.length;f++)s=n[f],r.check(s)&&u.push(s);return u}}function de(n){var t=n.NUMBER_FORMATS;return function(n,i){return l(i)&&(i=t.CURRENCY_SYM),no(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,i)}}function ge(n){var t=n.NUMBER_FORMATS;return function(n,i){return no(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function no(n,t,i,r,u){var h,s;if(null==n||!isFinite(n)||a(n))return"";h=0>n;n=Math.abs(n);var f=n+"",o="",c=[],e=!1;if(-1!==f.indexOf("e")&&(s=f.match(/([\d\.]+)e(-?)(\d+)/),s&&"-"==s[2]&&s[3]>u+1?(f="0",n=0):(o=f,e=!0)),e)0<u&&-1<n&&1>n&&(o=n.toFixed(u));else{f=(f.split(ho)[1]||"").length;l(u)&&(u=Math.min(Math.max(t.minFrac,f),t.maxFrac));n=+(Math.round(+(n.toString()+"e"+u)).toString()+"e"+-u);0===n&&(h=!1);n=(""+n).split(ho);f=n[0];n=n[1]||"";var s=0,v=t.lgSize,y=t.gSize;if(f.length>=v+y)for(s=f.length-v,e=0;e<s;e++)0==(s-e)%y&&0!==e&&(o+=i),o+=f.charAt(e);for(e=s;e<f.length;e++)0==(f.length-e)%v&&0!==e&&(o+=i),o+=f.charAt(e);for(;n.length<u;)n+="0";u&&"0"!==u&&(o+=r+n.substr(0,u))}return c.push(h?t.negPre:t.posPre),c.push(o),c.push(h?t.negSuf:t.posSuf),c.join("")}function uf(n,t,i){var r="";for(0>n&&(r="-",n=-n),n=""+n;n.length<t;)n="0"+n;return i&&(n=n.substr(n.length-t)),r+n}function k(n,t,i,r){return i=i||0,function(u){return u=u["get"+n](),(0<i||u>-i)&&(u+=i),0===u&&-12==i&&(u=12),uf(u,t,r)}}function tu(n,t){return function(i,r){var u=i["get"+n](),f=ci(t?"SHORT"+n:n);return r[f][u]}}function to(n){function t(n){var t;if(t=n.match(i)){n=new Date(0);var r=0,u=0,f=t[8]?n.setUTCFullYear:n.setFullYear,e=t[8]?n.setUTCHours:n.setHours;t[9]&&(r=b(t[9]+t[10]),u=b(t[9]+t[11]));f.call(n,b(t[1]),b(t[2])-1,b(t[3]));r=b(t[4]||0)-r;u=b(t[5]||0)-u;f=b(t[6]||0);t=Math.round(1e3*parseFloat("0."+(t[7]||0)));e.call(n,r,u,f,t)}return n}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,u){var s="",f=[],o,h;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,e(i)&&(i=il.test(i)?b(i):t(i)),vr(i)&&(i=new Date(i)),!yt(i))return i;for(;u;)(h=tl.exec(u))?(f=f.concat(ri.call(h,1)),u=f.pop()):(f.push(u),u=null);return r(f,function(t){o=nl[t];s+=o?o(i,n.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function wh(){return function(n){return st(n,!0)}}function bh(){return function(n,t){if(!o(n)&&!e(n))return n;if(t=Infinity===Math.abs(Number(t))?Number(t):b(t),e(n))return t?0<=t?n.slice(0,t):n.slice(t,n.length):"";var u=[],i,r;for(t>n.length?t=n.length:t<-n.length&&(t=-n.length),0<t?(i=0,r=t):(i=n.length+t,r=n.length);i<r;i++)u.push(n[i]);return u}}function io(n){return function(t,i,r){function u(n,t){return ki(t)?function(t,i){return n(i,t)}:n}function s(n,t){var i=typeof n,r=typeof t;return i==r?(yt(n)&&yt(t)&&(n=n.valueOf(),t=t.valueOf()),"string"==i&&(n=n.toLowerCase(),t=t.toLowerCase()),n===t?0:n<t?-1:1):i<r?-1:1}if(!yi(t)||!i)return t;i=o(i)?i:[i];i=ns(i,function(t){var r=!1,i=t||pi,f;return e(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(r="-"==t.charAt(0),t=t.substring(1)),i=n(t),i.constant)?(f=i(),u(function(n,t){return s(n[f],t[f])},r)):u(function(n,t){return s(i(n),i(t))},r)});for(var h=[],f=0;f<t.length;f++)h.push(t[f]);return h.sort(u(function(n,t){for(var u,r=0;r<i.length;r++)if(u=i[r](n,t),0!==u)return u;return 0},r))}}function bt(n){return h(n)&&(n={link:n}),n.restrict=n.restrict||"AC",nt(n)}function ro(n,t,i,u){function e(t,i){i=i?"-"+wr(i,"-"):"";u.setClass(n,(t?eu:ou)+i,(t?ou:eu)+i)}var f=this,o=n.parent().controller("form")||lr,s=0,h=f.$error={},c=[];f.$name=t.name||t.ngForm;f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;o.$addControl(f);n.addClass(vi);e(!0);f.$addControl=function(n){ti(n.$name,"input");c.push(n);n.$name&&(f[n.$name]=n)};f.$removeControl=function(n){n.$name&&f[n.$name]===n&&delete f[n.$name];r(h,function(t,i){f.$setValidity(i,!0,n)});bi(c,n)};f.$setValidity=function(n,t,i){var r=h[n];if(t)r&&(bi(r,i),r.length||(s--,s||(e(t),f.$valid=!0,f.$invalid=!1),h[n]=!1,e(!0,n),o.$setValidity(n,!0,f)));else{if(s||e(t),r){if(-1!=wi(r,i))return}else h[n]=r=[],s++,e(!1,n),o.$setValidity(n,!1,f);r.push(i);f.$valid=!1;f.$invalid=!0}};f.$setDirty=function(){u.removeClass(n,vi);u.addClass(n,su);f.$dirty=!0;f.$pristine=!1;o.$setDirty()};f.$setPristine=function(){u.removeClass(n,su);u.addClass(n,vi);f.$dirty=!1;f.$pristine=!0;r(c,function(n){n.$setPristine()})}}function at(n,t,r,u){return n.$setValidity(t,r),r?u:i}function uo(n,t){var i,r;if(t)for(i=0;i<t.length;++i)if(r=t[i],n[r])return!0;return!1}function kh(n,t,i,r,u){a(u)&&(n.$$hasNativeValidators=!0,n.$parsers.push(function(f){if(n.$error[t]||uo(u,r)||!uo(u,i))return f;n.$setValidity(t,!1)}))}function iu(n,t,i,r,u,f){var l=t.prop(dh),a=t[0].placeholder,d={},nt=v(t[0].type),s,o,h,c,e,w,k;if(r.$$validityState=l,!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(u){if(!s){var f=t.val();p&&"input"===(u||d).type&&t[0].placeholder!==a?a=t[0].placeholder:("password"!==nt&&ki(i.ngTrim||"T")&&(f=g(f)),u=l&&r.$$hasNativeValidators,r.$viewValue!==f||""===f&&u)&&(n.$root.$$phase?r.$setViewValue(f):n.$apply(function(){r.$setViewValue(f)}))}},u.hasEvent("input"))t.on("input",o);else{c=function(){h||(h=f.defer(function(){o();h=null}))};t.on("keydown",function(n){n=n.keyCode;91===n||15<n&&19>n||37<=n&&40>=n||c()});if(u.hasEvent("paste"))t.on("paste cut",c)}t.on("change",o);r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)};e=i.ngPattern;e&&((u=e.match(/^\/(.*)\/([gim]*)$/))?(e=RegExp(u[1],u[2]),u=function(n){return at(r,"pattern",r.$isEmpty(n)||e.test(n),n)}):u=function(i){var u=n.$eval(e);if(!u||!u.test)throw y("ngPattern")("noregexp",e,u,ut(t));return at(r,"pattern",r.$isEmpty(i)||u.test(i),i)},r.$formatters.push(u),r.$parsers.push(u));i.ngMinlength&&(w=b(i.ngMinlength),u=function(n){return at(r,"minlength",r.$isEmpty(n)||n.length>=w,n)},r.$parsers.push(u),r.$formatters.push(u));i.ngMaxlength&&(k=b(i.ngMaxlength),u=function(n){return at(r,"maxlength",r.$isEmpty(n)||n.length<=k,n)},r.$parsers.push(u),r.$formatters.push(u))}function ff(n,t){return n="ngClass"+n,["$animate",function(i){function f(n,t){var f=[],r=0,u,i;n:for(;r<n.length;r++){for(u=n[r],i=0;i<t.length;i++)if(u==t[i])continue n;f.push(u)}return f}function u(n){if(!o(n)){if(e(n))return n.split(" ");if(a(n)){var t=[];return r(n,function(n,i){n&&(t=t.concat(i.split(" ")))}),t}}return n}return{restrict:"AC",link:function(e,o,s){function h(n,t){var i=o.data("$classCounts")||{},u=[];return r(n,function(n){(0<t||i[n])&&(i[n]=(i[n]||0)+t,i[n]===+(0<t)&&u.push(n))}),o.data("$classCounts",i),u.join(" ")}function l(n){var r,l;if(!0===t||e.$index%2===t)if(r=u(n||[]),c){if(!gt(n,c)){var a=u(c),l=f(r,a),r=f(a,r),r=h(r,-1),l=h(l,1);0===l.length?i.removeClass(o,r):0===r.length?i.addClass(o,l):i.setClass(o,l,r)}}else l=h(r,1),s.$addClass(l);c=rt(n)}var c;e.$watch(s[n],l,!0);s.$observe("class",function(){l(e.$eval(s[n]))});"ngClass"!==n&&e.$watch("$index",function(i,r){var f=i&1,o;f!==(r&1)&&(o=u(e.$eval(s[n])),f===t?(f=h(o,1),s.$addClass(f)):(f=h(o,-1),s.$removeClass(f)))})}}}]}var dh="validity",v=function(n){return e(n)?n.toLowerCase():n},ru=Object.prototype.hasOwnProperty,ci=function(n){return e(n)?n.toUpperCase():n},p,u,ii,ri=[].slice,gh=[].push,ui=Object.prototype.toString,ir=y("ng"),rr=n.angular||(n.angular={}),ur,li,vt=["0","0","0"],o,g,fi,sr,sf,ai,co,lo,ao,fu,lr;p=b((/msie (\d+)/.exec(v(navigator.userAgent))||[])[1]);isNaN(p)&&(p=b((/trident\/.*; rv:(\d+)/.exec(v(navigator.userAgent))||[])[1]));s.$inject=[];pi.$inject=[];o=function(){return h(Array.isArray)?Array.isArray:function(n){return"[object Array]"===ui.call(n)}}();g=function(){return String.prototype.trim?function(n){return e(n)?n.trim():n}:function(n){return e(n)?n.replace(/^\s\s*/,"").replace(/\s\s*$/,""):n}}();li=9>p?function(n){return n=n.nodeName?n:n[0],n.scopeName&&"HTML"!=n.scopeName?ci(n.scopeName+":"+n.nodeName):n.nodeName}:function(n){return n.nodeName?n.nodeName:n[0].nodeName};var fr=function(){if(f(fr.isActive_))return fr.isActive_;var n=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!n)try{new Function("")}catch(i){n=!0}return fr.isActive_=n},nc=/[A-Z]/g,tc={full:"1.2.26",major:1,minor:2,dot:26,codeName:"captivating-disinterest"};w.expando="ng339";var er=w.cache={},ic=1,uu=n.document.addEventListener?function(n,t,i){n.addEventListener(t,i,!1)}:function(n,t,i){n.attachEvent("on"+t,i)},or=n.document.removeEventListener?function(n,t,i){n.removeEventListener(t,i,!1)}:function(n,t,i){n.detachEvent("on"+t,i)};w._data=function(n){return this.cache[n[this.expando]]||{}};var rc=/([\:\-\_]+(.))/g,uc=/^moz([A-Z])/,ef=y("jqLite"),fc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,of=/<|&#?\w+;/,ec=/<([\w:]+)/,oc=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,tt={option:[1,'<select multiple="multiple">',"<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};tt.optgroup=tt.option;tt.tbody=tt.tfoot=tt.colgroup=tt.caption=tt.thead;tt.th=tt.td;fi=w.prototype={ready:function(i){function r(){u||(u=!0,i())}var u=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),w(n).on("load",r))},toString:function(){var n=[];return r(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return 0<=n?u(this[n]):u(this[this.length+n])},length:0,push:gh,sort:[].sort,splice:[].splice};sr={};r("multiple selected checked disabled readOnly required open".split(" "),function(n){sr[v(n)]=n});sf={};r("input select option textarea button form details".split(" "),function(n){sf[ci(n)]=!0});r({data:wu,removeData:pu},function(n,t){w[t]=n});r({data:wu,inheritedData:dr,scope:function(n){return u.data(n,"$scope")||dr(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return u.data(n,"$isolateScope")||u.data(n,"$isolateScopeNoTemplate")},controller:te,injector:function(n){return dr(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:bu,css:function(n,t,r){if(t=gi(t),f(r))n.style[t]=r;else{var u;return 8>=p&&(u=n.currentStyle&&n.currentStyle[t],""===u&&(u="auto")),u=u||n.style[t],8>=p&&(u=""===u?i:u),u}},attr:function(n,t,r){var u=v(t);if(sr[u])if(f(r))r?(n[t]=!0,n.setAttribute(t,u)):(n[t]=!1,n.removeAttribute(u));else return n[t]||(n.attributes.getNamedItem(t)||s).specified?u:i;else if(f(r))n.setAttribute(t,r);else if(n.getAttribute)return n=n.getAttribute(t,2),null===n?i:n},prop:function(n,t,i){if(f(i))n[t]=i;else return n[t]},text:function(){function t(t,i){var r=n[t.nodeType];if(l(i))return r?t[r]:"";t[r]=i}var n=[];return 9>p?(n[1]="innerText",n[3]="nodeValue"):n[1]=n[3]="textContent",t.$dv="",t}(),val:function(n,t){if(l(t)){if("SELECT"===li(n)&&n.multiple){var i=[];return r(n.options,function(n){n.selected&&i.push(n.value||n.text)}),0===i.length?null:i}return n.value}n.value=t},html:function(n,t){if(l(t))return n.innerHTML;for(var i=0,r=n.childNodes;i<r.length;i++)si(r[i]);n.innerHTML=t},empty:ie},function(n,t){w.prototype[t]=function(t,r){var u,f,e=this.length,o;if(n!==ie&&(2==n.length&&n!==bu&&n!==te?t:r)===i){if(a(t)){for(u=0;u<e;u++)if(n===wu)n(this[u],t);else for(f in t)n(this[u],f,t[f]);return this}for(u=n.$dv,e=u===i?Math.min(e,1):e,f=0;f<e;f++)o=n(this[f],t,r),u=u?u+o:o;return u}for(u=0;u<e;u++)n(this[u],t,r);return this}});r({removeData:pu,dealoc:si,on:function sc(n,i,u,e){if(f(e))throw ef("onargs");var o=ht(n,"events"),s=ht(n,"handle");o||ht(n,"events",o={});s||ht(n,"handle",s=fs(n,o));r(i.split(" "),function(i){var r=o[i],f;r||("mouseenter"==i||"mouseleave"==i?(f=t.body.contains||t.body.compareDocumentPosition?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&1===i.nodeType&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},o[i]=[],sc(n,{mouseleave:"mouseout",mouseenter:"mouseover"}[i],function(n){var t=n.relatedTarget;t&&(t===this||f(this,t))||s(n,i)})):(uu(n,i,s),o[i]=[]),r=o[i]);r.push(u)})},off:ne,one:function(n,t,i){n=u(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,t){var i,u=n.parentNode;si(n);r(new w(t),function(t){i?u.insertBefore(t,i.nextSibling):u.replaceChild(t,n);i=t})},children:function(n){var t=[];return r(n.childNodes,function(n){1===n.nodeType&&t.push(n)}),t},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){r(new w(t),function(t){1!==n.nodeType&&11!==n.nodeType||n.appendChild(t)})},prepend:function(n,t){if(1===n.nodeType){var i=n.firstChild;r(new w(t),function(t){n.insertBefore(t,i)})}},wrap:function(n,t){t=u(t)[0];var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)},remove:function(n){si(n);var t=n.parentNode;t&&t.removeChild(n)},after:function(n,t){var i=n,u=n.parentNode;r(new w(t),function(n){u.insertBefore(n,i.nextSibling);i=n})},addClass:kr,removeClass:br,toggleClass:function(n,t,i){t&&r(t.split(" "),function(t){var r=i;l(r)&&(r=!bu(n,t));(r?kr:br)(n,t)})},parent:function(n){return(n=n.parentNode)&&11!==n.nodeType?n:null},next:function(n){if(n.nextElementSibling)return n.nextElementSibling;for(n=n.nextSibling;null!=n&&1!==n.nodeType;)n=n.nextSibling;return n},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:yu,triggerHandler:function(n,t,i){var u,e,f;u=t.type||t;f=(ht(n,"events")||{})[u];f&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopPropagation:s,type:u,target:n},t.type&&(u=c(u,t)),t=rt(f),e=i?[u].concat(i):[u],r(t,function(t){t.apply(n,e)}))}},function(n,t){w.prototype[t]=function(t,i,r){for(var e,o=0;o<this.length;o++)l(e)?(e=n(this[o],t,i,r),f(e)&&(e=u(e))):ku(e,n(this[o],t,i,r));return f(e)?e:this};w.prototype.bind=w.prototype.on;w.prototype.unbind=w.prototype.off});nr.prototype={put:function(n,t){this[hi(n,this.nextUid)]=t},get:function(n){return this[hi(n,this.nextUid)]},remove:function(n){var t=this[n=hi(n,this.nextUid)];return delete this[n],t}};var hc=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,cc=/,/,lc=/^\s*(_?)(\S+?)\1\s*$/,ac=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,hr=y("$injector"),vc=y("$animate"),yc=["$provide",function(n){this.$$selectors={};this.register=function(t,i){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw vc("notcsel",t);this.$$selectors[t.substr(1)]=r;n.factory(r,i)};this.classNameFilter=function(n){return 1===arguments.length&&(this.$$classNameFilter=n instanceof RegExp?n:null),this.$$classNameFilter};this.$get=["$timeout","$$asyncCallback",function(n,t){return{enter:function(n,i,r,u){r?r.after(n):(i&&i[0]||(i=r.parent()),i.append(n));u&&t(u)},leave:function(n,i){n.remove();i&&t(i)},move:function(n,t,i,r){this.enter(n,t,i,r)},addClass:function(n,i,u){i=e(i)?i:o(i)?i.join(" "):"";r(n,function(n){kr(n,i)});u&&t(u)},removeClass:function(n,i,u){i=e(i)?i:o(i)?i.join(" "):"";r(n,function(n){br(n,i)});u&&t(u)},setClass:function(n,i,u,f){r(n,function(n){kr(n,i);br(n,u)});f&&t(f)},enabled:s}}]}],et=y("$compile");ee.$inject=["$provide","$$sanitizeUriProvider"];var pc=/^(x[\:\-_]|data[\:\-_])/i,fo=y("$interpolate"),wc=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,bc={http:80,https:443,ftp:21},hf=y("$location");tf.prototype=nf.prototype=ve.prototype={$$html5:!1,$$replace:!1,absUrl:gr("$$absUrl"),url:function(n){return l(n)?this.$$url:(n=wc.exec(n),n[1]&&this.path(decodeURIComponent(n[1])),(n[2]||n[1])&&this.search(n[3]||""),this.hash(n[5]||""),this)},protocol:gr("$$protocol"),host:gr("$$host"),port:gr("$$port"),path:ye("$$path",function(n){return n=n?n.toString():"","/"==n.charAt(0)?n:"/"+n}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(e(n)||vr(n))n=n.toString(),this.$$search=kf(n);else if(a(n))r(n,function(t,i){null==t&&delete n[i]}),this.$$search=n;else throw hf("isrcharg");break;default:l(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:ye("$$hash",function(n){return n?n.toString():""}),replace:function(){return this.$$replace=!0,this}};var ot=y("$parse"),eo={},kt,kc=Function.prototype.call,dc=Function.prototype.apply,oo=Function.prototype.bind,cr={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:s,"+":function(n,t,r,u){return r=r(n,t),u=u(n,t),f(r)?f(u)?r+u:r:f(u)?u:i},"-":function(n,t,i,r){return i=i(n,t),r=r(n,t),(f(i)?i:0)-(f(r)?r:0)},"*":function(n,t,i,r){return i(n,t)*r(n,t)},"/":function(n,t,i,r){return i(n,t)/r(n,t)},"%":function(n,t,i,r){return i(n,t)%r(n,t)},"^":function(n,t,i,r){return i(n,t)^r(n,t)},"=":s,"===":function(n,t,i,r){return i(n,t)===r(n,t)},"!==":function(n,t,i,r){return i(n,t)!==r(n,t)},"==":function(n,t,i,r){return i(n,t)==r(n,t)},"!=":function(n,t,i,r){return i(n,t)!=r(n,t)},"<":function(n,t,i,r){return i(n,t)<r(n,t)},">":function(n,t,i,r){return i(n,t)>r(n,t)},"<=":function(n,t,i,r){return i(n,t)<=r(n,t)},">=":function(n,t,i,r){return i(n,t)>=r(n,t)},"&&":function(n,t,i,r){return i(n,t)&&r(n,t)},"||":function(n,t,i,r){return i(n,t)||r(n,t)},"&":function(n,t,i,r){return i(n,t)&r(n,t)},"|":function(n,t,i,r){return r(n,t)(n,t,i(n,t))},"!":function(n,t,i){return!i(n,t)}},gc={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},cf=function(n){this.options=n};cf.prototype={constructor:cf,lex:function(n){for(this.text=n,this.index=0,this.ch=i,this.lastCh=":",this.tokens=[];this.index<this.text.length;){if(this.ch=this.text.charAt(this.index),this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent();else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch}),this.index++;else if(this.isWhitespace(this.ch)){this.index++;continue}else{n=this.ch+this.peek();var t=n+this.peek(2),r=cr[this.ch],u=cr[n],f=cr[t];f?(this.tokens.push({index:this.index,text:t,fn:f}),this.index+=3):u?(this.tokens.push({index:this.index,text:n,fn:u}),this.index+=2):r?(this.tokens.push({index:this.index,text:this.ch,fn:r}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(n){return-1!==n.indexOf(this.ch)},was:function(n){return-1!==n.indexOf(this.lastCh)},peek:function(n){return n=n||1,this.index+n<this.text.length?this.text.charAt(this.index+n):!1},isNumber:function(n){return"0"<=n&&"9">=n},isWhitespace:function(n){return" "===n||"\r"===n||"\t"===n||"\n"===n||"\v"===n||" "===n},isIdent:function(n){return"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"_"===n||"$"===n},isExpOperator:function(n){return"-"===n||"+"===n||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;t=f(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw ot("lexerr",n,t,this.text);},readNumber:function(){for(var t,i,n="",r=this.index;this.index<this.text.length;){if(t=v(this.text.charAt(this.index)),"."==t||this.isNumber(t))n+=t;else if(i=this.peek(),"e"==t&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&"e"==n.charAt(n.length-1))n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||"e"!=n.charAt(n.length-1))break;else this.throwError("Invalid exponent");this.index++}n*=1;this.tokens.push({index:r,text:n,literal:!0,constant:!0,fn:function(){return n}})},readIdent:function(){for(var o,e=this,n="",t=this.index,r,u,f,i;this.index<this.text.length;){if(i=this.text.charAt(this.index),"."===i||this.isIdent(i)||this.isNumber(i))"."===i&&(r=this.index),n+=i;else break;this.index++}if(r)for(u=this.index;u<this.text.length;){if(i=this.text.charAt(u),"("===i){f=n.substr(r-t+1);n=n.substr(0,r-t);this.index=u;break}if(this.isWhitespace(i))u++;else break}t={index:t,text:n};cr.hasOwnProperty(n)?(t.fn=cr[n],t.literal=!0,t.constant=!0):(o=we(n,this.options,this.text),t.fn=c(function(n,t){return o(n,t)},{assign:function(t,i){return nu(t,n,i,e.text,e.options)}}));this.tokens.push(t);f&&(this.tokens.push({index:r,text:"."}),this.tokens.push({index:r+1,text:f}))},readString:function(n){var f=this.index,t,u;this.index++;for(var r="",u=n,i=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),u=u+t,i)"u"===t?(i=this.text.substring(this.index+1,this.index+5),i.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,r+=String.fromCharCode(parseInt(i,16))):r+=gc[t]||t,i=!1;else if("\\"===t)i=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:u,string:r,literal:!0,constant:!0,fn:function(){return r}});return}r+=t}this.index++}this.throwError("Unterminated quote",f)}};ai=function(n,t,i){this.lexer=n;this.$filter=t;this.options=i};ai.ZERO=c(function(){return 0},{constant:!0});ai.prototype={constructor:ai,parse:function(n){return this.text=n,this.tokens=this.lexer.lex(n),n=this.statements(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),n.literal=!!n.literal,n.constant=!!n.constant,n},primary:function(){var n,t,i;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():(t=this.expect(),(n=t.fn)||this.throwError("not a primary expression",t),n.literal=!!t.literal,n.constant=!!t.constant);t=this.expect("(","[",".");)"("===t.text?(n=this.functionCall(n,i),i=null):"["===t.text?(i=n,n=this.objectIndex(n)):"."===t.text?(i=n,n=this.fieldAccess(n)):this.throwError("IMPOSSIBLE");return n},throwError:function(n,t){throw ot("syntax",t.text,n,t.index+1,this.text,this.text.substring(t.index));},peekToken:function(){if(0===this.tokens.length)throw ot("ueoe",this.text);return this.tokens[0]},peek:function(n,t,i,r){if(0<this.tokens.length){var f=this.tokens[0],u=f.text;if(u===n||u===t||u===i||u===r||!(n||t||i||r))return f}return!1},expect:function(n,t,i,r){return(n=this.peek(n,t,i,r))?(this.tokens.shift(),n):!1},consume:function(n){this.expect(n)||this.throwError("is unexpected, expecting ["+n+"]",this.peek())},unaryFn:function(n,t){return c(function(i,r){return n(i,r,t)},{constant:t.constant})},ternaryFn:function(n,t,i){return c(function(r,u){return n(r,u)?t(r,u):i(r,u)},{constant:n.constant&&t.constant&&i.constant})},binaryFn:function(n,t,i){return c(function(r,u){return t(r,u,n,i)},{constant:n.constant&&i.constant})},statements:function(){for(var n=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&n.push(this.filterChain()),!this.expect(";"))return 1===n.length?n[0]:function(t,i){for(var f,u,r=0;r<n.length;r++)u=n[r],u&&(f=u(t,i));return f}},filterChain:function(){for(var n=this.expression(),t;;)if(t=this.expect("|"))n=this.binaryFn(n,t.fn,this.filter());else return n},filter:function(){for(var i,t=this.expect(),r=this.$filter(t.text),n=[];;)if(t=this.expect(":"))n.push(this.expression());else return i=function(t,i,u){u=[u];for(var f=0;f<n.length;f++)u.push(n[f](t,i));return r.apply(t,u)},function(){return i}},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary(),i,t;return(t=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),i=this.ternary(),function(t,r){return n.assign(t,i(t,r),r)}):n},ternary:function(){var n=this.logicalOR(),t,i;if(this.expect("?")){if(t=this.assignment(),i=this.expect(":"))return this.ternaryFn(n,t,this.assignment());this.throwError("expected :",i)}else return n},logicalOR:function(){for(var n=this.logicalAND(),t;;)if(t=this.expect("||"))n=this.binaryFn(n,t.fn,this.logicalAND());else return n},logicalAND:function(){var n=this.equality(),t;return(t=this.expect("&&"))&&(n=this.binaryFn(n,t.fn,this.logicalAND())),n},equality:function(){var n=this.relational(),t;return(t=this.expect("==","!=","===","!=="))&&(n=this.binaryFn(n,t.fn,this.equality())),n},relational:function(){var n=this.additive(),t;return(t=this.expect("<",">","<=",">="))&&(n=this.binaryFn(n,t.fn,this.relational())),n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n=this.binaryFn(n,t.fn,this.multiplicative());return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n=this.binaryFn(n,t.fn,this.unary());return n},unary:function(){var n;return this.expect("+")?this.primary():(n=this.expect("-"))?this.binaryFn(ai.ZERO,n.fn,this.unary()):(n=this.expect("!"))?this.unaryFn(n.fn,this.unary()):this.primary()},fieldAccess:function(n){var t=this,i=this.expect().text,r=we(i,this.options,this.text);return c(function(t,i,u){return r(u||n(t,i))},{assign:function(r,u,f){return(f=n(r,f))||n.assign(r,f={}),nu(f,i,u,t.text,t.options)}})},objectIndex:function(n){var t=this,r=this.expression();return this.consume("]"),c(function(u,f){var e=n(u,f),s=r(u,f),o;return(ft(s,t.text),!e)?i:((e=pt(e[s],t.text))&&e.then&&t.options.unwrapPromises&&(o=e,"$$v"in e||(o.$$v=i,o.then(function(n){o.$$v=n})),e=e.$$v),e)},{assign:function(i,u,f){var e=ft(r(i,f),t.text);return(f=pt(n(i,f),t.text))||n.assign(i,f={}),f[e]=u}})},functionCall:function(n,t){var r=[],i;if(")"!==this.peekToken().text)do r.push(this.expression());while(this.expect(","));return this.consume(")"),i=this,function(u,f){for(var c,o=[],h=t?t(u,f):u,e=0;e<r.length;e++)o.push(pt(r[e](u,f),i.text));if(e=n(u,f,h)||s,pt(h,i.text),c=i.text,e){if(e.constructor===e)throw ot("isecfn",c);if(e===kc||e===dc||oo&&e===oo)throw ot("isecff",c);}return o=e.apply?e.apply(h,o):e(o[0],o[1],o[2],o[3],o[4]),pt(o,i.text)}},arrayDeclaration:function(){var n=[],i=!0,t;if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t=this.expression();n.push(t);t.constant||(i=!1)}while(this.expect(","));return this.consume("]"),c(function(t,i){for(var u=[],r=0;r<n.length;r++)u.push(n[r](t,i));return u},{literal:!0,constant:i})},object:function(){var t=[],r=!0,n,i;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;n=this.expect();n=n.string||n.text;this.consume(":");i=this.expression();t.push({key:n,value:i});i.constant||(r=!1)}while(this.expect(","));return this.consume("}"),c(function(n,i){for(var f,u={},r=0;r<t.length;r++)f=t[r],u[f.key]=f.value(n,i);return u},{literal:!0,constant:r})}};var lf={},dt=y("$sce"),it={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},d=t.createElement("a"),so=wt(n.location.href,!0);ke.$inject=["$provide"];de.$inject=["$locale"];ge.$inject=["$locale"];var ho=".",nl={yyyy:k("FullYear",4),yy:k("FullYear",2,0,!0),y:k("FullYear",1),MMMM:tu("Month"),MMM:tu("Month",!0),MM:k("Month",2,1),M:k("Month",1,1),dd:k("Date",2),d:k("Date",1),HH:k("Hours",2),H:k("Hours",1),hh:k("Hours",2,-12),h:k("Hours",1,-12),mm:k("Minutes",2),m:k("Minutes",1),ss:k("Seconds",2),s:k("Seconds",1),sss:k("Milliseconds",3),EEEE:tu("Day"),EEE:tu("Day",!0),a:function(n,t){return 12>n.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(n){return n=-1*n.getTimezoneOffset(),(0<=n?"+":"")+(uf(Math[0<n?"floor":"ceil"](n/60),2)+uf(Math.abs(n%60),2))}},tl=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,il=/^\-?\d+$/;to.$inject=["$locale"];co=nt(v);lo=nt(ci);io.$inject=["$parse"];ao=nt({restrict:"E",compile:function(n,i){return 8>=p&&(i.href||i.name||i.$set("href",""),n.append(t.createComment("IE fix"))),!i.href&&!i.xlinkHref&&!i.name?function(n,t){var i="[object SVGAnimatedString]"===ui.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}:void 0}});fu={};r(sr,function(n,t){if("multiple"!=n){var i=ct("ng-"+t);fu[i]=function(){return{priority:100,link:function(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}}}}});r(["src","srcset","href"],function(n){var t=ct("ng-"+n);fu[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;"href"===n&&"[object SVGAnimatedString]"===ui.call(r.prop("href"))&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){t?(u.$set(f,t),p&&e&&r.prop(e,u[f])):"href"===n&&u.$set(f,null)})}}}});lr={$addControl:s,$removeControl:s,$setValidity:s,$setDirty:s,$setPristine:s};ro.$inject=["$element","$attrs","$scope","$animate"];var vo=function(n){return["$timeout",function(t){return{name:"form",restrict:n?"EAC":"E",controller:ro,compile:function(){return{pre:function(n,r,u,f){var o,s,e;if(!u.action){o=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1};uu(r[0],"submit",o);r.on("$destroy",function(){t(function(){or(r[0],"submit",o)},0,!1)})}if(s=r.parent().controller("form"),e=u.name||u.ngForm,e&&nu(n,e,f,e),s)r.on("$destroy",function(){s.$removeControl(f);e&&nu(n,e,i,e);c(f,lr)})}}}}}]},rl=vo(),ul=vo(!0),fl=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,el=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,ol=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,yo={text:iu,number:function(n,t,r,u,f,e){iu(n,t,r,u,f,e);u.$parsers.push(function(n){var t=u.$isEmpty(n);return t||ol.test(n)?(u.$setValidity("number",!0),""===n?null:t?n:parseFloat(n)):(u.$setValidity("number",!1),i)});kh(u,"number",sl,null,u.$$validityState);u.$formatters.push(function(n){return u.$isEmpty(n)?"":""+n});r.min&&(n=function(n){var t=parseFloat(r.min);return at(u,"min",u.$isEmpty(n)||n>=t,n)},u.$parsers.push(n),u.$formatters.push(n));r.max&&(n=function(n){var t=parseFloat(r.max);return at(u,"max",u.$isEmpty(n)||n<=t,n)},u.$parsers.push(n),u.$formatters.push(n));u.$formatters.push(function(n){return at(u,"number",u.$isEmpty(n)||vr(n),n)})},url:function(n,t,i,r,u,f){iu(n,t,i,r,u,f);n=function(n){return at(r,"url",r.$isEmpty(n)||fl.test(n),n)};r.$formatters.push(n);r.$parsers.push(n)},email:function(n,t,i,r,u,f){iu(n,t,i,r,u,f);n=function(n){return at(r,"email",r.$isEmpty(n)||el.test(n),n)};r.$formatters.push(n);r.$parsers.push(n)},radio:function(n,t,i,r){l(i.name)&&t.attr("name",ar());t.on("click",function(){t[0].checked&&n.$apply(function(){r.$setViewValue(i.value)})});r.$render=function(){t[0].checked=i.value==r.$viewValue};i.$observe("value",r.$render)},checkbox:function(n,t,i,r){var u=i.ngTrueValue,f=i.ngFalseValue;e(u)||(u=!0);e(f)||(f=!1);t.on("click",function(){n.$apply(function(){r.$setViewValue(t[0].checked)})});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return n!==u};r.$formatters.push(function(n){return n===u});r.$parsers.push(function(n){return n?u:f})},hidden:s,button:s,submit:s,reset:s,file:s},sl=["badInput"],po=["$browser","$sniffer",function(n,t){return{restrict:"E",require:"?ngModel",link:function(i,r,u,f){f&&(yo[v(u.type)]||yo.text)(i,r,u,f,t,n)}}}],eu="ng-valid",ou="ng-invalid",vi="ng-pristine",su="ng-dirty",hl=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(n,t,i,u,f,e){function h(n,t){t=t?"-"+wr(t,"-"):"";e.removeClass(u,(n?ou:eu)+t);e.addClass(u,(n?eu:ou)+t)}var c,a,o;if(this.$modelValue=this.$viewValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=i.name,c=f(i.ngModel),a=c.assign,!a)throw y("ngModel")("nonassign",i.ngModel,ut(u));this.$render=s;this.$isEmpty=function(n){return l(n)||""===n||null===n||n!==n};var w=u.inheritedData("$formController")||lr,v=0,p=this.$error={};u.addClass(vi);h(!0);this.$setValidity=function(n,t){p[n]!==!t&&(t?(p[n]&&v--,v||(h(!0),this.$valid=!0,this.$invalid=!1)):(h(!1),this.$invalid=!0,this.$valid=!1,v++),p[n]=!t,h(t,n),w.$setValidity(n,t,this))};this.$setPristine=function(){this.$dirty=!1;this.$pristine=!0;e.removeClass(u,su);e.addClass(u,vi)};this.$setViewValue=function(i){this.$viewValue=i;this.$pristine&&(this.$dirty=!0,this.$pristine=!1,e.removeClass(u,vi),e.addClass(u,su),w.$setDirty());r(this.$parsers,function(n){i=n(i)});this.$modelValue!==i&&(this.$modelValue=i,a(n,i),r(this.$viewChangeListeners,function(n){try{n()}catch(i){t(i)}}))};o=this;n.$watch(function(){var t=c(n),i,r;if(o.$modelValue!==t){for(i=o.$formatters,r=i.length,o.$modelValue=t;r--;)t=i[r](t);o.$viewValue!==t&&(o.$viewValue=t,o.$render())}return t})}],cl=function(){return{require:["ngModel","^?form"],controller:hl,link:function(n,t,i,r){var u=r[0],f=r[1]||lr;f.$addControl(u);n.$on("$destroy",function(){f.$removeControl(u)})}}},ll=nt({require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}}),wo=function(){return{require:"?ngModel",link:function(n,t,i,r){if(r){i.required=!0;var u=function(n){if(i.required&&r.$isEmpty(n))r.$setValidity("required",!1);else return r.$setValidity("required",!0),n};r.$formatters.push(u);r.$parsers.unshift(u);i.$observe("required",function(){u(r.$viewValue)})}}}},al=function(){return{require:"ngModel",link:function(n,t,u,f){var e=(n=/\/(.*)\//.exec(u.ngList))&&RegExp(n[1])||u.ngList||",";f.$parsers.push(function(n){if(!l(n)){var t=[];return n&&r(n.split(e),function(n){n&&t.push(g(n))}),t}});f.$formatters.push(function(n){return o(n)?n.join(", "):i});f.$isEmpty=function(n){return!n||!n.length}}}},vl=/^(true|false|\d+)$/,yl=function(){return{priority:100,compile:function(n,t){return vl.test(t.ngValue)?function(n,t,i){i.$set("value",n.$eval(i.ngValue))}:function(n,t,i){n.$watch(i.ngValue,function(n){i.$set("value",n)})}}}},pl=bt({compile:function(n){return n.addClass("ng-binding"),function(n,t,r){t.data("$binding",r.ngBind);n.$watch(r.ngBind,function(n){t.text(n==i?"":n)})}}}),wl=["$interpolate",function(n){return function(t,i,r){t=n(i.attr(r.$attr.ngBindTemplate));i.addClass("ng-binding").data("$binding",t);r.$observe("ngBindTemplate",function(n){i.text(n)})}}],bl=["$sce","$parse",function(n,t){return{compile:function(i){return i.addClass("ng-binding"),function(i,r,u){r.data("$binding",u.ngBindHtml);var f=t(u.ngBindHtml);i.$watch(function(){return(f(i)||"").toString()},function(){r.html(n.getTrustedHtml(f(i))||"")})}}}}],kl=ff("",!0),dl=ff("Odd",0),gl=ff("Even",1),na=bt({compile:function(n,t){t.$set("ngCloak",i);n.removeClass("ng-cloak")}}),ta=[function(){return{scope:!0,controller:"@",priority:500}}],bo={},ia={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=ct("ng-"+n);bo[t]=["$parse","$rootScope",function(i,r){return{compile:function(u,f){var e=i(f[t]);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};ia[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var ra=["$animate",function(n){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,o,s;i.$watch(u.ngIf,function(f){ki(f)?o||(o=i.$new(),e(o,function(i){i[i.length++]=t.createComment(" end ngIf: "+u.ngIf+" ");h={clone:i};n.enter(i,r.parent(),r)})):(s&&(s.remove(),s=null),o&&(o.$destroy(),o=null),h&&(s=au(h.clone),n.leave(s,function(){s=null}),h=null))})}}}],ua=["$http","$templateCache","$anchorScroll","$animate","$sce",function(n,t,i,r,u){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:rr.noop,compile:function(e,o){var h=o.ngInclude||o.src,c=o.onload||"",s=o.autoscroll;return function(e,o,l,a,v){var b=0,y,p,w,k=function(){p&&(p.remove(),p=null);y&&(y.$destroy(),y=null);w&&(r.leave(w,function(){p=null}),p=w,w=null)};e.$watch(u.parseAsResourceUrl(h),function(u){var l=function(){f(s)&&(!s||e.$eval(s))&&i()},h=++b;u?(n.get(u,{cache:t}).success(function(n){if(h===b){var t=e.$new();a.template=n;n=v(t,function(n){k();r.enter(n,null,o,l)});y=t;w=n;y.$emit("$includeContentLoaded");e.$eval(c)}}).error(function(){h===b&&k()}),e.$emit("$includeContentRequested")):(k(),a.template=null)})}}}}],fa=["$compile",function(n){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,i,r,u){i.html(u.template);n(i.contents())(t)}}}],ea=bt({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),oa=bt({terminal:!0,priority:1e3}),sa=["$locale","$interpolate",function(n,t){var i=/{}/g;return{restrict:"EA",link:function(u,f,e){var s=e.count,l=e.$attr.when&&f.attr(e.$attr.when),h=e.offset||0,o=u.$eval(l)||{},c={},a=t.startSymbol(),y=t.endSymbol(),p=/^when(Minus)?(.+)$/;r(e,function(n,t){p.test(t)&&(o[v(t.replace("when","").replace("Minus","-"))]=f.attr(e.$attr[t]))});r(o,function(n,r){c[r]=t(n.replace(i,a+s+"-"+h+y))});u.$watch(function(){var t=parseFloat(u.$eval(s));return isNaN(t)?"":(t in o||(t=n.pluralCat(t-h)),c[t](u,f,!0))},function(n){f.text(n)})}}}],ha=["$parse","$animate",function(n,i){var f=y("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(e,o,s,h,c){var y=s.ngRepeat,l=y.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),k,w,d,g,b,v,p={$id:hi},a;if(!l)throw f("iexp",y);if(s=l[1],h=l[2],(l=l[3])?(k=n(l),w=function(n,t,i){return v&&(p[v]=n),p[b]=t,p.$index=i,k(e,p)}):(d=function(n,t){return hi(t)},g=function(n){return n}),l=s.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!l)throw f("iidexp",s);b=l[3]||l[1];v=l[2];a={};e.$watchCollection(h,function(n){var s,ft,it=o[0],l,rt={},ot,p,k,ut,et,nt,h,tt=[];if(yi(n))nt=n,et=w||d;else{et=w||g;nt=[];for(k in n)n.hasOwnProperty(k)&&"$"!=k.charAt(0)&&nt.push(k);nt.sort()}for(ot=nt.length,ft=tt.length=nt.length,s=0;s<ft;s++)if(k=n===nt?s:nt[s],ut=n[k],l=et(k,ut,s),ti(l,"`track by` id"),a.hasOwnProperty(l))h=a[l],delete a[l],rt[l]=h,tt[s]=h;else{if(rt.hasOwnProperty(l))throw r(tt,function(n){n&&n.scope&&(a[n.id]=n)}),f("dupes",y,l,st(ut));tt[s]={id:l};rt[l]=!1}for(k in a)a.hasOwnProperty(k)&&(h=a[k],s=au(h.clone),i.leave(s),r(s,function(n){n.$$NG_REMOVED=!0}),h.scope.$destroy());for(s=0,ft=nt.length;s<ft;s++){if(k=n===nt?s:nt[s],ut=n[k],h=tt[s],tt[s-1]&&(it=tt[s-1].clone[tt[s-1].clone.length-1]),h.scope){p=h.scope;l=it;do l=l.nextSibling;while(l&&l.$$NG_REMOVED);h.clone[0]!=l&&i.move(au(h.clone),null,u(it));it=h.clone[h.clone.length-1]}else p=e.$new();p[b]=ut;v&&(p[v]=k);p.$index=s;p.$first=0===s;p.$last=s===ot-1;p.$middle=!(p.$first||p.$last);p.$odd=!(p.$even=0==(s&1));h.scope||c(p,function(n){n[n.length++]=t.createComment(" end ngRepeat: "+y+" ");i.enter(n,null,u(it));it=n;h.scope=p;h.clone=n;rt[h.id]=h})}a=rt})}}}],ca=["$animate",function(n){return function(t,i,r){t.$watch(r.ngShow,function(t){n[ki(t)?"removeClass":"addClass"](i,"ng-hide")})}}],la=["$animate",function(n){return function(t,i,r){t.$watch(r.ngHide,function(t){n[ki(t)?"addClass":"removeClass"](i,"ng-hide")})}}],aa=bt(function(n,t,i){n.$watch(i.ngStyle,function(n,i){i&&n!==i&&r(i,function(n,i){t.css(i,"")});n&&t.css(n)},!0)}),va=["$animate",function(n){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,i,u,f){var h=[],s=[],e=[],o=[];t.$watch(u.ngSwitch||u.on,function(i){for(var a,c=0,l=e.length;c<l;++c)e[c].remove();for(c=e.length=0,l=o.length;c<l;++c)a=s[c],o[c].$destroy(),e[c]=a,n.leave(a,function(){e.splice(c,1)});s.length=0;o.length=0;(h=f.cases["!"+i]||f.cases["?"])&&(t.$eval(u.change),r(h,function(i){var r=t.$new();o.push(r);i.transclude(r,function(t){var r=i.element;s.push(t);n.enter(t,r.parent(),r)})}))})}}}],ya=bt({transclude:"element",priority:800,require:"^ngSwitch",link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),pa=bt({transclude:"element",priority:800,require:"^ngSwitch",link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),wa=bt({link:function(n,t,i,r,u){if(!u)throw y("ngTransclude")("orphan",ut(t));u(function(n){t.empty();t.append(n)})}}),ba=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){"text/ng-template"==i.type&&n.put(i.id,t[0].text)}}}],ka=y("ngOptions"),da=nt({terminal:!0}),ga=["$compile","$parse",function(n,e){var h=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,c={$setViewValue:s};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(n,t,i){var r=this,f={},e=c,u;r.databound=i.ngModel;r.init=function(n,t,i){e=n;u=i};r.addOption=function(t){ti(t,'"option value"');f[t]=!0;e.$viewValue==t&&(n.val(t),u.parent()&&u.remove())};r.removeOption=function(n){this.hasOption(n)&&(delete f[n],e.$viewValue==n&&this.renderUnknownOption(n))};r.renderUnknownOption=function(t){t="? "+hi(t)+" ?";u.val(t);n.prepend(u);n.val(t);u.prop("selected",!0)};r.hasOption=function(n){return f.hasOwnProperty(n)};t.$on("$destroy",function(){r.renderUnknownOption=s})}],link:function(s,c,a,v){function ft(n,t,i,r){i.$render=function(){var n=i.$viewValue;r.hasOption(n)?(k.parent()&&k.remove(),t.val(n),""===n&&nt.prop("selected",!0)):l(n)&&nt?t.val(""):r.renderUnknownOption(n)};t.on("change",function(){n.$apply(function(){k.parent()&&k.remove();i.$setViewValue(t.val())})})}function et(n,t,i){var u;i.$render=function(){var n=new nr(i.$viewValue);r(t.find("option"),function(t){t.selected=f(n.get(t.value))})};n.$watch(function(){gt(u,i.$viewValue)||(u=rt(i.$viewValue),i.$render())});t.on("change",function(){n.$apply(function(){var n=[];r(t.find("option"),function(t){t.selected&&n.push(t.value)});i.$setViewValue(n)})})}function ot(t,r,u){function k(){var ot={"":[]},ct=[""],n,h,g,ut,i,et,ht,c,e,k,ft;if(g=u.$modelValue,ut=nt(t)||[],et=a?af(ut):ut,c={},e=!1,w)if(h=u.$modelValue,s&&o(h))for(e=new nr([]),n={},i=0;i<h.length;i++)n[l]=h[i],e.put(s(t,n),h[i]);else e=new nr(h);for(i=e,e=0;ht=et.length,e<ht;e++){if(h=e,a){if(h=et[e],"$"===h.charAt(0))continue;c[a]=h}c[l]=ut[h];n=rt(t,c)||"";(h=ot[n])||(h=ot[n]=[],ct.push(n));w?n=f(i.remove(s?s(t,c):d(t,c))):(s?(n={},n[l]=g,n=s(t,n)===s(t,c)):n=g===d(t,c),i=i||n);k=it(t,c);k=f(k)?k:"";h.push({id:s?s(t,c):a?et[e]:e,label:k,selected:n})}for(w||(y||null===g?ot[""].unshift({id:"",label:"",selected:!i}):i||ot[""].unshift({id:"?",label:"",selected:!0})),c=0,et=ct.length;c<et;c++){for(n=ct[c],h=ot[n],v.length<=c?(g={element:st.clone().attr("label",n),label:h.label},ut=[g],v.push(ut),r.append(g.element)):(ut=v[c],g=ut[0],g.label!=n&&g.element.attr("label",g.label=n)),k=null,e=0,ht=h.length;e<ht;e++)n=h[e],(i=ut[e+1])?(k=i.element,i.label!==n.label&&k.text(i.label=n.label),i.id!==n.id&&k.val(i.id=n.id),k[0].selected!==n.selected&&(k.prop("selected",i.selected=n.selected),p&&k.prop("selected",i.selected))):(""===n.id&&y?ft=y:(ft=tt.clone()).val(n.id).prop("selected",n.selected).attr("selected",n.selected).text(n.label),ut.push({element:ft,label:n.label,id:n.id,selected:n.selected}),b.addOption(n.label,ft),k?k.after(ft):g.element.append(ft),k=ft);for(e++;ut.length>e;)n=ut.pop(),b.removeOption(n.label),n.element.remove()}for(;v.length>c;)v.pop()[0].element.remove()}var c;if(!(c=g.match(h)))throw ka("iexp",g,ut(r));var it=e(c[2]||c[1]),l=c[4]||c[6],a=c[5],rt=e(c[3]||""),d=e(c[2]?c[1]:l),nt=e(c[7]),s=c[8]?e(c[8]):null,v=[[{element:r,label:""}]];y&&(n(y)(t),y.removeClass("ng-scope"),y.remove());r.empty();r.on("change",function(){t.$apply(function(){var p,h=nt(t)||[],f={},n,o,c,y,b,g,e;if(w){for(o=[],y=0,g=v.length;y<g;y++)for(p=v[y],c=1,b=p.length;c<b;c++)if((n=p[c].element)[0].selected){if(n=n.val(),a&&(f[a]=n),s)for(e=0;e<h.length&&(f[l]=h[e],s(t,f)!=n);e++);else f[l]=h[n];o.push(d(t,f))}}else if(n=r.val(),"?"==n)o=i;else if(""===n)o=null;else if(s){for(e=0;e<h.length;e++)if(f[l]=h[e],s(t,f)==n){o=d(t,f);break}}else f[l]=h[n],a&&(f[a]=n),o=d(t,f);u.$setViewValue(o);k()})});u.$render=k;t.$watchCollection(nt,k);t.$watchCollection(function(){var r={},n=nt(t);if(n){for(var u=Array(n.length),i=0,f=n.length;i<f;i++)r[l]=n[i],u[i]=it(t,r);return u}},k);w&&t.$watchCollection(function(){return u.$modelValue},k)}var b,d,it;if(v[1]){b=v[0];v=v[1];var w=a.multiple,g=a.ngOptions,y=!1,nt,tt=u(t.createElement("option")),st=u(t.createElement("optgroup")),k=tt.clone();for(a=0,d=c.children(),it=d.length;a<it;a++)if(""===d[a].value){nt=y=d.eq(a);break}b.init(v,y,k);w&&(v.$isEmpty=function(n){return!n||0===n.length});g?ot(s,c,v):w?et(s,c,v):ft(s,c,v,b)}}}}],nv=["$interpolate",function(n){var t={addOption:s,removeOption:s};return{restrict:"E",priority:100,compile:function(i,r){if(l(r.value)){var u=n(i.text(),!0);u||r.$set("value",i.text())}return function(n,i,r){var e=i.parent(),f=e.data("$selectController")||e.parent().data("$selectController");f&&f.databound?i.prop("selected",!1):f=t;u?n.$watch(u,function(n,t){r.$set("value",n);n!==t&&f.removeOption(t);f.addOption(n)}):f.addOption(r.value);i.on("$destroy",function(){f.removeOption(r.value)})}}}}],tv=nt({restrict:"E",terminal:!0});n.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):((ii=n.jQuery)&&ii.fn.on?(u=ii,c(ii.fn,{scope:fi.scope,isolateScope:fi.isolateScope,controller:fi.controller,injector:fi.injector,inheritedData:fi.inheritedData}),vu("remove",!0,!0,!1),vu("empty",!1,!1,!1),vu("html",!1,!1,!0)):u=w,rr.element=u,us(rr),u(t).ready(function(){is(t,df)}))}(window,document);window.angular.$$csp()||window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}<\/style>'),function(){var t="angularUtils.directives.dirPagination",n;try{n=angular.module(t)}catch(i){n=angular.module(t,[])}n.directive("dirPaginate",["$compile","$parse","$timeout","paginationService",function(n,t,i,r){return{terminal:!0,multiElement:!0,priority:5e3,compile:function(i,u){i[0].hasAttribute("dir-paginate-start")||i[0].hasAttribute("data-dir-paginate-start")?(u.$set("ngRepeatStart",u.dirPaginate),i.eq(i.length-1).attr("ng-repeat-end",!0)):u.$set("ngRepeat",u.dirPaginate);var s=u.dirPaginate,e=s.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),o=/\|\s*itemsPerPage\s*:[^|]*/;if(e[2].match(o)===null)throw"pagination directive: the 'itemsPerPage' filter must be set.";var h=e[2].replace(o,""),c=t(h),f=u.paginationId||"__default";return r.registerInstance(f),function(i,u,e){var h=n(u,!1,5e3),o,s;e.currentPage?o=t(e.currentPage):(s=f+"__currentPage",i[s]=1,o=t(s));r.setCurrentPageParser(f,o,i);typeof e.totalItems!="undefined"?(r.setAsyncModeTrue(f),i.$watch(function(){return t(e.totalItems)(i)},function(n){0<=n&&r.setCollectionLength(f,n)})):i.$watchCollection(function(){return c(i)},function(n){n&&r.setCollectionLength(f,n.length)});h(i)}}}}]);n.directive("dirPaginationControls",["paginationService","paginationTemplate",function(n,t){function i(n,t,i,r){var s=[],o=Math.ceil(t/i),h=Math.ceil(r/2),e,c,f;for(e=n<=h?"start":o-h<n?"end":"middle",c=r<o,f=1;f<=o&&f<=r;){var l=u(f,n,r,o),a=f===2&&(e==="middle"||e==="end"),v=f===r-1&&(e==="middle"||e==="start");c&&(a||v)?s.push("..."):s.push(l);f++}return s}function u(n,t,i,r){var u=Math.ceil(i/2);return n===i?r:n===1?n:i<r?r-u<t?r-i+n:u<t?t-u+n:n:n}var r=/^\d+$/;return{restrict:"AE",templateUrl:function(n,i){return i.templateUrl||t.getPath()},scope:{maxSize:"=?",onPageChange:"&?"},link:function(t,u,f){function h(r){if(c(r)&&(t.pages=i(r,n.getCollectionLength(e),n.getItemsPerPage(e),o),t.pagination.current=r,t.onPageChange))t.onPageChange({newPageNumber:r})}function l(){var r=parseInt(n.getCurrentPage(e),10)||1;t.pages=i(r,n.getCollectionLength(e),n.getItemsPerPage(e),o);t.pagination.current=r;t.pagination.last=t.pages[t.pages.length-1];t.pagination.last<t.pagination.current&&t.setCurrent(t.pagination.last)}function c(n){return r.test(n)&&0<n&&n<=t.pagination.last}var e,s,o;if(e=f.paginationId||"__default",t.maxSize||(t.maxSize=9),t.directionLinks=angular.isDefined(f.directionLinks)?t.$parent.$eval(f.directionLinks):!0,t.boundaryLinks=angular.isDefined(f.boundaryLinks)?t.$parent.$eval(f.boundaryLinks):!1,!n.isRegistered(e)){s=e!=="__default"?" (id: "+e+") ":" ";throw"pagination directive: the pagination controls"+s+"cannot be used without the corresponding pagination directive.";}o=Math.max(t.maxSize,5);t.pages=[];t.pagination={last:1,current:1};t.$watch(function(){return(n.getCollectionLength(e)+1)*n.getItemsPerPage(e)},function(n){0<n&&l()});t.$watch(function(){return n.getItemsPerPage(e)},function(n,i){n!=i&&h(t.pagination.current)});t.$watch(function(){return n.getCurrentPage(e)},function(n,t){n!=t&&h(n)});t.setCurrent=function(t){c(t)&&n.setCurrentPage(e,t)}}}}]);n.filter("itemsPerPage",["paginationService",function(n){return function(t,i,r){if(typeof r=="undefined"&&(r="__default"),!n.isRegistered(r))throw"pagination directive: the itemsPerPage id argument (id: "+r+") does not match a registered pagination-id.";var f,u;return t instanceof Array?(i=parseInt(i,10)||9999999999,u=n.isAsyncMode(r)?0:(n.getCurrentPage(r)-1)*i,f=u+i,n.setItemsPerPage(r,i),t.slice(u,f)):t}}]);n.service("paginationService",function(){var n={},t;this.registerInstance=function(i){typeof n[i]=="undefined"&&(n[i]={asyncMode:!1},t=i)};this.isRegistered=function(t){return typeof n[t]!="undefined"};this.getLastInstanceId=function(){return t};this.setCurrentPageParser=function(t,i,r){n[t].currentPageParser=i;n[t].context=r};this.setCurrentPage=function(t,i){n[t].currentPageParser.assign(n[t].context,i)};this.getCurrentPage=function(t){var i=n[t].currentPageParser;return i?i(n[t].context):1};this.setItemsPerPage=function(t,i){n[t].itemsPerPage=i};this.getItemsPerPage=function(t){return n[t].itemsPerPage};this.setCollectionLength=function(t,i){n[t].collectionLength=i};this.getCollectionLength=function(t){return n[t].collectionLength};this.setAsyncModeTrue=function(t){n[t].asyncMode=!0};this.isAsyncMode=function(t){return n[t].asyncMode}});n.provider("paginationTemplate",function(){var n="/VendorJS/pagination/dirPagination.tpl.html";this.setPath=function(t){n=t};this.$get=function(){return{getPath:function(){return n}}}})}(),function(){function s(n,t,i){i=(i||0)-1;for(var r=n?n.length:0;++i<r;)if(n[i]===t)return i;return-1}function d(n,t){var i=typeof t,r;return(n=n.l,"boolean"==i||null==t)?n[t]?0:-1:("number"!=i&&"string"!=i&&(i="object"),r="number"==i?t:st+t,n=(n=n[i])&&n[r],"object"==i?n&&-1<s(n,t)?0:-1:n?0:-1)}function bt(n){var i=this.l,t=typeof n,r;"boolean"==t||null==n?i[n]=!0:("number"!=t&&"string"!=t&&(t="object"),r="number"==t?n:st+n,i=i[t]||(i[t]={}),"object"==t?(i[r]||(i[r]=[])).push(n):i[r]=!0)}function ct(n){return n.charCodeAt(0)}function kt(n,t){for(var i,r,f=n.m,e=t.m,u=-1,o=f.length;++u<o;)if(i=f[u],r=e[u],i!==r){if(i>r||typeof i=="undefined")return 1;if(i<r||typeof r=="undefined")return-1}return n.n-t.n}function rt(n){var u=-1,r=n.length,t=n[0],i=n[r/2|0],f=n[r-1];if(t&&typeof t=="object"&&i&&typeof i=="object"&&f&&typeof f=="object")return!1;for(t=ut(),t["false"]=t["null"]=t["true"]=t.undefined=!1,i=ut(),i.k=n,i.l=t,i.push=bt;++u<r;)i.push(n[u]);return i}function dt(n){return"\\"+hi[n]}function r(){return et.pop()||[]}function ut(){return ot.pop()||{k:null,l:null,m:null,"false":!1,n:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,o:null}}function i(n){n.length=0;et.length<lt&&et.push(n)}function a(n){var t=n.l;t&&a(t);n.k=n.l=n.m=n.object=n.number=n.string=n.o=null;ot.length<lt&&ot.push(n)}function n(n,t,i){var r,u;for(t||(t=0),typeof i=="undefined"&&(i=n?n.length:0),r=-1,i=i-t||0,u=Array(0>i?0:i);++r<i;)u[r]=n[t+r];return u}function ft(l){function it(n,i,r){if(!n||!t[typeof n])return n;i=i&&typeof r=="undefined"?i:ai(i,r,3);for(var f=-1,u=t[typeof n]&&li(n),e=u?u.length:0;++f<e&&(r=u[f],!1!==i(n[r],r,n)););return n}function wi(n,i,r){var u;if(!n||!t[typeof n])return n;i=i&&typeof r=="undefined"?i:ai(i,r,3);for(u in n)if(!1===i(n[u],u,n))break;return n}function ou(n,i,r){var f,u=n,e=u;if(!u)return e;for(var s=arguments,h=0,l=typeof r=="number"?2:s.length;++h<l;)if((u=s[h])&&t[typeof u])for(var c=-1,o=t[typeof u]&&li(u),a=o?o.length:0;++c<a;)f=o[c],"undefined"==typeof e[f]&&(e[f]=u[f]);return e}function kr(n,i,r){var o,u=n,s=u,h;if(!u)return s;var e=arguments,l=0,f=typeof r=="number"?2:e.length;for(3<f&&"function"==typeof e[f-2]?h=ai(e[--f-1],e[f--],2):2<f&&"function"==typeof e[f-1]&&(h=e[--f]);++l<f;)if((u=e[l])&&t[typeof u])for(var a=-1,c=t[typeof u]&&li(u),v=c?c.length:0;++a<v;)o=c[a],s[o]=h?h(s[o],u[o]):u[o];return s}function le(n){var i,r=[];if(!n||!t[typeof n])return r;for(i in n)ci.call(n,i)&&r.push(i);return r}function tt(n){return n&&typeof n=="object"&&!ot(n)&&ci.call(n,"__wrapped__")?n:new tr(n)}function tr(n,t){this.__chain__=!!t;this.__wrapped__=n}function ae(t){function i(){var e,t;return(u&&(t=n(u),pr.apply(t,arguments)),this instanceof i)?(e=sr(r.prototype),t=r.apply(e,t||arguments),lt(t)?t:e):r.apply(f,t||arguments)}var r=t[0],u=t[2],f=t[4];return nf(i,t),i}function su(t,f,e,o,s){var c,l,a,y,v;if(e&&(c=e(t),typeof c!="undefined"))return c;if(!lt(t)||(l=hi.call(t),!u[l]))return t;a=ki[l];switch(l){case p:case w:return new a(+t);case b:case h:return new a(t);case k:return c=a(t.source,ui.exec(t)),c.lastIndex=t.lastIndex,c}if(l=ot(t),f){for(y=!o,o||(o=r()),s||(s=r()),v=o.length;v--;)if(o[v]==t)return s[v];c=l?a(t.length):{}}else c=l?n(t):kr({},t);return l&&(ci.call(t,"index")&&(c.index=t.index),ci.call(t,"input")&&(c.input=t.input)),f?(o.push(t),s.push(c),(l?bt:it)(t,function(n,t){c[t]=su(n,f,e,o,s)}),y&&(i(o),i(s)),c):c}function sr(n){return lt(n)?fu(n):{}}function ai(n,t,i){var r,u;if(typeof n!="function")return wu;if(typeof t=="undefined"||!("prototype"in n)||(r=n.__bindData__,typeof r!="undefined"||(or.funcNames&&(r=!n.name),r=r||!or.funcDecomp,r)||(u=no.call(n),or.funcNames||(r=!fi.test(u)),r||(r=yt.test(u),nf(n,r))),!1===r||!0!==r&&1&r[1]))return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return te(n,t)}function ff(t){function u(){var y=c?o:this,t;return e&&(t=n(e),pr.apply(t,arguments)),(f||h)&&(t||(t=n(arguments)),f&&pr.apply(t,f),h&&t.length<s)?(i|=16,ff([r,a?i:-4&i,t,null,o,s])):(t||(t=arguments),l&&(r=y[v]),this instanceof u?(y=sr(r.prototype),t=r.apply(y,t),lt(t)?t:y):r.apply(y,t))}var r=t[0],i=t[1],e=t[2],f=t[3],o=t[4],s=t[5],c=1&i,l=2&i,h=4&i,a=8&i,v=r;return nf(u,t),u}function hr(n,t){var f=-1,r=dr(),e=n?n.length:0,u=e>=ht&&r===s,o=[],i;for(u&&(i=rt(t),i?(r=d,t=i):u=!1);++f<e;)i=n[f],0>r(t,i)&&o.push(i);return u&&a(t),o}function di(n,t,i,r){var e,f,u;for(r=(r||0)-1,e=n?n.length:0,f=[];++r<e;)if(u=n[r],u&&typeof u=="object"&&typeof u.length=="number"&&(ot(u)||gr(u))){t||(u=di(u,t,i));var o=-1,s=u.length,h=f.length;for(f.length+=s;++o<s;)f[h++]=u[o]}else i||f.push(u);return f}function rr(n,u,f,e,s,c){var a,g,l,tt,nt,d;if(f&&(d=f(n,u),typeof d!="undefined"))return!!d;if(n===u)return 0!==n||1/n==1/u;if(n===n&&!(n&&t[typeof n]||u&&t[typeof u]))return!1;if(null==n||null==u)return n===u;if(a=hi.call(n),g=hi.call(u),a==v&&(a=o),g==v&&(g=o),a!=g)return!1;switch(a){case p:case w:return+n==+u;case b:return n!=+n?u!=+u:0==n?1/n==1/u:n==+u;case k:case h:return n==nr(u)}if(g=a==y,!g){if(l=ci.call(n,"__wrapped__"),tt=ci.call(u,"__wrapped__"),l||tt)return rr(l?n.__wrapped__:n,tt?u.__wrapped__:u,f,e,s,c);if(a!=o||(a=n.constructor,l=u.constructor,a!=l&&!(et(a)&&a instanceof a&&et(l)&&l instanceof l)&&"constructor"in n&&"constructor"in u))return!1}for(a=!s,s||(s=r()),c||(c=r()),l=s.length;l--;)if(s[l]==n)return c[l]==u;if(nt=0,d=!0,s.push(n),c.push(u),g){if(l=n.length,nt=u.length,(d=nt==l)||e)for(;nt--;)if(g=l,tt=u[nt],e)for(;g--&&!(d=rr(n[g],tt,f,e,s,c)););else if(!(d=rr(n[nt],tt,f,e,s,c)))break}else wi(u,function(t,i,r){if(ci.call(r,i))return(nt++,d=ci.call(n,i)&&rr(n[i],t,f,e,s,c))}),d&&!e&&wi(n,function(n,t,i){if(ci.call(i,t))return d=-1<--nt});return s.pop(),c.pop(),a&&(i(s),i(c)),d}function ef(n,t,i,r,u){(ot(t)?bt:it)(t,function(t,f){var h,c,o=t,e=n[f],s;if(t&&((c=ot(t))||rf(t))){for(o=r.length;o--;)if(h=r[o]==t){e=u[o];break}h||(i&&(o=i(e,t),s=typeof o!="undefined")&&(e=o),s||(e=c?ot(e)?e:[]:rf(e)?e:{}),r.push(t),u.push(e),s||ef(e,t,i,r,u))}else i&&(o=i(e,t),typeof o=="undefined"&&(o=t)),typeof o!="undefined"&&(e=o);n[f]=e})}function hu(n,t){return n+ge(he()*(t-n+1))}function cu(n,t,u){var e=-1,l=dr(),y=n?n.length:0,v=[],o=!t&&y>=ht&&l===s,f=u||o?r():v,h,c;for(o&&(f=rt(f),l=d);++e<y;)h=n[e],c=u?u(h,e,n):h,(t?!e||f[f.length-1]!==c:0>l(f,c))&&((u||o)&&f.push(c),v.push(h));return o?(i(f.k),a(f)):u&&i(f),v}function lu(n){return function(t,i,r){var u={},f,e;if(i=tt.createCallback(i,r,3),r=-1,f=t?t.length:0,typeof f=="number")for(;++r<f;)e=t[r],n(u,e,i(e,r,t),t);else it(t,function(t,r,f){n(u,t,i(t,r,f),f)});return u}}function pi(t,i,r,u,f,e){var c=1&i,l=4&i,s=16&i,h=32&i,o;if(!(2&i||et(t)))throw new bi;return s&&!r.length&&(i&=-17,s=r=!1),h&&!u.length&&(i&=-33,h=u=!1),o=t&&t.__bindData__,o&&!0!==o?(o=n(o),o[2]&&(o[2]=n(o[2])),o[3]&&(o[3]=n(o[3])),!c||1&o[1]||(o[4]=f),!c&&1&o[1]&&(i|=8),!l||4&o[1]||(o[5]=e),s&&pr.apply(o[2]||(o[2]=[]),r),h&&to.apply(o[3]||(o[3]=[]),u),o[1]|=i,pi.apply(null,o)):(1==i||17===i?ae:ff)([t,i,r,u,f,e])}function ve(n){return tf[n]}function dr(){var n=(n=tt.indexOf)===bf?s:n;return n}function gi(n){return typeof n=="function"&&ke.test(n)}function of(n){var t,i;return n&&hi.call(n)==o&&(t=n.constructor,!et(t)||t instanceof t)?(wi(n,function(n,t){i=t}),typeof i=="undefined"||ci.call(n,i)):!1}function ye(n){return ce[n]}function gr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&hi.call(n)==v||!1}function sf(n,t,i){var r=li(n),u=r.length;for(t=ai(t,i,3);u--&&(i=r[u],!1!==t(n[i],i,n)););return n}function cr(n){var t=[];return wi(n,function(n,i){et(n)&&t.push(i)}),t.sort()}function hf(n){for(var t,i=-1,r=li(n),f=r.length,u={};++i<f;)t=r[i],u[n[t]]=t;return u}function et(n){return typeof n=="function"}function lt(n){return!(!n||!t[typeof n])}function cf(n){return typeof n=="number"||n&&typeof n=="object"&&hi.call(n)==b||!1}function lr(n){return typeof n=="string"||n&&typeof n=="object"&&hi.call(n)==h||!1}function nu(n){for(var t=-1,i=li(n),r=i.length,u=vi(r);++t<r;)u[t]=n[i[t]];return u}function lf(n,t,i){var e=-1,u=dr(),f=n?n.length:0,r=!1;return i=(0>i?yi(0,f+i):i)||0,ot(n)?r=-1<u(n,t,i):typeof f=="number"?r=-1<(lr(n)?n.indexOf(t,i):u(n,t,i)):it(n,function(n){if(!(++e<i))return!(r=n===t)}),r}function af(n,t,i){var r=!0,u;if(t=tt.createCallback(t,i,3),i=-1,u=n?n.length:0,typeof u=="number")for(;++i<u&&(r=!!t(n[i],i,n)););else it(n,function(n,i,u){return r=!!t(n,i,u)});return r}function tu(n,t,i){var r=[],u,f;if(t=tt.createCallback(t,i,3),i=-1,u=n?n.length:0,typeof u=="number")for(;++i<u;)f=n[i],t(f,i,n)&&r.push(f);else it(n,function(n,i,u){t(n,i,u)&&r.push(n)});return r}function au(n,t,i){var r,f,u;if(t=tt.createCallback(t,i,3),i=-1,r=n?n.length:0,typeof r!="number")return it(n,function(n,i,r){if(t(n,i,r))return(f=n,!1)}),f;for(;++i<r;)if(u=n[i],t(u,i,n))return u}function bt(n,t,i){var r=-1,u=n?n.length:0;if(t=t&&typeof i=="undefined"?t:ai(t,i,3),typeof u=="number")for(;++r<u&&!1!==t(n[r],r,n););else it(n,t);return n}function iu(n,t,i){var r=n?n.length:0,u;if(t=t&&typeof i=="undefined"?t:ai(t,i,3),typeof r=="number")for(;r--&&!1!==t(n[r],r,n););else u=li(n),r=u.length,it(n,function(n,i,f){return i=u?u[--r]:--r,t(f[i],i,f)});return n}function ar(n,t,i){var r=-1,f=n?n.length:0,u;if(t=tt.createCallback(t,i,3),typeof f=="number")for(u=vi(f);++r<f;)u[r]=t(n[r],r,n);else u=[],it(n,function(n,i,f){u[++r]=t(n,i,f)});return u}function vf(n,t,i){var u=-1/0,r=u,e,f;if(typeof t!="function"&&i&&i[t]===n&&(t=null),null==t&&ot(n))for(i=-1,e=n.length;++i<e;)f=n[i],f>r&&(r=f);else t=null==t&&lr(n)?ct:tt.createCallback(t,i,3),bt(n,function(n,i,f){i=t(n,i,f);i>u&&(u=i,r=n)});return r}function vu(n,t,i,r){var f,u,e;if(!n)return i;if(f=3>arguments.length,t=tt.createCallback(t,r,4),u=-1,e=n.length,typeof e=="number")for(f&&(i=n[++u]);++u<e;)i=t(i,n[u],u,n);else it(n,function(n,r,u){i=f?(f=!1,n):t(i,n,r,u)});return i}function yf(n,t,i,r){var u=3>arguments.length;return t=tt.createCallback(t,r,4),iu(n,function(n,r,f){i=u?(u=!1,n):t(i,n,r,f)}),i}function pf(n){var i=-1,r=n?n.length:0,t=vi(typeof r=="number"?r:0);return bt(n,function(n){var r=hu(0,++i);t[i]=t[r];t[r]=n}),t}function wf(n,t,i){var r,u;if(t=tt.createCallback(t,i,3),i=-1,u=n?n.length:0,typeof u=="number")for(;++i<u&&!(r=t(n[i],i,n)););else it(n,function(n,i,u){return!(r=t(n,i,u))});return!!r}function yu(t,i,r){var u=0,o=t?t.length:0,f;if(typeof i!="number"&&null!=i)for(f=-1,i=tt.createCallback(i,r,3);++f<o&&i(t[f],f,t);)u++;else if(u=i,null==u||r)return t?t[0]:e;return n(t,0,br(yi(0,u),o))}function bf(n,t,i){if(typeof i=="number"){var r=n?n.length:0;i=0>i?yi(0,r+i):i||0}else if(i)return i=kf(n,t),n[i]===t?i:-1;return s(n,t,i)}function pu(t,i,r){if(typeof i!="number"&&null!=i){var u=0,f=-1,e=t?t.length:0;for(i=tt.createCallback(i,r,3);++f<e&&i(t[f],f,t);)u++}else u=null==i||r?1:yi(0,i);return n(t,u)}function kf(n,t,i,r){var u=0,f=n?n.length:u;for(i=i?tt.createCallback(i,r,1):wu,t=i(t);u<f;)r=u+f>>>1,i(n[r])<t?u=r+1:f=r;return u}function df(n,t,i,r){return typeof t!="boolean"&&null!=t&&(r=i,i=typeof t!="function"&&r&&r[t]===n?null:t,t=!1),null!=i&&(i=tt.createCallback(i,r,3)),cu(n,t,i)}function gf(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,i=n?vf(uf(n,"length")):0,r=vi(0>i?0:i);++t<i;)r[t]=uf(n,t);return r}function ne(n,t){var r=-1,f=n?n.length:0,u={},i;for(t||!f||ot(n[0])||(t=[]);++r<f;)i=n[r],t?u[i]=t[r]:i&&(u[i[0]]=i[1]);return u}function te(t,i){return 2<arguments.length?pi(t,17,n(arguments,2),null,i):pi(t,1,null,null,i)}function ie(n,t,i){function w(){r&&uu(r);u=r=y=e;(a||l!==t)&&(c=ir(),s=n.apply(o,f),r||u||(f=o=null))}function p(){var i=t-(ir()-h);0<i?r=wr(p,i):(u&&uu(u),i=y,u=r=y=e,i&&(c=ir(),s=n.apply(o,f),r||u||(f=o=null)))}var f,u,s,h,o,r,y,c=0,l=!1,a=!0,v;if(!et(n))throw new bi;return(t=yi(0,t)||0,!0===i)?(v=!0,a=!1):lt(i)&&(v=i.leading,l="maxWait"in i&&(yi(t,i.maxWait)||0),a="trailing"in i?i.trailing:a),function(){var b,e,i;return(f=arguments,h=ir(),o=this,y=a&&(r||!v),!1===l)?b=v&&!r:(u||v||(c=h),e=l-(h-c),i=0>=e,i?(u&&(u=uu(u)),c=h,s=n.apply(o,f)):u||(u=wr(w,e))),i&&r?r=uu(r):r||t===l||(r=wr(p,t)),b&&(i=!0,s=n.apply(o,f)),!i||r||u||(f=o=null),s}}function wu(n){return n}function bu(n,t,i){var u=!0,f=t&&cr(t),r,e;t&&(i||f.length)||(null==i&&(i=t),r=tr,t=n,n=tt,f=cr(t));!1===i?u=!1:lt(i)&&"chain"in i&&(u=i.chain);r=n;e=et(r);bt(f,function(i){var f=n[i]=t[i];e&&(r.prototype[i]=function(){var i=this.__chain__,e=this.__wrapped__,t=[e];if(pr.apply(t,arguments),t=f.apply(n,t),u||i){if(e===t&&lt(t))return this;t=new r(t);t.__chain__=i}return t})})}function re(){}function ue(n){return function(t){return t[n]}}function fe(){return this.__wrapped__}var or;l=l?f.defaults(c.Object(),l,f.pick(c,si)):c;var vi=l.Array,pe=l.Boolean,ku=l.Date,ru=l.Function,vr=l.Math,we=l.Number,ur=l.Object,yr=l.RegExp,nr=l.String,bi=l.TypeError,fr=[],ee=ur.prototype,be=l._,hi=ee.toString,ke=yr("^"+nr(hi).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),de=vr.ceil,uu=l.clearTimeout,ge=vr.floor,no=ru.prototype.toString,er=gi(er=ur.getPrototypeOf)&&er,ci=ee.hasOwnProperty,pr=fr.push,wr=l.setTimeout,oe=fr.splice,to=fr.unshift,se=function(){try{var t={},n=gi(n=ur.defineProperty)&&n,i=n(t,t,t)&&n}catch(r){}return i}(),fu=gi(fu=ur.create)&&fu,du=gi(du=vi.isArray)&&du,io=l.isFinite,ro=l.isNaN,eu=gi(eu=ur.keys)&&eu,yi=vr.max,br=vr.min,gu=l.parseInt,he=vr.random,ki={};ki[y]=vi;ki[p]=pe;ki[w]=ku;ki[pt]=ru;ki[o]=ur;ki[b]=we;ki[k]=yr;ki[h]=nr;tr.prototype=tt.prototype;or=tt.support={};or.funcDecomp=!gi(l.a)&&yt.test(ft);or.funcNames=typeof ru.name=="string";tt.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:vt,variable:"",imports:{_:tt}};fu||(sr=function(){function n(){}return function(t){if(lt(t)){n.prototype=t;var i=new n;n.prototype=null}return i||l.Object()}}());var nf=se?function(n,t){wt.value=t;se(n,"__bindData__",wt)}:re,ot=du||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&hi.call(n)==y||!1},li=eu?function(n){return lt(n)?eu(n):[]}:le,tf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ce=hf(tf),uo=yr("("+li(ce).join("|")+")","g"),fo=yr("["+li(tf).join("")+"]","g"),rf=er?function(n){if(!n||hi.call(n)!=o)return!1;var i=n.valueOf,t=gi(i)&&(t=er(i))&&er(t);return t?n==t||er(n)==t:of(n)}:of,eo=lu(function(n,t,i){ci.call(n,i)?n[i]++:n[i]=1}),oo=lu(function(n,t,i){(ci.call(n,i)?n[i]:n[i]=[]).push(t)}),so=lu(function(n,t,i){n[i]=t}),uf=ar,ir=gi(ir=ku.now)&&ir||function(){return(new ku).getTime()},ho=8==gu(at+"08")?gu:function(n,t){return gu(lr(n)?n.replace(ei,""):n,t||0)};return tt.after=function(n,t){if(!et(t))throw new bi;return function(){if(1>--n)return t.apply(this,arguments)}},tt.assign=kr,tt.at=function(n){for(var t=arguments,i=-1,r=di(t,!0,!1,1),t=t[2]&&t[2][t[1]]===n?1:r.length,u=vi(t);++i<t;)u[i]=n[r[i]];return u},tt.bind=te,tt.bindAll=function(n){for(var t,i=1<arguments.length?di(arguments,!0,!1,1):cr(n),r=-1,u=i.length;++r<u;)t=i[r],n[t]=pi(n[t],1,null,null,n);return n},tt.bindKey=function(t,i){return 2<arguments.length?pi(i,19,n(arguments,2),null,t):pi(i,3,null,null,t)},tt.chain=function(n){return n=new tr(n),n.__chain__=!0,n},tt.compact=function(n){for(var t,i=-1,u=n?n.length:0,r=[];++i<u;)t=n[i],t&&r.push(t);return r},tt.compose=function(){for(var n=arguments,t=n.length;t--;)if(!et(n[t]))throw new bi;return function(){for(var t=arguments,i=n.length;i--;)t=[n[i].apply(this,t)];return t[0]}},tt.constant=function(n){return function(){return n}},tt.countBy=eo,tt.create=function(n,t){var i=sr(n);return t?kr(i,t):i},tt.createCallback=function(n,t,i){var f=typeof n;if(null==n||"function"==f)return ai(n,t,i);if("object"!=f)return ue(n);var u=li(n),e=u[0],r=n[e];return 1!=u.length||r!==r||lt(r)?function(t){for(var i=u.length,r=!1;i--&&(r=rr(t[u[i]],n[u[i]],null,!0)););return r}:function(n){return n=n[e],r===n&&(0!==r||1/r==1/n)}},tt.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,pi(n,4,null,null,null,t)},tt.debounce=ie,tt.defaults=ou,tt.defer=function(t){if(!et(t))throw new bi;var i=n(arguments,1);return wr(function(){t.apply(e,i)},1)},tt.delay=function(t,i){if(!et(t))throw new bi;var r=n(arguments,2);return wr(function(){t.apply(e,r)},i)},tt.difference=function(n){return hr(n,di(arguments,!0,!0,1))},tt.filter=tu,tt.flatten=function(n,t,i,r){return typeof t!="boolean"&&null!=t&&(r=i,i=typeof t!="function"&&r&&r[t]===n?null:t,t=!1),null!=i&&(n=ar(n,i,r)),di(n,t)},tt.forEach=bt,tt.forEachRight=iu,tt.forIn=wi,tt.forInRight=function(n,t,i){var r=[],u;for(wi(n,function(n,t){r.push(t,n)}),u=r.length,t=ai(t,i,3);u--&&!1!==t(r[u--],r[u],n););return n},tt.forOwn=it,tt.forOwnRight=sf,tt.functions=cr,tt.groupBy=oo,tt.indexBy=so,tt.initial=function(t,i,r){var u=0,e=t?t.length:0,f;if(typeof i!="number"&&null!=i)for(f=e,i=tt.createCallback(i,r,3);f--&&i(t[f],f,t);)u++;else u=null==i||r?1:i||u;return n(t,0,br(yi(0,e-u),e))},tt.intersection=function(){for(var t,n,e=[],u=-1,o=arguments.length,f=r(),l=dr(),h=l===s,c=r();++u<o;)n=arguments[u],(ot(n)||gr(n))&&(e.push(n),f.push(h&&n.length>=ht&&rt(u?e[u]:c)));var h=e[0],v=-1,p=h?h.length:0,y=[];n:for(;++v<p;)if(t=f[0],n=h[v],0>(t?d(t,n):l(c,n))){for(u=o,(t||c).push(n);--u;)if(t=f[u],0>(t?d(t,n):l(e[u],n)))continue n;y.push(n)}for(;o--;)(t=f[o])&&a(t);return i(f),i(c),y},tt.invert=hf,tt.invoke=function(t,i){var f=n(arguments,2),e=-1,o=typeof i=="function",r=t?t.length:0,u=vi(typeof r=="number"?r:0);return bt(t,function(n){u[++e]=(o?i:n[i]).apply(n,f)}),u},tt.keys=li,tt.map=ar,tt.mapValues=function(n,t,i){var r={};return t=tt.createCallback(t,i,3),it(n,function(n,i,u){r[i]=t(n,i,u)}),r},tt.max=vf,tt.memoize=function(n,t){function i(){var r=i.cache,u=t?t.apply(this,arguments):st+arguments[0];return ci.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}if(!et(n))throw new bi;return i.cache={},i},tt.merge=function(t){var f=arguments,u=2,e;if(!lt(t))return t;("number"!=typeof f[2]&&(u=f.length),3<u&&"function"==typeof f[u-2])?e=ai(f[--u-1],f[u--],2):2<u&&"function"==typeof f[u-1]&&(e=f[--u]);for(var f=n(arguments,1,u),o=-1,s=r(),h=r();++o<u;)ef(t,f[o],e,s,h);return i(s),i(h),t},tt.min=function(n,t,i){var u=1/0,r=u,e,f;if(typeof t!="function"&&i&&i[t]===n&&(t=null),null==t&&ot(n))for(i=-1,e=n.length;++i<e;)f=n[i],f<r&&(r=f);else t=null==t&&lr(n)?ct:tt.createCallback(t,i,3),bt(n,function(n,i,f){i=t(n,i,f);i<u&&(u=i,r=n)});return r},tt.omit=function(n,t,i){var u={},r,f;if(typeof t!="function"){r=[];wi(n,function(n,t){r.push(t)});for(var r=hr(r,di(arguments,!0,!1,1)),e=-1,o=r.length;++e<o;)f=r[e],u[f]=n[f]}else t=tt.createCallback(t,i,3),wi(n,function(n,i,r){t(n,i,r)||(u[i]=n)});return u},tt.once=function(n){var i,t;if(!et(n))throw new bi;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}},tt.pairs=function(n){for(var i,t=-1,r=li(n),u=r.length,f=vi(u);++t<u;)i=r[t],f[t]=[i,n[i]];return f},tt.partial=function(t){return pi(t,16,n(arguments,1))},tt.partialRight=function(t){return pi(t,32,null,n(arguments,1))},tt.pick=function(n,t,i){var u={},r;if(typeof t!="function")for(var f=-1,e=di(arguments,!0,!1,1),o=lt(n)?e.length:0;++f<o;)r=e[f],r in n&&(u[r]=n[r]);else t=tt.createCallback(t,i,3),wi(n,function(n,i,r){t(n,i,r)&&(u[i]=n)});return u},tt.pluck=uf,tt.property=ue,tt.pull=function(n){for(var t,f,i=arguments,r=0,e=i.length,u=n?n.length:0;++r<e;)for(t=-1,f=i[r];++t<u;)n[t]===f&&(oe.call(n,t--,1),u--);return n},tt.range=function(n,t,i){var r,u;for(n=+n||0,i=typeof i=="number"?i:+i||1,null==t&&(t=n,n=0),r=-1,t=yi(0,de((t-n)/(i||1))),u=vi(t);++r<t;)u[r]=n,n+=i;return u},tt.reject=function(n,t,i){return t=tt.createCallback(t,i,3),tu(n,function(n,i,r){return!t(n,i,r)})},tt.remove=function(n,t,i){var r=-1,u=n?n.length:0,f=[];for(t=tt.createCallback(t,i,3);++r<u;)i=n[r],t(i,r,n)&&(f.push(i),oe.call(n,r--,1),u--);return f},tt.rest=pu,tt.shuffle=pf,tt.sortBy=function(n,t,u){var s=-1,o=ot(t),f=n?n.length:0,e=vi(typeof f=="number"?f:0);for(o||(t=tt.createCallback(t,u,3)),bt(n,function(n,i,u){var f=e[++s]=ut();o?f.m=ar(t,function(t){return n[t]}):(f.m=r())[0]=t(n,i,u);f.n=s;f.o=n}),f=e.length,e.sort(kt);f--;)n=e[f],e[f]=n.o,o||i(n.m),a(n);return e},tt.tap=function(n,t){return t(n),n},tt.throttle=function(n,t,i){var r=!0,u=!0;if(!et(n))throw new bi;return!1===i?r=!1:lt(i)&&(r="leading"in i?i.leading:r,u="trailing"in i?i.trailing:u),nt.leading=r,nt.maxWait=t,nt.trailing=u,ie(n,t,nt)},tt.times=function(n,t,i){n=-1<(n=+n)?n:0;var r=-1,u=vi(n);for(t=ai(t,i,1);++r<n;)u[r]=t(r);return u},tt.toArray=function(t){return t&&typeof t.length=="number"?n(t):nu(t)},tt.transform=function(n,t,i,r){var f=ot(n),u;return null==i&&(f?i=[]:(u=n&&n.constructor,i=sr(u&&u.prototype))),t&&(t=tt.createCallback(t,r,4),(f?bt:it)(n,function(n,r,u){return t(i,n,r,u)})),i},tt.union=function(){return cu(di(arguments,!0,!0))},tt.uniq=df,tt.values=nu,tt.where=tu,tt.without=function(t){return hr(t,n(arguments,1))},tt.wrap=function(n,t){return pi(t,16,[n])},tt.xor=function(){for(var n,t,i=-1,r=arguments.length;++i<r;)n=arguments[i],(ot(n)||gr(n))&&(t=t?cu(hr(t,n).concat(hr(n,t))):n);return t||[]},tt.zip=gf,tt.zipObject=ne,tt.collect=ar,tt.drop=pu,tt.each=bt,tt.eachRight=iu,tt.extend=kr,tt.methods=cr,tt.object=ne,tt.select=tu,tt.tail=pu,tt.unique=df,tt.unzip=gf,bu(tt),tt.clone=function(n,t,i,r){return typeof t!="boolean"&&null!=t&&(r=i,i=t,t=!1),su(n,t,typeof i=="function"&&ai(i,r,1))},tt.cloneDeep=function(n,t,i){return su(n,!0,typeof t=="function"&&ai(t,i,1))},tt.contains=lf,tt.escape=function(n){return null==n?"":nr(n).replace(fo,ve)},tt.every=af,tt.find=au,tt.findIndex=function(n,t,i){var r=-1,u=n?n.length:0;for(t=tt.createCallback(t,i,3);++r<u;)if(t(n[r],r,n))return r;return-1},tt.findKey=function(n,t,i){var r;return t=tt.createCallback(t,i,3),it(n,function(n,i,u){if(t(n,i,u))return(r=i,!1)}),r},tt.findLast=function(n,t,i){var r;return t=tt.createCallback(t,i,3),iu(n,function(n,i,u){if(t(n,i,u))return(r=n,!1)}),r},tt.findLastIndex=function(n,t,i){var r=n?n.length:0;for(t=tt.createCallback(t,i,3);r--;)if(t(n[r],r,n))return r;return-1},tt.findLastKey=function(n,t,i){var r;return t=tt.createCallback(t,i,3),sf(n,function(n,i,u){if(t(n,i,u))return(r=i,!1)}),r},tt.has=function(n,t){return n?ci.call(n,t):!1},tt.identity=wu,tt.indexOf=bf,tt.isArguments=gr,tt.isArray=ot,tt.isBoolean=function(n){return!0===n||!1===n||n&&typeof n=="object"&&hi.call(n)==p||!1},tt.isDate=function(n){return n&&typeof n=="object"&&hi.call(n)==w||!1},tt.isElement=function(n){return n&&1===n.nodeType||!1},tt.isEmpty=function(n){var i=!0,t,r;return n?(t=hi.call(n),r=n.length,t==y||t==h||t==v||t==o&&typeof r=="number"&&et(n.splice)?!r:(it(n,function(){return i=!1}),i)):i},tt.isEqual=function(n,t,i,r){return rr(n,t,typeof i=="function"&&ai(i,r,2))},tt.isFinite=function(n){return io(n)&&!ro(parseFloat(n))},tt.isFunction=et,tt.isNaN=function(n){return cf(n)&&n!=+n},tt.isNull=function(n){return null===n},tt.isNumber=cf,tt.isObject=lt,tt.isPlainObject=rf,tt.isRegExp=function(n){return n&&typeof n=="object"&&hi.call(n)==k||!1},tt.isString=lr,tt.isUndefined=function(n){return typeof n=="undefined"},tt.lastIndexOf=function(n,t,i){var r=n?n.length:0;for(typeof i=="number"&&(r=(0>i?yi(0,r+i):br(i,r-1))+1);r--;)if(n[r]===t)return r;return-1},tt.mixin=bu,tt.noConflict=function(){return l._=be,this},tt.noop=re,tt.now=ir,tt.parseInt=ho,tt.random=function(n,t,i){var u=null==n,r=null==t;return null==i&&(typeof n=="boolean"&&r?(i=n,n=1):r||typeof t!="boolean"||(i=t,r=!0)),u&&r&&(t=1),n=+n||0,r?(t=n,n=0):t=+t||0,i||n%1||t%1?(i=he(),br(n+i*(t-n+parseFloat("1e-"+((i+"").length-1))),t)):hu(n,t)},tt.reduce=vu,tt.reduceRight=yf,tt.result=function(n,t){if(n){var i=n[t];return et(i)?n[t]():i}},tt.runInContext=ft,tt.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:li(n).length},tt.some=wf,tt.sortedIndex=kf,tt.template=function(n,t,i){var o=tt.templateSettings,f;n=nr(n||"");i=ou({},i,o);var s,h=ou({},i.imports,o.imports),o=li(h),h=nu(h),c=0,u=i.interpolate||g,r="__p+='",u=yr((i.escape||g).source+"|"+u.source+"|"+(u===vt?ri:g).source+"|"+(i.evaluate||g).source+"|$","g");n.replace(u,function(t,i,u,f,e,o){return u||(u=f),r+=n.slice(c,o).replace(oi,dt),i&&(r+="'+__e("+i+")+'"),e&&(s=!0,r+="';"+e+";\n__p+='"),u&&(r+="'+((__t=("+u+"))==null?'':__t)+'"),c=o+t.length,t});r+="';";u=i=i.variable;u||(i="obj",r="with("+i+"){"+r+"}");r=(s?r.replace(ni,""):r).replace(ti,"$1").replace(ii,"$1;");r="function("+i+"){"+(u?"":i+"||("+i+"={});")+"var __t,__p='',__e=_.escape"+(s?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+r+"return __p}";try{f=ru(o,"return "+r).apply(e,h)}catch(l){throw l.source=r,l;}return t?f(t):(f.source=r,f)},tt.unescape=function(n){return null==n?"":nr(n).replace(uo,ye)},tt.uniqueId=function(n){var t=++gt;return nr(null==n?"":n)+t},tt.all=af,tt.any=wf,tt.detect=au,tt.findWhere=au,tt.foldl=vu,tt.foldr=yf,tt.include=lf,tt.inject=vu,bu(function(){var n={};return it(tt,function(t,i){tt.prototype[i]||(n[i]=t)}),n}(),!1),tt.first=yu,tt.last=function(t,i,r){var u=0,o=t?t.length:0,f;if(typeof i!="number"&&null!=i)for(f=o,i=tt.createCallback(i,r,3);f--&&i(t[f],f,t);)u++;else if(u=i,null==u||r)return t?t[o-1]:e;return n(t,yi(0,o-u))},tt.sample=function(n,t,i){return n&&typeof n.length!="number"&&(n=nu(n)),null==t||i?n?n[hu(0,n.length-1)]:e:(n=pf(n),n.length=br(yi(0,t),n.length),n)},tt.take=yu,tt.head=yu,it(tt,function(n,t){var i="sample"!==t;tt.prototype[t]||(tt.prototype[t]=function(t,r){var u=this.__chain__,f=n(this.__wrapped__,t,r);return u||null!=t&&(!r||i&&typeof t=="function")?new tr(f,u):f})}),tt.VERSION="2.4.1",tt.prototype.chain=function(){return this.__chain__=!0,this},tt.prototype.toString=function(){return nr(this.__wrapped__)},tt.prototype.value=fe,tt.prototype.valueOf=fe,bt(["join","pop","shift"],function(n){var t=fr[n];tt.prototype[n]=function(){var n=this.__chain__,i=t.apply(this.__wrapped__,arguments);return n?new tr(i,n):i}}),bt(["push","reverse","sort","unshift"],function(n){var t=fr[n];tt.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),bt(["concat","slice","splice"],function(n){var t=fr[n];tt.prototype[n]=function(){return new tr(t.apply(this.__wrapped__,arguments),this.__chain__)}}),tt}var e,et=[],ot=[],gt=0,st=+new Date+"",ht=75,lt=40,at=" \t\x0b\f ﻿\n\r\u2028\u2029 ᠎             　",ni=/\b__p\+='';/g,ti=/\b(__p\+=)''\+/g,ii=/(__e\(.*?\)|\b__t\))\+'';/g,ri=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ui=/\w*$/,fi=/^\s*function[ \n\r\t]+\w/,vt=/<%=([\s\S]+?)%>/g,ei=RegExp("^["+at+"]*0+(?=.$)"),g=/($^)/,yt=/\bthis\b/,oi=/['\n\r\t\u2028\u2029\\]/g,si="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setTimeout".split(" "),v="[object Arguments]",y="[object Array]",p="[object Boolean]",w="[object Date]",pt="[object Function]",b="[object Number]",o="[object Object]",k="[object RegExp]",h="[object String]",u={},f;u[pt]=!1;u[v]=u[y]=u[p]=u[w]=u[b]=u[o]=u[k]=u[h]=!0;var nt={leading:!1,maxWait:0,trailing:!1},wt={configurable:!1,enumerable:!1,value:null,writable:!1},t={boolean:!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},hi={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},c=t[typeof window]&&window||this,tt=t[typeof exports]&&exports&&!exports.nodeType&&exports,it=t[typeof module]&&module&&!module.nodeType&&module,ci=it&&it.exports===tt&&tt,l=t[typeof global]&&global;l&&(l.global===l||l.window===l)&&(c=l);f=ft();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(c._=f,define(function(){return f})):tt&&it?ci?(it.exports=f)._=f:tt._=f:c._=f}.call(this);!function(n,t,i){"use strict";(function(){t.module("uiGmapgoogle-maps.providers",[]);t.module("uiGmapgoogle-maps.wrapped",[]);t.module("uiGmapgoogle-maps.extensions",["uiGmapgoogle-maps.wrapped","uiGmapgoogle-maps.providers"]);t.module("uiGmapgoogle-maps.directives.api.utils",["uiGmapgoogle-maps.extensions"]);t.module("uiGmapgoogle-maps.directives.api.managers",[]);t.module("uiGmapgoogle-maps.directives.api.options",["uiGmapgoogle-maps.directives.api.utils"]);t.module("uiGmapgoogle-maps.directives.api.options.builders",[]);t.module("uiGmapgoogle-maps.directives.api.models.child",["uiGmapgoogle-maps.directives.api.utils","uiGmapgoogle-maps.directives.api.options","uiGmapgoogle-maps.directives.api.options.builders"]);t.module("uiGmapgoogle-maps.directives.api.models.parent",["uiGmapgoogle-maps.directives.api.managers","uiGmapgoogle-maps.directives.api.models.child","uiGmapgoogle-maps.providers"]);t.module("uiGmapgoogle-maps.directives.api",["uiGmapgoogle-maps.directives.api.models.parent"]);t.module("uiGmapgoogle-maps",["uiGmapgoogle-maps.directives.api","uiGmapgoogle-maps.providers"]).factory("uiGmapdebounce",["$timeout",function(n){return function(t){var i;return i=0,function(){var r,u,f;return f=this,r=arguments,i++,u=function(n){return function(){if(n===i)return t.apply(f,r)}}(i),n(u,0,!0)}}}])}).call(this),function(){t.module("uiGmapgoogle-maps.providers").factory("uiGmapMapScriptLoader",["$q","uiGmapuuid",function(i,r){var f,u;return u=void 0,f=function(n){return n.china?"http://maps.google.cn/maps/api/js?":"https://maps.googleapis.com/maps/api/js?"},{load:function(e){var o,h,c,s;return o=i.defer(),t.isDefined(n.google)&&t.isDefined(n.google.maps)?(o.resolve(n.google.maps),o.promise):(c=e.callback="onGoogleMapsReady"+Math.round(1e3*Math.random()),n[c]=function(){n[c]=null;o.resolve(n.google.maps)},h=_.map(e,function(n,t){return t+"="+n}),u&&document.getElementById(u).remove(),h=h.join("&"),s=document.createElement("script"),u="ui_gmap_map_load_"+r.generate(),s.id=u,s.type="text/javascript",s.src=f(e)+h,document.body.appendChild(s),o.promise)}}}]).provider("uiGmapGoogleMapApi",function(){return this.options={china:!1,v:"3.17",libraries:"",language:"en",sensor:"false"},this.configure=function(n){t.extend(this.options,n)},this.$get=["uiGmapMapScriptLoader",function(n){return function(t){return t.load(n.options)}}(this)],this})}.call(this),function(){t.module("uiGmapgoogle-maps.extensions").service("uiGmapExtendGWin",function(){return{init:_.once(function(){if(google||("undefined"!=typeof google&&null!==google?google.maps:void 0)||null!=google.maps.InfoWindow)return(google.maps.InfoWindow.prototype._open=google.maps.InfoWindow.prototype.open,google.maps.InfoWindow.prototype._close=google.maps.InfoWindow.prototype.close,google.maps.InfoWindow.prototype._isOpen=!1,google.maps.InfoWindow.prototype.open=function(n,t,i){null==i&&(this._isOpen=!0,this._open(n,t,!0))},google.maps.InfoWindow.prototype.close=function(n){null==n&&(this._isOpen=!1,this._close(!0))},google.maps.InfoWindow.prototype.isOpen=function(n){return null==n&&(n=void 0),null==n?this._isOpen:this._isOpen=n},n.InfoBox&&(n.InfoBox.prototype._open=n.InfoBox.prototype.open,n.InfoBox.prototype._close=n.InfoBox.prototype.close,n.InfoBox.prototype._isOpen=!1,n.InfoBox.prototype.open=function(n,t){this._isOpen=!0;this._open(n,t)},n.InfoBox.prototype.close=function(){this._isOpen=!1;this._close()},n.InfoBox.prototype.isOpen=function(n){return null==n&&(n=void 0),null==n?this._isOpen:this._isOpen=n}),n.MarkerLabel_?(n.MarkerLabel_.prototype.setContent=function(){var n;n=this.marker_.get("labelContent");n&&!_.isEqual(this.oldContent,n)&&("undefined"==typeof(null!=n?n.nodeType:void 0)?(this.labelDiv_.innerHTML=n,this.eventDiv_.innerHTML=this.labelDiv_.innerHTML,this.oldContent=n):(this.labelDiv_.innerHTML="",this.labelDiv_.appendChild(n),n=n.cloneNode(!0),this.eventDiv_.appendChild(n),this.oldContent=n))},n.MarkerLabel_.prototype.onRemove=function(){null!=this.labelDiv_.parentNode&&this.labelDiv_.parentNode.removeChild(this.labelDiv_);null!=this.eventDiv_.parentNode&&this.eventDiv_.parentNode.removeChild(this.eventDiv_);this.listeners_&&this.listeners_.length&&this.listeners_.forEach(function(n){return google.maps.event.removeListener(n)})}):void 0)})}})}.call(this),function(){t.module("uiGmapgoogle-maps.extensions").service("uiGmapLodash",function(){return this.intersectionObjects=function(n,t,i){var r;return null==i&&(i=void 0),r=_.map(n,function(){return function(n){return _.find(t,function(t){return null!=i?i(n,t):_.isEqual(n,t)})}}(this)),_.filter(r,function(n){return null!=n})},this.containsObject=_.includeObject=function(n,t,i){return null==i&&(i=void 0),null===n?!1:_.any(n,function(){return function(n){return null!=i?i(n,t):_.isEqual(n,t)}}(this))},this.differenceObjects=function(n,t,i){return null==i&&(i=void 0),_.filter(n,function(n){return function(r){return!n.containsObject(t,r,i)}}(this))},this.withoutObjects=this.differenceObjects,this.indexOfObject=function(n,t,i,r){var u,f;if(null==n)return-1;if(u=0,f=n.length,r){if("number"!=typeof r)return u=_.sortedIndex(n,t),n[u]===t?u:-1;u=0>r?Math.max(0,f+r):r}for(;f>u;){if(null!=i){if(i(n[u],t))return u}else if(_.isEqual(n[u],t))return u;u++}return-1},this["extends"]=function(n){return _.reduce(n,function(n,t){return _.extend(n,t)},{})},this.isNullOrUndefined=function(n){return _.isNull(n||_.isUndefined(n))},this})}.call(this),function(){t.module("uiGmapgoogle-maps.extensions").factory("uiGmapString",function(){return function(n){return this.contains=function(t,i){return-1!==n.indexOf(t,i)},this}})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmap_sync",[function(){return{fakePromise:function(){var n;return n=void 0,{then:function(t){return n=t},resolve:function(){return n.apply(void 0,arguments)}}}}}]).service("uiGmap_async",["$timeout","uiGmapPromise","uiGmapLogger",function(n,t,i){var u,f,e,r,o,s,h,c;return u=20,r={value:null},h=function(n,t,i){var u;try{return n.apply(t,i)}catch(f){return u=f,r.value=u,r}},o=function(n,t,u,f){var e,o;return o=h(n,t,f),o===r?(e="error within chunking iterator: "+r.value,i.error(e),u.reject(e)):void 0},c=function(n,t){return n.existingPieces=n.existingPieces?n.existingPieces.then(function(){return t()}):t()},f=function(t,i,r,u,e,s,h){for(var l=i&&i<t.length?i:t.length,c=h;l--&&c<(t?t.length:c+1);)o(u,void 0,s,[t[c],c]),++c;if(t){if(!(c<t.length))return s.resolve();if(h=c,i)return null!=e&&_.isFunction(e)&&o(e,void 0,s,[]),n(function(){return f(t,i,r,u,e,s,h)},r,!1)}},e=function(n,r,e,o,s,h){var a,c,l;return null==o&&(o=u),null==s&&(s=0),null==h&&(h=1),l=void 0,c=t.defer(),l=c.promise,h?void 0===n||(null!=n?n.length:void 0)<=0?(c.resolve(),l):(f(n,o,h,r,e,c,s),l):(a="pause (delay) must be set from _async!",i.error(a),c.reject(a),l)},s=function(n,i,r,u,f,o){var s;return s=[],null!=n&&(null!=n?n.length:void 0)>0?e(n,function(n){return s.push(i(n))},r,u,f,o).then(function(){return s}):t.resolve(s)},{each:e,map:s,waitOrGo:c,defaultChunkSize:u}}])}.call(this),function(){var n=[].indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(t in this&&this[t]===n)return t;return-1};t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapBaseObject",function(){var i,t;return t=["extended","included"],i=function(){function i(){}return i.extend=function(i){var r,u,f;for(r in i)u=i[r],n.call(t,r)<0&&(this[r]=u);return null!=(f=i.extended)&&f.apply(this),this},i.include=function(i){var r,u,f;for(r in i)u=i[r],n.call(t,r)<0&&(this.prototype[r]=u);return null!=(f=i.included)&&f.apply(this),this},i}()})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapChildEvents",function(){return{onChildCreation:function(){}}})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapCtrlHandle",["$q",function(n){var t;return t={handle:function(i){return i.$on("$destroy",function(){return t.handle(i)}),i.deferred=n.defer(),{getScope:function(){return i}}},mapPromise:function(n,t){var i;return i=t.getScope(),i.deferred.promise.then(function(t){return n.map=t}),i.deferred.promise}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapEventsHelper",["uiGmapLogger",function(){return{setEvents:function(n,i,r,u){if(t.isDefined(i.events)&&null!=i.events&&t.isObject(i.events))return _.compact(_.map(i.events,function(f,e){var o;return u&&(o=_(u).contains(e)),i.events.hasOwnProperty(e)&&t.isFunction(i.events[e])&&!o?google.maps.event.addListener(n,e,function(){return i.$evalAsync||(i.$evalAsync=function(){}),i.$evalAsync(f.apply(i,[n,e,r,arguments]))}):void 0}))},removeEvents:function(n){if(n)return n.forEach(function(n){if(n)return google.maps.event.removeListener(n)})}}}])}.call(this),function(){var n={}.hasOwnProperty,i=function(t,i){function u(){this.constructor=t}for(var r in i)n.call(i,r)&&(t[r]=i[r]);return u.prototype=i.prototype,t.prototype=new u,t.__super__=i.prototype,t};t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapFitHelper",["uiGmapBaseObject","uiGmapLogger","uiGmap_async",function(n,t,r){return function(n){function t(){return t.__super__.constructor.apply(this,arguments)}return i(t,n),t.prototype.fit=function(n,t){var u,i;if(t&&n&&n.length>0)return(u=new google.maps.LatLngBounds,i=!1,r.each(n,function(){return function(n){if(n)return(i||(i=!0),u.extend(n.getPosition()))}}(this)).then(function(){if(i)return t.fitBounds(u)}))},t}(n)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapGmapUtil",["uiGmapLogger","$compile",function(n,i){var r,u,f,e;return u=function(n){return Array.isArray(n)&&2===n.length?n[1]:t.isDefined(n.type)&&"Point"===n.type?n.coordinates[1]:n.latitude},f=function(n){return Array.isArray(n)&&2===n.length?n[0]:t.isDefined(n.type)&&"Point"===n.type?n.coordinates[0]:n.longitude},r=function(n){if(n)return Array.isArray(n)&&2===n.length?new google.maps.LatLng(n[1],n[0]):t.isDefined(n.type)&&"Point"===n.type?new google.maps.LatLng(n.coordinates[1],n.coordinates[0]):new google.maps.LatLng(n.latitude,n.longitude)},e=function(n){if(t.isUndefined(n))return!1;if(_.isArray(n)){if(2===n.length)return!0}else if(null!=n&&(null!=n?n.type:void 0)&&"Point"===n.type&&_.isArray(n.coordinates)&&2===n.coordinates.length)return!0;return n&&t.isDefined((null!=n?n.latitude:void 0)&&t.isDefined(null!=n?n.longitude:void 0))?!0:!1},{setCoordsFromEvent:function(n,i){if(n)return(Array.isArray(n)&&2===n.length?(n[1]=i.lat(),n[0]=i.lng()):t.isDefined(n.type)&&"Point"===n.type?(n.coordinates[1]=i.lat(),n.coordinates[0]=i.lng()):(n.latitude=i.lat(),n.longitude=i.lng()),n)},getLabelPositionPoint:function(n){var t,i;if(void 0!==n)return(n=/^([-\d\.]+)\s([-\d\.]+)$/.exec(n),t=parseFloat(n[1]),i=parseFloat(n[2]),null!=t&&null!=i?new google.maps.Point(t,i):void 0)},createWindowOptions:function(u,f,e,o){var s;return null!=e&&null!=o&&null!=i?(s=t.extend({},o,{content:this.buildContent(f,o,e),position:null!=o.position?o.position:t.isObject(u)?u.getPosition():r(f.coords)}),null!=u&&null==(null!=s?s.pixelOffset:void 0)&&(null==s.boxClass||(s.pixelOffset={height:0,width:-2})),s):o?o:(n.error("infoWindow defaults not defined"),e?void 0:n.error("infoWindow content not defined"))},buildContent:function(n,t,r){var f,u;return null!=t.content?u=t.content:null!=i?(r=r.replace(/^\s+|\s+$/g,""),f=""===r?"":i(r)(n),f.length>0&&(u=f[0])):u=r,u},defaultDelay:50,isTrue:function(n){return t.isDefined(n)&&null!==n&&n===!0||"1"===n||"y"===n||"true"===n},isFalse:function(n){return-1!==["false","FALSE",0,"n","N","no","NO"].indexOf(n)},getCoords:r,validateCoords:e,equalCoords:function(n,t){return u(n)===u(t)&&f(n)===f(t)},validatePath:function(n){var r,i,f,u;if(i=0,t.isUndefined(n.type)){if(!Array.isArray(n)||n.length<2)return!1;for(;i<n.length;){if(!(t.isDefined(n[i].latitude)&&t.isDefined(n[i].longitude)||"function"==typeof n[i].lat&&"function"==typeof n[i].lng))return!1;i++}return!0}if(t.isUndefined(n.coordinates))return!1;if("Polygon"===n.type){if(n.coordinates[0].length<4)return!1;r=n.coordinates[0]}else if("MultiPolygon"===n.type){if(u={max:0,index:0},_.forEach(n.coordinates,function(n,t){if(n[0].length>this.max)return(this.max=n[0].length,this.index=t)},u),f=n.coordinates[u.index],r=f[0],r.length<4)return!1}else{if("LineString"!==n.type||n.coordinates.length<2)return!1;r=n.coordinates}for(;i<r.length;){if(2!==r[i].length)return!1;i++}return!0},convertPathPoints:function(n){var r,i,f,u,e;if(i=0,u=new google.maps.MVCArray,t.isUndefined(n.type))for(;i<n.length;)t.isDefined(n[i].latitude)&&t.isDefined(n[i].longitude)?f=new google.maps.LatLng(n[i].latitude,n[i].longitude):"function"==typeof n[i].lat&&"function"==typeof n[i].lng&&(f=n[i]),u.push(f),i++;else for("Polygon"===n.type?r=n.coordinates[0]:"MultiPolygon"===n.type?(e={max:0,index:0},_.forEach(n.coordinates,function(n,t){if(n[0].length>this.max)return(this.max=n[0].length,this.index=t)},e),r=n.coordinates[e.index][0]):"LineString"===n.type&&(r=n.coordinates);i<r.length;)u.push(new google.maps.LatLng(r[i][1],r[i][0])),i++;return u},extendMapBounds:function(n,t){for(var r=new google.maps.LatLngBounds,i=0;i<t.length;)r.extend(t.getAt(i)),i++;return n.fitBounds(r)},getPath:function(n,t){var i;return i=n,_.each(t.split("."),function(n){if(i)return i=i[n]}),i},validateBoundPoints:function(n){return t.isUndefined(n.sw.latitude)||t.isUndefined(n.sw.longitude)||t.isUndefined(n.ne.latitude)||t.isUndefined(n.ne.longitude)?!1:!0},convertBoundPoints:function(n){return new google.maps.LatLngBounds(new google.maps.LatLng(n.sw.latitude,n.sw.longitude),new google.maps.LatLng(n.ne.latitude,n.ne.longitude))},fitMapBounds:function(n,t){return n.fitBounds(t)}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapIsReady",["$q","$timeout",function(n,t){var i,u,r;return i=0,r=[],u=function(){return n.all(r)},{spawn:function(){var t;return t=n.defer(),r.push(t.promise),i+=1,{instance:i,deferred:t}},promises:u,instances:function(){return i},promise:function(r){var f,e;return null==r&&(r=1),f=n.defer(),e=function(){return t(function(){return i!==r?e():f.resolve(u())})},e(),f.promise},reset:function(){return i=0,r.length=0}}}])}.call(this),function(){var n={}.hasOwnProperty,i=function(t,i){function u(){this.constructor=t}for(var r in i)n.call(i,r)&&(t[r]=i[r]);return u.prototype=i.prototype,t.prototype=new u,t.__super__=i.prototype,t};t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapLinked",["uiGmapBaseObject",function(n){return function(n){function t(n,t,i,r){this.scope=n;this.element=t;this.attrs=i;this.ctrls=r}return i(t,n),t}(n)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapLogger",["$log",function(n){var i,r,t,u;return this.doLog=!0,i={log:1,info:2,debug:3,warn:4,error:5,none:6},u=function(n,t,i){if(n>=t)return i()},r=function(t,i){return null!=n?n[t](i):console[t](i)},t={},["log","info","debug","warn","error"].forEach(function(n){return function(f){return t[f]=function(t){if(n.doLog)return u(i[f],n.currentLevel,function(){return r(f,t)})}}}(this)),this.LEVELS=i,this.currentLevel=i.error,this.log=t.log,this.info=t.info,this.debug=t.debug,this.warn=t.warn,this.error=t.error,this}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapModelKey",["uiGmapBaseObject","uiGmapGmapUtil","uiGmapPromise","$q","$timeout",function(t,i,u,f,e){return function(t){function o(t){this.scope=t;this.setChildScope=n(this.setChildScope,this);this.destroyPromise=n(this.destroyPromise,this);this.cleanOnResolve=n(this.cleanOnResolve,this);this.updateInProgress=n(this.updateInProgress,this);this.getChanges=n(this.getChanges,this);this.getProp=n(this.getProp,this);this.setIdKey=n(this.setIdKey,this);this.modelKeyComparison=n(this.modelKeyComparison,this);o.__super__.constructor.call(this);this.defaultIdKey="id";this.idKey=void 0}return r(o,t),o.prototype.evalModelHandle=function(n,t){if(void 0!==n&&void 0!==t)return"self"===t?n:i.getPath(n,t)},o.prototype.modelKeyComparison=function(n,t){var r;if(r=null!=this.scope.coords?this.scope:this.parentScope,null==r)throw"No scope or parentScope set!";return i.equalCoords(this.evalModelHandle(n,r.coords),this.evalModelHandle(t,r.coords))},o.prototype.setIdKey=function(n){return this.idKey=null!=n.idKey?n.idKey:this.defaultIdKey},o.prototype.setVal=function(n,t,i){var r;return r=this.modelOrKey(n,t),r=i,n},o.prototype.modelOrKey=function(n,t){if(null!=t)return"self"!==t?n[t]:n},o.prototype.getProp=function(n,t){return this.modelOrKey(t,n)},o.prototype.getChanges=function(n,t,i){var f,u,r;i&&(t=_.pick(t,i),n=_.pick(n,i));u={};r={};f={};for(r in n)t&&t[r]===n[r]||(_.isArray(n[r])?u[r]=n[r]:_.isObject(n[r])?(f=this.getChanges(n[r],t[r]),_.isEmpty(f)||(u[r]=f)):u[r]=n[r]);return u},o.prototype.updateInProgress=function(){var t,n;return n=new Date,t=n-this.lastUpdate,250>=t?!0:this.inProgress?!0:(this.inProgress=!0,this.lastUpdate=n,!1)},o.prototype.cleanOnResolve=function(n){return n["catch"](function(n){return function(){return n.existingPieces=void 0,n.inProgress=!1,u.resolve()}}(this)).then(function(n){return function(){return n.existingPieces=void 0,n.inProgress=!1}}(this))},o.prototype.destroyPromise=function(){var n,t,i;return this.isClearing=!0,t=f.defer(),i=t.promise,n=function(i){return function(){return i.inProgress?e(n,500):t.resolve()}}(this),n(),i},o.prototype.scopeOrModelVal=function(n,t,i,r){var f,e,o,u;return null==r&&(r=!1),f=function(n,t,i){return null==i&&(i=!1),i?{isScope:n,value:t}:t},u=t[n],_.isFunction(u)?f(!0,u(),r):_.isObject(u)?f(!0,u,r):(e=u,o=e?"self"===e?i:i[e]:i[n],_.isFunction(o)?f(!1,o(),r):f(!1,o,r))},o.prototype.setChildScope=function(n,t,i){return _.each(n,function(n){return function(r){var u,f;return u=n.scopeOrModelVal(r,t,i,!0),u.isScope||(f=u.value,f===t[r])?void 0:t[r]=f}}(this)),t.model=i},o}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapModelsWatcher",["uiGmapLogger","uiGmap_async",function(n,t){return{figureOutState:function(i,r,u,f,e){var o,s,h,c;return o=[],s={},h=[],c=[],t.each(r.models,function(t){var r;return null==t[i]?n.error(" id missing for model #{m.toString()},\ncan not use do comparison/insertion"):(s[t[i]]={},null==u.get(t[i])?o.push(t):(r=u.get(t[i]),f(t,r.model)?void 0:c.push({model:t,child:r})))}).then(function(){return function(){return t.each(u.values(),function(t){var r;return null==t?void n.error("child undefined in ModelsWatcher."):null==t.model?void n.error("child.model undefined in ModelsWatcher."):(r=t.model[i],null==s[r]?h.push(t):void 0)})}}(this)).then(function(){return function(){return e({adds:o,removals:h,updates:c})}}(this))}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").service("uiGmapPromise",["$q",function(n){return{defer:function(){return n.defer()},resolve:function(){var t;return t=n.defer(),t.resolve.apply(void 0,arguments),t.promise}}}])}.call(this),function(){var r,i=function(n,t){return function(){return n.apply(t,arguments)}};r=["get","put","remove","values","keys","length","push","didValueStateChange","didKeyStateChange","slice","removeAll","allVals","allKeys","stateChanged"];n.PropMap=function(){function n(){this.removeAll=i(this.removeAll,this);this.slice=i(this.slice,this);this.push=i(this.push,this);this.keys=i(this.keys,this);this.values=i(this.values,this);this.remove=i(this.remove,this);this.put=i(this.put,this);this.stateChanged=i(this.stateChanged,this);this.get=i(this.get,this);this.length=0;this.dict={};this.didValsStateChange=!1;this.didKeysStateChange=!1;this.allVals=[];this.allKeys=[]}return n.prototype.get=function(n){return this.dict[n]},n.prototype.stateChanged=function(){return this.didValsStateChange=!0,this.didKeysStateChange=!0},n.prototype.put=function(n,t){return null==this.get(n)&&this.length++,this.stateChanged(),this.dict[n]=t},n.prototype.remove=function(n,t){var i;return null==t&&(t=!1),t&&!this.get(n)?void 0:(i=this.dict[n],delete this.dict[n],this.length--,this.stateChanged(),i)},n.prototype.valuesOrKeys=function(n){var t,i;return null==n&&(n="Keys"),this["did"+n+"StateChange"]?(i=[],t=[],_.each(this.dict,function(n,r){return i.push(n),t.push(r)}),this.didKeysStateChange=!1,this.didValsStateChange=!1,this.allVals=i,this.allKeys=t,this["all"+n]):this["all"+n]},n.prototype.values=function(){return this.valuesOrKeys("Vals")},n.prototype.keys=function(){return this.valuesOrKeys()},n.prototype.push=function(n,t){return null==t&&(t="key"),this.put(n[t],n)},n.prototype.slice=function(){return this.keys().map(function(n){return function(t){return n.remove(t)}}(this))},n.prototype.removeAll=function(){return this.slice()},n.prototype.each=function(n){return _.each(this.dict,function(t){return n(t)})},n.prototype.map=function(n){return _.map(this.dict,function(t){return n(t)})},n}();t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapPropMap",function(){return n.PropMap})}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapPropertyAction",["uiGmapLogger",function(){return function(n){return this.setIfChange=function(t,i){var r;return r=this.exp,_.isEqual(i,t)?void 0:n(r,t)},this.sic=this.setIfChange,this}}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapClustererMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap",function(i,u,f){return function(u){function e(t,r,u,o){var s;this.opt_events=o;this.checkSync=n(this.checkSync,this);this.getGMarkers=n(this.getGMarkers,this);this.fit=n(this.fit,this);this.destroy=n(this.destroy,this);this.clear=n(this.clear,this);this.draw=n(this.draw,this);this.removeMany=n(this.removeMany,this);this.remove=n(this.remove,this);this.addMany=n(this.addMany,this);this.update=n(this.update,this);this.add=n(this.add,this);e.__super__.constructor.call(this);this.type=e.type;s=this;this.opt_options=u;this.clusterer=null!=u&&void 0===r?new NgMapMarkerClusterer(t,void 0,u):null!=u&&null!=r?new NgMapMarkerClusterer(t,r,u):new NgMapMarkerClusterer(t);this.propMapGMarkers=new f;this.attachEvents(this.opt_events,"opt_events");this.clusterer.setIgnoreHidden(!0);this.noDrawOnSingleAddRemoves=!0;i.info(this)}return r(e,u),e.type="ClustererMarkerManager",e.prototype.checkKey=function(n){var t;if(null==n.key)return(t="gMarker.key undefined and it is REQUIRED!!",Logger.error(t))},e.prototype.add=function(n){return this.checkKey(n),this.clusterer.addMarker(n,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.put(n.key,n),this.checkSync()},e.prototype.update=function(n){return this.remove(n),this.add(n)},e.prototype.addMany=function(n){return n.forEach(function(n){return function(t){return n.add(t)}}(this))},e.prototype.remove=function(n){var t;return this.checkKey(n),t=this.propMapGMarkers.get(n.key),t&&(this.clusterer.removeMarker(n,this.noDrawOnSingleAddRemoves),this.propMapGMarkers.remove(n.key)),this.checkSync()},e.prototype.removeMany=function(n){return n.forEach(function(n){return function(t){return n.remove(t)}}(this))},e.prototype.draw=function(){return this.clusterer.repaint()},e.prototype.clear=function(){return this.removeMany(this.getGMarkers()),this.clusterer.repaint()},e.prototype.attachEvents=function(n,r){var e,u,f;if(t.isDefined(n)&&null!=n&&t.isObject(n)){f=[];for(u in n)e=n[u],n.hasOwnProperty(u)&&t.isFunction(n[u])?(i.info(""+r+": Attaching event: "+u+" to clusterer"),f.push(google.maps.event.addListener(this.clusterer,u,n[u]))):f.push(void 0);return f}},e.prototype.clearEvents=function(n){var f,r,u;if(t.isDefined(n)&&null!=n&&t.isObject(n)){u=[];for(r in n)f=n[r],n.hasOwnProperty(r)&&t.isFunction(n[r])?(i.info(""+optionsName+": Clearing event: "+r+" to clusterer"),u.push(google.maps.event.clearListeners(this.clusterer,r))):u.push(void 0);return u}},e.prototype.destroy=function(){return this.clearEvents(this.opt_events),this.clearEvents(this.opt_internal_events),this.clear()},e.prototype.fit=function(){return e.__super__.fit.call(this,this.getGMarkers(),this.clusterer.getMap())},e.prototype.getGMarkers=function(){return this.clusterer.getMarkers().values()},e.prototype.checkSync=function(){},e}(u)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.managers").factory("uiGmapMarkerManager",["uiGmapLogger","uiGmapFitHelper","uiGmapPropMap",function(t,i,u){return function(f){function e(i){this.getGMarkers=n(this.getGMarkers,this);this.fit=n(this.fit,this);this.handleOptDraw=n(this.handleOptDraw,this);this.clear=n(this.clear,this);this.draw=n(this.draw,this);this.removeMany=n(this.removeMany,this);this.remove=n(this.remove,this);this.addMany=n(this.addMany,this);this.update=n(this.update,this);this.add=n(this.add,this);e.__super__.constructor.call(this);this.type=e.type;this.gMap=i;this.gMarkers=new u;this.$log=t;this.$log.info(this)}return r(e,f),e.include(i),e.type="MarkerManager",e.prototype.add=function(n,i){var u,r;if(null==i&&(i=!0),null==n.key)throw r="gMarker.key undefined and it is REQUIRED!!",t.error(r),r;return u=this.gMarkers.get(n.key),u?void 0:(this.handleOptDraw(n,i,!0),this.gMarkers.put(n.key,n))},e.prototype.update=function(n,t){return null==t&&(t=!0),this.remove(n,t),this.add(n,t)},e.prototype.addMany=function(n){return n.forEach(function(n){return function(t){return n.add(t)}}(this))},e.prototype.remove=function(n,t){return null==t&&(t=!0),this.handleOptDraw(n,t,!1),this.gMarkers.get(n.key)?this.gMarkers.remove(n.key):void 0},e.prototype.removeMany=function(n){return n.forEach(function(n){return function(t){return n.remove(t)}}(this))},e.prototype.draw=function(){var n;return n=[],this.gMarkers.each(function(t){return function(i){if(!i.isDrawn)return i.doAdd?(i.setMap(t.gMap),i.isDrawn=!0):n.push(i)}}(this)),n.forEach(function(n){return function(t){return t.isDrawn=!1,n.remove(t,!0)}}(this))},e.prototype.clear=function(){return this.gMarkers.each(function(n){return n.setMap(null)}),delete this.gMarkers,this.gMarkers=new u},e.prototype.handleOptDraw=function(n,t,i){return t===!0?(n.setMap(i?this.gMap:null),n.isDrawn=!0):(n.isDrawn=!1,n.doAdd=i)},e.prototype.fit=function(){return e.__super__.fit.call(this,this.getGMarkers(),this.gMap)},e.prototype.getGMarkers=function(){return this.gMarkers.values()},e}(i)}])}.call(this),function(){t.module("uiGmapgoogle-maps").factory("uiGmapadd-events",["$timeout",function(n){var i,r;return i=function(t,i,r){return google.maps.event.addListener(t,i,function(){return r.apply(this,arguments),n(function(){},!0)})},r=function(n,r,u){var f;return u?i(n,r,u):(f=[],t.forEach(r,function(t,r){return f.push(i(n,r,t))}),function(){return t.forEach(f,function(n){return google.maps.event.removeListener(n)}),f=null})}}])}.call(this),function(){t.module("uiGmapgoogle-maps").factory("uiGmaparray-sync",["uiGmapadd-events",function(n){return function(i,r,u,f){var s,l,a,o,v,y,h,e,c;return o=!1,e=r.$eval(u),r["static"]||(v={set_at:function(n){var t;if(!o&&(t=i.getAt(n)))return t.lng&&t.lat?(e[n].latitude=t.lat(),e[n].longitude=t.lng()):e[n]=t},insert_at:function(n){var t;if(!o&&(t=i.getAt(n)))return t.lng&&t.lat?e.splice(n,0,{latitude:t.lat(),longitude:t.lng()}):e.splice(n,0,t)},remove_at:function(n){if(!o)return e.splice(n,1)}},"Polygon"===e.type?s=e.coordinates[0]:"LineString"===e.type&&(s=e.coordinates),l={set_at:function(n){var t;if(!o&&(t=i.getAt(n),t&&t.lng&&t.lat))return s[n][1]=t.lat(),s[n][0]=t.lng()},insert_at:function(n){var t;if(!o&&(t=i.getAt(n),t&&t.lng&&t.lat))return s.splice(n,0,[t.lng(),t.lat()])},remove_at:function(n){if(!o)return s.splice(n,1)}},h=n(i,t.isUndefined(e.type)?v:l)),y=function(n){var e,r,l,h,t,u,c,s;if(o=!0,u=i,e=!1,n){for(r=0,c=u.getLength(),h=n.length,l=Math.min(c,h),t=void 0;l>r;)s=u.getAt(r),t=n[r],"function"==typeof t.equals?t.equals(s)||(u.setAt(r,t),e=!0):(s.lat()!==t.latitude||s.lng()!==t.longitude)&&(u.setAt(r,new google.maps.LatLng(t.latitude,t.longitude)),e=!0),r++;for(;h>r;)t=n[r],u.push("function"==typeof t.lat&&"function"==typeof t.lng?t:new google.maps.LatLng(t.latitude,t.longitude)),e=!0,r++;for(;c>r;)u.pop(),e=!0,r++}return o=!1,e?f(u):void 0},a=function(n){var s,h,t,v,c,r,u,l,a;if(o=!0,u=i,h=!1,n){for("Polygon"===e.type?s=n.coordinates[0]:"LineString"===e.type&&(s=n.coordinates),t=0,l=u.getLength(),c=s.length,v=Math.min(l,c),r=void 0;v>t;)a=u.getAt(t),r=s[t],(a.lat()!==r[1]||a.lng()!==r[0])&&(u.setAt(t,new google.maps.LatLng(r[1],r[0])),h=!0),t++;for(;c>t;)r=s[t],u.push(new google.maps.LatLng(r[1],r[0])),h=!0,t++;for(;l>t;)u.pop(),h=!0,t++}return o=!1,h?f(u):void 0},r["static"]||(c=t.isUndefined(e.type)?r.$watchCollection(u,y):r.$watch(u,a,!0)),function(){return h&&(h(),h=null),c?(c(),c=null):void 0}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.utils").factory("uiGmapChromeFixes",[function(){return{maybeRepaint:function(n){var t;if(n)return(t=n.style.display,n.style.display="none",_.defer(function(){return n.style.display=t}))}}}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.options.builders").service("uiGmapCommonOptionsBuilder",["uiGmapBaseObject","uiGmapLogger","uiGmapModelKey",function(i,u,f){return function(i){function f(){return this.watchProps=n(this.watchProps,this),this.buildOpts=n(this.buildOpts,this),f.__super__.constructor.apply(this,arguments)}return r(f,i),f.prototype.props=["clickable","draggable","editable","visible",{prop:"stroke",isColl:!0}],f.prototype.buildOpts=function(n,i){var o,e,f,r;return null==n&&(n={}),null==i&&(i={}),this.scope?this.map?(o=_(this.scope).chain().keys().contains("model").value(),e=o?this.scope.model:this.scope,r=this.scopeOrModelVal("stroke",this.scope,e),f=t.extend(n,this.DEFAULTS,{map:this.map,strokeColor:null!=r?r.color:void 0,strokeOpacity:null!=r?r.opacity:void 0,strokeWeight:null!=r?r.weight:void 0}),t.forEach(t.extend(i,{clickable:!0,draggable:!1,editable:!1,"static":!1,fit:!1,visible:!0,zIndex:0}),function(n){return function(i,r){var u;return u=n.scopeOrModelVal(r,n.scope,e),f[r]=t.isUndefined(u)?i:e[r]}}(this)),f["static"]&&(f.editable=!1),f):void u.error("this.map not defined in CommonOptionsBuilder can not buildOpts"):void u.error("this.scope not defined in CommonOptionsBuilder can not buildOpts")},f.prototype.watchProps=function(n){return null==n&&(n=this.props),n.forEach(function(n){return function(t){if(null!=n.attrs[t]||null!=n.attrs[null!=t?t.prop:void 0])return(null!=t?t.isColl:void 0)?n.scope.$watchCollection(t.prop,n.setMyOptions):n.scope.$watch(t,n.setMyOptions)}}(this))},f}(f)}])}.call(this),function(){var i={}.hasOwnProperty,n=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.options.builders").factory("uiGmapPolylineOptionsBuilder",["uiGmapCommonOptionsBuilder",function(t){return function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.buildOpts=function(n){return i.__super__.buildOpts.call(this,{path:n},{geodesic:!1})},i}(t)}]).factory("uiGmapShapeOptionsBuilder",["uiGmapCommonOptionsBuilder",function(i){return function(i){function r(){return r.__super__.constructor.apply(this,arguments)}return n(r,i),r.prototype.buildOpts=function(n,i){var u,f;return n=t.extend(n,{fillColor:null!=(u=this.scope.fill)?u.color:void 0,fillOpacity:null!=(f=this.scope.fill)?f.opacity:void 0}),r.__super__.buildOpts.call(this,n,i)},r}(i)}]).factory("uiGmapPolygonOptionsBuilder",["uiGmapShapeOptionsBuilder",function(t){return function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.buildOpts=function(n){return i.__super__.buildOpts.call(this,{path:n},{geodesic:!1})},i}(t)}]).factory("uiGmapRectangleOptionsBuilder",["uiGmapShapeOptionsBuilder",function(t){return function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.buildOpts=function(n){return i.__super__.buildOpts.call(this,{bounds:n})},i}(t)}]).factory("uiGmapCircleOptionsBuilder",["uiGmapShapeOptionsBuilder",function(t){return function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.buildOpts=function(n,t){return i.__super__.buildOpts.call(this,{center:n,radius:t})},i}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.options").service("uiGmapMarkerOptions",["uiGmapLogger","uiGmapGmapUtil",function(n,i){return _.extend(i,{createOptions:function(n,r,u,f){var e;return null==u&&(u={}),e=t.extend({},u,{position:null!=u.position?u.position:i.getCoords(n),visible:null!=u.visible?u.visible:i.validateCoords(n)}),(null!=u.icon||null!=r)&&(e=t.extend(e,{icon:null!=u.icon?u.icon:r})),null!=f&&(e.map=f),e},isLabel:function(n){return null!=n.labelContent||null!=n.labelAnchor||null!=n.labelClass||null!=n.labelStyle||null!=n.labelVisible?!0:!1}})}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapDrawFreeHandChildModel",["uiGmapLogger","$q",function(n,t){var i,r;return i=function(n,t,i){var u,r;return this.polys=t,r=new google.maps.Polyline({map:n,clickable:!1}),u=google.maps.event.addListener(n,"mousemove",function(n){return r.getPath().push(n.latLng)}),void google.maps.event.addListenerOnce(n,"mouseup",function(){var f;return google.maps.event.removeListener(u),f=r.getPath(),r.setMap(null),t.push(new google.maps.Polygon({map:n,path:f})),r=null,google.maps.event.clearListeners(n.getDiv(),"mousedown"),i()})},r=function(r,u){var f,e;return this.map=r,u||(u={draggable:!0,zoomControl:!0,scrollwheel:!0,disableDoubleClickZoom:!0}),e=function(n){return function(){var t;return null!=(t=n.deferred)&&t.resolve(),_.defer(function(){return n.map.setOptions(_.extend(n.oldOptions,u))})}}(this),f=function(t){return function(){return n.info("disabling map move"),t.oldOptions=r.getOptions(),t.oldOptions.center=r.getCenter(),t.map.setOptions({draggable:!1,zoomControl:!1,scrollwheel:!1,disableDoubleClickZoom:!1})}}(this),this.engage=function(r){return function(u){return r.polys=u,r.deferred=t.defer(),f(),n.info("DrawFreeHandChildModel is engaged (drawing)."),google.maps.event.addDomListener(r.map.getDiv(),"mousedown",function(){return i(r.map,r.polys,e)}),r.deferred.promise}}(this),this}}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapMarkerChildModel",["uiGmapModelKey","uiGmapGmapUtil","uiGmapLogger","uiGmapEventsHelper","uiGmapPropertyAction","uiGmapMarkerOptions","uiGmapIMarker","uiGmapMarkerManager","uiGmapPromise",function(t,i,u,f,e,o,s,h,c){var l,a;return a=["coords","icon","options","fit"],l=function(t){function l(t,i,r,f,o,s,h,v,y,p){var w;this.model=i;this.keys=r;this.gMap=f;this.defaults=o;this.doClick=s;this.gMarkerManager=h;this.doDrawSelf=null!=v?v:!0;this.trackModel=null!=y?y:!0;this.needRedraw=null!=p?p:!1;this.internalEvents=n(this.internalEvents,this);this.setLabelOptions=n(this.setLabelOptions,this);this.setOptions=n(this.setOptions,this);this.setIcon=n(this.setIcon,this);this.setCoords=n(this.setCoords,this);this.isNotValid=n(this.isNotValid,this);this.maybeSetScopeValue=n(this.maybeSetScopeValue,this);this.createMarker=n(this.createMarker,this);this.setMyScope=n(this.setMyScope,this);this.updateModel=n(this.updateModel,this);this.handleModelChanges=n(this.handleModelChanges,this);this.destroy=n(this.destroy,this);this.deferred=c.defer();_.each(this.keys,function(n){return function(t,i){return n[i+"Key"]=_.isFunction(n.keys[i])?n.keys[i]():n.keys[i]}}(this));this.idKey=this.idKeyKey||"id";null!=this.model[this.idKey]&&(this.id=this.model[this.idKey]);l.__super__.constructor.call(this,t);this.scope.getGMarker=function(n){return function(){return n.gMarker}}(this);this.firstTime=!0;this.trackModel?(this.scope.model=this.model,this.scope.$watch("model",function(n){return function(t,i){if(t!==i)return n.handleModelChanges(t,i)}}(this),!0)):(w=new e(function(n){return function(i){if(!n.firstTime)return n.setMyScope(i,t)}}(this),!1),_.each(this.keys,function(n,i){return t.$watch(i,w.sic,!0)}));this.scope.$on("$destroy",function(n){return function(){return a(n)}}(this));this.setMyScope("all",this.model,void 0,!0);this.createMarker(this.model);u.info(this)}var a;return r(l,t),l.include(i),l.include(f),l.include(o),a=function(n){if(null!=(null!=n?n.gMarker:void 0)&&(n.removeEvents(n.externalListeners),n.removeEvents(n.internalListeners),null!=n?n.gMarker:void 0))return(n.removeFromManager&&n.gMarkerManager.remove(n.gMarker),n.gMarker.setMap(null),n.gMarker=null)},l.prototype.destroy=function(n){return null==n&&(n=!0),this.removeFromManager=n,this.scope.$destroy()},l.prototype.handleModelChanges=function(n,t){var i,r,u;return i=this.getChanges(n,t,s.keys),this.firstTime?void 0:(r=0,u=_.keys(i).length,_.each(i,function(i){return function(f,e){var o;return r+=1,o=u===r,i.setMyScope(e,n,t,!1,!0,o),i.needRedraw=!0}}(this)))},l.prototype.updateModel=function(n){return this.handleModelChanges(n,this.model)},l.prototype.renderGMarker=function(n,t){if(null==n&&(n=!0),null!=this.getProp(this.coordsKey,this.model)){if(!this.validateCoords(this.getProp(this.coordsKey,this.model)))return void u.debug("MarkerChild does not have coords yet. They may be defined later.");if(null!=t&&t(),n&&this.gMarker)return this.gMarkerManager.add(this.gMarker)}else if(n&&this.gMarker)return this.gMarkerManager.remove(this.gMarker)},l.prototype.setMyScope=function(n,t,i,r,u){var f;switch(null==i&&(i=void 0),null==r&&(r=!1),null==u&&(u=!0),null==t?t=this.model:this.model=t,this.gMarker||(this.setOptions(this.scope,u),f=!0),n){case"all":return _.each(this.keys,function(n){return function(f,e){return n.setMyScope(e,t,i,r,u)}}(this));case"icon":return this.maybeSetScopeValue("icon",t,i,this.iconKey,this.evalModelHandle,r,this.setIcon,u);case"coords":return this.maybeSetScopeValue("coords",t,i,this.coordsKey,this.evalModelHandle,r,this.setCoords,u);case"options":if(!f)return this.createMarker(t,i,r,u)}},l.prototype.createMarker=function(n,t,i,r){return null==t&&(t=void 0),null==i&&(i=!1),null==r&&(r=!0),this.maybeSetScopeValue("options",n,t,this.optionsKey,this.evalModelHandle,i,this.setOptions,r),this.firstTime=!1},l.prototype.maybeSetScopeValue=function(n,t,i,r,u,f,e,o){var s,c,h;return null==e&&(e=void 0),null==o&&(o=!0),void 0===i?(h=u(t,r),h!==this.scope[n]&&(this.scope[n]=h),void(null!=e&&e(this.scope,o))):(c=u(i,r),s=u(t,r),s!==c&&(this.scope[n]=s,!f&&(null!=e&&e(this.scope,o),this.doDrawSelf&&o))?this.gMarkerManager.draw():void 0)},l.prototype.isNotValid=function(n,t){var i,r;return null==t&&(t=!0),r=t?void 0===this.gMarker:!1,i=this.trackModel?!1:n.$id!==this.scope.$id,i||r},l.prototype.setCoords=function(n,t){return null==t&&(t=!0),this.isNotValid(n)||null==this.gMarker?void 0:this.renderGMarker(t,function(n){return function(){return n.gMarker.setPosition(n.getCoords(n.getProp(n.coordsKey,n.model))),n.gMarker.setVisible(n.validateCoords(n.getProp(n.coordsKey,n.model)))}}(this))},l.prototype.setIcon=function(n,t){return null==t&&(t=!0),this.isNotValid(n)||null==this.gMarker?void 0:this.renderGMarker(t,function(n){return function(){return n.gMarker.setIcon(n.getProp(n.iconKey,n.model)),n.gMarker.setPosition(n.getCoords(n.getProp(n.coordsKey,n.model))),n.gMarker.setVisible(n.validateCoords(n.getProp(n.coordsKey,n.model)))}}(this))},l.prototype.setOptions=function(n,t){var i;return null==t&&(t=!0),this.isNotValid(n,!1)?void 0:(this.renderGMarker(t,function(n){return function(){var t,i,r;return t=n.getProp(n.coordsKey,n.model),i=n.getProp(n.iconKey,n.model),r=n.getProp(n.optionsKey,n.model),n.opts=n.createOptions(t,i,r),null!=n.gMarker&&n.isLabel(n.gMarker===n.isLabel(n.opts))?n.gMarker.setOptions(n.opts):n.firstTime||null!=n.gMarker&&(n.gMarkerManager.remove(n.gMarker),n.gMarker=null),n.gMarker||(n.gMarker=n.isLabel(n.opts)?new MarkerWithLabel(n.setLabelOptions(n.opts)):new google.maps.Marker(n.opts),_.extend(n.gMarker,{model:n.model})),n.externalListeners&&n.removeEvents(n.externalListeners),n.internalListeners&&n.removeEvents(n.internalListeners),n.externalListeners=n.setEvents(n.gMarker,n.scope,n.model,["dragend"]),n.internalListeners=n.setEvents(n.gMarker,{events:n.internalEvents(),$evalAsync:function(){}},n.model),null!=n.id?n.gMarker.key=n.id:void 0}}(this)),this.gMarker&&(this.gMarker.getMap()||this.gMarkerManager.type!==h.type)?this.deferred.resolve(this.gMarker):(this.gMarker||this.deferred.reject("gMarker is null"),(null!=(i=this.gMarker)?i.getMap():0)&&this.gMarkerManager.type===h.type||(u.warn("gMarker has no map yet"),this.deferred.resolve(this.gMarker))),this.model[this.fitKey]?this.gMarkerManager.fit():void 0)},l.prototype.setLabelOptions=function(n){return n.labelAnchor=this.getLabelPositionPoint(n.labelAnchor),n},l.prototype.internalEvents=function(){return{dragend:function(n){return function(t,i,r,u){var f,e,o;return e=n.trackModel?n.scope.model:n.model,o=n.setCoordsFromEvent(n.modelOrKey(e,n.coordsKey),n.gMarker.getPosition()),e=n.setVal(r,n.coordsKey,o),f=n.scope.events,null!=(null!=f?f.dragend:void 0)&&f.dragend(t,i,e,u),n.scope.$apply()}}(this),click:function(n){return function(t,i,r,u){var f;return f=_.isFunction(n.clickKey)?n.clickKey:n.getProp(n.clickKey,n.model),n.doClick&&null!=f?n.scope.$evalAsync(f(t,i,n.model,u)):void 0}}(this)}},l}(t)}])}.call(this),function(){var n={}.hasOwnProperty,i=function(t,i){function u(){this.constructor=t}for(var r in i)n.call(i,r)&&(t[r]=i[r]);return u.prototype=i.prototype,t.prototype=new u,t.__super__=i.prototype,t};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygonChildModel",["uiGmapPolygonOptionsBuilder","uiGmapLogger","$timeout","uiGmaparray-sync","uiGmapGmapUtil","uiGmapEventsHelper",function(n,r,u,f,e,o){return function(n){function u(n,i,u,e,s){var c,l,h;return this.scope=n,this.attrs=i,this.map=u,this.defaults=e,this.model=s,this.listeners=void 0,t.isUndefined(n.path)||null===n.path||!this.validatePath(n.path)?void r.error("polygon: no valid path attribute found"):(l=this.convertPathPoints(n.path),h=new google.maps.Polygon(this.buildOpts(l)),n.fit&&this.extendMapBounds(this.map,l),!n["static"]&&t.isDefined(n.editable)&&n.$watch("editable",function(n,t){if(n!==t)return h.setEditable(n)}),t.isDefined(n.draggable)&&n.$watch("draggable",function(n,t){if(n!==t)return h.setDraggable(n)}),t.isDefined(n.visible)&&n.$watch("visible",function(n,t){if(n!==t)return h.setVisible(n)}),t.isDefined(n.geodesic)&&n.$watch("geodesic",function(n){return function(t,i){if(t!==i)return h.setOptions(n.buildOpts(h.getPath()))}}(this)),t.isDefined(n.stroke)&&t.isDefined(n.stroke.opacity)&&n.$watch("stroke.opacity",function(n){return function(){return h.setOptions(n.buildOpts(h.getPath()))}}(this)),t.isDefined(n.stroke)&&t.isDefined(n.stroke.weight)&&n.$watch("stroke.weight",function(n){return function(t,i){if(t!==i)return h.setOptions(n.buildOpts(h.getPath()))}}(this)),t.isDefined(n.stroke)&&t.isDefined(n.stroke.color)&&n.$watch("stroke.color",function(n){return function(t,i){if(t!==i)return h.setOptions(n.buildOpts(h.getPath()))}}(this)),t.isDefined(n.fill)&&t.isDefined(n.fill.color)&&n.$watch("fill.color",function(n){return function(t,i){if(t!==i)return h.setOptions(n.buildOpts(h.getPath()))}}(this)),t.isDefined(n.fill)&&t.isDefined(n.fill.opacity)&&n.$watch("fill.opacity",function(n){return function(t,i){if(t!==i)return h.setOptions(n.buildOpts(h.getPath()))}}(this)),t.isDefined(n.zIndex)&&n.$watch("zIndex",function(n){return function(t,i){if(t!==i)return h.setOptions(n.buildOpts(h.getPath()))}}(this)),t.isDefined(n.events)&&null!==n.events&&t.isObject(n.events)&&(this.listeners=o.setEvents(h,n,n)),c=f(h.getPath(),n,"path",function(t){return function(i){if(n.fit)return t.extendMapBounds(t.map,i)}}(this)),void n.$on("$destroy",function(n){return function(){return h.setMap(null),n.removeEvents(n.listeners),c?(c(),c=null):void 0}}(this)))}return i(u,n),u.include(e),u.include(o),u}(n)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolylineChildModel",["uiGmapPolylineOptionsBuilder","uiGmapLogger","$timeout","uiGmaparray-sync","uiGmapGmapUtil","uiGmapEventsHelper",function(i,u,f,e,o,s){return function(i){function f(i,r,f,o,s){var h;this.scope=i;this.attrs=r;this.map=f;this.defaults=o;this.model=s;this.clean=n(this.clean,this);h=function(n){return function(){var t;return t=n.convertPathPoints(n.scope.path),null!=n.polyline&&n.clean(),t.length>0&&(n.polyline=new google.maps.Polyline(n.buildOpts(t))),n.polyline?(n.scope.fit&&n.extendMapBounds(f,t),e(n.polyline.getPath(),n.scope,"path",function(t){if(n.scope.fit)return n.extendMapBounds(f,t)}),n.listeners=n.model?n.setEvents(n.polyline,n.scope,n.model):n.setEvents(n.polyline,n.scope,n.scope)):void 0}}(this);h();i.$watch("path",function(n){return function(t,i){if(!_.isEqual(t,i)||!n.polyline)return h()}}(this));!i["static"]&&t.isDefined(i.editable)&&i.$watch("editable",function(n){return function(t,i){var r;if(t!==i&&null!=(r=n.polyline))return r.setEditable(t)}}(this));t.isDefined(i.draggable)&&i.$watch("draggable",function(n){return function(t,i){var r;if(t!==i&&null!=(r=n.polyline))return r.setDraggable(t)}}(this));t.isDefined(i.visible)&&i.$watch("visible",function(n){return function(t,i){var r;if(t!==i&&null!=(r=n.polyline))return r.setVisible(t)}}(this));t.isDefined(i.geodesic)&&i.$watch("geodesic",function(n){return function(t,i){var r;if(t!==i&&null!=(r=n.polyline))return r.setOptions(n.buildOpts(n.polyline.getPath()))}}(this));t.isDefined(i.stroke)&&t.isDefined(i.stroke.weight)&&i.$watch("stroke.weight",function(n){return function(t,i){var r;if(t!==i&&null!=(r=n.polyline))return r.setOptions(n.buildOpts(n.polyline.getPath()))}}(this));t.isDefined(i.stroke)&&t.isDefined(i.stroke.color)&&i.$watch("stroke.color",function(n){return function(t,i){var r;if(t!==i&&null!=(r=n.polyline))return r.setOptions(n.buildOpts(n.polyline.getPath()))}}(this));t.isDefined(i.stroke)&&t.isDefined(i.stroke.opacity)&&i.$watch("stroke.opacity",function(n){return function(t,i){var r;if(t!==i&&null!=(r=n.polyline))return r.setOptions(n.buildOpts(n.polyline.getPath()))}}(this));t.isDefined(i.icons)&&i.$watch("icons",function(n){return function(t,i){var r;if(t!==i&&null!=(r=n.polyline))return r.setOptions(n.buildOpts(n.polyline.getPath()))}}(this));i.$on("$destroy",function(n){return function(){return n.clean(),n.scope=null}}(this));u.info(this)}return r(f,i),f.include(o),f.include(s),f.prototype.clean=function(){var n,t;return this.removeEvents(this.listeners),null!=(t=this.polyline)&&t.setMap(null),this.polyline=null,n?(n(),n=null):void 0},f.prototype.destroy=function(){return this.scope.$destroy()},f}(i)}])}.call(this),function(){var i=function(n,t){return function(){return n.apply(t,arguments)}},r={}.hasOwnProperty,u=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.models.child").factory("uiGmapWindowChildModel",["uiGmapBaseObject","uiGmapGmapUtil","uiGmapLogger","$compile","$http","$templateCache","uiGmapChromeFixes","uiGmapEventsHelper",function(r,f,e,o,s,h,c,l){return function(r){function a(n,t,r,u,f,o,s,h,c){this.model=n;this.scope=t;this.opts=r;this.isIconVisibleOnClick=u;this.mapCtrl=f;this.markerScope=o;this.element=s;this.needToManualDestroy=null!=h?h:!1;this.markerIsVisibleAfterWindowClose=null!=c?c:!0;this.destroy=i(this.destroy,this);this.remove=i(this.remove,this);this.getLatestPosition=i(this.getLatestPosition,this);this.hideWindow=i(this.hideWindow,this);this.showWindow=i(this.showWindow,this);this.handleClick=i(this.handleClick,this);this.watchOptions=i(this.watchOptions,this);this.watchCoords=i(this.watchCoords,this);this.createGWin=i(this.createGWin,this);this.watchElement=i(this.watchElement,this);this.watchAndDoShow=i(this.watchAndDoShow,this);this.doShow=i(this.doShow,this);this.getGmarker=function(){var n,t;if(null!=(null!=(n=this.markerScope)?n.getGMarker:void 0)&&null!=(t=this.markerScope))return t.getGMarker()};this.listeners=[];this.createGWin();null!=this.getGmarker()&&this.getGmarker().setClickable(!0);this.watchElement();this.watchOptions();this.watchCoords();this.watchAndDoShow();this.scope.$on("$destroy",function(n){return function(){return n.destroy()}}(this));e.info(this)}return u(a,r),a.include(f),a.include(l),a.prototype.doShow=function(){return this.scope.show?this.showWindow():this.hideWindow()},a.prototype.watchAndDoShow=function(){return null!=this.model.show&&(this.scope.show=this.model.show),this.scope.$watch("show",this.doShow,!0),this.doShow()},a.prototype.watchElement=function(){return this.scope.$watch(function(n){return function(){var t;if(n.element||n.html)return n.html!==n.element.html()&&n.gWin?(null!=(t=n.opts)&&(t.content=void 0),n.remove(),n.createGWin()):void 0}}(this))},a.prototype.createGWin=function(){var t,i,r,u;return null==this.gWin&&(t={},null!=this.opts&&(this.scope.coords&&(this.opts.position=this.getCoords(this.scope.coords)),t=this.opts),this.element&&(this.html=_.isObject(this.element)?this.element.html():this.element),i=this.scope.options?this.scope.options:t,this.opts=this.createWindowOptions(this.getGmarker(),this.markerScope||this.scope,this.html,i)),null==this.opts||this.gWin?void 0:(this.gWin=this.opts.boxClass&&n.InfoBox&&"function"==typeof n.InfoBox?new n.InfoBox(this.opts):new google.maps.InfoWindow(this.opts),this.handleClick(null!=(r=this.scope)&&null!=(u=r.options)?u.forceClick:void 0),this.doShow(),this.listeners.push(google.maps.event.addListener(this.gWin,"closeclick",function(n){return function(){return n.getGmarker()&&(n.getGmarker().setAnimation(n.oldMarkerAnimation),n.markerIsVisibleAfterWindowClose&&_.delay(function(){return n.getGmarker().setVisible(!1),n.getGmarker().setVisible(n.markerIsVisibleAfterWindowClose)},250)),n.gWin.isOpen(!1),n.model.show=!1,null!=n.scope.closeClick?n.scope.$apply(n.scope.closeClick()):n.scope.$apply()}}(this))))},a.prototype.watchCoords=function(){var n;return n=null!=this.markerScope?this.markerScope:this.scope,n.$watch("coords",function(n){return function(t,i){var r;if(t!==i){if(null==t)n.hideWindow();else if(!n.validateCoords(t))return void e.error("WindowChildMarker cannot render marker as scope.coords as no position on marker: "+JSON.stringify(n.model));if(r=n.getCoords(t),n.gWin.setPosition(r),n.opts)return n.opts.position=r}}}(this),!0)},a.prototype.watchOptions=function(){return this.scope.$watch("options",function(n){return function(t,i){if(t!==i&&(n.opts=t,null!=n.gWin)){if(n.gWin.setOptions(n.opts),null!=n.opts.visible&&n.opts.visible)return n.showWindow();if(null!=n.opts.visible)return n.hideWindow()}}}(this),!0)},a.prototype.handleClick=function(n){var t,i;if(null!=this.gWin)return t=function(n){return function(){var t,i,r;return null==n.gWin&&n.createGWin(),(t=null!=n.scope.coords?null!=(i=n.gWin)?i.getPosition():void 0:null!=(r=n.getGmarker())?r.getPosition():void 0)?(null!=n.gWin&&(n.gWin.setPosition(t),n.opts&&(n.opts.position=t),n.showWindow()),null!=n.getGmarker()?(n.initialMarkerVisibility=n.getGmarker().getVisible(),n.oldMarkerAnimation=n.getGmarker().getAnimation(),n.getGmarker().setVisible(n.isIconVisibleOnClick)):void 0):void 0}}(this),n&&t(),i=this.getGmarker(),i?this.listeners=this.listeners.concat(this.setEvents(i,{events:{click:t}},this.model)):void 0},a.prototype.showWindow=function(){var r,n,i;if(null!=this.gWin)return(n=function(n){return function(){return _.defer(function(){if(!n.gWin.isOpen())return(n.gWin.open(n.mapCtrl,n.getGmarker()?n.getGmarker():void 0),n.model.show=n.gWin.isOpen(),_.defer(function(){return c.maybeRepaint(n.gWin.content)}))})}}(this),this.scope.templateUrl?s.get(this.scope.templateUrl,{cache:h}).then(function(i){return function(r){var f,u;return u=i.scope.$new(),t.isDefined(i.scope.templateParameter)&&(u.parameter=i.scope.templateParameter),f=o(r.data)(u),i.gWin.setContent(f[0]),n()}}(this)):this.scope.template?(i=this.scope.$new(),t.isDefined(this.scope.templateParameter)&&(i.parameter=this.scope.templateParameter),r=o(this.scope.template)(i),this.gWin.setContent(r[0]),n()):n())},a.prototype.hideWindow=function(){if(null!=this.gWin&&this.gWin.isOpen())return this.gWin.close()},a.prototype.getLatestPosition=function(n){return null==this.gWin||null==this.getGmarker()||n?n?this.gWin.setPosition(n):void 0:this.gWin.setPosition(this.getGmarker().getPosition())},a.prototype.remove=function(){return this.hideWindow(),this.removeEvents(this.listeners),this.listeners.length=0,delete this.gWin,delete this.opts},a.prototype.destroy=function(n){var t;return null==n&&(n=!1),this.remove(),null==this.scope||(null!=(t=this.scope)?t.$$destroyed:void 0)||!this.needToManualDestroy&&!n?void 0:this.scope.$destroy()},a}(r)}])}.call(this),function(){var n={}.hasOwnProperty,i=function(t,i){function u(){this.constructor=t}for(var r in i)n.call(i,r)&&(t[r]=i[r]);return u.prototype=i.prototype,t.prototype=new u,t.__super__=i.prototype,t};t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapCircleParentModel",["uiGmapLogger","$timeout","uiGmapGmapUtil","uiGmapEventsHelper","uiGmapCircleOptionsBuilder",function(n,r,u,f,e){return function(r){function e(i,r,f,e,o){var s,h;this.scope=i;this.attrs=f;this.map=e;this.DEFAULTS=o;s=new google.maps.Circle(this.buildOpts(u.getCoords(i.center),i.radius));this.setMyOptions=function(n){return function(t,r){if(!_.isEqual(t,r))return s.setOptions(n.buildOpts(u.getCoords(i.center),i.radius))}}(this);this.props=this.props.concat([{prop:"center",isColl:!0},{prop:"fill",isColl:!0},"radius"]);this.watchProps();h=this.setEvents(s,i,i);google.maps.event.addListener(s,"radius_changed",function(){return i.$evalAsync(function(){return i.radius=s.getRadius()})});google.maps.event.addListener(s,"center_changed",function(){return i.$evalAsync(function(){return t.isDefined(i.center.type)?(i.center.coordinates[1]=s.getCenter().lat(),i.center.coordinates[0]=s.getCenter().lng()):(i.center.latitude=s.getCenter().lat(),i.center.longitude=s.getCenter().lng())})});i.$on("$destroy",function(n){return function(){return n.removeEvents(h),s.setMap(null)}}(this));n.info(this)}return i(e,r),e.include(u),e.include(f),e}(e)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapDrawingManagerParentModel",["uiGmapLogger","$timeout",function(){return function(){function n(n,t,i,r){var u;this.scope=n;this.attrs=i;this.map=r;u=new google.maps.drawing.DrawingManager(this.scope.options);u.setMap(this.map);null!=this.scope.control&&(this.scope.control.getDrawingManager=function(){return u});!this.scope["static"]&&this.scope.options&&this.scope.$watch("options",function(n){if(null!=u)return u.setOptions(n)},!0);n.$on("$destroy",function(){return u.setMap(null),u=null})}return n}()}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapIMarkerParentModel",["uiGmapModelKey","uiGmapLogger",function(i,u){return function(i){function f(i,r,e,o){if(this.scope=i,this.element=r,this.attrs=e,this.map=o,this.onDestroy=n(this.onDestroy,this),this.onWatch=n(this.onWatch,this),this.watch=n(this.watch,this),this.validateScope=n(this.validateScope,this),f.__super__.constructor.call(this,this.scope),this.$log=u,!this.validateScope(i))throw new String("Unable to construct IMarkerParentModel due to invalid scope");this.doClick=t.isDefined(e.click);null!=i.options&&(this.DEFAULTS=i.options);this.watch("coords",this.scope);this.watch("icon",this.scope);this.watch("options",this.scope);i.$on("$destroy",function(n){return function(){return n.onDestroy(i)}}(this))}return r(f,i),f.prototype.DEFAULTS={},f.prototype.validateScope=function(n){var t;return null==n?(this.$log.error(this.constructor.name+": invalid scope used"),!1):(t=null!=n.coords,t?t:(this.$log.error(this.constructor.name+": no valid coords attribute found"),!1))},f.prototype.watch=function(n,t,i){return null==i&&(i=!0),t.$watch(n,function(i){return function(r,u){if(!_.isEqual(r,u))return i.onWatch(n,t,r,u)}}(this),i)},f.prototype.onWatch=function(){},f.prototype.onDestroy=function(){throw new String("OnDestroy Not Implemented!!");},f}(i)}])}.call(this),function(){var n={}.hasOwnProperty,i=function(t,i){function u(){this.constructor=t}for(var r in i)n.call(i,r)&&(t[r]=i[r]);return u.prototype=i.prototype,t.prototype=new u,t.__super__=i.prototype,t};t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapIWindowParentModel",["uiGmapModelKey","uiGmapGmapUtil","uiGmapLogger",function(n,t,r){return function(n){function u(n,t,i,f,e,o,s,h){u.__super__.constructor.call(this,n);this.$log=r;this.$timeout=e;this.$compile=o;this.$http=s;this.$templateCache=h;this.DEFAULTS={};null!=n.options&&(this.DEFAULTS=n.options)}return i(u,n),u.include(t),u}(n)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapLayerParentModel",["uiGmapBaseObject","uiGmapLogger","$timeout",function(i,u){return function(i){function f(i,r,f,e,o,s){return this.scope=i,this.element=r,this.attrs=f,this.gMap=e,this.onLayerCreated=null!=o?o:void 0,this.$log=null!=s?s:u,this.createGoogleLayer=n(this.createGoogleLayer,this),null==this.attrs.type?void this.$log.info("type attribute for the layer directive is mandatory. Layer creation aborted!!"):(this.createGoogleLayer(),this.doShow=!0,t.isDefined(this.attrs.show)&&(this.doShow=this.scope.show),this.doShow&&null!=this.gMap&&this.layer.setMap(this.gMap),this.scope.$watch("show",function(n){return function(t,i){if(t!==i)return(n.doShow=t,n.layer.setMap(t?n.gMap:null))}}(this),!0),this.scope.$watch("options",function(n){return function(t,i){if(t!==i)return(n.layer.setMap(null),n.layer=null,n.createGoogleLayer())}}(this),!0),void this.scope.$on("$destroy",function(n){return function(){return n.layer.setMap(null)}}(this)))}return r(f,i),f.prototype.createGoogleLayer=function(){var n;return this.layer=null==this.attrs.options?void 0===this.attrs.namespace?new google.maps[this.attrs.type]:new google.maps[this.attrs.namespace][this.attrs.type]:void 0===this.attrs.namespace?new google.maps[this.attrs.type](this.scope.options):new google.maps[this.attrs.namespace][this.attrs.type](this.scope.options),null!=this.layer&&null!=this.onLayerCreated&&"function"==typeof(n=this.onLayerCreated(this.scope,this.layer))?n(this.layer):void 0},f}(i)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMapTypeParentModel",["uiGmapBaseObject","uiGmapLogger",function(i,u){return function(i){function f(i,r,f,e,o){return this.scope=i,this.element=r,this.attrs=f,this.gMap=e,this.$log=null!=o?o:u,this.hideOverlay=n(this.hideOverlay,this),this.showOverlay=n(this.showOverlay,this),this.refreshMapType=n(this.refreshMapType,this),this.createMapType=n(this.createMapType,this),null==this.attrs.options?void this.$log.info("options attribute for the map-type directive is mandatory. Map type creation aborted!!"):(this.id=this.gMap.overlayMapTypesCount=this.gMap.overlayMapTypesCount+1||0,this.doShow=!0,this.createMapType(),t.isDefined(this.attrs.show)&&(this.doShow=this.scope.show),this.doShow&&null!=this.gMap&&this.showOverlay(),this.scope.$watch("show",function(n){return function(t,i){if(t!==i)return(n.doShow=t,t?n.showOverlay():n.hideOverlay())}}(this),!0),this.scope.$watch("options",function(n){return function(t,i){if(!_.isEqual(t,i))return n.refreshMapType()}}(this),!0),t.isDefined(this.attrs.refresh)&&this.scope.$watch("refresh",function(n){return function(t,i){if(!_.isEqual(t,i))return n.refreshMapType()}}(this),!0),void this.scope.$on("$destroy",function(n){return function(){return n.hideOverlay(),n.mapType=null}}(this)))}return r(f,i),f.prototype.createMapType=function(){if(null!=this.scope.options.getTile)this.mapType=this.scope.options;else{if(null==this.scope.options.getTileUrl)return void this.$log.info("options should provide either getTile or getTileUrl methods. Map type creation aborted!!");this.mapType=new google.maps.ImageMapType(this.scope.options)}return this.attrs.id&&this.scope.id&&(this.gMap.mapTypes.set(this.scope.id,this.mapType),t.isDefined(this.attrs.show)||(this.doShow=!1)),this.mapType.layerId=this.id},f.prototype.refreshMapType=function(){return this.hideOverlay(),this.mapType=null,this.createMapType(),this.doShow&&null!=this.gMap?this.showOverlay():void 0},f.prototype.showOverlay=function(){return this.gMap.overlayMapTypes.push(this.mapType)},f.prototype.hideOverlay=function(){var n;return n=!1,this.gMap.overlayMapTypes.forEach(function(t){return function(i,r){n||i.layerId!==t.id||(n=!0,t.gMap.overlayMapTypes.removeAt(r))}}(this))},f}(i)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapMarkersParentModel",["uiGmapIMarkerParentModel","uiGmapModelsWatcher","uiGmapPropMap","uiGmapMarkerChildModel","uiGmap_async","uiGmapClustererMarkerManager","uiGmapMarkerManager","$timeout","uiGmapIMarker","uiGmapPromise","uiGmapGmapUtil",function(i,u,f,e,o,s,h,c,l,a,v){return function(i){function c(t,i,r,u){this.onDestroy=n(this.onDestroy,this);this.newChildMarker=n(this.newChildMarker,this);this.updateChild=n(this.updateChild,this);this.pieceMeal=n(this.pieceMeal,this);this.reBuildMarkers=n(this.reBuildMarkers,this);this.createMarkersFromScratch=n(this.createMarkersFromScratch,this);this.validateScope=n(this.validateScope,this);this.onWatch=n(this.onWatch,this);var e;c.__super__.constructor.call(this,t,i,r,u);e=this;this.scope.markerModels=new f;this.$log.info(this);this.doRebuildAll=null!=this.scope.doRebuildAll?this.scope.doRebuildAll:!1;this.setIdKey(t);this.scope.$watch("doRebuildAll",function(n){return function(t,i){if(t!==i)return n.doRebuildAll=t}}(this));(null==t.models||0===t.models.length)&&(this.modelsRendered=!1);this.scope.$watch("models",function(n){return function(i,r){if(!_.isEqual(i,r)||!n.modelsRendered)return 0===i.length&&0===r.length?void 0:(n.modelsRendered=!0,n.onWatch("models",t,i,r))}}(this),!this.isTrue(r.modelsbyref));this.watch("doCluster",t);this.watch("clusterOptions",t);this.watch("clusterEvents",t);this.watch("fit",t);this.watch("idKey",t);this.gMarkerManager=void 0;this.createMarkersFromScratch(t)}return r(c,i),c.include(v),c.include(u),c.prototype.onWatch=function(n,t,i,r){return"idKey"===n&&i!==r&&(this.idKey=i),this.doRebuildAll?this.reBuildMarkers(t):this.pieceMeal(t)},c.prototype.validateScope=function(n){var i;return i=t.isUndefined(n.models)||void 0===n.models,i&&this.$log.error(this.constructor.name+": no valid models attribute found"),c.__super__.validateScope.call(this,n)||i},c.prototype.createMarkersFromScratch=function(n){return n.doCluster?(n.clusterEvents&&(this.clusterInternalOptions=_.once(function(t){return function(){var i,r,u,f;return i=t,t.origClusterEvents?void 0:(t.origClusterEvents={click:null!=(r=n.clusterEvents)?r.click:void 0,mouseout:null!=(u=n.clusterEvents)?u.mouseout:void 0,mouseover:null!=(f=n.clusterEvents)?f.mouseover:void 0},_.extend(n.clusterEvents,{click:function(n){return i.maybeExecMappedEvent(n,"click")},mouseout:function(n){return i.maybeExecMappedEvent(n,"mouseout")},mouseover:function(n){return i.maybeExecMappedEvent(n,"mouseover")}}))}}(this))()),n.clusterOptions||n.clusterEvents?void 0===this.gMarkerManager?this.gMarkerManager=new s(this.map,void 0,n.clusterOptions,this.clusterInternalOptions):this.gMarkerManager.opt_options!==n.clusterOptions&&(this.gMarkerManager=new s(this.map,void 0,n.clusterOptions,this.clusterInternalOptions)):this.gMarkerManager=new s(this.map)):this.gMarkerManager=new h(this.map),this.cleanOnResolve(o.waitOrGo(this,function(t){return function(){return o.each(n.models,function(i){return t.newChildMarker(i,n)},!1).then(function(){return t.gMarkerManager.draw(),n.fit?t.gMarkerManager.fit():void 0})}}(this)))},c.prototype.reBuildMarkers=function(n){var t;if(n.doRebuild||void 0===n.doRebuild)return(null!=(t=this.scope.markerModels)?t.length:void 0)?this.onDestroy(n).then(function(t){return function(){return t.createMarkersFromScratch(n)}}(this)):this.createMarkersFromScratch(n)},c.prototype.pieceMeal=function(n){var t;if(!n.$$destroyed&&!this.isClearing&&!this.updateInProgress())return t=o.defaultChunkSize,null!=this.scope.models&&this.scope.models.length>0&&this.scope.markerModels.length>0?this.figureOutState(this.idKey,n,this.scope.markerModels,this.modelKeyComparison,function(i){return function(r){var u;return u=r,i.cleanOnResolve(o.waitOrGo(i,function(){return o.each(u.removals,function(n){if(null!=n)return(null!=n.destroy&&n.destroy(),i.scope.markerModels.remove(n.id))},t).then(function(){return o.each(u.adds,function(t){return i.newChildMarker(t,n)},t)}).then(function(){return o.each(u.updates,function(n){return i.updateChild(n.child,n.model)},t)}).then(function(){if((u.adds.length>0||u.removals.length>0||u.updates.length>0)&&(i.gMarkerManager.draw(),n.markerModels=i.scope.markerModels,n.fit))return i.gMarkerManager.fit()})}))}}(this)):(this.inProgress=!1,this.reBuildMarkers(n))},c.prototype.updateChild=function(n,t){return null==t[this.idKey]?void this.$log.error("Marker model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key."):n.updateModel(t)},c.prototype.newChildMarker=function(n,t){var i,r,f,u;return null==n[this.idKey]?void this.$log.error("Marker model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key."):(this.$log.info("child",i,"markers",this.scope.markerModels),r=t.$new(!0),r.events=t.events,u={},_.each(l.scopeKeys,function(n,i){return u[i]=t[i]}),i=new e(r,n,u,this.map,this.DEFAULTS,this.doClick,this.gMarkerManager,f=!1),this.scope.markerModels.put(n[this.idKey],i),i)},c.prototype.onDestroy=function(){return this.destroyPromise().then(function(n){return function(){return n.cleanOnResolve(o.waitOrGo(n,function(){return n.scope.markerModels.each(function(n){if(null!=n)return n.destroy(!1)}),delete n.scope.markerModels,null!=n.gMarkerManager&&n.gMarkerManager.clear(),n.scope.markerModels=new f,a.resolve().then(function(){return n.isClearing=!1})}))}}(this))},c.prototype.maybeExecMappedEvent=function(n,t){var i,r;if(_.isFunction(null!=(r=this.scope.clusterEvents)?r[t]:void 0)&&(i=this.mapClusterToMarkerModels(n),this.origClusterEvents[t]))return this.origClusterEvents[t](i.cluster,i.mapped)},c.prototype.mapClusterToMarkerModels=function(n){var t;return t=n.getMarkers().map(function(n){return function(t){return n.scope.markerModels.get(t.key).model}}(this)),{cluster:n,mapped:t}},c}(i)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapPolygonsParentModel",["$timeout","uiGmapLogger","uiGmapModelKey","uiGmapModelsWatcher","uiGmapPropMap","uiGmapPolygonChildModel","uiGmap_async","uiGmapPromise",function(i,u,f,e,o,s,h,c){return function(i){function f(t,i,r,e,s){var h;this.scope=t;this.element=i;this.attrs=r;this.gMap=e;this.defaults=s;this.modelKeyComparison=n(this.modelKeyComparison,this);this.createChild=n(this.createChild,this);this.pieceMeal=n(this.pieceMeal,this);this.createAllNew=n(this.createAllNew,this);this.watchIdKey=n(this.watchIdKey,this);this.createChildScopes=n(this.createChildScopes,this);this.watchOurScope=n(this.watchOurScope,this);this.watchDestroy=n(this.watchDestroy,this);this.onDestroy=n(this.onDestroy,this);this.rebuildAll=n(this.rebuildAll,this);this.doINeedToWipe=n(this.doINeedToWipe,this);this.watchModels=n(this.watchModels,this);this.watch=n(this.watch,this);f.__super__.constructor.call(this,t);h=this;this.$log=u;this.plurals=new o;this.scopePropNames=["path","stroke","clickable","draggable","editable","geodesic","icons","visible"];_.each(this.scopePropNames,function(n){return function(t){return n[t+"Key"]=void 0}}(this));this.models=void 0;this.firstTime=!0;this.$log.info(this);this.watchOurScope(t);this.createChildScopes()}return r(f,i),f.include(e),f.prototype.watch=function(n,t,i){return n.$watch(t,function(n){return function(r,u){if(r!==u)return(n[i]="function"==typeof r?r():r,n.cleanOnResolve(h.waitOrGo(n,function(){return h.each(n.plurals.values(),function(r){return r.scope[t]="self"===n[i]?r:r[n[i]]})})))}}(this))},f.prototype.watchModels=function(n){return n.$watch("models",function(t){return function(i,r){if(!_.isEqual(i,r))return t.doINeedToWipe(i)?t.rebuildAll(n,!0,!0):t.createChildScopes(!1)}}(this),!0)},f.prototype.doINeedToWipe=function(n){var t;return t=null!=n?0===n.length:!0,this.plurals.length>0&&t},f.prototype.rebuildAll=function(n,t,i){return this.onDestroy(i).then(function(n){return function(){if(t)return n.createChildScopes()}}(this))},f.prototype.onDestroy=function(n){return this.destroyPromise().then(function(t){return function(){return t.cleanOnResolve(h.waitOrGo(t,function(){return t.plurals.each(function(n){return n.destroy()}),c.resolve()})).then(function(){return n&&delete t.plurals,t.plurals=new o,t.isClearing=!1})}}(this))},f.prototype.watchDestroy=function(n){return n.$on("$destroy",function(t){return function(){return t.rebuildAll(n,!1,!0)}}(this))},f.prototype.watchOurScope=function(n){return _.each(this.scopePropNames,function(t){return function(i){var r;return r=i+"Key",t[r]="function"==typeof n[i]?n[i]():n[i],t.watch(n,i,r)}}(this))},f.prototype.createChildScopes=function(n){return null==n&&(n=!0),t.isUndefined(this.scope.models)?void this.$log.error("No models to create Polygons from! I Need direct models!"):null!=this.gMap&&null!=this.scope.models?(this.watchIdKey(this.scope),n?this.createAllNew(this.scope,!1):this.pieceMeal(this.scope,!1)):void 0},f.prototype.watchIdKey=function(n){return this.setIdKey(n),n.$watch("idKey",function(t){return function(i,r){if(i!==r&&null==i)return(t.idKey=i,t.rebuildAll(n,!0,!0))}}(this))},f.prototype.createAllNew=function(n,t){return null==t&&(t=!1),this.models=n.models,this.firstTime&&(this.watchModels(n),this.watchDestroy(n)),this.cleanOnResolve(h.waitOrGo(this,function(t){return function(){return h.each(n.models,function(n){return t.createChild(n,t.gMap)})}}(this))).then(function(n){return function(){return n.firstTime=!1}}(this))},f.prototype.pieceMeal=function(n,t){return null==t&&(t=!0),n.$$destroyed||this.isClearing||this.updateInProgress()&&this.plurals.length>0?void 0:(this.models=n.models,null!=n&&null!=n.models&&n.models.length>0&&this.plurals.length>0?this.figureOutState(this.idKey,n,this.plurals,this.modelKeyComparison,function(n){return function(t){var i;return i=t,n.cleanOnResolve(h.waitOrGo(n,function(){return h.each(i.removals,function(t){var i;return i=n.plurals.get(t),null!=i?(i.destroy(),n.plurals.remove(t)):void 0},!1).then(function(){return h.each(i.adds,function(t){return n.createChild(t,n.gMap)},!1)})}))}}(this)):(this.inProgress=!1,this.rebuildAll(this.scope,!0,!0)))},f.prototype.createChild=function(n,t){var r,i;return i=this.scope.$new(!1),this.setChildScope(this.scopePropNames,i,n),i.$watch("model",function(n){return function(t,r){if(t!==r)return n.setChildScope(i,t)}}(this),!0),i["static"]=this.scope["static"],r=new s(i,this.attrs,t,this.defaults,n),null==n[this.idKey]?void this.$log.error("Polygon model has no id to assign a child to.\nThis is required for performance. Please assign id,\nor redirect id to a different key."):(this.plurals.put(n[this.idKey],r),r)},f.prototype.modelKeyComparison=function(n,t){return _.isEqual(this.evalModelHandle(n,this.scope.path),this.evalModelHandle(t,this.scope.path))},f}(f)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapPolylinesParentModel",["$timeout","uiGmapLogger","uiGmapModelKey","uiGmapModelsWatcher","uiGmapPropMap","uiGmapPolylineChildModel","uiGmap_async","uiGmapPromise",function(i,u,f,e,o,s,h,c){return function(i){function f(t,i,r,e,s){var h;this.scope=t;this.element=i;this.attrs=r;this.gMap=e;this.defaults=s;this.modelKeyComparison=n(this.modelKeyComparison,this);this.setChildScope=n(this.setChildScope,this);this.createChild=n(this.createChild,this);this.pieceMeal=n(this.pieceMeal,this);this.createAllNew=n(this.createAllNew,this);this.watchIdKey=n(this.watchIdKey,this);this.createChildScopes=n(this.createChildScopes,this);this.watchOurScope=n(this.watchOurScope,this);this.watchDestroy=n(this.watchDestroy,this);this.onDestroy=n(this.onDestroy,this);this.rebuildAll=n(this.rebuildAll,this);this.doINeedToWipe=n(this.doINeedToWipe,this);this.watchModels=n(this.watchModels,this);this.watch=n(this.watch,this);f.__super__.constructor.call(this,t);h=this;this.$log=u;this.plurals=new o;this.scopePropNames=["path","stroke","clickable","draggable","editable","geodesic","icons","visible"];_.each(this.scopePropNames,function(n){return function(t){return n[t+"Key"]=void 0}}(this));this.models=void 0;this.firstTime=!0;this.$log.info(this);this.watchOurScope(t);this.createChildScopes()}return r(f,i),f.include(e),f.prototype.watch=function(n,t,i){return n.$watch(t,function(n){return function(r,u){if(r!==u)return(n[i]="function"==typeof r?r():r,n.cleanOnResolve(h.waitOrGo(n,function(){return h.each(n.plurals.values(),function(r){return r.scope[t]="self"===n[i]?r:r[n[i]]})})))}}(this))},f.prototype.watchModels=function(n){return n.$watch("models",function(t){return function(i,r){if(!_.isEqual(i,r))return t.doINeedToWipe(i)?t.rebuildAll(n,!0,!0):t.createChildScopes(!1)}}(this),!0)},f.prototype.doINeedToWipe=function(n){var t;return t=null!=n?0===n.length:!0,this.plurals.length>0&&t},f.prototype.rebuildAll=function(n,t,i){return this.onDestroy(i).then(function(n){return function(){if(t)return n.createChildScopes()}}(this))},f.prototype.onDestroy=function(n){return this.destroyPromise().then(function(t){return function(){return t.cleanOnResolve(h.waitOrGo(t,function(){return t.plurals.each(function(n){return n.destroy()}),c.resolve()})).then(function(){return n&&delete t.plurals,t.plurals=new o,t.isClearing=!1})}}(this))},f.prototype.watchDestroy=function(n){return n.$on("$destroy",function(t){return function(){return t.rebuildAll(n,!1,!0)}}(this))},f.prototype.watchOurScope=function(n){return _.each(this.scopePropNames,function(t){return function(i){var r;return r=i+"Key",t[r]="function"==typeof n[i]?n[i]():n[i],t.watch(n,i,r)}}(this))},f.prototype.createChildScopes=function(n){return null==n&&(n=!0),t.isUndefined(this.scope.models)?void this.$log.error("No models to create polylines from! I Need direct models!"):null!=this.gMap&&null!=this.scope.models?(this.watchIdKey(this.scope),n?this.createAllNew(this.scope,!1):this.pieceMeal(this.scope,!1)):void 0},f.prototype.watchIdKey=function(n){return this.setIdKey(n),n.$watch("idKey",function(t){return function(i,r){if(i!==r&&null==i)return(t.idKey=i,t.rebuildAll(n,!0,!0))}}(this))},f.prototype.createAllNew=function(n,t){return null==t&&(t=!1),this.models=n.models,this.firstTime&&(this.watchModels(n),this.watchDestroy(n)),this.cleanOnResolve(h.waitOrGo(this,function(t){return function(){return h.each(n.models,function(n){return t.createChild(n,t.gMap)})}}(this))).then(function(n){return function(){return n.firstTime=!1}}(this))},f.prototype.pieceMeal=function(n,t){return null==t&&(t=!0),n.$$destroyed||this.isClearing||this.updateInProgress()&&this.plurals.length>0?void 0:(this.models=n.models,null!=n&&null!=n.models&&n.models.length>0&&this.plurals.length>0?this.figureOutState(this.idKey,n,this.plurals,this.modelKeyComparison,function(n){return function(t){var i;return i=t,n.cleanOnResolve(h.waitOrGo(n,function(){return h.each(i.removals,function(t){var i;return i=n.plurals.get(t),null!=i?(i.destroy(),n.plurals.remove(t)):void 0}).then(function(){return h.each(i.adds,function(t){return n.createChild(t,n.gMap)})})}))}}(this)):(this.inProgress=!1,this.rebuildAll(this.scope,!0,!0)))},f.prototype.createChild=function(n,t){var r,i;return i=this.scope.$new(!1),this.setChildScope(i,n),i.$watch("model",function(n){return function(t,r){if(t!==r)return n.setChildScope(i,t)}}(this),!0),i["static"]=this.scope["static"],r=new s(i,this.attrs,t,this.defaults,n),null==n[this.idKey]?void this.$log.error("Polyline model has no id to assign a child to.\nThis is required for performance. Please assign id,\nor redirect id to a different key."):(this.plurals.put(n[this.idKey],r),r)},f.prototype.setChildScope=function(n,t){return _.each(this.scopePropNames,function(i){return function(r){var u,f;return u=r+"Key",f="self"===i[u]?t:t[i[u]],f!==n[r]?n[r]=f:void 0}}(this)),n.model=t},f.prototype.modelKeyComparison=function(n,t){return _.isEqual(this.evalModelHandle(n,this.scope.path),this.evalModelHandle(t,this.scope.path))},f}(f)}])}.call(this),function(){var n={}.hasOwnProperty,i=function(t,i){function u(){this.constructor=t}for(var r in i)n.call(i,r)&&(t[r]=i[r]);return u.prototype=i.prototype,t.prototype=new u,t.__super__=i.prototype,t};t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapRectangleParentModel",["uiGmapLogger","uiGmapGmapUtil","uiGmapEventsHelper","uiGmapRectangleOptionsBuilder",function(n,t,r,u){return function(u){function f(t,i,r,u,f){var e,a,v,c,y,p,s,h,o,l,w;this.scope=t;this.attrs=r;this.map=u;this.DEFAULTS=f;e=void 0;c=!1;h=[];s=void 0;y=function(n){return function(){if(n.isTrue(r.fit))return n.fitMapBounds(n.map,e)}}(this);v=function(i){return function(){var r,u;return null!=t.bounds&&null!=(null!=(r=t.bounds)?r.sw:void 0)&&null!=(null!=(u=t.bounds)?u.ne:void 0)&&i.validateBoundPoints(t.bounds)?(e=i.convertBoundPoints(t.bounds),n.info("new new bounds created: "+o)):null!=t.bounds.getNorthEast&&null!=t.bounds.getSouthWest?e=t.bounds:"undefined"!=typeof bound&&null!==bound?n.error("Invalid bounds for newValue: "+JSON.stringify(t.bounds)):void 0}}(this);v();o=new google.maps.Rectangle(this.buildOpts(e));n.info("rectangle created: "+o);l=!1;w=function(){return function(){var n,i,r;return n=o.getBounds(),i=n.getNorthEast(),r=n.getSouthWest(),l?void 0:t.$evalAsync(function(t){return null!=t.bounds&&null!=t.bounds.sw&&null!=t.bounds.ne&&(t.bounds.ne={latitude:i.lat(),longitude:i.lng()},t.bounds.sw={latitude:r.lat(),longitude:r.lng()}),null!=t.bounds.getNorthEast&&null!=t.bounds.getSouthWest?t.bounds=n:void 0})}}(this);p=function(n){return function(){return y(),n.removeEvents(h),h.push(google.maps.event.addListener(o,"dragstart",function(){return c=!0})),h.push(google.maps.event.addListener(o,"dragend",function(){return c=!1,w()})),h.push(google.maps.event.addListener(o,"bounds_changed",function(){if(!c)return w()}))}}(this);a=function(n){return function(){return n.removeEvents(h),null!=s&&n.removeEvents(s),o.setMap(null)}}(this);null!=e&&p();t.$watch("bounds",function(n,t){var i;if(!(_.isEqual(n,t)&&null!=e||c))return l=!0,null==n?void a():(null==e?i=!0:y(),v(),o.setBounds(e),l=!1,i&&null!=e?p():void 0)},!0);this.setMyOptions=function(n){return function(t,i){if(!_.isEqual(t,i)&&null!=e&&null!=t)return o.setOptions(n.buildOpts(e))}}(this);this.props.push("bounds");this.watchProps(this.props);null!=r.events&&(s=this.setEvents(o,t,t),t.$watch("events",function(n){return function(i,r){if(!_.isEqual(i,r))return(null!=s&&n.removeEvents(s),s=n.setEvents(o,t,t))}}(this)));t.$on("$destroy",function(){return function(){return a()}}(this));n.info(this)}return i(f,u),f.include(t),f.include(r),f}(u)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapSearchBoxParentModel",["uiGmapBaseObject","uiGmapLogger","uiGmapEventsHelper","$timeout","$http","$templateCache",function(i,u,f){return function(i){function e(i,r,f,e,o,s,h){var c;return this.scope=i,this.element=r,this.attrs=f,this.gMap=e,this.ctrlPosition=o,this.template=s,this.$log=null!=h?h:u,this.getBounds=n(this.getBounds,this),this.setBounds=n(this.setBounds,this),this.createSearchBox=n(this.createSearchBox,this),this.addToParentDiv=n(this.addToParentDiv,this),this.addAsMapControl=n(this.addAsMapControl,this),this.init=n(this.init,this),null==this.attrs.template?void this.$log.error("template attribute for the search-box directive is mandatory. Places Search Box creation aborted!!"):(c=t.element("<div><\/div>"),c.append(this.template),this.input=c.find("input")[0],void this.init())}return r(e,i),e.include(f),e.prototype.init=function(){return this.createSearchBox(),null!=this.attrs.parentdiv?this.addToParentDiv():this.addAsMapControl(),this.listener=google.maps.event.addListener(this.searchBox,"places_changed",function(n){return function(){return n.places=n.searchBox.getPlaces()}}(this)),this.listeners=this.setEvents(this.searchBox,this.scope,this.scope),this.$log.info(this),this.scope.$watch("options",function(n){return function(i){if(t.isObject(i)&&null!=i.bounds)return n.setBounds(i.bounds)}}(this),!0),this.scope.$on("$destroy",function(n){return function(){return n.searchBox=null}}(this))},e.prototype.addAsMapControl=function(){return this.gMap.controls[google.maps.ControlPosition[this.ctrlPosition]].push(this.input)},e.prototype.addToParentDiv=function(){return this.parentDiv=t.element(document.getElementById(this.scope.parentdiv)),this.parentDiv.append(this.input)},e.prototype.createSearchBox=function(){return this.searchBox=new google.maps.places.SearchBox(this.input,this.scope.options)},e.prototype.setBounds=function(n){if(t.isUndefined(n.isEmpty))this.$log.error("Error: SearchBoxParentModel setBounds. Bounds not an instance of LatLngBounds.");else if(n.isEmpty()===!1&&null!=this.searchBox)return this.searchBox.setBounds(n)},e.prototype.getBounds=function(){return this.searchBox.getBounds()},e}(i)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api.models.parent").factory("uiGmapWindowsParentModel",["uiGmapIWindowParentModel","uiGmapModelsWatcher","uiGmapPropMap","uiGmapWindowChildModel","uiGmapLinked","uiGmap_async","uiGmapLogger","$timeout","$compile","$http","$templateCache","$interpolate","uiGmapPromise",function(i,u,f,e,o,s,h,c,l,a,v,y,p){return function(i){function h(t,i,r,u,e,s){var y;this.gMap=e;this.markersScope=s;this.interpolateContent=n(this.interpolateContent,this);this.setChildScope=n(this.setChildScope,this);this.createWindow=n(this.createWindow,this);this.setContentKeys=n(this.setContentKeys,this);this.pieceMealWindows=n(this.pieceMealWindows,this);this.createAllNewWindows=n(this.createAllNewWindows,this);this.watchIdKey=n(this.watchIdKey,this);this.createChildScopesWindows=n(this.createChildScopesWindows,this);this.watchOurScope=n(this.watchOurScope,this);this.watchDestroy=n(this.watchDestroy,this);this.onDestroy=n(this.onDestroy,this);this.rebuildAll=n(this.rebuildAll,this);this.doINeedToWipe=n(this.doINeedToWipe,this);this.watchModels=n(this.watchModels,this);this.go=n(this.go,this);h.__super__.constructor.call(this,t,i,r,u,c,l,a,v);y=this;this.windows=new f;this.scopePropNames=["coords","template","templateUrl","templateParameter","isIconVisibleOnClick","closeClick","options","show"];_.each(this.scopePropNames,function(n){return function(t){return n[t+"Key"]=void 0}}(this));this.linked=new o(t,i,r,u);this.models=void 0;this.contentKeys=void 0;this.isIconVisibleOnClick=void 0;this.firstTime=!0;this.firstWatchModels=!0;this.$log.info(y);this.parentScope=void 0;this.go(t)}return r(h,i),h.include(u),h.prototype.go=function(n){return this.watchOurScope(n),this.doRebuildAll=null!=this.scope.doRebuildAll?this.scope.doRebuildAll:!1,n.$watch("doRebuildAll",function(n){return function(t,i){if(t!==i)return n.doRebuildAll=t}}(this)),this.createChildScopesWindows()},h.prototype.watchModels=function(n){return n.$watch("models",function(t){return function(i,r){var u;if(!_.isEqual(i,r)||t.firstWatchModels)return(t.firstWatchModels=!1,t.doRebuildAll||t.doINeedToWipe(i)?t.rebuildAll(n,!0,!0):(u=0===t.windows.length,null!=t.existingPieces?t.existingPieces.then(function(){return t.createChildScopesWindows(u)}):t.createChildScopesWindows(u)))}}(this),!0)},h.prototype.doINeedToWipe=function(n){var t;return t=null!=n?0===n.length:!0,this.windows.length>0&&t},h.prototype.rebuildAll=function(n,t,i){return this.onDestroy(i).then(function(n){return function(){if(t)return n.createChildScopesWindows()}}(this))},h.prototype.onDestroy=function(n){return this.destroyPromise().then(function(t){return function(){return t.cleanOnResolve(s.waitOrGo(t,function(){return t.windows.each(function(n){return n.destroy()}),p.resolve()})).then(function(){return n&&delete t.windows,t.windows=new f,t.isClearing=!1})}}(this))},h.prototype.watchDestroy=function(n){return n.$on("$destroy",function(t){return function(){return t.firstWatchModels=!0,t.firstTime=!0,t.rebuildAll(n,!1,!0)}}(this))},h.prototype.watchOurScope=function(n){return _.each(this.scopePropNames,function(t){return function(i){var r;return r=i+"Key",t[r]="function"==typeof n[i]?n[i]():n[i]}}(this))},h.prototype.createChildScopesWindows=function(n){var i,r,u;return null==n&&(n=!0),this.isIconVisibleOnClick=!0,t.isDefined(this.linked.attrs.isiconvisibleonclick)&&(this.isIconVisibleOnClick=this.linked.scope.isIconVisibleOnClick),i=t.isUndefined(this.linked.scope.models),!i||void 0!==this.markersScope&&void 0!==(null!=(r=this.markersScope)?r.markerModels:void 0)&&void 0!==(null!=(u=this.markersScope)?u.models:void 0)?null!=this.gMap?null!=this.linked.scope.models?(this.watchIdKey(this.linked.scope),n?this.createAllNewWindows(this.linked.scope,!1):this.pieceMealWindows(this.linked.scope,!1)):(this.parentScope=this.markersScope,this.watchIdKey(this.parentScope),n?this.createAllNewWindows(this.markersScope,!0,"markerModels",!1):this.pieceMealWindows(this.markersScope,!0,"markerModels",!1)):void 0:void this.$log.error("No models to create windows from! Need direct models or models derrived from markers!")},h.prototype.watchIdKey=function(n){return this.setIdKey(n),n.$watch("idKey",function(t){return function(i,r){if(i!==r&&null==i)return(t.idKey=i,t.rebuildAll(n,!0,!0))}}(this))},h.prototype.createAllNewWindows=function(n,t,i,r){return null==i&&(i="models"),null==r&&(r=!1),this.models=n.models,this.firstTime&&(this.watchModels(n),this.watchDestroy(n)),this.setContentKeys(n.models),this.cleanOnResolve(s.waitOrGo(this,function(r){return function(){return s.each(n.models,function(u){var f,e;return f=t&&null!=(e=n[i][[u[r.idKey]]])?e.gMarker:void 0,r.createWindow(u,f,r.gMap)})}}(this))).then(function(n){return function(){return n.firstTime=!1}}(this))},h.prototype.pieceMealWindows=function(n,t,i,r){var u;return null==i&&(i="models"),null==r&&(r=!0),n.$$destroyed||this.isClearing||this.updateInProgress()?void 0:(u=s.defaultChunkSize,this.models=n.models,null!=n&&null!=n.models&&n.models.length>0&&this.windows.length>0?this.figureOutState(this.idKey,n,this.windows,this.modelKeyComparison,function(t){return function(r){var u;return u=r,t.cleanOnResolve(s.waitOrGo(t,function(){return s.each(u.removals,function(n){if(null!=n&&(t.windows.remove(n.id),null!=n.destroy))return n.destroy(!0)},!1).then(function(){return s.each(u.adds,function(r){var u,f;if(u=null!=(f=n[i].get(r[t.idKey]))?f.gMarker:void 0,!u)throw"Gmarker undefined";return t.createWindow(r,u,t.gMap)},!1)})}))}}(this)):this.rebuildAll(this.scope,!0,!0))},h.prototype.setContentKeys=function(n){if(n.length>0)return this.contentKeys=Object.keys(n[0])},h.prototype.createWindow=function(n,t,i){var u,r,f,o,s,h;return r=this.linked.scope.$new(!1),this.setChildScope(r,n),r.$watch("model",function(n){return function(t,i){if(t!==i)return n.setChildScope(r,t)}}(this),!0),f={html:function(t){return function(){return t.interpolateContent(t.linked.element.html(),n)}}(this)},this.DEFAULTS=this.markersScope?n[this.optionsKey]||{}:this.DEFAULTS,o=this.createWindowOptions(t,r,f.html(),this.DEFAULTS),u=new e(n,r,o,this.isIconVisibleOnClick,i,null!=(s=this.markersScope)&&null!=(h=s.markerModels.get(n[this.idKey]))?h.scope:void 0,f,!1,!0),null==n[this.idKey]?void this.$log.error("Window model has no id to assign a child to. This is required for performance. Please assign id, or redirect id to a different key."):(this.windows.put(n[this.idKey],u),u)},h.prototype.setChildScope=function(n,t){return _.each(this.scopePropNames,function(i){return function(r){var u,f;return u=r+"Key",f="self"===i[u]?t:t[i[u]],f!==n[r]?n[r]=f:void 0}}(this)),n.model=t},h.prototype.interpolateContent=function(n,t){var e,r,u,i,o,f;if(void 0!==this.contentKeys&&0!==this.contentKeys.length){for(e=y(n),r={},f=this.contentKeys,i=0,o=f.length;o>i;i++)u=f[i],r[u]=t[u];return e(r)}},h}(i)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapCircle",["uiGmapICircle","uiGmapCircleParentModel",function(n,t){return _.extend(n,{link:function(n,i,r,u){return u.getScope().deferred.promise.then(function(){return function(u){return new t(n,i,r,u)}}(this))}})}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapControl",["uiGmapIControl","$http","$templateCache","$compile","$controller","uiGmapGoogleMapApi",function(i,u,f,e,o,s){return function(h){function c(){this.link=n(this.link,this);c.__super__.constructor.call(this)}return r(c,h),c.prototype.link=function(n,r,h,c){return s.then(function(r){return function(s){var h,l;return t.isUndefined(n.template)?void r.$log.error("mapControl: could not find a valid template property"):(h=t.isDefined(n.index&&!isNaN(parseInt(n.index)))?parseInt(n.index):void 0,l=t.isDefined(n.position)?n.position.toUpperCase().replace(/-/g,"_"):"TOP_CENTER",s.ControlPosition[l]?i.mapPromise(n,c).then(function(i){var c,s;return c=void 0,s=t.element("<div><\/div>"),u.get(n.template,{cache:f}).success(function(i){var u,r;return r=n.$new(),s.append(i),h&&(s[0].index=h),t.isDefined(n.controller)&&(u=o(n.controller,{$scope:r}),s.children().data("$ngControllerController",u)),c=e(s.children())(r)}).error(function(){return r.$log.error("mapControl: template could not be found")}).then(function(){return i.controls[google.maps.ControlPosition[l]].push(c[0])})}):void r.$log.error("mapControl: invalid position property"))}}(this))},c}(i)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapDragZoom",["uiGmapCtrlHandle","uiGmapPropertyAction",function(n,t){return{restrict:"EMA",transclude:!0,template:'<div class="angular-google-map-dragzoom" ng-transclude style="display: none"><\/div>',require:"^uiGmapGoogleMap",scope:{keyboardkey:"=",options:"=",spec:"="},controller:["$scope","$element",function(t,i){return t.ctrlType="uiGmapDragZoom",_.extend(this,n.handle(t,i))}],link:function(i,r,u,f){return n.mapPromise(i,f).then(function(n){var r,u,f;return r=function(t){return n.enableKeyDragZoom(t),i.spec?i.spec.enableKeyDragZoom(t):void 0},u=new t(function(n,t){return t?r({key:t}):r()}),f=new t(function(n,t){if(t)return r(t)}),i.$watch("keyboardkey",u.sic),u.sic(i.keyboardkey),i.$watch("options",f.sic),f.sic(i.options)})}}}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapDrawingManager",["uiGmapIDrawingManager","uiGmapDrawingManagerParentModel",function(n,t){return _.extend(n,{link:function(n,i,r,u){return u.getScope().deferred.promise.then(function(u){return new t(n,i,r,u)})}})}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapApiFreeDrawPolygons",["uiGmapLogger","uiGmapBaseObject","uiGmapCtrlHandle","uiGmapDrawFreeHandChildModel","uiGmapLodash",function(t,i,u,f,e){return function(i){function o(){return this.link=n(this.link,this),o.__super__.constructor.apply(this,arguments)}return r(o,i),o.include(u),o.prototype.restrict="EMA",o.prototype.replace=!0,o.prototype.require="^uiGmapGoogleMap",o.prototype.scope={polygons:"=",draw:"=",revertmapoptions:"="},o.prototype.link=function(n,i,r,u){return this.mapPromise(n,u).then(function(){return function(i){var u,r;return n.polygons?_.isArray(n.polygons)?(u=new f(i,n.revertmapoptions),r=void 0,n.draw=function(){return"function"==typeof r&&r(),u.engage(n.polygons).then(function(){var t;return t=!0,r=n.$watch("polygons",function(n,i){var r;return t?void(t=!1):(r=e.differenceObjects(i,n),r.forEach(function(n){return n.setMap(null)}))})})}):t.error("Free Draw Polygons must be of type Array!"):t.error("No polygons to bind to!")}}(this))},o}(i)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapICircle",[function(){var n;return n={},{restrict:"EA",replace:!0,require:"^uiGmapGoogleMap",scope:{center:"=center",radius:"=radius",stroke:"=stroke",fill:"=fill",clickable:"=",draggable:"=",editable:"=",geodesic:"=",icons:"=icons",visible:"=",events:"="}}}])}.call(this),function(){var n={}.hasOwnProperty,i=function(t,i){function u(){this.constructor=t}for(var r in i)n.call(i,r)&&(t[r]=i[r]);return u.prototype=i.prototype,t.prototype=new u,t.__super__=i.prototype,t};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIControl",["uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(n,t,r){return function(n){function u(){this.restrict="EA";this.replace=!0;this.require="^uiGmapGoogleMap";this.scope={template:"@template",position:"@position",controller:"@controller",index:"@index"};this.$log=t}return i(u,n),u.extend(r),u.prototype.link=function(){throw new Exception("Not implemented!!");},u}(n)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapIDrawingManager",[function(){return{restrict:"EA",replace:!0,require:"^uiGmapGoogleMap",scope:{"static":"@",control:"=",options:"="}}}])}.call(this),function(){var n={}.hasOwnProperty,i=function(t,i){function u(){this.constructor=t}for(var r in i)n.call(i,r)&&(t[r]=i[r]);return u.prototype=i.prototype,t.prototype=new u,t.__super__=i.prototype,t};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIMarker",["uiGmapLogger","uiGmapBaseObject","uiGmapCtrlHandle",function(n,t,r){return function(t){function u(){this.$log=n;this.restrict="EMA";this.require="^uiGmapGoogleMap";this.priority=-1;this.transclude=!0;this.replace=!0;this.scope=u.scopeKeys}return i(u,t),u.scopeKeys={coords:"=coords",icon:"=icon",click:"&click",options:"=options",events:"=events",fit:"=fit",idKey:"=idkey",control:"=control"},u.keys=_.keys(u.scopeKeys),u.extend(r),u}(t)}])}.call(this),function(){var n={}.hasOwnProperty,i=function(t,i){function u(){this.constructor=t}for(var r in i)n.call(i,r)&&(t[r]=i[r]);return u.prototype=i.prototype,t.prototype=new u,t.__super__=i.prototype,t};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIPolygon",["uiGmapGmapUtil","uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(n,t,r,u){return function(t){function f(){}return i(f,t),f.include(n),f.extend(u),f.prototype.restrict="EMA",f.prototype.replace=!0,f.prototype.require="^uiGmapGoogleMap",f.prototype.scope={path:"=path",stroke:"=stroke",clickable:"=",draggable:"=",editable:"=",geodesic:"=",fill:"=",icons:"=icons",visible:"=","static":"=",events:"=",zIndex:"=zindex",fit:"=",control:"=control"},f.prototype.DEFAULTS={},f.prototype.$log=r,f}(t)}])}.call(this),function(){var n={}.hasOwnProperty,i=function(t,i){function u(){this.constructor=t}for(var r in i)n.call(i,r)&&(t[r]=i[r]);return u.prototype=i.prototype,t.prototype=new u,t.__super__=i.prototype,t};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIPolyline",["uiGmapGmapUtil","uiGmapBaseObject","uiGmapLogger","uiGmapCtrlHandle",function(n,t,r,u){return function(t){function f(){}return i(f,t),f.include(n),f.extend(u),f.prototype.restrict="EMA",f.prototype.replace=!0,f.prototype.require="^uiGmapGoogleMap",f.prototype.scope={path:"=",stroke:"=",clickable:"=",draggable:"=",editable:"=",geodesic:"=",icons:"=",visible:"=","static":"=",fit:"=",events:"="},f.prototype.DEFAULTS={},f.prototype.$log=r,f}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").service("uiGmapIRectangle",[function(){var n;return n={},{restrict:"EMA",require:"^uiGmapGoogleMap",replace:!0,scope:{bounds:"=",stroke:"=",clickable:"=",draggable:"=",editable:"=",fill:"=",visible:"=",events:"="}}}])}.call(this),function(){var n={}.hasOwnProperty,i=function(t,i){function u(){this.constructor=t}for(var r in i)n.call(i,r)&&(t[r]=i[r]);return u.prototype=i.prototype,t.prototype=new u,t.__super__=i.prototype,t};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapIWindow",["uiGmapBaseObject","uiGmapChildEvents","uiGmapLogger","uiGmapCtrlHandle",function(n,t,r,u){return function(n){function f(){this.restrict="EMA";this.template=void 0;this.transclude=!0;this.priority=-100;this.require="^uiGmapGoogleMap";this.replace=!0;this.scope={coords:"=coords",template:"=template",templateUrl:"=templateurl",templateParameter:"=templateparameter",isIconVisibleOnClick:"=isiconvisibleonclick",closeClick:"&closeclick",options:"=options",control:"=control",show:"=show"};this.$log=r}return i(f,n),f.include(t),f.extend(u),f}(n)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},r={}.hasOwnProperty,u=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMap",["$timeout","$q","uiGmapLogger","uiGmapGmapUtil","uiGmapBaseObject","uiGmapCtrlHandle","uiGmapIsReady","uiGmapuuid","uiGmapExtendGWin","uiGmapExtendMarkerClusterer","uiGmapGoogleMapsUtilV3","uiGmapGoogleMapApi",function(r,f,e,o,s,h,c,l,a,v,y,p){var w,k,b;return w=void 0,b=[y,a,v],k=function(f){function s(){this.link=n(this.link,this);var t,i;t=function(n){var t,i;return i=void 0,n.$on("$destroy",function(){return c.reset()}),t=h.handle(n),n.ctrlType="Map",n.deferred.promise.then(function(){return b.forEach(function(n){return n.init()})}),t.getMap=function(){return n.map},i=_.extend(this,t)};this.controller=["$scope",t];i=this}return u(s,f),s.include(o),s.prototype.restrict="EMA",s.prototype.transclude=!0,s.prototype.replace=!1,s.prototype.template='<div class="angular-google-map"><div class="angular-google-map-container"><\/div><div ng-transclude style="display: none"><\/div><\/div>',s.prototype.scope={center:"=",zoom:"=",dragging:"=",control:"=",options:"=",events:"=",eventOpts:"=",styles:"=",bounds:"=",update:"="},s.prototype.link=function(n,u,f){var o;return n.idleAndZoomChanged=!1,null==n.center?void(o=n.$watch("center",function(t){return function(){if(n.center)return(o(),t.link(n,u,f))}}(this))):p.then(function(o){return function(s){var v,k,y,g,p,a,nt,b,d,tt,h;if(w={mapTypeId:s.MapTypeId.ROADMAP},d=c.spawn(),nt=function(){return d.deferred.resolve({instance:d.instance,map:h})},!o.validateCoords(n.center))return void e.error("angular-google-maps: could not find a valid center property");if(!t.isDefined(n.zoom))return void e.error("angular-google-maps: map zoom property not set");if(k=t.element(u),k.addClass("angular-google-map"),a={options:{}},f.options&&(a.options=n.options),f.styles&&(a.styles=n.styles),f.type&&(tt=f.type.toUpperCase(),google.maps.MapTypeId.hasOwnProperty(tt)?a.mapTypeId=google.maps.MapTypeId[f.type.toUpperCase()]:e.error("angular-google-maps: invalid map type '"+f.type+"'")),p=t.extend({},w,a,{center:o.getCoords(n.center),zoom:n.zoom,bounds:n.bounds}),h=new google.maps.Map(k.find("div")[1],p),h.uiGmap_id=l.generate(),v=!1,google.maps.event.addListenerOnce(h,"idle",function(){return n.deferred.resolve(h),nt()}),google.maps.event.addListener(h,"dragstart",function(){var t;if(!(null!=(t=n.update)?t.lazy:void 0))return(v=!0,n.$evalAsync(function(n){if(null!=n.dragging)return n.dragging=v}))}),google.maps.event.addListener(h,"dragend",function(){var t;if(!(null!=(t=n.update)?t.lazy:void 0))return(v=!1,n.$evalAsync(function(n){if(null!=n.dragging)return n.dragging=v}))}),google.maps.event.addListener(h,"drag",function(){var i,u,f,e,o;if(!(null!=(u=n.update)?u.lazy:void 0))return(i=h.center,r(function(){var r;return r=n,t.isDefined(r.center.type)?(r.center.coordinates[1]=i.lat(),r.center.coordinates[0]=i.lng()):(r.center.latitude=i.lat(),r.center.longitude=i.lng())},null!=(f=n.eventOpts)&&null!=(e=f.debounce)&&null!=(o=e.debounce)?o.dragMs:void 0))}),google.maps.event.addListener(h,"zoom_changed",function(){var t,i,u;if(!(null!=(t=n.update)?t.lazy:void 0)&&n.zoom!==h.zoom)return r(function(){return n.zoom=h.zoom},null!=(i=n.eventOpts)&&null!=(u=i.debounce)?u.zoomMs:void 0)}),b=!1,google.maps.event.addListener(h,"center_changed",function(){var i,u,f,e;if(!(null!=(u=n.update)?u.lazy:void 0))return(i=h.center,b)?void 0:r(function(){var r;if(r=n,!h.dragging)if(t.isDefined(r.center.type)){if(r.center.coordinates[1]!==i.lat()&&(r.center.coordinates[1]=i.lat()),r.center.coordinates[0]!==i.lng())return r.center.coordinates[0]=i.lng()}else if(r.center.latitude!==i.lat()&&(r.center.latitude=i.lat()),r.center.longitude!==i.lng())return r.center.longitude=i.lng()},null!=(f=n.eventOpts)&&null!=(e=f.debounce)?e.centerMs:void 0)}),google.maps.event.addListener(h,"idle",function(){var r,u,f;return r=h.getBounds(),u=r.getNorthEast(),f=r.getSouthWest(),n.$evalAsync(function(r){var e,o;return(null!=(o=r.update)?o.lazy:void 0)&&(e=h.center,t.isDefined(r.center.type)?(r.center.coordinates[1]!==e.lat()&&(r.center.coordinates[1]=e.lat()),r.center.coordinates[0]!==e.lng()&&(r.center.coordinates[0]=e.lng())):(r.center.latitude!==e.lat()&&(r.center.latitude=e.lat()),r.center.longitude!==e.lng()&&(r.center.longitude=e.lng()))),null!==r.bounds&&r.bounds!==i&&void 0!==r.bounds&&(r.bounds.northeast={latitude:u.lat(),longitude:u.lng()},r.bounds.southwest={latitude:f.lat(),longitude:f.lng()}),r.zoom=h.zoom,n.idleAndZoomChanged=!n.idleAndZoomChanged})}),t.isDefined(n.events)&&null!==n.events&&t.isObject(n.events)){g=function(t){return function(){return n.events[t].apply(n,[h,t,arguments])}};for(y in n.events)n.events.hasOwnProperty(y)&&t.isFunction(n.events[y])&&google.maps.event.addListener(h,y,g(y))}return h.getOptions=function(){return p},n.map=h,null!=f.control&&null!=n.control&&(n.control.refresh=function(n){var t;if(null!=h)return google.maps.event.trigger(h,"resize"),null!=(null!=n?n.latitude:void 0)&&null!=(null!=n?n.latitude:void 0)?(t=o.getCoords(n),o.isTrue(f.pan)?h.panTo(t):h.setCenter(t)):void 0},n.control.getGMap=function(){return h},n.control.getMapOptions=function(){return p}),n.$watch("center",function(t){var i;return i=o.getCoords(t),i.lat()!==h.center.lat()||i.lng()!==h.center.lng()?(b=!0,v||(o.validateCoords(t)||e.error("Invalid center for newValue: "+JSON.stringify(t)),o.isTrue(f.pan)&&n.zoom===h.zoom?h.panTo(i):h.setCenter(i)),b=!1):void 0},!0),n.$watch("zoom",function(n,t){if(!_.isEqual(n,t))return r(function(){return h.setZoom(n)},0,!1)}),n.$watch("bounds",function(n,t){var i,r,u;if(n!==t)return null==n.northeast.latitude||null==n.northeast.longitude||null==n.southwest.latitude||null==n.southwest.longitude?void e.error("Invalid map bounds for new value: "+JSON.stringify(n)):(r=new google.maps.LatLng(n.northeast.latitude,n.northeast.longitude),u=new google.maps.LatLng(n.southwest.latitude,n.southwest.longitude),i=new google.maps.LatLngBounds(u,r),h.fitBounds(i))}),["options","styles"].forEach(function(t){return n.$watch(t,function(n,t){var i;return i=this.exp,_.isEqual(n,t)?void 0:(a.options=n,null!=h?h.setOptions(a):void 0)})},!0)}}(this))},s}(s)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMarker",["uiGmapIMarker","uiGmapMarkerChildModel","uiGmapMarkerManager",function(t,i,u){return function(f){function e(){this.link=n(this.link,this);e.__super__.constructor.call(this);this.template='<span class="angular-google-map-marker" ng-transclude><\/span>';this.$log.info(this)}return r(e,f),e.prototype.controller=["$scope","$element",function(n,i){return n.ctrlType="Marker",_.extend(this,t.handle(n,i))}],e.prototype.link=function(n,r,f,e){return this.mapPromise=t.mapPromise(n,e),this.mapPromise.then(function(r){return function(f){var s,h,e,o,c;return r.gMarkerManager||(r.gMarkerManager=new u(f)),e=_.object(t.keys,t.keys),o=new i(n,n,e,f,{},s=!0,r.gMarkerManager,h=!1,c=!1),o.deferred.promise.then(function(t){return n.deferred.resolve(t)}),null!=n.control?n.control.getGMarkers=r.gMarkerManager.getGMarkers:void 0}}(this)),n.$on("$destroy",function(n){return function(){var t;return null!=(t=n.gMarkerManager)&&t.clear(),n.gMarkerManager=null}}(this))},e}(t)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapMarkers",["uiGmapIMarker","uiGmapMarkersParentModel","uiGmap_sync",function(t,i){return function(u){function f(t){this.link=n(this.link,this);f.__super__.constructor.call(this,t);this.template='<span class="angular-google-map-markers" ng-transclude><\/span>';this.scope=_.extend(this.scope||{},{idKey:"=idkey",doRebuildAll:"=dorebuildall",models:"=models",doCluster:"=docluster",clusterOptions:"=clusteroptions",clusterEvents:"=clusterevents",modelsByRef:"=modelsbyref"});this.$log.info(this)}return r(f,u),f.prototype.controller=["$scope","$element",function(n,i){return n.ctrlType="Markers",_.extend(this,t.handle(n,i))}],f.prototype.link=function(n,r,u,f){var e,o;return e=void 0,o=function(){return function(){return null!=n.control&&(n.control.getGMarkers=function(){var n;if(null!=(n=e.gMarkerManager))return n.getGMarkers()},n.control.getChildMarkers=function(){return e.markerModels}),n.deferred.resolve()}}(this),t.mapPromise(n,f).then(function(){return function(t){var s;return s=f.getScope(),s.$watch("idleAndZoomChanged",function(){return _.defer(e.gMarkerManager.draw)}),e=new i(n,r,u,t),e.existingPieces.then(function(){return o()})}}(this))},f}(t)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygon",["uiGmapIPolygon","$timeout","uiGmaparray-sync","uiGmapPolygonChildModel",function(t,i,u,f){return function(i){function u(){return this.link=n(this.link,this),u.__super__.constructor.apply(this,arguments)}return r(u,i),u.prototype.link=function(n,i,r,u){var e,o;return e=[],o=t.mapPromise(n,u),null!=n.control&&(n.control.getInstance=this,n.control.polygons=e,n.control.promise=o),o.then(function(t){return function(i){return e.push(new f(n,r,i,t.DEFAULTS))}}(this))},u}(t)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolygons",["uiGmapIPolygon","$timeout","uiGmaparray-sync","uiGmapPolygonsParentModel",function(i,u,f,e){return function(i){function u(){this.link=n(this.link,this);u.__super__.constructor.call(this);this.scope.idKey="=idkey";this.scope.models="=models";this.$log.info(this)}return r(u,i),u.prototype.link=function(n,i,r,u){return t.isUndefined(n.path)||null===n.path?void this.$log.error("polygons: no valid path attribute found"):n.models?u.getScope().deferred.promise.then(function(t){return function(u){return new e(n,i,r,u,t.DEFAULTS)}}(this)):void this.$log.error("polygons: no models found to create from")},u}(i)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolyline",["uiGmapIPolyline","$timeout","uiGmaparray-sync","uiGmapPolylineChildModel",function(i,u,f,e){return function(u){function f(){return this.link=n(this.link,this),f.__super__.constructor.apply(this,arguments)}return r(f,u),f.prototype.link=function(n,r,u,f){return t.isUndefined(n.path)||null===n.path||!this.validatePath(n.path)?void this.$log.error("polyline: no valid path attribute found"):i.mapPromise(n,f).then(function(t){return function(i){return new e(n,u,i,t.DEFAULTS)}}(this))},f}(i)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapPolylines",["uiGmapIPolyline","$timeout","uiGmaparray-sync","uiGmapPolylinesParentModel",function(i,u,f,e){return function(i){function u(){this.link=n(this.link,this);u.__super__.constructor.call(this);this.scope.idKey="=idkey";this.scope.models="=models";this.$log.info(this)}return r(u,i),u.prototype.link=function(n,i,r,u){return t.isUndefined(n.path)||null===n.path?void this.$log.error("polylines: no valid path attribute found"):n.models?u.getScope().deferred.promise.then(function(t){return function(u){return new e(n,i,r,u,t.DEFAULTS)}}(this)):void this.$log.error("polylines: no models found to create from")},u}(i)}])}.call(this),function(){t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapRectangle",["uiGmapLogger","uiGmapGmapUtil","uiGmapIRectangle","uiGmapRectangleParentModel",function(n,t,i,r){return _.extend(i,{link:function(n,t,i,u){return u.getScope().deferred.promise.then(function(){return function(u){return new r(n,t,i,u)}}(this))}})}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapWindow",["uiGmapIWindow","uiGmapGmapUtil","uiGmapWindowChildModel","uiGmapLodash",function(i,u,f,e){return function(o){function s(){this.link=n(this.link,this);s.__super__.constructor.call(this);this.require=["^uiGmapGoogleMap","^?uiGmapMarker"];this.template='<span class="angular-google-maps-window" ng-transclude><\/span>';this.$log.info(this);this.childWindows=[]}return r(s,o),s.include(u),s.prototype.link=function(n,r,u,f){var e,o;return e=f.length>1&&null!=f[1]?f[1]:void 0,o=null!=e?e.getScope():void 0,this.mapPromise=i.mapPromise(n,f[0]),this.mapPromise.then(function(i){return function(f){var s;return s=!0,t.isDefined(u.isiconvisibleonclick)&&(s=n.isIconVisibleOnClick),e?o.deferred.promise.then(function(){return i.init(n,r,s,f,o)}):void i.init(n,r,s,f)}}(this))},s.prototype.init=function(n,t,i,r,u){var o,s,h,c,l;return s=null!=n.options?n.options:{},c=null!=n&&this.validateCoords(n.coords),null!=(null!=u?u.getGMarker:void 0)&&(h=u.getGMarker()),l=c?this.createWindowOptions(h,n,t.html(),s):s,null!=r&&(o=new f({},n,l,i,r,u,t),this.childWindows.push(o),n.$on("$destroy",function(n){return function(){return n.childWindows=e.withoutObjects(n.childWindows,[o],function(n,t){return n.scope.$id===t.scope.$id}),n.childWindows.length=0}}(this))),null!=n.control&&(n.control.getGWindows=function(n){return function(){return n.childWindows.map(function(n){return n.gWin})}}(this),n.control.getChildWindows=function(n){return function(){return n.childWindows}}(this),n.control.showWindow=function(n){return function(){return n.childWindows.map(function(n){return n.showWindow()})}}(this),n.control.hideWindow=function(n){return function(){return n.childWindows.map(function(n){return n.hideWindow()})}}(this)),null!=this.onChildCreation&&null!=o?this.onChildCreation(o):void 0},s}(i)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,r=function(n,t){function u(){this.constructor=n}for(var r in t)i.call(t,r)&&(n[r]=t[r]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};t.module("uiGmapgoogle-maps.directives.api").factory("uiGmapWindows",["uiGmapIWindow","uiGmapWindowsParentModel","uiGmapPromise",function(t,i,u){return function(t){function f(){this.init=n(this.init,this);this.link=n(this.link,this);f.__super__.constructor.call(this);this.require=["^uiGmapGoogleMap","^?uiGmapMarkers"];this.template='<span class="angular-google-maps-windows" ng-transclude><\/span>';this.scope.idKey="=idkey";this.scope.doRebuildAll="=dorebuildall";this.scope.models="=models";this.$log.debug(this)}return r(f,t),f.prototype.link=function(n,t,i,r){var o,e,f;return o=r[0].getScope(),e=r.length>1&&null!=r[1]?r[1]:void 0,f=null!=e?e.getScope():void 0,o.deferred.promise.then(function(e){return function(o){var s,h;return s=(null!=f&&null!=(h=f.deferred)?h.promise:void 0)||u.resolve(),s.then(function(){var u,s;return u=null!=(s=e.parentModel)?s.existingPieces:void 0,u?u.then(function(){return e.init(n,t,i,r,o,f)}):e.init(n,t,i,r,o,f)})}}(this))},f.prototype.init=function(n,t,r,u,f,e){var o;return o=new i(n,t,r,u,f,e),null!=n.control?(n.control.getGWindows=function(){return function(){return o.windows.map(function(n){return n.gWin})}}(this),n.control.getChildWindows=function(){return function(){return o.windows}}(this)):void 0},f}(t)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapGoogleMap",["uiGmapMap",function(n){return new n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapMarker",["$timeout","uiGmapMarker",function(n,t){return new t(n)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapMarkers",["$timeout","uiGmapMarkers",function(n,t){return new t(n)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolygon",["uiGmapPolygon",function(n){return new n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapCircle",["uiGmapCircle",function(n){return n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolyline",["uiGmapPolyline",function(n){return new n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolylines",["uiGmapPolylines",function(n){return new n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapRectangle",["uiGmapLogger","uiGmapRectangle",function(n,t){return t}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapWindow",["$timeout","$compile","$http","$templateCache","uiGmapWindow",function(n,t,i,r,u){return new u(n,t,i,r)}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapWindows",["$timeout","$compile","$http","$templateCache","$interpolate","uiGmapWindows",function(n,t,i,r,u,f){return new f(n,t,i,r,u)}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}};t.module("uiGmapgoogle-maps").directive("uiGmapLayer",["$timeout","uiGmapLogger","uiGmapLayerParentModel",function(t,i,r){var u;return new(u=function(){function t(){this.link=n(this.link,this);this.$log=i;this.restrict="EMA";this.require="^uiGmapGoogleMap";this.priority=-1;this.transclude=!0;this.template="<span class='angular-google-map-layer' ng-transclude><\/span>";this.replace=!0;this.scope={show:"=show",type:"=type",namespace:"=namespace",options:"=options",onCreated:"&oncreated"}}return t.prototype.link=function(n,t,i,u){return u.getScope().deferred.promise.then(function(){return function(u){return null!=n.onCreated?new r(n,t,i,u,n.onCreated):new r(n,t,i,u)}}(this))},t}())}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapMapControl",["uiGmapControl",function(n){return new n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapDragZoom",["uiGmapDragZoom",function(n){return n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapDrawingManager",["uiGmapDrawingManager",function(n){return n}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapFreeDrawPolygons",["uiGmapApiFreeDrawPolygons",function(n){return new n}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}};t.module("uiGmapgoogle-maps").directive("uiGmapMapType",["$timeout","uiGmapLogger","uiGmapMapTypeParentModel",function(t,i,r){var u;return new(u=function(){function t(){this.link=n(this.link,this);this.$log=i;this.restrict="EMA";this.require="^uiGmapGoogleMap";this.priority=-1;this.transclude=!0;this.template='<span class="angular-google-map-layer" ng-transclude><\/span>';this.replace=!0;this.scope={show:"=show",options:"=options",refresh:"=refresh",id:"@"}}return t.prototype.link=function(n,t,i,u){return u.getScope().deferred.promise.then(function(){return function(u){return new r(n,t,i,u)}}(this))},t}())}])}.call(this),function(){t.module("uiGmapgoogle-maps").directive("uiGmapPolygons",["uiGmapPolygons",function(n){return new n}])}.call(this),function(){var n=function(n,t){return function(){return n.apply(t,arguments)}};t.module("uiGmapgoogle-maps").directive("uiGmapSearchBox",["uiGmapGoogleMapApi","uiGmapLogger","uiGmapSearchBoxParentModel","$http","$templateCache","$compile",function(i,r,u,f,e,o){var s;return new(s=function(){function s(){this.link=n(this.link,this);this.$log=r;this.restrict="EMA";this.require="^uiGmapGoogleMap";this.priority=-1;this.transclude=!0;this.template="<span class='angular-google-map-search' ng-transclude><\/span>";this.replace=!0;this.scope={template:"=template",position:"=position",options:"=options",events:"=events",parentdiv:"=parentdiv"}}return s.prototype.link=function(n,r,s,h){return i.then(function(i){return function(c){return f.get(n.template,{cache:e}).success(function(f){return h.getScope().deferred.promise.then(function(e){var h;return h=t.isDefined(n.position)?n.position.toUpperCase().replace(/-/g,"_"):"TOP_LEFT",c.ControlPosition[h]?new u(n,r,s,e,h,o(f)(n)):void i.$log.error("searchBox: invalid position property")})})}}(this))},s}())}])}.call(this);t.module("uiGmapgoogle-maps.wrapped").service("uiGmapuuid",function(){function n(){}return n.generate=function(){var t=n._gri,i=n._ha;return i(t(32),8)+"-"+i(t(16),4)+"-"+i(16384|t(12),4)+"-"+i(32768|t(14),4)+"-"+i(t(48),12)},n._gri=function(n){return 0>n?NaN:30>=n?0|Math.random()*(1<<n):53>=n?(0|1073741824*Math.random())+1073741824*(0|Math.random()*(1<<n-30)):NaN},n._ha=function(n,t){for(var i=n.toString(16),r=t-i.length,u="0";r>0;r>>>=1,u+=u)1&r&&(i=u+i);return i},n});t.module("uiGmapgoogle-maps.wrapped").service("uiGmapGoogleMapsUtilV3",function(){return{init:_.once(function(){function r(n){n=n||{};google.maps.OverlayView.apply(this,arguments);this.content_=n.content||"";this.disableAutoPan_=n.disableAutoPan||!1;this.maxWidth_=n.maxWidth||0;this.pixelOffset_=n.pixelOffset||new google.maps.Size(0,0);this.position_=n.position||new google.maps.LatLng(0,0);this.zIndex_=n.zIndex||null;this.boxClass_=n.boxClass||"infoBox";this.boxStyle_=n.boxStyle||{};this.closeBoxMargin_=n.closeBoxMargin||"2px";this.closeBoxURL_=n.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif";""===n.closeBoxURL&&(this.closeBoxURL_="");this.infoBoxClearance_=n.infoBoxClearance||new google.maps.Size(1,1);"undefined"==typeof n.visible&&(n.visible="undefined"==typeof n.isHidden?!0:!n.isHidden);this.isHidden_=!n.visible;this.alignBottom_=n.alignBottom||!1;this.pane_=n.pane||"floatPane";this.enableEventPropagation_=n.enableEventPropagation||!1;this.div_=null;this.closeListener_=null;this.moveListener_=null;this.contextListener_=null;this.eventListeners_=null;this.fixedWidthSet_=null}function e(n,t){n.getMarkerClusterer().extend(e,google.maps.OverlayView);this.cluster_=n;this.className_=n.getMarkerClusterer().getClusterClass();this.styles_=t;this.center_=null;this.div_=null;this.sums_=null;this.visible_=!1;this.setMap(n.getMap())}function f(n){this.markerClusterer_=n;this.map_=n.getMap();this.gridSize_=n.getGridSize();this.minClusterSize_=n.getMinimumClusterSize();this.averageCenter_=n.getAverageCenter();this.markers_=[];this.center_=null;this.bounds_=null;this.clusterIcon_=new e(this,n.getStyles())}function t(n,r,u){this.extend(t,google.maps.OverlayView);r=r||[];u=u||{};this.markers_=[];this.clusters_=[];this.listeners_=[];this.activeMap_=null;this.ready_=!1;this.gridSize_=u.gridSize||60;this.minClusterSize_=u.minimumClusterSize||2;this.maxZoom_=u.maxZoom||null;this.styles_=u.styles||[];this.title_=u.title||"";this.zoomOnClick_=!0;u.zoomOnClick!==i&&(this.zoomOnClick_=u.zoomOnClick);this.averageCenter_=!1;u.averageCenter!==i&&(this.averageCenter_=u.averageCenter);this.ignoreHidden_=!1;u.ignoreHidden!==i&&(this.ignoreHidden_=u.ignoreHidden);this.enableRetinaIcons_=!1;u.enableRetinaIcons!==i&&(this.enableRetinaIcons_=u.enableRetinaIcons);this.imagePath_=u.imagePath||t.IMAGE_PATH;this.imageExtension_=u.imageExtension||t.IMAGE_EXTENSION;this.imageSizes_=u.imageSizes||t.IMAGE_SIZES;this.calculator_=u.calculator||t.CALCULATOR;this.batchSize_=u.batchSize||t.BATCH_SIZE;this.batchSizeIE_=u.batchSizeIE||t.BATCH_SIZE_IE;this.clusterClass_=u.clusterClass||"cluster";-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_);this.setupStyles_();this.addMarkers(r,!0);this.setMap(n)}function s(n,t){function i(){}i.prototype=t.prototype;n.superClass_=t.prototype;n.prototype=new i;n.prototype.constructor=n}function u(n,t){this.marker_=n;this.handCursorURL_=n.handCursorURL;this.labelDiv_=document.createElement("div");this.labelDiv_.style.cssText="position: absolute; overflow: hidden;";this.eventDiv_=document.createElement("div");this.eventDiv_.style.cssText=this.labelDiv_.style.cssText;this.eventDiv_.setAttribute("onselectstart","return false;");this.eventDiv_.setAttribute("ondragstart","return false;");this.crossDiv_=u.getSharedCross(t)}function o(n){n=n||{};n.labelContent=n.labelContent||"";n.labelAnchor=n.labelAnchor||new google.maps.Point(0,0);n.labelClass=n.labelClass||"markerLabels";n.labelStyle=n.labelStyle||{};n.labelInBackground=n.labelInBackground||!1;"undefined"==typeof n.labelVisible&&(n.labelVisible=!0);"undefined"==typeof n.raiseOnDrag&&(n.raiseOnDrag=!0);"undefined"==typeof n.clickable&&(n.clickable=!0);"undefined"==typeof n.draggable&&(n.draggable=!1);"undefined"==typeof n.optimized&&(n.optimized=!1);n.crossImage=n.crossImage||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/drag_cross_67_16.png";n.handCursor=n.handCursor||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/closedhand_8_8.cur";n.optimized=!1;this.label=new u(this,n.crossImage,n.handCursor);google.maps.Marker.apply(this,arguments)}r.prototype=new google.maps.OverlayView;r.prototype.createInfoBoxDiv_=function(){var n,t,i,u=this,r=function(n){n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation()},f=function(n){n.returnValue=!1;n.preventDefault&&n.preventDefault();u.enableEventPropagation_||r(n)};if(!this.div_){if(this.div_=document.createElement("div"),this.setBoxStyle_(),"undefined"==typeof this.content_.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+this.content_:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(this.content_)),this.getPanes()[this.pane_].appendChild(this.div_),this.addClickHandler_(),this.div_.style.width?this.fixedWidthSet_=!0:0!==this.maxWidth_&&this.div_.offsetWidth>this.maxWidth_?(this.div_.style.width=this.maxWidth_,this.div_.style.overflow="auto",this.fixedWidthSet_=!0):(i=this.getBoxWidths_(),this.div_.style.width=this.div_.offsetWidth-i.left-i.right+"px",this.fixedWidthSet_=!1),this.panBox_(this.disableAutoPan_),!this.enableEventPropagation_){for(this.eventListeners_=[],t=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],n=0;n<t.length;n++)this.eventListeners_.push(google.maps.event.addDomListener(this.div_,t[n],r));this.eventListeners_.push(google.maps.event.addDomListener(this.div_,"mouseover",function(){this.style.cursor="default"}))}this.contextListener_=google.maps.event.addDomListener(this.div_,"contextmenu",f);google.maps.event.trigger(this,"domready")}};r.prototype.getCloseBoxImg_=function(){var n="";return""!==this.closeBoxURL_&&(n="<img",n+=" src='"+this.closeBoxURL_+"'",n+=" align=right",n+=" style='",n+=" position: relative;",n+=" cursor: pointer;",n+=" margin: "+this.closeBoxMargin_+";",n+="'>"),n};r.prototype.addClickHandler_=function(){var n;""!==this.closeBoxURL_?(n=this.div_.firstChild,this.closeListener_=google.maps.event.addDomListener(n,"click",this.getCloseClickHandler_())):this.closeListener_=null};r.prototype.getCloseClickHandler_=function(){var n=this;return function(t){t.cancelBubble=!0;t.stopPropagation&&t.stopPropagation();google.maps.event.trigger(n,"closeclick");n.close()}};r.prototype.panBox_=function(n){var i,y,e=0,f=0;if(!n&&(i=this.getMap(),i instanceof google.maps.Map)){i.getBounds().contains(this.position_)||i.setCenter(this.position_);y=i.getBounds();var l=i.getDiv(),a=l.offsetWidth,o=l.offsetHeight,s=this.pixelOffset_.width,r=this.pixelOffset_.height,v=this.div_.offsetWidth,h=this.div_.offsetHeight,c=this.infoBoxClearance_.width,u=this.infoBoxClearance_.height,t=this.getProjection().fromLatLngToContainerPixel(this.position_);(t.x<-s+c?e=t.x+s-c:t.x+v+s+c>a&&(e=t.x+v+s+c-a),this.alignBottom_?t.y<-r+u+h?f=t.y+r-u-h:t.y+r+u>o&&(f=t.y+r+u-o):t.y<-r+u?f=t.y+r-u:t.y+h+r+u>o&&(f=t.y+h+r+u-o),0!==e||0!==f)&&(i.getCenter(),i.panBy(e,f))}};r.prototype.setBoxStyle_=function(){var n,t;if(this.div_){this.div_.className=this.boxClass_;this.div_.style.cssText="";t=this.boxStyle_;for(n in t)t.hasOwnProperty(n)&&(this.div_.style[n]=t[n]);"undefined"!=typeof this.div_.style.opacity&&""!==this.div_.style.opacity&&(this.div_.style.filter="alpha(opacity="+100*this.div_.style.opacity+")");this.div_.style.position="absolute";this.div_.style.visibility="hidden";null!==this.zIndex_&&(this.div_.style.zIndex=this.zIndex_)}};r.prototype.getBoxWidths_=function(){var i,n={top:0,bottom:0,left:0,right:0},t=this.div_;return document.defaultView&&document.defaultView.getComputedStyle?(i=t.ownerDocument.defaultView.getComputedStyle(t,""),i&&(n.top=parseInt(i.borderTopWidth,10)||0,n.bottom=parseInt(i.borderBottomWidth,10)||0,n.left=parseInt(i.borderLeftWidth,10)||0,n.right=parseInt(i.borderRightWidth,10)||0)):document.documentElement.currentStyle&&t.currentStyle&&(n.top=parseInt(t.currentStyle.borderTopWidth,10)||0,n.bottom=parseInt(t.currentStyle.borderBottomWidth,10)||0,n.left=parseInt(t.currentStyle.borderLeftWidth,10)||0,n.right=parseInt(t.currentStyle.borderRightWidth,10)||0),n};r.prototype.onRemove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)};r.prototype.draw=function(){this.createInfoBoxDiv_();var n=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=n.x+this.pixelOffset_.width+"px";this.alignBottom_?this.div_.style.bottom=-(n.y+this.pixelOffset_.height)+"px":this.div_.style.top=n.y+this.pixelOffset_.height+"px";this.div_.style.visibility=this.isHidden_?"hidden":"visible"};r.prototype.setOptions=function(n){"undefined"!=typeof n.boxClass&&(this.boxClass_=n.boxClass,this.setBoxStyle_());"undefined"!=typeof n.boxStyle&&(this.boxStyle_=n.boxStyle,this.setBoxStyle_());"undefined"!=typeof n.content&&this.setContent(n.content);"undefined"!=typeof n.disableAutoPan&&(this.disableAutoPan_=n.disableAutoPan);"undefined"!=typeof n.maxWidth&&(this.maxWidth_=n.maxWidth);"undefined"!=typeof n.pixelOffset&&(this.pixelOffset_=n.pixelOffset);"undefined"!=typeof n.alignBottom&&(this.alignBottom_=n.alignBottom);"undefined"!=typeof n.position&&this.setPosition(n.position);"undefined"!=typeof n.zIndex&&this.setZIndex(n.zIndex);"undefined"!=typeof n.closeBoxMargin&&(this.closeBoxMargin_=n.closeBoxMargin);"undefined"!=typeof n.closeBoxURL&&(this.closeBoxURL_=n.closeBoxURL);"undefined"!=typeof n.infoBoxClearance&&(this.infoBoxClearance_=n.infoBoxClearance);"undefined"!=typeof n.isHidden&&(this.isHidden_=n.isHidden);"undefined"!=typeof n.visible&&(this.isHidden_=!n.visible);"undefined"!=typeof n.enableEventPropagation&&(this.enableEventPropagation_=n.enableEventPropagation);this.div_&&this.draw()};r.prototype.setContent=function(n){this.content_=n;this.div_&&(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.fixedWidthSet_||(this.div_.style.width=""),"undefined"==typeof n.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+n:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(n)),this.fixedWidthSet_||(this.div_.style.width=this.div_.offsetWidth+"px","undefined"==typeof n.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+n:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(n))),this.addClickHandler_());google.maps.event.trigger(this,"content_changed")};r.prototype.setPosition=function(n){this.position_=n;this.div_&&this.draw();google.maps.event.trigger(this,"position_changed")};r.prototype.setZIndex=function(n){this.zIndex_=n;this.div_&&(this.div_.style.zIndex=n);google.maps.event.trigger(this,"zindex_changed")};r.prototype.setVisible=function(n){this.isHidden_=!n;this.div_&&(this.div_.style.visibility=this.isHidden_?"hidden":"visible")};r.prototype.getContent=function(){return this.content_};r.prototype.getPosition=function(){return this.position_};r.prototype.getZIndex=function(){return this.zIndex_};r.prototype.getVisible=function(){return"undefined"==typeof this.getMap()||null===this.getMap()?!1:!this.isHidden_};r.prototype.show=function(){this.isHidden_=!1;this.div_&&(this.div_.style.visibility="visible")};r.prototype.hide=function(){this.isHidden_=!0;this.div_&&(this.div_.style.visibility="hidden")};r.prototype.open=function(n,t){var i=this;t&&(this.position_=t.getPosition(),this.moveListener_=google.maps.event.addListener(t,"position_changed",function(){i.setPosition(this.getPosition())}));this.setMap(n);this.div_&&this.panBox_()};r.prototype.close=function(){var n;if(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.eventListeners_){for(n=0;n<this.eventListeners_.length;n++)google.maps.event.removeListener(this.eventListeners_[n]);this.eventListeners_=null}this.moveListener_&&(google.maps.event.removeListener(this.moveListener_),this.moveListener_=null);this.contextListener_&&(google.maps.event.removeListener(this.contextListener_),this.contextListener_=null);this.setMap(null)},function(){function t(n,t){var r=this,i=new google.maps.OverlayView;i.onAdd=function(){r.init_(n,t)};i.draw=function(){};i.onRemove=function(){};i.setMap(n);this.prjov_=i}var r=function(n){var t;switch(n){case"thin":t="2px";break;case"medium":t="4px";break;case"thick":t="6px";break;default:t=n}return t},o=function(n){var i,t={};if(document.defaultView&&document.defaultView.getComputedStyle){if(i=n.ownerDocument.defaultView.getComputedStyle(n,""))return t.top=parseInt(i.borderTopWidth,10)||0,t.bottom=parseInt(i.borderBottomWidth,10)||0,t.left=parseInt(i.borderLeftWidth,10)||0,t.right=parseInt(i.borderRightWidth,10)||0,t}else if(document.documentElement.currentStyle&&n.currentStyle)return t.top=parseInt(r(n.currentStyle.borderTopWidth),10)||0,t.bottom=parseInt(r(n.currentStyle.borderBottomWidth),10)||0,t.left=parseInt(r(n.currentStyle.borderLeftWidth),10)||0,t.right=parseInt(r(n.currentStyle.borderRightWidth),10)||0,t;return t.top=parseInt(n.style["border-top-width"],10)||0,t.bottom=parseInt(n.style["border-bottom-width"],10)||0,t.left=parseInt(n.style["border-left-width"],10)||0,t.right=parseInt(n.style["border-right-width"],10)||0,t},u={x:0,y:0},s=function(){u.x="undefined"!=typeof document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;u.y="undefined"!=typeof document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop};s();var h=function(t){var i=0,r=0;return t=t||n.event,"undefined"!=typeof t.pageX?(i=t.pageX,r=t.pageY):"undefined"!=typeof t.clientX&&(i=t.clientX+u.x,r=t.clientY+u.y),{left:i,top:r}},f=function(t){for(var u,h,f=t.offsetLeft,e=t.offsetTop,i=t.offsetParent;null!==i;){i!==document.body&&i!==document.documentElement&&(f-=i.scrollLeft,e-=i.scrollTop);var r=i,o=r.offsetLeft,s=r.offsetTop;o||s||!n.getComputedStyle||(u=document.defaultView.getComputedStyle(r,null).MozTransform||document.defaultView.getComputedStyle(r,null).WebkitTransform,u&&"string"==typeof u&&(h=u.split(","),o+=parseInt(h[4],10)||0,s+=parseInt(h[5],10)||0));f+=o;e+=s;i=i.offsetParent}return{left:f,top:e}},i=function(n,t){if(n&&t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n},e=function(n,t){"undefined"!=typeof t&&(n.style.opacity=t);"undefined"!=typeof n.style.opacity&&""!==n.style.opacity&&(n.style.filter="alpha(opacity="+100*n.style.opacity+")")};t.prototype.init_=function(t,r){var u,f=this;for(this.map_=t,r=r||{},this.key_=r.key||"shift",this.key_=this.key_.toLowerCase(),this.borderWidths_=o(this.map_.getDiv()),this.veilDiv_=[],u=0;4>u;u++)this.veilDiv_[u]=document.createElement("div"),this.veilDiv_[u].onselectstart=function(){return!1},i(this.veilDiv_[u].style,{backgroundColor:"gray",opacity:.25,cursor:"crosshair"}),i(this.veilDiv_[u].style,r.paneStyle),i(this.veilDiv_[u].style,r.veilStyle),i(this.veilDiv_[u].style,{position:"absolute",overflow:"hidden",display:"none"}),"shift"===this.key_&&(this.veilDiv_[u].style.MozUserSelect="none"),e(this.veilDiv_[u]),"transparent"===this.veilDiv_[u].style.backgroundColor&&(this.veilDiv_[u].style.backgroundColor="white",e(this.veilDiv_[u],0)),this.map_.getDiv().appendChild(this.veilDiv_[u]);this.noZoom_=r.noZoom||!1;this.visualEnabled_=r.visualEnabled||!1;this.visualClass_=r.visualClass||"";this.visualPosition_=r.visualPosition||google.maps.ControlPosition.LEFT_TOP;this.visualPositionOffset_=r.visualPositionOffset||new google.maps.Size(35,0);this.visualPositionIndex_=r.visualPositionIndex||null;this.visualSprite_=r.visualSprite||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/mapfiles/ftr/controls/dragzoom_btn.png";this.visualSize_=r.visualSize||new google.maps.Size(20,20);this.visualTips_=r.visualTips||{};this.visualTips_.off=this.visualTips_.off||"Turn on drag zoom mode";this.visualTips_.on=this.visualTips_.on||"Turn off drag zoom mode";this.boxDiv_=document.createElement("div");i(this.boxDiv_.style,{border:"4px solid #736AFF"});i(this.boxDiv_.style,r.boxStyle);i(this.boxDiv_.style,{position:"absolute",display:"none"});e(this.boxDiv_);this.map_.getDiv().appendChild(this.boxDiv_);this.boxBorderWidths_=o(this.boxDiv_);this.listeners_=[google.maps.event.addDomListener(document,"keydown",function(n){f.onKeyDown_(n)}),google.maps.event.addDomListener(document,"keyup",function(n){f.onKeyUp_(n)}),google.maps.event.addDomListener(this.veilDiv_[0],"mousedown",function(n){f.onMouseDown_(n)}),google.maps.event.addDomListener(this.veilDiv_[1],"mousedown",function(n){f.onMouseDown_(n)}),google.maps.event.addDomListener(this.veilDiv_[2],"mousedown",function(n){f.onMouseDown_(n)}),google.maps.event.addDomListener(this.veilDiv_[3],"mousedown",function(n){f.onMouseDown_(n)}),google.maps.event.addDomListener(document,"mousedown",function(n){f.onMouseDownDocument_(n)}),google.maps.event.addDomListener(document,"mousemove",function(n){f.onMouseMove_(n)}),google.maps.event.addDomListener(document,"mouseup",function(n){f.onMouseUp_(n)}),google.maps.event.addDomListener(n,"scroll",s)];this.hotKeyDown_=!1;this.mouseDown_=!1;this.dragging_=!1;this.startPt_=null;this.endPt_=null;this.mapWidth_=null;this.mapHeight_=null;this.mousePosn_=null;this.mapPosn_=null;this.visualEnabled_&&(this.buttonDiv_=this.initControl_(this.visualPositionOffset_),null!==this.visualPositionIndex_&&(this.buttonDiv_.index=this.visualPositionIndex_),this.map_.controls[this.visualPosition_].push(this.buttonDiv_),this.controlIndex_=this.map_.controls[this.visualPosition_].length-1)};t.prototype.initControl_=function(n){var r,u,t=this;return r=document.createElement("div"),r.className=this.visualClass_,r.style.position="relative",r.style.overflow="hidden",r.style.height=this.visualSize_.height+"px",r.style.width=this.visualSize_.width+"px",r.title=this.visualTips_.off,u=document.createElement("img"),u.src=this.visualSprite_,u.style.position="absolute",u.style.left=-(2*this.visualSize_.width)+"px",u.style.top="0px",r.appendChild(u),r.onclick=function(n){t.hotKeyDown_=!t.hotKeyDown_;t.hotKeyDown_?(t.buttonDiv_.firstChild.style.left=-(0*t.visualSize_.width)+"px",t.buttonDiv_.title=t.visualTips_.on,t.activatedByControl_=!0,google.maps.event.trigger(t,"activate")):(t.buttonDiv_.firstChild.style.left=-(2*t.visualSize_.width)+"px",t.buttonDiv_.title=t.visualTips_.off,google.maps.event.trigger(t,"deactivate"));t.onMouseMove_(n)},r.onmouseover=function(){t.buttonDiv_.firstChild.style.left=-(1*t.visualSize_.width)+"px"},r.onmouseout=function(){t.hotKeyDown_?(t.buttonDiv_.firstChild.style.left=-(0*t.visualSize_.width)+"px",t.buttonDiv_.title=t.visualTips_.on):(t.buttonDiv_.firstChild.style.left=-(2*t.visualSize_.width)+"px",t.buttonDiv_.title=t.visualTips_.off)},r.ondragstart=function(){return!1},i(r.style,{cursor:"pointer",marginTop:n.height+"px",marginLeft:n.width+"px"}),r};t.prototype.isHotKeyDown_=function(t){var i;if(t=t||n.event,i=t.shiftKey&&"shift"===this.key_||t.altKey&&"alt"===this.key_||t.ctrlKey&&"ctrl"===this.key_,!i)switch(t.keyCode){case 16:"shift"===this.key_&&(i=!0);break;case 17:"ctrl"===this.key_&&(i=!0);break;case 18:"alt"===this.key_&&(i=!0)}return i};t.prototype.isMouseOnMap_=function(){var n=this.mousePosn_,t,i;return n?(t=this.mapPosn_,i=this.map_.getDiv(),n.left>t.left&&n.left<t.left+i.offsetWidth&&n.top>t.top&&n.top<t.top+i.offsetHeight):!1};t.prototype.setVeilVisibility_=function(){var n,r;if(this.map_&&this.hotKeyDown_&&this.isMouseOnMap_())if(r=this.map_.getDiv(),this.mapWidth_=r.offsetWidth-(this.borderWidths_.left+this.borderWidths_.right),this.mapHeight_=r.offsetHeight-(this.borderWidths_.top+this.borderWidths_.bottom),this.activatedByControl_){var t=parseInt(this.buttonDiv_.style.left,10)+this.visualPositionOffset_.width,u=parseInt(this.buttonDiv_.style.top,10)+this.visualPositionOffset_.height,i=this.visualSize_.width,f=this.visualSize_.height;for(this.veilDiv_[0].style.top="0px",this.veilDiv_[0].style.left="0px",this.veilDiv_[0].style.width=t+"px",this.veilDiv_[0].style.height=this.mapHeight_+"px",this.veilDiv_[1].style.top="0px",this.veilDiv_[1].style.left=t+i+"px",this.veilDiv_[1].style.width=this.mapWidth_-(t+i)+"px",this.veilDiv_[1].style.height=this.mapHeight_+"px",this.veilDiv_[2].style.top="0px",this.veilDiv_[2].style.left=t+"px",this.veilDiv_[2].style.width=i+"px",this.veilDiv_[2].style.height=u+"px",this.veilDiv_[3].style.top=u+f+"px",this.veilDiv_[3].style.left=t+"px",this.veilDiv_[3].style.width=i+"px",this.veilDiv_[3].style.height=this.mapHeight_-(u+f)+"px",n=0;n<this.veilDiv_.length;n++)this.veilDiv_[n].style.display="block"}else{for(this.veilDiv_[0].style.left="0px",this.veilDiv_[0].style.top="0px",this.veilDiv_[0].style.width=this.mapWidth_+"px",this.veilDiv_[0].style.height=this.mapHeight_+"px",n=1;n<this.veilDiv_.length;n++)this.veilDiv_[n].style.width="0px",this.veilDiv_[n].style.height="0px";for(n=0;n<this.veilDiv_.length;n++)this.veilDiv_[n].style.display="block"}else for(n=0;n<this.veilDiv_.length;n++)this.veilDiv_[n].style.display="none"};t.prototype.onKeyDown_=function(n){this.map_&&!this.hotKeyDown_&&this.isHotKeyDown_(n)&&(this.mapPosn_=f(this.map_.getDiv()),this.hotKeyDown_=!0,this.activatedByControl_=!1,this.setVeilVisibility_(),google.maps.event.trigger(this,"activate"))};t.prototype.getMousePoint_=function(n){var i=h(n),t=new google.maps.Point;return t.x=i.left-this.mapPosn_.left-this.borderWidths_.left,t.y=i.top-this.mapPosn_.top-this.borderWidths_.top,t.x=Math.min(t.x,this.mapWidth_),t.y=Math.min(t.y,this.mapHeight_),t.x=Math.max(t.x,0),t.y=Math.max(t.y,0),t};t.prototype.onMouseDown_=function(n){if(this.map_&&this.hotKeyDown_){this.mapPosn_=f(this.map_.getDiv());this.dragging_=!0;this.startPt_=this.endPt_=this.getMousePoint_(n);this.boxDiv_.style.width=this.boxDiv_.style.height="0px";var t=this.prjov_.getProjection(),i=t.fromContainerPixelToLatLng(this.startPt_);google.maps.event.trigger(this,"dragstart",i)}};t.prototype.onMouseDownDocument_=function(){this.mouseDown_=!0};t.prototype.onMouseMove_=function(n){if(this.mousePosn_=h(n),this.dragging_){this.endPt_=this.getMousePoint_(n);var t=Math.min(this.startPt_.x,this.endPt_.x),i=Math.min(this.startPt_.y,this.endPt_.y),r=Math.abs(this.startPt_.x-this.endPt_.x),u=Math.abs(this.startPt_.y-this.endPt_.y),e=Math.max(0,r-(this.boxBorderWidths_.left+this.boxBorderWidths_.right)),o=Math.max(0,u-(this.boxBorderWidths_.top+this.boxBorderWidths_.bottom));this.veilDiv_[0].style.top="0px";this.veilDiv_[0].style.left="0px";this.veilDiv_[0].style.width=t+"px";this.veilDiv_[0].style.height=this.mapHeight_+"px";this.veilDiv_[1].style.top="0px";this.veilDiv_[1].style.left=t+r+"px";this.veilDiv_[1].style.width=this.mapWidth_-(t+r)+"px";this.veilDiv_[1].style.height=this.mapHeight_+"px";this.veilDiv_[2].style.top="0px";this.veilDiv_[2].style.left=t+"px";this.veilDiv_[2].style.width=r+"px";this.veilDiv_[2].style.height=i+"px";this.veilDiv_[3].style.top=i+u+"px";this.veilDiv_[3].style.left=t+"px";this.veilDiv_[3].style.width=r+"px";this.veilDiv_[3].style.height=this.mapHeight_-(i+u)+"px";this.boxDiv_.style.top=i+"px";this.boxDiv_.style.left=t+"px";this.boxDiv_.style.width=e+"px";this.boxDiv_.style.height=o+"px";this.boxDiv_.style.display="block";google.maps.event.trigger(this,"drag",new google.maps.Point(t,i+u),new google.maps.Point(t+r,i),this.prjov_.getProjection())}else this.mouseDown_||(this.mapPosn_=f(this.map_.getDiv()),this.setVeilVisibility_())};t.prototype.onMouseUp_=function(n){var u,l=this,t,i;if(this.mouseDown_=!1,this.dragging_){if(this.getMousePoint_(n).x===this.startPt_.x&&this.getMousePoint_(n).y===this.startPt_.y)return void this.onKeyUp_(n);var f=Math.min(this.startPt_.x,this.endPt_.x),e=Math.min(this.startPt_.y,this.endPt_.y),a=Math.abs(this.startPt_.x-this.endPt_.x),v=Math.abs(this.startPt_.y-this.endPt_.y),o=!0;o&&(f+=this.borderWidths_.left,e+=this.borderWidths_.top);var r=this.prjov_.getProjection(),s=r.fromContainerPixelToLatLng(new google.maps.Point(f,e+v)),h=r.fromContainerPixelToLatLng(new google.maps.Point(f+a,e)),c=new google.maps.LatLngBounds(s,h);this.noZoom_?this.boxDiv_.style.display="none":(u=this.map_.getZoom(),this.map_.fitBounds(c),this.map_.getZoom()<u&&this.map_.setZoom(u),t=r.fromLatLngToContainerPixel(s),i=r.fromLatLngToContainerPixel(h),o&&(t.x-=this.borderWidths_.left,t.y-=this.borderWidths_.top,i.x-=this.borderWidths_.left,i.y-=this.borderWidths_.top),this.boxDiv_.style.left=t.x+"px",this.boxDiv_.style.top=i.y+"px",this.boxDiv_.style.width=Math.abs(i.x-t.x)-(this.boxBorderWidths_.left+this.boxBorderWidths_.right)+"px",this.boxDiv_.style.height=Math.abs(i.y-t.y)-(this.boxBorderWidths_.top+this.boxBorderWidths_.bottom)+"px",setTimeout(function(){l.boxDiv_.style.display="none"},1e3));this.dragging_=!1;this.onMouseMove_(n);google.maps.event.trigger(this,"dragend",c);this.isHotKeyDown_(n)||this.onKeyUp_(n)}};t.prototype.onKeyUp_=function(){var n,t,i,u,f,r,e,o,s=null;if(this.map_&&this.hotKeyDown_){for(this.hotKeyDown_=!1,this.dragging_&&(this.boxDiv_.style.display="none",this.dragging_=!1,t=Math.min(this.startPt_.x,this.endPt_.x),i=Math.min(this.startPt_.y,this.endPt_.y),u=Math.abs(this.startPt_.x-this.endPt_.x),f=Math.abs(this.startPt_.y-this.endPt_.y),r=this.prjov_.getProjection(),e=r.fromContainerPixelToLatLng(new google.maps.Point(t,i+f)),o=r.fromContainerPixelToLatLng(new google.maps.Point(t+u,i)),s=new google.maps.LatLngBounds(e,o)),n=0;n<this.veilDiv_.length;n++)this.veilDiv_[n].style.display="none";this.visualEnabled_&&(this.buttonDiv_.firstChild.style.left=-(2*this.visualSize_.width)+"px",this.buttonDiv_.title=this.visualTips_.off,this.buttonDiv_.style.display="");google.maps.event.trigger(this,"deactivate",s)}};google.maps.Map.prototype.enableKeyDragZoom=function(n){this.dragZoom_=new t(this,n)};google.maps.Map.prototype.disableKeyDragZoom=function(){var t,n=this.dragZoom_;if(n){for(t=0;t<n.listeners_.length;++t)google.maps.event.removeListener(n.listeners_[t]);for(this.getDiv().removeChild(n.boxDiv_),t=0;t<n.veilDiv_.length;t++)this.getDiv().removeChild(n.veilDiv_[t]);n.visualEnabled_&&this.controls[n.visualPosition_].removeAt(n.controlIndex_);n.prjov_.setMap(null);this.dragZoom_=null}};google.maps.Map.prototype.keyDragZoomEnabled=function(){return null!==this.dragZoom_};google.maps.Map.prototype.getDragZoomObject=function(){return this.dragZoom_}}();e.prototype.onAdd=function(){var t,i,n=this;this.div_=document.createElement("div");this.div_.className=this.className_;this.visible_&&this.show();this.getPanes().overlayMouseTarget.appendChild(this.div_);this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){i=t});google.maps.event.addDomListener(this.div_,"mousedown",function(){t=!0;i=!1});google.maps.event.addDomListener(this.div_,"click",function(r){if(t=!1,!i){var e,f,u=n.cluster_.getMarkerClusterer();google.maps.event.trigger(u,"click",n.cluster_);google.maps.event.trigger(u,"clusterclick",n.cluster_);u.getZoomOnClick()&&(f=u.getMaxZoom(),e=n.cluster_.getBounds(),u.getMap().fitBounds(e),setTimeout(function(){u.getMap().fitBounds(e);null!==f&&u.getMap().getZoom()>f&&u.getMap().setZoom(f+1)},100));r.cancelBubble=!0;r.stopPropagation&&r.stopPropagation()}});google.maps.event.addDomListener(this.div_,"mouseover",function(){var t=n.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseover",n.cluster_)});google.maps.event.addDomListener(this.div_,"mouseout",function(){var t=n.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseout",n.cluster_)})};e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)};e.prototype.draw=function(){if(this.visible_){var n=this.getPosFromLatLng_(this.center_);this.div_.style.top=n.y+"px";this.div_.style.left=n.x+"px"}};e.prototype.hide=function(){this.div_&&(this.div_.style.display="none");this.visible_=!1};e.prototype.show=function(){if(this.div_){var n="",r=this.backgroundPosition_.split(" "),t=parseInt(r[0].trim(),10),i=parseInt(r[1].trim(),10),u=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(u);n="<img src='"+this.url_+"' style='position: absolute; top: "+i+"px; left: "+t+"px; ";this.cluster_.getMarkerClusterer().enableRetinaIcons_||(n+="clip: rect("+-1*i+"px, "+(-1*t+this.width_)+"px, "+(-1*i+this.height_)+"px, "+-1*t+"px);");n+="'>";this.div_.innerHTML=n+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"<\/div>";this.div_.title="undefined"==typeof this.sums_.title||""===this.sums_.title?this.cluster_.getMarkerClusterer().getTitle():this.sums_.title;this.div_.style.display=""}this.visible_=!0};e.prototype.useStyle=function(n){var i,t;this.sums_=n;i=Math.max(0,n.index-1);i=Math.min(this.styles_.length-1,i);t=this.styles_[i];this.url_=t.url;this.height_=t.height;this.width_=t.width;this.anchorText_=t.anchorText||[0,0];this.anchorIcon_=t.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)];this.textColor_=t.textColor||"black";this.textSize_=t.textSize||11;this.textDecoration_=t.textDecoration||"none";this.fontWeight_=t.fontWeight||"bold";this.fontStyle_=t.fontStyle||"normal";this.fontFamily_=t.fontFamily||"Arial,sans-serif";this.backgroundPosition_=t.backgroundPosition||"0 0"};e.prototype.setCenter=function(n){this.center_=n};e.prototype.createCss=function(n){var t=[];return t.push("cursor: pointer;"),t.push("position: absolute; top: "+n.y+"px; left: "+n.x+"px;"),t.push("width: "+this.width_+"px; height: "+this.height_+"px;"),t.join("")};e.prototype.getPosFromLatLng_=function(n){var t=this.getProjection().fromLatLngToDivPixel(n);return t.x-=this.anchorIcon_[1],t.y-=this.anchorIcon_[0],t.x=parseInt(t.x,10),t.y=parseInt(t.y,10),t};f.prototype.getSize=function(){return this.markers_.length};f.prototype.getMarkers=function(){return this.markers_};f.prototype.getCenter=function(){return this.center_};f.prototype.getMap=function(){return this.map_};f.prototype.getMarkerClusterer=function(){return this.markerClusterer_};f.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),i=this.getMarkers(),n=0;n<i.length;n++)t.extend(i[n].getPosition());return t};f.prototype.remove=function(){this.clusterIcon_.setMap(null);this.markers_=[];delete this.markers_};f.prototype.addMarker=function(n){var t,i,u;if(this.isMarkerAlreadyAdded_(n))return!1;if(this.center_){if(this.averageCenter_){var r=this.markers_.length+1,f=(this.center_.lat()*(r-1)+n.getPosition().lat())/r,e=(this.center_.lng()*(r-1)+n.getPosition().lng())/r;this.center_=new google.maps.LatLng(f,e);this.calculateBounds_()}}else this.center_=n.getPosition(),this.calculateBounds_();if(n.isAdded=!0,this.markers_.push(n),i=this.markers_.length,u=this.markerClusterer_.getMaxZoom(),null!==u&&this.map_.getZoom()>u)n.getMap()!==this.map_&&n.setMap(this.map_);else if(i<this.minClusterSize_)n.getMap()!==this.map_&&n.setMap(this.map_);else if(i===this.minClusterSize_)for(t=0;i>t;t++)this.markers_[t].setMap(null);else n.setMap(null);return this.updateIcon_(),!0};f.prototype.isMarkerInClusterBounds=function(n){return this.bounds_.contains(n.getPosition())};f.prototype.calculateBounds_=function(){var n=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(n)};f.prototype.updateIcon_=function(){var r=this.markers_.length,n=this.markerClusterer_.getMaxZoom(),t,i;if(null!==n&&this.map_.getZoom()>n||r<this.minClusterSize_)return void this.clusterIcon_.hide();t=this.markerClusterer_.getStyles().length;i=this.markerClusterer_.getCalculator()(this.markers_,t);this.clusterIcon_.setCenter(this.center_);this.clusterIcon_.useStyle(i);this.clusterIcon_.show()};f.prototype.isMarkerAlreadyAdded_=function(n){var t;if(this.markers_.indexOf)return-1!==this.markers_.indexOf(n);for(t=0;t<this.markers_.length;t++)if(n===this.markers_[t])return!0;return!1};t.prototype.onAdd=function(){var n=this;this.activeMap_=this.getMap();this.ready_=!0;this.repaint();this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){n.resetViewport_(!1);(this.getZoom()===(this.get("minZoom")||0)||this.getZoom()===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){n.redraw_()})]};t.prototype.onRemove=function(){for(var n=0;n<this.markers_.length;n++)this.markers_[n].getMap()!==this.activeMap_&&this.markers_[n].setMap(this.activeMap_);for(n=0;n<this.clusters_.length;n++)this.clusters_[n].remove();for(this.clusters_=[],n=0;n<this.listeners_.length;n++)google.maps.event.removeListener(this.listeners_[n]);this.listeners_=[];this.activeMap_=null;this.ready_=!1};t.prototype.draw=function(){};t.prototype.setupStyles_=function(){var n,t;if(!(this.styles_.length>0))for(n=0;n<this.imageSizes_.length;n++)t=this.imageSizes_[n],this.styles_.push({url:this.imagePath_+(n+1)+"."+this.imageExtension_,height:t,width:t})};t.prototype.fitMapToMarkers=function(){for(var t=this.getMarkers(),i=new google.maps.LatLngBounds,n=0;n<t.length;n++)i.extend(t[n].getPosition());this.getMap().fitBounds(i)};t.prototype.getGridSize=function(){return this.gridSize_};t.prototype.setGridSize=function(n){this.gridSize_=n};t.prototype.getMinimumClusterSize=function(){return this.minClusterSize_};t.prototype.setMinimumClusterSize=function(n){this.minClusterSize_=n};t.prototype.getMaxZoom=function(){return this.maxZoom_};t.prototype.setMaxZoom=function(n){this.maxZoom_=n};t.prototype.getStyles=function(){return this.styles_};t.prototype.setStyles=function(n){this.styles_=n};t.prototype.getTitle=function(){return this.title_};t.prototype.setTitle=function(n){this.title_=n};t.prototype.getZoomOnClick=function(){return this.zoomOnClick_};t.prototype.setZoomOnClick=function(n){this.zoomOnClick_=n};t.prototype.getAverageCenter=function(){return this.averageCenter_};t.prototype.setAverageCenter=function(n){this.averageCenter_=n};t.prototype.getIgnoreHidden=function(){return this.ignoreHidden_};t.prototype.setIgnoreHidden=function(n){this.ignoreHidden_=n};t.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_};t.prototype.setEnableRetinaIcons=function(n){this.enableRetinaIcons_=n};t.prototype.getImageExtension=function(){return this.imageExtension_};t.prototype.setImageExtension=function(n){this.imageExtension_=n};t.prototype.getImagePath=function(){return this.imagePath_};t.prototype.setImagePath=function(n){this.imagePath_=n};t.prototype.getImageSizes=function(){return this.imageSizes_};t.prototype.setImageSizes=function(n){this.imageSizes_=n};t.prototype.getCalculator=function(){return this.calculator_};t.prototype.setCalculator=function(n){this.calculator_=n};t.prototype.getBatchSizeIE=function(){return this.batchSizeIE_};t.prototype.setBatchSizeIE=function(n){this.batchSizeIE_=n};t.prototype.getClusterClass=function(){return this.clusterClass_};t.prototype.setClusterClass=function(n){this.clusterClass_=n};t.prototype.getMarkers=function(){return this.markers_};t.prototype.getTotalMarkers=function(){return this.markers_.length};t.prototype.getClusters=function(){return this.clusters_};t.prototype.getTotalClusters=function(){return this.clusters_.length};t.prototype.addMarker=function(n,t){this.pushMarkerTo_(n);t||this.redraw_()};t.prototype.addMarkers=function(n,t){for(var i in n)n.hasOwnProperty(i)&&this.pushMarkerTo_(n[i]);t||this.redraw_()};t.prototype.pushMarkerTo_=function(n){if(n.getDraggable()){var t=this;google.maps.event.addListener(n,"dragend",function(){t.ready_&&(this.isAdded=!1,t.repaint())})}n.isAdded=!1;this.markers_.push(n)};t.prototype.removeMarker=function(n,t){var i=this.removeMarker_(n);return!t&&i&&this.repaint(),i};t.prototype.removeMarkers=function(n,t){for(var u,r=!1,i=0;i<n.length;i++)u=this.removeMarker_(n[i]),r=r||u;return!t&&r&&this.repaint(),r};t.prototype.removeMarker_=function(n){var t,i=-1;if(this.markers_.indexOf)i=this.markers_.indexOf(n);else for(t=0;t<this.markers_.length;t++)if(n===this.markers_[t]){i=t;break}return-1===i?!1:(n.setMap(null),this.markers_.splice(i,1),!0)};t.prototype.clearMarkers=function(){this.resetViewport_(!0);this.markers_=[]};t.prototype.repaint=function(){var n=this.clusters_.slice();this.clusters_=[];this.resetViewport_(!1);this.redraw_();setTimeout(function(){for(var t=0;t<n.length;t++)n[t].remove()},0)};t.prototype.getExtendedBounds=function(n){var t=this.getProjection(),e=new google.maps.LatLng(n.getNorthEast().lat(),n.getNorthEast().lng()),o=new google.maps.LatLng(n.getSouthWest().lat(),n.getSouthWest().lng()),r=t.fromLatLngToDivPixel(e),i,u,f;return r.x+=this.gridSize_,r.y-=this.gridSize_,i=t.fromLatLngToDivPixel(o),i.x-=this.gridSize_,i.y+=this.gridSize_,u=t.fromDivPixelToLatLng(r),f=t.fromDivPixelToLatLng(i),n.extend(u),n.extend(f),n};t.prototype.redraw_=function(){this.createClusters_(0)};t.prototype.resetViewport_=function(n){for(var i,t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();for(this.clusters_=[],t=0;t<this.markers_.length;t++)i=this.markers_[t],i.isAdded=!1,n&&i.setMap(null)};t.prototype.distanceBetweenPoints_=function(n,t){var i=(t.lat()-n.lat())*Math.PI/180,r=(t.lng()-n.lng())*Math.PI/180,u=Math.sin(i/2)*Math.sin(i/2)+Math.cos(n.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2),f=2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u));return 6371*f};t.prototype.isMarkerInBounds_=function(n,t){return t.contains(n.getPosition())};t.prototype.addToClosestCluster_=function(n){for(var u,t,e,o=4e4,r=null,i=0;i<this.clusters_.length;i++)t=this.clusters_[i],e=t.getCenter(),e&&(u=this.distanceBetweenPoints_(e,n.getPosition()),o>u&&(o=u,r=t));r&&r.isMarkerInClusterBounds(n)?r.addMarker(n):(t=new f(this),t.addMarker(n),this.clusters_.push(t))};t.prototype.createClusters_=function(n){var i,t,u,e=this,f,r;if(this.ready_){for(0===n&&(google.maps.event.trigger(this,"clusteringbegin",this),"undefined"!=typeof this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),u=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.020707717434718,-178.48388434375),new google.maps.LatLng(-85.081364443845445,178.00048865625)),f=this.getExtendedBounds(u),r=Math.min(n+this.batchSize_,this.markers_.length),i=n;r>i;i++)t=this.markers_[i],!t.isAdded&&this.isMarkerInBounds_(t,f)&&(!this.ignoreHidden_||this.ignoreHidden_&&t.getVisible())&&this.addToClosestCluster_(t);r<this.markers_.length?this.timerRefStatic=setTimeout(function(){e.createClusters_(r)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}};t.prototype.extend=function(n,t){return function(n){for(var t in n.prototype)this.prototype[t]=n.prototype[t];return this}.apply(n,[t])};t.CALCULATOR=function(n,t){for(var i=0,u=n.length.toString(),r=u;0!==r;)r=parseInt(r/10,10),i++;return i=Math.min(i,t),{text:u,index:i,title:""}};t.BATCH_SIZE=2e3;t.BATCH_SIZE_IE=500;t.IMAGE_PATH="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m";t.IMAGE_EXTENSION="png";t.IMAGE_SIZES=[53,56,66,78,90];s(u,google.maps.OverlayView);u.getSharedCross=function(n){var t;return"undefined"==typeof u.getSharedCross.crossDiv&&(t=document.createElement("img"),t.style.cssText="position: absolute; z-index: 1000002; display: none;",t.style.marginLeft="-8px",t.style.marginTop="-9px",t.src=n,u.getSharedCross.crossDiv=t),u.getSharedCross.crossDiv};u.prototype.onAdd=function(){var s,h,c,e,i,l,a,n=this,r=!1,t=!1,f=20,v="url("+this.handCursorURL_+")",o=function(n){n.preventDefault&&n.preventDefault();n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation()},y=function(){n.marker_.setAnimation(null)};this.getPanes().overlayImage.appendChild(this.labelDiv_);this.getPanes().overlayMouseTarget.appendChild(this.eventDiv_);"undefined"==typeof u.getSharedCross.processed&&(this.getPanes().overlayImage.appendChild(this.crossDiv_),u.getSharedCross.processed=!0);this.listeners_=[google.maps.event.addDomListener(this.eventDiv_,"mouseover",function(t){(n.marker_.getDraggable()||n.marker_.getClickable())&&(this.style.cursor="pointer",google.maps.event.trigger(n.marker_,"mouseover",t))}),google.maps.event.addDomListener(this.eventDiv_,"mouseout",function(i){(n.marker_.getDraggable()||n.marker_.getClickable())&&!t&&(this.style.cursor=n.marker_.getCursor(),google.maps.event.trigger(n.marker_,"mouseout",i))}),google.maps.event.addDomListener(this.eventDiv_,"mousedown",function(i){t=!1;n.marker_.getDraggable()&&(r=!0,this.style.cursor=v);(n.marker_.getDraggable()||n.marker_.getClickable())&&(google.maps.event.trigger(n.marker_,"mousedown",i),o(i))}),google.maps.event.addDomListener(document,"mouseup",function(u){var o;if(r&&(r=!1,n.eventDiv_.style.cursor="pointer",google.maps.event.trigger(n.marker_,"mouseup",u)),t){if(i){o=n.getProjection().fromLatLngToDivPixel(n.marker_.getPosition());o.y+=f;n.marker_.setPosition(n.getProjection().fromDivPixelToLatLng(o));try{n.marker_.setAnimation(google.maps.Animation.BOUNCE);setTimeout(y,1406)}catch(h){}}n.crossDiv_.style.display="none";n.marker_.setZIndex(s);e=!0;t=!1;u.latLng=n.marker_.getPosition();google.maps.event.trigger(n.marker_,"dragend",u)}}),google.maps.event.addListener(n.marker_.getMap(),"mousemove",function(u){var e;r&&(t?(u.latLng=new google.maps.LatLng(u.latLng.lat()-h,u.latLng.lng()-c),e=n.getProjection().fromLatLngToDivPixel(u.latLng),i&&(n.crossDiv_.style.left=e.x+"px",n.crossDiv_.style.top=e.y+"px",n.crossDiv_.style.display="",e.y-=f),n.marker_.setPosition(n.getProjection().fromDivPixelToLatLng(e)),i&&(n.eventDiv_.style.top=e.y+f+"px"),google.maps.event.trigger(n.marker_,"drag",u)):(h=u.latLng.lat()-n.marker_.getPosition().lat(),c=u.latLng.lng()-n.marker_.getPosition().lng(),s=n.marker_.getZIndex(),l=n.marker_.getPosition(),a=n.marker_.getMap().getCenter(),i=n.marker_.get("raiseOnDrag"),t=!0,n.marker_.setZIndex(1e6),u.latLng=n.marker_.getPosition(),google.maps.event.trigger(n.marker_,"dragstart",u)))}),google.maps.event.addDomListener(document,"keydown",function(r){t&&27===r.keyCode&&(i=!1,n.marker_.setPosition(l),n.marker_.getMap().setCenter(a),google.maps.event.trigger(document,"mouseup",r))}),google.maps.event.addDomListener(this.eventDiv_,"click",function(t){(n.marker_.getDraggable()||n.marker_.getClickable())&&(e?e=!1:(google.maps.event.trigger(n.marker_,"click",t),o(t)))}),google.maps.event.addDomListener(this.eventDiv_,"dblclick",function(t){(n.marker_.getDraggable()||n.marker_.getClickable())&&(google.maps.event.trigger(n.marker_,"dblclick",t),o(t))}),google.maps.event.addListener(this.marker_,"dragstart",function(){t||(i=this.get("raiseOnDrag"))}),google.maps.event.addListener(this.marker_,"drag",function(){t||i&&(n.setPosition(f),n.labelDiv_.style.zIndex=1e6+(this.get("labelInBackground")?-1:1))}),google.maps.event.addListener(this.marker_,"dragend",function(){t||i&&n.setPosition(0)}),google.maps.event.addListener(this.marker_,"position_changed",function(){n.setPosition()}),google.maps.event.addListener(this.marker_,"zindex_changed",function(){n.setZIndex()}),google.maps.event.addListener(this.marker_,"visible_changed",function(){n.setVisible()}),google.maps.event.addListener(this.marker_,"labelvisible_changed",function(){n.setVisible()}),google.maps.event.addListener(this.marker_,"title_changed",function(){n.setTitle()}),google.maps.event.addListener(this.marker_,"labelcontent_changed",function(){n.setContent()}),google.maps.event.addListener(this.marker_,"labelanchor_changed",function(){n.setAnchor()}),google.maps.event.addListener(this.marker_,"labelclass_changed",function(){n.setStyles()}),google.maps.event.addListener(this.marker_,"labelstyle_changed",function(){n.setStyles()})]};u.prototype.onRemove=function(){var n;for(this.labelDiv_.parentNode.removeChild(this.labelDiv_),this.eventDiv_.parentNode.removeChild(this.eventDiv_),n=0;n<this.listeners_.length;n++)google.maps.event.removeListener(this.listeners_[n])};u.prototype.draw=function(){this.setContent();this.setTitle();this.setStyles()};u.prototype.setContent=function(){var n=this.marker_.get("labelContent");"undefined"==typeof n.nodeType?(this.labelDiv_.innerHTML=n,this.eventDiv_.innerHTML=this.labelDiv_.innerHTML):(this.labelDiv_.innerHTML="",this.labelDiv_.appendChild(n),n=n.cloneNode(!0),this.eventDiv_.appendChild(n))};u.prototype.setTitle=function(){this.eventDiv_.title=this.marker_.getTitle()||""};u.prototype.setStyles=function(){var n,t;this.labelDiv_.className=this.marker_.get("labelClass");this.eventDiv_.className=this.labelDiv_.className;this.labelDiv_.style.cssText="";this.eventDiv_.style.cssText="";t=this.marker_.get("labelStyle");for(n in t)t.hasOwnProperty(n)&&(this.labelDiv_.style[n]=t[n],this.eventDiv_.style[n]=t[n]);this.setMandatoryStyles()};u.prototype.setMandatoryStyles=function(){this.labelDiv_.style.position="absolute";this.labelDiv_.style.overflow="hidden";"undefined"!=typeof this.labelDiv_.style.opacity&&""!==this.labelDiv_.style.opacity&&(this.labelDiv_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(opacity='+100*this.labelDiv_.style.opacity+')"',this.labelDiv_.style.filter="alpha(opacity="+100*this.labelDiv_.style.opacity+")");this.eventDiv_.style.position=this.labelDiv_.style.position;this.eventDiv_.style.overflow=this.labelDiv_.style.overflow;this.eventDiv_.style.opacity=.01;this.eventDiv_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(opacity=1)"';this.eventDiv_.style.filter="alpha(opacity=1)";this.setAnchor();this.setPosition();this.setVisible()};u.prototype.setAnchor=function(){var n=this.marker_.get("labelAnchor");this.labelDiv_.style.marginLeft=-n.x+"px";this.labelDiv_.style.marginTop=-n.y+"px";this.eventDiv_.style.marginLeft=-n.x+"px";this.eventDiv_.style.marginTop=-n.y+"px"};u.prototype.setPosition=function(n){var t=this.getProjection().fromLatLngToDivPixel(this.marker_.getPosition());"undefined"==typeof n&&(n=0);this.labelDiv_.style.left=Math.round(t.x)+"px";this.labelDiv_.style.top=Math.round(t.y-n)+"px";this.eventDiv_.style.left=this.labelDiv_.style.left;this.eventDiv_.style.top=this.labelDiv_.style.top;this.setZIndex()};u.prototype.setZIndex=function(){var n=this.marker_.get("labelInBackground")?-1:1;"undefined"==typeof this.marker_.getZIndex()?(this.labelDiv_.style.zIndex=parseInt(this.labelDiv_.style.top,10)+n,this.eventDiv_.style.zIndex=this.labelDiv_.style.zIndex):(this.labelDiv_.style.zIndex=this.marker_.getZIndex()+n,this.eventDiv_.style.zIndex=this.labelDiv_.style.zIndex)};u.prototype.setVisible=function(){this.labelDiv_.style.display=this.marker_.get("labelVisible")&&this.marker_.getVisible()?"block":"none";this.eventDiv_.style.display=this.labelDiv_.style.display};s(o,google.maps.Marker);o.prototype.setMap=function(n){google.maps.Marker.prototype.setMap.apply(this,arguments);this.label.setMap(n)};n.InfoBox=r;n.Cluster=f;n.ClusterIcon=e;n.MarkerClusterer=t;n.MarkerLabel_=u;n.MarkerWithLabel=o})}});t.module("uiGmapgoogle-maps.extensions").service("uiGmapExtendMarkerClusterer",["uiGmapLodash",function(t){return{init:_.once(function(){(function(){var r={}.hasOwnProperty,i=function(n,t){function u(){this.constructor=n}for(var i in t)r.call(t,i)&&(n[i]=t[i]);return u.prototype=t.prototype,n.prototype=new u,n.__super__=t.prototype,n};n.NgMapCluster=function(r){function u(t){u.__super__.constructor.call(this,t);this.markers_=new n.PropMap}return i(u,r),u.prototype.addMarker=function(n){var i,r,u;if(this.isMarkerAlreadyAdded_(n)&&(u=this.markers_.get(n.key),u.getPosition().lat()==n.getPosition().lat()&&u.getPosition().lon()==n.getPosition().lon()))return!1;if(this.center_){if(this.averageCenter_){var t=this.markers_.length+1,f=(this.center_.lat()*(t-1)+n.getPosition().lat())/t,e=(this.center_.lng()*(t-1)+n.getPosition().lng())/t;this.center_=new google.maps.LatLng(f,e);this.calculateBounds_()}}else this.center_=n.getPosition(),this.calculateBounds_();return n.isAdded=!0,this.markers_.push(n),i=this.markers_.length,r=this.markerClusterer_.getMaxZoom(),null!==r&&this.map_.getZoom()>r?n.getMap()!==this.map_&&n.setMap(this.map_):i<this.minClusterSize_?n.getMap()!==this.map_&&n.setMap(this.map_):i===this.minClusterSize_?this.markers_.each(function(n){n.setMap(null)}):n.setMap(null),!0},u.prototype.isMarkerAlreadyAdded_=function(n){return t.isNullOrUndefined(this.markers_.get(n.key))},u.prototype.getBounds=function(){var n=new google.maps.LatLngBounds(this.center_,this.center_);return this.getMarkers().each(function(t){n.extend(t.getPosition())}),n},u.prototype.remove=function(){this.clusterIcon_.setMap(null);this.markers_=new PropMap;delete this.markers_},u}(Cluster);n.NgMapMarkerClusterer=function(t){function r(t,i,u){r.__super__.constructor.call(this,t,i,u);this.markers_=new n.PropMap}return i(r,t),r.prototype.clearMarkers=function(){this.resetViewport_(!0);this.markers_=new PropMap},r.prototype.removeMarker_=function(n){return this.markers_.get(n.key)?(n.setMap(null),this.markers_.remove(n.key),!0):!1},r.prototype.createClusters_=function(n){var t,i,u,f=this;if(this.ready_){0===n&&(google.maps.event.trigger(this,"clusteringbegin",this),"undefined"!=typeof this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic));u=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.020707717434718,-178.48388434375),new google.maps.LatLng(-85.081364443845445,178.00048865625));var e=this.getExtendedBounds(u),r=Math.min(n+this.batchSize_,this.markers_.length),o=this.markers_.values();for(t=n;r>t;t++)i=o[t],!i.isAdded&&this.isMarkerInBounds_(i,e)&&(!this.ignoreHidden_||this.ignoreHidden_&&i.getVisible())&&this.addToClosestCluster_(i);if(r<this.markers_.length)this.timerRefStatic=setTimeout(function(){f.createClusters_(r)},0);else{for(t=0;t<this.clusters_.length;t++)this.clusters_[t].updateIcon_();delete this.timerRefStatic;google.maps.event.trigger(this,"clusteringend",this)}}},r.prototype.addToClosestCluster_=function(n){for(var u,t,f,e=4e4,r=null,i=0;i<this.clusters_.length;i++)t=this.clusters_[i],f=t.getCenter(),f&&(u=this.distanceBetweenPoints_(f,n.getPosition()),e>u&&(e=u,r=t));r&&r.isMarkerInClusterBounds(n)?r.addMarker(n):(t=new NgMapCluster(this),t.addMarker(n),this.clusters_.push(t))},r.prototype.redraw_=function(){this.createClusters_(0)},r.prototype.resetViewport_=function(n){for(var t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];this.markers_.each(function(t){t.isAdded=!1;n&&t.setMap(null)})},r.prototype.extend=function(n,t){return function(n){for(var t in n.prototype)"constructor"!==t&&(this.prototype[t]=n.prototype[t]);return this}.apply(n,[t])},r.prototype.onAdd=function(){var n=this;this.activeMap_=this.getMap();this.ready_=!0;this.repaint();this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){n.resetViewport_(!1);(this.getZoom()===(this.get("minZoom")||0)||this.getZoom()===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")})]},r}(MarkerClusterer)}).call(this)})}}])}(window,angular);angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","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",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]);angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(n,t,i){function u(n){for(var t in n)if(void 0!==f.style[t])return n[t]}var r=function(u,f,e){e=e||{};var s=n.defer(),o=r[e.animation?"animationEndEventName":"transitionEndEventName"],h=function(){i.$apply(function(){u.unbind(o,h);s.resolve(u)})};return o&&u.bind(o,h),t(function(){angular.isString(f)?u.addClass(f):angular.isFunction(f)?f(u):angular.isObject(f)&&u.css(f);o||s.resolve(u)}),s.promise.cancel=function(){o&&u.unbind(o,h);s.reject("Transition cancelled")},s.promise},f=document.createElement("trans");return r.transitionEndEventName=u({WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}),r.animationEndEventName=u({WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"}),r}]);angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(n){return{link:function(t,i,r){function e(t){function f(){u===r&&(u=void 0)}var r=n(i,t);return u&&u.cancel(),u=r,r.then(f,f),r}function h(){f?(f=!1,o()):(i.removeClass("collapse").addClass("collapsing"),e({height:i[0].scrollHeight+"px"}).then(o))}function o(){i.removeClass("collapsing");i.addClass("collapse in");i.css({height:"auto"})}function c(){f?(f=!1,s(),i.css({height:0})):(i.css({height:i[0].scrollHeight+"px"}),i[0].offsetWidth,i.removeClass("collapse in").addClass("collapsing"),e({height:0}).then(s))}function s(){i.removeClass("collapsing");i.addClass("collapse")}var u,f=!0;t.$watch(r.collapse,function(n){n?c():h()})}}}]);angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(n,t,i){this.groups=[];this.closeOthers=function(r){var u=angular.isDefined(t.closeOthers)?n.$eval(t.closeOthers):i.closeOthers;u&&angular.forEach(this.groups,function(n){n!==r&&(n.isOpen=!1)})};this.addGroup=function(n){var t=this;this.groups.push(n);n.$on("$destroy",function(){t.removeGroup(n)})};this.removeGroup=function(n){var t=this.groups.indexOf(n);-1!==t&&this.groups.splice(t,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(n){this.heading=n}},link:function(n,t,i,r){r.addGroup(n);n.$watch("isOpen",function(t){t&&r.closeOthers(n)});n.toggleOpen=function(){n.isDisabled||(n.isOpen=!n.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(n,t,i,r,u){r.setHeading(u(n,function(){}))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(n,t,i,r){n.$watch(function(){return r[i.accordionTransclude]},function(n){n&&(t.html(""),t.append(n))})}}});angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(n,t){n.closeable="close"in t;this.close=n.close}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}).directive("dismissOnTimeout",["$timeout",function(n){return{require:"alert",link:function(t,i,r,u){n(function(){u.close()},parseInt(r.dismissOnTimeout,10))}}}]);angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(n,t,i){t.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe);n.$watch(i.bindHtmlUnsafe,function(n){t.html(n||"")})}});angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(n){this.activeClass=n.activeClass||"active";this.toggleEvent=n.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(n,t,i,r){var f=r[0],u=r[1];u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,n.$eval(i.btnRadio)))};t.bind(f.toggleEvent,function(){var r=t.hasClass(f.activeClass);(!r||angular.isDefined(i.uncheckable))&&n.$apply(function(){u.$setViewValue(r?null:n.$eval(i.btnRadio));u.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(n,t,i,r){function e(){return o(i.btnCheckboxTrue,!0)}function s(){return o(i.btnCheckboxFalse,!1)}function o(t,i){var r=n.$eval(t);return angular.isDefined(r)?r:i}var f=r[0],u=r[1];u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,e()))};t.bind(f.toggleEvent,function(){n.$apply(function(){u.$setViewValue(t.hasClass(f.activeClass)?s():e());u.$render()})})}}});angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$interval","$transition",function(n,t,i,r){function h(){c();var t=+n.interval;!isNaN(t)&&t>0&&(o=i(a,t))}function c(){o&&(i.cancel(o),o=null)}function a(){var t=+n.interval;s&&!isNaN(t)&&t>0?n.next():n.pause()}var o,s,f=this,u=f.slides=n.slides=[],e=-1,l;f.currentSlide=null;l=!1;f.select=n.select=function(i,o){function c(){l||(f.currentSlide&&angular.isString(o)&&!n.noTransition&&i.$element?(i.$element.addClass(o),i.$element[0].offsetWidth,angular.forEach(u,function(n){angular.extend(n,{direction:"",entering:!1,leaving:!1,active:!1})}),angular.extend(i,{direction:o,active:!0,entering:!0}),angular.extend(f.currentSlide||{},{direction:o,leaving:!0}),n.$currentTransition=r(i.$element,{}),function(t,i){n.$currentTransition.then(function(){s(t,i)},function(){s(t,i)})}(i,f.currentSlide)):s(i,f.currentSlide),f.currentSlide=i,e=a,h())}function s(t,i){angular.extend(t,{direction:"",active:!0,leaving:!1,entering:!1});angular.extend(i||{},{direction:"",active:!1,leaving:!1,entering:!1});n.$currentTransition=null}var a=u.indexOf(i);void 0===o&&(o=a>e?"next":"prev");i&&i!==f.currentSlide&&(n.$currentTransition?(n.$currentTransition.cancel(),t(c)):c())};n.$on("$destroy",function(){l=!0});f.indexOfSlide=function(n){return u.indexOf(n)};n.next=function(){var t=(e+1)%u.length;if(!n.$currentTransition)return f.select(u[t],"next")};n.prev=function(){var t=0>e-1?u.length-1:e-1;if(!n.$currentTransition)return f.select(u[t],"prev")};n.isActive=function(n){return f.currentSlide===n};n.$watch("interval",h);n.$on("$destroy",c);n.play=function(){s||(s=!0,h())};n.pause=function(){n.noPause||(s=!1,c())};f.addSlide=function(t,i){t.$element=i;u.push(t);1===u.length||t.active?(f.select(u[u.length-1]),1==u.length&&n.play()):t.active=!1};f.removeSlide=function(n){var t=u.indexOf(n);u.splice(t,1);u.length>0&&n.active?f.select(t>=u.length?u[t-1]:u[t]):e>t&&e--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?"},link:function(n,t,i,r){r.addSlide(n,t);n.$on("$destroy",function(){r.removeSlide(n)});n.$watch("active",function(t){t&&r.select(n)})}}});angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(n,t){function i(n){var r=[],i=n.split("");return angular.forEach(u,function(t,u){var f=n.indexOf(u),e,o;if(f>-1){for(n=n.split(""),i[f]="("+t.regex+")",n[f]="$",e=f+1,o=f+u.length;o>e;e++)i[e]="",n[e]="$";n=n.join("");r.push({index:f,apply:t.apply})}}),{regex:new RegExp("^"+i.join("")+"$"),map:t(r,"index")}}function r(n,t,i){return 1===t&&i>28?29===i&&(n%4==0&&n%100!=0||n%400==0):3===t||5===t||8===t||10===t?31>i:!0}this.parsers={};var u={yyyy:{regex:"\\d{4}",apply:function(n){this.year=+n}},yy:{regex:"\\d{2}",apply:function(n){this.year=+n+2e3}},y:{regex:"\\d{1,4}",apply:function(n){this.year=+n}},MMMM:{regex:n.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=n.DATETIME_FORMATS.MONTH.indexOf(t)}},MMM:{regex:n.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=n.DATETIME_FORMATS.SHORTMONTH.indexOf(t)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(n){this.month=n-1}},M:{regex:"[1-9]|1[0-2]",apply:function(n){this.month=n-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n}},EEEE:{regex:n.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:n.DATETIME_FORMATS.SHORTDAY.join("|")}};this.parse=function(t,u){var s;if(!angular.isString(t)||!u)return t;u=n.DATETIME_FORMATS[u]||u;this.parsers[u]||(this.parsers[u]=i(u));var h=this.parsers[u],l=h.regex,a=h.map,e=t.match(l);if(e&&e.length){for(var c,f={year:1900,month:0,date:1,hours:0},o=1,v=e.length;v>o;o++)s=a[o-1],s.apply&&s.apply.call(f,e[o]);return r(f.year,f.month,f.date)&&(c=new Date(f.year,f.month,f.date,f.hours)),c}}}]);angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(n,t){function i(n,i){return n.currentStyle?n.currentStyle[i]:t.getComputedStyle?t.getComputedStyle(n)[i]:n.style[i]}function r(n){return"static"===(i(n,"position")||"static")}var u=function(t){for(var u=n[0],i=t.offsetParent||u;i&&i!==u&&r(i);)i=i.offsetParent;return i||u};return{position:function(t){var e=this.offset(t),r={top:0,left:0},i=u(t[0]),f;return i!=n[0]&&(r=this.offset(angular.element(i)),r.top+=i.clientTop-i.scrollTop,r.left+=i.clientLeft-i.scrollLeft),f=t[0].getBoundingClientRect(),{width:f.width||t.prop("offsetWidth"),height:f.height||t.prop("offsetHeight"),top:e.top-r.top,left:e.left-r.left}},offset:function(i){var r=i[0].getBoundingClientRect();return{width:r.width||i.prop("offsetWidth"),height:r.height||i.prop("offsetHeight"),top:r.top+(t.pageYOffset||n[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||n[0].documentElement.scrollLeft)}},positionElements:function(n,t,i,r){var u,h,c,f,a=i.split("-"),l=a[0],e=a[1]||"center",o,s;u=r?this.offset(n):this.position(n);h=t.prop("offsetWidth");c=t.prop("offsetHeight");o={center:function(){return u.left+u.width/2-h/2},left:function(){return u.left},right:function(){return u.left+u.width}};s={center:function(){return u.top+u.height/2-c/2},top:function(){return u.top},bottom:function(){return u.top+u.height}};switch(l){case"right":f={top:s[e](),left:o[l]()};break;case"left":f={top:s[e](),left:u.left-h};break;case"bottom":f={top:s[l](),left:o[e]()};break;default:f={top:u.top-c,left:o[e]()}}return f}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(n,t,i,r,u,f,e,o){var s=this,h={$setViewValue:angular.noop},c;this.modes=["day","month","year"];angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange"],function(i,u){s[i]=angular.isDefined(t[i])?8>u?r(t[i])(n.$parent):n.$parent.$eval(t[i]):o[i]});angular.forEach(["minDate","maxDate"],function(r){t[r]?n.$parent.$watch(i(t[r]),function(n){s[r]=n?new Date(n):null;s.refreshView()}):s[r]=o[r]?new Date(o[r]):null});n.datepickerMode=n.datepickerMode||o.datepickerMode;n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(1e4*Math.random());this.activeDate=angular.isDefined(t.initDate)?n.$parent.$eval(t.initDate):new Date;n.isActive=function(t){return 0===s.compare(t.date,s.activeDate)?(n.activeDateId=t.uid,!0):!1};this.init=function(n){h=n;h.$render=function(){s.render()}};this.render=function(){if(h.$modelValue){var n=new Date(h.$modelValue),t=!isNaN(n);t?this.activeDate=n:f.error('Datepicker 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.');h.$setValidity("date",t)}this.refreshView()};this.refreshView=function(){if(this.element){this._refreshView();var n=h.$modelValue?new Date(h.$modelValue):null;h.$setValidity("date-disabled",!n||this.element&&!this.isDisabled(n))}};this.createDateObject=function(n,t){var i=h.$modelValue?new Date(h.$modelValue):null;return{date:n,label:e(n,t),selected:i&&0===this.compare(n,i),disabled:this.isDisabled(n),current:0===this.compare(n,new Date)}};this.isDisabled=function(i){return this.minDate&&this.compare(i,this.minDate)<0||this.maxDate&&this.compare(i,this.maxDate)>0||t.dateDisabled&&n.dateDisabled({date:i,mode:n.datepickerMode})};this.split=function(n,t){for(var i=[];n.length>0;)i.push(n.splice(0,t));return i};n.select=function(t){if(n.datepickerMode===s.minMode){var i=h.$modelValue?new Date(h.$modelValue):new Date(0,0,0,0,0,0,0);i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());h.$setViewValue(i);h.$render()}else s.activeDate=t,n.datepickerMode=s.modes[s.modes.indexOf(n.datepickerMode)-1]};n.move=function(n){var t=s.activeDate.getFullYear()+n*(s.step.years||0),i=s.activeDate.getMonth()+n*(s.step.months||0);s.activeDate.setFullYear(t,i,1);s.refreshView()};n.toggleMode=function(t){t=t||1;n.datepickerMode===s.maxMode&&1===t||n.datepickerMode===s.minMode&&-1===t||(n.datepickerMode=s.modes[s.modes.indexOf(n.datepickerMode)+t])};n.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};c=function(){u(function(){s.element[0].focus()},0,!1)};n.$on("datepicker.focus",c);n.keydown=function(t){var i=n.keys[t.which];if(i&&!t.shiftKey&&!t.altKey)if(t.preventDefault(),t.stopPropagation(),"enter"===i||"space"===i){if(s.isDisabled(s.activeDate))return;n.select(s.activeDate);c()}else!t.ctrlKey||"up"!==i&&"down"!==i?(s.handleKeyDown(i,t),s.refreshView()):(n.toggleMode("up"===i?1:-1),c())}}]).directive("datepicker",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u)}}}).directive("daypicker",["dateFilter",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(t,i,r,u){function f(n,t){return 1!==t||n%4!=0||n%100==0&&n%400!=0?s[t]:29}function e(n,t){var r=new Array(t),i=new Date(n),u=0;for(i.setHours(12);t>u;)r[u++]=new Date(i),i.setDate(i.getDate()+1);return r}function o(n){var t=new Date(n),i;return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1}t.showWeeks=u.showWeeks;u.step={months:1};u.element=i;var s=[31,28,31,30,31,30,31,31,30,31,30,31];u._refreshView=function(){var p=u.activeDate.getFullYear(),h=u.activeDate.getMonth(),c=new Date(p,h,1),s=u.startingDay-c.getDay(),l=s>0?7-s:-s,a=new Date(c),i,r,f,v,y;for(l>0&&a.setDate(-l+1),i=e(a,42),r=0;42>r;r++)i[r]=angular.extend(u.createDateObject(i[r],u.formatDay),{secondary:i[r].getMonth()!==h,uid:t.uniqueId+"-"+r});for(t.labels=new Array(7),f=0;7>f;f++)t.labels[f]={abbr:n(i[f].date,u.formatDayHeader),full:n(i[f].date,"EEEE")};if(t.title=n(u.activeDate,u.formatDayTitle),t.rows=u.split(i,7),t.showWeeks)for(t.weekNumbers=[],v=o(t.rows[0][0].date),y=t.rows.length;t.weekNumbers.push(v++)<y;);};u.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};u.handleKeyDown=function(n){var t=u.activeDate.getDate(),i;"left"===n?t-=1:"up"===n?t-=7:"right"===n?t+=1:"down"===n?t+=7:"pageup"===n||"pagedown"===n?(i=u.activeDate.getMonth()+("pageup"===n?-1:1),u.activeDate.setMonth(i,1),t=Math.min(f(u.activeDate.getFullYear(),u.activeDate.getMonth()),t)):"home"===n?t=1:"end"===n&&(t=f(u.activeDate.getFullYear(),u.activeDate.getMonth()));u.activeDate.setDate(t)};u.refreshView()}}}]).directive("monthpicker",["dateFilter",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(t,i,r,u){u.step={years:1};u.element=i;u._refreshView=function(){for(var r=new Array(12),f=u.activeDate.getFullYear(),i=0;12>i;i++)r[i]=angular.extend(u.createDateObject(new Date(f,i,1),u.formatMonth),{uid:t.uniqueId+"-"+i});t.title=n(u.activeDate,u.formatMonthTitle);t.rows=u.split(r,3)};u.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth())-new Date(t.getFullYear(),t.getMonth())};u.handleKeyDown=function(n){var t=u.activeDate.getMonth(),i;"left"===n?t-=1:"up"===n?t-=3:"right"===n?t+=1:"down"===n?t+=3:"pageup"===n||"pagedown"===n?(i=u.activeDate.getFullYear()+("pageup"===n?-1:1),u.activeDate.setFullYear(i)):"home"===n?t=0:"end"===n&&(t=11);u.activeDate.setMonth(t)};u.refreshView()}}}]).directive("yearpicker",["dateFilter",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(n,t,i,r){function f(n){return parseInt((n-1)/u,10)*u+1}var u=r.yearRange;r.step={years:u};r.element=t;r._refreshView=function(){for(var i=new Array(u),t=0,e=f(r.activeDate.getFullYear());u>t;t++)i[t]=angular.extend(r.createDateObject(new Date(e+t,0,1),r.formatYear),{uid:n.uniqueId+"-"+t});n.title=[i[0].label,i[u-1].label].join(" - ");n.rows=r.split(i,5)};r.compare=function(n,t){return n.getFullYear()-t.getFullYear()};r.handleKeyDown=function(n){var t=r.activeDate.getFullYear();"left"===n?t-=1:"up"===n?t-=5:"right"===n?t+=1:"down"===n?t+=5:"pageup"===n||"pagedown"===n?t+=("pageup"===n?-1:1)*r.step.years:"home"===n?t=f(r.activeDate.getFullYear()):"end"===n&&(t=f(r.activeDate.getFullYear())+u-1);r.activeDate.setFullYear(t)};r.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(n,t,i,r,u,f,e){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&"},link:function(o,s,h,c){function b(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function k(n){if(n){if(angular.isDate(n)&&!isNaN(n))return c.$setValidity("date",!0),n;if(angular.isString(n)){var t=f.parse(n,p)||new Date(n);return isNaN(t)?void c.$setValidity("date",!1):(c.$setValidity("date",!0),t)}return void c.$setValidity("date",!1)}return c.$setValidity("date",!0),null}var p,g=angular.isDefined(h.closeOnDateSelection)?o.$parent.$eval(h.closeOnDateSelection):e.closeOnDateSelection,d=angular.isDefined(h.datepickerAppendToBody)?o.$parent.$eval(h.datepickerAppendToBody):e.appendToBody,l,a,v,w,y;o.showButtonBar=angular.isDefined(h.showButtonBar)?o.$parent.$eval(h.showButtonBar):e.showButtonBar;o.getText=function(n){return o[n+"Text"]||e[n+"Text"]};h.$observe("datepickerPopup",function(n){p=n||e.datepickerPopup;c.$render()});l=angular.element("<div datepicker-popup-wrap><div datepicker><\/div><\/div>");l.attr({"ng-model":"date","ng-change":"dateSelection()"});a=angular.element(l.children()[0]);h.datepickerOptions&&angular.forEach(o.$parent.$eval(h.datepickerOptions),function(n,t){a.attr(b(t),n)});o.watchData={};angular.forEach(["minDate","maxDate","datepickerMode"],function(n){var i,r;h[n]&&(i=t(h[n]),(o.$parent.$watch(i,function(t){o.watchData[n]=t}),a.attr(b(n),"watchData."+n),"datepickerMode"===n)&&(r=i.assign,o.$watch("watchData."+n,function(n,t){n!==t&&r(o.$parent,n)})))});h.dateDisabled&&a.attr("date-disabled","dateDisabled({ date: date, mode: mode })");c.$parsers.unshift(k);o.dateSelection=function(n){angular.isDefined(n)&&(o.date=n);c.$setViewValue(o.date);c.$render();g&&(o.isOpen=!1,s[0].focus())};s.bind("input change keyup",function(){o.$apply(function(){o.date=c.$modelValue})});c.$render=function(){var n=c.$viewValue?u(c.$viewValue,p):"";s.val(n);o.date=k(c.$modelValue)};v=function(n){o.isOpen&&n.target!==s[0]&&o.$apply(function(){o.isOpen=!1})};w=function(n){o.keydown(n)};s.bind("keydown",w);o.keydown=function(n){27===n.which?(n.preventDefault(),n.stopPropagation(),o.close()):40!==n.which||o.isOpen||(o.isOpen=!0)};o.$watch("isOpen",function(n){n?(o.$broadcast("datepicker.focus"),o.position=d?r.offset(s):r.position(s),o.position.top=o.position.top+s.prop("offsetHeight"),i.bind("click",v)):i.unbind("click",v)});o.select=function(n){if("today"===n){var t=new Date;angular.isDate(c.$modelValue)?(n=new Date(c.$modelValue),n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate())):n=new Date(t.setHours(0,0,0,0))}o.dateSelection(n)};o.close=function(){o.isOpen=!1;s[0].focus()};y=n(l)(o);l.remove();d?i.find("body").append(y):s.after(y);o.$on("$destroy",function(){y.remove();s.unbind("keydown",w);i.unbind("click",v)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(n,t){t.bind("click",function(n){n.preventDefault();n.stopPropagation()})}}});angular.module("ui.bootstrap.dropdown",[]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document",function(n){var t=null,i,r;this.open=function(u){t||(n.bind("click",i),n.bind("keydown",r));t&&t!==u&&(t.isOpen=!1);t=u};this.close=function(u){t===u&&(t=null,n.unbind("click",i),n.unbind("keydown",r))};i=function(n){if(t){var i=t.getToggleElement();n&&i&&i[0].contains(n.target)||t.$apply(function(){t.isOpen=!1})}};r=function(n){27===n.which&&(t.focusToggleElement(),i())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate",function(n,t,i,r,u,f){var s,o=this,e=n.$new(),c=r.openClass,h=angular.noop,l=t.onToggle?i(t.onToggle):angular.noop;this.init=function(r){o.$element=r;t.isOpen&&(s=i(t.isOpen),h=s.assign,n.$watch(s,function(n){e.isOpen=!!n}))};this.toggle=function(n){return e.isOpen=arguments.length?!!n:!e.isOpen};this.isOpen=function(){return e.isOpen};e.getToggleElement=function(){return o.toggleElement};e.focusToggleElement=function(){o.toggleElement&&o.toggleElement[0].focus()};e.$watch("isOpen",function(t,i){f[t?"addClass":"removeClass"](o.$element,c);t?(e.focusToggleElement(),u.open(e)):u.close(e);h(n,t);angular.isDefined(t)&&t!==i&&l(n,{open:!!t})});n.$on("$locationChangeSuccess",function(){e.isOpen=!1});n.$on("$destroy",function(){e.$destroy()})}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(n,t,i,r){r.init(t)}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(n,t,i,r){if(r){r.toggleElement=t;var u=function(u){u.preventDefault();t.hasClass("disabled")||i.disabled||n.$apply(function(){r.toggle()})};t.bind("click",u);t.attr({"aria-haspopup":!0,"aria-expanded":!1});n.$watch(r.isOpen,function(n){t.attr("aria-expanded",!!n)});n.$on("$destroy",function(){t.unbind("click",u)})}}}});angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var n=[];return{add:function(t,i){n.push({key:t,value:i})},get:function(t){for(var i=0;i<n.length;i++)if(t==n[i].key)return n[i]},keys:function(){for(var i=[],t=0;t<n.length;t++)i.push(n[t].key);return i},top:function(){return n[n.length-1]},remove:function(t){for(var r=-1,i=0;i<n.length;i++)if(t==n[i].key){r=i;break}return n.splice(r,1)[0]},removeTop:function(){return n.splice(n.length-1,1)[0]},length:function(){return n.length}}}}}).directive("modalBackdrop",["$timeout",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(t,i,r){t.backdropClass=r.backdropClass||"";t.animate=!1;n(function(){t.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(n,t){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(n,t){return t.templateUrl||"template/modal/window.html"},link:function(i,r,u){r.addClass(u.windowClass||"");i.size=u.size;t(function(){i.animate=!0;r[0].querySelectorAll("[autofocus]").length||r[0].focus()});i.close=function(t){var i=n.getTop();i&&i.value.backdrop&&"static"!=i.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))}}}}]).directive("modalTransclude",function(){return{link:function(n,t,i,r,u){u(n.$parent,function(n){t.empty();t.append(n)})}}}).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(n,t,i,r,u,f){function c(){for(var t=-1,i=e.keys(),n=0;n<i.length;n++)e.get(i[n]).value.backdrop&&(t=n);return t}function l(n){var r=i.find("body").eq(0),t=e.get(n).value;e.remove(n);a(t.modalDomEl,t.modalScope,300,function(){t.modalScope.$destroy();r.toggleClass(v,e.length()>0);y()})}function y(){if(h&&-1==c()){var n=o;a(h,o,150,function(){n.$destroy();n=null});h=void 0;o=void 0}}function a(i,r,u,f){function e(){e.done||(e.done=!0,i.remove(),f&&f())}var o,s;r.animate=!1;o=n.transitionEndEventName;o?(s=t(e,u),i.bind(o,function(){t.cancel(s);e();r.$apply()})):t(e)}var h,o,v="modal-open",e=f.createNew(),s={};return u.$watch(c,function(n){o&&(o.index=n)}),i.bind("keydown",function(n){var t;27===n.which&&(t=e.top(),t&&t.value.keyboard&&(n.preventDefault(),u.$apply(function(){s.dismiss(t.key,"escape key press")})))}),s.open=function(n,t){var f,s,l,a,y;e.add(n,{deferred:t.deferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard});f=i.find("body").eq(0);s=c();s>=0&&!h&&(o=u.$new(!0),o.index=s,l=angular.element("<div modal-backdrop><\/div>"),l.attr("backdrop-class",t.backdropClass),h=r(l)(o),f.append(h));a=angular.element("<div modal-window><\/div>");a.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:e.length()-1,animate:"animate"}).html(t.content);y=r(a)(t.scope);e.top().value.modalDomEl=y;f.append(y);f.addClass(v)},s.close=function(n,t){var i=e.get(n);i&&(i.value.deferred.resolve(t),l(n))},s.dismiss=function(n,t){var i=e.get(n);i&&(i.value.deferred.reject(t),l(n))},s.dismissAll=function(n){for(var t=this.getTop();t;)this.dismiss(t.key,n),t=this.getTop()},s.getTop=function(){return e.top()},s}]).provider("$modal",function(){var n={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(t,i,r,u,f,e,o){function h(n){return n.template?r.when(n.template):u.get(angular.isFunction(n.templateUrl)?n.templateUrl():n.templateUrl,{cache:f}).then(function(n){return n.data})}function c(n){var i=[];return angular.forEach(n,function(n){(angular.isFunction(n)||angular.isArray(n))&&i.push(r.when(t.invoke(n)))}),i}var s={};return s.open=function(t){var f=r.defer(),s=r.defer(),u={result:f.promise,opened:s.promise,close:function(n){o.close(u,n)},dismiss:function(n){o.dismiss(u,n)}},l;if(t=angular.extend({},n.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");return l=r.all([h(t)].concat(c(t.resolve))),l.then(function(n){var r=(t.scope||i).$new(),h,s,c;r.$close=u.close;r.$dismiss=u.dismiss;s={};c=1;t.controller&&(s.$scope=r,s.$modalInstance=u,angular.forEach(t.resolve,function(t,i){s[i]=n[c++]}),h=e(t.controller,s),t.controllerAs&&(r[t.controllerAs]=h));o.open(u,{scope:r,deferred:f,content:n[0],backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size})},function(n){f.reject(n)}),l.then(function(){s.resolve(!0)},function(){s.reject(!1)}),u},s}]};return n});angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(n,t,i){var u=this,r={$setViewValue:angular.noop},f=t.numPages?i(t.numPages).assign:angular.noop;this.init=function(f,e){r=f;this.config=e;r.$render=function(){u.render()};t.itemsPerPage?n.$parent.$watch(i(t.itemsPerPage),function(t){u.itemsPerPage=parseInt(t,10);n.totalPages=u.calculateTotalPages()}):this.itemsPerPage=e.itemsPerPage};this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(n.totalItems/this.itemsPerPage);return Math.max(t||0,1)};this.render=function(){n.page=parseInt(r.$viewValue,10)||1};n.selectPage=function(t){n.page!==t&&t>0&&t<=n.totalPages&&(r.$setViewValue(t),r.$render())};n.getText=function(t){return n[t+"Text"]||u.config[t+"Text"]};n.noPrevious=function(){return 1===n.page};n.noNext=function(){return n.page===n.totalPages};n.$watch("totalItems",function(){n.totalPages=u.calculateTotalPages()});n.$watch("totalPages",function(t){f(n.$parent,t);n.page>t?n.selectPage(t):r.$render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(n,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(i,r,u,f){function s(n,t,i){return{number:n,text:t,active:i}}function a(n,t){var f=[],i=1,r=t,o=angular.isDefined(e)&&t>e,u,c,l,a;for(o&&(h?(i=Math.max(n-Math.floor(e/2),1),r=i+e-1,r>t&&(r=t,i=r-e+1)):(i=(Math.ceil(n/e)-1)*e+1,r=Math.min(i+e-1,t))),u=i;r>=u;u++)c=s(u,u,u===n),f.push(c);return o&&!h&&(i>1&&(l=s(i-1,"...",!1),f.unshift(l)),t>r&&(a=s(r+1,"...",!1),f.push(a))),f}var o=f[0],c=f[1],e,h,l;c&&(e=angular.isDefined(u.maxSize)?i.$parent.$eval(u.maxSize):t.maxSize,h=angular.isDefined(u.rotate)?i.$parent.$eval(u.rotate):t.rotate,i.boundaryLinks=angular.isDefined(u.boundaryLinks)?i.$parent.$eval(u.boundaryLinks):t.boundaryLinks,i.directionLinks=angular.isDefined(u.directionLinks)?i.$parent.$eval(u.directionLinks):t.directionLinks,o.init(c,t),u.maxSize&&i.$parent.$watch(n(u.maxSize),function(n){e=parseInt(n,10);o.render()}),l=o.render,o.render=function(){l();i.page>0&&i.page<=i.totalPages&&(i.pages=a(i.page,i.totalPages))})}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(n){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(t,i,r,u){var e=u[0],f=u[1];f&&(t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):n.align,e.init(f,n))}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function i(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var r={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$document","$position","$interpolate",function(u,f,e,o,s,h){return function(u,c,l){function p(t){var i=t||a.trigger||l,r=n[i]||i;return{show:i,hide:r}}var a=angular.extend({},r,t),w=i(u),v=h.startSymbol(),y=h.endSymbol(),b="<div "+w+'-popup title="'+v+"title"+y+'" content="'+v+"content"+y+'" placement="'+v+"placement"+y+'" animation="animation" is-open="isOpen"><\/div>';return{restrict:"EA",compile:function(){var n=f(b);return function(t,i,r){function et(){f.isOpen?g():d()}function d(){(!at||t.$eval(r[c+"Enable"]))&&(st(),f.popupDelay?y||(y=e(ut,f.popupDelay,!1),y.then(function(n){n()})):ut()())}function g(){t.$apply(function(){nt()})}function ut(){return y=null,v&&(e.cancel(v),v=null),f.content?(ot(),h.css({top:0,left:0,display:"block"}),b?o.find("body").append(h):i.after(h),ft(),f.isOpen=!0,f.$digest(),ft):angular.noop}function nt(){f.isOpen=!1;e.cancel(y);y=null;f.animation?v||(v=e(k,500)):k()}function ot(){h&&k();w=f.$new();h=n(w,angular.noop)}function k(){v=null;h&&(h.remove(),h=null);w&&(w.$destroy(),w=null)}function st(){ht();ct()}function ht(){var n=r[c+"Placement"];f.placement=angular.isDefined(n)?n:a.placement}function ct(){var t=r[c+"PopupDelay"],n=parseInt(t,10);f.popupDelay=isNaN(n)?a.popupDelay:n}function lt(){var n=r[c+"Trigger"];tt();l=p(n);l.show===l.hide?i.bind(l.show,et):(i.bind(l.show,d),i.bind(l.hide,g))}var h,w,v,y,b=angular.isDefined(a.appendToBody)?a.appendToBody:!1,l=p(void 0),at=angular.isDefined(r[c+"Enable"]),f=t.$new(!0),ft=function(){var n=s.positionElements(i,h,f.placement,b);n.top+="px";n.left+="px";h.css(n)},tt,it,rt;f.isOpen=!1;r.$observe(u,function(n){f.content=n;!n&&f.isOpen&&nt()});r.$observe(c+"Title",function(n){f.title=n});tt=function(){i.unbind(l.show,d);i.unbind(l.hide,g)};lt();it=t.$eval(r[c+"Animation"]);f.animation=angular.isDefined(it)?!!it:a.animation;rt=t.$eval(r[c+"AppendToBody"]);b=angular.isDefined(rt)?rt:b;b&&t.$on("$locationChangeSuccess",function(){f.isOpen&&nt()});t.$on("$destroy",function(){e.cancel(v);e.cancel(y);tt();k();f=null})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(n){return n("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(n){return n("tooltipHtmlUnsafe","tooltip","mouseenter")}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(n){return n("popover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",function(n,t,i){var r=this,u=angular.isDefined(t.animate)?n.$parent.$eval(t.animate):i.animate;this.bars=[];n.max=angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max;this.addBar=function(t,i){u||i.css({transition:"none"});this.bars.push(t);t.$watch("value",function(i){t.percent=+(100*i/n.max).toFixed(2)});t.$on("$destroy",function(){i=null;r.removeBar(t)})};this.removeBar=function(n){this.bars.splice(this.bars.indexOf(n),1)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(n,t,i,r){r.addBar(n,t)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(n,t,i,r){r.addBar(n,angular.element(t.children()[0]))}}});angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",function(n,t,i){var r={$setViewValue:angular.noop};this.init=function(u){r=u;r.$render=this.render;this.stateOn=angular.isDefined(t.stateOn)?n.$parent.$eval(t.stateOn):i.stateOn;this.stateOff=angular.isDefined(t.stateOff)?n.$parent.$eval(t.stateOff):i.stateOff;var f=angular.isDefined(t.ratingStates)?n.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max);n.range=this.buildTemplateObjects(f)};this.buildTemplateObjects=function(n){for(var t=0,i=n.length;i>t;t++)n[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff},n[t]);return n};n.rate=function(t){!n.readonly&&t>=0&&t<=n.range.length&&(r.$setViewValue(t),r.$render())};n.enter=function(t){n.readonly||(n.value=t);n.onHover({value:t})};n.reset=function(){n.value=r.$viewValue;n.onLeave()};n.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),n.rate(n.value+(38===t.which||39===t.which?1:-1)))};this.render=function(){n.value=r.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u)}}});angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(n){var i=this,t=i.tabs=n.tabs=[],r;i.select=function(n){angular.forEach(t,function(t){t.active&&t!==n&&(t.active=!1,t.onDeselect())});n.active=!0;n.onSelect()};i.addTab=function(n){t.push(n);1===t.length?n.active=!0:n.active&&i.select(n)};i.removeTab=function(n){var u=t.indexOf(n),f;n.active&&t.length>1&&!r&&(f=u==t.length-1?u-1:u+1,i.select(t[f]));t.splice(u,1)};n.$on("$destroy",function(){r=!0})}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(n,t,i){n.vertical=angular.isDefined(i.vertical)?n.$parent.$eval(i.vertical):!1;n.justified=angular.isDefined(i.justified)?n.$parent.$eval(i.justified):!1}}}).directive("tab",["$parse",function(n){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(t,i,r){return function(t,i,u,f){t.$watch("active",function(n){n&&f.select(t)});t.disabled=!1;u.disabled&&t.$parent.$watch(n(u.disabled),function(n){t.disabled=!!n});t.select=function(){t.disabled||(t.active=!0)};f.addTab(t);t.$on("$destroy",function(){f.removeTab(t)});t.$transcludeFn=r}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}]).directive("tabContentTransclude",function(){function n(n){return n.tagName&&(n.hasAttribute("tab-heading")||n.hasAttribute("data-tab-heading")||"tab-heading"===n.tagName.toLowerCase()||"data-tab-heading"===n.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(t,i,r){var u=t.$eval(r.tabContentTransclude);u.$transcludeFn(u.$parent,function(t){angular.forEach(t,function(t){n(t)?u.headingElement=t:i.append(t)})})}}});angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(n,t,i,r,u,f){function p(){var t=parseInt(n.hours,10),i=n.showMeridian?t>0&&13>t:t>=0&&24>t;if(i)return(n.showMeridian&&(12===t&&(t=0),n.meridian===y[1]&&(t+=12)),t)}function w(){var t=parseInt(n.minutes,10);if(t>=0&&60>t)return t}function h(n){return angular.isDefined(n)&&n.toString().length<2?"0"+n:n}function c(n){b();o.$setViewValue(new Date(e));v(n)}function b(){o.$setValidity("time",!0);n.invalidHours=!1;n.invalidMinutes=!1}function v(t){var i=e.getHours(),r=e.getMinutes();n.showMeridian&&(i=0===i||12===i?12:i%12);n.hours="h"===t?i:h(i);n.minutes="m"===t?r:h(r);n.meridian=e.getHours()<12?y[0]:y[1]}function s(n){var t=new Date(e.getTime()+6e4*n);e.setHours(t.getHours(),t.getMinutes());c()}var e=new Date,o={$setViewValue:angular.noop},y=angular.isDefined(t.meridians)?n.$parent.$eval(t.meridians):f.meridians||u.DATETIME_FORMATS.AMPMS,l,a;this.init=function(i,r){o=i;o.$render=this.render;var u=r.eq(0),e=r.eq(1),s=angular.isDefined(t.mousewheel)?n.$parent.$eval(t.mousewheel):f.mousewheel;s&&this.setupMousewheelEvents(u,e);n.readonlyInput=angular.isDefined(t.readonlyInput)?n.$parent.$eval(t.readonlyInput):f.readonlyInput;this.setupInputEvents(u,e)};l=f.hourStep;t.hourStep&&n.$parent.$watch(i(t.hourStep),function(n){l=parseInt(n,10)});a=f.minuteStep;t.minuteStep&&n.$parent.$watch(i(t.minuteStep),function(n){a=parseInt(n,10)});n.showMeridian=f.showMeridian;t.showMeridian&&n.$parent.$watch(i(t.showMeridian),function(t){if(n.showMeridian=!!t,o.$error.time){var i=p(),r=w();angular.isDefined(i)&&angular.isDefined(r)&&(e.setHours(i),c())}else v()});this.setupMousewheelEvents=function(t,i){var r=function(n){n.originalEvent&&(n=n.originalEvent);var t=n.wheelDelta?n.wheelDelta:-n.deltaY;return n.detail||t>0};t.bind("mousewheel wheel",function(t){n.$apply(r(t)?n.incrementHours():n.decrementHours());t.preventDefault()});i.bind("mousewheel wheel",function(t){n.$apply(r(t)?n.incrementMinutes():n.decrementMinutes());t.preventDefault()})};this.setupInputEvents=function(t,i){if(n.readonlyInput)return n.updateHours=angular.noop,void(n.updateMinutes=angular.noop);var r=function(t,i){o.$setViewValue(null);o.$setValidity("time",!1);angular.isDefined(t)&&(n.invalidHours=t);angular.isDefined(i)&&(n.invalidMinutes=i)};n.updateHours=function(){var n=p();angular.isDefined(n)?(e.setHours(n),c("h")):r(!0)};t.bind("blur",function(){!n.invalidHours&&n.hours<10&&n.$apply(function(){n.hours=h(n.hours)})});n.updateMinutes=function(){var n=w();angular.isDefined(n)?(e.setMinutes(n),c("m")):r(void 0,!0)};i.bind("blur",function(){!n.invalidMinutes&&n.minutes<10&&n.$apply(function(){n.minutes=h(n.minutes)})})};this.render=function(){var n=o.$modelValue?new Date(o.$modelValue):null;isNaN(n)?(o.$setValidity("time",!1),r.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.')):(n&&(e=n),b(),v())};n.incrementHours=function(){s(60*l)};n.decrementHours=function(){s(60*-l)};n.incrementMinutes=function(){s(a)};n.decrementMinutes=function(){s(-a)};n.toggleMeridian=function(){s(720*(e.getHours()<12?1:-1))}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u,t.find("input"))}}});angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(n){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(i){var r=i.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+i+'".');return{itemName:r[3],source:n(r[4]),viewMapper:n(r[2]||r[1]),modelMapper:n(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(n,t,i,r,u,f,e){var o=[9,13,27,38,40];return{require:"ngModel",link:function(s,h,c,l){var d,st=s.$eval(c.typeaheadMinLength)||1,ft=s.$eval(c.typeaheadWaitMs)||0,ht=s.$eval(c.typeaheadEditable)!==!1,p=t(c.typeaheadLoading).assign||angular.noop,ct=t(c.typeaheadOnSelect),et=c.typeaheadInputFormatter?t(c.typeaheadInputFormatter):void 0,g=c.typeaheadAppendToBody?s.$eval(c.typeaheadAppendToBody):!1,lt=s.$eval(c.typeaheadFocusFirst)!==!1,at=t(c.ngModel).assign,v=e.parse(c.typeahead),a=s.$new(),w,b,y,nt,tt,it,ot,rt,ut,k;s.$on("$destroy",function(){a.$destroy()});w="typeahead-"+a.$id+"-"+Math.floor(1e4*Math.random());h.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":w});b=angular.element("<div typeahead-popup><\/div>");b.attr({id:w,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"});angular.isDefined(c.typeaheadTemplateUrl)&&b.attr("template-url",c.typeaheadTemplateUrl);y=function(){a.matches=[];a.activeIdx=-1;h.attr("aria-expanded",!1)};nt=function(n){return w+"-option-"+n};a.$watch("activeIdx",function(n){0>n?h.removeAttr("aria-activedescendant"):h.attr("aria-activedescendant",nt(n))});tt=function(n){var t={$viewValue:n};p(s,!0);i.when(v.source(s,t)).then(function(i){var u=n===l.$viewValue,r;if(u&&d)if(i.length>0){for(a.activeIdx=lt?0:-1,a.matches.length=0,r=0;r<i.length;r++)t[v.itemName]=i[r],a.matches.push({id:nt(r),label:v.viewMapper(a,t),model:i[r]});a.query=n;a.position=g?f.offset(h):f.position(h);a.position.top=a.position.top+h.prop("offsetHeight");h.attr("aria-expanded",!0)}else y();u&&p(s,!1)},function(){y();p(s,!1)})};y();a.query=void 0;ot=function(n){it=r(function(){tt(n)},ft)};rt=function(){it&&r.cancel(it)};l.$parsers.unshift(function(n){return d=!0,n&&n.length>=st?ft>0?(rt(),ot(n)):tt(n):(p(s,!1),rt(),y()),ht?n:n?void l.$setValidity("editable",!1):(l.$setValidity("editable",!0),n)});l.$formatters.push(function(n){var i,r,t={};return et?(t.$model=n,et(s,t)):(t[v.itemName]=n,i=v.viewMapper(s,t),t[v.itemName]=void 0,r=v.viewMapper(s,t),i!==r?i:n)});a.select=function(n){var t,u,i={};i[v.itemName]=u=a.matches[n].model;t=v.modelMapper(s,i);at(s,t);l.$setValidity("editable",!0);ct(s,{$item:u,$model:t,$label:v.viewMapper(s,i)});y();r(function(){h[0].focus()},0,!1)};h.bind("keydown",function(n){0!==a.matches.length&&-1!==o.indexOf(n.which)&&(-1!=a.activeIdx||13!==n.which&&9!==n.which)&&(n.preventDefault(),40===n.which?(a.activeIdx=(a.activeIdx+1)%a.matches.length,a.$digest()):38===n.which?(a.activeIdx=(a.activeIdx>0?a.activeIdx:a.matches.length)-1,a.$digest()):13===n.which||9===n.which?a.$apply(function(){a.select(a.activeIdx)}):27===n.which&&(n.stopPropagation(),y(),a.$digest()))});h.bind("blur",function(){d=!1});ut=function(n){h[0]!==n.target&&(y(),a.$digest())};u.bind("click",ut);s.$on("$destroy",function(){u.unbind("click",ut);g&&k.remove()});k=n(b)(a);g?u.find("body").append(k):h.after(k)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(n,t,i){n.templateUrl=i.templateUrl;n.isOpen=function(){return n.matches.length>0};n.isActive=function(t){return n.active==t};n.selectActive=function(t){n.active=t};n.selectMatch=function(t){n.select({activeIdx:t})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(n,t,i,r){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(u,f,e){var o=r(e.templateUrl)(u.$parent)||"template/typeahead/typeahead-match.html";n.get(o,{cache:t}).success(function(n){f.replaceWith(i(n.trim())(u))})}}}]).filter("typeaheadHighlight",function(){function n(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,i){return i?(""+t).replace(new RegExp(n(i),"gi"),"<strong>$&<\/strong>"):t}});angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(n){n.put("template/accordion/accordion-group.html",'<div class="panel panel-default">\n  <div class="panel-heading">\n    <h4 class="panel-title">\n      <a href class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}<\/span><\/a>\n    <\/h4>\n  <\/div>\n  <div class="panel-collapse" collapse="!isOpen">\n\t  <div class="panel-body" ng-transclude><\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(n){n.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude><\/div>')}]);angular.module("template/alert/alert.html",[]).run(["$templateCache",function(n){n.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissable\' : null]" role="alert">\n    <button ng-show="closeable" type="button" class="close" ng-click="close()">\n        <span aria-hidden="true">&times;<\/span>\n        <span class="sr-only">Close<\/span>\n    <\/button>\n    <div ng-transclude><\/div>\n<\/div>\n')}]);angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(n){n.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n    <ol class="carousel-indicators" ng-show="slides.length > 1">\n        <li ng-repeat="slide in slides track by $index" ng-class="{active: isActive(slide)}" ng-click="select(slide)"><\/li>\n    <\/ol>\n    <div class="carousel-inner" ng-transclude><\/div>\n    <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"><\/span><\/a>\n    <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"><\/span><\/a>\n<\/div>\n')}]);angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(n){n.put("template/carousel/slide.html","<div ng-class=\"{\n    'active': leaving || (active && !entering),\n    'prev': (next || active) && direction=='prev',\n    'next': (next || active) && direction=='next',\n    'right': direction=='prev',\n    'left': direction=='next'\n  }\" class=\"item text-center\" ng-transclude><\/div>\n")}]);angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n  <daypicker ng-switch-when="day" tabindex="0"><\/daypicker>\n  <monthpicker ng-switch-when="month" tabindex="0"><\/monthpicker>\n  <yearpicker ng-switch-when="year" tabindex="0"><\/yearpicker>\n<\/div>')}]);angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"><\/i><\/button><\/th>\n      <th colspan="{{5 + showWeeks}}"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"><\/i><\/button><\/th>\n    <\/tr>\n    <tr>\n      <th ng-show="showWeeks" class="text-center"><\/th>\n      <th ng-repeat="label in labels track by $index" class="text-center"><small aria-label="{{label.full}}">{{label.abbr}}<\/small><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-show="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}<\/em><\/td>\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"><\/i><\/button><\/th>\n      <th><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"><\/i><\/button><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-style="{display: (isOpen && \'block\') || \'none\', top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)">\n\t<li ng-transclude><\/li>\n\t<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n\t\t<span class="btn-group pull-left">\n\t\t\t<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')">{{ getText(\'current\') }}<\/button>\n\t\t\t<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}<\/button>\n\t\t<\/span>\n\t\t<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}<\/button>\n\t<\/li>\n<\/ul>\n')}]);angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"><\/i><\/button><\/th>\n      <th colspan="3"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}<\/strong><\/button><\/th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"><\/i><\/button><\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}<\/span><\/button>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n')}]);angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(n){n.put("template/modal/backdrop.html",'<div class="modal-backdrop fade {{ backdropClass }}"\n     ng-class="{in: animate}"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n><\/div>\n')}]);angular.module("template/modal/window.html",[]).run(["$templateCache",function(n){n.put("template/modal/window.html",'<div tabindex="-1" role="dialog" class="modal fade" ng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n    <div class="modal-dialog" ng-class="{\'modal-sm\': size == \'sm\', \'modal-lg\': size == \'lg\'}"><div class="modal-content" modal-transclude><\/div><\/div>\n<\/div>')}]);angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(n){n.put("template/pagination/pager.html",'<ul class="pager">\n  <li ng-class="{disabled: noPrevious(), previous: align}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}<\/a><\/li>\n  <li ng-class="{disabled: noNext(), next: align}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}<\/a><\/li>\n<\/ul>')}]);angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(n){n.put("template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-if="boundaryLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(1)">{{getText(\'first\')}}<\/a><\/li>\n  <li ng-if="directionLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}<\/a><\/li>\n  <li ng-repeat="page in pages track by $index" ng-class="{active: page.active}"><a href ng-click="selectPage(page.number)">{{page.text}}<\/a><\/li>\n  <li ng-if="directionLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}<\/a><\/li>\n  <li ng-if="boundaryLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(totalPages)">{{getText(\'last\')}}<\/a><\/li>\n<\/ul>')}]);angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(n){n.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"><\/div>\n  <div class="tooltip-inner" bind-html-unsafe="content"><\/div>\n<\/div>\n')}]);angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(n){n.put("template/tooltip/tooltip-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"><\/div>\n  <div class="tooltip-inner" ng-bind="content"><\/div>\n<\/div>\n')}]);angular.module("template/popover/popover.html",[]).run(["$templateCache",function(n){n.put("template/popover/popover.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="arrow"><\/div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-show="title"><\/h3>\n      <div class="popover-content" ng-bind="content"><\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(n){n.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude><\/div>')}]);angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(n){n.put("template/progressbar/progress.html",'<div class="progress" ng-transclude><\/div>')}]);angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(n){n.put("template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude><\/div>\n<\/div>')}]);angular.module("template/rating/rating.html",[]).run(["$templateCache",function(n){n.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n    <i ng-repeat="r in range track by $index" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')">\n        <span class="sr-only">({{ $index < value ? \'*\' : \' \' }})<\/span>\n    <\/i>\n<\/span>')}]);angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n  <a href ng-click="select()" tab-heading-transclude>{{heading}}<\/a>\n<\/li>\n')}]);angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude><\/ul>\n  <div class="tab-content">\n    <div class="tab-pane" \n         ng-repeat="tab in tabs" \n         ng-class="{active: tab.active}"\n         tab-content-transclude="tab">\n    <\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(n){n.put("template/timepicker/timepicker.html",'<table>\n\t<tbody>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n\t\t\t<td>&nbsp;<\/td>\n\t\t\t<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n\t\t\t<td ng-show="showMeridian"><\/td>\n\t\t<\/tr>\n\t\t<tr>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidHours}">\n\t\t\t\t<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t<\/td>\n\t\t\t<td>:<\/td>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n\t\t\t\t<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t<\/td>\n\t\t\t<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}<\/button><\/td>\n\t\t<\/tr>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n\t\t\t<td>&nbsp;<\/td>\n\t\t\t<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n\t\t\t<td ng-show="showMeridian"><\/td>\n\t\t<\/tr>\n\t<\/tbody>\n<\/table>\n')}]);angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(n){n.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"><\/a>')}]);angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(n){n.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen()" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{match.id}}">\n        <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"><\/div>\n    <\/li>\n<\/ul>\n')}]),function(n,t,i){"use strict";t.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(n,r){var u={},f={},e,o=!1,s=t.copy,h=t.isUndefined;return r.addPollFn(function(){var t=r.cookies();e!=t&&(e=t,s(t,f),s(t,u),o&&n.$apply())})(),o=!0,n.$watch(function(){var n,e,o;for(n in f)h(u[n])&&r.cookies(n,i);for(n in u)e=u[n],t.isString(e)||(e=""+e,u[n]=e),e!==f[n]&&(r.cookies(n,e),o=!0);if(o)for(n in e=r.cookies(),u)u[n]!==e[n]&&(h(e[n])?delete u[n]:u[n]=e[n])}),u}]).factory("$cookieStore",["$cookies",function(n){return{get:function(i){return(i=n[i])?t.fromJson(i):i},put:function(i,r){n[i]=t.toJson(r)},remove:function(t){delete n[t]}}}])}(window,window.angular),function(n){function it(n,t,i){switch(arguments.length){case 2:return null!=n?n:t;case 3:return null!=n?n:null!=t?t:i;default:throw new Error("Implement me");}}function p(n,t){return nf.call(n,t)}function ot(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function ni(n){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function o(n,t){var i=!0;return w(function(){return i&&(ni(n),i=!1),t.apply(this,arguments)},t)}function kr(n,t){wr[n]||(ni(t),wr[n]=!0)}function ti(n,t){return function(i){return r(n.call(this,i),t)}}function dr(n,t){return function(i){return this.localeData().ordinal(n.call(this,i),t)}}function ii(){}function rt(n,t){t!==!1&&vi(n);ri(this,n);this._d=new Date(+n._d)}function st(n){var i=hi(n),r=i.year||0,u=i.quarter||0,f=i.month||0,e=i.week||0,o=i.day||0,s=i.hour||0,h=i.minute||0,c=i.second||0,l=i.millisecond||0;this._milliseconds=+l+1e3*c+6e4*h+36e5*s;this._days=+o+7*e;this._months=+f+3*u+12*r;this._data={};this._locale=t.localeData();this._bubble()}function w(n,t){for(var i in t)p(t,i)&&(n[i]=t[i]);return p(t,"toString")&&(n.toString=t.toString),p(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ri(n,t){var u,i,r;if("undefined"!=typeof t._isAMomentObject&&(n._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(n._i=t._i),"undefined"!=typeof t._f&&(n._f=t._f),"undefined"!=typeof t._l&&(n._l=t._l),"undefined"!=typeof t._strict&&(n._strict=t._strict),"undefined"!=typeof t._tzm&&(n._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(n._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(n._offset=t._offset),"undefined"!=typeof t._pf&&(n._pf=t._pf),"undefined"!=typeof t._locale&&(n._locale=t._locale),ft.length>0)for(u in ft)i=ft[u],r=t[i],"undefined"!=typeof r&&(n[i]=r);return n}function s(n){return 0>n?Math.ceil(n):Math.floor(n)}function r(n,t,i){for(var r=""+Math.abs(n),u=n>=0;r.length<t;)r="0"+r;return(u?i?"+":"":"-")+r}function ui(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function gr(n,t){var i;return t=ct(t,n),n.isBefore(t)?i=ui(n,t):(i=ui(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i}function fi(n,i){return function(r,u){var f,e;return null===u||isNaN(+u)||(kr(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period)."),e=r,r=u,u=e),r="string"==typeof r?+r:r,f=t.duration(r,u),ei(this,f,n),this}}function ei(n,i,r,u){var o=i._milliseconds,f=i._days,e=i._months;u=null==u?!0:u;o&&n._d.setTime(+n._d+o*r);f&&ir(n,"Date",pt(n,"Date")+f*r);e&&tr(n,pt(n,"Month")+e*r);u&&t.updateOffset(n,f||e)}function ut(n){return"[object Array]"===Object.prototype.toString.call(n)}function oi(n){return"[object Date]"===Object.prototype.toString.call(n)||n instanceof Date}function si(n,t,r){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),f=0,u=0;e>u;u++)(r&&n[u]!==t[u]||!r&&i(n[u])!==i(t[u]))&&f++;return f+o}function e(n){if(n){var t=n.toLowerCase().replace(/(.)s$/,"$1");n=kf[n]||df[t]||t}return n}function hi(n){var i,t,r={};for(t in n)p(n,t)&&(i=e(t),i&&(r[i]=n[t]));return r}function nu(i){var r,u;if(0===i.indexOf("week"))r=7,u="day";else{if(0!==i.indexOf("month"))return;r=12;u="month"}t[i]=function(f,e){var o,s,c=t._locale[i],h=[];if("number"==typeof f&&(e=f,f=n),s=function(n){var i=t().utc().set(u,n);return c.call(t._locale,i,f||"")},null!=e)return s(e);for(o=0;r>o;o++)h.push(s(o));return h}}function i(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function ht(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function ci(n,i,r){return b(t([n,11,31+i-r]),i,r).week}function li(n){return ai(n)?366:365}function ai(n){return n%4==0&&n%100!=0||n%400==0}function vi(n){var t;n._a&&-2===n._pf.overflow&&(t=n._a[a]<0||n._a[a]>11?a:n._a[h]<1||n._a[h]>ht(n._a[l],n._a[a])?h:n._a[f]<0||n._a[f]>24||24===n._a[f]&&(0!==n._a[d]||0!==n._a[g]||0!==n._a[nt])?f:n._a[d]<0||n._a[d]>59?d:n._a[g]<0||n._a[g]>59?g:n._a[nt]<0||n._a[nt]>999?nt:-1,n._pf._overflowDayOfYear&&(l>t||t>h)&&(t=h),n._pf.overflow=t)}function yi(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length&&t._pf.bigHour===n)),t._isValid}function pi(n){return n?n.toLowerCase().replace("_","-"):n}function tu(n){for(var i,t,f,r,u=0;u<n.length;){for(r=pi(n[u]).split("-"),i=r.length,t=pi(n[u+1]),t=t?t.split("-"):null;i>0;){if(f=wi(r.slice(0,i).join("-")))return f;if(t&&t.length>=i&&si(r,t,!0)>=i-1)break;i--}u++}return null}function wi(n){var i=null;if(!tt[n]&&or)try{i=t.locale();require("./locale/"+n);t.locale(i)}catch(r){}return tt[n]}function ct(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(t.isMoment(n)||oi(n)?+n:+t(n))-+r,r._d.setTime(+r._d+u),t.updateOffset(r,!1),r):t(n).local()}function iu(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function ru(n){for(var i=n.match(sr),t=0,r=i.length;r>t;t++)i[t]=v[i[t]]?v[i[t]]:iu(i[t]);return function(u){var f="";for(t=0;r>t;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function lt(n,t){return n.isValid()?(t=bi(t,n.localeData()),gt[t]||(gt[t]=ru(t)),gt[t](n)):n.localeData().invalidDate()}function bi(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(et.lastIndex=0;i>=0&&et.test(n);)n=n.replace(et,r),et.lastIndex=0,i-=1;return n}function uu(n,t){var i=t._strict;switch(n){case"Q":return cr;case"DDDD":return ar;case"YYYY":case"GGGG":case"gggg":return i?vf:ef;case"Y":case"G":case"g":return pf;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?yf:of;case"S":if(i)return cr;case"SS":if(i)return lr;case"SSS":if(i)return ar;case"DDD":return ff;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return hf;case"a":case"A":return t._locale._meridiemParse;case"x":return lf;case"X":return af;case"Z":case"ZZ":return bt;case"T":return cf;case"SSSS":return sf;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?lr:hr;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return hr;case"Do":return i?t._locale._ordinalParse:t._locale._ordinalParseLenient;default:return new RegExp(cu(hu(n.replace("\\","")),"i"))}}function ki(n){n=n||"";var r=n.match(bt)||[],f=r[r.length-1]||[],t=(f+"").match(bf)||["-",0,0],u=+(60*t[1])+i(t[2]);return"+"===t[0]?-u:u}function fu(n,r,u){var o,e=u._a;switch(n){case"Q":null!=r&&(e[a]=3*(i(r)-1));break;case"M":case"MM":null!=r&&(e[a]=i(r)-1);break;case"MMM":case"MMMM":o=u._locale.monthsParse(r,n,u._strict);null!=o?e[a]=o:u._pf.invalidMonth=r;break;case"D":case"DD":null!=r&&(e[h]=i(r));break;case"Do":null!=r&&(e[h]=i(parseInt(r.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=r&&(u._dayOfYear=i(r));break;case"YY":e[l]=t.parseTwoDigitYear(r);break;case"YYYY":case"YYYYY":case"YYYYYY":e[l]=i(r);break;case"a":case"A":u._isPm=u._locale.isPM(r);break;case"h":case"hh":u._pf.bigHour=!0;case"H":case"HH":e[f]=i(r);break;case"m":case"mm":e[d]=i(r);break;case"s":case"ss":e[g]=i(r);break;case"S":case"SS":case"SSS":case"SSSS":e[nt]=i(1e3*("0."+r));break;case"x":u._d=new Date(i(r));break;case"X":u._d=new Date(1e3*parseFloat(r));break;case"Z":case"ZZ":u._useUTC=!0;u._tzm=ki(r);break;case"dd":case"ddd":case"dddd":o=u._locale.weekdaysParse(r);null!=o?(u._w=u._w||{},u._w.d=o):u._pf.invalidWeekday=r;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":n=n.substr(0,1);case"gggg":case"GGGG":case"GGGGG":n=n.substr(0,2);r&&(u._w=u._w||{},u._w[n]=i(r));break;case"gg":case"GG":u._w=u._w||{};u._w[n]=t.parseTwoDigitYear(r)}}function eu(n){var i,o,f,u,r,e,s;i=n._w;null!=i.GG||null!=i.W||null!=i.E?(r=1,e=4,o=it(i.GG,n._a[l],b(t(),1,4).year),f=it(i.W,1),u=it(i.E,1)):(r=n._locale._week.dow,e=n._locale._week.doy,o=it(i.gg,n._a[l],b(t(),r,e).year),f=it(i.w,1),null!=i.d?(u=i.d,r>u&&++f):u=null!=i.e?i.e+r:r);s=du(o,f,u,e,r);n._a[l]=s.year;n._dayOfYear=s.dayOfYear}function at(n){var t,i,r,u,e=[];if(!n._d){for(r=su(n),n._w&&null==n._a[h]&&null==n._a[a]&&eu(n),n._dayOfYear&&(u=it(n._a[l],r[l]),n._dayOfYear>li(u)&&(n._pf._overflowDayOfYear=!0),i=yt(u,0,n._dayOfYear),n._a[a]=i.getUTCMonth(),n._a[h]=i.getUTCDate()),t=0;3>t&&null==n._a[t];++t)n._a[t]=e[t]=r[t];for(;7>t;t++)n._a[t]=e[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[f]&&0===n._a[d]&&0===n._a[g]&&0===n._a[nt]&&(n._nextDay=!0,n._a[f]=0);n._d=(n._useUTC?yt:pu).apply(null,e);null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()+n._tzm);n._nextDay&&(n._a[f]=24)}}function ou(n){var t;n._d||(t=hi(n._i),n._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],at(n))}function su(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function vt(i){if(i._f===t.ISO_8601)return void di(i);i._a=[];i._pf.empty=!0;for(var r,e,h,u=""+i._i,l=u.length,c=0,s=bi(i._f,i._locale).match(sr)||[],o=0;o<s.length;o++)e=s[o],r=(u.match(uu(e,i))||[])[0],r&&(h=u.substr(0,u.indexOf(r)),h.length>0&&i._pf.unusedInput.push(h),u=u.slice(u.indexOf(r)+r.length),c+=r.length),v[e]?(r?i._pf.empty=!1:i._pf.unusedTokens.push(e),fu(e,r,i)):i._strict&&!r&&i._pf.unusedTokens.push(e);i._pf.charsLeftOver=l-c;u.length>0&&i._pf.unusedInput.push(u);i._pf.bigHour===!0&&i._a[f]<=12&&(i._pf.bigHour=n);i._isPm&&i._a[f]<12&&(i._a[f]+=12);i._isPm===!1&&12===i._a[f]&&(i._a[f]=0);at(i);vi(i)}function hu(n){return n.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})}function cu(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function lu(n){var t,f,u,r,i;if(0===n._f.length)return n._pf.invalidFormat=!0,void(n._d=new Date(NaN));for(r=0;r<n._f.length;r++)i=0,t=ri({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._pf=ot(),t._f=n._f[r],vt(t),yi(t)&&(i+=t._pf.charsLeftOver,i+=10*t._pf.unusedTokens.length,t._pf.score=i,(null==u||u>i)&&(u=i,f=t));w(n,f||t)}function di(n){var t,i,r=n._i,u=wf.exec(r);if(u){for(n._pf.iso=!0,t=0,i=kt.length;i>t;t++)if(kt[t][1].exec(r)){n._f=kt[t][0]+(u[6]||" ");break}for(t=0,i=dt.length;i>t;t++)if(dt[t][1].exec(r)){n._f+=dt[t][0];break}r.match(bt)&&(n._f+="Z");vt(n)}else n._isValid=!1}function au(n){di(n);n._isValid===!1&&(delete n._isValid,t.createFromInputFallback(n))}function vu(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function yu(i){var u,r=i._i;r===n?i._d=new Date:oi(r)?i._d=new Date(+r):null!==(u=tf.exec(r))?i._d=new Date(+u[1]):"string"==typeof r?au(i):ut(r)?(i._a=vu(r.slice(0),function(n){return parseInt(n,10)}),at(i)):"object"==typeof r?ou(i):"number"==typeof r?i._d=new Date(r):t.createFromInputFallback(i)}function pu(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return 1970>n&&o.setFullYear(n),o}function yt(n){var t=new Date(Date.UTC.apply(null,arguments));return 1970>n&&t.setUTCFullYear(n),t}function wu(n,t){if("string"==typeof n)if(isNaN(n)){if(n=t.weekdaysParse(n),"number"!=typeof n)return null}else n=parseInt(n,10);return n}function bu(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function ku(n,i,r){var u=t.duration(n).abs(),c=k(u.as("s")),e=k(u.as("m")),o=k(u.as("h")),s=k(u.as("d")),h=k(u.as("M")),l=k(u.as("y")),f=c<y.s&&["s",c]||1===e&&["m"]||e<y.m&&["mm",e]||1===o&&["h"]||o<y.h&&["hh",o]||1===s&&["d"]||s<y.d&&["dd",s]||1===h&&["M"]||h<y.M&&["MM",h]||1===l&&["y"]||["yy",l];return f[2]=i,f[3]=+n>0,f[4]=r,bu.apply({},f)}function b(n,i,r){var f,e=r-i,u=r-n.day();return u>e&&(u-=7),e-7>u&&(u+=7),f=t(n).add(u,"d"),{week:Math.ceil(f.dayOfYear()/7),year:f.year()}}function du(n,t,i,r,u){var o,e,f=yt(n,0,1).getUTCDay();return f=0===f?7:f,i=null!=i?i:u,o=u-f+(f>r?7:0)-(u>f?7:0),e=7*(t-1)+(i-u)+o+1,{year:e>0?n:n-1,dayOfYear:e>0?e:li(n-1)+e}}function gi(i){var u,r=i._i,f=i._f;return i._locale=i._locale||t.localeData(i._l),null===r||f===n&&""===r?t.invalid({nullInput:!0}):("string"==typeof r&&(i._i=r=i._locale.preparse(r)),t.isMoment(r)?new rt(r,!0):(f?ut(f)?lu(i):vt(i):yu(i),u=new rt(i),u._nextDay&&(u.add(1,"d"),u._nextDay=n),u))}function nr(n,i){var u,r;if(1===i.length&&ut(i[0])&&(i=i[0]),!i.length)return t();for(u=i[0],r=1;r<i.length;++r)i[r][n](u)&&(u=i[r]);return u}function tr(n,t){var i;return"string"==typeof t&&(t=n.localeData().monthsParse(t),"number"!=typeof t)?n:(i=Math.min(n.date(),ht(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function pt(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function ir(n,t,i){return"Month"===t?tr(n,i):n._d["set"+(n._isUTC?"UTC":"")+t](i)}function c(n,i){return function(r){return null!=r?(ir(this,n,r),t.updateOffset(this,i),this):pt(this,n)}}function rr(n){return 400*n/146097}function ur(n){return 146097*n/400}function gu(n){t.duration.fn[n]=function(){return this._data[n]}}function fr(n){"undefined"==typeof ender&&(er=wt.moment,wt.moment=n?o("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",t):t)}for(var t,er,u,wt="undefined"!=typeof global?global:this,k=Math.round,nf=Object.prototype.hasOwnProperty,l=0,a=1,h=2,f=3,d=4,g=5,nt=6,tt={},ft=[],or="undefined"!=typeof module&&module&&module.exports,tf=/^\/?Date\((\-?\d+)/i,rf=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,uf=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,sr=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,et=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,hr=/\d\d?/,ff=/\d{1,3}/,ef=/\d{1,4}/,of=/[+\-]?\d{1,6}/,sf=/\d+/,hf=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,bt=/Z|[\+\-]\d\d:?\d\d/gi,cf=/T/i,lf=/[\+\-]?\d+/,af=/[\+\-]?\d+(\.\d{1,3})?/,cr=/\d/,lr=/\d\d/,ar=/\d{3}/,vf=/\d{4}/,yf=/[+-]?\d{6}/,pf=/[+-]?\d+/,wf=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],dt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],bf=/([\+\-]|\d\d)/gi,vr=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),kf={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},df={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},gt={},y={s:45,m:45,h:22,d:26,M:11},yr="DDD w W M D d".split(" "),pr="M D H h m s w W".split(" "),v={M:function(){return this.month()+1},MMM:function(n){return this.localeData().monthsShort(this,n)},MMMM:function(n){return this.localeData().months(this,n)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(n){return this.localeData().weekdaysMin(this,n)},ddd:function(n){return this.localeData().weekdaysShort(this,n)},dddd:function(n){return this.localeData().weekdays(this,n)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return r(this.year()%100,2)},YYYY:function(){return r(this.year(),4)},YYYYY:function(){return r(this.year(),5)},YYYYYY:function(){var n=this.year(),t=n>=0?"+":"-";return t+r(Math.abs(n),6)},gg:function(){return r(this.weekYear()%100,2)},gggg:function(){return r(this.weekYear(),4)},ggggg:function(){return r(this.weekYear(),5)},GG:function(){return r(this.isoWeekYear()%100,2)},GGGG:function(){return r(this.isoWeekYear(),4)},GGGGG:function(){return r(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return i(this.milliseconds()/100)},SS:function(){return r(i(this.milliseconds()/10),2)},SSS:function(){return r(this.milliseconds(),3)},SSSS:function(){return r(this.milliseconds(),3)},Z:function(){var n=-this.zone(),t="+";return 0>n&&(n=-n,t="-"),t+r(i(n/60),2)+":"+r(i(n)%60,2)},ZZ:function(){var n=-this.zone(),t="+";return 0>n&&(n=-n,t="-"),t+r(i(n/60),2)+r(i(n)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},wr={},br=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];yr.length;)u=yr.pop(),v[u+"o"]=dr(v[u],u);for(;pr.length;)u=pr.pop(),v[u+u]=ti(v[u],2);for(v.DDDD=ti(v.DDD,3),w(ii.prototype,{set:function(n){var t;for(var i in n)t=n[i],"function"==typeof t?this[i]=t:this["_"+i]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(n){return this._months[n.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(n){return this._monthsShort[n.month()]},monthsParse:function(n,i,r){var u,f,e;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),u=0;12>u;u++)if((f=t.utc([2e3,u]),r&&!this._longMonthsParse[u]&&(this._longMonthsParse[u]=new RegExp("^"+this.months(f,"").replace(".","")+"$","i"),this._shortMonthsParse[u]=new RegExp("^"+this.monthsShort(f,"").replace(".","")+"$","i")),r||this._monthsParse[u]||(e="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[u]=new RegExp(e.replace(".",""),"i")),r&&"MMMM"===i&&this._longMonthsParse[u].test(n))||r&&"MMM"===i&&this._shortMonthsParse[u].test(n)||!r&&this._monthsParse[u].test(n))return u},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(n){return this._weekdays[n.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(n){return this._weekdaysShort[n.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(n){return this._weekdaysMin[n.day()]},weekdaysParse:function(n){var i,r,u;for(this._weekdaysParse||(this._weekdaysParse=[]),i=0;7>i;i++)if(this._weekdaysParse[i]||(r=t([2e3,1]).day(i),u="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(u.replace(".",""),"i")),this._weekdaysParse[i].test(n))return i},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t},isPM:function(n){return"p"===(n+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(n,t,i){var r=this._calendar[n];return"function"==typeof r?r.apply(t,[i]):r},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(n,t,i,r){var u=this._relativeTime[i];return"function"==typeof u?u(n,t,i,r):u.replace(/%d/i,n)},pastFuture:function(n,t){var i=this._relativeTime[n>0?"future":"past"];return"function"==typeof i?i(t):i.replace(/%s/i,t)},ordinal:function(n){return this._ordinal.replace("%d",n)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(n){return n},postformat:function(n){return n},week:function(n){return b(n,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),t=function(t,i,r,u){var f;return"boolean"==typeof r&&(u=r,r=n),f={},f._isAMomentObject=!0,f._i=t,f._f=i,f._l=r,f._strict=u,f._isUTC=!1,f._pf=ot(),gi(f)},t.suppressDeprecationWarnings=!1,t.createFromInputFallback=o("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),t.min=function(){var n=[].slice.call(arguments,0);return nr("isBefore",n)},t.max=function(){var n=[].slice.call(arguments,0);return nr("isAfter",n)},t.utc=function(t,i,r,u){var f;return"boolean"==typeof r&&(u=r,r=n),f={},f._isAMomentObject=!0,f._useUTC=!0,f._isUTC=!0,f._l=r,f._i=t,f._f=i,f._strict=u,f._pf=ot(),gi(f).utc()},t.unix=function(n){return t(1e3*n)},t.duration=function(n,r){var o,c,s,l,e=n,u=null;return t.isDuration(n)?e={ms:n._milliseconds,d:n._days,M:n._months}:"number"==typeof n?(e={},r?e[r]=n:e.milliseconds=n):(u=rf.exec(n))?(o="-"===u[1]?-1:1,e={y:0,d:i(u[h])*o,h:i(u[f])*o,m:i(u[d])*o,s:i(u[g])*o,ms:i(u[nt])*o}):(u=uf.exec(n))?(o="-"===u[1]?-1:1,s=function(n){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*o},e={y:s(u[2]),M:s(u[3]),d:s(u[4]),h:s(u[5]),m:s(u[6]),s:s(u[7]),w:s(u[8])}):"object"==typeof e&&("from"in e||"to"in e)&&(l=gr(t(e.from),t(e.to)),e={},e.ms=l.milliseconds,e.M=l.months),c=new st(e),t.isDuration(n)&&p(n,"_locale")&&(c._locale=n._locale),c},t.version="2.8.4",t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.ISO_8601=function(){},t.momentProperties=ft,t.updateOffset=function(){},t.relativeTimeThreshold=function(t,i){return y[t]===n?!1:i===n?y[t]:(y[t]=i,!0)},t.lang=o("moment.lang is deprecated. Use moment.locale instead.",function(n,i){return t.locale(n,i)}),t.locale=function(n,i){var r;return n&&(r="undefined"!=typeof i?t.defineLocale(n,i):t.localeData(n),r&&(t.duration._locale=t._locale=r)),t._locale._abbr},t.defineLocale=function(n,i){return null!==i?(i.abbr=n,tt[n]||(tt[n]=new ii),tt[n].set(i),t.locale(n),tt[n]):(delete tt[n],null)},t.langData=o("moment.langData is deprecated. Use moment.localeData instead.",function(n){return t.localeData(n)}),t.localeData=function(n){var i;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return t._locale;if(!ut(n)){if(i=wi(n))return i;n=[n]}return tu(n)},t.isMoment=function(n){return n instanceof rt||null!=n&&p(n,"_isAMomentObject")},t.isDuration=function(n){return n instanceof st},u=br.length-1;u>=0;--u)nu(br[u]);t.normalizeUnits=function(n){return e(n)};t.invalid=function(n){var i=t.utc(NaN);return null!=n?w(i._pf,n):i._pf.userInvalidated=!0,i};t.parseZone=function(){return t.apply(null,arguments).parseZone()};t.parseTwoDigitYear=function(n){return i(n)+(i(n)>68?1900:2e3)};w(t.fn=rt.prototype,{clone:function(){return t(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var n=t(this).utc();return 0<n.year()&&n.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():lt(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):lt(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var n=this;return[n.year(),n.month(),n.date(),n.hours(),n.minutes(),n.seconds(),n.milliseconds()]},isValid:function(){return yi(this)},isDSTShifted:function(){return this._a?this.isValid()&&si(this._a,(this._isUTC?t.utc(this._a):t(this._a)).toArray())>0:!1},parsingFlags:function(){return w({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(n){return this.zone(0,n)},local:function(n){return this._isUTC&&(this.zone(0,n),this._isUTC=!1,n&&this.add(this._dateTzOffset(),"m")),this},format:function(n){var i=lt(this,n||t.defaultFormat);return this.localeData().postformat(i)},add:fi(1,"add"),subtract:fi(-1,"subtract"),diff:function(n,i,r){var u,o,h,f=ct(n,this),c=6e4*(this.zone()-f.zone());return i=e(i),"year"===i||"month"===i?(u=432e5*(this.daysInMonth()+f.daysInMonth()),o=12*(this.year()-f.year())+(this.month()-f.month()),h=this-t(this).startOf("month")-(f-t(f).startOf("month")),h-=6e4*(this.zone()-t(this).startOf("month").zone()-(f.zone()-t(f).startOf("month").zone())),o+=h/u,"year"===i&&(o/=12)):(u=this-f,o="second"===i?u/1e3:"minute"===i?u/6e4:"hour"===i?u/36e5:"day"===i?(u-c)/864e5:"week"===i?(u-c)/6048e5:u),r?o:s(o)},from:function(n,i){return t.duration({to:this,from:n}).locale(this.locale()).humanize(!i)},fromNow:function(n){return this.from(t(),n)},calendar:function(n){var r=n||t(),u=ct(r,this).startOf("day"),i=this.diff(u,"days",!0),f=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse";return this.format(this.localeData().calendar(f,this,t(r)))},isLeapYear:function(){return ai(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=wu(n,this.localeData()),this.add(n-t,"d")):t},month:c("Month",!0),startOf:function(n){switch(n=e(n)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n?this.weekday(0):"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(t){return t=e(t),t===n||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},isAfter:function(n,i){var r;return i=e("undefined"!=typeof i?i:"millisecond"),"millisecond"===i?(n=t.isMoment(n)?n:t(n),+this>+n):(r=t.isMoment(n)?+n:+t(n),r<+this.clone().startOf(i))},isBefore:function(n,i){var r;return i=e("undefined"!=typeof i?i:"millisecond"),"millisecond"===i?(n=t.isMoment(n)?n:t(n),+n>+this):(r=t.isMoment(n)?+n:+t(n),+this.clone().endOf(i)<r)},isSame:function(n,i){var r;return i=e(i||"millisecond"),"millisecond"===i?(n=t.isMoment(n)?n:t(n),+this==+n):(r=+t(n),+this.clone().startOf(i)<=r&&r<=+this.clone().endOf(i))},min:o("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(n){return n=t.apply(null,arguments),this>n?this:n}),max:o("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(n){return n=t.apply(null,arguments),n>this?this:n}),zone:function(n,i){var r,u=this._offset||0;return null==n?this._isUTC?u:this._dateTzOffset():("string"==typeof n&&(n=ki(n)),Math.abs(n)<16&&(n=60*n),!this._isUTC&&i&&(r=this._dateTzOffset()),this._offset=n,this._isUTC=!0,null!=r&&this.subtract(r,"m"),u!==n&&(!i||this._changeInProgress?ei(this,t.duration(u-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(n){return n=n?t(n).zone():0,(this.zone()-n)%60==0},daysInMonth:function(){return ht(this.year(),this.month())},dayOfYear:function(n){var i=k((t(this).startOf("day")-t(this).startOf("year"))/864e5)+1;return null==n?i:this.add(n-i,"d")},quarter:function(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)},weekYear:function(n){var t=b(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==n?t:this.add(n-t,"y")},isoWeekYear:function(n){var t=b(this,1,4).year;return null==n?t:this.add(n-t,"y")},week:function(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")},isoWeek:function(n){var t=b(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")},weekday:function(n){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")},isoWeekday:function(n){return null==n?this.day()||7:this.day(this.day()%7?n:n-7)},isoWeeksInYear:function(){return ci(this.year(),1,4)},weeksInYear:function(){var n=this.localeData()._week;return ci(this.year(),n.dow,n.doy)},get:function(n){return n=e(n),this[n]()},set:function(n,t){return n=e(n),"function"==typeof this[n]&&this[n](t),this},locale:function(i){var r;return i===n?this._locale._abbr:(r=t.localeData(i),null!=r&&(this._locale=r),this)},lang:o("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===n?this.localeData():this.locale(t)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}});t.fn.millisecond=t.fn.milliseconds=c("Milliseconds",!1);t.fn.second=t.fn.seconds=c("Seconds",!1);t.fn.minute=t.fn.minutes=c("Minutes",!1);t.fn.hour=t.fn.hours=c("Hours",!0);t.fn.date=c("Date",!0);t.fn.dates=o("dates accessor is deprecated. Use date instead.",c("Date",!0));t.fn.year=c("FullYear",!0);t.fn.years=o("years accessor is deprecated. Use year instead.",c("FullYear",!0));t.fn.days=t.fn.day;t.fn.months=t.fn.month;t.fn.weeks=t.fn.week;t.fn.isoWeeks=t.fn.isoWeek;t.fn.quarters=t.fn.quarter;t.fn.toJSON=t.fn.toISOString;w(t.duration.fn=st.prototype,{_bubble:function(){var u,f,e,o=this._milliseconds,t=this._days,i=this._months,n=this._data,r=0;n.milliseconds=o%1e3;u=s(o/1e3);n.seconds=u%60;f=s(u/60);n.minutes=f%60;e=s(f/60);n.hours=e%24;t+=s(e/24);r=s(rr(t));t-=s(ur(r));i+=s(t/30);t%=30;r+=s(i/12);i%=12;n.days=t;n.months=i;n.years=r},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return s(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*i(this._months/12)},humanize:function(n){var t=ku(this,!n,this.localeData());return n&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(n,i){var r=t.duration(n,i);return this._milliseconds+=r._milliseconds,this._days+=r._days,this._months+=r._months,this._bubble(),this},subtract:function(n,i){var r=t.duration(n,i);return this._milliseconds-=r._milliseconds,this._days-=r._days,this._months-=r._months,this._bubble(),this},get:function(n){return n=e(n),this[n.toLowerCase()+"s"]()},as:function(n){var t,i;if(n=e(n),"month"===n||"year"===n)return t=this._days+this._milliseconds/864e5,i=this._months+12*rr(t),"month"===n?i:i/12;switch(t=this._days+Math.round(ur(this._months/12)),n){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return 24*t+this._milliseconds/36e5;case"minute":return 1440*t+this._milliseconds/6e4;case"second":return 86400*t+this._milliseconds/1e3;case"millisecond":return Math.floor(864e5*t)+this._milliseconds;default:throw new Error("Unknown unit "+n);}},lang:t.fn.lang,locale:t.fn.locale,toIsoString:o("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var r=Math.abs(this.years()),u=Math.abs(this.months()),f=Math.abs(this.days()),n=Math.abs(this.hours()),t=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"},localeData:function(){return this._locale}});t.duration.fn.toString=t.duration.fn.toISOString;for(u in vr)p(vr,u)&&gu(u.toLowerCase());t.duration.fn.asMilliseconds=function(){return this.as("ms")};t.duration.fn.asSeconds=function(){return this.as("s")};t.duration.fn.asMinutes=function(){return this.as("m")};t.duration.fn.asHours=function(){return this.as("h")};t.duration.fn.asDays=function(){return this.as("d")};t.duration.fn.asWeeks=function(){return this.as("weeks")};t.duration.fn.asMonths=function(){return this.as("M")};t.duration.fn.asYears=function(){return this.as("y")};t.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,r=1===i(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+r}});or?module.exports=t:"function"==typeof define&&define.amd?(define("moment",function(n,i,r){return r.config&&r.config()&&r.config().noGlobal===!0&&(wt.moment=er),t}),fr(!0)):fr()}.call(this);!function(n,t){"use strict";"function"==typeof define&&define.amd?define(["moment"],t):"object"==typeof exports?module.exports=t(require("moment")):t(n.moment)}(this,function(n){"use strict";function a(n){return n>96?n-87:n>64?n-29:n-48}function v(n){var i,t=0,u=n.split("."),f=u[0],e=u[1]||"",o=1,r=0,s=1;for(45===n.charCodeAt(0)&&(t=1,s=-1),t;t<f.length;t++)i=a(f.charCodeAt(t)),r=60*r+i;for(t=0;t<e.length;t++)o/=60,i=a(e.charCodeAt(t)),r+=i*o;return r*s}function h(n){for(var t=0;t<n.length;t++)n[t]=v(n[t])}function rt(n,t){for(var i=0;t>i;i++)n[i]=Math.round((n[i-1]||0)+6e4*n[i]);n[t-1]=1/0}function y(n,t){for(var r=[],i=0;i<t.length;i++)r[i]=n[t[i]];return r}function p(n){var t=n.split("|"),u=t[2].split(" "),i=t[3].split(""),r=t[4].split(" ");return h(u),h(i),h(r),rt(r,i.length),{name:t[0],abbrs:y(t[1].split(" "),i),offsets:y(u,i),untils:r}}function e(n){n&&this._set(p(n))}function o(n){return(n||"").toLowerCase().replace(/\//g,"_")}function w(n){var t,r,u;for("string"==typeof n&&(n=[n]),t=0;t<n.length;t++)r=new e(n[t]),u=o(r.name),i[u]=r,ft(u)}function s(n){return i[o(n)]||null}function ut(){var n,t=[];for(n in i)i.hasOwnProperty(n)&&i[n]&&t.push(i[n].name);return t.sort()}function b(n){var i,t;for("string"==typeof n&&(n=[n]),i=0;i<n.length;i++)t=n[i].split("|"),d(t[0],t[1]),d(t[1],t[0])}function ft(n){if(u[n]){for(var f=i[n],r=u[n],t=0;t<r.length;t++)k(f,r[t]);u[n]=null}}function k(n,t){var r=i[o(t)]=new e;r._set(n);r.name=t}function d(n,t){n=o(n);i[n]?k(i[n],t):(u[n]=u[n]||[],u[n].push(t))}function et(n){w(n.zones);b(n.links);t.dataVersion=n.version}function c(n){return c.didShowError||(c.didShowError=!0,l("moment.tz.zoneExists('"+n+"') has been deprecated in favor of !moment.tz.zone('"+n+"')")),!!s(n)}function g(n){return!(!n._a||void 0!==n._tzm)}function l(n){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(n)}function t(){var u=Array.prototype.slice.call(arguments,0,-1),i=arguments[arguments.length-1],r=s(i),t=n.utc.apply(null,u);return r&&g(t)&&t.add(r.parse(t),"minutes"),t.tz(i),t}function nt(n){return function(){return this._z?this._z.abbr(this):n.call(this)}}function ot(n){return function(){return this._z=null,n.apply(this,arguments)}}var r,f;if(void 0!==n.tz)return n;var i={},u={},tt=n.version.split("."),it=+tt[0],st=+tt[1];return(2>it||2===it&&6>st)&&l("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+n.version+". See momentjs.com"),e.prototype={_set:function(n){this.name=n.name;this.abbrs=n.abbrs;this.untils=n.untils;this.offsets=n.offsets},_index:function(n){for(var r=+n,i=this.untils,t=0;t<i.length;t++)if(r<i[t])return t},parse:function(n){for(var r,f,e,h=+n,u=this.offsets,o=this.untils,s=o.length-1,i=0;s>i;i++)if(r=u[i],f=u[i+1],e=u[i?i-1:i],f>r&&t.moveAmbiguousForward?r=f:r>e&&t.moveInvalidForward&&(r=e),h<o[i]-6e4*r)return u[i];return u[s]},abbr:function(n){return this.abbrs[this._index(n)]},offset:function(n){return this.offsets[this._index(n)]}},t.version="0.2.5",t.dataVersion="",t._zones=i,t._links=u,t.add=w,t.link=b,t.load=et,t.zone=s,t.zoneExists=c,t.names=ut,t.Zone=e,t.unpack=p,t.unpackBase60=v,t.needsOffset=g,t.moveInvalidForward=!0,t.moveAmbiguousForward=!1,r=n.fn,n.tz=t,n.updateOffset=function(n,t){var i;n._z&&(i=n._z.offset(n),Math.abs(i)<16&&(i/=60),n.zone(i,t))},r.tz=function(t){return t?(this._z=s(t),this._z?n.updateOffset(this):l("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this):this._z?this._z.name:void 0},r.zoneName=nt(r.zoneName),r.zoneAbbr=nt(r.zoneAbbr),r.utc=ot(r.utc),f=n.momentProperties,"[object Array]"===Object.prototype.toString.call(f)?(f.push("_z"),f.push("_a")):f&&(f._z=null),n});timerModule=angular.module("timer",[]).directive("timer",["$compile",function(n){return{restrict:"EA",replace:!1,scope:{interval:"=interval",startTimeAttr:"=startTime",endTimeAttr:"=endTime",countdownattr:"=countdown",finishCallback:"&finishCallback",autoStart:"&autoStart",maxTimeUnit:"="},controller:["$scope","$element","$attrs","$timeout",function(t,i,r,u){function f(){t.timeoutId&&clearTimeout(t.timeoutId)}function e(){void 0!==r.startTime&&(t.millis=new Date-new Date(t.startTimeAttr));t.maxTimeUnit&&"day"!==t.maxTimeUnit?"second"===t.maxTimeUnit?(t.seconds=Math.floor(t.millis/1e3),t.minutes=0,t.hours=0,t.days=0,t.months=0,t.years=0):"minute"===t.maxTimeUnit?(t.seconds=Math.floor(t.millis/1e3%60),t.minutes=Math.floor(t.millis/6e4),t.hours=0,t.days=0,t.months=0,t.years=0):"hour"===t.maxTimeUnit?(t.seconds=Math.floor(t.millis/1e3%60),t.minutes=Math.floor(t.millis/6e4%60),t.hours=Math.floor(t.millis/36e5),t.days=0,t.months=0,t.years=0):"month"===t.maxTimeUnit?(t.seconds=Math.floor(t.millis/1e3%60),t.minutes=Math.floor(t.millis/6e4%60),t.hours=Math.floor(t.millis/36e5%24),t.days=Math.floor(t.millis/864e5%30),t.months=Math.floor(t.millis/2592e6),t.years=0):"year"===t.maxTimeUnit&&(t.seconds=Math.floor(t.millis/1e3%60),t.minutes=Math.floor(t.millis/6e4%60),t.hours=Math.floor(t.millis/36e5%24),t.days=Math.floor(t.millis/864e5%30),t.months=Math.floor(t.millis/2592e6%12),t.years=Math.floor(t.millis/31536e6)):(t.seconds=Math.floor(t.millis/1e3%60),t.minutes=Math.floor(t.millis/6e4%60),t.hours=Math.floor(t.millis/36e5%24),t.days=Math.floor(t.millis/864e5),t.months=0,t.years=0);t.secondsS=1===t.seconds||0===t.seconds?"":"s";t.minutesS=1===t.minutes||0===t.minutes?"":"s";t.hoursS=1===t.hours||0===t.hours?"":"s";t.daysS=1===t.days||0===t.days?"":"s";t.monthsS=1===t.months||0===t.months?"":"s";t.yearsS=1===t.years||0===t.years?"":"s";t.sseconds=t.seconds<10?"0"+t.seconds:t.seconds;t.mminutes=t.minutes<10?"0"+t.minutes:t.minutes;t.hhours=t.hours<10?"0"+t.hours:t.hours;t.ddays=t.days<10?"0"+t.days:t.days;t.mmonths=t.months<10?"0"+t.months:t.months;t.yyears=t.years<10?"0"+t.years:t.years}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});t.autoStart=r.autoStart||r.autostart;i.append(0===i.html().trim().length?n("<span>{{millis}}<\/span>")(t):n(i.contents())(t));t.startTime=null;t.endTime=null;t.timeoutId=null;t.countdown=t.countdownattr&&parseInt(t.countdownattr,10)>=0?parseInt(t.countdownattr,10):void 0;t.isRunning=!1;t.$on("timer-start",function(){t.start()});t.$on("timer-resume",function(){t.resume()});t.$on("timer-stop",function(){t.stop()});t.$on("timer-clear",function(){t.clear()});t.$on("timer-set-countdown",function(n,i){t.countdown=i});t.start=i[0].start=function(){t.startTime=t.startTimeAttr?new Date(t.startTimeAttr):new Date;t.endTime=t.endTimeAttr?new Date(t.endTimeAttr):null;t.countdown||(t.countdown=t.countdownattr&&parseInt(t.countdownattr,10)>0?parseInt(t.countdownattr,10):void 0);f();o();t.isRunning=!0};t.resume=i[0].resume=function(){f();t.countdownattr&&(t.countdown+=1);t.startTime=new Date-(t.stoppedTime-t.startTime);o();t.isRunning=!0};t.stop=t.pause=i[0].stop=i[0].pause=function(){var n=t.timeoutId;t.clear();t.$emit("timer-stopped",{timeoutId:n,millis:t.millis,seconds:t.seconds,minutes:t.minutes,hours:t.hours,days:t.days})};t.clear=i[0].clear=function(){t.stoppedTime=new Date;f();t.timeoutId=null;t.isRunning=!1};i.bind("$destroy",function(){f();t.isRunning=!1});t.countdownattr?(t.millis=1e3*t.countdownattr,t.addCDSeconds=i[0].addCDSeconds=function(n){t.countdown+=n;t.$digest();t.isRunning||t.start()},t.$on("timer-add-cd-seconds",function(n,i){u(function(){t.addCDSeconds(i)})}),t.$on("timer-set-countdown-seconds",function(n,i){t.isRunning||t.clear();t.countdown=i;t.millis=1e3*i;e()})):t.millis=0;e();var o=function(){t.millis=new Date-t.startTime;var n=t.millis%1e3;return t.endTimeAttr&&(t.millis=t.endTime-new Date,n=t.interval-t.millis%1e3),t.countdownattr&&(t.millis=1e3*t.countdown),t.millis<0?(t.stop(),t.millis=0,e(),void(t.finishCallback&&t.$eval(t.finishCallback))):(e(),t.timeoutId=setTimeout(function(){o();t.$digest()},t.interval-n),t.$emit("timer-tick",{timeoutId:t.timeoutId,millis:t.millis}),void(t.countdown>0?t.countdown--:t.countdown<=0&&(t.stop(),t.finishCallback&&t.$eval(t.finishCallback))))};(void 0===t.autoStart||t.autoStart===!0)&&t.start()}]}}]);"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports=timerModule);angular.module("slick",[]).directive("slick",["$timeout",function(n){return{restrict:"AEC",scope:{initOnload:"@",data:"=",currentIndex:"=",accessibility:"@",adaptiveHeight:"@",arrows:"@",asNavFor:"@",appendArrows:"@",appendDots:"@",autoplay:"@",autoplaySpeed:"@",centerMode:"@",centerPadding:"@",cssEase:"@",customPaging:"&",dots:"@",draggable:"@",easing:"@",fade:"@",focusOnSelect:"@",infinite:"@",initialSlide:"@",lazyLoad:"@",onBeforeChange:"&",onAfterChange:"&",onInit:"&",onReInit:"&",onSetPosition:"&",pauseOnHover:"@",pauseOnDotsHover:"@",responsive:"=",rtl:"@",slide:"@",slidesToShow:"@",slidesToScroll:"@",speed:"@",swipe:"@",swipeToSlide:"@",touchMove:"@",touchThreshold:"@",useCSS:"@",variableWidth:"@",vertical:"@",prevArrow:"@",nextArrow:"@"},link:function(t,i,r){var e,u,f;return e=function(){return n(function(){var n;return n=$(i),n.unslick(),n.find(".slick-list").remove(),n})},u=function(){return n(function(){var n,u;return u=$(i),null!=t.currentIndex&&(n=t.currentIndex),u.slick({accessibility:"false"!==t.accessibility,adaptiveHeight:"true"===t.adaptiveHeight,arrows:"false"!==t.arrows,asNavFor:t.asNavFor?t.asNavFor:void 0,appendArrows:$(t.appendArrows?t.appendArrows:i),appendDots:$(t.appendDots?t.appendDots:i),autoplay:"true"===t.autoplay,autoplaySpeed:null!=t.autoplaySpeed?parseInt(t.autoplaySpeed,10):3e3,centerMode:"true"===t.centerMode,centerPadding:t.centerPadding||"50px",cssEase:t.cssEase||"ease",customPaging:r.customPaging?t.customPaging:void 0,dots:"true"===t.dots,draggable:"false"!==t.draggable,easing:t.easing||"linear",fade:"true"===t.fade,focusOnSelect:"true"===t.focusOnSelect,infinite:"false"!==t.infinite,initialSlide:t.initialSlide||0,lazyLoad:t.lazyLoad||"ondemand",onBeforeChange:r.onBeforeChange?t.onBeforeChange:void 0,onAfterChange:function(i,u){return r.onAfterChange&&t.onAfterChange(),null!=n?t.$apply(function(){return n=u,t.currentIndex=u}):void 0},onInit:function(i){return r.onInit&&t.onInit(),null!=n?i.slideHandler(n):void 0},onReInit:r.onReInit?t.onReInit:void 0,onSetPosition:r.onSetPosition?t.onSetPosition:void 0,pauseOnHover:"false"!==t.pauseOnHover,responsive:t.responsive||void 0,rtl:"true"===t.rtl,slide:t.slide||"div",slidesToShow:null!=t.slidesToShow?parseInt(t.slidesToShow,10):1,slidesToScroll:null!=t.slidesToScroll?parseInt(t.slidesToScroll,10):1,speed:null!=t.speed?parseInt(t.speed,10):300,swipe:"false"!==t.swipe,swipeToSlide:"true"===t.swipeToSlide,touchMove:"false"!==t.touchMove,touchThreshold:t.touchThreshold?parseInt(t.touchThreshold,10):5,useCSS:"false"!==t.useCSS,variableWidth:"true"===t.variableWidth,vertical:"true"===t.vertical,prevArrow:t.prevArrow?$(t.prevArrow):void 0,nextArrow:t.nextArrow?$(t.nextArrow):void 0}),t.$watch("currentIndex",function(t){if(null!=n&&null!=t&&t!==n)return u.slickGoTo(t)})})},t.initOnload?(f=!1,t.$watch("data",function(n){if(null!=n)return(f&&e(),u(),f=!0)})):u()}}}]);!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};t=function(){function t(t,r){var f,e,u=this;if(u.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:n(t),appendDots:n(t),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev">Previous<\/button>',nextArrow:'<button type="button" data-role="none" class="slick-next">Next<\/button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(n,t){return'<button type="button" data-role="none">'+(t+1)+"<\/button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,onSetPosition:null,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},n.extend(u,u.initials),u.activeBreakpoint=null,u.animType=null,u.animProp=null,u.breakpoints=[],u.breakpointSettings=[],u.cssTransitions=!1,u.paused=!1,u.positionProp=null,u.respondTo=null,u.shouldClick=!0,u.$slider=n(t),u.$slidesCache=null,u.transformType=null,u.transitionType=null,u.windowWidth=0,u.windowTimer=null,u.options=n.extend({},u.defaults,r),u.currentSlide=u.options.initialSlide,u.originalSettings=u.options,f=u.options.responsive||null,f&&f.length>-1){u.respondTo=u.options.respondTo||"window";for(e in f)f.hasOwnProperty(e)&&(u.breakpoints.push(f[e].breakpoint),u.breakpointSettings[f[e].breakpoint]=f[e].settings);u.breakpoints.sort(function(n,t){return t-n})}u.autoPlay=n.proxy(u.autoPlay,u);u.autoPlayClear=n.proxy(u.autoPlayClear,u);u.changeSlide=n.proxy(u.changeSlide,u);u.clickHandler=n.proxy(u.clickHandler,u);u.selectHandler=n.proxy(u.selectHandler,u);u.setPosition=n.proxy(u.setPosition,u);u.swipeHandler=n.proxy(u.swipeHandler,u);u.dragHandler=n.proxy(u.dragHandler,u);u.keyHandler=n.proxy(u.keyHandler,u);u.autoPlayIterator=n.proxy(u.autoPlayIterator,u);u.instanceUid=i++;u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;u.init();u.checkResponsive()}var i=0;return t}();t.prototype.addSlide=function(t,i,r){var u=this;if("boolean"==typeof i)r=i,i=null;else if(0>i||i>=u.slideCount)return!1;u.unload();"number"==typeof i?0===i&&0===u.$slides.length?n(t).appendTo(u.$slideTrack):r?n(t).insertBefore(u.$slides.eq(i)):n(t).insertAfter(u.$slides.eq(i)):r===!0?n(t).prependTo(u.$slideTrack):n(t).appendTo(u.$slideTrack);u.$slides=u.$slideTrack.children(this.options.slide);u.$slideTrack.children(this.options.slide).detach();u.$slideTrack.append(u.$slides);u.$slides.each(function(t,i){n(i).attr("index",t)});u.$slidesCache=u.$slides;u.reinit()};t.prototype.animateSlide=function(t,i){var u={},r=this,f;1===r.options.slidesToShow&&r.options.adaptiveHeight===!0&&r.options.vertical===!1&&(f=r.$slides.eq(r.currentSlide).outerHeight(!0),r.$list.animate({height:f},r.options.speed));r.options.rtl===!0&&r.options.vertical===!1&&(t=-t);r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):r.cssTransitions===!1?n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){r.options.vertical===!1?(u[r.animType]="translate("+n+"px, 0px)",r.$slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px)",r.$slideTrack.css(u))},complete:function(){i&&i.call()}}):(r.applyTransition(),u[r.animType]=r.options.vertical===!1?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.asNavFor=function(t){var i=this,r=null!=i.options.asNavFor?n(i.options.asNavFor).getSlick():null;null!=r&&r.slideHandler(t,!0)};t.prototype.applyTransition=function(n){var t=this,i={};i[t.transitionType]=t.options.fade===!1?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase;t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.autoPlay=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer);n.slideCount>n.options.slidesToShow&&n.paused!==!0&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var n=this;n.options.infinite===!1?1===n.direction?(n.currentSlide+1===n.slideCount-1&&(n.direction=0),n.slideHandler(n.currentSlide+n.options.slidesToScroll)):(0==n.currentSlide-1&&(n.direction=1),n.slideHandler(n.currentSlide-n.options.slidesToScroll)):n.slideHandler(n.currentSlide+n.options.slidesToScroll)};t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow=n(t.options.prevArrow),t.$nextArrow=n(t.options.nextArrow),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.appendTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled"))};t.prototype.buildDots=function(){var i,r,t=this;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(r='<ul class="'+t.options.dotsClass+'">',i=0;i<=t.getDotCount();i+=1)r+="<li>"+t.options.customPaging.call(this,t,i)+"<\/li>";r+="<\/ul>";t.$dots=n(r).appendTo(t.options.appendDots);t.$dots.find("li").first().addClass("slick-active")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,i){n(i).attr("index",t)});t.$slidesCache=t.$slides;t.$slider.addClass("slick-slider");t.$slideTrack=0===t.slideCount?n('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent();t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent();t.$slideTrack.css("opacity",0);t.options.centerMode===!0&&(t.options.slidesToScroll=1);n("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();t.options.accessibility===!0&&t.$list.prop("tabIndex",0);t.setSlideClasses("number"==typeof this.currentSlide?this.currentSlide:0);t.options.draggable===!0&&t.$list.addClass("draggable")};t.prototype.checkResponsive=function(){var r,i,u,t=this,f=t.$slider.width(),e=window.innerWidth||n(window).width();if("window"===t.respondTo?u=e:"slider"===t.respondTo?u=f:"min"===t.respondTo&&(u=Math.min(e,f)),t.originalSettings.responsive&&t.originalSettings.responsive.length>-1&&null!==t.originalSettings.responsive){i=null;for(r in t.breakpoints)t.breakpoints.hasOwnProperty(r)&&u<t.breakpoints[r]&&(i=t.breakpoints[r]);null!==i?null!==t.activeBreakpoint?i!==t.activeBreakpoint&&(t.activeBreakpoint=i,t.options=n.extend({},t.originalSettings,t.breakpointSettings[i]),t.refresh()):(t.activeBreakpoint=i,t.options=n.extend({},t.originalSettings,t.breakpointSettings[i]),t.refresh()):null!==t.activeBreakpoint&&(t.activeBreakpoint=null,t.options=t.originalSettings,t.refresh())}};t.prototype.changeSlide=function(t,i){var e,o,c,u,s,r=this,l=n(t.target),f,h;switch(l.is("a")&&t.preventDefault(),c=0!=r.slideCount%r.options.slidesToScroll,e=c?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":o=0===e?r.options.slidesToScroll:r.options.slidesToShow-e;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-o,!1,i);break;case"next":o=0===e?r.options.slidesToScroll:e;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+o,!1,i);break;case"index":if(f=0===t.data.index?0:t.data.index||n(t.target).parent().index()*r.options.slidesToScroll,u=r.getNavigableIndexes(),s=0,u[f]&&u[f]===f)if(f>u[u.length-1])f=u[u.length-1];else for(h in u){if(f<u[h]){f=s;break}s=u[h]}r.slideHandler(f,!1,i);default:return}};t.prototype.clickHandler=function(n){var t=this;t.shouldClick===!1&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())};t.prototype.destroy=function(){var t=this;t.autoPlayClear();t.touchObject={};n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&"object"!=typeof t.options.prevArrow&&t.$prevArrow.remove();t.$nextArrow&&"object"!=typeof t.options.nextArrow&&t.$nextArrow.remove();t.$slides.parent().hasClass("slick-track")&&t.$slides.unwrap().unwrap();t.$slides.removeClass("slick-slide slick-active slick-center slick-visible").removeAttr("index").css({position:"",left:"",top:"",zIndex:"",opacity:"",width:""});t.$slider.removeClass("slick-slider");t.$slider.removeClass("slick-initialized");t.$list.off(".slick");n(window).off(".slick-"+t.instanceUid);n(document).off(".slick-"+t.instanceUid)};t.prototype.disableTransition=function(n){var t=this,i={};i[t.transitionType]="";t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.fadeSlide=function(n,t,i){var r=this;r.cssTransitions===!1?(r.$slides.eq(t).css({zIndex:1e3}),r.$slides.eq(t).animate({opacity:1},r.options.speed,r.options.easing,i),r.$slides.eq(n).animate({opacity:0},r.options.speed,r.options.easing)):(r.applyTransition(t),r.applyTransition(n),r.$slides.eq(t).css({opacity:1,zIndex:1e3}),r.$slides.eq(n).css({opacity:0}),i&&setTimeout(function(){r.disableTransition(t);r.disableTransition(n);i.call()},r.options.speed))};t.prototype.filterSlides=function(n){var t=this;null!==n&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(n).appendTo(t.$slideTrack),t.reinit())};t.prototype.getCurrent=function(){var n=this;return n.currentSlide};t.prototype.getDotCount=function(){var n=this,i=0,r=0,t=0;if(n.options.infinite===!0)t=Math.ceil(n.slideCount/n.options.slidesToScroll);else for(;i<n.slideCount;)++t,i=r+n.options.slidesToShow,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return t-1};t.prototype.getLeft=function(n){var f,r,i,t=this,u=0;return t.slideOffset=0,r=t.$slides.first().outerHeight(),t.options.infinite===!0?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=-1*t.slideWidth*t.options.slidesToShow,u=-1*r*t.options.slidesToShow),0!=t.slideCount%t.options.slidesToScroll&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(n>t.slideCount?(t.slideOffset=-1*(t.options.slidesToShow-(n-t.slideCount))*t.slideWidth,u=-1*(t.options.slidesToShow-(n-t.slideCount))*r):(t.slideOffset=-1*t.slideCount%t.options.slidesToScroll*t.slideWidth,u=-1*t.slideCount%t.options.slidesToScroll*r))):n+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(n+t.options.slidesToShow-t.slideCount)*t.slideWidth,u=(n+t.options.slidesToShow-t.slideCount)*r),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,u=0),t.options.centerMode===!0&&t.options.infinite===!0?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:t.options.centerMode===!0&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),f=t.options.vertical===!1?-1*n*t.slideWidth+t.slideOffset:-1*n*r+u,t.options.variableWidth===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow),f=i[0]?-1*i[0].offsetLeft:0,t.options.centerMode===!0&&(i=t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow+1),f=i[0]?-1*i[0].offsetLeft:0,f+=(t.$list.width()-i.outerWidth())/2)),f};t.prototype.getNavigableIndexes=function(){for(var n=this,t=0,i=0,r=[];t<n.slideCount;)r.push(t),t=i+n.options.slidesToScroll,i+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return r};t.prototype.getSlideCount=function(){var r,t=this,i;return t.options.swipeToSlide===!0?(i=null,t.$slideTrack.find(".slick-slide").each(function(r,u){if(u.offsetLeft+n(u).outerWidth()/2>-1*t.swipeLeft)return(i=u,!1)}),r=Math.abs(n(i).attr("index")-t.currentSlide)):t.options.slidesToScroll};t.prototype.init=function(){var t=this;n(t.$slider).hasClass("slick-initialized")||(n(t.$slider).addClass("slick-initialized"),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots());null!==t.options.onInit&&t.options.onInit.call(this,t)};t.prototype.initArrowEvents=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.on("click.slick",{message:"previous"},n.changeSlide),n.$nextArrow.on("click.slick",{message:"next"},n.changeSlide))};t.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&n("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide);t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&t.options.autoplay===!0&&n("li",t.$dots).on("mouseenter.slick",function(){t.paused=!0;t.autoPlayClear()}).on("mouseleave.slick",function(){t.paused=!1;t.autoPlay()})};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);t.$list.on("click.slick",t.clickHandler);t.options.pauseOnHover===!0&&t.options.autoplay===!0&&(t.$list.on("mouseenter.slick",function(){t.paused=!0;t.autoPlayClear()}),t.$list.on("mouseleave.slick",function(){t.paused=!1;t.autoPlay()}));t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler);t.options.focusOnSelect===!0&&n(t.options.slide,t.$slideTrack).on("click.slick",t.selectHandler);n(window).on("orientationchange.slick.slick-"+t.instanceUid,function(){t.checkResponsive();t.setPosition()});n(window).on("resize.slick.slick-"+t.instanceUid,function(){n(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.setPosition()},50))});n("*[draggable!=true]",t.$slideTrack).on("dragstart",function(n){n.preventDefault()});n(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.initUI=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.show(),n.$nextArrow.show());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.show();n.options.autoplay===!0&&n.autoPlay()};t.prototype.keyHandler=function(n){var t=this;37===n.keyCode&&t.options.accessibility===!0?t.changeSlide({data:{message:"previous"}}):39===n.keyCode&&t.options.accessibility===!0&&t.changeSlide({data:{message:"next"}})};t.prototype.lazyLoad=function(){function f(t){n("img[data-lazy]",t).each(function(){var t=n(this),i=n(this).attr("data-lazy");t.load(function(){t.animate({opacity:1},200)}).css({opacity:0}).attr("src",i).removeAttr("data-lazy").removeClass("slick-loading")})}var e,r,i,u,t=this;t.options.centerMode===!0?t.options.infinite===!0?(i=t.currentSlide+(t.options.slidesToShow/2+1),u=i+t.options.slidesToShow+2):(i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),u=2+(t.options.slidesToShow/2+1)+t.currentSlide):(i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,u=i+t.options.slidesToShow,t.options.fade===!0&&(i>0&&i--,u<=t.slideCount&&u++));e=t.$slider.find(".slick-slide").slice(i,u);f(e);t.slideCount<=t.options.slidesToShow?(r=t.$slider.find(".slick-slide"),f(r)):t.currentSlide>=t.slideCount-t.options.slidesToShow?(r=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),f(r)):0===t.currentSlide&&(r=t.$slider.find(".slick-cloned").slice(-1*t.options.slidesToShow),f(r))};t.prototype.loadSlider=function(){var n=this;n.setPosition();n.$slideTrack.css({opacity:1});n.$slider.removeClass("slick-loading");n.initUI();"progressive"===n.options.lazyLoad&&n.progressiveLazyLoad()};t.prototype.postSlide=function(n){var t=this;null!==t.options.onAfterChange&&t.options.onAfterChange.call(this,t,n);t.animating=!1;t.setPosition();t.swipeLeft=null;t.options.autoplay===!0&&t.paused===!1&&t.autoPlay()};t.prototype.progressiveLazyLoad=function(){var r,t,i=this;r=n("img[data-lazy]",i.$slider).length;r>0&&(t=n("img[data-lazy]",i.$slider).first(),t.attr("src",t.attr("data-lazy")).removeClass("slick-loading").load(function(){t.removeAttr("data-lazy");i.progressiveLazyLoad()}).error(function(){t.removeAttr("data-lazy");i.progressiveLazyLoad()}))};t.prototype.refresh=function(){var t=this,i=t.currentSlide;t.destroy();n.extend(t,t.initials);t.init();t.changeSlide({data:{message:"index",index:i}},!0)};t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide");t.slideCount=t.$slides.length;t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll);t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0);t.setProps();t.setupInfinite();t.buildArrows();t.updateArrows();t.initArrowEvents();t.buildDots();t.updateDots();t.initDotEvents();t.options.focusOnSelect===!0&&n(t.options.slide,t.$slideTrack).on("click.slick",t.selectHandler);t.setSlideClasses(0);t.setPosition();null!==t.options.onReInit&&t.options.onReInit.call(this,t)};t.prototype.removeSlide=function(n,t,i){var r=this;return"boolean"==typeof n?(t=n,n=t===!0?0:r.slideCount-1):n=t===!0?--n:n,r.slideCount<1||0>n||n>r.slideCount-1?!1:(r.unload(),i===!0?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(n).remove(),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slidesCache=r.$slides,r.reinit(),void 0)};t.prototype.setCSS=function(n){var r,u,t=this,i={};t.options.rtl===!0&&(n=-n);r="left"==t.positionProp?n+"px":"0px";u="top"==t.positionProp?n+"px":"0px";i[t.positionProp]=n;t.transformsEnabled===!1?t.$slideTrack.css(i):(i={},t.cssTransitions===!1?(i[t.animType]="translate("+r+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.$slideTrack.css(i)))};t.prototype.setDimensions=function(){var t=this,i,r;(t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1)?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?(i=0,t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.children(".slick-slide").each(function(){i+=Math.ceil(n(this).outerWidth(!0))}),t.$slideTrack.width(Math.ceil(i)+1)):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));r=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-r)};t.prototype.setFade=function(){var i,t=this;t.$slides.each(function(r,u){i=-1*t.slideWidth*r;t.options.rtl===!0?n(u).css({position:"relative",right:i,top:0,zIndex:800,opacity:0}):n(u).css({position:"relative",left:i,top:0,zIndex:800,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:900,opacity:1})};t.prototype.setHeight=function(){var n=this,t;1===n.options.slidesToShow&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.css("height",t))};t.prototype.setPosition=function(){var n=this;n.setDimensions();n.setHeight();n.options.fade===!1?n.setCSS(n.getLeft(n.currentSlide)):n.setFade();null!==n.options.onSetPosition&&n.options.onSetPosition.call(this,n)};t.prototype.setProps=function(){var n=this,t=document.body.style;n.positionProp=n.options.vertical===!0?"top":"left";"top"===n.positionProp?n.$slider.addClass("slick-vertical"):n.$slider.removeClass("slick-vertical");(void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.msTransition)&&n.options.useCSS===!0&&(n.cssTransitions=!0);void 0!==t.OTransform&&(n.animType="OTransform",n.transformType="-o-transform",n.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.MozTransform&&(n.animType="MozTransform",n.transformType="-moz-transform",n.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(n.animType=!1));void 0!==t.webkitTransform&&(n.animType="webkitTransform",n.transformType="-webkit-transform",n.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.msTransform&&(n.animType="msTransform",n.transformType="-ms-transform",n.transitionType="msTransition",void 0===t.msTransform&&(n.animType=!1));void 0!==t.transform&&n.animType!==!1&&(n.animType="transform",n.transformType="transform",n.transitionType="transition");n.transformsEnabled=null!==n.animType&&n.animType!==!1};t.prototype.setSlideClasses=function(n){var u,i,r,f,t=this;t.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center");i=t.$slider.find(".slick-slide");t.options.centerMode===!0?(u=Math.floor(t.options.slidesToShow/2),t.options.infinite===!0&&(n>=u&&n<=t.slideCount-1-u?t.$slides.slice(n-u,n+u+1).addClass("slick-active"):(r=t.options.slidesToShow+n,i.slice(r-u+1,r+u+2).addClass("slick-active")),0===n?i.eq(i.length-1-t.options.slidesToShow).addClass("slick-center"):n===t.slideCount-1&&i.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(n).addClass("slick-center")):n>=0&&n<=t.slideCount-t.options.slidesToShow?t.$slides.slice(n,n+t.options.slidesToShow).addClass("slick-active"):i.length<=t.options.slidesToShow?i.addClass("slick-active"):(f=t.slideCount%t.options.slidesToShow,r=t.options.infinite===!0?t.options.slidesToShow+n:n,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-n<t.options.slidesToShow?i.slice(r-(t.options.slidesToShow-f),r+f).addClass("slick-active"):i.slice(r,r+t.options.slidesToShow).addClass("slick-active"));"ondemand"===t.options.lazyLoad&&t.lazyLoad()};t.prototype.setupInfinite=function(){var i,r,u,t=this;if(t.options.fade===!0&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(r=null,t.slideCount>t.options.slidesToShow)){for(u=t.options.centerMode===!0?t.options.slidesToShow+1:t.options.slidesToShow,i=t.slideCount;i>t.slideCount-u;i-=1)r=i-1,n(t.$slides[r]).clone(!0).attr("id","").attr("index",r-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;u>i;i+=1)r=i,n(t.$slides[r]).clone(!0).attr("id","").attr("index",r+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}};t.prototype.selectHandler=function(t){var i=this,r=parseInt(n(t.target).parents(".slick-slide").attr("index"));return r||(r=0),i.slideCount<=i.options.slidesToShow?(i.$slider.find(".slick-slide").removeClass("slick-active"),i.$slides.eq(r).addClass("slick-active"),i.options.centerMode===!0&&(i.$slider.find(".slick-slide").removeClass("slick-center"),i.$slides.eq(r).addClass("slick-center")),i.asNavFor(r),void 0):(i.slideHandler(r),void 0)};t.prototype.slideHandler=function(n,t,i){var u,f,o,e,s=null,r=this;return t=t||!1,r.animating===!0&&r.options.waitForAnimate===!0||r.options.fade===!0&&r.currentSlide===n||r.slideCount<=r.options.slidesToShow?void 0:(t===!1&&r.asNavFor(n),u=n,s=r.getLeft(u),e=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?e:r.swipeLeft,r.options.infinite===!1&&r.options.centerMode===!1&&(0>n||n>r.getDotCount()*r.options.slidesToScroll)?(r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u)),void 0):r.options.infinite===!1&&r.options.centerMode===!0&&(0>n||n>r.slideCount-r.options.slidesToScroll)?(r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u)),void 0):(r.options.autoplay===!0&&clearInterval(r.autoPlayTimer),f=0>u?0!=r.slideCount%r.options.slidesToScroll?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+u:u>=r.slideCount?0!=r.slideCount%r.options.slidesToScroll?0:u-r.slideCount:u,r.animating=!0,null!==r.options.onBeforeChange&&n!==r.currentSlide&&r.options.onBeforeChange.call(this,r,r.currentSlide,f),o=r.currentSlide,r.currentSlide=f,r.setSlideClasses(r.currentSlide),r.updateDots(),r.updateArrows(),r.options.fade===!0?(i!==!0?r.fadeSlide(o,f,function(){r.postSlide(f)}):r.postSlide(f),void 0):(i!==!0?r.animateSlide(s,function(){r.postSlide(f)}):r.postSlide(f),void 0)))};t.prototype.startLoad=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.hide(),n.$nextArrow.hide());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.hide();n.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),n=Math.round(180*u/Math.PI),0>n&&(n=360-Math.abs(n)),45>=n&&n>=0?t.options.rtl===!1?"left":"right":360>=n&&n>=315?t.options.rtl===!1?"left":"right":n>=135&&225>=n?t.options.rtl===!1?"right":"left":"vertical"};t.prototype.swipeEnd=function(){var n=this;if(n.dragging=!1,n.shouldClick=n.touchObject.swipeLength>10?!1:!0,void 0===n.touchObject.curX)return!1;if(n.touchObject.swipeLength>=n.touchObject.minSwipe)switch(n.swipeDirection()){case"left":n.slideHandler(n.currentSlide+n.getSlideCount());n.currentDirection=0;n.touchObject={};break;case"right":n.slideHandler(n.currentSlide-n.getSlideCount());n.currentDirection=1;n.touchObject={}}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})};t.prototype.swipeHandler=function(n){var t=this;if(!(t.options.swipe===!1||"ontouchend"in document&&t.options.swipe===!1||t.options.draggable===!1&&-1!==n.type.indexOf("mouse")))switch(t.touchObject.fingerCount=n.originalEvent&&void 0!==n.originalEvent.touches?n.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}};t.prototype.swipeMove=function(n){var r,f,u,i,t=this;return i=void 0!==n.originalEvent?n.originalEvent.touches:null,!t.dragging||i&&1!==i.length?!1:(r=t.getLeft(t.currentSlide),t.touchObject.curX=void 0!==i?i[0].pageX:n.clientX,t.touchObject.curY=void 0!==i?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),f=t.swipeDirection(),"vertical"!==f?(void 0!==n.originalEvent&&t.touchObject.swipeLength>4&&n.preventDefault(),u=(t.options.rtl===!1?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),t.swipeLeft=t.options.vertical===!1?r+t.touchObject.swipeLength*u:r+t.touchObject.swipeLength*(t.$list.height()/t.listWidth)*u,t.options.fade===!0||t.options.touchMove===!1?!1:t.animating===!0?(t.swipeLeft=null,!1):(t.setCSS(t.swipeLeft),void 0)):void 0)};t.prototype.swipeStart=function(n){var i,t=this;return 1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==n.originalEvent&&void 0!==n.originalEvent.touches&&(i=n.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==i?i.pageX:n.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==i?i.pageY:n.clientY,t.dragging=!0,void 0)};t.prototype.unfilterSlides=function(){var n=this;null!==n.$slidesCache&&(n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.appendTo(n.$slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&"object"!=typeof t.options.prevArrow&&t.$prevArrow.remove();t.$nextArrow&&"object"!=typeof t.options.nextArrow&&t.$nextArrow.remove();t.$slides.removeClass("slick-slide slick-active slick-visible").css("width","")};t.prototype.updateArrows=function(){var t,n=this;t=Math.floor(n.options.slidesToShow/2);n.options.arrows===!0&&n.options.infinite!==!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.removeClass("slick-disabled"),n.$nextArrow.removeClass("slick-disabled"),0===n.currentSlide?(n.$prevArrow.addClass("slick-disabled"),n.$nextArrow.removeClass("slick-disabled")):n.currentSlide>=n.slideCount-n.options.slidesToShow&&n.options.centerMode===!1?(n.$nextArrow.addClass("slick-disabled"),n.$prevArrow.removeClass("slick-disabled")):n.currentSlide>n.slideCount-n.options.slidesToShow+t&&n.options.centerMode===!0&&(n.$nextArrow.addClass("slick-disabled"),n.$prevArrow.removeClass("slick-disabled")))};t.prototype.updateDots=function(){var n=this;null!==n.$dots&&(n.$dots.find("li").removeClass("slick-active"),n.$dots.find("li").eq(Math.floor(n.currentSlide/n.options.slidesToScroll)).addClass("slick-active"))};n.fn.slick=function(n){var i=this;return i.each(function(i,r){r.slick=new t(r,n)})};n.fn.slickAdd=function(n,t,i){var r=this;return r.each(function(r,u){u.slick.addSlide(n,t,i)})};n.fn.slickCurrentSlide=function(){var n=this;return n.get(0).slick.getCurrent()};n.fn.slickFilter=function(n){var t=this;return t.each(function(t,i){i.slick.filterSlides(n)})};n.fn.slickGoTo=function(n,t){var i=this;return i.each(function(i,r){r.slick.changeSlide({data:{message:"index",index:parseInt(n)}},t)})};n.fn.slickNext=function(){var n=this;return n.each(function(n,t){t.slick.changeSlide({data:{message:"next"}})})};n.fn.slickPause=function(){var n=this;return n.each(function(n,t){t.slick.autoPlayClear();t.slick.paused=!0})};n.fn.slickPlay=function(){var n=this;return n.each(function(n,t){t.slick.paused=!1;t.slick.autoPlay()})};n.fn.slickPrev=function(){var n=this;return n.each(function(n,t){t.slick.changeSlide({data:{message:"previous"}})})};n.fn.slickRemove=function(n,t){var i=this;return i.each(function(i,r){r.slick.removeSlide(n,t)})};n.fn.slickRemoveAll=function(){var n=this;return n.each(function(n,t){t.slick.removeSlide(null,null,!0)})};n.fn.slickGetOption=function(n){var t=this;return t.get(0).slick.options[n]};n.fn.slickSetOption=function(n,t,i){var r=this;return r.each(function(r,u){u.slick.options[n]=t;i===!0&&(u.slick.unload(),u.slick.reinit())})};n.fn.slickUnfilter=function(){var n=this;return n.each(function(n,t){t.slick.unfilterSlides()})};n.fn.unslick=function(){var n=this;return n.each(function(n,t){t.slick&&t.slick.destroy()})};n.fn.getSlick=function(){var n=null,t=this;return t.each(function(t,i){n=i.slick}),n}});!function(n){"use strict";var t=window.angulartics||(window.angulartics={});t.waitForVendorCount=0;t.waitForVendorApi=function(n,i,r,u,f){f||t.waitForVendorCount++;u||(u=r,r=void 0);!Object.prototype.hasOwnProperty.call(window,n)||void 0!==r&&void 0===window[n][r]?setTimeout(function(){t.waitForVendorApi(n,i,r,u,!0)},i):(t.waitForVendorCount--,u(window[n]))};n.module("angulartics",[]).provider("$analytics",function(){var i={pageTracking:{autoTrackFirstPage:!0,autoTrackVirtualPages:!0,trackRelativePath:!1,autoBasePath:!1,basePath:""},eventTracking:{},bufferFlushDelay:1e3},r={},u={},s=function(n){return function(){t.waitForVendorCount&&(r[n]||(r[n]=[]),r[n].push(arguments))}},e=function(t,i){return u[t]||(u[t]=[]),u[t].push(i),function(){var i=arguments;n.forEach(u[t],function(n){n.apply(this,i)},this)}},f={settings:i},h=function(n,t){t?setTimeout(n,t):n()},o={$get:function(){return f},api:f,settings:i,virtualPageviews:function(n){this.settings.pageTracking.autoTrackVirtualPages=n},firstPageview:function(n){this.settings.pageTracking.autoTrackFirstPage=n},withBase:function(t){this.settings.pageTracking.basePath=t?n.element("base").attr("href").slice(0,-1):""},withAutoBase:function(n){this.settings.pageTracking.autoBasePath=n}},c=function(t,u){f[t]=e(t,u);var o=i[t],s=o?o.bufferFlushDelay:null,c=null!==s?s:i.bufferFlushDelay;n.forEach(r[t],function(n,t){h(function(){u.apply(this,n)},t*c)})},l=function(n){return n.replace(/^./,function(n){return n.toUpperCase()})},a=function(n){var t="register"+l(n);o[t]=function(t){c(n,t)};f[n]=e(n,s(n))};return n.forEach(["pageTrack","eventTrack","setAlias","setUsername","setUserProperties","setUserPropertiesOnce","setSuperProperties","setSuperPropertiesOnce"],a),o}).run(["$rootScope","$location","$window","$analytics","$injector",function(n,t,i,r,u){var f,e,h,o,c,s;if(r.settings.pageTracking.autoTrackFirstPage){if(f=!0,u.has("$route")){e=u.get("$route");for(h in e.routes){f=!1;break}}else if(u.has("$state")){o=u.get("$state");for(c in o.get()){f=!1;break}}f&&((r.settings.pageTracking.autoBasePath&&(r.settings.pageTracking.basePath=i.location.pathname),r.settings.trackRelativePath)?(s=r.settings.pageTracking.basePath+t.url(),r.pageTrack(s)):r.pageTrack(t.absUrl()))}r.settings.pageTracking.autoTrackVirtualPages&&(r.settings.pageTracking.autoBasePath&&(r.settings.pageTracking.basePath=i.location.pathname+"#"),u.has("$route")&&n.$on("$routeChangeSuccess",function(n,i){if(!i||!(i.$$route||i).redirectTo){var u=r.settings.pageTracking.basePath+t.url();r.pageTrack(u)}}),u.has("$state")&&n.$on("$stateChangeSuccess",function(){var n=r.settings.pageTracking.basePath+t.url();r.pageTrack(n)}))}]).directive("analyticsOn",["$analytics",function(t){function i(n){return["a:","button:","button:button","button:submit","input:button","input:submit"].indexOf(n.tagName.toLowerCase()+":"+(n.type||""))>=0}function u(n){return i(n)?"click":"click"}function f(n){return i(n)?n.innerText||n.value:n.id||n.name||n.tagName}function e(n){return"analytics"===n.substr(0,9)&&-1===["On","Event","If","Properties","EventType"].indexOf(n.substr(9))}function r(n){var t=n.slice(9);return"undefined"!=typeof t&&null!==t&&t.length>0?t.substring(0,1).toLowerCase()+t.substring(1):t}return{restrict:"A",scope:!0,link:function(i,o,s){var h=s.analyticsOn||u(o[0]);i.$analytics={};n.forEach(s.$attr,function(n,t){e(t)&&(i.$analytics[r(t)]=s[t],s.$observe(t,function(n){i.$analytics[r(t)]=n}))});n.element(o[0]).bind(h,function(r){var u=s.analyticsEvent||f(o[0]);i.$analytics.eventType=r.type;(!s.analyticsIf||i.$eval(s.analyticsIf))&&(s.analyticsProperties&&n.extend(i.$analytics,i.$eval(s.analyticsProperties)),t.eventTrack(u,i.$analytics))})}}}])}(angular);!function(n){"use strict";n.module("angulartics.google.analytics",["angulartics"]).config(["$analyticsProvider",function(n){n.settings.trackRelativePath=!0;n.registerPageTrack(function(n){window._gaq&&_gaq.push(["_trackPageview",n]);window.ga&&ga("send","pageview",n)});n.registerEventTrack(function(n,t){var u,r,i;if(t&&t.category)if(t.value&&(u=parseInt(t.value,10),t.value=isNaN(u)?0:u),window._gaq)_gaq.push(["_trackEvent",t.category,n,t.label,t.value,t.noninteraction]);else if(window.ga){for(r={eventCategory:t.category||null,eventAction:n||null,eventLabel:t.label||null,eventValue:t.value||null,nonInteraction:t.noninteraction||null},i=1;20>=i;i++)t["dimension"+i.toString()]&&(r["dimension"+i.toString()]=t["dimension"+i.toString()]),t["metric"+i.toString()]&&(r["metric"+i.toString()]=t["metric"+i.toString()]);ga("send","event",r)}})}])}(angular);!function(n){"use strict";n.module("angulartics.google.tagmanager",["angulartics"]).config(["$analyticsProvider",function(n){n.registerPageTrack(function(n){var t=window.dataLayer=window.dataLayer||[];t.push({event:"content-view","content-name":n})});n.registerEventTrack(function(n,t){var i=window.dataLayer=window.dataLayer||[];i.push({event:"interaction",target:t.category,action:n,"target-properties":t.label,value:t.value,"interaction-type":t.noninteraction})})}])}(angular);angular.module("ui.alias",[]).config(["$compileProvider","uiAliasConfig",function(n,t){t=t||{};angular.forEach(t,function(t,i){angular.isString(t)&&(t={replace:!0,template:t});n.directive(i,function(){return t})})}]);angular.module("ui.event",[]).directive("uiEvent",["$parse",function(n){return function(t,i,r){var u=t.$eval(r.uiEvent);angular.forEach(u,function(r,u){var f=n(r);i.bind(u,function(n){var i=Array.prototype.slice.call(arguments);i=i.splice(1);f(t,{$event:n,$params:i});t.$$phase||t.$apply()})})}}]);angular.module("ui.format",[]).filter("format",function(){return function(n,t){var i=n,r,u;return angular.isString(i)&&void 0!==t&&((angular.isArray(t)||angular.isObject(t)||(t=[t]),angular.isArray(t))?(r=t.length,u=function(n,i){return i=parseInt(i,10),i>=0&&r>i?t[i]:n},i=i.replace(/\$([0-9]+)/g,u)):angular.forEach(t,function(n,t){i=i.split(":"+t).join(n)})),i}});angular.module("ui.highlight",[]).filter("highlight",function(){return function(n,t,i){return t||angular.isNumber(t)?(n=n.toString(),t=t.toString(),i?n.split(t).join('<span class="ui-match">'+t+"<\/span>"):n.replace(new RegExp(t,"gi"),'<span class="ui-match">$&<\/span>')):n}});angular.module("ui.include",[]).directive("uiInclude",["$http","$templateCache","$anchorScroll","$compile",function(n,t,i,r){return{restrict:"ECA",terminal:!0,compile:function(u,f){var o=f.uiInclude||f.src,s=f.fragment||"",h=f.onload||"",e=f.autoscroll;return function(u,f){function a(){var a=++l,y=u.$eval(o),p=u.$eval(s);y?n.get(y,{cache:t}).success(function(n){if(a===l){c&&c.$destroy();c=u.$new();var t;t=p?angular.element("<div/>").html(n).find(p):angular.element("<div/>").html(n).contents();f.html(t);r(t)(c);!angular.isDefined(e)||e&&!u.$eval(e)||i();c.$emit("$includeContentLoaded");u.$eval(h)}}).error(function(){a===l&&v()}):v()}var c,l=0,v=function(){c&&(c.$destroy(),c=null);f.html("")};u.$watch(s,a);u.$watch(o,a)}}}}]);angular.module("ui.indeterminate",[]).directive("uiIndeterminate",[function(){return{compile:function(n,t){return t.type&&"checkbox"===t.type.toLowerCase()?function(n,t,i){n.$watch(i.uiIndeterminate,function(n){t[0].indeterminate=!!n})}:angular.noop}}}]);angular.module("ui.inflector",[]).filter("inflector",function(){function n(n){return n.replace(/^([a-z])|\s+([a-z])/g,function(n){return n.toUpperCase()})}function t(n,t){return n.replace(/[A-Z]/g,function(n){return t+n})}var i={humanize:function(i){return n(t(i," ").split("_").join(" "))},underscore:function(n){return n.substr(0,1).toLowerCase()+t(n.substr(1),"_").toLowerCase().split(" ").join("_")},variable:function(t){return t.substr(0,1).toLowerCase()+n(t.split("_").join(" ")).substr(1).split(" ").join("")}};return function(n,t){return t!==!1&&angular.isString(n)?(t=t||"humanize",i[t](n)):n}});angular.module("ui.jq",[]).value("uiJqConfig",{}).directive("uiJq",["uiJqConfig","$timeout",function(n,t){return{restrict:"A",compile:function(i,r){if(!angular.isFunction(i[r.uiJq]))throw new Error('ui-jq: The "'+r.uiJq+'" function does not exist');var u=n&&n[r.uiJq];return function(n,i,r){function e(){t(function(){i[r.uiJq].apply(i,f)},0,!1)}var f=[];r.uiOptions?(f=n.$eval("["+r.uiOptions+"]"),angular.isObject(u)&&angular.isObject(f[0])&&(f[0]=angular.extend({},u,f[0]))):u&&(f=[u]);r.ngModel&&i.is("select,input,textarea")&&i.bind("change",function(){i.trigger("input")});r.uiRefresh&&n.$watch(r.uiRefresh,function(){e()});e()}}}}]);angular.module("ui.keypress",[]).factory("keypressHelper",["$parse",function(n){var t={8:"backspace",9:"tab",13:"enter",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"delete"},i=function(n){return n.charAt(0).toUpperCase()+n.slice(1)};return function(r,u,f,e){var o,s=[];o=u.$eval(e["ui"+i(r)]);angular.forEach(o,function(t,i){var r,u;u=n(t);angular.forEach(i.split(" "),function(n){r={expression:u,keys:{}};angular.forEach(n.split("-"),function(n){r.keys[n]=!0});s.push(r)})});f.bind(r,function(n){var e=!(!n.metaKey||n.ctrlKey),o=!!n.altKey,h=!!n.ctrlKey,f=!!n.shiftKey,i=n.keyCode;"keypress"===r&&!f&&i>=97&&122>=i&&(i-=32);angular.forEach(s,function(r){var s=r.keys[t[i]]||r.keys[i.toString()],c=!!r.keys.meta,l=!!r.keys.alt,a=!!r.keys.ctrl,v=!!r.keys.shift;s&&c===e&&l===o&&a===h&&v===f&&u.$apply(function(){r.expression(u,{$event:n})})})})}}]);angular.module("ui.keypress").directive("uiKeydown",["keypressHelper",function(n){return{link:function(t,i,r){n("keydown",t,i,r)}}}]);angular.module("ui.keypress").directive("uiKeypress",["keypressHelper",function(n){return{link:function(t,i,r){n("keypress",t,i,r)}}}]);angular.module("ui.keypress").directive("uiKeyup",["keypressHelper",function(n){return{link:function(t,i,r){n("keyup",t,i,r)}}}]);angular.module("ui.mask",[]).value("uiMaskConfig",{maskDefinitions:{9:/\d/,A:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/}}).directive("uiMask",["uiMaskConfig",function(n){return{priority:100,require:"ngModel",restrict:"A",compile:function(){var t=n;return function(n,i,r,u){function lt(n){return angular.isDefined(n)?(gt(n),l?(pt(),wt(),!0):et()):et()}function at(n){angular.isDefined(n)&&(s=n,l&&c())}function vt(n){return l?(f=a(n||""),o=b(f),u.$setValidity("mask",o),o&&f.length?v(f):void 0):n}function yt(n){return l?(f=a(n||""),o=b(f),u.$viewValue=f.length?v(f):"",u.$setValidity("mask",o),""===f&&void 0!==u.$error.required&&u.$setValidity("required",!1),o?f:void 0):n}function et(){return l=!1,bt(),angular.isDefined(ht)?i.attr("placeholder",ht):i.removeAttr("placeholder"),angular.isDefined(ct)?i.attr("maxlength",ct):i.removeAttr("maxlength"),i.val(u.$modelValue),u.$viewValue=u.$modelValue,!1}function pt(){f=ut=a(u.$modelValue||"");it=rt=v(f);o=b(f);var n=o&&f.length?it:"";r.maxlength&&i.attr("maxlength",2*e[e.length-1]);i.attr("placeholder",s);i.val(n);u.$viewValue=n}function wt(){w||(i.bind("blur",ot),i.bind("mousedown mouseup",y),i.bind("input keyup click focus",c),w=!0)}function bt(){w&&(i.unbind("blur",ot),i.unbind("mousedown",y),i.unbind("mouseup",y),i.unbind("input",c),i.unbind("keyup",c),i.unbind("click",c),i.unbind("focus",c),w=!1)}function b(n){if(1==n.length&&n>1&&i.val(""),n.length>=2){var t=n[0];t+=n[1];t>12&&i.val("")}return n.length?n.length>=tt:!0}function a(n){var i="",t=nt.slice();return n=n.toString(),angular.forEach(st,function(t){n=n.replace(t,"")}),angular.forEach(n.split(""),function(n){t.length&&t[0].test(n)&&(i+=n,t.shift())}),i}function v(n){var t="",i=e.slice();return angular.forEach(s.split(""),function(r,u){n.length&&u===i[0]?(t+=n.charAt(0)||"_",n=n.substr(1),i.shift()):t+=r}),t}function kt(n){var t=r.placeholder;return"undefined"!=typeof t&&t[n]?t[n]:"_"}function dt(){return s.replace(/[_]+/g,"_").replace(/([^_]+)([a-zA-Z0-9])([^_])/g,"$1$2_$3").split("_")}function gt(n){var t=0,i,r;(e=[],nt=[],s="","string"==typeof n)&&(tt=0,i=!1,r=n.split(""),angular.forEach(r,function(n,r){h.maskDefinitions[n]?(e.push(t),s+=kt(r),nt.push(h.maskDefinitions[n]),t++,i||tt++):"?"===n?i=!0:(s+=n,t++)}));e.push(e.slice().pop()+1);st=dt();l=e.length>1?!0:!1}function ot(){ft=0;p=0;o&&0!==f.length||(it="",i.val(""),n.$apply(function(){u.$setViewValue("")}))}function y(n){"mousedown"===n.type?i.bind("mouseout",k):i.unbind("mouseout",k)}function k(){p=g(this);i.unbind("mouseout",k)}function c(t){var f,s,tt;if(t=t||{},f=t.which,s=t.type,16!==f&&91!==f){var b,c=i.val(),w=rt,o=a(c),lt=ut,it=!1,r=ni(this)||0,et=ft||0,ot=r-et,h=e[0],l=e[o.length]||e.slice().shift(),y=p||0,at=g(this)>0,st=y>0,ht=c.length>w.length||y&&c.length>w.length-y,k=c.length<w.length||y&&c.length===w.length-y,vt=f>=37&&40>=f&&t.shiftKey,yt=37===f,ct=8===f||"keyup"!==s&&k&&-1===ot,pt=46===f||"keyup"!==s&&k&&0===ot&&!st,nt=(yt||ct||"click"===s)&&r>h;if(p=g(this),!vt&&(!at||"click"!==s&&"keyup"!==s)){if("input"===s&&k&&!st&&o===lt){for(;ct&&r>h&&!d(r);)r--;for(;pt&&l>r&&-1===e.indexOf(r);)r++;tt=e.indexOf(r);o=o.substring(0,tt)+o.substring(tt+1);it=!0}for(b=v(o),rt=b,ut=o,i.val(b),it&&n.$apply(function(){u.$setViewValue(o)}),ht&&h>=r&&(r=h+1),nt&&r--,r=r>l?l:h>r?h:r;!d(r)&&r>h&&l>r;)r+=nt?-1:1;(nt&&l>r||ht&&!d(et))&&r++;ft=r;ti(this,r)}}}function d(n){return e.indexOf(n)>-1}function ni(n){if(!n)return 0;if(void 0!==n.selectionStart)return n.selectionStart;if(document.selection){n.focus();var t=document.selection.createRange();return t.moveStart("character",-n.value.length),t.text.length}return 0}function ti(n,t){if(!n)return 0;if(0!==n.offsetWidth&&0!==n.offsetHeight)if(n.setSelectionRange)n.focus(),n.setSelectionRange(t,t);else if(n.createTextRange){var i=n.createTextRange();i.collapse(!0);i.moveEnd("character",t);i.moveStart("character",t);i.select()}}function g(n){return n?void 0!==n.selectionStart?n.selectionEnd-n.selectionStart:document.selection?document.selection.createRange().text.length:0:0}var e,nt,s,st,tt,f,it,o,rt,ut,ft,p,l=!1,w=!1,ht=r.placeholder,ct=r.maxlength,h={};r.uiOptions?(h=n.$eval("["+r.uiOptions+"]"),angular.isObject(h[0])&&(h=function(n,t){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]?angular.extend(t[i],n[i]):t[i]=angular.copy(n[i]));return t}(t,h[0]))):h=t;r.$observe("uiMask",lt);r.$observe("placeholder",at);u.$formatters.push(vt);u.$parsers.push(yt);i.bind("mousedown mouseup",y);Array.prototype.indexOf||(Array.prototype.indexOf=function(n){var u,r,t,i;if(null===this)throw new TypeError;if((u=Object(this),r=u.length>>>0,0===r)||(t=0,arguments.length>1&&(t=Number(arguments[1]),t!==t?t=0:0!==t&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t)))),t>=r))return-1;for(i=t>=0?t:Math.max(r-Math.abs(t),0);r>i;i++)if(i in u&&u[i]===n)return i;return-1})}}}}]);angular.module("ui.reset",[]).value("uiResetConfig",null).directive("uiReset",["uiResetConfig",function(n){var t=null;return void 0!==n&&(t=n),{require:"ngModel",link:function(n,i,r,u){var f;f=angular.element('<a class="ui-reset" />');i.wrap('<span class="ui-resetwrap" />').after(f);f.bind("click",function(i){i.preventDefault();n.$apply(function(){r.uiReset?u.$setViewValue(n.$eval(r.uiReset)):u.$setViewValue(t);u.$render()})})}}}]);angular.module("ui.route",[]).directive("uiRoute",["$location","$parse",function(n,t){return{restrict:"AC",scope:!0,compile:function(i,r){var u;if(r.uiRoute)u="uiRoute";else if(r.ngHref)u="ngHref";else{if(!r.href)throw new Error("uiRoute missing a route or href property on "+i[0]);u="href"}return function(i,r,f){function o(t){var r=t.indexOf("#");r>-1&&(t=t.substr(r+1));(e=function(){h(i,n.path().indexOf(t)>-1)})()}function s(t){var r=t.indexOf("#");r>-1&&(t=t.substr(r+1));(e=function(){var r=new RegExp("^"+t+"$",["i"]);h(i,r.test(n.path()))})()}var h=t(f.ngModel||f.routeModel||"$uiRoute").assign,e=angular.noop;switch(u){case"uiRoute":f.uiRoute?s(f.uiRoute):f.$observe("uiRoute",s);break;case"ngHref":f.ngHref?o(f.ngHref):f.$observe("ngHref",o);break;case"href":o(f.href)}i.$on("$routeChangeSuccess",function(){e()});i.$on("$stateChangeSuccess",function(){e()})}}}}]);angular.module("ui.scroll.jqlite",["ui.scroll"]).service("jqLiteExtras",["$log","$window",function(n,t){return{registerFor:function(n){var i,u,s,r,f,e,o;return u=angular.element.prototype.css,n.prototype.css=function(n,t){var i,r;return r=this,i=r[0],i&&3!==i.nodeType&&8!==i.nodeType&&i.style?u.call(r,n,t):void 0},e=function(n){return n&&n.document&&n.location&&n.alert&&n.setInterval},o=function(n,t,i){var r,u,s,o,f;return r=n[0],f={top:["scrollTop","pageYOffset","scrollLeft"],left:["scrollLeft","pageXOffset","scrollTop"]}[t],u=f[0],o=f[1],s=f[2],e(r)?angular.isDefined(i)?r.scrollTo(n[s].call(n),i):o in r?r[o]:r.document.documentElement[u]:angular.isDefined(i)?r[u]=i:r[u]},t.getComputedStyle?(r=function(n){return t.getComputedStyle(n,null)},i=function(n,t){return parseFloat(t)}):(r=function(n){return n.currentStyle},i=function(n,t){var f,e,o,s,i,u,r;return f=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=new RegExp("^("+f+")(?!px)[a-z%]+$","i"),s.test(t)?(r=n.style,e=r.left,i=n.runtimeStyle,u=i&&i.left,i&&(i.left=r.left),r.left=t,o=r.pixelLeft,r.left=e,u&&(i.left=u),o):parseFloat(t)}),s=function(n,t){var f,c,l,a,v,u,o,s,y,p,w,b,h;return e(n)?(f=document.documentElement[{height:"clientHeight",width:"clientWidth"}[t]],{base:f,padding:0,border:0,margin:0}):(h={width:[n.offsetWidth,"Left","Right"],height:[n.offsetHeight,"Top","Bottom"]}[t],f=h[0],o=h[1],s=h[2],u=r(n),w=i(n,u["padding"+o])||0,b=i(n,u["padding"+s])||0,c=i(n,u["border"+o+"Width"])||0,l=i(n,u["border"+s+"Width"])||0,a=u["margin"+o],v=u["margin"+s],y=i(n,a)||0,p=i(n,v)||0,{base:f,padding:w+b,border:c+l,margin:y+p})},f=function(n,t,i){var e,u,f;return u=s(n,t),u.base>0?{base:u.base-u.padding-u.border,outer:u.base,outerfull:u.base+u.margin}[i]:(e=r(n),f=e[t],(0>f||null===f)&&(f=n.style[t]||0),f=parseFloat(f)||0,{base:f-u.padding-u.border,outer:f,outerfull:f+u.padding+u.border+u.margin}[i])},angular.forEach({before:function(n){var t,u,f,e,o,i,r;if(o=this,u=o[0],e=o.parent(),t=e.contents(),t[0]===u)return e.prepend(n);for(f=i=1,r=t.length-1;r>=1?r>=i:i>=r;f=r>=1?++i:--i)if(t[f]===u)return void angular.element(t[f-1]).after(n);throw new Error("invalid DOM structure "+u.outerHTML);},height:function(n){var t;return t=this,angular.isDefined(n)?(angular.isNumber(n)&&(n+="px"),u.call(t,"height",n)):f(this[0],"height","base")},outerHeight:function(n){return f(this[0],"height",n?"outerfull":"outer")},offset:function(n){var r,u,t,i,f,e;return f=this,arguments.length?void 0===n?f:n:(r={top:0,left:0},i=f[0],(u=i&&i.ownerDocument)?(t=u.documentElement,i.getBoundingClientRect&&(r=i.getBoundingClientRect()),e=u.defaultView||u.parentWindow,{top:r.top+(e.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(e.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):void 0)},scrollTop:function(n){return o(this,"top",n)},scrollLeft:function(n){return o(this,"left",n)}},function(t,i){if(!n.prototype[i])return n.prototype[i]=t})}}}]).run(["$log","$window","jqLiteExtras",function(n,t,i){if(!t.jQuery)return i.registerFor(angular.element)}]);angular.module("ui.scroll",[]).directive("ngScrollViewport",["$log",function(){return{controller:["$scope","$element",function(n,t){return t}]}}]).directive("ngScroll",["$log","$injector","$rootScope","$timeout",function(n,t,i,r){return{require:["?^ngScrollViewport"],transclude:"element",priority:1e3,terminal:!0,compile:function(u,f,e){return function(f,o,s,h){var l,k,dt,tt,et,c,it,w,gt,ni,p,ot,ct,rt,ut,lt,ft,a,b,at,d,vt,yt,st,v,g,ti,nt,pt,wt,ii,bt,kt,ri,ht,y;if(st=s.ngScroll.match(/^\s*(\w+)\s+in\s+(\w+)\s*$/),!st)throw new Error('Expected ngScroll in form of "item_ in _datasource_" but got "'+s.ngScroll+'"');if(vt=st[1],ot=st[2],at=function(n){return angular.isObject(n)&&n.get&&angular.isFunction(n.get)},p=f[ot],!at(p)&&(p=t.get(ot),!at(p)))throw new Error(ot+" is not a valid datasource");return w=Math.max(3,+s.bufferSize||10),it=function(){return y.height()*Math.max(.1,+s.padding||.1)},ii=function(n){return n[0].scrollHeight||n[0].document.documentElement.scrollHeight},l=null,e(ri=f.$new(),function(n){var i,e,o,t,r,f;if(t=n[0].localName,"dl"===t)throw new Error("ng-scroll directive does not support <"+n[0].localName+"> as a repeating tag: "+n[0].outerHTML);return"li"!==t&&"tr"!==t&&(t="div"),f=h[0]||angular.element(window),f.css({"overflow-y":"auto",display:"block"}),o=function(n){var i,t,r;switch(n){case"tr":return r=angular.element("<table><tr><td><div><\/div><\/td><\/tr><\/table>"),i=r.find("div"),t=r.find("tr"),t.paddingHeight=function(){return i.height.apply(i,arguments)},t;default:return t=angular.element("<"+n+"><\/"+n+">"),t.paddingHeight=t.height,t}},e=function(n,t,i){return t[{top:"before",bottom:"after"}[i]](n),{paddingHeight:function(){return n.paddingHeight.apply(n,arguments)},insert:function(t){return n[{top:"after",bottom:"before"}[i]](t)}}},r=e(o(t),u,"top"),i=e(o(t),u,"bottom"),ri.$destroy(),l={viewport:f,topPadding:r.paddingHeight,bottomPadding:i.paddingHeight,append:i.insert,prepend:r.insert,bottomDataPos:function(){return ii(f)-i.paddingHeight()},topDataPos:function(){return r.paddingHeight()}}}),y=l.viewport,a=1,v=1,c=[],g=[],rt=!1,tt=!1,yt=p.loading||function(){},d=!1,nt=function(n,t){for(var i,r=i=n;t>=n?t>i:i>t;r=t>=n?++i:--i)c[r].scope.$destroy(),c[r].element.remove();return c.splice(n,t-n)},ti=function(){return a=1,v=1,nt(0,c.length),l.topPadding(0),l.bottomPadding(0),g=[],rt=!1,tt=!1,k(!1)},et=function(){return y.scrollTop()+y.height()},ht=function(){return y.scrollTop()},bt=function(){return!rt&&l.bottomDataPos()<et()+it()},gt=function(){var r,u,f,t,i,e;for(r=0,t=0,u=i=e=c.length-1;(0>=e?0>=i:i>=0)&&(f=c[u].element.outerHeight(!0),l.bottomDataPos()-r-f>et()+it());u=0>=e?++i:--i)r+=f,t++,rt=!1;if(t>0)return(l.bottomPadding(l.bottomPadding()+r),nt(c.length-t,c.length),v-=t,n.log("clipped off bottom "+t+" bottom padding "+l.bottomPadding()))},kt=function(){return!tt&&l.topDataPos()>ht()-it()},ni=function(){var f,u,t,i,r,e;for(i=0,t=0,r=0,e=c.length;e>r&&(f=c[r],u=f.element.outerHeight(!0),l.topDataPos()+i+u<ht()-it());r++)i+=u,t++,tt=!1;if(t>0)return(l.topPadding(l.topPadding()+i),nt(0,t),a+=t,n.log("clipped off top "+t+" top padding "+l.topPadding()))},ct=function(n,t){return d||(d=!0,yt(!0)),1===g.push(n)?lt(t):void 0},b=function(n,t){var i,u,r;return i=f.$new(),i[vt]=t,u=n>a,i.$index=n,u&&i.$index--,r={scope:i},e(i,function(t){return r.element=t,u?n===v?(l.append(t),c.push(r)):(c[n-a].element.after(t),c.splice(n-a+1,0,r)):(l.prepend(t),c.unshift(r))}),{appended:u,wrapper:r}},dt=function(n,t){var i;return n?l.bottomPadding(Math.max(0,l.bottomPadding()-t.element.outerHeight(!0))):(i=l.topPadding()-t.element.outerHeight(!0),i>=0?l.topPadding(i):y.scrollTop(y.scrollTop()+t.element.outerHeight(!0)))},k=function(t,i,u){var f;return f=function(){return n.log("top {actual="+l.topDataPos()+" visible from="+ht()+" bottom {visible through="+et()+" actual="+l.bottomDataPos()+"}"),bt()?ct(!0,t):kt()&&ct(!1,t),u?u():void 0},i?r(function(){for(var t,n=0,r=i.length;r>n;n++)t=i[n],dt(t.appended,t.wrapper);return f()}):f()},ft=function(n,t){return k(n,t,function(){return g.shift(),0===g.length?(d=!1,yt(!1)):lt(n)})},lt=function(t){var i;return i=g[0],i?c.length&&!bt()?ft(t):p.get(v,w,function(i){var f,u,r,e;if(u=[],0===i.length)rt=!0,l.bottomPadding(0),n.log("appended: requested "+w+" records starting from "+v+" recieved: eof");else{for(ni(),r=0,e=i.length;e>r;r++)f=i[r],u.push(b(++v,f));n.log("appended: requested "+w+" received "+i.length+" buffer size "+c.length+" first "+a+" next "+v)}return ft(t,u)}):c.length&&!kt()?ft(t):p.get(a-w,w,function(i){var u,f,r,e;if(f=[],0===i.length)tt=!0,l.topPadding(0),n.log("prepended: requested "+w+" records starting from "+(a-w)+" recieved: bof");else{for(gt(),u=r=e=i.length-1;0>=e?0>=r:r>=0;u=0>=e?++r:--r)f.unshift(b(--a,i[u]));n.log("prepended: requested "+w+" received "+i.length+" buffer size "+c.length+" first "+a+" next "+v)}return ft(t,f)})},pt=function(){if(!i.$$phase&&!d)return(k(!1),f.$apply())},y.bind("resize",pt),wt=function(){if(!i.$$phase&&!d)return(k(!0),f.$apply())},y.bind("scroll",wt),f.$watch(p.revision,function(){return ti()}),ut=p.scope?p.scope.$new():f.$new(),f.$on("$destroy",function(){return ut.$destroy(),y.unbind("resize",pt),y.unbind("scroll",wt)}),ut.$on("update.items",function(n,t,i){var u,f,r,e,o;if(angular.isFunction(t))for(f=function(n){return t(n.scope)},r=0,e=c.length;e>r;r++)u=c[r],f(u);else 0<=(o=t-a-1)&&o<c.length&&(c[t-a-1].scope[vt]=i);return null}),ut.$on("delete.items",function(n,t){var i,u,r,s,h,f,e,o,l,y,p,w;if(angular.isFunction(t)){for(r=[],f=0,l=c.length;l>f;f++)u=c[f],r.unshift(u);for(h=function(n){if(t(n.scope))return(nt(r.length-1-i,r.length-i),v--)},i=e=0,y=r.length;y>e;i=++e)s=r[i],h(s)}else 0<=(w=t-a-1)&&w<c.length&&(nt(t-a-1,t-a),v--);for(i=o=0,p=c.length;p>o;i=++o)u=c[i],u.scope.$index=a+i;return k(!1)}),ut.$on("insert.item",function(n,t,i){var r,u,f,h,l,e,o,s,y,p,w,d;if(u=[],angular.isFunction(t)){for(f=[],e=0,y=c.length;y>e;e++)i=c[e],f.unshift(i);for(l=function(n){var e,f,o,h,s;if(f=t(n.scope)){if(b=function(n,t){return b(n,t),v++},angular.isArray(f)){for(s=[],e=o=0,h=f.length;h>o;e=++o)i=f[e],s.push(u.push(b(r+e,i)));return s}return u.push(b(r,f))}},r=o=0,p=f.length;p>o;r=++o)h=f[r],l(h)}else 0<=(d=t-a-1)&&d<c.length&&(u.push(b(t,i)),v++);for(r=s=0,w=c.length;w>s;r=++s)i=c[r],i.scope.$index=a+r;return k(!1,u)})}}}}]);angular.module("ui.scrollfix",[]).directive("uiScrollfix",["$window",function(n){return{require:"^?uiScrollfixTarget",link:function(t,i,r,u){function e(){var t,u;angular.isDefined(n.pageYOffset)?t=n.pageYOffset:(u=document.compatMode&&"BackCompat"!==document.compatMode?document.documentElement:document.body,t=u.scrollTop);!i.hasClass("ui-scrollfix")&&t>r.uiScrollfix?i.addClass("ui-scrollfix"):i.hasClass("ui-scrollfix")&&t<r.uiScrollfix&&i.removeClass("ui-scrollfix")}var f=i[0].offsetTop,o=u&&u.$element||angular.element(n);r.uiScrollfix?"string"==typeof r.uiScrollfix&&("-"===r.uiScrollfix.charAt(0)?r.uiScrollfix=f-parseFloat(r.uiScrollfix.substr(1)):"+"===r.uiScrollfix.charAt(0)&&(r.uiScrollfix=f+parseFloat(r.uiScrollfix.substr(1)))):r.uiScrollfix=f;o.on("scroll",e);t.$on("$destroy",function(){o.off("scroll",e)})}}}]).directive("uiScrollfixTarget",[function(){return{controller:["$element",function(n){this.$element=n}]}}]);angular.module("ui.showhide",[]).directive("uiShow",[function(){return function(n,t,i){n.$watch(i.uiShow,function(n){n?t.addClass("ui-show"):t.removeClass("ui-show")})}}]).directive("uiHide",[function(){return function(n,t,i){n.$watch(i.uiHide,function(n){n?t.addClass("ui-hide"):t.removeClass("ui-hide")})}}]).directive("uiToggle",[function(){return function(n,t,i){n.$watch(i.uiToggle,function(n){n?t.removeClass("ui-hide").addClass("ui-show"):t.removeClass("ui-show").addClass("ui-hide")})}}]);angular.module("ui.unique",[]).filter("unique",["$parse",function(n){return function(t,i){if(i===!1)return t;if((i||angular.isUndefined(i))&&angular.isArray(t)){var r=[],f=angular.isString(i)?n(i):function(n){return n},u=function(n){return angular.isObject(n)?f(n):n};angular.forEach(t,function(n){for(var i=!1,t=0;t<r.length;t++)if(angular.equals(u(r[t]),u(n))){i=!0;break}i||r.push(n)});t=r}return t}}]);angular.module("ui.validate",[]).directive("uiValidate",function(){return{restrict:"A",require:"ngModel",link:function(n,t,i,r){function o(t){return angular.isString(t)?void n.$watch(t,function(){angular.forEach(u,function(n){n(r.$modelValue)})}):angular.isArray(t)?void angular.forEach(t,function(t){n.$watch(t,function(){angular.forEach(u,function(n){n(r.$modelValue)})})}):void(angular.isObject(t)&&angular.forEach(t,function(t,i){angular.isString(t)&&n.$watch(t,function(){u[i](r.$modelValue)});angular.isArray(t)&&angular.forEach(t,function(t){n.$watch(t,function(){u[i](r.$modelValue)})})}))}var e,u={},f=n.$eval(i.uiValidate);f&&(angular.isString(f)&&(f={validator:f}),angular.forEach(f,function(t,i){e=function(u){var f=n.$eval(t,{$value:u});return angular.isObject(f)&&angular.isFunction(f.then)?(f.then(function(){r.$setValidity(i,!0)},function(){r.$setValidity(i,!1)}),u):f?(r.$setValidity(i,!0),u):(r.$setValidity(i,!1),u)};u[i]=e;r.$formatters.push(e);r.$parsers.push(e)}),i.uiValidateWatch&&o(n.$eval(i.uiValidateWatch)))}}});angular.module("ui.utils",["ui.event","ui.format","ui.highlight","ui.include","ui.indeterminate","ui.inflector","ui.jq","ui.keypress","ui.mask","ui.reset","ui.route","ui.scrollfix","ui.scroll","ui.scroll.jqlite","ui.showhide","ui.unique","ui.validate"]);!function(n,t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("object"==typeof module&&module.exports){var i;try{i=require("jquery")}catch(r){i=null}module.exports=t(i)}else n.Slider=t(n.jQuery)}(this,function(n){var t;return function(n){"use strict";function t(){}function i(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(t,u){n.fn[t]=function(f){var c,e,s,o;if("string"==typeof f){for(var l=r.call(arguments,1),h=0,a=this.length;a>h;h++)if(c=this[h],e=n.data(c,t),e)if(n.isFunction(e[f])&&"_"!==f.charAt(0)){if(s=e[f].apply(e,l),void 0!==s&&s!==e)return s}else i("no such method '"+f+"' for "+t+" instance");else i("cannot call methods on "+t+" prior to initialization; attempted to call '"+f+"'");return this}return o=this.map(function(){var i=n.data(this,t);return i?(i.option(f),i._init()):(i=new u(this,f),n.data(this,t,i)),n(this)}),!o||o.length>1?o:o[0]}}if(n){var i="undefined"==typeof console?t:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var r=Array.prototype.slice;i(n)}(n),function(n){function i(t,i){function k(n,t){var r="data-slider-"+t,i=n.getAttribute(r);try{return JSON.parse(i)}catch(u){return i}}var u,h,c,l,a,p,v,f,r,w,b;"string"==typeof t?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t);var e,o,s,d=this.element.style.width,y=!1,g=this.element.parentNode;for(this.sliderElem?y=!0:(this.sliderElem=document.createElement("div"),this.sliderElem.className="slider",u=document.createElement("div"),u.className="slider-track",e=document.createElement("div"),e.className="slider-selection",o=document.createElement("div"),o.className="slider-handle min-slider-handle",s=document.createElement("div"),s.className="slider-handle max-slider-handle",u.appendChild(e),u.appendChild(o),u.appendChild(s),h=function(n){var i=document.createElement("div"),t;i.className="tooltip-arrow";t=document.createElement("div");t.className="tooltip-inner";n.appendChild(i);n.appendChild(t)},c=document.createElement("div"),c.className="tooltip tooltip-main",h(c),l=document.createElement("div"),l.className="tooltip tooltip-min",h(l),a=document.createElement("div"),a.className="tooltip tooltip-max",h(a),this.sliderElem.appendChild(u),this.sliderElem.appendChild(c),this.sliderElem.appendChild(l),this.sliderElem.appendChild(a),g.insertBefore(this.sliderElem,this.element),this.element.style.display="none"),n&&(this.$element=n(this.element),this.$sliderElem=n(this.sliderElem)),i=i?i:{},p=Object.keys(this.defaultOptions),v=0;v<p.length;v++)f=p[v],r=i[f],r="undefined"!=typeof r?r:k(this.element,f),r=null!==r?r:this.defaultOptions[f],this.options||(this.options={}),this.options[f]=r;this.eventToCallbackMap={};this.sliderElem.id=this.options.id;this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch;this.tooltip=this.sliderElem.querySelector(".tooltip-main");this.tooltipInner=this.tooltip.querySelector(".tooltip-inner");this.tooltip_min=this.sliderElem.querySelector(".tooltip-min");this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner");this.tooltip_max=this.sliderElem.querySelector(".tooltip-max");this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner");y===!0&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","top","width","height"].forEach(function(n){this._removeProperty(this.trackSelection,n)},this),[this.handle1,this.handle2].forEach(function(n){this._removeProperty(n,"left");this._removeProperty(n,"top")},this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach(function(n){this._removeProperty(n,"left");this._removeProperty(n,"top");this._removeProperty(n,"margin-left");this._removeProperty(n,"margin-top");this._removeClass(n,"right");this._removeClass(n,"top")},this));"vertical"===this.options.orientation?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight",this._addClass(this.tooltip,"right"),this.tooltip.style.left="100%",this._addClass(this.tooltip_min,"right"),this.tooltip_min.style.left="100%",this._addClass(this.tooltip_max,"right"),this.tooltip_max.style.left="100%"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=d,this.options.orientation="horizontal",this.stylePos="left",this.mousePos="pageX",this.sizePos="offsetWidth",this._addClass(this.tooltip,"top"),this.tooltip.style.top=-this.tooltip.outerHeight-14+"px",this._addClass(this.tooltip_min,"top"),this.tooltip_min.style.top=-this.tooltip_min.outerHeight-14+"px",this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top=-this.tooltip_max.outerHeight-14+"px");this.options.value instanceof Array?this.options.range=!0:this.options.range&&(this.options.value=[this.options.value,this.options.max]);this.trackSelection=e||this.trackSelection;"none"===this.options.selection&&this._addClass(this.trackSelection,"hide");this.handle1=o||this.handle1;this.handle2=s||this.handle2;y===!0&&(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"));w=["round","triangle","custom"];b=-1!==w.indexOf(this.options.handle);b&&(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle));this.offset=this._offset(this.sliderElem);this.size=this.sliderElem[this.sizePos];this.setValue(this.options.value);this.handle1Keydown=this._keydown.bind(this,0);this.handle1.addEventListener("keydown",this.handle1Keydown,!1);this.handle2Keydown=this._keydown.bind(this,0);this.handle2.addEventListener("keydown",this.handle2Keydown,!1);this.touchCapable?(this.mousedown=this._mousedown.bind(this),this.sliderElem.addEventListener("touchstart",this.mousedown,!1)):(this.mousedown=this._mousedown.bind(this),this.sliderElem.addEventListener("mousedown",this.mousedown,!1));"hide"===this.options.tooltip?(this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide")):"always"===this.options.tooltip?(this._showTooltip(),this._alwaysShowTooltip=!0):(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.handle1.addEventListener("focus",this.showTooltip,!1),this.handle1.addEventListener("blur",this.hideTooltip,!1),this.handle2.addEventListener("focus",this.showTooltip,!1),this.handle2.addEventListener("blur",this.hideTooltip,!1));this.options.enabled?this.enable():this.disable()}var r={formatInvalidInputErrorMsg:function(n){return"Invalid input value '"+n+"' passed in"},callingContextNotSliderInstance:"Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method"},u;(t=function(n,t){return i.call(this,n,t),this},t.prototype={_init:function(){},constructor:t,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,handle:"round",reversed:!1,enabled:!0,formatter:function(n){return n instanceof Array?n[0]+" : "+n[1]:n},natural_arrow_keys:!1},over:!1,inDrag:!1,getValue:function(){return this.options.range?this.options.value:this.options.value[0]},setValue:function(n,t){var i,r;return n||(n=0),this.options.value=this._validateInputValue(n),i=this._applyPrecision.bind(this),this.options.range?(this.options.value[0]=i(this.options.value[0]),this.options.value[1]=i(this.options.value[1]),this.options.value[0]=Math.max(this.options.min,Math.min(this.options.max,this.options.value[0])),this.options.value[1]=Math.max(this.options.min,Math.min(this.options.max,this.options.value[1]))):(this.options.value=i(this.options.value),this.options.value=[Math.max(this.options.min,Math.min(this.options.max,this.options.value))],this._addClass(this.handle2,"hide"),this.options.value[1]="after"===this.options.selection?this.options.max:this.options.min),this.diff=this.options.max-this.options.min,this.percentage=this.diff>0?[100*(this.options.value[0]-this.options.min)/this.diff,100*(this.options.value[1]-this.options.min)/this.diff,100*this.options.step/this.diff]:[0,0,100],this._layout(),r=this.options.range?this.options.value:this.options.value[0],this._setDataVal(r),t===!0&&this._trigger("slide",r),this},destroy:function(){this._removeSliderEventHandlers();this.sliderElem.parentNode.removeChild(this.sliderElem);this.element.style.display="";this._cleanUpEventCallbacksMap();this.element.removeAttribute("data");n&&(this._unbindJQueryEventHandlers(),this.$element.removeData("slider"))},disable:function(){return this.options.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this.options.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this.options.enabled?this.disable():this.enable(),this},isEnabled:function(){return this.options.enabled},on:function(t,i){return n?(this.$element.on(t,i),this.$sliderElem.on(t,i)):this._bindNonQueryEventHandler(t,i),this},getAttribute:function(n){return n?this.options[n]:this.options},setAttribute:function(n,t){return this.options[n]=t,this},refresh:function(){return this._removeSliderEventHandlers(),i.call(this,this.element,this.options),n&&n.data(this.element,"slider",this),this},_removeSliderEventHandlers:function(){this.handle1.removeEventListener("keydown",this.handle1Keydown,!1);this.handle1.removeEventListener("focus",this.showTooltip,!1);this.handle1.removeEventListener("blur",this.hideTooltip,!1);this.handle2.removeEventListener("keydown",this.handle2Keydown,!1);this.handle2.removeEventListener("focus",this.handle2Keydown,!1);this.handle2.removeEventListener("blur",this.handle2Keydown,!1);this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1);this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1);this.sliderElem.removeEventListener("touchstart",this.mousedown,!1);this.sliderElem.removeEventListener("mousedown",this.mousedown,!1)},_bindNonQueryEventHandler:function(n,t){void 0===this.eventToCallbackMap[n]&&(this.eventToCallbackMap[n]=[]);this.eventToCallbackMap[n].push(t)},_cleanUpEventCallbacksMap:function(){for(var i,t=Object.keys(this.eventToCallbackMap),n=0;n<t.length;n++)i=t[n],this.eventToCallbackMap[i]=null},_showTooltip:function(){this.options.tooltip_split===!1?this._addClass(this.tooltip,"in"):(this._addClass(this.tooltip_min,"in"),this._addClass(this.tooltip_max,"in"));this.over=!0},_hideTooltip:function(){this.inDrag===!1&&this.alwaysShowTooltip!==!0&&(this._removeClass(this.tooltip,"in"),this._removeClass(this.tooltip_min,"in"),this._removeClass(this.tooltip_max,"in"));this.over=!1},_layout:function(){var n,i,r,t,u,f;(n=this.options.reversed?[100-this.percentage[0],this.percentage[1]]:[this.percentage[0],this.percentage[1]],this.handle1.style[this.stylePos]=n[0]+"%",this.handle2.style[this.stylePos]=n[1]+"%","vertical"===this.options.orientation)?(this.trackSelection.style.top=Math.min(n[0],n[1])+"%",this.trackSelection.style.height=Math.abs(n[0]-n[1])+"%"):(this.trackSelection.style.left=Math.min(n[0],n[1])+"%",this.trackSelection.style.width=Math.abs(n[0]-n[1])+"%",i=this.tooltip_min.getBoundingClientRect(),r=this.tooltip_max.getBoundingClientRect(),i.right>r.left?(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top="-30px"));this.options.range?(t=this.options.formatter(this.options.value),this._setText(this.tooltipInner,t),this.tooltip.style[this.stylePos]=(n[1]+n[0])/2+"%","vertical"===this.options.orientation?this._css(this.tooltip,"margin-top",-this.tooltip.offsetHeight/2+"px"):this._css(this.tooltip,"margin-left",-this.tooltip.offsetWidth/2+"px"),"vertical"===this.options.orientation?this._css(this.tooltip,"margin-top",-this.tooltip.offsetHeight/2+"px"):this._css(this.tooltip,"margin-left",-this.tooltip.offsetWidth/2+"px"),u=this.options.formatter(this.options.value[0]),this._setText(this.tooltipInner_min,u),f=this.options.formatter(this.options.value[1]),this._setText(this.tooltipInner_max,f),this.tooltip_min.style[this.stylePos]=n[0]+"%","vertical"===this.options.orientation?this._css(this.tooltip_min,"margin-top",-this.tooltip_min.offsetHeight/2+"px"):this._css(this.tooltip_min,"margin-left",-this.tooltip_min.offsetWidth/2+"px"),this.tooltip_max.style[this.stylePos]=n[1]+"%","vertical"===this.options.orientation?this._css(this.tooltip_max,"margin-top",-this.tooltip_max.offsetHeight/2+"px"):this._css(this.tooltip_max,"margin-left",-this.tooltip_max.offsetWidth/2+"px")):(t=this.options.formatter(this.options.value[0]),this._setText(this.tooltipInner,t),this.tooltip.style[this.stylePos]=n[0]+"%","vertical"===this.options.orientation?this._css(this.tooltip,"margin-top",-this.tooltip.offsetHeight/2+"px"):this._css(this.tooltip,"margin-left",-this.tooltip.offsetWidth/2+"px"))},_removeProperty:function(n,t){n.style.removeProperty?n.style.removeProperty(t):n.style.removeAttribute(t)},_mousedown:function(n){var t,r,u,i;return this.options.enabled?(this._triggerFocusOnHandle(),this.offset=this._offset(this.sliderElem),this.size=this.sliderElem[this.sizePos],t=this._getPercentage(n),this.options.range?(r=Math.abs(this.percentage[0]-t),u=Math.abs(this.percentage[1]-t),this.dragged=u>r?0:1):this.dragged=0,this.percentage[this.dragged]=this.options.reversed?100-t:t,this._layout(),this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this.inDrag=!0,i=this._calculateValue(),this._trigger("slideStart",i),this._setDataVal(i),this.setValue(i),this._pauseEvent(n),!0):!1},_triggerFocusOnHandle:function(n){0===n&&this.handle1.focus();1===n&&this.handle2.focus()},_keydown:function(n,t){var r,f,e,o,i,u;if(!this.options.enabled)return!1;switch(t.keyCode){case 37:case 40:r=-1;break;case 39:case 38:r=1}if(r)return this.options.natural_arrow_keys&&(f="vertical"===this.options.orientation&&!this.options.reversed,e="horizontal"===this.options.orientation&&this.options.reversed,(f||e)&&(r=-1*r)),o=r*this.percentage[2],i=this.percentage[n]+o,i>100?i=100:0>i&&(i=0),this.dragged=n,this._adjustPercentageForRangeSliders(i),this.percentage[this.dragged]=i,this._layout(),u=this._calculateValue(),this._trigger("slideStart",u),this._setDataVal(u),this.setValue(u,!0),this._trigger("slideStop",u),this._setDataVal(u),this._pauseEvent(t),!1},_pauseEvent:function(n){n.stopPropagation&&n.stopPropagation();n.preventDefault&&n.preventDefault();n.cancelBubble=!0;n.returnValue=!1},_mousemove:function(n){var t,i;return this.options.enabled?(t=this._getPercentage(n),this._adjustPercentageForRangeSliders(t),this.percentage[this.dragged]=this.options.reversed?100-t:t,this._layout(),i=this._calculateValue(),this.setValue(i,!0),!1):!1},_adjustPercentageForRangeSliders:function(n){this.options.range&&(0===this.dragged&&this.percentage[1]<n?(this.percentage[0]=this.percentage[1],this.dragged=1):1===this.dragged&&this.percentage[0]>n&&(this.percentage[1]=this.percentage[0],this.dragged=0))},_mouseup:function(){if(!this.options.enabled)return!1;this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1));document.removeEventListener("mousemove",this.mousemove,!1);document.removeEventListener("mouseup",this.mouseup,!1);this.inDrag=!1;this.over===!1&&this._hideTooltip();var n=this._calculateValue();return this._layout(),this._setDataVal(n),this._trigger("slideStop",n),!1},_calculateValue:function(){var n;return this.options.range?(n=[this.options.min,this.options.max],0!==this.percentage[0]&&(n[0]=Math.max(this.options.min,this.options.min+Math.round(this.diff*this.percentage[0]/100/this.options.step)*this.options.step),n[0]=this._applyPrecision(n[0])),100!==this.percentage[1]&&(n[1]=Math.min(this.options.max,this.options.min+Math.round(this.diff*this.percentage[1]/100/this.options.step)*this.options.step),n[1]=this._applyPrecision(n[1])),this.options.value=n):(n=this.options.min+Math.round(this.diff*this.percentage[0]/100/this.options.step)*this.options.step,n<this.options.min?n=this.options.min:n>this.options.max&&(n=this.options.max),n=parseFloat(n),n=this._applyPrecision(n),this.options.value=[n,this.options.value[1]]),n},_applyPrecision:function(n){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(n,t)},_getNumDigitsAfterDecimalPlace:function(n){var t=(""+n).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(n,t){var i=n.toFixed(t);return parseFloat(i)},_getPercentage:function(n){this.touchCapable&&("touchstart"===n.type||"touchmove"===n.type)&&(n=n.touches[0]);var t=100*(n[this.mousePos]-this.offset[this.stylePos])/this.size;return t=Math.round(t/this.percentage[2])*this.percentage[2],Math.max(0,Math.min(100,t))},_validateInputValue:function(n){if("number"==typeof n)return n;if(n instanceof Array)return this._validateArray(n),n;throw new Error(r.formatInvalidInputErrorMsg(n));},_validateArray:function(n){for(var i,t=0;t<n.length;t++)if(i=n[t],"number"!=typeof i)throw new Error(r.formatInvalidInputErrorMsg(i));},_setDataVal:function(n){var t="value: '"+n+"'";this.element.setAttribute("data",t);this.element.setAttribute("value",n)},_trigger:function(t,i){var r,u,f;if(i=i||0===i?i:void 0,r=this.eventToCallbackMap[t],r&&r.length)for(u=0;u<r.length;u++)f=r[u],f(i);n&&this._triggerJQueryEvent(t,i)},_triggerJQueryEvent:function(n,t){var i={type:n,value:t};this.$element.trigger(i);this.$sliderElem.trigger(i)},_unbindJQueryEventHandlers:function(){this.$element.off();this.$sliderElem.off()},_setText:function(n,t){"undefined"!=typeof n.innerText?n.innerText=t:"undefined"!=typeof n.textContent&&(n.textContent=t)},_removeClass:function(n,t){for(var f,e,u=t.split(" "),i=n.className,r=0;r<u.length;r++)f=u[r],e=new RegExp("(?:\\s|^)"+f+"(?:\\s|$)"),i=i.replace(e," ");n.className=i.trim()},_addClass:function(n,t){for(var u=t.split(" "),i=n.className,r=0;r<u.length;r++){var f=u[r],e=new RegExp("(?:\\s|^)"+f+"(?:\\s|$)"),o=e.test(i);o||(i+=" "+f)}n.className=i.trim()},_offset:function(n){var t=0,i=0;if(n.offsetParent)do t+=n.offsetLeft,i+=n.offsetTop;while(n=n.offsetParent);return{left:t,top:i}},_css:function(t,i,r){if(n)n.style(t,i,r);else{var u=i.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(n,t){return t.toUpperCase()});t.style[u]=r}}},n)&&(u=n.fn.slider?"bootstrapSlider":"slider",n.bridget(u,t))}(n),t}),function(k){for(var d,f,l=document.getElementsByTagName("head")[0].style,h=["transformProperty","WebkitTransform","OTransform","msTransform","MozTransform"],g=0;g<h.length;g++)void 0!==l[h[g]]&&(d=h[g]);d&&(f=d.replace(/[tT]ransform/,"TransformOrigin"),"T"==f[0]&&(f[0]="t"));eval('IE = "v"=="\v"');jQuery.fn.extend({rotate:function(n){var u,t;if(0!==this.length&&"undefined"!=typeof n){"number"==typeof n&&(n={angle:n});for(var r=[],i=0,f=this.length;i<f;i++)t=this.get(i),t.Wilq32&&t.Wilq32.PhotoEffect?t.Wilq32.PhotoEffect._handleRotation(n):(u=k.extend(!0,{},n),t=new Wilq32.PhotoEffect(t,u)._rootObj,r.push(k(t)));return r}},getRotateAngle:function(){for(var t,i=[],n=0,r=this.length;n<r;n++)t=this.get(n),t.Wilq32&&t.Wilq32.PhotoEffect&&(i[n]=t.Wilq32.PhotoEffect._angle);return i},stopRotate:function(){for(var t,n=0,i=this.length;n<i;n++)t=this.get(n),t.Wilq32&&t.Wilq32.PhotoEffect&&clearTimeout(t.Wilq32.PhotoEffect._timer)}});Wilq32=window.Wilq32||{};Wilq32.PhotoEffect=function(){return d?function(n,t){n.Wilq32={PhotoEffect:this};this._img=this._rootObj=this._eventObj=n;this._handleRotation(t)}:function(n,t){if(this._img=n,this._onLoadDelegate=[t],this._rootObj=document.createElement("span"),this._rootObj.style.display="inline-block",this._rootObj.Wilq32={PhotoEffect:this},n.parentNode.insertBefore(this._rootObj,n),n.complete)this._Loader();else{var i=this;jQuery(this._img).bind("load",function(){i._Loader()})}}}();Wilq32.PhotoEffect.prototype={_setupParameters:function(n){this._parameters=this._parameters||{};"number"!=typeof this._angle&&(this._angle=0);"number"==typeof n.angle&&(this._angle=n.angle);this._parameters.animateTo="number"==typeof n.animateTo?n.animateTo:this._angle;this._parameters.step=n.step||this._parameters.step||null;this._parameters.easing=n.easing||this._parameters.easing||this._defaultEasing;this._parameters.duration=n.duration||this._parameters.duration||1e3;this._parameters.callback=n.callback||this._parameters.callback||this._emptyFunction;this._parameters.center=n.center||this._parameters.center||["50%","50%"];this._rotationCenterX="string"==typeof this._parameters.center[0]?parseInt(this._parameters.center[0],10)/100*this._imgWidth*this._aspectW:this._parameters.center[0];this._rotationCenterY="string"==typeof this._parameters.center[1]?parseInt(this._parameters.center[1],10)/100*this._imgHeight*this._aspectH:this._parameters.center[1];n.bind&&n.bind!=this._parameters.bind&&this._BindEvents(n.bind)},_emptyFunction:function(){},_defaultEasing:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},_handleRotation:function(n,t){d||this._img.complete||t?(this._setupParameters(n),this._angle==this._parameters.animateTo?this._rotate(this._angle):this._animateStart()):this._onLoadDelegate.push(n)},_BindEvents:function(n){if(n&&this._eventObj){if(this._parameters.bind){var i=this._parameters.bind;for(var t in i)i.hasOwnProperty(t)&&jQuery(this._eventObj).unbind(t,i[t])}this._parameters.bind=n;for(t in n)n.hasOwnProperty(t)&&jQuery(this._eventObj).bind(t,n[t])}},_Loader:function(){return IE?function(){var n=this._img.width,t=this._img.height;for(this._imgWidth=n,this._imgHeight=t,this._img.parentNode.removeChild(this._img),this._vimage=this.createVMLNode("image"),this._vimage.src=this._img.src,this._vimage.style.height=t+"px",this._vimage.style.width=n+"px",this._vimage.style.position="absolute",this._vimage.style.top="0px",this._vimage.style.left="0px",this._aspectW=this._aspectH=1,this._container=this.createVMLNode("group"),this._container.style.width=n,this._container.style.height=t,this._container.style.position="absolute",this._container.style.top="0px",this._container.style.left="0px",this._container.setAttribute("coordsize",n-1+","+(t-1)),this._container.appendChild(this._vimage),this._rootObj.appendChild(this._container),this._rootObj.style.position="relative",this._rootObj.style.width=n+"px",this._rootObj.style.height=t+"px",this._rootObj.setAttribute("id",this._img.getAttribute("id")),this._rootObj.className=this._img.className,this._eventObj=this._rootObj;n=this._onLoadDelegate.shift();)this._handleRotation(n,!0)}:function(){this._rootObj.setAttribute("id",this._img.getAttribute("id"));this._rootObj.className=this._img.className;this._imgWidth=this._img.naturalWidth;this._imgHeight=this._img.naturalHeight;var n=Math.sqrt(this._imgHeight*this._imgHeight+this._imgWidth*this._imgWidth);for(this._width=3*n,this._height=3*n,this._aspectW=this._img.offsetWidth/this._img.naturalWidth,this._aspectH=this._img.offsetHeight/this._img.naturalHeight,this._img.parentNode.removeChild(this._img),this._canvas=document.createElement("canvas"),this._canvas.setAttribute("width",this._width),this._canvas.style.position="relative",this._canvas.style.left=-this._img.height*this._aspectW+"px",this._canvas.style.top=-this._img.width*this._aspectH+"px",this._canvas.Wilq32=this._rootObj.Wilq32,this._rootObj.appendChild(this._canvas),this._rootObj.style.width=this._img.width*this._aspectW+"px",this._rootObj.style.height=this._img.height*this._aspectH+"px",this._eventObj=this._canvas,this._cnv=this._canvas.getContext("2d");n=this._onLoadDelegate.shift();)this._handleRotation(n,!0)}}(),_animateStart:function(){this._timer&&clearTimeout(this._timer);this._animateStartTime=+new Date;this._animateStartAngle=this._angle;this._animate()},_animate:function(){var n=+new Date,i=n-this._animateStartTime>this._parameters.duration,t;i&&!this._parameters.animatedGif?clearTimeout(this._timer):((this._canvas||this._vimage||this._img)&&(n=this._parameters.easing(0,n-this._animateStartTime,this._animateStartAngle,this._parameters.animateTo-this._animateStartAngle,this._parameters.duration),this._rotate(~~(10*n)/10)),this._parameters.step&&this._parameters.step(this._angle),t=this,this._timer=setTimeout(function(){t._animate.call(t)},10));this._parameters.callback&&i&&(this._angle=this._parameters.animateTo,this._rotate(this._angle),this._parameters.callback.call(this._rootObj))},_rotate:function(){var n=Math.PI/180;return IE?function(n){this._angle=n;this._container.style.rotation=n%360+"deg";this._vimage.style.top=-(this._rotationCenterY-this._imgHeight/2)+"px";this._vimage.style.left=-(this._rotationCenterX-this._imgWidth/2)+"px";this._container.style.top=this._rotationCenterY-this._imgHeight/2+"px";this._container.style.left=this._rotationCenterX-this._imgWidth/2+"px"}:d?function(n){this._angle=n;this._img.style[d]="rotate("+n%360+"deg)";this._img.style[f]=this._parameters.center.join(" ")}:function(t){this._angle=t;t=t%360*n;this._canvas.width=this._width;this._canvas.height=this._height;this._cnv.translate(this._imgWidth*this._aspectW,this._imgHeight*this._aspectH);this._cnv.translate(this._rotationCenterX,this._rotationCenterY);this._cnv.rotate(t);this._cnv.translate(-this._rotationCenterX,-this._rotationCenterY);this._cnv.scale(this._aspectW,this._aspectH);this._cnv.drawImage(this._img,0,0)}}()};IE&&(Wilq32.PhotoEffect.prototype.createVMLNode=function(){document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{return!document.namespaces.rvml&&document.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),function(n){return document.createElement("<rvml:"+n+' class="rvml">')}}catch(n){return function(n){return document.createElement("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}}())}(jQuery),function(n,t){function o(n){return!!(""===n||n&&n.charCodeAt&&n.substr)}function u(n){return v?v(n):"[object Array]"===y.call(n)}function s(n){return"[object Object]"===y.call(n)}function h(n,t){var i,n=n||{},t=t||{};for(i in t)t.hasOwnProperty(i)&&null==n[i]&&(n[i]=t[i]);return n}function r(n,t,i){var u=[],r,f;if(!n)return u;if(a&&n.map===a)return n.map(t,i);for(r=0,f=n.length;r<f;r++)u[r]=t.call(i,n[r],r,n);return u}function f(n,t){return n=Math.round(Math.abs(n)),isNaN(n)?t:n}function l(n){var t=i.settings.currency.format;return"function"==typeof n&&(n=n()),o(n)&&n.match("%v")?{pos:n,neg:n.replace("-","").replace("%v","-%v"),zero:n}:!n||!n.pos||!n.pos.match("%v")?o(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t:n}var i={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},a=Array.prototype.map,v=Array.isArray,y=Object.prototype.toString,e=i.unformat=i.parse=function(n,t){if(u(n))return r(n,function(n){return e(n,t)});if(n=n||0,"number"==typeof n)return n;var t=t||".",i=RegExp("[^0-9-"+t+"]",["g"]),i=parseFloat((""+n).replace(/\((.*)\)/,"-$1").replace(i,"").replace(t,"."));return isNaN(i)?0:i},p=i.toFixed=function(n,t){var t=f(t,i.settings.number.precision),r=Math.pow(10,t);return(Math.round(i.unformat(n)*r)/r).toFixed(t)},c=i.formatNumber=i.format=function(n,t,o,l){if(u(n))return r(n,function(n){return c(n,t,o,l)});var n=e(n),a=h(s(t)?t:{precision:t,thousand:o,decimal:l},i.settings.number),y=f(a.precision),b=0>n?"-":"",v=parseInt(p(Math.abs(n||0),y),10)+"",w=3<v.length?v.length%3:0;return b+(w?v.substr(0,w)+a.thousand:"")+v.substr(w).replace(/(\d{3})(?=\d)/g,"$1"+a.thousand)+(y?a.decimal+p(Math.abs(n),y).split(".")[1]:"")},w=i.formatMoney=function(n,t,o,a,v,y){if(u(n))return r(n,function(n){return w(n,t,o,a,v,y)});var n=e(n),p=h(s(t)?t:{symbol:t,precision:o,thousand:a,decimal:v,format:y},i.settings.currency),b=l(p.format);return(0<n?b.pos:0>n?b.neg:b.zero).replace("%s",p.symbol).replace("%v",c(Math.abs(n),f(p.precision),p.thousand,p.decimal))};i.formatColumn=function(n,t,a,v,y,p){if(!n)return[];var w=h(s(t)?t:{symbol:t,precision:a,thousand:v,decimal:y,format:p},i.settings.currency),b=l(w.format),d=b.pos.indexOf("%s")<b.pos.indexOf("%v")?!0:!1,k=0,n=r(n,function(n){return u(n)?i.formatColumn(n,w):(n=e(n),n=(0<n?b.pos:0>n?b.neg:b.zero).replace("%s",w.symbol).replace("%v",c(Math.abs(n),f(w.precision),w.thousand,w.decimal)),n.length>k&&(k=n.length),n)});return r(n,function(n){return o(n)&&n.length<k?d?n.replace(w.symbol,w.symbol+Array(k-n.length+1).join(" ")):Array(k-n.length+1).join(" ")+n:n})};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=i),exports.accounting=i):"function"==typeof define&&define.amd?define([],function(){return i}):(i.noConflict=function(r){return function(){return n.accounting=r,i.noConflict=t,i}}(n.accounting),n.accounting=i)}(this),function(n,t,i,r){var u=n(t);n.fn.lazyload=function(f){function s(){var t=0;o.each(function(){var i=n(this);if((!e.skip_invisible||i.is(":visible"))&&!n.abovethetop(this,e)&&!n.leftofbegin(this,e))if(n.belowthefold(this,e)||n.rightoffold(this,e)){if(++t>e.failure_limit)return!1}else i.trigger("appear"),t=0})}var o=this,h,e={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!0,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return f&&(r!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),r!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),n.extend(e,f)),h=e.container===r||e.container===t?u:n(e.container),0===e.event.indexOf("scroll")&&h.bind(e.event,function(){return s()}),this.each(function(){var i=this,t=n(i);i.loaded=!1;(t.attr("src")===r||t.attr("src")===!1)&&t.is("img")&&t.attr("src",e.placeholder);t.one("appear",function(){if(!this.loaded){if(e.appear){var r=o.length;e.appear.call(i,r,e)}n("<img />").bind("load",function(){var r=t.attr("data-"+e.data_attribute),u,f;t.hide();t.is("img")?t.attr("src",r):t.css("background-image","url('"+r+"')");t[e.effect](e.effect_speed);i.loaded=!0;u=n.grep(o,function(n){return!n.loaded});o=n(u);e.load&&(f=o.length,e.load.call(i,f,e))}).attr("src",t.attr("data-"+e.data_attribute))}});0!==e.event.indexOf("scroll")&&t.bind(e.event,function(){i.loaded||t.trigger("appear")})}),u.bind("resize",function(){s()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&u.bind("pageshow",function(t){t.originalEvent&&t.originalEvent.persisted&&o.each(function(){n(this).trigger("appear")})}),n(i).ready(function(){s()}),this};n.belowthefold=function(i,f){var e;return e=f.container===r||f.container===t?(t.innerHeight?t.innerHeight:u.height())+u.scrollTop():n(f.container).offset().top+n(f.container).height(),e<=n(i).offset().top-f.threshold};n.rightoffold=function(i,f){var e;return e=f.container===r||f.container===t?u.width()+u.scrollLeft():n(f.container).offset().left+n(f.container).width(),e<=n(i).offset().left-f.threshold};n.abovethetop=function(i,f){var e;return e=f.container===r||f.container===t?u.scrollTop():n(f.container).offset().top,e>=n(i).offset().top+f.threshold+n(i).height()};n.leftofbegin=function(i,f){var e;return e=f.container===r||f.container===t?u.scrollLeft():n(f.container).offset().left,e>=n(i).offset().left+f.threshold+n(i).width()};n.inviewport=function(t,i){return!n.rightoffold(t,i)&&!n.leftofbegin(t,i)&&!n.belowthefold(t,i)&&!n.abovethetop(t,i)};n.extend(n.expr[":"],{"below-the-fold":function(t){return n.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return n.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!n.rightoffold(t,{threshold:0})},"in-viewport":function(t){return n.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return n.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!n.rightoffold(t,{threshold:0})}})}(jQuery,window,document);!function(){function t(n,t){window.XMLHttpRequest.prototype[n]=t(window.XMLHttpRequest.prototype[n])}function n(n,t,i){try{Object.defineProperty(n,t,{get:i})}catch(r){}}if(window.FileAPI||(window.FileAPI={}),!window.XMLHttpRequest)throw"AJAX is not supported. XMLHttpRequest is not defined.";if(FileAPI.shouldLoad=!window.FormData||FileAPI.forceLoad,FileAPI.shouldLoad){var i=function(n){if(!n.__listeners){n.upload||(n.upload={});n.__listeners=[];var t=n.upload.addEventListener;n.upload.addEventListener=function(i,r){n.__listeners[i]=r;t&&t.apply(this,arguments)}}};t("open",function(n){return function(t,r,u){i(this);this.__url=r;try{n.apply(this,[t,r,u])}catch(f){f.message.indexOf("Access is denied")>-1&&(this.__origError=f,n.apply(this,[t,"_fix_for_ie_crossdomain__",u]))}}});t("getResponseHeader",function(n){return function(t){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(t):null==n?null:n.apply(this,[t])}});t("getAllResponseHeaders",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():null==n?null:n.apply(this)}});t("abort",function(n){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():null==n?null:n.apply(this)}});t("setRequestHeader",function(n){return function(t,r){if("__setXHR_"===t){i(this);var u=r(this);u instanceof Function&&u(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=r,n.apply(this,arguments)}});t("send",function(t){return function(){var i=this,e,u,f,r;if(arguments[0]&&arguments[0].__isFileAPIShim){for(e=arguments[0],u={url:i.__url,jsonp:!1,cache:!0,complete:function(t,r){t&&angular.isString(t)&&-1!==t.indexOf("#2174")&&(t=null);i.__completed=!0;!t&&i.__listeners.load&&i.__listeners.load({type:"load",loaded:i.__loaded,total:i.__total,target:i,lengthComputable:!0});!t&&i.__listeners.loadend&&i.__listeners.loadend({type:"loadend",loaded:i.__loaded,total:i.__total,target:i,lengthComputable:!0});"abort"===t&&i.__listeners.abort&&i.__listeners.abort({type:"abort",loaded:i.__loaded,total:i.__total,target:i,lengthComputable:!0});void 0!==r.status&&n(i,"status",function(){return 0===r.status&&t&&"abort"!==t?500:r.status});void 0!==r.statusText&&n(i,"statusText",function(){return r.statusText});n(i,"readyState",function(){return 4});void 0!==r.response&&n(i,"response",function(){return r.response});var u=r.responseText||(t&&0===r.status&&"abort"!==t?t:void 0);n(i,"responseText",function(){return u});n(i,"response",function(){return u});t&&n(i,"err",function(){return t});i.__fileApiXHR=r;i.onreadystatechange&&i.onreadystatechange();i.onload&&i.onload()},progress:function(n){if(n.target=i,i.__listeners.progress&&i.__listeners.progress(n),i.__total=n.total,i.__loaded=n.loaded,n.total===n.loaded){var t=this;setTimeout(function(){i.__completed||(i.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))},FileAPI.noContentTimeout||1e4)}},headers:i.__requestHeaders},u.data={},u.files={},f=0;f<e.data.length;f++)r=e.data[f],null!=r.val&&null!=r.val.name&&null!=r.val.size&&null!=r.val.type?u.files[r.key]=r.val:u.data[r.key]=r.val;setTimeout(function(){if(!FileAPI.hasFlash)throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';i.__fileApiXHR=FileAPI.upload(u)},1)}else{if(this.__origError)throw this.__origError;t.apply(i,arguments)}}});window.XMLHttpRequest.__isFileAPIShim=!0;window.FormData=FormData=function(){return{append:function(n,t,i){t.__isFileAPIBlobShim&&(t=t.data[0]);this.data.push({key:n,val:t,name:i})},data:[],__isFileAPIShim:!0}};window.Blob=Blob=function(n){return{data:n,__isFileAPIBlobShim:!0}}}}(),function(){function h(n){return"input"===n[0].tagName.toLowerCase()&&n.attr("type")&&"file"===n.attr("type").toLowerCase()}function u(){try{var n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(n)return!0}catch(t){if(void 0!==navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}function f(n){var t=0,i=0;if(window.jQuery)return jQuery(n).offset();if(n.offsetParent)do t+=n.offsetLeft-n.scrollLeft,i+=n.offsetTop-n.scrollTop,n=n.offsetParent;while(n);return{left:t,top:i}}if(FileAPI.shouldLoad){if(FileAPI.hasFlash=u(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var e,n,t,i,r,o=document.createElement("script"),s=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)e=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)n=window.FileAPI.jsPath;else for(t=0;t<s.length;t++)if(r=s[t].src,i=r.search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/),i>-1){n=r.substring(0,i+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=n);o.setAttribute("src",e||n+"FileAPI.min.js");document.getElementsByTagName("head")[0].appendChild(o)}FileAPI.ngfFixIE=function(n,t,i){var r,e;if(!u())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';r=function(){var r=t.parent();n.attr("disabled")?r&&r.removeClass("js-fileapi-wrapper"):(t.attr("__ngf_flash_")||(t.unbind("change"),t.unbind("click"),t.bind("change",function(n){e.apply(this,[n]);i.apply(this,[n])}),t.attr("__ngf_flash_","true")),r.addClass("js-fileapi-wrapper"),h(n)||(r.css("position","absolute").css("top",f(n[0]).top+"px").css("left",f(n[0]).left+"px").css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",n.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),t.css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))};n.bind("mouseenter",r);e=function(n){for(var t=FileAPI.getFiles(n),i=0;i<t.length;i++)void 0===t[i].size&&(t[i].size=0),void 0===t[i].name&&(t[i].name="file"),void 0===t[i].type&&(t[i].type="undefined");n.target||(n.target={});n.target.files=t;n.target.files!==t&&(n.__files_=t);(n.__files_||n.target.files).item=function(t){return(n.__files_||n.target.files)[t]||null}}};FileAPI.disableFileInput=function(n,t){t?n.removeClass("js-fileapi-wrapper"):n.addClass("js-fileapi-wrapper")}}}();window.FileReader||(window.FileReader=function(){var n=this,r=!1,t,i;this.listeners={};this.addEventListener=function(t,i){n.listeners[t]=n.listeners[t]||[];n.listeners[t].push(i)};this.removeEventListener=function(t,i){n.listeners[t]&&n.listeners[t].splice(n.listeners[t].indexOf(i),1)};this.dispatchEvent=function(t){var r=n.listeners[t.type],i;if(r)for(i=0;i<r.length;i++)r[i].call(n,t)};this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;t=function(t,i){var r={type:t,target:n,loaded:i.loaded,total:i.total,error:i.error};return null!=i.result&&(r.target.result=i.result),r};i=function(i){r||(r=!0,n.onloadstart&&n.onloadstart(t("loadstart",i)));var u;"load"===i.type?(n.onloadend&&n.onloadend(t("loadend",i)),u=t("load",i),n.onload&&n.onload(u),n.dispatchEvent(u)):"progress"===i.type?(u=t("progress",i),n.onprogress&&n.onprogress(u),n.dispatchEvent(u)):(u=t("error",i),n.onerror&&n.onerror(u),n.dispatchEvent(u))};this.readAsDataURL=function(n){FileAPI.readAsDataURL(n,i)};this.readAsText=function(n){FileAPI.readAsText(n,i)}});!window.XMLHttpRequest||window.FileAPI&&FileAPI.shouldLoad||(window.XMLHttpRequest.prototype.setRequestHeader=function(n){return function(t,i){if("__setXHR_"===t){var r=i(this);r instanceof Function&&r(this)}else n.apply(this,arguments)}}(window.XMLHttpRequest.prototype.setRequestHeader));ngFileUpload=angular.module("ngFileUpload",[]);ngFileUpload.version="12.2.13";ngFileUpload.service("UploadBase",["$http","$q","$timeout",function(n,t,i){function f(f){function h(n){o.notify&&o.notify(n);e.progressFunc&&i(function(){e.progressFunc(n)})}function c(n){return null!=f._start&&u?{loaded:n.loaded+f._start,total:f._file&&f._file.size||n.total,type:n.type,config:f,lengthComputable:!0,target:n.target}:n}function s(){n(f).then(function(n){if(u&&f._chunkSize&&!f._finished&&f._file){var t=f._file&&f._file.size||0;h({loaded:Math.min(f._end,t),total:t,config:f,type:"progress"});r.upload(f,!0)}else f._finished&&delete f._finished,o.resolve(n)},function(n){o.reject(n)},function(n){o.notify(n)})}f.method=f.method||"POST";f.headers=f.headers||{};var o=f._deferred=f._deferred||t.defer(),e=o.promise;return f.disableProgress||(f.headers.__setXHR_=function(){return function(n){n&&n.upload&&n.upload.addEventListener&&(f.__XHR=n,f.xhrFn&&f.xhrFn(n),n.upload.addEventListener("progress",function(n){n.config=f;h(c(n))},!1),n.upload.addEventListener("load",function(n){n.lengthComputable&&(n.config=f,h(c(n)))},!1))}}),u?f._chunkSize&&f._end&&!f._finished?(f._start=f._end,f._end+=f._chunkSize,s()):f.resumeSizeUrl?n.get(f.resumeSizeUrl).then(function(n){f._start=f.resumeSizeResponseReader?f.resumeSizeResponseReader(n.data):parseInt((null==n.data.size?n.data:n.data.size).toString());f._chunkSize&&(f._end=f._start+f._chunkSize);s()},function(n){throw n;}):f.resumeSize?f.resumeSize().then(function(n){f._start=n;f._chunkSize&&(f._end=f._start+f._chunkSize);s()},function(n){throw n;}):(f._chunkSize&&(f._start=0,f._end=f._start+f._chunkSize),s()):s(),e.success=function(n){return e.then(function(t){n(t.data,t.status,t.headers,f)}),e},e.error=function(n){return e.then(null,function(t){n(t.data,t.status,t.headers,f)}),e},e.progress=function(n){return e.progressFunc=n,e.then(null,null,function(t){n(t)}),e},e.abort=e.pause=function(){return f.__XHR&&i(function(){f.__XHR.abort()}),e},e.xhr=function(n){return f.xhrFn=function(t){return function(){t&&t.apply(e,arguments);n.apply(e,arguments)}}(f.xhrFn),e},r.promisesCount++,e["finally"]&&e["finally"]instanceof Function&&e["finally"](function(){r.promisesCount--}),e}function e(n){var i={};for(var t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i}var r=this,u;r.promisesCount=0;this.isResumeSupported=function(){return window.Blob&&window.Blob.prototype.slice};u=this.isResumeSupported();this.isUploadInProgress=function(){return r.promisesCount>0};this.rename=function(n,t){return n.ngfName=t,n};this.jsonBlob=function(n){null==n||angular.isString(n)||(n=JSON.stringify(n));var t=new window.Blob([n],{type:"application/json"});return t._ngfBlob=!0,t};this.json=function(n){return angular.toJson(n)};this.isFile=function(n){return null!=n&&(n instanceof window.Blob||n.flashId&&n.name&&n.size)};this.upload=function(n,t){function o(t,i){if(t._ngfBlob)return t;if(n._file=n._file||t,null!=n._start&&u){n._end&&n._end>=t.size&&(n._finished=!0,n._end=t.size);var r=t.slice(n._start,n._end||t.size);return r.name=t.name,r.ngfName=t.ngfName,n._chunkSize&&(i.append("_chunkSize",n._chunkSize),i.append("_currentChunkSize",n._end-n._start),i.append("_chunkNumber",Math.floor(n._start/n._chunkSize)),i.append("_totalSize",n._file.size)),r}return t}function i(t,u,f){var s,h,e,c;if(void 0!==u)if(angular.isDate(u)&&(u=u.toISOString()),angular.isString(u))t.append(f,u);else if(r.isFile(u))s=o(u,t),h=f.split(","),h[1]&&(s.ngfName=h[1].replace(/^\s+|\s+$/g,""),f=h[0]),n._fileKey=n._fileKey||f,t.append(f,s,s.ngfName||s.name);else if(angular.isObject(u)){if(u.$$ngfCircularDetection)throw"ngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: "+f;u.$$ngfCircularDetection=!0;try{for(e in u)u.hasOwnProperty(e)&&"$$ngfCircularDetection"!==e&&(c=null==n.objectKey?"[i]":n.objectKey,u.length&&parseInt(e)>-1&&(c=null==n.arrayKey?c:n.arrayKey),i(t,u[e],f+c.replace(/[ik]/g,e)))}finally{delete u.$$ngfCircularDetection}}else t.append(f,u)}function s(){n._chunkSize=r.translateScalars(n.resumeChunkSize);n._chunkSize=n._chunkSize?parseInt(n._chunkSize.toString()):null;n.headers=n.headers||{};n.headers["Content-Type"]=void 0;n.transformRequest=n.transformRequest?angular.isArray(n.transformRequest)?n.transformRequest:[n.transformRequest]:[];n.transformRequest.push(function(t){var r,u=new window.FormData,f;t=t||n.fields||{};n.file&&(t.file=n.file);for(r in t)t.hasOwnProperty(r)&&(f=t[r],n.formDataAppender?n.formDataAppender(u,r,f):i(u,f,r));return u})}return t||(n=e(n)),n._isDigested||(n._isDigested=!0,s()),f(n)};this.http=function(t){return t=e(t),t.transformRequest=t.transformRequest||function(t){return window.ArrayBuffer&&t instanceof window.ArrayBuffer||t instanceof window.Blob?t:n.defaults.transformRequest[0].apply(this,arguments)},t._chunkSize=r.translateScalars(t.resumeChunkSize),t._chunkSize=t._chunkSize?parseInt(t._chunkSize.toString()):null,f(t)};this.translateScalars=function(n){if(angular.isString(n)){if(n.search(/kb/i)===n.length-2)return parseFloat(1024*n.substring(0,n.length-2));if(n.search(/mb/i)===n.length-2)return parseFloat(1048576*n.substring(0,n.length-2));if(n.search(/gb/i)===n.length-2)return parseFloat(1073741824*n.substring(0,n.length-2));if(n.search(/b/i)===n.length-1||n.search(/s/i)===n.length-1)return parseFloat(n.substring(0,n.length-1));if(n.search(/m/i)===n.length-1)return parseFloat(60*n.substring(0,n.length-1));if(n.search(/h/i)===n.length-1)return parseFloat(3600*n.substring(0,n.length-1))}return n};this.urlToBlob=function(i){var r=t.defer();return n({url:i,method:"get",responseType:"arraybuffer"}).then(function(n){var f=new Uint8Array(n.data),e=n.headers("content-type")||"image/WebP",t=new window.Blob([f],{type:e}),u=i.match(/.*\/(.+?)(\?.*)?$/);u.length>1&&(t.name=u[1]);r.resolve(t)},function(n){r.reject(n)}),r.promise};this.setDefaults=function(n){this.defaults=n||{}};this.defaults={};this.version=ngFileUpload.version}]);ngFileUpload.service("Upload",["$parse","$timeout","$compile","$q","UploadExif",function(n,t,i,r,u){function o(n,t,i){var u=[f.emptyPromise()];return angular.forEach(n,function(r,e){0===r.type.indexOf("image/jpeg")&&f.attrGetter("ngfFixOrientation",t,i,{$file:r})&&u.push(f.happyPromise(f.applyExifRotation(r),r).then(function(t){n.splice(e,1,t)}))}),r.all(u)}function s(n,t,i,u){var o=f.attrGetter("ngfResize",t,i),s;return!o||!f.isResizeSupported()||!n.length?f.emptyPromise():o instanceof Function?(s=r.defer(),o(n).then(function(r){e(r,n,t,i,u).then(function(n){s.resolve(n)},function(n){s.reject(n)})},function(n){s.reject(n)})):e(o,n,t,i,u)}function e(n,t,i,u,e){function h(r,o){if(0===r.type.indexOf("image")){if(n.pattern&&!f.validatePattern(r,n.pattern))return;n.resizeIf=function(n,t){return f.attrGetter("ngfResizeIf",i,u,{$width:n,$height:t,$file:r})};var h=f.resize(r,n);s.push(h);h.then(function(n){t.splice(o,1,n)},function(n){r.$error="resize";(r.$errorMessages=r.$errorMessages||{}).resize=!0;r.$errorParam=(n?(n.message?n.message:n)+": ":"")+(r&&r.name);e.$ngfValidations.push({name:"resize",valid:!1});f.applyModelValidation(e,t)})}}for(var s=[f.emptyPromise()],o=0;o<t.length;o++)h(t[o],o);return r.all(s)}var f=u;return f.getAttrWithDefaults=function(n,t){if(null!=n[t])return n[t];var i=f.defaults[t];return null==i?i:angular.isString(i)?i:JSON.stringify(i)},f.attrGetter=function(t,i,r,u){var f=this.getAttrWithDefaults(i,t);if(!r)return f;try{return u?n(f)(r,u):n(f)(r)}catch(e){if(t.search(/min|max|pattern/i))return f;throw e;}},f.shouldUpdateOn=function(n,t,i){var r=f.attrGetter("ngfModelOptions",t,i);return r&&r.updateOn?r.updateOn.split(" ").indexOf(n)>-1:!0},f.emptyPromise=function(){var n=r.defer(),i=arguments;return t(function(){n.resolve.apply(n,i)}),n.promise},f.rejectPromise=function(){var n=r.defer(),i=arguments;return t(function(){n.reject.apply(n,i)}),n.promise},f.happyPromise=function(n,i){var u=r.defer();return n.then(function(n){u.resolve(n)},function(n){t(function(){throw n;});u.resolve(i)}),u.promise},f.updateModel=function(i,r,u,e,h,c,l){function tt(o,s,h,l,a){var v,y,p;r.$$ngfPrevValidFiles=o;r.$$ngfPrevInvalidFiles=s;v=o&&o.length?o[0]:null;y=s&&s.length?s[0]:null;i&&(f.applyModelValidation(i,o),i.$setViewValue(a?v:o));e&&n(e)(u,{$files:o,$file:v,$newFiles:h,$duplicateFiles:l,$invalidFiles:s,$invalidFile:y,$event:c});p=f.attrGetter("ngfModelInvalid",r);p&&t(function(){n(p).assign(u,a?y:s)});t(function(){})}function rt(){function t(n,t){return n.name===t.name&&(n.$ngfOrigSize||n.size)===(t.$ngfOrigSize||t.size)&&n.type===t.type}function i(n){for(var i=0;i<p.length;i++)if(t(n,p[i]))return!0;for(i=0;i<d.length;i++)if(t(n,d[i]))return!0;return!1}if(h){a=[];b=[];for(var n=0;n<h.length;n++)i(h[n])?b.push(h[n]):a.push(h[n])}}function ut(n){return angular.isArray(n)?n:[n]}function it(){function n(){t(function(){tt(y?p.concat(v):v,y?d.concat(k):k,h,b,nt)},w&&w.debounce?w.debounce.change||w.debounce:0)}var e=g?a:v;s(e,r,u,i).then(function(){g?f.validate(a,y?p.length:0,i,r,u).then(function(t){v=t.validsFiles;k=t.invalidsFiles;n()}):n()},function(){for(var i,r,t=0;t<e.length;t++)i=e[t],"resize"===i.$error&&(r=v.indexOf(i),r>-1&&(v.splice(r,1),k.push(i)),n())})}var a,p,d,b=[],k=[],v=[],y,nt,g,w;p=r.$$ngfPrevValidFiles||[];d=r.$$ngfPrevInvalidFiles||[];i&&i.$modelValue&&(p=ut(i.$modelValue));y=f.attrGetter("ngfKeep",r,u);a=(h||[]).slice(0);("distinct"===y||f.attrGetter("ngfKeepDistinct",r,u)===!0)&&rt(r,u);nt=!y&&!f.attrGetter("ngfMultiple",r,u)&&!f.attrGetter("multiple",r);(!y||a.length)&&(f.attrGetter("ngfBeforeModelChange",r,u,{$files:h,$file:h&&h.length?h[0]:null,$newFiles:a,$duplicateFiles:b,$event:c}),g=f.attrGetter("ngfValidateAfterResize",r,u),w=f.attrGetter("ngfModelOptions",r,u),f.validate(a,y?p.length:0,i,r,u).then(function(n){l?tt(a,[],h,b,nt):(w&&w.allowInvalid||g?v=a:(v=n.validFiles,k=n.invalidFiles),f.attrGetter("ngfFixOrientation",r,u)&&f.isExifSupported()?o(v,r,u).then(function(){it()}):it())}))},f}]);ngFileUpload.directive("ngfSelect",["$parse","$timeout","$compile","Upload",function(n,t,i,r){function f(n){var t=n.match(/Android[^\d]*(\d+)\.(\d+)/),i;return t&&t.length>2?(i=r.defaults.androidFixMinorVersion||4,parseInt(t[1])<4||parseInt(t[1])===i&&parseInt(t[2])<i):-1===n.indexOf("Chrome")&&/.*Windows.*Safari.*/.test(n)}function e(n,t,i,r,e,o,s,h){function v(){return"input"===t[0].tagName.toLowerCase()&&i.type&&"file"===i.type.toLowerCase()}function p(){return l("ngfChange")||l("ngfSelect")}function y(t){var u,f,e;if(h.shouldUpdateOn("change",i,n)){if(u=t.__files_||t.target&&t.target.files,f=[],!u)return;for(e=0;e<u.length;e++)f.push(u[e]);h.updateModel(r,i,n,p(),f.length?f:null,t)}}function g(n,r){function e(t){n.attr("id","ngf-"+t);r.attr("id","ngf-label-"+t)}for(var u,f=0;f<t[0].attributes.length;f++)u=t[0].attributes[f],"type"!==u.name&&"class"!==u.name&&"style"!==u.name&&("id"===u.name?(e(u.value),a.push(i.$observe("id",e))):n.attr(u.name,u.value||"required"!==u.name&&"multiple"!==u.name?u.value:u.name))}function nt(){if(v())return t;var i=angular.element('<input type="file">'),n=angular.element("<label>upload<\/label>");return n.css("visibility","hidden").css("position","absolute").css("overflow","hidden").css("width","0px").css("height","0px").css("border","none").css("margin","0px").css("padding","0px").attr("tabindex","-1"),g(i,n),u.push({el:t,ref:n}),document.body.appendChild(n.append(i)[0]),i}function tt(i){if(t.attr("disabled"))return!1;if(!l("ngfSelectDisabled",n)){var r=it(i);if(null!=r)return r;w(i);try{v()||document.body.contains(c[0])||(u.push({el:t,ref:c.parent()}),document.body.appendChild(c.parent()[0]),c.bind("change",y))}catch(e){}return f(navigator.userAgent)?setTimeout(function(){c[0].click()},0):c[0].click(),!1}}function it(n){var t=n.changedTouches||n.originalEvent&&n.originalEvent.changedTouches,i,r;if(t)return"touchstart"===n.type?(d=t[0].clientX,k=t[0].clientY,!0):"touchend"===n.type&&(i=t[0].clientX,r=t[0].clientY,Math.abs(i-d)>20||Math.abs(r-k)>20)?(n.stopPropagation(),n.preventDefault(),!1):!0}function w(t){h.shouldUpdateOn("click",i,n)&&c.val()&&(c.val(null),h.updateModel(r,i,n,p(),null,t,!0))}function b(n){if(c&&!c.attr("__ngf_ie10_Fix_")){if(!c[0].parentNode)return void(c=null);n.preventDefault();n.stopPropagation();c.unbind("click");var t=c.clone();return c.replaceWith(t),c=t,c.attr("__ngf_ie10_Fix_","true"),c.bind("change",y),c.bind("click",b),c[0].click(),!1}c.removeAttr("__ngf_ie10_Fix_")}var l=function(n,t){return h.attrGetter(n,i,t)},a;h.registerModelChangeValidator(r,i,n);a=[];l("ngfMultiple")&&a.push(n.$watch(l("ngfMultiple"),function(){c.attr("multiple",l("ngfMultiple",n))}));l("ngfCapture")&&a.push(n.$watch(l("ngfCapture"),function(){c.attr("capture",l("ngfCapture",n))}));l("ngfAccept")&&a.push(n.$watch(l("ngfAccept"),function(){c.attr("accept",l("ngfAccept",n))}));a.push(i.$observe("accept",function(){c.attr("accept",l("accept"))}));var k=0,d=0,c=t;v()||(c=nt());c.bind("change",y);v()?t.bind("click",w):t.bind("click touchstart touchend",tt);-1!==navigator.appVersion.indexOf("MSIE 10")&&c.bind("click",b);r&&r.$formatters.push(function(n){return(null==n||0===n.length)&&c.val()&&c.val(null),n});n.$on("$destroy",function(){v()||c.parent().remove();angular.forEach(a,function(n){n()})});o(function(){for(var t,n=0;n<u.length;n++)t=u[n],document.body.contains(t.el[0])||(u.splice(n,1),t.ref.remove())});window.FileAPI&&window.FileAPI.ngfFixIE&&window.FileAPI.ngfFixIE(t,c,y)}var u=[];return{restrict:"AEC",require:"?ngModel",link:function(u,f,o,s){e(u,f,o,s,n,t,i,r)}}}]),function(){function t(n){return"img"===n.tagName.toLowerCase()?"image":"audio"===n.tagName.toLowerCase()?"audio":"video"===n.tagName.toLowerCase()?"video":/./}function n(n,i,r,u,f,e,o,s){function h(t){var e=n.attrGetter("ngfNoObjectUrl",f,r);n.dataUrl(t,e)["finally"](function(){i(function(){var n=(e?t.$ngfDataUrl:t.$ngfBlobUrl)||t.$ngfDataUrl;s?u.css("background-image","url('"+(n||"")+"')"):u.attr("src",n);n?u.removeClass("ng-hide"):u.addClass("ng-hide")})})}i(function(){var i=r.$watch(f[e],function(i){var c=o,l;return"ngfThumbnail"===e&&(c||(c={width:u[0].naturalWidth||u[0].clientWidth,height:u[0].naturalHeight||u[0].clientHeight}),0===c.width&&window.getComputedStyle)&&(l=getComputedStyle(u[0]),l.width&&l.width.indexOf("px")>-1&&l.height&&l.height.indexOf("px")>-1&&(c={width:parseInt(l.width.slice(0,-2)),height:parseInt(l.height.slice(0,-2))})),angular.isString(i)?(u.removeClass("ng-hide"),s?u.css("background-image","url('"+i+"')"):u.attr("src",i)):void(!i||!i.type||0!==i.type.search(t(u[0]))||s&&0!==i.type.indexOf("image")?u.addClass("ng-hide"):c&&n.isResizeSupported()?(c.resizeIf=function(t,u){return n.attrGetter("ngfResizeIf",f,r,{$width:t,$height:u,$file:i})},n.resize(i,c).then(function(n){h(n)},function(n){throw n;})):h(i))});r.$on("$destroy",function(){i()})})}ngFileUpload.service("UploadDataUrl",["UploadBase","$timeout","$q",function(n,t,i){var r=n;return r.base64DataUrl=function(n){if(angular.isArray(n)){var t=i.defer(),u=0;return angular.forEach(n,function(i){r.dataUrl(i,!0)["finally"](function(){if(u++,u===n.length){var i=[];angular.forEach(n,function(n){i.push(n.$ngfDataUrl)});t.resolve(i,n)}})}),t.promise}return r.dataUrl(n,!0)},r.dataUrl=function(n,u){var e,f;return n?u&&null!=n.$ngfDataUrl||!u&&null!=n.$ngfBlobUrl?r.emptyPromise(u?n.$ngfDataUrl:n.$ngfBlobUrl,n):(e=u?n.$$ngfDataUrlPromise:n.$$ngfBlobUrlPromise,e)?e:(f=i.defer(),t(function(){var i,e,o;if(window.FileReader&&n&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 8")||n.size<2e4)&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 9")||n.size<4e6))if(i=window.URL||window.webkitURL,i&&i.createObjectURL&&!u){try{e=i.createObjectURL(n)}catch(s){return void t(function(){n.$ngfBlobUrl="";f.reject()})}t(function(){var u,o,t;if(n.$ngfBlobUrl=e,e)for(f.resolve(e,n),r.blobUrls=r.blobUrls||[],r.blobUrlsTotalSize=r.blobUrlsTotalSize||0,r.blobUrls.push({url:e,size:n.size}),r.blobUrlsTotalSize+=n.size||0,u=r.defaults.blobUrlsMaxMemory||268435456,o=r.defaults.blobUrlsMaxQueueSize||200;(r.blobUrlsTotalSize>u||r.blobUrls.length>o)&&r.blobUrls.length>1;)t=r.blobUrls.splice(0,1)[0],i.revokeObjectURL(t.url),r.blobUrlsTotalSize-=t.size})}else o=new FileReader,o.onload=function(i){t(function(){n.$ngfDataUrl=i.target.result;f.resolve(i.target.result,n);t(function(){delete n.$ngfDataUrl},1e3)})},o.onerror=function(){t(function(){n.$ngfDataUrl="";f.reject()})},o.readAsDataURL(n);else t(function(){n[u?"$ngfDataUrl":"$ngfBlobUrl"]="";f.reject()})}),e=u?n.$$ngfDataUrlPromise=f.promise:n.$$ngfBlobUrlPromise=f.promise,e["finally"](function(){delete n[u?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]}),e):r.emptyPromise(n,n)},r}]);ngFileUpload.directive("ngfSrc",["Upload","$timeout",function(t,i){return{restrict:"AE",link:function(r,u,f){n(t,i,r,u,f,"ngfSrc",t.attrGetter("ngfResize",f,r),!1)}}}]);ngFileUpload.directive("ngfBackground",["Upload","$timeout",function(t,i){return{restrict:"AE",link:function(r,u,f){n(t,i,r,u,f,"ngfBackground",t.attrGetter("ngfResize",f,r),!0)}}}]);ngFileUpload.directive("ngfThumbnail",["Upload","$timeout",function(t,i){return{restrict:"AE",link:function(r,u,f){var e=t.attrGetter("ngfSize",f,r);n(t,i,r,u,f,"ngfThumbnail",e,t.attrGetter("ngfAsBackground",f,r))}}}]);ngFileUpload.config(["$compileProvider",function(n){n.imgSrcSanitizationWhitelist&&n.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/);n.aHrefSanitizationWhitelist&&n.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/)}]);ngFileUpload.filter("ngfDataUrl",["UploadDataUrl","$sce",function(n,t){return function(i,r,u){if(angular.isString(i))return t.trustAsResourceUrl(i);var f=i&&((r?i.$ngfDataUrl:i.$ngfBlobUrl)||i.$ngfDataUrl);return i&&!f?(!i.$ngfDataUrlFilterInProgress&&angular.isObject(i)&&(i.$ngfDataUrlFilterInProgress=!0,n.dataUrl(i,r)),""):(i&&delete i.$ngfDataUrlFilterInProgress,(i&&f?u?t.trustAsResourceUrl(f):f:i)||"")}}])}();ngFileUpload.service("UploadValidate",["UploadDataUrl","$q","$timeout",function(n,t,i){function u(n){var t="",f=[],i,r,e;if(n.length>2&&"/"===n[0]&&"/"===n[n.length-1])t=n.substring(1,n.length-1);else if(i=n.split(","),i.length>1)for(r=0;r<i.length;r++)e=u(i[r]),e.regexp?(t+="("+e.regexp+")",r<i.length-1&&(t+="|")):f=f.concat(e.excludes);else 0===n.indexOf("!")?f.push("^((?!"+u(n.substring(1)).regexp+").)*$"):(0===n.indexOf(".")&&(n="*"+n),t="^"+n.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$",t=t.replace(/\\\*/g,".*").replace(/\\\?/g,"."));return{regexp:t,excludes:f}}function f(n,t){null==t||n.$dirty||(n.$setDirty?n.$setDirty():n.$dirty=!0)}var r=n;return r.validatePattern=function(n,t){var i,r,f,e,o;if(!t)return!0;for(i=u(t),r=!0,i.regexp&&i.regexp.length&&(f=new RegExp(i.regexp,"i"),r=null!=n.type&&f.test(n.type)||null!=n.name&&f.test(n.name)),e=i.excludes.length;e--;)o=new RegExp(i.excludes[e],"i"),r=r&&(null==n.type||o.test(n.type))&&(null==n.name||o.test(n.name));return r},r.ratioToFloat=function(n){var t=n.toString(),i=t.search(/[x:]/i);return i>-1?parseFloat(t.substring(0,i))/parseFloat(t.substring(i+1)):parseFloat(t)},r.registerModelChangeValidator=function(n,t,i){n&&n.$formatters.push(function(u){if(n.$dirty){var f=u;u&&!angular.isArray(u)&&(f=[u]);r.validate(f,0,n,t,i).then(function(){r.applyModelValidation(n,f)})}return u})},r.applyModelValidation=function(n,t){f(n,t);angular.forEach(n.$ngfValidations,function(t){n.$setValidity(t.name,t.valid)})},r.getValidationAttr=function(n,t,i,u,f){var s="ngf"+i[0].toUpperCase()+i.substr(1),e=r.attrGetter(s,n,t,{$file:f}),o;return null==e&&(e=r.attrGetter("ngfValidate",n,t,{$file:f}))&&(o=(u||i).split("."),e=e[o[0]],o.length>1&&(e=e&&e[o[1]])),e},r.validate=function(n,i,u,f,e){function c(t,i,o){var c,a,s,v;if(n){for(c=n.length,a=null;c--;)s=n[c],s&&(v=r.getValidationAttr(f,e,t,i,s),null!=v&&(o(s,v,c)||(-1===p.indexOf(t)?(s.$error=t,(s.$errorMessages=s.$errorMessages||{})[t]=!0,s.$errorParam=v,-1===h.indexOf(s)&&h.push(s),l||n.splice(c,1),a=!1):n.splice(c,1))));null!==a&&u.$ngfValidations.push({name:t,valid:a})}}function s(i,o,s,c,v){function y(t,r,u){function f(f){var e,o;f()?-1===p.indexOf(i)?((r.$error=i,(r.$errorMessages=r.$errorMessages||{})[i]=!0,r.$errorParam=u,-1===h.indexOf(r)&&h.push(r),l)||(e=n.indexOf(r),e>-1&&n.splice(e,1)),t.resolve(!1)):(o=n.indexOf(r),o>-1&&n.splice(o,1),t.resolve(!0)):t.resolve(!0)}null!=u?c(r,u).then(function(n){f(function(){return!v(n,u)})},function(){f(function(){return a("ngfValidateForce",{$file:r})})}):t.resolve(!0)}var b=[r.emptyPromise(!0)],w;return n&&(n=void 0===n.length?[n]:n,angular.forEach(n,function(n){var u=t.defer();return b.push(u.promise),!s||null!=n.type&&0===n.type.search(s)?void("dimensions"===i&&null!=r.attrGetter("ngfDimensions",f)?r.imageDimensions(n).then(function(t){y(u,n,a("ngfDimensions",{$file:n,$width:t.width,$height:t.height}))},function(){u.resolve(!1)}):"duration"===i&&null!=r.attrGetter("ngfDuration",f)?r.mediaDuration(n).then(function(t){y(u,n,a("ngfDuration",{$file:n,$duration:t}))},function(){u.resolve(!1)}):y(u,n,r.getValidationAttr(f,e,i,o,n))):void u.resolve(!0)})),w=t.defer(),t.all(b).then(function(n){for(var t=!0,r=0;r<n.length;r++)if(!n[r]){t=!1;break}u.$ngfValidations.push({name:i,valid:t});w.resolve(t)}),w.promise}var h,v,y,o;u=u||{};u.$ngfValidations=u.$ngfValidations||[];angular.forEach(u.$ngfValidations,function(n){n.valid=!0});var a=function(n,t){return r.attrGetter(n,f,e,t)},p=(r.attrGetter("ngfIgnoreInvalid",f,e)||"").split(" "),l=r.attrGetter("ngfRunAllValidations",f,e);return null==n||0===n.length?r.emptyPromise({validFiles:n,invalidFiles:[]}):(n=void 0===n.length?[n]:n.slice(0),h=[],c("pattern",null,r.validatePattern),c("minSize","size.min",function(n,t){return n.size+.1>=r.translateScalars(t)}),c("maxSize","size.max",function(n,t){return n.size-.1<=r.translateScalars(t)}),v=0,c("maxTotalSize",null,function(t,i){return v+=t.size,v>r.translateScalars(i)?(n.splice(0,n.length),!1):!0}),c("validateFn",null,function(n,t){return t===!0||null===t||""===t}),!n.length)?r.emptyPromise({validFiles:[],invalidFiles:h}):(y=t.defer(),o=[],o.push(s("maxHeight","height.max",/image/,this.imageDimensions,function(n,t){return n.height<=t})),o.push(s("minHeight","height.min",/image/,this.imageDimensions,function(n,t){return n.height>=t})),o.push(s("maxWidth","width.max",/image/,this.imageDimensions,function(n,t){return n.width<=t})),o.push(s("minWidth","width.min",/image/,this.imageDimensions,function(n,t){return n.width>=t})),o.push(s("dimensions",null,/image/,function(n,t){return r.emptyPromise(t)},function(n){return n})),o.push(s("ratio",null,/image/,this.imageDimensions,function(n,t){for(var u=t.toString().split(","),f=!1,i=0;i<u.length;i++)Math.abs(n.width/n.height-r.ratioToFloat(u[i]))<.01&&(f=!0);return f})),o.push(s("maxRatio","ratio.max",/image/,this.imageDimensions,function(n,t){return n.width/n.height-r.ratioToFloat(t)<.0001})),o.push(s("minRatio","ratio.min",/image/,this.imageDimensions,function(n,t){return n.width/n.height-r.ratioToFloat(t)>-.0001})),o.push(s("maxDuration","duration.max",/audio|video/,this.mediaDuration,function(n,t){return n<=r.translateScalars(t)})),o.push(s("minDuration","duration.min",/audio|video/,this.mediaDuration,function(n,t){return n>=r.translateScalars(t)})),o.push(s("duration",null,/audio|video/,function(n,t){return r.emptyPromise(t)},function(n){return n})),o.push(s("validateAsyncFn",null,null,function(n,t){return t},function(n){return n===!0||null===n||""===n})),t.all(o).then(function(){var t,r;if(l)for(t=0;t<n.length;t++)r=n[t],r.$error&&n.splice(t--,1);l=!1;c("maxFiles",null,function(n,t,r){return t>i+r});y.resolve({validFiles:n,invalidFiles:h})}),y.promise)},r.imageDimensions=function(n){var f,u;return n.$ngfWidth&&n.$ngfHeight?(f=t.defer(),i(function(){f.resolve({width:n.$ngfWidth,height:n.$ngfHeight})}),f.promise):n.$ngfDimensionPromise?n.$ngfDimensionPromise:(u=t.defer(),i(function(){return 0!==n.type.indexOf("image")?void u.reject("not image"):void r.dataUrl(n).then(function(t){function f(){var t=r[0].naturalWidth||r[0].clientWidth,i=r[0].naturalHeight||r[0].clientHeight;r.remove();n.$ngfWidth=t;n.$ngfHeight=i;u.resolve({width:t,height:i})}function e(){r.remove();u.reject("load error")}function o(){i(function(){r[0].parentNode&&(r[0].clientWidth?f():s++>10?e():o())},1e3)}var r=angular.element("<img>").attr("src",t).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important"),s;r.on("load",f);r.on("error",e);s=0;o();angular.element(document.getElementsByTagName("body")[0]).append(r)},function(){u.reject("load error")})}),n.$ngfDimensionPromise=u.promise,n.$ngfDimensionPromise["finally"](function(){delete n.$ngfDimensionPromise}),n.$ngfDimensionPromise)},r.mediaDuration=function(n){var f,u;return n.$ngfDuration?(f=t.defer(),i(function(){f.resolve(n.$ngfDuration)}),f.promise):n.$ngfDurationPromise?n.$ngfDurationPromise:(u=t.defer(),i(function(){return 0!==n.type.indexOf("audio")&&0!==n.type.indexOf("video")?void u.reject("not media"):void r.dataUrl(n).then(function(t){function f(){var t=r[0].duration;n.$ngfDuration=t;r.remove();u.resolve(t)}function e(){r.remove();u.reject("load error")}function o(){i(function(){r[0].parentNode&&(r[0].duration?f():s>10?e():o())},1e3)}var r=angular.element(0===n.type.indexOf("audio")?"<audio>":"<video>").attr("src",t).css("visibility","none").css("position","fixed"),s;r.on("loadedmetadata",f);r.on("error",e);s=0;o();angular.element(document.body).append(r)},function(){u.reject("load error")})}),n.$ngfDurationPromise=u.promise,n.$ngfDurationPromise["finally"](function(){delete n.$ngfDurationPromise}),n.$ngfDurationPromise)},r}]);ngFileUpload.service("UploadResize",["UploadValidate","$q",function(n,t){var i=n,r=function(n,t,i,r,u){var f=u?Math.max(i/n,r/t):Math.min(i/n,r/t);return{width:n*f,height:t*f,marginX:n*f-i,marginY:t*f-r}},u=function(n,u,f,e,o,s,h,c){var a=t.defer(),v=document.createElement("canvas"),l=document.createElement("img");return l.setAttribute("style","visibility:hidden;position:fixed;z-index:-100000"),document.body.appendChild(l),l.onload=function(){var t=l.width,y=l.height,p,w,n,b;if(l.parentNode.removeChild(l),null!=c&&c(t,y)===!1)return void a.reject("resizeIf");try{s&&(p=i.ratioToFloat(s),w=t/y,p>w?(u=t,f=u/p):(f=y,u=f*p));u||(u=t);f||(f=y);n=r(t,y,u,f,h);v.width=Math.min(n.width,u);v.height=Math.min(n.height,f);b=v.getContext("2d");b.drawImage(l,Math.min(0,-n.marginX/2),Math.min(0,-n.marginY/2),n.width,n.height);a.resolve(v.toDataURL(o||"image/WebP",e||.934))}catch(k){a.reject(k)}},l.onerror=function(){l.parentNode.removeChild(l);a.reject()},l.src=n,a.promise};return i.dataUrltoBlob=function(n,t,i){for(var u,f=n.split(","),s=f[0].match(/:(.*?);/)[1],e=atob(f[1]),r=e.length,o=new Uint8Array(r);r--;)o[r]=e.charCodeAt(r);return u=new window.Blob([o],{type:s}),u.name=t,u.$ngfOrigSize=i,u},i.isResizeSupported=function(){var n=document.createElement("canvas");return window.atob&&n.getContext&&n.getContext("2d")&&window.Blob},i.isResizeSupported()&&Object.defineProperty(window.Blob.prototype,"name",{get:function(){return this.$ngfName},set:function(n){this.$ngfName=n},configurable:!0}),i.resize=function(n,r){if(0!==n.type.indexOf("image"))return i.emptyPromise(n);var f=t.defer();return i.dataUrl(n,!0).then(function(t){u(t,r.width,r.height,r.quality,r.type||n.type,r.ratio,r.centerCrop,r.resizeIf).then(function(u){if("image/jpeg"===n.type&&r.restoreExif!==!1)try{u=i.restoreExif(t,u)}catch(e){setTimeout(function(){throw e;},1)}try{var o=i.dataUrltoBlob(u,n.name,n.size);f.resolve(o)}catch(e){f.reject(e)}},function(t){"resizeIf"===t&&f.resolve(n);f.reject(t)})},function(n){f.reject(n)}),f.promise},i}]),function(){function t(t,i,r,u,f,e,o,s,h,c){function v(){return i.attr("disabled")||l("ngfDropDisabled",t)}function w(n,i,r){if(n){var u;try{u=n&&n.getData&&n.getData("text/html")}catch(f){}tt(n.items,n.files,l("ngfAllowDir",t)!==!1,l("multiple")||l("ngfMultiple",t)).then(function(n){n.length?b(n,i):g(r,u).then(function(n){b(n,i)})})}}function b(n,i){s.updateModel(u,r,t,l("ngfChange")||l("ngfDrop"),n,i)}function g(n,i){var u,e,o,f;return!s.shouldUpdateOn(n,r,t)||"string"!=typeof i?s.rejectPromise([]):(u=[],i.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi,function(n,t,i){u.push(i)}),e=[],o=[],u.length)?(angular.forEach(u,function(n){e.push(s.urlToBlob(n).then(function(n){o.push(n)}))}),f=c.defer(),c.all(e).then(function(){f.resolve(o)},function(n){f.reject(n)}),f.promise):s.emptyPromise()}function nt(n,t,i,r){var u=l("ngfDragOverClass",n,{$event:i}),f="dragover",e,h,o;if(angular.isString(u))f=u;else if(u&&(u.delay&&(d=u.delay),u.accept||u.reject))if(e=i.dataTransfer.items,null!=e&&e.length)for(h=u.pattern||l("ngfPattern",n,{$event:i}),o=e.length;o--;){if(!s.validatePattern(e[o],h)){f=u.reject;break}f=u.accept}else f=u.accept;r(f)}function tt(n,i,u,f){function nt(n,t){var i=c.defer(),u,r;if(null!=n)if(n.isDirectory){u=[s.emptyPromise()];g&&(r={type:"directory"},r.name=r.path=(t||"")+n.name,e.push(r));var h=n.createReader(),f=[],o=function(){h.readEntries(function(r){try{r.length?(f=f.concat(Array.prototype.slice.call(r||[],0)),o()):(angular.forEach(f.slice(0),function(i){e.length<=y&&a>=v&&u.push(nt(i,(t?t:"")+n.name+"/"))}),c.all(u).then(function(){i.resolve()},function(n){i.reject(n)}))}catch(s){i.reject(s)}},function(n){i.reject(n)})};o()}else n.file(function(n){try{n.path=(t?t:"")+n.name;g&&(n=s.rename(n,n.path));e.push(n);v+=n.size;i.resolve()}catch(r){i.reject(r)}},function(n){i.reject(n)});return i.promise}var y=s.getValidationAttr(r,t,"maxFiles"),a,h,b,k,d,p,w;null==y&&(y=Number.MAX_VALUE);a=s.getValidationAttr(r,t,"maxTotalSize");null==a&&(a=Number.MAX_VALUE);var g=l("ngfIncludeDir",t),e=[],v=0,tt=[s.emptyPromise()];if(n&&n.length>0&&"file:"!==o.location.protocol)for(h=0;h<n.length;h++){if(n[h].webkitGetAsEntry&&n[h].webkitGetAsEntry()&&n[h].webkitGetAsEntry().isDirectory){if(b=n[h].webkitGetAsEntry(),b.isDirectory&&!u)continue;null!=b&&tt.push(nt(b))}else k=n[h].getAsFile(),null!=k&&(e.push(k),v+=k.size);if(e.length>y||v>a||!f&&e.length>0)break}else if(null!=i)for(d=0;d<i.length;d++)if(p=i.item(d),(p.type||p.size>0)&&(e.push(p),v+=p.size),e.length>y||v>a||!f&&e.length>0)break;return w=c.defer(),c.all(tt).then(function(){if(f||g||!e.length)w.resolve(e);else{for(var n=0;e[n]&&"directory"===e[n].type;)n++;w.resolve([e[n]])}},function(n){w.reject(n)}),w.promise}var p=n(),l=function(n,t,i){return s.attrGetter(n,r,t,i)};if(l("dropAvailable")&&e(function(){t[l("dropAvailable")]?t[l("dropAvailable")].value=p:t[l("dropAvailable")]=p}),!p)return void(l("ngfHideOnDropNotAvailable",t)===!0&&i.css("display","none"));null==l("ngfSelect")&&s.registerModelChangeValidator(u,r,t);var a,k=null,y=f(l("ngfStopPropagation")),d=1;i[0].addEventListener("dragover",function(n){if(!v()&&s.shouldUpdateOn("drop",r,t)){if(n.preventDefault(),y(t)&&n.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var u=n.dataTransfer.effectAllowed;n.dataTransfer.dropEffect="move"===u||"linkMove"===u?"move":"copy"}e.cancel(k);a||(a="C",nt(t,r,n,function(r){a=r;i.addClass(a);l("ngfDrag",t,{$isDragging:!0,$class:a,$event:n})}))}},!1);i[0].addEventListener("dragenter",function(n){!v()&&s.shouldUpdateOn("drop",r,t)&&(n.preventDefault(),y(t)&&n.stopPropagation())},!1);i[0].addEventListener("dragleave",function(n){!v()&&s.shouldUpdateOn("drop",r,t)&&(n.preventDefault(),y(t)&&n.stopPropagation(),k=e(function(){a&&i.removeClass(a);a=null;l("ngfDrag",t,{$isDragging:!1,$event:n})},d||100))},!1);i[0].addEventListener("drop",function(n){!v()&&s.shouldUpdateOn("drop",r,t)&&(n.preventDefault(),y(t)&&n.stopPropagation(),a&&i.removeClass(a),a=null,w(n.dataTransfer,n,"dropUrl"))},!1);i[0].addEventListener("paste",function(n){navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&l("ngfEnableFirefoxPaste",t)&&n.preventDefault();!v()&&s.shouldUpdateOn("paste",r,t)&&w(n.clipboardData||n.originalEvent.clipboardData,n,"pasteUrl")},!1);navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&l("ngfEnableFirefoxPaste",t)&&(i.attr("contenteditable",!0),i.on("keypress",function(n){n.metaKey||n.ctrlKey||n.preventDefault()}))}function n(){var n=document.createElement("div");return"draggable"in n&&"ondrop"in n&&!/Edge\/12./i.test(navigator.userAgent)}ngFileUpload.directive("ngfDrop",["$parse","$timeout","$window","Upload","$http","$q",function(n,i,r,u,f,e){return{restrict:"AEC",require:"?ngModel",link:function(o,s,h,c){t(o,s,h,c,n,i,r,u,f,e)}}}]);ngFileUpload.directive("ngfNoFileDrop",function(){return function(t,i){n()&&i.css("display","none")}});ngFileUpload.directive("ngfDropAvailable",["$parse","$timeout","Upload",function(t,i,r){return function(u,f,e){if(n()){var o=t(r.attrGetter("ngfDropAvailable",e));i(function(){o(u);o.assign&&o.assign(u,!0)})}}}])}();ngFileUpload.service("UploadExif",["UploadResize","$q",function(n,t){function r(n,t,i,r){switch(t){case 2:return n.transform(-1,0,0,1,i,0);case 3:return n.transform(-1,0,0,-1,i,r);case 4:return n.transform(1,0,0,-1,0,r);case 5:return n.transform(0,1,1,0,0,0);case 6:return n.transform(0,1,-1,0,r,0);case 7:return n.transform(0,-1,-1,0,r,i);case 8:return n.transform(0,-1,1,0,0,i)}}function u(n){for(var i="",r=new Uint8Array(n),u=r.byteLength,t=0;u>t;t++)i+=String.fromCharCode(r[t]);return window.btoa(i)}var i=n;return i.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&i.isResizeSupported()},i.readOrientation=function(n){var i=t.defer(),r=new FileReader,u=n.slice?n.slice(0,65536):n;return r.readAsArrayBuffer(u),r.onerror=function(n){return i.reject(n)},r.onload=function(n){var u={orientation:1},r=new DataView(this.result),h,t,s,f,c,e,o;if(65496!==r.getUint16(0,!1))return i.resolve(u);for(h=r.byteLength,t=2;h>t;)if(s=r.getUint16(t,!1),t+=2,65505===s){if(1165519206!==r.getUint32(t+=2,!1))return i.resolve(u);for(f=18761===r.getUint16(t+=6,!1),t+=r.getUint32(t+4,f),c=r.getUint16(t,f),t+=2,e=0;c>e;e++)if(274===r.getUint16(t+12*e,f))return o=r.getUint16(t+12*e+8,f),o>=2&&8>=o&&(r.setUint16(t+12*e+8,1,f),u.fixedArrayBuffer=n.target.result),u.orientation=o,i.resolve(u)}else{if(65280!=(65280&s))break;t+=r.getUint16(t,!1)}return i.resolve(u)},i.promise},i.applyExifRotation=function(n){if(0!==n.type.indexOf("image/jpeg"))return i.emptyPromise(n);var f=t.defer();return i.readOrientation(n).then(function(t){return t.orientation<2||t.orientation>8?f.resolve(n):void i.dataUrl(n,!0).then(function(e){var s=document.createElement("canvas"),o=document.createElement("img");o.onload=function(){var h,e,c;try{s.width=t.orientation>4?o.height:o.width;s.height=t.orientation>4?o.width:o.height;h=s.getContext("2d");r(h,t.orientation,o.width,o.height);h.drawImage(o,0,0);e=s.toDataURL(n.type||"image/WebP",.934);e=i.restoreExif(u(t.fixedArrayBuffer),e);c=i.dataUrltoBlob(e,n.name);f.resolve(c)}catch(l){return f.reject(l)}};o.onerror=function(){f.reject()};o.src=e},function(n){f.reject(n)})},function(n){f.reject(n)}),f.promise},i.restoreExif=function(n,t){var i={};return i.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i.encode64=function(n){var u,t,o,s,f,h="",i="",r="",e=0;do u=n[e++],t=n[e++],i=n[e++],o=u>>2,s=(3&u)<<4|t>>4,f=(15&t)<<2|i>>6,r=63&i,isNaN(t)?f=r=64:isNaN(i)&&(r=64),h=h+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(f)+this.KEY_STR.charAt(r),u=t=i="",o=s=f=r="";while(e<n.length);return h},i.restore=function(n,t){n.match("data:image/jpeg;base64,")&&(n=n.replace("data:image/jpeg;base64,",""));var i=this.decode64(n),r=this.slice2Segments(i),u=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(u)},i.exifManipulation=function(n,t){var i=this.getExifArray(t),r=this.insertExif(n,i);return new Uint8Array(r)},i.getExifArray=function(n){for(var t,i=0;i<n.length;i++)if(t=n[i],255===t[0]&225===t[1])return t;return[]},i.insertExif=function(n,t){var f=n.replace("data:image/jpeg;base64,",""),r=this.decode64(f),u=r.indexOf(255,3),e=r.slice(0,u),o=r.slice(u),i=e;return i=i.concat(t),i=i.concat(o)},i.slice2Segments=function(n){for(var t=0,i=[];;){if(255===n[t]&218===n[t+1])break;if(255===n[t]&216===n[t+1])t+=2;else{var u=256*n[t+2]+n[t+3],r=t+u+2,f=n.slice(t,r);i.push(f);t=r}if(t>n.length)break}return i},i.decode64=function(n){var e,o,s,r,t,h="",u="",i=0,f=[];/[^A-Za-z0-9\+\/\=]/g.exec(n)&&console.log("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, NaNExpect errors in decoding.");n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");do s=this.KEY_STR.indexOf(n.charAt(i++)),r=this.KEY_STR.indexOf(n.charAt(i++)),t=this.KEY_STR.indexOf(n.charAt(i++)),u=this.KEY_STR.indexOf(n.charAt(i++)),e=s<<2|r>>4,o=(15&r)<<4|t>>2,h=(3&t)<<6|u,f.push(e),64!==t&&f.push(o),64!==u&&f.push(h),e=o=h="",s=r=t=u="";while(i<n.length);return f},i.restore(n,t)},i}])