HEX
Server: LiteSpeed
System: Linux vps30244.sdns.vn 3.10.0-1160.21.1.el7.x86_64 #1 SMP Tue Mar 16 18:28:22 UTC 2021 x86_64
User: admin (1001)
PHP: 7.4.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/hcb48/public_html/wp-content/themes/flatsome/assets/js/builder/core/vendors.js
!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){(function(t){"use strict";function e(t){return t&&t.__esModule?t:{default:t}}n(2),n(4),n(6),n(7),n(9);var r=n(10),i=e(r);t.HammerJS=i.default}).call(e,function(){return this}())},function(t,e,n){n(3),t.exports=angular},function(t,e){/**
	 * @license AngularJS v1.5.8
	 * (c) 2010-2016 Google, Inc. http://angularjs.org
	 * License: MIT
	 */
!function(t){"use strict";function e(t,e){return e=e||Error,function(){var n,r,i=2,o=arguments,a=o[0],s="["+(t?t+":":"")+a+"] ",u=o[1];for(s+=u.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n=e+i;return n<o.length?$t(o[n]):t}),s+="\nhttp://errors.angularjs.org/1.5.8/"+(t?t+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent($t(o[r]));return new e(s)}}function n(t){if(null==t||E(t))return!1;if(Kr(t)||w(t)||qr&&t instanceof qr)return!0;var e="length"in Object(t)&&t.length;return x(e)&&(e>=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function r(t,e,i){var o,a;if(t)if(S(t))for(o in t)"prototype"==o||"length"==o||"name"==o||t.hasOwnProperty&&!t.hasOwnProperty(o)||e.call(i,t[o],o,t);else if(Kr(t)||n(t)){var s="object"!=typeof t;for(o=0,a=t.length;o<a;o++)(s||o in t)&&e.call(i,t[o],o,t)}else if(t.forEach&&t.forEach!==r)t.forEach(e,i,t);else if(b(t))for(o in t)e.call(i,t[o],o,t);else if("function"==typeof t.hasOwnProperty)for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t);else for(o in t)Mr.call(t,o)&&e.call(i,t[o],o,t);return t}function i(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function o(t){return function(e,n){t(n,e)}}function a(){return++Gr}function s(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function u(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var a=e[i];if(y(a)||S(a))for(var l=Object.keys(a),c=0,f=l.length;c<f;c++){var h=l[c],p=a[h];n&&y(p)?C(p)?t[h]=new Date(p.valueOf()):A(p)?t[h]=new RegExp(p):p.nodeName?t[h]=p.cloneNode(!0):I(p)?t[h]=p.clone():(y(t[h])||(t[h]=Kr(p)?[]:{}),u(t[h],[p],!0)):t[h]=p}}return s(t,r),t}function l(t){return u(t,Lr.call(arguments,1),!1)}function c(t){return u(t,Lr.call(arguments,1),!0)}function f(t){return parseInt(t,10)}function h(t,e){return l(Object.create(t),e)}function p(){}function d(t){return t}function v(t){return function(){return t}}function m(t){return S(t.toString)&&t.toString!==zr}function g(t){return"undefined"==typeof t}function $(t){return"undefined"!=typeof t}function y(t){return null!==t&&"object"==typeof t}function b(t){return null!==t&&"object"==typeof t&&!Br(t)}function w(t){return"string"==typeof t}function x(t){return"number"==typeof t}function C(t){return"[object Date]"===zr.call(t)}function S(t){return"function"==typeof t}function A(t){return"[object RegExp]"===zr.call(t)}function E(t){return t&&t.window===t}function _(t){return t&&t.$evalAsync&&t.$watch}function k(t){return"[object File]"===zr.call(t)}function T(t){return"[object FormData]"===zr.call(t)}function O(t){return"[object Blob]"===zr.call(t)}function D(t){return"boolean"==typeof t}function M(t){return t&&S(t.then)}function P(t){return t&&x(t.length)&&Zr.test(zr.call(t))}function j(t){return"[object ArrayBuffer]"===zr.call(t)}function I(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function N(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function R(t){return Pr(t.nodeName||t[0]&&t[0].nodeName)}function q(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function V(t,e){function n(t,e){var n,r=e.$$hashKey;if(Kr(t))for(var o=0,a=t.length;o<a;o++)e.push(i(t[o]));else if(b(t))for(n in t)e[n]=i(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=i(t[n]));else for(n in t)Mr.call(t,n)&&(e[n]=i(t[n]));return s(e,r),e}function i(t){if(!y(t))return t;var e=a.indexOf(t);if(e!==-1)return u[e];if(E(t)||_(t))throw Wr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=o(t);return void 0===i&&(i=Kr(t)?[]:Object.create(Br(t)),r=!0),a.push(t),u.push(i),r?n(t,i):i}function o(t){switch(zr.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(i(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var n=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(S(t.cloneNode))return t.cloneNode(!0)}var a=[],u=[];if(e){if(P(e)||j(e))throw Wr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw Wr("cpi","Can't copy! Source and destination are identical.");return Kr(e)?e.length=0:r(e,function(t,n){"$$hashKey"!==n&&delete e[n]}),a.push(t),u.push(e),n(t,e)}return i(t)}function F(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n,r,i,o=typeof t,a=typeof e;if(o==a&&"object"==o){if(!Kr(t)){if(C(t))return!!C(e)&&F(t.getTime(),e.getTime());if(A(t))return!!A(e)&&t.toString()==e.toString();if(_(t)||_(e)||E(t)||E(e)||Kr(e)||C(e)||A(e))return!1;i=dt();for(r in t)if("$"!==r.charAt(0)&&!S(t[r])){if(!F(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&$(e[r])&&!S(e[r]))return!1;return!0}if(!Kr(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!F(t[r],e[r]))return!1;return!0}}return!1}function L(t,e,n){return t.concat(Lr.call(e,n))}function H(t,e){return Lr.call(t,e||0)}function U(t,e){var n=arguments.length>2?H(arguments,2):[];return!S(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,L(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function z(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:E(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":_(n)&&(r="$SCOPE"),r}function B(t,e){if(!g(t))return x(e)||(e=e?2:null),JSON.stringify(t,z,e)}function W(t){return w(t)?JSON.parse(t):t}function Y(t,e){t=t.replace(ei,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function G(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function K(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset(),i=Y(e,r);return G(t,n*(i-r))}function Z(t){t=qr(t).clone();try{t.empty()}catch(t){}var e=qr("<div>").append(t).html();try{return t[0].nodeType===si?Pr(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Pr(e)})}catch(t){return Pr(e)}}function X(t){try{return decodeURIComponent(t)}catch(t){}}function J(t){var e={};return r((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),n!==-1&&(r=t.substring(0,n),i=t.substring(n+1)),r=X(r),$(r)&&(i=!$(i)||X(i),Mr.call(e,r)?Kr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function Q(t){var e=[];return r(t,function(t,n){Kr(t)?r(t,function(t){e.push(et(n,!0)+(t===!0?"":"="+et(t,!0)))}):e.push(et(n,!0)+(t===!0?"":"="+et(t,!0)))}),e.length?e.join("&"):""}function tt(t){return et(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function et(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":"+")}function nt(t,e){var n,r,i=ni.length;for(r=0;r<i;++r)if(n=ni[r]+e,w(n=t.getAttribute(n)))return n;return null}function rt(t,e){var n,i,o={};r(ni,function(e){var r=e+"app";!n&&t.hasAttribute&&t.hasAttribute(r)&&(n=t,i=t.getAttribute(r))}),r(ni,function(e){var r,o=e+"app";!n&&(r=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(o))}),n&&(o.strictDi=null!==nt(n,"strict-di"),e(n,i?[i]:[],o))}function it(e,n,i){y(i)||(i={});var o={strictDi:!1};i=l(o,i);var a=function(){if(e=qr(e),e.injector()){var r=e[0]===t.document?"document":Z(e);throw Wr("btstrpd","App already bootstrapped with this element '{0}'",r.replace(/</,"&lt;").replace(/>/,"&gt;"))}n=n||[],n.unshift(["$provide",function(t){t.value("$rootElement",e)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var o=re(n,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return t&&s.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(s,"")),t&&!u.test(t.name)?a():(t.name=t.name.replace(u,""),Yr.resumeBootstrap=function(t){return r(t,function(t){n.push(t)}),a()},void(S(Yr.resumeDeferredBootstrap)&&Yr.resumeDeferredBootstrap()))}function ot(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function at(t){var e=Yr.element(t).injector();if(!e)throw Wr("test","no injector found for element argument to getTestability");return e.get("$$testability")}function st(t,e){return e=e||"_",t.replace(ri,function(t,n){return(n?e:"")+t.toLowerCase()})}function ut(){var e;if(!ii){var n=ti();Vr=g(n)?t.jQuery:n?t[n]:void 0,Vr&&Vr.fn.on?(qr=Vr,l(Vr.fn,{scope:Ei.scope,isolateScope:Ei.isolateScope,controller:Ei.controller,injector:Ei.injector,inheritedData:Ei.inheritedData}),e=Vr.cleanData,Vr.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)n=Vr._data(r,"events"),n&&n.$destroy&&Vr(r).triggerHandler("$destroy");e(t)}):qr=Tt,Yr.element=qr,ii=!0}}function lt(t,e,n){if(!t)throw Wr("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ct(t,e,n){return n&&Kr(t)&&(t=t[t.length-1]),lt(S(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function ft(t,e){if("hasOwnProperty"===t)throw Wr("badname","hasOwnProperty is not a valid {0} name",e)}function ht(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,a=i.length,s=0;s<a;s++)r=i[s],t&&(t=(o=t)[r]);return!n&&S(t)?U(o,t):t}function pt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=qr(Lr.call(t,0,i))),e.push(n));return e||t}function dt(){return Object.create(null)}function vt(t){function n(t,e,n){return t[e]||(t[e]=n())}var r=e("$injector"),i=e("ng"),o=n(t,"angular",Object);return o.$$minErr=o.$$minErr||e,n(o,"module",function(){var t={};return function(e,o,a){var s=function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)};return s(e,"module"),o&&t.hasOwnProperty(e)&&(t[e]=null),n(t,e,function(){function t(t,e,n,r){return r||(r=i),function(){return r[n||"push"]([t,e,arguments]),c}}function n(t,n){return function(r,o){return o&&S(o)&&(o.$$moduleName=e),i.push([t,n,arguments]),c}}if(!o)throw r("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.",e);var i=[],s=[],u=[],l=t("$injector","invoke","push",s),c={_invokeQueue:i,_configBlocks:s,_runBlocks:u,requires:o,name:e,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:l,run:function(t){return u.push(t),this}};return a&&l(a),c})}})}function mt(t,e){if(Kr(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(y(t)){e=e||{};for(var i in t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i])}return e||t}function gt(t){var e=[];return JSON.stringify(t,function(t,n){if(n=z(t,n),y(n)){if(e.indexOf(n)>=0)return"...";e.push(n)}return n})}function $t(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):g(t)?"undefined":"string"!=typeof t?gt(t):t}function yt(n){l(n,{bootstrap:it,copy:V,extend:l,merge:c,equals:F,element:qr,forEach:r,injector:re,noop:p,bind:U,toJson:B,fromJson:W,identity:d,isUndefined:g,isDefined:$,isString:w,isFunction:S,isObject:y,isNumber:x,isElement:I,isArray:Kr,version:fi,isDate:C,lowercase:Pr,uppercase:jr,callbacks:{$$counter:0},getTestability:at,$$minErr:e,$$csp:Qr,reloadWithDebugInfo:ot}),(Fr=vt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:An}),t.provider("$compile",de).directive({a:Io,input:ta,textarea:ta,form:Fo,script:Ka,select:Ja,style:ts,option:Qa,ngBind:ra,ngBindHtml:oa,ngBindTemplate:ia,ngClass:sa,ngClassEven:la,ngClassOdd:ua,ngCloak:ca,ngController:fa,ngForm:Lo,ngHide:Ha,ngIf:da,ngInclude:va,ngInit:ga,ngNonBindable:Pa,ngPluralize:Ra,ngRepeat:qa,ngShow:La,ngStyle:Ua,ngSwitch:za,ngSwitchWhen:Ba,ngSwitchDefault:Wa,ngOptions:Na,ngTransclude:Ga,ngModel:Oa,ngList:$a,ngChange:aa,pattern:ns,ngPattern:ns,required:es,ngRequired:es,minlength:is,ngMinlength:is,maxlength:rs,ngMaxlength:rs,ngValue:na,ngModelOptions:Ma}).directive({ngInclude:ma}).directive(No).directive(ha),t.provider({$anchorScroll:ie,$animate:Hi,$animateCss:Bi,$$animateJs:Fi,$$animateQueue:Li,$$AnimateRunner:zi,$$animateAsyncRun:Ui,$browser:ce,$cacheFactory:fe,$controller:be,$document:we,$exceptionHandler:xe,$filter:Vn,$$forceReflow:Xi,$interpolate:Ne,$interval:Re,$http:Me,$httpParamSerializer:Se,$httpParamSerializerJQLike:Ae,$httpBackend:je,$xhrFactory:Pe,$jsonpCallbacks:ao,$location:Je,$log:Qe,$parse:yn,$rootScope:Sn,$q:bn,$$q:wn,$sce:Tn,$sceDelegate:kn,$sniffer:On,$templateCache:he,$templateRequest:Dn,$$testability:Mn,$timeout:Pn,$window:Nn,$$rAF:Cn,$$jqLite:Zt,$$HashMap:Oi,$$cookieReader:qn})}])}function bt(){return++pi}function wt(t){return t.replace(mi,function(t,e,n,r){return r?n.toUpperCase():n}).replace(gi,"Moz$1")}function xt(t){return!wi.test(t)}function Ct(t){var e=t.nodeType;return e===oi||!e||e===li}function St(t){for(var e in hi[t.ng339])return!0;return!1}function At(t){for(var e=0,n=t.length;e<n;e++)Pt(t[e])}function Et(t,e){var n,i,o,a,s=e.createDocumentFragment(),u=[];if(xt(t))u.push(e.createTextNode(t));else{for(n=s.appendChild(e.createElement("div")),i=(xi.exec(t)||["",""])[1].toLowerCase(),o=Si[i]||Si._default,n.innerHTML=o[1]+t.replace(Ci,"<$1></$2>")+o[2],a=o[0];a--;)n=n.lastChild;u=L(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",r(u,function(t){s.appendChild(t)}),s}function _t(e,n){n=n||t.document;var r;return(r=bi.exec(e))?[n.createElement(r[1])]:(r=Et(e,n))?r.childNodes:[]}function kt(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function Tt(t){if(t instanceof Tt)return t;var e;if(w(t)&&(t=Xr(t),e=!0),!(this instanceof Tt)){if(e&&"<"!=t.charAt(0))throw yi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Tt(t)}e?Vt(this,_t(t)):Vt(this,t)}function Ot(t){return t.cloneNode(!0)}function Dt(t,e){if(e||Pt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Pt(n[r])}function Mt(t,e,n,i){if($(i))throw yi("offargs","jqLite#off() does not support the `selector` argument");var o=jt(t),a=o&&o.events,s=o&&o.handle;if(s)if(e){var u=function(e){var r=a[e];$(n)&&q(r||[],n),$(n)&&r&&r.length>0||(vi(t,e,s),delete a[e])};r(e.split(" "),function(t){u(t),$i[t]&&u($i[t])})}else for(e in a)"$destroy"!==e&&vi(t,e,s),delete a[e]}function Pt(t,e){var n=t.ng339,r=n&&hi[n];if(r){if(e)return void delete r.data[e];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Mt(t)),delete hi[n],t.ng339=void 0}}function jt(t,e){var n=t.ng339,r=n&&hi[n];return e&&!r&&(t.ng339=n=bt(),r=hi[n]={events:{},data:{},handle:void 0}),r}function It(t,e,n){if(Ct(t)){var r=$(n),i=!r&&e&&!y(e),o=!e,a=jt(t,!i),s=a&&a.data;if(r)s[e]=n;else{if(o)return s;if(i)return s&&s[e];l(s,e)}}}function Nt(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function Rt(t,e){e&&t.setAttribute&&r(e.split(" "),function(e){t.setAttribute("class",Xr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Xr(e)+" "," ")))})}function qt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(e.split(" "),function(t){t=Xr(t),n.indexOf(" "+t+" ")===-1&&(n+=t+" ")}),t.setAttribute("class",Xr(n))}}function Vt(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 r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Ft(t,e){return Lt(t,"$"+(e||"ngController")+"Controller")}function Lt(t,e,n){t.nodeType==li&&(t=t.documentElement);for(var r=Kr(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if($(n=qr.data(t,r[i])))return n;t=t.parentNode||t.nodeType===ci&&t.host}}function Ht(t){for(Dt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Ut(t,e){e||Dt(t);var n=t.parentNode;n&&n.removeChild(t)}function zt(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):qr(n).on("load",e)}function Bt(t,e){var n=_i[e.toLowerCase()];return n&&ki[R(t)]&&n}function Wt(t){return Ti[t]}function Yt(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if(g(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var s=i.specialHandlerWrapper||Gt;o>1&&(i=mt(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(t,n,i[u])}};return n.elem=t,n}function Gt(t,e,n){n.call(t,e)}function Kt(t,e,n){var r=e.relatedTarget;r&&(r===t||Ai.call(t,r))||n.call(t,e)}function Zt(){this.$get=function(){return l(Tt,{hasClass:function(t,e){return t.attr&&(t=t[0]),Nt(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),qt(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Rt(t,e)}})}}function Xt(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||a)():r+":"+t}function Jt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}r(t,this.put,this)}function Qt(t){return Function.prototype.toString.call(t)+" "}function te(t){var e=Qt(t).replace(Ii,""),n=e.match(Di)||e.match(Mi);return n}function ee(t){var e=te(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ne(t,e,n){var i,o,a;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw w(n)&&n||(n=t.name||ee(t)),Ni("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o=te(t),r(o[1].split(Pi),function(t){t.replace(ji,function(t,e,n){i.push(n)})})}t.$inject=i}}else Kr(t)?(a=t.length-1,ct(t[a],"fn"),i=t.slice(0,a)):ct(t,"fn",!0);return i}function re(t,e){function n(t){return function(e,n){return y(e)?void r(e,o(t)):t(e,n)}}function i(t,e){if(ft(t,"service"),(S(e)||Kr(e))&&(e=C.instantiate(e)),!e.$get)throw Ni("pget","Provider '{0}' must define $get factory method.",t);return x[t+m]=e}function a(t,e){return function(){var n=_.invoke(e,this);if(g(n))throw Ni("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function s(t,e,n){return i(t,{$get:n!==!1?a(t,e):e})}function u(t,e){return s(t,["$injector",function(t){return t.instantiate(e)}])}function l(t,e){return s(t,v(e),!1)}function c(t,e){ft(t,"constant"),x[t]=e,A[t]=e}function f(t,e){var n=C.get(t+m),r=n.$get;n.$get=function(){var t=_.invoke(r,n);return _.invoke(e,null,{$delegate:t})}}function h(t){lt(g(t)||Kr(t),"modulesToLoad","not an array");var e,n=[];return r(t,function(t){function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=C.get(r[0]);i[r[1]].apply(i,r[2])}}if(!b.get(t)){b.put(t,!0);try{w(t)?(e=Fr(t),n=n.concat(h(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):S(t)?n.push(C.invoke(t)):Kr(t)?n.push(C.invoke(t)):ct(t,"module")}catch(e){throw Kr(t)&&(t=t[t.length-1]),e.message&&e.stack&&e.stack.indexOf(e.message)==-1&&(e=e.message+"\n"+e.stack),Ni("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}}),n}function p(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===d)throw Ni("cdep","Circular dependency found: {0}",e+" <- "+$.join(" <- "));return t[e]}try{return $.unshift(e),t[e]=d,t[e]=n(e,r)}catch(n){throw t[e]===d&&delete t[e],n}finally{$.shift()}}function i(t,n,i){for(var o=[],a=re.$$annotate(t,e,i),s=0,u=a.length;s<u;s++){var l=a[s];if("string"!=typeof l)throw Ni("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return o}function o(t){return!(Rr<=11)&&("function"==typeof t&&/^(?:class\b|constructor\()/.test(Qt(t)))}function a(t,e,n,r){"string"==typeof n&&(r=n,n=null);var a=i(t,n,r);return Kr(t)&&(t=t[t.length-1]),o(t)?(a.unshift(null),new(Function.prototype.bind.apply(t,a))):t.apply(e,a)}function s(t,e,n){var r=Kr(t)?t[t.length-1]:t,o=i(t,e,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:s,get:r,annotate:re.$$annotate,has:function(e){return x.hasOwnProperty(e+m)||t.hasOwnProperty(e)}}}e=e===!0;var d={},m="Provider",$=[],b=new Jt([],!0),x={$provide:{provider:n(i),factory:n(s),service:n(u),value:n(l),constant:n(c),decorator:f}},C=x.$injector=p(x,function(t,e){throw Yr.isString(e)&&$.push(e),Ni("unpr","Unknown provider: {0}",$.join(" <- "))}),A={},E=p(A,function(t,e){var n=C.get(t+m,e);return _.invoke(n.$get,n,void 0,t)}),_=E;x["$injector"+m]={$get:v(E)};var k=h(t);return _=E.get("$injector"),_.strictDi=e,r(k,function(t){t&&_.invoke(t)}),_}function ie(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){if("a"===R(t))return e=t,!0}),e}function o(){var t=s.yOffset;if(S(t))t=t();else if(I(t)){var n=t[0],r=e.getComputedStyle(n);t="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else x(t)||(t=0);return t}function a(t){if(t){t.scrollIntoView();var n=o();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function s(t){t=w(t)?t:n.hash();var e;t?(e=u.getElementById(t))?a(e):(e=i(u.getElementsByName(t)))?a(e):"top"===t&&a(null):a(null)}var u=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){t===e&&""===t||zt(function(){r.$evalAsync(s)})}),s}]}function oe(t,e){return t||e?t?e?(Kr(t)&&(t=t.join(" ")),Kr(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function ae(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===qi)return n}}function se(t){w(t)&&(t=t.split(" "));var e=dt();return r(t,function(t){t.length&&(e[t]=!0)}),e}function ue(t){return y(t)?t:{}}function le(t,e,n,i){function o(t){try{t.apply(null,H(arguments,1))}finally{if($--,0===$)for(;y.length;)try{y.pop()()}catch(t){n.error(t)}}}function a(t){var e=t.indexOf("#");return e===-1?"":t.substr(e)}function s(){S=null,u(),l()}function u(){b=A(),b=g(b)?null:b,F(b,k)&&(b=k),k=b}function l(){x===c.url()&&w===b||(x=c.url(),w=b,r(E,function(t){t(c.url(),b)}))}var c=this,f=t.location,h=t.history,d=t.setTimeout,v=t.clearTimeout,m={};c.isMock=!1;var $=0,y=[];c.$$completeOutstandingRequest=o,c.$$incOutstandingRequestCount=function(){$++},c.notifyWhenNoOutstandingRequests=function(t){0===$?t():y.push(t)};var b,w,x=f.href,C=e.find("base"),S=null,A=i.history?function(){try{return h.state}catch(t){}}:p;u(),w=b,c.url=function(e,n,r){if(g(r)&&(r=null),f!==t.location&&(f=t.location),h!==t.history&&(h=t.history),e){var o=w===r;if(x===e&&(!i.history||o))return c;var s=x&&Ue(x)===Ue(e);return x=e,w=r,!i.history||s&&o?(s||(S=e),n?f.replace(e):s?f.hash=a(e):f.href=e,f.href!==e&&(S=e)):(h[n?"replaceState":"pushState"](r,"",e),u(),w=b),S&&(S=e),c}return S||f.href.replace(/%27/g,"'")},c.state=function(){return b};var E=[],_=!1,k=null;c.onUrlChange=function(e){return _||(i.history&&qr(t).on("popstate",s),qr(t).on("hashchange",s),_=!0),E.push(e),e},c.$$applicationDestroyed=function(){qr(t).off("hashchange popstate",s)},c.$$checkUrlChange=l,c.baseHref=function(){var t=C.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},c.defer=function(t,e){var n;return $++,n=d(function(){delete m[n],o(t)},e||0),m[n]=!0,n},c.defer.cancel=function(t){return!!m[t]&&(delete m[t],v(t),o(p),!0)}}function ce(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new le(t,r,e,n)}]}function fe(){this.$get=function(){function t(t,r){function i(t){t!=h&&(p?p==t&&(p=t.n):p=t,o(t.n,t.p),o(t,h),h=t,h.n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in n)throw e("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var a=0,s=l({},r,{id:t}),u=dt(),c=r&&r.capacity||Number.MAX_VALUE,f=dt(),h=null,p=null;return n[t]={put:function(t,e){if(!g(e)){if(c<Number.MAX_VALUE){var n=f[t]||(f[t]={key:t});i(n)}return t in u||a++,u[t]=e,a>c&&this.remove(p.key),e}},get:function(t){if(c<Number.MAX_VALUE){var e=f[t];if(!e)return;i(e)}return u[t]},remove:function(t){if(c<Number.MAX_VALUE){var e=f[t];if(!e)return;e==h&&(h=e.p),e==p&&(p=e.n),o(e.n,e.p),delete f[t]}t in u&&(delete u[t],a--)},removeAll:function(){u=dt(),a=0,f=dt(),h=p=null},destroy:function(){u=null,s=null,f=null,delete n[t]},info:function(){return l({},s,{size:a})}}}var n={};return t.info=function(){var t={};return r(n,function(e,n){t[n]=e.info()}),t},t.get=function(t){return n[t]},t}}function he(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function pe(){}function de(e,n){function i(t,e,n){var i=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,o=dt();return r(t,function(t,r){if(t in E)return void(o[r]=E[t]);var a=t.match(i);if(!a)throw Wi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,r,t,n?"controller bindings definition":"isolate scope definition");o[r]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||r},a[4]&&(E[t]=o[r])}),o}function a(t,e){var n={isolateScope:null,bindToController:null};if(y(t.scope)&&(t.bindToController===!0?(n.bindToController=i(t.scope,e,!0),n.isolateScope={}):n.isolateScope=i(t.scope,e,!1)),y(t.bindToController)&&(n.bindToController=i(t.bindToController,e,!0)),y(n.bindToController)){var r=t.controller,o=t.controllerAs;if(!r)throw Wi("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);if(!ye(r,o))throw Wi("noident","Cannot bind to controller without identifier for directive '{0}'.",e)}return n}function s(t){var e=t.charAt(0);if(!e||e!==Pr(e))throw Wi("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Wi("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}function u(t){var e=t.require||t.controller&&t.name;return!Kr(e)&&y(e)&&r(e,function(t,n){var r=t.match(C),i=t.substring(r[0].length);i||(e[n]=r[0]+n)}),e}var c={},f="Directive",m=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,b=/(([\w\-]+)(?:\:([^;]+))?;?)/,x=N("ngSrc,ngSrcset,src,srcset"),C=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,A=/^(on[a-z]+|formaction)$/,E=dt();this.directive=function t(n,i){return ft(n,"directive"),w(n)?(s(n),lt(i,"directiveFactory"),c.hasOwnProperty(n)||(c[n]=[],e.factory(n+f,["$injector","$exceptionHandler",function(t,e){var i=[];return r(c[n],function(r,o){try{var a=t.invoke(r);S(a)?a={compile:v(a)}:!a.compile&&a.link&&(a.compile=v(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=u(a),a.restrict=a.restrict||"EA",a.$$moduleName=r.$$moduleName,i.push(a)}catch(t){e(t)}}),i}])),c[n].push(i)):r(n,o(t)),this},this.component=function(t,e){function n(t){function n(e){return S(e)||Kr(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}var o=e.template||e.templateUrl?e.template:"",a={controller:i,controllerAs:ye(e.controller)||e.controllerAs||"$ctrl",template:n(o),templateUrl:n(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return r(e,function(t,e){"$"===e.charAt(0)&&(a[e]=t)}),a}var i=e.controller||function(){};return r(e,function(t,e){"$"===e.charAt(0)&&(n[e]=t,S(i)&&(i[e]=t))}),n.$inject=["$injector"],this.directive(t,n)},this.aHrefSanitizationWhitelist=function(t){return $(t)?(n.aHrefSanitizationWhitelist(t),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return $(t)?(n.imgSrcSanitizationWhitelist(t),this):n.imgSrcSanitizationWhitelist()};var k=!0;this.debugInfoEnabled=function(t){return $(t)?(k=t,this):k};var T=10;this.onChangesTtl=function(t){return arguments.length?(T=t,this):T},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,n,i,o,s,u,v,E,O,M){function P(){try{if(!--Ct)throw yt=void 0,Wi("infchng","{0} $onChanges() iterations reached. Aborting!\n",T);v.$apply(function(){for(var t=[],e=0,n=yt.length;e<n;++e)try{yt[e]()}catch(e){t.push(e)}if(yt=void 0,t.length)throw t})}finally{Ct++}}function j(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=e[i]}else this.$attr={};this.$$element=t}function I(t,e,n){wt.innerHTML="<span "+e+">";var r=wt.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}function N(t,e){try{t.addClass(e)}catch(t){}}function V(e,n,r,i,o){e instanceof qr||(e=qr(e));for(var a=/\S+/,s=0,u=e.length;s<u;s++){var l=e[s];l.nodeType===si&&l.nodeValue.match(a)&&kt(l,e[s]=t.document.createElement("span"))}var c=z(e,n,e,r,i,o);V.$$addScopeClass(e);var f=null;return function(t,n,r){lt(t,"scope"),o&&o.needsNewScope&&(t=t.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,a=r.transcludeControllers,s=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=L(s));var u;if(u="html"!==f?qr(ft(f,qr("<div>").append(e).html())):n?Ei.clone.call(e):e,a)for(var l in a)u.data("$"+l+"Controller",a[l].instance);return V.$$addScopeInfo(u,t),n&&n(u,t),c&&c(t,u,u,i),u}}function L(t){var e=t&&t[0];return e&&"foreignobject"!==R(e)&&zr.call(e).match(/SVG/)?"svg":"html"}function z(t,e,n,r,i,o){function a(t,n,r,i){var o,a,s,u,l,c,f,h,v;if(p){var m=n.length;for(v=new Array(m),l=0;l<d.length;l+=3)f=d[l],v[f]=n[f]}else v=n;for(l=0,c=d.length;l<c;)s=v[d[l++]],o=d[l++],a=d[l++],o?(o.scope?(u=t.$new(),V.$$addScopeInfo(qr(s),u)):u=t,h=o.transcludeOnThisElement?B(t,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&e?B(t,e):null,o(a,u,s,r,h)):a&&a(t,s.childNodes,void 0,i)}for(var s,u,l,c,f,h,p,d=[],v=0;v<t.length;v++)s=new j,u=W(t[v],[],s,0===v?r:void 0,i),l=u.length?J(u,t[v],s,e,n,null,[],[],o):null,l&&l.scope&&V.$$addScopeClass(s.$$element),f=l&&l.terminal||!(c=t[v].childNodes)||!c.length?null:z(c,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||f)&&(d.push(v,l,f),h=!0,p=p||l),o=null;return h?a:null}function B(t,e,n){function r(r,i,o,a,s){return r||(r=t.$new(!1,s),r.$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=dt();for(var o in e.$$slots)e.$$slots[o]?i[o]=B(t,e.$$slots[o],n):i[o]=null;return r}function W(t,e,n,r,i){var o,a,s=t.nodeType,u=n.$attr;switch(s){case oi:nt(e,me(R(t)),"E",r,i);for(var l,c,f,h,p,d,v=t.attributes,m=0,g=v&&v.length;m<g;m++){var $=!1,x=!1;l=v[m],c=l.name,p=Xr(l.value),h=me(c),(d=_t.test(h))&&(c=c.replace(Gi,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var C=h.match(Tt);C&&rt(C[1])&&($=c,x=c.substr(0,c.length-5)+"end",c=c.substr(0,c.length-6)),f=me(c.toLowerCase()),u[f]=c,!d&&n.hasOwnProperty(f)||(n[f]=p,Bt(t,f)&&(n[f]=!0)),pt(t,e,p,f,d),nt(e,f,"A",r,i,$,x)}if(a=t.className,y(a)&&(a=a.animVal),w(a)&&""!==a)for(;o=b.exec(a);)f=me(o[2]),nt(e,f,"C",r,i)&&(n[f]=Xr(o[3])),a=a.substr(o.index+o[0].length);break;case si:if(11===Rr)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===si;)t.nodeValue=t.nodeValue+t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);ct(e,t.nodeValue);break;case ui:Y(t,e,n,r,i)}return e.sort(at),e}function Y(t,e,n,r,i){try{var o=m.exec(t.nodeValue);if(o){var a=me(o[1]);
nt(e,a,"M",r,i)&&(n[a]=Xr(o[2]))}}catch(t){}}function G(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Wi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==oi&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return qr(r)}function K(t,e,n){return function(r,i,o,a,s){return i=G(i[0],e,n),t(r,i,o,a,s)}}function X(t,e,n,r,i,o){var a;return t?V(e,n,r,i,o):function(){return a||(a=V(e,n,r,i,o),e=n=o=null),a.apply(this,arguments)}}function J(t,e,n,o,a,s,u,c,f){function h(t,e,n,r){t&&(n&&(t=K(t,n,r)),t.require=d.require,t.directiveName=v,(A===d||d.$$isolateScope)&&(t=mt(t,{isolateScope:!0})),u.push(t)),e&&(n&&(e=K(e,n,r)),e.require=d.require,e.directiveName=v,(A===d||d.$$isolateScope)&&(e=mt(e,{isolateScope:!0})),c.push(e))}function p(t,o,a,s,f){function h(t,e,n,r){var i;if(_(t)||(r=n,n=e,e=t,t=void 0),D&&(i=b),n||(n=D?k.parent():k),!r)return f(t,e,i,n,q);var o=f.$$slots[r];if(o)return o(t,e,i,n,q);if(g(o))throw Wi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Z(k))}var p,d,v,m,$,b,w,k,T,O;e===a?(T=n,k=n.$$element):(k=qr(a),T=new j(k,n)),$=o,A?m=o.$new(!0):x&&($=o.$parent),f&&(w=h,w.$$boundTransclude=f,w.isSlotFilled=function(t){return!!f.$$slots[t]}),C&&(b=tt(k,T,w,C,m,o,A)),A&&(V.$$addScopeInfo(k,m,!0,!(E&&(E===A||E===A.$$originalDirective))),V.$$addScopeClass(k,!0),m.$$isolateBindings=A.$$isolateBindings,O=$t(o,T,m,m.$$isolateBindings,A),O.removeWatches&&m.$on("$destroy",O.removeWatches));for(var M in b){var P=C[M],I=b[M],N=P.$$bindings.bindToController;I.identifier&&N?I.bindingInfo=$t($,T,I.instance,N,P):I.bindingInfo={};var R=I();R!==I.instance&&(I.instance=R,k.data("$"+P.name+"Controller",R),I.bindingInfo.removeWatches&&I.bindingInfo.removeWatches(),I.bindingInfo=$t($,T,I.instance,N,P))}for(r(C,function(t,e){var n=t.require;t.bindToController&&!Kr(n)&&y(n)&&l(b[e].instance,Q(e,n,k,b))}),r(b,function(t){var e=t.instance;if(S(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){i(t)}if(S(e.$onInit))try{e.$onInit()}catch(t){i(t)}S(e.$doCheck)&&($.$watch(function(){e.$doCheck()}),e.$doCheck()),S(e.$onDestroy)&&$.$on("$destroy",function(){e.$onDestroy()})}),p=0,d=u.length;p<d;p++)v=u[p],gt(v,v.isolateScope?m:o,k,T,v.require&&Q(v.directiveName,v.require,k,b),w);var q=o;for(A&&(A.template||null===A.templateUrl)&&(q=m),t&&t(q,a.childNodes,void 0,f),p=c.length-1;p>=0;p--)v=c[p],gt(v,v.isolateScope?m:o,k,T,v.require&&Q(v.directiveName,v.require,k,b),w);r(b,function(t){var e=t.instance;S(e.$postLink)&&e.$postLink()})}f=f||{};for(var d,v,m,$,b,w=-Number.MAX_VALUE,x=f.newScopeDirective,C=f.controllerDirectives,A=f.newIsolateScopeDirective,E=f.templateDirective,k=f.nonTlbTranscludeDirective,T=!1,O=!1,D=f.hasElementTranscludeDirective,M=n.$$element=qr(e),P=s,I=o,N=!1,q=!1,F=0,L=t.length;F<L;F++){d=t[F];var z=d.$$start,B=d.$$end;if(z&&(M=G(e,z,B)),m=void 0,w>d.priority)break;if((b=d.scope)&&(d.templateUrl||(y(b)?(ut("new/isolated scope",A||x,d,M),A=d):ut("new/isolated scope",A,d,M)),x=x||d),v=d.name,!N&&(d.replace&&(d.templateUrl||d.template)||d.transclude&&!d.$$tlb)){for(var Y,J=F+1;Y=t[J++];)if(Y.transclude&&!Y.$$tlb||Y.replace&&(Y.templateUrl||Y.template)){q=!0;break}N=!0}if(!d.templateUrl&&d.controller&&(b=d.controller,C=C||dt(),ut("'"+v+"' controller",C[v],d,M),C[v]=d),b=d.transclude)if(T=!0,d.$$tlb||(ut("transclusion",k,d,M),k=d),"element"==b)D=!0,w=d.priority,m=M,M=n.$$element=qr(V.$$createComment(v,n[v])),e=M[0],vt(a,H(m),e),m[0].$$parentNode=m[0].parentNode,I=X(q,m,o,w,P&&P.name,{nonTlbTranscludeDirective:k});else{var nt=dt();if(m=qr(Ot(e)).contents(),y(b)){m=[];var rt=dt(),at=dt();r(b,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,rt[t]=e,nt[e]=null,at[e]=n}),r(M.contents(),function(t){var e=rt[me(R(t))];e?(at[e]=!0,nt[e]=nt[e]||[],nt[e].push(t)):m.push(t)}),r(at,function(t,e){if(!t)throw Wi("reqslot","Required transclusion slot `{0}` was not filled.",e)});for(var st in nt)nt[st]&&(nt[st]=X(q,nt[st],o))}M.empty(),I=X(q,m,o,void 0,void 0,{needsNewScope:d.$$isolateScope||d.$$newScope}),I.$$slots=nt}if(d.template)if(O=!0,ut("template",E,d,M),E=d,b=S(d.template)?d.template(M,n):d.template,b=Et(b),d.replace){if(P=d,m=xt(b)?[]:$e(ft(d.templateNamespace,Xr(b))),e=m[0],1!=m.length||e.nodeType!==oi)throw Wi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v,"");vt(a,M,e);var lt={$attr:{}},ct=W(e,[],lt),ht=t.splice(F+1,t.length-(F+1));(A||x)&&et(ct,A,x),t=t.concat(ct).concat(ht),it(n,lt),L=t.length}else M.html(b);if(d.templateUrl)O=!0,ut("template",E,d,M),E=d,d.replace&&(P=d),p=ot(t.splice(F,t.length-F),M,n,a,T&&I,u,c,{controllerDirectives:C,newScopeDirective:x!==d&&x,newIsolateScopeDirective:A,templateDirective:E,nonTlbTranscludeDirective:k}),L=t.length;else if(d.compile)try{$=d.compile(M,n,I);var pt=d.$$originalDirective||d;S($)?h(null,U(pt,$),z,B):$&&h(U(pt,$.pre),U(pt,$.post),z,B)}catch(t){i(t,Z(M))}d.terminal&&(p.terminal=!0,w=Math.max(w,d.priority))}return p.scope=x&&x.scope===!0,p.transcludeOnThisElement=T,p.templateOnThisElement=O,p.transclude=I,f.hasElementTranscludeDirective=D,p}function Q(t,e,n,i){var o;if(w(e)){var a=e.match(C),s=e.substring(a[0].length),u=a[1]||a[3],l="?"===a[2];if("^^"===u?n=n.parent():(o=i&&i[s],o=o&&o.instance),!o){var c="$"+s+"Controller";o=u?n.inheritedData(c):n.data(c)}if(!o&&!l)throw Wi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(Kr(e)){o=[];for(var f=0,h=e.length;f<h;f++)o[f]=Q(t,e[f],n,i)}else y(e)&&(o={},r(e,function(e,r){o[r]=Q(t,e,n,i)}));return o||null}function tt(t,e,n,r,i,o,a){var s=dt();for(var l in r){var c=r[l],f={$scope:c===a||c.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},h=c.controller;"@"==h&&(h=e[c.name]);var p=u(h,f,!0,c.controllerAs);s[c.name]=p,t.data("$"+c.name+"Controller",p.instance)}return s}function et(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=h(t[r],{$$isolateScope:e,$$newScope:n})}function nt(t,n,r,o,s,u,l){if(n===s)return null;var p=null;if(c.hasOwnProperty(n))for(var d,v=e.get(n+f),m=0,$=v.length;m<$;m++)try{if(d=v[m],(g(o)||o>d.priority)&&d.restrict.indexOf(r)!=-1){if(u&&(d=h(d,{$$start:u,$$end:l})),!d.$$bindings){var b=d.$$bindings=a(d,d.name);y(b.isolateScope)&&(d.$$isolateBindings=b.isolateScope)}t.push(d),p=d}}catch(t){i(t)}return p}function rt(t){if(c.hasOwnProperty(t))for(var n,r=e.get(t+f),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function it(t,e){var n=e.$attr,i=t.$attr;t.$$element;r(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),r(e,function(e,r){t.hasOwnProperty(r)||"$"===r.charAt(0)||(t[r]=e,"class"!==r&&"style"!==r&&(i[r]=n[r]))})}function ot(t,e,n,i,a,s,u,l){var c,f,p=[],d=e[0],v=t.shift(),m=h(v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),g=S(v.templateUrl)?v.templateUrl(e,n):v.templateUrl,$=v.templateNamespace;return e.empty(),o(g).then(function(o){var h,b,w,x;if(o=Et(o),v.replace){if(w=xt(o)?[]:$e(ft($,Xr(o))),h=w[0],1!=w.length||h.nodeType!==oi)throw Wi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v.name,g);b={$attr:{}},vt(i,e,h);var C=W(h,[],b);y(v.scope)&&et(C,!0),t=C.concat(t),it(n,b)}else h=d,e.html(o);for(t.unshift(m),c=J(t,h,n,a,e,v,s,u,l),r(i,function(t,n){t==h&&(i[n]=e[0])}),f=z(e[0].childNodes,a);p.length;){var S=p.shift(),A=p.shift(),E=p.shift(),_=p.shift(),k=e[0];if(!S.$$destroyed){if(A!==d){var T=A.className;l.hasElementTranscludeDirective&&v.replace||(k=Ot(h)),vt(E,qr(A),k),N(qr(k),T)}x=c.transcludeOnThisElement?B(S,c.transclude,_):_,c(f,S,k,i,x)}}p=null}),function(t,e,n,r,i){var o=i;e.$$destroyed||(p?p.push(e,n,r,o):(c.transcludeOnThisElement&&(o=B(e,c.transclude,i)),c(f,e,n,r,o)))}}function at(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 ut(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Wi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,Z(r))}function ct(t,e){var r=n(e,!0);r&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&V.$$addBindingClass(e),function(t,e){var i=e.parent();n||V.$$addBindingClass(i),V.$$addBindingInfo(i,r.expressions),t.$watch(r,function(t){e[0].nodeValue=t})}}})}function ft(e,n){switch(e=Pr(e||"html")){case"svg":case"math":var r=t.document.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function ht(t,e){if("srcdoc"==e)return E.HTML;var n=R(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?E.RESOURCE_URL:void 0}function pt(t,e,r,i,o){var a=ht(t,i);o=x[i]||o;var s=n(r,!0,a,o);if(s){if("multiple"===i&&"select"===R(t))throw Wi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Z(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var l=u.$$observers||(u.$$observers=dt());if(A.test(i))throw Wi("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=u[i];c!==r&&(s=c&&n(c,!0,a,o),r=c),s&&(u[i]=s(t),(l[i]||(l[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(s,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function vt(e,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]==a){e[i++]=r;for(var l=i,c=l+s-1,f=e.length;l<f;l++,c++)c<f?e[l]=e[c]:delete e[l];e.length-=s-1,e.context===a&&(e.context=r);break}u&&u.replaceChild(r,a);var h=t.document.createDocumentFragment();for(i=0;i<s;i++)h.appendChild(n[i]);for(qr.hasData(a)&&(qr.data(r,qr.data(a)),qr(a).off("$destroy")),qr.cleanData(h.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function mt(t,e){return l(function(){return t.apply(null,arguments)},t,e)}function gt(t,e,n,r,o,a){try{t(e,n,r,o,a)}catch(t){i(t,Z(n))}}function $t(t,e,i,o,a){function u(e,n,r){S(i.$onChanges)&&n!==r&&(yt||(t.$$postDigest(P),yt=[]),c||(c={},yt.push(l)),c[e]&&(r=c[e].previousValue),c[e]=new ve(r,n))}function l(){i.$onChanges(c),c=void 0}var c,f=[],h={};return r(o,function(r,o){var l,c,d,v,m,g=r.attrName,$=r.optional,y=r.mode;switch(y){case"@":$||Mr.call(e,g)||(i[o]=e[g]=void 0),e.$observe(g,function(t){if(w(t)||D(t)){var e=i[o];u(o,t,e),i[o]=t}}),e.$$observers[g].$$scope=t,l=e[g],w(l)?i[o]=n(l)(t):D(l)&&(i[o]=l),h[o]=new ve(Yi,i[o]);break;case"=":if(!Mr.call(e,g)){if($)break;e[g]=void 0}if($&&!e[g])break;c=s(e[g]),v=c.literal?F:function(t,e){return t===e||t!==t&&e!==e},d=c.assign||function(){throw l=i[o]=c(t),Wi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[g],g,a.name)},l=i[o]=c(t);var b=function(e){return v(e,i[o])||(v(e,l)?d(t,e=i[o]):i[o]=e),l=e};b.$stateful=!0,m=r.collection?t.$watchCollection(e[g],b):t.$watch(s(e[g],b),null,c.literal),f.push(m);break;case"<":if(!Mr.call(e,g)){if($)break;e[g]=void 0}if($&&!e[g])break;c=s(e[g]);var x=i[o]=c(t);h[o]=new ve(Yi,i[o]),m=t.$watch(c,function(t,e){if(e===t){if(e===x)return;e=x}u(o,t,e),i[o]=t},c.literal),f.push(m);break;case"&":if(c=e.hasOwnProperty(g)?s(e[g]):p,c===p&&$)break;i[o]=function(e){return c(t,e)}}}),{initialChanges:h,removeWatches:f.length&&function(){for(var t=0,e=f.length;t<e;++t)f[t]()}}}var yt,bt=/^\w/,wt=t.document.createElement("div"),Ct=T;j.prototype={$normalize:me,$addClass:function(t){t&&t.length>0&&O.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&O.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=ge(t,e);n&&n.length&&O.addClass(this.$$element,n);var r=ge(e,t);r&&r.length&&O.removeClass(this.$$element,r)},$set:function(t,e,n,o){var a,s=this.$$element[0],u=Bt(s,t),l=Wt(t),c=t;if(u?(this.$$element.prop(t,e),o=u):l&&(this[l]=e,c=l),this[t]=e,o?this.$attr[t]=o:(o=this.$attr[t],o||(this.$attr[t]=o=st(t,"-"))),a=R(this.$$element),"a"===a&&("href"===t||"xlinkHref"===t)||"img"===a&&"src"===t)this[t]=e=M(e,"src"===t);else if("img"===a&&"srcset"===t&&$(e)){for(var f="",h=Xr(e),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,d=/\s/.test(h)?p:/(,)/,v=h.split(d),m=Math.floor(v.length/2),y=0;y<m;y++){var b=2*y;f+=M(Xr(v[b]),!0),f+=" "+Xr(v[b+1])}var w=Xr(v[2*y]).split(/\s/);f+=M(Xr(w[0]),!0),2===w.length&&(f+=" "+Xr(w[1])),this[t]=e=f}n!==!1&&(null===e||g(e)?this.$$element.removeAttr(o):bt.test(o)?this.$$element.attr(o,e):I(this.$$element[0],o,e));var x=this.$$observers;x&&r(x[c],function(t){try{t(e)}catch(t){i(t)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=dt()),i=r[t]||(r[t]=[]);return i.push(e),v.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||g(n[t])||e(n[t])}),function(){q(i,e)}}};var St=n.startSymbol(),At=n.endSymbol(),Et="{{"==St&&"}}"==At?d:function(t){return t.replace(/\{\{/g,St).replace(/}}/g,At)},_t=/^ngAttr[A-Z]/,Tt=/^(.+)Start$/;return V.$$addBindingInfo=k?function(t,e){var n=t.data("$binding")||[];Kr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:p,V.$$addBindingClass=k?function(t){N(t,"ng-binding")}:p,V.$$addScopeInfo=k?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:p,V.$$addScopeClass=k?function(t,e){N(t,e?"ng-isolate-scope":"ng-scope")}:p,V.$$createComment=function(e,n){var r="";return k&&(r=" "+(e||"")+": ",n&&(r+=n+" ")),t.document.createComment(r)},V}]}function ve(t,e){this.previousValue=t,this.currentValue=e}function me(t){return wt(t.replace(Gi,""))}function ge(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue t;n+=(n.length>0?" ":"")+a}return n}function $e(t){t=qr(t);var e=t.length;if(e<=1)return t;for(;e--;){var n=t[e];n.nodeType===ui&&Hr.call(t,e,1)}return t}function ye(t,e){if(e&&w(e))return e;if(w(t)){var n=Zi.exec(t);if(n)return n[3]}}function be(){var t={},n=!1;this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){ft(e,"controller"),y(e)?l(t,e):t[e]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(t,n,r,i){if(!t||!y(t.$scope))throw e("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=r}return function(e,a,s,u){var c,f,h,p;if(s=s===!0,u&&w(u)&&(p=u),w(e)){if(f=e.match(Zi),!f)throw Ki("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);h=f[1],p=p||f[3],e=t.hasOwnProperty(h)?t[h]:ht(a.$scope,h,!0)||(n?ht(i,h,!0):void 0),ct(e,h,!0)}if(s){var d=(Kr(e)?e[e.length-1]:e).prototype;c=Object.create(d||null),p&&o(a,p,c,h||e.name);var v;return v=l(function(){var t=r.invoke(e,c,a,h);return t!==c&&(y(t)||S(t))&&(c=t,p&&o(a,p,c,h||e.name)),c},{instance:c,identifier:p})}return c=r.instantiate(e,a,h),p&&o(a,p,c,h||e.name),c}}]}function we(){this.$get=["$window",function(t){return qr(t.document)}]}function xe(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function Ce(t){return y(t)?C(t)?t.toISOString():B(t):t}function Se(){this.$get=function(){return function(t){if(!t)return"";var e=[];return i(t,function(t,n){null===t||g(t)||(Kr(t)?r(t,function(t){e.push(et(n)+"="+et(Ce(t)))}):e.push(et(n)+"="+et(Ce(t))))}),e.join("&")}}}function Ae(){this.$get=function(){return function(t){function e(t,o,a){null===t||g(t)||(Kr(t)?r(t,function(t,n){e(t,o+"["+(y(t)?n:"")+"]")}):y(t)&&!C(t)?i(t,function(t,n){e(t,o+(a?"":"[")+n+(a?"":"]"))}):n.push(et(o)+"="+et(Ce(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function Ee(t,e){if(w(t)){var n=t.replace(no,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(Ji)||_e(n))&&(t=W(n))}}return t}function _e(t){var e=t.match(to);return e&&eo[e[0]].test(t)}function ke(t){function e(t,e){t&&(i[t]=i[t]?i[t]+", "+e:e)}var n,i=dt();return w(t)?r(t.split("\n"),function(t){n=t.indexOf(":"),e(Pr(Xr(t.substr(0,n))),Xr(t.substr(n+1)))}):y(t)&&r(t,function(t,n){e(Pr(n),Xr(t))}),i}function Te(t){var e;return function(n){if(e||(e=ke(t)),n){var r=e[Pr(n)];return void 0===r&&(r=null),r}return e}}function Oe(t,e,n,i){return S(i)?i(t,e,n):(r(i,function(r){t=r(t,e,n)}),t)}function De(t){return 200<=t&&t<300}function Me(){var t=this.defaults={transformResponse:[Ee],transformRequest:[function(t){return!y(t)||k(t)||O(t)||T(t)?t:B(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:mt(Qi),put:mt(Qi),patch:mt(Qi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(t){return $(t)?(n=!!t,this):n};var i=!0;this.useLegacyPromiseExtensions=function(t){return $(t)?(i=!!t,this):i};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,u,c,f,h){function p(n){function o(t,e){for(var n=0,r=e.length;n<r;){var i=e[n++],o=e[n++];t=t.then(i,o)}return e.length=0,t}function a(t,e){var n,i={};return r(t,function(t,r){S(t)?(n=t(e),null!=n&&(i[r]=n)):i[r]=t}),i}function s(e){var n,r,i,o=t.headers,s=l({},e.headers);o=l({},o.common,o[Pr(e.method)]);t:for(n in o){r=Pr(n);for(i in s)if(Pr(i)===r)continue t;s[n]=o[n]}return a(s,mt(e))}function u(e){var n=e.headers,i=Oe(e.data,Te(n),void 0,e.transformRequest);return g(i)&&r(n,function(t,e){"content-type"===Pr(e)&&delete n[e]}),g(e.withCredentials)&&!g(t.withCredentials)&&(e.withCredentials=t.withCredentials),m(e,i).then(c,c)}function c(t){var e=l({},t);return e.data=Oe(t.data,t.headers,t.status,p.transformResponse),De(t.status)?e:f.reject(e)}if(!y(n))throw e("$http")("badreq","Http request configuration must be an object.  Received: {0}",n);if(!w(n.url))throw e("$http")("badreq","Http request configuration url must be a string.  Received: {0}",n.url);var p=l({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);p.headers=s(n),p.method=jr(p.method),p.paramSerializer=w(p.paramSerializer)?h.get(p.paramSerializer):p.paramSerializer;var d=[],v=[],$=f.when(p);return r(C,function(t){(t.request||t.requestError)&&d.unshift(t.request,t.requestError),(t.response||t.responseError)&&v.push(t.response,t.responseError)}),$=o($,d),$=$.then(u),$=o($,v),i?($.success=function(t){return ct(t,"fn"),$.then(function(e){t(e.data,e.status,e.headers,p)}),$},$.error=function(t){return ct(t,"fn"),$.then(null,function(e){t(e.data,e.status,e.headers,p)}),$}):($.success=io("success"),$.error=io("error")),$}function d(t){r(arguments,function(t){p[t]=function(e,n){return p(l({},n||{},{method:t,url:e}))}})}function v(t){r(arguments,function(t){p[t]=function(e,n,r){return p(l({},r||{},{method:t,url:e,data:n}))}})}function m(e,i){function o(t){if(t){var e={};return r(t,function(t,r){e[r]=function(e){function r(){t(e)}n?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}}),e}}function u(t,e,r,i){function o(){l(e,t,r,i)}v&&(De(t)?v.put(A,[t,e,ke(r),i]):v.remove(A)),n?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function l(t,n,r,i){n=n>=-1?n:0,(De(n)?w.resolve:w.reject)({data:t,status:n,headers:Te(r),config:e,statusText:i})}function h(t){l(t.data,t.status,mt(t.headers()),t.statusText)}function d(){var t=p.pendingRequests.indexOf(e);t!==-1&&p.pendingRequests.splice(t,1)}var v,m,w=f.defer(),C=w.promise,S=e.headers,A=b(e.url,e.paramSerializer(e.params));if(p.pendingRequests.push(e),C.then(d,d),!e.cache&&!t.cache||e.cache===!1||"GET"!==e.method&&"JSONP"!==e.method||(v=y(e.cache)?e.cache:y(t.cache)?t.cache:x),v&&(m=v.get(A),$(m)?M(m)?m.then(h,h):Kr(m)?l(m[1],m[0],mt(m[2]),m[3]):l(m,200,{},"OK"):v.put(A,C)),g(m)){var E=In(e.url)?s()[e.xsrfCookieName||t.xsrfCookieName]:void 0;E&&(S[e.xsrfHeaderName||t.xsrfHeaderName]=E),a(e.method,A,i,u,S,e.timeout,e.withCredentials,e.responseType,o(e.eventHandlers),o(e.uploadEventHandlers))}return C}function b(t,e){return e.length>0&&(t+=(t.indexOf("?")==-1?"?":"&")+e),t}var x=u("$http");t.paramSerializer=w(t.paramSerializer)?h.get(t.paramSerializer):t.paramSerializer;var C=[];return r(o,function(t){C.unshift(w(t)?h.get(t):h.invoke(t))}),p.pendingRequests=[],d("get","delete","head","jsonp"),v("post","put","patch"),p.defaults=t,p}]}function Pe(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function je(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,r){return Ie(t,r,t.defer,e,n[0])}]}function Ie(t,e,n,i,o){function a(t,e,n){t=t.replace("JSON_CALLBACK",e);var r=o.createElement("script"),a=null;return r.type="text/javascript",r.src=t,r.async=!0,a=function(t){vi(r,"load",a),vi(r,"error",a),o.body.removeChild(r),r=null;var s=-1,u="unknown";t&&("load"!==t.type||i.wasCalled(e)||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},di(r,"load",a),di(r,"error",a),o.body.appendChild(r),a}return function(o,s,u,l,c,f,h,d,v,m){function y(){x&&x(),C&&C.abort()}function b(e,r,i,o,a){$(A)&&n.cancel(A),x=C=null,e(r,i,o,a),t.$$completeOutstandingRequest(p)}if(t.$$incOutstandingRequestCount(),s=s||t.url(),"jsonp"===Pr(o))var w=i.createCallback(s),x=a(s,w,function(t,e){var n=200===t&&i.getResponse(w);b(l,t,n,"",e),i.removeCallback(w)});else{var C=e(o,s);C.open(o,s,!0),r(c,function(t,e){$(t)&&C.setRequestHeader(e,t)}),C.onload=function(){var t=C.statusText||"",e="response"in C?C.response:C.responseText,n=1223===C.status?204:C.status;0===n&&(n=e?200:"file"==jn(s).protocol?404:0),b(l,n,e,C.getAllResponseHeaders(),t)};var S=function(){b(l,-1,null,null,"")};if(C.onerror=S,C.onabort=S,r(v,function(t,e){C.addEventListener(e,t)}),r(m,function(t,e){C.upload.addEventListener(e,t)}),h&&(C.withCredentials=!0),d)try{C.responseType=d}catch(t){if("json"!==d)throw t}C.send(g(u)?null:u)}if(f>0)var A=n(y,f);else M(f)&&f.then(y)}}function Ne(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(t){return"\\\\\\"+t}function a(n){return n.replace(p,t).replace(d,e)}function s(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=B(t)}return t}function u(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function c(o,c,p,d){function m(t){try{return t=M(t),d&&!$(t)?t:s(t)}catch(t){r(oo.interr(o,t))}}if(!o.length||o.indexOf(t)===-1){var y;if(!c){var b=a(o);y=v(b),y.exp=o,y.expressions=[],y.$$watchDelegate=u}return y}d=!!d;for(var w,x,C,A=0,E=[],_=[],k=o.length,T=[],O=[];A<k;){if((w=o.indexOf(t,A))==-1||(x=o.indexOf(e,w+f))==-1){A!==k&&T.push(a(o.substring(A)));break}A!==w&&T.push(a(o.substring(A,w))),C=o.substring(w+f,x),E.push(C),_.push(n(C,m)),A=x+h,O.push(T.length),T.push("")}if(p&&T.length>1&&oo.throwNoconcat(o),!c||E.length){var D=function(t){for(var e=0,n=E.length;e<n;e++){if(d&&g(t[e]))return;T[O[e]]=t[e]}return T.join("")},M=function(t){return p?i.getTrusted(p,t):i.valueOf(t)};return l(function(t){var e=0,n=E.length,i=new Array(n);try{for(;e<n;e++)i[e]=_[e](t);return D(i)}catch(t){r(oo.interr(o,t))}},{exp:o,expressions:E,$$watchDelegate:function(t,e){var n;return t.$watchGroup(_,function(r,i){var o=D(r);S(e)&&e.call(this,o,r!==i?n:o,t),n=o})}})}}var f=t.length,h=e.length,p=new RegExp(t.replace(/./g,o),"g"),d=new RegExp(e.replace(/./g,o),"g");return c.startSymbol=function(){return t},c.endSymbol=function(){return e},c}]}function Re(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(t,e,n,r,i){function o(o,s,u,l){function c(){f?o.apply(null,h):o(v)}var f=arguments.length>4,h=f?H(arguments,4):[],p=e.setInterval,d=e.clearInterval,v=0,m=$(l)&&!l,g=(m?r:n).defer(),y=g.promise;return u=$(u)?u:0,y.$$intervalId=p(function(){m?i.defer(c):t.$evalAsync(c),g.notify(v++),u>0&&v>=u&&(g.resolve(v),d(y.$$intervalId),delete a[y.$$intervalId]),m||t.$apply()},s),a[y.$$intervalId]=g,y}var a={};return o.cancel=function(t){return!!(t&&t.$$intervalId in a)&&(a[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete a[t.$$intervalId],!0)},o}]}function qe(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=tt(e[n]);return e.join("/")}function Ve(t,e){var n=jn(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=f(n.port)||uo[n.protocol]||null}function Fe(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=jn(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=J(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function Le(t,e){return 0===t.lastIndexOf(e,0)}function He(t,e){if(Le(e,t))return e.substr(t.length)}function Ue(t){var e=t.indexOf("#");return e==-1?t:t.substr(0,e)}function ze(t){return t.replace(/(#.+)|#$/,"$1")}function Be(t){return t.substr(0,Ue(t).lastIndexOf("/")+1)}function We(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Ye(t,e,n){this.$$html5=!0,n=n||"",Ve(t,this),this.$$parse=function(t){var n=He(e,t);if(!w(n))throw lo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Fe(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=Q(this.$$search),n=this.$$hash?"#"+tt(this.$$hash):"";this.$$url=qe(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return $(o=He(t,r))?(a=o,s=$(o=He(n,o))?e+(He("/",o)||o):t+a):$(o=He(e,r))?s=e+o:e==r+"/"&&(s=e),s&&this.$$parse(s),!!s}}function Ge(t,e,n){Ve(t,this),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return Le(e,n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}var o,a=He(t,r)||He(e,r);g(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",g(a)&&(t=r,this.replace())):(o=He(n,a),g(o)&&(o=a)),Fe(o,this),this.$$path=i(this.$$path,o,t),this.$$compose()},this.$$compose=function(){var e=Q(this.$$search),r=this.$$hash?"#"+tt(this.$$hash):"";this.$$url=qe(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return Ue(t)==Ue(e)&&(this.$$parse(e),!0)}}function Ke(t,e,n){this.$$html5=!0,Ge.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return t==Ue(r)?o=r:(a=He(e,r))?o=t+n+a:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=Q(this.$$search),r=this.$$hash?"#"+tt(this.$$hash):"";this.$$url=qe(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function Ze(t){return function(){return this[t]}}function Xe(t,e){return function(n){return g(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Je(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return $(e)?(t=e,this):t},this.html5Mode=function(t){return D(t)?(e.enabled=t,this):y(t)?(D(t.enabled)&&(e.enabled=t.enabled),D(t.requireBase)&&(e.requireBase=t.requireBase),D(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(t,e,n){var i=l.url(),o=l.$$state;try{r.url(t,e,n),l.$$state=r.state()}catch(t){throw l.url(i),l.$$state=o,t}}function u(t,e){n.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}var l,c,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw lo("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=We(p)+(h||"/"),c=i.history?Ye:Ke}else f=Ue(p),c=Ge;var d=Be(f);l=new c(f,d,"#"+t),l.$$parseLinkUrl(p,p),l.$$state=r.state();var v=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=qr(t.target);"a"!==R(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");y(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=jn(s.animVal).href),v.test(s)||!s||i.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(s,u)&&(t.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),ze(l.absUrl())!=ze(p)&&r.url(l.absUrl(),!0);var m=!0;return r.onUrlChange(function(t,e){return g(He(d,t))?void(a.location.href=t):(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;t=ze(t),l.$$parse(t),l.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,l.absUrl()===t&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(m=!1,u(i,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var t=ze(r.url()),e=ze(l.absUrl()),o=r.state(),a=l.$$replace,c=t!==e||l.$$html5&&i.history&&o!==l.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var e=l.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,l.$$state,o).defaultPrevented;l.absUrl()===e&&(r?(l.$$parse(t),l.$$state=o):(c&&s(e,a,o===l.$$state?null:l.$$state),u(t,o)))})),l.$$replace=!1}),l}]}function Qe(){var t=!0,e=this;this.debugEnabled=function(e){return $(e)?(t=e,this):t},this.$get=["$window",function(n){function i(t){return t instanceof Error&&(t.stack?t=t.message&&t.stack.indexOf(t.message)===-1?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function o(t){var e=n.console||{},o=e[t]||e.log||p,a=!1;try{a=!!o.apply}catch(t){}return a?function(){var t=[];return r(arguments,function(e){t.push(i(e))}),o.apply(e,t)}:function(t,e){o(t,null==e?"":e)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function tn(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw fo("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function en(t){return t+""}function nn(t,e){if(t){if(t.constructor===t)throw fo("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw fo("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw fo("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw fo("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function rn(t,e){if(t){if(t.constructor===t)throw fo("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===ho||t===po||t===vo)throw fo("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function on(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw fo("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}function an(t,e){return"undefined"!=typeof t?t:e}function sn(t,e){return"undefined"==typeof t?e:"undefined"==typeof e?t:t+e}function un(t,e){var n=t(e);return!n.$stateful}function ln(t,e){var n,i;switch(t.type){case yo.Program:n=!0,r(t.body,function(t){ln(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case yo.Literal:t.constant=!0,t.toWatch=[];break;case yo.UnaryExpression:ln(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case yo.BinaryExpression:ln(t.left,e),ln(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case yo.LogicalExpression:ln(t.left,e),ln(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case yo.ConditionalExpression:ln(t.test,e),ln(t.alternate,e),ln(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case yo.Identifier:t.constant=!1,t.toWatch=[t];break;case yo.MemberExpression:ln(t.object,e),t.computed&&ln(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case yo.CallExpression:
n=!!t.filter&&un(e,t.callee.name),i=[],r(t.arguments,function(t){ln(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&un(e,t.callee.name)?i:[t];break;case yo.AssignmentExpression:ln(t.left,e),ln(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case yo.ArrayExpression:n=!0,i=[],r(t.elements,function(t){ln(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=i;break;case yo.ObjectExpression:n=!0,i=[],r(t.properties,function(t){ln(t.value,e),n=n&&t.value.constant&&!t.computed,t.value.constant||i.push.apply(i,t.value.toWatch)}),t.constant=n,t.toWatch=i;break;case yo.ThisExpression:t.constant=!1,t.toWatch=[];break;case yo.LocalsExpression:t.constant=!1,t.toWatch=[]}}function cn(t){if(1==t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length?n:n[0]!==e?n:void 0}}function fn(t){return t.type===yo.Identifier||t.type===yo.MemberExpression}function hn(t){if(1===t.body.length&&fn(t.body[0].expression))return{type:yo.AssignmentExpression,left:t.body[0].expression,right:{type:yo.NGValueParameter},operator:"="}}function pn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===yo.Literal||t.body[0].expression.type===yo.ArrayExpression||t.body[0].expression.type===yo.ObjectExpression)}function dn(t){return t.constant}function vn(t,e){this.astBuilder=t,this.$filter=e}function mn(t,e){this.astBuilder=t,this.$filter=e}function gn(t){return"constructor"==t}function $n(t){return S(t.valueOf)?t.valueOf():wo.call(t)}function yn(){var t,e,n=dt(),i=dt(),o={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){o[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(a){function s(t,e,r){var o,s,l;switch(r=r||b,typeof t){case"string":t=t.trim(),l=t;var m=r?i:n;if(o=m[l],!o){":"===t.charAt(0)&&":"===t.charAt(1)&&(s=!0,t=t.substring(2));var $=r?y:g,w=new $o($),x=new bo(w,a,$);o=x.parse(t),o.constant?o.$$watchDelegate=d:s?o.$$watchDelegate=o.literal?h:f:o.inputs&&(o.$$watchDelegate=c),r&&(o=u(o)),m[l]=o}return v(o,e);case"function":return v(t,e);default:return v(p,e)}}function u(t){function e(e,n,r,i){var o=b;b=!0;try{return t(e,n,r,i)}finally{b=o}}if(!t)return t;e.$$watchDelegate=t.$$watchDelegate,e.assign=u(t.assign),e.constant=t.constant,e.literal=t.literal;for(var n=0;t.inputs&&n<t.inputs.length;++n)t.inputs[n]=u(t.inputs[n]);return e.inputs=t.inputs,e}function l(t,e){return null==t||null==e?t===e:("object"!=typeof t||(t=$n(t),"object"!=typeof t))&&(t===e||t!==t&&e!==e)}function c(t,e,n,r,i){var o,a=r.inputs;if(1===a.length){var s=l;return a=a[0],t.$watch(function(t){var e=a(t);return l(e,s)||(o=r(t,void 0,void 0,[e]),s=e&&$n(e)),o},e,n,i)}for(var u=[],c=[],f=0,h=a.length;f<h;f++)u[f]=l,c[f]=null;return t.$watch(function(t){for(var e=!1,n=0,i=a.length;n<i;n++){var s=a[n](t);(e||(e=!l(s,u[n])))&&(c[n]=s,u[n]=s&&$n(s))}return e&&(o=r(t,void 0,void 0,c)),o},e,n,i)}function f(t,e,n,r){var i,o;return i=t.$watch(function(t){return r(t)},function(t,n,r){o=t,S(e)&&e.apply(this,arguments),$(t)&&r.$$postDigest(function(){$(o)&&i()})},n)}function h(t,e,n,i){function o(t){var e=!0;return r(t,function(t){$(t)||(e=!1)}),e}var a,s;return a=t.$watch(function(t){return i(t)},function(t,n,r){s=t,S(e)&&e.call(this,t,n,r),o(t)&&r.$$postDigest(function(){o(s)&&a()})},n)}function d(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function v(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,i=n!==h&&n!==f,o=i?function(n,i,o,a){var s=r&&a?a[0]:t(n,i,o,a);return e(s,n,i)}:function(n,r,i,o){var a=t(n,r,i,o),s=e(a,n,r);return $(a)?s:a};return t.$$watchDelegate&&t.$$watchDelegate!==c?o.$$watchDelegate=t.$$watchDelegate:e.$stateful||(o.$$watchDelegate=c,r=!t.inputs,o.inputs=t.inputs?t.inputs:[t]),o}var m=Qr().noUnsafeEval,g={csp:m,expensiveChecks:!1,literals:V(o),isIdentifierStart:S(t)&&t,isIdentifierContinue:S(e)&&e},y={csp:m,expensiveChecks:!0,literals:V(o),isIdentifierStart:S(t)&&t,isIdentifierContinue:S(e)&&e},b=!1;return s.$$runningExpensiveChecks=function(){return b},s}]}function bn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return xn(function(e){t.$evalAsync(e)},e)}]}function wn(){this.$get=["$browser","$exceptionHandler",function(t,e){return xn(function(e){t.defer(e)},e)}]}function xn(t,n){function i(){this.$$state={status:0}}function o(t,e){return function(n){e.call(t,n)}}function a(t){var e,r,i;i=t.pending,t.processScheduled=!1,t.pending=void 0;for(var o=0,a=i.length;o<a;++o){r=i[o][0],e=i[o][t.status];try{S(e)?r.resolve(e(t.value)):1===t.status?r.resolve(t.value):r.reject(t.value)}catch(t){r.reject(t),n(t)}}}function s(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){a(e)}))}function u(){this.promise=new i}function c(t){var e=new u,n=0,i=Kr(t)?[]:{};return r(t,function(t,r){n++,$(t).then(function(t){i.hasOwnProperty(r)||(i[r]=t,--n||e.resolve(i))},function(t){i.hasOwnProperty(r)||e.reject(t)})}),0===n&&e.resolve(i),e.promise}function f(t){var e=p();return r(t,function(t){$(t).then(e.resolve,e.reject)}),e.promise}var h=e("$q",TypeError),p=function(){var t=new u;return t.resolve=o(t,t.resolve),t.reject=o(t,t.reject),t.notify=o(t,t.notify),t};l(i.prototype,{then:function(t,e,n){if(g(t)&&g(e)&&g(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&s(this.$$state),r.promise},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then(function(e){return m(e,!0,t)},function(e){return m(e,!1,t)},e)}}),l(u.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(h("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){function e(t){u||(u=!0,a.$$resolve(t))}function r(t){u||(u=!0,a.$$reject(t))}var i,a=this,u=!1;try{(y(t)||S(t))&&(i=t&&t.then),S(i)?(this.promise.$$state.status=-1,i.call(t,e,r,o(this,this.notify))):(this.promise.$$state.value=t,this.promise.$$state.status=1,s(this.promise.$$state))}catch(t){r(t),n(t)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,s(this.promise.$$state)},notify:function(e){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,o=0,a=r.length;o<a;o++){i=r[o][0],t=r[o][3];try{i.notify(S(t)?t(e):e)}catch(t){n(t)}}})}});var d=function(t){var e=new u;return e.reject(t),e.promise},v=function(t,e){var n=new u;return e?n.resolve(t):n.reject(t),n.promise},m=function(t,e,n){var r=null;try{S(n)&&(r=n())}catch(t){return v(t,!1)}return M(r)?r.then(function(){return v(t,e)},function(t){return v(t,!1)}):v(t,e)},$=function(t,e,n,r){var i=new u;return i.resolve(t),i.promise.then(e,n,r)},b=$,w=function(t){function e(t){r.resolve(t)}function n(t){r.reject(t)}if(!S(t))throw h("norslvr","Expected resolverFn, got '{0}'",t);var r=new u;return t(e,n),r.promise};return w.prototype=i.prototype,w.defer=p,w.reject=d,w.when=$,w.resolve=b,w.all=c,w.race=f,w}function Cn(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function Sn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=a(),this.$$ChildScope=null}return e.prototype=t,e}var i=10,o=e("$rootScope"),s=null,u=null;this.digestTtl=function(t){return arguments.length&&(i=t),i},this.$get=["$exceptionHandler","$parse","$browser",function(e,l,c){function f(t){t.currentScope.$$destroyed=!0}function h(t){9===Rr&&(t.$$childHead&&h(t.$$childHead),t.$$nextSibling&&h(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function d(){this.$id=a(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function v(t){if(A.$$phase)throw o("inprog","{0} already in progress",A.$$phase);A.$$phase=t}function m(){A.$$phase=null}function $(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function b(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function w(){}function x(){for(;k.length;)try{k.shift()()}catch(t){e(t)}u=null}function C(){null===u&&(u=c.defer(function(){A.$apply(x)}))}d.prototype={constructor:d,$new:function(e,n){var r;return n=n||this,e?(r=new d,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!=this)&&r.$on("$destroy",f),r},$watch:function(t,e,n,r){var i=l(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,a=o.$$watchers,u={fn:e,last:w,get:i,exp:r||t,eq:!!n};return s=null,S(e)||(u.fn=p),a||(a=o.$$watchers=[]),a.unshift(u),$(this,1),function(){q(a,u)>=0&&$(o,-1),s=null}},$watchGroup:function(t,e){function n(){u=!1,l?(l=!1,e(o,o,s)):e(o,i,s)}var i=new Array(t.length),o=new Array(t.length),a=[],s=this,u=!1,l=!0;if(!t.length){var c=!0;return s.$evalAsync(function(){c&&e(o,o,s)}),function(){c=!1}}return 1===t.length?this.$watch(t[0],function(t,n,r){o[0]=t,i[0]=n,e(o,t===n?o:i,r)}):(r(t,function(t,e){var r=s.$watch(t,function(t,r){o[e]=t,i[e]=r,u||(u=!0,s.$evalAsync(n))});a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(t,e){function r(t){o=t;var e,r,i,s,u;if(!g(o)){if(y(o))if(n(o)){a!==p&&(a=p,m=a.length=0,f++),e=o.length,m!==e&&(f++,a.length=m=e);for(var l=0;l<e;l++)u=a[l],s=o[l],i=u!==u&&s!==s,i||u===s||(f++,a[l]=s)}else{a!==d&&(a=d={},m=0,f++),e=0;for(r in o)Mr.call(o,r)&&(e++,s=o[r],u=a[r],r in a?(i=u!==u&&s!==s,i||u===s||(f++,a[r]=s)):(m++,a[r]=s,f++));if(m>e){f++;for(r in a)Mr.call(o,r)||(m--,delete a[r])}}else a!==o&&(a=o,f++);return f}}function i(){if(v?(v=!1,e(o,o,u)):e(o,s,u),c)if(y(o))if(n(o)){s=new Array(o.length);for(var t=0;t<o.length;t++)s[t]=o[t]}else{s={};for(var r in o)Mr.call(o,r)&&(s[r]=o[r])}else s=o}r.$stateful=!0;var o,a,s,u=this,c=e.length>1,f=0,h=l(t,r),p=[],d={},v=!0,m=0;return this.$watch(h,i)},$digest:function(){var t,n,r,a,l,f,h,p,d,g,$,y,b=i,C=this,k=[];v("$digest"),c.$$checkUrlChange(),this===A&&null!==u&&(c.defer.cancel(u),x()),s=null;do{p=!1,g=C;for(var O=0;O<E.length;O++){try{y=E[O],y.scope.$eval(y.expression,y.locals)}catch(t){e(t)}s=null}E.length=0;t:do{if(f=g.$$watchers)for(h=f.length;h--;)try{if(t=f[h])if(l=t.get,(n=l(g))===(r=t.last)||(t.eq?F(n,r):"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))){if(t===s){p=!1;break t}}else p=!0,s=t,t.last=t.eq?V(n,null):n,a=t.fn,a(n,r===w?n:r,g),b<5&&($=4-b,k[$]||(k[$]=[]),k[$].push({msg:S(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:n,oldVal:r}))}catch(t){e(t)}if(!(d=g.$$watchersCount&&g.$$childHead||g!==C&&g.$$nextSibling))for(;g!==C&&!(d=g.$$nextSibling);)g=g.$parent}while(g=d);if((p||E.length)&&!b--)throw m(),o("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",i,k)}while(p||E.length);for(m();T<_.length;)try{_[T++]()}catch(t){e(t)}_.length=T=0},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===A&&c.$$applicationDestroyed(),$(this,-this.$$watchersCount);for(var e in this.$$listenerCount)b(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$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=p,this.$on=this.$watch=this.$watchGroup=function(){return p},this.$$listeners={},this.$$nextSibling=null,h(this)}},$eval:function(t,e){return l(t)(this,e)},$evalAsync:function(t,e){A.$$phase||E.length||c.defer(function(){E.length&&A.$digest()}),E.push({scope:this,expression:l(t),locals:e})},$$postDigest:function(t){_.push(t)},$apply:function(t){try{v("$apply");try{return this.$eval(t)}finally{m()}}catch(t){e(t)}finally{try{A.$digest()}catch(t){throw e(t),t}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&k.push(e),t=l(t),C()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);r!==-1&&(n[r]=null,b(i,1,t))}},$emit:function(t,n){var r,i,o,a=[],s=this,u=!1,l={name:t,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=L([l],arguments,1);do{for(r=s.$$listeners[t]||a,l.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,c)}catch(t){e(t)}else r.splice(i,1),i--,o--;if(u)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(t,n){var r=this,i=r,o=r,a={name:t,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[t])return a;for(var s,u,l,c=L([a],arguments,1);i=o;){for(a.currentScope=i,s=i.$$listeners[t]||[],u=0,l=s.length;u<l;u++)if(s[u])try{s[u].apply(null,c)}catch(t){e(t)}else s.splice(u,1),u--,l--;if(!(o=i.$$listenerCount[t]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var A=new d,E=A.$$asyncQueue=[],_=A.$$postDigestQueue=[],k=A.$$applyAsyncQueue=[],T=0;return A}]}function An(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return $(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return $(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return i=jn(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function En(t){if("self"===t)return t;if(w(t)){if(t.indexOf("***")>-1)throw xo("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=Jr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(A(t))return new RegExp("^"+t.source+"$");throw xo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function _n(t){var e=[];return $(t)&&r(t,function(t){e.push(En(t))}),e}function kn(){this.SCE_CONTEXTS=Co;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=_n(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=_n(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?In(e):!!t.exec(e.href)}function i(n){var i,o,a=jn(n.toString()),s=!1;for(i=0,o=t.length;i<o;i++)if(r(t[i],a)){s=!0;break}if(s)for(i=0,o=e.length;i<o;i++)if(r(e[i],a)){s=!1;break}return s}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}function a(t,e){var n=f.hasOwnProperty(t)?f[t]:null;if(!n)throw xo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||g(e)||""===e)return e;if("string"!=typeof e)throw xo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)}function s(t){return t instanceof c?t.$$unwrapTrustedValue():t}function u(t,e){if(null===e||g(e)||""===e)return e;var n=f.hasOwnProperty(t)?f[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===Co.RESOURCE_URL){if(i(e))return e;throw xo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",e.toString())}if(t===Co.HTML)return l(e);throw xo("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(t){throw xo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var c=o(),f={};return f[Co.HTML]=o(c),f[Co.CSS]=o(c),f[Co.URL]=o(c),f[Co.JS]=o(c),f[Co.RESOURCE_URL]=o(f[Co.URL]),{trustAs:a,getTrusted:u,valueOf:s}}]}function Tn(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&Rr<8)throw xo("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 i=mt(Co);i.isEnabled=function(){return t},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=d),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:e(n,function(e){return i.getTrusted(t,e)})};var o=i.parseAs,a=i.getTrusted,s=i.trustAs;return r(Co,function(t,e){var n=Pr(e);i[wt("parse_as_"+n)]=function(e){return o(t,e)},i[wt("get_trusted_"+n)]=function(e){return a(t,e)},i[wt("trust_as_"+n)]=function(e){return s(t,e)}}),i}]}function On(){this.$get=["$window","$document",function(t,e){var n,r,i={},o=t.chrome&&t.chrome.app&&t.chrome.app.runtime,a=!o&&t.history&&t.history.pushState,s=f((/android (\d+)/.exec(Pr((t.navigator||{}).userAgent))||[])[1]),u=/Boxee/i.test((t.navigator||{}).userAgent),l=e[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,h=l.body&&l.body.style,p=!1,d=!1;if(h){for(var v in h)if(r=c.exec(v)){n=r[0],n=n[0].toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in h&&"webkit"),p=!!("transition"in h||n+"Transition"in h),d=!!("animation"in h||n+"Animation"in h),!s||p&&d||(p=w(h.webkitTransition),d=w(h.webkitAnimation))}return{history:!(!a||s<4||u),hasEvent:function(t){if("input"===t&&Rr<=11)return!1;if(g(i[t])){var e=l.createElement("div");i[t]="on"+t in e}return i[t]},csp:Qr(),vendorPrefix:n,transitions:p,animations:d,android:s}}]}function Dn(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$templateCache","$http","$q","$sce",function(e,n,r,i){function o(a,s){function u(t){if(!s)throw So("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText);return r.reject(t)}o.totalPendingRequests++,w(a)&&!g(e.get(a))||(a=i.getTrustedResourceUrl(a));var c=n.defaults&&n.defaults.transformResponse;return Kr(c)?c=c.filter(function(t){return t!==Ee}):c===Ee&&(c=null),n.get(a,l({cache:e,transformResponse:c},t)).finally(function(){o.totalPendingRequests--}).then(function(t){return e.put(a,t.data),t.data},u)}return o.totalPendingRequests=0,o}]}function Mn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var i={};return i.findBindings=function(t,e,n){var i=t.getElementsByClassName("ng-binding"),o=[];return r(i,function(t){var i=Yr.element(t).data("$binding");i&&r(i,function(r){if(n){var i=new RegExp("(^|\\s)"+Jr(e)+"(\\s|\\||$)");i.test(r)&&o.push(t)}else r.indexOf(e)!=-1&&o.push(t)})}),o},i.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+e+'"]',s=t.querySelectorAll(a);if(s.length)return s}},i.getLocation=function(){return n.url()},i.setLocation=function(e){e!==n.url()&&(n.url(e),t.$digest())},i.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)},i}]}function Pn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){function o(o,s,u){S(o)||(u=s,s=o,o=p);var l,c=H(arguments,3),f=$(u)&&!u,h=(f?r:n).defer(),d=h.promise;return l=e.defer(function(){try{h.resolve(o.apply(null,c))}catch(t){h.reject(t),i(t)}finally{delete a[d.$$timeoutId]}f||t.$apply()},s),d.$$timeoutId=l,a[l]=h,d}var a={};return o.cancel=function(t){return!!(t&&t.$$timeoutId in a)&&(a[t.$$timeoutId].reject("canceled"),delete a[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},o}]}function jn(t){var e=t;return Rr&&(Ao.setAttribute("href",e),e=Ao.href),Ao.setAttribute("href",e),{href:Ao.href,protocol:Ao.protocol?Ao.protocol.replace(/:$/,""):"",host:Ao.host,search:Ao.search?Ao.search.replace(/^\?/,""):"",hash:Ao.hash?Ao.hash.replace(/^#/,""):"",hostname:Ao.hostname,port:Ao.port,pathname:"/"===Ao.pathname.charAt(0)?Ao.pathname:"/"+Ao.pathname}}function In(t){var e=w(t)?jn(t):t;return e.protocol===Eo.protocol&&e.host===Eo.host}function Nn(){this.$get=v(t)}function Rn(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},r={},i="";return function(){var t,o,a,s,u,l=n.cookie||"";if(l!==i)for(i=l,t=i.split("; "),r={},a=0;a<t.length;a++)o=t[a],s=o.indexOf("="),s>0&&(u=e(o.substring(0,s)),g(r[u])&&(r[u]=e(o.substring(s+1))));return r}}function qn(){this.$get=Rn}function Vn(t){function e(i,o){if(y(i)){var a={};return r(i,function(t,n){a[n]=e(n,t)}),a}return t.factory(i+n,o)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",zn),e("date",or),e("filter",Fn),e("json",ar),e("limitTo",sr),e("lowercase",Po),e("number",Bn),e("orderBy",lr),e("uppercase",jo)}function Fn(){return function(t,r,i,o){if(!n(t)){if(null==t)return t;throw e("filter")("notarray","Expected array but received: {0}",t)}o=o||"$";var a,s,u=Un(r);switch(u){case"function":a=r;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=Ln(r,i,o,s);break;default:return t}return Array.prototype.filter.call(t,a)}}function Ln(t,e,n,r){var i,o=y(t)&&n in t;return e===!0?e=F:S(e)||(e=function(t,e){return!g(t)&&(null===t||null===e?t===e:!(y(e)||y(t)&&!m(t))&&(t=Pr(""+t),e=Pr(""+e),t.indexOf(e)!==-1))}),i=function(i){return o&&!y(i)?Hn(i,t[n],e,n,!1):Hn(i,t,e,n,r)}}function Hn(t,e,n,r,i,o){var a=Un(t),s=Un(e);if("string"===s&&"!"===e.charAt(0))return!Hn(t,e.substring(1),n,r,i);if(Kr(t))return t.some(function(t){return Hn(t,e,n,r,i)});switch(a){case"object":var u;if(i){for(u in t)if("$"!==u.charAt(0)&&Hn(t[u],e,n,r,!0))return!0;return!o&&Hn(t,e,n,r,!1)}if("object"===s){for(u in e){var l=e[u];if(!S(l)&&!g(l)){var c=u===r,f=c?t:t[u];if(!Hn(f,l,n,r,c,c))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function Un(t){return null===t?"null":typeof t}function zn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return g(n)&&(n=e.CURRENCY_SYM),g(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Gn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Bn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Gn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Wn(t){var e,n,r,i,o,a=0;for((n=t.indexOf(ko))>-1&&(t=t.replace(ko,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)==To;r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)==To;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>_o&&(e=e.splice(0,_o-1),a=n-1,n=1),{d:e,e:a,i:n}}function Yn(t,e,n,r){var i=t.d,o=i.length-t.i;e=g(e)?Math.min(Math.max(n,o),r):+e;var a=e+t.i,s=i[a];if(a>0){i.splice(Math.max(t.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),t.i=1,i.length=Math.max(1,a=e+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[a-1]++;for(;o<Math.max(0,e);o++)i.push(0);var f=i.reduceRight(function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)},0);f&&(i.unshift(f),t.i++)}function Gn(t,e,n,r,i){if(!w(t)&&!x(t)||isNaN(t))return"";var o,a=!isFinite(t),s=!1,u=Math.abs(t)+"",l="";if(a)l="∞";else{o=Wn(u),Yn(o,i,e.minFrac,e.maxFrac);var c=o.d,f=o.i,h=o.e,p=[];for(s=c.reduce(function(t,e){return t&&!e},!0);f<0;)c.unshift(0),f++;f>0?p=c.splice(f,c.length):(p=c,c=[0]);var d=[];for(c.length>=e.lgSize&&d.unshift(c.splice(-e.lgSize,c.length).join(""));c.length>e.gSize;)d.unshift(c.splice(-e.gSize,c.length).join(""));c.length&&d.unshift(c.join("")),l=d.join(n),p.length&&(l+=r+p.join("")),h&&(l+="e+"+h)}return t<0&&!s?e.negPre+l+e.negSuf:e.posPre+l+e.posSuf}function Kn(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,i="-")),t=""+t;t.length<e;)t=To+t;return n&&(t=t.substr(t.length-e)),i+t}function Zn(t,e,n,r,i){return n=n||0,function(o){var a=o["get"+t]();return(n>0||a>-n)&&(a+=n),0===a&&n==-12&&(a=12),Kn(a,e,r,i)}}function Xn(t,e,n){return function(r,i){var o=r["get"+t](),a=(n?"STANDALONE":"")+(e?"SHORT":""),s=jr(a+t);return i[s][o]}}function Jn(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=Kn(Math[r>0?"floor":"ceil"](r/60),2)+Kn(Math.abs(r%60),2)}function Qn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function tr(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function er(t){return function(e){var n=Qn(e.getFullYear()),r=tr(e),i=+r-+n,o=1+Math.round(i/6048e5);return Kn(o,t)}}function nr(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function rr(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function ir(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function or(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,a=e[8]?r.setUTCFullYear:r.setFullYear,s=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=f(e[9]+e[10]),o=f(e[9]+e[11])),a.call(r,f(e[1]),f(e[2])-1,f(e[3]));var u=f(e[4]||0)-i,l=f(e[5]||0)-o,c=f(e[6]||0),h=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(r,u,l,c,h),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,o){var a,s,u="",l=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,w(n)&&(n=Mo.test(n)?f(n):e(n)),x(n)&&(n=new Date(n)),!C(n)||!isFinite(n.getTime()))return n;for(;i;)s=Do.exec(i),s?(l=L(l,s,1),i=l.pop()):(l.push(i),i=null);var c=n.getTimezoneOffset();return o&&(c=Y(o,c),n=K(n,o,!0)),r(l,function(e){a=Oo[e],u+=a?a(n,t.DATETIME_FORMATS,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function ar(){return function(t,e){return g(e)&&(e=2),B(t,e)}}function sr(){return function(t,e,r){return e=Math.abs(Number(e))===1/0?Number(e):f(e),isNaN(e)?t:(x(t)&&(t=t.toString()),n(t)?(r=!r||isNaN(r)?0:f(r),r=r<0?Math.max(0,t.length+r):r,e>=0?ur(t,r,r+e):0===r?ur(t,e,t.length):ur(t,Math.max(0,r+e),r)):t)}}function ur(t,e,n){return w(t)?t.slice(e,n):Lr.call(t,e,n)}function lr(t){function r(e){return e.map(function(e){var n=1,r=d;if(S(e))r=e;else if(w(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(n="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e),r.constant))){var i=r();r=function(t){return t[i]}}return{get:r,descending:n}})}function i(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function o(t){return S(t.valueOf)&&(t=t.valueOf(),i(t))?t:m(t)&&(t=t.toString(),i(t))?t:t}function a(t,e){var n=typeof t;return null===t?(n="string",t="null"):"object"===n&&(t=o(t)),{value:t,type:n,index:e}}function s(t,e){var n=0,r=t.type,i=e.type;if(r===i){var o=t.value,a=e.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(y(o)&&(o=t.index),y(a)&&(a=e.index)),o!==a&&(n=o<a?-1:1)}else n=r<i?-1:1;return n}return function(t,i,o,u){function l(t,e){return{value:t,tieBreaker:{value:e,type:"number",index:e},predicateValues:f.map(function(n){return a(n.get(t),e)})}}function c(t,e){for(var n=0,r=f.length;n<r;n++){var i=p(t.predicateValues[n],e.predicateValues[n]);if(i)return i*f[n].descending*h}return p(t.tieBreaker,e.tieBreaker)*h}if(null==t)return t;if(!n(t))throw e("orderBy")("notarray","Expected array but received: {0}",t);Kr(i)||(i=[i]),0===i.length&&(i=["+"]);var f=r(i),h=o?-1:1,p=S(u)?u:s,d=Array.prototype.map.call(t,l);return d.sort(c),t=d.map(function(t){return t.value})}}function cr(t){return S(t)&&(t={link:t}),t.restrict=t.restrict||"AC",v(t)}function fr(t,e){t.$name=e}function hr(t,e,n,i,o){var a=this,s=[];a.$error={},a.$$success={},a.$pending=void 0,a.$name=o(e.name||e.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=Ro,a.$rollbackViewValue=function(){r(s,function(t){t.$rollbackViewValue()})},a.$commitViewValue=function(){r(s,function(t){t.$commitViewValue()})},a.$addControl=function(t){ft(t.$name,"input"),s.push(t),t.$name&&(a[t.$name]=t),t.$$parentForm=a},a.$$renameControl=function(t,e){var n=t.$name;a[n]===t&&delete a[n],a[e]=t,t.$name=e},a.$removeControl=function(t){t.$name&&a[t.$name]===t&&delete a[t.$name],r(a.$pending,function(e,n){a.$setValidity(n,null,t)}),r(a.$error,function(e,n){a.$setValidity(n,null,t)}),r(a.$$success,function(e,n){a.$setValidity(n,null,t)}),q(s,t),t.$$parentForm=Ro},_r({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];if(r){var i=r.indexOf(n);i===-1&&r.push(n)}else t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(q(r,n),0===r.length&&delete t[e])},$animate:i}),a.$setDirty=function(){i.removeClass(t,wa),i.addClass(t,xa),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(t,wa,xa+" "+qo),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,r(s,function(t){t.$setPristine()})},a.$setUntouched=function(){r(s,function(t){t.$setUntouched()})},a.$setSubmitted=function(){i.addClass(t,qo),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function pr(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function dr(t,e,n,r,i,o){vr(t,e,n,r,i,o),pr(r)}function vr(t,e,n,r,i,o){var a=Pr(e[0].type);if(!i.android){var s=!1;e.on("compositionstart",function(){s=!0}),e.on("compositionend",function(){s=!1,l()})}var u,l=function(t){if(u&&(o.defer.cancel(u),u=null),!s){var i=e.val(),l=t&&t.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Xr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))e.on("input",l);else{var c=function(t,e,n){u||(u=o.defer(function(){u=null,e&&e.value===n||l(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||c(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",c)}e.on("change",l),Jo[a]&&r.$$hasNativeValidators&&a===n.type&&e.on(Xo,function(t){if(!u){var e=this[Dr],n=e.badInput,r=e.typeMismatch;u=o.defer(function(){u=null,e.badInput===n&&e.typeMismatch===r||l(t)})}}),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function mr(t,e){if(C(t))return t;if(w(t)){Go.lastIndex=0;var n=Go.exec(t);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=Qn(r),c=7*(i-1);return e&&(o=e.getHours(),a=e.getMinutes(),s=e.getSeconds(),u=e.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}function gr(t,e){return function(n,i){var o,a;if(C(n))return n;if(w(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Ho.test(n))return new Date(n);if(t.lastIndex=0,o=t.exec(n))return o.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(o,function(t,n){n<e.length&&(a[e[n]]=+t)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function $r(t,e,n,r){return function(i,o,a,s,u,l,c){function f(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function h(t){return $(t)&&!C(t)?n(t)||void 0:t}yr(i,o,a,s),vr(i,o,a,s,u,l);var p,d=s&&s.$options&&s.$options.timezone;if(s.$$parserName=t,s.$parsers.push(function(t){if(s.$isEmpty(t))return null;if(e.test(t)){var r=n(t,p);return d&&(r=K(r,d)),r}}),s.$formatters.push(function(t){if(t&&!C(t))throw ka("datefmt","Expected `{0}` to be a date",t);return f(t)?(p=t,p&&d&&(p=K(p,d,!0)),c("date")(t,r,d)):(p=null,"")}),$(a.min)||a.ngMin){var v;s.$validators.min=function(t){return!f(t)||g(v)||n(t)>=v},a.$observe("min",function(t){
v=h(t),s.$validate()})}if($(a.max)||a.ngMax){var m;s.$validators.max=function(t){return!f(t)||g(m)||n(t)<=m},a.$observe("max",function(t){m=h(t),s.$validate()})}}}function yr(t,e,n,r){var i=e[0],o=r.$$hasNativeValidators=y(i.validity);o&&r.$parsers.push(function(t){var n=e.prop(Dr)||{};return n.badInput||n.typeMismatch?void 0:t})}function br(t,e,n,r,i,o){if(yr(t,e,n,r),vr(t,e,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(t){return r.$isEmpty(t)?null:Bo.test(t)?parseFloat(t):void 0}),r.$formatters.push(function(t){if(!r.$isEmpty(t)){if(!x(t))throw ka("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),$(n.min)||n.ngMin){var a;r.$validators.min=function(t){return r.$isEmpty(t)||g(a)||t>=a},n.$observe("min",function(t){$(t)&&!x(t)&&(t=parseFloat(t)),a=x(t)&&!isNaN(t)?t:void 0,r.$validate()})}if($(n.max)||n.ngMax){var s;r.$validators.max=function(t){return r.$isEmpty(t)||g(s)||t<=s},n.$observe("max",function(t){$(t)&&!x(t)&&(t=parseFloat(t)),s=x(t)&&!isNaN(t)?t:void 0,r.$validate()})}}function wr(t,e,n,r,i,o){vr(t,e,n,r,i,o),pr(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Uo.test(n)}}function xr(t,e,n,r,i,o){vr(t,e,n,r,i,o),pr(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||zo.test(n)}}function Cr(t,e,n,r){g(n.name)&&e.attr("name",a());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function Sr(t,e,n,r,i){var o;if($(r)){if(o=t(r),!o.constant)throw ka("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}function Ar(t,e,n,r,i,o,a,s){var u=Sr(s,t,"ngTrueValue",n.ngTrueValue,!0),l=Sr(s,t,"ngFalseValue",n.ngFalseValue,!1),c=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",c),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return t===!1},r.$formatters.push(function(t){return F(t,u)}),r.$parsers.push(function(t){return t?u:l})}function Er(t,e){return t="ngClass"+t,["$animate",function(n){function i(t,e){var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i==e[o])continue t;n.push(i)}return n}function o(t){var e=[];return Kr(t)?(r(t,function(t){e=e.concat(o(t))}),e):w(t)?t.split(" "):y(t)?(r(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e):t}return{restrict:"AC",link:function(a,s,u){function l(t){var e=f(t,1);u.$addClass(e)}function c(t){var e=f(t,-1);u.$removeClass(e)}function f(t,e){var n=s.data("$classCounts")||dt(),i=[];return r(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&i.push(t))}),s.data("$classCounts",n),i.join(" ")}function h(t,e){var r=i(e,t),o=i(t,e);r=f(r,1),o=f(o,-1),r&&r.length&&n.addClass(s,r),o&&o.length&&n.removeClass(s,o)}function p(t){if(e===!0||(1&a.$index)===e){var n=o(t||[]);if(d){if(!F(t,d)){var r=o(d);h(r,n)}}else l(n)}d=Kr(t)?t.map(function(t){return mt(t)}):mt(t)}var d;a.$watch(u[t],p,!0),u.$observe("class",function(e){p(a.$eval(u[t]))}),"ngClass"!==t&&a.$watch("$index",function(n,r){var i=1&n;if(i!==(1&r)){var s=o(a.$eval(u[t]));i===e?l(s):c(s)}})}}}]}function _r(t){function e(t,e,s){g(e)?n("$pending",t,s):r("$pending",t,s),D(e)?e?(c(a.$error,t,s),l(a.$$success,t,s)):(l(a.$error,t,s),c(a.$$success,t,s)):(c(a.$error,t,s),c(a.$$success,t,s)),a.$pending?(i(Aa,!0),a.$valid=a.$invalid=void 0,o("",null)):(i(Aa,!1),a.$valid=kr(a.$error),a.$invalid=!a.$valid,o("",a.$valid));var u;u=a.$pending&&a.$pending[t]?void 0:!a.$error[t]&&(!!a.$$success[t]||null),o(t,u),a.$$parentForm.$setValidity(t,u,a)}function n(t,e,n){a[t]||(a[t]={}),l(a[t],e,n)}function r(t,e,n){a[t]&&c(a[t],e,n),kr(a[t])&&(a[t]=void 0)}function i(t,e){e&&!u[t]?(f.addClass(s,t),u[t]=!0):!e&&u[t]&&(f.removeClass(s,t),u[t]=!1)}function o(t,e){t=t?"-"+st(t,"-"):"",i(ya+t,e===!0),i(ba+t,e===!1)}var a=t.ctrl,s=t.$element,u={},l=t.set,c=t.unset,f=t.$animate;u[ba]=!(u[ya]=s.hasClass(ya)),a.$setValidity=e}function kr(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function Tr(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}var Or=/^\/(.+)\/([a-z]*)$/,Dr="validity",Mr=Object.prototype.hasOwnProperty,Pr=function(t){return w(t)?t.toLowerCase():t},jr=function(t){return w(t)?t.toUpperCase():t},Ir=function(t){return w(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Nr=function(t){return w(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)&-33)}):t};"i"!=="I".toLowerCase()&&(Pr=Ir,jr=Nr);var Rr,qr,Vr,Fr,Lr=[].slice,Hr=[].splice,Ur=[].push,zr=Object.prototype.toString,Br=Object.getPrototypeOf,Wr=e("ng"),Yr=t.angular||(t.angular={}),Gr=0;Rr=t.document.documentMode,p.$inject=[],d.$inject=[];var Kr=Array.isArray,Zr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Xr=function(t){return w(t)?t.trim():t},Jr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Qr=function(){function e(){try{return new Function(""),!1}catch(t){return!0}}if(!$(Qr.rules)){var n=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Qr.rules={noUnsafeEval:!r||r.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!r||r.indexOf("no-inline-style")!==-1}}else Qr.rules={noUnsafeEval:e(),noInlineStyle:!1}}return Qr.rules},ti=function(){if($(ti.name_))return ti.name_;var e,n,r,i,o=ni.length;for(n=0;n<o;++n)if(r=ni[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return ti.name_=i},ei=/:/g,ni=["ng-","data-ng-","ng:","x-ng-"],ri=/[A-Z]/g,ii=!1,oi=1,ai=2,si=3,ui=8,li=9,ci=11,fi={full:"1.5.8",major:1,minor:5,dot:8,codeName:"arbitrary-fallbacks"};Tt.expando="ng339";var hi=Tt.cache={},pi=1,di=function(t,e,n){t.addEventListener(e,n,!1)},vi=function(t,e,n){t.removeEventListener(e,n,!1)};Tt._data=function(t){return this.cache[t[this.expando]]||{}};var mi=/([\:\-\_]+(.))/g,gi=/^moz([A-Z])/,$i={mouseleave:"mouseout",mouseenter:"mouseover"},yi=e("jqLite"),bi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,wi=/<|&#?\w+;/,xi=/<([\w:-]+)/,Ci=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Si={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,"",""]};Si.optgroup=Si.option,Si.tbody=Si.tfoot=Si.colgroup=Si.caption=Si.thead,Si.th=Si.td;var Ai=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},Ei=Tt.prototype={ready:function(e){function n(){r||(r=!0,e())}var r=!1;"complete"===t.document.readyState?t.setTimeout(n):(this.on("DOMContentLoaded",n),Tt(t).on("load",n))},toString:function(){var t=[];return r(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return qr(t>=0?this[t]:this[this.length+t])},length:0,push:Ur,sort:[].sort,splice:[].splice},_i={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){_i[Pr(t)]=t});var ki={};r("input,select,option,textarea,button,form,details".split(","),function(t){ki[t]=!0});var Ti={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:It,removeData:Pt,hasData:St,cleanData:At},function(t,e){Tt[e]=t}),r({data:It,inheritedData:Lt,scope:function(t){return qr.data(t,"$scope")||Lt(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return qr.data(t,"$isolateScope")||qr.data(t,"$isolateScopeNoTemplate")},controller:Ft,injector:function(t){return Lt(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Nt,css:function(t,e,n){return e=wt(e),$(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,n){var r=t.nodeType;if(r!==si&&r!==ai&&r!==ui){var i=Pr(e);if(_i[i]){if(!$(n))return t[e]||(t.attributes.getNamedItem(e)||p).specified?i:void 0;n?(t[e]=!0,t.setAttribute(e,i)):(t[e]=!1,t.removeAttribute(i))}else if($(n))t.setAttribute(e,n);else if(t.getAttribute){var o=t.getAttribute(e,2);return null===o?void 0:o}}},prop:function(t,e,n){return $(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(g(e)){var n=t.nodeType;return n===oi||n===si?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(g(e)){if(t.multiple&&"select"===R(t)){var n=[];return r(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return g(e)?t.innerHTML:(Dt(t,!0),void(t.innerHTML=e))},empty:Ht},function(t,e){Tt.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Ht&&g(2==t.length&&t!==Nt&&t!==Ft?e:n)){if(y(e)){for(r=0;r<o;r++)if(t===It)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var a=t.$dv,s=g(a)?Math.min(o,1):o,u=0;u<s;u++){var l=t(this[u],e,n);a=a?a+l:l}return a}for(r=0;r<o;r++)t(this[r],e,n);return this}}),r({removeData:Pt,on:function(t,e,n,r){if($(r))throw yi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Ct(t)){var i=jt(t,!0),o=i.events,a=i.handle;a||(a=i.handle=Yt(t,o));for(var s=e.indexOf(" ")>=0?e.split(" "):[e],u=s.length,l=function(e,r,i){var s=o[e];s||(s=o[e]=[],s.specialHandlerWrapper=r,"$destroy"===e||i||di(t,e,a)),s.push(n)};u--;)e=s[u],$i[e]?(l($i[e],Kt),l(e,void 0,!0)):l(e)}},off:Mt,one:function(t,e,n){t=qr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;Dt(t),r(new Tt(e),function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e})},children:function(t){var e=[];return r(t.childNodes,function(t){t.nodeType===oi&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===oi||n===ci){e=new Tt(e);for(var r=0,i=e.length;r<i;r++){var o=e[r];t.appendChild(o)}}},prepend:function(t,e){if(t.nodeType===oi){var n=t.firstChild;r(new Tt(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){kt(t,qr(e).eq(0).clone()[0])},remove:Ut,detach:function(t){Ut(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new Tt(e);for(var i=0,o=e.length;i<o;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:qt,removeClass:Rt,toggleClass:function(t,e,n){e&&r(e.split(" "),function(e){var r=n;g(r)&&(r=!Nt(t,e)),(r?qt:Rt)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==ci?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:Ot,triggerHandler:function(t,e,n){var i,o,a,s=e.type||e,u=jt(t),c=u&&u.events,f=c&&c[s];f&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:p,type:s,target:t},e.type&&(i=l(i,e)),o=mt(f),a=n?[i].concat(n):[i],r(o,function(e){i.isImmediatePropagationStopped()||e.apply(t,a)}))}},function(t,e){Tt.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;o<a;o++)g(i)?(i=t(this[o],e,n,r),$(i)&&(i=qr(i))):Vt(i,t(this[o],e,n,r));return $(i)?i:this},Tt.prototype.bind=Tt.prototype.on,Tt.prototype.unbind=Tt.prototype.off}),Jt.prototype={put:function(t,e){this[Xt(t,this.nextUid)]=e},get:function(t){return this[Xt(t,this.nextUid)]},remove:function(t){var e=this[t=Xt(t,this.nextUid)];return delete this[t],e}};var Oi=[function(){this.$get=[function(){return Jt}]}],Di=/^([^\(]+?)=>/,Mi=/^[^\(]*\(\s*([^\)]*)\)/m,Pi=/,/,ji=/^\s*(_?)(\S+?)\1\s*$/,Ii=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ni=e("$injector");re.$$annotate=ne;var Ri=e("$animate"),qi=1,Vi="ng-animate",Fi=function(){this.$get=p},Li=function(){var t=new Jt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(t,e,n){var i=!1;return e&&(e=w(e)?e.split(" "):Kr(e)?e:[],r(e,function(e){e&&(i=!0,t[e]=n)})),i}function a(){r(e,function(e){var n=t.get(e);if(n){var i=se(e.attr("class")),o="",a="";r(n,function(t,e){var n=!!i[e];t!==n&&(t?o+=(o.length?" ":"")+e:a+=(a.length?" ":"")+e)}),r(e,function(t){o&&qt(t,o),a&&Rt(t,a)}),t.remove(e)}}),e.length=0}function s(n,r,s){var u=t.get(n)||{},l=o(u,r,!0),c=o(u,s,!1);(l||c)&&(t.put(n,u),e.push(n),1===e.length&&i.$$postDigest(a))}return{enabled:p,on:p,off:p,pin:p,push:function(t,e,r,i){i&&i(),r=r||{},r.from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&s(t,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Hi=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Ri("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null,this.$$classNameFilter)){var e=new RegExp("(\\s+|\\/)"+Vi+"(\\s+|\\/)");if(e.test(this.$$classNameFilter.toString()))throw Ri("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Vi)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=ae(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,r,i,o){return r=r&&qr(r),i=i&&qr(i),r=r||i.parent(),e(n,r,i),t.push(n,"enter",ue(o))},move:function(n,r,i,o){return r=r&&qr(r),i=i&&qr(i),r=r||i.parent(),e(n,r,i),t.push(n,"move",ue(o))},leave:function(e,n){return t.push(e,"leave",ue(n),function(){e.remove()})},addClass:function(e,n,r){return r=ue(r),r.addClass=oe(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return r=ue(r),r.removeClass=oe(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return i=ue(i),i.addClass=oe(i.addClass,n),i.removeClass=oe(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return o=ue(o),o.from=o.from?l(o.from,n):n,o.to=o.to?l(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=oe(o.tempClasses,i),t.push(e,"animate",o)}}}]}],Ui=function(){this.$get=["$$rAF",function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}var n=[];return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]},zi=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(t,e,n,i,o){function a(t){this.setHost(t);var e=n(),r=function(t){o(t,0,!1)};this._doneCallbacks=[],this._tick=function(t){var n=i[0];n&&n.hidden?r(t):e(t)},this._state=0}var s=0,u=1,l=2;return a.chain=function(t,e){function n(){return r===t.length?void e(!0):void t[r](function(t){return t===!1?void e(!1):(r++,void n())})}var r=0;n()},a.all=function(t,e){function n(n){o=o&&n,++i===t.length&&e(o)}var i=0,o=!0;r(t,function(t){t.done(n)})},a.prototype={setHost:function(t){this.host=t||{}},done:function(t){this._state===l?t():this._doneCallbacks.push(t)},progress:p,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){e===!1?n():t()})})}return 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;e._state===s&&(e._state=u,e._tick(function(){e._resolve(t)}))},_resolve:function(t){this._state!==l&&(r(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=l)}},a}]},Bi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){function i(){return t(function(){o(),s||u.complete(),s=!0}),u}function o(){a.addClass&&(e.addClass(a.addClass),a.addClass=null),a.removeClass&&(e.removeClass(a.removeClass),a.removeClass=null),a.to&&(e.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=V(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(e.css(a.from),a.from=null);var s,u=new n;return{start:i,end:i}}}]},Wi=e("$compile"),Yi=new pe;de.$inject=["$provide","$$sanitizeUriProvider"],ve.prototype.isFirstChange=function(){return this.previousValue===Yi};var Gi=/^((?:x|data)[\:\-_])/i,Ki=e("$controller"),Zi=/^(\S+)(\s+as\s+([\w$]+))?$/,Xi=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof qr&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Ji="application/json",Qi={"Content-Type":Ji+";charset=utf-8"},to=/^\[|^\{(?!\{)/,eo={"[":/]$/,"{":/}$/},no=/^\)\]\}',?\n/,ro=e("$http"),io=function(t){return function(){throw ro("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}},oo=Yr.$interpolateMinErr=e("$interpolate");oo.throwNoconcat=function(t){throw oo("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)},oo.interr=function(t,e){return oo("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var ao=function(){this.$get=["$window",function(t){function e(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}var n=t.angular.callbacks,r={};return{createCallback:function(t){var i="_"+(n.$$counter++).toString(36),o="angular.callbacks."+i,a=e(i);return r[o]=n[i]=a,o},wasCalled:function(t){return r[t].called},getResponse:function(t){return r[t].data},removeCallback:function(t){var e=r[t];delete n[e.id],delete r[t]}}}]},so=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,uo={http:80,https:443,ftp:21},lo=e("$location"),co={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Ze("$$absUrl"),url:function(t){if(g(t))return this.$$url;var e=so.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Ze("$$protocol"),host:Ze("$$host"),port:Ze("$$port"),path:Xe("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(w(t)||x(t))t=t.toString(),this.$$search=J(t);else{if(!y(t))throw lo("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=V(t,{}),r(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:g(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Xe("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};r([Ke,Ge,Ye],function(t){t.prototype=Object.create(co),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Ye||!this.$$html5)throw lo("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=g(e)?null:e,this}});var fo=e("$parse"),ho=Function.prototype.call,po=Function.prototype.apply,vo=Function.prototype.bind,mo=dt();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){mo[t]=!0});var go={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},$o=function(t){this.options=t};$o.prototype={constructor:$o,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=mo[e],o=mo[n],a=mo[r];if(i||o||a){var s=a?r:o?n:e;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return e.indexOf(t)!==-1},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},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=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=$(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw fo("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=Pr(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"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){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var s=go[o];n+=s||o}i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var yo=function(t,e){this.lexer=t,this.options=e};yo.Program="Program",yo.ExpressionStatement="ExpressionStatement",yo.AssignmentExpression="AssignmentExpression",yo.ConditionalExpression="ConditionalExpression",yo.LogicalExpression="LogicalExpression",yo.BinaryExpression="BinaryExpression",yo.UnaryExpression="UnaryExpression",yo.CallExpression="CallExpression",yo.MemberExpression="MemberExpression",yo.Identifier="Identifier",yo.Literal="Literal",yo.ArrayExpression="ArrayExpression",yo.Property="Property",yo.ObjectExpression="ObjectExpression",yo.ThisExpression="ThisExpression",yo.LocalsExpression="LocalsExpression",yo.NGValueParameter="NGValueParameter",yo.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:yo.Program,body:t}},expressionStatement:function(){return{type:yo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t,e=this.expression();t=this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:yo.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:yo.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:yo.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:yo.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:yo.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:yo.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=V(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:yo.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());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:yo.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:yo.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:yo.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:yo.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do t.push(this.filterChain());while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:yo.Identifier,name:t.text}},constant:function(){return{type:yo.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:yo.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:yo.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)}while(this.expect(","));return this.consume("}"),{type:yo.ObjectExpression,properties:e}},throwError:function(t,e){throw fo("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 fo("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 fo("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],a=o.text;if(a===e||a===n||a===r||a===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:yo.ThisExpression},$locals:{type:yo.LocalsExpression}}},vn.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},ln(i,n.$filter);var o,a="";if(this.stage="assign",o=hn(i)){this.state.computing="assign";var s=this.nextId();this.recurse(o,s),this.return_(s),a="fn.assign="+this.generateFunction("assign","s,v,l")}var u=cn(i.body);n.stage="inputs",r(u,function(t,e){var r="fn"+e;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(t,i),n.return_(i),n.state.inputs.push(r),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",c=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,tn,nn,rn,en,on,an,sn,t);return this.state=this.stage=void 0,c.literal=pn(i),c.constant=dn(i),c},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return r(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return r(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.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(t,e,n,i,o,a){var s,u,l,c,f,h=this;if(i=i||p,!a&&$(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,i,o,!0));switch(t.type){case yo.Program:r(t.body,function(e,n){h.recurse(e.expression,void 0,void 0,function(t){u=t}),n!==t.body.length-1?h.current().body.push(u,";"):h.return_(u)});break;case yo.Literal:c=this.escape(t.value),this.assign(e,c),i(c);break;case yo.UnaryExpression:this.recurse(t.argument,void 0,void 0,function(t){u=t}),c=t.operator+"("+this.ifDefined(u,0)+")",this.assign(e,c),i(c);break;case yo.BinaryExpression:this.recurse(t.left,void 0,void 0,function(t){s=t}),this.recurse(t.right,void 0,void 0,function(t){u=t}),c="+"===t.operator?this.plus(s,u):"-"===t.operator?this.ifDefined(s,0)+t.operator+this.ifDefined(u,0):"("+s+")"+t.operator+"("+u+")",this.assign(e,c),i(c);break;case yo.LogicalExpression:e=e||this.nextId(),h.recurse(t.left,e),h.if_("&&"===t.operator?e:h.not(e),h.lazyRecurse(t.right,e)),i(e);break;case yo.ConditionalExpression:e=e||this.nextId(),h.recurse(t.test,e),h.if_(e,h.lazyRecurse(t.alternate,e),h.lazyRecurse(t.consequent,e)),i(e);break;case yo.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),tn(t.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",t.name)),function(){
h.if_("inputs"===h.stage||"s",function(){o&&1!==o&&h.if_(h.not(h.nonComputedMember("s",t.name)),h.lazyAssign(h.nonComputedMember("s",t.name),"{}")),h.assign(e,h.nonComputedMember("s",t.name))})},e&&h.lazyAssign(e,h.nonComputedMember("l",t.name))),(h.state.expensiveChecks||gn(t.name))&&h.addEnsureSafeObject(e),i(e);break;case yo.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(t.object,s,void 0,function(){h.if_(h.notNull(s),function(){o&&1!==o&&h.addEnsureSafeAssignContext(s),t.computed?(u=h.nextId(),h.recurse(t.property,u),h.getStringValue(u),h.addEnsureSafeMemberName(u),o&&1!==o&&h.if_(h.not(h.computedMember(s,u)),h.lazyAssign(h.computedMember(s,u),"{}")),c=h.ensureSafeObject(h.computedMember(s,u)),h.assign(e,c),n&&(n.computed=!0,n.name=u)):(tn(t.property.name),o&&1!==o&&h.if_(h.not(h.nonComputedMember(s,t.property.name)),h.lazyAssign(h.nonComputedMember(s,t.property.name),"{}")),c=h.nonComputedMember(s,t.property.name),(h.state.expensiveChecks||gn(t.property.name))&&(c=h.ensureSafeObject(c)),h.assign(e,c),n&&(n.computed=!1,n.name=t.property.name))},function(){h.assign(e,"undefined")}),i(e)},!!o);break;case yo.CallExpression:e=e||this.nextId(),t.filter?(u=h.filter(t.callee.name),l=[],r(t.arguments,function(t){var e=h.nextId();h.recurse(t,e),l.push(e)}),c=u+"("+l.join(",")+")",h.assign(e,c),i(e)):(u=h.nextId(),s={},l=[],h.recurse(t.callee,u,s,function(){h.if_(h.notNull(u),function(){h.addEnsureSafeFunction(u),r(t.arguments,function(t){h.recurse(t,h.nextId(),void 0,function(t){l.push(h.ensureSafeObject(t))})}),s.name?(h.state.expensiveChecks||h.addEnsureSafeObject(s.context),c=h.member(s.context,s.name,s.computed)+"("+l.join(",")+")"):c=u+"("+l.join(",")+")",c=h.ensureSafeObject(c),h.assign(e,c)},function(){h.assign(e,"undefined")}),i(e)}));break;case yo.AssignmentExpression:if(u=this.nextId(),s={},!fn(t.left))throw fo("lval","Trying to assign a value to a non l-value");this.recurse(t.left,void 0,s,function(){h.if_(h.notNull(s.context),function(){h.recurse(t.right,u),h.addEnsureSafeObject(h.member(s.context,s.name,s.computed)),h.addEnsureSafeAssignContext(s.context),c=h.member(s.context,s.name,s.computed)+t.operator+u,h.assign(e,c),i(e||c)})},1);break;case yo.ArrayExpression:l=[],r(t.elements,function(t){h.recurse(t,h.nextId(),void 0,function(t){l.push(t)})}),c="["+l.join(",")+"]",this.assign(e,c),i(c);break;case yo.ObjectExpression:l=[],f=!1,r(t.properties,function(t){t.computed&&(f=!0)}),f?(e=e||this.nextId(),this.assign(e,"{}"),r(t.properties,function(t){t.computed?(s=h.nextId(),h.recurse(t.key,s)):s=t.key.type===yo.Identifier?t.key.name:""+t.key.value,u=h.nextId(),h.recurse(t.value,u),h.assign(h.member(e,s,t.computed),u)})):(r(t.properties,function(e){h.recurse(e.value,t.constant?void 0:h.nextId(),void 0,function(t){l.push(h.escape(e.key.type===yo.Identifier?e.key.name:""+e.key.value)+":"+t)})}),c="{"+l.join(",")+"}",this.assign(e,c)),i(e||c);break;case yo.ThisExpression:this.assign(e,"s"),i("s");break;case yo.LocalsExpression:this.assign(e,"l"),i("l");break;case yo.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[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){if(t===!0)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){var n=/[$_a-zA-Z][$_a-zA-Z0-9]*/,r=/[^$_a-zA-Z0-9]/g;return n.test(e)?t+"."+e:t+'["'+e.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var a=this;return function(){a.recurse(t,e,n,r,i,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(w(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(t))return t.toString();if(t===!0)return"true";if(t===!1)return"false";if(null===t)return"null";if("undefined"==typeof t)return"undefined";throw fo("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]}},mn.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,ln(i,n.$filter);var o,a;(o=hn(i))&&(a=this.recurse(o));var s,u=cn(i.body);u&&(s=[],r(u,function(t,e){var r=n.recurse(t);t.input=r,s.push(r),t.watchId=e}));var l=[];r(i.body,function(t){l.push(n.recurse(t.expression))});var c=0===i.body.length?p:1===i.body.length?l[0]:function(t,e){var n;return r(l,function(r){n=r(t,e)}),n};return a&&(c.assign=function(t,e,n){return a(t,n,e)}),s&&(c.inputs=s),c.literal=pn(i),c.constant=dn(i),c},recurse:function(t,e,n){var i,o,a,s=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case yo.Literal:return this.value(t.value,e);case yo.UnaryExpression:return o=this.recurse(t.argument),this["unary"+t.operator](o,e);case yo.BinaryExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case yo.LogicalExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case yo.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case yo.Identifier:return tn(t.name,s.expression),s.identifier(t.name,s.expensiveChecks||gn(t.name),e,n,s.expression);case yo.MemberExpression:return i=this.recurse(t.object,!1,!!n),t.computed||(tn(t.property.name,s.expression),o=t.property.name),t.computed&&(o=this.recurse(t.property)),t.computed?this.computedMember(i,o,e,n,s.expression):this.nonComputedMember(i,o,s.expensiveChecks,e,n,s.expression);case yo.CallExpression:return a=[],r(t.arguments,function(t){a.push(s.recurse(t))}),t.filter&&(o=this.$filter(t.callee.name)),t.filter||(o=this.recurse(t.callee,!0)),t.filter?function(t,n,r,i){for(var s=[],u=0;u<a.length;++u)s.push(a[u](t,n,r,i));var l=o.apply(void 0,s,i);return e?{context:void 0,name:void 0,value:l}:l}:function(t,n,r,i){var u,l=o(t,n,r,i);if(null!=l.value){nn(l.context,s.expression),rn(l.value,s.expression);for(var c=[],f=0;f<a.length;++f)c.push(nn(a[f](t,n,r,i),s.expression));u=nn(l.value.apply(l.context,c),s.expression)}return e?{value:u}:u};case yo.AssignmentExpression:return i=this.recurse(t.left,!0,1),o=this.recurse(t.right),function(t,n,r,a){var u=i(t,n,r,a),l=o(t,n,r,a);return nn(u.value,s.expression),on(u.context),u.context[u.name]=l,e?{value:l}:l};case yo.ArrayExpression:return a=[],r(t.elements,function(t){a.push(s.recurse(t))}),function(t,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](t,n,r,i));return e?{value:o}:o};case yo.ObjectExpression:return a=[],r(t.properties,function(t){t.computed?a.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):a.push({key:t.key.type===yo.Identifier?t.key.name:""+t.key.value,computed:!1,value:s.recurse(t.value)})}),function(t,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(t,n,r,i)]=a[s].value(t,n,r,i):o[a[s].key]=a[s].value(t,n,r,i);return e?{value:o}:o};case yo.ThisExpression:return function(t){return e?{value:t}:t};case yo.LocalsExpression:return function(t,n){return e?{value:n}:n};case yo.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=$(a)?+a:0,e?{value:a}:a}},"unary-":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=$(a)?-a:0,e?{value:a}:a}},"unary!":function(t,e){return function(n,r,i,o){var a=!t(n,r,i,o);return e?{value:a}:a}},"binary+":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),u=e(r,i,o,a),l=sn(s,u);return n?{value:l}:l}},"binary-":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),u=e(r,i,o,a),l=($(s)?s:0)-($(u)?u:0);return n?{value:l}:l}},"binary*":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)*e(r,i,o,a);return n?{value:s}:s}},"binary/":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)/e(r,i,o,a);return n?{value:s}:s}},"binary%":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)%e(r,i,o,a);return n?{value:s}:s}},"binary===":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)===e(r,i,o,a);return n?{value:s}:s}},"binary!==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!==e(r,i,o,a);return n?{value:s}:s}},"binary==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)==e(r,i,o,a);return n?{value:s}:s}},"binary!=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!=e(r,i,o,a);return n?{value:s}:s}},"binary<":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<e(r,i,o,a);return n?{value:s}:s}},"binary>":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>e(r,i,o,a);return n?{value:s}:s}},"binary<=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<=e(r,i,o,a);return n?{value:s}:s}},"binary>=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>=e(r,i,o,a);return n?{value:s}:s}},"binary&&":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)&&e(r,i,o,a);return n?{value:s}:s}},"binary||":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)||e(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(t,e,n,r){return function(i,o,a,s){var u=t(i,o,a,s)?e(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n,r,i){return function(o,a,s,u){var l=a&&t in a?a:o;r&&1!==r&&l&&!l[t]&&(l[t]={});var c=l?l[t]:void 0;return e&&nn(c,i),n?{context:l,name:t,value:c}:c}},computedMember:function(t,e,n,r,i){return function(o,a,s,u){var l,c,f=t(o,a,s,u);return null!=f&&(l=e(o,a,s,u),l=en(l),tn(l,i),r&&1!==r&&(on(f),f&&!f[l]&&(f[l]={})),c=f[l],nn(c,i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(t,e,n,r,i,o){return function(a,s,u,l){var c=t(a,s,u,l);i&&1!==i&&(on(c),c&&!c[e]&&(c[e]={}));var f=null!=c?c[e]:void 0;return(n||gn(e))&&nn(f,o),r?{context:c,name:e,value:f}:f}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var bo=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new yo(t,n),this.astCompiler=n.csp?new mn(this.ast,e):new vn(this.ast,e)};bo.prototype={constructor:bo,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var wo=Object.prototype.valueOf,xo=e("$sce"),Co={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},So=e("$compile"),Ao=t.document.createElement("a"),Eo=jn(t.location.href);Rn.$inject=["$document"],Vn.$inject=["$provide"];var _o=22,ko=".",To="0";zn.$inject=["$locale"],Bn.$inject=["$locale"];var Oo={yyyy:Zn("FullYear",4,0,!1,!0),yy:Zn("FullYear",2,0,!0,!0),y:Zn("FullYear",1,0,!1,!0),MMMM:Xn("Month"),MMM:Xn("Month",!0),MM:Zn("Month",2,1),M:Zn("Month",1,1),LLLL:Xn("Month",!1,!0),dd:Zn("Date",2),d:Zn("Date",1),HH:Zn("Hours",2),H:Zn("Hours",1),hh:Zn("Hours",2,-12),h:Zn("Hours",1,-12),mm:Zn("Minutes",2),m:Zn("Minutes",1),ss:Zn("Seconds",2),s:Zn("Seconds",1),sss:Zn("Milliseconds",3),EEEE:Xn("Day"),EEE:Xn("Day",!0),a:nr,Z:Jn,ww:er(2),w:er(1),G:rr,GG:rr,GGG:rr,GGGG:ir},Do=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Mo=/^\-?\d+$/;or.$inject=["$locale"];var Po=v(Pr),jo=v(jr);lr.$inject=["$parse"];var Io=v({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===zr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),No={};r(_i,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=me("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),No[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(Ti,function(t,e){No[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Or);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),r(["src","srcset","href"],function(t){var e=me("ng-"+t);No[e]=function(){return{priority:99,link:function(n,r,i){var o=t,a=t;"href"===t&&"[object SVGAnimatedString]"===zr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(e,function(e){return e?(i.$set(a,e),void(Rr&&o&&r.prop(o,i[a]))):void("href"===t&&i.$set(a,null))})}}}});var Ro={$addControl:p,$$renameControl:fr,$removeControl:p,$setValidity:p,$setDirty:p,$setPristine:p,$setSubmitted:p},qo="ng-submitted";hr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Vo=function(t){return["$timeout","$parse",function(e,n){function r(t){return""===t?n('this[""]').assign:n(t).assign||p}var i={name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:hr,compile:function(n,i){n.addClass(wa).addClass(ya);var o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,n,i,a){var s=a[0];if(!("action"in i)){var u=function(e){t.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),e.preventDefault()};di(n[0],"submit",u),n.on("$destroy",function(){e(function(){vi(n[0],"submit",u)},0,!1)})}var c=a[1]||s.$$parentForm;c.$addControl(s);var f=o?r(s.$name):p;o&&(f(t,s),i.$observe(o,function(e){s.$name!==e&&(f(t,void 0),s.$$parentForm.$$renameControl(s,e),(f=r(s.$name))(t,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),f(t,void 0),l(s,Ro)})}}}};return i}]},Fo=Vo(),Lo=Vo(!0),Ho=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Uo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,zo=/^(?=.{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])?)*$/,Bo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Wo=/^(\d{4,})-(\d{2})-(\d{2})$/,Yo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Go=/^(\d{4,})-W(\d\d)$/,Ko=/^(\d{4,})-(\d\d)$/,Zo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Xo="keydown wheel mousedown",Jo=dt();r("date,datetime-local,month,time,week".split(","),function(t){Jo[t]=!0});var Qo={text:dr,date:$r("date",Wo,gr(Wo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":$r("datetimelocal",Yo,gr(Yo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:$r("time",Zo,gr(Zo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:$r("week",Go,mr,"yyyy-Www"),month:$r("month",Ko,gr(Ko,["yyyy","MM"]),"yyyy-MM"),number:br,url:wr,email:xr,radio:Cr,checkbox:Ar,hidden:p,button:p,submit:p,reset:p,file:p},ta=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Qo[Pr(a.type)]||Qo.text)(i,o,a,s[0],e,t,n,r)}}}}],ea=/^(true|false|\d+)$/,na=function(){return{restrict:"A",priority:100,compile:function(t,e){return ea.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},ra=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=g(t)?"":t})}}}}],ia=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=g(t)?"":t})}}}}],oa=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),a=e(i.ngBindHtml,function(e){return t.valueOf(e)});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(a,function(){var n=o(e);r.html(t.getTrustedHtml(n)||"")})}}}}],aa=v({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),sa=Er("",!0),ua=Er("Odd",0),la=Er("Even",1),ca=cr({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),fa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ha={},pa={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=me("ng-"+t);ha[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){a(e,{$event:n})};pa[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var da=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,l;n.$watch(i.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=e.$$createComment("end ngIf",i.ngIf),s={clone:n},t.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=pt(s.clone),t.leave(l).then(function(){l=null}),s=null))})}}}],va=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Yr.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,h,p,d=0,v=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).then(function(){h=null}),h=p,p=null)};r.$watch(o,function(o){var u=function(){!$(s)||s&&!r.$eval(s)||e()},h=++d;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&h===d){var e=r.$new();l.template=t;var s=c(e,function(t){v(),n.enter(t,null,i).then(u)});f=e,p=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||h===d&&(v(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(v(),l.template=null)})}}}}],ma=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return zr.call(r[0]).match(/SVG/)?(r.empty(),void e(Et(o.template,t.document).childNodes)(n,function(t){r.append(t)},{futureParentElement:r})):(r.html(o.template),void e(r.contents())(n))}}}],ga=cr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),$a=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var o=e.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,s=a?Xr(o):o,u=function(t){if(!g(t)){var e=[];return t&&r(t.split(s),function(t){t&&e.push(a?Xr(t):t)}),e}};i.$parsers.push(u),i.$formatters.push(function(t){if(Kr(t))return t.join(o)}),i.$isEmpty=function(t){return!t||!t.length}}}},ya="ng-valid",ba="ng-invalid",wa="ng-pristine",xa="ng-dirty",Ca="ng-untouched",Sa="ng-touched",Aa="ng-pending",Ea="ng-empty",_a="ng-not-empty",ka=e("ngModel"),Ta=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,n,i,o,a,s,u,l,c){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=c(n.name||"",!1)(t),this.$$parentForm=Ro;var f,h=o(n.ngModel),d=h.assign,v=h,m=d,y=null,b=this;this.$$setOptions=function(t){if(b.$options=t,t&&t.getterSetter){var e=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)");v=function(t){var n=h(t);return S(n)&&(n=e(t)),n},m=function(t,e){S(h(t))?r(t,{$$$p:e}):d(t,e)}}else if(!h.assign)throw ka("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,Z(i))},this.$render=p,this.$isEmpty=function(t){return g(t)||""===t||null===t||t!==t},this.$$updateEmptyClasses=function(t){b.$isEmpty(t)?(a.removeClass(i,_a),a.addClass(i,Ea)):(a.removeClass(i,Ea),a.addClass(i,_a))};var w=0;_r({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:a}),this.$setPristine=function(){b.$dirty=!1,b.$pristine=!0,a.removeClass(i,xa),a.addClass(i,wa)},this.$setDirty=function(){b.$dirty=!0,b.$pristine=!1,a.removeClass(i,wa),a.addClass(i,xa),b.$$parentForm.$setDirty()},this.$setUntouched=function(){b.$touched=!1,b.$untouched=!0,a.setClass(i,Ca,Sa)},this.$setTouched=function(){b.$touched=!0,b.$untouched=!1,a.setClass(i,Sa,Ca)},this.$rollbackViewValue=function(){s.cancel(y),b.$viewValue=b.$$lastCommittedViewValue,b.$render()},this.$validate=function(){if(!x(b.$modelValue)||!isNaN(b.$modelValue)){var t=b.$$lastCommittedViewValue,e=b.$$rawModelValue,n=b.$valid,r=b.$modelValue,i=b.$options&&b.$options.allowInvalid;b.$$runValidators(e,t,function(t){i||n===t||(b.$modelValue=t?e:void 0,b.$modelValue!==r&&b.$$writeModelToScope())})}},this.$$runValidators=function(t,e,n){function i(){var t=b.$$parserName||"parse";return g(f)?(s(t,null),!0):(f||(r(b.$validators,function(t,e){s(e,null)}),r(b.$asyncValidators,function(t,e){s(e,null)})),s(t,f),f)}function o(){var n=!0;return r(b.$validators,function(r,i){var o=r(t,e);n=n&&o,s(i,o)}),!!n||(r(b.$asyncValidators,function(t,e){s(e,null)}),!1)}function a(){var n=[],i=!0;r(b.$asyncValidators,function(r,o){var a=r(t,e);if(!M(a))throw ka("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then(function(){s(o,!0)},function(){i=!1,s(o,!1)}))}),n.length?l.all(n).then(function(){u(i)},p):u(!0)}function s(t,e){c===w&&b.$setValidity(t,e)}function u(t){c===w&&n(t)}w++;var c=w;return i()&&o()?void a():void u(!1)},this.$commitViewValue=function(){var t=b.$viewValue;s.cancel(y),(b.$$lastCommittedViewValue!==t||""===t&&b.$$hasNativeValidators)&&(b.$$updateEmptyClasses(t),b.$$lastCommittedViewValue=t,b.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){b.$modelValue!==o&&b.$$writeModelToScope()}var n=b.$$lastCommittedViewValue,r=n;if(f=!g(r)||void 0)for(var i=0;i<b.$parsers.length;i++)if(r=b.$parsers[i](r),g(r)){f=!1;break}x(b.$modelValue)&&isNaN(b.$modelValue)&&(b.$modelValue=v(t));var o=b.$modelValue,a=b.$options&&b.$options.allowInvalid;b.$$rawModelValue=r,a&&(b.$modelValue=r,e()),b.$$runValidators(r,b.$$lastCommittedViewValue,function(t){a||(b.$modelValue=t?r:void 0,e())})},this.$$writeModelToScope=function(){m(t,b.$modelValue),r(b.$viewChangeListeners,function(t){try{t()}catch(t){e(t)}})},this.$setViewValue=function(t,e){b.$viewValue=t,b.$options&&!b.$options.updateOnDefault||b.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=b.$options;i&&$(i.debounce)&&(n=i.debounce,x(n)?r=n:x(n[e])?r=n[e]:x(n.default)&&(r=n.default)),s.cancel(y),r?y=s(function(){b.$commitViewValue()},r):u.$$phase?b.$commitViewValue():t.$apply(function(){b.$commitViewValue()})},t.$watch(function(){var e=v(t);if(e!==b.$modelValue&&(b.$modelValue===b.$modelValue||e===e)){b.$modelValue=b.$$rawModelValue=e,f=void 0;for(var n=b.$formatters,r=n.length,i=e;r--;)i=n[r](i);b.$viewValue!==i&&(b.$$updateEmptyClasses(i),b.$viewValue=b.$$lastCommittedViewValue=i,b.$render(),b.$$runValidators(e,i,p))}return e})}],Oa=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ta,priority:1,compile:function(e){return e.addClass(wa).addClass(Ca).addClass(ya),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(e,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],Da=/(\s+|^)default(\s+|$)/,Ma=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=V(t.$eval(e.ngModelOptions)),$(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Xr(this.$options.updateOn.replace(Da,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Pa=cr({terminal:!0,priority:1e3}),ja=e("ngOptions"),Ia=/^\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]+?))?$/,Na=["$compile","$document","$parse",function(e,i,o){function a(t,e,r){function i(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function a(t){var e;if(!l&&n(t))e=t;else{e=[];for(var r in t)t.hasOwnProperty(r)&&"$"!==r.charAt(0)&&e.push(r)}return e}var s=t.match(Ia);if(!s)throw ja("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Z(e));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],h=o(s[2]?s[1]:u),p=c&&o(c),d=p||h,v=f&&o(f),m=f?function(t,e){return v(r,e)}:function(t){return Xt(t)},g=function(t,e){return m(t,C(t,e))},$=o(s[2]||s[1]),y=o(s[3]||""),b=o(s[4]||""),w=o(s[8]),x={},C=l?function(t,e){return x[l]=e,x[u]=t,x}:function(t){return x[u]=t,x};return{trackBy:f,getTrackByValue:g,getWatchables:o(w,function(t){var e=[];t=t||[];for(var n=a(t),i=n.length,o=0;o<i;o++){var u=t===n?o:n[o],l=t[u],c=C(l,u),f=m(l,c);if(e.push(f),s[2]||s[1]){var h=$(r,c);e.push(h)}if(s[4]){var p=b(r,c);e.push(p)}}return e}),getOptions:function(){for(var t=[],e={},n=w(r)||[],o=a(n),s=o.length,u=0;u<s;u++){var l=n===o?u:o[u],c=n[l],h=C(c,l),p=d(r,h),v=m(p,h),x=$(r,h),S=y(r,h),A=b(r,h),E=new i(v,p,x,S,A);t.push(E),e[v]=E}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[g(t)]},getViewValueFromOption:function(t){return f?Yr.copy(t.viewValue):t.viewValue}}}}}function s(t,n,o,s){function c(t,e){var n=u.cloneNode(!1);e.appendChild(n),f(t,n)}function f(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),t.value!==e.value&&(e.value=t.selectValue)}function h(){var t=C&&d.readValue();if(C)for(var e=C.items.length-1;e>=0;e--){var r=C.items[e];Ut($(r.group)?r.element.parentNode:r.element)}C=S.getOptions();var i={};if(w&&n.prepend(p),C.items.forEach(function(t){var e;$(t.group)?(e=i[t.group],e||(e=l.cloneNode(!1),A.appendChild(e),e.label=null===t.group?"null":t.group,i[t.group]=e),c(t,e)):c(t,A)}),n[0].appendChild(A),v.$render(),!v.$isEmpty(t)){var o=d.readValue(),a=S.trackBy||m;(a?F(t,o):t===o)||(v.$setViewValue(o),v.$render())}}for(var p,d=s[0],v=s[1],m=o.multiple,g=0,y=n.children(),b=y.length;g<b;g++)if(""===y[g].value){p=y.eq(g);break}var w=!!p,x=qr(u.cloneNode(!1));x.val("?");var C,S=a(o.ngOptions,n,t),A=i[0].createDocumentFragment(),E=function(){w||n.prepend(p),n.val(""),p.prop("selected",!0),p.attr("selected",!0)},_=function(){w||p.remove()},k=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},T=function(){x.remove()};m?(v.$isEmpty=function(t){return!t||0===t.length},d.writeValue=function(t){C.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){var e=C.getOptionFromViewValue(t);e&&(e.element.selected=!0)})},d.readValue=function(){var t=n.val()||[],e=[];return r(t,function(t){var n=C.selectValueMap[t];n&&!n.disabled&&e.push(C.getViewValueFromOption(n))}),e},S.trackBy&&t.$watchCollection(function(){if(Kr(v.$viewValue))return v.$viewValue.map(function(t){return S.getTrackByValue(t)})},function(){v.$render()})):(d.writeValue=function(t){var e=C.getOptionFromViewValue(t);e?(n[0].value!==e.selectValue&&(T(),_(),n[0].value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):null===t||w?(T(),E()):(_(),k())},d.readValue=function(){var t=C.selectValueMap[n.val()];return t&&!t.disabled?(_(),T(),C.getViewValueFromOption(t)):null},S.trackBy&&t.$watch(function(){return S.getTrackByValue(v.$viewValue)},function(){v.$render()})),w?(p.remove(),e(p)(t),p.removeClass("ng-scope")):p=qr(u.cloneNode(!1)),n.empty(),h(),t.$watchCollection(S.getWatchables,h)}var u=t.document.createElement("option"),l=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=p},post:s}}}],Ra=["$locale","$interpolate","$log",function(t,e,n){var i=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(t){s.text(t||"")}var c,f=u.count,h=u.$attr.when&&s.attr(u.$attr.when),d=u.offset||0,v=a.$eval(h)||{},m={},$=e.startSymbol(),y=e.endSymbol(),b=$+f+"-"+d+y,w=Yr.noop;r(u,function(t,e){var n=o.exec(e);if(n){var r=(n[1]?"-":"")+Pr(n[2]);v[r]=s.attr(u.$attr[e])}}),r(v,function(t,n){m[n]=e(t.replace(i,b))}),a.$watch(f,function(e){var r=parseFloat(e),i=isNaN(r);if(i||r in v||(r=t.pluralCat(r-d)),r!==c&&!(i&&x(c)&&isNaN(c))){w();var o=m[r];g(o)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=p,l()):w=a.$watch(o,l),c=r}})}}}],qa=["$parse","$animate","$compile",function(t,i,o){var a="$$NG_REMOVED",s=e("ngRepeat"),u=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))},l=function(t){return t.clone[0]},c=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,f){var h=f.ngRepeat,p=o.$$createComment("end ngRepeat",h),d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);var v=d[1],m=d[2],g=d[3],$=d[4];if(d=v.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!d)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",v);var y=d[3]||d[1],b=d[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);var w,x,C,S,A={$id:Xt};return $?w=t($):(C=function(t,e){return Xt(e)},S=function(t){return t}),function(t,e,o,f,d){w&&(x=function(e,n,r){return b&&(A[b]=e),A[y]=n,A.$index=r,w(t,A)});var v=dt();t.$watchCollection(m,function(o){var f,m,$,w,A,E,_,k,T,O,D,M,P=e[0],j=dt();if(g&&(t[g]=o),n(o))T=o,k=x||C;else{
k=x||S,T=[];for(var I in o)Mr.call(o,I)&&"$"!==I.charAt(0)&&T.push(I)}for(w=T.length,D=new Array(w),f=0;f<w;f++)if(A=o===T?f:T[f],E=o[A],_=k(A,E,f),v[_])O=v[_],delete v[_],j[_]=O,D[f]=O;else{if(j[_])throw r(D,function(t){t&&t.scope&&(v[t.id]=t)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,_,E);D[f]={id:_,scope:void 0,clone:void 0},j[_]=!0}for(var N in v){if(O=v[N],M=pt(O.clone),i.leave(M),M[0].parentNode)for(f=0,m=M.length;f<m;f++)M[f][a]=!0;O.scope.$destroy()}for(f=0;f<w;f++)if(A=o===T?f:T[f],E=o[A],O=D[f],O.scope){$=P;do $=$.nextSibling;while($&&$[a]);l(O)!=$&&i.move(pt(O.clone),null,P),P=c(O),u(O.scope,f,y,E,b,A,w)}else d(function(t,e){O.scope=e;var n=p.cloneNode(!1);t[t.length++]=n,i.enter(t,null,P),P=n,O.clone=t,j[O.id]=O,u(O.scope,f,y,E,b,A,w)});v=j})}}}}],Va="ng-hide",Fa="ng-hide-animate",La=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,Va,{tempClasses:Fa})})}}}],Ha=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,Va,{tempClasses:Fa})})}}}],Ua=cr(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&r(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),za=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,a){var s=o.ngSwitch||o.on,u=[],l=[],c=[],f=[],h=function(t,e){return function(){t.splice(e,1)}};n.$watch(s,function(n){var i,o;for(i=0,o=c.length;i<o;++i)t.cancel(c[i]);for(c.length=0,i=0,o=f.length;i<o;++i){var s=pt(l[i].clone);f[i].$destroy();var p=c[i]=t.leave(s);p.then(h(c,i))}l.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&r(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=e.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),t.enter(r,o.parent(),o)})})})}}}],Ba=cr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Wa=cr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),Ya=e("ngTransclude"),Ga=["$compile",function(t){return{restrict:"EAC",terminal:!0,compile:function(e){var n=t(e.contents());return e.empty(),function(t,e,r,i,o){function a(t,n){t.length?e.append(t):(s(),n.$destroy())}function s(){n(t,function(t){e.append(t)})}if(!o)throw Ya("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Z(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var u=r.ngTransclude||r.ngTranscludeSlot;o(a,null,u),u&&!o.isSlotFilled(u)&&s()}}}}],Ka=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],Za={$setViewValue:p,$render:p},Xa=["$element","$scope",function(e,n){var r=this,i=new Jt;r.ngModelCtrl=Za,r.unknownOption=qr(t.document.createElement("option")),r.renderUnknownOption=function(t){var n="? "+Xt(t)+" ?";r.unknownOption.val(n),e.prepend(r.unknownOption),e.val(n)},n.$on("$destroy",function(){r.renderUnknownOption=p}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),e.val()},r.writeValue=function(t){r.hasOption(t)?(r.removeUnknownOption(),e.val(t),""===t&&r.emptyOption.prop("selected",!0)):null==t&&r.emptyOption?(r.removeUnknownOption(),e.val("")):r.renderUnknownOption(t)},r.addOption=function(t,e){if(e[0].nodeType!==ui){ft(t,'"option value"'),""===t&&(r.emptyOption=e);var n=i.get(t)||0;i.put(t,n+1),r.ngModelCtrl.$render(),Tr(e)}},r.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.remove(t),""===t&&(r.emptyOption=void 0)):i.put(t,e-1))},r.hasOption=function(t){return!!i.get(t)},r.registerOption=function(t,e,n,i,o){if(i){var a;n.$observe("value",function(t){$(a)&&r.removeOption(a),a=t,r.addOption(t,e)})}else o?t.$watch(o,function(t,i){n.$set("value",t),i!==t&&r.removeOption(i),r.addOption(t,e)}):r.addOption(n.value,e);e.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Ja=function(){function t(t,e,n,i){var o=i[1];if(o){var a=i[0];if(a.ngModelCtrl=o,e.on("change",function(){t.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var t=[];return r(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},a.writeValue=function(t){var n=new Jt(t);r(e.find("option"),function(t){t.selected=$(n.get(t.value))})};var s,u=NaN;t.$watch(function(){u!==o.$viewValue||F(s,o.$viewValue)||(s=mt(o.$viewValue),o.$render()),u=o.$viewValue}),o.$isEmpty=function(t){return!t||0===t.length}}}}function e(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Xa,priority:1,link:{pre:t,post:e}}},Qa=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if($(n.value))var r=t(n.value,!0);else{var i=t(e.text(),!0);i||n.$set("value",e.text())}return function(t,e,n){var o="$selectController",a=e.parent(),s=a.data(o)||a.parent().data(o);s&&s.registerOption(t,e,n,r,i)}}}}],ts=v({restrict:"E",terminal:!1}),es=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},ns=function(){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(t){if(w(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw e("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,Z(n));o=t||void 0,i.$validate()}),i.$validators.pattern=function(t,e){return i.$isEmpty(e)||g(o)||o.test(e)}}}}},rs=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=f(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},is=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=f(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};return t.angular.bootstrap?void(t.console&&console.log("WARNING: Tried to load angular more than once.")):(ut(),yt(Yr),Yr.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return e==-1?0:t.length-e-1}function n(t,n){var r=n;void 0===r&&(r=Math.min(e(t),3));var i=Math.pow(10,r),o=(t*i|0)%i;return{v:r,f:o}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"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 i=0|t,o=n(t,e);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),void qr(t.document).ready(function(){rt(t.document,it)}))}(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(t,e,n){n(5),t.exports="ngAnimate"},function(t,e){/**
	 * @license AngularJS v1.5.8
	 * (c) 2010-2016 Google, Inc. http://angularjs.org
	 * License: MIT
	 */
!function(t,e){"use strict";function n(t,e,n){if(!t)throw vt("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function r(t,e){return t||e?t?e?(K(t)&&(t=t.join(" ")),K(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function i(t){var e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}function o(t,e,n){var r="";return t=K(t)?t:t&&tt(t)&&t.length?t.split(/\s+/):[],G(t,function(t,i){t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)}),r}function a(t,e){var n=t.indexOf(e);e>=0&&t.splice(n,1)}function s(t){if(t instanceof nt)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===R)return t;break;default:return nt(u(t))}if(t.nodeType===R)return nt(t)}function u(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType==R)return n}}function l(t,e,n){G(e,function(e){t.addClass(e,n)})}function c(t,e,n){G(e,function(e){t.removeClass(e,n)})}function f(t){return function(e,n){n.addClass&&(l(t,e,n.addClass),n.addClass=null),n.removeClass&&(c(t,e,n.removeClass),n.removeClass=null)}}function h(t){if(t=t||{},!t.$$prepared){var e=t.domOperation||rt;t.domOperation=function(){t.$$domOperationFired=!0,e(),e=rt},t.$$prepared=!0}return t}function p(t,e){d(t,e),v(t,e)}function d(t,e){e.from&&(t.css(e.from),e.from=null)}function v(t,e){e.to&&(t.css(e.to),e.to=null)}function m(t,e,n){var r=e.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=g(t.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=S(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var u=r.domOperation!==rt?r.domOperation:null;return Y(r,i),u&&(r.domOperation=u),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function g(t,e,n){function r(t){tt(t)&&(t=t.split(" "));var e={};return G(t,function(t){t.length&&(e[t]=!0)}),e}var i=1,o=-1,a={};t=r(t),e=r(e),G(e,function(t,e){a[e]=i}),n=r(n),G(n,function(t,e){a[e]=a[e]===i?null:o});var s={addClass:"",removeClass:""};return G(a,function(e,n){var r,a;e===i?(r="addClass",a=!t[n]||t[n+V]):e===o&&(r="removeClass",a=t[n]||t[n+q]),a&&(s[r].length&&(s[r]+=" "),s[r]+=n)}),s}function $(t){return t instanceof nt?t[0]:t}function y(t,e,n){var r="";e&&(r=o(e,F,!0)),n.addClass&&(r=S(r,o(n.addClass,q))),n.removeClass&&(r=S(r,o(n.removeClass,V))),r.length&&(n.preparationClasses=r,t.addClass(r))}function b(t,e){e.preparationClasses&&(t.removeClass(e.preparationClasses),e.preparationClasses=null),e.activeClasses&&(t.removeClass(e.activeClasses),e.activeClasses=null)}function w(t,e){var n=e?"-"+e+"s":"";return C(t,[pt,n]),[pt,n]}function x(t,e){var n=e?"paused":"",r=I+lt;return C(t,[r,n]),[r,n]}function C(t,e){var n=e[0],r=e[1];t.style[n]=r}function S(t,e){return t?e?t+" "+e:t:e}function A(t){return[ht,t+"s"]}function E(t,e){var n=e?ft:pt;return[n,t+"s"]}function _(t,e,n){var r=Object.create(null),i=t.getComputedStyle(e)||{};return G(n,function(t,e){var n=i[t];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=k(n)),0===n&&(n=null),r[e]=n}}),r}function k(t){var e=0,n=t.split(/\s*,\s*/);return G(n,function(t){"s"==t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t}),e}function T(t){return 0===t||null!=t}function O(t,e){var n=P,r=t+"s";return e?n+=it:r+=" linear all",[n,r]}function D(){var t=Object.create(null);return{flush:function(){t=Object.create(null)},count:function(e){var n=t[e];return n?n.total:0},get:function(e){var n=t[e];return n&&n.value},put:function(e,n){t[e]?t[e].total++:t[e]={total:1,value:n}}}}function M(t,e,n){G(n,function(n){t[n]=Z(t[n])?t[n]:e.style.getPropertyValue(n)})}var P,j,I,N,R=1,q="-add",V="-remove",F="ng-",L="-active",H="-prepare",U="ng-animate",z="$$ngAnimateChildren",B="";void 0===t.ontransitionend&&void 0!==t.onwebkittransitionend?(B="-webkit-",P="WebkitTransition",j="webkitTransitionEnd transitionend"):(P="transition",j="transitionend"),void 0===t.onanimationend&&void 0!==t.onwebkitanimationend?(B="-webkit-",I="WebkitAnimation",N="webkitAnimationEnd animationend"):(I="animation",N="animationend");var W,Y,G,K,Z,X,J,Q,tt,et,nt,rt,it="Duration",ot="Property",at="Delay",st="TimingFunction",ut="IterationCount",lt="PlayState",ct=9999,ft=I+at,ht=I+it,pt=P+at,dt=P+it,vt=e.$$minErr("ng"),mt=["$$rAF",function(t){function e(t){r=r.concat(t),n()}function n(){if(r.length){for(var e=r.shift(),o=0;o<e.length;o++)e[o]();i||t(function(){i||n()})}}var r,i;return r=e.queue=[],e.waitUntilQuiet=function(e){i&&i(),i=t(function(){i=null,e(),n()})},e}],gt=["$interpolate",function(t){return{link:function(e,n,r){function i(t){t="on"===t||"true"===t,n.data(z,t)}var o=r.ngAnimateChildren;tt(o)&&0===o.length?n.data(z,!0):(i(t(o)(e)),r.$observe("ngAnimateChildren",i))}}}],$t="$$animateCss",yt=1e3,bt=3,wt=1.5,xt={transitionDuration:dt,transitionDelay:pt,transitionProperty:P+ot,animationDuration:ht,animationDelay:ft,animationIterationCount:I+ut},Ct={transitionDuration:dt,transitionDelay:pt,animationDuration:ht,animationDelay:ft},St=["$animateProvider",function(t){var e=D(),n=D();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(t,r,s,u,l,c,m,g){function y(t,e){var n="$$ngAnimateParentKey",r=t.parentNode,i=r[n]||(r[n]=++H);return i+"-"+t.getAttribute("class")+"-"+e}function b(n,r,i,o){var a=e.get(i);return a||(a=_(t,n,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),e.put(i,a),a}function S(i,a,s,u){var l;if(e.count(s)>0&&(l=n.get(s),!l)){var c=o(a,"-stagger");r.addClass(i,c),l=_(t,i,u),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,c),n.put(s,l)}return l||{}}function k(t){U.push(t),m.waitUntilQuiet(function(){e.flush(),n.flush();for(var t=l(),r=0;r<U.length;r++)U[r](t);U.length=0})}function D(t,e,n){var r=b(t,e,n,xt),i=r.animationDelay,o=r.transitionDelay;return r.maxDelay=i&&o?Math.max(i,o):i||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var R=f(r),H=0,U=[];return function(t,n){function l(){m()}function f(){m(!0)}function m(e){if(!(Z||J&&X)){Z=!0,X=!1,z.$$skipPreparationClasses||r.removeClass(t,xt),r.removeClass(t,At),x(Y,!1),w(Y,!1),G(lt,function(t){Y.style[t[0]]=""}),R(t,z),p(t,z),Object.keys(B).length&&G(B,function(t,e){t?Y.style.setProperty(e,t):Y.style.removeProperty(e)}),z.onDone&&z.onDone(),pt&&pt.length&&t.off(pt.join(" "),H);var n=t.data($t);n&&(u.cancel(n[0].timer),t.removeData($t)),Q&&Q.complete(!e)}}function b(t){Vt.blockTransition&&w(Y,t),Vt.blockKeyframeAnimation&&x(Y,!!t)}function _(){return Q=new s({end:l,cancel:f}),k(rt),m(),{$$willAnimate:!1,start:function(){return Q},end:l}}function H(t){t.stopPropagation();var e=t.originalEvent||t,n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(bt));Math.max(n-ut,0)>=nt&&r>=it&&(J=!0,m())}function U(){function e(){if(!Z){if(b(!1),G(lt,function(t){var e=t[0],n=t[1];Y.style[e]=n}),R(t,z),r.addClass(t,At),Vt.recalculateTimingStyles){if(St=Y.className+" "+xt,kt=y(Y,St),Rt=D(Y,St,kt),qt=Rt.maxDelay,et=Math.max(qt,0),it=Rt.maxDuration,0===it)return void m();Vt.hasTransitions=Rt.transitionDuration>0,Vt.hasAnimations=Rt.animationDuration>0}if(Vt.applyAnimationDelay&&(qt="boolean"!=typeof z.delay&&T(z.delay)?parseFloat(z.delay):qt,et=Math.max(qt,0),Rt.animationDelay=qt,Ft=E(qt,!0),lt.push(Ft),Y.style[Ft[0]]=Ft[1]),nt=et*yt,at=it*yt,z.easing){var e,i=z.easing;Vt.hasTransitions&&(e=P+st,lt.push([e,i]),Y.style[e]=i),Vt.hasAnimations&&(e=I+st,lt.push([e,i]),Y.style[e]=i)}Rt.transitionDuration&&pt.push(j),Rt.animationDuration&&pt.push(N),ut=Date.now();var o=nt+wt*at,a=ut+o,s=t.data($t)||[],l=!0;if(s.length){var c=s[0];l=a>c.expectedEndTime,l?u.cancel(c.timer):s.push(m)}if(l){var f=u(n,o,!1);s[0]={timer:f,expectedEndTime:a},s.push(m),t.data($t,s)}pt.length&&t.on(pt.join(" "),H),z.to&&(z.cleanupStyles&&M(B,Y,Object.keys(z.to)),v(t,z))}}function n(){var e=t.data($t);if(e){for(var n=1;n<e.length;n++)e[n]();t.removeData($t)}}if(!Z){if(!Y.parentNode)return void m();var i=function(t){if(J)X&&t&&(X=!1,m());else if(X=!t,Rt.animationDuration){var e=x(Y,X);X?lt.push(e):a(lt,e)}},o=It>0&&(Rt.transitionDuration&&0===Tt.transitionDuration||Rt.animationDuration&&0===Tt.animationDuration)&&Math.max(Tt.animationDelay,Tt.transitionDelay);o?u(e,Math.floor(o*It*yt),!1):e(),tt.resume=function(){i(!0)},tt.pause=function(){i(!1)}}}var z=n||{};z.$$prepared||(z=h(W(z)));var B={},Y=$(t);if(!Y||!Y.parentNode||!g.enabled())return _();var Z,X,J,Q,tt,et,nt,it,at,ut,lt=[],ft=t.attr("class"),ht=i(z),pt=[];if(0===z.duration||!c.animations&&!c.transitions)return _();var dt=z.event&&K(z.event)?z.event.join(" "):z.event,vt=dt&&z.structural,mt="",gt="";vt?mt=o(dt,F,!0):dt&&(mt=dt),z.addClass&&(gt+=o(z.addClass,q)),z.removeClass&&(gt.length&&(gt+=" "),gt+=o(z.removeClass,V)),z.applyClassesEarly&&gt.length&&R(t,z);var xt=[mt,gt].join(" ").trim(),St=ft+" "+xt,At=o(xt,L),Et=ht.to&&Object.keys(ht.to).length>0,_t=(z.keyframeStyle||"").length>0;if(!_t&&!Et&&!xt)return _();var kt,Tt;if(z.stagger>0){var Ot=parseFloat(z.stagger);Tt={transitionDelay:Ot,animationDelay:Ot,transitionDuration:0,animationDuration:0}}else kt=y(Y,St),Tt=S(Y,xt,kt,Ct);z.$$skipPreparationClasses||r.addClass(t,xt);var Dt;if(z.transitionStyle){var Mt=[P,z.transitionStyle];C(Y,Mt),lt.push(Mt)}if(z.duration>=0){Dt=Y.style[P].length>0;var Pt=O(z.duration,Dt);C(Y,Pt),lt.push(Pt)}if(z.keyframeStyle){var jt=[I,z.keyframeStyle];C(Y,jt),lt.push(jt)}var It=Tt?z.staggerIndex>=0?z.staggerIndex:e.count(kt):0,Nt=0===It;Nt&&!z.skipBlocking&&w(Y,ct);var Rt=D(Y,St,kt),qt=Rt.maxDelay;et=Math.max(qt,0),it=Rt.maxDuration;var Vt={};if(Vt.hasTransitions=Rt.transitionDuration>0,Vt.hasAnimations=Rt.animationDuration>0,Vt.hasTransitionAll=Vt.hasTransitions&&"all"==Rt.transitionProperty,Vt.applyTransitionDuration=Et&&(Vt.hasTransitions&&!Vt.hasTransitionAll||Vt.hasAnimations&&!Vt.hasTransitions),Vt.applyAnimationDuration=z.duration&&Vt.hasAnimations,Vt.applyTransitionDelay=T(z.delay)&&(Vt.applyTransitionDuration||Vt.hasTransitions),Vt.applyAnimationDelay=T(z.delay)&&Vt.hasAnimations,Vt.recalculateTimingStyles=gt.length>0,(Vt.applyTransitionDuration||Vt.applyAnimationDuration)&&(it=z.duration?parseFloat(z.duration):it,Vt.applyTransitionDuration&&(Vt.hasTransitions=!0,Rt.transitionDuration=it,Dt=Y.style[P+ot].length>0,lt.push(O(it,Dt))),Vt.applyAnimationDuration&&(Vt.hasAnimations=!0,Rt.animationDuration=it,lt.push(A(it)))),0===it&&!Vt.recalculateTimingStyles)return _();if(null!=z.delay){var Ft;"boolean"!=typeof z.delay&&(Ft=parseFloat(z.delay),et=Math.max(Ft,0)),Vt.applyTransitionDelay&&lt.push(E(Ft)),Vt.applyAnimationDelay&&lt.push(E(Ft,!0))}return null==z.duration&&Rt.transitionDuration>0&&(Vt.recalculateTimingStyles=Vt.recalculateTimingStyles||Nt),nt=et*yt,at=it*yt,z.skipBlocking||(Vt.blockTransition=Rt.transitionDuration>0,Vt.blockKeyframeAnimation=Rt.animationDuration>0&&Tt.animationDelay>0&&0===Tt.animationDuration),z.from&&(z.cleanupStyles&&M(B,Y,Object.keys(z.from)),d(t,z)),Vt.blockTransition||Vt.blockKeyframeAnimation?b(it):z.skipBlocking||w(Y,!1),{$$willAnimate:!0,end:l,start:function(){if(!Z)return tt={end:l,cancel:f,resume:null,pause:null},Q=new s(tt),k(U),Q}}}}]}],At=["$$animationProvider",function(t){function e(t){return t.parentNode&&11===t.parentNode.nodeType}t.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(t,a,s,u,l,c,h){function p(t){return t.replace(/\bng-\S+\b/g,"")}function d(t,e){return tt(t)&&(t=t.split(" ")),tt(e)&&(e=e.split(" ")),t.filter(function(t){return e.indexOf(t)===-1}).join(" ")}function v(e,a,u){function l(t){var e={},n=$(t).getBoundingClientRect();return G(["width","height","top","left"],function(t){var r=n[t];switch(t){case"top":r+=y.scrollTop;break;case"left":r+=y.scrollLeft}e[t]=Math.floor(r)+"px"}),e}function c(){var e=t(m,{addClass:i,delay:!0,from:l(a)});return e.$$willAnimate?e:null}function f(t){return t.attr("class")||""}function h(){var e=p(f(u)),n=d(e,g),r=d(g,e),a=t(m,{to:l(u),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function v(){m.remove(),a.removeClass(n),u.removeClass(n)}var m=nt($(a).cloneNode(!0)),g=p(f(m));a.addClass(n),u.addClass(n),m.addClass(r),w.append(m);var b,x=c();if(!x&&(b=h(),!b))return v();var C=x||b;return{start:function(){function t(){n&&n.end()}var e,n=C.start();return n.done(function(){return n=null,!b&&(b=h())?(n=b.start(),n.done(function(){n=null,v(),e.complete()}),n):(v(),void e.complete())}),e=new s({end:t,cancel:t})}}}function m(t,e,n,r){var i=g(t,rt),o=g(e,rt),a=[];if(G(r,function(t){var e=t.out,r=t.in,i=v(n,e,r);i&&a.push(i)}),i||o||0!==a.length)return{start:function(){function t(){G(e,function(t){t.end()})}var e=[];i&&e.push(i.start()),o&&e.push(o.start()),G(a,function(t){e.push(t.start())});var n=new s({end:t,cancel:t});return s.all(e,function(t){n.complete(t)}),n}}}function g(e){var n=e.element,r=e.options||{};e.structural&&(r.event=e.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===e.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=S(r.event,r.preparationClasses));var i=t(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return rt;var y=h[0].body,b=$(u),w=nt(e(b)||y.contains(b)?b:y);f(c);return function(t){return t.from&&t.to?m(t.from,t.to,t.classes,t.anchors):g(t)}}]}],Et=["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(e,n,r){function i(n){n=K(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=t.$$registeredAnimations[a];s&&!i[a]&&(r.push(e.get(s)),i[a]=!0)}return r}var o=f(r);return function(t,e,r,a){function s(){a.domOperation(),o(t,a)}function u(){d=!0,s(),p(t,a)}function l(t,e,r,i,o){var a;switch(r){case"animate":a=[e,i.from,i.to,o];break;case"setClass":a=[e,g,$,o];break;case"addClass":a=[e,g,o];break;case"removeClass":a=[e,$,o];break;default:a=[e,o]}a.push(i);var s=t.apply(t,a);if(s)if(J(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(J(s))return s;return rt}function c(t,e,r,i,o){var a=[];return G(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,u=function(t){a||(a=!0,(o||rt)(t),i.complete(!t))};return i=new n({end:function(){u()},cancel:function(){u(!0)}}),o=l(s,t,e,r,function(t){var e=t===!1;u(e)}),i})}),a}function f(t,e,r,i,o){var a=c(t,e,r,i,o);if(0===a.length){var s,u;"beforeSetClass"===o?(s=c(t,"removeClass",r,i,"beforeRemoveClass"),u=c(t,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(s=c(t,"removeClass",r,i,"removeClass"),u=c(t,"addClass",r,i,"addClass")),s&&(a=a.concat(s)),u&&(a=a.concat(u))}if(0!==a.length)return function(t){var e=[];return a.length&&G(a,function(t){e.push(t())}),e.length?n.all(e,t):t(),function(t){G(e,function(e){t?e.cancel():e.end()})}}}var d=!1;3===arguments.length&&Q(r)&&(a=r,r=null),a=h(a),r||(r=t.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var v,m,g=a.addClass,$=a.removeClass,y=i(r);if(y.length){var b,w;"leave"==e?(w="leave",b="afterLeave"):(w="before"+e.charAt(0).toUpperCase()+e.substr(1),b=e),"enter"!==e&&"move"!==e&&(v=f(t,e,a,y,w)),m=f(t,e,a,y,b)}if(v||m){var x;return{$$willAnimate:!0,end:function(){return x?x.end():(u(),x=new n,x.complete(!0)),x},start:function(){function t(t){u(t),x.complete(t)}function e(e){d||((r||rt)(e),t(e))}if(x)return x;x=new n;var r,i=[];return v&&i.push(function(t){r=v(t)}),i.length?i.push(function(t){s(),t(!0)}):s(),m&&i.push(function(t){r=m(t)}),x.setHost({end:function(){e()},cancel:function(){e(!0)}}),n.chain(i,t),x}}}}}]}],_t=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){function n(e){var n=e.element,r=e.event,i=e.options,o=e.classes;return t(n,r,o,i)}return function(t){if(t.from&&t.to){var r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start:function(){function t(){return function(){G(o,function(t){t.end()})}}function n(t){a.complete(t)}var o=[];r&&o.push(r.start()),i&&o.push(i.start()),e.all(o,n);var a=new e({end:t(),cancel:t()});return a}}}return n(t)}}]}],kt="data-ng-animate",Tt="$ngAnimatePin",Ot=["$animateProvider",function(e){function r(t){if(!t)return null;var e=t.split(d),n=Object.create(null);return G(e,function(t){n[t]=!0}),n}function i(t,e){if(t&&e){var n=r(e);return t.split(d).some(function(t){return n[t]})}}function o(t,e,n,r){return v[t].some(function(t){return t(e,n,r)})}function a(t,e){var n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}var l=1,c=2,d=" ",v=this.rules={skip:[],cancel:[],join:[]};v.join.push(function(t,e,n){return!e.structural&&a(e)}),v.skip.push(function(t,e,n){return!e.structural&&!a(e)}),v.skip.push(function(t,e,n){return"leave"==n.event&&e.structural}),v.skip.push(function(t,e,n){return n.structural&&n.state===c&&!e.structural}),v.cancel.push(function(t,e,n){return n.structural&&e.structural}),v.cancel.push(function(t,e,n){return n.state===c&&e.structural}),v.cancel.push(function(t,e,n){if(n.structural)return!1;var r=e.addClass,o=e.removeClass,a=n.addClass,s=n.removeClass;return!(et(r)&&et(o)||et(a)&&et(s))&&(i(r,s)||i(o,a))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(r,i,d,v,g,w,x,C,S,A){function E(){var t=!1;return function(e){t?e():i.$$postDigest(function(){t=!0,e()})}}function _(t,e){return m(t,e,{})}function k(t,e,n){var r=$(e),i=$(t),o=[],a=H[n];return a&&G(a,function(t){rt.call(t.node,r)?o.push(t.callback):"leave"===n&&rt.call(t.node,i)&&o.push(t.callback)}),o}function T(t,e,n){var r=u(e);return t.filter(function(t){var e=t.node===r&&(!n||t.callback===n);return!e})}function O(t,e){"close"!==t||e[0].parentNode||it.off(e)}function D(t,e,n){function u(e,n,i,o){A(function(){var e=k(g,t,n);e.length?r(function(){G(e,function(e){e(t,i,o)}),O(i,t)}):O(i,t)}),e.progress(n,i,o)}function f(e){b(t,C),J(t,C),p(t,C),C.domOperation(),S.complete(!e)}var d,g,C=W(n);t=s(t),t&&(d=$(t),g=t.parent()),C=h(C);var S=new x,A=E();if(K(C.addClass)&&(C.addClass=C.addClass.join(" ")),C.addClass&&!tt(C.addClass)&&(C.addClass=null),K(C.removeClass)&&(C.removeClass=C.removeClass.join(" ")),C.removeClass&&!tt(C.removeClass)&&(C.removeClass=null),C.from&&!Q(C.from)&&(C.from=null),C.to&&!Q(C.to)&&(C.to=null),!d)return f(),S;var T=[d.className,C.addClass,C.removeClass].join(" ");if(!B(T))return f(),S;var D=["enter","move","leave"].indexOf(e)>=0,j=v[0].hidden,R=!F||j||V.get(d),L=!R&&q.get(d)||{},H=!!L.state;if(R||H&&L.state==l||(R=!I(t,g,e)),R)return j&&u(S,e,"start"),f(),j&&u(S,e,"close"),S;D&&M(t);var U={structural:D,element:t,event:e,addClass:C.addClass,removeClass:C.removeClass,close:f,options:C,runner:S};if(H){var z=o("skip",t,U,L);if(z)return L.state===c?(f(),S):(m(t,L,U),L.runner);var Y=o("cancel",t,U,L);if(Y)if(L.state===c)L.runner.end();else{if(!L.structural)return m(t,L,U),L.runner;L.close()}else{var Z=o("join",t,U,L);if(Z){if(L.state!==c)return y(t,D?e:null,C),e=U.event=L.event,C=m(t,L,U),L.runner;_(t,U)}}}else _(t,U);var X=U.structural;if(X||(X="animate"===U.event&&Object.keys(U.options.to||{}).length>0||a(U)),!X)return f(),P(t),S;var et=(L.counter||0)+1;return U.counter=et,N(t,l,U),i.$$postDigest(function(){var n=q.get(d),r=!n;n=n||{};var i=t.parent()||[],o=i.length>0&&("animate"===n.event||n.structural||a(n));if(r||n.counter!==et||!o)return r&&(J(t,C),p(t,C)),(r||D&&n.event!==e)&&(C.domOperation(),S.end()),void(o||P(t));e=!n.structural&&a(n,!0)?"setClass":n.event,N(t,c);var s=w(t,e,n.options);S.setHost(s),u(S,e,"start",{}),s.done(function(n){f(!n);var r=q.get(d);r&&r.counter===et&&P($(t)),u(S,e,"close",{})})}),S}function M(t){var e=$(t),n=e.querySelectorAll("["+kt+"]");G(n,function(t){var e=parseInt(t.getAttribute(kt)),n=q.get(t);if(n)switch(e){case c:n.runner.end();case l:q.remove(t)}})}function P(t){var e=$(t);e.removeAttribute(kt),q.remove(e)}function j(t,e){return $(t)===$(e)}function I(t,e,n){var r,i=nt(v[0].body),o=j(t,i)||"HTML"===t[0].nodeName,a=j(t,d),s=!1,u=V.get($(t)),l=nt.data(t[0],Tt);for(l&&(e=l),e=$(e);e&&(a||(a=j(e,d)),e.nodeType===R);){var c=q.get(e)||{};if(!s){var f=V.get(e);if(f===!0&&u!==!1){u=!0;break}f===!1&&(u=!1),s=c.structural}if(et(r)||r===!0){var h=nt.data(e,z);Z(h)&&(r=h)}if(s&&r===!1)break;if(o||(o=j(e,i)),o&&a)break;e=a||!(l=nt.data(e,Tt))?e.parentNode:$(l)}var p=(!s||r)&&u!==!0;return p&&a&&o}function N(t,e,n){n=n||{},n.state=e;var r=$(t);r.setAttribute(kt,e);var i=q.get(r),o=i?Y(i,n):n;q.put(r,o)}var q=new g,V=new g,F=null,L=i.$watch(function(){return 0===C.totalPendingRequests},function(t){t&&(L(),i.$$postDigest(function(){i.$$postDigest(function(){null===F&&(F=!0)})}))}),H=Object.create(null),U=e.classNameFilter(),B=U?function(t){return U.test(t)}:function(){return!0},J=f(S),rt=t.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))},it={on:function(t,e,n){var r=u(e);H[t]=H[t]||[],H[t].push({node:r,callback:n}),nt(e).on("$destroy",function(){var i=q.get(r);i||it.off(t,e,n)})},off:function(t,e,n){if(1!==arguments.length||tt(arguments[0])){var r=H[t];r&&(H[t]=1===arguments.length?null:T(r,e,n))}else{e=arguments[0];for(var i in H)H[i]=T(H[i],e)}},pin:function(t,e){n(X(t),"element","not an element"),n(X(e),"parentElement","not an element"),t.data(Tt,e)},push:function(t,e,n,r){return n=n||{},n.domOperation=r,D(t,e,n)},enabled:function(t,e){var n=arguments.length;if(0===n)e=!!F;else{var r=X(t);if(r){var i=$(t);1===n?e=!V.get(i):V.put(i,!e)}else e=F=!!t}return e}};return it}]}],Dt=["$animateProvider",function(t){function e(t,e){t.data(s,e)}function n(t){t.removeData(s)}function i(t){return t.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(t,s,u,l,c,d){function v(t){function e(t){if(t.processed)return t;t.processed=!0;var n=t.domNode,r=n.parentNode;o.put(n,t);for(var a;r;){if(a=o.get(r)){a.processed||(a=e(a));break}r=r.parentNode}return(a||i).children.push(t),t}function n(t){var e,n=[],r=[];for(e=0;e<t.children.length;e++)r.push(t.children[e]);var i=r.length,o=0,a=[];for(e=0;e<r.length;e++){var s=r[e];i<=0&&(i=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(t){o++,r.push(t)}),i--}return a.length&&n.push(a),n}var r,i={children:[]},o=new c;for(r=0;r<t.length;r++){var a=t[r];o.put(a.domNode,t[r]={domNode:a.domNode,fn:a.fn,children:[]})}for(r=0;r<t.length;r++)e(t[r]);return n(i)}var m=[],g=f(t);return function(c,f,y){function b(t){var e="["+o+"]",n=t.hasAttribute(o)?[t]:t.querySelectorAll(e),r=[];return G(n,function(t){var e=t.getAttribute(o);e&&e.length&&r.push(t)}),r}function w(t){var e=[],n={};G(t,function(t,r){var i=t.element,a=$(i),s=t.event,u=["enter","move"].indexOf(s)>=0,l=t.structural?b(a):[];if(l.length){var c=u?"to":"from";G(l,function(t){var e=t.getAttribute(o);n[e]=n[e]||{},n[e][c]={animationID:r,element:nt(t)}})}else e.push(t)});var r={},i={};return G(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var u=a?a.animationID:s.animationID,l=u.toString();return void(r[l]||(r[l]=!0,e.push(t[u])))}var c=t[a.animationID],f=t[s.animationID],h=a.animationID.toString();if(!i[h]){var p=i[h]={structural:!0,beforeStart:function(){c.beforeStart(),f.beforeStart()},close:function(){c.close(),f.close()},classes:x(c.classes,f.classes),from:c,to:f,anchors:[]};p.classes.length?e.push(p):(e.push(c),e.push(f))}i[h].anchors.push({out:a.element,in:s.element})}),e}function x(t,e){t=t.split(" "),e=e.split(" ");for(var n=[],r=0;r<t.length;r++){var i=t[r];if("ng-"!==i.substring(0,3))for(var o=0;o<e.length;o++)if(i===e[o]){n.push(i);break}}return n.join(" ")}function C(t){for(var e=a.length-1;e>=0;e--){var n=a[e],r=u.get(n),i=r(t);if(i)return i}}function S(){c.addClass(U),D&&t.addClass(c,D),M&&(t.removeClass(c,M),M=null)}function A(t,e){function n(t){var n=i(t);n&&n.setHost(e)}t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element)}function E(){var t=i(c);!t||"leave"===f&&y.$$domOperationFired||t.end()}function _(e){c.off("$destroy",E),n(c),g(c,y),p(c,y),y.domOperation(),D&&t.removeClass(c,D),c.removeClass(U),T.complete(!e)}y=h(y);var k=["enter","move","leave"].indexOf(f)>=0,T=new l({end:function(){_()},cancel:function(){_(!0)}});if(!a.length)return _(),T;e(c,T);var O=r(c.attr("class"),r(y.addClass,y.removeClass)),D=y.tempClasses;D&&(O+=" "+D,y.tempClasses=null);var M;return k&&(M="ng-"+f+H,t.addClass(c,M)),m.push({element:c,classes:O,event:f,structural:k,options:y,beforeStart:S,close:_}),c.on("$destroy",E),m.length>1?T:(s.$$postDigest(function(){var t=[];G(m,function(e){i(e.element)?t.push(e):e.close()}),m.length=0;var e=w(t),n=[];G(e,function(t){n.push({domNode:$(t.from?t.from.element:t.element),fn:function(){t.beforeStart();var e,n=t.close,r=t.anchors?t.from.element||t.to.element:t.element;if(i(r)){var o=C(t);o&&(e=o.start)}if(e){var a=e();a.done(function(t){n(!t)}),A(t,a)}else n()}})}),d(v(n))}),T)}}]}],Mt=["$animate","$rootScope",function(t,e){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(e,n,r,i,o){var a,s;e.$watchCollection(r.ngAnimateSwap||r.for,function(r){a&&t.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=e.$new(),o(s,function(e){a=e,t.enter(e,null,n)}))})}}}];e.module("ngAnimate",[],function(){rt=e.noop,W=e.copy,Y=e.extend,nt=e.element,G=e.forEach,K=e.isArray,tt=e.isString,Q=e.isObject,et=e.isUndefined,Z=e.isDefined,J=e.isFunction,X=e.isElement}).directive("ngAnimateSwap",Mt).directive("ngAnimateChildren",gt).factory("$$rAFScheduler",mt).provider("$$animateQueue",Ot).provider("$$animation",Dt).provider("$animateCss",St).provider("$$animateCssDriver",At).provider("$$animateJs",Et).provider("$$animateJsDriver",_t)}(window,window.angular)},function(t,e){/**
	 * State-based routing for AngularJS
	 * @version v0.3.1
	 * @link http://angular-ui.github.com/
	 * @license MIT License, http://www.opensource.org/licenses/MIT
	 */
"undefined"!=typeof t&&"undefined"!=typeof e&&t.exports===e&&(t.exports="ui.router"),function(t,e,n){"use strict";function r(t,e){return U(new(U(function(){},{prototype:t})),e)}function i(t){return H(arguments,function(e){e!==t&&H(e,function(e,n){t.hasOwnProperty(n)||(t[n]=e)})}),t}function o(t,e){var n=[];for(var r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}function a(t){if(Object.keys)return Object.keys(t);var e=[];return H(t,function(t,n){e.push(n)}),e}function s(t,e){if(Array.prototype.indexOf)return t.indexOf(e,Number(arguments[2])||0);var n=t.length>>>0,r=Number(arguments[2])||0;for(r=r<0?Math.ceil(r):Math.floor(r),r<0&&(r+=n);r<n;r++)if(r in t&&t[r]===e)return r;return-1}function u(t,e,n,r){var i,u=o(n,r),l={},c=[];for(var f in u)if(u[f]&&u[f].params&&(i=a(u[f].params),i.length))for(var h in i)s(c,i[h])>=0||(c.push(i[h]),l[i[h]]=t[i[h]]);return U({},l,e)}function l(t,e,n){if(!n){n=[];for(var r in t)n.push(r)}for(var i=0;i<n.length;i++){var o=n[i];if(t[o]!=e[o])return!1}return!0}function c(t,e){var n={};return H(t,function(t){n[t]=e[t]}),n}function f(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return H(n,function(n){n in t&&(e[n]=t[n])}),e}function h(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var r in t)s(n,r)==-1&&(e[r]=t[r]);return e}function p(t,e){var n=L(t),r=n?[]:{};return H(t,function(t,i){e(t,i)&&(r[n?r.length:i]=t)}),r}function d(t,e){var n=L(t)?[]:{};return H(t,function(t,r){n[r]=e(t,r)}),n}function v(t,e){var r=1,o=2,u={},l=[],c=u,f=U(t.when(u),{$$promises:u,$$values:u});this.study=function(u){function p(t,n){if($[n]!==o){if(g.push(n),$[n]===r)throw g.splice(0,s(g,n)),new Error("Cyclic dependency: "+g.join(" -> "));if($[n]=r,V(t))m.push(n,[function(){return e.get(t)}],l);else{var i=e.annotate(t);H(i,function(t){t!==n&&u.hasOwnProperty(t)&&p(u[t],t)}),m.push(n,t,i)}g.pop(),$[n]=o}}function d(t){return F(t)&&t.then&&t.$$promises}if(!F(u))throw new Error("'invocables' must be an object");var v=a(u||{}),m=[],g=[],$={};return H(u,p),u=g=$=null,function(r,o,a){function s(){--b||(w||i(y,o.$$values),g.$$values=y,g.$$promises=g.$$promises||!0,delete g.$$inheritedValues,p.resolve(y))}function u(t){g.$$failure=t,p.reject(t)}function l(n,i,o){function l(t){f.reject(t),u(t)}function c(){if(!R(g.$$failure))try{f.resolve(e.invoke(i,a,y)),f.promise.then(function(t){y[n]=t,s()},l)}catch(t){l(t)}}var f=t.defer(),h=0;H(o,function(t){$.hasOwnProperty(t)&&!r.hasOwnProperty(t)&&(h++,$[t].then(function(e){y[t]=e,--h||c()},l))}),h||c(),$[n]=f.promise}if(d(r)&&a===n&&(a=o,o=r,r=null),r){if(!F(r))throw new Error("'locals' must be an object")}else r=c;if(o){if(!d(o))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else o=f;var p=t.defer(),g=p.promise,$=g.$$promises={},y=U({},r),b=1+m.length/3,w=!1;if(R(o.$$failure))return u(o.$$failure),g;o.$$inheritedValues&&i(y,h(o.$$inheritedValues,v)),U($,o.$$promises),o.$$values?(w=i(y,h(o.$$values,v)),g.$$inheritedValues=h(o.$$values,v),s()):(o.$$inheritedValues&&(g.$$inheritedValues=h(o.$$inheritedValues,v)),o.then(s,u));for(var x=0,C=m.length;x<C;x+=3)r.hasOwnProperty(m[x])?s():l(m[x],m[x+1],m[x+2]);return g}},this.resolve=function(t,e,n,r){return this.study(t)(e,n,r)}}function m(t,e,n){this.fromConfig=function(t,e,n){return R(t.template)?this.fromString(t.template,e):R(t.templateUrl)?this.fromUrl(t.templateUrl,e):R(t.templateProvider)?this.fromProvider(t.templateProvider,e,n):null},this.fromString=function(t,e){return q(t)?t(e):t},this.fromUrl=function(n,r){return q(n)&&(n=n(r)),null==n?null:t.get(n,{cache:e,headers:{Accept:"text/html"}}).then(function(t){return t.data})},this.fromProvider=function(t,e,r){return n.invoke(t,null,r||{params:e})}}function g(t,e,i){function o(e,n,r,i){if(m.push(e),d[e])return d[e];if(!/^\w+([-.]+\w+)*(?:\[\])?$/.test(e))throw new Error("Invalid parameter name '"+e+"' in pattern '"+t+"'");if(v[e])throw new Error("Duplicate parameter name '"+e+"' in pattern '"+t+"'");return v[e]=new W.Param(e,n,r,i),v[e]}function a(t,e,n,r){var i=["",""],o=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return o;switch(n){case!1:i=["(",")"+(r?"?":"")];break;case!0:o=o.replace(/\/$/,""),i=["(?:/(",")|/)?"];break;default:i=["("+n+"|",")?"]}return o+i[0]+e+i[1]}function s(i,o){var a,s,u,l,c;return a=i[2]||i[3],c=e.params[a],u=t.substring(h,i.index),s=o?i[4]:i[4]||("*"==i[1]?".*":null),s&&(l=W.type(s)||r(W.type("string"),{pattern:new RegExp(s,e.caseInsensitive?"i":n)})),{id:a,regexp:s,segment:u,type:l,cfg:c}}e=U({params:{}},F(e)?e:{});var u,l=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,c=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,f="^",h=0,p=this.segments=[],d=i?i.params:{},v=this.params=i?i.params.$$new():new W.ParamSet,m=[];this.source=t;for(var g,$,y;(u=l.exec(t))&&(g=s(u,!1),!(g.segment.indexOf("?")>=0));)$=o(g.id,g.type,g.cfg,"path"),f+=a(g.segment,$.type.pattern.source,$.squash,$.isOptional),p.push(g.segment),h=l.lastIndex;y=t.substring(h);var b=y.indexOf("?");if(b>=0){var w=this.sourceSearch=y.substring(b);if(y=y.substring(0,b),this.sourcePath=t.substring(0,h+b),w.length>0)for(h=0;u=c.exec(w);)g=s(u,!0),$=o(g.id,g.type,g.cfg,"search"),h=l.lastIndex}else this.sourcePath=t,this.sourceSearch="";f+=a(y)+(e.strict===!1?"/?":"")+"$",p.push(y),this.regexp=new RegExp(f,e.caseInsensitive?"i":n),this.prefix=p[0],this.$$paramNames=m}function $(t){U(this,t)}function y(){function t(t){return null!=t?t.toString().replace(/~/g,"~~").replace(/\//g,"~2F"):t}function i(t){return null!=t?t.toString().replace(/~2F/g,"/").replace(/~~/g,"~"):t}function o(){return{strict:v,caseInsensitive:h}}function u(t){return q(t)||L(t)&&q(t[t.length-1])}function l(){for(;x.length;){var t=x.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");e.extend(b[t.name],f.invoke(t.def))}}function c(t){U(this,t||{})}W=this;var f,h=!1,v=!0,m=!1,b={},w=!0,x=[],C={string:{encode:t,decode:i,is:function(t){return null==t||!R(t)||"string"==typeof t},pattern:/[^\/]*/},int:{encode:t,decode:function(t){return parseInt(t,10)},is:function(t){return R(t)&&this.decode(t.toString())===t},pattern:/\d+/},bool:{encode:function(t){return t?1:0},decode:function(t){return 0!==parseInt(t,10)},is:function(t){return t===!0||t===!1},pattern:/0|1/},date:{encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):n},decode:function(t){if(this.is(t))return t;var e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):n},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(t,e){return this.is(t)&&this.is(e)&&t.toISOString()===e.toISOString()},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:{encode:e.toJson,decode:e.fromJson,is:e.isObject,equals:e.equals,pattern:/[^\/]*/},any:{encode:e.identity,decode:e.identity,equals:e.equals,pattern:/.*/}};y.$$getDefaultValue=function(t){if(!u(t.value))return t.value;if(!f)throw new Error("Injectable functions cannot be called at configuration time");return f.invoke(t.value)},this.caseInsensitive=function(t){return R(t)&&(h=t),h},this.strictMode=function(t){return R(t)&&(v=t),v},this.defaultSquashPolicy=function(t){if(!R(t))return m;if(t!==!0&&t!==!1&&!V(t))throw new Error("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string");return m=t,t},this.compile=function(t,e){return new g(t,U(o(),e))},this.isMatcher=function(t){if(!F(t))return!1;var e=!0;return H(g.prototype,function(n,r){q(n)&&(e=e&&R(t[r])&&q(t[r]))}),e},this.type=function(t,e,n){if(!R(e))return b[t];if(b.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return b[t]=new $(U({name:t},e)),n&&(x.push({name:t,def:n}),w||l()),this},H(C,function(t,e){b[e]=new $(U({name:e},t))}),b=r(b,{}),this.$get=["$injector",function(t){return f=t,w=!1,l(),H(C,function(t,e){b[e]||(b[e]=new $(t))}),this}],this.Param=function(t,r,i,o){function l(t){var e=F(t)?a(t):[],n=s(e,"value")===-1&&s(e,"type")===-1&&s(e,"squash")===-1&&s(e,"array")===-1;return n&&(t={value:t}),t.$$fn=u(t.value)?t.value:function(){return t.value},t}function c(n,r,i){if(n.type&&r)throw new Error("Param '"+t+"' has two type configurations.");return r?r:n.type?e.isString(n.type)?b[n.type]:n.type instanceof $?n.type:new $(n.type):"config"===i?b.any:b.string}function h(){var e={array:"search"===o&&"auto"},n=t.match(/\[\]$/)?{array:!0}:{};return U(e,n,i).array}function v(t,e){var n=t.squash;if(!e||n===!1)return!1;if(!R(n)||null==n)return m;if(n===!0||V(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}function g(t,e,r,i){var o,a,u=[{from:"",to:r||e?n:""},{from:null,to:r||e?n:""}];return o=L(t.replace)?t.replace:[],V(i)&&o.push({from:i,to:n}),a=d(o,function(t){return t.from}),p(u,function(t){return s(a,t.from)===-1}).concat(o)}function y(){if(!f)throw new Error("Injectable functions cannot be called at configuration time");var t=f.invoke(i.$$fn);if(null!==t&&t!==n&&!C.type.is(t))throw new Error("Default value ("+t+") for parameter '"+C.id+"' is not an instance of Type ("+C.type.name+")");return t}function w(t){function e(t){return function(e){return e.from===t}}function n(t){var n=d(p(C.replace,e(t)),function(t){return t.to});return n.length?n[0]:t}return t=n(t),R(t)?C.type.$normalize(t):y()}function x(){return"{Param:"+t+" "+r+" squash: '"+E+"' optional: "+A+"}"}var C=this;i=l(i),r=c(i,r,o);var S=h();r=S?r.$asArray(S,"search"===o):r,"string"!==r.name||S||"path"!==o||i.value!==n||(i.value="");var A=i.value!==n,E=v(i,A),_=g(i,S,A,E);U(this,{id:t,type:r,location:o,array:S,squash:E,replace:_,isOptional:A,value:w,dynamic:n,config:i,toString:x})},c.prototype={$$new:function(){return r(this,U(new c,{$$parent:this}))},$$keys:function(){for(var t=[],e=[],n=this,r=a(c.prototype);n;)e.push(n),n=n.$$parent;return e.reverse(),H(e,function(e){H(a(e),function(e){s(t,e)===-1&&s(r,e)===-1&&t.push(e)})}),t},$$values:function(t){var e={},n=this;return H(n.$$keys(),function(r){e[r]=n[r].value(t&&t[r])}),e},$$equals:function(t,e){var n=!0,r=this;return H(r.$$keys(),function(i){var o=t&&t[i],a=e&&e[i];r[i].type.equals(o,a)||(n=!1)}),n},$$validates:function(t){var r,i,o,a,s,u=this.$$keys();for(r=0;r<u.length&&(i=this[u[r]],o=t[u[r]],o!==n&&null!==o||!i.isOptional);r++){if(a=i.type.$normalize(o),!i.type.is(a))return!1;if(s=i.type.encode(a),e.isString(s)&&!i.type.pattern.exec(s))return!1}return!0},$$parent:n},this.ParamSet=c}function b(t,r){function i(t){var e=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(t.source);return null!=e?e[1].replace(/\\(.)/g,"$1"):""}function o(t,e){return t.replace(/\$(\$|\d{1,2})/,function(t,n){return e["$"===n?0:Number(n)]})}function a(t,e,n){if(!n)return!1;var r=t.invoke(e,e,{$match:n});return!R(r)||r}function s(r,i,o,a,s){function h(t,e,n){return"/"===m?t:e?m.slice(0,-1)+t:n?m.slice(1)+t:t}function p(t){function e(t){var e=t(o,r);return!!e&&(V(e)&&r.replace().url(e),!0)}if(!t||!t.defaultPrevented){v&&r.url()===v;v=n;var i,a=l.length;for(i=0;i<a;i++)if(e(l[i]))return;c&&e(c)}}function d(){return u=u||i.$on("$locationChangeSuccess",p)}var v,m=a.baseHref(),g=r.url();return f||d(),{sync:function(){p()},listen:function(){return d()},update:function(t){return t?void(g=r.url()):void(r.url()!==g&&(r.url(g),r.replace()))},push:function(t,e,i){var o=t.format(e||{});null!==o&&e&&e["#"]&&(o+="#"+e["#"]),r.url(o),v=i&&i.$$avoidResync?r.url():n,i&&i.replace&&r.replace()},href:function(n,i,o){if(!n.validates(i))return null;var a=t.html5Mode();e.isObject(a)&&(a=a.enabled),a=a&&s.history;var u=n.format(i);if(o=o||{},a||null===u||(u="#"+t.hashPrefix()+u),null!==u&&i&&i["#"]&&(u+="#"+i["#"]),u=h(u,a,o.absolute),!o.absolute||!u)return u;var l=!a&&u?"/":"",c=r.port();return c=80===c||443===c?"":":"+c,[r.protocol(),"://",r.host(),c,l,u].join("")}}}var u,l=[],c=null,f=!1;this.rule=function(t){if(!q(t))throw new Error("'rule' must be a function");return l.push(t),this},this.otherwise=function(t){if(V(t)){var e=t;t=function(){return e}}else if(!q(t))throw new Error("'rule' must be a function");return c=t,this},this.when=function(t,e){var n,s=V(e);if(V(t)&&(t=r.compile(t)),!s&&!q(e)&&!L(e))throw new Error("invalid 'handler' in when()");var u={matcher:function(t,e){return s&&(n=r.compile(e),e=["$match",function(t){return n.format(t)}]),U(function(n,r){return a(n,e,t.exec(r.path(),r.search()))},{prefix:V(t.prefix)?t.prefix:""})},regex:function(t,e){if(t.global||t.sticky)throw new Error("when() RegExp must not be global or sticky");return s&&(n=e,e=["$match",function(t){return o(n,t)}]),U(function(n,r){return a(n,e,t.exec(r.path()))},{prefix:i(t)})}},l={matcher:r.isMatcher(t),regex:t instanceof RegExp};for(var c in l)if(l[c])return this.rule(u[c](t,e));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(t){t===n&&(t=!0),f=t},this.$get=s,s.$inject=["$location","$rootScope","$injector","$browser","$sniffer"]}function w(t,i){function o(t){return 0===t.indexOf(".")||0===t.indexOf("^")}function h(t,e){if(!t)return n;var r=V(t),i=r?t:t.name,a=o(i);if(a){if(!e)throw new Error("No reference point given for path '"+i+"'");e=h(e);for(var s=i.split("."),u=0,l=s.length,c=e;u<l;u++)if(""!==s[u]||0!==u){if("^"!==s[u])break;if(!c.parent)throw new Error("Path '"+i+"' not valid for state '"+e.name+"'");c=c.parent}else c=e;s=s.slice(u).join("."),i=c.name+(c.name&&s?".":"")+s}var f=A[i];return!f||!r&&(r||f!==t&&f.self!==t)?n:f}function p(t,e){E[t]||(E[t]=[]),E[t].push(e)}function v(t){for(var e=E[t]||[];e.length;)m(e.shift())}function m(e){e=r(e,{self:e,resolve:e.resolve||{},toString:function(){return this.name}});var n=e.name;if(!V(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(A.hasOwnProperty(n))throw new Error("State '"+n+"' is already defined");var i=n.indexOf(".")!==-1?n.substring(0,n.lastIndexOf(".")):V(e.parent)?e.parent:F(e.parent)&&V(e.parent.name)?e.parent.name:"";if(i&&!A[i])return p(i,e.self);for(var o in k)q(k[o])&&(e[o]=k[o](e,k.$delegates[o]));return A[n]=e,!e[_]&&e.url&&t.when(e.url,["$match","$stateParams",function(t,n){S.$current.navigable==e&&l(t,n)||S.transitionTo(e,t,{inherit:!0,location:!1})}]),v(n),e}function g(t){return t.indexOf("*")>-1}function $(t){for(var e=t.split("."),n=S.$current.name.split("."),r=0,i=e.length;r<i;r++)"*"===e[r]&&(n[r]="*");return"**"===e[0]&&(n=n.slice(s(n,e[1])),n.unshift("**")),"**"===e[e.length-1]&&(n.splice(s(n,e[e.length-2])+1,Number.MAX_VALUE),n.push("**")),e.length==n.length&&n.join("")===e.join("")}function y(t,e){return V(t)&&!R(e)?k[t]:q(e)&&V(t)?(k[t]&&!k.$delegates[t]&&(k.$delegates[t]=k[t]),k[t]=e,this):this}function b(t,e){return F(t)?e=t:e.name=t,m(e),this}function w(t,i,o,s,f,p,v,m,y){function b(e,n,r,o){var a=t.$broadcast("$stateNotFound",e,n,r);if(a.defaultPrevented)return v.update(),T;if(!a.retry)return null;if(o.$retry)return v.update(),O;var s=S.transition=i.when(a.retry);return s.then(function(){return s!==S.transition?E:(e.options.$retry=!0,S.transitionTo(e.to,e.toParams,e.options))},function(){return T}),v.update(),s}function w(t,n,r,a,u,l){function h(){var n=[];return H(t.views,function(r,i){var a=r.resolve&&r.resolve!==t.resolve?r.resolve:{};a.$template=[function(){return o.load(i,{view:r,locals:u.globals,params:p,notify:l.notify})||""}],n.push(f.resolve(a,u.globals,u.resolve,t).then(function(n){if(q(r.controllerProvider)||L(r.controllerProvider)){var o=e.extend({},a,u.globals);n.$$controller=s.invoke(r.controllerProvider,null,o)}else n.$$controller=r.controller;n.$$state=t,n.$$controllerAs=r.controllerAs,n.$$resolveAs=r.resolveAs,u[i]=n}))}),i.all(n).then(function(){return u.globals})}var p=r?n:c(t.params.$$keys(),n),d={$stateParams:p};u.resolve=f.resolve(t.resolve,d,u.resolve,t);var v=[u.resolve.then(function(t){u.globals=t})];return a&&v.push(a),i.all(v).then(h).then(function(t){return u})}var E=i.reject(new Error("transition superseded")),k=i.reject(new Error("transition prevented")),T=i.reject(new Error("transition aborted")),O=i.reject(new Error("transition failed"));return C.locals={resolve:null,globals:{$stateParams:{}}},S={params:{},current:C.self,$current:C,transition:null},S.reload=function(t){return S.transitionTo(S.current,p,{reload:t||!0,inherit:!1,notify:!0})},S.go=function(t,e,n){return S.transitionTo(t,e,U({inherit:!0,relative:S.$current},n))},S.transitionTo=function(e,n,o){n=n||{},o=U({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},o||{});var a,l=S.$current,f=S.params,d=l.path,m=h(e,o.relative),g=n["#"];if(!R(m)){var $={to:e,toParams:n,options:o},y=b($,l.self,f,o);if(y)return y;if(e=$.to,n=$.toParams,o=$.options,m=h(e,o.relative),!R(m)){if(!o.relative)throw new Error("No such state '"+e+"'");throw new Error("Could not resolve '"+e+"' from state '"+o.relative+"'")}}if(m[_])throw new Error("Cannot transition to abstract state '"+e+"'");if(o.inherit&&(n=u(p,n||{},S.$current,m)),!m.params.$$validates(n))return O;n=m.params.$$values(n),e=m;var A=e.path,T=0,D=A[T],M=C.locals,P=[];if(o.reload){if(V(o.reload)||F(o.reload)){if(F(o.reload)&&!o.reload.name)throw new Error("Invalid reload state object");var j=o.reload===!0?d[0]:h(o.reload);if(o.reload&&!j)throw new Error("No such reload state '"+(V(o.reload)?o.reload:o.reload.name)+"'");for(;D&&D===d[T]&&D!==j;)M=P[T]=D.locals,T++,D=A[T]}}else for(;D&&D===d[T]&&D.ownParams.$$equals(n,f);)M=P[T]=D.locals,T++,D=A[T];if(x(e,n,l,f,M,o))return g&&(n["#"]=g),S.params=n,z(S.params,p),z(c(e.params.$$keys(),p),e.locals.globals.$stateParams),o.location&&e.navigable&&e.navigable.url&&(v.push(e.navigable.url,n,{$$avoidResync:!0,replace:"replace"===o.location}),v.update(!0)),S.transition=null,i.when(S.current);if(n=c(e.params.$$keys(),n||{}),g&&(n["#"]=g),o.notify&&t.$broadcast("$stateChangeStart",e.self,n,l.self,f,o).defaultPrevented)return t.$broadcast("$stateChangeCancel",e.self,n,l.self,f),null==S.transition&&v.update(),k;for(var I=i.when(M),N=T;N<A.length;N++,D=A[N])M=P[N]=r(M),I=w(D,n,D===e,I,M,o);var q=S.transition=I.then(function(){var r,i,a;if(S.transition!==q)return E;for(r=d.length-1;r>=T;r--)a=d[r],a.self.onExit&&s.invoke(a.self.onExit,a.self,a.locals.globals),a.locals=null;for(r=T;r<A.length;r++)i=A[r],i.locals=P[r],i.self.onEnter&&s.invoke(i.self.onEnter,i.self,i.locals.globals);return S.transition!==q?E:(S.$current=e,S.current=e.self,S.params=n,z(S.params,p),S.transition=null,o.location&&e.navigable&&v.push(e.navigable.url,e.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===o.location}),o.notify&&t.$broadcast("$stateChangeSuccess",e.self,n,l.self,f),v.update(!0),S.current)}).then(null,function(r){return S.transition!==q?E:(S.transition=null,a=t.$broadcast("$stateChangeError",e.self,n,l.self,f,r),a.defaultPrevented||v.update(),i.reject(r))});return q},S.is=function(t,e,r){r=U({relative:S.$current},r||{});var i=h(t,r.relative);return R(i)?S.$current===i&&(!e||l(i.params.$$values(e),p)):n},S.includes=function(t,e,r){if(r=U({relative:S.$current},r||{}),V(t)&&g(t)){if(!$(t))return!1;t=S.$current.name}var i=h(t,r.relative);return R(i)?!!R(S.$current.includes[i.name])&&(!e||l(i.params.$$values(e),p,a(e))):n},S.href=function(t,e,r){r=U({lossy:!0,inherit:!0,absolute:!1,relative:S.$current},r||{});var i=h(t,r.relative);if(!R(i))return null;r.inherit&&(e=u(p,e||{},S.$current,i));var o=i&&r.lossy?i.navigable:i;return o&&o.url!==n&&null!==o.url?v.href(o.url,c(i.params.$$keys().concat("#"),e||{}),{absolute:r.absolute}):null},S.get=function(t,e){if(0===arguments.length)return d(a(A),function(t){return A[t].self});var n=h(t,e||S.$current);return n&&n.self?n.self:null},S}function x(t,e,n,r,i,o){function a(t,e,n){function r(e){return"search"!=t.params[e].location}var i=t.params.$$keys().filter(r),o=f.apply({},[t.params].concat(i)),a=new W.ParamSet(o);return a.$$equals(e,n)}if(!o.reload&&t===n&&(i===n.locals||t.self.reloadOnSearch===!1&&a(n,r,e)))return!0}var C,S,A={},E={},_="abstract",k={parent:function(t){if(R(t.parent)&&t.parent)return h(t.parent);var e=/^(.+)\.[^.]+$/.exec(t.name);return e?h(e[1]):C},data:function(t){return t.parent&&t.parent.data&&(t.data=t.self.data=r(t.parent.data,t.data)),t.data},url:function(t){var e=t.url,n={params:t.params||{}};if(V(e))return"^"==e.charAt(0)?i.compile(e.substring(1),n):(t.parent.navigable||C).url.concat(e,n);if(!e||i.isMatcher(e))return e;throw new Error("Invalid url '"+e+"' in state '"+t+"'")},navigable:function(t){return t.url?t:t.parent?t.parent.navigable:null},ownParams:function(t){var e=t.url&&t.url.params||new W.ParamSet;return H(t.params||{},function(t,n){e[n]||(e[n]=new W.Param(n,null,t,"config"))}),e},params:function(t){var e=f(t.ownParams,t.ownParams.$$keys());return t.parent&&t.parent.params?U(t.parent.params.$$new(),e):new W.ParamSet},views:function(t){var e={};return H(R(t.views)?t.views:{"":t},function(n,r){r.indexOf("@")<0&&(r+="@"+t.parent.name),n.resolveAs=n.resolveAs||t.resolveAs||"$resolve",e[r]=n}),e},path:function(t){return t.parent?t.parent.path.concat(t):[]},includes:function(t){var e=t.parent?U({},t.parent.includes):{};return e[t.name]=!0,e},$delegates:{}};C=m({name:"",url:"^",views:null,abstract:!0}),C.navigable=null,this.decorator=y,this.state=b,this.$get=w,w.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function x(){function t(t,e){return{load:function(t,n){var r,i={template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}};return n=U(i,n),n.view&&(r=e.fromConfig(n.view,n.params,n.locals)),r}}}this.$get=t,t.$inject=["$rootScope","$templateFactory"]}function C(){var t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,n){return t?e:function(t){return n(function(){t[0].scrollIntoView()},0,!1)}}]}function S(t,n,r,i,o){function a(){return n.has?function(t){return n.has(t)?n.get(t):null}:function(t){try{return n.get(t)}catch(t){return null}}}function s(t,n){var r=function(){return{enter:function(t,e,n){e.after(t),n()},leave:function(t,e){t.remove(),e()}}};if(c)return{enter:function(t,n,r){e.version.minor>2?c.enter(t,null,n).then(r):c.enter(t,null,n,r)},leave:function(t,n){e.version.minor>2?c.leave(t).then(n):c.leave(t,n)}};if(l){var i=l&&l(n,t);return{enter:function(t,e,n){i.enter(t,null,e),n()},leave:function(t,e){i.leave(t),e()}}}return r()}var u=a(),l=u("$animator"),c=u("$animate"),f={restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(n,a,u){return function(n,a,l){function c(){if(h&&(h.remove(),h=null),d&&(d.$destroy(),d=null),p){var t=p.data("$uiViewAnim");$.leave(p,function(){t.$$animLeave.resolve(),h=null}),h=p,p=null}}function f(s){var f,h=E(n,l,a,i),y=h&&t.$current&&t.$current.locals[h];if(s||y!==v){f=n.$new(),v=t.$current.locals[h],f.$emit("$viewContentLoading",h);var b=u(f,function(t){var i=o.defer(),s=o.defer(),u={$animEnter:i.promise,$animLeave:s.promise,$$animLeave:s};t.data("$uiViewAnim",u),$.enter(t,a,function(){i.resolve(),d&&d.$emit("$viewContentAnimationEnded"),(e.isDefined(g)&&!g||n.$eval(g))&&r(t)}),c()});p=b,d=f,d.$emit("$viewContentLoaded",h),d.$eval(m)}}var h,p,d,v,m=l.onload||"",g=l.autoscroll,$=s(l,n);a.inheritedData("$uiView");n.$on("$stateChangeSuccess",function(){f(!1)}),f(!0)}}};return f}function A(t,n,r,i){return{restrict:"ECA",priority:-400,compile:function(o){var a=o.html();return function(o,s,u){var l=r.$current,c=E(o,u,s,i),f=l&&l.locals[c];if(f){s.data("$uiView",{name:c,state:f.$$state}),s.html(f.$template?f.$template:a);var h=e.extend({},f);o[f.$$resolveAs]=h;var p=t(s.contents());if(f.$$controller){f.$scope=o,f.$element=s;var d=n(f.$$controller,f);f.$$controllerAs&&(o[f.$$controllerAs]=d,o[f.$$controllerAs][f.$$resolveAs]=h),q(d.$onInit)&&d.$onInit(),s.data("$ngControllerController",d),s.children().data("$ngControllerController",d)}p(o)}}}}}function E(t,e,n,r){var i=r(e.uiView||e.name||"")(t),o=n.inheritedData("$uiView");return i.indexOf("@")>=0?i:i+"@"+(o?o.state.name:"")}function _(t,e){var n,r=t.match(/^\s*({[^}]*})\s*$/);if(r&&(t=e+"("+r[1]+")"),n=t.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1],paramExpr:n[3]||null}}function k(t){var e=t.parent().inheritedData("$uiView");if(e&&e.state&&e.state.name)return e.state}function T(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 O(t,e,n,r,i){return function(o){var a=o.which||o.button,s=i();if(!(a>1||o.ctrlKey||o.metaKey||o.shiftKey||t.attr("target"))){var u=n(function(){e.go(s.state,s.params,s.options)});o.preventDefault();var l=r.isAnchor&&!s.href?1:0;o.preventDefault=function(){l--<=0&&n.cancel(u)}}}}function D(t,e){return{relative:k(t)||e.$current,inherit:!0}}function M(t,n){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,o,a){var s,u=_(o.uiSref,t.current.name),l={state:u.state,href:null,params:null},c=T(i),f=a[1]||a[0],h=null;l.options=U(D(i,t),o.uiSrefOpts?r.$eval(o.uiSrefOpts):{});var p=function(n){n&&(l.params=e.copy(n)),l.href=t.href(u.state,l.params,l.options),h&&h(),f&&(h=f.$$addStateInfo(u.state,l.params)),null!==l.href&&o.$set(c.attr,l.href)};u.paramExpr&&(r.$watch(u.paramExpr,function(t){t!==l.params&&p(t)},!0),l.params=e.copy(r.$eval(u.paramExpr))),p(),c.clickable&&(s=O(i,t,n,c,function(){return l}),i.bind("click",s),r.$on("$destroy",function(){i.unbind("click",s)}))}}}function P(t,e){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,r,i,o){function a(e){h.state=e[0],h.params=e[1],h.options=e[2],h.href=t.href(h.state,h.params,h.options),p&&p(),l&&(p=l.$$addStateInfo(h.state,h.params)),h.href&&i.$set(u.attr,h.href)}var s,u=T(r),l=o[1]||o[0],c=[i.uiState,i.uiStateParams||null,i.uiStateOpts||null],f="["+c.map(function(t){return t||"null"}).join(", ")+"]",h={state:null,params:null,options:null,href:null},p=null;n.$watch(f,a,!0),a(n.$eval(f)),u.clickable&&(s=O(r,t,e,u,function(){return h}),r.bind("click",s),n.$on("$destroy",function(){r.unbind("click",s)}))}}}function j(t,e,n){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(e,r,i,o){function a(e,n,i){var o=t.get(e,k(r)),a=s(e,n),u={state:o||{name:e},params:n,hash:a};return v.push(u),m[a]=i,function(){var t=v.indexOf(u);t!==-1&&v.splice(t,1)}}function s(t,n){if(!V(t))throw new Error("state should be a string");return F(n)?t+B(n):(n=e.$eval(n),F(n)?t+B(n):t)}function u(){for(var t=0;t<v.length;t++)f(v[t].state,v[t].params)?l(r,m[v[t].hash]):c(r,m[v[t].hash]),h(v[t].state,v[t].params)?l(r,p):c(r,p)}function l(t,e){o(function(){t.addClass(e)})}function c(t,e){t.removeClass(e)}function f(e,n){return t.includes(e.name,n)}function h(e,n){return t.is(e.name,n)}var p,d,v=[],m={};p=n(i.uiSrefActiveEq||"",!1)(e);try{d=e.$eval(i.uiSrefActive)}catch(t){}d=d||n(i.uiSrefActive||"",!1)(e),F(d)&&H(d,function(n,r){if(V(n)){var i=_(n,t.current.name);a(i.state,e.$eval(i.paramExpr),r)}}),this.$$addStateInfo=function(t,e){if(!(F(d)&&v.length>0)){var n=a(t,e,d);return u(),n}},e.$on("$stateChangeSuccess",u),u()}]}}function I(t){var e=function(e,n){return t.is(e,n)};return e.$stateful=!0,e}function N(t){var e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}var R=e.isDefined,q=e.isFunction,V=e.isString,F=e.isObject,L=e.isArray,H=e.forEach,U=e.extend,z=e.copy,B=e.toJson;e.module("ui.router.util",["ng"]),e.module("ui.router.router",["ui.router.util"]),e.module("ui.router.state",["ui.router.router","ui.router.util"]),e.module("ui.router",["ui.router.state"]),e.module("ui.router.compat",["ui.router"]),v.$inject=["$q","$injector"],e.module("ui.router.util").service("$resolve",v),m.$inject=["$http","$templateCache","$injector"],e.module("ui.router.util").service("$templateFactory",m);var W;g.prototype.concat=function(t,e){var n={caseInsensitive:W.caseInsensitive(),strict:W.strictMode(),squash:W.defaultSquashPolicy()};return new g(this.sourcePath+t+this.sourceSearch,U(n,e),this)},g.prototype.toString=function(){return this.source},g.prototype.exec=function(t,e){function n(t){function e(t){return t.split("").reverse().join("")}function n(t){return t.replace(/\\-/g,"-")}var r=e(t).split(/-(?!\\)/),i=d(r,e);return d(i,n).reverse()}var r=this.regexp.exec(t);if(!r)return null;e=e||{};var i,o,a,s=this.parameters(),u=s.length,l=this.segments.length-1,c={};if(l!==r.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");var f,h;for(i=0;i<l;i++){for(a=s[i],f=this.params[a],h=r[i+1],o=0;o<f.replace.length;o++)f.replace[o].from===h&&(h=f.replace[o].to);h&&f.array===!0&&(h=n(h)),R(h)&&(h=f.type.decode(h)),c[a]=f.value(h)}for(;i<u;i++){for(a=s[i],c[a]=this.params[a].value(e[a]),f=this.params[a],h=e[a],o=0;o<f.replace.length;o++)f.replace[o].from===h&&(h=f.replace[o].to);R(h)&&(h=f.type.decode(h)),c[a]=f.value(h)}return c},g.prototype.parameters=function(t){return R(t)?this.params[t]||null:this.$$paramNames},g.prototype.validates=function(t){return this.params.$$validates(t)},g.prototype.format=function(t){function e(t){return encodeURIComponent(t).replace(/-/g,function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()})}t=t||{};var n=this.segments,r=this.parameters(),i=this.params;if(!this.validates(t))return null;var o,a=!1,s=n.length-1,u=r.length,l=n[0];for(o=0;o<u;o++){var c=o<s,f=r[o],h=i[f],p=h.value(t[f]),v=h.isOptional&&h.type.equals(h.value(),p),m=!!v&&h.squash,g=h.type.encode(p);if(c){var $=n[o+1],y=o+1===s;if(m===!1)null!=g&&(l+=L(g)?d(g,e).join("-"):encodeURIComponent(g)),l+=$;else if(m===!0){var b=l.match(/\/$/)?/\/?(.*)/:/(.*)/;l+=$.match(b)[1]}else V(m)&&(l+=m+$);y&&h.squash===!0&&"/"===l.slice(-1)&&(l=l.slice(0,-1))}else{if(null==g||v&&m!==!1)continue;if(L(g)||(g=[g]),0===g.length)continue;g=d(g,encodeURIComponent).join("&"+f+"="),l+=(a?"&":"?")+(f+"="+g),a=!0}}return l},$.prototype.is=function(t,e){return!0},$.prototype.encode=function(t,e){return t},$.prototype.decode=function(t,e){return t},$.prototype.equals=function(t,e){return t==e},$.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},$.prototype.pattern=/.*/,$.prototype.toString=function(){return"{Type:"+this.name+"}"},$.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},$.prototype.$asArray=function(t,e){function r(t,e){function r(t,e){return function(){return t[e].apply(t,arguments)}}function i(t){return L(t)?t:R(t)?[t]:[]}function o(t){switch(t.length){case 0:return n;case 1:return"auto"===e?t[0]:t;default:return t}}function a(t){return!t}function s(t,e){return function(n){if(L(n)&&0===n.length)return n;n=i(n);var r=d(n,t);return e===!0?0===p(r,a).length:o(r)}}function u(t){return function(e,n){var r=i(e),o=i(n);if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++)if(!t(r[a],o[a]))return!1;return!0}}this.encode=s(r(t,"encode")),this.decode=s(r(t,"decode")),this.is=s(r(t,"is"),!0),this.equals=u(r(t,"equals")),this.pattern=t.pattern,this.$normalize=s(r(t,"$normalize")),this.name=t.name,this.$arrayMode=e}if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new r(this,t)},e.module("ui.router.util").provider("$urlMatcherFactory",y),e.module("ui.router.util").run(["$urlMatcherFactory",function(t){}]),b.$inject=["$locationProvider","$urlMatcherFactoryProvider"],e.module("ui.router.router").provider("$urlRouter",b),w.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],e.module("ui.router.state").factory("$stateParams",function(){return{}}).constant("$state.runtime",{autoinject:!0}).provider("$state",w).run(["$injector",function(t){t.get("$state.runtime").autoinject&&t.get("$state");
}]),x.$inject=[],e.module("ui.router.state").provider("$view",x),e.module("ui.router.state").provider("$uiViewScroll",C),S.$inject=["$state","$injector","$uiViewScroll","$interpolate","$q"],A.$inject=["$compile","$controller","$state","$interpolate"],e.module("ui.router.state").directive("uiView",S),e.module("ui.router.state").directive("uiView",A),M.$inject=["$state","$timeout"],P.$inject=["$state","$timeout"],j.$inject=["$state","$stateParams","$interpolate"],e.module("ui.router.state").directive("uiSref",M).directive("uiSrefActive",j).directive("uiSrefActiveEq",j).directive("uiState",P),I.$inject=["$state"],N.$inject=["$state"],e.module("ui.router.state").filter("isState",I).filter("includedByState",N)}(window,window.angular)},function(t,e,n){var r,i,o;!function(a){"use strict";i=[n(8)],r=a,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o))}(function(t,e){"use strict";function n(e,n,r,i){for(var o=[],a=0;a<e.length;a++){var s=e[a];if(s){var u=tinycolor(s),l=u.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";l+=tinycolor.equals(n,s)?" sp-thumb-active":"";var c=u.toString(i.preferredFormat||"rgb"),f=m?"background-color:"+u.toRgbString():"filter:"+u.toFilter();o.push('<span title="'+c+'" data-color="'+u.toRgbString()+'" class="'+l+'"><span class="sp-thumb-inner" style="'+f+';" /></span>')}else{var h="sp-clear-display";o.push(t("<div />").append(t('<span data-color="" style="background-color:transparent;" class="'+h+'"></span>').attr("title",i.noColorSelectedText)).html())}}return"<div class='sp-cf "+r+"'>"+o.join("")+"</div>"}function r(){for(var t=0;t<d.length;t++)d[t]&&d[t].hide()}function i(e,n){var r=t.extend({},p,e);return r.callbacks={move:l(r.move,n),change:l(r.change,n),show:l(r.show,n),hide:l(r.hide,n),beforeShow:l(r.beforeShow,n)},r}function o(o,s){function l(){if(W.showPaletteOnly&&(W.showPalette=!0),qt.text(W.showPaletteOnly?W.togglePaletteMoreText:W.togglePaletteLessText),W.palette){pt=W.palette.slice(0),dt=t.isArray(pt[0])?pt:[pt],vt={};for(var e=0;e<dt.length;e++)for(var n=0;n<dt[e].length;n++){var r=tinycolor(dt[e][n]).toRgbString();vt[r]=!0}}Ct.toggleClass("sp-flat",Y),Ct.toggleClass("sp-input-disabled",!W.showInput),Ct.toggleClass("sp-alpha-enabled",W.showAlpha),Ct.toggleClass("sp-clear-enabled",Zt),Ct.toggleClass("sp-buttons-disabled",!W.showButtons),Ct.toggleClass("sp-palette-buttons-disabled",!W.togglePaletteOnly),Ct.toggleClass("sp-palette-disabled",!W.showPalette),Ct.toggleClass("sp-palette-only",W.showPaletteOnly),Ct.toggleClass("sp-initial-disabled",!W.showInitial),Ct.addClass(W.className).addClass(W.containerClassName),F()}function p(){function e(e){return e.data&&e.data.ignore?(P(t(e.target).closest(".sp-thumb-el").data("color")),N()):(P(t(e.target).closest(".sp-thumb-el").data("color")),N(),V(!0),W.hideAfterPaletteSelect&&D()),!1}if(v&&Ct.find("*:not(input)").attr("unselectable","on"),l(),Lt&&wt.after(Ht).hide(),Zt||Nt.hide(),Y)wt.after(Ct).hide();else{var n="parent"===W.appendTo?wt.parent():t(W.appendTo);1!==n.length&&(n=t("body")),n.append(Ct)}y(),Ut.bind("click.spectrum touchstart.spectrum",function(e){xt||_(),e.stopPropagation(),t(e.target).is("input")||e.preventDefault()}),(wt.is(":disabled")||W.disabled===!0)&&z(),Ct.click(u),Mt.change(E),Mt.bind("paste",function(){setTimeout(E,1)}),Mt.keydown(function(t){13==t.keyCode&&E()}),It.text(W.cancelText),It.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),M(),D()}),Nt.attr("title",W.clearText),Nt.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),Kt=!0,N(),Y&&V(!0)}),Rt.text(W.chooseText),Rt.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),v&&Mt.is(":focus")&&Mt.trigger("change"),I()&&(V(!0),D())}),qt.text(W.showPaletteOnly?W.togglePaletteMoreText:W.togglePaletteLessText),qt.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),W.showPaletteOnly=!W.showPaletteOnly,W.showPaletteOnly||Y||Ct.css("left","-="+(St.outerWidth(!0)+5)),l()}),c(Ot,function(t,e,n){ht=t/at,Kt=!1,n.shiftKey&&(ht=Math.round(10*ht)/10),N()},S,A),c(_t,function(t,e){lt=parseFloat(e/it),Kt=!1,W.showAlpha||(ht=1),N()},S,A),c(At,function(t,e,n){if(n.shiftKey){if(!yt){var r=ct*et,i=nt-ft*nt,o=Math.abs(t-r)>Math.abs(e-i);yt=o?"x":"y"}}else yt=null;var a=!yt||"x"===yt,s=!yt||"y"===yt;a&&(ct=parseFloat(t/et)),s&&(ft=parseFloat((nt-e)/nt)),Kt=!1,W.showAlpha||(ht=1),N()},S,A),Bt?(P(Bt),R(),Yt=W.preferredFormat||tinycolor(Bt).format,b(Bt)):R(),Y&&k();var r=v?"mousedown.spectrum":"click.spectrum touchstart.spectrum";Pt.delegate(".sp-thumb-el",r,e),jt.delegate(".sp-thumb-el:nth-child(1)",r,{ignore:!0},e)}function y(){if(K&&window.localStorage){try{var e=window.localStorage[K].split(",#");e.length>1&&(delete window.localStorage[K],t.each(e,function(t,e){b(e)}))}catch(t){}try{mt=window.localStorage[K].split(";")}catch(t){}}}function b(e){if(G){var n=tinycolor(e).toRgbString();if(!vt[n]&&t.inArray(n,mt)===-1)for(mt.push(n);mt.length>gt;)mt.shift();if(K&&window.localStorage)try{window.localStorage[K]=mt.join(";")}catch(t){}}}function w(){var t=[];if(W.showPalette)for(var e=0;e<mt.length;e++){var n=tinycolor(mt[e]).toRgbString();vt[n]||t.push(mt[e])}return t.reverse().slice(0,W.maxSelectionSize)}function x(){var e=j(),r=t.map(dt,function(t,r){return n(t,e,"sp-palette-row sp-palette-row-"+r,W)});y(),mt&&r.push(n(w(),e,"sp-palette-row sp-palette-row-selection",W)),Pt.html(r.join(""))}function C(){if(W.showInitial){var t=Wt,e=j();jt.html(n([t,e],e,"sp-palette-row-initial",W))}}function S(){(nt<=0||et<=0||it<=0)&&F(),tt=!0,Ct.addClass($t),yt=null,wt.trigger("dragstart.spectrum",[j()])}function A(){tt=!1,Ct.removeClass($t),wt.trigger("dragstop.spectrum",[j()])}function E(){var t=Mt.val();if(null!==t&&""!==t||!Zt){var e=tinycolor(t);e.isValid()?(P(e),V(!0)):Mt.addClass("sp-validation-error")}else P(null),V(!0)}function _(){Q?D():k()}function k(){var e=t.Event("beforeShow.spectrum");return Q?void F():(wt.trigger(e,[j()]),void(X.beforeShow(j())===!1||e.isDefaultPrevented()||(r(),Q=!0,t(bt).bind("keydown.spectrum",T),t(bt).bind("click.spectrum",O),t(window).bind("resize.spectrum",J),Ht.addClass("sp-active"),Ct.removeClass("sp-hidden"),F(),R(),Wt=j(),C(),X.show(Wt),wt.trigger("show.spectrum",[Wt]))))}function T(t){27===t.keyCode&&D()}function O(t){2!=t.button&&(tt||(Gt?V(!0):M(),D()))}function D(){Q&&!Y&&(Q=!1,t(bt).unbind("keydown.spectrum",T),t(bt).unbind("click.spectrum",O),t(window).unbind("resize.spectrum",J),Ht.removeClass("sp-active"),Ct.addClass("sp-hidden"),X.hide(j()),wt.trigger("hide.spectrum",[j()]))}function M(){P(Wt,!0)}function P(t,e){if(tinycolor.equals(t,j()))return void R();var n,r;!t&&Zt?Kt=!0:(Kt=!1,n=tinycolor(t),r=n.toHsv(),lt=r.h%360/360,ct=r.s,ft=r.v,ht=r.a),R(),n&&n.isValid()&&!e&&(Yt=W.preferredFormat||n.getFormat())}function j(t){return t=t||{},Zt&&Kt?null:tinycolor.fromRatio({h:lt,s:ct,v:ft,a:Math.round(100*ht)/100},{format:t.format||Yt})}function I(){return!Mt.hasClass("sp-validation-error")}function N(){R(),X.move(j()),wt.trigger("move.spectrum",[j()])}function R(){Mt.removeClass("sp-validation-error"),q();var t=tinycolor.fromRatio({h:lt,s:1,v:1});At.css("background-color",t.toHexString());var e=Yt;ht<1&&(0!==ht||"name"!==e)&&("hex"!==e&&"hex3"!==e&&"hex6"!==e&&"name"!==e||(e="rgb"));var n=j({format:e}),r="";if(zt.removeClass("sp-clear-display"),zt.css("background-color","transparent"),!n&&Zt)zt.addClass("sp-clear-display");else{var i=n.toHexString(),o=n.toRgbString();if(m||1===n.alpha?zt.css("background-color",o):(zt.css("background-color","transparent"),zt.css("filter",n.toFilter())),W.showAlpha){var a=n.toRgb();a.a=0;var s=tinycolor(a).toRgbString(),u="linear-gradient(left, "+s+", "+i+")";v?Tt.css("filter",tinycolor(s).toFilter({gradientType:1},i)):(Tt.css("background","-webkit-"+u),Tt.css("background","-moz-"+u),Tt.css("background","-ms-"+u),Tt.css("background","linear-gradient(to right, "+s+", "+i+")"))}r=n.toString(e)}W.showInput&&Mt.val(r),W.showPalette&&x(),C()}function q(){var t=ct,e=ft;if(Zt&&Kt)Dt.hide(),kt.hide(),Et.hide();else{Dt.show(),kt.show(),Et.show();var n=t*et,r=nt-e*nt;n=Math.max(-rt,Math.min(et-rt,n-rt)),r=Math.max(-rt,Math.min(nt-rt,r-rt)),Et.css({top:r+"px",left:n+"px"});var i=ht*at;Dt.css({left:i-st/2+"px"});var o=lt*it;kt.css({top:o-ut+"px"})}}function V(t){var e=j(),n="",r=!tinycolor.equals(e,Wt);e&&(n=e.toString(Yt),b(e)),Vt&&wt.val(n),t&&r&&(X.change(e),wt.trigger("change",[e]))}function F(){Q&&(et=At.width(),nt=At.height(),rt=Et.height(),ot=_t.width(),it=_t.height(),ut=kt.height(),at=Ot.width(),st=Dt.width(),Y||(Ct.css("position","absolute"),W.offset?Ct.offset(W.offset):Ct.offset(a(Ct,Ut))),q(),W.showPalette&&x(),wt.trigger("reflow.spectrum"))}function L(){wt.show(),Ut.unbind("click.spectrum touchstart.spectrum"),Ct.remove(),Ht.remove(),d[Xt.id]=null}function H(n,r){return n===e?t.extend({},W):r===e?W[n]:(W[n]=r,"preferredFormat"===n&&(Yt=W.preferredFormat),void l())}function U(){xt=!1,wt.attr("disabled",!1),Ut.removeClass("sp-disabled")}function z(){D(),xt=!0,wt.attr("disabled",!0),Ut.addClass("sp-disabled")}function B(t){W.offset=t,F()}var W=i(s,o),Y=W.flat,G=W.showSelectionPalette,K=W.localStorageKey,Z=W.theme,X=W.callbacks,J=f(F,10),Q=!1,tt=!1,et=0,nt=0,rt=0,it=0,ot=0,at=0,st=0,ut=0,lt=0,ct=0,ft=0,ht=1,pt=[],dt=[],vt={},mt=W.selectionPalette.slice(0),gt=W.maxSelectionSize,$t="sp-dragging",yt=null,bt=o.ownerDocument,wt=(bt.body,t(o)),xt=!1,Ct=t($,bt).addClass(Z),St=Ct.find(".sp-picker-container"),At=Ct.find(".sp-color"),Et=Ct.find(".sp-dragger"),_t=Ct.find(".sp-hue"),kt=Ct.find(".sp-slider"),Tt=Ct.find(".sp-alpha-inner"),Ot=Ct.find(".sp-alpha"),Dt=Ct.find(".sp-alpha-handle"),Mt=Ct.find(".sp-input"),Pt=Ct.find(".sp-palette"),jt=Ct.find(".sp-initial"),It=Ct.find(".sp-cancel"),Nt=Ct.find(".sp-clear"),Rt=Ct.find(".sp-choose"),qt=Ct.find(".sp-palette-toggle"),Vt=wt.is("input"),Ft=Vt&&"color"===wt.attr("type")&&h(),Lt=Vt&&!Y,Ht=Lt?t(g).addClass(Z).addClass(W.className).addClass(W.replacerClassName):t([]),Ut=Lt?Ht:wt,zt=Ht.find(".sp-preview-inner"),Bt=W.color||Vt&&wt.val(),Wt=!1,Yt=W.preferredFormat,Gt=!W.showButtons||W.clickoutFiresChange,Kt=!Bt,Zt=W.allowEmpty&&!Ft;p();var Xt={show:k,hide:D,toggle:_,reflow:F,option:H,enable:U,disable:z,offset:B,set:function(t){P(t),V()},get:j,destroy:L,container:Ct};return Xt.id=d.push(Xt)-1,Xt}function a(e,n){var r=0,i=e.outerWidth(),o=e.outerHeight(),a=n.outerHeight(),s=e[0].ownerDocument,u=s.documentElement,l=u.clientWidth+t(s).scrollLeft(),c=u.clientHeight+t(s).scrollTop(),f=n.offset();return f.top+=a,f.left-=Math.min(f.left,f.left+i>l&&l>i?Math.abs(f.left+i-l):0),f.top-=Math.min(f.top,f.top+o>c&&c>o?Math.abs(o+a-r):r),f}function s(){}function u(t){t.stopPropagation()}function l(t,e){var n=Array.prototype.slice,r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}function c(e,n,r,i){function o(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function a(t){if(c){if(v&&l.documentMode<9&&!t.button)return u();var r=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0],i=r&&r.pageX||t.pageX,a=r&&r.pageY||t.pageY,s=Math.max(0,Math.min(i-f.left,p)),m=Math.max(0,Math.min(a-f.top,h));d&&o(t),n.apply(e,[s,m,t])}}function s(n){var i=n.which?3==n.which:2==n.button;i||c||r.apply(e,arguments)!==!1&&(c=!0,h=t(e).height(),p=t(e).width(),f=t(e).offset(),t(l).bind(m),t(l.body).addClass("sp-dragging"),a(n),o(n))}function u(){c&&(t(l).unbind(m),t(l.body).removeClass("sp-dragging"),setTimeout(function(){i.apply(e,arguments)},0)),c=!1}n=n||function(){},r=r||function(){},i=i||function(){};var l=document,c=!1,f={},h=0,p=0,d="ontouchstart"in window,m={};m.selectstart=o,m.dragstart=o,m["touchmove mousemove"]=a,m["touchend mouseup"]=u,t(e).bind("touchstart mousedown",s)}function f(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,t.apply(i,o)};n&&clearTimeout(r),!n&&r||(r=setTimeout(a,e))}}function h(){return t.fn.spectrum.inputTypeColorSupport()}var p={beforeShow:s,move:s,change:s,show:s,hide:s,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},d=[],v=!!/msie/i.exec(window.navigator.userAgent),m=function(){function t(t,e){return!!~(""+t).indexOf(e)}var e=document.createElement("div"),n=e.style;return n.cssText="background-color:rgba(0,0,0,.5)",t(n.backgroundColor,"rgba")||t(n.backgroundColor,"hsla")}(),g=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),$=function(){var t="";if(v)for(var e=1;e<=6;e++)t+="<div class='sp-"+e+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",t,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false'  />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}(),y="spectrum.id";t.fn.spectrum=function(e,n){if("string"==typeof e){var r=this,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=d[t(this).data(y)];if(n){var o=n[e];if(!o)throw new Error("Spectrum: no such method: '"+e+"'");"get"==e?r=n.get():"container"==e?r=n.container:"option"==e?r=n.option.apply(n,i):"destroy"==e?(n.destroy(),t(this).removeData(y)):o.apply(n,i)}}),r}return this.spectrum("destroy").each(function(){var n=t.extend({},e,t(this).data()),r=o(this,n);t(this).data(y,r.id)})},t.fn.spectrum.load=!0,t.fn.spectrum.loadOpts={},t.fn.spectrum.draggable=c,t.fn.spectrum.defaults=p,t.fn.spectrum.inputTypeColorSupport=function e(){if("undefined"==typeof e._cachedResult){var n=t("<input type='color'/>")[0];e._cachedResult="color"===n.type&&""!==n.value}return e._cachedResult},t.spectrum={},t.spectrum.localization={},t.spectrum.palettes={},t.fn.spectrum.processNativeColorInputs=function(){var e=t("input[type=color]");e.length&&!h()&&e.spectrum({preferredFormat:"hex6"})},function(){function t(t){var n={r:0,g:0,b:0},i=1,a=!1,s=!1;return"string"==typeof t&&(t=M(t)),"object"==typeof t&&(t.hasOwnProperty("r")&&t.hasOwnProperty("g")&&t.hasOwnProperty("b")?(n=e(t.r,t.g,t.b),a=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("v")?(t.s=T(t.s),t.v=T(t.v),n=o(t.h,t.s,t.v),a=!0,s="hsv"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("l")&&(t.s=T(t.s),t.l=T(t.l),n=r(t.h,t.s,t.l),a=!0,s="hsl"),t.hasOwnProperty("a")&&(i=t.a)),i=x(i),{ok:a,format:t.format||s,r:q(255,V(n.r,0)),g:q(255,V(n.g,0)),b:q(255,V(n.b,0)),a:i}}function e(t,e,n){return{r:255*C(t,255),g:255*C(e,255),b:255*C(n,255)}}function n(t,e,n){t=C(t,255),e=C(e,255),n=C(n,255);var r,i,o=V(t,e,n),a=q(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4}r/=6}return{h:r,s:i,l:s}}function r(t,e,n){function r(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var i,o,a;if(t=C(t,360),e=C(e,100),n=C(n,100),0===e)i=o=a=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;i=r(u,s,t+1/3),o=r(u,s,t),a=r(u,s,t-1/3)}return{r:255*i,g:255*o,b:255*a}}function i(t,e,n){t=C(t,255),e=C(e,255),n=C(n,255);var r,i,o=V(t,e,n),a=q(t,e,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4}r/=6}return{h:r,s:i,v:s}}function o(t,e,n){t=6*C(t,360),e=C(e,100),n=C(n,100);var r=N.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],f=[o,o,s,n,n,a][u];return{r:255*l,g:255*c,b:255*f}}function a(t,e,n,r){var i=[k(R(t).toString(16)),k(R(e).toString(16)),k(R(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function s(t,e,n,r){var i=[k(O(r)),k(R(t).toString(16)),k(R(e).toString(16)),k(R(n).toString(16))];return i.join("")}function u(t,e){e=0===e?0:e||10;var n=L(t).toHsl();return n.s-=e/100,n.s=S(n.s),L(n)}function l(t,e){e=0===e?0:e||10;var n=L(t).toHsl();return n.s+=e/100,n.s=S(n.s),L(n)}function c(t){return L(t).desaturate(100)}function f(t,e){e=0===e?0:e||10;var n=L(t).toHsl();return n.l+=e/100,n.l=S(n.l),L(n)}function h(t,e){e=0===e?0:e||10;var n=L(t).toRgb();return n.r=V(0,q(255,n.r-R(255*-(e/100)))),n.g=V(0,q(255,n.g-R(255*-(e/100)))),n.b=V(0,q(255,n.b-R(255*-(e/100)))),L(n)}function p(t,e){e=0===e?0:e||10;var n=L(t).toHsl();return n.l-=e/100,n.l=S(n.l),L(n)}function d(t,e){var n=L(t).toHsl(),r=(R(n.h)+e)%360;return n.h=r<0?360+r:r,L(n)}function v(t){var e=L(t).toHsl();return e.h=(e.h+180)%360,L(e)}function m(t){var e=L(t).toHsl(),n=e.h;return[L(t),L({h:(n+120)%360,s:e.s,l:e.l}),L({h:(n+240)%360,s:e.s,l:e.l})]}function g(t){var e=L(t).toHsl(),n=e.h;return[L(t),L({h:(n+90)%360,s:e.s,l:e.l}),L({h:(n+180)%360,s:e.s,l:e.l}),L({h:(n+270)%360,s:e.s,l:e.l})]}function $(t){var e=L(t).toHsl(),n=e.h;return[L(t),L({h:(n+72)%360,s:e.s,l:e.l}),L({h:(n+216)%360,s:e.s,l:e.l})]}function y(t,e,n){e=e||6,n=n||30;var r=L(t).toHsl(),i=360/n,o=[L(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(L(r));return o}function b(t,e){e=e||6;for(var n=L(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(L({h:r,s:i,v:o})),o=(o+s)%1;return a}function w(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function x(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function C(t,e){E(t)&&(t="100%");var n=_(t);return t=q(e,V(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),N.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function S(t){return q(1,V(0,t))}function A(t){return parseInt(t,16)}function E(t){return"string"==typeof t&&t.indexOf(".")!=-1&&1===parseFloat(t)}function _(t){return"string"==typeof t&&t.indexOf("%")!=-1}function k(t){return 1==t.length?"0"+t:""+t}function T(t){return t<=1&&(t=100*t+"%"),t}function O(t){return Math.round(255*parseFloat(t)).toString(16)}function D(t){return A(t)/255}function M(t){t=t.replace(P,"").replace(j,"").toLowerCase();var e=!1;if(H[t])t=H[t],e=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=z.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=z.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=z.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=z.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=z.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=z.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=z.hex8.exec(t))?{a:D(n[1]),r:A(n[2]),g:A(n[3]),b:A(n[4]),format:e?"name":"hex8"}:(n=z.hex6.exec(t))?{r:A(n[1]),g:A(n[2]),b:A(n[3]),format:e?"name":"hex"}:!!(n=z.hex3.exec(t))&&{r:A(n[1]+""+n[1]),g:A(n[2]+""+n[2]),b:A(n[3]+""+n[3]),format:e?"name":"hex"}}var P=/^[\s,#]+/,j=/\s+$/,I=0,N=Math,R=N.round,q=N.min,V=N.max,F=N.random,L=function(e,n){if(e=e?e:"",n=n||{},e instanceof L)return e;if(!(this instanceof L))return new L(e,n);var r=t(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=R(100*this._a)/100,this._format=n.format||r.format,this._gradientType=n.gradientType,this._r<1&&(this._r=R(this._r)),this._g<1&&(this._g=R(this._g)),this._b<1&&(this._b=R(this._b)),this._ok=r.ok,this._tc_id=I++};L.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},setAlpha:function(t){return this._a=x(t),this._roundA=R(100*this._a)/100,this},toHsv:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=i(this._r,this._g,this._b),e=R(360*t.h),n=R(100*t.s),r=R(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=n(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=n(this._r,this._g,this._b),e=R(360*t.h),r=R(100*t.s),i=R(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+i+"%)":"hsla("+e+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return a(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return s(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:R(this._r),g:R(this._g),b:R(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+R(this._r)+", "+R(this._g)+", "+R(this._b)+")":"rgba("+R(this._r)+", "+R(this._g)+", "+R(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:R(100*C(this._r,255))+"%",g:R(100*C(this._g,255))+"%",b:R(100*C(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+R(100*C(this._r,255))+"%, "+R(100*C(this._g,255))+"%, "+R(100*C(this._b,255))+"%)":"rgba("+R(100*C(this._r,255))+"%, "+R(100*C(this._g,255))+"%, "+R(100*C(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(U[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+s(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=L(t);n=i.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0,i=!e&&r&&("hex"===t||"hex6"===t||"hex3"===t||"name"===t);return i?"name"===t&&0===this._a?this.toName():this.toRgbString():("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(c,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination($,arguments)},triad:function(){return this._applyCombination(m,arguments)},tetrad:function(){return this._applyCombination(g,arguments)}},L.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&("a"===r?n[r]=t[r]:n[r]=T(t[r]));t=n}return L(t,e)},L.equals=function(t,e){return!(!t||!e)&&L(t).toRgbString()==L(e).toRgbString()},L.random=function(){return L.fromRatio({r:F(),g:F(),b:F()})},L.mix=function(t,e,n){n=0===n?0:n||50;var r,i=L(t).toRgb(),o=L(e).toRgb(),a=n/100,s=2*a-1,u=o.a-i.a;r=s*u==-1?s:(s+u)/(1+s*u),r=(r+1)/2;var l=1-r,c={r:o.r*r+i.r*l,g:o.g*r+i.g*l,b:o.b*r+i.b*l,a:o.a*a+i.a*(1-a)};return L(c)},L.readability=function(t,e){var n=L(t),r=L(e),i=n.toRgb(),o=r.toRgb(),a=n.getBrightness(),s=r.getBrightness(),u=Math.max(i.r,o.r)-Math.min(i.r,o.r)+Math.max(i.g,o.g)-Math.min(i.g,o.g)+Math.max(i.b,o.b)-Math.min(i.b,o.b);return{brightness:Math.abs(a-s),color:u}},L.isReadable=function(t,e){var n=L.readability(t,e);return n.brightness>125&&n.color>500},L.mostReadable=function(t,e){for(var n=null,r=0,i=!1,o=0;o<e.length;o++){var a=L.readability(t,e[o]),s=a.brightness>125&&a.color>500,u=3*(a.brightness/125)+a.color/500;(s&&!i||s&&i&&u>r||!s&&!i&&u>r)&&(i=s,r=u,n=L(e[o]))}return n};var H=L.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},U=L.hexNames=w(H),z=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();window.tinycolor=L}(),t(function(){t.fn.spectrum.load&&t.fn.spectrum.processNativeColorInputs()})})},function(t,e){t.exports=window.jQuery},function(t,e,n){var r,i,o;/*!
	 * Select2 4.0.5
	 * https://select2.github.io
	 *
	 * Released under the MIT license
	 * https://github.com/select2/select2/blob/master/LICENSE.md
	 */
!function(a){i=[n(8)],r=a,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o))}(function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var e;return function(){if(!e||!e.requirejs){e?n=e:e={};/**
	 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
	 * Released under MIT license, http://github.com/requirejs/almond/LICENSE
	 */
var t,n,r;!function(e){function i(t,e){return w.call(t,e)}function o(t,e){var n,r,i,o,a,s,u,l,c,f,h,p,d=e&&e.split("/"),v=y.map,m=v&&v["*"]||{};if(t){for(t=t.split("/"),a=t.length-1,y.nodeIdCompat&&C.test(t[a])&&(t[a]=t[a].replace(C,"")),"."===t[0].charAt(0)&&d&&(p=d.slice(0,d.length-1),t=p.concat(t)),c=0;c<t.length;c++)if(h=t[c],"."===h)t.splice(c,1),c-=1;else if(".."===h){if(0===c||1===c&&".."===t[2]||".."===t[c-1])continue;c>0&&(t.splice(c-1,2),c-=2)}t=t.join("/")}if((d||m)&&v){for(n=t.split("/"),c=n.length;c>0;c-=1){if(r=n.slice(0,c).join("/"),d)for(f=d.length;f>0;f-=1)if(i=v[d.slice(0,f).join("/")],i&&(i=i[r])){o=i,s=c;break}if(o)break;!u&&m&&m[r]&&(u=m[r],l=c)}!o&&u&&(o=u,s=l),o&&(n.splice(0,s,o),t=n.join("/"))}return t}function a(t,n){return function(){var r=x.call(arguments,0);return"string"!=typeof r[0]&&1===r.length&&r.push(null),d.apply(e,r.concat([t,n]))}}function s(t){return function(e){return o(e,t)}}function u(t){return function(e){g[t]=e}}function l(t){if(i($,t)){var n=$[t];delete $[t],b[t]=!0,p.apply(e,n)}if(!i(g,t)&&!i(b,t))throw new Error("No "+t);return g[t]}function c(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function f(t){return t?c(t):[]}function h(t){return function(){return y&&y.config&&y.config[t]||{}}}var p,d,v,m,g={},$={},y={},b={},w=Object.prototype.hasOwnProperty,x=[].slice,C=/\.js$/;v=function(t,e){var n,r=c(t),i=r[0],a=e[1];return t=r[1],i&&(i=o(i,a),n=l(i)),i?t=n&&n.normalize?n.normalize(t,s(a)):o(t,a):(t=o(t,a),r=c(t),i=r[0],t=r[1],i&&(n=l(i))),{f:i?i+"!"+t:t,n:t,pr:i,p:n}},m={require:function(t){return a(t)},exports:function(t){var e=g[t];return"undefined"!=typeof e?e:g[t]={}},module:function(t){return{id:t,uri:"",exports:g[t],config:h(t)}}},p=function(t,n,r,o){var s,c,h,p,d,y,w,x=[],C=typeof r;if(o=o||t,y=f(o),"undefined"===C||"function"===C){for(n=!n.length&&r.length?["require","exports","module"]:n,d=0;d<n.length;d+=1)if(p=v(n[d],y),c=p.f,"require"===c)x[d]=m.require(t);else if("exports"===c)x[d]=m.exports(t),w=!0;else if("module"===c)s=x[d]=m.module(t);else if(i(g,c)||i($,c)||i(b,c))x[d]=l(c);else{if(!p.p)throw new Error(t+" missing "+c);p.p.load(p.n,a(o,!0),u(c),{}),x[d]=g[c]}h=r?r.apply(g[t],x):void 0,t&&(s&&s.exports!==e&&s.exports!==g[t]?g[t]=s.exports:h===e&&w||(g[t]=h))}else t&&(g[t]=r)},t=n=d=function(t,n,r,i,o){if("string"==typeof t)return m[t]?m[t](n):l(v(t,f(n)).f);if(!t.splice){if(y=t,y.deps&&d(y.deps,y.callback),!n)return;n.splice?(t=n,n=r,r=null):t=e}return n=n||function(){},"function"==typeof r&&(r=i,i=o),i?p(e,t,n,r):setTimeout(function(){p(e,t,n,r)},4),d},d.config=function(t){return d(t)},t._defined=g,r=function(t,e,n){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(n=e,e=[]),i(g,t)||i($,t)||($[t]=[t,e,n])},r.amd={jQuery:!0}}(),e.requirejs=t,e.require=n,e.define=r}}(),e.define("almond",function(){}),e.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(t){function e(t){var e=t.prototype,n=[];for(var r in e){var i=e[r];"function"==typeof i&&"constructor"!==r&&n.push(r)}return n}var n={};n.Extend=function(t,e){function n(){this.constructor=t}var r={}.hasOwnProperty;for(var i in e)r.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},n.Decorate=function(t,n){function r(){var e=Array.prototype.unshift,r=n.prototype.constructor.length,i=t.prototype.constructor;r>0&&(e.call(arguments,t.prototype.constructor),i=n.prototype.constructor),i.apply(this,arguments)}function i(){this.constructor=r}var o=e(n),a=e(t);n.displayName=t.displayName,r.prototype=new i;for(var s=0;s<a.length;s++){var u=a[s];r.prototype[u]=t.prototype[u]}for(var l=(function(t){var e=function(){};t in r.prototype&&(e=r.prototype[t]);var i=n.prototype[t];return function(){var t=Array.prototype.unshift;return t.call(arguments,e),i.apply(this,arguments)}}),c=0;c<o.length;c++){var f=o[c];r.prototype[f]=l(f)}return r};var r=function(){this.listeners={}};return r.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},r.prototype.trigger=function(t){var e=Array.prototype.slice,n=e.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].apply(this,e)},n.Observable=r,n.generateChars=function(t){for(var e="",n=0;n<t;n++){var r=Math.floor(36*Math.random());e+=r.toString(36)}return e},n.bind=function(t,e){return function(){t.apply(e,arguments)}},n._convertData=function(t){for(var e in t){var n=e.split("-"),r=t;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];o=o.substring(0,1).toLowerCase()+o.substring(1),o in r||(r[o]={}),i==n.length-1&&(r[o]=t[e]),r=r[o]}delete t[e]}}return t},n.hasScroll=function(e,n){var r=t(n),i=n.style.overflowX,o=n.style.overflowY;return(i!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===i||"scroll"===o||(r.innerHeight()<n.scrollHeight||r.innerWidth()<n.scrollWidth))},n.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},n.appendMany=function(e,n){if("1.7"===t.fn.jquery.substr(0,3)){var r=t();t.map(n,function(t){r=r.add(t)}),n=r}e.append(n)},n}),e.define("select2/results",["jquery","./utils"],function(t,e){function n(t,e,r){this.$element=t,this.data=r,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=t('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);r.append(n(i(e.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null==t.results||0===t.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));t.results=this.sort(t.results);for(var n=0;n<t.results.length;n++){var r=t.results[n],i=this.option(r);e.push(i)}this.$results.append(e)},n.prototype.position=function(t,e){var n=e.find(".select2-results");n.append(t)},n.prototype.sort=function(t){var e=this.options.get("sorter");return e(t)},n.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var e=this;this.data.current(function(n){var r=t.map(n,function(t){return t.id.toString()}),i=e.$results.find(".select2-results__option[aria-selected]");i.each(function(){var e=t(this),n=t.data(this,"data"),i=""+n.id;null!=n.element&&n.element.selected||null==n.element&&t.inArray(i,r)>-1?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},n.prototype.showLoading=function(t){this.hideLoading();var e=this.options.get("translations").get("searching"),n={disabled:!0,loading:!0,text:e(t)},r=this.option(n);r.className+=" loading-results",this.$results.prepend(r)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(e){var n=document.createElement("li");n.className="select2-results__option";var r={role:"treeitem","aria-selected":"false"};e.disabled&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==e.id&&delete r["aria-selected"],null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(r.role="group",r["aria-label"]=e.text,delete r["aria-selected"]);for(var i in r){var o=r[i];n.setAttribute(i,o)}if(e.children){var a=t(n),s=document.createElement("strong");s.className="select2-results__group";t(s);this.template(e,s);for(var u=[],l=0;l<e.children.length;l++){var c=e.children[l],f=this.option(c);u.push(f)}var h=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});h.append(u),a.append(s),a.append(h)}else this.template(e,n);return t.data(n,"data",e),n},n.prototype.bind=function(e,n){var r=this,i=e.id+"-results";this.$results.attr("id",i),e.on("results:all",function(t){r.clear(),r.append(t.data),e.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),e.on("results:append",function(t){r.append(t.data),e.isOpen()&&r.setClasses()}),e.on("query",function(t){r.hideMessages(),r.showLoading(t)}),e.on("select",function(){e.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),e.on("unselect",function(){e.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),e.on("open",function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()}),e.on("close",function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")}),e.on("results:toggle",function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),e.on("results:select",function(){var t=r.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:e})}}),e.on("results:previous",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t);if(0!==n){var i=n-1;0===t.length&&(i=0);var o=e.eq(i);o.trigger("mouseenter");var a=r.$results.offset().top,s=o.offset().top,u=r.$results.scrollTop()+(s-a);0===i?r.$results.scrollTop(0):s-a<0&&r.$results.scrollTop(u)}}),e.on("results:next",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t),i=n+1;if(!(i>=e.length)){var o=e.eq(i);o.trigger("mouseenter");var a=r.$results.offset().top+r.$results.outerHeight(!1),s=o.offset().top+o.outerHeight(!1),u=r.$results.scrollTop()+s-a;0===i?r.$results.scrollTop(0):s>a&&r.$results.scrollTop(u)}}),e.on("results:focus",function(t){t.element.addClass("select2-results__option--highlighted")}),e.on("results:message",function(t){r.displayMessage(t)}),t.fn.mousewheel&&this.$results.on("mousewheel",function(t){var e=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-e+t.deltaY,i=t.deltaY>0&&e-t.deltaY<=0,o=t.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var n=t(this),i=n.data("data");return"true"===n.attr("aria-selected")?void(r.options.get("multiple")?r.trigger("unselect",{originalEvent:e,data:i}):r.trigger("close",{})):void r.trigger("select",{originalEvent:e,data:i})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var n=t(this).data("data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:n,element:t(this)})})},n.prototype.getHighlightedResults=function(){var t=this.$results.find(".select2-results__option--highlighted");return t},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]"),n=e.index(t),r=this.$results.offset().top,i=t.offset().top,o=this.$results.scrollTop()+(i-r),a=i-r;o-=2*t.outerHeight(!1),n<=2?this.$results.scrollTop(0):(a>this.$results.outerHeight()||a<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(e,n){var r=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),o=r(e,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=i(o):t(n).append(o)},n}),e.define("select2/keys",[],function(){var t={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return t}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,e.Observable),r.prototype.render=function(){var e=t('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e,e},r.prototype.bind=function(t,e){var r=this,i=(t.id+"-container",t.id+"-results");this.container=t,this.$selection.on("focus",function(t){r.trigger("focus",t)}),this.$selection.on("blur",function(t){r._handleBlur(t)}),this.$selection.on("keydown",function(t){r.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){r.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){r.update(t.data)}),t.on("open",function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",i),r._attachCloseHandler(t)}),t.on("close",function(){r.$selection.attr("aria-expanded","false"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.focus(),r._detachCloseHandler(t)}),t.on("enable",function(){r.$selection.attr("tabindex",r._tabindex)}),t.on("disable",function(){r.$selection.attr("tabindex","-1")})},r.prototype._handleBlur=function(e){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)},1)},r.prototype._attachCloseHandler=function(e){t(document.body).on("mousedown.select2."+e.id,function(e){var n=t(e.target),r=n.closest(".select2"),i=t(".select2.select2-container--open");i.each(function(){var e=t(this);if(this!=r[0]){var n=e.data("element");n.select2("close")}})})},r.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},r.prototype.position=function(t,e){var n=e.find(".selection");n.append(t)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},r}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),t.on("focus",function(e){t.isOpen()||n.$selection.focus()}),t.on("selection:update",function(t){n.update(t.data)})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(t,e){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(t,e))},i.prototype.selectionContainer=function(){return t("<span></span>")},i.prototype.update=function(t){if(0===t.length)return void this.clear();var e=t[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(e,n);n.empty().append(r),n.prop("title",e.title||e.text)},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(t,e,n){function r(t,e){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},r.prototype.bind=function(e,n){var i=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){i.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.options.get("disabled")){var n=t(this),r=n.parent(),o=r.data("data");i.trigger("unselect",{originalEvent:e,data:o})}})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(t,e){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(t,e))},r.prototype.selectionContainer=function(){var e=t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return e},r.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],r=0;r<t.length;r++){var i=t[r],o=this.selectionContainer(),a=this.display(i,o);o.append(a),o.prop("title",i.title||i.text),o.data("data",i),e.push(o)}var s=this.$selection.find(".select2-selection__rendered");n.appendMany(s,e)}},r}),e.define("select2/selection/placeholder",["../utils"],function(t){function e(t,e,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var n=this.selectionContainer();return n.html(this.display(e)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(t,e){var n=1==e.length&&e[0].id!=this.placeholder.id,r=e.length>1;if(r||n)return t.call(this,e);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),e.define("select2/selection/allowClear",["jquery","../keys"],function(t,e){function n(){}return n.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(t){r._handleClear(t)}),e.on("keypress",function(t){r._handleKeyboardClear(t,e)})},n.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();for(var r=n.data("data"),i=0;i<r.length;i++){var o={data:r[i]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(t,n,r){r.isOpen()||n.which!=e.DELETE&&n.which!=e.BACKSPACE||this._handleClear(n)},n.prototype.update=function(e,n){if(e.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var r=t('<span class="select2-selection__clear">&times;</span>');r.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(r)}},n}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(t,e,n){function r(t,e,n){t.call(this,e,n)}return r.prototype.render=function(e){var n=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var r=e.call(this);return this._transferTabIndex(),r},r.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("open",function(){i.$search.trigger("focus")}),e.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),e.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),e.on("disable",function(){i.$search.prop("disabled",!0)}),e.on("focus",function(t){i.$search.trigger("focus")}),e.on("results:focus",function(t){i.$search.attr("aria-activedescendant",t.id)}),this.$selection.on("focusin",".select2-search--inline",function(t){i.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){i._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){t.stopPropagation(),i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented();var e=t.which;if(e===n.BACKSPACE&&""===i.$search.val()){var r=i.$searchContainer.prev(".select2-selection__choice");if(r.length>0){var o=r.data("data");i.searchRemoveChoice(o),t.preventDefault()}}});var o=document.documentMode,a=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(t){return a?void i.$selection.off("input.search input.searchcheck"):void i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(t){if(a&&"input"===t.type)return void i.$selection.off("input.search input.searchcheck");var e=t.which;e!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&i.handleSearch(t)})},r.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},r.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";if(""!==this.$search.attr("placeholder"))t=this.$selection.find(".select2-selection__rendered").innerWidth();else{var e=this.$search.val().length+1;t=.75*e+"em"}this.$search.css("width",t)},r}),e.define("select2/selection/eventRelay",["jquery"],function(t){function e(){}return e.prototype.bind=function(e,n,r){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],a=["opening","closing","selecting","unselecting"];e.call(this,n,r),n.on("*",function(e,n){if(t.inArray(e,o)!==-1){n=n||{};var r=t.Event("select2:"+e,{params:n});i.$element.trigger(r),t.inArray(e,a)!==-1&&(n.prevented=r.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){if(!(t in n._cache)){var r=e(t);n._cache[t]=r}return new n(n._cache[t])},n}),e.define("select2/diacritics",[],function(){var t={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return t}),e.define("select2/data/base",["../utils"],function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){var r=e.id+"-result-";return r+=t.generateChars(4),r+=null!=n.id?"-"+n.id.toString():"-"+t.generateChars(4)},e}),e.define("select2/data/select",["./base","../utils","jquery"],function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,t),r.prototype.current=function(t){var e=[],r=this;this.$element.find(":selected").each(function(){var t=n(this),i=r.item(t);e.push(i)}),t(e)},r.prototype.select=function(t){var e=this;if(t.selected=!0,n(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(r){var i=[];t=[t],t.push.apply(t,r);for(var o=0;o<t.length;o++){var a=t[o].id;n.inArray(a,i)===-1&&i.push(a)}e.$element.val(i),e.$element.trigger("change")});else{var r=t.id;this.$element.val(r),
this.$element.trigger("change")}},r.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple"))return t.selected=!1,n(t.element).is("option")?(t.element.selected=!1,void this.$element.trigger("change")):void this.current(function(r){for(var i=[],o=0;o<r.length;o++){var a=r[o].id;a!==t.id&&n.inArray(a,i)===-1&&i.push(a)}e.$element.val(i),e.$element.trigger("change")})},r.prototype.bind=function(t,e){var n=this;this.container=t,t.on("select",function(t){n.select(t.data)}),t.on("unselect",function(t){n.unselect(t.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){n.removeData(this,"data")})},r.prototype.query=function(t,e){var r=[],i=this,o=this.$element.children();o.each(function(){var e=n(this);if(e.is("option")||e.is("optgroup")){var o=i.item(e),a=i.matches(t,o);null!==a&&r.push(a)}}),e({results:r})},r.prototype.addOptions=function(t){e.appendMany(this.$element,t)},r.prototype.option=function(t){var e;t.children?(e=document.createElement("optgroup"),e.label=t.text):(e=document.createElement("option"),void 0!==e.textContent?e.textContent=t.text:e.innerText=t.text),void 0!==t.id&&(e.value=t.id),t.disabled&&(e.disabled=!0),t.selected&&(e.selected=!0),t.title&&(e.title=t.title);var r=n(e),i=this._normalizeItem(t);return i.element=e,n.data(e,"data",i),r},r.prototype.item=function(t){var e={};if(e=n.data(t[0],"data"),null!=e)return e;if(t.is("option"))e={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){e={text:t.prop("label"),children:[],title:t.prop("title")};for(var r=t.children("option"),i=[],o=0;o<r.length;o++){var a=n(r[o]),s=this.item(a);i.push(s)}e.children=i}return e=this._normalizeItem(e),e.element=t[0],n.data(t[0],"data",e),e},r.prototype._normalizeItem=function(t){n.isPlainObject(t)||(t={id:t,text:t}),t=n.extend({},{text:""},t);var e={selected:!1,disabled:!1};return null!=t.id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),n.extend({},e,t)},r.prototype.matches=function(t,e){var n=this.options.get("matcher");return n(t,e)},r}),e.define("select2/data/array",["./select","../utils","jquery"],function(t,e,n){function r(t,e){var n=e.get("data")||[];r.__super__.constructor.call(this,t,e),this.addOptions(this.convertToOptions(n))}return e.Extend(r,t),r.prototype.select=function(t){var e=this.$element.find("option").filter(function(e,n){return n.value==t.id.toString()});0===e.length&&(e=this.option(t),this.addOptions(e)),r.__super__.select.call(this,t)},r.prototype.convertToOptions=function(t){function r(t){return function(){return n(this).val()==t.id}}for(var i=this,o=this.$element.find("option"),a=o.map(function(){return i.item(n(this)).id}).get(),s=[],u=0;u<t.length;u++){var l=this._normalizeItem(t[u]);if(n.inArray(l.id,a)>=0){var c=o.filter(r(l)),f=this.item(c),h=n.extend(!0,{},l,f),p=this.option(h);c.replaceWith(p)}else{var d=this.option(l);if(l.children){var v=this.convertToOptions(l.children);e.appendMany(d,v)}s.push(d)}}return s},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(t,e,n){function r(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,t,e)}return e.Extend(r,t),r.prototype._applyDefaults=function(t){var e={data:function(t){return n.extend({},t,{q:t.term})},transport:function(t,e,r){var i=n.ajax(t);return i.then(e),i.fail(r),i}};return n.extend({},e,t,!0)},r.prototype.processResults=function(t){return t},r.prototype.query=function(t,e){function r(){var r=o.transport(o,function(r){var o=i.processResults(r,t);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)},function(){r.status&&"0"===r.status||i.trigger("results:message",{message:"errorLoading"})});i._request=r}var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},r}),e.define("select2/data/tags",["jquery"],function(t){function e(e,n,r){var i=r.get("tags"),o=r.get("createTag");void 0!==o&&(this.createTag=o);var a=r.get("insertTag");if(void 0!==a&&(this.insertTag=a),e.call(this,n,r),t.isArray(i))for(var s=0;s<i.length;s++){var u=i[s],l=this._normalizeItem(u),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(t,e,n){function r(t,o){for(var a=t.results,s=0;s<a.length;s++){var u=a[s],l=null!=u.children&&!r({results:u.children},!0),c=(u.text||"").toUpperCase(),f=(e.term||"").toUpperCase(),h=c===f;if(h||l)return!o&&(t.data=a,void n(t))}if(o)return!0;var p=i.createTag(e);if(null!=p){var d=i.option(p);d.attr("data-select2-tag",!0),i.addOptions([d]),i.insertTag(a,p)}t.results=a,n(t)}var i=this;return this._removeOldTags(),null==e.term||null!=e.page?void t.call(this,e,n):void t.call(this,e,r)},e.prototype.createTag=function(e,n){var r=t.trim(n.term);return""===r?null:{id:r,text:r}},e.prototype.insertTag=function(t,e,n){e.unshift(n)},e.prototype._removeOldTags=function(e){var n=(this._lastTag,this.$element.find("option[data-select2-tag]"));n.each(function(){this.selected||t(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(t){function e(t,e,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),t.call(this,e,n)}return e.prototype.bind=function(t,e,n){t.call(this,e,n),this.$search=e.dropdown.$search||e.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,n,r){function i(e){var n=a._normalizeItem(e),r=a.$element.find("option").filter(function(){return t(this).val()===n.id});if(!r.length){var i=a.option(n);i.attr("data-select2-tag",!0),a._removeOldTags(),a.addOptions([i])}o(n)}function o(t){a.trigger("select",{data:t})}var a=this;n.term=n.term||"";var s=this.tokenizer(n,this.options,i);s.term!==n.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.focus()),n.term=s.term),e.call(this,n,r)},e.prototype.tokenizer=function(e,n,r,i){for(var o=r.get("tokenSeparators")||[],a=n.term,s=0,u=this.createTag||function(t){return{id:t.term,text:t.term}};s<a.length;){var l=a[s];if(t.inArray(l,o)!==-1){var c=a.substr(0,s),f=t.extend({},n,{term:c}),h=u(f);null!=h?(i(h),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},e}),e.define("select2/data/minimumInputLength",[],function(){function t(t,e,n){this.minimumInputLength=n.get("minimumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){return e.term=e.term||"",e.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):void t.call(this,e,n)},t}),e.define("select2/data/maximumInputLength",[],function(){function t(t,e,n){this.maximumInputLength=n.get("maximumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){return e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):void t.call(this,e,n)},t}),e.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){var r=this;this.current(function(i){var o=null!=i?i.length:0;return r.maximumSelectionLength>0&&o>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void t.call(r,e,n)})},t}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(t,e){function n(){}return n.prototype.render=function(e){var n=e.call(this),r=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=r,this.$search=r.find("input"),n.prepend(r),n},n.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),this.$search.on("keydown",function(t){i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(e){t(this).off("keyup")}),this.$search.on("keyup input",function(t){i.handleSearch(t)}),n.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),n.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),n.on("focus",function(){n.isOpen()||i.$search.focus()}),n.on("results:all",function(t){if(null==t.query.term||""===t.query.term){var e=i.showSearch(t);e?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide")}})},n.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.showSearch=function(t,e){return!0},n}),e.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,r)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),r=e.length-1;r>=0;r--){var i=e[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},t}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(t){function e(t,e,n,r){this.lastParams={},t.call(this,e,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),n.on("query",function(t){i.lastParams=t,i.loading=!0}),n.on("query:append",function(t){i.lastParams=t,i.loading=!0}),this.$results.on("scroll",function(){var e=t.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&e){var n=i.$results.offset().top+i.$results.outerHeight(!1),r=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1);n+50>=r&&i.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(t,e){function n(e,n,r){this.$dropdownParent=r.get("dropdownParent")||t(document.body),e.call(this,n,r)}return n.prototype.bind=function(t,e,n){var r=this,i=!1;t.call(this,e,n),e.on("open",function(){r._showDropdown(),r._attachPositioningHandler(e),i||(i=!0,e.on("results:all",function(){r._positionDropdown(),r._resizeDropdown()}),e.on("results:append",function(){r._positionDropdown(),r._resizeDropdown()}))}),e.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t("<span></span>"),r=e.call(this);return n.append(r),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,r){var i=this,o="scroll.select2."+r.id,a="resize.select2."+r.id,s="orientationchange.select2."+r.id,u=this.$container.parents().filter(e.hasScroll);u.each(function(){t(this).data("select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})}),u.on(o,function(e){var n=t(this).data("select2-scroll-position");t(this).scrollTop(n.y)}),t(window).on(o+" "+a+" "+s,function(t){i._positionDropdown(),i._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,r){var i="scroll.select2."+r.id,o="resize.select2."+r.id,a="orientationchange.select2."+r.id,s=this.$container.parents().filter(e.hasScroll);s.off(i),t(window).off(i+" "+o+" "+a)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown.hasClass("select2-dropdown--above"),r=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s={height:this.$dropdown.outerHeight(!1)},u={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},l=u.top<o.top-s.height,c=u.bottom>o.bottom+s.height,f={left:o.left,top:a.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var p=h.offset();f.top-=p.top,f.left-=p.left,n||r||(i="below"),c||!l||n?!l&&c&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(f.top=a.top-p.top-s.height),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(f)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(e){for(var n=0,r=0;r<e.length;r++){var i=e[r];i.children?n+=t(i.children):n++}return n}function e(t,e,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,r)}return e.prototype.showSearch=function(e,n){return!(t(n.data.results)<this.minimumResultsForSearch)&&e.call(this,n)},e}),e.define("select2/dropdown/selectOnClose",[],function(){function t(){}return t.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),e.on("close",function(t){r._handleSelectOnClose(t)})},t.prototype._handleSelectOnClose=function(t,e){if(e&&null!=e.originalSelect2Event){var n=e.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=r.data("data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},t}),e.define("select2/dropdown/closeOnSelect",[],function(){function t(){}return t.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),e.on("select",function(t){r._selectTriggered(t)}),e.on("unselect",function(t){r._selectTriggered(t)})},t.prototype._selectTriggered=function(t,e){var n=e.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:e})},t}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,n="Please delete "+e+" character";return 1!=e&&(n+="s"),n},inputTooShort:function(t){var e=t.minimum-t.input.length,n="Please enter "+e+" or more characters";return n},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(t,e,n,r,i,o,a,s,u,l,c,f,h,p,d,v,m,g,$,y,b,w,x,C,S,A,E,_,k){function T(){this.reset()}T.prototype.apply=function(f){if(f=t.extend(!0,{},this.defaults,f),null==f.dataAdapter){if(null!=f.ajax?f.dataAdapter=d:null!=f.data?f.dataAdapter=p:f.dataAdapter=h,f.minimumInputLength>0&&(f.dataAdapter=l.Decorate(f.dataAdapter,g)),f.maximumInputLength>0&&(f.dataAdapter=l.Decorate(f.dataAdapter,$)),f.maximumSelectionLength>0&&(f.dataAdapter=l.Decorate(f.dataAdapter,y)),f.tags&&(f.dataAdapter=l.Decorate(f.dataAdapter,v)),null==f.tokenSeparators&&null==f.tokenizer||(f.dataAdapter=l.Decorate(f.dataAdapter,m)),null!=f.query){var k=e(f.amdBase+"compat/query");f.dataAdapter=l.Decorate(f.dataAdapter,k)}if(null!=f.initSelection){var T=e(f.amdBase+"compat/initSelection");f.dataAdapter=l.Decorate(f.dataAdapter,T)}}if(null==f.resultsAdapter&&(f.resultsAdapter=n,null!=f.ajax&&(f.resultsAdapter=l.Decorate(f.resultsAdapter,C)),null!=f.placeholder&&(f.resultsAdapter=l.Decorate(f.resultsAdapter,x)),f.selectOnClose&&(f.resultsAdapter=l.Decorate(f.resultsAdapter,E))),null==f.dropdownAdapter){if(f.multiple)f.dropdownAdapter=b;else{var O=l.Decorate(b,w);f.dropdownAdapter=O}if(0!==f.minimumResultsForSearch&&(f.dropdownAdapter=l.Decorate(f.dropdownAdapter,A)),f.closeOnSelect&&(f.dropdownAdapter=l.Decorate(f.dropdownAdapter,_)),null!=f.dropdownCssClass||null!=f.dropdownCss||null!=f.adaptDropdownCssClass){var D=e(f.amdBase+"compat/dropdownCss");f.dropdownAdapter=l.Decorate(f.dropdownAdapter,D)}f.dropdownAdapter=l.Decorate(f.dropdownAdapter,S)}if(null==f.selectionAdapter){if(f.multiple?f.selectionAdapter=i:f.selectionAdapter=r,null!=f.placeholder&&(f.selectionAdapter=l.Decorate(f.selectionAdapter,o)),f.allowClear&&(f.selectionAdapter=l.Decorate(f.selectionAdapter,a)),f.multiple&&(f.selectionAdapter=l.Decorate(f.selectionAdapter,s)),null!=f.containerCssClass||null!=f.containerCss||null!=f.adaptContainerCssClass){var M=e(f.amdBase+"compat/containerCss");f.selectionAdapter=l.Decorate(f.selectionAdapter,M)}f.selectionAdapter=l.Decorate(f.selectionAdapter,u)}if("string"==typeof f.language)if(f.language.indexOf("-")>0){var P=f.language.split("-"),j=P[0];f.language=[f.language,j]}else f.language=[f.language];if(t.isArray(f.language)){var I=new c;f.language.push("en");for(var N=f.language,R=0;R<N.length;R++){var q=N[R],V={};try{V=c.loadPath(q)}catch(t){try{q=this.defaults.amdLanguageBase+q,V=c.loadPath(q)}catch(t){f.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+q+'" could not be automatically loaded. A fallback will be used instead.');continue}}I.extend(V)}f.translations=I}else{var F=c.loadPath(this.defaults.amdLanguageBase+"en"),L=new c(f.language);L.extend(F),f.translations=L}return f},T.prototype.reset=function(){function e(t){function e(t){return f[t]||t}return t.replace(/[^\u0000-\u007E]/g,e)}function n(r,i){if(""===t.trim(r.term))return i;if(i.children&&i.children.length>0){for(var o=t.extend(!0,{},i),a=i.children.length-1;a>=0;a--){var s=i.children[a],u=n(r,s);null==u&&o.children.splice(a,1)}return o.children.length>0?o:n(r,o)}var l=e(i.text).toUpperCase(),c=e(r.term).toUpperCase();return l.indexOf(c)>-1?i:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:l.escapeMarkup,language:k,matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},T.prototype.set=function(e,n){var r=t.camelCase(e),i={};i[r]=n;var o=l._convertData(i);t.extend(this.defaults,o)};var O=new T;return O}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(t,e,n,r){function i(e,i){if(this.options=e,null!=i&&this.fromElement(i),this.options=n.apply(this.options),i&&i.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,o)}}return i.prototype.fromElement=function(t){var n=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang"))),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),t.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),t.data("data",t.data("select2Tags")),t.data("tags",!0)),t.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",t.data("ajaxUrl")),t.data("ajax--url",t.data("ajaxUrl")));var i={};i=e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset?e.extend(!0,{},t[0].dataset,t.data()):t.data();var o=e.extend(!0,{},i);o=r._convertData(o);for(var a in o)e.inArray(a,n)>-1||(e.isPlainObject(this.options[a])?e.extend(this.options[a],o[a]):this.options[a]=o[a]);return this},i.prototype.get=function(t){return this.options[t]},i.prototype.set=function(t,e){this.options[t]=e},i}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,e,n,r){var i=function(t,n){null!=t.data("select2")&&t.data("select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),i.__super__.constructor.call(this);var r=t.attr("tabindex")||0;t.data("old-tabindex",r),t.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(t,this.options);var a=this.render();this._placeContainer(a);var s=this.options.get("selectionAdapter");this.selection=new s(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var u=this.options.get("dropdownAdapter");this.dropdown=new u(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var l=this.options.get("resultsAdapter");this.results=new l(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var c=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(t){c.trigger("selection:update",{data:t})}),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return n.Extend(i,n.Observable),i.prototype._generateId=function(t){var e="";return e=null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+n.generateChars(2):n.generateChars(4),e=e.replace(/(:|\.|\[|\]|,)/g,""),e="select2-"+e},i.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},i.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var r=this._resolveWidth(t,"style");return null!=r?r:this._resolveWidth(t,"element")}if("element"==e){var i=t.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var a=o.split(";"),s=0,u=a.length;s<u;s+=1){var l=a[s].replace(/\s/g,""),c=l.match(n);if(null!==c&&c.length>=1)return c[1]}return null}return e},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r(function(n){t.each(n,e._syncA),t.each(n,e._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},i.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(r,i){t.inArray(r,n)===-1&&e.trigger(r,i)})},i.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerEvents=function(){var t=this;this.on("open",function(){t.$container.addClass("select2-container--open")}),this.on("close",function(){t.$container.removeClass("select2-container--open")}),this.on("enable",function(){t.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){t.$container.addClass("select2-container--disabled")}),this.on("blur",function(){t.$container.removeClass("select2-container--focus")}),this.on("query",function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,function(n){t.trigger("results:all",{data:n,query:e})})}),this.on("query:append",function(e){this.dataAdapter.query(e,function(n){t.trigger("results:append",{data:n,query:e})})}),this.on("keypress",function(e){var n=e.which;t.isOpen()?n===r.ESC||n===r.TAB||n===r.UP&&e.altKey?(t.close(),e.preventDefault()):n===r.ENTER?(t.trigger("results:select",{}),e.preventDefault()):n===r.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===r.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===r.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(n===r.ENTER||n===r.SPACE||n===r.DOWN&&e.altKey)&&(t.open(),e.preventDefault())})},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype._syncSubtree=function(t,e){var n=!1,r=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(e)if(e.addedNodes&&e.addedNodes.length>0)for(var i=0;i<e.addedNodes.length;i++){var o=e.addedNodes[i];o.selected&&(n=!0)}else e.removedNodes&&e.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(t){r.trigger("selection:update",{data:t})})}},i.prototype.trigger=function(t,e){var n=i.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===e&&(e={}),t in r){var o=r[t],a={prevented:!1,name:t,args:e};if(n.call(this,o,a),a.prevented)return void(e.prevented=!0)}n.call(this,t,e)},i.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.trigger("query",{})},i.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},i.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var n=e[0];t.isArray(n)&&(n=t.map(n,function(t){return t.toString()})),this.$element.val(n).trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),
this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},i}),e.define("jquery-mousewheel",["jquery"],function(t){return t}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(t,e,n,r){if(null==t.fn.select2){var i=["open","close","destroy"];t.fn.select2=function(e){if(e=e||{},"object"==typeof e)return this.each(function(){var r=t.extend(!0,{},e);new n(t(this),r)}),this;if("string"==typeof e){var r,o=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=t(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),r=n[e].apply(n,o)}),t.inArray(e,i)>-1?this:r}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=r),n}),{define:e.define,require:e.require}}(),n=e.require("jquery.select2");return t.fn.select2.amd=e,n})},function(t,e,n){var r;/*! Hammer.JS - v2.0.7 - 2016-04-22
	 * http://hammerjs.github.io/
	 *
	 * Copyright (c) 2016 Jorik Tangelder;
	 * Licensed under the MIT license */
!function(i,o,a,s){"use strict";function u(t,e,n){return setTimeout(p(t,n),e)}function l(t,e,n){return!!Array.isArray(t)&&(c(t,n[e],n),!0)}function c(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function f(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}function h(t,e,n){var r,i=e.prototype;r=t.prototype=Object.create(i),r.constructor=t,r._super=i,n&&vt(r,n)}function p(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==$t?t.apply(e?e[0]||s:s,e):t}function v(t,e){return t===s?e:t}function m(t,e,n){c(b(e),function(e){t.addEventListener(e,n,!1)})}function g(t,e,n){c(b(e),function(e){t.removeEventListener(e,n,!1)})}function $(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function y(t,e){return t.indexOf(e)>-1}function b(t){return t.trim().split(/\s+/g)}function w(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function x(t){return Array.prototype.slice.call(t,0)}function C(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];w(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort(function(t,n){return t[e]>n[e]}):r.sort()),r}function S(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<mt.length;){if(n=mt[o],r=n?n+i:e,r in t)return r;o++}return s}function A(){return St++}function E(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}function _(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&n.handler(e)},this.init()}function k(t){var e,n=t.options.inputClass;return new(e=n?n:_t?H:kt?B:Et?Y:L)(t,T)}function T(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&jt&&r-i===0,a=e&(Nt|Rt)&&r-i===0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,O(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function O(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=P(e)),i>1&&!n.firstMultiple?n.firstMultiple=P(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=j(r);e.timeStamp=wt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=q(s,u),e.distance=R(s,u),D(n,e),e.offsetDirection=N(e.deltaX,e.deltaY);var l=I(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=bt(l.x)>bt(l.y)?l.x:l.y,e.scale=a?F(a.pointers,r):1,e.rotation=a?V(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,M(n,e);var c=t.element;$(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}function D(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==jt&&o.eventType!==Nt||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}function M(t,e){var n,r,i,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(e.eventType!=Rt&&(u>Pt||a.velocity===s)){var l=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,f=I(u,l,c);r=f.x,i=f.y,n=bt(f.x)>bt(f.y)?f.x:f.y,o=N(l,c),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}function P(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:yt(t.pointers[n].clientX),clientY:yt(t.pointers[n].clientY)},n++;return{timeStamp:wt(),pointers:e,center:j(e),deltaX:t.deltaX,deltaY:t.deltaY}}function j(t){var e=t.length;if(1===e)return{x:yt(t[0].clientX),y:yt(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:yt(n/e),y:yt(r/e)}}function I(t,e,n){return{x:e/t||0,y:n/t||0}}function N(t,e){return t===e?qt:bt(t)>=bt(e)?t<0?Vt:Ft:e<0?Lt:Ht}function R(t,e,n){n||(n=Wt);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function q(t,e,n){n||(n=Wt);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function V(t,e){return q(e[1],e[0],Yt)+q(t[1],t[0],Yt)}function F(t,e){return R(e[0],e[1],Yt)/R(t[0],t[1],Yt)}function L(){this.evEl=Kt,this.evWin=Zt,this.pressed=!1,_.apply(this,arguments)}function H(){this.evEl=Qt,this.evWin=te,_.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function U(){this.evTarget=ne,this.evWin=re,this.started=!1,_.apply(this,arguments)}function z(t,e){var n=x(t.touches),r=x(t.changedTouches);return e&(Nt|Rt)&&(n=C(n.concat(r),"identifier",!0)),[n,r]}function B(){this.evTarget=oe,this.targetIds={},_.apply(this,arguments)}function W(t,e){var n=x(t.touches),r=this.targetIds;if(e&(jt|It)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=x(t.changedTouches),s=[],u=this.target;if(o=n.filter(function(t){return $(t.target,u)}),e===jt)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),e&(Nt|Rt)&&delete r[a[i].identifier],i++;return s.length?[C(o.concat(s),"identifier",!0),s]:void 0}function Y(){_.apply(this,arguments);var t=p(this.handler,this);this.touch=new B(this.manager,t),this.mouse=new L(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function G(t,e){t&jt?(this.primaryTouch=e.changedPointers[0].identifier,K.call(this,e)):t&(Nt|Rt)&&K.call(this,e)}function K(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches,i=function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)};setTimeout(i,ae)}}function Z(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=se&&a<=se)return!0}return!1}function X(t,e){this.manager=t,this.set(e)}function J(t){if(y(t,pe))return pe;var e=y(t,de),n=y(t,ve);return e&&n?pe:e||n?e?de:ve:y(t,he)?he:fe}function Q(){if(!le)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||i.CSS.supports("touch-action",n)}),t}function tt(t){this.options=vt({},this.defaults,t||{}),this.id=A(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=ge,this.simultaneous={},this.requireFail=[]}function et(t){return t&xe?"cancel":t&be?"end":t&ye?"move":t&$e?"start":""}function nt(t){return t==Ht?"down":t==Lt?"up":t==Vt?"left":t==Ft?"right":""}function rt(t,e){var n=e.manager;return n?n.get(t):t}function it(){tt.apply(this,arguments)}function ot(){it.apply(this,arguments),this.pX=null,this.pY=null}function at(){it.apply(this,arguments)}function st(){tt.apply(this,arguments),this._timer=null,this._input=null}function ut(){it.apply(this,arguments)}function lt(){it.apply(this,arguments)}function ct(){tt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ft(t,e){return e=e||{},e.recognizers=v(e.recognizers,ft.defaults.preset),new ht(t,e)}function ht(t,e){this.options=vt({},ft.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=k(this),this.touchAction=new X(this,this.options.touchAction),pt(this,!0),c(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function pt(t,e){var n=t.element;if(n.style){var r;c(t.options.cssProps,function(i,o){r=S(n.style,o),e?(t.oldCssProps[r]=n.style[r],n.style[r]=i):n.style[r]=t.oldCssProps[r]||""}),e||(t.oldCssProps={})}}function dt(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var vt,mt=["","webkit","Moz","MS","ms","o"],gt=o.createElement("div"),$t="function",yt=Math.round,bt=Math.abs,wt=Date.now;vt="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var xt=f(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===s)&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),Ct=f(function(t,e){return xt(t,e,!0)},"merge","Use `assign`."),St=1,At=/mobile|tablet|ip(ad|hone|od)|android/i,Et="ontouchstart"in i,_t=S(i,"PointerEvent")!==s,kt=Et&&At.test(navigator.userAgent),Tt="touch",Ot="pen",Dt="mouse",Mt="kinect",Pt=25,jt=1,It=2,Nt=4,Rt=8,qt=1,Vt=2,Ft=4,Lt=8,Ht=16,Ut=Vt|Ft,zt=Lt|Ht,Bt=Ut|zt,Wt=["x","y"],Yt=["clientX","clientY"];_.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(E(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(E(this.element),this.evWin,this.domHandler)}};var Gt={mousedown:jt,mousemove:It,mouseup:Nt},Kt="mousedown",Zt="mousemove mouseup";h(L,_,{handler:function(t){var e=Gt[t.type];e&jt&&0===t.button&&(this.pressed=!0),e&It&&1!==t.which&&(e=Nt),this.pressed&&(e&Nt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:Dt,srcEvent:t}))}});var Xt={pointerdown:jt,pointermove:It,pointerup:Nt,pointercancel:Rt,pointerout:Rt},Jt={2:Tt,3:Ot,4:Dt,5:Mt},Qt="pointerdown",te="pointermove pointerup pointercancel";i.MSPointerEvent&&!i.PointerEvent&&(Qt="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),h(H,_,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=Xt[r],o=Jt[t.pointerType]||t.pointerType,a=o==Tt,s=w(e,t.pointerId,"pointerId");i&jt&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(Nt|Rt)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var ee={touchstart:jt,touchmove:It,touchend:Nt,touchcancel:Rt},ne="touchstart",re="touchstart touchmove touchend touchcancel";h(U,_,{handler:function(t){var e=ee[t.type];if(e===jt&&(this.started=!0),this.started){var n=z.call(this,t,e);e&(Nt|Rt)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Tt,srcEvent:t})}}});var ie={touchstart:jt,touchmove:It,touchend:Nt,touchcancel:Rt},oe="touchstart touchmove touchend touchcancel";h(B,_,{handler:function(t){var e=ie[t.type],n=W.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Tt,srcEvent:t})}});var ae=2500,se=25;h(Y,_,{handler:function(t,e,n){var r=n.pointerType==Tt,i=n.pointerType==Dt;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)G.call(this,e,n);else if(i&&Z.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ue=S(gt.style,"touchAction"),le=ue!==s,ce="compute",fe="auto",he="manipulation",pe="none",de="pan-x",ve="pan-y",me=Q();X.prototype={set:function(t){t==ce&&(t=this.compute()),le&&this.manager.element.style&&me[t]&&(this.manager.element.style[ue]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return c(this.manager.recognizers,function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),J(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var r=this.actions,i=y(r,pe)&&!me[pe],o=y(r,ve)&&!me[ve],a=y(r,de)&&!me[de];if(i){var s=1===t.pointers.length,u=t.distance<2,l=t.deltaTime<250;if(s&&u&&l)return}return a&&o?void 0:i||o&&n&Ut||a&&n&zt?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ge=1,$e=2,ye=4,be=8,we=be,xe=16,Ce=32;tt.prototype={defaults:{},set:function(t){return vt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(l(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=rt(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return l(t,"dropRecognizeWith",this)?this:(t=rt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(l(t,"requireFailure",this))return this;var e=this.requireFail;return t=rt(t,this),w(e,t)===-1&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(l(t,"dropRequireFailure",this))return this;t=rt(t,this);var e=w(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,r=this.state;r<be&&e(n.options.event+et(r)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),r>=be&&e(n.options.event+et(r))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=Ce)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(Ce|ge)))return!1;t++}return!0},recognize:function(t){var e=vt({},t);return d(this.options.enable,[this,e])?(this.state&(we|xe|Ce)&&(this.state=ge),this.state=this.process(e),void(this.state&($e|ye|be|xe)&&this.tryEmit(e))):(this.reset(),void(this.state=Ce))},process:function(t){},getTouchAction:function(){},reset:function(){}},h(it,tt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=e&($e|ye),i=this.attrTest(t);return r&&(n&Rt||!i)?e|xe:r||i?n&Nt?e|be:e&$e?e|ye:$e:Ce}}),h(ot,it,{defaults:{event:"pan",threshold:10,pointers:1,direction:Bt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Ut&&e.push(ve),t&zt&&e.push(de),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(e.direction&Ut?(i=0===o?qt:o<0?Vt:Ft,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?qt:a<0?Lt:Ht,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return it.prototype.attrTest.call(this,t)&&(this.state&$e||!(this.state&$e)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=nt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),h(at,it,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[pe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&$e)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),h(st,tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[fe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(Nt|Rt)&&!i)this.reset();else if(t.eventType&jt)this.reset(),this._timer=u(function(){this.state=we,this.tryEmit()},e.time,this);else if(t.eventType&Nt)return we;return Ce},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===we&&(t&&t.eventType&Nt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=wt(),this.manager.emit(this.options.event,this._input)))}}),h(ut,it,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[pe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&$e)}}),h(lt,it,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ut|zt,pointers:1},getTouchAction:function(){return ot.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Ut|zt)?e=t.overallVelocity:n&Ut?e=t.overallVelocityX:n&zt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&bt(e)>this.options.velocity&&t.eventType&Nt},emit:function(t){var e=nt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),h(ct,tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[he]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&jt&&0===this.count)return this.failTimeout();if(r&&i&&n){if(t.eventType!=Nt)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||R(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t;var s=this.count%e.taps;if(0===s)return this.hasRequireFailures()?(this._timer=u(function(){this.state=we,this.tryEmit()},e.interval,this),$e):we}return Ce},failTimeout:function(){return this._timer=u(function(){this.state=Ce},this.options.interval,this),Ce},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==we&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ft.VERSION="2.0.7",ft.defaults={domEvents:!1,touchAction:ce,enable:!0,inputTarget:null,inputClass:null,preset:[[ut,{enable:!1}],[at,{enable:!1},["rotate"]],[lt,{direction:Ut}],[ot,{direction:Ut},["swipe"]],[ct],[ct,{event:"doubletap",taps:2},["tap"]],[st]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Se=1,Ae=2;ht.prototype={set:function(t){return vt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?Ae:Se},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,r=this.recognizers,i=e.curRecognizer;(!i||i&&i.state&we)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],e.stopped===Ae||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&n.state&($e|ye|be)&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof tt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(l(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(l(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=w(e,t);n!==-1&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return c(b(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==s){var n=this.handlers;return c(b(t),function(t){e?n[t]&&n[t].splice(w(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&dt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&pt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},vt(ft,{INPUT_START:jt,INPUT_MOVE:It,INPUT_END:Nt,INPUT_CANCEL:Rt,STATE_POSSIBLE:ge,STATE_BEGAN:$e,STATE_CHANGED:ye,STATE_ENDED:be,STATE_RECOGNIZED:we,STATE_CANCELLED:xe,STATE_FAILED:Ce,DIRECTION_NONE:qt,DIRECTION_LEFT:Vt,DIRECTION_RIGHT:Ft,DIRECTION_UP:Lt,DIRECTION_DOWN:Ht,DIRECTION_HORIZONTAL:Ut,DIRECTION_VERTICAL:zt,DIRECTION_ALL:Bt,Manager:ht,Input:_,TouchAction:X,TouchInput:B,MouseInput:L,PointerEventInput:H,TouchMouseInput:Y,SingleTouchInput:U,Recognizer:tt,AttrRecognizer:it,Tap:ct,Pan:ot,Swipe:lt,Pinch:at,Rotate:ut,Press:st,on:m,off:g,each:c,merge:Ct,extend:xt,assign:vt,inherit:h,bindFn:p,prefixed:S});var Ee="undefined"!=typeof i?i:"undefined"!=typeof self?self:{};Ee.Hammer=ft,r=function(){return ft}.call(e,n,e,t),!(r!==s&&(t.exports=r))}(window,document,"Hammer")}]);