PageSourceSearch

https://byg33.dk/Dist/scripts-min-9231c83d.js

js byg33.dk collected 2026-10-05 23:33:08 UTC 1,556,960 bytes, 1 lines download raw bytes

1function injectJs(t){var e,n=doc.createElement("script");n.src=t.s,n.onreadystatechange=n.onload=function(){!e&&isFileReady(n.readyState)&&(e=1,execWhenReady(),n.onload=n.onreadystatechange=null)},sTimeout(function(){e||(e=1,execWhenReady())},yepnope.errorTimeout),t.e?n.onload():firstScript.parentNode.insertBefore(n,firstScript)}var querystringCollection__,buildQuerystringCollection__,undefined_,folia;function ClusterIcon(t,e){t.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.cluster_=t,this.className_=t.getMarkerClusterer().getClusterClass(),this.styles_=e,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(t.getMap())}function Cluster(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinimumClusterSize(),this.averageCenter_=t.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,t.getStyles())}function MarkerClusterer(t,e,n){this.extend(MarkerClusterer,google.maps.OverlayView),e=e||[],n=n||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=n.gridSize||60,this.minClusterSize_=n.minimumClusterSize||2,this.maxZoom_=n.maxZoom||null,this.styles_=n.styles||[],this.title_=n.title||"",this.zoomOnClick_=!0,void 0!==n.zoomOnClick&&(this.zoomOnClick_=n.zoomOnClick),this.averageCenter_=!1,void 0!==n.averageCenter&&(this.averageCenter_=n.averageCenter),this.ignoreHidden_=!1,void 0!==n.ignoreHidden&&(this.ignoreHidden_=n.ignoreHidden),this.enableRetinaIcons_=!1,void 0!==n.enableRetinaIcons&&(this.enableRetinaIcons_=n.enableRetinaIcons),this.imagePath_=n.imagePath||MarkerClusterer.IMAGE_PATH,this.imageExtension_=n.imageExtension||MarkerClusterer.IMAGE_EXTENSION,this.imageSizes_=n.imageSizes||MarkerClusterer.IMAGE_SIZES,this.calculator_=n.calculator||MarkerClusterer.CALCULATOR,this.batchSize_=n.batchSize||MarkerClusterer.BATCH_SIZE,this.batchSizeIE_=n.batchSizeIE||MarkerClusterer.BATCH_SIZE_IE,this.clusterClass_=n.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(e,!0),this.setMap(t)}!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)}("undefined"!=typeof window?window:this,function(f,I){function L(t,e){return e.toUpperCase()}var h=[],c=h.slice,H=h.concat,F=h.push,z=h.indexOf,n={},V=n.toString,m=n.hasOwnProperty,g={},t="1.11.3",w=function(t,e){return new w.fn.init(t,e)},j=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,W=/^-ms-/,B=/-([\da-z])/gi;function q(t){var e="length"in t&&t.length,n=w.type(t);return"function"!==n&&!w.isWindow(t)&&(!(1!==t.nodeType||!e)||"array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}w.fn=w.prototype={jquery:t,constructor:w,selector:"",length:0,toArray:function(){return c.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:c.call(this)},pushStack:function(t){t=w.merge(this.constructor(),t);return t.prevObject=this,t.context=this.context,t},each:function(t,e){return w.each(this,t,e)},map:function(n){return this.pushStack(w.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:F,sort:h.sort,splice:h.splice},w.extend=w.fn.extend=function(){var t,e,n,i,r,o=arguments[0]||{},s=1,a=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"==typeof o||w.isFunction(o)||(o={}),s===a&&(o=this,s--);s<a;s++)if(null!=(i=arguments[s]))for(n in i)r=o[n],o!==(e=i[n])&&(l&&e&&(w.isPlainObject(e)||(t=w.isArray(e)))?(r=t?(t=!1,r&&w.isArray(r)?r:[]):r&&w.isPlainObject(r)?r:{},o[n]=w.extend(l,r,e)):void 0!==e&&(o[n]=e));return o},w.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===w.type(t)},isArray:Array.isArray||function(t){return"array"===w.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!w.isArray(t)&&0<=t-parseFloat(t)+1},isEmptyObject:function(t){for(var e in t)return!1;return!0}
1,isPlainObject:function(t){if(!t||"object"!==w.type(t)||t.nodeType||w.isWindow(t))return!1;try{if(t.constructor&&!m.call(t,"constructor")&&!m.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(g.ownLast)for(var e in t)return m.call(t,e);for(e in t);return void 0===e||m.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?n[V.call(t)]||"object":typeof t},globalEval:function(t){t&&w.trim(t)&&(f.execScript||function(t){f.eval.call(f,t)})(t)},camelCase:function(t){return t.replace(W,"ms-").replace(B,L)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var i=0,r=t.length,o=q(t);if(n){if(o)for(;i<r&&!1!==e.apply(t[i],n);i++);else for(i in t)if(!1===e.apply(t[i],n))break}else if(o)for(;i<r&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(j,"")},makeArray:function(t,e){e=e||[];return null!=t&&(q(Object(t))?w.merge(e,"string"==typeof t?[t]:t):F.call(e,t)),e},inArray:function(t,e,n){var i;if(e){if(z)return z.call(e,t,n);for(i=e.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;)t[r++]=e[i++];if(n!=n)for(;void 0!==e[i];)t[r++]=e[i++];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!=s&&i.push(t[r]);return i},map:function(t,e,n){var i,r=0,o=t.length,s=[];if(q(t))for(;r<o;r++)null!=(i=e(t[r],r,n))&&s.push(i);else for(r in t)null!=(i=e(t[r],r,n))&&s.push(i);return H.apply([],s)},guid:1,proxy:function(t,e){var n,i;if("string"==typeof e&&(i=t[e],e=t,t=i),w.isFunction(t))return n=c.call(arguments,2),(i=function(){return t.apply(e||this,n.concat(c.call(arguments)))}).guid=t.guid=t.guid||w.guid++,i},now:function(){return+new Date},support:g}),w.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){n["[object "+e+"]"]=e.toLowerCase()});var t=function(n){function h(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function I(){f()}var t,d,_,o,L,p,H,F,w,u,c,f,x,e,m,g,i,r,v,b="sizzle"+ +new Date,y=n.document,C=0,z=0,V=ct(),j=ct(),W=ct(),B=function(t,e){return t===e&&(c=!0),0},q={}.hasOwnProperty,s=[],U=s.pop,Y=s.push,k=s.push,G=s.slice,$=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",l="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",X=l.replace("w","w#"),Z="\\["+a+"*("+l+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+X+"))|)"+a+"*\\]",Q=":("+l+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Z+")*)|.*)\\)|)",J=new RegExp(a+"+","g"),S=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),tt=new RegExp("^"+a+"*,"+a+"*"),et=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),nt=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),it=new RegExp(Q),rt=new RegExp("^"+X+"$"),E={ID:new RegExp("^#("+l+")"),CLASS:new RegExp("^\\.("+l+")"),TAG:new RegExp("^("+l.replace("w","w*")+")"),ATTR:new RegExp("^"+Z),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},ot=/^(?:input|select|textarea|button)$/i,st=/^h\d$/i,T=/^[^{]+\{\s*\[native \w/,at=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,lt=/[+~]/,ut=/'|\\/g,D=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig");try{k.apply(s=G.call(y.childNodes),y.childNodes),s[y.childNodes.length].nodeType}catch(t){k={apply:s.length?function(t,e){Y.apply(t,G.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function M(t,e,n,i){var r,o,s,a,l,u,c;if((e?e.ownerDocument||e:y)!==x&&f(e),n=n||[],r=(e=e||x).nodeType,"string"!=typeof t||!t||1!==r&&9!==r&&11!==r)return n;if(!i&&m){if(11!==r&&(u=at.exec(t)))if(c=u[1]){if(9===r){if(!(a=e.getElementById(c))||!a.parentNode)return n;if(a.id===c)return n.push(a),n}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(c))&&v(e,a)&&a.id===c)return n.push(a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((c=u[3])&&d.getElementsByClassName)return k.apply(n,e.getElementsByClassName(c)),n}
1if(d.qsa&&(!g||!g.test(t))){if(l=a=b,u=e,c=1!==r&&t,1===r&&"object"!==e.nodeName.toLowerCase()){for(s=p(t),(a=e.getAttribute("id"))?l=a.replace(ut,"\\$&"):e.setAttribute("id",l),l="[id='"+l+"'] ",o=s.length;o--;)s[o]=l+P(s[o]);u=lt.test(t)&&pt(e.parentNode)||e,c=s.join(",")}if(c)try{return k.apply(n,u.querySelectorAll(c)),n}catch(t){}finally{a||e.removeAttribute("id")}}}return F(t.replace(S,"$1"),e,n,i)}function ct(){var n=[];function i(t,e){return n.push(t+" ")>_.cacheLength&&delete i[n.shift()],i[t+" "]=e}return i}function A(t){return t[b]=!0,t}function O(t){var e=x.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function ht(t,e){for(var n=t.split("|"),i=t.length;i--;)_.attrHandle[n[i]]=e}function dt(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function N(s){return A(function(o){return o=+o,A(function(t,e){for(var n,i=s([],t.length,o),r=i.length;r--;)t[n=i[r]]&&(t[n]=!(e[n]=t[n]))})})}function pt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in d=M.support={},L=M.isXML=function(t){t=t&&(t.ownerDocument||t).documentElement;return!!t&&"HTML"!==t.nodeName},f=M.setDocument=function(t){var l=t?t.ownerDocument||t:y;return l!==x&&9===l.nodeType&&l.documentElement?(e=(x=l).documentElement,(t=l.defaultView)&&t!==t.top&&(t.addEventListener?t.addEventListener("unload",I,!1):t.attachEvent&&t.attachEvent("onunload",I)),m=!L(l),d.attributes=O(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=O(function(t){return t.appendChild(l.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=T.test(l.getElementsByClassName),d.getById=O(function(t){return e.appendChild(t).id=b,!l.getElementsByName||!l.getElementsByName(b).length}),d.getById?(_.find.ID=function(t,e){if(void 0!==e.getElementById&&m)return(e=e.getElementById(t))&&e.parentNode?[e]:[]},_.filter.ID=function(t){var e=t.replace(D,h);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(D,h);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}}),_.find.TAG=d.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):d.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},_.find.CLASS=d.getElementsByClassName&&function(t,e){if(m)return e.getElementsByClassName(t)},i=[],g=[],(d.qsa=T.test(l.querySelectorAll))&&(O(function(t){e.appendChild(t).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+a+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+a+"*(?:value|"+K+")"),t.querySelectorAll("[id~="+b+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]")}),O(function(t){var e=l.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+a+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(d.matchesSelector=T.test(r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.msMatchesSelector))&&O(function(t){d.disconnectedMatch=r.call(t,"div"),r.call(t,"[s!='']:x"),i.push("!=",Q)}),g=g.length&&new RegExp(g.join("|")),i=i.length&&new RegExp(i.join("|")),t=T.test(e.compareDocumentPosition),v=t||T.test(e.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},B=t?function(t,e){var n;return t===e?(c=!0,0):(n=!t.compareDocumentPosition-!e.compareDocumentPosition)||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!d.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument===y&&v(y,t)?-1:e===l||e.ownerDocument===y&&v(y,e)?1:u?$(u,t)-$(u,e):0:4&n?-1:1)}
vendor: 4,153 bytes, line 1
1:function(t,e){if(t===e)return c=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,s=[t],a=[e];if(!r||!o)return t===l?-1:e===l?1:r?-1:o?1:u?$(u,t)-$(u,e):0;if(r===o)return dt(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?dt(s[i],a[i]):s[i]===y?-1:a[i]===y?1:0},l):x},M.matches=function(t,e){return M(t,null,null,e)},M.matchesSelector=function(t,e){if((t.ownerDocument||t)!==x&&f(t),e=e.replace(nt,"='$1']"),d.matchesSelector&&m&&(!i||!i.test(e))&&(!g||!g.test(e)))try{var n=r.call(t,e);if(n||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0<M(e,x,null,[t]).length},M.contains=function(t,e){return(t.ownerDocument||t)!==x&&f(t),v(t,e)},M.attr=function(t,e){(t.ownerDocument||t)!==x&&f(t);var n=_.attrHandle[e.toLowerCase()],n=n&&q.call(_.attrHandle,e.toLowerCase())?n(t,e,!m):void 0;return void 0!==n?n:d.attributes||!m?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},M.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},M.uniqueSort=function(t){var e,n=[],i=0,r=0;if(c=!d.detectDuplicates,u=!d.sortStable&&t.slice(0),t.sort(B),c){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return u=null,t},o=M.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(_=M.selectors={cacheLength:50,createPseudo:A,match:E,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(D,h),t[3]=(t[3]||t[4]||t[5]||"").replace(D,h),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||M.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&M.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return E.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&it.test(n)&&(e=(e=p(n,!0))&&n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(D,h).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=V[t+" "];return e||(e=new RegExp("(^|"+a+")"+t+"("+a+"|$)"))&&V(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=M.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1<t.indexOf(i):"$="===n?i&&t.slice(-i.length)===i:"~="===n?-1<(" "+t.replace(J," ")+" ").indexOf(i):"|="===n&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,t,e,f,m){var g="nth"!==p.slice(0,3),v="last"!==p.slice(-4),y="of-type"===t;return 1===f&&0===m?function(t){return!!t.parentNode}:function(t,e,n){var i,r,o,s,a,l,u=g!=v?"nextSibling":"previousSibling",c=t.parentNode,h=y&&t.nodeName.toLowerCase(),d=!n&&!y;if(c){if(g){for(;u;){for(o=t;o=o[u];)if(y?o.nodeName.toLowerCase()===h:1===o.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[v?c.firstChild:c.lastChild],v&&d){for(a=(i=(r=c[b]||(c[b]={}))[p]||[])[0]===C&&i[1],s=i[0]===C&&i[2],o=a&&c.childNodes[a];o=++a&&o&&o[u]||(s=a=0,l.pop());)if(1===o.nodeType&&++s&&o===t){r[p]=[C,a,s];break}}else if(d&&(i=(t[b]||(t[b]={}))[p])&&i[0]===C)s=i[1];else for(;(o=++a&&o&&o[u]||(s=a=0,l.pop()))&&((y?o.nodeName.toLowerCase()!==h:1!==o.nodeType)||!++s||(d&&((o[b]||(o[b]={}))[p]=[C,s]),o!==t)););return(s-=m)===f||s%f==0&&0<=s/f}}},PSEUDO:function(t,o){var e,s=_.pseudos[t]||_.setFilters[t.toLowerCase()]||M.error("unsupported pseudo: "+t);return s[b]?s(o):1<s.length?(e=[t,t,"",o],_.setFilters.hasOwnProperty(t.toLowerCase())?A(function(t,e){for(var n,i=s(t,o),r=i.length;r--;)t[n=$(t,i[r])]=!(e[n]=i[r])}):function(t){return s(t,0,e)}):s}}
vendor: 5,429 bytes, line 1
1,pseudos:{not:A(function(t){var i=[],r=[],a=H(t.replace(S,"$1"));return a[b]?A(function(t,e,n,i){for(var r,o=a(t,null,i,[]),s=t.length;s--;)(r=o[s])&&(t[s]=!(e[s]=r))}):function(t,e,n){return i[0]=t,a(i,null,n,r),i[0]=null,!r.pop()}}),has:A(function(e){return function(t){return 0<M(e,t).length}}),contains:A(function(e){return e=e.replace(D,h),function(t){return-1<(t.textContent||t.innerText||o(t)).indexOf(e)}}),lang:A(function(n){return rt.test(n||"")||M.error("unsupported lang: "+n),n=n.replace(D,h).toLowerCase(),function(t){var e;do{if(e=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===e},focus:function(t){return t===x.activeElement&&(!x.hasFocus||x.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return st.test(t.nodeName)},input:function(t){return ot.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:N(function(){return[0]}),last:N(function(t,e){return[e-1]}),eq:N(function(t,e,n){return[n<0?n+e:n]}),even:N(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:N(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:N(function(t,e,n){for(var i=n<0?n+e:n;0<=--i;)t.push(i);return t}),gt:N(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})_.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function ft(){}function P(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function mt(s,t,e){var a=t.dir,l=e&&"parentNode"===a,u=z++;return t.first?function(t,e,n){for(;t=t[a];)if(1===t.nodeType||l)return s(t,e,n)}:function(t,e,n){var i,r,o=[C,u];if(n){for(;t=t[a];)if((1===t.nodeType||l)&&s(t,e,n))return!0}else for(;t=t[a];)if(1===t.nodeType||l){if((i=(r=t[b]||(t[b]={}))[a])&&i[0]===C&&i[1]===u)return o[2]=i[2];if((r[a]=o)[2]=s(t,e,n))return!0}}}function gt(r){return 1<r.length?function(t,e,n){for(var i=r.length;i--;)if(!r[i](t,e,n))return!1;return!0}:r[0]}function R(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,u=null!=e;a<l;a++)!(o=t[a])||n&&!n(o,i,r)||(s.push(o),u&&e.push(a));return s}function vt(p,f,m,g,v,t){return g&&!g[b]&&(g=vt(g)),v&&!v[b]&&(v=vt(v,t)),A(function(t,e,n,i){var r,o,s,a=[],l=[],u=e.length,c=t||function(t,e,n){for(var i=0,r=e.length;i<r;i++)M(t,e[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),h=!p||!t&&f?c:R(c,a,p,n,i),d=m?v||(t?p:u||g)?[]:e:h;if(m&&m(h,d,n,i),g)for(r=R(d,l),g(r,[],n,i),o=r.length;o--;)(s=r[o])&&(d[l[o]]=!(h[l[o]]=s));if(t){if(v||p){if(v){for(r=[],o=d.length;o--;)(s=d[o])&&r.push(h[o]=s);v(null,d=[],r,i)}for(o=d.length;o--;)(s=d[o])&&-1<(r=v?$(t,s):a[o])&&(t[r]=!(e[r]=s))}}else d=R(d===e?d.splice(u,d.length):d),v?v(null,e,d,i):k.apply(e,d)})}function yt(g,v){function t(t,e,n,i,r){var o,s,a,l=0,u="0",c=t&&[],h=[],d=w,p=t||b&&_.find.TAG("*",r),f=C+=null==d?1:Math.random()||.1,m=p.length;for(r&&(w=e!==x&&e);u!==m&&null!=(o=p[u]);u++){if(b&&o){for(s=0;a=g[s++];)if(a(o,e,n)){i.push(o);break}r&&(C=f)}y&&((o=!a&&o)&&l--,t)&&c.push(o)}if(l+=u,y&&u!==l){for(s=0;a=v[s++];)a(c,h,e,n);if(t){if(0<l)for(;u--;)c[u]||h[u]||(h[u]=U.call(i));h=R(h)}k.apply(i,h),r&&!t&&0<h.length&&1<l+v.length&&M.uniqueSort(i)}return r&&(C=f,w=d),c}var y=0<v.length,b=0<g.length;return y?A(t):t}return ft.prototype=_.filters=_.pseudos,_.setFilters=new ft,p=M.tokenize=function(t,e){var n,i,r,o,s,a,l,u=j[t+" "];if(u)return e?0:u.slice(0);for(s=t,a=[],l=_.preFilter;s;){for(o in n&&!(i=tt.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(r=[])),n=!1,(i=et.exec(s))&&(n=i.shift(),r.push({value:n,type:i[0].replace(S," ")}),s=s.slice(n.length)),_.filter)!(i=E[o].exec(s))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?M.error(t):j(t,a).slice(0)},H=M.compile=function(t,e){var n,i=[],r=[],o=W[t+" "];if(!o){for(n=(e=e||p(t)).length;n--;)((o=function t(e){for(var i,n,r,o=e.length,s=_.relative[e[0].type],a=s||_.relative[" "],l=s?1:0,u=mt(function(t){return t===i},a,!0),c=mt(function(t){return-1<$(i,t)},a,!0),h=[function(t,e,n){return t=!s&&(n||e!==w)||((i=e).nodeType?u:c)(t,e,n),i=null,t}];l<o;l++)if(n=_.relative[e[l].type])h=[mt(gt(h),n)];else{if((n=_.filter[e[l].type].apply(null,e[l].matches))[b]){for(r=++l;r<o&&!_.relative[e[r].type];r++);return vt(1<l&&gt(h),1<l&&P(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(S,"$1"),n,l<r&&t(e.slice(l,r)),r<o&&t(e=e.slice(r)),r<o&&P(e))}h.push(n)}return gt(h)}
1(e[n]))[b]?i:r).push(o);(o=W(t,yt(r,i))).selector=t}return o},F=M.select=function(t,e,n,i){var r,o,s,a,l,u="function"==typeof t&&t,c=!i&&p(t=u.selector||t);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(s=o[0]).type&&d.getById&&9===e.nodeType&&m&&_.relative[o[1].type]){if(!(e=(_.find.ID(s.matches[0].replace(D,h),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=E.needsContext.test(t)?0:o.length;r--&&(s=o[r],!_.relative[a=s.type]);)if((l=_.find[a])&&(i=l(s.matches[0].replace(D,h),lt.test(o[0].type)&&pt(e.parentNode)||e))){if(o.splice(r,1),t=i.length&&P(o))break;return k.apply(n,i),n}}return(u||H(t,c))(i,e,!m,n,lt.test(t)&&pt(e.parentNode)||e),n},d.sortStable=b.split("").sort(B).join("")===b,d.detectDuplicates=!!c,f(),d.sortDetached=O(function(t){return 1&t.compareDocumentPosition(x.createElement("div"))}),O(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ht("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),d.attributes&&O(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ht("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),O(function(t){return null==t.getAttribute("disabled")})||ht(K,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),M}(f),U=(w.find=t,w.expr=t.selectors,w.expr[":"]=w.expr.pseudos,w.unique=t.uniqueSort,w.text=t.getText,w.isXMLDoc=t.isXML,w.contains=t.contains,w.expr.match.needsContext),Y=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,G=/^.[^:#\[\.,]*$/;function K(t,n,i){if(w.isFunction(n))return w.grep(t,function(t,e){return!!n.call(t,e,t)!==i});if(n.nodeType)return w.grep(t,function(t){return t===n!==i});if("string"==typeof n){if(G.test(n))return w.filter(n,t,i);n=w.filter(n,t)}return w.grep(t,function(t){return 0<=w.inArray(t,n)!==i})}w.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?w.find.matchesSelector(i,t)?[i]:[]:w.find.matches(t,w.grep(e,function(t){return 1===t.nodeType}))},w.fn.extend({find:function(t){var e,n=[],i=this,r=i.length;if("string"!=typeof t)return this.pushStack(w(t).filter(function(){for(e=0;e<r;e++)if(w.contains(i[e],this))return!0}));for(e=0;e<r;e++)w.find(t,i[e],n);return(n=this.pushStack(1<r?w.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(K(this,t||[],!1))},not:function(t){return this.pushStack(K(this,t||[],!0))},is:function(t){return!!K(this,"string"==typeof t&&U.test(t)?w(t):t||[],!1).length}});var r,v=f.document,X=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Z=((w.fn.init=function(t,e){var n,i;if(t){if("string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):w.isFunction(t)?void 0!==r.ready?r.ready(t):t(w):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),w.makeArray(t,this));if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:X.exec(t))||!n[1]&&e)return(!e||e.jquery?e||r:this.constructor(e)).find(t);if(n[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:v,!0)),Y.test(n[1])&&w.isPlainObject(e))for(n in e)w.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n])}else{if((i=v.getElementById(n[2]))&&i.parentNode){if(i.id!==n[2])return r.find(t);this.length=1,this[0]=i}this.context=v,this.selector=t}}return this}).prototype=w.fn,r=w(v),/^(?:parents|prev(?:Until|All))/),Q={children:!0,contents:!0,next:!0,prev:!0};function J(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.extend({dir:function(t,e,n){for(var i=[],r=t[e];r&&9!==r.nodeType&&(void 0===n||1!==r.nodeType||!w(r).is(n));)1===r.nodeType&&i.push(r),r=r[e];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),w.fn.extend({has:function(t){var e,n=w(t,this),i=n.length;return this.filter(function(){for(e=0;e<i;e++)if(w.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,o=[],s=U.test(t)||"string"!=typeof t?w(t,e||this.context):0;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&w.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?w.unique(o):o)},index:function(t){return t?"string"==typeof t?w.inArray(this[0],w(t)):w.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.unique(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return w.dir(t,"parentNode")},parentsUntil:function(t,e,n){return w.dir(t,"parentNode",n)},next:function(t){return J(t,"nextSibling")},prev:function(t){return J(t,"previousSibling")},nextAll:function(t){return w.dir(t,"nextSibling")},prevAll:function(t){return w.dir(t,"previousSibling")},nextUntil:function(t,e,n){return w.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return w.dir(t,"previousSibling",n)},siblings:function(t){return w.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return w.sibling(t.firstChild)},contents:function(t){return w.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:w.merge([],t.childNodes)}},function(i,r){w.fn[i]=function(t,e){var n=w.map(this,r,t);return(e="Until"!==i.slice(-5)?t:e)&&"string"==typeof e&&(n=w.filter(e,n)),1<this.length&&(Q[i]||(n=w.unique(n)),Z.test(i))&&(n=n.reverse()),this.pushStack(n)}});var e,x=/\S+/g,tt={};function et(){v.addEventListener?(v.removeEventListener("DOMContentLoaded",i,!1),f.removeEventListener("load",i,!1)):(v.detachEvent("onreadystatechange",i
1),f.detachEvent("onload",i))}function i(){!v.addEventListener&&"load"!==event.type&&"complete"!==v.readyState||(et(),w.ready())}w.Callbacks=function(r){var t,n;r="string"==typeof r?tt[r]||(n=tt[t=r]={},w.each(t.match(x)||[],function(t,e){n[e]=!0}),n):w.extend({},r);function i(t){for(e=r.memory&&t,s=!0,l=u||0,u=0,a=c.length,o=!0;c&&l<a;l++)if(!1===c[l].apply(t[0],t[1])&&r.stopOnFalse){e=!1;break}o=!1,c&&(h?h.length&&i(h.shift()):e?c=[]:d.disable())}var o,e,s,a,l,u,c=[],h=!r.once&&[],d={add:function(){var t;return c&&(t=c.length,function i(t){w.each(t,function(t,e){var n=w.type(e);"function"===n?r.unique&&d.has(e)||c.push(e):e&&e.length&&"string"!==n&&i(e)})}(arguments),o?a=c.length:e&&(u=t,i(e))),this},remove:function(){return c&&w.each(arguments,function(t,e){for(var n;-1<(n=w.inArray(e,c,n));)c.splice(n,1),o&&(n<=a&&a--,n<=l)&&l--}),this},has:function(t){return t?-1<w.inArray(t,c):!(!c||!c.length)},empty:function(){return c=[],a=0,this},disable:function(){return c=h=e=void 0,this},disabled:function(){return!c},lock:function(){return h=void 0,e||d.disable(),this},locked:function(){return!h},fireWith:function(t,e){return!c||s&&!h||(e=[t,(e=e||[]).slice?e.slice():e],o?h.push(e):i(e)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},w.extend({Deferred:function(t){var o=[["resolve","done",w.Callbacks("once memory"),"resolved"],["reject","fail",w.Callbacks("once memory"),"rejected"],["notify","progress",w.Callbacks("memory")]],r="pending",s={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var r=arguments;return w.Deferred(function(i){w.each(o,function(t,e){var n=w.isFunction(r[t])&&r[t];a[e[1]](function(){var t=n&&n.apply(this,arguments);t&&w.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[e[0]+"With"](this===s?i.promise():this,n?[t]:arguments)})}),r=null}).promise()},promise:function(t){return null!=t?w.extend(t,s):s}},a={};return s.pipe=s.then,w.each(o,function(t,e){var n=e[2],i=e[3];s[e[1]]=n.add,i&&n.add(function(){r=i},o[1^t][2].disable,o[2][2].lock),a[e[0]]=function(){return a[e[0]+"With"](this===a?s:this,arguments),this},a[e[0]+"With"]=n.fireWith}),s.promise(a),t&&t.call(a,a),a},when:function(t){function e(e,n,i){return function(t){n[e]=this,i[e]=1<arguments.length?c.call(arguments):t,i===r?u.notifyWith(n,i):--l||u.resolveWith(n,i)}}var r,n,i,o=0,s=c.call(arguments),a=s.length,l=1!==a||t&&w.isFunction(t.promise)?a:0,u=1===l?t:w.Deferred();if(1<a)for(r=new Array(a),n=new Array(a),i=new Array(a);o<a;o++)s[o]&&w.isFunction(s[o].promise)?s[o].promise().done(e(o,i,s)).fail(u.reject).progress(e(o,n,r)):--l;return l||u.resolveWith(i,s),u.promise()}}),w.fn.ready=function(t){return w.ready.promise().done(t),this},w.extend({isReady:!1,readyWait:1,holdReady:function(t){t?w.readyWait++:w.ready(!0)},ready:function(t){if(!0===t?!--w.readyWait:!w.isReady){if(!v.body)return setTimeout(w.ready);(w.isReady=!0)!==t&&0<--w.readyWait||(e.resolveWith(v,[w]),w.fn.triggerHandler&&(w(v).triggerHandler("ready"),w(v).off("ready")))}}}),w.ready.promise=function(t){if(!e)if(e=w.Deferred(),"complete"===v.readyState)setTimeout(w.ready);else if(v.addEventListener)v.addEventListener("DOMContentLoaded",i,!1),f.addEventListener("load",i,!1);else{v.attachEvent("onreadystatechange",i),f.attachEvent("onload",i);var n=!1;try{n=null==f.frameElement&&v.documentElement}catch(t){}n&&n.doScroll&&!function e(){if(!w.isReady){try{n.doScroll("left")}catch(t){return setTimeout(e,50)}et(),w.ready()}}()}return e.promise(t)};var nt,y="undefined";for(nt in w(g))break;g.ownLast="0"!==nt,g.inlineBlockNeedsLayout=!1,w(function(){var t,e,n=v.getElementsByTagName("body")[0];n&&n.style&&(t=v.createElement("div"),(e=v.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(e).appendChild(t),typeof t.style.zoom!=y&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",g.inlineBlockNeedsLayout=t=3===t.offsetWidth,t)&&(n.style.zoom=1),n.removeChild(e))});t=v.createElement("div");if(null==g.deleteExpando){g.deleteExpando=!0;try{delete t.test}catch(t){g.deleteExpando=!1}}w.acceptData=function(t){var e=w.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var it=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rt=/([A-Z])/g;function ot(t,e,n){if(void 0===n&&1===t.nodeType){var i="data-"+e.replace(rt,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:it.test(n)?w.parseJSON(n):n)}catch(t){}w.data(t,e,n)}else n=void 0}return n}function st(t){for(var e in t)if(("data"!==e||!w.isEmptyObject(t[e]))&&"toJSON"!==e)return;return 1}function at(t,e,n,i){if(w.acceptData(t)){var r,o=w.expando,s=t.nodeType,a=s?w.cache:t,l=s?t[o]:t[o]&&o;if(l&&a[l]&&(i||a[l].data)||void 0!==n||"string"!=typeof e)return a[l=l||(s?t[o]=h.pop()||w.guid++:o)]||(a[l]=s?{}:{toJSON:w.noop}),"object"!=typeof e&&"function"!=typeof e||(i?a[l]=w.extend(a[l],e):a[l].data=w.extend(a[l].data,e)),t=a[l],i||(t.data||(t.data={}),t=t.data),void 0!==n&&(t[w.camelCase(e)]=n),"string"==typeof e?null==(r=t[e])&&(r=t[w.camelCase(e)]):r=t,r}}function lt(t,e,n){if(w.acceptData(t)){var i,r,o=t.nodeType,s=o?w.cache:t,a=o?t[w.expando]:w.expando;if(s[a]){if(e&&(i=n?s[a]:s[a].data)){r=(e=w.isArray(e)?e.concat(w.map(e,w.camelCase)):e in i||(e=w.camelCase(e))in i?[e]:e.split(" ")).length;for(;r--;)delete i[e[r]];if(n?!st(i):!w.isEmptyObject(i))return}(n||(delete s[a].data,st(s[a])))&&(o?w.cleanData([t],!0):g.deleteExpando||s!=s.window?delete s[a]:s[a]=null)}}}w.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?w.cache[t[w.expando]]:t[w.expando])&&!st(t)}
1,data:function(t,e,n){return at(t,e,n)},removeData:function(t,e){return lt(t,e)},_data:function(t,e,n){return at(t,e,n,!0)},_removeData:function(t,e){return lt(t,e,!0)}}),w.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0!==t)return"object"==typeof t?this.each(function(){w.data(this,t)}):1<arguments.length?this.each(function(){w.data(this,t,e)}):o?ot(o,t,w.data(o,t)):void 0;if(this.length&&(r=w.data(o),1===o.nodeType)&&!w._data(o,"parsedAttrs")){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&ot(o,i=w.camelCase(i.slice(5)),r[i]);w._data(o,"parsedAttrs",!0)}return r},removeData:function(t){return this.each(function(){w.removeData(this,t)})}}),w.extend({queue:function(t,e,n){var i;if(t)return i=w._data(t,e=(e||"fx")+"queue"),n&&(!i||w.isArray(n)?i=w._data(t,e,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=w.queue(t,e),i=n.length,r=n.shift(),o=w._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){w.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return w._data(t,n)||w._data(t,n,{empty:w.Callbacks("once memory").add(function(){w._removeData(t,e+"queue"),w._removeData(t,n)})})}}),w.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?w.queue(this[0],e):void 0===n?this:this.each(function(){var t=w.queue(this,e,n);w._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&w.dequeue(this,e)})},dequeue:function(t){return this.each(function(){w.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--r||o.resolveWith(s,[s])}var i,r=1,o=w.Deferred(),s=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=w._data(s[a],t+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(e)}});function b(t,e){return"none"===w.css(t=e||t,"display")||!w.contains(t.ownerDocument,t)}var t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,a=["Top","Right","Bottom","Left"],l=w.access=function(t,e,n,i,r,o,s){var a=0,l=t.length,u=null==n;if("object"===w.type(n))for(a in r=!0,n)w.access(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,w.isFunction(i)||(s=!0),e=u?s?(e.call(t,i),null):(u=e,function(t,e,n){return u.call(w(t),n)}):e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:u?e.call(t):l?e(t[0],n):o},ut=/^(?:checkbox|radio)$/i,o=v.createElement("input"),s=v.createElement("div"),u=v.createDocumentFragment();if(s.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",g.leadingWhitespace=3===s.firstChild.nodeType,g.tbody=!s.getElementsByTagName("tbody").length,g.htmlSerialize=!!s.getElementsByTagName("link").length,g.html5Clone="<:nav></:nav>"!==v.createElement("nav").cloneNode(!0).outerHTML,o.type="checkbox",o.checked=!0,u.appendChild(o),g.appendChecked=o.checked,s.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!s.cloneNode(!0).lastChild.defaultValue,u.appendChild(s),s.innerHTML="<input type='radio' checked='checked' name='t'/>",g.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,g.noCloneEvent=!0,s.attachEvent&&(s.attachEvent("onclick",function(){g.noCloneEvent=!1}),s.cloneNode(!0).click()),null==g.deleteExpando){g.deleteExpando=!0;try{delete s.test}catch(t){g.deleteExpando=!1}}var d,ct,ht=v.createElement("div");for(d in{submit:!0,change:!0,focusin:!0})(g[d+"Bubbles"]=(ct="on"+d)in f)||(ht.setAttribute(ct,"t"),g[d+"Bubbles"]=!1===ht.attributes[ct].expando);var dt=/^(?:input|select|textarea)$/i,pt=/^key/,ft=/^(?:mouse|pointer|contextmenu)|click/,mt=/^(?:focusinfocus|focusoutblur)$/,gt=/^([^.]*)(?:\.(.+)|)$/;function vt(){return!0}function p(){return!1}function yt(){try{return v.activeElement}catch(t){}}function bt(t){var e=_t.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}w.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,h,d,p,f=w._data(t);if(f)for(n.handler&&(n=(a=n).handler,r=a.selector),n.guid||(n.guid=w.guid++),o=(o=f.events)||(f.events={}),(u=f.handle)||((u=f.handle=function(t){return typeof w==y||t&&w.event.triggered===t.type?void 0:w.event.dispatch.apply(u.elem,arguments)}).elem=t),s=(e=(e||"").match(x)||[""]).length;s--;)h=p=(d=gt.exec(e[s])||[])[1],d=(d[2]||"").split(".").sort(),h&&(l=w.event.special[h]||{},h=(r?l.delegateType:l.bindType)||h,l=w.event.special[h]||{},p=w.extend({type:h,origType:p,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:d.join(".")},a),(c=o[h])||((c=o[h]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,i,d,u))||(t.addEventListener?t.addEventListener(h,u,!1):t.attachEvent&&t.attachEvent("on"+h,u)),l.add&&(l.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),r?c.splice(c.delegateCount++,0,p):c.push(p),w.event.global[h]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,u,c,h,d,p,f,m,g=w.hasData(t)&&w._data(t);
vendor: 4,342 bytes, line 1
1if(g&&(c=g.events)){for(u=(e=(e||"").match(x)||[""]).length;u--;)if(p=m=(a=gt.exec(e[u])||[])[1],f=(a[2]||"").split(".").sort(),p){for(h=w.event.special[p]||{},d=c[p=(i?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=d.length;o--;)s=d[o],!r&&m!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(d.splice(o,1),s.selector&&d.delegateCount--,h.remove&&h.remove.call(t,s));l&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,f,g.handle)||w.removeEvent(t,p,g.handle),delete c[p])}else for(p in c)w.event.remove(t,p+e[u],n,i,!0);w.isEmptyObject(c)&&(delete g.handle,w._removeData(t,"events"))}},trigger:function(t,e,n,i){var r,o,s,a,l,u,c=[n||v],h=m.call(t,"type")?t.type:t,d=m.call(t,"namespace")?t.namespace.split("."):[],p=l=n=n||v;if(3!==n.nodeType&&8!==n.nodeType&&!mt.test(h+w.event.triggered)&&(0<=h.indexOf(".")&&(h=(d=h.split(".")).shift(),d.sort()),o=h.indexOf(":")<0&&"on"+h,(t=t[w.expando]?t:new w.Event(h,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=d.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:w.makeArray(e,[t]),a=w.event.special[h]||{},i||!a.trigger||!1!==a.trigger.apply(n,e))){if(!i&&!a.noBubble&&!w.isWindow(n)){for(s=a.delegateType||h,mt.test(s+h)||(p=p.parentNode);p;p=p.parentNode)c.push(p),l=p;l===(n.ownerDocument||v)&&c.push(l.defaultView||l.parentWindow||f)}for(u=0;(p=c[u++])&&!t.isPropagationStopped();)t.type=1<u?s:a.bindType||h,(r=(w._data(p,"events")||{})[t.type]&&w._data(p,"handle"))&&r.apply(p,e),(r=o&&p[o])&&r.apply&&w.acceptData(p)&&(t.result=r.apply(p,e),!1===t.result)&&t.preventDefault();if(t.type=h,!i&&!t.isDefaultPrevented()&&(!a._default||!1===a._default.apply(c.pop(),e))&&w.acceptData(n)&&o&&n[h]&&!w.isWindow(n)){(l=n[o])&&(n[o]=null),w.event.triggered=h;try{n[h]()}catch(t){}w.event.triggered=void 0,l&&(n[o]=l)}return t.result}},dispatch:function(t){t=w.event.fix(t);var e,n,i,r,o,s=c.call(arguments),a=(w._data(this,"events")||{})[t.type]||[],l=w.event.special[t.type]||{};if((s[0]=t).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,t)){for(o=w.event.handlers.call(this,t,a),e=0;(i=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,r=0;(n=i.handlers[r++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(n.namespace)||(t.handleObj=n,t.data=n.data,void 0!==(n=((w.event.special[n.origType]||{}).handle||n.handler).apply(i.elem,s))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(r=[],o=0;o<a;o++)void 0===r[n=(i=e[o]).selector+" "]&&(r[n]=i.needsContext?0<=w(n,this).index(l):w.find(n,this,null,[l]).length),r[n]&&r.push(i);r.length&&s.push({elem:l,handlers:r})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},fix:function(t){if(t[w.expando])return t;var e,n,i,r=t.type,o=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=ft.test(r)?this.mouseHooks:pt.test(r)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new w.Event(o),e=i.length;e--;)t[n=i[e]]=o[n];return t.target||(t.target=o.srcElement||v),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,o):t},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 fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r=e.button,o=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=(n=t.target.ownerDocument||v).documentElement,n=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&o&&(t.relatedTarget=
1o===t.target?e.toElement:o),t.which||void 0===r||(t.which=1&r?1:2&r?3:4&r?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==yt()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===yt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(w.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return w.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){t=w.extend(new w.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?w.event.trigger(t,null,e):w.event.dispatch.call(e,t),t.isDefaultPrevented()&&n.preventDefault()}},w.removeEvent=v.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){e="on"+e;t.detachEvent&&(typeof t[e]==y&&(t[e]=null),t.detachEvent(e,n))},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?vt:p):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||w.now(),this[w.expando]=!0},w.Event.prototype={isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=vt,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=vt,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=vt,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}}
1,w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,r){w.event.special[t]={delegateType:r,bindType:r,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||w.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=r),e}}}),g.submitBubbles||(w.event.special.submit={setup:function(){if(w.nodeName(this,"form"))return!1;w.event.add(this,"click._submit keypress._submit",function(t){t=t.target,t=w.nodeName(t,"input")||w.nodeName(t,"button")?t.form:void 0;t&&!w._data(t,"submitBubbles")&&(w.event.add(t,"submit._submit",function(t){t._submit_bubble=!0}),w._data(t,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode)&&!t.isTrigger&&w.event.simulate("submit",this.parentNode,t,!0)},teardown:function(){if(w.nodeName(this,"form"))return!1;w.event.remove(this,"._submit")}}),g.changeBubbles||(w.event.special.change={setup:function(){if(dt.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(w.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),w.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),w.event.simulate("change",this,t,!0)})),!1;w.event.add(this,"beforeactivate._change",function(t){t=t.target;dt.test(t.nodeName)&&!w._data(t,"changeBubbles")&&(w.event.add(t,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||w.event.simulate("change",this.parentNode,t,!0)}),w._data(t,"changeBubbles",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return w.event.remove(this,"._change"),!dt.test(this.nodeName)}}),g.focusinBubbles||w.each({focus:"focusin",blur:"focusout"},function(n,i){function r(t){w.event.simulate(i,t.target,w.event.fix(t),!0)}w.event.special[i]={setup:function(){var t=this.ownerDocument||this,e=w._data(t,i);e||t.addEventListener(n,r,!0),w._data(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=w._data(t,i)-1;e?w._data(t,i,e):(t.removeEventListener(n,r,!0),w._removeData(t,i))}}}),w.fn.extend({on:function(t,e,n,i,r){var o,s;if("object"==typeof t){for(o in"string"!=typeof e&&(n=n||e,e=void 0),t)this.on(o,e,n,t[o],r);return this}if(null==n&&null==i?(i=e,n=e=void 0):null==i&&("string"==typeof e?(i=n,n=void 0):(i=n,n=e,e=void 0)),!1===i)i=p;else if(!i)return this;return 1===r&&(s=i,(i=function(t){return w().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=w.guid++)),this.each(function(){w.event.add(this,t,i,n,e)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)i=t.handleObj,w(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);else{if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=p),this.each(function(){w.event.remove(this,t,n,e)});for(r in t)this.off(r,e,t[r])}return this},trigger:function(t,e){return this.each(function(){w.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return w.event.trigger(t,e,n,!0)}});var _t="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",wt=/ jQuery\d+="(?:null|\d+)"/g,xt=new RegExp("<(?:"+_t+")[\\s/>]","i"),Ct=/^\s+/,kt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,$t=/<([\w:]+)/,St=/<tbody/i,Et=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Dt=/checked\s*(?:[^=]|=\s*.checked.)/i,Mt=/^$|\/(?:java|ecma)script/i,At=/^true\/(.*)/,Ot=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,_={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:g.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Nt=bt(v).appendChild(v.createElement("div"));function C(t,e){var n,i,r=0,o=typeof t.getElementsByTagName!=y?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!=y?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(i=n[r]);
1r++)!e||w.nodeName(i,e)?o.push(i):w.merge(o,C(i,e));return void 0===e||e&&w.nodeName(t,e)?w.merge([t],o):o}function Pt(t){ut.test(t.type)&&(t.defaultChecked=t.checked)}function Rt(t,e){return w.nodeName(t,"table")&&w.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function It(t){return t.type=(null!==w.find.attr(t,"type"))+"/"+t.type,t}function Lt(t){var e=At.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Ht(t,e){for(var n,i=0;null!=(n=t[i]);i++)w._data(n,"globalEval",!e||w._data(e[i],"globalEval"))}function Ft(t,e){if(1===e.nodeType&&w.hasData(t)){var n,i,r,t=w._data(t),o=w._data(e,t),s=t.events;if(s)for(n in delete o.handle,o.events={},s)for(i=0,r=s[n].length;i<r;i++)w.event.add(e,n,s[n][i]);o.data&&(o.data=w.extend({},o.data))}}_.optgroup=_.option,_.tbody=_.tfoot=_.colgroup=_.caption=_.thead,_.th=_.td,w.extend({clone:function(t,e,n){var i,r,o,s,a,l=w.contains(t.ownerDocument,t);if(g.html5Clone||w.isXMLDoc(t)||!xt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(Nt.innerHTML=t.outerHTML,Nt.removeChild(o=Nt.firstChild)),!(g.noCloneEvent&&g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(i=C(o),a=C(t),s=0;null!=(r=a[s]);++s)if(i[s]){h=c=u=p=d=void 0;var u,c,h,d=r,p=i[s];if(1===p.nodeType){if(u=p.nodeName.toLowerCase(),!g.noCloneEvent&&p[w.expando]){for(c in(h=w._data(p)).events)w.removeEvent(p,c,h.handle);p.removeAttribute(w.expando)}"script"===u&&p.text!==d.text?(It(p).text=d.text,Lt(p)):"object"===u?(p.parentNode&&(p.outerHTML=d.outerHTML),g.html5Clone&&d.innerHTML&&!w.trim(p.innerHTML)&&(p.innerHTML=d.innerHTML)):"input"===u&&ut.test(d.type)?(p.defaultChecked=p.checked=d.checked,p.value!==d.value&&(p.value=d.value)):"option"===u?p.defaultSelected=p.selected=d.defaultSelected:"input"!==u&&"textarea"!==u||(p.defaultValue=d.defaultValue)}}if(e)if(n)for(a=a||C(t),i=i||C(o),s=0;null!=(r=a[s]);s++)Ft(r,i[s]);else Ft(t,o);return 0<(i=C(o,"script")).length&&Ht(i,!l&&C(t,"script")),i=a=r=null,o},buildFragment:function(t,e,n,i){for(var r,o,s,a,l,u,c,h=t.length,d=bt(e),p=[],f=0;f<h;f++)if((o=t[f])||0===o)if("object"===w.type(o))w.merge(p,o.nodeType?[o]:o);else if(Et.test(o)){for(a=a||d.appendChild(e.createElement("div")),l=($t.exec(o)||["",""])[1].toLowerCase(),a.innerHTML=(c=_[l]||_._default)[1]+o.replace(kt,"<$1></$2>")+c[2],r=c[0];r--;)a=a.lastChild;if(!g.leadingWhitespace&&Ct.test(o)&&p.push(e.createTextNode(Ct.exec(o)[0])),!g.tbody)for(r=(o="table"!==l||St.test(o)?"<table>"!==c[1]||St.test(o)?0:a:a.firstChild)&&o.childNodes.length;r--;)w.nodeName(u=o.childNodes[r],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(w.merge(p,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=d.lastChild}else p.push(e.createTextNode(o));for(a&&d.removeChild(a),g.appendChecked||w.grep(C(p,"input"),Pt),f=0;o=p[f++];)if((!i||-1===w.inArray(o,i))&&(s=w.contains(o.ownerDocument,o),a=C(d.appendChild(o),"script"),s&&Ht(a),n))for(r=0;o=a[r++];)Mt.test(o.type||"")&&n.push(o);return a=null,d},cleanData:function(t,e){for(var n,i,r,o,s=0,a=w.expando,l=w.cache,u=g.deleteExpando,c=w.event.special;null!=(n=t[s]);s++)if((e||w.acceptData(n))&&(o=(r=n[a])&&l[r])){if(o.events)for(i in o.events)c[i]?w.event.remove(n,i):w.removeEvent(n,i,o.handle);l[r]&&(delete l[r],u?delete n[a]:typeof n.removeAttribute!=y?n.removeAttribute(a):n[a]=null,h.push(r))}}}),w.fn.extend({text:function(t){return l(this,function(t){return void 0===t?w.text(this):this.empty().append((this[0]&&this[0].ownerDocument||v).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Rt(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Rt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?w.filter(t,this):this,r=0;null!=(n=i[r]);r++)e||1!==n.nodeType||w.cleanData(C(n)),n.parentNode&&(e&&w.contains(n.ownerDocument,n)&&Ht(C(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&w.cleanData(C(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&w.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return w.clone(this,t,e)})},html:function(t){return l(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(wt,""):void 0;if("string"==typeof t&&!Tt.test(t)&&(g.htmlSerialize||!xt.test(t))&&(g.leadingWhitespace||!Ct.test(t))&&!_[($t.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(kt,"<$1></$2>");try{for(;n<i;n++)1===(e=this[n]||{}
1).nodeType&&(w.cleanData(C(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,w.cleanData(C(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(n,i){n=H.apply([],n);var t,e,r,o,s,a,l=0,u=this.length,c=this,h=u-1,d=n[0],p=w.isFunction(d);if(p||1<u&&"string"==typeof d&&!g.checkClone&&Dt.test(d))return this.each(function(t){var e=c.eq(t);p&&(n[0]=d.call(this,t,e.html())),e.domManip(n,i)});if(u&&(t=(a=w.buildFragment(n,this[0].ownerDocument,!1,this)).firstChild,1===a.childNodes.length&&(a=t),t)){for(r=(o=w.map(C(a,"script"),It)).length;l<u;l++)e=a,l!==h&&(e=w.clone(e,!0,!0),r)&&w.merge(o,C(e,"script")),i.call(this[l],e,l);if(r)for(s=o[o.length-1].ownerDocument,w.map(o,Lt),l=0;l<r;l++)e=o[l],Mt.test(e.type||"")&&!w._data(e,"globalEval")&&w.contains(s,e)&&(e.src?w._evalUrl&&w._evalUrl(e.src):w.globalEval((e.text||e.textContent||e.innerHTML||"").replace(Ot,"")));a=null}return this}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){w.fn[t]=function(t){for(var e,n=0,i=[],r=w(t),o=r.length-1;n<=o;n++)e=n===o?this:this.clone(!0),w(r[n])[s](e),F.apply(i,e.get());return this.pushStack(i)}});var zt,k,Vt={};function jt(t,e){t=w(e.createElement(t)).appendTo(e.body),e=f.getDefaultComputedStyle&&(e=f.getDefaultComputedStyle(t[0]))?e.display:w.css(t[0],"display");return t.detach(),e}function Wt(t){var e=v,n=Vt[t];return n||("none"!==(n=jt(t,e))&&n||((e=((zt=(zt||w("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||zt[0].contentDocument).document).write(),e.close(),n=jt(t,e),zt.detach()),Vt[t]=n),n}g.shrinkWrapBlocks=function(){var t,e,n;return null!=k?k:(k=!1,(e=v.getElementsByTagName("body")[0])&&e.style?(t=v.createElement("div"),(n=v.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),typeof t.style.zoom!=y&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(v.createElement("div")).style.width="5px",k=3!==t.offsetWidth),e.removeChild(n),k):void 0)};var $,S,Bt,qt,Ut,Yt,Gt=/^margin/,Kt=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),Xt=/^(top|right|bottom|left)$/;function Zt(e,n){return{get:function(){var t=e();if(null!=t){if(!t)return(this.get=n).apply(this,arguments);delete this.get}}}}function Qt(){var t,e,n,i=v.getElementsByTagName("body")[0];i&&i.style&&(t=v.createElement("div"),(e=v.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(e).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",Bt=qt=!1,Yt=!0,f.getComputedStyle&&(Bt="1%"!==(f.getComputedStyle(t,null)||{}).top,qt="4px"===(f.getComputedStyle(t,null)||{width:"4px"}).width,(n=t.appendChild(v.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",t.style.width="1px",Yt=!parseFloat((f.getComputedStyle(n,null)||{}).marginRight),t.removeChild(n)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(n=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(Ut=0===n[0].offsetHeight)&&(n[0].style.display="",n[1].style.display="none",Ut=0===n[0].offsetHeight),i.removeChild(e))}f.getComputedStyle?($=function(t){return(t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView:f).getComputedStyle(t,null)},S=function(t,e,n){var i,r=t.style,o=(n=n||$(t))?n.getPropertyValue(e)||n[e]:void 0;return n&&(""!==o||w.contains(t.ownerDocument,t)||(o=w.style(t,e)),Kt.test(o))&&Gt.test(e)&&(t=r.width,e=r.minWidth,i=r.maxWidth,r.minWidth=r.maxWidth=r.width=o,o=n.width,r.width=t,r.minWidth=e,r.maxWidth=i),void 0===o?o:o+""}):v.documentElement.currentStyle&&($=function(t){return t.currentStyle},S=function(t,e,n){var i,r,o,s=t.style;return null==(n=(n=n||$(t))?n[e]:void 0)&&s&&s[e]&&(n=s[e]),Kt.test(n)&&!Xt.test(e)&&(i=s.left,(o=(r=t.runtimeStyle)&&r.left)&&(r.left=t.currentStyle.left),s.left="fontSize"===e?"1em":n,n=s.pixelLeft+"px",s.left=i,o)&&(r.left=o),void 0===n?n:n+""||"auto"}),(o=v.createElement("div")).innerHTML="  <link/><table></table><a href='/a'>a</a>
1<input type='checkbox'/>",(u=(u=o.getElementsByTagName("a")[0])&&u.style)&&(u.cssText="float:left;opacity:.5",g.opacity="0.5"===u.opacity,g.cssFloat=!!u.cssFloat,o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===o.style.backgroundClip,g.boxSizing=""===u.boxSizing||""===u.MozBoxSizing||""===u.WebkitBoxSizing,w.extend(g,{reliableHiddenOffsets:function(){return null==Ut&&Qt(),Ut},boxSizingReliable:function(){return null==qt&&Qt(),qt},pixelPosition:function(){return null==Bt&&Qt(),Bt},reliableMarginRight:function(){return null==Yt&&Qt(),Yt}})),w.swap=function(t,e,n,i){var r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in n=n.apply(t,i||[]),e)t.style[r]=o[r];return n};var Jt=/alpha\([^)]*\)/i,te=/opacity\s*=\s*([^)]*)/,ee=/^(none|table(?!-c[ea]).+)/,ne=new RegExp("^("+t+")(.*)$","i"),ie=new RegExp("^([+-])=("+t+")","i"),re={position:"absolute",visibility:"hidden",display:"block"},oe={letterSpacing:"0",fontWeight:"400"},se=["Webkit","O","Moz","ms"];function ae(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,r=se.length;r--;)if((e=se[r]+n)in t)return e;return i}function le(t,e){for(var n,i,r,o=[],s=0,a=t.length;s<a;s++)(i=t[s]).style&&(o[s]=w._data(i,"olddisplay"),n=i.style.display,e?(o[s]||"none"!==n||(i.style.display=""),""===i.style.display&&b(i)&&(o[s]=w._data(i,"olddisplay",Wt(i.nodeName)))):(r=b(i),(n&&"none"!==n||!r)&&w._data(i,"olddisplay",r?n:w.css(i,"display"))));for(s=0;s<a;s++)!(i=t[s]).style||e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[s]||"":"none");return t}function ue(t,e,n){var i=ne.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function ce(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=w.css(t,n+a[o],!0,r)),i?("content"===n&&(s-=w.css(t,"padding"+a[o],!0,r)),"margin"!==n&&(s-=w.css(t,"border"+a[o]+"Width",!0,r))):(s+=w.css(t,"padding"+a[o],!0,r),"padding"!==n&&(s+=w.css(t,"border"+a[o]+"Width",!0,r)));return s}function he(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=$(t),s=g.boxSizing&&"border-box"===w.css(t,"boxSizing",!1,o);if(r<=0||null==r){if(((r=S(t,e,o))<0||null==r)&&(r=t.style[e]),Kt.test(r))return r;i=s&&(g.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+ce(t,e,n||(s?"border":"content"),i,o)+"px"}function E(t,e,n,i,r){return new E.prototype.init(t,e,n,i,r)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=S(t,"opacity"))?"1":e}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:g.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=w.camelCase(e),l=t.style;if(e=w.cssProps[a]||(w.cssProps[a]=ae(l,a)),s=w.cssHooks[e]||w.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:l[e];if("string"===(o=typeof n)&&(r=ie.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(w.css(t,e)),o="number"),null!=n&&n==n&&("number"!==o||w.cssNumber[a]||(n+="px"),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(s&&"set"in s&&void 0===(n=s.set(t,n,i)))))try{l[e]=n}catch(t){}}},css:function(t,e,n,i){var r,o=w.camelCase(e);return e=w.cssProps[o]||(w.cssProps[o]=ae(t.style,o)),"normal"===(r=void 0===(r=(o=w.cssHooks[e]||w.cssHooks[o])&&"get"in o?o.get(t,!0,n):r)?S(t,e,i):r)&&e in oe&&(r=oe[e]),(""===n||n)&&(o=parseFloat(r),!0===n||w.isNumeric(o))?o||0:r}}),w.each(["height","width"],function(t,r){w.cssHooks[r]={get:function(t,e,n){if(e)return ee.test(w.css(t,"display"))&&0===t.offsetWidth?w.swap(t,re,function(){return he(t,r,n)}):he(t,r,n)},set:function(t,e,n){var i=n&&$(t);return ue(0,e,n?ce(t,r,n,g.boxSizing&&"border-box"===w.css(t,"boxSizing",!1,i),i):0)}}}),g.opacity||(w.cssHooks.opacity={get:function(t,e){return te.test((e&&t.currentStyle?t.currentStyle:t.style).filter||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,t=t.currentStyle,i=w.isNumeric(e)?"alpha(opacity="+100*e+")":"",r=t&&t.filter||n.filter||"";((n.zoom=1)<=e||""===e)&&""===w.trim(r.replace(Jt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||t&&!t.filter)||(n.filter=Jt.test(r)?r.replace(Jt,i):r+" "+i)}}
vendor: 9,858 bytes, line 1
1),w.cssHooks.marginRight=Zt(g.reliableMarginRight,function(t,e){if(e)return w.swap(t,{display:"inline-block"},S,[t,"marginRight"])}),w.each({margin:"",padding:"",border:"Width"},function(r,o){w.cssHooks[r+o]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[r+a[e]+o]=i[e]||i[e-2]||i[0];return n}},Gt.test(r)||(w.cssHooks[r+o].set=ue)}),w.fn.extend({css:function(t,e){return l(this,function(t,e,n){var i,r,o={},s=0;if(w.isArray(e)){for(i=$(t),r=e.length;s<r;s++)o[e[s]]=w.css(t,e[s],!1,i);return o}return void 0!==n?w.style(t,e,n):w.css(t,e)},t,e,1<arguments.length)},show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){b(this)?w(this).show():w(this).hide()})}}),((w.Tween=E).prototype={constructor:E,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var t=E.propHooks[this.prop];return(t&&t.get?t:E.propHooks._default).get(this)},run:function(t){var e,n=E.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:E.propHooks._default).set(this),this}}).init.prototype=E.prototype,(E.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=w.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[w.cssProps[t.prop]]||w.cssHooks[t.prop])?w.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}}).scrollTop=E.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},w.fx=E.prototype.init,w.fx.step={};var T,de,D,pe=/^(?:toggle|show|hide)$/,fe=new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i"),me=/queueHooks$/,ge=[function(e,t,n){var i,r,o,s,a,l,u,c=this,h={},d=e.style,p=e.nodeType&&b(e),f=w._data(e,"fxshow");n.queue||(null==(a=w._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,w.queue(e,"fx").length||a.empty.fire()})}));1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],u=w.css(e,"display"),"inline"===("none"===u?w._data(e,"olddisplay")||Wt(e.nodeName):u))&&"none"===w.css(e,"float")&&(g.inlineBlockNeedsLayout&&"inline"!==Wt(e.nodeName)?d.zoom=1:d.display="inline-block");n.overflow&&(d.overflow="hidden",g.shrinkWrapBlocks()||c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in t)if(r=t[i],pe.exec(r)){if(delete t[i],o=o||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!f||void 0===f[i])continue;p=!0}h[i]=f&&f[i]||w.style(e,i)}else u=void 0;if(w.isEmptyObject(h))"inline"===("none"===u?Wt(e.nodeName):u)&&(d.display=u);else for(i in f?"hidden"in f&&(p=f.hidden):f=w._data(e,"fxshow",{}),o&&(f.hidden=!p),p?w(e).show():c.done(function(){w(e).hide()}),c.done(function(){for(var t in w._removeData(e,"fxshow"),h)w.style(e,t,h[t])}),h)s=be(p?f[i]:0,i,c),i in f||(f[i]=s.start,p&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}],M={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),e=fe.exec(e),r=e&&e[3]||(w.cssNumber[t]?"":"px"),o=(w.cssNumber[t]||"px"!==r&&+i)&&fe.exec(w.css(n.elem,t)),s=1,a=20;if(o&&o[3]!==r)for(r=r||o[3],e=e||[],o=+i||1;o/=s=s||".5",w.style(n.elem,t,o+r),s!==(s=n.cur()/i)&&1!==s&&--a;);return e&&(o=n.start=+o||+i||0,n.unit=r,n.end=e[1]?o+(e[1]+1)*e[2]:+e[2]),n}]};function ve(){return setTimeout(function(){T=void 0}),T=w.now()}function ye(t,e){var n,i={height:t},r=0;for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=a[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function be(t,e,n){for(var i,r=(M[e]||[]).concat(M["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function _e(r,t,e){var n,o,i,s,a,l,u,c=0,h=ge.length,d=w.Deferred().always(function(){delete p.elem}),p=function(){if(o)return!1;for(var t=T||ve(),t=Math.max(0,f.startTime+f.duration-t),e=1-(t/f.duration||0),n=0,i=f.tweens.length;n<i;n++)f.tweens[n].run(e);return d.notifyWith(r,[f,e,t]),e<1&&i?t:(d.resolveWith(r,[f]),!1)},f=d.promise({elem:r,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{}},e),originalProperties:t,originalOptions:e,startTime:T||ve(),duration:e.duration,tweens:[],createTween:function(t,e){e=w.Tween(r,f.opts,t,e,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(e),e},stop:function(t){var e=0,n=t?f.tweens.length:0;if(!o){for(o=!0;e<n;e++)f.tweens[e].run(1);t?d.resolveWith(r,[f,t]):d.rejectWith(r,[f,t])}return this}}),m=f.props,g=m,v=f.opts.specialEasing;for(i in g)if(a=v[s=w.camelCase(i)],l=g[i],w.isArray(l)&&(a=l[1],l=g[i]=l[0]),i!==s&&(g[s]=l,delete g[i]),(u=w.cssHooks[s])&&"expand"in u)for(i in l=u.expand(l),delete g[s],l)i in g||(g[i]=l[i],v[i]=a);else v[s]=a;for(;c<h;c++)if(n=ge[c].call(f,r,m,f.opts))return n;return w.map(m,be,f),w.isFunction(f.opts.start)&&f.opts.start.call(r,f),w.fx.timer(w.extend(p,{elem:r,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}w.Animation=w.extend(_e,{tweener:function(t,e){for(var n,i=0,r=(t=w.isFunction(t)?(e=t,["*"]):t.split(" ")).length;i<r;i++)n=t[i],M[n]=M[n]||[],M[n].unshift(e)},prefilter:function(t,e){e?ge.unshift(t):ge.push(t)}}),w.speed=function(t,e,n){var i=t&&"object"==typeof t?w.extend({},t):{complete:n||!n&&e||w.isFunction(t)&&t,duration:t,easing:n&&e||e&&!w.isFunction(e)&&e};return i.duration=w.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in w.fx.speeds?w.fx.speeds[i.duration]:w.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){w.isFunction(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(t,e,n,i){return this.filter(b).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){function r(){var t=_e(this,w.extend({},e),s);(o||w._data(this,"finish"))&&t.stop(!0)}var o=w.isEmptyObject(e),s=w.speed(t,n,i);return r.finish=r,o||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(r,t,o){function s(t){var e=t.stop;delete t.stop,e(o)}return"string"!=typeof r&&(o=t,t=r,r=void 0),t&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var t=!0,e=null!=r&&r+"queueHooks",n=w.timers,i=w._data(this);if(e)i[e]&&i[e].stop&&s(i[e]);else for(e in i)i[e]&&i[e].stop&&me.test(e)&&s(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=r&&n[e].queue!==r||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||w.dequeue(this,r)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=w._data(this),n=e[s+"queue"],i=e[s+"queueHooks"],r=w.timers,o=n?n.length:0;for(e.finish=!0,w.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===s&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),w.each(["toggle","show","hide"],function(t,i){var r=w.fn[i];w.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?r.apply(this,arguments):this.animate(ye(i,!0),t,e,n)}}),w.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){w.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),w.timers=[],w.fx.tick=function(){var t,e=w.timers,n=0;for(T=w.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||w.fx.stop(),T=void 0},w.fx.timer=function(t){w.timers.push(t),t()?w.fx.start():w.timers.pop()},w.fx.interval=13,w.fx.start=function(){de=de||setInterval(w.fx.tick,w.fx.interval)},w.fx.stop=function(){clearInterval(de),de=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(i,t){return i=w.fx&&w.fx.speeds[i]||i,this.queue(t=t||"fx",function(t,e){var n=setTimeout(t,i);e.stop=function(){clearTimeout(n)}})},(s=v.createElement("div")).setAttribute("className","t"),s.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",o=s.getElementsByTagName("a")[0],t=(u=v.createElement("select")).appendChild(v.createElement("option")),D=s.getElementsByTagName("input")[0],o.style.cssText="top:1px",g.getSetAttribute="t"!==s.className,g.style=/top/.test(o.getAttribute("style")),g.hrefNormalized="/a"===o.getAttribute("href"),g.checkOn=!!D.value,g.optSelected=t.selected,g.enctype=!!v.createElement("form").enctype,u.disabled=!0,g.optDisabled=!t.disabled,(D=v.createElement("input")).setAttribute("value",""),g.input=""===D.getAttribute("value"),D.value="t",D.setAttribute("type","radio"),g.radioValue="t"===D.value;var we=/\r/g;w.fn.extend({val:function(e){var n,t,i,r=this[0];return arguments.length?(i=w.isFunction(e),this.each(function(t){1!==this.nodeType||(null==(t=i?e.call(this,t,w(this).val()):e)?t="":"number"==typeof t?t+="":w.isArray(t)&&(t=w.map(t,function(t){return null==t?"":t+""})),(n=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value"))||(this.value=t)})):r?(n=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(r,"value"))?t:"string"==typeof(t=r.value)?t.replace(we,""):null==t?"":t:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:w.trim(w.text(t))}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,r="select-one"===t.type||i<0,o=r?null:[],s=r?i+1:n.length,a=i<0?s:r?i:0;a<s;
1a++)if(((e=n[a]).selected||a===i)&&(g.optDisabled?!e.disabled:null===e.getAttribute("disabled"))&&(!e.parentNode.disabled||!w.nodeName(e.parentNode,"optgroup"))){if(e=w(e).val(),r)return e;o.push(e)}return o},set:function(t,e){for(var n,i,r=t.options,o=w.makeArray(e),s=r.length;s--;)if(i=r[s],0<=w.inArray(w.valHooks.option.get(i),o))try{i.selected=n=!0}catch(t){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),r}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(t,e){if(w.isArray(e))return t.checked=0<=w.inArray(w(t).val(),e)}},g.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var A,xe,O=w.expr.attrHandle,Ce=/^(?:checked|selected)$/i,N=g.getSetAttribute,ke=g.input,$e=(w.fn.extend({attr:function(t,e){return l(this,w.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){w.removeAttr(this,t)})}}),w.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute==y?w.prop(t,e,n):(1===o&&w.isXMLDoc(t)||(e=e.toLowerCase(),i=w.attrHooks[e]||(w.expr.match.bool.test(e)?xe:A)),void 0===n?!(i&&"get"in i&&null!==(r=i.get(t,e)))&&null==(r=w.find.attr(t,e))?void 0:r:null!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):void w.removeAttr(t,e))},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(x);if(o&&1===t.nodeType)for(;n=o[r++];)i=w.propFix[n]||n,w.expr.match.bool.test(n)?ke&&N||!Ce.test(n)?t[i]=!1:t[w.camelCase("default-"+n)]=t[i]=!1:w.attr(t,n,""),t.removeAttribute(N?n:i)},attrHooks:{type:{set:function(t,e){var n;if(!g.radioValue&&"radio"===e&&w.nodeName(t,"input"))return n=t.value,t.setAttribute("type",e),n&&(t.value=n),e}}}}),xe={set:function(t,e,n){return!1===e?w.removeAttr(t,n):ke&&N||!Ce.test(n)?t.setAttribute(!N&&w.propFix[n]||n,n):t[w.camelCase("default-"+n)]=t[n]=!0,n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(t,e){var o=O[e]||w.find.attr;O[e]=ke&&N||!Ce.test(e)?function(t,e,n){var i,r;return n||(r=O[e],O[e]=i,i=null!=o(t,e,n)?e.toLowerCase():null,O[e]=r),i}:function(t,e,n){if(!n)return t[w.camelCase("default-"+e)]?e.toLowerCase():null}}),ke&&N||(w.attrHooks.value={set:function(t,e,n){if(!w.nodeName(t,"input"))return A&&A.set(t,e,n);t.defaultValue=e}}),N||(A={set:function(t,e,n){var i=t.getAttributeNode(n);if(i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n))return e}},O.id=O.name=O.coords=function(t,e,n){if(!n)return(n=t.getAttributeNode(e))&&""!==n.value?n.value:null},w.valHooks.button={get:function(t,e){t=t.getAttributeNode(e);if(t&&t.specified)return t.value},set:A.set},w.attrHooks.contenteditable={set:function(t,e,n){A.set(t,""!==e&&e,n)}},w.each(["width","height"],function(t,n){w.attrHooks[n]={set:function(t,e){if(""===e)return t.setAttribute(n,"auto"),e}}})),g.style||(w.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}}),/^(?:input|select|textarea|button|object)$/i),Se=/^(?:a|area)$/i,Ee=(w.fn.extend({prop:function(t,e){return l(this,w.prop,t,e,1<arguments.length)},removeProp:function(t){return t=w.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),w.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var i,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!w.isXMLDoc(t))&&(e=w.propFix[e]||e,r=w.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):$e.test(t.nodeName)||Se.test(t.nodeName)&&t.href?0:-1}}}}),g.hrefNormalized||w.each(["href","src"],function(t,e){w.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),g.optSelected||(w.propHooks.selected={get:function(t){t=t.parentNode;return t&&(t.selectedIndex,t.parentNode)&&t.parentNode.selectedIndex,null}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),g.enctype||(w.propFix.enctype="encoding"),/[\t\r\n\f]/g),Te=(w.fn.extend({addClass:function(e){var t,n,i,r,o,s,a=0,l=this.length,u="string"==typeof e&&e;if(w.isFunction(e))return this.each(function(t){w(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(x)||[];a<l;a++)if(i=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(Ee," "):" ")){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");s=w.trim(i),n.className!==s&&(n.className=s)}return this},removeClass:function(e){var t,n,i,r,o,s,a=0,l=this.length,u=0===arguments.length||"string"==typeof e&&e;if(w.isFunction(e))return this.each(function(t){w(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(x)||[];a<l;a++)if(i=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(Ee," "):"")){for(o=0;r=t[o++];)for(;0<=i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");s=e?w.trim(i):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(r,e){var o=typeof r;return"boolean"==typeof e&&"string"==o?e?this.addClass(r):this.removeClass(r):w.isFunction(r)?this.each(function(t){w(this).toggleClass(r.call(this,t,this.className,e),e)}):this.each(function(){if("string"==o)for(var t,e=0,n=w(this),i=r.match(x)||[];t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else o!=y&&"boolean"!=o||(this.className&&w._data(this,"__className__",this.className),this.className=!this.className&&!1!==r&&w._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(Ee," ").indexOf(e))return!0;return!1}}),w.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,n){w.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),w.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),w.now()),De=/\?/,Me=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;w.parseJSON=function(t){var r,o,e;return f.JSON&&f.JSON.parse?f.JSON.parse(t+""):(o=null,(e=w.trim(t+""))&&!w.trim(e.replace(Me,function(t,e,n,i){return 0===(o=r&&e?0:o)?t:(r=n||e,o+=!i-!n,"")}))?Function("return "+e)():w.error("Invalid JSON: "+t))},w.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{f.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t))}catch(t){e=void 0}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),e};var P,R,Ae=/#.*$/,Oe=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Pe=/^(?:GET|HEAD)$/,Re=/^\/\//,Ie=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Le={},He={},Fe="*/".concat("*");try{R=location.href}catch(t){(R=v.createElement("a")).href="",R=R.href}function ze(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,r=t.toLowerCase().match(x)||[];if(w.isFunction(e))for(;n=r[i++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function Ve(e,i,r,o){var s={},a=e===He;function l(t){var n;return s[t]=!0,w.each(e[t]||[],function(t,e){e=e(i,r,o);return"string"!=typeof e||a||s[e]?a?!(n=e):void 0:(i.dataTypes.unshift(e),l(e),!1)}),n}return l(i.dataTypes[0])||!s["*"]&&l("*")}function je(t,e){var n,i,r=w.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n=n||{})[i]=e[i]);return n&&w.extend(!0,t,n),t}P=Ie.exec(R.toLowerCase())||[],w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:R,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(P[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":w.parseJSON,"text xml":w.parseXML}
vendor: 6,171 bytes, line 1
1,flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?je(je(t,w.ajaxSettings),e):je(w.ajaxSettings,t)},ajaxPrefilter:ze(Le),ajaxTransport:ze(He),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var n,l,u,c,h,d,i,p=w.ajaxSetup({},e=e||{}),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?w(f):w.event,g=w.Deferred(),v=w.Callbacks("once memory"),y=p.statusCode||{},r={},o={},b=0,s="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!i)for(i={};e=Ne.exec(u);)i[e[1].toLowerCase()]=e[2];e=i[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?u:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=o[n]=o[n]||t,r[t]=e),this},overrideMimeType:function(t){return b||(p.mimeType=t),this},statusCode:function(t){if(t)if(b<2)for(var e in t)y[e]=[y[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){t=t||s;return d&&d.abort(t),a(0,t),this}};if(g.promise(_).complete=v.add,_.success=_.done,_.error=_.fail,p.url=((t||p.url||R)+"").replace(Ae,"").replace(Re,P[1]+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=w.trim(p.dataType||"*").toLowerCase().match(x)||[""],null==p.crossDomain&&(t=Ie.exec(p.url.toLowerCase()),p.crossDomain=!(!t||t[1]===P[1]&&t[2]===P[2]&&(t[3]||("http:"===t[1]?"80":"443"))===(P[3]||("http:"===P[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),Ve(Le,p,e,_),2!==b){for(n in(h=w.event&&p.global)&&0==w.active++&&w.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Pe.test(p.type),l=p.url,p.hasContent||(p.data&&(l=p.url+=(De.test(l)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=Oe.test(l)?l.replace(Oe,"$1_="+Te++):l+(De.test(l)?"&":"?")+"_="+Te++)),p.ifModified&&(w.lastModified[l]&&_.setRequestHeader("If-Modified-Since",w.lastModified[l]),w.etag[l])&&_.setRequestHeader("If-None-Match",w.etag[l]),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&_.setRequestHeader("Content-Type",p.contentType),_.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Fe+"; q=0.01":""):p.accepts["*"]),p.headers)_.setRequestHeader(n,p.headers[n]);if(p.beforeSend&&(!1===p.beforeSend.call(f,_,p)||2===b))return _.abort();for(n in s="abort",{success:1,error:1,complete:1})_[n](p[n]);if(d=Ve(He,p,e,_)){_.readyState=1,h&&m.trigger("ajaxSend",[_,p]),p.async&&0<p.timeout&&(c=setTimeout(function(){_.abort("timeout")},p.timeout));try{b=1,d.send(r,a)}catch(t){if(!(b<2))throw t;a(-1,t)}}else a(-1,"No Transport")}return _;function a(t,e,n,i){var r,o,s,a=e;2!==b&&(b=2,c&&clearTimeout(c),d=void 0,u=i||"",_.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(s=function(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(s in a)if(a[s]&&a[s].test(r)){l.unshift(s);break}if(l[0]in n)o=l[0];else{for(s in n){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}i=i||s}o=o||i}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,_,n)),s=function(t,e,n,i){var r,o,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(r in u)if((a=r.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[r]:!0!==u[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,s,_,i),i?(p.ifModified&&((n=_.getResponseHeader("Last-Modified"))&&(w.lastModified[l]=n),n=_.getResponseHeader("etag"))&&(w.etag[l]=n),204===t||"HEAD"===p.type?a="nocontent":304===t?a="notmodified":(a=s.state,r=s.data,i=!(o=s.error))):(o=a,!t&&a||(a="error",t<0&&(t=0))),_.status=t,_.statusText=(e||a)+"",i?g.resolveWith(f,[r,a,_]):g.rejectWith(f,[_,a,o]),_.statusCode(y),y=void 0,h&&m.trigger(i?"ajaxSuccess":"ajaxError",[_,p,i?r:o]),v.fireWith(f,[_,a]),h)&&(m.trigger("ajaxComplete",[_,p]),--w.active||w.event.trigger("ajaxStop"))}},getJSON:function(t,e,n){return w.get(t,e,n,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],function(t,r){w[r]=function(t,e,n,i){return w.isFunction(e)&&(i=i||n,n=e,e=void 0),w.ajax({url:t,type:r,dataType:i,data:e,success:n})}}),w._evalUrl=function(t){return w.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},w.fn.extend({wrapAll:function(e){var t;return w.isFunction(e)?this.each(function(t){w(this).wrapAll(e.call(this,t))}):(this[0]&&(t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)),this)},wrapInner:function(n){return w.isFunction(n)?this.each(function(t){w(this).wrapInner(n.call(this,t))}):this.each(function(){var t=w(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=w.isFunction(e);return this.each(function(t){w(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){w.nodeName(this,"body")||w(this).replaceWith(this.childNodes)}).end()}}),w.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!g.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||w.css(t,"display"))},w.expr.filters.visible=function(t){return!w.expr.filters.hidden(t)};var We=/%20/g,Be=/\[\]$/,qe=/\r?\n/g,Ue=/^(?:submit|button|image|reset|file)$/i,Ye=/^(?:input|select|textarea|keygen)/i;w.param=function(t,e){function n(t,e){e=w.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)}var i,r=[];if(void 0===e&&(e=w.ajaxSettings&&w.ajaxSettings.traditional),w.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,function(){n(this.name,this.value)});else for(i in t)!function n(i,t,r,o){if(w.isArray(t))w.each(t,function(t,e){r||Be.test(i)?o(i,e):n(i+"["+("object"==typeof e?t:"")+"]",e,r,o)});
1else if(r||"object"!==w.type(t))o(i,t);else for(var e in t)n(i+"["+e+"]",t[e],r,o)}(i,t[i],e,n);return r.join("&").replace(We,"+")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&Ye.test(this.nodeName)&&!Ue.test(t)&&(this.checked||!ut.test(t))}).map(function(t,e){var n=w(this).val();return null==n?null:w.isArray(n)?w.map(n,function(t){return{name:e.name,value:t.replace(qe,"\r\n")}}):{name:e.name,value:n.replace(qe,"\r\n")}}).get()}}),w.ajaxSettings.xhr=void 0!==f.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Xe()||function(){try{return new f.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:Xe;var Ge=0,Ke={},s=w.ajaxSettings.xhr();function Xe(){try{return new f.XMLHttpRequest}catch(t){}}f.attachEvent&&f.attachEvent("onunload",function(){for(var t in Ke)Ke[t](void 0,!0)}),g.cors=!!s&&"withCredentials"in s,(g.ajax=!!s)&&w.ajaxTransport(function(l){var u;if(!l.crossDomain||g.cors)return{send:function(t,o){var e,s=l.xhr(),a=++Ge;if(s.open(l.type,l.url,l.async,l.username,l.password),l.xhrFields)for(e in l.xhrFields)s[e]=l.xhrFields[e];for(e in l.mimeType&&s.overrideMimeType&&s.overrideMimeType(l.mimeType),l.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)void 0!==t[e]&&s.setRequestHeader(e,t[e]+"");s.send(l.hasContent&&l.data||null),u=function(t,e){var n,i,r;if(u&&(e||4===s.readyState))if(delete Ke[a],u=void 0,s.onreadystatechange=w.noop,e)4!==s.readyState&&s.abort();else{r={},n=s.status,"string"==typeof s.responseText&&(r.text=s.responseText);try{i=s.statusText}catch(t){i=""}n||!l.isLocal||l.crossDomain?1223===n&&(n=204):n=r.text?200:404}r&&o(n,i,r,s.getAllResponseHeaders())},l.async?4===s.readyState?setTimeout(u):s.onreadystatechange=Ke[a]=u:u()},abort:function(){u&&u(void 0,!0)}}}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),w.ajaxTransport("script",function(e){var i,r;if(e.crossDomain)return r=v.head||w("head")[0]||v.documentElement,{send:function(t,n){(i=v.createElement("script")).async=!0,e.scriptCharset&&(i.charset=e.scriptCharset),i.src=e.url,i.onload=i.onreadystatechange=function(t,e){!e&&i.readyState&&!/loaded|complete/.test(i.readyState)||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,e)||n(200,"success")},r.insertBefore(i,r.firstChild)},abort:function(){i&&i.onload(void 0,!0)}}});var Ze=[],Qe=/(=)\?(?=&|$)|\?\?/,Je=(w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ze.pop()||w.expando+"_"+Te++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",function(t,e,n){var i,r,o,s=!1!==t.jsonp&&(Qe.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qe.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=w.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Qe,"$1"+i):!1!==t.jsonp&&(t.url+=(De.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||w.error(i+" was not called"),o[0]},t.dataTypes[0]="json",r=f[i],f[i]=function(){o=arguments},n.always(function(){f[i]=r,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ze.push(i)),o&&w.isFunction(r)&&r(o[0]),o=r=void 0}),"script"}),w.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||v;var i=Y.exec(t),n=!n&&[];return i?[e.createElement(i[1])]:(i=w.buildFragment([t],e,n),n&&n.length&&w(n).remove(),w.merge([],i.childNodes))},w.fn.load),tn=(w.fn.load=function(t,e,n){var i,r,o,s,a;return"string"!=typeof t&&Je?Je.apply(this,arguments):(s=this,0<=(a=t.indexOf(" "))&&(i=w.trim(t.
1slice(a,t.length)),t=t.slice(0,a)),w.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),0<s.length&&w.ajax({url:t,type:o,dataType:"html",data:e}).done(function(t){r=arguments,s.html(i?w("<div>").append(w.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){s.each(n,r||[t.responseText,e,t])}),this)},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){w.fn[e]=function(t){return this.on(e,t)}}),w.expr.filters.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},f.document.documentElement);function en(t){return w.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}w.offset={setOffset:function(t,e,n){var i,r,o,s,a=w.css(t,"position"),l=w(t),u={};"static"===a&&(t.style.position="relative"),o=l.offset(),i=w.css(t,"top"),s=w.css(t,"left"),a=("absolute"===a||"fixed"===a)&&-1<w.inArray("auto",[i,s])?(r=(a=l.position()).top,a.left):(r=parseFloat(i)||0,parseFloat(s)||0),null!=(e=w.isFunction(e)?e.call(t,n,o):e).top&&(u.top=e.top-o.top+r),null!=e.left&&(u.left=e.left-o.left+a),"using"in e?e.using.call(t,u):l.css(u)}},w.fn.extend({offset:function(e){var t,n,i,r;return arguments.length?void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)}):(n={top:0,left:0},(r=(i=this[0])&&i.ownerDocument)?(t=r.documentElement,w.contains(t,i)?(typeof i.getBoundingClientRect!=y&&(n=i.getBoundingClientRect()),i=en(r),{top:n.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):n):void 0)},position:function(){var t,e,n,i;if(this[0])return n={top:0,left:0},i=this[0],"fixed"===w.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),(n=w.nodeName(t[0],"html")?n:t.offset()).top+=w.css(t[0],"borderTopWidth",!0),n.left+=w.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-w.css(i,"marginTop",!0),left:e.left-n.left-w.css(i,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||tn;t&&!w.nodeName(t,"html")&&"static"===w.css(t,"position");)t=t.offsetParent;return t||tn})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,r){var o=/Y/.test(r);w.fn[e]=function(t){return l(this,function(t,e,n){var i=en(t);if(void 0===n)return i?r in i?i[r]:i.document.documentElement[e]:t[e];i?i.scrollTo(o?w(i).scrollLeft():n,o?n:w(i).scrollTop()):t[e]=n},e,t,arguments.length,null)}}),w.each(["top","left"],function(t,n){w.cssHooks[n]=Zt(g.pixelPosition,function(t,e){if(e)return e=S(t,n),Kt.test(e)?w(t).position()[n]+"px":e})}),w.each({Height:"height",Width:"width"},function(o,s){w.each({padding:"inner"+o,content:s,"":"outer"+o},function(i,t){w.fn[t]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),r=i||(!0===t||!0===e?"margin":"border");return l(this,function(t,e,n){var i;return w.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+o],i["scroll"+o],t.body["offset"+o],i["offset"+o],i["client"+o])):void 0===n?w.css(t,e,r):w.style(t,e,n,r)},s,n?t:void 0,n,null)}})}),w.fn.size=function(){return this.length},w.fn.andSelf=w.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return w});var nn=f.jQuery,rn=f.$;return w.noConflict=function(t){return f.$===w&&(f.$=rn),t&&f.jQuery===w&&(f.jQuery=nn),w},typeof I==y&&(f.jQuery=f.$=w),w}),!function(m){var t={function:!0,object:!0};function I(t){return t&&t.Object===Object?t:null}var L=t[typeof exports]&&exports&&!exports.nodeType?exports:null,H=t[typeof module]&&module&&!module.nodeType?module:null,e=I(L&&H&&"object"==typeof global&&global),n=I(t[typeof self]&&self),i=I(t[typeof window]&&window),F=H&&H.exports===L?L:null,t=I(t[typeof this]&&this),l=e||i!==(t&&t.window)&&i||n||t||Function("return this")(),a={internals:{},config:{Promise:l.Promise},helpers:{}},g=a.helpers.noop=function(){},z=a.helpers.identity=function(t){return t},i=a.helpers.defaultNow=Date.now,V=a.helpers.defaultComparer=function(t,e){return Ot(t,e)},j=a.helpers.defaultSubComparer=function(t,e){return e<t?1:t<e?-1:0}
1,W=(a.helpers.defaultKeySerializer=function(t){return t.toString()},a.helpers.defaultError=function(t){throw t}),f=a.helpers.isPromise=function(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then},v=a.helpers.isFunction=n=(n=function(t){return"function"==typeof t||!1})(/x/)?function(t){return"function"==typeof t&&"[object Function]"==toString.call(t)}:n;function B(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(t[n]);return e}var y={e:{}};var b=a.internals.tryCatch=function(t){if(v(t))return e=t,function(){try{return e.apply(this,arguments)}catch(t){return y.e=t,y}};throw new TypeError("fn must be a function");var e};function s(t){throw t}var q,U=a.config.longStackSupport=!1,t=b(function(){throw new Error})(),U=!!t.e&&!!t.e.stack,Y=X(),G="From previous event:";function K(t,e){if(U&&e.stack&&"object"==typeof t&&null!==t&&t.stack&&-1===t.stack.indexOf(G)){for(var n=[],i=e;i;i=i.source)i.stack&&n.unshift(i.stack);n.unshift(t.stack);e=n.join("\n"+G+"\n");t.stack=function(t){for(var e=t.split("\n"),n=[],i=0,r=e.length;i<r;i++){var o=e[i];!function(t){var e,t=Z(t);return t&&(e=t[0],t=t[1],e===q)&&Y<=t&&t<=kp}(o)&&!function(t){return-1!==t.indexOf("(module.js:")||-1!==t.indexOf("(node.js:")}(o)&&o&&n.push(o)}return n.join("\n")}(e)}}function X(){if(U)try{throw new Error}catch(t){var e=t.stack.split("\n"),e=Z(0<e[0].indexOf("@")?e[1]:e[2]);if(e)return q=e[0],e[1]}}function Z(t){var e=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(t);return(e=e||/at ([^ ]+):(\d+):(?:\d+)$/.exec(t))?[e[1],Number(e[2])]:(e=/.*@(.+):(\d+)$/.exec(t))?[e[1],Number(e[2])]:void 0}var Q,J,tt,et,nt=a.EmptyError=function(){this.message="Sequence contains no elements.",Error.call(this)},it=(nt.prototype=Object.create(Error.prototype),nt.prototype.name="EmptyError",a.ObjectDisposedError=function(){this.message="Object has been disposed",Error.call(this)}),rt=((it.prototype=Object.create(Error.prototype)).name="ObjectDisposedError",a.ArgumentOutOfRangeError=function(){this.message="Argument out of range",Error.call(this)}),ot=((rt.prototype=Object.create(Error.prototype)).name="ArgumentOutOfRangeError",a.NotSupportedError=function(t){this.message=t||"This operation is not supported",Error.call(this)}),st=((ot.prototype=Object.create(Error.prototype)).name="NotSupportedError",a.NotImplementedError=function(t){this.message=t||"This operation is not implemented",Error.call(this)}),n=((st.prototype=Object.create(Error.prototype)).name="NotImplementedError",a.helpers.notImplemented=function(){throw new st}),u=(a.helpers.notSupported=function(){throw new ot},"function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_"),at=(l.Set&&"function"==typeof(new l.Set)["@@iterator"]&&(u="@@iterator"),a.doneEnumerator={done:!0,value:m}),lt=a.helpers.isIterable=function(t){return t&&t[u]!==m},ut=a.helpers.isArrayLike=function(t){return t&&t.length!==m},c=(a.helpers.iterator=u,a.internals.bindCallback=function(i,r,t){if(void 0===r)return i;switch(t){case 0:return function(){return i.call(r)};case 1:return function(t){return i.call(r,t)};case 2:return function(t,e){return i.call(r,t,e)};case 3:return function(t,e,n){return i.call(r,t,e,n)}}return function(){return i.apply(r,arguments)}}),ct="[object Arguments]",ht="[object Array]",dt="[object Boolean]",pt="[object Date]",ft="[object Error]",mt="[object Number]",gt="[object Object]",vt="[object RegExp]",yt="[object String]",_={},t=(_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[ct]=_[ht]=_["[object ArrayBuffer]"]=_[dt]=_[pt]=_[ft]=_["[object Function]"]=_["[object Map]"]=_[mt]=_[gt]=_[vt]=_["[object Set]"]=_[yt]=_["[object WeakMap]"]=!1,Object.prototype),bt=t.hasOwnProperty,_t=t.toString,wt=Math.pow(2,53)-1,xt=Object.keys||(Q=Object.prototype.hasOwnProperty,J=!{toString:null}.propertyIsEnumerable("toString"),et=(tt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("object"!=typeof t&&("function"!=typeof t||null===t))throw new TypeError("Object.keys called on non-object");var e,n,i=[];for(e in t)Q.call(t,e)&&i.push(e);if(J)for(n=0;n<et;n++)Q.call(t,tt[n])&&i.push(tt[n]);return i});function Ct(t,e,n,i,r,o){var s=xt(t),a=s.length;if(a!==xt(e).length&&!i)return!1;for(var l=a;l--;)if(c=s[l],!(i?c in e:bt.call(e,c)))return!1;for(var u=i;++l<a;){var c,h=t[c=s[l]],d=e[c];if(void 0!==m||!n(h,d,i,r,o))return!1;u=u||"constructor"===c}if(!u){var p=t.constructor,f=e.constructor;if(p!==f&&"constructor"in t&&"constructor"in e&&!("function"==typeof p&&p instanceof p&&"function"==typeof f&&f instanceof f))return!1}return!0}var kt=a.internals.isObject=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)};function $t(t){return!!t&&"object"==typeof t}function St(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=wt}var Et=function(){try{Object({toString:0}+"")}catch(t){return function(){return!1}}return function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}}();var Tt=Array.isArray||function(t){return $t(t)&&St(t.length)&&_t.call(t)===ht};function Dt(t,e,n,i,r,o){var s=-1,a=t.length,l=e.length;if(a!==l&&!(i&&a<l))return!1;for(;++s<a;){var u=t[s],c=e[s];if(void 0!==m)return!1;if(i){if(!function(t,e){for(var n=-1,i=t.length;++n<i;)if(e(t[n],n,t))return 1}(e,function(t){return u===t||n(u,t,i,r,o)}))return!1}else if(u!==c&&!n(u,c,i,r,o))return!1}return!0}function Mt(t,e,n,i,r,o){var s=Tt(t),a=Tt(e),l=ht,u=ht,c=(s||((l=_t.call(t))===ct?l=gt:l!==gt&&(s=$t(c=t)&&St(c.length)&&!!_[_t.call(c)])),a||(u=_t.call(e))===ct&&(u=gt),l===gt&&!Et(t)),a=u===gt&&!Et(e),u=l===u;if(u&&!s&&!c){var h=t,d=e;switch(l){case dt:case pt:return+h==+d;case ft:return h.name===d.name&&h.message===d.message;case mt:return h!==+h?d!==+d:h===+d;case vt:case yt:return h===d+""}return!1}if(!i){l=c&&bt.call(t,"__wrapped__"),a=a&&bt.call(e,"__wrapped__");
1if(l||a)return n(l?t.value():t,a?e.value():e,i,r,o)}if(!u)return!1;o=o||[];for(var p=(r=r||[]).length;p--;)if(r[p]===t)return o[p]===e;r.push(t),o.push(e);l=(s?Dt:Ct)(t,e,n,i,r,o);return r.pop(),o.pop(),l}function At(t,e,n,i,r){return t===e||(null==t||null==e||!kt(t)&&!$t(e)?t!=t&&e!=e:Mt(t,e,At,n,i,r))}var Ot=a.internals.isEqual=function(t,e){return At(t,e)},h=(Array.prototype.slice,a.internals.inherits=function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}),t=a.internals.addProperties=function(t){for(var e=[],n=1,i=arguments.length;n<i;n++)e.push(arguments[n]);for(var r=0,o=e.length;r<o;r++){var s,a=e[r];for(s in a)t[s]=a[s]}},Nt=a.internals.addRef=function(e,n){return new P(function(t){return new k(n.getDisposable(),e.subscribe(t))})};function Pt(t,e){for(var n=new Array(t),i=0;i<t;i++)n[i]=e();return n}function Rt(t,e){this.id=t,this.value=e}Rt.prototype.compareTo=function(t){var e=this.value.compareTo(t.value);return e=0===e?this.id-t.id:e};var It=a.internals.PriorityQueue=function(t){this.items=new Array(t),this.length=0},r=It.prototype,w=(r.isHigherPriority=function(t,e){return this.items[t].compareTo(this.items[e])<0},r.percolate=function(t){var e,n;t>=this.length||t<0||(e=t-1>>1)<0||e===t||this.isHigherPriority(t,e)&&(n=this.items[t],this.items[t]=this.items[e],this.items[e]=n,this.percolate(e))},r.heapify=function(t){var e,n,i;(t=+t?t:0)>=this.length||t<0||(e=2*t+2,(i=2*(n=t)+1)<this.length&&this.isHigherPriority(i,n)&&(n=i),(n=e<this.length&&this.isHigherPriority(e,n
1)?e:n)!==t&&(i=this.items[t],this.items[t]=this.items[n],this.items[n]=i,this.heapify(n)))},r.peek=function(){return this.items[0].value},r.removeAt=function(t){this.items[t]=this.items[--this.length],this.items[this.length]=m,this.heapify()},r.dequeue=function(){var t=this.peek();return this.removeAt(0),t},r.enqueue=function(t){var e=this.length++;this.items[e]=new Rt(It.count++,t),this.percolate(e)},r.remove=function(t){for(var e=0;e<this.length;e++)if(this.items[e].value===t)return this.removeAt(e),!0;return!1},It.count=0,a.CompositeDisposable=function(){var t,e,n=[];if(Array.isArray(arguments[0]))n=arguments[0];else for(e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];this.disposables=n,this.isDisposed=!1,this.length=n.length}),r=w.prototype,Lt=(r.add=function(t){this.isDisposed?t.dispose():(this.disposables.push(t),this.length++)},r.remove=function(t){var e,n=!1;return this.isDisposed||-1!==(e=this.disposables.indexOf(t))&&(n=!0,this.disposables.splice(e,1),this.length--,t.dispose()),n},r.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var t=this.disposables.length,e=new Array(t),n=0;n<t;n++)e[n]=this.disposables[n];for(this.disposables=[],n=this.length=0;n<t;n++)e[n].dispose()}},a.Disposable=function(t){this.isDisposed=!1,this.action=t||g}),Ht=(Lt.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)},Lt.create=function(t){return new Lt(t)}),d=Lt.empty={dispose:g},Ft=Lt.isDisposable=function(t){return t&&v(t.dispose)},p=Lt.checkDisposed=function(t){if(t.isDisposed)throw new it},zt=Lt._fixup=function(t){return Ft(t)?t:d},x=a.SingleAssignmentDisposable=function(){this.isDisposed=!1,this.current=null},C=(x.prototype.getDisposable=function(){return this.current},x.prototype.setDisposable=function(t){if(this.current)throw new Error("Disposable has already been assigned");var e=this.isDisposed;e||(this.current=t),e&&t&&t.dispose()},x.prototype.dispose=function(){var t;this.isDisposed||(this.isDisposed=!0,t=this.current,this.current=null,t&&t.dispose())},a.SerialDisposable=function(){this.isDisposed=!1,this.current=null}),k=(C.prototype.getDisposable=function(){return this.current},C.prototype.setDisposable=function(t){var e,n=this.isDisposed;n||(e=this.current,this.current=t),e&&e.dispose(),n&&t&&t.dispose()},C.prototype.dispose=function(){var t;this.isDisposed||(this.isDisposed=!0,t=this.current,this.current=null),t&&t.dispose()},a.BinaryDisposable=function(t,e){this._first=t,this._second=e,this.isDisposed=!1}),Vt=(k.prototype.dispose=function(){var t;this.isDisposed||(this.isDisposed=!0,t=this._first,this._first=null,t&&t.dispose(),t=this._second,this._second=null,t&&t.dispose())},a.NAryDisposable=function(t){this._disposables=t,this.isDisposed=!1}),jt=(Vt.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var t=0,e=this._disposables.length;t<e;t++)this._disposables[t].dispose();this._disposables.length=0}},a.RefCountDisposable=(Wt.prototype.dispose=function(){this.disposable.isDisposed||this.isInnerDisposed||(this.isInnerDisposed=!0,this.disposable.count--,0===this.disposable.count&&this.disposable.isPrimaryDisposed&&(this.disposable.isDisposed=!0,this.disposable.underlyingDisposable.dispose()))},Bt.prototype.dispose=function(){this.isDisposed||this.isPrimaryDisposed||(this.isPrimaryDisposed=!0,0===this.count&&(this.isDisposed=!0,this.underlyingDisposable.dispose()))},Bt.prototype.getDisposable=function(){return this.isDisposed?d:new Wt(this)},Bt));function Wt(t){this.disposable=t,this.disposable.count++,this.isInnerDisposed=!1}function Bt(t){this.underlyingDisposable=t,this.isDisposed=!1,this.isPrimaryDisposed=!1,this.count=0}function qt(t,e){this.scheduler=t,this.disposable=e,this.isDisposed=!1}function Ut(t,e){e.isDisposed||(e.isDisposed=!0,e.disposable.dispose())}qt.prototype.dispose=function(){this.scheduler.schedule(this,Ut)};var Yt=a.internals.ScheduledItem=function(t,e,n,i,r){this.scheduler=t,this.state=e,this.action=n,this.dueTime=i,this.comparer=r||j,this.disposable=new x},r=(Yt.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},Yt.prototype.compareTo=function(t){return this.comparer(this.dueTime,t.dueTime)},Yt.prototype.isCancelled=function(){return this.disposable.isDisposed},Yt.prototype.invokeCore=function(){return zt(this.action(this.scheduler,this.state))}
1,a.Scheduler=(Gt.isScheduler=function(t){return t instanceof Gt},(r=Gt.prototype).schedule=function(t,e){throw new st},r.scheduleFuture=function(t,e,n){return e instanceof Date&&(e-=this.now()),0===(e=Gt.normalize(e))?this.schedule(t,n):this._scheduleFuture(t,e,n)},r._scheduleFuture=function(t,e,n){throw new st},Gt.now=i,Gt.prototype.now=i,Gt.normalize=function(t){return t=t<0?0:t},Gt));function Gt(){}var Kt=r.normalize,$=r.isScheduler;function Xt(s,t){var e=t[0],a=t[1],l=new w;return a(e,function n(t){var i=!1,r=!1;var o=s.schedule(t,e);r||(l.add(o),i=!0);function e(t,e){return i?l.remove(o):r=!0,a(e,n),d}}),l}function Zt(a,t){var e=t[0],l=t[1],u=new w;return l(e,function n(t,e){var i=!1,r=!1;var o=a.scheduleFuture(t,e,s);r||(u.add(o),i=!0);function s(t,e){return i?u.remove(o):r=!0,l(e,n),d}}),u}(i=r.prototype).scheduleRecursive=function(t,e){return this.schedule([t,e],Xt)},i.scheduleRecursiveFuture=function(t,e,n){return this.scheduleFuture([t,n],e,Zt)},r.prototype.schedulePeriodic=function(t,e,n){if(void 0===l.setInterval)throw new ot;e=Kt(e);var i=t,r=l.setInterval(function(){i=n(i)},e);return Ht(function(){l.clearInterval(r)})},(i=r.prototype).catchError=i.catch=function(t){return new Ce(this,t)};var Qt=a.internals.SchedulePeriodicRecursive=(Jt.prototype.start=function(){var n,t=new x;return(this._cancel=t).setDisposable(this._scheduler.scheduleRecursiveFuture(0,this._period,(n=this,function(t,e){e(0,n._period);e=b(n._action)(n._state);e===y&&(n._cancel.dispose(),s(e.e)),n._state=e}))),t},Jt);function Jt(t,e,n,i){this._scheduler=t,this._state=e,this._period=n,this._action=i}h(ee,te=r),ee.prototype.schedule=function(t,e){return zt(e(this,t))};var te,i=ee;function ee(){te.call(this)}var ne,ie,o=r.immediate=new i,i=(h(oe,ne=r),oe.prototype.schedule=function(t,e){t=new Yt(this,t,e,this.now());return ie?ie.enqueue(t):((ie=new It(4)).enqueue(t),e=b(re)(),ie=null,e===y&&s(e.e)),t.disposable},oe.prototype.scheduleRequired=function(){return!ie},oe);function re(){for(;0<ie.length;){var t=ie.dequeue();t.isCancelled()||t.invoke()}}function oe(){ne.call(this)}var se,ae,le,ue,ce,he,de,pe,S=r.currentThread=new i,i=function(){var t,e=g;if(l.setTimeout)t=l.setTimeout,e=l.clearTimeout;else{if(!l.WScript)throw new ot;t=function(t,e){l.WScript.Sleep(e),t()}}return{setTimeout:t,clearTimeout:e}}(),fe=i.setTimeout,me=i.clearTimeout;function ge(t){var e;ce?fe(function(){ge(t)},0):(e=ue[t])&&(ce=!0,e=b(e)(),ae(t),ce=!1,e===y)&&s(e.e)}le=1,ce=!(ue={}),ae=function(t){delete ue[t]},i=new RegExp("^"+String(toString).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),pe="function"==typeof(pe=e&&F&&e.setImmediate)&&!i.test(pe)&&pe,se=v(pe)?function(t){var e=le++;return ue[e]=t,pe(function(){ge(e)}),e}:"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?function(t){var e=le++;return ue[e]=t,process.nextTick(function(){ge(e)}),e}:function(){var t,e;if(l.postMessage&&!l.importScripts)return t=!1,e=l.onmessage,l.onmessage=function(){t=!0},l.postMessage("","*"),l.onmessage=e,t}()?(he="ms.rx.schedule"+Math.random(),l.addEventListener("message",function(t){"string"==typeof t.data&&t.data.substring(0,he.length)===he&&ge(t.data.substring(he.length))},!1),function(t){var e=le++;return ue[e]=t,l.postMessage(he+e,"*"),e}):l.MessageChannel?((de=new l.MessageChannel).port1.onmessage=function(t){ge(t.data)},function(t){var e=le++;return ue[e]=t,de.port2.postMessage(e),e}):"document"in l&&"onreadystatechange"in l.document.createElement("script")?function(t){var e=l.document.createElement("script"),n=le++;return ue[n]=t,e.onreadystatechange=function(){ge(n),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},l.document.documentElement.appendChild(e),n}:function(t){var e=le++;return ue[e]=t,fe(function(){ge(e)},0),e};h(ye,ve=r),_e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,ae(this._id))},we.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,me(this._id))},ye.prototype.schedule=function(t,e){var n=new x,e=se(be(n,e,this,t));return new k(n,new _e(e))},ye.prototype._scheduleFuture=function(t,e,n){var i;return 0===e?this.schedule(t,n):(i=new x,n=fe(be(i,n,this,t),e),new k(i,new we(n)))},ye.prototype.scheduleLongRunning=function(t,e){var n,i,r,o=Ht(g);return se((n=t,i=e,r=o,function(){i(n,r)})),o};var ve,e=ye;function ye(){ve.call(this)}function be(t,e,n,i){return function(){t.setDisposable(Lt._fixup(e(n,i)))}}function _e(t){this._id=t,this.isDisposed=!1}function we(t){this._id=t,this.isDisposed=!1}var xe,E=r.default=r.async=new e,Ce=(h(ke,xe=r),ke.prototype.schedule=function(t,e){return this._scheduler.schedule(t,this._wrap(e))},ke.prototype._scheduleFuture=function(t,e,n){return this._scheduler.schedule(t,e,this._wrap(n))},ke.prototype.now=function(){return this._scheduler.now()},ke.prototype._clone=function(t){return new ke(t,this._handler)},ke.prototype._wrap=function(n){var i=this;return function(t,e){t=b(n)(i._getRecursiveWrapper(t),e);return t===y?(i._handler(t.e)||s(t.e),d):zt(t)}},ke.prototype._getRecursiveWrapper=function(t){var e;return this._recursiveOriginal!==t&&(this._recursiveOriginal=t,(e=this._clone(t))._recursiveOriginal=t,e._recursiveWrapper=e,this._recursiveWrapper=e),this._recursiveWrapper},ke.prototype.schedulePeriodic=function(t,e,n){var i=this,r=!1,o=new x;return o.setDisposable(this._scheduler.schedulePeriodic(t,e,function(t){return r?null:(t=b(n)(t))===y?(r=!0,i._handler(t.e)||s(t.e),o.dispose(),null):t})),o},ke);
1function ke(t,e){this._scheduler=t,this._handler=e,this._recursiveOriginal=null,this._recursiveWrapper=null,xe.call(this)}var T=a.Notification=($e.prototype._accept=function(t,e,n){throw new st},$e.prototype._acceptObserver=function(t,e,n){throw new st},$e.prototype.accept=function(t,e,n){return t&&"object"==typeof t?this._acceptObserver(t):this._accept(t,e,n)},$e.prototype.toObservable=function(t){var e=this;return $(t)||(t=o),new P(function(n){return t.schedule(e,function(t,e){e._acceptObserver(n),"N"===e.kind&&n.onCompleted()})})},$e);function $e(){}h(Ee,T),Ee.prototype._accept=function(t){return t(this.value)},Ee.prototype._acceptObserver=function(t){return t.onNext(this.value)},Ee.prototype.toString=function(){return"OnNext("+this.value+")"};var Se=Ee;function Ee(t){this.value=t,this.kind="N"}h(De,T),De.prototype._accept=function(t,e){return e(this.error)},De.prototype._acceptObserver=function(t){return t.onError(this.error)},De.prototype.toString=function(){return"OnError("+this.error+")"};var Te=De;function De(t){this.error=t,this.kind="E"}h(Ae,T),Ae.prototype._accept=function(t,e,n){return n()},Ae.prototype._acceptObserver=function(t){return t.onCompleted()},Ae.prototype.toString=function(){return"OnCompleted()"};var Me=Ae;function Ae(){this.kind="C"}var Oe=T.createOnNext=function(t){return new Se(t)},Ne=T.createOnError=function(t){return new Te(t)},Pe=T.createOnCompleted=function(){return new Me},i=a.Observer=function(){},Re=(i.prototype.toNotifier=function(){var e=this;return function(t){return t.accept(e)}},i.prototype.asObserver=function(){var e=this;return new He(function(t){e.onNext(t)},function(t){e.onError(t)},function(){e.onCompleted()})},i.prototype.checked=function(){return new Ve(this)},i.create=function(t,e,n){return new He(t=t||g,e=e||W,n=n||g)}),D=(i.fromNotifier=function(t,e){var n=c(t,e,1);return new He(function(t){return n(Oe(t))},function(t){return n(Ne(t))},function(){return n(Pe())})},i.prototype.notifyOn=function(t){return new Ge(t,this)},i.prototype.makeSafe=function(t){return new AnonymousSafeObserver(this._onNext,this._onError,this._onCompleted,t)},a.internals.AbstractObserver=(h(Ie,i),Ie.prototype.next=n,Ie.prototype.error=n,Ie.prototype.completed=n,Ie.prototype.onNext=function(t){this.isStopped||this.next(t)},Ie.prototype.onError=function(t){this.isStopped||(this.isStopped=!0,this.error(t))},Ie.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.completed())},Ie.prototype.dispose=function(){this.isStopped=!0},Ie.prototype.fail=function(t){return!this.isStopped&&(this.isStopped=!0,this.error(t),!0)},Ie));function Ie(){this.isStopped=!1}var Le,He=a.AnonymousObserver=(h(Fe,Le=D),Fe.prototype.next=function(t){this._onNext(t)},Fe.prototype.error=function(t){this._onError(t)},Fe.prototype.completed=function(){this._onCompleted()},Fe);function Fe(t,e,n){Le.call(this),this._onNext=t,this._onError=e,this._onCompleted=n}h(je,ze=i),(e=je.prototype).onNext=function(t){this.checkAccess();t=b(this._observer.onNext).call(this._observer,t);this._state=0,t===y&&s(t.e)},e.onError=function(t){this.checkAccess();t=b(this._observer.onError).call(this._observer,t);this._state=2,t===y&&s(t.e)},e.onCompleted=function(){this.checkAccess();var t=b(this._observer.onCompleted).call(this._observer);this._state=2,t===y&&s(t.e)},e.checkAccess=function(){if(1===this._state)throw new Error("Re-entrancy detected");if(2===this._state)throw new Error("Observer completed");0===this._state&&(this._state=1)};var ze,Ve=je;function je(t){ze.call(this),this._observer=t,this._state=0}var We,Be=a.internals.ScheduledObserver=(h(qe,We=D),qe.prototype.next=function(t){var e,n;this.queue.push((e=this.observer,n=t,function(){e.onNext(n)}))},qe.prototype.error=function(t){var e,n;this.queue.push((e=this.observer,n=t,function(){e.onError(n)}))},qe.prototype.completed=function(){var t;this.queue.push((t=this.observer,function(){t.onCompleted()}))},qe.prototype.ensureActive=function(){var t=!1;!this.hasFaulted&&0<this.queue.length&&(t=!this.isAcquired,this.isAcquired=!0),t&&this.disposable.setDisposable(this.scheduler.scheduleRecursive(this,Ue))},qe.prototype.dispose=function(){We.prototype.dispose.call(this),this.disposable.dispose()},qe);
1function qe(t,e){We.call(this),this.scheduler=t,this.observer=e,this.isAcquired=!1,this.hasFaulted=!1,this.queue=[],this.disposable=new C}function Ue(t,e){if(0<t.queue.length){var n=t.queue.shift(),n=b(n)();if(n===y)return t.queue=[],t.hasFaulted=!0,s(n.e);e(t)}else t.isAcquired=!1}h(Ke,Ye=Be),Ke.prototype.next=function(t){Ye.prototype.next.call(this,t),this.ensureActive()},Ke.prototype.error=function(t){Ye.prototype.error.call(this,t),this.ensureActive()},Ke.prototype.completed=function(){Ye.prototype.completed.call(this),this.ensureActive()},Ke.prototype.dispose=function(){Ye.prototype.dispose.call(this),this._cancel&&this._cancel.dispose(),this._cancel=null};var Ye,Ge=Ke;function Ke(t,e,n){Ye.call(this,t,e),this._cancel=n}var M=a.Observable=(e=Xe.prototype,Xe.isObservable=function(t){return t&&v(t.subscribe)},e.subscribe=e.forEach=function(t,e,n){return this._subscribe("object"==typeof t?t:Re(t,e,n))},e.subscribeOnNext=function(e,n){return this._subscribe(Re(void 0!==n?function(t){e.call(n,t)}:e))},e.subscribeOnError=function(e,n){return this._subscribe(Re(null,void 0!==n?function(t){e.call(n,t)}:e))},e.subscribeOnCompleted=function(t,e){return this._subscribe(Re(null,null,void 0!==e?function(){t.call(e)}:t))},Xe);function Xe(){var t,e,i,r;a.config.longStackSupport&&U&&(t=this._subscribe,e=b(s)(new Error).e,this.stack=e.stack.substring(e.stack.indexOf("\n")+1),this._subscribe=(i=this,r=t,function(e){var n=e.onError;return e.onError=function(t){K(t,i),n.call(e,t)},r.call(i,e)}))}var Ze,A=a.ObservableBase=(h(Je,Ze=M),Je.prototype._subscribe=function(t){var t=new Jd(t),e=[t,this];return S.scheduleRequired()?S.schedule(e,Qe):Qe(0,e),t},Je.prototype.subscribeCore=n,Je);function Qe(t,e){var n=e[0],e=e[1],e=b(e.subscribeCore).call(e,n);e!==y||n.fail(y.e)||s(y.e),n.setDisposable((n=e)&&v(n.dispose)?n:v(n)?Ht(n):d)}function Je(){Ze.call(this)}var tn,en=a.FlatMapObservable=(h(nn,tn=A),nn.prototype.subscribeCore=function(t){return this.source.subscribe(new rn(t,this.selector,this.resultSelector,this))},h(rn,D),rn.prototype._wrapResult=function(t,n,i){return this.resultSelector?t.map(function(t,e){return this.resultSelector(n,t,i,e)},this):t},rn.prototype.next=function(t){var e=this.i++,n=b(this.selector)(t,e,this.source);if(n===y)return this.o.onError(n.e);f(n)&&(n=N(n)),(ut(n)||lt(n))&&(n=M.from(n)),this.o.onNext(this._wrapResult(n,t,e))},rn.prototype.error=function(t){this.o.onError(t)},rn.prototype.completed=function(){this.o.onCompleted()},nn);function nn(t,e,n,i){this.resultSelector=v(n)?n:null,this.selector=c(v(e)?e:function(){return e},i,3),this.source=t,tn.call(this)}function rn(t,e,n,i){this.i=0,this.selector=e,this.resultSelector=n,this.source=i,this.o=t,D.call(this)}var O=a.internals.Enumerable=function(){};function on(t){this._s=t,this.isDisposed=!1}on.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.isDisposed=!0)};h(ln,sn=A),ln.prototype.subscribeCore=function(t){var e=new C,t={isDisposed:!1,o:t,subscription:e,e:this.sources[u]()},n=S.scheduleRecursive(t,un);return new Vt([e,n,new on(t)])},h(cn,D),cn.prototype.next=function(t){this._state.o.onNext(t)},cn.prototype.error=function(t){this._state.o.onError(t)},cn.prototype.completed=function(){this._recurse(this._state)};var sn,an=ln;function ln(t){this.sources=t,sn.call(this)}function un(t,e){var n,i;if(!t.isDisposed)return(n=b(t.e.next).call(t.e))===y?t.o.onError(n.e):n.done?t.o.onCompleted():(n=n.value,f(n)&&(n=N(n)),i=new x,t.subscription.setDisposable(i),void i.setDisposable(n.subscribe(new cn(t,e))))}function cn(t,e){this._state=t,this._recurse=e,D.call(this)}O.prototype.concat=function(){return new an(this)};h(pn,hn=A),pn.prototype.subscribeCore=function(t){var e=new C,t={isDisposed:!1,e:this.sources[u](),subscription:e,lastError:null,o:t},n=S.scheduleRecursive(t,fn);return new Vt([e,n,new on(t)])},h(mn,D),mn.prototype.next=function(t){this._state.o.onNext(t)},mn.prototype.error=function(t){this._state.lastError=t,this._recurse(this._state)},mn.prototype.completed=function(){this._state.o.onCompleted()};var hn,dn=pn;
1function pn(t){this.sources=t,hn.call(this)}function fn(t,e){var n,i;if(!t.isDisposed)return(n=b(t.e.next).call(t.e))===y?t.o.onError(n.e):n.done?null!==t.lastError?t.o.onError(t.lastError):t.o.onCompleted():(n=n.value,f(n)&&(n=N(n)),i=new x,t.subscription.setDisposable(i),void i.setDisposable(n.subscribe(new mn(t,e))))}function mn(t,e){this._state=t,this._recurse=e,D.call(this)}O.prototype.catchError=function(){return new dn(this)};h(vn,O),vn.prototype[u]=function(){return new yn(this)},yn.prototype.next=function(){return 0===this.l?at:(0<this.l&&this.l--,{done:!1,value:this.v})};var gn=vn;function vn(t,e){this.v=t,this.c=null==e?-1:e}function yn(t){this.v=t.v,this.l=t.c}var bn=O.repeat=function(t,e){return new gn(t,e)},_n=(h(wn,O),wn.prototype[u]=function(){return new xn(this)},xn.prototype.next=function(){return++this.i<this.l?{done:!1,value:this.fn?this.fn(this.s[this.i],this.i,this.s):this.s[this.i]}:at},wn);function wn(t,e,n){this.s=t,this.fn=e?c(e,n,3):null}function xn(t){this.i=-1,this.s=t.s,this.l=this.s.length,this.fn=t.fn}var Cn,kn=O.of=function(t,e,n){return new _n(t,e,n)},$n=(h(Sn,Cn=A),Sn.prototype.subscribeCore=function(t){return this.source.subscribe(new Ge(this._s,t))},Sn);function Sn(t,e){this.source=t,this._s=e,Cn.call(this)}e.observeOn=function(t){return new $n(this,t)};h(Dn,En=A),Dn.prototype.subscribeCore=function(t){var e=new x,n=new C;return n.setDisposable(e),e.setDisposable(this._s.schedule([this.source,n,t],Mn)),n};var En,Tn=Dn;function Dn(t,e){this.source=t,this._s=e,En.call(this)}function Mn(t,e){var n=e[0],i=e[1],e=e[2];i.setDisposable(new qt(t,n.subscribe(e)))}e.subscribeOn=function(t){return new Tn(this,t)};h(Nn,An=A),Nn.prototype.subscribeCore=function(e){var n=new x,i=this,t=this._p;return v(t)&&(t=b(t)())===y?e.onError(t.e):t.then(function(t){n.setDisposable(i._s.schedule([e,t],Pn))},function(t){n.setDisposable(i._s.schedule([e,t],Rn))}),n};var An,On=Nn;function Nn(t,e){this._p=t,this._s=e,An.call(this)}function Pn(t,e){var n=e[0],e=e[1];n.onNext(e),n.onCompleted()}function Rn(t,e){var n=e[0],e=e[1];n.onError(e)}var In,N=M.fromPromise=function(t,e){return new On(t,e=e||E)},Ln=(e.toPromise=function(t){var i;if(t=t||a.config.Promise)return i=this,new t(function(t,e){var n;i.subscribe(function(t){n=t},e,function(){t(n)})});throw new ot("Promise type not provided nor in Rx.config.Promise")},h(Hn,In=A),Hn.prototype.subscribeCore=function(t){return this.source.subscribe(new Fn(t))},h(Fn,D),Fn.prototype.next=function(t){this.a.push(t)},Fn.prototype.error=function(t){this.o.onError(t)},Fn.prototype.completed=function(){this.o.onNext(this.a),this.o.onCompleted()},Hn);function Hn(t){this.source=t,In.call(this)}function Fn(t){this.o=t,this.a=[],D.call(this)}e.toArray=function(){return new Ln(this)},M.create=function(t,e){return new P(t,e)};h(jn,zn=A),jn.prototype.subscribeCore=function(t){var e=b(this._f)();return(e===y?Hi(e.e):e=f(e)?N(e):e).subscribe(t)};var zn,Vn=jn;function jn(t){this._f=t,zn.call(this)}var Wn,Bn=M.defer=function(t){return new Vn(t)},qn=(h(Un,Wn=A),Un.prototype.subscribeCore=function(t){return new Yn(t,this.scheduler).run()},Yn.prototype.run=function(){var t=this.observer;return this.scheduler===o?Gn(0,t):this.scheduler.schedule(t,Gn)},Un);function Un(t){this.scheduler=t,Wn.call(this)}function Yn(t,e){this.observer=t,this.scheduler=e}function Gn(t,e){return e.onCompleted(),d}var Kn,Xn=new qn(o),Zn=M.empty=function(t){return(t=$(t)?t:o)===o?Xn:new qn(t)},Qn=(h(Jn,Kn=A),Jn.prototype.subscribeCore=function(t){var i,r,o,e=function(t){var e=t[u];if(!e&&"string"==typeof t)return new ei(t)[u]();if(!e&&t.length!==m)return new ii(t)[u]();if(e)return t[u]();throw new TypeError("Object is not iterable")}(Object(this._iterable));return this._scheduler.scheduleRecursive(0,(i=t,r=e,o=this._fn,function(t,e){var n=b(r.next).call(r);return n===y?i.onError(n.e):n.done?i.onCompleted():(n=n.value,v(o)&&(n=b(o)(n,t))===y?i.onError(n.e):(i.onNext(n),void e(t+1)))}))},Jn);function Jn(t,e,n){this._iterable=t,this._fn=e,this._scheduler=n,Kn.call(this)}var ti=Math.pow(2,53)-1;function ei(t){this._s=t}function ni(t){this._s=t,this._l=t.length,this._i=0}function ii(t){this._a=t}function ri(t){this._a=t,this._l=function(t){t=+t.length;if(isNaN(t))return 0;if(0!=t&&function(t){return"number"==typeof t&&l.isFinite(t)}
1(t)){if((t=function(t){t=+t;if(0==t)return t;if(isNaN(t))return t;return t<0?-1:1}(t)*Math.floor(Math.abs(t)))<=0)return 0;if(ti<t)return ti}return t}(t),this._i=0}ei.prototype[u]=function(){return new ni(this._s)},ni.prototype[u]=function(){return this},ni.prototype.next=function(){return this._i<this._l?{done:!1,value:this._s.charAt(this._i++)}:at},ii.prototype[u]=function(){return new ri(this._a)},ri.prototype[u]=function(){return this},ri.prototype.next=function(){return this._i<this._l?{done:!1,value:this._a[this._i++]}:at};var oi,si=M.from=function(t,e,n,i){if(null==t)throw new Error("iterable cannot be null.");if(e&&!v(e))throw new Error("mapFn when provided must be a function");var r;return e&&(r=c(e,n,2)),$(i)||(i=S),new Qn(t,r,i)},ai=(h(li,oi=A),li.prototype.subscribeCore=function(t){return this._scheduler.scheduleRecursive(0,(n=t,i=this._args,r=i.length,function(t,e){t<r?(n.onNext(i[t]),e(t+1)):n.onCompleted()}));var n,i,r},li);function li(t,e){this._args=t,this._scheduler=e,oi.call(this)}var ui,ci,hi=M.fromArray=function(t,e){return $(e)||(e=S),new ai(t,e)},di=(h(pi,ui=A),pi.prototype.subscribeCore=function(t){t={o:t,self:this,first:!0,newState:this._initialState};return this._s.scheduleRecursive(t,fi)},pi);function pi(t,e,n,i,r){this._initialState=t,this._cndFn=e,this._itrFn=n,this._resFn=i,this._s=r,ui.call(this)}function fi(t,e){if(t.first)t.first=!1;else if(t.newState=b(t.self._itrFn)(t.newState),t.newState===y)return t.o.onError(t.newState.e);var n=b(t.self._cndFn)(t.newState);if(n===y)return t.o.onError(n.e);if(n){n=b(t.self._resFn)(t.newState);if(n===y)return t.o.onError(n.e);t.o.onNext(n),e(t)}else t.o.onCompleted()}function mi(t,e){return $(t)||(t=S),new ai(e,t)}function gi(){ci.call(this)}M.generate=function(t,e,n,i,r){return $(r)||(r=S),new di(t,e,n,i,r)},M.of=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new ai(e,S)},M.ofWithScheduler=function(t){for(var e=arguments.length,n=new Array(e-1),i=1;i<e;i++)n[i-1]=arguments[i];return new ai(n,t)},M.ofArrayChanges=function(e){if(!Array.isArray(e))throw new TypeError("Array.observe only accepts arrays.");if("function"!=typeof Array.observe&&"function"!=typeof Array.unobserve)throw new TypeError("Array.observe is not supported on your platform");return new P(function(i){function t(t){for(var e=0,n=t.length;e<n;e++)i.onNext(t[e])}return Array.observe(e,t),function(){Array.unobserve(e,t)}})},M.ofObjectChanges=function(e){if(null==e)throw new TypeError("object must not be null or undefined.");if("function"!=typeof Object.observe&&"function"!=typeof Object.unobserve)throw new TypeError("Object.observe is not supported on your platform");return new P(function(i){function t(t){for(var e=0,n=t.length;e<n;e++)i.onNext(t[e])}return Object.observe(e,t),function(){Object.unobserve(e,t)}})},h(gi,ci=A),gi.prototype.subscribeCore=function(t){return d};var vi,yi=new gi,bi=M.never=function(){return yi},_i=(h(wi,vi=A),wi.prototype.subscribeCore=function(t){return this._scheduler.scheduleRecursive(0,(i=t,r=this._o,o=this._keys,function(t,e){var n;t<o.length?(n=o[t],i.onNext([n,r[n]]),e(t+1)):i.onCompleted()}));var i,r,o},wi);function wi(t,e){this._o=t,this._keys=Object.keys(t),this._scheduler=e,vi.call(this)}M.pairs=function(t,e){return new _i(t,e=e||S)};h(ki,xi=A),ki.prototype.subscribeCore=function(t){return this.scheduler.scheduleRecursive(0,(n=this.start,i=this.rangeCount,r=t,function(t,e){t<i?(r.onNext(n+t),e(t+1)):r.onCompleted()}));var n,i,r};var xi,Ci=ki;function ki(t,e,n){this.start=t,this.rangeCount=e,this.scheduler=n,xi.call(this)}M.range=function(t,e,n){return $(n)||(n=S),new Ci(t,e,n)};h(Ei,$i=A),Ei.prototype.subscribeCore=function(t){return new Ti(t,this).run()};var $i,Si=Ei;function Ei(t,e,n){this.value=t,this.repeatCount=null==e?-1:e,this.scheduler=n,$i.call(this)}function Ti(t,e){this.observer=t,this.parent=e}Ti.prototype.run=function(){var n=this.observer,i=this.parent.value;return this.parent.scheduler.scheduleRecursive(this.parent.repeatCount,function(t,e){if((-1===t||0<t)&&(n.onNext(i),0<t)&&t--,0===t)return n.onCompleted();e(t)})},M.repeat=function(t,e,n){return $(n)||(n=S),new Si(t,e,n)};h(Ai,Di=A),Ai.prototype.subscribeCore=function(t){t=[this._value,t];
1return this._scheduler===o?Oi(0,t):this._scheduler.schedule(t,Oi)};var Di,Mi=Ai;function Ai(t,e){this._value=t,this._scheduler=e,Di.call(this)}function Oi(t,e){var n=e[0],e=e[1];return e.onNext(n),e.onCompleted(),d}M.return=M.just=function(t,e){return $(e)||(e=o),new Mi(t,e)};h(Ri,Ni=A),Ri.prototype.subscribeCore=function(t){t=[this._error,t];return this._scheduler===o?Ii(0,t):this._scheduler.schedule(t,Ii)};var Ni,Pi=Ri;function Ri(t,e){this._error=t,this._scheduler=e,Ni.call(this)}function Ii(t,e){var n=e[0];return e[1].onError(n),d}var Li,Hi=M.throw=function(t,e){return $(e)||(e=o),new Pi(t,e)},Fi=(h(zi,Li=A),zi.prototype.subscribeCore=function(t){var e=d,n=b(this._resFn)();if(n===y)return new k(Hi(n.e).subscribe(t),e);n&&(e=n);n=b(this._obsFn)(n);return new k((n===y?Hi(n.e):n).subscribe(t),e)},zi);function zi(t,e){this._resFn=t,this._obsFn=e,Li.call(this)}M.using=function(t,e){return new Fi(t,e)},e.amb=function(l){var u=this;return new P(function(e){var n,t=new x,i=new x;function r(){n||(n="L",i.dispose())}function o(){n||(n="R",t.dispose())}f(l)&&(l=N(l));var s=Re(function(t){r(),"L"===n&&e.onNext(t)},function(t){r(),"L"===n&&e.onError(t)},function(){r(),"L"===n&&e.onCompleted()}),a=Re(function(t){o(),"R"===n&&e.onNext(t)},function(t){o(),"R"===n&&e.onError(t)},function(){o(),"R"===n&&e.onCompleted()});return t.setDisposable(u.subscribe(s)),i.setDisposable(l.subscribe(a)),new k(t,i)})},M.amb=function(){var t=bi();if(Array.isArray(arguments[0]))n=arguments[0];else for(var e=arguments.length,n=new Array(n),i=0;i<e;i++)n[i]=arguments[i];for(var r,o,i=0,e=n.length;i<e;i++)r=t,o=n[i],t=r.amb(o);return t};h(Wi,Vi=A),Wi.prototype.subscribeCore=function(t){var e=new x,n=new C;return n.setDisposable(e),e.setDisposable(this.source.subscribe(new qi(t,n,this._fn))),n};var Vi,ji=Wi;function Wi(t,e){this.source=t,this._fn=e,Vi.call(this)}h(Ui,Bi=D),Ui.prototype.next=function(t){this._o.onNext(t)},Ui.prototype.completed=function(){return this._o.onCompleted()},Ui.prototype.error=function(t){t=b(this._fn)(t);if(t===y)return this._o.onError(t.e);f(t)&&(t=N(t));var e=new x;this._s.setDisposable(e),e.setDisposable(t.subscribe(this._o))};var Bi,qi=Ui;function Ui(t,e,n){this._o=t,this._s=e,this._fn=n,Bi.call(this)}e.catch=function(t){return v(t)?new ji(this,t):Yi([this,t])};var Yi=M.catch=function(){if(Array.isArray(arguments[0]))e=arguments[0];else for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return kn(e).catchError()};function Gi(){return!1}function Ki(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}e.combineLatest=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(Array.isArray(e[0])?e[0]:e).unshift(this),ir.apply(this,e)};h(Qi,Xi=A),Qi.prototype.subscribeCore=function(t){for(var e=this._params.length,n=new Array(e),i={hasValue:Pt(e,Gi),hasValueAll:!1,isDone:Pt(e,Gi),values:new Array(e)},r=0;r<e;r++){var o=this._params[r],s=new x;n[r]=s,f(o)&&(o=N(o)),s.setDisposable(o.subscribe(new tr(t,r,this._cb,i)))}return new Vt(n)};var Xi,Zi=Qi;function Qi(t,e){this._params=t,this._cb=e,Xi.call(this)}h(er,Ji=D),er.prototype.next=function(t){if(this._state.values[this._i]=t,this._state.hasValue[this._i]=!0,this._state.hasValueAll||(this._state.hasValueAll=this._state.hasValue.every(z))){t=b(this._cb).apply(null,this._state.values);if(t===y)return this._o.onError(t.e);this._o.onNext(t)}else this._state.isDone.filter((n=this._i,function(t,e){return e!==n})).every(z)&&this._o.onCompleted();var n},er.prototype.error=function(t){this._o.onError(t)},er.prototype.completed=function(){this._state.isDone[this._i]=!0,this._state.isDone.every(z)&&this._o.onCompleted()};var Ji,tr=er;function er(t,e,n,i){this._o=t,this._i=e,this._cb=n,this._state=i,Ji.call(this)}var nr,ir=M.combineLatest=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=v(e[t-1])?e.pop():Ki;return Array.isArray(e[0])&&(e=e[0]),new Zi(e,i)},rr=(e.concat=function(){for(var t=[],e=0,n=arguments.length;e<n;e++)t.push(arguments[e]);return t.unshift(this),hr.apply(null,t)},h(or,nr=D),or.prototype.next=function(t){this._s.o.onNext(t)},or.prototype.error=function(t){this._s.o.onError(t)},or.prototype.completed=function(){this._s.i++,this._fn(this._s)},or);function or(t,e){this._s=t,this._fn=e,nr.call(this)}h(lr,sr=A),lr.prototype.subscribeCore=function(t){var e=new C,n=Ht(g),t={o:t,i:0,subscription:e,disposable:n,sources:this._sources},t=o.scheduleRecursive(t,ur);return new Vt([e,n,t])};var sr,ar=lr;function lr(t){this._sources=t,sr.call(this)}function ur(t,e){if(!t.disposable.isDisposed){if(t.i===t.sources.length)return t.o.onCompleted();var n=t.sources[t.i],i=(f(n)&&(n=N(n)),new x);t.subscription.setDisposable(i),i.setDisposable(n.subscribe(new rr(t,e)))}}var cr,hr=M.concat=function(){if(Array.isArray(arguments[0]))t=arguments[0];else for(var t=new Array(arguments.length),e=0,n=arguments.length;e<n;e++)t[e]=arguments[e];return new ar(t)}
1,dr=(e.concatAll=function(){return this.merge(1)},h(pr,cr=A),pr.prototype.subscribeCore=function(t){var e=new w;return e.add(this.source.subscribe(new mr(t,this.maxConcurrent,e))),e},pr);function pr(t,e){this.source=t,this.maxConcurrent=e,cr.call(this)}h(gr,fr=D),gr.prototype.handleSubscribe=function(t){var e=new x;this.g.add(e),f(t)&&(t=N(t)),e.setDisposable(t.subscribe(new vr(this,e)))},gr.prototype.next=function(t){this.activeCount<this.max?(this.activeCount++,this.handleSubscribe(t)):this.q.push(t)},gr.prototype.error=function(t){this.o.onError(t)},gr.prototype.completed=function(){this.done=!0,0===this.activeCount&&this.o.onCompleted()},h(vr,fr),vr.prototype.next=function(t){this.parent.o.onNext(t)},vr.prototype.error=function(t){this.parent.o.onError(t)},vr.prototype.completed=function(){this.parent.g.remove(this.sad),0<this.parent.q.length?this.parent.handleSubscribe(this.parent.q.shift()):(this.parent.activeCount--,this.parent.done&&0===this.parent.activeCount&&this.parent.o.onCompleted())};var fr,mr=gr;function gr(t,e,n){this.o=t,this.max=e,this.g=n,this.done=!1,this.q=[],this.activeCount=0,fr.call(this)}function vr(t,e){this.parent=t,this.sad=e,fr.call(this)}e.merge=function(t){return"number"!=typeof t?br(this,t):new dr(this,t)};var yr,br=M.merge=function(){var t,e,n=[],i=arguments.length;if(arguments[0])if($(arguments[0]))for(t=arguments[0],e=1;e<i;e++)n.push(arguments[e]);else for(t=o,e=0;e<i;e++)n.push(arguments[e]);else for(t=o,e=1;e<i;e++)n.push(arguments[e]);return mi(t,n=Array.isArray(n[0])?n[0]:n).mergeAll()},_r=(h(wr,yr=A),wr.prototype.subscribeCore=function(t){var e=new w,n=new x;return e.add(n),n.setDisposable(this.source.subscribe(new Cr(t,e))),e},wr);function wr(t){this.source=t,yr.call(this)}h(kr,xr=D),kr.prototype.next=function(t){var e=new x;this.g.add(e),f(t)&&(t=N(t)),e.setDisposable(t.subscribe(new $r(this,e)))},kr.prototype.error=function(t){this.o.onError(t)},kr.prototype.completed=function(){this.done=!0,1===this.g.length&&this.o.onCompleted()},h($r,xr),$r.prototype.next=function(t){this.parent.o.onNext(t)},$r.prototype.error=function(t){this.parent.o.onError(t)},$r.prototype.completed=function(){this.parent.g.remove(this.sad),this.parent.done&&1===this.parent.g.length&&this.parent.o.onCompleted()};var xr,Cr=kr;function kr(t,e){this.o=t,this.g=e,this.done=!1,xr.call(this)}function $r(t,e){this.parent=t,this.sad=e,xr.call(this)}e.mergeAll=function(){return new _r(this)};var Sr,Er=a.CompositeError=function(t){this.innerErrors=t,this.message="This contains multiple errors. Check the innerErrors",Error.call(this)},Tr=((Er.prototype=Object.create(Error.prototype)).name="CompositeError",h(Dr,Sr=A),Dr.prototype.subscribeCore=function(t){var e=new w,n=new x,t={isStopped:!1,errors:[],o:t};return e.add(n),n.setDisposable(this.source.subscribe(new Ar(e,t))),e},Dr);function Dr(t){this.source=t,Sr.call(this)}h(Or,Mr=D),Or.prototype.next=function(t){var e=new x;this._group.add(e),f(t)&&(t=N(t)),e.setDisposable(t.subscribe(new Pr(e,this._group,this._state)))},Or.prototype.error=function(t){this._state.errors.push(t),this._state.isStopped=!0,1===this._group.length&&Nr(this._state.o,this._state.errors)},Or.prototype.completed=function(){this._state.isStopped=!0,1===this._group.length&&Nr(this._state.o,this._state.errors)},h(Pr,Mr),Pr.prototype.next=function(t){this._state.o.onNext(t)},Pr.prototype.error=function(t){this._state.errors.push(t),this._group.remove(this._inner),this._state.isStopped&&1===this._group.length&&Nr(this._state.o,this._state.errors)},Pr.prototype.completed=function(){this._group.remove(this._inner),this._state.isStopped&&1===this._group.length&&Nr(this._state.o,this._state.errors)};var Mr,Ar=Or;function Or(t,e){this._group=t,this._state=e,Mr.call(this)}function Nr(t,e){0===e.length?t.onCompleted():1===e.length?t.onError(e[0]):t.onError(new Er(e))}function Pr(t,e,n){this._inner=t,this._group=e,this._state=n,Mr.call(this)}M.mergeDelayError=function(){if(Array.isArray(arguments[0]))e=arguments[0];else for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=mi(null,e);return new Tr(i)},e.onErrorResumeNext=function(t){if(t)return Wr([this,t]);throw new Error("Second observable is required")};h(Lr,Rr=A),Lr.prototype.subscribeCore=function(t){var e=new C,t={pos:0,subscription:e,o:t,sources:this.sources},t=o.scheduleRecursive(t,Hr);return new k(e,t)};var Rr,Ir=Lr;function Lr(t){this.sources=t,Rr.call(this)}function Hr(t,e){var n,i;t.pos<t.sources.length?(n=t.sources[t.pos++],f(n)&&(n=N(n)),i=new x,t.subscription.setDisposable(i),i.setDisposable(n.subscribe(new zr(t,e)))):t.o.onCompleted()}h(Vr,Fr=D),Vr.prototype.next=function(t){this._state.o.onNext(t)},Vr.prototype.error=function(){this._recurse(this._state)},Vr.prototype.completed=function(){this._recurse(this._state)};var Fr,zr=Vr;function Vr(t,e){this._state=t,this._recurse=e,Fr.call(this)}var jr,Wr=M.onErrorResumeNext=function(){var t=[];if(Array.isArray(arguments[0]))t=arguments[0];else for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Ir(t)},Br=(h(qr,jr=A),qr.prototype.subscribeCore=function(t){var e=new x,n=(e.setDisposable(this._s.subscribe(new Yr(t,this))),f(this._o)&&(this._o=N(this._o)),new x);return n.setDisposable(this._o.subscribe(new Xr(t,this,n))),new k(e,n
1)},qr);function qr(t,e){this._s=t,this._o=f(e)?N(e):e,this._open=!1,jr.call(this)}h(Gr,Ur=D),Gr.prototype.next=function(t){this._p._open&&this._o.onNext(t)},Gr.prototype.error=function(t){this._o.onError(t)},Gr.prototype.onCompleted=function(){this._p._open&&this._o.onCompleted()};var Ur,Yr=Gr;function Gr(t,e){this._o=t,this._p=e,Ur.call(this)}h(Zr,Kr=D),Zr.prototype.next=function(){this._p._open=!0,this._r.dispose()},Zr.prototype.error=function(t){this._o.onError(t)},Zr.prototype.onCompleted=function(){this._r.dispose()};var Kr,Xr=Zr;function Zr(t,e,n){this._o=t,this._p=e,this._r=n,Kr.call(this)}e.skipUntil=function(t){return new Br(this,t)};h(to,Qr=A),to.prototype.subscribeCore=function(t){var e=new C,t=this.source.subscribe(new eo(t,e));return new k(t,e)},h(eo,D),eo.prototype.next=function(t){var e=new x,n=++this.latest;this.hasLatest=!0,this.inner.setDisposable(e),f(t)&&(t=N(t)),e.setDisposable(t.subscribe(new no(this,n)))},eo.prototype.error=function(t){this.o.onError(t)},eo.prototype.completed=function(){this.stopped=!0,this.hasLatest||this.o.onCompleted()},h(no,D),no.prototype.next=function(t){this.parent.latest===this.id&&this.parent.o.onNext(t)},no.prototype.error=function(t){this.parent.latest===this.id&&this.parent.o.onError(t)},no.prototype.completed=function(){this.parent.latest===this.id&&(this.parent.hasLatest=!1,this.parent.stopped)&&this.parent.o.onCompleted()};var Qr,Jr=to;function to(t){this.source=t,Qr.call(this)}function eo(t,e){this.o=t,this.inner=e,this.stopped=!1,this.latest=0,this.hasLatest=!1,D.call(this)}function no(t,e){this.parent=t,this.id=e,D.call(this)}e.switch=e.switchLatest=function(){return new Jr(this)};h(oo,io=A),oo.prototype.subscribeCore=function(t){return new k(this.source.subscribe(t),this.other.subscribe(new ao(t)))};var io,ro=oo;function oo(t,e){this.source=t,this.other=f(e)?N(e):e,io.call(this)}h(lo,so=D),lo.prototype.next=function(){this._o.onCompleted()},lo.prototype.error=function(t){this._o.onError(t)},lo.prototype.onCompleted=g;var so,ao=lo;function lo(t){this._o=t,so.call(this)}function Gi(){return!1}function Ki(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}e.takeUntil=function(t){return new ro(this,t)};h(ho,uo=A),ho.prototype.subscribeCore=function(t){for(var e=this._ss.length,n={hasValue:Pt(e,Gi),hasValueAll:!1,values:new Array(e)},i=this._ss.length,r=new Array(i+1),o=0;o<i;o++){var s=this._ss[o],a=new x;f(s)&&(s=N(s)),a.setDisposable(s.subscribe(new fo(t,o,n))),r[o]=a}e=new x;return e.setDisposable(this._s.subscribe(new vo(t,this._cb,n))),r[i]=e,new Vt(r)};var uo,co=ho;function ho(t,e,n){this._s=t,this._ss=e,this._cb=n,uo.call(this)}h(mo,po=D),mo.prototype.next=function(t){this._state.values[this._i]=t,this._state.hasValue[this._i]=!0,this._state.hasValueAll=this._state.hasValue.every(z)},mo.prototype.error=function(t){this._o.onError(t)},mo.prototype.completed=g;var po,fo=mo;function mo(t,e,n){this._o=t,this._i=e,this._state=n,po.call(this)}h(yo,go=D),yo.prototype.next=function(t){var t=[t].concat(this._state.values);if(this._state.hasValueAll)return(t=b(this._cb).apply(null,t))===y?this._o.onError(t.e):void this._o.onNext(t)},yo.prototype.error=function(t){this._o.onError(t)},yo.prototype.completed=function(){this._o.onCompleted()};var go,vo=yo;function yo(t,e,n){this._o=t,this._cb=e,this._state=n,go.call(this)}function Gi(){return!1}function bo(){return[]}e.withLatestFrom=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=v(e[t-1])?e.pop():Ki;return Array.isArray(e[0])&&(e=e[0]),new co(this,e,i)};h(xo,_o=A),xo.prototype.subscribeCore=function(t){for(var e=this._s.length,n=new Array(e),i=Pt(e,Gi),r=Pt(e,bo),o=0;o<e;o++){var s=this._s[o],a=new x;n[o]=a,f(s)&&(s=N(s)),a.setDisposable(s.subscribe(new ko(t,o,this,r,i)))}return new Vt(n)};var _o,wo=xo;function xo(t,e){this._s=t,this._cb=e,_o.call(this)}h($o,Co=D),$o.prototype.next=function(t){if(this._q[this._i].push(t),this._q.every(So)){t=this._q.map(Eo),t=b(this._p._cb).apply(null,t);if(t===y)return this._o.onError(t.e);this._o.onNext(t)}else this._d.filter((n=this._i,function(t,e){return e!==n})).every(z)&&this._o.onCompleted();var n},$o.prototype.error=function(t){this._o.onError(t)},$o.prototype.completed=function(){this._d[this._i]=!0,this._d.every(z)&&this._o.onCompleted()};var Co,ko=$o;function $o(t,e,n,i,r){this._o=t,this._i=e,this._p=n,this._q=i,this._d=r,Co.call(this)}function So(t){return 0<t.length}function Eo(t){return t.shift()}function Gi(){return!1}function bo(){return[]}function Ki(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}e.zip=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=v(e[t-1])?e.pop():Ki;return(e=Array.isArray(e[0])?e[0]:e).unshift(this),new wo(e,i)},M.zip=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=(e=Array.isArray(e[0])?v(e[1])?e[0].concat(e[1]):e[0]:e).shift();return i.zip.apply(i,e)};h(Mo,To=A),Mo.prototype.subscribeCore=function(t){for(var e,n,i,r=this.sources,o=r.length,s=new Array(o),a={q:Pt(o,bo),done:Pt(o,Gi),cb:this._cb,o:t},l=0;l<o;l++)i=n=void 0,n=r[e=l],i=new x,(ut(n)||lt(n))&&(n=si(n)),(s[e]=i).setDisposable(n.subscribe(new Oo(a,e)));return new Vt(s)};var To,Do=Mo;function Mo(t,e){this.sources=t,this._cb=e,To.call(this)}h(No,Ao=D),No.prototype.next=function(t){if(this._s.q[this._i].push(t),this._s.q.every(Po)){t=this._s.q.map(Ro),t=b(this._s.cb).apply(null,t);if(t===y)return this._s.o.onError(t.e);this._s.o.onNext(t)}else this._s.done.filter((n=this._i,function(t,e){return e!==n})).every(z)&&this._s.o.onCompleted();var n},No.prototype.error=function(t){this._s.o.onError(t)},No.prototype.completed=function(){this._s.done[this._i]=!0,this._s.done.every(z)&&this._s.o.onCompleted()};var Ao,Oo=No;function No(t,e){this._s=t,this._i=e,Ao.call(this)}function Po(t){return 0<t.length}function Ro(t){return t.shift()}function Io(t){return t.toArray()}function Lo(t){return 0<t.length}e.zipIterable=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=v(e[t-1])?e.pop():Ki;return e.unshift(this),new Do(e,i)},e.asObservable=function(){return new P(function(t){return e.subscribe(t)},e=this);var e},e.bufferWithCount=e.bufferCount=function(t,e){return this.windowWithCount(t,e="number"!=typeof e?t:e).flatMap(Io).filter(Lo)};h(zo,Ho=A),zo.prototype.subscribeCore=function(t){return this.source.subscribe(new jo(t))};var Ho,Fo=zo;function zo(t){this.source=t,Ho.call(this)}h(Wo,Vo=D),Wo.prototype.next=function(t){t.accept(this._o)},Wo.prototype.error=function(t){this._o.onError(t)},Wo.prototype.completed=function(){this._o.onCompleted()};var Vo,jo=Wo;function Wo(t){this._o=t,Vo.call(this)}e.dematerialize=function(){return new Fo(this)};h(Uo,Bo=A),Uo.prototype.subscribeCore=function(t){return this.source.subscribe(new Go(t,this.keyFn,this.comparer))};var Bo,qo=Uo;function Uo(t,e,n){this.source=t,this.keyFn=e,this.comparer=n,Bo.call(this)}h(Ko,Yo=D),Ko.prototype.next=function(t){var e,n=t;return v(this.keyFn)&&(n=b(this.keyFn)(t))===y?this.o.onError(n.e):this.hasCurrentKey&&(e=b(this.comparer)(this.currentKey,n))===y?this.o.onError(e.e):void(this.hasCurrentKey&&e||(this.hasCurrentKey=!0,this.currentKey=n,this.o.onNext(t)))},Ko.prototype.error=function(t){this.o.onError(t)},Ko.prototype.completed=function(){this.o.onCompleted()};var Yo,Go=Ko;function Ko(t,e,n){this.o=t,this.keyFn=e,this.comparer=n,this.hasCurrentKey=!1,this.currentKey=null,Yo.call(this)}e.distinctUntilChanged=function(t,e){return new qo(this,t,e=e||V)};h(Qo,Xo=A),Qo.prototype.subscribeCore=function(t){return this.source.subscribe(new Jo(t,this))},h(Jo,D),Jo.prototype.next=function(t){var e=b(this.t.onNext).call(this.t,t);e===y&&this.o.onError(e.e),this.o.onNext(t)},Jo.prototype.error=function(t){var e=b(this.t.onError).call(this.t,t);if(e===y)return this.o.onError(e.e);this.o.onError(t)},Jo.prototype.completed=function(){var t=b(this.t.onCompleted).call(this.t);if(t===y)return this.o.onError(t.e);this.o.onCompleted()};var Xo,Zo=Qo;function Qo(t,e,n,i){this.source=t,this._oN=e,this._oE=n,this._oC=i,Xo.call(this)}function Jo(t,e){this.o=t,this.t=!e._oN||v(e._oN)?Re(e._oN||g,e._oE||g,e._oC||g):e._oN,this.isStopped=!1,D.call(this)}e.do=e.tap=e.doAction=function(t,e,n){return new Zo(this,t,e,n)},e.doOnNext=e.tapOnNext=function(e,n){return this.tap(void 0!==n?function(t){e.call(n,t)}:e)},e.doOnError=e.tapOnError=function(e,n){return this.tap(g,void 0!==n?function(t){e.call(n,t)}:e)},e.doOnCompleted=e.tapOnCompleted=function(t,e){return this.tap(g,null,void 0!==e?function(){t.call(e)}:t)};h(ns,ts=A),ns.prototype.subscribeCore=function(t){t=b(this.source.subscribe).call(this.source,t);return t===y&&(this._fn(),s(t.e)),new is(t,this._fn)},is.prototype.dispose=function(){var t;this.isDisposed||(t=b(this._s.dispose).call(this._s),this._fn(),t===y&&s(t.e))};var ts,es=ns;function ns(t,e,n){this.source=t,this._fn=c(e,n,0),ts.call(this)}function is(t,e){this.isDisposed=!1,this._s=t,this._fn=e}e.finally=function(t,e){return new es(this,t,e)};h(ss,rs=A),ss.prototype.subscribeCore=function(t){return this.source.subscribe(new as(t))},as.prototype.onNext=g,as.prototype.onError=function(t){this.isStopped||(this.isStopped=!0,this.o.onError(t))},as.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},as.prototype.dispose=function(){this.isStopped=!0},as.prototype.fail=function(t){return!this.isStopped&&(this.isStopped=!0,this.observer.onError(t),!0)};var rs,os=ss;function ss(t){this.source=t,rs.call(this)}function as(t){this.o=t,this.isStopped=!1}e.ignoreElements=function(){return new os(this)};h(cs,ls=A),cs.prototype.subscribeCore=function(t){return this.source.subscribe(new ds(t))};var ls,us=cs;function cs(t,e){this.source=t,ls.call(this)}h(ps,hs=D),ps.prototype.next=function(t){this._o.onNext(Oe(t))},ps.prototype.error=function(t){this._o.onNext(Ne(t)),this._o.onCompleted()},ps.prototype.completed=function(){this._o.onNext(Pe()),this._o.onCompleted()};var hs,ds=ps;
1function ps(t){this._o=t,hs.call(this)}function fs(t){return{"@@iterator":function(){return{next:function(){return{done:!1,value:t}}}}}}e.materialize=function(){return new us(this)},e.repeat=function(t){return bn(this,t).concat()},e.retry=function(t){return bn(this,t).catchError()};h(vs,ms=A),vs.prototype.subscribeCore=function(o){var t,s=new R,a=new R,e=this._notifier(s).subscribe(a),l=this.source["@@iterator"](),u={isDisposed:!1},c=new C,n=S.scheduleRecursive(null,function(t,e){var n,i,r;u.isDisposed||((n=l.next()).done?o.onCompleted():(n=n.value,f(n)&&(n=N(n)),i=new x,r=new x,c.setDisposable(new k(r,i)),i.setDisposable(n.subscribe(function(t){o.onNext(t)},function(t){r.setDisposable(a.subscribe(e,function(t){o.onError(t)},function(){o.onCompleted()})),s.onNext(t),i.dispose()},function(){o.onCompleted()}))))});return new Vt([e,c,n,(t=u,{isDisposed:!1,dispose:function(){this.isDisposed||(this.isDisposed=!0,t.isDisposed=!0)}})])};var ms,gs=vs;function vs(t,e){this.source=t,this._notifier=e,ms.call(this)}function fs(t){return{"@@iterator":function(){return{next:function(){return{done:!1,value:t}}}}}}e.retryWhen=function(t){return new gs(fs(this),t)};h(_s,ys=A),_s.prototype.subscribeCore=function(o){var t,s=new R,a=new R,e=this._notifier(s).subscribe(a),l=this.source["@@iterator"](),u={isDisposed:!1},c=new C,n=S.scheduleRecursive(null,function(t,e){var n,i,r;u.isDisposed||((n=l.next()).done?o.onCompleted():(n=n.value,f(n)&&(n=N(n)),i=new x,r=new x,c.setDisposable(new k(r,i)),i.setDisposable(n.subscribe(function(t){o.onNext(t)},function(t){o.onError(t)},function(){r.setDisposable(a.subscribe(e,function(t){o.onError(t)},function(){o.onCompleted()})),s.onNext(null),i.dispose()}))))});return new Vt([e,c,n,(t=u,{isDisposed:!1,dispose:function(){this.isDisposed||(this.isDisposed=!0,t.isDisposed=!0)}})])};var ys,bs=_s;function _s(t,e){this.source=t,this._notifier=e,ys.call(this)}e.repeatWhen=function(t){return new bs(fs(this),t)};h(Cs,ws=A),Cs.prototype.subscribeCore=function(t){return this.source.subscribe(new $s(t,this))};var ws,xs=Cs;function Cs(t,e,n,i){this.source=t,this.accumulator=e,this.hasSeed=n,this.seed=i,ws.call(this)}h(Ss,ks=D),Ss.prototype.next=function(t){if(this._hv||(this._hv=!0),this._ha?this._a=b(this._fn)(this._a,t,this._i,this._p):(this._a=this._hs?b(this._fn)(this._s,t,this._i,this._p):t,this._ha=!0),this._a===y)return this._o.onError(this._a.e);this._o.onNext(this._a),this._i++},Ss.prototype.error=function(t){this._o.onError(t)},Ss.prototype.completed=function(){!this._hv&&this._hs&&this._o.onNext(this._s),this._o.onCompleted()};var ks,$s=Ss;function Ss(t,e){this._o=t,this._p=e,this._fn=e.accumulator,this._hs=e.hasSeed,this._s=e.seed,this._ha=!1,this._a=null,this._hv=!1,this._i=0,ks.call(this)}e.scan=function(){var t,e=!1,n=arguments[0];return 2===arguments.length&&(e=!0,t=arguments[1]),new xs(this,n,e,t)};h(Ds,Es=A),Ds.prototype.subscribeCore=function(t){return this.source.subscribe(new As(t,this._c))};var Es,Ts=Ds;function Ds(t,e){this.source=t,this._c=e,Es.call(this)}h(Os,Ms=D),Os.prototype.next=function(t){this._q.push(t),this._q.length>this._c&&this._o.onNext(this._q.shift())},Os.prototype.error=function(t){this._o.onError(t)},Os.prototype.completed=function(){this._o.onCompleted()};var Ms,As=Os;function Os(t,e){this._o=t,this._c=e,this._q=[],Ms.call(this)}e.skipLast=function(t){if(t<0)throw new rt;return new Ts(this,t)},e.startWith=function(){var t,e=0;arguments.length&&$(arguments[0])?(t=arguments[0],e=1):t=o;for(var n=[],i=e,r=arguments.length;i<r;i++)n.push(arguments[i]);return hr.apply(null,[hi(n,t),this])};h(Rs,Ns=D),Rs.prototype.next=function(t){this._q.push(t),this._q.length>this._c&&this._q.shift()},Rs.prototype.error=function(t){this._o.onError(t)},Rs.prototype.completed=function(){for(;0<this._q.length;)this._o.onNext(this._q.shift());this._o.onCompleted()};var Ns,Ps=Rs;function Rs(t,e){this._o=t,this._c=e,this._q=[],Ns.call(this)}e.takeLast=function(e){if(e<0)throw new rt;var n=this;return new P(function(t){return n.subscribe(new Ps(t,e))},n)};h(Hs,Is=D),Hs.prototype.next=function(t){this._q.push(t),this._q.length>this._c&&this._q.shift()},Hs.prototype.error=function(t){this._o.onError(t)},Hs.prototype.completed=function(){this._o.onNext(this._q),this._o.onCompleted()};var Is,Ls=Hs;function Hs(t,e){this._o=t,this._c=e,this._q=[],Is.call(this)}function Fs(n,t,e){var i=c(t,e,3);return n.map(function(t,e){t=i(t,e,n);return f(t)&&(t=N(t)),t=ut(t)||lt(t)?si(t):t}).concatAll()}e.takeLastBuffer=function(e){if(e<0)throw new rt;var n=this;return new P(function(t){return n.subscribe(new Ls(t,e))},n)},e.windowWithCount=e.windowCount=function(a,l){var i=this;if(+a||(a=0),(a=Math.abs(a)===1/0?0:a)<=0)throw new rt;if(+(l=null==l?a:l)||(l=0),(l=Math.abs(l)===1/0?0:l)<=0)throw new rt;return new P(function(e){var t=new x,n=new jt(t),r=0,o=[];function s(){var t=new R;o.push(t),e.onNext(Nt(t,n))}return s(),t.setDisposable(i.subscribe(function(t){for(var e=0,n=o.length;e<n;e++)o[e].onNext(t);var i=r-a+1;0<=i&&i%l==0&&o.shift().onCompleted(),++r%l==0&&s()},function(t){for(;0<o.length;)o.shift().onError(t);e.onError(t)},function(){for(;0<o.length;)o.shift().onCompleted();e.onCompleted()})),n},i)},e.selectConcat=e.concatMap=function(e,r,t){return v(e)&&v(r)?this.concatMap(function(n,i){var t=e(n,i);return f(t)&&(t=N(t)),(t=ut(t)||lt(t)?si(t):t).map(function(t,e){return r(n,t,i,e)})}):v(e)?Fs(this,e,t):Fs(this,function(){return e})},e.concatMapObserver=e.selectConcatObserver=function(t,e,n,i){var r=this,o=c(t,i,2),s=c(e,i,1),a=c(n,i,0);return new P(function(n){var i=0;return r.subscribe(function(t){var e;try{e=o(t,i++)}catch(t){return void n.onError(t)}f(e)&&(e=N(e)),n.onNext(e)},function(t){var e;try{e=s(t)}catch(t){return void n.onError(t)}f(e)&&(e=N(e)),n.onNext(e),n.onCompleted()},function(){var t;try{t=a()}catch(t){return void n.onError(t)}f(t)&&(t=N(t)),n.onNext(t),n.onCompleted()})},this).concatAll()};h(js,zs=D),js.prototype.next=function(t){this._f=!0,this._o.onNext(t)},js.prototype.error=function(t){this._o.onError(t)},js.prototype.completed=function(){this._f||this._o.onNext(this._d),this._o.onCompleted()};var zs,Vs=js;function js(t,e){this._o=t,this._d=e,this._f=!1,zs.call(this)}function Ws(t){this.comparer=t,this.set=[]}e.defaultIfEmpty=function(e){var n=this;return e===m&&(e=null),new P(function(t){return n.subscribe(new Vs(t,e))},n)},Ws.prototype.push=function(t){var e=-1===function(t,e,n){for(var i=0,r=t.length;i<r;i++)if(n(t[i],e))return i;return-1}(this.set,t,this.comparer);return e&&this.set.push(t),e};h(Us,Bs=A),Us.prototype.subscribeCore=function(t){return this.source.subscribe(new Gs(t,this._keyFn,this._cmpFn))};var Bs,qs=Us;function Us(t,e,n){this.source=t,this._keyFn=e,this._cmpFn=n,Bs.call(this)}h(Ks,Ys=D),Ks.prototype.next=function(t){var e=t;if(v(this._keyFn)&&(e=b(this._keyFn)(t))===y)return this._o.onError(e.e);this._h.push(e)&&this._o.onNext(t)},Ks.prototype.error=function(t){this._o.onError(t)},Ks.prototype.completed=function(){this._o.onCompleted()};var Ys,Gs=Ks;function Ks(t,e,n){this._o=t,this._keyFn=e,this._h=new Ws(n),Ys.call(this)}e.distinct=function(t,e){return new qs(this,t,e=e||V)},e.groupBy=function(t,e){return this.groupByUntil(t,e,bi)},e.groupByUntil=function(h,d,p){var t=this;return new P(function(s){function a(e){return function(t){t.onError(e)}}var l=new Fc,u=new w,c=new jt(u);return u.add(t.subscribe(function(t){var e=b(h)(t);if(e===y)return l.forEach(a(e.e)),s.onError(e.e);var n=!1,i=l.get(e);if(i===m&&(i=new R,l.set(e,i),n=!0),n){var n=new op(e,i,c),r=new op(e,i),r=b(p)(r);if(r===y)return l.forEach(a(r.e)),s.onError(r.e);s.onNext(n);var o=new x;u.add(o),o.setDisposable(r.take(1).subscribe(g,function(t){l.forEach(a(t)),s.onError(t)},function(){l.delete(e)&&i.onCompleted(),u.remove(o)}))}n=t;if(v(d)&&(n=b(d)(t))===y)return l.forEach(a(n.e)),s.onError(n.e);i.onNext(n)},function(t){l.forEach(a(t)),s.onError(t)},function(){l.forEach(function(t){t.onCompleted()}),s.onCompleted()})),c},t)};h(Qs,Xs=A),Qs.prototype.internalMap=function(t,e){return new Qs(this.source,(i=t,r=this,function(t,e,n){return i.call(this,r.selector(t,e,n),e,n)}),e);var i,r},Qs.prototype.subscribeCore=function(t){return this.source.subscribe(new Js(t,this.selector,this))},h(Js,D),Js.prototype.next=function(t){t=b(this.selector)(t,this.i++,this.source);if(t===y)return this.o.onError(t.e);this.o.onNext(t)},Js.prototype.error=function(t){this.o.onError(t)},Js.prototype.completed=function(){this.o.onCompleted()};var Xs,Zs=Qs;function Qs(t,e,n){this.source=t,this.selector=c(e,n,3),Xs.call(this)}function Js(t,e,n){this.o=t,this.selector=e,this.source=n,this.i=0,D.call(this)}e.map=e.select=function(t,e){var n="function"==typeof t?t:function(){return t};return this instanceof Zs?this.internalMap(n,e):new Zs(this,n,e)},e.pluck=function(){var t=arguments.length,e=new Array(t);if(0===t)throw new Error("List of properties cannot be empty.");for(var r,o,n=0;n<t;n++)e[n]=arguments[n];return this.map((r=e,o=t,function(t){for(var e=t,n=0;n<o;n++){var i=e[r[n]];if(void 0===i)return m;e=i}return e}))},e.flatMap=e.selectMany=e.mergeMap=function(t,e,n){return new en(this,t,e,n).mergeAll()},e.flatMapObserver=e.selectManyObserver=function(r,o,e,s){var t=this;return new P(function(n){var i=0;return t.subscribe(function(t){var e;try{e=r.call(s,t,i++)}catch(t){return void n.onError(t)}f(e)&&(e=N(e)),n.onNext(e)},function(t){var e;try{e=o.call(s,t)}catch(t){return void n.onError(t)}f(e)&&(e=N(e)),n.onNext(e),n.onCompleted()},function(){var t;try{t=e.call(s)}catch(t){return void n.onError(t)}f(t)&&(t=N(t)),n.onNext(t),n.onCompleted()})},t).mergeAll()},e.flatMapLatest=e.switchMap=function(t,e,n){return new en(this,t,e,n).switchLatest()};h(na,ta=A),na.prototype.subscribeCore=function(t){return this.source.subscribe(new ia(t,this._count))},h(ia,D),ia.prototype.next=function(t){this._r<=0?this._o.onNext(t):this._r--},ia.prototype.error=function(t){this._o.onError(t)},ia.prototype.completed=function(){this._o.onCompleted()};var ta,ea=na;function na(t,e){this.source=t,this._count=e,ta.call(this)}function ia(t,e){this._o=t,this._r=e,D.call(this)}e.skip=function(t){if(t<0)throw new rt;return new ea(this,t)};h(sa,ra=A),sa.prototype.subscribeCore=function(t){return this.source.subscribe(new la(t,this))};var ra,oa=sa;function sa(t,e){this.source=t,this._fn=e,ra.call(this)}h(ua,aa=D),ua.prototype.next=function(t){if(!this._r){var e=b(this._p._fn)(t,this._i++,this._p);if(e===y)return this._o.onError(e.e);this._r=!e}this._r&&this._o.onNext(t)},ua.prototype.error=function(t){this._o.onError(t)},ua.prototype.completed=function(){this._o.onCompleted()};var aa,la=ua;function ua(t,e){this._o=t,this._p=e,this._i=0,this._r=!1,aa.call(this)}e.skipWhile=function(t,e){t=c(t,e,3);return new oa(this,t)};h(da,ca=A),da.prototype.subscribeCore=function(t){return this.source.subscribe(new pa(t,this._count))},h(pa,D),pa.prototype.next=function(t){0<this._r--&&(this._o.onNext(t),this._r<=0)&&this._o.onCompleted()},pa.prototype.error=function(t){this._o.onError(t)},pa.prototype.completed=function(){this._o.onCompleted()};var ca,ha=da;function da(t,e){this.source=t,this._count=e,ca.call(this)}function pa(t,e){this._o=t,this._c=e,this._r=e,D.call(this)}e.take=function(t,e){if(t<0)throw new rt;return 0===t?Zn(e):new ha(this,t)};h(ga,fa=A),ga.prototype.subscribeCore=function(t){return this.source.subscribe(new ya(t,this))};var fa,ma=ga;function ga(t,e){this.source=t,this._fn=e,fa.call(this)}h(ba,va=D),ba.prototype.next=function(t){if(this._r&&(this._r=b(this._p._fn)(t,this._i++,this._p),this._r===y))return this._o.onError(this._r.e);this._r?this._o.onNext(t):this._o.onCompleted()},ba.prototype.error=function(t){this._o.onError(t)},ba.prototype.completed=function(){this._o.onCompleted()};var va,ya=ba;function ba(t,e){this._o=t,this._p=e,this._i=0,this._r=!0,va.call(this)}e.takeWhile=function(t,e){t=c(t,e,3);return new ma(this,t)};h(xa,_a=A),xa.prototype.subscribeCore=function(t){return this.source.subscribe(new Ca(t,this.predicate,this))},xa.prototype.internalFilter=function(t,e){return new xa(this.source,(i=t,r=this,function(t,e,n){return r.predicate(t,e,n)&&i.call(this,t,e,n)}),e);var i,r},h(Ca,D),Ca.prototype.next=function(t){var e=b(this.predicate)(t,this.i++,this.source);if(e===y)return this.o.onError(e.e);e&&this.o.onNext(t)},Ca.prototype.error=function(t){this.o.onError(t)},Ca.prototype.completed=function(){this.o.onCompleted()};var _a,wa=xa;function xa(t,e,n){this.source=t,this.predicate=c(e,n,3),_a.call(this)}function Ca(t,e,n){this.o=t,this.predicate=e,this.source=n,this.i=0,D.call(this)}e.filter=e.where=function(t,e){return this instanceof wa?this.internalFilter(t,e):new wa(this,t,e)};h(Sa,ka=A),Sa.prototype.subscribeCore=function(t){return this.source.subscribe(new Ta(t,this._k,this._c))};var ka,$a=Sa;function Sa(t,e,n){this.source=t,this._k=e,this._c=n,ka.call(this)}h(Da,Ea=D),Da.prototype.next=function(t){var e=b(this._k)(t);if(e===y)return this._o.onError(e.e);var n=0;if(this._hv){if((n=b(this._c)(e,this._v))===y)return this._o.onError(n.e)}else this._hv=!0,this._v=e;0<n&&(this._v=e,this._l=[]),0<=n&&this._l.push(t)},Da.prototype.error=function(t){this._o.onError(t)},Da.prototype.completed=function(){this._o.onNext(this._l),this._o.onCompleted()};var Ea,Ta=Da;function Da(t,e,n){this._o=t,this._k=e,this._c=n,this._v=null,this._hv=!1,this._l=[],Ea.call(this)}function Ma(t){if(0===t.length)throw new nt;return t[0]}h(Na,Aa=A),Na.prototype.subscribeCore=function(t){return this.source.subscribe(new Ra(t,this))};var Aa,Oa=Na;function Na(t,e,n,i){this.source=t,this.accumulator=e,this.hasSeed=n,this.seed=i,Aa.call(this)}
1h(Ia,Pa=D),Ia.prototype.next=function(t){if(this._hv||(this._hv=!0),this._ha?this._a=b(this._fn)(this._a,t,this._i,this._p):(this._a=this._hs?b(this._fn)(this._s,t,this._i,this._p):t,this._ha=!0),this._a===y)return this._o.onError(this._a.e);this._i++},Ia.prototype.error=function(t){this._o.onError(t)},Ia.prototype.completed=function(){this._hv&&this._o.onNext(this._a),!this._hv&&this._hs&&this._o.onNext(this._s),this._hv||this._hs||this._o.onError(new nt),this._o.onCompleted()};var Pa,Ra=Ia;function Ia(t,e){this._o=t,this._p=e,this._fn=e.accumulator,this._hs=e.hasSeed,this._s=e.seed,this._ha=!1,this._a=null,this._hv=!1,this._i=0,Pa.call(this)}e.reduce=function(){var t,e=!1,n=arguments[0];return 2===arguments.length&&(e=!0,t=arguments[1]),new Oa(this,n,e,t)};h(Fa,La=A),Fa.prototype.subscribeCore=function(t){return this.source.subscribe(new Va(t,this._fn,this.source))};var La,Ha=Fa;function Fa(t,e){this.source=t,this._fn=e,La.call(this)}h(ja,za=D),ja.prototype.next=function(t){t=b(this._fn)(t,this._i++,this._s);if(t===y)return this._o.onError(t.e);Boolean(t)&&(this._o.onNext(!0),this._o.onCompleted())},ja.prototype.error=function(t){this._o.onError(t)},ja.prototype.completed=function(){this._o.onNext(!1),this._o.onCompleted()};var za,Va=ja;function ja(t,e,n){this._o=t,this._fn=e,this._s=n,this._i=0,za.call(this)}e.some=function(t,e){t=c(t,e,3);return new Ha(this,t)};h(qa,Wa=A),qa.prototype.subscribeCore=function(t){return this.source.subscribe(new Ya(t))};var Wa,Ba=qa;function qa(t){this.source=t,Wa.call(this)}h(Ga,Ua=D),Ga.prototype.next=function(){this._o.onNext(!1),this._o.onCompleted()},Ga.prototype.error=function(t){this._o.onError(t)},Ga.prototype.completed=function(){this._o.onNext(!0),this._o.onCompleted()};var Ua,Ya=Ga;function Ga(t){this._o=t,Ua.call(this)}e.isEmpty=function(){return new Ba(this)};h(Za,Ka=A),Za.prototype.subscribeCore=function(t){return this.source.subscribe(new Ja(t,this._fn,this.source))};var Ka,Xa=Za;function Za(t,e){this.source=t,this._fn=e,Ka.call(this)}h(tl,Qa=D),tl.prototype.next=function(t){t=b(this._fn)(t,this._i++,this._s);if(t===y)return this._o.onError(t.e);Boolean(t)||(this._o.onNext(!1),this._o.onCompleted())},tl.prototype.error=function(t){this._o.onError(t)},tl.prototype.completed=function(){this._o.onNext(!0),this._o.onCompleted()};var Qa,Ja=tl;function tl(t,e,n){this._o=t,this._fn=e,this._s=n,this._i=0,Qa.call(this)}e.every=function(t,e){t=c(t,e,3);return new Xa(this,t)};h(il,el=A),il.prototype.subscribeCore=function(t){return this._n<0?(t.onNext(!1),t.onCompleted(),d):this.source.subscribe(new ol(t,this._elem,this._n))};var el,nl=il;function il(t,e,n){n=+n||0;Math.abs(n)===1/0&&(n=0),this.source=t,this._elem=e,this._n=n,el.call(this)}h(sl,rl=D),sl.prototype.next=function(t){var e;this._i++>=this._n&&(t=t,e=this._elem,0===t&&0===e||t===e||isNaN(t)&&isNaN(e))&&(this._o.onNext(!0),this._o.onCompleted())},sl.prototype.error=function(t){this._o.onError(t)},sl.prototype.completed=function(){this._o.onNext(!1),this._o.onCompleted()};var rl,ol=sl;function sl(t,e,n){this._o=t,this._elem=e,this._n=n,this._i=0,rl.call(this)}e.includes=function(t,e){return new nl(this,t,e)};h(ul,al=A),ul.prototype.subscribeCore=function(t){return this.source.subscribe(new hl(t,this._fn,this.source))};var al,ll=ul;function ul(t,e){this.source=t,this._fn=e,al.call(this)}h(dl,cl=D),dl.prototype.next=function(t){if(this._fn){t=b(this._fn)(t,this._i++,this._s);if(t===y)return this._o.onError(t.e);Boolean(t)&&this._c++}else this._c++},dl.prototype.error=function(t){this._o.onError(t)},dl.prototype.completed=function(){this._o.onNext(this._c),this._o.onCompleted()};var cl,hl=dl;function dl(t,e,n){this._o=t,this._fn=e,this._s=n,this._i=0,this._c=0,cl.call(this)}e.count=function(t,e){t=c(t,e,3);return new ll(this,t)};h(ml,pl=A),ml.prototype.subscribeCore=function(t){return this._n<0?(t.onNext(-1),t.onCompleted(),d):this.source.subscribe(new vl(t,this._e,this._n))};var pl,fl=ml;function ml(t,e,n){this.source=t,this._e=e,this._n=n,pl.call(this)}h(yl,gl=D),yl.prototype.next=function(t){this._i>=this._n&&t===this._e&&(this._o.onNext(this._i),this._o.onCompleted()),this._i++},yl.prototype.error=function(t){this._o.onError(t)},yl.prototype.completed=function(){this._o.onNext(-1),this._o.onCompleted()};var gl,vl=yl;function yl(t,e,n){this._o=t,this._e=e,this._n=n,this._i=0,gl.call(this)}e.indexOf=function(t,e){e=+e||0;return Math.abs(e)===1/0&&(e=0),new fl(this,t,e)};h(wl,bl=A),wl.prototype.subscribeCore=function(t){return this.source.subscribe(new Cl(t,this._fn,this.source))};var bl,_l=wl;function wl(t,e){this.source=t,this._fn=e,bl.call(this)}h(kl,xl=D),kl.prototype.next=function(t){if(this._fn){var e=b(this._fn)(t,this._i++,this._s);if(e===y)return this._o.onError(e.e);this._c+=e}else this._c+=t},kl.prototype.error=function(t){this._o.onError(t)},kl.prototype.completed=function(){this._o.onNext(this._c),this._o.onCompleted()};var xl,Cl=kl;function kl(t,e,n){this._o=t,this._fn=e,this._s=n,this._i=0,this._c=0,xl.call(this)}e.sum=function(t,e){t=c(t,e,3);return new _l(this,t)},e.minBy=function(t,n){return n=n||j,new $a(this,t,function(t,e){return-1*n(t,e)})},e.min=function(t){return this.minBy(z,t).map(Ma)},e.maxBy=function(t,e){return new $a(this,t,e=e||j)},e.max=function(t){return this.maxBy(z,t).map(Ma)};h(El,$l=A),El.prototype.subscribeCore=function(t){return this.source.subscribe(new Dl(t,this._fn,this.source))};var $l,Sl=El;function El(t,e){this.source=t,this._fn=e,$l.call(this)}h(Ml,Tl=D),Ml.prototype.next=function(t){if(this._fn){var e=b(this._fn)(t,this._c++,this._s);if(e===y)return this._o.onError(e.e);this._t+=e}else this._c++,this._t+=t},Ml.prototype.error=function(t){this._o.onError(t)},Ml.prototype.completed=function(){if(0===this._c)return this._o.onError(new nt);this._o.onNext(this._t/this._c),this._o.onCompleted()};var Tl,Dl=Ml;function Ml(t,e,n){this._o=t,this._fn=e,this._s=n,this._c=0,this._t=0,Tl.call(this)}e.average=function(t,e){var n;return v(t)&&(n=c(t,e,3)),new Sl(this,n)},e.sequenceEqual=function(a,l){var u=this;return l=l||V,new P(function(n){var i=!1,r=!1,o=[],s=[],t=u.subscribe(function(t){if(0<s.length){var e=s.shift(),e=b(l)(e,t);if(e===y)return n.onError(e.e);e||(n.onNext(!1),n.onCompleted())}else r?(n.onNext(!1),n.onCompleted()):o.push(t)},function(t){n.onError(t)},function(){i=!0,0===o.length&&(0<s.length?(n.onNext(!1),n.onCompleted()):r&&(n.onNext(!0),n.onCompleted()))}),e=((ut(a)||lt(a))&&(a=si(a)),(a=f(a)?N(a):a).subscribe(function(t){if(0<o.length){var e=o.shift(),e=b(l)(e,t);if(e===y)return n.onError(e.e);e||(n.onNext(!1),n.onCompleted())}else i?(n.onNext(!1),n.onCompleted()):s.push(t)},function(t){n.onError(t)},function(){r=!0,0===s.length&&(0<o.length?(n.onNext(!1),n.onCompleted()):i&&(n.onNext(!0),n.onCompleted()))}));return new k(t,e)},u)};h(Nl,Al=A),Nl.prototype.subscribeCore=function(t){return this.source.subscribe(new Rl(t,this._i,this._d))};var Al,Ol=Nl;function Nl(t,e,n){this.source=t,this._i=e,this._d=n,Al.call(this)}h(Il,Pl=D),Il.prototype.next=function(t){0==this._i--&&(this._o.onNext(t),this._o.onCompleted())},Il.prototype.error=function(t){this._o.onError(t)},Il.prototype.completed=function(){this._d===m?this._o.onError(new rt):(this._o.onNext(this._d),this._o.onCompleted())};
1var Pl,Rl=Il;function Il(t,e,n){this._o=t,this._i=e,this._d=n,Pl.call(this)}e.elementAt=function(t,e){if(t<0)throw new rt;return new Ol(this,t,e)};h(Fl,Ll=D),Fl.prototype.next=function(t){var e=!1;if(this._obj.predicate){var n=b(this._obj.predicate)(t,this._i++,this._s);if(n===y)return this._o.onError(n.e);Boolean(n)&&(e=!0)}else this._obj.predicate||(e=!0);if(e){if(this._hv)return this._o.onError(new Error("Sequence contains more than one matching element"));this._hv=!0,this._v=t}},Fl.prototype.error=function(t){this._o.onError(t)},Fl.prototype.completed=function(){this._hv?(this._o.onNext(this._v),this._o.onCompleted()):this._obj.defaultValue===m?this._o.onError(new nt):(this._o.onNext(this._obj.defaultValue),this._o.onCompleted())};var Ll,Hl=Fl;function Fl(t,e,n){this._o=t,this._obj=e,this._s=n,this._i=0,this._hv=!1,this._v=null,Ll.call(this)}e.single=function(t,e){var n,i={},r=this;return v((i="object"==typeof t?t:{predicate:t,thisArg:e,defaultValue:arguments[2]}).predicate)&&(n=i.predicate,i.predicate=c(n,i.thisArg,3)),new P(function(t){return r.subscribe(new Hl(t,i,r))},r)};h(jl,zl=A),jl.prototype.subscribeCore=function(t){return this.source.subscribe(new Bl(t,this._obj,this.source))};var zl,Vl=jl;function jl(t,e){this.source=t,this._obj=e,zl.call(this)}h(ql,Wl=D),ql.prototype.next=function(t){if(this._obj.predicate){var e=b(this._obj.predicate)(t,this._i++,this._s);if(e===y)return this._o.onError(e.e);Boolean(e)&&(this._o.onNext(t),this._o.onCompleted())}else this._obj.predicate||(this._o.onNext(t),this._o.onCompleted())},ql.prototype.error=function(t){this._o.onError(t)},ql.prototype.completed=function(){this._obj.defaultValue===m?this._o.onError(new nt):(this._o.onNext(this._obj.defaultValue),this._o.onCompleted())};var Wl,Bl=ql;function ql(t,e,n){this._o=t,this._obj=e,this._s=n,this._i=0,Wl.call(this)}e.first=function(){var t,e={};return v((e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]}).predicate)&&(t=e.predicate,e.predicate=c(t,e.thisArg,3)),new Vl(this,e)};h(Gl,Ul=A),Gl.prototype.subscribeCore=function(t){return this.source.subscribe(new Xl(t,this._obj,this.source))};var Ul,Yl=Gl;function Gl(t,e){this.source=t,this._obj=e,Ul.call(this)}h(Zl,Kl=D),Zl.prototype.next=function(t){var e=!1;if(this._obj.predicate){var n=b(this._obj.predicate)(t,this._i++,this._s);if(n===y)return this._o.onError(n.e);Boolean(n)&&(e=!0)}else this._obj.predicate||(e=!0);e&&(this._hv=!0,this._v=t)},Zl.prototype.error=function(t){this._o.onError(t)},Zl.prototype.completed=function(){this._hv?(this._o.onNext(this._v),this._o.onCompleted()):this._obj.defaultValue===m?this._o.onError(new nt):(this._o.onNext(this._obj.defaultValue),this._o.onCompleted())};var Kl,Xl=Zl;function Zl(t,e,n){this._o=t,this._obj=e,this._s=n,this._i=0,this._hv=!1,this._v=null,Kl.call(this)}e.last=function(){var t,e={};return v((e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]}).predicate)&&(t=e.predicate,e.predicate=c(t,e.thisArg,3)),new Yl(this,e)};h(tu,Ql=D),tu.prototype.next=function(t){var e=b(this._cb)(t,this._i,this._s);if(e===y)return this._o.onError(e.e);e?(this._o.onNext(this._y?this._i:t),this._o.onCompleted()):this._i++},tu.prototype.error=function(t){this._o.onError(t)},tu.prototype.completed=function(){this._y&&this._o.onNext(-1),this._o.onCompleted()};var Ql,Jl=tu;function tu(t,e,n,i){this._o=t,this._s=e,this._cb=n,this._y=i,this._i=0,Ql.call(this)}function eu(e,t,n,i){var r=c(t,n,3);return new P(function(t){return e.subscribe(new Jl(t,e,r,i))},e)}e.find=function(t,e){return eu(this,t,e,!1)},e.findIndex=function(t,e){return eu(this,t,e,!0)};h(ru,nu=A),ru.prototype.subscribeCore=function(t){return this.source.subscribe(new su(t))};var nu,iu=ru;function ru(t){this.source=t,nu.call(this)}h(au,ou=D),au.prototype.next=function(t){this._s.add(t)},au.prototype.error=function(t){this._o.onError(t)},au.prototype.completed=function(){this._o.onNext(this._s),this._o.onCompleted()};var ou,su=au;function au(t){this._o=t,this._s=new l.Set,ou.call(this)}e.toSet=function(){if(void 0===l.Set)throw new TypeError;return new iu(this)};h(cu,lu=A),cu.prototype.subscribeCore=function(t){return this.source.subscribe(new du(t,this._k,this._e))};var lu,uu=cu;function cu(t,e,n){this.source=t,this._k=e,this._e=n,lu.call(this)}h(pu,hu=D),pu.prototype.next=function(t){var e,n=b(this._k)(t);return n===y?this._o.onError(n.e):(e=t,this._e&&(e=b(this._e)(t))===y?this._o.onError(e.e):void this._m.set(n,e))},pu.prototype.error=function(t){this._o.onError(t)},pu.prototype.completed=function(){this._o.onNext(this._m),this._o.onCompleted()};var hu,du=pu;function pu(t,e,n){this._o=t,this._k=e,this._e=n,this._m=new l.Map,hu.call(this)}e.toMap=function(t,e){if(void 0===l.Map)throw new TypeError;return new uu(this,t,e)};h(gu,fu=A),gu.prototype.subscribeCore=function(t){return this.source.subscribe(new yu(t,this._b,this._e))};var fu,mu=gu;function gu(t,e,n){this.source=t,this._b=e,this._e=n,fu.call(this)}h(bu,vu=D),bu.prototype.next=function(t){this._i>=this._b&&(this._e===this._i?this._o.onCompleted():this._o.onNext(t)),this._i++},bu.prototype.error=function(t){this._o.onError(t)},bu.prototype.completed=function(){this._o.onCompleted()};var vu,yu=bu;function bu(t,e,n){this._o=t,this._b=e,this._e=n,this._i=0,vu.call(this)}e.slice=function(t,e){t=t||0;if(t<0)throw new a.ArgumentOutOfRangeError;if("number"==typeof e&&e<t)throw new a.ArgumentOutOfRangeError;return new mu(this,t,e)};h(xu,_u=A),xu.prototype.subscribeCore=function(t){return this._n<0?(t.onNext(-1),t.onCompleted(),d):this.source.subscribe(new ku(t,this._e,this._n))};var _u,wu=xu;function xu(t,e,n){this.source=t,this._e=e,this._n=n,_u.call(this)}h($u,Cu=D),$u.prototype.next=function(t){this._i>
1=this._n&&t===this._e&&(this._hv=!0,this._v=this._i),this._i++},$u.prototype.error=function(t){this._o.onError(t)},$u.prototype.completed=function(){this._hv?this._o.onNext(this._v):this._o.onNext(-1),this._o.onCompleted()};var Cu,ku=$u;function $u(t,e,n){this._o=t,this._e=e,this._n=n,this._v=0,this._hv=!1,this._i=0,Cu.call(this)}e.lastIndexOf=function(t,e){e=+e||0;return Math.abs(e)===1/0&&(e=0),new wu(this,t,e)},M.wrap=function(t){function e(){return M.spawn.call(this,t.apply(this,arguments))}return e.__generatorFunction__=t,e};var Su=M.spawn=function(){for(var n=arguments[0],a=this,t=[],e=1,i=arguments.length;e<i;e++)t.push(arguments[e]);return new P(function(i){var r=new w;return(n=v(n)?n.apply(a,t):n)&&v(n.next)?(o(),r):(i.onNext(n),i.onCompleted());function o(t){t=b(n.next).call(n,t);if(t===y)return i.onError(t.e);e(t)}function s(t){t=b(n.next).call(n,t);if(t===y)return i.onError(t.e);e(t)}function e(t){var e,n;t.done?(i.onNext(t.value),i.onCompleted()):(t=Eu.call(a,t.value),e=null,n=!1,M.isObservable(t)?r.add(t.subscribe(function(t){n=!0,e=t},s,function(){n&&o(e)})):s(new TypeError("type not supported")))}})};function Eu(t){return t&&(M.isObservable(t)?t:f(t)?M.fromPromise(t):function(t){t=t.constructor;return t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName||Tu(t.prototype))}(t)||Tu(t)?Su.call(this,t):v(t)?function(t){var e=this;return new P(function(o){t.call(e,function(){var t=arguments[0],e=arguments[1];if(t)return o.onError(t);if(2<arguments.length){for(var n=[],i=1,r=arguments.length;i<r;i++)n.push(arguments[i]);e=n}o.onNext(e),o.onCompleted()})})}.call(this,t):ut(t)||lt(t)?function(t){return M.from(t).concatMap(function(t){return M.isObservable(t)||kt(t)?Eu.call(null,t):a.Observable.just(t)}).toArray()}.call(this,t):kt(t)?function(t){for(var n=new t.constructor,e=Object.keys(t),i=[],r=0,o=e.length;r<o;r++){var s=e[r],a=Eu.call(this,t[s]);a&&M.isObservable(a)?function(t,e){n[e]=m,i.push(t.map(function(t){n[e]=t}))}(a,s):n[s]=t[s]}return M.forkJoin.apply(M,i).map(function(){return n})}.call(this,t):t)}function Tu(t){return v(t.next)&&v(t.throw)}function kt(t){return Object==t.constructor}M.start=function(t,e,n){return Du(t,e,n)()};var Du=M.toAsync=function(i,r,t){return $(t)||(t=E),function(){var e=arguments,n=new cp;return t.schedule(null,function(){var t;try{t=i.apply(r,e)}catch(t){return void n.onError(t)}n.onNext(t),n.onCompleted()}),n.asObservable()}};function Mu(t,e,n,i){var r,o,s,a=new cp;return i.push((r=a,o=e,s=n,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(v(s)){if((e=b(s).apply(o,e))===y)return r.onError(e.e);r.onNext(e)}else e.length<=1?r.onNext(e[0]):r.onNext(e);r.onCompleted()})),t.apply(e,i),a.asObservable()}function Au(t,e,n,i){var r,o,s,a=new cp;return i.push((r=a,o=e,s=n,function(){var t=arguments[0];if(t)return r.onError(t);for(var e=arguments.length,n=[],i=1;i<e;i++)n[i-1]=arguments[i];if(v(s)){if((n=b(s).apply(o,n))===y)return r.onError(n.e);r.onNext(n)}else n.length<=1?r.onNext(n[0]):r.onNext(n);r.onCompleted()})),t.apply(e,i),a.asObservable()}function Ou(t,e,n){this._e=t,this._n=e,this._fn=n,this._e.addEventListener(this._n,this._fn,!1),this.isDisposed=!1}function Nu(t,e,n){var i,r=new w,o=Object.prototype.toString.call(t);if(i=t,(l.StaticNodeList?i instanceof l.StaticNodeList||i instanceof l.NodeList:"[object NodeList]"===Object.prototype.toString.call(i))||"[object HTMLCollection]"===o)for(var s=0,a=t.length;s<a;s++)r.add(Nu(t.item(s),e,n));else t&&r.add(new Ou(t,e,n));return r}M.fromCallback=function(i,r,o){return function(){void 0===r&&(r=this);for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Mu(i,r,o,e)}},M.fromNodeCallback=function(i,r,o){return function(){void 0===r&&(r=this);for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Au(i,r,o,e)}},a.config.useNativeEvents=!(Ou.prototype.dispose=function(){this.isDisposed||(this._e.removeEventListener(this._n,this._fn,!1),this.isDisposed=!0)});h(Iu,Pu=A),Iu.prototype.subscribeCore=function(t){return Nu(this._el,this._n,(e=t,n=this._fn,function(){var t=arguments[0];if(v(n)&&(t=b(n).apply(null,arguments))===y)return e.onError(t.e);e.onNext(t)}));var e,n};var Pu,Ru=Iu;function Iu(t,e,n){this._el=t,this._n=e,this._fn=n,Pu.call(this)}M.fromEvent=function(e,n,t,i){return e.addListener?ju(function(t){e.addListener(n,t,i
1)},function(t){e.removeListener(n,t,i)},t):a.config.useNativeEvents||"function"!=typeof e.on||"function"!=typeof e.off?new Ru(e,n,t).publish().refCount():ju(function(t){e.on(n,t,i)},function(t){e.off(n,t,i)},t)};h(Fu,Lu=A),Fu.prototype.subscribeCore=function(t){function e(){var t=arguments[0];if(v(i)&&(t=b(i).apply(null,arguments))===y)return n.onError(t.e);n.onNext(t)}n=t,i=this._fn;var n,i,t=this._add(e);return new zu(this._del,e,t)},zu.prototype.dispose=function(){this.isDisposed||(v(this._del)&&this._del(this._fn,this._ret),this.isDisposed=!0)};var Lu,Hu=Fu;function Fu(t,e,n){this._add=t,this._del=e,this._fn=n,Lu.call(this)}function zu(t,e,n){this._del=t,this._fn=e,this._ret=n,this.isDisposed=!1}var Vu,ju=M.fromEventPattern=function(t,e,n){return new Hu(t,e,n).publish().refCount()},Wu=(M.startAsync=function(t){t=b(t)();return t===y?Hi(t.e):N(t)},h(Bu,Vu=M),Bu.prototype._subscribe=function(t){var e=this.source.publish(),t=e.subscribe(t),n=d,i=this.pauser.startWith(!this.paused).distinctUntilChanged().subscribe(function(t){n=t?e.connect():(n.dispose(),d)});return new Vt([t,n,i])},Bu.prototype.pause=function(){this.paused=!0,this.controller.onNext(!1)},Bu.prototype.resume=function(){this.paused=!1,this.controller.onNext(!0)},Bu);function Bu(t,e){this.source=t,this.controller=new R,this.paused=!0,e&&e.subscribe?this.pauser=this.controller.merge(e):this.pauser=this.controller,Vu.call(this)}e.pausable=function(t){return new Wu(this,t)};h(Yu,qu=M),Yu.prototype._subscribe=function(e){var n,t,l,u,i=[];function r(){for(;0<i.length;)e.onNext(i.shift())}return t=this.source,l=this.pauser.startWith(!this.paused).distinctUntilChanged(),u=function(t,e){return{data:t,shouldFire:e}},new P(function(n){var i,r=[!1,!1],o=!1,s=!1,a=new Array(2);function e(t,e){if(a[e]=t,r[e]=!0,o=o||r.every(z)){if(i)return n.onError(i);t=b(u).apply(null,a);if(t===y)return n.onError(t.e);n.onNext(t)}s&&a[1]&&n.onCompleted()}return new k(t.subscribe(function(t){e(t,0)},function(t){a[1]?n.onError(t):i=t},function(){s=!0,a[1]&&n.onCompleted()}),l.subscribe(function(t){e(t,1)},function(t){n.onError(t)},function(){e(s=!0,1)}))},t).subscribe(function(t){n!==m&&t.shouldFire!==n?(n=t.shouldFire,t.shouldFire&&r()):(n=t.shouldFire,t.shouldFire?e.onNext(t.data):i.push(t.data))},function(t){r(),e.onError(t)},function(){r(),e.onCompleted()})},Yu.prototype.pause=function(){this.paused=!0,this.controller.onNext(!1)},Yu.prototype.resume=function(){this.paused=!1,this.controller.onNext(!0)};var qu,Uu=Yu;function Yu(t,e){this.source=t,this.controller=new R,this.paused=!0,e&&e.subscribe?this.pauser=this.controller.merge(e):this.pauser=this.controller,qu.call(this)}e.pausableBuffered=function(t){return new Uu(this,t)};h(Xu,Gu=M),Xu.prototype._subscribe=function(t){return this.source.subscribe(t)},Xu.prototype.request=function(t){return this.subject.request(null==t?-1:t)};var Gu,Ku=Xu;function Xu(t,e,n){Gu.call(this),this.subject=new Qu(e,n),this.source=t.multicast(this.subject).refCount()}h(Ju,Zu=M),t(Ju.prototype,i,{_subscribe:function(t){return this.subject.subscribe(t)},onCompleted:function(){this.hasCompleted=!0,this.enableQueue&&0!==this.queue.length?this.queue.push(T.createOnCompleted()):(this.subject.onCompleted(),this.disposeCurrentRequest())},onError:function(t){this.hasFailed=!0,this.error=t,this.enableQueue&&0!==this.queue.length?this.queue.push(T.createOnError(t)):(this.subject.onError(t),this.disposeCurrentRequest())},onNext:function(t){this.requestedCount<=0?this.enableQueue&&this.queue.push(T.createOnNext(t)):(0==this.requestedCount--&&this.disposeCurrentRequest(),this.subject.onNext(t))},_processRequest:function(t){if(this.enableQueue)for(;0<this.queue.length&&(0<t||"N"!==this.queue[0].kind);){var e=this.queue.shift();e.accept(this.subject),"N"===e.kind?t--:(this.disposeCurrentRequest(),this.queue=[])}return t},request:function(t){this.disposeCurrentRequest();var n=this;return this.requestedDisposable=this.scheduler.schedule(t,function(t,e){e=n._processRequest(e);if(!(n.hasCompleted||n.hasFailed)&&0<e)return n.requestedCount=e,Ht(function(){n.requestedCount=0})}),this.requestedDisposable},disposeCurrentRequest:function(){this.requestedDisposable&&(this.requestedDisposable.dispose(),this.requestedDisposable=null)}});var Zu,Qu=Ju;
1function Ju(t,e){null==t&&(t=!0),Zu.call(this),this.subject=new R,this.enableQueue=t,this.queue=t?[]:null,this.requestedCount=0,this.requestedDisposable=null,this.error=null,this.hasFailed=!1,this.hasCompleted=!1,this.scheduler=e||S}e.controlled=function(t,e){return t&&$(t)&&(e=t,t=!0),new Ku(this,t=null==t?!0:t,e)};var tc,ec=function(e){function t(t){e.call(this),this.source=t}function n(t,e){return e.source.request(1)}h(t,e),t.prototype._subscribe=function(t){return this.subscription=this.source.subscribe(new r(t,this,this.subscription)),new k(this.subscription,E.schedule(this,n))};h(o,i=D),o.prototype.completed=function(){this.observer.onCompleted(),this.dispose()},o.prototype.error=function(t){this.observer.onError(t),this.dispose()},o.prototype.next=function(t){this.observer.onNext(t),this.scheduleDisposable=E.schedule(this,s)},o.dispose=function(){this.observer=null,this.cancel&&(this.cancel.dispose(),this.cancel=null),this.scheduleDisposable&&(this.scheduleDisposable.dispose(),this.scheduleDisposable=null),i.prototype.dispose.call(this)};var i,r=o;function o(t,e,n){i.call(this),this.observer=t,this.observable=e,this.cancel=n,this.scheduleDisposable=null}function s(t,e){return e.observable.source.request(1)}return t}(M),nc=(Ku.prototype.stopAndWait=function(){return new ec(this)},function(n){function t(t,e){n.call(this),this.source=t,this.windowSize=e}function e(t,e){return e.source.request(e.windowSize)}h(t,n),t.prototype._subscribe=function(t){return this.subscription=this.source.subscribe(new r(t,this,this.subscription)),new k(this.subscription,E.schedule(this,e))};h(o,i=D),o.prototype.completed=function(){this.observer.onCompleted(),this.dispose()},o.prototype.error=function(t){this.observer.onError(t),this.dispose()},o.prototype.next=function(t){this.observer.onNext(t),this.received=++this.received%this.observable.windowSize,0===this.received&&(this.scheduleDisposable=E.schedule(this,s))},o.prototype.dispose=function(){this.observer=null,this.cancel&&(this.cancel.dispose(),this.cancel=null),this.scheduleDisposable&&(this.scheduleDisposable.dispose(),this.scheduleDisposable=null),i.prototype.dispose.call(this)};var i,r=o;function o(t,e,n){this.observer=t,this.observable=e,this.cancel=n,this.received=0,this.scheduleDisposable=null,i.call(this)}function s(t,e){return e.observable.source.request(e.observable.windowSize)}return t}(M)),ic=(Ku.prototype.windowed=function(t){return new nc(this,t)},e.pipe=function(e){var n=this.pausableBuffered();function t(){n.resume()}return e.addListener("drain",t),n.subscribe(function(t){e.write(t)||n.pause()},function(t){e.emit("error",t)},function(){e._isStdio||e.end(),e.removeListener("drain",t)}),n.resume(),e},h(rc,tc=A),rc.prototype.subscribeCore=function(t){var e=this.source.multicast(this._fn1());return new k(this._fn2(e).subscribe(t),e.connect())},rc);function rc(t,e,n){this.source=t,this._fn1=e,this._fn2=n,tc.call(this)}e.multicast=function(t,e){return v(t)?new ic(this,t,e):new hc(this,t)},e.publish=function(t){return t&&v(t)?this.multicast(function(){return new R},t):this.multicast(new R)},e.share=function(){return this.publish().refCount()},e.publishLast=function(t){return t&&v(t)?this.multicast(function(){return new cp},t):this.multicast(new cp)},e.publishValue=function(t,e){return 2===arguments.length?this.multicast(function(){return new pp(e)},t):this.multicast(new pp(t))},e.shareValue=function(t){return this.publishValue(t).refCount()},e.replay=function(t,e,n,i){return t&&v(t)?this.multicast(function(){return new vp(e,n,i)},t):this.multicast(new vp(e,n,i))},e.shareReplay=function(t,e,n){return this.replay(null,t,e,n).refCount()};function oc(t,e){this._s=t,this._o=e}oc.prototype.dispose=function(){var t;this._s.isDisposed||null===this._o||(t=this._s.observers.indexOf(this._o),this._s.observers.splice(t,1),this._o=null)},h(lc,sc=A),lc.prototype.subscribeCore=function(t){t=this.source.subscribe(t);return 1==++this._count&&(this._connectableSubscription=this.source.connect()),new uc(this,t)},uc.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.dispose(),0==--this._p._count&&this._p._connectableSubscription.dispose())};var sc,ac=lc;function lc(t){this.source=t,this._count=0,this._connectableSubscription=null,sc.call(this)}function uc(t,e){this._p=t,this._s=e,this.isDisposed=!1}var cc,hc=a.ConnectableObservable=(h(dc,cc=M),pc.prototype.dispose=function(){this._s&&(this._s.dispose(),this._s=null,this._p._connection=null)},dc.prototype.connect=function(){if(!this._connection){if(this._subject.isStopped)return d;var t=this._source.subscribe(this._subject);this._connection=new pc(this,t)}return this._connection},dc.prototype._subscribe=function(t){return this._subject.subscribe(t)},dc.prototype.refCount=function(){return new ac(this)},dc);function dc(t,e){this.source=t,this._connection=null,this._source=t.asObservable(),this._subject=e,cc.call(this)}function pc(t,e){this._p=t,this._s=e}function Io(t){return t.toArray()}e.singleInstance=function(){var e,n=this,i=!1;
1return new P(function(t){return i||(i=!0,e=n.finally(function(){i=!1}).publish().refCount()),e.subscribe(t)})},e.join=function(t,p,f,m){var e=this;return new P(function(r){function o(t){r.onError(t)}var s=new w,a=!1,l=!1,u=0,c=0,h=new Fc,d=new Fc;return s.add(e.subscribe(function(e){var t=u++,n=new x,i=(h.set(t,e),s.add(n),b(p)(e));if(i===y)return r.onError(i.e);n.setDisposable(i.take(1).subscribe(g,o,function(){h.delete(t)&&0===h.size&&a&&r.onCompleted(),s.remove(n)})),d.forEach(function(t){t=b(m)(e,t);if(t===y)return r.onError(t.e);r.onNext(t)})},o,function(){a=!0,!l&&0!==h.size||r.onCompleted()})),s.add(t.subscribe(function(e){var t=c++,n=new x,i=(d.set(t,e),s.add(n),b(f)(e));if(i===y)return r.onError(i.e);n.setDisposable(i.take(1).subscribe(g,o,function(){d.delete(t)&&0===d.size&&l&&r.onCompleted(),s.remove(n)})),h.forEach(function(t){t=b(m)(t,e);if(t===y)return r.onError(t.e);r.onNext(t)})},o,function(){l=!0,!a&&0!==d.size||r.onCompleted()})),s},e)},e.groupJoin=function(t,d,p,f){var e=this;return new P(function(o){function s(e){return function(t){t.onError(e)}}var a=new w,l=new jt(a),u=new Fc,c=new Fc,h=0,r=0;function s(t){}return a.add(e.subscribe(function(t){var e=new R,n=h++,i=(u.set(n,e),b(f)(t,Nt(e,l)));if(i===y)return u.forEach(s(i.e)),o.onError(i.e);o.onNext(i),c.forEach(function(t){e.onNext(t)});var r=new x,i=(a.add(r),b(d)(t));if(i===y)return u.forEach(s(i.e)),o.onError(i.e);r.setDisposable(i.take(1).subscribe(g,function(t){u.forEach(s(t)),o.onError(t)},function(){u.delete(n)&&e.onCompleted(),a.remove(r)}))},function(t){u.forEach(s(t)),o.onError(t)},function(){o.onCompleted()})),a.add(t.subscribe(function(e){var t=r++,n=(c.set(t,e),new x),i=(a.add(n),b(p)(e));if(i===y)return u.forEach(s(i.e)),o.onError(i.e);n.setDisposable(i.take(1).subscribe(g,function(t){u.forEach(s(t)),o.onError(t)},function(){c.delete(t),a.remove(n)})),u.forEach(function(t){t.onNext(e)})},function(t){u.forEach(s(t)),o.onError(t)})),l},e)},e.buffer=function(){return this.window.apply(this,arguments).flatMap(Io)},e.window=function(t,e){return 1===arguments.length&&"function"!=typeof t?function(r){var o=this;return new P(function(e){var n=new R,t=new w,i=new jt(t);return e.onNext(Nt(n,i)),t.add(o.subscribe(function(t){n.onNext(t)},function(t){n.onError(t),e.onError(t)},function(){n.onCompleted(),e.onCompleted()})),f(r)&&(r=N(r)),t.add(r.subscribe(function(t){n.onCompleted(),n=new R,e.onNext(Nt(n,i))},function(t){n.onError(t),e.onError(t)},function(){n.onCompleted(),e.onCompleted()})),i},o)}.call(this,t):"function"==typeof t?function(a){var e=this;return new P(function(i){var r=new C,t=new w(r),o=new jt(t),s=new R;return i.onNext(Nt(s,o)),t.add(e.subscribe(function(t){s.onNext(t)},function(t){s.onError(t),i.onError(t)},function(){s.onCompleted(),i.onCompleted()})),function t(){var e;try{e=a()}catch(t){return void i.onError(t)}f(e)&&(e=N(e));var n=new x;r.setDisposable(n),n.setDisposable(e.take(1).subscribe(g,function(t){s.onError(t),i.onError(t)},function(){s.onCompleted(),s=new R,i.onNext(Nt(s,o)),t()}))}(),o},e)}.call(this,t):function(t,e){return t.groupJoin(this,e,Zn,function(t,e){return e})}.call(this,t,e)};h(gc,fc=A),gc.prototype.subscribeCore=function(t){return this.source.subscribe(new yc(t))};var fc,mc=gc;function gc(t){this.source=t,fc.call(this)}h(bc,vc=D),bc.prototype.next=function(t){this._hp?this._o.onNext([this._p,t]):this._hp=!0,this._p=t},bc.prototype.error=function(t){this._o.onError(t)},bc.prototype.completed=function(){this._o.onCompleted()};var vc,yc=bc;function bc(t){this._o=t,this._p=null,this._hp=!1,vc.call(this)}e.pairwise=function(){return new mc(this)},e.partition=function(t,e){var i=c(t,e,3);return[this.filter(t,e),this.filter(function(t,e,n){return!i(t,e,n)})]};h(wc,O),wc.prototype[u]=function(){var t=this;return{next:function(){return t.c()?{done:!1,value:t.s}:{done:!0,value:void 0}}}};var _c=wc;function wc(t,e){this.c=t,this.s=e}e.letBind=e.let=function(t){return t(this)},M.if=function(t,e,n){return Bn(function(){return n=n||Zn(),f(e)&&(e=N(e)),"function"==typeof(n=f(n)?N(n):n).now&&(n=Zn(n)),t()?e:n})},M.for=M.forIn=function(t,e,n){return kn(t,e,n).concat()};var xc,Cc=M.while=M.whileDo=function(t,e){return f(e)&&(e=N(e)),new _c(t,e).concat()},kc=(e.doWhile=function(t){return hr([this,Cc(t,this)])},M.case=function(e,n,i){return Bn(function(){i=(i=f(i)?N(i):i)||Zn(),$(i)&&(i=Zn(i));var t=n[e()];return(t=f(t)?N(t):t)||i})},h($c,xc=A),$c.prototype._ensureActive=function(t){var e=!1;0<t.q.length&&(e=!t.isAcquired,t.isAcquired=!0),e&&t.m.setDisposable(this._scheduler.scheduleRecursive([t,this],Sc))},$c.prototype.subscribeCore=function(t){var e=new C,n=new w(e),e={q:[],m:e,d:n,activeCount:0,isAcquired:!1,o:t};return e.q.push(this.source),e.activeCount++,this._ensureActive(e),n},$c);
1function $c(t,e,n){this.source=t,this._fn=e,this._scheduler=n,xc.call(this)}function Sc(t,e){var n,i,r=t[0],t=t[1];0<r.q.length?(n=r.q.shift(),i=new x,r.d.add(i),i.setDisposable(n.subscribe(new Tc(r,t,i))),e([r,t])):r.isAcquired=!1}h(Dc,Ec=D),Dc.prototype.next=function(t){this._s.o.onNext(t);t=b(this._p._fn)(t);if(t===y)return this._s.o.onError(t.e);this._s.q.push(t),this._s.activeCount++,this._p._ensureActive(this._s)},Dc.prototype.error=function(t){this._s.o.onError(t)},Dc.prototype.completed=function(){this._s.d.remove(this._m1),this._s.activeCount--,0===this._s.activeCount&&this._s.o.onCompleted()};var Ec,Tc=Dc;function Dc(t,e,n){this._s=t,this._p=e,this._m1=n,Ec.call(this)}function Ki(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}e.expand=function(t,e){return $(e)||(e=S),new kc(this,t,e)};h(Oc,Mc=A),Oc.prototype.subscribeCore=function(t){if(0===this._sources.length)return t.onCompleted(),d;for(var e=this._sources.length,n={finished:!1,hasResults:new Array(e),hasCompleted:new Array(e),results:new Array(e)},i=new w,r=0,o=this._sources.length;r<o;r++){var s=this._sources[r];f(s)&&(s=N(s)),i.add(s.subscribe(new Pc(t,n,r,this._cb,i)))}return i};var Mc,Ac=Oc;function Oc(t,e){this._sources=t,this._cb=e,Mc.call(this)}h(Rc,Nc=D),Rc.prototype.next=function(t){this._s.finished||(this._s.hasResults[this._i]=!0,this._s.results[this._i]=t)},Rc.prototype.error=function(t){this._s.finished=!0,this._o.onError(t),this._subs.dispose()},Rc.prototype.completed=function(){if(!this._s.finished){if(!this._s.hasResults[this._i])return this._o.onCompleted();this._s.hasCompleted[this._i]=!0;for(var t=0;t<this._s.results.length;t++)if(!this._s.hasCompleted[t])return;this._s.finished=!0;var e=b(this._cb).apply(null,this._s.results);if(e===y)return this._o.onError(e.e);this._o.onNext(e),this._o.onCompleted()}};var Nc,Pc=Rc;function Rc(t,e,n,i,r){this._o=t,this._s=e,this._i=n,this._cb=i,this._subs=r,Nc.call(this)}M.forkJoin=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=v(e[t-1])?e.pop():Ki;return Array.isArray(e[0])&&(e=e[0]),new Ac(e,i)},e.forkJoin=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(Array.isArray(e[0])?e[0]:e).unshift(this),M.forkJoin.apply(null,e)},e.manySelect=e.extend=function(t,e){$(e)||(e=a.Scheduler.immediate);var i=this;return Bn(function(){var n;return i.map(function(t){var e=new Lc(t);return n&&n.onNext(t),n=e}).tap(g,function(t){n&&n.onError(t)},function(){n&&n.onCompleted()}).observeOn(e).map(t)},i)};h(Hc,Ic=M),t(Hc.prototype,i,{_subscribe:function(n){var i=new w;return i.add(S.schedule(this,function(t,e){n.onNext(e.head),i.add(e.tail.mergeAll().subscribe(n))})),i},onCompleted:function(){this.onNext(M.empty())},onError:function(t){this.onNext(M.throw(t))},onNext:function(t){this.tail.onNext(t),this.tail.onCompleted()}});var Ic,Lc=Hc;function Hc(t){Ic.call(this),this.head=t,this.tail=new cp}var Fc=l.Map||(zc.prototype.delete=function(t){t=this._keys.indexOf(t);return-1!==t&&(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},zc.prototype.get=function(t){t=this._keys.indexOf(t);return-1===t?m:this._values[t]},zc.prototype.set=function(t,e){var n=this._keys.indexOf(t);return-1===n?(this._keys.push(t),this._values.push(e),this.size++):this._values[n]=e,this},zc.prototype.forEach=function(t,e){for(var n=0;n<this.size;n++)t.call(e,this._values[n],this._keys[n])},zc);function zc(){this.size=0,this._values=[],this._keys=[]}function Vc(t){this.patterns=t}function jc(t,e){this.expression=t,this.selector=e}function Wc(t,e,n){this.joinObserverArray=t,this.onNext=e,this.onCompleted=n,this.joinObservers=new Fc;for(var i=0,r=this.joinObserverArray.length;i<r;i++){var o=this.joinObserverArray[i];this.joinObservers.set(o,o)}}Vc.prototype.and=function(t){return new Vc(this.patterns.concat(t))},Vc.prototype.thenDo=function(t){return new jc(this,t)},jc.prototype.activate=function(t,e,n){function i(t){r.onError(t)}for(var r,o,s,a,l,u=[],c=(r=e,0),h=this.expression.patterns.length;c<h;c++)u.push((o=t,s=this.expression.patterns[c],a=i,l=void 0,(l=o.get(s))||(l=new qc(s,a),o.set(s,l),l)));for(var d,p,f=new Wc(u,(d=this,p=e,function(){var t=b(d.selector).apply(d,arguments);if(t===y)return p.onError(t.e);p.onNext(t)}),function(){for(var t=0,e=u.length;t<e;t++)u[t].removeActivePlan(f);n(f)}),c=0,h=u.length;c<h;c++)u[c].addActivePlan(f);return f}
1,Wc.prototype.dequeue=function(){this.joinObservers.forEach(function(t){t.queue.shift()})},Wc.prototype.match=function(){var t=!0;for(r=0,o=this.joinObserverArray.length;r<o;r++)if(0===this.joinObserverArray[r].queue.length){t=!1;break}if(t){var e=[],n=!1;for(r=0,o=this.joinObserverArray.length;r<o;r++)e.push(this.joinObserverArray[r].queue[0]),"C"===this.joinObserverArray[r].queue[0].kind&&(n=!0);if(n)this.onCompleted();else{this.dequeue();for(var i=[],r=0,o=e.length;r<e.length;r++)i.push(e[r].value);this.onNext.apply(this,i)}}};h(Uc,Bc=D),(O=Uc.prototype).next=function(t){if(!this.isDisposed){if("E"===t.kind)return this.onError(t.error);this.queue.push(t);for(var e=this.activePlans.slice(0),n=0,i=e.length;n<i;n++)e[n].match()}},O.error=g,O.completed=g,O.addActivePlan=function(t){this.activePlans.push(t)},O.subscribe=function(){this.subscription.setDisposable(this.source.materialize().subscribe(this))},O.removeActivePlan=function(t){this.activePlans.splice(this.activePlans.indexOf(t),1),0===this.activePlans.length&&this.dispose()},O.dispose=function(){Bc.prototype.dispose.call(this),this.isDisposed||(this.isDisposed=!0,this.subscription.dispose())};var Bc,qc=Uc;function Uc(t,e){Bc.call(this),this.source=t,this.onError=e,this.queue=[],this.activePlans=[],this.subscription=new x,this.isDisposed=!1}e.and=function(t){return new Vc([this,t])},e.thenDo=function(t){return new Vc([this]).thenDo(t)},M.when=function(){var t=arguments.length;if(Array.isArray(arguments[0]))a=arguments[0];else for(var a=new Array(t),e=0;e<t;e++)a[e]=arguments[e];return new P(function(n){var e=[],t=new Fc,i=Re(function(t){n.onNext(t)},function(e){t.forEach(function(t){t.onError(e)}),n.onError(e)},function(t){n.onCompleted()});try{for(var r=0,o=a.length;r<o;r++)e.push(a[r].activate(t,i,function(t){t=e.indexOf(t);e.splice(t,1),0===e.length&&n.onCompleted()}))}catch(t){return Hi(t).subscribe(n)}var s=new w;return t.forEach(function(t){t.subscribe(),s.add(t)}),s})};h(Kc,Yc=A),Kc.prototype.subscribeCore=function(t){return this._s.scheduleFuture(t,this._dt,Xc)};var Yc,Gc=Kc;function Kc(t,e){this._dt=t,this._s=e,Yc.call(this)}function Xc(t,e){e.onNext(0),e.onCompleted()}function Zc(t,e,s){return new P(function(i){var r=t,o=Kt(e);return s.scheduleRecursiveFuture(0,r,function(t,e){var n;0<o&&(n=s.now(),(r=new Date(r.getTime()+o)).getTime()<=n)&&(r=new Date(n+o)),i.onNext(t),e(t+1,new Date(r))})})}function Qc(t,n,i){return t===n?new P(function(e){return i.schedulePeriodic(0,n,function(t){return e.onNext(t),t+1})}):Bn(function(){return Zc(new Date(i.now()+t),n,i)})}var Jc=M.interval=function(t,e){return Qc(t,t,$(e)?e:E)};M.timer=function(t,e,n){var i;return $(n)||(n=E),null!=e&&"number"==typeof e?i=e:$(e)&&(n=e),(t instanceof Date||"number"==typeof t)&&i===m?new Gc(t,n):t instanceof Date&&i!==m?Zc(t,e,n):Qc(t,i,n)};function th(e,i,h){return new P(function(s){var a=!1,n=new C,l=null,u=[],c=!1,t=e.materialize().timestamp(h).subscribe(function(t){var e;"E"===t.value.kind?((u=[]).push(t),l=t.value.error,e=!c):(u.push({value:t.value,timestamp:t.timestamp+i}),e=!a,a=!0),e&&(null!==l?s.onError(l):(t=new x,n.setDisposable(t),t.setDisposable(h.scheduleRecursiveFuture(null,i,function(t,e){var n,i,r,o;if(null===l){for(c=!0;(r=null)!==(r=0<u.length&&u[0].timestamp-h.now()<=0?u.shift().value:r)&&r.accept(s),null!==r;);o=!1,(i=0)<u.length?(o=!0,i=Math.max(0,u[0].timestamp-h.now())):a=!1,c=!1,null!==(n=l)?s.onError(n):o&&e(null,i)}}))))});return new k(t,n)},e)}e.delay=function(){var s,t,e,a,l,n,i,r,o=arguments[0];if("number"==typeof o||o instanceof Date)return t=o,$(e=arguments[1])||(e=E),t instanceof Date?(n=this,i=t,r=e,Bn(function(){return th(n,i-r.now(),r)})):th(this,t,e);if(M.isObservable(o)||v(o))return s=this,t=o,e=arguments[1],l=v(t)?t:(a=t,e),new P(function(i){var r=new w,t=!1,e=new C;function n(){e.setDisposable(s.subscribe(function(t){var e=b(l)(t);if(e===y)return i.onError(e.e);var n=new x;r.add(n),n.setDisposable(e.subscribe(function(){i.onNext(t),r.remove(n),o()},function(t){i.onError(t)},function(){i.onNext(t),r.remove(n),o()}))},function(t){i.onError(t)},function(){t=!0,e.dispose(),o()}))}function o(){t&&0===r.length&&i.onCompleted()}return a?e.setDisposable(a.subscribe(n,function(t){i.onError(t)},n)):n(),new k(e,r)},s);throw new Error("Invalid arguments")};h(ih,eh=A),ih.prototype.subscribeCore=function(t){var e=new C;return new k(this.source.subscribe(new oh(t,this._dt,this._s,e)),e)};var eh,nh=ih;function ih(t,e,n){$(n)||(n=E),this.source=t,this._dt=e,this._s=n,eh.call(this)}h(sh,rh=D),sh.prototype.next=function(n){this._hv=!0,this._v=n;var i=++this._id,t=new x;this._c.setDisposable(t),t.setDisposable(this._scheduler.scheduleFuture(this,this._d,function(t,e){e._hv&&e._id===i&&e._o.onNext(n),e._hv=!1}))},sh.prototype.error=function(t){this._c.dispose(),this._o.onError(t),this._hv=!1,this._id++},sh.prototype.completed=function(){this._c.dispose(),this._hv&&this._o.onNext(this._v),this._o.onCompleted(),this._hv=!1,this._id++};var rh,oh=sh;
1function sh(t,e,n,i){this._o=t,this._d=e,this._scheduler=n,this._c=i,this._v=null,this._hv=!1,this._id=0,rh.call(this)}function Io(t){return t.toArray()}function Io(t){return t.toArray()}e.debounce=function(){if(v(arguments[0]))return e=this,u=arguments[0],new P(function(r){var o,s=!1,a=new C,l=0,t=e.subscribe(function(t){var e=b(u)(t);if(e===y)return r.onError(e.e);f(e)&&(e=N(e)),s=!0,o=t;var n=++l,i=new x;a.setDisposable(i),i.setDisposable(e.subscribe(function(){s&&l===n&&r.onNext(o),s=!1,i.dispose()},function(t){r.onError(t)},function(){s&&l===n&&r.onNext(o),s=!1,i.dispose()}))},function(t){a.dispose(),r.onError(t),s=!1,l++},function(){a.dispose(),s&&r.onNext(o),r.onCompleted(),s=!1,l++});return new k(t,a)},e);if("number"==typeof arguments[0])return new nh(this,arguments[0],arguments[1]);throw new Error("Invalid arguments");var e,u},e.windowWithTime=e.windowTime=function(e,t,p){var f,n=this;return null==t&&(f=e),$(p)||(p=E),"number"==typeof t?f=t:$(t)&&(f=e,p=t),new P(function(s){var t,a,l=f,u=e,c=[],h=new C,d=0;return t=new w(h),a=new jt(t),c.push(new R),s.onNext(Nt(c[0],a)),function e(){var t=new x,n=!1,i=!1,r=(h.setDisposable(t),u===l?i=n=!0:u<l?n=!0:i=!0,n?u:l),o=r-d;d=r,n&&(u+=f),i&&(l+=f),t.setDisposable(p.scheduleFuture(null,o,function(){var t;i&&(t=new R,c.push(t),s.onNext(Nt(t,a))),n&&c.shift().onCompleted(),e()}))}(),t.add(n.subscribe(function(t){for(var e=0,n=c.length;e<n;e++)c[e].onNext(t)},function(t){for(var e=0,n=c.length;e<n;e++)c[e].onError(t);s.onError(t)},function(){for(var t=0,e=c.length;t<e;t++)c[t].onCompleted();s.onCompleted()})),a},n)},e.windowWithTimeOrCount=e.windowTimeOrCount=function(u,c,h){var e=this;return $(h)||(h=E),new P(function(i){var n=new C,t=new w(n),r=new jt(t),o=0,s=0,a=new R;function l(e){var t=new x;n.setDisposable(t),t.setDisposable(h.scheduleFuture(null,u,function(){var t;e===s&&(o=0,t=++s,a.onCompleted(),a=new R,i.onNext(Nt(a,r)),l(t))}))}return i.onNext(Nt(a,r)),l(0),t.add(e.subscribe(function(t){var e=0,n=!1;a.onNext(t),++o===c&&(n=!0,o=0,e=++s,a.onCompleted(),a=new R,i.onNext(Nt(a,r))),n&&l(e)},function(t){a.onError(t),i.onError(t)},function(){a.onCompleted(),i.onCompleted()})),r},e)},e.bufferWithTime=e.bufferTime=function(t,e,n){return this.windowWithTime(t,e,n).flatMap(Io)},e.bufferWithTimeOrCount=e.bufferTimeOrCount=function(t,e,n){return this.windowWithTimeOrCount(t,e,n).flatMap(Io)};h(uh,ah=A),uh.prototype.subscribeCore=function(t){return this.source.subscribe(new hh(t,this._s))};var ah,lh=uh;function uh(t,e){this.source=t,this._s=e,ah.call(this)}h(dh,ch=D),dh.prototype.next=function(t){var e=this._s.now(),n=e-this._l;this._l=e,this._o.onNext({value:t,interval:n})},dh.prototype.error=function(t){this._o.onError(t)},dh.prototype.completed=function(){this._o.onCompleted()};var ch,hh=dh;function dh(t,e){this._o=t,this._s=e,this._l=e.now(),ch.call(this)}e.timeInterval=function(t){return $(t)||(t=E),new lh(this,t)};h(mh,ph=A),mh.prototype.subscribeCore=function(t){return this.source.subscribe(new vh(t,this._s))};var ph,fh=mh;function mh(t,e){this.source=t,this._s=e,ph.call(this)}h(yh,gh=D),yh.prototype.next=function(t){this._o.onNext({value:t,timestamp:this._s.now()})},yh.prototype.error=function(t){this._o.onError(t)},yh.prototype.completed=function(){this._o.onCompleted()};var gh,vh=yh;function yh(t,e){this._o=t,this._s=e,gh.call(this)}e.timestamp=function(t){return $(t)||(t=E),new fh(this,t)};h(wh,bh=A),wh.prototype.subscribeCore=function(t){t={o:t,atEnd:!1,value:null,hasValue:!1,sourceSubscription:new x};return t.sourceSubscription.setDisposable(this.source.subscribe(new Sh(t))),new k(t.sourceSubscription,this._sampler.subscribe(new Ch(t)))};var bh,_h=wh;function wh(t,e){this.source=t,this._sampler=e,bh.call(this)}h(kh,xh=D),kh.prototype._handleMessage=function(){this._s.hasValue&&(this._s.hasValue=!1,this._s.o.onNext(this._s.value)),this._s.atEnd&&this._s.o.onCompleted()},kh.prototype.next=function(){this._handleMessage()},kh.prototype.error=function(t){this._s.onError(t)},kh.prototype.completed=function(){this._handleMessage()};var xh,Ch=kh;
1function kh(t){this._s=t,xh.call(this)}h(Eh,$h=D),Eh.prototype.next=function(t){this._s.hasValue=!0,this._s.value=t},Eh.prototype.error=function(t){this._s.o.onError(t)},Eh.prototype.completed=function(){this._s.atEnd=!0,this._s.sourceSubscription.dispose()};var $h,Sh=Eh;function Eh(t){this._s=t,$h.call(this)}e.sample=function(t,e){return $(e)||(e=E),new _h(this,"number"==typeof t?Jc(t,e):t)};var Th=a.TimeoutError=function(t){this.message=t||"Timeout has occurred",this.name="TimeoutError",Error.call(this)};Th.prototype=Object.create(Error.prototype),e.timeout=function(){var i,u,c,h,a,l,d,p,t=arguments[0];if(t instanceof Date||"number"==typeof t)return a=this,l=t,d=arguments[1],p=arguments[2],$(d)&&(p=d,d=Hi(new Th)),d instanceof Error&&(d=Hi(d)),$(p)||(p=E),M.isObservable(d)||(d=Hi(new Th)),new P(function(e){var n=0,t=new x,i=new C,r=!1,o=new C;function s(){var t=n;o.setDisposable(p.scheduleFuture(null,l,function(){(r=n===t)&&(f(d)&&(d=N(d)),i.setDisposable(d.subscribe(e)))}))}return i.setDisposable(t),s(),t.setDisposable(a.subscribe(function(t){r||(n++,e.onNext(t),s())},function(t){r||(n++,e.onError(t))},function(){r||(n++,e.onCompleted())})),new k(i,o)},a);if(M.isObservable(t)||v(t))return i=this,u=t,c=arguments[1],h=arguments[2],v(u)&&(h=c,c=u,u=bi()),M.isObservable(h)||(h=Hi(new Th)),new P(function(r){var o=new C,s=new C,t=new x,a=(o.setDisposable(t),0),l=!1;function e(t){var e=a,n=new x;function i(){return l=e===a}s.setDisposable(n),n.setDisposable(t.subscribe(function(){i()&&o.setDisposable(h.subscribe(r)),n.dispose()},function(t){i()&&r.onError(t)},function(){i()&&o.setDisposable(h.subscribe(r))}))}function n(){var t=!l;return t&&a++,t}return e(u),t.setDisposable(i.subscribe(function(t){if(n()){r.onNext(t);t=b(c)(t);if(t===y)return r.onError(t.e);e(f(t)?N(t):t)}},function(t){n()&&r.onError(t)},function(){n()&&r.onCompleted()})),new k(o,s)},i);throw new Error("Invalid arguments")};h(Ah,Dh=A),Ah.prototype.subscribeCore=function(t){t={o:t,self:this,newState:this._state,first:!0,hasResult:!1};return this._s.scheduleRecursiveFuture(t,new Date(this._s.now()),Oh)};var Dh,Mh=Ah;function Ah(t,e,n,i,r,o){this._state=t,this._cndFn=e,this._itrFn=n,this._resFn=i,this._timeFn=r,this._s=o,Dh.call(this)}function Oh(t,e){if(t.hasResult&&t.o.onNext(t.result),t.first)t.first=!1;else if(t.newState=b(t.self._itrFn)(t.newState),t.newState===y)return t.o.onError(t.newState.e);var n;return t.hasResult=b(t.self._cndFn)(t.newState),t.hasResult===y?t.o.onError(t.hasResult.e):t.hasResult?(t.result=b(t.self._resFn)(t.newState),t.result===y?t.o.onError(t.result.e):(n=b(t.self._timeFn)(t.newState))===y?t.o.onError(n.e):void e(t,n)):void t.o.onCompleted()}M.generateWithAbsoluteTime=function(t,e,n,i,r,o){return $(o)||(o=E),new Mh(t,e,n,i,r,o)};h(Rh,Nh=A),Rh.prototype.subscribeCore=function(t){t={o:t,self:this,newState:this._state,first:!0,hasResult:!1};return this._s.scheduleRecursiveFuture(t,0,Ih)};var Nh,Ph=Rh;function Rh(t,e,n,i,r,o){this._state=t,this._cndFn=e,this._itrFn=n,this._resFn=i,this._timeFn=r,this._s=o,Nh.call(this)}function Ih(t,e){if(t.hasResult&&t.o.onNext(t.result),t.first)t.first=!1;else if(t.newState=b(t.self._itrFn)(t.newState),t.newState===y)return t.o.onError(t.newState.e);var n;return t.hasResult=b(t.self._cndFn)(t.newState),t.hasResult===y?t.o.onError(t.hasResult.e):t.hasResult?(t.result=b(t.self._resFn)(t.newState),t.result===y?t.o.onError(t.result.e):(n=b(t.self._timeFn)(t.newState))===y?t.o.onError(n.e):void e(t,n)):void t.o.onCompleted()}M.generateWithRelativeTime=function(t,e,n,i,r,o){return $(o)||(o=E),new Ph(t,e,n,i,r,o)};h(Fh,Lh=A),Fh.prototype.subscribeCore=function(t){var e=new C;return e.setDisposable(this._s.scheduleFuture([this.source,t,e],this._dt,zh)),e};var Lh,Hh=Fh;function Fh(t,e,n){this.source=t,this._dt=e,this._s=n,Lh.call(this)}function zh(t,e){var n=e[0],i=e[1];e[2].setDisposable(n.subscribe(i))}e.delaySubscription=function(t,e){return $(e)||(e=E),new Hh(this,t,e)};h(Wh,Vh=A),Wh.prototype.subscribeCore=function(t){return this.source.subscribe(new qh(t,this))};var Vh,jh=Wh;function Wh(t,e,n){this.source=t,this._d=e,this._s=n,Vh.call(this)}h(Uh,Bh=D),Uh.prototype.next=function(t){var e=this._s.now();for(this._q.push({interval:e,value:t});0<this._q.length&&e-this._q[0].interval>=this._d;)this._o.onNext(this._q.shift().value)},Uh.prototype.error=function(t){this._o.onError(t)},Uh.prototype.completed=function(){for(var t=this._s.now();0<this._q.length&&t-this._q[0].interval>=this._d;)this._o.onNext(this._q.shift().value);this._o.onCompleted()};var Bh,qh=Uh;function Uh(t,e){this._o=t,this._s=e._s,this._d=e._d,this._q=[],Bh.call(this)}e.skipLastWithTime=function(t,e){return $(e)||(e=E),new jh(this,t,e)};h(Kh,Yh=A),Kh.prototype.subscribeCore=function(t){return this.source.subscribe(new Zh(t,this._d,this._s))};var Yh,Gh=Kh;function Kh(t,e,n){this.source=t,this._d=e,this._s=n,Yh.call(this)}h(Qh,Xh=D),Qh.prototype.next=function(t){var e=this._s.now();for(this._q.push({interval:e,value:t});0<this._q.length&&e-this._q[0].interval>=this._d;)this._q.shift()},Qh.prototype.error=function(t){this._o.onError(t)},Qh.prototype.completed=function(){for(var t=this._s.now();0<this._q.length;){var e=this._q.shift();t-e.interval<=this._d&&this._o.onNext(e.value)}this._o.onCompleted()};var Xh,Zh=Qh;function Qh(t,e,n){this._o=t,this._d=e,this._s=n,this._q=[],Xh.call(this)}e.takeLastWithTime=function(t,e){return $(e)||(e=E),new Gh(this,t,e)},e.takeLastBufferWithTime=function(o,s){var t=this;return $(s)||(s=E),new P(function(i){var r=[];return t.subscribe(function(t){var e=s.now();for(r.push({interval:e,value:t});0<r.length&&e-r[0].interval>=o;)r.shift()},function(t){i.onError(t)},function(){for(var t=s.now(),e=[];0<r.length;){var n=r.shift();t-n.interval<=o&&e.push(n.value)}i.onNext(e),i.onCompleted()})},t)};h(ed,Jh=A),ed.prototype.subscribeCore=function(t){return new k(this._s.scheduleFuture(t,this._d,nd),this.source.subscribe(t))};var Jh,td=ed;function ed(t,e,n){this.source=t,this._d=e,this._s=n,Jh.call(this)}
1function nd(t,e){e.onCompleted()}e.takeWithTime=function(t,e){return $(e)||(e=E),new td(this,t,e)};h(od,id=A),od.prototype.subscribeCore=function(t){return new k(this._s.scheduleFuture(this,this._d,sd),this.source.subscribe(new ld(t,this)))};var id,rd=od;function od(t,e,n){this.source=t,this._d=e,this._s=n,this._open=!1,id.call(this)}function sd(t,e){e._open=!0}h(ud,ad=D),ud.prototype.next=function(t){this._p._open&&this._o.onNext(t)},ud.prototype.error=function(t){this._o.onError(t)},ud.prototype.completed=function(){this._o.onCompleted()};var ad,ld=ud;function ud(t,e){this._o=t,this._p=e,ad.call(this)}e.skipWithTime=function(t,e){return $(e)||(e=E),new rd(this,t,e)};h(dd,cd=A),dd.prototype.subscribeCore=function(t){return this._open=!1,new k(this._s.scheduleFuture(this,this._st,pd),this.source.subscribe(new md(t,this)))};var cd,hd=dd;function dd(t,e,n){this.source=t,this._st=e,this._s=n,cd.call(this)}function pd(t,e){e._open=!0}h(gd,fd=D),gd.prototype.next=function(t){this._p._open&&this._o.onNext(t)},gd.prototype.error=function(t){this._o.onError(t)},gd.prototype.completed=function(){this._o.onCompleted()};var fd,md=gd;function gd(t,e){this._o=t,this._p=e,fd.call(this)}e.skipUntilWithTime=function(t,e){return $(e)||(e=E),new hd(this,t,e)},e.takeUntilWithTime=function(e,n){$(n)||(n=E);var i=this;return new P(function(t){return new k(n.scheduleFuture(t,e,function(t,e){e.onCompleted()}),i.subscribe(t))},i)},e.throttle=function(t,r){$(r)||(r=E);var o=+t||0;if(o<=0)throw new RangeError("windowDuration cannot be less or equal zero.");var e=this;return new P(function(n){var i=0;return e.subscribe(function(t){var e=r.now();(0===i||o<=e-i)&&(i=e,n.onNext(t))},function(t){n.onError(t)},function(){n.onCompleted()})},e)};h(bd,vd=D),bd.prototype.next=function(t){t=b(this._xform["@@transducer/step"]).call(this._xform,this._o,t);t===y&&this._o.onError(t.e)},bd.prototype.error=function(t){this._o.onError(t)},bd.prototype.completed=function(){this._xform["@@transducer/result"](this._o)};var vd,yd=bd;function bd(t,e){this._o=t,this._xform=e,vd.call(this)}e.transduce=function(i){var r=this;return new P(function(t){var e,n=i((e=t,{"@@transducer/init":function(){return e},"@@transducer/step":function(t,e){return t.onNext(e)},"@@transducer/result":function(t){return t.onCompleted()}}));return r.subscribe(new yd(t,n))},r)};h(xd,_d=A),xd.prototype.subscribeCore=function(t){var e=new x,n=new w,t={hasCurrent:!1,isStopped:!1,o:t,g:n};return n.add(e),e.setDisposable(this.source.subscribe(new kd(t))),n};var _d,wd=xd;function xd(t){this.source=t,_d.call(this)}h($d,Cd=D),$d.prototype.next=function(t){var e;this._s.hasCurrent||(this._s.hasCurrent=!0,f(t)&&(t=N(t)),e=new x,this._s.g.add(e),e.setDisposable(t.subscribe(new Sd(this._s,e))))},$d.prototype.error=function(t){this._s.o.onError(t)},$d.prototype.completed=function(){this._s.isStopped=!0,this._s.hasCurrent||1!==this._s.g.length||this._s.o.onCompleted()},h(Sd,Cd),Sd.prototype.next=function(t){this._s.o.onNext(t)},Sd.prototype.error=function(t){this._s.o.onError(t)},Sd.prototype.completed=function(){this._s.g.remove(this._i),this._s.hasCurrent=!1,this._s.isStopped&&1===this._s.g.length&&this._s.o.onCompleted()};var Cd,kd=$d;function $d(t){this._s=t,Cd.call(this)}function Sd(t,e){this._s=t,this._i=e,Cd.call(this)}e.switchFirst=function(){return new wd(this)},e.flatMapFirst=e.exhaustMap=function(t,e,n){return new en(this,t,e,n).switchFirst()},e.flatMapWithMaxConcurrent=e.flatMapMaxConcurrent=function(t,e,n,i){return new en(this,e,n,i).merge(t)};
1var Ed,Td,e=a.VirtualTimeScheduler=(h(Dd,Ed=r),(O=Dd.prototype).now=function(){return this.toAbsoluteTime(this.clock)},O.schedule=function(t,e){return this.scheduleAbsolute(t,this.clock,e)},O.scheduleFuture=function(t,e,n){e=e instanceof Date?this.toRelativeTime(e-this.now()):this.toRelativeTime(e);return this.scheduleRelative(t,e,n)},O.add=n,O.toAbsoluteTime=n,O.toRelativeTime=n,O.schedulePeriodic=function(t,e,n){return new Qt(this,t,e,n).start()},O.scheduleRelative=function(t,e,n){e=this.add(this.clock,e);return this.scheduleAbsolute(t,e,n)},O.start=function(){if(!this.isEnabled){this.isEnabled=!0;do{var t=this.getNext()}while(null!==t?(0<this.comparer(t.dueTime,this.clock)&&(this.clock=t.dueTime),t.invoke()):this.isEnabled=!1,this.isEnabled)}},O.stop=function(){this.isEnabled=!1},O.advanceTo=function(t){var e=this.comparer(this.clock,t);if(0<this.comparer(this.clock,t))throw new rt;if(0!==e&&!this.isEnabled){this.isEnabled=!0;do{var n=this.getNext()}while(null!==n&&this.comparer(n.dueTime,t)<=0?(0<this.comparer(n.dueTime,this.clock)&&(this.clock=n.dueTime),n.invoke()):this.isEnabled=!1,this.isEnabled);this.clock=t}},O.advanceBy=function(t){var t=this.add(this.clock,t),e=this.comparer(this.clock,t);if(0<e)throw new rt;0!==e&&this.advanceTo(t)},O.sleep=function(t){t=this.add(this.clock,t);if(0<=this.comparer(this.clock,t))throw new rt;this.clock=t},O.getNext=function(){for(;0<this.queue.length;){var t=this.queue.peek();if(!t.isCancelled())return t;this.queue.dequeue()}return null},O.scheduleAbsolute=function(t,e,n){var i=this;var r=new Yt(this,t,function(t,e){return i.queue.remove(r),n(t,e)},e,this.comparer);return this.queue.enqueue(r),r.disposable},Dd);function Dd(t,e){this.clock=t,this.comparer=e,this.isEnabled=!1,this.queue=new It(1024),Ed.call(this)}function Md(t,e){Td.call(this,null==t?0:t,e||j)}function Ad(t){this.predicate=t}function Od(t){this.predicate=t}a.HistoricalScheduler=(Td=a.VirtualTimeScheduler,h(Md,Td),(r=Md.prototype).add=function(t,e){return t+e},r.toAbsoluteTime=function(t){return new Date(t).getTime()},r.toRelativeTime=function(t){return t},Md),Ad.prototype.equals=function(t){return t===this||null!=t&&"N"===t.kind&&this.predicate(t.value)},Od.prototype.equals=function(t){return t===this||null!=t&&"E"===t.kind&&this.predicate(t.error)};var Nd=a.ReactiveTest={created:100,subscribed:200,disposed:1e3,onNext:function(t,e){return new Pd(t,"function"==typeof e?new Ad(e):T.createOnNext(e))},onError:function(t,e){return new Pd(t,"function"==typeof e?new Od(e):T.createOnError(e))},onCompleted:function(t){return new Pd(t,T.createOnCompleted())},subscribe:function(t,e){return new Rd(t,e)}},Pd=a.Recorded=function(t,e,n){this.time=t,this.value=e,this.comparer=n||V},Rd=(Pd.prototype.equals=function(t){return this.time===t.time&&this.comparer(this.value,t.value)},Pd.prototype.toString=function(){return this.value.toString()+"@"+this.time},a.Subscription=function(t,e){this.subscribe=t,this.unsubscribe=e||Number.MAX_VALUE});Rd.prototype.equals=function(t){return this.subscribe===t.subscribe&&this.unsubscribe===t.unsubscribe},Rd.prototype.toString=function(){return"("+this.subscribe+", "+(this.unsubscribe===Number.MAX_VALUE?"Infinite":this.unsubscribe)+")"};(a.MockDisposable=function(t){this.scheduler=t,this.disposes=[],this.disposes.push(this.scheduler.clock)}).prototype.dispose=function(){this.disposes.push(this.scheduler.clock)},h(Hd,Id=i),(n=Hd.prototype).onNext=function(t){this.messages.push(new Pd(this.scheduler.clock,T.createOnNext(t)))},n.onError=function(t){this.messages.push(new Pd(this.scheduler.clock,T.createOnError(t)))},n.onCompleted=function(){this.messages.push(new Pd(this.scheduler.clock,T.createOnCompleted()))};var Id,Ld=Hd;function Hd(t){Id.call(this),this.scheduler=t,this.messages=[]}function Fd(t,e){var r=this;this.scheduler=t,this.messages=e,this.subscriptions=[],this.observers=[];for(var n=0,i=this.messages.length;n<i;n++){var o=this.messages[n];!function(i){t.scheduleAbsolute(null,o.time,function(){for(var t=r.observers.slice(0),e=0,n=t.length;e<n;e++)i.accept(t[e]);return d})}(o.value)}}Fd.prototype.then=function(e,n){var i,r=this,o=(this.subscriptions.push(new Rd(this.scheduler.clock)),this.subscriptions.length-1),s=a.Observer.create(function(t){var t=e(t),t=(i=t&&"function"==typeof t.then?t:(t=r.scheduler.clock,new Fd(r.scheduler,[a.ReactiveTest.onNext(t,m),a.ReactiveTest.onCompleted(t)])),r.observers.indexOf(s));r.observers.splice(t,1),r.subscriptions[o]=new Rd(r.subscriptions[o].subscribe,r.scheduler.clock)},function(t){n(t);t=r.observers.indexOf(s);r.observers.splice(t,1),r.subscriptions[o]=new Rd(r.subscriptions[o].subscribe,r.scheduler.clock)});return this.observers.push(s),i||new Fd(this.scheduler,this.messages)};h(jd,zd=M),jd.prototype._subscribe=function(e){var n=this,i=(this.observers.push(e),this.subscriptions.push(new Rd(this.scheduler.clock)),this.subscriptions.length-1);return Ht(function(){var t=n.observers.indexOf(e);n.observers.splice(t,1),n.subscriptions[i]=new Rd(n.subscriptions[i].subscribe,n.scheduler.clock)})};var zd,Vd=jd;
1function jd(t,e){zd.call(this);var n,r=this;this.scheduler=t,this.messages=e,this.subscriptions=[],this.observers=[];for(var i=0,o=this.messages.length;i<o;i++)!function(i){t.scheduleAbsolute(null,n.time,function(){for(var t=r.observers.slice(0),e=0,n=t.length;e<n;e++)i.accept(t[e]);return d})}((n=this.messages[i]).value)}h(Ud,Wd=M),Ud.prototype._subscribe=function(e){for(var n,i=this,t=(this.subscriptions.push(new Rd(this.scheduler.clock)),this.subscriptions.length-1),r=new w,o=0,s=this.messages.length;o<s;o++)!function(t){r.add(i.scheduler.scheduleRelative(null,n.time,function(){return t.accept(e),d}))}((n=this.messages[o]).value);return Ht(function(){i.subscriptions[t]=new Rd(i.subscriptions[t].subscribe,i.scheduler.clock),r.dispose()})};var Wd,Bd,qd=Ud;function Ud(t,e){Wd.call(this),this.scheduler=t,this.messages=e,this.subscriptions=[]}function Yd(t,e){return e<t?1:t<e?-1:0}function Gd(){Bd.call(this,0,Yd)}a.TestScheduler=(h(Gd,Bd=e),Gd.prototype.scheduleAbsolute=function(t,e,n){return e<=this.clock&&(e=this.clock+1),Bd.prototype.scheduleAbsolute.call(this,t,e,n)},Gd.prototype.add=function(t,e){return t+e},Gd.prototype.toAbsoluteTime=function(t){return new Date(t).getTime()},Gd.prototype.toRelativeTime=function(t){return t},Gd.prototype.startScheduler=function(t,e){null==(e=e||{}).created&&(e.created=Nd.created),null==e.subscribed&&(e.subscribed=Nd.subscribed),null==e.disposed&&(e.disposed=Nd.disposed);var n,i,r=this.createObserver();return this.scheduleAbsolute(null,e.created,function(){return n=t(),d}),this.scheduleAbsolute(null,e.subscribed,function(){return i=n.subscribe(r),d}),this.scheduleAbsolute(null,e.disposed,function(){return i.dispose(),d}),this.start(),r},Gd.prototype.createHotObservable=function(){var t=arguments.length;if(Array.isArray(arguments[0]))e=arguments[0];else for(var e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new Vd(this,e)},Gd.prototype.createColdObservable=function(){var t=arguments.length;if(Array.isArray(arguments[0]))e=arguments[0];else for(var e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new qd(this,e)},Gd.prototype.createResolvedPromise=function(t,e){return new Fd(this,[a.ReactiveTest.onNext(t,e),a.ReactiveTest.onCompleted(t)])},Gd.prototype.createRejectedPromise=function(t,e){return new Fd(this,[a.ReactiveTest.onError(t,e)])},Gd.prototype.createObserver=function(){return new Ld(this)},Gd);var Kd,P=a.AnonymousObservable=(h(Zd,Kd=M),Zd.prototype._subscribe=function(t){var t=new Jd(t),e=[t,this];return S.scheduleRequired()?S.schedule(e,Xd):Xd(0,e),t},Zd);function Xd(t,e){var n=e[0],e=e[1],e=b(e.__subscribe).call(e,n);e!==y||n.fail(y.e)||s(y.e),n.setDisposable((n=e)&&v(n.dispose)?n:v(n)?Ht(n):d)}function Zd(t,e){this.source=e,this.__subscribe=t,Kd.call(this)}h(tp,Qd=D),(O=tp.prototype).next=function(t){t=b(this.observer.onNext).call(this.observer,t);t===y&&(this.dispose(),s(t.e))},O.error=function(t){t=b(this.observer.onError).call(this.observer,t);this.dispose(),t===y&&s(t.e)},O.completed=function(){var t=b(this.observer.onCompleted).call(this.observer);this.dispose(),t===y&&s(t.e)},O.setDisposable=function(t){this.m.setDisposable(t)},O.getDisposable=function(){return this.m.getDisposable()},O.dispose=function(){Qd.prototype.dispose.call(this),this.m.dispose()};var Qd,Jd=tp;function tp(t){Qd.call(this),this.observer=t,this.m=new x}h(ip,ep=A),ip.prototype.subscribeCore=function(t){return new k(this._m.getDisposable(),this._u.subscribe(t))};var ep,np=ip;function ip(t,e){this._m=t,this._u=e,ep.call(this)}h(sp,rp=M),sp.prototype._subscribe=function(t){return this.underlyingObservable.subscribe(t)};var rp,op=sp;function sp(t,e,n){rp.call(this),this.key=t,this.underlyingObservable=n?new np(n,e):e}var ap,R=a.Subject=(h(lp,ap=M),t(lp.prototype,i.prototype,{_subscribe:function(t){return p(this),this.isStopped?(this.hasError?t.onError(this.error):t.onCompleted(),d):(this.observers.push(t),new oc(this,t))},hasObservers:function(){return p(this),0<this.observers.length},onCompleted:function(){if(p(this),!this.isStopped){this.isStopped=!0;for(var t=0,e=B(this.observers),n=e.length;t<n;t++)e[t].onCompleted();this.observers.length=0}},onError:function(t){if(p(this),!this.isStopped){this.isStopped=!0,this.error=t,this.hasError=!0;for(var e=0,n=B(this.observers),i=n.length;e<i;e++)n[e].onError(t);this.observers.length=0}},onNext:function(t){if(p(this),!this.isStopped)for(var e=0,n=B(this.observers),i=n.length;e<i;e++)n[e].onNext(t)},dispose:function(){this.isDisposed=!0,this.observers=null}}),lp.create=function(t,e){return new wp(t,e)},lp);function lp(){ap.call(this),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}var up,cp=a.AsyncSubject=(h(hp,up=M),t(hp.prototype,i.prototype,{_subscribe:function(t){return p(this),this.isStopped?(this.hasError?t.onError(this.error):(this.hasValue&&t.onNext(this.value),t.onCompleted()),d):(this.observers.push(t),new oc(this,t))},hasObservers:function(){return p(this),0<this.observers.length},onCompleted:function(){var t;if(p(this),!this.isStopped){this.isStopped=!0;var e=B(this.observers),n=e.length;if(this.hasValue)for(t=0;t<n;t++){var i=e[t];i.onNext(this.value),i.onCompleted()}else for(t=0;t<n;t++)e[t].onCompleted();this.observers.length=0}},onError:function(t){if(p(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=t;for(var e=0,n=B(this.observers),i=n.length;e<i;e++)n[e].onError(t);this.observers.length=0}},onNext:function(t){p(this),this.isStopped||(this.value=t,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.error=null,this.value=null}}),hp);function hp(){up.call(this),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}var dp,pp=a.BehaviorSubject=(h(fp,dp=M),t(fp.prototype,i.prototype,{_subscribe:function(t){return p(this),this.isStopped?(this.hasError?t.onError(this.error):t.onCompleted(),d):(this.observers.push(t),t.onNext(this.value),new oc(this,t))},getValue:function(){return p(this),this.hasError&&s(this.error),this.value},hasObservers:function(){return p(this),0<this.observers.length},onCompleted:function(){if(p(this),!this.isStopped){this.isStopped=!0;for(var t=0,e=B(this.observers),n=e.length;t<n;t++)e[t].onCompleted();this.observers.length=0}},onError:function(t){if(p(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=t;for(var e=0,n=B(this.observers),i=n.length;e<i;e++)n[e].onError(t);this.observers.length=0}},onNext:function(t){if(p(this),!this.isStopped){this.value=t;for(var e=0,n=B(this.observers),i=n.length;e<i;e++)n[e].onNext(t)}},dispose:function(){this.isDisposed=!0,this.observers=null,this.value=null,this.error=null}}),fp);
1function fp(t){dp.call(this),this.value=t,this.observers=[],this.isDisposed=!1,this.isStopped=!1,this.hasError=!1}var mp,gp,vp=a.ReplaySubject=(mp=M,gp=Math.pow(2,53)-1,h(yp,mp),t(yp.prototype,i.prototype,{_subscribe:function(t){p(this);var e,n,i=new Be(this.scheduler,t),t=(e=this,n=i,Ht(function(){n.dispose(),e.isDisposed||e.observers.splice(e.observers.indexOf(n),1)}));this._trim(this.scheduler.now()),this.observers.push(i);for(var r=0,o=this.q.length;r<o;r++)i.onNext(this.q[r].value);return this.hasError?i.onError(this.error):this.isStopped&&i.onCompleted(),i.ensureActive(),t},hasObservers:function(){return p(this),0<this.observers.length},_trim:function(t){for(;this.q.length>this.bufferSize;)this.q.shift();for(;0<this.q.length&&t-this.q[0].interval>this.windowSize;)this.q.shift()},onNext:function(t){if(p(this),!this.isStopped){var e=this.scheduler.now();this.q.push({interval:e,value:t}),this._trim(e);for(var n=0,i=B(this.observers),r=i.length;n<r;n++){var o=i[n];o.onNext(t),o.ensureActive()}}},onError:function(t){if(p(this),!this.isStopped){this.isStopped=!0,this.error=t,this.hasError=!0;var e=this.scheduler.now();this._trim(e);for(var n=0,i=B(this.observers),r=i.length;n<r;n++){var o=i[n];o.onError(t),o.ensureActive()}this.observers.length=0}},onCompleted:function(){if(p(this),!this.isStopped){this.isStopped=!0;var t=this.scheduler.now();this._trim(t);for(var e=0,n=B(this.observers),i=n.length;e<i;e++){var r=n[e];r.onCompleted(),r.ensureActive()}this.observers.length=0}},dispose:function(){this.isDisposed=!0,this.observers=null}}),yp);function yp(t,e,n){this.bufferSize=null==t?gp:t,this.windowSize=null==e?gp:e,this.scheduler=n||S,this.q=[],this.observers=[],this.isStopped=!1,this.isDisposed=!1,this.hasError=!1,this.error=null,mp.call(this)}var bp,_p,wp=a.AnonymousSubject=(h(xp,bp=M),t(xp.prototype,i.prototype,{_subscribe:function(t){return this.observable.subscribe(t)},onCompleted:function(){this.observer.onCompleted()},onError:function(t){this.observer.onError(t)},onNext:function(t){this.observer.onNext(t)}}),xp);function xp(t,e){this.observer=t,this.observable=e,bp.call(this)}function Cp(){_p.call(this)}a.Pauser=(h(Cp,_p=R),Cp.prototype.pause=function(){this.onNext(!1)},Cp.prototype.resume=function(){this.onNext(!0)},Cp),"function"==typeof define&&"object"==typeof define.amd&&define.amd?(l.Rx=a,define(function(){return a})):L&&H?F?(H.exports=a).Rx=a:L.Rx=a:l.Rx=a;var kp=X()}.call(this),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.dawaAutocomplete=t.dawaAutocomplete||{})}(this,function(t){"use strict";var e="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}var r=n,o=i;function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===n||!r)&&setTimeout)return(r=setTimeout)(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}"function"==typeof e.setTimeout&&(r=setTimeout),"function"==typeof e.clearTimeout&&(o=clearTimeout);var a,l=[],u=!1,c=-1;function I(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length)&&h()}function h(){if(!u){for(var t=s(I),e=(u=!0,l.length);e;){for(a=l,l=[];++c<e;)a&&a[c].run();c=-1,e=l.length}a=null,u=!1,!function(e){if(o===clearTimeout)return clearTimeout(e);if((o===i||!o)&&clearTimeout)return(o=clearTimeout)(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(t)}}function d(t,e){this.fun=t,this.array=e}d.prototype.run=function(){this.fun.apply(null,this.array)};function p(){}var f=p,m=p,L=p,H=p,F=p,z=p,V=p;var g=e.performance||{},j=g.now||g.mozNow||g.msNow||g.oNow||g.webkitNow||function(){return(new Date).getTime()};var W=new Date;var v={nextTick:function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new d(t,e)),1!==l.length||u||s(h)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:f,addListener:m,once:L,off:H,removeListener:F,removeAllListeners:z,emit:V,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*j.call(g),n=Math.floor(e),e=Math.floor(e%1*1e9);return t&&(n-=t[0],(e-=t[1])<0)&&(n--,e+=1e9),[n,e]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-W)/1e3}},B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}
1,e=function(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t};function y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var q=Object.prototype.hasOwnProperty;function U(){}U.prototype=Object.create(null);function b(){return new U}function Y(t,e){this.attrs=b(),this.attrsArr=[],this.newAttrs=b(),this.staticsApplied=!1,this.key=e,this.keyMap=b(),this.keyMapValid=!0,this.focused=!1,this.nodeName=t,this.text=null}function _(t,e,n){return e=new Y(e,n),t.__incrementalDOMData=e}function G(t,e,n,i){e=e;var e="svg"===n?"http://www.w3.org/2000/svg":"foreignObject"===w(e).nodeName?null:e.namespaceURI,r=void 0,r=e?t.createElementNS(e,n):t.createElement(n);return _(r,n,i),r}var w=function(t){return K(t),t.__incrementalDOMData},K=function t(e){if(!e.__incrementalDOMData){var n=e instanceof Element,i=n?e.localName:e.nodeName,r=n?e.getAttribute("key"):null,i=_(e,i,r);if(r&&(w(e.parentNode).keyMap[r]=e),n)for(var o=e.attributes,s=i.attrs,a=i.newAttrs,l=i.attrsArr,u=0;u<o.length;u+=1){var c=o[u],h=c.name,c=c.value;s[h]=c,a[h]=void 0,l.push(h),l.push(c)}for(var d=e.firstChild;d;d=d.nextSibling)t(d)}},x={nodesCreated:null,nodesDeleted:null};function C(){this.created=x.nodesCreated&&[],this.deleted=x.nodesDeleted&&[]}C.prototype.markCreated=function(t){this.created&&this.created.push(t)},C.prototype.markDeleted=function(t){this.deleted&&this.deleted.push(t)};function X(t){var e=$;return $=t,e}function k(t){var e=S;return S=t,e}function Z(t,e){for(var n=0;n<t.length;n+=1)w(t[n]).focused=e}function Q(t,e,n){var i,r=T,o=A,s=D,a=M,l=!1,u=!1,c=(T=new C,A=t.ownerDocument,M=t.parentNode,"production"!==v.env.NODE_ENV&&(l=X(!1),u=k(!1)),i=M,(h=ut(c=t))&&c.contains(h)?lt(h,i):[]),h=(Z(c,!0),ot(t,e,n));if(Z(c,!1),"production"!==v.env.NODE_ENV){if($)throw new Error("elementOpenEnd() must be called after calling elementOpenStart().");X(l),k(u)}return T.notifyChanges(),T=r,A=o,D=s,M=a,h}function J(t,e,n){return t=w(t),e===t.nodeName&&n==t.key}function tt(t,e,n){t[e]=n}function et(t,e,n,i){"production"!==v.env.NODE_ENV&&(E("elementOpen"),st("elementOpen"));var r=mt(t,e),t=w(r);if(!t.staticsApplied){if(n)for(var o=0;o<n.length;o+=2){var s=n[o],a=n[o+1];O(r,s,a)}t.staticsApplied=!0}for(var l=t.attrsArr,u=t.newAttrs,c=!l.length,h=bt,d=0;h<arguments.length;h+=2,d+=2){var p=arguments[h];if(c)u[l[d]=p]=void 0;else if(l[d]!==p)break;a=arguments[h+1];!c&&l[d+1]===a||(l[d+1]=a,O(r,p,a))}if(h<arguments.length||d<l.length){for(;h<arguments.length;h+=1,d+=1)l[d]=arguments[h];for(d<l.length&&(l.length=d),h=0;h<l.length;h+=2){s=l[h],a=l[h+1];u[s]=a}for(var f in u)O(r,f,u[f]),u[f]=void 0}return r}function nt(t){"production"!==v.env.NODE_ENV&&E("elementClose");var e=gt();return"production"!==v.env.NODE_ENV&&at(w(e).nodeName,t),e}function it(o,s,a){if(0<o.suggestions.length&&o.focused){xt("ul","",["class","dawa-autocomplete-suggestions","role","listbox"]);for(var t=0;t<o.suggestions.length;++t)!function(e){var t=o.suggestions[e],n="dawa-autocomplete-suggestion";o.selected===e&&(n+=" dawa-selected"),xt("li","",["role","option"],"class",n,"onmousedown",function(t){s(e),t.preventDefault()});var i=(i=t.forslagstekst.split("\n")).map(function(t){return t.replace(/ /g," ")});if(a){P(i[0]);for(var r=1;r<i.length;++r)wt("br"),P(i[r])}else P(i.join(", "));Ct("li")}(t);Ct("ul")}}function rt(e,n){function i(t){var e=t.value,t=t.selectionStart;v.caretpos=t,v.inputText=e,g(e,t)}function r(t){t=v.suggestions[t],v.inputText=t.tekst,v.caretpos=t.caretpos,v.suggestions=[],u(t),y(!0)}function t(t){var e=window.event?t.keyCode:t.which;if(0<v.suggestions.length&&v.focused){if(40===e)v.selected=(v.selected+1)%v.suggestions.length,y();else if(38===e)v.selected=(v.selected-1+v.suggestions.length)%v.suggestions.length,y();else{if(13!==e&&9!==e)return!0;r(v.selected)}return t.preventDefault(),!1}}function o(){v.focused=!0,y()}function s(){return v.focused=!1,y(),!1}function a(t){i(t.target)}function l(t){return i(t.target)}var u=n.onSelect,c=n.onTextChange,h=n.render||kt,d=!1,p="",f=0,m=document.createElement("div"),g=(e.parentNode.insertBefore(m,e.nextSibling),function(t,e){p===t&&f===e||(c(t,e),p=t,f=e)}),v={caretpos:2,inputText:"",selected:0,focused:document.activeElement===e,suggestions:[]},y=void 0,b=!1,_=!1;return(y=function(t){t&&(_=!0),b||(b=!0,requestAnimationFrame(function(){d||(b=!1,_&&(e.value=v.inputText,e.setSelectionRange(v.caretpos,v.caretpos)),_=!1,h(m,v,r,n.multiline))}))})(),e.addEventListener("keydown",t),e.addEventListener("blur",s),e.addEventListener("focus",o),e.addEventListener("input",a),e.addEventListener("mouseup",l),e.setAttribute("aria-autocomplete","list"),e.setAttribute("autocomplete","off"),{destroy:function(){d=!0,e.removeEventListener("keydown",t),e.removeEventListener("blur",s),e.removeEventListener("focus",o),e.removeEventListener("input",a),e.removeEventListener("mouseup",l),_t(m,function(){}),m.remove()},setSuggestions:function(t){v.suggestions=t,v.selected=0,y()},selectAndClose:function(t){v.inputText=t,v.caretpos=t.length,v.suggestions=[],v.selected=0,y(!0)}}}var ot,$=!(C.prototype.notifyChanges=function(){this.created&&0<this.created.length&&x.nodesCreated(this.created),this.deleted&&0<this.deleted.length&&x.nodesDeleted(this.deleted)}),S=!1,E=function(t){if($)throw new Error(t+"() can not be called between elementOpenStart() and elementOpenEnd().")},st=function(t){if(S)throw new Error(t+"() may not be called inside an element that has called skip().")},at=function(t,e){if(t!==e)throw new Error('Received a call to close "'+e+'" but "'+t+'" was open.')},lt=function(t,e){for(var n=[],i=t;i!==e;)n.push(i),i=i.parentNode;return n},ut=function(t){var e,t=function(t){for(var e=t,n=e;e;)e=(n=e).parentNode;return n}(t);return(e=t)instanceof Document||e instanceof DocumentFragment?t.activeElement:null},T=null,D=null,M=null,A=null,ct=(ot=function(t,e,n){if(D=t,dt(),e(n),ft(),"production"!==v.env.NODE_ENV){var e=D,i=t;if(e!==i){for(var r=e,o=[];r&&r!==i;)o.push(r.nodeName.toLowerCase()),r=r.parentNode;throw new Error("One or more tags were not closed:\n"+o.join("\n"))}}return t},function(t,e){if(!D||!J(D,t,e)){var n=w(M),i=D&&w(D),r=n.keyMap,o=void 0;if(e&&(l=r[e])&&(J(l,t,e)?o=l:l===D?T.markDeleted(l):ht(M,l,r)),o||(o="#text"===t?function(t){t=t.createTextNode("");return _(t,"#text",null),t}(A):G(A,M,t,e),e&&(r[e]=o),T.markCreated(o)),w(o).focused)for(var s=M,a=o,l=D,u=a.nextSibling,c=l;c!==a;){var h=c.nextSibling;s.insertBefore(c,u),c=h}else i&&i.key&&!i.focused?(M.replaceChild(o,D),n.keyMapValid=!1):M.insertBefore(o,D);D=o}}),ht=function(t,e,n){t.removeChild(e),T.markDeleted(e);t=w(e).key;t&&delete n[t]},dt=function(){M=D,D=null},pt=function(){D=D?D.nextSibling:M.firstChild},ft=function(){var t=M,e=w(t),n=e.keyMap,i=e.keyMapValid,r=t.lastChild,o=void 0;if(r!==D||!i){for(;r!==D;)ht(t,r,n),r=t.lastChild;if(!i){for(o in n)(r=n[o]).parentNode!==t&&(T.markDeleted(r),delete n[o]);e.keyMapValid=!0}}M=(D=M).parentNode},mt=function(t,e){return pt(),ct(t,e),dt(),M},gt=function(){return"production"!==v.env.NODE_ENV&&k(!1),ft(),D},vt="__default",yt=function(t){return 0===t.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===t.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":void 0},O=function(t,e,n){var i=w(t).attrs;i[e]!==n&&((N[e]||N[vt])(t,e,n),i[e]=n)},N=b(),bt=(N[vt]=function(t,e,n){var i=void 0===n?"undefined":B(n);"object"===i||"function"===i?tt(t,e,n):(i=t,t=e,null==(e=n)?i.removeAttribute(t):(n=yt(t))?i.setAttributeNS(n,t,e):i.setAttribute(t,e))},N.style=function(t,e,n){if("string"==typeof n)t.style.cssText=n;else{t.style.cssText="";var i,r=t.style,o=n;for(i in o)l=i,q.call(o,l)&&(l=r,a=o[s=i],0<=s.indexOf("-")?l.setProperty(s,a):l[s]=a)}var s,a,l},3),_t=Q,wt=function(t,e,n,i){return et.apply(null,arguments),nt(t)},xt=et,Ct=nt,P=function(t,e){"production"!==v.env.NODE_ENV&&(E("text"),st("text"));pt(),ct("#text",null);var n=D,i=w(n);if(i.text!==t){for(var r=i.text=t,o=1;o<arguments.length;o+=1)r=(0,arguments[o])(r);n.data=r}return n},f=N,m=tt,kt=(f.caretpos=function(t,e,n){t.setSelectionRange(n,n)},f.value=m,function(t,e,n,i){_t(t,function(){it(e,n,i)})}),$t={params:{},minLength:2,retryDelay:500,renderCallback:function(){console.error("No renderCallback supplied")},initialRenderCallback:function(){console.error("No initialRenderCallback supplied")},type:"adresse",baseUrl:"https://api.dataforsyningen.dk",adgangsadresserOnly:!1,stormodtagerpostnumre:!0,supplerendebynavn:!0,fuzzy:!0,fetchImpl:function(t,e){return fetch(t+"?"+(n=e,Object.keys(n).map(function(t){var e=n[t];return t+"="+encodeURIComponent(e)}).join("&")),{mode:"cors"}).then(function(t){return t.json()});var n}},St=(e(R,[{key:"_getAutocompleteResponse",value:function(t,e,n,i,r,o){t=Object.assign({},this.options.params,{q:t,type:this.options.type,caretpos:e,supplerendebynavn:r,stormodtagerpostnumre:o,multilinje:!0});return this.options.fuzzy&&(t.fuzzy=""),i&&(t.adgangsadresseid=i),n&&(t.startfra="adgangsadresse"),this.options.fetchImpl(this.options.baseUrl+"/autocomplete",t)}},{key:"_scheduleRequest",value:function(t){null!==this.state.currentRequest?this.state.pendingRequest=t:(this.state.currentRequest=t,this._executeRequest())}},{key:"_executeRequest",value:function(){var e=this,n=this.state.currentRequest,t=null,i=!1,r=void 0,o=void 0;if(n.selected){var s=n.selected;if(s.type===this.options.type)return this.options.selectCallback(s),this.selected=s,void this._requestCompleted();t="adgangsadresse"===s.type?s.data.id:null,i="vejnavn"===s.type,r=s.tekst,o=s.caretpos}else r=n.text,o=n.caretpos;if(n.selectedId)return s={id:n.selectedId,type:this.options.type},this.options.fetchImpl(this.options.baseUrl+"/autocomplete",s).then(function(t){return e._handleResponse(n,t)},function(t){return e._handleFailedRequest(n,t)});n.selected||n.text.length>=this.options.minLength?this._getAutocompleteResponse(r,o,i,t,this.options.supplerendebynavn,this.options.stormodtagerpostnumre).then(function(t){return e._handleResponse(n,t)},function(t){return e._handleFailedRequest(n,t)}):this._handleResponse(n,[])}},{key:"_handleFailedRequest",value:function(t,e){var n,i=this;return console.error("DAWA request failed",e),n=this.options.retryDelay,new Promise(function(t){return setTimeout(t,n)}).then(function(){i.state.pendingRequest||i._scheduleRequest(t),i._requestCompleted()})}},{key:"_handleResponse",value:function(t,e){var n;t.selected?1===e.length?(n=e[0]).type===this.options.type?this.options.selectCallback(n):this.state.pendingRequest||(this.state.pendingRequest={selected:n}):this.options.renderCallback&&this.options.renderCallback(e):t.selectedId?1===e.length&&(this.selected=e[0],this.options.initialRenderCallback(e[0].tekst)):this.options.renderCallback&&this.options.renderCallback(e),this._requestCompleted()}},{key:"_requestCompleted",value:function(){this.state.currentRequest=this.state.pendingRequest,this.state.pendingRequest=null,this.state.currentRequest&&this._executeRequest()}},{key:"setRenderCallback",value:function(t){this.options.renderCallback=t}},{key:"setInitialRenderCallback",value:function(t){this.options.initialRenderCallback=t}},{key:"setSelectCallback",value:function(t){this.options.selectCallback=t}},{key:"update",value:function(t,e){this._scheduleRequest({text:t,caretpos:e})}},{key:"select",value:function(t){this._scheduleRequest({selected:t})}},{key:"selectInitial",value:function(t){this._scheduleRequest({selectedId:t})}},{key:"destroy",value:function(){}}]),R);function R(t){if(!(this instanceof R))throw new TypeError("Cannot call a class as a function");t=Object.assign({},$t,t||{}),this.options=t,this.state={currentRequest:null,pendingRequest:null},this.selected=null}t.dawaAutocomplete=function(t,n){n=Object.assign({select:function(){return null}},n);var e=["baseUrl","minLength","params","fuzzy","stormodtagerpostnumre","supplerendebynavn"].reduce(function(t,e){return n.hasOwnProperty(e)&&(t[e]=n[e]),t},{}),i=(n.adgangsadresserOnly?e.type="adgangsadresse":e.type="adresse",new St(e)),r=rt(t,{onSelect:function(t){i.select(t)},onTextChange:function(t,e){i.update(t,e)},render:n.render,multiline:n.multiline||!1});return i.setRenderCallback(function(t){return r.setSuggestions(t)}),i.setSelectCallback(function(t){r.selectAndClose(t.tekst),n.select(t)}),i.setInitialRenderCallback(function(t){return r.selectAndClose(t)}),n.id&&i.selectInitial(n.id),{id:function(t){return i.selectInitial(t)},destroy:function(){return r.destroy()},selected:function(){return i.selected}}}
1,Object.defineProperty(t,"__esModule",{value:!0})}),window.Modernizr||(window.Modernizr=function(t,i){function e(t,e){var n=t.charAt(0).toUpperCase()+t.substr(1);return r((t+" "+c.join(n+" ")+n).split(" "),e)}function r(t,e){for(var n in t)if(u[t[n]]!==i)return"pfx"!=e||t[n];return!1}function n(t,e){return typeof t===e}function o(t){u.cssText=t}var s,a,l={},u=(t.documentElement,t.head||t.getElementsByTagName("head")[0],t.createElement("modernizr").style),c=(Object.prototype.toString,"Webkit Moz O ms Khtml".split(" ")),h={},d=[],p={}.hasOwnProperty,f=n(p,i)||n(p.call,i)?function(t,e){return e in t&&n(t.constructor.prototype[e],i)}:function(t,e){return p.call(t,e)};for(a in h.rgba=function(){return o("background-color:rgba(150,255,150,.5)"),!!~(""+u.backgroundColor).indexOf("rgba")},h.borderradius=function(){return e("borderRadius")},h.boxshadow=function(){return e("boxShadow")},h)f(h,a)&&(s=a.toLowerCase(),l[s]=h[a](),d.push((l[s]?"":"no-")+s));return o(""),0,l._version="2.0.6",l._domPrefixes=c,l.testProp=function(t){return r([t])},l.testAllProps=e,l}(this.document)),function(t,c){function h(t){return!t||"loaded"==t||"complete"==t}function d(){for(var t=1,e=-1;y.length-++e&&(!y[e].s||(t=y[e].r)););t&&p()}function p(){var s=y.shift();b=1,s?s.t?g(function(){var t,e,n,i,r,o;"c"==s.t?(n=s,(o=c.createElement("link")).href=n.s,o.rel="stylesheet",o.type="text/css",n.e||!x&&!l?(o.onload=function(){i||(i=1,g(function(){d()},0))},n.e&&o.onload()):(r=function(e){g(function(){if(!i)try{e.sheet.cssRules.length?(i=1,d()):r(e)}catch(t){1e3==t.code||"security"==t.message||"denied"==t.message?(i=1,g(function(){d()},0)):r(e)}},0)})(o),g(function(){i||(i=1,d())},E.errorTimeout),n.e||v.parentNode.insertBefore(o,v)):(n=s,(e=c.createElement("script")).src=n.s,e.onreadystatechange=e.onload=function(){!t&&h(e.readyState)&&(t=1,d(),e.onload=e.onreadystatechange=null)},g(function(){t||(t=1,d())},E.errorTimeout),n.e?e.onload():v.parentNode.insertBefore(e,v))},0):(s(),d()):b=0}function e(t,e,n){var i,r,o,s,a,l="c"==e?k:C;return b=0,e=e||"j",f(t)?(l=l,i=t,e=e,r=this.i++,n=n,o=c.createElement(l),s=0,a={t:e,s:i,e:n},o.src=o.data=i,_||(o.style.display="none"),o.width=o.height="0","object"!=l&&(o.type=e),o.onload=o.onreadystatechange=u,"img"==l?o.onerror=u:"script"==l&&(o.onerror=function(){a.e=a.r=1,p()}),y.splice(r,0,a),w.insertBefore(o,_?null:v),g(function(){s||(w.removeChild(o),a.r=a.e=s=1,d())},E.errorTimeout)):(y.splice(this.i++,0,t),1==y.length&&p()),this;function u(){!s&&h(o.readyState)&&(a.r=s=1,b||d(),o.onload=o.onreadystatechange=null,g(function(){w.removeChild(o)}
1,0))}}function a(){var t=E;return t.loader={load:e,i:0},t}function u(t){return Object(t)===t}function f(t){return"string"==typeof t}function m(t){return"[object Function]"==r.call(t)}var n,i=c.documentElement,g=t.setTimeout,v=c.getElementsByTagName("script")[0],r={}.toString,y=[],b=0,l="MozAppearance"in i.style,_=l&&!!c.createRange().compareNode,w=_?i:v.parentNode,o=t.opera&&"[object Opera]"==r.call(t.opera),x="webkitAppearance"in i.style,i=x&&"async"in c.createElement("script"),C=l?"object":o||i?"img":"script",k=x?"img":C,s=Array.isArray||function(t){return"[object Array]"==r.call(t)},$=[],S={},E=function(t){function l(t,e,n,i,r){var o=function(t){for(var e,n=t.split("!"),i=$.length,t=n.pop(),r=n.length,o={url:t,origUrl:t,prefixes:n},s=0;s<r;s++)(e=S[n[s]])&&(o=e(o));for(s=0;s<i;s++)o=$[s](o);return o}(t),s=o.autoCallback;if(!o.bypass){if(e=e&&(m(e)?e:e[t]||e[i]||e[t.split("/").pop().split("?")[0]]),o.instead)return o.instead(t,e,n,i,r);n.load(o.url,o.forceCSS||!o.forceJS&&/css$/.test(o.url)?"c":void 0,o.noexec),(m(e)||m(s))&&n.load(function(){a(),e&&e(o.origUrl,r,i),s&&s(o.origUrl,r,i)})}}function e(t,e){function n(t){if(f(t))l(t,a,e,0,r);else if(u(t))for(i in t)t.hasOwnProperty(i)&&l(t[i],a,e,i,r)}var i,r=!!t.test,o=r?t.yep:t.nope,s=t.load||t.both,a=t.callback;n(o),n(s),t.complete&&e.load(t.complete)}var n,i,r=this.yepnope.loader;if(f(t))l(t,0,r,0);else if(s(t))for(n=0;n<t.length;n++)i=t[n],f(i)?l(i,0,r,0):s(i)?E(i):u(i)&&e(i,r);else u(t)&&e(t,r)};E.addPrefix=function(t,e){S[t]=e},E.addFilter=function(t){$.push(t)},E.errorTimeout=1e4,null==c.readyState&&c.addEventListener&&(c.readyState="loading",c.addEventListener("DOMContentLoaded",n=function(){c.removeEventListener("DOMContentLoaded",n,0),c.readyState="complete"},0)),t.yepnope=a()}(this,this.document),folia=folia||{},folia.array=folia.array||{},folia.array.remove=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e){t.splice(n,1);break}},folia.array.insert=function(t,e){-1===$.inArray(e,t)&&t.push(e)},folia=folia||{},folia.events=folia.event||{},folia.events.addListener=function(t,e,n){$(t).bind(e,n)},folia.events.removeListener=function(t,e,n){$(t).unbind(e,n)},folia.events.removeListeners=function(t,e){$(t).unbind(e)},folia.events.triggerEvent=function(t,e){$(t).trigger(e)},folia.events.EventHandler=function(){var i={};this.addListener=function(t,e,n){folia.events.addListener(i,e,$.proxy(n,t))},this.dispatchEvent=function(t){folia.events.triggerEvent(i,t)}},folia=folia||{},folia.get=function(t,e,n){n||"function"!=typeof e||(n=e,e=null),$.ajax(t,{data:e,dataType:"jsonp",success:n})},buildQuerystringCollection__=function(){var t,e,n;if(!querystringCollection__)for(querystringCollection__={},e=0,n=(t=""==(t=window.location.search.substr(1))?[]:t.split(/&/)).length;e<n;e++){var i=t[e].split(/=/),r=i[0],i=i[1];try{r=decodeURI(r)||""}catch(t){r=decodeURI(unescape(r))||""}try{i=decodeURI(i)||""}catch(t){i=decodeURI(unescape(i))||""}querystringCollection__[r.toLowerCase()]=i}},folia.querystring=function(t){return querystringCollection__||buildQuerystringCollection__(),querystringCollection__[t.toLowerCase()]||""},folia.querystring.all=function(){return querystringCollection__||buildQuerystringCollection__(),querystringCollection__||{}},folia=folia||{},folia.maps=folia.maps||{},function(t){function n(){return r=r<e.length-1?++r:0,e[r]}var i="https://{s}.maptoweb.dk/REST/MapTile.aspx?mt={type}&ol={overlay}&z={z}&x={x}&y={y}",e=["ts0","ts1","ts2","ts3","ts4","ts5","ts6","ts7","ts8","ts9"],r=-1,o=t.overlays||{};o.Cadastre=function(){var t={getTileUrl:function(t,e){return i.replace("{s}",n()).replace("{type}","roadmap").replace("{overlay}",this.name).replace("{z}",e).replace("{x}",t.x).replace("{y}",t.y)},tileSize:new google.maps.Size(256,256),maxZoom:18,minZoom:9,name:"cadastre"};return new google.maps.ImageMapType(t)},o.Isocurves=function(){var t={getTileUrl:function(t,e){return i.replace("{s}",n()).replace("{type}","roadmap").replace("{overlay}",this.name).replace("{z}",e).replace("{x}",t.x).replace("{y}",t.y)},tileSize:new google.maps.Size(256,256),maxZoom:18,minZoom:10,name:"isocurves"};return new google.maps.ImageMapType(t)},o.Address=function(){var t={getTileUrl:function(t,e){return i.replace("{s}",n()).replace("{type}","roadmap").replace("{overlay}",this.name).replace("{z}",e).replace("{x}",t.x).replace("{y}",t.y)},tileSize:new google.maps.Size(256,256),maxZoom:18,minZoom:15,name:"address"};return new google.maps.ImageMapType(t)},t.overlays=o}(folia.maps),folia=folia||{},folia.maps=folia.maps||{},folia.maps.Panoramio=function(t){function e(t){this.setValues(t),this.layer=new google.maps.panoramio.PanoramioLayer,this.imagePath=this.imagePath||"http://utils.folia.dk/gfx/PointsOfInterest/panoramio/",this.div=this.div||document.createElement("div"),this.div.style.float=styleFloat,this.div.style.cssFloat="left",this.div.style.clear="left";var t=this.div.appendChild(document.createElement("img")),e=this.get("map"),n=this.get("layer");t.visible=this.visible||!1,t.src=this.src=this.imagePath+("/"==this.imagePath.charAt(this.imagePath.length-1)?"":"/")+(visible?"panoramio_on.png":"panoramio_off.png"),title=alt="Panoramio",t.oncl
1ick=function(){this.visible=!this.visible,this.src=this.src.slice(0,this.src.lastIndexOf("/"))+"/"+(visible?"panoramio_on.png":"panoramio_off.png"),n.setMap(this.visible?e:null)}}return(e.prototype=new google.maps.MVCObject).getDiv=function(){return this.get("div")},e.prototype.map_changed=function(){},new e(t)},folia=folia||{},folia.maps=folia.maps||{},folia.maps.PointsOfInterest=function(t,e,n,i){function r(t){var e,n,i,r,o,s,a,l,u,c,h,d;if(p=t.imagePath,f=t.jsonPath,E.TO_MANY_IN_AREA=t.messages.toManyInArea||E.TO_MANY_IN_AREA,E.NONE_IN_AREA=t.messages.noneInArea||E.NONE_IN_AREA,v=t.customerID||-1,y=t.userID||-1,C=t.templateId||C,S=t.suppressInfoWindow||S,e=t.categories,k!==folia.maps.PointsOfInterest.RenderMethod.STATIC)for(a=0,l=e.length;a<l;a++){for((n=document.createElement("ul")).style.listStyle="none",n.style.margin="0px",n.style.padding="0px",n.className="category",(i=document.createElement("li")).style.clear="left",i.className="title",$(i).html(e[a].name),n.appendChild(i),c=0,h=(u=e[a].layers).length;c<h;c++)(o=document.createElement("li")).style.margin="0px",o.style.padding="0px",o.style.lineHeight="0px",s={layerId:u[c].layerId,title:u[c].title,imageUrl:p,maxCount:u[c].max||b},k===folia.maps.PointsOfInterest.RenderMethod.BUTTONS_WITH_TEXT?r=new folia.maps.PointsOfInterest.ImageButtonWithText(s):(r=new folia.maps.PointsOfInterest.ImageButton(s),$(o).css("float","left")),r.onClick=function(){this.checked=!this.checked,this.checked&&this.count<=this.maxCount&&_.getZoom()>=this.minZoom?(folia.array.insert(m,this.layerId),T(this.layerId)):(D(this.layerId),folia.array.remove(m,this.layerId)),this.onUpdate()},r.onUpdate=function(){this.count>this.maxCount||0==this.count||_.getZoom()<this.minZoom?(this.element.alt=this.element.title=this.count>this.maxCount||_.getZoom()<this.minZoom?this.title+" "+E.TO_MANY_IN_AREA:this.title+" "+E.NONE_IN_AREA,this.checked?(this.element.childNodes[0].src=p+this.layerId+"b.png",D(this.layerId),folia.array.remove(m,this.layerId)):this.element.childNodes[0].src=p+this.layerId+"a.png"):(this.element.alt=this.element.title=this.title+" ("+this.count+")",this.checked?(this.element.childNodes[0].src=p+this.layerId+"d.png",folia.array.insert(m,this.layerId)):this.element.childNodes[0].src=p+this.layerId+"c.png"),x.dispatchEvent("layers_changed")},x.addListener(r,"update",r.onUpdate),folia.events.addListener(r.element,"click",$.proxy(r.onClick,r)),g[u[c].layerId]=g[u[c].layerId]||{button:r,locations:{}},o.appendChild(r.element),n.appendChild(o);w.appendChild(n)}else for(a=0,l=e.length;a<l;a++)for(c=0,h=(u=e[a].layers).length;c<h;c++)d={layerId:u[c].layerId,maxCount:100,minZoom:9,checked:!0,onUpdate:function(){this.count>this.maxCount||0==this.count||_.getZoom()<this.minZoom?this.checked&&(D(this.layerId),folia.array.remove(m,this.layerId)):this.checked&&folia.array.insert(m,this.layerId),x.dispatchEvent("layers_changed")}},x.addListener(d,"update",d.onUpdate),m.push(u[c].layerId),g[u[c].layerId]=g[u[c].layerId]||{button:d,locations:{}};google.maps.event.addListener(_,"idle",M);try{M()}catch(t){}}if(0===arguments.length)throw new Error("ArgumentException: No overload for method folia.maps.PointsOfInterest takes 0 arguments");var a,p,f,m,g,v,y,b,_,w,x,l,C,o,s,k,u,c,h,S,E,T,D,M,d,A,O={renderMethod:folia.maps.PointsOfInterest.RenderMethod.BUTTONS,infoWindow:new google.maps.InfoWindow,suppressInfoWindow:!1,config:"http://boligguide.folia.dk/boligGuide.xml",configServer:"https://poi.maptoweb.dk/",jsonUrl:"https://poi.maptoweb.dk/",templateUrl:"https://d1zqutybffyvms.cloudfront.net/templates/pointsofinterest/pointsofinterest.html",templateId:"PointsOfInterest_tmpl",draggable:!1,dragended:null,clicked:null,map:null};if(1===arguments.length?($.extend(O,t),O.draggable="function"==typeof O.dragended):arguments.length<4&&0<arguments.length&&"object"==typeof t?(O.infoWindow=n||O.infoWindow,O.renderMethod=e||O.renderMethod,O.map=t||O.map):(O.infoWindow=i||O.infoWindow,O.renderMethod=n||O.renderMethod,O.map=e||O.map,O.config=t||O.config),O.map)return f=O.jsonUrl,m=[],g={},y=v=-1,b=100,_=O.map,w=document.createElement("div"),x=new folia.events.EventHandler,l=O.infoWindow,O.templateUrl,C=O.templateId,o=O.config,s=O.configServer,k=O.renderMethod,u=O.draggable,c=O.dragended,h=O.clicked,S=!1,E={TO_MANY_IN_AREA:"Der er for mange på kortet til at kunne blive vist. Prøv at zoome ind.",NONE_IN_AREA:"Der er ingen i det viste kortudsnit. Prøv at zoome ud."},T=function(t){t={MapBounds:_.getBounds().toString(),Layers:t,CustomerID:-1!=v?v:a,UserID:-1!=y?y:a};folia.get(f+"getLocations.aspx",t,function(t){t[0]&&d(t[0])})},D=function(t){for(var e in locations=g[t].locations)locations[e].setMap(null),delete locations[e]},M=function(){var t={MapBounds:_.getBounds().toString(),CustomerID:-1!=v?v:a,UserID:-1!=y?y:a};folia.get(f+"getLocationsCount.aspx",t,function(t){for(var e,n=0,i=t.length;n<i;n++)g[t[n].Layer]&&(g[t[n].Layer].button.count=t[n].Count);x.dispatchEvent("update"),0<m.length&&(e={MapBounds:_.getBounds().toString(),Layers:m.toString(),CustomerID:-1!=v?v:a,UserID:-1!=y?y:a},folia.get(f+"getLocations.aspx",e,function(t){for(var e=0,n=t.length;e<n;e++)d(t[e])}))})},d=function(t){var e,i=t.Layer,r=t.Locations,o=g[i].locations,n=_.getBounds(),s=new Image;if(g[i]){for(e in o)n.contains(o[e].getPosition())?null==o[e].getMap()&&o[e].setMap(_):(o[e].setMap(null),delete o[e]);folia.events.addListener(s,"load",function(){for(var t,e=0,n=r.length;e<n;e++)o[i+"$"+r[e].id]===a&&(133==i&&(s.src="http://utils.folia.dk/gfx/poi/exits/dk/"+r[e].name+".png",s.height=15,s.width=25),t={position:new google.maps.LatLng(r[e].lat,r[e].lng),title:r[e].name,map:_,icon:new google.maps.MarkerImage(s.src,new google.maps.Size(s.width,s.height),new google.maps.Point(0,0),new google.maps.Point(Math.round(s.width/2),Math.round(s.height/2))),rawData:r[e],draggable:u},t=new google.maps.Marker(t),google.maps.event.addListener(t,"click",function(){var t,e=this;switch(e.rawData.type){case 129:case 130:case 131:case 132:t=(t="https://www.rejseplanen.dk/bin/stboard.exe/mn?L=vs_liveticker&start=yes&time=now&outputMode=tickerMode&tools=no&input={id}").replace("{id}",e.rawData.id.split("_")[2]),(content=document.createElement("iframe")).setAttribute("frameborder","0"),content.setAttribute("src",t),l.setOptions({content:content,pixelOffset:new google.maps.Size(0,e.getIcon().anchor.x)}),l.open(_,e),google.maps.event.trigger(w,"marker_click",e);break;default:t={LocationID:e.rawData.id,CustomerID:-1!=v?v:a,UserID:-1!=y?y:a},folia.get(f+"getLocationInfo.aspx",t,function(t){t.Website=(t.Website||"").replace("http://",""),t.PhoneNumber=0<t.PhoneNumber?t.PhoneNumber:"",e.rawData.info=t,S||A(e,t),google.maps.event.trigger(w,"marker_click",e)})}}),u&&google.maps.event.addListener(t,"dragend",c),"function"==typeof h&&google.maps.event.addListener(t,"click",h),o[i+"$"+r[e].id]=t)}),s.src=p+i+".png"}},A=function(t,e){var n;document.getElementById(C)?(n=new google.maps.Size(0,t.getIcon().anchor.x),l.setOptions({content:folia.templating.apply(C,e),pixelOffset:n}
1),l.open(_,t)):(folia.templating.preRender({id:C,innerHTML:folia.maps.PointsOfInterest.defaultTemplate}),A(t,e))},this.getDiv=function(){return w},"string"==typeof o&&0<o.length?folia.get(s+"getConfig.aspx",{layout:o},r):r(o),w.onchange=function(t){x.addListener(m,"layers_changed",t)},w.show=function(t){t=g[t];t&&!t.button.checked&&t.button.onClick()},w.className="PointsOfInterest",w;throw new Error("ArgumentException: map can't be null")},folia.maps.PointsOfInterest.ImageButtonWithText=function(t){return t.showTitle=!0,new folia.maps.PointsOfInterest.Button(t)},folia.maps.PointsOfInterest.ImageButton=function(t){return new folia.maps.PointsOfInterest.Button(t)},folia.maps.PointsOfInterest.Button=function(t){$.extend(this,t),this.element=document.createElement("div"),this.maxCount=this.maxCount||100,this.minZoom=this.minZoom||9,this.checked=!1;var e=document.createElement("img");e.src=t.imageUrl+this.layerId+"a.png",e.style.margin="2px",this.element.style.cursor="pointer",this.element.appendChild(e),this.showTitle&&$(this.element).append("<span>"+this.title+"</span>"),this.getDiv=function(){return this.element}},folia.maps.PointsOfInterest.RenderMethod={BUTTONS:"0",BUTTONS_WITH_TEXT:"1",STATIC:"2"},folia.maps.PointsOfInterest.defaultTemplate='<div class="vcard"><div class="fn org"><%=Name%></div><div class="adr"><div class="street-address"><%=StreetName%> <%=HouseNumber%></div><span class="postal-code"><%=ZipCode%>&nbsp;</span><span class="locality"><%=City%></span></div><% if (PhoneNumber > 0 || Website) { %> <br /> <% } %><% if (PhoneNumber > 0) { %><div class="tel">Tlf.:  <%= PhoneNumber%></div><% } %><% if (Website) { Website = Website.replace(\'http://\',\'\'); %><div class="url"><a href="http://<%=Website%>" target="_blank"><%=Website%></a></div><% } %></div>',folia.controls=folia.controls||{},folia.controls.PointsOfInterest=folia.maps.PointsOfInterest,folia=folia||{},folia.maps=folia.maps||{},folia.maps.PublicTransport=function(t){var e,n,i,r,o;for(t.className=t.className||"PublicTransportation",t.title=t.title||"Offentlig Transport",t.transportTypes=t.transportTypes||[],t.infoWindow=t.infoWindow||new google.maps.InfoWindow,t.map=t.map||{},(e=document.createElement("ul")).style.listStyle="none",e.className=t.className,e.style.margin="0px",e.style.padding="0px",(n=e.appendChild(document.createElement("li"))).textContent=t.title,n.innerHTML=t.title,n.style.margin="0px",n.style.clear="left",n.className="title",i=0,r=t.transportTypes.length;i<r;i++){switch(o={},t.transportTypes[i]){case"BUS":o.name="Bus",o.kml=["http://foliastorage.s3.amazonaws.com/kml/bus_stops_01.kmz","http://foliastorage.s3.amazonaws.com/kml/bus_stops_02.kmz","http://foliastorage.s3.amazonaws.com/kml/bus_stops_03.kmz","http://foliastorage.s3.amazonaws.com/kml/bus_stops_04.kmz"],o.type=t.transportTypes[i],o.minZoomLevel=12,o.map=t.map,o.mouseOverText="Busstoppested",o.infoWindow=t.infoWindow;break;case"TRAIN":o.name="Tog",o.kml=["http://foliastorage.s3.amazonaws.com/kml/tog.kml"],o.type=t.transportTypes[i],o.minZoomLevel=10,o.map=t.map,o.mouseOverText="Togstation",o.infoWindow=t.infoWindow;break;case"S_TRAIN":o.name="S-tog",o.kml=["http://foliastorage.s3.amazonaws.com/kml/s-tog.kmz"],o.type=t.transportTypes[i],o.minZoomLevel=10,o.map=t.map,o.mouseOverText="S-togstation",o.infoWindow=t.infoWindow;break;case"METRO":o.name="Metro",o.kml=["http://foliastorage.s3.amazonaws.com/kml/metro.kmz"],o.type=t.transportTypes[i],o.minZoomLevel=10,o.map=t.map,o.mouseOverText="Metrostation",o.infoWindow=t.infoWindow;break;default:o.name="Tog",o.kml=["http://foliastorage.s3.amazonaws.com/kml/tog.kml"],o.type=folia.maps.PublicTransport.TransportType.TRAIN,o.minZoomLevel=10,o.map=t.map,o.mouseOverText="Togstation",o.infoWindow=t.infoWindow}e.appendChild(new folia.maps.PublicTransport.Button(o))}return e},folia.maps.PublicTransport.TransportType={BUS:"BUS",TRAIN:"TRAIN",S_TRAIN:"S_TRAIN",METRO:"METRO"},folia.maps.PublicTransport.Button=function(n){for(var t,i,e,r="PublicTransport_tmpl",o=(document.getElementById(r)||folia.templating.preRender({id:r,innerHTML:folia.maps.PublicTransport.defaultTemplate}),(t=document.createElement("li")).style.margin="0px",t.style.padding="0px",t.style.lineHeight="0px",t.style.styleFloat="Left",t.style.cssFloat=style.styleFloat,t.style.cursor="pointer",(i=document.createElement("img")).src="http://utils.folia.dk/gfx/poi/default/"+n.type.toString().toLocaleLowerCase()+"_off.png",i.checked=!1,i.title=n.mouseOverText+(n.map.getZoom()<n.minZoomLevel?" (Der er for mange på kortet til at kunne blive vist. Prøv at zoome ind)":""),n.infoWindow),s={preserveViewport:!0,suppressInfoWindows:!0},a=[],l=0,u=n.kml.length;l<u;l++)e=n.kml[l],e=new google.maps.KmlLayer(e,s),a.push(e),google.maps.event.addListener(e,"click",function(t){o.setContent(folia.templating.apply(r,t)),o.setPosition(t.latLng),o.open(n.map)});return google.maps.event.addDomListener(t,"click",function(){var t,e;if(n.map.getZoom()>=n.minZoomLevel)if(i.checked=!i.checked,i.src=i.src.replace(new RegExp("_off.png|_on.png"),function(t){return"_off.png"===t?"_on.png":"_off.png"}),i.checked)for(t=0,e=a.length;t<e;t++)a[t].setMap(n.map);else for(t=0,e=a.length;t<e;t++)a[t].setMap(null)}),google.maps.event.addListener(n.map,"zoom_changed",function(){if(n.map.getZoom()<n.minZoomLevel){if(i.checked){i.checked=!1,i.src=i.src.replace("_on.png","_off.png");for(var t=0,e=a.length;t<e;t++)a[t].setMap(null)}i.title=n.mouseOverText+" (Der er for mange på kortet til at kunne blive vist. Prøv at zoome ind)"}else i.title=n.mouseOverText}),t.appendChild(i),t},folia.maps.PublicTransport.defaultTemplate='<iframe frameborder="0" style="border:0px;height:215px;" src="https://www.rejseplanen.dk/bin/stboard.exe/mn?L=vs_liveticker&input=<%=featureData.description %>&start=yes&time=now&outputMode=tickerMode&tools=no&"></iframe>',folia.controls.PublicTransport=folia.maps.PublicTransport,folia=folia||{},folia.templating=folia.templating||{},folia.templating.templateCache_={},folia.templating.render_=function(t,e){t=/\W/.test(t)?new Function("obj","var p=[],print=function(){p.push.apply(
1p,arguments);};with(obj){p.push('"+t.replace(/[\r\t\n]/g," ").replace(/'(?=[^%]*%>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<%=(.+?)%>/g,"',$1,'").split("<%").join("');").split("%>").join("p.push('")+"');}return p.join('');"):folia.templating.templateCache_[t]=folia.templating.templateCache_[t]||folia.templating.render_(document.getElementById(t).innerHTML);return e?t(e):t},folia.templating.preRender=function(t){var e,n;"string"==typeof t?folia.templating.render_(t):(document.getElementById(t.id)||(e=document.getElementsByTagName("head")[0]||document.documentElement,(n=document.createElement("script")).id=t.id,n.text=t.innerHTML,n.type="text/x-folia-template",e.insertBefore(n,e.firstChild)),folia.templating.render_(t.id))},folia.templating.apply=function(t,e){var n,i;return"string"==typeof t?folia.templating.render_(t,e):(document.getElementById(t.id)||(n=document.getElementsByTagName("head")[0]||document.documentElement,(i=document.createElement("script")).id=t.id,i.text=t.innerHTML,i.type="text/x-folia-template",n.insertBefore(i,n.firstChild)),folia.templating.render_(t.id,e))},folia.templating.load=function(t,e,n){var i,r=document.getElementsByTagName("script")[0],o=document.createElement("script");o.id=e,o.type="text/x-folia-template",o.src=t,o.onreadystatechange=o.onload=function(){i||o.readyState&&"loaded"!=o.readyState&&"complete"!=o.readyState||(""!=o.innerHTML&&alert("loaded"),i=!0,o.onreadystatechange=o.onload=void 0)},setTimeout(function(){i||(i=!0,o.onload())},4e3),document.getElementById(e)?n():r.parentNode.insertBefore(o,r)},eval(function(t,e,n,i,r){if(i=function(t){return(t<62?"":i(parseInt(t/62)))+(35<(t%=62)?String.fromCharCode(t+29):t.toString(36))},!"".replace(/^/,String)){for(;e--;)r[i(e)]=n[e]||i(e);n=[function(t){return r[t]}],i=function(){return"\\w+"},e=1}for(;e--;)n[e]&&(t=t.replace(new RegExp("\\b"+i(e)+"\\b","g"),n[e]));return t}('7 8(a){a=a||{};r.s.1R.2k(2,3d);2.Q=a.1v||"";2.1H=a.1B||J;2.S=a.1G||0;2.H=a.1z||1h r.s.1Y(0,0);2.B=a.U||1h r.s.2E(0,0);2.15=a.13||t;2.1p=a.1t||"2h";2.1m=a.F||{};2.1E=a.1C||"3g";2.P=a.1j||"3b://38.r.33/2Y/2T/2N/1r.2K";3(a.1j===""){2.P=""}2.1f=a.1x||1h r.s.1Y(1,1);3(q a.A==="p"){3(q a.18==="p"){a.A=L}v{a.A=!a.18}}2.w=!a.A;2.17=a.1n||J;2.1I=a.2g||"2e";2.16=a.1l||J;2.4=t;2.z=t;2.14=t;2.V=t;2.E=t;2.R=t}8.9=1h r.s.1R();8.9.25=7(){5 i;5 f;5 a;5 d=2;5 c=7(e){e.20=L;3(e.1i){e.1i()}};5 b=7(e){e.30=J;3(e.1Z){e.1Z()}3(!d.16){c(e)}};3(!2.4){2.4=1e.2S("2Q");2.1d();3(q 2.Q.1u==="p"){2.4.O=2.G()+2.Q}v{2.4.O=2.G();2.4.1a(2.Q)}2.2J()[2.1I].1a(2.4);2.1w();3(2.4.6.D){2.R=L}v{3(2.S!==0&&2.4.Z>2.S){2.4.6.D=2.S;2.4.6.2D="2A";2.R=L}v{a=2.1P();2.4.6.D=(2.4.Z-a.W-a.11)+"12";2.R=J}}2.1F(2.1H);3(!2.16){2.E=[];f=["2t","1O","2q","2p","1M","2o","2n","2m","2l"];1o(i=0;i<f.1L;i++){2.E.1K(r.s.u.19(2.4,f[i],c))}2.E.1K(r.s.u.19(2.4,"1O",7(e){2.6.1J="2j"}))}2.V=r.s.u.19(2.4,"2i",b);r.s.u.T(2,"2f")}};8.9.G=7(){5 a="";3(2.P!==""){a="<2d";a+=" 2c=\'"+2.P+"\'";a+=" 2b=11";a+=" 6=\'";a+=" U: 2a;";a+=" 1J: 29;";a+=" 28: "+2.1E+";";a+="\'>"}K a};8.9.1w=7(){5 a;3(2.P!==""){a=2.4.3n;2.z=r.s.u.19(a,"1M",2.27())}v{2.z=t}};8.9.27=7(){5 a=2;K 7(e){e.20=L;3(e.1i){e.1i()}r.s.u.T(a,"3m");a.1r()}};8.9.1F=7(d){5 m;5 n;5 e=0,I=0;3(!d){m=2.1D();3(m 3l r.s.3k){3(!m.26().3h(2.B)){m.3f(2.B)}n=m.26();5 a=m.3e();5 h=a.Z;5 f=a.24;5 k=2.H.D;5 l=2.H.1k;5 g=2.4.Z;5 b=2.4.24;5 i=2.1f.D;5 j=2.1f.1k;5 o=2.23().3c(2.B);3(o.x<(-k+i)){e=o.x+k-i}v 3((o.x+g+k+i)>h){e=o.x+g+k+i-h}3(2.17){3(o.y<(-l+j+b)){I=o.y+l-j-b}v 3((o.y+l+j)>f){I=o.y+l+j-f}}v{3(o.y<(-l+j)){I=o.y+l-j}v 3((o.y+b+l+j)>f){I=o.y+b+l+j-f}}3(!(e===0&&I===0)){5 c=m.3a();m.39(e,I)}}}};8.9.1d=7(){5 i,F;3(2.4){2.4.37=2.1p;2.4.6.36="";F=2.1m;1o(i 35 F){3(F.34(i)){2.4.6[i]=F[i]}}2.4.6.32="31(0)";3(q 2.4.6.X!=="p"&&2.4.6.X!==""){2.4.6.2Z="\\"2X:2W.2V.2U(2R="+(2.4.6.X*1X)+")\\"";2.4.6.2P="2O(X="+(2.4.6.X*1X)+")"}2.4.6.U="2M";2.4.6.M=\'1c\';3(2.15!==t){2.4.6.13=2.15}}};8.9.1P=7(){5 c;5 a={1b:0,1g:0,W:0,11:0};5 b=2.4;3(1e.1s&&1e.1s.1W){c=b.2L.1s.1W(b,"");3(c){a.1b=C(c.1V,10)||0;a.1g=C(c.1U,10)||0;a.W=C(c.1T,10)||0;a.11=C(c.1S,10)||0}}v 3(1e.2I.N){3(b.N){a.1b=C(b.N.1V,10)||0;a.1g=C(b.N.1U,10)||0;a.W=C(b.N.1T,10)||0;a.11=C(b.N.1S,10)||0}}K a};8.9.2H=7(){3(2.4){2.4.2G.2F(2.4);2.4=t}};8.9.1y=7(){2.25();5 a=2.23().2C(2.B);2.4.6.W=(a.x+2.H.D)+"12";3(2.17){2.4.6.1g=-(a.y+2.H.1k)+"12"}v{2.4.6.1b=(a.y+2.H.1k)+"12"}3(2.w){2.4.6.M="1c"}v{2.4.6.M="A"}};8.9.2B=7(a){3(q a.1t!=="p"){2.1p=a.1t;2.1d()}3(q a.F!=="p"){2.1m=a.F;2.1d()}3(q a.1v!=="p"){2.1Q(a.1v)}3(q a.1B!=="p"){2.1H=a.1B}3(q a.1G!=="p"){2.S=a.1G}3(q a.1z!=="p"){2.H=a.1z}3(q a.1n!=="p"){2.17=a.1n}3(q a.U!=="p"){2.1q(a.U)}3(q a.13!=="p"){2.22(a.13)}3(q a.1C!=="p"){2.1E=a.1C}3(q a.1j!=="p"){2.P=a.1j}3(q a.1x!=="p"){2.1f=a.1x}3(q a.18!=="p"){2.w=a.18}3(q a.A!=="p"){2.w=!a.A}3(q a.1l!=="p"){2.16=a.1l}3(2.4){2.1y()}};8.9.1Q=7(a){2.Q=a;3(2.4){3(2.z){r.s.u.Y(2.z);2.z=t}3(!2.R){2.4.6.D=""}3(q a.1u==="p"){2.4.O=2.G()+a}v{2.4.O=2.G();2.4.1a(a)}3(!2.R){2.4.6.D=2.4.Z+"12";3(q a.1u==="p"){2.4.O=2.G()+a}v{2.4.O=2.G();2.4.1a(a)}}2.1w()}r.s.u.T(2,"2z")};8.9.1q=7(a){2.B=a;3(2.4){2.1y()}r.s.u.T(2,"21")};8.9.22=7(a){2.15=a;3(2.4){2.4.6.13=a}r.s.u.T(2,"2y")};8.9.2x=7(a){2.w=!a;3(2.4){2.4.6.M=(2.w?"1c":"A")}};8.9.2w=7(){K 2.Q};8.9.1A=7(){K 2.B};8.9.2v=7(){K 2.15};8.9.2u=7(){5 a;
13((q 2.1D()==="p")||(2.1D()===t)){a=J}v{a=!2.w}K a};8.9.3i=7(){2.w=J;3(2.4){2.4.6.M="A"}};8.9.3j=7(){2.w=L;3(2.4){2.4.6.M="1c"}};8.9.2s=7(c,b){5 a=2;3(b){2.B=b.1A();2.14=r.s.u.2r(b,"21",7(){a.1q(2.1A())})}2.1N(c);3(2.4){2.1F()}};8.9.1r=7(){5 i;3(2.z){r.s.u.Y(2.z);2.z=t}3(2.E){1o(i=0;i<2.E.1L;i++){r.s.u.Y(2.E[i])}2.E=t}3(2.14){r.s.u.Y(2.14);2.14=t}3(2.V){r.s.u.Y(2.V);2.V=t}2.1N(t)};',210,"||this|if|div_|var|style|function|InfoBox|prototype||||||||||||||||undefined|typeof|google|maps|null|event|else|isHidden_|||closeListener_|visible|position_|parseInt|width|eventListeners_|boxStyle|getCloseBoxImg_|pixelOffset_|yOffset|false|return|true|visibility|currentStyle|innerHTML|closeBoxURL_|content_|fixedWidthSet_|maxWidth_|trigger|position|contextListener_|left|opacity|removeListener|offsetWidth||right|px|zIndex|moveListener_|zIndex_|enableEventPropagation_|alignBottom_|isHidden|addDomListener|appendChild|top|hidden|setBoxStyle_|document|infoBoxClearance_|bottom|new|stopPropagation|closeBoxURL|height|enableEventPropagation|boxStyle_|alignBottom|for|boxClass_|setPosition|close|defaultView|boxClass|nodeType|content|addClickHandler_|infoBoxClearance|draw|pixelOffset|getPosition|disableAutoPan|closeBoxMargin|getMap|closeBoxMargin_|panBox_|maxWidth|disableAutoPan_|pane_|cursor|push|length|click|setMap|mouseover|getBoxWidths_|setContent|OverlayView|borderRightWidth|borderLeftWidth|borderBottomWidth|borderTopWidth|getComputedStyle|100|Size|preventDefault|cancelBubble|position_changed|setZIndex|getProjection|offsetHeight|createInfoBoxDiv_|getBounds|getCloseClickHandler_|margin|pointer|relative|align|src|img|floatPane|domready|pane|infoBox|contextmenu|default|apply|touchmove|touchend|touchstart|dblclick|mouseup|mouseout|addListener|open|mousedown|getVisible|getZIndex|getContent|setVisible|zindex_changed|content_changed|auto|setOptions|fromLatLngToDivPixel|overflow|LatLng|removeChild|parentNode|onRemove|documentElement|getPanes|gif|ownerDocument|absolute|mapfiles|alpha|filter|div|Opacity|createElement|en_us|Alpha|Microsoft|DXImageTransform|progid|intl|MsFilter|returnValue|translateZ|WebkitTransform|com|hasOwnProperty|in|cssText|className|www|panBy|getCenter|http|fromLatLngToContainerPixel|arguments|getDiv|setCenter|2px|contains|show|hide|Map|instanceof|closeclick|firstChild".split("|"),0,{})),ClusterIcon.prototype.onAdd=function(){var r,o,s=this;this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){o=r}),google.maps.event.addDomListener(this.div_,"mousedown",function(){o=!(r=!0)}),google.maps.event.addDomListener(this.div_,"click",function(t){var e,n,i;r=!1,o||(i=s.cluster_.getMarkerClusterer(),google.maps.event.trigger(i,"click",s.cluster_),google.maps.event.trigger(i,"clusterclick",s.cluster_),i.getZoomOnClick()&&(n=i.getMaxZoom(),e=s.cluster_.getBounds(),i.getMap().fitBounds(e),setTimeout(function(){i.getMap().fitBounds(e),null!==n&&i.getMap().getZoom()>n&&i.getMap().setZoom(n+1)},100)),t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation())}),google.maps.event.addDomListener(this.div_,"mouseover",function(){var t=s.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseover",s.cluster_)}),google.maps.event.addDomListener(this.div_,"mouseout",function(){var t=s.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseout",s.cluster_)})},ClusterIcon.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},ClusterIcon.prototype.draw=function(){var t;this.visible_&&(t=this.getPosFromLatLng_(this.center_),this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px")},ClusterIcon.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},ClusterIcon.prototype.show=function(){var t,e,n,i;this.div_&&(t="",n=this.backgroundPosition_.split(" "),e=parseInt(n[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(n[1].replace(/^\s+|\s+$/g,""),10),i=this.getPosFromLatLng_(this.center_),this.div_.style.cssText=this.createCss(i),t="<img src='"+this.url_+"' style='position: absolute; top: "+n+"px; left: "+e+"px; ",this.cluster_.getMarkerClusterer().enableRetinaIcons_||(t+="clip: rect("+-1*n+"px, "+(-1*e+this.width_)+"px, "+(-1*n+this.height_)+"px, "+-1*e+"px);"),this.div_.innerHTML=(t+="'>")+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"</div>",void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},ClusterIcon.prototype.useStyle=function(t){this.sums_=t;t=Math.max(0,t.index-1),t=Math.min(this.styles_.length-1,t),t=this.styles_[t];this.url_=t.url,this.height_=t.height,this.width_=t.width,this.anchorText_=t.anchorText||[0,0],this.anchorIcon_=t.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=t.textColor||"black",this.textSize_=t.textSize||11,this.textDecoration_=t.textDecoration||"none",this.fontWeight_=t.fontWeight||"bold",this.fontStyle_=t.fontStyle||"normal",this.fontFamily_=t.fontFamily||"Arial,sans-serif",this.backgroundPosition_=t.backgroundPosition||"0 0"},ClusterIcon.prototype.setCenter=function(t){this.center_=t},ClusterIcon.prototype.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width_+"px; height: "+this.height_+"px;"),e.join("")},ClusterIcon.prototype.getPosFromLatLng_=function(t){t=this.getProjection().fromLatLngToDivPixel(t);return t.x-=this.anchorIcon_[1],t.y-=this.anchorIcon_[0],t.x=parseInt(t.x,10),t.y=parseInt(t.y,10),t},Cluster.prototype.getSize=function(){return this.markers_.length},Cluster.prototype.getMarkers=function(){return this.markers_},Cluster.prototype.getCenter=function(){return this.center_},Cluster.prototype.getMap=function(){return this.map_},Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_},Cluster.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers(),n=0;n<e.length;n++)t.extend(e[n].getPosition());return t},Cluster.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},Cluster.prototype.addMarker=function(t){var e,n,i,r;if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_?this.averageCenter_&&(r=this.markers_.length+1,i=(this.center_.lat()*(r-1)+t.getPosition().lat())/r,r=(this.center_.lng()*(r-1)+t.getPosition().lng())/r,this.center_=new google.maps.LatLng(i,r),this.calculateBounds_()):(this.center_=t.getPosition(),this.calculateBounds_()),t.isAdded=!0,this.markers_.push(t),n=this.markers_.length,null!==(i=this.markerClusterer_.getMaxZoom())&&this.map_.getZoom()>i)t.getMap()!==this.map_&&t.setMap(this.map_);else if(n<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(n===this.minClusterSize_)for(e=0;e<n;e++)this.markers_[e].setMap(null);else t.setMap(null);return this.updateIcon_(),!0},Cluster.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},Cluster.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},Cluster.prototype.updateIcon_=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();null!==e&&this.map_.getZoom()>e||t<this.minClusterSize_?this.clusterIcon_.hide():(e=this.markerClusterer_.getStyles().length,t=this.markerClusterer_.getCalculator()(this.markers_,e),this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(t),this.clusterIcon_.show())},Cluster.prototype.isMarkerAlreadyAdded_=function(t){var e;if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},MarkerClusterer.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){t.resetViewport_(!1),this.getZoom()!==(this.get("minZoom")||0)&&this.getZoom()!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){t.redraw_()})]},MarkerClusterer.prototype.onRemove=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;
1t<this.clusters_.length;t++)this.clusters_[t].remove();for(this.clusters_=[],t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},MarkerClusterer.prototype.draw=function(){},MarkerClusterer.prototype.setupStyles_=function(){var t,e;if(!(0<this.styles_.length))for(t=0;t<this.imageSizes_.length;t++)e=this.imageSizes_[t],this.styles_.push({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:e,width:e})},MarkerClusterer.prototype.fitMapToMarkers=function(){for(var t=this.getMarkers(),e=new google.maps.LatLngBounds,n=0;n<t.length;n++)e.extend(t[n].getPosition());this.getMap().fitBounds(e)},MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_},MarkerClusterer.prototype.setGridSize=function(t){this.gridSize_=t},MarkerClusterer.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},MarkerClusterer.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_},MarkerClusterer.prototype.setMaxZoom=function(t){this.maxZoom_=t},MarkerClusterer.prototype.getStyles=function(){return this.styles_},MarkerClusterer.prototype.setStyles=function(t){this.styles_=t},MarkerClusterer.prototype.getTitle=function(){return this.title_},MarkerClusterer.prototype.setTitle=function(t){this.title_=t},MarkerClusterer.prototype.getZoomOnClick=function(){return this.zoomOnClick_},MarkerClusterer.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},MarkerClusterer.prototype.getAverageCenter=function(){return this.averageCenter_},MarkerClusterer.prototype.setAverageCenter=function(t){this.averageCenter_=t},MarkerClusterer.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},MarkerClusterer.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},MarkerClusterer.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},MarkerClusterer.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},MarkerClusterer.prototype.getImageExtension=function(){return this.imageExtension_},MarkerClusterer.prototype.setImageExtension=function(t){this.imageExtension_=t},MarkerClusterer.prototype.getImagePath=function(){return this.imagePath_},MarkerClusterer.prototype.setImagePath=function(t){this.imagePath_=t},MarkerClusterer.prototype.getImageSizes=function(){return this.imageSizes_},MarkerClusterer.prototype.setImageSizes=function(t){this.imageSizes_=t},MarkerClusterer.prototype.getCalculator=function(){return this.calculator_},MarkerClusterer.prototype.setCalculator=function(t){this.calculator_=t},MarkerClusterer.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},MarkerClusterer.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},MarkerClusterer.prototype.getClusterClass=function(){return this.clusterClass_},MarkerClusterer.prototype.setClusterClass=function(t){this.clusterClass_=t},MarkerClusterer.prototype.getMarkers=function(){return this.markers_},MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length},MarkerClusterer.prototype.getClusters=function(){return this.clusters_},MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length},MarkerClusterer.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},MarkerClusterer.prototype.addMarkers=function(t,e){for(var n in t)t.hasOwnProperty(n)&&this.pushMarkerTo_(t[n]);e||this.redraw_()},MarkerClusterer.prototype.pushMarkerTo_=function(t){var e;t.getDraggable()&&(e=this,google.maps.event.addListener(t,"dragend",function(){e.ready_&&(this.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers_.push(t)},MarkerClusterer.prototype.removeMarker=function(t,e){t=this.removeMarker_(t);return!e&&t&&this.repaint(),t},MarkerClusterer.prototype.removeMarkers=function(t,e){for(var n,i=!1,r=0;r<t.length;r++)n=this.removeMarker_(t[r]),i=i||n;return!e&&i&&this.repaint(),i},MarkerClusterer.prototype.removeMarker_=function(t){var e,n=-1;if(this.markers_.indexOf)n=this.markers_.indexOf(t);else for(e=0;e<this.markers_.length;e++)if(t===this.markers_[e]){n=e;break}return-1!==n&&(t.setMap(null),this.markers_.splice(n,1),!0)},MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},MarkerClusterer.prototype.repaint=function(){var e=this.cluster
1s_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){for(var t=0;t<e.length;t++)e[t].remove()},0)},MarkerClusterer.prototype.getExtendedBounds=function(t){var e=this.getProjection(),n=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),i=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),n=e.fromLatLngToDivPixel(n),i=(n.x+=this.gridSize_,n.y-=this.gridSize_,e.fromLatLngToDivPixel(i)),n=(i.x-=this.gridSize_,i.y+=this.gridSize_,e.fromDivPixelToLatLng(n)),e=e.fromDivPixelToLatLng(i);return t.extend(n),t.extend(e),t},MarkerClusterer.prototype.redraw_=function(){this.createClusters_(0)},MarkerClusterer.prototype.resetViewport_=function(t){for(var e,n=0;n<this.clusters_.length;n++)this.clusters_[n].remove();for(this.clusters_=[],n=0;n<this.markers_.length;n++)(e=this.markers_[n]).isAdded=!1,t&&e.setMap(null)},MarkerClusterer.prototype.distanceBetweenPoints_=function(t,e){var n=(e.lat()-t.lat())*Math.PI/180,i=(e.lng()-t.lng())*Math.PI/180,n=Math.sin(n/2)*Math.sin(n/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 6371*(2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n)))},MarkerClusterer.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},MarkerClusterer.prototype.addToClosestCluster_=function(t){for(var e,n,i=4e4,r=null,o=0;
1o<this.clusters_.length;o++)(n=(e=this.clusters_[o]).getCenter())&&(n=this.distanceBetweenPoints_(n,t.getPosition()))<i&&(i=n,r=e);r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((e=new Cluster(this)).addMarker(t),this.clusters_.push(e))},MarkerClusterer.prototype.createClusters_=function(t){var e,n=this;if(this.ready_){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic)&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic);for(var i=3<this.getMap().getZoom()?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),r=this.getExtendedBounds(i),o=Math.min(t+this.batchSize_,this.markers_.length),s=t;s<o;s++)!(e=this.markers_[s]).isAdded&&this.isMarkerInBounds_(e,r)&&(!this.ignoreHidden_||this.ignoreHidden_&&e.getVisible())&&this.addToClosestCluster_(e);o<this.markers_.length?this.timerRefStatic=setTimeout(function(){n.createClusters_(o)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},MarkerClusterer.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},MarkerClusterer.CALCULATOR=function(t,e){for(var n=0,t=t.length.toString(),i=t;0!==i;)i=parseInt(i/10,10),n++;return{text:t,index:n=Math.min(n,e),title:""}},MarkerClusterer.BATCH_SIZE=2e3,MarkerClusterer.BATCH_SIZE_IE=500,MarkerClusterer.IMAGE_PATH="../images/m",MarkerClusterer.IMAGE_EXTENSION="png",MarkerClusterer.IMAGE_SIZES=[53,56,66,78,90],!function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var n;if(t&&e)return-1==(n=(n=this._events=this._events||{})[t]=n[t]||[]).indexOf(e)&&n.push(e),this},e.once=function(t,e){var n;if(t&&e)return this.on(t,e),((n=this._onceEvents=this._onceEvents||{})[t]=n[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){for(var i=0,r=n[i],o=(e=e||[],this._onceEvents&&this._onceEvents[t]);r;){var s=o&&o[r];s&&(this.off(t,r),delete o[r]),r.apply(this,e),r=n[i+=s?0:1]}return this}},e.allOff=e.removeAllListeners=function(){delete this._events,delete this._onceEvents},t}),!function(e,n){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(t){return n(e,t)}):"object"==typeof module&&module.exports?module.exports=n(e,require("ev-emitter")):e.imagesLoaded=n(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){var i=e.jQuery,r=e.console;function o(t,e){for(var n in e)t[n]=e[n];return t}function s(t,e,n){if(!(this instanceof s))return new s(t,e,n);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=function(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e}(t),this.options=o({},this.options),"function"==typeof e?n=e:o(this.options,e),n&&this.on("always",n),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(function(){this.check()}.bind(this))}(s.prototype=Object.create(t.prototype)).options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&a[e]){for(var n=t.querySelectorAll("img"),i=0;i<n.length;i++){var r=n[i];this.addImage(r)}if("string"==typeof this.options.background)for(var o=t.querySelectorAll(this.options.background),i=0;i<o.length;i++){var s=o[i];this.addElementBackgroundImages(s)}}};var a={1:!0,9:!0,11:!0};function n(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}
1return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,i=n.exec(e.backgroundImage);null!==i;){var r=i&&i[2];r&&this.addBackground(r,t),i=n.exec(e.backgroundImage)}},s.prototype.addImage=function(t){t=new n(t);this.images.push(t)},s.prototype.addBackground=function(t,e){t=new l(t,e);this.images.push(t)},s.prototype.check=function(){var i=this;function e(t,e,n){setTimeout(function(){i.progress(t,e,n)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},s.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(n.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},n.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},n.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},n.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},n.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},n.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(l.prototype=Object.create(n.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(s.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((i=t).fn.imagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(i(this))})})(),s}),!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){x.ui=x.ui||{};x.ui.version="1.12.1";var r,i,C,k,o,s,a,l,u,n,I=0,c=Array.prototype.slice;x.cleanData=(r=x.cleanData,function(t){for(var e,n,i=0;null!=(n=t[i]);i++)try{(e=x._data(n,"events"))&&e.remove&&x(n).triggerHandler("remove")}catch(t){}r(t)}),x.widget=function(t,n,e){var i,r,o,s={},a=t.split(".")[0],l=a+"-"+(t=t.split(".")[1]);return e||(e=n,n=x.Widget),x.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr[":"][l.toLowerCase()]=function(t){return!!x.data(t,l)},x[a]=x[a]||{},i=x[a][t],r=x[a][t]=function(t,e){if(!this._createWidget)return new r(t,e);arguments.length&&this._createWidget(t,e)},x.extend(r,i,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(o=new n).options=x.widget.extend({},o.options),x.each(e,function(e,i){function r(){return n.prototype[e].apply(this,arguments)}function o(t){return n.prototype[e].apply(this,t)}x.isFunction(i)?s[e]=function(){var t,e=this._super,n=this._superApply;return this._super=r,this._superApply=o,t=i.apply(this,arguments),this._super=e,this._superApply=n,t}:s[e]=i}),r.prototype=x.widget.extend(o,{widgetEventPrefix:i&&o.widgetEventPrefix||t},s,{constructor:r,namespace:a,widgetName:t,widgetFullName:l}),i?(x.each(i._childConstructors,function(t,e){var n=e.prototype;x.widget(n.namespace+"."+n.widgetName,r,e._proto)}),delete i._childConstructors):n._childConstructors.push(r),x.widget.bridge(t,r),r}
vendor: 8,002 bytes, line 1
1,x.widget.extend=function(t){for(var e,n,i=c.call(arguments,1),r=0,o=i.length;r<o;r++)for(e in i[r])n=i[r][e],i[r].hasOwnProperty(e)&&void 0!==n&&(x.isPlainObject(n)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],n):x.widget.extend({},n):t[e]=n);return t},x.widget.bridge=function(o,e){var s=e.prototype.widgetFullName||o;x.fn[o]=function(n){var t="string"==typeof n,i=c.call(arguments,1),r=this;return t?this.length||"instance"!==n?this.each(function(){var t,e=x.data(this,s);return"instance"===n?(r=e,!1):e?x.isFunction(e[n])&&"_"!==n.charAt(0)?(t=e[n].apply(e,i))!==e&&void 0!==t?(r=t&&t.jquery?r.pushStack(t.get()):t,!1):void 0:x.error("no such method '"+n+"' for "+o+" widget instance"):x.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+n+"'")}):r=void 0:(i.length&&(n=x.widget.extend.apply(null,[n].concat(i))),this.each(function(){var t=x.data(this,s);t?(t.option(n||{}),t._init&&t._init()):x.data(this,s,new e(n,this))})),r}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=I++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var n=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){n._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var n,i,r,o=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(n=t.split(".")).shift(),n.length){for(i=o[t]=x.widget.extend({},this.options[t]),r=0;r<n.length-1;r++)i[n[r]]=i[n[r]]||{},i=i[n[r]];if(t=n.pop(),1===arguments.length)return void 0===i[t]?null:i[t];i[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,n,i;for(e in t)i=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&i&&i.length&&(n=x(i.get()),this._removeClass(i,e),n.addClass(this._classes({element:n,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(r){var o=[],s=this;function t(t,e){for(var n,i=0;i<t.length;i++)n=s.classesElementLookup[t[i]]||x(),n=r.add?x(x.unique(n.get().concat(r.element.get()))):x(n.not(r.element).get()),s.classesElementLookup[t[i]]=n,o.push(t[i]),e&&r.classes[t[i]]&&o.push(r.classes[t[i]])}return r=x.extend({element:this.element,classes:this.options.classes||{}},r),this._on(r.element,{remove:"_untrackClassesElement"}),r.keys&&t(r.keys.match(/\S+/g)||[],!0),r.extra&&t(r.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(n){var i=this;x.each(i.classesElementLookup,function(t,e){-1!==x.inArray(n.target,e)&&(i.classesElementLookup[t]=x(e.not(n.target).get()))})},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,i){var r="string"==typeof t||null===t,e={extra:r?e:n,keys:r?t:e,element:r?this.element:t,add:i="boolean"==typeof i?i:n};return e.element.toggleClass(this._classes(e),i),this},_on:function(r,o,t){var s,a=this;"boolean"!=typeof r&&(t=o,o=r,r=!1),t?(o=s=x(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,s=this.widget()),x.each(t,function(t,e){function n(){if(r||!0!==a.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?a[e]:e).apply(a,arguments)}"string"!=typeof e&&(n.guid=e.guid=e.guid||n.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),i=t[1]+a.eventNamespace,t=t[2];t?s.on(i,t,n):o.on(i,n)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var n=this;return setTimeout(function(){return("string"==typeof t?n[t]:t).apply(n,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,n){var i,r,o=this.options[t];if(n=n||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],r=e.originalEvent)for(i in r)i in e||(e[i]=r[i]);return this.element.trigger(e,n),!(x.isFunction(o)&&!1===o.apply(this.element[0],[e].concat(n))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(o,s){x.Widget.prototype["_"+o]=function(e,t,n){var i=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||s:o,r=!x.isEmptyObject(t="number"==typeof(t=t||{})?{duration:t}:t);t.complete=n,t.delay&&e.delay(t.delay),r&&x.effects&&x.effects.effect[i]?e[o](t):i!==o&&e[i]?e[i](t.duration,t.easing,n):e.queue(function(t){x(this)[o](),n&&n.call(e[0]),t()})}}),x.widget;function L(t,e,n){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?n/100:1)]}function $(t,e){return parseInt(x.css(t,e),10)||0}C=Math.max,k=Math.abs,o=/left|center|right/,s=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,u=/%$/,n=x.fn.position,x.position={scrollbarWidth:function(){var t,e,n;return void 0!==i?i:(n=(e=x("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=n.offsetWidth,e.css("overflow","scroll"),t===(n=n.offsetWidth)&&(n=e[0].clientWidth),e.remove(),i=t-n)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),n=x.isWindow(e[0]),i=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:n,isDocument:i,offset:!n&&!i?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(h){if(!h||!h.of)return n.apply(this,arguments);h=x.extend({},h);
vendor: 5,382 bytes, line 1
1var d,p,f,m,g,t,v=x(h.of),y=x.position.getWithinInfo(h.within),b=x.position.getScrollInfo(y),_=(h.collision||"flip").split(" "),w={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:x.isWindow(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()};return v[0].preventDefault&&(h.at="left top"),p=e.width,f=e.height,g=x.extend({},m=e.offset),x.each(["my","at"],function(){var t,e,n=(h[this]||"").split(" ");(n=1===n.length?o.test(n[0])?n.concat(["center"]):s.test(n[0])?["center"].concat(n):["center","center"]:n)[0]=o.test(n[0])?n[0]:"center",n[1]=s.test(n[1])?n[1]:"center",t=a.exec(n[0]),e=a.exec(n[1]),w[this]=[t?t[0]:0,e?e[0]:0],h[this]=[l.exec(n[0])[0],l.exec(n[1])[0]]}),1===_.length&&(_[1]=_[0]),"right"===h.at[0]?g.left+=p:"center"===h.at[0]&&(g.left+=p/2),"bottom"===h.at[1]?g.top+=f:"center"===h.at[1]&&(g.top+=f/2),d=L(w.at,p,f),g.left+=d[0],g.top+=d[1],this.each(function(){var n,t,s=x(this),a=s.outerWidth(),l=s.outerHeight(),e=$(this,"marginLeft"),i=$(this,"marginTop"),r=a+e+$(this,"marginRight")+b.width,o=l+i+$(this,"marginBottom")+b.height,u=x.extend({},g),c=L(w.my,s.outerWidth(),s.outerHeight());"right"===h.my[0]?u.left-=a:"center"===h.my[0]&&(u.left-=a/2),"bottom"===h.my[1]?u.top-=l:"center"===h.my[1]&&(u.top-=l/2),u.left+=c[0],u.top+=c[1],n={marginLeft:e,marginTop:i},x.each(["left","top"],function(t,e){x.ui.position[_[t]]&&x.ui.position[_[t]][e](u,{targetWidth:p,targetHeight:f,elemWidth:a,elemHeight:l,collisionPosition:n,collisionWidth:r,collisionHeight:o,offset:[d[0]+c[0],d[1]+c[1]],my:h.my,at:h.at,within:y,elem:s})}),h.using&&(t=function(t){var e=m.left-u.left,n=e+p-a,i=m.top-u.top,r=i+f-l,o={target:{element:v,left:m.left,top:m.top,width:p,height:f},element:{element:s,left:u.left,top:u.top,width:a,height:l},horizontal:n<0?"left":0<e?"right":"center",vertical:r<0?"top":0<i?"bottom":"middle"};p<a&&k(e+n)<p&&(o.horizontal="center"),f<l&&k(i+r)<f&&(o.vertical="middle"),C(k(e),k(n))>C(k(i),k(r))?o.important="horizontal":o.important="vertical",h.using.call(this,t,o)}),s.offset(x.extend(u,{using:t}))})},x.ui.position={fit:{left:function(t,e){var n,i=e.within,r=i.isWindow?i.scrollLeft:i.offset.left,i=i.width,o=t.left-e.collisionPosition.marginLeft,s=r-o,a=o+e.collisionWidth-i-r;e.collisionWidth>i?0<s&&a<=0?(n=t.left+s+e.collisionWidth-i-r,t.left+=s-n):t.left=!(0<a&&s<=0)&&a<s?r+i-e.collisionWidth:r:0<s?t.left+=s:0<a?t.left-=a:t.left=C(t.left-o,t.left)},top:function(t,e){var n,i=e.within,i=i.isWindow?i.scrollTop:i.offset.top,r=e.within.height,o=t.top-e.collisionPosition.marginTop,s=i-o,a=o+e.collisionHeight-r-i;e.collisionHeight>r?0<s&&a<=0?(n=t.top+s+e.collisionHeight-r-i,t.top+=s-n):t.top=!(0<a&&s<=0)&&a<s?i+r-e.collisionHeight:i:0<s?t.top+=s:0<a?t.top-=a:t.top=C(t.top-o,t.top)}},flip:{left:function(t,e){var n=e.within,i=n.offset.left+n.scrollLeft,r=n.width,n=n.isWindow?n.scrollLeft:n.offset.left,o=t.left-e.collisionPosition.marginLeft,s=o-n,o=o+e.collisionWidth-r-n,a="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,l="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,u=-2*e.offset[0];s<0?((r=t.left+a+l+u+e.collisionWidth-r-i)<0||r<k(s))&&(t.left+=a+l+u):0<o&&(0<(i=t.left-e.collisionPosition.marginLeft+a+l+u-n)||k(i)<o)&&(t.left+=a+l+u)},top:function(t,e){var n=e.within,i=n.offset.top+n.scrollTop,r=n.height,n=n.isWindow?n.scrollTop:n.offset.top,o=t.top-e.collisionPosition.marginTop,s=o-n,o=o+e.collisionHeight-r-n,a="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,l="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,u=-2*e.offset[1];s<0?((r=t.top+a+l+u+e.collisionHeight-r-i)<0||r<k(s))&&(t.top+=a+l+u):0<o&&(0<(i=t.top-e.collisionPosition.marginTop+a+l+u-n)||k(i)<o)&&(t.top+=a+l+u)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}};x.ui.position,x.extend(x.expr[":"],{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,n){return!!x.data(t,n[3])}}),x.fn.extend({disableSelection:(H="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(H+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var H,h,d,p,F,z,f,m,g,v,y,V,j,W,B,q,U,Y,G,K,b,_="ui-effects-",e="ui-effects-style",w="ui-effects-animated",X=x;function S(t,e,n){var i=g[e.type]||{};return null==t?n||!e.def?null:e.def:(t=i.floor?~~t:parseFloat(t),isNaN(t)?e.def:i.mod?(t+i.mod)%i.mod:t<0?0:i.max<t?i.max:t)}function Z(i){var r=f(),o=r._rgba=[];return i=i.toLowerCase(),y(z,function(t,e){var n=e.re.exec(i),n=n&&e.parse(n),e=e.space||"rgba";if(n)return n=r[e](n),r[m[e].cache]=n[m[e].cache],o=r._rgba=n._rgba,!1}),o.length?("0,0,0,0"===o.join()&&h.extend(o,p.transparent),r):p[i]}function E(t,e,n){return 6*(n=(n+1)%1)<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Q(t){var e,n,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,r={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;
vendor: 35,798 bytes, line 1
1)"string"==typeof i[e=i[n]]&&(r[x.camelCase(e)]=i[e]);else for(e in i)"string"==typeof i[e]&&(r[e]=i[e]);return r}function T(t,e,n,i){return t={effect:t=x.isPlainObject(t)?(e=t).effect:t},x.isFunction(e=null==e?{}:e)&&(i=e,n=null,e={}),"number"!=typeof e&&!x.fx.speeds[e]||(i=n,n=e,e={}),x.isFunction(n)&&(i=n,n=null),e&&x.extend(t,e),n=n||e.duration,t.duration=x.fx.off?0:"number"==typeof n?n:n in x.fx.speeds?x.fx.speeds[n]:x.fx.speeds._default,t.complete=i||e.complete,t}function D(t){return!t||"number"==typeof t||x.fx.speeds[t]||"string"==typeof t&&!x.effects.effect[t]||x.isFunction(t)||"object"==typeof t&&!t.effect}function J(t,e){var n=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?n:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}x.effects={effect:{}},F=/^([\-+])=\s*(\d+\.?\d*)/,z=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],f=(h=X).Color=function(t,e,n,i){return new h.Color.fn.parse(t,e,n,i)},m={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},g={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},v=f.support={},t=h("<p>")[0],y=h.each,t.style.cssText="background-color:rgba(1,1,1,.5)",v.rgba=-1<t.style.backgroundColor.indexOf("rgba"),y(m,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),(f.fn=h.extend(f.prototype,{parse:function(r,t,e,n){if(r===d)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=h(r).css(t),t=d);var o=this,i=h.type(r),s=this._rgba=[];return t!==d&&(r=[r,t,e,n],i="array"),"string"===i?this.parse(Z(r)||p._default):"array"===i?(y(m.rgba.props,function(t,e){s[e.idx]=S(r[e.idx],e)}),this):"object"===i?(r instanceof f?y(m,function(t,e){r[e.cache]&&(o[e.cache]=r[e.cache].slice())}):y(m,function(t,n){var i=n.cache;y(n.props,function(t,e){if(!o[i]&&n.to){if("alpha"===t||null==r[t])return;o[i]=n.to(o._rgba)}o[i][e.idx]=S(r[t],e,!0)}),o[i]&&h.inArray(null,o[i].slice(0,3))<0&&(o[i][3]=1,n.from)&&(o._rgba=n.from(o[i]))}),this):void 0},is:function(t){var r=f(t),o=!0,s=this;return y(m,function(t,e){var n,i=r[e.cache];return i&&(n=s[e.cache]||e.to&&e.to(s._rgba)||[],y(e.props,function(t,e){if(null!=i[e.idx])return o=i[e.idx]===n[e.idx]})),o}),o},_space:function(){var n=[],i=this;return y(m,function(t,e){i[e.cache]&&n.push(t)}),n.pop()},transition:function(t,s){var t=(u=f(t))._space(),e=m[t],n=0===this.alpha()?f("transparent"):this,a=n[e.cache]||e.to(n._rgba),l=a.slice(),u=u[e.cache];return y(e.props,function(t,e){var n=e.idx,i=a[n],r=u[n],o=g[e.type]||{};null!==r&&(null===i?l[n]=r:(o.mod&&(r-i>o.mod/2?i+=o.mod:i-r>o.mod/2&&(i-=o.mod)),l[n]=S((r-i)*s+i,e)))}),this[t](l)},blend:function(t){var e,n,i;return 1===this._rgba[3]?this:(e=this._rgba.slice(),n=e.pop(),i=f(t)._rgba,f(h.map(e,function(t,e){return(1-n)*i[e]+n*t})))},toRgbaString:function(){var t="rgba(",e=h.map(this._rgba,function(t,e){return null==t?2<e?1:0:t});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=h.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),t=e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),n=e.pop();return t&&e.push(~~(255*n)),"#"+h.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=f.fn,m.hsla.to=function(t){var e,n,i,r,o,s,a,l;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/255,n=t[1]/255,i=t[2]/255,t=t[3],r=(l=Math.max(e,n,i))-(a=Math.min(e,n,i)),s=.5*(o=l+a),a=a===l?0:e===l?60*(n-i)/r+360:n===l?60*(i-e)/r+120:60*(e-n)/r+240,l=0==r?0:s<=.5?r/o:r/(2-o),[Math.round(a)%360,l,s,null==t?1:t])},m.hsla.from=function(t){var e,n,i;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/360,i=t[1],n=t[2],t=t[3],i=2*n-(n=n<=.5?n*(1+i):n+i-n*i),[Math.round(255*E(i,n,e+1/3)),Math.round(255*E(i,n,e)),Math.round(255*E(i,n,e-1/3)),t])},y(m,function(a,t){var o=t.props,s=t.cache,l=t.to,u=t.from;f.fn[a]=function(t){var e,n,i,r;return l&&!this[s]&&(this[s]=l(this._rgba)),t===d?this[s].slice():(n=h.type(t),i="array"===n||"object"===n?t:arguments,r=this[s].slice(),y(o,function(t,e){t=i["object"===n?t:e.idx];null==t&&(t=r[e.idx]),r[e.idx]=S(t,e)}),u?((e=f(u(r)))[s]=r,e):f(r))},y(o,function(o,s){f.fn[o]||(f.fn[o]=function(t){var e=h.type(t),n="alpha"===o?this._hsla?"hsla":"rgba":a,i=this[n](),r=i[s.idx];return"undefined"===e?r:("function"===e&&(t=t.call(this,r),e=h.type(t)),null==t&&s.empty?this:("string"===e&&(e=F.exec(t))&&(t=r+parseFloat(e[2])*("+"===e[1]?1:-1)),i[s.idx]=t,this[n](i)))})})}),(f.hook=function(t){t=t.split(" ");y(t,function(t,o){h.cssHooks[o]={set:function(t,e){var n,i,r="";if("transparent"!==e&&("string"!==h.type(e)||(n=Z(e)))){if(e=f(n||e),!v.rgba&&1!==e._rgba[3]){for(i="backgroundColor"===o?t.parentNode:t;(""===r||"transparent"===r)&&i&&i.style;)try{r=h.css(i,"backgroundColor"),i=i.parentNode}catch(t){}e=e.blend(r&&"transparent"!==r?r:"_default")}e=e.toRgbaString()}try{t.style[o]=e}catch(t){}}},h.fx.step[o]=function(t){t.colorInit||(t.start=f(t.elem,o),t.end=f(t.end),t.colorInit=!0),h.cssHooks[o].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),h.cssHooks.borderColor={expand:function(n){var i={};return y(["Top","Right","Bottom","Left"],function(t,e){i["border"+e+"Color"]=n}),i}},p=h.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},B=["add","remove","toggle"],q={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},x.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){x.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(X.style(t.elem,e,t.end),t.setAttr=!0)}}),x.fn.addBack||(x.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),x.effects.animateClass=function(r,t,e,n){var o=x.speed(t,e,n);return this.queue(function(){var n=x(this),t=n.attr("class")||"",e=(e=o.children?n.find("*").addBack():n).map(function(){return{el:x(this),start:Q(this)}}),i=function(){x.each(B,function(t,e){r[e]&&n[e+"Class"](r[e])})};i(),e=e.map(function(){return this.end=Q(this.el[0]),this.diff=function(t,e){var n,i,r={};for(n in e)i=e[n],t[n]===i||q[n]||!x.fx.step[n]&&isNaN(parseFloat(i))||(r[n]=i);return r}(this.start,this.end),this}),n.attr("class",t),e=e.map(function(){var t=this,e=x.Deferred(),n=x.extend({},o,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,n),e.promise()}),x.when.apply(x,e.get()).done(function(){i(),x.each(arguments,function(){var e=this.el;x.each(this.diff,function(t){e.css(t,"")})}),o.complete.call(n[0])})})},x.fn.extend({addClass:(W=x.fn.addClass,function(t,e,n,i){return e?x.effects.animateClass.call(this,{add:t},e,n,i):W.apply(this,arguments)}),removeClass:(j=x.fn.removeClass,function(t,e,n,i){return 1<arguments.length?x.effects.animateClass.call(this,{remove:t},e,n,i):j.apply(this,arguments)}),toggleClass:(V=x.fn.toggleClass,function(t,e,n,i,r){return"boolean"==typeof e||void 0===e?n?x.effects.animateClass.call(this,e?{add:t}:{remove:t},n,i,r):V.apply(this,arguments):x.effects.animateClass.call(this,{toggle:t},e,n,i)}),switchClass:function(t,e,n,i,r){return x.effects.animateClass.call(this,{add:e,remove:t},n,i,r)}}),x.expr&&x.expr.filters&&x.expr.filters.animated&&(x.expr.filters.animated=(U=x.expr.filters.animated,function(t){return!!x(t).data(w)||U(t)})),!1!==x.uiBackCompat&&x.extend(x.effects,{save:function(t,e){for(var n=0,i=e.length;n<i;n++)null!==e[n]&&t.data(_+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,i=0,r=e.length;i<r;i++)null!==e[i]&&(n=t.data(_+e[i]),t.css(e[i],n))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var i={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},t=x("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},r=document.activeElement;try{r.id}catch(t){r=document.body}return n.wrap(t),n[0]!==r&&!x.contains(n[0],r)||x(r).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(x.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),x.each(["top","left","bottom","right"],function(t,e){i[e]=n.css(e),isNaN(parseInt(i[e],10))&&(i[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(i).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!x.contains(t[0],e)||x(e).trigger("focus")),t}}),x.extend(x.effects,{version:"1.12.1",define:function(t,e,n){return n||(n=e,e="effect"),x.effects.effect[t]=n,x.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){var i;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(i="horizontal"!==n?(e||100)/100:1,n="vertical"!==n?(e||100)/100:1,{height:t.height()*n,width:t.width()*i,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*i})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var i=t.queue();1<e&&i.splice.apply(i,[1,0].concat(i.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(e,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(e)||"",t.removeData(e)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var n,i;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:n}},createPlaceholder:function(t){var e,n=t.css("position"),i=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",e=x("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(_+"placeholder",e)),t.css({position:n,left:i.left,top:i.top}),e},removePlaceholder:function(t){var e=_+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){x.effects.restoreStyle(t),x.effects.removePlaceholder(t)},setTransition:function(i,t,r,o){return o=o||{},x.each(t,function(t,e){var n=i.cssUnit(e);0<n[0]&&(o[e]=n[0]*r+n[1])}),o}}),x.fn.extend({effect:function(){function t(t){var e=x(this),n=x.effects.mode(e,a)||o;e.data(w,!0),l.push(n),o&&("show"===n||n===o&&"hide"===n)&&e.show(),o&&"none"===n||x.effects.saveStyle(e),x.isFunction(t)&&t()}var i=T.apply(this,arguments),r=x.effects.effect[i.effect],o=r.mode,e=i.queue,n=e||"fx",s=i.complete,a=i.mode,l=[];return x.fx.off||!r?a?this[a](i.duration,s):this.each(function(){s&&s.call(this)}):!1===e?this.each(t).each(u):this.queue(n,t).queue(n,u);function u(t){var e=x(this);function n(){x.isFunction(s)&&s.call(e[0]),x.isFunction(t)&&t()}i.mode=l.shift(),!1===x.uiBackCompat||o?"none"===i.mode?(e[a](),n()):r.call(e[0],i,function(){e.removeData(w),x.effects.cleanUp(e),"hide"===i.mode&&e.hide(),n()}):(e.is(":hidden")?"hide"===a:"show"===a)?(e[a](),n()):r.call(e[0],i,n)}},show:(K=x.fn.show,function(t){var e;return D(t)?K.apply(this,arguments):((e=T.apply(this,arguments)).mode="show",this.effect.call(this,e))}),hide:(G=x.fn.hide,function(t){var e;return D(t)?G.apply(this,arguments):((e=T.apply(this,arguments)).mode="hide",this.effect.call(this,e))}),toggle:(Y=x.fn.toggle,function(t){var e;return D(t)||"boolean"==typeof t?Y.apply(this,arguments):((e=T.apply(this,arguments)).mode="toggle",this.effect.call(this,e))}),cssUnit:function(t){var n=this.css(t),i=[];return x.each(["em","px","%","pt"],function(t,e){0<n.indexOf(e)&&(i=[parseFloat(n),e])}),i},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):J(this.css("clip"),this)},transfer:function(t,e){var n=x(this),i=x(t.to),r="fixed"===i.css("position"),o=x("body"),s=r?o.scrollTop():0,o=r?o.scrollLeft():0,a=i.offset(),a={top:a.top-s,left:a.left-o,height:i.innerHeight(),width:i.innerWidth()},i=n.offset(),l=x("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:i.top-s,left:i.left-o,height:n.innerHeight(),width:n.innerWidth(),position:r?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove(),x.isFunction(e)&&e()})}}),x.fx.step.clip=function(t){t.clipInit||(t.start=x(t.elem).cssClip(),"string"==typeof t.end&&(t.end=J(t.end,t.elem)),t.clipInit=!0),x(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},b={},x.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){b[t]=function(t){return Math.pow(t,e+2)}}),x.extend(b,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),x.each(b,function(t,e){x.easing["easeIn"+t]=e,x.easing["easeOut"+t]=function(t){return 1-e(1-t)},x.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});var t=x.effects;x.effects.define("blind","hide",function(t,e){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},i=x(this),r=t.direction||"up",o=i.cssClip(),s={clip:x.extend({},o)},a=x.effects.createPlaceholder(i);s.clip[n[r][0]]=s.clip[n[r][1]],"show"===t.mode&&(i.cssClip(s.clip),a&&a.css(x.effects.clipToBox(s)),s.clip=o),a&&a.animate(x.effects.clipToBox(s),t.duration,t.easing),i.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("bounce",function(t,e){var n,i,r=x(this),o=t.mode,s="hide"===o,o="show"===o,a=t.direction||"up",l=t.distance,u=t.times||5,c=2*u+(o||s?1:0),h=t.duration/c,d=t.easing,p="up"===a||"down"===a?"top":"left",f="up"===a||"left"===a,m=0,t=r.queue().length;for(x.effects.createPlaceholder(r),a=r.css(p),l=l||r["top"==p?"outerHeight":"outerWidth"]()/3,o&&((i={opacity:1})[p]=a,r.css("opacity",0).css(p,f?2*-l:2*l).animate(i,h,d)),s&&(l/=Math.pow(2,u-1)),(i={})[p]=a;m<u;m++)(n={})[p]=(f?"-=":"+=")+l,r.animate(n,h,d).animate(i,h,d),l=s?2*l:l/2;s&&((n={opacity:0})[p]=(f?"-=":"+=")+l,r.animate(n,h,d)),r.queue(e),x.effects.unshift(r,t,1+c)}),x.effects.define("clip","hide",function(t,e){var n={},i=x(this),r=t.direction||"vertical",o="both"===r,s=o||"horizontal"===r,o=o||"vertical"===r,r=i.cssClip();n.clip={top:o?(r.bottom-r.top)/2:r.top,right:s?(r.right-r.left)/2:r.right,bottom:o?(r.bottom-r.top)/2:r.bottom,left:s?(r.right-r.left)/2:r.left},x.effects.createPlaceholder(i),"show"===t.mode&&(i.cssClip(n.clip),n.clip=r),i.animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("drop","hide",function(t,e){var n,i=x(this),r="show"===t.mode,o=t.direction||"left",s="up"===o||"down"===o?"top":"left",o="up"===o||"left"===o?"-=":"+=",a="+="==o?"-=":"+=",l={opacity:0};x.effects.createPlaceholder(i),n=t.distance||i["top"==s?"outerHeight":"outerWidth"](!0)/2,l[s]=o+n,r&&(i.css(l),l[s]=a+n,l.opacity=1),i.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("explode","hide",function(t,e){var n,i,r,o,s,a,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,u=l,c=x(this),h="show"===t.mode,d=c.show().css("visibility","hidden").offset(),p=Math.ceil(c.outerWidth()/u),f=Math.ceil(c.outerHeight()/l),m=[];function g(){m.push(this),m.length===l*u&&(c.css({visibility:"visible"}),x(m).remove(),e())}for(n=0;n<l;n++)for(o=d.top+n*f,a=n-(l-1)/2,i=0;i<u;i++)r=d.left+i*p,s=i-(u-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-i*p,top:-n*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:r+(h?s*p:0),top:o+(h?a*f:0),opacity:h?0:1}).animate({left:r+(h?0:s*p),top:o+(h?0:a*f),opacity:h?1:0},t.duration||500,t.easing,g)}),x.effects.define("fade","toggle",function(t,e){var n="show"===t.mode;x(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("fold","hide",function(e,t){var n=x(this),i=e.mode,r="show"===i,i="hide"===i,o=e.size||15,s=/([0-9]+)%/.exec(o),a=!!e.horizFirst?["right","bottom"]:["bottom","right"],l=e.duration/2,u=x.effects.createPlaceholder(n),c=n.cssClip(),h={clip:x.extend({},c)},d={clip:x.extend({},c)},p=[c[a[0]],c[a[1]]],f=n.queue().length;s&&(o=parseInt(s[1],10)/100*p[i?0:1]),h.clip[a[0]]=o,d.clip[a[0]]=o,d.clip[a[1]]=0,r&&(n.cssClip(d.clip),u&&u.css(x.effects.clipToBox(d)),d.clip=c),n.queue(function(t){u&&u.animate(x.effects.clipToBox(h),l,e.easing).animate(x.effects.clipToBox(d),l,e.easing),t()}).animate(h,l,e.easing).animate(d,l,e.easing).queue(t),x.effects.unshift(n,f,4)}),x.effects.define("highlight","show",function(t,e){var n=x(this),i={backgroundColor:n.css("backgroundColor")};"hide"===t.mode&&(i.opacity=0),x.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("size",function(i,e){var r,n=x(this),t=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],s=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],a=i.mode,l="effect"!==a,u=i.scale||"both",c=i.origin||["middle","center"],h=n.css("position"),d=n.position(),p=x.effects.scaledDimensions(n),f=i.from||p,m=i.to||x.effects.scaledDimensions(n,0);x.effects.createPlaceholder(n),"show"===a&&(a=f,f=m,m=a),r={from:{y:f.height/p.height,x:f.width/p.width},to:{y:m.height/p.height,x:m.width/p.width}},"box"!==u&&"both"!==u||(r.from.y!==r.to.y&&(f=x.effects.setTransition(n,o,r.from.y,f),m=x.effects.setTransition(n,o,r.to.y,m)),r.from.x!==r.to.x&&(f=x.effects.setTransition(n,s,r.from.x,f),m=x.effects.setTransition(n,s,r.to.x,m))),"content"!==u&&"both"!==u||r.from.y!==r.to.y&&(f=x.effects.setTransition(n,t,r.from.y,f),m=x.effects.setTransition(n,t,r.to.y,m)),c&&(a=x.effects.getBaseline(c,p),f.top=(p.outerHeight-f.outerHeight)*a.y+d.top,f.left=(p.outerWidth-f.outerWidth)*a.x+d.left,m.top=(p.outerHeight-m.outerHeight)*a.y+d.top,m.left=(p.outerWidth-m.outerWidth)*a.x+d.left),n.css(f),"content"!==u&&"both"!==u||(o=o.concat(["marginTop","marginBottom"]).concat(t),s=s.concat(["marginLeft","marginRight"]),n.find("*[width]").each(function(){var t=x(this),e=x.effects.scaledDimensions(t),n={height:e.height*r.from.y,width:e.width*r.from.x,outerHeight:e.outerHeight*r.from.y,outerWidth:e.outerWidth*r.from.x},e={height:e.height*r.to.y,width:e.width*r.to.x,outerHeight:e.height*r.to.y,outerWidth:e.width*r.to.x};r.from.y!==r.to.y&&(n=x.effects.setTransition(t,o,r.from.y,n),e=x.effects.setTransition(t,o,r.to.y,e)),r.from.x!==r.to.x&&(n=x.effects.setTransition(t,s,r.from.x,n),e=x.effects.setTransition(t,s,r.to.x,e)),l&&x.effects.saveStyle(t),t.css(n),t.animate(e,i.duration,i.easing,function(){l&&x.effects.restoreStyle(t)})})),n.animate(m,{queue:!1,duration:i.duration,easing:i.easing,complete:function(){var t=n.offset();0===m.opacity&&n.css("opacity",f.opacity),l||(n.css("position","static"===h?"relative":h).offset(t),x.effects.saveStyle(n)),e()}})}),x.effects.define("scale",function(t,e){var n=x(this),i=t.mode,i=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==i?0:100),n=x.extend(!0,{from:x.effects.scaledDimensions(n),to:x.effects.scaledDimensions(n,i,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(n.from.opacity=1,n.to.opacity=0),x.effects.effect.size.call(this,n,e)}),x.effects.define("puff","hide",function(t,e){t=x.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});x.effects.effect.scale.call(this,t,e)}),x.effects.define("pulsate","show",function(t,e){var n=x(this),i=t.mode,r="show"===i,o=2*(t.times||5)+(r||"hide"===i?1:0),s=t.duration/o,a=0,l=1,i=n.queue().length;for(!r&&n.is(":visible")||(n.css("opacity",0).show(),a=1);l<o;l++)n.animate({opacity:a},s,t.easing),a=1-a;n.animate({opacity:a},s,t.easing),n.queue(e),x.effects.unshift(n,i,1+o)}),x.effects.define("shake",function(t,e){var n=1,i=x(this),r=t.direction||"left",o=t.distance||20,s=t.times||3,a=2*s+1,l=Math.round(t.duration/a),u="up"===r||"down"===r?"top":"left",r="up"===r||"left"===r,c={},h={},d={},p=i.queue().length;for(x.effects.createPlaceholder(i),c[u]=(r?"-=":"+=")+o,h[u]=(r?"+=":"-=")+2*o,d[u]=(r?"-=":"+=")+2*o,i.animate(c,l,t.easing);n<s;n++)i.animate(h,l,t.easing).animate(d,l,t.easing);i.animate(h,l,t.easing).animate(c,l/2,t.easing).queue(e),x.effects.unshift(i,p,1+a)}),x.effects.define("slide","show",function(t,e){var n,i,r=x(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=t.mode,a=t.direction||"left",l="up"===a||"down"===a?"top":"left",u="up"===a||"left"===a,c=t.distance||r["top"==l?"outerHeight":"outerWidth"](!0),h={};x.effects.createPlaceholder(r),n=r.cssClip(),i=r.position()[l],h[l]=(u?-1:1)*c+i,h.clip=r.cssClip(),h.clip[o[a][1]]=h.clip[o[a][0]],"show"===s&&(r.cssClip(h.clip),r.css(l,h[l]),h.clip=n,h[l]=i),r.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),t=!1!==x.uiBackCompat?x.effects.define("transfer",function(t,e){x(this).transfer(t,e)}):t;x.ui.focusable=function(t,e){var n,i,r,o=t.nodeName.toLowerCase();return"area"===o?(r=(n=t.parentNode).name,!(!t.href||!r||"map"!==n.nodeName.toLowerCase())&&0<(n=x("img[usemap='#"+r+"']")).length&&n.is(":visible")):(/^(input|select|textarea|button|object)$/.test(o)?(i=!t.disabled)&&(r=x(t).closest("fieldset")[0])&&(i=!r.disabled):i="a"===o&&t.href||e,i&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}(x(t)))},x.extend(x.expr[":"],{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}});x.ui.focusable,x.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element.form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},"1.7"===x.fn.jquery.substring(0,3)&&(x.each(["Width","Height"],function(t,n){var r="Width"===n?["Left","Right"]:["Top","Bottom"],i=n.toLowerCase(),o={innerWidth:x.fn.innerWidth,innerHeight:x.fn.innerHeight,outerWidth:x.fn.outerWidth,outerHeight:x.fn.outerHeight};function s(t,e,n,i){return x.each(r,function(){e-=parseFloat(x.css(t,"padding"+this))||0,n&&(e-=parseFloat(x.css(t,"border"+this+"Width"))||0),i&&(e-=parseFloat(x.css(t,"margin"+this))||0)}),e}x.fn["inner"+n]=function(t){return void 0===t?o["inner"+n].call(this):this.each(function(){x(this).css(i,s(this,t)+"px")})},x.fn["outer"+n]=function(t,e){return"number"!=typeof t?o["outer"+n].call(this,t):this.each(function(){x(this).css(i,s(this,t,!0,e)+"px")})}}),x.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},x.ui.escapeSelector=(tt=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(tt,"\\$1")}),x.fn.labels=function(){var t,e,n;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(n=(n=this.eq(0).parents().last()).add((n.length?n:this).siblings()),t="label[for='"+x.ui.escapeSelector(t)+"']",e=e.add(n.find(t).addBack(t))),this.pushStack(e))},x.fn.scrollParent=function(t){var e=this.css("position"),n="absolute"===e,i=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!n||"static"!==t.css("position"))&&i.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},x.extend(x.expr[":"],{tabbable:function(t){var e=x.attr(t,"tabindex"),n=null!=e;return(!n||0<=e)&&x.ui.focusable(t,n)}}),x.fn.extend({uniqueId:(et=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++et)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}}),x.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=x(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():x()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=x("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"===t?this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e)&&this._createIcons())},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=x.ui.keyCode,n=this.headers.length,i=this.headers.index(t.target),r=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:r=this.headers[(i+1)%n];break;case e.LEFT:case e.UP:r=this.headers[(i-1+n)%n];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:r=this.headers[0];break;case e.END:r=this.headers[n-1]}r&&(x(t.target).attr("tabIndex",-1),x(r).attr("tabIndex",0),x(r).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===x.ui.keyCode.UP&&t.ctrlKey&&x(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=x()):!1===t.active?this._activate(0):this.active.length&&!x.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=x()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var n,t=this.options,e=t.heightStyle,i=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=x(this),e=t.uniqueId().attr("id"),n=t.next(),i=n.uniqueId().attr("id");t.attr("aria-controls",i),n.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(n=i.height(),this.element.siblings(":visible").each(function(){var t=x(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(n-=t.outerHeight(!0))}),this.headers.each(function(){n-=x(this).outerHeight(!0)}),this.headers.next().each(function(){x(this).height(Math.max(0,n-x(this).innerHeight()+x(this).height()))}).css("overflow","auto")):"auto"===e&&(n=0,this.headers.next().each(function(){var t=x(this).is(":visible");t||x(this).show(),n=Math.max(n,x(this).css("height","").height()),t||x(this).hide()}).height(n))},_activate:function(t){t=this._findActive(t)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:x.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):x()},_setupEvents:function(t){var n={keydown:"_keydown"};t&&x.each(t.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,n=this.active,i=x(t.currentTarget),r=i[0]===n[0],o=r&&e.collapsible,s=o?x():i.next(),a=n.next(),a={oldHeader:n,oldPanel:a,newHeader:o?x():i,newPanel:s};t.preventDefault(),r&&!e.collapsible||!1===this._trigger("beforeActivate",t,a)||(e.active=!o&&this.headers.index(i),this.active=r?x():i,this._toggle(a),this._removeClass(n,"ui-accordion-header-active","ui-state-active"),e.icons&&(s=n.children(".ui-accordion-header-icon"),this._removeClass(s,null,e.icons.activeHeader)._addClass(s,null,e.icons.header)),r)||(this._removeClass(i,"ui-accordion-header-collapsed")._addClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(t=i.children(".ui-accordion-header-icon"),this._removeClass(t,null,e.icons.header)._addClass(t,null,e.icons.activeHeader)),this._addClass(i.next(),"ui-accordion-content-active"))},_toggle:function(t){var e=t.newPanel,n=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=n,this.options.animate?this._animate(e,n,t):(n.hide(),e.show(),this._toggleComplete(t)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(x(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,n,e){function i(){o._toggleComplete(e)}var r,o=this,s=0,a=t.css("box-sizing"),l=t.length&&(!n.length||t.index()<n.index()),u=this.options.animate||{},l=l&&u.down||u,c=(c="string"==typeof l?l:c)||l.easing||u.easing,h=(h="number"==typeof l?l:h)||l.duration||u.duration;return n.length?t.length?(r=t.show().outerHeight(),n.animate(this.hideProps,{duration:h,easing:c,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:h,easing:c,complete:i,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===a&&(s+=e.now):"content"!==o.options.heightStyle&&(e.now=Math.round(r-n.outerHeight()-s),s=0)}})):n.animate(this.hideProps,h,c,i):t.animate(this.showProps,h,c,i)},_toggleComplete:function(t){var e=t.oldPanel,n=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(n,"ui-accordion-header-active")._addClass(n,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),x.ui.safeActiveElement=function(e){var n;try{n=e.activeElement}catch(t){n=e.body}return n=(n=n||e.body).nodeName?n:e.body},x.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"}
vendor: 6,805 bytes, line 1
1,role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(t){var e=x(t.target),n=x(x.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":function(t){var e,n;this.previousFilter||(e=x(t.target).closest(".ui-menu-item"),n=x(t.currentTarget),e[0]===n[0]&&(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,n)))},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,n)},blur:function(t){this._delay(function(){x.contains(this.element[0],x.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,n,i,r=!0;switch(t.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case x.ui.keyCode.END:this._move("last","last",t);break;case x.ui.keyCode.UP:this.previous(t);break;case x.ui.keyCode.DOWN:this.next(t);break;case x.ui.keyCode.LEFT:this.collapse(t);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case x.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",i=r=!1,n=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),n===e?i=!0:n=e+n,e=this._filterMenuItems(n),(e=i&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(n=String.fromCharCode(t.keyCode),e=this._filterMenuItems(n)),e.length?(this.focus(t,e),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}r&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,i=this,r=this.options.icons.submenu,n=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),t=n.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=x(this),e=t.prev(),n=x("<span>").data("ui-menu-submenu-caret",!0);i._addClass(n,"ui-menu-icon","ui-icon "+r),e.attr("aria-haspopup","true").prepend(n),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front"),(t=n.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=x(this);i._isDivider(t)&&i._addClass(t,"ui-menu-divider","ui-widget-content")}),e=(n=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var n;"icons"===t&&(n=this.element.find(".ui-menu-icon"),this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,n,i;this._hasScroll()&&(e=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-e-n,n=this.activeMenu.scrollTop(),i=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(n+e):i<e+t&&this.activeMenu.scrollTop(n+e-i+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=x.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var t=n?this.element:x(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
1se")},_closeOnDocumentClick:function(t){return!x(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var i;(i=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0):i)&&i.length&&this.active||(i=this.activeMenu.find(this.options.items)[e]()),this.focus(n,i)},nextPage:function(t){var e,n,i;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,i=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(e=x(this)).offset().top-n-i<0}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,n,i;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,i=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=x(this)).offset().top-n+i}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||x(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(x.trim(x(this).children(".ui-menu-item-wrapper").text()))})}}),x.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var n,i,r,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))i=r=n=!0;else{i=r=n=!1;var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:n=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:n=!0,this._move("nextPage",t);break;case e.UP:n=!0,this._keyEvent("previous",t);break;case e.DOWN:n=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(n=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:i=!0,this._searchTimeout(t)}}},keypress:function(t){if(n)n=!1,this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault();else if(!i){var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){r?(r=!1,t.preventDefault()):this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=x("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==x.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,e){var n;this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent)&&/^mouse/.test(t.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){x(t.target).trigger(t.originalEvent)})):(n=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n}
vendor: 12,737 bytes, line 1
1)&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value),(e=e.item.attr("aria-label")||n.value)&&x.trim(e).length&&(this.liveRegion.children().hide(),x("<div>").text(e).appendTo(this.liveRegion)))},menuselect:function(t,e){var n=e.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i,this.selectedItem=n})),!1!==this._trigger("select",t,{item:n})&&this._value(n.value),this.term=this._value(),this.close(t),this.selectedItem=n}}),this.liveRegion=x("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||x.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t=(t=(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_initSource:function(){var n,i,r=this;x.isArray(this.options.source)?(n=this.options.source,this.source=function(t,e){e(x.ui.autocomplete.filter(n,t.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,e){r.xhr&&r.xhr.abort(),r.xhr=x.ajax({url:i,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(i){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),n=i.altKey||i.ctrlKey||i.metaKey||i.shiftKey;t&&(e||n)||(this.selectedItem=null,this.search(null,i))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return x.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:x.map(t,function(t){return"string"==typeof t?{label:t,value:t}:x.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(x.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(n,t){var i=this;x.each(t,function(t,e){i._renderItemData(n,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return x("<li>").append(x("<div>").text(e.label)).appendTo(t)},_move:function(t,e){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[t](e):this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){var e;return!!t.length&&("inherit"===(e=t.prop("contentEditable"))?this._isContentEditable(t.parent()):"true"===e)}}),x.extend(x.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var n=new RegExp(x.ui.autocomplete.escapeRegex(e),"i");return x.grep(t,function(t){return n.test(t.label||t.value||t)})}}),x.widget("ui.autocomplete",x.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),x("<div>").text(e).appendTo(this.liveRegion))}}),x.ui.autocomplete;var tt,et,nt,M,it=/ui-corner-([a-z]){2,6}/g;x.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var o=this,s=[];x.each(this.options.items,function(i,t){var e,r={};t&&("controlgroupLabel"===i?((e=o.element.find(t)).each(function(){var t=x(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),o._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),s=s.concat(e.get())):x.fn[i]&&(r=o["_"+i+"Options"]?o["_"+i+"Options"]("middle"):{classes:{}},o.element.find(t).each(function(){var t=x(this),e=t[i]("instance"),n=x.widget.extend({},r);"button"===i&&t.parent(".ui-spinner").length||((e=e||t[i]()[i]("instance"))&&(n.classes=o._resolveClassesValues(n.classes,e)),t[i](n),n=t[i]("widget"),x.data(n[0],"ui-controlgroup-data",e||t[i]("instance")),s.push(n[0]))})))}),this.childWidgets=x(x.unique(s)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=x(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var n="vertical"===this.options.direction,i={classes:{}};return i.classes[e]={middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"}[t],i},_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(n,i){var r={};return x.each(n,function(t){var e=i.options.classes[t]||"",e=x.trim(e.replace(it,""));r[t]=(e+" "+n[t]).replace(/\s+/g," ")}),r},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?this._callChildMethod(e?"disable":"enable"):this.refresh()},refresh:function(){var r,o=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),r=this.childWidgets,(r=this.options.onlyVisible?r.filter(":visible"):r).length&&(x.each(["first","last"],function(t,e){var n,i=r[e]().data("ui-controlgroup-data");i&&o["_"+i.widgetName+"Options"]?((n=o["_"+i.widgetName+"Options"](1===r.length?"only":e)).classes=o._resolveClassesValues(n.classes,i),i.element[i.widgetName](n)):o._updateCornerClass(r[e](),e)}),this._callChildMethod("refresh"))}}),x.widget("ui.checkboxradio",[x.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,e=this,n=this._super()||{};return this._readType(),t=this.element.labels(),this.label=x(t[t.length-1]),this.label.length||x.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){e.originalLabel+=3===this.nodeType?x(this).text():this.outerHTML}),this.originalLabel&&(n.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(n.disabled=t),n},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon)&&this._addClass(this.icon,null,"ui-state-hover"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||x.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+x.ui.escapeSelector(t)+"']";return t?(this.form.length?x(this.form[0].elements).filter(e):x(e).filter(function(){return 0===x(this).form().length})).not(this.element):x([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=x(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){"label"===t&&!e||(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),this.element[0].disabled=e):this.refresh())},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=x("<span>"),this.iconSpace=x("<span> </span>
1"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),x.ui.checkboxradio,x.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===x.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,e){var t="iconPosition"!==t,n=t?this.options.iconPosition:e,i="top"===n||"bottom"===n;this.icon?t&&this._removeClass(this.icon,null,this.options.icon):(this.icon=x("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),t&&this._addClass(this.icon,null,e),this._attachIcon(n),i?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 4,228 bytes, line 1
1pace||(this.iconSpace=x("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,n=(void 0===t.icon?this.options:t).icon;e||n||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace)&&this.iconSpace.remove()),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e)&&this.element.blur()},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==x.uiBackCompat&&(x.widget("ui.button",x.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"===t?this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments))}}),x.fn.button=(nt=x.fn.button,function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?nt.apply(this,arguments):(x.ui.checkboxradio||x.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),x.fn.buttonset=function(){return x.ui.controlgroup||x.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),x.ui.button;function rt(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},x.extend(this._defaults,this.regional[""]),this.regional.en=x.extend(!0,{},this.regional[""]),this.regional["en-US"]=x.extend(!0,{},this.regional.en),this.dpDiv=ot(x("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function ot(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){x(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,st)}function st(){x.datepicker._isDisabledDatepicker((M.inline?M.dpDiv.parent():M.input)[0])||(x(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),x(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).addClass("ui-datepicker-next-hover"))}function A(t,e){for(var n in x.extend(t,e),e)null==e[n]&&(t[n]=e[n])}x.extend(x.ui,{datepicker:{version:"1.12.1"}}),x.extend(rt.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return A(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var n,i=t.nodeName.toLowerCase(),r="div"===i||"span"===i;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(n=this._newInst(x(t),r)).settings=x.extend({},e||{}),"input"===i?this._connectDatepicker(t,n):r&&this._inlineDatepicker(t,n)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?ot(x("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var n=x(t);e.append=x([]),e.trigger=x([]),n.hasClass(this.markerClassName)||(this._attachments(n,e),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),x.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var n,i=this._get(e,"appendText"),r=this._get(e,"isRTL");e.append&&e.append.remove(),i&&(e.append=x("<span class='"+this._appendClass+"'>"+i+"</span>"),t[r?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(e,"buttonText"),n=this._get(e,"buttonImage"),e.trigger=x(this._get(e,"buttonImageOnly")?x("<img/>").addClass(this._triggerClass).attr({src:n,alt:i,title:i}):x("<button type='button'></button>").addClass(this._triggerClass).html(n?x("<img/>").attr({src:n,alt:i,title:i}):i)),t[r?"before":"after"](e.trigger),e.trigger.on("click",function(){return x.datepicker._datepickerShowing&&x.datepicker._lastInput===t[0]?x.datepicker._hideDatepicker():(x.datepicker._datepickerShowing&&x.datepicker._lastInput!==t[0]&&x.datepicker._hideDatepicker(),x.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,n,i,r,o,s;this._get(t,"autoSize")&&!t.inline&&(o=new Date(2009,11,20),(s=this._get(t,"dateFormat")).match(/[DM]/)&&(o.setMonth((e=function(t){for(r=i=n=0;r<t.length;r++)t[r].length>n&&(n=t[r].length,i=r);return i})(this._get(t,s.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,s.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length))},_inlineDatepicker:function(t,e){var n=x(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(e.dpDiv),x.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,n,i,r){var o,s=this._dialogInst;return s||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=x("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>
1"),this._dialogInput.on("keydown",this._doKeyDown),x("body").append(this._dialogInput),(s=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},x.data(this._dialogInput[0],"datepicker",s)),A(s.settings,i||{}),e=e&&e.constructor===Date?this._formatDate(s,e):e,this._dialogInput.val(e),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(o=document.documentElement.clientWidth,i=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,r=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+e,i/2-150+r]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),s.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),x.blockUI&&x.blockUI(this.dpDiv),x.data(this._dialogInput[0],"datepicker",s),this},_destroyDatepicker:function(t){var e,n=x(t),i=x.data(t,"datepicker");n.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),x.removeData(t,"datepicker"),"input"===e?(i.append.remove(),i.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||n.removeClass(this.markerClassName).empty(),M===i)&&(M=null)},_enableDatepicker:function(e){var t,n=x(e),i=x.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=x.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,n=x(e),i=x.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=x.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(t)for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return x.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,n){var i,r,o,s,a=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?x.extend({},x.datepicker._defaults):a?"all"===e?x.extend({},a.settings):this._get(a,e):null;i=e||{},"string"==typeof e&&((i={})[e]=n),a&&(this._curInst===a&&this._hideDatepicker(),r=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(a,"min"),s=this._getMinMaxDate(a,"max"),A(a.settings,i),null!==o&&void 0!==i.dateFormat&&void 0===i.minDate&&(a.settings.minDate=this._formatDate(a,o)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(a.settings.maxDate=this._formatDate(a,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(x(t),a),this._autoSize(a),this._setDate(a,r),this._updateAlternate(a),this._updateDatepicker(a))},_changeDatepicker:function(t,e,n){this._optionDatepicker(t,e,n)},_refreshDatepicker:function(t){t=this._getInst(t);t&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){t=this._getInst(t);t&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){t=this._getInst(t);return t&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,n,i=x.datepicker._getInst(t.target),r=!0,o=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,x.datepicker._datepickerShowing)switch(t.keyCode){case 9:x.datepicker._hideDatepicker(),r=!1;break;case 13:return(n=x("td."+x.datepicker._dayOverClass+":not(."+x.datepicker._currentClass+")",i.dpDiv))[0]&&x.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,n[0]),(n=x.datepicker._get(i,"onSelect"))?(e=x.datepicker._formatDate(i),n.apply(i.input?i.input[0]:null,[e,i])):x.datepicker._hideDatepicker(),!1;case 27:x.datepicker._hideDatepicker();break;case 33:x.datepicker._adjustDate(t.target,t.ctrlKey?-x.datepicker._get(i,"stepBigMonths"):-x.datepicker._get(i,"stepMonths"),"M");break;case 34:x.datepicker._adjustDate(t.target,t.ctrlKey?+x.datepicker._get(i,"stepBigMonths"):+x.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&x.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&x.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&x.datepicker._adjustDate(t.target,t.ctrlKey?-x.datepicker._get(i,"stepBigMonths"):-x.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&x.datepicker._adjustDate(t.target,t.ctrlKey?+x.datepicker._get(i,"stepBigMonths"):+x.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?x.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,n=x.datepicker._getInst(t.target);if(x.datepicker._get(n,"constrainInput"))return n=x.datepicker._possibleChars(x.datepicker._get(n,"dateFormat")),e=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||e<" "||!n||-1<n.indexOf(e)},_doKeyUp:function(t){t=x.datepicker._getInst(t.target);if(t.input.val()!==t.lastVal)try{x.datepicker.parseDate(x.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,x.datepicker._getFormatConfig(t))&&(x.datepicker._setDateFromField(t),x.datepicker._updateAlternate(t),x.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,n,i,r;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=x("input",t.parentNode)[0]),x.datepicker._isDisabledDatepicker(t)||x.datepicker._lastInput===t||(r=x.datepicker._getInst(t),x.datepicker._curInst&&x.datepicker._curInst!==r&&(x.datepicker._curInst.dpDiv.stop(!0,!0),r)&&x.datepicker._datepickerShowing&&x.datepicker._hideDatepicker(x.datepicker._curInst.input[0]),!1===(n=(n=x.datepicker._get(r,"beforeShow"))?n.apply(t,[t,r]):{}
vendor: 12,499 bytes, line 1
1))||(A(r.settings,n),r.lastVal=null,x.datepicker._lastInput=t,x.datepicker._setDateFromField(r),x.datepicker._inDialog&&(t.value=""),x.datepicker._pos||(x.datepicker._pos=x.datepicker._findPos(t),x.datepicker._pos[1]+=t.offsetHeight),e=!1,x(t).parents().each(function(){return!(e|="fixed"===x(this).css("position"))}),n={left:x.datepicker._pos[0],top:x.datepicker._pos[1]},x.datepicker._pos=null,r.dpDiv.empty(),r.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),x.datepicker._updateDatepicker(r),n=x.datepicker._checkOffset(r,n,e),r.dpDiv.css({position:x.datepicker._inDialog&&x.blockUI?"static":e?"fixed":"absolute",display:"none",left:n.left+"px",top:n.top+"px"}),r.inline)||(n=x.datepicker._get(r,"showAnim"),i=x.datepicker._get(r,"duration"),r.dpDiv.css("z-index",function(t){for(var e;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(e=parseInt(t.css("zIndex"),10),!isNaN(e))&&0!==e)return e;t=t.parent()}return 0}(x(t))+1),x.datepicker._datepickerShowing=!0,x.effects&&x.effects.effect[n]?r.dpDiv.show(n,x.datepicker._get(r,"showOptions"),i):r.dpDiv[n||"show"](n?i:null),x.datepicker._shouldFocusInput(r)&&r.input.trigger("focus"),x.datepicker._curInst=r)},_updateDatepicker:function(t){this.maxRows=4,(M=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,n=this._getNumberOfMonths(t),i=n[1],r=t.dpDiv.find("."+this._dayOverClass+" a");0<r.length&&st.apply(r.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&t.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),t.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===x.datepicker._curInst&&x.datepicker._datepickerShowing&&x.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),e=t.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,n){var i=t.dpDiv.outerWidth(),r=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,s=t.input?t.input.outerHeight():0,a=document.documentElement.clientWidth+(n?0:x(document).scrollLeft()),l=document.documentElement.clientHeight+(n?0:x(document).scrollTop());return e.left-=this._get(t,"isRTL")?i-o:0,e.left-=n&&e.left===t.input.offset().left?x(document).scrollLeft():0,e.top-=n&&e.top===t.input.offset().top+s?x(document).scrollTop():0,e.left-=Math.min(e.left,e.left+i>a&&i<a?Math.abs(e.left+i-a):0),e.top-=Math.min(e.top,e.top+r>l&&r<l?Math.abs(r+s):0),e},_findPos:function(t){for(var e=this._getInst(t),n=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||x.expr.filters.hidden(t));)t=t[n?"previousSibling":"nextSibling"];return[(e=x(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,n,i=this._curInst;!i||t&&i!==x.data(t,"datepicker")||this._datepickerShowing&&(t=this._get(i,"showAnim"),n=this._get(i,"duration"),e=function(){x.datepicker._tidyDialog(i)},x.effects&&(x.effects.effect[t]||x.effects[t])?i.dpDiv.hide(t,x.datepicker._get(i,"showOptions"),n,e):i.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?n:null,e),t||e(),this._datepickerShowing=!1,(n=this._get(i,"onClose"))&&n.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),x.blockUI)&&(x.unblockUI(),x("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;x.datepicker._curInst&&(t=x(t.target),e=x.datepicker._getInst(t[0]),!(t[0].id===x.datepicker._mainDivId||0!==t.parents("#"+x.datepicker._mainDivId).length||t.hasClass(x.datepicker.markerClassName)||t.closest("."+x.datepicker._triggerClass).length||!x.datepicker._datepickerShowing||x.datepicker._inDialog&&x.blockUI)||t.hasClass(x.datepicker.markerClassName)&&x.datepicker._curInst!==e)&&x.datepicker._hideDatepicker()},_adjustDate:function(t,e,n){var t=x(t),i=this._getInst(t[0]);this._isDisabledDatepicker(t[0])||(this._adjustInstDate(i,e+("M"===n?this._get(i,"showCurrentAtPos"):0),n),this._updateDatepicker(i))},_gotoToday:function(t){var e,t=x(t),n=this._getInst(t[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(e=new Date,n.selectedDay=e.getDate(),n.drawMonth=n.selectedMonth=e.getMonth(),n.drawYear=n.selectedYear=e.getFullYear()),this._notifyChange(n),this._adjustDate(t)},_selectMonthYear:function(t,e,n){var t=x(t),i=this._getInst(t[0]);i["selected"+("M"===n?"Month":"Year")]=i["draw"+("M"===n?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(t)},_selectDay:function(t,e,n,i){var r=x(t);x(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((r=this._getInst(r[0])).selectedDay=r.currentDay=x("a",i).html(),r.selectedMonth=r.currentMonth=e,r.selectedYear=r.currentYear=n,this._selectDate(t,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear)))},_clearDate:function(t){t=x(t);this._selectDate(t,"")},_selectDate:function(t,e){var n,t=x(t),t=this._getInst(t[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(n=this._get(t,"onSelect"))?n.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,n,i=this._get(t,"altField");i&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),e=this._getDate(t),n=this.formatDate(n,e,this._getFormatConfig(t)),x(i).val(n))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]},iso8601Week:function(t){var e,t=new Date(t.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),e=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((e-t)/864e5)/7)+1},parseDate:function(e,r,t){if(null==e||null==r)throw"Invalid arguments";if(""===(r="object"==typeof r?r.toString():r+""))return null;function n(t){var e=b(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,t=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(e=r.substring(l).match(t))return l+=e[0].length,parseInt(e[0],10);throw"Missing number at position "+l}function i(t,e,n){var i=-1,t=x.map(b(t)?n:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(x.each(t,function(t,e){var n=e[1];if(r.substr(l,n.length).toLowerCase()===n.toLowerCase())return i=e[0],l+=n.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+l}function o(){if(r.charAt(l)!==e.charAt(_))throw"Unexpected literal at position "+l;l++}for(var s,a,l=0,u=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),c=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,h=(t?t.dayNames:null)||this._defaults.dayNames,d=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,p=(t?t.monthNames:null)||this._defaults.monthNames,f=-1,m=-1,g=-1,v=-1,y=!1,b=function(t){t=_+1<e.length&&e.charAt(_+1)===t;return t&&_++,t},_=0;_<e.length;_++)if(y)"'"!==e.charAt(_)||b("'")?o():y=!1;else switch(e.charAt(_)){case"d":g=n("d");break;case"D":i("D",c,h);break;case"o":v=n("o");break;case"m":m=n("m");break;case"M":m=i("M",d,p);break;case"y":f=n("y");break;case"@":f=(a=new Date(n("@"))).getFullYear(),m=a.getMonth()+1,g=a.getDate();break;case"!":f=(a=new Date((n("!")-this._ticksTo1970)/1e4)).getFullYear(),m=a.getMonth()+1,g=a.getDate();break;case"'":b("'")?o():y=!0;break;default:o()}if(l<r.length&&(t=r.substr(l),!/^\s+/.test(t)))throw"Extra/unparsed characters found in date: "+t;if(-1===f?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=u?0:-100)),-1<v)for(m=1,g=v;;){if(g<=(s=this._getDaysInMonth(f,m-1)))break;m++,g-=s}if((a=this._daylightSavingAdjust(new Date(f,m-1,g))).getFullYear()!==f||a.getMonth()+1!==m||a.getDate()!==g)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";function i(t,e,n){var i=""+e;if(c(t))for(;i.length<n;)i="0"+i;return i}function r(t,e,n,i){return(c(t)?i:n)[e]}var o,s=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,a=(n?n.dayNames:null)||this._defaults.dayNames,l=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,u=(n?n.monthNames:null)||this._defaults.monthNames,c=function(t){t=o+1<e.length&&e.charAt(o+1)===t;return t&&o++,t},h="",d=!1;if(t)for(o=0;o<e.length;o++)if(d)"'"!==e.charAt(o)||c("'")?h+=e.charAt(o):d=!1;else switch(e.charAt(o)){case"d":h+=i("d",t.getDate(),2);break;case"D":h+=r("D",t.getDay(),s,a);break;case"o":h+=i("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",t.getMonth()+1,2);break;case"M":h+=r("M",t.getMonth(),l,u);break;case"y":h+=c("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":h+=t.getTime();break;case"!":h+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?h+="'":d=!0;break;default:h+=e.charAt(o)}return h},_possibleChars:function(e){function t(t){return(t=r+1<e.length&&e.charAt(r+1)===t)&&r++,t}for(var n="",i=!1,r=0;r<e.length;r++)if(i)"'"!==e.charAt(r)||t("'")?n+=e.charAt(r):i=!1;else switch(e.charAt(r)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":t("'")?n+="'":i=!0;break;default:n+=e.charAt(r)}return n},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var n=this._get(t,"dateFormat"),i=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),o=r,s=this._getFormatConfig(t);try{o=this.parseDate(n,i,s)||r}catch(t){i=e?"":i}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=i?o.getDate():0,t.currentMonth=i?o.getMonth():0,t.currentYear=i?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(a,t,e){var n,i=null==t||""===t?e:"string"==typeof t?function(t){try{return x.datepicker.parseDate(x.datepicker._get(a,"dateFormat"),t,x.datepicker._getFormatConfig(a))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?x.datepicker._getDate(a):null)||new Date,n=e.getFullYear(),i=e.getMonth(),r=e.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,s=o.exec(t);s;){switch(s[2]||"d"){case"d":case"D":r+=parseInt(s[1],10);break;case"w":case"W":r+=7*parseInt(s[1],10);break;case"m":case"M":i+=parseInt(s[1],10),r=Math.min(r,x.datepicker._getDaysInMonth(n,i));break;case"y":case"Y":n+=parseInt(s[1],10),r=Math.min(r,x.datepicker._getDaysInMonth(n,i))}s=o.exec(t)}return new Date(n,i,r)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(n=new Date).setDate(n.getDate()+i),n):new Date(t.getTime());return(i=i&&"Invalid Date"===i.toString()?e:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var i=!e,r=t.selectedMonth,o=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),r===t.selectedMonth&&o===t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(i?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");
vendor: 5,714 bytes, line 1
1t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){x.datepicker._adjustDate(n,-e,"M")},next:function(){x.datepicker._adjustDate(n,+e,"M")},hide:function(){x.datepicker._hideDatepicker()},today:function(){x.datepicker._gotoToday(n)},selectDay:function(){return x.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return x.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return x.datepicker._selectMonthYear(n,this,"Y"),!1}};x(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,n,i,r,o,I,L,H,F,s,a,z,l,u,c,h,d,p,f,m,g,v,V,y,b,_,w,j,W,x,C,k,$=new Date,B=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth(),$.getDate())),S=this._get(t,"isRTL"),$=this._get(t,"showButtonPanel"),E=this._get(t,"hideIfNoPrevNext"),T=this._get(t,"navigationAsDateFormat"),D=this._getNumberOfMonths(t),M=this._get(t,"showCurrentAtPos"),A=this._get(t,"stepMonths"),q=1!==D[0]||1!==D[1],U=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),O=this._getMinMaxDate(t,"min"),N=this._getMinMaxDate(t,"max"),P=t.drawMonth-M,R=t.drawYear;if(P<0&&(P+=12,R--),N)for(e=this._daylightSavingAdjust(new Date(N.getFullYear(),N.getMonth()-D[0]*D[1]+1,N.getDate())),e=O&&e<O?O:e;this._daylightSavingAdjust(new Date(R,P,1))>e;)--P<0&&(P=11,R--);for(t.drawMonth=P,t.drawYear=R,M=this._get(t,"prevText"),M=T?this.formatDate(M,this._daylightSavingAdjust(new Date(R,P-A,1)),this._getFormatConfig(t)):M,n=this._canAdjustMonth(t,-1,R,P)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+M+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"e":"w")+"'>"+M+"</span></a>":E?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+M+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"e":"w")+"'>"+M+"</span></a>",M=this._get(t,"nextText"),M=T?this.formatDate(M,this._daylightSavingAdjust(new Date(R,P+A,1)),this._getFormatConfig(t)):M,i=this._canAdjustMonth(t,1,R,P)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+M+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"w":"e")+"'>"+M+"</span></a>":E?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+M+"'><span class='ui-icon ui-icon-circle-triangle-"+(S?"w":"e")+"'>"+M+"</span></a>",A=this._get(t,"currentText"),E=this._get(t,"gotoCurrent")&&t.currentDay?U:B,A=T?this.formatDate(A,E,this._getFormatConfig(t)):A,M=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",T=$?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(S?M:"")+(this._isInRange(t,E)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+A+"</button>":"")+(S?"":M)+"</div>":"",r=parseInt(this._get(t,"firstDay"),10),r=isNaN(r)?0:r,o=this._get(t,"showWeek"),I=this._get(t,"dayNames"),L=this._get(t,"dayNamesMin"),H=this._get(t,"monthNames"),F=this._get(t,"monthNamesShort"),s=this._get(t,"beforeShowDay"),a=this._get(t,"showOtherMonths"),z=this._get(t,"selectOtherMonths"),l=this._getDefaultDate(t),u="",h=0;h<D[0];h++){for(d="",this.maxRows=4,p=0;p<D[1];p++){if(f=this._daylightSavingAdjust(new Date(R,P,t.selectedDay)),m=" ui-corner-all",g="",q){if(g+="<div class='ui-datepicker-group",1<D[1])switch(p){case 0:g+=" ui-datepicker-group-first",m=" ui-corner-"+(S?"right":"left");break;case D[1]-1:g+=" ui-datepicker-group-last",m=" ui-corner-"+(S?"left":"right");break;default:g+=" ui-datepicker-group-middle",m=""}g+="'>"}for(g+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+m+"'>"+(/all|left/.test(m)&&0===h?S?i:n:"")+(/all|right/.test(m)&&0===h?S?n:i:"")+this._generateMonthYearHeader(t,P,R,O,N,0<h||0<p,H,F)+"</div><table class='ui-datepicker-calendar'><thead><tr>",v=o?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",c=0;c<7;c++)v+="<th scope='col'"+(5<=(c+r+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+I[V=(c+r)%7]+"'>"+L[V]+"</span></th>";for(g+=v+"</tr></thead><tbody>",b=this._getDaysInMonth(R,P),R===t.selectedYear&&P===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,b)),y=(this._getFirstDayOfMonth(R,P)-r+7)%7,b=Math.ceil((y+b)/7),_=q&&this.maxRows>b?this.maxRows:b,this.maxRows=_,w=this._daylightSavingAdjust(new Date(R,P,1-y)),j=0;j<_;j++){for(g+="<tr>",W=o?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(w)+"</td>":"",c=0;c<7;c++)x=s?s.apply(t.input?t.input[0]:null,[w]):[!0,""],k=(C=w.getMonth()!==P)&&!z||!x[0]||O&&w<O||N&&N<w,W+="<td class='"+(5<=(c+r+6)%7?" ui-datepicker-week-end":"")+(C?" ui-datepicker-other-month":"")+(w.getTime()===f.getTime()&&P===t.selectedMonth&&t._keyEvent||l.getTime()===w.getTime()&&l.getTime()===f.getTime()?" "+this._dayOverClass:"")+(k?" "+this._unselectableClass+" ui-state-disabled":"")+(C&&!a?"":" "+x[1]+(w.getTime()===U.getTime()?" "+this._currentClass:"")+(w.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(C&&!a||!x[2]?"":" title='"+x[2].replace(/'/g,"&#39;")+"'")+(k?"":" data-handler='selectDay' data-event='click' data-month='"+w.getMonth()+"' data-year='"+w.getFullYear()+"'")+">"+(C&&!a?"&#xa0;":k?"<span class='ui-state-default'>"+w.getDate()+"</span>":"<a class='ui-state-default"+(w.getTime()===B.getTime()?" ui-state-highlight":"")+(w.getTime()===U.getTime()?" ui-state-active":"")+(C?" ui-priority-secondary":"")+"' href='#'>"+w.getDate()+"</a>")+"</td>
1",w.setDate(w.getDate()+1),w=this._daylightSavingAdjust(w);g+=W+"</tr>"}11<++P&&(P=0,R++),d+=g+="</tbody></table>"+(q?"</div>"+(0<D[0]&&p===D[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}u+=d}return u+=T,t._keyEvent=!1,u},_generateMonthYearHeader:function(t,e,n,i,r,o,s,a){var l,u,c,h,d,p,f,m=this._get(t,"changeMonth"),g=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",b="";if(o||!m)b+="<span class='ui-datepicker-month'>"+s[e]+"</span>";else{for(l=i&&i.getFullYear()===n,u=r&&r.getFullYear()===n,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=i.getMonth())&&(!u||c<=r.getMonth())&&(b+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+a[c]+"</option>");b+="</select>"}if(v||(y+=b+(!o&&m&&g?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!g)y+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(s=this._get(t,"yearRange").split(":"),h=(new Date).getFullYear(),p=(d=function(t){t=t.match(/c[+\-].*/)?n+parseInt(t.substring(1),10):t.match(/[+\-].*/)?h+parseInt(t,10):parseInt(t,10);return isNaN(t)?h:t})(s[0]),f=Math.max(p,d(s[1]||"")),p=i?Math.max(p,i.getFullYear()):p,f=r?Math.min(f,r.getFullYear()):f,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=f;p++)t.yearshtml+="<option value='"+p+"'"+(p===n?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),v&&(y+=(!o&&m&&g?"":"&#xa0;")+b),y+="</div>"},_adjustInstDate:function(t,e,n){var i=t.selectedYear+("Y"===n?e:0),r=t.selectedMonth+("M"===n?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(i,r))+("D"===n?e:0),i=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(i,r,e)));t.selectedDay=i.getDate(),t.drawMonth=t.selectedMonth=i.getMonth(),t.drawYear=t.selectedYear=i.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),n=n&&e<n?n:e;return t&&t<n?t:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,i){var r=this._getNumberOfMonths(t),n=this._daylightSavingAdjust(new Date(n,i+(e<0?e:r[0]*r[1]),1));return e<0&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(t,n)},_isInRange:function(t,e){var n,i=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max"),o=null,s=null,t=this._get(t,"yearRange");return t&&(t=t.split(":"),n=(new Date).getFullYear(),o=parseInt(t[0],10),s=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(o+=n),t[1].match(/[+\-].*/))&&(s+=n),(!i||e.getTime()>=i.getTime())&&(!r||e.getTime()<=r.getTime())&&(!o||e.getFullYear()>=o)&&(!s||e.getFullYear()<=s)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,n,i){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);i=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(i,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),i,this._getFormatConfig(t))}}),x.fn.datepicker=function(t){if(!this.length)return this;x.datepicker.initialized||(x(document).on("mousedown",x.datepicker._checkExternalClick),x.datepicker.initialized=!0),0===x("#"+x.datepicker._mainDivId).length&&x("body").append(x.datepicker.dpDiv);
vendor: 37,124 bytes, line 1
1var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?x.datepicker["_"+t+"Datepicker"].apply(x.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?x.datepicker["_"+t+"Datepicker"].apply(x.datepicker,[this].concat(e)):x.datepicker._attachDatepicker(this,t)})},x.datepicker=new rt,x.datepicker.initialized=!1,x.datepicker.uuid=(new Date).getTime(),x.datepicker.version="1.12.1";x.datepicker,x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var O=!1,N=(x(document).on("mouseup",function(){O=!1}),x.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===x.data(t.target,e.widgetName+".preventClickEvent"))return x.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){var e,n,i;if(!O)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),n=1===(this._mouseDownEvent=t).which,i=!("string"!=typeof(e=this).options.cancel||!t.target.nodeName)&&x(t.target).closest(this.options.cancel).length,n&&!i&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?t.preventDefault():(!0===x.data(t.target,this.widgetName+".preventClickEvent")&&x.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),O=!0)),!0},_mouseMove:function(t){if(this._mouseMoved){if(x.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&x.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,O=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),x.ui.plugin={add:function(t,e,n){var i,r=x.ui[t].prototype;for(i in n)r.plugins[i]=r.plugins[i]||[],r.plugins[i].push([e,n[i]])},call:function(t,e,n,i){var r,o=t.plugins[e];if(o&&(i||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)t.options[o[r][0]]&&o[r][1].apply(t.element,n)}},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},x.widget("ui.draggable",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<x(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=x(this);return x("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=x.ui.safeActiveElement(this.document[0]);x(t.target).closest(e).length||x.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),x.ui.ddmanager&&(x.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===x(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),x.ui.ddmanager&&!e.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),x.ui.ddmanager&&x.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new x.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",x.ui.ddmanager&&x.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,n=!1;return x.ui.ddmanager&&!this.options.dropBehaviour&&(n=x.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||x.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?x(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),x.ui.ddmanager&&x.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),x.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new x.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!x(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,n=x.isFunction(e.helper),t=n?x(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),n&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=x.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&x.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())})},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e=this.options,n=this.document[0];this.relativeContainer=null,e.containment?"window"===e.containment?this.containment=[x(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,x(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,x(window).scrollLeft()+x(window).width()-this.helperProportions.width-this.margins.left,x(window).scrollTop()+(x(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===e.containment?this.containment=[0,0,x(n).width()-this.helperProportions.width-this.margins.left,(x(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:e.containment.constructor===Array?this.containment=e.containment:("parent"===e.containment&&(e.containment=this.helper[0].parentNode),(e=(n=x(e.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var n,i=this.options,r=this._isRootNode(this.scrollParent[0]),o=t.pageX,s=t.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(s=e&&(this.containment&&(n=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<n[0]&&(o=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(s=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(o=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3])&&(s=n[3]+this.offset.click.top),i.grid&&(e=i.grid[1]?this.originalPageY+Math.round((s-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY,s=!n||e-this.offset.click.top>=n[1]||e-this.offset.click.top>n[3]?e:e-this.offset.click.top>=n[1]?e-i.grid[1]:e+i.grid[1],t=i.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX,o=!n||t-this.offset.click.left>=n[0]||t-this.offset.click.left>n[2]?t:t-this.offset.click.left>=n[0]?t-i.grid[0]:t+i.grid[0]),"y"===i.axis&&(o=this.originalPageX),"x"===i.axis)?this.originalPageY:s)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,n){return n=n||this._uiHash(),x.ui.plugin.call(this,t,[e,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),x.Widget.prototype._trigger.call(this,t,e,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),x.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,n){var i=x.extend({},t,{item:n.element});n.sortables=[],x(n.options.connectToSortable).each(function(){var t=x(this).sortable("instance");t&&!t.options.disabled&&(n.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,i))})},stop:function(e,t,n){var i=x.extend({},t,{item:n.element});n.cancelHelperRemoval=!1,x.each(n.sortables,function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,i))})},drag:function(n,i,r){x.each(r.sortables,function(){var t=!1,e=this;e.positionAbs=r.positionAbs,e.helperProportions=r.helperProportions,e.offset.click=r.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,x.each(r.sortables,function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&x.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,r._parent=i.helper.parent(),e.currentItem=i.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return i.helper[0]},n.target=e.currentItem[0],e._mouseCapture(n,!0),e._mouseStart(n,!0,!0),e.offset.click.top=r.offset.click.top,e.offset.click.left=r.offset.click.left,e.offset.parent.left-=r.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=r.offset.parent.top-e.offset.parent.top,r._trigger("toSortable",n),r.dropped=e.element,x.each(r.sortables,function(){this.refreshPositions()}),r.currentItem=r.element,e.fromOutside=r),e.currentItem&&(e._mouseDrag(n),i.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",n,e._uiHash(e)),e._mouseStop(n,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),i.helper.appendTo(r._parent),r._refreshOffsets(n),i.position=r._generatePosition(n,!0),r._trigger("fromSortable",n),r.dropped=!1,x.each(r.sortables,function(){this.refreshPositions()}))})}}),x.ui.plugin.add("draggable","cursor",{start:function(t,e,n){var i=x("body"),n=n.options;i.css("cursor")&&(n._cursor=i.css("cursor")),i.css("cursor",n.cursor)},stop:function(t,e,n){n=n.options;n._cursor&&x("body").css("cursor",n._cursor)}}),x.ui.plugin.add("draggable","opacity",{start:function(t,e,n){e=x(e.helper),n=n.options;e.css("opacity")&&(n._opacity=e.css("opacity")),e.css("opacity",n.opacity)},stop:function(t,e,n){n=n.options;n._opacity&&x(e.helper).css("opacity",n._opacity)}}),x.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,e,n){var i=n.options,r=!1,o=n.scrollParentNotHidden[0],s=n.document[0];o!==s&&"HTML"!==o.tagName?(i.axis&&"x"===i.axis||(n.overflowOffset.top+o.offsetHeight-t.pageY<i.scrollSensitivity?o.scrollTop=r=o.scrollTop+i.scrollSpeed:t.pageY-n.overflowOffset.top<i.scrollSensitivity&&(o.scrollTop=r=o.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(n.overflowOffset.left+o.offsetWidth-t.pageX<i.scrollSensitivity?o.scrollLeft=r=o.scrollLeft+i.scrollSpeed:t.pageX-n.overflowOffset.left<i.scrollSensitivity&&(o.scrollLeft=r=o.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(t.pageY-x(s).scrollTop()<i.scrollSensitivity?r=x(s).scrollTop(x(s).scrollTop()-i.scrollSpeed):x(window).height()-(t.pageY-x(s).scrollTop())<i.scrollSensitivity&&(r=x(s).scrollTop(x(s).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(t.pageX-x(s).scrollLeft()<i.scrollSensitivity?r=x(s).scrollLeft(x(s).scrollLeft()-i.scrollSpeed):x(window).width()-(t.pageX-x(s).scrollLeft())<i.scrollSensitivity&&(r=x(s).scrollLeft(x(s).scrollLeft()+i.scrollSpeed)))),!1!==r&&x.ui.ddmanager&&!i.dropBehaviour&&x.ui.ddmanager.prepareOffsets(n,t)}}),x.ui.plugin.add("draggable","snap",{start:function(t,e,n){var i=n.options;n.snapElements=[],x(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var t=x(this),e=t.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,n){for(var i,r,o,s,a,l,u,c,h,d=n.options,p=d.snapTolerance,f=e.offset.left,m=f+n.helperProportions.width,g=e.offset.top,v=g+n.helperProportions.height,y=n.snapElements.length-1;0<=y;y--)l=(a=n.snapElements[y].left-n.margins.left)+n.snapElements[y].width,c=(u=n.snapElements[y].top-n.margins.top)+n.snapElements[y].height,m<a-p||l+p<f||v<u-p||c+p<g||!x.contains(n.snapElements[y].item.ownerDocument,n.snapElements[y].item)?(n.snapElements[y].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,x.extend(n._uiHash(),{snapItem:n.snapElements[y].item})),n.snapElements[y].snapping=!1):("inner"!==d.snapMode&&(i=Math.abs(u-v)<=p,r=Math.abs(c-g)<=p,o=Math.abs(a-m)<=p,s=Math.abs(l-f)<=p,i&&(e.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),r&&(e.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),o&&(e.position.left=n._convertPositionTo("relative",{top:0,left:a-n.helperProportions.width}).left),s)&&(e.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),h=i||r||o||s,"outer"!==d.snapMode&&(i=Math.abs(u-g)<=p,r=Math.abs(c-v)<=p,o=Math.abs(a-f)<=p,s=Math.abs(l-m)<=p,i&&(e.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),r&&(e.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),o&&(e.position.left=n._convertPositionTo("relative",{top:0,left:a}).left),s)&&(e.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),!n.snapElements[y].snapping&&(i||r||o||s||h)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,x.extend(n._uiHash(),{snapItem:n.snapElements[y].item})),n.snapElements[y].snapping=i||r||o||s||h)}}),x.ui.plugin.add("draggable","stack",{start:function(t,e,n){var i,n=n.options,n=x.makeArray(x(n.stack)).sort(function(t,e){return(parseInt(x(t).css("zIndex"),10)||0)-(parseInt(x(e).css("zIndex"),10)||0)});n.length&&(i=parseInt(x(n[0]).css("zIndex"),10)||0,x(n).each(function(t){x(this).css("zIndex",i+t)}),this.css("zIndex",i+n.length))}}),x.ui.plugin.add("draggable","zIndex",{start:function(t,e,n){e=x(e.helper),n=n.options;e.css("zIndex")&&(n._zIndex=e.css("zIndex")),e.css("zIndex",n.zIndex)},stop:function(t,e,n){n=n.options;n._zIndex&&x(e.helper).css("zIndex",n._zIndex)}}),x.ui.draggable,x.widget("ui.resizable",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){var n;return"hidden"!==x(t).css("overflow")&&(n=!1,0<t[e=e&&"left"===e?"scrollLeft":"scrollTop"]||(t[e]=1,n=0<t[e],t[e]=0,n))},_create:function(){var t,e=this.options,n=this;this._addClass("ui-resizable"),x.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(x("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&x(this.element).on("mouseenter",function(){e.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){e.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();function t(t){x(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var e;return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){this._super(t,e),"handles"===t&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var t,e,n,i,r,o=this.options,s=this;if(this.handles=o.handles||(x(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=x(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},e=0;e<n.length;e++)i="ui-resizable-"+(t=x.trim(n[e])),r=x("<div>"),this._addClass(r,"ui-resizable-handle "+i),r.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(r);this._renderAxis=function(t){var e,n,i;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=x(this.handles[e]),this._on(this.handles[e],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=x(this.handles[e],this.element),i=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(),n=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(n,i),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){s.resizing||(this.className&&(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=r&&r[1]?r[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var e,n,i=!1;for(e in this.handles)(n=x(this.handles[e])[0])!==t.target&&!x.contains(n,t.target)||(i=!0);return!this.options.disabled&&i},_mouseStart:function(t){var e,n,i=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),i.containment&&(e+=x(i.containment).scrollLeft()||0,n+=x(i.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:e,top:n},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof i.aspectRatio?i.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=x(".ui-resizable-"+this.axis).css("cursor"),x("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,n=this.axis,i=t.pageX-e.left||0,e=t.pageY-e.top||0,n=this._change[n];return this._updatePrevProperties(),n&&(n=n.apply(this,[t,i,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),x.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,n,i,r=this.options,o=this;return this._helper&&(n=(e=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:o.sizeDiff.height,e=e?0:o.sizeDiff.width,e={width:o.helper.width()-e,height:o.helper.height()-n},n=parseFloat(o.element.css("left"))+(o.position.left-o.originalPosition.left)||null,i=parseFloat(o.element.css("top"))+(o.position.top-o.originalPosition.top)||null,r.animate||this.element.css(x.extend(e,{top:i,left:n})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper)&&!r.animate&&this._proportionallyResize(),x("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,n,i,r=this.options,r={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0};(this._aspectRatio||t)&&(t=r.minHeight*this.aspectRatio,n=r.minWidth/this.aspectRatio,e=r.maxHeight*this.aspectRatio,i=r.maxWidth/this.aspectRatio,r.minWidth<t&&(r.minWidth=t),r.minHeight<n&&(r.minHeight=n),e<r.maxWidth&&(r.maxWidth=e),i<r.maxHeight)&&(r.maxHeight=i),this._vBoundaries=r},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,i=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===i&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===i&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,i=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,r=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,s=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,u=/sw|nw|w/.test(n),n=/nw|ne|n/.test(n);return o&&(t.width=e.minWidth),s&&(t.height=e.minHeight),i&&(t.width=e.maxWidth),r&&(t.height=e.maxHeight),o&&u&&(t.left=a-e.minWidth),i&&u&&(t.left=a-e.maxWidth),s&&n&&(t.top=l-e.minHeight),r&&n&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,n=[],i=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],r=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)n[e]=parseFloat(i[e])||0,n[e]+=parseFloat(r[e])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,n=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||x("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var n=this.originalSize;return{left:this.originalPosition.left+e,width:n.width-e}},n:function(t,e,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(t,e,n){return x.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,n]))},sw:function(t,e,n){return x.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,n]))},ne:function(t,e,n){return x.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,n]))},nw:function(t,e,n){return x.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,n]))}},_propagate:function(t,e){x.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),x.ui.plugin.add("resizable","animate",{stop:function(e){var n=x(this).resizable("instance"),t=n.options,i=n._proportionallyResizeElements,r=i.length&&/textarea/i.test(i[0].nodeName),o=r&&n._hasScroll(i[0],"left")?0:n.sizeDiff.height,r=r?0:n.sizeDiff.width,r={width:n.size.width-r,height:n.size.height-o},o=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,s=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(x.extend(r,s&&o?{top:s,left:o}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};i&&i.length&&x(i[0]).css({width:t.width,height:t.height}),n._updateCache(t),n._propagate("resize",e)}})}}),x.ui.plugin.add("resizable","containment",{start:function(){var n,i,t,e,r=x(this).resizable("instance"),o=r.options,s=r.element,o=o.containment,s=o instanceof x?o.get(0):/parent/.test(o)?s.parent().get(0):o;s&&(r.containerElement=x(s),/document/.test(o)||o===document?(r.containerOffset={left:0,top:0},r.containerPosition={left:0,top:0},r.parentData={element:x(document),left:0,top:0,width:x(document).width(),height:x(document).height()||document.body.parentNode.scrollHeight}):(n=x(s),i=[],x(["Top","Right","Left","Bottom"]).each(function(t,e){i[t]=r._num(n.css("padding"+e))}),r.containerOffset=n.offset(),r.containerPosition=n.position(),r.containerSize={height:n.innerHeight()-i[3],width:n.innerWidth()-i[1]},o=r.containerOffset,e=r.containerSize.height,t=r.containerSize.width,t=r._hasScroll(s,"left")?s.scrollWidth:t,e=r._hasScroll(s)?s.scrollHeight:e,r.parentData={element:s,left:o.left,top:o.top,width:t,height:e}))},resize:function(t){var e=x(this).resizable("instance"),n=e.options,i=e.containerOffset,r=e.position,t=e._aspectRatio||t.shiftKey,o={top:0,left:0},s=e.containerElement,a=!0;s[0]!==document&&/static/.test(s.css("position"))&&(o=i),r.left<(e._helper?i.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-i.left:e.position.left-o.left),t&&(e.size.height=e.size.width/e.aspectRatio,a=!1),e.position.left=n.helper?i.left:0),r.top<(e._helper?i.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-i.top:e.position.top),t&&(e.size.width=e.size.height*e.aspectRatio,a=!1),e.position.top=e._helper?i.top:0),s=e.containerElement.get(0)===e.element.parent().get(0),n=/relative|absolute/.test(e.containerElement.css("position")),s&&n?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),r=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-o.left:e.offset.left-i.left)),s=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-o.top:e.offset.top-i.top)),r+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-r,t)&&(e.size.height=e.size.width/e.aspectRatio,a=!1),s+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-s,t)&&(e.size.width=e.size.height*e.aspectRatio,a=!1),a||(e.position.left
vendor: 1,089 bytes, line 1
1=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=x(this).resizable("instance"),e=t.options,n=t.containerOffset,i=t.containerPosition,r=t.containerElement,o=x(t.helper),s=o.offset(),a=o.outerWidth()-t.sizeDiff.width,o=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(r.css("position"))&&x(this).css({left:s.left-i.left-n.left,width:a,height:o}),t._helper&&!e.animate&&/static/.test(r.css("position"))&&x(this).css({left:s.left-i.left-n.left,width:a,height:o})}}),x.ui.plugin.add("resizable","alsoResize",{start:function(){var t=x(this).resizable("instance").options;x(t.alsoResize).each(function(){var t=x(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,n){var e=x(this).resizable("instance"),i=e.options,r=e.originalSize,o=e.originalPosition,s={height:e.size.height-r.height||0,width:e.size.width-r.width||0,top:e.position.top-o.top||0,left
vendor: 58,908 bytes, line 1
1:e.position.left-o.left||0};x(i.alsoResize).each(function(){var t=x(this),i=x(this).data("ui-resizable-alsoresize"),r={},e=t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];x.each(e,function(t,e){var n=(i[e]||0)+(s[e]||0);n&&0<=n&&(r[e]=n||null)}),t.css(r)})},stop:function(){x(this).removeData("ui-resizable-alsoresize")}}),x.ui.plugin.add("resizable","ghost",{start:function(){var t=x(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==x.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=x(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=x(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),x.ui.plugin.add("resizable","grid",{resize:function(){var t,e=x(this).resizable("instance"),n=e.options,i=e.size,r=e.originalSize,o=e.originalPosition,s=e.axis,a="number"==typeof n.grid?[n.grid,n.grid]:n.grid,l=a[0]||1,u=a[1]||1,c=Math.round((i.width-r.width)/l)*l,i=Math.round((i.height-r.height)/u)*u,h=r.width+c,d=r.height+i,p=n.maxWidth&&n.maxWidth<h,f=n.maxHeight&&n.maxHeight<d,m=n.minWidth&&n.minWidth>h,g=n.minHeight&&n.minHeight>d;n.grid=a,m&&(h+=l),g&&(d+=u),p&&(h-=l),f&&(d-=u),/^(se|s|e)$/.test(s)?(e.size.width=h,e.size.height=d):/^(ne)$/.test(s)?(e.size.width=h,e.size.height=d,e.position.top=o.top-i):/^(sw)$/.test(s)?(e.size.width=h,e.size.height=d,e.position.left=o.left-c):((d-u<=0||h-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<d-u?(e.size.height=d,e.position.top=o.top-i):(d=u-t.height,e.size.height=d,e.position.top=o.top+r.height-d),0<h-l?(e.size.width=h,e.position.left=o.left-c):(h=l-t.width,e.size.width=h,e.position.left=o.left+r.width-h))}}),x.ui.resizable,x.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=x(this).css(t).offset().top;e<0&&x(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&x.fn.draggable&&this._makeDraggable(),this.options.resizable&&x.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?x(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:x.noop,enable:x.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||x.ui.safeBlur(x.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var n=!1,i=this.uiDialog.siblings(".ui-front:visible").map(function(){return+x(this).css("z-index")}).get(),i=Math.max.apply(null,i);return i>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",i+1),n=!0),n&&!e&&this._trigger("focus",t),n},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=x(x.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=(t=(t=(t=(t=t||this.element.find("[autofocus]")).length?t:this.element.find(":tabbable")).length?t:this.uiDialogButtonPane.find(":tabbable")).length?t:this.uiDialogTitlebarClose.filter(":tabbable")).length?t:this.uiDialog).eq(0).trigger("focus")},_keepFocus:function(t){function e(){var t=x.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||x.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),e.call(this),this._delay(e)},_createWrapper:function(){this.uiDialog=x("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){var e,n,i;this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===x.ui.keyCode.ESCAPE?(t.preventDefault(),this.close(t)):t.keyCode!==x.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),n=e.filter(":first"),i=e.filter(":last"),t.target!==i[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==n[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){i.trigger("focus")}),t.preventDefault()):(this._delay(function(){n.trigger("focus")}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=x("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){x(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=x("<button type='button'></button>").button({label:x("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),t=x("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=x("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=x("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var i=this,t=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),x.isEmptyObject(t)||x.isArray(t)&&!t.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(x.each(t,function(t,e){var n;e=x.isFunction(e)?{click:e,text:t}:e,e=x.extend({type:"button"},e),n=e.click,t={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,x("<button></button>",e).button(t).appendTo(i.uiButtonSet).on("click",function(){n.apply(i.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var r=this,o=this.options;function s(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){r._addClass(x(this),"ui-dialog-dragging"),r._blockFrames(),r._trigger("dragStart",t,s(e))},drag:function(t,e){r._trigger("drag",t,s(e))},stop:function(t,e){var n=e.offset.left-r.document.scrollLeft(),i=e.offset.top-r.document.scrollTop();o.position={my:"left top",at:"left"+(0<=n?"+":"")+n+" top"+(0<=i?"+":"")+i,of:r.window},r._removeClass(x(this),"ui-dialog-dragging"),r._unblockFrames(),r._trigger("dragStop",t,s(e))}})},_makeResizable:function(){var r=this,o=this.options,t=o.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";function s(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:t,start:function(t,e){r._addClass(x(this),"ui-dialog-resizing"),r._blockFrames(),r._trigger("resizeStart",t,s(e))},resize:function(t,e){r._trigger("resize",t,s(e))},stop:function(t,e){var n=r.uiDialog.offset(),i=n.left-r.document.scrollLeft(),n=n.top-r.document.scrollTop();o.height=r.uiDialog.height(),o.width=r.uiDialog.width(),o.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=n?"+":"")+n,of:r.window},r._removeClass(x(this),"ui-dialog-resizing"),r._unblockFrames(),r._trigger("resizeStop",t,s(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=x(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=x.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var n=this,i=!1,r={};x.each(t,function(t,e){n._setOption(t,e),t in n.sizeRelatedOptions&&(i=!0),t in n.resizableRelatedOptions&&(r[t]=e)}),i&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(t,e){var n,i=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:x("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((n=i.is(":data(ui-draggable)"))&&!e&&i.draggable("destroy"),!n)&&e&&this._makeDraggable(),"position"===t&&this._position(),"resizable"===t&&((n=i.is(":data(ui-resizable)"))&&!e&&i.resizable("destroy"),n&&"string"==typeof e&&i.resizable("option","handles",e),n||!1===e||this._makeResizable()),"title"===t)&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var t,e,n,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),i.minWidth>i.width&&(i.width=i.minWidth),t=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),e=Math.max(0,i.minHeight-t),n="number"==typeof i.maxHeight?Math.max(0,i.maxHeight-t):"none","auto"===i.height?this.element.css({minHeight:e,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,i.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=x(this);return x("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!x(t.target).closest(".ui-dialog").length||!!x(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var e;this.options.modal&&(e=!0,this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=x("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==x.uiBackCompat&&x.widget("ui.dialog",x.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),x.ui.dialog,x.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,n=e.accept;this.isover=!1,this.isout=!0,this.accept=x.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){if(!arguments.length)return t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){x.ui.ddmanager.droppables[t]=x.ui.ddmanager.droppables[t]||[],x.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=x.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var n;"accept"===t?this.accept=x.isFunction(e)?e:function(t){return t.is(e)}:"scope"===t&&(n=x.ui.ddmanager.droppables[this.options.scope],this._splice(n),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=x.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=x.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=x.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=x.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var n=t||x.ui.ddmanager.current,i=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=x(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===n.options.scope&&t.accept.call(t.element[0],n.currentItem||n.element)&&N(n,x.extend(t,{offset:t.element.offset()}),t.options.tolerance,e))return!(i=!0)}),i)||!this.accept.call(this.element[0],n.currentItem||n.element))&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(n)),this.element)},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),x.ui.intersect=function(t,e,n,i){if(!e.offset)return!1;var r=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,s=r+t.helperProportions.width,a=o+t.helperProportions.height,l=e.offset.left,u=e.offset.top,c=l+e.proportions().width,h=u+e.proportions().height;switch(n){case"fit":return l<=r&&s<=c&&u<=o&&a<=h;case"intersect":return l<r+t.helperProportions.width/2&&s-t.helperProportions.width/2<c&&u<o+t.helperProportions.height/2&&a-t.helperProportions.height/2<h;case"pointer":return at(i.pageY,u,e.proportions().height)&&at(i.pageX,l,e.proportions().width);case"touch":return(u<=o&&o<=h||u<=a&&a<=h||o<u&&h<a)&&(l<=r&&r<=c||l<=s&&s<=c||r<l&&c<s);default:return!1}});function at(t,e,n){return e<=t&&t<e+n}!(x.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var n,i,r=x.ui.ddmanager.droppables[t.options.scope]||[],o=e?e.type:null,s=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<r.length;n++)if(!(r[n].options.disabled||t&&!r[n].accept.call(r[n].element[0],t.currentItem||t.element))){for(i=0;i<s.length;i++)if(s[i]===r[n].element[0]){r[n].proportions().height=0;continue t}r[n].visible="none"!==r[n].element.css("display"),r[n].visible&&("mousedown"===o&&r[n]._activate.call(r[n],e),r[n].offset=r[n].element.offset(),r[n].proportions({width:r[n].element[0].offsetWidth,height:r[n].element[0].offsetHeight}))}},drop:function(t,e){var n=!1;return x.each((x.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&N(t,this,this.options.tolerance,e)&&(n=this._drop.call(this,e)||n),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e))}),n},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||x.ui.ddmanager.prepareOffsets(t,e)})},drag:function(r,o){r.options.refreshPositions&&x.ui.ddmanager.prepareOffsets(r,o),x.each(x.ui.ddmanager.droppables[r.options.scope]||[],function(){var t,e,n,i;this.options.disabled||this.greedyChild||!this.visible||(i=!(i=N(r,this,this.options.tolerance,o))&&this.isover?"isout":i&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(n=this.element.parents(":data(ui-droppable)").filter(function(){return x(this).droppable("instance").options.scope===e})).length)&&((t=x(n[0]).droppable("instance")).greedyChild="isover"===i),t&&"isover"===i&&(t.isover=!1,t.isout=!0,t._out.call(t,o)),this[i]=!0,this["isout"===i?"isover":"isout"]=!1,this["isover"===i?"_over":"_out"].call(this,o),t)&&"isout"===i&&(t.isout=!1,t.isover=!0,t._over.call(t,o))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||x.ui.ddmanager.prepareOffsets(t,e)}})!==x.uiBackCompat&&x.widget("ui.droppable",x.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});x.ui.droppable,x.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=x("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=x("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),x.widget("ui.selectable",x.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var n=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){n.elementPos=x(n.element[0]).offset(),n.selectees=x(n.options.filter,n.element[0]),n._addClass(n.selectees,"ui-selectee"),n.selectees.each(function(){var t=x(this),e=t.offset(),e={left:e.left-n.elementPos.left,top:e.top-n.elementPos.top};x.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=x("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(n){var i=this,t=this.options;this.opos=[n.pageX,n.pageY],this.elementPos=x(this.element[0]).offset(),this.options.disabled||(this.selectees=x(t.filter,this.element[0]),this._trigger("start",n),x(t.appendTo).append(this.helper),this.helper.css({left:n.pageX,top:n.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=x.data(this,"selectable-item");t.startselected=!0,n.metaKey||n.ctrlKey||(i._removeClass(t.$element,"ui-selected"),t.selected=!1,i._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,i._trigger("unselecting",n,{unselecting:t.element}))}),x(n.target).parents().addBack().each(function(){var t,e=x.data(this,"selectable-item");if(e)return t=!n.metaKey&&!n.ctrlKey||!e.$element.hasClass("ui-selected"),i._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?i._trigger("selecting",n,{selecting:e.element}):i._trigger("unselecting",n,{unselecting:e.element}),!1}))},_mouseDrag:function(i){var t,r,o,s,a,l,u;if(this.dragged=!0,!this.options.disabled)return o=(r=this).options,s=this.opos[0],a=this.opos[1],l=i.pageX,u=i.pageY,l<s&&(t=l,l=s,s=t),u<a&&(t=u,u=a,a=t),this.helper.css({left:s,top:a,width:l-s,height:u-a}),this.selectees.each(function(){var t=x.data(this,"selectable-item"),e=!1,n={};t&&t.element!==r.element[0]&&(n.left=t.left+r.elementPos.left,n.right=t.right+r.elementPos.left,n.top=t.top+r.elementPos.top,n.bottom=t.bottom+r.elementPos.top,"touch"===o.tolerance?e=!(l<n.left||n.right<s||u<n.top||n.bottom<a):"fit"===o.tolerance&&(e=s<n.left&&n.right<l&&a<n.top&&n.bottom<u),e?(t.selected&&(r._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(r._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(r._addClass(t.$element,"ui-selecting"),t.selecting=!0,r._trigger("selecting",i,{selecting:t.element}))):(t.selecting&&((i.metaKey||i.ctrlKey)&&t.startselected?(r._removeClass(t.$element,"ui-selecting"),t.selecting=!1,r._addClass(t.$element,"ui-selected"),t.selected=!0):(r._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(r._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),r._trigger("unselecting",i,{unselecting:t.element}))),!t.selected||i.metaKey||i.ctrlKey||t.startselected||(r._removeClass(t.$element,"ui-selected"),t.selected=!1,r._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,r._trigger("unselecting",i,{unselecting:t.element}))))}),!1},_mouseStop:function(e){var n=this;return this.dragged=!1,x(".ui-unselecting",this.element[0]).each(function(){var t=x.data(this,"selectable-item");n._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,n._trigger("unselected",e,{unselected:t.element})}),x(".ui-selecting",this.element[0]).each(function(){var t=x.data(this,"selectable-item");n._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,n._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),x.widget("ui.selectmenu",[x.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=x()},_drawButton:function(){var t,e=this,n=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=x("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=x("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(n).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var n=this;this.menu=x("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=x("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,e){t.preventDefault(),n._setSelection(),n._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item");null!=n.focusIndex&&e.index!==n.focusIndex&&(n._trigger("focus",t,{item:e}),n.isOpen||n._select(e,t)),n.focusIndex=e.index,n.button.attr("aria-activedescendant",n.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(x.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=x("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(i,t){var r=this,o="";x.each(t,function(t,e){var n;e.optgroup!==o&&(n=x("<li>",{text:e.optgroup}),r._addClass(n,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),n.appendTo(i),o=e.optgroup),r._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var n=x("<li>"),i=x("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(n,null,"ui-state-disabled"),this._setText(i,e.label),n.append(i).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var n,i=".ui-menu-item";this.isOpen?n=this.menuItems.eq(this.focusIndex).parent("li"):(n=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),i+=":not(.ui-state-disabled)"),(n="first"===t||"last"===t?n["first"===t?"prevAll":"nextAll"](i).eq(-1):n[t+"All"](i).eq(0)).length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){!this.isOpen||x(t.target).closest(".ui-selectmenu-menu, #"+x.ui.escapeSelector(this.ids.button)).length||this.close(t)}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case x.ui.keyCode.TAB:case x.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case x.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case x.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case x.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case x.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case x.ui.keyCode.LEFT:this._move("prev",t);break;case x.ui.keyCode.RIGHT:this._move("next",t);break;case x.ui.keyCode.HOME:case x.ui.keyCode.PAGE_UP:this._move("first",t);break;case x.ui.keyCode.END:case x.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==n&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var n;"icons"===t&&(n=this.button.find("span.ui-icon"),this._removeClass(n,null,this.options.icons.button)._addClass(n,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t=(t=(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;!1===t?this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var n=this,i=[];t.each(function(t,e){i.push(n._parseOption(x(e),t))}),this.items=i},_parseOption:function(t,e){var n=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),x.widget("ui.slider",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,n=this.element.find(".ui-slider-handle"),i=[],r=e.values&&e.values.length||1;for(n.length>r&&(n.slice(r).remove(),n=n.slice(0,r)),t=n.length;t<r;t++)i.push("<span tabindex='0'></span>");this.handles=n.add(x(i.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){x(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:x.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=x("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,i,r,o,e,s,a=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e),i=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(n-a.values(t));(e<i||i===e&&(t===a._lastChangedValue||a.values(t)===l.min))&&(i=e,r=x(this),o=t)}),!1!==this._start(t,o))&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(r,null,"ui-state-active"),r.trigger("focus"),e=r.offset(),s=!x(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=s?{left:0,top:0}:{left:t.pageX-e.left-r.width()/2,top:t.pageY-e.top-r.height()/2-(parseInt(r.css("borderTopWidth"),10)||0)-(parseInt(r.css("borderBottomWidth"),10)||0)+(parseInt(r.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,n),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=t/e;return(t=1<t?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),t=this._valueMin()+t*e,this._trimAlignValue(t)},_uiHash:function(t,e,n){var i={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(i.value=void 0!==e?e:this.values(t),i.values=n||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var i,r=this.value(),o=this.values();this._hasMultipleValues()&&(i=this.values(e?0:1),r=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(i,n):Math.max(i,n)),o[e]=n),n!==r&&!1!==this._trigger("slide",t,this._uiHash(e,n,o))&&(this._hasMultipleValues()?this.values(e,n):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0)},values:function(t,e){var n,i,r;if(1<arguments.length)this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),this._change(null,t);else{if(!arguments.length)return this._values();if(!x.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(n=this.options.values,i=t,r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(i[r]),this._change(null,r);this._refreshValue()}},_setOption:function(t,e){var n,i=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),x.isArray(this.options.values)&&(i=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=i-1;0<=n;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,n,i;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(n=this.options.values.slice(),i=0;i<n.length;i+=1)n[i]=this._trimAlignValue(n[i]);return n}return[]},_trimAlignValue:function(t){var e,n;return t<=this._valueMin()?this._valueMin():t>=this._valueMax()?this._valueMax():(e=0<this.options.step?this.options.step:1,n=t-(t=(t-this._valueMin())%e),2*Math.abs(t)>=e&&(n+=0<t?e:-e),parseFloat(n.toFixed(5)))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;(t=Math.round((t-e)/n)*n+e)>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var t=t.toString(),e=t.indexOf(".");return-1===e?0:t.length-e-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,t,i,r,o=this.options.range,s=this.options,a=this,l=!this._animateOff&&s.animate,u={};this._hasMultipleValues()?this.handles.each(function(t){n=(a.values(t)-a._valueMin())/(a._valueMax()-a._valueMin())*100,u["horizontal"===a.orientation?"left":"bottom"]=n+"%",x(this).stop(1,1)[l?"animate":"css"](u,s.animate),!0===a.options.range&&("horizontal"===a.orientation?(0===t&&a.range.stop(1,1)[l?"animate":"css"]({left:n+"%"},s.animate),1===t&&a.range[l?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===t&&a.range.stop(1,1)[l?"animate":"css"]({bottom:n+"%"},s.animate),1===t&&a.range[l?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n}):(t=this.value(),i=this._valueMin(),r=this._valueMax(),n=r!==i?(t-i)/(r-i)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[l?"animate":"css"](u,s.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:n+"%"},s.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-n+"%"},s.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:n+"%"},s.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(t){var e,n,i,r=x(t.target).data("ui-slider-handle-index");switch(t.keyCode){case x.ui.keyCode.HOME:case x.ui.keyCode.END:case x.ui.keyCode.PAGE_UP:case x.ui.keyCode.PAGE_DOWN:case x.ui.keyCode.UP:case x.ui.keyCode.RIGHT:case x.ui.keyCode.DOWN:case x.ui.keyCode.LEFT:if(t.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(x(t.target),null,"ui-state-active"),!1!==this._start(t,r)))break;return}switch(i=this.options.step,e=n=this._hasMultipleValues()?this.values(r):this.value(),t.keyCode){case x.ui.keyCode.HOME:n=this._valueMin();break;case x.ui.keyCode.END:n=this._valueMax();break;case x.ui.keyCode.PAGE_UP:n=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case x.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case x.ui.keyCode.UP:case x.ui.keyCode.RIGHT:if(e===this._valueMax())return;n=this._trimAlignValue(e+i);break;case x.ui.keyCode.DOWN:case x.ui.keyCode.LEFT:if(e===this._valueMin())return;n=this._trimAlignValue(e-i)}this._slide(t,r,n)},keyup:function(t){var e=x(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(x(t.target),null,"ui-state-active"))}}}),x.widget("ui.sortable",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return e<=t&&t<e+n},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),x.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var n=null,i=!1,r=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),x(t.target).parents().each(function(){if(x.data(this,r.widgetName+"-item")===r)return n=x(this),!1}),!(n=x.data(t.target,r.widgetName+"-item")===r?x(t.target):n))||(this.options.handle&&!e&&(x(this.options.handle,n).find("*").addBack().each(function(){this===t.target&&(i=!0)}),!i)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,e,n){var i,r,o=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},x.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",o.cursor),this.storedStylesheet=x("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(r)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(i=this.containers.length-1;0<=i;i--)this.containers[i]._trigger("activate",t,this._uiHash(this));return x.ui.ddmanager&&(x.ui.ddmanager.current=this),x.ui.ddmanager&&!o.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,n,i,r,o=this.options,s=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+o.scrollSpeed:t.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+o.scrollSpeed:t.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(t.pageY-this.document.scrollTop()<o.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<o.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed)),t.pageX-this.document.scrollLeft()<o.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<o.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed))),!1!==s)&&x.ui.ddmanager&&!o.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;0<=e;e--)if(i=(n=this.items[e]).item[0],(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(i===this.currentItem[0]||this.placeholder[1===r?"next":"prev"]()[0]===i||x.contains(this.placeholder[0],i)||"semi-dynamic"===this.options.type&&x.contains(this.element[0],i))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),x.ui.ddmanager&&x.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var n,i,r,o;if(t)return x.ui.ddmanager&&!this.options.dropBehaviour&&x.ui.ddmanager.drop(this,t),this.options.revert?(i=(n=this).placeholder.offset(),o={},(r=this.options.axis)&&"x"!==r||(o.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(o.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,x(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){n._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new x.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),x.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?x(this.domPosition.prev).after(this.currentItem):x(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},x(t).each(function(){var t=(x(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&n.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e.each(function(){n.push(x(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,i=this.positionAbs.top,r=i+this.helperProportions.height,o=t.left,s=o+t.width,a=t.top,l=a+t.height,u=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||a<i+u&&i+u<l,c="y"===this.options.axis||o<e+c&&e+c<s;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?u&&c:o<e+this.helperProportions.width/2&&n-this.helperProportions.width/2<s&&a<i+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this._getDragVerticalDirection(),t=this._getDragHorizontalDirection(),this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return this.floating&&i?"right"===i&&t||"left"===i&&!t:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,n,i,r,o=[],s=[],a=this._connectWith();if(a&&t)for(e=a.length-1;0<=e;e--)for(n=(i=x(a[e],this.document[0])).length-1;0<=n;n--)(r=x.data(i[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&s.push([x.isFunction(r.options.items)?r.options.items.call(r.element):x(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);function l(){o.push(this)}for(s.push([x.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):x(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=s.length-1;0<=e;e--)s[e][0].each(l);return x(o)},_removeCurrentsFromItems:function(){var n=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=x.grep(this.items,function(t){for(var e=0;e<n.length;e++)if(n[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,n,i,r,o,s,a,l,u=this.items,c=[[x.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):x(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(e=h.length-1;0<=e;e--)for(n=(i=x(h[e],this.document[0])).length-1;0<=n;n--)(r=x.data(i[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(c.push([x.isFunction(r.options.items)?r.options.items.call(r.element[0],t,{item:this.currentItem}):x(r.options.items,r.element),r]),this.containers.push(r));for(e=c.length-1;0<=e;e--)for(o=c[e][1],l=(s=c[e][n=0]).length;n<l;n++)(a=x(s[n])).data(this.widgetName+"-item",o),u.push({item:a,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var e,n,i,r;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),e=this.items.length-1;0<=e;e--)(n=this.items[e]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?x(this.options.toleranceElement,n.item):n.item,t||(n.width=i.outerWidth(),n.height=i.outerHeight()),r=i.offset(),n.left=r.left,n.top=r.top);
vendor: 1,140 bytes, line 1
1if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)r=this.containers[e].element.offset(),this.containers[e].containerCache.left=r.left,this.containers[e].containerCache.top=r.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(n){var i,r=(n=n||this).options;r.placeholder&&r.placeholder.constructor!==String||(i=r.placeholder,r.placeholder={element:function(){var t=n.currentItem[0].nodeName.toLowerCase(),e=x("<"+t+">",n.document[0]);return n._addClass(e,"ui-sortable-placeholder",i||n.currentItem[0].className)._removeClass(e,"ui-sortable-helper"),"tbody"===t?n._createTrPlaceholder(n.currentItem.find("tr").eq(0),x("<tr>",n.document[0]).appendTo(e)):"tr"===t?n._createTrPlaceholder(n.currentItem,e):"img"===t&&e.attr("src",n.currentItem.attr("src")),i||e.css("visibility","hidden"),e},update:function(t,e){i&&!r.forcePlaceholderSize||(e.height()||e.height(n.currentItem.innerHe
vendor: 33,686 bytes, line 1
1ight()-parseInt(n.currentItem.css("paddingTop")||0,10)-parseInt(n.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(n.currentItem.innerWidth()-parseInt(n.currentItem.css("paddingLeft")||0,10)-parseInt(n.currentItem.css("paddingRight")||0,10))}}),n.placeholder=x(r.placeholder.element.call(n.element,n.currentItem)),n.currentItem.after(n.placeholder),r.placeholder.update(n,n.placeholder)},_createTrPlaceholder:function(t,e){var n=this;t.children().each(function(){x("<td>&#160;</td>",n.document[0]).attr("colspan",x(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,n,i,r,o,s,a,l,u,c=null,h=null,d=this.containers.length-1;0<=d;d--)x.contains(this.currentItem[0],this.containers[d].element[0])||(this._intersectsWith(this.containers[d].containerCache)?c&&x.contains(this.containers[d].element[0],c.element[0])||(c=this.containers[d],h=d):this.containers[d].containerCache.over&&(this.containers[d]._trigger("out",t,this._uiHash(this)),this.containers[d].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[h].containerCache.over||(this.containers[h]._trigger("over",t,this._uiHash(this)),this.containers[h].containerCache.over=1);else{for(n=1e4,i=null,r=(l=c.floating||this._isFloating(this.currentItem))?"left":"top",o=l?"width":"height",u=l?"pageX":"pageY",e=this.items.length-1;0<=e;e--)x.contains(this.containers[h].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(s=this.items[e].item.offset()[r],a=!1,t[u]-s>this.items[e][o]/2&&(a=!0),Math.abs(t[u]-s)<n)&&(n=Math.abs(t[u]-s),i=this.items[e],this.direction=a?"up":"down");(i||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[h]?this.currentContainer.containerCache.over||(this.containers[h]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(i?this._rearrange(t,i,null,!0):this._rearrange(t,null,this.containers[h].element,!0),this._trigger("change",t,this._uiHash()),this.containers[h]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[h],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[h]._trigger("over",t,this._uiHash(this)),this.containers[h].containerCache.over=1))}},_createHelper:function(t){var e=this.options,t=x.isFunction(e.helper)?x(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||x("parent"!==e.appendTo?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=x.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&x.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),"document"!==n.containment&&"window"!==n.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(t=x(n.containment)[0],n=x(n.containment).offset(),e="hidden"!==x(t).css("overflow"),this.containment=[n.left+(parseInt(x(t).css("borderLeftWidth"),10)||0)+(parseInt(x(t).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(x(t).css("borderTopWidth"),10)||0)+(parseInt(x(t).css("paddingTop"),10)||0)-this.margins.top,n.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(x(t).css("borderLeftWidth"),10)||0)-(parseInt(x(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(x(t).css("borderTopWidth"),10)||0)-(parseInt(x(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(n[0].tagName);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():i?0:n.scrollTop())*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():i?0:n.scrollLeft())*t}},_generatePosition:function(t){var e=this.options,n=t.pageX,i=t.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(n=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(i=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(n=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(i=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((i-this.originalPageY)/e.grid[1])*e.grid[1],i=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((n-this.originalPageX)/e.grid[0])*e.grid[0],n=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:i-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())}},_rearrange:function(t,e,n,i){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!i)})},_clear:function(t,e){this.reverting=!1;var n,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function r(e,n,i){return function(t){i._trigger(e,t,n._uiHash(n))}}for(this.fromOutside&&!e&&i.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||i.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(i.push(function(t){this._trigger("remove",t,this._uiHash())}),i.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),n=this.containers.length-1;0<=n;n--)e||i.push(r("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(i.push(r("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;n<i.length;n++)i[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===x.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||x([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}});function P(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}x.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var i=this._super(),r=this.element;return x.each(["min","max","step"],function(t,e){var n=r.attr(e);null!=n&&n.length&&(i[e]=n)}),i},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var e;function n(){this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=e,this._delay(function(){this.previous=e}))}e=this.element[0]===x.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),!1!==this._start(t)&&this._repeat(null,x(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(x(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,x(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,n=x.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,e.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,n){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,n)},t),this._spin(e*this.options.step,n)},_spin:function(t,e){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:n})||(this._value(n),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?x.isFunction(e)?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var t=t.toString(),e=t.indexOf(".");return-1===e?0:t.length-e-1},_adjustValue:function(t){var e=this.options,n=null!==e.min?e.min:0,i=t-n;return t=n+Math.round(i/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&t<e.min?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var n;"culture"===t||"numberFormat"===t?(n=this._parse(this.element.val()),this.options[t]=e,this.element.val(this._format(n))):("max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,e.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,e.down)),this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:P(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var n;""!==t&&null!==(n=this._parse(t))&&(e||(n=this._adjustValue(n)),t=this._format(n)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:P(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:P(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:P(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:P(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());P(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==x.uiBackCompat&&x.widget("ui.spinner",x.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});var R;x.ui.spinner,x.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(R=/#.*$/,function(t){var e=t.href.replace(R,""),n=location.href.replace(R,"");try{e=decodeURIComponent(e)}catch(t){}try{n=decodeURIComponent(n)}catch(t){}return 1<t.hash.length&&e===n}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),x.isArray(t.disabled)&&(t.disabled=x.unique(t.disabled.concat(x.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=x(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var n=this.options.active,t=this.options.collapsible,i=location.hash.substring(1);return null===n&&(i&&this.tabs.each(function(t,e){if(x(e).attr("aria-controls")===i)return n=t,!1}),null!==(n=null===n?this.tabs.index(this.tabs.filter(".ui-tabs-active")):n)&&-1!==n||(n=!!this.tabs.length&&0)),!1!==n&&-1===(n=this.tabs.index(this.tabs.eq(n)))&&(n=!t&&0),n=!t&&!1===n&&this.anchors.length?0:n},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):x()}},_tabKeydown:function(t){var e=x(x.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(e),i=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case x.ui.keyCode.RIGHT:case x.ui.keyCode.DOWN:n++;break;case x.ui.keyCode.UP:case x.ui.keyCode.LEFT:i=!1,n--;break;case x.ui.keyCode.END:n=this.anchors.length-1;break;case x.ui.keyCode.HOME:n=0;break;case x.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n);case x.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}t.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,i),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===x.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===x.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===x.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){var n=this.tabs.length-1;for(;-1!==x.inArray(t=(t=n<t?0:t)<0?n:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"===t?this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=x.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!x.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=x()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=x()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,t=this.tabs,e=this.anchors,n=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){x(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){x(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return x("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=x(),this.anchors.each(function(t,e){var n,i,r,o=x(e).uniqueId().attr("id"),s=x(e).closest("li"),a=s.attr("aria-controls");l._isLocal(e)?(r=(n=e.hash).substring(1),i=l.element.find(l._sanitizeSelector(n))):(r=s.attr("aria-controls")||x({}).uniqueId()[0].id,(i=l.element.find(n="#"+r)).length||(i=l._createPanel(r)).insertAfter(l.panels[t-1]||l.tablist),i.attr("aria-live","polite")),i.length&&(l.panels=l.panels.add(i)),a&&s.data("ui-tabs-aria-controls",a),s.attr({"aria-controls":r,"aria-labelledby":o}),i.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(n.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return x("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,n;for(x.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),n=0;e=this.tabs[n];n++)e=x(e),!0===t||-1!==x.inArray(n,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var n={};t&&x.each(t.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,e=this.element.parent();"fill"===t?(n=e.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=x(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(n-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){n-=x(this).outerHeight(!0)}),this.panels.each(function(){x(this).height(Math.max(0,n-x(this).innerHeight()+x(this).height()))}).css("overflow","auto")):"auto"===t&&(n=0,this.panels.each(function(){n=Math.max(n,x(this).height("").height())}).height(n))},_eventHandler:function(t){var e=this.options,n=this.active,i=x(t.currentTarget).closest("li"),r=i[0]===n[0],o=r&&e.collapsible,s=o?x():this._getPanelForTab(i),a=n.length?this._getPanelForTab(n):x(),n={oldTab:n,oldPanel:a,newTab:o?x():i,newPanel:s};t.preventDefault(),i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||r&&!e.collapsible||!1===this._trigger("beforeActivate",t,n)||(e.active=!o&&this.tabs.index(i),this.active=r?x():i,this.xhr&&this.xhr.abort(),a.length||s.length||x.error("jQuery UI Tabs: Mismatching fragment identifier."),s.length&&this.load(this.tabs.index(i),t),this._toggle(t,n))},_toggle:function(t,e){var n=this,i=e.newPanel,r=e.oldPanel;function o(){n.running=!1,n._trigger("activate",t,e)}function s(){n._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),i.length&&n.options.show?n._show(i,n.options.show,o):(i.show(),o())}this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){n._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r.hide(),s()),r.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&r.length?e.oldTab.attr("tabIndex",-1):i.length&&this.tabs.filter(function(){return 0===x(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:x.noop}))},_findActive:function(t){return!1===t?x():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+x.ui.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){x.data(this,"ui-tabs-destroy")?x(this).remove():x(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=x(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(n){var t=this.options.disabled;!1!==t&&(t=void 0!==n&&(n=this._getIndex(n),x.isArray(t)?x.map(t,function(t){return t!==n?t:null}):x.map(this.tabs,function(t,e){return e!==n?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==x.inArray(t,e))return;e=x.isArray(e)?x.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,i){t=this._getIndex(t);function r(t,e){"abort"===e&&o.panels.stop(!1,!0),o._removeClass(n,"ui-tabs-loading"),s.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr}var o=this,n=this.tabs.eq(t),t=n.find(".ui-tabs-anchor"),s=this._getPanelForTab(n),a={tab:n,panel:s};this._isLocal(t[0])||(this.xhr=x.ajax(this._ajaxSettings(t,i,a)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(n,"ui-tabs-loading"),s.attr("aria-busy","true"),this.xhr.done(function(t,e,n){setTimeout(function(){s.html(t),o._trigger("load",i,a),r(n,e)},1)}).fail(function(t,e){setTimeout(function(){r(t,e)},1)})))},_ajaxSettings:function(t,n,i){var r=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return r._trigger("beforeLoad",n,x.extend({jqXHR:t,ajaxSettings:e},i))}}},_getPanelForTab:function(t){t=x(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==x.uiBackCompat&&x.widget("ui.tabs",x.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),x.ui.tabs,x.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=x(this).attr("title")||"";return x("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var n=(t.attr("aria-describedby")||"").split(/\s+/);n.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",x.trim(n.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),n=(t.attr("aria-describedby")||"").split(/\s+/),e=x.inArray(e,n);-1!==e&&n.splice(e,1),t.removeData("ui-tooltip-id"),(n=x.trim(n.join(" ")))?t.attr("aria-describedby",n):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=x("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=x([])},_setOption:function(t,e){var n=this;this._super(t,e),"content"===t&&x.each(this.tooltips,function(t,e){n._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var i=this;x.each(this.tooltips,function(t,e){var n=x.Event("blur");n.target=n.currentTarget=e.element[0],i.close(n,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=x(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=x(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=x([])},open:function(t){var n=this,e=x(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=x(this);e.data("ui-tooltip-open")&&((t=x.Event("blur")).target=t.currentTarget=this,n.close(t,!0)),e.attr("title")&&(e.uniqueId(),n.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,n){var t=this.options.content,i=this,r=n?n.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(n,e,t);(t=t.call(e[0],function(t){i._delay(function(){e.data("ui-tooltip-open")&&(n&&(n.type=r),this._open(n,e,t))})}))&&this._open(n,e,t)},_open:function(t,e,n){var i,r,o,s=x.extend({},this.options.position);function a(t){s.of=t,i.is(":hidden")||i.position(s)}n&&((o=this._find(e))?o.tooltip.find(".ui-tooltip-content").html(n):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),o=this._tooltip(e),i=o.tooltip,this._addDescribedBy(e,i.attr("id")),i.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),(o=x("<div>").html(i.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),o.removeAttr("id").find("[id]").removeAttr("id"),o.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:a}),a(t)):i.position(x.extend({of:e},this.options.position)),i.hide(),this._show(i,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){i.is(":visible")&&(a(s.of),clearInterval(r))},x.fx.interval)),this._trigger("open",t,{tooltip:i})))},_registerCloseHandlers:function(t,e){var n={keyup:function(t){t.keyCode===x.ui.keyCode.ESCAPE&&((t=x.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(n.remove=function(){this._removeTooltip(this._find(e).tooltip)}),t&&"mouseover"!==t.type||(n.mouseleave="close"),t&&"focusin"!==t.type||(n.focusout="close"),this._on(!0,e,
1n)},close:function(t){var e,n=this,i=x(t?t.currentTarget:this.element),r=this._find(i);r?(e=r.tooltip,r.closing||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),r.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){n._removeTooltip(x(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&x.each(this.parents,function(t,e){x(e.element).attr("title",e.title),delete n.parents[t]}),r.closing=!0,this._trigger("close",t,{tooltip:e}),r.hiding)||(r.closing=!1)):i.removeData("ui-tooltip-open")},_tooltip:function(t){var e=x("<div>").attr("role","tooltip"),n=x("<div>").appendTo(e),i=e.uniqueId().attr("id");return this._addClass(n,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[i]={element:t,tooltip:e}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){t=t.closest(".ui-front, dialog");return t=t.length?t:this.document[0].body},_destroy:function(){var i=this;x.each(this.tooltips,function(t,e){var n=x.Event("blur"),e=e.element;n.target=n.currentTarget=e[0],i.close(n,!0),x("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==x.uiBackCompat&&x.widget("ui.tooltip",x.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),x.ui.tooltip}),!function(t,e){var n=[],i=[],r={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var n=this;setTimeout(function(){e(n[t])},0)},addTest:function(t,e,n){i.push({name:t,fn:e,options:n})},addAsyncTest:function(t){i.push({name:null,fn:t})}};(d=function(){}).prototype=r;var o,s,a,l,u,c,h,d=new d,p=e.documentElement,f="svg"===p.nodeName.toLowerCase();if(!f){var m,g,v,y=void 0!==t?t:this,b=e,_=y.html5||{},w=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,x=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,C="_html5shiv",k=0,$={};try{var S=b.createElement("a");S.innerHTML="<xyz></xyz>",m="hidden"in S,g=1==S.childNodes.length||(b.createElement("a"),void 0===(v=b.createDocumentFragment()).cloneNode)||void 0===v.createDocumentFragment||void 0===v.createElement}catch(t){g=m=!0}function E(){var t=A.elements;return"string"==typeof t?t.split(" "):t}function T(t){var e=$[t[C]];return e||(e={},k++,t[C]=k,$[k]=e),e}function D(t,e,n){return e=e||b,g?e.createElement(t):!(e=(n=n||T(e)).cache[t]?n.cache[t].cloneNode():x.test(t)?(n.cache[t]=n.createElem(t)).cloneNode():n.createElem(t)).canHaveChildren||w.test(t)||e.tagUrn?e:n.frag.appendChild(e)}function M(t){var e,n,i,r,o,s=T(t=t||b);return!A.shivCSS||m||s.hasCSS||(s.hasCSS=(n="article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}",i=(e=t).createElement("p"),e=e.getElementsByTagName("head")[0]||e.documentElement,i.innerHTML="x<style>"+n+"</style>",!!e.insertBefore(i.lastChild,e.firstChild))),g||(r=t,(o=s).cache||(o.cache={},o.createElem=r.createElement,o.createFrag=r.createDocumentFragment,o.frag=o.createFrag()),r.createElement=function(t){return A.shivMethods?D(t,r,o):o.createElem(t)},r.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+E().join().replace(/[\w\-:]+/g,function(t){return o.createElem(t),o.frag.createElement(t),'c("'+t+'")'})+");return n}")(A,o.frag)),t}var A={elements:_.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==_.shivCSS,supportsUnknownElements:g,shivMethods:!1!==_.shivMethods,t
1ype:"default",shivDocument:M,createElement:D,createDocumentFragment:function(t,e){if(t=t||b,g)return t.createDocumentFragment();for(var n=(e=e||T(t)).frag.cloneNode(),i=0,r=E(),o=r.length;i<o;i++)n.createElement(r[i]);return n},addElements:function(t,e){var n=A.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof t&&(t=t.join(" ")),A.elements=n+" "+t,M(e)}};y.html5=A,M(b),"object"==typeof module&&module.exports&&(module.exports=A)}for(h in d.addTest("adownload",!t.externalHost&&"download"in function(t){return"function"!=typeof e.createElement?e.createElement(t):f?e.createElementNS.call(e,"http://www.w3.org/2000/svg",t):e.createElement.apply(e,arguments)}("a")),i)if(i.hasOwnProperty(h)){if(o=[],(s=i[h]).name&&(o.push(s.name.toLowerCase()),s.options)&&s.options.aliases&&s.options.aliases.length)for(a=0;a<s.options.aliases.length;a++)o.push(s.options.aliases[a].toLowerCase());for(l="function"==typeof s.fn?s.fn():s.fn,u=0;u<o.length;u++)1===(c=o[u].split(".")).length?d[c[0]]=l:(!d[c[0]]||d[c[0]]instanceof Boolean||(d[c[0]]=new Boolean(d[c[0]])),d[c[0]][c[1]]=l),n.push((l?"":"no-")+c.join("-"))}S=n,v=p.className,_=d._config.classPrefix||"",f&&(v=v.baseVal),d._config.enableJSClass&&(y=new RegExp("(^|\\s)"+_+"no-js(\\s|$)"),v=v.replace(y,"$1"+_+"js$2")),d._config.enableClasses&&(v+=" "+_+S.join(" "+_),f?p.className.baseVal=v:p.className=v),delete r.addTest,delete r.addAsyncTest;for(var O=0;O<d._q.length;O++)d._q[O]();t.Modernizr=d}(window,document),!function(x){"use strict";function E(s,a){return a=a||Error,function(){for(var t=arguments[0],e=arguments[1],n="["+(s?s+":":"")+t+"] ",i=Lt(arguments,2).map(function(t){return ne(t,p.objectMaxDepth)}),n=(n+=e.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1);return e<i.length?i[e]:t}))+("\nhttp://errors.angularjs.org/1.6.4/"+(s?s+"/":"")+t),r=0,o="?";r<i.length;r++,o="&")n+=o+"p"+r+"="+encodeURIComponent(i[r]);return new a(n)}}var c=/^\/(.+)\/([a-z]*)$/,h="validity",W=Object.prototype.hasOwnProperty,p={objectMaxDepth:5};function n(t){if(!_t(t))return p;bt(t.objectMaxDepth)&&(p.objectMaxDepth=f(t.objectMaxDepth)?t.objectMaxDepth:NaN)}function f(t){return _(t)&&0<t}var S=function(t){return wt(t)?t.toLowerCase():t},k=function(t){return wt(t)?t.toUpperCase():t};"i"!=="I".toLowerCase()&&(S=function(t){return wt(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},k=function(t){return wt(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t});var ft,r,m,g=[].slice,i=[].splice,D=[].push,v=Object.prototype.toString,M=Object.getPrototypeOf,A=E("ng"),b=x.angular||(x.angular={}),O=0;function P(t){var e;return null!=t&&!B(t)&&(xt(t)||wt(t)||ft&&t instanceof ft||_(e="length"in Object(t)&&t.length)&&(0<=e&&(e-1 in t||t instanceof Array)||"function"==typeof t.item))}function mt(t,e,n){if(t)if(Ct(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else if(xt(t)||P(t))for(var i="object"!=typeof t,r=0,o=t.length;r<o;r++)(i||r in t)&&e.call(n,t[r],r,t);else if(t.forEach&&t.forEach!==mt)t.forEach(e,n,t);else if(V(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)W.call(t,r)&&e.call(n,t[r],r,t);return t}function N(t,e,n){for(var i=Object.keys(t).sort(),r=0;r<i.length;r++)e.call(n,t[i[r]],i[r])}function R(n){return function(t,e){n(e,t)}}function I(){return++O}function L(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function H(t,e,n){for(var i=t.$$hashKey,r=0,o=e.length;r<o;++r){var s=e[r];if(_t(s)||Ct(s))for(var a=Object.keys(s),l=0,u=a.length;l<u;l++){var c=a[l],h=s[c];n&&_t(h)?w(h)?t[c]=new Date(h.valueOf()):j(h)?t[c]=new RegExp(h):h.nodeName?t[c]=h.cloneNode(!0):G(h)?t[c]=h.clone():(_t(t[c])||(t[c]=xt(h)?[]:{}),H(t[c],[h],!0)):t[c]=h}}return L(t,i),t}function gt(t){return H(t,g.call(arguments,1),!1)}function F(t){return H(t,g.call(arguments,1),!0)}function y(t){return parseInt(t,10)}var Mt=x.document.documentMode,T=Number.isNaN||function(t){return t!=t};function At(t,e){return gt(Object.create(t),e)}function vt(){}function Ot(t){return t}function $(t){return function(){return t}}function z(t){return Ct(t.toString)&&t.toString!==v}function yt(t){return void 0===t}function bt(t){return void 0!==t}function _t(t){return null!==t&&"object"==typeof t}function V(t){return null!==t&&"object"==typeof t&&!M(t)}function wt(t){return"string"==typeof t}function _(t){return"number"==typeof t}function w(t){return"[object Date]"===v.call(t)}vt.$inject=[],Ot.$inject=[];var xt=Array.isArray;function Ct(t){return"function"==typeof t}function j(t){return"[object RegExp]"===v.call(t)}function B(t){return t&&t.window===t}function Nt(t){return t&&t.$evalAsync&&t.$watch}function Pt(t){return"boolean"==typeof t}function q(t){return t&&Ct(t.then)}var U=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var kt=function(t){return wt(t)?t.trim():t},Y=function(t){return t.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function G(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function $t(t){return S(t.nodeName||t[0]&&t[0].nodeName)}function K(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function Rt(t,e){e=t.indexOf(e);return 0<=e&&t.splice(e,1),e}function X(t,n,e){var i,r=[],o=[];
1if(e=f(e)?e:NaN,n){if((i=n)&&_(i.length)&&U.test(v.call(i))||"[object ArrayBuffer]"===v.call(n))throw A("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===n)throw A("cpi","Can't copy! Source and destination are identical.");return xt(n)?n.length=0:mt(n,function(t,e){"$$hashKey"!==e&&delete n[e]}),r.push(t),o.push(n),s(t,n,e)}return a(t,e);function s(t,e,n){if(--n<0)return"...";var i,r=e.$$hashKey;if(xt(t))for(var o=0,s=t.length;o<s;o++)e.push(a(t[o],n));else if(V(t))for(i in t)e[i]=a(t[i],n);else if(t&&"function"==typeof t.hasOwnProperty)for(i in t)t.hasOwnProperty(i)&&(e[i]=a(t[i],n));else for(i in t)W.call(t,i)&&(e[i]=a(t[i],n));return L(e,r),e}function a(t,e){if(!_t(t))return t;var n=r.indexOf(t);if(-1!==n)return o[n];if(B(t)||Nt(t))throw A("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var n=!1,i=function(t){switch(v.call(t)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new t.constructor(a(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":return t.slice?t.slice(0):(e=new ArrayBuffer(t.byteLength),new Uint8Array(e).set(new Uint8Array(t)),e);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var e=new RegExp(t.source,t.toString().match(/[^/]*$/)[0]);return e.lastIndex=t.lastIndex,e;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(Ct(t.cloneNode))return t.cloneNode(!0)}(t);return void 0===i&&(i=xt(t)?[]:Object.create(M(t)),n=!0),r.push(t),o.push(i),n?s(t,i,e):i}}function It(t,e){return t===e||t!=t&&e!=e}function St(t,e){if(t===e)return!0;if(null!==t&&null!==e){if(t!=t&&e!=e)return!0;var n,i,r,o=typeof t;if(o==typeof e&&"object"==o){if(!xt(t)){if(w(t))return!!w(e)&&It(t.getTime(),e.getTime());if(j(t))return!!j(e)&&t.toString()===e.toString();if(Nt(t)||Nt(e)||B(t)||B(e)||xt(e)||w(e)||j(e))return!1;for(i in r=Tt(),t)if("$"!==i.charAt(0)&&!Ct(t[i])){if(!St(t[i],e[i]))return!1;r[i]=!0}for(i in e)if(!(i in r)&&"$"!==i.charAt(0)&&bt(e[i])&&!Ct(e[i]))return!1;return!0}if(!xt(e))return!1;if((n=t.length)===e.length){for(i=0;i<n;i++)if(!St(t[i],e[i]))return!1;return!0}}}return!1}var Z=function(){var t;return bt(Z.rules)||((t=x.document.querySelector("[ng-csp]")||x.document.querySelector("[data-ng-csp]"))?(t=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp"),Z.rules={noUnsafeEval:!t||-1!==t.indexOf("no-unsafe-eval"),noInlineStyle:!t||-1!==t.indexOf("no-inline-style")}):Z.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}),Z.rules},Q=function(){if(bt(Q.name_))return Q.name_;for(var t,e,n,i=ct.length,r=0;r<i;++r)if(e=ct[r],t=x.document.querySelector("["+e.replace(":","\\:")+"jq]")){n=t.getAttribute(e+"jq");break}return Q.name_=n};function J(t,e,n){return t.concat(g.call(e,n))}function Lt(t,e){return g.call(t,e||0)}function Ht(t,e){var n=2<arguments.length?Lt(arguments,2):[];return!Ct(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,J(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function tt(t,e){var n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:B(e)?n="$WINDOW":e&&x.document===e?n="$DOCUMENT":Nt(e)&&(n="$SCOPE"),n}function et(t,e){if(!yt(t))return _(e)||(e=e?2:null),JSON.stringify(t,tt,e)}function nt(t){return wt(t)?JSON.parse(t):t}var it=/:/g;function rt(t,e){t=t.replace(it,"");t=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return T(t)?e:t}function ot(t,e,n){n=n?-1:1;var i=t.getTimezoneOffset(),e=rt(e,i);return t=t,n=n*(e-i),(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}function Et(t){t=ft(t).clone();try{t.empty()}catch(t){}var e=ft("<div>").append(t).html();try{return t[0].nodeType===Qt?S(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(t,e){return"<"+S(e)})}catch(t){return S(e)}}function st(t){try{return decodeURIComponent(t)}catch(t){}}function at(t){var r={};return mt((t||"").split("&"),function(t){var e,n,i;t&&(n=t=t.replace(/\+/g,"%20"),-1!==(e=t.indexOf("="))&&(n=t.substring(0,e),i=t.substring(e+1)),bt(n=st(n)))&&(i=!bt(i)||st(i),W.call(r,n)?xt(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i)}),r}function lt(t){var n=[];return mt(t,function(t,e){xt(t)?mt(t,function(t){n.push(o(e,!0)+(!0===t?"":"="+o(t,!0)))}):n.push(o(e,!0)+(!0===t?"":"="+o(t,!0)))}),n.length?n.join("&"):""}function ut(t){return o(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function o(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}var ct=["ng-","data-ng-","ng:","x-ng-"];ht=x.document;var ht,dt=!(Bt=ht.currentScript)||(Bt instanceof x.HTMLScriptElement||Bt instanceof x.SVGScriptElement)&&[(Bt=Bt.attributes).getNamedItem("src"),Bt.getNamedItem("href"),Bt.getNamedItem("xlink:href")].every(function(t){if(!t)return!0;
1if(!t.value)return!1;var e=ht.createElement("a");if(e.href=t.value,ht.location.origin===e.origin)return!0;switch(e.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}});function pt(n,t){var i,r,e={};mt(ct,function(t){t+="app";!i&&n.hasAttribute&&n.hasAttribute(t)&&(r=(i=n).getAttribute(t))}),mt(ct,function(t){var e,t=t+"app";!i&&(e=n.querySelector("["+t.replace(":","\\:")+"]"))&&(r=(i=e).getAttribute(t))}),i&&(dt?(e.strictDi=null!==function(t,e){for(var n,i=ct.length,r=0;r<i;++r)if(n=ct[r]+e,wt(n=t.getAttribute(n)))return n;return null}(i,"strict-di"),t(i,r?[r]:[],e)):x.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function Ft(e,n,i){function r(){if((e=ft(e)).injector())throw t=e[0]===x.document?"document":Et(e),A("btstrpd","App already bootstrapped with this element '{0}'",t.replace(/</,"&lt;").replace(/>/,"&gt;"));(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var t=on(n,i.strictDi);return t.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,i){t.$apply(function(){e.data("$injector",i),n(e)(t)})}]),t}i=gt({strictDi:!1},i=_t(i)?i:{});var t=/^NG_ENABLE_DEBUG_INFO!/,o=/^NG_DEFER_BOOTSTRAP!/;if(x&&t.test(x.name)&&(i.debugInfoEnabled=!0,x.name=x.name.replace(t,"")),x&&!o.test(x.name))return r();x.name=x.name.replace(o,""),b.resumeBootstrap=function(t){return mt(t,function(t){n.push(t)}),r()},Ct(b.resumeDeferredBootstrap)&&b.resumeDeferredBootstrap()}function zt(){x.name="NG_ENABLE_DEBUG_INFO!"+x.name,x.location.reload()}function Vt(t){t=b.element(t).injector();if(t)return t.get("$$testability");throw A("test","no injector found for element argument to getTestability")}var jt=/[A-Z]/g;function Wt(t,n){return n=n||"_",t.replace(jt,function(t,e){return(e?n:"")+t.toLowerCase()})}var Bt=!1;function qt(t,e,n){if(!t)throw A("areq","Argument '{0}' is {1}",e||"?",n||"required")}function Ut(t,e,n){qt(Ct(t=n&&xt(t)?t[t.length-1]:t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t))}function Yt(t,e){if("hasOwnProperty"===t)throw A("badname","hasOwnProperty is not a valid {0} name",e)}function Gt(t,e,n){if(!e)return t;for(var i,r=e.split("."),o=t,s=r.length,a=0;a<s;a++)i=r[a],t=t&&(o=t)[i];return!n&&Ct(t)?Ht(o,t):t}function Kt(t){for(var e,n=t[0],i=t[t.length-1],r=1;n!==i&&(n=n.nextSibling);r++)!e&&t[r]===n||(e=e||ft(g.call(t,0,r))).push(n);return e||t}function Tt(){return Object.create(null)}function Xt(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=!z(t)||xt(t)||w(t)?et(t):t.toString()}return t}var Zt=1,Qt=3,Jt=8,te=9;function ee(t){var h=E("$injector"),d=E("ng");function n(t,e,n){return t[e]||(t[e]=n())}t=n(t,"angular",Object);return t.$$minErr=t.$$minErr||E,n(t,"module",function(){var e={};return function(a,l,u){var c={},t="module";if("hasOwnProperty"===a)throw d("badname","hasOwnProperty is not a valid {0} name",t);return l&&e.hasOwnProperty(a)&&(e[a]=null),n(e,a,function(){var o,t,e,n,s;if(l)return o=[],n=i("$injector","invoke","push",t=[]),s={_invokeQueue:o,_configBlocks:t,_runBlocks:e=[],info:function(t){if(bt(t)){if(_t(t))return c=t,this;throw d("aobj","Argument '{0}' must be an object","value")}return c},requires:l,name:a,provider:r("$provide","provider"),factory:r("$provide","factory"),service:r("$provide","service"),value:i("$provide","value"),constant:i("$provide","constant","unshift"),decorator:r("$provide","decorator",t),animation:r("$animateProvider","register"),filter:r("$filterProvider","register"),controller:r("$controllerProvider","register"),directive:r("$compileProvider","directive"),component:r("$compileProvider","component"),config:n,run:function(t){return e.push(t),this}},u&&n(u),s;throw h("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",a);function i(t,e,n,i){return i=i||o,function(){return i[n||"push"]([t,e,arguments]),s}}function r(n,i,r){return r=r||o,function(t,e){return e&&Ct(e)&&(e.$$moduleName=a),r.push([n,i,arguments]),s}}})}})}function C(t,e){if(xt(t)){e=e||[];for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}else if(_t(t))for(var r in e=e||{},t)"$"===r.charAt(0)&&"$"===r.charAt(1)||(e[r]=t[r]);return e||t}function ne(t,e){var n,i;return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):yt(t)?"undefined":"string"!=typeof t?(n=t,i=[],f(e=e)&&(n=X(n,null,e)),JSON.stringify(n,function(t,e){if(_t(e=tt(t,e))){if
1(0<=i.indexOf(e))return"...";i.push(e)}return e})):t}var ie={full:"1.6.4",major:1,minor:6,dot:4,codeName:"phenomenal-footnote"};a.expando="ng339";var re=a.cache={},oe=1;a._data=function(t){return this.cache[t[this.expando]]||{}};var se=/-([a-z])/g,ae=/^-ms-/,le={mouseleave:"mouseout",mouseenter:"mouseover"},ue=E("jqLite");function ce(t,e){return e.toUpperCase()}function he(t){return t.replace(se,ce)}var de=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,pe=/<|&#?\w+;/,fe=/<([\w:-]+)/,me=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,s={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ge(t){return!pe.test(t)}function ve(t){t=t.nodeType;return t===Zt||!t||t===te}function ye(t,e){var n,i,r=e.createDocumentFragment(),o=[];if(ge(t))o.push(e.createTextNode(t));else{for(n=r.appendChild(e.createElement("div")),e=(fe.exec(t)||["",""])[1].toLowerCase(),e=s[e]||s._default,n.innerHTML=e[1]+t.replace(me,"<$1></$2>")+e[2],i=e[0];i--;)n=n.lastChild;o=J(o,n.childNodes),(n=r.firstChild).textContent=""}return r.textContent="",r.innerHTML="",mt(o,function(t){r.appendChild(t)}),r}s.optgroup=s.option,s.tbody=s.tfoot=s.colgroup=s.caption=s.thead,s.th=s.td;var be=x.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function a(t){if(t instanceof a)return t;var e,n,i;if(wt(t)&&(t=kt(t),e=!0),!(this instanceof a)){if(e&&"<"!==t.charAt(0))throw ue("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new a(t)}e?De(this,(e=t,n=n||x.document,(i=de.exec(e))?[n.createElement(i[1])]:(i=ye(e,n))?i.childNodes:[])):Ct(t)?Pe(t):De(this,t)}function _e(t){return t.cloneNode(!0)}function we(t,e){!e&&ve(t)&&ft.cleanData([t]),t.querySelectorAll&&ft.cleanData(t.querySelectorAll("*"))}function xe(n,t,i,e){if(bt(e))throw ue("offargs","jqLite#off() does not support the `selector` argument");var e=ke(n),r=e&&e.events,o=e&&e.handle;if(o)if(t){var s=function(t){var e=r[t];bt(i)&&Rt(e||[],i),bt(i)&&e&&0<e.length||(n.removeEventListener(t,o),delete r[t])};mt(t.split(" "),function(t){s(t),le[t]&&s(le[t])})}else for(t in r)"$destroy"!==t&&n.removeEventListener(t,o),delete r[t]}function Ce(t,e){var n=t.ng339,i=n&&re[n];i&&(e?delete i.data[e]:(i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),xe(t)),delete re[n],t.ng339=void 0))}function ke(t,e){var n=t.ng339,i=n&&re[n];return e&&!i&&(t.ng339=n=++oe,i=re[n]={events:{},data:{},handle:void 0}),i}function $e(t,e,n){if(ve(t)){var i,r=bt(n),o=!r&&e&&!_t(e),s=!e,t=ke(t,!o),a=t&&t.data;if(r)a[he(e)]=n;else{if(s)return a;if(o)return a&&a[he(e)];for(i in e)a[he(i)]=e[i]}}}function Se(t,e){return!!t.getAttribute&&-1<(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")}function Ee(e,t){t&&e.setAttribute&&mt(t.split(" "),function(t){e.setAttribute("class",kt((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+kt(t)+" "," ")))})}function Te(t,e){var n;e&&t.setAttribute&&(n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),mt(e.split(" "),function(t){t=kt(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",kt(n)))}function De(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var i=0;i<n;i++)t[t.length++]=e[i]}else t[t.length++]=e}}function Me(t,e){return Ae(t,"$"+(e||"ngController")+"Controller")}function Ae(t,e,n){t.nodeType===te&&(t=t.documentElement);for(var i=xt(e)?e:[e];t;){for(var r=0,o=i.length;r<o;r++)if(bt(n=ft.data(t,i[r])))return n;t=t.parentNode||11===t.nodeType&&t.host}}function Oe(t){for(we(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Ne(t,e){e||we(t);e=t.parentNode;e&&e.removeChild(t)}function Pe(t){function e(){x.document.removeEventListener("DOMContentLoaded",e),x.removeEventListener("load",e),t()}"complete"===x.document.readyState?x.setTimeout(t):(x.document.addEventListener("DOMContentLoaded",e),x.addEventListener("load",e))}var Re=a.prototype={ready:Pe,toString:function(){var e=[];return mt(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(t){return ft(0<=t?this[t]:this[this.length+t])},length:0,push:D,sort:[].sort,splice:[].splice},Ie={},Le=(mt("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){Ie[S(t)]=t}),{}),He=(mt("input,select,option,textarea,button,form,details".split(","),function(t){Le[t]=!0}),{ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"});function Fe(t,e){e=Ie[e.toLowerCase()];return e&&Le[$t(t)]&&e}function ze(t,e){var n;if(yt(e))return(n=t.nodeType)===Zt||n===Qt?t.textContent:"";t.textContent=e}function Ve(a,l){function t(t,e){t.isDefaultPrevented=function(){return t.defaultPrevented};var n=l[e||t.type],i=n?n.length:0;if(i){yt(t.immediatePropagationStopped)&&(r=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){t.immediatePropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),r&&r.call(t)}),t.isImmediatePropagationStopped=function(){return!0===t.immediatePropagationStopped};var r,o=n.specialHandlerWrapper||je;1<i&&(n=C(n));for(var s=0;s<i;s++)t.isImmediatePropagationStopped()||o(a,t,n[s])}}return t.elem=a,t}function je(t,e,n){n.call(t,e)}function We(t,e,n){var i=e.relatedTarget;i&&(i===t||be.call(t,i))||n.call(t,e)}function Be(){this.$get=function(){return gt(a,{hasClass:function(t,e){return Se(t=t.attr?t[0]:t,e)},addClass:function(t,e){return Te(t=t.attr?t[0]:t,e)},removeClass:function(t,e){return Ee(t=t.attr?t[0]:t,e)}})}}function qe(t,e){var n=t&&t.$$hashKey;return n?"function"==typeof n?t.$$hashKey():n:"function"==(n=typeof t)||"object"==n&&null!==t?t.$$hashKey=n+":"+(e||I)():n+":"+t}mt({data:$e,removeData:Ce,hasData:function(t){for(var e in re[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e<n;e++)Ce(t[e])}},function(t,e){a[e]=t}),mt({data:$e,inheritedData:Ae,scope:function(t){return ft.data(t,"$scope")||Ae(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return ft.data(t,"$isolateScope")||ft.data(t,"$isolateScopeNoTemplate")},controller:Me,injector:function(t){return Ae(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Se,css:function(t,e,n){if(e=he(e.replace(ae,"ms-")),!bt(n))return t.style[e];t.style[e]=n}
1,attr:function(t,e,n){var i,r=t.nodeType;if(r!==Qt&&2!==r&&r!==Jt&&t.getAttribute)return r=S(e),i=Ie[r],bt(n)?void(null===n||!1===n&&i?t.removeAttribute(e):t.setAttribute(e,i?r:n)):(n=t.getAttribute(e),null===(n=i&&null!==n?r:n)?void 0:n)},prop:function(t,e,n){if(!bt(n))return t[e];t[e]=n},text:(ze.$dv="",ze),val:function(t,e){var n;if(yt(e))return t.multiple&&"select"===$t(t)?(n=[],mt(t.options,function(t){t.selected&&n.push(t.value||t.text)}),n):t.value;t.value=e},html:function(t,e){if(yt(e))return t.innerHTML;we(t,!0),t.innerHTML=e},empty:Oe},function(u,t){a.prototype[t]=function(t,e){var n,i,r=this.length;if(u!==Oe&&yt(2===u.length&&u!==Se&&u!==Me?t:e)){if(_t(t)){for(n=0;n<r;n++)if(u===$e)u(this[n],t);else for(i in t)u(this[n],i,t[i]);return this}for(var o=yt(l=u.$dv)?Math.min(r,1):r,s=0;s<o;s++)var a=u(this[s],t,e),l=l?l+a:a;return l}for(n=0;n<r;n++)u(this[n],t,e);return this}}),mt({removeData:Ce,on:function(r,t,o,e){if(bt(e))throw ue("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ve(r))for(var e=ke(r,!0),s=e.events,a=(a=e.handle)||(e.handle=Ve(r,s)),n=0<=t.indexOf(" ")?t.split(" "):[t],i=n.length,l=function(t,e,n){var i=s[t];i||((i=s[t]=[]).specialHandlerWrapper=e,"$destroy"===t)||n||r.addEventListener(t,a),i.push(o)};i--;)t=n[i],le[t]?(l(le[t],We),l(t,void 0,!0)):l(t)},off:xe,one:function(e,n,i){(e=ft(e)).on(n,function t(){e.off(n,i),e.off(n,t)}),e.on(n,i)},replaceWith:function(e,t){var n,i=e.parentNode;we(e),mt(new a(t),function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t})},children:function(t){var e=[];return mt(t.childNodes,function(t){t.nodeType===Zt&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===Zt||11===n)for(var i=0,r=(e=new a(e)).length;i<r;i++){var o=e[i];t.appendChild(o)}},prepend:function(e,t){var n;e.nodeType===Zt&&(n=e.firstChild,mt(new a(t),function(t){e.insertBefore(t,n)}))},wrap:function(t,e){var n;t=t,e=ft(e).eq(0).clone()[0],(n=t.parentNode)&&n.replaceChild(e,t),e.appendChild(t)},remove:Ne,detach:function(t){Ne(t,!0)},after:function(t,e){var n=t,i=t.parentNode;if(i)for(var r=0,o=(e=new a(e)).length;r<o;r++){var s=e[r];i.insertBefore(s,n.nextSibling),n=s}},addClass:Te,removeClass:Ee,toggleClass:function(n,t,i){t&&mt(t.split(" "),function(t){var e=i;((e=yt(i)?!Se(n,t):e)?Te:Ee)(n,t)})},parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:_e,triggerHandler:function(e,t,n){var i,r,o=t.type||t,s=ke(e),s=s&&s.events,s=s&&s[o];s&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:vt,type:o,target:e},t.type&&(i=gt(i,t)),o=C(s),r=n?[i].concat(n):[i],mt(o,function(t){i.isImmediatePropagationStopped()||t.apply(e,r)}))}},function(s,t){a.prototype[t]=function(t,e,n){for(var i,r=0,o=this.length;r<o;r++)yt(i)?bt(i=s(this[r],t,e,n))&&(i=ft(i)):De(i,s(this[r],t,e,n));return bt(i)?i:this}}),a.prototype.bind=a.prototype.on,a.prototype.unbind=a.prototype.off;var Ue=Object.create(null);function Ye(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}Ye.prototype={_idx:function(t){return t!==this._lastKey&&(this._lastKey=t,this._lastIndex=this._keys.indexOf(t)),this._lastIndex},_transformKey:function(t){return T(t)?Ue:t},get:function(t){t=this._transformKey(t);t=this._idx(t);if(-1!==t)return this._values[t]},set:function(t,e){t=this._transformKey(t);var n=this._idx(t);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=t,this._values[n]=e},delete:function(t){t=this._transformKey(t);t=this._idx(t);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Ge=Ye,Ke=[function(){this.$get=[function(){return Ge}]}],Xe=/^([^(]+?)=>
1/,Ze=/^[^(]*\(\s*([^)]*)\)/m,Qe=/,/,Je=/^\s*(_?)(\S+?)\1\s*$/,tn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,en=E("$injector");function nn(t){return Function.prototype.toString.call(t)}function rn(t){t=nn(t).replace(tn,"");return t.match(Xe)||t.match(Ze)}function on(t,u){u=!0===u;var o={},s="Provider",a=[],l=new Ge,c={$provide:{provider:i(p),factory:i(r),service:i(function(t,e){return r(t,["$injector",function(t){return t.instantiate(e)}])}),value:i(function(t,e){return r(t,$(e),!1)}),constant:i(function(t,e){Yt(t,"constant"),c[t]=e,n[t]=e}),decorator:function(t,e){var n=h.get(t+s),i=n.$get;n.$get=function(){var t=d.invoke(i,n);return d.invoke(e,null,{$delegate:t})}}}},h=c.$injector=f(c,function(t,e){throw b.isString(e)&&a.push(e),en("unpr","Unknown provider: {0}",a.join(" <- "))}),n={},e=f(n,function(t,e){e=h.get(t+s,e);return d.invoke(e.$get,e,void 0,t)}),d=e,t=(c["$injector"+s]={$get:$(e)},d.modules=h.modules=Tt(),function n(t){qt(yt(t)||xt(t),"modulesToLoad","not an array");var i,r=[];mt(t,function(e){if(!l.get(e)){l.set(e,!0);try{wt(e)?(i=m(e),d.modules[e]=i,r=r.concat(n(i.requires)).concat(i._runBlocks),t(i._invokeQueue),t(i._configBlocks)):Ct(e)||xt(e)?r.push(h.invoke(e)):Ut(e,"module")}catch(t){throw xt(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),en("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function t(t){var e,n;for(e=0,n=t.length;e<n;e++){var i=t[e],r=h.get(i[0]);r[i[1]].apply(r,i[2])}}});return r}(t));return(d=e.get("$injector")).strictDi=u,mt(t,function(t){t&&d.invoke(t)}),d;function i(n){return function(t,e){if(!_t(t))return n(t,e);mt(t,R(n))}}function p(t,e){if(Yt(t,"service"),(e=Ct(e)||xt(e)?h.instantiate(e):e).$get)return c[t+s]=e;throw en("pget","Provider '{0}' must define $get factory method.",t)}function r(t,e,n){return p(t,{$get:!1!==n?(i=t,r=e,function(){var t=d.invoke(r,this);if(yt(t))throw en("undef","Provider '{0}' must return a value from $get factory method.",i);return t}):e});var i,r}function f(n,i){function l(e,t){if(n.hasOwnProperty(e)){if(n[e]===o)throw en("cdep","Circular dependency found: {0}",e+" <- "+a.join(" <- "));return n[e]}try{return a.unshift(e),n[e]=o,n[e]=i(e,t),n[e]}catch(t){throw n[e]===o&&delete n[e],t}finally{a.shift()}}function r(t,e,n){for(var i=[],r=on.$$annotate(t,u,n),o=0,s=r.length;o<s;o++){var a=r[o];if("string"!=typeof a)throw en("itkn","Incorrect injection token! Expected service name as string, got {0}",a);i.push(e&&e.hasOwnProperty(a)?e[a]:l(a,n))}return i}return{invoke:function(t,e,n,i){return"string"==typeof n&&(i=n,n=null),n=r(t,n,i),function(t){var e;if(!Mt&&"function"==typeof t)return Pt(e=t.$$ngIsClass)?e:t.$$ngIsClass=/^(?:class\b|constructor\()/.test(nn(t))}(t=xt(t)?t[t.length-1]:t)?(n.unshift(null),new(Function.prototype.bind.apply(t,n))):t.apply(e,n)},instantiate:function(t,e,n){var i=xt(t)?t[t.length-1]:t;return(t=r(t,e,n)).unshift(null),new(Function.prototype.bind.apply(i,t))},get:l,annotate:on.$$annotate,has:function(t){return c.hasOwnProperty(t+s)||n.hasOwnProperty(t)}}}}function sn(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(i,r,o){var s=i.document;function a(t){var e,n;t?(t.scrollIntoView(),Ct(n=l.yOffset)?n=n():G(n)?(e=n[0],n="fixed"!==i.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom):_(n)||(n=0),(e=n)&&(n=t.getBoundingClientRect().top,i.scrollBy(0,n-e))):i.scrollTo(0,0)}function l(t){var e,n;(t=wt(t)?t:_(t)?t.toString():r.hash())?(e=s.getElementById(t))?a(e):(e=s.getElementsByName(t),n=null,Array.prototype.some.call(e,function(t){if("a"===$t(t))return n=t,!0}),n?a(n):"top"===t&&a(null)):a(null)}return t&&o.$watch(function(){return r.hash()},function(t,e){var n;t===e&&""===t||(e=function(){o.$evalAsync(l)},"complete"===(n=n||x).document.readyState?n.setTimeout(e):ft(n).on("load",e))}),l}]}on.$$annotate=function(t,e,n){var i;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw wt(n)&&n||(n=t.name||((e=rn(e=t))?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn")),en("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);mt(rn(t)[1].split(Qe),function(t){t.replace(Je,function(t,e,n){i.push(n)})})}t.$inject=i}}else xt(t)?(e=t.length-1,Ut(t[e],"fn"),i=t.slice(0,e)):Ut(t,"fn",!0);return i};var an=E("$animate"),ln=1,un="ng-animate";function cn(t,e){return t||e?t?e?(t=xt(t)?t.join(" "):t)+" "+(e=xt(e)?e.join(" "):e):t:e:""}function hn(t){return _t(t)?t:{}}function dn(){this.$get=vt}function pn(){var u=new Ge,c=[];this.$get=["$$AnimateRunner","$rootScope",function(o,s){return{enabled:vt,on:vt,off:vt,pin:vt,push:function(t,e,n,i){i&&i(),(n=n||{}).from&&t.css(n.from),n.to&&t.css(n.to),(n.addClass||n.removeClass)&&(i=t,t=n.addClass,n=n.removeClass,r=u.get(i)||{},t=a(r,t,!0),n=a(r,n,!1),t||n)&&(u.set(i,r),c.push(i),1===c.length)&&s.$$postDigest(l);var r,t=new o;return t.complete(),t}};function a(e,t,n){var i=!1;return t&&mt(t=wt(t)?t.split(" "):xt(t)?t:[],function(t){t&&(i=!0,e[t]=n)}),i}function l(){mt(c,function(t){var n,i,r,e,o,s=u.get(t);s&&(wt(e=t.attr("class"))&&(e=e.split(" ")),o=Tt(),mt(e,function(t){t.length&&(o[t]=!0)}),n=o,r=i="",mt(s,function(t,e){t!==!!n[e]&&(t?i+=(i.length?" ":"")+e:r+=(r.length?" ":"")+e)}),mt(t,function(t){i&&Te(t,i),r&&Ee(t,r)}),u.delete(t))}),c.length=0}}]}function fn(){this.$get=["$$rAF",function(e){var n=[];function i(t){n.push(t),1<n.length||e(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}return function(){var e=!1;return i(function(){e=!0}),function(t){e?t():i(t)}}}]}function mn(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,i,r){function o(t){this.setHost(t);var e=n();this._doneCallbacks=[],this._tick=function(t){i()?r(t,0,!1):e(t)},this._state=0}return o.chain=function(t,n){var i=0;!function e(){if(i===t.length)return void n(!0);t[i](function(t){!1===t?n(!1):(i++,e())})}()},o.all=function(e,n){var i=0,r=!0;function o(t){r=r&&t,++i===e.length&&n(r)}mt(e,function(t){t.done(o)})},o.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:vt,getPromise:function(){var t;return this.promise||((t=this).promise=e(function(e,n){t.done(function(t){(!1===t?n:e)()})})),this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;0===e._state&&(e._state=1,e._tick(function(){e._resolve(t)}))},_resolve:function(e){2!==this._state&&(mt(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},o}]}function gn(){this.$get=["$$rAF","$q","$$AnimateRunner",function(s,t,a){return function(t,e){var n=e||{};(n=n.$$prepared?n:X(n)).cleanupStyles&&(n.from=n.to=null),n.from&&(t.css(n.from),n.from=null);var i,r=new a;return{start:o,end:o};function o(){return s(function(){n.addClass&&(t.addClass(n.addClass),n.addClass=null),n.removeClass&&(t.removeClass(n.removeClass),n.removeClass=null),n.to&&(t.css(n.to),n.to=null),i||r.complete(),i=!0}),r}}}]}var vn=["$provide",function(i){var r=this,e=null;this.$$registeredAnimations=Object.create(null),this.register=function(t,e){if(t&&"."!==t.charAt(0))throw an("notcsel","Expecting class selector starting with '.' got '{0}'.",t);var n=t+"-animation";r.$$registeredAnimations[t.substr(1)]=n,i.factory(n,e)},this.classNameFilter=function(t){if(1===arguments.length&&((e=t instanceof RegExp?t:null)&&new RegExp("[(\\s|\\/)]"+un+"[(\\s|\\/)]").test(e.toString())))throw e=null,an("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',un);return e},this.$get=["$$animateQueue",function(o){function r(t,e,n){var i;(n=!n||!(i=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===ln)return n}}(n))||i.parentNode||i.previousElementSibling?n:null)?n.after(t):e.prepend(t)}return{on:o.on,off:o.off,pin:o.pin,enabled:o.enabled,cancel:function(t){t.end&&t.end()},enter:function(t,e,n,i){return e=e&&ft(e),n=n&&ft(n),r(t,e=e||n.parent(),n),o.push(t,"enter",hn(i))},move:function(t,e,n,i){return e=e&&ft(e),n=n&&ft(n),r(t,e=e||n.parent(),n),o.push(t,"move",hn(i))},leave:function(t,e){return o.push(t,"leave",hn(e),function(){t.remove()})},addClass:function(t,e,n){return(n=hn(n)).addClass=cn(n.addclass,e),o.push(t,"addClass",n)},removeClass:function(t,e,n){return(n=hn(n)).removeClass=cn(n.removeClass,e),o.push(t,"removeClass",n)},setClass:function(t,e,n,i){return(i=hn(i)).addClass=cn(i.addClass,e),i.removeClass=cn(i.removeClass,n),o.push(t,"setClass",i)},animate:function(t,e,n,i,r){return(r=hn(r)).from=r.from?gt(r.from,e):e,r.to=r.to?gt(r.to,n):n,r.tempClasse
1s=cn(r.tempClasses,i=i||"ng-inline-animate"),o.push(t,"animate",r)}}}]}];function yn(o,t,e,s){var a=this,l=o.location,u=o.history,i=o.setTimeout,n=o.clearTimeout,r={},c=(a.isMock=!1,0),h=[];function d(t){try{t.apply(null,Lt(arguments,1))}finally{if(0===--c)for(;h.length;)try{h.pop()()}catch(t){e.error(t)}}}a.$$completeOutstandingRequest=d,a.$$incOutstandingRequestCount=function(){c++},a.notifyWhenNoOutstandingRequests=function(t){0===c?t():h.push(t)};var p,f,m=l.href,g=t.find("base"),v=null,y=s.history?function(){try{return u.state}catch(t){}}:vt,b=(C(),a.url=function(t,e,n){var i,r;return yt(n)&&(n=null),l!==o.location&&(l=o.location),u!==o.history&&(u=o.history),t?(i=f===n,(m!==t||s.history&&!i)&&(r=m&&pi(m)===pi(t),m=t,f=n,!s.history||r&&i?(r||(v=t),e?l.replace(t):r?l.hash=-1===(r=(i=t).indexOf("#"))?"":i.substr(r):l.href=t,l.href!==t&&(v=t)):(u[e?"replaceState":"pushState"](n,"",t),C()),v=v&&t),a):v||l.href.replace(/%27/g,"'")},a.state=function(){return p},[]),_=!1;function w(){v=null,k()}var x=null;function C(){St(p=yt(p=y())?null:p,x)&&(p=x),f=x=p}function k(){var t=f;C(),m===a.url()&&t===p||(m=a.url(),f=p,mt(b,function(t){t(a.url(),p)}))}a.onUrlChange=function(t){return _||(s.history&&ft(o).on("popstate",w),ft(o).on("hashchange",w),_=!0),b.push(t),t},a.$$applicationDestroyed=function(){ft(o).off("hashchange popstate",w)},a.$$checkUrlChange=k,a.baseHref=function(){var t=g.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},a.defer=function(t,e){var n;return c++,n=i(function(){delete r[n],d(t)},e||0),r[n]=!0,n},a.defer.cancel=function(t){return!!r[t]&&(delete r[t],n(t),d(vt),!0)}}function bn(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,i){return new yn(t,i,e,n)}]}function _n(){this.$get=function(){var h={};function t(t,e){if(t in h)throw E("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var n=0,i=gt({},e,{id:t}),r=Tt(),o=e&&e.capacity||Number.MAX_VALUE,s=Tt(),a=null,l=null;return h[t]={put:function(t,e){if(!yt(e))return o<Number.MAX_VALUE&&u(s[t]||(s[t]={key:t})),t in r||n++,r[t]=e,o<n&&this.remove(l.key),e},get:function(t){if(o<Number.MAX_VALUE){var e=s[t];if(!e)return;u(e)}return r[t]},remove:function(t){if(o<Number.MAX_VALUE){var e=s[t];if(!e)return;e===a&&(a=e.p),e===l&&(l=e.n),c(e.n,e.p),delete s[t]}t in r&&(delete r[t],n--)},removeAll:function(){r=Tt(),n=0,s=Tt(),a=l=null},destroy:function(){s=i=r=null,delete h[t]},info:function(){return gt({},i,{size:n})}};function u(t){t!==a&&(l?l===t&&(l=t.n):l=t,c(t.n,t.p),c(t,a),(a=t).n=null)}function c(t,e){t!==e&&(t&&(t.p=e),e)&&(e.n=t)}}return t.info=function(){var n={};return mt(h,function(t,e){n[e]=t.info()}),n},t.get=function(t){return h[t]},t}}function wn(){this.$get=["$cacheFactory",function(t){return t("templates")}]}var Dt=E("$compile");var xn=new function(){};function Cn(r,e){var L={},H="Directive",F=/^\s*directive:\s*([\w-]+)\s+(.*)$/,z=/(([\w-]+)(?::([^;]+))?;?)/,V=function(t){for(var e={},n=t.split(","),i=0;i<n.length;i++)e[n[i]]=!0;return e}("ngSrc,ngSrcset,src,srcset"),h=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,j=/^(on[a-z]+|formaction)$/,a=Tt();function m(t,i,r){var o=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,s=Tt();return mt(t,function(t,e){if(t in a)s[e]=a[t];else{var n=t.match(o);if(!n)throw Dt("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",i,e,t,r?"controller bindings definition":"isolate scope definition");s[e]={mode:n[1][0],collection:"*"===n[2],optional:"?"===n[3],attrName:n[4]||e},n[4]&&(a[t]=s[e])}}),s}this.directive=function t(l,e){if(qt(l,"name"),Yt(l,"directive"),wt(l)){var n=l,i=n.charAt(0);if(!i||i!==S(i))throw Dt("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",n);if(n!==n.trim())throw Dt("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",n);qt(e,"directiveFactory"),L.hasOwnProperty(l)||(L[l]=[],r.factory(l+H,["$injector","$exceptionHandler",function(o,s){var a=[];return mt(L[l],function(t,e){try{var n=o.invoke(t);Ct(n)?n={compile:$(n)}:!n.compile&&n.link&&(n.compile=$(n.link)),n.priority=n.priority||0,n.index=e,n.name=n.name||l,n.require=(r=(i=n).require||i.controller&&i.name,!xt(r)&&_t(r)&&mt(r,function(t,e){var n=t.match(h);t.substring(n[0].length)||(r[e]=n[0]+e)}),r),n.restrict=function(t,e){if(!t||wt(t)&&/[EACM]/.test(t))return t||"EA";
1throw Dt("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e)}(n.restrict,l),n.$$moduleName=t.$$moduleName,a.push(n)}catch(t){s(t)}var i,r}),a}])),L[l].push(e)}else mt(l,R(t));return this},this.component=function(t,r){var o=r.controller||function(){};function n(i){function t(n){return Ct(n)||xt(n)?function(t,e){return i.invoke(n,this,{$element:t,$attrs:e})}:n}var e=r.template||r.templateUrl?r.template:"",n={controller:o,controllerAs:function(t,e){if(e&&wt(e))return e;if(wt(t)){e=An.exec(t);if(e)return e[3]}}(r.controller)||r.controllerAs||"$ctrl",template:t(e),templateUrl:t(r.templateUrl),transclude:r.transclude,scope:{},bindToController:r.bindings||{},restrict:"E",require:r.require};return mt(r,function(t,e){"$"===e.charAt(0)&&(n[e]=t)}),n}return mt(r,function(t,e){"$"===e.charAt(0)&&(n[e]=t,Ct(o))&&(o[e]=t)}),n.$inject=["$injector"],this.directive(t,n)},this.aHrefSanitizationWhitelist=function(t){return bt(t)?(e.aHrefSanitizationWhitelist(t),this):e.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return bt(t)?(e.imgSrcSanitizationWhitelist(t),this):e.imgSrcSanitizationWhitelist()};var l=!0,pt=!(this.debugInfoEnabled=function(t){return bt(t)?(l=t,this):l}),u=(this.preAssignBindingsEnabled=function(t){return bt(t)?(pt=t,this):pt},10),c=(this.onChangesTtl=function(t){return arguments.length?(u=t,this):u},!0),g=(this.commentDirectivesEnabled=function(t){return arguments.length?(c=t,this):c},!0);this.cssClassDirectivesEnabled=function(t){return arguments.length?(g=t,this):g},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(T,D,B,q,b,U,o,M,i,d){var s,f=/^\w/,p=x.document.createElement("div"),O=c,N=g,t=u;function a(){try{if(!--t)throw s=void 0,Dt("infchng","{0} $onChanges() iterations reached. Aborting!\n",u);o.$apply(function(){for(var e=[],t=0,n=s.length;t<n;++t)try{s[t]()}catch(t){e.push(t)}if(s=void 0,e.length)throw e})}finally{t++}}function Y(t,e){if(e)for(var n,i=Object.keys(e),r=0,o=i.length;r<o;r++)this[n=i[r]]=e[n];else this.$attr={};this.$$element=t}function G(t,e){try{t.addClass(e)}catch(t){}}Y.prototype={$normalize:En,$addClass:function(t){t&&0<t.length&&i.addClass(this.$$element,t)},$removeClass:function(t){t&&0<t.length&&i.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=Tn(t,e),n=(n&&n.length&&i.addClass(this.$$element,n),Tn(e,t));n&&n.length&&i.removeClass(this.$$element,n)},$set:function(t,e,n,i){var r=Fe(this.$$element[0],t),o=He[t],s=t;if(r?(this.$$element.prop(t,e),i=r):o&&(this[o]=e,s=o),this[t]=e,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=Wt(t,"-")),"a"===(r=$t(this.$$element))&&("href"===t||"xlinkHref"===t)||"img"===r&&"src"===t)this[t]=e=d(e,"src"===t);else if("img"===r&&"srcset"===t&&bt(e)){for(var a="",o=kt(e),r=/\s/.test(o)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,l=o.split(r),u=Math.floor(l.length/2),c=0;c<u;c++)var h=2*c,a=(a+=d(kt(l[h]),!0))+(" "+kt(l[1+h]));o=kt(l[2*c]).split(/\s/);a+=d(kt(o[0]),!0),2===o.length&&(a+=" "+kt(o[1])),this[t]=e=a}!1!==n&&(null===e||yt(e)?this.$$element.removeAttr(i):f.test(i)?this.$$element.attr(i,e):(r=this.$$element[0],o=i,t=e,p.innerHTML="<span "+o+">",o=p.firstChild.attributes,n=o[0],o.removeNamedItem(n.name),n.value=t,r.attributes.setNamedItem(n)));i=this.$$observers;i&&mt(i[s],function(t){try{t(e)}catch(t){B(t)}})},$observe:function(t,e){var n=this,i=n.$$observers||(n.$$observers=Tt()),r=i[t]||(i[t]=[]);return r.push(e),o.$evalAsync(function(){r.$$inter||!n.hasOwnProperty(t)||yt(n[t])||e(n[t])}),function(){Rt(r,e)}}};var e=D.startSymbol(),n=D.endSymbol(),K="{{"===e&&"}}"===n?Ot:function(t){return t.replace(/\{\{/g,e).replace(/}}/g,n)},P=/^ngAttr[A-Z]/,R=/^(.+)Start$/;return X.$$addBindingInfo=l?function(t,e){var n=t.data("$binding")||[];xt(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:vt,X.$$addBindingClass=l?function(t){G(t,"ng-binding")}:vt,X.$$addScopeInfo=l?function(t,e,n,i){t.data(n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope",e)}:vt,X.$$addScopeClass=l?function(t,e){G(t,e?"ng-isolate-scope":"ng-scope")}:vt,X.$$createComment=function(t,e){var n="";return l&&(n=" "+(t||"")+": ",e)&&(n+=e+" "),x.document.createComment(n)},X;function X(a,t,e,n,l){var u=Z(a=a instanceof ft?a:ft(a),t,a,e,n,l),c=(X.$$addScopeClass(a),null);return function(t,e,n){if(!a)throw Dt("multilink","This element has already been linked.");qt(t,"scope"),l&&l.needsNewScope&&(t=t.$parent.$new());var i,r=(n=n||{}).parentBoundTranscludeFn,o=n.transcludeControllers,n=n.futureParentElement;if(r&&r.$$boundTransclude&&(r=r.$$boundTransclude),i="html"!==(c=c||function(t){t=t&&t[0];return t&&"foreignobject"!==$t(t)&&v.call(t).match(/SVG/)?"svg":"html"}(n))?ft(lt(c,ft("<div>").append(a).html())):e?Re.clone.call(a):a,o)for(var s in o)i.data("$"+s+"Controller",o[s].instance);return X.$$addScopeInfo(i,t),e&&e(i,t),u&&u(t,i,i,r),e||(a=u=null),i}}function Z(t,f,e,n,i,r){for(var o,s,a,m,g=[],l=xt(t)||t instanceof ft,u=0;u<t.length;u++){if(s=new Y,11===Mt){c=y=v=p=d=h=void 0;var c,h=t,d=u,p=l,v=h[d],y=v.parentNode;if(v.nodeType===Qt)for(;;){if(!(c=y?v.nextSibling:h[d+1])||c.nodeType!==Qt)break;v.nodeValue=v.nodeValue+c.nodeValue,c.parentNode&&c.parentNode.removeChild(c),p&&c===h[d+1]&&h.splice(d+1,1)}}(o=(o=J(t[u],[],s,0===u?n:void 0,i)).length?it(o,t[u],s,f,e,null,[],[],r):null)&&o.scope&&X.$$addScopeClass(s.$$element),s=o&&o.terminal||!(s=t[u].childNodes)||!s.length?null:Z(s,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:f),(o||s)&&(g.push(u,o,s),a=!0,m=m||o),r=null}return a?function(t,e,n,i){var r,o,s,a,l,u,c,h,d;if(m){var p=e.length;for(d=new Array(p),l=0;l<g.length;l+=3)d[c=g[l]]=e[c]}else d=e;for(l=0,u=g.length;l<u;)s=d[g[l++]],r=g[l++],o=g[l++],r?(r.scope?(a=t.$new(),X.$$addScopeInfo(ft(s),a)):a=t,h=r.transcludeOnThisElement?Q(t,r.transclude,i):!r.templateOnThisElement&&i?i:!i&&f?Q(t,f):null,r(o,a,s,n,h)):o&&o(t,s.childNodes,void 0,i)}:null}function Q(o,s,a){function t(t,e,n,i,r){return t||((t=o.$new(!1,r)).$$transcluded=!0),s(t,e,{parentBoundTranscludeFn:a,transcludeControllers:n,futureParentElement:i})}var e,n=t.$$slots=Tt();for(e in s.$$slots)s.$$slots[e]?n[e]=Q(o,s.$$slots[e],a):n[e]=null;return t}function J(t,e,n,i,r){var o,s,a,l,u=t.nodeType,c=n.$attr;switch(u){case Zt:A(e,En(a=$t(t)),"E",i,r);for(var h,d=t.attributes,p=0,f=d&&d.length;p<f;p++){var m,g=!1,v=!1,y=(b=d[p]).name,b=b.value,_=En(y),_=((m=P.test(_))&&(y=y.replace($n,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()})),_.match(R));_&&function(t){if(L.hasOwnProperty(t))for(var e=T.get(t+H),n=0,i=e.length;n<i;n++)if(e[n].multiElement)return 1;return}(_[1])&&(v=(g=y).substr(0,y.length-5)+"end",y=y.substr(0,y.length-6)),c[h=En(y.toLowerCase())]=y,!m&&n.hasOwnProperty(h)||(n[h]=b,Fe(t,h)&&(n[h]=!0)),!function(t,e,o,s,n){var a=function(t,e){if("srcdoc"===e)return M.HTML;t=$t(t);if("src"===e||"ngSrc"===e){if(-1===["img","video","audio","source","track"].indexOf(t))return M.RESOURCE_URL}else if("xlinkHref"===e||"form"===t&&"action"===e||"link"===t&&"href"===e)return M.RESOURCE_URL}(t,s),i=!n,l=V[s]||n,u=D(o,i,a,l);if(u){if("multiple"===s&&"select"===$t(t))throw Dt("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Et(t));if(j.test(s))throw Dt("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");e.push({priority:100,compile:function(){return{pre:function(t,e,n){var i=n.$$observers||(n.$$observers=Tt()),r=n[s];r!==o&&(u=r&&D(r,!0,a,l),o=r),u&&(n[s]=u(t),(i[s]||(i[s]=[])).$$inter=!0,(n.$$observers&&n.$$observers[s].$$scope||t).$watch(u,function(t,e){"class"===s&&t!==e?n.$updateClass(t,e):n.$set(s,t)}))}}}})}}(t,e,b,h,m),A(e,h,"A",i,r,g,v)}if("input"===a&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off"),N&&(wt(s=_t(s=t.className)?s.animVal:s)&&""!==s))for(;o=z.exec(s);)A(e,h=En(o[2]),"C",i,r)&&(n[h]=kt(o[3])),s=s.substr(o.index+o[0].length);break;case Qt:a=e,w=t.nodeValue,(l=D(w,!0))&&a.push({priority:0,compile:function(t){var t=t.parent(),i=!!t.length;return i&&X.$$addBindingClass(t),function(t,e){var n=e.parent();i||X.$$addBindingClass(n),X.$$addBindingInfo(n,l.expressions),t.$watch(l,function(t){e[0].nodeValue=t})}}});break;case Jt:if(O){var w=t,x=e,C=n,k=i,$=r;try{var S,E=F.exec(w.nodeValue);E&&(S=En(E[1]),A(x,S,"M",k,$))&&(C[S]=kt(E[2]))}catch(t){}}}return e.sort(I),e}function tt(t,e,n){var i=[],r=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Dt("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n)}
1while(t.nodeType===Zt&&(t.hasAttribute(e)&&r++,t.hasAttribute(n))&&r--,i.push(t),t=t.nextSibling,0<r)}else i.push(t);return ft(i)}function et(o,s,a){return function(t,e,n,i,r){return e=tt(e[0],s,a),o(t,e,n,i,r)}}function nt(t,e,n,i,r,o){var s;return t?X(e,n,i,r,o):function(){return s||(s=X(e,n,i,r,o),e=n=o=null),s.apply(this,arguments)}}function it(t,w,x,e,n,I,C,k,i){i=i||{};for(var r,o,s=-Number.MAX_VALUE,$=i.newScopeDirective,S=i.controllerDirectives,E=i.newIsolateScopeDirective,T=i.templateDirective,a=i.nonTlbTranscludeDirective,l=!1,u=!1,D=i.hasElementTranscludeDirective,c=x.$$element=ft(w),h=I,d=e,L=!1,p=!1,f=0,m=t.length;f<m;f++){var g,v=(g=t[f]).$$start,y=g.$$end;if(v&&(c=tt(w,v,y)),A=void 0,s>g.priority)break;if((o=g.scope)&&(g.templateUrl||(_t(o)?(at("new/isolated scope",E||$,g,c),E=g):at("new/isolated scope",E,g,c)),$=$||g),r=g.name,!L&&(g.replace&&(g.templateUrl||g.template)||g.transclude&&!g.$$tlb)){for(var b,H=f+1;b=t[H++];)if(b.transclude&&!b.$$tlb||b.replace&&(b.templateUrl||b.template)){p=!0;break}L=!0}if(!g.templateUrl&&g.controller&&(S=S||Tt(),at("'"+r+"' controller",S[r],g,c),S[r]=g),o=g.transclude)if(l=!0,g.$$tlb||(at("transclusion",a,g,c),a=g),"element"===o)D=!0,s=g.priority,A=c,c=x.$$element=ft(X.$$createComment(r,x[r])),w=c[0],ut(n,Lt(A),w),A[0].$$parentNode=A[0].parentNode,d=nt(p,A,e,s,h&&h.name,{nonTlbTranscludeDirective:a});else{var _=Tt();if(_t(o)){var M,A=[],F=Tt(),O=Tt();for(M in mt(o,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,F[t]=e,_[e]=null,O[e]=n}),mt(c.contents(),function(t){var e=F[En($t(t))];(e?(O[e]=!0,_[e]=_[e]||[],_[e]):A).push(t)}),mt(O,function(t,e){if(!t)throw Dt("reqslot","Required transclusion slot `{0}` was not filled.",e)}),_)_[M]&&(_[M]=nt(p,_[M],e))}else A=ft(_e(w)).contents();c.empty(),(d=nt(p,A,e,void 0,void 0,{needsNewScope:g.$$isolateScope||g.$$newScope})).$$slots=_}if(g.template)if(u=!0,at("template",T,g,c),o=Ct((T=g).template)?g.template(c,x):g.template,o=K(o),g.replace){if(h=g,A=ge(o)?[]:Dn(lt(g.templateNamespace,kt(o))),w=A[0],1!==A.length||w.nodeType!==Zt)throw Dt("tplrt","Template for directive '{0}' must have exactly one root element. {1}",r,"");ut(n,c,w);var z={$attr:{}},V=J(w,[],z),j=t.splice(f+1,t.length-(f+1));(E||$)&&ot(V,E,$),t=t.concat(V).concat(j),st(x,z),m=t.length}else c.html(o);if(g.templateUrl)u=!0,at("template",T,g,c),(T=g).replace&&(h=g),R=function(c,h,d,p,f,m,g,v){var y,b,_=[],w=h[0],x=c.shift(),C=At(x,{templateUrl:null,transclude:null,replace:null,$$originalDirective:x}),k=Ct(x.templateUrl)?x.templateUrl(h,d):x.templateUrl,$=x.templateNamespace;return h.empty(),q(k).then(function(t){var n,e;if(t=K(t),x.replace){if(e=ge(t)?[]:Dn(lt($,kt(t))),n=e[0],1!==e.length||n.nodeType!==Zt)throw Dt("tplrt","Template for directive '{0}' must have exactly one root element. {1}",x.name,k);e={$attr:{}},ut(p,h,n);var i=J(n,[],e);_t(x.scope)&&ot(i,!0),c=i.concat(c),st(d,e)}else n=w,h.html(t);for(c.unshift(C),y=it(c,n,d,f,h,x,m,g,v),mt(p,function(t,e){t===n&&(p[e]=h[0])}),b=Z(h[0].childNodes,f);_.length;){var r,o=_.shift(),s=_.shift(),a=_.shift(),l=_.shift(),u=h[0];o.$$destroyed||(s!==w&&(r=s.className,v.hasElementTranscludeDirective&&x.replace||(u=_e(n)),ut(a,ft(s),u),G(ft(u),r)),a=y.transcludeOnThisElement?Q(o,y.transclude,l):l,y(b,o,u,p,a))}_=null}).catch(function(t){t instanceof Error&&B(t)}),function(t,e,n,i,r){var o=r;e.$$destroyed||(_?_.push(e,n,i,o):(y.transcludeOnThisElement&&(o=Q(e,y.transclude,r)),y(b,e,n,i,o)))}}(t.splice(f,t.length-f),c,x,n,l&&d,C,k,{controllerDirectives:S,newScopeDirective:$!==g&&$,newIsolateScopeDirective:E,templateDirective:T,nonTlbTranscludeDirective:a}),m=t.length;else if(g.compile)try{var N=g.compile(c,x,d),P=g.$$originalDirective||g;Ct(N)?W(null,Ht(P,N),v,y):N&&W(Ht(P,N.pre),Ht(P,N.post),v,y)}catch(t){B(t,Et(c))}g.terminal&&(R.terminal=!0,s=Math.max(s,g.priority))}return R.scope=$&&!0===$.scope,R.transcludeOnThisElement=l,R.templateOnThisElement=u,R.transclude=d,i.hasElementTranscludeDirective=D,R;function W(t,e,n,i){t&&((t=n?et(t,n,i):t).require=g.require,t.directiveName=r,E!==g&&!g.$$isolateScope||(t=ct(t,{isolateScope:!0})),C.push(t)),e&&((e=n?et(e,n,i):e).require=g.require,e.directiveName=r,E!==g&&!g.$$isolateScope||(e=ct(e,{isolateScope:!0})),k.push(e))}function R(t,e,n,i,s){var r,o,a,l,u,c,h,d,p,f,m;for(m in w===n?d=(p=x).$$element:p=new Y(d=ft(n),x),u=e,E?l=e.$new(!0):$&&(u=e.$parent),s&&((h=function(t,e,n,i){var r;
1Nt(t)||(i=n,n=e,e=t,t=void 0);D&&(r=c);n=n||(D?d.parent():d);{if(!i)return s(t,e,r,n,_);var o=s.$$slots[i];if(o)return o(t,e,r,n,_);if(yt(o))throw Dt("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,Et(d))}}).$$boundTransclude=s,h.isSlotFilled=function(t){return!!s.$$slots[t]}),S&&(c=function(t,e,n,i,r,o,s){var a,l=Tt();for(a in i){var u=i[a],c={$scope:u===s||u.$$isolateScope?r:o,$element:t,$attrs:e,$transclude:n},h=u.controller,h=("@"===h&&(h=e[u.name]),U(h,c,!0,u.controllerAs));l[u.name]=h,t.data("$"+u.name+"Controller",h.instance)}return l}(d,p,h,S,l,e,E)),E&&(X.$$addScopeInfo(d,l,!0,!(T&&(T===E||T===E.$$originalDirective))),X.$$addScopeClass(d,!0),l.$$isolateBindings=E.$$isolateBindings,(f=dt(e,p,l,l.$$isolateBindings,E)).removeWatches)&&l.$on("$destroy",f.removeWatches),c){var g,v=S[m],y=c[m],b=v.$$bindings.bindToController;pt?(y.bindingInfo=b?dt(u,p,y.instance,b,v):{},(g=y())!==y.instance&&(y.instance=g,d.data("$"+v.name+"Controller",g),y.bindingInfo.removeWatches&&y.bindingInfo.removeWatches(),y.bindingInfo=dt(u,p,y.instance,b,v))):(y.instance=y(),d.data("$"+v.name+"Controller",y.instance),y.bindingInfo=dt(u,p,y.instance,b,v))}for(mt(S,function(t,e){var n=t.require;t.bindToController&&!xt(n)&&_t(n)&&gt(c[e].instance,rt(e,n,d,c))}),mt(c,function(t){var e=t.instance;if(Ct(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){B(t)}if(Ct(e.$onInit))try{e.$onInit()}catch(t){B(t)}Ct(e.$doCheck)&&(u.$watch(function(){e.$doCheck()}),e.$doCheck()),Ct(e.$onDestroy)&&u.$on("$destroy",function(){e.$onDestroy()})}),r=0,o=C.length;r<o;r++)ht(a=C[r],a.isolateScope?l:e,d,p,a.require&&rt(a.directiveName,a.require,d,c),h);var _=e;for(E&&(E.template||null===E.templateUrl)&&(_=l),t&&t(_,n.childNodes,void 0,s),r=k.length-1;0<=r;r--)ht(a=k[r],a.isolateScope?l:e,d,p,a.require&&rt(a.directiveName,a.require,d,c),h);mt(c,function(t){t=t.instance;Ct(t.$postLink)&&t.$postLink()})}}function rt(n,t,i,r){if(wt(t)){var e,o,s=t.match(h),a=t.substring(s[0].length),l=s[1]||s[3],s="?"===s[2];if("^^"===l?i=i.parent():o=(o=r&&r[a])&&o.instance,o||(e="$"+a+"Controller",o=l?i.inheritedData(e):i.data(e)),!o&&!s)throw Dt("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,n)}else if(xt(t)){o=[];for(var u=0,c=t.length;u<c;u++)o[u]=rt(n,t[u],i,r)}else _t(t)&&(o={},mt(t,function(t,e){o[e]=rt(n,t,i,r)}));return o||null}function ot(t,e,n){for(var i=0,r=t.length;i<r;i++)t[i]=At(t[i],{$$isolateScope:e,$$newScope:n})}function A(t,e,n,i,r,o,s){if(e!==r){var a=null;if(L.hasOwnProperty(e))for(var l=T.get(e+H),u=0,c=l.length;u<c;u++){var h,d=l[u];(yt(i)||i>d.priority)&&-1!==d.restrict.indexOf(n)&&((d=o?At(d,{$$start:o,$$end:s}):d).$$bindings||(h=d.$$bindings=function(t,e){var n={isolateScope:null,bindToController:null};if(_t(t.scope)&&(!0===t.bindToController?(n.bindToController=m(t.scope,e,!0),n.isolateScope={}):n.isolateScope=m(t.scope,e,!1)),_t(t.bindToController)&&(n.bindToController=m(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw Dt("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}(d,d.name),_t(h.isolateScope)&&(d.$$isolateBindings=h.isolateScope)),t.push(d),a=d)}return a}}function st(n,i){var r=i.$attr,o=n.$attr;mt(n,function(t,e){"$"!==e.charAt(0)&&(i[e]&&i[e]!==t&&(t.length?t+=("style"===e?";":" ")+i[e]:t=i[e]),n.$set(e,t,!0,r[e]))}),mt(i,function(t,e){n.hasOwnProperty(e)||"$"===e.charAt(0)||(n[e]=t,"class"!==e&&"style"!==e&&(o[e]=r[e]))})}function I(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 at(t,e,n,i){function r(t){return t?" (module: "+t+")":""}if(e)throw Dt("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,r(e.$$moduleName),n.name,r(n.$$moduleName),t,Et(i))}function lt(t,e){switch(t=S(t||"html")){case"svg":case"math":var n=x.document.createElement("div");return n.innerHTML="<"+t+">"+e+"</"+t+">",n.childNodes[0].childNodes;default:return e}}function ut(t,e,n){var i,r=e[0],o=e.length,s=r.parentNode;if(t)for(h=0,i=t.length;h<i;h++)if(t[h]===r){t[h++]=n;for(var a=h,l=a+o-1,u=t.length;a<u;a++,l++)l<u?t[a]=t[l]:delete t[a];t.length-=o-1,t.context===r&&(t.context=n);break}s&&s.replaceChild(n,r);for(var c=x.document.createDocumentFragment(),h=0;h<o;h++)c.appendChild(e[h]);for(ft.hasData(r)&&(ft.data(n,ft.data(r)),ft(r).off("$destroy")),ft.cleanData(c.querySelectorAll("*")),h=1;h<o;h++)delete e[h];e[0]=n,e.length=1}function ct(t,e){return gt(function(){return t.apply(null,arguments)},t,e)}function ht(t,e,n,i,r,o){try{t(e,n,i,r,o)}catch(t){B(t,Et(n))}}function dt(d,p,f,t,m){var i,g=[],v={};function y(t,e,n){Ct(f.$onChanges)&&!It(e,n)&&(s||(d.$$postDigest(a),s=[]),i||(i={},s.push(r)),i[t]&&(n=i[t].previousValue),i[t]=new kn(n,e))}function r(){f.$onChanges(i),i=void 0}return mt(t,function(t,n){var e,i,r,o,s,a,l,u,c=t.attrName,h=t.optional;switch(t.mode){case"@":h||W.call(p,c)||(f[n]=p[c]=void 0),e=p.$observe(c,function(t){var e;(wt(t)||Pt(t))&&(e=f[n],y(n,t,e),f[n]=t)}),p.$$observers[c].$$scope=d,wt(s=p[c])?f[n]=D(s)(d):Pt(s)&&(f[n]=s),v[n]=new kn(xn,f[n]),g.pu
1sh(e);break;case"=":if(!W.call(p,c)){if(h)break;p[c]=void 0}h&&!p[c]||(r=(i=b(p[c])).literal?St:It,o=i.assign||function(){throw s=f[n]=i(d),Dt("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",p[c],c,m.name)},s=f[n]=i(d),(a=function(t){return r(t,f[n])||(r(t,s)?o(d,t=f[n]):f[n]=t),s=t}).$stateful=!0,e=t.collection?d.$watchCollection(p[c],a):d.$watch(b(p[c],a),null,i.literal),g.push(e));break;case"<":if(!W.call(p,c)){if(h)break;p[c]=void 0}h&&!p[c]||(l=(i=b(p[c])).literal,u=f[n]=i(d),v[n]=new kn(xn,f[n]),e=d.$watch(i,function(t,e){if(e===t){if(e===u||l&&St(e,u))return;e=u}y(n,t,e),f[n]=t},l),g.push(e));break;case"&":(i=p.hasOwnProperty(c)?b(p[c]):vt)===vt&&h||(f[n]=function(t){return i(d,t)})}}),{initialChanges:v,removeWatches:g.length&&function(){for(var t=0,e=g.length;t<e;++t)g[t]()}}}}]}function kn(t,e){this.previousValue=t,this.currentValue=e}Cn.$inject=["$provide","$$sanitizeUriProvider"],kn.prototype.isFirstChange=function(){return this.previousValue===xn};var $n=/^((?:x|data)[:\-_])/i,Sn=/[:\-_]+(.)/g;function En(t){return t.replace($n,"").replace(Sn,ce)}function Tn(t,e){var n="",i=t.split(/\s+/),r=e.split(/\s+/);t:for(var o=0;o<i.length;o++){for(var s=i[o],a=0;a<r.length;a++)if(s===r[a])continue t;n+=(0<n.length?" ":"")+s}return n}function Dn(t){var e=(t=ft(t)).length;if(!(e<=1))for(;e--;){var n=t[e];(n.nodeType===Jt||n.nodeType===Qt&&""===n.nodeValue.trim())&&i.call(t,e,1)}return t}var Mn=E("$controller"),An=/^(\S+)(\s+as\s+([\w$]+))?$/;function On(){var c={},h=!1;this.has=function(t){return c.hasOwnProperty(t)},this.register=function(t,e){Yt(t,"controller"),_t(t)?gt(c,t):c[t]=e},this.allowGlobals=function(){h=!0},this.$get=["$injector","$window",function(a,l){return function(e,n,t,i){var r,o,s;if(t=!0===t,i&&wt(i)&&(o=i),wt(e)){if(!(i=e.match(An)))throw Mn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(r=i[1],o=o||i[3],!(e=c.hasOwnProperty(r)?c[r]:Gt(n.$scope,r,!0)||(h?Gt(l,r,!0):void 0)))throw Mn("ctrlreg","The controller with the name '{0}' is not registered.",r);Ut(e,r,!0)}return t?(i=(xt(e)?e[e.length-1]:e).prototype,s=Object.create(i||null),o&&u(n,o,s,r||e.name),gt(function(){var t=a.invoke(e,s,n,r);return t!==s&&(_t(t)||Ct(t))&&(s=t,o)&&u(n,o,s,r||e.name),s},{instance:s,identifier:o})):(s=a.instantiate(e,n,r),o&&u(n,o,s,r||e.name),s)};function u(t,e,n,i){if(!t||!_t(t.$scope))throw E("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}}]}function Nn(){this.$get=["$window",function(t){return ft(t.document)}]}function Pn(){this.$get=["$document","$rootScope",function(t,e){var n=t[0],i=n&&n.hidden;function r(){i=n.hidden}return t.on("visibilitychange",r),e.$on("$destroy",function(){t.off("visibilitychange",r)}),function(){return i}}]}function Rn(){this.$get=["$log",function(n){return function(t,e){n.error.apply(n,arguments)}}]}function In(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof ft&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]}var Ln="application/json",Hn={"Content-Type":Ln+";charset=utf-8"},Fn=/^\[|^\{(?!\{)/,zn={"[":/]$/,"{":/}$/},Vn=/^\)]\}',?\n/,jn=E("$http");function Wn(t){return _t(t)?w(t)?t.toISOString():et(t):t}function Bn(){this.$get=function(){return function(t){var n;return t?(n=[],N(t,function(t,e){null===t||yt(t)||(xt(t)?mt(t,function(t){n.push(o(e)+"="+o(Wn(t)))}):n.push(o(e)+"="+o(Wn(t))))}),n.join("&")):""}}}function qn(){this.$get=function(){return function(t){var e;return t?(e=[],function n(t,i,r){if(null===t||yt(t))return;xt(t)?mt(t,function(t,e){n(t,i+"["+(_t(t)?e:"")+"]")}):_t(t)&&!w(t)?N(t,function(t,e){n(t,i+(r?"":"[")+e+(r?"":"]"))}):e.push(o(i)+"="+o(Wn(t)))}(t,"",!0),e.join("&")):""}}}function Un(e,t){if(wt(e)){var n=e.replace(Vn,"").trim();if(n){t=t("Content-Type");if(t&&0===t.indexOf(Ln)||(i=(t=n).match(Fn))&&zn[i[0]].test(t))try{e=nt(n)}catch(t){throw jn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}var i;return e}function Yn(t){var e,n=Tt();function i(t,e){t&&(n[t]=n[t]?n[t]+", "+e:e)}return wt(t)?mt(t.split("\n"),function(t){e=t.indexOf(":"),i(S(kt(t.substr(0,e))),kt(t.substr(e+1)))}):_t(t)&&mt(t,function(t,e){i(S(e),kt(t))}),n}function Gn(e){var n;return function(t){return n=n||Yn(e),t?void 0===(t=n[S(t)])?null:t:n}}function Kn(e,n,i,t){return Ct(t)?t(e,n,i):(mt(t,function(t){e=t(e,n,i)}),e)}function Xn(t){return 200<=t&&t<300}function Zn(){var _=this.defaults={transformResponse:[Un],transformRequest:[function(t){return _t(t)&&"[object File]"!==v.call(t)&&"[object Blob]"!==v.call(t)&&"[object FormData]"!==v.call(t)?et(t):t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:C(Hn),put:C(Hn),patch:C(Hn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},w=!1,e=(this.useApplyAsync=function(t){return bt(t)?(w=!!t,this):w},this.interceptors=[]);this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(a,p,f,t,m,g,l,v){var y=t("$http"),u=(_.paramSerializer
1=wt(_.paramSerializer)?l.get(_.paramSerializer):_.paramSerializer,[]);function b(t){if(!_t(t))throw E("$http")("badreq","Http request configuration must be an object.  Received: {0}",t);var n,e,i,r;if(wt(v.valueOf(t.url)))return(n=gt({method:"get",transformRequest:_.transformRequest,transformResponse:_.transformResponse,paramSerializer:_.paramSerializer,jsonpCallbackParam:_.jsonpCallbackParam},t)).headers=function(t){var e,n,i,r=_.headers,o=gt({},t.headers);t:for(e in r=gt({},r.common,r[S(t.method)])){for(i in n=S(e),o)if(S(i)===n)continue t;o[e]=r[e]}return function(t,n){var i,r={};return mt(t,function(t,e){Ct(t)?null!=(i=t(n))&&(r[e]=i):r[e]=t}),r}(o,C(t))}(t),n.method=k(n.method),n.paramSerializer=wt(n.paramSerializer)?l.get(n.paramSerializer):n.paramSerializer,a.$$incOutstandingRequestCount(),e=[],i=[],r=g.resolve(n),mt(u,function(t){(t.request||t.requestError)&&e.unshift(t.request,t.requestError),(t.response||t.responseError)&&i.push(t.response,t.responseError)}),r=o(r,e),(r=o(r=r.then(function(t){var n=t.headers,e=Kn(t.data,Gn(n),void 0,t.transformRequest);yt(e)&&mt(n,function(t,e){"content-type"===S(e)&&delete n[e]});yt(t.withCredentials)&&!yt(_.withCredentials)&&(t.withCredentials=_.withCredentials);return function(r,t){var o,e,s=g.defer(),n=s.promise,i=r.headers,a="jsonp"===S(r.method),l=r.url;a?l=v.getTrustedResourceUrl(l):wt(l)||(l=v.valueOf(l));l=function(t,e){0<e.length&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(l,r.paramSerializer(r.params)),a&&(l=function(t,e){if(/[&?][^=]+=JSON_CALLBACK/.test(t))throw jn("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',t);if(new RegExp("[&?]"+e+"=").test(t))throw jn("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',e,t);return t+=(-1===t.indexOf("?")?"?":"&")+e+"=JSON_CALLBACK"}(l,r.jsonpCallbackParam));b.pendingRequests.push(r),n.then(d,d),!r.cache&&!_.cache||!1===r.cache||"GET"!==r.method&&"JSONP"!==r.method||(o=_t(r.cache)?r.cache:_t(_.cache)?_.cache:y);o&&(bt(e=o.get(l))?q(e)?e.then(h,h):xt(e)?c(e[1],e[0],C(e[2]),e[3]):c(e,200,{},"OK"):o.put(l,n));yt(e)&&((a=rr(r.url)?f()[r.xsrfCookieName||_.xsrfCookieName]:void 0)&&(i[r.xsrfHeaderName||_.xsrfHeaderName]=a),p(r.method,l,t,function(t,e,n,i){o&&(Xn(t)?o.put(l,[t,e,Yn(n),i]):o.remove(l));function r(){c(e,t,n,i)}w?m.$applyAsync(r):(r(),m.$$phase||m.$apply())},i,r.timeout,r.withCredentials,r.responseType,u(r.eventHandlers),u(r.uploadEventHandlers)));return n;function u(t){var e;if(t)return e={},mt(t,function(n,t){e[t]=function(t){function e(){n(t)}w?m.$applyAsync(e):m.$$phase?e():m.$apply(e)}}),e}function c(t,e,n,i){(Xn(e=-1<=e?e:0)?s.resolve:s.reject)({data:t,status:e,headers:Gn(n),config:r,statusText:i})}function h(t){c(t.data,t.status,C(t.headers()),t.statusText)}function d(){var t=b.pendingRequests.indexOf(r);-1!==t&&b.pendingRequests.splice(t,1)}}(t,e).then(s,s)}),i)).finally(function(){a.$$completeOutstandingRequest(vt)});throw E("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",t.url);function o(t,e){for(var n=0,i=e.length;n<i;){var r=e[n++],o=e[n++];t=t.then(r,o)}return e.length=0,t}function s(t){var e=gt({},t);return e.data=Kn(t.data,t.headers,t.status,n.transformResponse),Xn(t.status)?e:g.reject(e)}}return mt(e,function(t){u.unshift(wt(t)?l.get(t):l.invoke(t))}),b.pendingRequests=[],function(){mt(arguments,function(n){b[n]=function(t,e){return b(gt({},e||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){mt(arguments,function(i){b[i]=function(t,e,n){return b(gt({},n||{},{method:i,url:t,data:e}))}})}("post","put","patch"),b.defaults=_,b}]}function Qn(){this.$get=function(){return function(){return new x.XMLHttpRequest}}}function Jn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,i){return x=i,C=(w=t).defer,k=e,$=n[0],function(t,i,e,r,n,o,s,a,l,u){if(i=i||w.url(),"jsonp"===S(t))var c=k.createCallback(i),h=(f=c,m=function(t,e){var n=200===t&&k.getResponse(c);_(r,t,n,"",e),k.removeCallback(c)},p=(p=i).replace("JSON_CALLBACK",f),g=$.createElement("script"),v=null,g.type="text/javascript",g.src=p,g.async=!0,v=function(t){g.removeEventListener("load",v),g.removeEventListener("error",v),$.body.removeChild(g),g=null;var e=-1,n="unknown";t&&(n=(t="load"!==t.type||k.wasCalled(f)?t:{type:"error"}).type,e="error"===t.type?404:200),m&&m(e,n)},g.addEventListener("load",v),g.addEventListener("error",v),$.body.appendChild(g),v);else{var d=x(t,i),p=(d.open(t,i,!0),mt(n,function(t,e){bt(t)&&d.setRequestHeader(e,t)}),d.onload=function(){var t=d.statusText||"",e="response"in d?d.response:d.responseText,n=1223===d.status?204:d.status;0===n&&(n=e?200:"file"===ir(i).protocol?404:0),_(r,n,e,d.getAllResponseHeaders(),t)},function(){_(r,-1,null,null,"")});if(d.onerror=p,d.onabort=p,d.ontimeout=p,mt(l,function(t,e){d.addEventListener(e,t)}),mt(u,function(t,e){d.upload.addEventListener(e,t)}),s&&(d.withCredentials=!0),a)try{d.responseType=a}catch(t){if("json"!==a)throw t}d.send(yt(e)?null:e)}var p,f,m,g,v,y;function b(){h&&h(),d&&d.abort()}function _(t,e,n,i,r){bt(y)&&C.cancel(y),h=d=null,t(e,n,i,r)}0<o?y=C(b,o):q(o)&&o.then(b)};var w,x,C,k,$}]}var ti=b.$interpolateMinErr=E("$interpolate");function ei(){var C="{{",k="}}";this.startSymbol=function(t){return t?(C=t,this):C},this.endSymbol=function(t){return t?(k=t,this):k},this.$get=["$parse","$exceptionHandler","$sce",function(g,v,y){var b=C.length,_=k.length,e=new RegExp(C.replace(/./g,t),"g"),n=new RegExp(k.replace(/./g,t),"g");function t(t){return"\\\\\\"+t}function w(t){return t.replace(e,C).replace(n,k)}function x(t,e,n,i){var r=t.$watch(function(t){return r(),i(t)},e,n);return r}function i(r,t,e,i){var n;if(!r.length||-1===r.indexOf(C))return t||((n=$(w(r))).exp=r,n.expressions=[],n.$$watchDelegate=x),n;i=!!i;for(var o,s,a,l,u=0,c=[],h=[],d=r.length,p=[],f=[];u<d;){if(-1===(s=r.indexOf(C,u))||-1===(o=r.indexOf(k,s+b))){u!==d&&p.push(w(r.substring(u)));break}u!==s&&p.push(w(r.substring(u,s))),s=r.substring(s+b,o),c.push(s),h.push(g(s,m)),u=o+_,f.push(p.length),p.push("")}return e&&1<p.length&&ti.throwNoconcat(r),!t||c.length?(a=function(t){for(var e=0,n=c.length;e<n;e++){if(i&&yt(t[e]))return;p[f[e]]=t[e]}return p.join("")},l=function(t){return e?y.getTrusted(e,t):y.valueOf(t)},gt(function(t){var e=0,n=c.length,i=new Array(n);try{for(;e<n;e++)i[e]=h[e](t);return a(i)}catch(t){v(ti.interr(r,t))}}
1,{exp:r,expressions:c,$$watchDelegate:function(i,r){var o;return i.$watchGroup(h,function(t,e){var n=a(t);Ct(r)&&r.call(this,n,t!==e?o:n,i),o=n})}})):void 0;function m(t){try{return t=l(t),i&&!bt(t)?t:Xt(t)}catch(t){v(ti.interr(r,t))}}}return i.startSymbol=function(){return C},i.endSymbol=function(){return k},i}]}function ni(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(p,f,m,g,v){var y={};function t(t,e,n,i){var r=4<arguments.length,o=r?Lt(arguments,4):[],s=f.setInterval,a=f.clearInterval,l=0,u=bt(i)&&!i,c=(u?g:m).defer(),h=c.promise;return n=bt(n)?n:0,h.$$intervalId=s(function(){u?v.defer(d):p.$evalAsync(d),c.notify(l++),0<n&&n<=l&&(c.resolve(l),a(h.$$intervalId),delete y[h.$$intervalId]),u||p.$apply()},e),y[h.$$intervalId]=c,h;function d(){r?t.apply(null,o):t(l)}}return t.cancel=function(t){return!!(t&&t.$$intervalId in y)&&(y[t.$$intervalId].promise.catch(vt),y[t.$$intervalId].reject("canceled"),f.clearInterval(t.$$intervalId),delete y[t.$$intervalId],!0)},t}]}ti.throwNoconcat=function(t){throw ti("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",t)},ti.interr=function(t,e){return ti("interr","Can't interpolate: {0}\n{1}",t,e.toString())};function ii(){this.$get=function(){var r=b.callbacks,o={};function s(t){function e(t){e.data=t,e.called=!0}return e.id=t,e}return{createCallback:function(t){var e="_"+(r.$$counter++).toString(36),n="angular.callbacks."+e,i=s(e);return o[n]=r[e]=i,n},wasCalled:function(t){return o[t].called},getResponse:function(t){return o[t].data},removeCallback:function(t){delete r[o[t].id],delete o[t]}}}}var ri=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,oi={http:80,https:443,ftp:21},si=E("$location");function ai(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=ut(e[n]);return e.join("/")}function li(t,e){t=ir(t);e.$$protocol=t.protocol,e.$$host=t.hostname,e.$$port=y(t.port)||oi[t.protocol]||null}var ui=/^\s*[\\/]{2,}/;function ci(t,e){if(ui.test(t))throw si("badpath",'Invalid url "{0}".',t);var n="/"!==t.charAt(0),t=ir(t=n?"/"+t:t);e.$$path=decodeURIComponent(n&&"/"===t.pathname.charAt(0)?t.pathname.substring(1):t.pathname),e.$$search=at(t.search),e.$$hash=decodeURIComponent(t.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function hi(t,e){return t.slice(0,e.length)===e}function di(t,e){if(hi(e,t))return e.substr(t.length)}function pi(t){var e=t.indexOf("#");return-1===e?t:t.substr(0,e)}function fi(t){return t.replace(/(#.+)|#$/,"$1")}function mi(i,r,o){this.$$html5=!0,o=o||"",li(i,this),this.$$parse=function(t){var e=di(r,t);if(!wt(e))throw si("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,r);ci(e,this),this.$$path||(this.$$path="/"),this.$$compose()}
1,this.$$compose=function(){var t=lt(this.$$search),e=this.$$hash?"#"+ut(this.$$hash):"";this.$$url=ai(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=r+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(t,e){var n;return e&&"#"===e[0]?(this.hash(e.slice(1)),!0):(bt(e=di(i,t))?(n=e,n=o&&bt(e=di(o,e))?r+(di("/",e)||e):i+n):bt(e=di(r,t))?n=r+e:r===t+"/"&&(n=r),n&&this.$$parse(n),!!n)}}function gi(i,r,o){li(i,this),this.$$parse=function(t){var e,n=di(i,t)||di(r,t);yt(n)||"#"!==n.charAt(0)?this.$$html5?e=n:(e="",yt(n)&&(i=t,this.replace())):yt(e=di(o,n))&&(e=n),ci(e,this),this.$$path=function(t,e,n){var i=/^\/[A-Z]:(\/.*)/;hi(e,n)&&(e=e.replace(n,""));if(i.exec(e))return t;return(n=i.exec(t))?n[1]:t}(this.$$path,e,i),this.$$compose()},this.$$compose=function(){var t=lt(this.$$search),e=this.$$hash?"#"+ut(this.$$hash):"";this.$$url=ai(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=i+(this.$$url?o+this.$$url:""),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(t,e){return pi(i)===pi(t)&&(this.$$parse(t),!0)}}function vi(i,r,o){this.$$html5=!0,gi.apply(this,arguments),this.$$parseLinkUrl=function(t,e){var n;return e&&"#"===e[0]?(this.hash(e.slice(1)),!0):(i===pi(t)?n=t:(e=di(r,t))?n=i+o+e:r===t+"/"&&(n=r),n&&this.$$parse(n),!!n)}
1,this.$$compose=function(){var t=lt(this.$$search),e=this.$$hash?"#"+ut(this.$$hash):"";this.$$url=ai(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=i+o+this.$$url,this.$$urlUpdatedByLocation=!0}}var yi={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:bi("$$absUrl"),url:function(t){var e;return yt(t)?this.$$url:(!(e=ri.exec(t))[1]&&""!==t||this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this)},protocol:bi("$$protocol"),host:bi("$$host"),port:bi("$$port"),path:_i("$$path",function(t){return"/"===(t=null!==t?t.toString():"").charAt(0)?t:"/"+t}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(wt(n)||_(n))n=n.toString(),this.$$search=at(n);else{if(!_t(n))throw si("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");mt(n=X(n,{}),function(t,e){null==t&&delete n[e]}),this.$$search=n}break;default:yt(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:_i("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};function bi(t){return function(){return this[t]}}function _i(e,n){return function(t){return yt(t)?this[e]:(this[e]=n(t),this.$$compose(),this)}}function wi(){var m="!",g={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return bt(t)?(m=t,this):m},this.html5Mode=function(t){return Pt(t)?(g.enabled=t,this):_t(t)?(Pt(t.enabled)&&(g.enabled=t.enabled),Pt(t.requireBase)&&(g.requireBase=t.requireBase),(Pt(t.rewriteLinks)||wt(t.rewriteLinks))&&(g.rewriteLinks=t.rewriteLinks),this):g},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(s,a,e,r,o){var t,n,i=a.baseHref(),l=a.url();if(g.enabled){if(!i&&g.requireBase)throw si("nobase","$location in HTML5 mode requires a <base> tag to be present!");n=l.substring(0,l.indexOf("/",l.indexOf("//")+2))+(i||"/"),t=e.history?mi:vi}else n=pi(l),t=gi;var u,c=(i=n).substr(0,pi(i).lastIndexOf("/")+1),h=((u=new t(n,c,"#"+m)).$$parseLinkUrl(l,l),u.$$state=a.state(),/^\s*(javascript|mailto):/i);function d(t,e,n){var i=u.url(),r=u.$$state;try{a.url(t,e,n),u.$$state=a.state()}catch(t){throw u.url(i),u.$$state=r,t}}r.on("click",function(t){var e=g.rewriteLinks;if(e&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(var n,i=ft(t.target);"a"!==$t(i[0]);
1)if(i[0]===r[0]||!(i=i.parent())[0])return;wt(e)&&yt(i.attr(e))||(e=i.prop("href"),n=i.attr("href")||i.attr("xlink:href"),_t(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=ir(e.animVal).href),h.test(e))||!e||i.attr("target")||t.isDefaultPrevented()||u.$$parseLinkUrl(e,n)&&(t.preventDefault(),u.absUrl()!==a.url())&&(s.$apply(),o.angular["ff-684208-preventDefault"]=!0)}}),fi(u.absUrl())!==fi(l)&&a.url(u.absUrl(),!0);var p=!0;return a.onUrlChange(function(i,r){hi(i,c)?(s.$evalAsync(function(){var t,e=u.absUrl(),n=u.$$state;i=fi(i),u.$$parse(i),u.$$state=r,t=s.$broadcast("$locationChangeStart",i,e,r,n).defaultPrevented,u.absUrl()===i&&(t?(u.$$parse(e),u.$$state=n,d(e,!1,n)):(p=!1,f(e,n)))}),s.$$phase||s.$digest()):o.location.href=i}),s.$watch(function(){var n,t,i,r,o;(p||u.$$urlUpdatedByLocation)&&(u.$$urlUpdatedByLocation=!1,n=fi(a.url()),t=fi(u.absUrl()),i=a.state(),r=u.$$replace,o=n!==t||u.$$html5&&e.history&&i!==u.$$state,p||o)&&(p=!1,s.$evalAsync(function(){var t=u.absUrl(),e=s.$broadcast("$locationChangeStart",t,n,u.$$state,i).defaultPrevented;u.absUrl()===t&&(e?(u.$$parse(n),u.$$state=i):(o&&d(t,r,i===u.$$state?null:u.$$state),f(n,i)))})),u.$$replace=!1}),u;function f(t,e){s.$broadcast("$locationChangeSuccess",u.absUrl(),t,u.$$state,e)}}]}function xi(){var i=!0,o=this;this.debugEnabled=function(t){return bt(t)?(i=t,this):i},this.$get=["$window",function(e){var t,r=Mt||/\bEdge\//.test(e.navigator&&e.navigator.userAgent);return{log:n("log"),info:n("info"),warn:n("warn"),error:n("error"),debug:(t=n("debug"),function(){i&&t.apply(o,arguments)})};function n(t){var n=e.console||{},i=n[t]||n.log||vt,t=!1;try{t=!!i.apply}catch(t){}return t?function(){var e=[];return mt(arguments,function(t){e.push(((t=t)instanceof Error&&(t.stack&&r?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t))}),i.apply(n,e)}:function(t,e){i(t,null==e?"":e)}}}]}mt([vi,gi,mi],function(e){e.prototype=Object.create(yi),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e===mi&&this.$$html5)return this.$$state=yt(t)?null:t,this.$$urlUpdatedByLocation=!0,this;throw si("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API")}});var Ci=E("$parse"),ki={}.constructor.prototype.valueOf;function $i(t){return t+""}function d(t,e){this.lexer=t,this.options=e}var Si=Tt(),Ei=(mt("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){Si[t]=!0}),{n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'}),Ti=function(t){this.options=t};Ti.prototype={constructor:Ti,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e,n,i,r,o,s=this.text.charAt(this.index);'"'===s||"'"===s?this.readString(s):this.isNumber(s)||"."===s&&this.isNumber(this.peek())?this.readNumber():this.isIdentifierStart(this.peekMultichar())?this.readIdent():this.is(s,"(){}[].,;:?")?(this.tokens.push({index:this.index,text:s}),this.index++):this.isWhitespace(s)?this.index++:(n=(e=s+this.peek())+this.peek(2),o=Si[s],i=Si[e],r=Si[n],o||i||r?(this.tokens.push({index:this.index,text:o=r?n:i?e:s,operator:!0}),this.index+=o.length):this.throwError("Unexpected next character ",this.index,this.index+1))}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){t=t||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t,e,n=this.text.charAt(this.index),i=this.peek();return i&&(t=n.charCodeAt(0),e=i.charCodeAt(0),55296<=t)&&t<=56319&&56320<=e&&e<=57343?n+i:n},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;e=bt(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw Ci("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,e,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=S(this.text.charAt(this.index));if("."===n||this.isNumber(n))t+=n;else{var i=this.peek();if("e"===n&&this.isExpOperator(i))t+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"===t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){for(var e=this.index,n=(this.index++,""),i=t,r=!1;this.index<this.text.length;){var o,s=this.text.charAt(this.index);if(i+=s,r)"u"===s?((o=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+o+"]"),this.index+=4,n+=String.fromCharCode(parseInt(o,16))):n+=Ei[s]||s,r=!1;else if("\\"===s)r=!0;else{if(s===t)return this.index++,void this.tokens.push({index:e,text:i,constant:!0,value:n});n+=s}this.index++}this.throwError("Unterminated quote",e)}};function Di(t,e){return void 0!==t?t:e}function Mi(t,e){return void 0===t?e:void 0===e?t:t+e}function l(t,e){var n,i,r;switch(t.type){case d.Program:n=!0,mt(t.body,function(t){l(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;
1case d.Literal:t.constant=!0,t.toWatch=[];break;case d.UnaryExpression:l(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case d.BinaryExpression:l(t.left,e),l(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case d.LogicalExpression:l(t.left,e),l(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case d.ConditionalExpression:l(t.test,e),l(t.alternate,e),l(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case d.Identifier:t.constant=!1,t.toWatch=[t];break;case d.MemberExpression:l(t.object,e),t.computed&&l(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case d.CallExpression:r=!!t.filter&&(r=t.callee.name,!e(r).$stateful),n=r,i=[],mt(t.arguments,function(t){l(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=r?i:[t];break;case d.AssignmentExpression:l(t.left,e),l(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case d.ArrayExpression:n=!0,i=[],mt(t.elements,function(t){l(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=i;break;case d.ObjectExpression:n=!0,i=[],mt(t.properties,function(t){l(t.value,e),n=n&&t.value.constant&&!t.computed,t.value.constant||i.push.apply(i,t.value.toWatch),t.computed&&(l(t.key,e),t.key.constant||i.push.apply(i,t.key.toWatch))}),t.constant=n,t.toWatch=i;break;case d.ThisExpression:case d.LocalsExpression:t.constant=!1,t.toWatch=[]}}function Ai(t){var e;return 1===t.length&&(1!==(e=(t=t[0].expression).toWatch).length||e[0]!==t)?e:void 0}function Oi(t){return t.type===d.Identifier||t.type===d.MemberExpression}function Ni(t){if(1===t.body.length&&Oi(t.body[0].expression))return{type:d.AssignmentExpression,left:t.body[0].expression,right:{type:d.NGValueParameter},operator:"="}}function Pi(t){this.$filter=t}function Ri(t){this.$filter=t}function Ii(t,e,n){this.ast=new d(t,n),this.astCompiler=new(n.csp?Ri:Pi)(e)}function Li(t){return Ct(t.valueOf)?t.valueOf():ki.call(t)}function Hi(){var n,i,f=Tt(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){r[t]=e},this.setIdentifierFns=function(t,e){return n=t,i=e,this},this.$get=["$filter",function(s){var a={csp:Z().noUnsafeEval,literals:X(r),isIdentifierStart:Ct(n)&&n,isIdentifierContinue:Ct(i)&&i};return function(t,e){var n,i,r;switch(typeof t){case"string":var o;return t=t.trim(),(n=f[r=t])||(":"===t.charAt(0)&&":"===t.charAt(1)&&(i=!0,t=t.substring(2)),o=new Ii(new Ti(a),s,a),(n=o.parse(t)).constant?n.$$watchDelegate=h:i?(n.oneTime=!0,n.$$watchDelegate=l):n.inputs&&(n.$$watchDelegate=u),f[r]=n),p(n,e);case"function":return p(t,e);default:return p(vt,e)}};function d(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Li(t))&&!n)&&(t===e||t!=t&&e!=e)}function u(t,e,n,o,i){var s,r,a=o.inputs;if(1===a.length)return r=d,a=a[0],t.$watch(function(t){var e=a(t);return d(e,r,o.literal)||(s=o(t,void 0,void 0,[e]),r=e&&Li(e)),s},e,n,i);for(var l=[],u=[],c=0,h=a.length;c<h;c++)l[c]=d,u[c]=null;return t.$watch(function(t){for(var e=!1,n=0,i=a.length;n<i;n++){var r=a[n](t);(e=e||!d(r,l[n],o.literal))&&(l[n]=(u[n]=r)&&Li(r))}return s=e?o(t,void 0,void 0,u):s},e,n,i)}function l(t,i,e,n,r){var o,s=n.literal?c:bt,a=n.inputs?u(t,l,e,n,r):t.$watch(function(t){return n(t)},l,e);return a;function l(t,e,n){o=t,Ct(i)&&i(t,e,n),s(t)&&n.$$postDigest(function(){s(o)&&a()})}}function c(t){var e=!0;return mt(t,function(t){bt(t)||(e=!1)}),e}function h(t,e,n,i){var r=t.$watch(function(t){return r(),i(t)},e,n);return r}function p(r,o){var t,s,a,e;return o?(t=r.$$watchDelegate,s=!1,a=r.literal?c:bt,(e=r.oneTime?function(t,e,n,i){return n=s&&i?i[0]:r(t,e,n,i),i=o(n,t,e),a(n)?i:n}:function(t,e,n,i){return n=s&&i?i[0]:r(t,e,n,i),o(n,t,e)}).literal=r.literal,e.oneTime=r.oneTime,s=!r.inputs,t&&t!==u?(e.$$watchDelegate=t,e.inputs=r.inputs):o.$stateful||(e.$$watchDelegate=u,e.inputs=r.inputs||[r]),e):r}}]}function Fi(){var n=!0;this.$get=["$rootScope","$exceptionHandler",function(e,t){return Vi(function(t){e.$evalAsync(t)},t,n)}],this.errorOnUnhandledRejections=function(t){return bt(t)?(n=t,this):n}}function zi(){var n=!0;this.$get=["$browser","$exceptionHandler",function(e,t){return Vi(function(t){e.defer(t)},t,n)}],this.errorOnUnhandledRejections=function(t){return bt(t)?(n=t,this):n}}function Vi(a,s,l){var n=E("$q",TypeError),u=0,i=[];function r(){return new t}function t(){var e=this.promise=new o;this.resolve=function(t){d(e,t)},this.reject=function(t){p(e,t)},this.notify=function(t){m(e,t)}}function o(){this.$$state={status:0}}function c(){for(;!u&&i.length;){var t,e=i.shift();e.pur||(e.pur=!0,t="Possibly unhandled rejection: "+ne(e.value),e.value instanceof Error?s(e.value,t):s(t))}}function h(s){!l||s.pending||2!==s.status||s.pur||(0===u&&0===i.length&&a(c),i.push(s)),!s.processScheduled&&s.pending&&(s.processScheduled=!0,++u,a(function(){var t,e,n=s,i=n.pending;n.processScheduled=!1,n.pending=void 0;try{for(var r=0,o=i.length;r<o;++r){n.pur=!0,e=i[r][0],t=i[r][n.status];try{Ct(t)?d(e,t(n.value)):(1===n.status?d:p)(e,n.value)}catch(t){p(e,t)}}}finally{--u,l&&0===u&&a(c)}}))}function d(t,e){t.$$state.status||(e===t?f(t,n("qcycle","Expected promise to be resolved with value other than 
1itself '{0}'",e)):function e(n,t){var i;var r=!1;try{(_t(t)||Ct(t))&&(i=t.then),Ct(i)?(n.$$state.status=-1,i.call(t,o,s,a)):(n.$$state.value=t,n.$$state.status=1,h(n.$$state))}catch(t){s(t)}function o(t){r||(r=!0,e(n,t))}function s(t){r||(r=!0,f(n,t))}function a(t){m(n,t)}}(t,e))}function p(t,e){t.$$state.status||f(t,e)}function f(t,e){t.$$state.value=e,t.$$state.status=2,h(t.$$state)}function m(t,r){var o=t.$$state.pending;t.$$state.status<=0&&o&&o.length&&a(function(){for(var t,e,n=0,i=o.length;n<i;n++){e=o[n][0],t=o[n][3];try{m(e,Ct(t)?t(r):r)}catch(t){s(t)}}})}function g(t){var e=new o;return p(e,t),e}function v(t,e,n){var i=null;try{Ct(n)&&(i=n())}catch(t){return g(t)}return q(i)?i.then(function(){return e(t)},g):e(t)}function y(t,e,n,i){var r=new o;return d(r,t),r.then(e,n,i)}gt(o.prototype,{then:function(t,e,n){var i;return yt(t)&&yt(e)&&yt(n)?this:(i=new o,this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,t,e,n]),0<this.$$state.status&&h(this.$$state),i)},catch:function(t){return this.then(null,t)},finally:function(e,t){return this.then(function(t){return v(t,b,e)},function(t){return v(t,g,e)},t)}});var b=y;function e(t){var e;if(Ct(t))return e=new o,t(function(t){d(e,t)},function(t){p(e,t)}),e;throw n("norslvr","Expected resolverFn, got '{0}'",t)}return e.prototype=o.prototype,e.defer=r,e.reject=g,e.when=y,e.resolve=b,e.all=function(t){var n=new o,i=0,r=xt(t)?[]:{};return mt(t,function(t,e){i++,y(t).then(function(t){r[e]=t,--i||d(n,r)},function(t){p(n,t)})}),0===i&&d(n,r),n},e.race=function(t){var e=r();return mt(t,function(t){y(t).then(e.resolve,e.reject)}),e.promise},e}function ji(){this.$get=["$window","$timeout",function(t,n){var i=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,t=!!i,e=t?function(t){var e=i(t);return function(){r(e)}}:function(t){var e=n(t,16.66,!1);return function(){n.cancel(e)}};return e.supported=t,e}]}function Wi(){var C=10,k=E("$rootScope"),$=null,S=null;this.digestTtl=function(t){return C=arguments.length?t:C},this.$get=["$exceptionHandler","$parse","$browser",function(d,p,f){function r(t){t.currentScope.$$destroyed=!0}function o(){this.$id=I(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,(this.$root=this).$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}o.prototype={constructor:o,$new:function(t,e){var n;function i(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=I(),this.$$ChildScope=null}return e=e||this,t?(n=new o).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=(i.prototype=this,i)),n=new this.$$ChildScope),n.$parent=e,n.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=n,e.$$childTail=n):e.$$childHead=e.$$childTail=n,!t&&e===this||n.$on("$destroy",r),n},$watch:function(t,e,n,i){var r,o,s,a=p(t);
1return a.$$watchDelegate?a.$$watchDelegate(this,e,n,a,t):(o=(r=this).$$watchers,s={fn:e,last:w,get:a,exp:i||t,eq:!!n},$=null,Ct(e)||(s.fn=vt),o||((o=r.$$watchers=[]).$$digestWatchIndex=-1),o.unshift(s),o.$$digestWatchIndex++,l(this,1),function(){var t=Rt(o,s);0<=t&&(l(r,-1),t<o.$$digestWatchIndex)&&o.$$digestWatchIndex--,$=null})},$watchGroup:function(t,i){var e,r=new Array(t.length),o=new Array(t.length),s=[],a=this,l=!1,n=!0;return t.length?1===t.length?this.$watch(t[0],function(t,e,n){o[0]=t,r[0]=e,i(o,t===e?o:r,n)}):(mt(t,function(t,n){t=a.$watch(t,function(t,e){o[n]=t,r[n]=e,l||(l=!0,a.$evalAsync(u))});s.push(t)}),function(){for(;s.length;)s.shift()()}):(e=!0,a.$evalAsync(function(){e&&i(o,o,a)}),function(){e=!1});function u(){l=!1,n?(n=!1,i(o,o,a)):i(o,r,a)}},$watchCollection:function(t,n){e.$stateful=!0;var s,a,i,r=this,o=1<n.length,l=0,t=p(t,e),u=[],c={},h=!0,d=0;function e(t){var e,n,i,r;if(!yt(s=t)){if(_t(s))if(P(s)){a!==u&&(d=(a=u).length=0,l++),e=s.length,d!==e&&(l++,a.length=d=e);for(var o=0;o<e;o++)r=a[o],i=s[o],r!=r&&i!=i||r===i||(l++,a[o]=i)}else{for(n in a!==c&&(a=c={},d=0,l++),e=0,s)W.call(s,n)&&(e++,i=s[n],r=a[n],n in a?r!=r&&i!=i||r===i||(l++,a[n]=i):(d++,a[n]=i,l++));if(e<d)for(n in l++,a)W.call(s,n)||(d--,delete a[n])}else a!==s&&(a=s,l++);return l}}return this.$watch(t,function(){if(h?(h=!1,n(s,s,r)):n(s,i,r),o)if(_t(s))if(P(s)){i=new Array(s.length);for(var t=0;t<s.length;t++)i[t]=s[t]}else for(var e in i={},s)W.call(s,e)&&(i[e]=s[e]);else i=s})},$digest:function(){var t,e,n,i,r,o,s,a=C,l=[];b("$digest"),f.$$checkUrlChange(),this===m&&null!==S&&(f.defer.cancel(S),x()),$=null;do{for(var u=!1,c=this,h=0;h<g.length;h++){try{(0,(s=g[h]).fn)(s.scope,s.locals)}catch(t){d(t)}$=null}g.length=0;t:do{if(i=c.$$watchers)for(i.$$digestWatchIndex=i.length;i.$$digestWatchIndex--;)try{if(t=i[i.$$digestWatchIndex])if((e=(0,t.get)(c))===(n=t.last)||(t.eq?St(e,n):T(e)&&T(n))){if(t===$){u=!1;break t}}else u=!0,($=t).last=t.eq?X(e,null):e,(0,t.fn)(e,n===w?e:n,c),a<5&&(l[o=4-a]||(l[o]=[]),l[o].push({msg:Ct(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:e,oldVal:n}))}catch(t){d(t)}if(!(r=c.$$watchersCount&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(r=c.$$nextSibling);)c=c.$parent}while(c=r);if((u||g.length)&&!a--)throw _(),k("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",C,l)}while(u||g.length);for(_();y<v.length;)try{v[y++]()}catch(t){d(t)}v.length=y=0,f.$$checkUrlChange()},$destroy:function(){if(!this.$$destroyed){var t,e=this.$parent;for(t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===m&&f.$$applicationDestroyed(),l(this,-this.$$watchersCount),this.$$listenerCount)s(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=vt,this.$on=this.$watch=this.$watchGroup=function(){return vt},this.$$listeners={},this.$$nextSibling=null,!function t(e){9===Mt&&(e.$$childHead&&t(e.$$childHead),e.$$nextSibling)&&t(e.$$nextSibling),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}(this)}},$eval:function(t,e){return p(t)(this,e)},$evalAsync:function(t,e){m.$$phase||g.length||f.defer(function(){g.length&&m.$digest()}),g.push({scope:this,fn:p(t),locals:e})},$$postDigest:function(t){v.push(t)},$apply:function(t){try{b("$apply");try{return this.$eval(t)}finally{_()}}catch(t){d(t)}finally{try{m.$digest()}catch(t){throw d(t),t}}},$applyAsync:function(t){var e=this;t&&n.push(function(){e.$eval(t)}),t=p(t),null===S&&(S=f.defer(function(){m.$apply(x)}))},$on:function(e,n){for(var i=this.$$listeners[e],t=(i||(this.$$listeners[e]=i=[]),i.push(n),this);t.$$listenerCount[e]||(t.$$listenerCount[e]=0),t.$$listenerCount[e]++,t=t.$parent;);var r=this;return function(){var t=i.indexOf(n);-1!==t&&(i[t]=null,s(r,1,e))}},$emit:function(t,e){var n,i,r,o=[],s=this,a=!1,l={name:t,targetScope:s,stopPropagation:function(){a=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1}
1,u=J([l],arguments,1);do{for(n=s.$$listeners[t]||o,l.currentScope=s,i=0,r=n.length;i<r;i++)if(n[i])try{n[i].apply(null,u)}catch(t){d(t)}else n.splice(i,1),i--,r--;if(a)return l.currentScope=null,l}while(s=s.$parent);return l.currentScope=null,l},$broadcast:function(t,e){var n=this,i=this,r={name:t,targetScope:this,preventDefault:function(){r.defaultPrevented=!0},defaultPrevented:!1};if(this.$$listenerCount[t]){for(var o,s,a,l=J([r],arguments,1);n=i;){for(s=0,a=(o=(r.currentScope=n).$$listeners[t]||[]).length;s<a;s++)if(o[s])try{o[s].apply(null,l)}catch(t){d(t)}else o.splice(s,1),s--,a--;if(!(i=n.$$listenerCount[t]&&n.$$childHead||n!==this&&n.$$nextSibling))for(;n!==this&&!(i=n.$$nextSibling);)n=n.$parent}r.currentScope=null}return r}};var m=new o,g=m.$$asyncQueue=[],v=m.$$postDigestQueue=[],n=m.$$applyAsyncQueue=[],y=0;return m;function b(t){if(m.$$phase)throw k("inprog","{0} already in progress",m.$$phase);m.$$phase=t}function _(){m.$$phase=null}function l(t,e){for(;t.$$watchersCount+=e,t=t.$parent;);}function s(t,e,n){for(;t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n],t=t.$parent;);}function w(){}function x(){for(;n.length;)try{n.shift()()}catch(t){d(t)}S=null}}]}function Bi(){var i=/^\s*(https?|ftp|mailto|tel|file):/,r=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return bt(t)?(i=t,this):i},this.imgSrcSanitizationWhitelist=function(t){return bt(t)?(r=t,this):r},this.$get=function(){return function(t,e){var e=e?r:i,n=ir(t).href;return""===n||n.match(e)?t:"unsafe:"+n}}}d.Program="Program",d.ExpressionStatement="ExpressionStatement",d.AssignmentExpression="AssignmentExpression",d.ConditionalExpression="ConditionalExpression",d.LogicalExpression="LogicalExpression",d.BinaryExpression="BinaryExpression",d.UnaryExpression="UnaryExpression",d.CallExpression="CallExpression",d.MemberExpression="MemberExpression",d.Identifier="Identifier",d.Literal="Literal",d.ArrayExpression="ArrayExpression",d.Property="Property",d.ObjectExpression="ObjectExpression",d.ThisExpression="ThisExpression",d.LocalsExpression="LocalsExpression",d.NGValueParameter="NGValueParameter",d.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var t=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:d.Program,body:t}},expressionStatement:function(){return{type:d.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();if(this.expect("=")){if(!Oi(t))throw Ci("lval","Trying to assign a value to a non l-value");t={type:d.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:d.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:d.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:d.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:d.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:d.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:d.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:d.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:d.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=X(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:d.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:d.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:d.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:d.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],t={type:d.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return t},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)for(;t.push(this.filterChain()),this.expect(","););return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:d.Identifier,name:t.text}},constant:function(){return{type:d.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)for(;!this.peek("]")&&(t.push(this.expression()),this.expect(",")););return this.consume("]"),{type:d.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)for(;!this.peek("}")&&(t={type:d.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t),this.expect(",")););return this.consume("}"),{type:d.ObjectExpression,properties:e}},throwError:function(t,e){throw Ci("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw Ci("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw Ci("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,i){return this.peekAhead(0,t,e,n,i)},peekAhead:function(t,e,n,i,r){if(this.tokens.length>t){var t=this.tokens[t],o=t.text;if(o===e||o===n||o===i||o===r||!e&&!n&&!i&&!r)return t}return!1},expect:function(t,e,n,i){t=this.peek(t,e,n,i);return!!t&&(this.tokens.shift(),t)},selfReferential:{this:{type:d.ThisExpression},$locals:{type:d.LocalsExpression}}},Pi.prototype={compile:function(t){var r=this,e=(this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},l(t,r.$filter),""),n=(this.stage="assign",(n=Ni(t))&&(this.state.computing="assign",i=this.nextId(),this.recurse(n,i),this.return_(i),e="fn.assign="+this.generateFunction("assign","s,v,l")),Ai(t.body)),i=(r.stage="inputs",mt(n,function(t,e){var n="fn"+e,i=(r.state[n]={vars:[],body:[],own:{}},r.state.computing=n,r.nextId());r.recurse(t,i),r.return_(i),r.state.inputs.push(n),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(t),'"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+e+this.watchFns()+"return fn;"),n=new Function("$filter","getStringValue","ifDefined","plus",i)(this.$filter,$i,Di,Mi);return this.state=this.stage=void 0,n},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return mt(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var n=[],i=this;return mt(this.state.filters,function(t,e){n.push(t+"=$filter("+i.escape(e)+")")}),n.length?"var "+n.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(n,e,t,i,r,o){var s,a,l,u,c,h=this;if(i=i||vt,!o&&bt(n.watchId))e=e||this.nextId(),this.if_("i",this.lazyAssign(e,this.computedMember("i",n.watchId)),this.lazyRecurse(n,e,t,i,r,!0));else switch(n.type){case d.Program:mt(n.body,function(t,e){h.recurse(t.expression,void 0,void 0,function(t){a=t}),e!==n.body.length-1?h.current().body.push(a,";"):h.return_(a)});break;
1case d.Literal:u=this.escape(n.value),this.assign(e,u),i(e||u);break;case d.UnaryExpression:this.recurse(n.argument,void 0,void 0,function(t){a=t}),u=n.operator+"("+this.ifDefined(a,0)+")",this.assign(e,u),i(u);break;case d.BinaryExpression:this.recurse(n.left,void 0,void 0,function(t){s=t}),this.recurse(n.right,void 0,void 0,function(t){a=t}),u="+"===n.operator?this.plus(s,a):"-"===n.operator?this.ifDefined(s,0)+n.operator+this.ifDefined(a,0):"("+s+")"+n.operator+"("+a+")",this.assign(e,u),i(u);break;case d.LogicalExpression:e=e||this.nextId(),h.recurse(n.left,e),h.if_("&&"===n.operator?e:h.not(e),h.lazyRecurse(n.right,e)),i(e);break;case d.ConditionalExpression:e=e||this.nextId(),h.recurse(n.test,e),h.if_(e,h.lazyRecurse(n.alternate,e),h.lazyRecurse(n.consequent,e)),i(e);break;case d.Identifier:e=e||this.nextId(),t&&(t.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),t.computed=!1,t.name=n.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",n.name)),function(){h.if_("inputs"===h.stage||"s",function(){r&&1!==r&&h.if_(h.isNull(h.nonComputedMember("s",n.name)),h.lazyAssign(h.nonComputedMember("s",n.name),"{}")),h.assign(e,h.nonComputedMember("s",n.name))})},e&&h.lazyAssign(e,h.nonComputedMember("l",n.name))),i(e);break;case d.MemberExpression:s=t&&(t.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(n.object,s,void 0,function(){h.if_(h.notNull(s),function(){n.computed?(a=h.nextId(),h.recurse(n.property,a),h.getStringValue(a),r&&1!==r&&h.if_(h.not(h.computedMember(s,a)),h.lazyAssign(h.computedMember(s,a),"{}")),u=h.computedMember(s,a),h.assign(e,u),t&&(t.computed=!0,t.name=a)):(r&&1!==r&&h.if_(h.isNull(h.nonComputedMember(s,n.property.name)),h.lazyAssign(h.nonComputedMember(s,n.property.name),"{}")),u=h.nonComputedMember(s,n.property.name),h.assign(e,u),t&&(t.computed=!1,t.name=n.property.name))},function(){h.assign(e,"undefined")}),i(e)},!!r);break;case d.CallExpression:e=e||this.nextId(),n.filter?(a=h.filter(n.callee.name),l=[],mt(n.arguments,function(t){var e=h.nextId();h.recurse(t,e),l.push(e)}),u=a+"("+l.join(",")+")",h.assign(e,u),i(e)):(a=h.nextId(),s={},l=[],h.recurse(n.callee,a,s,function(){h.if_(h.notNull(a),function(){mt(n.arguments,function(t){h.recurse(t,n.constant?void 0:h.nextId(),void 0,function(t){l.push(t)})}),u=s.name?h.member(s.context,s.name,s.computed)+"("+l.join(",")+")":a+"("+l.join(",")+")",h.assign(e,u)},function(){h.assign(e,"undefined")}),i(e)}));break;case d.AssignmentExpression:a=this.nextId(),s={},this.recurse(n.left,void 0,s,function(){h.if_(h.notNull(s.context),function(){h.recurse(n.right,a),u=h.member(s.context,s.name,s.computed)+n.operator+a,h.assign(e,u),i(e||u)})},1);break;case d.ArrayExpression:l=[],mt(n.elements,function(t){h.recurse(t,n.constant?void 0:h.nextId(),void 0,function(t){l.push(t)})}),u="["+l.join(",")+"]",this.assign(e,u),i(e||u);break;case d.ObjectExpression:c=!(l=[]),mt(n.properties,function(t){t.computed&&(c=!0)}),c?(e=e||this.nextId(),this.assign(e,"{}"),mt(n.properties,function(t){t.computed?(s=h.nextId(),h.recurse(t.key,s)):s=t.key.type===d.Identifier?t.key.name:""+t.key.value,a=h.nextId(),h.recurse(t.value,a),h.assign(h.member(e,s,t.computed),a)})):(mt(n.properties,function(e){h.recurse(e.value,n.constant?void 0:h.nextId(),void 0,function(t){l.push(h.escape(e.key.type===d.Identifier?e.key.name:""+e.key.value)+":"+t)})}),u="{"+l.join(",")+"}",this.assign(e,u)),i(e||u);break;case d.ThisExpression:this.assign(e,"s"),i(e||"s");break;case d.LocalsExpression:this.assign(e,"l"),i(e||"l");break;case d.NGValueParameter:this.assign(e,"v"),i(e||"v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,i=this.current().own;return i.hasOwnProperty(n)||(i[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),i[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){var i;!0===t?e():((i=this.current().body).push("if(",t,"){"),e(),i.push("}"),n&&(i.push("else{"),n(),i.push("}")))},not:function(t){return"!("+t+")"},isNull:function(t){return t+"==null"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?t+"."+e:t+'["'+e.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},lazyRecurse:function(t,e,n,i,r,o){var s=this;return function(){s.recurse(t,e,n,i,r,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(wt(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(_(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw Ci("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},Ri.prototype={compile:function(t){var i,r,o=this,e=(l(t,o.$filter),(e=Ni(t))&&(i=this.recurse(e)),Ai(t.body)),s=(e&&(r=[],mt(e,function(t,e){var n=o.recurse(t);
1t.input=n,r.push(n),t.watchId=e})),[]),e=(mt(t.body,function(t){s.push(o.recurse(t.expression))}),0===t.body.length?vt:1===t.body.length?s[0]:function(e,n){var i;return mt(s,function(t){i=t(e,n)}),i});return i&&(e.assign=function(t,e,n){return i(t,n,e)}),r&&(e.inputs=r),e},recurse:function(t,l,e){var o,u,c,n=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case d.Literal:return this.value(t.value,l);case d.UnaryExpression:return u=this.recurse(t.argument),this["unary"+t.operator](u,l);case d.BinaryExpression:case d.LogicalExpression:return o=this.recurse(t.left),u=this.recurse(t.right),this["binary"+t.operator](o,u,l);case d.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),l);case d.Identifier:return n.identifier(t.name,l,e);case d.MemberExpression:return o=this.recurse(t.object,!1,!!e),t.computed||(u=t.property.name),t.computed&&(u=this.recurse(t.property)),t.computed?this.computedMember(o,u,l,e):this.nonComputedMember(o,u,l,e);case d.CallExpression:return c=[],mt(t.arguments,function(t){c.push(n.recurse(t))}),t.filter&&(u=this.$filter(t.callee.name)),t.filter||(u=this.recurse(t.callee,!0)),t.filter?function(t,e,n,i){for(var r=[],o=0;o<c.length;++o)r.push(c[o](t,e,n,i));var s=u.apply(void 0,r,i);return l?{context:void 0,name:void 0,value:s}:s}:function(t,e,n,i){var r,o=u(t,e,n,i);if(null!=o.value){for(var s=[],a=0;a<c.length;++a)s.push(c[a](t,e,n,i));r=o.value.apply(o.context,s)}return l?{value:r}:r};case d.AssignmentExpression:return o=this.recurse(t.left,!0,1),u=this.recurse(t.right),function(t,e,n,i){var r=o(t,e,n,i),t=u(t,e,n,i);return r.context[r.name]=t,l?{value:t}:t};case d.ArrayExpression:return c=[],mt(t.elements,function(t){c.push(n.recurse(t))}),function(t,e,n,i){for(var r=[],o=0;o<c.length;++o)r.push(c[o](t,e,n,i));return l?{value:r}:r};case d.ObjectExpression:return c=[],mt(t.properties,function(t){t.computed?c.push({key:n.recurse(t.key),computed:!0,value:n.recurse(t.value)}):c.push({key:t.key.type===d.Identifier?t.key.name:""+t.key.value,computed:!1,value:n.recurse(t.value)})}),function(t,e,n,i){for(var r={},o=0;o<c.length;++o)c[o].computed?r[c[o].key(t,e,n,i)]=c[o].value(t,e,n,i):r[c[o].key]=c[o].value(t,e,n,i);return l?{value:r}:r};case d.ThisExpression:return function(t){return l?{value:t}:t};case d.LocalsExpression:return function(t,e){return l?{value:e}:e};case d.NGValueParameter:return function(t,e,n){return l?{value:n}:n}}},"unary+":function(r,o){return function(t,e,n,i){t=bt(t=r(t,e,n,i))?+t:0;return o?{value:t}:t}},"unary-":function(r,o){return function(t,e,n,i){t=bt(t=r(t,e,n,i))?-t:-0;return o?{value:t}:t}},"unary!":function(r,o){return function(t,e,n,i){t=!r(t,e,n,i);return o?{value:t}:t}},"binary+":function(r,o,s){return function(t,e,n,i){t=Mi(r(t,e,n,i),o(t,e,n,i));return s?{value:t}:t}},"binary-":function(o,s,a){return function(t,e,n,i){var r=o(t,e,n,i),t=s(t,e,n,i),e=(bt(r)?r:0)-(bt(t)?t:0);return a?{value:e}:e}},"binary*":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)*o(t,e,n,i);return s?{value:t}:t}},"binary/":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)/o(t,e,n,i);return s?{value:t}:t}},"binary%":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)%o(t,e,n,i);return s?{value:t}:t}},"binary===":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)===o(t,e,n,i);return s?{value:t}:t}},"binary!==":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)!==o(t,e,n,i);return s?{value:t}:t}},"binary==":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)==o(t,e,n,i);return s?{value:t}:t}},"binary!=":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)!=o(t,e,n,i);return s?{value:t}:t}},"binary<":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)<o(t,e,n,i);return s?{value:t}:t}},"binary>":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)>o(t,e,n,i);return s?{value:t}:t}},"binary<=":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)<=o(t,e,n,i);return s?{value:t}:t}},"binary>=":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)>=o(t,e,n,i);return s?{value:t}:t}},"binary&&":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)&&o(t,e,n,i);return s?{value:t}:t}},"binary||":function(r,o,s){return function(t,e,n,i){t=r(t,e,n,i)||o(t,e,n,i);return s?{value:t}:t}},"ternary?:":function(r,o,s,a){return function(t,e,n,i){t=(r(t,e,n,i)?o:s)(t,e,n,i);return a?{value:t}:t}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(r,o,s){return function(t,e,n,i){e=e&&r in e?e:t,s&&1!==s&&e&&null==e[r]&&(e[r]={}),t=e?e[r]:void 0;return o?{context:e,name:r,value:t}:t}},computedMember:function(a,l,u,c){return function(t,e,n,i){var r,o,s=a(t,e,n,i);return null!=s&&(r=l(t,e,n,i),r+="",c&&1!==c&&s&&!s[r]&&(s[r]={}),o=s[r]),u?{context:s,name:r,value:o}:o}},nonComputedMember:function(r,o,s,a){return function(t,e,n,i){t=r(t,e,n,i),a&&1!==a&&t&&null==t[o]&&(t[o]={}),e=null!=t?t[o]:void 0;return s?{context:t,name:o,value:e}:e}},inputs:function(r,o){return function(t,e,n,i){return i?i[o]:r(t,e,n)}}},Ii.prototype={constructor:Ii,parse:function(t){var e,t=this.ast.ast(t),n=this.ast
1Compiler.compile(t);return n.literal=0===(e=t).body.length||1===e.body.length&&(e.body[0].expression.type===d.Literal||e.body[0].expression.type===d.ArrayExpression||e.body[0].expression.type===d.ObjectExpression),n.constant=t.constant,n}};var qi=E("$sce"),u={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Ui=/_([a-z])/g;function Yi(t){return t.replace(Ui,ce)}function Gi(t){var e=[];return bt(t)&&mt(t,function(t){e.push(function(t){if("self"===t)return t;if(wt(t)){if(-1<t.indexOf("***"))throw qi("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=Y(t).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+t+"$")}if(j(t))return new RegExp("^"+t.source+"$");throw qi("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(t))}),e}function Ki(){this.SCE_CONTEXTS=u;var s=["self"],a=[];this.resourceUrlWhitelist=function(t){return s=arguments.length?Gi(t):s},this.resourceUrlBlacklist=function(t){return a=arguments.length?Gi(t):a},this.$get=["$injector",function(t){var i=function(t){throw qi("unsafe","Attempting to use an unsafe value in a safe context.")};function o(t,e){return"self"===t?rr(e):t.exec(e.href)}function e(t){function e(t){this.$$unwrapTrustedValue=function(){return t}}return(e.prototype=t?new t:e.prototype).valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}t.has("$sanitize")&&(i=t.get("$sanitize"));var n=e(),r={};return r[u.HTML]=e(n),r[u.CSS]=e(n),r[u.URL]=e(n),r[u.JS]=e(n),r[u.RESOURCE_URL]=e(r[u.URL]),{trustAs:function(t,e){var n=r.hasOwnProperty(t)?r[t]:null;if(!n)throw qi("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||yt(e)||""===e)return e;if("string"!=typeof e)throw qi("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(t,e){if(null===e||yt(e)||""===e)return e;var n=r.hasOwnProperty(t)?r[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===u.RESOURCE_URL){if(function(t){for(var e=ir(t.toString()),n=!1,i=0,r=s.length;i<r;i++)if(o(s[i],e)){n=!0;break}if(n)for(i=0,r=a.length;i<r;i++)if(o(a[i],e)){n=!1;break}return n}(e))return e;throw qi("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",e.toString())}if(t===u.HTML)return i(e);throw qi("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof n?t.$$unwrapTrustedValue():t}}}]}function Xi(){var e=!0;this.enabled=function(t){return e=arguments.length?!!t:e},this.$get=["$parse","$sceDelegate",function(i,t){if(e&&Mt<8)throw qi("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var r=C(u),n=(r.isEnabled=function(){return e},r.trustAs=t.trustAs,r.getTrusted=t.getTrusted,r.valueOf=t.valueOf,e||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=Ot),r.parseAs=function(e,t){var n=i(t);return n.literal&&n.constant?n:i(t,function(t){return r.getTrusted(e,t)})},r.parseAs),o=r.getTrusted,s=r.trustAs;return mt(u,function(e,t){t=S(t);r[Yi("parse_as_"+t)]=function(t){return n(e,t)},r[Yi("get_trusted_"+t)]=function(t){return o(e,t)},r[Yi("trust_as_"+t)]=function(t){return s(e,t)}}),r}]}function Zi(){this.$get=["$window","$document",function(t,e){var n={},i=!(!(t.nw&&t.nw.process)&&t.chrome&&(t.chrome.app&&t.chrome.app.runtime||!t.chrome.app&&t.chrome.runtime&&t.chrome.runtime.id))&&t.history&&t.history.pushState,r=y((/android (\d+)/.exec(S((t.navigator||{}).userAgent))||[])[1]),t=/Boxee/i.test((t.navigator||{}).userAgent),o=e[0]||{},e=o.body&&o.body.style,s=!1,a=!1;return e&&(s=!!("transition"in e||"webkitTransition"in e),a=!!("animation"in e||"webkitAnimation"in e)),{history:!(!i||r<4||t),hasEvent:function(t){var e;return("input"!==t||!Mt)&&(yt(n[t])&&(e=o.createElement("div"),n[t]="on"+t in e),n[t])},csp:Z(),transitions:s,animations:a,android:r}}]}var Qi=E("$compile");function Ji(){var u;this.httpOptions=function(t){return t?(u=t,this):u},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(i,r,o,s,a){function l(e,n){l.totalPendingRequests++,wt(e)&&!yt(r.get(e))||(e=a.getTrustedResourceUrl(e));var t=o.defaults&&o.defaults.transformResponse;return xt(t)?t=t.filter(function(t){return t!==Un}):t===Un&&(t=null),o.get(e,gt({cache:r,transformResponse:t},u)).finally(function(){l.totalPendingRequests--}).then(function(t){return r.put(e,t.data),t.data},function(t){n||(t=Qi("tpload","Failed to load template: {0} (HTTP status: {1} {2})",e,t.status,t.statusText),i(t));return s.reject(t)})}return l.totalPendingRequests=0,l}]}function tr(){this.$get=["$rootScope","$browser","$location",function(e,n,i){var t={findBindings:function(t,n,i){var t=t.getElementsByClassName("ng-binding"),r=[];return mt(t,function(e){var t=b.element(e).data("$binding");t&&mt(t,function(t){i?new RegExp("(^|\\s)"+Y(n)+"(\\s|\\||$)").test(t)&&r.push(e):-1!==t.indexOf(n)&&r.push(e)})}),r},findModels:function(t,e,n){for(var i=["ng-","data-ng-","ng\\:"],r=0;r<i.length;++r){var o=t.querySelectorAll("["+i[r]+"model"+(n?"=":"*=")+'"'+e+'"]');if(o.length)return o}},getLocation:function(){return i.url()}
1,setLocation:function(t){t!==i.url()&&(i.url(t),e.$digest())},whenStable:function(t){n.notifyWhenNoOutstandingRequests(t)}};return t}]}function er(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,l,u,c,h){var d={};function t(t,e,n){Ct(t)||(n=e,e=t,t=vt);var i=Lt(arguments,3),r=bt(n)&&!n,o=(r?c:u).defer(),s=o.promise,n=l.defer(function(){try{o.resolve(t.apply(null,i))}catch(t){o.reject(t),h(t)}finally{delete d[s.$$timeoutId]}r||a.$apply()},e);return s.$$timeoutId=n,d[n]=o,s}return t.cancel=function(t){return!!(t&&t.$$timeoutId in d)&&(d[t.$$timeoutId].promise.catch(vt),d[t.$$timeoutId].reject("canceled"),delete d[t.$$timeoutId],l.defer.cancel(t.$$timeoutId))},t}]}var e=x.document.createElement("a"),nr=ir(x.location.href);function ir(t){return Mt&&(e.setAttribute("href",t),t=e.href),e.setAttribute("href",t),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}function rr(t){t=wt(t)?ir(t):t;return t.protocol===nr.protocol&&t.host===nr.host}function or(){this.$get=$(x)}function sr(t){var s=t[0]||{},a={},l="";function u(e){try{return decodeURIComponent(e)}catch(t){return e}}return function(){var t,e,n,i,r,o=function(t){try{return t.cookie||""}catch(t){return""}}(s);if(o!==l)for(t=(l=o).split("; "),a={},n=0;n<t.length;n++)0<(i=(e=t[n]).indexOf("="))&&(r=u(e.substring(0,i)),yt(a[r]))&&(a[r]=u(e.substring(i+1)));return a}}function ar(){this.$get=sr}function lr(i){function r(t,e){var n;return _t(t)?(n={},mt(t,function(t,e){n[e]=r(e,t)}),n):i.factory(t+"Filter",e)}this.register=r,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],r("currency",pr),r("date",kr),r("filter",ur),r("json",$r),r("limitTo",Tr),r("lowercase",Sr),r("number",fr),r("orderBy",Mr),r("uppercase",Er)}function ur(){return function(t,e,n,i){if(!P(t)){if(null==t)return t;throw E("filter")("notarray","Expected array but received: {0}",t)}var r,o;switch(i=i||"$",hr(e)){case"function":r=e;break;case"boolean":case"null":case"number":case"string":o=!0;case"object":r=function(e,n,i,r){var o=_t(e)&&i in e;!0===n?n=St:Ct(n)||(n=function(t,e){return!(yt(t)||(null===t||null===e?t!==e:_t(e)||_t(t)&&!z(t)||(t=S(""+t),e=S(""+e),-1===t.indexOf(e))))});return function(t){return o&&!_t(t)?cr(t,e[i],n,i,!1):cr(t,e,n,i,r)}}(e,n,i,o);break;default:return t}return Array.prototype.filter.call(t,r)}}function cr(t,e,n,i,r,o){var s,a=hr(t),l=hr(e);if("string"===l&&"!"===e.charAt(0))return!cr(t,e.substring(1),n,i,r);if(xt(t))return t.some(function(t){return cr(t,e,n,i,r)});switch(a){case"object":if(r){for(s in t)if(s.charAt&&"$"!==s.charAt(0)&&cr(t[s],e,n,i,!0))return!0;return!o&&cr(t,e,n,i,!1)}if("object"!==l)return n(t,e);for(s in e){var u=e[s];if(!Ct(u)&&!yt(u)){var c=s===i;if(!cr(c?t:t[s],u,n,i,c,c))return!1}}return!0;case"function":return!1;default:return n(t,e)}}function hr(t){return null===t?"null":typeof t}sr.$inject=["$document"],lr.$inject=["$provide"];var dr="0";function pr(t){var i=t.NUMBER_FORMATS;return function(t,e,n){return yt(e)&&(e=i.CURRENCY_SYM),yt(n)&&(n=i.PATTERNS[1].maxFrac),null==t?t:mr(t,i.PATTERNS[1],i.GROUP_SEP,i.DECIMAL_SEP,n).replace(/\u00A4/g,e)}}function fr(t){var n=t.NUMBER_FORMATS;return function(t,e){return null==t?t:mr(t,n.PATTERNS[0],n.GROUP_SEP,n.DECIMAL_SEP,e)}}function mr(t,e,n,i,r){if(!wt(t)&&!_(t)||isNaN(t))return"";var o=!isFinite(t),s=!1,a=Math.abs(t)+"",l="";if(o)l="∞";else{var u=o=function(t){var e,n,i,r,o,s=0;for(0<(i=(t=-1<(n=t.indexOf("."))?t.replace(".",""):t).search(/e/i))?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;t.charAt(i)===dr;i++);if(i===(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)===dr;)o--;for(n-=i,e=[],r=0;i<=o;i++,r++)e[r]=+t.charAt(i)}return 22<n&&(e=e.splice(0,21),s=n-1,n=1),{d:e,e:s,i:n}}(a),c=r,a=e.minFrac,r=e.maxFrac,h=u.d,d=h.length-u.i,p=(c=yt(c)?Math.min(Math.max(a,d),r):+c)+u.i,a=h[p];if(0<p){h.splice(Math.max(u.i,p));for(var f=p;f<h.length;f++)h[f]=0}else{d=Math.max(0,d),u.i=1,h.length=Math.max(1,p=c+1),h[0]=0;for(var m=1;m<p;m++)h[m]=0}if(5<=a)if(p-1<0){for(var g=0;p<g;g--)h.unshift(0),u.i++;h.unshift(1),u.i++}else h[p-1]++;for(;d<Math.max(0,c);d++)h.push(0);(r=h.reduceRight(function(t,e,n,i){return i[n]=(e+=t)%10,Math.floor(e/10)}
1,0))&&(h.unshift(r),u.i++);for(var v=o.d,y=o.i,a=o.e,r=[],s=v.reduce(function(t,e){return t&&!e},!0);y<0;)v.unshift(0),y++;0<y?r=v.splice(y,v.length):(r=v,v=[0]);var b=[];for(v.length>=e.lgSize&&b.unshift(v.splice(-e.lgSize,v.length).join(""));v.length>e.gSize;)b.unshift(v.splice(-e.gSize,v.length).join(""));v.length&&b.unshift(v.join("")),l=b.join(n),r.length&&(l+=i+r.join("")),a&&(l+="e+"+a)}return t<0&&!s?e.negPre+l+e.negSuf:e.posPre+l+e.posSuf}function gr(t,e,n,i){var r="";for((t<0||i&&t<=0)&&(i?t=1-t:(t=-t,r="-")),t=""+t;t.length<e;)t=dr+t;return r+(t=n?t.substr(t.length-e):t)}function t(e,n,i,r,o){return i=i||0,function(t){t=t["get"+e]();return(0<i||-i<t)&&(t+=i),gr(t=0===t&&-12===i?12:t,n,r,o)}}function vr(n,i,r){return function(t,e){t=t["get"+n]();return e[k((r?"STANDALONE":"")+(i?"SHORT":"")+n)][t]}}function yr(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function br(n){return function(t){var e=yr(t.getFullYear()),t=(t=t,new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay())));return gr(1+Math.round((+t-+e)/6048e5),n)}}function _r(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}pr.$inject=["$locale"];var wr={yyyy:t("FullYear",4,0,!(fr.$inject=["$locale"]),!0),yy:t("FullYear",2,0,!0,!0),y:t("FullYear",1,0,!1,!0),MMMM:vr("Month"),MMM:vr("Month",!0),MM:t("Month",2,1),M:t("Month",1,1),LLLL:vr("Month",!1,!0),dd:t("Date",2),d:t("Date",1),HH:t("Hours",2),H:t("Hours",1),hh:t("Hours",2,-12),h:t("Hours",1,-12),mm:t("Minutes",2),m:t("Minutes",1),ss:t("Seconds",2),s:t("Seconds",1),sss:t("Milliseconds",3),EEEE:vr("Day"),EEE:vr("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){var i=0<=(n=-1*n)?"+":"";return i+=gr(Math[0<n?"floor":"ceil"](n/60),2)+gr(Math.abs(n%60),2)},ww:br(2),w:br(1),G:_r,GG:_r,GGG:_r,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},xr=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Cr=/^-?\d+$/;function kr(m){var g=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(e,t,n){var i,r,o,s,a,l,u,c,h,d="",p=[];if(t=m.DATETIME_FORMATS[t=t||"mediumDate"]||t,!w(e=_(e=wt(e)?Cr.test(e)?y(e):(h=(o=e).match(g))?(s=new Date(0),c=u=0,l=h[8]?s.setUTCFullYear:s.setFullYear,a=h[8]?s.setUTCHours:s.setHours,h[9]&&(u=y(h[9]+h[10]),c=y(h[9]+h[11])),l.call(s,y(h[1]),y(h[2])-1,y(h[3])),l=y(h[4]||0)-u,u=y(h[5]||0)-c,c=y(h[6]||0),h=Math.round(1e3*parseFloat("0."+(h[7]||0))),a.call(s,l,u,c,h),s):o:e)?new Date(e):e)||!isFinite(e.getTime()))return e;for(;t;)t=(r=xr.exec(t))?(p=J(p,r,1)).pop():(p.push(t),null);var f=e.getTimezoneOffset();return n&&(f=rt(n,f),e=ot(e,n,!0)),mt(p,function(t){i=wr[t],d+=i?i(e,m.DATETIME_FORMATS,f):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}}function $r(){return function(t,e){return et(t,e=yt(e)?2:e)}}kr.$inject=["$locale"];var Sr=$(S),Er=$(k);function Tr(){return function(t,e,n){return e=(Math.abs(Number(e))===1/0?Number:y)(e),!T(e)&&P(t=_(t)?t.toString():t)?(n=(n=!n||isNaN(n)?0:y(n))<0?Math.max(0,t.length+n):n,0<=e?Dr(t,n,n+e):0===n?Dr(t,e,t.length):Dr(t,Math.max(0,n+e),n)):t}}function Dr(t,e,n){return wt(t)?t.slice(e,n):g.call(t,e,n)}function Mr(r){return function(t,e,n,i){if(null!=t){if(!P(t))throw E("orderBy")("notarray","Expected array but received: {0}",t);var o=(e=0===(e=xt(e)?e:[e]).length?["+"]:e).map(function(t){var e,n=1,i=Ot;return Ct(t)?i=t:wt(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t)&&(i=r(t)).constant&&(e=i(),i=function(t){return t[e]}),{get:i,descending:n}}),s=n?-1:1,a=Ct(i)?i:u,e=Array.prototype.map.call(t,function(i,r){return{value:i,tieBreaker:{value:r,type:"number",index:r},predicateValues:o.map(function(t){var t=t.get(i),e=r,n=typeof t;return null===t?(n="string",t="null"):"object"===n&&(t=function(t){if(Ct(t.valueOf)&&l(t=t.valueOf()))return t;z(t)&&l(t=t.toString());return t}(t)),{value:t,type:n,index:e}})}});e.sort(function(t,e){for(var n=0,i=o.length;n<i;n++){var r=a(t.predicateValues[n],e.predicateValues[n]);if(r)return r*o[n].descending*s}return a(t.tieBreaker,e.tieBreaker)*s}),t=e.map(function(t){return t.value})}return t};function l(t){switch(typeof t){case"number":case"boolean":case"string":return 1;default:return}}function u(t,e){var n,i,r=0,o=t.type,s=e.type;return o===s?(n=t.value,i=e.value,"string"===o?(n=n.toLowerCase(),i=i.toLowerCase()):"object"===o&&(_t(n)&&(n=t.index),_t(i))&&(i=e.index),n!==i&&(r=n<i?-1:1)):r=o<s?-1:1,r}}function Ar(t){return(t=Ct(t)?{link:t}:t).restrict=t.restrict||"AC",$(t)}Mr.$inject=["$parse"];var Or=$({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){var n;"a"===e[0].nodeName.toLowerCase()&&(n="[object SVGAnimatedString]"===v.call(e.prop("href"))?"xlink:href":"href",e.on("click",function(t){e.attr(n)||t.preventDefault()}))}}}),Nr={},Pr=(mt(Ie,function(t,i){var r,e;function o(t,e,n){t.$watch(n[r],function(t){n.$set(i,!!t)})}"multiple"!==t&&(r=En("ng-"+i),e="checked"===t?function(t,e,n){n.ngModel!==n[r]&&o(t,0,n)}:o,Nr[r]=function(){return{restrict:"A",priority:100,link:e}})}),mt(He,function(t,r){Nr[r]=function(){return{priority:100,link:function(t,e,n){if("ngPattern"===r&&"/"===n.ngPattern.charAt(0)){var i=n.ngPattern.match(c);if(i)return void n.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(n[r],function(t){n.$set(r,t)})}}}}),mt(["src","srcset","href"],function(o){var s=En("ng-"+o);Nr[s]=function(){return{priority:99,link:function(t,e,n){var i=o,r=o;"href"===o&&"[object SVGAnimatedString]"===v.call(e.prop("href"))&&(r="xlinkHref",n.$attr[r]="xlink:href",i=null),n.$observe(s,function(t){t?(n.$set(r,t),Mt&&i&&e.prop(i,n[r])):"href"===o&&n.$set(r,null)})}}}}),{$addControl:vt,$$renameControl:function(t,e){t.$name=e},$removeControl:vt,$setValidity:vt,$setDirty:vt,$setPristine:vt,$setSubmitted:vt}),Rr="ng-pending",Ir="ng-submitted";function Lr(t,e,n,i,r){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=r(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Pr,this.$$element=t,this.$$animate=i,Vr(this)}Lr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Lr.prototype={$rollbackViewValue:function(){mt(this.$$controls,function(t){t.$rollbackViewValue()})},$commitViewValue:function(){mt(this.$$controls,function(t){t.$commitViewValue()})},$addControl:function(t){Yt(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$$renameControl:function(t,e){var n=t.$name;this[n]===t&&delete this[n],(this[e]=t).$name=e},$removeControl:function(n){n.$name&&this[n.$name]===n&&delete this[n.$name],mt(this.$pending,function(t,e){this.$setValidity(e,null,n)},this),mt(this.$error,function(t,e){this.$setValidity(e,null,n)}
1,this),mt(this.$$success,function(t,e){this.$setValidity(e,null,n)},this),Rt(this.$$controls,n),n.$$parentForm=Pr},$setDirty:function(){this.$$animate.removeClass(this.$$element,Ro),this.$$animate.addClass(this.$$element,Io),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Ro,Io+" "+Ir),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,mt(this.$$controls,function(t){t.$setPristine()})},$setUntouched:function(){mt(this.$$controls,function(t){t.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,Ir),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},jr({clazz:Lr,set:function(t,e,n){var i=t[e];i?-1===i.indexOf(n)&&i.push(n):t[e]=[n]},unset:function(t,e,n){var i=t[e];i&&(Rt(i,n),0===i.length)&&delete t[e]}});function Hr(n){return["$timeout","$parse",function(l,e){return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:Lr,compile:function(t,e){t.addClass(Ro).addClass(No);var a=e.name?"name":!(!n||!e.ngForm)&&"ngForm";return{pre:function(e,t,n,i){var r,o=i[0];"action"in n||(t[0].addEventListener("submit",r=function(t){e.$apply(function(){o.$commitViewValue(),o.$setSubmitted()}),t.preventDefault()}),t.on("$destroy",function(){l(function(){t[0].removeEventListener("submit",r)},0,!1)}));(i[1]||o.$$parentForm).$addControl(o);var s=a?u(o.$name):vt;a&&(s(e,o),n.$observe(a,function(t){o.$name!==t&&(s(e,void 0),o.$$parentForm.$$renameControl(o,t),(s=u(o.$name))(e,o))})),t.on("$destroy",function(){o.$$parentForm.$removeControl(o),s(e,void 0),gt(o,Pr)})}}}};function u(t){return""===t?e('this[""]').assign:e(t).assign||vt}}]}var Fr=Hr(),zr=Hr(!0);function Vr(t){t.$$classCache={},t.$$classCache[Po]=!(t.$$classCache[No]=t.$$element.hasClass(No))}function jr(t){var e=t.clazz,a=t.set,l=t.unset;function u(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function c(t,e,n){e=e?"-"+Wt(e,"-"):"",u(t,No+e,!0===n),u(t,Po+e,!1===n)}e.prototype.$setValidity=function(t,e,n){var i,r,o,s;yt(e)?(i=t,r=n,(o=this)[s="$pending"]||(o[s]={}),a(o[s],i,r)):(o=t,s=n,(i=this)[r="$pending"]&&l(i[r],o,s),Wr(i[r])&&(i[r]=void 0)),(Pt(e)?e?(l(this.$error,t,n),a):(a(this.$error,t,n),l):(l(this.$error,t,n),l))(this.$$success,t,n),this.$pending?(u(this,Rr,!0),this.$valid=this.$invalid=void 0,c(this,"",null)):(u(this,Rr,!1),this.$valid=Wr(this.$error),this.$invalid=!this.$valid,c(this,"",this.$valid)),c(this,t,e=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null)),this.$$parentForm.$setValidity(t,e,this)}}function Wr(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var Br=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,qr=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Ur=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Yr=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,D=/^(\d{4,})-(\d{2})-(\d{2})$/,Gr=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Kr=/^(\d{4,})-W(\d\d)$/,Xr=/^(\d{4,})-(\d\d)$/,Zr=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Qr="keydown wheel mousedown",Jr=Tt(),to=(mt("date,datetime-local,month,time,week".split(","),function(t){Jr[t]=!0}),{text:function(t,e,n,i,r,o){no(0,e,n,i,r,o),eo(i)},date:ro("date",D,io(D,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":ro("datetimelocal",Gr,io(Gr,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:ro("time",Zr,io(Zr,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:ro("week",Kr,function(t,e){if(w(t))return t;if(wt(t)){Kr.lastIndex=0;var n,i,r,o,s,a,t=Kr.exec(t);if(t)return n=+t[1],t=+t[2],s=o=r=i=0,a=yr(n),t=7*(t-1),e&&(i=e.getHours(),r=e.getMinutes(),o=e.getSeconds(),s=e.getMilliseconds()),new Date(n,0,a.getDate()+t,i,r,o,s)}return NaN},"yyyy-Www"),month:ro("month",Xr,io(Xr,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,i,r,o){var s,a,l;oo(0,e,0,i),so(i),no(0,e,n,i,r,o),(bt(n.min)||n.ngMin)&&(i.$validators.min=function(t){return i.$isEmpty(t)||yt(s)||s<=t},n.$observe("min",function(t){s=ao(t),i.$validate()}));(bt(n.max)||n.ngMax)&&(i.$validators.max=function(t){return i.$isEmpty(t)||yt(a)||t<=a},n.$observe("max",function(t){a=ao(t),i.$validate()}));(bt(n.step)||n.ngStep)&&(i.$validators.step=function(t,e){return i.$isEmpty(e)||yt(l)||co(e,s||0,l)},n.$observe("step",function(t){l=ao(t),i.$validate()}))},url:function(t,e,n,i,r,o){no(0,e,n,i,r,o),eo(i),i.$$parserName="url",i.$validators.url=function(t,e){t=t||e;return i.$isEmpty(t)||qr.test(t)}},email:function(t,e,n,i,r,o){no(0,e,n,i,r,o),eo(i),i.$$parserName="email",i.$validators.email=function(t,e){t=t||e;return i.$isEmpty(t)||Ur.test(t)}},radio:function(t,n,i,r){var o=!i.ngTrim||"false"!==kt(i.ngTrim);yt(i.name)&&n.attr("name",I());n.on("click",function(t){var e;
1n[0].checked&&(e=i.value,o&&(e=kt(e)),r.$setViewValue(e,t&&t.type))}),r.$render=function(){var t=i.value;o&&(t=kt(t)),n[0].checked=t===r.$viewValue},i.$observe("value",r.$render)},range:function(t,n,i,r,e,o){oo(0,n,0,r),so(r),no(0,n,i,r,e,o);var s=r.$$hasNativeValidators&&"range"===n[0].type,a=s?0:void 0,l=s?100:void 0,u=s?1:void 0,c=n[0].validity,t=bt(i.min),e=bt(i.max),o=bt(i.step),h=r.$render;r.$render=s&&bt(c.rangeUnderflow)&&bt(c.rangeOverflow)?function(){h(),r.$setViewValue(n.val())}:h,t&&(r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||yt(a)||a<=e},d("min",function(t){a=ao(t),T(r.$modelValue)||(s?((t=n.val())<a&&(t=a,n.val(t)),r.$setViewValue(t)):r.$validate())}));e&&(r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||yt(l)||e<=l},d("max",function(t){l=ao(t),T(r.$modelValue)||(s?(t=n.val(),l<t&&(n.val(l),t=l<a?a:l),r.$setViewValue(t)):r.$validate())}));o&&(r.$validators.step=s?function(){return!c.stepMismatch}:function(t,e){return r.$isEmpty(e)||yt(u)||co(e,a||0,u)},d("step",function(t){u=ao(t),T(r.$modelValue)||(s&&r.$viewValue!==n.val()?r.$setViewValue(n.val()):r.$validate())}));function d(t,e){n.attr(t,i[t]),i.$observe(t,e)}},checkbox:function(t,e,n,i,r,o,s,a){var l=ho(a,t,"ngTrueValue",n.ngTrueValue,!0),u=ho(a,t,"ngFalseValue",n.ngFalseValue,!1);e.on("click",function(t){i.$setViewValue(e[0].checked,t&&t.type)}),i.$render=function(){e[0].checked=i.$viewValue},i.$isEmpty=function(t){return!1===t},i.$formatters.push(function(t){return St(t,l)}),i.$parsers.push(function(t){return t?l:u})},hidden:vt,button:vt,submit:vt,reset:vt,file:vt});function eo(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function no(t,n,i,r,e,o){var s,a,l,u=S(n[0].type),c=(e.android||(s=!1,n.on("compositionstart",function(){s=!0}),n.on("compositionend",function(){s=!1,c()})),function(t){var e;a&&(o.defer.cancel(a),a=null),!s&&(e=n.val(),t=t&&t.type,"password"===u||i.ngTrim&&"false"===i.ngTrim||(e=kt(e)),r.$viewValue!==e||""===e&&r.$$hasNativeValidators)&&r.$setViewValue(e,t)});e.hasEvent("input")?n.on("input",c):(l=function(t,e,n){a=a||o.defer(function(){a=null,e&&e.value===n||c(t)})},n.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||l(t,this,this.value)}),e.hasEvent("paste")&&n.on("paste cut",l)),n.on("change",c),Jr[u]&&r.$$hasNativeValidators&&u===i.type&&n.on(Qr,function(t){var e,n,i;a||(e=this[h],n=e.badInput,i=e.typeMismatch,a=o.defer(function(){a=null,e.badInput===n&&e.typeMismatch===i||c(t)}))}),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;n.val()!==t&&n.val(t)}}function io(i,r){return function(t,e){var n;if(w(t))return t;if(wt(t)){if('"'===t.charAt(0)&&'"'===t.charAt(t.length-1)&&(t=t.substring(1,t.length-1)),Br.test(t))return new Date(t);if(i.lastIndex=0,t=i.exec(t))return t.shift(),n=e?{yyyy:e.getFullYear(),MM:e.getMonth()+1,dd:e.getDate(),HH:e.getHours(),mm:e.getMinutes(),ss:e.getSeconds(),sss:e.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},mt(t,function(t,e){e<r.length&&(n[r[e]]=+t)}),new Date(n.yyyy,n.MM-1,n.dd,n.HH,n.mm,n.ss||0,1e3*n.sss||0)}return NaN}}function ro(p,f,m,g){return function(t,e,n,i,r,o,s){oo(0,e,0,i),no(0,e,n,i,r,o);var a,l,u,c=i&&i.$options.getOption("timezone");function h(t){return t&&(!t.getTime||t.getTime()===t.getTime())}function d(t){return bt(t)&&!w(t)?m(t)||void 0:t}i.$$parserName=p,i.$parsers.push(function(t){return i.$isEmpty(t)?null:f.test(t)?(t=m(t,a),c?ot(t,c):t):void 0}),i.$formatters.push(function(t){if(t&&!w(t))throw zo("datefmt","Expected `{0}` to be a date",t);return h(t)?((a=t)&&c&&(a=ot(a,c,!0)),s("date")(t,g,c)):(a=null,"")}),(bt(n.min)||n.ngMin)&&(i.$validators.min=function(t){return!h(t)||yt(l)||m(t)>=l},n.$observe("min",function(t){l=d(t),i.$validate()})),(bt(n.max)||n.ngMax)&&(i.$validators.max=function(t){return!h(t)||yt(u)||m(t)<=u},n.$observe("max",function(t){u=d(t),i.$validate()}))}}function oo(t,n,e,i){var r=n[0];(i.$$hasNativeValidators=_t(r.validity))&&i.$parsers.push(function(t){var e=n.prop(h)||{};return e.badInput||e.typeMismatch?void 0:t})}function so(e){e.$$parserName="number",e.$parsers.push(function(t){return e.$isEmpty(t)?null:Yr.test(t)?parseFloat(t):void 0}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!_(t))throw zo("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function ao(t){return bt(t)&&!_(t)&&(t=parseFloat(t)),T(t)?void 0:t}function lo(t){return(0|t)===t}function uo(t){var e=t.toString(),n=e.indexOf(".");if(-1!==n)return e.length-n-1;if(-1<t&&t<1){n=/e-(\d+)$/.exec(e);if(n)return Number(n[1])}return 0}function co(t,e,n){var i,r,o,t=Number(t),s=!lo(t),a=!lo(e),l=!lo(n);return(s||a||l)&&(r=s?uo(t):0,o=a?uo(e):0,i=l?uo(n):0,r=Math.max(r,o,i),t*=o=Math.pow(10,r),e*=o,n*=o,s&&(t=Math.round(t)),a&&(e=Math.round(e)),l)&&(n=Math.round(n)),(t-e)%n==0}function ho(t,e,n,i,r){if(bt(i)){if((t=t(i)).constant)return t(e);throw zo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i)}return r}function po(){function i(t,e,n){var i=bt(n)?n:9===Mt?"":null;t.prop("value",i),e.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,e){return mo.test(e.ngValue)?function(t,e,n){i(e,n,t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){i(e,n,t)})}}}}var fo=["$browser","$sniffer","$filter","$parse",function(r,o,s,a){return{restrict:"E",require:["?ngModel"],link:{pre:function(t,e,n,i){i[0]&&(to[S(n.type)]||to.text)(t,e,n,i[0],o,r,s,a)}}}}],mo=/^(true|false|\d+)$/,go=["$compile",function(i){return{restrict:"AC",compile:function(t){return i.$$addBindingClass(t),function(t,e,n){i.$$addBindingInfo(e,n.ngBind),e=e[0],t.$watch(n.ngBind,function(t){e.textContent=Xt(t)})}}}}],vo=["$interpolate","$compile",function(r,o){return{compile:function(t){return o.$$addBindingClass(t),function(t,e,n){var i=r(e.attr(n.$attr.ngBindTemplate));o.$$addBindingInfo(e,i.expressions),e=e[0],n.$observe("ngBindTemplate",function(t){e.textContent=yt(t)?"":t})}}}}],yo=["$sce","$parse","$compile",function(o,n,s){return{restrict:"A",compile:function(t,e){var i=n(e.ngBindHtml),r=n(e.ngBindHtml,function(t){return o.valueOf(t)});return s.$$addBindingClass(t),function(e,n,t){s.$$addBindingInfo(n,t.ngBindHtml),e.$
1watch(r,function(){var t=i(e);n.html(o.getTrustedHtml(t)||"")})}}}}],bo=$({restrict:"A",require:"ngModel",link:function(t,e,n,i){i.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}});function _o(l,u){var c;return l="ngClass"+l,["$parse",function(a){return{restrict:"AC",link:function(t,e,i){var n,r=e.data("$classCounts"),o=!0;function s(t,e){var n=[];return mt(t,function(t){(0<e||r[t])&&(r[t]=(r[t]||0)+e,r[t]===+(0<e))&&n.push(t)}),n.join(" ")}r||(r=Tt(),e.data("$classCounts",r)),"ngClass"!==l&&(c=c||a("$index",function(t){return 1&t}),t.$watch(c,function(t){(t===u?function(t){t=s(d(t),1),i.$addClass(t)}:function(t){t=s(d(t),-1),i.$removeClass(t)})(n);o=t})),t.$watch(a(i[l],p),function(t){wt(t)||(t=p(t));o===u&&!function(t,e){var t=d(t),e=d(e),n=h(t,e),e=h(e,t),t=s(n,-1),n=s(e,1);i.$addClass(n),i.$removeClass(t)}(n,t);n=t})}}}];function h(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;var n=[];t:for(var i=0;i<t.length;i++){for(var r=t[i],o=0;o<e.length;o++)if(r===e[o])continue t;n.push(r)}return n}function d(t){return t&&t.split(" ")}function p(e){var t=e;return xt(e)?t=e.map(p).join(" "):_t(e)&&(t=Object.keys(e).filter(function(t){return e[t]}).join(" ")),t}}function wo(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var r=n.ngList||", ",o="false"!==n.ngTrim,s=o?kt(r):r;i.$parsers.push(function(t){var e;if(!yt(t))return e=[],t&&mt(t.split(s),function(t){t&&e.push(o?kt(t):t)}),e}),i.$formatters.push(function(t){if(xt(t))return t.join(r)}),i.$isEmpty=function(t){return!t||!t.length}}}}var xo=_o("",!0),Co=_o("Odd",0),ko=_o("Even",1),$o=Ar({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),So=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Eo={},To={blur:!0,focus:!0},Do=(mt("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(o){var s=En("ng-"+o);Eo[s]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(t,e){var i=n(e[s]);return function(n,t){t.on(o,function(t){function e(){i(n,{$event:t})}To[o]&&r.$$phase?n.$evalAsync(e):n.$apply(e)})}}}}]}),["$animate","$compile",function(l,u){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(t,n,i,e,r){var o,s,a;t.$watch(i.ngIf,function(t){t?s||r(function(t,e){s=e,t[t.length++]=u.$$createComment("end ngIf",i.ngIf),o={clone:t},l.enter(t,n.parent(),n)}):(a&&(a.remove(),a=null),s&&(s.$destroy(),s=null),o&&(a=Kt(o.clone),l.leave(a).done(function(t){!1!==t&&(a=null)}),o=null))})}}}]),Mo=["$templateRequest","$anchorScroll","$animate",function(m,g,v){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:b.noop,compile:function(t,e){var n=e.ngInclude||e.src,p=e.onload||"",f=e.autoscroll;return function(o,s,t,a,l){function u(){e&&(e.remove(),e=null),c&&(c.$destroy(),c=null),h&&(v.leave(h).done(function(t){!1!==t&&(e=null)}),e=h,h=null)}var c,e,h,d=0;o.$watch(n,function(n){function i(t){!1===t||!bt(f)||f&&!o.$eval(f)||g()}var r=++d;n?(m(n,!0).then(function(t){var e;o.$$destroyed||r===d&&(e=o.$new(),a.template=t,t=l(e,function(t){u(),v.enter(t,null,s).done(i)}),h=t,(c=e).$emit("$includeContentLoaded",n),o.$eval(p))},function(){o.$$destroyed||r===d&&(u(),o.$emit("$includeContentError",n))}),o.$emit("$includeContentRequested",n)):(u(),a.template=null)})}}}}],Ao=["$compile",function(r){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,e,n,i){v.call(e[0]).match(/SVG/)?(e.empty(),r(ye(i.template,x.document).childNodes)(t,function(t){e.append(t)},{futureParentElement:e})):(e.html(i.template),r(e.contents())(t))}}}],Oo=Ar({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),No="ng-valid",Po="ng-invalid",Ro="ng-pristine",Io="ng-dirty",Lo="ng-untouched",Ho="ng-touched",Fo="ng-not-empty",zo=E("ngModel");function Vo(t,e,n,i,r,o,s,a,l){var u;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=l(n.name||"",!1)(t),this.$$parentForm=Pr,this.$options=Uo,this.$$parsedNgModel=r(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,Object.defineProperty(this,"$$scope",{value:t}),this.$$attr=n,this.$$element=i,this.$$animate=o,this.$$timeout=s,this.$$parse=r,this.$$q=a,this.$$exceptionHandler=e,Vr(this),(u=this).$$scope.$watch(function(t){t=u.$$ngModelGet(t);if(t!==u.$modelValue&&(u.$modelValue==u.$modelValue||t==t)){u.$modelValue=u.$$rawModelValue=t,u.$$parserValid=void 0;for(var e=u.$formatters,n=e.length,i=t;n--;)i=e[n](i);u.$viewValue!==i&&(u.$$updateEmptyClasses(i),u.$viewValue=u.$$lastCommittedViewValue=i,u.$render(),u.$$runValidators(u.$modelValue,u.$viewValue,vt))}return t})}Vo.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Vo.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var n=this.$$parse(this.$$attr.ngModel+"()"),i=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var e=this.$$parsedNgModel(t);return e=Ct(e)?n(t):e},this.$$ngModelSet=function(t,e){Ct(this.$$parsedNgModel(t))?i(t,{$$$p:e}):this.$$parsedNgModelAssign(t,e)}}else if(!this.$$parsedNgModel.assign)throw zo("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Et(this.$$element))},$render:vt,$isEmpty:function(t){return yt(t)||""===t||null===t||t!=t},$$updateEmptyClasses:function(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,Fo),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,Fo))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Io),this.$$animate.addClass(this.$$element,Ro)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Ro),this.$$animate.addClass(this.$$element,Io),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,Lo,Ho)},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,Ho,Lo)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){var t,e,n,i,r,o;T(this.$modelValue)||(t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,i=this.$modelValue,r=this.$options.getOption("allowInvalid"),(o=this).$$runValidators(e,t,function(t){r||n===t||(o.$modelValue=t?e:void 0,o.$modelValue!==i&&o.$$writeModelToScope())}))},$$runValidators:function(n,i,e){this.$$currentValidationRunId++;var r,o,s,a=this.$$currentValidationRunId,l=this;function u(t,e){a===l.$$currentValidationRunId&&l.$setValidity(t,e)}function t(t){a===l.$$currentValidationRunId&&e(t)}!function(){var t=l.$$parserName||"parse";{if(!yt(l.$$parserValid))return l.$$parserValid||(mt(l.$validators,function(t,e){u(e,null)}),mt(l.$asyncValidators,function(t,e){u(e,null)})),u(t,l.$$parserValid),l.$$parserValid;u(t,null)}return 1}()||(r=!0,mt(l.$validators,function(t,e){t=Boolean(t(n,i));r=r&&t,u(e,t)}),!r&&(mt(l.$asyncValidators,function(t,e){u(e,null)}),1))?t(!1):(o=[],s=!0,mt(l.$asyncValidators,function(t,e){t=t(n,i);if(!q(t))throw zo("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",t);u(e,void 0),o.push(t.then(function(){u(e,!0)},function(){u(e,s=!1)}))}),o.length?l.$$q.all(o).then(function(){t(s)},vt):t(!0))},$commitViewValue:function(){var t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var e=this.$$lastCommittedViewValue,n=this;if(this.$$parserValid=!yt(e)||void 0,this.$$parserValid)for(var t=0;t<this.$parsers.length;t++)if(yt(e=this.$parsers[t](e))){this.$$parserValid=!1;break}T(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$
1scope));var i=this.$modelValue,r=this.$options.getOption("allowInvalid");function o(){n.$modelValue!==i&&n.$$writeModelToScope()}this.$$rawModelValue=e,r&&(this.$modelValue=e,o()),this.$$runValidators(e,this.$$lastCommittedViewValue,function(t){r||(n.$modelValue=t?e:void 0,o())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),mt(this.$viewChangeListeners,function(t){try{t()}catch(t){this.$$exceptionHandler(t)}},this)},$setViewValue:function(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)},$$debounceViewValueCommit:function(t){var e=this.$options.getOption("debounce"),n=(_(e[t])?e=e[t]:_(e.default)&&(e=e.default),this.$$timeout.cancel(this.$$pendingDebounce),this);0<e?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},e):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(t){this.$options=this.$options.createChild(t)}},jr({clazz:Vo,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]}});var jo=["$rootScope",function(s){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Vo,priority:1,compile:function(t){return t.addClass(Ro).addClass(Lo).addClass(No),{pre:function(t,e,n,i){var r=i[0],o=i[1]||r.$$parentForm,i=i[2];
1i&&(r.$options=i.$options),r.$$initGetterSetters(),o.$addControl(r),n.$observe("name",function(t){r.$name!==t&&r.$$parentForm.$$renameControl(r,t)}),t.$on("$destroy",function(){r.$$parentForm.$removeControl(r)})},post:function(t,e,n,i){var r=i[0];function o(){r.$setTouched()}r.$options.getOption("updateOn")&&e.on(r.$options.getOption("updateOn"),function(t){r.$$debounceViewValueCommit(t&&t.type)}),e.on("blur",function(){r.$touched||(s.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}],Wo=/(\s+|^)default(\s+|$)/;function Bo(t){this.$$options=t}Bo.prototype={getOption:function(t){return this.$$options[t]},createChild:function(n){var i=!1;return mt(n=gt({},n),function(t,e){"$inherit"===t?"*"===e?i=!0:(n[e]=this.$$options[e],"updateOn"===e&&(n.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===e&&(n.updateOnDefault=!1,n[e]=kt(t.replace(Wo,function(){return n.updateOnDefault=!0," "})))},this),i&&(delete n["*"],Yo(n,this.$$options)),Yo(n,Uo.$$options),new Bo(n)}};function qo(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=["$attrs","$scope"],t.prototype={$onInit:function(){var t=this.parentCtrl?this.parentCtrl.$options:Uo,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}}var Uo=new Bo({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});function Yo(n,t){mt(t,function(t,e){bt(n[e])||(n[e]=t)})}var Go=Ar({terminal:!0,priority:1e3}),Ko=E("ngOptions"),Xo=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Zo=["$compile","$document","$parse",function(v,y,w){var b=x.document.createElement("option"),_=x.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,i){i[0].registerOption=vt},post:function(t,o,e,n){for(var s=n[0],a=n[1],l=e.multiple,i=0,r=o.children(),u=r.length;i<u;i++)if(""===r[i].value){s.hasEmptyOption=!0,s.emptyOption=r.eq(i);break}var c,h=!!s.emptyOption,d=(ft(b.cloneNode(!1)).val("?"),function(t,e,u){var n,i,r,c,o,h,s,d,p,f,m,g,v,a,y,l=t.match(Xo);if(l)return n=l[5]||l[7],i=l[6],r=/ as /.test(l[0])&&l[1],c=l[9],o=w(l[2]?l[1]:n),h=r&&w(r)||o,s=c&&w(c),d=c?function(t,e){return s(u,e)}:function(t){return qe(t)},p=function(t,e){return d(t,y(t,e))},f=w(l[2]||l[1]),m=w(l[3]||""),g=w(l[4]||""),v=w(l[8]),a={},y=i?function(t,e){return a[i]=e,a[n]=t,a}:function(t){return a[n]=t,a},{trackBy:c,getTrackByValue:p,getWatchables:w(v,function(t){for(var e=[],n=_(t=t||[]),i=n.length,r=0;r<i;r++){var o=t===n?r:n[r],s=t[o],o=y(s,o),s=d(s,o);e.push(s),(l[2]||l[1])&&(s=f(u,o),e.push(s)),l[4]&&(s=g(u,o),e.push(s))}return e}),getOptions:function(){for(var t=[],e={},n=v(u)||[],i=_(n),r=i.length,o=0;o<r;o++){var s=n===i?o:i[o],a=n[s],a=y(a,s),s=h(u,a),l=d(s,a),s=new b(l,s,f(u,a),m(u,a),g(u,a));t.push(s),e[l]=s}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[p(t)]},getViewValueFromOption:function(t){return c?X(t.viewValue):t.viewValue}}}};throw Ko("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Et(e));function b(t,e,n,i,r){this.selectValue=t,this.viewValue=e,this.label=n,this.group=i,this.disabled=r}function _(t){var e;if(!i&&P(t))e=t;else for(var n in e=[],t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n);return e}}(e.ngOptions,o,t)),p=y[0].createDocumentFragment();function f(t,e){var n=b.cloneNode(!1),e=(e.appendChild(n),t),t=n;(e.element=t).disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}function m(t){var t=c.getOptionFromViewValue(t),e=t&&t.element;return e&&!e.selected&&(e.selected=!0),t}function g(){var t=c&&s.readValue();if(c)for(var e=c.items.length-1;0<=e;e--){var n=c.items[e];bt(n.group)?Ne(n.element.parentNode):Ne(n.element)}c=d.getOptions();var i,r={};
1h&&o.prepend(s.emptyOption),c.items.forEach(function(t){var e;bt(t.group)?((e=r[t.group])||(e=_.cloneNode(!1),p.appendChild(e),e.label=null===t.group?"null":t.group,r[t.group]=e),f(t,e)):f(t,p)}),o[0].appendChild(p),a.$render(),a.$isEmpty(t)||(i=s.readValue(),d.trackBy||l?St(t,i):t===i)||(a.$setViewValue(i),a.$render())}s.generateUnknownOptionValue=function(t){return"?"},l?(s.writeValue=function(t){var e=t&&t.map(m)||[];c.items.forEach(function(t){t.element.selected&&!K(e,t)&&(t.element.selected=!1)})},s.readValue=function(){var t=o.val()||[],e=[];return mt(t,function(t){t=c.selectValueMap[t];t&&!t.disabled&&e.push(c.getViewValueFromOption(t))}),e},d.trackBy&&t.$watchCollection(function(){if(xt(a.$viewValue))return a.$viewValue.map(function(t){return d.getTrackByValue(t)})},function(){a.$render()})):(s.writeValue=function(t){var e=c.selectValueMap[o.val()],n=c.getOptionFromViewValue(t);e&&e.element.removeAttribute("selected"),n?(o[0].value!==n.selectValue&&(s.removeUnknownOption(),s.unselectEmptyOption(),o[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):h?s.selectEmptyOption():s.unknownOption.parent().length?s.updateUnknownOption(t):s.renderUnknownOption(t)},s.readValue=function(){var t=c.selectValueMap[o.val()];return t&&!t.disabled?(s.unselectEmptyOption(),s.removeUnknownOption(),c.getViewValueFromOption(t)):null},d.trackBy&&t.$watch(function(){return d.getTrackByValue(a.$viewValue)},function(){a.$render()})),h&&(s.emptyOption.remove(),v(s.emptyOption)(t),s.emptyOption[0].nodeType===Jt?(s.hasEmptyOption=!1,s.registerOption=function(t,e){""===e.val()&&(s.hasEmptyOption=!0,s.emptyOption=e,s.emptyOption.removeClass("ng-scope"),a.$render(),e.on("$destroy",function(){s.hasEmptyOption=!1,s.emptyOption=void 0}))}):s.emptyOption.removeClass("ng-scope")),o.empty(),g(),t.$watchCollection(d.getWatchables,g)}}}}],Qo=["$locale","$interpolate","$log",function(f,m,g){var v=/{}/g,y=/^when(Minus)?(.+)$/;return{link:function(i,r,o){var s,t=o.count,a=o.$attr.when&&r.attr(o.$attr.when),l=o.offset||0,u=i.$eval(a)||{},c={},e=m.startSymbol(),n=m.endSymbol(),h=e+t+"-"+l+n,d=b.noop;function p(t){r.text(t||"")}mt(o,function(t,e){var n=y.exec(e);n&&(n=(n[1]?"-":"")+S(n[2]),u[n]=r.attr(o.$attr[e]))}),mt(u,function(t,e){c[e]=m(t.replace(v,h))}),i.$watch(t,function(t){var e=parseFloat(t),n=T(e);(e=n||e in u?e:f.pluralCat(e-l))===s||n&&T(s)||(d(),yt(n=c[e])?(null!=t&&g.debug("ngPluralize: no rule defined for '"+e+"' in "+a),d=vt,p()):d=i.$watch(n,p),s=e)})}}}],Jo=["$parse","$animate","$compile",function(a,M,l){function A(t,e,n,i,r,o,s){t[n]=i,r&&(t[r]=o),t.$index=e,t.$first=0===e,t.$last=e===s-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))}var O="$$NG_REMOVED",N=E("ngRepeat");return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,e){var x=e.ngRepeat,C=l.$$createComment("end ngRepeat",x),e=x.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!e)throw N("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",x);var n=e[1],i=e[2],k=e[3],r=e[4];if(!(e=n.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw N("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",n);var o,$,S,E,s,T=e[3]||e[1],D=e[2];if(!k||/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(k)&&!/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(k))return s={$id:qe},r?o=a(r):(S=function(t,e){return qe(e)},E=function(t){return t}),function(y,b,t,e,_){o&&($=function(t,e,n){return D&&(s[D]=t),s[T]=e,s.$index=n,o(y,s)});var w=Tt();y.$watchCollection(i,function(t){var n,e,i,r,o,s,a,l,u,c,h,d,p,f,m=b[0],g=Tt();if(k&&(y[k]=t),P(t))u=t,l=$||S;else for(var v in l=$||E,u=[],t)W.call(t,v)&&"$"!==v.charAt(0)&&u.push(v);for(r=u.length,h=new Array(r),n=0;n<r;n++)if(o=t===u?n:u[n],s=t[o],a=l(o,s,n),w[a])c=w[a],delete w[a],g[a]=c,h[n]=c;else{if(g[a])throw mt(h,function(t){t&&t.scope&&(w[t.id]=t)}),N("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",x,a,s);h[n]={id:a,scope:void 0,clone:void 0},g[a]=!0}for(p in w){if(d=Kt((c=w[p]).clone),M.leave(d),d[0].parentNode)for(n=0,e=d.length;n<e;n++)d[n][O]=!0;c.scope.$destroy()}for(n=0;n<r;n++)if(o=t===u?n:u[n],s=t[o],(c=h[n]).scope){for(i=m;(i=i.nextSibling)&&i[O];);c.clone[0]!==i&&M.move(Kt(c.clone),null,m),m=(f=c).clone[f.clone.length-1],A(c.scope,n,T,s,D,o,r)}else _(function(t,e){c.scope=e;e=C.cloneNode(!1);t[t.length++]=e,M.enter(t,null,m),m=e,c.clone=t,g[c.id]=c,A(c.scope,n,T,s,D,o,r)});w=g})};throw N("badident","alias '{0}
1' is invalid --- must be a valid JS identifier which is not a reserved name.",k)}}}],ts="ng-hide-animate",es=["$animate",function(i){return{restrict:"A",multiElement:!0,link:function(t,e,n){t.$watch(n.ngShow,function(t){i[t?"removeClass":"addClass"](e,"ng-hide",{tempClasses:ts})})}}}],ns=["$animate",function(i){return{restrict:"A",multiElement:!0,link:function(t,e,n){t.$watch(n.ngHide,function(t){i[t?"addClass":"removeClass"](e,"ng-hide",{tempClasses:ts})})}}}],is=Ar(function(t,n,e){t.$watch(e.ngStyle,function(t,e){e&&t!==e&&mt(e,function(t,e){n.css(e,"")}),t&&n.css(t)},!0)}),rs=["$animate","$compile",function(u,c){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,e,n,r){var o,n=n.ngSwitch||n.on,s=[],a=[],l=[];t.$watch(n,function(t){for(var e,n;a.length;)u.cancel(a.pop());for(e=0,n=l.length;e<n;++e){var i=Kt(s[e].clone);l[e].$destroy(),(a[e]=u.leave(i)).done(function(e,n){return function(t){!1!==t&&e.splice(n,1)}}(a,e))}s.length=0,l.length=0,(o=r.cases["!"+t]||r.cases["?"])&&mt(o,function(n){n.transclude(function(t,e){l.push(e);e=n.element;t[t.length++]=c.$$createComment("end ngSwitchWhen"),s.push({clone:t}),u.enter(t,e.parent(),e)})})})}}}],os=Ar({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){mt(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(t,e,n){return n[e-1]!==t}),function(t){i.cases["!"+t]=i.cases["!"+t]||[],i.cases["!"+t].push({transclude:r,element:e})})}}),ss=Ar({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:e})}}),as=E("ngTransclude"),ls=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var s=e(t.contents());return t.empty(),function(t,n,e,i,r){if(!r)throw as("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Et(n));e.ngTransclude===e.$attr.ngTransclude&&(e.ngTransclude="");e=e.ngTransclude||e.ngTranscludeSlot;function o(){s(t,function(t){n.append(t)})}r(function(t,e){t.length&&function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e];if(i.nodeType!==Qt||i.nodeValue.trim())return 1}}(t)?n.append(t):(o(),e.$destroy())},null,e),e&&!r.isSlotFilled(e)&&o()}}}}],us=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,e){"text/ng-template"===e.type&&(e=e.id,t=t[0].text,n.put(e,t))}}}],cs={$setViewValue:vt,$render:vt};function hs(t,e){t.prop("selected",e),t.attr("selected",e)}function ds(){return{restrict:"E",require:["select","?ngModel"],controller:ys,priority:1,link:{pre:function(t,i,e,n){var r,o,s=n[0],a=n[1];a?(s.ngModelCtrl=a,i.on("change",function(){s.removeUnknownOption(),t.$apply(function(){a.$setViewValue(s.readValue())})}),e.multiple&&(s.multiple=!0,s.readValue=function(){var e=[];return mt(i.find("option"),function(t){t.selected&&!t.disabled&&(t=t.value,e.push(t in s.selectValueMap?s.selectValueMap[t]:t))}),e},s.writeValue=function(n){mt(i.find("option"),function(t){var e=!!n&&(K(n,t.value)||K(n,s.selectValueMap[t.value]));e!==t.selected&&hs(ft(t),e)})},o=NaN,t.$watch(function(){o!==a.$viewValue||St(r,a.$viewValue)||(r=C(a.$viewValue),a.$render()),o=a.$viewValue}),a.$isEmpty=function(t){return!t||0===t.length})):s.registerOption=vt},post:function(t,e,n,i){var r,o=i[1];o&&(r=i[0],o.$render=function(){r.writeValue(o.$viewValue)})}}}}function ps(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){i&&(n.required=!0,i.$validators.required=function(t,e){return!n.required||!i.$isEmpty(e)},n.$observe("required",function(){i.$validate()}))}}}function fs(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){var r,o;i&&(o=n.ngPattern||n.pattern,n.$observe("pattern",function(t){if((t=wt(t)&&0<t.length?new RegExp("^"+t+"$"):t)&&!t.test)throw E("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",o,t,Et(e));r=t||void 0,i.$validate()}),i.$validators.pattern=function(t,e){return i.$isEmpty(e)||yt(r)||r.test(e)})}}}function ms(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){var r;i&&(r=-1,n.$observe("maxlength",function(t){t=y(t);r=T(t)?-1:t,i.$validate()}),i.$validators.maxlength=function(t,e){return r<0||i.$isEmpty(e)||e.length<=r})}}}function gs(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){var r;i&&(r=0,n.$observe("minlength",function(t){r=y(t)||0,i.$validate()}),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=r})}}}var vs,ys=["$element","$scope",function(n,e){var a=this,i=new Ge,t=(a.selectValueMap={},a.ngModelCtrl=cs,a.multiple=!1,a.unknownOption=ft(x.document.createElement("option")),a.hasEmptyOption=!1,a.emptyOption=void 0,a.renderUnknownOption=function(t){t=a.generateUnknownOptionValue(t);a.unknownOption.val(t),n.prepend(a.unknownOption),hs(a.unknownOption,!0),n.val(t)},a.updateUnknownOption=function(t){t=a.generateUnknownOptionValue(t);a.unknownOption.val(t),hs(a.unknownOption,!0),n.val(t)},a.generateUnknownOptionValue=function(t){return"? "+qe(t)+" ?"},a.removeUnknownOption=function(){a.unknownOption.parent()&&a.unknownOption.remove()},a.selectEmptyOption=function(){a.emptyOption&&(n.val(""),hs(a.emptyOption,!0))},a.unselectEmptyOption=function(){a.hasEmptyOption&&a.emptyOption.removeAttr("selected")},e.$on("$destroy",function(){a.renderUnknownOption=vt}),a.readValue=function(){var t=n.val(),t=t in a.selectValueMap?a.selectValueMap[t]:t;return a.hasOption(t)?t:null},a.writeValue=function(t){var e=n[0].options[n[0].selectedIndex];e&&hs(ft(e),!1),a.hasOption(t)?(a.removeUnknownOption(),e=qe(t),n.val(e in a.selectValueMap?e:t),e=n[0].options[n[0].selectedIndex],hs(ft(e),!0)):null==t&&a.emptyOption?(a.removeUnknownOption(),a.selectEmptyOption()):a.unknownOption.parent().length?a.updateUnknownOption(t):a.renderUnknownOption(t)},a.addOption=function(t,e){e[0].nodeType!==Jt&&(Yt(t,'"option value"'),""===t&&(a.hasEmptyOption=!0,a.emptyOption=e),e=i.get(t)||0,i.set(t,e+1),l())},a.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.delete(t),""===t&&(a.hasEmptyOption=!1,a.emptyOption=void 0)):i.set(t,e-1))},!(a.hasOption=function(t){return!!i.get(t)}));function l(){t||(t=!0,e.$$postDigest(function(){t=!1,a.ngModelCtrl.$render()}))}var r=!1;function u(t){r||(r=!0,e.$$postDigest(function(){e.$$destroyed||(r=!1,a.ngModelCtrl.$setViewValue(a.readValue()),t&&a.ngModelCtrl.$render())}))}a.registerOption=function(t,i,r,e,n){var o,s;r.$attr.ngValue?(s=NaN,r.$observe("value",function(t){var e,n=i.prop("selected");bt(s)&&(a.removeOption(o),delete a.selectValueMap[s],e=!0),s=qe(t),o=t,a.selectValueMap[s]=t,a.addOption(t,i),i.attr("value",s),e&&n&&u()})):e?r.$observe("value",function(t){a.readValue();var e,n=i.prop("selected");bt(o)&&(a.removeOption(o),e=!0),o=t,a.addOption(t,i),e&&n&&u()}):n?t.$watch(n,function(t,e){r.$set("value",t);var n=i.prop("selected");e!==t&&a.removeOption(e),a.addOption(t,i),e&&n&&u()}):a.addOption(r.value,i),r.$observe("disabled",function(t){("true"===t||t&&i.prop("selected"))&&(a.multiple?u(!0):(a.ngModelCtrl.$setViewValue(null),a.ngModelCtrl.$render()))}),i.on("$destroy",function(){var t=a.readValue(),e=r.value;a.removeOption(e),l(),(a.multiple&&t&&-1!==t.indexOf(e)||t===e)&&u(!0)})}}],bs=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,e){var o,s;return bt(e.ngValue)||(bt(e.value)?o=n(e.value,!0):(s=n(t.text(),!0))||e.$set("value",t.text())),function(t,e,n){var i="$selectController",r=e.parent(),r=r.data(i)||r.parent().data(i);r&&r.registerOption(t,e,n,o,s)}}}}];x.angular.bootstrap?x.console&&console.log("WARNING: Tried to load angular more than once."):(Bt||(D=Q(),(r=yt(D)?x.jQuery:D?x[D]:void 0)&&r.fn.on?(gt((ft=r).fn,{scope:Re.scope,isolateScope:Re.isolateScope,controller:Re.controller,injector:Re.injector,inheritedData:Re.inheritedData}),vs=r.cleanData,r.cleanData=function(t){for(var e,n,i=0;null!=(n=t[i]);i++)(e=r._data(n,"events"))&&e.$destroy&&r(n).triggerHandler("$destroy");vs(t)}):ft=a,b.element=ft,Bt=!0),gt(b,{errorHandlingConfig:n,bootstrap:Ft,copy:X,extend:gt,merge:F,equals:St,element:ft,forEach:mt,injector:on,noop:vt,bind:Ht,toJson:et,fromJson:nt,identity:Ot,isUndefined:yt,isDefined:bt,isString:wt,isFunction:Ct,isObject:_t,isNumber:_,isElement:G,isArray:xt,ver
1sion:ie,isDate:w,lowercase:S,uppercase:k,callbacks:{$$counter:0},getTestability:Vt,reloadWithDebugInfo:zt,$$minErr:E,$$csp:Z,$$encodeUriSegment:ut,$$encodeUriQuery:o,$$stringify:Xt}),(m=ee(x))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Bi}),t.provider("$compile",Cn).directive({a:Or,input:fo,textarea:fo,form:Fr,script:us,select:ds,option:bs,ngBind:go,ngBindHtml:yo,ngBindTemplate:vo,ngClass:xo,ngClassEven:ko,ngClassOdd:Co,ngCloak:$o,ngController:So,ngForm:zr,ngHide:ns,ngIf:Do,ngInclude:Mo,ngInit:Oo,ngNonBindable:Go,ngPluralize:Qo,ngRepeat:Jo,ngShow:es,ngStyle:is,ngSwitch:rs,ngSwitchWhen:os,ngSwitchDefault:ss,ngOptions:Zo,ngTransclude:ls,ngModel:jo,ngList:wo,ngChange:bo,pattern:fs,ngPattern:fs,required:ps,ngRequired:ps,minlength:gs,ngMinlength:gs,maxlength:ms,ngMaxlength:ms,ngValue:po,ngModelOptions:qo}).directive({ngInclude:Ao}).directive(Nr).directive(Eo),t.provider({$anchorScroll:sn,$animate:vn,$animateCss:gn,$$animateJs:dn,$$animateQueue:pn,$$AnimateRunner:mn,$$animateAsyncRun:fn,$browser:bn,$cacheFactory:_n,$controller:On,$document:Nn,$$isDocumentHidden:Pn,$exceptionHandler:Rn,$filter:lr,$$forceReflow:In,$interpolate:ei,$interval:ni,$http:Zn,$httpParamSerializer:Bn,$httpParamSerializerJQLike:qn,$httpBackend:Jn,$xhrFactory:Qn,$jsonpCallbacks:ii,$location:wi,$log:xi,$parse:Hi,$rootScope:Wi,$q:Fi,$$q:zi,$sce:Xi,$sceDelegate:Ki,$sniffer:Zi,$templateCache:wn,$templateRequest:Ji,$$testability:tr,$timeout:er,$window:or,$$rAF:ji,$$jqLite:Be,$$Map:Ke,$$cookieReader:ar})}]).info({angularVersion:"1.6.4"}),b.module("ngLocale",[],["$provide",function(t){var o="one",s="other";t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var n,i,r=0|t;return t=t,void 0===(e=e)&&(e=Math.min((i=t,-1==(n=(i+="").indexOf("."))?0:i.length-n-1),3)),i=Math.pow(10,e),1==r&&0=={v:e,f:(t*i|0)%i}.v?o:s}})}]),ft(function(){pt(x.document,Ft)}))}(window),window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),!function(u,t){"use strict";var J,tt,I=1,et="-add",nt="-remove",vt="ng-",C="ng-animate",L="$$ngAnimateChildren",yt=void 0===u.ontransitionend&&void 0!==u.onwebkittransitionend?(J="WebkitTransition","webkitTransitionEnd transitionend"):(J="transition","transitionend"),bt=void 0===u.onanimationend&&void 0!==u.onwebkitanimationend?(tt="WebkitAnimation","webkitAnimationEnd animationend"):(tt="animation","animationend"),i="Duration",_t="TimingFunction",o="PlayState",n=tt+"Delay",it=tt+i,r=J+"Delay",e=J+i,s=t.$$minErr("ng");function d(t,e,n){if(!t)throw s("areq","Argument '{0}' is {1}",e||"?",n||"required")}function k(t,e){return t||e?t?e?(t=mt(t)?t.join(" "):t)+" "+(e=mt(e)?e.join(" "):e):t:e:""}function rt(t,n,i){var r="";return t=mt(t)?t:t&&j(t)&&t.length?t.split(/\s+/):[],ft(t,function(t,e){t&&0<t.length&&(r=r+(0<e?" ":"")+(i?n+t:t+n))}),r}function U(t){if(t instanceof B)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===I)return t;break;default:return B(c(t))}if(t.nodeType===I)return B(t)}function c(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===I)return n}}function H(s){return function(t,e){var n,i,r,o;e.addClass&&(n=s,i=e.addClass,ft(t,function(t){n.addClass(t,i)}),e.addClass=null),e.removeClass&&(r=s,o=e.removeClass,ft(t,function(t){r.removeClass(t,o)}),e.removeClass=null)}}function ot(t){var e;return(t=t||{}).$$prepared||(e=t.domOperation||gt,t.domOperation=function(){t.$$domOperationFired=!0,e(),e=gt},t.$$prepared=!0),t}function st(t,e){wt(t,e),xt(t,e)}function wt(t,e){e.from&&(t.css(e.from),e.from=null)}function xt(t,e){e.to&&(t.css(e.to),e.to=null)}function F(t,e,n){var r,i,o,s=e.options||{},n=n.options||{},a=(s.addClass||"")+" "+(n.addClass||""),l=(s.removeClass||"")+" "+(n.removeClass||""),l=(r=t.attr("class"),t=a,a=l,i={},r=u(r),t=u(t),ft(t,function(t,e){i[e]=1}),a=u(a),ft(a,function(t,e){i[e]=1===i[e]?null:-1}),o={addClass:"",removeClass:""},ft(i,function(t,e){var n,i;1===t?(n="addClass",i=!r[e]||r[e+nt]):-1===t&&(n="removeClass",i=r[e]||r[e+et]),i&&(o[n].length&&(o[n]+=" "),o[n]+=e)}),o);
1function u(t){j(t)&&(t=t.split(" "));var e={};return ft(t,function(t){t.length&&(e[t]=!0)}),e}n.preparationClasses&&(s.preparationClasses=z(n.preparationClasses,s.preparationClasses),delete n.preparationClasses);t=s.domOperation!==gt?s.domOperation:null;return f(s,n),t&&(s.domOperation=t),s.addClass=l.addClass||null,s.removeClass=l.removeClass||null,e.addClass=s.addClass,e.removeClass=s.removeClass,s}function at(t){return t instanceof B?t[0]:t}function lt(t,e){e=e?"-"+e+"s":"";ct(t,[r,e])}function ut(t,e){var e=e?"paused":"",n=tt+o;return ct(t,[n,e]),[n,e]}function ct(t,e){var n=e[0],e=e[1];t.style[n]=e}function z(t,e){return t?e?t+" "+e:t:e}var a=["$interpolate",function(o){return{link:function(t,e,n){var i=n.ngAnimateChildren;function r(t){e.data(L,t="on"===t||"true"===t)}j(i)&&0===i.length?e.data(L,!0):(r(o(i)(t)),n.$observe("ngAnimateChildren",r))}}}],ht="$$animateCss",l={transitionDuration:e,transitionDelay:r,transitionProperty:J+"Property",animationDuration:it,animationDelay:n,animationIterationCount:tt+"IterationCount"},Ct={transitionDuration:e,transitionDelay:r,animationDuration:it,animationDelay:n};function dt(t,e){return[e?n:r,t+"s"]}function kt(t,e,n){var r=Object.create(null),o=t.getComputedStyle(e)||{};return ft(n,function(t,e){var n,i,t=o[t];t&&(("-"===(n=t.charAt(0))||"+"===n||0<=n)&&(i=0,n=(n=t).split(/\s*,\s*/),ft(n,function(t){"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,i=i?Math.max(t,i):t}),t=i),0===t&&(t=null),r[e]=t)}),r}function pt(t){return 0===t||null!=t}function $t(t,e){var n=J,t=t+"s";return e?n+=i:t+=" linear all",[n,t]}function p(){var n=Object.create(null);return{flush:function(){n=Object.create(null)},count:function(t){t=n[t];return t?t.total:0},get:function(t){t=n[t];return t&&t.value},put:function(t,e){n[t]?n[t].total++:n[t]={total:1,value:e}}}}function St(e,n,t){ft(t,function(t){e[t]=Y(e[t])?e[t]:n.style.getPropertyValue(t)})}var Et,f,ft,mt,Y,h,_,V,j,W,B,gt,e=["$animateProvider",function(t){var Z=p(),Q=p();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(V,j,W,B,n,q,e,U){var Y=H(j),r=0;function G(t,e){var n="$$ngAnimateParentKey",i=t.parentNode;return(i[n]||(i[n]=++r))+"-"+t.getAttribute("class")+"-"+e}var i=[];function K(t){i.push(t),e.waitUntilQuiet(function(){Z.flush(),Q.flush();for(var t=n(),e=0;e<i.length;e++)i[e](t);i.length=0})}function X(t,e,n){t=t,n=n,r=l,(i=Z.get(n))||"infinite"===(i=kt(V,t,r)).animationIterationCount&&(i.animationIterationCount=1),Z.put(n,i);var i,t=i,r=t.animationDelay,n=t.transitionDelay;return t.maxDelay=r&&n?Math.max(r,n):r||n,t.maxDuration=Math.max(t.animationDuration*t.animationIterationCount,t.transitionDuration),t}return function(s,t){var a=t||{},l=(a.$$prepared||(a=ot(Et(a))),{}),u=at(s);if(!u||!u.parentNode||!U.enabled())return R();var c,i,r,n,h,d,p,f,m=[],t=s.attr("class"),e=(w={},(e=a)&&(e.to||e.from)&&(w.to=e.to,w.from=e.from),w),g=[];if(0===a.duration||!q.animations&&!q.transitions)return R();var v,y,o,b,_,w=a.event&&mt(a.event)?a.event.join(" "):a.event,x="",C="",k=(w&&a.structural?x=rt(w,vt,!0):w&&(x=w),a.addClass&&(C+=rt(a.addClass,et)),a.removeClass&&(C.length&&(C+=" "),C+=rt(a.removeClass,nt)),a.applyClassesEarly&&C.length&&Y(s,a),[x,C].join(" ").trim()),$=t+" "+k,I=rt(k,"-active"),w=e.to&&0<Object.keys(e.to).length;if(!(0<(a.keyframeStyle||"").length)&&!w&&!k)return R();y=0<a.stagger?{transitionDelay:x=parseFloat(a.stagger),animationDelay:x,transitionDuration:0,animationDuration:0}:(v=G(u,$),t=u,e=k,x=v,b=Ct,0<Z.count(x)&&((o=Q.get(x))||(e=rt(e,"-stagger"),j.addClass(t,e),(o=kt(V,t,b)).animationDuration=Math.max(o.animationDuration,0),o.transitionDuration=Math.max(o.transitionDuration,0),j.removeClass(t,e),Q.put(x,o))),o||{}),a.$$skipPreparationClasses||j.addClass(s,k),a.transitionStyle&&(b=[J,a.transitionStyle],ct(u,b),m.push(b)),0<=a.duration&&(_=0<u.style[J].length,t=$t(a.duration,_),ct(u,t),m.push(t)),a.keyframeStyle&&(e=[tt,a.keyframeStyle],ct(u,e),m.push(e));var S,E=y?0<=a.staggerIndex?a.staggerIndex:Z.count(v):0,x=0===E,T=(x&&
1!a.skipBlocking&&lt(u,9999),X(u,0,v)),D=T.maxDelay,M=Math.max(D,0),A=T.maxDuration,O={};return O.hasTransitions=0<T.transitionDuration,O.hasAnimations=0<T.animationDuration,O.hasTransitionAll=O.hasTransitions&&"all"===T.transitionProperty,O.applyTransitionDuration=w&&(O.hasTransitions&&!O.hasTransitionAll||O.hasAnimations&&!O.hasTransitions),O.applyAnimationDuration=a.duration&&O.hasAnimations,O.applyTransitionDelay=pt(a.delay)&&(O.applyTransitionDuration||O.hasTransitions),O.applyAnimationDelay=pt(a.delay)&&O.hasAnimations,O.recalculateTimingStyles=0<C.length,(O.applyTransitionDuration||O.applyAnimationDuration)&&(A=a.duration?parseFloat(a.duration):A,O.applyTransitionDuration&&(O.hasTransitions=!0,T.transitionDuration=A,_=0<u.style[J+"Property"].length,m.push($t(A,_))),O.applyAnimationDuration)&&(O.hasAnimations=!0,T.animationDuration=A,m.push([it,A+"s"])),0!==A||O.recalculateTimingStyles?(null!=a.delay&&("boolean"!=typeof a.delay&&(S=parseFloat(a.delay),M=Math.max(S,0)),O.applyTransitionDelay&&m.push(dt(S)),O.applyAnimationDelay)&&m.push(dt(S,!0)),null==a.duration&&0<T.transitionDuration&&(O.recalculateTimingStyles=O.re
1calculateTimingStyles||x),d=1e3*M,p=1e3*A,a.skipBlocking||(O.blockTransition=0<T.transitionDuration,O.blockKeyframeAnimation=0<T.animationDuration&&0<y.animationDelay&&0===y.animationDuration),a.from&&(a.cleanupStyles&&St(l,u,Object.keys(a.from)),wt(s,a)),O.blockTransition||O.blockKeyframeAnimation?H(A):a.skipBlocking||lt(u,!1),{$$willAnimate:!0,end:N,start:function(){if(!c)return n=new W(h={end:N,cancel:L,resume:null,pause:null}),K(z),n}}):R();function N(){P()}function L(){P(!0)}function P(t){var e;c||r&&i||(i=!(c=!0),a.$$skipPreparationClasses||j.removeClass(s,k),j.removeClass(s,I),ut(u,!1),lt(u,!1),ft(m,function(t){u.style[t[0]]=""}),Y(s,a),st(s,a),Object.keys(l).length&&ft(l,function(t,e){t?u.style.setProperty(e,t):u.style.removeProperty(e)}),a.onDone&&a.onDone(),g&&g.length&&s.off(g.join(" "),F),(e=s.data(ht))&&(B.cancel(e[0].timer),s.removeData(ht)),n&&n.complete(!t))}function H(t){O.blockTransition&&lt(u,t),O.blockKeyframeAnimation&&ut(u,!!t)}function R(){return n=new W({end:N,cancel:L}),K(gt),P(),{$$willAnimate:!1,start:function(){return n},end:N}}function F(t){t.stopPropagation();var t=t.originalEvent||t,e=t.$manualTimeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3));Math.max(e-f,0)>=d&&A<=t&&(r=!0,P())}function z(){var t,e;function n(){if(!c){if(H(!1),ft(m,function(t){var e=t[0],t=t[1];u.style[e]=t}),Y(s,a),j.addClass(s,I),O.recalculateTimingStyles){if($=u.getAttribute("class")+" "+k,v=G(u,$),T=X(u,0,v),D=T.maxDelay,M=Math.max(D,0),0===(A=T.maxDuration))return void P();O.hasTransitions=0<T.transitionDuration,O.hasAnimations=0<T.animationDuration}O.applyAnimationDelay&&(D="boolean"!=typeof a.delay&&pt(a.delay)?parseFloat(a.delay):D,M=Math.max(D,0),T.animationDelay=D,S=dt(D,!0),m.push(S),u.style[S[0]]=S[1]),d=1e3*M,p=1e3*A,a.easing&&(n=a.easing,O.hasTransitions&&(e=J+_t,m.push([e,n]),u.style[e]=n),O.hasAnimations)&&(e=tt+_t,m.push([e,n]),u.style[e]=n),T.transitionDuration&&g.push(yt),T.animationDuration&&g.push(bt),f=Date.now();var t,e=d+1.5*p,n=f+e,i=s.data(ht)||[],r=!0;i.length&&((r=n>(t=i[0]).expectedEndTime)?B.cancel(t.timer):i.push(P)),r&&(t=B(o,e,!1),i[0]={timer:t,expectedEndTime:n},i.push(P),s.data(ht,i)),g.length&&s.on(g.join(" "),F),a.to&&(a.cleanupStyles&&St(l,u,Object.keys(a.to)),xt(s,a))}}function o(){var t=s.data(ht);if(t){for(var e=1;e<t.length;e++)t[e]();s.removeData(ht)}}c||(u.parentNode?(t=function(t){var e,n;r?i&&t&&(i=!1,P()):(i=!t,T.animationDuration&&(t=ut(u,i),i?m.push(t):(t=t,n=(e=m).indexOf(t),0<=t&&e.splice(n,1))))},(e=0<E&&(T.transitionDuration&&0===y.transitionDuration||T.animationDuration&&0===y.animationDuration)&&Math.max(y.animationDelay,y.transitionDelay))?B(n,Math.floor(e*E*1e3),!1):n(),h.resume=function(){t(!0)},h.pause=function(){t(!1)}):P())}}}]}],m=["$$animationProvider",function(t){t.drivers.push("$$animateCssDriver");var v="ng-animate-shim",y="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(h,t,d,e,n,i,r){var p,f;return n.animations||n.transitions?(p=r[0].body,n=at(e),f=B((r=n).parentNode&&11===r.parentNode.nodeType||p.contains(n)?n:p),function(t){{var e,n,i,r,o,s;if(t.from&&t.to)return e=t.from,n=t.to,t.classes,i=t.anchors,r=a(e),o=a(n),s=[],ft(i,function(t){t=function(e,n){var i=B(at(e).cloneNode(!0)),r=m(l(i));e.addClass(v),n.addClass(v),i.addClass("ng-anchor"),f.append(i);var o,t=function(){var t=h(i,{addClass:y,delay:!0,from:a(e)});return t.$$willAnimate?t:null}();if(!t&&!(o=u()))return c();var s=t||o;return{start:function(){var t,e=s.start();return e.done(function(){if(e=null,!o&&(o=u()))return(e=o.start()).done(function(){e=null,c(),t.complete()}),e;c(),t.complete()}),t=new d({end:n,cancel:n});function n(){e&&e.end()}}};function a(t){var n={},i=at(t).getBoundingClientRect();return ft(["width","height","top","left"],function(t){var e=i[t];switch(t){case"top":e+=p.scrollTop;break;case"left":e+=p.scrollLeft}n[t]=Math.floor(e)+"px"}),n}function l(t){return t.attr("class")||""}function u(){var t=m(l(n)),e=g(t,r),t=g(r,t),e=h(i,{to:a(n),addClass:"ng-anchor-in "+e,removeClass:y+" "+t,delay:!0});return e.$$willAnimate?e:null}function c(){i.remove(),e.removeClass(v),n.removeClass(v)}}(t.out,t.in);t&&s.push(t)}),r||o||0!==s.length?{start:function(){var e=[],n=(r&&e.push(r.start()),o&&e.push(o.start()),ft(s,function(t){e.push(t.start())}),new d({end:t,cancel:t}));return d.all(e,function(t){n.complete(t)}),n;function t(){ft(e,function(t){t.end()})}}}:void 0}return a(t)}):gt;function m(t){return t.replace(/\bng-\S+\b/g,"")}
1function g(t,e){return j(t)&&(t=t.split(" ")),j(e)&&(e=e.split(" ")),t.filter(function(t){return-1===e.indexOf(t)}).join(" ")}function a(t){var e=t.element,n=t.options||{},t=(t.structural&&(n.event=t.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===t.event)&&(n.onDone=n.domOperation),n.preparationClasses&&(n.event=z(n.event,n.preparationClasses)),h(e,n));return t.$$willAnimate?t:null}}]}],g=["$animateProvider",function(b){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(g,v,t){var y=H(t);return function(t,e,n,i){var r,o,s,a,l,u=!1,c=(3===arguments.length&&V(n)&&(i=n,n=null),i=ot(i),n||(n=t.attr("class")||"",i.addClass&&(n+=" "+i.addClass),i.removeClass&&(n+=" "+i.removeClass)),i.addClass),h=i.removeClass,n=function(t){t=mt(t)?t:t.split(" ");for(var e=[],n={},i=0;i<t.length;i++){var r=t[i],o=b.$$registeredAnimations[r];o&&!n[r]&&(e.push(g.get(o)),n[r]=!0)}return e}(n);if(n.length&&(a="leave"===e?(s="leave","afterLeave"):(s="before"+e.charAt(0).toUpperCase()+e.substr(1),e),"enter"!==e&&"move"!==e&&(r=m(t,e,i,n,s)),o=m(t,e,i,n,a)),r||o)return{$$willAnimate:!0,end:function(){return l?l.end():(p(),(l=new v).complete(!0)),l},start:function(){var e,t;return l||(l=new v,t=[],r&&t.push(function(t){e=r(t)}),t.length?t.push(function(t){d(),t(!0)}):d(),o&&t.push(function(t){e=o(t)}),l.setHost({end:function(){i()},cancel:function(){i(!0)}}),v.chain(t,n)),l;function n(t){p(),l.complete(t)}function i(t){u||((e||gt)(t),n(t))}}};function d(){i.domOperation(),y(t,i)}function p(){u=!0,d(),st(t,i)}function f(s,a,l,t,e){var n=[];return ft(t,function(t){var o=t[e];o&&n.push(function(){function e(t){n||(n=!0,(r||gt)(t),i.complete(!t))}var n=!1,i=new v({end:function(){e()},cancel:function(){e(!0)}}),r=function(t,e,n,i,r){var o;switch(n){case"animate":o=[e,i.from,i.to,r];break;case"setClass":o=[e,c,h,r];break;case"addClass":o=[e,c,r];break;case"removeClass":o=[e,h,r];break;default:o=[e,r]}if(o.push(i),n=t.apply(t,o))if((n=_(n.start)?n.start():n)instanceof v)n.done(r);else if(_(n))return n;return gt}(o,s,a,l,function(t){e(!1===t)});return i})}),n}function m(t,e,n,i,r){var o,s,a=f(t,e,n,i,r);if(0!==(a=0===a.length&&("beforeSetClass"===r?(o=f(t,"removeClass",n,i,"beforeRemoveClass"),s=f(t,"addClass",n,i,"beforeAddClass")):"setClass"===r&&(o=f(t,"removeClass",n,i,"removeClass"),s=f(t,"addClass",n,i,"addClass")),o&&(a=a.concat(o)),s)?a.concat(s):a).length)return function(t){var n=[];return a.length&&ft(a,function(t){n.push(t())}),n.length?v.all(n,t):t(),function(e){ft(n,function(t){e?t.cancel():t.end()})}}}}}]}],v=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(r,o){return function(t){var i,r;return t.from&&t.to?(i=e(t.from),r=e(t.to),i||r?{start:function(){var t=[],e=(i&&t.push(i.start()),r&&t.push(r.start()),o.all(t,function(t){e.complete(t)}),new o({end:n(),cancel:n()}));return e;function n(){return function(){ft(t,function(t){t.end()})}}}}:void 0):e(t)};function e(t){var e=t.element,n=t.event,i=t.options,t=t.classes;return r(e,n,t,i)}}]}],q="data-ng-animate",G="$ngAnimatePin",y=["$animateProvider",function(l){var r=" ",i=this.rules={skip:[],cancel:[],join:[]};function o(t,e){var n,i;if(t&&e)return n=(e=e)?(e=e.split(r),i=Object.create(null),ft(e,function(t){i[t]=!0}),i):null,t.split(r).some(function(t){return n[t]})}function P(t,e,n){return i[t].some(function(t){return t(e,n)})}function R(t,e){var n=0<(t.addClass||"").length,t=0<(t.removeClass||"").length;return e?n&&t:n||t}i.join.push(function(t,e){return!t.structural&&R(t)}),i.skip.push(function(t,e){return!t.structural&&!R(t)}),i.skip.push(function(t,e){return"leave"===e.event&&t.structural}),i.skip.push(function(t,e){return e.structural&&2===e.state&&!t.structural}),i.cancel.push(function(t,e){return e.structural&&t.structural}),i.cancel.push(function(t,e){return 2===e.state&&t.structural}),i.cancel.push(function(t,e){var n,i;return!(e.structural||(n=t.addClass,t=t.removeClass,i=e.addClass,e=e.removeClass,W(n)&&W(t))||W(i)&&W(e))&&(o(n,e)||o(t,i))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(g,v,y,b,t,_,w,e,n,i,x){var C=new t,k=new t,$=null;var r=v.$watch(function(){return 0===e.totalPendingRequests},function(t){t&&(r(),v.$$postDigest(function(){v.$$postDigest(function(){null===$&&($=!0)})}))}),S=Object.create(null),o=l.classNameFilter(),E=o?function(t){return o.test(t)}:function(){return!0},T=H(n);function D(t,e){F(t,e,{})}var M=u.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function s(t,e,n){var i=c(e);return t.filter(function(t){return!(t.node===i&&(!n||t.callback===n))})}function A(t,e){"close"!==t||e.parentNode||a.off(e)}var a={on:function(t,e,n){var i=c(e);S[t]=S[t]||[],S[t].push({node:i,callback:n}),B(e).on("$destroy",function(){C.get(i)||a.off(t,e,n)})},off:function(t,e,n){if(1!==arguments.length||j(t)){var i=S[t];i&&(S[t]=1===arguments.length?null:s(i,e,n))}else for(var r in e=t,S)S[r]=s(S[r],e)},pin:function(t,e){d(h(t),"element","not an element"),d(h(e),"parentElement","not an element"),t.data(G,e)},push:function(t,e,n,i){(n=n||{}).domOperation=i;var r=t,o=e,s=Et(i=n),u=U(r),c=at(u),h=c&&c.parentNode,a=(s=ot(s),new w),d=function(){var e=!1;return function(t){e?t():v.$$postDigest(function(){e=!0,t()})}}();if(mt(s.addClass)&&(s.addClass=s.addClass.join(" ")),s.addClass&&!j(s.addClass)&&(s.addClass=null),mt(s.removeClass)&&(s.removeClass=s.removeClass.join(" ")),s.removeClass&&!j(s.removeClass)&&(s.removeClass=null),s.from&&!V(s.from)&&(s.from=null),s.to&&!V(s.to)&&(s.to=null),c){i=[c.getAttribute("class"),s.addClass,s.removeClass].join(" ");if(E(i)){var l=0<=["enter","move","leave"].indexOf(o),i=x(),t=!$||i||k.get(c),e=!t&&C.get(c)||{},n=!!e.state;if(t=t||n&&1===e.state?t:!function(t,e){var n,i=b[0].body,r=at(y),o=t===i||"HTML"===t.nodeName,s=t===r,a=!1,l=k.get(t),u=B.data(t,G);u&&(e=at(u));for(;e&&(s=s||e===r,e.nodeType===I);){var c=C.get(e)||{};if(!a){var h=k.get(e);if(!0===h&&!1!==l){l=!0;break}!1===h&&(l=!1),a=c.structural}if((W(n)||!0===n)&&(h=B.data(e,L),Y(h))&&(n=h),a&&!1===n)break;if((o=o||e===i)&&s)break;e=!s&&(u=B.data(e,G))?at(u):e.parentNode}return(!a||n)&&!0!==l&&s&&o}(c,h))i&&f(a,o,"start"),m(),i&&f(a,o,"close");else{l&&!function(t){t=t.querySelectorAll("["+q+"]");ft(t,function(t){var e=parseInt(t.getAttribute(q),10),n=C.get(t);if(n)switch(e){case 2:n.runner.end();case 1:C.delete(t)}})}(c);
1t={structural:l,element:u,event:o,addClass:s.addClass,removeClass:s.removeClass,close:m,options:s,runner:a};if(n){if(P("skip",t,e))return 2===e.state?(m(),a):(F(u,e,t),e.runner);i=P("cancel",t,e);if(i)if(2===e.state)e.runner.end();else{if(!e.structural)return F(u,e,t),e.runner;e.close()}else if(P("join",t,e)){if(2!==e.state)return function(t,e,n){var i="";e&&(i=rt(e,vt,!0)),n.addClass&&(i=z(i,rt(n.addClass,et))),(i=n.removeClass?z(i,rt(n.removeClass,nt)):i).length&&(n.preparationClasses=i,t.addClass(i))}(u,l?o:null,s),o=t.event=e.event,s=F(u,e,t),e.runner;D(u,t)}}else D(u,t);var p,n=t.structural;(n=n||"animate"===t.event&&0<Object.keys(t.options.to||{}).length||R(t))?(p=(e.counter||0)+1,t.counter=p,N(c,1,t),v.$$postDigest(function(){u=U(r);var t=!(e=C.get(c)),e=e||{},n=0<(u.parent()||[]).length&&("animate"===e.event||e.structural||R(e));t||e.counter!==p||!n?(t&&(T(u,s),st(u,s)),(t||l&&e.event!==o)&&(s.domOperation(),a.end()),n||O(c)):(o=!e.structural&&R(e,!0)?"setClass":e.event,N(c,2),t=_(u,o,e.options),a.setHost(t),f(a,o,"start",{}),t.done(function(t){m(!t);t=C.get(c);t&&t.counter===p&&O(c),f(a,o,"close",{})}))})):(m(),O(c))}}else m()}else m();return a;function f(t,s,a,l){d(function(){e=h,n=c,r=[],(t=S[i=s])&&ft(t,function(t){(M.call(t.node,n)||"leave"===i&&M.call(t.node,e))&&r.push(t.callback)});var e,n,i,r,t,o=r;o.length?g(function(){ft(o,function(t){t(u,a,l)}),A(a,c)}):A(a,c)}),t.progress(s,a,l)}function m(t){var e,n;e=u,(n=s).preparationClasses&&(e.removeClass(n.preparationClasses),n.preparationClasses=null),n.activeClasses&&(e.removeClass(n.activeClasses),n.activeClasses=null),T(u,s),st(u,s),s.domOperation(),a.complete(!t)}},enabled:function(t,e){var n,i=arguments.length;return 0===i?e=!!$:h(t)?(n=at(t),1===i?e=!k.get(n):k.set(n,!e)):e=$=!!t,e}};return a;function O(t){t.removeAttribute(q),C.delete(t)}function N(t,e,n){(n=n||{}).state=e,t.setAttribute(q,e);e=C.get(t),e=e?f(e,n):n;C.set(t,e)}}]}],b=["$animateProvider",function(t){var b="ng-animate-ref",_=this.drivers=[],w="$$animationRunner";function x(t){return t.data(w)}this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler",function(c,h,d,p,f,m){var g=[],v=H(c);function y(t){for(var o={children:[]},s=new f,e=0;e<t.length;e++){var n=t[e];s.set(n.domNode,t[e]={domNode:n.domNode,fn:n.fn,children:[]})}for(e=0;e<t.length;e++)!function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode;var i=n.parentNode;s.set(n,e);var r;for(;i;){if(r=s.get(i)){r.processed||(r=t(r));break}i=i.parentNode}(r||o).children.push(e);return e}(t[e]);var i,r=o,a=[],l=[];for(i=0;i<r.children.length;i++)l.push(r.children[i]);var u=l.length,c=0,h=[];for(i=0;i<l.length;i++){var d=l[i];u<=0&&(u=c,c=0,a.push(h),h=[]),h.push(d.fn),d.children.forEach(function(t){c++,l.push(t)}),u--}return h.length&&a.push(h),a}return function(e,n,i){i=ot(i);var t,r,o,s=0<=["enter","move","leave"].indexOf(n),a=new p({end:function(){u()},cancel:function(){u(!0)}});return _.length?(t=(e.data(w,a),k(e.attr("class"),k(i.addClass,i.removeClass))),(r=i.tempClasses)&&(t+=" "+r,i.tempClasses=null),s&&(o="ng-"+n+"-prepare",c.addClass(e,o)),g.push({element:e,classes:t,event:n,structural:s,options:i,beforeStart:function(){e.addClass(C),r&&c.addClass(e,r);o&&(c.removeClass(e,o),o=null)},close:u}),e.on("$destroy",l),1<g.length||h.$$postDigest(function(){var a,l,s,u,c,e=[],t=(ft(g,function(t){x(t.element)?e.push(t):t.close()}),g.length=0,l=[],s={},ft(a=e,function(t,n){var i,r,e=at(t.element),o=t.event,o=0<=["enter","move"].indexOf(o),e=t.structural?(e=(e=e).hasAttribute(b)?[e]:e.querySelectorAll("[ng-animate-ref]"),i=[],ft(e,function(t){var e=t.getAttribute(b);e&&e.length&&i.push(t)}),i):[];e.length?(r=o?"to":"from",ft(e,function(t){var e=t.getAttribute(b);s[e]=s[e]||{},s[e][r]={animationID:n,element:B(t)}})):l.push(t)}),u={},c={},ft(s,function(t,e){var n,i,r,o,s=t.from,t=t.to;s&&t?(n=a[s.animationID],i=a[t.animationID],r=s.animationID.toString(),c[r]||((o=c[r]={structural:!0,beforeStart:function(){n.beforeStart(),i.beforeStart()},close:function(){n.close(),i.close()},classes:function(t,e){t=t.split(" "),e=e.split(" ");for(var n=[],i=0;i<t.length;i++){var r=t[i];if("ng-"!==r.substring(0,3))for(var o=0;o<e.length;o++)if(r===e[o]){n.push(r);break}}return n.join(" ")}
1(n.classes,i.classes),from:n,to:i,anchors:[]}).classes.length?l.push(o):(l.push(n),l.push(i))),c[r].anchors.push({out:s.element,in:t.element})):(r=(o=(s||t).animationID).toString(),u[r]||(u[r]=!0,l.push(a[o])))}),l),n=[];ft(t,function(o){n.push({domNode:at((o.from||o).element),fn:function(){o.beforeStart();var t,e,n,i=o.close;function r(t){t=x(t);t&&t.setHost(n)}(e=x(o.anchors?o.from.element||o.to.element:o.element)&&(t=function(t){for(var e=_.length-1;0<=e;e--){var n=_[e],n=d.get(n)(t);if(n)return n}}(o))?t.start:e)?((t=e()).done(function(t){i(!t)}),n=t,(e=o).from&&e.to?(r(e.from.element),r(e.to.element)):r(e.element)):i()}})}),m(y(n))})):u(),a;function l(){var t=x(e);!t||"leave"===n&&i.$$domOperationFired||t.end()}function u(t){e.off("$destroy",l),e.removeData(w),v(e,i),st(e,i),i.domOperation(),r&&c.removeClass(e,r),e.removeClass(C),a.complete(!t)}}}]}];t.module("ngAnimate",[],function(){gt=t.noop,Et=t.copy,f=t.extend,B=t.element,ft=t.forEach,mt=t.isArray,j=t.isString,V=t.isObject,W=t.isUndefined,Y=t.isDefined,_=t.isFunction,h=t.isElement}).info({angularVersion:"1.6.4"}).directive("ngAnimateSwap",["$animate","$rootScope",function(a,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(e,n,t,i,r){var o,s;e.$watchCollection(t.ngAnimateSwap||t.for,function(t){o&&a.leave(o),s&&(s.$destroy(),s=null),!t&&0!==t||(s=e.$new(),r(s,function(t){o=t,a.enter(t,null,n)}))})}}}]).directive("ngAnimateChildren",a).factory("$$rAFScheduler",["$$rAF",function(n){var i,r;function t(t){i=i.concat(t),o()}return i=t.queue=[],t.waitUntilQuiet=function(t){r&&r(),r=n(function(){r=null,t(),o()})},t;function o(){if(i.length){for(var t=i.shift(),e=0;e<t.length;e++)t[e]();r||n(function(){r||o()})}}}]).provider("$$animateQueue",y).provider("$$animation",b).provider("$animateCss",e).provider("$$animateCssDriver",m).provider("$$animateJs",g).provider("$$animateJsDriver",v)}(window,window.angular),!function(e){"use strict";var t=e.module("ngAria",["ng"]).info({angularVersion:"1.6.4"}).provider("$aria",function(){var l={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function t(r,o,s,a){return function(t,e,n){var i=n.$normalize(o);!l[i]||u(e,s)||n[i]||t.$watch(n[r],function(t){e.attr(o,t=a?!t:!!t)})}}this.config=function(t){l=e.extend(l,t)},this.$get=function(){return{config:function(t){return l[t]},$$watchExpr:t}}}),o=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],u=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};t.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("ngValue",["$aria",function(t){return t.$$watchExpr("ngValue","aria-checked",o,!1)}]).directive("ngChecked",["$aria",function(t){return t.$$watchExpr("ngChecked","aria-checked",o,!1)}]).directive("ngReadonly",["$aria",function(t){return t.$$watchExpr("ngReadonly","aria-readonly",o,!1)}]).directive("ngRequired",["$aria",function(t){return t.$$watchExpr("ngRequired","aria-required",o,!1)}]).directive("ngModel",["$aria",function(c){function h(t,e,n,i){return c.config(e)&&!n.attr(t)&&(i||!u(n,o))}function d(t,e){return!e.attr("role")&&e.attr("type")===t&&!u(e,o)}return{restrict:"A",require:"ngModel",priority:200,compile:function(t,e){n=(e=e).type,e=e.role;var n,u="checkbox"===(n||e)||"menuitemcheckbox"===e?"checkbox":"radio"===(n||e)||"menuitemradio"===e?"radio":"range"===n||"progressbar"===e||"slider"===e?"range":"";return{post:function(t,n,i,r){var e,o,s,a=h("tabindex","tabindex",n,!1);function l(){return r.$modelValue}switch(u){case"radio":case"checkbox":d(u,n)&&n.attr("role",u),h("aria-checked","ariaChecked",n,!1)&&t.$watch(l,"radio"==u?function(t){var e=i.value==r.$viewValue;n.attr("aria-checked",e)}:function(){n.attr("aria-checked",!r.$isEmpty(r.$viewValue))}),a&&n.attr("tabindex",0);break;case"range":d(u,n)&&n.attr("role","slider"),c.config("ariaValue")&&(e=!n.attr("aria-valuemin")&&(i.hasOwnProperty("min")||i.hasOwnProperty("ngMin")),o=!n.attr("aria-valuemax")&&(i.hasOwnProperty("max")||i.hasOwnProperty("ngMax")),s=!n.attr("aria-valuenow"),e&&i.$observe("min",function(t){n.attr("aria-valuemin",t)}),o&&i.$observe("max",function(t){n.attr("aria-valuemax",t)}),s)&&t.$watch(l,function(t){n.attr("aria-valuenow",t)}),a&&n.attr("tabindex",0)}!i.hasOwnProperty("ngRequired")&&r.$validators.required&&h("aria-required","ariaRequired",n,!1)&&i.$observe("required",function(){n.attr("aria-required",!!i.required)}),h("aria-invalid","ariaInvalid",n,!0)&&t.$watch(function(){return r.$invali
1d},function(t){n.attr("aria-invalid",!!t)})}}}}}]).directive("ngDisabled",["$aria",function(t){return t.$$watchExpr("ngDisabled","aria-disabled",o,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(t,e,n,i){e.attr("aria-live")||e.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(r,n){return{restrict:"A",compile:function(t,e){var i=n(e.ngClick);return function(n,t,e){u(t,o)||(r.config("bindRoleForClick")&&!t.attr("role")&&t.attr("role","button"),r.config("tabindex")&&!t.attr("tabindex")&&t.attr("tabindex",0),!r.config("bindKeydown"))||e.ngKeydown||e.ngKeypress||e.ngKeyup||t.on("keydown",function(t){var e=t.which||t.keyCode;32!==e&&13!==e||n.$apply(function(){i(n,{$event:t})})})}}}}]).directive("ngDblclick",["$aria",function(i){return function(t,e,n){!i.config("tabindex")||e.attr("tabindex")||u(e,o)||e.attr("tabindex",0)}}])}((window,window.angular)),angular.module("ngLocale",[],["$provide",function(t){var s="one",a="other";t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],ERANAMES:["f.Kr.","e.Kr."],ERAS:["f.Kr.","e.Kr."],FIRSTDAYOFWEEK:0,MONTH:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],SHORTDAY:["søn.","man.","tir.","ons.","tor.","fre.","lør."],SHORTMONTH:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],STANDALONEMONTH:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],WEEKENDRANGE:[5,6],fullDate:"EEEE 'den' d. MMMM y",longDate:"d. MMMM y",medium:"d. MMM y HH.mm.ss",mediumDate:"d. MMM y",mediumTime:"HH.mm.ss",short:"dd/MM/y HH.mm",shortDate:"dd/MM/y",shortTime:"HH.mm"},NUMBER_FORMATS:{CURRENCY_SYM:"kr.",DECIMAL_SEP:",",GROUP_SEP:".",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:" ¤",posPre:"",posSuf:" ¤"}]},id:"da-dk",localeID:"da_DK",pluralCat:function(t,e){var n,i,r=0|t,o=(n=t,void 0===(e=e)&&(e=Math.min((i=n,-1==(o=(i+="").indexOf("."))?0:i.length-o-1),3)),i=Math.pow(10,e),{v:e,f:(n*i|0)%i}),e=function(t,e){if(0===e)return{w:0,t:0};for(;e%10==0;)e/=10,t--;return{w:t,t:e}}(o.v,o.f);return 1==t||0!=e.t&&(0==r||1==r)?s:a}})}]),!function(t){"use strict";var b,d,a,i;function e(){return["$animate",function(h){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(t,i,e,r,n){function o(t){s=t?d(t)?t:t.split(/[\s,]+/):null,r.reRender()}var s,a,l,u=i[0],c=e.ngMessage||e.when,e=e.ngMessageExp||e.whenExp;e?(o(t.$eval(e)),t.$watchCollection(e,o)):o(c),r.register(u,l={test:function(t){var e=s;if(e)return d(e)?0<=e.indexOf(t):e.hasOwnProperty(t)},attach:function(){a||n(function(t,e){h.enter(t,null,i);var n=(a=t).$$attachId=r.getAttachId();a.on("$destroy",function(){a&&a.$$attachId===n&&(r.deregister(u),l.detach()),e.$destroy()})})},detach:function(){var t;a&&(t=a,a=null,h.leave(t))}})}}}]}t.module("ngMessages",[],function(){b=t.forEach,d=t.isArray,a=t.isString,i=t.element}).info({angularVersion:"1.6.4"}).directive("ngMessages",["$animate",function(m){var g="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(u,c,h){var d,p,f=this,o=0,t=0,s=(this.getAttachId=function(){return t++},this.messages={});function a(t,e){for(var n=e,i=[];n&&n!==t;){var r=n.$$ngMessageNode;if(r&&r.length)return s[r];n.childNodes.length&&-1===i.indexOf(n)?(i.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,i.push(n))}}this.render=function(t){d=!1,p=t=t||{};for(var e=v(c,h.ngMessagesMultiple)||v(c,h.multiple),n=[],i={},r=f.head,o=!1,s=0;null!=r;){s++;var a=r.message,l=!1;o||b(t,function(t,e){l||!y(t)||!a.test(e)||i[e]||(l=i[e]=!0,a.attach())}),l?o=!e:n.push(a),r=r.next}b(n,function(t){t.detach()}),n.length!==s?m.setClass(u,"ng-active",g):m.setClass(u,g,"ng-active")},c.$watchCollection(h.ngMessages||h.for,f.render),u.on("$destroy",function(){b(s,function(t){t.message.detach()})}),this.reRender=function(){d||(d=!0,c.$evalAsync(function(){d&&p&&f.render(p)}))},this.register=function(t,e){var n=o.toString(),e=(s[n]={message:e},u[0]),i=t,r=n;r=s[r],f.head?(e=a(e,i))?(r.next=e.next,e.next=r):(r.next=f.head,f.head=r):f.head=r,t.$$ngMessageNode=n,o++,f.reRender()},this.deregister=function(t){var e=t.$$ngMessageNode,n=(delete t.$$ngMessageNode,u[0]),i=e;i=s[i],(n=a(n,t))?n.next=i.next:f.head=i.next,delete s[e],f.reRender()}}]};function v(t,e){return a(e)&&0===e.length||y(t.$eval(e))}function y(t){return a(t)?t.length:!!t}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(r,n,o){return{restrict:"AE",require:"^^ngMessages",link:function(e,n,t){var i=t.ngMessagesInclude||t.src;r(i).then(function(t){e.$$destroyed||(a(t)&&!t.trim()?s(n,i):o(t)(e,function(t){n.after(t),s(n,i)}))})}};function s(t,e){e=o.$$createComment?o.$$createComment("ngMessagesInclude",e):n[0].createComment(" ngMessagesInclude: "+e+" "),e=i(e);t.after(e),t.remove()}}]).directive("ngMessage",e()).directive("ngMessageExp",e())}((window,window.angular)),!function(b){"use strict";var t=b.module("ngTouch",[]);function e(e,n){var i=!1,r=!1;this.ngClickOverrideEnabled=function(t){return b.isDefined(t)?(t&&!r&&(r=!0,o.$$moduleName="ngTouch",n.directive("ngClick",o),e.decorator("ngClickDirective",["$delegate",function(t){if(i)t.
1shift();else for(var e=t.length-1;0<=e;){if("ngTouch"===t[e].$$moduleName){t.splice(e,1);break}e--}return t}])),i=t,this):i},this.$get=function(){return{ngClickOverrideEnabled:function(){return i}}}}t.info({angularVersion:"1.6.4"}),t.provider("$touch",e),e.$inject=["$provide","$compileProvider"],t.factory("$swipe",[function(){var i={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},pointer:{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}};function u(t){var t=t.originalEvent||t,e=t.touches&&t.touches.length?t.touches:[t],t=t.changedTouches&&t.changedTouches[0]||e[0];return{x:t.clientX,y:t.clientY}}function c(t,e){var n=[];return b.forEach(t,function(t){t=i[t][e];t&&n.push(t)}),n.join(" ")}return{bind:function(t,n,e){var i,r,o,s,a=!1,l=(t.on(c(e=e||["mouse","touch","pointer"],"start"),function(t){o=u(t),a=!0,r=i=0,s=o,n.start&&n.start(o,t)}),c(e,"cancel"));l&&t.on(l,function(t){a=!1,n.cancel&&n.cancel(t)}),t.on(c(e,"move"),function(t){var e;a&&o&&(e=u(t),i+=Math.abs(e.x-s.x),r+=Math.abs(e.y-s.y),s=e,i<10&&r<10||(i<r?(a=!1,n.cancel&&n.cancel(t)):(t.preventDefault(),n.move&&n.move(e,t))))}),t.on(c(e,"end"),function(t){a&&(a=!1,n.end)&&n.end(u(t),t)})}}}]);var o=["$parse","$timeout","$rootElement",function(t,i,p){var f,m,r,o=2500,a=25,e="ng-click-active";function g(t,e,n){for(var i,r,o,s=0;s<t.length;s+=2)if(i=t[s],r=t[s+1],o=n,Math.abs(i-e)<a&&Math.abs(r-o)<a)return t.splice(s,s+2),1}function v(t){var e,n,i;Date.now()-f>o||(e=(n=t.touches&&t.touches.length?t.touches:[t])[0].clientX,n=n[0].clientY,e<1&&n<1)||r&&r[0]===e&&r[1]===n||(r=r&&null,"label"===(i=t.target,b.lowercase(i.nodeName||i[0]&&i[0].nodeName))&&(r=[e,n]),g(m,e,n))||(t.stopPropagation(),t.preventDefault(),t.target&&t.target.blur&&t.target.blur())}function y(t){var t=t.touches&&t.touches.length?t.touches:[t],e=t[0].clientX,n=t[0].clientY;m.push(e,n),i(function(){for(var t=0;t<m.length;t+=2)if(m[t]===e&&m[t+1]===n)return void m.splice(t,t+2)},o,!1)}return function(n,o,s){var a,l,u,c,i=t(s.ngClick),h=!1;function d(){h=!1,o.removeClass(e)}o.on("touchstart",function(t){h=!0,3===(a=t.target||t.srcElement).nodeType&&(a=a.parentNode),o.addClass(e),l=Date.now();t=t.originalEvent||t,t=(t.touches&&t.touches.length?t.touches:[t])[0];u=t.clientX,c=t.clientY}),o.on("touchcancel",function(t){d()}),o.on("touchend",function(t){var e=Date.now()-l,n=t.originalEvent||t,n=(n.changedTouches&&n.changedTouches.length?n.changedTouches:n.touches&&n.touches.length?n.touches:[n])[0],i=n.clientX,n=n.clientY,r=Math.sqrt(Math.pow(i-u,2)+Math.pow(n-c,2));h&&e<750&&r<12&&(e=i,r=n,m||(p[0].addEventListener("click",v,!0),p[0].addEventListener("touchstart",y,!0),m=[]),f=Date.now(),g(m,e,r),a&&a.blur(),b.isDefined(s.disabled)&&!1!==s.disabled||o.triggerHandler("click",[t])),d()}),o.onclick=function(t){},o.on("click",function(t,e){n.$apply(function(){i(n,{$event:e||t})})}),o.on("mousedown",function(t){o.addClass(e)}),o.on("mousemove mouseup",function(t){o.removeClass(e)})}}];function n(u,c,h){t.directive(u,["$parse","$swipe",function(a,l){return function(n,i,t){var r,o,s=a(t[u]);var e=["touch"];b.isDefined(t.ngSwipeDisableMouse)||e.push("mouse"),l.bind(i,{start:function(t,e){r=t,o=!0},cancel:function(t){o=!1},end:function(t,e){!function(t){var e;if(r)return e=Math.abs(t.y-r.y),t=(t.x-r.x)*c,o&&e<75&&0<t&&30<t&&e/t<.3}(t)||n.$apply(function(){i.triggerHandler(h),s(n,{$event:e})})}},e)}}])}n("ngSwipeLeft",-1,"swipeleft"),n("ngSwipeRight",1,"swiperight")}((window,window.angular)),!function(n,a){"use strict";var r=n.isDefined,c=n.isUndefined,l=n.isFunction,u=n.isString,h=n.isNumber,d=n.isObject,p=n.isArray,f=n.forEach,o=n.extend,s=n.copy,m=n.equals;function g(e){return p(e)?e:Object.keys(e).map(function(t){return e[t]})}function v(t){return null===t}function i(e,n){return-1==Object.keys(e).map(function(t){return n[t]!==a&&n[t]==e[t]}).indexOf(!1)}function y(t,e){for(var n=0,i=0;i<=e.length;i++){var r=function(t,e,n){for(var i=0;e+i<=t.length;){if(t.charAt(e+i)==n)return i;i++}return-1}(t,n,e.charAt(i));if(-1==r)return!1;n+=r+1}return!0}function b(t,e,n){var i=0;return t.filter(function(t){t=r(n)?i<e&&n(t):i<e;return i=t?i+1:i,t})}function _(t,e){return Math.round(t*Math.pow(10,e))/Math.pow(10,e)}function w(t){return t&&t.$evalAsync&&t.$watch}function t(){return function(t,e){return e<t}}function e(){return function(t,e){return e<=t}}function x(){return function(t,e){return t<e}}function C(){return function(t,e){return t<=e}}function k(){return function(t,e){return t==e}}function $(){return function(t,e){return t!=e}}function S(){return function(t,e){return t===e}}function E(){return function(t,e){return t!==e}}function T(n){return function(t,e){return t=d(t)?g(t):t,!(!p(t)||c(e))&&t.some(function(t){return u(e)&&d(t)||l(e)?n(e)(t):t===e})}}function D(r){return function(t,e){var n,i;return t=d(t)?g(t):t,p(t)?(n=[],i=r(e),c(e)?t.filter(function(t,e,n){return n.indexOf(t)===e}):t.filter(function(t){t=i(t);return!function(t,e){if(c(e))return;return t.some(function(t){return m(t,e)})}(n,t)&&(n.push(t),!0)})):t}}function M(){return function(t){return u(t)?t.split(" ").map(function(t){return t.charAt(0).toUpperCase()+t.substring(1)}).join(" "):t}}String.prototype.contains||(String.prototype.contains=function(){return-1!==String.prototype.indexOf.apply(this,arguments)}),n.module("a8m.angular",[]).filter("isUndefined",function(){return function(t){return n.isUndefined(t)}}).filter("isDefined",function(){return function(t){return n.isDefined(t)}}).filter("isFunction",function(){return function(t){return n.isFunction(t)}}).filter("isString",function(){return function(t){return n.isString(t)}}).filter("isNumber",function(){return function(t){return n.isNumber(t)}}).filter("isArray",function(){return function(t){return n.isArray(t)}}).filter("isObject",function(){return function(t){return n.isObject(t)}}).filter("isEqual",function(){return function(t,e){return n.equals(t,e)}}),n.module("a8m.conditions",[]).filter({isGreaterThan:t,">
1":t,isGreaterThanOrEqualTo:e,">=":e,isLessThan:x,"<":x,isLessThanOrEqualTo:C,"<=":C,isEqualTo:k,"==":k,isNotEqualTo:$,"!=":$,isIdenticalTo:S,"===":S,isNotIdenticalTo:E,"!==":E}),n.module("a8m.is-null",[]).filter("isNull",function(){return v}),n.module("a8m.after-where",[]).filter("afterWhere",function(){return function(t,e){var n;return t=d(t)?g(t):t,!p(t)||c(e)?t:(n=t.map(function(t){return i(e,t)}).indexOf(!0),t.slice(-1===n?0:n))}}),n.module("a8m.after",[]).filter("after",function(){return function(t,e){return t=d(t)?g(t):t,p(t)?t.slice(e):t}}),n.module("a8m.before-where",[]).filter("beforeWhere",function(){return function(t,e){var n;return t=d(t)?g(t):t,!p(t)||c(e)?t:(n=t.map(function(t){return i(e,t)}).indexOf(!0),t.slice(0,-1===n?t.length:++n))}}),n.module("a8m.before",[]).filter("before",function(){return function(t,e){return t=d(t)?g(t):t,p(t)?t.slice(0,e&&--e):t}}),n.module("a8m.chunk-by",["a8m.filter-watcher"]).filter("chunkBy",["filterWatcher",function(o){return function(t,e,n){return o.isMemoized("chunkBy",arguments)||o.memoize("chunkBy",arguments,this,(i=e,r=n,p(e=t)?e.map(function(t,e,n){return t=n.slice(e*=i,e+i),!c(r)&&t.length<i?t.concat(function(t,e){var n=[];for(;t--;)n[t]=e;return n}(i-t.length,r)):t}).slice(0,Math.ceil(e.length/i)):e));var i,r}}]),n.module("a8m.concat",[]).filter("concat",[function(){return function(t,e){var n;return c(e)?t:p(t)?d(e)?t.concat(g(e)):t.concat(e):d(t)?(n=g(t),d(e)?n.concat(g(e)):n.concat(e)):t}}]),n.module("a8m.contains",[]).filter({contains:["$parse",T],some:["$parse",T]}),n.module("a8m.count-by",[]).filter("countBy",["$parse",function(o){return function(t,e){var n,i={},r=o(e);return t=d(t)?g(t):t,!p(t)||c(e)?t:(t.forEach(function(t){n=r(t),i[n]||(i[n]=0),i[n]++}),i)}}]),n.module("a8m.defaults",[]).filter("defaults",["$parse",function(r){return function(t,i){var e;return t=d(t)?g(t):t,p(t)&&d(i)&&(e=function e(n,i,r){return i=i||[],Object.keys(n).forEach(function(t){d(n[t])&&!p(n[t])?e(n[t],i,r&&r+"."+t||t):i.push(r?r+"."+t:t)}),i}(i),t.forEach(function(n){e.forEach(function(t){var t=r(t),e=t.assign;c(t(n))&&e(n,t(i))})})),t}}]),n.module("a8m.every",[]).filter("every",["$parse",function(n){return function(t,e){return t=d(t)?g(t):t,!(p(t)&&!c(e))||t.every(function(t){return d(t)||l(e)?n(e)(t):t===e})}}]),n.module("a8m.filter-by",[]).filter("filterBy",["$parse",function(s){return function(t,n,i,r){var o;return i=u(i)||h(i)?String(i).toLowerCase():a,t=d(t)?g(t):t,!p(t)||c(i)?t:t.filter(function(e){return n.some(function(t){return o=~t.indexOf("+")?t.replace(/\s+/g,"").split("+").map(function(t){return s(t)(e)}).join(" "):s(t)(e),!(!u(o)&&!h(o))&&(o=String(o).toLowerCase(),r?o===i:o.contains(i))})})}}]),n.module("a8m.first",[]).filter("first",["$parse",function(r){return function(t){var e,n,i;return t=d(t)?g(t):t,p(t)?(i=Array.prototype.slice.call(arguments,1),e=h(i[0])?i[0]:1,n=h(i[0])?h(i[1])?a:i[1]:i[0],i.length?b(t,e,n&&r(n)):t[0]):t}}]),n.module("a8m.flatten",[]).filter("flatten",function(){return function(t,e){return e=e||!1,t=d(t)?g(t):t,p(t)?e?[].concat.apply([],t):function t(e,n){n=n||0;if(n>=e.length)return e;if(p(e[n]))return t(e.slice(0,n).concat(e[n],e.slice(n+1)),n);return t(e,n+1)}(t,0):t}}),n.module("a8m.fuzzy-by",[]).filter("fuzzyBy",["$parse",function(a){return function(t,e,n,i){var r,o,s=i||!1;return t=d(t)?g(t):t,!p(t)||c(e)||c(n)?t:(o=a(e),t.filter(function(t){return r=o(t),!!u(r)&&(r=s?r:r.toLowerCase(),n=s?n:n.toLowerCase(),!1!==y(r,n))}))}}]),n.module("a8m.fuzzy",[]).filter("fuzzy",function(){return function(t,o,e){var s=e||!1;return t=d(t)?g(t):t,!p(t)||c(o)?t:(o=s?o:o.toLowerCase(),t.filter(function(t){return u(t)?!1!==y(t=s?t:t.toLowerCase(),o):!!d(t)&&(e=t,n=o,0<Object.keys(e).filter(function(t){return i=e[t],!!r||!!u(i)&&(i=s?i:i.toLowerCase(),r=!1!==y(i,n))}).length);var e,n,i,r}))}}),n.module("a8m.group-by",["a8m.filter-watcher"]).filter("groupBy",["$parse","filterWatcher",function(o,s){return function(t,e){return!d(t)||c(e)?t:s.isMemoized("groupBy",arguments)||s.memoize("groupBy",arguments,this,(t=t,n=o(e),r={},f(t,function(t){i=n(t),r[i]||(r[i]=[]),r[i].push(t)}),r));var n,i,r}}]),n.module("a8m.is-empty",[]).filter("isEmpty",function(){return function(t){return d(t)?!g(t).length:!t.length}}),n.module("a8m.join",[]).filter("join",function(){return function(t,e){return c(t)||!p(t)?t:(c(e)&&(e=" "),t.join(e))}}),n.module("a8m.last",[]).filter("last",["$parse",function(r){return function(t){var e,n,i,t=s(t),t=d(t)?g(t):t;
1return p(t)?(i=Array.prototype.slice.call(arguments,1),e=h(i[0])?i[0]:1,n=h(i[0])?h(i[1])?a:i[1]:i[0],i.length?b(t.reverse(),e,n&&r(n)).reverse():t[t.length-1]):t}}]),n.module("a8m.map",[]).filter("map",["$parse",function(n){return function(t,e){return t=d(t)?g(t):t,!p(t)||c(e)?t:t.map(function(t){return n(e)(t)})}}]),n.module("a8m.omit",[]).filter("omit",["$parse",function(n){return function(t,e){return t=d(t)?g(t):t,!p(t)||c(e)?t:t.filter(function(t){return!n(e)(t)})}}]),n.module("a8m.pick",[]).filter("pick",["$parse",function(n){return function(t,e){return t=d(t)?g(t):t,!p(t)||c(e)?t:t.filter(function(t){return n(e)(t)})}}]),n.module("a8m.range",[]).filter("range",function(){return function(t,e,n,i,r){n=n||0,i=i||1;for(var o=0;o<parseInt(e);o++){var s=n+o*i;t.push(l(r)?r(s):s)}return t}}),n.module("a8m.remove-with",[]).filter("removeWith",function(){return function(t,e){return c(e)?t:(t=d(t)?g(t):t).filter(function(t){return!i(e,t)})}}),n.module("a8m.remove",[]).filter("remove",function(){return function(t){t=d(t)?g(t):t;var n=Array.prototype.slice.call(arguments,1);return p(t)?t.filter(function(e){return!n.some(function(t){return m(t,e)})}):t}}),n.module("a8m.reverse",[]).filter("reverse",[function(){return function(t){return t=d(t)?g(t):t,u(t)?t.split("").reverse().join(""):p(t)?t.slice().reverse():t}}]),n.module("a8m.search-field",[]).filter("searchField",["$parse",function(r){return function(t){t=d(t)?g(t):t;var n,i=Array.prototype.slice.call(arguments,1);return p(t)&&i.length?t.map(function(e){return n=i.map(function(t){return r(t)(e)}).join(" "),o(e,{searchField:n})}):t}}]),n.module("a8m.to-array",[]).filter("toArray",function(){return function(e,t){return d(e)?t?Object.keys(e).map(function(t){return o(e[t],{$key:t})}):g(e):e}}),n.module("a8m.unique",[]).filter({unique:["$parse",D],uniq:["$parse",D]}),n.module("a8m.where",[]).filter("where",function(){return function(t,e){return c(e)?t:(t=d(t)?g(t):t).filter(function(t){return i(e,t)})}}),n.module("a8m.xor",[]).filter("xor",["$parse",function(o){return function(e,n,i){return i=i||!1,e=d(e)?g(e):e,n=d(n)?g(n):n,p(e)&&p(n)?e.concat(n).filter(function(t){return!(r(t,e)&&r(t,n))}):e;function r(e,t){var n=o(i);return t.some(function(t){return i?m(n(t),n(e)):m(t,e)})}}}]),n.module("a8m.math.abs",[]).filter("abs",function(){return function(t){return Math.abs(t)}}),n.module("a8m.math.byteFmt",[]).filter("byteFmt",function(){var i=[{str:"B",val:1024}];return["KB","MB","GB","TB","PB","EB","ZB","YB"].forEach(function(t,e){i.push({str:t,val:1024*i[e].val})}),function(t,e){if(h(e)&&isFinite(e)&&e%1==0&&0<=e&&h(t)&&isFinite(t)){for(var n=0;n<i.length-1&&t>=i[n].val;)n++;return _(t/=0<n?i[n-1].val:1,e)+" "+i[n].str}return"NaN"}}),n.module("a8m.math.degrees",[]).filter("degrees",function(){return function(t,e){return h(e)&&isFinite(e)&&e%1==0&&0<=e&&h(t)&&isFinite(t)?(t=180*t/Math.PI,Math.round(t*Math.pow(10,e))/Math.pow(10,e)):"NaN"}}),n.module("a8m.math.kbFmt",[]).filter("kbFmt",function(){var i=[{str:"KB",val:1024}];return["MB","GB","TB","PB","EB","ZB","YB"].forEach(function(t,e){i.push({str:t,val:1024*i[e].val})}),function(t,e){if(h(e)&&isFinite(e)&&e%1==0&&0<=e&&h(t)&&isFinite(t)){for(var n=0;n<i.length-1&&t>=i[n].val;)n++;return _(t/=0<n?i[n-1].val:1,e)+" "+i[n].str}return"NaN"}}),n.module("a8m.math.max",[]).filter("max",["$parse",function(n){return function(t,e){return p(t)?c(e)?Math.max.apply(Math,t):t[function(t,e){t=t.map(function(t){return n(e)(t)});return t.indexOf(Math.max.apply(Math,t))}(t,e)]:t}}]),n.module("a8m.math.min",[]).filter("min",["$parse",function(n){return function(t,e){return p(t)?c(e)?Math.min.apply(Math,t):t[function(t,e){t=t.map(function(t){return n(e)(t)});return t.indexOf(Math.min.apply(Math,t))}(t,e)]:t}}]),n.module("a8m.math.percent",[]).filter("percent",function(){return function(t,e,n){var i=u(t)?Number(t):t;return e=e||100,n=n||!1,!h(i)||isNaN(i)?t:n?Math.round(i/e*100):i/e*100}}),n.module("a8m.math.radians",[]).filter("radians",function(){return function(t,e){return h(e)&&isFinite(e)&&e%1==0&&0<=e&&h(t)&&isFinite(t)?Math.round(3.14159265359*t/180*Math.pow(10,e))/Math.pow(10,e):"NaN"}}),n.module("a8m.math.radix",[]).filter("radix",function(){return function(t,e){return h(t)&&/^[2-9]$|^[1-2]\d$|^3[0-6]$/.test(e)?t.toString(e).toUpperCase():t}}),n.module("a8m.math.shortFmt",[]).filter("shortFmt",function(){return function(t,e){return h(e)&&isFinite(e)&&e%1==0&&0<=e&&h(t)&&isFinite(t)?t<1e3?""+t:t<1e6?_(t/1e3,e)+" K":t<1e9?_(t/1e6,e)+" M":_(t/1e9,e)+" B":"NaN"}}),n.module("a8m.math.sum",[]).filter("sum",function(){return function(t,e){return p(t)?t.reduce(function(t,e){return t+e},e||0):t}}),n.module("a8m.ends-with",[]).filter("endsWith",function(){return function(t,e,n){var i,n=n||!1;
1return!u(t)||c(e)?t:(i=(t=n?t:t.toLowerCase()).length-e.length,-1!==t.indexOf(n?e:e.toLowerCase(),i))}}),n.module("a8m.latinize",[]).filter("latinize",[function(){for(var t=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"ŒŒ"},{base:"oe",letters:"œœ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],e={},n=0;n<t.length;n++)for(var i=t[n].letters.split(""),r=0;r<i.length;r++)e[i[r]]=t[n].base;
1return function(t){return u(t)?t.replace(/[^\u0000-\u007E]/g,function(t){return e[t]||t}):t}}]),n.module("a8m.ltrim",[]).filter("ltrim",function(){return function(t,e){e=e||"\\s";return u(t)?t.replace(new RegExp("^"+e+"+"),""):t}}),n.module("a8m.match",[]).filter("match",function(){return function(t,e,n){e=new RegExp(e,n);return u(t)?t.match(e):null}}),n.module("a8m.phoneUS",[]).filter("phoneUS",function(){return function(t){return"("+(t+="").slice(0,3)+") "+t.slice(3,6)+"-"+t.slice(6)}}),n.module("a8m.repeat",[]).filter("repeat",[function(){return function(t,e,n){var i=~~e;return u(t)&&i?function t(e,n,i){if(!n)return e;return e+i+t(e,--n,i)}(t,--e,n||""):t}}]),n.module("a8m.rtrim",[]).filter("rtrim",function(){return function(t,e){e=e||"\\s";return u(t)?t.replace(new RegExp(e+"+$"),""):t}}),n.module("a8m.slugify",[]).filter("slugify",[function(){return function(t,e){e=c(e)?"-":e;return u(t)?t.toLowerCase().replace(/\s+/g,e):t}}]),n.module("a8m.split",[]).filter("split",function(){return function(t,e,n){var i;return c(t)||!u(t)?null:(c(e)&&(e=""),isNaN(n)&&(n=0),i=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"g"),v(i=t.match(i))||n>=i.length?[t]:0===n?t.split(e):(t=(i=t.split(e)).splice(0,n+1),i.unshift(t.join(e)),i))}}),n.module("a8m.starts-with",[]).filter("startsWith",function(){return function(t,e,n){n=n||!1;return!u(t)||c(e)?t:!(t=n?t:t.toLowerCase()).indexOf(n?e:e.toLowerCase())}}),n.module("a8m.stringular",[]).filter("stringular",function(){return function(t){var n=Array.prototype.slice.call(arguments,1);return t.replace(/{(\d+)}/g,function(t,e){return c(n[e])?t:n[e]})}}),n.module("a8m.strip-tags",[]).filter("stripTags",function(){return function(t){return u(t)?t.replace(/<\S[^><]*>/g,""):t}}),n.module("a8m.test",[]).filter("test",function(){return function(t,e,n){e=new RegExp(e,n);return u(t)?e.test(t):t}}),n.module("a8m.trim",[]).filter("trim",function(){return function(t,e){e=e||"\\s";return u(t)?t.replace(new RegExp("^"+e+"+|"+e+"+$","g"),""):t}}),n.module("a8m.truncate",[]).filter("truncate",function(){return function(t,e,n,i){return e=c(e)?t.length:e,i=i||!1,n=n||"",!u(t)||t.length<=e?t:t.substring(0,i?-1===t.indexOf(" ",e)?t.length:t.indexOf(" ",e):e)+n}}),n.module("a8m.ucfirst",[]).filter({ucfirst:M,titleize:M}),n.module("a8m.uri-component-encode",[]).filter("uriComponentEncode",["$window",function(e){return function(t){return u(t)?e.encodeURIComponent(t):t}}]),n.module("a8m.uri-encode",[]).filter("uriEncode",["$window",function(e){return function(t){return u(t)?e.encodeURI(t):t}}]),n.module("a8m.wrap",[]).filter("wrap",function(){return function(t,e,n){return u(t)&&r(e)?[e,t,n||e].join(""):t}}),n.module("a8m.filter-watcher",[]).provider("filterWatcher",function(){this.$get=["$window","$rootScope",function(i,r){var o={},s={},a=i.setTimeout;function l(t,e){return[t,JSON.stringify(e,(n=[],function(t,e){if(d(e)&&!v(e)){if(~n.indexOf(e))return"[Circular]";n.push(e)}return i==e?"$WINDOW":i.document==e?"$DOCUMENT":w(e)?"$SCOPE":e}))].join("#").replace(/"/g,"");var n}function u(t){t=t.targetScope.$id;f(s[t],function(t){delete o[t]}),delete s[t]}return{isMemoized:function(t,e){return t=l(t,e),o[t]},memoize:function(t,e,n,i){var t=l(t,e);return o[t]=i,w(n)?(e=t,n=(t=n).$id,c(s[n])&&(t.$on("$destroy",u),s[n]=[]),s[n].push(e)):a(function(){r.$$phase||(o={})},2e3),i}}}]}),n.module("angular.filter",["a8m.ucfirst","a8m.uri-encode","a8m.uri-component-encode","a8m.slugify","a8m.latinize","a8m.strip-tags","a8m.stringular","a8m.truncate","a8m.starts-with","a8m.ends-with","a8m.wrap","a8m.trim","a8m.ltrim","a8m.rtrim","a8m.repeat","a8m.test","a8m.match","a8m.split","a8m.phoneUS","a8m.to-array","a8m.concat","a8m.contains","a8m.unique","a8m.is-empty","a8m.after","a8m.after-where","a8m.before","a8m.before-where","a8m.defaults","a8m.where","a8m.reverse","a8m.remove","a8m.remove-with","a8m.group-by","a8m.count-by","a8m.chunk-by","a8m.search-field","a8m.fuzzy-by","a8m.fuzzy","a8m.omit","a8m.pick","a8m.every","a8m.filter-by","a8m.xor","a8m.map","a8m.first","a8m.last","a8m.flatten","a8m.join","a8m.range","a8m.math.max","a8m.math.min","a8m.math.abs","a8m.math.percent","a8m.math.radix","a8m.math.sum","a8m.math.degrees","a8m.math.radians","a8m.math.byteFmt","a8m.math.kbFmt","a8m.math.shortFmt","a8m.angular","a8m.conditions","a8m.is-null","a8m.filter-watcher"])}((window,window.angular)),angular.module("angular-growl",[]),angular.module("angular-growl").directive("growl",[function(){"use strict";return{restrict:"A",templateUrl:"templates/growl/growl.html",replace:!1,scope:{reference:"@",inline:"=",limitMessages:"="},controller:["$scope","$interval","growl","growlMessages",function(n,e,i,r){n.referenceId=n.reference||0,r.initDirective(n.referenceId,n.limitMessages),n.growlMessages=r,n.inlineMessage=angular.isDefined(n.inline)?n.inline:i.inlineMessages(),n.$watch("limitMessages",function(t){var e=r.directives[n.referenceId];angular.isUndefined(t)||angular.isUndefined(e)||(e.limitMessages=t)}),n.stopTimeoutClose=function(t){t.clickToClose||(angular.forEach(t.promises,function(t){e.cancel(t)}),t.close?r.deleteMessage(t):t.close=!0)},n.alertClasses=function(t){return{"alert-success":"success"===t.severity,"alert-error":"error"===t.severity,"alert-danger":"error"===t.severity,"alert-info":"info"===t.severity,"alert-warning":"warning"===t.severity,icon:!1===t.disableIcons,"alert-dismissable":!t.disableCloseButton}},n.showCountDown=function(t){return!t.disableCountDown&&0<t.ttl},n.wrapperClasses=function(){var t={};return t["growl-fixed"]=!n.inlineMessage,t[i.position()]=!0,t},n.computeTitle=function(t){return{success:"Success",error:"Error",info:"Information",warn:"Warning"}[t.severity]}}]}}]),angular.module("angular-growl").run(["$templateCache",function(t){"use strict";void 0===t.get("templates/growl/growl.html")&&t.put("templates/growl/growl.html",'<div class="growl-container" ng-class="wrapperClasses()"><div class="growl-item alert" ng-repeat="message in growlMessages.directives[referenceId].messages" ng-class="alertClasses(message)" ng-click="stopTimeoutClose(message)"><button type="button" class="close" data-dismiss="alert" aria-hidden="true" ng-click="growlMessages.deleteMessage(message)" ng-show="!message.disableCloseButton">&times;</button><button type="button" class="close" aria-hidden="true" ng-show="showCountDown(message)">{{message.countdown}}</button><h4 class="growl-title" ng-show="message.title" ng-bind="message.title"></h4><div class="growl-message" ng-bind-html="message.text"></div></div></div>')}]),angular.module("angular-growl").provider("growl",function(){"use strict";var d={success:null,error:null,warning:null,info:null},r="messages",p="text",f="title",m="severity",g="ttl",e=!0,v="variables",n=!1,y="top-right",b=!1,_=!1,i=!1,w=!1,x=!0;this.globalTimeToLive=function(t){if("object"==typeof t)for(var e in t)t.hasOwnProperty(e)&&(d[e]=t[e]);else for(var n in d)d.hasOwnProperty(n)&&(d[n]=t);return this},this.globalTranslateMessages=function(t){return x=t,this},this.globalDisableCloseButton=function(t){return b=t,this},this.globalDisableIcons=function(t){return _=t,this},this.globalReversedOrder=function(t){return i=t,this},this.globalDisableCountDown=function(t){return w=t,this},this.messageVariableKey=function(t){return v=t,this},this.globalInlineMessages=function(t){return n=t,this},this.globalPosition=function(t){return y=t,this},this.messagesKey=function(t){return r=t,this},this.messageTextKey=function(t){return p=t,this},this.messageTitleKey=function(t){return f=t,this},this.messageSeverityKey=function(t){return m=t,this},this.messageTTLKey=function(t){return g=t,this},this.onlyUniqueMessages=function(t){return e=t,this},this.serverMessagesInterceptor=["$q","growl",function(e,n){function i(t){void 0!==t&&t.data&&t.data[r]&&0<t.data[r].length&&n.addServerMessages(t.data[r])}return{response:function(t){return i(t),t},responseError:function(t){return i(t),e.reject(t)}}}],this.$get=["$rootScope","$interpolate","$sce","$filter","$interval","growlMessages",function(o,s,a,t,l,u){var c;u.onlyUnique=e,u.reverseOrder=i;try{c=t("translate")}catch(t){}function h(t,e,n){var i,e=e||{},r={text:t,title:e.title,severity:n,ttl:e.ttl||d[n],variables:e.variables||{},disableCloseButton:void 0===e.disableCloseButton?b:e.disableCloseButton,disableIcons:void 0===e.disableIcons?_:e.disableIcons,disableCountDown:void 0===e.disableCountDown?w:e.disableCountDown,position:e.position||y,referenceId:e.referenceId||0,translateMessage:void 0===e.translateMessage?x:e.translateMessage,destroy:function(){u.deleteMessage(r)},setText:function(t){r.text=a.trustAsHtml(String(t))},onclose:e.onclose,onopen:e.onopen};return t=r,c&&t.translateMessage?(t.text=c(t.text,t.variables)||t.text,t.title=c(t.t
1itle)||t.title):(i=s(t.text),t.text=i(t.variables)),i=u.addMessage(t),o.$broadcast("growlMessage",t),l(function(){},0,1),i}return{warning:function(t,e){return h(t,e,"warning")},error:function(t,e){return h(t,e,"error")},info:function(t,e){return h(t,e,"info")},success:function(t,e){return h(t,e,"success")},general:function(t,e,n){return h(t,e,n=(n||"error").toLowerCase())},addServerMessages:function(t){if(t&&t.length)for(var e,n,i,r=t.length,o=0;o<r;o++)(i=t[o])[p]&&(e=(i[m]||"error").toLowerCase(),(n={}).variables=i[v]||{},n.title=i[f],i[g]&&(n.ttl=i[g]),h(i[p],n,e))},onlyUnique:function(){return e},reverseOrder:function(){return i},inlineMessages:function(){return n},position:function(){return y}}}]}),angular.module("angular-growl").service("growlMessages",["$sce","$interval",function(a,l){"use strict";var e=this,u=(this.directives={},{});function i(t){t=t||0;return e.directives[t]||u[t]}this.initDirective=function(t,e){return u[t]?(this.directives[t]=u[t],this.directives[t].limitMessages=e):this.directives[t]={messages:[],limitMessages:e},this.directives[t]},this.getAllMessages=function(t){return i(t=t||0)?i(t).messages:[]},this.destroyAllMessages=function(t){for(var e=this.getAllMessages(t),n=e.length-1;0<=n;n--)e[n].destroy();t=i(t);t&&(t.messages=[])},this.addMessage=function(e){var n,i,t,r,o=this.directives[e.referenceId]||(o=e.referenceId,o=u[o]||(u[o]={messages:[]})),s=o.messages;if(!this.onlyUnique||(angular.forEach(s,function(t){i=a.getTrustedHtml(t.text),e.text===i&&e.severity===t.severity&&e.title===t.title&&(n=!0)}),!n))return e.text=a.trustAsHtml(String(e.text)),e.ttl&&-1!==e.ttl&&(e.countdown=e.ttl/1e3,e.promises=[],e.close=!1,e.countdownFunction=function(){1<e.countdown?(e.countdown--,e.promises.push(l(e.countdownFunction,1e3,1,1))):e.countdown--}),angular.isDefined(o.limitMessages)&&0<(t=s.length-(o.limitMessages-1))&&s.splice(o.limitMessages-1,t),this.reverseOrder?s.unshift(e):s.push(e),"function"==typeof e.onopen&&e.onopen(),e.ttl&&-1!==e.ttl&&(r=this,e.promises.push(l(angular.bind(this,function(){r.deleteMessage(e)}),e.ttl,1,1)),e.promises.push(l(e.countdownFunction,1e3,1,1))),e},this.deleteMessage=function(t){var e,n=this.getAllMessages(t.referenceId),i=-1;for(e in n)n.hasOwnProperty(e)&&(i=n[e]===t?e:i);-1<i&&(n[i].close=!0,n.splice(i,1)),"function"==typeof t.onclose&&t.onclose()}}]),!function(){"use strict";angular.module("wu.masonry",[]).controller("MasonryCtrl",["$scope","$element","$timeout",function(t,e,n){var o={},i=[],s=!1,a=this,r=null;this.preserveOrder=!1,this.loadImages=!1,this.scheduleMasonryOnce=function(){var e=arguments;0<i.filter(function(t){return t[0]===e[0]}).length||this.scheduleMasonry.apply(null,arguments)},this.scheduleMasonry=function(){r&&n.cancel(r),i.push([].slice.call(arguments)),r=n(function(){s||(i.forEach(function(t){var e=t[0];t=t.slice(1),a.masonry[e].apply(a.masonry,t)}),i=[])},100)},this.addBrick=function(t,e,n){function i(){0===Object.keys(o).length&&a.masonry.resize(),void 0===o[n]&&(o[n]=!0,e.addClass("loaded"),a.masonry[t](e,!0))}function r(){a.scheduleMasonryOnce("layout")}s||(a.loadImages?a.preserveOrder?(i(),window.imagesLoaded(e,r)):window.imagesLoaded(e,function(){i(),r()}):(i(),r()))},this.removeBrick=function(t,e){s||(delete o[t],a.masonry.remove(e),this.scheduleMasonryOnce("layout"))},this.destroy=function(){s=!0,e.data("masonry")&&a.masonry.destroy(),t.$emit("masonry.destroyed"),o={}},this.reload=function(){a.masonry.reload(),t.$emit("masonry.reloaded")}}]).directive("masonry",function(){return{restrict:"AE",controller:"MasonryCtrl",controllerAs:"msnry",link:{pre:function(t,e,n,i){var r=t.$eval(n.masonry||n.masonryOptions),r=angular.extend({itemSelector:n.itemSelector||".masonry-brick",columnWidth:parseInt(n.columnWidth,10)||n.columnWidth},r||{}),r=(t.masonryContainer=e[0],i.masonry=new Masonry(t.masonryContainer,r),t.$eval(n.loadImages)),r=(i.loadImages=!!r,t.$eval(n.preserveOrder));i.preserveOrder=!1!==r&&void 0!==n.preserveOrder,!1!==t.$eval(n.reloadOnShow)&&void 0!==n.reloadOnShow&&t.$watch(function(){return e.prop("offsetParent")},function(t,e){t&&!e&&i.reload()}),!1!==t.$eval(n.reloadOnResize)&&void 0!==n.reloadOnResize&&t.$watch("masonryContainer.offsetWidth",function(t,e){t!==e&&i.reload()}),t.$emit("masonry.created",e),t.$on("$destroy",i.destroy)}}}}).directive("masonryBrick",function(){return{restrict:"AC",require:"^masonry",scope:!0,link:{pre:function(t,e,n,i){var r,o=t.$id,n=t.$eval(n.prepend);
1i.addBrick(n?"prepended":"appended",e,o),e.on("$destroy",function(){i.removeBrick(o,e)}),t.$on("masonry.reload",function(){i.scheduleMasonryOnce("reloadItems"),i.scheduleMasonryOnce("layout")}),t.$watch("$index",function(){void 0!==r&&r!==t.$index&&(i.scheduleMasonryOnce("reloadItems"),i.scheduleMasonryOnce("layout")),r=t.$index})}}}})}(),!function(f){"use strict";f.module("ngSlider",[]).directive("slider",["$compile","$templateCache","$timeout","$window","slider",function(u,c,h,d,p){return{restrict:"AE",require:"?ngModel",scope:{options:"=",ngDisabled:"="},priority:1,link:function(n,e,t,i){if(i){if(!n.options)throw new Error('You must provide a value for "options" attribute.');f.isString(n.options)&&(n.options=f.toJson(n.options)),n.mainSliderClass="jslider",n.mainSliderClass+=n.options.skin?" jslider_"+n.options.skin:" ",n.mainSliderClass+=n.options.vertical?" vertical ":"",n.mainSliderClass+=n.options.css?" sliderCSS":"",e.after(u(c.get("ng-slider/slider-bar.tmpl.html"))(n,function(t,e){e.tmplElt=t}));var r=!1,o=function(){n.from=""+n.options.from,n.to=""+n.options.to,n.options.calculate&&"function"==typeof n.options.calculate&&(n.from=n.options.calculate(n.from),n.to=n.options.calculate(n.to));var t={from:n.options.from,to:n.options.to,step:n.options.step,smooth:n.options.smooth,limits:n.options.smooth,round:n.options.round||!1,value:i.$viewValue,dimension:"",scale:n.options.scale,modelLabels:n.options.modelLabels,vertical:n.options.vertical,css:n.options.css,realtime:n.options.realtime,cb:s,threshold:n.options.threshold},t=(t.calculate=n.options.calculate||void 0,t.onstatechange=n.options.onstatechange||void 0,n.slider=n.slider?n.slider.init(e,n.tmplElt,t):l(e,n.tmplElt,t),r||f.element(d).bind("resize",function(t){n.slider.onresize()}),n.tmplElt.find("div")[7]);f.element(t).html(n.slider.generateScale()),n.slider.drawScale(t),n.ngDisabled&&a(n.ngDisabled),r=!0},s=(i.$render=function(){(i.$viewValue||0===i.$viewValue)&&("number"==typeof i.$viewValue&&(i.$viewValue=""+i.$viewValue),i.$viewValue.split(";")[1]||(n.mainSliderClass+=" jslider-single"),n.slider)&&(n.slider.getPointers()[0].set(i.$viewValue.split(";")[0],!0),i.$viewValue.split(";")[1])&&n.slider.getPointers()[1].set(i.$viewValue.split(";")[1],!0)},function(t,e){n.disabled||(n.$apply(function(){i.$setViewValue(t)}),n.options.callback&&n.options.callback(t,e))}),a=(n.$watch("options",function(t){$.isEmptyObject(t)||h(function(){o()})},!0),function(t){n.disabled=t,n.slider&&(n.tmplElt.toggleClass("disabled"),n.slider.disable(t))}),l=(n.$watch("ngDisabled",function(t){a(t)}),function(t,e,n){return new p(t,e,n)})}}}}]).config(function(){}).run(function(){})}(angular),!function(){"use strict";window.angular.module("ngSlider").run(["$templateCache",function(t){t.put("ng-slider/slider-bar.tmpl.html",'<span ng-class="mainSliderClass" id="{{sliderTmplId}}"><table><tr><td><div class="jslider-bg"><i class="l"></i><i class="r"></i><i class="v"></i><i class="p"></i><i class="s"></i><i class="s"></i><i class="f"></i></div><div class="jslider-pointer"></div><div class="jslider-pointer jslider-pointer-to"></div><div class="jslider-label"><span>{{from}}</span>{{options.dimension}}</div><div class="jslider-label jslider-label-to"><span>{{to}}</span>{{options.dimension}}</div><div class="jslider-value"><span></span>{{options.dimension}}</div><div class="jslider-value jslider-value-to"><span></span>{{options.dimension}}</div><div class="jslider-scale" id="{{sliderScaleDivTmplId}}"></div></td></tr></table></span>')}])}(),!function(){"use strict";angular.module("ngSlider").constant("sliderConstants",{SLIDER:{settings:{from:1,to:40,step:1,smooth:!0,limits:!1,round:!1,value:"3",dimension:"",vertical:!1,calculate:!1,onstatechange:!1,callback:!1,realtime:!1},className:"jslider",selector:".jslider-",css:{visible:{visibility:"visible"},hidden:{visibility:"hidden"}}},EVENTS:{}})}(),!function(){"use strict";angular.module("ngSlider").factory("sliderUtils",["$window",function(i){return{offset:function(t){var t=t[0],e=document.documentElement||document.body,n=window.pageXOffset||e.scrollLeft,e=window.pageYOffset||e.scrollTop;return{left:t.getBoundingClientRect().left+n,top:t.getBoundingClientRect().top+e}},browser:function(){var t,e=i.navigator.userAgent,n={mozilla:/mozilla/i,chrome:/chrome/i,safari:/safari/i,firefox:/firefox/i,ie:/internet explorer/i};for(t in n)if(n[t].test(e))return t;return"unknown"}}}])}(),!function(w){"use strict";w.module("ngSlider").factory("slider",["sliderPointer","sliderConstants","sliderUtils",function(b,i,_){function t(){return this.init.apply(this,arguments)}return t.prototype.init=function(t,e,n){return this.settings=n,this.inputNode=t,this.inputNode.addClass("ng-hide"),this.settings.interval=this.settings.to-this.settings.from,this.settings.calculate&&w.isFunction(this.settings.calculate)&&(this.nice=this.settings.calculate),this.settings.onstatechange&&w.isFunction(this.settings.onstatechange)&&(this.onstatechange=this.settings.onstatechange),this.css=i.SLIDER.css,this.is={init:!1},this.o={},this.initValue={},this.isAsc=n.from<n.to,this.create(e),this},t.prototype.create=function(t){var r=this,t=(this.domNode=t,this.domNode.find("div")),e=this.domNode.find("i"),n=w.element,i=w.extend,o=w.forEach,s=n(t[1]),a=n(t[2]),l=n(t[5]),u=n(t[6]),c=n(e[0]),h=n(e[1]),d=n(e[2]),p=n(e[3]),f=n(e[4]),m=n(e[5]),e=n(e[6]),g=[s,a],v=_.offset(this.domNode),v={left:v.left,top:v.top,width:this.domNode[0].clientWidth,height:this.domNode[0].clientHeight},y=r.settings.value.split(";");this.sizes={domWidth:this.domNode[0].clientWidth,domHeight:this.domNode[0].clientHeight,domOffset:v},i(this.o,{pointers:{},labels:{0:{o:l},1:{o:u}}
1,limits:{0:w.element(t[3]),1:w.element(t[4])},indicators:{0:p,1:f,2:m,3:e}}),i(this.o.labels[0],{value:this.o.labels[0].o.find("span")}),i(this.o.labels[1],{value:this.o.labels[1].o.find("span")}),this.settings.single=!r.settings.value.split(";")[1],o(g,function(t,e){r.settings=w.copy(r.settings);var n,i=y[e];i&&(r.o.pointers[e]=new b(t,e,r.settings.vertical,r),n=(t=y[e-1])?parseInt(t,10):void 0,i=r.settings.round?parseFloat(i):parseInt(i,10),(t&&r.isAsc?i<n:n<i)&&(i=t),n=(r.isAsc?i>r.settings.to:i<r.settings.to)?r.settings.to:i,r.o.pointers[e].set(n,!0),t=_.offset(r.o.pointers[e].ptr),r.o.pointers[e].d={left:t.left,top:t.top})}),r.domNode.bind("mousedown",r.clickHandler.apply(r)),this.o.value=n(this.domNode.find("i")[2]),this.is.init=!0,this.settings.css&&(c.css(this.settings.css.background||{}),h.css(this.settings.css.background||{}),this.o.pointers[1]||(p.css(this.settings.css.before||{}),e.css(this.settings.css.after||{})),f.css(this.settings.css.default||{}),m.css(this.settings.css.default||{}),d.css(this.settings.css.range||{}),s.css(this.settings.css.pointer||{}),a.css(this.settings.css.pointer||{})),o(this.o.pointers,function(t,e){r.redraw(t)})},t.prototype.clickHandler=function(){var h=this;return function(t){var e,n,i,r,o,s,a,l,u,c;if(!h.disabled)return s=h.settings.vertical,i=_.offset(h.domNode),e=h.o.pointers[0],n=h.o.pointers[1]||null,r=t.originalEvent||t,r=s?r.pageY:r.pageX,s=s?"top":"left",!h.isAsc&&n&&(o=n,n=e,e=o),o={left:i.left,top:i.top,width:h.domNode[0].clientWidth,height:h.domNode[0].clientHeight},i=h.o.pointers[0],(i=n&&(n.d.width||(a=h.o.pointers[0].ptr,l=h.o.pointers[1].ptr,c=_.offset(a),u=_.offset(l),h.o.pointers[0].d={left:c.left,top:c.top,width:a[0].clientWidth,height:a[0].clientHeight},h.o.pointers[1].d={left:u.left,top:u.top,width:l[0].clientWidth,height:l[0].clientHeight}),(n.d[s]-e.d[s])/2<r-e.d[s])?h.isAsc?n:e:i)._parent={offset:o,width:o.width,height:o.height},c=e._getPageCoords(t),i.cx=c.x-i.d.left,i.cy=c.y-i.d.top,i.onmousemove(t,c.x,c.y),i.onmouseup(),w.extend(i.d,{left:c.x,top:c.y}),h.redraw(i),!1}},t.prototype.disable=function(t){this.disabled=t},t.prototype.nice=function(t){return t},t.prototype.onstatechange=function(){},t.prototype.limits=function(t,e){this.settings.smooth||(n=100*this.settings.step/this.settings.interval,t=Math.round(t/n)*n);var n=this.o.pointers[1-e.uid];return n&&e.uid&&t<n.value.prc&&(t=n.value.prc),100<(t=(t=n&&!e.uid&&t>n.value.prc?n.value.prc:t)<0?0:t)&&(t=100),Math.round(10*t)/10},t.prototype.getPointers=function(){return this.o.pointers},t.prototype.generateScale=function(){if(this.settings.scale&&0<this.settings.scale.length){for(var t="",e=this.settings.scale,n=(100/(e.length-1)).toFixed(2),i=this.settings.vertical?"top":"left",r=0;r<e.length;r++)t+='<span style="'+i+": "+r*n+'%">'+("|"!=e[r]?"<ins>"+e[r]+"</ins>":"")+"</span>";return t}return""},t.prototype.onresize=function(){var n=this;this.sizes={domWidth:this.domNode[0].clientWidth,domHeight:this.domNode[0].clientHeight,domOffset:{left:this.domNode[0].offsetLeft,top:this.domNode[0].offsetTop,width:this.domNode[0].clientWidth,height:this.domNode[0].clientHeight}}
1,w.forEach(this.o.pointers,function(t,e){n.redraw(t)})},t.prototype.update=function(){this.onresize(),this.drawScale()},t.prototype.drawScale=function(t){w.forEach(w.element(t).find("ins"),function(t,e){t.style.marginLeft=-t.clientWidth/2})},t.prototype.redraw=function(t){if(!this.is.init)return this.o.pointers[0]&&!this.o.pointers[1]?(this.originValue=this.o.pointers[0].value.prc,this.o.indicators[0].css(this.settings.vertical?{top:0,height:this.o.pointers[0].value.prc+"%"}:{left:0,width:this.o.pointers[0].value.prc+"%"}),this.o.indicators[1].css(this.settings.vertical?{top:this.o.pointers[0].value.prc+"%"}:{left:this.o.pointers[0].value.prc+"%"}),this.o.indicators[3].css(this.settings.vertical?{top:this.o.pointers[0].value.prc+"%"}:{left:this.o.pointers[0].value.prc+"%"})):(this.o.indicators[2].css(this.settings.vertical?{top:this.o.pointers[1].value.prc+"%"}:{left:this.o.pointers[1].value.prc+"%"}),this.o.indicators[0].css(this.settings.vertical?{top:0,height:"0"}:{left:0,width:"0"}),this.o.indicators[3].css(this.settings.vertical?{top:"0",height:"0"}:{left:"0",width:"0"})),!1;this.setValue(),this.o.pointers[0]&&this.o.pointers[1]&&(e=this.settings.vertical?{top:this.o.pointers[0].value.prc+"%",height:this.o.pointers[1].value.prc-this.o.pointers[0].value.prc+"%"}:{left:this.o.pointers[0].value.prc+"%",width:this.o.pointers[1].value.prc-this.o.pointers[0].value.prc+"%"},this.o.value.css(e),this.o.pointers[0].value.prc===this.o.pointers[1].value.prc)&&this.o.pointers[1].ptr.css("z-index",0===this.o.pointers[0].value.prc?"3":"1"),this.o.pointers[0]&&!this.o.pointers[1]&&(0<=(e=this.o.pointers[0].value.prc-this.originValue)?this.o.indicators[3].css(this.settings.vertical?{height:e+"%"}:{width:e+"%"}):this.o.indicators[3].css(this.settings.vertical?{height:0}:{width:0}),this.o.pointers[0].value.prc<this.originValue?this.o.indicators[0].css(this.settings.vertical?{height:this.o.pointers[0].value.prc+"%"}:{width:this.o.pointers[0].value.prc+"%"}):this.o.indicators[0].css(this.settings.vertical?{height:this.originValue+"%"}:{width:this.originValue+"%"}));var e=this.nice(t.value.origin);this.settings.modelLabels&&(e=void 0!==this.settings.modelLabels[e]?this.settings.modelLabels[e]:e),this.o.labels[t.uid].value.html(e),this.redrawLabels(t)},t.prototype.redrawLabels=function(t){function e(t,e,n){e.margin=-e.label/2;var i,r=a.settings.vertical?a.sizes.domHeight:a.sizes.domWidth;return a.sizes.domWidth&&((i=e.border+e.margin)<0&&(e.margin-=i),0<a.sizes.domWidth&&e.border+e.label/2>r?(e.margin=0,e.right=!0):e.right=!1),a.settings.vertical?t.o.css({top:n+"%",marginLeft:"20px",marginTop:e.margin,bottom:"auto"}):t.o.css({left:n+"%",marginLeft:e.margin+"px",right:"auto"}),e.right&&0<a.sizes.domWidth&&(a.settings.vertical?t.o.css({top:"auto",bottom:0}):t.o.css({left:"auto",right:0})),e}var n,i,r,o,s,a=this,l=this.o.labels[t.uid],u=t.value.prc,c=0===l.o[0].offsetWidth?7*l.o[0].textContent.length:l.o[0].offsetWidth,c=(this.sizes.domWidth=this.domNode[0].clientWidth,this.sizes.domHeight=this.domNode[0].clientHeight,{label:a.settings.vertical?l.o[0].offsetHeight:c,right:!1,border:u*(a.settings.vertical?this.sizes.domHeight:this.sizes.domWidth)/100}),h=0===t.uid?1:0,d=(this.settings.single||this.settings.vertical||(n=this.o.labels[h],i=this.o.pointers[h],h=this.o.labels[0],r=this.o.labels[1],s=this.o.pointers[0],s=this.o.pointers[1].ptr[0].offsetLeft-s.ptr[0].offsetLeft,o=this.nice(i.value.origin),h.o.css(this.css.visible),r.o.css(this.css.visible),10+s<h.o[0].offsetWidth+r.o[0].offsetWidth?(n.o.css(this.css.hidden),n.value.html(o),u=(i.value.prc-u)/2+u,i.value.prc!=t.value.prc&&(o=this.nice(this.o.pointers[0].value.origin),s=this.nice(this.o.pointers[1].value.origin),this.settings.modelLabels&&(o=void 0!==this.settings.modelLabels[o]?this.settings.modelLabels[o]:o,s=void 0!==this.settings.modelLabels[s]?this.settings.modelLabels[s]:s),l.value.html(o+"&nbsp;&ndash;&nbsp;"+s),c.label=l.o[0].offsetWidth,c.border=u*d/100)):(n.value.html(o),n.o.css(this.css.visible))),c=e(l,c,u),a.settings.vertical?a.sizes.domHeight:a.sizes.domWidth);n&&(h=0===l.o[0].offsetWidth?l.o[0].textContent.length/2*7:l.o[0].offsetWidth,c=e(n,{label:a.settings.vertical?n.o[0].offsetHeight:h,right:!1,border:i.value.prc*this.sizes.domWidth/100},i.value.prc)),this.redrawLimits()},t.prototype.redrawLimits=function(){if(this.settings.limits){var t,e,n,i,r=[!0,!0],o=0;for(t in this.o.pointers)this.settings.single&&0!==t||(e=this.o.pointers[t],(n=(e=this.o.labels[e.uid]).o[0].offsetLeft-this.sizes.domOffset.left)<this.o.limits[0][0].clientWidth&&(r[0]=!1),i=this.o.limits[1],n+e.o[0].clientWidth>this.sizes.domWidth-i[0].clientWidth&&(r[1]=!1));for(;o<r.length;
1o++)r[o]?w.element(this.o.limits[o]).addClass("animate-show"):w.element(this.o.limits[o]).addClass("animate-hidde")}},t.prototype.setValue=function(){var t=this.getValue();this.inputNode.attr("value",t),this.onstatechange.call(this,t,this.inputNode)},t.prototype.getValue=function(){var n,i;return!!this.is.init&&(i="",w.forEach((n=this).o.pointers,function(t,e){void 0===t.value.prc||isNaN(t.value.prc)||(i+=(0<e?";":"")+n.prcToValue(t.value.prc))}),i)},t.prototype.getPrcValue=function(){return!!this.is.init&&""},t.prototype.prcToValue=function(t){var e;if(this.settings.heterogeneity&&0<this.settings.heterogeneity.length)for(var n=this.settings.heterogeneity,i=0,r=this.settings.from,o=0;o<=n.length;o++){var s=n[o]?n[o].split("/"):[100,this.settings.to];i<=t&&t<=s[0]&&(e=r+(t-i)*(s[1]-r)/(s[0]-i)),i=s[0],r=s[1]}else e=this.settings.from+t*this.settings.interval/100;return this.round(e)},t.prototype.valueToPrc=function(t,e){var n;if(this.settings.heterogeneity&&0<this.settings.heterogeneity.length)for(var i=this.settings.heterogeneity,r=0,o=this.settings.from,s=0;s<=i.length;s++){var a=i[s]?i[s].split("/"):[100,this.settings.to];o<=t&&t<=a[1]&&(n=e.limits(r+(t-o)*(a[0]-r)/(a[1]-o))),r=a[0],o=a[1]}else n=e.limits(100*(t-this.settings.from)/this.settings.interval);return n},t.prototype.round=function(t){return t=Math.round(t/this.settings.step)*this.settings.step,t=this.settings.round?Math.round(t*Math.pow(10,this.settings.round))/Math.pow(10,this.settings.round):Math.round(t)},t}])}(angular),!function(r){"use strict";r.module("ngSlider").factory("sliderPointer",["sliderDraggable","sliderUtils",function(t,n){function e(){t.apply(this,arguments)}return(e.prototype=new t).oninit=function(t,e,n,i){this.uid=e,this.parent=i,this.value={},this.vertical=n,this.settings=r.copy(i.settings),this.normalOrder=this.parent.settings.from<this.parent.settings.to,this.threshold=this.parent.settings.threshold},e.prototype.onmousedown=function(t){var e=n.offset(this.parent.domNode),e={left:e.left,top:e.top,width:this.parent.domNode[0].clientWidth,height:this.parent.domNode[0].clientHeight};this._parent={offset:e,width:e.width,height:e.height},this.ptr.addClass("jslider-pointer-hover")},e.prototype.onmousemove=function(t,e,n){t=this._getPageCoords(t);this._set(this.vertical?this.calc(t.y):this.calc(t.x)),this.settings.realtime&&this.settings.cb&&r.isFunction(this.settings.cb)&&this.allowed&&this.settings.cb.call(this.parent,this.parent.getValue(),!this.is.drag)},e.prototype.onmouseup=function(t){this.settings.cb&&r.isFunction(this.settings.cb)&&this.allowed&&this.settings.cb.call(this.parent,this.parent.getValue(),!this.is.drag),this.is.drag||this.ptr.removeClass("jslider-pointer-hover")},e.prototype.limits=function(t){return this.parent.limits(t,this)},e.prototype.calc=function(t){return this.vertical?this.limits(100*(t-this._parent.offset.top)/this._parent.height):this.limits(100*(t-this._parent.offset.left)/this._parent.width)},e.prototype.set=function(t,e){this.value.origin=this.parent.round(t),this._set(this.parent.valueToPrc(t,this),e)},e.prototype._set=function(t,e){var n,i;this.allowed=!0,this.value.origin=this.parent.prcToValue(t),this.threshold&&this.parent.o.pointers[1]&&(i=this.parent.o.pointers[0].value.origin,n=this.parent.o.pointers[1].value.origin,this.allowed=(this.normalOrder?n-i:i-n)>=this.threshold),this.allowed?(this.value.prc=t,this.vertical?this.ptr.css({top:t+"%",marginTop:-5}):this.ptr.css({left:t+"%"}),this.parent.redraw(this)):(i=this.parent.o.pointers[0===this.uid?1:0],0===this.uid?this.value.origin=this.normalOrder?i.value.origin-this.threshold:i.value.origin+this.threshold:this.value.origin=this.normalOrder?i.value.origin+this.threshold:i.value.origin-this.threshold)},e}])}(angular),!function(i){"use strict";i.module("ngSlider").factory("sliderDraggable",["sliderUtils",function(n){function t(){this._init.apply(this,arguments)}return t.prototype.oninit=function(){},t.prototype.events=function(){},t.prototype.onmousedown=function(){this.ptr.css({position:"absolute"})},t.prototype.onmousemove=function(t,e,n){this.ptr.css({left:e,top:n})},t.prototype.onmouseup=function(){},t.prototype.isDefault={drag:!1,clicked:!1,toclick:!0,mouseup:!1},t.prototype._init=function(){var t;0<arguments.length&&(this.ptr=arguments[0],this.parent=arguments[2],this.ptr)&&(this.is={},i.extend(this.is,this.isDefault),t=n.offset(this.ptr),this.d={left:t.left,top:t.top,width:this.ptr[0].clientWidth,height:this.ptr[0].clientHeight},this.oninit.apply(this,arguments),this._events())},t.prototype._getPageCoords=function(t){return t.targetTouches&&t.targetTouches[0]?{x:t.targetTouches[0].pageX,y:t.targetTouches[0].pageY}:{x:t.pageX,y:t.pageY}},t.prototype._bindEvent=function(t,e,n){this.supportTouches_?t[0].addEventListener(this.events_[e],n,!1):t.bind(this.events_[e],n)},t.prototype._events=function(){var e=this,t=(this.supportTouches_="ontouchend"in document,this.events_={click:this.supportTouches_?"touchstart":"click",down:this.supportTouches_?"touchstart":"mousedown",move:this.supportTouches_?"touchmove":"mousemove",up:this.supportTouches_?"touchend":"mou
1seup",mousedown:(this.supportTouches_,"mousedown")},i.element(window.document));this._bindEvent(t,"move",function(t){e.is.drag&&(t.stopPropagation(),t.preventDefault(),e.parent.disabled||e._mousemove(t))}),this._bindEvent(t,"down",function(t){e.is.drag&&(t.stopPropagation(),t.preventDefault())}),this._bindEvent(t,"up",function(t){e._mouseup(t)}),this._bindEvent(this.ptr,"down",function(t){return e._mousedown(t),!1}),this._bindEvent(this.ptr,"up",function(t){e._mouseup(t)}),this.events()},t.prototype._mousedown=function(t){this.is.drag=!0,this.is.clicked=!1,this.is.mouseup=!1;var e=this._getPageCoords(t);this.cx=e.x-this.ptr[0].offsetLeft,this.cy=e.y-this.ptr[0].offsetTop,i.extend(this.d,{left:e.x,top:e.y,width:this.ptr[0].clientWidth,height:this.ptr[0].clientHeight}),this.outer&&this.outer.get(0)&&this.outer.css({height:Math.max(this.outer.height(),$(document.body).height()),overflow:"hidden"}),this.onmousedown(t)},t.prototype._mousemove=function(t){this.is.toclick=!1;var e=this._getPageCoords(t);this.onmousemove(t,e.x-this.cx,e.y-this.cy)},t.prototype._mouseup=function(t){var e;this.is.drag&&(this.is.drag=!1,e=n.browser(),this.outer&&this.outer.get(0)&&("mozilla"===e?this.outer.css({overflow:"hidden"}):this.outer.css({overflow:"visible"}),this.outer.css({height:"auto"})),this.onmouseup(t))},t}])}(angular),!function(t,e){"use strict";"function"==typeof define&&define.amd?define(["angular"],e):t.hasOwnProperty("angular")?e(t.angular):"object"==typeof exports&&(module.exports=e(require("angular")))}(this,function(f){"use strict";return(f=f&&f.module?f:window.angular).module("ngStorage",[]).provider("$localStorage",t("localStorage")).provider("$sessionStorage",t("sessionStorage"));function t(p){return function(){var c="ngStorage-",h=(this.setKeyPrefix=function(t){if("string"!=typeof t)throw new TypeError("[ngStorage] - "+p+"Provider.setKeyPrefix() expects a String.");c=t},f.toJson),d=f.fromJson;this.setSerializer=function(t){if("function"!=typeof t)throw new TypeError("[ngStorage] - "+p+"Provider.setSerializer expects a function.");h=t},this.setDeserializer=function(t){if("function"!=typeof t)throw new TypeError("[ngStorage] - "+p+"Provider.setDeserializer expects a function.");d=t},this.get=function(t){return d(window[p].getItem(c+t))},this.set=function(t,e){return window[p].setItem(c+t,h(e))},this.$get=["$rootScope","$window","$log","$timeout","$document",function(n,i,t,e,r){var o,s,a=c.length,l=function(t){var e;try{e=i[t]}catch(t){e=!1}if(e&&"localStorage"===t){t="__"+Math.round(1e7*Math.random());try{localStorage.setItem(t,t),localStorage.removeItem(t)}catch(t){e=!1}}return e}(p)||(t.warn("This browser does not support Web Storage!"),{setItem:f.noop,getItem:f.noop,removeItem:f.noop}),u={$default:function(t){for(var e in t)f.isDefined(u[e])||(u[e]=f.copy(t[e]));return u.$sync(),u},$reset:function(t){for(var e in u)"$"!==e[0]&&delete u[e]&&l.removeItem(c+e);return u.$default(t)},$sync:function(){for(var t,e=0,n=l.length;e<n;e++)(t=l.key(e))&&c===t.slice(0,a)&&(u[t.slice(a)]=d(l.getItem(t)))},$apply:function(){var n;if(s=null,!f.equals(u,o)){for(var t in n=f.copy(o),f.forEach(u,function(t,e){f.isDefined(t)&&"$"!==e[0]&&(l.setItem(c+e,h(t)),delete n[e])}),n)l.removeItem(c+t);o=f.copy(u)}}};return u.$sync(),o=f.copy(u),n.$watch(function(){s=s||e(u.$apply,100,!1)}),i.addEventListener&&i.addEventListener("storage",function(t){var e;!t.key||(e=r[0]).hasFocus&&e.hasFocus()||c!==t.key.slice(0,a)||(t.newValue?u[t.key.slice(a)]=d(t.newValue):delete u[t.key.slice(a)],o=f.copy(u),n.$apply())}),i.addEventListener&&i.addEventListener("beforeunload",function(){u.$apply()}),u}]}}}),!function(t){var e,n;(function(){return this})().true=t,e=function(){function l(t,e){var n=typeof t[e];return n==_||!(n!=b||!t[e])||"unknown"==n}function e(t,e){return!(typeof t[e]!=b||!t[e])}function t(t,e){return typeof t[e]!=w}function n(i){return function(t,e){for(var n=e.length;n--;)if(!i(t,e[n]))return!1;return!0}}function u(t){return t&&k(t,L)&&S(t,I)}function c(t){return e(t,"body")?t.body:t.getElementsByTagName("body")[0]}function h(t){typeof console!=w&&l(console,"log")&&console.log(t)}function i(t,e){(T&&e?alert:h)(t)}function d(t){M.initialized=!0,M.supported=!1,i("Rangy is not supported in this environment. Reason: "+t,M.config.alertOnFail)}function p(t){return t.message||t.description||String(t)}function r(){if(T&&!M.initialized){var t,e,n,i=!1,r=!1,o=(l(document,"createRange")&&(t=document.createRange(),k(t,C))&&S(t,x)&&(i=!0),c(document));if(o&&"body"==o.nodeName.toLowerCase())if(o&&l(o,"createTextRange")&&u(t=o.createTextRange())&&(r=!0),i||r){for(n in M.initialized=!0,M.features={implementsDomRange:i,implementsTextRange:r},E)(e=E[n])instanceof f&&e.init(e,M);for(var s=0,a=N.length;s<a;++s)try{N[s](M)}catch(t){h("Rangy init listener threw an exception. Continuing. Detail: "+p(t))}}else d("Neither Range nor TextRange are available");else d("No body element found")}}function o(t,e,n){n&&(t+=" in module "+n.name),M.warn("DEPRECATED: "+t+" is deprecated. Please use "+e+" instead.")}
1function s(t,e,n,i){t[e]=function(){return o(e,n,i),t[n].apply(t,D.toArray(arguments))}}function f(t,e,n){this.name=t,this.dependencies=e,this.initialized=!1,this.supported=!1,this.initializer=n}function a(e,t,n){t=new f(e,t,function(t){if(!t.initialized){t.initialized=!0;try{n(M,t),t.supported=!0}catch(t){h("Module '"+e+"' failed to load: "+p(t)),t.stack&&h(t.stack)}}});return E[e]=t}function m(){}var g,v,y,b="object",_="function",w="undefined",x=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],C=["setStart","setStartBefore","setStartAfter","setEnd","setEndBefore","setEndAfter","collapse","selectNode","selectNodeContents","compareBoundaryPoints","deleteContents","extractContents","cloneContents","insertNode","surroundContents","cloneRange","toString","detach"],I=["boundingHeight","boundingLeft","boundingTop","boundingWidth","htmlText","text"],L=["collapse","compareEndPoints","duplicate","moveToElementText","parentElement","select","setEndPoint","getBoundingClientRect"],k=n(l),$=n(e),S=n(t),E={},T=typeof window!=w&&typeof document!=w,D={isHostMethod:l,isHostObject:e,isHostProperty:t,areHostMethods:k,areHostObjects:$,areHostProperties:S,isTextRange:u,getBody:c,forEach:[].forEach?function(t,e){t.forEach(e)}:function(t,e){for(var n=0,i=t.length;n<i;++n)e(t[n],n)}},M={version:"1.3.0",initialized:!1,isBrowser:T,supported:!0,util:D,features:{},modules:E,config:{alertOnFail:!1,alertOnWarn:!1,preferTextRange:!1,autoInitialize:typeof rangyAutoInitialize==w||rangyAutoInitialize}};if(M.fail=d,M.warn=function(t){i("Rangy warning: "+t,M.config.alertOnWarn)},!{}.hasOwnProperty?d("hasOwnProperty not supported"):(D.extend=g=function(t,e,n){var i,r,o;for(o in e)e.hasOwnProperty(o)&&(i=t[o],r=e[o],n&&null!==i&&"object"==typeof i&&null!==r&&"object"==typeof r&&g(i,r,!0),t[o]=r);return e.hasOwnProperty("toString")&&(t.toString=e.toString),t},D.createOptions=function(t,e){var n={};return g(n,e),t&&g(n,t),n}),T||d("Rangy can only run in a browser"),T){var $=document.createElement("div"),A=($.appendChild(document.createElement("span")),[].slice);try{1==A.call($.childNodes,0)[0].nodeType&&(v=function(t){return A.call(t,0)})}catch(t){}}D.toArray=v=v||function(t){for(var e=[],n=0,i=t.length;n<i;++n)e[n]=t[n];return e},T&&(l(document,"addEventListener")?y=function(t,e,n){t.addEventListener(e,n,!1)}:l(document,"attachEvent")?y=function(t,e,n){t.attachEvent("on"+e,n)}:d("Document does not have required addEventListener or attachEvent method"),D.addListener=y);function O(t){R||(R=!0,!M.initialized&&M.config.autoInitialize&&r())}var N=[],P=(D.deprecationNotice=o,D.createAliasForDeprecatedMethod=s,M.init=r,M.addInitListener=function(t){M.initialized?t(M):N.push(t)},[]),R=(M.addShimListener=function(t){P.push(t)},T&&(M.shim=M.createMissingNativeApi=function(t){t=t||window,r();for(var e=0,n=P.length;e<n;++e)P[e](t)},s(M,"createMissingNativeApi","shim")),f.prototype={init:function(){for(var t,e,n=this.dependencies||[],i=0,r=n.length;i<r;++i){if(e=n[i],!((t=E[e])&&t instanceof f))throw new Error("required module '"+e+"' not found");if(t.init(),!t.supported)throw new Error("required module '"+e+"' not supported")}this.initializer(this)},fail:function(t){throw this.initialized=!0,this.supported=!1,new Error(t)},warn:function(t){M.warn("Module "+this.name+": "+t)},deprecationNotice:function(t,e){M.warn("DEPRECATED: "+t+" in module "+this.name+" is deprecated. Please use "+e+" instead")},createError:function(t){return new Error("Error in Rangy "+this.name+" module: "+t)}},M.createModule=function(t){var e,n=2==arguments.length?(e=arguments[1],[]):(e=arguments[2],arguments[1]),n=a(t,n,e);M.initialized&&M.supported&&n.init()},M.createCoreModule=function(t,e,n){a(t,e,n)},M.RangePrototype=m,M.rangePrototype=new m,M.selectionPrototype=new function(){},M.createCoreModule("DomUtil",[],function(t,l){function u(t){for(var e=0;t=t.previousSibling;)++e;return e}function c(t,e){for(var n=[],i=t;i;i=i.parentNode)n.push(i);for(i=e;i;i=i.parentNode)if(v(n,i))return i;return null}function n(t,e,n){for(var i=n?e:e.parentNode;i;){if(i===t)return!0;
1i=i.parentNode}return!1}function h(t,e,n){for(var i,r=n?t:t.parentNode;r;){if((i=r.parentNode)===e)return r;r=i}return null}function i(t){t=t.nodeType;return 3==t||4==t||8==t}function s(t,e){var n=e.nextSibling,e=e.parentNode;return n?e.insertBefore(t,n):e.appendChild(t),t}function r(t){if(9==t.nodeType)return t;if(typeof t.ownerDocument!=w)return t.ownerDocument;if(typeof t.document!=w)return t.document;if(t.parentNode)return r(t.parentNode);throw l.createError("getDocument: no document found for node")}function o(t){t=r(t);if(typeof t.defaultView!=w)return t.defaultView;if(typeof t.parentWindow!=w)return t.parentWindow;throw l.createError("Cannot get a window object for node")}function a(t){if(typeof t.contentDocument!=w)return t.contentDocument;if(typeof t.contentWindow!=w)return t.contentWindow.document;throw l.createError("getIframeDocument: No Document object found for iframe element")}function d(t){return t&&x.isHostMethod(t,"setTimeout")&&x.isHostObject(t,"document")}function p(t){try{return t.parentNode,!1}catch(t){return!0}}function e(t){var e;return t?y&&p(t)?"[Broken node]":i(t)?'"'+t.data+'"':1==t.nodeType?(e=t.id?' id="'+t.id+'"':"","<"+t.nodeName+e+">[index:"+u(t)+",length:"+t.childNodes.length+"]["+(t.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"):t.nodeName:"[No node]"}function f(t){this.root=t,this._next=t}function m(t,e){this.node=t,this.offset=e}function g(t){this.code=this[t],this.codeName=t,this.message="DOMException: "+this.codeName}function v(t,e){for(var n=t.length;n--;)if(t[n]===e)return!0;return!1}var y,b,_,w="undefined",x=t.util,C=x.getBody,k=(x.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||l.fail("document missing a Node creation method"),x.isHostMethod(document,"getElementsByTagName")||l.fail("document missing getElementsByTagName method"),document.createElement("div")),k=(x.areHostMethods(k,["insertBefore","appendChild","cloneNode"])||l.fail("Incomplete Element implementation"),x.isHostProperty(k,"innerHTML")||l.fail("Element is missing innerHTML property"),document.createTextNode("test"));x.areHostMethods(k,["splitText","deleteData","insertData","appendData","cloneNode"])||l.fail("Incomplete Text Node implementation");(k=document.createElement("b")).innerHTML="1",b=k.firstChild,k.innerHTML="<br />",y=p(b),t.features.crashyTextNodes=y,typeof window.getComputedStyle!=w?_=function(t,e){return o(t).getComputedStyle(t,null)[e]}:typeof document.documentElement.currentStyle!=w?_=function(t,e){return t.currentStyle?t.currentStyle[e]:""}:l.fail("No means of obtaining computed style properties found"),f.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var t,e,n=this._current=this._next;if(this._current)if(t=n.firstChild)this._next=t;else{for(e=null;n!==this.root&&!(e=n.nextSibling);)n=n.parentNode;this._next=e}return this._current},detach:function(){this._current=this._next=this.root=null}},m.prototype={equals:function(t){return!!t&&this.node===t.node&&this.offset==t.offset},inspect:function(){return"[DomPosition("+e(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},(g.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ER
1R:24}).toString=function(){return this.message},t.dom={arrayContains:v,isHtmlNamespace:function(t){return typeof t.namespaceURI==w||null===(t=t.namespaceURI)||"http://www.w3.org/1999/xhtml"==t},parentElement:function(t){return 1==(t=t.parentNode).nodeType?t:null},getNodeIndex:u,getNodeLength:function(t){switch(t.nodeType){case 7:case 10:return 0;case 3:case 8:return t.length;default:return t.childNodes.length}},getCommonAncestor:c,isAncestorOf:n,isOrIsAncestorOf:function(t,e){return n(t,e,!0)},getClosestAncestorIn:h,isCharacterDataNode:i,isTextOrCommentNode:function(t){return!!t&&(3==(t=t.nodeType)||8==t)},insertAfter:s,splitDataNode:function(t,e,n){var i=t.cloneNode(!1);if(i.deleteData(0,e),t.deleteData(e,t.length-e),s(i,t),n)for(var r,o=0;r=n[o++];)r.node==t&&r.offset>e?(r.node=i,r.offset-=e):r.node==t.parentNode&&r.offset>u(t)&&++r.offset;return i},getDocument:r,getWindow:o,getIframeWindow:function(t){if(typeof t.contentWindow!=w)return t.contentWindow;if(typeof t.contentDocument!=w)return t.contentDocument.defaultView;throw l.createError("getIframeWindow: No Window object found for iframe element")},getIframeDocument:a,getBody:C,isWindow:d,getContentDocument:function(t,e,n){var i;if(t?x.isHostProperty(t,"nodeType")?i=(1==t.nodeType&&"iframe"==t.tagName.toLowerCase()?a:r)(t):d(t)&&(i=t.document):i=document,i)return i;throw e.createError(n+"(): Parameter must be a Window object or DOM node")},getRootContainer:function(t){for(var e;e=t.parentNode;)t=e;return t},comparePoints:function(t,e,n,i){var r,o,s,a;if(t==n)return e===i?0:e<i?-1:1;if(r=h(n,t,!0))return e<=u(r)?-1:1;if(r=h(t,n,!0))return u(r)<i?-1:1;if(!(e=c(t,n)))throw new Error("comparePoints error: nodes have no common ancestor");if((o=t===e?e:h(t,e,!0))===(s=n===e?e:h(n,e,!0)))throw l.createError("comparePoints got to case 4 and childA and childB are the same!");for(a=e.firstChild;a;){if(a===o)return-1;if(a===s)return 1;a=a.nextSibling}},isBrokenNode:p,inspectNode:e,getComputedStyleProperty:_,createTestElement:function(t,e,n){var i=C(t);return(t=t.createElement("div")).contentEditable=""+!!n,e&&(t.innerHTML=e),(n=i.firstChild)?i.insertBefore(t,n):i.appendChild(t),t},removeNode:function(t){return t.parentNode.removeChild(t)},fragmentFromNodeChildren:function(t){for(var e,n=r(t).createDocumentFragment();e=t.firstChild;)n.appendChild(e);return n},createIterator:function(t){return new f(t)},DomPosition:m},t.DOMException=g}),M.createCoreModule("DomRange",["DomUtil"],function(o,I){function s(t,e){return 3!=t.nodeType&&(S(t,e.startContainer)||S(t,e.endContainer))}function a(t){return t.document||r(t.startContainer)}function l(t){return new K(t.parentNode,$(t))}function c(t){return new K(t.parentNode,$(t)+1)}function n(t,e,n){var i=11==t.nodeType?t.firstChild:t;return k(e)?n==e.length?w.insertAfter(t,e):e.parentNode.insertBefore(t,0==n?e:T(e,n)):n>=e.childNodes.length?e.appendChild(t):e.insertBefore(t,e.childNodes[n]),i}function e(t,e,n){if(b(t),b(e),a(e)!=a(t))throw new C("WRONG_DOCUMENT_ERR");var i=E(t.startContainer,t.startOffset,e.endContainer,e.endOffset),t=E(t.endContainer,t.endOffset,e.startContainer,e.startOffset);return n?i<=0&&0<=t:i<0&&0<t}function u(t,e,n){var i,r,o,s;for(n=n||{stop:!1};o=t.next();)if(t.isPartiallySelectedSubtree()){if(!1===e(o))return n.stop=!0;if(u(s=t.getSubtreeIterator(),e,n),s.detach(),n.stop)return}else for(i=w.createIterator(o);r=i.next();)if(!1===e(r))return n.stop=!0}function h(t){for(var e;t.next();)t.isPartiallySelectedSubtree()?(h(e=t.getSubtreeIterator()),e.detach()):t.remove()}function d(t){for(var e,n,i=a(t.range).createDocumentFragment();e=t.next();){if(t.isPartiallySelectedSubtree()?(e=e.cloneNode(!1),n=t.getSubtreeIterator(),e.appendChild(d(n)),n.detach()):t.remove(),10==e.nodeType)throw new C("HIERARCHY_REQUEST_ERR");i.appendChild(e)}return i}function L(t){return"["+(void 0===t.getName?"Range":t.getName())+"("+w.inspectNode(t.startContainer)+":"+t.startOffset+", "+w.inspectNode(t.endContainer)+":"+t.endOffset+")]"}function p(t,e){this.range=t,this.clonePartiallySelectedTextNodes=e,t.collapsed||(this.sc=t.startContainer,this.so=t.startOffset,this.ec=t.endContainer,this.eo=t.endOffset,e=t.commonAncestorContainer,this.sc===this.ec&&k(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==e||k(this.sc)?D(this.sc,e,!0):this.sc.childNodes[this.so],this._last=this.ec!==e||k(this.ec)?D(this.ec,e,!0):this.ec.childNodes[this.eo-1]))}function t(r){return function(t,e){for(var n,i=e?t:t.parentNode;i;){if(n=i.nodeType,X(r,n))return i;i=i.parentNode}return null}}
1function f(t,e){if(rt(t,e))throw new C("INVALID_NODE_TYPE_ERR")}function m(t,e){if(!X(e,t.nodeType))throw new C("INVALID_NODE_TYPE_ERR")}function g(t,e){if(e<0||e>(k(t)?t:t.childNodes).length)throw new C("INDEX_SIZE_ERR")}function v(t,e){if(nt(t,!0)!==nt(e,!0))throw new C("WRONG_DOCUMENT_ERR")}function y(t){if(it(t,!0))throw new C("NO_MODIFICATION_ALLOWED_ERR")}function H(t,e){if(!t)throw new C(e)}function F(t,e){return e<=(k(t)?t:t.childNodes).length}function z(t){return!!t.startContainer&&!!t.endContainer&&!(Z&&(w.isBrokenNode(t.startContainer)||w.isBrokenNode(t.endContainer)))&&A(t.startContainer)==A(t.endContainer)&&F(t.startContainer,t.startOffset)&&F(t.endContainer,t.endOffset)}function b(t){if(!z(t))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+t.inspect()+")")}function V(t,e){b(t);var n=t.startContainer,i=t.startOffset,r=t.endContainer,o=t.endOffset,s=n===r;k(r)&&0<o&&o<r.length&&T(r,o,e),k(n)&&0<i&&i<n.length&&(n=T(n,i,e),s?(o-=i,r=n):r==n.parentNode&&o>=$(n)&&o++,i=0),t.setStartAndEnd(n,i,r,o)}function j(t){b(t);var e=t.commonAncestorContainer.parentNode.cloneNode(!1);
1return e.appendChild(t.cloneContents()),e.innerHTML}function W(t){t.START_TO_START=P,t.START_TO_END=st,t.END_TO_END=at,t.END_TO_START=lt,t.NODE_BEFORE=ut,t.NODE_AFTER=ct,t.NODE_BEFORE_AND_AFTER=ht,t.NODE_INSIDE=R}function B(t){W(t),W(t.prototype)}function q(r,o){return function(){b(this);var t=this.startContainer,e=this.startOffset,n=this.commonAncestorContainer,i=new p(this,!0),n=(t!==n&&(t=(n=c(D(t,n,!0))).node,e=n.offset),u(i,y),i.reset(),r(i));return i.detach(),o(this,t,e,t,e),n}}function U(t,u){function e(e,n){return function(t){m(t,Q),m(A(t),J);t=(e?l:c)(t);(n?i:r)(this,t.node,t.offset)}}function i(t,e,n){var i=t.endContainer,r=t.endOffset;e===t.startContainer&&n===t.startOffset||(A(e)==A(i)&&1!=E(e,n,i,r)||(i=e,r=n),u(t,e,n,i,r))}function r(t,e,n){var i=t.startContainer,r=t.startOffset;e===t.endContainer&&n===t.endOffset||(A(e)==A(i)&&-1!=E(e,n,i,r)||(i=e,r=n),u(t,i,r,e,n))}function n(){}n.prototype=o.rangePrototype,t.prototype=new n,x.extend(t.prototype,{setStart:function(t,e){f(t,!0),g(t,e),i(this,t,e)},setEnd:function(t,e){f(t,!0),g(t,e),r(this,t,e)},setStartAndEnd:function(){var t=arguments,e=t[0],n=t[1],i=e,r=n;switch(t.length){case 3:r=t[2];break;case 4:i=t[2],r=t[3]}u(this,e,n,i,r)},setBoundary:function(t,e,n){this["set"+(n?"Start":"End")](t,e)},setStartBefore:e(!0,!0),setStartAfter:e(!1,!0),setEndBefore:e(!0,!1),setEndAfter:e(!1,!1),collapse:function(t){b(this),t?u(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):u(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(t){f(t,!0),u(this,t,0,t,M(t))},selectNode:function(t){f(t,!1),m(t,Q);var e=l(t),t=c(t);u(this,e.node,e.offset,t.node,t.offset)},extractContents:q(d,u),deleteContents:q(h,u),canSurroundContents:function(){b(this),y(this.startContainer),y(this.endContainer);var t=new p(this,!0),e=t._first&&s(t._first,this)||t._last&&s(t._last,this);return t.detach(),!e},splitBoundaries:function(){V(this)},splitBoundariesPreservingPositions:function(t){V(this,t)},normalizeBoundaries:function(){b(this);function t(t){var e=t.nextSibling;e&&e.nodeType==t.nodeType&&(a=(s=t).length,t.appendData(e.data),O(e))}function e(t){var e,n=t.previousSibling;n&&n.nodeType==t.nodeType&&(e=(r=t).length,o=n.length,t.insertData(0,n.data),O(n),r==s?(a+=o,s=r):s==t.parentNode&&(n=$(t),a==n?(s=t,a=e):n<a&&a--))}var n,i,r=this.startContainer,o=this.startOffset,s=this.endContainer,a=this.endOffset,l=!0;k(s)?a==s.length?t(s):0==a&&(n=s.previousSibling)&&n.nodeType==s.nodeType&&(a=n.length,r==s&&(l=!1),n.appendData(s.data),O(s),s=n):(0<a&&(i=s.childNodes[a-1])&&k(i)&&t(i),l=!this.collapsed),l?k(r)?0==o?e(r):o==r.length&&(n=r.nextSibling)&&n.nodeType==r.nodeType&&(s==n&&(a+=(s=r).length),r.appendData(n.data),O(n)):o<r.childNodes.length&&(i=r.childNodes[o])&&k(i)&&e(i):(r=s,o=a),u(this,r,o,s,a)},collapseToPoint:function(t,e){f(t,!0),g(t,e),this.setStartAndEnd(t,e)}}),B(t)}function Y(t){t.collapsed=t.startContainer===t.endContainer&&t.startOffset===t.endOffset,t.commonAncestorContainer=t.collapsed?t.startContainer:w.getCommonAncestor(t.startContainer,t.endContainer)}function G(t,e,n,i,r){t.startContainer=e,t.startOffset=n,t.endContainer=i,t.endOffset=r,t.document=w.getDocument(e),Y(t)}function _(t){this.startContainer=t,this.startOffset=0,this.endContainer=t,this.endOffset=0,this.document=t,Y(this)}var w=o.dom,x=o.util,K=w.DomPosition,C=o.DOMException,k=w.isCharacterDataNode,$=w.getNodeIndex,S=w.isOrIsAncestorOf,r=w.getDocument,E=w.comparePoints,T=w.splitDataNode,D=w.getClosestAncestorIn,M=w.getNodeLength,X=w.arrayContains,A=w.getRootContainer,Z=o.features.crashyTextNodes,O=w.removeNode,Q=(p.prototype={_current:null,_next:null,_first:null,_last:null,isSingleCharacterDataNode:!1,reset:function(){this._current=null,this._next=this._first},hasNext:function(){return!!this._next},next:function(){var t=this._current=this._next;return t&&(this._next=t!==this._last?t.nextSibling:null,k(t))&&this.clonePartiallySelectedTextNodes&&(t===this.ec&&(t=t.cloneNode(!0)).deleteData(this.eo,t.length-this.eo),this._current===this.sc)&&(t=t.cloneNode(!0)).deleteData(0,this.so),t},remove:function(){var t,e,n=this._current;!k(n)||n!==this.sc&&n!==this.ec?n.parentNode&&O(n):(t=n===this.sc?this.so:0)!=(e=n===this.ec?this.eo:n.length)&&n.deleteData(t,e-t)},isPartiallySelectedSubtree:function(){return s(this._current,this.range)},getSubtreeIterator:function(){var t,e,n,i,r,o;return this.isSingleCharacterDataNode?(t=this.range.cloneRange()).collapse(!1):(t=new _(a(this.range)),e=this._current,i=0,o=M(r=n=e),S(e,this.sc)&&(n=this.sc,i=this.so),S(e,this.ec)&&(r=this.ec,o=this.eo),G(t,n,i,r,o)),new p(t,this.clonePartiallySelectedTextNodes)},detach:function(){this.range=this._current=this._next=this._first=this._last=this.sc=this.so=this.ec=this.eo=null}},[1,3,4,5,7,8,10]),J=[2,9,11],tt=[1,3,4,5,7,8,10,11],et=[1,3,4,5,7,8],nt=t([9,11]),it=t([5,6,10,12]),rt=t([6,10,12]),ot=document.createElement("style"),i=!1;try{ot.innerHTML="<b>x</b>",i=3==ot.firstChild.nodeType}catch(t){}o.features.htmlParsingConforms=i;var N=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],P=0,st=1,at=2,lt=3,ut=0,ct=1,ht=2,R=3;x.extend(o.rangePrototype,{compareBoundaryPoints:function(t,e){b(this),v(this.startContainer,e.startContainer);var n=t==lt||t==P?"start":"end",t=t==st||t==P?"start":"end",i=this[n+"Container"],n=this[n+"Offset"],r=e[t+"Container"],e=e[t+"Off
1set"];return E(i,n,r,e)},insertNode:function(t){if(b(this),m(t,tt),y(this.startContainer),S(t,this.startContainer))throw new C("HIERARCHY_REQUEST_ERR");t=n(t,this.startContainer,this.startOffset);this.setStartBefore(t)},cloneContents:function(){var t,e;return b(this),this.collapsed?a(this).createDocumentFragment():this.startContainer===this.endContainer&&k(this.startContainer)?((e=this.startContainer.cloneNode(!0)).data=e.data.slice(this.startOffset,this.endOffset),(t=a(this).createDocumentFragment()).appendChild(e),t):(e=function t(e){for(var n,i,r=a(e.range).createDocumentFragment();n=e.next();){if(i=e.isPartiallySelectedSubtree(),n=n.cloneNode(!i),i&&(i=e.getSubtreeIterator(),n.appendChild(t(i)),i.detach()),10==n.nodeType)throw new C("HIERARCHY_REQUEST_ERR");r.appendChild(n)}return r}(t=new p(this,!0)),t.detach(),e)},canSurroundContents:function(){b(this),y(this.startContainer),y(this.endContainer);var t=new p(this,!0),e=t._first&&s(t._first,this)||t._last&&s(t._last,this);return t.detach(),!e},surroundContents:function(t){if(m(t,et),!this.canSurroundContents())throw new C("INVALID_STATE_ERR");var e=this.extractContents();if(t.hasChildNodes())for(;t.lastChild;)t.removeChild(t.lastChild);n(t,this.startContainer,this.startOffset),t.appendChild(e),this.selectNode(t)},cloneRange:function(){b(this);for(var t,e=new _(a(this)),n=N.length;n--;)e[t=N[n]]=this[t];return e},toString:function(){b(this);var e,t=this.startContainer;return t===this.endContainer&&k(t)?3==t.nodeType||4==t.nodeType?t.data.slice(this.startOffset,this.endOffset):"":(e=[],u(t=new p(this,!0),function(t){3!=t.nodeType&&4!=t.nodeType||e.push(t.data)}),t.detach(),e.join(""))},compareNode:function(t){b(this);var e,n=t.parentNode,t=$(t);if(n)return e=this.comparePoint(n,t),n=this.comparePoint(n,t+1),e<0?0<n?ht:ut:0<n?ct:R;throw new C("NOT_FOUND_ERR")},comparePoint:function(t,e){return b(this),H(t,"HIERARCHY_REQUEST_ERR"),v(t,this.startContainer),E(t,e,this.startContainer,this.startOffset)<0?-1:0<E(t,e,this.endContainer,this.endOffset)?1:0},createContextualFragment:i?function(t){var e,n=this.startContainer,i=r(n);if(n)return e=null,1==n.nodeType?e=n:k(n)&&(e=w.parentElement(n)),(e=null===e||"HTML"==e.nodeName&&w.isHtmlNamespace(r(e).documentElement)&&w.isHtmlNamespace(e)?i.createElement("body"):e.cloneNode(!1)).innerHTML=t,w.fragmentFromNodeChildren(e);throw new C("INVALID_STATE_ERR")}:function(t){var e=a(this).createElement("body");return e.innerHTML=t,w.fragmentFromNodeChildren(e)},toHtml:function(){return j(this)},intersectsNode:function(t,e){var n,i;return b(this),A(t)==A(this.startContainer)&&(i=t.parentNode,t=$(t),!i||(n=E(i,t,this.endContainer,this.endOffset),i=E(i,t+1,this.startContainer,this.startOffset),e?n<=0&&0<=i:n<0&&0<i))},isPointInRange:function(t,e){return b(this),H(t,"HIERARCHY_REQUEST_ERR"),v(t,this.startContainer),0<=E(t,e,this.startContainer,this.startOffset)&&E(t,e,this.endContainer,this.endOffset)<=0},intersectsRange:function(t){return e(this,t,!1)},intersectsOrTouchesRange:function(t){return e(this,t,!0)},intersection:function(t){var e,n,i;return this.intersectsRange(t)?(e=E(this.startContainer,this.startOffset,t.startContainer,t.startOffset),n=E(this.endContainer,this.endOffset,t.endContainer,t.endOffset),i=this.cloneRange(),-1==e&&i.setStart(t.startContainer,t.startOffset),1==n&&i.setEnd(t.endContainer,t.endOffset),i):null},union:function(t){var e;if(this.intersectsOrTouchesRange(t))return e=this.cloneRange(),-1==E(t.startContainer,t.startOffset,this.startContainer,this.startOffset)&&e.setStart(t.startContainer,t.startOffset),1==E(t.endContainer,t.endOffset,this.endContainer,this.endOffset)&&e.setEnd(t.endContainer,t.endOffset),e;throw new C("Ranges do not intersect")},containsNode:function(t,e){return e?this.intersectsNode(t,!1):this.compareNode(t)==R},containsNodeContents:function(t){return 0<=this.comparePoint(t,0)&&this.comparePoint(t,M(t))<=0},containsRange:function(t){var e=this.intersection(t);return null!==e&&t.equals(e)},containsNodeText:function(t){var e=this.cloneRange(),n=(e.selectNode(t),e.getNodes([3]));return 0<n.length?(e.setStart(n[0],0),n=n.pop(),e.setEnd(n,n.length),this.containsRange(e)):this.containsNodeContents(t)},getNodes:function(t,e){return b(this),n=this,i=e,o=!(!(e=t)||!e.length),s=!!i,o&&(r=new RegExp("^("+e.join("|")+")$")),u(new p(n,!(a=[])),function(t){var e;
1o&&!r.test(t.nodeType)||s&&!i(t)||t==(e=n.startContainer)&&k(e)&&n.startOffset==e.length||t==(e=n.endContainer)&&k(e)&&0==n.endOffset||a.push(t)}),a;var n,i,r,o,s,a},getDocument:function(){return a(this)},collapseBefore:function(t){this.setEndBefore(t),this.collapse(!1)},collapseAfter:function(t){this.setStartAfter(t),this.collapse(!0)},getBookmark:function(t){var e=a(this),n=o.createRange(e),e=(t=t||w.getBody(e),n.selectNodeContents(t),this.intersection(n)),i=0,r=0;return e&&(n.setEnd(e.startContainer,e.startOffset),r=(i=n.toString().length)+e.toString().length),{start:i,end:r,containerNode:t}},moveToBookmark:function(t){var e=t.containerNode,n=0;this.setStart(e,0),this.collapse(!0);for(var i,r,o,s,a=[e],l=!1,u=!1;!u&&(i=a.pop());)if(3==i.nodeType)r=n+i.length,!l&&t.start>=n&&t.start<=r&&(this.setStart(i,t.start-n),l=!0),l&&t.end>=n&&t.end<=r&&(this.setEnd(i,t.end-n),u=!0),n=r;else for(o=(s=i.childNodes).length;o--;)a.push(s[o])},getName:function(){return"DomRange"},equals:function(t){return _.rangesEqual(this,t)},isValid:function(){return z(this)},inspect:function(){return L(this)},detach:function(){}}),U(_,G),x.extend(_,{rangeProperties:N,RangeIterator:p,copyComparisonConstants:B,createPrototypeRange:U,inspect:L,toHtml:j,getRangeDocument:a,rangesEqual:function(t,e){return t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.endContainer&&t.endOffset===e.endOffset}}),o.DomRange=_}),M.createCoreModule("WrappedRange",["DomRange"],function(n,e){var t,o,i,r,v=n.dom,s=n.util,y=v.DomPosition,a=n.DomRange,l=v.getBody,u=v.getContentDocument,b=v.isCharacterDataNode;if(n.features.implementsDomRange){function c(t){for(var e,n=d.length;n--;)t[e=d[n]]=t.nativeRange[e];t.collapsed=t.startContainer===t.endContainer&&t.startOffset===t.endOffset}var h,d=a.rangeProperties,p=(a.createPrototypeRange(t=function(t){if(!t)throw e.createError("WrappedRange: Range must be specified");this.nativeRange=t,c(this)},function(t,e,n,i,r){var o=t.startContainer!==e||t.startOffset!=n,s=t.endContainer!==i||t.endOffset!=r,a=!t.equals(t.nativeRange);(o||s||a)&&(t.setEnd(i,r),t.setStart(e,n))}),(h=t.prototype).selectNode=function(t){this.nativeRange.selectNode(t),c(this)},h.cloneContents=function(){return this.nativeRange.cloneContents()},h.surroundContents=function(t){this.nativeRange.surroundContents(t),c(this)},h.collapse=function(t){this.nativeRange.collapse(t),c(this)},h.cloneRange=function(){return new t(this.nativeRange.cloneRange())},h.refresh=function(){c(this)},h.toString=function(){return this.nativeRange.toString()},document.createTextNode("test")),f=(l(document).appendChild(p),document.createRange());f.setStart(p,0),f.setEnd(p,0);try{f.setStart(p,1),h.setStart=function(t,e){this.nativeRange.setStart(t,e),c(this)},h.setEnd=function(t,e){this.nativeRange.setEnd(t,e),c(this)},m=function(e){return function(t){this.nativeRange[e](t),c(this)}}}catch(t){h.setStart=function(e,n){try{this.nativeRange.setStart(e,n)}catch(t){this.nativeRange.setEnd(e,n),this.nativeRange.setStart(e,n)}c(this)},h.setEnd=function(e,n){try{this.nativeRange.setEnd(e,n)}catch(t){this.nativeRange.setStart(e,n),this.nativeRange.setEnd(e,n)}c(this)},m=function(n,i){return function(e){try{this.nativeRange[n](e)}catch(t){this.nativeRange[i](e),this.nativeRange[n](e)}c(this)}}}h.setStartBefore=m("setStartBefore","setEndBefore"),h.setStartAfter=m("setStartAfter","setEndAfter"),h.setEndBefore=m("setEndBefore","setStartBefore"),h.setEndAfter=m("setEndAfter","setStartAfter"),h.selectNodeContents=function(t){this.setStartAndEnd(t,0,v.getNodeLength(t))},f.selectNodeContents(p),f.setEnd(p,3);var m=document.createRange();m.selectNodeContents(p),m.setEnd(p,4),m.setStart(p,2),-1==f.compareBoundaryPoints(f.START_TO_END,m)&&1==f.compareBoundaryPoints(f.END_TO_START,m)?h.compareBoundaryPoints=function(t,e){return t==(e=e.nativeRange||e).START_TO_END?t=e.END_TO_START:t==e.END_TO_START&&(t=e.START_TO_END),this.nativeRange.compareBoundaryPoints(t,e)}:h.compareBoundaryPoints=function(t,e){return this.nativeRange.compareBoundaryPoints(t,e.nativeRange||e)};(m=document.createElement("div")).innerHTML="123";var g=m.firstChild,_=l(document);_.appendChild(m),f.setStart(g,1),f.setEnd(g,2),f.deleteContents(),"13"==g.data&&(h.deleteContents=function(){this.nativeRange.deleteContents(),c(this)},h.extractContents=function(){var t=this.nativeRange.extractContents();return c(this),t}),_.removeChild(m),_=null,s.isHostMethod(f,"createContextualFragment")&&(h.createContextualFragment=function(t){return this.nativeRange.createContextualFragment(t)}),l(document).removeChild(p),h.getName=function(){return"WrappedRange"},n.WrappedRange=t,n.createNativeRange=function(t){return(t=u(t,e,"createNativeRange")).createRange()}}n.features.implementsTextRange&&(o=function(t,e,n,i,r){var o=t.duplicate(),s=(o.collapse(n),o.parentElement());if(!(s=v.isOrIsAncestorOf(e,s)?s:e).canHaveHTML)return{boundaryPosition:e=new y(s.parentNode,v.getNodeIndex(s)),nodeInfo:{nodeIndex:e.offset,containerElement:e.node}};var a=v.getDocument(s).createElement("span");a.parentNode&&v.removeNode(a);for(var l,u,c=n?"StartToStart":"StartToEnd",h=r&&r.containerElement==s?r.nodeIndex:0,d=s.childNodes.length,p=d,f=p;f==d?s.appendChild(a):s.insertBefore(a,s.childNodes[f]),o.moveToElementText(a),0!=(l=o.compareEndPoints(c,t))&&h!=p;){if(-1==l){if(p==h+1)break;h=f}else p=p==h+1?h:f;f=Math.floor((h+p)/2),s.removeChild(a)}if(e=a.nextSibling,-1==l&&e&&b(e)){if(o.setEndPoint(n?"EndToStart":"EndToEnd",t),/[\r\n]/.test(e.data))for(var m=o.duplicate(),r=m.text.replace(/\r\n/g,"\r").length,g=m.moveStart("character",r);-1==(l=m.compareEndPoints("StartToEnd",m));)g++,m.moveStart("character",1);else g=o.text.length;u=new y(e,g)}else r=(i||!n)&&a.previousSibling,u=(e=(i||n)&&a.nextSibling)&&b(e)?new y(e,0):r&&b(r)?new y(r,r.data.length):new y(s,v.getNodeIndex(a));return v.removeNode(a),{boundaryPosition:u,nodeInfo:{nodeIndex:f,containerElement:s}}}
1,i=function(t,e){var n,i=t.offset,r=v.getDocument(t.node),o=l(r).createTextRange(),s=b(t.node),a=s?(n=t.node).parentNode:(n=i<(a=t.node.childNodes).length?a[i]:null,t.node),t=r.createElement("span");return t.innerHTML="&#feff;",n?a.insertBefore(t,n):a.appendChild(t),o.moveToElementText(t),o.collapse(!e),a.removeChild(t),s&&o[e?"moveStart":"moveEnd"]("character",i),o},((g=function(t){this.textRange=t,this.refresh()}).prototype=new a(document)).refresh=function(){n=this.textRange,e=n.parentElement(),(r=n.duplicate()).collapse(!0),i=r.parentElement(),(r=n.duplicate()).collapse(!1),n=r.parentElement();var t,e,n,i=(r=i==n?i:v.getCommonAncestor(i,n))==e?r:v.getCommonAncestor(e,r),r=0==(n=this.textRange).compareEndPoints("StartToEnd",n)?t=o(this.textRange,i,!0,!0).boundaryPosition:(t=(e=o(this.textRange,i,!0,!1)).boundaryPosition,o(this.textRange,i,!1,!1,e.nodeInfo).boundaryPosition);this.setStart(t.node,t.offset),this.setEnd(r.node,r.offset)},g.prototype.getName=function(){return"WrappedTextRange"},a.copyComparisonConstants(g),g.rangeToTextRange=r=function(t){var e,n;return t.collapsed?i(new y(t.startContainer,t.startOffset),!0):(e=i(new y(t.startContainer,t.startOffset),!0),n=i(new y(t.endContainer,t.endOffset),!1),(t=l(a.getRangeDocument(t)).createTextRange()).setEndPoint("StartToStart",e),t.setEndPoint("EndToEnd",n),t)},g.prototype.toTextRange=function(){return r(this)},n.WrappedTextRange=g,n.features.implementsDomRange&&!n.config.preferTextRange||(void 0===(m=Function("return this;")()).Range&&(m.Range=g),n.createNativeRange=function(t){return t=u(t,e,"createNativeRange"),l(t).createTextRange()},n.WrappedRange=g)),n.createRange=function(t){return t=u(t,e,"createRange"),new n.WrappedRange(n.createNativeRange(t))},n.createRangyRange=function(t){return t=u(t,e,"createRangyRange"),new a(t)},s.createAliasForDeprecatedMethod(n,"createIframeRange","createRange"),s.createAliasForDeprecatedMethod(n,"createIframeRangyRange","createRangyRange"),n.addShimListener(function(t){var e=t.document;void 0===e.createRange&&(e.createRange=function(){return n.createRange(e)}),e=null})}),M.createCoreModule("WrappedSelection",["DomRange","WrappedRange"],function(o,a){function i(t){return"string"==typeof t?/^backward(s)?$/i.test(t):!!t}function r(t,e){return t?f.isWindow(t)?t:t instanceof h?t.win:(t=f.getContentDocument(t,a,e),f.getWindow(t)):window}function I(t){return r(t,"getDocSelection").document.selection}function L(t){var e=!1;return e=t.anchorNode?1==f.comparePoints(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset):e}function s(t,e,n){var i=n?"end":"start",n=n?"start":"end";t.anchorNode=e[i+"Container"],t.anchorOffset=e[i+"Offset"],t.focu
1sNode=e[n+"Container"],t.focusOffset=e[n+"Offset"]}function l(t){t.anchorNode=t.focusNode=null,t.anchorOffset=t.focusOffset=0,t.rangeCount=0,t.isCollapsed=!0,t._ranges.length=0}function u(t){var e;return t instanceof m?((e=o.createNativeRange(t.getDocument())).setEnd(t.endContainer,t.endOffset),e.setStart(t.startContainer,t.startOffset)):t instanceof K?e=t.nativeRange:g.implementsDomRange&&t instanceof f.getWindow(t.startContainer).Range&&(e=t),e}function H(t){var e=t.getNodes();if(function(t){if(t.length&&1==t[0].nodeType){for(var e=1,n=t.length;e<n;++e)if(!f.isAncestorOf(t[0],t[e]))return;return 1}}(e))return e[0];throw a.createError("getSingleElementFromRange: range "+t.inspect()+" did not consist of a single element")}function F(t){return t&&void 0!==t.text}function z(t,e){e=new K(e);t._ranges=[e],s(t,e,!1),t.rangeCount=1,t.isCollapsed=e.collapsed}function c(t){if(t._ranges.length=0,"None"==t.docSelection.type)l(t);else{var e=t.docSelection.createRange();if(F(e))z(t,e);else{t.rangeCount=e.length;for(var n,i=y(e.item(0)),r=0;r<t.rangeCount;++r)(n=o.createRange(i)).selectNode(e.item(r)),t._ranges.push(n);t.isCollapsed=1==t.rangeCount&&t._ranges[0].collapsed,s(t,t._ranges[t.rangeCount-1],!1)}}}function V(t,e){for(var n=t.docSelection.createRange(),e=H(e),i=y(n.item(0)),r=b(i).createControlRange(),o=0,s=n.length;o<s;++o)r.add(n.item(o));try{r.add(e)}catch(t){throw a.createError("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)")}r.select(),c(t)}function h(t,e,n){this.nativeSelection=t,this.docSelection=e,this._ranges=[],this.win=n,this.refresh()}function j(t){t.win=t.anchorNode=t.focusNode=t._ranges=null,t.rangeCount=t.anchorOffset=t.focusOffset=0,t.detached=!0}function W(t,e){for(var n,i,r=P.length;r--;)if(i=(n=P[r]).selection,"deleteAll"==e)j(i);else if(n.win==t)return"delete"==e?(P.splice(r,1),!0):i;return"deleteAll"==e&&(P.length=0),null}function B(t,e){for(var n,i=y(e[0].startContainer),r=b(i).createControlRange(),o=0,s=e.length;o<s;++o){n=H(e[o]);try{r.add(n)}catch(t){throw a.createError("setRanges(): Element within one of the specified Ranges could not be added to control selection (does it have layout?)")}}r.select(),c(t)}function q(t,e){if(t.win.document!=y(e))throw new n("WRONG_DOCUMENT_ERR")}function U(i){return function(t,e){var n;this.rangeCount?(n=this.getRangeAt(0))["set"+(i?"Start":"End")](t,e):(n=o.createRange(this.win.document)).setStartAndEnd(t,e),this.setSingleRange(n,this.isBackward())}}function Y(t){var e=[],n=new X(t.anchorNode,t.anchorOffset),i=new X(t.focusNode,t.focusOffset),r="function"==typeof t.getName?t.getName():"Selection";if(void 0!==t.rangeCount)for(var o=0,s=t.rangeCount;o<s;++o)e[o]=m.inspect(t.getRangeAt(o));return"["+r+"(Ranges: "+e.join(", ")+")(anchor: "+n.inspect()+", focus: "+i.inspect()+"]"}o.config.checkSelectionRanges=!0;var d,p,G="number",f=o.dom,t=o.util,e=t.isHostMethod,m=o.DomRange,K=o.WrappedRange,n=o.DOMException,X=f.DomPosition,g=o.features,v="Control",y=f.getDocument,b=f.getBody,Z=m.rangesEqual,_=e(window,"getSelection"),w=t.isHostObject(document,"selection"),x=(g.implementsWinGetSelection=_,(g.implementsDocSelection=w)&&(!_||o.config.preferTextRange));if(x)d=I,o.isSelectionValid=function(t){var t=r(t,"isSelectionValid").document,e=t.selection;return"None"!=e.type||y(e.createRange().parentElement())==t};else{if(!_)return a.fail("Neither document.selection or window.getSelection() detected."),!1;d=function(t){return r(t,"getWinSelection").getSelection()},o.isSelectionValid=function(){return!0}}_=(o.getNativeSelection=d)();if(!_)return a.fail("Native selection was null (possibly issue 138?)"),!1;var Q=o.createNativeRange(document),J=b(document),C=t.areHostProperties(_,["anchorNode","focusNode","anchorOffset","focusOffset"]),k=(g.selectionHasAnchorAndFocus=C,e(_,"extend")),tt=(g.selectionHasExtend=k,typeof _.rangeCount==G),et=(g.selectionHasRangeCount=tt,!1),nt=!0,it=k?function(t,e){var n=m.getRangeDocument(e),n=o.createRange(n);n.collapseToPoint(e.endContainer,e.endOffset),t.addRange(u(n)),t.extend(e.startContainer,e.startOffset)}:null;if(t.areHostMethods(_,["addRange","getRangeAt","removeAllRanges"])&&typeof _.rangeCount==G&&g.implementsDomRange){var $=window.getSelection();if($){for(var rt=$.rangeCount,S=1<rt,E=[],ot=L($),T=0;T<rt;++T)E[T]=$.getRangeAt(T);var st=f.createTestElement(document,"",!1),D=st.appendChild(document.createTextNode("   ")),M=document.createRange();for(M.setStart(D,1),M.collapse(!0),$.removeAllRanges(),$.addRange(M),nt=1==$.rangeCount,$.removeAllRanges(),S||(S=window.navigator.appVersion.match(/Chrome\/(.*?) /),et=!(S&&36<=parseInt(S[1]))&&(S=M.cloneRange(),M.setStart(D,0),S.setEnd(D,3),S.setStart(D,2),$.addRange(M),$.addRange(S),2==$.rangeCount)),f.removeNode(st),$.removeAllRanges(),T=0;T<rt;
1++T)0==T&&ot?it?it($,E[T]):(o.warn("Rangy initialization: original selection was backwards but selection has been restored forwards because the browser does not support Selection.extend"),$.addRange(E[T])):$.addRange(E[T])}}g.selectionSupportsMultipleRanges=et,g.collapsedNonEditableSelectionsSupported=nt;function at(t){var e,n,i;return t&&t instanceof h?(t.refresh(),t):(e=W(t=r(t,"getNativeSelection")),n=d(t),i=w?I(t):null,e?(e.nativeSelection=n,e.docSelection=i,e.refresh()):(e=new h(n,i,t),P.push({win:t,selection:e})),e)}var A,O,N=!1,P=(J&&e(J,"createControlRange")&&(D=J.createControlRange(),t.areHostProperties(D,["item","add"]))&&(N=!0),g.implementsControlRange=N,p=C?function(t){return t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset}:function(t){return!!t.rangeCount&&t.getRangeAt(t.rangeCount-1).collapsed},e(_,"getRangeAt")?A=function(t,e){try{return t.getRangeAt(e)}catch(t){return null}}:C&&(A=function(t){var e=y(t.anchorNode),e=o.createRange(e);return e.setStartAndEnd(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),e.collapsed!==this.isCollapsed&&e.setStartAndEnd(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset),e}),h.prototype=o.selectionPrototype,[]),M=(o.getSelection=at,t.createAliasForDeprecatedMethod(o,"getIframeSelection","getSelection"),h.prototype);if(!x&&C&&t.areHostMethods(_,["removeAllRanges","addRange"])){M.removeAllRanges=function(){this.nativeSelection.removeAllRanges(),l(this)};function lt(t,e){it(t.nativeSelection,e),t.refresh()}M.addRange=tt?function(t,e){if(N&&w&&this.docSelection.type==v)V(this,t);else if(i(e)&&k)lt(this,t);else{var e=et?this.rangeCount:(this.removeAllRanges(),0),n=u(t).cloneRange();try{this.nativeSelection.addRange(n)}catch(t){}this.rangeCount=this.nativeSelection.rangeCount,this.rangeCount==e+1?(o.config.checkSelectionRanges&&(n=A(this.nativeSelection,this.rangeCount-1))&&!Z(n,t)&&(t=new K(n)),this._ranges[this.rangeCount-1]=t,s(this,t,R(this.nativeSelection)),this.isCollapsed=p(this)):this.refresh()}}:function(t,e){i(e)&&k?lt(this,t):(this.nativeSelection.addRange(u(t)),this.refresh())},M.setRanges=function(t){if(N&&w&&1<t.length)B(this,t);else{this.removeAllRanges();for(var e=0,n=t.length;e<n;++e)this.addRange(t[e])}}}else{if(!(e(_,"empty")&&e(Q,"select")&&N&&x))return a.fail("No means of selecting a Range or TextRange was found"),!1;M.removeAllRanges=function(){try{var t,e;this.docSelection.empty(),"None"!=this.docSelection.type&&(this.anchorNode?t=y(this.anchorNode):this.docSelection.type==v&&(e=this.docSelection.createRange()).length&&(t=y(e.item(0))),t)&&(b(t).createTextRange().select(),this.docSelection.empty())}catch(t){}l(this)},M.addRange=function(t){this.docSelection.type==v?V(this,t):(o.WrappedTextRange.rangeToTextRange(t).select(),this._ranges[0]=t,this.rangeCount=1,this.isCollapsed=this._ranges[0].collapsed,s(this,t,!1))},M.setRanges=function(t){this.removeAllRanges();var e=t.length;1<e?B(this,t):e&&this.addRange(t[0])}}if(M.getRangeAt=function(t){if(t<0||t>=this.rangeCount)throw new n("INDEX_SIZE_ERR");return this._ranges[t].cloneRange()},x)O=function(t){var e;o.isSelectionValid(t.win)?e=t.docSelection.createRange():(e=b(t.win.document).createTextRange()).collapse(!0),t.docSelection.type==v?c(t):F(e)?z(t,e):l(t)};else if(e(_,"getRangeAt")&&typeof _.rangeCount==G)O=function(t){if(N&&w&&t.docSelection.type==v)c(t);else if(t._ranges.length=t.rangeCount=t.nativeSelection.rangeCount,t.rangeCount){for(var e=0,n=t.rangeCount;e<n;++e)t._ranges[e]=new o.WrappedRange(t.nativeSelection.getRangeAt(e));s(t,t._ranges[t.rangeCount-1],R(t.nativeSelection)),t.isCollapsed=p(t)}else l(t)};else{if(!C||"boolean"!=typeof _.isCollapsed||"boolean"!=typeof Q.collapsed||!g.implementsDomRange)return a.fail("No means of obtaining a Range or TextRange from the user's selection was found"),!1;O=function(t){var e,n=t.nativeSelection;n.anchorNode?(n=A(n,0),t._ranges=[n],t.rangeCount=1,e=(n=t).nativeSelection,n.anchorNode=e.anchorNode,n.anchorOffset=e.anchorOffset,n.focusNode=e.focusNode,n.focusOffset=e.focusOffset,t.isCollapsed=p(t)):l(t)}}M.refresh=function(t){var e=t?this._ranges.slice(0):null,n=this.anchorNode,i=this.anchorOffset;if(O(this),t){var r=e.length;if(r!=this._ranges.length)return!0;
1if(this.anchorNode!=n||this.anchorOffset!=i)return!0;for(;r--;)if(!Z(e[r],this._ranges[r]))return!0;return!1}};function ut(t,e){var n=t.getAllRanges();t.removeAllRanges();for(var i=0,r=n.length;i<r;++i)Z(e,n[i])||t.addRange(n[i]);t.rangeCount||l(t)}var R;M.removeRange=N&&w?function(t){if(this.docSelection.type==v){for(var e=this.docSelection.createRange(),n=H(t),i=y(e.item(0)),r=b(i).createControlRange(),o=!1,s=0,a=e.length;s<a;++s)e.item(s)!==n||o?r.add(e.item(s)):o=!0;r.select(),c(this)}else ut(this,t)}:function(t){ut(this,t)},!x&&C&&g.implementsDomRange?(R=L,M.isBackward=function(){return R(this)}):R=M.isBackward=function(){return!1},M.isBackwards=M.isBackward,M.toString=function(){for(var t=[],e=0,n=this.rangeCount;e<n;++e)t[e]=""+this._ranges[e];return t.join("")},M.collapse=function(t,e){q(this,t);var n=o.createRange(t);n.collapseToPoint(t,e),this.setSingleRange(n),this.isCollapsed=!0},M.collapseToStart=function(){if(!this.rangeCount)throw new n("INVALID_STATE_ERR");var t=this._ranges[0];this.collapse(t.startContainer,t.startOffset)},M.collapseToEnd=function(){if(!this.rangeCount)throw new n("INVALID_STATE_ERR");var t=this._ranges[this.rangeCount-1];this.collapse(t.endContainer,t.endOffset)},M.selectAllChildren=function(t){q(this,t);var e=o.createRange(t);e.selectNodeContents(t),this.setSingleRange(e)},M.deleteFromDocument=function(){if(N&&w&&this.docSelection.type==v){for(var t,e=this.docSelection.createRange();e.length;)t=e.item(0),e.remove(t),f.removeNode(t);this.refresh()}else if(this.rangeCount){var n=this.getAllRanges();if(n.length){this.removeAllRanges();for(var i=0,r=n.length;i<r;++i)n[i].deleteContents();this.addRange(n[r-1])}}},M.eachRange=function(t,e){for(var n=0,i=this._ranges.length;n<i;++n)if(t(this.getRangeAt(n)))return e},M.getAllRanges=function(){var e=[];return this.eachRange(function(t){e.push(t)}),e},M.setSingleRange=function(t,e){this.removeAllRanges(),this.addRange(t,e)},M.callMethodOnEachRange=function(e,n){var i=[];return this.eachRange(function(t){i.push(t[e].apply(t,n||[]))}),i},M.setStart=U(!0),M.setEnd=U(!1),o.rangePrototype.select=function(t){at(this.getDocument()).setSingleRange(this,t)},M.changeEachRange=function(e){var n=[],t=this.isBackward();this.eachRange(function(t){e(t),n.push(t)}),this.removeAllRanges(),t&&1==n.length?this.addRange(n[0],"backward"):this.setRanges(n)},M.containsNode=function(e,n){return this.eachRange(function(t){return t.containsNode(e,n)},!0)||!1},M.getBookmark=function(t){return{backward:this.isBackward(),rangeBookmarks:this.callMethodOnEachRange("getBookmark",[t])}},M.moveToBookmark=function(t){for(var e,n,i=[],r=0;e=t.rangeBookmarks[r++];)(n=o.createRange(this.win)).moveToBookmark(e),i.push(n);t.backward?this.setSingleRange(i[0],"backward"):this.setRanges(i)},M.saveRanges=function(){return{backward:this.isBackward(),ranges:this.callMethodOnEachRange("cloneRange")}},M.restoreRanges=function(t){this.removeAllRanges();for(var e,n=0;e=t.ranges[n];++n)this.addRange(e,t.backward&&0==n)},M.toHtml=function(){var e=[];return this.eachRange(function(t){e.push(m.toHtml(t))}),e.join("")},g.implementsTextRange&&(M.getNativeTextRange=function(){if(t=this.docSelection){var t=t.createRange();if(F(t))return t;throw a.createError("getNativeTextRange: selection is a control selection")}if(0<this.rangeCount)return o.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw a.createError("getNativeTextRange: selection contains no range")}),M.getName=function(){return"WrappedSelection"},M.inspect=function(){return Y(this)},M.detach=function(){W(this.win,"delete"),j(this)},h.detachAll=function(){W(null,"deleteAll")},h.inspect=Y,h.isDirectionBackward=i,o.Selection=h,o.selectionPrototype=M,o.addShimListener(function(t){void 0===t.getSelection&&(t.getSelection=function(){return at(t)}),t=null})}),!1);return T&&("complete"==document.readyState?O():(l(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",O,!1),y(window,"load",O))),M},n=this,"function"==typeof define&&define.amd?define(e):"undefined"!=typeof module&&"object"==typeof t?module.exports=e():n.rangy=e(),n=function(t){return t.createModule("SaveRestore",["WrappedRange"],function(l,s){function u(t,e){return(e||document).getElementById(t)}function o(t,e){var n="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),i=r.getDocument(t.startContainer),t=t.cloneRange();return t.collapse(e),(e=i.createElement("span")).id=n,e.style.lineHeight="0",e.style.display="none",e.className="rangySelectionBoundary",e.appendChild(i.createTextNode(v)),t.insertN
1ode(e),e}function a(t,e,n,i){n=u(n,t);n?(e[i?"setStartBefore":"setEndBefore"](n),m(n)):s.warn("Marker element has been removed. Cannot restore selection.")}function c(t,e){return e.compareBoundaryPoints(t.START_TO_START,t)}function h(t,e){var n,i=l.DomRange.getRangeDocument(t),r=t.toString(),e=g(e);return t.collapsed?{document:i,markerId:(n=o(t,!1)).id,collapsed:!0}:(n=o(t,!1),{document:i,startMarkerId:o(t,!0).id,endMarkerId:n.id,collapsed:!1,backward:e,toString:function(){return"original text: '"+r+"', new text: '"+t.toString()+"'"}})}function i(t,e){var n,i,r=t.document,o=(void 0===e&&(e=!0),l.createRange(r));return t.collapsed?(n=u(t.markerId,r))?(n.style.display="inline",(i=n.previousSibling)&&3==i.nodeType?(m(n),o.collapseToPoint(i,i.length)):(o.collapseBefore(n),m(n))):s.warn("Marker element has been removed. Cannot restore selection."):(a(r,o,t.startMarkerId,!0),a(r,o,t.endMarkerId,!1)),e&&o.normalizeBoundaries(),o}function d(t,e){var n,i,r=[],o=g(e);(t=t.slice(0)).sort(c);for(var s=0,a=t.length;s<a;++s)r[s]=h(t[s],o);for(s=a-1;0<=s;--s)n=t[s],i=l.DomRange.getRangeDocument(n),n.collapsed?n.collapseAfter(u(r[s].markerId,i)):(n.setEndBefore(u(r[s].endMarkerId,i)),n.setStartAfter(u(r[s].startMarkerId,i)));return r}function p(t){for(var e=[],n=t.length-1;0<=n;n--)e[n]=i(t[n],!0);return e}function f(t,e){e=u(e,t);e&&m(e)}var r=l.dom,m=r.removeNode,g=l.Selection.isDirectionBackward,v="\ufeff";l.util.extend(l,{saveRange:h,restoreRange:i,saveRanges:d,restoreRanges:p,saveSelection:function(t){var e,n,i,r;return l.isSelectionValid(t)?(r=d(n=(e=l.getSelection(t)).getAllRanges(),i=1==n.length&&e.isBackward()),i?e.setSingleRange(n[0],i):e.setRanges(n),{win:t,rangeInfos:r,restored:!1}):(s.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."),null)},restoreSelection:function(t,e){var n,i,r;t.restored||(n=t.rangeInfos,i=l.getSelection(t.win),r=p(n),1==n.length&&e&&l.features.selectionHasExtend&&n[0].backward?(i.removeAllRanges(),i.addRange(r[0],!0)):i.setRanges(r),t.restored=!0)},removeMarkerElement:f,removeMarkers:function(t){for(var e,n=t.rangeInfos,i=0,r=n.length;i<r;++i)(e=n[i]).collapsed?f(t.doc,e.markerId):(f(t.doc,e.startMarkerId),f(t.doc,e.endMarkerId))}})}),t},e=this,"function"==typeof define&&define.amd?define(["./rangy-core"],n):"undefined"!=typeof module&&"object"==typeof t?module.exports=n(require("rangy")):n(e.rangy)}({}),!function(p){"use strict";var f=p.$$minErr("$sanitize");var m=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,g=/^<\/\s*([\w:-]+)[^>]*>/,v=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,y=/^</,b=/^<\//,_=/<!--(.*?)-->/g,w=/<!DOCTYPE([^>]*?)>/i,x=/<!\[CDATA\[(.*?)]]>/g,e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n=/([^\#-~| |!])/g,C=o("area,br,col,hr,img,wbr,input"),t=o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),i=o("rp,rt"),k=p.extend({},i,t),$=p.extend({},t,o("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=p.extend({},i,o("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")),t=o("animate,animateColor,animateMotion,animateTransform,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,set,stop,svg,switch,text,title,tspan,use"),E=o("script,style"),r=p.extend({},C,$,S,k,t),d=o("background,cite,href,longdesc,src,usemap,xlink:href"),i=o("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,id,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width"),t=o("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,attributeName,attributeType,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,str
1ikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan"),T=p.extend({},d,t,i);function o(t){for(var e={},n=t.split(","),i=0;i<n.length;i++)e[n[i]]=!0;return e}var s=document.createElement("pre"),a=/^(\s*)([\s\S]*?)(\s*)$/;function D(t){var e,n;return t?(e=(t=a.exec(t))[1],n=t[3],(t=t[2])&&(s.innerHTML=t.replace(/</g,"&lt;"),t="textContent"in s?s.textContent:s.innerText),e+t+n):""}function M(t){return t.replace(/&/g,"&amp;").replace(e,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(n,function(t){var e=t.charCodeAt(0);return e<=159||173==e||1536<=e&&e<=1540||1807==e||6068==e||6069==e||8204<=e&&e<=8207||8232<=e&&e<=8239||8288<=e&&e<=8303||65279==e||65520<=e&&e<=65535?"&#"+e+";":t}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var A=String.prototype.trim?function(t){return p.isString(t)?t.trim():t}:function(t){return p.isString(t)?t.replace(/^\s\s*/,"").replace(/\s\s*$/,""):t};function O(t,c){var e=!1,h=p.bind(t,t.push);return{start:function(l,u,t){l=p.lowercase(l),(e=!e&&E[l]?l:e)||!0!==r[l]||(h("<"),h(l),p.forEach(u,function(t,e){var n,i,r,o,s=p.lowercase(e),a="img"===l&&"src"===s||"background"===s;("style"===s&&""!==(o="",r=(r=t).split(";"),p.forEach(r,function(t){var e,n=t.split(":");2==n.length&&(e=A(p.lowercase(n[0])),t=A(p.lowercase(n[1])),("color"===e||"background-color"===e)&&(t.match(/^rgb\([0-9%,\. ]*\)$/i)||t.match(/^rgba\([0-9%,\. ]*\)$/i)||t.match(/^hsl\([0-9%,\. ]*\)$/i)||t.match(/^hsla\([0-9%,\. ]*\)$/i)||t.match(/^#[0-9a-f]{3,6}$/i)||t.match(/^[a-z]*$/i))||"text-align"===e&&("left"===t||"right"===t||"center"===t||"justify"===t)||"float"===e&&("left"===t||"right"===t||"none"===t)||("width"===e||"height"===e)&&t.match(/[0-9\.]*(px|em|rem|%)/)||"direction"===e&&t.match(/^ltr|rtl|initial|inherit$/))&&(o+=e+": "+t+";")}),t=o)||(r=u,n=s,i=t,"img"===l&&r["ta-insert-video"]&&("ta-insert-video"===n||"allowfullscreen"===n||"frameborder"===n||"contenteditable"===n&&"false"===i))||!0===T[s]&&(!0!==d[s]||c(t,a)))&&(h(" "),h(e),h('="'),h(M(t)),h('"'))}),h(t?"/>":">"))},end:function(t){t=p.lowercase(t),e||!0!==r[t]||(h("</"),h(t),h(">")),t==e&&(e=!1)},chars:function(t){e||h(M(t))}}}p.module("ngSanitize",[]).provider("$sanitize",function(){this.$get=["$$sanitizeUri",function(d){return function(t){void 0!==arguments[1]&&(arguments[1].version="taSanitize");var e,n,i,r,o=[],s=t,a=O(o,function(t,e){return!/^unsafe/.test(d(t,e))}),l=[],u=s="string"!=typeof s?null==s?"":""+s:s;for(l.last=function(){return l[l.length-1]};s;){if(n=!(r=""),l.last()&&E[l.last()]?(s=s.replace(new RegExp("([^]*)<\\s*\\/\\s*"+l.last()+"[^>]*>","i"),function(t,e){return e=e.replace(_,"$1").replace(x,"$1"),a.chars&&a.chars(D(e)),""}),h(0,l.last())):(0===s.indexOf("\x3c!--")?0<=(e=s.indexOf("--",4))&&s.lastIndexOf("--\x3e",e)===e&&(a.comment&&a.comment(s.substring(4,e)),s=s.substring(e+3),n=!1):w.test(s)?(i=s.match(w))&&(s=s.replace(i[0],""),n=!1):b.test(s)?(i=s.match(g))&&(s=s.substring(i[0].length),i[0].replace(g,h),n=!1):y.test(s)&&((i=s.match(m))?(i[4]&&(s=s.substring(i[0].length),i[0].replace(m,c)),n=!1):(r+="<",s=s.substring(1))),n&&(e=s.indexOf("<"),r+=e<0?s:s.substring(0,e),s=e<0?"":s.substring(e),a.chars)&&a.chars(D(r))),s==u)throw f("badparse","The sanitizer was unable to parse the following block of html: {0}",s);u=s}function c(t,e,n,i){if(e=p.lowercase(e),$[e])for(;l.last()&&S[l.last()];)h(0,l.last());k[e]&&l.last()==e&&h(0,e),(i=C[e]||!!i)||l.push(e);var o={};n.replace(v,function(t,e,n,i,r){o[e]=D(n||i||r||"")}),a.start&&a.start(e,o,i)}function h(t,e){var n,i=0;if(e=p.lowercase(e))for(i=l.length-1;0<=i&&l[i]!=e;i--);if(0<=i){for(n=l.length-1;i<=n;n--)a.end&&a.end(l[n]);l.length=i}}return h(),o.join("")}}]}),p.module("ngSanitize").filter("linky",["$sanitize",function(c){var h=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"”’]/,d=/^mailto:/;return function(t,e){if(!t)return t;for(var n,i,r,o=t,s=[];n=o.match(h);){i=n[0],n[2]||n[4]||(i=(n[3]?"http://":"mailto:")+i),r=n.index,u(o.substr(0,r)),l=a=void 0;var a=i,l=n[0].replace(d,"");s.push("<a "),p.isDefined(e)&&s.push('target="',e,'" '),s.push('href="',a.replace(/"/g,"&quot;"),'">'),u(l),s.push("</a>"),o=o.substring(r+n[0].length)}return u(o),c(s.join(""));function u(t){var e;t&&s.push((t=t,O(e=[],p.noop).chars(t),e.join("")))}}}])}((window,window.angular)),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="textAngular"),!function(){"use strict";var o,Q,J,n,e,i,tt=function(){for(var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",n[0];);return 4<t?t:void 0}
1(),et=/AppleWebKit\/([\d.]+)/i.test(navigator.userAgent),nt=!1,it=(et&&(document.addEventListener("mousedown",function(t){t=(t||window.event).target;if(nt&&null!==t){for(var e=!1,n=t;null!==n&&"html"!==n.tagName.toLowerCase()&&!e;)e="true"===n.contentEditable,n=n.parentNode;e||(document.getElementById("textAngular-editableFix-010203040506070809").setSelectionRange(0,0),t.focus(),t.select&&t.select())}nt=!1},!1),angular.element(document).ready(function(){angular.element(document.body).append(angular.element('<input id="textAngular-editableFix-010203040506070809" class="ta-hidden-input" aria-hidden="true" unselectable="on" tabIndex="-1">'))})),/^(address|article|aside|audio|blockquote|canvas|dd|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|noscript|ol|output|p|pre|section|table|tfoot|ul|video)$/i),E=/^(ul|li|ol)$/i,rt=/^(address|article|aside|audio|blockquote|canvas|dd|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|noscript|ol|output|p|pre|section|table|tfoot|ul|video|li)$/i;if(String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),8<tt||void 0===tt){for(var t=document.styleSheets,r=0;r<t.length;r++)if((0===t[r].media.length||t[r].media.mediaText.match(/(all|screen)/gi))&&t[r].href&&t[r].href.match(/textangular\.(min\.|)css/gi)){o=t[r];break}o||(s=document.createElement("style"),et&&s.appendChild(document.createTextNode("")),document.getElementsByTagName("head")[0].appendChild(s),o=s.sheet),Q=function(t,e){return n(o,t,e)},n=function(t,e,n){var i,r;return t.cssRules?i=Math.max(t.cssRules.length-1,0):t.rules&&(i=Math.max(t.rules.length-1,0)),t.insertRule?t.insertRule(e+"{"+n+"}",i):t.addRule(e,n,i),o.rules?r=o.rules[i]:o.cssRules&&(r=o.cssRules[i]),r},i=function(t,e){for(var n,i=0;i<e.length;i++)if(e[i].cssText===t.cssText){n=i;break}return n},J=function(t){e(o,t)},e=function(t,e){var n=t.cssRules||t.rules;n&&0!==n.length&&(e=i(e,n),t.removeRule?t.removeRule(e):t.deleteRule(e))}}angular.module("textAngular.factories",[]).factory("taBrowserTag",[function(){return function(t){return t?""===t?void 0===tt?"div":tt<=8?"P":"p":tt<=8?t.toUpperCase():t:tt<=8?"P":"p"}}]).factory("taApplyCustomRenderers",["taCustomRenderers","taDOM",function(e,i){return function(t){var n=angular.element("<div></div>");return n[0].innerHTML=t,angular.forEach(e,function(e){var t=[];e.selector&&""!==e.selector?t=n.find(e.selector):e.customAttribute&&""!==e.customAttribute&&(t=i.getByAttribute(n,e.customAttribute)),angular.forEach(t,function(t){t=angular.element(t),e.selector&&""!==e.selector&&e.customAttribute&&""!==e.customAttribute&&void 0===t.attr(e.customAttribute)||e.renderLogic(t)})}),n[0].innerHTML}}]).factory("taFixChrome",function(){return function(t){if(!t||!angular.isString(t)||t.length<=0)return t;for(var e,n,i,r=/<([^>\/]+?)style=("([^"]+)"|'([^']+)')([^>]*)>/gi,o="",s=0;e=r.exec(t);)(n=e[3]||e[4])&&n.match(/line-height: 1.[0-9]{3,12};|color: inherit; line-height: 1.1;/i)&&(n=n.replace(/( |)font-family: inherit;|( |)line-height: 1.[0-9]{3,12};|( |)color: inherit;/gi,""),i="<"+e[1].trim(),0<n.trim().length&&(i+=" style="+e[2].substring(0,1)+n+e[2].substring(0,1)),i+=e[5].trim()+">",o+=t.substring(s,e.index)+i,s=e.index+e[0].length);return o+=t.substring(s),0<s?o.replace(/<span\s?>(.*?)<\/span>(<br(\/|)>|)/gi,"$1"):t}}).factory("taSanitize",["$sanitize",function(c){for(var p=[{property:"font-weight",values:["bold"],tag:"b"},{property:"font-style",values:["italic"],tag:"i"}],t=[],e=0;e<p.length;e++){for(var n="("+p[e].property+":\\s*(",i=0;i<p[e].values.length;i++)0<i&&(n+="|"),n+=p[e].values[i];t.push(n+=");)")}var f="("+t.join("|")+")";function m(t,e){for(var n,i=0,r=0,o=/<[^>]*>/gi;n=o.exec(t);)if(r=n.index,"/"===n[0].substr(1,1)){if(0===i)break;i--}else i++;return e+t.substring(0,r)+angular.element(e)[0].outerHTML.substring(e.length)+t.substring(r)}return function(t,e,n){if(!n)try{t=function t(e){if(!e||!angular.isString(e)||e.length<=0)return e;for(var n,i,r,o=/<([^>\/]+?)style=("([^"]+)"|'([^']+)')([^>]*)>/gi,s="",a="",l=0;i=o.exec(e);){var u=i[3]||i[4],c=new RegExp(f,"i");if(angular.isString(u)&&c.test(u)){for(var h="",d=new RegExp(f,"ig");r=d.exec(u);)for(n=0;n<p.length;n++)r[2*n+2]&&(h+="<"+p[n].tag+">");c=t(e.substring(l,i.index)),0<s.length?a+=m(c,s):a+=c,u=u.replace(new RegExp(f,"ig"),""),a+="<"+i[1].trim(),0<u.length&&(a+=' style="'+u+'"'),a+=i[5]+">",l=i.index+i[0].length,s=h}}return 0<s.length?a+=m(e.substring(l),s):a+=e.substring(l),a}(t)}catch(t){}t=function(t){if(!t||!angular.isString(t)||t.length<=0)return t;for(var e,n=/<([^>\/]+?)align=("([^"]+)"|'([^']+)')([^>]*)>/gi,i="",r=0;e=n.exec(t);){i+=t.substring(r,e.index);var r=e.index+e[0].length,o="<"+e[1]+e[5];/style=("([^"]+)"|'([^']+)')/gi.test(o)?o=o.replace(/style=("([^"]+)"|'([^']+)')/i,'style="$2$3 text-align:'+(e[3]||e[4])+';"'):o+=' style="text-align:'+(e[3]||e[4])+';"',i+=o+=">"}return i+t.substring(r)}(t);try{u=c(t),n&&(u=t)}catch(t){u=e||""}for(var i,r=u.match(/(<pre[^>]*>.*?<\/pre[^>]*>)/gi),o=u.replace(/(&#(9|10);)*/gi,""),s=/<pre[^>]*>.*?<\/pre[^>]*>/gi,a=0,l=0,u="";null!==(i=s.exec(o))&&a<r.length;)u+=o.substring(l,i.index)+r[a],l=i.index+i[0].length,a++;return u+o.substring(l)}}]).factory("taToolExecuteAction",["$q","$log",function(o,s){return function(t){void 0!==t&&(this.$editor=function(){return t});var e,n=o.defer(),i=n.promise,r=this.$editor();try{e=this.action(n,r.startAction()),i.finally(function(){r.endAction.call(r)})}catch(t){s.error(t)}!e&&void 0!==e||n.resolve()}}]),angular.module("textAngular.DOM",["textAngular.factories"]).factory("taExecCommand",["taSelection","taBrowserTag","$document",function(w,x,C){function k(t,e){for(var n,i=t.find("li"),r=i.length-1;0<=r;r--)n=angular.element("<"+e+">"+i[r].innerHTML+"</"+e+">"),t.after(n);t.remove(),w.setSelectionToElementEnd(n[0])}function o(t){/(<br(|\/)>)$/i.test(t.innerHTML.trim())?w.setSelectionBeforeElement(angular.element(t).find("br")[0]):w.setSelectionToElementEnd(t)}function $(t,e){e=angular.element("<"+e+">"+t[0].innerHTML+"</"+e+">"),t.after(e),t.remove(),o(e.find("li")[0])}function S(t,e,n){for(var i="",r=0;r<t.length;r++)i+="<"+x("li")+">
1"+t[r].innerHTML+"</"+x("li")+">";n=angular.element("<"+n+">"+i+"</"+n+">"),e.after(n),e.remove(),o(n.find("li")[0])}return function(b,_){return b=x(b),function(t,e,n,i){var r,o,s=angular.element("<"+b+">");try{o=w.getSelectionElement()}catch(t){}var a=angular.element(o);if(void 0!==o){var l=o.tagName.toLowerCase();if("insertorderedlist"===t.toLowerCase()||"insertunorderedlist"===t.toLowerCase()){var u,c=x("insertorderedlist"===t.toLowerCase()?"ol":"ul");if(l===c)return k(a,b);if("li"===l&&a.parent()[0].tagName.toLowerCase()===c&&1===a.parent().children().length)return k(a.parent(),b);if("li"===l&&a.parent()[0].tagName.toLowerCase()!==c&&1===a.parent().children().length)return $(a.parent(),c);if(l.match(it)&&!a.hasClass("ta-bind"))return"ol"===l||"ul"===l?$(a,c):(u=!1,angular.forEach(a.children(),function(t){t.tagName.match(it)&&(u=!0)}),S(u?a.children():[angular.element("<div>"+o.innerHTML+"</div>")[0]],a,c));if(l.match(it)){if(0===(m=w.getOnlySelectedElements()).length)r=angular.element("<"+c+"><li>"+o.innerHTML+"</li></"+c+">"),a.html(""),a.append(r);else{if(1===m.length&&("ol"===m[0].tagName.toLowerCase()||"ul"===m[0].tagName.toLowerCase()))return m[0].tagName.toLowerCase()===c?k(angular.element(m[0]),b):$(angular.element(m[0]),c);for(var h,d="",p=[],f=0;f<m.length;f++)3!==m[f].nodeType&&(h=angular.element(m[f]),"li"!==m[f].tagName.toLowerCase())&&("ol"===m[f].tagName.toLowerCase()||"ul"===m[f].tagName.toLowerCase()?d+=h[0].innerHTML:"span"!==m[f].tagName.toLowerCase()||"ol"!==m[f].childNodes[0].tagName.toLowerCase()&&"ul"!==m[f].childNodes[0].tagName.toLowerCase()?d+="<"+x("li")+">"+h[0].innerHTML+"</"+x("li")+">":d+=h[0].childNodes[0].innerHTML,p.unshift(h));r=angular.element("<"+c+">"+d+"</"+c+">"),p.pop().replaceWith(r),angular.forEach(p,function(t){t.remove()})}return void w.setSelectionToElementEnd(r[0])}}else{if("formatblock"===t.toLowerCase()){for("default"===(o=n.toLowerCase().replace(/[<>]/gi,"")).trim()&&(n="<"+(o=b)+">"),r="li"===l?a.parent():a;!r[0].tagName||!r[0].tagName.match(it)&&!r.parent().attr("contenteditable");)l=((r=r.parent())[0].tagName||"").toLowerCase();if(l===o){var m=r.children(),g=!1;for(f=0;f<m.length;f++)g=g||m[f].tagName.match(it);r=g?(r.after(m),c=r.next(),r.remove(),c):(s.append(r[0].childNodes),r.after(s),r.remove(),s)}else if(r.parent()[0].tagName.toLowerCase()!==o||r.parent().hasClass("ta-bind"))if(l.match(E))r.wrap(n);else{for(0===(m=w.getOnlySelectedElements()).length&&(m=[r[0]]),f=0;f<m.length;f++)if(3===m[f].nodeType||!m[f].tagName.match(it))for(;3===m[f].nodeType||!m[f].tagName||!m[f].tagName.match(it);)m[f]=m[f].parentNode;if(angular.element(m[0]).hasClass("ta-bind"))(r=angular.element(n))[0].innerHTML=m[0].innerHTML,m[0].innerHTML=r[0].outerHTML;else if("blockquote"===o){for(d="",f=0;f<m.length;f++)d+=m[f].outerHTML;for((r=angular.element(n))[0].innerHTML=d,m[0].parentNode.insertBefore(r[0],m[0]),f=m.length-1;0<=f;f--)m[f].parentNode&&m[f].parentNode.removeChild(m[f])}else for(f=0;f<m.length;f++)(r=angular.element(n))[0].innerHTML=m[f].innerHTML,m[f].parentNode.insertBefore(r[0],m[f]),m[f].parentNode.removeChild(m[f])}else{var v=r.parent(),y=v.contents();for(f=0;f<y.length;f++)v.parent().hasClass("ta-bind")&&3===y[f].nodeType&&((s=angular.element("<"+b+">"))[0].innerHTML=y[f].outerHTML,y[f]=s[0]),v.parent()[0].insertBefore(y[f],v[0]);v.remove()}return void w.setSelectionToElementEnd(r[0])}if("createlink"===t.toLowerCase())return a='<a href="'+n+'" target="'+(i.a.target||"")+'">',void(w.getSelection().collapsed?w.insertHtml(a+n+"</a>",_):rangy.getSelection().getRangeAt(0).canSurroundContents()&&(c=angular.element(a+"</a>")[0],rangy.getSelection().getRangeAt(0).surroundContents(c)));if("inserthtml"===t.toLowerCase())return void w.insertHtml(n,_)}}try{C[0].execCommand(t,e,n)}catch(t){}}}}]).service("taSelection",["$window","$document","taDOM",function(t,e,g){function n(t,e){return t.tagName&&t.tagName.match(/^br$/i)&&0===e&&!t.previousSibling?{element:t.parentNode,offset:0}:{element:t,offset:e}}var v=e[0],y=t.rangy,b={getSelection:function(){var t=y.getSelection().getRangeAt(0),e=t.commonAncestorContainer,t={start:n(t.startContainer,t.startOffset),end:n(t.endContainer,t.endOffset),collapsed:t.collapsed};return(e=3===e.nodeType?e.parentNode:e).parentNode===t.start.element||e.parentNode===t.end.element?t.container=e.parentNode:t.container=e,t},getOnlySelectedElements:function(){var t=y.getSelection().getRangeAt(0),e=3===(e=t.commonAncestorContainer).nodeType?e.parentNode:e;return t.getNodes([1],function(t){return t.parentNode===e})},getSelectionElement:function(){return b.getSelection().container},setSelection:function(t,e,n){var i=y.createRange();i.setStart(t,e),i.setEnd(t,n),y.getSelection().setSingleRange(i)},setSelectionBeforeElement:function(t){var e=y.createRange();e.selectNode(t),e.collapse(!0),y.getSelection().setSingleRange(e)},setSelectionAfterElement:function(t){var e=y.createRange();e.selectNode(t),e.collapse(!1),y.getSelection().setSingleRange(e)},setSelectionToElementStart:function(t){var e=y.createRange();e.selectNodeContents(t),e.collapse(!0),y.getSelection().setSingleRange(e)},setSelectionToElementEnd:function(t){var e=y.createRange();e.selectNodeContents(t),e.collapse(!1),t.childNodes&&t.childNodes[t.childNodes.length-1]&&"br"===t.childNodes[t.childNodes.length-1].nodeName&&(e.startOffset=e.endOffset=e.startOffset-1),y.getSelection().setSingleRange(e)},insertHtml:function(t,e){var n,i,r,o,s,a=angular.element("<div>"+t+"</div>"),l=y.getSelection().getRangeAt(0),u=v.createDocumentFragment(),c=a[0].childNodes,h=!0;if(0<c.length){for(i=[],n=0;n<c.length;n++)"p"===c[n].nodeName.toLowerCase()&&""===c[n].innerHTML.trim()||3===c[n].nodeType&&""===c[n].nodeValue.trim()||(h=h&&!it.test(c[n].nodeName),i.push(c[n]));for(var d=0;d<i.length;d++)o=u.appendChild(i[d]);!h&&l.collapsed&&/^(|<br(|\/)>)$/i.test(l.startContainer.innerHTML)&&l.selectNode(l.startContainer)}else h=!0,o=u=v.createTextNode(t);if(h)l.deleteContents();else if(l.collapsed&&l.startContainer!==e)if(l.startContainer.innerHTML&&l.startContainer.innerHTML.match(/^<[^>]*>$/i))p=l.startContainer,1===l.startOffset?(l.setStartAfter(p),l.setEndAfter(p)
1):(l.setStartBefore(p),l.setEndBefore(p));else{if(3===l.startContainer.nodeType&&l.startContainer.parentNode!==e)for(m=(p=l.startContainer.parentNode).cloneNode(),g.splitNodes(p.childNodes,p,m,l.startContainer,l.startOffset);!rt.test(p.nodeName);){angular.element(p).after(m);var p,f=m,m=(p=p.parentNode).cloneNode();g.splitNodes(p.childNodes,p,m,f)}else m=(p=l.startContainer).cloneNode(),g.splitNodes(p.childNodes,p,m,void 0,void 0,l.startOffset);if(angular.element(p).after(m),l.setStartAfter(p),l.setEndAfter(p),/^(|<br(|\/)>)$/i.test(p.innerHTML.trim())&&(l.setStartBefore(p),l.setEndBefore(p),angular.element(p).remove()),/^(|<br(|\/)>)$/i.test(m.innerHTML.trim())&&angular.element(m).remove(),"li"===p.nodeName.toLowerCase()){for(s=v.createDocumentFragment(),r=0;r<u.childNodes.length;r++)a=angular.element("<li>"),g.transferChildNodes(u.childNodes[r],a[0]),g.transferNodeAttributes(u.childNodes[r],a[0]),s.appendChild(a[0]);u=s,o=o&&(o=u.childNodes[u.childNodes.length-1]).childNodes[o.childNodes.length-1]}}else l.deleteContents();l.insertNode(u),o&&b.setSelectionToElementEnd(o)}};return b}]).service("taDOM",function(){var u={getByAttribute:function(t,e){var n=[],i=t.children();return i.length&&angular.forEach(i,function(t){n=n.concat(u.getByAttribute(angular.element(t),e))}),void 0!==t.attr(e)&&n.push(t),n},transferChildNodes:function(t,e){for(e.innerHTML="";0<t.childNodes.length;)e.appendChild(t.childNodes[0]);return e},splitNodes:function(t,e,n,i,r,o){if(!i&&isNaN(o))throw new Error("taDOM.splitNodes requires a splitNode or splitIndex");for(var s=document.createDocumentFragment(),a=document.createDocumentFragment(),l=0;0<t.length&&(isNaN(o)||o!==l)&&t[0]!==i;)s.appendChild(t[0]),l++;for(!isNaN(r)&&0<=r&&t[0]&&(s.appendChild(document.createTextNode(t[0].nodeValue.substring(0,r))),t[0].nodeValue=t[0].nodeValue.substring(r));0<t.length;)a.appendChild(t[0]);u.transferChildNodes(s,e),u.transferChildNodes(a,n)},transferNodeAttributes:function(t,e){for(var n=0;n<t.attributes.length;n++)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e}};return u}),angular.module("textAngular.validators",[]).directive("taMaxText",function(){return{restrict:"A",require:"ngModel",link:function(t,e,n,i){var r=parseInt(t.$eval(n.taMaxText));if(isNaN(r))throw"Max text must be an integer";n.$observe("taMaxText",function(t){if(r=parseInt(t),isNaN(r))throw"Max text must be an integer";i.$dirty&&i.$validate()}),i.$validators.taMaxText=function(t){var e=angular.element("<div/>");return e.html(t),e.text().length<=r}}}}).directive("taMinText",function(){return{restrict:"A",require:"ngModel",link:function(t,e,n,i){var r=parseInt(t.$eval(n.taMinText));if(isNaN(r))throw"Min text must be an integer";n.$observe("taMinText",function(t){if(r=parseInt(t),isNaN(r))throw"Min text must be an integer";i.$dirty&&i.$validate()}),i.$validators.taMinText=function(t){var e=angular.element("<div/>");return e.html(t),!e.text().length||e.text().length>=r}}}}),angular.module("textAngular.taBind",["textAngular.factories","textAngular.DOM"]).service("_taBlankTest",[function(){var i=/<(a|abbr|acronym|bdi|bdo|big|cite|code|del|dfn|img|ins|kbd|label|map|mark|q|ruby|rp|rt|s|samp|time|tt|var)[^>]*(>|$)/i;return function(n){return function(t){var e;return!(t&&(e=(e=/(^[^<]|>)[^<]/i.exec(t))?e.index:(t=t.toString().replace(/="[^"]*"/i,"").replace(/="[^"]*"/i,"").replace(/="[^"]*"/i,"").replace(/="[^"]*"/i,"")).indexOf(">"),t=t.trim().substring(e,e+100),/^[^<>]+$/i.test(t)||0!==t.length&&t!==n&&!/^>(\s|&nbsp;)*<\/[^>]+>$/gi.test(t)&&(/>\s*[^\s<]/i.test(t)||i.test(t))))}}}]).directive("taButton",[function(){return{link:function(t,e,n){e.attr("unselectable","on"),e.on("mousedown",function(t,e){return e&&angular.extend(t,e),t.preventDefault(),!1})}}}]).directive("taBind",["taSanitize","$timeout","$window","$document","taFixChrome","taBrowserTag","taSelection","taSelectableElements","taApplyCustomRenderers","taOptions","_taBlankTest","$parse","taDOM","textAngularManager",function(F,z,V,j,W,t,B,q,U,Y,G,K,X,Z){return{priority:2,require:["ngModel","?ngModelOptions"],link:function(v,y,s,t){var o,b,l,_=t[0],a=t[1]||{},i=void 0!==y.attr("contenteditable")&&y.attr("contenteditable"),e=i||"textarea"===y[0].tagName.toLowerCase()||"input"===y[0].tagName.toLowerCase(),u=!1,n=!1,r=!1,w=s.taUnsafeSanitizer||Y.disableSanitizer,c=/^(9|19|20|27|33|34|35|36|37|38|39|40|45|112|113|114|115|116|117|118|119|120|121|122|123|144|145)$/i,h=/^(8|13|32|46|59|61|107|109|173|186|187|188|189|190|191|192|219|220|221|222)$/i,I=[{specialKey:"UndoKey",forbiddenModifiers:12,mustHaveModifiers:[3],keyCode:90},{specialKey:"RedoKey",forbiddenModifiers:4,mustHaveModifiers:[3,8],keyCode:90},{specialKey:"RedoKey",forbiddenModifiers:12,mustHaveModifiers:[3],keyCode:89},{specialKey:"TabKey",forbiddenModifiers:15,mustHaveModifiers:[],keyCode:9},{specialKey:"ShiftTabKey",forbiddenModifiers:7,mustHaveModifiers:[8],keyCode:9}];void 0===s.taDefaultWrap&&(s.taDefaultWrap="p"),t=""===s.taDefaultWrap?(l="",void 0===tt?"<div><br></div>":11<=tt?"<p><br></p>":tt<=8?"<P>&nbsp;</P>":"<p>&nbsp;</p>"):(l=void 0===tt||11<=tt?"<"+s.taDefaultWrap+"><br></"+s.taDefaultWrap+">":tt<=8?"<"+s.taDefaultWrap.toUpperCase()+"></"+s.taDefaultWrap.toUpperCase()+">":"<"+s.taDefaultWrap+"></"+s.taDefaultWrap+">",void 0===tt||11<=tt?"<"+s.taDefaultWrap+"><br></"+s.taDefaultWrap+">":tt<=8?"<"+s.taDefaultWrap.toUpperCase()+">&nbsp;</"+s.taDefaultWrap.toUpperCase()+">":"<"+s.taDefaultWrap+">&nbsp;</"+s.taDefaultWrap+">"),a.$options||(a.$options={});function d(t){if(!g(t)){var e=angular.element("<div>"+t+"</div>");if(0===e.children().length)t="<"+s.taDefaultWrap+">"+t+"</"+s.taDefaultWrap+">";else{for(var n,i=e[0].childNodes,r=!1,o=0;o<i.length&&!(r=i[o].nodeName.toLowerCase().match(it));o++);if(r)for(t="",o=0;o<i.length;o++)i[o].nodeName.toLowerCase().match(it)?t+=i[o].outerHTML:""!==(n=i[o].outerHTML||i[o].nodeValue).trim()?t+="<"+s.taDefaultWrap+">"+n+"</"+s.taDefaultWrap+">":t+=n;else t="<"+s.taDefaultWrap+">"+t+"</"+s.taDefaultWrap+">"}}return t}
1function x(){if(i)return y[0].innerHTML;if(e)return y.val();throw"textAngular Error: attempting to update non-editable taBind"}function p(t){return _.$oldViewValue=F(W(t),_.$oldViewValue,w)}var f,m,g=G(t),L=(s.taPaste&&(b=K(s.taPaste)),y.addClass("ta-bind"),v["$undoManager"+(s.id||"")]=_.$undoManager={_stack:[],_index:0,_max:1e3,push:function(t){return null==t||void 0!==this.current()&&null!==this.current()&&t===this.current()||(this._index<this._stack.length-1&&(this._stack=this._stack.slice(0,this._index+1)),this._stack.push(t),f&&z.cancel(f),this._stack.length>this._max&&this._stack.shift(),this._index=this._stack.length-1),t},undo:function(){return this.setToIndex(this._index-1)},redo:function(){return this.setToIndex(this._index+1)},setToIndex:function(t){if(!(t<0||t>this._stack.length-1))return this._index=t,this.current()},current:function(){return this._stack[this._index]}},v["$undoTaBind"+(s.id||"")]=function(){var t;!u&&i&&null!=(t=_.$undoManager.undo())&&(P(t),C(t,!1),m&&z.cancel(m),m=z(function(){y[0].focus(),B.setSelectionToElementEnd(y[0])},1))}),H=v["$redoTaBind"+(s.id||"")]=function(){var t;!u&&i&&null!=(t=_.$undoManager.redo())&&(P(t),C(t,!1),m&&z.cancel(m),m=z(function(){y[0].focus(),B.setSelectionToElementEnd(y[0])},1))},C=function(t,e,n){r=n||!1,null==e&&(e=i),null==t&&(t=x()),g(t)?(""!==_.$viewValue&&_.$setViewValue(""),e&&""!==_.$undoManager.current()&&_.$undoManager.push("")):(N(),_.$viewValue!==t&&(_.$setViewValue(t),e)&&_.$undoManager.push(t)),_.$render()};v["updateTaBind"+(s.id||"")]=function(){u||C(void 0,void 0,!0)};if(y.attr("required")&&(_.$validators.required=function(t,e){return!g(t||e)}),_.$parsers.push(p),_.$parsers.unshift(d),_.$formatters.push(p),_.$formatters.unshift(d),_.$formatters.unshift(function(t){return _.$undoManager.push(t||"")}),e)if(v.events={},i){var k,$,S=!1,E=function(t){if(t&&t.trim().length){if(t.match(/class=["']*Mso(Normal|List)/i)){var e=t.match(/<!--StartFragment-->([\s\S]*?)<!--EndFragment-->/i);e=(e=e?e[1]:t).replace(/<o:p>[\s\S]*?<\/o:p>/gi,"").replace(/class=(["']|)MsoNormal(["']|)/gi,"");for(var n=angular.element("<div>"+e+"</div>"),i=angular.element("<div></div>"),r={element:null,lastIndent:[],lastLi:null,isUl:!1},o=(r.lastIndent.peek=function(){var t=this.length;if(0<t)return this[t-1]},function(t){r.isUl=t,r.element=angular.element(t?"<ul>":"<ol>"),r.lastIndent=[],r.lastIndent.peek=function(){var t=this.length;if(0<t)return this[t-1]},r.lastLevelMatch=null}),s=0;s<=n[0].childNodes.length;s++)if(n[0].childNodes[s]&&"#text"!==n[0].childNodes[s].nodeName&&"p"===n[0].childNodes[s].tagName.toLowerCase()){var a=angular.element(n[0].childNodes[s]),l=(a.attr("class")||"").match(/MsoList(Bullet|Number|Paragraph)(CxSp(First|Middle|Last)|)/i);if(l){if(!(a[0].childNodes.length<2||a[0].childNodes[1].childNodes.length<1)){var u="bullet"===l[1].toLowerCase()||"number"!==l[1].toLowerCase()&&!(/^[^0-9a-z<]*[0-9a-z]+[^0-9a-z<>]</i.test(a[0].childNodes[1].innerHTML)||/^[^0-9a-z<]*[0-9a-z]+[^0-9a-z<>]</i.test(a[0].childNodes[1].childNodes[0].innerHTML)),c=(a.attr("style")||"").match(/margin-left:([\-\.0-9]*)/i),h=parseFloat(c?c[1]:0),c=(a.attr("style")||"").match(/mso-list:l([0-9]+) level([0-9]+) lfo[0-9+]($|;)/i);if(c&&c[2]&&(h=parseInt(c[2])),c&&(!r.lastLevelMatch||c[1]!==r.lastLevelMatch[1])||!l[3]||"first"===l[3].toLowerCase()||null===r.lastIndent.peek()||r.isUl!==u&&r.lastIndent.peek()===h)o(u),i.append(r.element);else if(null!=r.lastIndent.peek()&&r.lastIndent.peek()<h)r.element=angular.element(u?"<ul>":"<ol>"),r.lastLi.append(r.element);else if(null!=r.lastIndent.peek()&&r.lastIndent.peek()>h){for(;null!=r.lastIndent.peek()&&r.lastIndent.peek()>h;)if("li"===r.element.parent()[0].tagName.toLowerCase())r.element=r.element.parent();else{if(!/[uo]l/i.test(r.element.parent()[0].tagName.toLowerCase()))break;r.element=r.element.parent(),r.lastIndent.pop()}r.isUl="ul"===r.element[0].tagName.toLowerCase(),u!==r.isUl&&(o(u),i.append(r.element))}r.lastLevelMatch=c,h!==r.lastIndent.peek()&&r.lastIndent.push(h),r.lastLi=angular.element("<li>"),r.element.append(r.lastLi),r.lastLi.html(a.html().replace(/<!(--|)\[if !supportLists\](--|)>[\s\S]*?<!(--|)\[endif\](--|)>
1/gi,"")),a.remove()}}else o(!1),i.append(a)}var d=function(t){for(var e=(t=angular.element(t))[0].childNodes.length-1;0<=e;e--)t.after(t[0].childNodes[e]);t.remove()};angular.forEach(i.find("span"),function(t){t.removeAttribute("lang"),t.attributes.length<=0&&d(t)}),angular.forEach(i.find("font"),d),t=i.html()}else{if((t=t.replace(/<(|\/)(html|body|meta)[^>]*?>/gi,"").trim()).match(/<[^>]*?(ta-bind)[^>]*?>/)){if(t.match(/<[^>]*?(text-angular)[^>]*?>/)){for(var e=angular.element("<div>"+t+"</div>"),p=(e.find("textarea").remove(),X.getByAttribute(e,"ta-bind")),f=0;f<p.length;f++){for(var m=p[f][0].parentNode.parentNode,g=0;g<p[f][0].childNodes.length;g++)m.parentNode.insertBefore(p[f][0].childNodes[g],m);m.parentNode.removeChild(m)}t=e.html().replace('<br class="Apple-interchange-newline">',"")}}else t.match(/^<span/)&&(t=t.replace(/<(|\/)span[^>]*?>/gi,""));t=t.replace(/<br class="Apple-interchange-newline"[^>]*?>/gi,"").replace(/<span class="Apple-converted-space">( |&nbsp;)<\/span>/gi,"&nbsp;")}t=(t=/<li(\s.*)?>/i.test(t)&&!1===/(<ul(\s.*)?>|<ol(\s.*)?>).*<li(\s.*)?>/i.test(t)?t.replace(/<li(\s.*)?>.*<\/li(\s.*)?>/i,"<ul>$&</ul>"):t).replace(/^[ |\u00A0]+/gm,function(t){for(var e="",n=0;n<t.length;n++)e+="&nbsp;";return e}).replace(/\n|\r\n|\r/g,"<br />").replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;"),b&&(t=b(v,{$html:t})||t),t=F(t,"",w),B.insertHtml(t,y[0]),z(function(){_.$setViewValue(x()),S=!1,y.removeClass("processing-paste")},0)}else S=!1,y.removeClass("processing-paste")};if(y.on("paste",v.events.paste=function(t,e){if(e&&angular.extend(t,e),u||S)return t.stopPropagation(),t.preventDefault(),!1;S=!0,y.addClass("processing-paste");var n,i=(t.originalEvent||t).clipboardData;if(i&&i.getData&&0<i.types.length){for(var r="",o=0;o<i.types.length;o++)r+=" "+i.types[o];return/text\/html/i.test(r)?n=i.getData("text/html"):/text\/plain/i.test(r)&&(n=i.getData("text/plain")),E(n),t.stopPropagation(),t.preventDefault(),!1}var s=V.rangy.saveSelection(),a=angular.element('<div class="ta-hidden-input" contenteditable="true"></div>');j.find("body").append(a),a[0].focus(),z(function(){V.rangy.restoreSelection(s),E(a[0].innerHTML),y[0].focus(),a.remove()},0)}),y.on("cut",v.events.cut=function(t){u?t.preventDefault():z(function(){_.$setViewValue(x())},0)}),y.on("keydown",v.events.keydown=function(e,t){var n,i,r,o,s,a;t&&angular.extend(e,t),e.specialKey=(n=e,I.forEach(function(t){var e;t.keyCode===n.keyCode&&(e=(n.metaKey?2:0)+(n.ctrlKey?1:0)+(n.shiftKey?8:0)+(n.altKey?4:0),t.forbiddenModifiers&e||t.mustHaveModifiers.every(function(t){return e&t})&&(i=t.specialKey))}
1),i),Y.keyMappings.forEach(function(t){e.specialKey===t.commandKeyCode&&(e.specialKey=void 0),t.testForKey(e)&&(r=t.commandKeyCode),"UndoKey"!==t.commandKeyCode&&"RedoKey"!==t.commandKeyCode||t.enablePropagation||e.preventDefault()}),void 0!==r&&(e.specialKey=r),void 0===e.specialKey||"UndoKey"===e.specialKey&&"RedoKey"===e.specialKey||(e.preventDefault(),Z.sendKeyCommand(v,e)),u||("UndoKey"===e.specialKey&&(L(),e.preventDefault()),"RedoKey"===e.specialKey&&(H(),e.preventDefault()),13!==e.keyCode)||e.shiftKey||(t=B.getSelectionElement()).tagName.match(rt)&&(o=angular.element(l),/^<br(|\/)>$/i.test(t.innerHTML.trim())&&"blockquote"===t.parentNode.tagName.toLowerCase()&&!t.nextSibling?((a=(s=angular.element(t)).parent()).after(o),s.remove(),0===a.children().length&&a.remove(),B.setSelectionToElementStart(o[0]),e.preventDefault()):/^<[^>]+><br(|\/)><\/[^>]+>$/i.test(t.innerHTML.trim())&&"blockquote"===t.tagName.toLowerCase()&&((s=angular.element(t)).after(o),s.remove(),B.setSelectionToElementStart(o[0]),e.preventDefault()))}),y.on("keyup",v.events.keyup=function(t,e){if(e&&angular.extend(t,e),9===t.keyCode)B.getSelection().start.element===y[0]&&y.children().length&&B.setSelectionToElementStart(y.children()[0]);else if(f&&z.cancel(f),!u&&!c.test(t.keyCode)){if(""!==l&&13===t.keyCode&&!t.shiftKey){for(var n=B.getSelectionElement();!n.tagName.match(rt)&&n!==y[0];)n=n.parentNode;n.tagName.toLowerCase()===s.taDefaultWrap||"li"===n.tagName.toLowerCase()||""!==n.innerHTML.trim()&&"<br>"!==n.innerHTML.trim()||(e=angular.element(l),angular.element(n).replaceWith(e),B.setSelectionToElementStart(e[0]))}var i=x(),r=(""!==l&&""===i.trim()?(P(l),B.setSelectionToElementStart(y.children()[0])):"<"!==i.substring(0,1)&&""!==s.taDefaultWrap&&(e=V.rangy.saveSelection(),i=x(),i="<"+s.taDefaultWrap+">"+i+"</"+s.taDefaultWrap+">",P(i),V.rangy.restoreSelection(e)),o!==t.keyCode&&h.test(t.keyCode));k&&z.cancel(k),k=z(function(){C(i,r,!0)},a.$options.debounce||400),r||(f=z(function(){_.$undoManager.push(i)},250)),o=t.keyCode}}),y.on("blur",v.events.blur=function(){n=!1,u?(r=!0,_.$render()):C(void 0,void 0,!0)}),s.placeholder&&(8<tt||void 0===tt)){if(!s.id)throw"textAngular Error: An unique ID is required for placeholders to work";$=Q("#"+s.id+".placeholder-text:before",'content: "'+s.placeholder+'"'),v.$on("$destroy",function(){J($)})}y.on("focus",v.events.focus=function(){n=!0,y.removeClass("placeholder-text"),N()}),y.on("mouseup",v.events.mouseup=function(){B.getSelection().start.element===y[0]&&y.children().length&&B.setSelectionToElementStart(y.children()[0])}),y.on("mousedown",v.events.mousedown=function(t,e){e&&angular.extend(t,e),t.stopPropagation()})}else{y.on("change blur",v.events.change=v.events.blur=function(){u||_.$setViewValue(x())}),y.on("keydown",v.events.keydown=function(t,e){var n,i,r,o;e&&angular.extend(t,e),9===t.keyCode&&(e=this.selectionStart,n=this.selectionEnd,i=y.val(),t.shiftKey?(r=i.lastIndexOf("\n",e),-1!==(o=i.lastIndexOf("\t",e))&&r<=o&&(y.val(i.substring(0,o)+i.substring(o+1)),this.selectionStart=this.selectionEnd=e-1)):(y.val(i.substring(0,e)+"\t"+i.substring(n)),this.selectionStart=this.selectionEnd=e+1),t.preventDefault())});var T=function(t,e){for(var n="",i=0;i<e;i++)n+=t;return n},D=function(t,e){var n="",i=t.childNodes;n+=T("\t",++e-1)+t.outerHTML.substring(0,t.outerHTML.indexOf("<li"));for(var r=0;r<i.length;r++)i[r].outerHTML&&("ul"===i[r].nodeName.toLowerCase()||"ol"===i[r].nodeName.toLowerCase()?n+="\n"+D(i[r],e):n+="\n"+T("\t",e)+i[r].outerHTML);return n+="\n"+T("\t",e-1)+t.outerHTML.substring(t.outerHTML.lastIndexOf("<"))};_.$formatters.unshift(function(t){var e=angular.element("<div>"+t+"</div>")[0].childNodes;if(0<e.length){t="";for(var n=0;n<e.length;n++)e[n].outerHTML&&(0<t.length&&(t+="\n"),"ul"===e[n].nodeName.toLowerCase()||"ol"===e[n].nodeName.toLowerCase()?t+=""+D(e[n],0):t+=""+e[n].outerHTML)}return t})}function M(t){return v.$emit("ta-element-select",this),t.preventDefault(),!1}function A(t,e){e&&angular.extend(t,e),ot||u||(ot=!0,e=(t.originalEvent||t).dataTransfer,v.$emit("ta-drop-event",this,t,e),z(function(){C(void 0,void 0,!(ot=!1))},100))}var O,N=v["reApplyOnSelectorHandlers"+(s.id||"")]=function(){u||angular.forEach(q,function(t){y.find(t).off("
1click",M).on("click",M)})},P=function(t){y[0].innerHTML=t},R=!1;_.$render=function(){var t;R||(R=!0,t=_.$viewValue||"",r||(i&&n&&(y.removeClass("placeholder-text"),O&&z.cancel(O),O=z(function(){n||(y[0].focus(),B.setSelectionToElementEnd(y.children()[y.children().length-1])),O=void 0},1)),i?(s.placeholder,P(""===t?l:t),u?y.off("drop",A):(N(),y.on("drop",A))):"textarea"!==y[0].tagName.toLowerCase()&&"input"!==y[0].tagName.toLowerCase()?P(U(t)):y.val(t)),i&&s.placeholder&&(""!==t||n?y.removeClass("placeholder-text"):y.addClass("placeholder-text")),R=r=!1)},s.taReadonly&&((u=v.$eval(s.taReadonly))?(y.addClass("ta-readonly"),"textarea"!==y[0].tagName.toLowerCase()&&"input"!==y[0].tagName.toLowerCase()||y.attr("disabled","disabled"),void 0!==y.attr("contenteditable")&&y.attr("contenteditable")&&y.removeAttr("contenteditable")):(y.removeClass("ta-readonly"),"textarea"===y[0].tagName.toLowerCase()||"input"===y[0].tagName.toLowerCase()?y.removeAttr("disabled"):i&&y.attr("contenteditable","true")),v.$watch(s.taReadonly,function(t,e){e!==t&&(t?(y.addClass("ta-readonly"),"textarea"!==y[0].tagName.toLowerCase()&&"input"!==y[0].tagName.toLowerCase()||y.attr("disabled","disabled"),void 0!==y.attr("contenteditable")&&y.attr("contenteditable")&&y.removeAttr("contenteditable"),angular.forEach(q,function(t){y.find(t).on("click",M)}),y.off("drop",A)):(y.removeClass("ta-readonly"),"textarea"===y[0].tagName.toLowerCase()||"input"===y[0].tagName.toLowerCase()?y.removeAttr("disabled"):i&&y.attr("contenteditable","true"),angular.forEach(q,function(t){y.find(t).off("click",M)}),y.on("drop",A)),u=t)})),i&&!u&&(angular.forEach(q,function(t){y.find(t).on("click",M)}),y.on("drop",A),y.on("blur",function(){et&&(nt=!0)}))}}}]);var ot=!1,s=angular.module("textAngular",["ngSanitize","textAngularSetup","textAngular.factories","textAngular.DOM","textAngular.validators","textAngular.taBind"]),a={};s.constant("taRegisterTool",function(t,e){if(!t||""===t||a.hasOwnProperty(t))throw"textAngular Error: A unique name is required for a Tool Definition";if(e.display&&(""===e.display||!function(t){try{return 0!==angular.element(t).length}catch(t){}}(e.display))||!e.display&&!e.buttontext&&!e.iconclass)throw'textAngular Error: Tool Definition for "'+t+'" does not have a valid display/iconclass/buttontext value';a[t]=e}),s.value("taTools",a),s.config([function(){angular.forEach(a,function(t,e){delete a[e]})}]),s.run([function(){if("function"==typeof define&&define.amd)define(function(t){window.rangy=t("rangy"),window.rangy.saveSelection=t("rangy/lib/rangy-selectionsaverestore")});else if("function"==typeof require&&"undefined"!=typeof module&&"object"==typeof exports)window.rangy=require("rangy"),window.rangy.saveSelection=require("rangy/lib/rangy-selectionsaverestore");else{if(!window.rangy)throw"rangy-core.js and rangy-selectionsaverestore.js are required for textAngular to work correctly, rangy-core is not yet loaded.";if(window.rangy.init(),!window.rangy.saveSelection)throw"rangy-selectionsaverestore.js is required for textAngular to work correctly."}}]),s.directive("textAngular",["$compile","$timeout","taOptions","taSelection","taExecCommand","textAngularManager","$window","$document","$animate","$log","$q","$parse",function(f,m,g,v,y,b,_,w,x,C,k,$){return{require:"?ngModel",scope:{},restrict:"EA",priority:2,link:function(l,e,u,n){function i(e,n,i){m(function(){var t=function(){e.off(n,t),i.apply(this,arguments)};e.on(n,t)},100)}var t,r,o,s,a=u.serial||Math.floor(1e16*Math.random()),c=(l._name=u.name||"textAngularEditor"+a,y(u.taDefaultWrap));if(angular.extend(l,angular.copy(g),{wrapSelection:function(t,e,n){"undo"===t.toLowerCase()?l["$undoTaBindtaTextElement"+a]():"redo"===t.toLowerCase()?l["$redoTaBindtaTextElement"+a]():(c(t,!1,e,l.defaultTagAttributes),n&&l["reApplyOnSelectorHandlerstaTextElement"+a](),l.displayElements.text[0].focus())},showHtml:l.$eval(u.taShowHtml)||!1}),u.taFocussedClass&&(l.classes.focussed=u.taFocussedClass),u.taTextEditorClass&&(l.classes.textEditor=u.taTextEditorClass),u.taHtmlEditorClass&&(l.classes.htmlEditor=u.taHtmlEditorClass),u.taDefaultTagAttributes)try{angular.extend(l.defaultTagAttributes,angular.fromJson(u.taDefaultTagAttributes))}catch(t){C.error(t)}u.taTextEditorSetup&&(l.setup.textEditorSetup=l.$parent.$eval(u.taTextEditorSetup)),u.taHtmlEditorSetup&&(l.setup.htmlEditorSetup=l.$parent.$eval(u.taHtmlEditorSetup)),u.taFileDrop?l.fileDropHandler=l.$parent.$eval(u.taFileDrop):l.f
1ileDropHandler=l.defaultFileDropHandler,t=e[0].innerHTML,e[0].innerHTML="",l.displayElements={forminput:angular.element("<input type='hidden' tabindex='-1' style='display: none;'>"),html:angular.element("<textarea></textarea>"),text:angular.element("<div></div>"),scrollWindow:angular.element("<div class='ta-scroll-window'></div>"),popover:angular.element('<div class="popover fade bottom" style="max-width: none; width: 305px;"></div>'),popoverArrow:angular.element('<div class="arrow"></div>'),popoverContainer:angular.element('<div class="popover-content"></div>'),resize:{overlay:angular.element('<div class="ta-resizer-handle-overlay"></div>'),background:angular.element('<div class="ta-resizer-handle-background"></div>'),anchors:[angular.element('<div class="ta-resizer-handle-corner ta-resizer-handle-corner-tl"></div>'),angular.element('<div class="ta-resizer-handle-corner ta-resizer-handle-corner-tr"></div>'),angular.element('<div class="ta-resizer-handle-corner ta-resizer-handle-corner-bl"></div>'),angular.element('<div class="ta-resizer-handle-corner ta-resizer-handle-corner-br"></div>')],info:angular.element('<div class="ta-resizer-handle-info"></div>')}},l.displayElements.popover.append(l.displayElements.popoverArrow),l.displayElements.popover.append(l.displayElements.popoverContainer),l.displayElements.scrollWindow.append(l.displayElements.popover),l.displayElements.popover.on("mousedown",function(t,e){return e&&angular.extend(t,e),t.preventDefault(),!1}),l.showPopover=function(t){l.displayElements.popover.css("display","block"),l.reflowPopover(t),x.addClass(l.displayElements.popover,"in"),i(w.find("body"),"click keyup",function(){l.hidePopover()})},l.reflowPopover=function(t){l.displayElements.text[0].offsetHeight-51>t[0].offsetTop?(l.displayElements.popover.css("top",t[0].offsetTop+t[0].offsetHeight+l.displayElements.scrollWindow[0].scrollTop+"px"),l.displayElements.popover.removeClass("top").addClass("bottom")):(l.displayElements.popover.css("top",t[0].offsetTop-54+l.displayElements.scrollWindow[0].scrollTop+"px"),l.displayElements.popover.removeClass("bottom").addClass("top"));var e=l.displayElements.text[0].offsetWidth-l.displayElements.popover[0].offsetWidth,t=t[0].offsetLeft+t[0].offsetWidth/2-l.displayElements.popover[0].offsetWidth/2;l.displayElements.popover.css("left",Math.max(0,Math.min(e,t))+"px"),l.displayElements.popoverArrow.css("margin-left",Math.min(t,Math.max(0,t-e))-11+"px")},l.hidePopover=function(){l.displayElements.popover.css("display",""),l.displayElements.popoverContainer.attr("style",""),l.displayElements.popoverContainer.attr("class","popover-content"),l.displayElements.popover.removeClass("in")},l.displayElements.resize.overlay.append(l.displayElements.resize.background),angular.forEach(l.displayElements.resize.anchors,function(t){l.displayElements.resize.overlay.append(t)}),l.displayElements.resize.overlay.append(l.displayElements.resize.info),l.displayElements.scrollWindow.append(l.displayElements.resize.overlay),l.reflowResizeOverlay=function(t){t=angular.element(t)[0],l.displayElements.resize.overlay.css({display:"block",left:t.offsetLeft-5+"px",top:t.offsetTop-5+"px",width:t.offsetWidth+10+"px",height:t.offsetHeight+10+"px"}),l.displayElements.resize.info.text(t.offsetWidth+" x "+t.offsetHeight)},l.showResizeOverlay=function(a){var n=w.find("body");o=function(t){function e(t){var e={x:Math.max(0,o.width+(t.clientX-o.x)),y:Math.max(0,o.height+(t.clientY-o.y))},n=void 0!==u.taResizeForceAspectRatio,i=u.taResizeMaintainAspectRatio;function r(t){return Math.round(Math.max(0,t))}(n||i&&!t.shiftKey)&&(e.x=(n=e.y/e.x)<s?e.x:e.y/s,e.y=n<s?e.x*s:e.y),(i=angular.element(a)).css("height",r(e.y)+"px"),i.css("width",r(e.x)+"px"),l.reflowResizeOverlay(a)}var o={width:parseInt(a.attr("width")),height:parseInt(a.attr("height")),x:t.clientX,y:t.clientY},s=(void 0!==o.width&&!isNaN(o.width)||(o.width=a[0].offsetWidth),void 0!==o.height&&!isNaN(o.height)||(o.height=a[0].offsetHeight),l.hidePopover(),o.height/o.width);n.on("mousemove",e),i(n,"mouseup",function(t){t.preventDefault(),t.stopPropagation(),n.off("mousemove",e),l.showPopover(a)}),t.stopPropagation(),t.preventDefault()},l.displayElements.resize.anchors[3].off("mousedown"),l.displayElements.resize.anchors[3].on("mousedown",o),l.reflowResizeOverlay(a),i(n,"click",function(){l.hideResizeOverlay()})},l.hideResizeOverlay=function(){l.displayElements.resize.anchors[3].off("mousedown",o),l.displayElements.resize.overlay.css("display","")},l.setup.htmlEditorSetup(l.displayElements.html),l.setup.textEditorSetup(l.displayElements.text),l.displayElements.html.attr({id:"taHtmlElement"+a,"ng-sh
1ow":"showHtml","ta-bind":"ta-bind","ng-model":"html","ng-model-options":e.attr("ng-model-options")}),l.displayElements.text.attr({id:"taTextElement"+a,contentEditable:"true","ta-bind":"ta-bind","ng-model":"html","ng-model-options":e.attr("ng-model-options")}),l.displayElements.scrollWindow.attr({"ng-hide":"showHtml"}),u.taDefaultWrap&&l.displayElements.text.attr("ta-default-wrap",u.taDefaultWrap),u.taUnsafeSanitizer&&(l.displayElements.text.attr("ta-unsafe-sanitizer",u.taUnsafeSanitizer),l.displayElements.html.attr("ta-unsafe-sanitizer",u.taUnsafeSanitizer)),l.displayElements.scrollWindow.append(l.displayElements.text),e.append(l.displayElements.scrollWindow),e.append(l.displayElements.html),l.displayElements.forminput.attr("name",l._name),e.append(l.displayElements.forminput),u.tabindex&&(e.removeAttr("tabindex"),l.displayElements.text.attr("tabindex",u.tabindex),l.displayElements.html.attr("tabindex",u.tabindex)),u.placeholder&&(l.displayElements.text.attr("placeholder",u.placeholder),l.displayElements.html.attr("placeholder",u.placeholder)),u.taDisabled&&(l.displayElements.text.attr("ta-readonly","disabled"),l.displayElements.html.attr("ta-readonly","disabled"),l.disabled=l.$parent.$eval(u.taDisabled),l.$parent.$watch(u.taDisabled,function(t){l.disabled=t,l.disabled?e.addClass(l.classes.disabled):e.removeClass(l.classes.disabled)})),u.taPaste&&(l._pasteHandler=function(t){return $(u.taPaste)(l.$parent,{$html:t})},l.displayElements.text.attr("ta-paste","_pasteHandler($html)")),f(l.displayElements.scrollWindow)(l),f(l.displayElements.html)(l),l.updateTaBindtaTextElement=l["updateTaBindtaTextElement"+a],l.updateTaBindtaHtmlElement=l["updateTaBindtaHtmlElement"+a],e.addClass("ta-root"),l.displayElements.scrollWindow.addClass("ta-text ta-editor "+l.classes.textEditor),l.displayElements.html.addClass("ta-html ta-editor "+l.classes.htmlEditor);var h,d,p=l._actionRunning=!1;l.startAction=function(){return l._actionRunning=!0,p=_.rangy.saveSelection(),function(){p&&_.rangy.restoreSelection(p)}},l.endAction=function(){l._actionRunning=!1,p&&((l.showHtml?l.displayElements.html:l.displayElements.text)[0].focus(),_.rangy.removeMarkers(p)),p=!1,l.updateSelectedStyles(),l.showHtml||l["updateTaBindtaTextElement"+a]()},l.displayElements.html.on("focus",d=function(){l.focussed=!0,e.addClass(l.classes.focussed),r.focus(),e.triggerHandler("focus")}),l.displayElements.text.on("focus",d),l.displayElements.html.on("blur",d=function(t){return l._actionRunning||w[0].activeElement===l.displayElements.html[0]||w[0].activeElement===l.displayElements.text[0]||(e.removeClass(l.classes.focussed),r.unfocus(),m(function(){l._bUpdateSelectedStyles=!1,e.triggerHandler("blur"),l.focussed=!1},0)),t.preventDefault(),!1}),l.displayElements.text.on("blur",d),l.displayElements.text.on("paste",function(t){e.triggerHandler("paste",t)}),l.queryFormatBlockState=function(t){return!l.showHtml&&t.toLowerCase()===w[0].queryCommandValue("formatBlock").toLowerCase()},l.queryCommandState=function(t){return l.showHtml?"":w[0].queryCommandState(t)},l.switchView=function(){l.showHtml=!l.showHtml,x.enabled(!1,l.displayElements.html),x.enabled(!1,l.displayElements.text),l.showHtml?m(function(){return x.enabled(!0,l.displayElements.html),x.enabled(!0,l.displayElements.text),l.displayElements.html[0].focus()},100):m(function(){return x.enabled(!0,l.displayElements.html),x.enabled(!0,l.displayElements.text),l.displayElements.text[0].focus()},100)},u.ngModel?(h=!0,n.$render=function(){h&&(h=!1,null==l.$parent.$eval(u.ngModel))&&t&&""!==t&&n.$setViewValue(t),l.displayElements.forminput.val(n.$viewValue),l.html=n.$viewValue||""},e.attr("required")&&(n.$validators.required=function(t,e){t=t||e;return!(!t||""===t.trim())})):(l.displayElements.forminput.val(t),l.html=t),l.$watch("html",function(t,e){t!==e&&(u.ngModel&&n.$viewValue!==t&&n.$setViewValue(t),l.displayElements.forminput.val(t))}),r=u.taTargetToolbars?b.registerEditor(l._name,l,u.taTargetToolbars.split(",")):(d=angular.element('<div text-angular-toolbar name="textAngularToolbar'+a+'">'),u.taToolbar&&d.attr("ta-toolbar",u.taToolbar),u.taToolbarClass&&d.attr("ta-toolbar-class",u.taToolbarClass),u.taToolbarGroupClass&&d.attr("ta-toolbar-group-class",u.taToolbarGroupClass),u.taToolbarButtonClass&&d.attr("ta-toolbar-button-class",u.taToolbarButtonClass),u.taToolbarActiveButtonClass&&d.attr("ta-toolbar-active-button-class",u.taToolbarActiveButtonClass),u.taFocussedClass&&d.attr("ta-focussed-class",u.taFocussedClass),e.prepend(d),f(d)(l.$parent),b.registerE
1ditor(l._name,l,["textAngularToolbar"+a])),l.$on("$destroy",function(){b.unregisterEditor(l._name),angular.element(window).off("blur")}),l.$on("ta-element-select",function(t,e){r.triggerElementSelect(t,e)&&l["reApplyOnSelectorHandlerstaTextElement"+a]()}),l.$on("ta-drop-event",function(t,e,n,i){l.displayElements.text[0].focus(),i&&i.files&&0<i.files.length?(angular.forEach(i.files,function(t){try{k.when(l.fileDropHandler(t,l.wrapSelection)||l.fileDropHandler!==l.defaultFileDropHandler&&k.when(l.defaultFileDropHandler(t,l.wrapSelection))).then(function(){l["updateTaBindtaTextElement"+a]()})}catch(t){C.error(t)}}),n.preventDefault(),n.stopPropagation()):m(function(){l["updateTaBindtaTextElement"+a]()},0)}),l._bUpdateSelectedStyles=!1,angular.element(window).on("blur",function(){l._bUpdateSelectedStyles=!1,l.focussed=!1}),l.updateSelectedStyles=function(){var t;s&&m.cancel(s),void 0!==(t=v.getSelectionElement())&&t.parentNode!==l.displayElements.text[0]?r.updateSelectedStyles(angular.element(t)):r.updateSelectedStyles(),l._bUpdateSelectedStyles&&(s=m(l.updateSelectedStyles,200))},l.displayElements.html.on("keydown",d=function(){l.focussed?l._bUpdateSelectedStyles||(l._bUpdateSelectedStyles=!0,l.$apply(function(){l.updateSelectedStyles()})):l._bUpdateSelectedStyles=!1}),l.displayElements.text.on("keydown",d),l.displayElements.html.on("keyup",d=function(){l._bUpdateSelectedStyles=!1}),l.displayElements.text.on("keyup",d),l.displayElements.html.on("keypress",d=function(t,e){e&&angular.extend(t,e),l.$apply(function(){if(r.sendKeyCommand(t))return l._bUpdateSelectedStyles||l.updateSelectedStyles(),t.preventDefault(),!1})}),l.displayElements.text.on("keypress",d),l.displayElements.html.on("mouseup",d=function(){l._bUpdateSelectedStyles=!1,l.$apply(function(){l.updateSelectedStyles()})}),l.displayElements.text.on("mouseup",d)}}}]),s.service("textAngularManager",["taToolExecuteAction","taTools","taRegisterTool",function(o,p,s){var a={},i={};return{registerEditor:function(t,h,e){if(!t||""===t)throw"textAngular Error: An editor requires a name";if(!h)throw"textAngular Error: An editor requires a scope";if(i[t])throw'textAngular Error: An Editor with name "'+t+'" already exists';var d=[];return angular.forEach(e,function(t){a[t]&&d.push(a[t])}),i[t]={scope:h,toolbars:e,_registerToolbar:function(t){0<=this.toolbars.indexOf(t.name)&&d.push(t)},editorFunctions:{disable:function(){angular.forEach(d,function(t){t.disabled=!0})},enable:function(){angular.forEach(d,function(t){t.disabled=!1})},focus:function(){angular.forEach(d,function(t){t._parent=h,t.disabled=!1,t.focussed=!0,h.focussed=!0})},unfocus:function(){angular.forEach(d,function(t){t.disabled=!0,t.focussed=!1}),h.focussed=!1},updateSelectedStyles:function(n){angular.forEach(d,function(e){angular.forEach(e.tools,function(t){t.activeState&&(e._parent=h,t.active=t.activeState(n))})})},sendKeyCommand:function(i){var r=!1;return(i.ctrlKey||i.metaKey||i.specialKey)&&angular.forEach(p,function(t,e){if(t.commandKeyCode&&(t.commandKeyCode===i.which||t.commandKeyCode===i.specialKey))for(var n=0;n<d.length;n++)if(void 0!==d[n].tools[e]){o.call(d[n].tools[e],h),r=!0;break}}),r},triggerElementSelect:function(t,n){function i(t,e){for(var n=!0,i=0;i<e.length;i++)n=n&&t.attr(e[i]);return n}var r=[],o={},e=!1,s=(n=angular.element(n),!1);if(angular.forEach(p,function(t,e){t.onElementSelect&&t.onElementSelect.element&&t.onElementSelect.element.toLowerCase()===n[0].tagName.toLowerCase()&&(!t.onElementSelect.filter||t.onElementSelect.filter(n))&&(s=s||angular.isArray(t.onElementSelect.onlyWithAttrs)&&i(n,t.onElementSelect.onlyWithAttrs),t.onElementSelect.onlyWithAttrs&&!i(n,t.onElementSelect.onlyWithAttrs)||(o[e]=t))}),s?(angular.forEach(o,function(t,e){t.onElementSelect.onlyWithAttrs&&i(n,t.onElementSelect.onlyWithAttrs)&&r.push({name:e,tool:t})}),r.sort(function(t,e){return e.tool.onElementSelect.onlyWithAttrs.length-t.tool.onElementSelect.onlyWithAttrs.length})):angular.forEach(o,function(t,e){r.push({name:e,tool:t})}),0<r.length)for(var a=0;a<r.length;a++){for(var l=r[a].tool,u=r[a].name,c=0;c<d.length;
vendor: 2,267 bytes, line 1
1c++)if(void 0!==d[c].tools[u]){l.onElementSelect.action.call(d[c].tools[u],t,n,h),e=!0;break}if(e)break}return e}}},i[t].editorFunctions},retrieveEditor:function(t){return i[t]},unregisterEditor:function(t){delete i[t]},registerToolbar:function(e){if(!e)throw"textAngular Error: A toolbar requires a scope";if(!e.name||""===e.name)throw"textAngular Error: A toolbar requires a name";if(a[e.name])throw'textAngular Error: A toolbar with name "'+e.name+'" already exists';a[e.name]=e,angular.forEach(i,function(t){t._registerToolbar(e)})},retrieveToolbar:function(t){return a[t]},retrieveToolbarsViaEditor:function(t){var e=[],n=this;return angular.forEach(this.retrieveEditor(t).toolbars,function(t){e.push(n.retrieveToolbar(t))}),e},unregisterToolbar:function(t){delete a[t]},updateToolsDisplay:function(t){var n=this;angular.forEach(t,function(t,e){n.updateToolDisplay(e,t)})},resetToolsDisplay:function(){var n=this;angular.forEach(p,function(t,e){n.resetToolDisplay(e)})},updateToolDisplay:function(n,i){var r=this;angular.forEach(a,function(t,e){r.updateToolbarToolDisplay(e,n,i)})},resetToolDisplay:function(n){var i=this;angular.forEach(a,function(t,e){i.resetToolbarToolDisplay(e,n)})},updateToolbarToolDisplay:function(t,e,n){if(!a[t])throw'textAngular Error: No Toolbar with name "'+t+'" exists';a[t].updateToolDisplay(e,n)},resetToolbarToolDisplay:function(t,e){if(!a[t])throw'textAngular Error: No Toolbar with name "'+t+'" exists';a[t].updateToolDisplay(e,p[e],!0)},removeTool:function(r){delete p[r],angular.forEach(a,function(t){delete t.tools[r];for(var e=0;e<t.toolbar.length;e++){for(var n,i=0;i<t.toolbar[e].length;i++){if(t.toolbar[e][i]===r){n={group:e,index:i};break}if(void 0!==n)break}void 0!==n&&(t.toolbar[n.group].slice(n.index,1),t._$element.children().eq(n.group).children().eq(n.index).remove())}})},addTool:function(e,n,i,r){s(e,n),angular.forEach(a,function(t){t.addTool(e,n,i,r)})},addToolToToolbar:function(t,e,n,i,r){s(t,e),a[n].addTool(t,e,i,r)},refreshEditor:function(t){if(!i[t])throw'textAngular Error: No Editor with name "'+t+'" exists';i[t].scope.updateTaBindtaTextElement(),i[t].scope.$$phase||i[t].scope.$digest()},sendKeyCommand:function(e,n){angular.forEach(i,function(t){if(t.editorFunctions.sendKeyCommand(n))return e._b
1UpdateSelectedStyles||e.updateSelectedStyles(),n.preventDefault(),!1})}}}]),s.directive("textAngularToolbar",["$compile","textAngularManager","taOptions","taTools","taToolExecuteAction","$window",function(u,e,n,c,i,r){return{scope:{name:"@"},restrict:"EA",link:function(o,s,t){if(!o.name||""===o.name)throw"textAngular Error: A toolbar requires a name";angular.extend(o,angular.copy(n)),t.taToolbar&&(o.toolbar=o.$parent.$eval(t.taToolbar)),t.taToolbarClass&&(o.classes.toolbar=t.taToolbarClass),t.taToolbarGroupClass&&(o.classes.toolbarGroup=t.taToolbarGroupClass),t.taToolbarButtonClass&&(o.classes.toolbarButton=t.taToolbarButtonClass),t.taToolbarActiveButtonClass&&(o.classes.toolbarButtonActive=t.taToolbarActiveButtonClass),t.taFocussedClass&&(o.classes.focussed=t.taFocussedClass),o.disabled=!0,o.focussed=!1,(o._$element=s)[0].innerHTML="",s.addClass("ta-toolbar "+o.classes.toolbar),o.$watch("focussed",function(){o.focussed?s.addClass(o.classes.focussed):s.removeClass(o.classes.focussed)});function a(t,e){var n,i,r=t&&t.display?angular.element(t.display):angular.element("<button type='button'>");return t&&t.class?r.addClass(t.class):r.addClass(o.classes.toolbarButton),r.attr("name",e.name),r.attr("ta-button","ta-button"),r.attr("ng-disabled","isDisabled()"),r.attr("tabindex","-1"),r.attr("ng-click","executeAction()"),r.attr("ng-class","displayActiveToolClass(active)"),t&&t.tooltiptext&&r.attr("title",t.tooltiptext),!t||t.display||e._display||(r[0].innerHTML="",t.buttontext&&(r[0].innerHTML=t.buttontext),t.iconclass&&(n=angular.element("<i>"),i=r[0].innerHTML,n.addClass(t.iconclass),r[0].innerHTML="",r.append(n),i)&&""!==i&&r.append("&nbsp;"+i)),e._lastToolDefinition=angular.copy(t),u(r)(e)}o.tools={},o._parent={disabled:!0,showHtml:!1,queryFormatBlockState:function(){return!1},queryCommandState:function(){return!1}};var l={$window:r,$editor:function(){return o._parent},isDisabled:function(){return"function"!=typeof this.$eval("disabled")&&this.$eval("disabled")||this.$eval("disabled()")||"html"!==this.name&&this.$editor().showHtml||this.$parent.disabled||this.$editor().disabled},displayActiveToolClass:function(t){return t?o.classes.toolbarButtonActive:""},executeAction:i};angular.forEach(o.toolbar,function(t){var e=angular.element("<div>");e.addClass(o.classes.toolbarGroup),angular.forEach(t,function(t){o.tools[t]=angular.extend(o.$new(!0),c[t],l,{name:t}),o.tools[t].$element=a(c[t],o.tools[t]),e.append(o.tools[t].$element)}),s.append(e)}),o.updateToolDisplay=function(t,e,n){var i=o.tools[t];if(i){if(null===(e=i._lastToolDefinition&&!n?angular.extend({},i._lastToolDefinition,e):e).buttontext&&null===e.iconclass&&null===e.display)throw'textAngular Error: Tool Definition for updating "'+t+'" does not have a valid display/iconclass/buttontext value';null===e.buttontext&&delete e.buttontext,null===e.iconclass&&delete e.iconclass,null===e.display&&delete e.display;n=a(e,i);i.$element.replaceWith(n),i.$element=n}},o.addTool=function(t,e,n,i){var r;o.tools[t]=angular.extend(o.$new(!0),c[t],l,{name:t}),o.tools[t].$element=a(c[t],o.tools[t]),void 0===n&&(n=o.toolbar.length-1),r=angular.element(s.children()[n]),void 0===i?(r.append(o.tools[t].$element),o.toolbar[n][o.toolbar[n].length-1]=t):(r.children().eq(i).after(o.tools[t].$element),o.toolbar[n][i]=t)},e.registerToolbar(o),o.$on("$destroy",function(){e.unregisterToolbar(o.name)})}}}])}(),angular.module("textAngularSetup",[]).value("taOptions",{forceTextAngularSanitize:!1,keyMappings:[],toolbar:[["h1","h2","h3","h4","h5","h6","p","pre","quote"],["bold","italics","underline","strikeThrough","ul","ol","redo","undo","clear"],["justifyLeft","justifyCenter","justifyRight","justifyFull","indent","outdent"],["html","insertImage","insertLink","insertVideo","wordcount","charcount"]],classes:{focussed:"focussed",toolbar:"btn-toolbar",toolbarGroup:"btn-group",toolbarButton:"btn btn-default",toolbarButtonActive:"active",disabled:"disabled",textEditor:"form-control",htmlEditor:"form-control"},defaultTagAttributes:{a:{target:""}},setup:{textEditorSetup:function(t){},htmlEditorSetup:function(t){}}
1,defaultFileDropHandler:function(t,e){var n=new FileReader;return"image"===t.type.substring(0,5)&&(n.onload=function(){""!==n.result&&e("insertImage",n.result,!0)},n.readAsDataURL(t),!0)}}).value("taSelectableElements",["a","img"]).value("taCustomRenderers",[{selector:"img",customAttribute:"ta-insert-video",renderLogic:function(t){var e=angular.element("<iframe></iframe>"),n=t.prop("attributes");angular.forEach(n,function(t){e.attr(t.name,t.value)}),e.attr("src",e.attr("ta-insert-video")),t.replaceWith(e)}}]).value("taTranslations",{html:{tooltip:"Toggle html / Rich Text"},heading:{tooltip:"Heading "},p:{tooltip:"Paragraph"},pre:{tooltip:"Preformatted text"},ul:{tooltip:"Unordered List"},ol:{tooltip:"Ordered List"},quote:{tooltip:"Quote/unquote selection or paragraph"},undo:{tooltip:"Undo"},redo:{tooltip:"Redo"},bold:{tooltip:"Bold"},italic:{tooltip:"Italic"},underline:{tooltip:"Underline"},strikeThrough:{tooltip:"Strikethrough"},justifyLeft:{tooltip:"Align text left"},justifyRight:{tooltip:"Align text right"},justifyFull:{tooltip:"Justify text"},justifyCenter:{tooltip:"Center"},indent:{tooltip:"Increase indent"},outdent:{tooltip:"Decrease indent"},clear:{tooltip:"Clear formatting"},insertImage:{dialogPrompt:"Please enter an image URL to insert",tooltip:"Insert image",hotkey:"the - possibly language dependent hotkey ... for some future implementation"},insertVideo:{tooltip:"Insert video",dialogPrompt:"Please enter a youtube URL to embed"},insertLink:{tooltip:"Insert / edit link",dialogPrompt:"Please enter a URL to insert"},editLink:{reLinkButton:{tooltip:"Relink"},unLinkButton:{tooltip:"Unlink"},targetToggle:{buttontext:"Open in New Window"}},wordcount:{tooltip:"Display words Count"},charcount:{tooltip:"Display characters Count"}}).factory("taToolFunctions",["$window","taTranslations",function(s,a){return{imgOnSelectAction:function(t,e,n){function i(){n.updateTaBindtaTextElement(),n.hidePopover()}t.preventDefault(),n.displayElements.popover.css("width","375px");var t=n.displayElements.popoverContainer,r=(t.empty(),angular.element('<div class="btn-group" style="padding-right: 6px;">')),o=angular.element('<button type="button" class="btn btn-default btn-sm btn-small" unselectable="on" tabindex="-1">100% </button>'),s=(o.on("click",function(t){t.preventDefault(),e.css({width:"100%",height:""}),i()}),angular.element('<button type="button" class="btn btn-default btn-sm btn-small" unselectable="on" tabindex="-1">50% </button>')),a=(s.on("click",function(t){t.preventDefault(),e.css({width:"50%",height:""}),i()}),angular.element('<button type="button" class="btn btn-default btn-sm btn-small" unselectable="on" tabindex="-1">25% </button>')),l=(a.on("click",function(t){t.preventDefault(),e.css({width:"25%",height:""}),i()}),angular.element('<button type="button" class="btn btn-default btn-sm btn-small" unselectable="on" tabindex="-1">Reset</button>')),o=(l.on("click",function(t){t.preventDefault(),e.css({width:"",height:""}),i()}),r.append(o),r.append(s),r.append(a),r.append(l),t.append(r),r=angular.element('<div class="btn-group" style="padding-right: 6px;">'),angular.element('<button type="button" class="btn btn-default btn-sm btn-small" unselectable="on" tabindex="-1"><i class="fa fa-align-left"></i></button>')),s=(o.on("click",function(t){t.preventDefault(),e.css("float","left"),e.css("cssFloat","left"),e.css("styleFloat","left"),i()}),angular.element('<button type="button" class="btn btn-default btn-sm btn-small" unselectable="on" tabindex="-1"><i class="fa fa-align-right"></i></button>')),a=(s.on("click",function(t){t.preventDefault(),e.css("float","right"),e.css("cssFloat","right"),e.css("styleFloat","right"),i()}),angular.element('<button type="button" class="btn btn-default btn-sm btn-small" unselectable="on" tabindex="-1"><i class="fa fa-align-justify"></i></button>')),l=(a.on("click",function(t){t.preventDefault(),e.css("float",""),e.css("cssFloat",""),e.css("styleFloat",""),i()}),r.append(o),r.append(a),r.append(s),t.append(r),r=angular.element('<div class="btn-group">'),angular.element('<button type="button" class="btn btn-default btn-sm btn-small" unselectable="on" tabindex="-1">
1<i class="fa fa-trash-o"></i></button>'));l.on("click",function(t){t.preventDefault(),e.remove(),i()}),r.append(l),t.append(r),n.showPopover(e),n.showResizeOverlay(e)},aOnSelectAction:function(t,e,n){t.preventDefault(),n.displayElements.popover.css("width","436px");var t=n.displayElements.popoverContainer,i=(t.empty(),t.css("line-height","28px"),angular.element('<a href="'+e.attr("href")+'" target="_blank">'+e.attr("href")+"</a>")),i=(i.css({display:"inline-block","max-width":"200px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap","vertical-align":"middle"}),t.append(i),angular.element('<div class="btn-group pull-right">')),r=angular.element('<button type="button" class="btn btn-default btn-sm btn-small" tabindex="-1" unselectable="on" title="'+a.editLink.reLinkButton.tooltip+'"><i class="fa fa-edit icon-edit"></i></button>'),r=(r.on("click",function(t){t.preventDefault();t=s.prompt(a.insertLink.dialogPrompt,e.attr("href"));t&&""!==t&&"http://"!==t&&(e.attr("href",t),n.updateTaBindtaTextElement()),n.hidePopover()}),i.append(r),angular.element('<button type="button" class="btn btn-default btn-sm btn-small" tabindex="-1" unselectable="on" title="'+a.editLink.unLinkButton.tooltip+'"><i class="fa fa-unlink icon-unlink"></i></button>')),o=(r.on("click",function(t){t.preventDefault(),e.replaceWith(e.contents()),n.updateTaBindtaTextElement(),n.hidePopover()}),i.append(r),angular.element('<button type="button" class="btn btn-default btn-sm btn-small" tabindex="-1" unselectable="on">'+a.editLink.targetToggle.buttontext+"</button>"));"_blank"===e.attr("target")&&o.addClass("active"),o.on("click",function(t){t.preventDefault(),e.attr("target","_blank"===e.attr("target")?"":"_blank"),o.toggleClass("active"),n.updateTaBindtaTextElement()}),i.append(o),t.append(i),n.showPopover(e)},extractYoutubeVideoId:function(t){t=t.match(/(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/i);return t&&t[1]||null}}}]).run(["taRegisterTool","$window","taTranslations","taSelection","taToolFunctions","$sanitize","taOptions",function(n,e,i,m,r,t,o){var s={};if(t("",s),!0===o.forceTextAngularSanitize&&"taSanitize"!==s.version)throw angular.$$minErr("textAngular")("textAngularSetup","The textAngular-sanitize provider has been replaced by another -- have you included angular-sanitize by mistake?");n("html",{iconclass:"fa fa-code",tooltiptext:i.html.tooltip,action:function(){this.$editor().switchView()},activeState:function(){return this.$editor().showHtml}});function a(){return this.$editor().wrapSelection("formatBlock","<"+this.name.toUpperCase()+">")}angular.forEach(["h1","h2","h3","h4","h5","h6"],function(t){var e;n(t.toLowerCase(),{buttontext:t.toUpperCase(),tooltiptext:i.heading.tooltip+t.charAt(1),action:a,activeState:(e=t.toLowerCase(),function(){return this.$editor().queryFormatBlockState(e)})})}),n("p",{buttontext:"P",tooltiptext:i.p.tooltip,action:function(){return this.$editor().wrapSelection("formatBlock","<P>")},activeState:function(){return this.$editor().queryFormatBlockState("p")}}),n("pre",{buttontext:"pre",tooltiptext:i.pre.tooltip,action:function(){return this.$editor().wrapSelection("formatBlock","<PRE>")},activeState:function(){return this.$editor().queryFormatBlockState("pre")}}),n("ul",{iconclass:"fa fa-list-ul",tooltiptext:i.ul.tooltip,action:function(){return this.$editor().wrapSelection("insertUnorderedList",null)},activeState:function(){return this.$editor().queryCommandState("insertUnorderedList")}}),n("ol",{iconclass:"fa fa-list-ol",tooltiptext:i.ol.tooltip,action:function(){return this.$editor().wrapSelection("insertOrderedList",null)},activeState:function(){return this.$editor().queryCommandState("insertOrderedList")}}),n("quote",{iconclass:"fa fa-quote-right",tooltiptext:i.quote.tooltip,action:function(){return this.$editor().wrapSelection("formatBlock","<BLOCKQUOTE>")},activeState:function(){return this.$editor().queryFormatBlockState("blockquote")}}),n("undo",{iconclass:"fa fa-undo",tooltiptext:i.undo.tooltip,action:function(){return this.$editor().wrapSelection("undo",null)}}),n("redo",{iconclass:"fa fa-repeat",tooltiptext:i.redo.tooltip,action:function(){return this.$editor().wrapSelection("redo",null)}}),n("bold",{iconclass:"fa fa-bold",tooltiptext:i.bold.tooltip,action:function(){return this.$editor().wrapSelection("bold",null)},activeState:function(){return this.$editor().queryCommandState("bold")},commandKeyCode:98}),n("justifyLeft",{iconclass:"fa fa-align-left",tooltiptext:i.justifyLeft.tooltip,action:function(){return this.$editor().wrapSelection("justifyLeft",null)},activeState:function(t){var e;return(!t||"#document"!==t.nodeName)&&(e=!1,(e=t?"left"===t.css("text-align")||"left"===t.attr("align")||"right"!==t.css("text-align")&&"center"!==t.css("text-align")&&"justify"!==t.css("text-align")&&!this.$editor().queryCommandState("justifyRight")&&!this.$editor().queryCommandState("justifyCenter")&&!this.$editor().queryCommandState("justifyFull"):e)||this.$editor().queryCommandState("justifyLeft"))}}),n("justifyRight",{iconclass:"fa fa-align-right",tooltiptext:i.justifyRight.tooltip,action:function(){return this.$editor().wrapSelection("justifyRight",null)},activeState:function(t){var e;return(!t||"#document"!==t.nodeName)&&(e=!1,(e=t?"right"===t.css("text-align"):e)||this.$editor().queryCommandState("justifyRight"))}}),n("justifyFull",{iconclass:"fa fa-align-justify",tooltiptext:i.justifyFull.tooltip,action:function(){return this.$editor().wrapSelection("justifyFull",null)},activeState:function(t){var e=!1;return e=(e=t?"justify"===t.css("text-align"):e)||this.$editor().queryCommandState("justifyFull")}}),n("justifyCenter",{iconclass:"fa fa-align-center",tooltiptext:i.justifyCenter.tooltip,action:function(){return this.$editor().wrapSelection("justifyCenter",null)},activeState:function(t){var e;return(!t||"#document"!==t.nodeName)&&(e=!1,(e=t?"center"===t.css("text-align"):e)||this.$editor().queryCommandState("justifyCenter"))}}),n("indent",{iconclass:"fa fa-indent",tooltiptext:i.indent.tooltip,action:function(){return this.$editor().wrapSelection("indent",null)},activeState:function(){return this.$editor().queryFormatBlockState("blockquote")},commandKeyCode:"TabKey"}
1),n("outdent",{iconclass:"fa fa-outdent",tooltiptext:i.outdent.tooltip,action:function(){return this.$editor().wrapSelection("outdent",null)},activeState:function(){return!1},commandKeyCode:"ShiftTabKey"}),n("italics",{iconclass:"fa fa-italic",tooltiptext:i.italic.tooltip,action:function(){return this.$editor().wrapSelection("italic",null)},activeState:function(){return this.$editor().queryCommandState("italic")},commandKeyCode:105}),n("underline",{iconclass:"fa fa-underline",tooltiptext:i.underline.tooltip,action:function(){return this.$editor().wrapSelection("underline",null)},activeState:function(){return this.$editor().queryCommandState("underline")},commandKeyCode:117}),n("strikeThrough",{iconclass:"fa fa-strikethrough",tooltiptext:i.strikeThrough.tooltip,action:function(){return this.$editor().wrapSelection("strikeThrough",null)},activeState:function(){return document.queryCommandState("strikeThrough")}}),n("clear",{iconclass:"fa fa-ban",tooltiptext:i.clear.tooltip,action:function(t,e){function n(t){var n=t=angular.element(t);angular.forEach(t.children(),function(t){var e=angular.element("<p></p>");e.html(angular.element(t).html()),n.after(e),n=e}),t.remove()}this.$editor().wrapSelection("removeFormat",null);var i=angular.element(m.getSelectionElement());if(angular.forEach(i.find("ul"),n),angular.forEach(i.find("ol"),n),"li"===i[0].tagName.toLowerCase()){var r=i[0].parentNode.childNodes,o=[],s=[],a=!1;for(d=0;d<r.length;d++)r[d]===i[0]?a=!0:(a?s:o).push(r[d]);var l=angular.element(i[0].parentNode),u=angular.element("<p></p>");if(u.html(angular.element(i[0]).html()),0===o.length||0===s.length)0===s.length?l.after(u):l[0].parentNode.insertBefore(u[0],l[0]),(0===o.length&&0===s.length?l:angular.element(i[0])).remove();else{for(var c=angular.element("<"+l[0].tagName+"></"+l[0].tagName+">"),h=angular.element("<"+l[0].tagName+"></"+l[0].tagName+">"),d=0;d<o.length;d++)c.append(angular.element(o[d]));for(d=0;d<s.length;d++)h.append(angular.element(s[d]));l.after(h),l.after(u),l.after(c),l.remove()}m.setSelectionToElementEnd(u[0])}var p=this.$editor(),f=function(t){(t=angular.element(t))[0]!==p.displayElements.text[0]&&t.removeAttr("class"),angular.forEach(t.children(),f)};angular.forEach(i,f),"li"!==i[0].tagName.toLowerCase()&&"ol"!==i[0].tagName.toLowerCase()&&"ul"!==i[0].tagName.toLowerCase()&&this.$editor().wrapSelection("formatBlock","default"),e()}}),n("insertImage",{iconclass:"far fa-image",tooltiptext:i.insertImage.tooltip,action:function(){var t=e.prompt(i.insertImage.dialogPrompt,"http://");if(t&&""!==t&&"http://"!==t)return this.$editor().wrapSelection("insertImage",t,!0)},onElementSelect:{element:"img",action:r.imgOnSelectAction}}),n("insertVideo",{iconclass:"fa fa-youtube",tooltiptext:i.insertVideo.tooltip,action:function(){var t=e.prompt(i.insertVideo.dialogPrompt,"https://");if(t&&""!==t&&"https://"!==t&&(videoId=r.extractYoutubeVideoId(t)))return t="https://www.youtube.com/embed/"+videoId,t='<img class="ta-insert-video" src="https://img.youtube.com/vi/'+videoId+'/hqdefault.jpg" ta-insert-video="'+t+'" contenteditable="false" allowfullscreen="true" frameborder="0" />',this.$editor().wrapSelection("insertHTML",t,!0)},onElementSelect:{element:"img",onlyWithAttrs:["ta-insert-video"],action:r.imgOnSelectAction}}),n("insertLink",{tooltiptext:i.insertLink.tooltip,iconclass:"fa fa-link",action:function(){var t=e.prompt(i.insertLink.dialogPrompt,"http://");if(t&&""!==t&&"http://"!==t)return this.$editor().wrapSelection("createLink",t,!0)},activeState:function(t){return!!t&&"A"===t[0].tagName},onElementSelect:{element:"a",action:r.aOnSelectAction}}),n("wordcount",{display:'<div id="toolbarWC" style="display:block; min-width:100px;">Words: <span ng-bind="wordcount"></span></div>',disabled:!0,wordcount:0,activeState:function(){var t=this.$editor().displayElements.text[0].innerHTML||"",e=0;return""!==t.replace(/\s*<[^>]*?>\s*/g,"")&&(e=t.replace(/<\/?(b|i|em|strong|span|u|strikethrough|a|img|small|sub|sup|label)( [^>*?])?>/gi,"").replace(/(<[^>]*?>\s*<[^>]*?>)/gi," ").replace(/(<[^>]*?>)/gi,"").replace(/\s+/gi," ").match(/\S+/g).length),this.wordcount=e,this.$editor().wordcount=e,!1}}),n("charcount",{display:'<div id="toolbarCC" style="display:block; min-width:120px;">Characters: <span ng-bind="charcount"></span></div>',disabled:!0,charcount:0,activeState:function(){var t=this.$editor().displayElements.text,t=(t[0].innerText||t[0].textContent).replace(/(\r\n|\n|\r)/gm,"").replace(/^\s+/g," ").replace(/\s+$/g," ").length;return this.charcount=t,this.$editor().charcount=t,!1}})}]),angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(p,f,m,t){var g=t.has("$animateCss")?t.get("$animateCss"):null;return{link:function(e,n,t){var i=m(t.expanding),r=m(t.expanded),o=m(t.collapsing),s=m(t.collapsed),a=!1,l={},u={};function c(t){return a?{width:t.scrollWidth+"px"}:{height:t.scrollHeight+"px"}}function h(){n.removeClass("collapsing").addClass("collapse").css(l),r(e)}function d(){n.css(u),n.removeClass("collapsing").addClass("collapse"),s(e)}u=(a=!!("horizontal"in t))?(l={width:""},{width:"0"}):(l={height:""},{height:"0"}),e.$eval(t.uibCollapse)||n.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(l),e.$watch(t.uibCollapse,function(t){t?n.hasClass("collapse")||n.hasClass("in")?f.resolve(o(e)).then(function(){n.css(c(n[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),g?g(n,{removeClass:"in",to:u}).start().finally(d):p.removeClass(n,"in",{to:u}).then(d)},angular.noop):d():n.hasClass("collapse")&&n.hasClass("in")||f.resolve(i(e)).then(function(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),g?g(n,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:c(n[0])}).start().finally(h):p.addClass(n,"in",{css:{overflow:"hidden"},to:c(n[0])}).then(h)},angular.noop)})}}}]),angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(t,e,n){n.$observe("disabled",function(t){n.$set("tabindex",t?-1:null)})}}}),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(t,n,i){this.groups=[],this.closeOthers=function(e){(angular.isDefined(n.closeOthers)?t.$eval(n.closeOthers):i.closeOthers)&&angular.forEach(this.groups,function(t){t!==e&&(t.isOpen=!1)})},this.addGroup=function(e){var n=this;this.groups.push(e),e.$on("$destroy",function(t){n.removeGroup(e)})},this.removeGroup=function(t){t=this.groups.indexOf(t);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(t,e){return e.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(t){this.heading=t}}
1,link:function(e,n,t,i){n.addClass("panel"),i.addGroup(e),e.openClass=t.openClass||"panel-open",e.panelClass=t.panelClass||"panel-default",e.$watch("isOpen",function(t){n.toggleClass(e.openClass,!!t),t&&i.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)};t="accordiongroup-"+e.$id+"-"+Math.floor(1e4*Math.random());e.headingId=t+"-tab",e.panelId=t+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(t,e,n,i,r){i.setHeading(r(t,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:"^uibAccordionGroup",link:function(t,n,e,i){t.$watch(function(){return i[e.uibAccordionTransclude]},function(t){var e;t&&((e=angular.element(n[0].querySelector("uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"))).html(""),e.append(t))})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(t,e,n,i,r){t.closeable=!!n.close,e.addClass("alert"),n.$set("role","alert"),t.closeable&&e.addClass("alert-dismissible");e=angular.isDefined(n.dismissOnTimeout)?i(n.dismissOnTimeout)(t.$parent):null;e&&r(function(){t.close()},parseInt(e,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(t,e){return e.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(t){this.activeClass=t.activeClass||"active",this.toggleEvent=t.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(s){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(e,n,i,t){var r=t[0],o=t[1],t=s(i.uibUncheckable);n.find("input").css({display:"none"}),o.$render=function(){n.toggleClass(r.activeClass,angular.equals(o.$modelValue,e.$eval(i.uibBtnRadio)))},n.on(r.toggleEvent,function(){var t;i.disabled||(t=n.hasClass(r.activeClass))&&!angular.isDefined(i.uncheckable)||e.$apply(function(){o.$setViewValue(t?null:e.$eval(i.uibBtnRadio)),o.$render()})}),i.uibUncheckable&&e.$watch(t,function(t){i.$set("uncheckable",t?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,t,e,i){var r=i[0],o=i[1];function s(){return a(e.btnCheckboxTrue,!0)}function a(t,e){return angular.isDefined(t)?n.$eval(t):e}t.find("input").css({display:"none"}),o.$render=function(){t.toggleClass(r.activeClass,angular.equals(o.$modelValue,s()))},t.on(r.toggleEvent,function(){e.disabled||n.$apply(function(){o.$setViewValue(t.hasClass(r.activeClass)?a(e.btnCheckboxFalse,!1):s()),o.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(i,r,e,t,o){var n,s,a=this,l=a.slides=i.slides=[],u="uib-slideDirection",c=i.active,h=!1;function d(t){for(var e=0;e<l.length;e++)l[e].slide.active=e===t}function p(t){for(var e=0;e<l.length;e++)if(l[e].slide===t)return e}function f(){n&&(e.cancel(n),n=null)}function m(){f();var t=+i.interval;!isNaN(t)&&0<t&&(n=e(g,t))}function g(){var t=+i.interval;s&&!isNaN(t)&&0<t&&l.length?i.next():i.pause()}r.addClass("carousel"),a.addSlide=function(t,e){l.push({slide:t,element:e}),l.sort(function(t,e){return+t.slide.index-+e.slide.index}),t.index!==i.active&&(1!==l.length||angular.isNumber(i.active))||(i.$currentTransition&&(i.$currentTransition=null),c=t.index,i.active=t.index,d(c),a.select(l[p(t)]),1!==l.length)||i.play()},a.getCurrentIndex=function(){for(var t=0;t<l.length;t++)if(l[t].slide.index===c)return t},a.next=i.next=function(){var t=(a.getCurrentIndex()+1)%l.length;if(0!=t||!i.noWrap())return a.select(l[t],"next");i.pause()},a.prev=i.prev=function(){var t=a.getCurrentIndex()-1<0?l.length-1:a.getCurrentIndex()-1;if(!i.noWrap()||t!=l.length-1)return a.select(l[t],"prev");i.pause()},a.removeSlide=function(t){t=p(t);l.splice(t,1),0<l.length&&c===t?t>=l.length?(c=l.length-1,d(i.active=c),a.select(l[l.length-1])):(c=t,d(i.active=c),a.select(l[t])):t<c&&(c--,i.active=c),0===l.length&&(c=null,i.active=null)},a.select=i.select=function(t,e){var n=p(t.slide);void 0===e&&(e=n>a.getCurrentIndex()?"next":"prev"),t.slide.index===c||i.$currentTransition||(t=t.
1slide,n=n,e=e,h)||(angular.extend(t,{direction:e}),angular.extend(l[c].slide||{},{direction:e}),o.enabled(r)&&!i.$currentTransition&&l[n].element&&1<a.slides.length&&(l[n].element.data(u,t.direction),e=a.getCurrentIndex(),angular.isNumber(e)&&l[e].element&&l[e].element.data(u,t.direction),i.$currentTransition=!0,o.on("addClass",l[n].element,function(t,e){"close"===e&&(i.$currentTransition=null,o.off("addClass",t))})),i.active=t.index,c=t.index,d(n),m())},i.indexOfSlide=function(t){return+t.slide.index},i.isActive=function(t){return i.active===t.slide.index},i.isPrevDisabled=function(){return 0===i.active&&i.noWrap()},i.isNextDisabled=function(){return i.active===l.length-1&&i.noWrap()},i.pause=function(){i.noPause||(s=!1,f())},i.play=function(){s||(s=!0,m())},r.on("mouseenter",i.pause),r.on("mouseleave",i.play),i.$on("$destroy",function(){h=!0,f()}),i.$watch("noTransition",function(t){o.enabled(r,!t)}),i.$watch("interval",m),i.$watchCollection("slides",function(t){t.length||(i.$currentTransition=null)}),i.$watch("active",function(t){if(angular.isNumber(t)&&c!==t){for(var e=0;e<l.length;e++)if(l[e].slide.index===t){t=e;break}l[t]&&(d(t),a.select(l[t]),c=t)}})}]).directive("uibCarousel",function(){return{transclude:!0,controller:"UibCarouselController",controllerAs:"carousel",restrict:"A",templateUrl:function(t,e){return e.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",["$animate",function(r){return{require:"^uibCarousel",restrict:"A",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(t,e,n,i){e.addClass("item"),i.addSlide(t,e),t.$on("$destroy",function(){i.removeSlide(t)}),t.$watch("active",function(t){r[t?"addClass":"removeClass"](e,"active")})}}}]).animation(".item",["$animateCss",function(o){var s="uib-slideDirection";function a(t,e,n){t.removeClass(e),n&&n()}return{beforeAddClass:function(t,e,n){var i,r;if("active"===e)return e=t.data(s),r=a.bind(this,t,(i="next"===e?"left":"right")+" "+e,n),t.addClass(e),o(t,{addClass:i}).start().done(r),function(){};n()},beforeRemoveClass:function(t,e,n){var i;if("active"===e)return e="next"===t.data(s)?"left":"right",i=a.bind(this,t,e,n),o(t,{addClass:e}).start().done(i),function(){};n()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter","filterFilter",function(d,p,n,f,e){var m,g,v=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function i(t){return e(g,{key:t},!0)[0]}function r(t){for(var e,n,i=[],r=0;r<t.length;)if(angular.isNumber(n)){if("'"===t.charAt(r))(r+1>=t.length||"'"!==t.charAt(r+1))&&(i.push(function(t,e,n){return function(){return t.substr(e+1,n-e-1)}}(t,n,r)),n=null);else if(r===t.length)for(;n<t.length;)e=o(t,n),i.push(e),n=e.endIdx;r++}else"'"===t.charAt(r)?(n=r,r++):(e=o(t,r),i.push(e.parser),r=e.endIdx);return i}function o(t,e){for(var n,i=t.substr(e),r=0;r<g.length;r++)if(new RegExp("^"+g[r].key).test(i))return{endIdx:e+(n=g[r]).key.length,parser:n.formatter};return{endIdx:e+1,parser:function(){return i.charAt(0)}}}function s(t){return parseInt(t,10)}function a(t,e){t=t.replace(/:/g,"");t=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(t)?e:t}function l(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function u(t,e,n){n=n?-1:1;var i=t.getTimezoneOffset();return l(t,n*(a(e,i)-i))}this.init=function(){m=p.id,this.parsers={},this.formatters={},g=[{key:"yyyy",regex:"\\d{4}",apply:function(t){this.year=+t},formatter:function(t){var e=new Date;return e.setFullYear(Math.abs(t.getFullYear())),n(e,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(t){this.year=(t=+t)<69?t+2e3:t+1900},formatter:function(t){var e=new Date;return e.setFullYear(Math.abs(t.getFullYear())),n(e,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(t){this.year=+t},formatter:function(t){var e=new Date;return e.setFullYear(Math.abs(t.getFullYear())),n(e,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(t){this.month=t-1},formatter:function(t){var e=t.getMonth();return/^[0-9]$/.test(e)?n(t,"MM"):n(t,"M")}}
1,{key:"MMMM",regex:p.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=p.DATETIME_FORMATS.MONTH.indexOf(t)},formatter:function(t){return n(t,"MMMM")}},{key:"MMM",regex:p.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=p.DATETIME_FORMATS.SHORTMONTH.indexOf(t)},formatter:function(t){return n(t,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(t){this.month=t-1},formatter:function(t){return n(t,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(t){this.month=t-1},formatter:function(t){return n(t,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t},formatter:function(t){var e=t.getDate();return/^[1-9]$/.test(e)?n(t,"dd"):n(t,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t},formatter:function(t){return n(t,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t},formatter:function(t){return n(t,"d")}},{key:"EEEE",regex:p.DATETIME_FORMATS.DAY.join("|"),formatter:function(t){return n(t,"EEEE")}},{key:"EEE",regex:p.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(t){return n(t,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(t){this.minutes=+t},formatter:function(t){return n(t,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(t){this.minutes=+t},formatter:function(t){return n(t,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(t){this.milliseconds=+t},formatter:function(t){return n(t,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(t){this.seconds=+t},formatter:function(t){return n(t,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(t){this.seconds=+t},formatter:function(t){return n(t,"s")}},{key:"a",regex:p.DATETIME_FORMATS.AMPMS.join("|"),apply:function(t){12===this.hours&&(this.hours=0),"PM"===t&&(this.hours+=12)},formatter:function(t){return n(t,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(t){var t=t.match(/([+-])(\d{2})(\d{2})/),e=t[1],n=t[2],t=t[3];this.hours+=s(e+n),this.minutes+=s(e+t)},formatter:function(t){return n(t,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(t){return n(t,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(t){return n(t,"w")}},{key:"GGGG",regex:p.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(t){return n(t,"GGGG")}},{key:"GGG",regex:p.DATETIME_FORMATS.ERAS.join("|"),formatter:function(t){return n(t,"GGG")}},{key:"GG",regex:p.DATETIME_FORMATS.ERAS.join("|"),formatter:function(t){return n(t,"GG")}},{key:"G",regex:p.DATETIME_FORMATS.ERAS.join("|"),formatter:function(t){return n(t,"G")}}],1<=angular.version.major&&4<angular.version.minor&&g.push({key:"LLLL",regex:p.DATETIME_FORMATS.STANDALONEMONTH.join("|"),apply:function(t){this.month=p.DATETIME_FORMATS.STANDALONEMONTH.indexOf(t)},formatter:function(t){return n(t,"LLLL")}})},this.init(),this.getParser=function(t){t=i(t);return t&&t.apply||null},this.overrideParser=function(t,e){t=i(t);t&&angular.isFunction(e)&&(this.parsers={},t.apply=e)}.bind(this),this.filter=function(n,t){return angular.isDate(n)&&!isNaN(n)&&t?(t=p.DATETIME_FORMATS[t]||t,p.id!==m&&this.init(),this.formatters[t]||(this.formatters[t]=r(t)),this.formatters[t].reduce(function(t,e){return t+e(n)},"")):""},this.parse=function(t,e,n){if(!angular.isString(t)||!e)return t;e=(e=p.DATETIME_FORMATS[e]||e).replace(v,"\\$&"),p.id!==m&&this.init(),this.parsers[e]||(this.parsers[e]=function(r){var o=[],s=r.split(""),t=r.indexOf("'");if(-1<t){var e=!1;r=r.split("");for(var n=t;n<r.length;n++)e?("'"===r[n]&&(n+1<r.length&&"'"===r[n+1]?(r[n+1]="$",s[n+1]=""):(s[n]="",e=!1)),r[n]="$"):"'"===r[n]&&(r[n]="$",e=!(s[n]=""));r=r.join("")}return angular.forEach(g,function(t){var e=r.indexOf(t.key);if(-1<e){r=r.split(""),s[e]="("+t.regex+")",r[e]="$";for(var n=e+1,i=e+t.key.length;n<i;n++)s[n]="",r[n]="$";r=r.join(""),o.push({index:e,key:t.key,apply:t.apply,matcher:t.regex})}}),{regex:new RegExp("^"+s.join("")+"$"),map:f(o,"index")}}(e));var e=this.parsers[e],i=e.regex,r=e.map,o=t.match(i),s=!1;if(o&&o.length){for(var a,l=angular.isDate(n)&&!isNaN(n.getTime())?{year:n.getFullYear(),month:n.getMonth(),date:n.getDate(),hours:n.getHours(),minutes:n.getMinutes(),seconds:n.get
1Seconds(),milliseconds:n.getMilliseconds()}:(n&&d.warn("dateparser:","baseDate is not a valid date"),{year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),u=1,c=o.length;u<c;u++){var h=r[u-1];"Z"===h.matcher&&(s=!0),h.apply&&h.apply.call(l,o[u])}e=s?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,t=s?Date.prototype.setUTCHours:Date.prototype.setHours;return function(t,e,n){if(n<1)return;if(1===e&&28<n)return 29===n&&(t%4==0&&t%100!=0||t%400==0);return 3!==e&&5!==e&&8!==e&&10!==e||n<31}(l.year,l.month,l.date)&&(!angular.isDate(n)||isNaN(n.getTime())||s?(a=new Date(0),e.call(a,l.year,l.month,l.date),t.call(a,l.hours||0,l.minutes||0,l.seconds||0,l.milliseconds||0)):(a=new Date(n),e.call(a,l.year,l.month,l.date),t.call(a,l.hours,l.minutes,l.seconds,l.milliseconds))),a}},this.toTimezone=function(t,e){return t&&e?u(t,e):t},this.fromTimezone=function(t,e){return t&&e?u(t,e,!0):t},this.timezoneToOffset=a,this.addDateMinutes=l,this.convertTimezoneToLocal=u}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(h){var o=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,d=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(t,e){var i=[],l=[],u={},e=e.uibIsClass.match(o),c=e[2],n=e[1].split(",");return function(a,t,e){i.push(a),l.push({scope:a,element:t}
1),n.forEach(function(t,e){var n,i=a,r=t.match(d),o=i.$eval(r[1]),r=r[2],s=u[t];s||(n=function(e){var n=null;l.some(function(t){if(t.scope.$eval(c)===e)return n=t,!0}),s.lastActivated!==n&&(s.lastActivated&&h.removeClass(s.lastActivated.element,o),n&&h.addClass(n.element,o),s.lastActivated=n)},u[t]=s={lastActivated:null,scope:i,watchFn:n,compareWithExp:r,watcher:i.$watch(r,n)}),s.watchFn(i.$eval(r))}),a.$on("$destroy",r)};function r(t){var e,n=t.targetScope,t=i.indexOf(n);i.splice(t,1),l.splice(t,1),i.length?(e=i[0],angular.forEach(u,function(t){t.scope===n&&(t.watcher=e.$watch(t.compareWithExp,t.watchFn),t.scope=e)})):u={}}}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(r,t,e,n,i,o,s,a,l,u,c,h){var d=this,p={$setViewValue:angular.noop},f={},m=[];t.addClass("uib-datepicker"),e.$set("role","application"),r.datepickerOptions||(r.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(e){switch(e){case"customClass":case"dateDisabled":r[e]=r.datepickerOptions[e]||angular.noop;break;case"datepickerMode":r.datepickerMode=(angular.isDefined(r.datepickerOptions.datepickerMode)?r.datepickerOptions:l).datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":d[e]=angular.isDefined(r.datepickerOptions[e])?i(r.datepickerOptions[e])(r.$parent):l[e];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":d[e]=(angular.isDefined(r.datepickerOptions[e])?r.datepickerOptions:l)[e];break;case"startingDay":angular.isDefined(r.datepickerOptions.startingDay)?d.startingDay=r.datepickerOptions.startingDay:angular.isNumber(l.startingDay)?d.startingDay=l.startingDay:d.startingDay=(o.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":r.$watch("datepickerOptions."+e,function(t){t?angular.isDate(t)?d[e]=h.fromTimezone(new Date(t),f.getOption("timezone")):(u&&s.warn("Literal date support has been deprecated, please switch to date object usage"),d[e]=new Date(a(t,"medium"))):d[e]=l[e]?h.fromTimezone(new Date(l[e]),f.getOption("timezone")):null,d.refreshView()});break;case"maxMode":case"minMode":r.datepickerOptions[e]?r.$watch(function(){return r.datepickerOptions[e]},function(t){d[e]=r[e]=angular.isDefined(t)?t:r.datepickerOptions[e],("minMode"===e&&d.modes.indexOf(r.datepickerOptions.datepickerMode)<d.modes.indexOf(d[e])||"maxMode"===e&&d.modes.indexOf(r.datepickerOptions.datepickerMode)>d.modes.indexOf(d[e]))&&(r.datepickerMode=d[e],r.datepickerOptions.datepickerMode=d[e])}):d[e]=r[e]=l[e]||null}}),r.uniqueId="datepicker-"+r.$id+"-"+Math.floor(1e4*Math.random()),r.disabled=angular.isDefined(e.disabled)||!1,angular.isDefined(e.ngDisabled)&&m.push(r.$parent.$watch(e.ngDisabled,function(t){r.disabled=t,d.refreshView()})),r.isActive=function(t){return 0===d.compare(t.date,d.activeDate)&&(r.activeDateId=t.uid,!0)},this.init=function(t){f=function(t){var e;{var n;angular.version.minor<6?(e=t.$options||r.datepickerOptions.ngModelOptions||l.ngModelOptions||{}).getOption=function(t){return e[t]}:(n=t.$options.getOption("timezone")||(r.datepickerOptions.ngModelOptions?r.datepickerOptions.ngModelOptions.timezone:null)||(l.ngModelOptions?l.ngModelOptions.timezone:null),e=t.$options.createChild(l.ngModelOptions).createChild(r.datepickerOptions.ngModelOptions).createChild(t.$options).createChild({timezone:n}))}return e}(p=t),r.datepickerOptions.initDate?(d.activeDate=h.fromTimezone(r.datepickerOptions.initDate,f.getOption("timezone"))||new Date,r.$watch("datepickerOptions.initDate",function(t){t&&(p.$isEmpty(p.$modelValue)||p.$invalid)&&
1(d.activeDate=h.fromTimezone(t,f.getOption("timezone")),d.refreshView())})):d.activeDate=new Date;t=p.$modelValue?new Date(p.$modelValue):new Date;this.activeDate=isNaN(t)?h.fromTimezone(new Date,f.getOption("timezone")):h.fromTimezone(t,f.getOption("timezone")),p.$render=function(){d.render()}},this.render=function(){var t;p.$viewValue&&(t=new Date(p.$viewValue),!isNaN(t)?this.activeDate=h.fromTimezone(t,f.getOption("timezone")):c||s.error('Datepicker directive: "ng-model" value must be a Date object')),this.refreshView()},this.refreshView=function(){var t;this.element&&(r.selectedDt=null,this._refreshView(),r.activeDt&&(r.activeDateId=r.activeDt.uid),t=p.$viewValue?new Date(p.$viewValue):null,t=h.fromTimezone(t,f.getOption("timezone")),p.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t)))},this.createDateObject=function(t,e){var n=p.$viewValue?new Date(p.$viewValue):null,n=h.fromTimezone(n,f.getOption("timezone")),i=new Date,i=h.fromTimezone(i,f.getOption("timezone")),i=this.compare(t,i),e={date:t,label:h.filter(t,e),selected:n&&0===this.compare(t,n),disabled:this.isDisabled(t),past:i<0,current:0===i,future:0<i,customClass:this.customClass(t)||null};return n&&0===this.compare(t,n)&&(r.selectedDt=e),d.activeDate&&0===this.compare(e.date,d.activeDate)&&(r.activeDt=e),e},this.isDisabled=function(t){return r.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&0<this.compare(t,this.maxDate)||r.dateDisabled&&r.dateDisabled({date:t,mode:r.datepickerMode})},this.customClass=function(t){return r.customClass({date:t,mode:r.datepickerMode})},this.split=function(t,e){for(var n=[];0<t.length;)n.push(t.splice(0,e));return n},r.select=function(t){var e;r.datepickerMode===d.minMode?((e=p.$viewValue?h.fromTimezone(new Date(p.$viewValue),f.getOption("timezone")):new Date(0,0,0,0,0,0,0)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e=h.toTimezone(e,f.getOption("timezone")),p.$setViewValue(e),p.$render()):(d.activeDate=t,g(d.modes[d.modes.indexOf(r.datepickerMode)-1]),r.$emit("uib:datepicker.mode")),r.$broadcast("uib:datepicker.focus")},r.move=function(t){var e=d.activeDate.getFullYear()+t*(d.step.years||0),t=d.activeDate.getMonth()+t*(d.step.months||0);d.activeDate.setFullYear(e,t,1),d.refreshView()},r.toggleMode=function(t){t=t||1,r.datepickerMode===d.maxMode&&1===t||r.datepickerMode===d.minMode&&-1===t||(g(d.modes[d.modes.indexOf(r.datepickerMode)+t]),r.$emit("uib:datepicker.mode"))},r.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};function g(t){r.datepickerMode=t,r.datepickerOptions.datepickerMode=t}r.$on("uib:datepicker.focus",function(){d.element[0].focus()}),r.keydown=function(t){var e=r.keys[t.which];!e||t.shiftKey||t.altKey||r.disabled||(t.preventDefault(),d.shortcutPropagation||t.stopPropagation(),"enter"===e||"space"===e?d.isDisabled(d.activeDate)||r.select(d.activeDate):!t.ctrlKey||"up"!==e&&"down"!==e?(d.handleKeyDown(e,t),d.refreshView()):r.toggleMode("up"===e?1:-1))},t.on("keydown",function(t){r.$apply(function(){r.keydown(t)})}),r.$on("$destroy",function(){for(;m.length;)m.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(h,t,d){var n=[31,28,31,30,31,30,31,31,30,31,30,31];function r(t,e){return 1!==e||t%4!=0||t%100==0&&t%400!=0?n[e]:29}this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),h.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(t,e){for(var n,i=new Array(e),r=new Date(t),o=0;o<e;)n=new Date(r),i[o++]=n,r.setDate(r.getDate()+1);return i},this._refreshView=function(){for(var t=this.activeDate.getFullYear(),e=this.activeDate.getMonth(),n=new Date(this.activeDate),t=(n.setFullYear(t,e,1),this.startingDay-n.getDay()),t=0<t?7-t:-t,n=new Date(n),i=(0<t&&n.setDate(1-t),this.getDates(n,42)),r=0;r<42;r++)i[r]=angular.extend(this.createDateObject(i[r],this.formatDay),{secondary:i[r].getMonth()!==e,uid:h.uniqueId+"-"+r});h.labels=new Array(7);for(var o,s,a=0;a<7;a++)h.labels[a]={abbr:d(i[a].date,this.formatDayHeader),full:d(i[a].date,"EEEE")};if(h.title=d(this.activeDate,this.formatDayTitle),h.rows=this.split(i,7),h.showWeeks){h.weekNumbers=[];for(var l=(11-this.startingDay)%7,u=h.rows.length,c=0;c<u;c++)h.weekNumbers.push((o=h.rows[c][l].date,s=void 0,(o=new Date(o)).setDate(o.getDate()+4-(o.getDay()||7)),s=o.getTime(),o.setMonth(0),o.setDate(1),Math.floor(Math.round((s-o)/864e5)/7)+1))}},this.compare=function(t,e){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),i=new Date(e.getFullYear(),e.getMonth(),e.getDate());return n.setFullYear(t.getFullYear()),i.setFullYear(e.getFullYear()),n-i},this.handleKeyDown=function(t,e){var n,i=this.activeDate.getDate();"left"===t?i-=1:"up"===t?i-=7:"right"===t?i+=1:"down"===t?i+=7:"pageup"===t||"pagedown"===t?(n=this.activeDate.getMonth()+("pageup"===t?-1:1),this.activeDate.setMonth(n,1),i=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),i)):"home"===t?i=1:"end"===t&&(i=r(this.activeDate.getFullYear(),this.activeDate.getMonth())),this.activeDate.setDate(i)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(r,t,o){this.step={years:1},this.element=t,this.init=function(t){angular.extend(t,this),t.refreshView()},this._refreshView=function(){for(var t,e=new Array(12),n=this.activeDate.getFullYear(),i=0;i<12;
1i++)(t=new Date(this.activeDate)).setFullYear(n,i,1),e[i]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:r.uniqueId+"-"+i});r.title=o(this.activeDate,this.formatMonthTitle),r.rows=this.split(e,this.monthColumns),r.yearHeaderColspan=3<this.monthColumns?this.monthColumns-2:1},this.compare=function(t,e){var n=new Date(t.getFullYear(),t.getMonth()),i=new Date(e.getFullYear(),e.getMonth());return n.setFullYear(t.getFullYear()),i.setFullYear(e.getFullYear()),n-i},this.handleKeyDown=function(t,e){var n,i=this.activeDate.getMonth();"left"===t?i-=1:"up"===t?i-=this.monthColumns:"right"===t?i+=1:"down"===t?i+=this.monthColumns:"pageup"===t||"pagedown"===t?(n=this.activeDate.getFullYear()+("pageup"===t?-1:1),this.activeDate.setFullYear(n)):"home"===t?i=0:"end"===t&&(i=11),this.activeDate.setMonth(i)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(r,t,e){var o,s;function a(t){return parseInt((t-1)/s,10)*s+1}this.element=t,this.yearpickerInit=function(){o=this.yearColumns,s=this.yearRows*o,this.step={years:s}},this._refreshView=function(){for(var t,e=new Array(s),n=0,i=a(this.activeDate.getFullYear());n<s;n++)(t=new Date(this.activeDate)).setFullYear(i+n,0,1),e[n]=angular.extend(this.createDateObject(t,this.formatYear),{uid:r.uniqueId+"-"+n});r.title=[e[0].label,e[s-1].label].join(" - "),r.rows=this.split(e,o),r.columns=o},this.compare=function(t,e){return t.getFullYear()-e.getFullYear()},this.handleKeyDown=function(t,e){var n=this.activeDate.getFullYear();"left"===t?n-=1:"up"===t?n-=o:"right"===t?n+=1:"down"===t?n+=o:"pageup"===t||"pagedown"===t?n+=("pageup"===t?-1:1)*s:"home"===t?n=a(this.activeDate.getFullYear()):"end"===t&&(n=a(this.activeDate.getFullYear())+s-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],restrict:"A",controller:"UibDatepickerController",controllerAs:"datepicker",link:function(t,e,n,i){var r=i[0],i=i[1];r.init(i)}}}).directive("uibDaypicker",function(){return{templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],restrict:"A",controller:"UibDaypickerController",link:function(t,e,n,i){var r=i[0];i[1].init(r)}}}).directive("uibMonthpicker",function(){return{templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],restrict:"A",controller:"UibMonthpickerController",link:function(t,e,n,i){var r=i[0];i[1].init(r)}}}).directive("uibYearpicker",function(){return{templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],restrict:"A",controller:"UibYearpickerController",link:function(t,e,n,i){var r=i[0];angular.extend(r,i[1]),r.yearpickerInit(),r.refreshView()}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(l,u){var e,n,c={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},h={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},r=/(HTML|BODY)/;return{getRawNode:function(t){return!t.nodeName&&t[0]||t},parseStyle:function(t){return t=parseFloat(t),isFinite(t)?t:0},offsetParent:function(t){var e,n=(t=this.getRawNode(t)).offsetParent||l[0].documentElement;for(;n&&n!==l[0].documentElement&&(e=n,"static"===(u.getComputedStyle(e).position||"static"));)n=n.offsetParent;return n||l[0].documentElement},scrollbarWidth:function(t){return t?(angular.isUndefined(n)&&((t=l.find("body")).addClass("uib-position-body-scrollbar-measure"),n=u.innerWidth-t[0].clientWidth,n=isFinite(n)?n:0,t.removeClass("uib-position-body-scrollbar-measure")),n):(angular.isUndefined(e)&&(t=angular.element('<div class="uib-position-scrollbar-measure"></div>'),l.find("body").append(t),e=t[0].offsetWidth-t[0].clientWidth,e=isFinite(e)?e:0,t.remove()),e)},scrollbarPadding:function(t){t=this.getRawNode(t);var e=u.getComputedStyle(t),n=this.parseStyle(e.paddingRight),e=this.parseStyle(e.paddingBottom),t=this.scrollParent(t,!1,!0),i=this.scrollbarWidth(r.test(t.tagName));return{scrollbarWidth:i,widthOverflow:t.scrollWidth>t.clientWidth,right:n+i,originalRight:n,heightOverflow:t.scrollHeight>t.clientHeight,bottom:e+i,originalBottom:e}},isScrollable:function(t,e){t=this.getRawNode(t);e=e?c.hidden:c.normal,t=u.getComputedStyle(t);return e.test(t.overflow+t.overflowY+t.overflowX)},scrollParent:function(t,e,n){t=this.getRawNode(t);var i=e?c.hidden:c.normal,r=l[0].documentElement,e=u.getComputedStyle(t);if(n&&i.test(e.overflow+e.overflowY+e.overflowX))return t;var o="absolute"===e.position,s=t.parentElement||r;if(s===r||"fixed"===e.position)return r;for(;s.parentElement&&s!==r;){var a=u.getComputedStyle(s);if(!(o=o&&"static"!==a.position?!1:o)&&i.test(a.overflow+a.overflowY+a.overflowX))break;s=s.parentElement}return s},position:function(t,e){t=this.getRawNode(t);var n=this.offset(t),e=(e&&(e=u.getComputedStyle(t),n.top-=this.parseStyle(e.marginTop),n.left-=this.parseStyle(e.marginLeft)),this.offsetParent(t)),i={top:0,left:0};return e!==l[0].documentElement&&((i=this.offset(e)).top+=e.clientTop-e.scrollTop,i.left+=e.clientLeft-e.scrollLeft),{width:Math.round(angular.isNumber(n.width)?n.width:t.offsetWidth),height:Math.round(angular.isNumber(n.height)?n.height:t.offsetHeight),top:Math.round(n.top-i.top),left
1:Math.round(n.left-i.left)}},offset:function(t){var e=(t=this.getRawNode(t)).getBoundingClientRect();return{width:Math.round(angular.isNumber(e.width)?e.width:t.offsetWidth),height:Math.round(angular.isNumber(e.height)?e.height:t.offsetHeight),top:Math.round(e.top+(u.pageYOffset||l[0].documentElement.scrollTop)),left:Math.round(e.left+(u.pageXOffset||l[0].documentElement.scrollLeft))}},viewportOffset:function(t,e,n){n=!1!==n;var i=(t=this.getRawNode(t)).getBoundingClientRect(),r={top:0,left:0,bottom:0,right:0},e=e?l[0].documentElement:this.scrollParent(t),t=e.getBoundingClientRect();return r.top=t.top+e.clientTop,r.left=t.left+e.clientLeft,e===l[0].documentElement&&(r.top+=u.pageYOffset,r.left+=u.pageXOffset),r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,n&&(t=u.getComputedStyle(e),r.top+=this.parseStyle(t.paddingTop),r.bottom-=this.parseStyle(t.paddingBottom),r.left+=this.parseStyle(t.paddingLeft),r.right-=this.parseStyle(t.paddingRight)),{top:Math.round(i.top-r.top),bottom:Math.round(r.bottom-i.bottom),left:Math.round(i.left-r.left),right:Math.round(r.right-i.right)}},parsePlacement:function(t){var e=h.auto.test(t);return(t=(t=e?t.replace(h.auto,""):t).split("-"))[0]=t[0]||"top",h.primary.test(t[0])||(t[0]="top"),t[1]=t[1]||"center",h.secondary.test(t[1])||(t[1]="center"),t[2]=!!e,t},positionElements:function(t,e,n,i){t=this.getRawNode(t),e=this.getRawNode(e);var r,o=angular.isDefined(e.offsetWidth)?e.offsetWidth:e.prop("offsetWidth"),s=angular.isDefined(e.offsetHeight)?e.offsetHeight:e.prop("offsetHeight"),a=(n=this.parsePlacement(n),i?this.offset(t):this.position(t)),l={top:0,left:0,placement:""};switch(n[2]&&(t=this.viewportOffset(t,i),i=u.getComputedStyle(e),e=o+Math.round(Math.abs(this.parseStyle(i.marginLeft)+this.parseStyle(i.marginRight))),i=s+Math.round(Math.abs(this.parseStyle(i.marginTop)+this.parseStyle(i.marginBottom))),n[0]="top"===n[0]&&i>t.top&&i<=t.bottom?"bottom":"bottom"===n[0]&&i>t.bottom&&i<=t.top?"top":"left"===n[0]&&e>t.left&&e<=t.right?"right":"right"===n[0]&&e>
1t.right&&e<=t.left?"left":n[0],n[1]="top"===n[1]&&i-a.height>t.bottom&&i-a.height<=t.top?"bottom":"bottom"===n[1]&&i-a.height>t.top&&i-a.height<=t.bottom?"top":"left"===n[1]&&e-a.width>t.right&&e-a.width<=t.left?"right":"right"===n[1]&&e-a.width>t.left&&e-a.width<=t.right?"left":n[1],"center"===n[1])&&(h.vertical.test(n[0])?(r=a.width/2-o/2,t.left+r<0&&e-a.width<=t.right?n[1]="left":t.right+r<0&&e-a.width<=t.left&&(n[1]="right")):(r=a.height/2-i/2,t.top+r<0&&i-a.height<=t.bottom?n[1]="top":t.bottom+r<0&&i-a.height<=t.top&&(n[1]="bottom"))),n[0]){case"top":l.top=a.top-s;break;case"bottom":l.top=a.top+a.height;break;case"left":l.left=a.left-o;break;case"right":l.left=a.left+a.width}switch(n[1]){case"top":l.top=a.top;break;case"bottom":l.top=a.top+a.height-s;break;case"left":l.left=a.left;break;case"right":l.left=a.left+a.width-o;break;case"center":h.vertical.test(n[0])?l.left=a.left+a.width/2-o/2:l.top=a.top+a.height/2-s/2}return l.top=Math.round(l.top),l.left=Math.round(l.left),l.placement="center"===n[1]?n[0]:n[0]+"-"+n[1],l},adjustTop:function(t,e,n,i){if(-1!==t.indexOf("top")&&n!==i)return{top:e.top-i+"px"}},positionArrow:function(t,e){var n=(t=this.getRawNode(t)).querySelector(".tooltip-inner, .popover-inner");if(n){var i=angular.element(n).hasClass("tooltip-inner"),r=i?t.querySelector(".tooltip-arrow"):t.querySelector(".arrow");if(r){var o={top:"",bottom:"",left:"",right:""};if("center"!==(e=this.parsePlacement(e))[1]){var s="border-"+e[0]+"-width",a=u.getComputedStyle(r)[s],s="border-",n=(h.vertical.test(e[0])?s+=e[0]+"-"+e[1]:s+=e[1]+"-"+e[0],s+="-radius",u.getComputedStyle(i?n:t)[s]);switch(e[0]){case"top":o.bottom=i?"0":"-"+a;break;case"bottom":o.top=i?"0":"-"+a;break;case"left":o.right=i?"0":"-"+a;break;case"right":o.left=i?"0":"-"+a}o[e[1]]=n}angular.element(r).css(o)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(i,r,n,e,o,t,s,a,l,u,c,h,d,p,R,f){var m,g,v,y,b,_,w,x,C,k,$,S,E=!1,T=[];function D(t){var e=h.parse(t,m,i.date);if(isNaN(e))for(var n=0;n<S.length;n++)if(e=h.parse(t,S[n],i.date),!isNaN(e))return e;return e}function M(t){if(!(t=angular.isNumber(t)?new Date(t):t))return null;if(angular.isDate(t)&&!isNaN(t))return t;if(angular.isString(t)){var e=D(t);if(!isNaN(e))return h.toTimezone(e,k.getOption("timezone"))}return k.getOption("allowInvalid")?t:void 0}function A(t,e){t=t||e;return!n.ngRequired&&!t||!(t=angular.isNumber(t)?new Date(t):t)||!(!angular.isDate(t)||isNaN(t))||!!angular.isString(t)&&!isNaN(D(t))}function O(t){var e,n;!i.isOpen&&i.disabled||(n=$[0],e=r[0].contains(t.target),n=void 0!==n.contains&&n.contains(t.target),!i.isOpen)||e||n||i.$apply(function(){i.isOpen=!1})}function N(t){27===t.which&&i.isOpen?(t.preventDefault(),t.stopPropagation(),i.$apply(function(){i.isOpen=!1}),r[0].focus()):40!==t.which||i.isOpen||(t.preventDefault(),t.stopPropagation(),i.$apply(function(){i.isOpen=!0}))}function P(){var t,e;i.isOpen&&(t=angular.element($[0].querySelector(".uib-datepicker-popup")),e=n.popupPlacement||d.placement,e=u.positionElements(r,t,e,v),t.css({top:e.top+"px",left:e.left+"px"}),t.hasClass("uib-position-measure"))&&t.removeClass("uib-position-measure")}this.init=function(t){if(k=function(t){var e;angular.version.minor<6?(e=angular.isObject(t.$options)?t.$options:{timezone:null}).getOption=function(t){return e[t]}:e=t.$options;return e}
1(C=t),g=angular.isDefined(n.closeOnDateSelection)?i.$parent.$eval(n.closeOnDateSelection):d.closeOnDateSelection,v=angular.isDefined(n.datepickerAppendToBody)?i.$parent.$eval(n.datepickerAppendToBody):d.appendToBody,y=angular.isDefined(n.onOpenFocus)?i.$parent.$eval(n.onOpenFocus):d.onOpenFocus,w=(angular.isDefined(n.datepickerPopupTemplateUrl)?n:d).datepickerPopupTemplateUrl,b=(angular.isDefined(n.datepickerTemplateUrl)?n:d).datepickerTemplateUrl,S=angular.isDefined(n.altInputFormats)?i.$parent.$eval(n.altInputFormats):d.altInputFormats,i.showButtonBar=angular.isDefined(n.showButtonBar)?i.$parent.$eval(n.showButtonBar):d.showButtonBar,d.html5Types[n.type]?(m=d.html5Types[n.type],E=!0):(m=n.uibDatepickerPopup||d.datepickerPopup,n.$observe("uibDatepickerPopup",function(t,e){t=t||d.datepickerPopup;if(t!==m&&(m=t,C.$modelValue=null,!m))throw new Error("uibDatepickerPopup must have a date format specified.")})),!m)throw new Error("uibDatepickerPopup must have a date format specified.");if(E&&n.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");(_=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>")).attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":w}),(w=angular.element(_.children()[0])).attr("template-url",b),i.datepickerOptions||(i.datepickerOptions={}),E&&"month"===n.type&&(i.datepickerOptions.datepickerMode="month",i.datepickerOptions.minMode="month"),w.attr("datepicker-options","datepickerOptions"),E?C.$formatters.push(function(t){return i.date=h.fromTimezone(t,k.getOption("timezone")),t}):(C.$$parserName="date",C.$validators.date=A,C.$parsers.unshift(M),C.$formatters.push(function(t){return C.$isEmpty(t)?i.date=t:(angular.isNumber(t)&&(t=new Date(t)),i.date=h.fromTimezone(t,k.getOption("timezone")),h.filter(i.date,m))})),C.$viewChangeListeners.push(function(){i.date=D(C.$viewValue)}),r.on("keydown",N),$=e(_)(i),_.remove(),v?a.find("body").append($):r.after($),i.$on("$destroy",function(){for(!0!==i.isOpen||l.$$phase||i.$apply(function(){i.isOpen=!1}),$.remove(),r.off("keydown",N),a.off("click",O),x&&x.off("scroll",P),angular.element(s).off("resize",P);T.length;)T.shift()()})},i.getText=function(t){return i[t+"Text"]||d[t+"Text"]},i.isDisabled=function(t){"today"===t&&(t=h.fromTimezone(new Date,k.getOption("timezone")));var e={};return angular.forEach(["minDate","maxDate"],function(t){i.datepickerOptions[t]?angular.isDate(i.datepickerOptions[t])?e[t]=new Date(i.datepickerOptions[t]):(f&&o.warn("Literal date support has been deprecated, please switch to date object usage"),e[t]=new Date(c(i.datepickerOptions[t],"medium"))):e[t]=null}),i.datepickerOptions&&e.minDate&&i.compare(t,e.minDate)<0||e.maxDate&&0<i.compare(t,e.maxDate)},i.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(e.getFullYear(),e.getMonth(),e.getDate())},i.dateSelection=function(t){i.date=t;t=i.date?h.filter(i.date,m):null;r.val(t),C.$setViewValue(t),g&&(i.isOpen=!1,r[0].focus())},i.keydown=function(t){27===t.which&&(t.stopPropagation(),i.isOpen=!1,r[0].focus())},i.select=function(t,e){e.stopPropagation(),"today"===t&&(e=new Date,angular.isDate(i.date)?(t=new Date(i.date)).setFullYear(e.getFullYear(),e.getMonth(),e.getDate()):(t=h.fromTimezone(e,k.getOption("timezone"))).setHours(0,0,0,0)),i.dateSelection(t)},i.close=function(t){t.stopPropagation(),i.isOpen=!1,r[0].focus()},i.disabled=angular.isDefined(n.disabled)||!1,n.ngDisabled&&T.push(i.$parent.$watch(t(n.ngDisabled),function(t){i.disabled=t})),i.$watch("isOpen",function(t){t?i.disabled?i.isOpen=!1:p(function(){P(),y&&i.$broadcast("uib:datepicker.focus"),a.on("click",O);var t=n.popupPlacement||d.placement;v||u.parsePlacement(t)[2]?(x=x||angular.element(u.scrollParent(r)))&&x.on("scroll",P):x=null,angular.element(s).on("resize",P)},0,!1):(a.off("click",O),x&&x.off("scroll",P),angular.element(s).off("resize",P))}),i.$on("uib:datepicker.mode",function(){p(P,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(t,e,n,i){var r=i[0];i[1].init(r)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/datepickerPopup/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(o){return function(n,i){var r;return function(){var t=this,e=Array.prototype.slice.call(arguments);r&&o.cancel(r),r=o(function(){n.apply(t,e)},i)}}}]),angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",function(){return{createNew:function(){var i={};return{entries:function(){return Object.keys(i).map(function(t){return{key:t,value:i[t]}})},get:function(t){return i[t]},hasKey:function(t){return!!i[t]},keys:function(){return Object.keys(i)},put:function(t,e){i[t]||(i[t]=[]),i[t].push(e)},remove:function(t,e){var n=i[t];n&&(-1!==(e=n.indexOf(e))&&n.splice(e,1),n.length||delete i[t])}}}}}),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.multiMap","ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope","$$multiMap",function(r,n,t){var o=null,s=t.createNew(),a=(this.isOnlyOpen=function(n,t){t=s.get(t);if(t&&t.reduce(function(t,e){return e.scope===n?e:t},{}))return 1===t.length;return!1},this.open=function(t,e,n){var i;o||r.on("click",a),o&&o!==t&&(o.isOpen=!1),o=t,!n||(i=s.get(n))&&-1!==i.map(function(t){return t.scope}).indexOf(t)||s.put(n,{scope:t})},this.close=function(n,t,e){var i;o===n&&(r.off("click",a),r.off("keydown",this.keybindFilter),o=null),e&&(i=s.get(e))&&(i=i.reduce(function(t,e){return e.scope===n?e:t},{}))&&s.remove(e,i)},function(t){var e;o&&o.isOpen&&(t&&"disabled"===o.getAutoClose()||t&&3===t.which||(e=o.getToggleElement(),t&&e&&e[0].contains(t.target))||(e=o.getDropdownElement(),t&&"outsideClick"===o.getAutoClose()&&e&&e[0].contains(t.target))||(o.focusToggleElement(),o.isOpen=!1,n.$$phase)||o.$apply())});this.keybindFilter=function(t){var e,n;o&&(e=o.getDropdownElement(),n=o.getToggleElement(),e=e&&e[0].contains(t.target),n=n&&n[0].contains(t.target),27===t.which?(t.stopPropagation(),o.focusToggleElement(),a()):o.isKeynavEnabled()&&-1!==[38,40].indexOf(t.which)&&o.isOpen&&(e||n)&&(t.preventDefault(),t.stopPropagation(),o.focusDropdownEntry(t.which)))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(u,c,h,d,t,p,f,m,g,v,y){var b,e,_=this,w=u.$new(),x=t.appendToOpenClass,C=t.openClass,k=angular.noop,$=h.onToggle?d(h.onToggle):angular.noop,n=!1,S=g.find("body");function E(){c.append(_.dropdownMenu)}c.addClass("dropdown"),this.init=function(){h.isOpen&&(e=d(h.isOpen),k=e.assign,u.$watch(e,function(t){w.isOpen=!!t})),n=angular.isDefined(h.keyboardNav)},this.toggle=function(t){return w.isOpen=arguments.length?!!t:!w.isOpen,angular.isFunction(k)&&k(w,w.isOpen),w.isOpen},this.isOpen=function(){return w.isOpen},w.getToggleElement=function(){return _.toggleElement},w.getAutoClose=function(){return h.autoClose||"always"},w.getElement=function(){return c},w.isKeynavEnabled=function(){return n},w.focusDropdownEntry=function(t){var e=(_.dropdownMenu?angular.element(_.dropdownMenu):c.find("ul").eq(0)).find("a");switch(t){case 40:angular.isNumber(_.selectedOption)?_.selectedOption=_.selectedOption===e.length-1?_.selectedOption:_.selectedOption+1:_.selectedOption=0;break;case 38:angular.isNumber(_.selectedOption)?_.selectedOption=0===_.selectedOption?0:_.selectedOption-1:_.selectedOption=e.length-1}e[_.selectedOption].focus()},w.getDropdownElement=function(){return _.dropdownMenu},w.focusToggleElement=function(){_.toggleElement&&_.toggleElement[0].focus()},w.$watch("isOpen",function(t,e){var n,i,r=null,o=!1,s=(angular.isDefined(h.dropdownAppendTo)&&(s=d(h.dropdownAppendTo)(w))&&(r=angular.element(s)),(r=(o=angular.isDefined(h.dropdownAppendToBody)&&!1!==d(h.dropdownAppendToBody)(w)?!0:o)&&!r?S:r)&&_.dropdownMenu&&(t?(r.append(_.dropdownMenu),c.on("$destroy",E)):(c.off("$destroy",E),E())),r&&_.dropdownMenu&&(n={top:(l=m.positionElements(c,_.dropdownMenu,"bottom-left",!(s=0))).top+"px",display:t?"block":"none"},(a=_.dropdownMenu.hasClass("dropdown-menu-right"))?(n.left="auto",(i=m.scrollbarPadding(r)).heightOverflow&&i.scrollbarWidth&&(s=i.scrollbarWidth),n.right=window.innerWidth-s-(l.left+c.prop("offsetWidth"))+"px"):(n.left=l.left+"px",n.right="auto"),o||(i=m.offset(r),n.top=l.top-i.top+"px",a?n.right=window.innerWidth-(l.left-i.left+c.prop("offsetWidth"))+"px":n.left=l.left-i.left+"px"),_.dropdownMenu.css(n)),r||c),o=r?x:C,a=s.hasClass(o),l=p.isOnlyOpen(u,r);a===!t&&f[r?l?"removeClass":"addClass":t?"addClass":"removeClass"](s,o).then(function(){angular.isDefined(t)&&t!==e&&$(u,{open:!!t})}),t?(_.dropdownMenuTemplateUrl?y(_.dropdownMenuTemplateUrl).then(function(t){b=w.$new(),v(t.trim())(b,function(t){_.dropdownMenu.replaceWith(t),_.dropdownMenu=t,g.on("key
1down",p.keybindFilter)})}):g.on("keydown",p.keybindFilter),w.focusToggleElement(),p.open(w,c,r)):(p.close(w,c,r),_.dropdownMenuTemplateUrl&&(b&&b.$destroy(),i=angular.element('<ul class="dropdown-menu"></ul>'),_.dropdownMenu.replaceWith(i),_.dropdownMenu=i),_.selectedOption=null),angular.isFunction(k)&&k(u,t)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(t,e,n,i){i.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(t,e,n,i){!i||angular.isDefined(n.dropdownNested)||(e.addClass("dropdown-menu"),(n=n.templateUrl)&&(i.dropdownMenuTemplateUrl=n),i.dropdownMenu)||(i.dropdownMenu=e)}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,n,i,r){var t;r&&(n.addClass("dropdown-toggle"),(r.toggleElement=n).on("click",t=function(t){t.preventDefault(),n.hasClass("disabled")||i.disabled||e.$apply(function(){r.toggle()})}),n.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(r.isOpen,function(t){n.attr("aria-expanded",!!t)}),e.$on("$destroy",function(){n.off("click",t)}))}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var i=[];return{add:function(t,e){i.push({key:t,value:e})},get:function(t){for(var e=0;e<i.length;e++)if(t===i[e].key)return i[e]},keys:function(){for(var t=[],e=0;e<i.length;e++)t.push(i[e].key);return t},top:function(){return i[i.length-1]},remove:function(t){for(var e=-1,n=0;n<i.length;n++)if(t===i[n].key){e=n;break}return i.splice(e,1)[0]},removeTop:function(){return i.pop()},length:function(){return i.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position"]).provider("$uibResolve",function(){var t=this;this.resolver=null,this.setResolver=function(t){this.resolver=t},this.$get=["$injector","$q",function(o,s){var a=t.resolver?o.get(t.resolver):null;return{resolve:function(t,e,n,i){var r;return a?a.resolve(t,e,n,i):(r=[],angular.forEach(t,function(t){angular.isFunction(t)||angular.isArray(t)?r.push(s.resolve(o.invoke(t))):angular.isString(t)?r.push(s.resolve(o.get(t))):r.push(s.resolve(t))}),s.all(r).then(function(n){var i={},r=0;return angular.forEach(t,function(t,e){i[e]=n[r++]}),i}))}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(o,t,e){return{restrict:"A",compile:function(t,e){return t.addClass(e.backdropClass),n}};function n(n,i,r){r.modalInClass&&(o.addClass(i,r.modalInClass),n.$on(e.NOW_CLOSING_EVENT,function(t,e){e=e();n.modalOptions.animation?o.removeClass(i,r.modalInClass).then(e):e()}))}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(r,o,s,a){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/modal/window.html"},link:function(e,n,i){n.addClass(i.windowTopClass||""),e.size=i.size,e.close=function(t){var e=r.getTop();e&&e.value.backdrop&&"static"!==e.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),r.dismiss(e.key,"backdrop click"))},n.on("click",e.close),e.$isRendered=!0;var t=o.defer();e.$$postDigest(function(){t.resolve()}),t.promise.then(function(){var t=null;i.modalInClass&&(t=s(n,{addClass:i.modalInClass}).start(),e.$on(r.NOW_CLOSING_EVENT,function(t,e){e=e();s(n,{removeClass:i.modalInClass}).start().then(e)})),o.when(t).then(function(){var t=r.getTop();t&&r.modalRendered(t.key),a[0].activeElement&&n[0].contains(a[0].activeElement)||(n[0].querySelector("[autofocus]")||n[0]).focus()})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(t,e){e.modalAnimation&&t.addClass(e.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(o){return{link:function(t,e,n,i,r){r(t.$parent,function(t){e.empty(),o.enter(t,e)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(a,t,s,l,u,c,e,n,h){var d,p,f,m="modal-open",g=n.createNew(),v=e.createNew(),y={NOW_CLOSING_EVENT:"modal.stack.now-closing"},b=0,_=null,w="data-bootstrap-modal-aria-hidden-count",x=/[A-Z]/g;function C(){for(var t=-1,e=g.keys(),n=0;n<e.length;n++)g.get(e[n]).value.backdrop&&(t=n);return t=-1<t&&t<b?b:t}function i(n,t){var i=g.get(n).value,r=i.appendTo;g.remove(n),(_=g.top())&&(b=parseInt(_.value.modalDomEl.attr("index"),10)),o(i.modalDomEl,i.modalScope,function(){var t=i.openedClass||m,e=(v.remove(t,n),v.hasKey(t));r.toggleClass(t,e),!e&&f&&f.heightOverflow&&f.scrollbarWidth&&(f.originalRight?r.css({paddingRight:f.originalRight+"px"}):r.css({paddingRight:""}),f=null),k(!0)},i.closedDeferred),d&&-1===C()&&(o(d,p,function(){0}),p=d=void 0),t&&t.focus?t.focus():r.focus&&r.focus()}function k(t){var e;0<g.length()&&(e=g.top().value).modalDomEl.toggleClass(e.windowTopClass||"",t)}function o(t,e,n,i){var r,o=null;function s(){s.done||(s.done=!0,a.leave(t).then(function(){n&&n(),t.remove(),i&&i.resolve()}),e.$destroy())}e.$broadcast(y.NOW_CLOSING_EVENT,function(){return r||(r=c.defer(),o=r.promise),function(){r.resolve()}}),c.when(o).then(s)}function r(t){if(t.isDefaultPrevented())return t;var e=g.top();if(e)switch(t.which){case 27:e.value.keyboard&&(t.preventDefault(),u.$apply(function(){y.dismiss(e.key,"escape key press")}));break;case 9:var n=y.loadFocusElementList(e),i=!1;t.shiftKey?(y.isFocusInFirstItem(t,n)||y.isModalFocused(t,e))&&(i=y.focusLastFocusableElement(n)):y.isFocusInLastItem(t,n)&&(i=y.focusFirstFocusableElement(n)),i&&(t.preventDefault(),t.stopPropagation())}}function $(t,e,n){return!t.value.modalScope.$broadcast("modal.closing",e,n).defaultPrevented}function S(){Array.prototype.forEach.call(document.querySelectorAll("["+w+"]"),function(t){var e=parseInt(t.getAttribute(w),10)-1;t.setAttribute(w,e),e||(t.removeAttribute(w),t.removeAttribute("aria-hidden"))})}return u.$watch(C,function(t){p&&(p.index=t)}),s.on("keydown",r),u.$on("$destroy",function(){s.off("keydown",r)}),y.open=function(t,e){var n,i=s[0].activeElement,r=e.openedClass||m,t=(k(!1),_=g.top(),g.add(t,{deferred:e.deferred,renderDeferred:e.renderDeferred,closedDeferred:e.closedDeferred,modalScope:e.scope,backdrop:e.backdrop,keyboard:e.keyboard,openedClass:e.openedClass,windowTopClass:e.windowTopClass,animation:e.animation,appendTo:e.appendTo}),v.put(r,t),e.appendTo),o=C(),o=(0<=o&&!d&&((p=u.$new(!0)).modalOptions=e,p.index=o,(d=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>
1')).attr({class:"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),e.backdropClass&&d.addClass(e.backdropClass),e.animation&&d.attr("modal-animation","true"),l(d)(p),a.enter(d,t),h.isScrollable(t))&&(f=h.scrollbarPadding(t)).heightOverflow&&f.scrollbarWidth&&t.css({paddingRight:f.right+"px"}),e.component?(n=document.createElement(e.component.name.replace(x,function(t,e){return(e?"-":"")+t.toLowerCase()})),(n=angular.element(n)).attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):n=e.content,b=_?parseInt(_.value.modalDomEl.attr("index"),10)+1:0,angular.element('<div uib-modal-window="modal-window"></div>'));o.attr({class:"modal","template-url":e.windowTemplateUrl,"window-top-class":e.windowTopClass,role:"dialog","aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,size:e.size,index:b,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(n),e.windowClass&&o.addClass(e.windowClass),e.animation&&o.attr("modal-animation","true"),t.addClass(r),e.scope&&(e.scope.$$topModalIndex=b),a.enter(l(o)(e.scope),t),g.top().value.modalDomEl=o,g.top().value.modalOpener=i,function t(e){if(!e||"BODY"===e[0].tagName)return;n(e).forEach(function(t){var e="true"===t.getAttribute("aria-hidden"),n=parseInt(t.getAttribute(w),10);n=n||(e?1:0),t.setAttribute(w,n+1),t.setAttribute("aria-hidden","true")});return t(e.parent());function n(e){var t=e.parent()?e.parent().children():[];return Array.prototype.filter.call(t,function(t){return t!==e[0]})}}(o)},y.close=function(t,e){var n=g.get(t);return S(),n&&$(n,e,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(e),i(t,n.value.modalOpener),!0):!n},y.dismiss=function(t,e){var n=g.get(t);return S(),n&&$(n,e,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(e),i(t,n.value.modalOpener),!0):!n},y.dismissAll=function(t){for(var e=this.getTop();e&&this.dismiss(e.key,t);)e=this.getTop()},y.getTop=function(){return g.top()},y.modalRendered=function(t){t=g.get(t);t&&t.value.renderDeferred.resolve()},y.focusFirstFocusableElement=function(t){return 0<t.length&&(t[0].focus(),!0)},y.focusLastFocusableElement=function(t){return 0<t.length&&(t[t.length-1].focus(),!0)},y.isModalFocused=function(t,e){if(t&&e){e=e.value.modalDomEl;if(e&&e.length)return(t.target||t.srcElement)===e[0]}return!1},y.isFocusInFirstItem=function(t,e){return 0<e.length&&(t.target||t.srcElement)===e[0]},y.isFocusInLastItem=function(t,e){return 0<e.length&&(t.target||t.srcElement)===e[e.length-1]},y.loadFocusElementList=function(t){if(t){var t=t.value.modalDomEl;if(t&&t.length)return(t=t[0].querySelectorAll("a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]"))&&Array.prototype.filter.call(t,function(t){return!!((t=t).offsetWidth||t.offsetHeight||t.getClientRects().length)})}},y}]).provider("$uibModal",function(){var y={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(f,r,o,s,m,a,g){var t={};var v=null;return t.getPromiseChain=function(){return v},t.open=function(l){var t,e,n,u=r.defer(),c=r.defer(),h=r.defer(),d=r.defer(),p={result:u.promise,opened:c.promise,closed:h.promise,rendered:d.promise,close:function(t){return g.close(p,t)},dismiss:function(t){return g.dismiss(p,t)}};if((l=angular.extend({},y.options,l)).resolve=l.resolve||{},l.appendTo=l.appendTo||o.find("body").eq(0),!l.appendTo.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");if(l.component||l.template||l.templateUrl)return t=l.component?r.when(a.resolve(l.resolve,{},null,null)):r.all([(e=l).template?r.when(e.template):s(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl),a.resolve(l.resolve,{},null,null)]),n=v=r.all([v]).then(i,i).then(function(r){var t,e=l.scope||f,o=e.$new(),n=(o.$close=p.close,o.$dismiss=p.dism
1iss,o.$on("$destroy",function(){o.$$uibDestructionScheduled||o.$dismiss("$uibUnscheduledDestruction")}),{scope:o,deferred:u,renderDeferred:d,closedDeferred:h,animation:l.animation,backdrop:l.backdrop,keyboard:l.keyboard,backdropClass:l.backdropClass,windowTopClass:l.windowTopClass,windowClass:l.windowClass,windowTemplateUrl:l.windowTemplateUrl,ariaLabelledBy:l.ariaLabelledBy,ariaDescribedBy:l.ariaDescribedBy,size:l.size,openedClass:l.openedClass,appendTo:l.appendTo}),i={},s={};function a(n,t,e,i){n.$scope=o,n.$scope.$resolve={},e?n.$scope.$uibModalInstance=p:n.$uibModalInstance=p;e=t?r[1]:r;angular.forEach(e,function(t,e){i&&(n[e]=t),n.$scope.$resolve[e]=t})}l.component?(a(i,!1,!0,!1),i.name=l.component,n.component=i):l.controller&&(a(s,!0,!1,!0),i=m(l.controller,s,!0,l.controllerAs),l.controllerAs&&l.bindToController&&((t=i.instance).$close=o.$close,t.$dismiss=o.$dismiss,angular.extend(t,{$resolve:s.$scope.$resolve},e)),t=i(),angular.isFunction(t.$onInit))&&t.$onInit(),l.component||(n.content=r[0]),g.open(p,n),c.resolve(!0)},function(t){c.reject(t),u.reject(t)}).finally(function(){v===n&&(v=null)}),p;throw new Error("One of component or template or templateUrl options is required.");function i(){return t}},t}]};return y}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(t){return{create:function(n,i,r){n.setNumPages=r.numPages?t(r.numPages).assign:angular.noop,n.ngModelCtrl={$setViewValue:angular.noop},n._watchers=[],n.init=function(t,e){n.ngModelCtrl=t,n.config=e,t.$render=function(){n.render()},r.itemsPerPage?n._watchers.push(i.$parent.$watch(r.itemsPerPage,function(t){n.itemsPerPage=parseInt(t,10),i.totalPages=n.calculateTotalPages(),n.updatePage()})):n.itemsPerPage=e.itemsPerPage,i.$watch("totalItems",function(t,e){!angular.isDefined(t)&&t===e||(i.totalPages=n.calculateTotalPages(),n.updatePage())})},n.calculateTotalPages=function(){var t=n.itemsPerPage<1?1:Math.ceil(i.totalItems/n.itemsPerPage);return Math.max(t||0,1)},n.render=function(){i.page=parseInt(n.ngModelCtrl.$viewValue,10)||1},i.selectPage=function(t,e){e&&e.preventDefault(),(!i.ngDisabled||!e)&&i.page!==t&&0<t&&t<=i.totalPages&&(e&&e.target&&e.target.blur(),n.ngModelCtrl.$setViewValue(t),n.ngModelCtrl.$render())},i.getText=function(t){return i[t+"Text"]||n.config[t+"Text"]},i.noPrevious=function(){return 1===i.page},i.noNext=function(){return i.page===i.totalPages},n.updatePage=function(){n.setNumPages(i.$parent,i.totalPages),i.page>i.totalPages?i.selectPage(i.totalPages):n.ngModelCtrl.$render()},i.$on("$destroy",function(){for(;n._watchers.length;)n._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(t,e,n,i){t.align=angular.isDefined(e.align)?t.$parent.$eval(e.align):i.align,n.create(this,t,e)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(r){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(t,e){return e.templateUrl||"uib/template/pager/pager.html"},link:function(t,e,n,i){e.addClass("pager");e=i[0],i=i[1];i&&e.init(i,r)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(e,n,t,i,r){var o=this,l=angular.isDefined(n.maxSize)?e.$parent.$eval(n.maxSize):r.maxSize,u=angular.isDefined(n.rotate)?e.$parent.$eval(n.rotate):r.rotate,c=angular.isDefined(n.forceEllipses)?e.$parent.$eval(n.forceEllipses):r.forceEllipses,h=angular.isDefined(n.boundaryLinkNumbers)?e.$parent.$eval(n.boundaryLinkNumbers):r.boundaryLinkNumbers,d=angular.isDefined(n.pageLabel)?function(t){return e.$parent.$eval(n.pageLabel,{$page:t})}:angular.identity;function p(t,e,n){return{number:t,text:e,active:n}}e.boundaryLinks=angular.isDefined(n.boundaryLinks)?e.$parent.$eval(n.boundaryLinks):r.boun
1daryLinks,e.directionLinks=angular.isDefined(n.directionLinks)?e.$parent.$eval(n.directionLinks):r.directionLinks,n.$set("role","menu"),i.create(this,e,n),n.maxSize&&o._watchers.push(e.$parent.$watch(t(n.maxSize),function(t){l=parseInt(t,10),o.render()}));var s=this.render;this.render=function(){s(),0<e.page&&e.page<=e.totalPages&&(e.pages=function(t,e){var n=[],i=1,r=e,o=angular.isDefined(l)&&l<e;o&&(u?e<(r=(i=Math.max(t-Math.floor(l/2),1))+l-1)&&(i=(r=e)-l+1):(i=(Math.ceil(t/l)-1)*l+1,r=Math.min(i+l-1,e)));for(var s=i;s<=r;s++){var a=p(s,d(s),s===t);n.push(a)}return o&&0<l&&(!u||c||h)&&(1<i&&((!h||3<i)&&(o=p(i-1,"...",!1),n.unshift(o)),h)&&(3===i&&(o=p(2,"2",!1),n.unshift(o)),i=p(1,"1",!1),n.unshift(i)),r<e)&&((!h||r<e-2)&&(o=p(r+1,"...",!1),n.push(o)),h)&&(r===e-2&&(i=p(e-1,e-1,!1),n.push(i)),o=p(e,e,!1),n.push(o)),n}(e.page,e.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(t,r){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(t,e){return e.templateUrl||"uib/template/pagination/pagination.html"},link:function(t,e,n,i){e.addClass("pagination");e=i[0],i=i[1];i&&e.init(i,r)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){var a={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},l={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},u={};this.options=function(t){angular.extend(u,t)},this.setTriggers=function(t){angular.extend(l,t)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(t,o,j,W,B,s,e,q,n){var U=n.createNew();function i(t){27===t.which&&(t=U.top())&&t.value.close()}return W.on("keyup",i),e.$on("$destroy",function(){W.off("keyup",i)}),function(H,F,n,z){function V(t){var t=(t||z.trigger||n).split(" "),e=t.map(function(t){return l[t]||t});return{show:t,hide:e}}z=angular.extend({},a,u,z);var t=H.replace(/[A-Z]/g,function(t,e){return(e?"-":"")+t.toLowerCase()}),e=s.startSymbol(),i=s.endSymbol(),r="<div "+t+'-popup uib-title="'+e+"title"+i+'" '+(z.useContentExp?'content-exp="contentExp()" ':'content="'+e+"content"+i+'" ')+'origin-scope="origScope" class="uib-position-measure '+F+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ></div>';return{compile:function(t,e){var L=o(r);return function(n,r,i,I){function e(){o&&o.html()&&(u=u||j(function(){var t=B.positionElements(r,o,m.placement,d),e=angular.isDefined(o.offsetHeight)?o.offsetHeight:o.prop("offsetHeight"),n=d?B.offset(r):B.position(r),i=(o.css({top:t.top+"px",left:t.left+"px"}),t.placement.split("-"));o.hasClass(i[0])||(o.removeClass(h.split("-")[0]),o.addClass(i[0])),o.hasClass(z.placementClassPrefix+t.placement)||(o.removeClass(z.placementClassPrefix+h),o.addClass(z.placementClassPrefix+t.placement)),c=j(function(){var t=angular.isDefined(o.offsetHeight)?o.offsetHeight:o.prop("offsetHeight"),t=B.adjustTop(i,n,e,t);t&&o.css(t),c=null},0,!1),o.hasClass("uib-position-measure")?(B.positionArrow(o,t.placement),o.removeClass("uib-position-measure")):h!==t.placement&&B.positionArrow(o,t.placement),h=t.placement,u=null},0,!1))}var o,t,s,a,l,u,c,h,d=!!angular.isDefined(z.appendToBody)&&z.appendToBody,p=V(void 0),f=angular.isDefined(i[F+"Enable"]),m=n.$new(!0),g=!1,v=!!angular.isDefined(i[F+"IsOpen"])&&q(i[F+"IsOpen"]),y=!!z.useContentExp&&q(i[H]),b=[];function _(){(m.isOpen?x:w)()}function w(){var t,e;f&&!n.$eval(i[F+"Enable"])||(S(),m.title=i[F+"Title"],m.content=y?y(n):i[H],m.popupClass=i[F+"Class"],m.placement=angular.isDefined(i[F+"Placement"])?i[F+"Placement"]:z.placement,t=B.parsePlacement(m.placement),h=t[1]?t[0]+"-"+t[1]:t[0],t=parseInt(i[F+"PopupDelay"],10),e=parseInt(i[F+"PopupCloseDelay"],10),m.popupDelay=isNaN(t)?z.popupDelay:t,m.popupCloseDelay=isNaN(e)?z.popupCloseDelay:e,m.popupDelay?a=a||j(C,m.popupDelay,!1):C())}function x(){k(),m.popupCloseDelay?l=l||j($,m.popupCloseDelay,!1):$()}function C(){if(k(),S(),!m.content)return angular.noop;o||(t=m.$new(),o=L(t,function(t){d?W.find("body").append(t):r.after(t)}),U.add(m,{close:$}),b.length=0,y?(b.push(n.$watch(y,function(t){!(m.content=t)&&m.isOpen&&$()}
1)),b.push(t.$watch(function(){g||(g=!0,t.$$postDigest(function(){g=!1,m&&m.isOpen&&e()}))}))):b.push(i.$observe(H,function(t){(!(m.content=t)&&m.isOpen?$:e)()})),b.push(i.$observe(F+"Title",function(t){m.title=t,m.isOpen&&e()})),b.push(i.$observe(F+"Placement",function(t){m.placement=t||z.placement,m.isOpen&&e()}))),m.$evalAsync(function(){T(m.isOpen=!0),e()})}function k(){a&&(j.cancel(a),a=null),u&&(j.cancel(u),u=null)}function $(){m&&m.$evalAsync(function(){m&&(T(m.isOpen=!1),m.animation?s=s||j(E,150,!1):E())})}function S(){l&&(j.cancel(l),l=null),s&&(j.cancel(s),s=null)}function E(){k(),S(),b.length&&(angular.forEach(b,function(t){t()}),b.length=0),o&&(o.remove(),o=null,c)&&j.cancel(c),U.remove(m),t&&(t.$destroy(),t=null)}function T(t){v&&angular.isFunction(v.assign)&&v.assign(n,t)}function D(t){m&&m.isOpen&&o&&(r[0].contains(t.target)||o[0].contains(t.target)||x())}function M(t){27===t.which&&x()}m.origScope=n,m.isOpen=!1,m.contentExp=function(){return m.content},i.$observe("disabled",function(t){t&&k(),t&&m.isOpen&&$()}),v&&n.$watch(v,function(t){m&&!t===m.isOpen&&_()});function A(){p.show.forEach(function(t){"outsideClick"===t?r.off("click",_):(r.off(t,w),r.off(t,_)),r.off("keypress",M)}),p.hide.forEach(function(t){"outsideClick"===t?W.off("click",D):r.off(t,x)})}var O,N,P;O=[],N=[],P=n.$eval(i[F+"Trigger"]),A(),"none"!==(p=angular.isObject(P)?(Object.keys(P).forEach(function(t){O.push(t),N.push(P[t])}),{show:O,hide:N}):V(P)).show&&p.show.forEach(function(t,e){"outsideClick"===t?(r.on("click",_),W.on("click",D)):t===p.hide[e]?r.on(t,_):t&&(r.on(t,w),r.on(p.hide[e],x)),r.on("keypress",M)});var R=n.$eval(i[F+"Animation"]),R=(m.animation=angular.isDefined(R)?!!R:z.animation,F+"AppendToBody"),R=R in i&&void 0===i[R]||n.$eval(i[R]),d=angular.isDefined(R)?R:d;n.$on("$destroy",function(){A(),E(),m=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(c,i,h,d){return{link:function(t,r,e){function o(){n&&(n.remove(),n=null),s&&(s.$destroy(),s=null),a&&(c.leave(a).then(function(){n=null}),n=a,a=null)}var s,n,a,l=t.$eval(e.tooltipTemplateTranscludeScope),u=0;t.$watch(i.parseAsResourceUrl(e.uibTooltipTemplateTransclude),function(n){var i=++u;n?(d(n,!0).then(function(t){var e;i===u&&(e=l.$new(),t=h(t)(e,function(t){o(),c.enter(t,r)}),a=t,(s=e).$emit("$includeContentLoaded",n))},function(){i===u&&(o(),t.$emit("$includeContentError",n))}),t.$emit("$includeContentRequested",n)):o()}),t.$on("$destroy",o)}}}]).directive("uibTooltipClasses",["$uibPosition",function(r){return{restrict:"A",link:function(t,e,n){var i;t.placement&&(i=r.parsePlacement(t.placement),e.addClass(i[0])),t.popupClass&&e.addClass(t.popupClass),t.animation&&e.addClass(n.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(t){return t("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(t){return t("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(t){return t("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(t){return t("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(t){return t("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(t){return t("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(t,e,n){var i=this,r=angular.isDefined(e.animate)?t.$parent.$eval(e.animate):n.animate;function o(){return angular.isDefined(t.maxParam)?t.maxParam:n.max}this.bars=[],t.max=o(),this.addBar=function(e,t,n){r||t.css({transition:"none"}),this.bars.push(e),e.max=o(),e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){var t=i.bars.reduce(function(t,e){return e.percent=+(100*e.value/e.max).toFixed(2),t+e.percent},0);100<t&&(e.percent-=t-100)},e.$on("$destroy",function(){t=null,i.removeBar(e)})},this.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1),this.bars.forEac
1h(function(t){t.recalculatePercentage()})},t.$watch("maxParam",function(t){i.bars.forEach(function(t){t.max=o(),t.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(t,e,n,i){i.addBar(t,e,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(t,e,n,i){i.addBar(t,angular.element(e.children()[0]),{title:n.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,n,i){var r={$setViewValue:angular.noop},o=this;this.init=function(t){(r=t).$render=this.render,r.$formatters.push(function(t){return t=angular.isNumber(t)&&t<<0!==t?Math.round(t):t}),this.stateOn=angular.isDefined(n.stateOn)?e.$parent.$eval(n.stateOn):i.stateOn,this.stateOff=angular.isDefined(n.stateOff)?e.$parent.$eval(n.stateOff):i.stateOff,this.enableReset=angular.isDefined(n.enableReset)?e.$parent.$eval(n.enableReset):i.enableReset;t=angular.isDefined(n.titles)?e.$parent.$eval(n.titles):i.titles,this.titles=angular.isArray(t)&&0<t.length?t:i.titles,t=angular.isDefined(n.ratingStates)?e.$parent.$eval(n.ratingStates):new Array(angular.isDefined(n.max)?e.$parent.$eval(n.max):i.max);e.range=this.buildTemplateObjects(t)},this.buildTemplateObjects=function(t){for(var e=0,n=t.length;e<n;e++)t[e]=angular.extend({index:e},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(e)},t[e]);return t},this.getTitle=function(t){return t>=this.titles.length?t+1:this.titles[t]},e.rate=function(t){!e.readonly&&0<=t&&t<=e.range.length&&(t=o.enableReset&&r.$viewValue===t?0:t,r.$setViewValue(t),r.$render())},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=r.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=r.$viewValue,e.title=o.getTitle(e.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(t,e,n,i){var r=i[0],i=i[1];r.init(i)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(t){var i,r,o=this;function s(t){for(var e=0;e<o.tabs.length;e++)if(o.tabs[e].index===t)return e}o.tabs=[],o.select=function(t,e){if(!r){var n=s(i),n=o.tabs[n];if(n){if(n.tab.onDeselect({$event:e,$selectedIndex:t}),e&&e.isDefaultPrevented())return;n.tab.active=!1}n=o.tabs[t];n?(n.tab.onSelect({$event:e}),n.tab.active=!0,o.active=n.index,i=n.index):!n&&angular.isDefined(i)&&(o.active=null,i=null)}},o.addTab=function(t){o.tabs.push({tab:t,index:t.index}),o.tabs.sort(function(t,e){return t.index>e.index?1:t.index<e.index?-1:0}),t.index!==o.active&&(angular.isDefined(o.active)||1!==o.tabs.length)||(t=s(t.index),o.select(t))},o.removeTab=function(t){for(var e,n,i=0;i<o.tabs.length;i++)if(o.tabs[i].tab===t){e=i;break}o.tabs[e].index===o.active&&(n=e===o.tabs.length-1?e-1:e+1%o.tabs.length,o.select(n)),o.tabs.splice(e,1)},t.$watch("tabset.active",function(t){angular.isDefined(t)&&t!==i&&o.select(s(t))}),t.$on("$destroy",function(){r=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(t,e){return e.templateUrl||"uib/template/tabs/tabset.html"},link:function(t,e,n){t.vertical=!!angular.isDefined(n.vertical)&&t.$parent.$eval(n.vertical),t.justified=!!angular.isDefined(n.justified)&&t.$parent.$eval(n.justified)}}}).directive("uibTab",["$parse",function(o){return{require:"^uibTabset",replace:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(i,t,e,r,n){i.disabled=!1,e.disable&&i.$parent.$watch(o(e.disable),function(t){i.disabled=!!t}),angular.isUndefined(e.index)&&(r.tabs&&r.tabs.length?i.index=Math.max.apply(null,r.tabs.map(function(t){return t.index}
1))+1:i.index=0),angular.isUndefined(e.classes)&&(i.classes=""),i.select=function(t){if(!i.disabled){for(var e,n=0;n<r.tabs.length;n++)if(r.tabs[n].tab===i){e=n;break}r.select(e,t)}},r.addTab(i),i.$on("$destroy",function(){r.removeTab(i)}),i.$transcludeFn=n}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(t,e){t.$watch("headingElement",function(t){t&&(e.html(""),e.append(t))})}}}).directive("uibTabContentTransclude",function(){return{restrict:"A",require:"^uibTabset",link:function(t,n,e){var i=t.$eval(e.uibTabContentTransclude).tab;i.$transcludeFn(i.$parent,function(t){angular.forEach(t,function(t){var e;(e=t).tagName&&(e.hasAttribute("uib-tab-heading")||e.hasAttribute("data-uib-tab-heading")||e.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===e.tagName.toLowerCase()||"data-uib-tab-heading"===e.tagName.toLowerCase()||"x-uib-tab-heading"===e.tagName.toLowerCase()||"uib:tab-heading"===e.tagName.toLowerCase())?i.headingElement=t:n.append(t)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(r,t,i,e,n,o,s){var a,l,u,c,h,d=new Date,p=[],f={$setViewValue:angular.noop},m=angular.isDefined(i.meridians)?r.$parent.$eval(i.meridians):s.meridians||o.DATETIME_FORMATS.AMPMS,g=!angular.isDefined(i.padHours)||r.$parent.$eval(i.padHours),v=(r.tabindex=angular.isDefined(i.tabindex)?i.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,e){(f=t).$render=this.render,f.$formatters.unshift(function(t){return t?new Date(t):null});var t=e.eq(0),n=e.eq(1),e=e.eq(2);a=t.controller("ngModel"),l=n.controller("ngModel"),u=e.controller("ngModel"),(angular.isDefined(i.mousewheel)?r.$parent.$eval(i.mousewheel):s.mousewheel)&&this.setupMousewheelEvents(t,n,e),(angular.isDefined(i.arrowkeys)?r.$parent.$eval(i.arrowkeys):s.arrowkeys)&&this.setupArrowkeyEvents(t,n,e),r.readonlyInput=angular.isDefined(i.readonlyInput)?r.$parent.$eval(i.readonlyInput):s.readonlyInput,this.setupInputEvents(t,n,e)},s.hourStep),y=(i.hourStep&&p.push(r.$parent.$watch(e(i.hourStep),function(t){v=+t})),s.minuteStep),b=(i.minuteStep&&p.push(r.$parent.$watch(e(i.minuteStep),function(t){y=+t})),p.push(r.$parent.$watch(e(i.min),function(t){t=new Date(t);c=isNaN(t)?void 0:t})),p.push(r.$parent.$watch(e(i.max),function(t){t=new Date(t);h=isNaN(t)?void 0:t})),!1),_=(i.ngDisabled&&p.push(r.$parent.$watch(e(i.ngDisabled),function(t){b=t})),r.noIncrementHours=function(){var t=T(d,60*v);return b||h<t||t<d&&t<c},r.noDecrementHours=function(){var t=T(d,60*-v);return b||t<c||d<t&&h<t},r.noIncrementMinutes=function(){var t=T(d,y);return b||h<t||t<d&&t<c},r.noDecrementMinutes=function(){var t=T(d,-y);return b||t<c||d<t&&h<t},r.noIncrementSeconds=function(){var t=D(d,_);return b||h<t||t<d&&t<c},r.noDecrementSeconds=function(){var t=D(d,-_);return b||t<c||d<t&&h<t},r.noToggleMeridian=function(){return d.getHours()<12?b||T(d,720)>h:b||T(d,-720)<c},s.secondStep);function w(){var t=+r.hours;if((r.showMeridian?0<t&&t<13:0<=t&&t<24)&&""!==r.hours)return r.showMeridian&&(12===t&&(t=0),r.meridian===m[1])&&(t+=12),t}function x(){var t=+r.minutes;if(0<=t&&t<60&&""!==r.minutes)return t}function C(t,e){return null===t?"":angular.isDefined(t)&&t.toString().length<2&&!e?"0"+t:t.toString()}function k(t){$(),f.$setViewValue(new Date(d)),S(t)}function $(){a&&a.$setValidity("hours",!0),l&&l.$setValidity("minutes",!0),u&&u.$setValidity("seconds",!0),f.$setValidity("time",!0),r.invalidHours=!1,r.invalidMinutes=!1,r.invalidSeconds=!1}function S(t){var e,n,i;f.$modelValue?(e=d.getHours(),n=d.getMinutes(),i=d.getSeconds(),r.showMeridian&&(e=0===e||12===e?12:e%12),r.hours="h"===t?e:C(e,!g),"m"!==t&&(r.minutes=C(n)),r.meridian=d.getHours()<12?m[0]:m[1],"s"!==t&&(r.seconds=C(i)),r.meridian=d.getHours()<12?m[0]:m[1]):(r.hours=null,r.minutes=null,r.seconds=null,r.meridian=m[0])}function E(t){d=D(d,t),k()}function T(t,e){return D(t,60*e)}function D(t,e){e=new Date(t.getTime()+1e3*e),t=new Date(t);return t.setHours(e.getHours(),e.getMinutes(),e.getSeconds()),t}function M(){return(null===r.hours||""===r.hours)&&(null===r.minutes||""===r.minutes)&&(!r.showSeconds||r.showSeconds&&(null===r.seconds||""===r.seconds))}i.secondStep&&p.push(r.$parent.$watch(e(i.secondStep),function(t){_=+t})),r.showSeconds=s.showSeconds,i.showSeconds&&p.push(r.$parent.$watch(e(i.showSeconds),function(t){r.showSeconds=!!t})),r.showMeridian=s.showMeridian,i.showMeridian&&p.push(r.$parent.$watch(e(i.showMeridian),function(t){var e;
1r.showMeridian=!!t,f.$error.time?(t=w(),e=x(),angular.isDefined(t)&&angular.isDefined(e)&&(d.setHours(t),k())):S()})),this.setupMousewheelEvents=function(t,e,n){function i(t){var e=(t=t.originalEvent?t.originalEvent:t).wheelDelta||-t.deltaY;return t.detail||0<e}t.on("mousewheel wheel",function(t){b||r.$apply(i(t)?r.incrementHours():r.decrementHours()),t.preventDefault()}),e.on("mousewheel wheel",function(t){b||r.$apply(i(t)?r.incrementMinutes():r.decrementMinutes()),t.preventDefault()}),n.on("mousewheel wheel",function(t){b||r.$apply(i(t)?r.incrementSeconds():r.decrementSeconds()),t.preventDefault()})},this.setupArrowkeyEvents=function(t,e,n){t.on("keydown",function(t){b||(38===t.which?(t.preventDefault(),r.incrementHours(),r.$apply()):40===t.which&&(t.preventDefault(),r.decrementHours(),r.$apply()))}),e.on("keydown",function(t){b||(38===t.which?(t.preventDefault(),r.incrementMinutes(),r.$apply()):40===t.which&&(t.preventDefault(),r.decrementMinutes(),r.$apply()))}),n.on("keydown",function(t){b||(38===t.which?(t.preventDefault(),r.incrementSeconds(),r.$apply()):40===t.which&&(t.preventDefault(),r.decrementSeconds(),r.$apply()))})},this.setupInputEvents=function(t,e,n){var i;r.readonlyInput?(r.updateHours=angular.noop,r.updateMinutes=angular.noop,r.updateSeconds=angular.noop):(i=function(t,e,n){f.$setViewValue(null),f.$setValidity("time",!1),angular.isDefined(t)&&(r.invali
1dHours=t,a)&&a.$setValidity("hours",!1),angular.isDefined(e)&&(r.invalidMinutes=e,l)&&l.$setValidity("minutes",!1),angular.isDefined(n)&&(r.invalidSeconds=n,u)&&u.$setValidity("seconds",!1)},r.updateHours=function(){var t=w(),e=x();f.$setDirty(),!angular.isDefined(t)||!angular.isDefined(e)||(d.setHours(t),d.setMinutes(e),d<c)||h<d?i(!0):k("h")},t.on("blur",function(t){f.$setTouched(),M()?$():null===r.hours||""===r.hours?i(!0):!r.invalidHours&&r.hours<10&&r.$apply(function(){r.hours=C(r.hours,!g)})}),r.updateMinutes=function(){var t=x(),e=w();f.$setDirty(),!angular.isDefined(t)||!angular.isDefined(e)||(d.setHours(e),d.setMinutes(t),d<c)||h<d?i(void 0,!0):k("m")},e.on("blur",function(t){f.$setTouched(),M()?$():null===r.minutes?i(void 0,!0):!r.invalidMinutes&&r.minutes<10&&r.$apply(function(){r.minutes=C(r.minutes)})}),r.updateSeconds=function(){var t=0<=(t=+r.seconds)&&t<60?t:void 0;f.$setDirty(),angular.isDefined(t)?(d.setSeconds(t),k("s")):i(void 0,void 0,!0)},n.on("blur",function(t){M()?$():!r.invalidSeconds&&r.seconds<10&&r.$apply(function(){r.seconds=C(r.seconds)})}))},this.render=function(){var t=f.$viewValue;isNaN(t)?(f.$setValidity("time",!1),n.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):((d=t?t:d)<c||h<d?(f.$setValidity("time",!1),r.invalidHours=!0,r.invalidMinutes=!0):$(),S())},r.showSpinners=angular.isDefined(i.showSpinners)?r.$parent.$eval(i.showSpinners):s.showSpinners,r.incrementHours=function(){r.noIncrementHours()||E(60*v*60)},r.decrementHours=function(){r.noDecrementHours()||E(60*-v*60)},r.incrementMinutes=function(){r.noIncrementMinutes()||E(60*y)},r.decrementMinutes=function(){r.noDecrementMinutes()||E(60*-y)},r.incrementSeconds=function(){r.noIncrementSeconds()||E(_)},r.decrementSeconds=function(){r.noDecrementSeconds()||E(-_)},r.toggleMeridian=function(){var t=x(),e=w();r.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(e)?E(720*(d.getHours()<12?60:-60)):r.meridian=r.meridian===m[0]?m[1]:m[0])},r.blur=function(){f.$setTouched()},r.$on("$destroy",function(){for(;p.length;)p.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(t,e){return e.templateUrl||n.templateUrl},link:function(t,e,n,i){var r=i[0],i=i[1];i&&r.init(i,e.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(t){var e=t.match(i);if(e)return{itemName:e[3],source:n(e[4]),viewMapper:n(e[2]||e[1]),modelMapper:n(e[1])};throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+t+'".')}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(a,l,s,I,e,L,u,t,n,H,c,i,r){var h,d,p,f,o,m,g,F=[9,13,27,38,40],v=a.$eval(s.typeaheadMinLength),y=(v||0===v||(v=1),a.$watch(s.typeaheadMinLength,function(t){v=t||0===t?t:1}),a.$eval(s.typeaheadWaitMs)||0),b=!1!==a.$eval(s.typeaheadEditable),_=(a.$watch(s.typeaheadEditable,function(t){b=!1!==t}),e(s.typeaheadLoading).assign||angular.noop),z=s.typeaheadShouldSelect?e(s.typeaheadShouldSelect):function(t,e){e=e.$event;return 13===e.which||9===e.which},V=e(s.typeaheadOnSelect),j=!!angular.isDefined(s.typeaheadSelectOnBlur)&&a.$eval(s.typeaheadSelectOnBlur),w=e(s.typeaheadNoResults).assign||angular.noop,x=s.typeaheadInputFormatter?e(s.typeaheadInputFormatter):void 0,C=!!s.typeaheadAppendToBody&&a.$eval(s.typeaheadAppendToBody),k=s.typeaheadAppendTo?a.$eval(s.typeaheadAppendTo):null,W=!1!==a.$eval(s.typeaheadFocusFirst),B=!!s.typeaheadSelectOnExact&&a.$eval(s.typeaheadSelectOnExact),q=e(s.typeaheadIsOpen).assign||angular.noop,$=a.$eval(s.typeaheadShowHint)||!1,S=e(s.ngModel),U=e(s.ngModel+"($$$p)"),E=r.parse(s.uibTypeahead),T=a.$new(),r=a.$on("$destroy",function(){T.$destroy()}),D=(T.$on("$destroy",r),"typeahead-"+T.$id+"-"+Math.floor(1e4*Math.random())),M=(l.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":D}),$&&((o=angular.element("<div></div>")).css("position","relative"),l.after(o),(m=l.clone()).attr("placeholder",""),m.attr("tabindex","-1"),m.val(""),m.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),l.css({position:"relative","vertical-align":"top","background-color":"transparent"}),m.attr("id")&&m.removeAttr("id"),o.append(m),m.after(l)),angular.element("<div uib-typeahead-popup></div>")),Y=(M.attr({id:D,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(s.typeaheadTemplateUrl)&&M.attr("template-url",s.typeaheadTemplateUrl),angular.isDefined(s.typeaheadPopupTemplateUrl)&&M.attr("popup-template-url",s.typeaheadPopupTemplateUrl),function(){$&&m.val("")}
1),A=function(){T.matches=[],T.activeIdx=-1,l.attr("aria-expanded",!1),Y()},O=function(t){return D+"-option-"+t},G=(T.$watch("activeIdx",function(t){t<0?l.removeAttr("aria-activedescendant"):l.attr("aria-activedescendant",O(t))}),function(t,e){return!!(T.matches.length>e&&t)&&t.toUpperCase()===T.matches[e].label.toUpperCase()}),N=function(r,o){var s={$viewValue:r};_(a,!0),w(a,!1),L.when(E.source(a,s)).then(function(t){var e=r===h.$viewValue;if(e&&p)if(t&&0<t.length){T.activeIdx=W?0:-1,w(a,!1);for(var n,i=T.matches.length=0;i<t.length;i++)s[E.itemName]=t[i],T.matches.push({id:O(i),label:E.viewMapper(T,s),model:t[i]});T.query=r,X(),l.attr("aria-expanded",!0),B&&1===T.matches.length&&G(r,0)&&(angular.isNumber(T.debounceUpdate)||angular.isObject(T.debounceUpdate)?c(function(){T.select(0,o)},angular.isNumber(T.debounceUpdate)?T.debounceUpdate:T.debounceUpdate.default):T.select(0,o)),$&&(n=T.matches[0].label,angular.isString(r)&&0<r.length&&n.slice(0,r.length).toUpperCase()===r.toUpperCase()?m.val(r+n.slice(r.length)):m.val(""))}else A(),w(a,!0);e&&_(a,!1)},function(){A(),_(a,!1),w(a,!0)})},K=(C&&(angular.element(n).on("resize",P),t.find("body").on("scroll",P)),c(function(){T.matches.length&&X(),T.moveInProgress=!1},200));function P(){T.moveInProgress||(T.moveInProgress=!0,T.$digest()),K()}function X(){T.position=C?i.offset(l):i.position(l),T.position.top+=l.prop("offsetHeight")}T.moveInProgress=!1,T.query=void 0;function Z(){g&&u.cancel(g)}function Q(t){l[0]!==t.target&&3!==t.which&&0!==T.matches.length&&(A(),H.$$phase||a.$digest())}A(),T.assignIsOpen=function(t){q(a,t)},T.select=function(t,e){var n,i,r,o={};f=!0,o[E.itemName]=t=T.matches[t].model,n=E.modelMapper(a,o),i=a,r=n,angular.isFunction(S(a))&&d.getOption("getterSetter")?U(i,{$$$p:r}):S.assign(i,r),h.$setValidity("editable",!0),h.$setValidity("parse",!0),V(a,{$item:t,$model:n,$label:E.viewMapper(a,o),$event:e}),A(),!1!==T.$eval(s.typeaheadFocusOnSelect)&&u(function(){l[0].focus()},0,!1)},l.on("keydown",function(t){if(0!==T.matches.length&&-1!==F.indexOf(t.which)){var e,n=z(a,{$event:t});if(-1===T.activeIdx&&n||9===t.which&&t.shiftKey)A(),T.$digest();else switch(t.preventDefault(),t.which){case 27:t.stopPropagation(),A(),a.$digest();break;case 38:T.activeIdx=(0<T.activeIdx?T.activeIdx:T.matches.length)-1,T.$digest(),(e=M[0].querySelectorAll(".uib-typeahead-match")[T.activeIdx]).parentNode.scrollTop=e.offsetTop;break;case 40:T.activeIdx=(T.activeIdx+1)%T.matches.length,T.$digest(),(e=M[0].querySelectorAll(".uib-typeahead-match")[T.activeIdx]).parentNode.scrollTop=e.offsetTop;break;default:n&&T.$apply(function(){angular.isNumber(T.debounceUpdate)||angular.isObject(T.debounceUpdate)?c(function(){T.select(T.activeIdx,t)},angular.isNumber(T.debounceUpdate)?T.debounceUpdate:T.debounceUpdate.default):T.select(T.activeIdx,t)}
1)}}}),l.on("focus",function(t){p=!0,0!==v||h.$viewValue||u(function(){N(h.$viewValue,t)},0)}),l.on("blur",function(t){j&&T.matches.length&&-1!==T.activeIdx&&!f&&(f=!0,T.$apply(function(){angular.isObject(T.debounceUpdate)&&angular.isNumber(T.debounceUpdate.blur)?c(function(){T.select(T.activeIdx,t)},T.debounceUpdate.blur):T.select(T.activeIdx,t)})),!b&&h.$error.editable&&(h.$setViewValue(),T.$apply(function(){h.$setValidity("editable",!0),h.$setValidity("parse",!0)}),l.val("")),f=p=!1});t.on("click",Q),a.$on("$destroy",function(){t.off("click",Q),(C||k)&&R.remove(),C&&(angular.element(n).off("resize",P),t.find("body").off("scroll",P)),M.remove(),$&&o.remove()});var R=I(M)(T);C?t.find("body").append(R):k?angular.element(k).eq(0).append(R):l.after(R),this.init=function(t){d=function(t){var e;angular.version.minor<6?(e=t.$options||{}).getOption=function(t){return e[t]}:e=t.$options;return e}(h=t),T.debounceUpdate=e(d.getOption("debounce"))(a),h.$parsers.unshift(function(t){var e;return p=!0,0===v||t&&t.length>=v?0<y?(Z(),e=t,g=u(function(){N(e)},y)):N(t):(_(a,!1),Z(),A()),b?t:t?void h.$setValidity("editable",!1):(h.$setValidity("editable",!0),null)}),h.$formatters.push(function(t){var e,n={};return b||h.$setValidity("editable",!0),x?(n.$model=t,x(a,n)):(n[E.itemName]=t,e=E.viewMapper(a,n),n[E.itemName]=void 0,e!==E.viewMapper(a,n)?e:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","uibTypeahead"],link:function(t,e,n,i){i[1].init(i[0])}}}).directive("uibTypeaheadPopup",["$$debounce",function(r){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(t,e){return e.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(i,t,e){i.templateUrl=e.templateUrl,i.isOpen=function(){var t=0<i.matches.length;return i.assignIsOpen({isOpen:t}),t},i.isActive=function(t){return i.active===t},i.selectActive=function(t){i.active=t},i.selectMatch=function(t,e){var n=i.debounce();angular.isNumber(n)||angular.isObject(n)?r(function(){i.select({activeIdx:t,evt:e})},angular.isNumber(n)?n:n.default):i.select({activeIdx:t,evt:e})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(i,r,o){return{scope:{index:"=",match:"=",query:"="},link:function(e,n,t){t=o(t.templateUrl)(e.$parent)||"uib/template/typeahead/typeahead-match.html";i(t).then(function(t){t=angular.element(t.trim());n.replaceWith(t),r(t)(e)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,t,i){var r;return r=t.has("$sanitize"),function(t,e){return!r&&/<.*>/g.test(t)&&i.warn("Unsafe use of typeahead please use ngSanitize"),t=e?(""+t).replace(new RegExp(e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):t,t=r?t:n.trustAsHtml(t)}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(t){t.put("uib/template/accordion/accordion-group.html",'<div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n  <h4 class="panel-title">\n    <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading" ng-disabled="isDisabled" uib-tabindex-toggle><span uib-accordion-header ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n  </h4>\n</div>\n<div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n  <div class="panel-body" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(t){t.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude></div>')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(t){t.put("uib/template/alert/alert.html",'<button ng-show="closeable" t
1ype="button" class="close" ng-click="close({$event: $event})">\n  <span aria-hidden="true">&times;</span>\n  <span class="sr-only">Close</span>\n</button>\n<div ng-transclude></div>\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(t){t.put("uib/template/carousel/carousel.html",'<div class="carousel-inner" ng-transclude></div>\n<a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" ng-show="slides.length > 1">\n  <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n  <span class="sr-only">previous</span>\n</a>\n<a role="button" href class="right carousel-control" ng-click="next()" ng-class="{ disabled: isNextDisabled() }" ng-show="slides.length > 1">\n  <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n  <span class="sr-only">next</span>\n</a>\n<ol class="carousel-indicators" ng-show="slides.length > 1">\n  <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n    <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n  </li>\n</ol>\n')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(t){t.put("uib/template/carousel/slide.html",'<div class="text-center" ng-transclude></div>\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/datepicker.html",'<div ng-switch="datepickerMode">\n  <div uib-daypicker ng-switch-when="day" tabindex="0" class="uib-daypicker"></div>\n  <div uib-monthpicker ng-switch-when="month" tabindex="0" class="uib-monthpicker"></div>\n  <div uib-yearpicker ng-switch-when="year" tabindex="0" class="uib-yearpicker"></div>\n</div>\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n      <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></button></th>\n    </tr>\n    <tr>\n      <th ng-if="showWeeks" class="text-center"></th>\n      <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-weeks" ng-repeat="row in rows track by $index" role="row">\n      <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n      <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default btn-sm"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n      <th colspan="{{::yearHeaderColspan}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === max
1Mode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-months" ng-repeat="row in rows track by $index" role="row">\n      <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n      <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-years" ng-repeat="row in rows track by $index" role="row">\n      <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepickerPopup/popup.html",'<ul role="presentation" class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n  <li ng-transclude></li>\n  <li ng-if="showButtonBar" class="uib-button-bar">\n    <span class="btn-group pull-left">\n      <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n      <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}</button>\n    </span>\n    <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}</button>\n  </li>\n</ul>\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(t){t.put("uib/template/modal/window.html","<div class=\"modal-dialog {{size ? 'modal-' + size : ''}}\"><div class=\"modal-content\" uib-modal-transclude></div></div>\n")}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(t){t.put("uib/template/pager/pager.html",'<li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(t){t.put("uib/template/pagination/pagination.html",'<li role="menuitem" ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'first\')}}</a></li>\n<li role="menuitem" ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li role="menuitem" ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)" ng-disabled="ngDisabled&&!page.active" uib-tabindex-toggle>{{page.text}}</a></li>\n<li role="menuitem" ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n<li role="menuitem" ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'last\')}}</a></li>\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind="content"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner"\n  uib-tooltip-template-transclude="contentExp()"\n  tooltip-template-transclude-scope="originScope()"></div>\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover-html.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover-template.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content"\n      uib-tooltip-template-transclude="contentExp()"\n      tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content" ng-bind="content"></div>\n</div>\n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(t){t.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}" aria-valuetext="{{title}}">\n    <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n    <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}"></i>\n</span>\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(t){t.put("uib/template/tabs/tab.html",'<li ng-class="[{active: active, disabled: disabled}, classes]" class="uib-tab nav-item">\n  <a href ng-click="select($event)" class="nav-link" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(t){t.put("uib/template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{tabset.type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n  <div class="tab-content">\n    <div class="tab-pane"\n         ng-repeat="tab in tabset.tabs"\n         ng-class="{active: tabset.active === tab.index}"\n         uib-tab-content-transclude="tab">\n    </div>\n  </div>\n</div>\n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(t){t.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n  <tbody>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</td>\n      <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n    <tr>\n      <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n        <input type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n      </td>\n      <td class="uib-separator">:</td>\n      <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n        <input type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n      </td>\n      <td ng-show="showSeconds" class="uib-separator">:</td>\n      <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n        <input type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n      </td>\n      <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n    </tr>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</td>\n      <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(t){t.put("uib/template/typeahead/typeahead-match.html",'<a href\n   tabindex="-1"\n   ng-bind-html="match.label | uibTypeaheadHighlight:query"\n   ng-attr-title="{{match.label}}"></a>\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li class="uib-typeahead-match" ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="{{::match.id}}">\n        <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>\n')}]),angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.$$uibC
1arouselCss||angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),angular.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}</style>'),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){angular.$$csp().noInlineStyle||angular.$$uibPositionCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerpopupCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTooltipCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTimepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>'),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTypeaheadCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'),angular.$$uibTypeaheadCss=!0}),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("angular")):"function"==typeof define&&define.amd?define(["exports","angular"],e):e(t["@uirouter/angularjs"]={},t.angular)}(this,function(g,I){"use strict";var L=angular,C=I&&I.module?I:L;function H(n){var t=[].slice.apply(arguments,[1]),i=n.length;return function t(e){return e.length>=i?n.apply(null,e):function(){return t(e.concat([].slice.apply(arguments)))}}(t)}function F(){var n=arguments,i=n.length-1;return function(){for(var t=i,e=n[i].apply(this,arguments);t--;)e=n[t].call(this,e);return e}}function z(){for(var t=0;t<arguments.length;t++)t,0;return F.apply(null,[].slice.call(arguments).reverse())}var v=function(e){return function(t){return t&&t[e]}},V=H(function(t,e,n){return n&&n[t]===e}),k=function(t){return z.apply(null,t.split(".").map(v))},j=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return!n.apply(null,t)}};function W(n,i){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.apply(null,t)&&i.apply(null,t)}}function B(n,i){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.apply(null,t)||i.apply(null,t)}}function q(n){return function(t){return t.reduce(function(t,e){return t&&!!n(e)},!0)}}function U(n){return function(t){return t.reduce(function(t,e){return t||!!n(e)},!1)}}function Y(e){return function(t){return e===t}}var s=function(e){return function(t){return null!=t&&t.constructor===e||t instanceof e}},a=function(t){return function(){return t}};function G(e,n){return function(t){return t[e].apply(t,n)}}function K(n){return function(t){for(var e=0;e<n.length;e++)if(n[e][0](t))return n[e][1](t)}}Z.prototype.matches=function(t){return this.regexp.test("."+t)},Z.is=function(t){return!!/[!,*]+/.exec(t)},Z.fromString=function(t){return Z.is(t)?new Z(t):null};var X=Z;function Z(t){this.text=t,this.glob=t.split(".");t=this.text.split(".").map(function(t){return"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t}).join("");this.regexp=new RegExp("^"+t+"$")}J.create=function(t){t=J.isStateClass(t)?new t:t;var e=vt(vt(t,J.prototype));return t.$$state=function(){return e},e.self=t,e.__stateObjectCache={nameGlob:X.fromString(e.name)}
1,e},J.prototype.is=function(t){return this===t||this.self===t||this.fqn()===t},J.prototype.fqn=function(){var t;return this.parent&&this.parent instanceof this.constructor&&(t=this.parent.fqn())?t+"."+this.name:this.name},J.prototype.root=function(){return this.parent&&this.parent.root()||this},J.prototype.parameters=function(e){return((e=Ct(e,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Rt(this.params)).filter(function(t){return!e.matchingKeys||e.matchingKeys.hasOwnProperty(t.id)})},J.prototype.parameter=function(t,e){return void 0===e&&(e={}),this.url&&this.url.parameter(t,e)||Mt(Rt(this.params),V("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)},J.prototype.toString=function(){return this.fqn()},J.isStateClass=function(t){return h(t)&&!0===t.__uiRouterState},J.isState=function(t){return d(t.__stateObjectCache)};var Q=J;function J(t){return J.create(t||{})}function tt(e){return function(t){return typeof t===e}}function et(t){return null===t}function nt(t){return"[object Date]"===rt.call(t)}function it(t){return"[object RegExp]"===rt.call(t)}var rt=Object.prototype.toString,ot=tt("undefined"),$=j(ot),st=B(et,ot),h=tt("function"),at=tt("number"),y=tt("string"),d=function(t){return null!==t&&"object"==typeof t},b=Array.isArray,lt=Q.isState;function ut(t){var e,n;return b(t)&&t.length?(e=t.slice(0,-1),n=t.slice(-1),!(e.filter(j(y)).length||n.filter(j(h)).length)):h(t)}function ct(t){return function(){throw new Error(t+"(): No coreservices implementation for UI-Router is loaded.")}}var ht=W(d,z(v("then"),h)),c={$q:void 0,$injector:void 0},dt="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||void 0,I=dt.angular||{},L=I.fromJson||JSON.parse.bind(JSON),pt=I.toJson||JSON.stringify.bind(JSON),ft=I.forEach||function(e,n,t){if(b(e))return e.forEach(n,t);Object.keys(e).forEach(function(t){return n(e[t],t)})},_=Object.assign||Yt,mt=I.equals||Gt;function m(t){return t}function gt(){}function l(e,i,n,t,r){void 0===r&&(r=!1);function o(t){return e()[t].bind(n())}return(t=t||Object.keys(e())).reduce(function(t,e){var n;return t[e]=r?(n=e,function(){return i[n]=o(n),i[n].apply(null,arguments)}):o(e),t},i)}var vt=function(t,e){return _(Object.create(t),e)},yt=H(bt);function bt(t,e){return-1!==t.indexOf(e)}var p=H(_t);function _t(t,e){e=t.indexOf(e);return 0<=e&&t.splice(e,1),t}I=H(wt);function wt(t,e){return t.push(e),e}function xt(e){return e.slice().forEach(function(t){"function"==typeof t&&t(),p(e,t)})}function Ct(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=e.concat({}).reverse(),i=_.apply(null,i);return _({},i,St(t||{},Object.keys(i)))}function kt(t,e){return _(t,e)}function $t(t,e){var n,i=[];for(n in t.path){if(t.path[n]!==e.path[n])break;i.push(t.path[n])}return i}function St(t,e){var n,i={};for(n in t)-1!==e.indexOf(n)&&(i[n]=t[n]);return i}function Et(n,t){return Object.keys(n).filter(j(yt(t))).reduce(function(t,e){return t[e]=n[e],t},{})}function Tt(t,e){return w(t,v(e))}function Dt(t,n){var e=b(t),i=e?[]:{},r=e?function(t){return i.push(t)}:function(t,e){return i[e]=t};return ft(t,function(t,e){n(t,e)&&r(t,e)}),i}function Mt(t,n){var i;return ft(t,function(t,e){i||n(t,e)&&(i=t)}),i}var At=w;function w(t,n){var i=b(t)?[]:{};return ft(t,function(t,e){return i[e]=n(t,e)}),i}function Ot(t,e){return t&&e}function Nt(t,e){return t||e}function Pt(t,e){return b(e)?t.concat(e.reduce(Pt,[])):It(t,e)}var Rt=function(e){return Object.keys(e).map(function(t){return e[t]})},f=function(t,e){return t.concat(e)};function It(t,e){return t.push(e),t}function Lt(t,e){return yt(t,e)?t:It(t,e)}function Ht(t){return t.reduce(f,[])}function Ft(t){return t.reduce(Pt,[])}var zt=jt,Vt=jt;function jt(n,i){return void 0===i&&(i="assert failure"),function(t){var e=n(t);if(e)return e;throw new Error(h(i)?i(t):i)}}function Wt(e){return Object.keys(e).map(function(t){return[t,e[t]]})}function Bt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return[];for(var n=t.reduce(function(t,e){return Math.min(e.length,t)},9007199254740991),i=[],r=0;r<n;r++)switch(t.length){case 1:i.push([t[0][r]]);break;case 2:i.push([t[0][r],t[1][r]]);break;case 3:i.push([t[0][r],t[1][r],t[2][r]]);break;case 4:i.push([t[0][r],t[1][r],t[2][r],t[3][r]]);break;default:i.push(t.map(function(t){return t[r]}))}return i}function qt(t,e){var n,i;if(b(e)&&(n=e[0],i=e[1]),y(n))return t[n]=i,t;throw new Error("invalid parameters to applyPairs")}function x(t){return t.length&&t[t.length-1]||void 0}function Ut(t,e){return e&&Object.keys(e).forEach(function(t){return delete e[t]}),_(e=e||{},t)}function Yt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var i=Object.keys(n),r=0;r<i.length;r++)t[i[r]]=n[i[r]]}return t}function Gt(t,e){if(t!==e){if(null===t||null===e)return!1;if(t==t||e==e){var n=typeof t;if(n!=typeof e||"object"!=n)return!1;var i,r=[t,e];if(q(b)(r))return n=e,(i=t).length===n.length&&Bt(i,n).reduce(function(t,e){return t&&Gt(e[0],e[1])},!0);if(q(nt)(r))return t.getTime()===e.getTime();if(q(it)(r))return t.toString()===e.toString();if(!q(h)(r)){if([h,b,nt,it].map(U).reduce(function(t,e){return t||!!e(r)},!1))return!1;var o,s={};for(o in t){if(!Gt(t[o],e[o]))return!1;s[o]=!0}for(o in e)if(!s[o])return!1}}}return!0}function Kt(t){return t.catch(function(t){return 0})&&t}function Xt(t){return Kt(c.$q.reject(t))}Qt.prototype.enqueue=function(t){var e=this._items;return e.push(t),this._limit&&e.length>this._limit&&e.shift(),t},Qt.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},Qt.prototype.clear=function(){var t=this._items;return this._items=[],t},Qt.prototype.size=function(){return this._items.length},Qt.prototype.remove=function(t){t=this._items.indexOf(t);return-1<t&&this._items.splice(t,1)[0]},Qt.prototype.peekTail=function(){return this._items[this._items.length-1]},Qt.prototype.peekHead=function(){if(this.size())return this._items[0]};var Zt=Qt;function Qt(t,e){void 0===e&&(e=null),this._items=t=void 0===t?[]:t,this._limit=e}(t=g.RejectType||(g.RejectType={}))[t.SUPERSEDED=2]="SUPERSEDED",t[t.ABORTED=3]="ABORTED",t[t.INVALID=4]="INVALID",t[t.IGNORED=5]="IGNORED",t[t.ERROR=6]="ERROR";var Jt=0,S=(n.prototype.toString=function(){var t=(t=this.detail)&&t.toString!==Object.prototype.toString?t.toString():M(t);
1return"Transition Rejection($id: "+this.$id+" type: "+this.type+", message: "+this.message+", detail: "+t+")"},n.prototype.toPromise=function(){return _(Xt(this),{_transitionRejection:this})},n.isRejectionPromise=function(t){return t&&"function"==typeof t.then&&s(n)(t._transitionRejection)},n.superseded=function(t,e){t=new n(g.RejectType.SUPERSEDED,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(t.redirected=!0),t},n.redirected=function(t){return n.superseded(t,{redirected:!0})},n.invalid=function(t){return new n(g.RejectType.INVALID,"This transition is invalid",t)},n.ignored=function(t){return new n(g.RejectType.IGNORED,"The transition was ignored",t)},n.aborted=function(t){return new n(g.RejectType.ABORTED,"The transition has been aborted",t)},n.errored=function(t){return new n(g.RejectType.ERROR,"The transition errored",t)},n.normalize=function(t){return s(n)(t)?t:n.errored(t)},n);function n(t,e,n){this.$id=Jt++,this.type=t,this.message=e,this.detail=n}function te(t){var e;return t?(e=t.creationContext?t.creationContext.name||"(root)":"(none)","[ui-view#"+t.id+" "+t.$type+":"+t.fqn+" ("+t.name+"@"+e+")]"):"ui-view (defunct)"}function ee(t){return at(t)?g.Category[t]:g.Category[g.Category[t]]}function ne(t){return"Transition #"+re(t)+"-"+oe(t)}var t=Function.prototype.bind.call(console.log,console),ie=(h(console.table)?console.table:t).bind(console),re=((t=g.Category||(g.Category={}))[t.RESOLVE=0]="RESOLVE",t[t.TRANSITION=1]="TRANSITION",t[t.HOOK=2]="HOOK",t[t.UIVIEW=3]="UIVIEW",t[t.VIEWCONFIG=4]="VIEWCONFIG",k("$id")),oe=k("router.$id"),t=(e.prototype._set=function(e,t){var n=this;(t=t.length?t:Object.keys(g.Category).map(function(t){return parseInt(t,10)}).filter(function(t){return!isNaN(t)}).map(function(t){return g.Category[t]})).map(ee).forEach(function(t){return n._enabled[t]=e})},e.prototype.enable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._set(!0,t)},e.prototype.disable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._set(!1,t)},e.prototype.enabled=function(t){return!!this._enabled[ee(t)]},e.prototype.traceTransitionStart=function(t){this.enabled(g.Category.TRANSITION)&&console.log(ne(t)+": Started  -> "+M(t))},e.prototype.traceTransitionIgnored=function(t){this.enabled(g.Category.TRANSITION)&&console.log(ne(t)+": Ignored  <> "+M(t))},e.prototype.traceHookInvocation=function(t,e,n){var i;this.enabled(g.Category.HOOK)&&(i=k("traceData.hookType")(n)||"internal",n=k("traceData.context.state.name")(n)||k("traceData.context")(n)||"unknown",t=ze(t.registeredHook.callback),console.log(ne(e)+":   Hook -> "+i+" context: "+n+", "+Le(200,t)))},e.prototype.traceHookResult=function(t,e,n){this.enabled(g.Category.HOOK)&&console.log(ne(e)+":   <- Hook returned: "+Le(200,M(t)))},e.prototype.traceResolvePath=function(t,e,n){this.enabled(g.Category.RESOLVE)&&console.log(ne(n)+":         Resolving "+t+" ("+e+")")},e.prototype.traceResolvableResolved=function(t,e){this.enabled(g.Category.RESOLVE)&&console.log(ne(e)+":               <- Resolved  "+t+" to: "+Le(200,M(t.data)))},e.prototype.traceError=function(t,e){this.enabled(g.Category.TRANSITION)&&console.log(ne(e)+": <- Rejected "+M(e)+", reason: "+t)},e.prototype.traceSuccess=function(t,e){this.enabled(g.Category.TRANSITION)&&console.log(ne(e)+": <- Success  "+M(e)+", final state: "+t.name)},e.prototype.traceUIViewEvent=function(t,e,n){void 0===n&&(n=""),this.enabled(g.Category.UIVIEW)&&console.log("ui-view: "+He(30,t)+" "+te(e)+n)},e.prototype.traceUIViewConfigUpdated=function(t,e){this.enabled(g.Category.UIVIEW)&&this.traceUIViewEvent("Updating",t," with ViewConfig from context='"+e+"'")},e.prototype.traceUIViewFill=function(t,e){this.enabled(g.Category.UIVIEW)&&this.traceUIViewEvent("Fill",t," with: "+Le(200,e))},e.prototype.traceViewSync=function(t){this.enabled(g.Category.VIEWCONFIG)&&(t=t.map(function(t){var e=t[0],t=t[1];return{"ui-view fqn":e.$type+":"+e.fqn,"state: view name":t&&t.viewDecl.$context.name+": "+t.viewDecl.$name+" ("+t.viewDecl.$type+")"}}).sort(function(t,e){return t["ui-view fqn"].localeCompare(e["ui-view fqn"])}),ie(t))},e.prototype.traceViewServiceEvent=function(t,e){var n;this.enabled(g.Category.VIEWCONFIG)&&console.log("VIEWCONFIG: "+t+" "+(t=e.viewDecl,n=t.$context.name||"(root)","[View#")+e.$id+" from '"+n+"' state]: target ui-view: '"+t.$uiViewName+"@"+t.$uiViewContextAnchor+"'")},e.prototype.traceViewServiceUIViewEvent=function(t,e){this.enabled(g.Category.VIEWCONFIG)&&console.log("VIEWCONFIG: "+t+" "+te(e))},e);function e(){this._enabled={},this.approximateDigests=0}var E=new t,se=((r=g.TransitionHookPhase||(g.TransitionHookPhase={}))[r.CREATE=0]="CREATE",r[r.BEFORE=1]="BEFORE",r[r.RUN=2]="RUN",r[r.SUCCESS=3]="SUCCESS",r[r.ERROR=4]="ERROR",(r=g.TransitionHookScope||(g.TransitionHookScope={}))[r.TRANSITION=0]="TRANSITION",r[r.STATE=1]="STATE",i.prototype.name=function(){return this._definition&&this._definition.name||this._identifier},i.prototype.identifier=function(){return this._identifier},i.prototype.params=function(){return this._params},i.prototype.$state=function(){return this._definition},i.prototype.state=function(){return this._definition&&this._definition.self},i.prototype.options=function(){return this._options},i.prototype.exists=function(){return!(!this._definition||!this._definition.self)},i.prototype.valid=function(){return!this.error()},i.prototype.error=function(){var t=this.options().relative;return!this._definition&&t?(t=t.name||t,"Could not resolve '"+this.name()+"' from state '"+t+"'"):this._definition?this._definition.self?void 0:"State '"+this.name()+"' has an invali
1d definition":"No such state '"+this.name()+"'"},i.prototype.toString=function(){return"'"+this.name()+"'"+M(this.params())},i.prototype.withState=function(t){return new i(this._stateRegistry,t,this._params,this._options)},i.prototype.withParams=function(t,e){e=(e=void 0===e?!1:e)?t:_({},this._params,t);return new i(this._stateRegistry,this._identifier,e,this._options)},i.prototype.withOptions=function(t,e){e=(e=void 0===e?!1:e)?t:_({},this._options,t);return new i(this._stateRegistry,this._identifier,this._params,e)},i.isDef=function(t){return t&&t.state&&(y(t.state)||y(t.state.name))},i);function i(t,e,n,i){this._stateRegistry=t,this._identifier=e,this._identifier=e,this._params=_({},n||{}),this._options=_({},i||{}),this._definition=t.matcher.find(e,this._options.relative)}var ae={current:gt,transition:null,traceData:{},bind:null},le=(o.prototype.logError=function(t){this.transition.router.stateService.defaultErrorHandler()(t)},o.prototype.invokeHook=function(){var e=this,n=this.registeredHook;if(!n._deregistered){var t=this.getNotCurrentRejection();if(t)return t;var t=this.options,i=(E.traceHookInvocation(this,this.transition,t),function(t){return n.eventType.getErrorHandler(e)(t)}),r=function(t){return n.eventType.getResultHandler(e)(t)};try{var o=n.callback.call(t.bind,e.transition,e.stateContext);return!this.type.synchronous&&ht(o)?o.catch(function(t){return S.normalize(t).toPromise()}).then(r,i):r(o)}catch(t){return i(S.normalize(t))}finally{n.invokeLimit&&++n.invokeCount>=n.invokeLimit&&n.deregister()}}},o.prototype.handleHookResult=function(t){var e=this,n=this.getNotCurrentRejection();return n||(ht(t)?t.then(function(t){return e.handleHookResult(t)}):(E.traceHookResult(t,this.transition,this.options),!1===t?S.aborted("Hook aborted transition").toPromise():s(se)(t)?S.redirected(t).toPromise():void 0))},o.prototype.getNotCurrentRejection=function(){var t=this.transition.router;return t._disposed?S.aborted("UIRouter instance #"+t.$id+" has been stopped (disposed)").toPromise():this.transition._aborted?S.aborted().toPromise():this.isSuperseded()?S.superseded(this.options.current()).toPromise():void 0},o.prototype.toString=function(){var t=this.options,e=this.registeredHook;return(k("traceData.hookType")(t)||"internal")+" context: "+(k("traceData.context.state.name")(t)||k("traceData.context")(t)||"unknown")+", "+Le(200,Ve(e.callback))},o.chain=function(t,e){return t.reduce(function(t,e){return t.then(function(){return e.invokeHook()})},e||c.$q.when())},o.invokeHooks=function(t,e){for(var n=0;n<t.length;n++){var i,r=t[n].invokeHook();if(ht(r))return i=t.slice(n+1),o.chain(i,r).then(e)}return e()},o.runAllHooks=function(t){t.forEach(function(t){return t.invokeHook()})},o.HANDLE_RESULT=function(e){return function(t){return e.handleHookResult(t)}},o.LOG_REJECTED_RESULT=function(e){return function(t){ht(t)&&t.catch(function(t){return e.logError(S.normalize(t))})}},o.LOG_ERROR=function(e){return function(t){return e.logError(t)}},o.REJECT_ERROR=function(t){return Xt},o.THROW_ERROR=function(t){return function(t){throw t}},o);function o(t,e,n,i){var r=this;this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=i,this.isSuperseded=function(){return r.type.hookPhase===g.TransitionHookPhase.RUN&&!r.options.transition.isActive()},this.options=Ct(i,ae),this.type=n.eventType}function ue(t,e){var r=y(e)?[e]:e;return!!(h(r)?r:function(t){for(var e=r,n=0;n<e.length;n++){var i=new X(e[n]);if(i&&i.matches(t.name)||!i&&e[n]===t.name)return!0}return!1})(t)}he.prototype._matchingNodes=function(t,e){return!0===e||(t=t.filter(function(t){return ue(t.state,e)})).length?t:null},he.prototype._getDefaultMatchCriteria=function(){return w(this.tranSvc._pluginapi._getPathTypes(),function(){return!0})},he.prototype._getMatchingNodes=function(r){var o=this,s=_(this._getDefaultMatchCriteria(),this.matchCriteria);return Rt(this.tranSvc._pluginapi._getPathTypes()).reduce(function(t,e){var n=e.scope===g.TransitionHookScope.STATE,i=r[e.name]||[],n=n?i:[x(i)];return t[e.name]=o._matchingNodes(n,s[e.name]),t},{})},he.prototype.matches=function(t){t=this._getMatchingNodes(t);return Rt(t).every(m)?t:null},he.prototype.deregister=function(){this.removeHookFromRegistry(this),this._deregistered=!0};var ce=he;function he(t,e,n,i,r,o){void 0===o&&(o={}),this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=i,this.removeHookFromRegistry=r,this.invokeCount=0,this._deregistered=!1,this.priority=o.priority||0,this.bind=o.bind||null,this.invokeLimit=o.invokeLimit}function de(t,i,r){var o=(t._registeredHooks=t._registeredHooks||{})[r.name]=[],s=p(o);function e(t,e,n){e=new ce(i,r,e,t,s,n=void 0===n?{}:n);return o.push(e),e.deregister.bind(e)}return t[r.name]=e}fe.prototype.buildHooksForPhase=function(t){var e=this;return this.transition.router.transitionService._pluginapi._getEvents(t).map(function(t){return e.buildHooks(t)}).reduce(f,[]).filter(m)},fe.prototype.buildHooks=function(r){var o,s=this.transition,t=s.treeChanges(),e=this.getMatchingHooks(r,t);return e?(o={transition:s,current:s.options().current},e.map(function(i){return i.matches(t)[r.criteriaMatchPath.name].map(function(t){var e=_({bind:i.bind,traceData:{hookType:r.name,context:t}},o),n=r.criteriaMatchPath.scope===g.TransitionHookScope.STATE?t.state.self:null,n=new le(s,n,i,e);return{hook:i,node:t,transitionHook:n}})}).reduce(f,[]).sort(function(i){void 0===i&&(i=!1);return function(t,e){var n=i?-1:1,n=(t.node.state.path.length-e.node.state.path.length)*n;return 0!=n?n:e.hook.priority-t.hook.priority}}(r.reverseSort)).map(function(t){return t.transitionHook})):[]},fe.prototype.getMatchingHooks=function(e,n){var t=e.hookPhase===g.TransitionHookPhase.CREATE,i=this.transition.router.transitionService;return(t?[i]:[this.transition,i]).map(function(t){return t.getHooks(e.name)}).filter(zt(b,"broken event named: "+e.name)).reduce(f,[]).filter(function(t){return t.matches(n)})};var pe=fe;function fe(t){this.transition=t}ge.prototype.is=function(t,e){return!0},ge.prototype.encode=function(t,e){return t},ge.prototype.decode=function(t,e){return t},ge.prototype.equals=function(t,e){return t==e},ge.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},ge.prototype.toString=function(){return"{ParamType:"+this.name+"}"},ge.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},ge.prototype.$asArray=function(t,e){if(!t)return this;if("auto"!==t||e)return new ve(this,t);throw new Error("'auto' array mode is for query parameters only")};var me=ge;function ge(t){this.pattern=/.*/,this.inherit=!0,_(this,t)}function ve(i,r){var o=this;function s(t){return b(t)?t:$(t)?[t]:[]}function a(n,i){return function(t){if(b(t)&&0===t.length)return t;t=w(s(t),n);if(!0===i)return 0===Dt(t,function(t){return!t}).length;var e=t;switch(e.length){case 0:return;case 1:return"auto"===r?e[0]:e;default:return e}}}function l(o){return function(t,e){var n=s(t),i=s(e);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++)if(!o(n[r],i[r]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach(function(t){var e=i[t].bind(i),n="equals"===t?l:a;o[t]=n(e)}),_(this,{dynamic:i.dynamic,name:i.name,pattern:i.pattern,inherit:i.inherit,is:a(i.is.bind(i),!0),$arrayMode:r})}var ye=Object.prototype.hasOwnProperty,be=function(t){return 0===["value","type","squash","array","dynamic"].filter(ye.bind(t||{})).length};(r=g.DefType||(g.DefType={}))[r.PATH=0]="PATH",r[r.SEARCH=1]="SEARCH",r[r.CONFIG=2]="CONFIG";we.prototype.isDefaultValue=function(t){return this.isOptional&&this.type.equals(this.value(),t)},we.prototype.value=function(t){var r=this;if(t=function(t){for(var e=0,n=r.replace;e<n.length;e++){var i=n[e];if(i.from===t)return i.to}return t}(t),ot(t)){if(r._defaultValueCache)return r._defaultValueCache.defaultValue;if(!c.$injector)throw new Error("Injectable functions cannot be called at configuration time");var e=c.$injector.invoke(r.config.$$fn);
1if(null==e||r.type.is(e))return r.config.$$fn.__cacheable&&(r._defaultValueCache={defaultValue:e}),e;throw new Error("Default value ("+e+") for parameter '"+r.id+"' is not an instance of ParamType ("+r.type.name+")")}return this.type.$normalize(t)},we.prototype.isSearch=function(){return this.location===g.DefType.SEARCH},we.prototype.validates=function(t){return!((!ot(t)&&null!==t||!this.isOptional)&&(t=this.type.$normalize(t),!this.type.is(t)||(t=this.type.encode(t),y(t)&&!this.type.pattern.exec(t))))},we.prototype.toString=function(){return"{Param:"+this.id+" "+this.type+" squash: '"+this.squash+"' optional: "+this.isOptional+"}"},we.values=function(t,e){void 0===e&&(e={});for(var n={},i=0,r=t;i<r.length;i++){var o=r[i];n[o.id]=o.value(e[o.id])}return n},we.changed=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),t.filter(function(t){return!t.type.equals(e[t.id],n[t.id])})},we.equals=function(t,e,n){return 0===we.changed(t,e=void 0===e?{}:e,n=void 0===n?{}:n).length},we.validates=function(t,e){return void 0===e&&(e={}),t.map(function(t){return t.validates(e[t.id])}).reduce(Ot,!0)};var _e=we;function we(t,e,n,i,r){function o(){return s.value}s=be(s=n)?{value:s}:s,o.__cacheable=!0,e=function(t,e,n,i,r){if(t.type&&e&&"string"!==e.name)throw new Error("Param '"+i+"' has two type configurations.");return t.type&&e&&"string"===e.name&&r.type(t.type)?r.type(t.type):e||(t.type?t.type instanceof me?t.type:r.type(t.type):(i=n===g.DefType.CONFIG?"any":n===g.DefType.PATH?"path":n===g.DefType.SEARCH?"query":"string",r.type(i)))}(n=_(s,{$$fn:ut(s.value)?s.value:o}),e,i,t,r.paramTypes),c={array:i===g.DefType.SEARCH&&"auto"},h=t.match(/\[\]$/)?{array:!0}:{};var s,a,l,u,c=_(c,h,n).array,h=(e=c?e.$asArray(c,i===g.DefType.SEARCH):e,void 0!==n.value||i===g.DefType.SEARCH),d=$(n.dynamic)?!!n.dynamic:!!e.dynamic,p=$(n.raw)?!!n.raw:!!e.raw,r=function(t,e,n){if(t=t.squash,!e||!1===t)return!1;if(!$(t)||null==t)return n;if(!0===t||y(t))return t;throw new Error("Invalid squash policy: '"+t+"'. Valid policies: false, true, or arbitrary string")}(n,h,r.defaultSquashPolicy()),f=(a=c,m=r,l=[{from:"",to:(l=h)||a?void 0:""},{from:null,to:h||a?void 0:""}],a=b((f=n).replace)?f.replace:[],y(m)&&a.push({from:m,to:void 0}),u=w(a,v("from")),Dt(l,function(t){return-1===u.indexOf(t.from)}).concat(a)),m=$(n.inherit)?!!n.inherit:!!e.inherit;_(this,{id:t,type:e,location:i,isOptional:h,dynamic:d,raw:p,squash:r,replace:f,inherit:m,array:c,config:n})}Ce.prototype.applyRawParams=function(n){return this.paramValues=this.paramSchema.reduce(function(t,e){return qt(t,[e.id,e.value(n[e.id])])},{}),this},Ce.prototype.parameter=function(t){return Mt(this.paramSchema,V("id",t))},Ce.prototype.equals=function(t,e){t=this.diff(t,e);return t&&0===t.length},Ce.prototype.diff=function(t,e){return this.state===t.state&&(e=e?e(this):this.paramSchema,_e.changed(e,this.paramValues,t.paramValues))},Ce.clone=function(t){return new Ce(t)};var xe=Ce;function Ce(t){var e;t instanceof Ce?(this.state=(e=t).state,this.paramSchema=e.paramSchema.slice(),this.paramValues=_({},e.paramValues),this.resolvables=e.resolvables.slice(),this.views=e.views&&e.views.slice()):(this.state=e=t,this.paramSchema=e.parameters({inherit:!1}),this.paramValues={},this.resolvables=e.resolvables.map(function(t){return t.clone()}))}T.makeTargetState=function(t,e){var n=x(e).state;return new se(t,n,e.map(v("paramValues")).reduce(kt,{}),{})},T.buildPath=function(t){var e=t.params();return t.$state().path.map(function(t){return new xe(t).applyRawParams(e)})},T.buildToPath=function(t,e){var n=T.buildPath(e);return e.options().inherit?T.inheritParams(t,n,Object.keys(e.params())):n},T.applyViewConfigs=function(i,r,e){r.filter(function(t){return yt(e,t.state)}).forEach(function(e){var t=Rt(e.state.views||{}),n=T.subPath(r,function(t){return t===e}),t=t.map(function(t){return i.createViewConfig(n,t)});e.views=t.reduce(f,[])})},T.inheritParams=function(o,t,s){void 0===s&&(s=[]);var a=o.map(function(t){return t.paramSchema}).reduce(f,[]).filter(function(t){return!t.inherit}).map(v("id"));return t.map(function(t){var e=St(n=_({},t&&t.paramValues),s),n=Et(n,s),i=Et((r=o,i=t.state,r=Mt(r,V("state",i)),_({},r&&r.paramValues)||{}),a),r=_(n,i,e);return new xe(t.state).applyRawParams(r)})}
1,T.treeChanges=function(t,n,e){for(var i,r,o=0,s=Math.min(t.length,n.length);o<s&&t[o].state!==e&&(i=t[o],r=n[o],i.equals(r,T.nonDynamicParams));)o++;var a,l=(a=t).slice(0,o),u=a.slice(o),c=l.map(function(t,e){return(t=xe.clone(t)).paramValues=n[e].paramValues,t}),h=n.slice(o);return{from:a,to:c.concat(h),retained:l,exiting:u,entering:h}},T.matching=function(t,e,i){var r=!1;return Bt(t,e).reduce(function(t,e){var n=e[0],e=e[1];return(r=r||!n.equals(e,i))?t:t.concat(n)},[])},T.equals=function(t,e,n){return t.length===e.length&&T.matching(t,e,n).length===t.length},T.subPath=function(t,e){e=Mt(t,e),e=t.indexOf(e);return-1===e?void 0:t.slice(0,e+1)},T.nonDynamicParams=function(t){return t.state.parameters({inherit:!1}).filter(function(t){return!t.dynamic})},T.paramValues=function(t){return t.reduce(function(t,e){return _(t,e.paramValues)},{})};var ke=T;function T(){}var $e={when:"LAZY",async:"WAIT"},u=(Se.prototype.getPolicy=function(t){var e=this.policy||{},t=t&&t.resolvePolicy||{};return{when:e.when||t.when||$e.when,async:e.async||t.async||$e.async}},Se.prototype.resolve=function(e,n){var i=this,t=c.$q,r=e.findNode(this),r=r&&r.state,r="RXWAIT"===this.getPolicy(r).async?function(t){var e=t.cache(1);return e.take(1).toPromise().then(function(){return e})}:m;return this.promise=t.when().then(function(){return t.all(e.getDependencies(i).map(function(t){return t.get(e,n)}))}).then(function(t){return i.resolveFn.apply(null,t)}).then(r).then(function(t){return i.data=t,i.resolved=!0,E.traceResolvableResolved(i,n),i.data})},Se.prototype.get=function(t,e){return this.promise||this.resolve(t,e)},Se.prototype.toString=function(){return"Resolvable(token: "+M(this.token)+", requires: ["+this.deps.map(M)+"])"},Se.prototype.clone=function(){return new Se(this)},Se.fromData=function(t,e){return new Se(t,function(){return e},null,null,e)},Se);function Se(t,e,n,i,r){if(this.resolved=!1,this.promise=void 0,t instanceof Se)_(this,t);else if(h(e)){if(st(t))throw new Error("new Resolvable(): token argument is required");if(!h(e))throw new Error("new Resolvable(): resolveFn argument must be a function");this.token=t,this.policy=i,this.resolveFn=e,this.deps=n||[],this.data=r,this.resolved=void 0!==r,this.promise=this.resolved?c.$q.when(this.data):void 0}else if(d(t)&&t.token&&h(t.resolveFn))return new Se(t.token,t.resolveFn,t.deps,t.policy,t.data)}var Ee={when:{LAZY:"LAZY",EAGER:"EAGER"},async:{WAIT:"WAIT",NOWAIT:"NOWAIT",RXWAIT:"RXWAIT"}},r=Ee.when,Te=[r.EAGER,r.LAZY],De=[r.EAGER],Me="Native Injector",Ae=(Oe.prototype.getTokens=function(){return this._path.reduce(function(t,e){return t.concat(e.resolvables.map(function(t){return t.token}))},[]).reduce(Lt,[])},Oe.prototype.getResolvable=function(e){return x(this._path.map(function(t){return t.resolvables}).reduce(f,[]).filter(function(t){return t.token===e}))},Oe.prototype.getPolicy=function(t){var e=this.findNode(t);return t.getPolicy(e.state)},Oe.prototype.subContext=function(e){return new Oe(ke.subPath(this._path,function(t){return t.state===e}))},Oe.prototype.addResolvables=function(t,e){var e=Mt(this._path,V("state",e)),n=t.map(function(t){return t.token});e.resolvables=e.resolvables.filter(function(t){return-1===n.indexOf(t.token)}).concat(t)},Oe.prototype.resolvePath=function(t,s){function a(e,n){return function(t){return yt(e,l.getPolicy(t)[n])}}var l=this,u=(yt(Te,t=void 0===t?"LAZY":t)?t:"LAZY")===Ee.when.EAGER?De:Te,t=(E.traceResolvePath(this._path,t,s),this._path.reduce(function(t,e){function n(e){return e.get(o,s).then(function(t){return{token:e.token,value:t}})}var i=e.resolvables.filter(a(u,"when")),r=i.filter(a(["NOWAIT"],"async")),i=i.filter(j(a(["NOWAIT"],"async"))),o=l.subContext(e.state);return r.forEach(n),t.concat(i.map(n))},[]));return c.$q.all(t)},Oe.prototype.injector=function(){return this._injector||(this._injector=new Ne(this))},Oe.prototype.findNode=function(e){return Mt(this._path,function(t){return yt(t.resolvables,e)})},Oe.prototype.getDependencies=function(e){var i=this,n=this.findNode(e),r=(ke.subPath(this._path,function(t){return t===n})||this._path).reduce(function(t,e){return t.concat(e.resolvables)},[]).filter(function(t){return t!==e});return e.deps.map(function(e){var t=r.filter(function(t){return t.token===e});if(t.length)return x(t);var n=i.injector().getNative(e);
1if(ot(n))throw new Error("Could not find Dependency Injection token: "+M(e));return new u(e,function(){return n},[],n)})},Oe);function Oe(t){this._path=t}Pe.prototype.get=function(t){var e=this.context.getResolvable(t);if(e){if("NOWAIT"===this.context.getPolicy(e).async)return e.get(this.context);if(e.resolved)return e.data;throw new Error("Resolvable async .get() not complete:"+M(e.token))}return this.getNative(t)},Pe.prototype.getAsync=function(t){var e=this.context.getResolvable(t);return e?e.get(this.context):c.$q.when(this.native.get(t))},Pe.prototype.getNative=function(t){return this.native&&this.native.get(t)};var Ne=Pe;function Pe(t){this.context=t,this.native=this.get(Me)||c.$injector}var Re=v("self"),Ie=(D.prototype.onBefore=function(t,e,n){},D.prototype.onStart=function(t,e,n){},D.prototype.onExit=function(t,e,n){},D.prototype.onRetain=function(t,e,n){},D.prototype.onEnter=function(t,e,n){},D.prototype.onFinish=function(t,e,n){},D.prototype.onSuccess=function(t,e,n){},D.prototype.onError=function(t,e,n){},D.prototype.createTransitionHookRegFns=function(){var e=this;this.router.transitionService._pluginapi._getEvents().filter(function(t){return t.hookPhase!==g.TransitionHookPhase.CREATE}).forEach(function(t){return de(e,e.router.transitionService,t)})},D.prototype.getHooks=function(t){return this._registeredHooks[t]},D.prototype.applyViewConfigs=function(t){var e=this._treeChanges.entering.map(function(t){return t.state});ke.applyViewConfigs(t.transitionService.$view,this._treeChanges.to,e)},D.prototype.$from=function(){return x(this._treeChanges.from).state},D.prototype.$to=function(){return x(this._treeChanges.to).state},D.prototype.from=function(){return this.$from().self},D.prototype.to=function(){return this.$to().self},D.prototype.targetState=function(){return this._targetState},D.prototype.is=function(t){return t instanceof D?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!ue(this.$to(),t.to)||t.from&&!ue(this.$from(),t.from))},D.prototype.params=function(t){return void 0===t&&(t="to"),Object.freeze(this._treeChanges[t].map(v("paramValues")).reduce(kt,{}))},D.prototype.injector=function(e,t){t=this._treeChanges[t=void 0===t?"to":t];return e&&(t=ke.subPath(t,function(t){return t.state===e||t.state.name===e})),new Ae(t).injector()},D.prototype.getResolveTokens=function(t){return new Ae(this._treeChanges[t=void 0===t?"to":t]).getTokens()},D.prototype.addResolvable=function(t,e){void 0===e&&(e=""),t=s(u)(t)?t:new u(t);var n="string"==typeof e?e:e.name,e=this._treeChanges.to,i=Mt(e,function(t){return t.state.name===n});new Ae(e).addResolvables([t],i.state)},D.prototype.redirectedFrom=function(){return this._options.redirectedFrom||null},D.prototype.originalTransition=function(){var t=this.redirectedFrom();return t&&t.originalTransition()||this},D.prototype.options=function(){return this._options},D.prototype.entering=function(){return w(this._treeChanges.entering,v("state")).map(Re)},D.prototype.exiting=function(){return w(this._treeChanges.exiting,v("state")).map(Re).reverse()},D.prototype.retained=function(){return w(this._treeChanges.retained,v("state")).map(Re)},D.prototype.views=function(t,e){t=this._treeChanges[t=void 0===t?"entering":t];return(t=e?t.filter(V("state",e)):t).map(v("views")).filter(m).reduce(f,[])},D.prototype.treeChanges=function(t){return t?this._treeChanges[t]:this._treeChanges},D.prototype.redirect=function(t){for(var e=1,n=this;null!=(n=n.redirectedFrom());)if(20<++e)throw new Error("Too many consecutive Transition redirects (20+)");var i,r={redirectedFrom:this,source:"redirect"},r=("url"===this.options().source&&!1!==t.options().location&&(r.location="replace"),_({},this.options(),t.options(),r)),r=(t=t.withOptions(r,!0),this.router.transitionService.create(this._treeChanges.from,t)),o=this._treeChanges.entering,s=r._treeChanges.entering;return ke.matching(s,o,ke.nonDynamicParams).filter(j((i=t.options().reloadState,function(t){return i&&t.state.includes[i.name]}))).forEach(function(t,e){t.resolvables=o[e].resolvables}),r},D.prototype._changedParams=function(){var t=this._treeChanges;if(!this._options.reload&&!t.exiting.length&&!t.entering.length&&t.to.length===t.from.length){var e=Bt(t.to,t.from).map(function(t){return t[0].state!==t[1].state}).reduce(Nt,!1);if(!e)return Bt(t.to.map(function(t){return t.paramSchema}),(e=[t.to,t.from].map(function(t){return t.map(function(t){return t.paramValues})}))[0],e[1]).map(function(t){var e=t[0],n=t[1],t=t[2];return _e.changed(e,n,t)}).reduce(f,[])}},D.prototype.dynamic=function(){var t=this._changedParams();return!!t&&t.map(function(t){return t.dynamic}).reduce(Nt,!1)},D.prototype.ignored=function(){return!!this._ignoredReason()},D.prototype._ignoredReason=function(){function t(t,e){return t.length===e.length&&(e=ke.matching(t,e),t.length===e.filter(function(t){return!n||!t.state.includes[n.name]}).length)}var e=this.router.globals.transition,n=this._options.reloadState,i=this.treeChanges(),e=e&&e.treeChanges();
1return e&&t(e.to,i.to)&&t(e.exiting,i.exiting)?"SameAsPending":0===i.exiting.length&&0===i.entering.length&&t(i.from,i.to)?"SameAsCurrent":void 0},D.prototype.run=function(){var e=this,n=le.runAllHooks,i=function(t){return e._hookBuilder.buildHooksForPhase(t)},t=i(g.TransitionHookPhase.BEFORE);return le.invokeHooks(t,function(){var t=e.router.globals;return t.lastStartedTransitionId=e.$id,t.transition=e,t.transitionHistory.enqueue(e),E.traceTransitionStart(e),c.$q.when(void 0)}).then(function(){var t=i(g.TransitionHookPhase.RUN);return le.invokeHooks(t,function(){return c.$q.when(void 0)})}).then(function(){E.traceSuccess(e.$to(),e),e.success=!0,e._deferred.resolve(e.to()),n(i(g.TransitionHookPhase.SUCCESS))},function(t){E.traceError(t,e),e.success=!1,e._deferred.reject(t),e._error=t,n(i(g.TransitionHookPhase.ERROR))}),this.promise},D.prototype.valid=function(){return!this.error()||void 0!==this.success},D.prototype.abort=function(){ot(this.success)&&(this._aborted=!0)},D.prototype.error=function(){var e,t,n=this.$to();return n.self.abstract?"Cannot transition to abstract state '"+n.name+"'":(t=n.parameters(),e=this.params(),(t=t.filter(function(t){return!t.validates(e[t.id])})).length?"Param values not valid for state '"+n.name+"'. Invalid params: [ "+t.map(function(t){return t.id}).join(", ")+" ]":!1===this.success?this._error:void 0)},D.prototype.toString=function(){function t(t){return null!==t["#"]&&void 0!==t["#"]?t:Et(t,["#"])}var e=this.from(),n=this.to();return"Transition#"+this.$id+"( '"+(d(e)?e.name:e)+"'"+M(t(this._treeChanges.from.map(v("paramValues")).reduce(kt,{})))+" -> "+(this.valid()?"":"(X) ")+"'"+(d(n)?n.name:n)+"'"+M(t(this.params()))+" )"},D.diToken=D);function D(t,e,n){var i=this;if(this._deferred=c.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new pe(this),this.isActive=function(){return i.router.globals.transition===i},this.router=n,!(this._targetState=e).valid())throw new Error(e.error());this._options=_({current:a(this)},e.options()),this.$id=n.transitionService._transitionCount++;e=ke.buildToPath(t,e),this._treeChanges=ke.treeChanges(t,e,this._options.reloadState),this.createTransitionHookRegFns(),t=this._hookBuilder.buildHooksForPhase(g.TransitionHookPhase.CREATE);le.invokeHooks(t,function(){return null}),this.applyViewConfigs(n)}function Le(t,e){return e.length<=t?e:e.substr(0,t-3)+"..."}function He(t,e){for(;e.length<t;)e+=" ";return e}function Fe(t){return t.replace(/^([A-Z])/,function(t){return t.toLowerCase()}).replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function ze(t){var e=Ve(t),n=e.match(/^(function [^ ]+\([^)]*\))/),n=n?n[1]:e,e=t.name||"";return e&&n.match(/function \(/)?"function "+e+n.substr(9):n}function Ve(t){t=b(t)?t.slice(-1)[0]:t;return t&&t.toString()||"undefined"}var je=null,We=function(t){var e=S.isRejectionPromise;return(je=je||K([[j($),a("undefined")],[et,a("null")],[ht,a("[Promise]")],[e,function(t){return t._transitionRejection.toString()}],[s(S),G("toString")],[s(Ie),G("toString")],[s(u),G("toString")],[ut,ze],[a(!0),m]]))(t)};function M(t){var n=[];return JSON.stringify(t,function(t,e){if(d(e)){if(-1!==n.indexOf(e))return"[circular ref]";n.push(e)}return We(e)}).replace(/\\"/g,'"')}function Be(n){return function(t){var e;return t?-1===(e=t.indexOf(n))?[t,""]:[t.substr(0,e),t.substr(e+1)]:["",""]}}function qe(t){return t.replace(/\/[^/]*$/,"")}function Ue(t){return t?t.replace(/^#/,""):""}var r=new RegExp("^(?:[a-z]+:)?//[^/]+/"),Ye=Be("#"),Ge=Be("?"),Ke=Be("=");function Xe(t){var e=new RegExp("("+t+")","g");return function(t){return t.split(e).filter(m)}}function Ze(t,e){return y(x(t))&&y(e)?t.slice(0,-1).concat(x(t)+e):It(t,e)}Je.prototype.dispose=function(){this.types={}},Je.prototype.type=function(t,e,n){if(!$(e))return this.types[t];if(this.types.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return this.types[t]=new me(_({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this},Je.prototype._flushTypeQueue=function(){for(;this.typeQueue.length;
1){var t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");_(this.types[t.name],c.$injector.invoke(t.def))}};var Qe=Je;function Je(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=St(Je.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=vt(w(this.defaultTypes,function(t,e){return new me(_({name:e},t))}),{})}function tn(t){function e(t){return null!=t?t.toString():t}var n={encode:e,decode:e,is:s(String),pattern:/.*/,equals:function(t,e){return t==e}};return _({},n,t)}_(Qe.prototype,{string:tn({}),path:tn({pattern:/[^/]*/}),query:tn({}),hash:tn({inherit:!1}),int:tn({decode:function(t){return parseInt(t,10)},is:function(t){return!st(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:tn({encode:function(t){return t?1:0},decode:function(t){return 0!==parseInt(t,10)},is:s(Boolean),pattern:/0|1/}),date:tn({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){return this.is(t)?t:(t=this.capture.exec(t))?new Date(t[1],t[2]-1,t[3]):void 0},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(n,i){return["getFullYear","getMonth","getDate"].reduce(function(t,e){return t&&n[e]()===i[e]()},!0)},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:tn({encode:pt,decode:L,is:s(Object),equals:mt,pattern:/[^/]*/}),any:tn({encode:m,decode:m,is:function(){return!0},equals:mt})});nn.prototype.$inherit=function(t,e,n){var i,r,o=$t(e,n),s={},a=[];for(r in o)if(o[r]&&o[r].params&&(i=Object.keys(o[r].params)).length)for(var l in i)0<=a.indexOf(i[l])||(a.push(i[l]),s[i[l]]=this[i[l]]);return _({},s,t)};var en=nn;function nn(t){_(this,t=void 0===t?{}:t)}var rn=function(t){var e;return!!y(t)&&{val:(e="^"===t.charAt(0))?t.substring(1):t,root:e}};function on(t){return t.name}function sn(t){return t.self.$$state=function(){return t},t.self}function an(t){return t.parent&&t.parent.data&&(t.data=t.self.data=vt(t.parent.data,t.data)),t.data}function ln(t){return t.parent?t.parent.path.concat(t):[t]}function un(t){var e=t.parent?_({},t.parent.includes):{};return e[t.name]=!0,e}function cn(t){function e(t){return t.provide||t.token}var n,i,r=K([[v("resolveFn"),function(t){return new u(e(t),t.resolveFn,t.deps,t.policy)}],[v("useFactory"),function(t){return new u(e(t),t.useFactory,t.deps||t.dependencies,t.policy)}],[v("useClass"),function(t){return new u(e(t),function(){return new t.useClass},[],t.policy)}],[v("useValue"),function(t){return new u(e(t),function(){return t.useValue},[],t.policy,t.useValue)}],[v("useExisting"),function(t){return new u(e(t),m,[t.useExisting],t.policy)}]]),o=K([[z(v("val"),y),function(t){return new u(t.token,m,[t.val],t.policy)}],[z(v("val"),b),function(t){return new u(t.token,x(t.val),t.val.slice(0,-1),t.policy)}],[z(v("val"),h),function(t){return new u(t.token,t.val,(e=t.val,n=c.$injector,e.$inject||n&&n.annotate(e,n.strictDi)||"deferred"),t.policy);var e,n}]]),r=K([[s(u),function(t){return t}],[function(t){return!(!t.token||!t.resolveFn)},r],[function(t){return!(!t.provide&&!t.token||!(t.useValue||t.useFactory||t.useExisting||t.useClass))},r],[function(t){return!!(t&&t.val&&(y(t.val)||b(t.val)||h(t.val)))},o],[a(!0),function(t){throw new Error("Invalid resolve value: "+M(t))}]]),o=t.resolve;return(b(o)?o:(n=o,i=t.resolvePolicy||{},Object.keys(n||{}).map(function(t){return{token:t,val:n[t],deps:void 0,policy:i[t]}}))).map(r)}dn.prototype.builder=function(t,e){var n=this.builders,i=n[t]||[];return y(t)&&!$(e)?1<i.length?i:i[0]:y(t)&&h(e)?(n[t]=i,n[t].push(e),function(){return n[t].splice(n[t].indexOf(e,1))&&null}):void 0},dn.prototype.build=function(t){var e,n,i=this.matcher,r=this.builders,o=this.parentName(t);if(o&&!i.find(o,void 0,!1))return null;for(e in r)r.hasOwnProperty(e)&&(n=r[e].reduce(function(e,n){return function(t){return n(t,e)}},gt),t[e]=n(t));return t},dn.prototype.parentName=function(t){var e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error("States that specify the 'parent:' property should not have a '.' in their name ("+e+")");return n.join(".")}return t.parent?y(t.parent)?t.parent:t.parent.name:""},dn.prototype.name=function(t){var e=t.name;return-1===e.indexOf(".")&&t.parent&&(t=y(t.parent)?t.parent:t.parent.name)?t+"."+e:e};var hn=dn;function dn(e,t){this.matcher=e;function n(){return e.find("")}function i(t){return""===t.name}var r,o,s,a,l=this;this.builders={name:[on],self:[sn],parent:[function(t){return i(t)?null:e.find(l.parentName(t))||n()}
1],data:[an],url:[(a=n,function(t){var n=t,e=(n&&n.url&&n.name&&n.name.match(/\.\*\*$/)&&(n.url+="{remainder:any}"),rn(n.url)),i=t.parent,r=e?s.compile(e.val,{params:t.params||{},paramMap:function(t,e){return t=!1===n.reloadOnSearch&&e?_(t||{},{dynamic:!0}):t}}):n.url;if(!r)return null;if(s.isMatcher(r))return e&&e.root?r:(i&&i.navigable||a()).url.append(r);throw new Error("Invalid url '"+r+"' in state '"+t+"'")})],navigable:[(o=i,function(t){return!o(t)&&t.url?t:t.parent?t.parent.navigable:null})],params:[(r=(s=t).paramFactory,function(t){var e=t.url&&t.url.parameters({inherit:!1})||[],t=Rt(At(Et(t.params||{},e.map(v("id"))),function(t,e){return r.fromConfig(e,null,t)}));return e.concat(t).map(function(t){return[t.id,t]}).reduce(qt,{})})],views:[],path:[ln],includes:[un],resolvables:[cn]}}fn.prototype.isRelative=function(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")},fn.prototype.find=function(t,e,n){var i,r;if(void 0===n&&(n=!0),t||""===t)return i=y(t),r=i?t:t.name,this.isRelative(r)&&(r=this.resolvePath(r,e)),!(e=this._states[r])||!i&&(i||e!==t&&e.self!==t)?i&&n?(1<(t=Rt(this._states).filter(function(t){return t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(r)})).length&&console.log("stateMatcher.find: Found multiple matches for "+r+" using glob: ",t.map(function(t){return t.name})),t[0]):void 0:e},fn.prototype.resolvePath=function(t,e){if(!e)throw new Error("No reference point given for path '"+t+"'");for(var n=this.find(e),i=t.split("."),r=0,o=i.length,s=n;r<o;r++)if(""===i[r]&&0===r)s=n;else{if("^"!==i[r])break;if(!s.parent)throw new Error("Path '"+t+"' not valid for state '"+n.name+"'");s=s.parent}e=i.slice(r).join(".");return s.name+(s.name&&e?".":"")+e};var pn=fn;function fn(t){this._states=t}gn.prototype.dispose=function(){this.queue=[]},gn.prototype.register=function(t){var e=this.queue,t=Q.create(t),n=t.name;if(!y(n))throw new Error("State must have a valid name");if(this.states.hasOwnProperty(n)||yt(e.map(v("name")),n))throw new Error("State '"+n+"' is already defined");return e.push(t),this.flush(),t},gn.prototype.flush=function(){for(var e=this,t=this.queue,n=this.states,i=this.builder,r=[],o=[],s={},a=function(t){return e.states.hasOwnProperty(t)&&e.states[t]};0<t.length;){var l=t.shift(),u=l.name,c=i.build(l),h=o.indexOf(l);if(c){c=a(u);if(c&&c.name===u)throw new Error("State '"+u+"' is already defined");c=a(u+".**");c&&this.$registry.deregister(c),n[u]=l,this.attachRoute(l),0<=h&&o.splice(h,1),r.push(l)}else{c=s[u];if(s[u]=t.length,0<=h&&c===t.length)return t.push(l),n;h<0&&o.push(l),t.push(l)}}return r.length&&this.listeners.forEach(function(t){return t("registered",r.map(function(t){return t.self}))}),n},gn.prototype.attachRoute=function(t){!t.abstract&&t.url&&this.$urlRouter.rule(this.$urlRouter.urlRuleFactory.create(t))};var mn=gn;function gn(t,e,n,i,r){this.$registry=t,this.$urlRouter=e,this.states=n,this.builder=i,this.listeners=r,this.queue=[],this.matcher=t.matcher}yn.prototype._registerRoot=function(){(this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0})).navigable=null},yn.prototype.dispose=function(){var e=this;this.stateQueue.dispose(),this.listeners=[],this.get().forEach(function(t){return e.get(t)&&e.deregister(t)})},yn.prototype.onStatesChanged=function(t){return this.listeners.push(t),function(){p(this.listeners)(t)}.bind(this)},yn.prototype.root=function(){return this._root},yn.prototype.register=function(t){return this.stateQueue.register(t)},yn.prototype._deregisterTree=function(t){var n=this,i=this.get().map(function(t){return t.$$state()}),r=function(e){var t=i.filter(function(t){return-1!==e.indexOf(t.parent)});return 0===t.length?t:t.concat(r(t))},e=r([t]),t=[t].concat(e).reverse();return t.forEach(function(t){var e=n._router.urlRouter;e.rules().filter(V("state",t)).forEach(e.removeRule.bind(e)),delete n.states[t.name]}),t},yn.prototype.deregister=function(t){var e,n=this.get(t);if(n)return e=this._deregisterTree(n.$$state()),this.listeners.forEach(function(t){return t("deregistered",e.map(function(t){return t.self}))}),e;throw new Error("Can't deregister state; not found: "+t)},yn.prototype.get=function(t,e){var n=this;return 0===arguments.length?Object.keys(this.states).map(function(t){return n.states[t].self}):(t=this.matcher.find(t,e))&&t.self||null},yn.prototype.decorator=function(t,e){return this.builder.builder(t,e)};var vn=yn;function yn(t){this._router=t,this.states={},this.listeners=[],this.matcher=new pn(this.states),this.builder=new hn(this.matcher,t.urlMatcherFactory),this.stateQueue=new mn(this,t.urlRouter,this.states,this.builder,this.listeners),this._registerRoot()}function bn(t,e){var n=["",""],i=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return i;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:i=i.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=["("+e.squash+"|",")?"]}return i+n[0]+e.type.pattern.source+n[1]}var _n=Xe("/"),wn=(A.prototype.append=function(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t},A.prototype.isRoot=function(){return this._cache.path[0]===this},A.prototype.toString=function(){return this.pattern},A.prototype.exec=function(t,i,e,n){var r,o=this,s=(void 0===i&&(i={}),void 0===n&&(n={}),n=this._cache,r=function(){return new RegExp(["^",Ht(o._cache.path.map(v("_compiled"))).join(""),!1===o.config.strict?"/?":"","$"].join(""),o.config.caseInsensitive?"i":void 0)},(n[l="pattern"]=n[l]||r()).exec(t));if(!s)return null;var n=this.parameters(),a=n.filter(function(t){return!t.isSearch()}),l=n.filter(function(t){return t.isSearch()}),u=this._cache.path.map(function(t){return t._segments.length-1}).reduce(function(t,e){return t+e}),c={};if(u!==s.length-1)throw new Error("Unbalanced capture group in route '"+this.pattern+"'");function h(t){function e(t){return t.split("").reverse().join("")}t=w(e(t).split(/-(?!\\)/),e);return w(t,function(t){return t.replace(/\\-/g,"-")}).reverse()}for(var d=0;d<u;d++){for(var p=a[d],f=s[d+1],m=0;m<p.replace.length;m++)p.replace[m].from===f&&(f=p.replace[m].to);f&&!0===p.array&&(f=h(f)),$(f)&&(f=p.type.decode(f)),c[p.id]=p.value(f)}return l.forEach(function(t){for(var e=i[t.id],n=0;n<t.replace.length;n++)t.replace[n].from===e&&(e=t.replace[n].to);$(e)&&(e=t.type.decode(e)),c[t.id]=t.value(e)}),e&&(c["#"]=e),c},A.prototype.parameters=function(t){return!1===(t=void 0===t?{}:t).inherit?this._params:Ht(this._cache.path.map(function(t){return t._params}))},A.prototype.parameter=function(i,t){var r=this,e=(void 0===t&&(t={}),this._cache.parent);return function(){for(var t=0,e=r._params;t<e.length;t++){var n=e[t];if(n.id===i)return n}}()||!1!==t.inherit&&e&&e.parameter(i,t)||null},A.prototype.validates=function(n){return n=n||{},this.parameters().filter(function(t){return n.hasOwnProperty(t.id)}).map(function(t){return e=n[(t=t).id],!t||t.validates(e);var e}).reduce(Ot,!0)},A.prototype.format=function(s){void 0===s&&(s={});var t=this._cache.path,e=t.map(A.pathSegmentsAndParams).reduce(f,[]).map(function(t){return y(t)?t:n(t)}),t=t.map(A.queryParams).reduce(f,[]).map(n);return e.concat(t).filter(function(t){return!1===t.isValid}).length?null:e.reduce(function(t,e){var n,i;return y(e)?t+e:(n=e.squash,i=e.encoded,e=e.param,!0===n?t.match(/\/$/)?t.slice(0,-1):t:y(n)?t+n:!1!==n||null==i?t:b(i)?t+w(i,A.encodeDashes
1).join("-"):e.raw?t+i:t+encodeURIComponent(i))},"")+((e=t.map(function(t){var e=t.param,n=t.squash,i=t.encoded,t=t.isDefaultValue;if(!(null==i||t&&!1!==n)&&0!==(i=b(i)?i:[i]).length)return(i=e.raw?i:w(i,encodeURIComponent)).map(function(t){return e.id+"="+t})}).filter(m).reduce(f,[]).join("&"))?"?"+e:"")+(s["#"]?"#"+s["#"]:"");function n(t){var e=t.value(s[t.id]),n=t.validates(e),i=t.isDefaultValue(e),r=!!i&&t.squash,o=t.type.encode(e);return{param:t,value:e,isValid:n,isDefaultValue:i,squash:r,encoded:o}}},A.encodeDashes=function(t){return encodeURIComponent(t).replace(/-/g,function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()})},A.pathSegmentsAndParams=function(t){return Bt(t._segments,t._params.filter(function(t){return t.location===g.DefType.PATH}).concat(void 0)).reduce(f,[]).filter(function(t){return""!==t&&$(t)})},A.queryParams=function(t){return t._params.filter(function(t){return t.location===g.DefType.SEARCH})},A.compare=function(t,e){for(var n=function(t){return t._cache.weights=t._cache.weights||((t=t)._cache.segments=t._cache.segments||t._cache.path.map(A.pathSegmentsAndParams).reduce(f,[]).reduce(Ze,[]).map(function(t){return y(t)?_n(t):t}).reduce(f,[])).map(function(t){return"/"===t?1:y(t)?2:t instanceof _e?3:void 0})},t=n(t),n=n(e),i=t,r=n,o=0,s=Math.max(i.length,r.length);i.length<s;)i.push(o);for(;r.length<s;)r.push(o);for(var a,l=Bt(t,n),u=0;u<l.length;u++)if(0!=(a=l[u][0]-l[u][1]))return a;return 0},A.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/,A);function A(r,o,t,e){for(var n,i,s=this,a=(this.config=e,this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.pattern=r,this.config=Ct(this.config,{params:{},strict:!0,caseInsensitive:!1,paramMap:m}),/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g),l=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,u=0,c=[],h=function(t){if(!A.nameValidator.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+r+"'");if(Mt(s._params,V("id",t)))throw new Error("Duplicate parameter name '"+t+"' in pattern '"+r+"'")},d=function(t,e){var n=t[2]||t[3],i=e?t[4]:t[4]||("*"===t[1]?"[\\s\\S]*":null);return{id:n,regexp:i,cfg:s.config.params[n],segment:r.substring(u,t.index),type:i?o.type(i)||(n=i,vt(o.type(e?"query":"path"),{pattern:new RegExp(n,s.config.caseInsensitive?"i":void 0)})):null}};(n=a.exec(r))&&!(0<=(i=d(n,!1)).segment.indexOf("?"));)h(i.id),this._params.push(t.fromPath(i.id,i.type,this.config.paramMap(i.cfg,!1))),this._segments.push(i.segment),c.push([i.segment,x(this._params)]),u=a.lastIndex;var p=(e=r.substring(u)).indexOf("?");if(0<=p){var f=e.substring(p),e=e.substring(0,p);if(0<f.length)for(u=0;n=l.exec(f);)h((i=d(n,!0)).id),this._params.push(t.fromSearch(i.id,i.type,this.config.paramMap(i.cfg,!0))),u=a.lastIndex}this._segments.push(e),this._compiled=c.map(function(t){return bn.apply(null,t)}).concat(bn(e))}Cn.prototype.caseInsensitive=function(t){return this._isCaseInsensitive=$(t)?t:this._isCaseInsensitive},Cn.prototype.strictMode=function(t){return this._isStrictMode=$(t)?t:this._isStrictMode},Cn.prototype.defaultSquashPolicy=function(t){if($(t)&&!0!==t&&!1!==t&&!y(t))throw new Error("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string");return this._defaultSquashPolicy=$(t)?t:this._defaultSquashPolicy},Cn.prototype.compile=function(t,e){return new wn(t,this.paramTypes,this.paramFactory,this._getConfig(e))},Cn.prototype.isMatcher=function(n){var i;return!!d(n)&&(i=!0,ft(wn.prototype,function(t,e){h(t)&&(i=i&&$(n[e])&&h(n[e]))}),i)},Cn.prototype.type=function(t,e,n){t=this.paramTypes.type(t,e,n);return $(e)?this:t},Cn.prototype.$get=function(){return this.paramTypes.enqueue=!1,this.paramTypes._flushTypeQueue(),this},Cn.prototype.dispose=function(){this.paramTypes.dispose()};var xn=Cn;function Cn(){var i=this;this.paramTypes=new Qe,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1,this._getConfig=function(t){return _({strict:i._isStrictMode,caseInsensitive:i._isCaseInsensitive},t)},this.paramFactory={fromConfig:function(t,e,n){return new _e(t,e,n,g.DefType.CONFIG,i)},fromPath:function(t,e,n){return new _e(t,e,n,g.DefType.PATH,i)},fromSearch:function(t,e,n){return new _e(t,e,n,g.DefType.SEARCH,i)}},_(this,{UrlMatcher:wn,Param:_e})}$n.prototype.compile=function(t){return this.router.urlMatcherFactory.compile(t)},$n.prototype.create=function(t,e){var n=this,i=K([[y,function(t){return i(n.compile(t))}],[s(wn),function(t){return n.fromUrlMatcher(t,e)}],[lt,function(t){return n.fromState(t,n.router)}],[s(RegExp),function(t){return n.fromRegExp(t,e)}],[h,function(t){return new Sn(t,e)}]]),t=i(t);if(t)return t;throw new Error("invalid 'what' in when()")},$n.prototype.fromUrlMatcher=function(n,e){var t=e;y(e)&&(e=this.router.urlMatcherFactory.compile(e)),s(wn)(e)&&(t=function(t){return e.format(t)});var i={urlMatcher:n,matchPriority:function(e){var t=n.parameters().filter(function(t){return t.isOptional});return t.length?t.filter(function(t){return e[t.id]}).length/t.length:1e-6},type:"URLMATCHER"};return _(new Sn(function(t){return t=n.exec(t.path,t.search,t.hash),n.val
1idates(t)&&t},t),i)},$n.prototype.fromState=function(i,r){var t={state:i,type:"STATE"};return _(this.fromUrlMatcher(i.url,function(t){var e=r.stateService,n=r.globals;e.href(i,t)!==e.href(n.current,n.params)&&e.transitionTo(i,t,{inherit:!0,source:"url"})}),t)},$n.prototype.fromRegExp=function(e,t){if(e.global||e.sticky)throw new Error("Rule RegExp must not be global or sticky");var n=y(t)?function(n){return t.replace(/\$(\$|\d{1,2})/,function(t,e){return n["$"===e?0:Number(e)]})}:t,i={regexp:e,type:"REGEXP"};return _(new Sn(function(t){return e.exec(t.path)},n),i)},$n.isUrlRule=function(e){return e&&["type","match","handler"].every(function(t){return $(e[t])})};var kn=$n;function $n(t){this.router=t}var Sn=function(t,e){var n=this;this.match=t,this.type="RAW",this.matchPriority=function(t){return 0-n.$id},this.handler=e||m};var En=function(t,e){var n,i,r=(e.priority||0)-(t.priority||0);return 0!=r||(n=e,0!=(r=((i={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1})[t.type]||0)-(i[n.type]||0)))||(i=e,0!==(r=(n=t).urlMatcher&&i.urlMatcher?wn.compare(n.urlMatcher,i.urlMatcher):0))?r:(n=e,(i={STATE:!0,URLMATCHER:!0})[(r=t).type]&&i[n.type]?0:(r.$id||0)-(n.$id||0))},Tn=(O.prototype.dispose=function(){this.listen(!1),this._rules=[],delete this._otherwiseFn},O.prototype.sort=function(t){this._rules=this.stableSort(this._rules,this._sortFn=t||this._sortFn),this._sorted=!0},O.prototype.ensureSorted=function(){this._sorted||this.sort()},O.prototype.stableSort=function(t,i){t=t.map(function(t,e){return{elem:t,idx:e}});return t.sort(function(t,e){var n=i(t.elem,e.elem);return 0===n?t.idx-e.idx:n}),t.map(function(t){return t.elem})},O.prototype.match=function(t){for(var e,n=this,i=(this.ensureSorted(),t=_({path:"",search:{},hash:""},t),this.rules()),r=(this._otherwiseFn&&i.push(this._otherwiseFn),0);r<i.length&&(!s||0===this._sortFn(i[r],s.rule));r++){o=i[r],e=void 0;var o=(e=o.match(t,n._router))&&{match:e,rule:o,weight:o.matchPriority(e)},s=!s||o&&o.weight>s.weight?o:s}return s},O.prototype.sync=function(t){var e,n,i,r;t&&t.defaultPrevented||(t=this._router,e=t.urlService,n=t.stateService,i={path:e.path(),search:e.search(),hash:e.hash()},r=this.match(i),K([[y,function(t){return e.url(t,!0)}],[se.isDef,function(t){return n.go(t.state,t.params,t.options)}],[s(se),function(t){return n.go(t.state(),t.params(),t.options())}]])(r&&r.rule.handler(r.match,i,t)))},O.prototype.listen=function(t){var e=this;if(!1!==t)return this._stopFn=this._stopFn||this._router.urlService.onChange(function(t){return e.sync(t)});this._stopFn&&this._stopFn(),delete this._stopFn},O.prototype.update=function(t){var e=this._router.locationService;t?this.location=e.path():e.path()!==this.location&&e.url(this.location,!0)},O.prototype.push=function(t,e,n){n=n&&!!n.replace;this._router.urlService.url(t.format(e||{}),n)},O.prototype.href=function(t,e,n){t=t.format(e);if(null==t)return null;n=n||{absolute:!1};var i,r,o,s,e=this._router.urlService.config,a=e.html5Mode();return a||null===t||(t="#"+e.hashPrefix()+t),i=t,o=a,s=n.absolute,t="/"===(r=e.baseHref())?i:o?qe(r)+i:s?r.slice(1)+i:i,n.absolute&&t?(o=!a&&t?"/":"",s=80===(s=e.port())||443===s?"":":"+s,[e.protocol(),"://",e.host(),s,o,t].join("")):t},O.prototype.rule=function(t){var e=this;if(kn.isUrlRule(t))return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,function(){return e.removeRule(t)};throw new Error("invalid rule")},O.prototype.removeRule=function(t){p(this._rules,t)},O.prototype.rules=function(){return this.ensureSorted(),this._rules.slice()},O.prototype.otherwise=function(t){t=Dn(t);this._otherwiseFn=this.urlRuleFactory.create(a(!0),t),this._sorted=!1},O.prototype.initial=function(t){t=Dn(t);this.rule(this.urlRuleFactory.create(function(t,e){return 0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)},t))},O.prototype.when=function(t,e,n){t=this.urlRuleFactory.create(t,e);return $(n&&n.priority)&&(t.priority=n.priority),this.rule(t),t},O.prototype.deferIntercept=function(t){this.interceptDeferred=t=void 0===t?!0:t},O);function O(t){this._sortFn=En,this._rules=[],this.interceptDeferred=!1,this._id=0,this._sorted=!1,this._router=t,this.urlRuleFactory=new kn(t),l(a(O.prototype),this,a(this))}function Dn(t){if(h(t)||y(t)||s(se)(t)||se.isDef(t))return h(t)?t:a(t);throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property")}An.prototype._rootViewContext=function(t){return this._rootContext=t||this._rootContext},An.prototype._viewConfigFactory=function(t,e){this._viewConfigFactories[t]=e},An.prototype.createViewConfig=function(t,e){var n=this._viewConfigFactories[e.$type];if(n)return n=n(t,e),b(n)?n:[n];throw new Error("ViewService: No view config factory registered for type "+e.$type)},An.prototype.deactivateViewConfig=function(t){E.traceViewServiceEvent("<- Removing",t),p(this._viewConfigs,t)},An.prototype.activateViewConfig=function(t){E.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)},An.prototype.sync=function(){var n=this,i=this._uiViews.map(function(t){return[t.fqn,t]}).reduce(qt,{});function r(t){for(var e=t.viewDecl.$context,n=0;++n&&e.parent;)e=e.parent;return n}var o=H(function(t,e,n,i){return e*(t(n)-t(i))}),t=this._uiViews.sort(o(function(t){function e(t){return t&&t.parent?e(t.parent)+1:1}return 1e4*t.fqn.split(".").length+e(t.creationContext)},1)).map(function(t){var e=n._viewConfigs.filter(An.matches(i,t));return 1<e.length&&e.sort(o(r,-1)),[t,e[0]]});E.traceViewSync(t),t.forEach(function(t){var e=t[0],t=t[1];-1!==n._uiViews.indexOf(e)&&e.configUpdated(t)})},An.prototype.registerUIView=function(e){E.traceViewServiceUIViewEvent("-> Registering",e);var t=this._uiViews;return t.filter(function(t){return t.fqn===e.fqn&&t.$type===e.$type}).length&&E.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",e),t.push(e),this.sync(),function(){-1===t.indexOf(e)?E.traceViewServiceUIViewEvent("Tried removing non-registered uiView",e):(E.traceViewServiceUIViewEvent("<- Deregistering",e),p(t)(e))}},An.prototype.available=function(){return this._uiViews.map(v("fqn"))},An.prototype.active=function(){return this._uiViews.filter(v("$config")).map(v("name"))},An.normalizeUIViewTarget=function(t,e){var e=(e=void 0===e?"":e).split("@"),n=e[0]||"$default",e=y(e[1])?e[1]:"^",i=/^(\^(?:\.\^)*)\.(.*$)/.exec(n);i&&(e=i[1],n=i[2]),"!"===n.charAt(0)&&(n=n.substr(1),e="");return/^(\^(?:\.\^)*)$/.exec(e)?e=e.split(".").reduce(function(t,e){return t.parent},t).name:"."===e&&(e=t.name),{uiViewName:n,uiViewContextAnchor:e}},An.matches=function(i,r){return function(t){var e,n;return r.$type===t.viewDecl.$type&&(n=(t=t.viewDecl).$uiViewName.split("."),e=r.fqn.split("."),!!mt(n,e.slice(0-n.length)))&&(n=1-n.length||void 0,e=e.slice(0,n).join("."),n=i[e].creationContext,t.$uiViewContextAnchor===(n&&n.name))}};var Mn=An;function An(){var t=this;this._uiViews=[],this._viewConfigs=[],this._viewConfigFactories={}
1,this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIViews:function(){return t._uiViews},_activeViewConfigs:function(){return t._viewConfigs}}}Nn.prototype.dispose=function(){this.transitionHistory.clear(),this.successfulTransitions.clear(),this.transition=null};var On=Nn;function Nn(){this.params=new en,this.lastStartedTransitionId=-1,this.transitionHistory=new Zt([],1),this.successfulTransitions=new Zt([],1)}function Pn(t){return t.reduce(function(t,e){return t[e]=ct(e),t},{dispose:gt})}var Rn=["url","path","search","hash","onChange"],In=["port","protocol","host","baseHref","html5Mode","hashPrefix"],Ln=["type","caseInsensitive","strictMode","defaultSquashPolicy"],Hn=["sort","when","initial","otherwise","rules","rule","removeRule"],Fn=["deferIntercept","listen","sync","match"],zn=(Vn.prototype.url=function(t,e,n){},Vn.prototype.path=function(){},Vn.prototype.search=function(){},Vn.prototype.hash=function(){},Vn.prototype.onChange=function(t){},Vn.prototype.parts=function(){return{path:this.path(),search:this.search(),hash:this.hash()}},Vn.prototype.dispose=function(){},Vn.prototype.sync=function(t){},Vn.prototype.listen=function(t){},Vn.prototype.deferIntercept=function(t){},Vn.prototype.match=function(t){},Vn.locationServiceStub=Pn(Rn),Vn.locationConfigStub=Pn(In),Vn);function Vn(t,e){void 0===e&&(e=!0),this.router=t,this.rules={},this.config={};function n(){return t.locationService}function i(){return t.locationConfig}function r(){return t.urlMatcherFactory}function o(){return t.urlRouter}l(n,this,n,Rn,e),l(i,this.config,i,In,e),l(r,this.config,r,Ln);l(o,this.rules,o,Hn),l(o,this,o,Fn)}var jn=0,Wn=(Bn.prototype.disposable=function(t){this._disposables.push(t)},Bn.prototype.dispose=function(t){var e=this;t&&h(t.dispose)?t.dispose(this):(this._disposed=!0,this._disposables.slice().forEach(function(t){try{"function"==typeof t.dispose&&t.dispose(e),p(e._disposables,t)}catch(t){}}))},Bn.prototype.plugin=function(t,e){t=new t(this,e=void 0===e?{}:e);if(t.name)return this._disposables.push(t),this._plugins[t.name]=t;throw new Error("Required property `name` missing on plugin: "+t)},Bn.prototype.getPlugin=function(t){return t?this._plugins[t]:Rt(this._plugins)},Bn);function Bn(t,e){void 0===t&&(t=zn.locationServiceStub),void 0===e&&(e=zn.locationConfigStub),this.locationService=t,this.locationConfig=e,this.$id=jn++,this._disposed=!1,this._disposables=[],this.trace=E,this.viewService=new Mn,this.transitionService=new ui(this),this.globals=new On,this.urlMatcherFactory=new xn,this.urlRouter=new Tn(this),this.stateRegistry=new vn(this),this.stateService=new ci(this),this.urlService=new zn(this),this._plugins={},this.viewService._pluginapi._rootViewContext(this.stateRegistry.root()),this.globals.$current=this.stateRegistry.root(),this.globals.current=this.globals.$current.self,this.disposable(this.globals),this.disposable(this.stateService),this.disposable(this.stateRegistry),this.disposable(this.transitionService),this.disposable(this.urlRouter),this.disposable(t),this.disposable(e)}function qn(e){e.addResolvable({token:Wn,deps:[],resolveFn:function(){return e.router},data:e.router},""),e.addResolvable({token:Ie,deps:[],resolveFn:function(){return e},data:e},""),e.addResolvable({token:"$transition$",deps:[],resolveFn:function(){return e},data:e},""),e.addResolvable({token:"$stateParams",deps:[],resolveFn:function(){return e.params()},data:e.params()},""),e.entering().forEach(function(t){e.addResolvable({token:"$state$",deps:[],resolveFn:function(){return t},data:t},t)})}function Un(e){var n,t=e.to().redirectTo;if(t)return n=e.router.stateService,h(t)?c.$q.when(t(e)).then(i):i(t);function i(t){if(t)return t instanceof se?t:y(t)?n.target(t,e.params(),e.options()):t.state||t.params?n.target(t.state||e.to(),t.params||e.params(),e.options()):void 0}}function Yn(n){return function(t,e){return(0,e.$$state()[n])(t,e)}}function Gn(t){return new Ae(t.treeChanges().to).resolvePath("EAGER",t).then(gt)}function Kn(t,e){return new Ae(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then(gt)}function Xn(t){var e=c.$q;if((t=t.views("entering")).length)return e.all(t.map(function(t){return e.when(t.load())})).then(gt)}function Zn(t){var e,n=t.views("entering"),i=t.views("exiting");
1(n.length||i.length)&&(e=t.router.viewService,i.forEach(function(t){return e.deactivateViewConfig(t)}),n.forEach(function(t){return e.activateViewConfig(t)}),e.sync())}function Qn(t){function e(){n.transition===t&&(n.transition=null)}var n=t.router.globals;t.onSuccess({},function(){n.successfulTransitions.enqueue(t),n.$current=t.$to(),n.current=n.$current.self,Ut(t.params(),n.params)},{priority:1e4}),t.promise.then(e,e)}function Jn(t){var e=t.options(),n=t.router.stateService,t=t.router.urlRouter;"url"!==e.source&&e.location&&n.$current.navigable&&(e={replace:"replace"===e.location},t.push(n.$current.navigable.url,n.params,e)),t.update(!0)}function ti(n){var i=n.router,t=n.entering().filter(function(t){return!!t.$$state().lazyLoad}).map(function(t){return ri(n,t)});return c.$q.all(t).then(function(){var t,e;return"url"!==n.originalTransition().options().source?(e=n.targetState(),i.stateService.target(e.identifier(),e.params(),e.options())):(t=(e=(e=i.urlService).match(e.parts()))&&e.rule)&&"STATE"===t.type?(t=t.state,e=e.match,i.stateService.target(t,e,n.options())):void i.urlService.sync()})}var ei=Yn("onExit"),ni=Yn("onRetain"),ii=Yn("onEnter");function ri(e,n){var i=n.$$state().lazyLoad,t=i._promise;return t||(t=i._promise=c.$q.when(i(e,n)).then(function(t){t&&Array.isArray(t.states)&&t.states.forEach(function(t){return e.router.stateRegistry.register(t)});return t}).then(function(t){return delete n.lazyLoad,delete n.$$state().lazyLoad,delete i._promise,t},function(t){return delete i._promise,c.$q.reject(t)})),t}var oi=function(t,e,n,i,r,o,s,a){void 0===r&&(r=!1),void 0===o&&(o=le.HANDLE_RESULT),void 0===s&&(s=le.REJECT_ERROR),void 0===a&&(a=!1),this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=i,this.reverseSort=r,this.getResultHandler=o,this.getErrorHandler=s,this.synchronous=a};function si(t){var e=t._ignoredReason();if(e)return E.traceTransitionIgnored(t),t=t.router.globals.transition,"SameAsCurrent"===e&&t&&t.abort(),S.ignored().toPromise()}function ai(t){if(!t.valid())throw new Error(t.error())}var li={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,custom:{},current:function(){return null},source:"unknown"},ui=(N.prototype.onCreate=function(t,e,n){},N.prototype.onBefore=function(t,e,n){},N.prototype.onStart=function(t,e,n){},N.prototype.onExit=function(t,e,n){},N.prototype.onRetain=function(t,e,n){},N.prototype.onEnter=function(t,e,n){},N.prototype.onFinish=function(t,e,n){},N.prototype.onSuccess=function(t,e,n){},N.prototype.onError=function(t,e,n){},N.prototype.dispose=function(t){Rt(this._registeredHooks).forEach(function(e){return e.forEach(function(t){t._deregistered=!0,p(e,t)})})},N.prototype.create=function(t,e){return new Ie(t,e,this._router)},N.prototype._defineCoreEvents=function(){var t=g.TransitionHookPhase,e=le,n=this._criteriaPaths;this._defineEvent("onCreate",t.CREATE,0,n.to,!1,e.LOG_REJECTED_RESULT,e.THROW_ERROR,!0),this._defineEvent("onBefore",t.BEFORE,0,n.to),this._defineEvent("onStart",t.RUN,0,n.to),this._defineEvent("onExit",t.RUN,100,n.exiting,!0),this._defineEvent("onRetain",t.RUN,200,n.retained),this._defineEvent("onEnter",t.RUN,300,n.entering),this._defineEvent("onFinish",t.RUN,400,n.to),this._defineEvent("onSuccess",t.SUCCESS,0,n.to,!1,e.LOG_REJECTED_RESULT,e.LOG_ERROR,!0),this._defineEvent("onError",t.ERROR,0,n.to,!1,e.LOG_REJECTED_RESULT,e.LOG_ERROR,!0)},N.prototype._defineCorePaths=function(){var t=g.TransitionHookScope.STATE,e=g.TransitionHookScope.TRANSITION;this._definePathType("to",e),this._definePathType("from",e),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)},N.prototype._defineEvent=function(t,e,n,i,r,o,s,a){void 0===o&&(o=le.HANDLE_RESULT),void 0===s&&(s=le.REJECT_ERROR);t=new oi(t,e,n,i,r=void 0===r?!1:r,o,s,a=void 0===a?!1:a);this._eventTypes.push(t),de(this,this,t)},N.prototype._getEvents=function(e){return($(e)?this._eventTypes.filter(function(t){return t.hookPhase===e}):this._eventTypes.slice()).sort(function(t,e){var n=t.hookPhase-e.hookPhase;return 0==n?t.hookOrder-e.hookOrder:n})},N.prototype._definePathType=function(t,e){this._criteriaPaths[t]={name:t,scope:e}}
1,N.prototype._getPathTypes=function(){return this._criteriaPaths},N.prototype.getHooks=function(t){return this._registeredHooks[t]},N.prototype._registerCoreTransitionHooks=function(){var t=this._deregisterHookFns;t.addCoreResolves=this.onCreate({},qn),t.ignored=this.onBefore({},si,{priority:-9999}),t.invalid=this.onBefore({},ai,{priority:-1e4}),t.redirectTo=this.onStart({to:function(t){return!!t.redirectTo}},Un),t.onExit=this.onExit({exiting:function(t){return!!t.onExit}},ei),t.onRetain=this.onRetain({retained:function(t){return!!t.onRetain}},ni),t.onEnter=this.onEnter({entering:function(t){return!!t.onEnter}},ii),t.eagerResolve=this.onStart({},Gn,{priority:1e3}),t.lazyResolve=this.onEnter({entering:a(!0)},Kn,{priority:1e3}),t.loadViews=this.onFinish({},Xn),t.activateViews=this.onSuccess({},Zn),t.updateGlobals=this.onCreate({},Qn),t.updateUrl=this.onSuccess({},Jn,{priority:9999}),t.lazyLoad=this.onBefore({entering:function(t){return!!t.lazyLoad}},ti)},N);function N(t){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this._router=t,this.$view=t.viewService,this._deregisterHookFns={},this._pluginapi=l(a(this),{},a(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks()}Object.defineProperty(P.prototype,"transition",{get:function(){return this.router.globals.transition},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"params",{get:function(){return this.router.globals.params},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"current",{get:function(){return this.router.globals.current},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"$current",{get:function(){return this.router.globals.$current},enumerable:!0,configurable:!0}),P.prototype.dispose=function(){this.defaultErrorHandler(gt),this.invalidCallbacks=[]},P.prototype._handleInvalidTargetState=function(t,n){var e=this,i=ke.makeTargetState(this.router.stateRegistry,t),r=this.router.globals,o=function(){return r.transitionHistory.peekTail()},s=o(),a=new Zt(this.invalidCallbacks.slice()),l=new Ae(t).injector(),u=function(t){if(t instanceof se)return(t=e.target((t=t).identifier(),t.params(),t.options())).valid()?o()!==s?S.superseded().toPromise():e.transitionTo(t.identifier(),t.params(),t.options()):S.invalid(t.error()).toPromise()};return function e(){var t=a.dequeue();return void 0===t?S.invalid(n.error()).toPromise():c.$q.when(t(n,i,l)).then(u).then(function(t){return t||e()})}()},P.prototype.onInvalid=function(t){return this.invalidCallbacks.push(t),function(){p(this.invalidCallbacks)(t)}.bind(this)},P.prototype.reload=function(t){return this.transitionTo(this.current,this.params,{reload:!$(t)||t,inherit:!1,notify:!1})},P.prototype.go=function(t,e,n){n=Ct(n,{relative:this.$current,inherit:!0},li);return this.transitionTo(t,e,n)},P.prototype.target=function(t,e,n){if(d((n=void 0===n?{}:n).reload)&&!n.reload.name)throw new Error("Invalid reload state object");var i=this.router.stateRegistry;if(n.reloadState=!0===n.reload?i.root():i.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error("No such reload state '"+(y(n.reload)?n.reload:n.reload.name)+"'");return new se(this.router.stateRegistry,t,e,n)},P.prototype.getCurrentPath=function(){var t=this,e=this.router.globals.successfulTransitions.peekTail();return e?e.treeChanges().to:[new xe(t.router.stateRegistry.root())]},P.prototype.transitionTo=function(t,e,n){var r,i,o=this,s=(void 0===e&&(e={}),this.router),a=s.globals,t=(n=Ct(n=void 0===n?{}:n,li),n=_(n,{current:function(){return a.transition}}),this.target(t,e,n)),e=this.getCurrentPath();return t.exists()?t.valid()?(r=function(i){return function(t){if(t instanceof S){var e=s.globals.lastStartedTransitionId===i.$id;if(t.type===g.RejectType.IGNORED)return e&&s.urlRouter.update(),c.$q.when(a.current);var n=t.detail;if(t.type===g.RejectType.SUPERSEDED&&t.redirected&&n instanceof se)return(n=i.redirect(n)).run().catch(r(n));
1if(t.type===g.RejectType.ABORTED)return e&&s.urlRouter.update(),c.$q.reject(t)}return o.defaultErrorHandler()(t),c.$q.reject(t)}},i=(n=this.router.transitionService.create(e,t)).run().catch(r(n)),Kt(i),_(i,{transition:n})):Xt(t.error()):this._handleInvalidTargetState(e,t)},P.prototype.is=function(t,e,n){n=Ct(n,{relative:this.$current});t=this.router.stateRegistry.matcher.find(t,n.relative);if($(t))return this.$current===t&&(!e||(n=t.parameters({inherit:!0,matchingKeys:e}),_e.equals(n,_e.values(n,e),this.params)))},P.prototype.includes=function(t,e,n){n=Ct(n,{relative:this.$current});var i=y(t)&&X.fromString(t);if(i){if(!i.matches(this.$current.name))return!1;t=this.$current.name}i=this.router.stateRegistry.matcher.find(t,n.relative),t=this.$current.includes;if($(i))return!!$(t[i.name])&&(!e||(n=i.parameters({inherit:!0,matchingKeys:e}),_e.equals(n,_e.values(n,e),this.params)))},P.prototype.href=function(t,e,n){n=Ct(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};t=this.router.stateRegistry.matcher.find(t,n.relative);if(!$(t))return null;n.inherit&&(e=this.params.$inherit(e,this.$current,t));t=t&&n.lossy?t.navigable:t;return t&&void 0!==t.url&&null!==t.url?this.router.urlRouter.href(t.url,e,{absolute:n.absolute}):null},P.prototype.defaultErrorHandler=function(t){return this._defaultErrorHandler=t||this._defaultErrorHandler},P.prototype.get=function(t,e){var n=this.router.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)},P.prototype.lazyLoad=function(t,e){var n,i,r=this.get(t);if(r&&r.lazyLoad)return n=this.getCurrentPath(),i=ke.makeTargetState(this.router.stateRegistry,n),ri(e=e||this.router.transitionService.create(n,i),r);throw new Error("Can not lazy load "+t)};var ci=P;function P(t){this.router=t,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){t instanceof Error&&t.stack?(console.error(t),console.error(t.stack)):t instanceof S?(console.error(t.toString()),t.detail&&t.detail.stack&&console.error(t.detail.stack)):console.error(t)};t=Object.keys(P.prototype).filter(j(yt(["current","$current","params","transition"])));l(a(P.prototype),this,a(this),t)}function hi(t){return t.split("&").filter(m).map(Ke).reduce(vi,{})}var di={when:function(n){return new Promise(function(t,e){return t(n)})},reject:function(n){return new Promise(function(t,e){e(n)})},defer:function(){var n={};return n.promise=new Promise(function(t,e){n.resolve=t,n.reject=e}),n},all:function(t){var e;return b(t)?Promise.all(t):d(t)?(e=Object.keys(t).map(function(e){return t[e].then(function(t){return{key:e,val:t}})}),di.all(e).then(function(t){return t.reduce(function(t,e){return t[e.key]=e.val,t},{})})):void 0}},pi={},fi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,mi=/([^\s,]+)/g,gi={get:function(t){return pi[t]},has:function(t){return null!=gi.get(t)},invoke:function(t,e,n){var i=_({},pi,n||{}),n=gi.annotate(t),r=zt(function(t){return i.hasOwnProperty(t)},function(t){return"DI can't find injectable: '"+t+"'"}),n=n.filter(r).map(function(t){return i[t]});
1return(h(t)?t:t.slice(-1)[0]).apply(e,n)},annotate:function(t){var e;if(ut(t))return t&&t.$inject?t.$inject:b(t)?t.slice(0,-1):(e=t.toString().replace(fi,"")).slice(e.indexOf("(")+1,e.indexOf(")")).match(mi)||[];throw new Error("Not an injectable function: "+t)}},vi=function(t,e){var n=e[0],e=e[1];return t.hasOwnProperty(n)?b(t[n])?t[n].push(e):t[n]=[t[n],e]:t[n]=e,t};function yi(t){function e(t){return t||""}var n=Ye(t).map(e),i=n[0],n=n[1],i=Ge(i).map(e);return{path:i[0],search:i[1],hash:n,url:t}}function bi(t){var e=t.path(),n=t.search(),t=t.hash(),i=Object.keys(n).map(function(e){var t=n[e];return(b(t)?t:[t]).map(function(t){return e+"="+t})}).reduce(f,[]).join("&");return e+(i?"?"+i:"")+(t?"#"+t:"")}function _i(i,r,o,s){return function(t){var e=t.locationService=new o(t),n=t.locationConfig=new s(t,r);return{name:i,service:e,configuration:n,dispose:function(t){t.dispose(e),t.dispose(n)}}}}xi.prototype.url=function(e,t){return void 0===t&&(t=!0),$(e)&&e!==this._get()&&(this._set(null,null,e,t),this.fireAfterUpdate)&&this._listeners.forEach(function(t){return t({url:e})}),bi(this)},xi.prototype.onChange=function(t){var e=this;return this._listeners.push(t),function(){return p(e._listeners,t)}},xi.prototype.dispose=function(t){xt(this._listeners)};var wi=xi;function xi(t,e){var n=this;this.fireAfterUpdate=e,this._listener=function(e){return n._listeners.forEach(function(t){return t(e)})},this._listeners=[],this.hash=function(){return yi(n._get()).hash},this.path=function(){return yi(n._get()).path},this.search=function(){return hi(yi(n._get()).search)},this._location=dt.location,this._history=dt.history}Ci=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])});(function(t,e){function n(){this.constructor=t}Ci(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(Si,ki=wi),Si.prototype._get=function(){return Ue(this._location.hash)},Si.prototype._set=function(t,e,n,i){this._location.hash=n},Si.prototype.dispose=function(t){ki.prototype.dispose.call(this,t),dt.removeEventListener("hashchange",this._listener)};var Ci,ki,$i=Si;function Si(t){t=ki.call(this,t,!1)||this;return dt.addEventListener("hashchange",t._listener,!1),t}Ei=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])});(function(t,e){function n(){this.constructor=t}Ei(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(Mi,Ti=wi),Mi.prototype._get=function(){return this._url},Mi.prototype._set=function(t,e,n,i){this._url=n};var Ei,Ti,Di=Mi;function Mi(t){return Ti.call(this,t,!0)||this}
1Ai=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])});(function(t,e){function n(){this.constructor=t}Ai(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(Pi,Oi=wi),Pi.prototype._getBasePrefix=function(){return qe(this._config.baseHref())},Pi.prototype._get=function(){var t=this._location,e=t.pathname,n=t.hash,t=t.search,t=Ge(t)[1],n=Ye(n)[1],i=this._getBasePrefix(),r=e===this._config.baseHref(),o=e.startsWith(i);return(e=r?"/":o?e.substring(i.length):e)+(t?"?"+t:"")+(n?"#"+n:"")},Pi.prototype._set=function(t,e,n,i){n=this._getBasePrefix()+n;i?this._history.replaceState(t,e,n):this._history.pushState(t,e,n)},Pi.prototype.dispose=function(t){Oi.prototype.dispose.call(this,t),dt.removeEventListener("popstate",this._listener)};var Ai,Oi,Ni=Pi;function Pi(t){var e=Oi.call(this,t,!0)||this;return e._config=t.urlService.config,dt.addEventListener("popstate",e._listener,!1),e}function Ri(){var e=this;this._baseHref="",this._port=80,this._protocol="http",this._host="localhost",this._hashPrefix="",this.port=function(){return e._port},this.protocol=function(){return e._protocol},this.host=function(){return e._host},this.baseHref=function(){return e._baseHref},this.html5Mode=function(){return!1},this.hashPrefix=function(t){return $(t)?e._hashPrefix=t:e._hashPrefix},this.dispose=gt}Li.prototype.port=function(){return location.port?Number(location.port):"https"===this.protocol()?443:80},Li.prototype.protocol=function(){return location.protocol.replace(/:/g,"")},Li.prototype.host=function(){return location.hostname},Li.prototype.html5Mode=function(){return this._isHtml5},Li.prototype.hashPrefix=function(t){return $(t)?this._hashPrefix=t:this._hashPrefix},Li.prototype.baseHref=function(t){return $(t)?this._baseHref=t:$(this._baseHref)?this._baseHref:this.applyDocumentBaseHref()},Li.prototype.applyDocumentBaseHref=function(){var t=document.getElementsByTagName("base")[0];return this._baseHref=t?t.href.substr(location.origin.length):""},Li.prototype.dispose=function(){};var Ii=Li;function Li(t,e){this._isHtml5=e=void 0===e?!1:e,this._baseHref=void 0,this._hashPrefix=""}function Hi(t){return c.$injector=gi,{name:"vanilla.services",$q:c.$q=di,$injector:gi,dispose:function(){return null}}}var Fi=_i("vanilla.hashBangLocation",!1,$i,Ii),zi=_i("vanilla.pushStateLocation",!0,Ni,Ii),Vi=_i("vanilla.memoryLocation",!1,Di,Ri),ji=(Wi.prototype.dispose=function(t){},Wi);function Wi(){}var Bi=Object.freeze({root:dt,fromJson:L,toJson:pt,forEach:ft,extend:_,equals:mt,identity:m,noop:gt,createProxyFunctions:l,inherit:vt,inArray:yt,_inArray:bt,removeFrom:p,_removeFrom:_t,pushTo:I,_pushTo:wt,deregAll:xt,defaults:Ct,mergeR:kt,ancestors:$t,pick:St,omit:Et,pluck:Tt,filter:Dt,find:Mt,mapObj:At,map:w,values:Rt,allTrueR:Ot,anyTrueR:Nt,unnestR:f,flattenR:Pt,pushR:It,uniqR:Lt,unnest:Ht,flatten:Ft,assertPredicate:zt,assertMap:Vt,assertFn:jt,pairs:Wt,arrayTuples:Bt,applyPairs:qt,tail:x,copy:Ut,_extend:Yt,silenceUncaughtInPromise:Kt,silentRejection:Xt,notImplemented:ct,services:c,Glob:X,curry:H,compose:F,pipe:z,prop:v,propEq:V,parse:k,not:j,and:W,or:B,all:q,any:U,is:s,eq:Y,val:a,invoke:G,pattern:K,isUndefined:ot,isDefined:$,isNull:et,isNullOrUndefined:st,isFunction:h,isNumber:at,isString:y,isObject:d,isArray:b,isDate:nt,isRegExp:it,isState:lt,isInjectable:ut,isPromise:ht,Queue:Zt,maxLength:Le,padString:He,kebobString:Fe,functionToString:ze,fnToString:Ve,stringify:M,beforeAfterSubstr:Be,hostRegex:r,stripFile:qe,splitHash:Ye,splitQuery:Ge,splitEqual:Ke,trimHashVal:Ue,splitOnDelim:Xe,joinNeighborsR:Ze,get Category(){return g.Category},Trace:t,trace:E,get DefType(){return g.DefType},Param:_e,ParamTypes:Qe,StateParams:en,ParamType:me,PathNode:xe,PathUtils:ke,resolvePolicies:Ee,defaultResolvePolicy:$e,Re
1solvable:u,NATIVE_INJECTOR_TOKEN:Me,ResolveContext:Ae,resolvablesBuilder:cn,StateBuilder:hn,StateObject:Q,StateMatcher:pn,StateQueueManager:mn,StateRegistry:vn,StateService:ci,TargetState:se,get TransitionHookPhase(){return g.TransitionHookPhase},get TransitionHookScope(){return g.TransitionHookScope},HookBuilder:pe,matchState:ue,RegisteredHook:ce,makeEvent:de,get RejectType(){return g.RejectType},Rejection:S,Transition:Ie,TransitionHook:le,TransitionEventType:oi,defaultTransOpts:li,TransitionService:ui,UrlMatcher:wn,UrlMatcherFactory:xn,UrlRouter:Tn,UrlRuleFactory:kn,BaseUrlRule:Sn,UrlService:zn,ViewService:Mn,UIRouterGlobals:On,UIRouter:Wn,$q:di,$injector:gi,BaseLocationServices:wi,HashLocationService:$i,MemoryLocationService:Di,PushStateLocationService:Ni,MemoryLocationConfig:Ri,BrowserLocationConfig:Ii,keyValsToObjectR:vi,getParams:hi,parseUrl:yi,buildUrl:bi,locationPluginFactory:_i,servicesPlugin:Hi,hashLocationPlugin:Fi,pushStateLocationPlugin:zi,memoryLocationPlugin:Vi,UIRouterPluginBase:ji});function qi(){var n=null;return function(t,e){return n=n||c.$injector.get("$templateFactory"),[new Ki(t,e,n)]}}var Ui=function(t,n){return t.reduce(function(t,e){return t||$(n[e])},!1)};function Yi(i){if(!i.parent)return{};var r=["component","bindings","componentProvider"],o=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),t=r.concat(o);if($(i.views)&&Ui(t,i))throw new Error("State '"+i.name+"' has a 'views' object. It cannot also have \"view properties\" at the state level.  Move the following properties into a view (in the 'views' object):  "+t.filter(function(t){return $(i[t])}).join(", "));var s={},t=i.views||{$default:St(i,t)};return ft(t,function(t,e){if(e=e||"$default",y(t)&&(t={component:t}),t=_({},t),Ui(r,t)&&Ui(o,t))throw new Error("Cannot combine: "+r.join("|")+" with: "+o.join("|")+" in stateview: '"+e+"@"+i.name+"'");t.resolveAs=t.resolveAs||"$resolve",t.$type="ng1",t.$context=i,t.$name=e;var n=Mn.normalizeUIViewTarget(t.$context,t.$name);t.$uiViewName=n.uiViewName,t.$uiViewContextAnchor=n.uiViewContextAnchor,s[e]=t}),s}var Gi=0,Ki=(Xi.prototype.load=function(){var e=this,t=c.$q,n=new Ae(this.path),i=this.path.reduce(function(t,e){return _(t,e.paramValues)},{}),i={template:t.when(this.factory.fromConfig(this.viewDecl,i,n)),controller:t.when(this.getController(n))};return t.all(i).then(function(t){return E.traceViewServiceEvent("Loaded",e),e.controller=t.controller,_(e,t.template),e})},Xi.prototype.getController=function(t){var e,n=this.viewDecl.controllerProvider;return ut(n)?(e=c.$injector.annotate(n),n=b(n)?x(n):n,new u("",n,e).get(t)):this.viewDecl.controller},Xi);function Xi(t,e,n){var i=this;this.path=t,this.viewDecl=e,this.factory=n,this.$id=Gi++,this.loaded=!1,this.getTemplate=function(t,e){return i.component?i.factory.makeComponentTemplate(t,e,i.component,i.viewDecl.bindings):i.template}}Qi.prototype.useHttpService=function(t){this._useHttp=t},Qi.prototype.fromConfig=function(t,e,n){function i(t){return c.$q.when(t).then(function(t){return{template:t}})}function r(t){return c.$q.when(t).then(function(t){return{component:t}})}return $(t.template)?i(this.fromString(t.template,e)):$(t.templateUrl)?i(this.fromUrl(t.templateUrl,e)):$(t.templateProvider)?i(this.fromProvider(t.templateProvider,e,n)):$(t.component)?r(t.component):$(t.componentProvider)?r(this.fromComponentProvider(t.componentProvider,e,n)):i("<ui-view></ui-view>")},Qi.prototype.fromString=function(t,e){return h(t)?t(e):t},Qi.prototype.fromUrl=function(t,e){return null==(t=h(t)?t(e):t)?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then(function(t){return t.data}):this.$templateRequest(t)},Qi.prototype.fromProvider=function(t,e,n){var i=c.$injector.annotate(t),t=b(t)?x(t):t;return new u("",t,i).get(n)},Qi.prototype.fromComponentProvider=function(t,e,n){var i=c.$injector.annotate(t),t=b(t)?x(t):t;return new u("",t,i).get(n)},Qi.prototype.makeComponentTemplate=function(r,o,t,s){s=s||{};function a(t){return t=Fe(t),/^(x|data)-/.exec(t)?"x-"+t:t}var l=3<=C.version.minor?"::":"",e=function(t){var e=c.$injector.get(t+"Directive");if(e&&e.length)return e.map(Ji).reduce(f,[]);throw new Error("Unable to find component named '"+t+"'")}(t).map(function(t){var e,n=t.name,t=t.type,i=a(n);return r.attr(i)&&!s[n]?i+"='"+r.attr(i)+"'":(n=s[n]||n,"@"===t?i+"='{{"+l+"$resolve."+n+"}}'":"&"===t?(e=(t=(t=o.getResolvable(n))&&t.data)&&c.$injector.annotate(t)||[],i+"='$resolve."+n+(b(t)?"["+(t.length-1)+"]":"")+"("+e.join(",")+")'"):i+"='"+l+"$resolve."+n+"'")}).join(" "),t=a(t);return"<"+t+" "+e+"></"+t+">"};var Zi=Qi;function Qi(){var i=this;this._useHttp=C.version.minor<3,this.$get=["$http","$templateCache","$injector",function(t,e,n){return i.$templateRequest=n.has&&n.has("$templateRequest")&&n.get("$templateRequest"),i.$http=t,i.$templateCache=e,i}]}var Ji=function(t){return d(t.bindToController)?tr(t.bindToController):tr(t.scope)},tr=function(e){return Object.keys(e||{}).map(function(t){return[t,/^([=<@&])[?]?(.*)/.exec(e[t])]}).filter(function(t){return $(t)&&b(t[1])}).map(function(t){return{name:t[1][2]||t[0],type:t[1][1]}})},er=(nr.prototype.decorator=function(t,e){return this.stateRegistry.decorator(t,e)||this},nr.prototype.state=function(t,e){return d(t)?e=t:e.name=t,this.stateRegistry.register(e),this},nr.prototype.onInvalid=function(t){return this.stateService.onInvalid(t)},nr);function nr(t,e){this.stateRegistry=t,this.stateService=e,l(a(nr.prototype),this,a(this))}function ir(n){return function(t,e){var i=t[n],r="onExit"===n?"from":"to";return i?function(t,e){var n=new Ae(t.treeChanges(r)),n=_(vr(n),{$state$:e,$transition$:t});return c.$injector.invoke(i,this,n)}:void 0}}or.prototype.dispose=function(){},or.prototype.onChange=function(t){var e=this;return this._urlListeners.push(t),function(){return p(e._urlListeners)(t)}},or.prototype.html5Mode=function(){var t=this.$locationProvider.html5Mode();return(d(t)?t.enabled:t)&&this.$sniffer.history},or.prototype.url=function(t,e,n){return void 0===e&&(e=!1),t&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()},or.prototype._runtimeServices=function(t,e,n,i){var r=this,n=(this.$location=e,this.$sniffer=n,t.$on("$locationChangeSuccess",function(e){return r._urlListeners.forEac
1h(function(t){return t(e)})}),a(e)),t=a(i);l(n,this,n,["replace","path","search","hash"]),l(n,this,n,["port","protocol","host"]),l(t,this,t,["baseHref"])},or.monkeyPatchPathParameterType=function(t){t=t.urlMatcherFactory.type("path");t.encode=function(t){return null!=t?t.toString().replace(/(~|\/)/g,function(t){return{"~":"~~","/":"~2F"}[t]}):t},t.decode=function(t){return null!=t?t.toString().replace(/(~~|~2F)/g,function(t){return{"~~":"~","~2F":"/"}[t]}):t}};var rr=or;function or(t){this._urlListeners=[],this.$locationProvider=t;t=a(t);l(t,this,t,["hashPrefix"])}ar.prototype.$get=function(){var t=this._urlRouter;return t.update(!0),t.interceptDeferred||t.listen(),t},ar.prototype.rule=function(t){var e,n=this;if(h(t))return e=new Sn(function(){return t(c.$injector,n._router.locationService)},m),this._urlRouter.rule(e),this;throw new Error("'rule' must be a function")},ar.prototype.otherwise=function(t){var e=this,n=this._urlRouter;if(y(t))n.otherwise(t);else{if(!h(t))throw new Error("'rule' must be a string or function");n.otherwise(function(){return t(c.$injector,e._router.locationService)})}return this},ar.prototype.when=function(t,e){return(b(e)||h(e))&&(e=ar.injectableHandler(this._router,e)),this._urlRouter.when(t,e),this},ar.injectableHandler=function(e,n){return function(t){return c.$injector.invoke(n,null,{$match:t,$stateParams:e.globals.params})}},ar.prototype.deferIntercept=function(t){this._urlRouter.deferIntercept(t)};var sr=ar;function ar(t){this._router=t,this._urlRouter=t.urlRouter}C.module("ui.router.angular1",[]);var lr=C.module("ui.router.init",[]),ur=C.module("ui.router.util",["ng","ui.router.init"]),cr=C.module("ui.router.router",["ui.router.util"]),hr=C.module("ui.router.state",["ui.router.router","ui.router.util","ui.router.angular1"]),dr=C.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]),R=(C.module("ui.router.compat",["ui.router"]),null);function pr(t){(R=this.router=new Wn).stateProvider=new er(R.stateRegistry,R.stateService),R.stateRegistry.decorator("views",Yi),R.stateRegistry.decorator("onExit",ir("onExit")),R.stateRegistry.decorator("onRetain",ir("onRetain")),R.stateRegistry.decorator("onEnter",ir("onEnter")),R.viewService._pluginapi._viewConfigFactory("ng1",qi());var s=R.locationService=R.locationConfig=new rr(t);function e(t,e,n,i,r,o){return s._runtimeServices(i,t,n,e),delete R.router,delete R.$get,R}return rr.monkeyPatchPathParameterType(R),((R.router=R).$get=e).$inject=["$location","$browser","$sniffer","$rootScope","$http","$templateCache"],R}pr.$inject=["$locationProvider"];function fr(n){return["$uiRouterProvider",function(t){var e=t.router[n];return e.$get=function(){return e},e}]}function mr(e,t,n){c.$injector=e,c.$q=t,n.stateRegistry.get().map(function(t){return t.$$state().resolvables}).reduce(f,[]).filter(function(t){return"deferred"===t.deps}).forEach(function(t){return t.deps=e.annotate(t.resolveFn,e.strictDi)})}mr.$inject=["$injector","$q","$uiRouter"];function gr(t){t.$watch(function(){E.approximateDigests++})}gr.$inject=["$rootScope"],lr.provider("$uiRouter",pr),cr.provider("$urlRouter",["$uiRouterProvider",function(t){return t.urlRouterProvider=new sr(t)}]),ur.provider("$urlService",fr("urlService")),ur.provider("$urlMatcherFactory",["$uiRouterProvider",function(){return R.urlMatcherFactory}]),ur.provider("$templateFactory",function(){return new Zi}),hr.provider("$stateRegistry",fr("stateRegistry")),hr.provider("$uiRouterGlobals",fr("globals")),hr.provider("$transitions",fr("transitionService")),hr.provider("$state",["$uiRouterProvider",function(){return _(R.stateProvider,{$get:function(){return R.stateService}})}]),hr.factory("$stateParams",["$uiRouter",function(t){return t.globals.params}]),dr.factory("$view",function(){return R.viewService}),dr.service("$trace",function(){return E}),dr.run(gr),ur.run(["$urlMatcherFactory",function(t){}]),hr.run(["$state",function(t){}]),cr.run(["$urlRouter",function(t){}]),lr.run(mr);var vr=function(n){return n.getTokens().filter(y).map(function(t){var e=n.getResolvable(t);return[t,"NOWAIT"===n.getPolicy(e).async?e.promise:e.data]}).reduce(qt,{})};function yr(t){var e=t.match(/^\s*({[^}]*})\s*$/);if((e=(t=e?"("+e[1]+")":t).replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/))&&4===e.length)return{state:e[1]||null,paramExpr:e[3]||null};throw new Error("Invalid state ref '"+t+"'")}function br(t){t=t.parent().inheritedData("$uiView"),t=k("$cfg.path")(t);return t?x(t).state.name:void 0}function _r(t,e,n){var i=n.uiState||t.current.name,e=_((r=t,{relative:br(e)||r.$current,inherit:!0,source:"sref"}),n.uiStateOpts||{}),r=t.href(i,n.uiStateParams,e);return{uiState:i,uiStateParams:n.uiStateParams,uiStateOpts:e,href:r}}function wr(t){var e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.prop("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.prop("tagName").toUpperCase(),clickable:!n}}function xr(o,s,a,l,u){return function(t){var e,n,i=t.which||t.button,r=u();1<i||t.ctrlKey||t.metaKey||t.shiftKey||o.attr("target")||(e=a(function(){s.go(r.uiState,r.uiStateParams,r.uiStateOpts)}),t.preventDefault(),n=l.isAnchor&&!r.href?1:0,t.preventDefault=function(){n--<=0&&a.cancel(e)})}}function Cr(r,t,o,e){e&&(s=e.events),b(s)||(s=["click"]);for(var s,n=r.on?"on":"bind",i=0,a=s;i<a.length;i++){var l=a[i];r[n](l,o)}t.$on("$destroy",function(){for(var t=r.off?"off":"unbind",e=0,n=s;e<n.length;e++){var i=n[e];r[t](i,o)}})}function kr(i){function t(t,e,n){return i.is(t,e,n)}
1return t.$stateful=!0,t}function $r(i){function t(t,e,n){return i.includes(t,e,n)}return t.$stateful=!0,t}function Sr(d,p,f,t,m,e){var g=k("viewDecl.controllerAs"),v=k("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(t){var h=t.html();return t.empty(),function(e,n){var i,t,r,o,s,a,l,u,c=n.data("$uiView");(c?(r=(i=c.$cfg||{viewDecl:{},getTemplate:gt}).path&&new Ae(i.path),n.html(i.getTemplate(n,r)||h),E.traceUIViewFill(c.$uiView,n.html()),c=d(n.contents()),o=i.controller,a=g(i),t=v(i),r=r&&vr(r),e[t]=r,o&&(o=p(o,_({},r,{$scope:e,$element:n})),a&&(e[a]=o,e[a][t]=r),n.data("$ngControllerController",o),n.children().data("$ngControllerController",o),Dr(m,f,o,e,i)),y(i.viewDecl.component)&&(a=Fe(s=i.viewDecl.component),l=new RegExp("^(x-|data-)?"+a+"$","i"),u=e.$watch(function(){var t=[].slice.call(n[0].children).filter(function(t){return t&&t.tagName&&l.exec(t.tagName)});return t&&C.element(t).data("$"+s+"Controller")},function(t){t&&(Dr(m,f,t,e,i),u())})),c):(n.html(h),d(n.contents())))(e)}}}}dr=["$uiRouter","$timeout",function(c,h){var d=c.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(t,e,n,i){function r(){return _r(d,e,l)}var o=wr(e),s=i[1]||i[0],a=null,l={},i=yr(n.uiSref);function u(){var t=r();a&&a(),s&&(a=s.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&n.$set(o.attr,t.href)}l.uiState=i.state,l.uiStateOpts=n.uiSrefOpts?t.$eval(n.uiSrefOpts):{},i.paramExpr&&(t.$watch(i.paramExpr,function(t){l.uiStateParams=_({},t),u()},!0),l.uiStateParams=_({},t.$eval(i.paramExpr))),u(),t.$on("$destroy",c.stateRegistry.onStatesChanged(u)),t.$on("$destroy",c.transitionService.onSuccess({},u)),o.clickable&&(i=xr(e,d,h,o,r),Cr(e,t,i,l.uiStateOpts))}}}],ur=["$uiRouter","$timeout",function(h,d){var p=h.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,t,i,e){function r(){return _r(p,t,l)}var o=wr(t),s=e[1]||e[0],a=null,l={},e=["uiState","uiStateParams","uiStateOpts"],u=e.reduce(function(t,e){return t[e]=gt,t},{});function c(){var t=r();a&&a(),s&&(a=s.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&i.$set(o.attr,t.href)}e.forEach(function(e){l[e]=i[e]?n.$eval(i[e]):null,i.$observe(e,function(t){u[e](),u[e]=n.$watch(t,function(t){l[e]=t,c()},!0)})}),c(),n.$on("$destroy",h.stateRegistry.onStatesChanged(c)),n.$on("$destroy",h.transitionService.onSuccess({},c)),o.clickable&&(e=xr(t,p,d,o,r),Cr(t,n,e,l.uiStateOpts))}}}],hr=["$state","$stateParams","$interpolate","$uiRouter",function(h,t,o,s){return{restrict:"A",controller:["$scope","$element","$attrs",function(a,l,t){var n,u=[],c=o(t.uiSrefActiveEq||"",!1)(a);try{n=a.$eval(t.uiSrefActive)}catch(t){}function e(t){t.promise.then(r,gt)}function i(t,e,n){var i={state:h.get(t,br(l))||{name:t},params:e,activeClass:n};return u.push(i),function(){p(u)(i)}}function r(){function e(t){return t.split(/\s/).filter(m)}function t(t){return t.map(function(t){return t.activeClass}).map(e).reduce(f,[])}var n=t(u).concat(e(c)).reduce(Lt,[]),i=t(u.filter(function(t){return h.includes(t.state.name,t.params)})),r=!!u.filter(function(t){return h.is(t.state.name,t.params)}).length?e(c):[],o=i.concat(r).reduce(Lt,[]),s=n.filter(function(t){return!yt(o,t)});a.$evalAsync(function(){o.forEach(function(t){return l.addClass(t)}),s.forEach(function(t){return l.removeClass(t)})})}n=n||o(t.uiSrefActive||"",!1)(a),d(n)&&ft(n,function(t,e){y(t)&&i((t=yr(t)).state,a.$eval(t.paramExpr),e)}),this.$$addStateInfo=function(t,e){if(!(d(n)&&0<u.length))return t=i(t,e,n),r(),t},a.$on("$stateChangeSuccess",r),a.$on("$destroy",s.transitionService.onStart({},e)),s.globals.transition&&e(s.globals.transition),r()}]}}],C.module("ui.router.state").directive("uiSref",dr).directive("uiSrefActive",hr).directive("uiSrefActiveEq",hr).directive("uiState",ur),kr.$inject=["$state"],$r.$inject=["$state"],C.module("ui.router.state").filter("isState",kr).filter("includedByState",$r),cr=["$view","$animate","$uiViewScroll","$interpolate","$q",function(r,o,y,b,_){var w={$cfg:{viewDecl:{$context:r._pluginapi._rootViewContext()}},$uiView:{}},x={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(t,e,v){return function(s,a,t){var l,u,c,e,h=t.onload||"",d=t.autoscroll,p={enter:function(t,e,n){2<C.version.minor?o.enter(t,null,e).then(n):o.enter(t,null,e,n)},leave:function(t,e){2<C.version.minor?o.leave(t).then(e):o.leave(t,e)}},f=void 0,n=a.inheritedData("$uiView")||w,m=b(t.uiView||t.name||"")(s)||"$default",g={$type:"ng1",id:x.count++,name:m,fqn:n.$uiView.fqn?n.$uiView.fqn+"."+m:m,config:null,configUpdated:function(t){(!t||t instanceof Ki)&&f!==t&&(E.traceUIViewConfigUpdated(g,t&&t.viewDecl&&t.viewDecl.$context),i(f=t))},get creationContext(){var t=k("$cfg.viewDecl.$context")(n),e=k("$uiView.creationContext")(n);return t||e}};function i(t){var e=s.$new(),n=_.defer(),i=_.defer(),r={$cfg:t,$uiView:g},o={$animEnter:n.promise,$animLeave:i.promise,$$animLeave:i};e.$emit("$viewContentLoading",m),u=v(e,function(t){var e;t.data("$uiViewAnim",o),t.data("$uiView",r),p.enter(t,a,function(){n.resolve(),c&&c.$emit("$viewContentAnimationEnded"),($(
1d)&&!d||s.$eval(d))&&y(t)}),l&&(E.traceUIViewEvent("Removing (previous) el",l.data("$uiView")),l.remove(),l=null),c&&(E.traceUIViewEvent("Destroying scope",g),c.$destroy(),c=null),u&&(e=u.data("$uiViewAnim"),E.traceUIViewEvent("Animate out",e),p.leave(u,function(){e.$$animLeave.resolve(),l=null}),l=u,u=null)}),(c=e).$emit("$viewContentLoaded",t||f),c.$eval(h)}E.traceUIViewEvent("Linking",g),a.data("$uiView",{$uiView:g}),i(),e=r.registerUIView(g),s.$on("$destroy",function(){E.traceUIViewEvent("Destroying/Unregistering",g),e()})}}};return x}],Sr.$inject=["$compile","$controller","$transitions","$view","$q","$timeout"];var Er="function"==typeof C.module("ui.router").component,Tr=0;function Dr(i,t,s,e,n){!h(s.$onInit)||n.viewDecl.component&&Er||s.$onInit();var a,r,o,l,u=x(n.path).state.self,c={bind:s};h(s.uiOnParamsChanged)&&(a=new Ae(n.path).getResolvable("$transition$").data,e.$on("$destroy",t.onSuccess({},function(t){var n,i,r,o,e;t!==a&&-1===t.exiting().indexOf(u)&&(n=t.params("to"),i=t.params("from"),e=t.treeChanges().to.map(function(t){return t.paramSchema}).reduce(f,[]),r=t.treeChanges().from.map(function(t){return t.paramSchema}).reduce(f,[]),(e=e.filter(function(t){var e=r.indexOf(t);return-1===e||!r[e].type.equals(n[t.id],i[t.id])})).length)&&(o=e.map(function(t){return t.id}),e=Dt(n,function(t,e){return-1!==o.indexOf(e)}),s.uiOnParamsChanged(e,t))},c))),h(s.uiCanExit)&&(r=Tr++,o="_uiCanExitIds",l=function(t){return!!t&&(t[o]&&!0===t[o][r]||l(t.redirectedFrom()))},n={exiting:u.name},e.$on("$destroy",t.onBefore(n,function(t){var e,n=t[o]=t[o]||{};return l(t)||(e=i.when(s.uiCanExit(t))).then(function(t){return n[r]=!1!==t}),e},c)))}C.module("ui.router.state").directive("uiView",cr),C.module("ui.router.state").directive("uiView",Sr),C.module("ui.router.state").provider("$uiViewScroll",function(){var n=!1;this.useAnchorScroll=function(){n=!0},this.$get=["$anchorScroll","$timeout",function(t,e){return n?t:function(t){return e(function(){t[0].scrollIntoView()},0,!1)}}]});g.default="ui.router",g.core=Bi,g.watchDigests=gr,g.getLocals=vr,g.getNg1ViewConfigFactory=qi,g.ng1ViewsBuilder=Yi,g.Ng1ViewConfig=Ki,g.StateProvider=er,g.UrlRouterProvider=sr,g.root=dt,g.fromJson=L,g.toJson=pt,g.forEach=ft,g.extend=_,g.equals=mt,g.identity=m,g.noop=gt,g.createProxyFunctions=l,g.inherit=vt,g.inArray=yt,g._inArray=bt,g.removeFrom=p,g._removeFrom=_t,g.pushTo=I,g._pushTo=wt,g.deregAll=xt,g.defaults=Ct,g.mergeR=kt,g.ancestors=$t,g.pick=St,g.omit=Et,g.pluck=Tt,g.filter=Dt,g.find=Mt,g.mapObj=At,g.map=w,g.values=Rt,g.allTrueR=Ot,g.anyTrueR=Nt,g.unnestR=f,g.flattenR=Pt,g.pushR=It,g.uniqR=Lt,g.unnest=Ht,g.flatten=Ft,g.assertPredicate=zt,g.assertMap=Vt,g.assertFn=jt,g.pairs=Wt,g.arrayTuples=Bt,g.applyPairs=qt,g.tail=x,g.copy=Ut,g._extend=Yt,g.silenceUncaughtInPromise=Kt,g.silentRejection=Xt,g.notImplemented=ct,g.services=c,g.Glob=X,g.curry=H,g.compose=F,g.pipe=z,g.prop=v,g.propEq=V,g.parse=k,g.not=j,g.and=W,g.or=B,g.all=q,g.any=U,g.is=s,g.eq=Y,g.val=a,g.invoke=G,g.pattern=K,g.isUndefined=ot,g.isDefined=$,g.isNull=et,g.isNullOrUndefined=st,g.isFunction=h,g.isNumber=at,g.isString=y,g.isObject=d,g.isArray=b,g.isDate=nt,g.isRegExp=it,g.isState=lt,g.isInjectable=ut,g.isPromise=ht,g.Queue=Zt,g.maxLength=Le,g.padString=He,g.kebobString=Fe,g.functionToString=ze,g.fnToString=Ve,g.stringify=M,g.beforeAfterSubstr=Be,g.hostRegex=r,g.stripFile=qe,g.splitHash=Ye,g.splitQuery=Ge,g.splitEqual=Ke,g.trimHashVal=Ue,g.splitOnDelim=Xe,g.joinNeighborsR=Ze,g.Trace=t,g.trace=E,g.Param=_e,g.ParamTypes=Qe,g.StateParams=en,g.ParamType=me,g.PathNode=xe,g.PathUtils=ke,g.resolvePolicies=Ee,g.defaultResolvePolicy=$e,g.Resolvable=u,g.NATIVE_INJECTOR_TOKEN=Me,g.ResolveContext=Ae,g.resolvablesBuilder=cn,g.StateBuilder=hn,g.StateObject=Q,g.StateMatcher=pn,g.StateQueueManager=mn,g.StateRegistry=vn,g.StateService=ci,g.TargetState=se,g.HookBuilder=pe,g.matchState=ue,g.RegisteredHook=ce,g.makeEvent=de,g.Rejection=S,g.Transition=Ie,g.TransitionHook=le,g.TransitionEventType=oi,g.defaultTransOpts=li,g.TransitionService=ui,g.UrlMatcher=wn,g.UrlMatcherFactory=xn,g.UrlRouter=Tn,g.UrlRuleFactory=kn,g.BaseUrlRule=Sn,g.UrlService=zn,g.ViewService=Mn,g.UIRouterGlobals=On,g.UIRouter=Wn,g.$q=di,g.$injector=gi,g.BaseLocationServices=wi,g.HashLocationService=$i,g.MemoryLocationService=Di,g.PushStateLocationService=Ni,g.MemoryLocationConfig=Ri,g.BrowserLocationConfig=Ii,g.keyValsToObjectR=vi,g.getParams=hi,g.parseUrl=yi,g.buildUrl=bi,g.locationPluginFactory=_i,g.servicesPlugin=Hi,g.hashLocationPlugin=Fi,g.pushStateLocationPlugin=zi,g.memoryLocationPlugin=Vi,g.UIRouterPluginBase=ji,Object.defineProperty(g,"__esMo
1dule",{value:!0})}),angular.module("ui.sortable",[]).value("uiSortableConfig",{items:"> [ng-repeat],> [data-ng-repeat],> [x-ng-repeat]"}).directive("uiSortable",["uiSortableConfig","$timeout","$log",function(y,b,_){return{require:"?ngModel",scope:{ngModel:"=",uiSortable:"="},link:function(o,s,t,a){var l;function n(t,e){var n=e&&"function"==typeof e;return t&&"function"==typeof t&&n?function(){t.apply(this,arguments),e.apply(this,arguments)}:n?e:t}function i(t){t=t.data("ui-sortable");return t&&"object"==typeof t&&"ui-sortable"===t.widgetFullName?t:null}function u(t,e){return m[t]?("stop"===t&&(e=n(e,function(){o.$apply()}),e=n(e,h)),e=n(m[t],e)):g[t]&&(e=g[t](e)),e=e||"items"!==t&&"ui-model-items"!==t?e:y.items}function r(i,t,n){angular.forEach(m,function(t,e){e in p||(p[e]=null)});var r,o=null;return t&&angular.forEach(t,function(t,e){var n;i&&e in i||(e in f?p[e]="ui-floating"===e?"auto":u(e,void 0):(n=u(e,n=(r=r||angular.element.ui.sortable().options)[e]),(o=o||{})[e]=n,p[e]=n))}),angular.forEach(i,function(t,e){e in f?("ui-floating"!==e||!1!==t&&!0!==t||!n||(n.floating=t),p[e]=u(e,t)):(t=u(e,t),(o=o||{})[e]=t,p[e]=t)}),o}function c(t,e,n){var i,r=null;return e=e,r=("clone"===(i=(i=t).sortable("option","helper"))||"function"==typeof i&&e.item.sortable.isCustomHelperUsed())&&"parent"===t.sortable("option","appendTo")?n.last():r}function h(t,e){e.item.sortable._destroy()}function d(t){return t.parent().find(p["ui-model-items"]).index(t)}var p={},f={"ui-floating":void 0,"ui-model-items":y.items},m={receive:null,remove:null,start:null,stop:null,update:null},g={helper:null};function e(){o.$watchCollection("ngModel",function(){b(function(){i(s)&&s.sortable("refresh")},0,!1)}),m.start=function(t,n){"auto"===p["ui-floating"]&&(e=n.item.siblings(),i(angular.element(t.target)).floating=/left|right/.test((t=e).css("float"))||/inline|table-cell/.test(t.css("display")));var e=d(n.item);n.item.sortable={model:a.$modelValue[e],index:e,source:n.item.parent(),sourceModel:a.$modelValue,cancel:function(){n.item.sortable._isCanceled=!0},isCanceled:function(){return n.item.sortable._isCanceled},isCustomHelperUsed:function(){return!!n.item.sortable._isCustomHelperUsed},_isCanceled:!1,_isCustomHelperUsed:n.item.sortable._isCustomHelperUsed,_destroy:function(){angular.forEach(n.item.sortable,function(t,e){n.item.sortable[e]=void 0})}}},m.activate=function(t,e){l=s.contents();var n,i,r=(r=(r=s).sortable("option","placeholder"))&&r.element&&"function"==typeof r.element?(r=r.element(),angular.element(r)):null,r=(r&&r.length&&(n=s,r=r,i=p["ui-model-items"].replace(/[^,]*>/g,""),n=n.find('[class="'+r.attr("class")+'"]:not('+i+")"),l=l.not(n)),e.item.sortable._connectedSortables||[]);r.push({element:s,scope:o}),e.item.sortable._connectedSortables=r},m.update=function(t,e){e.item.sortable.received||(e.item.sortable.dropindex=d(e.item),n=e.item.parent(),e.item.sortable.droptarget=n,n=function(t,e){for(var n=null,i=0;i<t.length;i++){var r=t[i];if(r.element[0]===e[0]){n=r.scope;break}}return n}(e.item.sortable._connectedSortables,n),e.item.sortable.droptargetModel=n.ngModel,s.sortable("cancel"));var n=!e.item.sortable.received&&c(s,e,l);(l=n&&n.length?l.not(n):l).appendTo(s),e.item.sortable.received&&(l=null),e.item.sortable.received&&!e.item.sortable.isCanceled()&&o.$apply(function(){a.$modelValue.splice(e.item.sortable.dropindex,0,e.item.sortable.moved)})},m.stop=function(t,e){var n;!e.item.sortable.received&&"dropindex"in e.item.sortable&&!e.item.sortable.isCanceled()?o.$apply(function(){a.$modelValue.splice(e.item.sortable.dropindex,0,a.$modelValue.splice(e.item.sortable.index,1)[0])}):"dropindex"in e.item.sortable&&!e.item.sortable.isCanceled()||angular.equals(s.contents(),l)||(n=c(s,e,l),(l=n&&n.length?l.not(n):l).appendTo(s)),l=null},m.receive=function(t,e){e.item.sortable.received=!0},m.remove=function(t,e){"dropindex"in e.item.sortable||(s.sortable("cancel"),e.item.sortable.cancel()),e.item.sortable.isCanceled()||o.$apply(function(){e.item.sortable.moved=a.$modelValue.splice(e.item.sortable.index,1)[0]})},g.helper=function(r){return r&&"function"==typeof r?function(t,n){var e=n.sortable,i=d(n),i=(n.sortable={model:a.$modelValue[i],index:i,source:n.parent(),sourceModel:a.$modelValue,_restore:function(){angular.forEach(n.sortable,function(t,e){n.sortable[e]=void 0}),n.sortable=e}},r.apply(this,arguments));
1return n.sortable._restore(),n.sortable._isCustomHelperUsed=n!==i,i}:r},o.$watchCollection("uiSortable",function(t,e){var n=i(s);n&&(t=r(t,e,n))&&s.sortable("option",t)},!0),r(p)}function v(){return!(o.uiSortable&&o.uiSortable.disabled||(a?e():_.info("ui.sortable: ngModel not provided!",s),s.sortable(p),v.cancelWatcher(),v.cancelWatcher=angular.noop,0))}angular.extend(p,f,y,o.uiSortable),angular.element.fn&&angular.element.fn.jquery?(v.cancelWatcher=angular.noop,v()||(v.cancelWatcher=o.$watch("uiSortable.disabled",v))):_.error("ui.sortable: jQuery should be included before AngularJS!")}}}]),!function(){"use strict";angular.module("nvd3",[]).directive("nvd3",["nvd3Utils",function(o){return{restrict:"AE",scope:{data:"=",options:"=",api:"=?",events:"=?",config:"=?",onReady:"&?"},link:function(s,i,t){var n={extended:!1,visible:!0,disabled:!1,refreshDataOnly:!0,deepWatchOptions:!0,deepWatchData:!0,deepWatchDataDepth:2,debounce:10,debounceImmediate:!0};function a(n,i){n&&i&&angular.forEach(n,function(t,e){void 0===i[e]||null===i[e]?s._config.extended&&(i[e]=t.on):n.on(e+"._",i[e])})}function e(t){var e=o.deepExtend(function(t){switch(t){case"title":return{enable:!1,text:"Write Your Title",className:"h4",css:{width:s.options.chart.width+"px",textAlign:"center"}};case"subtitle":return{enable:!1,text:"Write Your Subtitle",css:{width:s.options.chart.width+"px",textAlign:"center"}};case"caption":return{enable:!1,text:"Figure 1. Write Your Caption text.",css:{width:s.options.chart.width+"px",textAlign:"center"}}}}(t),s.options[t]||{}),n=(s._config.extended&&(s.options[t]=e),angular.element("<div></div>").html(e.html||"").addClass(t).addClass(e.className).removeAttr("style").css(e.css));e.html||n.text(e.text),e.enable&&("title"===t?i.prepend(n):"subtitle"===t?angular.element(i[0].querySelector(".title")).after(n):"caption"===t&&i.append(n))}function r(t,e){t===e||s._config.disabled||(s._config.refreshDataOnly?s.api.update():s.api.refresh())}s.isReady=!1,s._config=angular.extend(n,s.config),s.api={refresh:function(){s.api.updateWithOptions(s.options),s.isReady=!0},refreshWithTimeout:function(t){setTimeout(function(){s.api.refresh()},t)},update:function(){s.chart&&s.svg?s.svg.datum(s.data).call(s.chart):s.api.refresh()},updateWithTimeout:function(t){setTimeout(function(){s.api.update()},t)},updateWithOptions:function(n){if(s.api.clearElement(),!1!==angular.isDefined(n)&&s._config.visible){if(s.chart=nv.models[n.chart.type](),s.chart.id=Math.random().toString(36).substr(2,15),angular.forEach(s.chart,function(t,e){"_"===e[0]||0<=["clearHighlights","highlightPoint","id","options","resizeHandler","state","open","close","tooltipContent"].indexOf(e)||("dispatch"===e?(void 0!==n.chart[e]&&null!==n.chart[e]||s._config.extended&&(n.chart[e]={}),a(s.chart[e],n.chart[e])):0<=["bars","bars1","bars2","boxplot","bullet","controls","discretebar","distX","distY","interactiveLayer","legend","lines","lines1","lines2","multibar","pie","scatter","scatters1","scatters2","sparkline","stack1","stack2","sunburst","tooltip","x2Axis","xAxis","y1Axis","y2Axis","y3Axis","y4Axis","yAxis","yAxis1","yAxis2"].indexOf(e)||"stacked"===e&&"stackedAreaChart"===n.chart.type?(void 0!==n.chart[e]&&null!==n.chart[e]||s._config.extended&&(n.chart[e]={}),function n(i,r,o){i&&r&&angular.forEach(i,function(t,e){"_"!==e[0]&&("dispatch"===e?(void 0!==r[e]&&null!==r[e]||s._config.extended&&(r[e]={}),a(t,r[e])):"tooltip"===e?(void 0!==r[e]&&null!==r[e]||s._config.extended&&(r[e]={}),n(i[e],r[e],o)):"contentGenerator"===e?r[e]&&i[e](r[e]):-1===["axis","clearHighlights","defined","highlightPoint","nvPointerEventsClass","options","rangeBand","rangeBands","scatter","open","close","node"].indexOf(e)&&(void 0===r[e]||null===r[e]?s._config.extended&&(r[e]=t()):i[e](r[e])))})}(s.chart[e],n.chart[e],n.chart.type)):"focusHeight"===e&&"lineChart"===n.chart.type||"focusHeight"===e&&"lineWithFocusChart"===n.chart.type||("xTickFormat"===e||"yTickFormat"===e)&&"lineWithFocusChart"===n.chart.type||"tooltips"===e&&"boxPlotChart"===n.chart.type||("tooltipXContent"!==e&&"tooltipYContent"!==e||"scatterChart"!==n.chart.type)&&("x"!==e&&"y"!==e||"forceDirectedGraph"!==n.chart.type)&&(void 0===n.chart[e]||null===n.chart[e]?s._config.extended&&(n.chart[e]=("barColor"===e?t():t)()):s.chart[e](n.chart[e])))}),"sunburstChart"===n.chart.type?s.api.updateWithData(angular.copy(s.data)):s.api.updateWithData(s.data),(n.title||s._config.extended)&&e("title"),
1(n.subtitle||s._config.extended)&&e("subtitle"),(n.caption||s._config.extended)&&e("caption"),n.styles||s._config.extended){var t=o.deepExtend({classes:{"with-3d-shadow":!0,"with-transitions":!0,gallery:!1},css:{}},s.options.styles||{});s._config.extended&&(s.options.styles=t),angular.forEach(t.classes,function(t,e){t?i.addClass(e):i.removeClass(e)}),i.removeAttr("style").css(t.css)}nv.addGraph(function(){if(s.chart)return s.chart.resizeHandler&&s.chart.resizeHandler.clear(),s.chart.resizeHandler=nv.utils.windowResize(function(){s.chart&&s.chart.update&&s.chart.update()}),void 0!==n.chart.zoom&&-1<["scatterChart","lineChart","candlestickBarChart","cumulativeLineChart","historicalBarChart","ohlcBarChart","stackedAreaChart"].indexOf(n.chart.type)&&o.zoom(s,n),s.chart},n.chart.callback)}},updateWithData:function(t){var e;t&&(d3.select(i[0]).select("svg").remove(),s.svg=d3.select(i[0]).append("svg"),(e=s.options.chart.height)&&(isNaN(+e)||(e+="px"),s.svg.attr("height",e).style({height:e})),(e=s.options.chart.width)?(isNaN(+e)||(e+="px"),s.svg.attr("width",e).style({width:e})):s.svg.attr("width","100%").style({width:"100%"}),s.svg.datum(t).call(s.chart))},clearElement:function(){if(i.find(".title").remove(),i.find(".subtitle").remove(),i.find(".caption").remove(),i.empty(),s.chart&&s.chart.tooltip&&s.chart.tooltip.id&&d3.select("#"+s.chart.tooltip.id()).remove(),nv.graphs&&s.chart)for(var t=nv.graphs.length-1;0<=t;t--)nv.graphs[t]&&nv.graphs[t].id===s.chart.id&&nv.graphs.splice(t,1);nv.tooltip&&nv.tooltip.cleanup&&nv.tooltip.cleanup(),s.chart&&s.chart.resizeHandler&&s.chart.resizeHandler.clear(),s.chart=null},getScope:function(){return s},getElement:function(){return i}},s._config.deepWatchOptions&&s.$watch("options",o.debounce(function(t){s._config.disabled||s.api.refresh()},s._config.debounce,s._config.debounceImmediate),!0),s._config.deepWatchData&&(1===s._config.deepWatchDataDepth?s.$watchCollection("data",r):s.$watch("data",r,2===s._config.deepWatchDataDepth)),s.$watch("config",function(t,e){t!==e&&(s._config=angular.extend(n,t),s.api.refresh())},!0),s._config.deepWatchOptions||s._config.deepWatchData||s.api.refresh(),angular.forEach(s.events,function(n,t){s.$on(t,function(t,e){return n(t,s,e)})}),i.on("$destroy",function(){s.api.clearElement()}),s.$watch("isReady",function(t){t&&s.onReady&&"function"==typeof s.onReady()&&s.onReady()(s,i)})}}}]).factory("nvd3Utils",function(){return{debounce:function(i,r,o){var s;return function(){var t=this,e=arguments,n=o&&!s;clearTimeout(s),s=setTimeout(function(){s=null,o||i.apply(t,e)},r),n&&i.apply(t,e)}},deepExtend:function(n){var i=this;return angular.forEach(arguments,function(t){t!==n&&angular.forEach(t,function(t,e){n[e]&&n[e].constructor&&n[e].constructor===Object?i.deepExtend(n[e],t):n[e]=t})}),n},zoom:function(e,t){var n,i,r,o,s,a,l,u,c,h,d,p,f,m,g,v,y,b=t.chart.zoom;void 0!==b.enabled&&null!==b.enabled&&!b.enabled||(n=e.chart.xAxis.scale(),i=e.chart.yAxis.scale(),r=e.chart.xDomain||n.domain,o=e.chart.yDomain||i.domain,s=n.domain().slice(),a=i.domain().slice(),l=b.scale||1,u=b.translate||[0,0],c=b.scaleExtent||[1,10],h=b.useFixedDomain||!1,t=b.useNiceScale||!1,d=b.horizontalOff||!1,p=b.verticalOff||!1,f=b.unzoomEventType||"dblclick.zoom",t&&(n.nice(),i.nice()),m=function(t,e){return t[0]=Math.min(Math.max(t[0],e[0]),e[1]-e[1]/c[1]),t[1]=Math.max(e[0]+e[1]/c[1],Math.min(t[1],e[1])),t},t=function(){var t;void 0!==b.zoomed?(t=b.zoomed(n.domain(),i.domain()),d||r([t.x1,t.x2]),p||o([t.y1,t.y2])):(d||r(h?m(n.domain(),s):n.domain()),p||o(h?m(i.domain(),a):i.domain())),e.chart.update()},v=function(){var t;void 0!==b.unzoomed?(t=b.unzoomed(n.domain(),i.domain()),d||r([t.x1,t.x2]),p||o([t.y1,t.y2])):(d||r(s),p||o(a)),g.scale(l).translate(u),e.chart.update()},y=function(){void 0!==b.zoomend&&b.zoomend()},g=d3.behavior.zoom().x(n).y(i).scaleExtent(c).on("zoom",t).on("zoomend",y),e.svg.call(g),g.scale(l).translate(u).event(e.svg),"none"===f)||e.svg.on(f,v)}}})}(),!function(){"use strict";function t(h,t){function d(){return b?y.scrollTop:window.pageYOffset||document.documentElement.scrollTop}var p=(t=t||{}).duration||800,f=t.offset||0,m=t.easing||"easeInOutQuart",g=t.callbackBefore||function(){},v=t.callbackAfter||function(){},y=document.getElementById(t.containerId)||null,b=null!=y;setTimeout(function(){var t,e,n,i,r,o=d(),s=function(t){var e=0;if(t.offsetParent)for(;e+=t.offsetTop,t=t.offsetParent;);return e=Math.max(e-f,0)}(h),a=0,l=s-o,u=function(){t=d(),r=b?(i=y.scrollHeight,y.clientHeight+t):(i=document.body.scrollheight,window.innerHeight+t),(n==s||t==s||i<=r)&&(clearInterval(c),v(h))},c=(g(h),setInterval(function(){n=o+l*function(t,e){switch(t){case"easeInQuad":return e*e;case"easeOutQuad":return e*(2-e);case"easeInOutQuad":return e<.5?2*e*e:(4-2*e)*e-1;case"easeInCubic":return e*e*e;case"easeOutCubic":return--e*e*e+1;case"easeInOutCubic":return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1;case"easeInQuart":return e*e*e*e;case"easeOutQuart":return 1- --e*e*e*e;case"easeInOutQuart":return e<.5?8*e*e*e*e:1-8*--e*e*e*e;case"easeInQuint":return e*e*e*e*e;case"easeOutQuint":return 1+--e*e*e*e*e;case"easeInOutQuint":return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e;default:return e}}(m,1<(e=(a+=16)/p)?1:e),b?y.scrollTop=n:window.scrollTo(0,n),u()},16))},0)}var e=angular.module("smoothScroll",[]);e.factory("smoothScroll",function(){return t}),e.directive("smoothScroll",["smoothScroll",function(e){return{restrict:"A",scope:{callbackBefore:"&",callbackAfter:"&"},link:function(n,t,i){void 0!==i.scrollIf&&"true"!==i.scrollIf||setTimeout(function(){e(t[0],{duration:i.duration,offset:i.offset,easing:i.easing,callbackBefore:function(t){var e;i.callbackBefore&&"function"==typeof(e=n.callbackBefore({element:t}))&&e(t)},callbackAfter:function(t){var e;i.callbackAfter&&"function"==typeof(e=n.callbackAfter({element:t}))&&e(t)},containerId:i.containerId})},0)}}}]),e.directive("scrollTo",["smoothScroll",function(r){return{restrict:"A",scope:{callbackBefore:"&",callbackAfter:"&"},link:function(n,t,i){var e;t.on("click",function(t){if(t.preventDefault(),e=document.getElementById(i.scrollTo))return e.focus(),r(e,{duration:i.duration,offset:i.offset,easing:i.easing,callbackBefore:function(t){var e;i.callbackBefore&&"function"==typeof(e=n.callbackBefore({element:t}))&&e(t)},callbackAfter:function(t){var e;i.callbackAfter&&"function"==typeof(e=n.callbackAfter({element:t}))&&e(t)},containerId:i.containerId}),!1})}}}])}(),!function(t){("object"!=typeof exports||"undefined"==typeof module)&&"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";function t(e){var r=!0,n=!1,i=null,o={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(t){return t&&t!==document&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList}function a(t){t.classList.contains("focus-visible")||(t.classList.add("focus-visible"),t.setAttribute("data-focus-visible-added",""))}function t(t){r=!1}function l(){document.addEventListener("mousemove",u),document.addEventListener("mousedown",u),document.addEventListener("mouseup",u),document.addEventListener("pointermove",u),document.addEventListener("pointerdown",u),document.addEventListener("pointerup",u),document.addEventListener("touchmove",u),document.addEventListener("touchstart",u),document.addEventListener("touchend",u)}function u(t){t.target.nodeName&&"html"===t.target.nodeName.toLowerCase()||(r=!1,document.removeEventListener("mousemove",u),document.removeEventListener("mousedown",u),document.removeEventListener("mouseup",u),document.removeEventListener("pointermove",u),document.removeEventListener("pointerdown",u),document.removeEventListener("pointerup",u),document.removeEventListener("touchmove",u),document.removeEventListener("touchstart",u),document.removeEventListener("touchend",u))}document.addEventListener("keydown",function(t){t.metaKey||t.altKey||t.ctrlKey||(s(e.activeElement)&&a(e.activeElement),r=!0)},!0),document.addEventListener("mousedown",t,!0),document.addEventListener("pointerdown",t,!0),document.addEventListener("touchstart",t,!0),document.addEventListener("visibilitychange",function(t){"hidden"===document.visibilityState&&(n&&(r=!0),l())},!0),l(),e.addEventListener("focus",function(t){var e,n,i;s(t.target)&&(r||(n=(e=t.target).type,"INPUT"===(i=e.tagName)&&o[n]&&!e.readOnly)||"TEXTAREA"===i&&!e.readOnly||e.isContentEditable)&&a(t.target)},!0),e.addEventListener("blur",function(t){s(t.target)&&(t.target.classList.contains("focus-visible")||t.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),(t=t.target).hasAttribute("data-focus-visible-added"))&&(t.classList.remove("focus-visible"),t.removeAttribute("data-focus-visible-added"))},!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var e;window.applyFocusVisiblePolyfill=t;try{e=new CustomEvent("focus-visible-polyfill-ready")}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(e)}"undefined"!=typeof document&&t(document)}),!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";var I;function m(){return I.apply(null,arguments)}function g(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function L(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function H(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(d(t,e))return;return 1}function v(t){return void 0===t}function y(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function F(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function z(t,e){for(var n=[],i=t.length,r=0;r<i;++r)n.push(e(t[r],r));return n}function V(t,e){for(var n in e)d(e,n)&&(t[n]=e[n]);return d(e,"toString")&&(t.toString=e.toString),d(e,"valueOf")&&(t.valueOf=e.valueOf),t}function u(t,e,n,i){return Ae(t,e,n,i,!0).utc()}function b(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invali
vendor: 48,315 bytes, line 1
1dMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function j(t){if(null==t._isValid){var e=b(t),n=B.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function W(t){var e=u(NaN);return null!=t?V(b(e),t):b(e).userInvalidated=!0,e}var B=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1},q=m.momentProperties=[],U=!1;function Y(t,e){var n,i,r,o=q.length;if(v(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),v(e._i)||(t._i=e._i),v(e._f)||(t._f=e._f),v(e._l)||(t._l=e._l),v(e._strict)||(t._strict=e._strict),v(e._tzm)||(t._tzm=e._tzm),v(e._isUTC)||(t._isUTC=e._isUTC),v(e._offset)||(t._offset=e._offset),v(e._pf)||(t._pf=b(e)),v(e._locale)||(t._locale=e._locale),0<o)for(n=0;n<o;n++)v(r=e[i=q[n]])||(t[i]=r);return t}function G(t){Y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===U&&(U=!0,m.updateOffset(this),U=!1)}function _(t){return t instanceof G||null!=t&&null!=t._isAMomentObject}function K(t){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(o,s){var a=!0;return V(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,o),a){for(var t,e,n=[],i=arguments.length,r=0;r<i;r++){if(t="","object"==typeof arguments[r]){for(e in t+="\n["+r+"] ",arguments[0])d(arguments[0],e)&&(t+=e+": "+arguments[0][e]+", ");t=t.slice(0,-2)}else t=arguments[r];n.push(t)}K(o+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var X={};function Z(t,e){null!=m.deprecationHandler&&m.deprecationHandler(t,e),X[t]||(K(e),X[t]=!0)}function s(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Q(t,e){var n,i=V({},t);for(n in e)d(e,n)&&(L(t[n])&&L(e[n])?(i[n]={},V(i[n],t[n]),V(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)d(t,n)&&!d(e,n)&&L(t[n])&&(i[n]=V({},i[n]));return i}function J(t){null!=t&&this.set(t)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var tt=Object.keys||function(t){var e,n=[];for(e in t)d(t,e)&&n.push(e);return n};function o(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var et=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,nt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,it={},rt={};function i(t,e,n,i){var r="string"==typeof i?function(){return this[i]()}:i;t&&(rt[t]=r),e&&(rt[e[0]]=function(){return o(r.apply(this,arguments),e[1],e[2])}),n&&(rt[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function ot(t,e){return t.isValid()?(e=st(e,t.localeData()),it[e]=it[e]||function(i){for(var t,r=i.match(et),e=0,o=r.length;e<o;e++)rt[r[e]]?r[e]=rt[r[e]]:r[e]=(t=r[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var e="",n=0;n<o;n++)e+=s(r[n])?r[n].call(t,i):r[n];return e}}(e),it[e](t)):t.localeData().invalidDate()}function st(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(nt.lastIndex=0;0<=n&&nt.test(t);)t=t.replace(nt,i),nt.lastIndex=0,--n;return t}var at={};function e(t,e){var n=t.toLowerCase();at[n]=at[n+"s"]=at[e]=t}function a(t){return"string"==typeof t?at[t]||at[t.toLowerCase()]:void 0}function lt(t){var e,n,i={};for(n in t)d(t,n)&&(e=a(n))&&(i[e]=t[n]);return i}var ut={};function n(t,e){ut[t]=e}function ct(t){return t%4==0&&t%100!=0||t%400==0}function h(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function c(t){var t=+t,e=0;return e=0!=t&&isFinite(t)?h(t):e}function ht(e,n){return function(t){return null!=t?(pt(this,e,t),m.updateOffset(this,n),this):dt(this,e)}}function dt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function pt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ct(t.year())&&1===t.month()&&29===t.date()?(n=c(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Nt(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var r=/\d/,l=/\d\d/,ft=/\d{3}/,mt=/\d{4}/,gt=/[+-]?\d{6}/,p=/\d\d?/,vt=/\d\d\d\d?/,yt=/\d\d\d\d\d\d?/,bt=/\d{1,3}/,_t=/\d{1,4}/,wt=/[+-]?\d{1,6}/,xt=/\d+/,Ct=/[+-]?\d+/,kt=/Z|[+-]\d\d:?\d\d/gi,$t=/Z|[+-]\d\d(?::?\d\d)?/gi,f=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function w(t,n,i){Et[t]=s(n)?n:function(t,e){return t&&i?i:n}}function St(t,e){return d(Et,t)?Et[t](e._strict,e._locale):new RegExp(x(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r})))}function x(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Et={},Tt={};function C(t,n){var e,i,r=n;for("string"==typeof t&&(t=[t]),y(n)&&(r=function(t,e){e[n]=c(t)}),i=t.length,e=0;e<i;e++)Tt[t[e]]=r}function Dt(t,r){C(t,function(t,e,n,i){n._w=n._w||{},r(t,n._w,n,i)})}var k,$=0,S=1,E=2,T=3,D=4,M=5,Mt=6,At=7,Ot=8;function Nt(t,e){var n;return isNaN(t)||isNaN(e)?NaN:(n=(e%(n=12)+n)%n,t+=(e-n)/12,1==n?ct(t)?29:28:31-n%7%2)}k=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),i("MMMM",0,0,function(t){return this.localeData().months(this,t)}),e("month","M"),n("month",8),w("M",p),w("MM",p,l),w("MMM",function(t,e){return e.monthsShortRegex(t)}),w("MMMM",function(t,e){return e.monthsRegex(t)}),C(["M","MM"],function(t,e){e[S]=c(t)-1}),C(["MMM","MMMM"],function(t,e,n,i){i=n._locale.monthsParse(t,i,n._strict);null!=i?e[S]=i:b(n).invalidMonth=t});var Pt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Rt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),It=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Lt=f,Ht=f;function Ft(t,e){var n;if(t.isValid()){if("string"==typeof e)if(/^\d+$/.test(e))e=c(e);else if(!y(e=t.localeData().monthsParse(e)))return;n=Math.min(t.date(),Nt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n)}}function zt(t){return null!=t?(Ft(this,t),m.updateOffset(this,!0),this):dt(this,"Month")}function Vt(){function t(t,e){return e.length-t.length}for(var e,n=[],i=[],r=[],o=0;o<12;o++)e=u([2e3,o]),n.push(this.monthsShort(e,"")),i.push(this.months(e,"")),r.push(this.months(e,"")),r.push(this.monthsShort(e,""));for(n.sort(t),i.sort(t),r.sort(t),o=0;o<12;o++)n[o]=x(n[o]),i[o]=x(i[o]);for(o=0;o<24;o++)r[o]=x(r[o]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function jt(t){return ct(t)?366:365}i("Y",0,0,function(){var t=this.year();return t<=9999?o(t,4):"+"+t}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),e("year","y"),n("year",1),w("Y",Ct),w("YY",p,l),w("YYYY",_t,mt),w("YYYYY",wt,gt),w("YYYYYY",wt,gt),C(["YYYYY","YYYYYY"],$),C("YYYY",function(t,e){e[$]=2===t.length?m.parseTwoDigitYear(t):c(t)}),C("YY",function(t,e){e[$]=m.parseTwoDigitYear(t)}),C("Y",function(t,e){e[$]=parseInt(t,10)}),m.parseTwoDigitYear=function(t){return c(t)+(68<c(t)?1900:2e3)};var Wt=ht("FullYear",!0);function Bt(t,e,n,i,r,o,s){var a;return t<100&&0<=t?(a=new Date(t+400,e,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,o,s),a}function qt(t){var e;return t<100&&0<=t?((e=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,e)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Ut(t,e,n){n=7+e-n;return n-(7+qt(t,0,n).getUTCDay()-e)%7-1}function Yt(t,e,n,i,r){var o,e=1+7*(e-1)+(7+n-i)%7+Ut(t,i,r),n=e<=0?jt(o=t-1)+e:e>jt(t)?(o=t+1,e-jt(t)):(o=t,e);return{year:o,dayOfYear:n}}function Gt(t,e,n){var i,r,o=Ut(t.year(),e,n),o=Math.floor((t.dayOfYear()-o-1)/7)+1;return o<1?i=o+A(r=t.year()-1,e,n):o>A(t.year(),e,n)?(i=o-A(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function A(t,e,n){var i=Ut(t,e,n),e=Ut(t+1,e,n);return(jt(t)-i+e)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),e("week","w"),e("isoWeek","W"),n("week",5),n("isoWeek",5),w("w",p),w("ww",p,l),w("W",p),w("WW",p,l),Dt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=c(t)});function Kt(t,e){return t.slice(e,7).concat(t.slice(0,e))}i("d",0,"do","day"),i("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),i("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),i("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),e("day","d"),e("weekday","e"),e("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),w("d",p),w("e",p),w("E",p),w("dd",function(t,e){return e.weekdaysMinRegex(t)}),w("ddd",function(t,e){return e.weekdaysShortRegex(t)}),w("dddd",function(t,e){return e.weekdaysRegex(t)}),Dt(["dd","ddd","dddd"],function(t,e,n,i){i=n._locale.weekdaysParse(t,i,n._strict);null!=i?e.d=i:b(n).invalidWeekday=t}),Dt(["d","e","E"],function(t,e,n,i){e[i]=c(t)});var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Jt=f,te=f,ee=f;function ne(){function t(t,e){return e.length-t.length}for(var e,n,i,r=[],o=[],s=[],a=[],l=0;l<7;l++)i=u([2e3,1]).day(l),e=x(this.weekdaysMin(i,"")),n=x(this.weekdaysShort(i,"")),i=x(this.weekdays(i,"")),r.push(e),o.push(n),s.push(i),a.push(e),a.push(n),a.push(i);r.sort(t),o.sort(t),s.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ie(){return this.hours()%12||12}function re(t,e){i(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function oe(t,e){return e._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,ie),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+ie.apply(this)+o(this.minutes(),2)}),i("hmmss",0,0,function(){return""+ie.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),re("a",!0),re("A",!1),e("hour","h"),n("hour",13),w("a",oe),w("A",oe),w("H",p),w("h",p),w("k",p),w("HH",p,l),w("hh",p,l),w("kk",p,l),w("hmm",vt),w("hmmss",yt),w("Hmm",vt),w("Hmmss",yt),C(["H","HH"],T),C(["k","kk"],function(t,e,n){t=c(t);e[T]=24===t?0:t}),C(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),C(["h","hh"],function(t,e,n){e[T]=c(t),b(n).bigHour=!0}),C("hmm",function(t,e,n){var i=t.length-2;e[T]=c(t.substr(0,i)),e[D]=c(t.substr(i)),b(n).bigHour=!0}),C("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[T]=c(t.substr(0,i)),e[D]=c(t.substr(i,2)),e[M]=c(t.substr(r)),b(n).bigHour=!0}),C("Hmm",function(t,e,n){var i=t.length-2;e[T]=c(t.substr(0,i)),e[D]=c(t.substr(i))}),C("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[T]=c(t.substr(0,i)),e[D]=c(t.substr(i,2)),e[M]=c(t.substr(r))});f=ht("Hours",!0);var se,ae={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pt,monthsShort:Rt,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:Qt,weekdaysShort:Zt,meridiemParse:/[ap]\.?m?\.?/i},O={},le={};function ue(t){return t&&t.toLowerCase().replace("_","-")}function ce(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=ue(t[o]).split("-")).length,n=(n=ue(t[o+1]))?n.split("-"):null;0<e;){if(i=he(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&function(t,e){for(var n=Math.min(t.length,e.length),i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}(r,n)>=e-1)break;e--}o++}return se}function he(e){var t;if(void 0===O[e]&&"undefined"!=typeof module&&module&&module.exports&&null!=e.match("^[^/\\\\]*$"))try{t=se._abbr,require("./locale/"+e),de(t)}catch(t){O[e]=null}return O[e]}function de(t,e){return t&&((e=v(e)?fe(t):pe(t,e))?se=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),se._abbr}function pe(t,e){if(null===e)return delete O[t],null;var n,i=ae;if(e.abbr=t,null!=O[t])Z("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=O[t]._config;else if(null!=e.parentLocale)if(null!=O[e.parentLocale])i=O[e.parentLocale]._config;else{if(null==(n=he(e.parentLocale)))return le[e.parentLocale]||(le[e.parentLocale]=[]),le[e.parentLocale].push({name:t,config:e}),null;i=n._config}return O[t]=new J(Q(i,e)),le[t]&&le[t].forEach(function(t){pe(t.name,t.config)}),de(t),O[t]}function fe(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return se;if(!g(t)){if(e=he(t))return e;t=[t]}return ce(t)}function me(t){var e=t._a;return e&&-2===b(t).overflow&&(e=e[S]<0||11<e[S]?S:e[E]<1||e[E]>Nt(e[$],e[S])?E:e[T]<0||24<e[T]||24===e[T]&&(0!==e[D]||0!==e[M]||0!==e[Mt])?T:e[D]<0||59<e[D]?D:e[M]<0||59<e[M]?M:e[Mt]<0||999<e[Mt]?Mt:-1,b(t)._overflowDayOfYear&&(e<$||E<e)&&(e=E),b(t)._overflowWeeks&&-1===e&&(e=At),b(t)._overflowWeekday&&-1===e&&(e=Ot),b(t).overflow=e),t}var ge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ve=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ye=/Z|[+-]\d\d(?::?\d\d)?/,be=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_e=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],we=/^\/?Date\((-?\d+)/i,xe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ce={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ke(t){var e,n,i,r,o,s,a=t._i,l=ge.exec(a)||ve.exec(a),a=be.length,u=_e.length;if(l){for(b(t).iso=!0,e=0,n=a;e<n;e++)if(be[e][1].exec(l[1])){r=be[e][0],i=!1!==be[e][2];break}if(null==r)t._isValid=!1;else{if(l[3]){for(e=0,n=u;e<n;e++)if(_e[e][1].exec(l[3])){o=(l[2]||" ")+_e[e][0];break}if(null==o)return void(t._isValid=!1)}if(i||null==o){if(l[4]){if(!ye.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),De(t)}else t._isValid=!1}}else t._isValid=!1}function $e(t,e,n,i,r,o){t=[function(t){t=parseInt(t,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(t),Rt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&t.push(parseInt(o,10)),t}function Se(t){var e,n,i=xe.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));i?(e=$e(i[4],i[3],i[2],i[5],i[6],i[7]),function(t,e,n){if(!t||Zt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay())return 1;b(n).weekdayMismatch=!0,n._isValid=!1}(i[1],e,t)&&(t._a=e,t._tzm=(e=i[8],n=i[9],i=i[10],e?Ce[e]:n?0:60*(((e=parseInt(i,10))-(n=e%100))/100)+n),t._d=qt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),b(t).rfc2822=!0)):t._isValid=!1}function Ee(t,e,n){return null!=t?t:null!=e?e:n}function Te(t){var e,n,i,r,o,s,a,l,u,c,h,d=[];if(!t._d){for(i=t,r=new Date(m.now()),n=i._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],t._w&&null==t._a[E]&&null==t._a[S]&&(null!=(r=(i=t)._w).GG||null!=r.W||null!=r.E?(l=1,u=4,o=Ee(r.GG,i._a[$],Gt(N(),1,4).year),s=Ee(r.W,1),((a=Ee(r.E,1))<1||7<a)&&(c=!0)):(l=i._locale._week.dow,u=i._locale._week.doy,h=Gt(N(),l,u),o=Ee(r.gg,i._a[$],h.year),s=Ee(r.w,h.week),null!=r.d?((a=r.d)<0||6<a)&&(c=!0):null!=r.e?(a=r.e+l,(r.e<0||6<r.e)&&(c=!0)):a=l),s<1||s>A(o,l,u)?b(i)._overflowWeeks=!0:null!=c?b(i)._overflowWeekday=!0:(h=Yt(o,s,a,l,u),i._a[$]=h.year,i._dayOfYear=h.dayOfYear)),null!=t._dayOfYear&&(r=Ee(t._a[$],n[$]),(t._dayOfYear>jt(r)||0===t._dayOfYear)&&(b(t)._overflowDayOfYear=!0),c=qt(r,0,t._dayOfYear),t._a[S]=c.getUTCMonth(),t._a[E]=c.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=d[e]=n[e];for(;e<7;e++)t._a[e]=d[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[T]&&0===t._a[D]&&0===t._a[M]&&0===t._a[Mt]&&(t._nextDay=!0,t._a[T]=0),t._d=(t._useUTC?qt:Bt).apply(null,d),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[T]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(b(t).weekdayMismatch=!0)}}function De(t){if(t._f===m.ISO_8601)ke(t);else if(t._f===m.RFC_2822)Se(t);else{t._a=[],b(t).empty=!0;for(var e,n,i,r,o,s=""+t._i,a=s.length,l=0,u=st(t._f,t._locale).match(et)||[],c=u.length,h=0;h<c;h++)n=u[h],(e=(s.match(St(n,t))||[])[0])&&(0<(i=s.substr(0,s.indexOf(e))).length&&b(t).unusedInput.push(i),s=s.slice(s.indexOf(e)+e.length),l+=e.length),rt[n]?(e?b(t).empty=!1:b(t).unusedTokens.push(n),i=n,o=t,null!=(r=e)&&d(Tt,i)&&Tt[i](r,o._a,o,i)):t._strict&&!e&&b(t).unusedTokens.push(n);b(t).charsLeftOver=a-l,0<s.length&&b(t).unusedInput.push(s),t._a[T]<=12&&!0===b(t).bigHour&&0<t._a[T]&&(b(t).bigHour=void 0),b(t).parsedDateParts=t._a.slice(0),b(t).meridiem=t._meridiem,t._a[T]=function(t,e,n){if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((t=t.isPM(n))&&e<12&&(e+=12),e=t||12!==e?e:0):e}(t._locale,t._a[T],t._meridiem),null!==(a=b(t).era)&&(t._a[$]=t._locale.erasConvertYear(a,t._a[$])),Te(t),me(t)}}function Me(t){var e,n,i,r=t._i,o=t._f;if(t._locale=t._locale||fe(t._l),null===r||void 0===o&&""===r)return W({nullInput:!0});if("string"==typeof r&&(t._i=r=t._locale.preparse(r)),_(r))return new G(me(r));if(F(r))t._d=r;else if(g(o)){var s,a,l,u,c,h,d=t,p=!1,f=d._f.length;if(0===f)b(d).invalidFormat=!0,d._d=new Date(NaN);else{for(u=0;u<f;u++)c=0,h=!1,s=Y({},d),null!=d._useUTC&&(s._useUTC=d._useUTC),s._f=d._f[u],De(s),j(s)&&(h=!0),c=(c+=b(s).charsLeftOver)+10*b(s).unusedTokens.length,b(s).score=c,p?c<l&&(l=c,a=s):(null==l||c<l||h)&&(l=c,a=s,h)&&(p=!0);V(d,a||s)}}else if(o)De(t);else if(v(o=(r=t)._i))r._d=new Date(m.now());else F(o)?r._d=new Date(o.valueOf()):"string"==typeof o?(n=r,null!==(e=we.exec(n._i))?n._d=new Date(+e[1]):(ke(n),!1===n._isValid&&(delete n._isValid,Se(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:m.createFromInputFallback(n)))):g(o)?(r._a=z(o.slice(0),function(t){return parseInt(t,10)}),Te(r)):L(o)?(e=r)._d||(i=void 0===(n=lt(e._i)).day?n.date:n.day,e._a=z([n.year,n.month,i,n.hour,n.minute,n.second,n.millisecond],function(t){return t&&parseInt(t,10)}),Te(e)):y(o)?r._d=new Date(o):m.createFromInputFallback(r);return j(t)||(t._d=null),t}function Ae(t,e,n,i,r){var o={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(L(t)&&H(t)||g(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=n,o._i=t,o._f=e,o._strict=i,(r=new G(me(Me(r=o))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function N(t,e,n,i){return Ae(t,e,n,i,!1)}m.createFromInputFallback=t("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};vt=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=N.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:W()}),yt=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=N.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:W()});function Oe(t,e){var n,i;if(!(e=1===e.length&&g(e[0])?e[0]:e).length)return N();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ne=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pe(t){var t=lt(t),e=t.year||0,n=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,a=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=function(t){var e,n,i=!1,r=Ne.length;for(e in t)if(d(t,e)&&(-1===k.call(Ne,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<r;++n)if(t[Ne[n]]){if(i)return!1;parseFloat(t[Ne[n]])!==c(t[Ne[n]])&&(i=!0)}return!0}(t),this._milliseconds=+u+1e3*l+6e4*a+1e3*s*60*60,this._days=+o+7*r,this._months=+i+3*n+12*e,this._data={},this._locale=fe(),this._bubble()}function Re(t){return t instanceof Pe}function Ie(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Le(t,n){i(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+o(~~(t/60),2)+n+o(~~t%60,2)})}Le("Z",":"),Le("ZZ",""),w("Z",$t),w("ZZ",$t),C(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Fe($t,t)});var He=/([\+\-]|\d\d)/gi;function Fe(t,e){var e=(e||"").match(t);return null===e?null:0===(e=60*(t=((e[e.length-1]||[])+"").match(He)||["-",0,0])[1]+c(t[2]))?0:"+"===t[0]?e:-e}function ze(t,e){var n;return e._isUTC?(e=e.clone(),n=(_(t)||F(t)?t:N(t)).valueOf()-e.valueOf(),e._d.setTime(e._d.valueOf()+n),m.updateOffset(e,!1),e):N(t).local()}function Ve(t){return-Math.round(t._d.getTimezoneOffset())}function je(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var We=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Be=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function P(t,e){var n,i=t;return Re(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:y(t)||!isNaN(+t)?(i={},e?i[e]=+t:i.milliseconds=+t):(e=We.exec(t))?(n="-"===e[1]?-1:1,i={y:0,d:c(e[E])*n,h:c(e[T])*n,m:c(e[D])*n,s:c(e[M])*n,ms:c(Ie(1e3*e[Mt]))*n}):(e=Be.exec(t))?(n="-"===e[1]?-1:1,i={y:qe(e[2],n),M:qe(e[3],n),w:qe(e[4],n),d:qe(e[5],n),h:qe(e[6],n),m:qe(e[7],n),s:qe(e[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(e=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=ze(e,t),t.isBefore(e)?n=Ue(t,e):((n=Ue(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(N(i.from),N(i.to)),(i={}).ms=e.milliseconds,i.M=e.months),n=new Pe(i),Re(t)&&d(t,"_locale")&&(n._locale=t._locale),Re(t)&&d(t,"_isValid")&&(n._isValid=t._isValid),n}function qe(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function Ue(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ye(i,r){return function(t,e){var n;return null===e||isNaN(+e)||(Z(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ge(this,P(t,e),i),this}}function Ge(t,e,n,i){var r=e._milliseconds,o=Ie(e._days),e=Ie(e._months);t.isValid()&&(i=null==i||i,e&&Ft(t,dt(t,"Month")+e*n),o&&pt(t,"Date",dt(t,"Date")+o*n),r&&t._d.setTime(t._d.valueOf()+r*n),i)&&m.updateOffset(t,o||e)}P.fn=Pe.prototype,P.invalid=function(){return P(NaN)};Pt=Ye(1,"add"),Xt=Ye(-1,"subtract");function Ke(t){return"string"==typeof t||t instanceof String}function Xe(t){return _(t)||F(t)||Ke(t)||y(t)||function(e){var t=g(e),n=!1;t&&(n=0===e.filter(function(t){return!y(t)&&Ke(e)}).length);return t&&n}(t)||function(t){var e,n,i=L(t)&&!H(t),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=o.length;for(e=0;e<s;e+=1)n=o[e],r=r||d(t,n);return i&&r}(t)||null==t}function Ze(t,e){var n,i;return t.date()<e.date()?-Ze(e,t):-((n=12*(e.year()-t.year())+(e.month()-t.month()))+(e-(i=t.clone().add(n,"months"))<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i)))||0}function Qe(t){return void 0===t?this._locale._abbr:(null!=(t=fe(t))&&(this._locale=t),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qt=t("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Je(){return this._locale}var tn=126227808e5;function en(t,e){return(t%e+e)%e}function nn(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-tn:new Date(t,e,n).valueOf()}function rn(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-tn:Date.UTC(t,e,n)}function on(t,e){return e.erasAbbrRegex(t)}function sn(){for(var t=[],e=[],n=[],i=[],r=this.eras(),o=0,s=r.length;o<s;++o)e.push(x(r[o].name)),t.push(x(r[o].abbr)),n.push(x(r[o].narrow)),i.push(x(r[o].name)),i.push(x(r[o].abbr)),i.push(x(r[o].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function an(t,e){i(0,[t,t.length],0,e)}function ln(t,e,n,i,r){var o;return null==t?Gt(this,i,r).year:(o=A(t,i,r),function(t,e,n,i,r){t=Yt(t,e,n,i,r),e=qt(t.year,0,t.dayOfYear);return this.year(e.getUTCFullYear()),this.month(e.getUTCMonth()),this.date(e.getUTCDate()),this}.call(this,t,e=o<e?o:e,n,i,r))}i("N",0,0,"eraAbbr"),i("NN",0,0,"eraAbbr"),i("NNN",0,0,"eraAbbr"),i("NNNN",0,0,"eraName"),i("NNNNN",0,0,"eraNarrow"),i("y",["y",1],"yo","eraYear"),i("y",["yy",2],0,"eraYear"),i("y",["yyy",3],0,"eraYear"),i("y",["yyyy",4],0,"eraYear"),w("N",on),w("NN",on),w("NNN",on),w("NNNN",function(t,e){return e.erasNameRegex(t)}),w("NNNNN",function(t,e){return e.erasNarrowRegex(t)}),C(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,i){i=n._locale.erasParse(t,i,n._strict);i?b(n).era=i:b(n).invalidEra=t}),w("y",xt),w("yy",xt),w("yyy",xt),w("yyyy",xt),w("yo",function(t,e){return e._eraYearOrdinalRegex||xt}),C(["y","yy","yyy","yyyy"],$),C(["yo"],function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[$]=n._locale.eraYearOrdinalParse(t,r):e[$]=parseInt(t,10)}),i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),e("weekYear","gg"),e("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),w("G",Ct),w("g",Ct),w("GG",p,l),w("gg",p,l),w("GGGG",_t,mt),w("gggg",_t,mt),w("GGGGG",wt,gt),w("ggggg",wt,gt),Dt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=c(t)}),Dt(["gg","GG"],function(t,e,n,i){e[i]=m.parseTwoDigitYear(t)}),i("Q",0,"Qo","quarter"),e("quarter","Q"),n("quarter",7),w("Q",r),C("Q",function(t,e){e[S]=3*(c(t)-1)}),i("D",["DD",2],"Do","date"),e("date","D"),n("date",9),w("D",p),w("DD",p,l),w("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),C(["D","DD"],E),C("Do",function(t,e){e[E]=c(t.match(p)[0])});_t=ht("Date",!0);i("DDD",["DDDD",3],"DDDo","dayOfYear"),e("dayOfYear","DDD"),n("dayOfYear",4),w("DDD",bt),w("DDDD",ft),C(["DDD","DDDD"],function(t,e,n){n._dayOfYear=c(t)}),i("m",["mm",2],0,"minute"),e("minute","m"),n("minute",14),w("m",p),w("mm",p,l),C(["m","mm"],D);var un,mt=ht("Minutes",!1),wt=(i("s",["ss",2],0,"second"),e("second","s"),n("second",15),w("s",p),w("ss",p,l),C(["s","ss"],M),ht("Seconds",!1));for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),e("millisecond","ms"),n("millisecond",16),w("S",bt,r),w("SS",bt,l),w("SSS",bt,ft),un="SSSS";un.length<=9;un+="S")w(un,xt);function cn(t,e){e[Mt]=c(1e3*("0."+t))}for(un="S";un.length<=9;un+="S")C(un,cn);gt=ht("Milliseconds",!1),i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName");r=G.prototype;function hn(t){return t}r.add=Pt,r.calendar=function(t,e){1===arguments.length&&(arguments[0]?Xe(arguments[0])?(t=arguments[0],e=void 0):function(t){for(var e=L(t)&&!H(t),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<i.length;r+=1)n=n||d(t,i[r]);return e&&n}(arguments[0])&&(e=arguments[0],t=void 0):e=t=void 0);var t=t||N(),n=ze(t,this).startOf("day"),n=m.calendarFormat(this,n)||"sameElse",e=e&&(s(e[n])?e[n].call(this,t):e[n]);return this.format(e||this.localeData().calendar(n,this,N(t)))},r.clone=function(){return new G(this)},r.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=ze(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=a(e)){case"year":o=Ze(this,i)/12;break;case"month":o=Ze(this,i);break;case"quarter":o=Ze(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:h(o)},r.endOf=function(t){var e,n;if(void 0!==(t=a(t))&&"millisecond"!==t&&this.isValid()){switch(n=this._isUTC?rn:nn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-en(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-en(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-en(e,1e3)-1}this._d.setTime(e),m.updateOffset(this,!0)}return this},r.format=function(t){return t=t||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),t=ot(this,t),this.localeData().postformat(t)},r.from=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||N(t).isValid())?P({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},r.fromNow=function(t){return this.from(N(),t)},r.to=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||N(t).isValid())?P({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},r.toNow=function(t){return this.to(N(),t)},r.get=function(t){return s(this[t=a(t)])?this[t]():this},r.invalidAt=function(){return b(this).overflow},r.isAfter=function(t,e){return t=_(t)?t:N(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=a(e)||"millisecond")?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},r.isBefore=function(t,e){return t=_(t)?t:N(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=a(e)||"millisecond")?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},r.isBetween=function(t,e,n,i){return t=_(t)?t:N(t),e=_(e)?e:N(e),!!(this.isValid()&&t.isValid()&&e.isValid())&&("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},r.isSame=function(t,e){var t=_(t)?t:N(t);return!(!this.isValid()||!t.isValid())&&("millisecond"===(e=a(e)||"millisecond")?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},r.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},r.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},r.isValid=function(){return j(this)},r.lang=Qt,r.locale=Qe,r.localeData=Je,r.max=yt,r.min=vt,r.parsingFlags=function(){return V({},b(this))},r.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)d(t,e)&&n.push({unit:e,priority:ut[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=lt(t)),i=n.length,r=0;r<i;r++)this[n[r].unit](t[n[r].unit]);else if(s(this[t=a(t)]))return this[t](e);return this},r.startOf=function(t){var e,n;if(void 0!==(t=a(t))&&"millisecond"!==t&&this.isValid()){switch(n=this._isUTC?rn:nn,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=en(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=en(e,6e4);break;case"second":e=this._d.valueOf(),e-=en(e,1e3)}this._d.setTime(e),m.updateOffset(this,!0)}return this},r.subtract=Xt,r.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},r.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},r.toDate=function(){return new Date(this.valueOf())},r.toISOString=function(t){var e;return this.isValid()?(e=(t=!0!==t)?this.clone().utc():this).year()<0||9999<e.year()?ot(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):s(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ot(e,"Z")):ot(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},r.inspect=function(){var t,e,n;return this.isValid()?(e="moment",t="",this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),e="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+n+"-MM-DD[T]HH:mm:ss.SSS"+(t+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(r[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},r.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},r.eraName=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].name;if(e[n].until<=t&&t<=e[n].since)return e[n].name}return""},r.eraNarrow=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].narrow;if(e[n].until<=t&&t<=e[n].since)return e[n].narrow}return""},r.eraAbbr=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].abbr;if(e[n].until<=t&&t<=e[n].since)return e[n].abbr}return""},r.eraYear=function(){for(var t,e,n=this.localeData().eras(),i=0,r=n.length;i<r;++i)if(t=n[i].since<=n[i].until?1:-1,e=this.clone().startOf("day").valueOf(),n[i].since<=e&&e<=n[i].until||n[i].until<=e&&e<=n[i].since)return(this.year()-m(n[i].since).year())*t+n[i].offset;return this.year()},r.year=Wt,r.isLeapYear=function(){return ct(this.year())},r.weekYear=function(t){return ln.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},r.isoWeekYear=function(t){return ln.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},r.quarter=r.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},r.month=zt,r.daysInMonth=function(){return Nt(this.year(),this.month())},r.week=r.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},r.isoWeek=r.isoWeeks=function(t){var e=Gt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},r.weeksInYear=function(){var t=this.localeData()._week;return A(this.year(),t.dow,t.doy)},r.weeksInWeekYear=function(){var t=this.localeData()._week;return A(this.weekYear(),t.dow,t.doy)},r.isoWeeksInYear=function(){return A(this.year(),1,4)},r.isoWeeksInISOWeekYear=function(){return A(this.isoWeekYear(),1,4)},r.date=_t,r.day=r.days=function(t){var e,n,i;return this.isValid()?(e=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=t?(n=t,i=this.localeData(),t="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=i.weekdaysParse(n))?n:null:parseInt(n,10),this.add(t-e,"d")):e):null!=t?this:NaN},r.weekday=function(t){var e;return this.isValid()?(e=(this.day()+7-this.localeData()._week.dow)%7,null==t?e:this.add(t-e,"d")):null!=t?this:NaN},r.isoWeekday=function(t){var e,n;return this.isValid()?null!=t?(e=t,n=this.localeData(),n="string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e,this.day(this.day()%7?n:n-7)):this.day()||7:null!=t?this:NaN},r.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},r.hour=r.hours=f,r.minute=r.minutes=mt,r.second=r.seconds=wt,r.millisecond=r.milliseconds=gt,r.utcOffset=function(t,e,n){var i,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?r:Ve(this);if("string"==typeof t){if(null===(t=Fe($t,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=Ve(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?Ge(this,P(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},r.utc=function(t){return this.utcOffset(0,t)},r.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t)&&this.subtract(Ve(this),"m"),this},r.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=Fe(kt,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},r.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?N(t).utcOffset():0,(this.utcOffset()-t)%60==0)},r.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},r.isLocal=function(){return!!this.isValid()&&!this._isUTC},r.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},r.isUtc=je,r.isUTC=je,r.zoneAbbr=function(){return this._isUTC?"UTC":""},r.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},r.dates=t("dates accessor is deprecated. Use date instead.",_t),r.months=t("months accessor is deprecated. Use month instead",zt),r.years=t("years accessor is deprecated. Use year instead",Wt),r.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),r.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var t,e;return v(this._isDSTShifted)&&(Y(t={},this),(t=Me(t))._a?(e=(t._isUTC?u:N)(t._a),this._isDSTShifted=this.isValid()&&0<function(t,e,n){for(var i=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0,s=0;s<i;s++)(n&&t[s]!==e[s]||!n&&c(t[s])!==c(e[s]))&&o++;return o+r}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});l=J.prototype;function dn(t,e,n,i){var r=fe(),i=u().set(i,e);return r[n](i,t)}function pn(t,e,n){if(y(t)&&(e=t,t=void 0),t=t||"",null!=e)return dn(t,e,n,"month");for(var i=[],r=0;r<12;r++)i[r]=dn(t,r,n,"month");return i}function fn(t,e,n,i){e=("boolean"==typeof t?y(e)&&(n=e,e=void 0):(e=t,t=!1,y(n=e)&&(n=e,e=void 0)),e||"");var r,o=fe(),s=t?o._week.dow:0,a=[];if(null!=n)return dn(e,(n+s)%7,i,"day");for(r=0;r<7;r++)a[r]=dn(e,(r+s)%7,i,"day");return a}l.calendar=function(t,e,n){return s(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},l.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(et).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])},l.invalidDate=function(){return this._invalidDate},l.ordinal=function(t){return this._ordinal.replace("%d",t)},l.preparse=hn,l.postformat=hn,l.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return s(r)?r(t,e,n,i):r.replace(/%d/i,t)},l.pastFuture=function(t,e){return s(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},l.set=function(t){var e,n;for(n in t)d(t,n)&&(s(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},l.eras=function(t,e){for(var n,i=this._eras||fe("en")._eras,r=0,o=i.length;r<o;++r)switch("string"==typeof i[r].since&&(n=m(i[r].since).startOf("day"),i[r].since=n.valueOf()),typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":n=m(i[r].until).startOf("day").valueOf(),i[r].until=n.valueOf()}return i},l.erasParse=function(t,e,n){var i,r,o,s,a,l=this.eras();for(t=t.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),s=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return l[i];break;case"NNNN":if(o===t)return l[i];break;case"NNNNN":if(a===t)return l[i]}else if(0<=[o,s,a].indexOf(t))return l[i]},l.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?m(t.since).year():m(t.since).year()+(e-t.offset)*n},l.erasAbbrRegex=function(t){return d(this,"_erasAbbrRegex")||sn.call(this),t?this._erasAbbrRegex:this._erasRegex},l.erasNameRegex=function(t){return d(this,"_erasNameRegex")||sn.call(this),t?this._erasNameRegex:this._erasRegex},l.erasNarrowRegex=function(t){return d(this,"_erasNarrowRegex")||sn.call(this),t?this._erasNarrowRegex:this._erasRegex},l.months=function(t,e){return t?(g(this._months)?this._months:this._months[(this._months.isFormat||It).test(e)?"format":"standalone"])[t.month()]:g(this._months)?this._months:this._months.standalone},l.monthsShort=function(t,e){return t?(g(this._monthsShort)?this._monthsShort:this._monthsShort[It.test(e)?"format":"standalone"])[t.month()]:g(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},l.monthsParse=function(t,e,n){var i,r;if(this._monthsParseExact)return function(t,e,n){var i,r,o,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=u([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=k.call(this._shortMonthsParse,t))?r:null:-1!==(r=k.call(this._longMonthsParse,t))?r:null:"MMM"===e?-1!==(r=k.call(this._shortMonthsParse,t))||-1!==(r=k.call(this._longMonthsParse,t))?r:null:-1!==(r=k.call(this._longMonthsParse,t))||-1!==(r=k.call(this._shortMonthsParse,t))?r:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=u([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},l.monthsRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||Vt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ht),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},l.monthsShortRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||Vt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Lt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},l.week=function(t){return Gt(t,this._week.dow,this._week.doy).week},l.firstDayOfYear=function(){return this._week.doy},l.firstDayOfWeek=function(){return this._week.dow},l.weekdays=function(t,e){return e=g(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"],!0===t?Kt(e,this._week.dow):t?e[t.day()]:e},l.weekdaysMin=function(t){return!0===t?Kt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},l.weekdaysShort=function(t){return!0===t?Kt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},l.weekdaysParse=function(t,e,n){var i,r;if(this._weekdaysParseExact)return function(t,e,n){var i,r,o,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=k.call(this._weekdaysParse,t))?r:null:"ddd"===e?-1!==(r=k.call(this._shortWeekdaysParse,t))?r:null:-1!==(r=k.call(this._minWeekdaysParse,t))?r:null:"dddd"===e?-1!==(r=k.call(this._weekdaysParse,t))||-1!==(r=k.call(this._shortWeekdaysParse,t))||-1!==(r=k.call(this._minWeekdaysParse,t))?r:null:"ddd"===e?-1!==(r=k.call(this._shortWeekdaysParse,t))||-1!==(r=k.call(this._weekdaysParse,t))||-1!==(r=k.call(this._minWeekdaysParse,t))?r:null:-1!==(r=k.call(this._minWeekdaysParse,t))||-1!==(r=k.call(this._weekdaysParse,t))||-1!==(r=k.call(this._shortWeekdaysParse,t))?r:null}
vendor: 6,956 bytes, line 1
1.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=u([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},l.weekdaysRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Jt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},l.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},l.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},l.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},l.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},de("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===c(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),m.lang=t("moment.lang is deprecated. Use moment.locale instead.",de),m.langData=t("moment.langData is deprecated. Use moment.localeData instead.",fe);var mn=Math.abs;function gn(t,e,n,i){e=P(e,n);return t._milliseconds+=i*e._milliseconds,t._days+=i*e._days,t._months+=i*e._months,t._bubble()}function vn(t){return t<0?Math.floor(t):Math.ceil(t)}function yn(t){return 4800*t/146097}function bn(t){return 146097*t/4800}function _n(t){return function(){return this.as(t)}}bt=_n("ms"),ft=_n("s"),Pt=_n("m"),yt=_n("h"),vt=_n("d"),Xt=_n("w"),f=_n("M"),mt=_n("Q"),wt=_n("y");function wn(t){return function(){return this.isValid()?this._data[t]:NaN}}var gt=wn("milliseconds"),_t=wn("seconds"),Wt=wn("minutes"),l=wn("hours"),xn=wn("days"),Cn=wn("months"),kn=wn("years");var $n=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function En(t,e,n,i){var r=P(t).abs(),o=$n(r.as("s")),s=$n(r.as("m")),a=$n(r.as("h")),l=$n(r.as("d")),u=$n(r.as("M")),c=$n(r.as("w")),r=$n(r.as("y")),o=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||(s<=1?["m"]:s<n.m&&["mm",s])||(a<=1?["h"]:a<n.h&&["hh",a])||(l<=1?["d"]:l<n.d&&["dd",l]);return(o=(o=null!=n.w?o||(c<=1?["w"]:c<n.w&&["ww",c]):o)||(u<=1?["M"]:u<n.M&&["MM",u])||(r<=1?["y"]:["yy",r]))[2]=e,o[3]=0<+t,o[4]=i,function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}.apply(null,o)}var Tn=Math.abs;function Dn(t){return(0<t)-(t<0)||+t}function Mn(){var t,e,n,i,r,o,s,a,l,u,c;return this.isValid()?(t=Tn(this._milliseconds)/1e3,e=Tn(this._days),n=Tn(this._months),(a=this.asSeconds())?(i=h(t/60),r=h(i/60),t%=60,i%=60,o=h(n/12),n%=12,s=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=Dn(this._months)!==Dn(a)?"-":"",u=Dn(this._days)!==Dn(a)?"-":"",c=Dn(this._milliseconds)!==Dn(a)?"-":"",(a<0?"-":"")+"P"+(o?l+o+"Y":"")+(n?l+n+"M":"")+(e?u+e+"D":"")+(r||i||t?"T":"")+(r?c+r+"H":"")+(i?c+i+"M":"")+(t?c+s+"S":"")):"P0D"):this.localeData().invalidDate()}var R=Pe.prototype;return R.isValid=function(){return this._isValid},R.abs=function(){var t=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),t.milliseconds=mn(t.milliseconds),t.seconds=mn(t.seconds),t.minutes=mn(t.minutes),t.hours=mn(t.hours),t.months=mn(t.months),t.years=mn(t.years),this},R.add=function(t,e){return gn(this,t,e,1)},R.subtract=function(t,e){return gn(this,t,e,-1)},R.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=a(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+yn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(bn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},R.asMilliseconds=bt,R.asSeconds=ft,R.asMinutes=Pt,R.asHours=yt,R.asDays=vt,R.asWeeks=Xt,R.asMonths=f,R.asQuarters=mt,R.asYears=wt,R.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*c(this._months/12):NaN},R._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*vn(bn(n)+e),n=e=0),i.milliseconds=t%1e3,t=h(t/1e3),i.seconds=t%60,t=h(t/60),i.minutes=t%60,t=h(t/60),i.hours=t%24,e+=h(t/24),n+=t=h(yn(e)),e-=vn(bn(t)),t=h(n/12),n%=12,i.days=e,i.months=n,i.years=t,this},R.clone=function(){return P(this)},R.get=function(t){return t=a(t),this.isValid()?this[t+"s"]():NaN},R.milliseconds=gt,R.seconds=_t,R.minutes=Wt,R.hours=l,R.days=xn,R.weeks=function(){return h(this.days()/7)},R.months=Cn,R.years=kn,R.humanize=function(t,e){var n,i;return this.isValid()?(n=!1,i=Sn,"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(n=t),"object"==typeof e&&(i=Object.assign({},Sn,e),null!=e.s)&&null==e.ss&&(i.ss=e.s-1),t=this.localeData(),e=En(this,!n,i,t),n&&(e=t.pastFuture(+this,e)),t.postformat(e)):this.localeData().invalidDate()},R.toISOString=Mn,R.toString=Mn,R.toJSON=Mn,R.locale=Qe,R.localeData=Je,R.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mn),R.lang=Qt,i("X",0,0,"unix"),i("x",0,0,"valueOf"),w("x",Ct),w("X",/[+-]?\d+(\.\d{1,3})?/),C("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t))}),C("x",function(t,e,n){n._d=new Date(c(t))}),m.version="2.29.4",I=N,m.fn=r,m.min=function(){return Oe("isBefore",[].slice.call(arguments,0))},m.max=function(){return Oe("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=u,m.unix=function(t){return N(1e3*t)},m.months=function(t,e){return pn(t,e,"months")}
1,m.isDate=F,m.locale=de,m.invalid=W,m.duration=P,m.isMoment=_,m.weekdays=function(t,e,n){return fn(t,e,n,"weekdays")},m.parseZone=function(){return N.apply(null,arguments).parseZone()},m.localeData=fe,m.isDuration=Re,m.monthsShort=function(t,e){return pn(t,e,"monthsShort")},m.weekdaysMin=function(t,e,n){return fn(t,e,n,"weekdaysMin")},m.defineLocale=pe,m.updateLocale=function(t,e){var n,i;return null!=e?(i=ae,null!=O[t]&&null!=O[t].parentLocale?O[t].set(Q(O[t]._config,e)):(e=Q(i=null!=(n=he(t))?n._config:i,e),null==n&&(e.abbr=t),(i=new J(e)).parentLocale=O[t],O[t]=i),de(t)):null!=O[t]&&(null!=O[t].parentLocale?(O[t]=O[t].parentLocale,t===de()&&de(t)):null!=O[t]&&delete O[t]),O[t]},m.locales=function(){return tt(O)},m.weekdaysShort=function(t,e,n){return fn(t,e,n,"weekdaysShort")},m.normalizeUnits=a,m.relativeTimeRounding=function(t){return void 0===t?$n:"function"==typeof t&&($n=t,!0)},m.relativeTimeThreshold=function(t,e){return void 0!==Sn[t]&&(void 0===e?Sn[t]:(Sn[t]=e,"s"===t&&(Sn.ss=e-1),!0))},m.calendarFormat=function(t,e){return(t=t.diff(e,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},m.prototype=r,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}),!function(){var lt={dev:!1};lt.tooltip=lt.tooltip||{},lt.utils=lt.utils||{},lt.models=lt.models||{},lt.charts={},lt.logs={},lt.dom={},"undefined"!=typeof module&&"undefined"!=typeof exports&&"undefined"==typeof d3&&(d3=require("d3")),lt.dispatch=d3.dispatch("render_start","render_end"),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");function e(){return i.apply(this instanceof r&&t?this:t,n.concat(Array.prototype.slice.call(arguments)))}var n=Array.prototype.slice.call(arguments,1),i=this,r=function(){};return r.prototype=this.prototype,e.prototype=new r,e}),lt.dev&&(lt.dispatch.on("render_start",function(t){lt.logs.startTime=+new Date}),lt.dispatch.on("render_end",function(t){lt.logs.endTime=+new Date,lt.logs.totalTime=lt.logs.endTime-lt.logs.startTime,lt.log("total",lt.logs.totalTime)})),lt.log=function(){return lt.dev&&window.console&&console.log&&console.log.apply?console.log.apply(console,arguments):lt.dev&&window.console&&"function"==typeof console.log&&Function.prototype.bind&&Function.prototype.bind.call(console.log,console).apply(console,arguments),arguments[arguments.length-1]},lt.deprecated=function(t,e){console&&console.warn&&console.warn("nvd3 warning: `"+t+"` has been deprecated. ",e||"")},lt.render=function(i){i=i||1,lt.render.active=!0,lt.dispatch.render_start();function r(){for(var t,e,n=0;n<i&&(e=lt.render.queue[n]);n++)t=e.generate(),typeof e.callback==typeof Function&&e.callback(t);lt.render.queue.splice(0,n),lt.render.queue.length?setTimeout(r):(lt.dispatch.render_end(),lt.render.active=!1)}setTimeout(r)},lt.render.active=!1,lt.render.queue=[],lt.addGraph=function(t){typeof arguments[0]==typeof Function&&(t={generate:arguments[0],callback:arguments[1]}),lt.render.queue.push(t),lt.render.active||lt.render()},"undefined"!=typeof module&&"undefined"!=typeof exports&&(module.exports=lt),"undefined"!=typeof window&&(window.nv=lt),lt.dom.write=function(t){return void 0!==window.fastdom?fastdom.mutate(t):t()},lt.dom.read=function(t){return void 0!==window.fastdom?fastdom.measure(t):t()},lt.interactiveGuideline=function(){"use strict";var s={left:0,top:0},a=null,l=null,u=d3.scale.linear(),c=d3.dispatch("elementMousemove","elementMouseout","elementClick","elementDblclick","elementMouseDown","elementMouseUp"),h=!0,d=null,p=lt.models.tooltip(),f="ActiveXObject"in window;function m(t){t.each(function(t){var e=d3.select(this),r=a||960,o=l||400,n=e.selectAll("g.nv-wrap.nv-interactiveLineLayer").data([t]);function i(){var t=d3.mouse(this),e=t[0],t=t[1],n=!0,i=!1;if(f&&(e=d3.event.offsetX,t=d3.event.offsetY,"svg"!==d3.event.target.tagName&&(n=!1),d3.event.target.className.baseVal.match("nv-legend"))&&(i=!0),n&&(e-=s.left,t-=s.top),"mouseout"===d3.event.type||e<0||t<0||r<e||o<t||d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement||i)return f&&d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement&&(void 0===d3.event.relatedTarget.className||d3.event.relatedTarget.className.match(p.nvPointerEventsClass))?void 0:(c.elementMouseout({mouseX:e,mouseY:t}),m.renderGuideLine(null),void p.hidden(!0));p.hidden(!1);n=void 0;if("function"==typeof u.rangeBands){i=d3.bisect(u.range(),e)-1;
1if(!(u.range()[i]+u.rangeBand()>=e))return c.elementMouseout({mouseX:e,mouseY:t}),m.renderGuideLine(null),void p.hidden(!0);n=u.domain()[d3.bisect(u.range(),e)-1]}else n=u.invert(e);c.elementMousemove({mouseX:e,mouseY:t,pointXValue:n}),"dblclick"===d3.event.type&&c.elementDblclick({mouseX:e,mouseY:t,pointXValue:n}),"click"===d3.event.type&&c.elementClick({mouseX:e,mouseY:t,pointXValue:n}),"mousedown"===d3.event.type&&c.elementMouseDown({mouseX:e,mouseY:t,pointXValue:n}),"mouseup"===d3.event.type&&c.elementMouseUp({mouseX:e,mouseY:t,pointXValue:n})}n.enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer").append("g").attr("class","nv-interactiveGuideLine"),d&&(d.on("touchmove",i).on("mousemove",i,!0).on("mouseout",i,!0).on("mousedown",i,!0).on("mouseup",i,!0).on("dblclick",i).on("click",i),m.guideLine=null,m.renderGuideLine=function(e){!h||m.guideLine&&m.guideLine.attr("x1")===e||lt.dom.write(function(){var t=n.select(".nv-interactiveGuideLine").selectAll("line").data(null!=e?[lt.utils.NaNtoZero(e)]:[],String);t.enter().append("line").attr("class","nv-guideline").attr("x1",function(t){return t}).attr("x2",function(t){return t}).attr("y1",o).attr("y2",0),t.exit().remove()})})})}return p.duration(0).hideDelay(0).hidden(!1),m.dispatch=c,m.tooltip=p,m.margin=function(t){return arguments.length?(s.top=(void 0!==t.top?t:s).top,s.left=(void 0!==t.left?t:s).left,m):s},m.width=function(t){return arguments.length?(a=t,m):a},m.height=function(t){return arguments.length?(l=t,m):l},m.xScale=function(t){return arguments.length?(u=t,m):u},m.showGuideLine=function(t){return arguments.length?(h=t,m):h},m.svgContainer=function(t){return arguments.length?(d=t,m):d},m},lt.interactiveBisect=function(t,e,n){"use strict";var i,r,o;return t instanceof Array?(i="function"!=typeof n?function(t){return t.x}:n,n=d3.bisector(function(t,e){return i(t)-e}).left,n=d3.max([0,n(t,e)-1]),(r=void 0===(r=i(t[n]))?n:r)===e||(o=d3.min([n+1,t.length-1]),void 0===(t=i(t[o]))&&(t=o),Math.abs(t-e)>=Math.abs(r-e))?n:o):null},lt.nearestValueIndex=function(t,i,r){"use strict";var o=1/0,s=null;return t.forEach(function(t,e){var n=Math.abs(i-t);null!=t&&n<=o&&n<r&&(o=n,s=e)}),s},lt.models.tooltip=function(){"use strict";var e="nvtooltip-"+Math.floor(1e5*Math.random()),n=null,l="w",u=25,i=0,r=null,o=null,s=!0,a=200,c=null,h={left:null,top:null},d=!0,p=100,f=!0,m="nv-pointer-events-none",g=function(){return{left:null!==d3.event?d3.event.clientX:0,top:null!==d3.event?d3.event.clientY:0}},v=function(t,e){return t},y=function(t){return t},b=function(t,e){return t},_=function(t){if(null===t)return"";var e=d3.select(document.createElement("table"));f&&e.selectAll("thead").data([t]).enter().append("thead").append("tr").append("td").attr("colspan",3).append("strong").classed("x-value",!0).html(y(t.value));var n=e.selectAll("tbody").data([t]).enter().append("tbody").selectAll("tr").data(function(t){return t.series}).enter().append("tr").classed("highlight",function(t){return t.highlight}),n=(n.append("td").classed("legend-color-guide",!0).append("div").style("background-color",function(t){return t.color}),n.append("td").classed("key",!0).classed("total",function(t){return!!t.total}).html(function(t,e){return b(t.key,e)}),n.append("td").classed("value",!0).html(function(t,e){return v(t.value,e)}),n.selectAll("td").each(function(t){t.highlight&&(t=d3.scale.linear().domain([0,1]).range(["#fff",t.color]),d3.select(this).style("border-bottom-color",t(.6)).style("border-top-color",t(.6)))}),e.node().outerHTML);return void 0!==t.footer&&(n+="<div class='footer'>"+t.footer+"</div>"),n},w=function(t){var e,n,i,r=c.node().offsetHeight,o=c.node().offsetWidth,s=document.documentElement.clientWidth,a=document.documentElement.clientHeight;switch(l){case"e":e=-o-u,t.left+e<0&&(e=u),(i=t.top+(n=-r/2))<0&&(n-=i),(i=t.top+n+r)>a&&(n-=i-a);break;case"w":e=u,t.left+e+o>s&&(e=-o-u),(i=t.top+(n=-r/2))<0&&(n-=i),(i=t.top+n+r)>a&&(n-=i-a);break;case"n":n=u,t.top+n+r>a&&(n=-r-u),(i=t.left+(e=-o/2-5))<0&&(e-=i),(i=t.left+e+o)>s&&(e-=i-s);break;case"s":n=-r-u,t.top+n<0&&(n=u),(i=t.left+(e=-o/2))<0&&(e-=i),(i=t.left+e+o)>s&&(e-=i-s);break;case"center":e=-o/2,n=-r/2;break;default:n=e=0}return{left:e,top:n}};function x(){if(d&&function(t){if(t&&t.series){if(lt.utils.isArray(t.series))return!0;
1if(lt.utils.isObject(t.series))return t.series=[t.series],!0}return!1}(n))return lt.dom.write(function(){c&&c.node()||(t=o||document.body,(c=d3.select(t).selectAll(".nvtooltip").data([1])).enter().append("div").attr("class","nvtooltip "+(r||"xy-tooltip")).attr("id",e).style("top",0).style("left",0).style("opacity",0).style("position","fixed").selectAll("div, table, td, tr").classed(m,!0).classed(m,!0),c.exit().remove());var t=_(n);t&&(c.node().innerHTML=t),lt.dom.read(function(){var t,e,n=g(),i=w(n),r=n.left+i.left,n=n.top+i.top;s?c.interrupt().transition().delay(a).duration(0).style("opacity",0):(i="translate("+h.left+"px, "+h.top+"px)",t="translate("+r+"px, "+n+"px)",e=d3.interpolateString(i,t),i=c.style("opacity")<.1,c.interrupt().transition().duration(i?0:p).styleTween("transform",function(t){return e},"important").styleTween("-webkit-transform",function(t){return e}).style("-ms-transform",t).style("opacity",1)),h.left=r,h.top=n})}),x}return x.nvPointerEventsClass=m,x.options=lt.utils.optionsFunc.bind(x),x._options=Object.create({},{duration:{get:function(){return p},set:function(t){p=t}},gravity:{get:function(){return l},set:function(t){l=t}},distance:{get:function(){return u},set:function(t){u=t}},snapDistance:{get:function(){return i},set:function(t){i=t}},classes:{get:function(){return r},set:function(t){r=t}},chartContainer:{get:function(){return o},set:function(t){o=t}},enabled:{get:function(){return d},set:function(t){d=t}},hideDelay:{get:function(){return a}
1,set:function(t){a=t}},contentGenerator:{get:function(){return _},set:function(t){_=t}},valueFormatter:{get:function(){return v},set:function(t){v=t}},headerFormatter:{get:function(){return y},set:function(t){y=t}},keyFormatter:{get:function(){return b},set:function(t){b=t}},headerEnabled:{get:function(){return f},set:function(t){f=t}},position:{get:function(){return g},set:function(t){g=t}},fixedTop:{get:function(){return null},set:function(t){lt.deprecated("fixedTop","feature removed after 1.8.1")}},offset:{get:function(){return{left:0,top:0}},set:function(t){lt.deprecated("offset","use chart.tooltip.distance() instead")}},hidden:{get:function(){return s},set:function(t){s!=t&&(s=!!t,x())}},data:{get:function(){return n},set:function(t){t.point&&(t.value=t.point.x,t.series=t.series||{},t.series.value=t.point.y,t.series.color=t.point.color||t.series.color),n=t}},node:{get:function(){return c.node()},set:function(t){}},id:{get:function(){return e},set:function(t){}}}),lt.utils.initOptions(x),x},lt.utils.windowSize=function(){var t={width:640,height:480};return window.innerWidth&&window.innerHeight?(t.width=window.innerWidth,t.height=window.innerHeight):"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetWidth?(t.width=document.documentElement.offsetWidth,t.height=document.documentElement.offsetHeight):document.body&&document.body.offsetWidth&&(t.width=document.body.offsetWidth,t.height=document.body.offsetHeight),t},lt.utils.isArray=Array.isArray,lt.utils.isObject=function(t){return null!==t&&"object"==typeof t},lt.utils.isFunction=function(t){return"function"==typeof t},lt.utils.isDate=function(t){return"[object Date]"===toString.call(t)},lt.utils.isNumber=function(t){return!isNaN(t)&&"number"==typeof t},lt.utils.windowResize=function(t){return window.addEventListener?window.addEventListener("resize",t):lt.log("ERROR: Failed to bind to window.resize with: ",t),{callback:t,clear:function(){window.removeEventListener("resize",t)}}},lt.utils.getColor=function(t){var n;return void 0===t?lt.utils.defaultColor():lt.utils.isArray(t)?(n=d3.scale.ordinal().range(t),function(t,e){return t.color||n(void 0===e?t:e)}):t},lt.utils.defaultColor=function(){return lt.utils.getColor(d3.scale.category20().range())},lt.utils.customTheme=function(n,i,r){i=i||function(t){return t.key};var o=(r=r||d3.scale.category20().range()).length;return function(t,e){t=i(t);return lt.utils.isFunction(n[t])?n[t]():void 0!==n[t]?n[t]:(o=o||r.length,r[o-=1])}},lt.utils.pjax=function(n,i){function t(t){d3.html(t,function(t){var e=d3.select(i).node();e.parentNode.replaceChild(d3.select(t).select(i).node(),e),lt.utils.pjax(n,i)})}d3.selectAll(n).on("click",function(){history.pushState(this.href,this.textContent,this.href),t(this.href),d3.event.preventDefault()}),d3.select(window).on("popstate",function(){d3.event.state&&t(d3.event.state)})},lt.utils.calcApproxTextWidth=function(t){var e;return lt.utils.isFunction(t.style)&&lt.utils.isFunction(t.text)?(e=parseInt(t.style("font-size").replace("px",""),10),t=t.text().length,lt.utils.NaNtoZero(t*e*.5)):0},lt.utils.NaNtoZero=function(t){return!lt.utils.isNumber(t)||isNaN(t)||null===t||t===1/0||t===-1/0?0:t},d3.selection.prototype.watchTransition=function(t){var e=[this].concat([].slice.call(arguments,1));return t.transition.apply(t,e)},lt.utils.renderWatch=function(t,e){if(!(this instanceof lt.utils.renderWatch))return new lt.utils.renderWatch(t,e);var o=void 0!==e?e:250,s=[],a=this;this.models=function(t){return(t=[].slice.call(arguments,0)).forEach(function(t){var e;t.__rendered=!1,(e=t).dispatch.on("renderEnd",function(t){e.__rendered=!0,a.renderEnd("model")}),s.indexOf(t)<0&&s.push(t)}),this},this.reset=function(t){void 0!==t&&(o=t),s=[]},this.transition=function(n,i,t){var r;return t=1<(i=1<arguments.length?[].slice.call(arguments,1):[]).length?i.pop():void 0!==o?o:250,n.__rendered=!1,s.indexOf(n)<0&&s.push(n),0===t?(n.__rendered=!0,n.delay=function(){return this},n.duration=function(){return this},n):(0===n.length||n.every(function(t){return!t.length})?n.__rendered=!0:n.__rendered=!1,r=0,n.transition().duration(t).each(function(){++r}).each("end",function(t,e){0==--r&&(n.__rendered=!0,a.renderEnd.apply(this,i))}))},this.renderEnd=function(){s.every(function(t){return t.__rendered})&&(s.forEach(function(t){t.__rendered=!1}),t.renderEnd.apply(this,arguments))}},lt.utils.deepExtend=function(o){(1<arguments.length?[].slice.call(arguments,1
1):[]).forEach(function(t){for(var e in t){var n=lt.utils.isArray(o[e]),i=lt.utils.isObject(o[e]),r=lt.utils.isObject(t[e]);i&&!n&&r?lt.utils.deepExtend(o[e],t[e]):o[e]=t[e]}})},lt.utils.state=function(){if(!(this instanceof lt.utils.state))return new lt.utils.state;var n={},e=function(){},i=function(){return{}},r=null;this.dispatch=d3.dispatch("change","set"),this.dispatch.on("set",function(t){e(t,!0)}),this.getter=function(t){return i=t,this},this.setter=function(n,i){return i=i||function(){},e=function(t,e){n(t),e&&i()},this},this.init=function(t){r=r||{},lt.utils.deepExtend(r,t)};this.update=function(){r&&(e(r,!1),r=null),function(){var t,e=i();if(JSON.stringify(e)===JSON.stringify(n))return!1;for(t in e)void 0===n[t]&&(n[t]={}),n[t]=e[t],0;return!0}.call(this)&&this.dispatch.change(n)}},lt.utils.optionsFunc=function(t){return t&&d3.map(t).forEach(function(t,e){lt.utils.isFunction(this[t])&&this[t](e)}.bind(this)),this},lt.utils.calcTicksX=function(t,e){for(var n=1,i=0;i<e.length;i+=1)var r=e[i]&&e[i].values?e[i].values.length:0,n=n<r?r:n;return lt.log("Requested number of ticks: ",t),lt.log("Calculated max values to be: ",n),t=(t=n<t?n-1:t)<1?1:t,t=Math.floor(t),lt.log("Calculating tick count as: ",t),t},lt.utils.calcTicksY=function(t,e){return lt.utils.calcTicksX(t,e)},lt.utils.initOption=function(e,n){e._calls&&e._calls[n]?e[n]=e._calls[n]:(e[n]=function(t){return arguments.length?(e._overrides[n]=!0,e._options[n]=t,e):e._options[n]},e["_"+n]=function(t){return arguments.length?(e._overrides[n]||(e._options[n]=t),e):e._options[n]})},lt.utils.initOptions=function(t){t._overrides=t._overrides||{};var e,n=Object.getOwnPropertyNames(t._options||{}),i=Object.getOwnPropertyNames(t._calls||{});
vendor: 1,481 bytes, line 1
1for(e in n=n.concat(i))lt.utils.initOption(t,n[e])},lt.utils.inheritOptionsD3=function(t,e,n){t._d3options=n.concat(t._d3options||[]),n.unshift(e),n.unshift(t),d3.rebind.apply(this,n)},lt.utils.arrayUnique=function(n){return n.sort().filter(function(t,e){return!e||t!=n[e-1]})},lt.utils.symbolMap=d3.map(),lt.utils.symbol=function(){var i,r=64;function e(t,e){var n=i.call(this,t,e),t=r.call(this,t,e);return-1!==d3.svg.symbolTypes.indexOf(n)?d3.svg.symbol().type(n).size(t)():lt.utils.symbolMap.get(n)(t)}return e.type=function(t){return arguments.length?(i=d3.functor(t),e):i},e.size=function(t){return arguments.length?(r=d3.functor(t),e):r},e},lt.utils.inheritOptions=function(t,e){var n=Object.getOwnPropertyNames(e._options||{}),i=Object.getOwnPropertyNames(e._calls||{}),r=e._inherited||[],o=e._d3options||[],s=n.concat(i).concat(r).concat(o);s.unshift(e),s.unshift(t),d3.rebind.apply(this,s),t._inherited=lt.utils.arrayUnique(n.concat(i).concat(r).concat(n).concat(t._inherited||[])),t._d3options=lt.utils.arrayUnique(o.concat(t._d3options||[]))},lt.utils.initSVG=function(t){t.classed({"nvd3-svg":!0})},lt.utils.sanitizeHeight=function(t,e){return t||parseInt(e.style("height"),10)||400},lt.utils.sanitizeWidth=function(t,e){return t||parseInt(e.style("width"),10)||960},lt.utils.availableHeight=function(t,e,n){return Math.max(0,lt.utils.sanitizeHeight(t,e)-n.top-n.bottom)},lt.utils.availableWidth=function(t,e,n){return Math.max(0,lt.utils.sanitizeWidth(t,e)-n.left-n.r
1ight)},lt.utils.noData=function(t,e){var t=t.options(),n=t.margin(),t=t.noData(),t=null==t?["No Data Available."]:[t],i=lt.utils.availableHeight(null,e,n),r=lt.utils.availableWidth(null,e,n),r=n.left+r/2,n=n.top+i/2,i=(e.selectAll("g").remove(),e.selectAll(".nv-noData").data(t));i.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),i.attr("x",r).attr("y",n).text(function(t){return t})},lt.utils.wrapTicks=function(t,l){t.each(function(){for(var t,e=d3.select(this),n=e.text().split(/\s+/).reverse(),i=[],r=0,o=e.attr("y"),s=parseFloat(e.attr("dy")),a=e.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",s+"em");t=n.pop();)i.push(t),a.text(i.join(" ")),a.node().getComputedTextLength()>l&&(i.pop(),a.text(i.join(" ")),i=[t],a=e.append("tspan").attr("x",0).attr("y",o).attr("dy",1.1*++r+s+"em").text(t))})},lt.utils.arrayEquals=function(t,e){if(t!==e){if(!t||!e)return!1;if(t.length!=e.length)return!1;for(var n=0,i=t.length;n<i;n++)if(t[n]instanceof Array&&e[n]instanceof Array){if(!lt.arrayEquals(t[n],e[n]))return!1}else if(t[n]!=e[n])return!1}return!0},lt.models.axis=function(){"use strict";var m,g=d3.svg.axis(),v=d3.scale.linear(),y={top:0,right:0,bottom:0,left:0},b=75,e=60,_=null,w=!0,x=0,C=!0,k=!1,$=!1,S=null,E=0,T=void 0,n=250,t=d3.dispatch("renderEnd"),D=(g.scale(v).orient("bottom").tickFormat(function(t){return t}),lt.utils.renderWatch(t,n));function i(t){return D.reset(),t.each(function(t){var e,n,i,r=d3.select(this),o=(lt.utils.initSVG(r),r.selectAll("g.nv-wrap.nv-axis").data([t])),s=(o.enter().append("g").attr("class","nvd3 nv-wrap nv-axis").append("g"),o.select("g")),a=(null!==S?g.ticks(S):"top"!=g.orient()&&"bottom"!=g.orient()||g.ticks(Math.abs(v.range()[1]-v.range()[0])/100),s.watchTransition(D,"axis").call(g),m=m||g.scale(),g.tickFormat()),l=(null==a&&(a=m.tickFormat()),s.selectAll("text.nv-axislabel").data([_||null]));switch(l.exit().remove(),void 0!==T&&s.selectAll("g").select("text").style("font-size",T),g.orient()){case"top":l.enter().append("text").attr("class","nv-axislabel"),n=0,1===v.range().length?n=$?2*v.range()[0]+v.rangeBand():0:2===v.range().length?n=$?v.range()[0]+v.range()[1]+v.rangeBand():v.range()[1]:2<v.range().length&&(n=v.range()[v.range().length-1]+(v.range()[1]-v.range()[0])),l.attr("text-anchor","middle").attr("y",0).attr("x",n/2),w&&((e=o.selectAll("g.nv-axisMaxMin").data(v.domain())).enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-x",0==e?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),e.exit().remove(),e.attr("transform",function(t,e){return"translate("+lt.utils.NaNtoZero(v(t))+",0)"}).select("text").attr("dy","-0.5em").attr("y",-g.tickPadding()).attr("text-anchor","middle").text(function(t,e){t=a(t);return(""+t).match("NaN")?"":t}),e.watchTransition(D,"min-max top").attr("transform",function(t,e){return"translate("+lt.utils.NaNtoZero(v.range()[e])+",0)"}));break;case"bottom":c=E+36;var u,c,h=30,d=0,p=s.selectAll("g").select("text"),f="";x%360?(p.attr("transform",""),p.each(function(t,e){var n=this.getBoundingClientRect(),i=n.width;d=n.height,h<i&&(h=i)}),f="rotate("+x+" 0,"+(d/2+g.tickPadding())+")",c=((u=Math.abs(Math.sin(x*Math.PI/180)))?u*h:h)+30,p.attr("transform",f).style("text-anchor",0<x%360?"start":"end")):k?p.attr("transform",function(t,e){return"translate(0,"+(e%2==0?"0":"12")+")"}):p.attr("transform","translate(0,0)"),l.enter().append("text").attr("class","nv-axislabel"),n=0,1===v.range().length?n=$?2*v.range()[0]+v.rangeBand():0:2===v.range().length?n=$?v.range()[0]+v.range()[1]+v.rangeBand():v.range()[1]:2<v.range().length&&(n=v.range()[v.range().length-1]+(v.range()[1]-v.range()[0])),l.attr("text-anchor","middle").attr("y",c).attr("x",n/2),w&&((e=o.selectAll("g.nv-axisMaxMin").data([v.domain()[0],v.domain()[v.domain().length-1]])).enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-x",0==e?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),e.exit().remove(),e.attr("transform",function(t,e){return"translate("+lt.utils.NaNtoZero(v(t)+($?v.rangeBand()/2:0))+",0)"}).select("text").attr("dy",".71em").attr("y",g.tickPadding()).attr("transform",f).style("text-anchor",x?0<x%360?"start":"end":"middle").text(function(t,e){t=a(t);return(""+t).match("NaN")?"":t}),e.watchTransition(D,"min-max bottom").attr("transform",function(t,e){return"translate("+lt.utils.NaNtoZero(v(t)+($?v.rangeBand()/2:0))+",0)"}));break;case"right":l.enter().append("text").attr("class","nv-axislabel"),l.style("text-anchor",C?"middle":"begin").attr("transform",C?"rotate(90)":"").attr("y",C?12-Math.max(y.right,b):-10).attr("x",C?d3.max(v.range())/2:g.tickPadding()),w&&((e=o.selectAll("g.nv-axisMaxMin").data(v.domain())).enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-y",0==e?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),e.exit().remove(),e.attr("transform",function(t,e){return"translate(0,"+lt.utils.NaNtoZero(v(t))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",g.tickPadding()).style("text-anchor","start").text(function(t,e){t=a(t);return(""+t).match("NaN")?"":t}),e.watchTransition(D,"min-max right").attr("transform",function(t,e){return"translate(0,"+lt.utils.NaNtoZero(v.range()[e])+")"}).select("text").style("opacity",1));break;case"left":l.enter().append("text").attr("class","nv-axislabel"),l.style("text-anchor",C?"middle":"end").attr("transform",C?"rotate(-90)":"").attr("y",C?25-Math.max(y.left,b)-(E||0):-10).attr("x",C?-d3.max(v.range())/2:-g.tickPadding()),w&&((e=o.selectAll("g.nv-axisMaxMin").data(v.domain())).enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-y",0==e?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),e.exit().remove(),e.attr("transform",function(t,e){return"translate(0,"+lt.utils.NaNtoZero(m(t))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",-g.tickPadding()).attr("text-anchor","end").text(function(t,e){t=a(t);return(""+t).match("NaN")?"":t}),e.watchTransition(D,"min-max right").attr("transform",function(t,e){return"translate(0,"+lt.utils.NaNtoZero(v.range()[e])+")"}).select("text").style("opacity",1))}l.text(function(t){return t}),!w||"left"!==g.orient()&&"right"!==g.orient()||(s.selectAll("g").each(function(t,e){d3.select(this).select("text").attr("opacity",1),(v(t)<v.range()[1]+10||v(t)>v.range()[0]-10)&&((1e-10<t||t<-1e-10)&&d3.select(this).attr("opacity",0),d3.select(this).select("text").attr("opacity",0)
1)}),v.domain()[0]==v.domain()[1]&&0==v.domain()[0]&&o.selectAll("g.nv-axisMaxMin").style("opacity",function(t,e){return e?0:1})),!w||"top"!==g.orient()&&"bottom"!==g.orient()||(i=[],o.selectAll("g.nv-axisMaxMin").each(function(e,n){try{i.push(n?v(e)-this.getBoundingClientRect().width-4:v(e)+this.getBoundingClientRect().width+4)}catch(t){i.push(n?v(e)-4:v(e)+4)}}),s.selectAll("g").each(function(t,e){(v(t)<i[0]||v(t)>i[1])&&(1e-10<t||t<-1e-10?d3.select(this):d3.select(this).select("text")).remove()})),s.selectAll(".tick").filter(function(t){return!parseFloat(Math.round(1e5*t)/1e6)&&void 0!==t}).classed("zero",!0),m=v.copy()}),D.renderEnd("axis immediate"),i}return i.axis=g,i.dispatch=t,i.options=lt.utils.optionsFunc.bind(i),i._options=Object.create({},{axisLabelDistance:{get:function(){return E},set:function(t){E=t}},staggerLabels:{get:function(){return k},set:function(t){k=t}},rotateLabels:{get:function(){return x},set:function(t){x=t}},rotateYLabel:{get:function(){return C},set:function(t){C=t}},showMaxMin:{get:function(){return w},set:function(t){w=t}},axisLabel:{get:function(){return _},set:function(t){_=t}},height:{get:function(){return e},set:function(t){e=t}},ticks:{get:function(){return S},set:function(t){S=t}},width:{get:function(){return b},set:function(t){b=t}},fontSize:{get:function(){return T},set:function(t){T=t}},margin:{get:function(){return y},set:function(t){y.top=(void 0!==t.top?t:y).top,y.right=(void 0!==t.right?t:y).right,y.bottom=(void 0!==t.bottom?t:y).bottom,y.left=(void 0!==t.left?t:y).left}},duration:{get:function(){return n},set:function(t){n=t,D.reset(n)}},scale:{get:function(){return v},set:function(t){v=t,g.scale(v),$="function"==typeof v.rangeBands,lt.utils.inheritOptionsD3(i,v,["domain","range","rangeBand","rangeBands"])}}}),lt.utils.initOptions(i),lt.utils.inheritOptionsD3(i,g,["orient","tickValues","tickSubdivide","tickSize","tickPadding","tickFormat"]),lt.utils.inheritOptionsD3(i,v,["domain","range","rangeBand","rangeBands"]),i},lt.models.boxPlot=function(){"use strict";var u,c,h,d,p,f={top:0,right:0,bottom:0,left:0},m=960,g=500,e=Math.floor(1e4*Math.random()),v=d3.scale.ordinal(),y=d3.scale.linear(),b=function(t){return t.label},_=function(t){return t.values.Q1},w=function(t){return t.values.Q2},x=function(t){return t.values.Q3},C=function(t){return t.values.whisker_low},k=function(t){return t.values.whisker_high},$=function(t){return t.color},S=function(t){return t.values.outliers},E=function(t,e,n){return t},T=function(t,e,n){return t},D=function(t,e,n){},M=lt.utils.defaultColor(),A=null,O=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),N=250,P=null,R=lt.utils.renderWatch(O,N);function n(t){return R.reset(),t.each(function(n){function e(){return.45*v.rangeBand()-l()/2}function r(){return.45*v.rangeBand()+l()/2}var s,t=m-f.left-f.right,i=g-f.top-f.bottom,t=(A=d3.select(this),lt.utils.initSVG(A),v.domain(u||n.map(function(t,e){return b(t,e)})).rangeBands(c||[0,t],.1),[]),t=(h||(s=[],n.forEach(function(t,e){var n=_(t),i=x(t),r=C(t),o=k(t),t=S(t);t&&t.forEach(function(t,e){s.push(E(t,e,void 0))}),r&&s.push(r),n&&s.push(n),i&&s.push(i),o&&s.push(o)}),t=[d3.min(s),d3.max(s)]),y.domain(h||t),y.range(d||[i,0]),p=p||y.copy().range([y(0),y(0)]),A.selectAll("g.nv-wrap").data([n])),o=(t.enter().append("g").attr("class","nvd3 nv-wrap"),t.attr("transform","translate("+f.left+","+f.top+")"),t.selectAll(".nv-boxplot").data(function(t){return t})),a=o.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),l=(o.attr("class","nv-boxplot").attr("transform",function(t,e,n){return"translate("+(v(b(t,e))+.05*v.rangeBand())+", 0)"}).classed("hover",function(t){return t.hover}),o.watchTransition(R,"nv-boxplot: boxplots").style("stroke-opacity",1).style("fill-opacity",.75).delay(function(t,e){return e*N/n.length}).attr("transform",function(t,e){return"translate("+(v(b(t,e))+.05*v.rangeBand())+", 0)"}),o.exit().remove(),a.each(function(e,n){var i=d3.select(this);[C,k].forEach(function(t){t(e)&&(t=t===C?"low":"high",i.append("line").style("stroke",$(e)||M(e,n)).attr("class","nv-boxplot-whisker nv-boxplot-"+t),i.append("line").style("stroke",$(e)||M(e,n)).attr("class","nv-boxplot-tick nv-boxplot-"+t))})}),function(){return null===P?.9*v.rangeBand():Math.min(75,.9*v.rangeBand())}
vendor: 4,127 bytes, line 1
1),i=([C,k].forEach(function(n){var t=n===C?"low":"high",i=n===C?_:x;o.select("line.nv-boxplot-whisker.nv-boxplot-"+t).watchTransition(R,"nv-boxplot: boxplots").attr("x1",.45*v.rangeBand()).attr("y1",function(t,e){return y(n(t))}).attr("x2",.45*v.rangeBand()).attr("y2",function(t,e){return y(i(t))}),o.select("line.nv-boxplot-tick.nv-boxplot-"+t).watchTransition(R,"nv-boxplot: boxplots").attr("x1",e).attr("y1",function(t,e){return y(n(t))}).attr("x2",r).attr("y2",function(t,e){return y(n(t))})}),[C,k].forEach(function(i){var t=i===C?"low":"high";a.selectAll(".nv-boxplot-"+t).on("mouseover",function(t,e,n){d3.select(this).classed("hover",!0),O.elementMouseover({series:{key:i(t),color:$(t)||M(t,n)},e:d3.event})}).on("mouseout",function(t,e,n){d3.select(this).classed("hover",!1),O.elementMouseout({series:{key:i(t),color:$(t)||M(t,n)},e:d3.event})}).on("mousemove",function(t,e){O.elementMousemove({e:d3.event})})}),a.append("rect").attr("class","nv-boxplot-box").on("mouseover",function(t,e){d3.select(this).classed("hover",!0),O.elementMouseover({key:b(t),value:b(t),series:[{key:"Q3",value:x(t),color:$(t)||M(t,e)},{key:"Q2",value:w(t),color:$(t)||M(t,e)},{key:"Q1",value:_(t),color:$(t)||M(t,e)}],data:t,index:e,e:d3.event})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),O.elementMouseout({key:b(t),value:b(t),series:[{key:"Q3",value:x(t),color:$(t)||M(t,e)},{key:"Q2",value:w(t),color:$(t)||M(t,e)},{key:"Q1",value:_(t),color:$(t)||M(t,e)}],data:t,index:e,e:d3.event})}).on("mousemove",function(t,e){O.elementMousemove({e:d3.event})}),o.select("rect.nv-boxplot-box").watchTransition(R,"nv-boxplot: boxes").attr("y",function(t,e){return y(x(t))}).attr("width",l).attr("x",e).attr("height",function(t,e){return Math.abs(y(x(t))-y(_(t)))||1}).style("fill",function(t,e){return $(t)||M(t,e)}).style("stroke",function(t,e){return $(t)||M(t,e)}),a.append("line").attr("class","nv-boxplot-median"),o.select("line.nv-boxplot-median").watchTransition(R,"nv-boxplot: boxplots line").attr("x1",e).attr("y1",function(t,e){return y(w(t))}).attr("x2",r).attr("y2",function(t,e){return y(w(t))}),o.selectAll(".nv-boxplot-outlier").data(function(t){return S(t)||[]}));i.enter().append("circle").style("fill",function(t,e,n){return D(t,e,n)||M(t,n)}).style("stroke",function(t,e,n){return D(t,e,n)||M(t,n)}).style("z-index",9e3).on("mouseover",function(t,e,n){d3.select(this).classed("hover",!0),O.elementMouseover({series:{key:T(t,e,n),color:D(t,e,n)||M(t,n)},e:d3.event})}).on("mouseout",function(t,e,n){d3.select(this).classed("hover",!1),O.elementMouseout({series:{key:T(t,e,n),color:D(t,e,n)||M(t,n)},e:d3.event})}).on("mousemove",function(t,e){O.elementMousemove({e:d3.event})}),i.attr("class","nv-boxplot-outlier"),i.watchTransition(R,"nv-boxplot: nv-boxplot-outlier").attr("cx",.45*v.rangeBand()).attr("cy",function(t,e,n){return y(E(t,e,n))}).attr("r","3"),i.exit().remove(),v.copy(),p=y.copy()}),R.renderEnd("nv-boxplot immediate"),n}return n.dispatch=O,n.options=lt.utils.optionsFunc.bind(n),n._options=Object.create({},{width:{get:function(){return m},set:function(t){m=t}},height:{get:function(){return g},set:function(t){g=t}},maxBoxWidth:{get:function(){return P},set:function(t){P=t}},x:{get:function(){return b},set:function(t){b=t}},q1:{get:function(){return _},set:function(t){_=t}},q2:{get:function(){return w},set:function(t){w=t}},q3:{get:function(){return x},set:function(t){x=t}},wl:{get:function(){return C},set:function(t){C=t}},wh:{get:function(){return k},set:function(t){k=t}},itemColor:{get:function(){return $},set:function(t){$=t}},outliers:{get:function(){return S},set:function(t){S=t}},outlierValue:{get:function(){return E},set:function(t){E=t}},outlierLabel:{get:function(){return T},set:function(t){T=t}},outlierColor:{get:function(){return D},set:function(t){D=t}},xScale:{get:function(){return v},set:function(t){v=t}},yScale:{get:function(){return y},set:function(t){y=t}},xDomain:{get:function(){return u},set:function(t){u=t}},yDomain:{get:function(){return h},set:function(t){h=t}},xRange:{get:function(){return c},set:function(t){c=t}},yRange:{get:function(){return d}
1,set:function(t){d=t}},id:{get:function(){return e},set:function(t){e=t}},y:{get:function(){return console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead."),{}},set:function(t){console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead.")}},margin:{get:function(){return f},set:function(t){f.top=(void 0!==t.top?t:f).top,f.right=(void 0!==t.right?t:f).right,f.bottom=(void 0!==t.bottom?t:f).bottom,f.left=(void 0!==t.left?t:f).left}},color:{get:function(){return M},set:function(t){M=lt.utils.getColor(t)}},duration:{get:function(){return N},set:function(t){N=t,R.reset(N)}}}),lt.utils.initOptions(n),n},lt.models.boxPlotChart=function(){"use strict";var a,l,u=lt.models.boxPlot(),c=lt.models.axis(),h=lt.models.axis(),d={top:15,right:10,bottom:50,left:60},p=null,f=null,e=lt.utils.getColor(),m=!0,g=!0,v=!1,y=!1,n=lt.models.tooltip(),b="No Data Available.",_=d3.dispatch("beforeUpdate","renderEnd"),w=250,i=(c.orient("bottom").showMaxMin(!1).tickFormat(function(t){return t}),h.orient(v?"right":"left").tickFormat(d3.format(",.1f")),n.duration(0),lt.utils.renderWatch(_,w));function x(t){return i.reset(),i.models(u),m&&i.models(c),g&&i.models(h),t.each(function(t){var e=d3.select(this),n=(lt.utils.initSVG(e),(p||parseInt(e.style("width"))||960)-d.left-d.right),i=(f||parseInt(e.style("height"))||400)-d.top-d.bottom;if(x.update=function(){_.beforeUpdate(),e.transition().duration(w).call(x)},x.container=this,!t||!t.length)return(r=e.selectAll(".nv-noData").data([b])).enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),r.attr("x",d.left+n/2).attr("y",d.top+i/2).text(function(t){return t}),x;e.selectAll(".nv-noData").remove(),a=u.xScale(),l=u.yScale().clamp(!0);var r=e.selectAll("g.nv-wrap.nv-boxPlotWithAxes").data([t]),o=r.enter().append("g").attr("class","nvd3 nv-wrap nv-boxPlotWithAxes").append("g"),s=o.append("defs"),r=r.select("g");o.append("g").attr("class","nv-x nv-axis"),o.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),o.append("g").attr("class","nv-barsWrap"),r.attr("transform","translate("+d.left+","+d.top+")"),v&&r.select(".nv-y.nv-axis").attr("transform","translate("+n+",0)"),u.width(n).height(i),r.select(".nv-barsWrap").datum(t.filter(function(t){return!t.disabled})).transition().call(u),s.append("clipPath").attr("id","nv-x-label-clip-"+u.id()).append("rect"),r.select("#nv-x-label-clip-"+u.id()+" rect").attr("width",a.rangeBand()*(y?2:1)).attr("height",16).attr("x",-a.rangeBand()/(y?1:2)),m&&(c.scale(a).ticks(lt.utils.calcTicksX(n/100,t)).tickSize(-i,0),r.select(".nv-x.nv-axis").attr("transform","translate(0,"+l.range()[0]+")"),r.select(".nv-x.nv-axis").call(c),o=r.select(".nv-x.nv-axis").selectAll("g"),y)&&o.selectAll("text").attr("transform",function(t,e,n){return"translate(0,"+(n%2==0?"5":"17")+")"}),g&&(h.scale(l).ticks(Math.floor(i/36)).tickSize(-n,0),r.select(".nv-y.nv-axis").call(h)),r.select(".nv-zeroLine line").attr("x1",0).attr("x2",n).attr("y1",l(0)).attr("y2",l(0))}),i.renderEnd("nv-boxplot chart immediate"),x}return u.dispatch.on("elementMouseover.tooltip",function(t){n.data(t).hidden(!1)}),u.dispatch.on("elementMouseout.tooltip",function(t){n.data(t).hidden(!0)}),u.dispatch.on("elementMousemove.tooltip",function(t){n()}),x.dispatch=_,x.boxplot=u,x.xAxis=c,x.yAxis=h,x.tooltip=n,x.options=lt.utils.optionsFunc.bind(x),x._options=Object.create({},{width:{get:function(){return p},set:function(t){p=t}},height:{get:function(){return f},set:function(t){f=t}},staggerLabels:{get:function(){return y},set:function(t){y=t}},showXAxis:{get:function(){return m},set:function(t){m=t}},showYAxis:{get:function(){return g},set:function(t){g=t}},tooltipContent:{get:function(){return n},set:function(t){n=t}},noData:{get:function(){return b},set:function(t){b=t}},margin:{get:function(){return d},set:function(t){d.top=(void 0!==t.top?t:d).top,d.right=(void 0!==t.right?t:d).right,d.bottom=(void 0!==t.bottom?t:d).bottom,d.left=(void 0!==t.left?t:d).left}},duration:{get:function(){return w},set:function(t){w=t,i.reset(w),u.duration(w),c.duration(w),h.duration(w)}},color:{get:function(){return e},set:function(t){e=lt.utils.getColor(t),u.color(e)}},rightAlignYAxis:{get:function(){return v},set:function(t){v=t,h.orient(t?"right":"left")}}}),lt.utils.inheritOptions(x,u),lt.utils.initOptions(x),x},lt.models.bullet=function(){"use strict";var v={top:0,right:0,bottom:0,left:0},e="left",y=!1,b=function(t){return t.ranges},_=function(t){return t.markers||[]},w=function(t){return t.measures},x=[0],C=380,k=30,$=null,n=null,S=lt.utils.getColor(["#1f77b4"]),E=d3.dispatch("elementMouseover","elementMouseout","elementMousemove"),T=["Maximum","Mean","Minimum"],D=["Max","Avg","Min"];function M(t,n){var i=t.slice();t.sort(function(t,e){t=i.indexOf(t),e=i.indexOf(e);
1return d3.descending(n[t],n[e])})}function i(t){return t.each(function(t,e){for(var n=C-v.left-v.right,i=k-v.top-v.bottom,r=($=d3.select(this),lt.utils.initSVG($),b.call(this,t,e).slice()),o=_.call(this,t,e).slice(),s=w.call(this,t,e).slice(),a=function(t){return t.rangeLabels||[]}.call(this,t,e).slice(),l=function(t){return t.markerLabels||[]}.call(this,t,e).slice(),u=function(t){return t.measureLabels||[]}.call(this,t,e).slice(),c=(M(a,r),M(l,o),M(u,s),r.sort(d3.descending),o.sort(d3.descending),s.sort(d3.descending),d3.scale.linear().domain(d3.extent(d3.merge([x,r]))).range(y?[n,0]:[0,n])),n=(this.__chart__||d3.scale.linear().domain([0,1/0]).range(c.range()),this.__chart__=c,d3.min(r),d3.max(r),r[1],$.selectAll("g.nv-wrap.nv-bullet").data([t])),h=n.enter().append("g").attr("class","nvd3 nv-wrap nv-bullet").append("g"),d=n.select("g"),e=0,p=r.length;e<p;e++){var f="nv-range nv-range"+e;e<=2&&(f=f+" nv-range"+D[e]),h.append("rect").attr("class",f)}h.append("rect").attr("class","nv-measure"),n.attr("transform","translate("+v.left+","+v.top+")");for(var m=function(t){return c(t<0?t:0)},e=0,p=r.length;e<p;e++){var g=r[e];d.select("rect.nv-range"+e).attr("height",i).attr("width",Math.abs(c(g)-c(0))).attr("x",m(g)).datum(g)}d.select("rect.nv-measure").style("fill",S).attr("height",i/3).attr("y",i/3).attr("width",s<0?c(0)-c(s[0]):c(s[0])-c(0)).attr("x",m(s)).on("mouseover",function(){E.elementMouseover({value:s[0],label:u[0]||"Current",color:d3.select(this).style("fill")})}).on("mousemove",function(){E.elementMousemove({value:s[0],label:u[0]||"Current",color:d3.select(this).style("fill")})}).on("mouseout",function(){E.elementMouseout({value:s[0],label:u[0]||"Current",color:d3.select(this).style("fill")})});t=i/6,o=o.map(function(t,e){return{value:t,label:l[e]}});h.selectAll("path.nv-markerTriangle").data(o).enter().append("path").attr("class","nv-markerTriangle").attr("d","M0,"+t+"L"+t+","+-t+" "+-t+","+-t+"Z").on("mouseover",function(t){E.elementMouseover({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill"),pos:[c(t.value),i/2]})}).on("mousemove",function(t){E.elementMousemove({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){E.elementMouseout({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill")})}),d.selectAll("path.nv-markerTriangle").data(o).attr("transform",function(t){return"translate("+c(t.value)+","+i/2+")"}),n.selectAll(".nv-range").on("mouseover",function(t,e){e=a[e]||T[e];E.elementMouseover({value:t,label:e,color:d3.select(this).style("fill")})}).on("mousemove",function(){E.elementMousemove({value:s[0],label:u[0]||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){e=a[e]||T[e];E.elementMouseout({value:t,label:e,color:d3.select(this).style("fill")})})}),i}return i.dispatch=E,i.options=lt.utils.optionsFunc.bind(i),i._options=Object.create({},{ranges:{get:function(){return b},set:function(t){b=t}},markers:{get:function(){return _},set:function(t){_=t}},measures:{get:function(){return w},set:function(t){w=t}},forceX:{get:function(){return x},set:function(t){x=t}},width:{get:function(){return C},set:function(t){C=t}},height:{get:function(){return k},set:function(t){k=t}},tickFormat:{get:function(){return n},set:function(t){n=t}},margin:{get:function(){return v},set:function(t){v.top=(void 0!==t.top?t:v).top,v.right=(void 0!==t.right?t:v).right,v.bottom=(void 0!==t.bottom?t:v).bottom,v.left=(void 0!==t.left?t:v).left}},orient:{get:function(){return e},set:function(t){y="right"==(e=t)||"bottom"==e}},color:{get:function(){return S},set:function(t){S=lt.utils.getColor(t)}}}),lt.utils.initOptions(i),i},lt.models.bulletChart=function(){"use strict";var d=lt.models.bullet(),e=lt.models.tooltip(),n="left",p=!1,f={top:5,right:40,bottom:20,left:120},m=function(t){return t.ranges},g=function(t){return t.markers||[]},v=function(t){return t.measures},y=null,b=55,_=null,w=null,i=null,t=d3.dispatch();function x(h){return h.each(function(t,e){var n=d3.select(this),i=(lt.utils.initSVG(n),lt.utils.availableWidth(y,n,f)),r=b-f.top-f.bottom;if(x.update=function(){x(h)},x.container=this,!t||!m.call(this,t,e))return lt.utils.noData(x,n),x;n.selectAll(".nv-noData").remove();var o=m.call(this,t,e).slice().sort(d3.descending),s=g.call(this,t,e).slice().sort(d3.descending),e=v.call(this,t,e).slice().sort(d3.descending),n=n.selectAll("g.nv-wrap.nv-bulletChart").data([t]),t=n.enter().append("g").attr("class","nvd3 nv-wrap nv-bulletChart").append("g"),a=n.select("g"),l=(t.append("g").attr("class","nv-bulletWrap"),t.append("g").attr("class","nv-titles"),n.attr("transform","translate("+f.left+","+f.top+")"),d3.scale.linear().domain([0,Math.max(o[0],s[0]||0,e[0])]).range(p?[i,0]:[0,i])),u=this.__chart__||d3.scale.linear().domain([0,1/0]).range(l.range()),n=(this.__chart__=l,t.select(".nv-titles").append("g").attr("text-anchor","end").attr("transform","translate(-6,"+(b-f.top-f.bottom)/2+")")),o=(n.append("text").attr("class","nv-title").text(function(t){return t.title}),n.append("text").attr("class","nv-subtitle").attr("dy","1em").text(function(t){return t.subtitle}),d.width(i).height(r),a.select(".nv-bulletWrap")),c=(d3.transition(o).call(d),_||l.tickFormat(i/100)),s=a.selectAll("g.nv-tick").data(l.ticks(w||i/50),function(t){return this.textContent||c(t)}),e=s.enter().append("g").attr("class","nv-tick").attr("transform",function(t){return"translate("+u(t)+",0)"}).style("opacity",1e-6),t=(e.append("line").attr("y1",r).attr("y2",7*r/6),e.append("text").attr("text-anchor","middle").attr("dy","1em").attr("y",7*r/6).text(c),d3.transition(s).attr("transform",function(t){return"translate("+l(t)+",0)"}).style("opacity",1));t.select("line").attr("y1",r).attr("y2",7*r/6),t.select("text").attr("y",7*r/6),d3.transition(s.exit()).attr("transform",function(t){return"translate("+l(t)+",0)"}).style("opacity",1e-6).remove()}),d3.timer.flush(),x}return e.duration(0).headerEnabled(!1),d.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:t.label,value:t.value,color:t.color},e.data(t).hidden(!1)}),d.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),d.dispatch.on("elementMousemove.tooltip",function(t){e()}),x.bullet=d,x.dispatch=t,x.tooltip=e,x.options=lt.utils.optionsFunc.bind(x),x._options=Object.create({},{ranges:{get:function(){return m},set:function(t){m=t}},markers:{get:function(){return g},set:function(t){g=t}},measures:{get:function(){return v},set:function(t){v=t}},width:{get:function(){return y},set:function(t){y=t}},height:{get:function(){return b},set:function(t){b=t}},tickFormat:{get:function(){return _},set:function(t){_=t}},ticks:{get:function(){return w},set:function(t){w=t}},noData:{get:function(){return i},set:function(t){i=t}},margin:{get:function(){return f},set:function(t){f.top=(void 0!==t.top?t:f).top,f.right=(void 0!==t.right?t:f).right,f.bottom=(void 0!==t.bottom?t:f).bottom,f.left=(void 0!==t.left?t:f).left}},orient:{get:function(){return n},set:function(t){p="right"==(n=t)||"bottom"==n}}}),lt.utils.inheritOptions(x,d),lt.utils.initOptions(x),x},lt.models.candlestickBar=function(){"use strict";var a,l,u,c,h,d={top:0,right:0,bottom:0,left:0},p=null,f=null,m=Math.floor(1e4*Math.random()),g=d3.scale.linear(),v=d3.scale.linear(),y=function(t){return t.x},b=function(t){return t.y},_=function(t){return t.open},w=function(t){return t.close},x=function(t){return t.high},C=function(t){return t.low}
vendor: 4,245 bytes, line 1
1,k=[],$=[],S=!1,E=!0,e=lt.utils.defaultColor(),n=!1,T=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function i(t){return t.each(function(t){a=d3.select(this);var e=lt.utils.availableWidth(p,a,d),n=lt.utils.availableHeight(f,a,d),i=(lt.utils.initSVG(a),e/t[0].values.length*.45),t=(g.domain(l||d3.extent(t[0].values.map(y).concat(k))),S?g.range(c||[.5*e/t[0].values.length,e*(t[0].values.length-.5)/t[0].values.length]):g.range(c||[5+i/2,e-i/2-5]),v.domain(u||[d3.min(t[0].values.map(C).concat($)),d3.max(t[0].values.map(x).concat($))]).range(h||[n,0]),g.domain()[0]===g.domain()[1]&&(g.domain()[0]?g.domain([g.domain()[0]-.01*g.domain()[0],g.domain()[1]+.01*g.domain()[1]]):g.domain([-1,1])),v.domain()[0]===v.domain()[1]&&(v.domain()[0]?v.domain([v.domain()[0]+.01*v.domain()[0],v.domain()[1]-.01*v.domain()[1]]):v.domain([-1,1])),d3.select(this).selectAll("g.nv-wrap.nv-candlestickBar").data([t[0].values])),r=t.enter().append("g").attr("class","nvd3 nv-wrap nv-candlestickBar"),o=r.append("defs"),r=r.append("g"),s=t.select("g"),r=(r.append("g").attr("class","nv-ticks"),t.attr("transform","translate("+d.left+","+d.top+")"),a.on("click",function(t,e){T.chartClick({data:t,index:e,pos:d3.event,id:m})}),o.append("clipPath").attr("id","nv-chart-clip-path-"+m).append("rect"),t.select("#nv-chart-clip-path-"+m+" rect").attr("width",e).attr("height",n),s.attr("clip-path",E?"url(#nv-chart-clip-path-"+m+")":""),t.select(".nv-ticks").selectAll(".nv-tick").data(function(t){return t})),o=(r.exit().remove(),r.enter().append("g"));r.attr("class",function(t,e,n){return(_(t,e)>w(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e}),o.append("line").attr("class","nv-candlestick-lines").attr("transform",function(t,e){return"translate("+g(y(t,e))+",0)"}).attr("x1",0).attr("y1",function(t,e){return v(x(t,e))}).attr("x2",0).attr("y2",function(t,e){return v(C(t,e))}),o.append("rect").attr("class","nv-candlestick-rects nv-bars").attr("transform",function(t,e){return"translate("+(g(y(t,e))-i/2)+","+(v(b(t,e))-(_(t,e)>w(t,e)?v(w(t,e))-v(_(t,e)):0))+")"}).attr("x",0).attr("y",0).attr("width",i).attr("height",function(t,e){var n=_(t,e),t=w(t,e);return t<n?v(t)-v(n):v(n)-v(t)});r.select(".nv-candlestick-lines").transition().attr("transform",function(t,e){return"translate("+g(y(t,e))+",0)"}).attr("x1",0).attr("y1",function(t,e){return v(x(t,e))}).attr("x2",0).attr("y2",function(t,e){return v(C(t,e))}),r.select(".nv-candlestick-rects").transition().attr("transform",function(t,e){return"translate("+(g(y(t,e))-i/2)+","+(v(b(t,e))-(_(t,e)>w(t,e)?v(w(t,e))-v(_(t,e)):0))+")"}).attr("x",0).attr("y",0).attr("width",i).attr("height",function(t,e){var n=_(t,e),t=w(t,e);return t<n?v(t)-v(n):v(n)-v(t)})}),i}return i.highlightPoint=function(t,e){i.clearHighlights(),a.select(".nv-candlestickBar .nv-tick-0-"+t).classed("hover",e)},i.clearHighlights=function(){a.select(".nv-candlestickBar .nv-tick.hover").classed("hover",!1)},i.dispatch=T,i.options=lt.utils.optionsFunc.bind(i),i._options=Object.create({},{width:{get:function(){return p},set:function(t){p=t}},height:{get:function(){return f},set:function(t){f=t}},xScale:{get:function(){return g},set:function(t){g=t}},yScale:{get:function(){return v},set:function(t){v=t}},xDomain:{get:function(){return l},set:function(t){l=t}},yDomain:{get:function(){return u},set:function(t){u=t}},xRange:{get:function(){return c},set:function(t){c=t}},yRange:{get:function(){return h},set:function(t){h=t}},forceX:{get:function(){return k},set:function(t){k=t}},forceY:{get:function(){return $},set:function(t){$=t}},padData:{get:function(){return S},set:function(t){S=t}},clipEdge:{get:function(){return E},set:function(t){E=t}},id:{get:function(){return m},set:function(t){m=t}},interactive:{get:function(){return n},set:function(t){n=t}},x:{get:function(){return y},set:function(t){y=t}},y:{get:function(){return b},set:function(t){b=t}},open:{get:function(){return _()},set:function(t){_=t}},close:{get:function(){return w()},set:function(t){w=t}},high:{get:function(){return x},set:function(t){x=t}},low:{get:function(){return C},set:function(t){C=t}},margin:{get:function(){return d}
1,set:function(t){d.top=(null!=t.top?t:d).top,d.right=(null!=t.right?t:d).right,d.bottom=(null!=t.bottom?t:d).bottom,d.left=(null!=t.left?t:d).left}},color:{get:function(){return e},set:function(t){e=lt.utils.getColor(t)}}}),lt.utils.initOptions(i),i},lt.models.cumulativeLineChart=function(){"use strict";var g,v,y=lt.models.line(),b=lt.models.axis(),_=lt.models.axis(),w=lt.models.legend(),x=lt.models.legend(),C=lt.interactiveGuideline(),n=lt.models.tooltip(),k={top:30,right:30,bottom:50,left:60},$=lt.utils.defaultColor(),S=null,E=null,T=!0,D=!0,M=!0,A=!1,O=!0,N=!1,P=!0,R=y.id(),I=lt.utils.state(),L=null,e=null,H=function(t){return t.average},F=d3.dispatch("stateChange","changeState","renderEnd"),z=250,V=!1,j=(I.index=0,I.rescaleY=P,b.orient("bottom").tickPadding(7),_.orient(A?"right":"left"),n.valueFormatter(function(t,e){return _.tickFormat()(t,e)}).headerFormatter(function(t,e){return b.tickFormat()(t,e)}),x.updateState(!1),d3.scale.linear()),W={i:0,x:0},i=lt.utils.renderWatch(F,z);function B(t){return i.reset(),i.models(y),D&&i.models(b),M&&i.models(_),t.each(function(a){var t,e,n,i=d3.select(this),l=(lt.utils.initSVG(i),i.classed("nv-chart-"+R,!0),this),r=lt.utils.availableWidth(S,i,k),o=lt.utils.availableHeight(E,i,k);if(B.update=function(){(0===z?i:i.transition().duration(z)).call(B)},B.container=this,I.setter((e=a,function(n){void 0!==n.index&&(W.i=n.index),void 0!==n.rescaleY&&(P=n.rescaleY),void 0!==n.active&&e.forEach(function(t,e){t.disabled=!n.active[e]})}),B.update).getter((t=a,function(){return{active:t.map(function(t){return!t.disabled}),index:W.i,rescaleY:P}})).update(),I.disabled=a.map(function(t){return!!t.disabled}),!L)for(n in L={},I)I[n]instanceof Array?L[n]=I[n].slice(0):L[n]=I[n];var s=d3.behavior.drag().on("dragstart",function(t,e){d3.select(B.container).style("cursor","ew-resize")}).on("drag",function(t,e){W.x=d3.event.x,W.i=Math.round(j.invert(W.x)),m()}).on("dragend",function(t,e){d3.select(B.container).style("cursor","auto"),I.index=W.i,F.stateChange(I)});if(!(a&&a.length&&a.filter(function(t){return t.values.length}).length))return lt.utils.noData(B,i),B;i.selectAll(".nv-noData").remove(),g=y.xScale(),v=y.yScale(),P?y.yDomain(null):(c=a.filter(function(t){return!t.disabled}).map(function(t,e){t=d3.extent(t.values,y.y());return t[0]<-.95&&(t[0]=-.95),[(t[0]-t[1])/(1+t[1]),(t[1]-t[0])/(1+t[0])]}),c=[d3.min(c,function(t){return t[0]}),d3.max(c,function(t){return t[1]})],y.yDomain(c)),j.domain([0,a[0].values.length-1]).range([0,r]).clamp(!0);function u(t){return(t=v(H(t)))<0?0:o<t?o:t}var a=function(r,t){q=q||y.y();return t.map(function(t,e){var n,i;return t.values&&null!=(n=t.values[r])&&((i=q(n,r))<-.95&&!V?t.tempDisabled=!0:(t.tempDisabled=!1,t.values=t.values.map(function(t,e){return t.display={y:(q(t,e)-i)/(1+i)},t}))),t})}(W.i,a),c=N?"none":"all",h=i.selectAll("g.nv-wrap.nv-cumulativeLine").data([a]),d=h.enter().append("g").attr("class","nvd3 nv-wrap nv-cumulativeLine").append("g"),p=h.select("g"),c=(d.append("g").attr("class","nv-interactive"),d.append("g").attr("class","nv-x nv-axis").style("pointer-events","none"),d.append("g").attr("class","nv-y nv-axis"),d.append("g").attr("class","nv-background"),d.append("g").attr("class","nv-linesWrap").style("pointer-events",c),d.append("g").attr("class","nv-avgLinesWrap").style("pointer-events","none"),d.append("g").attr("class","nv-legendWrap"),d.append("g").attr("class","nv-controlsWrap"),T?(w.width(r),p.select(".nv-legendWrap").datum(a).call(w),k.top!=w.height()&&(k.top=w.height(),o=lt.utils.availableHeight(E,i,k)),p.select(".nv-legendWrap").attr("transform","translate(0,"+-k.top+")")):p.select(".nv-legendWrap").selectAll("*").remove(),O?(c=[{key:"Re-scale y-axis",disabled:!P}],x.width(140).color(["#444","#444","#444"]).rightAlign(!1).margin({top:5,right:0,bottom:5,left:20}),p.select(".nv-controlsWrap").datum(c).attr("transform","translate(0,"+-k.top+")").call(x)):p.select(".nv-controlsWrap").selectAll("*").remove(),h.attr("transform","translate("+k.left+","+k.top+")"),A&&p.select(".nv-y.nv-axis").attr("transform","translate("+r+",0)"),a.filter(function(t){return t.tempDisabled})),c=(h.select(".tempDisabled").remove(),c.length&&h.append("text").attr("class","tempDisabled").attr("x",r/2).attr("y","-.71em").style("text-anchor","end").text(c.map(function(t){return t.key}).join(", ")+" values cannot be calculated for this time period."),N&&(C.width(r).height(o).margin({left:k.left,top:k.top}).svgContainer(i).xScale(g),h.select(".nv-interactive").call(C)),d.select(".nv-background").append("rect"),p.select(".nv-background rect").attr("width",r).attr("height",o),y.y(function(t){return t.display.y}).width(r).height(o).color(a.map(function(t,e){return t.color||$(t,e)}).filter(function(t,e){return!a[e].disabled&&!a[e].tempDisabled})),p.select(".nv-linesWrap").datum(a.filter(function(t){return!t.disabled&&!t.tempDisabled}))),h=(c.call(y),a.forEach(function(t,e){t.seriesIndex=e}),a.filter(function(t){return!t.disabled&&!!H(t)})),d=p.select(".nv-avgLinesWrap").selectAll("line").data(h,function(t){return t.key}),f=(d.enter().append("line").style("stroke-width",2).style("stroke-dasharray","10,10").style("stroke",function(t,e){return y.color()(t,t.seriesIndex)}).attr("x1",0).attr("x2",r).attr("y1",u).attr("y2",u),d.style("stroke-opacity",function(t){t=v(H(t));return t<0||o<t?0:1}).attr("x1",0).attr("x2",r).attr("y1",u).attr("y2",u),d.exit().remove(),c.selectAll(".nv-indexLine").data([W]));function m(){f.data([W]);var t=B.duration();B.duration(0),B.update(),B.duration(t)}f.enter().append("rect").attr("class","nv-indexLine").attr("width",3).attr("x",-2).attr("fill","red").attr("fill-opacity",.5).style("pointer-events","all").call(s),f.attr("transform",function(t){return"translate("+j(t.i)+",0)"}).attr("height",o),D&&(b.scale(g)._ticks(lt.utils.calcTicksX(r/70,a)).tickSize(-o,0),p.select(".nv-x.nv-axis").attr("transform","translate(0,"+v.range()[0]+")"),p.select(".nv-x.nv-axis").call(b)),M&&(_.scale(v)._ticks(lt.utils.calcTicksY(o/36,a)).tickSize(-r,0),p.select(".nv-y.nv-axis").call(_)),p.select(".nv-background rect").on("click",function(){W.x=d3.mouse(this)[0],W.i=Math.round(j.invert(W.x)),I.index=W.i,F.stateChange(I),m()}),y.dispatch.on("elementClick",function(t){W.i=t.pointIndex,W.x=j(W.i),I.index=W.i,F.stateChange(I),m()}),x.dispatch.on("legendClick",function(t,e){t.disabled=!t.disabled,P=!t.disabled,I.rescaleY=P,F.stateChange(I),B.update()}),w.dispatch.on("stateChange",function(t){for(var e in t)I[e]=t[e];F.stateChange(I),B.update()}),C.dispatch.on("elementMousemove",function(n){y.clearHighlights();var i,r,o,t,s=[],e=(a.filter(function(t,e){return t.seriesIndex=e,!t.disabled}
1).forEach(function(t,e){r=lt.interactiveBisect(t.values,n.pointXValue,B.x()),y.highlightPoint(e,r,!0);e=t.values[r];void 0!==e&&(void 0===i&&(i=e),void 0===o&&(o=B.xScale()(B.x()(e,r))),s.push({key:t.key,value:B.y()(e,r),color:$(t,t.seriesIndex)}))}),2<s.length&&(t=B.yScale().invert(n.mouseY),e=.03*Math.abs(B.yScale().domain()[0]-B.yScale().domain()[1]),null!==(t=lt.nearestValueIndex(s.map(function(t){return t.value}),t,e)))&&(s[t].highlight=!0),b.tickFormat()(B.x()(i,r),r));C.tooltip.chartContainer(l.parentNode).valueFormatter(function(t,e){return _.tickFormat()(t)}).data({value:e,series:s})(),C.renderGuideLine(o)}),C.dispatch.on("elementMouseout",function(t){y.clearHighlights()}),F.on("changeState",function(n){void 0!==n.disabled&&(a.forEach(function(t,e){t.disabled=n.disabled[e]}),I.disabled=n.disabled),void 0!==n.index&&(W.i=n.index,W.x=j(W.i),I.index=n.index,f.data([W])),void 0!==n.rescaleY&&(P=n.rescaleY),B.update()})}),i.renderEnd("cumulativeLineChart immediate"),B}y.dispatch.on("elementMouseover.tooltip",function(t){var e={x:B.x()(t.point),y:B.y()(t.point),color:t.point.color};t.point=e,n.data(t).hidden(!1)}),y.dispatch.on("elementMouseout.tooltip",function(t){n.hidden(!0)});var q=null;return B.dispatch=F,B.lines=y,B.legend=w,B.controls=x,B.xAxis=b,B.yAxis=_,B.interactiveLayer=C,B.state=I,B.tooltip=n,B.options=lt.utils.optionsFunc.bind(B),B._options=Object.create({},{width:{get:function(){return S},set:function(t){S=t}},height:{get:function(){return E},set:function(t){E=t}},rescaleY:{get:function(){return P},set:function(t){P=t}},showControls:{get:function(){return O},set:function(t){O=t}},showLegend:{get:function(){return T},set:function(t){T=t}},average:{get:function(){return H},set:function(t){H=t}},defaultState:{get:function(){return L},set:function(t){L=t}},noData:{get:function(){return e},set:function(t){e=t}},showXAxis:{get:function(){return D},set:function(t){D=t}},showYAxis:{get:function(){return M},set:function(t){M=t}},noErrorCheck:{get:function(){return V},set:function(t){V=t}},margin:{get:function(){return k},set:function(t){k.top=(void 0!==t.top?t:k).top,k.right=(void 0!==t.right?t:k).right,k.bottom=(void 0!==t.bottom?t:k).bottom,k.left=(void 0!==t.left?t:k).left}},color:{get:function(){return $},set:function(t){$=lt.utils.getColor(t),w.color($)}},useInteractiveGuideline:{get:function(){return N},set:function(t){!0===(N=t)&&(B.interactive(!1),B.useVoronoi(!1))}},rightAlignYAxis:{get:function(){return A},set:function(t){A=t,_.orient(t?"right":"left")}},duration:{get:function(){return z},set:function(t){z=t,y.duration(z),b.duration(z),_.duration(z),i.reset(z)}}}),lt.utils.inheritOptions(B,y),lt.utils.initOptions(B),B},lt.models.discreteBar=function(){"use strict";var r,o,s,a,l,u,c={top:0,right:0,bottom:0,left:0},h=960,d=500,e=Math.floor(1e4*Math.random()),p=d3.scale.ordinal(),f=d3.scale.linear(),m=function(t){return t.x},g=function(t){return t.y},v=[0],y=lt.utils.defaultColor(),b=!1,_=d3.format(",.2f"),w=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),x="discreteBar",n=250,C=lt.utils.renderWatch(w,n);function i(t){return C.reset(),t.each(function(t){var e=h-c.left-c.right,n=d-c.top-c.bottom,i=(r=d3.select(this),lt.utils.initSVG(r),t.forEach(function(t,e){t.values.forEach(function(t){t.series=e})}),o&&s?[]:t.map(function(t){return t.values.map(function(t,e){return{x:m(t,e),y:g(t,e),y0:t.y0}})})),e=(p.domain(o||d3.merge(i).map(function(t){return t.x})).rangeBands(a||[0,e],.1),f.domain(s||d3.extent(d3.merge(i).map(function(t){return t.y}).concat(v))),b?f.range(l||[n-(f.domain()[0]<0?12:0),0<f.domain()[1]?12:0]):f.range(l||[n,0]),u=u||f.copy().range([f(0),f(0)]),r.selectAll("g.nv-wrap.nv-discretebar").data([t])),i=e.enter().append("g").attr("class","nvd3 nv-wrap nv-discretebar").append("g"),n=(e.select("g"),i.append("g").attr("class","nv-groups"),e.attr("transform","translate("+c.left+","+c.top+")"),e.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key})),i=(n.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),n.exit().watchTransition(C,"discreteBar: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),n.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}),n.watchTransition(C,"discreteBar: groups").style("stroke-opacity",1).style("fill-opacity",.75),n.selectAll("g.nv-bar").data(function(t){return t.values})),e=(i.exit().remove(),i.enter().append("g").attr("transform",function(t,e,n){return"translate("+(p(m(t,e))+.05*p.rangeBand())+", "+f(0)+")"}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0),w.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),w.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){w.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){w.elementClick({data:t,index:e,color:d3.select(this).style("fill"),event:d3.event,element:this}),d3.event.stopPropagation()}).on("dblclick",function(t,e){w.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}));e.append("rect").attr("height",0).attr("width",.9*p.rangeBand()/t.length),b?(e.append("text").attr("text-anchor","middle"),i.select("text").text(function(t,e){return _(g(t,e))}).watchTransition(C,"discreteBar: bars text").attr("x",.9*p.rangeBand()/2).attr("y",function(t,e){return g(t,e)<0?f(g(t,e))-f(0)+12:-4})):i.selectAll("text").remove(),i.attr("class",function(t,e){return g(t,e)<0?"nv-bar negative":"nv-bar positive"}).style("fill",function(t,e){return t.color||y(t,e)}).style("stroke",function(t,e){return t.color||y(t,e)}).select("rect").attr("class",x).watchTransition(C,"discreteBar: bars rect").attr("width",.9*p.rangeBand()/t.length),i.watchTransition(C,"discreteBar: bars").attr("transform",function(t,e){return"translate("+(p(m(t,e))+.05*p.rangeBand())+", "+(g(t,e)<0?f(0):f(0)-f(g(t,e))<1?f(0)-1:f(g(t,e)))+")"}).select("rect").attr("height",function(t,e){return Math.max(Math.abs(f(g(t,e))-f(0)),1)}),p.copy(),u=f.copy()}),C.renderEnd("discreteBar immediate"),i}return i.dispatch=w,i.options=lt.utils.optionsFunc.bind(i),i._options=Object.create({},{width:{get:function(){return h},set:function(t){h=t}},height:{get:function(){return d}
vendor: 8,286 bytes, line 1
1,set:function(t){d=t}},forceY:{get:function(){return v},set:function(t){v=t}},showValues:{get:function(){return b},set:function(t){b=t}},x:{get:function(){return m},set:function(t){m=t}},y:{get:function(){return g},set:function(t){g=t}},xScale:{get:function(){return p},set:function(t){p=t}},yScale:{get:function(){return f},set:function(t){f=t}},xDomain:{get:function(){return o},set:function(t){o=t}},yDomain:{get:function(){return s},set:function(t){s=t}},xRange:{get:function(){return a},set:function(t){a=t}},yRange:{get:function(){return l},set:function(t){l=t}},valueFormat:{get:function(){return _},set:function(t){_=t}},id:{get:function(){return e},set:function(t){e=t}},rectClass:{get:function(){return x},set:function(t){x=t}},margin:{get:function(){return c},set:function(t){c.top=(void 0!==t.top?t:c).top,c.right=(void 0!==t.right?t:c).right,c.bottom=(void 0!==t.bottom?t:c).bottom,c.left=(void 0!==t.left?t:c).left}},color:{get:function(){return y},set:function(t){y=lt.utils.getColor(t)}},duration:{get:function(){return n},set:function(t){n=t,C.reset(n)}}}),lt.utils.initOptions(i),i},lt.models.discreteBarChart=function(){"use strict";var l,u,c=lt.models.discreteBar(),h=lt.models.axis(),d=lt.models.axis(),p=lt.models.legend(),e=lt.models.tooltip(),f={top:15,right:10,bottom:50,left:60},m=null,g=null,n=lt.utils.getColor(),v=!1,y=!0,b=!0,_=!1,w=!1,x=!1,C=0,i=null,k=d3.dispatch("beforeUpdate","renderEnd"),$=250,r=(h.orient("bottom").showMaxMin(!1).tickFormat(function(t){return t}),d.orient(_?"right":"left").tickFormat(d3.format(",.1f")),e.duration(0).headerEnabled(!1).valueFormatter(function(t,e){return d.tickFormat()(t,e)}).keyFormatter(function(t,e){return h.tickFormat()(t,e)}),lt.utils.renderWatch(k,$));function S(t){return r.reset(),r.models(c),y&&r.models(h),b&&r.models(d),t.each(function(t){var e=d3.select(this),n=(lt.utils.initSVG(e),lt.utils.availableWidth(m,e,f)),i=lt.utils.availableHeight(g,e,f);if(S.update=function(){k.beforeUpdate(),e.transition().duration($).call(S)},S.container=this,!(t&&t.length&&t.filter(function(t){return t.values.length}).length))return lt.utils.noData(S,e),S;e.selectAll(".nv-noData").remove(),l=c.xScale(),u=c.yScale().clamp(!0);var r=e.selectAll("g.nv-wrap.nv-discreteBarWithAxes").data([t]),o=r.enter().append("g").attr("class","nvd3 nv-wrap nv-discreteBarWithAxes").append("g"),s=o.append("defs"),a=r.select("g");o.append("g").attr("class","nv-x nv-axis"),o.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),o.append("g").attr("class","nv-barsWrap"),o.append("g").attr("class","nv-legendWrap"),a.attr("transform","translate("+f.left+","+f.top+")"),v?(p.width(n),a.select(".nv-legendWrap").datum(t).call(p),f.top!=p.height()&&(f.top=p.height(),i=lt.utils.availableHeight(g,e,f)),r.select(".nv-legendWrap").attr("transform","translate(0,"+-f.top+")")):a.select(".nv-legendWrap").selectAll("*").remove(),_&&a.select(".nv-y.nv-axis").attr("transform","translate("+n+",0)"),c.width(n).height(i),a.select(".nv-barsWrap").datum(t.filter(function(t){return!t.disabled})).transition().call(c),s.append("clipPath").attr("id","nv-x-label-clip-"+c.id()).append("rect"),a.select("#nv-x-label-clip-"+c.id()+" rect").attr("width",l.rangeBand()*(w?2:1)).attr("height",16).attr("x",-l.rangeBand()/(w?1:2)),y&&(h.scale(l)._ticks(lt.utils.calcTicksX(n/100,t)).tickSize(-i,0),a.select(".nv-x.nv-axis").attr("transform","translate(0,"+(u.range()[0]+(c.showValues()&&u.domain()[0]<0?16:0))+")"),a.select(".nv-x.nv-axis").call(h),o=a.select(".nv-x.nv-axis").selectAll("g"),w&&o.selectAll("text").attr("transform",function(t,e,n){return"translate(0,"+(n%2==0?"5":"17")+")"}),C&&o.selectAll(".tick text").attr("transform","rotate("+C+" 0,0)").style("text-anchor",0<C?"start":"end"),x)&&a.selectAll(".tick text").call(lt.utils.wrapTicks,S.xAxis.rangeBand()),b&&(d.scale(u)._ticks(lt.utils.calcTicksY(i/36,t)).tickSize(-n,0),a.select(".nv-y.nv-axis").call(d)),a.select(".nv-zeroLine line").attr("x1",0).attr("x2",_?-n:n).attr("y1",u(0)).attr("y2",u(0))}),r.renderEnd("discreteBar chart immediate"),S}return c.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:S.x()(t.data),value:S.y()(t.data),color:t.color},e.data(t).hidden(!1)}),c.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),c.dispatch.on("elementMousemove.tooltip",function(t){e()}),S.dispatch=k,S.discretebar=c,S.legend=p,S.xAxis=h,S.yAxis=d,S.tooltip=e,S.options=lt.utils.optionsFunc.bind(S),S._options=Object.create({},{width:{get:function(){return m},set:function(t){m=t}},height:{get:function(){return g},set:function(t){g=t}},showLegend:{get:function(){return v},set:function(t){v=t}},staggerLabels:{get:function(){return w},set:function(t){w=t}},rotateLabels:{get:function(){return C},set:function(t){C=t}},wrapLabels:{get:function(){return x},set:function(t){x=!!t}},showXAxis:{get:function(){return y},set:function(t){y=t}},showYAxis:{get:function(){return b},set:function(t){b=t}},noData:{get:function(){return i},set:function(t){i=t}},margin:{get:function(){return f},set:function(t){f.top=(void 0!==t.top?t:f).top,f.right=(void 0!==t.right?t:f).right,f.bottom=(void 0!==t.bottom?t:f).bottom,f.left=(void 0!==t.left?t:f).left}},duration:{get:function(){return $},set:function(t){$=t,r.reset($),c.duration($),h.duration($),d.duration($)}},color:{get:function(){return n},set:function(t){n=lt.utils.getColor(t),c.color(n),p.color(n)}},rightAlignYAxis:{get:function(){return _},set:function(t){_=t,d.orient(t?"right":"left")}}}),lt.utils.inheritOptions(S,c),lt.utils.initOptions(S),S},lt.models.distribution=function(){"use strict";var i,r={top:0,right:0,bottom:0,left:0},e=400,o=8,s="x",a=function(t){return t[s]},l=lt.utils.defaultColor(),u=d3.scale.linear(),n=250,t=d3.dispatch("renderEnd"),c=lt.utils.renderWatch(t,n);function h(t){return c.reset(),t.each(function(t){"x"===s?(r.left,r.right):(r.top,r.bottom);var e="x"==s?"y":"x",n=d3.select(this),n=(lt.utils.initSVG(n),i=i||u,n.selectAll("g.nv-distribution").data([t])),t=(n.enter().append("g").attr("class","nvd3 nv-distribution").append("g"),n.select("g")),n=(n.attr("transform","translate("+r.left+","+r.top+")"),t.selectAll("g.nv-dist").data(function(t){return t},function(t){return t.key})),t=(n.enter().append("g"),n.attr("class",function(t,e){return"nv-dist nv-series-"+e}).style("stroke",function(t,e){return l(t,e)}),n.selectAll("line.nv-dist"+s).data(function(t){return t.values}));t.enter().append("line").attr(s+"1",function(t,e){return i(a(t,e))}).attr(s+"2",function(t,e){return i(a(t,e))}),c.transition(n.exit().selectAll("line.nv-dist"+s),"dist exit").attr(s+"1",function(t,e){return u(a(t,e))}).attr(s+"2",function(t,e){return u(a(t,e))}).style("stroke-opacity",0).remove(),t.attr("class",function(t,e){return"nv-dist"+s+" nv-dist"+s+"-"+e}).attr(e+"1",0).attr(e+"2",o),c.transition(t,"dist").attr(s+"1",function(t,e){return u(a(t,e))}).attr(s+"2",function(t,e){return u(a(t,e))}),i=u.copy()}),c.renderEnd("distribution immediate"),h}return h.options=lt.utils.optionsFunc.bind(h),h.dispatch=t,h.margin=function(t){return arguments.length?(r.top=(void 0!==t.top?t:r).top,r.right=(void 0!==t.right?t:r).right,r.bottom=(void 0!==t.bottom?t:r).bottom,r.left=(void 0!==t.left?t:r).left,h):r},h.width=function(t){return arguments.length?(e=t,h):e},h.axis=function(t){return arguments.length?(s=t,h):s},h.size=function(t){return arguments.length?(o=t,h):o},h.getData=function(t){return arguments.length?(a=d3.functor(t),h):a},h.scale=function(t){return arguments.length?(u=t,h):u},h.color=function(t){return arguments.length?(l=lt.utils.getColor(t),h):l},h.duration=function(t){return arguments.length?(n=t,c.reset(n),h):n},h},lt.models.forceDirectedGraph=function(){"use strict";var s={top:2,right:0,bottom:2,left:0},a=400,l=32,u=null,t=d3.dispatch("renderEnd"),c=lt.utils.getColor(["#000"]),h=lt.models.tooltip(),e=null,d=.1,p=.9,f=30,m=-120,g=.1,v=.8,y=.1,b=5,_=function(t){},w=function(t){},n=lt.utils.renderWatch(t);function x(t){return n.reset(),t.each(function(t){u=d3.select(this),lt.utils.initSVG(u);var e=lt.utils.availableWidth(a,u,s),n=lt.utils.availableHeight(l,u,s);if(u.attr("width",e).attr("height",n),!(t&&t.links&&t.nodes))return lt.utils.noData(x,u),x;u.selectAll(".nv-noData").remove(),u.selectAll("*").remove();
1var i=new Set,e=(t.nodes.forEach(function(t){Object.keys(t).forEach(function(t){i.add(t)})}),d3.layout.force().nodes(t.nodes).links(t.links).size([e,n]).linkStrength(d).friction(p).linkDistance(f).charge(m).gravity(g).theta(v).alpha(y).start()),r=u.selectAll(".link").data(t.links).enter().append("line").attr("class","nv-force-link").style("stroke-width",function(t){return Math.sqrt(t.value)}),o=u.selectAll(".node").data(t.nodes).enter().append("g").attr("class","nv-force-node").call(e.drag);o.append("circle").attr("r",b).style("fill",function(t){return c(t)}).on("mouseover",function(e){u.select(".nv-series-"+e.seriesIndex+" .nv-distx-"+e.pointIndex).attr("y1",e.py),u.select(".nv-series-"+e.seriesIndex+" .nv-disty-"+e.pointIndex).attr("x2",e.px);var n=c(e);e.series=[],i.forEach(function(t){e.series.push({color:n,key:t,value:e[t]})}),h.data(e).hidden(!1)}).on("mouseout",function(t){h.hidden(!0)}),h.headerFormatter(function(t){return"Node"}),w(r),_(o),e.on("tick",function(){r.attr("x1",function(t){return t.source.x}).attr("y1",function(t){return t.source.y}).attr("x2",function(t){return t.target.x}).attr("y2",function(t){return t.target.y}),o.attr("transform",function(t){return"translate("+t.x+", "+t.y+")"})})}),x}return x.options=lt.utils.optionsFunc.bind(x),x._options=Object.create({},{width:{get:function(){return a}
1,set:function(t){a=t}},height:{get:function(){return l},set:function(t){l=t}},linkStrength:{get:function(){return d},set:function(t){d=t}},friction:{get:function(){return p},set:function(t){p=t}},linkDist:{get:function(){return f},set:function(t){f=t}},charge:{get:function(){return m},set:function(t){m=t}},gravity:{get:function(){return g},set:function(t){g=t}},theta:{get:function(){return v},set:function(t){v=t}},alpha:{get:function(){return y},set:function(t){y=t}},radius:{get:function(){return b},set:function(t){b=t}},x:{get:function(){return getX},set:function(t){getX=d3.functor(t)}},y:{get:function(){return getY},set:function(t){getY=d3.functor(t)}},margin:{get:function(){return s},set:function(t){s.top=(void 0!==t.top?t:s).top,s.right=(void 0!==t.right?t:s).right,s.bottom=(void 0!==t.bottom?t:s).bottom,s.left=(void 0!==t.left?t:s).left}},color:{get:function(){return c},set:function(t){c=lt.utils.getColor(t)}},noData:{get:function(){return e},set:function(t){e=t}},nodeExtras:{get:function(){return _},set:function(t){_=t}},linkExtras:{get:function(){return w},set:function(t){w=t}}}),x.dispatch=t,x.tooltip=h,lt.utils.initOptions(x),x},lt.models.furiousLegend=function(){"use strict";var w={top:5,right:0,bottom:5,left:0},x=400,C=20,k=function(t){return t.key},$=lt.utils.getColor(),S=20,E=!0,T=28,D=!0,M=!0,A=!1,O=!1,N=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),P="classic";function e(t){function b(t,e){return"furious"!=P?"#000":O?t.disengaged?$(t,e):"#fff":t.disabled?$(t,e):"#fff"}function _(t,e){return O&&"furious"==P?t.disengaged?"#fff":$(t,e):t.disabled?"#fff":$(t,e)}return t.each(function(t){var e,i,n=x-w.left-w.right,r=d3.select(this),r=(lt.utils.initSVG(r),r.selectAll("g.nv-legend").data([t])),t=(r.enter().append("g").attr("class","nvd3 nv-legend").append("g"),r.select("g")),o=(r.attr("transform","translate("+w.left+","+w.top+")"),t.selectAll(".nv-series").data(function(t){return"furious"!=P?t:t.filter(function(t){return!!O||!t.disengaged})})),r=o.enter().append("g").attr("class","nv-series"),s=("classic"==P?(r.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),e=o.select("circle")):"furious"==P&&(r.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),e=o.select("rect"),r.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)"),o.select(".nv-check-box").each(function(t,e){d3.select(this).selectAll("path").attr("stroke",b(t,e))})),r.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8"),o.select("text.nv-legend-text"));switch(o.on("mouseover",function(t,e){N.legendMouseover(t,e)}).on("mouseout",function(t,e){N.legendMouseout(t,e)}).on("click",function(t,e){N.legendClick(t,e);e=o.data();M&&("classic"==P?A?(e.forEach(function(t){t.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,e.every(function(t){return t.disabled})&&e.forEach(function(t){t.disabled=!1})):"furious"==P&&(O?(t.disengaged=!t.disengaged,t.userDisabled=null==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled):(t.disabled=!t.disabled,t.userDisabled=t.disabled,e.filter(function(t){return!t.disengaged}).every(function(t){return t.userDisabled})&&e.forEach(function(t){t.disabled=t.userDisabled=!1}))),N.stateChange({disabled:e.map(function(t){return!!t.disabled}),disengaged:e.map(function(t){return!!t.disengaged})}))}).on("dblclick",function(t,e){"furious"==P&&O||(N.legendDblclick(t,e),M&&((e=o.data()).forEach(function(t){t.disabled=!0,"furious"==P&&(t.userDisabled=t.disabled)}),t.disabled=!1,"furious"==P&&(t.userDisabled=t.disabled),N.stateChange({disabled:e.map(function(t){return!!t.disabled})})))}),o.classed("nv-disabled",function(t){return t.userDisabled}),o.exit().remove(),s.attr("fill",b).text(k),P){case"furious":i=23;break;case"classic":i=20}if(E){for(var a=[],l=(o.each(function(t,e){var n,i;k(t)&&k(t).length>S?(n=k(t).substring(0,S),n=d3.select(this).select("text").text(n+"..."),d3.select(this).append("svg:title").text(k(t))):n=d3.select(this).select("text");try{if((i=n.node().getComputedTextLength())<=0)throw Error()}catch(t){i=lt.utils.calcApproxTextWidth(n)}a.push(i+T)}),0),u=0,c=[];u<n&&l<a.length;)c[l]=a[l],u+=a[l++];for(0===l&&(l=1);n<u&&1<l;){c=[],l--;for(var h=0;h<a.length;h++)a[h]>(c[h%l]||0)&&(c[h%l]=a[h]);u=c.reduce(function(t,e,n,i){return t+e})}for(var d=[],p=0,f=0;p<l;p++)d[p]=f,f+=c[p];o.attr("transform",function(t,e){return"translate("+d[e%l]+","+(5+Math.floor(e/l)*i)+")"}),D?t.attr("transform","translate("+(x-w.right-u)+","+w.top+")"):t.attr("transform","translate(0,"+w.top+")"),C=w.top+w.bottom+Math.ceil(a.length/l)*i}else{var m,g=5,v=5,y=0;o.attr("transform",function(t,e){var n=d3.select(this).select("text").node().getComputedTextLength()+T;return m=v,x<w.left+w.right+m+n&&(v=m=5,g+=i),y<(v+=n)&&(y=v),"translate("+m+","+g+")"}),t.attr("transform","translate("+(x-w.right-y)+","+w.top+")"),C=w.top+w.bottom+g+15}"furious"==P&&e.attr("width",function(t,e){return s[0][e].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),e.style("fill",_).style("stroke",function(t,e){return t.color||$(t,e)})}),e}return e.dispatch=N,e.options=lt.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return x},set:function(t){x=t}},height:{get:function(){return C},set:function(t){C=t}},key:{get:function(){return k},set:function(t){k=t}},align:{get:function(){return E},set:function(t){E=t}},rightAlign:{get:function(){return D},set:function(t){D=t}},maxKeyLength:{get:function(){return S},set:function(t){S=t}},padding:{get:function(){return T},set:function(t){T=t}},updateState:{get:function(){return M},set:function(t){M=t}},radioButtonMode:{get:function(){return A},set:function(t){A=t}},expanded:{get:function(){return O},set:function(t){O=t}},vers:{get:function(){return P},set:function(t){P=t}},margin:{get:function(){return w},set:function(t){w.top=(void 0!==t.top?t:w).top,w.right=(void 0!==t.right?t:w).right,w.bottom=(void 0!==t.bottom?t:w).bottom,w.left=(void 0!==t.left?t:w).left}},color:{get:function(){return $},set:function(t){$=lt.utils.getColor(t)}}}),lt.utils.initOptions(e),e},lt.models.historicalBar=function(){"use strict";var a,l,u,c,h={top:0,right:0,bottom:0,left:0},d=null,p=null,f=Math.floor(1e4*Math.random()),m=null,g=d3.scale.linear(),v=d3.scale.linear(),y=function(t){return t.x},b=function(t){return t.y},_=[],w=[0],x=!1,C=!0,k=lt.utils.defaultColor(),$=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),S=!0,E=lt.utils.renderWatch($,0);function e(t){return t.each(function(n){E.reset(),m=d3.select(this);var i=lt.utils.availableWidth(d,m,h),t=lt.utils.availableHeight(p,m,h),e=(lt.utils.initSVG(m),g.domain(a||d3.extent(n[0].values.map(y).concat(_))),x?g.range(u||[.5*i/n[0].values.length,i*(n[0].values.length-.5)/n[0].values.length]):g.range(u||[0,i]),v.domain(l||d3.extent(n[0].values.map(b).concat(w))).range(c||[t,0]),g.domain()[0]===g.domain()[1]&&(g.domain()[0]?g.domain([g.domain()[0]-.01*g.domain()[0],g.domain()[1]+.01*g.domain()[1]]):g.domain([-1,1])),v.domain()[0]===v.domain()[1]&&(v.domain()[0]?v.domain([v.domain()[0]+.01*v.domain()[0],v.domain()[1]-.01*v.domain()[1]]):v.domain([-1,1])),m.selectAll("g.nv-wrap.nv-historicalBar-"+f).data([n[0].values])),r=e.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBar-"+f),o=r.append("defs"),r=r.append("g"),s=e.select("g"),r=(r.append("g").attr("class","nv-bars"),e.attr("transform","translate("+h.left+","+h.top+")"),m.on("click",function(t,e){$.chartClick({data:t,index:e,pos:d3.event,id:f})}),o.append("clipPath").attr("id","nv-chart-clip-path-"+f).append("rect"),e.select("#nv-chart-clip-path-"+f+" rect").attr("width",i).attr("height",t),s.attr("clip-path",C?"url(#nv-chart-clip-path-"+f+")":""),e.select(".nv-bars").selectAll(".nv-bar").data(function(t){return t},function(t,e){return y(t,e)}));r.exit().remove(),r.enter().append("rect").attr("x",0).attr("y",function(t,e){return lt.utils.NaNtoZero(v(Math.max(0,b(t,e))))}).attr("height",function(t,e){return lt.utils.NaNtoZero(Math.abs(v(b(t,e))-v(0)))}).attr("transform",function(t,e){return"translate("+(g(y(t,e))-i/n[0].values.length*.45)+",0)"}).on("mouseover",function(t,e){S&&(d3.select(this).classed("hover",!0),$.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")}))}).on("mouseout",function(t,e){S&&(d3.select(this).classed("hover",!1),$.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")}))}).on("mousemove",function(t,e){S&&$.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){S&&($.elementClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation())}).on("dblclick",function(t,e){S&&($.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation())}),r.attr("fill",function(t,e){return k(t,e)}).attr("class",function(t,e,n){return(b(t,e)<0?"nv-bar negative":"nv-bar positive")+" nv-bar-"+n+"-"+e}).watchTransition(E,"bars").attr("transform",function(t,e){return"translate("+(g(y(t,e))-i/n[0].values.length*.45)+",0)"}).attr("width",i/n[0].values.length*.9),r.watchTransition(E,"bars").attr("y",function(t,e){t=b(t,e)<0?v(0):v(0)-v(b(t,e))<1?v(0)-1:v(b(t,e));return lt.utils.NaNtoZero(t)}).attr("height",function(t,e){return lt.utils.NaNtoZero(Math.max(Math.abs(v(b(t,e))-v(0)),1))})}),E.renderEnd("historicalBar immediate"),e}return e.highlightPoint=function(t,e){m.select(".nv-bars .nv-bar-0-"+t).classed("hover",e)},e.clearHighlights=function(){m.select(".nv-bars .nv-bar.hover").classed("hover",!1)},e.dispatch=$,e.options=lt.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return d}
vendor: 4,857 bytes, line 1
1,set:function(t){d=t}},height:{get:function(){return p},set:function(t){p=t}},forceX:{get:function(){return _},set:function(t){_=t}},forceY:{get:function(){return w},set:function(t){w=t}},padData:{get:function(){return x},set:function(t){x=t}},x:{get:function(){return y},set:function(t){y=t}},y:{get:function(){return b},set:function(t){b=t}},xScale:{get:function(){return g},set:function(t){g=t}},yScale:{get:function(){return v},set:function(t){v=t}},xDomain:{get:function(){return a},set:function(t){a=t}},yDomain:{get:function(){return l},set:function(t){l=t}},xRange:{get:function(){return u},set:function(t){u=t}},yRange:{get:function(){return c},set:function(t){c=t}},clipEdge:{get:function(){return C},set:function(t){C=t}},id:{get:function(){return f},set:function(t){f=t}},interactive:{get:function(){return S},set:function(t){S=t}},margin:{get:function(){return h},set:function(t){h.top=(void 0!==t.top?t:h).top,h.right=(void 0!==t.right?t:h).right,h.bottom=(void 0!==t.bottom?t:h).bottom,h.left=(void 0!==t.left?t:h).left}},color:{get:function(){return k},set:function(t){k=lt.utils.getColor(t)}}}),lt.utils.initOptions(e),e},lt.models.historicalBarChart=function(t){"use strict";var c,h,d=t||lt.models.historicalBar(),p=lt.models.axis(),f=lt.models.axis(),m=lt.models.legend(),g=lt.interactiveGuideline(),e=lt.models.tooltip(),v={top:30,right:90,bottom:50,left:90},y=lt.utils.defaultColor(),b=null,_=null,w=!1,x=!0,C=!0,k=!1,$=!1,S={},E=null,n=null,T=d3.dispatch("tooltipHide","stateChange","changeState","renderEnd"),D=250,M=(p.orient("bottom").tickPadding(7),f.orient(k?"right":"left"),e.duration(0).headerEnabled(!1).valueFormatter(function(t,e){return f.tickFormat()(t,e)}).headerFormatter(function(t,e){return p.tickFormat()(t,e)}),lt.utils.renderWatch(T,0));function A(u){return u.each(function(l){M.reset(),M.models(d),x&&M.models(p),C&&M.models(f);var t,e=d3.select(this),n=this,i=(lt.utils.initSVG(e),lt.utils.availableWidth(b,e,v)),r=lt.utils.availableHeight(_,e,v);if(A.update=function(){e.transition().duration(D).call(A)},A.container=this,S.disabled=l.map(function(t){return!!t.disabled}),!E)for(t in E={},S)S[t]instanceof Array?E[t]=S[t].slice(0):E[t]=S[t];if(!(l&&l.length&&l.filter(function(t){return t.values.length}).length))return lt.utils.noData(A,e),A;e.selectAll(".nv-noData").remove(),c=d.xScale(),h=d.yScale();var o=e.selectAll("g.nv-wrap.nv-historicalBarChart").data([l]),s=o.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBarChart").append("g"),a=o.select("g");s.append("g").attr("class","nv-x nv-axis"),s.append("g").attr("class","nv-y nv-axis"),s.append("g").attr("class","nv-barsWrap"),s.append("g").attr("class","nv-legendWrap"),s.append("g").attr("class","nv-interactive"),w?(m.width(i),a.select(".nv-legendWrap").datum(l).call(m),v.top!=m.height()&&(v.top=m.height(),r=lt.utils.availableHeight(_,e,v)),o.select(".nv-legendWrap").attr("transform","translate(0,"+-v.top+")")):a.select(".nv-legendWrap").selectAll("*").remove(),o.attr("transform","translate("+v.left+","+v.top+")"),k&&a.select(".nv-y.nv-axis").attr("transform","translate("+i+",0)"),$&&(g.width(i).height(r).margin({left:v.left,top:v.top}).svgContainer(e).xScale(c),o.select(".nv-interactive").call(g)),d.width(i).height(r).color(l.map(function(t,e){return t.color||y(t,e)}).filter(function(t,e){return!l[e].disabled})),a.select(".nv-barsWrap").datum(l.filter(function(t){return!t.disabled})).transition().call(d),x&&(p.scale(c)._ticks(lt.utils.calcTicksX(i/100,l)).tickSize(-r,0),a.select(".nv-x.nv-axis").attr("transform","translate(0,"+h.range()[0]+")"),a.select(".nv-x.nv-axis").transition().call(p)),C&&(f.scale(h)._ticks(lt.utils.calcTicksY(r/36,l)).tickSize(-i,0),a.select(".nv-y.nv-axis").transition().call(f)),g.dispatch.on("elementMousemove",function(i){d.clearHighlights();var r,o,s,a=[],t=(l.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(t,e){o=lt.interactiveBisect(t.values,i.pointXValue,A.x()),d.highlightPoint(o,!0);var n=t.values[o];void 0!==n&&(void 0===r&&(r=n),void 0===s&&(s=A.xScale()(A.x()(n,o))),a.push({key:t.key,value:A.y()(n,o),color:y(t,t.seriesIndex),data:t.values[o]}))}),p.tickFormat()(A.x()(r,o)));g.tooltip.chartContainer(n.parentNode).valueFormatter(function(t,e){return f.tickFormat()(t)}).data({value:t,index:o,series:a})(),g.renderGuideLine(s)}),g.dispatch.on("elementMouseout",function(t){T.tooltipHide(),d.clearHighlights()}),m.dispatch.on("legendClick",function(t,e){t.disabled=!t.disabled,l.filter(function(t){return!t.disabled}).length||l.map(function(t){return t.disabled=!1,o.selectAll(".nv-series").classed("disabled",!1),t}),S.disabled=l.map(function(t){return!!t.disabled}),T.stateChange(S),u.transition().call(A)}),m.dispatch.on("legendDblclick",function(t){l.forEach(function(t){t.disabled=!0}),t.disabled=!1,S.disabled=l.map(function(t){return!!t.disabled}
1),T.stateChange(S),A.update()}),T.on("changeState",function(n){void 0!==n.disabled&&(l.forEach(function(t,e){t.disabled=n.disabled[e]}),S.disabled=n.disabled),A.update()})}),M.renderEnd("historicalBarChart immediate"),A}return d.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:A.x()(t.data),value:A.y()(t.data),color:t.color},e.data(t).hidden(!1)}),d.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),d.dispatch.on("elementMousemove.tooltip",function(t){e()}),A.dispatch=T,A.bars=d,A.legend=m,A.xAxis=p,A.yAxis=f,A.interactiveLayer=g,A.tooltip=e,A.options=lt.utils.optionsFunc.bind(A),A._options=Object.create({},{width:{get:function(){return b},set:function(t){b=t}},height:{get:function(){return _},set:function(t){_=t}},showLegend:{get:function(){return w},set:function(t){w=t}},showXAxis:{get:function(){return x},set:function(t){x=t}},showYAxis:{get:function(){return C},set:function(t){C=t}},defaultState:{get:function(){return E},set:function(t){E=t}},noData:{get:function(){return n},set:function(t){n=t}},margin:{get:function(){return v},set:function(t){v.top=(void 0!==t.top?t:v).top,v.right=(void 0!==t.right?t:v).right,v.bottom=(void 0!==t.bottom?t:v).bottom,v.left=(void 0!==t.left?t:v).left}},color:{get:function(){return y},set:function(t){y=lt.utils.getColor(t),m.color(y),d.color(y)}},duration:{get:function(){return D},set:function(t){D=t,M.reset(D),f.duration(D),p.duration(D)}},rightAlignYAxis:{get:function(){return k},set:function(t){k=t,f.orient(t?"right":"left")}},useInteractiveGuideline:{get:function(){return $},set:function(t){!0===($=t)&&A.interactive(!1)}}}),lt.utils.inheritOptions(A,d),lt.utils.initOptions(A),A},lt.models.ohlcBarChart=function(){var n=lt.models.historicalBarChart(lt.models.ohlcBar());return n.useInteractiveGuideline(!0),n.interactiveLayer.tooltip.contentGenerator(function(t){var e=t.series[0].data;return'<h3 style="color: #'+(e.open<e.close?"2ca02c":"d62728")+'">'+t.value+"</h3><table><tr><td>open:</td><td>"+n.yAxis.tickFormat()(e.open)+"</td></tr><tr><td>close:</td><td>"+n.yAxis.tickFormat()(e.close)+"</td></tr><tr><td>high</td><td>"+n.yAxis.tickFormat()(e.high)+"</td></tr><tr><td>low:</td><td>"+n.yAxis.tickFormat()(e.low)+"</td></tr></table>"}),n},lt.models.candlestickBarChart=function(){var n=lt.models.historicalBarChart(lt.models.candlestickBar());return n.useInteractiveGuideline(!0),n.interactiveLayer.tooltip.contentGenerator(function(t){var e=t.series[0].data;return'<h3 style="color: #'+(e.open<e.close?"2ca02c":"d62728")+'">'+t.value+"</h3><table><tr><td>open:</td><td>"+n.yAxis.tickFormat()(e.open)+"</td></tr><tr><td>close:</td><td>"+n.yAxis.tickFormat()(e.close)+"</td></tr><tr><td>high</td><td>"+n.yAxis.tickFormat()(e.high)+"</td></tr><tr><td>low:</td><td>"+n.yAxis.tickFormat()(e.low)+"</td></tr></table>"}),n},lt.models.legend=function(){"use strict";var C={top:5,right:0,bottom:5,left:0},k=400,$=20,S=function(t){return t.key},n=lt.utils.getColor(),E=20,T=!0,D=32,M=!0,A=!0,O=!1,N=!1,P=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),R="classic";function e(t){function _(t,e){return"furious"!=R?"#000":N?t.disengaged?"#000":"#fff":(t.color||(t.color=n(t,e)),t.disabled?t.color:"#fff")}function w(t,e){return N&&"furious"==R&&t.disengaged?"#eee":t.color||n(t,e)}function x(t,e){return(!N||"furious"!=R)&&t.disabled?0:1}return t.each(function(t){var e,i,n=k-C.left-C.right,r=d3.select(this),r=(lt.utils.initSVG(r),r.selectAll("g.nv-legend").data([t])),t=r.enter().append("g").attr("class","nvd3 nv-legend").append("g"),o=r.select("g"),s=(r.attr("transform","translate("+C.left+","+C.top+")"),o.selectAll(".nv-series").data(function(t){return"furious"!=R?t:t.filter(function(t){return!!N||!t.disengaged})})),r=s.enter().append("g").attr("class","nv-series");switch(R){case"furious":i=23;break;case"classic":i=20}"classic"==R?(r.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),e=s.select(".nv-legend-symbol")):"furious"==R&&(r.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),e=s.select(".nv-legend-symbol"),r.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)"),s.select(".nv-check-box").each(function(t,e){d3.select(this).selectAll("path").attr("stroke",_(t,e))})),r.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var a=s.select("text.nv-legend-text"),l=(s.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);e=s.data();A&&("classic"==R?O?(e.forEach(function(t){t.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,e.every(function(t){return t.disabled})&&e.forEach(function(t){t.disabled=!1})):"furious"==R&&(N?(t.disengaged=!t.disengaged,t.userDisabled=null==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled):(t.disabled=!t.disabled,t.userDisabled=t.disabled,e.filter(function(t){return!t.disengaged}).every(function(t){return t.userDisabled})&&e.forEach(function(t){t.disabled=t.userDisabled=!1}))),P.stateChange({disabled:e.map(function(t){return!!t.disabled}),disengaged:e.map(function(t){return!!t.disengaged})}
1))}).on("dblclick",function(t,e){"furious"==R&&N||(P.legendDblclick(t,e),A&&((e=s.data()).forEach(function(t){t.disabled=!0,"furious"==R&&(t.userDisabled=t.disabled)}),t.disabled=!1,"furious"==R&&(t.userDisabled=t.disabled),P.stateChange({disabled:e.map(function(t){return!!t.disabled})})))}),s.classed("nv-disabled",function(t){return t.userDisabled}),s.exit().remove(),a.attr("fill",_).text(S),0);if(T){for(var u=[],c=(s.each(function(t,e){var n,i;S(t)&&S(t).length>E?(n=S(t).substring(0,E),n=d3.select(this).select("text").text(n+"..."),d3.select(this).append("svg:title").text(S(t))):n=d3.select(this).select("text");try{if((i=n.node().getComputedTextLength())<=0)throw Error()}catch(t){i=lt.utils.calcApproxTextWidth(n)}u.push(i+D)}),0),h=[],l=0;l<n&&c<u.length;)h[c]=u[c],l+=u[c++];for(0===c&&(c=1);n<l&&1<c;){h=[],c--;for(var d=0;d<u.length;d++)u[d]>(h[d%c]||0)&&(h[d%c]=u[d]);l=h.reduce(function(t,e,n,i){return t+e})}for(var p=[],f=0,m=0;f<c;f++)p[f]=m,m+=h[f];s.attr("transform",function(t,e){return"translate("+p[e%c]+","+(5+Math.floor(e/c)*i)+")"}),M?o.attr("transform","translate("+(k-C.right-l)+","+C.top+")"):o.attr("transform","translate(0,"+C.top+")"),$=C.top+C.bottom+Math.ceil(u.length/c)*i}else{var g,v=5,y=5,b=0;s.attr("transform",function(t,e){var n=d3.select(this).select("text").node().getComputedTextLength()+D;return g=y,k<C.left+C.right+g+n&&(y=g=5,v+=i),l<g+(b=b<(y+=n)?y:b)&&(l=g+b),"translate("+g+","+v+")"}),o.attr("transform","translate("+(k-C.right-b)+","+C.top+")"),$=C.top+C.bottom+v+15}"furious"==R&&(e.attr("width",function(t,e){return a[0][e].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),t.insert("rect",":first-child").attr("class","nv-legend-bg").attr("fill","#eee").attr("opacity",0),o.select(".nv-legend-bg").transition().duration(300).attr("x",-i).attr("width",l+i-12).attr("height",$+10).attr("y",-C.top-10).attr("opacity",N?1:0)),e.style("fill",w).style("fill-opacity",x).style("stroke",w)}),e}return e.dispatch=P,e.options=lt.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return k},set:function(t){k=t}},height:{get:function(){return $},set:function(t){$=t}},key:{get:function(){return S},set:function(t){S=t}},align:{get:function(){return T},set:function(t){T=t}},maxKeyLength:{get:function(){return E},set:function(t){E=t}},rightAlign:{get:function(){return M},set:function(t){M=t}},padding:{get:function(){return D},set:function(t){D=t}},updateState:{get:function(){return A},set:function(t){A=t}},radioButtonMode:{get:function(){return O},set:function(t){O=t}},expanded:{get:function(){return N},set:function(t){N=t}},vers:{get:function(){return R},set:function(t){R=t}},margin:{get:function(){return C},set:function(t){C.top=(void 0!==t.top?t:C).top,C.right=(void 0!==t.right?t:C).right,C.bottom=(void 0!==t.bottom?t:C).bottom,C.left=(void 0!==t.left?t:C).left}},color:{get:function(){return n},set:function(t){n=lt.utils.getColor(t)}}}),lt.utils.initOptions(e),e},lt.models.line=function(){"use strict";var s,a,l=lt.models.scatter(),u={top:0,right:0,bottom:0,left:0},c=960,h=500,d=null,p=lt.utils.defaultColor(),f=function(t){return t.x},m=function(t){return t.y},g=function(t,e){return!isNaN(m(t,e))&&null!==m(t,e)},v=function(t){return t.area},y=!1,b="linear",e=250,t=d3.dispatch("elementClick","elementMouseover","elementMouseout","renderEnd");l.pointSize(16).pointDomain([16,256]);var _,w,x=lt.utils.renderWatch(t,e);function n(t){return x.reset(),x.models(l),t.each(function(t){d=d3.select(this);var e=lt.utils.availableWidth(c,d,u),n=lt.utils.availableHeight(h,d,u),t=(lt.utils.initSVG(d),s=l.xScale(),a=l.yScale(),_=_||s,w=w||a,d.selectAll("g.nv-wrap.nv-line").data([t])),i=t.enter().append("g").attr("class","nvd3 nv-wrap nv-line"),r=i.append("defs"),i=i.append("g"),o=t.select("g"),i=(i.append("g").attr("class","nv-groups"),i.append("g").attr("class","nv-scatterWrap"),t.attr("transform","translate("+u.left+","+u.top+")"),l.width(e).height(n),t.select(".nv-scatterWrap")),r=(i.call(l),r.append("clipPath").attr("id","nv-edge-clip-"+l.id()).append("rect"),t.select("#nv-edge-clip-"+l.id()+" rect").attr("width",e).attr("height",0<n?n:0),o.attr("clip-path",y?"url(#nv-edge-clip-"+l.id()+")":""),i.attr("clip-path",y?"url(#nv-edge-clip-"+l.id()+")":""),t.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key})),e=(r.enter().append("g").style("stroke-opacity",1e-6).style("stroke-width",function(t){return t.strokeWidth||1.5}).style("fill-opacity",1e-6),r.exit().remove(),r.attr("class",function(t,e){return(t.classed||"")+" nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return p(t,e)}).style("stroke",function(t,e){return p(t,e)}),r.watchTransition(x,"line: groups").style("stroke-opacity",1).style("fill-opacity",function(t){return t.fillOpacity||.5}),r.selectAll("path.nv-area").data(function(t){return v(t)?[t]:[]})),n=(e.enter().append("path").attr("class","nv-area").attr("d",function(t){return d3.svg.area().interpolate(b).defined(g).x(function(t,e){return lt.utils.NaNtoZero(_(f(t,e)))}).y0(function(t,e){return lt.utils.NaNtoZero(w(m(t,e)))}).y1(function(t,e){return w(a.domain()[0]<=0?0<=a.domain()[1]?0:a.domain()[1]:a.domain()[0])}).apply(this,[t.values])}),r.exit().selectAll("path.nv-area").remove(),e.watchTransition(x,"line: areaPaths").attr("d",function(t){return d3.svg.area().interpolate(b).defined(g).x(function(t,e){return lt.utils.NaNtoZero(s(f(t,e)))}).y0(function(t,e){return lt.utils.NaNtoZero(a(m(t,e)))}).y1(function(t,e){return a(a.domain()[0]<=0?0<=a.domain()[1]?0:a.domain()[1]:a.domain()[0])}).apply(this,[t.values])}),r.selectAll("path.nv-line").data(function(t){return[t.values]}));n.enter().append("path").attr("class","nv-line").attr("d",d3.svg.line().interpolate(b).defined(g).x(function(t,e){return lt.utils.NaNtoZero(_(f(t,e)))}).y(function(t,e){return lt.utils.NaNtoZero(w(m(t,e)))})),n.watchTransition(x,"line: linePaths").attr("d",d3.svg.line().interpolate(b).defined(g).x(function(t,e){return lt.utils.NaNtoZero(s(f(t,e)))}).y(function(t,e){return lt.utils.NaNtoZero(a(m(t,e)))})),_=s.copy(),w=a.copy()}),x.renderEnd("line immediate"),n}return n.dispatch=t,(n.scatter=l).dispatch.on("elementClick",function(){t.elementClick.apply(this,arguments)}),l.dispatch.on("elementMouseover",function(){t.elementMouseover.apply(this,arguments)}),l.dispatch.on("elementMouseout",function(){t.elementMouseout.apply(this,arguments)}),n.options=lt.utils.optionsFunc.bind(n),n._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return h},set:function(t){h=t}},defined:{get:function(){return g},set:function(t){g=t}},interpolate:{get:function(){return b},set:function(t){b=t}},clipEdge:{get:function(){return y},set:function(t){y=t}},margin:{get:function(){return u},set:function(t){u.top=(void 0!==t.top?t:u).top,u.right=(void 0!==t.right?t:u).right,u.bottom=(void 0!==t.bottom?t:u).bottom,u.left=(void 0!==t.left?t:u).left}},duration:{get:function(){return e},set:function(t){e=t,x.reset(e),l.duration(e)}},isArea:{get:function(){return v},set:function(t){v=d3.functor(t)}},x:{get:function(){return f},set:function(t){f=t,l.x(t)}},y:{get:function(){return m},set:function(t){m=t,l.y(t)}},color:{get:function(){return p},set:function(t){p=lt.utils.getColor(t),l.color(p)}}}),lt.utils.inheritOptions(n,l),lt.utils.initOptions(n),n},lt.models.lineChart=function(){"use strict";var g,v,y,b,_=lt.models.line(),w=lt.models.axis(),x=lt.models.axis(),C=lt.models.legend(),k=lt.interactiveGuideline(),e=lt.models.tooltip(),$=lt.models.line(),S=lt.models.axis(),E=lt.models.axis(),T=d3.svg.brush(),D={top:30,right:20,bottom:50,left:60}
1,M={top:0,right:20,bottom:20,left:60},A=lt.utils.defaultColor(),O=null,N=null,P=!0,R="top",I=!0,L=!0,H=!1,F=!1,z=!1,V=!1,j=!0,W=50,B=null,q=lt.utils.state(),U=null,i=null,Y=d3.dispatch("tooltipShow","tooltipHide","brush","stateChange","changeState","renderEnd"),G=250,n=(w.orient("bottom").tickPadding(7),x.orient(H?"right":"left"),_.clipEdge(!0).duration(0),$.interactive(!1),$.pointActive(function(t){return!1}),S.orient("bottom").tickPadding(5),E.orient(H?"right":"left"),e.valueFormatter(function(t,e){return x.tickFormat()(t,e)}).headerFormatter(function(t,e){return w.tickFormat()(t,e)}),k.tooltip.valueFormatter(function(t,e){return x.tickFormat()(t,e)}).headerFormatter(function(t,e){return w.tickFormat()(t,e)}),lt.utils.renderWatch(Y,G));function K(t){return n.reset(),n.models(_),n.models($),I&&n.models(w),L&&n.models(x),j&&n.models(S),V&&n.models(E),t.each(function(i){var t,e,n,r=d3.select(this),o=(lt.utils.initSVG(r),lt.utils.availableWidth(O,r,D)),s=lt.utils.availableHeight(N,r,D)-(z?W:0),a=W-M.top-M.bottom;if(K.update=function(){(0===G?r:r.transition().duration(G)).call(K)},K.container=this,q.setter((e=i,function(n){void 0!==n.active&&e.forEach(function(t,e){t.disabled=!n.active[e]})}),K.update).getter((t=i,function(){return{active:t.map(function(t){return!t.disabled})}})).update(),q.disabled=i.map(function(t){return!!t.disabled}),!U)for(n in U={},q)q[n]instanceof Array?U[n]=q[n].slice(0):U[n]=q[n];if(!(i&&i.length&&i.filter(function(t){return t.values.length}).length))return lt.utils.noData(K,r),K;r.selectAll(".nv-noData").remove(),g=_.xScale(),v=_.yScale(),y=$.xScale(),b=$.yScale();var l,u=r.selectAll("g.nv-wrap.nv-lineChart").data([i]),c=u.enter().append("g").attr("class","nvd3 nv-wrap nv-lineChart").append("g"),h=u.select("g"),d=(c.append("g").attr("class","nv-legendWrap"),c.append("g").attr("class","nv-focus")),d=(d.append("g").attr("class","nv-background").append("rect"),d.append("g").attr("class","nv-x nv-axis"),d.append("g").attr("class","nv-y nv-axis"),d.append("g").attr("class","nv-linesWrap"),d.append("g").attr("class","nv-interactive"),c.append("g").attr("class","nv-context")),c=(d.append("g").attr("class","nv-background").append("rect"),d.append("g").attr("class","nv-x nv-axis"),d.append("g").attr("class","nv-y nv-axis"),d.append("g").attr("class","nv-linesWrap"),d.append("g").attr("class","nv-brushBackground"),d.append("g").attr("class","nv-x nv-brush"),P?(C.width(o),h.select(".nv-legendWrap").datum(i).call(C),"bottom"===R?u.select(".nv-legendWrap").attr("transform","translate(0,"+s+")"):"top"===R&&(D.top!=C.height()&&(D.top=C.height(),s=lt.utils.availableHeight(N,r,D)-(z?W:0)),u.select(".nv-legendWrap").attr("transform","translate(0,"+-D.top+")"))):h.select(".nv-legendWrap").selectAll("*").remove(),u.attr("transform","translate("+D.left+","+D.top+")"),H&&h.select(".nv-y.nv-axis").attr("transform","translate("+o+",0)"),F&&(k.width(o).height(s).margin({left:D.left,top:D.top}).svgContainer(r).xScale(g),u.select(".nv-interactive").call(k)),h.select(".nv-focus .nv-background rect").attr("width",o).attr("height",s),_.width(o).height(s).color(i.map(function(t,e){return t.color||A(t,e)}).filter(function(t,e){return!i[e].disabled})),h.select(".nv-linesWrap").datum(i.filter(function(t){return!t.disabled})));function p(){I&&h.select(".nv-focus .nv-x.nv-axis").transition().duration(G).call(w)}function f(){L&&h.select(".nv-focus .nv-y.nv-axis").transition().duration(G).call(x)}function m(){B=T.empty()?null:T.extent();var n=T.empty()?y.domain():T.extent();Math.abs(n[0]-n[1])<=1||(Y.brush({extent:n,brush:T}),T.empty()||T.extent(B),l.data([T.empty()?y.domain():B]).each(function(t,e){var n=y(t[0])-g.range()[0],i=o-y(t[1]);d3.select(this).select(".left").attr("width",n<0?0:n),d3.select(this).select(".right").attr("x",y(t[1])).attr("width",i<0?0:i)}),h.select(".nv-focus .nv-linesWrap").datum(i.filter(function(t){return!t.disabled}).map(function(t,e){return{key:t.key,area:t.area,classed:t.classed,values:t.values.filter(function(t,e){return _.x()(t,e)>=n[0]&&_.x()(t,e)<=n[1]}),disableTooltip:t.disableTooltip}})).transition().duration(G).call(_),p(),f())}I&&w.scale(g)._ticks(lt.utils.calcTicksX(o/100,i)).tickSize(-s,0),L&&x.scale(v)._ticks(lt.utils.calcTicksY(s/36,i)).tickSize(-o,0),h.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+s+")"),z?($.defined(_.defined()).width(o).height(a).color(i.map(function(t,e){return t.color||A(t,e)}).filter(function(t,e){return!i[e].disabled})),h.select(".nv-context").attr("transform","translate(0,"+(s+D.bottom+M.top)+")").style("display",z?"initial":"none"),d=h.select(".nv-context .nv-linesWrap").datum(i.filter(function(t){return!t.disabled})),d3.transition(d).call($),T.x(y).on("brush",function(){m()}
1),B&&T.extent(B),(u=(l=h.select(".nv-brushBackground").selectAll("g").data([B||T.extent()])).enter().append("g")).append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",a),u.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",a),(s=h.select(".nv-x.nv-brush").call(T)).selectAll("rect").attr("height",a),s.selectAll(".resize").append("path").attr("d",function(t){var t=+("e"==t),e=t?1:-1,n=a/3;return"M"+.5*e+","+n+"A6,6 0 0 "+t+" "+6.5*e+","+(6+n)+"V"+(2*n-6)+"A6,6 0 0 "+t+" "+.5*e+","+2*n+"ZM"+2.5*e+","+(8+n)+"V"+(2*n-8)+"M"+4.5*e+","+(8+n)+"V"+(2*n-8)}),m(),h.select(".nv-context .nv-background rect").attr("width",o).attr("height",a),j&&(S.scale(y)._ticks(lt.utils.calcTicksX(o/100,i)).tickSize(-a,0),h.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+b.range()[0]+")"),d3.transition(h.select(".nv-context .nv-x.nv-axis")).call(S)),V&&(E.scale(b)._ticks(lt.utils.calcTicksY(a/36,i)).tickSize(-o,0),d3.transition(h.select(".nv-context .nv-y.nv-axis")).call(E)),h.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+b.range()[0]+")")):(c.call(_),p(),f()),C.dispatch.on("stateChange",function(t){for(var e in t)q[e]=t[e];Y.stateChange(q),K.update()}),k.dispatch.on("elementMousemove",function(o){_.clearHighlights();var s,a,l,t,e,u=[];i.filter(function(t,e){return t.seriesIndex=e,!t.disabled&&!t.disableTooltip}).forEach(function(t,e){var n=z?T.empty()?y.domain():T.extent():g.domain(),i=t.values.filter(function(t,e){return _.x()(t,e)>=n[0]&&_.x()(t,e)<=n[1]}),i=i[a=lt.interactiveBisect(i,o.pointXValue,_.x())],r=K.y()(i,a);null!==r&&_.highlightPoint(t.seriesIndex,a,!0),void 0!==i&&(void 0===s&&(s=i),void 0===l&&(l=K.xScale()(K.x()(i,a))),u.push({key:t.key,value:r,color:A(t,t.seriesIndex),data:i}))}),2<u.length&&(e=K.yScale().invert(o.mouseY),t=.03*Math.abs(K.yScale().domain()[0]-K.yScale().domain()[1]),null!==(e=lt.nearestValueIndex(u.map(function(t){return t.value}),e,t)))&&(u[e].highlight=!0);k.tooltip.chartContainer(K.container.parentNode).valueFormatter(k.tooltip.valueFormatter()||function(t,e){return null==t?"N/A":x.tickFormat()(t)}).data({value:K.x()(s,a),index:a,series:u})(),k.renderGuideLine(l)}),k.dispatch.on("elementClick",function(r){var o,s=[];i.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(t){var e,n=lt.interactiveBisect(t.values,r.pointXValue,K.x()),i=t.values[n];void 0!==i&&(void 0===o&&(o=K.xScale()(K.x()(i,n))),e=K.yScale()(K.y()(i,n)),s.push({point:i,pointIndex:n,pos:[o,e],seriesIndex:t.seriesIndex,series:t}))}),_.dispatch.elementClick(s)}),k.dispatch.on("elementMouseout",function(t){_.clearHighlights()}),Y.on("changeState",function(n){void 0!==n.disabled&&i.length===n.disabled.length&&(i.forEach(function(t,e){t.disabled=n.disabled[e]}),q.disabled=n.disabled),K.update()})}),n.renderEnd("lineChart immediate"),K}return _.dispatch.on("elementMouseover.tooltip",function(t){t.series.disableTooltip||e.data(t).hidden(!1)}),_.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),K.dispatch=Y,K.lines=_,K.lines2=$,K.legend=C,K.xAxis=w,K.x2Axis=S,K.yAxis=x,K.y2Axis=E,K.interactiveLayer=k,K.tooltip=e,K.state=q,K.dispatch=Y,K.options=lt.utils.optionsFunc.bind(K),K._options=Object.create({},{width:{get:function(){return O},set:function(t){O=t}},height:{get:function(){return N},set:function(t){N=t}},showLegend:{get:function(){return P},set:function(t){P=t}},legendPosition:{get:function(){return R},set:function(t){R=t}},showXAxis:{get:function(){return I},set:function(t){I=t}},showYAxis:{get:function(){return L},set:function(t){L=t}},focusEnable:{get:function(){return z},set:function(t){z=t}},focusHeight:{get:function(){return height2},set:function(t){W=t}},focusShowAxisX:{get:function(){return j},set:function(t){j=t}},focusShowAxisY:{get:function(){return V},set:function(t){V=t}},brushExtent:{get:function(){return B},set:function(t){B=t}},defaultState:{get:function(){return U},set:function(t){U=t}},noData:{get:function(){return i},set:function(t){i=t}},margin:{get:function(){return D},set:function(t){D.top=(void 0!==t.top?t:D).top,D.right=(void 0!==t.right?t:D).right,D.bottom=(void 0!==t.bottom?t:D).bottom,D.left=(void 0!==t.left?t:D).left}},duration:{get:function(){return G},set:function(t){G=t,n.reset(G),_.duration(G),w.duration(G),S.duration(G),x.duration(G),E.duration(G)}},focusMargin:{get:function(){return M},set:function(t){M.top=(void 0!==t.top?t:M).top,M.right=(void 0!==t.right?t:M).right,M.bottom=(void 0!==t.bottom?t:M).bottom,M.left=(void 0!==t.left?t:M).left}},color:{get:function(){return A},set:function(t){A=lt.utils.getColor(t),C.color(A),_.color(A)}},interpolate:{get:function(){return _.interpolate()},set:function(t){_.interpolate(t),$.interpolate(t)}},xTickFormat:{get:function(){return w.tickFormat()}
1,set:function(t){w.tickFormat(t),S.tickFormat(t)}},yTickFormat:{get:function(){return x.tickFormat()},set:function(t){x.tickFormat(t),E.tickFormat(t)}},x:{get:function(){return _.x()},set:function(t){_.x(t),$.x(t)}},y:{get:function(){return _.y()},set:function(t){_.y(t),$.y(t)}},rightAlignYAxis:{get:function(){return H},set:function(t){H=t,x.orient(H?"right":"left")}},useInteractiveGuideline:{get:function(){return F},set:function(t){(F=t)&&(_.interactive(!1),_.useVoronoi(!1))}}}),lt.utils.inheritOptions(K,_),lt.utils.initOptions(K),K},lt.models.lineWithFocusChart=function(){return lt.models.lineChart().margin({bottom:30}).focusEnable(!0)},lt.models.linePlusBarChart=function(){"use strict";function g(t){return t.every(function(t){return t.disabled})}var v,y,b,_,Z,w,Q,x=lt.models.line(),C=lt.models.line(),k=lt.models.historicalBar(),$=lt.models.historicalBar(),S=lt.models.axis(),E=lt.models.axis(),T=lt.models.axis(),D=lt.models.axis(),M=lt.models.axis(),A=lt.models.axis(),O=lt.models.legend(),N=d3.svg.brush(),e=lt.models.tooltip(),P={top:30,right:30,bottom:30,left:60},R={top:0,right:30,bottom:20,left:60},J=null,I=null,L=function(t){return t.x},H=function(t){return t.y},F=lt.utils.defaultColor(),tt=!0,z=!0,et=!1,nt=!0,V=50,j=null,n=null,W=d3.dispatch("brush","stateChange","changeState"),B=0,q=lt.utils.state(),U=null,Y=" (left axis)",G=" (right axis)",K=!1;x.clipEdge(!0),C.interactive(!1),C.pointActive(function(t){return!1}),S.orient("bottom").tickPadding(5),T.orient("left"),D.orient("right"),E.orient("bottom").tickPadding(5),M.orient("left"),A.orient("right"),e.headerEnabled(!0).headerFormatter(function(t,e){return S.tickFormat()(t,e)});function X(t){return t.each(function(i){var t,e,n,r=d3.select(this),o=(lt.utils.initSVG(r),lt.utils.availableWidth(J,r,P)),s=lt.utils.availableHeight(I,r,P)-(z?V:0),a=V-R.top-R.bottom;if(X.update=function(){r.transition().duration(B).call(X)},X.container=this,q.setter((e=i,function(n){void 0!==n.active&&e.forEach(function(t,e){t.disabled=!n.active[e]})}),X.update).getter((t=i,function(){return{active:t.map(function(t){return!t.disabled})}})).update(),q.disabled=i.map(function(t){return!!t.disabled}),!U)for(n in U={},q)q[n]instanceof Array?U[n]=q[n].slice(0):U[n]=q[n];if(!(i&&i.length&&i.filter(function(t){return t.values.length}).length))return lt.utils.noData(X,r),X;r.selectAll(".nv-noData").remove();var l=i.filter(function(t){return!t.disabled&&t.bar}),u=i.filter(function(t){return!t.bar}),c=(y=(l.length&&!K?k:x).xScale(),b=E.scale(),_=(K?x:k).yScale(),Z=(K?k:x).yScale(),w=(K?C:$).yScale(),Q=(K?$:C).yScale(),i.filter(function(t){return!t.disabled&&(K?!t.bar:t.bar)}).map(function(t){return t.values.map(function(t,e){return{x:L(t,e),y:H(t,e)}})})),h=i.filter(function(t){return!t.disabled&&(K?t.bar:!t.bar)}).map(function(t){return t.values.map(function(t,e){return{x:L(t,e),y:H(t,e)}})}),c=(y.range([0,o]),b.domain(d3.extent(d3.merge(c.concat(h)),function(t){return t.x})).range([0,o]),r.selectAll("g.nv-wrap.nv-linePlusBar").data([i])),h=c.enter().append("g").attr("class","nvd3 nv-wrap nv-linePlusBar").append("g"),d=c.select("g"),p=(h.append("g").attr("class","nv-legendWrap"),h.append("g").attr("class","nv-focus")),p=(p.append("g").attr("class","nv-x nv-axis"),p.append("g").attr("class","nv-y1 nv-axis"),p.append("g").attr("class","nv-y2 nv-axis"),p.append("g").attr("class","nv-barsWrap"),p.append("g").attr("class","nv-linesWrap"),h.append("g").attr("class","nv-context")),h=(p.append("g").attr("class","nv-x nv-axis"),p.append("g").attr("class","nv-y1 nv-axis"),p.append("g").attr("class","nv-y2 nv-axis"),p.append("g").attr("class","nv-barsWrap"),p.append("g").attr("class","nv-linesWrap"),p.append("g").attr("class","nv-brushBackground"),p.append("g").attr("class","nv-x nv-brush"),tt?(h=O.align()?o/2:o,p=O.align()?h:0,O.width(h),d.select(".nv-legendWrap").datum(i.map(function(t){return t.originalKey=void 0===t.originalKey?t.key:t.originalKey,t.key=K?t.originalKey+(t.bar?G:Y):t.originalKey+(t.bar?Y:G),t})).call(O),P.top!=O.height()&&(P.top=O.height(),s=lt.utils.availableHeight(I,r,P)-V),d.select(".nv-legendWrap").attr("transform","translate("+p+","+-P.top+")")):d.select(".nv-legendWrap").selectAll("*").remove(),c.attr("transform","translate("+P.left+","+P.top+")"),d.select(".nv-context").style("display",z?"initial":"none"),$.width(o).height(a).color(i.map(function(t,e){return t.color||F(t,e)}).filter(function(t,e){return!i[e].disabled&&i[e].bar})),C.width(o).height(a).color(i.map(function(t,e){return t.color||F(t,e)}).filter(function(t,e){return!i[e].disabled&&!i[e].bar})),d.select(".nv-context .nv-barsWrap").datum(l.length?l:[{values:[]}])),p=d.select(".nv-context .nv-linesWrap").datum(g(u)?[{values:[]}]:u.filter(function(t){return!t.disabled})),f=(d.select(".nv-context").attr("transform","translate(0,"+(s+P.bottom+R.top)+")"),h.transition().call($),p.transition().call(C),nt&&(E._ticks(lt.utils.calcTicksX(o/100,i)).tickSize(-a,0),d.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+w.range()[0]+")"),d.select(".nv-context .nv-x.nv-axis").transition().call(E)),et&&(M.scale(w)._ticks(a/36).tickSize(-o,0),A.scale(Q)._ticks(a/36).tickSize(l.length?0:-o,0
1),d.select(".nv-context .nv-y3.nv-axis").style("opacity",l.length?1:0).attr("transform","translate(0,"+b.range()[0]+")"),d.select(".nv-context .nv-y2.nv-axis").style("opacity",u.length?1:0).attr("transform","translate("+b.range()[1]+",0)"),d.select(".nv-context .nv-y1.nv-axis").transition().call(M),d.select(".nv-context .nv-y2.nv-axis").transition().call(A)),N.x(b).on("brush",m),j&&N.extent(j),d.select(".nv-brushBackground").selectAll("g").data([j||N.extent()])),c=f.enter().append("g"),h=(c.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",a),c.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",a),d.select(".nv-x.nv-brush").call(N));function m(){j=N.empty()?null:N.extent(),v=N.empty()?b.domain():N.extent(),W.brush({extent:v,brush:N}),N.empty()||N.extent(j),f.data([N.empty()?b.domain():j]).each(function(t,e){var n=b(t[0])-b.range()[0],i=b.range()[1]-b(t[1]);d3.select(this).select(".left").attr("width",n<0?0:n),d3.select(this).select(".right").attr("x",b(t[1])).attr("width",i<0?0:i)}),k.width(o).height(s).color(i.map(function(t,e){return t.color||F(t,e)}).filter(function(t,e){return!i[e].disabled&&i[e].bar})),x.width(o).height(s).color(i.map(function(t,e){return t.color||F(t,e)}).filter(function(t,e){return!i[e].disabled&&!i[e].bar}));var t=d.select(".nv-focus .nv-barsWrap").datum(l.length?l.map(function(t,e){return{key:t.key,values:t.values.filter(function(t,e){return k.x()(t,e)>=v[0]&&k.x()(t,e)<=v[1]})}}):[{values:[]}]),e=d.select(".nv-focus .nv-linesWrap").datum(g(u)?[{values:[]}]:u.filter(function(t){return!t.disabled}).map(function(t,e){return{area:t.area,fillOpacity:t.fillOpacity,key:t.key,values:t.values.filter(function(t,e){return x.x()(t,e)>=v[0]&&x.x()(t,e)<=v[1]})}})),t=(y=(l.length&&!K?k:x).xScale(),S.scale(y)._ticks(lt.utils.calcTicksX(o/100,i)).tickSize(-s,0),S.domain([Math.ceil(v[0]),Math.floor(v[1])]),d.select(".nv-x.nv-axis").transition().duration(B).call(S),t.transition().duration(B).call(k),e.transition().duration(B).call(x),d.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+_.range()[0]+")"),T.scale(_)._ticks(lt.utils.calcTicksY(s/36,i)).tickSize(-o,0),D.scale(Z)._ticks(lt.utils.calcTicksY(s/36,i)),K?D.tickSize(u.length?0:-o,0):D.tickSize(l.length?0:-o,0),l.length?1:0),e=u.length&&!g(u)?1:0,n=K?e:t,t=K?t:e;d.select(".nv-focus .nv-y1.nv-axis").style("opacity",n),d.select(".nv-focus .nv-y2.nv-axis").style("opacity",t).attr("transform","translate("+y.range()[1]+",0)"),d.select(".nv-focus .nv-y1.nv-axis").transition().duration(B).call(T),d.select(".nv-focus .nv-y2.nv-axis").transition().duration(B).call(D)}h.selectAll("rect").attr("height",a),h.selectAll(".resize").append("path").attr("d",function(t){var t=+("e"==t),e=t?1:-1,n=a/3;return"M"+.5*e+","+n+"A6,6 0 0 "+t+" "+6.5*e+","+(6+n)+"V"+(2*n-6)+"A6,6 0 0 "+t+" "+.5*e+","+2*n+"ZM"+2.5*e+","+(8+n)+"V"+(2*n-8)+"M"+4.5*e+","+(8+n)+"V"+(2*n-8)}),O.dispatch.on("stateChange",function(t){for(var e in t)q[e]=t[e];W.stateChange(q),X.update()}),W.on("changeState",function(n){void 0!==n.disabled&&(i.forEach(function(t,e){t.disabled=n.disabled[e]}),q.disabled=n.disabled),X.update()}),m()}),X}return x.dispatch.on("elementMouseover.tooltip",function(t){e.duration(100).valueFormatter(function(t,e){return(K?{main:D,focus:A}:{main:T,focus:M}).main.tickFormat()(t,e)}).data(t).hidden(!1)}),x.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),k.dispatch.on("elementMouseover.tooltip",function(t){t.value=X.x()(t.data),t.series={value:X.y()(t.data),color:t.color},e.duration(0).valueFormatter(function(t,e){return(K?{main:T,focus:M}:{main:D,focus:A}).main.tickFormat()(t,e)}).data(t).hidden(!1)}),k.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),k.dispatch.on("elementMousemove.tooltip",function(t){e()}),X.dispatch=W,X.legend=O,X.lines=x,X.lines2=C,X.bars=k,X.bars2=$,X.xAxis=S,X.x2Axis=E,X.y1Axis=T,X.y2Axis=D,X.y3Axis=M,X.y4Axis=A,X.tooltip=e,X.options=lt.utils.optionsFunc.bind(X),X._options=Object.create({},{width:{get:function(){return J},set:function(t){J=t}},height:{get:function(){return I},set:function(t){I=t}},showLegend:{get:function(){return tt},set:function(t){tt=t}},brushExtent:{get:function(){return j},set:function(t){j=t}},noData:{get:function(){return n},set:function(t){n=t}},focusEnable:{get:function(){return z},set:function(t){z=t}},focusHeight:{get:function(){return V},set:function(t){V=t}},focusShowAxisX:{get:function(){return nt},set:function(t){nt=t}},focusShowAxisY:{get:function(){return et},set:function(t){et=t}},legendLeftAxisHint:{get:function(){return Y},set:function(t){Y=t}},legendRightAxisHint:{get:function(){return G},set:function(t){G=t}},margin:{get:function(){return P},set:function(t){P.top=(void 0!==t.top?t:P).top,P.right=(void 0!==t.right?t:P).right,P.bottom=(void 0!==t.bottom?t:P).bottom,P.left=(void 0!==t.left?t:P).left}},focusMargin:{get:function(){return R}
1,set:function(t){R.top=(void 0!==t.top?t:R).top,R.right=(void 0!==t.right?t:R).right,R.bottom=(void 0!==t.bottom?t:R).bottom,R.left=(void 0!==t.left?t:R).left}},duration:{get:function(){return B},set:function(t){B=t}},color:{get:function(){return F},set:function(t){F=lt.utils.getColor(t),O.color(F)}},x:{get:function(){return L},set:function(t){L=t,x.x(t),C.x(t),k.x(t),$.x(t)}},y:{get:function(){return H},set:function(t){H=t,x.y(t),C.y(t),k.y(t),$.y(t)}},switchYAxisOrder:{get:function(){return K},set:function(t){var e;K!==t&&(e=T,T=D,D=e,e=M,M=A,A=e),K=t,T.orient("left"),D.orient("right"),M.orient("left"),A.orient("right")}}}),lt.utils.inheritOptions(X,x),lt.utils.initOptions(X),X},lt.models.multiBar=function(){"use strict";var u,c,h,d,p,f,m={top:0,right:0,bottom:0,left:0},g=960,v=500,y=d3.scale.ordinal(),b=d3.scale.linear(),_=Math.floor(1e4*Math.random()),w=null,x=function(t){return t.x},C=function(t){return t.y},k=[0],$=!0,S=!1,E="zero",T=lt.utils.defaultColor(),D=!1,M=null,A=500,O=.1,N=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),P=lt.utils.renderWatch(N,A),R=0;function e(t){return P.reset(),t.each(function(o){var i,t=g-m.left-m.right,e=v-m.top-m.bottom,r=(w=d3.select(this),lt.utils.initSVG(w),0),n=(D&&o.length&&(D=[{values:o[0].values.map(function(t){return{x:t.x,y:0,series:t.series,size:.01}})}]),S&&((i=d3.layout.stack().offset(E).values(function(t){return t.values}).y(C)(!o.length&&D?D:o)).forEach(function(t,n){t.nonStackable?(o[n].nonStackableSeries=r++,i[n]=o[n]):0<n&&i[n-1].nonStackable&&i[n].values.map(function(t,e){t.y0-=i[n-1].values[e].y,t.y1=t.y0+t.y})}),o=i),o.forEach(function(e,n){e.values.forEach(function(t){t.series=n,t.key=e.key})}),S&&0<o.length&&o[0].values.map(function(t,n){var i=0,r=0;o.map(function(t,e){o[e].nonStackable||((e=t.values[n]).size=Math.abs(e.y),e.y<0?(e.y1=r,r-=e.size):(e.y1=e.size+i,i+=e.size))})}),c&&h?[]:o.map(function(t,n){return t.values.map(function(t,e){return{x:x(t,e),y:C(t,e),y0:t.y0,y1:t.y1,idx:n}})})),n=(y.domain(c||d3.merge(n).map(function(t){return t.x})).rangeBands(d||[0,t],O),b.domain(h||d3.extent(d3.merge(n).map(function(t){var e=t.y;return e=S&&!o[t.idx].nonStackable?0<t.y?t.y1:t.y1+t.y:e}).concat(k))).range(p||[e,0]),y.domain()[0]===y.domain()[1]&&(y.domain()[0]?y.domain([y.domain()[0]-.01*y.domain()[0],y.domain()[1]+.01*y.domain()[1]]):y.domain([-1,1])),b.domain()[0]===b.domain()[1]&&(b.domain()[0]?b.domain([b.domain()[0]+.01*b.domain()[0],b.domain()[1]-.01*b.domain()[1]]):b.domain([-1,1])),f=f||b,w.selectAll("g.nv-wrap.nv-multibar").data([o])),s=n.enter().append("g").attr("class","nvd3 nv-wrap nv-multibar"),a=s.append("defs"),s=s.append("g"),l=n.select("g"),s=(s.append("g").attr("class","nv-groups"),n.attr("transform","translate("+m.left+","+m.top+")"),a.append("clipPath").attr("id","nv-edge-clip-"+_).append("rect"),n.select("#nv-edge-clip-"+_+" rect").attr("width",t).attr("height",e),l.attr("clip-path",$?"url(#nv-edge-clip-"+_+")":""),n.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t,e){return e})),a=(s.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),P.transition(s.exit().selectAll("rect.nv-bar"),"multibarExit",Math.min(100,A)).attr("y",function(t,e,n){var i=f(0)||0;return i=S&&o[t.series]&&!o[t.series].nonStackable?f(t.y0):i}).attr("height",0).remove()),t=(a.delay&&a.delay(function(t,e){return e*(A/(R+1))-e}),s.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return T(t,e)}).style("stroke",function(t,e){return T(t,e)}),s.style("stroke-opacity",1).style("fill-opacity",.75),s.selectAll("rect.nv-bar").data(function(t){return(D&&!o.length?D:t).values})),e=(t.exit().remove(),t.enter().append("rect").attr("class",function(t,e){return C(t,e)<0?"nv-bar negative":"nv-bar positive"}).attr("x",function(t,e,n){return S&&!o[n].nonStackable?0:n*y.rangeBand()/o.length}).attr("y",function(t,e,n){return f(S&&!o[n].nonStackable?t.y0:0)||0}).attr("height",0).attr("width",function(t,e,n){return y.rangeBand()/(S&&!o[n].nonStackable?1:o.length)}).attr("transform",function(t,e){return"translate("+y(x(t,e))+",0)"}),t.style("fill",function(t,e,n){return T(t,n,e)}).style("stroke",function(t,e,n){return T(t,n,e)}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0),N.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),N.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){N.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){N.elementClick({data:t,index:e,color:d3.select(this).style("fill"),event:d3.event,element:this}),d3.event.stopPropagation()}).on("dblclick",function(t,e){N.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}),t.attr("class",function(t,e){return C(t,e)<0?"nv-bar negative":"nv-bar positive"}).attr("transform",function(t,e){return"translate("+y(x(t,e))+",0)"}),M&&(u=u||o.map(function(){return!0}),t.style("fill",function(t,e,n){return d3.rgb(M(t,e)).darker(u.map(function(t,e){return e}).filter(function(t,e){return!u[e]})[n]).toString()}).style("stroke",function(t,e,n){return d3.rgb(M(t,e)).darker(u.map(function(t,e){return e}).filter(function(t,e){return!u[e]})[n]).toString()})),t.watchTransition(P,"multibar",Math.min(250,A)).delay(function(t,e){return e*A/o[0].values.length}));S?e.attr("y",function(t,e,n){return o[n].nonStackable?C(t,e)<0?b(0):b(0)-b(C(t,e))<-1?b(0)-1:b(C(t,e))||0:b(t.y1)}).attr("height",function(t,e,n){return o[n].nonStackable?Math.max(Math.abs(b(C(t,e))-b(0)),0)||0:Math.max(Math.abs(b(t.y+t.y0)-b(t.y0)),0)}).attr("x",function(t,e,n){var i=0;return i=o[n].nonStackable&&(i=t.series*y.rangeBand()/o.length,o.length!==r)?o[n].nonStackableSeries*y.rangeBand()/(2*r):i}).attr("width",function(t,e,n){return o[n].nonStackable?(n=y.rangeBand()/r,o.length!==r?y.rangeBand()/(2*r):n):y.rangeBand()}):e.attr("x",function(t,e){return t.series*y.rangeBand()/o.length}).attr("width",y.rangeBand()/o.length).attr("y",function(t,e){return C(t,e)<0?b(0):b(0)-b(C(t,e))<1?b(0)-1:b(C(t,e))||0}).attr("height",function(t,e){return Math.max(Math.abs(b(C(t,e))-b(0)),1)||0}),y.copy(),f=b.copy(),o[0]&&o[0].values&&(R=o[0].values.length)}),P.renderEnd("multibar immediate"),e}return e.dispatch=N,e.options=lt.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return g},set:function(t){g=t}},height:{get:function(){return v},set:function(t){v=t}},x:{get:function(){return x},set:function(t){x=t}},y:{get:function(){return C},set:function(t){C=t}},xScale:{get:function(){return y},set:function(t){y=t}},yScale:{get:function(){return b},set:function(t){b=t}},xDomain:{get:function(){return c},set:function(t){c=t}},yDomain:{get:function(){return h},set:function(t){h=t}},xRange:{get:function(){return d}
1,set:function(t){d=t}},yRange:{get:function(){return p},set:function(t){p=t}},forceY:{get:function(){return k},set:function(t){k=t}},stacked:{get:function(){return S},set:function(t){S=t}},stackOffset:{get:function(){return E},set:function(t){E=t}},clipEdge:{get:function(){return $},set:function(t){$=t}},disabled:{get:function(){return u},set:function(t){u=t}},id:{get:function(){return _},set:function(t){_=t}},hideable:{get:function(){return D},set:function(t){D=t}},groupSpacing:{get:function(){return O},set:function(t){O=t}},margin:{get:function(){return m},set:function(t){m.top=(void 0!==t.top?t:m).top,m.right=(void 0!==t.right?t:m).right,m.bottom=(void 0!==t.bottom?t:m).bottom,m.left=(void 0!==t.left?t:m).left}},duration:{get:function(){return A},set:function(t){A=t,P.reset(A)}},color:{get:function(){return T},set:function(t){T=lt.utils.getColor(t)}},barColor:{get:function(){return M},set:function(t){M=t?lt.utils.getColor(t):null}}}),lt.utils.initOptions(e),e},lt.models.multiBarChart=function(){"use strict";function f(){return T?180:0}var m,g,v=lt.models.multiBar(),y=lt.models.axis(),b=lt.models.axis(),_=lt.interactiveGuideline(),w=lt.models.legend(),x=lt.models.legend(),C=lt.models.tooltip(),k={top:30,right:20,bottom:50,left:60},$=null,S=null,E=lt.utils.defaultColor(),T=!0,D={},M=!0,A=!0,O=!0,N=!1,P=!0,R=!1,I=!1,L=0,H=lt.utils.state(),F=null,e=null,z=d3.dispatch("stateChange","changeState","renderEnd"),V=250,j=!1,n=(H.stacked=!1,v.stacked(!1),y.orient("bottom").tickPadding(7).showMaxMin(!1).tickFormat(function(t){return t}),b.orient(N?"right":"left").tickFormat(d3.format(",.1f")),C.duration(0).valueFormatter(function(t,e){return b.tickFormat()(t,e)}).headerFormatter(function(t,e){return y.tickFormat()(t,e)}),x.updateState(!1),lt.utils.renderWatch(z)),W=!1;function B(t){return n.reset(),n.models(v),A&&n.models(y),O&&n.models(b),t.each(function(u){var t,e,n,i=d3.select(this),c=this,r=(lt.utils.initSVG(i),lt.utils.availableWidth($,i,k)),o=lt.utils.availableHeight(S,i,k);if(B.update=function(){(0===V?i:i.transition().duration(V)).call(B)},B.container=this,H.setter((e=u,function(n){void 0!==n.stacked&&(W=n.stacked),void 0!==n.active&&e.forEach(function(t,e){t.disabled=!n.active[e]})}),B.update).getter((t=u,function(){return{active:t.map(function(t){return!t.disabled}),stacked:W}})).update(),H.disabled=u.map(function(t){return!!t.disabled}),!F)for(n in F={},H)H[n]instanceof Array?F[n]=H[n].slice(0):F[n]=H[n];if(!(u&&u.length&&u.filter(function(t){return t.values.length}).length))return lt.utils.noData(B,i),B;i.selectAll(".nv-noData").remove(),m=v.xScale(),g=v.yScale();var s,a,l,h=i.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([u]),d=h.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend").append("g"),p=h.select("g");d.append("g").attr("class","nv-x nv-axis"),d.append("g").attr("class","nv-y nv-axis"),d.append("g").attr("class","nv-barsWrap"),d.append("g").attr("class","nv-legendWrap"),d.append("g").attr("class","nv-controlsWrap"),d.append("g").attr("class","nv-interactive"),M?(w.width(r-f()),p.select(".nv-legendWrap").datum(u).call(w),k.top!=w.height()&&(k.top=w.height(),o=lt.utils.availableHeight(S,i,k)),p.select(".nv-legendWrap").attr("transform","translate("+f()+","+-k.top+")")):p.select(".nv-legendWrap").selectAll("*").remove(),T?(s=[{key:D.grouped||"Grouped",disabled:v.stacked()},{key:D.stacked||"Stacked",disabled:!v.stacked()}],x.width(f()).color(["#444","#444","#444"]),p.select(".nv-controlsWrap").datum(s).attr("transform","translate(0,"+-k.top+")").call(x)):p.select(".nv-controlsWrap").selectAll("*").remove(),h.attr("transform","translate("+k.left+","+k.top+")"),N&&p.select(".nv-y.nv-axis").attr("transform","translate("+r+",0)"),v.disabled(u.map(function(t){return t.disabled})).width(r).height(o).color(u.map(function(t,e){return t.color||E(t,e)}).filter(function(t,e){return!u[e].disabled})),p.select(".nv-barsWrap").datum(u.filter(function(t){return!t.disabled})).call(v),A&&(y.scale(m)._ticks(lt.utils.calcTicksX(r/100,u)).tickSize(-o,0),p.select(".nv-x.nv-axis").attr("transform","translate(0,"+g.range()[0]+")"),p.select(".nv-x.nv-axis").call(y),(d=p.select(".nv-x.nv-axis > g").selectAll("g")).selectAll("line, text").style("opacity",1),R&&(a=function(t,e){return"translate("+t+","+e+")"},d.selectAll("text").attr("transform",function(t,e,n){return a(0,n%2==0?5:17)}),l=d3.selectAll(".nv-x.nv-axis .nv-wrap g g text")[0].length,p.selectAll(".nv-x.nv-axis .nv-axisMaxMin text").attr("transform",function(t,e){return a(0,0===e||l%2!=0?17:5)})),I&&p.selectAll(".tick text").call(lt.utils.wrapTicks,B.xAxis.rangeBand()),P&&d.filter(function(t,e){return e%Math.ceil(u[0].values.length/(r/100))!=0}).selectAll("text, line").style("opacity",0),L&&d.selectAll(".tick text").attr("transform","rotate("+L+" 0,0)").style("text-anchor",0<L?"start":"end"),p.select(".nv-x.nv-axis").selectAll("g.nv-axisMaxMin text").style("opacity",1)),O&&(b.scale(g)._ticks(lt.utils.calcTicksY(o/36,u)).tickSize(-r,0),p.select(".nv-y.nv-axis").call(b)),j&&(_.width(r).height(o).margin({left:k.left,top:k.top}).svgContainer(i).xScale(m),h.select(".nv-interactive").call(_)),w.dispatch.on("stateChange",function(t){for(var e in t)H[e]=t[e];z.stateChange(H),B.update()}),x.dispatch.on("legendClick",function(t,e){if(t.disabled){switch(s=s.map(function(t){return t.disabled=!0,t}),t.disabled=!1,t.key){case"Grouped":case D.grouped:v.stacked(!1);break;case"Stacked":case D.stacked:v.stacked(!0)}H.stacked=v.stacked(),z.stateChange(H),B.update()}}),z.on("changeState",function(n){void 0!==n.disabled&&(u.forEach(function(t,e){t.disabled=n.disabled[e]}),H.disabled=n.disabled),void 0!==n.stacked&&(v.stacked(n.stacked),H.stacked=n.stacked,W=n.stacked),B.update()}),j?(_.dispatch.on("elementMousemove",function(i){var r,o,s,a,l;null!=i.pointXValue&&(l=[],u.filter(function(t,e){return t.seriesIndex=e,!t.disabled}
1).forEach(function(t,e){o=m.domain().indexOf(i.pointXValue);var n=t.values[o];void 0!==n&&(a=n.x,void 0===r&&(r=n),void 0===s&&(s=i.mouseX),l.push({key:t.key,value:B.y()(n,o),color:E(t,t.seriesIndex),data:t.values[o]}))}),_.tooltip.chartContainer(c.parentNode).data({value:a,index:o,series:l})(),_.renderGuideLine(s))}),_.dispatch.on("elementMouseout",function(t){_.tooltip.hidden(!0)})):(v.dispatch.on("elementMouseover.tooltip",function(t){t.value=B.x()(t.data),t.series={key:t.data.key,value:B.y()(t.data),color:t.color},C.data(t).hidden(!1)}),v.dispatch.on("elementMouseout.tooltip",function(t){C.hidden(!0)}),v.dispatch.on("elementMousemove.tooltip",function(t){C()}))}),n.renderEnd("multibarchart immediate"),B}return B.dispatch=z,B.multibar=v,B.legend=w,B.controls=x,B.xAxis=y,B.yAxis=b,B.state=H,B.tooltip=C,B.interactiveLayer=_,B.options=lt.utils.optionsFunc.bind(B),B._options=Object.create({},{width:{get:function(){return $},set:function(t){$=t}},height:{get:function(){return S},set:function(t){S=t}},showLegend:{get:function(){return M},set:function(t){M=t}},showControls:{get:function(){return T},set:function(t){T=t}},controlLabels:{get:function(){return D},set:function(t){D=t}},showXAxis:{get:function(){return A},set:function(t){A=t}},showYAxis:{get:function(){return O},set:function(t){O=t}},defaultState:{get:function(){return F},set:function(t){F=t}},noData:{get:function(){return e},set:function(t){e=t}},reduceXTicks:{get:function(){return P},set:function(t){P=t}},rotateLabels:{get:function(){return L},set:function(t){L=t}},staggerLabels:{get:function(){return R},set:function(t){R=t}},wrapLabels:{get:function(){return I},set:function(t){I=!!t}},margin:{get:function(){return k},set:function(t){k.top=(void 0!==t.top?t:k).top,k.right=(void 0!==t.right?t:k).right,k.bottom=(void 0!==t.bottom?t:k).bottom,k.left=(void 0!==t.left?t:k).left}},duration:{get:function(){return V},set:function(t){V=t,v.duration(V),y.duration(V),b.duration(V),n.reset(V)}},color:{get:function(){return E},set:function(t){E=lt.utils.getColor(t),w.color(E)}},rightAlignYAxis:{get:function(){return N},set:function(t){N=t,b.orient(N?"right":"left")}},useInteractiveGuideline:{get:function(){return j},set:function(t){j=t}},barColor:{get:function(){return v.barColor},set:function(t){v.barColor(t),w.color(function(t,e){return d3.rgb("#ccc").darker(1.5*e).toString()})}}}),lt.utils.inheritOptions(B,v),lt.utils.initOptions(B),B},lt.models.multiBarHorizontal=function(){"use strict";var i,o,s,a,l,u,c={top:0,right:0,bottom:0,left:0},h=960,d=500,e=Math.floor(1e4*Math.random()),p=null,f=d3.scale.ordinal(),m=d3.scale.linear(),g=function(t){return t.x},v=function(t){return t.y},y=function(t){return t.yErr},b=[0],_=lt.utils.defaultColor(),w=null,x=!1,C=!1,k=60,$=.1,S=d3.format(",.2f"),n=250,E=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),T=lt.utils.renderWatch(E,n);function r(t){return T.reset(),t.each(function(r){var t=h-c.left-c.right,e=d-c.top-c.bottom,n=(p=d3.select(this),lt.utils.initSVG(p),(r=x?d3.layout.stack().offset("zero").values(function(t){return t.values}).y(v)(r):r).forEach(function(e,n){e.values.forEach(function(t){t.series=n,t.key=e.key})}),x&&r[0].values.map(function(t,e){var n=0,i=0;r.map(function(t){t=t.values[e];t.size=Math.abs(t.y),t.y<0?(t.y1=i-t.size,i-=t.size):(t.y1=n,n+=t.size)})}),o&&s?[]:r.map(function(t){return t.values.map(function(t,e){return{x:g(t,e),y:v(t,e),y0:t.y0,y1:t.y1}})})),e=(f.domain(o||d3.merge(n).map(function(t){return t.x})).rangeBands(a||[0,e],$),m.domain(s||d3.extent(d3.merge(n).map(function(t){return x?0<t.y?t.y1+t.y:t.y1:t.y}).concat(b))),C&&!x?m.range(l||[m.domain()[0]<0?k:0,t-(0<m.domain()[1]?k:0)]):m.range(l||[0,t]),u=u||d3.scale.linear().domain(m.domain()).range([m(0),m(0)]),d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([r])),n=e.enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal"),t=(n.append("defs"),n.append("g")),n=(e.select("g"),t.append("g").attr("class","nv-groups"),e.attr("transform","translate("+c.left+","+c.top+")"),e.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t,e){return e})),t=(n.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),n.exit().watchTransition(T,"multibarhorizontal: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),n.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return _(t,e)}).style("stroke",function(t,e){return _(t,e)}),n.watchTransition(T,"multibarhorizontal: groups").style("stroke-opacity",1).style("fill-opacity",.75),n.selectAll("g.nv-bar").data(function(t){return t.values})),e=(t.exit().remove(),t.enter().append("g").attr("transform",function(t,e,n){return"translate("+u(x?t.
1y0:0)+","+(x?0:n*f.rangeBand()/r.length+f(g(t,e)))+")"}));e.append("rect").attr("width",0).attr("height",f.rangeBand()/(x?1:r.length)),t.on("mouseover",function(t,e){d3.select(this).classed("hover",!0),E.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),E.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){E.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){E.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){E.elementClick({data:t,index:e,color:d3.select(this).style("fill"),event:d3.event,element:this}),d3.event.stopPropagation()}).on("dblclick",function(t,e){E.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}),y(r[0],0)&&(e.append("polyline"),t.select("polyline").attr("fill","none").attr("points",function(t,e){t=y(t,e),e=.8*f.rangeBand()/(2*(x?1:r.length));return[[(t=(t=t.length?t:[-Math.abs(t),Math.abs(t)]).map(function(t){return m(t)-m(0)}))[0],-e],[t[0],e],[t[0],0],[t[1],0],[t[1],-e],[t[1],e]].map(function(t){return t.join(",")}).join(" ")}).attr("transform",function(t,e){var n=f.rangeBand()/(2*(x?1:r.length));return"translate("+(v(t,e)<0?0:m(v(t,e))-m(0))+", "+n+")"})),e.append("text"),C&&!x?(t.select("text").attr("text-anchor",function(t,e){return v(t,e)<0?"end":"start"}).attr("y",f.rangeBand()/(2*r.length)).attr("dy",".32em").text(function(t,e){var n=S(v(t,e)),t=y(t,e);return void 0===t?n:t.length?n+"+"+S(Math.abs(t[1]))+"-"+S(Math.abs(t[0])):n+"±"+S(Math.abs(t))}),t.watchTransition(T,"multibarhorizontal: bars").select("text").attr("x",function(t,e){return v(t,e)<0?-4:m(v(t,e))-m(0)+4})):t.selectAll("text").text(""),t.selectAll("text.nv-bar-label").text(""),t.attr("class",function(t,e){return v(t,e)<0?"nv-bar negative":"nv-bar positive"}),w&&(i=i||r.map(function(){return!0}),t.style("fill",function(t,e,n){return d3.rgb(w(t,e)).darker(i.map(function(t,e){return e}).filter(function(t,e){return!i[e]})[n]).toString()}).style("stroke",function(t,e,n){return d3.rgb(w(t,e)).darker(i.map(function(t,e){return e}).filter(function(t,e){return!i[e]})[n]).toString()})),x?t.watchTransition(T,"multibarhorizontal: bars").attr("transform",function(t,e){return"translate("+m(t.y1)+","+f(g(t,e))+")"}).select("rect").attr("width",function(t,e){return Math.abs(m(v(t,e)+t.y0)-m(t.y0))||0}).attr("height",f.rangeBand()):t.watchTransition(T,"multibarhorizontal: bars").attr("transform",function(t,e){return"translate("+(v(t,e)<0?m(v(t,e)):m(0))+","+(t.series*f.rangeBand()/r.length+f(g(t,e)))+")"}).select("rect").attr("height",f.rangeBand()/r.length).attr("width",function(t,e){return Math.max(Math.abs(m(v(t,e))-m(0)),1)||0}),f.copy(),u=m.copy()}),T.renderEnd("multibarHorizontal immediate"),r}return r.dispatch=E,r.options=lt.utils.optionsFunc.bind(r),r._options=Object.create({},{width:{get:function(){return h},set:function(t){h=t}},height:{get:function(){return d},set:function(t){d=t}},x:{get:function(){return g},set:function(t){g=t}},y:{get:function(){return v},set:function(t){v=t}},yErr:{get:function(){return y},set:function(t){y=t}},xScale:{get:function(){return f},set:function(t){f=t}},yScale:{get:function(){return m},set:function(t){m=t}},xDomain:{get:function(){return o},set:function(t){o=t}},yDomain:{get:function(){return s},set:function(t){s=t}},xRange:{get:function(){return a}
1,set:function(t){a=t}},yRange:{get:function(){return l},set:function(t){l=t}},forceY:{get:function(){return b},set:function(t){b=t}},stacked:{get:function(){return x},set:function(t){x=t}},showValues:{get:function(){return C},set:function(t){C=t}},disabled:{get:function(){return i},set:function(t){i=t}},id:{get:function(){return e},set:function(t){e=t}},valueFormat:{get:function(){return S},set:function(t){S=t}},valuePadding:{get:function(){return k},set:function(t){k=t}},groupSpacing:{get:function(){return $},set:function(t){$=t}},margin:{get:function(){return c},set:function(t){c.top=(void 0!==t.top?t:c).top,c.right=(void 0!==t.right?t:c).right,c.bottom=(void 0!==t.bottom?t:c).bottom,c.left=(void 0!==t.left?t:c).left}},duration:{get:function(){return n},set:function(t){n=t,T.reset(n)}},color:{get:function(){return _},set:function(t){_=lt.utils.getColor(t)}},barColor:{get:function(){return w},set:function(t){w=t?lt.utils.getColor(t):null}}}),lt.utils.initOptions(r),r},lt.models.multiBarHorizontalChart=function(){"use strict";function h(){return C?180:0}var d,p,f=lt.models.multiBarHorizontal(),m=lt.models.axis(),g=lt.models.axis(),v=lt.models.legend().height(30),y=lt.models.legend().height(30),e=lt.models.tooltip(),b={top:30,right:20,bottom:50,left:60},_=null,w=null,x=lt.utils.defaultColor(),C=!0,k={},$=!0,S=!0,E=!0,T=!1,D=lt.utils.state(),M=null,n=null,A=d3.dispatch("stateChange","changeState","renderEnd"),O=250,i=(D.stacked=!1,f.stacked(T),m.orient("left").tickPadding(5).showMaxMin(!1).tickFormat(function(t){return t}),g.orient("bottom").tickFormat(d3.format(",.1f")),e.duration(0).valueFormatter(function(t,e){return g.tickFormat()(t,e)}).headerFormatter(function(t,e){return m.tickFormat()(t,e)}),y.updateState(!1),lt.utils.renderWatch(A,O));function N(t){return i.reset(),i.models(f),S&&i.models(m),E&&i.models(g),t.each(function(i){var t,e,n,r=d3.select(this),o=(lt.utils.initSVG(r),lt.utils.availableWidth(_,r,b)),s=lt.utils.availableHeight(w,r,b);if(N.update=function(){r.transition().duration(O).call(N)},N.container=this,T=f.stacked(),D.setter((e=i,function(n){void 0!==n.stacked&&(T=n.stacked),void 0!==n.active&&e.forEach(function(t,e){t.disabled=!n.active[e]})}),N.update).getter((t=i,function(){return{active:t.map(function(t){return!t.disabled}),stacked:T}})).update(),D.disabled=i.map(function(t){return!!t.disabled}),!M)for(n in M={},D)D[n]instanceof Array?M[n]=D[n].slice(0):M[n]=D[n];if(!(i&&i.length&&i.filter(function(t){return t.values.length}).length))return lt.utils.noData(N,r),N;r.selectAll(".nv-noData").remove(),d=f.xScale(),p=f.yScale().clamp(!0);var a,l=r.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").data([i]),u=l.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarHorizontalChart").append("g"),c=l.select("g");u.append("g").attr("class","nv-x nv-axis"),u.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),u.append("g").attr("class","nv-barsWrap"),u.append("g").attr("class","nv-legendWrap"),u.append("g").attr("class","nv-controlsWrap"),$?(v.width(o-h()),c.select(".nv-legendWrap").datum(i).call(v),b.top!=v.height()&&(b.top=v.height(),s=lt.utils.availableHeight(w,r,b)),c.select(".nv-legendWrap").attr("transform","translate("+h()+","+-b.top+")")):c.select(".nv-legendWrap").selectAll("*").remove(),C?(a=[{key:k.grouped||"Grouped",disabled:f.stacked()},{key:k.stacked||"Stacked",disabled:!f.stacked()}],y.width(h()).color(["#444","#444","#444"]),c.select(".nv-controlsWrap").datum(a).attr("transform","translate(0,"+-b.top+")").call(y)):c.select(".nv-controlsWrap").selectAll("*").remove(),l.attr("transform","translate("+b.left+","+b.top+")"),f.disabled(i.map(function(t){return t.disabled})).width(o).height(s).color(i.map(function(t,e){return t.color||x(t,e)}).filter(function(t,e){return!i[e].disabled})),c.select(".nv-barsWrap").datum(i.filter(function(t){return!t.disabled})).transition().call(f),S&&(m.scale(d)._ticks(lt.utils.calcTicksY(s/24,i)).tickSize(-o,0),c.select(".nv-x.nv-axis").call(m),c.select(".nv-x.nv-axis").selectAll("g").selectAll("line, text")),E&&(g.scale(p)._ticks(lt.utils.calcTicksX(o/100,i)).tickSize(-s,0),c.select(".nv-y.nv-axis").attr("transform","translate(0,"+s+")"),
1c.select(".nv-y.nv-axis").call(g)),c.select(".nv-zeroLine line").attr("x1",p(0)).attr("x2",p(0)).attr("y1",0).attr("y2",-s),v.dispatch.on("stateChange",function(t){for(var e in t)D[e]=t[e];A.stateChange(D),N.update()}),y.dispatch.on("legendClick",function(t,e){if(t.disabled){switch(a=a.map(function(t){return t.disabled=!0,t}),t.disabled=!1,t.key){case"Grouped":case k.grouped:f.stacked(!1);break;case"Stacked":case k.stacked:f.stacked(!0)}D.stacked=f.stacked(),A.stateChange(D),T=f.stacked(),N.update()}}),A.on("changeState",function(n){void 0!==n.disabled&&(i.forEach(function(t,e){t.disabled=n.disabled[e]}),D.disabled=n.disabled),void 0!==n.stacked&&(f.stacked(n.stacked),D.stacked=n.stacked,T=n.stacked),N.update()})}),i.renderEnd("multibar horizontal chart immediate"),N}return f.dispatch.on("elementMouseover.tooltip",function(t){t.value=N.x()(t.data),t.series={key:t.data.key,value:N.y()(t.data),color:t.color},e.data(t).hidden(!1)}),f.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),f.dispatch.on("elementMousemove.tooltip",function(t){e()}),N.dispatch=A,N.multibar=f,N.legend=v,N.controls=y,N.xAxis=m,N.yAxis=g,N.state=D,N.tooltip=e,N.options=lt.utils.optionsFunc.bind(N),N._options=Object.create({},{width:{get:function(){return _},set:function(t){_=t}},height:{get:function(){return w},set:function(t){w=t}},showLegend:{get:function(){return $},set:function(t){$=t}},showControls:{get:function(){return C},set:function(t){C=t}},controlLabels:{get:function(){return k},set:function(t){k=t}},showXAxis:{get:function(){return S},set:function(t){S=t}},showYAxis:{get:function(){return E},set:function(t){E=t}},defaultState:{get:function(){return M},set:function(t){M=t}},noData:{get:function(){return n},set:function(t){n=t}},margin:{get:function(){return b},set:function(t){b.top=(void 0!==t.top?t:b).top,b.right=(void 0!==t.right?t:b).right,b.bottom=(void 0!==t.bottom?t:b).bottom,b.left=(void 0!==t.left?t:b).left}},duration:{get:function(){return O},set:function(t){O=t,i.reset(O),f.duration(O),m.duration(O),g.duration(O)}},color:{get:function(){return x},set:function(t){x=lt.utils.getColor(t),v.color(x)}},barColor:{get:function(){return f.barColor},set:function(t){f.barColor(t),v.color(function(t,e){return d3.rgb("#ccc").darker(1.5*e).toString()})}}}),lt.utils.inheritOptions(N,f),lt.utils.initOptions(N),N},lt.models.multiChart=function(){"use strict";var A,O,N={top:30,right:20,bottom:50,left:60},P=lt.utils.defaultColor(),R=null,I=null,L=!0,e=null,H=function(t){return t.x},F=function(t){return t.y},z="linear",n=!0,V=lt.interactiveGuideline(),j=!1,W=" (right axis)",B=d3.scale.linear(),q=d3.scale.linear(),U=d3.scale.linear(),Y=lt.models.line().yScale(q),G=lt.models.line().yScale(U),K=lt.models.scatter().yScale(q),X=lt.models.scatter().yScale(U),Z=lt.models.multiBar().stacked(!1).yScale(q),Q=lt.models.multiBar().stacked(!1).yScale(U),J=lt.models.stackedArea().yScale(q),tt=lt.models.stackedArea().yScale(U),et=lt.models.axis().scale(B).orient("bottom").tickPadding(5),nt=lt.models.axis().scale(q).orient("left"),it=lt.models.axis().scale(U).orient("right"),rt=lt.models.legend().height(30),ot=lt.models.tooltip(),t=d3.dispatch(),st=[Y,G,K,X,Z,Q,J,tt];function at(t){return t.each(function(i){var t=d3.select(this),e=(lt.utils.initSVG(t),at.update=function(){t.transition().call(at)},at.container=this,lt.utils.availableWidth(R,t,N)),n=lt.utils.availableHeight(I,t,N),r=i.filter(function(t){return"line"==t.type&&1==t.yAxis}),o=i.filter(function(t){return"line"==t.type&&2==t.yAxis}),s=i.filter(function(t){return"scatter"==t.type&&1==t.yAxis}),a=i.filter(function(t){return"scatter"==t.type&&2==t.yAxis}),l=i.filter(function(t){return"bar"==t.type&&1==t.yAxis}),u=i.filter(function(t){return"bar"==t.type&&2==t.yAxis}),c=i.filter(function(t){return"area"==t.type&&1==t.yAxis}),h=i.filter(function(t){return"area"==t.type&&2==t.yAxis});if(!(i&&i.length&&i.filter(function(t){return t.values.length}).length))return lt.utils.noData(at,t),at;t.selectAll(".nv-noData").remove();var d=i.filter(function(t){return!t.disabled&&1==t.yAxis}).map(function(t){return t.values.map(function(t,e){return{x:H(t),y:F(t)}})}),p=i.filter(function(t){return!t.disabled&&2==t.yAxis}).map(function(t){return t.values.map(function(t,e){return{x:H(t),y:F(t)}})}),f=(B.domain(d3.extent(d3.merge(d.concat(p)),function(t){return t.x})).range([0,e]),t.selectAll("g.wrap.multiChart").data([i])),m=f.enter().append("g").attr("class","wrap nvd3 multiChart").append("g"),m=(m.append("g").attr("class","nv-x nv-axis"),m.append("g").attr("class","nv-y1 nv-axis"),m.append("g").attr("class","nv-y2 nv-axis"),m.append("g").attr("class","stack1Wrap"),m.append("g").attr("class","stack2Wrap"),m.append("g").attr("class","bars1Wrap"),m.append("g").attr("class","bars2Wrap"),m.append("g").attr("class","scatters1Wrap"),m.append("g").attr("class","scatters2Wrap"),m.append("g").attr("class","lines1Wrap"),m.append("g").attr("class","lines2Wrap"),m.append("g").attr("class","legendWrap"),m.append("g").attr("class","nv-interactive"),f.select("g")),g=i.map(function(t,e){return i[e].color||P(t,e)}),v=(L?(v=rt.align()?e/2:e,y=rt.align()?v:0,rt.width(v),rt.color(g),m.select(".legendWrap").datum(i.map(function(t){return t.originalKey=void 0===t.originalKey?t.key:t.originalKey,t.key=t.originalKey+(1==t.yAxis?"":W),t})).call(rt),N.top!=rt.height()&&(N.top=rt.height(),n=lt.utils.availableHeight(I,t,N)),m.select(".legendWrap").attr("transform","translate("+y+","+-N.top+")")):m.select(".legendWrap").selectAll("*").remove(),Y.width(e).height(n).interpolate(z).color(g.filter(function(t,e){return!i[e].disabled&&1==i[e].yAxis&&"line"==i[e].type})),G.width(e).height(n).interpolate(z).color(g.filter(function(t,e){return!i[e].disabled&&2==i[e].yAxis&&"line"==i[e].type}
1)),K.width(e).height(n).color(g.filter(function(t,e){return!i[e].disabled&&1==i[e].yAxis&&"scatter"==i[e].type})),X.width(e).height(n).color(g.filter(function(t,e){return!i[e].disabled&&2==i[e].yAxis&&"scatter"==i[e].type})),Z.width(e).height(n).color(g.filter(function(t,e){return!i[e].disabled&&1==i[e].yAxis&&"bar"==i[e].type})),Q.width(e).height(n).color(g.filter(function(t,e){return!i[e].disabled&&2==i[e].yAxis&&"bar"==i[e].type})),J.width(e).height(n).interpolate(z).color(g.filter(function(t,e){return!i[e].disabled&&1==i[e].yAxis&&"area"==i[e].type})),tt.width(e).height(n).interpolate(z).color(g.filter(function(t,e){return!i[e].disabled&&2==i[e].yAxis&&"area"==i[e].type})),m.attr("transform","translate("+N.left+","+N.top+")"),m.select(".lines1Wrap").datum(r.filter(function(t){return!t.disabled}))),y=m.select(".scatters1Wrap").datum(s.filter(function(t){return!t.disabled})),g=m.select(".bars1Wrap").datum(l.filter(function(t){return!t.disabled})),b=m.select(".stack1Wrap").datum(c.filter(function(t){return!t.disabled})),_=m.select(".lines2Wrap").datum(o.filter(function(t){return!t.disabled})),w=m.select(".scatters2Wrap").datum(a.filter(function(t){return!t.disabled})),x=m.select(".bars2Wrap").datum(u.filter(function(t){return!t.disabled})),C=m.select(".stack2Wrap").datum(h.filter(function(t){return!t.disabled})),k=c.length?c.map(function(t){return t.values}).reduce(function(t,n){return t.map(function(t,e){return{x:t.x,y:t.y+n[e].y}})}).concat([{x:0,y:0}]):[],$=h.length?h.map(function(t){return t.values}).reduce(function(t,n){return t.map(function(t,e){return{x:t.x,y:t.y+n[e].y}})}).concat([{x:0,y:0}]):[];function S(t){var n=2===i[t.seriesIndex].yAxis?it:nt;t.value=t.point.x,t.series={value:t.point.y,color:t.point.color,key:t.series.key},ot.duration(0).headerFormatter(function(t,e){return et.tickFormat()(t,e)}).valueFormatter(function(t,e){return n.tickFormat()(t,e)}).data(t).hidden(!1)}function E(t){var n=2===i[t.seriesIndex].yAxis?it:nt;t.value=t.point.x,t.series={value:t.point.y,color:t.point.color,key:t.series.key},ot.duration(100).headerFormatter(function(t,e){return et.tickFormat()(t,e)}).valueFormatter(function(t,e){return n.tickFormat()(t,e)}).data(t).hidden(!1)}function T(t){var n=2===i[t.seriesIndex].yAxis?it:nt;t.point.x=J.x()(t.point),t.point.y=J.y()(t.point),ot.duration(0).headerFormatter(function(t,e){return et.tickFormat()(t,e)}).valueFormatter(function(t,e){return n.tickFormat()(t,e)}).data(t).hidden(!1)}function D(t){var n=2===i[t.data.series].yAxis?it:nt;t.value=Z.x()(t.data),t.series={value:Z.y()(t.data),color:t.color,key:t.data.key},ot.duration(0).headerFormatter(function(t,e){return et.tickFormat()(t,e)}).valueFormatter(function(t,e){return n.tickFormat()(t,e)}).data(t).hidden(!1)}function M(){for(var t=0,e=st.length;t<e;t++){var n=st[t];try{n.clearHighlights()}catch(t){}}}q.domain(A||d3.extent(d3.merge(d).concat(k),function(t){return t.y})).range([0,n]),U.domain(O||d3.extent(d3.merge(p).concat($),function(t){return t.y})).range([0,n]),Y.yDomain(q.domain()),K.yDomain(q.domain()),Z.yDomain(q.domain()),J.yDomain(q.domain()),G.yDomain(U.domain()),X.yDomain(U.domain()),Q.yDomain(U.domain()),tt.yDomain(U.domain()),c.length&&d3.transition(b).call(J),h.length&&d3.transition(C).call(tt),l.length&&d3.transition(g).call(Z),u.length&&d3.transition(x).call(Q),r.length&&d3.transition(v).call(Y),o.length&&d3.transition(_).call(G),s.length&&d3.transition(y).call(K),a.length&&d3.transition(w).call(X),et._ticks(lt.utils.calcTicksX(e/100,i)).tickSize(-n,0),m.select(".nv-x.nv-axis").attr("transform","translate(0,"+n+")"),d3.transition(m.select(".nv-x.nv-axis")).call(et),nt._ticks(lt.utils.calcTicksY(n/36,i)).tickSize(-e,0),d3.transition(m.select(".nv-y1.nv-axis")).call(nt),it._ticks(lt.utils.calcTicksY(n/36,i)).tickSize(-e,0),d3.transition(m.select(".nv-y2.nv-axis")).call(it),m.select(".nv-y1.nv-axis").classed("nv-disabled",!d.length).attr("transform","translate("+B.range()[0]+",0)"),m.select(".nv-y2.nv-axis").classed("nv-disabled",!p.length).attr("transform","translate("+B.range()[1]+",0)"),rt.dispatch.on("stateChange",function(t){at.update(
vendor: 8,017 bytes, line 1
1)}),j&&(V.width(e).height(n).margin({left:N.left,top:N.top}).svgContainer(t).xScale(B),f.select(".nv-interactive").call(V)),j?(V.dispatch.on("elementMousemove",function(h){M();var d,p,f,m=[];i.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(t,e){var n=B.domain(),i=t.values.filter(function(t,e){return at.x()(t,e)>=n[0]&&at.x()(t,e)<=n[1]}),i=i[p=lt.interactiveBisect(i,h.pointXValue,at.x())],r=at.y()(i,p);if(null!==r)for(var o=e,s=p,a=!0,l=0,u=st.length;l<u;l++){var c=st[l];try{c.highlightPoint(o,s,a)}catch(t){}}void 0!==i&&(void 0===d&&(d=i),void 0===f&&(f=B(at.x()(i,p))),m.push({key:t.key,value:r,color:P(t,t.seriesIndex),data:i,yAxis:2==t.yAxis?it:nt}))}),V.tooltip.chartContainer(at.container.parentNode).headerFormatter(function(t,e){return et.tickFormat()(t,e)}).valueFormatter(function(t,e){e=m[e].yAxis;return null===t?"N/A":e.tickFormat()(t)}).data({value:at.x()(d,p),index:p,series:m})(),V.renderGuideLine(f)}),V.dispatch.on("elementMouseout",function(t){M()})):(Y.dispatch.on("elementMouseover.tooltip",S),G.dispatch.on("elementMouseover.tooltip",S),Y.dispatch.on("elementMouseout.tooltip",function(t){ot.hidden(!0)}),G.dispatch.on("elementMouseout.tooltip",function(t){ot.hidden(!0)}),K.dispatch.on("elementMouseover.tooltip",E),X.dispatch.on("elementMouseover.tooltip",E),K.dispatch.on("elementMouseout.tooltip",function(t){ot.hidden(!0)}),X.dispatch.on("elementMouseout.tooltip",function(t){ot.hidden(!0)}),J.dispatch.on("elementMouseover.tooltip",T),tt.dispatch.on("elementMouseover.tooltip",T),J.dispatch.on("elementMouseout.tooltip",function(t){ot.hidden(!0)}),tt.dispatch.on("elementMouseout.tooltip",function(t){ot.hidden(!0)}),Z.dispatch.on("elementMouseover.tooltip",D),Q.dispatch.on("elementMouseover.tooltip",D),Z.dispatch.on("elementMouseout.tooltip",function(t){ot.hidden(!0)}),Q.dispatch.on("elementMouseout.tooltip",function(t){ot.hidden(!0)}),Z.dispatch.on("elementMousemove.tooltip",function(t){ot()}),Q.dispatch.on("elementMousemove.tooltip",function(t){ot()}))}),at}return at.dispatch=t,at.legend=rt,at.lines1=Y,at.lines2=G,at.scatters1=K,at.scatters2=X,at.bars1=Z,at.bars2=Q,at.stack1=J,at.stack2=tt,at.xAxis=et,at.yAxis1=nt,at.yAxis2=it,at.tooltip=ot,at.interactiveLayer=V,at.options=lt.utils.optionsFunc.bind(at),at._options=Object.create({},{width:{get:function(){return R},set:function(t){R=t}},height:{get:function(){return I},set:function(t){I=t}},showLegend:{get:function(){return L},set:function(t){L=t}},yDomain1:{get:function(){return A},set:function(t){A=t}},yDomain2:{get:function(){return O},set:function(t){O=t}},noData:{get:function(){return e},set:function(t){e=t}},interpolate:{get:function(){return z},set:function(t){z=t}},legendRightAxisHint:{get:function(){return W},set:function(t){W=t}},margin:{get:function(){return N},set:function(t){N.top=(void 0!==t.top?t:N).top,N.right=(void 0!==t.right?t:N).right,N.bottom=(void 0!==t.bottom?t:N).bottom,N.left=(void 0!==t.left?t:N).left}},color:{get:function(){return P},set:function(t){P=lt.utils.getColor(t)}},x:{get:function(){return H},set:function(t){H=t,Y.x(t),G.x(t),K.x(t),X.x(t),Z.x(t),Q.x(t),J.x(t),tt.x(t)}},y:{get:function(){return F},set:function(t){F=t,Y.y(t),G.y(t),K.y(t),X.y(t),J.y(t),tt.y(t),Z.y(t),Q.y(t)}},useVoronoi:{get:function(){return n},set:function(t){n=t,Y.useVoronoi(t),G.useVoronoi(t),J.useVoronoi(t),tt.useVoronoi(t)}},useInteractiveGuideline:{get:function(){return j},set:function(t){(j=t)&&(Y.interactive(!1),Y.useVoronoi(!1),G.interactive(!1),G.useVoronoi(!1),J.interactive(!1),J.useVoronoi(!1),tt.interactive(!1),tt.useVoronoi(!1),K.interactive(!1),X.interactive(!1))}}}),lt.utils.initOptions(at),at},lt.models.ohlcBar=function(){"use strict";var l,u,c,h,d={top:0,right:0,bottom:0,left:0},p=null,f=null,m=Math.floor(1e4*Math.random()),g=null,v=d3.scale.linear(),y=d3.scale.linear(),b=function(t){return t.x},_=function(t){return t.y},w=function(t){return t.open},x=function(t){return t.close},C=function(t){return t.high},k=function(t){return t.low},$=[],S=[],E=!1,T=!0,D=lt.utils.defaultColor(),e=!1,M=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function n(t){return t.each(function(i){g=d3.select(this);var r=lt.utils.availableWidth(p,g,d),t=lt.utils.availableHeight(f,g,d),n=(lt.utils.initSVG(g),r/i[0].values.length*.9),e=(v.domain(l||d3.extent(i[0].values.map(b).concat($))),E?v.range(c||[.5*r/i[0].values.length,r*(i[0].values.length-.5)/i[0].values.length]):v.range(c||[5+n/2,r-n/2-5]),y.domain(u||[d3.min(i[0].values.map(k).concat(S)),d3.max(i[0].values.map(C).concat(S))]).range(h||[t,0]),v.domain()[0]===v.domain()[1]&&(v.domain()[0]?v.domain([v.domain()[0]-.01*v.domain()[0],v.domain()[1]+.01*v.domain()[1]]):v.domain([-1,1])),y.domain()[0]===y.domain()[1]&&(y.domain()[0]?y.domain([y.domain()[0]+.01*y.domain()[0],y.domain()[1]-.01*y.domain()[1]]):y.domain([-1,1])),d3.select(this).selectAll("g.nv-wrap.nv-ohlcBar").data([i[0].values])),o=e.enter().append("g").attr("class","nvd3 nv-wrap nv-ohlcBar"),s=o.append("defs"),o=o.append("g"),a=e.select("g"),o=(o.append("g").attr("class","nv-ticks"),e.attr("transform","translate("+d.left+","+d.top+")"),g.on("click",function(t,e){M.chartClick({data:t,index:e,pos:d3.event,id:m})}),s.append("clipPath").attr("id","nv-chart-clip-path-"+m).append("rect"),e.select("#nv-chart-clip-path-"+m+" rect").attr("width",r).attr("height",t),a.attr("clip-path",T?"url(#nv-chart-clip-path-"+m+")":""),e.select(".nv-ticks").selectAll(".nv-tick").data(function(t){return t}));o.exit().remove(),o.enter().append("path").attr("class",function(t,e,n){return(w(t,e)>x(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e}).attr("d",function(t,e){return"m0,0l0,"+(y(w(t,e))-y(C(t,e)))+"l"+-n/2+",0l"+n/2+",0l0,"+(y(k(t,e))-y(w(t,e)))+"l0,"+(y(x(t,e))-y(k(t,e)))+"l"+n/2+",0l"+-n/2+",0z"}).attr("transform",function(t,e){return"translate("+v(b(t,e))+","+y(C(t,e))+")"}).attr("fill",function(t,e){return D[0]}).attr("stroke",function(t,e){return D[0]}).attr("x",0).attr("y",function(t,e){return y(Math.max(0,_(t,e)))}).attr("height",function(t,e){return Math.abs(y(_(t,e))-y(0))}),o.attr("class",function(t,e,n){return(w(t,e)>x(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e}),d3.transition(o).attr("transform",function(t,e){return"translate("+v(b(t,e))+","+y(C(t,e))+")"}).attr("d",function(t,e){var n=r/i[0].values.length*.9;return"m0,0l0,"+(y(w(t,e))-y(C(t,e)))+"l"+-n/2+",0l"+n/2+",0l0,"+(y(k(t,e))-y(w(t,e)))+"l0,"+(y(x(t,e))-y(k(t,e)))+"l"+n/2+",0l"+-n/2+",0z"})}),n}return n.highlightPoint=function(t,e){n.clearHighlights(),g.select(".nv-ohlcBar .nv-tick-0-"+t).classed("hover",e)},n.clearHighlights=function(){g.select(".nv-ohlcBar .nv-tick.hover").classed("hover",!1)},n.dispatch=M,n.options=lt.utils.optionsFunc.bind(n),n._options=Object.create({},{width:{get:function(){return p},set:function(t){p=t}},height:{get:function(){return f},set:function(t){f=t}},xScale:{get:function(){return v},set:function(t){v=t}},yScale:{get:function(){return y},set:function(t){y=t}},xDomain:{get:function(){return l},set:function(t){l=t}},yDomain:{get:function(){return u},set:function(t){u=t}},xRange:{get:function(){return c},set:function(t){c=t}},yRange:{get:function(){return h},set:function(t){h=t}},forceX:{get:function(){return $},set:function(t){$=t}},forceY:{get:function(){return S},set:function(t){S=t}},padData:{get:function(){return E},set:function(t){E=t}},clipEdge:{get:function(){return T},set:function(t){T=t}},id:{get:function(){return m},set:function(t){m=t}},interactive:{get:function(){return e},set:function(t){e=t}},x:{get:function(){return b},set:function(t){b=t}},y:{get:function(){return _},set:function(t){_=t}},open:{get:function(){return w()},set:function(t){w=t}},close:{get:function(){return x()},set:function(t){x=t}},high:{get:function(){return C},set:function(t){C=t}},low:{get:function(){return k},set:function(t){k=t}},margin:{get:function(){return d}
1,set:function(t){d.top=(null!=t.top?t:d).top,d.right=(null!=t.right?t:d).right,d.bottom=(null!=t.bottom?t:d).bottom,d.left=(null!=t.left?t:d).left}},color:{get:function(){return D},set:function(t){D=lt.utils.getColor(t)}}}),lt.utils.initOptions(n),n},lt.models.parallelCoordinates=function(){"use strict";var x,C,k,$={top:30,right:0,bottom:10,left:0},S=null,E=null,T=null,D=null,M=d3.scale.ordinal(),A={},O="undefined values",N=[],P=[],R=[],I=!0,L=lt.utils.defaultColor(),H=[],F=[],z=[],V=[],j=1,W=d3.svg.line(),B=d3.svg.axis(),q=d3.dispatch("brushstart","brush","brushEnd","dimensionsOrder","stateChange","elementClick","elementMouseover","elementMouseout","elementMousemove","renderEnd","activeChanged"),e=lt.utils.renderWatch(q);function n(t){return e.reset(),t.each(function(t){var i,o,s,e=d3.select(this),a=(T=lt.utils.availableWidth(S,e,$),D=lt.utils.availableHeight(E,e,$),lt.utils.initSVG(e),void 0===t[0].values&&(i=[],t.forEach(function(e){var n={};Object.keys(e).forEach(function(t){"name"!==t&&(n[t]=e[t])}),i.push({key:e.name,values:n})}),t=i),t.map(function(t){return t.values})),l=(0===F.length&&(F=t),R=N.sort(function(t,e){return t.currentPosition-e.currentPosition}).map(function(t){return t.key}),P=N.filter(function(t){return!t.disabled}),M.rangePoints([0,T],1).domain(P.map(function(t){return t.key})),{}),u=!1,r=[],e=(R.forEach(function(e){var t=d3.extent(a,function(t){return+t[e]}),n=t[0],t=t[1],i=!1,r=((isNaN(n)||isNaN(t))&&(i=!0,t=n=0),n===t&&(n-=1,t+=1),H.filter(function(t){return t.dimension==e}));0!==r.length&&(i?(n=A[e].domain()[0],t=A[e].domain()[1]):!r[0].hasOnlyNaN&&I?(n=n>r[0].extent[0]?r[0].extent[0]:n,t=t<r[0].extent[1]?r[0].extent[1]:t):r[0].hasNaN&&(t=t<r[0].extent[1]?r[0].extent[1]:t,l[e]=A[e].domain()[1],u=!0)),A[e]=d3.scale.linear().domain([n,t]).range([.9*(D-12),0]),V=[],A[e].brush=d3.svg.brush().y(A[e]).on("brushstart",v).on("brush",y).on("brushend",b)}),e.selectAll("g.nv-wrap.nv-parallelCoordinates").data([t])),n=e.enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinates").append("g"),c=e.select("g"),n=(n.append("g").attr("class","nv-parallelCoordinates background"),n.append("g").attr("class","nv-parallelCoordinates foreground"),n.append("g").attr("class","nv-parallelCoordinates missingValuesline"),e.attr("transform","translate("+$.left+","+$.top+")"),W.interpolate("cardinal").tension(j),B.orient("left"),d3.behavior.drag().on("dragstart",function(t){z[t.key]=this.parentNode.__origin__=M(t.key),C.attr("visibility","hidden")}).on("drag",function(t){z[t.key]=Math.min(T,Math.max(0,this.parentNode.__origin__+=d3.event.x)),x.attr("d",m),P.sort(function(t,e){return w(t.key)-w(e.key)}),P.forEach(function(t,e){return t.currentPosition=e}),M.domain(P.map(function(t){return t.key})),k.attr("transform",function(t){return"translate("+w(t.key)+")"})}).on("dragend",function(t,e){delete this.parentNode.__origin__,delete z[t.key],d3.select(this.parentNode).attr("transform","translate("+M(t.key)+")"),x.attr("d",m),C.attr("d",m).attr("visibility",null),q.dimensionsOrder(P)})),h=M.range()[1]-M.range()[0],d=(isNaN(h)||(d=[0+h/2,D-12,T-h/2,D-12],(s=e.select(".missingValuesline").selectAll("line").data([d])).enter().append("line"),s.exit().remove(),s.attr("x1",function(t){return t[0]}).attr("y1",function(t){return t[1]}).attr("x2",function(t){return t[2]}).attr("y2",function(t){return t[3]}),(o=e.select(".missingValuesline").selectAll("text").data([O])).append("text").data([O]),o.enter().append("text"),o.exit().remove(),o.attr("y",D).attr("x",T-92-h/2).text(function(t){return t})),(C=e.select(".background").selectAll("path").data(t)).enter().append("path"),C.exit().remove(),C.attr("d",m),(x=e.select(".foreground").selectAll("path").data(t)).enter().append("path"),x.exit().remove(),x.attr("d",m).style("stroke-width",function(t,e){return isNaN(t.strokeWidth)&&(t.strokeWidth=1),t.strokeWidth}).attr("stroke",function(t,e){return t.color||L(t,e)}),x.on("mouseover",function(t,e){d3.select(this).classed("hover",!0).style("stroke-width",t.strokeWidth+2+"px").style("stroke-opacity",1),q.elementMouseover({label:t.name,color:t.color||L(t,e),values:t.values,dimensions:P})}),x.on("mouseout",function(t,e){d3.select(this).classed("hover",!1).style("stroke-width",t.strokeWidth+"px").style("stroke-opacity",.7),q.elementMouseout({label:t.name,index:e})}),x.on("mousemove",function(t,e){q.elementMousemove()}),x.on("click",function(t){q.elementClick({id:t.id})}),(k=c.selectAll(".dimension").data(P)).enter().append("g").attr("class","nv-parallelCoordinates dimension")),p=(k.attr("transform",function(t){return"translate("+M(t.key)+",0)"}),d.append("g").attr("class","nv-axis"),d.append("text").attr("class","nv-label").style("cursor","move").attr("dy","-1em").attr("text-anchor","middle").on("mouseover",function(t,e){q.elementMouseover({label:t.tooltip||t.key,color:t.color})}).on("mouseout",function(t,e){q.elementMouseout({label:t.tooltip})}).on("mousemove",function(t,e){q.elementMousemove()}
1).call(n),d.append("g").attr("class","nv-brushBackground"),k.exit().remove(),k.select(".nv-label").text(function(t){return t.key}),g(I),R.filter(function(t){return!A[t].brush.empty()})),f=p.map(function(t){return A[t].brush.extent()}),h=F.slice(0);function m(r){return W(P.map(function(t){if(isNaN(r.values[t.key])||isNaN(parseFloat(r.values[t.key]))||u){var e=A[t.key].domain(),n=A[t.key].range(),i=e[0]-(e[1]-e[0])/9;if(V.indexOf(t.key)<0&&(e=d3.scale.linear().domain([i,e[1]]).range([D-12,n[1]]),A[t.key].brush.y(e),V.push(t.key)),isNaN(r.values[t.key])||isNaN(parseFloat(r.values[t.key])))return[M(t.key),A[t.key](i)]}return void 0!==s&&(0<V.length||u?(s.style("display","inline"),o.style("display","inline")):(s.style("display","none"),o.style("display","none"))),[M(t.key),A[t.key](r.values[t.key])]}))}function g(n){H.forEach(function(t){var e=A[t.dimension].brush.y().domain();t.hasOnlyNaN&&(t.extent[1]=(A[t.dimension].domain()[1]-e[0])*(t.extent[1]-t.extent[0])/(l[t.dimension]-t.extent[0])+e[0]),t.hasNaN&&(t.extent[0]=e[0]),n&&A[t.dimension].brush.extent(t.extent)}),k.select(".nv-brushBackground").each(function(t){d3.select(this).call(A[t.key].brush)}).selectAll("rect").attr("x",-8).attr("width",16),_()}function v(){!1===I&&g(I=!0)}function y(){p=R.filter(function(t){return!A[t].brush.empty()}),f=p.map(function(t){return A[t].brush.extent()}),H=[],p.forEach(function(t,e){H[e]={dimension:t,extent:f[e],hasNaN:!1,hasOnlyNaN:!1}}),F=[],x.style("display",function(n){var t=p.every(function(t,e){return!(!isNaN(n.values[t])&&!isNaN(parseFloat(n.values[t]))||f[e][0]!=A[t].brush.y().domain()[0])||f[e][0]<=n.values[t]&&n.values[t]<=f[e][1]&&!isNaN(parseFloat(n.values[t]))});return t&&F.push(n),t?null:"none"}),_(),q.brush({filters:H,active:F})}function b(){var t=0<p.length;H.forEach(function(t){t.extent[0]===A[t.dimension].brush.y().domain()[0]&&0<=V.indexOf(t.dimension)&&(t.hasNaN=!0),t.extent[1]<A[t.dimension].domain()[0]&&(t.hasOnlyNaN=!0)}),q.brushEnd(F,t)}function _(){k.select(".nv-axis").each(function(e,t){var n=H.filter(function(t){return t.dimension==e.key});r[e.key]=A[e.key].domain(),0!=n.length&&I&&(r[e.key]=[],n[0].extent[1]>A[e.key].domain()[0]&&(r[e.key]=[n[0].extent[1]]),n[0].extent[0]>=A[e.key].domain()[0])&&r[e.key].push(n[0].extent[0]),d3.select(this).call(B.scale(A[e.key]).tickFormat(e.format).tickValues(r[e.key]))})}function w(t){var e=z[t];return null==e?M(t):e}F=[],x.style("display",function(n){var t=p.every(function(t,e){return!(!isNaN(n.values[t])&&!isNaN(parseFloat(n.values[t]))||f[e][0]!=A[t].brush.y().domain()[0])||f[e][0]<=n.values[t]&&n.values[t]<=f[e][1]&&!isNaN(parseFloat(n.values[t]))});return t&&F.push(n),t?null:"none"}),(0<H.length||!lt.utils.arrayEquals(F,h))&&q.activeChanged(F)}),n}return n.dispatch=q,n.options=lt.utils.optionsFunc.bind(n),n._options=Object.create({},{width:{get:function(){return S},set:function(t){S=t}},height:{get:function(){return E},set:function(t){E=t}},dimensionData:{get:function(){return N},set:function(t){N=t}},displayBrush:{get:function(){return I},set:function(t){I=t}},filters:{get:function(){return H},set:function(t){H=t}},active:{get:function(){return F},set:function(t){F=t}},lineTension:{get:function(){return j},set:function(t){j=t}},undefinedValuesLabel:{get:function(){return O},set:function(t){O=t}},dimensions:{get:function(){return N.map(function(t){return t.key})},set:function(t){lt.deprecated("dimensions","use dimensionData instead"),0===N.length?t.forEach(function(t){N.push({key:t})}):t.forEach(function(t,e){N[e].key=t})}},dimensionNames:{get:function(){return N.map(function(t){return t.key})},set:function(t){lt.deprecated("dimensionNames","use dimensionData instead"),R=[],0===N.length?t.forEach(function(t){N.push({key:t})}):t.forEach(function(t,e){N[e].key=t})}},dimensionFormats:{get:function(){return N.map(function(t){return t.format})},set:function(t){lt.deprecated("dimensionFormats","use dimensionData instead"),0===N.length?t.forEach(function(t){N.push({format:t})}):t.forEach(function(t,e){N[e].format=t})}},margin:{get:function(){return $},set:function(t){$.top=(void 0!==t.top?t:$).top,$.right=(void 0!==t.right?t:$).right,$.bottom=(void 0!==t.bottom?t:$).bottom,$.left=(void 0!==t.left?t:$).left}},color:{get:function(){return L},set:function(t){L=lt.utils.getColor(t)}}}),lt.utils.initOptions(n),n},lt.models.parallelCoordinatesChart=function(){"use strict";var c=lt.models.parallelCoordinates(),h=lt.models.legend(),e=lt.models.tooltip(),d=(lt.models.tooltip(),{top:0,right:0,bottom:0,left:0}),p=null,f=null,m=!0,n=lt.utils.defaultColor(),g=lt.utils.state(),v=[],y=!0,b=null,i=null,o="undefined",_=d3.dis
1patch("dimensionsOrder","brushEnd","stateChange","changeState","renderEnd"),r=lt.utils.renderWatch(_);function w(t){return r.reset(),r.models(c),t.each(function(t){var e,i,n,r=d3.select(this),o=(lt.utils.initSVG(r),lt.utils.availableWidth(p,r,d)),s=lt.utils.availableHeight(f,r,d);if(w.update=function(){r.call(w)},w.container=this,g.setter((i=v,function(n){void 0!==n.active&&i.forEach(function(t,e){t.disabled=!n.active[e]})}),w.update).getter((e=v,function(){return{active:e.map(function(t){return!t.disabled})}})).update(),g.disabled=v.map(function(t){return!!t.disabled}),(v=v.map(function(t){return t.disabled=!!t.disabled,t})).forEach(function(t,e){t.originalPosition=isNaN(t.originalPosition)?e:t.originalPosition,t.currentPosition=isNaN(t.currentPosition)?e:t.currentPosition}),!b)for(n in b={},g)g[n]instanceof Array?b[n]=g[n].slice(0):b[n]=g[n];if(!t||!t.length)return lt.utils.noData(w,r),w;r.selectAll(".nv-noData").remove();var a=r.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").data([t]),l=a.enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinatesChart").append("g"),u=a.select("g");l.append("g").attr("class","nv-parallelCoordinatesWrap"),l.append("g").attr("class","nv-legendWrap"),u.select("rect").attr("width",o).attr("height",0<s?s:0),m?(h.width(o).color(function(t){return"rgb(188,190,192)"}),u.select(".nv-legendWrap").datum(v.sort(function(t,e){return t.originalPosition-e.originalPosition})).call(h),d.top!=h.height()&&(d.top=h.height(),s=lt.utils.availableHeight(f,r,d)),a.select(".nv-legendWrap").attr("transform","translate( 0 ,"+-d.top+")")):u.select(".nv-legendWrap").selectAll("*").remove(),a.attr("transform","translate("+d.left+","+d.top+")"),c.width(o).height(s).dimensionData(v).displayBrush(y),u.select(".nv-parallelCoordinatesWrap ").datum(t).transition().call(c),c.dispatch.on("brushEnd",function(t,e){e?(y=!0,_.brushEnd(t)):y=!1}),h.dispatch.on("stateChange",function(t){for(var e in t)g[e]=t[e];_.stateChange(g),w.update()}),c.dispatch.on("dimensionsOrder",function(t){v.sort(function(t,e){return t.currentPosition-e.currentPosition});var n=!1;v.forEach(function(t,e){t.currentPosition=e,t.currentPosition!==t.originalPosition&&(n=!0)}),_.dimensionsOrder(v,n)}),_.on("changeState",function(n){void 0!==n.disabled&&(v.forEach(function(t,e){t.disabled=n.disabled[e]}),g.disabled=n.disabled),w.update()})}),r.renderEnd("parraleleCoordinateChart immediate"),w}return e.contentGenerator(function(t){var e='<table><thead><tr><td class="legend-color-guide"><div style="background-color:'+t.color+'"></div></td><td><strong>'+t.key+"</strong></td></tr></thead>";return 0!==t.series.length&&(e+='<tbody><tr><td height ="10px"></td></tr>',t.series.forEach(function(t){e=e+'<tr><td class="legend-color-guide"><div style="background-color:'+t.color+'"></div></td><td class="key">'+t.key+'</td><td class="value">'+t.value+"</td></tr>"}),e+="</tbody>"),e+="</table>"}),c.dispatch.on("elementMouseover.tooltip",function(i){var r={key:i.label,color:i.color,series:[]};i.values&&(Object.keys(i.values).forEach(function(e){var t,n=i.dimensions.filter(function(t){return t.key===e})[0];n&&(t=isNaN(i.values[e])||isNaN(parseFloat(i.values[e]))?o:n.format(i.values[e]),r.series.push({idx:n.currentPosition,key:e,value:t,color:n.color}))}),r.series.sort(function(t,e){return t.idx-e.idx})),e.data(r).hidden(!1)}),c.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),c.dispatch.on("elementMousemove.tooltip",function(){e()}),w.dispatch=_,w.parallelCoordinates=c,w.legend=h,w.tooltip=e,w.options=lt.utils.optionsFunc.bind(w),w._options=Object.create({},{width:{get:function(){return p},set:function(t){p=t}},height:{get:function(){return f},set:function(t){f=t}},showLegend:{get:function(){return m},set:function(t){m=t}},defaultState:{get:function(){return b},set:function(t){b=t}},dimensionData:{get:function(){return v},set:function(t){v=t}},displayBrush:{get:function(){return y},set:function(t){y=t}},noData:{get:function(){return i},set:function(t){i=t}},nanValue:{get:function(){return o},set:function(t){o=t}},margin:{get:function(){return d}
1,set:function(t){d.top=(void 0!==t.top?t:d).top,d.right=(void 0!==t.right?t:d).right,d.bottom=(void 0!==t.bottom?t:d).bottom,d.left=(void 0!==t.left?t:d).left}},color:{get:function(){return n},set:function(t){n=lt.utils.getColor(t),h.color(n),c.color(n)}}}),lt.utils.inheritOptions(w,c),lt.utils.initOptions(w),w},lt.models.pie=function(){"use strict";var w={top:0,right:0,bottom:0,left:0},x=500,C=500,k=function(t){return t.x},$=function(t){return t.y},S=Math.floor(1e4*Math.random()),E=null,T=lt.utils.defaultColor(),D=d3.format(",.2f"),M=!0,A=!1,O="key",N=.02,P=!1,R=!1,I=!0,L=0,H=!1,F=!1,z=!1,V=!1,j=0,W=.5,B=[],q=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),U=[],Y=[],G=lt.utils.renderWatch(q);function e(t){return G.reset(),t.each(function(t){var e=x-w.left-w.right,n=C-w.top-w.bottom,i=Math.min(e,n)/2,r=[],o=[];if(E=d3.select(this),0===B.length)for(var s=i-i/5,a=W*i,l=0;l<t[0].length;l++)r.push(s),o.push(a);else W=I?(r=B.map(function(t){return(t.outer-t.outer/5)*i}),o=B.map(function(t){return(t.inner-t.inner/5)*i}),d3.min(B.map(function(t){return t.inner-t.inner/5}))):(r=B.map(function(t){return t.outer*i}),o=B.map(function(t){return t.inner*i}),d3.min(B.map(function(t){return t.inner})));lt.utils.initSVG(E);var u=E.selectAll(".nv-wrap.nv-pie").data(t),c=u.enter().append("g").attr("class","nvd3 nv-wrap nv-pie nv-chart-"+S).append("g"),h=u.select("g"),d=c.append("g").attr("class","nv-pie");c.append("g").attr("class","nv-pieLabels"),u.attr("transform","translate("+w.left+","+w.top+")"),h.select(".nv-pie").attr("transform","translate("+e/2+","+n/2+")"),h.select(".nv-pieLabels").attr("transform","translate("+e/2+","+n/2+")"),E.on("click",function(t,e){q.chartClick({data:t,index:e,pos:d3.event,id:S})}),U=[],Y=[];for(l=0;l<t[0].length;l++){var p=d3.svg.arc().outerRadius(r[l]),f=d3.svg.arc().outerRadius(r[l]+5);!1!==F&&(p.startAngle(F),f.startAngle(F)),!1!==V&&(p.endAngle(V),f.endAngle(V)),P&&(p.innerRadius(o[l]),f.innerRadius(o[l])),p.cornerRadius&&j&&(p.cornerRadius(j),f.cornerRadius(j)),U.push(p),Y.push(f)}c=d3.layout.pie().sort(null).value(function(t){return t.disabled?0:$(t)}),c.padAngle&&z&&c.padAngle(z),P&&R&&(d.append("text").attr("class","nv-pie-title"),u.select(".nv-pie-title").style("text-anchor","middle").text(function(t){return R}).style("font-size",Math.min(e,n)*W*2/(R.length+2)+"px").attr("dy","0.35em").attr("transform",function(t,e){return"translate(0, "+L+")"})),h=u.select(".nv-pie").selectAll(".nv-slice").data(c),d=u.select(".nv-pieLabels").selectAll(".nv-label").data(c),h.exit().remove(),d.exit().remove(),e=h.enter().append("g");e.attr("class","nv-slice"),e.on("mouseover",function(t,e){d3.select(this).classed("hover",!0),I&&d3.select(this).select("path").transition().duration(70).attr("d",Y[e]),q.elementMouseover({data:t.data,index:e,color:d3.select(this).style("fill")})}),e.on("mouseout",function(t,e){d3.select(this).classed("hover",!1),I&&d3.select(this).select("path").transition().duration(50).attr("d",U[e]),q.elementMouseout({data:t.data,index:e})}),e.on("mousemove",function(t,e){q.elementMousemove({data:t.data,index:e})}),e.on("click",function(t,e){q.elementClick({data:t.data,index:e,color:d3.select(this).style("fill"),event:d3.event,element:this})}),e.on("dblclick",function(t,e){q.elementDblClick({data:t.data,index:e,color:d3.select(this).style("fill")})}),h.attr("fill",function(t,e){return T(t.data,e)}),h.attr("stroke",function(t,e){return T(t.data,e)}),e.append("path").each(function(t){this._current=t});if(h.select("path").transition().attr("d",function(t,e){return U[e](t)}).attrTween("d",function(t,e){t.endAngle=isNaN(t.endAngle)?0:t.endAngle,t.startAngle=isNaN(t.startAngle)?0:t.startAngle,P||(t.innerRadius=0);var n=d3.interpolate(this._current,t);return this._current=n(0),function(t){return U[e](n(t))}}),M){for(var m=[],l=0;l<t[0].length;l++)m.push(U[l]),A?P&&(m[l]=d3.svg.arc().outerRadius(U[l].outerRadius()),!1!==F&&m[l].startAngle(F),!1!==V)&&m[l].endAngle(V):P||m[l].innerRadius(0);d.enter().append("g").classed("nv-label",!0).each(function(t,e){var n=d3.select(this);n.attr("transform",function(t,e){var n;return H?(t.outerRadius=r[e]+10,t.innerRadius=r[e]+15,n=(t.startAngle+t.endAngle)/2*(180/Math.PI),(t.startAngle+t.endAngle)/2<Math.PI?n-=90:n+=90,"translate("+m[e].centroid(t)+") rotate("+n+")"):(t.outerRadius=10+i,t.innerRadius=15+i,"translate("+m[e].centroid(t)+")")}),n.append("rect").style("stroke","#fff").style("fill","#fff").attr("rx",3).attr("ry",3),n.append("text").style("text-anchor",H?(t.startAngle+t.endAngle)/2<Math.PI?"start":"end":"middle").style("fill","#000")});var g={},v=14,y=140,b=function(t){return Math.floor(t[0]/y)*y+","+Math.floor(t[1]/v)*v},_=function(t){return(t.endAngle-t.startAngle)/(2*Math.PI)};d.watchTransition(G,"pie labels").attr("transform",function(t,e){var n;return H?(t.outerRadius=r[e]+10,t.innerRadius=r[e]+15,n=(t.startAngle+t.endAngle)/2*(180/Math.PI),(t.startAngle+t.endAngle)/2<Math.PI?n-=90:n+=90,"translate("+m[e].centroid(t)+") rotate("+n+")"):(t.outerRadius=10+i,t.innerRadius=15+i,n=m[e].centroid(t),e=_(t),t.value&&N<=e&&(t=b(n),g[t]&&(n[1]-=v),g[b(n)]=!0),"translate("+n+")")}),d.select(".nv-label text").style("text-anchor",function(t,e){return H?(t.startAngle+t.endAngle)/2<Math.PI?"start":"end":"middle"}).text(function(t,e){var n=_(t),i="";if(!t.value||n<N)return"";if("function"==typeof O)i=O(t,e,{key:k(t.data),value:$(t.data),percent:D(n)});else switch(O){case"key":i=k(t.data);break;case"value":i=D($(t.data));break;case"percent":i=d3.format("%")(n)}return i})}}),G.renderEnd("pie immediate"),e}return e.dispatch=q,e.options=lt.utils.optionsFunc.bind(e),e._options=Object.create({},{arcsRadius:{get:function(){return B},set:function(t){B=t}},width:{get:function(){return x},set:function(t){x=t}},height:{get:function(){return C},set:function(t){C=t}},showLabels:{get:function(){return M},set:function(t){M=t}},title:{get:function(){return R}
1,set:function(t){R=t}},titleOffset:{get:function(){return L},set:function(t){L=t}},labelThreshold:{get:function(){return N},set:function(t){N=t}},valueFormat:{get:function(){return D},set:function(t){D=t}},x:{get:function(){return k},set:function(t){k=t}},id:{get:function(){return S},set:function(t){S=t}},endAngle:{get:function(){return V},set:function(t){V=t}},startAngle:{get:function(){return F},set:function(t){F=t}},padAngle:{get:function(){return z},set:function(t){z=t}},cornerRadius:{get:function(){return j},set:function(t){j=t}},donutRatio:{get:function(){return W},set:function(t){W=t}},labelsOutside:{get:function(){return A},set:function(t){A=t}},labelSunbeamLayout:{get:function(){return H},set:function(t){H=t}},donut:{get:function(){return P},set:function(t){P=t}},growOnHover:{get:function(){return I},set:function(t){I=t}},pieLabelsOutside:{get:function(){return A},set:function(t){A=t,lt.deprecated("pieLabelsOutside","use labelsOutside instead")}},donutLabelsOutside:{get:function(){return A},set:function(t){A=t,lt.deprecated("donutLabelsOutside","use labelsOutside instead")}},labelFormat:{get:function(){return D},set:function(t){D=t,lt.deprecated("labelFormat","use valueFormat instead")}},margin:{get:function(){return w},set:function(t){w.top=(void 0!==t.top?t:w).top,w.right=(void 0!==t.right?t:w).right,w.bottom=(void 0!==t.bottom?t:w).bottom,w.left=(void 0!==t.left?t:w).left}},y:{get:function(){return $},set:function(t){$=d3.functor(t)}},color:{get:function(){return T},set:function(t){T=lt.utils.getColor(t)}},labelType:{get:function(){return O},set:function(t){O=t||"key"}}}),lt.utils.initOptions(e),e},lt.models.pieChart=function(){"use strict";var c=lt.models.pie(),h=lt.models.legend(),e=lt.models.tooltip(),d={top:30,right:20,bottom:20,left:20},p=null,f=null,m=!0,g="top",n=lt.utils.defaultColor(),v=lt.utils.state(),y=null,i=null,r=250,b=d3.dispatch("stateChange","changeState","renderEnd"),o=(e.duration(0).headerEnabled(!1).valueFormatter(function(t,e){return c.valueFormat()(t,e)}),lt.utils.renderWatch(b));function _(t){return o.reset(),o.models(c),t.each(function(t){var e,i,n,r=d3.select(this),o=(lt.utils.initSVG(r),lt.utils.availableWidth(p,r,d)),s=lt.utils.availableHeight(f,r,d);if(_.update=function(){r.transition().call(_)},_.container=this,v.setter((i=t,function(n){void 0!==n.active&&i.forEac
1h(function(t,e){t.disabled=!n.active[e]})}),_.update).getter((e=t,function(){return{active:e.map(function(t){return!t.disabled})}})).update(),v.disabled=t.map(function(t){return!!t.disabled}),!y)for(n in y={},v)v[n]instanceof Array?y[n]=v[n].slice(0):y[n]=v[n];if(!t||!t.length)return lt.utils.noData(_,r),_;r.selectAll(".nv-noData").remove();var a=r.selectAll("g.nv-wrap.nv-pieChart").data([t]),l=a.enter().append("g").attr("class","nvd3 nv-wrap nv-pieChart").append("g"),u=a.select("g"),l=(l.append("g").attr("class","nv-pieWrap"),l.append("g").attr("class","nv-legendWrap"),m?"top"===g?(h.width(o).key(c.x()),a.select(".nv-legendWrap").datum(t).call(h),d.top!=h.height()&&(d.top=h.height(),s=lt.utils.availableHeight(f,r,d)),a.select(".nv-legendWrap").attr("transform","translate(0,"+-d.top+")")):"right"===g&&(o/2<(l=lt.models.legend().width())&&(l=o/2),h.height(s).key(c.x()),h.width(l),o-=h.width(),a.select(".nv-legendWrap").datum(t).call(h).attr("transform","translate("+o+",0)")):u.select(".nv-legendWrap").selectAll("*").remove(),a.attr("transform","translate("+d.left+","+d.top+")"),c.width(o).height(s),u.select(".nv-pieWrap").datum([t]));d3.transition(l).call(c),h.dispatch.on("stateChange",function(t){for(var e in t)v[e]=t[e];b.stateChange(v),_.update()}),b.on("changeState",function(n){void 0!==n.disabled&&(t.forEach(function(t,e){t.disabled=n.disabled[e]}),v.disabled=n.disabled),_.update()})}),o.renderEnd("pieChart immediate"),_}return c.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:_.x()(t.data),value:_.y()(t.data),color:t.color},e.data(t).hidden(!1)}),c.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),c.dispatch.on("elementMousemove.tooltip",function(t){e()}),_.legend=h,_.dispatch=b,_.pie=c,_.tooltip=e,_.options=lt.utils.optionsFunc.bind(_),_._options=Object.create({},{width:{get:function(){return p},set:function(t){p=t}},height:{get:function(){return f},set:function(t){f=t}},noData:{get:function(){return i},set:function(t){i=t}},showLegend:{get:function(){return m},set:function(t){m=t}},legendPosition:{get:function(){return g},set:function(t){g=t}},defaultState:{get:function(){return y},set:function(t){y=t}},color:{get:function(){return n},set:function(t){n=t,h.color(n),c.color(n)}},duration:{get:function(){return r},set:function(t){r=t,o.reset(r)}},margin:{get:function(){return d},set:function(t){d.top=(void 0!==t.top?t:d).top,d.right=(void 0!==t.right?t:d).right,d.bottom=(void 0!==t.bottom?t:d).bottom,d.left=(void 0!==t.left?t:d).left}}}),lt.utils.inheritOptions(_,c),lt.utils.initOptions(_),_},lt.models.scatter=function(){"use strict";var h,d,p,U,l,f={top:0,right:0,bottom:0,left:0},m=null,g=null,v=lt.utils.defaultColor(),y=Math.floor(1e5*Math.random()),b=null,_=d3.scale.linear(),w=d3.scale.linear(),x=d3.scale.linear(),C=function(t){return t.x},k=function(t){return t.y},$=function(t){return t.size||1},S=function(t){return t.shape||"circle"},E=[],T=[],D=[],M=!0,A=function(t){return!t.notActive},O=!1,N=.1,P=!1,R=!0,I=!1,Y=function(){return 25},L=null,H=null,F=null,G=null,z=null,K=null,X=!1,V=d3.dispatch("elementClick","elementDblClick","elementMouseover","elementMouseout","renderEnd"),Z=!0,e=250,j=300,Q=!1,W=!1,B=lt.utils.renderWatch(V,e),J=[16,256];function tt(t){for(var e,n,i,r=t[0],o=(n=l=l||{},i=(t=t)[0].series,n=(n=n[i]=n[i]||{})[i=t[1]]=n[i]||{}),s=!1,a=1;a<arguments.length;a++)o[e=arguments[a]]===r[e]&&o.hasOwnProperty(e)||(o[e]=r[e],s=!0);return s}function q(t){return B.reset(),t.each(function(a){b=d3.select(this);var e,t=lt.utils.availableWidth(m,b,f),n=lt.utils.availableHeight(g,b,f),i=(lt.utils.initSVG(b),a.forEach(function(t,e){t.values.forEach(function(t){t.series=e})}),q.yScale().name===d3.scale.log().name),r=L&&H&&z?[]:d3.merge(a.map(function(t){return t.values.map(function(t,e){return{x:C(t,e),y:k(t,e),size:$(t,e)}})})),o=(_.domain(L||d3.extent(r.map(function(t){return t.x}).concat(E))),O&&a[0]?_.range(F||[(t*N+t)/(2*a[0].values.length),t-t*(1+N)/(2*a[0].values.length)]):_.range(F||[0,t]),(i?(e=d3.min(r.map(function(t){if(0!==t.y)return t.y})),w.clamp(!0).domain(H||d3.extent(r.map(function(t){return 0!==t.y?t.y:.1*e}).concat(T)))):w.domain(H||d3.extent(r.map(function(t){return t.y}).concat(T)))).range(G||[n,0]),x.domain(z||d3.extent(r.map(function(t){return t.size}).concat(D))).range(K||J),X=_.domain()[0]===_.domain()[1]||w.domain()[0]===w.domain()[1],_.domain()[0]===_.domain()[1]&&(_.domain()[0]?_.domain([_.domain()[0]-.01*_.domain()[0],_.domain()[1]+.01*_.domain()[1]]):_.domain([-1,1])),w.domain()[0]===w.domain()[1]&&(w.domain()[0]?w.domain([w.domain()[0]-.01*w.domain()[0],w.domain()[1]+.01*w.domain()[1]]):w.domain([-1,1])),isNaN(_.domain()[0])&&_.domain([-1,1]),isNaN(w.domain()[0])&&w.domain([-1,1]),h=h||_,d=d||w,p=p||x,_(1)!==h(1)||w(1)!==d(1)||x(1)!==p(1)),s=b.selectAll("g.nv-wrap.nv-scatter").data([a]
1),i=s.enter().append("g").attr("class","nvd3 nv-wrap nv-scatter nv-chart-"+y),r=i.append("defs"),l=i.append("g"),u=s.select("g");function c(){if(W=!1,!M)return!1;if(!0===Z){var n=d3.merge(a.map(function(t,r){return t.values.map(function(t,e){var n=C(t,e),i=k(t,e);return[lt.utils.NaNtoZero(_(n))+1e-4*Math.random(),lt.utils.NaNtoZero(w(i))+1e-4*Math.random(),r,e,t]}).filter(function(t,e){return A(t[4],e)})}));if(0==n.length)return!1;n.length<3&&(n.push([_.range()[0]-20,w.range()[0]-20,null,null]),n.push([_.range()[1]+20,w.range()[1]+20,null,null]),n.push([_.range()[0]-20,w.range()[0]+20,null,null]),n.push([_.range()[1]+20,w.range()[1]-20,null,null]));var i=d3.geom.polygon([[-10,-10],[-10,g+10],[m+10,g+10],[m+10,-10]]),t=d3.geom.voronoi(n).map(function(t,e){return{data:i.clip(t),series:n[e][2],point:n[e][3]}}),t=(s.select(".nv-point-paths").selectAll("path").remove(),s.select(".nv-point-paths").selectAll("path").data(t)),e=t.enter().append("svg:path").attr("d",function(t){return t&&t.data&&0!==t.data.length?"M"+t.data.join(",")+"Z":"M 0 0"}).attr("id",function(t,e){return"nv-path-"+e}).attr("clip-path",function(t,e){return"url(#nv-clip-"+y+"-"+e+")"}),r=(I&&e.style("fill",d3.rgb(230,230,230)).style("fill-opacity",.4).style("stroke-opacity",1).style("stroke",d3.rgb(200,200,200)),R&&(s.select(".nv-point-clips").selectAll("*").remove(),s.select(".nv-point-clips").selectAll("clipPath").data(n).enter().append("svg:clipPath").attr("id",function(t,e){return"nv-clip-"+y+"-"+e}).append("svg:circle").attr("cx",function(t){return t[0]}).attr("cy",function(t){return t[1]}).attr("r",Y)),function(t,e){if(W)return 0;var n,i,r,o,s=a[t.series];void 0!==s&&((n=s.values[t.point]).color=v(s,t.series),n.x=C(n),n.y=k(n),i=b.node().getBoundingClientRect(),r=window.pageYOffset||document.documentElement.scrollTop,o=window.pageXOffset||document.documentElement.scrollLeft,e({point:n,series:s,pos:{left:_(C(n,t.point))+i.left+o+f.left+10,top:w(k(n,t.point))+i.top+r+f.top+10},relativePos:[_(C(n,t.point))+f.left,w(k(n,t.point))+f.top],seriesIndex:t.series,pointIndex:t.point}))});t.on("click",function(t){r(t,V.elementClick)}).on("dblclick",function(t){r(t,V.elementDblClick)}).on("mouseover",function(t){r(t,V.elementMouseover)}).on("mouseout",function(t,e){r(t,V.elementMouseout)})}else s.select(".nv-groups").selectAll(".nv-group").selectAll(".nv-point").on("click",function(t,e){if(W||!a[t.series])return 0;var n=a[t.series],i=n.values[e];V.elementClick({point:i,series:n,pos:[_(C(i,e))+f.left,w(k(i,e))+f.top],relativePos:[_(C(i,e))+f.left,w(k(i,e))+f.top],seriesIndex:t.series,pointIndex:e})}).on("dblclick",function(t,e){if(W||!a[t.series])return 0;var n=a[t.series],i=n.values[e];V.elementDblClick({point:i,series:n,pos:[_(C(i,e))+f.left,w(k(i,e))+f.top],relativePos:[_(C(i,e))+f.left,w(k(i,e))+f.top],seriesIndex:t.series,pointIndex:e})}).on("mouseover",function(t,e){if(W||!a[t.series])return 0;var n=a[t.series],i=n.values[e];V.elementMouseover({point:i,series:n,pos:[_(C(i,e))+f.left,w(k(i,e))+f.top],relativePos:[_(C(i,e))+f.left,w(k(i,e))+f.top],seriesIndex:t.series,pointIndex:e,color:v(t,e)})}).on("mouseout",function(t,e){if(W||!a[t.series])return 0;var n=a[t.series],i=n.values[e];V.elementMouseout({point:i,series:n,pos:[_(C(i,e))+f.left,w(k(i,e))+f.top],relativePos:[_(C(i,e))+f.left,w(k(i,e))+f.top],seriesIndex:t.series,pointIndex:e,color:v(t,e)})})}s.classed("nv-single-point",X),l.append("g").attr("class","nv-groups"),l.append("g").attr("class","nv-point-paths"),i.append("g").attr("class","nv-point-clips"),s.attr("transform","translate("+f.left+","+f.top+")"),r.append("clipPath").attr("id","nv-edge-clip-"+y).append("rect"),s.select("#nv-edge-clip-"+y+" rect").attr("width",t).attr("height",0<n?n:0),u.attr("clip-path",P?"url(#nv-edge-clip-"+y+")":""),W=!0;l=s.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key}),l.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),l.exit().remove(),l.attr("class",function(t,e){return(t.classed||"")+" nv-group nv-series-"+e}).classed("nv-noninteractive",!M).classed("hover",function(t){return t.hover}),l.watchTransition(B,"scatter: groups").style("fill",function(t,e){return v(t,e)}).style("stroke",function(t,e){return v(t,e)}).style("stroke-opacity",1).style("fill-opacity",.5),i=l.selectAll("path.nv-point").data(function(t){return t.values.map(function(t,e){return[t,e]}).filter(function(t,e){return A(t[0],e)})});i.enter().append("path").attr("class",function(t){return"nv-point nv-point-"+t[1]}).style("fill",function(t){return t.color}).style("stroke",function(t){return t.color}).attr("transform",function(t){return"translate("+lt.utils.NaNtoZero(h(C(t[0],t[1])))+","+lt.utils.NaNtoZero(d(k(t[0],t[1])))+")"}).attr("d",lt.utils.symbol().type(function(t){return S(t[0])}).size(function(t){return x($(t[0],t[1]))})),i.exit().remove(),l.exit().selectAll("path.nv-point").watchTransition(B,"scatter exit").attr("transform",function(t){return"translate("+lt.utils.NaNtoZero(_(C(t[0],t[1])))+","+lt.utils.NaNtoZero(w(k(t[0],t[1])))+")"}).remove(),i.filter(function(t){return o||tt(t,"x","y")}).watchTransition(B,"scatter points").attr("transform",function(t){return"translate("+lt.utils.NaNtoZero(_(C(t[0],t[1])))+","+lt.utils.NaNtoZero(w(k(t[0],t[1])))+")"}),i.filter(function(t){return o||tt(t,"shape","size")}).watchTransition(B,"scatter points").attr("d",lt.utils.symbol().type(function(t){return S(t[0])}).size(function(t){return x($(t[0],t[1]))})),Q&&((r=l.selectAll(".nv-label").data(function(t){return t.values.map(function(t,e){return[t,e]}).filter(function(t,e){return A(t[0],e)})})).enter().append("text").style("fill",function(t,e){return t.color}).style("stroke-opacity",0).style("fill-opacity",1).attr("transform",function(t){return"translate("+(lt.utils.NaNtoZero(h(C(t[0],t[1])))+Math.sqrt(x($(t[0],t[1]))/Math.PI)+2)+","+lt.utils.NaNtoZero(d(k(t[0],t[1])))+")"}).text(function(t,e){return t[0].label}),r.exit().remove(),l.exit().selectAll("path.nv-label").watchTransition(B,"scatter exit").attr("transform",function(t){return"translate("+(lt.utils.NaNtoZero(_(C(t[0],t[1])))+Math.sqrt(x($(t[0],t[1]))/Math.PI)+2)+","+lt.utils.NaNtoZero(w(k(t[0],t[1])))+")"}).remove(),r.each(function(t){d3.select(this).classed("nv-label",!0).classed("nv-label-"+t[1],!1).classed("hover",!1)}),r.watchTransition(B,"scatter labels").attr("transform",function(t){return"translate("+(lt.utils.NaNtoZero(_(C(t[0],t[1])))+Math.sqrt(x($(t[0],t[1]))/Math.PI)+2)+","+lt.utils.NaNtoZero(w(k(t[0],t[1])))+")"})),j?(clearTimeout(U),U=setTimeout(c,j)):c(),h=_.copy(),d=w.copy(),p=x.copy()}),B.renderEnd("scatter immediate"),q}return q.dispatch=V,q.options=lt.utils.optionsFunc.bind(q),q._calls=new function(){this.clearHighlights=function(){return lt.dom.write(function(){b.selectAll(".nv-point.hover").classed("hover",!1)}),null},this.highlightPoint=function(t,e,n){lt.dom.write(function(){b.select(".nv-groups").selectAll(".nv-series-"+t).selectAll(".nv-point-"+e).classed("hover",n)})}},V.on("elementMouseover.point",function(t){M&&q._calls.highlightPoint(t.seriesIndex,t.pointIndex,!0)}),V.on("elementMouseout.point",function(t){M&&q._calls.highlightPoint(t.seriesIndex,t.pointIndex,!1)}),q._options=Object.create({},{width:{get:function(){return m},set:function(t){m=t}},height:{get:function(){return g},set:function(t){g=t}},xScale:{get:function(){return _},set:function(t){_=t}},yScale:{get:function(){return w},set:function(t){w=t}},pointScale:{get:function(){return x},set:function(t){x=t}},xDomain:{get:function(){return L},set:function(t){L=t}},yDomain:{get:function(){return H},set:function(t){H=t}},pointDomain:{get:function(){return z},set:function(t){z=t}},xRange:{get:function(){return F},set:function(t){F=t}},yRange:{get:function(){return G},set:function(t){G=t}},pointRange:{get:function(){return K},set:function(t){K=t}},forceX:{get:function(){return E},set:function(t){E=t}},forceY:{get:function(){return T},set:function(t){T=t}},forcePoint:{get:function(){return D},set:function(t){D=t}},interactive:{get:function(){return M},set:function(t){M=t}},pointActive:{get:function(){return A},set:function(t){A=t}},padDataOuter:{get:function(){return N},set:function(t){N=t}},padData:{get:function(){return O},set:function(t){O=t}},clipEdge:{get:function(){return P},set:function(t){P=t}},clipVoronoi:{get:function(){return R}
1,set:function(t){R=t}},clipRadius:{get:function(){return Y},set:function(t){Y=t}},showVoronoi:{get:function(){return I},set:function(t){I=t}},id:{get:function(){return y},set:function(t){y=t}},interactiveUpdateDelay:{get:function(){return j},set:function(t){j=t}},showLabels:{get:function(){return Q},set:function(t){Q=t}},x:{get:function(){return C},set:function(t){C=d3.functor(t)}},y:{get:function(){return k},set:function(t){k=d3.functor(t)}},pointSize:{get:function(){return $},set:function(t){$=d3.functor(t)}},pointShape:{get:function(){return S},set:function(t){S=d3.functor(t)}},margin:{get:function(){return f},set:function(t){f.top=(void 0!==t.top?t:f).top,f.right=(void 0!==t.right?t:f).right,f.bottom=(void 0!==t.bottom?t:f).bottom,f.left=(void 0!==t.left?t:f).left}},duration:{get:function(){return e},set:function(t){e=t,B.reset(e)}},color:{get:function(){return v},set:function(t){v=lt.utils.getColor(t)}},useVoronoi:{get:function(){return Z},set:function(t){!1===(Z=t)&&(R=!1)}}}),lt.utils.initOptions(q),q},lt.models.scatterChart=function(){"use strict";var u=lt.models.scatter(),c=lt.models.axis(),h=lt.models.axis(),d=lt.models.legend(),p=lt.models.distribution(),f=lt.models.distribution(),m=lt.models.tooltip(),g={top:30,right:20,bottom:50,left:75},v=null,y=null,b=null,_=lt.utils.defaultColor(),w=u.xScale(),x=u.yScale(),C=!1,k=!1,$=!0,S=!0,E=!0,T=!1,D=lt.utils.state(),M=null,A=d3.dispatch("stateChange","changeState","renderEnd"),e=null,O=250,N=!1;u.xScale(w).yScale(x),c.orient("bottom").tickPadding(10),h.orient(T?"right":"left").tickPadding(10),p.axis("x"),f.axis("y"),m.headerFormatter(function(t,e){return c.tickFormat()(t,e)}).valueFormatter(function(t,e){return h.tickFormat()(t,e)});var P=lt.utils.renderWatch(A,O);function R(t){return P.reset(),P.models(u),S&&P.models(c),E&&P.models(h),C&&P.models(p),k&&P.models(f),t.each(function(i){b=d3.select(this),lt.utils.initSVG(b);var t,e,n,r=lt.utils.availableWidth(v,b,g),o=lt.utils.availableHeight(y,b,g);if(R.update=function(){(0===O?b:b.transition().duration(O)).call(R)},R.container=this,D.setter((e=i,function(n){void 0!==n.active&&e.forEach(function(t,e){t.disabled=!n.active[e]})}),R.update).getter((t=i,function(){return{active:t.map(function(t){return!t.disabled})}})).update(),D.disabled=i.map(function(t){return!!t.disabled}),!M)for(n in M={},D)D[n]instanceof Array?M[n]=D[n].slice(0):M[n]=D[n];if(!(i&&i.length&&i.filter(function(t){return t.values.length}).length))return lt.utils.noData(R,b),P.renderEnd("scatter immediate"),R;b.selectAll(".nv-noData").remove(),w=u.xScale(),x=u.yScale();var s=b.selectAll("g.nv-wrap.nv-scatterChart").data([i]),a=s.enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+u.id()).append("g"),l=s.select("g"),s=(a.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none"),a.append("g").attr("class","nv-x nv-axis"),a.append("g").attr("class","nv-y nv-axis"),a.append("g").attr("class","nv-scatterWrap"),a.append("g").attr("class","nv-regressionLinesWrap"),a.append("g").attr("class","nv-distWrap"),a.append("g").attr("class","nv-legendWrap"),T&&l.select(".nv-y.nv-axis").attr("transform","translate("+r+",0)"),$?(d.width(r),s.select(".nv-legendWrap").datum(i).call(d),g.top!=d.height()&&(g.top=d.height(),o=lt.utils.availableHeight(y,b,g)),s.select(".nv-legendWrap").attr("transform","translate(0,"+-g.top+")")):l.select(".nv-legendWrap").selectAll("*").remove(),s.attr("transform","translate("+g.left+","+g.top+")"),u.width(r).height(o).color(i.map(function(t,e){return t.color=t.color||_(t,e),t.color}).filter(function(t,e){return!i[e].disabled})).showLabels(N),s.select(".nv-scatterWrap").datum(i.filter(function(t){return!t.disabled})).call(u),s.select(".nv-regressionLinesWrap").attr("clip-path","url(#nv-edge-clip-"+u.id()+")"),s.select(".nv-regressionLinesWrap").selectAll(".nv-regLines").data(function(t){return t})),s=(s.enter().append("g").attr("class","nv-regLines"),s.selectAll(".nv-regLine").data(function(t){return[t]}));s.enter().append("line").attr("class","nv-regLine").style("stroke-opacity",0),s.filter(function(t){return t.intercept&&t.slope}).watchTransition(P,"scatterPlusLineChart: regline").attr("x1",w.range()[0]).attr("x2",w.range()[1]).attr("y1",function(t,e){return x(w.domain()[0]*t.slope+t.intercept)}).attr("y2",function(t,e){return x(w.domain()[1]*t.slope+t.intercept)}).style("stroke",function(t,e,n){return _(t,n)}).style("stroke-opacity",function(t,e){return t.disabled||void 0===t.slope||void 0===t.intercept?0:1}),S&&(c.scale(w)._ticks(lt.utils.calcTicksX(r/100,i)).tickSize(-o,0),l.select(".nv-x.nv-axis").attr("transform","translate(0,"+x.range()[0]+")").call(c)),E&&(h.scale(x)._ticks(lt.utils.calcTicksY(o/36,i)).tickSize(-r,0),l.select(".nv-y.nv-axis").call(h)),C&&(p.getData(u.x()).scale(w).width(r).color(i.map(function(t,e){return t.color||_(t,e)}).filter(function(t,e){return!i[e].disabled})),a.select(".nv-distWrap").append("g").attr("class","nv-distributionX"),l.select(".nv-distributionX").attr("transform","translate(0,"+x.range()[0]+")").datum(i.filter(function(t){return!t.disabled})).call(p)),k&&(f.getData(u.y()).scale(x).width(o).color(i.map(function(t,e){return t.color||_(t,e)}).filter(function(t,e){return!i[e].disabled})),a.select(".nv-distWrap").append("g").attr("class","nv-distributionY"),l.select(".nv-distributionY").attr("transform","translate("+(T?r:-f.size())+",0)").datum(i.filter(function(t){return!t.disabled})).call(f)),d.dispatch.on("stateChange",function(t){for(var e in t)D[e]=t[e];A.stateChange(D),R.update()}),A.on("changeState",function(n){void 0!==n.disabled&&(i.forEach(function(t,e){t.disabled=n.disabled[e]}),D.disabled=n.disabled),R.update()}),u.dispatch.on("elementMouseout.tooltip",function(t){m.hidden(!0),b.select(".nv-chart-"+u.id()+" .nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",0),b.select(".nv-chart-"+u.id()+" .nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",f.size())}),u.dispatch.on("elementMouseover.tooltip",function(t){b.select(".nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",t.relativePos[1]-o),b.select(".nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",t.relativePos[0]+p.size()),m.data(t).hidden(!1)}),w.copy(),x.copy()}),P.renderEnd("scatter with line immediate"),R}return R.dispatch=A,R.scatter=u,R.legend=d,R.xAxis=c,R.yAxis=h,R.distX=p,R.distY=f,R.tooltip=m,R.options=lt.utils.optionsFunc.bind(R),R._options=Object.create({},{width:{get:function(){return v},set:function(t){v=t}},height:{get:function(){return y},set:function(t){y=t}}
1,container:{get:function(){return b},set:function(t){b=t}},showDistX:{get:function(){return C},set:function(t){C=t}},showDistY:{get:function(){return k},set:function(t){k=t}},showLegend:{get:function(){return $},set:function(t){$=t}},showXAxis:{get:function(){return S},set:function(t){S=t}},showYAxis:{get:function(){return E},set:function(t){E=t}},defaultState:{get:function(){return M},set:function(t){M=t}},noData:{get:function(){return e},set:function(t){e=t}},duration:{get:function(){return O},set:function(t){O=t}},showLabels:{get:function(){return N},set:function(t){N=t}},margin:{get:function(){return g},set:function(t){g.top=(void 0!==t.top?t:g).top,g.right=(void 0!==t.right?t:g).right,g.bottom=(void 0!==t.bottom?t:g).bottom,g.left=(void 0!==t.left?t:g).left}},rightAlignYAxis:{get:function(){return T},set:function(t){T=t,h.orient(t?"right":"left")}},color:{get:function(){return _},set:function(t){_=lt.utils.getColor(t),d.color(_),p.color(_),f.color(_)}}}),lt.utils.inheritOptions(R,u),lt.utils.initOptions(R),R},lt.models.sparkline=function(){"use strict";var i,r,o,s,a={top:2,right:0,bottom:2,left:0},l=400,u=32,c=null,e=!0,h=d3.scale.linear(),d=d3.scale.linear(),p=function(t){return t.x},f=function(t){return t.y},m=lt.utils.getColor(["#000"]),g=!0,v=!0,t=d3.dispatch("renderEnd"),n=lt.utils.renderWatch(t);function y(t){return n.reset(),t.each(function(t){var e=l-a.left-a.right,n=u-a.top-a.bottom,e=(c=d3.select(this),lt.utils.initSVG(c),h.domain(i||d3.extent(t,p)).range(o||[0,e]),d.domain(r||d3.extent(t,f)).range(s||[n,0]),c.selectAll("g.nv-wrap.nv-sparkline").data([t])),n=(e.enter().append("g").attr("class","nvd3 nv-wrap nv-sparkline").append("g"),e.select("g"),e.attr("transform","translate("+a.left+","+a.top+")"),e.selectAll("path").data(function(t){return[t]})),t=(n.enter().append("path"),n.exit().remove(),n.style("stroke",function(t,e){return t.color||m(t,e)}).attr("d",d3.svg.line().x(function(t,e){return h(p(t,e))}).y(function(t,e){return d(f(t,e))})),e.selectAll("circle.nv-point").data(function(n){var t=n.map(function(t,e){return f(t,e)});function e(t){var e;return-1!=t?((e=n[t]).pointIndex=t,e):null}var i=e(t.lastIndexOf(d.domain()[1])),r=e(t.indexOf(d.domain()[0])),t=e(t.length-1);return[g?r:null,g?i:null,v?t:null].filter(function(t){return null!=t})}));t.enter().append("circle"),t.exit().remove(),t.attr("cx",function(t,e){return h(p(t,t.pointIndex))}).attr("cy",function(t,e){return d(f(t,t.pointIndex))}).attr("r",2).attr("class",function(t,e){return p(t,t.pointIndex)==h.domain()[1]?"nv-point nv-currentValue":f(t,t.pointIndex)==d.domain()[0]?"nv-point nv-minValue":"nv-point nv-maxValue"})}),n.renderEnd("sparkline immediate"),y}return y.options=lt.utils.optionsFunc.bind(y),y._options=Object.create({},{width:{get:function(){return l},set:function(t){l=t}},height:{get:function(){return u},set:function(t){u=t}},xDomain:{get:function(){return i},set:function(t){i=t}},yDomain:{get:function(){return r},set:function(t){r=t}},xRange:{get:function(){return o},set:function(t){o=t}},yRange:{get:function(){return s},set:function(t){s=t}},xScale:{get:function(){return h},set:function(t){h=t}},yScale:{get:function(){return d},set:function(t){d=t}},animate:{get:function(){return e},set:function(t){e=t}},showMinMaxPoints:{get:function(){return g},set:function(t){g=t}},showCurrentPoint:{get:function(){return v},set:function(t){v=t}},x:{get:function(){return p},set:function(t){p=d3.functor(t)}},y:{get:function(){return f},set:function(t){f=d3.functor(t)}},margin:{get:function(){return a}
1,set:function(t){a.top=(void 0!==t.top?t:a).top,a.right=(void 0!==t.right?t:a).right,a.bottom=(void 0!==t.bottom?t:a).bottom,a.left=(void 0!==t.left?t:a).left}},color:{get:function(){return m},set:function(t){m=lt.utils.getColor(t)}}}),y.dispatch=t,lt.utils.initOptions(y),y},lt.models.sparklinePlus=function(){"use strict";var u,c,h=lt.models.sparkline(),d={top:15,right:100,bottom:10,left:50},p=null,f=null,m=[],g=!1,v=d3.format(",r"),y=d3.format(",.2f"),b=!0,_=!0,w=!1,e=null,t=d3.dispatch("renderEnd"),n=lt.utils.renderWatch(t);function x(t){return n.reset(),n.models(h),t.each(function(n){var t=d3.select(this),e=(lt.utils.initSVG(t),lt.utils.availableWidth(p,t,d)),i=lt.utils.availableHeight(f,t,d);if(x.update=function(){t.call(x)},x.container=this,!n||!n.length)return lt.utils.noData(x,t),x;t.selectAll(".nv-noData").remove();var r=h.y()(n[n.length-1],n.length-1),o=(u=h.xScale(),c=h.yScale(),t.selectAll("g.nv-wrap.nv-sparklineplus").data([n])),s=o.enter().append("g").attr("class","nvd3 nv-wrap nv-sparklineplus").append("g"),a=o.select("g"),o=(s.append("g").attr("class","nv-sparklineWrap"),s.append("g").attr("class","nv-valueWrap"),s.append("g").attr("class","nv-hoverArea"),o.attr("transform","translate("+d.left+","+d.top+")"),a.select(".nv-sparklineWrap"));function l(){var t,e;g||(e=(t=a.selectAll(".nv-hoverValue").data(m)).enter().append("g").attr("class","nv-hoverValue").style("stroke-opacity",0).style("fill-opacity",0),t.exit().transition().duration(250).style("stroke-opacity",0).style("fill-opacity",0).remove(),t.attr("transform",function(t){return"translate("+u(h.x()(n[t],t))+",0)"}).transition().duration(250).style("stroke-opacity",1).style("fill-opacity",1),m.length&&(e.append("line").attr("x1",0).attr("y1",-d.top).attr("x2",0).attr("y2",i),e.append("text").attr("class","nv-xValue").attr("x",-6).attr("y",-d.top).attr("text-anchor","end").attr("dy",".9em"),a.select(".nv-hoverValue .nv-xValue").text(v(h.x()(n[m[0]],m[0]))),e.append("text").attr("class","nv-yValue").attr("x",6).attr("y",-d.top).attr("text-anchor","start").attr("dy",".9em"),a.select(".nv-hoverValue .nv-yValue").text(y(h.y()(n[m[0]],m[0])))))}h.width(e).height(i),o.call(h),b&&((o=a.select(".nv-valueWrap").selectAll(".nv-currentValue").data([r])).enter().append("text").attr("class","nv-currentValue").attr("dx",w?-8:8).attr("dy",".9em").style("text-anchor",w?"end":"start"),o.attr("x",e+(w?d.right:0)).attr("y",_?function(t){return c(t)}:0).style("fill",h.color()(n[n.length-1],n.length-1)).text(y(r))),s.select(".nv-hoverArea").append("rect").on("mousemove",function(){var t;g||(t=d3.mouse(this)[0]-d.left,m=[function(t,e){for(var n=Math.abs(h.x()(t[0],0)-e),i=0,r=0;r<t.length;r++)Math.abs(h.x()(t[r],r)-e)<n&&(n=Math.abs(h.x()(t[r],r)-e),i=r);return i}(n,Math.round(u.invert(t)))],l())}).on("click",function(){g=!g}).on("mouseout",function(){m=[],l()}),a.select(".nv-hoverArea rect").attr("transform",function(t){return"translate("+-d.left+","+-d.top+")"}).attr("width",e+d.left+d.right).attr("height",i+d.top)}),n.renderEnd("sparklinePlus immediate"),x}return x.dispatch=t,x.sparkline=h,x.options=lt.utils.optionsFunc.bind(x),x._options=Object.create({},{width:{get:function(){return p},set:function(t){p=t}},height:{get:function(){return f},set:function(t){f=t}},xTickFormat:{get:function(){return v},set:function(t){v=t}},yTickFormat:{get:function(){return y},set:function(t){y=t}},showLastValue:{get:function(){return b},set:function(t){b=t}},alignValue:{get:function(){return _},set:function(t){_=t}},rightAlignValue:{get:function(){return w},set:function(t){w=t}},noData:{get:function(){return e},set:function(t){e=t}},margin:{get:function(){return d},set:function(t){d.top=(void 0!==t.top?t:d).top,d.right=(void 0!==t.right?t:d).right,d.bottom=(void 0!==t.bottom?t:d).bottom,d.left=(void 0!==t.left?t:d).left}}}),lt.utils.inheritOptions(x,h),lt.utils.initOptions(x),x},lt.models.stackedArea=function(){"use strict";var c,h,d={top:0,right:0,bottom:0,left:0},p=960,f=500,m=lt.utils.defaultColor(),g=Math.floor(1e5*Math.random()),v=null,y=function(t){return t.x},b=function(t){return t.y},_=function(t,e){return!isNaN(b(t,e))&&null!==b(t,e)},e="stack",w="zero",x="default",C="linear",k=!1,$=lt.models.scatter(),n=250,S=d3.dispatch("areaClick","areaMouseover","areaMouseout","renderEnd","elementClick","elementMouseover","elementMouseout"),E=($.pointSize(2.2).pointDomain([2.2,2.2]),lt.utils.renderWatch(S,n));function T(t){return E.reset(),E.models($),t.each(function(t){var e=p-d.left-d.right,n=f-d.top-d.bottom,a=(v=d3.select(this),lt.utils.initSVG(v),c=$.xScale(),h=$.yScale(),t),i=(t.forEach(function(t,n){t.seriesIndex=n,t.values=t.values.map(function(t,e){return t.index=e,t.seriesIndex=n,t})}),t.filter(function(t){return!t.disabled})),i=(t=d3.layout.stack().order(x).offset(w).values(function(t){return t.values}
1).x(y).y(b).out(function(t,e,n){t.display={y:n,y0:e}})(i),v.selectAll("g.nv-wrap.nv-stackedarea").data([t])),r=i.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedarea"),o=r.append("defs"),r=r.append("g"),s=i.select("g");r.append("g").attr("class","nv-areaWrap"),r.append("g").attr("class","nv-scatterWrap"),i.attr("transform","translate("+d.left+","+d.top+")"),0==$.forceY().length&&$.forceY().push(0),$.width(e).height(n).x(y).y(function(t){if(void 0!==t.display)return t.display.y+t.display.y0}).color(t.map(function(t,e){return t.color=t.color||m(t,t.seriesIndex),t.color}));s.select(".nv-scatterWrap").datum(t).call($),o.append("clipPath").attr("id","nv-edge-clip-"+g).append("rect"),i.select("#nv-edge-clip-"+g+" rect").attr("width",e).attr("height",n),s.attr("clip-path",k?"url(#nv-edge-clip-"+g+")":"");var l=d3.svg.area().defined(_).x(function(t,e){return c(y(t,e))}).y0(function(t){return h(t.display.y0)}).y1(function(t){return h(t.display.y+t.display.y0)}).interpolate(C),u=d3.svg.area().defined(_).x(function(t,e){return c(y(t,e))}).y0(function(t){return h(t.display.y0)}).y1(function(t){return h(t.display.y0)}),r=s.select(".nv-areaWrap").selectAll("path.nv-area").data(function(t){return t});r.enter().append("path").attr("class",function(t,e){return"nv-area nv-area-"+e}).attr("d",function(t,e){return u(t.values,t.seriesIndex)}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0),S.areaMouseover({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),S.areaMouseout({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}).on("click",function(t,e){d3.select(this).classed("hover",!1),S.areaClick({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}),r.exit().remove(),r.style("fill",function(t,e){return t.color||m(t,t.seriesIndex)}).style("stroke",function(t,e){return t.color||m(t,t.seriesIndex)}),r.watchTransition(E,"stackedArea path").attr("d",function(t,e){return l(t.values,e)}),$.dispatch.on("elementMouseover.area",function(t){s.select(".nv-chart-"+g+" .nv-area-"+t.seriesIndex).classed("hover",!0)}),$.dispatch.on("elementMouseout.area",function(t){s.select(".nv-chart-"+g+" .nv-area-"+t.seriesIndex).classed("hover",!1)}),T.d3_stackedOffset_stackPercent=function(t){for(var e,n,i=t.length,r=t[0].length,o=[],s=0;s<r;++s){for(n=e=0;e<a.length;e++)n+=b(a[e].values[s]);if(n)for(e=0;e<i;e++)t[e][s][1]/=n;else for(e=0;e<i;e++)t[e][s][1]=0}for(s=0;s<r;++s)o[s]=0;return o}}),E.renderEnd("stackedArea immediate"),T}return T.dispatch=S,(T.scatter=$).dispatch.on("elementClick",function(){S.elementClick.apply(this,arguments)}),$.dispatch.on("elementMouseover",function(){S.elementMouseover.apply(this,arguments)}),$.dispatch.on("elementMouseout",function(){S.elementMouseout.apply(this,arguments)}),T.interpolate=function(t){return arguments.length?(C=t,T):C},T.duration=function(t){return arguments.length?(n=t,E.reset(n),$.duration(n),T):n},T.dispatch=S,T.scatter=$,T.options=lt.utils.optionsFunc.bind(T),T._options=Object.create({},{width:{get:function(){return p},set:function(t){p=t}},height:{get:function(){return f},set:function(t){f=t}},defined:{get:function(){return _},set:function(t){_=t}},clipEdge:{get:function(){return k},set:function(t){k=t}},offset:{get:function(){return w},set:function(t){w=t}},order:{get:function(){return x},set:function(t){x=t}},interpolate:{get:function(){return C},set:function(t){C=t}},x:{get:function(){return y},set:function(t){y=d3.functor(t)}},y:{get:function(){return b},set:function(t){b=d3.functor(t)}},margin:{get:function(){return d},set:function(t){d.top=(void 0!==t.top?t:d).top,d.right=(void 0!==t.right?t:d).right,d.bottom=(void 0!==t.bottom?t:d).bottom,d.left=(void 0!==t.left?t:d).left}},color:{get:function(){return m},set:function(t){m=lt.utils.getColor(t)}},style:{get:function(){return e},set:function(t){switch(e=t){case"stack":T.offset("zero"),T.order("default");break;case"stream":T.offset("wiggle"),T.order("inside-out");break;case"stream-center":T.offset("silhouette"),T.order("inside-out");break;case"expand":T.offset("expand"),T.order("default");break;case"stack_percent":T.offset(T.d3_stackedOffset_stackPercent),T.order("default")}}},duration:{get:function(){return n},set:function(t){n=t,E.reset(n),$.duration(n)}}}),lt.utils.inheritOptions(T,$),lt.utils.initOptions(T),T},lt.models.stackedAreaChart=function(){"use strict";var c,p,f=lt.models.stackedArea(),m=lt.models.axis(),g=lt.models.axis(),v=lt.models.legend(),y=lt.models.legend(),b=lt.interactiveGuideline(),e=lt.models.tooltip(),_={top:30,right:25,bottom:50,left:60},w=null,x=null,C=lt.utils.defaultColor(),k=!0,$=!0,S=!0,E=!0,T=!1,D=!1,M=!0,A="TOTAL",O=lt.utils.state(),N=null,n=null,P=d3.dispatch("stateChange","changeState","renderEnd"),R=250,I=["Stacked","Stream","Expanded"],L={},H=250,F=(O.style=f.style(),m.orient("bottom").tickPadding(7),g.orient(T?"right":"left"),e.headerFormatter(function(t,e){return m.tickFormat()(t,e)}).valueFormatter(function(t,e){return g.tickFormat()(t,e)}),b.tooltip.headerFormatter(function(t,e){return m.tickFormat()(t,e)}).valueFormatter(function(t,e){return g.tickFormat()(t,e)}),null),z=null,i=(y.updateState(!1),lt.utils.renderWatch(P)),V=(f.style(),d3.format("%"));function j(t){return i.reset(),i.models(f),S&&i.models(m),E&&i.models(g),t.each(function(h){var t,e,n,i=d3.select(this),d=this,r=(lt.utils.initSVG(i),lt.utils.availableWidth(w,i,_)),o=lt.utils.availableHeight(x,i,_);if(j.update=function(){i.transition().duration(H).call(j)},j.container=this,O.setter((e=h,function(n){void 0!==n.style&&n.style,void 0!==n.active&&e.forEach(function(t,e){t.disabled=!n.active[e]})}),j.update).getter((t=h,function(){return{active:t.map(function(t){return!t.disabled}),style:f.style()}})).update(),O.disabled=h.map(function(t){return!!t.disabled}),!N)for(n in N={},O)O[n]instanceof Array?N[n]=O[n].slice(0):N[n]=O[n];if(!(h&&h.length&&h.filter(function(t){return t.values.length}).length))return lt.utils.noData(j,i),j;i.selectAll(".nv-noData").remove(),c=f.xScale(),p=f.yScale();var s,a=i.selectAll("g.nv-wrap.nv-stackedAreaChart").data([h]),l=a.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedAreaChart").append("g"),u=a.select("g");l.append("rect").style("opacity",0),l.append("g").attr("class","nv-x nv-axis"),l.append("g").attr("class","nv-y nv-axis"),l.append("g").attr("class","nv-stackedWrap"),l.append("g").attr("class","nv-legendWrap"),l.append("g").attr("class","nv-control
1sWrap"),l.append("g").attr("class","nv-interactive"),u.select("rect").attr("width",r).attr("height",o),$?(l=k?r-R:r,v.width(l),u.select(".nv-legendWrap").datum(h).call(v),_.top!=v.height()&&(_.top=v.height(),o=lt.utils.availableHeight(x,i,_)),u.select(".nv-legendWrap").attr("transform","translate("+(r-l)+","+-_.top+")")):u.select(".nv-legendWrap").selectAll("*").remove(),k?(s=[{key:L.stacked||"Stacked",metaKey:"Stacked",disabled:"stack"!=f.style(),style:"stack"},{key:L.stream||"Stream",metaKey:"Stream",disabled:"stream"!=f.style(),style:"stream"},{key:L.expanded||"Expanded",metaKey:"Expanded",disabled:"expand"!=f.style(),style:"expand"},{key:L.stack_percent||"Stack %",metaKey:"Stack_Percent",disabled:"stack_percent"!=f.style(),style:"stack_percent"}],R=I.length/3*260,s=s.filter(function(t){return-1!==I.indexOf(t.metaKey)}),y.width(R).color(["#444","#444","#444"]),u.select(".nv-controlsWrap").datum(s).call(y),_.top!=Math.max(y.height(),v.height())&&(_.top=Math.max(y.height(),v.height()),o=lt.utils.availableHeight(x,i,_)),u.select(".nv-controlsWrap").attr("transform","translate(0,"+-_.top+")")):u.select(".nv-controlsWrap").selectAll("*").remove(),a.attr("transform","translate("+_.left+","+_.top+")"),T&&u.select(".nv-y.nv-axis").attr("transform","translate("+r+",0)"),D&&(b.width(r).height(o).margin({left:_.left,top:_.top}).svgContainer(i).xScale(c),a.select(".nv-interactive").call(b)),f.width(r).height(o),u.select(".nv-stackedWrap").datum(h).transition().call(f),S&&(m.scale(c)._ticks(lt.utils.calcTicksX(r/100,h)).tickSize(-o,0),u.select(".nv-x.nv-axis").attr("transform","translate(0,"+o+")"),u.select(".nv-x.nv-axis").transition().duration(0).call(m)),E&&(l="wiggle"===f.offset()?0:lt.utils.calcTicksY(o/36,h),g.scale(p)._ticks(l).tickSize(-r,0),"expand"===f.style()||"stack_percent"===f.style()?(a=g.tickFormat(),F&&a===V||(F=a),g.tickFormat(V)):F&&(g.tickFormat(F),F=null),u.select(".nv-y.nv-axis").transition().duration(0).call(g)),f.dispatch.on("areaClick.toggle",function(n){1===h.filter(function(t){return!t.disabled}).length?h.forEach(function(t){t.disabled=!1}):h.forEach(function(t,e){t.disabled=e!=n.seriesIndex}),O.disabled=h.map(function(t){return!!t.disabled}),P.stateChange(O),j.update()}),v.dispatch.on("stateChange",function(t){for(var e in t)O[e]=t[e];P.stateChange(O),j.update()}),y.dispatch.on("legendClick",function(t,e){t.disabled&&(s=s.map(function(t){return t.disabled=!0,t}),t.disabled=!1,f.style(t.style),O.style=f.style(),P.stateChange(O),j.update())}),b.dispatch.on("elementMousemove",function(i){f.clearHighlights();var r,o,s,a,l,u=[],c=0,t=(h.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(t,e){o=lt.interactiveBisect(t.values,i.pointXValue,j.x());var n=t.values[o];null!=j.y()(n,o)&&f.highlightPoint(e,o,!0),void 0!==n&&(void 0===r&&(r=n),void 0===s&&(s=j.xScale()(j.x()(n,o))),e="expand"==f.style()?n.display.y:j.y()(n,o),u.push({key:t.key,value:e,color:C(t,t.seriesIndex),point:n}),M)&&"expand"!=f.style()&&(c+=e)}),u.reverse(),2<u.length&&(a=j.yScale().invert(i.mouseY),l=null,u.forEach(function(t,e){a=Math.abs(a);var n=Math.abs(t.point.display.y0),t=Math.abs(t.point.display.y);n<=a&&a<=t+n&&(l=e)}),null!=l)&&(u[l].highlight=!0),M&&"expand"!=f.style()&&2<=u.length&&u.push({key:A,value:c,total:!0}),j.x()(r,o)),e=b.tooltip.valueFormatter();"expand"===f.style()||"stack_percent"===f.style()?(z=z||e,e=d3.format(".1%")):z&&(e=z,z=null),b.tooltip.chartContainer(d.parentNode).valueFormatter(e).data({value:t,series:u})(),b.renderGuideLine(s)}),b.dispatch.on("elementMouseout",function(t){f.clearHighlights()}),P.on("changeState",function(n){void 0!==n.disabled&&h.length===n.disabled.length&&(h.forEach(function(t,e){t.disabled=n.disabled[e]}),O.disabled=n.disabled),void 0!==n.style&&(f.style(n.style),n.style),j.update()})}),i.renderEnd("stacked Area chart immediate"),j}return f.dispatch.on("elementMouseover.tooltip",function(t){t.point.x=f.x()(t.point),t.point.y=f.y()(t.point),e.data(t).hidden(!1)}),f.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),j.dispatch=P,j.stacked=f,j.legend=v,j.controls=y,j.xAxis=m,j.yAxis=g,j.interactiveLayer=b,j.tooltip=e,j.dispatch=P,j.options=lt.utils.optionsFunc.bind(j),j._options=Object.create({},{width:{get:function(){return w},set:function(t){w=t}},height:{get:function(){return x},set:function(t){x=t}},showLegend:{get:function(){return $},set:function(t){$=t}},showXAxis:{get:function(){return S},set:function(t){S=t}},showYAxis:{get:function(){return E},set:function(t){E=t}},defaultState:{get:function(){return N},set:function(t){N=t}},noData:{get:function(){return n},set:function(t){n=t}},showControls:{get:function(){return k},set:function(t){k=t}}
1,controlLabels:{get:function(){return L},set:function(t){L=t}},controlOptions:{get:function(){return I},set:function(t){I=t}},showTotalInTooltip:{get:function(){return M},set:function(t){M=t}},totalLabel:{get:function(){return A},set:function(t){A=t}},margin:{get:function(){return _},set:function(t){_.top=(void 0!==t.top?t:_).top,_.right=(void 0!==t.right?t:_).right,_.bottom=(void 0!==t.bottom?t:_).bottom,_.left=(void 0!==t.left?t:_).left}},duration:{get:function(){return H},set:function(t){H=t,i.reset(H),f.duration(H),m.duration(H),g.duration(H)}},color:{get:function(){return C},set:function(t){C=lt.utils.getColor(t),v.color(C),f.color(C)}},rightAlignYAxis:{get:function(){return T},set:function(t){T=t,g.orient(T?"right":"left")}},useInteractiveGuideline:{get:function(){return D},set:function(t){D=!!t,j.interactive(!t),j.useVoronoi(!t),f.scatter.interactive(!t)}}}),lt.utils.inheritOptions(j,f),lt.utils.initOptions(j),j},lt.models.sunburst=function(){"use strict";var o,n,i,s,r={top:0,right:0,bottom:0,left:0},a=600,l=600,u="count",c={count:function(t){return 1},value:function(t){return t.value||t.size},size:function(t){return t.value||t.size}},h=Math.floor(1e4*Math.random()),d=null,p=lt.utils.defaultColor(),f=!1,m=function(t){return"count"===u?t.name+" #"+t.value:t.name+" "+(t.value||t.size)},g=.02,e=function(t,e){return t.name>e.name},v=function(t,e){return t.name},y=!0,b=500,_=d3.dispatch("chartClick","elementClick","elementDblClick","elementMousemove","elementMouseover","elementMouseout","renderEnd"),w=d3.scale.linear().range([0,2*Math.PI]),x=d3.scale.sqrt(),C=d3.layout.partition().sort(e),k={},$=d3.svg.arc().startAngle(function(t){return Math.max(0,Math.min(2*Math.PI,w(t.x)))}).endAngle(function(t){return Math.max(0,Math.min(2*Math.PI,w(t.x+t.dx)))}).innerRadius(function(t){return Math.max(0,x(t.y))}).outerRadius(function(t){return Math.max(0,x(t.y+t.dy))});function S(t){return 90<E(t)?180:0}function E(t){return(Math.max(0,Math.min(2*Math.PI,w(t.x)))+Math.max(0,Math.min(2*Math.PI,w(t.x+t.dx))))/2*(180/Math.PI)-90}function T(t){var e=Math.max(0,Math.min(2*Math.PI,w(t.x))),t=Math.max(0,Math.min(2*Math.PI,w(t.x+t.dx)));return g<t-e}function D(e,t){var n=d3.interpolate(w.domain(),[o.x,o.x+o.dx]),i=d3.interpolate(x.domain(),[o.y,1]),r=d3.interpolate(x.range(),[o.y?20:0,s]);return 0===t?function(){return $(e)}:function(t){return w.domain(n(t)),x.domain(i(t)).range(r(t)),$(e)}}function M(e){var n=d3.interpolate({x:e.x0,dx:e.dx0,y:e.y0,dy:e.dy0},e);return function(t){t=n(t);return e.x0=t.x,e.dx0=t.dx,e.y0=t.y,e.dy0=t.dy,$(t)}}function A(t){t.forEach(function(t){var e=v(t),e=k[e];e?(t.dx0=e.dx,t.x0=e.x,t.dy0=e.dy,t.y0=e.y):(t.dx0=t.dx,t.x0=t.x,t.dy0=t.dy,t.y0=t.y),t=v(e=t),k[t]||(k[t]={}),(t=k[t]).dx=e.dx,t.x=e.x,t.dy=e.dy,t.y=e.y})}function O(r){var t=d.selectAll("text"),e=d.selectAll("path");t.transition().attr("opacity",0),o=r,e.transition().duration(b).attrTween("d",D).each("end",function(i){i.x>=r.x&&i.x<r.x+r.dx&&i.depth>=r.depth&&d3.select(this.parentNode).select("text").transition().duration(b).text(function(t){return m(t)}).attr("opacity",function(t){return T(t)?1:0}).attr("transform",function(){var t,e,n=this.getBBox().width;return 0===i.depth?"translate("+n/2*-1+",0)":i.depth===r.depth?"translate("+(x(i.y)+5)+",0)":(t=E(i),0===(e=S(i))?"rotate("+t+")translate("+(x(i.y)+5)+",0)":"rotate("+t+")translate("+(x(i.y)+n+5)+",0)rotate("+e+")")})})}var N=lt.utils.renderWatch(_);function P(t){return N.reset(),t.each(function(t){d=d3.select(this),n=lt.utils.availableWidth(a,d,r),i=lt.utils.availableHeight(l,d,r),s=Math.min(n,i)/2,x.range([0,s]);var e=d.select("g.nvd3.nv-wrap.nv-sunburst"),t=(e[0][0]||(e=d.append("g").attr("class","nvd3 nv-wrap nv-sunburst nv-chart-"+h).attr("transform","translate("+n/2+","+i/2+")")),d.on("click",function(t,e){_.chartClick({data:t,index:e,pos:d3.event,id:h})}),C.value(c[u]||c.count),C.nodes(t[0]).reverse()),e=(A(t),e.selectAll(".arc-container").data(t,v));e.enter().append("g").attr("class","arc-container").append("path").attr("d",$).style("fill",function(t){return t.color||p((!y||t.children?t:t.parent).name)}).style("stroke","#FFF").on("click",O).on("mouseover",function(t,e){d3.select(this).classed("hover",!0).style("opacity",.8),_.elementMouseover({data:t,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1).style("opacity",1),_.elementMouseout({data:t})}).on("mousemove",function(t,e){_.elementMousemove({data:t})}),e.each(function(t){d3.select(this).select("path").transition().duration(b).attrTween("d",M)}),f&&(e.selectAll("text").remove(),e.append("text").text(function(t){return m(t)}).transition().duration(b).attr("opacity",function(t){return T(t)?1:0}).attr("transform",function(t){var e,n,i=this.getBBox().width;return 0===t.depth?"rotate(0)translate("+i/2*-1+",0)":(e=E(t),0===(n=S(t))?"rotate("+e+")translate("+(x(t.y)+5)+",0)":"rotate("+e+")translate("+(x(t.y)+i+5)+",0)rotate("+n+")")})),O(t[t.length-1]),e.exit().transition().duration(b).attr("opacity",0).each("end",function(t){t=v(t);k[t]=void 0}).remove()}),N.renderEnd("sunburst immediate"),P}return P.dispatch=_,P.options=lt.utils.optionsFunc.bind(P),P._options=Object.create({},{width:{get:function(){return a}
1,set:function(t){a=t}},height:{get:function(){return l},set:function(t){l=t}},mode:{get:function(){return u},set:function(t){u=t}},id:{get:function(){return h},set:function(t){h=t}},duration:{get:function(){return b},set:function(t){b=t}},groupColorByParent:{get:function(){return y},set:function(t){y=!!t}},showLabels:{get:function(){return f},set:function(t){f=!!t}},labelFormat:{get:function(){return m},set:function(t){m=t}},labelThreshold:{get:function(){return g},set:function(t){g=t}},sort:{get:function(){return e},set:function(t){e=t}},key:{get:function(){return v},set:function(t){v=t}},margin:{get:function(){return r},set:function(t){r.top=(null!=t.top?t:r).top,r.right=(null!=t.right?t:r).right,r.bottom=(null!=t.bottom?t:r).bottom,r.left=(null!=t.left?t:r).left}},color:{get:function(){return p},set:function(t){p=lt.utils.getColor(t)}}}),lt.utils.initOptions(P),P},lt.models.sunburstChart=function(){"use strict";var r=lt.models.sunburst(),e=lt.models.tooltip(),o={top:30,right:20,bottom:20,left:20},n=lt.utils.defaultColor(),i=(Math.round(1e5*Math.random()),null),s=null,a=250,t=d3.dispatch("stateChange","changeState","renderEnd"),l=lt.utils.renderWatch(t);function u(t){return l.reset(),l.models(r),t.each(function(t){var e=d3.select(this),n=(lt.utils.initSVG(e),lt.utils.availableWidth(null,e,o)),i=lt.utils.availableHeight(null,e,o);if(u.update=function(){(0===a?e:e.transition().duration(a)).call(u)},u.container=e,!t||!t.length)return lt.utils.noData(u,e),u;e.selectAll(".nv-noData").remove(),r.width(n).height(i),e.call(r)}),l.renderEnd("sunburstChart immediate"),u}return e.duration(0).headerEnabled(!1).valueFormatter(function(t){return t}),r.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:t.data.name,value:t.data.value||t.data.size,color:t.color},e.data(t).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),r.dispatch.on("elementMousemove.tooltip",function(t){e()}),u.dispatch=t,u.sunburst=r,u.tooltip=e,u.options=lt.utils.optionsFunc.bind(u),u._options=Object.create({},{noData:{get:function(){return s},set:function(t){s=t}},defaultState:{get:function(){return i},set:function(t){i=t}},color:{get:function(){return n},set:function(t){n=t,r.color(n)}},duration:{get:function(){return a}
vendor: 5,359 bytes, line 1
1,set:function(t){a=t,l.reset(a),r.duration(a)}},margin:{get:function(){return o},set:function(t){o.top=(void 0!==t.top?t:o).top,o.right=(void 0!==t.right?t:o).right,o.bottom=(void 0!==t.bottom?t:o).bottom,o.left=(void 0!==t.left?t:o).left}}}),lt.utils.inheritOptions(u,r),lt.utils.initOptions(u),u},lt.version="1.8.3"}(),!function(l,n,i,a){function u(t,e){this.settings=null,this.options=l.extend({},u.Defaults,e),this.$element=l(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},l.each(["onResize","onThrottledResize"],l.proxy(function(t,e){this._handlers[e]=l.proxy(this[e],this)},this)),l.each(u.Plugins,l.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),l.each(u.Workers,l.proxy(function(t,e){this._pipe.push({filter:e.filter,run:l.proxy(e.run,this)})},this)),this.setup(),this.initialize()}u.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:n,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},u.Width={Default:"default",Inner:"inner",Outer:"outer"},u.Type={Event:"event",State:"state"},u.Plugins={},u.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",n=!this.settings.autoWidth,i=this.settings.rtl,i={width:"auto","margin-left":i?e:"","margin-right":i?"":e};n||this.$stage.children().css(i),t.css=i}},{filter:["width","items","settings"],run:function(t){var e,n=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=this._items.length,r=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:n};i--;)e=this._mergers[i],e=this.settings.mergeFit&&Math.min(e,this.settings.items)||e,t.items.merge=1<e||t.items.merge,o[i]=r?n*e:this._items[i].width();this._widths=o}},{filter:["items","settings"],run:function(){var t=[],e=this._items,n=this.settings,i=Math.max(2*n.items,4),r=2*Math.ceil(e.length/2),o=n.loop&&e.length?n.rewind?i:Math.max(i,r):0,s="",a="";for(o/=2;0<o;)t.push(this.normalize(t.length/2,!0)),s+=e[t[t.length-1]][0].outerHTML,t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),a=e[t[t.length-1]][0].outerHTML+a,--o;this._clones=t,l(s).addClass("cloned").appendTo(this.$stage),l(a).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t,e,n=this.settings.rtl?1:-1,i=this._clones.length+this._items.length,r=-1,o=[];++r<i;)t=o[r-1]||0,e=this._widths[this.relative(r)]+this.settings.margin,o.push(t+e*n);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,e={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(e)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,n=!this.settings.autoWidth,i=this.$stage.children();if(n&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],i.eq(e).css(t.css);else n&&(t.css.width=t.items.width,i.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var t,e,n=this.settings.rtl?1:-1,i=2*this.settings.stagePadding,r=this.coordinates(this.current())+i,o=r+this.width()*n,s=[],a=0,l=this._coordinates.length;a<l;a++)t=this._coordinates[a-1]||0,e=Math.abs(this._coordinates[a])+i*n,(this.op(t,"<=",r)&&this.op(t,">",o)||this.op(e,"<",r)&&this.op(e,">",o))&&s.push(a);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+s.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],u.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=l("
1<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(l("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},u.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");t.length?(this._items=t.get().map(function(t){return l(t)}),this._mergers=this._items.map(function(){return 1}),this.refresh()):(this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass))},u.prototype.initialize=function(){var t,e;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,e=this.$element.children(e).width(),t.length)&&e<=0&&this.preloadAutoWidthImages(t),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},u.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},u.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,n=-1,i=null;t?(l.each(t,function(t){t<=e&&n<t&&(n=Number(t))}),"function"==typeof(i=l.extend({},this.options,t[n])).stagePadding&&(i.stagePadding=i.stagePadding()),delete i.responsive,i.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):i=l.extend({},this.options),this.trigger("change",{property:{name:"settings",value:i}}),this._breakpoint=n,this.settings=i,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},u.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},u.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=l("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},u.prototype.update=function(){for(var t=0,e=this._pipe.length,n=l.proxy(function(t){return this[t]},this._invalidated),i={};t<e;)(this._invalidated.all||0<l.grep(this._pipe[t].filter,n).length)&&this._pipe[t].run(i),t++;this._invalidated={},this.is("valid")||this.enter("valid")},u.prototype.width=function(t){switch(t=t||u.Width.Default){case u.Width.Inner:case u.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},u.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},u.prototype.onThrottledResize=function(){n.clearTimeout(this.resizeTimer),this.resizeTimer=n.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},u.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},u.prototype.registerEventHandlers=function(){l.support.transition&&this.$stage.on(l.support.transition.end+".owl.core",l.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(n,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",l.proxy(this.onDragEnd,this)))},u.prototype.onDragStart=function(t){var e=null;3!==t.which&&(e=l.support.transform?{x:(e=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===e.length?12:4],y:e[16===e.length?13:5]}:(e=this.$stage.position(),{x:this.settings.rtl?e.left+this.$stage.width()-this.width()+this.settings.margin:e.left,y:e.top}),this.is("animating")&&(l.support.transform?this.animate(e.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=l(t.target),this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this.pointer(t),l(i).on("mouseup.owl.core touchend.owl.core",l.proxy(this.onDragEnd,this)),l(i).one("mousemove.owl.core touchmove.owl.core",l.proxy(function(t){var e=this.difference(this._drag.pointer,this.pointer(t));l(i).on("mousemove.owl.core touchmove.owl.core",l.proxy(this.onDragMove,this)),Math.abs(e.x)<Math.abs(e.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},u.prototype.onDragMove=function(t){var e=null,n=null,i=this.difference(this._drag.pointer,this.pointer(t)),r=this.difference(this._drag.stage.start,i);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),n=this.coordinates(this.maximum()+1)-e,r.x=((r.x-e)%n+n)%n+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),n=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),t=this.settings.pullDrag?-1*i.x/5:0,r.x=Math.max(Math.min(r.x,e+t),n+t)),this._drag.stage.current=r,this.animate(r.x))},u.prototype.onDragEnd=function(t){var t=this.difference(this._drag.pointer,this.pointer(t)),e=this._drag.stage.current,n=0<t.x^this.settings.rtl?"left":"right";l(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==t.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==t.x?n:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=n,3<Math.abs(t.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1}),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},u.prototype.closest=function(n,i){var r=-1,o=this.width(),s=this.coordinates();return this.settings.freeDrag||l.each(s,l.proxy(function(t,e){return"left"===i&&e-30<n&&n<e+30?r=t:"right"===i&&e-o-30<n&&n<e-o+30?r=t+1:this.op(n,"<",e)&&this.op(n,">
1",s[t+1]!==a?s[t+1]:e-o)&&(r="left"===i?t+1:t),-1===r},this)),this.settings.loop||(this.op(n,">",s[this.minimum()])?r=n=this.minimum():this.op(n,"<",s[this.maximum()])&&(r=n=this.maximum())),r},u.prototype.animate=function(t){var e=0<this.speed();this.is("animating")&&this.onTransitionEnd(),e&&(this.enter("animating"),this.trigger("translate")),l.support.transform3d&&l.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):e?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,l.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},u.prototype.is=function(t){return this._states.current[t]&&0<this._states.current[t]},u.prototype.current=function(t){if(t!==a){if(0===this._items.length)return a;var e;t=this.normalize(t),this._current!==t&&((e=this.trigger("change",{property:{name:"position",value:t}})).data!==a&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}}))}return this._current},u.prototype.invalidate=function(t){return"string"===l.type(t)&&(this._invalidated[t]=!0,this.is("valid"))&&this.leave("valid"),l.map(this._invalidated,function(t,e){return e})},u.prototype.reset=function(t){(t=this.normalize(t))!==a&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},u.prototype.normalize=function(t,e){var n=this._items.length,e=e?0:this._clones.length;return!this.isNumeric(t)||n<1?t=a:(t<0||n+e<=t)&&(t=((t-e/2)%n+n)%n+e/2),t},u.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},u.prototype.maximum=function(t){var e,n,i,r=this.settings,o=this._coordinates.length;if(r.loop)o=this._clones.length/2+this._items.length-1;else if(r.autoWidth||r.merge){if(e=this._items.length)for(n=this._items[--e].width(),i=this.$element.width();e--&&!((n+=this._items[e].width()+this.settings.margin)>i););o=e+1}else o=r.center?this._items.length-1:this._items.length-r.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},u.prototype.minimum=function(t){return t?0:this._clones.length/2},u.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},u.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},u.prototype.clones=function(n){function i(t){return t%2==0?r+t/2:e-(t+1)/2}var e=this._clones.length/2,r=e+this._items.length;return n===a?l.map(this._clones,function(t,e){return i(e)}):l.map(this._clones,function(t,e){return t===n?i(e):null})},u.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},u.prototype.coordinates=function(t){var e,n=1,i=t-1;return t===a?l.map(this._coordinates,l.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(n=-1,i=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[i]||0))/2*n):e=this._coordinates[i]||0,Math.ceil(e))},u.prototype.duration=function(t,e,n){return 0===n?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(n||this.settings.smartSpeed)},u.prototype.to=function(t,e){var n=this.current(),i=t-this.relative(n),r=(0<i)-(i<0),o=this._items.length,s=this.minimum(),a=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(i)>o/2&&(i+=-1*r*o),(r=(((t=n+i)-s)%o+o)%o+s)!==t&&r-i<=a&&0<r-i&&this.reset(n=(t=r)-i)):t=this.settings.rewind?(t%(a+=1)+a)%a:Math.max(s,Math.min(a,t)),this.speed(this.duration(n,t,e)),this.current(t),this.isVisible()&&this.update()},u.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},u.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},u.prototype.onTransitionEnd=function(t){if(t!==a&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},u.prototype.viewport=function(){var t;return this.options.responsiveBaseElement!==n?t=l(this.options.responsiveBaseElement).width():n.innerWidth?t=n.innerWidth:i.documentElement&&i.documentElement.clientWidth?t=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),t},u.prototype.replace=function(t){this.$stage.empty(),this._items=[],t=t&&(t instanceof jQuery?t:l(t)),(t=this.settings.nestedItemSelector?t.find("."+this.settings.nestedItemSelector):t).filter(function(){return 1===this.nodeType}).each(l.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(+e.f
vendor: 27,992 bytes, line 1
1ind("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},u.prototype.add=function(t,e){var n=this.relative(this._current);e=e===a?this._items.length:this.normalize(e,!0),t=t instanceof jQuery?t:l(t),this.trigger("add",{content:t,position:e}),t=this.prepare(t),0===this._items.length||e===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[e-1].after(t),this._items.push(t),this._mergers.push(+t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,+t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:t,position:e})},u.prototype.remove=function(t){(t=this.normalize(t,!0))!==a&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},u.prototype.preloadAutoWidthImages=function(t){t.each(l.proxy(function(t,e){this.enter("pre-loading"),e=l(e),l(new Image).one("load",l.proxy(function(t){e.attr("src",t.target.src),e.css("opacity",1),this.leave("pre-loading"),this.is("pre-loading")||this.is("initializing")||this.refresh()},this)).attr("src",e.attr("src")||e.attr("data-src")||e.attr("data-src-retina"))},this))},u.prototype.destroy=function(){for(var t in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),l(i).off(".owl.core"),!1!==this.settings.responsive&&(n.clearTimeout(this.resizeTimer),this.off(n,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[t].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},u.prototype.op=function(t,e,n){var i=this.settings.rtl;switch(e){case"<":return i?n<t:t<n;case">":return i?t<n:n<t;case">=":return i?t<=n:n<=t;case"<=":return i?n<=t:t<=n}},u.prototype.on=function(t,e,n,i){t.addEventListener?t.addEventListener(e,n,i):t.attachEvent&&t.attachEvent("on"+e,n)},u.prototype.off=function(t,e,n,i){t.removeEventListener?t.removeEventListener(e,n,i):t.detachEvent&&t.detachEvent("on"+e,n)},u.prototype.trigger=function(t,e,n,i,r){var o={item:{count:this._items.length,index:this.current()}},s=l.camelCase(l.grep(["on",t,n],function(t){return t}).join("-").toLowerCase()),a=l.Event([t,"owl",n||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},o,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:u.Type.Event,name:t}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[s]&&this.settings[s].call(this,a)),a},u.prototype.enter=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]===a&&(this._states.current[e]=0),this._states.current[e]++},this))},u.prototype.leave=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]--},this))},u.prototype.register=function(n){var e;n.type===u.Type.Event?(l.event.special[n.name]||(l.event.special[n.name]={}),l.event.special[n.name].owl||(e=l.event.special[n.name]._default,l.event.special[n.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&-1<t.namespace.indexOf("owl"):e.apply(this,arguments)},l.event.special[n.name].owl=!0)):n.type===u.Type.State&&(this._states.tags[n.name]?this._states.tags[n.name]=this._states.tags[n.name].concat(n.tags):this._states.tags[n.name]=n.tags,this._states.tags[n.name]=l.grep(this._states.tags[n.name],l.proxy(function(t,e){return l.inArray(t,this._states.tags[n.name])===e},this)))},u.prototype.suppress=function(t){l.each(t,l.proxy(function(t,e){this._supress[e]=!0},this))},u.prototype.release=function(t){l.each(t,l.proxy(function(t,e){delete this._supress[e]},this))},u.prototype.pointer=function(t){var e={x:null,y:null};return(t=(t=t.originalEvent||t||n.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},u.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},u.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},l.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=l(this),n=t.data("owl.carousel");n||(n=new u(this,"object"==typeof e&&e),t.data("owl.carousel",n),l.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,e){n.register({type:u.Type.Event,name:e}),n.$element.on(e+".owl.carousel.core",l.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([e]),n[e].apply(this,[].slice.call(arguments,1)),this.release([e]))},n))})),"string"==typeof e&&"_"!==e.charAt(0)&&n[e].apply(n,i)})},l.fn.owlCarousel.Constructor=u}(window.Zepto||window.jQuery,window,document),function(e,n){function i(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)}i.Defaults={autoRefresh:!0,autoRefreshInterval:500},i.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=n.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},i.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible)&&this._core.invalidate("width")&&this._core.refresh()},i.prototype.destroy=function(){var t,e;for(t in n.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=i}(window.Zepto||window.jQuery,window,document),function(a,r){function e(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var e=this._core.settings,n=e.center&&Math.ceil(e.items/2)||e.items,i=e.center&&-1*n||0,r=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+i,o=this._core.clones().length,s=a.proxy(function(t,e){this.load(e)},this);for(0<e.lazyLoadEager&&(n+=e.lazyLoadEager,e.loop)&&(r-=e.lazyLoadEager,n++);i++<n;)this.load(o/2+this._core.relative(r)),o&&a.each(this._core.clones(this._core.relative(r)),s),r++}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)}e.Defaults={lazyLoad:!1,lazyLoadEager:0},e.prototype.load=function(t){var t=this._core.$stage.children().eq(t),e=t&&t.find(".owl-lazy");!e||-1<a.inArray(t.get(0),this._loaded)||(e.each(a.proxy(function(t,e){var n=a(e),i=1<r.devicePixelRatio&&n.attr("data-src-retina")||n.attr("data-src")||n.attr("data-srcset");this._core.trigger("load",{element:n,url:i},"lazy"),n.is("img")?n.one("load.owl.lazy",a.proxy(function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:i},"lazy")},this)).attr("src",i):n.is("source")?n.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:n,url:i},"lazy")},this)).attr("srcset",i):((e=new Image).onload=a.proxy(function(){n.css({"background-image":'url("'+i+'")',opacity:"1"}),this._core.trigger("loaded",{element:n,url:i},"lazy")},this),e.src=i)},this)),this._loaded.push(t.get(0)))},e.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(r,n){function i(t){this._core=t,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=r.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var e=this;r(n).on("load",function(){e._core.settings.autoHeight&&e.update()}),r(n).resize(function(){e._core.settings.autoHeight&&(null!=e._intervalId&&clearTimeout(e._intervalId),e._intervalId=setTimeout(function(){e.update()},250))})}i.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},i.prototype.update=function(){var t=this._core._current,e=t+this._core.settings.items,n=this._core.settings.lazyLoad,t=this._core.$stage.children().toArray().slice(t,e),i=[],e=0;r.each(t,function(t,e){i.push(r(e).height())}),(e=Math.max.apply(null,i))<=1&&n&&this._previousHeight&&(e=this._previousHeight),this._previousHeight=e,this._core.$stage.parent().height(e).addClass(this._core.settings.autoHeightClass)},i.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.AutoHeight=i}(window.Zepto||window.jQuery,window,document),function(c,e){function n(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":c.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":c.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":c.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":c.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":c.proxy(function(t){var e;t.namespace&&(e=c(t.content).find(".owl-video")).length&&(e.css("display","none"),this.fetch(e,c(t.content)))},this)},this._core.options=c.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",c.proxy(function(t){this.play(t)},this))}n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var n=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",i=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),r=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,s=t.attr("href");if(!s)throw new Error("Missing video URL.");if(-1<(i=s.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))n="youtube";else if(-1<i[3].indexOf("vimeo"))n="vimeo";else{if(!(-1<i[3].indexOf("vzaar")))throw new Error("Video URL not supported.");n="vzaar"}i=i[6],this._videos[s]={type:n,id:i,width:r,height:o},e.attr("data-video",s),this.thumbnail(t,this._videos[s])},n.prototype.thumbnail=function(e,t){function n(t){i=u.lazyLoad?c("<div/>",{class:"owl-video-tn "+l,srcType:t}):c("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+t+")"}),e.after(i),e.after('<div class="owl-video-play-icon"></div>')}var i,r,o=t.width&&t.height?"width:"+t.width+"px;height:"+t.height+"px;":"",s=e.find("img"),a="src",l="",u=this._core.settings;if(e.wrap(c("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),s.length)return n(s.attr(a)),s.remove(),!1;"youtube"===t.type?(r="//img.youtube.com/vi/"+t.id+"/hqdefault.jpg",n(r)):"vimeo"===t.type?c.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){r=t[0].thumbnail_large,n(r)}}):"vzaar"===t.type&&c.ajax({type:"GET",url:"//vzaar.com/api/videos/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){r=t.framegrab_url,n(r)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(t){var e,t=c(t.target).closest("."+this._core.settings.itemClass),n=this._videos[t.attr("data-video")],i=n.width||"100%",r=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),t=this._core.items(this._core.relative(t.index())),this._core.reset(t.index()),(e=c('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",r),e.attr("width",i),"youtube"===n.type?e.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?e.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&e.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),c(e).wrap('<div class="owl-video-frame" />').insertAfter(t.find(".owl-video")),this._playing=t.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var t=e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement;return t&&c(t).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},c.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,(window,document)),function(s){function e(t){this.core=t,this.core.options=s.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":s.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":s.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":s.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)}e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){var t,e,n,i,r,o;1===this.core.settings.items&&s.support.animation&&s.support.transition&&(this.core.speed(0),e=s.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),i=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,o=this.core.settings.animateOut,this.core.current()!==this.previous)&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(s.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),r)&&i.one(s.support.animation.end,e).addClass("animated owl-animated-in").addClass(r)},e.prototype.clear=function(t){s(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,(window,document)),function(i,r,e){function n(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":i.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":i.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":i.proxy(function(t,e,n){t.namespace&&this.play(e,n)},this),"stop.owl.autoplay":i.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":i.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=i.extend({},n.Defaults,this._core.options)}n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype._next=function(t){this._call=r.setTimeout(i.proxy(this._next,this,t),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||e.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},n.prototype.read=function(){return(new Date).getTime()-this._time},n.prototype.play=function(t,e){var n;this._core.is("rotating")||this._core.enter("rotating"),t=t||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||t),t),this._paused?(this._time=this.read(),this._paused=!1):r.clearTimeout(this._call),this._time+=this.read()%t-n,this._timeout=t,this._call=r.setTimeout(i.proxy(this._next,this,e),t-n)},n.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,r.clearTimeout(this._call),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,r.clearTimeout(this._call))},n.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},i.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(r){"use strict";function e(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+r(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":r.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":r.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":r.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=r.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)}e.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var t,n=this._core.settings;for(t in this._controls.$relative=(n.navContainer?r(n.navContainer):r("<div>").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=r("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",r.proxy(function(t){this.prev(n.navSpeed)},this)),this._controls.$next=r("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",r.proxy(function(t){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[r('<button role="button">').addClass(n.dotClass).append(r("<span>")).prop("outerHTML")]),this._controls.$absolute=(n.dotsContainer?r(n.dotsContainer):r("<div>").addClass(n.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",r.proxy(function(t){var e=(r(t.target).parent().is(this._controls.$absolute)?r(t.target):r(t.target).parent()).index();t.preventDefault(),this.to(e,n.dotsSpeed)},this)),this._overrides)this._core[t]=r.proxy(this[t],this)},e.prototype.destroy=function(){var t,e,n,i,r=this._core.settings;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&r.navContainer?this._controls[e].html(""):this._controls[e].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.prototype.update=function(){var t,e,n=this._core.clones().length/2,i=n+this._core.items().length,r=this._core.maximum(!0),o=this._core.settings,s=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=n,e=0;t<i;t++){if(s<=e||0===e){if(this._pages.push({start:Math.min(r,t-n),end:t-n+s-1}),Math.min(r,t-n)===r)break;e=0,0}e+=this._core.mergers(this._core.relative(t))}},e.prototype.draw=function(){var t=this._core.settings,e=this._core.items().length<=t.items,n=this._core.relative(this._core.current()),i=t.loop||t.rewind;this._controls.$relative.toggleClass("disabled",!t.nav||e),t.nav&&(this._controls.$previous.toggleClass("disabled",!i&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!i&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!t.dots||e),t.dots&&(i=this._pages.length-this._controls.$absolute.children().length,t.dotsData&&0!=i?this._controls.$absolute.html(this._templates.join("")):0<i?this._controls.$absolute.append(new Array(1+i).join(this._templates[0])):i<0&&this._controls.$absolute.children().slice(i).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(r.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:r.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotsData?1:e.dotsEach||e.items)}},e.prototype.current=function(){var n=this._core.relative(this._core.current());return r.grep(this._pages,r.proxy(function(t,e){return t.start<=n&&t.end>=n},this)).pop()},e.prototype.getPosition=function(t){var e,n,i=this._core.settings;return"page"==i.slideBy?(e=r.inArray(this.current(),this._pages),n=this._pages.length,t?++e:--e,e=this._pages[(e%n+n)%n].start):(e=this._core.relative(this._core.current()),n=this._core.items().length,t?e+=i.slideBy:e-=i.slideBy),e},e.prototype.next=function(t){r.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},e.prototype.prev=function(t){r.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},e.prototype.to=function(t,e,n){!n&&this._pages.length?(n=this._pages.length,r.proxy(this._overrides.to,this._core)(this._pages[(t%n+n)%n].start,e)):r.proxy(this._overrides.to,this._core)(t,e)},r.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,(window,document)),function(i,r){"use strict";function e(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":i.proxy(function(t){t.namespace&&"URLHash"===this._core.settings.startPosition&&i(r).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":i.proxy(function(t){var e;t.namespace&&(e=i(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash"))&&(this._hashes[e]=t.content)},this),"changed.owl.carousel":i.proxy(function(t){var n;t.namespace&&"position"===t.property.name&&(n=this._core.items(this._core.relative(this._core.current())),t=i.map(this._hashes,function(t,e){return t===n?e:null}).join())&&r.location.hash.slice(1)!==t&&(r.location.hash=t)},this)},this._core.options=i.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),i(r).on("hashchange.owl.navigation",i.proxy(function(t){var e=r.location.hash.substring(1),n=this._core.$stage.children(),n=this._hashes[e]&&n.index(this._hashes[e]);void 0!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))}e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var t,e;for(t in i(r).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},i.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(r){function e(t,n){var i=!1,e=t.charAt(0).toUpperCase()+t.slice(1);return r.each((t+" "+s.join(e+" ")+e).split(" "),function(t,e){if(void 0!==o[e])return i=!n||e,!1}),i}function t(t){return e(t,!0)}var o=r("<support>").get(0).style,s="Webkit Moz O ms".split(" "),n={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},i=function(){return!!e("transform")},a=function(){return!!e("perspective")},l=function(){return!!e("animation")};!function(){return!!e("transition")}()||(r.support.transition=new String(t("transition")),r.support.transition.end=n.transition.end[r.support.transition]),l()&&(r.support.animation=new String(t("animation")),r.support.animation.end=n.animation.end[r.support.animation]),i()&&(r.support.transform=new String(t("transform")),r.support.transform3d=a())}(window.Zepto||window.jQuery,(window,document)),!function(t,e){"use strict";var n;"function"==typeof define&&define.amd?define(["angular"],e):"object"==typeof module&&module.exports?((n=angular||require("angular"))&&n.module||"undefined"==typeof angular||(n=angular),module.exports=e(n)):e(t.angular)}(this,function(u){"use strict";var t=u.module("rzModule",[]).factory("RzSliderOptions",function(){var e={floor:0,ceil:null,step:1,precision:0,minRange:null,maxRange:null,restrictedRange:null,pushRange:!1,minLimit:null,maxLimit:null,id:null,translate:null,getLegend:null,
1stepsArray:null,bindIndexForStepsArray:!1,draggableRange:!1,draggableRangeOnly:!1,showSelectionBar:!1,showSelectionBarEnd:!1,showSelectionBarFromValue:null,showOuterSelectionBars:!1,hidePointerLabels:!1,hideLimitLabels:!1,autoHideLimitLabels:!0,readOnly:!1,disabled:!1,interval:350,showTicks:!1,showTicksValues:!1,ticksArray:null,ticksTooltip:null,ticksValuesTooltip:null,vertical:!1,getSelectionBarColor:null,getTickColor:null,getPointerColor:null,keyboardSupport:!0,scale:1,enforceStep:!0,enforceRange:!1,noSwitching:!1,onlyBindHandles:!1,onStart:null,onChange:null,onEnd:null,rightToLeft:!1,reversedControls:!1,boundPointerLabels:!0,mergeRangeLabelsIfSame:!1,labelOverlapSeparator:" - ",customTemplateScope:null,logScale:!1,customValueToPosition:null,customPositionToValue:null,selectionBarGradient:null,ariaLabel:null,ariaLabelledBy:null,ariaLabelHigh:null,ariaLabelledByHigh:null},n={},t={options:function(t){u.extend(n,t)},getOptions:function(t){return u.extend({},e,n,t)}};return t}).factory("rzThrottle",["$timeout",function(d){return function(n,i,r){function o(){h=u(),c=null,l=n.apply(s,a),s=a=null}var s,a,l,u=Date.now||function(){return(new Date).getTime()},c=null,h=0;r=r||{};return function(){var t=u(),e=i-(t-h);return s=this,a=arguments,e<=0?(d.cancel(c),c=null,h=t,l=n.apply(s,a),s=a=null):c||!1===r.trailing||(c=d(o,e)),l}}}]).factory("RzSlider",["$timeout","$document","$window","$compile","RzSliderOptions","rzThrottle",function(i,r,e,t,n,o){function s(t,e){this.scope=t,this.lowValue=0,this.highValue=0,this.sliderElem=e,this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.dragging={active:!1,value:0,difference:0,position:0,lowLimit:0,highLim
1it:0},this.positionProperty="left",this.dimensionProperty="width",this.handleHalfDim=0,this.maxPos=0,this.precision=0,this.step=1,this.tracking="",this.minValue=0,this.maxValue=0,this.valueRange=0,this.intermediateTicks=!1,this.initHasRun=!1,this.firstKeyDown=!1,this.internalChange=!1,this.cmbLabelShown=!1,this.currentFocusElement=null,this.fullBar=null,this.selBar=null,this.minH=null,this.maxH=null,this.flrLab=null,this.ceilLab=null,this.minLab=null,this.maxLab=null,this.cmbLab=null,this.ticks=null,this.init()}return s.prototype={init:function(){function t(){r.calcViewDimensions()}var n,i,r=this;this.applyOptions(),this.syncLowValue(),this.range&&this.syncHighValue(),this.initElemHandles(),this.manageElementsStyle(),this.setDisabledState(),this.calcViewDimensions(),this.setMinAndMax(),this.updateRestrictionBar(),this.addAccessibility(),this.updateCeilLab(),this.updateFloorLab(),this.initHandles(),this.manageEventsBindings(),this.scope.$on("reCalcViewDimensions",t),u.element(e).on("resize",t),this.initHasRun=!0,n=o(function(){r.onLowHandleChange()},r.options.interval),i=o(function(){r.onHighHandleChange()},r.options.interval),this.scope.$on("rzSliderForceRender",function(){r.resetLabelsValue(),n(),r.range&&i(),r.resetSlider()}),this.scope.$watchCollection("rzSliderOptions()",function(t,e){t!==e&&(r.applyOptions(),r.syncLowValue(),r.range&&r.syncHighValue(),r.resetSlider())}),this.scope.$watch("rzSliderModel",function(t,e){r.internalChange||t!==e&&n()}),this.scope.$watch("rzSliderHigh",function(t,e){r.internalChange||t!==e&&(null!=t&&i(),r.range&&null==t||!r.range&&null!=t)&&(r.applyOptions(),r.resetSlider())}),this.scope.$on("$destroy",function(){r.unbindEvents(),u.element(e).off("resize",t),r.currentFocusElement=null})},findStepIndex:function(t){for(var e=0,n=0;n<this.options.stepsArray.length;n++){var i=this.options.stepsArray[n];if(i===t){e=n;break}
1if(u.isDate(i)){if(i.getTime()===t.getTime()){e=n;break}}else if(u.isObject(i)&&(u.isDate(i.value)&&i.value.getTime()===t.getTime()||i.value===t)){e=n;break}}return e},syncLowValue:function(){!this.options.stepsArray||this.options.bindIndexForStepsArray?this.lowValue=this.scope.rzSliderModel:this.lowValue=this.findStepIndex(this.scope.rzSliderModel)},syncHighValue:function(){!this.options.stepsArray||this.options.bindIndexForStepsArray?this.highValue=this.scope.rzSliderHigh:this.highValue=this.findStepIndex(this.scope.rzSliderHigh)},getStepValue:function(t){t=this.options.stepsArray[t];return!u.isDate(t)&&u.isObject(t)?t.value:t},applyLowValue:function(){!this.options.stepsArray||this.options.bindIndexForStepsArray?this.scope.rzSliderModel=this.lowValue:this.scope.rzSliderModel=this.getStepValue(this.lowValue)},applyHighValue:function(){!this.options.stepsArray||this.options.bindIndexForStepsArray?this.scope.rzSliderHigh=this.highValue:this.scope.rzSliderHigh=this.getStepValue(this.highValue)},onLowHandleChange:function(){this.syncLowValue(),this.range&&this.syncHighValue(),this.setMinAndMax(),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCmbLabel()},onHighHandleChange:function(){this.syncLowValue(),this.syncHighValue(),this.setMinAndMax(),this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateCmbLabel(),this.updateAriaAttributes()},applyOptions:function(){var t=this.scope.rzSliderOptions?this.scope.rzSliderOptions():{};this.options=n.getOptions(t),this.options.step<=0&&(this.options.step=1),this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.options.draggableRange=this.range&&this.options.draggableRange,this.options.draggableRangeOnly=this.range&&this.options.draggableRangeOnly,this.options.draggableRangeOnly&&(this.options.draggableRange=!0),this.options.showTicks=this.options.showTicks||this.options.showTicksValues||!!this.options.ticksArray,this.scope.showTicks=this.options.showTicks,(u.isNumber(this.options.showTicks)||this.options.ticksArray)&&(this.intermediateTicks=!0),this.options.showSelectionBar=this.options.showSelectionBar||this.options.showSelectionBarEnd||null!==this.options.showSelectionBarFromValue,this.options.stepsArray?this.parseStepsArray():(this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return String(t)},this.getLegend=this.options.getLegend),this.options.vertical&&(this.positionProperty="bottom",this.dimensionProperty="height"),this.options.customTemplateScope&&(this.scope.custom=this.options.customTemplateScope)},parseStepsArray:function(){this.options.floor=0,this.options.ceil=this.options.stepsArray.length-1,this.options.step=1,this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return this.options.bindIndexForStepsArray?this.getStepValue(t):t},this.getLegend=function(t){t=this.options.stepsArray[t];return u.isObject(t)?t.legend:null}},resetSlider:function(){this.manageElementsStyle(),this.addAccessibility(),this.setMinAndMax(),this.updateCeilLab(),this.updateFloorLab(),this.unbindEvents(),this.manageEventsBindings(),this.setDisabledState(),this.calcViewDimensions(),this.updateRestrictionBar(),this.refocusPointerIfNeeded()},refocusPointerIfNeeded:function(){this.currentFocusElement&&(this.onPointerFocus(this.currentFocusElement.pointer,this.currentFocusElement.ref),this.focusElement(this.currentFocusElement.pointer))},initElemHandles:function(){u.forEach(this.sliderElem.children(),function(t,e){var n=u.element(t);switch(e){case 0:this.leftOutSelBar=n;break;case 1:this.rightOutSelBar=n;break;case 2:this.fullBar=n;break;case 3:this.selBar=n;break;case 4:this.restrictedBar=n;break;case 5:this.minH=n;break;case 6:this.maxH=n;break;case 7:this.flrLab=n;break;case 8:this.ceilLab=n;break;case 9:this.minLab=n;break;case 10:this.maxLab=n;break;case 11:this.cmbLab=n;break;case 12:this.ticks=n}},this),this.selBar.rzsp=0,this.minH.rzsp=0,this.maxH.rzsp=0,this.flrLab.rzsp=0,this.ceilLab.rzsp=0,this.minLab.rzsp=0,this.maxLab.rzsp=0,this.cmbLab.rzsp=0},manageElementsStyle:function(){this.range?this.maxH.css("display",""):this.maxH.css("display","none"),this.alwaysHide(this.flrLab,this.options.showTicksValues||this.options.hideLimitLabels),this.alwaysHide(this.ceilLab,this.options.showTicksValues||this.options.hideLimitLabels);var t=this.options.showTicksValues&&!this.intermediateTicks;this.alwaysHide(this.minLab,t||this.options.hidePointerLabels),this.alwaysHide(this.maxLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.cmbLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.selBar,!this.range&&!this.options.showSelectionBar),this.alwaysHide(this.leftOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.alwaysHide(this.restrictedBar,!this.options.restrictedRange),this.alwaysHide(this.rightOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.range&&this.options.showOuterSelectionBars&&this.fullBar.addClass("rz-transparent"),this.options.vertical&&this.sliderElem.addClass("rz-vertical"),this.options.draggableRange?this.selBar.addClass("rz-draggable"):this.selBar.removeClass("rz-draggable"),this.intermediateTicks&&this.options.showTicksValues&&this.ticks.addClass("rz-ticks-values-under")},alwaysHide:function(t,e){(t.rzAlwaysHide=e)?this.hideEl(t):this.showEl(t)},manageEventsBindings:function(){this.options.disabled||this.options.readOnly?this.unbindEvents():this.bindEvents()},setDisabledState:function(){this.options.disabled?this.sliderElem.attr("disabled","disabled"):this.sliderElem.attr("disabled",null)},resetLabelsValue:function(){this.minLab.rzsv=void 0,this.maxLab.rzsv=void 0},initHandles:function(){this.updateLowHandle(this.valueToPosition(this.lowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.range&&this.updateCmbLabel(),this.updateTicksScale()},translateFn:function(t,e,n,i){i=void 0===i||i;var r="",o=!1,s=e.hasClass("no-label-injection"),r=i?(this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),String(this.customTrFn(t,this.options.id,n))):String(t);(void 0===e.rzsv||e.rzsv.length!==r.length||0<e.rzsv.length&&0===e.rzsd)&&
1(o=!0,e.rzsv=r),s||e.html(r),this.scope[n+"Label"]=r,o&&this.getDimension(e)},setMinAndMax:function(){if(this.step=+this.options.step,this.precision=+this.options.precision,this.minValue=this.options.floor,this.options.logScale&&0===this.minValue)throw Error("Can't use floor=0 with logarithmic scale");this.options.enforceStep&&(this.lowValue=this.roundStep(this.lowValue),this.range)&&(this.highValue=this.roundStep(this.highValue)),null!=this.options.ceil?this.maxValue=this.options.ceil:this.maxValue=this.options.ceil=this.range?this.highValue:this.lowValue,this.options.enforceRange&&(this.lowValue=this.sanitizeValue(this.lowValue),this.range)&&(this.highValue=this.sanitizeValue(this.highValue)),this.applyLowValue(),this.range&&this.applyHighValue(),this.valueRange=this.maxValue-this.minValue},addAccessibility:function(){this.minH.attr("role","slider"),this.updateAriaAttributes(),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.minH.attr("tabindex",""):this.minH.attr("tabindex","0"),this.options.vertical&&this.minH.attr("aria-orientation","vertical"),this.options.ariaLabel?this.minH.attr("aria-label",this.options.ariaLabel):this.options.ariaLabelledBy&&this.minH.attr("aria-labelledby",this.options.ariaLabelledBy),this.range&&(this.maxH.attr("role","slider"),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.maxH.attr("tabindex",""):this.maxH.attr("tabindex","0"),this.options.vertical&&this.maxH.attr("aria-orientation","vertical"),this.options.ariaLabelHigh?this.maxH.attr("aria-label",this.options.ariaLabelHigh):this.options.ariaLabelledByHigh&&this.maxH.attr("aria-labelledby",this.options.ariaLabelledByHigh))},updateAriaAttributes:function(){this.minH.attr({"aria-valuenow":this.scope.rzSliderModel,"aria-valuetext":this.customTrFn(this.scope.rzSliderModel,this.options.id,"model"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue}),this.range&&this.maxH.attr({"aria-valuenow":this.scope.rzSliderHigh,"aria-valuetext":this.customTrFn(this.scope.rzSliderHigh,this.options.id,"high"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue})},calcViewDimensions:function(){var t,e=this.getDimension(this.minH);this.handleHalfDim=e/2,this.barDimension=this.getDimension(this.fullBar),this.maxPos=this.barDimension-e,this.getDimension(this.sliderElem),this.sliderElem.rzsp=this.sliderElem[0].getBoundingClientRect()[this.positionProperty],this.initHasRun&&(this.updateFloorLab(),this.updateCeilLab(),this.initHandles(),t=this,i(function(){t.updateTicksScale()}))},updateTicksScale:function(){var t,i,r;this.options.showTicks&&(t=this.options.ticksArray||this.getTicksArray(),i=this.options.vertical?"translateY":"translateX",(r=this).options.rightToLeft&&t.reverse(),this.scope.ticks=t.map(function(t){var e=null,n=(u.isObject(t)&&(e=t.legend,t=t.value),r.valueToPosition(t)),n=(r.options.vertical&&(n=r.maxPos-n),i+"("+Math.round(n)+"px)"),n={legend:e,selected:r.isTickSelected(t),style:{"-webkit-transform":n,"-moz-transform":n,"-o-transform":n,"-ms-transform":n,transform:n}};return n.selected&&r.options.getSelectionBarColor&&(n.style["background-color"]=r.getSelectionBarColor()),!n.selected&&r.options.getTickColor&&(n.style["background-color"]=r.getTickColor(t)),r.options.ticksTooltip&&(n.tooltip=r.options.ticksTooltip(t),n.tooltipPlacement=r.options.vertical?"right":"top"),!0!==r.options.showTicksValues&&t%r.options.showTicksValues!=0||(n.value=r.getDisplayValue(t,"tick-value"),r.options.ticksValuesTooltip&&(n.valueTooltip=r.options.ticksValuesTooltip(t),n.valueTooltipPlacement=r.options.vertical?"right":"top")),r.getLegend&&(e=r.getLegend(t,r.options.id))&&(n.legend=e),n}))},getTicksArray:function(){var t=this.step,e=[];this.intermediateTicks&&(t=this.options.showTicks);for(var n=this.minValue;n<=this.maxValue;n+=t)e.push(n);return e},isTickSelected:function(t){if(!this.range)if(null!==this.options.showSelectionBarFromValue){var e=this.options.showSelectionBarFromValue;if(this.lowValue>e&&e<=t&&t<=this.lowValue)return!0;if(this.lowValue<e&&t<=e&&t>=this.lowValue)return!0}
1else if(this.options.showSelectionBarEnd){if(t>=this.lowValue)return!0}else if(this.options.showSelectionBar&&t<=this.lowValue)return!0;return!!(this.range&&t>=this.lowValue&&t<=this.highValue)},updateFloorLab:function(){this.translateFn(this.minValue,this.flrLab,"floor"),this.getDimension(this.flrLab);var t=this.options.rightToLeft?this.barDimension-this.flrLab.rzsd:0;this.setPosition(this.flrLab,t)},updateCeilLab:function(){this.translateFn(this.maxValue,this.ceilLab,"ceil"),this.getDimension(this.ceilLab);var t=this.options.rightToLeft?0:this.barDimension-this.ceilLab.rzsd;this.setPosition(this.ceilLab,t)},updateHandles:function(t,e){"lowValue"===t?this.updateLowHandle(e):this.updateHighHandle(e),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCmbLabel()},getHandleLabelPos:function(t,e){var n=this[t].rzsd,e=e-n/2+this.handleHalfDim,n=this.barDimension-n;return this.options.boundPointerLabels?this.options.rightToLeft&&"minLab"===t||!this.options.rightToLeft&&"maxLab"===t?Math.min(e,n):Math.min(Math.max(e,0),n):e},updateLowHandle:function(t){this.setPosition(this.minH,t),this.translateFn(this.lowValue,this.minLab,"model"),this.setPosition(this.minLab,this.getHandleLabelPos("minLab",t)),this.options.getPointerColor&&(t=this.getPointerColor("min"),this.scope.minPointerStyle={backgroundColor:t}),this.options.autoHideLimitLabels&&this.shFloorCeil()},updateHighHandle:function(t){this.setPosition(this.maxH,t),this.translateFn(this.highValue,this.maxLab,"high"),this.setPosition(this.maxLab,this.getHandleLabelPos("maxLab",t)),this.options.getPointerColor&&(t=this.getPointerColor("max"),this.scope.maxPointerStyle={backgroundColor:t}),this.options.autoHideLimitLabels&&this.shFloorCeil()},shFloorCeil:function(){var t,e,n,i,r,o,s;this.options.hidePointerLabels||(e=t=!1,n=this.isLabelBelowFloorLab(this.minLab),o=this.isLabelAboveCeilLab(this.minLab),i=this.isLabelAboveCeilLab(this.maxLab),r=this.isLabelBelowFloorLab(this.cmbLab),s=this.isLabelAboveCeilLab(this.cmbLab),n?(t=!0,this.hideEl(this.flrLab)):(t=!1,this.showEl(this.flrLab)),o?(e=!0,this.hideEl(this.ceilLab)):(e=!1,this.showEl(this.ceilLab)),this.range&&(o=this.cmbLabelShown?s:i,s=this.cmbLabelShown?r:n,o?this.hideEl(this.ceilLab):e||this.showEl(this.ceilLab),s?this.hideEl(this.flrLab):t||this.showEl(this.flrLab)))},isLabelBelowFloorLab:function(t){var e=this.options.rightToLeft,n=t.rzsp,t=t.rzsd,i=this.flrLab.rzsp,r=this.flrLab.rzsd;return e?i-2<=n+t:n<=i+r+2},isLabelAboveCeilLab:function(t){var e=this.options.rightToLeft,n=t.rzsp,t=t.rzsd,i=this.ceilLab.rzsp,r=this.ceilLab.rzsd;return e?n<=i+r+2:i-2<=n+t},updateRestrictionBar:function(){var t,e,n=0,i=0;this.options.restrictedRange&&(t=this.valueToPosition(this.options.restrictedRange.from),e=this.valueToPosition(this.options.restrictedRange.to),i=Math.abs(e-t),n=this.options.rightToLeft?e+this.handleHalfDim:t+this.handleHalfDim,this.setDimension(this.restrictedBar,i),this.setPosition(this.restrictedBar,n))},updateSelectionBar:function(){var t,e=0,n=0,i=this.options.rightToLeft?!this.options.showSelectionBarEnd:this.options.showSelectionBarEnd,r=this.options.rightToLeft?this.maxH.rzsp+this.handleHalfDim:this.minH.rzsp+this.handleHalfDim;e=this.range?(n=Math.abs(this.maxH.rzsp-this.minH.rzsp),r):null!==this.options.showSelectionBarFromValue?(r=this.options.showSelectionBarFromValue,t=this.valueToPosition(r),(this.options.rightToLeft?this.lowValue<=r:this.lowValue>r)?(n=this.minH.rzsp-t,t+this.handleHalfDim):(n=t-this.minH.rzsp,this.minH.rzsp+this.handleHalfDim)):i?(n=Math.abs(this.maxPos-this.minH.rzsp)+this.handleHalfDim,this.minH.rzsp+this.handleHalfDim):(n=this.minH.rzsp+this.handleHalfDim,0),this.setDimension(this.selBar,n),this.setPosition(this.selBar,e),this.range&&this.options.showOuterSelectionBars&&(this.options.rightToLeft?(this.setDimension(this.rightOutSelBar,e),this.setPosition(this.rightOutSelBar,0),this.setDimension(this.leftOutSelBar,this.getDimension(this.fullBar)-(e+n)),this.setPosition(this.leftOutSelBar,e+n)):(this.setDimension(this.leftOutSelBar,e),this.setPosition(this.leftOutSelBar,0),this.setDimension(this.rightOutSelBar,this.getDimension(this.fullBar)-(e+n)),this.setPosition(this.rightOutSelBar,e+n))),this.options.getSelectionBarColor?(r=this.getSelectionBarColor(),this.scope.barStyle={backgroundColor:r}):this.options.selectionBarGradient&&(r=0<(t=null!==this.options.showSelectionBarFromValue?this.valueToPosition(this.options.showSelectionBarFromValue):0)-e^i,i=this.options.vertical?r?"bottom":"top":r?"left":"right",this.scope.barStyle={backgroundImage:"linear-gradient(to "+i+", "+this.options.selectionBarGradient.from+" 0%,"+this.options.selectionBarGradient.to+" 100%)"},this.options.vertical?(this.scope.barStyle.backgroundPosition="center "+(t+n+e+(r?-this.handleHalfDim:0))+"px",this.scope.barStyle.backgroundSize="100% "+(this.barDimension-this.handleHalfDim)+"px"):(this.scope.barStyle.backgroundPosition=t-e+(r?this.handleHalfDim:0)+"px center",this.scope.barStyle.backgroundSize=this.barDimension-this.handleHalfDim+"px 100%"))},getSelectionBarColor:function(){return this.range?this.options.getSelectionBarColor(this.scope.rzSliderModel,this.scope.rzSliderHigh):this.options.getSelectionBarColor(this.scope.rzSliderModel)},getPointerColor:function(t){return"max"===t?this.options.getPointerColor(this.scope.rzSliderHigh,t):this.options.getPointerColor(this.scope.rzSliderModel,t)},getTickColor:function(t){return this.options.getTickColor(t)},updateCmbLabel:function(){var t,e,n;(this.options.rightToLeft?this.minLab.rzsp-this.minLab.rzsd-10<=this.maxLab.rzsp:this.minLab.rzsp+this.minLab.rzsd+10>=this.maxLab.rzsp)?(n=this.getDisplayValue(this.lowValue,"model"),t=this.getDisplayValue(this.highValue,"high"),e="",e=this.options.mergeRangeLabelsIfSame&&n===t?n:this.options.rightToLeft?t+this.options.labelOverlapSeparator+n:n+this.options.labelOverlapSeparator+t,this.translateFn(e,this.cmbLab,"cmb",!1),n=this.options.boundPointerLabels?Math.min(Math.max(this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2,0),this.barDimension-this.cmbLab.rzsd):this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2,this.setPosition(this.cmbLab,n),this.cmbLabelShown=!0,this.hideEl(this.minLab),this.hideEl(this.maxLab),this.showEl(this.cmbLab)):(this.cmbLabelShown=!1,this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.showEl(this.maxLab),this.showEl(this.minLab),this.hideEl(this.cmbLab)),this.options.autoHideLimitLabels&&this.shFloorCeil()},getDisplayValue:function(t,e){return this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),this.customTrFn(t,this.options.id,e)},roundStep:function(t,e){e=e||this.step,t=parseFloat((t-this.minValue)/e).toPrecision(12),t=Math.round(+t)*e;return+(this.minValue+t).toFixed(this.precision)},hideEl:function(t){return t.css({visibility:"hidden"})},showEl:function(t){return t.rzAlwaysHide?t:t.css({visibility:"visible"})},setPosition:function(t,e){t.rzsp=e;var n={};return n[this.positionProperty]=Math.round(e)+"px",t.css(n),e},getDimension:function(t){var e=t[0].getBoundingClientRect();return this.options.vertical?t.rzsd=(e.bottom-e.top)*this.options.scale:t.rzsd=(e.right-e.left)*this.options.scale,t.rzsd},setDimension:function(t,e){t.rzsd=e;var n={};return n[this.dimensionProperty]=Math.round(e)+"px",t.css(n),e}
1,sanitizeValue:function(t){return Math.min(Math.max(t,this.minValue),this.maxValue)},valueToPosition:function(t){var e=this.linearValueToPosition,e=(this.options.customValueToPosition?e=this.options.customValueToPosition:this.options.logScale&&(e=this.logValueToPosition),e(t=this.sanitizeValue(t),this.minValue,this.maxValue)||0);return(e=this.options.rightToLeft?1-e:e)*this.maxPos},linearValueToPosition:function(t,e,n){return(t-e)/(n-e)},logValueToPosition:function(t,e,n){return((t=Math.log(t))-(e=Math.log(e)))/((n=Math.log(n))-e)},positionToValue:function(t){var t=t/this.maxPos,e=(this.options.rightToLeft&&(t=1-t),this.linearPositionToValue);return this.options.customPositionToValue?e=this.options.customPositionToValue:this.options.logScale&&(e=this.logPositionToValue),e(t,this.minValue,this.maxValue)||0},linearPositionToValue:function(t,e,n){return t*(n-e)+e},logPositionToValue:function(t,e,n){return e=Math.log(e),n=Math.log(n),Math.exp(t*(n-e)+e)},getEventAttr:function(t,e){return(void 0===t.originalEvent?t:t.originalEvent)[e]},getEventXY:function(t,e){var n=this.options.vertical?"clientY":"clientX";if(void 0!==t[n])return t[n];var i=this.getEventAttr(t,"touches");if(void 0!==e)for(var r=0;r<i.length;r++)if(i[r].identifier===e)return i[r][n];return i[0][n]},getEventPosition:function(t,e){var n=this.sliderElem.rzsp;return(this.options.vertical?-this.getEventXY(t,e)+n:this.getEventXY(t,e)-n)*this.options.scale-this.handleHalfDim},getEventNames:function(t){var e={moveEvent:"",endEvent:""};return this.getEventAttr(t,"touches")?(e.moveEvent="touchmove",e.endEvent="touchend"):(e.moveEvent="mousemove",e.endEvent="mouseup"),e},getNearestHandle:function(t){var e,n;return!this.range||(t=this.getEventPosition(t),(e=Math.abs(t-this.minH.rzsp))<(n=Math.abs(t-this.maxH.rzsp)))?this.minH:n<e?this.maxH:this.options.rightToLeft?t>this.minH.rzsp?this.minH:this.maxH:t<this.minH.rzsp?this.minH:this.maxH},focusElement:function(t){t[0].focus()},bindEvents:function(){var t,e,n=this.options.draggableRange?(t="rzSliderDrag",e=this.onDragStart,this.onDragMove):(t="lowValue",e=this.onStart,this.onMove);this.options.onlyBindHandles||(this.selBar.on("mousedown",u.bind(this,e,null,t)),this.selBar.on("mousedown",u.bind(this,n,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("mousedown",u.bind(this,e,null,t)),this.maxH.on("mousedown",u.bind(this,e,null,t))):(this.minH.on("mousedown",u.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("mousedown",u.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("mousedown",u.bind(this,this.onStart,null,null)),this.fullBar.on("mousedown",u.bind(this,this.onMove,this.fullBar)),this.ticks.on("mousedown",u.bind(this,this.onStart,null,null)),this.ticks.on("mousedown",u.bind(this,this.onTickClick,this.ticks)))),this.options.onlyBindHandles||(this.selBar.on("touchstart",u.bind(this,e,null,t)),this.selBar.on("touchstart",u.bind(this,n,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("touchstart",u.bind(this,e,null,t)),this.maxH.on("touchstart",u.bind(this,e,null,t))):(this.minH.on("touchstart",u.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("touchstart",u.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("touchstart",u.bind(this,this.onStart,null,null)),this.fullBar.on("touchstart",u.bind(this,this.onMove,this.fullBar)),this.ticks.on("touchstart",u.bind(this,this.onStart,null,null)),this.ticks.on("touchstart",u.bind(this,this.onTickClick,this.ticks)))),this.options.keyboardSupport&&(this.minH.on("focus",u.bind(this,this.onPointerFocus,this.minH,"lowValue")),this.range)&&this.maxH.on("focus",u.bind(this,this.onPointerFocus,this.maxH,"highValue"))},unbindEvents:function(){this.minH.off(),this.maxH.off(),this.fullBar.off(),this.selBar.off(),this.ticks.off()},onStart:function(t,e,n){var i=this.getEventNames(n),e=(n.stopPropagation(),n.preventDefault(),this.calcViewDimensions(),t?this.tracking=e:(t=this.getNearestHandle(n),this.tracking=t===this.minH?"lowValue":"highValue"),t.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(t),e=u.bind(this,this.dragging.active?this.onDragMove:this.onMove,t),t=u.bind(this,this.onEnd,e),r.on(i.moveEvent,e),r.on(i.endEvent,t),this.endHandlerToBeRemovedOnEnd=t,this.callOnStart(),this.getEventAttr(n,"changedTouches"));e&&!this.touchId&&(this.isDragging=!0,this.touchId=e[0].identifier)},onMove:function(t,e,n){var i,r,o,s,a=this.getEventAttr(e,"changedTouches");if(a)for(var l=0;l<a.length;l++)if(a[l].identifier===this.touchId){i=a[l];break}a&&!i||(e=this.getEventPosition(e,i?i.identifier:void 0),r=this.options.rightToLeft?this.minValue:this.maxValue,o=this.options.rightToLeft?this.maxValue:this.minValue,s=e<=0?o:e>=this.maxPos?r:(s=this.positionToValue(e),n&&u.isNumber(this.options.showTicks)?this.roundStep(s,this.options.showTicks):this.roundStep(s)),this.positionTrackingHandle(s))},onEnd:function(t,e){var n=this.getEventAttr(e,"changedTouches");n&&n[0].identifier!==this.touchId||(this.isDragging=!1,this.touchId=null,this.options.keyboardSupport||(this.minH.removeClass("rz-active"),this.maxH.removeClass("rz-active"),this.tracking=""),this.dragging.active=!1,n=this.getEventNames(e),r.off(n.moveEvent,t),r.off(n.endEvent,this.endHandlerToBeRemovedOnEnd),this.endHandlerToBeRemovedOnEnd=null,this.callOnEnd())},onTickClick:function(t,e){this.onMove(t,e,!0)},onPointerFocus:function(t,e){this.tracking=e,t.one("blur",u.bind(this,this.onPointerBlur,t)),t.on("key
1down",u.bind(this,this.onKeyboardEvent)),t.on("keyup",u.bind(this,this.onKeyUp)),this.firstKeyDown=!0,t.addClass("rz-active"),this.currentFocusElement={pointer:t,ref:e}},onKeyUp:function(){this.firstKeyDown=!0,this.callOnEnd()},onPointerBlur:function(t){t.off("keydown"),t.off("keyup"),t.removeClass("rz-active"),this.isDragging||(this.tracking="",this.currentFocusElement=null)},getKeyActions:function(t){var e=t+this.step,n=t-this.step,i=t+this.valueRange/10,r=t-this.valueRange/10,t=(this.options.reversedControls&&(e=t-this.step,n=t+this.step,i=t-this.valueRange/10,r=t+this.valueRange/10),{UP:e,DOWN:n,LEFT:n,RIGHT:e,PAGEUP:i,PAGEDOWN:r,HOME:this.options.reversedControls?this.maxValue:this.minValue,END:this.options.reversedControls?this.minValue:this.maxValue});return this.options.rightToLeft&&(t.LEFT=e,t.RIGHT=n,this.options.vertical)&&(t.UP=n,t.DOWN=e),t},onKeyboardEvent:function(t){var r,e=this[this.tracking],n=t.keyCode||t.which,o=this.getKeyActions(e)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[n]];null!=o&&""!==this.tracking&&(t.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.callOnStart()),r=this,i(function(){var t,e,n,i=r.roundStep(r.sanitizeValue(o));r.options.draggableRangeOnly?(t=r.highValue-r.lowValue,"lowValue"===r.tracking?(n=(e=i)+t)>r.maxValue&&(e=(n=r.maxValue)-t):(e=(n=i)-t)<r.minValue&&(n=(e=r.minValue)+t),r.positionTrackingBar(e,n)):r.positionTrackingHandle(i)}))},onDragStart:function(t,e,n){var i=this.getEventPosition(n);this.dragging={active:!0,value:this.positionToValue(i),difference:this.highValue-this.lowValue,lowLimit:this.options.rightToLeft?this.minH.rzsp-i:i-this.minH.rzsp,highLimit:this.options.rightToLeft?i-this.maxH.rzsp:this.maxH.rzsp-i},this.onStart(t,e,n)},getValue:function(t,e,n,i){var r=this.options.rightToLeft,o=null,o="min"===t?n?i?r?this.minValue:this.maxValue-this.dragging.difference:r?this.maxValue-this.dragging.difference:this.minValue:r?this.positionToValue(e+this.dragging.lowLimit):this.positionToValue(e-this.dragging.lowLimit):n?i?r?this.minValue+this.dragging.difference:this.maxValue:r?this.maxValue:this.minValue+this.dragging.difference:r?this.positionToValue(e+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(e-this.dragging.lowLimit)+this.dragging.difference;return this.roundStep(o)},onDragMove:function(t,e){var n,i,r,o,e=this.getEventPosition(e),s=this.options.rightToLeft?(a=this.dragging.lowLimit,r=this.dragging.highLimit,o=this.maxH,this.minH):(a=this.dragging.highLimit,r=this.dragging.lowLimit,o=this.minH,this.maxH),a=e>=this.maxPos-a;if(e<=r){if(0===o.rzsp)return;n=this.getValue("min",e,!0,!1),i=this.getValue("max",e,!0,!1)}else if(a){if(s.rzsp===this.maxPos)return;i=this.getValue("max",e,!0,!0),n=this.getValue("min",e,!0,!0)}else n=this.getValue("min",e,!1),i=this.getValue("max",e,!1);this.positionTrackingBar(n,i)},positionTrackingBar:function(t,e){null!=this.options.minLimit&&t<this.options.minLimit&&(e=(t=this.options.minLimit)+this.dragging.difference),null!=this.options.maxLimit&&e>this.options.maxLimit&&(t=(e=this.options.maxLimit)-this.dragging.difference),this.lowValue=t,this.highValue=e,this.applyLowValue(),this.range&&this.applyHighValue(),this.applyModel(!0),this.updateHandles("lowValue",this.valueToPosition(t)),this.updateHandles("highValue",this.valueToPosition(e))},positionTrackingHandle:function(t){var e=!1;t=this.applyMinMaxLimit(t),t=this.applyRestrictedRange(t),this.range&&(this.options.pushRange?(t=this.applyPushRange(t),e=!0):(this.options.noSwitching&&("lowValue"===this.tracking&&t>this.highValue?t=this.applyMinMaxRange(this.highValue):"highValue"===this.tracking&&t<this.lowValue&&(t=this.applyMinMaxRange(this.lowValue))),t=this.applyMinMaxRange(t),"lowValue"===this.tracking&&t>this.highValue?(this.lowValue=this.highValue,this.applyLowValue(),this.applyModel(),this.updateHandles(this.tracking,this.maxH.rzsp),this.updateAriaAttributes(),this.tracking="highValue",this.minH.removeClass("rz-active"),this.maxH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.maxH),e=!0):"highValue"===this.tracking&&t<this.lowValue&&(this.highValue=this.lowValue,this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.minH.rzsp),this.updateAriaAttributes(),this.tracking="lowValue",this.maxH.removeClass("rz-active"),this.minH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.minH),e=!0))),this[this.tracking]!==t&&(this[this.tracking]=t,"lowValue"===this.tracking?this.applyLowValue():this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.valueToPosition(t)),this.updateAriaAttributes(),e=!0),e&&this.applyModel(!0)},applyMinMaxLimit:function(t){return null!=this.options.minLimit&&t<this.options.minLimit?this.options.minLimit:null!=this.options.maxLimit&&t>this.options.maxLimit?this.options.maxLimit:t},applyMinMaxRange:function(t){var e="lowValue"===this.tracking?this.highValue:this.lowValue,e=Math.abs(t-e);return null!=this.options.minRange&&e<this.options.minRange?"lowValue"===this.tracking?this.highValue-this.options.minRange:this.lowValue+this.options.minRange:null!=this.options.maxRange&&e>this.options.maxRange?"lowValue"===this.tracking?this.highValue-this.options.maxRange:this.lowValue+this.options.maxRange:t},applyRestrictedRange:function(t){if(null!=this.options.restrictedRange&&t>this.options.restrictedRange.from&&t<this.options.restrictedRange.to){var e=(this.options.restrictedRange.to-this.options.restrictedRange.from)/2;if("lowValue"===this.tracking)return t>this.options.restrictedRange.from+e?this.options.restrictedRange.to:this.options.restrictedRange.from;if("highValue"===this.tracking)return t<this.options.restrictedRange.to-e?this.options.restrictedRange.from:this.options.restrictedRange.to}return t},applyPushRange:function(t){var e="lowValue"===this.tracking?this.highValue-t:t-this.lowValue,n=null!==this.options.minRange?this.options.minRange:this.options.step,i=this.options.maxRange;return e<n?("lowValue"===this.tracking?(this.highValue=Math.min(t+n,this.maxValue),t=this.highValue-n,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=Math.max(t-n,this.minValue),t=this.lowValue+n,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()):null!==i&&i<e&&("lowValue"===this.tracking?(this.highValue=t+i,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=t-i,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()),t},applyModel:function(t){this.internalChange=!0,this.scope.$apply(),t&&this.callOnChange(),this.internalChange=!1},callOnStart:function(){var t,e;this.options.onStart&&(e="lowValue"===(t=this).tracking?"min":"max",this.scope.$evalAsync(function(){t.options.onStart(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))},callOnChange:function(){var t,e;this.options.onChange&&(e="lowValue"===(t=this).tracking?"min":"max",this.scope.$evalAsync(function(){t.options.onChange(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))},callOnEnd:function(){var t,e;this.options.onEnd&&(e="lowValue"===(t=this).tracking?"min":"max",this.scope.$evalAsync(function(){t.options.onEnd(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)})),this.scope.$emit("slideEnded")}},s}]).directive("rzslider",["RzSlider",function(n){return{restrict:"AE",replace:!0,scope:{rzSliderModel:"=?",rzSliderHigh:"=?",rzSliderOptions:"&?",rzSliderTplUrl:"@"},templateUrl:function(t,e){return e.rzSliderTplUrl||"rzSliderTpl.html"},link:function(t,e){t.slider=new n(t,e)}}}]);return t.run(["$templateCache",function(t){t.put("rzSliderTpl.html",'<div class=rzslider><span class="rz-bar-wrapper rz-left-out-selection"><span class=rz-bar></span></span> <span class="rz-bar-wrapper rz-right-out-selection"><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-selection" ng-style=barStyle></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-restricted" ng-style=restrictionStyle></span></span> <span class="rz-pointer rz-pointer-min" ng-style=minPointerStyle></span> <span class="rz-pointer rz-pointer-max" ng-style=maxPointerStyle></span> <span class="rz-bubble rz-limit rz-floor"></span> <span class="rz-bubble rz-limit rz-ceil"></span> <span class="rz-bubble rz-model-value"></span> <span class="rz-bubble rz-model-high"></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat="t in ticks track by $index" class=rz-tick ng-class="{\'rz-selected\': t.selected}" ng-style=t.style ng-attr-uib-tooltip="{{ t.tooltip }}" ng-attr-tooltip-placement={{t.tooltipPlacement}} ng-attr-tooltip-append-to-body="{{ t.tooltip ? true : undefined}}"><span ng-if="t.value != null" class=rz-tick-value ng-attr-uib-tooltip="{{ t.valueTooltip }}" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span> <span ng-if="t.legend != null" class=rz-tick-legend>{{ t.legend }}</span></li></ul></div>')}]),t.name});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.