116 lines
800 KiB
JavaScript
116 lines
800 KiB
JavaScript
|
/*!
|
||
|
* jQuery JavaScript Library v2.1.4
|
||
|
* http://jquery.com/
|
||
|
*
|
||
|
* Includes Sizzle.js
|
||
|
* http://sizzlejs.com/
|
||
|
*
|
||
|
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
|
||
|
* Released under the MIT license
|
||
|
* http://jquery.org/license
|
||
|
*
|
||
|
* Date: 2015-04-28T16:01Z
|
||
|
*/
|
||
|
!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e="length"in t&&t.length,n=Q.type(t);return"function"===n||Q.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function r(t,e,n){if(Q.isFunction(e))return Q.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return Q.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(st.test(e))return Q.filter(e,t,n);e=Q.filter(e,t)}return Q.grep(t,function(t){return Y.call(e,t)>=0!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e=ht[t]={};return Q.each(t.match(pt)||[],function(t,n){e[n]=!0}),e}function o(){K.removeEventListener("DOMContentLoaded",o,!1),t.removeEventListener("load",o,!1),Q.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Q.expando+s.uid++}function u(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(xt,"-$1").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:bt.test(n)?Q.parseJSON(n):n}catch(i){}yt.set(t,e,n)}else n=void 0;return n}function l(){return!0}function c(){return!1}function f(){try{return K.activeElement}catch(t){}}function d(t,e){return Q.nodeName(t,"table")&&Q.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function p(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function h(t){var e=jt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var n=0,r=t.length;r>n;n++)vt.set(t[n],"globalEval",!e||vt.get(e[n],"globalEval"))}function m(t,e){var n,r,i,a,o,s,u,l;if(1===e.nodeType){if(vt.hasData(t)&&(a=vt.access(t),o=vt.set(e,a),l=a.events)){delete o.handle,o.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)Q.event.add(e,i,l[i][n])}yt.hasData(t)&&(s=yt.access(t),u=Q.extend({},s),yt.set(e,u))}}function v(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&Q.nodeName(t,e)?Q.merge([t],n):n}function y(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Mt.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function b(e,n){var r,i=Q(n.createElement(e)).appendTo(n.body),a=t.getDefaultComputedStyle&&(r=t.getDefaultComputedStyle(i[0]))?r.display:Q.css(i[0],"display");return i.detach(),a}function x(t){var e=K,n=Ht[t];return n||(n=b(t,e),"none"!==n&&n||(qt=(qt||Q("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=qt[0].contentDocument,e.write(),e.close(),n=b(t,e),qt.detach()),Ht[t]=n),n}function $(t,e,n){var r,i,a,o,s=t.style;return n=n||Wt(t),n&&(o=n.getPropertyValue(e)||n[e]),n&&(""!==o||Q.contains(t.ownerDocument,t)||(o=Q.style(t,e)),Rt.test(o)&&Vt.test(e)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function w(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function k(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=Xt.length;i--;)if(e=Xt[i]+n,e in t)return e;return r}function M(t,e,n){var r=Ut.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function C(t,e,n,r,i){for(var a=n===(r?"border":"content")?4:"width"===e?1:0,o=0;4>a;a+=2)"margin"===n&&(o+=Q.css(t,n+wt[a],!0,i)),r?("content"===n&&(o-=Q.css(t,"padding"+wt[a],!0,i)),"margin"!==n&&(o-=Q.css(t,"border"+wt[a]+"Width",!0,i))):(o+=Q.css(t,"padding"+wt[a],!0,i),"padding"!==n&&(o+=Q.css(t,"border"+wt[a]+"Width",!0,i)));return o}function S(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,a=Wt(t),o="border-box"===Q.css(t,"boxSizing",!1,a);if(0>=i||null==i){if(i=$(t,e,a),(0>i||null==i)&&(i=t.style[e]),Rt.test(i
|
||
|
* Sizzle CSS Selector Engine v2.2.0-pre
|
||
|
* http://sizzlejs.com/
|
||
|
*
|
||
|
* Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
|
||
|
* Released under the MIT license
|
||
|
* http://jquery.org/license
|
||
|
*
|
||
|
* Date: 2014-12-16
|
||
|
*/
|
||
|
function(t){function e(t,e,n,r){var i,a,o,s,u,l,f,p,h,g;if((e?e.ownerDocument||e:H)!==O&&T(e),e=e||O,n=n||[],s=e.nodeType,"string"!=typeof t||!t||1!==s&&9!==s&&11!==s)return n;if(!r&&P){if(11!==s&&(i=yt.exec(t)))if(o=i[1]){if(9===s){if(a=e.getElementById(o),!a||!a.parentNode)return n;if(a.id===o)return n.push(a),n}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(o))&&L(e,a)&&a.id===o)return n.push(a),n}else{if(i[2])return J.apply(n,e.getElementsByTagName(t)),n;if((o=i[3])&&$.getElementsByClassName)return J.apply(n,e.getElementsByClassName(o)),n}if($.qsa&&(!F||!F.test(t))){if(p=f=q,h=e,g=1!==s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(l=C(t),(f=e.getAttribute("id"))?p=f.replace(xt,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",u=l.length;u--;)l[u]=p+d(l[u]);h=bt.test(t)&&c(e.parentNode)||e,g=l.join(",")}if(g)try{return J.apply(n,h.querySelectorAll(g)),n}catch(m){}finally{f||e.removeAttribute("id")}}}return A(t.replace(ut,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>w.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[q]=!0,t}function i(t){var e=O.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t,e){for(var n=t.split("|"),r=t.length;r--;)w.attrHandle[n[r]]=e}function o(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||B)-(~t.sourceIndex||B);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return r(function(e){return e=+e,r(function(n,r){for(var i,a=t([],n.length,e),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function d(t){for(var e=0,n=t.length,r="";n>e;e++)r+=t[e].value;return r}function p(t,e,n){var r=e.dir,i=n&&"parentNode"===r,a=R++;return e.first?function(e,n,a){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,a)}:function(e,n,o){var s,u,l=[V,a];if(o){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,o))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(u=e[q]||(e[q]={}),(s=u[r])&&s[0]===V&&s[1]===a)return l[2]=s[2];if(u[r]=l,l[2]=t(e,n,o))return!0}}}function h(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function g(t,n,r){for(var i=0,a=n.length;a>i;i++)e(t,n[i],r);return r}function m(t,e,n,r,i){for(var a,o=[],s=0,u=t.length,l=null!=e;u>s;s++)(a=t[s])&&(!n||n(a,r,i))&&(o.push(a),l&&e.push(s));return o}function v(t,e,n,i,a,o){return i&&!i[q]&&(i=v(i)),a&&!a[q]&&(a=v(a,o)),r(function(r,o,s,u){var l,c,f,d=[],p=[],h=o.length,v=r||g(e||"*",s.nodeType?[s]:s,[]),y=!t||!r&&e?v:m(v,d,t,s,u),b=n?a||(r?t:h||i)?[]:o:y;if(n&&n(y,b,s,u),i)for(l=m(b,p),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(b[p[c]]=!(y[p[c]]=f));if(r){if(a||t){if(a){for(l=[],c=b.length;c--;)(f=b[c])&&l.push(y[c]=f);a(null,b=[],l,u)}for(c=b.length;c--;)(f=b[c])&&(l=a?tt(r,f):d[c])>-1&&(r[l]=!(o[l]=f))}}else b=m(b===o?b.splice(h,b.length):b),a?a(null,o,b,u):J.apply(o,b)})}function y(t){for(var e,n,r,i=t.length,a=w.relative[t[0].type],o=a||w.relative[" "],s=a?1:0,u=p(function(t){return t===e},o,!0),l=p(function(t){return tt(e,t)>-1},o,!0),c=[function(t,n,r){var i=!a&&(r||n!==E)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];i>s;s++)if(n=w.relative[t[s].type])c=[p(h(c),n)];else{if(n=w.filter[t[s].type].apply(null,t[s].matches),n[q]){for(r=++s;i>r&&!w.relative[t[r].type];r++);return v(s>1&&h(c),s>1&&d(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(ut,"$1"),n,r>s&&y(t.slice(s,r)),i>r&&y(t=t.slice(r)),i>r&&d(t))}c.push(n)}return h(c)}function b(t,n){var i=n.length>0,a=t.length>0,o=function(r,o,s,u,l){var c,f,d,p=0,h="0",g=r&&[],v=[],y=E,b=r||a&&w.find.TAG("*",l),x=V+=null==y?1:Math.random()||.1,$=b.length;for(l&&(E=o!==O&&o);h!==$&&null!=(c=b[h]);h++){if(a&&c){for(f=0;d=t[f++];)if(d(c,o,s)){u.push(c);brea
|
||
|
n=null==n?[e]:Q.makeArray(n,[e]),f=Q.event.special[p]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!Q.isWindow(r)){for(u=f.delegateType||p,Et.test(u+p)||(o=o.parentNode);o;o=o.parentNode)d.push(o),s=o;s===(r.ownerDocument||K)&&d.push(s.defaultView||s.parentWindow||t)}for(a=0;(o=d[a++])&&!e.isPropagationStopped();)e.type=a>1?u:f.bindType||p,c=(vt.get(o,"events")||{})[e.type]&&vt.get(o,"handle"),c&&c.apply(o,n),c=l&&o[l],c&&c.apply&&Q.acceptData(o)&&(e.result=c.apply(o,n),e.result===!1&&e.preventDefault());return e.type=p,i||e.isDefaultPrevented()||f._default&&f._default.apply(d.pop(),n)!==!1||!Q.acceptData(r)||l&&Q.isFunction(r[p])&&!Q.isWindow(r)&&(s=r[l],s&&(r[l]=null),Q.event.triggered=p,r[p](),Q.event.triggered=void 0,s&&(r[l]=s)),e.result}},dispatch:function(t){t=Q.event.fix(t);var e,n,r,i,a,o=[],s=W.call(arguments),u=(vt.get(this,"events")||{})[t.type]||[],l=Q.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(o=Q.event.handlers.call(this,t,u),e=0;(i=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(a.namespace))&&(t.handleObj=a,t.data=a.data,r=((Q.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,a,o=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==t.type){for(r=[],n=0;s>n;n++)a=e[n],i=a.selector+" ",void 0===r[i]&&(r[i]=a.needsContext?Q(i,this).index(u)>=0:Q.find(i,this,null,[u]).length),r[i]&&r.push(a);r.length&&o.push({elem:u,handlers:r})}return s<e.length&&o.push({elem:this,handlers:e.slice(s)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,a=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||K,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===a||(t.which=1&a?1:2&a?3:4&a?2:0),t}},fix:function(t){if(t[Q.expando])return t;var e,n,r,i=t.type,a=t,o=this.fixHooks[i];for(o||(this.fixHooks[i]=o=At.test(i)?this.mouseHooks:St.test(i)?this.keyHooks:{}),r=o.props?this.props.concat(o.props):this.props,t=new Q.Event(a),e=r.length;e--;)n=r[e],t[n]=a[n];return t.target||(t.target=K),3===t.target.nodeType&&(t.target=t.target.parentNode),o.filter?o.filter(t,a):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==f()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===f()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&Q.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return Q.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=Q.extend(new Q.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?Q.event.trigger(i,null,e):Q.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},Q.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},Q.Event=function(t,e){return this instanceof Q.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?l:c):this.type=
|
||
|
r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=Q.ajaxSettings&&Q.ajaxSettings.traditional),Q.isArray(t)||t.jquery&&!Q.isPlainObject(t))Q.each(t,function(){i(this.name,this.value)});else for(n in t)H(n,t[n],e,i);return r.join("&").replace(ke,"+")},Q.fn.extend({serialize:function(){return Q.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Q.prop(this,"elements");return t?Q.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Q(this).is(":disabled")&&Ae.test(this.nodeName)&&!Se.test(t)&&(this.checked||!Mt.test(t))}).map(function(t,e){var n=Q(this).val();return null==n?null:Q.isArray(n)?Q.map(n,function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}}):{name:e.name,value:n.replace(Ce,"\r\n")}}).get()}}),Q.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Ee=0,De={},_e={0:200,1223:204},Te=Q.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in De)De[t]()}),Z.cors=!!Te&&"withCredentials"in Te,Z.ajax=Te=!!Te,Q.ajaxTransport(function(t){var e;return Z.cors||Te&&!t.crossDomain?{send:function(n,r){var i,a=t.xhr(),o=++Ee;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)a[i]=t.xhrFields[i];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)a.setRequestHeader(i,n[i]);e=function(t){return function(){e&&(delete De[o],e=a.onload=a.onerror=null,"abort"===t?a.abort():"error"===t?r(a.status,a.statusText):r(_e[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:void 0,a.getAllResponseHeaders()))}},a.onload=e(),a.onerror=e("error"),e=De[o]=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(s){if(e)throw s}},abort:function(){e&&e()}}:void 0}),Q.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return Q.globalEval(t),t}}}),Q.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Q.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=Q("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),K.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Oe=[],Ne=/(=)\?(?=&|$)|\?\?/;Q.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Oe.pop()||Q.expando+"_"+le++;return this[t]=!0,t}}),Q.ajaxPrefilter("json jsonp",function(e,n,r){var i,a,o,s=e.jsonp!==!1&&(Ne.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ne.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=Q.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ne,"$1"+i):e.jsonp!==!1&&(e.url+=(ce.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||Q.error(i+" was not called"),o[0]},e.dataTypes[0]="json",a=t[i],t[i]=function(){o=arguments},r.always(function(){t[i]=a,e[i]&&(e.jsonpCallback=n.jsonpCallback,Oe.push(i)),o&&Q.isFunction(a)&&a(o[0]),o=a=void 0}),"script"):void 0}),Q.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||K;var r=ot.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=Q.buildFragment([t],e,i),i&&i.length&&Q(i).remove(),Q.merge([],r.childNodes))};var Pe=Q.fn.load;Q.fn.load=function(t,e,n){if("string"!=typeof t&&Pe)return Pe.apply(this,arguments);var r,i,a,o=this,s=t.indexOf(" ");return s>=0&&(r=Q.trim(t.slice(s)),t=t.slice(0,s)),Q.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&Q.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){a=arguments,o.html(r?Q("<div>").append(Q.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){o.each(n,a||[t.responseText,e,t])}),this},Q.each(["ajaxStart","ajaxStop","ajaxCo
|
||
|
* @license AngularJS v1.4.8
|
||
|
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
|
* License: MIT
|
||
|
*/
|
||
|
function(t,e,n){"use strict";function r(t,e){return e=e||Error,function(){var n,r,i=2,a=arguments,o=a[0],s="["+(t?t+":":"")+o+"] ",u=a[1];for(s+=u.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n=e+i;return n<a.length?bt(a[n]):t}),s+="\nhttp://errors.angularjs.org/1.4.8/"+(t?t+"/":"")+o,r=i,n="?";r<a.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent(bt(a[r]));return new e(s)}}function i(t){if(null==t||E(t))return!1;if(Vr(t)||k(t)||Dr&&t instanceof Dr)return!0;var e="length"in Object(t)&&t.length;return M(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function a(t,e,n){var r,o;if(t)if(S(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(Vr(t)||i(t)){var s="object"!=typeof t;for(r=0,o=t.length;o>r;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==a)t.forEach(e,n,t);else if(w(t))for(r in t)e.call(n,t[r],r,t);else if("function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else for(r in t)Mr.call(t,r)&&e.call(n,t[r],r,t);return t}function o(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function s(t){return function(e,n){t(n,e)}}function u(){return++qr}function l(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function c(t,e,n){for(var r=t.$$hashKey,i=0,a=e.length;a>i;++i){var o=e[i];if($(o)||S(o))for(var s=Object.keys(o),u=0,f=s.length;f>u;u++){var d=s[u],p=o[d];n&&$(p)?C(p)?t[d]=new Date(p.valueOf()):A(p)?t[d]=new RegExp(p):p.nodeName?t[d]=p.cloneNode(!0):j(p)?t[d]=p.clone():($(t[d])||(t[d]=Vr(p)?[]:{}),c(t[d],[p],!0)):t[d]=p}}return l(t,r),t}function f(t){return c(t,Or.call(arguments,1),!1)}function d(t){return c(t,Or.call(arguments,1),!0)}function p(t){return parseInt(t,10)}function h(t,e){return f(Object.create(t),e)}function g(){}function m(t){return t}function v(t){return function(){return t}}function y(t){return S(t.toString)&&t.toString!==Fr}function b(t){return"undefined"==typeof t}function x(t){return"undefined"!=typeof t}function $(t){return null!==t&&"object"==typeof t}function w(t){return null!==t&&"object"==typeof t&&!jr(t)}function k(t){return"string"==typeof t}function M(t){return"number"==typeof t}function C(t){return"[object Date]"===Fr.call(t)}function S(t){return"function"==typeof t}function A(t){return"[object RegExp]"===Fr.call(t)}function E(t){return t&&t.window===t}function D(t){return t&&t.$evalAsync&&t.$watch}function _(t){return"[object File]"===Fr.call(t)}function T(t){return"[object FormData]"===Fr.call(t)}function O(t){return"[object Blob]"===Fr.call(t)}function N(t){return"boolean"==typeof t}function P(t){return t&&S(t.then)}function F(t){return t&&M(t.length)&&Rr.test(Fr.call(t))}function j(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function I(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function L(t){return kr(t.nodeName||t[0]&&t[0].nodeName)}function q(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function H(t,e){function n(t,e){var n,i=e.$$hashKey;if(Vr(t))for(var a=0,o=t.length;o>a;a++)e.push(r(t[a]));else if(w(t))for(n in t)e[n]=r(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=r(t[n]));else for(n in t)Mr.call(t,n)&&(e[n]=r(t[n]));return l(e,i),e}function r(t){if(!$(t))return t;var e=i.indexOf(t);if(-1!==e)return o[e];if(E(t)||D(t))throw Ir("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r,a=!1;return Vr(t)?(r=[],a=!0):F(t)?r=new t.constructor(t):C(t)?r=new Date(t.getTime()):A(t)?(r=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]),r.lastIndex=t.lastIndex):S(t.cloneNode)?r=t.cloneNode(!0):(r=Object.create(jr(t)),a=!0),i.push(t),o.push(r),a?n(t,r):r}var i=[],o=[];if(e){if(F(e))throw Ir("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw Ir("cpi","Can't copy! Source and destination are identical.");return Vr(e)?e.length=0:a(e,function(t,n){"$$hashKey"!==n&&delete e[n]}),i.push(t),o.push(e),n(t,e)}return r(t)}function V(t,e){if(Vr(t)){e=e||[];for(var n=0,r=t.length;r>n;n++)e
|
||
|
A=A||v),y=v.name,!v.templateUrl&&v.controller&&(M=v.controller,E=E||mt(),Z("'"+y+"' controller",E[y],v,q),E[y]=v),(M=v.transclude)&&(P=!0,v.$$tlb||(Z("transclusion",N,v,q),N=v),"element"==M?(L=!0,C=v.priority,b=q,q=a.$$element=Dr(e.createComment(" "+y+": "+a[y]+" ")),r=q[0],nt(s,z(b),r),R=O(b,o,C,V&&V.name,{nonTlbTranscludeDirective:N})):(b=Dr(Dt(r)).contents(),q.empty(),R=O(b,o,n,n,{needsNewScope:v.$$isolateScope||v.$$newScope}))),v.template)if(F=!0,Z("template",T,v,q),T=v,M=S(v.template)?v.template(q,a):v.template,M=ct(M),v.replace){if(V=v,b=kt(M)?[]:pe(Q(v.templateNamespace,Wr(M))),r=b[0],1!=b.length||r.nodeType!==Zr)throw Pi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",y,"");nt(s,q,r);var tt={$attr:{}},et=j(r,[],tt),st=t.splice(U+1,t.length-(U+1));(_||A)&&W(et,_,A),t=t.concat(et).concat(st),B(a,tt),Y=t.length}else q.html(M);if(v.templateUrl)F=!0,Z("template",T,v,q),T=v,v.replace&&(V=v),m=G(t.splice(U,t.length-U),q,a,s,P&&R,c,f,{controllerDirectives:E,newScopeDirective:A!==v&&A,newIsolateScopeDirective:_,templateDirective:T,nonTlbTranscludeDirective:N}),Y=t.length;else if(v.compile)try{x=v.compile(q,a,R),S(x)?p(null,x,X,K):x&&p(x.pre,x.post,X,K)}catch(ut){i(ut,J(q))}v.terminal&&(m.terminal=!0,C=Math.max(C,v.priority))}return m.scope=A&&A.scope===!0,m.transcludeOnThisElement=P,m.templateOnThisElement=F,m.transclude=R,d.hasElementTranscludeDirective=L,m}function W(t,e,n){for(var r=0,i=t.length;i>r;r++)t[r]=h(t[r],{$$isolateScope:e,$$newScope:n})}function U(e,n,r,a,o,s,u){if(n===o)return null;var f=null;if(l.hasOwnProperty(n))for(var d,p=t.get(n+c),g=0,m=p.length;m>g;g++)try{d=p[g],(b(a)||a>d.priority)&&-1!=d.restrict.indexOf(r)&&(s&&(d=h(d,{$$start:s,$$end:u})),e.push(d),f=d)}catch(v){i(v)}return f}function Y(e){if(l.hasOwnProperty(e))for(var n,r=t.get(e+c),i=0,a=r.length;a>i;i++)if(n=r[i],n.multiElement)return!0;return!1}function B(t,e){var n=e.$attr,r=t.$attr,i=t.$$element;a(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),a(e,function(e,a){"class"==a?(T(i,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==a?(i.attr("style",i.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==a.charAt(0)||t.hasOwnProperty(a)||(t[a]=e,r[a]=n[a])})}function G(t,e,n,r,i,s,u,l){var c,f,d=[],p=e[0],g=t.shift(),m=h(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=S(g.templateUrl)?g.templateUrl(e,n):g.templateUrl,y=g.templateNamespace;return e.empty(),o(v).then(function(o){var h,b,x,w;if(o=ct(o),g.replace){if(x=kt(o)?[]:pe(Q(y,Wr(o))),h=x[0],1!=x.length||h.nodeType!==Zr)throw Pi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);b={$attr:{}},nt(r,e,h);var k=j(h,[],b);$(g.scope)&&W(k,!0),t=k.concat(t),B(n,b)}else h=p,e.html(o);for(t.unshift(m),c=V(t,h,n,i,e,g,s,u,l),a(r,function(t,n){t==h&&(r[n]=e[0])}),f=P(e[0].childNodes,i);d.length;){var M=d.shift(),C=d.shift(),S=d.shift(),A=d.shift(),E=e[0];if(!M.$$destroyed){if(C!==p){var D=C.className;l.hasElementTranscludeDirective&&g.replace||(E=Dt(h)),nt(S,Dr(C),E),T(Dr(E),D)}w=c.transcludeOnThisElement?F(M,c.transclude,A):A,c(f,M,E,r,w)}}d=null}),function(t,e,n,r,i){var a=i;e.$$destroyed||(d?d.push(e,n,r,a):(c.transcludeOnThisElement&&(a=F(e,c.transclude,i)),c(f,e,n,r,a)))}}function X(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function Z(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Pi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,J(r))}function K(t,e){var n=r(e,!0);n&&t.push({priority:0,compile:function(t){var e=t.parent(),r=!!e.length;return r&&O.$$addBindingClass(e),function(t,e){var i=e.parent();r||O.$$addBindingClass(i),O.$$addBindingInfo(i,n.expressions),t.$watch(n,function(t){e[0].nodeValue=t})}}})}function Q(t,n){switch(t=kr(t||"html")){case"svg":case"math":var r=e.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}
|
||
|
}catch(s){e(s)}}})}});var g=function(t){var e=new c;return e.reject(t),e.promise},m=function(t,e){var n=new c;return e?n.resolve(t):n.reject(t),n.promise},v=function(t,e,n){var r=null;try{S(n)&&(r=n())}catch(i){return m(i,!1)}return P(r)?r.then(function(){return m(t,e)},function(t){return m(t,!1)}):m(t,e)},y=function(t,e,n,r){var i=new c;return i.resolve(t),i.promise.then(e,n,r)},x=y,w=function k(t){function e(t){r.resolve(t)}function n(t){r.reject(t)}if(!S(t))throw p("norslvr","Expected resolverFn, got '{0}'",t);if(!(this instanceof k))return new k(t);var r=new c;return t(e,n),r.promise};return w.defer=h,w.reject=g,w.when=y,w.resolve=x,w.all=d,w}function vn(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,a=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return a.supported=i,a}]}function yn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null}return e.prototype=t,e}var e=10,n=r("$rootScope"),o=null,s=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,l,c,f){function d(t){t.currentScope.$$destroyed=!0}function p(t){9===Er&&(t.$$childHead&&p(t.$$childHead),t.$$nextSibling&&p(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function h(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function m(t){if(C.$$phase)throw n("inprog","{0} already in progress",C.$$phase);C.$$phase=t}function v(){C.$$phase=null}function y(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function x(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function w(){}function k(){for(;D.length;)try{D.shift()()}catch(t){l(t)}s=null}function M(){null===s&&(s=f.defer(function(){C.$apply(k)}))}h.prototype={constructor:h,$new:function(e,n){var r;return n=n||this,e?(r=new h,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!=this)&&r.$on("$destroy",d),r},$watch:function(t,e,n,r){var i=c(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var a=this,s=a.$$watchers,u={fn:e,last:w,get:i,exp:r||t,eq:!!n};return o=null,S(e)||(u.fn=g),s||(s=a.$$watchers=[]),s.unshift(u),y(this,1),function(){q(s,u)>=0&&y(a,-1),o=null}},$watchGroup:function(t,e){function n(){u=!1,l?(l=!1,e(i,i,s)):e(i,r,s)}var r=new Array(t.length),i=new Array(t.length),o=[],s=this,u=!1,l=!0;if(!t.length){var c=!0;return s.$evalAsync(function(){c&&e(i,i,s)}),function(){c=!1}}return 1===t.length?this.$watch(t[0],function(t,n,a){i[0]=t,r[0]=n,e(i,t===n?i:r,a)}):(a(t,function(t,e){var a=s.$watch(t,function(t,a){i[e]=t,r[e]=a,u||(u=!0,s.$evalAsync(n))});o.push(a)}),function(){for(;o.length;)o.shift()()})},$watchCollection:function(t,e){function n(t){a=t;var e,n,r,s,u;if(!b(a)){if($(a))if(i(a)){o!==p&&(o=p,m=o.length=0,f++),e=a.length,m!==e&&(f++,o.length=m=e);for(var l=0;e>l;l++)u=o[l],s=a[l],r=u!==u&&s!==s,r||u===s||(f++,o[l]=s)}else{o!==h&&(o=h={},m=0,f++),e=0;for(n in a)Mr.call(a,n)&&(e++,s=a[n],u=o[n],n in o?(r=u!==u&&s!==s,r||u===s||(f++,o[n]=s)):(m++,o[n]=s,f++));if(m>e){f++;for(n in o)Mr.call(a,n)||(m--,delete o[n])}}else o!==a&&(o=a,f++);return f}}function r(){if(g?(g=!1,e(a,a,u)):e(a,s,u),l)if($(a))if(i(a)){s=new Array(a.length);for(var t=0;t<a.length;t++)s[t]=a[t]}else{s={};for(var n in a)Mr.call(a,n)&&(s[n]=a[n])}else
|
||
|
},attr:function(t,e,r){var i=t.nodeType;if(i!==Jr&&i!==Kr&&i!==Qr){var a=kr(e);if(yi[a]){if(!x(r))return t[e]||(t.attributes.getNamedItem(e)||g).specified?a:n;r?(t[e]=!0,t.setAttribute(e,a)):(t[e]=!1,t.removeAttribute(a))}else if(x(r))t.setAttribute(e,r);else if(t.getAttribute){var o=t.getAttribute(e,2);return null===o?n:o}}},prop:function(t,e,n){return x(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(b(e)){var n=t.nodeType;return n===Zr||n===Jr?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(b(e)){if(t.multiple&&"select"===L(t)){var n=[];return a(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return b(e)?t.innerHTML:(_t(t,!0),void(t.innerHTML=e))},empty:Vt},function(t,e){Et.prototype[e]=function(e,n){var r,i,a=this.length;if(t!==Vt&&b(2==t.length&&t!==Ft&&t!==qt?e:n)){if($(e)){for(r=0;a>r;r++)if(t===Pt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var o=t.$dv,s=b(o)?Math.min(a,1):a,u=0;s>u;u++){var l=t(this[u],e,n);o=o?o+l:l}return o}for(r=0;a>r;r++)t(this[r],e,n);return this}}),a({removeData:Ot,on:function(t,e,r,i){if(x(i))throw ci("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Mt(t)){var a=Nt(t,!0),o=a.events,s=a.handle;s||(s=a.handle=Yt(t,o));for(var u=e.indexOf(" ")>=0?e.split(" "):[e],l=u.length,c=function(e,n,i){var a=o[e];a||(a=o[e]=[],a.specialHandlerWrapper=n,"$destroy"===e||i||ai(t,e,s)),a.push(r)};l--;)e=u[l],li[e]?(c(li[e],Gt),c(e,n,!0)):c(e)}},off:Tt,one:function(t,e,n){t=Dr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;_t(t),a(new Et(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return a(t.childNodes,function(t){t.nodeType===Zr&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===Zr||n===ei){e=new Et(e);for(var r=0,i=e.length;i>r;r++){var a=e[r];t.appendChild(a)}}},prepend:function(t,e){if(t.nodeType===Zr){var n=t.firstChild;a(new Et(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){e=Dr(e).eq(0).clone()[0];var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)},remove:Rt,detach:function(t){Rt(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new Et(e);for(var i=0,a=e.length;a>i;i++){var o=e[i];r.insertBefore(o,n.nextSibling),n=o}},addClass:It,removeClass:jt,toggleClass:function(t,e,n){e&&a(e.split(" "),function(e){var r=n;b(r)&&(r=!Ft(t,e)),(r?It:jt)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==ei?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:Dt,triggerHandler:function(t,e,n){var r,i,o,s=e.type||e,u=Nt(t),l=u&&u.events,c=l&&l[s];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:g,type:s,target:t},e.type&&(r=f(r,e)),i=V(c),o=n?[r].concat(n):[r],a(i,function(e){r.isImmediatePropagationStopped()||e.apply(t,o)}))}},function(t,e){Et.prototype[e]=function(e,n,r){for(var i,a=0,o=this.length;o>a;a++)b(i)?(i=t(this[a],e,n,r),x(i)&&(i=Dr(i))):Lt(i,t(this[a],e,n,r));return x(i)?i:this},Et.prototype.bind=Et.prototype.on,Et.prototype.unbind=Et.prototype.off}),Kt.prototype={put:function(t,e){this[Zt(t,this.nextUid)]=e},get:function(t){return this[Zt(t,this.nextUid)]},remove:function(t){var e=this[t=Zt(t,this.nextUid)];return delete this[t],e}};var $i=[function(){this.$get=[function(){return Kt}]}],wi=/^[^\(]*\(\s*([^\)]*)\)/m,ki=/,/,Mi=/^\s*(_?)(\S+?)\1\s*$/,Ci=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Si=r("$injector");te.$$annotate=Qt;var Ai=r("$animate"),Ei=1,Di="ng-animate",_i=function(){this.$get=["$q","$$rAF",function(t,e){function n(){}return n.all=g,n.chain=g,n.prototype={end:g,cancel:g,r
|
||
|
return a?a[e]:t(n,r,i)}}};var aa=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new ia(this.lexer),this.astCompiler=n.csp?new cn(this.ast,e):new ln(this.ast,e)};aa.prototype={constructor:aa,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var oa=(mt(),mt(),Object.prototype.valueOf),sa=r("$sce"),ua={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Pi=r("$compile"),la=e.createElement("a"),ca=En(t.location.href);Tn.$inject=["$document"],Nn.$inject=["$provide"],Ln.$inject=["$locale"],qn.$inject=["$locale"];var fa=".",da={yyyy:Rn("FullYear",4),yy:Rn("FullYear",2,0,!0),y:Rn("FullYear",1),MMMM:Wn("Month"),MMM:Wn("Month",!0),MM:Rn("Month",2,1),M:Rn("Month",1,1),dd:Rn("Date",2),d:Rn("Date",1),HH:Rn("Hours",2),H:Rn("Hours",1),hh:Rn("Hours",2,-12),h:Rn("Hours",1,-12),mm:Rn("Minutes",2),m:Rn("Minutes",1),ss:Rn("Seconds",2),s:Rn("Seconds",1),sss:Rn("Milliseconds",3),EEEE:Wn("Day"),EEE:Wn("Day",!0),a:Gn,Z:zn,ww:Bn(2),w:Bn(1),G:Xn,GG:Xn,GGG:Xn,GGGG:Zn},pa=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,ha=/^\-?\d+$/;Kn.$inject=["$locale"];var ga=v(kr),ma=v(Cr);tr.$inject=["$parse"];var va=v({restrict:"E",compile:function(t,e){return e.href||e.xlinkHref?void 0:function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Fr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),ya={};a(yi,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=fe("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),ya[r]=function(){return{restrict:"A",priority:100,link:i}}}}),a(xi,function(t,e){ya[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match($r);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),a(["src","srcset","href"],function(t){var e=fe("ng-"+t);ya[e]=function(){return{priority:99,link:function(n,r,i){var a=t,o=t;"href"===t&&"[object SVGAnimatedString]"===Fr.call(r.prop("href"))&&(o="xlinkHref",i.$attr[o]="xlink:href",a=null),i.$observe(e,function(e){return e?(i.$set(o,e),void(Er&&a&&r.prop(a,i[o]))):void("href"===t&&i.$set(o,null))})}}}});var ba={$addControl:g,$$renameControl:nr,$removeControl:g,$setValidity:g,$setDirty:g,$setPristine:g,$setSubmitted:g},xa="ng-submitted";rr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var $a=function(t){return["$timeout","$parse",function(e,r){function i(t){return""===t?r('this[""]').assign:r(t).assign||g}var a={name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:rr,compile:function(r,a){r.addClass(eo).addClass(Qa);var o=a.name?"name":t&&a.ngForm?"ngForm":!1;return{pre:function(t,r,a,s){var u=s[0];if(!("action"in a)){var l=function(e){t.$apply(function(){u.$commitViewValue(),u.$setSubmitted()}),e.preventDefault()};ai(r[0],"submit",l),r.on("$destroy",function(){e(function(){oi(r[0],"submit",l)},0,!1)})}var c=s[1]||u.$$parentForm;c.$addControl(u);var d=o?i(u.$name):g;o&&(d(t,u),a.$observe(o,function(e){u.$name!==e&&(d(t,n),u.$$parentForm.$$renameControl(u,e),(d=i(u.$name))(t,u))})),r.on("$destroy",function(){u.$$parentForm.$removeControl(u),d(t,n),f(u,ba)})}}}};return a}]},wa=$a(),ka=$a(!0),Ma=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Ca=/^[A-Za-z][A-Za-z\d.+-]*:\/*(?:\w+(?::\w+)?@)?[^\s\/]+(?::\d+)?(?:\/[\w#!:.?+=&%@\-\/]*)?$/,Sa=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Aa=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ea=/^(\d{4})-(\d{2})-(\d{2})$/,Da=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,_a=/^(\d{4})-W(\d\d)$/,Ta=/^(\d{4})-(\d\d)$/,Oa=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Na={text:ar,date:lr("date",Ea,ur(Ea,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":lr("datetimelocal",Da,ur(Da,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:lr("time",O
|
||
|
* @license AngularJS v1.4.8
|
||
|
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
|
* License: MIT
|
||
|
*/
|
||
|
function(t,e,n){"use strict";function r(t,e,n){if(!t)throw ngMinErr("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function i(t,e){return t||e?t?e?(R(t)&&(t=t.join(" ")),R(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function a(t){var e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}function o(t,e,n){var r="";return t=R(t)?t:t&&W(t)&&t.length?t.split(/\s+/):[],V(t,function(t,i){t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)}),r}function s(t,e){var n=t.indexOf(e);e>=0&&t.splice(n,1)}function u(t){if(t instanceof H)switch(t.length){case 0:return[];case 1:if(t[0].nodeType===X)return t;break;default:return H(l(t))}return t.nodeType===X?H(t):void 0}function l(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType==X)return n}}function c(t,e,n){V(e,function(e){t.addClass(e,n)})}function f(t,e,n){V(e,function(e){t.removeClass(e,n)})}function d(t){return function(e,n){n.addClass&&(c(t,e,n.addClass),n.addClass=null),n.removeClass&&(f(t,e,n.removeClass),n.removeClass=null)}}function p(t){if(t=t||{},!t.$$prepared){var e=t.domOperation||L;t.domOperation=function(){t.$$domOperationFired=!0,e(),e=L},t.$$prepared=!0}return t}function h(t,e){g(t,e),m(t,e)}function g(t,e){e.from&&(t.css(e.from),e.from=null)}function m(t,e){e.to&&(t.css(e.to),e.to=null)}function v(t,e,n){var r=(e.addClass||"")+" "+(n.addClass||""),i=(e.removeClass||"")+" "+(n.removeClass||""),a=y(t.attr("class"),r,i);n.preparationClasses&&(e.preparationClasses=C(n.preparationClasses,e.preparationClasses),delete n.preparationClasses);var o=e.domOperation!==L?e.domOperation:null;return q(e,n),o&&(e.domOperation=o),a.addClass?e.addClass=a.addClass:e.addClass=null,a.removeClass?e.removeClass=a.removeClass:e.removeClass=null,e}function y(t,e,n){function r(t){W(t)&&(t=t.split(" "));var e={};return V(t,function(t){t.length&&(e[t]=!0)}),e}var i=1,a=-1,o={};t=r(t),e=r(e),V(e,function(t,e){o[e]=i}),n=r(n),V(n,function(t,e){o[e]=o[e]===i?null:a});var s={addClass:"",removeClass:""};return V(o,function(e,n){var r,o;e===i?(r="addClass",o=!t[n]):e===a&&(r="removeClass",o=t[n]),o&&(s[r].length&&(s[r]+=" "),s[r]+=n)}),s}function b(t){return t instanceof e.element?t[0]:t}function x(t,e,n){var r="";e&&(r=o(e,J,!0)),n.addClass&&(r=C(r,o(n.addClass,Z))),n.removeClass&&(r=C(r,o(n.removeClass,K))),r.length&&(n.preparationClasses=r,t.addClass(r))}function $(t,e){e.preparationClasses&&(t.removeClass(e.preparationClasses),e.preparationClasses=null),e.activeClasses&&(t.removeClass(e.activeClasses),e.activeClasses=null)}function w(t,e){var n=e?"-"+e+"s":"";return M(t,[dt,n]),[dt,n]}function k(t,e){var n=e?"paused":"",r=j+ut;return M(t,[r,n]),[r,n]}function M(t,e){var n=e[0],r=e[1];t.style[n]=r}function C(t,e){return t?e?t+" "+e:t:e}function S(t){return[ft,t+"s"]}function A(t,e){var n=e?ct:dt;return[n,t+"s"]}function E(t,e,n){var r=Object.create(null),i=t.getComputedStyle(e)||{};return V(n,function(t,e){var n=i[t];if(n){var a=n.charAt(0);("-"===a||"+"===a||a>=0)&&(n=D(n)),0===n&&(n=null),r[e]=n}}),r}function D(t){var e=0,n=t.split(/\s*,\s*/);return V(n,function(t){"s"==t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t}),e}function _(t){return 0===t||null!=t}function T(t,e){var n=P,r=t+"s";return e?n+=rt:r+=" linear all",[n,r]}function O(){var t=Object.create(null);return{flush:function(){t=Object.create(null)},count:function(e){var n=t[e];return n?n.total:0},get:function(e){var n=t[e];return n&&n.value},put:function(e,n){t[e]?t[e].total++:t[e]={total:1,value:n}}}}function N(t,e,n){V(n,function(n){t[n]=Y(t[n])?t[n]:e.style.getPropertyValue(n)})}var P,F,j,I,L=e.noop,q=e.extend,H=e.element,V=e.forEach,R=e.isArray,W=e.isString,z=e.isObject,U=e.isUndefined,Y=e.isDefined,B=e.isFunction,G=e.isElement,X=1,Z="-add",K="-remove",J="ng-",Q="-active",tt="ng-animate",et="$$ngAnimateChildren",nt="";U(t.ontransitionend)&&Y(t.onwebkittransitionend)?(nt="-webkit-",P="WebkitTransition",F="webkitTransitionEnd transitionend"):(P="transition",F="transitionend"),U(t.onanimationend)&&Y(t.onwebkitanimationend)?(nt="-webkit-",j="WebkitAnimation",I="webk
|
||
|
* @license AngularJS v1.4.8
|
||
|
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
|
* License: MIT
|
||
|
*/
|
||
|
function(t,e,n){"use strict";function r(t,n,r){function i(t,r,i){var o,s;i=i||{},s=i.expires,o=e.isDefined(i.path)?i.path:a,e.isUndefined(r)&&(s="Thu, 01 Jan 1970 00:00:00 GMT",r=""),e.isString(s)&&(s=new Date(s));var u=encodeURIComponent(t)+"="+encodeURIComponent(r);u+=o?";path="+o:"",u+=i.domain?";domain="+i.domain:"",u+=s?";expires="+s.toUTCString():"",u+=i.secure?";secure":"";var l=u.length+1;return l>4096&&n.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+l+" > 4096 bytes)!"),u}var a=r.baseHref(),o=t[0];return function(t,e,n){o.cookie=i(t,e,n)}}e.module("ngCookies",["ng"]).provider("$cookies",[function(){function t(t){return t?e.extend({},r,t):r}var r=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(r,i){return{get:function(t){return r()[t]},getObject:function(t){var n=this.get(t);return n?e.fromJson(n):n},getAll:function(){return r()},put:function(e,n,r){i(e,n,t(r))},putObject:function(t,n,r){this.put(t,e.toJson(n),r)},remove:function(e,r){i(e,n,t(r))}}}]}]),e.module("ngCookies").factory("$cookieStore",["$cookies",function(t){return{get:function(e){return t.getObject(e)},put:function(e,n){t.putObject(e,n)},remove:function(e){t.remove(e)}}}]),r.$inject=["$document","$log","$browser"],e.module("ngCookies").provider("$$cookieWriter",function(){this.$get=r})}(window,window.angular),/**
|
||
|
* @license AngularJS v1.4.8
|
||
|
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
|
* License: MIT
|
||
|
*/
|
||
|
function(t,e,n){"use strict";/*
|
||
|
* HTML Parser By Misko Hevery (misko@hevery.com)
|
||
|
* based on: HTML Parser By John Resig (ejohn.org)
|
||
|
* Original code by Erik Arvidsson, Mozilla Public License
|
||
|
* http://erik.eae.net/simplehtmlparser/simplehtmlparser.js
|
||
|
*
|
||
|
* // Use like so:
|
||
|
* htmlParser(htmlString, {
|
||
|
* start: function(tag, attrs, unary) {},
|
||
|
* end: function(tag) {},
|
||
|
* chars: function(text) {},
|
||
|
* comment: function(text) {}
|
||
|
* });
|
||
|
*
|
||
|
*/
|
||
|
function r(){this.$get=["$$sanitizeUri",function(t){return function(e){var n=[];return o(e,l(n,function(e,n){return!/^unsafe/.test(t(e,n))})),n.join("")}}]}function i(t){var n=[],r=l(n,e.noop);return r.chars(t),n.join("")}function a(t,n){var r,i={},a=t.split(",");for(r=0;r<a.length;r++)i[n?e.lowercase(a[r]):a[r]]=!0;return i}function o(t,n){function r(t,r,a,o){if(r=e.lowercase(r),C[r])for(;b.last()&&S[b.last()];)i("",b.last());M[r]&&b.last()==r&&i("",r),o=$[r]||!!o,o||b.push(r);var u={};a.replace(p,function(t,e,n,r,i){var a=n||r||i||"";u[e]=s(a)}),n.start&&n.start(r,u,o)}function i(t,r){var i,a=0;if(r=e.lowercase(r))for(a=b.length-1;a>=0&&b[a]!=r;a--);if(a>=0){for(i=b.length-1;i>=a;i--)n.end&&n.end(b[i]);b.length=a}}"string"!=typeof t&&(t=null===t||"undefined"==typeof t?"":""+t);var a,o,u,l,b=[],x=t;for(b.last=function(){return b[b.length-1]};t;){if(l="",o=!0,b.last()&&E[b.last()]?(t=t.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+b.last()+"[^>]*>","i"),function(t,e){return e=e.replace(m,"$1").replace(y,"$1"),n.chars&&n.chars(s(e)),""}),i("",b.last())):(0===t.indexOf("<!--")?(a=t.indexOf("--",4),a>=0&&t.lastIndexOf("-->",a)===a&&(n.comment&&n.comment(t.substring(4,a)),t=t.substring(a+3),o=!1)):v.test(t)?(u=t.match(v),u&&(t=t.replace(u[0],""),o=!1)):g.test(t)?(u=t.match(d),u&&(t=t.substring(u[0].length),u[0].replace(d,i),o=!1)):h.test(t)&&(u=t.match(f),u?(u[4]&&(t=t.substring(u[0].length),u[0].replace(f,r)),o=!1):(l+="<",t=t.substring(1))),o&&(a=t.indexOf("<"),l+=0>a?t:t.substring(0,a),t=0>a?"":t.substring(a),n.chars&&n.chars(s(l)))),t==x)throw c("badparse","The sanitizer was unable to parse the following block of html: {0}",t);x=t}i()}function s(t){return t?(P.innerHTML=t.replace(/</g,"<"),P.textContent):""}function u(t){return t.replace(/&/g,"&").replace(b,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(n-56320)+65536)+";"}).replace(x,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function l(t,n){var r=!1,i=e.bind(t,t.push);return{start:function(t,a,o){t=e.lowercase(t),!r&&E[t]&&(r=t),r||D[t]!==!0||(i("<"),i(t),e.forEach(a,function(r,a){var o=e.lowercase(a),s="img"===t&&"src"===o||"background"===o;N[o]!==!0||_[o]===!0&&!n(r,s)||(i(" "),i(a),i('="'),i(u(r)),i('"'))}),i(o?"/>":">"))},end:function(t){t=e.lowercase(t),r||D[t]!==!0||(i("</"),i(t),i(">")),t==r&&(r=!1)},chars:function(t){r||i(u(t))}}}var c=e.$$minErr("$sanitize"),f=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,d=/^<\/\s*([\w:-]+)[^>]*>/,p=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,h=/^</,g=/^<\//,m=/<!--(.*?)-->/g,v=/<!DOCTYPE([^>]*?)>/i,y=/<!\[CDATA\[(.*?)]]>/g,b=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x=/([^\#-~| |!])/g,$=a("area,br,col,hr,img,wbr"),w=a("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),k=a("rp,rt"),M=e.extend({},k,w),C=e.extend({},w,a("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),S=e.extend({},k,a("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),A=a("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),E=a("script,style"),D=e.extend({},$,C,S,M,A),_=a("background,cite,href,longdesc,src,usemap,xlink:href"),T=a("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),O=a("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,dis
|
||
|
* @license AngularJS v1.4.8
|
||
|
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
|
* License: MIT
|
||
|
*/
|
||
|
function(t,e,n){"use strict";function r(t){function e(t,e){return t?i(t)?t.indexOf(e)>=0:t.hasOwnProperty(e):void 0}return["$animate",function(t){return{restrict:"AE",transclude:"element",terminal:!0,require:"^^ngMessages",link:function(n,r,a,o,s){var u,l=r[0],c=a.ngMessage||a.when,f=a.ngMessageExp||a.whenExp,d=function(t){u=t?i(t)?t:t.split(/[\s,]+/):null,o.reRender()};f?(d(n.$eval(f)),n.$watchCollection(f,d)):d(c);var p,h;o.register(l,h={test:function(t){return e(u,t)},attach:function(){p||s(n,function(e){t.enter(e,null,r),p=e;var n=p.$$attachId=o.getAttachId();p.on("$destroy",function(){p&&p.$$attachId===n&&(o.deregister(l),h.detach())})})},detach:function(){if(p){var e=p;p=null,t.leave(e)}}})}}}]}var i=e.isArray,a=e.forEach,o=e.isString,s=e.element;e.module("ngMessages",[]).directive("ngMessages",["$animate",function(t){function e(t,e){return o(e)&&0===e.length||n(t.$eval(e))}function n(t){return o(t)?t.length:!!t}var r="ng-active",i="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(o,s,u){function l(t,e){for(var n=e,r=[];n&&n!==t;){var i=n.$$ngMessageNode;if(i&&i.length)return v[i];n.childNodes.length&&-1==r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n=n.previousSibling||n.parentNode}}function c(t,e,n){var r=v[n];if(d.head){var i=l(t,e);i?(r.next=i.next,i.next=r):(r.next=d.head,d.head=r)}else d.head=r}function f(t,e,n){var r=v[n],i=l(t,e);i?i.next=r.next:d.head=r.next}var d=this,p=0,h=0;this.getAttachId=function(){return h++};var g,m,v=this.messages={};this.render=function(l){l=l||{},g=!1,m=l;for(var c=e(s,u.ngMessagesMultiple)||e(s,u.multiple),f=[],p={},h=d.head,v=!1,y=0;null!=h;){y++;var b=h.message,x=!1;v||a(l,function(t,e){if(!x&&n(t)&&b.test(e)){if(p[e])return;p[e]=!0,x=!0,b.attach()}}),x?v=!c:f.push(b),h=h.next}a(f,function(t){t.detach()}),f.length!==y?t.setClass(o,r,i):t.setClass(o,i,r)},s.$watchCollection(u.ngMessages||u["for"],d.render),this.reRender=function(){g||(g=!0,s.$evalAsync(function(){g&&m&&d.render(m)}))},this.register=function(t,e){var n=p.toString();v[n]={message:e},c(o[0],t,n),t.$$ngMessageNode=n,p++,d.reRender()},this.deregister=function(t){var e=t.$$ngMessageNode;delete t.$$ngMessageNode,f(o[0],t,e),delete v[e],d.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(t,e,n){return{restrict:"AE",require:"^^ngMessages",link:function(r,i,a){var o=a.ngMessagesInclude||a.src;t(o).then(function(t){n(t)(r,function(t){i.after(t);var n=s(e[0].createComment(" ngMessagesInclude: "+o+" "));i.after(n),i.remove()})})}}}]).directive("ngMessage",r("AE")).directive("ngMessageExp",r("A"))}(window,window.angular),/**
|
||
|
* @license AngularJS v1.4.8
|
||
|
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
|
* License: MIT
|
||
|
*/
|
||
|
function(t,e,n){"use strict";function r(){function t(t,e,r,i){return function(a,s,u){var l=u.$normalize(e);!n[l]||o(s,r)||u[l]||a.$watch(u[t],function(t){t=i?!t:!!t,s.attr(e,t)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaMultiline:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=function(t){n=e.extend(n,t)},this.$get=function(){return{config:function(t){return n[t]},$$watchExpr:t}}}var i=e.module("ngAria",["ng"]).provider("$aria",r),a=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],o=function(t,e){return-1!==e.indexOf(t[0].nodeName)?!0:void 0};i.directive("ngShow",["$aria",function(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngModel",["$aria",function(t){function e(e,n,r){return t.config(n)&&!r.attr(e)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&"INPUT"!==e[0].nodeName}function r(t,e){var n=t.type,r=t.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":"textbox"===(n||r)||"TEXTAREA"===e[0].nodeName?"multiline":""}return{restrict:"A",require:"?ngModel",priority:200,compile:function(i,s){var u=r(s,i);return{pre:function(t,e,n,r){"checkbox"===u&&"checkbox"!==n.type&&(r.$isEmpty=function(t){return t===!1})},post:function(r,i,s,l){function c(){return l.$modelValue}function f(){return p?(p=!1,function(t){var e=s.value==l.$viewValue;i.attr("aria-checked",e),i.attr("tabindex",0-!e)}):function(t){i.attr("aria-checked",s.value==l.$viewValue)}}function d(){i.attr("aria-checked",!l.$isEmpty(l.$viewValue))}var p=e("tabindex","tabindex",i)&&!o(i,a);switch(u){case"radio":case"checkbox":n(u,i)&&i.attr("role",u),e("aria-checked","ariaChecked",i)&&r.$watch(c,"radio"===u?f():d),p&&i.attr("tabindex",0);break;case"range":if(n(u,i)&&i.attr("role","slider"),t.config("ariaValue")){var h=!i.attr("aria-valuemin")&&(s.hasOwnProperty("min")||s.hasOwnProperty("ngMin")),g=!i.attr("aria-valuemax")&&(s.hasOwnProperty("max")||s.hasOwnProperty("ngMax")),m=!i.attr("aria-valuenow");h&&s.$observe("min",function(t){i.attr("aria-valuemin",t)}),g&&s.$observe("max",function(t){i.attr("aria-valuemax",t)}),m&&r.$watch(c,function(t){i.attr("aria-valuenow",t)})}p&&i.attr("tabindex",0);break;case"multiline":e("aria-multiline","ariaMultiline",i)&&i.attr("aria-multiline",!0)}l.$validators.required&&e("aria-required","ariaRequired",i)&&r.$watch(function(){return l.$error.required},function(t){i.attr("aria-required",!!t)}),e("aria-invalid","ariaInvalid",i)&&r.$watch(function(){return l.$invalid},function(t){i.attr("aria-invalid",!!t)})}}}}}]).directive("ngDisabled",["$aria",function(t){return t.$$watchExpr("ngDisabled","aria-disabled",[])}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(t,e,n,r){e.attr("aria-live")||e.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(t,e){return{restrict:"A",compile:function(n,r){var i=e(r.ngClick,null,!0);return function(e,n,r){o(n,a)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),t.config("bindKeypress")&&!r.ngKeypress&&n.on("keypress",function(t){function n(){i(e,{$event:t})}var r=t.which||t.keyCode;(32===r||13===r)&&e.$apply(n)}))}}}}]).directive("ngDblclick",["$aria",function(t){return function(e,n,r){!t.config("tabindex")||n.attr("tabindex")||o(n,a)||n.attr("tabindex",0)}}])}(window,window.angular),/**
|
||
|
* @license AngularJS v1.4.8
|
||
|
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
|
* License: MIT
|
||
|
*/
|
||
|
function(t,e,n){"use strict";function r(t){return null!=t&&""!==t&&"hasOwnProperty"!==t&&s.test("."+t)}function i(t,i){if(!r(i))throw o("badmember",'Dotted member path "@{0}" is invalid.',i);for(var a=i.split("."),s=0,u=a.length;u>s&&e.isDefined(t);s++){var l=a[s];t=null!==t?t[l]:n}return t}function a(t,n){n=n||{},e.forEach(n,function(t,e){delete n[e]});for(var r in t)!t.hasOwnProperty(r)||"$"===r.charAt(0)&&"$"===r.charAt(1)||(n[r]=t[r]);return n}var o=e.$$minErr("$resource"),s=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;e.module("ngResource",["ng"]).provider("$resource",function(){var t=/^https?:\/\/[^\/]*/,r=this;this.defaults={stripTrailingSlashes:!0,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}}},this.$get=["$http","$q",function(s,u){function l(t){return c(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function c(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,e?"%20":"+")}function f(t,e){this.template=t,this.defaults=g({},r.defaults,e),this.urlParams={}}function d(t,l,c,y){function b(t,e){var n={};return e=g({},l,e),h(e,function(e,r){v(e)&&(e=e()),n[r]=e&&e.charAt&&"@"==e.charAt(0)?i(t,e.substr(1)):e}),n}function x(t){return t.resource}function $(t){a(t||{},this)}var w=new f(t,y);return c=g({},r.defaults.actions,c),$.prototype.toJSON=function(){var t=g({},this);return delete t.$promise,delete t.$resolved,t},h(c,function(t,r){var i=/^(POST|PUT|PATCH)$/i.test(t.method);$[r]=function(l,c,f,d){var y,k,M,C={};switch(arguments.length){case 4:M=d,k=f;case 3:case 2:if(!v(c)){C=l,y=c,k=f;break}if(v(l)){k=l,M=c;break}k=c,M=f;case 1:v(l)?k=l:i?y=l:C=l;break;case 0:break;default:throw o("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var S=this instanceof $,A=S?y:t.isArray?[]:new $(y),E={},D=t.interceptor&&t.interceptor.response||x,_=t.interceptor&&t.interceptor.responseError||n;h(t,function(t,e){switch(e){default:E[e]=m(t);break;case"params":case"isArray":case"interceptor":break;case"timeout":E[e]=t}}),i&&(E.data=y),w.setUrlParams(E,g({},b(y,t.params||{}),C),t.url);var T=s(E).then(function(n){var i=n.data,s=A.$promise;if(i){if(e.isArray(i)!==!!t.isArray)throw o("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",r,t.isArray?"array":"object",e.isArray(i)?"array":"object",E.method,E.url);t.isArray?(A.length=0,h(i,function(t){"object"==typeof t?A.push(new $(t)):A.push(t)})):(a(i,A),A.$promise=s)}return A.$resolved=!0,n.resource=A,n},function(t){return A.$resolved=!0,(M||p)(t),u.reject(t)});return T=T.then(function(t){var e=D(t);return(k||p)(e,t.headers),e},_),S?T:(A.$promise=T,A.$resolved=!1,A)},$.prototype["$"+r]=function(t,e,n){v(t)&&(n=e,e=t,t={});var i=$[r].call(this,t,this,e,n);return i.$promise||i}}),$.bind=function(e){return d(t,g({},l,e),c)},$}var p=e.noop,h=e.forEach,g=e.extend,m=e.copy,v=e.isFunction;return f.prototype={setUrlParams:function(n,r,i){var a,s,u=this,c=i||u.template,f="",d=u.urlParams={};h(c.split(/\W/),function(t){if("hasOwnProperty"===t)throw o("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(t)&&t&&new RegExp("(^|[^\\\\]):"+t+"(\\W|$)").test(c)&&(d[t]=!0)}),c=c.replace(/\\:/g,":"),c=c.replace(t,function(t){return f=t,""}),r=r||{},h(u.urlParams,function(t,n){a=r.hasOwnProperty(n)?r[n]:u.defaults[n],e.isDefined(a)&&null!==a?(s=l(a),c=c.replace(new RegExp(":"+n+"(\\W|$)","g"),function(t,e){return s+e})):c=c.replace(new RegExp("(/?):"+n+"(\\W|$)","g"),function(t,e,n){return"/"==n.charAt(0)?n:e+n})}),u.defaults.stripTrailingSlashes&&(c=c.replace(/\/+$/,"")||"/"),c=c.replace(/\/\.(?=\w+($|\?))/,"."),n.url=f+c.replace(/\/\\\./,"/."),h(r,function(t,e){u.urlParams[e]||(n.params=n.params||{},n.params[e]=t)})}},d}]})}(window,window.angular),/**
|
||
|
* State-based routing for AngularJS
|
||
|
* @version v0.2.15
|
||
|
* @link http://angular-ui.github.com/
|
||
|
* @license MIT License, http://www.opensource.org/licenses/MIT
|
||
|
*/
|
||
|
"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(t,e,n){"use strict";function r(t,e){return q(new(q(function(){},{prototype:t})),e)}function i(t){return L(arguments,function(e){e!==t&&L(e,function(e,n){t.hasOwnProperty(n)||(t[n]=e)})}),t}function a(t,e){var n=[];for(var r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}function o(t){if(Object.keys)return Object.keys(t);var e=[];return L(t,function(t,n){e.push(n)}),e}function s(t,e){if(Array.prototype.indexOf)return t.indexOf(e,Number(arguments[2])||0);var n=t.length>>>0,r=Number(arguments[2])||0;for(r=0>r?Math.ceil(r):Math.floor(r),0>r&&(r+=n);n>r;r++)if(r in t&&t[r]===e)return r;return-1}function u(t,e,n,r){var i,u=a(n,r),l={},c=[];for(var f in u)if(u[f].params&&(i=o(u[f].params),i.length))for(var d in i)s(c,i[d])>=0||(c.push(i[d]),l[i[d]]=t[i[d]]);return q({},l,e)}function l(t,e,n){if(!n){n=[];for(var r in t)n.push(r)}for(var i=0;i<n.length;i++){var a=n[i];if(t[a]!=e[a])return!1}return!0}function c(t,e){var n={};return L(t,function(t){n[t]=e[t]}),n}function f(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return L(n,function(n){n in t&&(e[n]=t[n])}),e}function d(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var r in t)-1==s(n,r)&&(e[r]=t[r]);return e}function p(t,e){var n=I(t),r=n?[]:{};return L(t,function(t,i){e(t,i)&&(r[n?r.length:i]=t)}),r}function h(t,e){var n=I(t)?[]:{};return L(t,function(t,r){n[r]=e(t,r)}),n}function g(t,e){var r=1,a=2,u={},l=[],c=u,f=q(t.when(u),{$$promises:u,$$values:u});this.study=function(u){function p(t,n){if(y[n]!==a){if(v.push(n),y[n]===r)throw v.splice(0,s(v,n)),new Error("Cyclic dependency: "+v.join(" -> "));if(y[n]=r,F(t))m.push(n,[function(){return e.get(t)}],l);else{var i=e.annotate(t);L(i,function(t){t!==n&&u.hasOwnProperty(t)&&p(u[t],t)}),m.push(n,t,i)}v.pop(),y[n]=a}}function h(t){return j(t)&&t.then&&t.$$promises}if(!j(u))throw new Error("'invocables' must be an object");var g=o(u||{}),m=[],v=[],y={};return L(u,p),u=v=y=null,function(r,a,o){function s(){--x||($||i(b,a.$$values),v.$$values=b,v.$$promises=v.$$promises||!0,delete v.$$inheritedValues,p.resolve(b))}function u(t){v.$$failure=t,p.reject(t)}function l(n,i,a){function l(t){f.reject(t),u(t)}function c(){if(!N(v.$$failure))try{f.resolve(e.invoke(i,o,b)),f.promise.then(function(t){b[n]=t,s()},l)}catch(t){l(t)}}var f=t.defer(),d=0;L(a,function(t){y.hasOwnProperty(t)&&!r.hasOwnProperty(t)&&(d++,y[t].then(function(e){b[t]=e,--d||c()},l))}),d||c(),y[n]=f.promise}if(h(r)&&o===n&&(o=a,a=r,r=null),r){if(!j(r))throw new Error("'locals' must be an object")}else r=c;if(a){if(!h(a))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else a=f;var p=t.defer(),v=p.promise,y=v.$$promises={},b=q({},r),x=1+m.length/3,$=!1;if(N(a.$$failure))return u(a.$$failure),v;a.$$inheritedValues&&i(b,d(a.$$inheritedValues,g)),q(y,a.$$promises),a.$$values?($=i(b,d(a.$$values,g)),v.$$inheritedValues=d(a.$$values,g),s()):(a.$$inheritedValues&&(v.$$inheritedValues=d(a.$$inheritedValues,g)),a.then(s,u));for(var w=0,k=m.length;k>w;w+=3)r.hasOwnProperty(m[w])?s():l(m[w],m[w+1],m[w+2]);return v}},this.resolve=function(t,e,n,r){return this.study(t)(e,n,r)}}function m(t,e,n){this.fromConfig=function(t,e,n){return N(t.template)?this.fromString(t.template,e):N(t.templateUrl)?this.fromUrl(t.templateUrl,e):N(t.templateProvider)?this.fromProvider(t.templateProvider,e,n):null},this.fromString=function(t,e){return P(t)?t(e):t},this.fromUrl=function(n,r){return P(n)&&(n=n(r)),null==n?null:t.get(n,{cache:e,headers:{Accept:"text/html"}}).then(function(t){return t.data})},this.fromProvider=function(t,e,r){return n.invoke(t,null,r||{params:e})}}function v(t,e,i){function a(e,n,r,i){if(m.push(e),h[e])return h[e];if(!/^\w+(-+\w+)*(?:\[\])?$/.test(e))throw new Error("Invalid parameter name '"+e+"' in pattern '"+t+"'");if(g[e])throw new Error("Duplicate parameter name '"+e+"' in pattern '"+t+"'");return
|
||
|
* angular-ui-bootstrap
|
||
|
* http://angular-ui.github.io/bootstrap/
|
||
|
|
||
|
* Version: 0.13.4 - 2015-09-03
|
||
|
* License: MIT
|
||
|
*/
|
||
|
angular.module("ui.bootstrap",["ui.bootstrap.tpls","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.transition","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-popup.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.html","template/popover/popover-html.html","template/popover/popover-template.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.collapse",[]).directive("collapse",["$animate",function(t){return{link:function(e,n,r){function i(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),t.addClass(n,"in",{to:{height:n[0].scrollHeight+"px"}}).then(a)}function a(){n.removeClass("collapsing"),n.css({height:"auto"})}function o(){return n.hasClass("collapse")||n.hasClass("in")?(n.css({height:n[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),void t.removeClass(n,"in",{to:{height:"0"}}).then(s)):s()}function s(){n.css({height:"0"}),n.removeClass("collapsing"),n.addClass("collapse")}e.$watch(r.collapse,function(t){t?o():i()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(t,e,n){this.groups=[],this.closeOthers=function(r){var i=angular.isDefined(e.closeOthers)?t.$eval(e.closeOthers):n.closeOthers;i&&angular.forEach(this.groups,function(t){t!==r&&(t.isOpen=!1)})},this.addGroup=function(t){var e=this;this.groups.push(t),t.$on("$destroy",function(n){e.removeGroup(t)})},this.removeGroup=function(t){var e=this.groups.indexOf(t);-1!==e&&this.groups.splice(e,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",controllerAs:"accordion",transclude:!0,replace:!1,templateUrl:function(t,e){return e.templateUrl||"template/accordion/accordion.html"}}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(t,e,n,r){r.addGroup(t),t.openClass=n.openClass||"panel-open",t.panelClass=n.panelClass,t.$watch("isOpen",function(n){e.toggleClass(t.openClass,n),n&&r.closeOthers(t)}),t.toggleOpen=function(e){t.isDisabled||e&&32!==e.which||(t.isOpen=!t.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(t,e,n,r,i){r.setHeading(i(t,angular.noop))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(t,e,n,r){t.$watch(function(){return r[n.accordionTra
|
||
|
p.$destroy()});p.$on("$destroy",x)}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(t,e,n,r){r.init(e),e.addClass("dropdown")}}}).directive("dropdownMenu",function(){return{restrict:"AC",require:"?^dropdown",link:function(t,e,n,r){if(r){var i=n.templateUrl;i&&(r.dropdownMenuTemplateUrl=i),r.dropdownMenu||(r.dropdownMenu=e)}}}}).directive("keyboardNav",function(){return{restrict:"A",require:"?^dropdown",link:function(t,e,n,r){e.bind("keydown",function(t){if(-1!==[38,40].indexOf(t.which)){t.preventDefault(),t.stopPropagation();var e=r.dropdownMenu.find("a");switch(t.which){case 40:angular.isNumber(r.selectedOption)?r.selectedOption=r.selectedOption===e.length-1?r.selectedOption:r.selectedOption+1:r.selectedOption=0;break;case 38:angular.isNumber(r.selectedOption)?r.selectedOption=0===r.selectedOption?0:r.selectedOption-1:r.selectedOption=e.length-1}e[r.selectedOption].focus()}})}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(t,e,n,r){if(r){e.addClass("dropdown-toggle"),r.toggleElement=e;var i=function(i){i.preventDefault(),e.hasClass("disabled")||n.disabled||t.$apply(function(){r.toggle()})};e.bind("click",i),e.attr({"aria-haspopup":!0,"aria-expanded":!1}),t.$watch(r.isOpen,function(t){e.attr("aria-expanded",!!t)}),t.$on("$destroy",function(){e.unbind("click",i)})}}}}),angular.module("ui.bootstrap.modal",[]).factory("$$stackedMap",function(){return{createNew:function(){var t=[];return{add:function(e,n){t.push({key:e,value:n})},get:function(e){for(var n=0;n<t.length;n++)if(e==t[n].key)return t[n]},keys:function(){for(var e=[],n=0;n<t.length;n++)e.push(t[n].key);return e},top:function(){return t[t.length-1]},remove:function(e){for(var n=-1,r=0;r<t.length;r++)if(e==t[r].key){n=r;break}return t.splice(n,1)[0]},removeTop:function(){return t.splice(t.length-1,1)[0]},length:function(){return t.length}}}}}).factory("$$multiMap",function(){return{createNew:function(){var t={};return{entries:function(){return Object.keys(t).map(function(e){return{key:e,value:t[e]}})},get:function(e){return t[e]},hasKey:function(e){return!!t[e]},keys:function(){return Object.keys(t)},put:function(e,n){t[e]||(t[e]=[]),t[e].push(n)},remove:function(e,n){var r=t[e];if(r){var i=r.indexOf(n);-1!==i&&r.splice(i,1),r.length||delete t[e]}}}}}}).directive("modalBackdrop",["$animate","$injector","$modalStack",function(t,e,n){function r(e,r,a){a.modalInClass&&(i?i(r,{addClass:a.modalInClass}).start():t.addClass(r,a.modalInClass),e.$on(n.NOW_CLOSING_EVENT,function(e,n){var o=n();i?i(r,{removeClass:a.modalInClass}).start().then(o):t.removeClass(r,a.modalInClass).then(o)}))}var i=null;return e.has("$animateCss")&&(i=e.get("$animateCss")),{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(t,e){return t.addClass(e.backdropClass),r}}}]).directive("modalWindow",["$modalStack","$q","$animate","$injector",function(t,e,n,r){var i=null;return r.has("$animateCss")&&(i=r.get("$animateCss")),{restrict:"EA",scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"template/modal/window.html"},link:function(r,a,o){a.addClass(o.windowClass||""),r.size=o.size,r.close=function(e){var n=t.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),t.dismiss(n.key,"backdrop click"))},r.$isRendered=!0;var s=e.defer();o.$observe("modalRender",function(t){"true"==t&&s.resolve()}),s.promise.then(function(){var s=null;o.modalInClass&&(s=i?i(a,{addClass:o.modalInClass}).start():n.addClass(a,o.modalInClass),r.$on(t.NOW_CLOSING_EVENT,function(t,e){var r=e();i?i(a,{removeClass:o.modalInClass}).start().then(r):n.removeClass(a,o.modalInClass).then(r)})),e.when(s).then(function(){var t=a[0].querySelectorAll("[autofocus]");t.length?t[0].focus():a[0].focus()});var u=t.getTop();u&&t.modalRendered(u.key)})}}}]).directive("modalAnimationClass",[function(){return{compile:function(t,e){e.modalAnimation&&t.addClass(e.modalAnimationClass)}}}]).directive("modalTransclude",function(){return{link
|
||
|
u&&r.unbind(u,l),s.reject("Transition cancelled")},s.promise},s=document.createElement("trans"),u={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},l={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};return o.transitionEndEventName=a(u),o.animationEndEventName=a(l),o}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position"]).factory("typeaheadParser",["$parse",function(t){var e=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var r=n.match(e);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:r[3],source:t(r[4]),viewMapper:t(r[2]||r[1]),modelMapper:t(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$window","$rootScope","$position","typeaheadParser",function(t,e,n,r,i,a,o,s,u){var l=[9,13,27,38,40],c=200;return{require:["ngModel","^?ngModelOptions"],link:function(f,d,p,h){function g(){j.moveInProgress||(j.moveInProgress=!0,j.$digest()),z&&r.cancel(z),z=r(function(){j.matches.length&&m(),j.moveInProgress=!1,j.$digest()},c)}function m(){j.position=D?s.offset(d):s.position(d),j.position.top+=d.prop("offsetHeight")}var v=h[0],y=h[1],b=f.$eval(p.typeaheadMinLength);b||0===b||(b=1);var x,$,w=f.$eval(p.typeaheadWaitMs)||0,k=f.$eval(p.typeaheadEditable)!==!1,M=e(p.typeaheadLoading).assign||angular.noop,C=e(p.typeaheadOnSelect),S=angular.isDefined(p.typeaheadSelectOnBlur)?f.$eval(p.typeaheadSelectOnBlur):!1,A=e(p.typeaheadNoResults).assign||angular.noop,E=p.typeaheadInputFormatter?e(p.typeaheadInputFormatter):void 0,D=p.typeaheadAppendToBody?f.$eval(p.typeaheadAppendToBody):!1,_=f.$eval(p.typeaheadFocusFirst)!==!1,T=p.typeaheadSelectOnExact?f.$eval(p.typeaheadSelectOnExact):!1,O=e(p.ngModel),N=e(p.ngModel+"($$$p)"),P=function(t,e){return angular.isFunction(O(f))&&y&&y.$options&&y.$options.getterSetter?N(t,{$$$p:e}):O.assign(t,e)},F=u.parse(p.typeahead),j=f.$new(),I=f.$on("$destroy",function(){j.$destroy()});j.$on("$destroy",I);var L="typeahead-"+j.$id+"-"+Math.floor(1e4*Math.random());d.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":L});var q=angular.element("<div typeahead-popup></div>");q.attr({id:L,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"}),angular.isDefined(p.typeaheadTemplateUrl)&&q.attr("template-url",p.typeaheadTemplateUrl),angular.isDefined(p.typeaheadPopupTemplateUrl)&&q.attr("popup-template-url",p.typeaheadPopupTemplateUrl);var H=function(){j.matches=[],j.activeIdx=-1,d.attr("aria-expanded",!1)},V=function(t){return L+"-option-"+t};j.$watch("activeIdx",function(t){0>t?d.removeAttr("aria-activedescendant"):d.attr("aria-activedescendant",V(t))});var R=function(t,e){return j.matches.length>e&&t?t.toUpperCase()===j.matches[e].label.toUpperCase():!1},W=function(t){var e={$viewValue:t};M(f,!0),A(f,!1),n.when(F.source(f,e)).then(function(n){var r=t===v.$viewValue;if(r&&x)if(n&&n.length>0){j.activeIdx=_?0:-1,A(f,!1),j.matches.length=0;for(var i=0;i<n.length;i++)e[F.itemName]=n[i],j.matches.push({id:V(i),label:F.viewMapper(j,e),model:n[i]});j.query=t,m(),d.attr("aria-expanded",!0),T&&1===j.matches.length&&R(t,0)&&j.select(0)}else H(),A(f,!0);r&&M(f,!1)},function(){H(),M(f,!1),A(f,!0)})};D&&(angular.element(a).bind("resize",g),i.find("body").bind("scroll",g));var z;j.moveInProgress=!1,H(),j.query=void 0;var U,Y=function(t){U=r(function(){W(t)},w)},B=function(){U&&r.cancel(U)};v.$parsers.unshift(function(t){return x=!0,0===b||t&&t.length>=b?w>0?(B(),Y(t)):W(t):(M(f,!1),B(),H()),k?t:t?void v.$setValidity("editable",!1):(v.$setValidity("editable",!0),null)}),v.$formatters.push(function(t){var e,n,r={};return k||v.$setValidity("editable",!0),E?(r.$model=t,E(f,r)):(r[F.itemName]=t,e=F.viewMapper(f,r),r[F.itemName]=void 0,n=F.viewMapper(f,r),e!==n?e:t)}),j.select=fu
|
||
|
//! license : MIT
|
||
|
//! momentjs.com
|
||
|
function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Pn.apply(null,arguments)}function e(t){Pn=t}function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function i(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(t,e){for(var n in e)a(e,n)&&(t[n]=e[n]);return a(e,"toString")&&(t.toString=e.toString),a(e,"valueOf")&&(t.valueOf=e.valueOf),t}function s(t,e,n,r){return Et(t,e,n,r,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function l(t){return null==t._pf&&(t._pf=u()),t._pf}function c(t){if(null==t._isValid){var e=l(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function f(t){var e=s(NaN);return null!=t?o(l(e),t):l(e).userInvalidated=!0,e}function d(t,e){var n,r,i;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=l(e)),"undefined"!=typeof e._locale&&(t._locale=e._locale),jn.length>0)for(n in jn)r=jn[n],i=e[r],"undefined"!=typeof i&&(t[r]=i);return t}function p(e){d(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),In===!1&&(In=!0,t.updateOffset(this),In=!1)}function h(t){return t instanceof p||null!=t&&null!=t._isAMomentObject}function g(t){return 0>t?Math.ceil(t):Math.floor(t)}function m(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=g(e)),n}function v(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;i>r;r++)(n&&t[r]!==e[r]||!n&&m(t[r])!==m(e[r]))&&o++;return o+a}function y(){}function b(t){return t?t.toLowerCase().replace("_","-"):t}function x(t){for(var e,n,r,i,a=0;a<t.length;){for(i=b(t[a]).split("-"),e=i.length,n=b(t[a+1]),n=n?n.split("-"):null;e>0;){if(r=$(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&v(i,n,!0)>=e-1)break;e--}a++}return null}function $(t){var e=null;if(!Ln[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=Fn._abbr,require("./locale/"+t),w(e)}catch(n){}return Ln[t]}function w(t,e){var n;return t&&(n="undefined"==typeof e?M(t):k(t,e),n&&(Fn=n)),Fn._abbr}function k(t,e){return null!==e?(e.abbr=t,Ln[t]=Ln[t]||new y,Ln[t].set(e),w(t),Ln[t]):(delete Ln[t],null)}function M(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Fn;if(!n(t)){if(e=$(t))return e;t=[t]}return x(t)}function C(t,e){var n=t.toLowerCase();qn[n]=qn[n+"s"]=qn[e]=t}function S(t){return"string"==typeof t?qn[t]||qn[t.toLowerCase()]:void 0}function A(t){var e,n,r={};for(n in t)a(t,n)&&(e=S(n),e&&(r[e]=t[n]));return r}function E(e,n){return function(r){return null!=r?(_(this,e,r),t.updateOffset(this,n),this):D(this,e)}}function D(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function _(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function T(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=S(t),"function"==typeof this[t])return this[t](e);return this}function O(t,e,n){var r=""+Math.abs(t),i=e-r.length,a=t>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function N(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(Wn[t]=i),e&&(Wn[e[0]]=function(){return O(i.apply(this,arguments),e[1],e[2])}),n&&(Wn[n]=function(){return this.localeD
|
||
|
Hr.millisecond=Hr.milliseconds=qr,Hr.utcOffset=qt,Hr.utc=Vt,Hr.local=Rt,Hr.parseZone=Wt,Hr.hasAlignedHourOffset=zt,Hr.isDST=Ut,Hr.isDSTShifted=Yt,Hr.isLocal=Bt,Hr.isUtcOffset=Gt,Hr.isUtc=Xt,Hr.isUTC=Xt,Hr.zoneAbbr=Xe,Hr.zoneName=Ze,Hr.dates=tt("dates accessor is deprecated. Use date instead.",_r),Hr.months=tt("months accessor is deprecated. Use month instead",Z),Hr.years=tt("years accessor is deprecated. Use year instead",xr),Hr.zone=tt("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Ht);var Vr=Hr,Rr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Wr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},zr="Invalid date",Ur="%d",Yr=/\d{1,2}/,Br={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"},Gr=y.prototype;Gr._calendar=Rr,Gr.calendar=Qe,Gr._longDateFormat=Wr,Gr.longDateFormat=tn,Gr._invalidDate=zr,Gr.invalidDate=en,Gr._ordinal=Ur,Gr.ordinal=nn,Gr._ordinalParse=Yr,Gr.preparse=rn,Gr.postformat=rn,Gr._relativeTime=Br,Gr.relativeTime=an,Gr.pastFuture=on,Gr.set=sn,Gr.months=Y,Gr._months=pr,Gr.monthsShort=B,Gr._monthsShort=hr,Gr.monthsParse=G,Gr.week=ct,Gr._week=$r,Gr.firstDayOfYear=dt,Gr.firstDayOfWeek=ft,Gr.weekdays=Ie,Gr._weekdays=Tr,Gr.weekdaysMin=qe,Gr._weekdaysMin=Nr,Gr.weekdaysShort=Le,Gr._weekdaysShort=Or,Gr.weekdaysParse=He,Gr.isPM=Ye,Gr._meridiemParse=Pr,Gr.meridiem=Be,w("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===m(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),t.lang=tt("moment.lang is deprecated. Use moment.locale instead.",w),t.langData=tt("moment.langData is deprecated. Use moment.localeData instead.",M);var Xr=Math.abs,Zr=Cn("ms"),Kr=Cn("s"),Jr=Cn("m"),Qr=Cn("h"),ti=Cn("d"),ei=Cn("w"),ni=Cn("M"),ri=Cn("y"),ii=An("milliseconds"),ai=An("seconds"),oi=An("minutes"),si=An("hours"),ui=An("days"),li=An("months"),ci=An("years"),fi=Math.round,di={s:45,m:45,h:22,d:26,M:11},pi=Math.abs,hi=Nt.prototype;hi.abs=gn,hi.add=vn,hi.subtract=yn,hi.as=kn,hi.asMilliseconds=Zr,hi.asSeconds=Kr,hi.asMinutes=Jr,hi.asHours=Qr,hi.asDays=ti,hi.asWeeks=ei,hi.asMonths=ni,hi.asYears=ri,hi.valueOf=Mn,hi._bubble=xn,hi.get=Sn,hi.milliseconds=ii,hi.seconds=ai,hi.minutes=oi,hi.hours=si,hi.days=ui,hi.weeks=En,hi.months=li,hi.years=ci,hi.humanize=On,hi.toISOString=Nn,hi.toString=Nn,hi.toJSON=Nn,hi.locale=ve,hi.localeData=ye,hi.toIsoString=tt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Nn),hi.lang=Dr,N("X",0,0,"unix"),N("x",0,0,"valueOf"),q("x",tr),q("X",nr),R("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),R("x",function(t,e,n){n._d=new Date(m(t))}),t.version="2.10.6",e(Dt),t.fn=Vr,t.min=Tt,t.max=Ot,t.utc=s,t.unix=Ke,t.months=cn,t.isDate=r,t.locale=w,t.invalid=f,t.duration=Zt,t.isMoment=h,t.weekdays=dn,t.parseZone=Je,t.localeData=M,t.isDuration=Pt,t.monthsShort=fn,t.weekdaysMin=hn,t.defineLocale=k,t.weekdaysShort=pn,t.normalizeUnits=S,t.relativeTimeThreshold=Tn;var gi=t;return gi}),!function(){function t(t){return t&&(t.ownerDocument||t.document||t).documentElement}function e(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function n(t,e){return e>t?-1:t>e?1:t>=e?0:NaN}function r(t){return null===t?NaN:+t}function i(t){return!isNaN(t)}function a(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}function o(t){return t.length}function s(t){for(var e=1;t*e%1;)e*=10;return e}function u(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function l(){this._=Object.create(null)}function c(t
|
||
|
m&&m.push(v=[]),M=!0,k=!1,$=w=NaN}function p(){g&&(h(y,b),x&&k&&A.rejoin(),g.push(A.buffer())),D.point=f,k&&s.lineEnd()}function h(t,e){t=Math.max(-qs,Math.min(qs,t)),e=Math.max(-qs,Math.min(qs,e));var n=c(t,e);if(m&&v.push([t,e]),M)y=t,b=e,x=n,M=!1,n&&(s.lineStart(),s.point(t,e));else if(n&&k)s.point(t,e);else{var r={a:{x:$,y:w},b:{x:t,y:e}};E(r)?(k||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),C=!1):n&&(s.lineStart(),s.point(t,e),C=!1)}$=t,w=e,k=n}var g,m,v,y,b,x,$,w,k,M,C,S=s,A=Fe(),E=Re(t,e,n,r),D={point:f,lineStart:d,lineEnd:p,polygonStart:function(){s=A,g=[],m=[],C=!0},polygonEnd:function(){s=S,g=so.merge(g);var e=u([t,r]),n=C&&e,i=g.length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),l(null,null,1,s),s.lineEnd()),i&&_e(g,a,e,l,s),s.polygonEnd()),g=m=v=null}};return D}}function ze(t){var e=0,n=Lo/3,r=sn(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Lo/180,n=t[1]*Lo/180):[e/Lo*180,n/Lo*180]},i}function Ue(t,e){function n(t,e){var n=Math.sqrt(a-2*i*Math.sin(e))/i;return[n*Math.sin(t*=i),o-n*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(e))/2,a=1+r*(2*i-r),o=Math.sqrt(a)/i;return n.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/i,et((a-(t*t+n*n)*i*i)/(2*i))]},n}function Ye(){function t(t,e){Vs+=i*t-r*e,r=t,i=e}var e,n,r,i;Ys.point=function(a,o){Ys.point=t,e=r=a,n=i=o},Ys.lineEnd=function(){t(e,n)}}function Be(t,e){Rs>t&&(Rs=t),t>zs&&(zs=t),Ws>e&&(Ws=e),e>Us&&(Us=e)}function Ge(){function t(t,e){o.push("M",t,",",e,a)}function e(t,e){o.push("M",t,",",e),s.point=n}function n(t,e){o.push("L",t,",",e)}function r(){s.point=t}function i(){o.push("Z")}var a=Xe(4.5),o=[],s={point:t,lineStart:function(){s.point=e},lineEnd:r,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=r,s.point=t},pointRadius:function(t){return a=Xe(t),s},result:function(){if(o.length){var t=o.join("");return o=[],t}}};return s}function Xe(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Ze(t,e){Es+=t,Ds+=e,++_s}function Ke(){function t(t,r){var i=t-e,a=r-n,o=Math.sqrt(i*i+a*a);Ts+=o*(e+t)/2,Os+=o*(n+r)/2,Ns+=o,Ze(e=t,n=r)}var e,n;Gs.point=function(r,i){Gs.point=t,Ze(e=r,n=i)}}function Je(){Gs.point=Ze}function Qe(){function t(t,e){var n=t-r,a=e-i,o=Math.sqrt(n*n+a*a);Ts+=o*(r+t)/2,Os+=o*(i+e)/2,Ns+=o,o=i*t-r*e,Ps+=o*(r+t),Fs+=o*(i+e),js+=3*o,Ze(r=t,i=e)}var e,n,r,i;Gs.point=function(a,o){Gs.point=t,Ze(e=r=a,n=i=o)},Gs.lineEnd=function(){t(e,n)}}function tn(t){function e(e,n){t.moveTo(e+o,n),t.arc(e,n,o,0,qo)}function n(e,n){t.moveTo(e,n),s.point=r}function r(e,n){t.lineTo(e,n)}function i(){s.point=e}function a(){t.closePath()}var o=4.5,s={point:e,lineStart:function(){s.point=n},lineEnd:i,polygonStart:function(){s.lineEnd=a},polygonEnd:function(){s.lineEnd=i,s.point=e},pointRadius:function(t){return o=t,s},result:$};return s}function en(t){function e(t){return(s?r:n)(t)}function n(e){return an(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])}function r(){b=NaN,M.point=a,e.lineStart()}function a(n,r){var a=ge([n,r]),o=t(n,r);i(b,x,y,$,w,k,b=o[0],x=o[1],y=n,$=a[0],w=a[1],k=a[2],s,e),e.point(b,x)}function o(){M.point=n,e.lineEnd()}function u(){r(),M.point=l,M.lineEnd=c}function l(t,e){a(f=t,d=e),p=b,h=x,g=$,m=w,v=k,M.point=a}function c(){i(b,x,y,$,w,k,p,h,f,g,m,v,s,e),M.lineEnd=o,o()}var f,d,p,h,g,m,v,y,b,x,$,w,k,M={point:n,lineStart:r,lineEnd:o,polygonStart:function(){e.polygonStart(),M.lineStart=u},polygonEnd:function(){e.polygonEnd(),M.lineStart=r}};return M}function i(e,n,r,s,u,l,c,f,d,p,h,g,m,v){var y=c-e,b=f-n,x=y*y+b*b;if(x>4*a&&m--){var $=s+p,w=u+h,k=l+g,M=Math.sqrt($*$+w*w+k*k),C=Math.asin(k/=M),S=xo(xo(k)-1)<jo||xo(r-d)<jo?(r+d)/2:Math.atan2(w,$),A=t(S,C),E=A[0],D=A[1],_=E-e,T=D-n,O=b*_-y*T;(O*O/x>a||xo((y*_+b*T)/x-.5)>.3||o>s*p+u*h+l*g)&&(i(e,n,r,s,u,l,E,D,S,$/=M,w/=M,k,m,v),v.point(E,D),i(E,D,S,$,w,k,c,f,d,p,h,g,m,v))}}var a=.5,o=Math.cos(30*Ro),s=16;return e.precision=function(t){return arguments.length?(s=(a=t*t)>0&&16,e):Math.sqrt(a)},e}function nn(t){var e=en(function(e,
|
||
|
}function $a(t){return t.join("L")+"Z"}function wa(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function ka(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function Ma(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function Ca(t,e){return t.length<4?xa(t):t[1]+Ea(t.slice(1,-1),Da(t,e))}function Sa(t,e){return t.length<3?$a(t):t[0]+Ea((t.push(t[0]),t),Da([t[t.length-2]].concat(t,[t[1]]),e))}function Aa(t,e){return t.length<3?xa(t):t[0]+Ea(t,Da(t,e))}function Ea(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return xa(t);var n=t.length!=e.length,r="",i=t[0],a=t[1],o=e[0],s=o,u=1;if(n&&(r+="Q"+(a[0]-2*o[0]/3)+","+(a[1]-2*o[1]/3)+","+a[0]+","+a[1],i=t[1],u=2),e.length>1){s=e[1],a=t[u],u++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1];for(var l=2;l<e.length;l++,u++)a=t[u],s=e[l],r+="S"+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1]}if(n){var c=t[u];r+="Q"+(a[0]+2*s[0]/3)+","+(a[1]+2*s[1]/3)+","+c[0]+","+c[1]}return r}function Da(t,e){for(var n,r=[],i=(1-e)/2,a=t[0],o=t[1],s=1,u=t.length;++s<u;)n=a,a=o,o=t[s],r.push([i*(o[0]-n[0]),i*(o[1]-n[1])]);return r}function _a(t){if(t.length<3)return xa(t);var e=1,n=t.length,r=t[0],i=r[0],a=r[1],o=[i,i,i,(r=t[1])[0]],s=[a,a,a,r[1]],u=[i,",",a,"L",Pa(Fu,o),",",Pa(Fu,s)];for(t.push(t[n-1]);++e<=n;)r=t[e],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),Fa(u,o,s);return t.pop(),u.push("L",r),u.join("")}function Ta(t){if(t.length<4)return xa(t);for(var e,n=[],r=-1,i=t.length,a=[0],o=[0];++r<3;)e=t[r],a.push(e[0]),o.push(e[1]);for(n.push(Pa(Fu,a)+","+Pa(Fu,o)),--r;++r<i;)e=t[r],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Fa(n,a,o);return n.join("")}function Oa(t){for(var e,n,r=-1,i=t.length,a=i+4,o=[],s=[];++r<4;)n=t[r%i],o.push(n[0]),s.push(n[1]);for(e=[Pa(Fu,o),",",Pa(Fu,s)],--r;++r<a;)n=t[r%i],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),Fa(e,o,s);return e.join("")}function Na(t,e){var n=t.length-1;if(n)for(var r,i,a=t[0][0],o=t[0][1],s=t[n][0]-a,u=t[n][1]-o,l=-1;++l<=n;)r=t[l],i=l/n,r[0]=e*r[0]+(1-e)*(a+i*s),r[1]=e*r[1]+(1-e)*(o+i*u);return _a(t)}function Pa(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Fa(t,e,n){t.push("C",Pa(Nu,e),",",Pa(Nu,n),",",Pa(Pu,e),",",Pa(Pu,n),",",Pa(Fu,e),",",Pa(Fu,n))}function ja(t,e){return(e[1]-t[1])/(e[0]-t[0])}function Ia(t){for(var e=0,n=t.length-1,r=[],i=t[0],a=t[1],o=r[0]=ja(i,a);++e<n;)r[e]=(o+(o=ja(i=a,a=t[e+1])))/2;return r[e]=o,r}function La(t){for(var e,n,r,i,a=[],o=Ia(t),s=-1,u=t.length-1;++s<u;)e=ja(t[s],t[s+1]),xo(e)<jo?o[s]=o[s+1]=0:(n=o[s]/e,r=o[s+1]/e,i=n*n+r*r,i>9&&(i=3*e/Math.sqrt(i),o[s]=i*n,o[s+1]=i*r));for(s=-1;++s<=u;)i=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}function qa(t){return t.length<3?xa(t):t[0]+Ea(t,La(t))}function Ha(t){for(var e,n,r,i=-1,a=t.length;++i<a;)e=t[i],n=e[0],r=e[1]-Vo,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function Va(t){function e(e){function u(){g.push("M",s(t(v),f),c,l(t(m.reverse()),f),"Z")}for(var d,p,h,g=[],m=[],v=[],y=-1,b=e.length,x=St(n),$=St(i),w=n===r?function(){return p}:St(r),k=i===a?function(){return h}:St(a);++y<b;)o.call(this,d=e[y],y)?(m.push([p=+x.call(this,d,y),h=+$.call(this,d,y)]),v.push([+w.call(this,d,y),+k.call(this,d,y)])):m.length&&(u(),m=[],v=[]);return m.length&&u(),g.length?g.join(""):null}var n=Dn,r=Dn,i=0,a=_n,o=De,s=xa,u=s.key,l=s,c="L",f=.7;return e.x=function(t){return arguments.length?(n=r=t,e):r},e.x0=function(t){return arguments.length?(n=t,e):n},e.x1=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(i=a=t,e):a},e.y0=function(t){return arguments.length?(i=t,e):i},e.y1=function(t){return arguments.length?(a=t,e):a},e.defined=function(t){return arguments.length?(o=t,e):o},e.interpolate=function(t){return arguments.length?(u="function"==typeof t?s=t:(s=Ou.get(t)||xa).key,l=s.reverse||s,c=s.closed?"
|
||
|
e&&(t=so.round(t,Ft(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),cs[8+n/3]};var fs=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ds=so.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=so.round(t,Ft(t,e))).toFixed(Math.max(0,Math.min(20,Ft(t*(1+1e-15),e))))}}),ps=so.time={},hs=Date;qt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){gs.setUTCDate.apply(this._,arguments)},setDay:function(){gs.setUTCDay.apply(this._,arguments)},setFullYear:function(){gs.setUTCFullYear.apply(this._,arguments)},setHours:function(){gs.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){gs.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){gs.setUTCMinutes.apply(this._,arguments)},setMonth:function(){gs.setUTCMonth.apply(this._,arguments)},setSeconds:function(){gs.setUTCSeconds.apply(this._,arguments)},setTime:function(){gs.setTime.apply(this._,arguments)}};var gs=Date.prototype;ps.year=Ht(function(t){return t=ps.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),ps.years=ps.year.range,ps.years.utc=ps.year.utc.range,ps.day=Ht(function(t){var e=new hs(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),ps.days=ps.day.range,ps.days.utc=ps.day.utc.range,ps.dayOfYear=function(t){var e=ps.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=ps[t]=Ht(function(t){return(t=ps.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=ps.year(t).getDay();return Math.floor((ps.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});ps[t+"s"]=n.range,ps[t+"s"].utc=n.utc.range,ps[t+"OfYear"]=function(t){var n=ps.year(t).getDay();return Math.floor((ps.dayOfYear(t)+(n+e)%7)/7)}}),ps.week=ps.sunday,ps.weeks=ps.sunday.range,ps.weeks.utc=ps.sunday.utc.range,ps.weekOfYear=ps.sundayOfYear;var ms={"-":"",_:" ",0:"0"},vs=/^\s*\d+/,ys=/^%/;so.locale=function(t){return{numberFormat:It(t),timeFormat:Rt(t)}};var bs=so.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});so.format=bs.numberFormat,so.geo={},le.prototype={s:0,t:0,add:function(t){ce(t,this.t,xs),ce(xs.s,this.s,this),this.s?this.t+=xs.t:this.s=xs.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var xs=new le;so.geo.stream=function(t,e){t&&$s.hasOwnProperty(t.type)?$s[t.type](t,e):fe(t,e)};var $s={Feature:function(t,e){fe(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)fe(n[r].geometry,e)}},ws={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.
|
||
|
return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},ii(t,n)},so.layout.tree=function(){function t(t,i){var c=o.call(this,t,i),f=c[0],d=e(f);if(oi(d,n),d.parent.m=-d.z,ai(d,r),l)ai(f,a);else{var p=f,h=f,g=f;ai(f,function(t){t.x<p.x&&(p=t),t.x>h.x&&(h=t),t.depth>g.depth&&(g=t)});var m=s(p,h)/2-p.x,v=u[0]/(h.x+s(h,p)/2+m),y=u[1]/(g.depth||1);ai(f,function(t){t.x=(t.x+m)*v,t.y=t.depth*y})}return c}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var i,a=e.children,o=0,s=a.length;s>o;++o)r.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return n.children[0]}function n(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e.length){Fi(t);var a=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+s(t._,r._),t.m=t.z-a):t.z=a}else r&&(t.z=r.z+s(t._,r._));t.parent.A=i(t,r,t.parent.A||n[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,e,n){if(e){for(var r,i=t,a=t,o=e,u=i.parent.children[0],l=i.m,c=a.m,f=o.m,d=u.m;o=Ni(o),i=Oi(i),o&&i;)u=Oi(u),a=Ni(a),a.a=t,r=o.z+f-i.z-l+s(o._,i._),r>0&&(Pi(ji(o,t,n),t,r),l+=r,c+=r),f+=o.m,l+=i.m,d+=u.m,c+=a.m;o&&!Ni(a)&&(a.t=o,a.m+=f-c),i&&!Oi(u)&&(u.t=i,u.m+=l-d,n=t)}return n}function a(t){t.x*=u[0],t.y=t.depth*u[1]}var o=so.layout.hierarchy().sort(null).value(null),s=Ti,u=[1,1],l=null;return t.separation=function(e){return arguments.length?(s=e,t):s},t.size=function(e){return arguments.length?(l=null==(u=e)?a:null,t):l?null:u},t.nodeSize=function(e){return arguments.length?(l=null==(u=e)?null:a,t):l?u:null},ii(t,o)},so.layout.cluster=function(){function t(t,a){var o,s=e.call(this,t,a),u=s[0],l=0;oi(u,function(t){var e=t.children;e&&e.length?(t.x=Li(e),t.y=Ii(e)):(t.x=o?l+=n(t,o):0,t.y=0,o=t)});var c=qi(u),f=Hi(u),d=c.x-n(c,f)/2,p=f.x+n(f,c)/2;return oi(u,i?function(t){t.x=(t.x-u.x)*r[0],t.y=(u.y-t.y)*r[1]}:function(t){t.x=(t.x-d)/(p-d)*r[0],t.y=(1-(u.y?t.y/u.y:1))*r[1]}),s}var e=so.layout.hierarchy().sort(null).value(null),n=Ti,r=[1,1],i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(i=null==(r=e),t):i?null:r},t.nodeSize=function(e){return arguments.length?(i=null!=(r=e),t):i?r:null},ii(t,e)},so.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,a=t.length;++i<a;)r=(n=t[i]).value*(0>e?0:e),n.area=isNaN(r)||0>=r?0:r}function e(n){var a=n.children;if(a&&a.length){var o,s,u,l=f(n),c=[],d=a.slice(),h=1/0,g="slice"===p?l.dx:"dice"===p?l.dy:"slice-dice"===p?1&n.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(t(d,l.dx*l.dy/n.value),c.area=0;(u=d.length)>0;)c.push(o=d[u-1]),c.area+=o.area,"squarify"!==p||(s=r(c,g))<=h?(d.pop(),h=s):(c.area-=c.pop().area,i(c,g,l,!1),g=Math.min(l.dx,l.dy),c.length=c.area=0,h=1/0);c.length&&(i(c,g,l,!0),c.length=c.area=0),a.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var a,o=f(e),s=r.slice(),u=[];for(t(s,o.dx*o.dy/e.value),u.area=0;a=s.pop();)u.push(a),u.area+=a.area,null!=a.z&&(i(u,a.z?o.dx:o.dy,o,!s.length),u.length=u.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,i=0,a=1/0,o=-1,s=t.length;++o<s;)(n=t[o].area)&&(a>n&&(a=n),n>i&&(i=n));return r*=r,e*=e,r?Math.max(e*i*h/r,r/(e*a*h)):1/0}function i(t,e,n,r){var i,a=-1,o=t.length,s=n.x,l=n.y,c=e?u(t.area/e):0;if(e==n.dx){for((r||c>n.dy)&&(c=n.dy);++a<o;)i=t[a],i.x=s,i.y=l,i.dy=c,s+=i.dx=Math.min(n.x+n.dx-s,c?u(i.area/c):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=c,n.dy-=c}else{for((r||c>n.dx)&&(c=n.dx);++a<o;)i=t[a],i.x=s,i.y=l,i.dx=c,l+=i.dy=Math.min(n.y+n.dy-l,c?u(i.area/c):0);i.z=!1,i.dy+=n.y+n.dy-l,n.x+=c,n.dx-=c}}function a(r){var i=o||s(r),a=i[0];return a.x=a.y=0,a.value?(a.dx=l[0],a.dy=l[1]):a.dx=a.dy=0,o&&s.revalue(a),t([a],a.dx*a.dy/a.value),(o?n:e)(a),d&&(o=i),i}var o,s=so.layout.hierarchy(),u=Math.round,l=[1,1],c=null,f=Vi,d=!1,p="squarify",h=.5*(1+Math.sqrt(5));return a.size=function(t){return arguments.length?(l=t,a):l},a.padding=function(t){function e(e){var n=t.call(a,e,e.depth);return null==n?Vi(e):Ri(e,"number"==typeof n?[n,n,n,n]:n)}function n(
|
||
|
if(e){e=e.split(" ");var n=parseInt(t.style("width"),10)/e[2];g.left=g.left*n,g.top=g.top*n}}}function n(){if(!p){var t;t=c?c:document.body,p=d3.select(t).append("div").attr("class","nvtooltip "+(l?l:"xy-tooltip")).attr("id",$),p.style("top",0).style("left",0),p.style("opacity",0),p.selectAll("div, table, td, tr").classed(w,!0),p.classed(w,!0),h=p.node()}}function r(){if(v&&A(i)){e();var a=g.left,o=null!==u?u:g.top;return t.dom.write(function(){n();var e=S(i);e&&(h.innerHTML=e),c&&x?t.dom.read(function(){var t=c.getElementsByTagName("svg")[0],e={left:0,top:0};if(t){var n=t.getBoundingClientRect(),r=c.getBoundingClientRect(),i=n.top;if(0>i){var u=c.getBoundingClientRect();i=Math.abs(i)>u.height?0:i}e.top=Math.abs(i-r.top),e.left=Math.abs(n.left-r.left)}a+=c.offsetLeft+e.left-2*c.scrollLeft,o+=c.offsetTop+e.top-2*c.scrollTop,s&&s>0&&(o=Math.floor(o/s)*s),E([a,o])}):E([a,o])}),r}}var i=null,a="w",o=25,s=0,u=null,l=null,c=null,f=!0,d=400,p=null,h=null,g={left:null,top:null},m={left:0,top:0},v=!0,y=100,b=!0,x=!1,$="nvtooltip-"+Math.floor(1e5*Math.random()),w="nv-pointer-events-none",k=function(t,e){return t},M=function(t){return t},C=function(t,e){return t},S=function(t){if(null===t)return"";var e=d3.select(document.createElement("table"));if(b){var n=e.selectAll("thead").data([t]).enter().append("thead");n.append("tr").append("td").attr("colspan",3).append("strong").classed("x-value",!0).html(M(t.value))}var r=e.selectAll("tbody").data([t]).enter().append("tbody"),i=r.selectAll("tr").data(function(t){return t.series}).enter().append("tr").classed("highlight",function(t){return t.highlight});i.append("td").classed("legend-color-guide",!0).append("div").style("background-color",function(t){return t.color}),i.append("td").classed("key",!0).html(function(t,e){return C(t.key,e)}),i.append("td").classed("value",!0).html(function(t,e){return k(t.value,e)}),i.selectAll("td").each(function(t){if(t.highlight){var e=d3.scale.linear().domain([0,1]).range(["#fff",t.color]),n=.6;d3.select(this).style("border-bottom-color",e(n)).style("border-top-color",e(n))}});var a=e.node().outerHTML;return void 0!==t.footer&&(a+="<div class='footer'>"+t.footer+"</div>"),a},A=function(t){if(t&&t.series){if(t.series instanceof Array)return!!t.series.length;if(t.series instanceof Object)return t.series=[t.series],!0}return!1},E=function(e){h&&t.dom.read(function(){var n,r,i=parseInt(h.offsetHeight,10),s=parseInt(h.offsetWidth,10),u=t.utils.windowSize().width,l=t.utils.windowSize().height,c=window.pageYOffset,g=window.pageXOffset;l=window.innerWidth>=document.body.scrollWidth?l:l-16,u=window.innerHeight>=document.body.scrollHeight?u:u-16;var v,b,x=function(t){var e=r;do isNaN(t.offsetTop)||(e+=t.offsetTop),t=t.offsetParent;while(t);return e},$=function(t){var e=n;do isNaN(t.offsetLeft)||(e+=t.offsetLeft),t=t.offsetParent;while(t);return e};switch(a){case"e":n=e[0]-s-o,r=e[1]-i/2,v=$(h),b=x(h),g>v&&(n=e[0]+o>g?e[0]+o:g-v+n),c>b&&(r=c-b+r),b+i>c+l&&(r=c+l-b+r-i);break;case"w":n=e[0]+o,r=e[1]-i/2,v=$(h),b=x(h),v+s>u&&(n=e[0]-s-o),c>b&&(r=c+5),b+i>c+l&&(r=c+l-b+r-i);break;case"n":n=e[0]-s/2-5,r=e[1]+o,v=$(h),b=x(h),g>v&&(n=g+5),v+s>u&&(n=n-s/2+5),b+i>c+l&&(r=c+l-b+r-i);break;case"s":n=e[0]-s/2,r=e[1]-i-o,v=$(h),b=x(h),g>v&&(n=g+5),v+s>u&&(n=n-s/2+5),c>b&&(r=c);break;case"none":n=e[0],r=e[1]-o,v=$(h),b=x(h)}n-=m.left,r-=m.top;var w=h.getBoundingClientRect(),c=window.pageYOffset||document.documentElement.scrollTop,g=window.pageXOffset||document.documentElement.scrollLeft,k="translate("+(w.left+g)+"px, "+(w.top+c)+"px)",M="translate("+n+"px, "+r+"px)",C=d3.interpolateString(k,M),S=p.style("opacity")<.1;f?p.transition().delay(d).duration(0).style("opacity",0):p.interrupt().transition().duration(S?0:y).styleTween("transform",function(t){return C},"important").style("-webkit-transform",M).style("opacity",1)})};return r.nvPointerEventsClass=w,r.options=t.utils.optionsFunc.bind(r),r._options=Object.create({},{duration:{get:function(){return y},set:function(t){y=t}},gravity:{get:function(){return a},set:function(t){a=t}},distance:{get:function(){return o},set:function
|
||
|
})});var F=y/6,j=x.map(function(t,e){return{value:t,label:k[e]}});T.selectAll("path.nv-markerTriangle").data(j).enter().append("path").attr("class","nv-markerTriangle").attr("transform",function(t){return"translate("+C(t.value)+","+y/2+")"}).attr("d","M0,"+F+"L"+F+","+-F+" "+-F+","+-F+"Z").on("mouseover",function(t){v.elementMouseover({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill"),pos:[C(t.value),y/2]})}).on("mousemove",function(t){v.elementMousemove({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){v.elementMouseout({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill")})}),D.selectAll(".nv-range").on("mouseover",function(t,e){var n=w[e]||(e?1==e?"Mean":"Minimum":"Maximum");v.elementMouseover({value:t,label:n,color:d3.select(this).style("fill")})}).on("mousemove",function(){v.elementMousemove({value:$[0],label:M[0]||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){var n=w[e]||(e?1==e?"Mean":"Minimum":"Maximum");v.elementMouseout({value:t,label:n,color:d3.select(this).style("fill")})})}),e}var n={top:0,right:0,bottom:0,left:0},r="left",i=!1,a=function(t){return t.ranges},o=function(t){return t.markers?t.markers:[0]},s=function(t){return t.measures},u=function(t){return t.rangeLabels?t.rangeLabels:[]},l=function(t){return t.markerLabels?t.markerLabels:[]},c=function(t){return t.measureLabels?t.measureLabels:[]},f=[0],d=380,p=30,h=null,g=null,m=t.utils.getColor(["#1f77b4"]),v=d3.dispatch("elementMouseover","elementMouseout","elementMousemove");return e.dispatch=v,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{ranges:{get:function(){return a},set:function(t){a=t}},markers:{get:function(){return o},set:function(t){o=t}},measures:{get:function(){return s},set:function(t){s=t}},forceX:{get:function(){return f},set:function(t){f=t}},width:{get:function(){return d},set:function(t){d=t}},height:{get:function(){return p},set:function(t){p=t}},tickFormat:{get:function(){return g},set:function(t){g=t}},margin:{get:function(){return n},set:function(t){n.top=void 0!==t.top?t.top:n.top,n.right=void 0!==t.right?t.right:n.right,n.bottom=void 0!==t.bottom?t.bottom:n.bottom,n.left=void 0!==t.left?t.left:n.left}},orient:{get:function(){return r},set:function(t){r=t,i="right"==r||"bottom"==r}},color:{get:function(){return m},set:function(e){m=t.utils.getColor(e)}}}),t.utils.initOptions(e),e},t.models.bulletChart=function(){"use strict";function e(r){return r.each(function(i,h){var g=d3.select(this);t.utils.initSVG(g);var m=t.utils.availableWidth(c,g,o),v=f-o.top-o.bottom;if(e.update=function(){e(r)},e.container=this,!i||!s.call(this,i,h))return t.utils.noData(e,g),e;g.selectAll(".nv-noData").remove();var y=s.call(this,i,h).slice().sort(d3.descending),b=u.call(this,i,h).slice().sort(d3.descending),x=l.call(this,i,h).slice().sort(d3.descending),$=g.selectAll("g.nv-wrap.nv-bulletChart").data([i]),w=$.enter().append("g").attr("class","nvd3 nv-wrap nv-bulletChart"),k=w.append("g"),M=$.select("g");k.append("g").attr("class","nv-bulletWrap"),k.append("g").attr("class","nv-titles"),$.attr("transform","translate("+o.left+","+o.top+")");var C=d3.scale.linear().domain([0,Math.max(y[0],b[0],x[0])]).range(a?[m,0]:[0,m]),S=this.__chart__||d3.scale.linear().domain([0,1/0]).range(C.range());this.__chart__=C;var A=k.select(".nv-titles").append("g").attr("text-anchor","end").attr("transform","translate(-6,"+(f-o.top-o.bottom)/2+")");A.append("text").attr("class","nv-title").text(function(t){return t.title}),A.append("text").attr("class","nv-subtitle").attr("dy","1em").text(function(t){return t.subtitle}),n.width(m).height(v);var E=M.select(".nv-bulletWrap");d3.transition(E).call(n);var D=d||C.tickFormat(m/100),_=M.selectAll("g.nv-tick").data(C.ticks(p?p:m/50),function(t){return this.textContent||D(t)}),T=_.enter().append("g").attr("class","nv-tick").attr("transform",function(t){return"translate("+S(t)+",0)"}).style("opacity",1e-6);T.append("line").attr("y1",v).attr("y2",7*v/6),T.append("text").attr("
|
||
|
d.reset(c),e):c},e},t.models.furiousLegend=function(){"use strict";function e(g){function m(t,e){return"furious"!=h?"#000":d?t.disengaged?o(t,e):"#fff":d?void 0:t.disabled?o(t,e):"#fff"}function v(t,e){return d&&"furious"==h?t.disengaged?"#fff":o(t,e):t.disabled?"#fff":o(t,e)}return g.each(function(e){var g=r-n.left-n.right,y=d3.select(this);t.utils.initSVG(y);var b=y.selectAll("g.nv-legend").data([e]),x=(b.enter().append("g").attr("class","nvd3 nv-legend").append("g"),b.select("g"));b.attr("transform","translate("+n.left+","+n.top+")");var $,w=x.selectAll(".nv-series").data(function(t){return"furious"!=h?t:t.filter(function(t){return d?!0:!t.disengaged})}),k=w.enter().append("g").attr("class","nv-series");if("classic"==h)k.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),$=w.select("circle");else if("furious"==h){k.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),$=w.select("rect"),k.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)");var M=w.select(".nv-check-box");M.each(function(t,e){d3.select(this).selectAll("path").attr("stroke",m(t,e))})}k.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var C=w.select("text.nv-legend-text");w.on("mouseover",function(t,e){p.legendMouseover(t,e)}).on("mouseout",function(t,e){p.legendMouseout(t,e)}).on("click",function(t,e){p.legendClick(t,e);var n=w.data();if(c){if("classic"==h)f?(n.forEach(function(t){t.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,n.every(function(t){return t.disabled})&&n.forEach(function(t){t.disabled=!1}));else if("furious"==h)if(d)t.disengaged=!t.disengaged,t.userDisabled=void 0==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled;else if(!d){t.disabled=!t.disabled,t.userDisabled=t.disabled;var r=n.filter(function(t){return!t.disengaged});r.every(function(t){return t.userDisabled})&&n.forEach(function(t){t.disabled=t.userDisabled=!1})}p.stateChange({disabled:n.map(function(t){return!!t.disabled}),disengaged:n.map(function(t){return!!t.disengaged})})}}).on("dblclick",function(t,e){if(("furious"!=h||!d)&&(p.legendDblclick(t,e),c)){var n=w.data();n.forEach(function(t){t.disabled=!0,"furious"==h&&(t.userDisabled=t.disabled)}),t.disabled=!1,"furious"==h&&(t.userDisabled=t.disabled),p.stateChange({disabled:n.map(function(t){return!!t.disabled})})}}),w.classed("nv-disabled",function(t){return t.userDisabled}),w.exit().remove(),C.attr("fill",m).text(a);var S;switch(h){case"furious":S=23;break;case"classic":S=20}if(s){var A=[];w.each(function(e,n){var r,i=d3.select(this).select("text");try{if(r=i.node().getComputedTextLength(),0>=r)throw Error()}catch(a){r=t.utils.calcApproxTextWidth(i)}A.push(r+u)});for(var E=0,D=0,_=[];g>D&&E<A.length;)_[E]=A[E],D+=A[E++];for(0===E&&(E=1);D>g&&E>1;){_=[],E--;for(var T=0;T<A.length;T++)A[T]>(_[T%E]||0)&&(_[T%E]=A[T]);D=_.reduce(function(t,e,n,r){return t+e})}for(var O=[],N=0,P=0;E>N;N++)O[N]=P,P+=_[N];w.attr("transform",function(t,e){return"translate("+O[e%E]+","+(5+Math.floor(e/E)*S)+")"}),l?x.attr("transform","translate("+(r-n.right-D)+","+n.top+")"):x.attr("transform","translate(0,"+n.top+")"),i=n.top+n.bottom+Math.ceil(A.length/E)*S}else{var F,j=5,I=5,L=0;w.attr("transform",function(t,e){var i=d3.select(this).select("text").node().getComputedTextLength()+u;return F=I,r<n.left+n.right+F+i&&(I=F=5,j+=S),I+=i,I>L&&(L=I),"translate("+F+","+j+")"}),x.attr("transform","translate("+(r-n.right-L)+","+n.top+")"),i=n.top+n.bottom+j+15}"furious"==h&&$.attr("width",function(t,e){return C[0][e].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),$.style("fill",v).style("stroke",function(t,e){return t.color||o(t,e)})}),e}var n={top:5,right:0,bottom:5,left:0},r=400,i=20,a=function(t){return t.key},o=t.utils.getColor(),
|
||
|
get:function(){return $},set:function(t){$=t}},tooltips:{get:function(){return l.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),l.enabled(!!e)}},tooltipContent:{get:function(){return l.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),l.contentGenerator(e)}},margin:{get:function(){return c},set:function(t){c.top=void 0!==t.top?t.top:c.top,c.right=void 0!==t.right?t.right:c.right,c.bottom=void 0!==t.bottom?t.bottom:c.bottom,c.left=void 0!==t.left?t.left:c.left}},duration:{get:function(){return k},set:function(t){k=t,M.reset(k),i.duration(k),a.duration(k),o.duration(k)}},color:{get:function(){return f},set:function(e){f=t.utils.getColor(e),s.color(f),i.color(f)}},rightAlignYAxis:{get:function(){return v},set:function(t){v=t,o.orient(v?"right":"left")}},useInteractiveGuideline:{get:function(){return y},set:function(t){y=t,y&&(i.interactive(!1),i.useVoronoi(!1))}}}),t.utils.inheritOptions(e,i),t.utils.initOptions(e),e},t.models.linePlusBarChart=function(){"use strict";function e($){return $.each(function($){function F(t){var e=+("e"==t),n=e?1:-1,r=X/3;return"M"+.5*n+","+r+"A6,6 0 0 "+e+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+e+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8)}function z(){x.empty()||x.extent(P),ct.data([x.empty()?i.domain():P]).each(function(t,e){var n=i(t[0])-i.range()[0],r=i.range()[1]-i(t[1]);d3.select(this).select(".left").attr("width",0>n?0:n),d3.select(this).select(".right").attr("x",i(t[1])).attr("width",0>r?0:r)})}function U(){P=x.empty()?null:x.extent(),n=x.empty()?i.domain():x.extent(),j.brush({extent:n,brush:x}),z(),f.width(B).height(G).color($.map(function(t,e){return t.color||E(t,e)}).filter(function(t,e){return!$[e].disabled&&$[e].bar})),l.width(B).height(G).color($.map(function(t,e){return t.color||E(t,e)}).filter(function(t,e){return!$[e].disabled&&!$[e].bar}));var e=rt.select(".nv-focus .nv-barsWrap").datum(K.length?K.map(function(t,e){return{key:t.key,values:t.values.filter(function(t,e){return f.x()(t,e)>=n[0]&&f.x()(t,e)<=n[1]})}}):[{values:[]}]),s=rt.select(".nv-focus .nv-linesWrap").datum(J[0].disabled?[{values:[]}]:J.map(function(t,e){return{area:t.area,fillOpacity:t.fillOpacity,key:t.key,values:t.values.filter(function(t,e){return l.x()(t,e)>=n[0]&&l.x()(t,e)<=n[1]})}}));r=K.length?f.xScale():l.xScale(),p.scale(r)._ticks(t.utils.calcTicksX(B/100,$)).tickSize(-G,0),p.domain([Math.ceil(n[0]),Math.floor(n[1])]),rt.select(".nv-x.nv-axis").transition().duration(I).call(p),e.transition().duration(I).call(f),s.transition().duration(I).call(l),rt.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+a.range()[0]+")"),g.scale(a)._ticks(t.utils.calcTicksY(G/36,$)).tickSize(-B,0),m.scale(o)._ticks(t.utils.calcTicksY(G/36,$)).tickSize(K.length?0:-B,0),rt.select(".nv-focus .nv-y1.nv-axis").style("opacity",K.length?1:0),rt.select(".nv-focus .nv-y2.nv-axis").style("opacity",J.length&&!J[0].disabled?1:0).attr("transform","translate("+r.range()[1]+",0)"),rt.select(".nv-focus .nv-y1.nv-axis").transition().duration(I).call(g),rt.select(".nv-focus .nv-y2.nv-axis").transition().duration(I).call(m)}var Y=d3.select(this);t.utils.initSVG(Y);var B=t.utils.availableWidth(M,Y,w),G=t.utils.availableHeight(C,Y,w)-(_?N:0),X=N-k.top-k.bottom;if(e.update=function(){Y.transition().duration(I).call(e)},e.container=this,L.setter(W($),e.update).getter(R($)).update(),L.disabled=$.map(function(t){return!!t.disabled}),!q){var Z;q={};for(Z in L)L[Z]instanceof Array?q[Z]=L[Z].slice(0):q[Z]=L[Z]}if(!($&&$.length&&$.filter(function(t){return t.values.length}).length))return t.utils.noData(e,Y),e;Y.selectAll(".nv-noData").remove();var K=$.filter(function(t){return!t.disabled&&t.bar}),J=$.filter(function(t){return!t.bar});r=f.xScale(),i=h.scale(),a=f.yScale(),o=l.yScale(),s=d.yScale(),u=c.yScale();var Q=$.filter(function(t){return!t.disabled&&t.bar}).map(function(t){return t.values.map(function(t,e){return{x:S(t,e),y:A(t,e)}})}),tt=$.filter(function(t){return!t.disabled&&!t.b
|
||
|
controlLabels:{get:function(){return g},set:function(t){g=t}},showXAxis:{get:function(){return v},set:function(t){v=t}},showYAxis:{get:function(){return y},set:function(t){y=t}},defaultState:{get:function(){return M},set:function(t){M=t}},noData:{get:function(){return C},set:function(t){C=t}},reduceXTicks:{get:function(){return x},set:function(t){x=t}},rotateLabels:{get:function(){return w},set:function(t){w=t}},staggerLabels:{get:function(){return $},set:function(t){$=t}},tooltips:{get:function(){return l.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),l.enabled(!!e)}},tooltipContent:{get:function(){return l.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),l.contentGenerator(e)}},margin:{get:function(){return c},set:function(t){c.top=void 0!==t.top?t.top:c.top,c.right=void 0!==t.right?t.right:c.right,c.bottom=void 0!==t.bottom?t.bottom:c.bottom,c.left=void 0!==t.left?t.left:c.left}},duration:{get:function(){return E},set:function(t){E=t,i.duration(E),a.duration(E),o.duration(E),D.reset(E)}},color:{get:function(){return p},set:function(e){p=t.utils.getColor(e),s.color(p)}},rightAlignYAxis:{get:function(){return b},set:function(t){b=t,o.orient(b?"right":"left")}},barColor:{get:function(){return i.barColor},set:function(t){i.barColor(t),s.color(function(t,e){return d3.rgb("#ccc").darker(1.5*e).toString()})}}}),t.utils.inheritOptions(e,i),t.utils.initOptions(e),e},t.models.multiBarHorizontal=function(){"use strict";function e(d){return _.reset(),d.each(function(e){var d=c-l.left-l.right,E=f-l.top-l.bottom;p=d3.select(this),t.utils.initSVG(p),w&&(e=d3.layout.stack().offset("zero").values(function(t){return t.values}).y(v)(e)),e.forEach(function(t,e){t.values.forEach(function(n){n.series=e,n.key=t.key})}),w&&e[0].values.map(function(t,n){var r=0,i=0;e.map(function(t){var e=t.values[n];e.size=Math.abs(e.y),e.y<0?(e.y1=i-e.size,i-=e.size):(e.y1=r,r+=e.size)})});var T=r&&i?[]:e.map(function(t){return t.values.map(function(t,e){return{x:m(t,e),y:v(t,e),y0:t.y0,y1:t.y1}})});h.domain(r||d3.merge(T).map(function(t){return t.x})).rangeBands(a||[0,E],S),g.domain(i||d3.extent(d3.merge(T).map(function(t){return w?t.y>0?t.y1+t.y:t.y1:t.y}).concat(b))),k&&!w?g.range(o||[g.domain()[0]<0?C:0,d-(g.domain()[1]>0?C:0)]):g.range(o||[0,d]),s=s||h,u=u||d3.scale.linear().domain(g.domain()).range([g(0),g(0)]);var O=d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([e]),N=O.enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal"),P=(N.append("defs"),N.append("g"));O.select("g");P.append("g").attr("class","nv-groups"),O.attr("transform","translate("+l.left+","+l.top+")");var F=O.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t,e){return e});F.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),F.exit().watchTransition(_,"multibarhorizontal: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),F.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return x(t,e)}).style("stroke",function(t,e){return x(t,e)}),F.watchTransition(_,"multibarhorizontal: groups").style("stroke-opacity",1).style("fill-opacity",.75);var j=F.selectAll("g.nv-bar").data(function(t){return t.values});j.exit().remove();var I=j.enter().append("g").attr("transform",function(t,n,r){return"translate("+u(w?t.y0:0)+","+(w?0:r*h.rangeBand()/e.length+h(m(t,n)))+")"});I.append("rect").attr("width",0).attr("height",h.rangeBand()/(w?1:e.length)),j.on("mouseover",function(t,e){d3.select(this).classed("hover",!0),D.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),D.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){D.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){D.elementMousemove({data:t,index:e,color:d3.select(
|
||
|
d3.select(this).call(O.scale(o[t]).tickFormat(d3.format(u[e])))}),q.select(".nv-parallelCoordinates-brush").each(function(t){d3.select(this).call(o[t].brush)}).selectAll("rect").attr("x",-8).attr("width",16)}),e}var n={top:30,right:0,bottom:10,left:0},r=null,i=null,a=d3.scale.ordinal(),o={},s=[],u=[],l=t.utils.defaultColor(),c=[],f=[],d=[],p=1,h=d3.dispatch("brush","elementMouseover","elementMouseout");return e.dispatch=h,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return r},set:function(t){r=t}},height:{get:function(){return i},set:function(t){i=t}},dimensionNames:{get:function(){return s},set:function(t){s=t}},dimensionFormats:{get:function(){return u},set:function(t){u=t}},lineTension:{get:function(){return p},set:function(t){p=t}},dimensions:{get:function(){return s},set:function(e){t.deprecated("dimensions","use dimensionNames instead"),s=e}},margin:{get:function(){return n},set:function(t){n.top=void 0!==t.top?t.top:n.top,n.right=void 0!==t.right?t.right:n.right,n.bottom=void 0!==t.bottom?t.bottom:n.bottom,n.left=void 0!==t.left?t.left:n.left}},color:{get:function(){return l},set:function(e){l=t.utils.getColor(e)}}}),t.utils.initOptions(e),e},t.models.pie=function(){"use strict";function e(_){return D.reset(),_.each(function(e){function _(t,e){t.endAngle=isNaN(t.endAngle)?0:t.endAngle,t.startAngle=isNaN(t.startAngle)?0:t.startAngle,g||(t.innerRadius=0);var n=d3.interpolate(this._current,t);return this._current=n(0),function(t){return A[e](n(t))}}var T=r-n.left-n.right,O=i-n.top-n.bottom,N=Math.min(T,O)/2,P=[],F=[];if(u=d3.select(this),0===C.length)for(var j=N-N/5,I=M*N,L=0;L<e[0].length;L++)P.push(j),F.push(I);else P=C.map(function(t){return(t.outer-t.outer/5)*N}),F=C.map(function(t){return(t.inner-t.inner/5)*N}),M=d3.min(C.map(function(t){return t.inner-t.inner/5}));t.utils.initSVG(u);var q=u.selectAll(".nv-wrap.nv-pie").data(e),H=q.enter().append("g").attr("class","nvd3 nv-wrap nv-pie nv-chart-"+s),V=H.append("g"),R=q.select("g"),W=V.append("g").attr("class","nv-pie");V.append("g").attr("class","nv-pieLabels"),q.attr("transform","translate("+n.left+","+n.top+")"),R.select(".nv-pie").attr("transform","translate("+T/2+","+O/2+")"),R.select(".nv-pieLabels").attr("transform","translate("+T/2+","+O/2+")"),u.on("click",function(t,e){S.chartClick({data:t,index:e,pos:d3.event,id:s})}),A=[],E=[];for(var L=0;L<e[0].length;L++){var z=d3.svg.arc().outerRadius(P[L]),U=d3.svg.arc().outerRadius(P[L]+5);x!==!1&&(z.startAngle(x),U.startAngle(x)),w!==!1&&(z.endAngle(w),U.endAngle(w)),g&&(z.innerRadius(F[L]),U.innerRadius(F[L])),z.cornerRadius&&k&&(z.cornerRadius(k),U.cornerRadius(k)),A.push(z),E.push(U)}var Y=d3.layout.pie().sort(null).value(function(t){return t.disabled?0:o(t)});Y.padAngle&&$&&Y.padAngle($),g&&m&&(W.append("text").attr("class","nv-pie-title"),q.select(".nv-pie-title").style("text-anchor","middle").text(function(t){return m}).style("font-size",Math.min(T,O)*M*2/(m.length+2)+"px").attr("dy","0.35em").attr("transform",function(t,e){return"translate(0, "+y+")"}));var B=q.select(".nv-pie").selectAll(".nv-slice").data(Y),G=q.select(".nv-pieLabels").selectAll(".nv-label").data(Y);B.exit().remove(),G.exit().remove();var X=B.enter().append("g");X.attr("class","nv-slice"),X.on("mouseover",function(t,e){d3.select(this).classed("hover",!0),v&&d3.select(this).select("path").transition().duration(70).attr("d",E[e]),S.elementMouseover({data:t.data,index:e,color:d3.select(this).style("fill")})}),X.on("mouseout",function(t,e){d3.select(this).classed("hover",!1),v&&d3.select(this).select("path").transition().duration(50).attr("d",A[e]),S.elementMouseout({data:t.data,index:e})}),X.on("mousemove",function(t,e){S.elementMousemove({data:t.data,index:e})}),X.on("click",function(t,e){S.elementClick({data:t.data,index:e,color:d3.select(this).style("fill")})}),X.on("dblclick",function(t,e){S.elementDblClick({data:t.data,index:e,color:d3.select(this).style("fill")})}),B.attr("fill",function(t,e){return l(t.data,e)}),B.attr("stroke",function(t,e){return l(t.data,e)});X.append("path").each(functi
|
||
|
C.select(".nv-hoverValue .nv-yValue").text(f(i.y()(g[u[0]],u[0]))))}}function v(){function t(t,e){for(var n=Math.abs(i.x()(t[0],0)-e),r=0,a=0;a<t.length;a++)Math.abs(i.x()(t[a],a)-e)<n&&(n=Math.abs(i.x()(t[a],a)-e),r=a);return r}if(!l){var e=d3.mouse(this)[0]-a.left;u=[t(g,Math.round(n.invert(e)))],m()}}var y=d3.select(this);t.utils.initSVG(y);var b=t.utils.availableWidth(o,y,a),x=t.utils.availableHeight(s,y,a);if(e.update=function(){y.call(e)},e.container=this,!g||!g.length)return t.utils.noData(e,y),e;y.selectAll(".nv-noData").remove();var $=i.y()(g[g.length-1],g.length-1);n=i.xScale(),r=i.yScale();var w=y.selectAll("g.nv-wrap.nv-sparklineplus").data([g]),k=w.enter().append("g").attr("class","nvd3 nv-wrap nv-sparklineplus"),M=k.append("g"),C=w.select("g");M.append("g").attr("class","nv-sparklineWrap"),M.append("g").attr("class","nv-valueWrap"),M.append("g").attr("class","nv-hoverArea"),w.attr("transform","translate("+a.left+","+a.top+")");var S=C.select(".nv-sparklineWrap");if(i.width(b).height(x),S.call(i),d){var A=C.select(".nv-valueWrap"),E=A.selectAll(".nv-currentValue").data([$]);E.enter().append("text").attr("class","nv-currentValue").attr("dx",h?-8:8).attr("dy",".9em").style("text-anchor",h?"end":"start"),E.attr("x",b+(h?a.right:0)).attr("y",p?function(t){return r(t)}:0).style("fill",i.color()(g[g.length-1],g.length-1)).text(f($))}M.select(".nv-hoverArea").append("rect").on("mousemove",v).on("click",function(){l=!l}).on("mouseout",function(){u=[],m()}),C.select(".nv-hoverArea rect").attr("transform",function(t){return"translate("+-a.left+","+-a.top+")"}).attr("width",b+a.left+a.right).attr("height",x+a.top)}),e}var n,r,i=t.models.sparkline(),a={top:15,right:100,bottom:10,left:50},o=null,s=null,u=[],l=!1,c=d3.format(",r"),f=d3.format(",.2f"),d=!0,p=!0,h=!1,g=null;return e.sparkline=i,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},xTickFormat:{get:function(){return c},set:function(t){c=t}},yTickFormat:{get:function(){return f},set:function(t){f=t}},showLastValue:{get:function(){return d},set:function(t){d=t}},alignValue:{get:function(){return p},set:function(t){p=t}},rightAlignValue:{get:function(){return h},set:function(t){h=t}},noData:{get:function(){return g},set:function(t){g=t}},margin:{get:function(){return a},set:function(t){a.top=void 0!==t.top?t.top:a.top,a.right=void 0!==t.right?t.right:a.right,a.bottom=void 0!==t.bottom?t.bottom:a.bottom,a.left=void 0!==t.left?t.left:a.left}}}),t.utils.inheritOptions(e,i),t.utils.initOptions(e),e},t.models.stackedArea=function(){"use strict";function e(d){return x.reset(),x.models(v),d.each(function(d){var y=a-i.left-i.right,$=o-i.top-i.bottom;l=d3.select(this),t.utils.initSVG(l),n=v.xScale(),r=v.yScale();var w=d;d.forEach(function(t,e){t.seriesIndex=e,t.values=t.values.map(function(t,n){return t.index=n,t.seriesIndex=e,t})});var k=d.filter(function(t){return!t.disabled});d=d3.layout.stack().order(h).offset(p).values(function(t){return t.values}).x(c).y(f).out(function(t,e,n){t.display={y:n,y0:e}})(k);var M=l.selectAll("g.nv-wrap.nv-stackedarea").data([d]),C=M.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedarea"),S=C.append("defs"),A=C.append("g"),E=M.select("g");A.append("g").attr("class","nv-areaWrap"),A.append("g").attr("class","nv-scatterWrap"),M.attr("transform","translate("+i.left+","+i.top+")"),0==v.forceY().length&&v.forceY().push(0),v.width(y).height($).x(c).y(function(t){return t.display.y+t.display.y0}).forceY([0]).color(d.map(function(t,e){return t.color||s(t,t.seriesIndex)}));var D=E.select(".nv-scatterWrap").datum(d);D.call(v),S.append("clipPath").attr("id","nv-edge-clip-"+u).append("rect"),M.select("#nv-edge-clip-"+u+" rect").attr("width",y).attr("height",$),E.attr("clip-path",m?"url(#nv-edge-clip-"+u+")":"");var _=d3.svg.area().x(function(t,e){return n(c(t,e))}).y0(function(t){return r(t.display.y0)}).y1(function(t){return r(t.display.y+t.display.y0)}).interpolate(g),T=d3.svg.area().x(function(t,e){return n(c(t,e))})
|
||
|
* AngularJS-nvD3, v1.0.5; MIT License; 03/12/2015 08:27
|
||
|
* http://krispo.github.io/angular-nvd3
|
||
|
**************************************************************************/
|
||
|
function(){"use strict";angular.module("nvd3",[]).directive("nvd3",["nvd3Utils",function(t){return{restrict:"AE",scope:{data:"=",options:"=",api:"=?",events:"=?",config:"=?",onReady:"&?"},link:function(e,n,r){function i(t,n,r){t&&n&&angular.forEach(t,function(o,s){"_"===s[0]||("dispatch"===s?((void 0===n[s]||null===n[s])&&e._config.extended&&(n[s]={}),a(o,n[s])):"tooltip"===s?((void 0===n[s]||null===n[s])&&e._config.extended&&(n[s]={}),i(t[s],n[s],r)):"contentGenerator"===s?n[s]&&t[s](n[s]):-1===["axis","clearHighlights","defined","highlightPoint","nvPointerEventsClass","options","rangeBand","rangeBands","scatter","open","close"].indexOf(s)&&(void 0===n[s]||null===n[s]?e._config.extended&&(n[s]=o()):t[s](n[s])))})}function a(t,n){t&&n&&angular.forEach(t,function(r,i){void 0===n[i]||null===n[i]?e._config.extended&&(n[i]=r.on):t.on(i+"._",n[i])})}function o(r){var i=t.deepExtend(u(r),e.options[r]||{});e._config.extended&&(e.options[r]=i);var a=angular.element("<div></div>").html(i.html||"").addClass(r).addClass(i.className).removeAttr("style").css(i.css);i.html||a.text(i.text),i.enable&&("title"===r?n.prepend(a):"subtitle"===r?angular.element(n[0].querySelector(".title")).after(a):"caption"===r&&n.append(a))}function s(){var r=t.deepExtend(l(),e.options.styles||{});e._config.extended&&(e.options.styles=r),angular.forEach(r.classes,function(t,e){t?n.addClass(e):n.removeClass(e)}),n.removeAttr("style").css(r.css)}function u(t){switch(t){case"title":return{enable:!1,text:"Write Your Title",className:"h4",css:{width:e.options.chart.width+"px",textAlign:"center"}};case"subtitle":return{enable:!1,text:"Write Your Subtitle",css:{width:e.options.chart.width+"px",textAlign:"center"}};case"caption":return{enable:!1,text:"Figure 1. Write Your Caption text.",css:{width:e.options.chart.width+"px",textAlign:"center"}}}}function l(){return{classes:{"with-3d-shadow":!0,"with-transitions":!0,gallery:!1},css:{}}}function c(t,n){t!==n&&(e._config.disabled||(e._config.refreshDataOnly?e.api.update():e.api.refresh()))}var f={extended:!1,visible:!0,disabled:!1,refreshDataOnly:!0,deepWatchOptions:!0,deepWatchData:!0,deepWatchDataDepth:2,debounce:10};e.isReady=!1,e._config=angular.extend(f,e.config),e.api={refresh:function(){e.api.updateWithOptions(e.options),e.isReady=!0},refreshWithTimeout:function(t){setTimeout(function(){e.api.refresh()},t)},update:function(){e.chart&&e.svg?e.svg.datum(e.data).call(e.chart):e.api.refresh()},updateWithTimeout:function(t){setTimeout(function(){e.api.update()},t)},updateWithOptions:function(n){e.api.clearElement(),angular.isDefined(n)!==!1&&e._config.visible&&(e.chart=nv.models[n.chart.type](),e.chart.id=Math.random().toString(36).substr(2,15),angular.forEach(e.chart,function(t,r){"_"===r[0]||["clearHighlights","highlightPoint","id","options","resizeHandler","state","open","close","tooltipContent"].indexOf(r)>=0||("dispatch"===r?((void 0===n.chart[r]||null===n.chart[r])&&e._config.extended&&(n.chart[r]={}),a(e.chart[r],n.chart[r])):["bars","bars1","bars2","boxplot","bullet","controls","discretebar","distX","distY","interactiveLayer","legend","lines","lines1","lines2","multibar","pie","scatter","sparkline","stack1","stack2","sunburst","tooltip","x2Axis","xAxis","y1Axis","y2Axis","y3Axis","y4Axis","yAxis","yAxis1","yAxis2"].indexOf(r)>=0||"stacked"===r&&"stackedAreaChart"===n.chart.type?((void 0===n.chart[r]||null===n.chart[r])&&e._config.extended&&(n.chart[r]={}),i(e.chart[r],n.chart[r],n.chart.type)):("xTickFormat"!==r&&"yTickFormat"!==r||"lineWithFocusChart"!==n.chart.type)&&("tooltips"===r&&"boxPlotChart"===n.chart.type||("tooltipXContent"!==r&&"tooltipYContent"!==r||"scatterChart"!==n.chart.type)&&(void 0===n.chart[r]||null===n.chart[r]?e._config.extended&&("barColor"===r?n.chart[r]=t()():n.chart[r]=t()):e.chart[r](n.chart[r]))))}),"sunburstChart"===n.chart.type?e.api.updateWithData(angular.copy(e.data)):e.api.updateWithData(e.data),(n.title||e._config.extended)&&o("title"),(n.subtitle||e._config.extended)&&o("subtitle"),(n.caption||e._config.extended)&&o("caption"),(n.styles||e._config.extended)&&s(),nv.addG
|
||
|
//# sourceMappingURL=../maps/scripts/vendor-c7571dee7e.js.map
|