eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('!14(e,t){"8K 8L";"1P"==1f 5h&&"1P"==1f 5h.8M?5h.8M=e.3z?t(e,!0):14(e){19(!e.3z)3A 1t 5i("43 cg a 68 ch a 3z");15 t(e)}:t(e)}("2D"!=1f 68?68:17,14(e,t){"8K 8L";18 n=[],r=e.3z,i=3B.ci,o=n.1s,a=n.5j,s=n.1l,u=n.1T,l={},c=l.77,f=l.78,p=f.77,d=p.1j(3B),h={},g=14 e(t){15"14"==1f t&&"3C"!=1f t.1e},y=14 e(t){15 1b!=t&&t===t.68},v={1g:!0,69:!0,cj:!0};14 m(e,t,n){18 i,o=(t=t||r).1U("1O");19(o.1K=e,n)1c(i 1i v)n[i]&&(o[i]=n[i]);t.79.24(o).1n.5k(o)}14 x(e){15 1b==e?e+"":"1P"==1f e||"14"==1f e?l[c.1j(e)]||"1P":1f e}18 b="3.3.1",w=14(e,t){15 1t w.fn.4v(e,t)},T=/^[\\s\\8N\\8O]+|[\\s\\8N\\8O]+$/g;w.fn=w.2E={4w:"3.3.1",3D:w,1a:0,ck:14(){15 o.1j(17)},1o:14(e){15 1b==e?o.1j(17):e<0?17[e+17.1a]:17[e]},2F:14(e){18 t=w.2M(17.3D(),e);15 t.6a=17,t},1m:14(e){15 w.1m(17,e)},2d:14(e){15 17.2F(w.2d(17,14(t,n){15 e.1j(t,n,t)}))},1s:14(){15 17.2F(o.1A(17,1p))},3E:14(){15 17.eq(0)},4x:14(){15 17.eq(-1)},eq:14(e){18 t=17.1a,n=+e+(e<0?t:0);15 17.2F(n>=0&&n<t?[17[n]]:[])},4y:14(){15 17.6a||17.3D()},1l:s,44:n.44,2N:n.2N},w.1q=w.fn.1q=14(){18 e,t,n,r,i,o,a=1p[0]||{},s=1,u=1p.1a,l=!1;1c("45"==1f a&&(l=a,a=1p[s]||{},s++),"1P"==1f a||g(a)||(a={}),s===u&&(a=17,s--);s<u;s++)19(1b!=(e=1p[s]))1c(t 1i e)n=a[t],a!==(r=e[t])&&(l&&r&&(w.4z(r)||(i=25.2e(r)))?(i?(i=!1,o=n&&25.2e(n)?n:[]):o=n&&w.4z(n)?n:{},a[t]=w.1q(l,o,r)):1d 0!==r&&(a[t]=r));15 a},w.1q({1Q:"43"+("3.3.1"+2O.8P()).1B(/\\D/g,""),6b:!0,1V:14(e){3A 1t 5i(e)},cl:14(){},4z:14(e){18 t,n;15!(!e||"[1P 3B]"!==c.1j(e))&&(!(t=i(e))||"14"==1f(n=f.1j(t,"3D")&&t.3D)&&p.1j(n)===d)},46:14(e){18 t;1c(t 1i e)15!1;15!0},5l:14(e){m(e)},1m:14(e,t){18 n,r=0;19(C(e)){1c(n=e.1a;r<n;r++)19(!1===t.1j(e[r],r,e[r]))2m}1y 1c(r 1i e)19(!1===t.1j(e[r],r,e[r]))2m;15 e},cm:14(e){15 1b==e?"":(e+"").1B(T,"")},4A:14(e,t){18 n=t||[];15 1b!=e&&(C(3B(e))?w.2M(n,"1v"==1f e?[e]:e):s.1j(n,e)),n},47:14(e,t,n){15 1b==t?-1:u.1j(t,e,n)},2M:14(e,t){1c(18 n=+t.1a,r=0,i=e.1a;r<n;r++)e[i++]=t[r];15 e.1a=i,e},4B:14(e,t,n){1c(18 r,i=[],o=0,a=e.1a,s=!n;o<a;o++)(r=!t(e[o],o))!==s&&i.1l(e[o]);15 i},2d:14(e,t,n){18 r,i,o=0,s=[];19(C(e))1c(r=e.1a;o<r;o++)1b!=(i=t(e[o],o,n))&&s.1l(i);1y 1c(o 1i e)1b!=(i=t(e[o],o,n))&&s.1l(i);15 a.1A([],s)},1W:1,8Q:h}),"14"==1f 6c&&(w.fn[6c.8R]=n[6c.8R]),w.1m("cn co 6d cp 25 48 1J 3B 5i 6c".2Z(" "),14(e,t){l["[1P "+t+"]"]=t.1r()});14 C(e){18 t=!!e&&"1a"1i e&&e.1a,n=x(e);15!g(e)&&!y(e)&&("cq"===n||0===t||"3C"==1f t&&t>0&&t-1 1i e)}18 E=14(e){18 t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,y,v,m,x,b="cr"+1*1t 48,w=e.3z,T=0,C=0,E=ae(),k=ae(),S=ae(),D=14(e,t){15 e===t&&(f=!0),0},N={}.78,A=[],j=A.4C,q=A.1l,L=A.1l,H=A.1s,O=14(e,t){1c(18 n=0,r=e.1a;n<r;n++)19(e[n]===t)15 n;15-1},P="2n|30|5m|cs|cu|cv|cw|1N|3i|cx|cy|7a|8S|cz|cA|cB",M="[\\\\4D\\\\t\\\\r\\\\n\\\\f]",R="(?:\\\\\\\\.|[\\\\w-]|[^\\0-\\\\cC])+",I="\\\\["+M+"*("+R+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:\'((?:\\\\\\\\.|[^\\\\\\\\\'])*)\'|\\"((?:\\\\\\\\.|[^\\\\\\\\\\"])*)\\"|("+R+"))|)"+M+"*\\\\]",W=":("+R+")(?:\\\\(((\'((?:\\\\\\\\.|[^\\\\\\\\\'])*)\'|\\"((?:\\\\\\\\.|[^\\\\\\\\\\"])*)\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|"+I+")*)|.*)\\\\)|)",$=1t 1J(M+"+","g"),B=1t 1J("^"+M+"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)"+M+"+$","g"),F=1t 1J("^"+M+"*,"+M+"*"),31=1t 1J("^"+M+"*([>+~]|"+M+")"+M+"*"),z=1t 1J("="+M+"*([^\\\\]\'\\"]*?)"+M+"*\\\\]","g"),X=1t 1J(W),U=1t 1J("^"+R+"$"),V={49:1t 1J("^#("+R+")"),7b:1t 1J("^\\\\.("+R+")"),6e:1t 1J("^("+R+"|[*])"),7c:1t 1J("^"+I),7d:1t 1J("^"+W),6f:1t 1J("^:(8T|3E|4x|4E|4E-4x)-(cD|8U-1g)(?:\\\\("+M+"*(6g|5n|(([+-]|)(\\\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\\\d+)|))"+M+"*\\\\)|)","i"),7e:1t 1J("^(?:"+P+")$","i"),4F:1t 1J("^"+M+"*[>+~]|:(6g|5n|eq|gt|5o|4E|3E|4x)(?:\\\\("+M+"*((?:-\\\\d)?\\\\d*)"+M+"*\\\\)|)(?=[^-]|$)","i")},G=/^(?:1R|2o|4G|32)$/i,Y=/^h\\d$/i,Q=/^[^{]+\\{\\s*\\[cE \\w/,J=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,K=/[+~]/,Z=1t 1J("\\\\\\\\([\\\\da-f]{1,6}"+M+"?|("+M+")|.)","cF"),ee=14(e,t,n){18 r="cG"+t-8V;15 r!==r||n?t:r<0?6d.8W(r+8V):6d.8W(r>>10|cH,cI&r|cJ)},5p=/([\\0-\\8X\\8Y]|^-?\\d)|^-$|[^\\0-\\8X\\8Y-\\cK\\w-]/g,4H=14(e,t){15 t?"\\0"===e?"\\cL":e.1s(0,-1)+"\\\\"+e.cM(e.1a-1).77(16)+" ":"\\\\"+e},ba=14(){p()},3F=bd(14(e){15!0===e.1N&&("3j"1i e||"6h"1i e)},{4I:"1n",6i:"cN"});2f{L.1A(A=H.1j(w.33),w.33),A[w.33.1a].1e}26(e){L={1A:A.1a?14(e,t){q.1A(e,H.1j(t))}:14(e,t){18 n=e.1a,r=0;1h(e[n++]=t[r++]);e.1a=n-1}}}14 1w(e,t,r,i){18 o,s,l,c,f,h,v,m=t&&t.1E,T=t?t.1e:9;19(r=r||[],"1v"!=1f e||!e||1!==T&&9!==T&&11!==T)15 r;19(!i&&((t?t.1E||t:w)!==d&&p(t),t=t||d,g)){19(11!==T&&(f=J.29(e)))19(o=f[1]){19(9===T){19(!(l=t.4a(o)))15 r;19(l.2p===o)15 r.1l(l),r}1y 19(m&&(l=m.4a(o))&&x(t,l)&&l.2p===o)15 r.1l(l),r}1y{19(f[2])15 L.1A(r,t.2P(e)),r;19((o=f[3])&&n.3G&&t.3G)15 L.1A(r,t.3G(o)),r}19(n.7f&&!S[e+" "]&&(!y||!y.1k(e))){19(1!==T)m=t,v=e;1y 19("1P"!==t.1H.1r()){(c=t.1X("2p"))?c=c.1B(5p,4H):t.2q("2p",c=b),s=(h=a(e)).1a;1h(s--)h[s]="#"+c+" "+3k(h[s]);v=h.2Q(","),m=K.1k(e)&&ge(t.1n)||t}19(v)2f{15 L.1A(r,m.2r(v)),r}26(e){}8Z{c===b&&t.7g("2p")}}}15 u(e.1B(B,"$1"),t,r,i)}14 ae(){18 e=[];14 t(n,i){15 e.1l(n+" ")>r.90&&2g t[e.2R()],t[n+" "]=i}15 t}14 2h(e){15 e[b]=!0,e}14 2s(e){18 t=d.1U("91");2f{15!!e(t)}26(e){15!1}8Z{t.1n&&t.1n.5k(t),t=1b}}14 bb(e,t){18 n=e.2Z("|"),i=n.1a;1h(i--)r.5q[n[i]]=t}14 ce(e,t){18 n=t&&e,r=n&&1===e.1e&&1===t.1e&&e.92-t.92;19(r)15 r;19(n)1h(n=n.34)19(n===t)15-1;15 e?1:-1}14 fe(e){15 14(t){15"1R"===t.1H.1r()&&t.1g===e}}14 bc(e){15 14(t){18 n=t.1H.1r();15("1R"===n||"32"===n)&&t.1g===e}}14 de(e){15 14(t){15"3j"1i t?t.1n&&!1===t.1N?"6h"1i t?"6h"1i t.1n?t.1n.1N===e:t.1N===e:t.93===e||t.93!==!e&&3F(t)===e:t.1N===e:"6h"1i t&&t.1N===e}}14 he(e){15 2h(14(t){15 t=+t,2h(14(n,r){18 i,o=e([],n.1a,t),a=o.1a;1h(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}14 ge(e){15 e&&"2D"!=1f e.2P&&e}n=1w.8Q={},o=1w.94=14(e){18 t=e&&(e.1E||e).35;15!!t&&"cO"!==t.1H},p=1w.cP=14(e){18 t,i,a=e?e.1E||e:w;15 a!==d&&9===a.1e&&a.35?(d=a,h=d.35,g=!o(d),w!==d&&(i=d.5r)&&i.1Y!==i&&(i.3H?i.3H("cQ",ba,!1):i.95&&i.95("cR",ba)),n.6j=2s(14(e){15 e.5s="i",!e.1X("5s")}),n.2P=2s(14(e){15 e.24(d.cS("")),!e.2P("*").1a}),n.3G=Q.1k(d.3G),n.96=2s(14(e){15 h.24(e).2p=b,!d.7h||!d.7h(b).1a}),n.96?(r.2i.49=14(e){18 t=e.1B(Z,ee);15 14(e){15 e.1X("2p")===t}},r.1L.49=14(e,t){19("2D"!=1f t.4a&&g){18 n=t.4a(e);15 n?[n]:[]}}):(r.2i.49=14(e){18 t=e.1B(Z,ee);15 14(e){18 n="2D"!=1f e.4J&&e.4J("2p");15 n&&n.1D===t}},r.1L.49=14(e,t){19("2D"!=1f t.4a&&g){18 n,r,i,o=t.4a(e);19(o){19((n=o.4J("2p"))&&n.1D===e)15[o];i=t.7h(e),r=0;1h(o=i[r++])19((n=o.4J("2p"))&&n.1D===e)15[o]}15[]}}),r.1L.6e=n.2P?14(e,t){15"2D"!=1f t.2P?t.2P(e):n.7f?t.2r(e):1d 0}:14(e,t){18 n,r=[],i=0,o=t.2P(e);19("*"===e){1h(n=o[i++])1===n.1e&&r.1l(n);15 r}15 o},r.1L.7b=n.3G&&14(e,t){19("2D"!=1f t.3G&&g)15 t.3G(e)},v=[],y=[],(n.7f=Q.1k(d.2r))&&(2s(14(e){h.24(e).3l="<a 2p=\'"+b+"\'></a><2o 2p=\'"+b+"-\\r\\\\\' 97=\'\'><3m 30=\'\'></3m></2o>",e.2r("[97^=\'\']").1a&&y.1l("[*^$]="+M+"*(?:\'\'|\\"\\")"),e.2r("[30]").1a||y.1l("\\\\["+M+"*(?:1D|"+P+")"),e.2r("[2p~="+b+"-]").1a||y.1l("~="),e.2r(":2n").1a||y.1l(":2n"),e.2r("a#"+b+"+*").1a||y.1l(".#.+[+~]")}),2s(14(e){e.3l="<a 2j=\'\' 1N=\'1N\'></a><2o 1N=\'1N\'><3m/></2o>";18 t=d.1U("1R");t.2q("1g","3i"),e.24(t).2q("2G","D"),e.2r("[2G=d]").1a&&y.1l("2G"+M+"*[*^$|!~]?="),2!==e.2r(":6k").1a&&y.1l(":6k",":1N"),h.24(e).1N=!0,2!==e.2r(":1N").1a&&y.1l(":6k",":1N"),e.2r("*,:x"),y.1l(",.*:")})),(n.4K=Q.1k(m=h.4b||h.cT||h.cU||h.cV||h.cW))&&2s(14(e){n.98=m.1j(e,"*"),m.1j(e,"[s!=\'\']:x"),v.1l("!=",W)}),y=y.1a&&1t 1J(y.2Q("|")),v=v.1a&&1t 1J(v.2Q("|")),t=Q.1k(h.3I),x=t||Q.1k(h.2a)?14(e,t){18 n=9===e.1e?e.35:e,r=t&&t.1n;15 e===r||!(!r||1!==r.1e||!(n.2a?n.2a(r):e.3I&&16&e.3I(r)))}:14(e,t){19(t)1h(t=t.1n)19(t===e)15!0;15!1},D=t?14(e,t){19(e===t)15 f=!0,0;18 r=!e.3I-!t.3I;15 r||(1&(r=(e.1E||e)===(t.1E||t)?e.3I(t):1)||!n.99&&t.3I(e)===r?e===d||e.1E===w&&x(w,e)?-1:t===d||t.1E===w&&x(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:14(e,t){19(e===t)15 f=!0,0;18 n,r=0,i=e.1n,o=t.1n,a=[e],s=[t];19(!i||!o)15 e===d?-1:t===d?1:i?-1:o?1:c?O(c,e)-O(c,t):0;19(i===o)15 ce(e,t);n=e;1h(n=n.1n)a.37(n);n=t;1h(n=n.1n)s.37(n);1h(a[r]===s[r])r++;15 r?ce(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},1w.4b=14(e,t){15 1w(e,1b,1b,t)},1w.4K=14(e,t){19((e.1E||e)!==d&&p(e),t=t.1B(z,"=\'$1\']"),n.4K&&g&&!S[t+" "]&&(!v||!v.1k(t))&&(!y||!y.1k(t)))2f{18 r=m.1j(e,t);19(r||n.98||e.3z&&11!==e.3z.1e)15 r}26(e){}15 1w(t,d,1b,[e]).1a>0},1w.2a=14(e,t){15(e.1E||e)!==d&&p(e),x(e,t)},1w.2S=14(e,t){(e.1E||e)!==d&&p(e);18 i=r.5q[t.1r()],o=i&&N.1j(r.5q,t.1r())?i(e,t,!g):1d 0;15 1d 0!==o?o:n.6j||!g?e.1X(t):(o=e.4J(t))&&o.9a?o.1D:1b},1w.9b=14(e){15(e+"").1B(5p,4H)},1w.1V=14(e){3A 1t 5i("9c 1V, cX cY: "+e)},1w.3J=14(e){18 t,r=[],i=0,o=0;19(f=!n.9d,c=!n.9e&&e.1s(0),e.44(D),f){1h(t=e[o++])t===e[o]&&(i=r.1l(o));1h(i--)e.2N(r[i],1)}15 c=1b,e},i=1w.9f=14(e){18 t,n="",r=0,o=e.1e;19(o){19(1===o||9===o||11===o){19("1v"==1f e.3K)15 e.3K;1c(e=e.2H;e;e=e.34)n+=i(e)}1y 19(3===o||4===o)15 e.cZ}1y 1h(t=e[r++])n+=i(t);15 n},(r=1w.9g={90:50,d0:2h,2b:V,5q:{},1L:{},3n:{">":{4I:"1n",3E:!0}," ":{4I:"1n"},"+":{4I:"4L",3E:!0},"~":{4I:"4L"}},9h:{7c:14(e){15 e[1]=e[1].1B(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").1B(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.1s(0,4)},6f:14(e){15 e[1]=e[1].1r(),"4E"===e[1].1s(0,3)?(e[3]||1w.1V(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("6g"===e[3]||"5n"===e[3])),e[5]=+(e[7]+e[8]||"5n"===e[3])):e[3]&&1w.1V(e[0]),e},7d:14(e){18 t,n=!e[6]&&e[2];15 V.6f.1k(e[0])?1b:(e[3]?e[2]=e[4]||e[5]||"":n&&X.1k(n)&&(t=a(n,!0))&&(t=n.1T(")",n.1a-t)-n.1a)&&(e[0]=e[0].1s(0,t),e[2]=n.1s(0,t)),e.1s(0,3))}},2i:{6e:14(e){18 t=e.1B(Z,ee).1r();15"*"===e?14(){15!0}:14(e){15 e.1H&&e.1H.1r()===t}},7b:14(e){18 t=E[e+" "];15 t||(t=1t 1J("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,14(e){15 t.1k("1v"==1f e.5s&&e.5s||"2D"!=1f e.1X&&e.1X("4c")||"")})},7c:14(e,t,n){15 14(r){18 i=1w.2S(r,e);15 1b==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.1T(n):"*="===t?n&&i.1T(n)>-1:"$="===t?n&&i.1s(-n.1a)===n:"~="===t?(" "+i.1B($," ")+" ").1T(n)>-1:"|="===t&&(i===n||i.1s(0,n.1a+1)===n+"-"))}},6f:14(e,t,n,r,i){18 o="4E"!==e.1s(0,3),a="4x"!==e.1s(-4),s="8U-1g"===t;15 1===r&&0===i?14(e){15!!e.1n}:14(t,n,u){18 l,c,f,p,d,h,g=o!==a?"34":"4L",y=t.1n,v=s&&t.1H.1r(),m=!u&&!s,x=!1;19(y){19(o){1h(g){p=t;1h(p=p[g])19(s?p.1H.1r()===v:1===p.1e)15!1;h=g="8T"===e&&!h&&"34"}15!0}19(h=[a?y.2H:y.6l],a&&m){x=(d=(l=(c=(f=(p=y)[b]||(p[b]={}))[p.3L]||(f[p.3L]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&y.33[d];1h(p=++d&&p&&p[g]||(x=d=0)||h.4C())19(1===p.1e&&++x&&p===t){c[e]=[T,d,x];2m}}1y 19(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.3L]||(f[p.3L]={}))[e]||[])[0]===T&&l[1]),!1===x)1h(p=++d&&p&&p[g]||(x=d=0)||h.4C())19((s?p.1H.1r()===v:1===p.1e)&&++x&&(m&&((c=(f=p[b]||(p[b]={}))[p.3L]||(f[p.3L]={}))[e]=[T,x]),p===t))2m;15(x-=i)===r||x%r==0&&x/r>=0}}},7d:14(e,t){18 n,i=r.2w[e]||r.7i[e.1r()]||1w.1V("9i d1: "+e);15 i[b]?i(t):i.1a>1?(n=[e,e,"",t],r.7i.78(e.1r())?2h(14(e,n){18 r,o=i(e,t),a=o.1a;1h(a--)e[r=O(e,o[a])]=!(n[r]=o[a])}):14(e){15 i(e,0,n)}):i}},2w:{5t:2h(14(e){18 t=[],n=[],r=s(e.1B(B,"$1"));15 r[b]?2h(14(e,t,n,i){18 o,a=r(e,1b,i,[]),s=e.1a;1h(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):14(e,i,o){15 t[0]=e,r(t,1b,o,n),t[0]=1b,!n.4C()}}),6m:2h(14(e){15 14(t){15 1w(e,t).1a>0}}),2a:2h(14(e){15 e=e.1B(Z,ee),14(t){15(t.3K||t.d2||i(t)).1T(e)>-1}}),5u:2h(14(e){15 U.1k(e||"")||1w.1V("9i 5u: "+e),e=e.1B(Z,ee).1r(),14(t){18 n;do{19(n=g?t.5u:t.1X("3M:5u")||t.1X("5u"))15(n=n.1r())===e||0===n.1T(e+"-")}1h((t=t.1n)&&1===t.1e);15!1}}),2T:14(t){18 n=e.6n&&e.6n.d3;15 n&&n.1s(1)===t.2p},d4:14(e){15 e===h},4M:14(e){15 e===d.9j&&(!d.9k||d.9k())&&!!(e.1g||e.2j||~e.7j)},6k:de(!1),1N:de(!0),2n:14(e){18 t=e.1H.1r();15"1R"===t&&!!e.2n||"3m"===t&&!!e.30},30:14(e){15 e.1n&&e.1n.4N,!0===e.30},2x:14(e){1c(e=e.2H;e;e=e.34)19(e.1e<6)15!1;15!0},7k:14(e){15!r.2w.2x(e)},d5:14(e){15 Y.1k(e.1H)},1R:14(e){15 G.1k(e.1H)},32:14(e){18 t=e.1H.1r();15"1R"===t&&"32"===e.1g||"32"===t},1K:14(e){18 t;15"1R"===e.1H.1r()&&"1K"===e.1g&&(1b==(t=e.1X("1g"))||"1K"===t.1r())},3E:he(14(){15[0]}),4x:he(14(e,t){15[t-1]}),eq:he(14(e,t,n){15[n<0?n+t:n]}),6g:he(14(e,t){1c(18 n=0;n<t;n+=2)e.1l(n);15 e}),5n:he(14(e,t){1c(18 n=1;n<t;n+=2)e.1l(n);15 e}),5o:he(14(e,t,n){1c(18 r=n<0?n+t:n;--r>=0;)e.1l(r);15 e}),gt:he(14(e,t,n){1c(18 r=n<0?n+t:n;++r<t;)e.1l(r);15 e})}}).2w.4E=r.2w.eq;1c(t 1i{4O:!0,5v:!0,7l:!0,9l:!0,9m:!0})r.2w[t]=fe(t);1c(t 1i{7m:!0,9n:!0})r.2w[t]=bc(t);14 1Z(){}1Z.2E=r.d6=r.2w,r.7i=1t 1Z,a=1w.d7=14(e,t){18 n,i,o,a,s,u,l,c=k[e+" "];19(c)15 t?0:c.1s(0);s=e,u=[],l=r.9h;1h(s){n&&!(i=F.29(s))||(i&&(s=s.1s(i[0].1a)||s),u.1l(o=[])),n=!1,(i=31.29(s))&&(n=i.2R(),o.1l({1D:n,1g:i[0].1B(B," ")}),s=s.1s(n.1a));1c(a 1i r.2i)!(i=V[a].29(s))||l[a]&&!(i=l[a](i))||(n=i.2R(),o.1l({1D:n,1g:a,4b:i}),s=s.1s(n.1a));19(!n)2m}15 t?s.1a:s?1w.1V(e):k(e,u).1s(0)};14 3k(e){1c(18 t=0,n=e.1a,r="";t<n;t++)r+=e[t].1D;15 r}14 bd(e,t,n){18 r=t.4I,i=t.6i,o=i||r,a=n&&"1n"===o,s=C++;15 t.3E?14(t,n,i){1h(t=t[r])19(1===t.1e||a)15 e(t,n,i);15!1}:14(t,n,u){18 l,c,f,p=[T,s];19(u){1h(t=t[r])19((1===t.1e||a)&&e(t,n,u))15!0}1y 1h(t=t[r])19(1===t.1e||a)19(f=t[b]||(t[b]={}),c=f[t.3L]||(f[t.3L]={}),i&&i===t.1H.1r())t=t[r]||t;1y{19((l=c[o])&&l[0]===T&&l[1]===s)15 p[2]=l[2];19(c[o]=p,p[2]=e(t,n,u))15!0}15!1}}14 4d(e){15 e.1a>1?14(t,n,r){18 i=e.1a;1h(i--)19(!e[i](t,n,r))15!1;15!0}:e[0]}14 bf(e,t,n){1c(18 r=0,i=t.1a;r<i;r++)1w(e,t[r],n);15 n}14 4e(e,t,n,r,i){1c(18 o,a=[],s=0,u=e.1a,l=1b!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.1l(o),l&&t.1l(s)));15 a}14 4P(e,t,n,r,i,o){15 r&&!r[b]&&(r=4P(r)),i&&!i[b]&&(i=4P(i,o)),2h(14(o,a,s,u){18 l,c,f,p=[],d=[],h=a.1a,g=o||bf(t||"*",s.1e?[s]:s,[]),y=!e||!o&&t?g:4e(g,p,e,s,u),v=n?i||(o?e:h||r)?[]:a:y;19(n&&n(y,v,s,u),r){l=4e(v,d),r(l,[],s,u),c=l.1a;1h(c--)(f=l[c])&&(v[d[c]]=!(y[d[c]]=f))}19(o){19(i||e){19(i){l=[],c=v.1a;1h(c--)(f=v[c])&&l.1l(y[c]=f);i(1b,v=[],l,u)}c=v.1a;1h(c--)(f=v[c])&&(l=i?O(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}1y v=4e(v===a?v.2N(h,v.1a):v),i?i(1b,a,v,u):L.1A(a,v)})}14 4f(e){1c(18 t,n,i,o=e.1a,a=r.3n[e[0].1g],s=a||r.3n[" "],u=a?1:0,c=bd(14(e){15 e===t},s,!0),f=bd(14(e){15 O(t,e)>-1},s,!0),p=[14(e,n,r){18 i=!a&&(r||n!==l)||((t=n).1e?c(e,n,r):f(e,n,r));15 t=1b,i}];u<o;u++)19(n=r.3n[e[u].1g])p=[bd(4d(p),n)];1y{19((n=r.2i[e[u].1g].1A(1b,e[u].4b))[b]){1c(i=++u;i<o;i++)19(r.3n[e[i].1g])2m;15 4P(u>1&&4d(p),u>1&&3k(e.1s(0,u-1).5j({1D:" "===e[u-2].1g?"*":""})).1B(B,"$1"),n,u<i&&4f(e.1s(u,i)),i<o&&4f(e=e.1s(i)),i<o&&3k(e))}p.1l(n)}15 4d(p)}14 4g(e,t){18 n=t.1a>0,i=e.1a>0,o=14(o,a,s,u,c){18 f,h,y,v=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.1L.6e("*",c),E=T+=1b==w?1:2O.8P()||.1,k=C.1a;1c(c&&(l=a===d||a||c);m!==k&&1b!=(f=C[m]);m++){19(i&&f){h=0,a||f.1E===d||(p(f),s=!g);1h(y=e[h++])19(y(f,a||d,s)){u.1l(f);2m}c&&(T=E)}n&&((f=!y&&f)&&v--,o&&x.1l(f))}19(v+=m,n&&m!==v){h=0;1h(y=t[h++])y(x,b,a,s);19(o){19(v>0)1h(m--)x[m]||b[m]||(b[m]=j.1j(u));b=4e(b)}L.1A(u,b),c&&!o&&b.1a>0&&v+t.1a>1&&1w.3J(u)}15 c&&(T=E,l=w),x};15 n?2h(o):o}15 s=1w.d8=14(e,t){18 n,r=[],i=[],o=S[e+" "];19(!o){t||(t=a(e)),n=t.1a;1h(n--)(o=4f(t[n]))[b]?r.1l(o):i.1l(o);(o=S(e,4g(i,r))).3o=e}15 o},u=1w.2o=14(e,t,n,i){18 o,u,l,c,f,p="14"==1f e&&e,d=!i&&a(e=p.3o||e);19(n=n||[],1===d.1a){19((u=d[0]=d[0].1s(0)).1a>2&&"49"===(l=u[0]).1g&&9===t.1e&&g&&r.3n[u[1].1g]){19(!(t=(r.1L.49(l.4b[0].1B(Z,ee),t)||[])[0]))15 n;p&&(t=t.1n),e=e.1s(u.2R().1D.1a)}o=V.4F.1k(e)?0:u.1a;1h(o--){19(l=u[o],r.3n[c=l.1g])2m;19((f=r.1L[c])&&(i=f(l.4b[0].1B(Z,ee),K.1k(u[0].1g)&&ge(t.1n)||t))){19(u.2N(o,1),!(e=i.1a&&3k(u)))15 L.1A(n,i),n;2m}}}15(p||s(e,d))(i,t,!g,n,!t||K.1k(e)&&ge(t.1n)||t),n},n.9e=b.2Z("").44(D).2Q("")===b,n.9d=!!f,p(),n.99=2s(14(e){15 1&e.3I(d.1U("91"))}),2s(14(e){15 e.3l="<a 2j=\'#\'></a>","#"===e.2H.1X("2j")})||bb("1g|2j|5w|2t",14(e,t,n){19(!n)15 e.1X(t,"1g"===t.1r()?1:2)}),n.6j&&2s(14(e){15 e.3l="<1R/>",e.2H.2q("1D",""),""===e.2H.1X("1D")})||bb("1D",14(e,t,n){19(!n&&"1R"===e.1H.1r())15 e.6o}),2s(14(e){15 1b==e.1X("1N")})||bb(P,14(e,t,n){18 r;19(!n)15!0===e[t]?t.1r():(r=e.4J(t))&&r.9a?r.1D:1b}),1w}(e);w.1L=E,w.2I=E.9g,w.2I[":"]=w.2I.2w,w.3J=w.9o=E.3J,w.1K=E.9f,w.6p=E.94,w.2a=E.2a,w.d9=E.9b;18 k=14(e,t,n){18 r=[],i=1d 0!==n;1h((e=e[t])&&9!==e.1e)19(1===e.1e){19(i&&w(e).7n(n))2m;r.1l(e)}15 r},S=14(e,t){1c(18 n=[];e;e=e.34)1===e.1e&&e!==t&&n.1l(e);15 n},D=w.2I.2b.4F;14 N(e,t){15 e.1H&&e.1H.1r()===t.1r()}18 A=/^<([a-z][^\\/\\0>:\\4D\\t\\r\\n\\f]*)[\\4D\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i;14 j(e,t,n){15 g(t)?w.4B(e,14(e,r){15!!t.1j(e,r,e)!==n}):t.1e?w.4B(e,14(e){15 e===t!==n}):"1v"!=1f t?w.4B(e,14(e){15 u.1j(t,e)>-1!==n}):w.2i(t,e,n)}w.2i=14(e,t,n){18 r=t[0];15 n&&(e=":5t("+e+")"),1===t.1a&&1===r.1e?w.1L.4K(r,e)?[r]:[]:w.1L.4b(e,w.4B(t,14(e){15 1===e.1e}))},w.fn.1q({1L:14(e){18 t,n,r=17.1a,i=17;19("1v"!=1f e)15 17.2F(w(e).2i(14(){1c(t=0;t<r;t++)19(w.2a(i[t],17))15!0}));1c(n=17.2F([]),t=0;t<r;t++)w.1L(e,i[t],n);15 r>1?w.3J(n):n},2i:14(e){15 17.2F(j(17,e||[],!1))},5t:14(e){15 17.2F(j(17,e||[],!0))},7n:14(e){15!!j(17,"1v"==1f e&&D.1k(e)?w(e):e||[],!1).1a}});18 q,L=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/;(w.fn.4v=14(e,t,n){18 i,o;19(!e)15 17;19(n=n||q,"1v"==1f e){19(!(i="<"===e[0]&&">"===e[e.1a-1]&&e.1a>=3?[1b,e,1b]:L.29(e))||!i[1]&&t)15!t||t.4w?(t||n).1L(e):17.3D(t).1L(e);19(i[1]){19(t=t 9p w?t[0]:t,w.2M(17,w.7o(i[1],t&&t.1e?t.1E||t:r,!0)),A.1k(i[1])&&w.4z(t))1c(i 1i t)g(17[i])?17[i](t[i]):17.2S(i,t[i]);15 17}15(o=r.4a(i[2]))&&(17[0]=o,17.1a=1),17}15 e.1e?(17[0]=e,17.1a=1,17):g(e)?1d 0!==n.3N?n.3N(e):e(w):w.4A(e,17)}).2E=w.fn,q=w(r);18 H=/^(?:9q|7p(?:9r|db))/,O={7q:!0,4h:!0,6i:!0,7p:!0};w.fn.1q({6m:14(e){18 t=w(e,17),n=t.1a;15 17.2i(14(){1c(18 e=0;e<n;e++)19(w.2a(17,t[e]))15!0})},dc:14(e,t){18 n,r=0,i=17.1a,o=[],a="1v"!=1f e&&w(e);19(!D.1k(e))1c(;r<i;r++)1c(n=17[r];n&&n!==t;n=n.1n)19(n.1e<11&&(a?a.7r(n)>-1:1===n.1e&&w.1L.4K(n,e))){o.1l(n);2m}15 17.2F(o.1a>1?w.3J(o):o)},7r:14(e){15 e?"1v"==1f e?u.1j(w(e),17[0]):u.1j(17,e.4w?e[0]:e):17[0]&&17[0].1n?17.3E().9s().1a:-1},27:14(e,t){15 17.2F(w.3J(w.2M(17.1o(),w(e,t))))},dd:14(e){15 17.27(1b==e?17.6a:17.6a.2i(e))}});14 P(e,t){1h((e=e[t])&&1!==e.1e);15 e}w.1m({7k:14(e){18 t=e.1n;15 t&&11!==t.1e?t:1b},9q:14(e){15 k(e,"1n")},df:14(e,t,n){15 k(e,"1n",n)},6i:14(e){15 P(e,"34")},7p:14(e){15 P(e,"4L")},dg:14(e){15 k(e,"34")},9s:14(e){15 k(e,"4L")},dh:14(e,t,n){15 k(e,"34",n)},di:14(e,t,n){15 k(e,"4L",n)},dj:14(e){15 S((e.1n||{}).2H,e)},7q:14(e){15 S(e.2H)},4h:14(e){15 N(e,"dk")?e.dl:(N(e,"dm")&&(e=e.4i||e),w.2M([],e.33))}},14(e,t){w.fn[e]=14(n,r){18 i=w.2d(17,t,n);15"9r"!==e.1s(-5)&&(r=n),r&&"1v"==1f r&&(i=w.2i(r,i)),17.1a>1&&(O[e]||w.3J(i),H.1k(e)&&i.dn()),17.2F(i)}});18 M=/[^\\4D\\t\\r\\n\\f]+/g;14 R(e){18 t={};15 w.1m(e.2b(M)||[],14(e,n){t[n]=!0}),t}w.3p=14(e){e="1v"==1f e?R(e):w.1q({},e);18 t,n,r,i,o=[],a=[],s=-1,u=14(){1c(i=i||e.4j,r=t=!0;a.1a;s=-1){n=a.2R();1h(++s<o.1a)!1===o[s].1A(n[0],n[1])&&e.dp&&(s=o.1a,n=!1)}e.3q||(n=!1),t=!1,i&&(o=n?[]:"")},l={27:14(){15 o&&(n&&!t&&(s=o.1a-1,a.1l(n)),14 t(n){w.1m(n,14(n,r){g(r)?e.9o&&l.6m(r)||o.1l(r):r&&r.1a&&"1v"!==x(r)&&t(r)})}(1p),n&&!t&&u()),17},21:14(){15 w.1m(1p,14(e,t){18 n;1h((n=w.47(t,o,n))>-1)o.2N(n,1),n<=s&&s--}),17},6m:14(e){15 e?w.47(e,o)>-1:o.1a>0},2x:14(){15 o&&(o=[]),17},7s:14(){15 i=a=[],o=n="",17},1N:14(){15!o},7t:14(){15 i=a=[],n||t||(o=n=""),17},dq:14(){15!!i},6q:14(e,n){15 i||(n=[e,(n=n||[]).1s?n.1s():n],a.1l(n),t||u()),17},4Q:14(){15 l.6q(17,1p),17},dr:14(){15!!r}};15 l};14 I(e){15 e}14 W(e){3A e}14 $(e,t,n,r){18 i;2f{e&&g(i=e.2y)?i.1j(e).2U(t).4k(n):e&&g(i=e.3r)?i.1j(e,t,n):t.1A(1d 0,[e].1s(r))}26(e){n.1A(1d 0,[e])}}w.1q({2u:14(t){18 n=[["9t","6r",w.3p("3q"),w.3p("3q"),2],["7u","2U",w.3p("4j 3q"),w.3p("4j 3q"),0,"ds"],["6s","4k",w.3p("4j 3q"),w.3p("4j 3q"),1,"dt"]],r="9u",i={5x:14(){15 r},38:14(){15 o.2U(1p).4k(1p),17},"26":14(e){15 i.3r(1b,e)},du:14(){18 e=1p;15 w.2u(14(t){w.1m(n,14(n,r){18 i=g(e[r[4]])&&e[r[4]];o[r[1]](14(){18 e=i&&i.1A(17,1p);e&&g(e.2y)?e.2y().6r(t.9t).2U(t.7u).4k(t.6s):t[r[0]+"5y"](17,i?[e]:1p)})}),e=1b}).2y()},3r:14(t,r,i){18 o=0;14 a(t,n,r,i){15 14(){18 s=17,u=1p,l=14(){18 e,l;19(!(t<o)){19((e=r.1A(s,u))===n.2y())3A 1t dv("dw dx-dy");l=e&&("1P"==1f e||"14"==1f e)&&e.3r,g(l)?i?l.1j(e,a(o,n,I,i),a(o,n,W,i)):(o++,l.1j(e,a(o,n,I,i),a(o,n,W,i),a(o,n,I,n.5z))):(r!==I&&(s=1d 0,u=[e]),(i||n.4l)(s,u))}},c=i?l:14(){2f{l()}26(e){w.2u.7v&&w.2u.7v(e,c.9v),t+1>=o&&(r!==W&&(s=1d 0,u=[e]),n.7w(s,u))}};t?c():(w.2u.9w&&(c.9v=w.2u.9w()),e.3O(c))}}15 w.2u(14(e){n[0][3].27(a(0,e,g(i)?i:I,e.5z)),n[1][3].27(a(0,e,g(t)?t:I)),n[2][3].27(a(0,e,g(r)?r:W))}).2y()},2y:14(e){15 1b!=e?w.1q(e,i):i}},o={};15 w.1m(n,14(e,t){18 a=t[2],s=t[5];i[t[1]]=a.27,s&&a.27(14(){r=s},n[3-e][2].7s,n[3-e][3].7s,n[0][2].7t,n[0][3].7t),a.27(t[3].4Q),o[t[0]]=14(){15 o[t[0]+"5y"](17===o?1d 0:17,1p),17},o[t[0]+"5y"]=a.6q}),i.2y(o),t&&t.1j(o,o),o},dz:14(e){18 t=1p.1a,n=t,r=25(n),i=o.1j(1p),a=w.2u(),s=14(e){15 14(n){r[e]=17,i[e]=1p.1a>1?o.1j(1p):n,--t||a.4l(r,i)}};19(t<=1&&($(e,a.2U(s(n)).7u,a.6s,!t),"9u"===a.5x()||g(i[n]&&i[n].3r)))15 a.3r();1h(n--)$(i[n],s(n),a.6s);15 a.2y()}});18 B=/^(dA|dB|dC|dD|9c|7x|dE)5i$/;w.2u.7v=14(t,n){e.7y&&e.7y.9x&&t&&B.1k(t.2G)&&e.7y.9x("43.2u dF: "+t.dG,t.dH,n)},w.9y=14(t){e.3O(14(){3A t})};18 F=w.2u();w.fn.3N=14(e){15 F.3r(e)["26"](14(e){w.9y(e)}),17},w.1q({6b:!1,6t:1,3N:14(e){(!0===e?--w.6t:w.6b)||(w.6b=!0,!0!==e&&--w.6t>0||F.4l(r,[w]))}}),w.3N.3r=F.3r;14 31(){r.4R("9z",31),e.4R("5A",31),w.3N()}"4S"===r.4T||"dI"!==r.4T&&!r.35.dJ?e.3O(w.3N):(r.3H("9z",31),e.3H("5A",31));18 z=14(e,t,n,r,i,o,a){18 s=0,u=e.1a,l=1b==n;19("1P"===x(n)){i=!0;1c(s 1i n)z(e,t,s,n[s],!0,o,a)}1y 19(1d 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.1j(e,r),t=1b):(l=t,t=14(e,t,n){15 l.1j(w(e),n)})),t))1c(;s<u;s++)t(e[s],n,a?r:r.1j(e[s],s,t(e[s],n)));15 i?e:l?t.1j(e):u?t(e[0],n):o},X=/^-7z-/,U=/-([a-z])/g;14 V(e,t){15 t.4U()}14 G(e){15 e.1B(X,"7z-").1B(U,V)}18 Y=14(e){15 1===e.1e||9===e.1e||!+e.1e};14 Q(){17.1Q=w.1Q+Q.9A++}Q.9A=1,Q.2E={4m:14(e){18 t=e[17.1Q];15 t||(t={},Y(e)&&(e.1e?e[17.1Q]=t:3B.7A(e,17.1Q,{1D:t,7B:!0}))),t},1C:14(e,t,n){18 r,i=17.4m(e);19("1v"==1f t)i[G(t)]=n;1y 1c(r 1i t)i[G(r)]=t[r];15 i},1o:14(e,t){15 1d 0===t?17.4m(e):e[17.1Q]&&e[17.1Q][G(t)]},2z:14(e,t,n){15 1d 0===t||t&&"1v"==1f t&&1d 0===n?17.1o(e,t):(17.1C(e,t,n),1d 0!==n?n:t)},21:14(e,t){18 n,r=e[17.1Q];19(1d 0!==r){19(1d 0!==t){n=(t=25.2e(t)?t.2d(G):(t=G(t))1i r?[t]:t.2b(M)||[]).1a;1h(n--)2g r[t[n]]}(1d 0===t||w.46(r))&&(e.1e?e[17.1Q]=1d 0:2g e[17.1Q])}},4n:14(e){18 t=e[17.1Q];15 1d 0!==t&&!w.46(t)}};18 J=1t Q,K=1t Q,Z=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,ee=/[A-Z]/g;14 5p(e){15"9B"===e||"dK"!==e&&("1b"===e?1b:e===+e+""?+e:Z.1k(e)?7C.7D(e):e)}14 4H(e,t,n){18 r;19(1d 0===n&&1===e.1e)19(r="1F-"+t.1B(ee,"-$&").1r(),"1v"==1f(n=e.1X(r))){2f{n=5p(n)}26(e){}K.1C(e,t,n)}1y n=1d 0;15 n}w.1q({4n:14(e){15 K.4n(e)||J.4n(e)},1F:14(e,t,n){15 K.2z(e,t,n)},9C:14(e,t){K.21(e,t)},dL:14(e,t,n){15 J.2z(e,t,n)},dM:14(e,t){J.21(e,t)}}),w.fn.1q({1F:14(e,t){18 n,r,i,o=17[0],a=o&&o.6j;19(1d 0===e){19(17.1a&&(i=K.1o(o),1===o.1e&&!J.1o(o,"9D"))){n=a.1a;1h(n--)a[n]&&0===(r=a[n].2G).1T("1F-")&&(r=G(r.1s(5)),4H(o,r,i[r]));J.1C(o,"9D",!0)}15 i}15"1P"==1f e?17.1m(14(){K.1C(17,e)}):z(17,14(t){18 n;19(o&&1d 0===t){19(1d 0!==(n=K.1o(o,e)))15 n;19(1d 0!==(n=4H(o,e)))15 n}1y 17.1m(14(){K.1C(17,e,t)})},1b,t,1p.1a>1,1b,!0)},9C:14(e){15 17.1m(14(){K.21(17,e)})}}),w.1q({1G:14(e,t,n){18 r;19(e)15 t=(t||"fx")+"1G",r=J.1o(e,t),n&&(!r||25.2e(n)?r=J.2z(e,t,w.4A(n)):r.1l(n)),r||[]},4o:14(e,t){t=t||"fx";18 n=w.1G(e,t),r=n.1a,i=n.2R(),o=w.5B(e,t),a=14(){w.4o(e,t)};"7E"===i&&(i=n.2R(),r--),i&&("fx"===t&&n.37("7E"),2g o.22,i.1j(e,a,o)),!r&&o&&o.2x.4Q()},5B:14(e,t){18 n=t+"5C";15 J.1o(e,n)||J.2z(e,n,{2x:w.3p("4j 3q").27(14(){J.21(e,[t+"1G",n])})})}}),w.fn.1q({1G:14(e,t){18 n=2;15"1v"!=1f e&&(t=e,e="fx",n--),1p.1a<n?w.1G(17[0],e):1d 0===t?17:17.1m(14(){18 n=w.1G(17,e,t);w.5B(17,e),"fx"===e&&"7E"!==n[0]&&w.4o(17,e)})},4o:14(e){15 17.1m(14(){w.4o(17,e)})},dN:14(e){15 17.1G(e||"fx",[])},2y:14(e,t){18 n,r=1,i=w.2u(),o=17,a=17.1a,s=14(){--r||i.4l(o,[o])};"1v"!=1f e&&(t=e,e=1d 0),e=e||"fx";1h(a--)(n=J.1o(o[a],e+"5C"))&&n.2x&&(r++,n.2x.27(s));15 s(),i.2y(t)}});18 ba=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.9E,3F=1t 1J("^(?:([+-])=|)("+ba+")([a-z%]*)$","i"),1w=["dO","dP","dQ","dR"],ae=14(e,t){15"39"===(e=t||e).1u.1M||""===e.1u.1M&&w.2a(e.1E,e)&&"39"===w.1x(e,"1M")},2h=14(e,t,n,r){18 i,o,a={};1c(o 1i t)a[o]=e.1u[o],e.1u[o]=t[o];i=n.1A(e,r||[]);1c(o 1i t)e.1u[o]=a[o];15 i};14 2s(e,t,n,r){18 i,o,a=20,s=r?14(){15 r.7F()}:14(){15 w.1x(e,t,"")},u=s(),l=n&&n[3]||(w.5D[t]?"":"2V"),c=(w.5D[t]||"2V"!==l&&+u)&&3F.29(w.1x(e,t));19(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;1h(a--)w.1u(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,w.1u(e,t,c+l),n=n||[]}15 n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.7G=l,r.2W=c,r.4y=i)),i}18 bb={};14 ce(e){18 t,n=e.1E,r=e.1H,i=bb[r];15 i||(t=n.4V.24(n.1U(r)),i=w.1x(t,"1M"),t.1n.5k(t),"39"===i&&(i="5E"),bb[r]=i,i)}14 fe(e,t){1c(18 n,r,i=[],o=0,a=e.1a;o<a;o++)(r=e[o]).1u&&(n=r.1u.1M,t?("39"===n&&(i[o]=J.1o(r,"1M")||1b,i[o]||(r.1u.1M="")),""===r.1u.1M&&ae(r)&&(i[o]=ce(r))):"39"!==n&&(i[o]="39",J.1C(r,"1M",n)));1c(o=0;o<a;o++)1b!=i[o]&&(e[o].1u.1M=i[o]);15 e}w.fn.1q({3a:14(){15 fe(17,!0)},3P:14(){15 fe(17)},4W:14(e){15"45"==1f e?e?17.3a():17.3P():17.1m(14(){ae(17)?w(17).3a():w(17).3P()})}});18 bc=/^(?:5v|4O)$/i,de=/<([a-z][^\\/\\0>\\4D\\t\\r\\n\\f]+)/i,he=/^$|^5h$|\\/(?:9F|9G)1O/i,ge={3m:[1,"<2o 7a=\'7a\'>","</2o>"],9H:[1,"<3b>","</3b>"],9I:[2,"<3b><7H>","</7H></3b>"],6u:[2,"<3b><4X>","</4X></3b>"],9J:[3,"<3b><4X><6u>","</6u></4X></3b>"],2A:[0,"",""]};ge.9K=ge.3m,ge.4X=ge.dS=ge.7H=ge.dT=ge.9H,ge.dU=ge.9J;14 1Z(e,t){18 n;15 n="2D"!=1f e.2P?e.2P(t||"*"):"2D"!=1f e.2r?e.2r(t||"*"):[],1d 0===t||t&&N(e,t)?w.2M([e],n):n}14 3k(e,t){1c(18 n=0,r=e.1a;n<r;n++)J.1C(e[n],"5l",!t||J.1o(t[n],"5l"))}18 bd=/<|&#?\\w+;/;14 4d(e,t,n,r,i){1c(18 o,a,s,u,l,c,f=t.9L(),p=[],d=0,h=e.1a;d<h;d++)19((o=e[d])||0===o)19("1P"===x(o))w.2M(p,o.1e?[o]:o);1y 19(bd.1k(o)){a=a||f.24(t.1U("4Y")),s=(de.29(o)||["",""])[1].1r(),u=ge[s]||ge.2A,a.3l=u[1]+w.7I(o)+u[2],c=u[0];1h(c--)a=a.6l;w.2M(p,a.33),(a=f.2H).3K=""}1y p.1l(t.dV(o));f.3K="",d=0;1h(o=p[d++])19(r&&w.47(o,r)>-1)i&&i.1l(o);1y 19(l=w.2a(o.1E,o),a=1Z(f.24(o),"1O"),l&&3k(a),n){c=0;1h(o=a[c++])he.1k(o.1g||"")&&n.1l(o)}15 f}!14(){18 e=r.9L().24(r.1U("4Y")),t=r.1U("1R");t.2q("1g","4O"),t.2q("2n","2n"),t.2q("2G","t"),e.24(t),h.9M=e.5F(!0).5F(!0).6l.2n,e.3l="<4G>x</4G>",h.9N=!!e.5F(!0).6l.6o}();18 bf=r.35,4e=/^9O/,4P=/^(?:dW|dX|9P|dY|dZ)|4p/,4f=/^([^.]*)(?:\\.(.+)|)/;14 4g(){15!0}14 4q(){15!1}14 7J(){2f{15 r.9j}26(e){}}14 6v(e,t,n,r,i,o){18 a,s;19("1P"==1f t){"1v"!=1f n&&(r=r||n,n=1d 0);1c(s 1i t)6v(e,s,n,r,t[s],o);15 e}19(1b==r&&1b==i?(i=n,r=n=1d 0):1b==i&&("1v"==1f n?(i=r,r=1d 0):(i=r,r=n,n=1d 0)),!1===i)i=4q;1y 19(!i)15 e;15 1===o&&(a=i,(i=14(e){15 w().3Q(e),a.1A(17,1p)}).1W=a.1W||(a.1W=w.1W++)),e.1m(14(){w.1z.27(17,t,i,r,n)})}w.1z={5G:{},27:14(e,t,n,r,i){18 o,a,s,u,l,c,f,p,d,h,g,y=J.1o(e);19(y){n.3R&&(n=(o=n).3R,i=o.3o),i&&w.1L.4K(bf,i),n.1W||(n.1W=w.1W++),(u=y.3c)||(u=y.3c={}),(a=y.3d)||(a=y.3d=14(t){15"2D"!=1f w&&w.1z.6w!==t.1g?w.1z.9Q.1A(e,1p):1d 0}),l=(t=(t||"").2b(M)||[""]).1a;1h(l--)d=g=(s=4f.29(t[l])||[])[1],h=(s[2]||"").2Z(".").44(),d&&(f=w.1z.3e[d]||{},d=(i?f.4Z:f.6x)||d,f=w.1z.3e[d]||{},c=w.1q({1g:d,51:g,1F:r,3R:n,1W:n.1W,3o:i,4F:i&&w.2I.2b.4F.1k(i),3s:h.2Q(".")},o),(p=u[d])||((p=u[d]=[]).6y=0,f.7K&&!1!==f.7K.1j(e,r,h,a)||e.3H&&e.3H(d,a)),f.27&&(f.27.1j(e,c),c.3R.1W||(c.3R.1W=n.1W)),i?p.2N(p.6y++,0,c):p.1l(c),w.1z.5G[d]=!0)}},21:14(e,t,n,r,i){18 o,a,s,u,l,c,f,p,d,h,g,y=J.4n(e)&&J.1o(e);19(y&&(u=y.3c)){l=(t=(t||"").2b(M)||[""]).1a;1h(l--)19(s=4f.29(t[l])||[],d=g=s[1],h=(s[2]||"").2Z(".").44(),d){f=w.1z.3e[d]||{},p=u[d=(r?f.4Z:f.6x)||d]||[],s=s[2]&&1t 1J("(^|\\\\.)"+h.2Q("\\\\.(?:.*\\\\.|)")+"(\\\\.|$)"),a=o=p.1a;1h(o--)c=p[o],!i&&g!==c.51||n&&n.1W!==c.1W||s&&!s.1k(c.3s)||r&&r!==c.3o&&("**"!==r||!c.3o)||(p.2N(o,1),c.3o&&p.6y--,f.21&&f.21.1j(e,c));a&&!p.1a&&(f.7L&&!1!==f.7L.1j(e,h,y.3d)||w.7M(e,d,y.3d),2g u[d])}1y 1c(d 1i u)w.1z.21(e,d+t[l],n,r,!0);w.46(u)&&J.21(e,"3d 3c")}},9Q:14(e){18 t=w.1z.7N(e),n,r,i,o,a,s,u=1t 25(1p.1a),l=(J.1o(17,"3c")||{})[t.1g]||[],c=w.1z.3e[t.1g]||{};1c(u[0]=t,n=1;n<1p.1a;n++)u[n]=1p[n];19(t.9R=17,!c.9S||!1!==c.9S.1j(17,t)){s=w.1z.5H.1j(17,t,l),n=0;1h((o=s[n++])&&!t.52()){t.7O=o.1I,r=0;1h((a=o.5H[r++])&&!t.7P())t.7Q&&!t.7Q.1k(a.3s)||(t.6z=a,t.1F=a.1F,1d 0!==(i=((w.1z.3e[a.51]||{}).3d||a.3R).1A(o.1I,u))&&!1===(t.3S=i)&&(t.5I(),t.5J()))}15 c.7R&&c.7R.1j(17,t),t.3S}},5H:14(e,t){18 n,r,i,o,a,s=[],u=t.6y,l=e.2T;19(u&&l.1e&&!("4p"===e.1g&&e.32>=1))1c(;l!==17;l=l.1n||17)19(1===l.1e&&("4p"!==e.1g||!0!==l.1N)){1c(o=[],a={},n=0;n<u;n++)1d 0===a[i=(r=t[n]).3o+" "]&&(a[i]=r.4F?w(i,17).7r(l)>-1:w.1L(i,17,1b,[l]).1a),a[i]&&o.1l(r);o.1a&&s.1l({1I:l,5H:o})}15 l=17,u<t.1a&&s.1l({1I:l,5H:t.1s(u)}),s},9T:14(e,t){3B.7A(w.3t.2E,e,{9U:!0,7B:!0,1o:g(t)?14(){19(17.3f)15 t(17.3f)}:14(){19(17.3f)15 17.3f[e]},1C:14(t){3B.7A(17,e,{9U:!0,7B:!0,e0:!0,1D:t})}})},7N:14(e){15 e[w.1Q]?e:1t w.3t(e)},3e:{5A:{9V:!0},4M:{2c:14(){19(17!==7J()&&17.4M)15 17.4M(),!1},4Z:"5K"},5L:{2c:14(){19(17===7J()&&17.5L)15 17.5L(),!1},4Z:"7S"},4p:{2c:14(){19("5v"===17.1g&&17.4p&&N(17,"1R"))15 17.4p(),!1},2A:14(e){15 N(e.2T,"a")}},e1:{7R:14(e){1d 0!==e.3S&&e.3f&&(e.3f.9W=e.3S)}}}},w.7M=14(e,t,n){e.4R&&e.4R(t,n)},w.3t=14(e,t){19(!(17 9p w.3t))15 1t w.3t(e,t);e&&e.1g?(17.3f=e,17.1g=e.1g,17.6A=e.9X||1d 0===e.9X&&!1===e.9W?4g:4q,17.2T=e.2T&&3===e.2T.1e?e.2T.1n:e.2T,17.7O=e.7O,17.7T=e.7T):17.1g=e,t&&w.1q(17,t),17.9Y=e&&e.9Y||48.2J(),17[w.1Q]=!0},w.3t.2E={3D:w.3t,6A:4q,52:4q,7P:4q,5M:!1,5I:14(){18 e=17.3f;17.6A=4g,e&&!17.5M&&e.5I()},5J:14(){18 e=17.3f;17.52=4g,e&&!17.5M&&e.5J()},9Z:14(){18 e=17.3f;17.7P=4g,e&&!17.5M&&e.9Z(),17.5J()}},w.1m({e2:!0,e3:!0,e4:!0,e5:!0,e6:!0,e7:!0,e8:!0,e9:!0,eb:!0,ec:!0,ed:!0,ef:!0,"eg":!0,7U:!0,9O:!0,a0:!0,32:!0,eh:!0,ei:!0,ej:!0,ek:!0,el:!0,em:!0,en:!0,eo:!0,ep:!0,er:!0,es:!0,eu:!0,6B:14(e){18 t=e.32;15 1b==e.6B&&4e.1k(e.1g)?1b!=e.7U?e.7U:e.a0:!e.6B&&1d 0!==t&&4P.1k(e.1g)?1&t?1:2&t?3:4&t?2:0:e.6B}},w.1z.9T),w.1m({7V:"a1",7W:"a2",ev:"ew",ex:"ey"},14(e,t){w.1z.3e[e]={4Z:t,6x:t,3d:14(e){18 n,r=17,i=e.7T,o=e.6z;15 i&&(i===r||w.2a(r,i))||(e.1g=o.51,n=o.3R.1A(17,1p),e.1g=t),n}}}),w.fn.1q({3T:14(e,t,n,r){15 6v(17,e,t,n,r)},a3:14(e,t,n,r){15 6v(17,e,t,n,r,1)},3Q:14(e,t,n){18 r,i;19(e&&e.5I&&e.6z)15 r=e.6z,w(e.9R).3Q(r.3s?r.51+"."+r.3s:r.51,r.3o,r.3R),17;19("1P"==1f e){1c(i 1i e)17.3Q(i,t,e[i]);15 17}15!1!==t&&"14"!=1f t||(n=t,t=1d 0),!1===n&&(n=4q),17.1m(14(){w.1z.21(17,e,n,t)})}});18 bg=/<(?!a4|br|9I|ez|eA|eB|1R|a5|eC|6C)(([a-z][^\\/\\0>\\4D\\t\\r\\n\\f]*)[^>]*)\\/>/gi,a6=/<1O|<1u|<a5/i,a7=/2n\\s*(?:[^=]|=\\s*.2n.)/i,a8=/^\\s*<!(?:\\[eD\\[|--)|(?:\\]\\]|--)>\\s*$/g;14 7X(e,t){15 N(e,"3b")&&N(11!==t.1e?t:t.2H,"6u")?w(e).7q("4X")[0]||e:e}14 a9(e){15 e.1g=(1b!==e.1X("1g"))+"/"+e.1g,e}14 aa(e){15"9B/"===(e.1g||"").1s(0,5)?e.1g=e.1g.1s(5):e.7g("1g"),e}14 7Y(e,t){18 n,r,i,o,a,s,u,l;19(1===t.1e){19(J.4n(e)&&(o=J.2z(e),a=J.1C(t,o),l=o.3c)){2g a.3d,a.3c={};1c(i 1i l)1c(n=0,r=l[i].1a;n<r;n++)w.1z.27(t,i,l[i][n])}K.4n(e)&&(s=K.2z(e),u=w.1q({},s),K.1C(t,u))}}14 ab(e,t){18 n=t.1H.1r();"1R"===n&&bc.1k(e.1g)?t.2n=e.2n:"1R"!==n&&"4G"!==n||(t.6o=e.6o)}14 4r(e,t,n,r){t=a.1A([],t);18 i,o,s,u,l,c,f=0,p=e.1a,d=p-1,y=t[0],v=g(y);19(v||p>1&&"1v"==1f y&&!h.9M&&a7.1k(y))15 e.1m(14(i){18 o=e.eq(i);v&&(t[0]=y.1j(17,i,o.3U())),4r(o,t,n,r)});19(p&&(i=4d(t,e[0].1E,!1,e,r),o=i.2H,1===i.33.1a&&(i=o),o||r)){1c(u=(s=w.2d(1Z(i,"1O"),a9)).1a;f<p;f++)l=i,f!==d&&(l=w.53(l,!0,!0),u&&w.2M(s,1Z(l,"1O"))),n.1j(e[f],l,f);19(u)1c(c=s[s.1a-1].1E,w.2d(s,aa),f=0;f<u;f++)l=s[f],he.1k(l.1g||"")&&!J.2z(l,"5l")&&w.2a(c,l)&&(l.69&&"5h"!==(l.1g||"").1r()?w.7Z&&w.7Z(l.69):m(l.3K.1B(a8,""),c,l))}15 e}14 80(e,t,n){1c(18 r,i=t?w.2i(t,e):e,o=0;1b!=(r=i[o]);o++)n||1!==r.1e||w.5N(1Z(r)),r.1n&&(n&&w.2a(r.1E,r)&&3k(1Z(r,"1O")),r.1n.5k(r));15 e}w.1q({7I:14(e){15 e.1B(bg,"<$1></$2>")},53:14(e,t,n){18 r,i,o,a,s=e.5F(!0),u=w.2a(e.1E,e);19(!(h.9N||1!==e.1e&&11!==e.1e||w.6p(e)))1c(a=1Z(s),r=0,i=(o=1Z(e)).1a;r<i;r++)ab(o[r],a[r]);19(t)19(n)1c(o=o||1Z(e),a=a||1Z(s),r=0,i=o.1a;r<i;r++)7Y(o[r],a[r]);1y 7Y(e,s);15(a=1Z(s,"1O")).1a>0&&3k(a,!u&&1Z(e,"1O")),s},5N:14(e){1c(18 t,n,r,i=w.1z.3e,o=0;1d 0!==(n=e[o]);o++)19(Y(n)){19(t=n[J.1Q]){19(t.3c)1c(r 1i t.3c)i[r]?w.1z.21(n,r):w.7M(n,r,t.3d);n[J.1Q]=1d 0}n[K.1Q]&&(n[K.1Q]=1d 0)}}}),w.fn.1q({eF:14(e){15 80(17,e,!0)},21:14(e){15 80(17,e)},1K:14(e){15 z(17,14(e){15 1d 0===e?w.1K(17):17.2x().1m(14(){1!==17.1e&&11!==17.1e&&9!==17.1e||(17.3K=e)})},1b,e,1p.1a)},54:14(){15 4r(17,1p,14(e){1!==17.1e&&11!==17.1e&&9!==17.1e||7X(17,e).24(e)})},ac:14(){15 4r(17,1p,14(e){19(1===17.1e||11===17.1e||9===17.1e){18 t=7X(17,e);t.5O(e,t.2H)}})},ad:14(){15 4r(17,1p,14(e){17.1n&&17.1n.5O(e,17)})},af:14(){15 4r(17,1p,14(e){17.1n&&17.1n.5O(e,17.34)})},2x:14(){1c(18 e,t=0;1b!=(e=17[t]);t++)1===e.1e&&(w.5N(1Z(e,!1)),e.3K="");15 17},53:14(e,t){15 e=1b!=e&&e,t=1b==t?e:t,17.2d(14(){15 w.53(17,e,t)})},3U:14(e){15 z(17,14(e){18 t=17[0]||{},n=0,r=17.1a;19(1d 0===e&&1===t.1e)15 t.3l;19("1v"==1f e&&!a6.1k(e)&&!ge[(de.29(e)||["",""])[1].1r()]){e=w.7I(e);2f{1c(;n<r;n++)1===(t=17[n]||{}).1e&&(w.5N(1Z(t,!1)),t.3l=e);t=0}26(e){}}t&&17.2x().54(e)},1b,e,1p.1a)},81:14(){18 e=[];15 4r(17,1p,14(t){18 n=17.1n;w.47(17,e)<0&&(w.5N(1Z(17)),n&&n.eG(t,17))},e)}}),w.1m({eH:"54",eI:"ac",5O:"ad",eJ:"af",eK:"81"},14(e,t){w.fn[e]=14(e){1c(18 n,r=[],i=w(e),o=i.1a-1,a=0;a<=o;a++)n=a===o?17:17.53(!0),w(i[a])[t](n),s.1A(r,n.1o());15 17.2F(r)}});18 bh=1t 1J("^("+ba+")(?!2V)[a-z%]+$","i"),$e=14(t){18 n=t.1E.5r;15 n&&n.eL||(n=e),n.ag(t)},ah=1t 1J(1w.2Q("|"),"i");!14(){14 t(){19(c){l.1u.ai="2B:5P;23:-eM;2t:eN;3V-1Y:82;3W:0;2C:0",c.1u.ai="2B:3n;1M:5E;55-eO:2C-55;3u:6D;3V:5Q;2C:82;3W:82;2t:60%;1Y:1%",bf.24(l).24(c);18 t=e.ag(c);i="1%"!==t.1Y,u=12===n(t.5R),c.1u.aj="60%",s=36===n(t.aj),o=36===n(t.2t),c.1u.2B="5P",a=36===c.ak||"5P",bf.5k(l),c=1b}}14 n(e){15 2O.eP(3v(e))}18 i,o,a,s,u,l=r.1U("4Y"),c=r.1U("4Y");c.1u&&(c.1u.83="4i-55",c.5F(!0).1u.83="",h.al="4i-55"===c.1u.83,w.1q(h,{am:14(){15 t(),o},an:14(){15 t(),s},ao:14(){15 t(),i},ap:14(){15 t(),u},aq:14(){15 t(),a}}))}();14 56(e,t,n){18 r,i,o,a,s=e.1u;15(n=n||$e(e))&&(""!==(a=n.eQ(t)||n[t])||w.2a(e.1E,e)||(a=w.1u(e,t)),!h.an()&&bh.1k(a)&&ah.1k(t)&&(r=s.2t,i=s.84,o=s.85,s.84=s.85=s.2t=a,a=n.2t,s.2t=r,s.84=i,s.85=o)),1d 0!==a?a+"":a}14 86(e,t){15{1o:14(){19(!e())15(17.1o=t).1A(17,1p);2g 17.1o}}}18 bi=/^(39|3b(?!-c[ea]).+)/,87=/^--/,ar={2B:"5P",eR:"3i",1M:"5E"},88={eS:"0",as:"au"},89=["eT","eU","7z"],8a=r.1U("4Y").1u;14 av(e){19(e 1i 8a)15 e;18 t=e[0].4U()+e.1s(1),n=89.1a;1h(n--)19((e=89[n]+t)1i 8a)15 e}14 8b(e){18 t=w.6E[e];15 t||(t=w.6E[e]=av(e)||e),t}14 8c(e,t,n){18 r=3F.29(t);15 r?2O.6F(0,r[2]-(n||0))+(r[3]||"2V"):t}14 6G(e,t,n,r,i,o){18 a="2t"===t?1:0,s=0,u=0;19(n===(r?"2C":"4i"))15 0;1c(;a<4;a+=2)"3V"===n&&(u+=w.1x(e,n+1w[a],!0,i)),r?("4i"===n&&(u-=w.1x(e,"3W"+1w[a],!0,i)),"3V"!==n&&(u-=w.1x(e,"2C"+1w[a]+"5S",!0,i))):(u+=w.1x(e,"3W"+1w[a],!0,i),"3W"!==n?u+=w.1x(e,"2C"+1w[a]+"5S",!0,i):s+=w.1x(e,"2C"+1w[a]+"5S",!0,i));15!r&&o>=0&&(u+=2O.6F(0,2O.aw(e["2X"+t[0].4U()+t.1s(1)]-o-u-s-.5))),u}14 et(e,t,n){18 r=$e(e),i=56(e,t,r),o="2C-55"===w.1x(e,"ax",!1,r),a=o;19(bh.1k(i)){19(!n)15 i;i="5Q"}15 a=a&&(h.am()||i===e.1u[t]),("5Q"===i||!3v(i)&&"6H"===w.1x(e,"1M",!1,r))&&(i=e["2X"+t[0].4U()+t.1s(1)],a=!0),(i=3v(i)||0)+6G(e,t,n||(o?"2C":"4i"),a,r,i)+"2V"}w.1q({2K:{3w:{1o:14(e,t){19(t){18 n=56(e,"3w");15""===n?"1":n}}}},5D:{eV:!0,eW:!0,eX:!0,eY:!0,eZ:!0,as:!0,f0:!0,3w:!0,f1:!0,f2:!0,f3:!0,f4:!0,f5:!0},6E:{},1u:14(e,t,n,r){19(e&&3!==e.1e&&8!==e.1e&&e.1u){18 i,o,a,s=G(t),u=87.1k(t),l=e.1u;19(u||(t=8b(s)),a=w.2K[t]||w.2K[s],1d 0===n)15 a&&"1o"1i a&&1d 0!==(i=a.1o(e,!1,r))?i:l[t];"1v"==(o=1f n)&&(i=3F.29(n))&&i[1]&&(n=2s(e,t,i),o="3C"),1b!=n&&n===n&&("3C"===o&&(n+=i&&i[3]||(w.5D[s]?"":"2V")),h.al||""!==n||0!==t.1T("f6")||(l[t]="f7"),a&&"1C"1i a&&1d 0===(n=a.1C(e,n,r))||(u?l.f8(t,n):l[t]=n))}},1x:14(e,t,n,r){18 i,o,a,s=G(t);15 87.1k(t)||(t=8b(s)),(a=w.2K[t]||w.2K[s])&&"1o"1i a&&(i=a.1o(e,!0,n)),1d 0===i&&(i=56(e,t,r)),"f9"===i&&t 1i 88&&(i=88[t]),""===n||n?(o=3v(i),!0===n||fa(o)?o||0:i):i}}),w.1m(["5w","2t"],14(e,t){w.2K[t]={1o:14(e,n,r){19(n)15!bi.1k(w.1x(e,"1M"))||e.8d().1a&&e.5T().2t?et(e,t,r):2h(e,ar,14(){15 et(e,t,r)})},1C:14(e,n,r){18 i,o=$e(e),a="2C-55"===w.1x(e,"ax",!1,o),s=r&&6G(e,t,r,a,o);15 a&&h.aq()===o.2B&&(s-=2O.aw(e["2X"+t[0].4U()+t.1s(1)]-3v(o[t])-6G(e,t,"2C",!1,o)-.5)),s&&(i=3F.29(n))&&"2V"!==(i[3]||"2V")&&(e.1u[t]=n,n=w.1x(e,t)),8c(e,n,s)}}}),w.2K.5R=86(h.ap,14(e,t){19(t)15(3v(56(e,"5R"))||e.5T().23-2h(e,{5R:0},14(){15 e.5T().23}))+"2V"}),w.1m({3V:"",3W:"",2C:"5S"},14(e,t){w.2K[e+t]={8e:14(n){1c(18 r=0,i={},o="1v"==1f n?n.2Z(" "):[n];r<4;r++)i[e+1w[r]+t]=o[r]||o[r-2]||o[0];15 i}},"3V"!==e&&(w.2K[e+t].1C=8c)}),w.fn.1q({1x:14(e,t){15 z(17,14(e,t,n){18 r,i,o={},a=0;19(25.2e(t)){1c(r=$e(e),i=t.1a;a<i;a++)o[t[a]]=w.1x(e,t[a],!1,r);15 o}15 1d 0!==n?w.1u(e,t,n):w.1x(e,t)},e,t,1p.1a>1)}});14 2k(e,t,n,r,i){15 1t 2k.2E.4v(e,t,n,r,i)}w.ay=2k,2k.2E={3D:2k,4v:14(e,t,n,r,i,o){17.1I=e,17.1S=n,17.3x=i||w.3x.2A,17.3X=t,17.2W=17.2J=17.7F(),17.4y=r,17.7G=o||(w.5D[n]?"":"2V")},7F:14(){18 e=2k.3g[17.1S];15 e&&e.1o?e.1o(17):2k.3g.2A.1o(17)},8f:14(e){18 t,n=2k.3g[17.1S];15 17.3X.2v?17.az=t=w.3x[17.3x](e,17.3X.2v*e,0,1,17.3X.2v):17.az=t=e,17.2J=(17.4y-17.2W)*t+17.2W,17.3X.5U&&17.3X.5U.1j(17.1I,17.2J,17),n&&n.1C?n.1C(17):2k.3g.2A.1C(17),17}},2k.2E.4v.2E=2k.2E,2k.3g={2A:{1o:14(e){18 t;15 1!==e.1I.1e||1b!=e.1I[e.1S]&&1b==e.1I.1u[e.1S]?e.1I[e.1S]:(t=w.1x(e.1I,e.1S,""))&&"5Q"!==t?t:0},1C:14(e){w.fx.5U[e.1S]?w.fx.5U[e.1S](e):1!==e.1I.1e||1b==e.1I.1u[w.6E[e.1S]]&&!w.2K[e.1S]?e.1I[e.1S]=e.2J:w.1u(e.1I,e.1S,e.2J+e.7G)}}},2k.3g.aA=2k.3g.aB={1C:14(e){e.1I.1e&&e.1I.1n&&(e.1I[e.1S]=e.2J)}},w.3x={fb:14(e){15 e},aC:14(e){15.5-2O.fc(e*2O.fd)/2},2A:"aC"},w.fx=2k.2E.4v,w.fx.5U={};18 bj,5V,aD=/^(?:4W|3a|3P)$/,aE=/5C$/;14 at(){5V&&(!1===r.3i&&e.aF?e.aF(at):e.3O(at,w.fx.aG),w.fx.aH())}14 8g(){15 e.3O(14(){bj=1d 0}),bj=48.2J()}14 5W(e,t){18 n,r=0,i={5w:e};1c(t=t?1:0;r<4;r+=2-t)i["3V"+(n=1w[r])]=i["3W"+n]=e;15 t&&(i.3w=i.2t=e),i}14 5o(e,t,n){1c(18 r,i=(2L.57[t]||[]).5j(2L.57["*"]),o=0,a=i.1a;o<a;o++)19(r=i[o].1j(n,t,e))15 r}14 ct(e,t,n){18 r,i,o,a,s,u,l,c,f="2t"1i t||"5w"1i t,p=17,d={},h=e.1u,g=e.1e&&ae(e),y=J.1o(e,"8h");n.1G||(1b==(a=w.5B(e,"fx")).5X&&(a.5X=0,s=a.2x.4Q,a.2x.4Q=14(){a.5X||s()}),a.5X++,p.38(14(){p.38(14(){a.5X--,w.1G(e,"fx").1a||a.2x.4Q()})}));1c(r 1i t)19(i=t[r],aD.1k(i)){19(2g t[r],o=o||"4W"===i,i===(g?"3P":"3a")){19("3a"!==i||!y||1d 0===y[r])ff;g=!0}d[r]=y&&y[r]||w.1u(e,r)}19((u=!w.46(t))||!w.46(d)){f&&1===e.1e&&(n.3u=[h.3u,h.aI,h.aJ],1b==(l=y&&y.1M)&&(l=J.1o(e,"1M")),"39"===(c=w.1x(e,"1M"))&&(l?c=l:(fe([e],!0),l=e.1u.1M||l,c=w.1x(e,"1M"),fe([e]))),("6H"===c||"6H-5E"===c&&1b!=l)&&"39"===w.1x(e,"fg")&&(u||(p.2U(14(){h.1M=l}),1b==l&&(c=h.1M,l="39"===c?"":c)),h.1M="6H-5E")),n.3u&&(h.3u="3i",p.38(14(){h.3u=n.3u[0],h.aI=n.3u[1],h.aJ=n.3u[2]})),u=!1;1c(r 1i d)u||(y?"3i"1i y&&(g=y.3i):y=J.2z(e,"8h",{1M:l}),o&&(y.3i=!g),g&&fe([e],!0),p.2U(14(){g||fe([e]),J.21(e,"8h");1c(r 1i d)w.1u(e,r,d[r])})),u=5o(g?y[r]:0,r,p),r 1i y||(y[r]=u.2W,g&&(u.4y=u.2W,u.2W=0))}}14 ft(e,t){18 n,r,i,o,a;1c(n 1i e)19(r=G(n),i=t[r],o=e[n],25.2e(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,2g e[n]),(a=w.2K[r])&&"8e"1i a){o=a.8e(o),2g e[r];1c(n 1i o)n 1i e||(e[n]=o[n],t[n]=i)}1y t[r]=i}14 2L(e,t,n){18 r,i,o=0,a=2L.5Y.1a,s=w.2u().38(14(){2g u.1I}),u=14(){19(i)15!1;1c(18 t=bj||8g(),n=2O.6F(0,l.aK+l.2v-t),r=1-(n/l.2v||0),o=0,a=l.58.1a;o<a;o++)l.58[o].8f(r);15 s.5z(e,[l,r,n]),r<1&&a?n:(a||s.5z(e,[l,1,0]),s.4l(e,[l]),!1)},l=s.2y({1I:e,aL:w.1q({},t),2l:w.1q(!0,{8i:{},3x:w.3x.2A},n),fh:t,fi:n,aK:bj||8g(),2v:n.2v,58:[],aM:14(t,n){18 r=w.ay(e,l.2l,t,n,l.2l.8i[t]||l.2l.3x);15 l.58.1l(r),r},22:14(t){18 n=0,r=t?l.58.1a:0;19(i)15 17;1c(i=!0;n<r;n++)l.58[n].8f(1);15 t?(s.5z(e,[l,1,0]),s.4l(e,[l,t])):s.7w(e,[l,t]),17}}),c=l.aL;1c(ft(c,l.2l.8i);o<a;o++)19(r=2L.5Y[o].1j(l,e,c,l.2l))15 g(r.22)&&(w.5B(l.1I,l.2l.1G).22=r.22.aN(r)),r;15 w.2d(c,5o,l),g(l.2l.2W)&&l.2l.2W.1j(e,l),l.6r(l.2l.6r).2U(l.2l.2U,l.2l.4S).4k(l.2l.4k).38(l.2l.38),w.fx.aO(w.1q(u,{1I:e,8j:l,1G:l.2l.1G})),l}w.fj=w.1q(2L,{57:{"*":[14(e,t){18 n=17.aM(e,t);15 2s(n.1I,e,3F.29(t),n),n}]},fk:14(e,t){g(e)?(t=e,e=["*"]):e=e.2b(M);1c(18 n,r=0,i=e.1a;r<i;r++)n=e[r],2L.57[n]=2L.57[n]||[],2L.57[n].37(t)},5Y:[ct],fl:14(e,t){t?2L.5Y.37(e):2L.5Y.1l(e)}}),w.aP=14(e,t,n){18 r=e&&"1P"==1f e?w.1q({},e):{4S:n||!n&&t||g(e)&&e,2v:e,3x:n&&t||t&&!g(t)&&t};15 w.fx.3Q?r.2v=0:"3C"!=1f r.2v&&(r.2v 1i w.fx.5Z?r.2v=w.fx.5Z[r.2v]:r.2v=w.fx.5Z.2A),1b!=r.1G&&!0!==r.1G||(r.1G="fx"),r.8k=r.4S,r.4S=14(){g(r.8k)&&r.8k.1j(17),r.1G&&w.4o(17,r.1G)},r},w.fn.1q({fm:14(e,t,n,r){15 17.2i(ae).1x("3w",0).3a().4y().6I({3w:t},e,n,r)},6I:14(e,t,n,r){18 i=w.46(e),o=w.aP(t,n,r),a=14(){18 t=2L(17,w.1q({},e),o);(i||J.1o(17,"4s"))&&t.22(!0)};15 a.4s=a,i||!1===o.1G?17.1m(a):17.1G(o.1G,a)},22:14(e,t,n){18 r=14(e){18 t=e.22;2g e.22,t(n)};15"1v"!=1f e&&(n=t,t=e,e=1d 0),t&&!1!==e&&17.1G(e||"fx",[]),17.1m(14(){18 t=!0,i=1b!=e&&e+"5C",o=w.59,a=J.1o(17);19(i)a[i]&&a[i].22&&r(a[i]);1y 1c(i 1i a)a[i]&&a[i].22&&aE.1k(i)&&r(a[i]);1c(i=o.1a;i--;)o[i].1I!==17||1b!=e&&o[i].1G!==e||(o[i].8j.22(n),t=!1,o.2N(i,1));!t&&n||w.4o(17,e)})},4s:14(e){15!1!==e&&(e=e||"fx"),17.1m(14(){18 t,n=J.1o(17),r=n[e+"1G"],i=n[e+"5C"],o=w.59,a=r?r.1a:0;1c(n.4s=!0,w.1G(17,e,[]),i&&i.22&&i.22.1j(17,!0),t=o.1a;t--;)o[t].1I===17&&o[t].1G===e&&(o[t].8j.22(!0),o.2N(t,1));1c(t=0;t<a;t++)r[t]&&r[t].4s&&r[t].4s.1j(17);2g n.4s})}}),w.1m(["4W","3a","3P"],14(e,t){18 n=w.fn[t];w.fn[t]=14(e,r,i){15 1b==e||"45"==1f e?n.1A(17,1p):17.6I(5W(t,!0),e,r,i)}}),w.1m({fo:5W("3a"),fp:5W("3P"),fq:5W("4W"),fr:{3w:"3a"},fs:{3w:"3P"},fu:{3w:"4W"}},14(e,t){w.fn[e]=14(e,n,r){15 17.6I(t,e,n,r)}}),w.59=[],w.fx.aH=14(){18 e,t=0,n=w.59;1c(bj=48.2J();t<n.1a;t++)(e=n[t])()||n[t]!==e||n.2N(t--,1);n.1a||w.fx.22(),bj=1d 0},w.fx.aO=14(e){w.59.1l(e),w.fx.2W()},w.fx.aG=13,w.fx.2W=14(){5V||(5V=!0,at())},w.fx.22=14(){5V=1b},w.fx.5Z={fv:fw,fy:6J,2A:au},w.fn.fz=14(t,n){15 t=w.fx?w.fx.5Z[t]||t:t,n=n||"fx",17.1G(n,14(n,r){18 i=e.3O(n,t);r.22=14(){e.aQ(i)}})},14(){18 e=r.1U("1R"),t=r.1U("2o").24(r.1U("3m"));e.1g="5v",h.aR=""!==e.1D,h.aS=t.30,(e=r.1U("1R")).1D="t",e.1g="4O",h.aT="t"===e.1D}();18 bk,5a=w.2I.5q;w.fn.1q({2S:14(e,t){15 z(17,w.2S,e,t,1p.1a>1)},61:14(e){15 17.1m(14(){w.61(17,e)})}}),w.1q({2S:14(e,t,n){18 r,i,o=e.1e;19(3!==o&&8!==o&&2!==o)15"2D"==1f e.1X?w.1S(e,t,n):(1===o&&w.6p(e)||(i=w.aU[t.1r()]||(w.2I.2b.7e.1k(t)?bk:1d 0)),1d 0!==n?1b===n?1d w.61(e,t):i&&"1C"1i i&&1d 0!==(r=i.1C(e,n,t))?r:(e.2q(t,n+""),n):i&&"1o"1i i&&1b!==(r=i.1o(e,t))?r:1b==(r=w.1L.2S(e,t))?1d 0:r)},aU:{1g:{1C:14(e,t){19(!h.aT&&"4O"===t&&N(e,"1R")){18 n=e.1D;15 e.2q("1g",t),n&&(e.1D=n),t}}}},61:14(e,t){18 n,r=0,i=t&&t.2b(M);19(i&&1===e.1e)1h(n=i[r++])e.7g(n)}}),bk={1C:14(e,t,n){15!1===t?w.61(e,n):e.2q(n,n),n}},w.1m(w.2I.2b.7e.9E.2b(/\\w+/g),14(e,t){18 n=5a[t]||w.1L.2S;5a[t]=14(e,t,r){18 i,o,a=t.1r();15 r||(o=5a[a],5a[a]=i,i=1b!=n(e,t,r)?a:1b,5a[a]=o),i}});18 bl=/^(?:1R|2o|4G|32)$/i,aV=/^(?:a|a4)$/i;w.fn.1q({1S:14(e,t){15 z(17,w.1S,e,t,1p.1a>1)},aW:14(e){15 17.1m(14(){2g 17[w.6K[e]||e]})}}),w.1q({1S:14(e,t,n){18 r,i,o=e.1e;19(3!==o&&8!==o&&2!==o)15 1===o&&w.6p(e)||(t=w.6K[t]||t,i=w.3g[t]),1d 0!==n?i&&"1C"1i i&&1d 0!==(r=i.1C(e,n,t))?r:e[t]=n:i&&"1o"1i i&&1b!==(r=i.1o(e,t))?r:e[t]},3g:{7j:{1o:14(e){18 t=w.1L.2S(e,"fA");15 t?fB(t,10):bl.1k(e.1H)||aV.1k(e.1H)&&e.2j?0:-1}}},6K:{"1c":"fC","4c":"5s"}}),h.aS||(w.3g.30={1o:14(e){18 t=e.1n;15 t&&t.1n&&t.1n.4N,1b},1C:14(e){18 t=e.1n;t&&(t.4N,t.1n&&t.1n.4N)}}),w.1m(["7j","fD","fE","fF","fG","fH","fI","fJ","fK","fL"],14(){w.6K[17.1r()]=17});14 3Y(e){15(e.2b(M)||[]).2Q(" ")}14 3Z(e){15 e.1X&&e.1X("4c")||""}14 6L(e){15 25.2e(e)?e:"1v"==1f e?e.2b(M)||[]:[]}w.fn.1q({6M:14(e){18 t,n,r,i,o,a,s,u=0;19(g(e))15 17.1m(14(t){w(17).6M(e.1j(17,t,3Z(17)))});19((t=6L(e)).1a)1h(n=17[u++])19(i=3Z(n),r=1===n.1e&&" "+3Y(i)+" "){a=0;1h(o=t[a++])r.1T(" "+o+" ")<0&&(r+=o+" ");i!==(s=3Y(r))&&n.2q("4c",s)}15 17},6N:14(e){18 t,n,r,i,o,a,s,u=0;19(g(e))15 17.1m(14(t){w(17).6N(e.1j(17,t,3Z(17)))});19(!1p.1a)15 17.2S("4c","");19((t=6L(e)).1a)1h(n=17[u++])19(i=3Z(n),r=1===n.1e&&" "+3Y(i)+" "){a=0;1h(o=t[a++])1h(r.1T(" "+o+" ")>-1)r=r.1B(" "+o+" "," ");i!==(s=3Y(r))&&n.2q("4c",s)}15 17},aX:14(e,t){18 n=1f e,r="1v"===n||25.2e(e);15"45"==1f t&&r?t?17.6M(e):17.6N(e):g(e)?17.1m(14(n){w(17).aX(e.1j(17,n,3Z(17),t),t)}):17.1m(14(){18 t,i,o,a;19(r){i=0,o=w(17),a=6L(e);1h(t=a[i++])o.aY(t)?o.6N(t):o.6M(t)}1y 1d 0!==e&&"45"!==n||((t=3Z(17))&&J.1C(17,"aZ",t),17.2q&&17.2q("4c",t||!1===e?"":J.1o(17,"aZ")||""))})},aY:14(e){18 t,n,r=0;t=" "+e+" ";1h(n=17[r++])19(1===n.1e&&(" "+3Y(3Z(n))+" ").1T(t)>-1)15!0;15!1}});18 bm=/\\r/g;w.fn.1q({62:14(e){18 t,n,r,i=17[0];{19(1p.1a)15 r=g(e),17.1m(14(n){18 i;1===17.1e&&(1b==(i=r?e.1j(17,n,w(17).62()):e)?i="":"3C"==1f i?i+="":25.2e(i)&&(i=w.2d(i,14(e){15 1b==e?"":e+""})),(t=w.40[17.1g]||w.40[17.1H.1r()])&&"1C"1i t&&1d 0!==t.1C(17,i,"1D")||(17.1D=i))});19(i)15(t=w.40[i.1g]||w.40[i.1H.1r()])&&"1o"1i t&&1d 0!==(n=t.1o(i,"1D"))?n:"1v"==1f(n=i.1D)?n.1B(bm,""):1b==n?"":n}}}),w.1q({40:{3m:{1o:14(e){18 t=w.1L.2S(e,"1D");15 1b!=t?t:3Y(w.1K(e))}},2o:{1o:14(e){18 t,n,r,i=e.3X,o=e.4N,a="2o-a3"===e.1g,s=a?1b:[],u=a?o+1:i.1a;1c(r=o<0?u:a?o:0;r<u;r++)19(((n=i[r]).30||r===o)&&!n.1N&&(!n.1n.1N||!N(n.1n,"9K"))){19(t=w(n).62(),a)15 t;s.1l(t)}15 s},1C:14(e,t){18 n,r,i=e.3X,o=w.4A(t),a=i.1a;1h(a--)((r=i[a]).30=w.47(w.40.3m.1o(r),o)>-1)&&(n=!0);15 n||(e.4N=-1),o}}}}),w.1m(["4O","5v"],14(){w.40[17]={1C:14(e,t){19(25.2e(t))15 e.2n=w.47(w(e).62(),t)>-1}},h.aR||(w.40[17].1o=14(e){15 1b===e.1X("1D")?"3T":e.1D})}),h.5K="fM"1i e;18 bn=/^(?:fN|fO)$/,8l=14(e){e.5J()};w.1q(w.1z,{2c:14(t,n,i,o){18 a,s,u,l,c,p,d,h,v=[i||r],m=f.1j(t,"1g")?t.1g:t,x=f.1j(t,"3s")?t.3s.2Z("."):[];19(s=h=u=i=i||r,3!==i.1e&&8!==i.1e&&!bn.1k(m+w.1z.6w)&&(m.1T(".")>-1&&(m=(x=m.2Z(".")).2R(),x.44()),c=m.1T(":")<0&&"3T"+m,t=t[w.1Q]?t:1t w.3t(m,"1P"==1f t&&t),t.fP=o?2:3,t.3s=x.2Q("."),t.7Q=t.3s?1t 1J("(^|\\\\.)"+x.2Q("\\\\.(?:.*\\\\.|)")+"(\\\\.|$)"):1b,t.3S=1d 0,t.2T||(t.2T=i),n=1b==n?[t]:w.4A(n,[t]),d=w.1z.3e[m]||{},o||!d.2c||!1!==d.2c.1A(i,n))){19(!o&&!d.9V&&!y(i)){1c(l=d.4Z||m,bn.1k(l+m)||(s=s.1n);s;s=s.1n)v.1l(s),u=s;u===(i.1E||r)&&v.1l(u.5r||u.fQ||e)}a=0;1h((s=v[a++])&&!t.52())h=s,t.1g=a>1?l:d.6x||m,(p=(J.1o(s,"3c")||{})[t.1g]&&J.1o(s,"3d"))&&p.1A(s,n),(p=c&&s[c])&&p.1A&&Y(s)&&(t.3S=p.1A(s,n),!1===t.3S&&t.5I());15 t.1g=m,o||t.6A()||d.2A&&!1!==d.2A.1A(v.4C(),n)||!Y(i)||c&&g(i[m])&&!y(i)&&((u=i[c])&&(i[c]=1b),w.1z.6w=m,t.52()&&h.3H(m,8l),i[m](),t.52()&&h.4R(m,8l),w.1z.6w=1d 0,u&&(i[c]=u)),t.3S}},b0:14(e,t,n){18 r=w.1q(1t w.3t,n,{1g:e,5M:!0});w.1z.2c(r,1b,t)}}),w.fn.1q({2c:14(e,t){15 17.1m(14(){w.1z.2c(e,t,17)})},fR:14(e,t){18 n=17[0];19(n)15 w.1z.2c(e,t,n,!0)}}),h.5K||w.1m({4M:"5K",5L:"7S"},14(e,t){18 n=14(e){w.1z.b0(t,e.2T,w.1z.7N(e))};w.1z.3e[t]={7K:14(){18 r=17.1E||17,i=J.2z(r,t);i||r.3H(e,n,!0),J.2z(r,t,(i||0)+1)},7L:14(){18 r=17.1E||17,i=J.2z(r,t)-1;i?J.2z(r,t,i):(r.4R(e,n,!0),J.21(r,t))}}});18 bo=e.6n,8m=48.2J(),6O=/\\?/;w.b1=14(t){18 n;19(!t||"1v"!=1f t)15 1b;2f{n=(1t e.fS).fT(t,"1K/3M")}26(e){n=1d 0}15 n&&!n.2P("b2").1a||w.1V("fU fV: "+t),n};18 bp=/\\[\\]$/,8n=/\\r?\\n/g,b3=/^(?:7m|32|9m|9n|7l)$/i,b4=/^(?:1R|2o|4G|fW)/i;14 6P(e,t,n,r){18 i;19(25.2e(t))w.1m(t,14(t,i){n||bp.1k(e)?r(e,i):6P(e+"["+("1P"==1f i&&1b!=i?t:"")+"]",i,n,r)});1y 19(n||"1P"!==x(t))r(e,t);1y 1c(i 1i t)6P(e+"["+i+"]",t[i],n,r)}w.6C=14(e,t){18 n,r=[],i=14(e,t){18 n=g(t)?t():t;r[r.1a]=b5(e)+"="+b5(1b==n?"":n)};19(25.2e(e)||e.4w&&!w.4z(e))w.1m(e,14(){i(17.2G,17.1D)});1y 1c(n 1i e)6P(n,e[n],t,i);15 r.2Q("&")},w.fn.1q({fX:14(){15 w.6C(17.b6())},b6:14(){15 17.2d(14(){18 e=w.1S(17,"fY");15 e?w.4A(e):17}).2i(14(){18 e=17.1g;15 17.2G&&!w(17).7n(":1N")&&b4.1k(17.1H)&&!b3.1k(e)&&(17.2n||!bc.1k(e))}).2d(14(e,t){18 n=w(17).62();15 1b==n?1b:25.2e(n)?w.2d(n,14(e){15{2G:t.2G,1D:e.1B(8n,"\\r\\n")}}):{2G:t.2G,1D:n.1B(8n,"\\r\\n")}}).1o()}});18 bq=/%20/g,b7=/#.*$/,b8=/([?&])31=[^&]*/,b9=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,be=/^(?:fZ|bu|bu-g0|.+-g1|7l|g2|g3):$/,bv=/^(?:63|bw)$/,bx=/^\\/\\//,8o={},6Q={},$t="*/".5j("*"),6R=r.1U("a");6R.2j=bo.2j;14 8p(e){15 14(t,n){"1v"!=1f t&&(n=t,t="*");18 r,i=0,o=t.1r().2b(M)||[];19(g(n))1h(r=o[i++])"+"===r[0]?(r=r.1s(1)||"*",(e[r]=e[r]||[]).37(n)):(e[r]=e[r]||[]).1l(n)}}14 8q(e,t,n,r){18 i={},o=e===6Q;14 a(s){18 u;15 i[s]=!0,w.1m(e[s]||[],14(e,s){18 l=s(t,n,r);15"1v"!=1f l||o||i[l]?o?!(u=l):1d 0:(t.2Y.37(l),a(l),!1)}),u}15 a(t.2Y[0])||!i["*"]&&a("*")}14 6S(e,t){18 n,r,i=w.5b.by||{};1c(n 1i t)1d 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);15 r&&w.1q(!0,e,r),e}14 bz(e,t,n){18 r,i,o,a,s=e.4h,u=e.2Y;1h("*"===u[0])u.2R(),1d 0===r&&(r=e.6T||t.6U("bA-7x"));19(r)1c(i 1i s)19(s[i]&&s[i].1k(r)){u.37(i);2m}19(u[0]1i n)o=u[0];1y{1c(i 1i n){19(!u[0]||e.5c[i+" "+u[0]]){o=i;2m}a||(a=i)}o=o||a}19(o)15 o!==u[0]&&u.37(o),n[o]}14 bB(e,t,n,r){18 i,o,a,s,u,l={},c=e.2Y.1s();19(c[1])1c(a 1i e.5c)l[a.1r()]=e.5c[a];o=c.2R();1h(o)19(e.8r[o]&&(n[e.8r[o]]=t),!u&&r&&e.bC&&(t=e.bC(t,e.64)),u=o,o=c.2R())19("*"===o)o=u;1y 19("*"!==u&&u!==o){19(!(a=l[u+" "+o]||l["* "+o]))1c(i 1i l)19((s=i.2Z(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.37(s[1]));2m}19(!0!==a)19(a&&e["bD"])t=a(t);1y 2f{t=a(t)}26(e){15{5x:"b2",1V:a?e:"bE g4 g5 "+u+" g6 "+o}}}15{5x:"8s",1F:t}}w.1q({8t:0,6V:{},65:{},5b:{28:bo.2j,1g:"63",g7:be.1k(bo.6W),5G:!0,6X:!0,5m:!0,5d:"41/x-8u-3j-8v; bF=g8-8",66:{"*":$t,1K:"1K/g9",3U:"1K/3U",3M:"41/3M, 1K/3M",3y:"41/3y, 1K/8w"},4h:{3M:/\\ga\\b/,3U:/\\gb/,3y:/\\gc\\b/},8r:{3M:"gd",1K:"6Y",3y:"gf"},5c:{"* 1K":6d,"1K 3U":!0,"1K 3y":7C.7D,"1K 3M":w.b1},by:{28:!0,8x:!0}},6Z:14(e,t){15 t?6S(6S(e,w.5b),t):6S(w.5b,e)},70:8p(8o),8y:8p(6Q),67:14(t,n){"1P"==1f t&&(n=t,t=1d 0),n=n||{};18 i,o,a,s,u,l,c,f,p,d,h=w.6Z({},n),g=h.8x||h,y=h.8x&&(g.1e||g.4w)?w(g):w.1z,v=w.2u(),m=w.3p("4j 3q"),x=h.8z||{},b={},T={},C="gg",E={4T:0,6U:14(e){18 t;19(c){19(!s){s={};1h(t=b9.29(a))s[t[1].1r()]=t[2]}t=s[e.1r()]}15 1b==t?1b:t},bG:14(){15 c?a:1b},4t:14(e,t){15 1b==c&&(e=T[e.1r()]=T[e.1r()]||e,b[e]=t),17},8A:14(e){15 1b==c&&(h.6T=e),17},8z:14(e){18 t;19(e)19(c)E.38(e[E.5e]);1y 1c(t 1i e)x[t]=[x[t],e[t]];15 17},3h:14(e){18 t=e||C;15 i&&i.3h(t),k(0,t),17}};19(v.2y(E),h.28=((t||h.28||bo.2j)+"").1B(bx,bo.6W+"//"),h.1g=n.bH||n.1g||h.bH||h.1g,h.2Y=(h.64||"*").1r().2b(M)||[""],1b==h.42){l=r.1U("a");2f{l.2j=h.28,l.2j=l.2j,h.42=6R.6W+"//"+6R.bI!=l.6W+"//"+l.bI}26(e){h.42=!0}}19(h.1F&&h.6X&&"1v"!=1f h.1F&&(h.1F=w.6C(h.1F,h.gh)),8q(8o,h,n,E),c)15 E;(f=w.1z&&h.5G)&&0==w.8t++&&w.1z.2c("bJ"),h.1g=h.1g.4U(),h.71=!bv.1k(h.1g),o=h.28.1B(b7,""),h.71?h.1F&&h.6X&&0===(h.5d||"").1T("41/x-8u-3j-8v")&&(h.1F=h.1F.1B(bq,"+")):(d=h.28.1s(o.1a),h.1F&&(h.6X||"1v"==1f h.1F)&&(o+=(6O.1k(o)?"&":"?")+h.1F,2g h.1F),!1===h.4m&&(o=o.1B(b8,"$1"),d=(6O.1k(o)?"&":"?")+"31="+8m+++d),h.28=o+d),h.bK&&(w.6V[o]&&E.4t("bL-bM-gj",w.6V[o]),w.65[o]&&E.4t("bL-gk-gl",w.65[o])),(h.1F&&h.71&&!1!==h.5d||n.5d)&&E.4t("bA-7x",h.5d),E.4t("gn",h.2Y[0]&&h.66[h.2Y[0]]?h.66[h.2Y[0]]+("*"!==h.2Y[0]?", "+$t+"; q=0.go":""):h.66["*"]);1c(p 1i h.bN)E.4t(p,h.bN[p]);19(h.bO&&(!1===h.bO.1j(g,E,h)||c))15 E.3h();19(C="3h",m.27(h.4S),E.2U(h.8s),E.4k(h.1V),i=8q(6Q,h,n,E)){19(E.4T=1,f&&y.2c("bP",[E,h]),c)15 E;h.5m&&h.8B>0&&(u=e.3O(14(){E.3h("8B")},h.8B));2f{c=!1,i.72(b,k)}26(e){19(c)3A e;k(-1,e)}}1y k(-1,"bE gp");14 k(t,n,r,s){18 l,p,d,b,T,C=n;c||(c=!0,u&&e.aQ(u),i=1d 0,a=s||"",E.4T=t>0?4:0,l=t>=6J&&t<gq||bQ===t,r&&(b=bz(h,E,r)),b=bB(h,b,E,l),l?(h.bK&&((T=E.6U("gr-bM"))&&(w.6V[o]=T),(T=E.6U("65"))&&(w.65[o]=T)),bR===t||"bw"===h.1g?C="gs":bQ===t?C="gu":(C=b.5x,p=b.1F,l=!(d=b.1V))):(d=C,!t&&C||(C="1V",t<0&&(t=0))),E.5e=t,E.8C=(n||C)+"",l?v.4l(g,[p,C,E]):v.7w(g,[E,C,d]),E.8z(x),x=1d 0,f&&y.2c(l?"bS":"bT",[E,h,l?p:d]),m.6q(g,[E,C]),f&&(y.2c("bU",[E,h]),--w.8t||w.1z.2c("bV")))}15 E},gv:14(e,t,n){15 w.1o(e,t,n,"3y")},gw:14(e,t){15 w.1o(e,1d 0,t,"1O")}}),w.1m(["1o","gx"],14(e,t){w[t]=14(e,n,r,i){15 g(n)&&(i=i||r,r=n,n=1d 0),w.67(w.1q({28:e,1g:t,64:i,1F:n,8s:r},w.4z(e)&&e))}}),w.7Z=14(e){15 w.67({28:e,1g:"63",64:"1O",4m:!0,5m:!1,5G:!1,"bD":!0})},w.fn.1q({8D:14(e){18 t;15 17[0]&&(g(e)&&(e=e.1j(17[0])),t=w(e,17[0].1E).eq(0).53(!0),17[0].1n&&t.5O(17[0]),t.2d(14(){18 e=17;1h(e.bW)e=e.bW;15 e}).54(17)),17},bX:14(e){15 g(e)?17.1m(14(t){w(17).bX(e.1j(17,t))}):17.1m(14(){18 t=w(17),n=t.4h();n.1a?n.8D(e):t.54(e)})},gy:14(e){18 t=g(e);15 17.1m(14(n){w(17).8D(t?e.1j(17,n):e)})},gz:14(e){15 17.7k(e).5t("4V").1m(14(){w(17).81(17.33)}),17}}),w.2I.2w.3i=14(e){15!w.2I.2w.bY(e)},w.2I.2w.bY=14(e){15!!(e.ak||e.gA||e.8d().1a)},w.5b.8E=14(){2f{15 1t e.bZ}26(e){}};18 br={0:6J,gB:bR},5f=w.5b.8E();h.c0=!!5f&&"gC"1i 5f,h.67=5f=!!5f,w.8y(14(t){18 n,r;19(h.c0||5f&&!t.42)15{72:14(i,o){18 a,s=t.8E();19(s.8S(t.1g,t.28,t.5m,t.gD,t.9l),t.8F)1c(a 1i t.8F)s[a]=t.8F[a];t.6T&&s.8A&&s.8A(t.6T),t.42||i["X-c1-5y"]||(i["X-c1-5y"]="bZ");1c(a 1i i)s.4t(a,i[a]);n=14(e){15 14(){n&&(n=r=s.c2=s.c3=s.8G=s.c4=s.c5=1b,"3h"===e?s.3h():"1V"===e?"3C"!=1f s.5e?o(0,"1V"):o(s.5e,s.8C):o(br[s.5e]||s.5e,s.8C,"1K"!==(s.gE||"1K")||"1v"!=1f s.6Y?{gF:s.gG}:{1K:s.6Y},s.bG()))}},s.c2=n(),r=s.c3=s.c4=n("1V"),1d 0!==s.8G?s.8G=r:s.c5=14(){4===s.4T&&e.3O(14(){n&&r()})},n=n("3h");2f{s.72(t.71&&t.1F||1b)}26(e){19(n)3A e}},3h:14(){n&&n()}}}),w.70(14(e){e.42&&(e.4h.1O=!1)}),w.6Z({66:{1O:"1K/8w, 41/8w, 41/c6, 41/x-c6"},4h:{1O:/\\b(?:9F|9G)1O\\b/},5c:{"1K 1O":14(e){15 w.5l(e),e}}}),w.70("1O",14(e){1d 0===e.4m&&(e.4m=!1),e.42&&(e.1g="63")}),w.8y("1O",14(e){19(e.42){18 t,n;15{72:14(i,o){t=w("<1O>").1S({bF:e.gH,69:e.28}).3T("5A 1V",n=14(e){t.21(),n=1b,e&&o("1V"===e.1g?gI:6J,e.1g)}),r.79.24(t[0])},3h:14(){n&&n()}}}});18 bs=[],73=/(=)\\?(?=&|$)|\\?\\?/;w.6Z({5g:"gJ",4u:14(){18 e=bs.4C()||w.1Q+"31"+8m++;15 17[e]=!0,e}}),w.70("3y 5g",14(t,n,r){18 i,o,a,s=!1!==t.5g&&(73.1k(t.28)?"28":"1v"==1f t.1F&&0===(t.5d||"").1T("41/x-8u-3j-8v")&&73.1k(t.1F)&&"1F");19(s||"5g"===t.2Y[0])15 i=t.4u=g(t.4u)?t.4u():t.4u,s?t[s]=t[s].1B(73,"$1"+i):!1!==t.5g&&(t.28+=(6O.1k(t.28)?"&":"?")+t.5g+"="+i),t.5c["1O 3y"]=14(){15 a||w.1V(i+" gK 5t gL"),a[0]},t.2Y[0]="3y",o=e[i],e[i]=14(){a=1p},r.38(14(){1d 0===o?w(e).aW(i):e[i]=o,t[i]&&(t.4u=n.4u,bs.1l(i)),a&&g(o)&&o(a[0]),a=o=1d 0}),"1O"}),h.74=14(){18 e=r.c7.74("").4V;15 e.3l="<3j></3j><3j></3j>",2===e.33.1a}(),w.7o=14(e,t,n){19("1v"!=1f e)15[];"45"==1f t&&(n=t,t=!1);18 i,o,a;15 t||(h.74?((i=(t=r.c7.74("")).1U("gM")).2j=r.6n.2j,t.79.24(i)):t=r),o=A.29(e),a=!n&&[],o?[t.1U(o[1])]:(o=4d([e],t,a),a&&a.1a&&w(a).21(),w.2M([],o.33))},w.fn.5A=14(e,t,n){18 r,i,o,a=17,s=e.1T(" ");15 s>-1&&(r=3Y(e.1s(s)),e=e.1s(0,s)),g(t)?(n=t,t=1d 0):t&&"1P"==1f t&&(i="gN"),a.1a>0&&w.67({28:e,1g:i||"63",64:"3U",1F:t}).2U(14(e){o=1p,a.3U(r?w("<4Y>").54(w.7o(e)).1L(r):e)}).38(n&&14(e,t){a.1m(14(){n.1A(17,o||[e.6Y,t,e])})}),17},w.1m(["bJ","bV","bU","bT","bS","bP"],14(e,t){w.fn[t]=14(e){15 17.3T(t,e)}}),w.2I.2w.gO=14(e){15 w.4B(w.59,14(t){15 e===t.1I}).1a},w.2X={c8:14(e,t,n){18 r,i,o,a,s,u,l,c=w.1x(e,"2B"),f=w(e),p={};"8H"===c&&(e.1u.2B="3n"),s=f.2X(),o=w.1x(e,"1Y"),u=w.1x(e,"23"),(l=("5P"===c||"c9"===c)&&(o+u).1T("5Q")>-1)?(a=(r=f.2B()).1Y,i=r.23):(a=3v(o)||0,i=3v(u)||0),g(t)&&(t=t.1j(e,n,w.1q({},s))),1b!=t.1Y&&(p.1Y=t.1Y-s.1Y+a),1b!=t.23&&(p.23=t.23-s.23+i),"ca"1i t?t.ca.1j(e,p):f.1x(p)}},w.fn.1q({2X:14(e){19(1p.1a)15 1d 0===e?17:17.1m(14(t){w.2X.c8(17,e,t)});18 t,n,r=17[0];19(r)15 r.8d().1a?(t=r.5T(),n=r.1E.5r,{1Y:t.1Y+n.75,23:t.23+n.8I}):{1Y:0,23:0}},2B:14(){19(17[0]){18 e,t,n,r=17[0],i={1Y:0,23:0};19("c9"===w.1x(r,"2B"))t=r.5T();1y{t=17.2X(),n=r.1E,e=r.76||n.35;1h(e&&(e===n.4V||e===n.35)&&"8H"===w.1x(e,"2B"))e=e.1n;e&&e!==r&&1===e.1e&&((i=w(e).2X()).1Y+=w.1x(e,"gP",!0),i.23+=w.1x(e,"gQ",!0))}15{1Y:t.1Y-i.1Y-w.1x(r,"gR",!0),23:t.23-i.23-w.1x(r,"5R",!0)}}},76:14(){15 17.2d(14(){18 e=17.76;1h(e&&"8H"===w.1x(e,"2B"))e=e.76;15 e||bf})}}),w.1m({aB:"8I",aA:"75"},14(e,t){18 n="75"===t;w.fn[e]=14(r){15 z(17,14(e,r,i){18 o;19(y(e)?o=e:9===e.1e&&(o=e.5r),1d 0===i)15 o?o[t]:e[r];o?o.gS(n?o.8I:i,n?i:o.75):e[r]=i},e,r,1p.1a)}}),w.1m(["1Y","23"],14(e,t){w.2K[t]=86(h.ao,14(e,n){19(n)15 n=56(e,t),bh.1k(n)?w(e).2B()[t]+"2V":n})}),w.1m({gT:"5w",5S:"2t"},14(e,t){w.1m({3W:"cb"+e,4i:t,"":"cc"+e},14(n,r){w.fn[r]=14(i,o){18 a=1p.1a&&(n||"45"!=1f i),s=n||(!0===i||!0===o?"3V":"2C");15 z(17,14(t,n,i){18 o;15 y(t)?0===r.1T("cc")?t["cb"+e]:t.3z.35["cd"+e]:9===t.1e?(o=t.35,2O.6F(t.4V["6D"+e],o["6D"+e],t.4V["2X"+e],o["2X"+e],o["cd"+e])):1d 0===i?w.1x(t,n,s):w.1u(t,n,i,s)},t,a?i:1d 0,a)}})}),w.1m("5L 4M 5K 7S gU 6D 4p gV gW gX gY a1 a2 7V 7W gZ 2o 7m h0 h1 h2 9P".2Z(" "),14(e,t){w.fn[t]=14(e,n){15 1p.1a>0?17.3T(t,1b,e,n):17.2c(t)}}),w.fn.1q({h3:14(e,t){15 17.7V(e).7W(t||e)}}),w.fn.1q({aN:14(e,t,n){15 17.3T(e,1b,t,n)},h4:14(e,t){15 17.3Q(e,1b,t)},h5:14(e,t,n,r){15 17.3T(t,e,n,r)},h6:14(e,t,n){15 1===1p.1a?17.3Q(e,"**"):17.3Q(t,e||"**",n)}}),w.h7=14(e,t){18 n,r,i;19("1v"==1f t&&(n=e[t],t=e,e=n),g(e))15 r=o.1j(1p,2),i=14(){15 e.1A(t||17,r.5j(o.1j(1p)))},i.1W=e.1W=e.1W||w.1W++,i},w.h8=14(e){e?w.6t++:w.3N(!0)},w.2e=25.2e,w.h9=7C.7D,w.1H=N,w.ha=g,w.hb=y,w.hc=G,w.1g=x,w.2J=48.2J,w.hd=14(e){18 t=w.1g(e);15("3C"===t||"1v"===t)&&!hf(e-3v(e))},"14"==1f 8J&&8J.hg&&8J("4w",[],14(){15 w});18 bt=e.43,cf=e.$;15 w.hh=14(t){15 e.$===w&&(e.$=cf),t&&e.43===w&&(e.43=bt),w},t||(e.43=e.$=w),w});',62,1072,'||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||function|return||this|var|if|length|null|for|void|nodeType|typeof|type|while|in|call|test|push|each|parentNode|get|arguments|extend|toLowerCase|slice|new|style|string|oe|css|else|event|apply|replace|set|value|ownerDocument|data|queue|nodeName|elem|RegExp|text|find|display|disabled|script|object|expando|input|prop|indexOf|createElement|error|guid|getAttribute|top|ye||remove|stop|left|appendChild|Array|catch|add|url|exec|contains|match|trigger|map|isArray|try|delete|se|filter|href|tt|opts|break|checked|select|id|setAttribute|querySelectorAll|ue|width|Deferred|duration|pseudos|empty|promise|access|_default|position|border|undefined|prototype|pushStack|name|firstChild|expr|now|cssHooks|pt|merge|splice|Math|getElementsByTagName|join|shift|attr|target|done|px|start|offset|dataTypes|split|selected|_|button|childNodes|nextSibling|documentElement||unshift|always|none|show|table|events|handle|special|originalEvent|propHooks|abort|hidden|form|ve|innerHTML|option|relative|selector|Callbacks|memory|then|namespace|Event|overflow|parseFloat|opacity|easing|json|document|throw|Object|number|constructor|first|ie|getElementsByClassName|addEventListener|compareDocumentPosition|uniqueSort|textContent|uniqueID|xml|ready|setTimeout|hide|off|handler|result|on|html|margin|padding|options|vt|mt|valHooks|application|crossDomain|jQuery|sort|boolean|isEmptyObject|inArray|Date|ID|getElementById|matches|class|xe|we|Ce|Ee|contents|content|once|fail|resolveWith|cache|hasData|dequeue|click|ke|Re|finish|setRequestHeader|jsonpCallback|init|jquery|last|end|isPlainObject|makeArray|grep|pop|x20|nth|needsContext|textarea|ne|dir|getAttributeNode|matchesSelector|previousSibling|focus|selectedIndex|radio|Te|fire|removeEventListener|complete|readyState|toUpperCase|body|toggle|tbody|div|delegateType||origType|isPropagationStopped|clone|append|box|Fe|tweeners|tweens|timers|ht|ajaxSettings|converters|contentType|status|Gt|jsonp|module|Error|concat|removeChild|globalEval|async|odd|lt|te|attrHandle|defaultView|className|not|lang|checkbox|height|state|With|notifyWith|load|_queueHooks|queueHooks|cssNumber|block|cloneNode|global|handlers|preventDefault|stopPropagation|focusin|blur|isSimulated|cleanData|insertBefore|absolute|auto|marginLeft|Width|getBoundingClientRect|step|rt|ut|unqueued|prefilters|speeds||removeAttr|val|GET|dataType|etag|accepts|ajax|window|src|prevObject|isReady|Symbol|String|TAG|CHILD|even|label|next|attributes|enabled|lastChild|has|location|defaultValue|isXMLDoc|fireWith|progress|reject|readyWait|tr|De|triggered|bindType|delegateCount|handleObj|isDefaultPrevented|which|param|scroll|cssProps|max|Ze|inline|animate|200|propFix|xt|addClass|removeClass|kt|jt|Wt|Bt|zt|mimeType|getResponseHeader|lastModified|protocol|processData|responseText|ajaxSetup|ajaxPrefilter|hasContent|send|Qt|createHTMLDocument|pageYOffset|offsetParent|toString|hasOwnProperty|head|multiple|CLASS|ATTR|PSEUDO|bool|qsa|removeAttribute|getElementsByName|setFilters|tabIndex|parent|file|submit|is|parseHTML|prev|children|index|disable|lock|resolve|exceptionHook|rejectWith|Type|console|ms|defineProperty|configurable|JSON|parse|inprogress|cur|unit|colgroup|htmlPrefilter|Se|setup|teardown|removeEvent|fix|currentTarget|isImmediatePropagationStopped|rnamespace|postDispatch|focusout|relatedTarget|charCode|mouseenter|mouseleave|Le|Pe|_evalUrl|Ie|replaceWith|1px|backgroundClip|minWidth|maxWidth|_e|Xe|Ve|Ge|Ye|Je|Ke|getClientRects|expand|run|st|fxshow|specialEasing|anim|old|Tt|Et|Dt|It|Ft|_t|responseFields|success|active|www|urlencoded|javascript|context|ajaxTransport|statusCode|overrideMimeType|timeout|statusText|wrapAll|xhr|xhrFields|onabort|static|pageXOffset|define|use|strict|exports|uFEFF|xA0|random|support|iterator|open|only|of|65536|fromCharCode|x1f|x7f|finally|cacheLength|fieldset|sourceIndex|isDisabled|isXML|attachEvent|getById|msallowcapture|disconnectedMatch|sortDetached|specified|escape|Syntax|detectDuplicates|sortStable|getText|selectors|preFilter|unsupported|activeElement|hasFocus|password|image|reset|unique|instanceof|parents|Until|prevAll|notify|pending|stackTrace|getStackHook|warn|readyException|DOMContentLoaded|uid|true|removeData|hasDataAttrs|source|java|ecma|thead|col|td|optgroup|createDocumentFragment|checkClone|noCloneChecked|key|contextmenu|dispatch|delegateTarget|preDispatch|addProp|enumerable|noBubble|returnValue|defaultPrevented|timeStamp|stopImmediatePropagation|keyCode|mouseover|mouseout|one|area|link|Ae|je|qe|He|Oe|Me|prepend|before||after|getComputedStyle|Be|cssText|right|offsetWidth|clearCloneStyle|boxSizingReliable|pixelBoxStyles|pixelPosition|reliableMarginLeft|scrollboxSize|Ue|fontWeight||400|Qe|ceil|boxSizing|Tween|pos|scrollTop|scrollLeft|swing|it|ot|requestAnimationFrame|interval|tick|overflowX|overflowY|startTime|props|createTween|bind|timer|speed|clearTimeout|checkOn|optSelected|radioValue|attrHooks|yt|removeProp|toggleClass|hasClass|__className__|simulate|parseXML|parsererror|Nt|At|encodeURIComponent|serializeArray|Lt|Ht|Ot|||||Pt||||||||||||||||app|Mt|HEAD|Rt|flatOptions|Xt|Content|Ut|dataFilter|throws|No|charset|getAllResponseHeaders|method|host|ajaxStart|ifModified|If|Modified|headers|beforeSend|ajaxSend|304|204|ajaxSuccess|ajaxError|ajaxComplete|ajaxStop|firstElementChild|wrapInner|visible|XMLHttpRequest|cors|Requested|onload|onerror|ontimeout|onreadystatechange|ecmascript|implementation|setOffset|fixed|using|inner|outer|client||Kt|requires|with|getPrototypeOf|noModule|toArray|noop|trim|Boolean|Number|Function|array|sizzle|autofocus||autoplay|controls|defer|ismap|loop|readonly|required|scoped|xa0|child|native|ig|0x|55296|1023|56320|uFFFF|ufffd|charCodeAt|legend|HTML|setDocument|unload|onunload|createComment|webkitMatchesSelector|mozMatchesSelector|oMatchesSelector|msMatchesSelector|unrecognized|expression|nodeValue|createPseudo|pseudo|innerText|hash|root|header|filters|tokenize|compile|escapeSelector||All|closest|addBack||parentsUntil|nextAll|nextUntil|prevUntil|siblings|iframe|contentDocument|template|reverse||stopOnFalse|locked|fired|resolved|rejected|pipe|TypeError|Thenable|self|resolution|when|Eval|Internal|Range|Reference|URI|exception|message|stack|loading|doScroll|false|_data|_removeData|clearQueue|Top|Right|Bottom|Left|tfoot|caption|th|createTextNode|mouse|pointer|drag|drop|writable|beforeunload|altKey|bubbles|cancelable|changedTouches|ctrlKey|detail|eventPhase|metaKey||pageX|pageY|shiftKey||view|char|buttons|clientX|clientY|offsetX|offsetY|pointerId|pointerType|screenX|screenY||targetTouches|toElement||touches|pointerenter|pointerover|pointerleave|pointerout|embed|hr|img|meta|CDATA||detach|replaceChild|appendTo|prependTo|insertAfter|replaceAll|opener|11111px|60px|sizing|round|getPropertyValue|visibility|letterSpacing|Webkit|Moz|animationIterationCount|columnCount|fillOpacity|flexGrow|flexShrink|lineHeight|order|orphans|widows|zIndex|zoom|background|inherit|setProperty|normal|isFinite|linear|cos|PI||continue|float|originalProperties|originalOptions|Animation|tweener|prefilter|fadeTo||slideDown|slideUp|slideToggle|fadeIn|fadeOut||fadeToggle|slow|600||fast|delay|tabindex|parseInt|htmlFor|readOnly|maxLength|cellSpacing|cellPadding|rowSpan|colSpan|useMap|frameBorder|contentEditable|onfocusin|focusinfocus|focusoutblur|isTrigger|parentWindow|triggerHandler|DOMParser|parseFromString|Invalid|XML|keygen|serialize|elements|about|storage|extension|res|widget|conversion|from|to|isLocal|UTF|plain|bxml|bhtml|bjson|responseXML||responseJSON|canceled|traditional||Since|None|Match||Accept|01|Transport|300|Last|nocontent||notmodified|getJSON|getScript|post|wrap|unwrap|offsetHeight|1223|withCredentials|username|responseType|binary|response|scriptCharset|404|callback|was|called|base|POST|animated|borderTopWidth|borderLeftWidth|marginTop|scrollTo|Height|resize|dblclick|mousedown|mouseup|mousemove|change|keydown|keypress|keyup|hover|unbind|delegate|undelegate|proxy|holdReady|parseJSON|isFunction|isWindow|camelCase|isNumeric||isNaN|amd|noConflict'.split('|'),0,{}));window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:F(f,"function")?f.bind(d||b):f}return!1}function J(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return F(b,"string")||F(b,"undefined")?H(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),I(e,b,c))}function K(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["&#173;",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return y("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},A=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=F(e[d],"function"),F(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),B={}.hasOwnProperty,C;!F(B,"undefined")&&!F(B.call,"undefined")?C=function(a,b){return B.call(a,b)}:C=function(a,b){return b in a&&F(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return J("flexWrap")},s.flexboxlegacy=function(){return J("boxDirection")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!F(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!J("indexedDB",a)},s.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return D("background-color:rgba(150,255,150,.5)"),G(j.backgroundColor,"rgba")},s.hsla=function(){return D("background-color:hsla(120,40%,100%,.5)"),G(j.backgroundColor,"rgba")||G(j.backgroundColor,"hsla")},s.multiplebgs=function(){return D("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return J("backgroundSize")},s.borderimage=function(){return J("borderImage")},s.borderradius=function(){return J("borderRadius")},s.boxshadow=function(){return J("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return E("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return J("animationName")},s.csscolumns=function(){return J("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return D((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),G(j.backgroundImage,"gradient")},s.cssreflections=function(){return J("boxReflect")},s.csstransforms=function(){return!!J("transform")},s.csstransforms3d=function(){var a=!!J("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},s.csstransitions=function(){return J("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var L in s)C(s,L)&&(x=L.toLowerCase(),e[x]=s[L](),v.push((e[x]?"":"no-")+x));return e.input||K(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)C(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},D(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.mq=z,e.hasEvent=A,e.testProp=function(a){return H([a])},e.testAllProps=J,e.testStyles=y,e.prefixed=function(a,b,c){return b?J(a,b,c):J(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};!function(t,e,n,o){"use strict";function i(t,e){var o,i,a=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=t&&t.data?t.data.options:e||{},o=e.$target||n(t.currentTarget),i=o.attr("data-fancybox")||"",i?(a=e.selector?n(e.selector):t.data?t.data.items:[],a=a.length?a.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]'),s=a.index(o),s<0&&(s=0)):a=[o],n.fancybox.open(a,e,s))}if(t.console=t.console||{info:function(t){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var a={loop:!1,gutter:50,keyboard:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M13,16 L20,23 L27,16 M20,7 L20,23 M10,24 L10,28 L30,28 L30,24" /></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg viewBox="0 0 40 40"><path d="M18,17 m-8,0 a8,8 0 1,0 16,0 a8,8 0 1,0 -16,0 M24,22 L31,29" /></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg viewBox="0 0 40 40"><path d="M10,10 L30,30 M30,10 L10,30" /></svg></button>',smallBtn:'<button data-fancybox-close class="fancybox-close-small" title="{{CLOSE}}"><svg viewBox="0 0 32 32"><path d="M10,10 L22,22 M22,10 L10,22"></path></svg></button>',arrowLeft:'<a data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M18,12 L10,20 L18,28 M10,20 L30,20"></path></svg></a>',arrowRight:'<a data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M10,20 L30,20 M22,12 L30,20 L22,28"></path></svg></a>'},parentEl:"body",autoFocus:!1,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Maßstab"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){var t,n=e.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(n.style[t]!==o)return i[t];return"transitionend"}(),f=function(t){return t&&t.length&&t[0].offsetHeight},p=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){n.isArray(e)&&(o[t]=e)}),o},h=function(t,o,i){var a=this;a.opts=p({index:i},n.fancybox.defaults),n.isPlainObject(o)&&(a.opts=p(a.opts,o)),n.fancybox.isMobile&&(a.opts=p(a.opts,a.opts.mobile)),a.id=a.opts.id||++c,a.currIndex=parseInt(a.opts.index,10)||0,a.prevIndex=null,a.prevPos=null,a.currPos=0,a.firstRun=!0,a.group=[],a.slides={},a.addContent(t),a.group.length&&(a.$lastFocus=n(e.activeElement).trigger("blur"),a.init())};n.extend(h.prototype,{init:function(){var i,a,s,r=this,c=r.group[r.currIndex],l=c.opts,d=n.fancybox.scrollbarWidth;n.fancybox.getInstance()||l.hideScrollbar===!1||(n("body").addClass("fancybox-active"),!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(d===o&&(i=n('<div style="width:100px;height:100px;overflow:scroll;" />').appendTo("body"),d=n.fancybox.scrollbarWidth=i[0].offsetWidth-i[0].clientWidth,i.remove()),n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar { margin-right: '+d+"px; }</style>"),n("body").addClass("compensate-for-scrollbar"))),s="",n.each(l.buttons,function(t,e){s+=l.btnTpl[e]||""}),a=n(r.translate(r,l.baseTpl.replace("{{buttons}}",s).replace("{{arrows}}",l.btnTpl.arrowLeft+l.btnTpl.arrowRight))).attr("id","fancybox-container-"+r.id).addClass("fancybox-is-hidden").addClass(l.baseClass).data("FancyBox",r).appendTo(l.parentEl),r.$refs={container:a},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){r.$refs[t]=a.find(".fancybox-"+t)}),r.trigger("onInit"),r.activate(),r.jumpTo(r.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang];return e.replace(/\{\{(\w+)\}\}/g,function(t,e){var i=n[e];return i===o?t:i})},addContent:function(t){var e,i=this,a=n.makeArray(t);n.each(a,function(t,e){var a,s,r,c,l,d={},u={};n.isPlainObject(e)?(d=e,u=e.opts||e):"object"===n.type(e)&&n(e).length?(a=n(e),u=a.data()||{},u=n.extend(!0,{},u,u.options),u.$orig=a,d.src=i.opts.src||u.src||a.attr("href"),d.type||d.src||(d.type="inline",d.src=e)):d={type:"html",src:e+""},d.opts=n.extend(!0,{},i.opts,u),n.isArray(u.buttons)&&(d.opts.buttons=u.buttons),s=d.type||d.opts.type,c=d.src||"",!s&&c&&((r=c.match(/\.(mp4|mov|ogv)((\?|#).*)?$/i))?(s="video",d.opts.videoFormat||(d.opts.videoFormat="video/"+("ogv"===r[1]?"ogg":r[1]))):c.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":c.match(/\.(pdf)((\?|#).*)?$/i)?s="iframe":"#"===c.charAt(0)&&(s="inline")),s?d.type=s:i.trigger("objectNeedsType",d),d.contentType||(d.contentType=n.inArray(d.type,["html","inline","ajax"])>-1?"html":d.type),d.index=i.group.length,"auto"==d.opts.smallBtn&&(d.opts.smallBtn=n.inArray(d.type,["html","inline","ajax"])>-1),"auto"===d.opts.toolbar&&(d.opts.toolbar=!d.opts.smallBtn),d.opts.$trigger&&d.index===i.opts.index&&(d.opts.$thumb=d.opts.$trigger.find("img:first")),d.opts.$thumb&&d.opts.$thumb.length||!d.opts.$orig||(d.opts.$thumb=d.opts.$orig.find("img:first")),"function"===n.type(d.opts.caption)&&(d.opts.caption=d.opts.caption.apply(e,[i,d])),"function"===n.type(i.opts.caption)&&(d.opts.caption=i.opts.caption.apply(e,[i,d])),d.opts.caption instanceof n||(d.opts.caption=d.opts.caption===o?"":d.opts.caption+""),"ajax"===d.type&&(l=c.split(/\s+/,2),l.length>1&&(d.src=l.shift(),d.opts.filter=l.shift())),d.opts.modal&&(d.opts=n.extend(!0,d.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),i.group.push(d)}),Object.keys(i.slides).length&&(i.updateControls(),e=i.Thumbs,e&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var o=this;o.removeEvents(),o.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),o.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),o.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),o.next()}).on("click.fb","[data-fancybox-zoom]",function(t){o[o.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?d(function(){o.update()}):(o.$refs.stage.hide(),setTimeout(function(){o.$refs.stage.show(),o.update()},n.fancybox.isMobile?600:250))}),r.on("focusin.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null;o.isClosing||!o.current||!o.current.opts.trapFocus||n(t.target).hasClass("fancybox-container")||n(t.target).is(e)||o&&"fixed"!==n(t.target).css("position")&&!o.$refs.container.has(t.target).length&&(t.stopPropagation(),o.focus())}),r.on("keydown.fb",function(t){var e=o.current,i=t.keyCode||t.which;if(e&&e.opts.keyboard&&!(t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input")||n(t.target).is("textarea")))return 8===i||27===i?(t.preventDefault(),void o.close(t)):37===i||38===i?(t.preventDefault(),void o.previous()):39===i||40===i?(t.preventDefault(),void o.next()):void o.trigger("afterKeydown",t,i)}),o.group[o.currIndex].opts.idleTime&&(o.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){o.idleSecondsCounter=0,o.isIdle&&o.showControls(),o.isIdle=!1}),o.idleInterval=t.setInterval(function(){o.idleSecondsCounter++,o.idleSecondsCounter>=o.group[o.currIndex].opts.idleTime&&!o.isDragging&&(o.isIdle=!0,o.idleSecondsCounter=0,o.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("focusin.fb keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var i,a,s,r,c,l,d,u=this,p=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(t=parseInt(t,10),a=u.current?u.current.opts.loop:u.opts.loop,!a&&(t<0||t>=p))return!1;if(i=u.firstRun=!Object.keys(u.slides).length,!(p<2&&!i&&u.isDragging)){if(r=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,s=u.createSlide(t),p>1&&((a||s.index>0)&&u.createSlide(t-1),(a||s.index<p-1)&&u.createSlide(t+1)),u.current=s,u.currIndex=s.index,u.currPos=s.pos,u.trigger("beforeShow",i),u.updateControls(),l=n.fancybox.getTranslate(s.$slide),s.isMoved=(0!==l.left||0!==l.top)&&!s.$slide.hasClass("fancybox-animated"),s.forcedDuration=o,n.isNumeric(e)?s.forcedDuration=e:e=s.opts[i?"animationDuration":"transitionDuration"],e=parseInt(e,10),i)return s.opts.animationEffect&&e&&u.$refs.container.css("transition-duration",e+"ms"),u.$refs.container.removeClass("fancybox-is-hidden"),f(u.$refs.container),u.$refs.container.addClass("fancybox-is-open"),f(u.$refs.container),s.$slide.addClass("fancybox-slide--previous"),u.loadSlide(s),s.$slide.removeClass("fancybox-slide--previous").addClass("fancybox-slide--current"),void u.preload("image");n.each(u.slides,function(t,e){n.fancybox.stop(e.$slide)}),s.$slide.removeClass("fancybox-slide--next fancybox-slide--previous").addClass("fancybox-slide--current"),s.isMoved?(c=Math.round(s.$slide.width()),n.each(u.slides,function(t,o){var i=o.pos-s.pos;n.fancybox.animate(o.$slide,{top:0,left:i*c+i*o.opts.gutter},e,function(){o.$slide.removeAttr("style").removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===u.currPos&&(s.isMoved=!1,u.complete())})})):u.$refs.stage.children().removeAttr("style"),s.isLoaded?u.revealContent(s):u.loadSlide(s),u.preload("image"),r.pos!==s.pos&&(d="fancybox-slide--"+(r.pos>s.pos?"next":"previous"),r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),r.isComplete=!1,e&&(s.isMoved||s.opts.transitionEffect)&&(s.isMoved?r.$slide.addClass(d):(d="fancybox-animated "+d+" fancybox-fx-"+s.opts.transitionEffect,n.fancybox.animate(r.$slide,d,e,function(){r.$slide.removeClass(d).removeAttr("style")}))))}}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,i){var a,s,r,c,l,d=this,u=d.current,f=u.$content,p=n.fancybox.getTranslate(u.$slide).width,h=n.fancybox.getTranslate(u.$slide).height,g=u.width,b=u.height;!d.isAnimating&&f&&"image"==u.type&&u.isLoaded&&!u.hasError&&(n.fancybox.stop(f),d.isAnimating=!0,t=t===o?.5*p:t,e=e===o?.5*h:e,a=n.fancybox.getTranslate(f),a.top-=n.fancybox.getTranslate(u.$slide).top,a.left-=n.fancybox.getTranslate(u.$slide).left,c=g/a.width,l=b/a.height,s=.5*p-.5*g,r=.5*h-.5*b,g>p&&(s=a.left*c-(t*c-t),s>0&&(s=0),s<p-g&&(s=p-g)),b>h&&(r=a.top*l-(e*l-e),r>0&&(r=0),r<h-b&&(r=h-b)),d.updateCursor(g,b),n.fancybox.animate(f,{top:r,left:s,scaleX:c,scaleY:l},i||330,function(){d.isAnimating=!1}),d.SlideShow&&d.SlideShow.isActive&&d.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,a=i.$content;!o.isAnimating&&a&&"image"==i.type&&i.isLoaded&&!i.hasError&&(n.fancybox.stop(a),o.isAnimating=!0,e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||330,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,n,o,i,a,s=this,r=t.$content,c=t.width||t.opts.width,l=t.height||t.opts.height,d={};return!!(t.isLoaded&&r&&r.length)&&(i={top:parseInt(t.$slide.css("paddingTop"),10),right:parseInt(t.$slide.css("paddingRight"),10),bottom:parseInt(t.$slide.css("paddingBottom"),10),left:parseInt(t.$slide.css("paddingLeft"),10)},e=parseInt(s.$refs.stage.width(),10)-(i.left+i.right),n=parseInt(s.$refs.stage.height(),10)-(i.top+i.bottom),c&&l||(c=e,l=n),o=Math.min(1,e/c,n/l),c=Math.floor(o*c),l=Math.floor(o*l),"image"===t.type?(d.top=Math.floor(.5*(n-l))+i.top,d.left=Math.floor(.5*(e-c))+i.left):"video"===t.contentType&&(a=t.opts.width&&t.opts.height?c/l:t.opts.ratio||16/9,l>c/a?l=c/a:c>l*a&&(c=l*a)),d.width=c,d.height=l,d)},update:function(){var t=this;n.each(t.slides,function(e,n){t.updateSlide(n)})},updateSlide:function(t,e){var o=this,i=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height;i&&(a||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(i),n.fancybox.setTranslate(i,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),t.$slide.trigger("refresh"),o.$refs.toolbar.toggleClass("compensate-for-scrollbar",t.$slide.get(0).scrollHeight>t.$slide.get(0).clientHeight),o.trigger("onUpdate",t)},centerSlide:function(t,e){var i,a,s=this;s.current&&(i=Math.round(t.$slide.width()),a=t.pos-s.current.pos,n.fancybox.animate(t.$slide,{top:0,left:a*i+a*t.opts.gutter,opacity:1},e===o?0:e,null,!1))},updateCursor:function(t,e){var o,i=this,a=i.current,s=i.$refs.container.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-drag fancybox-can-zoomOut");a&&!i.isClosing&&(o=i.isZoomable(),s.toggleClass("fancybox-is-zoomable",o),n("[data-fancybox-zoom]").prop("disabled",!o),o&&("zoom"===a.opts.clickContent||n.isFunction(a.opts.clickContent)&&"zoom"===a.opts.clickContent(a))?i.isScaledDown(t,e)?s.addClass("fancybox-can-zoomIn"):a.opts.touch?s.addClass("fancybox-can-drag"):s.addClass("fancybox-can-zoomOut"):a.opts.touch&&"video"!==a.contentType&&s.addClass("fancybox-can-drag"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if(t=e.getFitPos(n),n.width>t.width||n.height>t.height)return!0}return!1},isScaledDown:function(t,e){var i=this,a=!1,s=i.current,r=s.$content;return t!==o&&e!==o?a=t<s.width&&e<s.height:r&&(a=n.fancybox.getTranslate(r),a=a.width<s.width&&a.height<s.height),a},canPan:function(){var t,e=this,n=!1,o=e.current;return"image"===o.type&&(t=o.$content)&&!o.hasError&&(n=e.getFitPos(o),n=Math.abs(t.width()-n.width)>1||Math.abs(t.height()-n.height)>1),n},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){switch(t.isLoading=!0,a.trigger("beforeLoad",t),e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,'<video class="fancybox-video" controls controlsList="nodownload"><source src="'+t.src+'" type="'+t.opts.videoFormat+"\">Your browser doesn't support HTML5 video</video");break;case"inline":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&a.setError(t)}})),o.one("onReset",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(e){var o,i,a,s,r,c=this,l=e.opts.srcset||e.opts.image.srcset;if(e.timouts=setTimeout(function(){var t=e.$image;!e.isLoading||t&&t[0].complete||e.hasError||c.showLoading(e)},350),l){s=t.devicePixelRatio||1,r=t.innerWidth*s,a=l.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);return 0===n?e.url=t:void(o&&(e.value=o,e.postfix=t[t.length-1]))}),e}),a.sort(function(t,e){return t.value-e.value});for(var d=0;d<a.length;d++){var u=a[d];if("w"===u.postfix&&u.value>=r||"x"===u.postfix&&u.value>=s){i=u;break}}!i&&a.length&&(i=a[a.length-1]),i&&(e.src=i.url,e.width&&e.height&&"w"==i.postfix&&(e.height=e.width/e.height*i.value,e.width=i.value),e.opts.srcset=l)}e.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),o=e.opts.thumb||!(!e.opts.$thumb||!e.opts.$thumb.length)&&e.opts.$thumb.attr("src"),e.opts.preload!==!1&&e.opts.width&&e.opts.height&&o&&(e.width=e.opts.width,e.height=e.opts.height,e.$ghost=n("<img />").one("error",function(){n(this).remove(),e.$ghost=null}).one("load",function(){c.afterLoad(e)}).addClass("fancybox-image").appendTo(e.$content).attr("src",o)),c.setBigImage(e)},setBigImage:function(t){var e=this,o=n("<img />");t.$image=o.one("error",function(){e.setError(t)}).one("load",function(){var n;t.$ghost||(e.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),e.afterLoad(t)),t.timouts&&(clearTimeout(t.timouts),t.timouts=null),e.isClosing||(t.opts.srcset&&(n=t.opts.sizes,n&&"auto"!==n||(n=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),o.attr("sizes",n).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!e.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),e.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(o[0].complete||"complete"==o[0].readyState)&&o[0].naturalWidth&&o[0].naturalHeight?o.trigger("load"):o[0].error&&o.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),i=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),i>0&&(t.width=Math.floor(i*e/n),t.height=i)},setIframe:function(t){var e,i=this,a=t.opts.iframe,s=t.$slide;t.$content=n('<div class="fancybox-content'+(a.preload?" fancybox-is-hidden":"")+'"></div>').css(a.css).appendTo(s),s.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(a.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(a.attr).appendTo(t.$content),a.preload?(i.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),i.afterLoad(t)}),s.on("refresh.fb",function(){var n,i,s=t.$content,r=a.css.width,c=a.css.height;if(1===e[0].isReady){try{n=e.contents(),i=n.find("body")}catch(t){}i&&i.length&&i.children().length&&(s.css({width:"",height:""}),r===o&&(r=Math.ceil(Math.max(i[0].clientWidth,i.outerWidth(!0)))),r&&s.width(r),c===o&&(c=Math.ceil(Math.max(i[0].clientHeight,i.outerHeight(!0)))),c&&s.height(c)),s.removeClass("fancybox-is-hidden")}})):this.afterLoad(t),e.attr("src",t.src),s.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),l(e)&&e.parent().length?(e.parent().parent(".fancybox-slide--inline").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("<div>").append(n.trim(e)).contents(),3===e[0].nodeType&&(e=n("<div>").html(e))),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio").first().addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide))},hideLoading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),t.pos===e.currPos&&e.updateCursor(),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).prependTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.revealContent(t))},revealContent:function(t){var e,i,a,s,r=this,c=t.$slide,l=!1,d=!1;return e=t.opts[r.firstRun?"animationEffect":"transitionEffect"],a=t.opts[r.firstRun?"animationDuration":"transitionDuration"],a=parseInt(t.forcedDuration===o?a:t.forcedDuration,10),t.pos===r.currPos&&(t.isComplete?e=!1:r.isAnimating=!0),!t.isMoved&&t.pos===r.currPos&&a||(e=!1),"zoom"===e&&(t.pos===r.currPos&&a&&"image"===t.type&&!t.hasError&&(d=r.getThumbPos(t))?l=r.getFitPos(t):e="fade"),"zoom"===e?(l.scaleX=l.width/d.width,l.scaleY=l.height/d.height,s=t.opts.zoomOpacity,"auto"==s&&(s=Math.abs(t.width/t.height-d.width/d.height)>.1),s&&(d.opacity=.1,l.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),d),f(t.$content),void n.fancybox.animate(t.$content,l,a,function(){r.isAnimating=!1,r.complete()})):(r.updateSlide(t),e?(n.fancybox.stop(c),i="fancybox-animated fancybox-slide--"+(t.pos>=r.prevPos?"next":"previous")+" fancybox-fx-"+e,c.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(i),t.$content.removeClass("fancybox-is-hidden"),f(c),void n.fancybox.animate(c,"fancybox-slide--current",a,function(e){c.removeClass(i).removeAttr("style"),t.pos===r.currPos&&r.complete()},!0)):(f(c),t.$content.removeClass("fancybox-is-hidden"),void(t.pos===r.currPos&&r.complete())))},getThumbPos:function(o){var i,a=this,s=!1,r=o.opts.$thumb,c=r&&r.length&&r[0].ownerDocument===e?r.offset():0,l=function(e){for(var o,i=e[0],a=i.getBoundingClientRect(),s=[];null!==i.parentElement;)"hidden"!==n(i.parentElement).css("overflow")&&"auto"!==n(i.parentElement).css("overflow")||s.push(i.parentElement.getBoundingClientRect()),i=i.parentElement;return o=s.every(function(t){var e=Math.min(a.right,t.right)-Math.max(a.left,t.left),n=Math.min(a.bottom,t.bottom)-Math.max(a.top,t.top);return e>0&&n>0}),o&&a.bottom>0&&a.right>0&&a.left<n(t).width()&&a.top<n(t).height()};return c&&l(r)&&(i=a.$refs.stage.offset(),s={top:c.top-i.top+parseFloat(r.css("border-top-width")||0),left:c.left-i.left+parseFloat(r.css("border-left-width")||0),width:r.width(),height:r.height(),scaleX:1,scaleY:1}),s},complete:function(){var t=this,o=t.current,i={};!o.isMoved&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),t.preload("inline"),f(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(t.slides,function(e,o){o.pos>=t.currPos-1&&o.pos<=t.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),t.slides=i),t.isAnimating=!1,t.updateCursor(),t.trigger("afterShow"),o.$slide.find("video,audio").filter(":visible:first").trigger("play"),(n(e.activeElement).is("[disabled]")||o.opts.autoFocus&&"image"!=o.type&&"iframe"!==o.type)&&t.focus())},preload:function(t){var e=this,n=e.slides[e.currPos+1],o=e.slides[e.currPos-1];n&&n.type===t&&e.loadSlide(n),o&&o.type===t&&e.loadSlide(o)},focus:function(){var t,e=this.current;this.isClosing||e&&e.isComplete&&e.$content&&(t=e.$content.find("input[autofocus]:enabled:visible:first"),t.length||(t=e.$content.find("button,:input,[tabindex],a").filter(":enabled:visible:first")),t=t&&t.length?t:e.$content,t.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l,p=this,h=p.current,g=function(){p.cleanUp(t)};return!p.isClosing&&(p.isClosing=!0,p.trigger("beforeClose",t)===!1?(p.isClosing=!1,d(function(){p.update()}),!1):(p.removeEvents(),h.timouts&&clearTimeout(h.timouts),a=h.$content,o=h.opts.animationEffect,i=n.isNumeric(e)?e:o?h.opts.animationDuration:0,h.$slide.off(u).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),h.$slide.siblings().trigger("onReset").remove(),i&&p.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),p.hideLoading(h),p.hideControls(),p.updateCursor(),"zoom"!==o||t!==!0&&a&&i&&"image"===h.type&&!h.hasError&&(l=p.getThumbPos(h))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.getTranslate(a),c={top:s.top,left:s.left,scaleX:s.width/l.width,scaleY:s.height/l.height,width:l.width,height:l.height},r=h.opts.zoomOpacity,"auto"==r&&(r=Math.abs(h.width/h.height-l.width/l.height)>.1),r&&(l.opacity=0),n.fancybox.setTranslate(a,c),f(a),n.fancybox.animate(a,l,i,g),!0):(o&&i?t===!0?setTimeout(g,i):n.fancybox.animate(h.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,i,g):g(),!0)))},cleanUp:function(t){var e,o=this,i=n("body");o.current.$slide.trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",t),o.$lastFocus&&o.current.opts.backFocus&&o.$lastFocus.trigger("focus"),o.current=null,e=n.fancybox.getInstance(),e?e.activate():(i.removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=Array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;return s?i.unshift(s):s=a,i.unshift(a),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),o===!1?o:void("afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",i):r.trigger(t+".fb",i))},updateControls:function(t){var e=this,n=e.current,o=n.index,i=n.opts.caption,a=e.$refs.container,s=e.$refs.caption;n.$slide.trigger("refresh"),e.$caption=i&&i.length?s.html(i):null,e.isHiddenControls||e.isIdle||e.showControls(),a.find("[data-fancybox-count]").html(e.group.length),a.find("[data-fancybox-index]").html(o+1),a.find("[data-fancybox-prev]").toggleClass("disabled",!n.opts.loop&&o<=0),a.find("[data-fancybox-next]").toggleClass("disabled",!n.opts.loop&&o>=e.group.length-1),"image"===n.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",n.opts.image.src||n.src).show():n.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide()},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.isHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal),t.$caption?n.addClass("fancybox-show-caption "):n.removeClass("fancybox-show-caption")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.3.5",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof h&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new h(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),t===!0&&this.close())},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:e.createTouch!==o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getBoundingClientRect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))})},setTranslate:function(t,e){var n="",i={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().left:e.left)+"px, "+(e.top===o?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scaleX!==o&&e.scaleY!==o&&(n=(n.length?n+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")"),n.length&&(i.transform=n),e.opacity!==o&&(i.opacity=e.opacity),e.width!==o&&(i.width=e.width),e.height!==o&&(i.height=e.height),t.css(i)},animate:function(t,e,i,a,s){var r=!1;n.isFunction(i)&&(a=i,i=null),n.isPlainObject(e)||t.removeAttr("style"),n.fancybox.stop(t),t.on(u,function(o){(!o||!o.originalEvent||t.is(o.originalEvent.target)&&"z-index"!=o.originalEvent.propertyName)&&(n.fancybox.stop(t),r&&n.fancybox.setTranslate(t,r),n.isPlainObject(e)?s===!1&&t.removeAttr("style"):s!==!0&&t.removeClass(e),n.isFunction(a)&&a(o))}),n.isNumeric(i)&&t.css("transition-duration",i+"ms"),n.isPlainObject(e)?(e.scaleX!==o&&e.scaleY!==o&&(r=n.extend({},e,{width:t.width()*e.scaleX,height:t.height()*e.scaleY,scaleX:1,scaleY:1}),delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger("transitionend")},i+16))},stop:function(t){t&&t.length&&(clearTimeout(t.data("timer")),t.off("transitionend").css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i),r.on("click.fb-start","[data-trigger]",function(t){i(t,{$target:n('[data-fancybox="'+n(t.currentTarget).attr("data-trigger")+'"]').eq(n(t.currentTarget).attr("data-index")||0),$trigger:n(this)})})}}(window,document,window.jQuery||jQuery),function(t){"use strict";var e=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e},n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};t(document).on("objectNeedsType.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},n,a.opts.media),t.each(s,function(n,o){if(c=p.match(o.matcher)){if(h=o.type,f=n,u={},o.paramPlace&&c[o.paramPlace]){d=c[o.paramPlace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i<d.length;++i){var s=d[i].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return l=t.extend(!0,{},o.params,a.opts[n],u),p="function"===t.type(o.url)?o.url.call(this,c,l,a):e(o.url,c,l),r="function"===t.type(o.thumb)?o.thumb.call(this,c,l,a):e(o.thumb,c),"youtube"===n?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===n&&(p=p.replace("&%23","#")),!1}}),h?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=r),"iframe"===h&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:h,src:p,origSrc:a.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(a.type=a.opts.defaultType)})}(window.jQuery||jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),i=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),a=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio')||n.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,o=t[0].attributes,i=o.length;e<i;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],i=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,a=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){this.$container.off(".fb.touch")},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$content,p="touchstart"==o.type;if(p&&i.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left))){if(!u||d.isAnimating||d.isClosing)return o.stopPropagation(),void o.preventDefault();if(i.realPoints=i.startPoints=a(o),i.startPoints.length){if(o.stopPropagation(),i.startEvent=o,i.canTap=!0,i.$target=c,i.$content=f,i.opts=u.opts.touch,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.isScrolling=!1,i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.canvasWidth=Math.round(u.$slide[0].clientWidth),i.canvasHeight=Math.round(u.$slide[0].clientHeight),i.contentLastPos=null,i.contentStartPos=n.fancybox.getTranslate(i.$content)||{top:0,left:0},i.sliderStartPos=i.sliderLastPos||n.fancybox.getTranslate(u.$slide),i.stagePos=n.fancybox.getTranslate(d.$refs.stage),i.sliderStartPos.top-=i.stagePos.top,i.sliderStartPos.left-=i.stagePos.left,i.contentStartPos.top-=i.stagePos.top,i.contentStartPos.left-=i.stagePos.left,n(e).off(".fb.touch").on(p?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(p?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",i.onscroll,!0),!i.opts&&!d.canPan()||!c.is(i.$stage)&&!i.$stage.find(c).length)return void(c.is(".fancybox-image")&&o.preventDefault());n.fancybox.isMobile&&(l(c)||l(c.parent()))||o.preventDefault(),(1===i.startPoints.length||u.hasError)&&(i.instance.canPan()?(n.fancybox.stop(i.$content),i.$content.css("transition-duration",""),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-controls--isGrabbing")),2===i.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(i.canTap=!1,i.isSwiping=!1,i.isPanning=!1,i.isZooming=!0,n.fancybox.stop(i.$content),i.$content.css("transition-duration",""),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))}}},d.prototype.onscroll=function(t){var n=this;n.isScrolling=!0,e.removeEventListener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this,o=n(t.target);return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling||!o.is(e.$stage)&&!e.$stage.find(o).length?void(e.canTap=!1):(e.newPoints=a(t),void((e.opts||e.instance.canPan())&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&e.isSwiping===!0||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var a,s=this,r=s.isSwiping,c=s.sliderStartPos.left||0;if(r!==!0)"x"==r&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?c+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?c-=Math.pow(-s.distanceX,.8):c+=s.distanceX),s.sliderLastPos={top:"x"==r?0:s.sliderStartPos.top+s.distanceY,left:c},s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,s.instance.group.length<2&&s.opts.vertical?s.isSwiping="y":s.instance.isDragging||s.opts.vertical===!1||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(a=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=a>45&&a<135?"y":"x"),s.canTap=!1,"y"===s.isSwiping&&n.fancybox.isMobile&&(l(s.$target)||l(s.$target.parent())))return void(s.isScrolling=!0);s.instance.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(s.instance.slides,function(t,e){n.fancybox.stop(e.$slide),e.$slide.css("transition-duration",""),e.inTransition=!1,e.pos===s.instance.current.pos&&(s.sliderStartPos.left=n.fancybox.getTranslate(e.$slide).left-n.fancybox.getTranslate(s.instance.$refs.stage).left)}),s.instance.SlideShow&&s.instance.SlideShow.isActive&&s.instance.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;return s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5)?void(t.startPoints=t.newPoints):(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&(i(t.requestId),t.requestId=null),void(t.requestId=o(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})))},d.prototype.limitMovement=function(){var t,e,n,o,i,a,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),l>0&&i>t&&(i=t-1+Math.pow(-t+f+l,.8)||0),l<0&&i<n&&(i=n+1-Math.pow(n-f-l,.8)||0),d>0&&a>e&&(a=e-1+Math.pow(-e+p+d,.8)||0),d<0&&a<o&&(a=o+1-Math.pow(o-p-d,.8)||0),{top:a,left:i}},d.prototype.limitPosition=function(t,e,n,o){var i=this,a=i.canvasWidth,s=i.canvasHeight;return n>a?(t=t>0?0:t,t=t<a-n?a-n:t):t=Math.max(0,a/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,a=e.contentStartPos,r=a.width,c=a.height,l=a.left,d=a.top,u=s(e.newPoints[0],e.newPoints[1]),f=u/e.startDistanceBetweenFingers,p=Math.floor(r*f),h=Math.floor(c*f),g=(r-p)*e.percentageOfImageAtPinchPointX,b=(c-h)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),y=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),v=m-e.centerPointStartX,x=y-e.centerPointStartY,w=l+(g+v),$=d+(b+x),S={top:$,left:w,scaleX:f,scaleY:f};e.canTap=!1,e.newWidth=p,e.newHeight=h,e.contentLastPos=S,e.requestId&&(i(e.requestId),e.requestId=null),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},d.prototype.ontouchend=function(t){var o=this,s=Math.max((new Date).getTime()-o.startTime,1),r=o.isSwiping,c=o.isPanning,l=o.isZooming,d=o.isScrolling;return o.endPoints=a(t),o.$container.removeClass("fancybox-controls--isGrabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap?o.onTap(t):(o.speed=366,o.velocityX=o.distanceX/s*.5,o.velocityY=o.distanceY/s*.5,o.speedX=Math.max(.5*o.speed,Math.min(1.5*o.speed,1/Math.abs(o.velocityX)*o.speed)),void(c?o.endPanning():l?o.endZooming():o.endSwiping(r,d)))},d.prototype.endSwiping=function(t,e){var o=this,i=!1,a=o.instance.group.length;o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),i=o.instance.close(!0,200)):"x"==t&&o.distanceX>50&&a>1?i=o.instance.previous(o.speedX):"x"==t&&o.distanceX<-50&&a>1&&(i=o.instance.next(o.speedX)),i!==!1||"x"!=t&&"y"!=t||(e||a<2?o.instance.centerSlide(o.instance.current,150):o.instance.jumpTo(o.instance.current.index)),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(i.opts.momentum===!1?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+i.velocityX*i.speed,e=i.contentLastPos.top+i.velocityY*i.speed),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,330))},d.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),r<a.canvasWidth&&c<a.canvasHeight?a.instance.scaleToFit(150):r>s.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.setTranslate(a.$content,n.fancybox.getTranslate(a.$content)),n.fancybox.animate(a.$content,o,150)))},d.prototype.onTap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startPoints,d=l[0]?l[0].x-n(t).scrollLeft()-i.stagePos.left:0,u=l[0]?l[0].y-n(t).scrollTop()-i.stagePos.top:0,f=function(t){var o=c.opts[t];if(n.isFunction(o)&&(o=o.apply(r,[c,e])),o)switch(o){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls(!0);break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(i.startEvent);break;case"zoom":"image"==c.type&&(c.isLoaded||c.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,u):r.group.length<2&&r.close(i.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(d-i.tapX)>50||Math.abs(u-i.tapY)>50)return this;f("dblclick"+o)}else i.tapX=d,i.tapY=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=setTimeout(function(){i.tapped=null,f("click"+o)},500):f("click"+o);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))})}(window,document,window.jQuery||jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg viewBox="0 0 40 40"><path d="M13,12 L27,20 L13,27 Z" /><path d="M15,10 v19 M23,10 v19" /></svg></button>'},slideShow:{autoStart:!1,speed:3e3}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this;t.$button=t.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),(t.instance.group.length<2||!t.instance.group[t.instance.currIndex].opts.slideShow)&&t.$button.hide()},set:function(t){var e=this;e.instance&&e.instance.current&&(t===!0||e.instance.current.opts.loop||e.instance.currIndex<e.instance.group.length-1)?e.timer=setTimeout(function(){e.isActive&&e.instance.jumpTo((e.instance.currIndex+1)%e.instance.group.length)},e.instance.current.opts.slideShow.speed):(e.stop(),e.instance.idleSecondsCounter=0,e.instance.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null},start:function(){var t=this,e=t.instance.current;e&&(t.isActive=!0,t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.set(!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,i,a,s){var r=o&&o.SlideShow;!r||!i.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(a.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,window.jQuery||jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var i=e[o];if(i&&i[1]in t){for(var a=0;a<i.length;a++)n[e[0][a]]=i[a];return n}}return!1}();if(!n)return void(e&&e.fancybox&&(e.fancybox.defaults.btnTpl.fullScreen=!1));var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fullscreen" title="{{FULL_SCREEN}}"><svg viewBox="0 0 40 40"><path d="M9,12 v16 h22 v-16 h-22 v8" /></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on({"onInit.fb":function(t,e){var n;e&&e.group[e.currIndex].opts.fullScreen?(n=e.$refs.container,n.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle()}),e.opts.fullScreen&&e.opts.fullScreen.autoStart===!0&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}}),e(t).on(n.fullscreenchange,function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.current.$content.css("transition","none"),n.isAnimating=!1,n.update(!0,!0,0)),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t))})}(document,window.jQuery||jQuery),function(t,e){"use strict";var n="fancybox-thumbs",o=n+"-active",i=n+"-loading";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg viewBox="0 0 120 120"><path d="M30,30 h14 v14 h-14 Z M50,30 h14 v14 h-14 Z M70,30 h14 v14 h-14 Z M30,50 h14 v14 h-14 Z M50,50 h14 v14 h-14 Z M70,50 h14 v14 h-14 Z M30,70 h14 v14 h-14 Z M50,70 h14 v14 h-14 Z M70,70 h14 v14 h-14 Z" /></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var a=function(t){this.init(t)};e.extend(a.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e,n,o=this;o.instance=t,t.Thumbs=o,o.opts=t.group[t.currIndex].opts.thumbs,e=t.group[0],e=e.opts.thumb||!(!e.opts.$thumb||!e.opts.$thumb.length)&&e.opts.$thumb.attr("src"),t.group.length>1&&(n=t.group[1],n=n.opts.thumb||!(!n.opts.$thumb||!n.opts.$thumb.length)&&n.opts.$thumb.attr("src")),o.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]"),o.opts&&e&&n&&e&&n?(o.$button.show().on("click",function(){o.toggle()}),o.isActive=!0):o.$button.hide()},create:function(){var t,o=this,a=o.instance,s=o.opts.parentEl,r=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(a.$refs.container.find(s).addBack().filter(s)),o.$grid.on("click","li",function(){a.jumpTo(e(this).attr("data-index"))})),o.$list||(o.$list=e("<ul>").appendTo(o.$grid)),e.each(a.group,function(e,n){t=n.opts.thumb||(n.opts.$thumb?n.opts.$thumb.attr("src"):null),t||"image"!==n.type||(t=n.src),r.push('<li data-index="'+e+'" tabindex="0" class="'+i+'"'+(t&&t.length?' style="background-image:url('+t+')" />':"")+"></li>")}),o.$list[0].innerHTML=r.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+a.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,i=this,a=i.$list,s=i.$grid;i.instance.current&&(e=a.children().removeClass(o).filter('[data-index="'+i.instance.current.index+'"]').addClass(o),n=e.position(),"y"===i.opts.axis&&(n.top<0||n.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+n.top},t):"x"===i.opts.axis&&(n.left<s.scrollLeft()||n.left>s.scrollLeft()+(s.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new a(e),n.isActive&&n.opts.autoStart===!0&&n.show())},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;i&&i.isVisible&&i.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&n.opts.hideOnClose!==!1&&n.$grid.hide()}})}(document,window.jQuery||jQuery),function(t,e){"use strict";function n(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg viewBox="0 0 40 40"><path d="M6,30 C8,18 19,16 23,16 L23,16 L23,10 L33,20 L23,29 L23,24 C19,24 8,27 6,30 Z"></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,i=e.fancybox.getInstance(),a=i.current||null;a&&("function"===e.type(a.opts.share.url)&&(t=a.opts.share.url.apply(a,[i,a])),o=a.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===a.type?encodeURIComponent(a.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):""),e.fancybox.open({src:i.translate(i,o),type:"html",opts:{animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__links a").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})}}}))})}(document,window.jQuery||jQuery),function(t,e,n){"use strict";function o(){var t=e.location.hash.substr(1),n=t.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join("-");return{hash:t,index:o<1?1:o,gallery:i}}function i(t){var e;""!==t.gallery&&(e=n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).trigger("click.fb-start"))}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,n=e.hash||(e.$orig?e.$orig.data("fancybox"):""),""!==n&&n)}n.escapeSelector||(n.escapeSelector=function(t){var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,n=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t};return(t+"").replace(e,n)}),n(function(){n.fancybox.defaults.hash!==!1&&(n(t).on({"onInit.fb":function(t,e){var n,i;e.group[e.currIndex].opts.hash!==!1&&(n=o(),i=a(e),i&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var r;i&&i.opts.hash!==!1&&(r=a(o),r&&(o.currentHash=r+(o.group.length>1?"-"+(i.index+1):""),e.location.hash!=="#"+o.currentHash&&(o.origHash||(o.origHash=e.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in e.history?(e.history[s?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):e.location.hash=o.currentHash,o.hashTimer=null},300))))},"beforeClose.fb":function(n,o,i){var s;i.opts.hash!==!1&&(s=a(o),o.currentHash&&o.hasCreatedHistory?e.history.back():o.currentHash&&("replaceState"in e.history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+(o.origHash||"")):e.location.hash=o.origHash),o.currentHash=null,clearTimeout(o.hashTimer))}}),n(e).on("hashchange.fb",function(){var t,e=o();n.each(n(".fancybox-container").get().reverse(),function(e,o){var i=n(o).data("FancyBox");if(i.currentHash)return t=i,!1}),t?!t.currentHash||t.currentHash===e.gallery+"-"+e.index||1===e.index&&t.currentHash==e.gallery||(t.currentHash=null,t.close()):""!==e.gallery&&i(e)}),setTimeout(function(){n.fancybox.getInstance()||i(o())},50))})}(document,window,window.jQuery||jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||o.opts.wheel===!1||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,window.jQuery||jQuery);!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.slice(0,n.length-1).concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=v.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),n.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&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."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._type=a,a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;a>c;c++){var d=Math.floor(36*Math.random());b+=d.toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return e!==f||"hidden"!==f&&"visible"!==f?"scroll"===e||"scroll"===f?!0:d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth:!1},c.escapeMarkup=function(a){var b={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){var c=b.find(".select2-results");c.append(a)},c.prototype.sort=function(a){var b=this.options.get("sorter");return b(a)},c.prototype.highlightFirstItem=function(){var a=this.$results.find(".select2-results__option[aria-selected]"),b=a.filter("[aria-selected=true]");b.length>0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()}),e=b.$results.find(".select2-results__option[aria-selected]");e.each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";a(h);this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):0>h-g&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");return"true"===c.attr("aria-selected")?void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{})):void d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){var a=this.$results.find(".select2-results__option--highlighted");return a},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){var a={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 a}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<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")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id+"-container",a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2"),e=a(".select2.select2-container--open");e.each(function(){var b=a(this);if(this!=d[0]){var c=b.data("element");c.select2("close")}})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){var c=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},d.prototype.selectionContainer=function(){var b=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return b},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.prop("title",e.title||e.text),f.data("data",e),b.push(f)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),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(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||(c.which==b.DELETE||c.which==b.BACKSPACE)&&this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">&times;</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented();var b=a.which;if(b===c.BACKSPACE&&""===e.$search.val()){var d=e.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var f=d.data("data");e.searchRemoveChoice(f),a.preventDefault()}}});var f=document.documentMode,g=f&&11>=f;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){return g?void e.$selection.off("input.search input.searchcheck"):void e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(g&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){var 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","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"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","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"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","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"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","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"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","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"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","Ⓣ":"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","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"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","ⓐ":"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","ⓒ":"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","ǳ":"dz","ǆ":"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","ⓖ":"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","ƕ":"hv","ⓘ":"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","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"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","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"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","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return a}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple"))return a.selected=!1,c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(l);m.attr("data-select2-tag",!0),e.addOptions([m]),e.insertTag(g,l)}a.results=g,c(a)}var e=this;return this._removeOldTags(),null==b.term||null!=b.page?void a.call(this,b,c):void a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){var c=(this._lastTag,this.$element.find("option[data-select2-tag]"));c.each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(b,c,d){function e(b){var c=g._normalizeItem(b),d=g.$element.find("option").filter(function(){return a(this).val()===c.id});if(!d.length){var e=g.option(c);e.attr("data-select2-tag",!0),g._removeOldTags(),g.addOptions([e])}f(c)}function f(a){g.trigger("select",{data:a})}var g=this;c.term=c.term||"";var h=this.tokenizer(c,this.options,e);h.term!==c.term&&(this.$search.length&&(this.$search.val(h.term),this.$search.focus()),c.term=h.term),b.call(this,c,d)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);null!=m?(e(m),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",b.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;return d.maximumSelectionLength>0&&f>=d.maximumSelectionLength?void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):void a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("focus",function(){c.isOpen()&&e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=e.showSearch(a);b?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id,h=this.$container.parents().filter(b.hasScroll);h.off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return a(c.data.results)<this.minimumResultsForSearch?!1:b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},a.prototype._handleSelectOnClose=function(a,b){if(b&&null!=b.originalSelect2Event){var c=b.originalSelect2Event;if("select"===c._type||"unselect"===c._type)return}var d=this.getHighlightedResults();if(!(d.length<1)){var e=d.data("data");null!=e.element&&e.element.selected||null==e.element&&e.selected||this.trigger("select",{data:e})}},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){var b=a.minimum-a.input.length,c="Please enter "+b+" or more characters";return c},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.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(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}D.prototype.apply=function(l){if(l=a.extend(!0,{},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(O){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(P){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var Q=k.loadPath(this.defaults.amdLanguageBase+"en"),R=new k(l.language);R.extend(Q),l.translations=R}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)};var E=new D;return E}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.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.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.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."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return 0>=e?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;i>h;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.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)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.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",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e<b.addedNodes.length;e++){var f=b.addedNodes[e];f.selected&&(c=!0)}else b.removedNodes&&b.removedNodes.length>0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){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==a||0===a.length)&&(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.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 a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){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==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.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},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("select2/compat/utils",["jquery"],function(a){function b(b,c,d){var e,f,g=[];e=a.trim(b.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&g.push(this)})),e=a.trim(c.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&(f=d(this),null!=f&&g.push(f))})),b.attr("class",g.join(" "))}return{syncCssClasses:b}}),b.define("select2/compat/containerCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("containerCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptContainerCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("containerCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/dropdownCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("dropdownCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptDropdownCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("dropdownCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/initSelection",["jquery"],function(a){function b(a,b,c){c.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=c.get("initSelection"),this._isInitialized=!1,a.call(this,b,c)}return b.prototype.current=function(b,c){var d=this;return this._isInitialized?void b.call(this,c):void this.initSelection.call(null,this.$element,function(b){d._isInitialized=!0,a.isArray(b)||(b=[b]),c(b)})},b}),b.define("select2/compat/inputData",["jquery"],function(a){function b(a,b,c){this._currentData=[],this._valueSeparator=c.get("valueSeparator")||",","hidden"===b.prop("type")&&c.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),a.call(this,b,c)}return b.prototype.current=function(b,c){function d(b,c){var e=[];return b.selected||-1!==a.inArray(b.id,c)?(b.selected=!0,e.push(b)):b.selected=!1,b.children&&e.push.apply(e,d(b.children,c)),e}for(var e=[],f=0;f<this._currentData.length;f++){var g=this._currentData[f];e.push.apply(e,d(g,this.$element.val().split(this._valueSeparator)))}c(e)},b.prototype.select=function(b,c){if(this.options.get("multiple")){var d=this.$element.val();d+=this._valueSeparator+c.id,this.$element.val(d),this.$element.trigger("change")}else this.current(function(b){a.map(b,function(a){a.selected=!1})}),this.$element.val(c.id),this.$element.trigger("change")},b.prototype.unselect=function(a,b){var c=this;b.selected=!1,this.current(function(a){for(var d=[],e=0;e<a.length;e++){var f=a[e];b.id!=f.id&&d.push(f.id)}c.$element.val(d.join(c._valueSeparator)),c.$element.trigger("change")})},b.prototype.query=function(a,b,c){for(var d=[],e=0;e<this._currentData.length;e++){var f=this._currentData[e],g=this.matches(b,f);null!==g&&d.push(g)}c({results:d})},b.prototype.addOptions=function(b,c){var d=a.map(c,function(b){return a.data(b[0],"data")});this._currentData.push.apply(this._currentData,d)},b}),b.define("select2/compat/matcher",["jquery"],function(a){function b(b){function c(c,d){var e=a.extend(!0,{},d);if(null==c.term||""===a.trim(c.term))return e;if(d.children){for(var f=d.children.length-1;f>=0;f--){var g=d.children[f],h=b(c.term,g.text,g);h||e.children.splice(f,1)}if(e.children.length>0)return e}return b(c.term,d.text,d)?e:null}return c}return b}),b.define("select2/compat/query",[],function(){function a(a,b,c){c.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),a.call(this,b,c)}return a.prototype.query=function(a,b,c){b.callback=c;var d=this.options.get("query");d.call(null,b)},a}),b.define("select2/dropdown/attachContainer",[],function(){function a(a,b,c){a.call(this,b,c)}return a.prototype.position=function(a,b,c){var d=c.find(".dropdown-wrapper");d.append(b),b.addClass("select2-dropdown--below"),c.addClass("select2-container--below")},a}),b.define("select2/dropdown/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c);var d=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(d.join(" "),function(a){a.stopPropagation()})},a}),b.define("select2/selection/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c);var d=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(d.join(" "),function(a){a.stopPropagation()})},a}),function(c){"function"==typeof b.define&&b.define.amd?b.define("jquery-mousewheel",["jquery"],c):"object"==typeof exports?module.exports=c:c(a)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(a,b,c,d){if(null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if(b=b||{},"object"==typeof b)return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("select2");null==c&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c});eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7(n,t){"1A 1B";7 r(n){a[a.A]=n}7 k(n){m t=31 32(" ?\\\\b"+n+"\\\\b");c.19=c.19.29(t,"")}7 p(n,t){C(m i=0,r=n.A;i<r;i++)t.J(n,n[i],i)}7 Y(){m t,e,f,o;c.19=c.19.29(/ (w-|Z-|V-|E-|K-|F-|1C|1a-1C|1D|1a-1D)\\d+/g,"");t=n.2a||c.33;e=n.2b||n.L.1E;u.L.2a=t;u.L.2b=e;r("w-"+t);p(i.2c,7(n){t>n?(i.Q.V&&r("V-"+n),i.Q.E&&r("E-"+n)):t<n?(i.Q.K&&r("K-"+n),i.Q.F&&r("F-"+n)):t===n&&(i.Q.F&&r("F-"+n),i.Q.Z&&r("e-q"+n),i.Q.E&&r("E-"+n))});f=n.2d||c.34;o=n.2e||n.L.1F;u.L.2d=f;u.L.2e=o;u.G("1C",f>t);u.G("1D",f<t)}7 12(){n.1b(b);b=n.14(Y,1G)}m y=n.1H,1c=n.35,1n=n.36,c=y.1I,a=[],i={2c:[37,38,39,3a,3b,3c,3d,3e,3f,3g,3h],Q:{V:!0,E:!1,K:!0,F:!1,Z:!1},1d:[{1o:{2f:6,2g:11}}],R:{V:!0,E:!1,K:!0,F:!1,Z:!0},2h:!0,1J:"-1J",1e:"-1e",M:"M"},v,u,s,w,o,h,l,d,f,g,15,e,b;x(n.S)C(v N n.S)n.S[v]!==t&&(i[v]=n.S[v]);u=n[i.M]=7(){u.16.W(D,1p)};u.G=7(n,t,i){j n?(1K.1L.1M.J(t)==="[1f 2i]"&&(t=t.J()),r((t?"":"1a-")+n),u[n]=!!t,i||(k("1a-"+n),k(n),u.G()),u):(c.19+=" "+a.1g(" "),a=[],u)};u.G("2j",!0);s=1c.3i.1q();w=/2k|1N|3j|3k|3l|3m|(3n .+3o|2l)/.1h(s);u.G("2k",w,!0);u.G("3p",!w,!0);s=/(2m|2n)[ \\/]([\\w.]+)/.17(s)||/(2o|2p|2q)(?:.*1i)?[ \\/]([\\w.]+)/.17(s)||/(1N)(?:.*1i)?[ \\/]([\\w.]+)/.17(s)||/(1r|1O)(?:.*1i)?[ \\/]([\\w.]+)/.17(s)||/(2r) ([\\w.]+)/.17(s)||/(2s).+3q:(\\w.)+/.17(s)||[];o=s[1];h=3r(s[2]);2t(o){z"2r":z"2s":o="1o";h=y.1P||h;1Q;z"2n":o="2u";1Q;z"2q":z"2p":z"2o":o="2v";1Q;z"1r":o="3s"}C(u.1s={P:o,1i:h},u.1s[o]=!0,l=0,d=i.1d.A;l<d;l++)C(f N i.1d[l])x(o===f)C(r(f),g=i.1d[l][f].2f,15=i.1d[l][f].2g,e=g;e<=15;e++)h>e?(i.R.V&&r("V-"+f+e),i.R.E&&r("E-"+f+e)):h<e?(i.R.K&&r("K-"+f+e),i.R.F&&r("F-"+f+e)):h===e&&(i.R.F&&r("F-"+f+e),i.R.Z&&r("Z-"+f+e),i.R.E&&r("E-"+f+e));1j r("1a-"+f);r(o);r(o+3t(h,10));i.2h&&o==="1o"&&h<9&&p("3u|3v|3w|3x|3y|3z|3A|3B|3C|3D|3E|3F|3G|3H|3I|3J|3K|1e|3L|3M|3N".T("|"),7(n){y.1k(n)});p(1n.3O.T("/"),7(n,u){x(1R.A>2&&1R[u+1]!==t)u&&r(1R.1l(u,u+1).1g("-").1q()+i.1e);1j{m f=n||"3P",e=f.2w(".");e>0&&(f=f.2x(0,e));c.3Q=f.1q()+i.1J;u||r("3R"+i.1e)}});u.L={1F:n.L.1F,1E:n.L.1E};Y();b=0;n.18?n.18("3S",12,!1):n.1S("3T",12)})(1T);(7(n,t){"1A 1B";7 a(n){C(m r N n)x(i[n[r]]!==t)j!0;j!1}7 r(n){m t=n.3U(0).3V()+n.3W(1),i=(n+" "+c.1g(t+" ")+t).T(" ");j!!a(i)}m h=n.1H,o=h.1k("i"),i=o.1U,s=" -o- -3X- -2y- -1r- -3Y- ".T(" "),c="3Z 40 O 2y 41".T(" "),l=n.S&&n.S.M||"M",u=n[l],f={1V:7(){m n="1t-42:";j i.1W=(n+s.1g("1V(2z,1X 2A,43 44,45(#46),47(#2B));"+n)+s.1g("2z-1V(1X 2A,#48,#2B);"+n)).1l(0,-n.A),!!i.49},2C:7(){j i.1W="1t-4a:2C(0,0,0,0.5)",!!i.4b},2D:7(){j o.1U.2D===""},4c:7(){j i.4d===""},4e:7(){i.1W="1t:B(1Y://),B(1Y://),4f B(1Y://)";m n=(i.1t||"").4g(/B/g);j 1K.1L.1M.J(n)==="[1f 2E]"&&n.A===3},4h:7(){j r("4i")},4j:7(){j r("4k")},4l:7(){j r("4m")},4n:7(){j r("4o")},4p:7(){j r("4q")},4r:7(){j r("4s")},2l:7(){j"4t"N n},4u:7(){j n.4v>1},4w:7(){m t=u.1s.P,n=u.1s.1i;2t(t){z"1o":j n>=9;z"2m":j n>=13;z"2u":j n>=6;z"2v":j n>=5;z"1N":j!1;z"1r":j n>=5.1;z"1O":j n>=10;4x:j!1}}};C(m e N f)f[e]&&u.G(e,f[e].J(),!0);u.G()})(1T);(7(n,t){"1A 1B";7 w(){}7 u(n,t){x(n){1u n=="1f"&&(n=[].1l.J(n));C(m i=0,r=n.A;i<r;i++)t.J(n,n[i],i)}}7 12(n,i){m r=1K.1L.1M.J(i).1l(8,-1);j i!==t&&i!==D&&r===n}7 s(n){j 12("2i",n)}7 a(n){j 12("2E",n)}7 2F(n){m i=n.T("/"),t=i[i.A-1],r=t.2w("?");j r!==-1?t.2x(0,r):t}7 f(n){(n=n||w,n.2G)||(n(),n.2G=1)}7 2H(n,t,r,u){m f=1u n=="1f"?n:{1h:n,1v:!t?!1:a(t)?t:[t],1w:!r?!1:a(r)?r:[r],1Z:u||w},e=!!f.1h;j e&&!!f.1v?(f.1v.X(f.1Z),i.H.W(D,f.1v)):e||!f.1w?u():(f.1w.X(f.1Z),i.H.W(D,f.1w)),i}7 v(n){m t={},i,r;x(1u n=="1f")C(i N n)!n[i]||(t={P:i,B:n[i]});1j t={P:2F(n),B:n};j(r=c[t.P],r&&r.B===t.B)?r:(c[t.P]=t,t)}7 y(n){n=n||c;C(m t N n)x(n.4y(t)&&n[t].I!==l)j!1;j!0}7 2I(n){n.I=2J;u(n.21,7(n){n.J()})}7 2K(n){n.I===t&&(n.I=15,n.21=[],1c({B:n.B,U:"4z"},7(){2I(n)}))}7 2L(){m n=1p,t=n[n.A-1],r=[].1l.J(n,1),f=r[0];j(s(t)||(t=D),a(n[0]))?(n[0].X(t),i.H.W(D,n[0]),i):(f?(u(r,7(n){s(n)||!n||2K(v(n))}),b(v(n[0]),s(f)?f:7(){i.H.W(D,r)})):b(v(n[0])),i)}7 K(){m n=1p,t=n[n.A-1],r={};j(s(t)||(t=D),a(n[0]))?(n[0].X(t),i.H.W(D,n[0]),i):(u(n,7(n){n!==t&&(n=v(n),r[n.P]=n)}),u(n,7(n){n!==t&&(n=v(n),b(n,7(){y(r)&&f(t)}))}),i)}7 b(n,t){x(t=t||w,n.I===l){t();j}x(n.I===Y){i.16(n.P,t);j}x(n.I===15){n.21.X(7(){b(n,t)});j}n.I=Y;1c(n,7(){n.I=l;t();u(h[n.P],7(n){f(n)});o&&y()&&u(h.1x,7(n){f(n)})})}7 2M(n){n=n||"";m t=n.T("?")[0].T(".");j t[t.A-1].1q()}7 1c(t,i){7 e(t){t=t||n.2N;u.1y=u.1m=u.22=D;i()}7 o(f){f=f||n.2N;(f.U==="H"||/4A|23/.1h(u.24)&&(!r.1P||r.1P<9))&&(n.1b(t.2O),n.1b(t.25),u.1y=u.1m=u.22=D,i())}7 s(){x(t.I!==l&&t.26<=20){C(m i=0,f=r.2P.A;i<f;i++)x(r.2P[i].27===u.27){o({U:"H"});j}t.26++;t.25=n.14(s,4B)}}m u,h,f;i=i||w;h=2M(t.B);h==="2Q"?(u=r.1k("4C"),u.U="2R/"+(t.U||"2Q"),u.4D="4E",u.27=t.B,t.26=0,t.25=n.14(s,4F)):(u=r.1k("28"),u.U="2R/"+(t.U||"4G"),u.4H=t.B);u.1y=u.1m=o;u.22=e;u.2S=!1;u.4I=!1;t.2O=n.14(7(){e({U:"4J"})},4K);f=r.M||r.2T("M")[0];f.4L(u,f.4M)}7 2U(){C(m t,u=r.2T("28"),n=0,f=u.A;n<f;n++)x(t=u[n].4N("4O-4P-H"),!!t){i.H(t);j}}7 2V(n,t){m v,p,e;j n===r?(o?f(t):d.X(t),i):(s(n)&&(t=n,n="1x"),a(n))?(v={},u(n,7(n){v[n]=c[n];i.16(n,7(){y(v)&&f(t)})}),i):1u n!="4Q"||!s(t)?i:(p=c[n],p&&p.I===l||n==="1x"&&y()&&o)?(f(t),i):(e=h[n],e?e.X(t):e=h[n]=[t],i)}7 e(){x(!r.4R){n.1b(i.1z);i.1z=n.14(e,1G);j}o||(o=!0,2U(),u(d,7(n){f(n)}))}7 k(){r.18?(r.4S("2W",k,!1),e()):r.24==="23"&&(r.4T("1m",k),e())}m r=n.1H,d=[],h={},c={},1n="2S"N r.1k("28")||"4U"N r.1I.1U||n.1O,o,g=n.S&&n.S.M||"M",i=n[g]=n[g]||7(){i.16.W(D,1p)},15=1,2J=2,Y=3,l=4,p;x(r.24==="23")e();1j x(r.18)r.18("2W",k,!1),n.18("H",e,!1);1j{r.1S("1m",k);n.1S("1y",e);p=!1;2X{p=!n.4V&&r.1I}2Y(4W){}p&&p.2Z&&7 30(){x(!o){2X{p.2Z("1X")}2Y(t){n.1b(i.1z);i.1z=n.14(30,1G);j}e()}}()}i.H=i.2j=1n?K:2L;i.1h=2H;i.16=2V;i.16(r,7(){y()&&u(h.1x,7(n){f(n)});i.G&&i.G("4X",!0)})})(1T);',62,308,'|||||||function||||||||||||return|||var|||||||||||if||case|length|url|for|null|gte|lte|feature|load|state|call|lt|screen|head|in||name|screensCss|browserCss|head_conf|split|type|gt|apply|push|tt|eq|||it||setTimeout|nt|ready|exec|addEventListener|className|no|clearTimeout|rt|browsers|section|object|join|test|version|else|createElement|slice|onreadystatechange|ut|ie|arguments|toLowerCase|webkit|browser|background|typeof|success|failure|ALL|onload|readyTimeout|use|strict|portrait|landscape|width|height|50|document|documentElement|page|Object|prototype|toString|android|opera|documentMode|break|this|attachEvent|window|style|gradient|cssText|left|https|callback||onpreload|onerror|complete|readyState|cssTimeout|cssRetries|href|script|replace|innerWidth|outerWidth|screens|innerHeight|outerHeight|min|max|html5|Function|js|mobile|touch|chrome|firefox|iphone|ipad|ipod|msie|trident|switch|ff|ios|indexOf|substring|ms|linear|top|fff|rgba|opacity|Array|et|_done|ot|st|ft|ht|ct|at|event|errorTimeout|styleSheets|css|text|async|getElementsByTagName|vt|yt|DOMContentLoaded|try|catch|doScroll|pt|new|RegExp|clientWidth|clientHeight|navigator|location|240|320|480|640|768|800|1024|1280|1440|1680|1920|userAgent|kindle|silk|midp|phone|windows|arm|desktop|rv|parseFloat|safari|parseInt|abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|progress|summary|time|video|pathname|index|id|root|resize|onresize|charAt|toUpperCase|substr|moz|khtml|Webkit|Moz|Khtml|image|right|bottom|from|9f9|to|eee|backgroundImage|color|backgroundColor|textshadow|textShadow|multiplebgs|red|match|boxshadow|boxShadow|borderimage|borderImage|borderradius|borderRadius|cssreflections|boxReflect|csstransforms|transform|csstransitions|transition|ontouchstart|retina|devicePixelRatio|fontface|default|hasOwnProperty|cache|loaded|250|link|rel|stylesheet|500|javascript|src|defer|timeout|7e3|insertBefore|lastChild|getAttribute|data|headjs|string|body|removeEventListener|detachEvent|MozAppearance|frameElement|wt|domloaded'.split('|'),0,{}));function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js'];c=b.join(' ');h.className+=' '+c;return c};css_browser_selector(navigator.userAgent);(function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(8($){9 X={16:\'1h\',3l:\'\',1F:17,4b:1a,26:4c,2l:1y,1o:0,27:0,4d:1a,4e:1a,1z:1a,4f:1a,2z:1a,3m:4c,4g:1a,4h:17,3n:\'4i\',3o:17,2T:50,4j:\'1b-5f\',4k:17,3p:50,4l:17,4m:17,4n:1a,4o:17,2A:17,3q:1a,1w:17,4p:\'5g\',4q:\' / \',3r:1y,2U:1y,28:1y,Y:17,4r:\'5h\',4s:\'5i\',2V:1y,2W:1y,2m:1a,4t:\'5j\',4u:\'5k\',3s:1a,3t:1y,1L:1a,4v:5l,3u:17,2X:\'1l\',2Y:1a,4w:1a,3v:0,4x:1a,1u:1,1k:1,1R:0,1G:0,4y:1a,4z:8(){14 17},4A:8(){14 17},4B:8(){14 17},4C:8(){14 17},4D:8(){14 17},4E:8(){14 17}};$.5m.29=8(g){6(18.1e===0){14 18}6(18.1e>1){18.1N(8(){$(18).29(g)});14 18}9 h={},7=18,3w=$(1S).1v(),3x=$(1S).1T();6($(7).1A(\'29\')){14}9 j=8(){6($(7).1A(\'29\')){14}h.2=$.5n({},X,g);h.2.1G=2a(h.2.1G);h.Z=7.Z(h.2.3l);6(h.Z.1e<h.2.1u){h.2.1u=h.Z.1e}6(h.Z.1e<h.2.1k){h.2.1k=h.Z.1e}6(h.2.4d){h.2.27=1q.3y(1q.5o()*h.Z.1e)}h.12={15:h.2.27};h.2b=h.2.1u>1||h.2.1k>1?17:1a;6(h.2b){h.2.3n=\'4F\'}h.3z=(h.2.1u*h.2.1G)+((h.2.1u-1)*h.2.1o);h.3A=(h.2.1k*h.2.1G)+((h.2.1k-1)*h.2.1o);h.1U=1a;h.Y={};h.22=1y;h.2c=h.2.16===\'1B\'?\'1f\':\'1i\';h.2Z=h.2.4h&&h.2.16!==\'2n\'&&(8(){9 a=30.5p(\'1m\'),31=[\'5q\',\'5r\',\'5s\',\'5t\'];3B(9 i=0;i<31.1e;i++){6(a.2d[31[i]]!==1H){h.2o=31[i].5u(\'5v\',\'\').4G();h.2c=\'-\'+h.2o+\'-2B\';14 17}}14 1a}());6(h.2.16===\'1B\'){h.2.1k=h.2.1u}7.1A(\'2p\',7.1I(\'2d\'));7.Z(h.2.3l).1N(8(){$(18).1A(\'2p\',$(18).1I(\'2d\'))});k()};9 k=8(){9 a=h.Z.1d(h.2.27);7.5w(\'<1m 1r="\'+h.2.4j+\'"><1m 1r="1b-13"></1m></1m>\');h.13=7.4H();6(h.2.4o&&!h.2.1z){h.13.1I(\'2C-5x\',\'5y\')}h.3C=$(\'<1m 1r="1b-5z" />\');h.13.3D(h.3C);7.1c({1v:h.2.16===\'1h\'?(h.Z.1e*4I+5A)+\'%\':\'1L\',19:\'3E\'});6(h.2Z&&h.2.2l){7.1c(\'-\'+h.2o+\'-3F-4J-8\',h.2.2l)}11 6(!h.2.2l){h.2.2l=\'5B\'}h.13.1c({1v:\'4K%\',5C:\'2D\',19:\'3E\'});h.13.4H().1c({5D:o()});h.Z.1c({5E:h.2.16===\'1h\'?\'1i\':\'3G\',5F:\'3G\',19:\'3E\'});h.Z.1c(\'1v\',q());6(h.2.16===\'1h\'&&h.2.1o>0){h.Z.1c(\'5G\',h.2.1o)}6(h.2.16===\'1B\'&&h.2.1o>0){h.Z.1c(\'5H\',h.2.1o)}6(h.2.16===\'2n\'){h.Z.1c({19:\'5I\',2E:0,4L:\'3G\'});h.Z.1d(h.2.27).1c({2E:h.2.2T,4L:\'5J\'})}h.Y.7=$(\'<1m 1r="1b-Y" />\');6(h.2.4e){A()}h.12.1J=h.2.27===s()-1;6(h.2.4g){7.5K()}6(h.2.3n===\'4F\'||h.2.1z){a=h.Z}6(!h.2.1z){6(h.2.Y){y()}6(h.2.1L&&h.2.2m){z()}6(h.2.1w){x()}6(h.2.Y||h.2.2m||h.2.1w){h.13.5L(h.Y.7)}}11{h.2.1w=1a}l(a,m)};9 l=8(a,b){9 c=a.1O(\'3H:3I([4M=""]), 4N\').1e,4O=0;6(c===0){b();14}a.1O(\'3H:3I([4M=""]), 4N\').1N(8(){$(18).5M(\'4P 5N\',8(){6(++4O===c){b()}}).1N(8(){6(18.5O){$(18).5P(\'4P\')}})})};9 m=8(){6(h.2.1F&&h.2.16!==\'2n\'&&!h.2.1z){9 a=h.2.16===\'1B\'?h.2.1u:h.2.1k,3J=h.Z.3K(0,a).1C(17).1s(\'1b-1C\'),3L=h.Z.3K(-a).1C(17).1s(\'1b-1C\');6(h.2.2A){3J.1I(\'2C-2D\',17);3L.1I(\'2C-2D\',17)}7.1D(3J).3D(3L)}h.3C.23();u();6(h.2.16===\'1B\'){h.2.2z=17}h.13.1T(n());7.3M();h.2.4z.2q(7,h.12.15);h.32=17;6(h.2.3o){$(1S).1V(\'4Q\',U)}6(h.2.1L&&h.2.3u&&(s()>1||h.2.4x)){K()}6(h.2.1z){L()}6(h.2.1w){G(h.2.27)}6(h.2.Y){J()}6(h.2.4k&&!h.2.1z){P()}6(h.2.3q&&!h.2.1z){$(30).4R(O)}};9 n=8(){9 b=0;9 c=$();6(h.2.16!==\'1B\'&&!h.2.2z){c=h.Z}11{6(!h.2b){c=h.Z.1d(h.12.15)}11{9 d=h.2.1R===1?h.12.15:h.12.15*t();c=h.Z.1d(d);3B(i=1;i<=h.2.1k-1;i++){6(d+i>=h.Z.1e){c=c.3N(h.Z.1d(i-1))}11{c=c.3N(h.Z.1d(d+i))}}}}6(h.2.16===\'1B\'){c.1N(8(a){b+=$(18).2F()});6(h.2.1o>0){b+=h.2.1o*(h.2.1u-1)}}11{b=1q.5Q.5R(1q,c.5S(8(){14 $(18).2F(1a)}).2e())}6(h.13.1c(\'33-4S\')===\'3O-33\'){b+=2f(h.13.1c(\'2G-1f\'))+2f(h.13.1c(\'2G-2g\'))+2f(h.13.1c(\'3O-1f-1v\'))+2f(h.13.1c(\'3O-2g-1v\'))}11 6(h.13.1c(\'33-4S\')===\'2G-33\'){b+=2f(h.13.1c(\'2G-1f\'))+2f(h.13.1c(\'2G-2g\'))}14 b};9 o=8(){9 a=\'4K%\';6(h.2.1G>0){6(h.2.16===\'1h\'){a=(h.2.1k*h.2.1G)+((h.2.1k-1)*h.2.1o)}11{a=h.2.1G}}14 a};9 q=8(){9 a=h.2.1G,24=h.13.1v();6(h.2.1G===0||(h.2.1G>24&&!h.2b)||h.2.16===\'1B\'){a=24}11 6(h.2.1k>1&&h.2.16===\'1h\'){6(24>h.3A){14 a}11 6(24<h.3z){a=(24-(h.2.1o*(h.2.1u-1)))/h.2.1u}11 6(h.2.4y){a=1q.3y((24+h.2.1o)/(1q.34((24+h.2.1o)/(a+h.2.1o)))-h.2.1o)}}14 a};9 r=8(){9 a=1,3P=1y;6(h.2.16===\'1h\'&&h.2.1G>0){6(h.13.1v()<h.3z){a=h.2.1u}11 6(h.13.1v()>h.3A){a=h.2.1k}11{3P=h.Z.2H().1v()+h.2.1o;a=1q.3y((h.13.1v()+h.2.1o)/3P)}}11 6(h.2.16===\'1B\'){a=h.2.1u}14 a};9 s=8(){9 a=0,3Q=0,3R=0;6(h.2.1R>0){6(h.2.1F){a=1q.34(h.Z.1e/t())}11{5T(3Q<h.Z.1e){++a;3Q=3R+r();3R+=h.2.1R<=r()?h.2.1R:r()}}}11{a=1q.34(h.Z.1e/r())}14 a};9 t=8(){6(h.2.1R>0&&h.2.1R<=r()){14 h.2.1R}14 r()};9 u=8(){9 a,1P,2r;6(h.Z.1e>h.2.1k&&h.12.1J&&!h.2.1F){6(h.2.16===\'1h\'){1P=h.Z.1J();a=1P.19();v(-(a.1i-(h.13.1v()-1P.2s())),\'1j\',0)}11 6(h.2.16===\'1B\'){2r=h.Z.1e-h.2.1u;a=h.Z.1d(2r).19();v(-a.1f,\'1j\',0)}}11{a=h.Z.1d(h.12.15*t()).19();6(h.12.15===s()-1){h.12.1J=17}6(a!==1H){6(h.2.16===\'1h\'){v(-a.1i,\'1j\',0)}11 6(h.2.16===\'1B\'){v(-a.1f,\'1j\',0)}}}};9 v=8(a,b,c,d){9 f,2I;6(h.2Z){2I=h.2.16===\'1B\'?\'4T(0, \'+a+\'4U, 0)\':\'4T(\'+a+\'4U, 0, 0)\';7.1c(\'-\'+h.2o+\'-3F-5U\',c/4I+\'s\');6(b===\'2t\'){7.1c(h.2c,2I);6(c!==0){7.1V(\'35 36 38 3a\',8(e){6(!$(e.4V).4W(7)){14}7.1W(\'35 36 38 3a\');H()})}11{H()}}11 6(b===\'1j\'){7.1c(h.2c,2I)}11 6(b===\'1z\'){7.1c(\'-\'+h.2o+\'-3F-4J-8\',\'4X\');7.1c(h.2c,2I);6(c!==0){7.1V(\'35 36 38 3a\',8(e){6(!$(e.4V).4W(7)){14}7.1W(\'35 36 38 3a\');v(d.2h,\'1j\',0);M()})}11{v(d.2h,\'1j\',0);M()}}}11{f={};f[h.2c]=a;6(b===\'2t\'){7.3b(f,c,h.2.2l,8(){H()})}11 6(b===\'1j\'){7.1c(h.2c,a)}11 6(b===\'1z\'){7.3b(f,c,\'4X\',8(){v(d.2h,\'1j\',0);M()})}}};9 w=8(){9 a=\'\',2J=\'\',4Y=s();3B(9 i=0;i<4Y;i++){2J=\'\';6(h.2.2U&&$.5V(h.2.2U)||h.2.28){2J=h.2.2U(i);h.1E.1s(\'1b-5W-1w\')}11{2J=i+1;h.1E.1s(\'1b-5X-1w\')}a+=\'<1m 1r="1b-1w-3S"><a 2K="" 1A-2t-15="\'+i+\'" 1r="1b-1w-5Y">\'+2J+\'</a></1m>\'}h.1E.2L(a)};9 x=8(){6(!h.2.28){h.1E=$(\'<1m 1r="1b-1w" />\');6(h.2.3r){$(h.2.3r).2L(h.1E)}11{h.Y.7.1s(\'1b-3T-1w\').1D(h.1E)}w()}11{h.1E=$(h.2.28)}h.1E.3c(\'25 2u\',\'a\',F)};9 y=8(){h.Y.1l=$(\'<a 1r="1b-1l" 2K="">\'+h.2.4r+\'</a>\');h.Y.1x=$(\'<a 1r="1b-1x" 2K="">\'+h.2.4s+\'</a>\');h.Y.1l.1V(\'25 2u\',B);h.Y.1x.1V(\'25 2u\',C);6(h.2.2V){$(h.2.2V).1D(h.Y.1l)}6(h.2.2W){$(h.2.2W).1D(h.Y.1x)}6(!h.2.2V&&!h.2.2W){h.Y.3U=$(\'<1m 1r="1b-Y-4Z" />\');h.Y.3U.1D(h.Y.1x).1D(h.Y.1l);h.Y.7.1s(\'1b-3T-Y-4Z\').1D(h.Y.3U)}};9 z=8(){h.Y.1n=$(\'<1m 1r="1b-Y-1L-3S"><a 1r="1b-1n" 2K="">\'+h.2.4t+\'</a></1m>\');h.Y.2i=$(\'<1m 1r="1b-Y-1L-3S"><a 1r="1b-2i" 2K="">\'+h.2.4u+\'</a></1m>\');h.Y.1K=$(\'<1m 1r="1b-Y-1L" />\');h.Y.1K.3c(\'25\',\'.1b-1n\',D);h.Y.1K.3c(\'25\',\'.1b-2i\',E);6(h.2.3s){h.Y.1K.1D(h.Y.1n)}11{h.Y.1K.1D(h.Y.1n).1D(h.Y.2i)}6(h.2.3t){$(h.2.3t).2L(h.Y.1K)}11{h.Y.7.1s(\'1b-3T-Y-1L\').1D(h.Y.1K)}I(h.2.3u?\'2i\':\'1n\')};9 A=8(){h.Z.1N(8(a){9 b=$(18).1O(\'3H:2H\').1I(\'5Z\');6(b!==1H&&(\'\'+b).1e){$(18).1D(\'<1m 1r="1b-51"><52>\'+b+\'</52></1m>\')}})};9 B=8(e){e.1X();6(h.Y.7.3d(\'1p\')){14}6(h.2.1L&&h.2.2Y){7.1Y()}7.2M()};9 C=8(e){e.1X();6(h.Y.7.3d(\'1p\')){14}6(h.2.1L&&h.2.2Y){7.1Y()}7.2N()};9 D=8(e){7.2v();e.1X()};9 E=8(e){7.1Y();e.1X()};9 F=8(e){9 a,3e;e.1X();6(h.Y.7.3d(\'1p\')){14}6(h.2.1L&&h.2.2Y){7.1Y()}a=$(e.60);6(a.1I(\'1A-2t-15\')!==1H){3e=2a(a.1I(\'1A-2t-15\'));6(3e!==h.12.15){7.3f(3e)}}};9 G=8(b){9 c=h.Z.1e;6(h.2.4p===\'61\'){6(h.2.1k>1){c=1q.34(h.Z.1e/h.2.1k)}h.1E.2L((b+1)+h.2.4q+c);14}h.1E.1O(\'a\').1Q(\'12\');h.1E.1N(8(i,a){$(a).1O(\'a\').1d(b).1s(\'12\')})};9 H=8(){6(h.2.1F){9 a=\'\';6(h.12.15===0){a=h.Z.1d(0).19()}11 6(h.12.15===s()-1&&h.2b){a=h.Z.1d((s()-1)*t()).19()}11 6(h.12.15===h.Z.1e-1){a=h.Z.1d(h.Z.1e-1).19()}6(a){6(h.2.16===\'1h\'){v(-a.1i,\'1j\',0)}11 6(h.2.16===\'1B\'){v(-a.1f,\'1j\',0)}}}h.1U=1a;h.2.4B.2q(7,h.Z.1d(h.12.15),h.2j,h.12.15)};9 I=8(a){6(h.2.3s){h.Y.1K.2L(h.Y[a])}11{h.Y.1K.1O(\'a\').1Q(\'12\');h.Y.1K.1O(\'a:3I(.1b-\'+a+\')\').1s(\'12\')}};9 J=8(){6(s()===1){h.Y.1x.1s(\'1p\');h.Y.1l.1s(\'1p\')}11 6(!h.2.1F&&h.2.4b){6(h.12.15===0){h.Y.1x.1s(\'1p\');h.Y.1l.1Q(\'1p\')}11 6(h.12.15===s()-1){h.Y.1l.1s(\'1p\');h.Y.1x.1Q(\'1p\')}11{h.Y.1x.1Q(\'1p\');h.Y.1l.1Q(\'1p\')}}};9 K=8(){6(h.2.3v>0){9 a=53(7.2v,h.2.3v)}11{7.2v();$(1S).62(8(){7.2v()}).63(8(){7.1Y()})}6(h.2.4w){7.3V(8(){6(h.22){7.1Y(17);h.3W=17}},8(){6(h.3W){7.2v(17);h.3W=1y}})}};9 L=8(){9 b=0,19,2B,1t,3X,2O,3g,2P,1Z;6(h.2.2X===\'1l\'){7.1D(h.Z.1C().1s(\'1b-1C\'))}11{7.3D(h.Z.1C().1s(\'1b-1C\'));19=h.Z.2H().19();b=h.2.16===\'1h\'?-19.1i:-19.1f}v(b,\'1j\',0);h.2.1w=1a;h.2.Y=1a;h.2.2m=1a;6(h.2.4f){6(h.2Z){3X=h.2.16===\'1h\'?4:5;h.13.3V(8(){2B=7.1c(\'-\'+h.2o+\'-2B\');1t=2f(2B.64(\',\')[3X]);v(1t,\'1j\',0)},8(){1Z=0;h.Z.1N(8(a){1Z+=h.2.16===\'1h\'?$(18).2s(17):$(18).2F(17)});2O=h.2.26/1Z;3g=h.2.16===\'1h\'?\'1i\':\'1f\';2P=2O*(1Z-(1q.2w(2a(1t))));M(2P)})}11{h.13.3V(8(){7.2i()},8(){1Z=0;h.Z.1N(8(a){1Z+=h.2.16===\'1h\'?$(18).2s(17):$(18).2F(17)});2O=h.2.26/1Z;3g=h.2.16===\'1h\'?\'1i\':\'1f\';2P=2O*(1Z-(1q.2w(2a(7.1c(3g)))));M(2P)})}}M()};9 M=8(a){9 b=a?a:h.2.26,19={1i:0,1f:0},1j={1i:0,1f:0},3Y,2h,3Z;6(h.2.2X===\'1l\'){19=7.1O(\'.1b-1C\').2H().19()}11{1j=h.Z.2H().19()}3Y=h.2.16===\'1h\'?-19.1i:-19.1f;2h=h.2.16===\'1h\'?-1j.1i:-1j.1f;3Z={2h:2h};v(3Y,\'1z\',b,3Z)};9 N=8(a){9 b=$(1S),13={1f:b.65(),1i:b.66()},20=a.67();13.3h=13.1i+b.1v();13.2g=13.1f+b.1T();20.3h=20.1i+a.2s();20.2g=20.1f+a.2F();14(!(13.3h<20.1i||13.1i>20.3h||13.2g<20.1f||13.1f>20.2g))};9 O=8(e){9 a=30.68.69.4G(),54=\'6a|6b\',p=6c 6d(a,[\'i\']),55=p.6e(54);6(55==1y&&N(7)){6(e.56===39){B(e);14 1a}11 6(e.56===37){C(e);14 1a}}};9 P=8(){h.1g={1n:{x:0,y:0},2k:{x:0,y:0}};h.13.1V(\'6f 6g 6h\',Q);h.13.3c(\'25\',\'.6i a\',8(e){6(h.13.3d(\'25-1p\')){e.1X();h.13.1Q(\'25-1p\')}})};9 Q=8(e){h.Y.7.1s(\'1p\');6(h.1U){e.1X();h.Y.7.1Q(\'1p\')}11{h.1g.2x=7.19();9 a=e.40,1M=(2Q a.2y!==\'1H\')?a.2y:[a];h.1g.1n.x=1M[0].3i;h.1g.1n.y=1M[0].3j;6(h.13.2e(0).57){h.2R=a.2R;h.13.2e(0).57(h.2R)}h.13.1V(\'41 42 43\',S);h.13.1V(\'2u 44 45\',T);h.13.1V(\'58 59\',R)}};9 R=8(e){v(h.1g.2x.1i,\'1j\',0);h.Y.7.1Q(\'1p\');h.13.1W(\'58 59\',R);h.13.1W(\'41 42 43\',S);h.13.1W(\'2u 44 45\',T);6(h.13.2e(0).3k){h.13.2e(0).3k(h.2R)}};9 S=8(e){9 a=e.40,1M=(2Q a.2y!==\'1H\')?a.2y:[a],46=1q.2w(1M[0].3i-h.1g.1n.x),47=1q.2w(1M[0].3j-h.1g.1n.y),1t=0,2S=0;6((46*3)>47&&h.2.4m){e.1X()}11 6((47*3)>46&&h.2.4n){e.1X()}6(h.2.16!==\'2n\'&&h.2.4l){6(h.2.16===\'1h\'){2S=1M[0].3i-h.1g.1n.x;1t=h.1g.2x.1i+2S}11{2S=1M[0].3j-h.1g.1n.y;1t=h.1g.2x.1f+2S}v(1t,\'1j\',0)}};9 T=8(e){h.13.1W(\'41 42 43\',S);h.Y.7.1Q(\'1p\');9 a=e.40,1M=(2Q a.2y!==\'1H\')?a.2y:[a],1t=0,21=0;h.1g.2k.x=1M[0].3i;h.1g.2k.y=1M[0].3j;6(h.2.16===\'2n\'){21=1q.2w(h.1g.1n.x-h.1g.2k.x);6(21>=h.2.3p){6(h.1g.1n.x>h.1g.2k.x){7.2M()}11{7.2N()}7.1Y()}}11{6(h.2.16===\'1h\'){21=h.1g.2k.x-h.1g.1n.x;1t=h.1g.2x.1i}11{21=h.1g.2k.y-h.1g.1n.y;1t=h.1g.2x.1f}6(!h.2.1F&&((h.12.15===0&&21>0)||(h.12.1J&&21<0))){v(1t,\'1j\',5a)}11{6(1q.2w(21)>=h.2.3p){6(21<0){7.2M()}11{7.2N()}7.1Y()}11{v(1t,\'1j\',5a)}}}h.13.1W(\'2u 44 45\',T);6(h.13.2e(0).3k){h.13.2e(0).3k(h.2R)}};9 U=8(e){6(!h.32){14}6(h.1U){1S.53(U,10)}11{9 a=$(1S).1v(),48=$(1S).1T();6(3w!==a||3x!==48){3w=a;3x=48;7.3M();h.2.4E.2q(7,h.12.15)}}};9 V=8(a){9 b=r();6(h.2.2A&&!h.2.1z){h.Z.1I(\'2C-2D\',\'17\');h.Z.3K(a,a+b).1I(\'2C-2D\',\'1a\')}};9 W=8(a){6(a<0){6(h.2.1F){14 s()-1}11{14 h.12.15}}11 6(a>=s()){6(h.2.1F){14 0}11{14 h.12.15}}11{14 a}};7.3f=8(a,b){9 c=17,49=0,19={1i:0,1f:0},1P=1y,2r,1d,1t,4a;h.2j=h.12.15;h.12.15=W(a);6(h.1U||h.12.15===h.2j){14}h.1U=17;c=h.2.4A.2q(7,h.Z.1d(h.12.15),h.2j,h.12.15);6(2Q(c)!==\'1H\'&&!c){h.12.15=h.2j;h.1U=1a;14}6(b===\'1l\'){6(!h.2.4C.2q(7,h.Z.1d(h.12.15),h.2j,h.12.15)){c=1a}}11 6(b===\'1x\'){6(!h.2.4D.2q(7,h.Z.1d(h.12.15),h.2j,h.12.15)){c=1a}}h.12.1J=h.12.15>=s()-1;6(h.2.1w||h.2.28){G(h.12.15)}6(h.2.Y){J()}6(h.2.16===\'2n\'){6(h.2.2z&&h.13.1T()!==n()){h.13.3b({1T:n()},h.2.3m)}h.Z.6j(\':4i\').6k(h.2.26).1c({2E:0});h.Z.1d(h.12.15).1c(\'2E\',h.2.2T+1).6l(h.2.26,8(){$(18).1c(\'2E\',h.2.2T);H()})}11{6(h.2.2z&&h.13.1T()!==n()){h.13.3b({1T:n()},h.2.3m)}6(!h.2.1F&&h.2b&&h.12.1J){6(h.2.16===\'1h\'){1P=h.Z.1d(h.Z.1e-1);19=1P.19();49=h.13.1v()-1P.2s()}11{2r=h.Z.1e-h.2.1u;19=h.Z.1d(2r).19()}}11 6(h.2b&&h.12.1J&&b===\'1x\'){1d=h.2.1R===1?h.2.1k-t():((s()-1)*t())-(h.Z.1e-h.2.1k);1P=7.Z(\'.1b-1C\').1d(1d);19=1P.19()}11 6(b===\'1l\'&&h.12.15===0){19=7.1O(\'> .1b-1C\').1d(h.2.1k).19();h.12.1J=1a}11 6(a>=0){4a=a*2a(t());19=h.Z.1d(4a).19()}6(2Q(19)!==\'1H\'){1t=h.2.16===\'1h\'?-(19.1i-49):-19.1f;v(1t,\'2t\',h.2.26)}11{h.1U=1a}}6(h.2.2A){V(h.12.15*t())}};7.2M=8(){6(!h.2.1F&&h.12.1J){14}9 a=2a(h.12.15)+1;7.3f(a,\'1l\')};7.2N=8(){6(!h.2.1F&&h.12.15===0){14}9 a=2a(h.12.15)-1;7.3f(a,\'1x\')};7.2v=8(a){6(h.22){14}h.22=6m(8(){6(h.2.2X===\'1l\'){7.2M()}11{7.2N()}},h.2.4v);6(h.2.2m&&a!==17){I(\'2i\')}};7.1Y=8(a){6(!h.22){14}5b(h.22);h.22=1y;6(h.2.2m&&a!==17){I(\'1n\')}};7.6n=8(){14 h.12.15};7.6o=8(){14 h.Z.1d(h.12.15)};7.6p=8(a){14 h.Z.1d(a)};7.6q=8(){14 h.Z.1e};7.6r=8(){14 h.1U};7.3M=8(){h.Z.3N(7.1O(\'.1b-1C\')).2s(q());h.13.1c(\'1T\',n());6(!h.2.1z){u()}6(h.12.1J){h.12.15=s()-1}6(h.12.15>=s()){h.12.1J=17}6(h.2.1w&&!h.2.28){w();G(h.12.15)}6(h.2.2A){V(h.12.15*t())}};7.5c=8(){6(!h.32){14}h.32=1a;$(\'.1b-1C\',18).23();h.Z.1N(8(){6($(18).1A(\'2p\')!==1H){$(18).1I(\'2d\',$(18).1A(\'2p\'))}11{$(18).5d(\'2d\')}});6($(18).1A(\'2p\')!==1H){18.1I(\'2d\',$(18).1A(\'2p\'))}11{$(18).5d(\'2d\')}$(18).5e().5e();6(h.Y.7){h.Y.7.23()}6(h.Y.1l){h.Y.1l.23()}6(h.Y.1x){h.Y.1x.23()}6(h.1E&&h.2.Y&&!h.2.28){h.1E.23()}$(\'.1b-51\',18).23();6(h.Y.1K){h.Y.1K.23()}5b(h.22);6(h.2.3o){$(1S).1W(\'4Q\',U)}6(h.2.3q){$(30).1W(\'4R\',O)}$(18).6s(\'29\')};7.6t=8(a){6(a!==1H){g=a}7.5c();j();$(7).1A(\'29\',18)};j();$(7).1A(\'29\',18);14 18}})(6u);',62,403,'||settings||||if|el|function|var|||||||||||||||||||||||||||||||||||||||||||||||||||controls|children||else|active|viewport|return|index|mode|true|this|position|false|bx|css|eq|length|top|touch|horizontal|left|reset|maxSlides|next|div|start|slideMargin|disabled|Math|class|addClass|value|minSlides|width|pager|prev|null|ticker|data|vertical|clone|append|pagerEl|infiniteLoop|slideWidth|undefined|attr|last|autoEl|auto|touchPoints|each|find|lastChild|removeClass|moveSlides|window|height|working|bind|unbind|preventDefault|stopAuto|totalDimens|bounds|distance|interval|remove|wrapWidth|click|speed|startSlide|pagerCustom|bxSlider|parseInt|carousel|animProp|style|get|parseFloat|bottom|resetValue|stop|oldIndex|end|easing|autoControls|fade|cssPrefix|origStyle|call|lastShowingIndex|outerWidth|slide|touchend|startAuto|abs|originalPos|changedTouches|adaptiveHeight|ariaHidden|transform|aria|hidden|zIndex|outerHeight|padding|first|propValue|linkContent|href|html|goToNextSlide|goToPrevSlide|ratio|newSpeed|typeof|pointerId|change|slideZIndex|buildPager|nextSelector|prevSelector|autoDirection|stopAutoOnClick|usingCSS|document|props|initialized|box|ceil|transitionend|webkitTransitionEnd||oTransitionEnd||MSTransitionEnd|animate|on|hasClass|pagerIndex|goToSlide|property|right|pageX|pageY|releasePointerCapture|slideSelector|adaptiveHeightSpeed|preloadImages|responsive|swipeThreshold|keyboardEnabled|pagerSelector|autoControlsCombine|autoControlsSelector|autoStart|autoDelay|windowWidth|windowHeight|floor|minThreshold|maxThreshold|for|loader|prepend|relative|transition|none|img|not|sliceAppend|slice|slicePrepend|redrawSlider|add|border|childWidth|breakPoint|counter|item|has|directionEl|hover|autoPaused|idx|animateProperty|params|originalEvent|touchmove|MSPointerMove|pointermove|MSPointerUp|pointerup|xMovement|yMovement|windowHeightNew|moveBy|requestEl|hideControlOnEnd|500|randomStart|captions|tickerHover|video|useCSS|visible|wrapperClass|touchEnabled|oneToOneTouch|preventDefaultSwipeX|preventDefaultSwipeY|ariaLive|pagerType|pagerShortSeparator|nextText|prevText|startText|stopText|pause|autoHover|autoSlideForOnePage|shrinkItems|onSliderLoad|onSlideBefore|onSlideAfter|onSlideNext|onSlidePrev|onSliderResize|all|toLowerCase|parent|1000|timing|100|display|src|iframe|count|load|resize|keydown|sizing|translate3d|px|target|is|linear|pagerQty|direction||caption|span|setTimeout|tagFilters|result|keyCode|setPointerCapture|MSPointerCancel|pointercancel|200|clearInterval|destroySlider|removeAttr|unwrap|wrapper|full|Next|Prev|Start|Stop|4000|fn|extend|random|createElement|WebkitPerspective|MozPerspective|OPerspective|msPerspective|replace|Perspective|wrap|live|polite|loading|215|swing|overflow|maxWidth|float|listStyle|marginRight|marginBottom|absolute|block|fitVids|after|one|error|complete|trigger|max|apply|map|while|duration|isFunction|custom|default|link|title|currentTarget|short|focus|blur|split|scrollTop|scrollLeft|offset|activeElement|tagName|input|textarea|new|RegExp|exec|touchstart|MSPointerDown|pointerdown|bxslider|filter|fadeOut|fadeIn|setInterval|getCurrentSlide|getCurrentSlideElement|getSlideElement|getSlideCount|isWorking|removeData|reloadSlider|jQuery'.split('|'),0,{}));!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,o);n=void 0===n?l:n}),void 0!==n?n:t}function h(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=n.call(arguments,1);return u(this,t,e)}return h(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var s=i[n],r=o&&o[s];r&&(this.off(t,s),delete o[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<h;e++){var i=u[e];t[i]=0}return t}function o(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function n(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);r=200==Math.round(t(n.width)),s.isBoxSizeOuter=r,i.removeChild(e)}}function s(e){if(n(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=o(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==s.boxSizing,l=0;l<h;l++){var f=u[l],c=s[f],m=parseFloat(c);a[f]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,y=a.paddingTop+a.paddingBottom,g=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,I=d&&r,x=t(s.width);x!==!1&&(a.width=x+(I?0:p+_));var S=t(s.height);return S!==!1&&(a.height=S+(I?0:y+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(y+z),a.outerWidth=a.width+g,a.outerHeight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i],n=o+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var o=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?o.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,o){t=i.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!o)return void n.push(t);e(t,o)&&n.push(t);for(var i=t.querySelectorAll(o),s=0;s<i.length;s++)n.push(i[s])}}),n},i.debounceMethod=function(t,e,i){i=i||100;var o=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];clearTimeout(t);var e=arguments,s=this;this[n]=setTimeout(function(){o.apply(s,e),delete s[n]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var s=i.toDashed(o),r="data-"+s,a=document.querySelectorAll("["+r+"]"),u=document.querySelectorAll(".js-"+s),h=i.makeArray(a).concat(i.makeArray(u)),d=r+"-options",l=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+a))}var u=new e(t,i);l&&l.data(t,o,u)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function o(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function n(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],h={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},d=o.prototype=Object.create(t.prototype);d.constructor=o,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var o=h[i]||i;e[o]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=t[e?"left":"right"],n=t[i?"top":"bottom"],s=parseFloat(o),r=parseFloat(n),a=this.layout.size;o.indexOf("%")!=-1&&(s=s/100*a.width),n.indexOf("%")!=-1&&(r=r/100*a.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=r},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[n];e[s]=this.getXValue(a),e[r]="";var u=o?"paddingTop":"paddingBottom",h=o?"top":"bottom",d=o?"bottom":"top",l=this.position.y+t[u];e[h]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),n&&!this.isTransitioning)return void this.layoutPosition();var s=t-i,r=e-o,a={};a.transform=this.getTranslate(s,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop");return t=i?t:-t,e=o?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var o=this.element.offsetHeight;o=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+n(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,o=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[o],i(e.ingProperties)&&this.disableTransition(),o in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[o]),o in e.onEnd){var n=e.onEnd[o];n.call(this),delete e.onEnd[o]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(c)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,o,n,s){return e(t,i,o,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,o,n){"use strict";function s(t,e){var i=o.getQueryElement(t);if(!i)return void(u&&u.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,h&&(this.$element=h(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++l;this.element.outlayerGUID=n,f[n]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],o=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var n=m[o]||1;return i*n}var u=t.console,h=t.jQuery,d=function(){},l=0,f={};s.namespace="outlayer",s.Item=n,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var c=s.prototype;o.extend(c,e.prototype),c.option=function(t){o.extend(this.options,t)},c._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},c._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},c.reloadItems=function(){this.items=this._itemize(this.element.children)},c._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0;n<e.length;n++){var s=e[n],r=new i(s,this);o.push(r)}return o},c._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},c.getItemElements=function(){return this.items.map(function(t){return t.element})},c.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},c._init=c.layout,c._resetLayout=function(){this.getSize()},c.getSize=function(){this.size=i(this.element)},c._getMeasurement=function(t,e){var o,n=this.options[t];n?("string"==typeof n?o=this.element.querySelector(n):n instanceof HTMLElement&&(o=n),this[t]=o?i(o)[e]:n):this[t]=0},c.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},c._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},c._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var o=this._getItemLayoutPosition(t);o.item=t,o.isInstant=e||t.isLayoutInstant,i.push(o)},this),this._processLayoutQueue(i)}},c._getItemLayoutPosition=function(){return{x:0,y:0}},c._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},c.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},c._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},c._postLayout=function(){this.resizeContainer()},c.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},c._getContainerSize=d,c._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},c._emitCompleteOnItems=function(t,e){function i(){n.dispatchEvent(t+"Complete",null,[e])}function o(){r++,r==s&&i()}var n=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,o)})},c.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),h)if(this.$element=this.$element||h(this.element),e){var n=h.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},c.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},c.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},c.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},c.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){o.removeFrom(this.stamps,t),this.unignore(t)},this)},c._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)},c._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},c._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},c._manageStamp=d,c._getElementOffset=function(t){var e=t.getBoundingClientRect(),o=this._boundingRect,n=i(t),s={left:e.left-o.left-n.marginLeft,top:e.top-o.top-n.marginTop,right:o.right-e.right-n.marginRight,bottom:o.bottom-e.bottom-n.marginBottom};return s},c.handleEvent=o.handleEvent,c.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},c.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},c.onresize=function(){this.resize()},o.debounceMethod(s,"onresize",100),c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},c.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},c.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},c.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},c.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},c.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},c.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},c.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},c.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},c.getItems=function(t){t=o.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},c.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),o.removeFrom(this.items,t)},this)},c.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete f[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=o.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},s.create=function(t,e){var i=r(s);return i.defaults=o.extend({},s.defaults),o.extend(i.defaults,e),i.compatOptions=o.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=r(n),o.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i};var m={ms:1,s:1e3};return s.Item=n,s}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),o=i._create;i._create=function(){this.id=this.layout.itemGUID++,o.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=i.prototype,n=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return n.forEach(function(t){o[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},o.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function n(){i.apply(this,arguments)}return n.prototype=Object.create(o),n.prototype.constructor=n,e&&(n.options=e),n.prototype.namespace=t,i.modes[t]=n,n},i}),function(t,e){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var o=i.prototype;return o._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},o.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var o=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,s=n/o,r=o-n%o,a=r&&r<1?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},o.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,o=e(i);this.containerWidth=o&&o.innerWidth},o._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",o=Math[i](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var n=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",s=this[n](o,t),r={x:this.columnWidth*s.col,y:s.y},a=s.y+t.size.outerHeight,u=o+s.col,h=s.col;h<u;h++)this.colYs[h]=a;return r},o._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},o._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++)e[o]=this._getColGroupY(o,t);return e},o._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},o._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,o=t>1&&i+t>this.cols;i=o?0:i;var n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},o._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this._getOption("originLeft"),s=n?o.left:o.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var u=Math.floor(r/this.columnWidth);u-=r%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var h=this._getOption("originTop"),d=(h?o.top:o.bottom)+i.outerHeight,l=a;l<=u;l++)this.colYs[l]=Math.max(d,this.colYs[l])},o._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},o._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},o.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)n[s]||(o[s]=e.prototype[s]);var r=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(i,o,n,s,r,a){return e(t,i,o,n,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,o,n,s,r){function a(t,e){return function(i,o){for(var n=0;n<t.length;n++){var s=t[n],r=i.sortData[s],a=o.sortData[s];if(r>a||r<a){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=s,d.LayoutMode=r;var l=d.prototype;l._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var o=t[i];o.id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},l._bindArrangeComplete=function(){function t(){e&&i&&o&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}var e,i,o,n=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){o=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var u=s(a);u&&i.push(a),u&&a.isHidden?o.push(a):u||a.isHidden||n.push(a)}}return{matches:i,needReveal:o,needHide:n}},l._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return o(e.element,t)}},l.updateSortData=function(t){var e;t?(t=n.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var o=t[i];o.updateSortData()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),o=i[0],n=o.match(/^\[(.+)\]$/),s=n&&n[1],r=e(s,o),a=d.sortDataParsers[i[1]];return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=n.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=a(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;i<n;i++)o=e[i],this.element.appendChild(o.element);var s=this._filter(e).matches;for(i=0;i<n;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<n;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var c=l.remove;return l.remove=function(t){t=n.makeArray(t);var e=this.getItems(t);c.call(this,t);for(var i=e&&e.length,o=0;i&&o<i;o++){var s=e[o];n.removeFrom(this.filteredItems,s)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var o=t.apply(this,e);return this.options.transitionDuration=i,o},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d});!function(a){"use strict";function b(a){return(a||"").toLowerCase()}var c="2.1.6";a.fn.cycle=function(c){var d;return 0!==this.length||a.isReady?this.each(function(){var d,e,f,g,h=a(this),i=a.fn.cycle.log;if(!h.data("cycle.opts")){(h.data("cycle-log")===!1||c&&c.log===!1||e&&e.log===!1)&&(i=a.noop),i("--c2 init--"),d=h.data();for(var j in d)d.hasOwnProperty(j)&&/^cycle[A-Z]+/.test(j)&&(g=d[j],f=j.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),i(f+":",g,"("+typeof g+")"),d[f]=g);e=a.extend({},a.fn.cycle.defaults,d,c||{}),e.timeoutId=0,e.paused=e.paused||!1,e.container=h,e._maxZ=e.maxZ,e.API=a.extend({_container:h},a.fn.cycle.API),e.API.log=i,e.API.trigger=function(a,b){return e.container.trigger(a,b),e.API},h.data("cycle.opts",e),h.data("cycle.API",e.API),e.API.trigger("cycle-bootstrap",[e,e.API]),e.API.addInitialSlides(),e.API.preInitSlideshow(),e.slides.length&&e.API.initSlideshow()}}):(d={s:this.selector,c:this.context},a.fn.cycle.log("requeuing slideshow (dom not ready)"),a(function(){a(d.s,d.c).cycle(c)}),this)},a.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var b=this.opts(),c=b.slides;b.slideCount=0,b.slides=a(),c=c.jquery?c:b.container.find(c),b.random&&c.sort(function(){return Math.random()-.5}),b.API.add(c)},preInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-pre-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.preInit)&&c.preInit(b),b._preInitialized=!0},postInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-post-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.postInit)&&c.postInit(b)},initSlideshow:function(){var b,c=this.opts(),d=c.container;c.API.calcFirstSlide(),"static"==c.container.css("position")&&c.container.css("position","relative"),a(c.slides[c.currSlide]).css({opacity:1,display:"block",visibility:"visible"}),c.API.stackSlides(c.slides[c.currSlide],c.slides[c.nextSlide],!c.reverse),c.pauseOnHover&&(c.pauseOnHover!==!0&&(d=a(c.pauseOnHover)),d.hover(function(){c.API.pause(!0)},function(){c.API.resume(!0)})),c.timeout&&(b=c.API.getSlideOpts(c.currSlide),c.API.queueTransition(b,b.timeout+c.delay)),c._initialized=!0,c.API.updateView(!0),c.API.trigger("cycle-initialized",[c]),c.API.postInitSlideshow()},pause:function(b){var c=this.opts(),d=c.API.getSlideOpts(),e=c.hoverPaused||c.paused;b?c.hoverPaused=!0:c.paused=!0,e||(c.container.addClass("cycle-paused"),c.API.trigger("cycle-paused",[c]).log("cycle-paused"),d.timeout&&(clearTimeout(c.timeoutId),c.timeoutId=0,c._remainingTimeout-=a.now()-c._lastQueue,(c._remainingTimeout<0||isNaN(c._remainingTimeout))&&(c._remainingTimeout=void 0)))},resume:function(a){var b=this.opts(),c=!b.hoverPaused&&!b.paused;a?b.hoverPaused=!1:b.paused=!1,c||(b.container.removeClass("cycle-paused"),0===b.slides.filter(":animated").length&&b.API.queueTransition(b.API.getSlideOpts(),b._remainingTimeout),b.API.trigger("cycle-resumed",[b,b._remainingTimeout]).log("cycle-resumed"))},add:function(b,c){var d,e=this.opts(),f=e.slideCount,g=!1;"string"==a.type(b)&&(b=a.trim(b)),a(b).each(function(){var b,d=a(this);c?e.container.prepend(d):e.container.append(d),e.slideCount++,b=e.API.buildSlideOpts(d),e.slides=c?a(d).add(e.slides):e.slides.add(d),e.API.initSlide(b,d,--e._maxZ),d.data("cycle.opts",b),e.API.trigger("cycle-slide-added",[e,b,d])}),e.API.updateView(!0),g=e._preInitialized&&2>f&&e.slideCount>=1,g&&(e._initialized?e.timeout&&(d=e.slides.length,e.nextSlide=e.reverse?d-1:1,e.timeoutId||e.API.queueTransition(e)):e.API.initSlideshow())},calcFirstSlide:function(){var a,b=this.opts();a=parseInt(b.startingSlide||0,10),(a>=b.slides.length||0>a)&&(a=0),b.currSlide=a,b.reverse?(b.nextSlide=a-1,b.nextSlide<0&&(b.nextSlide=b.slides.length-1)):(b.nextSlide=a+1,b.nextSlide==b.slides.length&&(b.nextSlide=0))},calcNextSlide:function(){var a,b=this.opts();b.reverse?(a=b.nextSlide-1<0,b.nextSlide=a?b.slideCount-1:b.nextSlide-1,b.currSlide=a?0:b.nextSlide+1):(a=b.nextSlide+1==b.slides.length,b.nextSlide=a?0:b.nextSlide+1,b.currSlide=a?b.slides.length-1:b.nextSlide-1)},calcTx:function(b,c){var d,e=b;return e._tempFx?d=a.fn.cycle.transitions[e._tempFx]:c&&e.manualFx&&(d=a.fn.cycle.transitions[e.manualFx]),d||(d=a.fn.cycle.transitions[e.fx]),e._tempFx=null,this.opts()._tempFx=null,d||(d=a.fn.cycle.transitions.fade,e.API.log('Transition "'+e.fx+'" not found.  Using fade.')),d},prepareTx:function(a,b){var c,d,e,f,g,h=this.opts();return h.slideCount<2?void(h.timeoutId=0):(!a||h.busy&&!h.manualTrump||(h.API.stopTransition(),h.busy=!1,clearTimeout(h.timeoutId),h.timeoutId=0),void(h.busy||(0!==h.timeoutId||a)&&(d=h.slides[h.currSlide],e=h.slides[h.nextSlide],f=h.API.getSlideOpts(h.nextSlide),g=h.API.calcTx(f,a),h._tx=g,a&&void 0!==f.manualSpeed&&(f.speed=f.manualSpeed),h.nextSlide!=h.currSlide&&(a||!h.paused&&!h.hoverPaused&&h.timeout)?(h.API.trigger("cycle-before",[f,d,e,b]),g.before&&g.before(f,d,e,b),c=function(){h.busy=!1,h.container.data("cycle.opts")&&(g.after&&g.after(f,d,e,b),h.API.trigger("cycle-after",[f,d,e,b]),h.API.queueTransition(f),h.API.updateView(!0))},h.busy=!0,g.transition?g.transition(f,d,e,b,c):h.API.doTransition(f,d,e,b,c),h.API.calcNextSlide(),h.API.updateView()):h.API.queueTransition(f))))},doTransition:function(b,c,d,e,f){var g=b,h=a(c),i=a(d),j=function(){i.animate(g.animIn||{opacity:1},g.speed,g.easeIn||g.easing,f)};i.css(g.cssBefore||{}),h.animate(g.animOut||{},g.speed,g.easeOut||g.easing,function(){h.css(g.cssAfter||{}),g.sync||j()}),g.sync&&j()},queueTransition:function(b,c){var d=this.opts(),e=void 0!==c?c:b.timeout;return 0===d.nextSlide&&0===--d.loop?(d.API.log("terminating; loop=0"),d.timeout=0,e?setTimeout(function(){d.API.trigger("cycle-finished",[d])},e):d.API.trigger("cycle-finished",[d]),void(d.nextSlide=d.currSlide)):void 0!==d.continueAuto&&(d.continueAuto===!1||a.isFunction(d.continueAuto)&&d.continueAuto()===!1)?(d.API.log("terminating automatic transitions"),d.timeout=0,void(d.timeoutId&&clearTimeout(d.timeoutId))):void(e&&(d._lastQueue=a.now(),void 0===c&&(d._remainingTimeout=b.timeout),d.paused||d.hoverPaused||(d.timeoutId=setTimeout(function(){d.API.prepareTx(!1,!d.reverse)},e))))},stopTransition:function(){var a=this.opts();a.slides.filter(":animated").length&&(a.slides.stop(!1,!0),a.API.trigger("cycle-transition-stopped",[a])),a._tx&&a._tx.stopTransition&&a._tx.stopTransition(a)},advanceSlide:function(a){var b=this.opts();return clearTimeout(b.timeoutId),b.timeoutId=0,b.nextSlide=b.currSlide+a,b.nextSlide<0?b.nextSlide=b.slides.length-1:b.nextSlide>=b.slides.length&&(b.nextSlide=0),b.API.prepareTx(!0,a>=0),!1},buildSlideOpts:function(c){var d,e,f=this.opts(),g=c.data()||{};for(var h in g)g.hasOwnProperty(h)&&/^cycle[A-Z]+/.test(h)&&(d=g[h],e=h.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),f.API.log("["+(f.slideCount-1)+"]",e+":",d,"("+typeof d+")"),g[e]=d);g=a.extend({},a.fn.cycle.defaults,f,g),g.slideNum=f.slideCount;try{delete g.API,delete g.slideCount,delete g.currSlide,delete g.nextSlide,delete g.slides}catch(i){}return g},getSlideOpts:function(b){var c=this.opts();void 0===b&&(b=c.currSlide);var d=c.slides[b],e=a(d).data("cycle.opts");return a.extend({},c,e)},initSlide:function(b,c,d){var e=this.opts();c.css(b.slideCss||{}),d>0&&c.css("zIndex",d),isNaN(b.speed)&&(b.speed=a.fx.speeds[b.speed]||a.fx.speeds._default),b.sync||(b.speed=b.speed/2),c.addClass(e.slideClass)},updateView:function(a,b){var c=this.opts();if(c._initialized){var d=c.API.getSlideOpts(),e=c.slides[c.currSlide];!a&&b!==!0&&(c.API.trigger("cycle-update-view-before",[c,d,e]),c.updateView<0)||(c.slideActiveClass&&c.slides.removeClass(c.slideActiveClass).eq(c.currSlide).addClass(c.slideActiveClass),a&&c.hideNonActive&&c.slides.filter(":not(."+c.slideActiveClass+")").css("visibility","hidden"),0===c.updateView&&setTimeout(function(){c.API.trigger("cycle-update-view",[c,d,e,a])},d.speed/(c.sync?2:1)),0!==c.updateView&&c.API.trigger("cycle-update-view",[c,d,e,a]),a&&c.API.trigger("cycle-update-view-after",[c,d,e]))}},getComponent:function(b){var c=this.opts(),d=c[b];return"string"==typeof d?/^\s*[\>|\+|~]/.test(d)?c.container.find(d):a(d):d.jquery?d:a(d)},stackSlides:function(b,c,d){var e=this.opts();b||(b=e.slides[e.currSlide],c=e.slides[e.nextSlide],d=!e.reverse),a(b).css("zIndex",e.maxZ);var f,g=e.maxZ-2,h=e.slideCount;if(d){for(f=e.currSlide+1;h>f;f++)a(e.slides[f]).css("zIndex",g--);for(f=0;f<e.currSlide;f++)a(e.slides[f]).css("zIndex",g--)}else{for(f=e.currSlide-1;f>=0;f--)a(e.slides[f]).css("zIndex",g--);for(f=h-1;f>e.currSlide;f--)a(e.slides[f]).css("zIndex",g--)}a(c).css("zIndex",e.maxZ-1)},getSlideIndex:function(a){return this.opts().slides.index(a)}},a.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},a.fn.cycle.version=function(){return"Cycle2: "+c},a.fn.cycle.transitions={custom:{},none:{before:function(a,b,c,d){a.API.stackSlides(c,b,d),a.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:0,visibility:"visible",display:"block"}),b.animIn={opacity:1},b.animOut={opacity:0}}},fadeout:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:1,visibility:"visible",display:"block"}),b.animOut={opacity:0}}},scrollHorz:{before:function(a,b,c,d){a.API.stackSlides(b,c,d);var e=a.container.css("overflow","hidden").width();a.cssBefore={left:d?e:-e,top:0,opacity:1,visibility:"visible",display:"block"},a.cssAfter={zIndex:a._maxZ-2,left:0},a.animIn={left:0},a.animOut={left:d?-e:e}}}},a.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0},a(document).ready(function(){a(a.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),function(a){"use strict";function b(b,d){var e,f,g,h=d.autoHeight;if("container"==h)f=a(d.slides[d.currSlide]).outerHeight(),d.container.height(f);else if(d._autoHeightRatio)d.container.height(d.container.width()/d._autoHeightRatio);else if("calc"===h||"number"==a.type(h)&&h>=0){if(g="calc"===h?c(b,d):h>=d.slides.length?0:h,g==d._sentinelIndex)return;d._sentinelIndex=g,d._sentinel&&d._sentinel.remove(),e=a(d.slides[g].cloneNode(!0)),e.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),e.css({position:"static",visibility:"hidden",display:"block"}).prependTo(d.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active"),e.find("*").css("visibility","hidden"),d._sentinel=e}}function c(b,c){var d=0,e=-1;return c.slides.each(function(b){var c=a(this).height();c>e&&(e=c,d=b)}),d}function d(b,c,d,e){var f=a(e).outerHeight();c.container.animate({height:f},c.autoHeightSpeed,c.autoHeightEasing)}function e(c,f){f._autoHeightOnResize&&(a(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null),f.container.off("cycle-slide-added cycle-slide-removed",b),f.container.off("cycle-destroyed",e),f.container.off("cycle-before",d),f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}a.extend(a.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null}),a(document).on("cycle-initialized",function(c,f){function g(){b(c,f)}var h,i=f.autoHeight,j=a.type(i),k=null;("string"===j||"number"===j)&&(f.container.on("cycle-slide-added cycle-slide-removed",b),f.container.on("cycle-destroyed",e),"container"==i?f.container.on("cycle-before",d):"string"===j&&/\d+\:\d+/.test(i)&&(h=i.match(/(\d+)\:(\d+)/),h=h[1]/h[2],f._autoHeightRatio=h),"number"!==j&&(f._autoHeightOnResize=function(){clearTimeout(k),k=setTimeout(g,50)},a(window).on("resize orientationchange",f._autoHeightOnResize)),setTimeout(g,30))})}(jQuery),function(a){"use strict";a.extend(a.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}</div><div>{{desc}}</div>",captionModule:"caption"}),a(document).on("cycle-update-view",function(b,c,d,e){if("caption"===c.captionModule){a.each(["caption","overlay"],function(){var a=this,b=d[a+"Template"],f=c.API.getComponent(a);f.length&&b?(f.html(c.API.tmpl(b,d,c,e)),f.show()):f.hide()})}}),a(document).on("cycle-destroyed",function(b,c){var d;a.each(["caption","overlay"],function(){var a=this,b=c[a+"Template"];c[a]&&b&&(d=c.API.getComponent("caption"),d.empty())})})}(jQuery),function(a){"use strict";var b=a.fn.cycle;a.fn.cycle=function(c){var d,e,f,g=a.makeArray(arguments);return"number"==a.type(c)?this.cycle("goto",c):"string"==a.type(c)?this.each(function(){var h;return d=c,f=a(this).data("cycle.opts"),void 0===f?void b.log('slideshow must be initialized before sending commands; "'+d+'" ignored'):(d="goto"==d?"jump":d,e=f.API[d],a.isFunction(e)?(h=a.makeArray(g),h.shift(),e.apply(f.API,h)):void b.log("unknown command: ",d))}):b.apply(this,arguments)},a.extend(a.fn.cycle,b),a.extend(b.API,{next:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?-1:1;a.allowWrap===!1&&a.currSlide+b>=a.slideCount||(a.API.advanceSlide(b),a.API.trigger("cycle-next",[a]).log("cycle-next"))}},prev:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?1:-1;a.allowWrap===!1&&a.currSlide+b<0||(a.API.advanceSlide(b),a.API.trigger("cycle-prev",[a]).log("cycle-prev"))}},destroy:function(){this.stop();var b=this.opts(),c=a.isFunction(a._data)?a._data:a.noop;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stop(),b.API.trigger("cycle-destroyed",[b]).log("cycle-destroyed"),b.container.removeData(),c(b.container[0],"parsedAttrs",!1),b.retainStylesOnDestroy||(b.container.removeAttr("style"),b.slides.removeAttr("style"),b.slides.removeClass(b.slideActiveClass)),b.slides.each(function(){var d=a(this);d.removeData(),d.removeClass(b.slideClass),c(this,"parsedAttrs",!1)})},jump:function(a,b){var c,d=this.opts();if(!d.busy||d.manualTrump){var e=parseInt(a,10);if(isNaN(e)||0>e||e>=d.slides.length)return void d.API.log("goto: invalid slide index: "+e);if(e==d.currSlide)return void d.API.log("goto: skipping, already on slide",e);d.nextSlide=e,clearTimeout(d.timeoutId),d.timeoutId=0,d.API.log("goto: ",e," (zero-index)"),c=d.currSlide<d.nextSlide,d._tempFx=b,d.API.prepareTx(!0,c)}},stop:function(){var b=this.opts(),c=b.container;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stopTransition(),b.pauseOnHover&&(b.pauseOnHover!==!0&&(c=a(b.pauseOnHover)),c.off("mouseenter mouseleave")),b.API.trigger("cycle-stopped",[b]).log("cycle-stopped")},reinit:function(){var a=this.opts();a.API.destroy(),a.container.cycle()},remove:function(b){for(var c,d,e=this.opts(),f=[],g=1,h=0;h<e.slides.length;h++)c=e.slides[h],h==b?d=c:(f.push(c),a(c).data("cycle.opts").slideNum=g,g++);d&&(e.slides=a(f),e.slideCount--,a(d).remove(),b==e.currSlide?e.API.advanceSlide(1):b<e.currSlide?e.currSlide--:e.currSlide++,e.API.trigger("cycle-slide-removed",[e,b,d]).log("cycle-slide-removed"),e.API.updateView())}}),a(document).on("click.cycle","[data-cycle-cmd]",function(b){b.preventDefault();var c=a(this),d=c.data("cycle-cmd"),e=c.data("cycle-context")||".cycle-slideshow";a(e).cycle(d,c.data("cycle-arg"))})}(jQuery),function(a){"use strict";function b(b,c){var d;return b._hashFence?void(b._hashFence=!1):(d=window.location.hash.substring(1),void b.slides.each(function(e){if(a(this).data("cycle-hash")==d){if(c===!0)b.startingSlide=e;else{var f=b.currSlide<e;b.nextSlide=e,b.API.prepareTx(!0,f)}return!1}}))}a(document).on("cycle-pre-initialize",function(c,d){b(d,!0),d._onHashChange=function(){b(d,!1)},a(window).on("hashchange",d._onHashChange)}),a(document).on("cycle-update-view",function(a,b,c){c.hash&&"#"+c.hash!=window.location.hash&&(b._hashFence=!0,window.location.hash=c.hash)}),a(document).on("cycle-destroyed",function(b,c){c._onHashChange&&a(window).off("hashchange",c._onHashChange)})}(jQuery),function(a){"use strict";a.extend(a.fn.cycle.defaults,{loader:!1}),a(document).on("cycle-bootstrap",function(b,c){function d(b,d){function f(b){var f;"wait"==c.loader?(h.push(b),0===j&&(h.sort(g),e.apply(c.API,[h,d]),c.container.removeClass("cycle-loading"))):(f=a(c.slides[c.currSlide]),e.apply(c.API,[b,d]),f.show(),c.container.removeClass("cycle-loading"))}function g(a,b){return a.data("index")-b.data("index")}var h=[];if("string"==a.type(b))b=a.trim(b);else if("array"===a.type(b))for(var i=0;i<b.length;i++)b[i]=a(b[i])[0];b=a(b);var j=b.length;j&&(b.css("visibility","hidden").appendTo("body").each(function(b){function g(){0===--i&&(--j,f(k))}var i=0,k=a(this),l=k.is("img")?k:k.find("img");return k.data("index",b),l=l.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),l.length?(i=l.length,void l.each(function(){this.complete?g():a(this).load(function(){g()}).on("error",function(){0===--i&&(c.API.log("slide skipped; img not loaded:",this.src),0===--j&&"wait"==c.loader&&e.apply(c.API,[h,d]))})})):(--j,void h.push(k))}),j&&c.container.addClass("cycle-loading"))}var e;c.loader&&(e=c.API.add,c.API.add=d)})}(jQuery),function(a){"use strict";function b(b,c,d){var e,f=b.API.getComponent("pager");f.each(function(){var f=a(this);if(c.pagerTemplate){var g=b.API.tmpl(c.pagerTemplate,c,b,d[0]);e=a(g).appendTo(f)}else e=f.children().eq(b.slideCount-1);e.on(b.pagerEvent,function(a){b.pagerEventBubble||a.preventDefault(),b.API.page(f,a.currentTarget)})})}function c(a,b){var c=this.opts();if(!c.busy||c.manualTrump){var d=a.children().index(b),e=d,f=c.currSlide<e;c.currSlide!=e&&(c.nextSlide=e,c._tempFx=c.pagerFx,c.API.prepareTx(!0,f),c.API.trigger("cycle-pager-activated",[c,a,b]))}}a.extend(a.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:"<span>&bull;</span>"}),a(document).on("cycle-bootstrap",function(a,c,d){d.buildPagerLink=b}),a(document).on("cycle-slide-added",function(a,b,d,e){b.pager&&(b.API.buildPagerLink(b,d,e),b.API.page=c)}),a(document).on("cycle-slide-removed",function(b,c,d){if(c.pager){var e=c.API.getComponent("pager");e.each(function(){var b=a(this);a(b.children()[d]).remove()})}}),a(document).on("cycle-update-view",function(b,c){var d;c.pager&&(d=c.API.getComponent("pager"),d.each(function(){a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass)}))}),a(document).on("cycle-destroyed",function(a,b){var c=b.API.getComponent("pager");c&&(c.children().off(b.pagerEvent),b.pagerTemplate&&c.empty())})}(jQuery),function(a){"use strict";a.extend(a.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),a(document).on("cycle-initialized",function(a,b){if(b.API.getComponent("next").on(b.nextEvent,function(a){a.preventDefault(),b.API.next()}),b.API.getComponent("prev").on(b.prevEvent,function(a){a.preventDefault(),b.API.prev()}),b.swipe){var c=b.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",d=b.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";b.container.on(c,function(){b._tempFx=b.swipeFx,b.API.next()}),b.container.on(d,function(){b._tempFx=b.swipeFx,b.API.prev()})}}),a(document).on("cycle-update-view",function(a,b){if(!b.allowWrap){var c=b.disabledClass,d=b.API.getComponent("next"),e=b.API.getComponent("prev"),f=b._prevBoundry||0,g=void 0!==b._nextBoundry?b._nextBoundry:b.slideCount-1;b.currSlide==g?d.addClass(c).prop("disabled",!0):d.removeClass(c).prop("disabled",!1),b.currSlide===f?e.addClass(c).prop("disabled",!0):e.removeClass(c).prop("disabled",!1)}}),a(document).on("cycle-destroyed",function(a,b){b.API.getComponent("prev").off(b.nextEvent),b.API.getComponent("next").off(b.prevEvent),b.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(a){"use strict";a.extend(a.fn.cycle.defaults,{progressive:!1}),a(document).on("cycle-pre-initialize",function(b,c){if(c.progressive){var d,e,f=c.API,g=f.next,h=f.prev,i=f.prepareTx,j=a.type(c.progressive);if("array"==j)d=c.progressive;else if(a.isFunction(c.progressive))d=c.progressive(c);else if("string"==j){if(e=a(c.progressive),d=a.trim(e.html()),!d)return;if(/^(\[)/.test(d))try{d=a.parseJSON(d)}catch(k){return void f.log("error parsing progressive slides",k)}else d=d.split(new RegExp(e.data("cycle-split")||"\n")),d[d.length-1]||d.pop()}i&&(f.prepareTx=function(a,b){var e,f;return a||0===d.length?void i.apply(c.API,[a,b]):void(b&&c.currSlide==c.slideCount-1?(f=d[0],d=d.slice(1),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.API.advanceSlide(1)},50)}),c.API.add(f)):b||0!==c.currSlide?i.apply(c.API,[a,b]):(e=d.length-1,f=d[e],d=d.slice(0,e),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.currSlide=1,b.API.advanceSlide(-1)},50)}),c.API.add(f,!0)))}),g&&(f.next=function(){var a=this.opts();if(d.length&&a.currSlide==a.slideCount-1){var b=d[0];d=d.slice(1),a.container.one("cycle-slide-added",function(a,b){g.apply(b.API),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(b)}else g.apply(a.API)}),h&&(f.prev=function(){var a=this.opts();if(d.length&&0===a.currSlide){var b=d.length-1,c=d[b];d=d.slice(0,b),a.container.one("cycle-slide-added",function(a,b){b.currSlide=1,b.API.advanceSlide(-1),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(c,!0)}else h.apply(a.API)})}})}(jQuery),function(a){"use strict";a.extend(a.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),a.extend(a.fn.cycle.API,{tmpl:function(b,c){var d=new RegExp(c.tmplRegex||a.fn.cycle.defaults.tmplRegex,"g"),e=a.makeArray(arguments);return e.shift(),b.replace(d,function(b,c){var d,f,g,h,i=c.split(".");for(d=0;d<e.length;d++)if(g=e[d]){if(i.length>1)for(h=g,f=0;f<i.length;f++)g=h,h=h[i[f]]||c;else h=g[c];if(a.isFunction(h))return h.apply(g,e);if(void 0!==h&&null!==h&&h!=c)return h}return c})}})}(jQuery);!function(a){"use strict";function b(b){return{preInit:function(a){a.slides.css(d)},transition:function(c,d,e,f,g){var h=c,i=a(d),j=a(e),k=h.speed/2;b.call(j,-90),j.css({display:"block",visibility:"visible","background-position":"-90px",opacity:1}),i.css("background-position","0px"),i.animate({backgroundPosition:90},{step:b,duration:k,easing:h.easeOut||h.easing,complete:function(){c.API.updateView(!1,!0),j.animate({backgroundPosition:0},{step:b,duration:k,easing:h.easeIn||h.easing,complete:g})}})}}}function c(b){return function(c){var d=a(this);d.css({"-webkit-transform":"rotate"+b+"("+c+"deg)","-moz-transform":"rotate"+b+"("+c+"deg)","-ms-transform":"rotate"+b+"("+c+"deg)","-o-transform":"rotate"+b+"("+c+"deg)",transform:"rotate"+b+"("+c+"deg)"})}}var d,e=document.createElement("div").style,f=a.fn.cycle.transitions,g=void 0!==e.transform||void 0!==e.MozTransform||void 0!==e.webkitTransform||void 0!==e.oTransform||void 0!==e.msTransform;g&&void 0!==e.msTransform&&(e.msTransform="rotateY(0deg)",e.msTransform||(g=!1)),g?(f.flipHorz=b(c("Y")),f.flipVert=b(c("X")),d={"-webkit-backface-visibility":"hidden","-moz-backface-visibility":"hidden","-o-backface-visibility":"hidden","backface-visibility":"hidden"}):(f.flipHorz=f.scrollHorz,f.flipVert=f.scrollVert||f.scrollHorz)}(jQuery);(function(a){"use strict",a(document).on("cycle-bootstrap",function(a,b,c){if(b.fx!=="carousel")return;c.getSlideIndex=function(a){var b=this.opts()._carouselWrap.children(),c=b.index(a);return c%b.length},c.next=function(){var a=b.reverse?-1:1;if(b.allowWrap===!1&&b.currSlide+a>b.slideCount-b.carouselVisible)return;b.API.advanceSlide(a),b.API.trigger("cycle-next",[b]).log("cycle-next")}}),a.fn.cycle.transitions.carousel={preInit:function(b){b.hideNonActive=!1,b.container.on("cycle-destroyed",a.proxy(this.onDestroy,b.API)),b.API.stopTransition=this.stopTransition;for(var c=0;c<b.startingSlide;c++)b.container.append(b.slides[0])},postInit:function(b){var c,d,e=b.carouselVertical;b.carouselVisible&&b.carouselVisible>b.slideCount&&(b.carouselVisible=b.slideCount-1);var f=b.carouselVisible||b.slides.length,g={display:e?"block":"inline-block",position:"static"};b.container.css({position:"relative",overflow:"hidden"}),b.slides.css(g),b._currSlide=b.currSlide,d=a('<div class="cycle-carousel-wrap"></div').prependTo(b.container).css({margin:0,padding:0,top:0,left:0,position:"absolute"}).append(b.slides),b._carouselWrap=d,e||d.css("white-space","nowrap"),b.allowWrap!==!1&&(b.slides.slice(0,b.slideCount).clone().css(g).appendTo(d),b.carouselVisible===undefined&&b.slides.slice(0,b.slideCount).clone().css(g).appendTo(d),b.slides.slice(0,b.slideCount).clone().css(g).prependTo(d),b.carouselVisible===undefined&&b.slides.slice(0,b.slideCount).clone().css(g).prependTo(d),d.find(".cycle-slide-active").removeClass("cycle-slide-active"),b.slides.eq(b.startingSlide).addClass("cycle-slide-active")),b.pager&&b.allowWrap===!1&&(c=b.slideCount-f,a(b.pager).children().filter(":gt("+c+")").hide()),b._nextBoundry=b.slideCount-b.carouselVisible,this.prepareDimensions(b)},prepareDimensions:function(b){var c,d,e,f,g=b.carouselVertical,h=b.carouselVisible||b.slides.length;b.carouselFluid&&b.carouselVisible?b._carouselResizeThrottle||this.fluidSlides(b):b.carouselVisible&&b.carouselSlideDimension?(c=h*b.carouselSlideDimension,b.container[g?"height":"width"](c)):b.carouselVisible&&(c=h*a(b.slides[0])[g?"outerHeight":"outerWidth"](!0),b.container[g?"height":"width"](c)),d=b.carouselOffset||0;if(b.allowWrap!==!1)if(b.carouselSlideDimension)d-=(b.slideCount+b.currSlide)*b.carouselSlideDimension;else{f=b._carouselWrap.children();for(var i=0;i<b.slideCount+b.currSlide;i++)d-=a(f[i])[g?"outerHeight":"outerWidth"](!0)}b._carouselWrap.css(g?"top":"left",d)},fluidSlides:function(b){function g(){clearTimeout(c),c=setTimeout(h,20)}function h(){b._carouselWrap.stop(!1,!0);var a=b.container.width()/b.carouselVisible;a=Math.ceil(a-e),b._carouselWrap.children().width(a),b._sentinel&&b._sentinel.width(a),f(b)}var c,d=b.slides.eq(0),e=d.outerWidth()-d.width(),f=this.prepareDimensions;a(window).on("resize",g),b._carouselResizeThrottle=g,h()},transition:function(b,c,d,e,f){var g,h={},i=b.nextSlide-b.currSlide,j=b.carouselVertical,k=b.speed;if(b.allowWrap===!1){e=i>0;var l=b._currSlide,m=b.slideCount-b.carouselVisible;i>0&&b.nextSlide>m&&l==m?i=0:i>0&&b.nextSlide>m?i=b.nextSlide-l-(b.nextSlide-m):i<0&&b.currSlide>m&&b.nextSlide>m?i=0:i<0&&b.currSlide>m?i+=b.currSlide-m:l=b.currSlide,g=this.getScroll(b,j,l,i),b.API.opts()._currSlide=b.nextSlide>m?m:b.nextSlide}else e&&b.nextSlide===0?(g=this.getDim(b,b.currSlide,j),f=this.genCallback(b,e,j,f)):!e&&b.nextSlide==b.slideCount-1?(g=this.getDim(b,b.currSlide,j),f=this.genCallback(b,e,j,f)):g=this.getScroll(b,j,b.currSlide,i);h[j?"top":"left"]=e?"-="+g:"+="+g,b.throttleSpeed&&(k=g/a(b.slides[0])[j?"height":"width"]()*b.speed),b._carouselWrap.animate(h,k,b.easing,f)},getDim:function(b,c,d){var e=a(b.slides[c]);return e[d?"outerHeight":"outerWidth"](!0)},getScroll:function(a,b,c,d){var e,f=0;if(d>0)for(e=c;e<c+d;e++)f+=this.getDim(a,e,b);else for(e=c;e>c+d;e--)f+=this.getDim(a,e,b);return f},genCallback:function(b,c,d,e){return function(){var c=a(b.slides[b.nextSlide]).position(),f=0-c[d?"top":"left"]+(b.carouselOffset||0);b._carouselWrap.css(b.carouselVertical?"top":"left",f),e()}},stopTransition:function(){var a=this.opts();a.slides.stop(!1,!0),a._carouselWrap.stop(!1,!0)},onDestroy:function(b){var c=this.opts();c._carouselResizeThrottle&&a(window).off("resize",c._carouselResizeThrottle),c.slides.prependTo(c.container),c._carouselWrap.remove()}}})(jQuery);(function(document){var MBP=window.MBP||{};MBP.viewportmeta=document.querySelector&&document.querySelector('meta[name="viewport"]');MBP.ua=navigator.userAgent;MBP.scaleFix=function(){if(MBP.viewportmeta&&/iPhone|iPad|iPod/.test(MBP.ua)&&!/Opera Mini/.test(MBP.ua)){MBP.viewportmeta.content='width=device-width, minimum-scale=1.0, maximum-scale=1.0';document.addEventListener('gesturestart',MBP.gestureStart,!1)}};MBP.gestureStart=function(){MBP.viewportmeta.content='width=device-width, minimum-scale=0.25, maximum-scale=1.6'};MBP.BODY_SCROLL_TOP=!1;MBP.getScrollTop=function(){var win=window;var doc=document;return win.pageYOffset||doc.compatMode==='CSS1Compat'&&doc.documentElement.scrollTop||doc.body.scrollTop||0};MBP.hideUrlBar=function(){var win=window;if(!location.hash&&MBP.BODY_SCROLL_TOP!==!1){win.scrollTo(0,MBP.BODY_SCROLL_TOP===1?0:1)}};MBP.hideUrlBarOnLoad=function(){var win=window;var doc=win.document;var bodycheck;if(!location.hash&&win.addEventListener){window.scrollTo(0,1);MBP.BODY_SCROLL_TOP=1;bodycheck=setInterval(function(){if(doc.body){clearInterval(bodycheck);MBP.BODY_SCROLL_TOP=MBP.getScrollTop();MBP.hideUrlBar()}},15);win.addEventListener('load',function(){setTimeout(function(){if(MBP.getScrollTop()<20){MBP.hideUrlBar()}},0)})}};MBP.splash=function(){var filename=navigator.platform==='iPad'?'h/':'l/';var fr=document.createElement("link");fr.setAttribute("rel","apple-touch-startup-image");fr.setAttribute("href",'/img/'+filename+'splash.png');document.getElementsByTagName("head")[0].appendChild(fr)};MBP.autogrow=function(element,lh){function handler(e){var newHeight=this.scrollHeight;var currentHeight=this.clientHeight;if(newHeight>currentHeight){this.style.height=newHeight+3*textLineHeight+'px'}}var setLineHeight=(lh)?lh:12;var textLineHeight=element.currentStyle?element.currentStyle.lineHeight:getComputedStyle(element,null).lineHeight;textLineHeight=(textLineHeight.indexOf('px')==-1)?setLineHeight:parseInt(textLineHeight,10);element.style.overflow='hidden';if(element.addEventListener)element.addEventListener('keyup',handler,!1);else element.attachEvent('onkeyup',handler)};MBP.enableActive=function(){document.addEventListener('touchstart',function(){},!1)};MBP.preventScrolling=function(){document.addEventListener('touchmove',function(e){e.preventDefault()},!1)};MBP.preventZoom=function(){var formFields=document.querySelectorAll('input, select, textarea');var contentString='width=device-width,initial-scale=1,maximum-scale=';var i=0;for(i=0;i<formFields.length;i++){formFields[i].onfocus=function(){MBP.viewportmeta.content=contentString+'1'};formFields[i].onblur=function(){MBP.viewportmeta.content=contentString+'10'}}};MBP.startupImage=function(){var portrait;var landscape;var pixelRatio;var head;var link1;var link2;pixelRatio=window.devicePixelRatio;head=document.getElementsByTagName('head')[0];if(navigator.platform==='iPad'){portrait=pixelRatio===2?'img/startup/startup-tablet-portrait-retina.png':'img/startup/startup-tablet-portrait.png';landscape=pixelRatio===2?'img/startup/startup-tablet-landscape-retina.png':'img/startup/startup-tablet-landscape.png';link1=document.createElement('link');link1.setAttribute('rel','apple-touch-startup-image');link1.setAttribute('media','screen and (orientation: portrait)');link1.setAttribute('href',portrait);head.appendChild(link1);link2=document.createElement('link');link2.setAttribute('rel','apple-touch-startup-image');link2.setAttribute('media','screen and (orientation: landscape)');link2.setAttribute('href',landscape);head.appendChild(link2)}else{portrait=pixelRatio===2?"img/startup/startup-retina.png":"img/startup/startup.png";link1=document.createElement('link');link1.setAttribute('rel','apple-touch-startup-image');link1.setAttribute('href',portrait);head.appendChild(link1)}}})(document);!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});(function(d){var b=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks){for(var a=b.length;a;){d.event.fixHooks[b[--a]]=d.event.mouseHooks}}d.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var e=b.length;e;){this.addEventListener(b[--e],c,!1)}}else{this.onmousewheel=c}},teardown:function(){if(this.removeEventListener){for(var e=b.length;e;){this.removeEventListener(b[--e],c,!1)}}else{this.onmousewheel=null}}};d.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}});function c(j){var h=j||window.event,g=[].slice.call(arguments,1),k=0,i=!0,f=0,e=0;j=d.event.fix(h);j.type="mousewheel";if(h.wheelDelta){k=h.wheelDelta/120}if(h.detail){k=-h.detail/3}e=k;if(h.axis!==undefined&&h.axis===h.HORIZONTAL_AXIS){e=0;f=-1*k}if(h.wheelDeltaY!==undefined){e=h.wheelDeltaY/120}if(h.wheelDeltaX!==undefined){f=-1*h.wheelDeltaX/120}g.unshift(j,k,f,e);return(d.event.dispatch||d.event.handle).apply(this,g)}})(jQuery);var MapSVG={};window.MapSVG=MapSVG;Math.hypot=Math.hypot||function(){var y=0;var length=arguments.length;for(var i=0;i<length;i++){if(arguments[i]===Infinity||arguments[i]===-Infinity){return Infinity}
y+=arguments[i]*arguments[i]}
return Math.sqrt(y)};SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(toElement){return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM())};(function($,window,MapSVG,Math){MapSVG.userAgent=navigator.userAgent.toLowerCase();MapSVG.touchDevice=(MapSVG.userAgent.indexOf("ipad")>-1)||(MapSVG.userAgent.indexOf("iphone")>-1)||(MapSVG.userAgent.indexOf("ipod")>-1)||(MapSVG.userAgent.indexOf("android")>-1);MapSVG.ios=(MapSVG.userAgent.indexOf("ipad")>-1)||(MapSVG.userAgent.indexOf("iphone")>-1)||(MapSVG.userAgent.indexOf("ipod")>-1);MapSVG.android=MapSVG.userAgent.indexOf("android");MapSVG.isPhone=!1;if(window.innerWidth*window.devicePixelRatio<=960&&window.innerHeight*window.devicePixelRatio<=640){MapSVG.isPhone=!0}
MapSVG.browser={};MapSVG.browser.ie=MapSVG.userAgent.indexOf("msie")>-1||MapSVG.userAgent.indexOf("trident")>-1||MapSVG.userAgent.indexOf("edge")>-1?{}:!1;MapSVG.browser.firefox=MapSVG.userAgent.indexOf("firefox")>-1;if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'')}}
MapSVG.mouseCoords=function(e){if(e.clientX){return{'x':e.clientX+$(document).scrollLeft(),'y':e.clientY+$(document).scrollTop()}}if(e.pageX){return{'x':e.pageX,'y':e.pageY}}else if(MapSVG.touchDevice){e=e.originalEvent||e;return e.touches&&e.touches[0]?{'x':e.touches[0].pageX,'y':e.touches[0].pageY}:{'x':e.changedTouches[0].pageX,'y':e.changedTouches[0].pageY}}};MapSVG.get=function(index){return jQuery('.mapsvg').eq(index).mapSvg()};MapSVG.extend=function(sub,base){sub.prototype=Object.create(base.prototype);sub.prototype.constructor=sub};MapSVG.ucfirst=function(string){return string.charAt(0).toUpperCase()+string.slice(1)};MapSVG.parseBoolean=function(string){switch(String(string).toLowerCase()){case "on":case "true":case "1":case "yes":case "y":return!0;case "off":case "false":case "0":case "no":case "n":return!1;default:return undefined}};MapSVG.isNumber=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};MapSVG.safeURL=function(url){if(url.indexOf('http://')==0||url.indexOf('https://')==0)
url="//"+url.split("://").pop();return url};MapSVG.convertToText=function(obj){var string=[];if(obj==undefined){return String(obj)}else if(typeof(obj)=="object"&&(obj.join==undefined)){var prop;for(prop in obj){if(obj.hasOwnProperty(prop)){var key=prop.search(/[^a-zA-Z]+/)===-1?prop:"'"+prop+"'";string.push(key+": "+MapSVG.convertToText(obj[prop]))}}
return"{"+string.join(",")+"}"}else if(typeof(obj)=="object"&&!(obj.join==undefined)){var prop;for(prop in obj){string.push(MapSVG.convertToText(obj[prop]))}
return"["+string.join(",")+"]"}else if(typeof(obj)=="function"){string.push(obj.toString().replace('function anonymous','function'))}else{var s=JSON.stringify(obj);string.push(s)}
return string.join(",")};MapSVG.Controller=function(options){this.container=options.container;this.mapsvg=options.mapsvg;this.template=options.template;this.scrollable=options.scrollable===undefined?!0:options.scrollable;this.withToolbar=options.withToolbar===undefined?!0:options.withToolbar;this.templates={toolbar:Handlebars.compile(this.getToolbarTemplate()),main:this.getMainTemplate()};this.data=options.data;this.width=options.width;this.color=options.color;this.events={};if(options.events){for(var i in options.events){if(typeof options.events[i]=='function'){this.events[i]=options.events[i]}}}
this._init()};MapSVG.Controller.prototype.viewDidLoad=function(){};MapSVG.Controller.prototype.viewDidAppear=function(){};MapSVG.Controller.prototype.viewDidDisappear=function(){};MapSVG.Controller.prototype._viewDidLoad=function(){if(this.scrollable)
this.updateScroll()};MapSVG.Controller.prototype.updateScroll=function(){var _this=this;this.contentWrap.nanoScroller({preventPageScrolling:!0});setTimeout(function(){_this.contentWrap.nanoScroller({preventPageScrolling:!0})},300)};MapSVG.Controller.prototype.init=function(){};MapSVG.Controller.prototype._init=function(){var _this=this;_this.render();_this.init()};MapSVG.Controller.prototype.getToolbarTemplate=function(){return''};MapSVG.Controller.prototype.getMainTemplate=function(){return this.template};MapSVG.Controller.prototype.render=function(){var _this=this;this.view=$('<div />').attr('id','mapsvg-controller-'+this.name).addClass('mapsvg-controller-view');this.contentWrap=$('<div />').addClass('mapsvg-controller-view-wrap');this.contentView=$('<div />').addClass('mapsvg-controller-view-content');if(this.scrollable){this.contentWrap.addClass('nano');this.contentView.addClass('nano-content')}
this.contentWrap.append(this.contentView);if(this.templates.toolbar){this.toolbarView=$('<div />').addClass('mapsvg-controller-view-toolbar');this.view.append(this.toolbarView)}
this.view.append(this.contentWrap);this.container.append(this.view);this.container.data('controller',this);if(this.width)
this.view.css({width:this.width});if(this.color)
this.view.css({'background-color':this.color});this.redraw();setTimeout(function(){_this._viewDidLoad();_this.viewDidLoad();_this.setEventHandlersCommon();_this.setEventHandlers()},1)};MapSVG.Controller.prototype.redraw=function(){this.contentView.html(this.templates.main(this.data));if(this.templates.toolbar)
this.toolbarView.html(this.templates.toolbar(this.data));this.updateTopShift();if(this.noPadding)
this.contentView.css({padding:0});if(this.scrollable)
this.updateScroll()};MapSVG.Controller.prototype.updateTopShift=function(){var _this=this;_this.contentWrap.css({'top':_this.toolbarView.outerHeight(!0)+'px'});setTimeout(function(){_this.contentWrap.css({'top':_this.toolbarView.outerHeight(!0)+'px'})},500)};MapSVG.Controller.prototype.setEventHandlersCommon=function(){};MapSVG.Controller.prototype.setEventHandlers=function(){};MapSVG.Controller.prototype.destroy=function(){this.view.empty().remove()};MapSVG.DirectoryController=function(options){this.database=options.database;this.noPadding=!0;this.position=options.position;this.search=options.search;this.filters=options.filters;MapSVG.Controller.call(this,options)};MapSVG.extend(MapSVG.DirectoryController,MapSVG.Controller);MapSVG.DirectoryController.prototype.getToolbarTemplate=function(){var _this=this;var t='<div class="mapsvg-directory-search-wrap">';if(this.search){t+='<div class="mapsvg-directory-search-wrap-margin" >';t+='<input class="mapsvg-directory-search" placeholder="{{options.menu.searchPlaceholder}}" />';t+='</div>'}
t+='<div class="mapsvg-directory-filter-wrap"></div>';t+='</div>';t+='</div>';return t};MapSVG.DirectoryController.prototype.viewDidLoad=function(){var _this=this;this.menuBtn=$('<div class="mapsvg-button-menu"><i class="mapsvg-icon-menu"></i> '+this.mapsvg.getData().options.mobileView.labelList+'</div>');this.mapBtn=$('<div class="mapsvg-button-map"><i class="mapsvg-icon-map"></i> '+this.mapsvg.getData().options.mobileView.labelMap+'</div>');this.mapBtn.addClass('active');this.container.addClass('closed');this.mobileButtons=$('<div class="mapsvg-mobile-buttons"></div>');this.mobileButtons.append(this.menuBtn,this.mapBtn);if(this.mapsvg.getData().options.menu.on!==!1)
this.mobileButtons.insertAfter(this.mapsvg.getData().$wrap);this.events&&this.events.shown&&this.events.shown.call(this.view);if(this.mapsvg.getData().options.filters&&this.mapsvg.getData().options.filters.on){_this.formBuilder=new MapSVG.FormBuilder({container:_this.view.find('.mapsvg-directory-filter-wrap'),filtersMode:!0,schema:_this.mapsvg.filtersSchema.getSchema(),editMode:!1,mapsvg:_this.mapsvg,admin:_this.admin,events:{}});_this.formBuilder.view.on('change','select,input[type="radio"]',function(){var filter={};var field=$(this).data('parameter-name');filter[field]=$(this).val();_this.database.query.setFilters(filter);_this.database.getAll(filter)})}
if(this.mapsvg.getData().options.colors.directorySearch){this.toolbarView.css({'background-color':this.mapsvg.getData().options.colors.directorySearch})}};MapSVG.DirectoryController.prototype.setEventHandlers=function(){var _this=this;$(window).on('resize',function(){_this.updateTopShift()});this.view.on('keyup.menu.mapsvg','.mapsvg-directory-search',function(){var data={search:$(this).val()};if(_this.mapsvg.getData().options.menu.searchFallback)
data.searchFallback=!0;_this.database.getAll(data)});this.menuBtn.on('click',function(){if(!$(this).hasClass('active')){_this.toggle();$(this).parent().find('div').removeClass('active');$(this).addClass('active')}});this.mapBtn.on('click',function(){if(!$(this).hasClass('active')){_this.toggle();$(this).parent().find('div').removeClass('active');$(this).addClass('active')}});this.view.on('click.menu.mapsvg','.mapsvg-directory-item',function(e){e.preventDefault();var objID=$(this).data('object-id');var regions;var marker;var detailsViewObject;var eventObject;if(_this.mapsvg.getData().options.menu.source=='regions'){regions=[_this.mapsvg.getRegion(objID)];eventObject=regions[0];detailsViewObject=regions[0]}else{detailsViewObject=_this.database.getLoadedObject(objID);eventObject=detailsViewObject;if(detailsViewObject.regions){regions=detailsViewObject.regions.map(function(region){return _this.mapsvg.getRegion(region.id)})}}
if(detailsViewObject.marker&&detailsViewObject.marker.id)
marker=_this.mapsvg.getMarker(detailsViewObject.marker.id);if(_this.mapsvg.getData().options.actions.directoryItem.click.showDetails){_this.mapsvg.loadDetailsView(detailsViewObject)}
var skipPopover;if(regions&&regions.length>0){if(_this.mapsvg.getData().options.actions.directoryItem.click.zoom){_this.mapsvg.zoomTo(regions,3)}
if(regions.length>1){_this.mapsvg.setMultiSelect(!0)}
regions.forEach(function(region){var center=region.getCenter();e.clientX=center[0];e.clientY=center[1];if(_this.mapsvg.getData().options.actions.directoryItem.click.selectRegion){region.setSelected(!0)}
if(_this.mapsvg.getData().options.actions.directoryItem.click.showRegionPopover){var content=_this.mapsvg.getData().templates.popoverRegion(region.forTemplate());_this.mapsvg.showPopover(e,content,null,region)}
if(_this.mapsvg.getData().options.actions.directoryItem.click.fireRegionOnClick){var events=_this.mapsvg.getData().events;if(events&&events['click.region'])
events&&events['click.region'].call(region,e,_this.mapsvg)}});if(regions.length>1){_this.mapsvg.setMultiSelect(!1,!1)}}
if(marker){var center=marker.getCenter();e.clientX=center[0];e.clientY=center[1]-6;if(_this.mapsvg.getData().options.actions.directoryItem.click.showMarkerPopover){var content=_this.mapsvg.getData().templates.popoverMarker(detailsViewObject);_this.mapsvg.showPopover(e,content,null,marker)}
if(_this.mapsvg.getData().options.actions.directoryItem.click.fireMarkerOnClick){var events=_this.mapsvg.getData().events;if(events&&events['click.marker'])
events&&events['click.marker'].call(marker,e,_this.mapsvg)}}
_this.events.click&&_this.events.click.call($(this),e,eventObject,_this.mapsvg);var actions=_this.mapsvg.getData().options.actions;if(actions.directoryItem.click.goToLink){var linkParts=actions.directoryItem.click.linkField.split('.');var url;if(linkParts.length>1){var obj=linkParts.shift();var attr='.'+linkParts.join('.');if(obj=='Region'){if(regions[0]&&regions[0].data)
url=eval('regions[0].data'+attr)}else{if(detailsViewObject)
url=eval('detailsViewObject'+attr)}
if(url){if(actions.directoryItem.click.newTab){var win=window.open(url,'_blank');win.focus()}else{window.location.href=url}}}}}).on('mouseover.menu.mapsvg','.mapsvg-directory-item',function(e){var objID=$(this).data('object-id');var regions;if(_this.mapsvg.getData().options.menu.source=='regions'){regions=[_this.mapsvg.getRegion(objID)]}else{var detailsViewObject=_this.database.getLoadedObject(objID);if(detailsViewObject.regions){regions=detailsViewObject.regions.map(function(region){return _this.mapsvg.getRegion(region.id)})}}
if(regions&&regions.length){_this.mapsvg.highlightRegions(regions);regions.forEach(function(region){if(region&&!region.disabled){_this.mapsvg.getData().options.mouseOver&&_this.mapsvg.getData().options.mouseOver.call(region,e,_this)}})}
_this.events.mouseover&&_this.events.mouseover.call($(this),e,eventObject,_this.mapsvg)}).on('mouseout.menu.mapsvg','.mapsvg-directory-item',function(e){var objID=$(this).data('object-id');var regions;if(_this.mapsvg.getData().options.menu.source=='regions'){regions=[_this.mapsvg.getRegion(objID)]}else{var detailsViewObject=_this.database.getLoadedObject(objID);if(detailsViewObject.regions){regions=detailsViewObject.regions.map(function(region){return _this.mapsvg.getRegion(region.id)})}}
if(regions&&regions.length){_this.mapsvg.unhighlightRegions(regions);regions.forEach(function(region){if(region&&!region.disabled){_this.mapsvg.getData().options.mouseOut&&_this.mapsvg.getData().options.mouseOut.call(region,e,_this)}})}
_this.events.mouseout&&_this.events.mouseout.call($(this),e,eventObject,_this.mapsvg)}).on('click.menu.mapsvg','.mapsvg-filter-delete',function(e){var filterField=$(this).data('filter');_this.database.query.filters[filterField]=null;delete _this.database.query.filters[filterField];_this.mapsvg.deselectAllRegions();_this.mapsvg.loadDataObjects()})};MapSVG.DirectoryController.prototype.highlightItems=function(ids){var _this=this;if(typeof ids!='object')
ids=[ids];ids.forEach(function(id){_this.view.find('#mapsvg-directory-item-'+id).addClass('hover')})};MapSVG.DirectoryController.prototype.unhighlightItems=function(){this.view.find('.mapsvg-directory-item').removeClass('hover')};MapSVG.DirectoryController.prototype.selectItems=function(ids){var _this=this;if(typeof ids!='object')
ids=[ids];ids.forEach(function(id){_this.view.find('#mapsvg-directory-item-'+id).addClass('selected')})};MapSVG.DirectoryController.prototype.deselectItems=function(){this.view.find('.mapsvg-directory-item').removeClass('selected')};MapSVG.DirectoryController.prototype.addFilter=function(field){var schema=this.database.getSchema()};MapSVG.DirectoryController.prototype.loadItemsToDirectory=function(){var items;var _this=this;items=this.database.getLoaded();if(this.database.table=='regions'){items=items.filter(function(item){var status=_this.mapsvg.getData().options.regionStatuses;if(status[item.status]){return!status[item.status].disabled}else{return!0}})}
this.contentView.html(this.templates.main({'items':items}));if(items.length==0){this.contentView.html('<div class="mapsvg-no-results">'+this.mapsvg.getData().options.menu.noResultsText+'</div>')}
this.setFilters();if(this.scrollable)
this.updateScroll()};MapSVG.DirectoryController.prototype.getRegion=function(id){var _this=this;var region;if(_this.mapsvg.getData().options.menu.source=='regions'){region=_this.mapsvg.getRegion(id)}else{var obj=_this.database.getLoadedObject(id);if(obj.region_id)
region=_this.mapsvg.getRegion(obj.region_id)}
return region};MapSVG.DirectoryController.prototype.setFilters=function(){var _this=this;var filters=this.toolbarView.find('.mapsvg-directory-filter-wrap');this.toolbarView.find('.mapsvg-filter-tag').remove();if(_this.mapsvg.getData().options.filters&&_this.mapsvg.getData().options.filters.on||(_this.database.query.filters&&Object.keys(_this.database.query.filters).length>0)){for(var field_name in _this.database.query.filters){var field_value=_this.database.query.filters[field_name];var _field_name=field_name;var filterField=_this.mapsvg.filtersSchema.getField(_field_name);if(_this.mapsvg.getData().options.filters.on&&filterField){filters.find('[data-parameter-name="'+_field_name+'"]').val(field_value)}else{if(field_name=='regions'){_field_name='region';field_value=_this.mapsvg.getRegion(field_value).title||field_value}
filters.append('<div class="mapsvg-filter-tag">'+_field_name+': '+field_value+' <span class="mapsvg-filter-delete" data-filter="'+field_name+'">×</span></div>')}}
this.view.addClass('mapsvg-with-filter')}else{this.view.removeClass('mapsvg-with-filter')}
this.updateTopShift()};MapSVG.DirectoryController.prototype.toggle=function(on){if(on){this.container.removeClass('closed')}else{this.container.toggleClass('closed')}
this.updateTopShift()};MapSVG.DirectoryController.prototype.addPagination=function(pager){this.contentView.append('<div class="mapsvg-pagination-container"></div>');this.contentView.find('.mapsvg-pagination-container').html(pager)};MapSVG.DetailsController=function(options){MapSVG.Controller.call(this,options)};MapSVG.extend(MapSVG.DetailsController,MapSVG.Controller);MapSVG.DetailsController.prototype.getToolbarTemplate=function(){if(this.withToolbar)
return'<div class="mapsvg-details-close"></div>';else return''};MapSVG.DetailsController.prototype.init=function(){};MapSVG.DetailsController.prototype.viewDidLoad=function(){this.events&&this.events.shown&&this.events.shown.call(this.view)};MapSVG.DetailsController.prototype.setEventHandlers=function(){var _this=this;this.view.on('click','.mapsvg-details-close',function(){_this.destroy();_this.events&&_this.events.closed&&_this.events.closed.call(_this)})}})(jQuery,window,MapSVG,Math);(function($){var mapSVG={};function MapObject(jQueryObject,mapsvg){this.id="";this.objects=[];this.data={};this.node=jQueryObject;this.mapsvg=mapsvg;this.nodeType=jQueryObject[0].tagName}
MapObject.prototype.isMarker=function(){return this.mapsvg_type=='marker'};MapObject.prototype.isRegion=function(){return this.mapsvg_type=='region'};MapObject.prototype.setData=function(data){var _this=this;for(var name in data){_this.data[name]=data[name]}};MapObject.prototype.getBBox=function(){var bbox=this instanceof Marker?{x:this.x,y:this.y,width:this.default.width,height:this.default.height}:this.node[0].getBBox();bbox=$.extend(!0,{},bbox);if(!(this instanceof Marker)){var matrix=this.node[0].getTransformToElement(this.mapsvg.getData().$svg[0]);var x2=bbox.x+bbox.width;var y2=bbox.y+bbox.height;var position=this.mapsvg.getData().$svg[0].createSVGPoint();position.x=bbox.x;position.y=bbox.y;position=position.matrixTransform(matrix);bbox.x=position.x;bbox.y=position.y;position.x=x2;position.y=y2;position=position.matrixTransform(matrix);bbox.width=position.x-bbox.x;bbox.height=position.y-bbox.y}
return[bbox.x,bbox.y,bbox.width,bbox.height]};MapObject.prototype.getGeoBounds=function(){var bbox=this.node[0].getBBox();var sw=this.mapsvg.convertSVGToGeo(bbox.x,(bbox.y+bbox.height));var ne=this.mapsvg.convertSVGToGeo((bbox.x+bbox.width),bbox.y);return{sw:sw,ne:ne}};MapObject.prototype.getComputedStyle=function(prop,node){node=node||this.node[0];var _p1,_p2;if(_p1=node.getAttribute(prop)){return _p1}else if(_p2=node.getAttribute('style')){var s=_p2.split(';');var z=s.filter(function(e){var e=e.trim();var attr=e.split(':');if(attr[0]==prop)
return!0});if(z.length){return z[0].split(':').pop().trim()}}
var parent=$(node).parent();var nodeType=parent.length?parent[0].tagName:null;if(nodeType&&nodeType!='svg')
return this.getComputedStyle(prop,parent[0]);else return undefined};MapObject.prototype.getStyle=function(prop){var _p1,_p2;if(_p1=this.attr(prop)){return _p1}else if(_p2=this.attr('style')){var s=_p2.split(';');var z=s.filter(function(e){var e=e.trim();if(e.indexOf(prop)===0)
return e});return z.length?z[0].split(':').pop().trim():undefined}
return""};MapObject.prototype.getCenter=function(){var x=this.node[0].getBoundingClientRect().left;var y=this.node[0].getBoundingClientRect().top;var w=this.node[0].getBoundingClientRect().width;var h=this.node[0].getBoundingClientRect().height;return[x+w/2,y+h/2]};MapObject.prototype.getCenterLatLng=function(){var bbox=this.node[0].getBBox();var x=bbox.x+bbox.width/2;var y=bbox.y+bbox.height/2;var latlng=this.mapsvg.convertSVGToGeo(x,y);return{lat:latlng[0],lng:latlng[1]}};MapObject.prototype.setTooltip=function(text){this.tooltip=text?text:undefined};MapObject.prototype.setPopover=function(text){this.popover=text?text:undefined};MapObject.prototype.setHref=function(url){this.href=url?url:undefined};MapObject.prototype.setTarget=function(target){this.target=target?target:undefined};MapObject.prototype.setData=function(data){if(data){if(typeof data=='string'){if(data.substr(0,1)=='['||data.substr(0,1)=='{'){try{var tmp;eval('tmp = '+data);this.data=tmp}catch(err){var error="MapSVG: Error in Data object for "+this.mapsvg_type+" '"+this.id+"'. Data object was set to empty object {}.";this.data={};return{_error:error}}}else{this.data=data}}else{this.data=data}
return this.data}else{this.data=undefined}};MapObject.prototype.attr=function(v1,v2){var svgDom=this.node[0];if(typeof v1=="object"){$.each(v1,function(key,item){if(typeof item=="string"||typeof item=="number"){svgDom.setAttribute(key,item)}})}else if(typeof v1=="string"&&(typeof v2=="string"||typeof v2=="number")){svgDom.setAttribute(v1,v2)}else if(v2==undefined){return svgDom.getAttribute(v1)}};MapObject.prototype.setId=function(id){if(!id)return!1;this.id=id;this.node[0].setAttribute('id',id);if(this.isMarker()){this.mapsvg.updateMarkersDict()}};function Region(jQueryObject,globalOptions,regionID,mapsvg){MapObject.call(this,jQueryObject);this.globalOptions=globalOptions;this.mapsvg=mapsvg;this.id=this.node.attr('id');if(!this.id){this.setId(this.nodeType+'_'+regionID.id++);this.autoID=!0}
this.id_no_spaces=this.id.replace(' ','_');this.title=this.node.attr('title');this.node[0].setAttribute('class',(this.node.attr('class')||'')+' mapsvg-region');this.svg_style={fill:this.getComputedStyle('fill')};this.svg_style.stroke=this.getComputedStyle('stroke');var w=this.getComputedStyle('stroke-width');w=w?w.replace('px',''):'1';w=w=="1"?1.2:parseFloat(w);this.svg_style['stroke-width']=w;var regionOptions=globalOptions.regions&&globalOptions.regions[this.id]?globalOptions.regions[this.id]:null;this.disabled=this.getDisabledState();this.disabled&&this.attr('class',this.attr('class')+' mapsvg-disabled');this.default_attr={};this.selected_attr={};this.hover_attr={};this.mapsvg_type='region';var selected=!1;if(regionOptions&&regionOptions.selected){selected=!0;delete regionOptions.selected}
regionOptions&&this.update(regionOptions);this.setFill();if(selected)
this.setSelected(!0);this.saveState()}
MapSVG.extend(Region,MapObject);Region.prototype.saveState=function(){this.initialState=JSON.stringify(this.getOptions())};Region.prototype.changed=function(){return JSON.stringify(this.getOptions())!=this.initialState};Region.prototype.getOptions=function(forTemplate){var globals=this.globalOptions.regions[this.id];var o={id:this.id,id_no_spaces:this.id_no_spaces,title:this.title,disabled:this.disabled===this.getDisabledState(!0)?undefined:this.disabled,fill:this.globalOptions.regions[this.id]&&this.globalOptions.regions[this.id].fill,tooltip:this.tooltip,popover:this.popover,href:this.href,target:this.target,data:this.data,gaugeValue:this.gaugeValue};if(forTemplate){o.disabled=this.disabled;o.dataCounter=(this.data&&this.data.length)||0}
$.each(o,function(key,val){if(val==undefined){delete o[key]}});if(this.customAttrs){var that=this;this.customAttrs.forEach(function(attr){o[attr]=that[attr]})}
return o};Region.prototype.forTemplate=function(){var data={id:this.id,title:this.title,objects:this.objects,data:this.data};for(var key in this.data){data[key]=this.data[key]}
return data};Region.prototype.update=function(options){for(var key in options){var setter='set'+MapSVG.ucfirst(key);if(setter in this)
this[setter](options[key]);else{this[key]=options[key];this.customAttrs=this.customAttrs||[];this.customAttrs.push(key)}}};Region.prototype.setFill=function(fill){if(fill){var regions={};regions[this.id]={fill:fill};$.extend(!0,this.globalOptions,{regions:regions})}else if(!fill&&fill!==undefined&&this.globalOptions.regions&&this.globalOptions.regions[this.id]&&this.globalOptions.regions[this.id].fill){delete this.globalOptions.regions[this.id].fill}
if(this.globalOptions.gauge.on&&this.gaugeValue){var o=this.globalOptions.gauge;var w=(this.gaugeValue-o.min)/o.maxAdjusted;var rgb={r:Math.round(o.colors.diffRGB.r*w+o.colors.lowRGB.r),g:Math.round(o.colors.diffRGB.g*w+o.colors.lowRGB.g),b:Math.round(o.colors.diffRGB.b*w+o.colors.lowRGB.b),a:Math.round(o.colors.diffRGB.a*w+o.colors.lowRGB.a)};this.default_attr.fill='rgba('+rgb.r+','+rgb.g+','+rgb.b+','+rgb.a+')'}else if(this.globalOptions.regions[this.id]&&this.globalOptions.regions[this.id].fill){this.default_attr.fill=this.globalOptions.regions[this.id].fill}else if(this.disabled&&this.globalOptions.colors.disabled){this.default_attr.fill=this.globalOptions.colors.disabled}else if(this.globalOptions.colors.base){this.default_attr.fill=this.globalOptions.colors.base}else if(this.svg_style.fill!='none'){this.default_attr.fill=this.svg_style.fill?this.svg_style.fill:this.globalOptions.colors.baseDefault}else{this.default_attr.fill='none'}
if(MapSVG.isNumber(this.globalOptions.colors.selected))
this.selected_attr.fill=MapSVG.tinycolor(this.default_attr.fill).lighten(parseFloat(this.globalOptions.colors.selected)).toRgbString();else this.selected_attr.fill=this.globalOptions.colors.selected;if(MapSVG.isNumber(this.globalOptions.colors.hover))
this.hover_attr.fill=MapSVG.tinycolor(this.default_attr.fill).lighten(parseFloat(this.globalOptions.colors.hover)).toRgbString();else this.hover_attr.fill=this.globalOptions.colors.hover;this.node.css('fill',this.default_attr.fill);this.fill=this.default_attr.fill;if(this.svg_style.stroke!='none'&&this.globalOptions.colors.stroke!=undefined){this.node.css('stroke',this.globalOptions.colors.stroke)}else{var s=this.svg_style.stroke==undefined?'':this.svg_style.stroke;this.node.css('stroke',s)}
if(this.selected)
this.select()};Region.prototype.setDisabled=function(on,skipSetFill){on=on!==undefined?MapSVG.parseBoolean(on):this.getDisabledState();var prevDisabled=this.disabled;this.disabled=on;on?this.attr('class',this.attr('class')+' mapsvg-disabled'):this.attr('class',this.attr('class').replace(' mapsvg-disabled',''));if(this.disabled!=prevDisabled)
this.mapsvg.deselectRegion(this);!skipSetFill&&this.setFill()};Region.prototype.setStatus=function(status){var statusOptions;if(statusOptions=this.globalOptions.regionStatuses&&this.globalOptions.regionStatuses[status]){this.status=status;this.setDisabled(statusOptions.disabled,!0)}else{this.status=undefined;this.setDisabled(!1,!0)}
this.setFill()};Region.prototype.setSelected=function(on){this.mapsvg.selectRegion(this)};Region.prototype.setGaugeValue=function(val){this.gaugeValue=$.isNumeric(val)?parseFloat(val):undefined};Region.prototype.getDisabledState=function(asDefault){var opts=this.globalOptions.regions[this.id];if(!asDefault&&opts&&opts.disabled!==undefined){return opts.disabled}else if(this.globalOptions.disableAll||this.svg_style.fill=='none'||this.id=='labels'||this.id=='Labels'){return!0}else{return!1}};Region.prototype.highlight=function(){this.node.css({'fill':this.hover_attr.fill})};Region.prototype.unhighlight=function(){this.node.css({'fill':this.default_attr.fill})};Region.prototype.select=function(){this.node.css({'fill':this.selected_attr.fill});this.selected=!0};Region.prototype.deselect=function(){this.node.css({'fill':this.default_attr.fill});this.selected=!1};function Marker(options,scale,mapsvg){if(!options.id||!options.src)return!1;var img=$('<img id="'+options.id+'" src="'+options.src+'"/>').css({width:options.width+'px',height:options.height+'px',left:-options.width/2+'px','margin-top':-options.height+'px'}).addClass('mapsvg-marker');MapObject.call(this,img);this.mapsvg=mapsvg;this.src=options.src;this.setId(options.id);this.mapsvg_type='marker';this.x=parseFloat(options.x);this.y=parseFloat(options.y);this.xy=[this.x,this.y];this.width=parseFloat(options.width);this.height=parseFloat(options.height);this.tooltip=options.tooltip;this.popover=options.popover;this.href=options.href;this.target=options.target;this.default={x:this.x,y:this.y,width:this.width,height:this.height};this.geoCoords=options.geoCoords;this.attached=options.attached==undefined?!0:MapSVG.parseBoolean(options.attached);this.isLink=options.isLink==undefined?!1:MapSVG.parseBoolean(options.isLink);this.urlField=options.urlField;this.dataId=options.dataId==undefined?null:parseInt(options.dataId);this.adjustPosition()}
MapSVG.extend(Marker,MapObject);Marker.prototype.getOptions=function(){var o={id:this.id,attached:this.attached,isLink:this.isLink,urlField:this.urlField,dataId:this.dataId,tooltip:this.tooltip,popover:this.popover,href:this.href,target:this.target,data:this.data,src:this.src,width:this.default.width,height:this.default.height,x:this.x,y:this.y,geoCoords:this.geoCoords};$.each(o,function(key,val){if(val==undefined){delete o[key]}});return o};Marker.prototype.update=function(data,mapScale){for(var key in data){var setter='set'+MapSVG.ucfirst(key);if(setter in this)
this[setter](data[key],mapScale)}};Marker.prototype.setSrc=function(src,mapScale){if(!src)
return!1;src=MapSVG.safeURL(src);mapScale=mapScale||this.mapScale;var img=new Image();var marker=this;this.src=src;img.onload=function(){marker.default.width=this.width;marker.default.height=this.height;marker.attr({x:marker.x,y:marker.y,width:this.width,height:this.height});marker.width=this.width;marker.height=this.height;marker.node[0].setAttribute('src',src);marker.adjustPosition(mapScale)};img.src=src};Marker.prototype.setXy=function(xy){this.x=xy[0];this.y=xy[1];this.xy=[this.x,this.y];if(this.mapsvg.getData().mapIsGeo)
this.geoCoords=this.mapsvg.convertSVGToGeo(xy[0],xy[1]);this.adjustPosition();if(this.onChange)
this.onChange.call(this)};Marker.prototype.moveToClick=function(xy){var _data=this.mapsvg.getData();var markerOptions={};xy[0]=xy[0]+_data.viewBox[0];xy[1]=xy[1]+_data.viewBox[1];if(_data.mapIsGeo)
this.geoCoords=this.mapsvg.convertSVGToGeo(xy[0],xy[1]);markerOptions.xy=xy;this.update(markerOptions)};Marker.prototype.adjustPosition=function(mapScale){var _this=this;var pos=_this.mapsvg.convertSVGToPixel([this.x,this.y]);this.node.css({'transform':'translate('+pos[0]+'px,'+pos[1]+'px)'})};Marker.prototype.setGeoCoords=function(coords){if(typeof coords=="string"){coords=coords.trim().split(',');coords=[parseFloat(coords[0]),parseFloat(coords[1])]}
if(typeof coords=='object'&&coords.length==2){if($.isNumeric(coords[0])&&$.isNumeric(coords[1])){var xy=this.mapsvg.convertGeoToSVG(coords);this.setXy(xy)}}};Marker.getDefaultCoords=function(markerX,markerY,markerWidth,markerHeight,mapScale){markerX=parseFloat(markerX);markerY=parseFloat(markerY);markerWidth=parseFloat(markerWidth);markerHeight=parseFloat(markerHeight);return[markerX,markerY]};Marker.prototype.drag=function(startCoords,scale,endCallback,clickCallback){var _this=this;this.ox=this.x;this.oy=this.y;$('body').on('mousemove.drag.mapsvg',function(e){e.preventDefault();_this.mapsvg.getData().$map.addClass('no-transitions');var mouseNew=MapSVG.mouseCoords(e);var dx=mouseNew.x-startCoords.x;var dy=mouseNew.y-startCoords.y;_this.setXy([_this.ox+dx/scale,_this.oy+dy/scale])});$('body').on('mouseup.drag.mapsvg',function(e){e.preventDefault();_this.undrag();var mouseNew=MapSVG.mouseCoords(e);var dx=mouseNew.x-startCoords.x;var dy=mouseNew.y-startCoords.y;_this.setXy([_this.ox+dx/scale,_this.oy+dy/scale])
endCallback.call(_this);if(_this.ox==_this.x&&_this.oy==_this.y)
clickCallback.call(_this)})};Marker.prototype.undrag=function(){$('body').off('.drag.mapsvg');this.mapsvg.getData().$map.removeClass('no-transitions')};Marker.prototype.delete=function(){if(this.href)
this.node.parent('a').empty().remove();this.mapsvg.getData().$map.find('#'+this.id).empty().remove()};Marker.prototype.setObject=function(obj){this.object=obj;this.databaseObject=obj;this.objects=[obj]};var scripts=document.getElementsByTagName('script');var myScript=scripts[scripts.length-1].src.split('/');myScript.pop();var pluginJSURL=myScript.join('/')+'/';myScript.pop();var pluginRootURL=myScript.join('/')+'/';var instances={};var globalID=0;var defaults={markerLastID:0,googleMaps:{on:!1},events:{},regionLastID:0,dataLastID:1,disableAll:!1,width:null,height:null,lockAspectRatio:!0,padding:{top:0,left:0,right:0,bottom:0},maxWidth:null,maxHeight:null,minWidth:null,minHeight:null,loadingText:'Loading map...',colors:{baseDefault:"#000000",background:"#eeeeee",selected:40,hover:20,directory:'#fafafa',status:{}},regions:{},markers:[],viewBox:[],cursor:'default',onClick:null,mouseOver:null,mouseOut:null,menuOnClick:null,beforeLoad:null,afterLoad:null,zoom:{on:!1,limit:[0,10],delta:2,buttons:{on:!0,location:'right'},mousewheel:!0},scroll:{on:!1,limit:!1,background:!1,spacebar:!1},responsive:!0,tooltips:{mode:'off',on:!1,priority:'local',position:'bottom-right'},popovers:{mode:"off",on:!1,priority:'local',position:'top',centerOn:!1},multiSelect:!1,regionStatuses:{'1':{"label":"Enabled","value":'1',"color":"","disabled":!1},'0':{"label":"Disabled","value":'0',"color":"","disabled":!0}},events:{'afterLoad':null,'beforeLoad':null,'databaseLoaded':null,'click.region':null,'mouseover.region':null,'mouseout.region':null,'click.marker':null,'mouseover.marker':null,'mouseout.marker':null,'click.directoryItem':null,'mouseover.directoryItem':null,'mouseout.directoryItem':null,'shown.popover':null,'shown.detailsView':null,'closed.popover':null,'closed.detailsView':null},templates:{popoverRegion:'',popoverMarker:'',tooltipRegion:'',tooltipMarker:'',directoryItem:'',detailsView:'',detailsViewRegion:''},gauge:{on:!1,labels:{low:"low",high:"high"},colors:{lowRGB:null,highRGB:null,low:"#550000",high:"#ee0000"},min:0,max:0},menu:{on:!1,containerId:"mapsvg-menu-regions",template:function(region){return'<li><a href="#'+region.id+'">'+(region.title||region.id)+'</a></li>'}},menuMarkers:{on:!1,containerId:"mapsvg-menu-markers",template:function(marker){return'<li><a href="#'+marker.id+'">'+marker.id+'</a></li>'}}};var markerOptions={'src':pluginRootURL+'markers/pin1_red.png'};mapSVG=function(elem,options){var _data;this.methods={prototypes:{'MapObject':MapObject,'Region':Region,'Marker':Marker},functionFromString:function(string){var func;var error=!1;var fn=string.trim();if(fn.indexOf("{")==-1||fn.indexOf("function")!==0||fn.indexOf("(")==-1){return{error:"MapSVG user function error: no function body."}}
var fnBody=fn.substring(fn.indexOf("{")+1,fn.lastIndexOf("}"));var params=fn.substring(fn.indexOf("(")+1,fn.indexOf(")"));try{func=new Function(params,fnBody)}catch(err){error=err}
if(!error)
return func;else return{error:{line:error.line,text:"MapSVG user function error: (line "+error.line+"): "+error.message}}},getOptions:function(forTemplate,forWeb){var options=$.extend(!0,{},_data.options);options.viewBox=_data._viewBox;delete options.markers;if(forTemplate){options.regions=[];_data.regions.forEach(function(r){options.regions.push(r.getOptions(forTemplate))});options.markers=_data.options.markers}else{_data.regions.forEach(function(r){r.changed()&&(options.regions[r.id]=r.getOptions())});if(_data.markers.length>0)
options.markers=[];_data.markers.forEach(function(m){options.markers.push(m.getOptions())})}
if(forWeb)
$.each(options,function(key,val){if(JSON.stringify(val)==JSON.stringify(defaults[key]))
delete options[key]});return options},update:function(options){for(var key in options){if(key=="regions"){$.each(options.regions,function(id,regionOptions){var region=_this.getRegion(id);region&&region.update(regionOptions);if(regionOptions.gaugeValue!=undefined){_this.updateGaugeMinMax();_this.regionsRedrawColors()}
if(regionOptions.disabled!=undefined){_this.deselectRegion(region);_data.options.regions[id]=_data.options.regions[id]||{};_data.options.regions[id].disabled=region.disabled}})}else if(key=="markers"){$.each(options.markers,function(id,markerOptions){var marker=_this.getMarker(id);marker&&marker.update(markerOptions)})}else{var setter='set'+MapSVG.ucfirst(key);if(_this.hasOwnProperty(setter))
this[setter](options[key]);else _data.options[key]=options[key]}}},setTitle:function(title){title&&(_data.options.title=title)},setDisableLinks:function(on){on=MapSVG.parseBoolean(on);if(on){_data.$map.on('click.a.mapsvg','a',function(e){e.preventDefault()})}else{_data.$map.off('click.a.mapsvg')}
_data.disableLinks=on},setLoadingText:function(val){_data.options.loadingText=val},setLockAspectRatio:function(val){_data.options.lockAspectRatio=MapSVG.parseBoolean(val)},setOnClick:function(h){_data.options.onClick=h||undefined},setMouseOver:function(h){_data.options.mouseOver=h||undefined},setMouseOut:function(h){_data.options.mouseOut=h||undefined},setBeforeLoad:function(h){_data.options.beforeLoad=h||undefined},setAfterLoad:function(h){_data.options.afterLoad=h||undefined},setMarkerEditHandler:function(handler){_data.markerEditHandler=handler},setRegionEditHandler:function(handler){_data.regionEditHandler=handler},setDisableAll:function(on){on=MapSVG.parseBoolean(on);$.extend(!0,_data.options,{disableAll:on});_data.regions.forEach(function(r){r.setDisabled()})},setColors:function(colors){$.extend(!0,_data.options,{colors:colors});$.each(_data.options.colors,function(key,color){if(color===null||color=="")
delete _data.options.colors[key]});if(colors.background)
_data.$map.css({'background':_data.options.colors.background});if(colors.hover)
_data.options.colors.hover=(colors.hover==""+parseInt(colors.hover))?parseInt(colors.hover):colors.hover;if(colors.selected)
_data.options.colors.selected=(colors.selected==""+parseInt(colors.selected))?parseInt(colors.selected):colors.selected;_this.regionsRedrawColors()},setTooltips:function(options){if(typeof options.mode=="string"&&options.mode.indexOf("function")==0)
options.mode=_this.functionFromString(options.mode);_data.options.tooltips.on=_data.options.tooltips.mode!='off';$.extend(!0,_data.options,{tooltips:options});_data.tooltip=_data.tooltip||{posOriginal:{},posShifted:{},posShiftedPrev:{},mirror:{}};_data.tooltip.posOriginal={};_data.tooltip.posShifted={};_data.tooltip.posShiftedPrev={};_data.tooltip.mirror={};if(_data.tooltip.container){_data.tooltip.container[0].className=_data.tooltip.container[0].className.replace(/(^|\s)mapsvg-tt-\S+/g,'')}else{_data.tooltip.container=$('<div />').addClass('mapsvg-tooltip');_data.$map.append(_data.tooltip.container)}
var ex=_data.options.tooltips.position.split('-');if(ex[0].indexOf('top')!=-1||ex[0].indexOf('bottom')!=-1){_data.tooltip.posOriginal.topbottom=ex[0]}
if(ex[0].indexOf('left')!=-1||ex[0].indexOf('right')!=-1){_data.tooltip.posOriginal.leftright=ex[0]}
if(ex[1]){_data.tooltip.posOriginal.leftright=ex[1]}
var event='mousemove.tooltip.mapsvg-'+_data.$map.attr('id');_data.tooltip.container.addClass('mapsvg-tt-'+_data.options.tooltips.position);$('body').off(event).on(event,function(e){MapSVG.mouse=MapSVG.mouseCoords(e);_data.tooltip.container[0].style.left=(e.clientX+$(window).scrollLeft()-_data.$map.offset().left)+'px';_data.tooltip.container[0].style.top=(e.clientY+$(window).scrollTop()-_data.$map.offset().top)+'px';var m={x:e.clientX+$(window).scrollLeft(),y:e.clientY+$(window).scrollTop()};var tbbox=_data.tooltip.container[0].getBoundingClientRect();var mbbox=_data.$map[0].getBoundingClientRect();if(m.x>mbbox.right||m.y>mbbox.bottom||m.x<mbbox.left||m.y<mbbox.top){return}
if(_data.tooltip.mirror.top||_data.tooltip.mirror.bottom){if(_data.tooltip.mirror.top&&m.y>_data.tooltip.mirror.top){_data.tooltip.mirror.top=!1;delete _data.tooltip.posShifted.topbottom}else if(_data.tooltip.mirror.bottom&&m.y<_data.tooltip.mirror.bottom){_data.tooltip.mirror.bottom=!1;delete _data.tooltip.posShifted.topbottom}}else{if(tbbox.bottom<mbbox.top+tbbox.height){_data.tooltip.posShifted.topbottom='bottom';_data.tooltip.mirror.top=m.y}else if(tbbox.top>mbbox.bottom-tbbox.height){_data.tooltip.posShifted.topbottom='top';_data.tooltip.mirror.bottom=m.y}}
if(_data.tooltip.mirror.right||_data.tooltip.mirror.left){if(_data.tooltip.mirror.left&&m.x>_data.tooltip.mirror.left){_data.tooltip.mirror.left=!1;delete _data.tooltip.posShifted.leftright}else if(_data.tooltip.mirror.right&&m.x<_data.tooltip.mirror.right){_data.tooltip.mirror.right=!1;delete _data.tooltip.posShifted.leftright}}else{if(tbbox.right<mbbox.left+tbbox.width){_data.tooltip.posShifted.leftright='right';_data.tooltip.mirror.left=m.x}else if(tbbox.left>mbbox.right-tbbox.width){_data.tooltip.posShifted.leftright='left';_data.tooltip.mirror.right=m.x}}
var pos=$.extend({},_data.tooltip.posOriginal,_data.tooltip.posShifted);var _pos=[];pos.topbottom&&_pos.push(pos.topbottom);pos.leftright&&_pos.push(pos.leftright);pos=_pos.join('-');if(_data.tooltip.posShifted.topbottom!=_data.tooltip.posOriginal.topbottom||_data.tooltip.posShifted.leftright!=_data.tooltip.posOriginal.leftright){_data.tooltip.container[0].className=_data.tooltip.container[0].className.replace(/(^|\s)mapsvg-tt-\S+/g,'');_data.tooltip.container.addClass('mapsvg-tt-'+pos);_data.tooltip.posShiftedPrev=pos}})},setPopovers:function(options){if(typeof options.mode=="string"&&options.mode.indexOf("function")==0){options.mode=_this.functionFromString(options.mode)}
$.extend(!0,_data.options,{popovers:options});_data.options.popovers.on=_data.options.popovers.mode!='off';_data.options.popovers.centerOn=MapSVG.parseBoolean(_data.options.popovers.centerOn);if(!_data.mapPopover){_data.mapPopover=$('<div />').addClass('mapsvg-popover');_data.mapPopover.closeButton=$('<div class="mapsvg-popover-close"></div>');_data.mapPopover.contentDiv=$('<div class="mapsvg-popover-content"></div>');_data.mapPopover.append(_data.mapPopover.contentDiv);_data.mapPopover.append(_data.mapPopover.closeButton);_data.mapPopover.css({width:_data.options.popovers.width+(_data.options.popovers.width=='auto'?'':'px'),height:_data.options.popovers.height+(_data.options.popovers.height=='auto'?'':'px')});_data.layers.popovers.append(_data.mapPopover)}
if(_data.options.popovers.mobileFullscreen&&MapSVG.isPhone){$('body').toggleClass('mapsvg-fullscreen-popovers',!0);_data.mapPopover.appendTo('body')}
_data.mapPopover.closeButton.off();_data.mapPopover.closeButton.on('click touchend',function(e){_this.hidePopover();_this.deselectRegion()})},setRegionPrefix:function(prefix){_data.options.regionPrefix=prefix},setInitialViewBox:function(v){if(typeof v=='string')
v=v.trim().split(' ');_data._viewBox=[parseFloat(v[0]),parseFloat(v[1]),parseFloat(v[2]),parseFloat(v[3])];_data.zoomLevel=0},setViewBoxOnStart:function(){_data.viewBoxFull=_data.svgDefault.viewBox;_data.viewBoxFake=_data.viewBox;_data.whRatioFull=_data.viewBoxFull[2]/_data.viewBox[2];_data.$svg[0].setAttribute('viewBox',_data.viewBoxFull);_data.vbstart=1},setViewBox:function(v,skipAdjustments){if(typeof v=='string'){v=v.trim().split(' ')}
var d=(v&&v.length==4)?v:_data.svgDefault.viewBox;var isZooming=parseInt(d[2])!=_data.viewBox[2]||parseInt(d[3])!=_data.viewBox[3];_data.viewBox=[parseFloat(d[0]),parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3])];_data.whRatio=_data.viewBox[2]/_data.viewBox[3];!_data.vbstart&&_this.setViewBoxOnStart();if(!v){_data._viewBox=_data.viewBox;_data._scale=1}
var p=_data.options.padding;if(p.top){_data.viewBox[1]-=p.top;_data.viewBox[3]+=p.top}
if(p.right){_data.viewBox[2]+=p.right}
if(p.bottom){_data.viewBox[3]+=p.bottom}
if(p.left){_data.viewBox[0]-=p.left;_data.viewBox[2]+=p.left}
_data.scale=_this.getScale();_data.superScale=_data.whRatioFull*_data.svgDefault.viewBox[2]/_data.viewBox[2];_data.scroll=_data.scroll||{};_data.scroll.tx=(_data.svgDefault.viewBox[0]-_data.viewBox[0])*_data.scale;_data.scroll.ty=(_data.svgDefault.viewBox[1]-_data.viewBox[1])*_data.scale;var wbNav=!1;$('.map-country .other-items span').on("click",function(){wbNav=!0});var wbResponsive=!0;if($(".tx-wb-map .map-content").css('position')=='relative'){wbResponsive=!1}
if(((_data.viewBox[0]!=0&&isZooming)||wbNav)&&wbResponsive){_data.scroll.tx=((_data.svgDefault.viewBox[0]-_data.viewBox[0])*_data.scale)-100}
_data.$scrollpane.css({'transform':'translate('+_data.scroll.tx+'px,'+_data.scroll.ty+'px)'});_data.$svg.css({'transform':'scale('+_data.superScale+')'});if(isZooming&&!skipAdjustments){_this.updateSize()}
return!0},setViewBoxReal:function(bbox){_data.$svg[0].setAttribute('viewBox',bbox.join(' '));var tx=(-bbox[0])*_data.scale;var ty=(-bbox[1])*_data.scale;_data.$layers.css({'transform':'translate('+_data.scroll.tx+'px,'+_data.scroll.ty+'px)'})},setViewBoxByGoogleMapBounds:function(){var googleMapBounds=_data.googleMaps.map.getBounds();var ne=[googleMapBounds.getNorthEast().lat(),googleMapBounds.getNorthEast().lng()];var sw=[googleMapBounds.getSouthWest().lat(),googleMapBounds.getSouthWest().lng()];var xyNE=_this.convertGeoToSVG(ne);var xySW=_this.convertGeoToSVG(sw);if(xyNE[0]<xySW[0]){var mapPointsWidth=(_data.svgDefault.viewBox[2]/_data.mapLonDelta)*360;xySW[0]=-(mapPointsWidth-xySW[0])}
var width=xyNE[0]-xySW[0];var height=xySW[1]-xyNE[1];_this.setViewBox([xySW[0],xyNE[1],width,height])},redraw:function(){_data.$map.css({width:_data.$map.width(),height:_data.$map.width()/_data.whRatio});_data.$map.css({width:'auto'});_this.updateSize()},setPadding:function(options){options=options||_data.options.padding;for(var i in options){options[i]=options[i]?parseInt(options[i]):0}
$.extend(_data.options.padding,options);_this.setViewBox();_this.trigger('sizeChange')},trigger:function(event){_data.eventHandlers&&_data.eventHandlers[event]&&_data.eventHandlers[event]()},setSize:function(width,height,responsive){_data.options.width=parseFloat(width);_data.options.height=parseFloat(height);_data.options.responsive=responsive!=null?MapSVG.parseBoolean(responsive):_data.options.responsive;if((!_data.options.width&&!_data.options.height)){_data.options.width=_data.svgDefault.width;_data.options.height=_data.svgDefault.height}else if(!_data.options.width&&_data.options.height){_data.options.width=parseInt(_data.options.height*_data.svgDefault.width/_data.svgDefault.height)}else if(_data.options.width&&!_data.options.height){_data.options.height=parseInt(_data.options.width*_data.svgDefault.height/_data.svgDefault.width)}
_data.whRatio=_data.options.width/_data.options.height;_data.scale=_this.getScale();_this.setResponsive(responsive);if(_data.markers)
_this.markersAdjustPosition();return[_data.options.width,_data.options.height]},setResponsive:function(on,force){on=on!=undefined?MapSVG.parseBoolean(on):_data.options.responsive;$(window).off('resize.mapsvg');if(on){if(!_data.$map.hasClass('mapsvg-responsive')){_data.$map.addClass('mapsvg-responsive');_data.$map.css({'width':'auto'})}
_data.whRatio=_data.viewBox[2]/_data.viewBox[3];_data.$map.height(_data.$map.width()/_data.whRatio);$(window).on('resize.mapsvg',function(){_data.$map.height(_data.$map.width()/_data.whRatio);_this.setViewBox(_data.viewBox);_this.updateSize()})}else{_data.$map.removeClass('mapsvg-responsive');_data.$map.css({'width':_data.options.width+'px','height':_data.options.height+'px'})}
$.extend(!0,_data.options,{responsive:on});_this.setViewBox(_data.viewBox);_this.updateSize()},setScroll:function(options,skipEvents){options.on!=undefined&&(options.on=MapSVG.parseBoolean(options.on));options.limit!=undefined&&(options.limit=MapSVG.parseBoolean(options.limit));$.extend(!0,_data.options,{scroll:options});!skipEvents&&_this.setEventHandlers()},setZoom:function(options){options=options||{};options.on!=undefined&&(options.on=MapSVG.parseBoolean(options.on));options.mousewheel!=undefined&&(options.mousewheel=MapSVG.parseBoolean(options.mousewheel));options.delta=2;if(options.limit){if(typeof options.limit=='string')
options.limit=options.limit.split(';');options.limit=[parseInt(options.limit[0]),parseInt(options.limit[1])]}
if(!_data.zoomLevels){_data.zoomLevels={};var _scale=1;for(var i=0;i<=20;i++){_data.zoomLevels[i+'']={_scale:_scale,viewBox:[0,0,_data._viewBox[2]/_scale,_data._viewBox[3]/_scale]};_scale=_scale*_data.options.zoom.delta}
_scale=1;for(var i=0;i>=-20;i--){_data.zoomLevels[i+'']={_scale:_scale,viewBox:[0,0,_data._viewBox[2]/_scale,_data._viewBox[3]/_scale]};_scale=_scale/_data.options.zoom.delta}}
$.extend(!0,_data.options,{zoom:options});_data.$scrollpane.off('mousewheel.mapsvg');if(_data.options.zoom.on&&_data.options.zoom.mousewheel){if(MapSVG.browser.firefox){_data.firefoxScroll={insideIframe:!1};_data.$map.on('mouseenter',function(){_data.firefoxScroll.insideIframe=!0;_data.firefoxScroll.scrollX=window.scrollX;_data.firefoxScroll.scrollY=window.scrollY}).on('mouseleave',function(){_data.firefoxScroll.insideIframe=!1});$(document).scroll(function(){if(_data.firefoxScroll.insideIframe)
window.scrollTo(_data.firefoxScroll.scrollX,_data.firefoxScroll.scrollY)})}
_data.$scrollpane.on('mousewheel.mapsvg',function(event,delta,deltaX,deltaY){event.preventDefault();var d=delta>0?1:-1;var m=MapSVG.mouseCoords(event);m.x=m.x-_data.$svg.offset().left;m.y=m.y-_data.$svg.offset().top;var center=_this.convertPixelToSVG([m.x,m.y]);d>0?_this.zoomIn(center):_this.zoomOut(center);return!1})}
_this.setZoomButtons();_data.canZoom=!0},setZoomButtons:function(){var loc=_data.options.zoom.buttons.location||'hide';if(!_data.zoomButtons){var buttons=$('<div />').addClass('mapsvg-buttons');buttons.zoomIn=$('<div />').addClass('mapsvg-btn-zoom in');var event=MapSVG.touchDevice?'touchend':'click';buttons.zoomIn.on(event,function(e){e.stopPropagation();_this.zoomIn()});buttons.zoomOut=$('<div />').addClass('mapsvg-btn-zoom out');buttons.zoomOut.on(event,function(e){e.stopPropagation();_this.zoomOut()});buttons.append(buttons.zoomIn).append(buttons.zoomOut);_data.zoomButtons=buttons;_data.$map.append(_data.zoomButtons)}
_data.zoomButtons.removeClass('left');_data.zoomButtons.removeClass('right');loc=='right'&&_data.zoomButtons.addClass('right')||loc=='left'&&_data.zoomButtons.addClass('left');(_data.options.zoom.on&&loc!='hide')?_data.zoomButtons.show():_data.zoomButtons.hide()},setCursor:function(type){type=type=='pointer'?'pointer':'default';_data.options.cursor=type;if(type=='pointer')
_data.$map.addClass('mapsvg-cursor-pointer');else _data.$map.removeClass('mapsvg-cursor-pointer')},setPreloaderText:function(text){_data.options.loadingText=text},setMultiSelect:function(on,deselect){_data.options.multiSelect=MapSVG.parseBoolean(on);if(deselect!==!1)
_this.deselectAllRegions()},setGauge:function(options){options=options||_data.options.gauge;options.on!=undefined&&(options.on=MapSVG.parseBoolean(options.on));$.extend(!0,_data.options,{gauge:options});var needsRedraw=!1;if(!_data.$gauge){_data.$gauge={};_data.$gauge.gradient=$('<td>&nbsp;</td>').addClass('mapsvg-gauge-gradient');_this.setGaugeGradientCSS();_data.$gauge.container=$('<div />').addClass('mapsvg-gauge').hide();_data.$gauge.table=$('<table />');var tr=$('<tr />');_data.$gauge.labelLow=$('<td>'+_data.options.gauge.labels.low+'</td>');_data.$gauge.labelHigh=$('<td>'+_data.options.gauge.labels.high+'</td>');tr.append(_data.$gauge.labelLow);tr.append(_data.$gauge.gradient);tr.append(_data.$gauge.labelHigh);_data.$gauge.table.append(tr);_data.$gauge.container.append(_data.$gauge.table);_data.$map.append(_data.$gauge.container)}
if(!_data.options.gauge.on&&_data.$gauge.container.is(":visible")){_data.$gauge.container.hide();needsRedraw=!0}else if(_data.options.gauge.on&&!_data.$gauge.container.is(":visible")){_data.$gauge.container.show();needsRedraw=!0}
if(options.colors){_data.options.gauge.colors.lowRGB=MapSVG.tinycolor(_data.options.gauge.colors.low).toRgb();_data.options.gauge.colors.highRGB=MapSVG.tinycolor(_data.options.gauge.colors.high).toRgb();_data.options.gauge.colors.diffRGB={r:_data.options.gauge.colors.highRGB.r-_data.options.gauge.colors.lowRGB.r,g:_data.options.gauge.colors.highRGB.g-_data.options.gauge.colors.lowRGB.g,b:_data.options.gauge.colors.highRGB.b-_data.options.gauge.colors.lowRGB.b,a:_data.options.gauge.colors.highRGB.a-_data.options.gauge.colors.lowRGB.a};needsRedraw=!0;_data.$gauge&&_this.setGaugeGradientCSS()}
if(options.labels){_data.$gauge.labelLow.html(_data.options.gauge.labels.low);_data.$gauge.labelHigh.html(_data.options.gauge.labels.high)}
needsRedraw&&_this.redrawGauge()},redrawGauge:function(){_this.updateGaugeMinMax();_this.regionsRedrawColors()},updateGaugeMinMax:function(){_data.options.gauge.min=0;_data.options.gauge.max=!1;var values=[];_data.regions.forEach(function(r){if(r.gaugeValue!=null&&r.gaugeValue!=undefined)values.push(r.gaugeValue)});if(values.length>0){_data.options.gauge.min=values.length==1?0:Math.min.apply(null,values);_data.options.gauge.max=Math.max.apply(null,values);_data.options.gauge.maxAdjusted=_data.options.gauge.max-_data.options.gauge.min}},setGaugeGradientCSS:function(){_data.$gauge.gradient.css({background:_data.options.gauge.colors.low,background:'-moz-linear-gradient(left, '+_data.options.gauge.colors.low+' 1%,'+_data.options.gauge.colors.high+' 100%)',background:'-webkit-gradient(linear, left top, right top, color-stop(1%,'+_data.options.gauge.colors.low+'), color-stop(100%,'+_data.options.gauge.colors.high+'))',background:'-webkit-linear-gradient(left, '+_data.options.gauge.colors.low+' 1%,'+_data.options.gauge.colors.high+' 100%)',background:'-o-linear-gradient(left, '+_data.options.gauge.colors.low+' 1%,'+_data.options.gauge.colors.high+' 100% 100%)',background:'-ms-linear-gradient(left,  '+_data.options.gauge.colors.low+' 1%,'+_data.options.gauge.colors.high+' 100% 100%)',background:'linear-gradient(to right,'+_data.options.gauge.colors.low+' 1%,'+_data.options.gauge.colors.high+' 100%)','filter':'progid:DXImageTransform.Microsoft.gradient( startColorstr="'+_data.options.gauge.colors.low+'", endColorstr="'+_data.options.gauge.colors.high+'",GradientType=1 )'})},setCss:function(css){_data.options.css=css},setMenu:function(options){options=options||_data.options.menu;options.on!=undefined&&(options.on=MapSVG.parseBoolean(options.on));$.extend(!0,_data.options,{menu:options});_data.$menu&&_data.$menu.off('click.menu.mapsvg');if(_data.options.menu.on){var menuContainer=$('#'+_data.options.menu.containerId);if(menuContainer.length){if(!_data.$menu){if(!menuContainer.is('ul')){_data.$menu=$('<ul />').appendTo(menuContainer)}else{_data.$menu=menuContainer}
if(!_data.$menu.hasClass('mapsvg-menu'))
_data.$menu.addClass('mapsvg-menu')}
if(_data.$menu.children().length===0)
_data.regions.forEach(function(region,i){if(!region.disabled)
_data.$menu.append(_data.options.menu.template(region))});_data.$menu.on('click.menu.mapsvg','a',function(e){e.preventDefault();var regionID=$(this).attr('href').replace('#','');var region=_this.getRegion(regionID);var center=region.getCenter();e.clientX=center[0];e.clientY=center[1];_this.regionClickHandler(e,region)}).on('mouseover.menu.mapsvg','a',function(e){var regionID=$(this).attr('href').replace('#','');var region=_this.getRegion(regionID);if(!region.selected)
region.highlight()}).on('mouseout.menu.mapsvg','a',function(e){var regionID=$(this).attr('href').replace('#','');var region=_this.getRegion(regionID);if(!region.selected)
region.unhighlight()})}}},setMenuMarkers:function(options){options=options||_data.options.menuMarkers;options.on!=undefined&&(options.on=MapSVG.parseBoolean(options.on));$.extend(!0,_data.options,{menuMarkers:options});_data.$menuMarkers&&_data.$menuMarkers.off('click.menuMarkers.mapsvg');if(_data.options.menuMarkers.on){var menuContainer=$('#'+_data.options.menuMarkers.containerId);if(menuContainer.length){if(!_data.$menuMarkers){if(!menuContainer.is('ul')){_data.$menuMarkers=$('<ul />').appendTo(menuContainer)}else{_data.$menuMarkers=menuContainer}
if(!_data.$menuMarkers.hasClass('mapsvg-menu-markers'))
_data.$menuMarkers.addClass('mapsvg-menu-markers')}
if(_data.$menuMarkers.children().length===0)
_data.markers.forEach(function(marker,i){_data.$menuMarkers.append(_data.options.menuMarkers.template(marker))});_data.$menuMarkers.on('click.menuMarkers.mapsvg','a',function(e){e.preventDefault();var markerID=$(this).attr('href').replace('#','');var marker=_this.getMarker(markerID);var center=marker.getCenter();e={clientX:center[0],clientY:center[1]};_this.regionClickHandler(e,marker)})}}},getRegion:function(id){return _data.regions[_data.regionsDict[id]]},getMarker:function(id){return _data.markers[_data.markersDict[id]]},checkId:function(id){if(_this.getRegion(id))
return{error:"This ID is already being used by a Region"};else if(_this.getMarker(id))
return{error:"This ID is already being used by another Marker"};else return!0},regionsRedrawColors:function(){_data.regions.forEach(function(region){region.setFill()})},destroy:function(){_data.$map.empty().attr('style','').removeClass('mapsvg mapsvg-responsive');delete instances[_data.$map.attr('id')];return _this},getData:function(){return _data},fitBounds:function(){},getScale:function(){var scale2=_data.$map.width()/_data.viewBox[2];return scale2||1},updateSize:function(){_data.scale=_this.getScale();_this.popoverAdjustPosition();_this.markersAdjustPosition();_this.mapAdjustStrokes();if(_data.directoryWrap)
_data.directoryWrap.height(_data.$map.height())},getViewBox:function(){return _data.viewBox},viewBoxSetBySize:function(width,height){width=parseFloat(width);height=parseFloat(height);_this.setSize(width,height);_data._viewBox=_this.viewBoxGetBySize(width,height);_this.setViewBox(_data._viewBox);$(window).trigger('resize');return _data.viewBox},viewBoxGetBySize:function(width,height){var new_ratio=width/height;var old_ratio=_data.svgDefault.viewBox[2]/_data.svgDefault.viewBox[3];var vb=$.extend([],_data.svgDefault.viewBox);if(new_ratio!=old_ratio){if(new_ratio>old_ratio){vb[2]=_data.svgDefault.viewBox[3]*new_ratio;vb[0]=_data.svgDefault.viewBox[0]-((vb[2]-_data.svgDefault.viewBox[2])/2)}else{vb[3]=_data.svgDefault.viewBox[2]/new_ratio;vb[1]=_data.svgDefault.viewBox[1]-((vb[3]-_data.svgDefault.viewBox[3])/2)}}
return vb},viewBoxReset:function(toInitial){if(toInitial){var v=_data._viewBox||_data.svgDefault.viewBox;_data.zoomLevel=0;_data._scale=1;_this.setViewBox(v)}else{_this.setViewBox()}},getGeoViewBox:function(){var v=_data.viewBox;var leftLon=_this.convertSVGToGeo(v[0],v[1])[1];var rightLon=_this.convertSVGToGeo(v[0]+v[2],v[1])[1];var topLat=_this.convertSVGToGeo(v[0],v[1])[0];var bottomLat=_this.convertSVGToGeo(v[0],v[1]+v[3])[0];return[leftLon,topLat,rightLon,bottomLat]},mapAdjustStrokes:function(){_data.regions.forEach(function(region){if(region.svg_style['stroke-width']){region.node.css('stroke-width','1px');region.node.css('stroke','rgb(221,221,221)')}})},zoomIn:function(center){if(_data.canZoom){_data.canZoom=!1;setTimeout(function(){_data.canZoom=!0},700);_this.zoom(1,center)}},zoomOut:function(center){if(_data.canZoom){_data.canZoom=!1;setTimeout(function(){_data.canZoom=!0},700);_this.zoom(-1,center)}},touchZoomStart:function(touchScale){var touchZoomStart=_data._scale;_data.scale=_data.scale*zoom_k;var zoom=_data._scale;_data._scale=_data._scale*zoom_k;var vWidth=_data.viewBox[2];var vHeight=_data.viewBox[3];var newViewBox=[];newViewBox[2]=_data._viewBox[2]/_data._scale;newViewBox[3]=_data._viewBox[3]/_data._scale;newViewBox[0]=_data.viewBox[0]+(vWidth-newViewBox[2])/2;newViewBox[1]=viewBox[1]+(vHeight-newViewBox[3])/2;_this.setViewBox(newViewBox)},touchZoomMove:function(){},touchZoomEnd:function(){},zoomTo:function(region,padding){var bbox=[],viewBox,viewBoxPrev=[];if(typeof region=='string'){region=_this.getRegion(region)}
if(typeof region=='object'&&region.length!==undefined){var _bbox;bbox=region[0].getBBox();var xmin=[bbox[0]];var ymin=[bbox[1]];var w=(bbox[0]+bbox[2]);var xmax=[w];var h=(bbox[1]+bbox[3]);var ymax=[h];if(region.length>1){for(var i=1;i<region.length;i++){_bbox=region[i].getBBox();xmin.push(_bbox[0]);ymin.push(_bbox[1]);var _w=_bbox[0]+_bbox[2];var _h=_bbox[1]+_bbox[3];xmax.push(_w);ymax.push(_h)}}
xmin=Math.min.apply(Math,xmin);ymin=Math.min.apply(Math,ymin);var w=Math.max.apply(Math,xmax)-xmin;var h=Math.max.apply(Math,ymax)-ymin;bbox=[xmin,ymin,w,h]}else{bbox=region.getBBox()}
var viewBoxPrev=[];padding=0;$.each(_data.zoomLevels,function(key,level){if(viewBoxPrev.length){if(bbox[2]>bbox[3]&&((viewBoxPrev[2]>bbox[2])&&(bbox[2]>level.viewBox[2]))){_data.zoomLevel=parseInt(key)-1;var vb=_data.zoomLevels[_data.zoomLevel].viewBox;_this.setViewBox([bbox[0]-vb[2]/2+bbox[2]/2,bbox[1]-vb[3]/2+bbox[3]/2,vb[2],vb[3]]);_data._scale=_data.zoomLevels[_data.zoomLevel]._scale}else if(bbox[2]<bbox[3]&&((viewBoxPrev[3]>bbox[3])&&(bbox[3]>level.viewBox[3]))){_data.zoomLevel=parseInt(key)-1;var vb=_data.zoomLevels[_data.zoomLevel].viewBox;_this.setViewBox([bbox[0]-vb[2]/2+bbox[2]/2,bbox[1]-vb[3]/2+bbox[3]/2,vb[2],vb[3]]);_data._scale=_data.zoomLevels[_data.zoomLevel]._scale}}
viewBoxPrev=level.viewBox})},centerOn:function(region,yShift){var bbox=region.getBBox();var vb=_data.viewBox;yShift=yShift!==undefined?yShift:vb[3]*.25;_this.setViewBox([bbox[0]-vb[2]/2+bbox[2]/2,bbox[1]-vb[3]/2+bbox[3]/2-yShift,vb[2],vb[3]])},zoom:function(delta,center,exact){var vWidth=_data.viewBox[2];var vHeight=_data.viewBox[3];var newViewBox=[];var isInZoomRange=_data.zoomLevel>=_data.options.zoom.limit[0]&&_data.zoomLevel<=_data.options.zoom.limit[1];if(!exact){var d=delta>0?1:-1;if(!_data.zoomLevels[_data.zoomLevel+d])
return;_data._zoomLevel=_data.zoomLevel;_data._zoomLevel+=d;if(isInZoomRange&&(_data._zoomLevel>_data.options.zoom.limit[1]||_data._zoomLevel<_data.options.zoom.limit[0]))
return!1;_data.zoomLevel=_data._zoomLevel;var z=_data.zoomLevels[_data.zoomLevel];_data._scale=z._scale;newViewBox=z.viewBox}else{newViewBox[2]=_data._viewBox[2]/exact;newViewBox[3]=_data._viewBox[3]/exact}
shift=[];if(center){var koef=d>0?0.5:-1;shift=[((center[0]-_data.viewBox[0])*koef),((center[1]-_data.viewBox[1])*koef)];newViewBox[0]=_data.viewBox[0]+shift[0];newViewBox[1]=_data.viewBox[1]+shift[1]}else{shift=[(vWidth-newViewBox[2])/2,(vHeight-newViewBox[3])/2];newViewBox[0]=_data.viewBox[0]+shift[0];newViewBox[1]=_data.viewBox[1]+shift[1]}
if(_data.options.scroll.limit){if(newViewBox[0]<_data.svgDefault.viewBox[0])
newViewBox[0]=_data.svgDefault.viewBox[0];else if(newViewBox[0]+newViewBox[2]>_data.svgDefault.viewBox[0]+_data.svgDefault.viewBox[2])
newViewBox[0]=_data.svgDefault.viewBox[0]+_data.svgDefault.viewBox[2]-newViewBox[2];if(newViewBox[1]<_data.svgDefault.viewBox[1])
newViewBox[1]=_data.svgDefault.viewBox[1];else if(newViewBox[1]+newViewBox[3]>_data.svgDefault.viewBox[1]+_data.svgDefault.viewBox[3])
newViewBox[1]=_data.svgDefault.viewBox[1]+_data.svgDefault.viewBox[3]-newViewBox[3]}
_this.setViewBox(newViewBox)},markerDelete:function(marker){var id=marker.id;var test=_data.markers.splice(_data.markersDict[id],1);marker.delete();marker=null;_this.updateMarkersDict();if(_data.markers.length==0)
_data.options.markerLastID=0},markerAdd:function(opts,create){var options=$.extend(!0,{},markerOptions,opts);if(!options.src)
return!1;options.src=MapSVG.safeURL(options.src);if(options.width&&options.height){if(options.geoCoords){var xy=_this.convertGeoToSVG(options.geoCoords)}else if(options.xy||(MapSVG.isNumber(options.x)&&MapSVG.isNumber(options.y))){var xy=options.xy||[options.x,options.y]}else{return!1}
options.x=xy[0];options.y=xy[1];options.xy=xy;options.id=options.id||_this.markerId();if(!options.geoCoords&&_data.mapIsGeo){options.geoCoords=_this.convertSVGToGeo(options.x,options.y)}
var marker=new Marker(options,_data.scale,_this);_data.layers.markers.append(marker.node);marker.href&&marker.setHref(marker.href);_data.markers.push(marker);_data.markersDict[marker.id]=_data.markers.length-1;if(create){if(typeof create=='function'){create(marker)}else{_data.markerEditHandler&&_data.markerEditHandler.call(marker)}}
return marker}else{var img=new Image();img.onload=function(){options.width=this.width;options.height=this.height;return _this.markerAdd(options,create)};img.src=options.src}},markerId:function(){_data.options.markerLastID=_data.options.markerLastID+1;var id='marker_'+(_data.options.markerLastID);if(_data.markersDict[id]!=undefined)
return _this.markerId();else return id},markersAdjustPosition:function(){var dx,dy;_data.markers.forEach(function(marker){marker.adjustPosition(_data.scale)})},markerMoveStart:function(){this.data('ox',parseFloat(this.attr('x')));this.data('oy',parseFloat(this.attr('y')))},markerMove:function(dx,dy){dx=dx/_data.scale;dy=dy/_data.scale;this.attr({x:this.data('ox')+dx,y:this.data('oy')+dy})},markerMoveEnd:function(){if(this.data('ox')==this.attr('x')&&this.data('oy')==this.attr('y')){options.markerEditHandler.call(this)}},setEditingMarker:function(marker_id){_data.editingMarker=_this.getMarker(marker_id)},unsetEditingMarker:function(){_data.editingMarker=null},getEditingMarker:function(){return _data.editingMarker},scrollStart:function(e,mapsvg){if($(e.target).hasClass('mapsvg-btn-zoom')||$(e.target).closest('.mapsvg-gauge').length)
return!1;if(_data.editMarkers.on&&$(e.target).hasClass('class')=='mapsvg-marker')
return!1;_data.isScrolling=!0;_data.$map.addClass('scrolling');e.preventDefault();if(MapSVG.touchDevice){var ce=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0]?e.originalEvent.touches[0]:e}else{var ce=e}
_data.scroll=_data.scroll||{};_data.scroll.vxi=_data.viewBox[0];_data.scroll.vyi=_data.viewBox[1];_data.scroll.x=ce.clientX;_data.scroll.y=ce.clientY;_data.scroll.dx=0;_data.scroll.dy=0;_data.scroll.vx=0;_data.scroll.vy=0;_data.scroll.gx=ce.clientX;_data.scroll.gy=ce.clientY;_data.scroll.tx=_data.scroll.tx||0;_data.scroll.ty=_data.scroll.ty||0;if(e.type=='mousedown'){$(document).on('mousemove.scroll.mapsvg',_this.scrollMove);$(document).on('mouseup.scroll.mapsvg',function(e){_this.scrollEnd(e,mapsvg)})}},scrollMove:function(e){e.preventDefault();var ce=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0]?e.originalEvent.touches[0]:e;_this.panBy((_data.scroll.gx-ce.clientX),(_data.scroll.gy-ce.clientY));_data.scroll.gx=ce.clientX;_data.scroll.gy=ce.clientY;_data.scroll.dx=(_data.scroll.x-ce.clientX);_data.scroll.dy=(_data.scroll.y-ce.clientY);var vx=parseInt(_data.scroll.vxi+_data.scroll.dx/_data.scale);var vy=parseInt(_data.scroll.vyi+_data.scroll.dy/_data.scale);if(_data.options.scroll.limit){if(vx<_data.svgDefault.viewBox[0])
vx=_data.svgDefault.viewBox[0];else if(_data.viewBox[2]+vx>_data.svgDefault.viewBox[0]+_data.svgDefault.viewBox[2])
vx=(_data.svgDefault.viewBox[0]+_data.svgDefault.viewBox[2]-_data.viewBox[2]);if(vy<_data.svgDefault.viewBox[1])
vy=_data.svgDefault.viewBox[1];else if(_data.viewBox[3]+vy>_data.svgDefault.viewBox[1]+_data.svgDefault.viewBox[3])
vy=(_data.svgDefault.viewBox[1]+_data.svgDefault.viewBox[3]-_data.viewBox[3])}
_data.scroll.vx=vx;_data.scroll.vy=vy},scrollEnd:function(e,mapsvg,noClick){_data.isScrolling=!1;_data.$map.removeClass('scrolling');$(document).off('keyup.scroll.mapsvg');$(document).off('mousemove.scroll.mapsvg');$(document).off('mouseup.scroll.mapsvg');if(noClick!==!0&&Math.abs(_data.scroll.dx)<5&&Math.abs(_data.scroll.dy)<5){_this.popoverOffHandler(e);if(_data.editMarkers.on)
_data.clickAddsMarker&&_this.markerAddClickHandler(e);else if(_data.region_clicked)
_this.regionClickHandler(e,_data.region_clicked)}
_data.viewBox[0]=_data.scroll.vx||_data.viewBox[0];_data.viewBox[1]=_data.scroll.vy||_data.viewBox[1]},panBy:function(x,y){var tx=_data.scroll.tx-x;var ty=_data.scroll.ty-y;if(_data.options.scroll.limit){var svg=_data.$svg[0].getBoundingClientRect();var bounds=_data.$map[0].getBoundingClientRect();if(svg.left-x>bounds.left||svg.right-x<bounds.right){tx=_data.scroll.tx}
if(svg.top-y>bounds.top||svg.bottom-y<bounds.bottom){ty=_data.scroll.ty}}
_data.$scrollpane.css({'transform':'translate('+tx+'px,'+ty+'px)'});_data.scroll.tx=tx;_data.scroll.ty=ty;return!0},panTo:function(x,y){},scrollRegionClickHandler:function(e,region){_data.region_clicked=region},touchStart:function(_e,mapsvg){if($(_e.target).hasClass('mapsvg-popover')||$(_e.target).closest('.mapsvg-popover').length){return!0}
_e.preventDefault();if(_data.isScrolling){_this.scrollEnd(_e,mapsvg,!0)}
var e=_e.originalEvent;if(_data.options.zoom.on&&e.touches&&e.touches.length==2){_data.touchZoomStartViewBox=_data.viewBox;_data.touchZoomStartScale=_data.scale;_data.touchZoomEnd=1;_data.scaleDistStart=Math.hypot(e.touches[0].pageX-e.touches[1].pageX,e.touches[0].pageY-e.touches[1].pageY)}else if(e.touches&&e.touches.length==1){_this.scrollStart(_e,mapsvg)}},touchMove:function(_e,mapsvg){if($(_e.target).hasClass('mapsvg-popover')||$(_e.target).closest('.mapsvg-popover').length){return!0}
_e.preventDefault();var e=_e.originalEvent;if(_data.options.zoom.on&&e.touches&&e.touches.length==2){if(!MapSVG.ios){e.scale=Math.hypot(e.touches[0].pageX-e.touches[1].pageX,e.touches[0].pageY-e.touches[1].pageY)/_data.scaleDistStart}
if(e.scale!=1&&_data.canZoom){var d=e.scale>1?1:-1;var cx=e.touches[0].pageX>=e.touches[1].pageX?e.touches[0].pageX-(e.touches[0].pageX-e.touches[1].pageX)/2-_data.$svg.offset().left:e.touches[1].pageX-(e.touches[1].pageX-e.touches[0].pageX)/2-_data.$svg.offset().left;var cy=e.touches[0].pageY>=e.touches[1].pageY?e.touches[0].pageY-(e.touches[0].pageY-e.touches[1].pageY)-_data.$svg.offset().top:e.touches[1].pageY-(e.touches[1].pageY-e.touches[0].pageY)-_data.$svg.offset().top;var center=_this.convertPixelToSVG([cx,cy]);if(d>0)
_this.zoomIn(center);else _this.zoomOut(center)}}else if(_data.isScrolling){_this.scrollMove(_e)}},touchEnd:function(_e,mapsvg){if($(_e.target).hasClass('mapsvg-popover')||$(_e.target).closest('.mapsvg-popover').length){return!0}
_e.preventDefault();var e=_e.originalEvent;if(_data.touchZoomStart){_data.touchZoomStart=!1;_data.touchZoomEnd=!1}else if(_data.isScrolling){_this.scrollEnd(_e,mapsvg)}},markersGroupHide:function(group){for(var i in _data.markers[group]){_data.markers[group][i].hide()}},markersGroupShow:function(group){for(var i in _data.markers[group]){_data.markers[group][i].show()}},regionsGroupSelect:function(group){for(var i in _data.markers[group]){_data.markers[group][i].hide()}},regionsGroupUnselect:function(group){for(var i in _data.markers[group]){_data.markers[group][i].show()}},markersGet:function(){return _data.markers},getSelected:function(){return _data.selected_id},selectRegion:function(id){if(typeof id=="string"){var region=_this.getRegion(id)}else{var region=id}
if(!region)return!1;if(_data.options.multiSelect&&!_data.editRegions.on){if(region.selected){_this.deselectRegion(region);return}}else if(_data.selected_id.length>0){_this.deselectAllRegions()}
_data.selected_id.push(region.id);region.select()},deselectAllRegions:function(){$.each(_data.selected_id,function(index,id){_this.deselectRegion(_this.getRegion(id))})},deselectRegion:function(region){if(!region)
region=_this.getRegion(_data.selected_id[0]);if(region){region.deselect();var i=$.inArray(region.id,_data.selected_id);_data.selected_id.splice(i,1)}},highlightRegions:function(regions){regions.forEach(function(region){if(!region.selected&&!region.disabled){_data.highlightedRegions.push(region);region.highlight()}})},unhighlightRegions:function(){_data.highlightedRegions.forEach(function(region){if(!region.selected&&!region.disabled)
region.unhighlight()});_data.highlightedRegions=[]},convertSVGToPixel:function(xy){var scale=_this.getScale();return[(xy[0]-_data.svgDefault.viewBox[0])*scale,(xy[1]-_data.svgDefault.viewBox[1])*scale]},convertPixelToSVG:function(xy){var scale=_this.getScale();return[(xy[0])/scale+_data.svgDefault.viewBox[0],(xy[1])/scale+_data.svgDefault.viewBox[1]]},convertGeoToSVG:function(coords){var lat=parseFloat(coords[0]);var lon=parseFloat(coords[1]);var x=(lon-_data.geoViewBox.leftLon)*(_data.svgDefault.viewBox[2]/_data.mapLonDelta);var lat=lat*3.14159/180;var worldMapWidth=((_data.svgDefault.viewBox[2]/_data.mapLonDelta)*360)/(2*3.14159);var mapOffsetY=(worldMapWidth/2*Math.log((1+Math.sin(_data.mapLatBottomDegree))/(1-Math.sin(_data.mapLatBottomDegree))));var y=_data.svgDefault.viewBox[3]-((worldMapWidth/2*Math.log((1+Math.sin(lat))/(1-Math.sin(lat))))-mapOffsetY);x+=_data.svgDefault.viewBox[0];y+=_data.svgDefault.viewBox[1];return[x,y]},convertSVGToGeo:function(tx,ty){tx-=_data.svgDefault.viewBox[0];ty-=_data.svgDefault.viewBox[1];var worldMapRadius=_data.svgDefault.viewBox[2]/_data.mapLonDelta*360/(2*Math.PI);var mapOffsetY=(worldMapRadius/2*Math.log((1+Math.sin(_data.mapLatBottomDegree))/(1-Math.sin(_data.mapLatBottomDegree))));var equatorY=_data.svgDefault.viewBox[3]+mapOffsetY;var a=(equatorY-ty)/worldMapRadius;var lat=180/Math.PI*(2*Math.atan(Math.exp(a))-Math.PI/2);var lon=_data.geoViewBox.leftLon+tx/_data.svgDefault.viewBox[2]*_data.mapLonDelta;lat=parseFloat(lat.toFixed(6));lon=parseFloat(lon.toFixed(6));return[lat,lon]},convertGeoBoundsToViewBox:function(sw,ne){var lat=parseFloat(coords[0]);var lon=parseFloat(coords[1]);var x=(lon-_data.geoViewBox.leftLon)*(_data.svgDefault.viewBox[2]/_data.mapLonDelta);var lat=lat*3.14159/180;var worldMapWidth=((_data.svgDefault.viewBox[2]/_data.mapLonDelta)*360)/(2*3.14159);var mapOffsetY=(worldMapWidth/2*Math.log((1+Math.sin(_data.mapLatBottomDegree))/(1-Math.sin(_data.mapLatBottomDegree))));var y=_data.svgDefault.viewBox[3]-((worldMapWidth/2*Math.log((1+Math.sin(lat))/(1-Math.sin(lat))))-mapOffsetY);x+=_data.svgDefault.viewBox[0];y+=_data.svgDefault.viewBox[1];return[x,y]},pickGaugeColor:function(gaugeValue){var w=(gaugeValue-_data.options.gauge.min)/_data.options.gauge.maxAdjusted;var rgb=[Math.round(_data.options.gauge.colors.diffRGB.r*w+_data.options.gauge.colors.lowRGB.r),Math.round(_data.options.gauge.colors.diffRGB.g*w+_data.options.gauge.colors.lowRGB.g),Math.round(_data.options.gauge.colors.diffRGB.b*w+_data.options.gauge.colors.lowRGB.b),Math.round(_data.options.gauge.colors.diffRGB.a*w+_data.options.gauge.colors.lowRGB.a)];return rgb},isRegionDisabled:function(id,svgfill){if(_data.options.regions[id]&&(_data.options.regions[id].disabled||svgfill=='none')){return!0}else if((_data.options.regions[id]==undefined||MapSVG.parseBoolean(_data.options.regions[id].disabled))&&(_data.options.disableAll||svgfill=='none'||id=='labels'||id=='Labels')){return!0}else{return!1}},regionClickHandler:function(e,region,skipPopover){_data.region_clicked=null;var actions=_data.options.actions;if(region.mapsvg_type=='region')
_this.selectRegion(region.id);if(_data.editRegions.on){_data.regionEditHandler.call(region);return}
_this.hidePopover();var popover=_this.getPopoverBody(region);popover&&_this.showPopover(e,popover,null,region);if(_data.options.onClick)
_data.options.onClick.call(region,e,_this);if(region.href&&!_data.disableLinks){if(region.target=='blank'){var win=window.open(region.href,'_blank');win.focus()}else{window.location.href=region.href}}},fileExists:function(url){if(url.substr(0,4)=="data")
return!0;var http=new XMLHttpRequest();http.open('HEAD',url,!1);http.send();return http.status!=404},getStyle:function(elem,prop){if(elem.currentStyle){var res=elem.currentStyle.margin}else if(window.getComputedStyle){if(window.getComputedStyle.getPropertyValue){var res=window.getComputedStyle(elem,null).getPropertyValue(prop)}else{var res=window.getComputedStyle(elem)[prop]}}
return res},search:function(str){var results=[];str=str.toLowerCase();_data.regions.forEach(function(r){if(r.id.toLowerCase().indexOf(str)===0||r.id.toLowerCase().indexOf('-'+str)!==-1||(r.title&&r.title.toLowerCase().indexOf(str)===0))
results.push({id:r.id,id_no_spaces:r.id_no_spaces})});return results},searchMarkers:function(str){var results=[];str=str.toLowerCase();_data.markers.forEach(function(m){if(m.id.toLowerCase().indexOf(str)===0)
results.push(m.id)});return results},searchData:function(field,str){var results=[];str=str.toLowerCase();_data.options.data.forEach(function(params){for(var i in params){if((''+params[i]).toLowerCase().indexOf(str)===0&&results.indexOf(params.id)==-1)
results.push(params.id)}});return results},hideMarkersExceptOne:function(id){_data.markers.forEach(function(m){if(m.id!=id)
m.node.addClass('mapsvg-marker-hidden')})},showMarkers:function(){_data.markers.forEach(function(m){m.node.removeClass('mapsvg-marker-hidden')})},markerAddClickHandler:function(e){if($(e.target).hasClass('mapsvg-marker'))return!1;var mc=MapSVG.mouseCoords(e);var x=mc.x-_data.$svg.offset().left;var y=mc.y-_data.$svg.offset().top;var xy=_this.convertPixelToSVG([x,y]);if(!$.isNumeric(x)||!$.isNumeric(y))
return!1;var data={xy:xy};if(_data.editingMarker){_data.editingMarker.setXy(xy);return}
if(window.defaultMarkerImage)
data.src=window.defaultMarkerImage;_this.markerAdd(data,!0)},setMarkersEditMode:function(on,clickAddsMarker){_data.clickAddsMarker=!0;_data.editMarkers.on=MapSVG.parseBoolean(on);_this.deselectAllRegions();_this.setEventHandlers()},setRegionsEditMode:function(on){_data.editRegions.on=MapSVG.parseBoolean(on);_this.deselectAllRegions();_this.setEventHandlers()},setEditMode:function(on){_data.editMode=on},setDataEditMode:function(on){_data.editData.on=MapSVG.parseBoolean(on);_this.deselectAllRegions();_this.setEventHandlers()},setMarkers:function(markers){$.each(markers,function(i,marker){_this.markerAdd(marker)});_data.markers.sort(function(a,b){return a.id==b.id?0:+(a.id>b.id)||-1});_data.markers.forEach(function(marker,index){_data.markersDict[marker.id]=index})},setEventHandler:function(){},textBr:function(text){var htmls=[];var lines=text.split(/\n/);var tmpDiv=jQuery(document.createElement('div'));for(var i=0;i<lines.length;i++){htmls.push(tmpDiv.text(lines[i]).html())}
return htmls.join("<br />")},runUserFunction:function(func){try{func()}catch(error){console.log("MapSVG user-defined function error: (line "+error.line+"): "+error.message)}},download:function(){if(!_data.downloadForm){_data.downloadForm=$('<form id="mdownload" action="/wp-content/plugins/mapsvg-dev/download.php" method="POST"><input type="hidden" name="svg_file" value="0" /><input type="hidden" name="svg_title"></form>');_data.downloadForm.appendTo('body')}
_data.downloadForm.find('input[name="svg_file"]').val(_data.$svg.prop('outerHTML'));_data.downloadForm.find('input[name="svg_title"]').val(_data.options.title);setTimeout(function(){jQuery('#mdownload').submit()},500)},showTooltip:function(region){if(region.disabled)
return!1;var tip;if(_data.options.tooltips.priority=="global"){tip=(typeof _data.options.tooltips.mode=="function")&&_data.options.tooltips.mode.call(region,_data.tooltip.container,region,_this)||_data.options.tooltips.mode!='off'&&region[_data.options.tooltips.mode]||region.tooltip}else{tip=region.tooltip||(typeof _data.options.tooltips.mode=="function")&&_data.options.tooltips.mode.call(region,_data.tooltip.container,region,_this)||_data.options.tooltips.mode!='off'&&region[_data.options.tooltips.mode]}
if(tip&&tip.length){_data.tooltip.container.html(tip);_data.tooltip.container.addClass('mapsvg-tooltip-visible')}},getPopoverBody:function(region){var popover;if(_data.options.popovers.priority=='global'){popover=typeof _data.options.popovers.mode=='function'?_data.options.popovers.mode.call(region,_data.mapPopover,region,_this):region.popover}else{popover=region.popover||(typeof _data.options.popovers.mode=='function'?_data.options.popovers.mode.call(region,_data.mapPopover,region,_this):null)}
return popover},popoverAdjustPosition:function(){if(!_data.mapPopover||!_data.mapPopover.point)return;var pos=_this.convertSVGToPixel(_data.mapPopover.point);_data.mapPopover.css({'transform':'translateX(-50%) translate('+pos[0]+'px,'+pos[1]+'px)'})},showPopover:function(e,content,pos,mapObject){if(mapObject&&_data.options.popovers.centerOn&&!(MapSVG.isPhone&&_data.options.popovers.mobileFullscreen)){_this.centerOn(mapObject,0)}
if(mapObject){var center=mapObject.getCenter();e.clientX=center[0];e.clientY=center[1]}
if(!pos||pos.length!=2){var m=MapSVG.mouseCoords(e);var pos=[m.x,m.y]}else{var scale=_this.getScale();pos[0]=_data.$map.offset().left+pos[0]*scale;pos[1]=_data.$map.offset().top+pos[1]*scale}
var popoverShown=!1;if(content){_data.mapPopover.contentDiv.html(content);var nx=pos[0]-_data.$svg.offset().left;var ny=pos[1]-_data.$svg.offset().top;_data.mapPopover.point=_this.convertPixelToSVG([nx,ny]);_this.popoverAdjustPosition();_data.mapPopover.addClass('mapsvg-popover-visible');_data.mapPopover.addClass('mapsvg-popover-animate');popoverShown=!0}
_data.mapPopover.toggleClass('mapsvg-popover-animate',popoverShown);_data.mapPopover.toggleClass('mapsvg-popover-visible',popoverShown);$('body').toggleClass('mapsvg-popover-open',popoverShown)},hidePopover:function(){_data.mapPopover.contentDiv.empty();_data.mapPopover.toggleClass('mapsvg-popover-animate',!1);_data.mapPopover.toggleClass('mapsvg-popover-visible',!1);$('body').toggleClass('mapsvg-popover-open',!1);if(_data.options.onPopoverClose)
_data.options.onPopoverClose.call(_this)},hideTip:function(){_data.tooltip.container.removeClass('mapsvg-tooltip-visible')},popoverOffHandler:function(e){if(_data.isScrolling||$(e.target).closest('.mapsvg-popover').length||$(e.target).hasClass('mapsvg-btn-zoom'))
return;_this.hidePopover()},mouseOverHandler:function(e){if(this instanceof Region){if(!this.selected)
this.highlight()}
_this.showTooltip(this);return _data.options.mouseOver&&_data.options.mouseOver.call(this,e,_this)},mouseOutHandler:function(e){if(this instanceof Region){if(!this.selected)
this.unhighlight()}
_this.hideTip();return _data.options.mouseOut&&_data.options.mouseOut.call(this,e,_this)},updateOptions:function(options){$.extend(!0,_data.options,options)},updateMarkersDict:function(){_data.markersDict={};_data.markers.forEach(function(marker,i){_data.markersDict[marker.id]=i})},eventsPrevent:function(event){_data.eventsPrevent[event]=!0},eventsRestore:function(event){if(event){_data.eventsPrevent[event]=!1}else{_data.eventsPrevent={}}},setEventHandlers:function(){_data.$map.off('.common.mapsvg');_data.$scrollpane.off('.common.mapsvg');if(_data.editMarkers.on){_data.$map.on('touchstart.common.mapsvg mousedown.common.mapsvg','.mapsvg-marker',function(e){e.originalEvent.preventDefault();var marker=_this.getMarker($(this).attr('id'));var startCoords=MapSVG.mouseCoords(e);marker.drag(startCoords,_data.scale,function(){if(_data.mapIsGeo){this.geoCoords=_this.convertSVGToGeo(this.x+this.width/2,this.y+(this.height-1))}
_data.markerEditHandler&&_data.markerEditHandler.call(this,!0);if(this.onChange)
this.onChange.call(this)},function(){_data.markerEditHandler&&_data.markerEditHandler.call(this);if(this.onChange)
this.onChange.call(this)})})}
if(!_data.editMarkers.on){_data.$map.on('mouseover.common.mapsvg','.mapsvg-region',function(e){var id=$(this).attr('id');_this.mouseOverHandler.call(_this.getRegion(id),e,_this,options)}).on('mouseleave.common.mapsvg','.mapsvg-region',function(e){var id=$(this).attr('id');_this.mouseOutHandler.call(_this.getRegion(id),e,_this,options)})}
if(!_data.editRegions.on){_data.$map.on('mouseover.common.mapsvg','.mapsvg-marker',function(e){var id=$(this).attr('id');_this.mouseOverHandler.call(_this.getMarker(id),e,_this,options)}).on('mouseleave.common.mapsvg','.mapsvg-marker',function(e){var id=$(this).attr('id');_this.mouseOutHandler.call(_this.getMarker(id),e,_this,options)})}
if(!_data.options.scroll.on){var event=MapSVG.touchDevice?'touchstart.common.mapsvg':'click.common.mapsvg';if(!_data.editMarkers.on){_data.$map.on('touchstart.common.mapsvg','.mapsvg-region',function(e){_data.touchScrollStart=$('body').scrollTop()});_data.$map.on('touchstart.common.mapsvg','.mapsvg-marker',function(e){_data.touchScrollStart=$('body').scrollTop()});_data.$map.on('touchend.common.mapsvg mouseup.common.mapsvg','.mapsvg-region',function(e){e.preventDefault();if(!_data.touchScrollStart||_data.touchScrollStart==$('body').scrollTop()){_this.regionClickHandler.call(_this,e,_this.getRegion($(this).attr('id')))}});_data.$map.on('touchend.common.mapsvg mouseup.common.mapsvg','.mapsvg-marker',function(e){e.preventDefault();if(!_data.touchScrollStart||_data.touchScrollStart==$('body').scrollTop()){_this.regionClickHandler.call(_this,e,_this.getMarker($(this).attr('id')))}})}else{if(_data.clickAddsMarker)
_data.$map.on('touchend.common.mapsvg mouseup.common.mapsvg',function(e){e.preventDefault();_this.markerAddClickHandler(e)})}}else{_data.$scrollpane.on('touchstart.common.mapsvg mousedown.common.mapsvg',function(e){if($(e.target).hasClass('mapsvg-region')){var obj=_this.getRegion($(e.target).attr('id'));_this.scrollRegionClickHandler.call(_this,e,obj)}else if($(e.target).hasClass('mapsvg-marker')){if(_data.editMarkers.on){return}
var obj=_this.getMarker($(e.target).attr('id'));_this.scrollRegionClickHandler.call(_this,e,obj)}
if(e.type=='mousedown'){_this.scrollStart(e,_this)}else{e.preventDefault();_this.touchStart(e,_this)}}).on('touchmove.common.mapsvg',function(e){e.preventDefault();_this.touchMove(e,_this)}).on('touchend.common.mapsvg',function(e){e.preventDefault();_this.touchEnd(e,_this)})}},addLayer:function(name){_data.layers[name]=$('<div class="mapsvg-layer mapsvg-layer-'+name+'"></div>');_data.$layers.append(_data.layers[name])},getDatabaseService:function(){return this.database},regionAdd:function(svgObject){var region=new Region($(svgObject),_data.options,_data.regionID,_this);region.setStatus(1);_data.regions.push(region);_data.regions.sort(function(a,b){return a.id==b.id?0:+(a.id>b.id)||-1});_data.regions.forEach(function(region,index){_data.regionsDict[region.id]=index})},regionDelete:function(id){var index=_data.regionsDict[id];if(index!==undefined){var r=_this.getRegion('id');r.node&&r.node.remove();_data.regions.splice(index,1);delete _data.regionsDict[region.id]}},reloadRegions:function(){var _this=this;_data.regions=[];_data.regionsDict={};_data.$svg.find('path, polygon, circle, ellipse, rect').each(function(index){if($(this)[0].getAttribute('id')){var region=new Region($(this),_data.options,_data.regionID,_this);_data.regions.push(region)}});_data.regions.sort(function(a,b){return a.id==b.id?0:+(a.id>b.id)||-1});_data.regions.forEach(function(region,index){_data.regionsDict[region.id]=index})},init:function(opts,elem){if(!opts.source){throw new Error('MapSVG: please provide SVG file source.');return!1}
if(opts.beforeLoad)
try{opts.beforeLoad.call(_this)}catch(err){}
if(opts.source.indexOf('//')===0)
opts.source=opts.source.replace(/^\/\/[^\/]+/,'').replace('//','/');else opts.source=opts.source.replace(/^.*:\/\/[^\/]+/,'').replace('//','/');_data={};_data.editMode=opts.editMode;delete opts.editMode;_data.options=$.extend(!0,{},defaults,opts);_this.id=_data.options.db_map_id;if(_this.id=='new')
_this.id=null;_data.highlightedRegions=[];_data.editRegions={on:!1};_data.editMarkers={on:!1};_data.editData={on:!1};_data.map=elem;_data.$map=$(elem);_data.$scrollpane=$('<div class="mapsvg-scrollpane"></div>').appendTo(_data.$map);_data.$layers=$('<div class="mapsvg-layers-wrap"></div>').appendTo(_data.$scrollpane);_data.whRatio=0;_data.isScrolling=!1;_data.markerOptions={};_data.svgDefault={};_data.refLength=0;_data.scale=1;_data._scale=1;_data.selected_id=[];_data.mapData={};_data.regions=[];_data.regionsDict={};_data.regionID={id:0};_data.markers=[];_data.markersDict={};_data._viewBox=[];_data.viewBox=[];_data.viewBoxZoom=[];_data.viewBoxFind=undefined;_data.zoomLevel=0;_data.scroll={};_data.layers={};_data.geoCoordinates=!1;_data.geoViewBox={leftLon:0,topLat:0,rightLon:0,bottomLat:0};_data.eventsPrevent={};_data.geoCoordinates=!1,_data.geoViewBox={leftLon:0,topLat:0,rightLon:0,bottomLat:0},_data.$map.addClass('mapsvg').addClass('no-transitions').css('background',_data.options.colors.background);var loading=$('<div>'+_data.options.loadingText+'</div>').addClass('mapsvg-loading');_data.$map.append(loading);_this.addLayer('markers');_this.addLayer('popovers');loading.css({'margin-left':function(){return-($(this).outerWidth(!1)/2)+'px'},'margin-top':function(){return-($(this).outerHeight(!1)/2)+'px'}});$.ajax({url:_data.options.source+'?v='+_data.options.svgFileVersion}).done(function(xmlData){var svgTag=$(xmlData).find('svg');_data.$svg=svgTag;_data.svgDefault.width=svgTag.attr('width');_data.svgDefault.height=svgTag.attr('height');_data.svgDefault.viewBox=svgTag.attr('viewBox');if(_data.svgDefault.width&&_data.svgDefault.height){_data.svgDefault.width=parseFloat(_data.svgDefault.width.replace(/px/g,''));_data.svgDefault.height=parseFloat(_data.svgDefault.height.replace(/px/g,''));_data.svgDefault.viewBox=_data.svgDefault.viewBox?_data.svgDefault.viewBox.split(' '):[0,0,_data.svgDefault.width,_data.svgDefault.height]}else if(_data.svgDefault.viewBox){_data.svgDefault.viewBox=_data.svgDefault.viewBox.split(' ');_data.svgDefault.width=parseFloat(_data.svgDefault.viewBox[2]);_data.svgDefault.height=parseFloat(_data.svgDefault.viewBox[3])}else{alert('MapSVG needs width/height or viewBox parameter to be present in SVG file.')
return!1}
if(MapSVG.browser.ie){_data.$svg.height(_data.svgDefault.height)}
var geo=svgTag.attr("mapsvg:geoViewBox")||svgTag.attr("mapsvg:geoviewbox");if(geo){geo=geo.split(" ");if(geo.length==4){_data.mapIsGeo=!0;_data.geoCoordinates=!0;_data.geoViewBox={leftLon:parseFloat(geo[0]),topLat:parseFloat(geo[1]),rightLon:parseFloat(geo[2]),bottomLat:parseFloat(geo[3])};_data.mapLonDelta=_data.geoViewBox.rightLon-_data.geoViewBox.leftLon;_data.mapLatBottomDegree=_data.geoViewBox.bottomLat*3.14159/180}}
$.each(_data.svgDefault.viewBox,function(i,v){_data.svgDefault.viewBox[i]=parseInt(v)});_data._viewBox=(_data.options.viewBox.length==4&&_data.options.viewBox)||_data.svgDefault.viewBox;$.each(_data._viewBox,function(i,v){_data._viewBox[i]=parseFloat(v)});svgTag.attr('preserveAspectRatio','xMidYMid meet');svgTag.attr('width','100%');svgTag.attr('height','100%');_this.reloadRegions();_this.setSize(_data.options.width,_data.options.height,_data.options.responsive);if(_data.options.disableAll){_this.setDisableAll(!0)}
_data.$scrollpane.append(svgTag);_this.setViewBox(_data._viewBox);_this.setResponsive(_data.options.responsive,!0);_this.setGauge();var markers=_data.options.markers||_data.options.marks||[];_this.setMarkers(markers);_this.setScroll(_data.options.scroll,!0);_this.setZoom(_data.options.zoom);if(_data.options.tooltipsMode)
_data.options.tooltips.mode=_data.options.tooltipsMode;_this.setTooltips(_data.options.tooltips);if(_data.options.popover)
_data.options.popovers=_data.options.popover;_this.setPopovers(_data.options.popovers);if(_data.options.cursor)
_this.setCursor(_data.options.cursor);$(document).ready(function(){_this.setMenu();_this.setMenuMarkers()});_this.setEventHandlers();$('#'+_data.$map.attr('id')+' [title]').each(function(){this.removeAttribute('title')});$('#'+_data.$map.attr('id')+' title').remove();loading.hide();setTimeout(function(){_this.updateSize();setTimeout(function(){_data.$map.removeClass('no-transitions')},200)},100);if(match=RegExp('[?&]mapsvg_select=([^&]*)').exec(window.location.search)){var select=decodeURIComponent(match[1].replace(/\+/g,' '));_this.selectRegion(select)}
if(_data.options.afterLoad)
_data.options.afterLoad.call(_this)});return _this}};var _this=this.methods};$.fn.mapSvg=function(opts){var id=$(this).attr('id');if(typeof opts=='object'&&instances[id]===undefined){instances[id]=new mapSVG(this,opts);return instances[id].methods.init(opts,this)}else if(instances[id]){return instances[id].methods}else{return instances}}})(jQuery);(function(Math){var trimLeft=/^\s+/,trimRight=/\s+$/,tinyCounter=0,mathRound=Math.round,mathMin=Math.min,mathMax=Math.max,mathRandom=Math.random;function tinycolor(color,opts){color=(color)?color:'';opts=opts||{};if(color instanceof tinycolor){return color}
if(!(this instanceof tinycolor)){return new tinycolor(color,opts)}
var rgb=inputToRGB(color);this._originalInput=color,this._r=rgb.r,this._g=rgb.g,this._b=rgb.b,this._a=rgb.a,this._roundA=mathRound(100*this._a)/100,this._format=opts.format||rgb.format;this._gradientType=opts.gradientType;if(this._r<1){this._r=mathRound(this._r)}
if(this._g<1){this._g=mathRound(this._g)}
if(this._b<1){this._b=mathRound(this._b)}
this._ok=rgb.ok;this._tc_id=tinyCounter++}
tinycolor.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 rgb=this.toRgb();return(rgb.r*299+rgb.g*587+rgb.b*114)/1000},getLuminance:function(){var rgb=this.toRgb();var RsRGB,GsRGB,BsRGB,R,G,B;RsRGB=rgb.r/255;GsRGB=rgb.g/255;BsRGB=rgb.b/255;if(RsRGB<=0.03928){R=RsRGB/12.92}else{R=Math.pow(((RsRGB+0.055)/1.055),2.4)}
if(GsRGB<=0.03928){G=GsRGB/12.92}else{G=Math.pow(((GsRGB+0.055)/1.055),2.4)}
if(BsRGB<=0.03928){B=BsRGB/12.92}else{B=Math.pow(((BsRGB+0.055)/1.055),2.4)}
return(0.2126*R)+(0.7152*G)+(0.0722*B)},setAlpha:function(value){this._a=boundAlpha(value);this._roundA=mathRound(100*this._a)/100;return this},toHsv:function(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:hsv.h*360,s:hsv.s,v:hsv.v,a:this._a}},toHsvString:function(){var hsv=rgbToHsv(this._r,this._g,this._b);var h=mathRound(hsv.h*360),s=mathRound(hsv.s*100),v=mathRound(hsv.v*100);return(this._a==1)?"hsv("+h+", "+s+"%, "+v+"%)":"hsva("+h+", "+s+"%, "+v+"%, "+this._roundA+")"},toHsl:function(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:hsl.h*360,s:hsl.s,l:hsl.l,a:this._a}},toHslString:function(){var hsl=rgbToHsl(this._r,this._g,this._b);var h=mathRound(hsl.h*360),s=mathRound(hsl.s*100),l=mathRound(hsl.l*100);return(this._a==1)?"hsl("+h+", "+s+"%, "+l+"%)":"hsla("+h+", "+s+"%, "+l+"%, "+this._roundA+")"},toHex:function(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char)},toHexString:function(allow3Char){return'#'+this.toHex(allow3Char)},toHex8:function(){return rgbaToHex(this._r,this._g,this._b,this._a)},toHex8String:function(){return'#'+this.toHex8()},toRgb:function(){return{r:mathRound(this._r),g:mathRound(this._g),b:mathRound(this._b),a:this._a}},toRgbString:function(){return(this._a==1)?"rgb("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+")":"rgba("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:mathRound(bound01(this._r,255)*100)+"%",g:mathRound(bound01(this._g,255)*100)+"%",b:mathRound(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return(this._a==1)?"rgb("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%)":"rgba("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){if(this._a===0){return"transparent"}
if(this._a<1){return!1}
return hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(secondColor){var hex8String='#'+rgbaToHex(this._r,this._g,this._b,this._a);var secondHex8String=hex8String;var gradientType=this._gradientType?"GradientType = 1, ":"";if(secondColor){var s=tinycolor(secondColor);secondHex8String=s.toHex8String()}
return"progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"},toString:function(format){var formatSet=!!format;format=format||this._format;var formattedString=!1;var hasAlpha=this._a<1&&this._a>=0;var needsAlphaFormat=!formatSet&&hasAlpha&&(format==="hex"||format==="hex6"||format==="hex3"||format==="name");if(needsAlphaFormat){if(format==="name"&&this._a===0){return this.toName()}
return this.toRgbString()}
if(format==="rgb"){formattedString=this.toRgbString()}
if(format==="prgb"){formattedString=this.toPercentageRgbString()}
if(format==="hex"||format==="hex6"){formattedString=this.toHexString()}
if(format==="hex3"){formattedString=this.toHexString(!0)}
if(format==="hex8"){formattedString=this.toHex8String()}
if(format==="name"){formattedString=this.toName()}
if(format==="hsl"){formattedString=this.toHslString()}
if(format==="hsv"){formattedString=this.toHsvString()}
return formattedString||this.toHexString()},clone:function(){return tinycolor(this.toString())},_applyModification:function(fn,args){var color=fn.apply(null,[this].concat([].slice.call(args)));this._r=color._r;this._g=color._g;this._b=color._b;this.setAlpha(color._a);return this},lighten:function(){return this._applyModification(lighten,arguments)},brighten:function(){return this._applyModification(brighten,arguments)},darken:function(){return this._applyModification(darken,arguments)},desaturate:function(){return this._applyModification(desaturate,arguments)},saturate:function(){return this._applyModification(saturate,arguments)},greyscale:function(){return this._applyModification(greyscale,arguments)},spin:function(){return this._applyModification(spin,arguments)},_applyCombination:function(fn,args){return fn.apply(null,[this].concat([].slice.call(args)))},analogous:function(){return this._applyCombination(analogous,arguments)},complement:function(){return this._applyCombination(complement,arguments)},monochromatic:function(){return this._applyCombination(monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments)},triad:function(){return this._applyCombination(triad,arguments)},tetrad:function(){return this._applyCombination(tetrad,arguments)}};tinycolor.fromRatio=function(color,opts){if(typeof color=="object"){var newColor={};for(var i in color){if(color.hasOwnProperty(i)){if(i==="a"){newColor[i]=color[i]}else{newColor[i]=convertToPercentage(color[i])}}}
color=newColor}
return tinycolor(color,opts)};function inputToRGB(color){var rgb={r:0,g:0,b:0};var a=1;var ok=!1;var format=!1;if(typeof color=="string"){color=stringInputToObject(color)}
if(typeof color=="object"){if(isValidCSSUnit(color.r)&&isValidCSSUnit(color.g)&&isValidCSSUnit(color.b)){rgb=rgbToRgb(color.r,color.g,color.b);ok=!0;format=String(color.r).substr(-1)==="%"?"prgb":"rgb"}else if(isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.v)){color.s=convertToPercentage(color.s);color.v=convertToPercentage(color.v);rgb=hsvToRgb(color.h,color.s,color.v);ok=!0;format="hsv"}else if(isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.l)){color.s=convertToPercentage(color.s);color.l=convertToPercentage(color.l);rgb=hslToRgb(color.h,color.s,color.l);ok=!0;format="hsl"}
if(color.hasOwnProperty("a")){a=color.a}}
a=boundAlpha(a);return{ok:ok,format:color.format||format,r:mathMin(255,mathMax(rgb.r,0)),g:mathMin(255,mathMax(rgb.g,0)),b:mathMin(255,mathMax(rgb.b,0)),a:a}}
function rgbToRgb(r,g,b){return{r:bound01(r,255)*255,g:bound01(g,255)*255,b:bound01(b,255)*255}}
function rgbToHsl(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,l=(max+min)/2;if(max==min){h=s=0}else{var d=max-min;s=l>0.5?d/(2-max-min):d/(max+min);switch(max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4;break}
h/=6}
return{h:h,s:s,l:l}}
function hslToRgb(h,s,l){var r,g,b;h=bound01(h,360);s=bound01(s,100);l=bound01(l,100);function hue2rgb(p,q,t){if(t<0)t+=1;if(t>1)t-=1;if(t<1/6)return p+(q-p)*6*t;if(t<1/2)return q;if(t<2/3)return p+(q-p)*(2/3-t)*6;return p}
if(s===0){r=g=b=l}else{var q=l<0.5?l*(1+s):l+s-l*s;var p=2*l-q;r=hue2rgb(p,q,h+1/3);g=hue2rgb(p,q,h);b=hue2rgb(p,q,h-1/3)}
return{r:r*255,g:g*255,b:b*255}}
function rgbToHsv(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,v=max;var d=max-min;s=max===0?0:d/max;if(max==min){h=0}else{switch(max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4;break}
h/=6}
return{h:h,s:s,v:v}}
function hsvToRgb(h,s,v){h=bound01(h,360)*6;s=bound01(s,100);v=bound01(v,100);var i=Math.floor(h),f=h-i,p=v*(1-s),q=v*(1-f*s),t=v*(1-(1-f)*s),mod=i%6,r=[v,q,p,p,t,v][mod],g=[t,v,v,q,p,p][mod],b=[p,p,t,v,v,q][mod];return{r:r*255,g:g*255,b:b*255}}
function rgbToHex(r,g,b,allow3Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];if(allow3Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0)}
return hex.join("")}
function rgbaToHex(r,g,b,a){var hex=[pad2(convertDecimalToHex(a)),pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];return hex.join("")}
tinycolor.equals=function(color1,color2){if(!color1||!color2){return!1}
return tinycolor(color1).toRgbString()==tinycolor(color2).toRgbString()};tinycolor.random=function(){return tinycolor.fromRatio({r:mathRandom(),g:mathRandom(),b:mathRandom()})};function desaturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s-=amount/100;hsl.s=clamp01(hsl.s);return tinycolor(hsl)}
function saturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s+=amount/100;hsl.s=clamp01(hsl.s);return tinycolor(hsl)}
function greyscale(color){return tinycolor(color).desaturate(100)}
function lighten(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l+=amount/100;hsl.l=clamp01(hsl.l);return tinycolor(hsl)}
function brighten(color,amount){amount=(amount===0)?0:(amount||10);var rgb=tinycolor(color).toRgb();rgb.r=mathMax(0,mathMin(255,rgb.r-mathRound(255*-(amount/100))));rgb.g=mathMax(0,mathMin(255,rgb.g-mathRound(255*-(amount/100))));rgb.b=mathMax(0,mathMin(255,rgb.b-mathRound(255*-(amount/100))));return tinycolor(rgb)}
function darken(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l-=amount/100;hsl.l=clamp01(hsl.l);return tinycolor(hsl)}
function spin(color,amount){var hsl=tinycolor(color).toHsl();var hue=(hsl.h+amount)%360;hsl.h=hue<0?360+hue:hue;return tinycolor(hsl)}
function complement(color){var hsl=tinycolor(color).toHsl();hsl.h=(hsl.h+180)%360;return tinycolor(hsl)}
function triad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+120)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+240)%360,s:hsl.s,l:hsl.l})]}
function tetrad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+90)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+180)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+270)%360,s:hsl.s,l:hsl.l})]}
function splitcomplement(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+72)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+216)%360,s:hsl.s,l:hsl.l})]}
function analogous(color,results,slices){results=results||6;slices=slices||30;var hsl=tinycolor(color).toHsl();var part=360/slices;var ret=[tinycolor(color)];for(hsl.h=((hsl.h-(part*results>>1))+720)%360;--results;){hsl.h=(hsl.h+part)%360;ret.push(tinycolor(hsl))}
return ret}
function monochromatic(color,results){results=results||6;var hsv=tinycolor(color).toHsv();var h=hsv.h,s=hsv.s,v=hsv.v;var ret=[];var modification=1/results;while(results--){ret.push(tinycolor({h:h,s:s,v:v}));v=(v+modification)%1}
return ret}
tinycolor.mix=function(color1,color2,amount){amount=(amount===0)?0:(amount||50);var rgb1=tinycolor(color1).toRgb();var rgb2=tinycolor(color2).toRgb();var p=amount/100;var w=p*2-1;var a=rgb2.a-rgb1.a;var w1;if(w*a==-1){w1=w}else{w1=(w+a)/(1+w*a)}
w1=(w1+1)/2;var w2=1-w1;var rgba={r:rgb2.r*w1+rgb1.r*w2,g:rgb2.g*w1+rgb1.g*w2,b:rgb2.b*w1+rgb1.b*w2,a:rgb2.a*p+rgb1.a*(1-p)};return tinycolor(rgba)};tinycolor.readability=function(color1,color2){var c1=tinycolor(color1);var c2=tinycolor(color2);return(Math.max(c1.getLuminance(),c2.getLuminance())+0.05)/(Math.min(c1.getLuminance(),c2.getLuminance())+0.05)};tinycolor.isReadable=function(color1,color2,wcag2){var readability=tinycolor.readability(color1,color2);var wcag2Parms,out;out=!1;wcag2Parms=validateWCAG2Parms(wcag2);switch(wcag2Parms.level+wcag2Parms.size){case "AAsmall":case "AAAlarge":out=readability>=4.5;break;case "AAlarge":out=readability>=3;break;case "AAAsmall":out=readability>=7;break}
return out};tinycolor.mostReadable=function(baseColor,colorList,args){var bestColor=null;var bestScore=0;var readability;var includeFallbackColors,level,size;args=args||{};includeFallbackColors=args.includeFallbackColors;level=args.level;size=args.size;for(var i=0;i<colorList.length;i++){readability=tinycolor.readability(baseColor,colorList[i]);if(readability>bestScore){bestScore=readability;bestColor=tinycolor(colorList[i])}}
if(tinycolor.isReadable(baseColor,bestColor,{"level":level,"size":size})||!includeFallbackColors){return bestColor}else{args.includeFallbackColors=!1;return tinycolor.mostReadable(baseColor,["#fff","#000"],args)}};var names=tinycolor.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"};var hexNames=tinycolor.hexNames=flip(names);function flip(o){var flipped={};for(var i in o){if(o.hasOwnProperty(i)){flipped[o[i]]=i}}
return flipped}
function boundAlpha(a){a=parseFloat(a);if(isNaN(a)||a<0||a>1){a=1}
return a}
function bound01(n,max){if(isOnePointZero(n)){n="100%"}
var processPercent=isPercentage(n);n=mathMin(max,mathMax(0,parseFloat(n)));if(processPercent){n=parseInt(n*max,10)/100}
if((Math.abs(n-max)<0.000001)){return 1}
return(n%max)/parseFloat(max)}
function clamp01(val){return mathMin(1,mathMax(0,val))}
function parseIntFromHex(val){return parseInt(val,16)}
function isOnePointZero(n){return typeof n=="string"&&n.indexOf('.')!=-1&&parseFloat(n)===1}
function isPercentage(n){return typeof n==="string"&&n.indexOf('%')!=-1}
function pad2(c){return c.length==1?'0'+c:''+c}
function convertToPercentage(n){if(n<=1){n=(n*100)+"%"}
return n}
function convertDecimalToHex(d){return Math.round(parseFloat(d)*255).toString(16)}
function convertHexToDecimal(h){return(parseIntFromHex(h)/255)}
var matchers=(function(){var CSS_INTEGER="[-\\+]?\\d+%?";var CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?";var CSS_UNIT="(?:"+CSS_NUMBER+")|(?:"+CSS_INTEGER+")";var PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?";var PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?";return{CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),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})$/}})();function isValidCSSUnit(color){return!!matchers.CSS_UNIT.exec(color)}
function stringInputToObject(color){color=color.replace(trimLeft,'').replace(trimRight,'').toLowerCase();var named=!1;if(names[color]){color=names[color];named=!0}else if(color=='transparent'){return{r:0,g:0,b:0,a:0,format:"name"}}
var match;if((match=matchers.rgb.exec(color))){return{r:match[1],g:match[2],b:match[3]}}
if((match=matchers.rgba.exec(color))){return{r:match[1],g:match[2],b:match[3],a:match[4]}}
if((match=matchers.hsl.exec(color))){return{h:match[1],s:match[2],l:match[3]}}
if((match=matchers.hsla.exec(color))){return{h:match[1],s:match[2],l:match[3],a:match[4]}}
if((match=matchers.hsv.exec(color))){return{h:match[1],s:match[2],v:match[3]}}
if((match=matchers.hsva.exec(color))){return{h:match[1],s:match[2],v:match[3],a:match[4]}}
if((match=matchers.hex8.exec(color))){return{a:convertHexToDecimal(match[1]),r:parseIntFromHex(match[2]),g:parseIntFromHex(match[3]),b:parseIntFromHex(match[4]),format:named?"name":"hex8"}}
if((match=matchers.hex6.exec(color))){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),format:named?"name":"hex"}}
if((match=matchers.hex3.exec(color))){return{r:parseIntFromHex(match[1]+''+match[1]),g:parseIntFromHex(match[2]+''+match[2]),b:parseIntFromHex(match[3]+''+match[3]),format:named?"name":"hex"}}
return!1}
function validateWCAG2Parms(parms){var level,size;parms=parms||{"level":"AA","size":"small"};level=(parms.level||"AA").toUpperCase();size=(parms.size||"small").toLowerCase();if(level!=="AA"&&level!=="AAA"){level="AA"}
if(size!=="small"&&size!=="large"){size="small"}
return{"level":level,"size":size}}
if(typeof module!=="undefined"&&module.exports){module.exports=tinycolor}else if(typeof define==='function'&&define.amd){define(function(){return tinycolor})}else{MapSVG.tinycolor=tinycolor}})(Math,MapSVG);(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?factory(require('jquery')):typeof define==='function'&&define.amd?define(['jquery'],factory):(global=global||self,factory(global.jQuery))}(this,function($){'use strict';$=$&&$.hasOwnProperty('default')?$['default']:$;function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}
function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;if("value" in descriptor)descriptor.writable=!0;Object.defineProperty(target,descriptor.key,descriptor)}}
function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}
var DEFAULTS={autoShow:!1,autoHide:!1,autoPick:!1,inline:!1,container:null,trigger:null,language:'',format:'mm/dd/yyyy',date:null,startDate:null,endDate:null,startView:0,weekStart:0,yearFirst:!1,yearSuffix:'',days:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],daysShort:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],daysMin:['Su','Mo','Tu','We','Th','Fr','Sa'],months:['January','February','March','April','May','June','July','August','September','October','November','December'],monthsShort:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],itemTag:'li',mutedClass:'muted',pickedClass:'picked',disabledClass:'disabled',highlightedClass:'highlighted',template:'<div class="datepicker-container">'+'<div class="datepicker-panel" data-view="years picker">'+'<ul>'+'<li data-view="years prev">&lsaquo;</li>'+'<li data-view="years current"></li>'+'<li data-view="years next">&rsaquo;</li>'+'</ul>'+'<ul data-view="years"></ul>'+'</div>'+'<div class="datepicker-panel" data-view="months picker">'+'<ul>'+'<li data-view="year prev">&lsaquo;</li>'+'<li data-view="year current"></li>'+'<li data-view="year next">&rsaquo;</li>'+'</ul>'+'<ul data-view="months"></ul>'+'</div>'+'<div class="datepicker-panel" data-view="days picker">'+'<ul>'+'<li data-view="month prev">&lsaquo;</li>'+'<li data-view="month current"></li>'+'<li data-view="month next">&rsaquo;</li>'+'</ul>'+'<ul data-view="week"></ul>'+'<ul data-view="days"></ul>'+'</div>'+'</div>',offset:10,zIndex:1000,filter:null,show:null,hide:null,pick:null};var WINDOW=typeof window!=='undefined'?window:{};var NAMESPACE='datepicker';var EVENT_CLICK="click.".concat(NAMESPACE);var EVENT_FOCUS="focus.".concat(NAMESPACE);var EVENT_HIDE="hide.".concat(NAMESPACE);var EVENT_KEYUP="keyup.".concat(NAMESPACE);var EVENT_PICK="pick.".concat(NAMESPACE);var EVENT_RESIZE="resize.".concat(NAMESPACE);var EVENT_SCROLL="scroll.".concat(NAMESPACE);var EVENT_SHOW="show.".concat(NAMESPACE);var CLASS_HIDE="".concat(NAMESPACE,"-hide");var LANGUAGES={};var VIEWS={DAYS:0,MONTHS:1,YEARS:2};var toString=Object.prototype.toString;function typeOf(obj){return toString.call(obj).slice(8,-1).toLowerCase()}
function isString(value){return typeof value==='string'}
var isNaN=Number.isNaN||WINDOW.isNaN;function isNumber(value){return typeof value==='number'&&!isNaN(value)}
function isUndefined(value){return typeof value==='undefined'}
function isDate(value){return typeOf(value)==='date'&&!isNaN(value.getTime())}
function proxy(fn,context){for(var _len=arguments.length,args=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++){args[_key-2]=arguments[_key]}
return function(){for(var _len2=arguments.length,args2=new Array(_len2),_key2=0;_key2<_len2;_key2++){args2[_key2]=arguments[_key2]}
return fn.apply(context,args.concat(args2))}}
function selectorOf(view){return"[data-view=\"".concat(view,"\"]")}
function isLeapYear(year){return year%4===0&&year%100!==0||year%400===0}
function getDaysInMonth(year,month){return[31,isLeapYear(year)?29:28,31,30,31,30,31,31,30,31,30,31][month]}
function getMinDay(year,month,day){return Math.min(day,getDaysInMonth(year,month))}
var formatParts=/(y|m|d)+/g;function parseFormat(format){var source=String(format).toLowerCase();var parts=source.match(formatParts);if(!parts||parts.length===0){throw new Error('Invalid date format.')}
format={source:source,parts:parts};$.each(parts,function(i,part){switch(part){case 'dd':case 'd':format.hasDay=!0;break;case 'mm':case 'm':format.hasMonth=!0;break;case 'yyyy':case 'yy':format.hasYear=!0;break;default:}});return format}
function getScrollParent(element){var includeHidden=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var $element=$(element);var position=$element.css('position');var excludeStaticParent=position==='absolute';var overflowRegex=includeHidden?/auto|scroll|hidden/:/auto|scroll/;var scrollParent=$element.parents().filter(function(index,parent){var $parent=$(parent);if(excludeStaticParent&&$parent.css('position')==='static'){return!1}
return overflowRegex.test($parent.css('overflow')+$parent.css('overflow-y')+$parent.css('overflow-x'))}).eq(0);return position==='fixed'||!scrollParent.length?$(element.ownerDocument||document):scrollParent}
function addLeadingZero(value){var length=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var str=String(Math.abs(value));var i=str.length;var result='';if(value<0){result+='-'}
while(i<length){i+=1;result+='0'}
return result+str}
var REGEXP_DIGITS=/\d+/g;var methods={show:function show(){if(!this.built){this.build()}
if(this.shown){return}
if(this.trigger(EVENT_SHOW).isDefaultPrevented()){return}
this.shown=!0;this.$picker.removeClass(CLASS_HIDE).on(EVENT_CLICK,$.proxy(this.click,this));this.showView(this.options.startView);if(!this.inline){this.$scrollParent.on(EVENT_SCROLL,$.proxy(this.place,this));$(window).on(EVENT_RESIZE,this.onResize=proxy(this.place,this));$(document).on(EVENT_CLICK,this.onGlobalClick=proxy(this.globalClick,this));$(document).on(EVENT_KEYUP,this.onGlobalKeyup=proxy(this.globalKeyup,this));this.place()}},hide:function hide(){if(!this.shown){return}
if(this.trigger(EVENT_HIDE).isDefaultPrevented()){return}
this.shown=!1;this.$picker.addClass(CLASS_HIDE).off(EVENT_CLICK,this.click);if(!this.inline){this.$scrollParent.off(EVENT_SCROLL,this.place);$(window).off(EVENT_RESIZE,this.onResize);$(document).off(EVENT_CLICK,this.onGlobalClick);$(document).off(EVENT_KEYUP,this.onGlobalKeyup)}},toggle:function toggle(){if(this.shown){this.hide()}else{this.show()}},update:function update(){var value=this.getValue();if(value===this.oldValue){return}
this.setDate(value,!0);this.oldValue=value},pick:function pick(_view){var $this=this.$element;var date=this.date;if(this.trigger(EVENT_PICK,{view:_view||'',date:date}).isDefaultPrevented()){return}
date=this.formatDate(this.date);this.setValue(date);if(this.isInput){$this.trigger('input');$this.trigger('change')}},reset:function reset(){this.setDate(this.initialDate,!0);this.setValue(this.initialValue);if(this.shown){this.showView(this.options.startView)}},getMonthName:function getMonthName(month,shortForm){var options=this.options;var monthsShort=options.monthsShort;var months=options.months;if($.isNumeric(month)){month=Number(month)}else if(isUndefined(shortForm)){shortForm=month}
if(shortForm===!0){months=monthsShort}
return months[isNumber(month)?month:this.date.getMonth()]},getDayName:function getDayName(day,shortForm,min){var options=this.options;var days=options.days;if($.isNumeric(day)){day=Number(day)}else{if(isUndefined(min)){min=shortForm}
if(isUndefined(shortForm)){shortForm=day}}
if(min){days=options.daysMin}else if(shortForm){days=options.daysShort}
return days[isNumber(day)?day:this.date.getDay()]},getDate:function getDate(formatted){var date=this.date;return formatted?this.formatDate(date):new Date(date)},setDate:function setDate(date,_updated){var filter=this.options.filter;if(isDate(date)||isString(date)){date=this.parseDate(date);if($.isFunction(filter)&&filter.call(this.$element,date,'day')===!1){return}
this.date=date;this.viewDate=new Date(date);if(!_updated){this.pick()}
if(this.built){this.render()}}},setStartDate:function setStartDate(date){if(isDate(date)||isString(date)){this.startDate=this.parseDate(date)}else{this.startDate=null}
if(this.built){this.render()}},setEndDate:function setEndDate(date){if(isDate(date)||isString(date)){this.endDate=this.parseDate(date)}else{this.endDate=null}
if(this.built){this.render()}},parseDate:function parseDate(date){var format=this.format;var parts=[];if(!isDate(date)){if(isString(date)){parts=date.match(REGEXP_DIGITS)||[]}
date=date?new Date(date):new Date();if(!isDate(date)){date=new Date()}
if(parts.length===format.parts.length){$.each(parts,function(i,part){var value=parseInt(part,10);switch(format.parts[i]){case 'dd':case 'd':date.setDate(value);break;case 'mm':case 'm':date.setMonth(value-1);break;case 'yy':date.setFullYear(2000+value);break;case 'yyyy':date.setFullYear(part.length===2?2000+value:value);break;default:}})}}
return new Date(date.getFullYear(),date.getMonth(),date.getDate())},formatDate:function formatDate(date){var format=this.format;var formatted='';if(isDate(date)){var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var values={d:day,dd:addLeadingZero(day,2),m:month+1,mm:addLeadingZero(month+1,2),yy:String(year).substring(2),yyyy:addLeadingZero(year,4)};formatted=format.source;$.each(format.parts,function(i,part){formatted=formatted.replace(part,values[part])})}
return formatted},destroy:function destroy(){this.unbind();this.unbuild();this.$element.removeData(NAMESPACE)}};var handlers={click:function click(e){var $target=$(e.target);var options=this.options,date=this.date,viewDate=this.viewDate,format=this.format;e.stopPropagation();e.preventDefault();if($target.hasClass('disabled')){return}
var view=$target.data('view');var viewYear=viewDate.getFullYear();var viewMonth=viewDate.getMonth();var viewDay=viewDate.getDate();switch(view){case 'years prev':case 'years next':{viewYear=view==='years prev'?viewYear-10:viewYear+10;viewDate.setFullYear(viewYear);viewDate.setDate(getMinDay(viewYear,viewMonth,viewDay));this.renderYears();break}
case 'year prev':case 'year next':viewYear=view==='year prev'?viewYear-1:viewYear+1;viewDate.setFullYear(viewYear);viewDate.setDate(getMinDay(viewYear,viewMonth,viewDay));this.renderMonths();break;case 'year current':if(format.hasYear){this.showView(VIEWS.YEARS)}
break;case 'year picked':if(format.hasMonth){this.showView(VIEWS.MONTHS)}else{$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);this.hideView()}
this.pick('year');break;case 'year':viewYear=parseInt($target.text(),10);date.setFullYear(viewYear);date.setDate(getMinDay(viewYear,viewMonth,viewDay));viewDate.setFullYear(viewYear);viewDate.setDate(getMinDay(viewYear,viewMonth,viewDay));if(format.hasMonth){this.showView(VIEWS.MONTHS)}else{$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);this.hideView()}
this.pick('year');break;case 'month prev':case 'month next':viewMonth=view==='month prev'?viewMonth-1:viewMonth+1;if(viewMonth<0){viewYear-=1;viewMonth+=12}else if(viewMonth>11){viewYear+=1;viewMonth-=12}
viewDate.setFullYear(viewYear);viewDate.setDate(getMinDay(viewYear,viewMonth,viewDay));viewDate.setMonth(viewMonth);this.renderDays();break;case 'month current':if(format.hasMonth){this.showView(VIEWS.MONTHS)}
break;case 'month picked':if(format.hasDay){this.showView(VIEWS.DAYS)}else{$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);this.hideView()}
this.pick('month');break;case 'month':viewMonth=$.inArray($target.text(),options.monthsShort);date.setFullYear(viewYear);date.setDate(getMinDay(viewYear,viewMonth,viewDay));date.setMonth(viewMonth);viewDate.setFullYear(viewYear);viewDate.setDate(getMinDay(viewYear,viewMonth,viewDay));viewDate.setMonth(viewMonth);if(format.hasDay){this.showView(VIEWS.DAYS)}else{$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);this.hideView()}
this.pick('month');break;case 'day prev':case 'day next':case 'day':if(view==='day prev'){viewMonth-=1}else if(view==='day next'){viewMonth+=1}
viewDay=parseInt($target.text(),10);date.setFullYear(viewYear);date.setMonth(viewMonth);date.setDate(viewDay);viewDate.setFullYear(viewYear);viewDate.setMonth(viewMonth);viewDate.setDate(viewDay);this.renderDays();if(view==='day'){this.hideView()}
this.pick('day');break;case 'day picked':this.hideView();this.pick('day');break;default:}},globalClick:function globalClick(_ref){var target=_ref.target;var element=this.element,$trigger=this.$trigger;var trigger=$trigger[0];var hidden=!0;while(target!==document){if(target===trigger||target===element){hidden=!1;break}
target=target.parentNode}
if(hidden){this.hide()}},keyup:function keyup(){this.update()},globalKeyup:function globalKeyup(_ref2){var target=_ref2.target,key=_ref2.key,keyCode=_ref2.keyCode;if(this.isInput&&target!==this.element&&this.shown&&(key==='Tab'||keyCode===9)){this.hide()}}};var render={render:function render(){this.renderYears();this.renderMonths();this.renderDays()},renderWeek:function renderWeek(){var _this=this;var items=[];var _this$options=this.options,weekStart=_this$options.weekStart,daysMin=_this$options.daysMin;weekStart=parseInt(weekStart,10)%7;daysMin=daysMin.slice(weekStart).concat(daysMin.slice(0,weekStart));$.each(daysMin,function(i,day){items.push(_this.createItem({text:day}))});this.$week.html(items.join(''))},renderYears:function renderYears(){var options=this.options,startDate=this.startDate,endDate=this.endDate;var disabledClass=options.disabledClass,filter=options.filter,yearSuffix=options.yearSuffix;var viewYear=this.viewDate.getFullYear();var now=new Date();var thisYear=now.getFullYear();var year=this.date.getFullYear();var start=-5;var end=6;var items=[];var prevDisabled=!1;var nextDisabled=!1;var i;for(i=start;i<=end;i+=1){var date=new Date(viewYear+i,1,1);var disabled=!1;if(startDate){disabled=date.getFullYear()<startDate.getFullYear();if(i===start){prevDisabled=disabled}}
if(!disabled&&endDate){disabled=date.getFullYear()>endDate.getFullYear();if(i===end){nextDisabled=disabled}}
if(!disabled&&filter){disabled=filter.call(this.$element,date,'year')===!1}
var picked=viewYear+i===year;var view=picked?'year picked':'year';items.push(this.createItem({picked:picked,disabled:disabled,text:viewYear+i,view:disabled?'year disabled':view,highlighted:date.getFullYear()===thisYear}))}
this.$yearsPrev.toggleClass(disabledClass,prevDisabled);this.$yearsNext.toggleClass(disabledClass,nextDisabled);this.$yearsCurrent.toggleClass(disabledClass,!0).html("".concat(viewYear+start+yearSuffix," - ").concat(viewYear+end).concat(yearSuffix));this.$years.html(items.join(''))},renderMonths:function renderMonths(){var options=this.options,startDate=this.startDate,endDate=this.endDate,viewDate=this.viewDate;var disabledClass=options.disabledClass||'';var months=options.monthsShort;var filter=$.isFunction(options.filter)&&options.filter;var viewYear=viewDate.getFullYear();var now=new Date();var thisYear=now.getFullYear();var thisMonth=now.getMonth();var year=this.date.getFullYear();var month=this.date.getMonth();var items=[];var prevDisabled=!1;var nextDisabled=!1;var i;for(i=0;i<=11;i+=1){var date=new Date(viewYear,i,1);var disabled=!1;if(startDate){prevDisabled=date.getFullYear()===startDate.getFullYear();disabled=prevDisabled&&date.getMonth()<startDate.getMonth()}
if(!disabled&&endDate){nextDisabled=date.getFullYear()===endDate.getFullYear();disabled=nextDisabled&&date.getMonth()>endDate.getMonth()}
if(!disabled&&filter){disabled=filter.call(this.$element,date,'month')===!1}
var picked=viewYear===year&&i===month;var view=picked?'month picked':'month';items.push(this.createItem({disabled:disabled,picked:picked,highlighted:viewYear===thisYear&&date.getMonth()===thisMonth,index:i,text:months[i],view:disabled?'month disabled':view}))}
this.$yearPrev.toggleClass(disabledClass,prevDisabled);this.$yearNext.toggleClass(disabledClass,nextDisabled);this.$yearCurrent.toggleClass(disabledClass,prevDisabled&&nextDisabled).html(viewYear+options.yearSuffix||'');this.$months.html(items.join(''))},renderDays:function renderDays(){var $element=this.$element,options=this.options,startDate=this.startDate,endDate=this.endDate,viewDate=this.viewDate,currentDate=this.date;var disabledClass=options.disabledClass,filter=options.filter,months=options.months,weekStart=options.weekStart,yearSuffix=options.yearSuffix;var viewYear=viewDate.getFullYear();var viewMonth=viewDate.getMonth();var now=new Date();var thisYear=now.getFullYear();var thisMonth=now.getMonth();var thisDay=now.getDate();var year=currentDate.getFullYear();var month=currentDate.getMonth();var day=currentDate.getDate();var length;var i;var n;var prevItems=[];var prevViewYear=viewYear;var prevViewMonth=viewMonth;var prevDisabled=!1;if(viewMonth===0){prevViewYear-=1;prevViewMonth=11}else{prevViewMonth-=1}
length=getDaysInMonth(prevViewYear,prevViewMonth);var firstDay=new Date(viewYear,viewMonth,1);n=firstDay.getDay()-parseInt(weekStart,10)%7;if(n<=0){n+=7}
if(startDate){prevDisabled=firstDay.getTime()<=startDate.getTime()}
for(i=length-(n-1);i<=length;i+=1){var prevViewDate=new Date(prevViewYear,prevViewMonth,i);var disabled=!1;if(startDate){disabled=prevViewDate.getTime()<startDate.getTime()}
if(!disabled&&filter){disabled=filter.call($element,prevViewDate,'day')===!1}
prevItems.push(this.createItem({disabled:disabled,highlighted:prevViewYear===thisYear&&prevViewMonth===thisMonth&&prevViewDate.getDate()===thisDay,muted:!0,picked:prevViewYear===year&&prevViewMonth===month&&i===day,text:i,view:'day prev'}))}
var nextItems=[];var nextViewYear=viewYear;var nextViewMonth=viewMonth;var nextDisabled=!1;if(viewMonth===11){nextViewYear+=1;nextViewMonth=0}else{nextViewMonth+=1}
length=getDaysInMonth(viewYear,viewMonth);n=42-(prevItems.length+length);var lastDate=new Date(viewYear,viewMonth,length);if(endDate){nextDisabled=lastDate.getTime()>=endDate.getTime()}
for(i=1;i<=n;i+=1){var date=new Date(nextViewYear,nextViewMonth,i);var picked=nextViewYear===year&&nextViewMonth===month&&i===day;var _disabled=!1;if(endDate){_disabled=date.getTime()>endDate.getTime()}
if(!_disabled&&filter){_disabled=filter.call($element,date,'day')===!1}
nextItems.push(this.createItem({disabled:_disabled,picked:picked,highlighted:nextViewYear===thisYear&&nextViewMonth===thisMonth&&date.getDate()===thisDay,muted:!0,text:i,view:'day next'}))}
var items=[];for(i=1;i<=length;i+=1){var _date=new Date(viewYear,viewMonth,i);var _disabled2=!1;if(startDate){_disabled2=_date.getTime()<startDate.getTime()}
if(!_disabled2&&endDate){_disabled2=_date.getTime()>endDate.getTime()}
if(!_disabled2&&filter){_disabled2=filter.call($element,_date,'day')===!1}
var _picked=viewYear===year&&viewMonth===month&&i===day;var view=_picked?'day picked':'day';items.push(this.createItem({disabled:_disabled2,picked:_picked,highlighted:viewYear===thisYear&&viewMonth===thisMonth&&_date.getDate()===thisDay,text:i,view:_disabled2?'day disabled':view}))}
this.$monthPrev.toggleClass(disabledClass,prevDisabled);this.$monthNext.toggleClass(disabledClass,nextDisabled);this.$monthCurrent.toggleClass(disabledClass,prevDisabled&&nextDisabled).html(options.yearFirst?"".concat(viewYear+yearSuffix," ").concat(months[viewMonth]):"".concat(months[viewMonth]," ").concat(viewYear).concat(yearSuffix));this.$days.html(prevItems.join('')+items.join('')+nextItems.join(''))}};var CLASS_TOP_LEFT="".concat(NAMESPACE,"-top-left");var CLASS_TOP_RIGHT="".concat(NAMESPACE,"-top-right");var CLASS_BOTTOM_LEFT="".concat(NAMESPACE,"-bottom-left");var CLASS_BOTTOM_RIGHT="".concat(NAMESPACE,"-bottom-right");var CLASS_PLACEMENTS=[CLASS_TOP_LEFT,CLASS_TOP_RIGHT,CLASS_BOTTOM_LEFT,CLASS_BOTTOM_RIGHT].join(' ');var Datepicker=function(){function Datepicker(element){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,Datepicker);this.$element=$(element);this.element=element;this.options=$.extend({},DEFAULTS,LANGUAGES[options.language],$.isPlainObject(options)&&options);this.$scrollParent=getScrollParent(element,!0);this.built=!1;this.shown=!1;this.isInput=!1;this.inline=!1;this.initialValue='';this.initialDate=null;this.startDate=null;this.endDate=null;this.init()}
_createClass(Datepicker,[{key:"init",value:function init(){var $this=this.$element,options=this.options;var startDate=options.startDate,endDate=options.endDate,date=options.date;this.$trigger=$(options.trigger);this.isInput=$this.is('input')||$this.is('textarea');this.inline=options.inline&&(options.container||!this.isInput);this.format=parseFormat(options.format);var initialValue=this.getValue();this.initialValue=initialValue;this.oldValue=initialValue;date=this.parseDate(date||initialValue);if(startDate){startDate=this.parseDate(startDate);if(date.getTime()<startDate.getTime()){date=new Date(startDate)}
this.startDate=startDate}
if(endDate){endDate=this.parseDate(endDate);if(startDate&&endDate.getTime()<startDate.getTime()){endDate=new Date(startDate)}
if(date.getTime()>endDate.getTime()){date=new Date(endDate)}
this.endDate=endDate}
this.date=date;this.viewDate=new Date(date);this.initialDate=new Date(this.date);this.bind();if(options.autoShow||this.inline){this.show()}
if(options.autoPick){this.pick()}}},{key:"build",value:function build(){if(this.built){return}
this.built=!0;var $this=this.$element,options=this.options;var $picker=$(options.template);this.$picker=$picker;this.$week=$picker.find(selectorOf('week'));this.$yearsPicker=$picker.find(selectorOf('years picker'));this.$yearsPrev=$picker.find(selectorOf('years prev'));this.$yearsNext=$picker.find(selectorOf('years next'));this.$yearsCurrent=$picker.find(selectorOf('years current'));this.$years=$picker.find(selectorOf('years'));this.$monthsPicker=$picker.find(selectorOf('months picker'));this.$yearPrev=$picker.find(selectorOf('year prev'));this.$yearNext=$picker.find(selectorOf('year next'));this.$yearCurrent=$picker.find(selectorOf('year current'));this.$months=$picker.find(selectorOf('months'));this.$daysPicker=$picker.find(selectorOf('days picker'));this.$monthPrev=$picker.find(selectorOf('month prev'));this.$monthNext=$picker.find(selectorOf('month next'));this.$monthCurrent=$picker.find(selectorOf('month current'));this.$days=$picker.find(selectorOf('days'));if(this.inline){$(options.container||$this).append($picker.addClass("".concat(NAMESPACE,"-inline")))}else{$(document.body).append($picker.addClass("".concat(NAMESPACE,"-dropdown")));$picker.addClass(CLASS_HIDE).css({zIndex:parseInt(options.zIndex,10)})}
this.renderWeek()}},{key:"unbuild",value:function unbuild(){if(!this.built){return}
this.built=!1;this.$picker.remove()}},{key:"bind",value:function bind(){var options=this.options,$this=this.$element;if($.isFunction(options.show)){$this.on(EVENT_SHOW,options.show)}
if($.isFunction(options.hide)){$this.on(EVENT_HIDE,options.hide)}
if($.isFunction(options.pick)){$this.on(EVENT_PICK,options.pick)}
if(this.isInput){$this.on(EVENT_KEYUP,$.proxy(this.keyup,this))}
if(!this.inline){if(options.trigger){this.$trigger.on(EVENT_CLICK,$.proxy(this.toggle,this))}else if(this.isInput){$this.on(EVENT_FOCUS,$.proxy(this.show,this))}else{$this.on(EVENT_CLICK,$.proxy(this.show,this))}}}},{key:"unbind",value:function unbind(){var $this=this.$element,options=this.options;if($.isFunction(options.show)){$this.off(EVENT_SHOW,options.show)}
if($.isFunction(options.hide)){$this.off(EVENT_HIDE,options.hide)}
if($.isFunction(options.pick)){$this.off(EVENT_PICK,options.pick)}
if(this.isInput){$this.off(EVENT_KEYUP,this.keyup)}
if(!this.inline){if(options.trigger){this.$trigger.off(EVENT_CLICK,this.toggle)}else if(this.isInput){$this.off(EVENT_FOCUS,this.show)}else{$this.off(EVENT_CLICK,this.show)}}}},{key:"showView",value:function showView(view){var $yearsPicker=this.$yearsPicker,$monthsPicker=this.$monthsPicker,$daysPicker=this.$daysPicker,format=this.format;if(format.hasYear||format.hasMonth||format.hasDay){switch(Number(view)){case VIEWS.YEARS:$monthsPicker.addClass(CLASS_HIDE);$daysPicker.addClass(CLASS_HIDE);if(format.hasYear){this.renderYears();$yearsPicker.removeClass(CLASS_HIDE);this.place()}else{this.showView(VIEWS.DAYS)}
break;case VIEWS.MONTHS:$yearsPicker.addClass(CLASS_HIDE);$daysPicker.addClass(CLASS_HIDE);if(format.hasMonth){this.renderMonths();$monthsPicker.removeClass(CLASS_HIDE);this.place()}else{this.showView(VIEWS.YEARS)}
break;default:$yearsPicker.addClass(CLASS_HIDE);$monthsPicker.addClass(CLASS_HIDE);if(format.hasDay){this.renderDays();$daysPicker.removeClass(CLASS_HIDE);this.place()}else{this.showView(VIEWS.MONTHS)}}}}},{key:"hideView",value:function hideView(){if(!this.inline&&this.options.autoHide){this.hide()}}},{key:"place",value:function place(){if(this.inline){return}
var $this=this.$element,options=this.options,$picker=this.$picker;var containerWidth=$(document).outerWidth();var containerHeight=$(document).outerHeight();var elementWidth=$this.outerWidth();var elementHeight=$this.outerHeight();var width=$picker.width();var height=$picker.height();var _$this$offset=$this.offset(),left=_$this$offset.left,top=_$this$offset.top;var offset=parseFloat(options.offset);var placement=CLASS_TOP_LEFT;if(isNaN(offset)){offset=10}
if(top>height&&top+elementHeight+height>containerHeight){top-=height+offset;placement=CLASS_BOTTOM_LEFT}else{top+=elementHeight+offset}
if(left+width>containerWidth){left+=elementWidth-width;placement=placement.replace('left','right')}
$picker.removeClass(CLASS_PLACEMENTS).addClass(placement).css({top:top,left:left})}},{key:"trigger",value:function trigger(type,data){var e=$.Event(type,data);this.$element.trigger(e);return e}},{key:"createItem",value:function createItem(data){var options=this.options;var itemTag=options.itemTag;var item={text:'',view:'',muted:!1,picked:!1,disabled:!1,highlighted:!1};var classes=[];$.extend(item,data);if(item.muted){classes.push(options.mutedClass)}
if(item.highlighted){classes.push(options.highlightedClass)}
if(item.picked){classes.push(options.pickedClass)}
if(item.disabled){classes.push(options.disabledClass)}
return"<".concat(itemTag," class=\"").concat(classes.join(' '),"\" data-view=\"").concat(item.view,"\">").concat(item.text,"</").concat(itemTag,">")}},{key:"getValue",value:function getValue(){var $this=this.$element;return this.isInput?$this.val():$this.text()}},{key:"setValue",value:function setValue(){var value=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'';var $this=this.$element;if(this.isInput){$this.val(value)}else if(!this.inline||this.options.container){$this.text(value)}}}],[{key:"setDefaults",value:function setDefaults(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};$.extend(DEFAULTS,LANGUAGES[options.language],$.isPlainObject(options)&&options)}}]);return Datepicker}();if($.extend){$.extend(Datepicker.prototype,render,handlers,methods)}
if($.fn){var AnotherDatepicker=$.fn.datepicker;$.fn.datepicker=function jQueryDatepicker(option){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}
var result;this.each(function(i,element){var $element=$(element);var isDestroy=option==='destroy';var datepicker=$element.data(NAMESPACE);if(!datepicker){if(isDestroy){return}
var options=$.extend({},$element.data(),$.isPlainObject(option)&&option);datepicker=new Datepicker(element,options);$element.data(NAMESPACE,datepicker)}
if(isString(option)){var fn=datepicker[option];if($.isFunction(fn)){result=fn.apply(datepicker,args);if(isDestroy){$element.removeData(NAMESPACE)}}}});return!isUndefined(result)?result:this};$.fn.datepicker.Constructor=Datepicker;$.fn.datepicker.languages=LANGUAGES;$.fn.datepicker.setDefaults=Datepicker.setDefaults;$.fn.datepicker.noConflict=function noConflict(){$.fn.datepicker=AnotherDatepicker;return this}}}));!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports==='object'){module.exports=factory(require('jquery'))}else{factory(jQuery)}}(function($){var pluses=/\+/g;function encode(s){return config.raw?s:encodeURIComponent(s)}
function decode(s){return config.raw?s:decodeURIComponent(s)}
function stringifyCookieValue(value){return encode(config.json?JSON.stringify(value):String(value))}
function parseCookieValue(s){if(s.indexOf('"')===0){s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,'\\')}
try{s=decodeURIComponent(s.replace(pluses,' '));return config.json?JSON.parse(s):s}catch(e){}}
function read(s,converter){var value=config.raw?s:parseCookieValue(s);return $.isFunction(converter)?converter(value):value}
var config=$.cookie=function(key,value,options){if(arguments.length>1&&!$.isFunction(value)){options=$.extend({},config.defaults,options);if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setMilliseconds(t.getMilliseconds()+days*864e+5)}
return(document.cookie=[encode(key),'=',stringifyCookieValue(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''))}
var result=key?undefined:{},cookies=document.cookie?document.cookie.split('; '):[],i=0,l=cookies.length;for(;i<l;i++){var parts=cookies[i].split('='),name=decode(parts.shift()),cookie=parts.join('=');if(key===name){result=read(cookie,value);break}
if(!key&&(cookie=read(cookie))!==undefined){result[name]=cookie}}
return result};config.defaults={};$.removeCookie=function(key,options){$.cookie(key,'',$.extend({},options,{expires:-1}));return!$.cookie(key)}}));$(document).ready(function(){if($('.latest-documents').length){$('.latest-documents').slick({dots:!1,infinite:!0,speed:300,slidesToShow:3,adaptiveHeight:!0,prevArrow:$('.prev'),nextArrow:$('.next'),responsive:[{breakpoint:1180,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:760,settings:{slidesToShow:1,slidesToScroll:1}}]})}
$(document).on('click','.documents-header-right .link-btn a',function(e){e.preventDefault();$.fancybox.open({transitionEffect:'tube',transitionDuration:3366,src:$(this).parent().next(),type:'inline',opts:{afterShow:function(instance,current){},afterClose:function(instance,current){}}})});$(document).on('click','.document-item .preview-btn',function(e){e.preventDefault();$.fancybox.open({transitionEffect:'tube',transitionDuration:3366,src:$(this).attr('href'),type:'ajax',opts:{afterShow:function(instance,current){$(html).addClass('animate-structure-content');setTimeout(function(){$(html).addClass('animate-structure-content-image')},200)},afterClose:function(instance,current){$(html).removeClass('animate-structure-content');$(html).removeClass('animate-structure-content-image')}}})});$(document).on('click','.documents-header .type span',function(e){var scrollTo=$('.list-documents');var oveflow=0;if($(this).hasClass('scroll-groups')){scrollTo=$('.documents-wrapper .groups');oveflow=0}
$('.documents-content').animate({scrollTop:oveflow},0,function(){$('body,html').animate({scrollTop:scrollTo.offset().top-130},200)})});if($('.filter-tags select').length){$('.filter-tags select').select2({dropdownCssClass:'wb-documents-dropdown',placeholder:tagsLabel,})}
if($('.filter-language select').length){$('.filter-language select').select2({dropdownCssClass:"wb-documents-dropdown",minimumResultsForSearch:-1,})}
if($('.filter-sort select').length){$('.filter-sort select').select2({dropdownCssClass:"wb-documents-dropdown no-padding",minimumResultsForSearch:-1,placeholder:sortLabel})}
$('[data-toggle="datepicker"]').datepicker({autoHide:!0,format:'dd-mm-yyyy'});if($('.tag-value').length){var array=[];$('.tag-value').each(function(){array.push($(this).val())});$(".filter.filter-tags select").val(array).trigger("change")}
if($('.language-value').length){$(".filter.filter-language select").val($('.language-value').val()).trigger("change")}
if($('.country-value').length){$(".filter.filter-country select").val($('.country-value').val()).trigger("change")}
if($('.sort-value').length){$(".filter.filter-sort select").val($('.sort-value').val()).trigger("change")}
if(!$('.documents-wrapper .f3-widget-paginator .next').length){$('.documents-wrapper .load-more-wrapper').addClass('hide')}else{$('.documents-wrapper .load-more-wrapper').removeClass('hide')}
ajax=function(data){$('.loader-wrapper').removeClass('hide');$('.filter-tags select').select2('close');data.ajax=!0;$.ajax({type:'POST',url:$('.filter-form').attr('action'),dataType:'json',data:data,}).done(function(result,textStatus,jqXHR){$('.documents-wrapper').html($(result).find('.documents-wrapper'));$('.documents-header').html($(result).find('.documents-header').html());$('.filter-sort select').select2({dropdownCssClass:"wb-documents-dropdown no-padding",minimumResultsForSearch:-1});if(!$('.f3-widget-paginator .next').length){$('.documents-wrapper .load-more-wrapper').addClass('hide')}else{$('.documents-wrapper .load-more-wrapper').removeClass('hide')}
$('.loader-wrapper').addClass('hide')}).fail(function(){})}
url=function(data){var param=[];if(data.sword){param.push('sword='+encodeURIComponent(data.sword))}
if(data.group){param.push('group='+data.group)}
if(data.language){param.push('language='+data.language)}
if(data.country){param.push('country='+data.country)}
if(data.sort){param.push('sort='+data.sort)}
if(data.tags){$.each(data.tags,function(index,value){param.push('tags['+index+']='+value)})}
if(data.dateFrom){param.push('dateFrom='+data.dateFrom)}
if(data.dateTo){param.push('dateTo='+data.dateTo)}
var urlData=param.join('&');var newurl=window.location.protocol+"//"+window.location.host+window.location.pathname+'?'+urlData;window.history.pushState({path:newurl},'',newurl)}
var handleData=function(){var data={'sword':$(".filter.filter-sword input").val(),'tags':$(".filter.filter-tags select").val(),'language':$(".filter.filter-language select").val(),'country':$(".filter.filter-country select").val(),'dateFrom':$(".filter.filter-date-from input").val(),'dateTo':$(".filter.filter-date-to input").val(),'sort':$(".filter.filter-sort select").val(),'group':$('.groups .group.active').attr('data-group')};url(data);ajax(data)}
$(document).on("click",'.documents-content .group',function(event){$(this).addClass('active').siblings().removeClass('active');handleData()});$(document).on("change",'.tx-wb-documents .filter input, .tx-wb-documents .filter select',function(event){handleData()});$('.filter-form').on('submit',function(e){e.preventDefault();handleData()});$(document).on("click",'.documents-wrapper .selected-filter',function(event){if($(this).hasClass('sword')){$('.filter-sword input').val('')}
if($(this).hasClass('language')){$('.filter-language select').val('');$('.filter-language select').trigger('change')}
if($(this).hasClass('country')){$('.filter-country select').val('');$('.filter-country select').trigger('change')}
if($(this).hasClass('date-from')){$('.filter-date-from input').val('')}
if($(this).hasClass('date-to')){$('.filter-date-to input').val('')}
if($(this).hasClass('tag')){$('.filter-tags select option[value="'+$(this).attr('data-val')+'"]').prop('selected',!1);$('.filter-tags select').trigger('change')}
$(this).remove();handleData()});$(document).on('click','.documents-wrapper .load-more-wrapper a',function(e){e.preventDefault();$('.loader-wrapper').removeClass('hide');var nextPage=$('.f3-widget-paginator .next');if(nextPage.length){currentUrl=window.location.href+'&'+nextPage.find('a').attr("href").substring(nextPage.find('a').attr("href").lastIndexOf('?')+1);$('.loader-wrapper').removeClass('hide');$.ajax({async:'true',url:currentUrl,type:'POST',dataType:'html',success:function(data){$('.documents-wrapper .document-item').last().after($(data).find('.documents-wrapper .document-item'));$('.documents-wrapper .f3-widget-paginator').html($(data).find('.f3-widget-paginator'));if(!$('.f3-widget-paginator .next').length){$('.documents-wrapper .load-more-wrapper').addClass('hide')}else{$('.documents-wrapper .load-more-wrapper').removeClass('hide')}
$('.loader-wrapper').addClass('hide')},error:function(error){$('.loader-wrapper').addClass('hide')}})}});$(document).on('click','.cart-btn',function(){var source=$.cookie('basket');var item=$(this).data('document');if(source){var array=source.split('-');if($.inArray(item.toString(),array)!='-1'){}else{array.push(item)}}else{var array=[];array.push(item)}
var result=array.join("-");$.cookie('basket',result,{path:'/'});if($('.documents-sticky .basket').length){$('.basket .counter').each(function(){$(this).html(array.length)});$('.documents-sticky .basket form > input').val(result);if(array.length>1){$('.basket-not-empty').removeClass('hide');$('.basket-not-empty.single').remove()}
$('.documents-sticky .basket').removeClass('hide')}});$('.documents-sticky .basket-header').on('click',function(){var basket=$(this).parents('.documents-sticky');if(basket.hasClass('active')){basket.removeClass('active')}else{basket.addClass('active')}});$('.documents-sticky .clear-basket').on('click',function(){$.removeCookie('basket',{path:'/'});location.reload()});if($('.tx-wb-documents .documents-wrapper').length){$(window).on('popstate',function(event){location.reload()})}});function decryptCharcode(n,start,end,offset){n=n+offset;if(offset>0&&n>end){n=start+(n-end-1)}else if(offset<0&&n<start){n=end-(start-n-1)}
return String.fromCharCode(n)}
function decryptString(enc,offset){var dec="";var len=enc.length;for(var i=0;i<len;i++){var n=enc.charCodeAt(i);if(n>=0x2B&&n<=0x3A){dec+=decryptCharcode(n,0x2B,0x3A,offset)}else if(n>=0x40&&n<=0x5A){dec+=decryptCharcode(n,0x40,0x5A,offset)}else if(n>=0x61&&n<=0x7A){dec+=decryptCharcode(n,0x61,0x7A,offset)}else{dec+=enc.charAt(i)}}
return dec}
function linkTo_UnCryptMailto(s){location.href=decryptString(s,-10)}
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=Base64._utf8_encode(input);while(i<input.length){chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64}else if(isNaN(chr3)){enc4=64}
output=output+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4)}
return output},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<input.length){enc1=this._keyStr.indexOf(input.charAt(i++));enc2=this._keyStr.indexOf(input.charAt(i++));enc3=this._keyStr.indexOf(input.charAt(i++));enc4=this._keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2)}
if(enc4!=64){output=output+String.fromCharCode(chr3)}}
output=Base64._utf8_decode(output);return output},_utf8_encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c)}else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128)}else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128)}}
return utftext},_utf8_decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++}else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2}else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3}}
return string}}
if(location.hash){setTimeout(function(){window.scrollTo(0,0)},1)}
var headerHeight=160;var layout={init:function(){for(var name in this){if((/^init.+/).test(name)){this[name]()}}},getHeadersHeight:function(){$("#top").addClass('sticky');var headerHeight=parseInt($('#top').outerHeight())+50;$("#top").removeClass('sticky')},initLinks:function(){$('a[rel*=external]').on('click',function(e){e.preventDefault();window.open($(this).attr('href'))})},initForms:function(){$('#footer').add($('.input-a')).add($('#top')).find('label:not(.hidden) + :input:not(select,button)').each(function(){$(this).attr('placeholder',$(this).parent().children('label').text()).parent().children('label').addClass('hidden')});$('.module-box').each(function(){if($(this).is('.a')){$(this).find('label:not(.hidden) + :input:not(select,button)').each(function(){$(this).attr('placeholder',$(this).parent().children('label').text()).parent().children('label').addClass('hidden')})}});$('input[type="checkbox"], input[type="radio"]').each(function(){if($(this).is('[checked]')){$(this).prop('checked',!0).parent('label').addClass('active')}else{$(this).prop('checked',!1).removeAttr('checked')}});$('.checklist-a').add($('.check-a')).find('label').append('<div class="input"></div>').each(function(){$(this).addClass($(this).children('input').attr('type'))}).children('input').addClass('hidden').on('click',function(){if($(this).parent().hasClass('radio')){$(this).parent('label').parents('p,ul').find('label').removeClass('active')}
$(this).parent('label').toggleClass('active')})},initTop:function(){$('#nav').add($('#top')).find('li > ul, li > div').parent().addClass('sub').append('<span class="toggle"></span>').children('span.toggle').on('click',function(){if($(this).parent().is('.toggle')){$(this).parent().removeClass('toggle')}else{$(this).parents('ul:first').children('li.toggle').removeClass('toggle');$(this).parent().addClass('toggle')}
return!1});$('#top').find('.search > a').on('click',function(){$('html').removeClass('lang-active menu-active').toggleClass('search-active');if($('html.search-active').length==1){$("input#sa, input#sword").focus()}
return!1});$('#top').append('<div class="menu"></div>').parent().append('<nav id="mobile"></nav><div id="shadow"></div>');$('#top').find('ul.lang').each(function(){$('#top').append('<a class="lang"></a>').children('a.lang').on('click',function(){$('html').removeClass('search-active menu-active').toggleClass('lang-active')})});$('#nav').children().clone().appendTo('#mobile');$('#mobile').find('li.sub > span.toggle').on('click',function(){$(this).parent().toggleClass('toggle');return!1});$('#shadow').add($('#top').children('.menu')).on('click',function(){$('html').removeClass('search-active lang-active').toggleClass('menu-active');return!1})},initMiscellaneous:function(){$('#featured').add($('.module-featured')).find('figure').add($('.image-wide')).add($('.module-wide').find('.background')).each(function(){$(this).css({'background-image':'url("'+$(this).find('img').attr('src')+'")'})});$('.list-news').add($('.list-resources')).find('li').each(function(){$(this).find('a.clone').parents('li:first').addClass('has-link').find('.clone *').remove()});$('.list-resources').children('li').addClass('item');$('.list-center').wrapInner('<div class="inner"></div>');$('.module-featured').each(function(){$(this).find(':header').addClass('desktop-only').clone().removeClass('desktop-only').addClass('desktop-hide m20').prependTo($(this))})},initCss:function(){$('html').each(function(){if($(this).is('.lt-ie11')){$('input[placeholder], textarea[placeholder]').placeholder()}
if($(this).is('.lt-ie9')){$('body').append('<p class="lt-ie9">Your browser is ancient! Please <a target="_blank" href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>').css('padding-top','28px');$(':last-child').addClass('last-child')}})},initCheckboxRadioButtons:function(selector){if(typeof selector=='undefined'){selector=$("body")}
selector.find('input[type=checkbox], input[type=radio]').each(function(){$(this).after("<span class='fake-input'></span>");$(this).parents("label").addClass("wb-input-wrap")})},initSelect2:function(selector){if(typeof selector=='undefined'){selector=$("body")}
selector.find('select:not(.disable-select2)').each(function(){$(this).select2({minimumResultsForSearch:4})})},initFancybox:function(selector){if(typeof selector==='undefined'){selector=".fancybox"}
if(typeof $.fn.fancybox=='function'){$(selector).fancybox({'hideOnContentClick':!0,'transitionIn':'fade','transitionOut':'fade','speedIn':600,'padding':10,'speedOut':200});$("a.fancybox-gallery").fancybox({'transitionIn':'fade','transitionOut':'fade','padding':10,theme:'light',closeBtn:!0,arrows:!0,nextClick:!0,caption:{type:'inside'},helpers:{thumbs:!0}})}},initTabs:function(){$(".tabs ul.tabs-nav li").on("click",function(){$(this).parent().find("li").removeClass("open");$(this).addClass("open");$(this).parents(".tabs").find("> .a-body").removeClass("open");$(this).parents(".tabs").find(".tab-"+$(this).attr("data-tab")).addClass("open")})},initAccordions:function(){$(".accordion .a-h ").on("click",function(event){var currentActive=$(this).hasClass("open");$(this).parents(".accordion").find(".a-body.open").slideToggle(function(){$(this).removeClass("open").removeAttr("style")});$(this).parents(".accordion").find(".a-h.open").removeClass("open");if(currentActive!=!0){$(this).next(".a-body").slideToggle(function(){$(this).addClass("open")}).addClass("open");$(this).addClass("open")}});$(".accordion .a-h").each(function(){$(this).append('<span class="arrow"></span>')})},initTableWrap:function(){$('#root .article table').each(function(){$(this).wrap("<div class='table-wrap'></div>")})},initClickableArea:function(selector){if(typeof selector==='undefined'){selector=$("body")}
$(selector).find(".clickable-area").click(function(event){if(event.target.nodeName.toLowerCase()!=='a'){var block=$(this).hasClass("clickable-area")?$(this):$(this).parents(".clickable-area");var href='';var host='';var target='';if(block.find("a").length>0){href=block.find("a").first().attr("href");target=block.find("a").first().attr("target")}else if(block.parent().find("a").length>0){href=block.parent().find("a").first().attr("href");target=block.parent().find("a").first().attr("target")}
if(!/^(f|ht)tps?:\/\//i.test(href)){var location='https://'+window.location.hostname+'/'+href}else{var location=href}
if(target=="_blank"){event.preventDefault();window.open(location,target)}else{window.location=location}}})},initPrintPage:function(){$(document).on("click","#print",function(){window.print()})},initSearchInput:function(){$(".header .submit").mouseenter(function(){$(this).parent().find(".sword").show()});$(".header .input-search-box").mouseleave(function(){$(this).parent().find(".sword").hide()})},scrollToElement:function(element,offsetUpper,duration,findForm){$('html, body').animate({scrollTop:$(element).offset().top-offsetUpper},duration,function(){if(findForm===!0){var formItem=$(element).find("form");if(formItem.length==1){if(formItem.find("input").val().length>1){var inputNew=formItem.find("input");var len=inputNew.val().length;inputNew[0].focus();inputNew[0].setSelectionRange(len,len)}else{formItem.find("input").eq(0).focus()}}}});return!1},stickyHeader:function(){if($('.extend-view').length==1){startFrom=$('.extend-view').outerHeight()}
if($(window).scrollTop()>170){$('#root').addClass("header-sticky")}else{$('#root').removeClass("header-sticky")}
if($(window).scrollTop()>340){$('#root').addClass("header-sticky-active")}
if($(window).scrollTop()<340){$('#root').removeClass("header-sticky-active")}},initNewsLoadMore:function(){if($('.list-news-cnt').length<1){return}
var container=$('.list-news-cnt'),button=$('.load-more-news'),pagination=$('.f3-widget-paginator'),newsToLoad=[];if(pagination.length<1){button.hide()}
pagination.find('li:not([class])').each(function(){newsToLoad.push($(this).find('a').attr('href'))});button.not('.loading').on('click',function(e){e.preventDefault();e.stopImmediatePropagation();e.stopPropagation();if(button.hasClass('loading')){return}
button.addClass('loading');$.ajax({async:'true',url:newsToLoad[0],type:'POST',dataType:'html',success:function(data){var $newItems=$(data).find(".ajax-container .news-list-item");container.isotope().append($newItems).isotope('appended',$newItems);container.imagesLoaded().progress(function(){container.isotope('layout')});newsToLoad.shift();button.removeClass('loading');if(newsToLoad.length==0){button.remove()}},error:function(error){button.removeClass('loading')}})})},initRelatedPagesLayout:function(){$('.nav-regions').attr('data-elements',$('.nav-regions ul > li').length)},initAnchorList:function(){$(".anchor-item a").click(function(event){event.preventDefault();event.stopImmediatePropagation();event.stopPropagation();scrollToElement="#"+$(this).parent().attr("id").split('-')[1];$('.header').addClass("sticky");layout.scrollToElement(scrollToElement,$('.header').outerHeight(),450,0)})},validateEmail:function($email){var emailReg=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return emailReg.test($email)},initSubscribeTeaser:function(){$(".external-form").on('submit',function(event){event.preventDefault();event.stopImmediatePropagation();event.stopPropagation();var target="_blank",defaultTarget=$(this).attr('action'),emailAddress=$(this).find('.email-field'),location=defaultTarget+'&'+emailAddress.attr('name')+'='+emailAddress.val();if(layout.validateEmail(emailAddress.val())){window.open(location,target);emailAddress.removeClass('with-error')}else{$(this).focus();emailAddress.addClass('with-error');emailAddress.focus()}})},initMembersPlugin:function(){$("#member-country").on('change',function(){var location=$(this).val(),target="_top";window.open(location,target)});if($('.members-filter-module').length){$('.sword-country').keyup(function(){var searchParameter=$(this).val().toLowerCase();$('.sword-country').not($(this)).val($(this).val());if(searchParameter.length>=2){$('.script-country .country-name').each(function(){var countryName=$(this).text().toLowerCase();if(countryName.indexOf(searchParameter)!=-1){$(this).parent().removeClass('hide')}else{$(this).parent().addClass('hide')}})}else{$('.script-country .country-name').parent().removeClass('hide')}})}
$('.country-holder').click(function(){var dataCountry=$(this).attr('data-country');var selectedDataItem=$('.country-members-holder[data-country="'+dataCountry+'"] .a-h');if(!selectedDataItem.hasClass('open')){selectedDataItem.trigger('click')}
setTimeout(function(){$('html, body').animate({scrollTop:selectedDataItem.offset().top-140})},400)})},initMapPlugin:function(){var map=function(){if($("#mapsvg").length){if($(".tx_wbmap-items .single-item").length){var Regions={};var Region=function(){this.id=0;this.title=0;this.gaugeValue;this.tooltip="";this.popover="";this.disabled};numbers=new Array();$(".tx_wbmap-items .single-item").each(function(){var item=new Region();item.id=$(this).attr("id");item.title=$(this).find(".top-content .h3").first().text();var sumTargAccid=Number($(this).attr("count"))+Number($(this).attr("accidental"));item.gaugeValue=sumTargAccid;item.disabled=!1;item.tooltip=$(this).find(".top-content .h3").first().text();var accidental='';if($(this).attr("accidental")>0){accidental=accidentalKill+': '+$(this).attr("accidental")}
var target='';if($(this).attr("count")>0){target=targetedKill+': '+$(this).attr("count")+'<br>'}
item.popover='<span class="popup-title">'+$(this).find(".top-content .h3").first().text()+"</span><span class='popup-content'>"+target+accidental+"</span>";Regions[item.id]=item;numbers.push(item.gaugeValue)});var maxGaugeValue=Math.max.apply(null,numbers);var minGaugeValue=Math.min.apply(null,numbers);jQuery("#mapsvg").mapSvg({disableAll:!0,colors:{baseDefault:"rgb(245,245,245)",background:"#fff",directory:"#fafafa",status:{},hover:-5,selected:-10},viewBox:[0,-0.17029702970296512,1009,665.3405940594059],scroll:{on:!0,limit:!1,background:!1,spacebar:!1},regions:Regions,zoom:{on:!0,limit:[0,10],delta:2,buttons:{on:!0,location:"left"},mousewheel:!0},tooltips:{mode:function(jQueryTooltipObj,mapObject,mapsvgInstance){if(this.mapsvg_type=="region")
return this.title+': '+$(".tx_wbmap-items .single-item#"+this.id).attr("count")},on:!0,priority:"local",position:"bottom-right"},popovers:{mode:"off",on:!1,priority:"local",position:"top",centerOn:!0},gauge:{on:!0,labels:{low:minGaugeValue,high:maxGaugeValue},colors:{lowRGB:{r:85,g:0,b:0,a:1},highRGB:{r:238,g:0,b:0,a:1},low:"rgb(224, 198, 199)",high:"rgb(147, 9, 18)",diffRGB:{r:153,g:0,b:0,a:0}},min:0,max:!1},source:"typo3conf/ext/wb_map/Resources/Public/Maps/world.svg",title:"IFJ Safety",responsive:!0,onClick:function(e,mapsvg){var region=this;$(".single-item#"+this.id).addClass("show").show().siblings().removeClass("show").hide();$(".tx-wb-map .cols-a > .map-content").removeClass("hidden");var current=$(".tx-wb-map .map-country .other-items span[data-country='#"+this.id+"']");$(".tx-wb-map .map-country .default-name span").text(current.text());current.hide().siblings().show();mapsvg.setPopovers({centerOn:!0})},afterLoad:function(){}})}}}
map();$('body').on('click','.map-country .other-items span',function(e){$countryID=$(this).attr('data-country');$appendText=$(this).text();$(".map-country .append-active span").text($appendText);$(".map-country .other-items span").show();$("span[data-country='"+$countryID+"']").hide();$(".tx_wbmap-items > .single-item").hide();if($countryID=="#worldwide"){$(".tx-wb-map .cols-a > .map-content").addClass("hidden");$("#mapsvg").mapSvg().setViewBox([0,-0.17029702970296512,1009,665.3405940594059]);$("#mapsvg").mapSvg().hidePopover();$("#mapsvg").mapSvg().deselectRegion()}else{$(".single-item"+$countryID).addClass("show").show().siblings().removeClass("show").hide();$(".tx-wb-map .cols-a > .map-content").removeClass("hidden");var replacedId=$countryID.replace("#","");var region=$("#mapsvg").mapSvg().getRegion(replacedId);$("#mapsvg").mapSvg().showPopover(e,$("#mapsvg").mapSvg().getPopoverBody(region),null,region)}});$('body').on('click','.tx-wb-map .map-content .close-popup',function(){$(".map-country .other-items span[data-country='#worldwide']").click()});$('body').on('click','.tx-wb-map .mapsvg-popover-close',function(){$(".map-country .other-items span[data-country='#worldwide']").click()});var loadMap=function(){if($("#mapsvg div").length){$("#mapsvg").mapSvg().destroy()}
map();if($("#mapsvg div").length){$('.tx-wb-map > .map-container').removeClass('hide')}else{$('.tx-wb-map > .map-container').addClass('hide')}
setTimeout(function(){$('.tx-wb-map .ajax-loader').removeClass('show')},20)};$('body').on('click','.tx-wb-map .map-year .other-items a',function(e){e.preventDefault();var current=$(this);$('.tx-wb-map .ajax-loader').addClass('show');$.ajax({async:'true',url:current.attr('href'),type:'POST',dataType:'json',success:function(data){var map=$(data);$('.tx-wb-map .map-year').html(map.find(".map-year").html());$('.tx-wb-map .map-country').html(map.find(".map-country").html());$('.tx-wb-map .map-container .map-content').html(map.find(".map-container .map-content").html()).addClass("hidden");loadMap()},error:function(error){$('.tx-wb-map .ajax-loader').removeClass('show')}})})},resourcesLoadMore:function(){if($('.tx_wbresources .resources-items').length<1){return}
var container=$('.ajax-container'),button=$('.load-more-resources'),isotopeContainer=$('.list-resources'),pagination=$('.page-navigation'),resourcesToLoad=[];if(pagination.length<1){button.hide()}
pagination.find('li:not([class])').each(function(){resourcesToLoad.push($(this).find('a').attr('href'))});button.not('.loading').on('click',function(e){e.preventDefault();e.stopImmediatePropagation();e.stopPropagation();if(button.hasClass('loading')){return}
button.addClass('loading');$.ajax({async:'true',url:resourcesToLoad[0],type:'POST',dataType:'html',success:function(data){var $newItems=$(data).find(".ajax-container .resc-item");container.isotope().append($newItems).isotope('appended',$newItems);container.imagesLoaded().progress(function(){container.isotope('layout')});layout.initFancybox();resourcesToLoad.shift();button.removeClass('loading');if(resourcesToLoad.length==0){button.remove()}},error:function(error){button.removeClass('loading')}})})},initResourcesCategoryAjax:function(){if($('.tx_wbresources .resources-items').length<1){return}
var container=$('.tx-wb-resources');$('body').on('click','.rs-cat-placeholder .ajax-call',function(e){e.preventDefault();e.stopImmediatePropagation();e.stopPropagation();if($(this).hasClass('loading')||$(this).find('span').hasClass('btn-root')==!0){return}
container.find(".block-if-ajax-isInProgress").show();container.find(".load-resource-loader").addClass("ajax-in-progress");$(this).addClass('loading');$.ajax({async:'true',url:$(this).attr('data-url'),type:'POST',dataType:'html',success:function(data){$(".resources-items, .rs-cat-placeholder > *").remove();container.find(".load-resource-loader").removeClass("ajax-in-progress");container.find(".block-if-ajax-isInProgress").hide();$(data).find(".rs-cat-placeholder").appendTo(container.find('.rs-cat-placeholder'));$(data).find(".resources-items").appendTo(container.find('.tx_wbresources'));var $transform=!0;if($('html[lang="ar"]').length){$transform=!1}
$('.list-resources img').on('load',function(){$('.list-resources').isotope({isOriginLeft:$transform,masonry:{columnWidth:1}})});layout.resourcesLoadMore();layout.initFancybox();layout.initCopyToClipboard()},error:function(error){$(this).removeClass('loading')}})})},initShareSocial:function(){$('body').on('click','.social-link.show-in-popup',function(){window.open(this.href,'','menubar=no,toolbar=no,resizable=yes,scrollbars=no,height=300,width=600');return!1})},initEmailLinkCheat:function(){$('a[href*="javascript:linkTo_UnCryptMailto"], a[href*="mailto:"], a.email').each(function(){var text=$(this).text().split('@');if(text[1]){$(this).addClass("cheated");$(this).text("");$(this).append('<span class="title">'+text[0]+'</span><span class="email-client">@'+text[1]+'</span>')}})},initCloseSharedItem:function(){$('body').on('click','.remove-extended-resource',function(){$('.extend-view').fadeOut("300",function(){$('.extend-view').remove()});window.history.pushState({},document.title,window.location.pathname)});$('.shared-resource-inner a').parents('.shared-resource-inner').find('img').addClass('c-p');$('body').on('click','.shared-resource-inner figure',function(){if($('.shared-resource-inner h3 a').length){$('.shared-resource-inner h3 a')[0].click()}})},minHeightFeatureSliderItems:function(){var minHeight=0;var sliderItems=$('#featured article');var sliderTarget=$('#featured article header');if(sliderItems.length>1){sliderItems.addClass('script-helper');sliderTarget.css("min-height",'auto');sliderItems.each(function(){minHeight=$(this).find('header').outerHeight()>minHeight?$(this).find('header').outerHeight():minHeight});sliderItems.removeClass('script-helper');sliderTarget.css("min-height",minHeight)}},initLayoutFixes:function(){$("#share a[href='#']").on('click',function(e){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();var $parent=$(this).parent().first()
if($("html").hasClass("mobile")){$parent.toggleClass('toggle')}});$("#content").prepend($("#featured").next(".list-center"));$('#footer .frame-type-menu_pages ul').addClass('list-cols');$('.latest-view li').each(function(){$(this).find('img').show();$(this).find('.news-img-wrap').css("background-image",'url('+$(this).find('img').attr('src')+')');$(this).find('img').removeAttr('style')})},initNewsCategoryMenu:function(){$(".news .parent-item > strong, .news .parent-item > .open-submenu").on('click',function(e){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();$(this).parents('.parent-item').toggleClass('li-parent-active').find('ul').first().slideToggle()})},initExpendableTeaser:function(){$('.script-expand').on('click',function(){var $parents=$(this).parents('.expendable-teaser');var $height=$parents.find('.script-data-height').outerHeight();var $toggleContainer=$parents.find('.expendable-content');$parents.toggleClass('show-content');if($toggleContainer.hasClass('script-active')){if(layout.windowSizes().width<761){$toggleContainer.css("max-height",200).removeClass('script-active')}else{$toggleContainer.css("max-height",195).removeClass('script-active')}}else{$toggleContainer.css("max-height",$height).addClass('script-active')}})},expendableTeaserHeight:function(){$('.expendable-content').each(function(){var $this=$(this);if($this.hasClass('script-active')){$this.height($this.find('.script-data-height').outerHeight())}})},initAnchorList:function(){$(document).on("click","#featured ul li a, #featured p a",function(e){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();var anchor=this.href.split("#")[1];var location="#"+anchor;var target=$(this).attr("target");if(!anchor||$(location).length==0){location=this.href;if(target=="_blank"){window.open(location,target)}else{window.location=location}}else{layout.scrollToElement(location,headerHeight,800)}})},stickySocial:function(){if(($('main#content').position().top-$('#share').outerHeight())<$(window).scrollTop()){$('#share').css('opacity',1)}else if(($('main#content').position().top+$('#share').outerHeight())>$(window).scrollTop()){$('#share').css('opacity',0)}},initFileList:function(){if($('.file-list li.active')){$('.file-list li.active').siblings().removeClass('hide');var parents=$('.file-list li.active').parentsUntil('.module-box');parents.each(function(){var childrens=$(this).children();childrens.each(function(){if(!$(this).hasClass('expand')){$(this).removeClass('hide')}else{$(this).addClass('hide')}});$(this).siblings().removeClass('hide')})}
$('.expand').on('click',function(){$(this).addClass('hide');$(this).next().removeClass('hide');var list=$(this).siblings('ul');list.each(function(){$(this).children().removeClass('hide')})});$('.collapse').on('click',function(){$(this).addClass('hide');$(this).prev().removeClass('hide');var list=$(this).siblings('ul');list.each(function(){$(this).children().addClass('hide')})})},windowSizes:function(){var e=window,a='inner';if(!('innerWidth' in window)){a='client';e=document.documentElement||document.body}
return{width:e[a+'Width'],height:e[a+'Height']}},initDonateForm:function(){$('a[rel="safety-form"]').on("click",function(e){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();$('.donate-through-paypal').submit()})},groupOfElementsMinHeight:function(elementForCalculations,findElement){var thisElem=$(elementForCalculations);if(findElement){var $findElement=findElement}
if(thisElem.length>0){var currentTallest=0,currentRowStart=0,rowDivs=new Array(),$el,topPosition=0;thisElem.each(function(){$el=$(this);if($findElement){$($el).find($findElement).css("min-height","0")}else{$($el).css("min-height","0")}
topPostion=$el.position().top;if(currentRowStart!=topPostion){for(currentDiv=0;currentDiv<rowDivs.length;currentDiv++){rowDivs[currentDiv].css("min-height",currentTallest)}
rowDivs.length=0;if($findElement){$el=$el.find($findElement)}
currentRowStart=topPostion;currentTallest=$el.height();rowDivs.push($el)}else{if($findElement){$el=$el.find($findElement)}
rowDivs.push($el);currentTallest=(currentTallest<$el.height())?($el.height()):(currentTallest)}
for(currentDiv=0;currentDiv<rowDivs.length;currentDiv++){rowDivs[currentDiv].css("min-height",currentTallest)}})}},initLinkBoxShowHide:function(){if($('.link-box').length>0){if($('.link-box .clickable-area').length<9){$('.link-box-button').hide()}else{$('.page-315 .link-box .clickable-area').each(function(index,element){var incrementIndex=index+1;if(incrementIndex>9){$(this).hide()}});$('.page-315 .link-box-button .load-more-links').on('click',function(e){e.preventDefault();$(this).hide();$('.page-315 .link-box .clickable-area:hidden').fadeIn(500)})}}},fullWidthTeaser:function(){$(".full-width-teaser").width($("html").width()).css("margin-left",($("#footer").width()-$("html").width())/2-parseInt($("#content > .cols-a").css("padding-left")));$(".arabic-site .full-width-teaser").width($("html").width()).css("margin-right",($("#footer").width()-$("html").width())/2-parseInt($(".arabic-site #content > .cols-w").css("padding-left")))},initScrollToSection:function(){$(".down-arrow").click(function(){$('html, body').animate({scrollTop:$(".down-arrow").offset().top},800)})},initCopyToClipboard:function(){$('body, html').delegate('.resc-item .link-share','click',function(){var copiedValue=$(this).attr("data-href");var $temp=$("<input>");$(this).append($temp);$temp.val(copiedValue).select();document.execCommand("copy");$temp.remove();$(".wb-clipboard").show();setTimeout(function(){$(".wb-clipboard").fadeOut()},2500)})},initDigitalLibraryHeight:function(){var minHeight=0;var digitalItem=$('.digital-library-item');if(digitalItem.length>1){digitalItem.css("min-height",'auto');digitalItem.each(function(){minHeight=$(this).outerHeight()>minHeight?$(this).outerHeight():minHeight});digitalItem.css("min-height",minHeight)}},initQuotationForm:function(){if($('.quotation-form').length){function getDateString(date){var month=date.getUTCMonth()+1;var day=date.getUTCDate();return[date.getUTCFullYear(),(month>9?'':'0')+month,(day>9?'':'0')+day].join('-')}
var hostCountries=[];var destinationCountries=[];var removableDestinationCountryDropdown=$('<div class="full-width"> <select class="destinationCountry full-width"> <option value="" disabled="disabled" selected="selected">Please choose a Country</option> </select> <span class="close-icon">&#10006;</span> <span class="close heavy"></span> </div>');var countryStateDropdown=$('<div class="fieldset" id="hostCountryStateContainer"> <div class="full-width"> <label id="stateTitle">State</label> </div> <div class="full-width"> <select id="hostCountryStateDropdown" class="full-width"></select> </div> </div>');var quote="";var today=new Date();today.setUTCHours(0,0,0,0);var minDate=getDateString(today);var maxStartDate=new Date();maxStartDate.setDate(today.getDate()+90);$("#startDate").datepicker({autoHide:!0,format:'yyyy-mm-dd'});$("#endDate").datepicker({autoHide:!0,format:'yyyy-mm-dd'});$("#startDate").attr("min",minDate);$("#startDate").attr("max",getDateString(maxStartDate));$("#endDate").attr("min",minDate);var hostCountryRequest=new XMLHttpRequest();hostCountryRequest.open('GET','https://api.tangiersgroup.com/api/v1/site/1/product/7/host_country',!0);hostCountryRequest.onload=function(){var data=JSON.parse(this.response);if(hostCountryRequest.status>=200&&hostCountryRequest.status<400){hostCountries=data;$.each(data,function(index,value){$("#hostCountryDropdown").append($("<option />").val(index).text(value.country.name))});var destinationCountryRequest=new XMLHttpRequest();destinationCountryRequest.open('GET','https://api.tangiersgroup.com/api/v1/site/1/product/7/destination_country',!0);destinationCountryRequest.onload=function(){var data=JSON.parse(this.response);destinationCountries=data;if(destinationCountryRequest.status>=200&&destinationCountryRequest.status<400){$.each(data,function(index,value){$("#destinationCountryDropdown").append($("<option />").val(index).text(value.country.name));removableDestinationCountryDropdown.find('select').append($("<option />").val(index).text(value.country.name))})}else{$("#errorText").show();$("#errorText>span").text("Error loading Resources, Try again later");return}}
destinationCountryRequest.send()}else{$("#errorText").show();$("#errorText>span").text("Error loading Resources, please try again later");return}}
hostCountryRequest.send();$("#hostCountryDropdown").on("change",function(){var hostCountryArrayId=$("#hostCountryDropdown option:selected").val();var hostCountry=hostCountries[hostCountryArrayId];$("#hostCountryStateContainer").remove();if(hostCountry.country.country_states.length>0){$("#hostCountryContainer").after(countryStateDropdown.clone());if(hostCountry.country_id==="CH"){$("#stateTitle").text('Canton');$("#hostCountryStateContainer").find('select').append($('<option value="" disabled="disabled" selected="selected">Please choose a Canton</option>'))}else{$("#hostCountryStateContainer").find('select').append($('<option value="" disabled="disabled" selected="selected">Please choose a State</option>'))}
$.each(hostCountry.country.country_states,function(index,value){$("#hostCountryStateContainer").find('select').append($("<option />").val(index).text(value.name))})}});$("#addCountryButton").on("click",function(e){e.preventDefault();removableDestinationCountryDropdown.clone().appendTo("#destinationCountries");$('.destinationCountry').select2()});$("#destinationCountries").on("click",'.close-icon',function(){$(this).closest('div').remove()});$("#getQuoteButton").on("click",function(e){e.preventDefault();$(".warning-highlight").each(function(){$(this).removeClass("warning-highlight")});$("#errorText").hide();var selectedDestinationCountries=[];$("#destinationCountries select").each(function(){var destinationCountriesArrayId=$(this).val();if(destinationCountriesArrayId!==null&&destinationCountriesArrayId!==""){selectedDestinationCountries.push(destinationCountries[destinationCountriesArrayId])}});if(selectedDestinationCountries.length<1){showError($("#destinationCountries").closest(".fieldset"),"Please select at least one Destination Country");return}
if($("#hostCountryDropdown").val()==""||$("#hostCountryDropdown").val()==null){showError($("#hostCountryDropdown").closest(".fieldset"),"Please select a Home Country");return}
var hostCountry=hostCountries[$("#hostCountryDropdown option:selected").val()];if(hostCountry.country.country_states.length>1){var states=hostCountry.country.country_states;if($("#hostCountryStateDropdown").val()==""||$("#hostCountryStateDropdown").val()==null){showError($("#hostCountryStateDropdown").closest(".fieldset"),"Please select a State or Canton");return}else{var selectedState=states[$("#hostCountryStateDropdown").val()]}}else{var selectedState=""}
if($("#startDate").val()==""||$("#endDate").val()==""){showError($("#startDate").closest(".fieldset"),"Please select valid Departure and Return dates");return}
var todayDate=new Date()
todayDate.setUTCHours(0,0,0,0);var startDate=new Date($('#startDate').val());var endDate=new Date($('#endDate').val());if(startDate<today){showError($("#startDate").closest(".fieldset"),"Departure date cannot be before today");return}
if(startDate>maxStartDate){showError($("#startDate").closest(".fieldset"),"Departure date cannot be more than 90 days from today");return}
if(endDate<startDate){showError($("#startDate").closest(".fieldset"),"Return Date cannot be before departure date");return}
var diffTime=Math.abs(endDate-startDate);var diffDays=Math.ceil(diffTime/(1000*60*60*24))+1;if(diffDays>365){showError($("#startDate").closest(".fieldset"),"The Insured time cannot be longer 365 days both days inclusive");return}
var age=$('#age').val();if(age==""){showError($("#age").closest(".half-width"),"Please insert a valid Age");return}
if(age<18||age>69){showError($("#age").closest(".half-width"),"You must be between 18 and 69 years old to purchase this product");return}
var pressCardNumber=$('#pressCardNumber').val();if(pressCardNumber!=""){var pressCardValid=/^[a-zA-Z]{1,3}[0-9]{1,5}$/.test(pressCardNumber);if(!pressCardValid){showError($("#pressCardNumber").closest(".half-width"),"Invalid press card number");return}}
var countries=[];countries.push($('#hostCountryDropdown').find(':selected').text());$('.destinationCountry').each(function(){countries.push($(this).find(':selected').text())});var countriesArray=countries.sort();var reportCountriesDuplicate=[];for(var i=0;i<countriesArray.length-1;i++){if(countriesArray[i+1]==countriesArray[i]){reportCountriesDuplicate.push(countriesArray[i])}}
if(reportCountriesDuplicate.length){showError($("#destinationCountries").closest(".fieldset"),"Please select at least one Destination Country");return}
var testInput={"hostcountry":[hostCountry],"destinationcountry":selectedDestinationCountries,"country_state":selectedState,"age":age,"press_card_number":pressCardNumber,"start_date":startDate,"end_date":endDate,"currency_id":'EUR'}
var quoteRequest=new XMLHttpRequest();quoteRequest.open('POST','https://api.tangiersgroup.com/api/v1/site/1/product/7/affiliate/79/getquote',!0);quoteRequest.setRequestHeader("Content-type","application/json");quoteRequest.onload=function(){quote=JSON.parse(this.response);if(typeof quote.error!=='undefined'){$("#errorText").show();$("#errorText>span").text("An Error has occurred, please try again later");return}
$("#totalCost").text("EUR "+quote.maincost.toFixed(2)+"*");$("#quickQuoteMain").hide();$("#quickQuoteDetails").removeClass('hide')};quoteRequest.send(JSON.stringify(testInput))});$("#clickAndBuyButton").on("click",function(){var url='https://www.battleface.com/quote/79/product/7/step1?quoteId='+quote.quotation_id;window.location.href=url});function showError(element,errorMessage){element.addClass("warning-highlight");$("#errorText").show();$("#errorText>span").text(errorMessage)}}},initCongressIFJform:function(){$('select#powermail_field_room_single_selection').attr('disabled',!0);$('.powermail_fieldwrap.powermail_fieldwrap_type_input.powermail_fieldwrap_second_preson.layout3 label').append('<span class="mandatory">*</span>');var totalcost=function(){$(".powermail_fieldset_14").show().css('opacity',1);var type=1;if($("input#powermail_field_assistancefund_2").prop("checked")===!0){var type=2}
if(type==1){$('.powermail_fieldwrap_room_single_selection, .powermail_fieldwrap_preferred_airport, .powermail_fieldwrap_marker_01, .powermail_fieldwrap_headline1').show();$('.powermail_fieldwrap_room_multiple_selection, .powermail_fieldwrap_flightnumber, .powermail_fieldwrap_marker_02, .powermail_fieldwrap_headline2').hide()}else{$('.powermail_fieldwrap_room_single_selection, .powermail_fieldwrap_preferred_airport, .powermail_fieldwrap_marker_01, .powermail_fieldwrap_headline1').hide();$('.powermail_fieldwrap_room_multiple_selection, .powermail_fieldwrap_flightnumber, .powermail_fieldwrap_marker_02, .powermail_fieldwrap_headline2').show()}
var totalCosts=$("select#powermail_field_numberofnights").val()*$("select#powermail_field_room_single_selection").val();if(type==2){var totalCosts=$("select#powermail_field_numberofnights").val()*$("select#powermail_field_room_multiple_selection").val()}
$('input#powermail_field_totalcost').val(totalCosts)}
$("input[name='tx_powermail_pi1[field][assistancefund]']").on("change",function(){totalcost()});if($("input#powermail_field_assistancefund_1").prop("checked")===!0||$("input#powermail_field_assistancefund_2").prop("checked")===!0){totalcost()}
$("select#powermail_field_room_single_selection, select#powermail_field_room_multiple_selection").on("change",function(){var roomCost=$(this).val(),nightsCosts=$("select#powermail_field_numberofnights").val(),totalCosts=roomCost*nightsCosts;$('input#powermail_field_totalcost').val(totalCosts)});if(parseInt($("select#powermail_field_room_multiple_selection").val())==150){$(".powermail_fieldwrap_second_preson.layout3").show();$('input#powermail_field_second_preson').attr('required','required')}else{$(".powermail_fieldwrap_second_preson.layout3").hide();$('input#powermail_field_second_preson').attr('required',!1)}
$("select#powermail_field_room_multiple_selection").on("change",function(){if(parseInt($(this).val())==150){$(".powermail_fieldwrap_second_preson.layout3").show();$('input#powermail_field_second_preson').attr('required','required')}else{$(".powermail_fieldwrap_second_preson.layout3").hide();$('input#powermail_field_second_preson').attr('required',!1)}});$("select#powermail_field_numberofnights").on("change",function(){var nightsCosts=$(this).val(),roomCost=$("select#powermail_field_room_single_selection").val();if($("input#powermail_field_assistancefund_2").prop("checked")===!0){var roomCost=$("select#powermail_field_room_multiple_selection").val()}
var totalCosts=roomCost*nightsCosts;$('input#powermail_field_totalcost').val(totalCosts)})},initLayoutHacks:function(){$(".template-7").parent("html").css("overflow","auto");$(".template-7 .tx_wbmap-items a").attr("target","_parent")},initDataPicker:function(){var startDate=$('#news-minimumDate');var endDate=$('#news-maximumDate');var startValue='';var endValue='';if(endDate.val()){endValue=endDate.datepicker('getDate')}
if(startDate.val()){startValue=startDate.datepicker('getDate')}
startDate.datepicker({autoHide:!0,format:'mm/dd/yyyy',endDate:endValue});endDate.datepicker({autoHide:!0,format:'mm/dd/yyyy',startDate:startValue});startDate.on('change',function(){endDate.datepicker('setStartDate',startDate.datepicker('getDate'))});endDate.on('change',function(){startDate.datepicker('setEndDate',endDate.datepicker('getDate'))})}}
$(document).ready(function(){layout.init();layout.stickyHeader();layout.stickySocial();layout.resourcesLoadMore();layout.minHeightFeatureSliderItems()});$(document).scroll(function(){layout.stickyHeader()});$(window).scroll(function(){layout.stickySocial();layout.fullWidthTeaser()});$(window).on('load',function(){layout.getHeadersHeight();layout.fullWidthTeaser();$('body').removeClass('js-off');if(location.hash!=''){setTimeout(function(){layout.scrollToElement(location.hash,headerHeight,800)},20)}
if($("#featured .wide").length>1){$(".sl-pager").html('');$('#slideshow').cycle({slides:'> div',fx:'scrollHorz',speed:'slow',pauseOnHover:!0,pagerEvent:'mouseover',timeout:8000,pause:1,prev:'#prev-slide',next:'#next-slide',pager:'.sl-pager',pagerTemplate:'<div class="sl-pager-item"><span>{{slideNum}}</span></div>',log:!1,swipe:!0,swipeFx:'scrollHorz'})}
var $transform=!0;if($('html[lang="ar"]').length){$transform=!1}
$('.list-resources').each(function(){$(this).isotope({isOriginLeft:$transform,masonry:{columnWidth:1}})});$('.cols-a').each(function(){$(this).find($('.list-news')).parents('.cols-a').addClass('has-list-news');if($(this).is('.has-list-news')){$(this).find($('.module-feed')).css('min-height',$(this).find($('.list-news')).outerHeight()-10)}});layout.groupOfElementsMinHeight('.w-50 .module-featured','.desktop-hide');layout.groupOfElementsMinHeight('.w-50 .module-featured','.desktop-only + p');layout.groupOfElementsMinHeight('.grid-2 .module-featured','.desktop-hide');layout.groupOfElementsMinHeight('.grid-2 .module-featured','.desktop-only + p');layout.groupOfElementsMinHeight('.different-number-in-row li','h3');(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.async=!0;js.src="//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1788398694795121&version=v2.10";fjs.parentNode.insertBefore(js,fjs)}(document,'script','facebook-jssdk'))});$(window).on('resize',function(){layout.getHeadersHeight;$('.cols-a').each(function(){if($(this).is('.has-list-news')){$(this).find($('.module-feed')).css('min-height',$(this).find($('.list-news')).outerHeight()-10)}});layout.minHeightFeatureSliderItems();layout.expendableTeaserHeight();layout.groupOfElementsMinHeight('.w-50 .module-featured','.desktop-hide');layout.groupOfElementsMinHeight('.w-50 .module-featured','.desktop-only + p');layout.groupOfElementsMinHeight('.grid-2 .module-featured','.desktop-hide');layout.groupOfElementsMinHeight('.grid-2 .module-featured','.desktop-only + p');layout.groupOfElementsMinHeight('.different-number-in-row li','h3');layout.fullWidthTeaser();layout.initDigitalLibraryHeight()});window.fbAsyncInit=function(){FB.init({appId:'1788398694795121',status:!0,cookie:!0,version:'v2.10'});FB.AppEvents.logPageView();$('body').on('click','.facebook-share',function(e){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();FB.ui({method:'share',href:$(this).attr('data-href'),},function(response){})})}