--- a/src_js/iconolab-bundle/dist/build.js Mon Aug 22 10:34:26 2016 +0200
+++ b/src_js/iconolab-bundle/dist/build.js Mon Aug 22 11:32:24 2016 +0200
@@ -1,7 +1,6 @@
-!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="/dist/",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n(37),n(38);var i=n(28),o=(r(i),n(2)),a=r(o),s=n(33),u=r(s),c=n(5),l=r(c),f=n(40),h=r(f),d={Cutout:u["default"],VueComponents:{Typeahead:a["default"],MergeTool:h["default"],Zoomview:l["default"]}};window.iconolab||(window.iconolab=d)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.eventEmitter=e.generateId=void 0;var i=n(26),o=r(i),a=(0,o["default"])({}),s=function(){var t=0,e="item_";return function(n){return n="string"==typeof n?n:e,t+=1,n+t}}();e.generateId=s,e.eventEmitter=a},function(t,e,n){var r,i;n(46),r=n(9);var o=n(42);i=r||{},i.__esModule&&(i=i["default"]),"function"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,i._scopeId="data-v-1",t.exports=r||i},function(t,e,n){var r,i,r,o,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};(function(){t.exports=0;!function(n){var o,a,s="0.4.2",u="hasOwnProperty",c=/[\.\/]/,l=/\s*,\s*/,f="*",h=function(t,e){return t-e},d={n:{}},p=function(){for(var t=0,e=this.length;t<e;t++)if("undefined"!=typeof this[t])return this[t]},v=function(){for(var t=this.length;--t;)if("undefined"!=typeof this[t])return this[t]},g=function m(t,e){t=String(t);var n,r=a,i=Array.prototype.slice.call(arguments,2),s=m.listeners(t),u=0,c=[],l={},f=[],d=o;f.firstDefined=p,f.lastDefined=v,o=t,a=0;for(var g=0,y=s.length;g<y;g++)"zIndex"in s[g]&&(c.push(s[g].zIndex),s[g].zIndex<0&&(l[s[g].zIndex]=s[g]));for(c.sort(h);c[u]<0;)if(n=l[c[u++]],f.push(n.apply(e,i)),a)return a=r,f;for(g=0;g<y;g++)if(n=s[g],"zIndex"in n)if(n.zIndex==c[u]){if(f.push(n.apply(e,i)),a)break;do if(u++,n=l[c[u]],n&&f.push(n.apply(e,i)),a)break;while(n)}else l[n.zIndex]=n;else if(f.push(n.apply(e,i)),a)break;return a=r,o=d,f};g._events=d,g.listeners=function(t){var e,n,r,i,o,a,s,u,l=t.split(c),h=d,p=[h],v=[];for(i=0,o=l.length;i<o;i++){for(u=[],a=0,s=p.length;a<s;a++)for(h=p[a].n,n=[h[l[i]],h[f]],r=2;r--;)e=n[r],e&&(u.push(e),v=v.concat(e.f||[]));p=u}return v},g.on=function(t,e){if(t=String(t),"function"!=typeof e)return function(){};for(var n=t.split(l),r=0,i=n.length;r<i;r++)!function(t){for(var n,r=t.split(c),i=d,o=0,a=r.length;o<a;o++)i=i.n,i=i.hasOwnProperty(r[o])&&i[r[o]]||(i[r[o]]={n:{}});for(i.f=i.f||[],o=0,a=i.f.length;o<a;o++)if(i.f[o]==e){n=!0;break}!n&&i.f.push(e)}(n[r]);return function(t){+t==+t&&(e.zIndex=+t)}},g.f=function(t){var e=[].slice.call(arguments,1);return function(){g.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},g.stop=function(){a=1},g.nt=function(t){return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(o):o},g.nts=function(){return o.split(c)},g.off=g.unbind=function(t,e){if(!t)return void(g._events=d={n:{}});var n=t.split(l);if(n.length>1)for(var r=0,i=n.length;r<i;r++)g.off(n[r],e);else{n=t.split(c);var o,a,s,r,i,h,p,v=[d];for(r=0,i=n.length;r<i;r++)for(h=0;h<v.length;h+=s.length-2){if(s=[h,1],o=v[h].n,n[r]!=f)o[n[r]]&&s.push(o[n[r]]);else for(a in o)o[u](a)&&s.push(o[a]);v.splice.apply(v,s)}for(r=0,i=v.length;r<i;r++)for(o=v[r];o.n;){if(e){if(o.f){for(h=0,p=o.f.length;h<p;h++)if(o.f[h]==e){o.f.splice(h,1);break}!o.f.length&&delete o.f}for(a in o.n)if(o.n[u](a)&&o.n[a].f){var m=o.n[a].f;for(h=0,p=m.length;h<p;h++)if(m[h]==e){m.splice(h,1);break}!m.length&&delete o.n[a].f}}else{delete o.f;for(a in o.n)o.n[u](a)&&o.n[a].f&&delete o.n[a].f}o=o.n}}},g.once=function(t,e){var n=function r(){return g.unbind(t,r),e.apply(this,arguments)};return g.on(t,n)},g.version=s,g.toString=function(){return"You are running Eve "+s},"undefined"!=typeof t&&t.exports?t.exports=g:(r=[],!(i=function(){return g}.apply(e,r)))}(this),function(n,a){r=[i],o=function(t){return a(n,t)}.apply(e,r),!(void 0!==o&&(t.exports=o))}(window||this,function(t,e){var n=function(e){var n={},r=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(t){setTimeout(t,16)},i=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},o=0,a="M"+(+new Date).toString(36),s=function(){return a+(o++).toString(36)},u=Date.now||function(){return+new Date},c=function(t){var e=this;if(null==t)return e.s;var n=e.s-t;e.b+=e.dur*n,e.B+=e.dur*n,e.s=t},l=function(t){var e=this;return null==t?e.spd:void(e.spd=t)},f=function(t){var e=this;return null==t?e.dur:(e.s=e.s*t/e.dur,void(e.dur=t))},h=function(){var t=this;delete n[t.id],t.update(),e("mina.stop."+t.id,t)},d=function(){var t=this;t.pdif||(delete n[t.id],t.update(),t.pdif=t.get()-t.b)},p=function(){var t=this;t.pdif&&(t.b=t.get()-t.pdif,delete t.pdif,n[t.id]=t)},v=function(){var t,e=this;if(i(e.start)){t=[];for(var n=0,r=e.start.length;n<r;n++)t[n]=+e.start[n]+(e.end[n]-e.start[n])*e.easing(e.s)}else t=+e.start+(e.end-e.start)*e.easing(e.s);e.set(t)},g=function y(){var t=0;for(var i in n)if(n.hasOwnProperty(i)){var o=n[i],a=o.get();t++,o.s=(a-o.b)/(o.dur/o.spd),o.s>=1&&(delete n[i],o.s=1,t--,function(t){setTimeout(function(){e("mina.finish."+t.id,t)})}(o)),o.update()}t&&r(y)},m=function b(t,e,i,o,a,u,m){var y={id:s(),start:t,end:e,b:i,s:0,dur:o-i,spd:1,get:a,set:u,easing:m||b.linear,status:c,speed:l,duration:f,stop:h,pause:d,resume:p,update:v};n[y.id]=y;var x,w=0;for(x in n)if(n.hasOwnProperty(x)&&(w++,2==w))break;return 1==w&&r(g),y};return m.time=u,m.getById=function(t){return n[t]||null},m.linear=function(t){return t},m.easeout=function(t){return Math.pow(t,1.7)},m.easein=function(t){return Math.pow(t,.48)},m.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,n=Math.sqrt(.1734+e*e),r=n-e,i=Math.pow(Math.abs(r),1/3)*(r<0?-1:1),o=-n-e,a=Math.pow(Math.abs(o),1/3)*(o<0?-1:1),s=i+a+.5;return 3*(1-s)*s*s+s*s*s},m.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},m.backout=function(t){if(0==t)return 0;t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},m.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},m.bounce=function(t){var e,n=7.5625,r=2.75;return t<1/r?e=n*t*t:t<2/r?(t-=1.5/r,e=n*t*t+.75):t<2.5/r?(t-=2.25/r,e=n*t*t+.9375):(t-=2.625/r,e=n*t*t+.984375),e},t.mina=m,m}("undefined"==typeof e?function(){}:e),r=function(t){function n(t,e){if(t){if(t.nodeType)return C(t);if(i(t,"array")&&n.set)return n.set.apply(n,t);if(t instanceof b)return t;if(null==e)return t=T.doc.querySelector(String(t)),C(t)}return t=null==t?"100%":t,e=null==e?"100%":e,new _(t,e)}function r(t,e){if(e){if("#text"==t&&(t=T.doc.createTextNode(e.text||e["#text"]||"")),"#comment"==t&&(t=T.doc.createComment(e.text||e["#text"]||"")),"string"==typeof t&&(t=r(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(W,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(X,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType){for(var n in e)if(e[A](n)){var i=S(e[n]);i?"xlink:"==n.substring(0,6)?t.setAttributeNS(W,n.substring(6),i):"xml:"==n.substring(0,4)?t.setAttributeNS(X,n.substring(4),i):t.setAttribute(n,i):t.removeAttribute(n)}}else"text"in e&&(t.nodeValue=e.text)}else t=T.doc.createElementNS(X,t);return t}function i(t,e){return e=S.prototype.toLowerCase.call(e),"finite"==e?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||("null"==e&&null===t||e==("undefined"==typeof t?"undefined":a(t))&&null!==t||"object"==e&&t===Object(t)||F.call(t).slice(8,-1).toLowerCase()==e)}function o(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[A](n)&&(e[n]=o(t[n]));return e}function s(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}function u(t,e,n){function r(){var i=Array.prototype.slice.call(arguments,0),o=i.join("␀"),a=r.cache=r.cache||{},u=r.count=r.count||[];return a[A](o)?(s(u,o),n?n(a[o]):a[o]):(u.length>=1e3&&delete a[u.shift()],u.push(o),a[o]=t.apply(e,i),n?n(a[o]):a[o])}return r}function c(t,e,n,r,i,o){if(null==i){var a=t-n,s=e-r;return a||s?(180+180*j.atan2(-s,-a)/M+360)%360:0}return c(t,e,i,o)-c(n,r,i,o)}function l(t){return t%360*M/180}function f(t){return 180*t/M%360}function h(t){var e=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(t,n,r){return r=r.split(/\s*,\s*|\s+/),"rotate"==n&&1==r.length&&r.push(0,0),"scale"==n&&(r.length>2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==n?e.push(["m",1,0,j.tan(l(r[0])),1,0,0]):"skewY"==n?e.push(["m",1,j.tan(l(r[0])),0,1,0,0]):e.push([n.charAt(0)].concat(r)),t}),e}function d(t,e){var r=et(t),i=new n.Matrix;if(r)for(var o=0,a=r.length;o<a;o++){var s,u,c,l,f,h=r[o],d=h.length,p=S(h[0]).toLowerCase(),v=h[0]!=p,g=v?i.invert():0;"t"==p&&2==d?i.translate(h[1],0):"t"==p&&3==d?v?(s=g.x(0,0),u=g.y(0,0),c=g.x(h[1],h[2]),l=g.y(h[1],h[2]),i.translate(c-s,l-u)):i.translate(h[1],h[2]):"r"==p?2==d?(f=f||e,i.rotate(h[1],f.x+f.width/2,f.y+f.height/2)):4==d&&(v?(c=g.x(h[2],h[3]),l=g.y(h[2],h[3]),i.rotate(h[1],c,l)):i.rotate(h[1],h[2],h[3])):"s"==p?2==d||3==d?(f=f||e,i.scale(h[1],h[d-1],f.x+f.width/2,f.y+f.height/2)):4==d?v?(c=g.x(h[2],h[3]),l=g.y(h[2],h[3]),i.scale(h[1],h[1],c,l)):i.scale(h[1],h[1],h[2],h[3]):5==d&&(v?(c=g.x(h[3],h[4]),l=g.y(h[3],h[4]),i.scale(h[1],h[2],c,l)):i.scale(h[1],h[2],h[3],h[4])):"m"==p&&7==d&&i.add(h[1],h[2],h[3],h[4],h[5],h[6])}return i}function p(t){var e=t.node.ownerSVGElement&&C(t.node.ownerSVGElement)||t.node.parentNode&&C(t.node.parentNode)||n.select("svg")||n(0,0),r=e.select("defs"),i=null!=r&&r.node;return i||(i=w("defs",e.node).node),i}function v(t){return t.node.ownerSVGElement&&C(t.node.ownerSVGElement)||n.select("svg")}function m(t,e,n){function i(t){if(null==t)return P;if(t==+t)return t;r(c,{width:t});try{return c.getBBox().width}catch(e){return 0}}function o(t){if(null==t)return P;if(t==+t)return t;r(c,{height:t});try{return c.getBBox().height}catch(e){return 0}}function a(r,i){null==e?u[r]=i(t.attr(r)||0):r==e&&(u=i(null==n?t.attr(r)||0:n))}var s=v(t).node,u={},c=s.querySelector(".svg---mgr");switch(c||(c=r("rect"),r(c,{x:-9e9,y:-9e9,width:10,height:10,"class":"svg---mgr",fill:"none"}),s.appendChild(c)),t.type){case"rect":a("rx",i),a("ry",o);case"image":a("width",i),a("height",o);case"text":a("x",i),a("y",o);break;case"circle":a("cx",i),a("cy",o),a("r",i);break;case"ellipse":a("cx",i),a("cy",o),a("rx",i),a("ry",o);break;case"line":a("x1",i),a("x2",i),a("y1",o),a("y2",o);break;case"marker":a("refX",i),a("markerWidth",i),a("refY",o),a("markerHeight",o);break;case"radialGradient":a("fx",i),a("fy",o);break;case"tspan":a("dx",i),a("dy",o);break;default:a(e,i)}return s.removeChild(c),u}function y(t){i(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,n=0,r=this.node;this[e];)delete this[e++];for(e=0;e<t.length;e++)"set"==t[e].type?t[e].forEach(function(t){r.appendChild(t.node)}):r.appendChild(t[e].node);var o=r.childNodes;for(e=0;e<o.length;e++)this[n++]=C(o[e]);return this}function b(t){if(t.snap in G)return G[t.snap];var e;try{e=t.ownerSVGElement}catch(n){}this.node=t,e&&(this.paper=new _(e)),this.type=t.tagName||t.nodeName;var r=this.id=U(this);if(this.anims={},this._={transform:[]},t.snap=r,G[r]=this,"g"==this.type&&(this.add=y),this.type in{g:1,mask:1,pattern:1,symbol:1})for(var i in _.prototype)_.prototype[A](i)&&(this[i]=_.prototype[i])}function x(t){this.node=t}function w(t,e){var n=r(t);e.appendChild(n);var i=C(n);return i}function _(t,e){var n,i,o,a=_.prototype;if(t&&"svg"==t.tagName){if(t.snap in G)return G[t.snap];var s=t.ownerDocument;n=new b(t),i=t.getElementsByTagName("desc")[0],o=t.getElementsByTagName("defs")[0],i||(i=r("desc"),i.appendChild(s.createTextNode("Created with Snap")),n.node.appendChild(i)),o||(o=r("defs"),n.node.appendChild(o)),n.defs=o;for(var u in a)a[A](u)&&(n[u]=a[u]);n.paper=n.root=n}else n=w("svg",T.doc.body),r(n.node,{height:e,version:1.1,width:t,xmlns:X});return n}function C(t){return t?t instanceof b||t instanceof x?t:t.tagName&&"svg"==t.tagName.toLowerCase()?new _(t):t.tagName&&"object"==t.tagName.toLowerCase()&&"image/svg+xml"==t.type?new _(t.contentDocument.getElementsByTagName("svg")[0]):new b(t):t}function k(t,e){for(var n=0,r=t.length;n<r;n++){var i={type:t[n].type,attr:t[n].attr()},o=t[n].children();e.push(i),o.length&&k(o,i.childNodes=[])}}n.version="0.4.0",n.toString=function(){return"Snap v"+this.version},n._={};var T={win:t.window,doc:t.window.document};n._.glob=T;var A="hasOwnProperty",S=String,$=parseFloat,E=parseInt,j=Math,O=j.max,N=j.min,D=j.abs,M=(j.pow,j.PI),P=(j.round,""),F=Object.prototype.toString,B=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,L=(n._.separator=/[,\s]+/,/[\s]*,[\s]*/),R={hs:1,rg:1},I=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,H=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,q=/(-?\d*\.?\d*(?:e[\-+]?\\d+)?)[\s]*,?[\s]*/gi,z=0,V="S"+(+new Date).toString(36),U=function(t){return(t&&t.type?t.type:P)+V+(z++).toString(36)},W="http://www.w3.org/1999/xlink",X="http://www.w3.org/2000/svg",G={};n.url=function(t){return"url('#"+t+"')"};n._.$=r,n._.id=U,n.format=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,n=function(t,n,r){var i=r;return n.replace(e,function(t,e,n,r,o){e=e||r,i&&(e in i&&(i=i[e]),"function"==typeof i&&o&&(i=i()))}),i=(null==i||i==r?t:i)+""};return function(e,r){return S(e).replace(t,function(t,e){return n(t,e,r)})}}(),n._.clone=o,n._.cacher=u,n.rad=l,n.deg=f,n.sin=function(t){return j.sin(n.rad(t))},n.tan=function(t){return j.tan(n.rad(t))},n.cos=function(t){return j.cos(n.rad(t))},n.asin=function(t){return n.deg(j.asin(t))},n.acos=function(t){return n.deg(j.acos(t))},n.atan=function(t){return n.deg(j.atan(t))},n.atan2=function(t){return n.deg(j.atan2(t))},n.angle=c,n.len=function(t,e,r,i){return Math.sqrt(n.len2(t,e,r,i))},n.len2=function(t,e,n,r){return(t-n)*(t-n)+(e-r)*(e-r)},n.closestPoint=function(t,e,n){function r(t){var r=t.x-e,i=t.y-n;return r*r+i*i}for(var i,o,a,s,u=t.node,c=u.getTotalLength(),l=c/u.pathSegList.numberOfItems*.125,f=1/0,h=0;h<=c;h+=l)(s=r(a=u.getPointAtLength(h)))<f&&(i=a,o=h,f=s);for(l*=.5;l>.5;){var d,p,v,g,m,y;(v=o-l)>=0&&(m=r(d=u.getPointAtLength(v)))<f?(i=d,o=v,f=m):(g=o+l)<=c&&(y=r(p=u.getPointAtLength(g)))<f?(i=p,o=g,f=y):l*=.5}return i={x:i.x,y:i.y,length:o,distance:Math.sqrt(f)}},n.is=i,n.snapTo=function(t,e,n){if(n=i(n,"finite")?n:10,i(t,"array")){for(var r=t.length;r--;)if(D(t[r]-e)<=n)return t[r]}else{t=+t;var o=e%t;if(o<n)return e-o;if(o>t-n)return e-o+t}return e},n.getRGB=u(function(t){if(!t||(t=S(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Q};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:Q};if(!(R[A](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=Z(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Q};var e,r,o,a,s,u,c=t.match(B);return c?(c[2]&&(o=E(c[2].substring(5),16),r=E(c[2].substring(3,5),16),e=E(c[2].substring(1,3),16)),c[3]&&(o=E((s=c[3].charAt(3))+s,16),r=E((s=c[3].charAt(2))+s,16),e=E((s=c[3].charAt(1))+s,16)),c[4]&&(u=c[4].split(L),e=$(u[0]),"%"==u[0].slice(-1)&&(e*=2.55),r=$(u[1]),"%"==u[1].slice(-1)&&(r*=2.55),o=$(u[2]),"%"==u[2].slice(-1)&&(o*=2.55),"rgba"==c[1].toLowerCase().slice(0,4)&&(a=$(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100)),c[5]?(u=c[5].split(L),e=$(u[0]),"%"==u[0].slice(-1)&&(e/=100),r=$(u[1]),"%"==u[1].slice(-1)&&(r/=100),o=$(u[2]),"%"==u[2].slice(-1)&&(o/=100),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(e/=360),"hsba"==c[1].toLowerCase().slice(0,4)&&(a=$(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),n.hsb2rgb(e,r,o,a)):c[6]?(u=c[6].split(L),e=$(u[0]),"%"==u[0].slice(-1)&&(e/=100),r=$(u[1]),"%"==u[1].slice(-1)&&(r/=100),o=$(u[2]),"%"==u[2].slice(-1)&&(o/=100),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(e/=360),"hsla"==c[1].toLowerCase().slice(0,4)&&(a=$(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),n.hsl2rgb(e,r,o,a)):(e=N(j.round(e),255),r=N(j.round(r),255),o=N(j.round(o),255),a=N(O(a,0),1),c={r:e,g:r,b:o,toString:Q},c.hex="#"+(16777216|o|r<<8|e<<16).toString(16).slice(1),c.opacity=i(a,"finite")?a:1,c)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Q}},n),n.hsb=u(function(t,e,r){return n.hsb2rgb(t,e,r).hex}),n.hsl=u(function(t,e,r){return n.hsl2rgb(t,e,r).hex}),n.rgb=u(function(t,e,n,r){if(i(r,"finite")){var o=j.round;return"rgba("+[o(t),o(e),o(n),+r.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)});var Z=function(t){var e=T.doc.getElementsByTagName("head")[0]||T.doc.getElementsByTagName("svg")[0],n="rgb(255, 0, 0)";return(Z=u(function(t){if("red"==t.toLowerCase())return n;e.style.color=n,e.style.color=t;var r=T.doc.defaultView.getComputedStyle(e,P).getPropertyValue("color");return r==n?null:r}))(t)},J=function(){return"hsb("+[this.h,this.s,this.b]+")"},Y=function(){return"hsl("+[this.h,this.s,this.l]+")"},Q=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},K=function(t,e,r){if(null==e&&i(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,e=t.g,t=t.r),null==e&&i(t,string)){var o=n.getRGB(t);t=o.r,e=o.g,r=o.b}return(t>1||e>1||r>1)&&(t/=255,e/=255,r/=255),[t,e,r]},tt=function(t,e,r,o){t=j.round(255*t),e=j.round(255*e),r=j.round(255*r);var a={r:t,g:e,b:r,opacity:i(o,"finite")?o:1,hex:n.rgb(t,e,r),toString:Q};return i(o,"finite")&&(a.opacity=o),a};n.color=function(t){var e;return i(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=n.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):i(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=n.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(i(t,"string")&&(t=n.getRGB(t)),i(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=n.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=n.rgb2hsb(t),t.v=e.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=Q,t},n.hsb2rgb=function(t,e,n,r){i(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,r=t.o,t=t.h),t*=360;var o,a,s,u,c;return t=t%360/60,c=n*e,u=c*(1-D(t%2-1)),o=a=s=n-c,t=~~t,o+=[c,u,0,0,u,c][t],a+=[u,c,c,u,0,0][t],s+=[0,0,u,c,c,u][t],tt(o,a,s,r)},n.hsl2rgb=function(t,e,n,r){i(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),t*=360;var o,a,s,u,c;return t=t%360/60,c=2*e*(n<.5?n:1-n),u=c*(1-D(t%2-1)),o=a=s=n-c/2,t=~~t,o+=[c,u,0,0,u,c][t],a+=[u,c,c,u,0,0][t],s+=[0,0,u,c,c,u][t],tt(o,a,s,r)},n.rgb2hsb=function(t,e,n){n=K(t,e,n),t=n[0],e=n[1],n=n[2];var r,i,o,a;return o=O(t,e,n),a=o-N(t,e,n),r=0==a?null:o==t?(e-n)/a:o==e?(n-t)/a+2:(t-e)/a+4,r=(r+360)%6*60/360,i=0==a?0:a/o,{h:r,s:i,b:o,toString:J}},n.rgb2hsl=function(t,e,n){n=K(t,e,n),t=n[0],e=n[1],n=n[2];var r,i,o,a,s,u;return a=O(t,e,n),s=N(t,e,n),u=a-s,r=0==u?null:a==t?(e-n)/u:a==e?(n-t)/u+2:(t-e)/u+4,r=(r+360)%6*60/360,o=(a+s)/2,i=0==u?0:o<.5?u/(2*o):u/(2-2*o),{h:r,s:i,l:o,toString:Y}},n.parsePathString=function(t){if(!t)return null;var e=n.path(t);if(e.arr)return n.path.clone(e.arr);var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},o=[];return i(t,"array")&&i(t[0],"array")&&(o=n.path.clone(t)),o.length||S(t).replace(I,function(t,e,n){var i=[],a=e.toLowerCase();if(n.replace(q,function(t,e){e&&i.push(+e)}),"m"==a&&i.length>2&&(o.push([e].concat(i.splice(0,2))),a="l",e="m"==e?"l":"L"),"o"==a&&1==i.length&&o.push([e,i[0]]),"r"==a)o.push([e].concat(i));else for(;i.length>=r[a]&&(o.push([e].concat(i.splice(0,r[a]))),r[a]););}),o.toString=n.path.toString,e.arr=n.path.clone(o),o};var et=n.parseTransformString=function(t){if(!t)return null;var e=[];return i(t,"array")&&i(t[0],"array")&&(e=n.path.clone(t)),e.length||S(t).replace(H,function(t,n,r){var i=[];n.toLowerCase();r.replace(q,function(t,e){e&&i.push(+e)}),e.push([n].concat(i))}),e.toString=n.path.toString,e};n._.svgTransform2string=h,n._.rgTransform=/^[a-z][\s]*-?\.?\d/i,n._.transform2matrix=d,n._unit2px=m;T.doc.contains||T.doc.compareDocumentPosition?function(t,e){var n=9==t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t==r||!(!r||1!=r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e;)if(e=e.parentNode,e==t)return!0;return!1};n._.getSomeDefs=p,n._.getSomeSVG=v,n.select=function(t){return t=S(t).replace(/([^\\]):/g,"$1\\:"),C(T.doc.querySelector(t))},n.selectAll=function(t){for(var e=T.doc.querySelectorAll(t),r=(n.set||Array)(),i=0;i<e.length;i++)r.push(C(e[i]));return r},setInterval(function(){for(var t in G)if(G[A](t)){var e=G[t],n=e.node;("svg"!=e.type&&!n.ownerSVGElement||"svg"==e.type&&(!n.parentNode||"ownerSVGElement"in n.parentNode&&!n.ownerSVGElement))&&delete G[t]}},1e4),b.prototype.attr=function(t,n){var r=this,o=r.node;if(!t){if(1!=o.nodeType)return{text:o.nodeValue};for(var a=o.attributes,s={},u=0,c=a.length;u<c;u++)s[a[u].nodeName]=a[u].nodeValue;return s}if(i(t,"string")){if(!(arguments.length>1))return e("snap.util.getattr."+t,r).firstDefined();var l={};l[t]=n,t=l}for(var f in t)t[A](f)&&e("snap.util.attr."+f,r,t[f]);return r},n.parse=function(t){var e=T.doc.createDocumentFragment(),n=!0,r=T.doc.createElement("div");if(t=S(t),t.match(/^\s*<\s*svg(?:\s|>)/)||(t="<svg>"+t+"</svg>",n=!1),r.innerHTML=t,t=r.getElementsByTagName("svg")[0])if(n)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return new x(e)},n.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=T.doc.createDocumentFragment(),r=0,i=t.length;r<i;r++){var o=t[r];o.node&&o.node.nodeType&&e.appendChild(o.node),o.nodeType&&e.appendChild(o),"string"==typeof o&&e.appendChild(n.parse(o).node)}return new x(e)},n._.make=w,n._.wrap=C,_.prototype.el=function(t,e){var n=w(t,this.node);return e&&n.attr(e),n},b.prototype.children=function(){for(var t=[],e=this.node.childNodes,r=0,i=e.length;r<i;r++)t[r]=n(e[r]);return t},b.prototype.toJSON=function(){var t=[];return k([this],t),t[0]},e.on("snap.util.getattr",function(){var t=e.nt();t=t.substring(t.lastIndexOf(".")+1);var n=t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});return nt[A](n)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(n):r(this.node,t)});var nt={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};e.on("snap.util.attr",function(t){var n=e.nt(),i={};n=n.substring(n.lastIndexOf(".")+1),i[n]=t;var o=n.replace(/-(\w)/gi,function(t,e){return e.toUpperCase()}),a=n.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});nt[A](a)?this.node.style[o]=null==t?P:t:r(this.node,i)}),function(t){}(_.prototype),n.ajax=function(t,n,r,o){var a=new XMLHttpRequest,s=U();if(a){if(i(n,"function"))o=r,r=n,n=null;else if(i(n,"object")){var u=[];for(var c in n)n.hasOwnProperty(c)&&u.push(encodeURIComponent(c)+"="+encodeURIComponent(n[c]));n=u.join("&")}return a.open(n?"POST":"GET",t,!0),n&&(a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.setRequestHeader("Content-type","application/x-www-form-urlencoded")),r&&(e.once("snap.ajax."+s+".0",r),e.once("snap.ajax."+s+".200",r),e.once("snap.ajax."+s+".304",r)),a.onreadystatechange=function(){4==a.readyState&&e("snap.ajax."+s+"."+a.status,o,a)},4==a.readyState?a:(a.send(n),a)}},n.load=function(t,e,r){n.ajax(t,function(t){var i=n.parse(t.responseText);r?e.call(r,i):e(i)})};var rt=function(t){var e=t.getBoundingClientRect(),n=t.ownerDocument,r=n.body,i=n.documentElement,o=i.clientTop||r.clientTop||0,a=i.clientLeft||r.clientLeft||0,s=e.top+(g.win.pageYOffset||i.scrollTop||r.scrollTop)-o,u=e.left+(g.win.pageXOffset||i.scrollLeft||r.scrollLeft)-a;return{y:s,x:u}};return n.getElementByPoint=function(t,e){var n=this,r=(n.canvas,T.doc.elementFromPoint(t,e));if(T.win.opera&&"svg"==r.tagName){var i=rt(r),o=r.createSVGRect();o.x=t-i.x,o.y=e-i.y,o.width=o.height=1;var a=r.getIntersectionList(o,null);a.length&&(r=a[a.length-1])}return r?C(r):null},n.plugin=function(t){t(n,b,_,T,x)},T.win.Snap=n,n}(t||this);return r.plugin(function(r,i,o,a,s){function u(t,e){if(null==e){var n=!0;if(e="linearGradient"==t.type||"radialGradient"==t.type?t.node.getAttribute("gradientTransform"):"pattern"==t.type?t.node.getAttribute("patternTransform"):t.node.getAttribute("transform"),!e)return new r.Matrix;e=r._.svgTransform2string(e)}else e=r._.rgTransform.test(e)?p(e).replace(/\.{3}|\u2026/g,t._.transform||E):r._.svgTransform2string(e),d(e,"array")&&(e=r.path?r.path.toString.call(e):p(e)),t._.transform=e;var i=r._.transform2matrix(e,t.getBBox(1));return n?i:void(t.matrix=i)}function c(t){function e(t,e){var n=g(t.node,e);n=n&&n.match(o),n=n&&n[2],n&&"#"==n.charAt()&&(n=n.substring(1),n&&(s[n]=(s[n]||[]).concat(function(n){var r={};r[e]=URL(n),g(t.node,r)})))}function n(t){var e=g(t.node,"xlink:href");e&&"#"==e.charAt()&&(e=e.substring(1),e&&(s[e]=(s[e]||[]).concat(function(e){t.attr("xlink:href","#"+e)})))}for(var r,i=t.selectAll("*"),o=/^\s*url\(("|'|)(.*)\1\)\s*$/,a=[],s={},u=0,c=i.length;u<c;u++){r=i[u],e(r,"fill"),e(r,"stroke"),e(r,"filter"),e(r,"mask"),e(r,"clip-path"),n(r);var l=g(r.node,"id");l&&(g(r.node,{id:r.id}),a.push({old:l,id:r.id}))}for(u=0,c=a.length;u<c;u++){var f=s[a[u].old];if(f)for(var h=0,d=f.length;h<d;h++)f[h](a[u].id)}}function l(t,e,n){return function(r){var i=r.slice(t,e);return 1==i.length&&(i=i[0]),n?n(i):i}}function f(t){return function(){var e=t?"<"+this.type:"",n=this.node.attributes,r=this.node.childNodes;if(t)for(var i=0,o=n.length;i<o;i++)e+=" "+n[i].name+'="'+n[i].value.replace(/"/g,'\\"')+'"';if(r.length){for(t&&(e+=">"),i=0,o=r.length;i<o;i++)3==r[i].nodeType?e+=r[i].nodeValue:1==r[i].nodeType&&(e+=x(r[i]).toString());t&&(e+="</"+this.type+">")}else t&&(e+="/>");return e}}var h=i.prototype,d=r.is,p=String,v=r._unit2px,g=r._.$,m=r._.make,y=r._.getSomeDefs,b="hasOwnProperty",x=r._.wrap;h.getBBox=function(t){if(!r.Matrix||!r.path)return this.node.getBBox();var e=this,n=new r.Matrix;if(e.removed)return r._.box();for(;"use"==e.type;)if(t||(n=n.add(e.transform().localMatrix.translate(e.attr("x")||0,e.attr("y")||0))),e.original)e=e.original;else{var i=e.attr("xlink:href");e=e.original=e.node.ownerDocument.getElementById(i.substring(i.indexOf("#")+1))}var o=e._,a=r.path.get[e.type]||r.path.get.deflt;try{return t?(o.bboxwt=a?r.path.getBBox(e.realPath=a(e)):r._.box(e.node.getBBox()),r._.box(o.bboxwt)):(e.realPath=a(e),e.matrix=e.transform().localMatrix,o.bbox=r.path.getBBox(r.path.map(e.realPath,n.add(e.matrix))),r._.box(o.bbox))}catch(s){return r._.box()}};var w=function(){return this.string};h.transform=function(t){var e=this._;if(null==t){for(var n,i=this,o=new r.Matrix(this.node.getCTM()),a=u(this),s=[a],c=new r.Matrix,l=a.toTransformString(),f=p(a)==p(this.matrix)?p(e.transform):l;"svg"!=i.type&&(i=i.parent());)s.push(u(i));for(n=s.length;n--;)c.add(s[n]);return{string:f,globalMatrix:o,totalMatrix:c,localMatrix:a,diffMatrix:o.clone().add(a.invert()),global:o.toTransformString(),total:c.toTransformString(),local:l,toString:w}}return t instanceof r.Matrix?(this.matrix=t,this._.transform=t.toTransformString()):u(this,t),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?g(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?g(this.node,{patternTransform:this.matrix}):g(this.node,{transform:this.matrix})),this},h.parent=function(){return x(this.node.parentNode)},h.append=h.add=function(t){if(t){if("set"==t.type){var e=this;return t.forEach(function(t){e.add(t)}),this}t=x(t),this.node.appendChild(t.node),t.paper=this.paper}return this},h.appendTo=function(t){return t&&(t=x(t),t.append(this)),this},h.prepend=function(t){if(t){if("set"==t.type){var e,n=this;return t.forEach(function(t){e?e.after(t):n.prepend(t),e=t}),this}t=x(t);var r=t.parent();this.node.insertBefore(t.node,this.node.firstChild),this.add&&this.add(),t.paper=this.paper,this.parent()&&this.parent().add(),r&&r.add()}return this},h.prependTo=function(t){return t=x(t),t.prepend(this),this},h.before=function(t){if("set"==t.type){var e=this;return t.forEach(function(t){var n=t.parent();e.node.parentNode.insertBefore(t.node,e.node),n&&n.add()}),this.parent().add(),this}t=x(t);var n=t.parent();return this.node.parentNode.insertBefore(t.node,this.node),this.parent()&&this.parent().add(),n&&n.add(),t.paper=this.paper,this},h.after=function(t){t=x(t);var e=t.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(t.node,this.node.nextSibling):this.node.parentNode.appendChild(t.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},h.insertBefore=function(t){t=x(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},h.insertAfter=function(t){t=x(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node.nextSibling),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},h.remove=function(){var t=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,t&&t.add(),this},h.select=function(t){return t=p(t).replace(/([^\\]):/g,"$1\\:"),x(this.node.querySelector(t))},h.selectAll=function(t){for(var e=this.node.querySelectorAll(t),n=(r.set||Array)(),i=0;i<e.length;i++)n.push(x(e[i]));return n},h.asPX=function(t,e){return null==e&&(e=this.attr(t)),+v(this,t,e)},h.use=function(){var t,e=this.node.id;return e||(e=this.id,g(this.node,{id:e})),t="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?m(this.type,this.node.parentNode):m("use",this.node.parentNode),g(t.node,{"xlink:href":"#"+e}),t.original=this,t},h.clone=function(){var t=x(this.node.cloneNode(!0));return g(t.node,"id")&&g(t.node,{id:t.id}),c(t),t.insertAfter(this),t},h.toDefs=function(){var t=y(this);return t.appendChild(this.node),this},h.pattern=h.toPattern=function(t,e,n,r){var i=m("pattern",y(this));return null==t&&(t=this.getBBox()),d(t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,t=t.x),g(i.node,{x:t,y:e,width:n,height:r,patternUnits:"userSpaceOnUse",id:i.id,viewBox:[t,e,n,r].join(" ")}),i.node.appendChild(this.node),i},h.marker=function(t,e,n,r,i,o){var a=m("marker",y(this));return null==t&&(t=this.getBBox()),d(t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,i=t.refX||t.cx,o=t.refY||t.cy,t=t.x),g(a.node,{viewBox:[t,e,n,r].join(" "),markerWidth:n,markerHeight:r,orient:"auto",refX:i||0,refY:o||0,id:a.id}),a.node.appendChild(this.node),a};var _=function(t,e,r,i){"function"!=typeof r||r.length||(i=r,r=n.linear),this.attr=t,this.dur=e,r&&(this.easing=r),i&&(this.callback=i)};r._.Animation=_,r.animation=function(t,e,n,r){return new _(t,e,n,r)},h.inAnim=function(){var t=this,e=[];
-for(var n in t.anims)t.anims[b](n)&&!function(t){e.push({anim:new _(t._attrs,t.dur,t.easing,t._callback),mina:t,curStatus:t.status(),status:function(e){return t.status(e)},stop:function(){t.stop()}})}(t.anims[n]);return e},r.animate=function(t,r,i,o,a,s){"function"!=typeof a||a.length||(s=a,a=n.linear);var u=n.time(),c=n(t,r,u,u+o,n.time,i,a);return s&&e.once("mina.finish."+c.id,s),c},h.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;e<n;e++)t[e].stop();return this},h.animate=function(t,r,i,o){"function"!=typeof i||i.length||(o=i,i=n.linear),t instanceof _&&(o=t.callback,i=t.easing,r=i.dur,t=t.attr);var a,s,u,c,f=[],h=[],v={},g=this;for(var m in t)if(t[b](m)){g.equal?(c=g.equal(m,p(t[m])),a=c.from,s=c.to,u=c.f):(a=+g.attr(m),s=+t[m]);var y=d(a,"array")?a.length:1;v[m]=l(f.length,f.length+y,u),f=f.concat(a),h=h.concat(s)}var x=n.time(),w=n(f,h,x,x+r,n.time,function(t){var e={};for(var n in v)v[b](n)&&(e[n]=v[n](t));g.attr(e)},i);return g.anims[w.id]=w,w._attrs=t,w._callback=o,e("snap.animcreated."+g.id,w),e.once("mina.finish."+w.id,function(){delete g.anims[w.id],o&&o.call(g)}),e.once("mina.stop."+w.id,function(){delete g.anims[w.id]}),g};var C={};h.data=function(t,n){var i=C[this.id]=C[this.id]||{};if(0==arguments.length)return e("snap.data.get."+this.id,this,i,null),i;if(1==arguments.length){if(r.is(t,"object")){for(var o in t)t[b](o)&&this.data(o,t[o]);return this}return e("snap.data.get."+this.id,this,i[t],t),i[t]}return i[t]=n,e("snap.data.set."+this.id,this,n,t),this},h.removeData=function(t){return null==t?C[this.id]={}:C[this.id]&&delete C[this.id][t],this},h.outerSVG=h.toString=f(1),h.innerSVG=f(),h.toDataURL=function(){if(t&&t.btoa){var e=this.getBBox(),n=r.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>',{x:+e.x.toFixed(3),y:+e.y.toFixed(3),width:+e.width.toFixed(3),height:+e.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n)))}},s.prototype.select=h.select,s.prototype.selectAll=h.selectAll}),r.plugin(function(t,e,n,r,i){function o(t,e,n,r,i,o){return null==e&&"[object SVGMatrix]"==a.call(t)?(this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f)):void(null!=t?(this.a=+t,this.b=+e,this.c=+n,this.d=+r,this.e=+i,this.f=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}var a=Object.prototype.toString,s=String,u=Math,c="";!function(e){function n(t){return t[0]*t[0]+t[1]*t[1]}function r(t){var e=u.sqrt(n(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}e.add=function(t,e,n,r,i,a){var s,u,c,l,f=[[],[],[]],h=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],d=[[t,n,i],[e,r,a],[0,0,1]];for(t&&t instanceof o&&(d=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),s=0;s<3;s++)for(u=0;u<3;u++){for(l=0,c=0;c<3;c++)l+=h[s][c]*d[c][u];f[s][u]=l}return this.a=f[0][0],this.b=f[1][0],this.c=f[0][1],this.d=f[1][1],this.e=f[0][2],this.f=f[1][2],this},e.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new o(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},e.clone=function(){return new o(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(t,e){return this.add(1,0,0,1,t,e)},e.scale=function(t,e,n,r){return null==e&&(e=t),(n||r)&&this.add(1,0,0,1,n,r),this.add(t,0,0,e,0,0),(n||r)&&this.add(1,0,0,1,-n,-r),this},e.rotate=function(e,n,r){e=t.rad(e),n=n||0,r=r||0;var i=+u.cos(e).toFixed(9),o=+u.sin(e).toFixed(9);return this.add(i,o,-o,i,n,r),this.add(1,0,0,1,-n,-r)},e.x=function(t,e){return t*this.a+e*this.c+this.e},e.y=function(t,e){return t*this.b+e*this.d+this.f},e.get=function(t){return+this[s.fromCharCode(97+t)].toFixed(4)},e.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.determinant=function(){return this.a*this.d-this.b*this.c},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var i=[[this.a,this.c],[this.b,this.d]];e.scalex=u.sqrt(n(i[0])),r(i[0]),e.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1],i[1]=[i[1][0]-i[0][0]*e.shear,i[1][1]-i[0][1]*e.shear],e.scaley=u.sqrt(n(i[1])),r(i[1]),e.shear/=e.scaley,this.determinant()<0&&(e.scalex=-e.scalex);var o=-i[0][1],a=i[1][1];return a<0?(e.rotate=t.deg(u.acos(a)),o<0&&(e.rotate=360-e.rotate)):e.rotate=t.deg(u.asin(o)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(t){var e=t||this.split();return+e.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[+e.dx.toFixed(4),+e.dy.toFixed(4)]:c)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:c)+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:c))}}(o.prototype),t.Matrix=o,t.matrix=function(t,e,n,r,i,a){return new o(t,e,n,r,i,a)}}),r.plugin(function(t,n,r,i,o){function a(r){return function(i){if(e.stop(),i instanceof o&&1==i.node.childNodes.length&&("radialGradient"==i.node.firstChild.tagName||"linearGradient"==i.node.firstChild.tagName||"pattern"==i.node.firstChild.tagName)&&(i=i.node.firstChild,d(this).appendChild(i),i=f(i)),i instanceof n)if("radialGradient"==i.type||"linearGradient"==i.type||"pattern"==i.type){i.node.id||v(i.node,{id:i.id});var a=g(i.node.id)}else a=i.attr(r);else if(a=t.color(i),a.error){var s=t(d(this).ownerSVGElement).gradient(i);s?(s.node.id||v(s.node,{id:s.id}),a=g(s.node.id)):a=i}else a=m(a);var u={};u[r]=a,v(this.node,u),this.node.style[r]=b}}function s(t){e.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function u(t){for(var e=[],n=t.childNodes,r=0,i=n.length;r<i;r++){var o=n[r];3==o.nodeType&&e.push(o.nodeValue),"tspan"==o.tagName&&(1==o.childNodes.length&&3==o.firstChild.nodeType?e.push(o.firstChild.nodeValue):e.push(u(o)))}return e}function c(){return e.stop(),this.node.style.fontSize}var l=t._.make,f=t._.wrap,h=t.is,d=t._.getSomeDefs,p=/^url\(#?([^)]+)\)$/,v=t._.$,g=t.url,m=String,y=t._.separator,b="";e.on("snap.util.attr.mask",function(t){if(t instanceof n||t instanceof o){if(e.stop(),t instanceof o&&1==t.node.childNodes.length&&(t=t.node.firstChild,d(this).appendChild(t),t=f(t)),"mask"==t.type)var r=t;else r=l("mask",d(this)),r.node.appendChild(t.node);!r.node.id&&v(r.node,{id:r.id}),v(this.node,{mask:g(r.id)})}}),function(t){e.on("snap.util.attr.clip",t),e.on("snap.util.attr.clip-path",t),e.on("snap.util.attr.clipPath",t)}(function(t){if(t instanceof n||t instanceof o){if(e.stop(),"clipPath"==t.type)var r=t;else r=l("clipPath",d(this)),r.node.appendChild(t.node),!r.node.id&&v(r.node,{id:r.id});v(this.node,{"clip-path":g(r.node.id||r.id)})}}),e.on("snap.util.attr.fill",a("fill")),e.on("snap.util.attr.stroke",a("stroke"));var x=/^([lr])(?:\(([^)]*)\))?(.*)$/i;e.on("snap.util.grad.parse",function(t){t=m(t);var e=t.match(x);if(!e)return null;var n=e[1],r=e[2],i=e[3];return r=r.split(/\s*,\s*/).map(function(t){return+t==t?+t:t}),1==r.length&&0==r[0]&&(r=[]),i=i.split("-"),i=i.map(function(t){t=t.split(":");var e={color:t[0]};return t[1]&&(e.offset=parseFloat(t[1])),e}),{type:n,params:r,stops:i}}),e.on("snap.util.attr.d",function(n){e.stop(),h(n,"array")&&h(n[0],"array")&&(n=t.path.toString.call(n)),n=m(n),n.match(/[ruo]/i)&&(n=t.path.toAbsolute(n)),v(this.node,{d:n})})(-1),e.on("snap.util.attr.#text",function(t){e.stop(),t=m(t);for(var n=i.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(n)})(-1),e.on("snap.util.attr.path",function(t){e.stop(),this.attr({d:t})})(-1),e.on("snap.util.attr.class",function(t){e.stop(),this.node.className.baseVal=t})(-1),e.on("snap.util.attr.viewBox",function(t){var n;n=h(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):h(t,"array")?t.join(" "):t,v(this.node,{viewBox:n}),e.stop()})(-1),e.on("snap.util.attr.transform",function(t){this.transform(t),e.stop()})(-1),e.on("snap.util.attr.r",function(t){"rect"==this.type&&(e.stop(),v(this.node,{rx:t,ry:t}))})(-1),e.on("snap.util.attr.textpath",function(t){if(e.stop(),"text"==this.type){var r,i,o;if(!t&&this.textPath){for(i=this.textPath;i.node.firstChild;)this.node.appendChild(i.node.firstChild);return i.remove(),void delete this.textPath}if(h(t,"string")){var a=d(this),s=f(a.parentNode).path(t);a.appendChild(s.node),r=s.id,s.attr({id:r})}else t=f(t),t instanceof n&&(r=t.attr("id"),r||(r=t.id,t.attr({id:r})));if(r)if(i=this.textPath,o=this.node,i)i.attr({"xlink:href":"#"+r});else{for(i=v("textPath",{"xlink:href":"#"+r});o.firstChild;)i.appendChild(o.firstChild);o.appendChild(i),this.textPath=f(i)}}})(-1),e.on("snap.util.attr.text",function(t){if("text"==this.type){for(var n=this.node,r=function a(t){var e=v("tspan");if(h(t,"array"))for(var n=0;n<t.length;n++)e.appendChild(a(t[n]));else e.appendChild(i.doc.createTextNode(t));return e.normalize&&e.normalize(),e};n.firstChild;)n.removeChild(n.firstChild);for(var o=r(t);o.firstChild;)n.appendChild(o.firstChild)}e.stop()})(-1),e.on("snap.util.attr.fontSize",s)(-1),e.on("snap.util.attr.font-size",s)(-1),e.on("snap.util.getattr.transform",function(){return e.stop(),this.transform()})(-1),e.on("snap.util.getattr.textpath",function(){return e.stop(),this.textPath})(-1),function(){function n(n){return function(){e.stop();var r=i.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+n);return"none"==r?r:t(i.doc.getElementById(r.match(p)[1]))}}function r(t){return function(n){e.stop();var r="marker"+t.charAt(0).toUpperCase()+t.substring(1);if(""==n||!n)return void(this.node.style[r]="none");if("marker"==n.type){var i=n.node.id;return i||v(n.node,{id:n.id}),void(this.node.style[r]=g(i))}}}e.on("snap.util.getattr.marker-end",n("end"))(-1),e.on("snap.util.getattr.markerEnd",n("end"))(-1),e.on("snap.util.getattr.marker-start",n("start"))(-1),e.on("snap.util.getattr.markerStart",n("start"))(-1),e.on("snap.util.getattr.marker-mid",n("mid"))(-1),e.on("snap.util.getattr.markerMid",n("mid"))(-1),e.on("snap.util.attr.marker-end",r("end"))(-1),e.on("snap.util.attr.markerEnd",r("end"))(-1),e.on("snap.util.attr.marker-start",r("start"))(-1),e.on("snap.util.attr.markerStart",r("start"))(-1),e.on("snap.util.attr.marker-mid",r("mid"))(-1),e.on("snap.util.attr.markerMid",r("mid"))(-1)}(),e.on("snap.util.getattr.r",function(){if("rect"==this.type&&v(this.node,"rx")==v(this.node,"ry"))return e.stop(),v(this.node,"rx")})(-1),e.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){e.stop();var t=u(this.node);return 1==t.length?t[0]:t}})(-1),e.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),e.on("snap.util.getattr.viewBox",function(){e.stop();var n=v(this.node,"viewBox");return n?(n=n.split(y),t._.box(+n[0],+n[1],+n[2],+n[3])):void 0})(-1),e.on("snap.util.getattr.points",function(){var t=v(this.node,"points");return e.stop(),t?t.split(y):void 0})(-1),e.on("snap.util.getattr.path",function(){var t=v(this.node,"d");return e.stop(),t})(-1),e.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1),e.on("snap.util.getattr.fontSize",c)(-1),e.on("snap.util.getattr.font-size",c)(-1)}),r.plugin(function(t,e,n,r,i){var o=/\S+/g,a=String,s=e.prototype;s.addClass=function(t){var e,n,r,i,s=a(t||"").match(o)||[],u=this.node,c=u.className.baseVal,l=c.match(o)||[];if(s.length){for(e=0;r=s[e++];)n=l.indexOf(r),~n||l.push(r);i=l.join(" "),c!=i&&(u.className.baseVal=i)}return this},s.removeClass=function(t){var e,n,r,i,s=a(t||"").match(o)||[],u=this.node,c=u.className.baseVal,l=c.match(o)||[];if(l.length){for(e=0;r=s[e++];)n=l.indexOf(r),~n&&l.splice(n,1);i=l.join(" "),c!=i&&(u.className.baseVal=i)}return this},s.hasClass=function(t){var e=this.node,n=e.className.baseVal,r=n.match(o)||[];return!!~r.indexOf(t)},s.toggleClass=function(t,e){if(null!=e)return e?this.addClass(t):this.removeClass(t);var n,r,i,a,s=(t||"").match(o)||[],u=this.node,c=u.className.baseVal,l=c.match(o)||[];for(n=0;i=s[n++];)r=l.indexOf(i),~r?l.splice(r,1):l.push(i);return a=l.join(" "),c!=a&&(u.className.baseVal=a),this}}),r.plugin(function(t,n,r,i,o){function a(t){return t}function s(t){return function(e){return+e.toFixed(3)+t}}var u={"+":function(t,e){return t+e},"-":function(t,e){return t-e},"/":function(t,e){return t/e},"*":function(t,e){return t*e}},c=String,l=/[a-z]+$/i,f=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;e.on("snap.util.attr",function(t){var n=c(t).match(f);if(n){var r=e.nt(),i=r.substring(r.lastIndexOf(".")+1),o=this.attr(i),a={};e.stop();var s=n[3]||"",h=o.match(l),d=u[n[1]];if(h&&h==s?t=d(parseFloat(o),+n[2]):(o=this.asPX(i),t=d(this.asPX(i),this.asPX(i,n[2]+s))),isNaN(o)||isNaN(t))return;a[i]=t,this.attr(a)}})(-10),e.on("snap.util.equal",function(t,n){var r=c(this.attr(t)||""),i=c(n).match(f);if(i){e.stop();var o=i[3]||"",h=r.match(l),d=u[i[1]];return h&&h==o?{from:parseFloat(r),to:d(parseFloat(r),+i[2]),f:s(h)}:(r=this.asPX(t),{from:r,to:d(r,this.asPX(t,i[2]+o)),f:a})}})(-10)}),r.plugin(function(n,r,i,o,a){var s=i.prototype,u=n.is;s.rect=function(t,e,n,r,i,o){var a;return null==o&&(o=i),u(t,"object")&&"[object Object]"==t?a=t:null!=t&&(a={x:t,y:e,width:n,height:r},null!=i&&(a.rx=i,a.ry=o)),this.el("rect",a)},s.circle=function(t,e,n){var r;return u(t,"object")&&"[object Object]"==t?r=t:null!=t&&(r={cx:t,cy:e,r:n}),this.el("circle",r)};var c=function(){function t(){this.parentNode.removeChild(this)}return function(e,n){var r=o.doc.createElement("img"),i=o.doc.body;r.style.cssText="position:absolute;left:-9999em;top:-9999em",r.onload=function(){n.call(r),r.onload=r.onerror=null,i.removeChild(r)},r.onerror=t,i.appendChild(r),r.src=e}}();s.image=function(t,e,r,i,o){var a=this.el("image");if(u(t,"object")&&"src"in t)a.attr(t);else if(null!=t){var s={"xlink:href":t,preserveAspectRatio:"none"};null!=e&&null!=r&&(s.x=e,s.y=r),null!=i&&null!=o?(s.width=i,s.height=o):c(t,function(){n._.$(a.node,{width:this.offsetWidth,height:this.offsetHeight})}),n._.$(a.node,s)}return a},s.ellipse=function(t,e,n,r){var i;return u(t,"object")&&"[object Object]"==t?i=t:null!=t&&(i={cx:t,cy:e,rx:n,ry:r}),this.el("ellipse",i)},s.path=function(t){var e;return u(t,"object")&&!u(t,"array")?e=t:t&&(e={d:t}),this.el("path",e)},s.group=s.g=function(t){var e=this.el("g");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},s.svg=function(t,e,n,r,i,o,a,s){var c={};return u(t,"object")&&null==e?c=t:(null!=t&&(c.x=t),null!=e&&(c.y=e),null!=n&&(c.width=n),null!=r&&(c.height=r),null!=i&&null!=o&&null!=a&&null!=s&&(c.viewBox=[i,o,a,s])),this.el("svg",c)},s.mask=function(t){var e=this.el("mask");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},s.ptrn=function(t,e,n,r,i,o,a,s){if(u(t,"object"))var c=t;else c={patternUnits:"userSpaceOnUse"},t&&(c.x=t),e&&(c.y=e),null!=n&&(c.width=n),null!=r&&(c.height=r),null!=i&&null!=o&&null!=a&&null!=s?c.viewBox=[i,o,a,s]:c.viewBox=[t||0,e||0,n||0,r||0];return this.el("pattern",c)},s.use=function(t){return null!=t?(t instanceof r&&(t.attr("id")||t.attr({id:n._.id(t)}),t=t.attr("id")),"#"==String(t).charAt()&&(t=t.substring(1)),this.el("use",{"xlink:href":"#"+t})):r.prototype.use.call(this)},s.symbol=function(t,e,n,r){var i={};return null!=t&&null!=e&&null!=n&&null!=r&&(i.viewBox=[t,e,n,r]),this.el("symbol",i)},s.text=function(t,e,n){var r={};return u(t,"object")?r=t:null!=t&&(r={x:t,y:e,text:n||""}),this.el("text",r)},s.line=function(t,e,n,r){var i={};return u(t,"object")?i=t:null!=t&&(i={x1:t,x2:n,y1:e,y2:r}),this.el("line",i)},s.polyline=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return u(t,"object")&&!u(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},s.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return u(t,"object")&&!u(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){function r(){return this.selectAll("stop")}function i(t,e){var r=l("stop"),i={offset:+e+"%"};return t=n.color(t),i["stop-color"]=t.hex,t.opacity<1&&(i["stop-opacity"]=t.opacity),l(r,i),this.node.appendChild(r),this}function o(){if("linearGradient"==this.type){var t=l(this.node,"x1")||0,e=l(this.node,"x2")||1,r=l(this.node,"y1")||0,i=l(this.node,"y2")||0;return n._.box(t,r,math.abs(e-t),math.abs(i-r))}var o=this.node.cx||.5,a=this.node.cy||.5,s=this.node.r||0;return n._.box(o-s,a-s,2*s,2*s)}function a(t,n){function r(t,e){for(var n=(e-f)/(t-h),r=h;r<t;r++)a[r].offset=+(+f+n*(r-h)).toFixed(2);h=t,f=e}var i,o=e("snap.util.grad.parse",null,n).firstDefined();if(!o)return null;o.params.unshift(t),i="l"==o.type.toLowerCase()?u.apply(0,o.params):c.apply(0,o.params),o.type!=o.type.toLowerCase()&&l(i.node,{gradientUnits:"userSpaceOnUse"});var a=o.stops,s=a.length,f=0,h=0;s--;for(var d=0;d<s;d++)"offset"in a[d]&&r(d,a[d].offset);for(a[s].offset=a[s].offset||100,r(s,a[s].offset),d=0;d<=s;d++){var p=a[d];i.addStop(p.color,p.offset)}return i}function u(t,e,a,s,u){var c=n._.make("linearGradient",t);return c.stops=r,c.addStop=i,c.getBBox=o,null!=e&&l(c.node,{x1:e,y1:a,x2:s,y2:u}),c}function c(t,e,a,s,u,c){var f=n._.make("radialGradient",t);return f.stops=r,f.addStop=i,f.getBBox=o,null!=e&&l(f.node,{cx:e,cy:a,r:s}),null!=u&&null!=c&&l(f.node,{fx:u,fy:c}),f}var l=n._.$;s.gradient=function(t){return a(this.defs,t)},s.gradientLinear=function(t,e,n,r){return u(this.defs,t,e,n,r)},s.gradientRadial=function(t,e,n,r,i){return c(this.defs,t,e,n,r,i)},s.toString=function(){var t,e=this.node.ownerDocument,r=e.createDocumentFragment(),i=e.createElement("div"),o=this.node.cloneNode(!0);return r.appendChild(i),i.appendChild(o),n._.$(o,{xmlns:"http://www.w3.org/2000/svg"}),t=i.innerHTML,r.removeChild(r.firstChild),t},s.toDataURL=function(){if(t&&t.btoa)return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this)))},s.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName?e.parentNode.removeChild(e):s.clear.call({node:e}),e=t}}()}),r.plugin(function(t,e,n,r){function i(t){var e=i.ps=i.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[L](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]}function o(t,e,n,r){return null==t&&(t=e=n=r=0),null==e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:H.min(n,r)/2,r2:H.max(n,r)/2,r0:H.sqrt(n*n+r*r)/2,path:k(t,e,n,r),vb:[t,e,n,r].join(" ")}}function a(){return this.join(",").replace(R,"$1")}function s(t){var e=B(t);return e.toString=a,e}function u(t,e,n,r,i,o,a,s,u){return null==u?v(t,e,n,r,i,o,a,s):l(t,e,n,r,i,o,a,s,g(t,e,n,r,i,o,a,s,u))}function c(n,r){function i(t){return+(+t).toFixed(3)}return t._.cacher(function(t,o,a){t instanceof e&&(t=t.attr("d")),t=N(t);for(var s,c,f,h,d,p="",v={},g=0,m=0,y=t.length;m<y;m++){if(f=t[m],"M"==f[0])s=+f[1],c=+f[2];else{if(h=u(s,c,f[1],f[2],f[3],f[4],f[5],f[6]),g+h>o){if(r&&!v.start){if(d=u(s,c,f[1],f[2],f[3],f[4],f[5],f[6],o-g),p+=["C"+i(d.start.x),i(d.start.y),i(d.m.x),i(d.m.y),i(d.x),i(d.y)],a)return p;v.start=p,p=["M"+i(d.x),i(d.y)+"C"+i(d.n.x),i(d.n.y),i(d.end.x),i(d.end.y),i(f[5]),i(f[6])].join(),g+=h,s=+f[5],c=+f[6];continue}if(!n&&!r)return d=u(s,c,f[1],f[2],f[3],f[4],f[5],f[6],o-g)}g+=h,s=+f[5],c=+f[6]}p+=f.shift()+f}return v.end=p,d=n?g:r?v:l(s,c,f[0],f[1],f[2],f[3],f[4],f[5],1)},null,t._.clone)}function l(t,e,n,r,i,o,a,s,u){var c=1-u,l=U(c,3),f=U(c,2),h=u*u,d=h*u,p=l*t+3*f*u*n+3*c*u*u*i+d*a,v=l*e+3*f*u*r+3*c*u*u*o+d*s,g=t+2*u*(n-t)+h*(i-2*n+t),m=e+2*u*(r-e)+h*(o-2*r+e),y=n+2*u*(i-n)+h*(a-2*i+n),b=r+2*u*(o-r)+h*(s-2*o+r),x=c*t+u*n,w=c*e+u*r,_=c*i+u*a,C=c*o+u*s,k=90-180*H.atan2(g-y,m-b)/q;return{x:p,y:v,m:{x:g,y:m},n:{x:y,y:b},start:{x:x,y:w},end:{x:_,y:C},alpha:k}}function f(e,n,r,i,a,s,u,c){t.is(e,"array")||(e=[e,n,r,i,a,s,u,c]);var l=O.apply(null,e);return o(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)}function h(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function d(t,e){return t=o(t),e=o(e),h(e,t.x,t.y)||h(e,t.x2,t.y)||h(e,t.x,t.y2)||h(e,t.x2,t.y2)||h(t,e.x,e.y)||h(t,e.x2,e.y)||h(t,e.x,e.y2)||h(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function p(t,e,n,r,i){var o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n}function v(t,e,n,r,i,o,a,s,u){null==u&&(u=1),u=u>1?1:u<0?0:u;for(var c=u/2,l=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,v=0;v<l;v++){var g=c*f[v]+c,m=p(g,t,n,i,a),y=p(g,e,r,o,s),b=m*m+y*y;d+=h[v]*H.sqrt(b)}return c*d}function g(t,e,n,r,i,o,a,s,u){if(!(u<0||v(t,e,n,r,i,o,a,s)<u)){var c,l=1,f=l/2,h=l-f,d=.01;for(c=v(t,e,n,r,i,o,a,s,h);W(c-u)>d;)f/=2,h+=(c<u?1:-1)*f,c=v(t,e,n,r,i,o,a,s,h);return h}}function m(t,e,n,r,i,o,a,s){if(!(V(t,n)<z(i,a)||z(t,n)>V(i,a)||V(e,r)<z(o,s)||z(e,r)>V(o,s))){var u=(t*r-e*n)*(i-a)-(t-n)*(i*s-o*a),c=(t*r-e*n)*(o-s)-(e-r)*(i*s-o*a),l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var f=u/l,h=c/l,d=+f.toFixed(2),p=+h.toFixed(2);if(!(d<+z(t,n).toFixed(2)||d>+V(t,n).toFixed(2)||d<+z(i,a).toFixed(2)||d>+V(i,a).toFixed(2)||p<+z(e,r).toFixed(2)||p>+V(e,r).toFixed(2)||p<+z(o,s).toFixed(2)||p>+V(o,s).toFixed(2)))return{x:f,y:h}}}}function y(t,e,n){var r=f(t),i=f(e);if(!d(r,i))return n?0:[];for(var o=v.apply(0,t),a=v.apply(0,e),s=~~(o/8),u=~~(a/8),c=[],h=[],p={},g=n?0:[],y=0;y<s+1;y++){var b=l.apply(0,t.concat(y/s));c.push({x:b.x,y:b.y,t:y/s})}for(y=0;y<u+1;y++)b=l.apply(0,e.concat(y/u)),h.push({x:b.x,y:b.y,t:y/u});for(y=0;y<s;y++)for(var x=0;x<u;x++){var w=c[y],_=c[y+1],C=h[x],k=h[x+1],T=W(_.x-w.x)<.001?"y":"x",A=W(k.x-C.x)<.001?"y":"x",S=m(w.x,w.y,_.x,_.y,C.x,C.y,k.x,k.y);if(S){if(p[S.x.toFixed(4)]==S.y.toFixed(4))continue;p[S.x.toFixed(4)]=S.y.toFixed(4);var $=w.t+W((S[T]-w[T])/(_[T]-w[T]))*(_.t-w.t),E=C.t+W((S[A]-C[A])/(k[A]-C[A]))*(k.t-C.t);$>=0&&$<=1&&E>=0&&E<=1&&(n?g++:g.push({x:S.x,y:S.y,t1:$,t2:E}))}}return g}function b(t,e){return w(t,e)}function x(t,e){return w(t,e,1)}function w(t,e,n){t=N(t),e=N(e);for(var r,i,o,a,s,u,c,l,f,h,d=n?0:[],p=0,v=t.length;p<v;p++){var g=t[p];if("M"==g[0])r=s=g[1],i=u=g[2];else{"C"==g[0]?(f=[r,i].concat(g.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,s,u,s,u],r=s,i=u);for(var m=0,b=e.length;m<b;m++){var x=e[m];if("M"==x[0])o=c=x[1],a=l=x[2];else{"C"==x[0]?(h=[o,a].concat(x.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,c,l,c,l],o=c,a=l);var w=y(f,h,n);if(n)d+=w;else{for(var _=0,C=w.length;_<C;_++)w[_].segment1=p,w[_].segment2=m,w[_].bez1=f,w[_].bez2=h;d=d.concat(w)}}}}}return d}function _(t,e,n){var r=C(t);return h(r,e,n)&&w(t,[["M",e,n],["H",r.x2+10]],1)%2==1}function C(t){var e=i(t);if(e.bbox)return B(e.bbox);if(!t)return o();t=N(t);for(var n,r=0,a=0,s=[],u=[],c=0,l=t.length;c<l;c++)if(n=t[c],"M"==n[0])r=n[1],a=n[2],s.push(r),u.push(a);else{var f=O(r,a,n[1],n[2],n[3],n[4],n[5],n[6]);s=s.concat(f.min.x,f.max.x),u=u.concat(f.min.y,f.max.y),r=n[5],a=n[6]}var h=z.apply(0,s),d=z.apply(0,u),p=V.apply(0,s),v=V.apply(0,u),g=o(h,d,p-h,v-d);return e.bbox=B(g),g}function k(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.toString=a,o}function T(t,e,n,r,i){if(null==i&&null==r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!=i)var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o),c=e+n*Math.sin(-r*o),l=e+n*Math.sin(-i*o),f=[["M",s,c],["A",n,n,0,+(i-r>180),0,u,l]];else f=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return f.toString=a,f}function A(e){var n=i(e),r=String.prototype.toLowerCase;if(n.rel)return s(n.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var o=[],u=0,c=0,l=0,f=0,h=0;"M"==e[0][0]&&(u=e[0][1],c=e[0][2],l=u,f=c,h++,o.push(["M",u,c]));for(var d=h,p=e.length;d<p;d++){var v=o[d]=[],g=e[d];if(g[0]!=r.call(g[0]))switch(v[0]=r.call(g[0]),v[0]){case"a":v[1]=g[1],v[2]=g[2],v[3]=g[3],v[4]=g[4],v[5]=g[5],v[6]=+(g[6]-u).toFixed(3),v[7]=+(g[7]-c).toFixed(3);break;case"v":v[1]=+(g[1]-c).toFixed(3);break;case"m":l=g[1],f=g[2];default:for(var m=1,y=g.length;m<y;m++)v[m]=+(g[m]-(m%2?u:c)).toFixed(3)}else{v=o[d]=[],"m"==g[0]&&(l=g[1]+u,f=g[2]+c);for(var b=0,x=g.length;b<x;b++)o[d][b]=g[b]}var w=o[d].length;switch(o[d][0]){case"z":u=l,c=f;break;case"h":u+=+o[d][w-1];break;case"v":c+=+o[d][w-1];break;default:u+=+o[d][w-2],c+=+o[d][w-1]}}return o.toString=a,n.rel=s(o),o}function S(e){var n=i(e);if(n.abs)return s(n.abs);if(F(e,"array")&&F(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var r,o=[],u=0,c=0,l=0,f=0,h=0;"M"==e[0][0]&&(u=+e[0][1],c=+e[0][2],l=u,f=c,h++,o[0]=["M",u,c]);for(var d,p,v=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),g=h,m=e.length;g<m;g++){if(o.push(d=[]),p=e[g],r=p[0],r!=r.toUpperCase())switch(d[0]=r.toUpperCase(),d[0]){case"A":d[1]=p[1],d[2]=p[2],d[3]=p[3],d[4]=p[4],d[5]=p[5],d[6]=+p[6]+u,d[7]=+p[7]+c;break;case"V":d[1]=+p[1]+c;break;case"H":d[1]=+p[1]+u;break;case"R":for(var y=[u,c].concat(p.slice(1)),b=2,x=y.length;b<x;b++)y[b]=+y[b]+u,y[++b]=+y[b]+c;o.pop(),o=o.concat(M(y,v));break;case"O":o.pop(),y=T(u,c,p[1],p[2]),y.push(y[0]),o=o.concat(y);break;case"U":o.pop(),o=o.concat(T(u,c,p[1],p[2],p[3])),d=["U"].concat(o[o.length-1].slice(-2));break;case"M":l=+p[1]+u,f=+p[2]+c;default:for(b=1,x=p.length;b<x;b++)d[b]=+p[b]+(b%2?u:c)}else if("R"==r)y=[u,c].concat(p.slice(1)),o.pop(),o=o.concat(M(y,v)),d=["R"].concat(p.slice(-2));else if("O"==r)o.pop(),y=T(u,c,p[1],p[2]),y.push(y[0]),o=o.concat(y);else if("U"==r)o.pop(),o=o.concat(T(u,c,p[1],p[2],p[3])),d=["U"].concat(o[o.length-1].slice(-2));else for(var w=0,_=p.length;w<_;w++)d[w]=p[w];if(r=r.toUpperCase(),"O"!=r)switch(d[0]){case"Z":u=+l,c=+f;break;case"H":u=d[1];break;case"V":c=d[1];break;case"M":l=d[d.length-2],f=d[d.length-1];default:u=d[d.length-2],c=d[d.length-1]}}return o.toString=a,n.abs=s(o),o}function $(t,e,n,r){return[t,e,n,r,n,r]}function E(t,e,n,r,i,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]}function j(e,n,r,i,o,a,s,u,c,l){var f,h=120*q/180,d=q/180*(+o||0),p=[],v=t._.cacher(function(t,e,n){var r=t*H.cos(n)-e*H.sin(n),i=t*H.sin(n)+e*H.cos(n);return{x:r,y:i}});if(l)k=l[0],T=l[1],_=l[2],C=l[3];else{f=v(e,n,-d),e=f.x,n=f.y,f=v(u,c,-d),u=f.x,c=f.y;var g=(H.cos(q/180*o),H.sin(q/180*o),(e-u)/2),m=(n-c)/2,y=g*g/(r*r)+m*m/(i*i);y>1&&(y=H.sqrt(y),r=y*r,i=y*i);var b=r*r,x=i*i,w=(a==s?-1:1)*H.sqrt(W((b*x-b*m*m-x*g*g)/(b*m*m+x*g*g))),_=w*r*m/i+(e+u)/2,C=w*-i*g/r+(n+c)/2,k=H.asin(((n-C)/i).toFixed(9)),T=H.asin(((c-C)/i).toFixed(9));k=e<_?q-k:k,T=u<_?q-T:T,k<0&&(k=2*q+k),T<0&&(T=2*q+T),s&&k>T&&(k-=2*q),!s&&T>k&&(T-=2*q)}var A=T-k;if(W(A)>h){var S=T,$=u,E=c;T=k+h*(s&&T>k?1:-1),u=_+r*H.cos(T),c=C+i*H.sin(T),p=j(u,c,r,i,o,0,s,$,E,[T,S,_,C])}A=T-k;var O=H.cos(k),N=H.sin(k),D=H.cos(T),M=H.sin(T),P=H.tan(A/4),F=4/3*r*P,B=4/3*i*P,L=[e,n],R=[e+F*N,n-B*O],I=[u+F*M,c-B*D],z=[u,c];if(R[0]=2*L[0]-R[0],R[1]=2*L[1]-R[1],l)return[R,I,z].concat(p);p=[R,I,z].concat(p).join().split(",");for(var V=[],U=0,X=p.length;U<X;U++)V[U]=U%2?v(p[U-1],p[U],d).y:v(p[U],p[U+1],d).x;return V}function O(t,e,n,r,i,o,a,s){for(var u,c,l,f,h,d,p,v,g=[],m=[[],[]],y=0;y<2;++y)if(0==y?(c=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,l=3*n-3*t):(c=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,l=3*r-3*e),W(u)<1e-12){if(W(c)<1e-12)continue;f=-l/c,0<f&&f<1&&g.push(f)}else p=c*c-4*l*u,v=H.sqrt(p),p<0||(h=(-c+v)/(2*u),0<h&&h<1&&g.push(h),d=(-c-v)/(2*u),0<d&&d<1&&g.push(d));for(var b,x=g.length,w=x;x--;)f=g[x],b=1-f,m[0][x]=b*b*b*t+3*b*b*f*n+3*b*f*f*i+f*f*f*a,m[1][x]=b*b*b*e+3*b*b*f*r+3*b*f*f*o+f*f*f*s;return m[0][w]=t,m[1][w]=e,m[0][w+1]=a,m[1][w+1]=s,m[0].length=m[1].length=w+2,{min:{x:z.apply(0,m[0]),y:z.apply(0,m[1])},max:{x:V.apply(0,m[0]),y:V.apply(0,m[1])}}}function N(t,e){var n=!e&&i(t);if(!e&&n.curve)return s(n.curve);for(var r=S(t),o=e&&S(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=(function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(j.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"==n||"S"==n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(E(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(E(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat($(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat($(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat($(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat($(e.x,e.y,e.X,e.Y))}return t}),l=function(t,e){if(t[e].length>7){t[e].shift();for(var n=t[e];n.length;)h[e]="A",o&&(d[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),m=V(r.length,o&&o.length||0)}},f=function(t,e,n,i,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",i.x,i.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2],m=V(r.length,o&&o.length||0))},h=[],d=[],p="",v="",g=0,m=V(r.length,o&&o.length||0);g<m;g++){r[g]&&(p=r[g][0]),"C"!=p&&(h[g]=p,g&&(v=h[g-1])),r[g]=c(r[g],a,v),"A"!=h[g]&&"C"==p&&(h[g]="C"),l(r,g),o&&(o[g]&&(p=o[g][0]),"C"!=p&&(d[g]=p,g&&(v=d[g-1])),o[g]=c(o[g],u,v),"A"!=d[g]&&"C"==p&&(d[g]="C"),l(o,g)),f(r,o,a,u,g),f(o,r,u,a,g);var y=r[g],b=o&&o[g],x=y.length,w=o&&b.length;a.x=y[x-2],a.y=y[x-1],a.bx=I(y[x-4])||a.x,a.by=I(y[x-3])||a.y,u.bx=o&&(I(b[w-4])||u.x),u.by=o&&(I(b[w-3])||u.y),u.x=o&&b[w-2],u.y=o&&b[w-1]}return o||(n.curve=s(r)),o?[r,o]:r}function D(t,e){if(!e)return t;var n,r,i,o,a,s,u;for(t=N(t),i=0,a=t.length;i<a;i++)for(u=t[i],o=1,s=u.length;o<s;o+=2)n=e.x(u[o],u[o+1]),r=e.y(u[o],u[o+1]),u[o]=n,u[o+1]=r;return t}function M(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4==r?o[3]={x:+t[0],y:+t[1]}:i-2==r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4==r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}var P=e.prototype,F=t.is,B=t._.clone,L="hasOwnProperty",R=/,?([a-z]),?/gi,I=parseFloat,H=Math,q=H.PI,z=H.min,V=H.max,U=H.pow,W=H.abs,X=c(1),G=c(),Z=c(0,1),J=t._unit2px,Y={path:function(t){return t.attr("path")},circle:function(t){var e=J(t);return T(e.cx,e.cy,e.r)},ellipse:function(t){var e=J(t);return T(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=J(t);return k(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=J(t);return k(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return k(e.x,e.y,e.width,e.height)}};t.path=i,t.path.getTotalLength=X,t.path.getPointAtLength=G,t.path.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return Z(t,e).end;var r=Z(t,n,1);return e?Z(r,e).end:r},P.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},P.getPointAtLength=function(t){return G(this.attr("d"),t)},P.getSubpath=function(e,n){return t.path.getSubpath(this.attr("d"),e,n)},t._.box=o,t.path.findDotsAtSegment=l,t.path.bezierBBox=f,t.path.isPointInsideBBox=h,t.closest=function(e,n,r,i){for(var a=100,s=o(e-a/2,n-a/2,a,a),u=[],c=r[0].hasOwnProperty("x")?function(t){return{x:r[t].x,y:r[t].y}}:function(t){return{x:r[t],y:i[t]}},l=0;a<=1e6&&!l;){for(var f=0,d=r.length;f<d;f++){
-var p=c(f);if(h(s,p.x,p.y)){l++,u.push(p);break}}l||(a*=2,s=o(e-a/2,n-a/2,a,a))}if(1e6!=a){var v,g=1/0;for(f=0,d=u.length;f<d;f++){var m=t.len(e,n,u[f].x,u[f].y);g>m&&(g=m,u[f].len=m,v=u[f])}return v}},t.path.isBBoxIntersect=d,t.path.intersection=b,t.path.intersectionNumber=x,t.path.isPointInside=_,t.path.getBBox=C,t.path.get=Y,t.path.toRelative=A,t.path.toAbsolute=S,t.path.toCubic=N,t.path.map=D,t.path.toString=a,t.path.clone=s}),r.plugin(function(t,r,i,o){var a=Math.max,s=Math.min,u=function(t){if(this.items=[],this.bindings={},this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)t[e]&&(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},c=u.prototype;c.push=function(){for(var t,e,n=0,r=arguments.length;n<r;n++)t=arguments[n],t&&(e=this.items.length,this[e]=this.items[e]=t,this.length++);return this},c.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},c.forEach=function(t,e){for(var n=0,r=this.items.length;n<r;n++)if(t.call(e,this.items[n],n)===!1)return this;return this},c.animate=function(r,i,o,a){"function"!=typeof o||o.length||(a=o,o=n.linear),r instanceof t._.Animation&&(a=r.callback,o=r.easing,i=o.dur,r=r.attr);var s=arguments;if(t.is(r,"array")&&t.is(s[s.length-1],"array"))var u=!0;var c,l=function(){c?this.b=c:c=this.b},f=0,h=this,d=a&&function(){++f==h.length&&a.call(this)};return this.forEach(function(t,n){e.once("snap.animcreated."+t.id,l),u?s[n]&&t.animate.apply(t,s[n]):t.animate(r,i,o,d)})},c.remove=function(){for(;this.length;)this.pop().remove();return this},c.bind=function(t,e,n){var r={};if("function"==typeof e)this.bindings[t]=e;else{var i=n||t;this.bindings[t]=function(t){r[i]=t,e.attr(r)}}return this},c.attr=function(t){var e={};for(var n in t)this.bindings[n]?this.bindings[n](t[n]):e[n]=t[n];for(var r=0,i=this.items.length;r<i;r++)this.items[r].attr(e);return this},c.clear=function(){for(;this.length;)this.pop()},c.splice=function(t,e,n){t=t<0?a(this.length+t,0):t,e=a(0,s(this.length-t,e));var r,i=[],o=[],c=[];for(r=2;r<arguments.length;r++)c.push(arguments[r]);for(r=0;r<e;r++)o.push(this[t+r]);for(;r<this.length-t;r++)i.push(this[t+r]);var l=c.length;for(r=0;r<l+i.length;r++)this.items[t+r]=this[t+r]=r<l?c[r]:i[r-l];for(r=this.items.length=this.length-=e-l;this[r];)delete this[r++];return new u(o)},c.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0;return!1},c.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},c.getBBox=function(){for(var t=[],e=[],n=[],r=[],i=this.items.length;i--;)if(!this.items[i].removed){var o=this.items[i].getBBox();t.push(o.x),e.push(o.y),n.push(o.x+o.width),r.push(o.y+o.height)}return t=s.apply(0,t),e=s.apply(0,e),n=a.apply(0,n),r=a.apply(0,r),{x:t,y:e,x2:n,y2:r,width:n-t,height:r-e,cx:t+(n-t)/2,cy:e+(r-e)/2}},c.clone=function(t){t=new u;for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},c.toString=function(){return"Snap‘s set"},c.type="set",t.Set=u,t.set=function(){var t=new u;return arguments.length&&t.push.apply(t,Array.prototype.slice.call(arguments,0)),t}}),r.plugin(function(t,n,r,i){function o(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}}function a(e,n,r){n=m(n).replace(/\.{3}|\u2026/g,e),e=t.parseTransformString(e)||[],n=t.parseTransformString(n)||[];for(var i,a,s,u,c=Math.max(e.length,n.length),l=[],d=[],p=0;p<c;p++){if(s=e[p]||o(n[p]),u=n[p]||o(s),s[0]!=u[0]||"r"==s[0].toLowerCase()&&(s[2]!=u[2]||s[3]!=u[3])||"s"==s[0].toLowerCase()&&(s[3]!=u[3]||s[4]!=u[4])){e=t._.transform2matrix(e,r()),n=t._.transform2matrix(n,r()),l=[["m",e.a,e.b,e.c,e.d,e.e,e.f]],d=[["m",n.a,n.b,n.c,n.d,n.e,n.f]];break}for(l[p]=[],d[p]=[],i=0,a=Math.max(s.length,u.length);i<a;i++)i in s&&(l[p][i]=s[i]),i in u&&(d[p][i]=u[i])}return{from:h(l),to:h(d),f:f(l)}}function s(t){return t}function u(t){return function(e){return+e.toFixed(3)+t}}function c(t){return t.join(" ")}function l(e){return t.rgb(e[0],e[1],e[2])}function f(t){var e,n,r,i,o,a,s=0,u=[];for(e=0,n=t.length;e<n;e++){for(o="[",a=['"'+t[e][0]+'"'],r=1,i=t[e].length;r<i;r++)a[r]="val["+s++ +"]";o+=a+"]",u[e]=o}return Function("val","return Snap.path.toString.call(["+u+"])")}function h(t){for(var e=[],n=0,r=t.length;n<r;n++)for(var i=1,o=t[n].length;i<o;i++)e.push(t[n][i]);return e}function d(t){return isFinite(parseFloat(t))}function p(e,n){return!(!t.is(e,"array")||!t.is(n,"array"))&&e.toString()==n.toString()}var v={},g=/[a-z]+$/i,m=String;v.stroke=v.fill="colour",n.prototype.equal=function(t,n){return e("snap.util.equal",this,t,n).firstDefined()},e.on("snap.util.equal",function(e,n){var r,i,o=m(this.attr(e)||""),y=this;if(d(o)&&d(n))return{from:parseFloat(o),to:parseFloat(n),f:s};if("colour"==v[e])return r=t.color(o),i=t.color(n),{from:[r.r,r.g,r.b,r.opacity],to:[i.r,i.g,i.b,i.opacity],f:l};if("viewBox"==e)return r=this.attr(e).vb.split(" ").map(Number),i=n.split(" ").map(Number),{from:r,to:i,f:c};if("transform"==e||"gradientTransform"==e||"patternTransform"==e)return n instanceof t.Matrix&&(n=n.toTransformString()),t._.rgTransform.test(n)||(n=t._.svgTransform2string(n)),a(o,n,function(){return y.getBBox(1)});if("d"==e||"path"==e)return r=t.path.toCubic(o,n),{from:h(r[0]),to:h(r[1]),f:f(r[0])};if("points"==e)return r=m(o).split(t._.separator),i=m(n).split(t._.separator),{from:r,to:i,f:function(t){return t}};var b=o.match(g),x=m(n).match(g);return b&&p(b,x)?{from:parseFloat(o),to:parseFloat(n),f:u(b)}:{from:this.asPX(e),to:this.asPX(e,n),f:s}})}),r.plugin(function(t,n,r,i){for(var o=n.prototype,a="hasOwnProperty",s=("createTouch"in i.doc),u=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],c={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},l=(function(t,e){var n="y"==t?"scrollTop":"scrollLeft",r=e&&e.node?e.node.ownerDocument:i.doc;return r[n in r.documentElement?"documentElement":"body"][n]}),f=function(){return this.originalEvent.preventDefault()},h=function(){return this.originalEvent.stopPropagation()},d=function(t,e,n,r){var i=s&&c[e]?c[e]:e,o=function(i){var o=l("y",r),u=l("x",r);if(s&&c[a](e))for(var d=0,p=i.targetTouches&&i.targetTouches.length;d<p;d++)if(i.targetTouches[d].target==t||t.contains(i.targetTouches[d].target)){var v=i;i=i.targetTouches[d],i.originalEvent=v,i.preventDefault=f,i.stopPropagation=h;break}var g=i.clientX+u,m=i.clientY+o;return n.call(r,i,g,m)};return e!==i&&t.addEventListener(e,o,!1),t.addEventListener(i,o,!1),function(){return e!==i&&t.removeEventListener(e,o,!1),t.removeEventListener(i,o,!1),!0}},p=[],v=function(t){for(var n,r=t.clientX,i=t.clientY,o=l("y"),a=l("x"),u=p.length;u--;){if(n=p[u],s){for(var c,f=t.touches&&t.touches.length;f--;)if(c=t.touches[f],c.identifier==n.el._drag.id||n.el.node.contains(c.target)){r=c.clientX,i=c.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var h=n.el.node;h.nextSibling,h.parentNode,h.style.display;r+=a,i+=o,e("snap.drag.move."+n.el.id,n.move_scope||n.el,r-n.el._drag.x,i-n.el._drag.y,r,i,t)}},g=function b(n){t.unmousemove(v).unmouseup(b);for(var r,i=p.length;i--;)r=p[i],r.el._drag={},e("snap.drag.end."+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,n),e.off("snap.drag.*."+r.el.id);p=[]},m=u.length;m--;)!function(e){t[e]=o[e]=function(n,r){if(t.is(n,"function"))this.events=this.events||[],this.events.push({name:e,f:n,unbind:d(this.node||document,e,n,r||this)});else for(var i=0,o=this.events.length;i<o;i++)if(this.events[i].name==e)try{this.events[i].f.call(this)}catch(a){}return this},t["un"+e]=o["un"+e]=function(t){for(var n=this.events||[],r=n.length;r--;)if(n[r].name==e&&(n[r].f==t||!t))return n[r].unbind(),n.splice(r,1),!n.length&&delete this.events,this;return this}}(u[m]);o.hover=function(t,e,n,r){return this.mouseover(t,n).mouseout(e,r||n)},o.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var y=[];o.drag=function(n,r,i,o,a,s){function u(u,c,f){(u.originalEvent||u).preventDefault(),l._drag.x=c,l._drag.y=f,l._drag.id=u.identifier,!p.length&&t.mousemove(v).mouseup(g),p.push({el:l,move_scope:o,start_scope:a,end_scope:s}),r&&e.on("snap.drag.start."+l.id,r),n&&e.on("snap.drag.move."+l.id,n),i&&e.on("snap.drag.end."+l.id,i),e("snap.drag.start."+l.id,a||o||l,c,f,u)}function c(t,n,r){e("snap.draginit."+l.id,l,t,n,r)}var l=this;if(!arguments.length){var f;return l.drag(function(t,e){this.attr({transform:f+(f?"T":"t")+[t,e]})},function(){f=this.transform().local})}return e.on("snap.draginit."+l.id,u),l._drag={},y.push({el:l,start:u,init:c}),l.mousedown(c),l},o.undrag=function(){for(var n=y.length;n--;)y[n].el==this&&(this.unmousedown(y[n].init),y.splice(n,1),e.unbind("snap.drag.*."+this.id),e.unbind("snap.draginit."+this.id));return!y.length&&t.unmousemove(v).unmouseup(g),this}}),r.plugin(function(t,n,r,i){var o=(n.prototype,r.prototype),a=/^\s*url\((.+)\)/,s=String,u=t._.$;t.filter={},o.filter=function(e){var r=this;"svg"!=r.type&&(r=r.paper);var i=t.parse(s(e)),o=t._.id(),a=(r.node.offsetWidth,r.node.offsetHeight,u("filter"));return u(a,{id:o,filterUnits:"userSpaceOnUse"}),a.appendChild(i.node),r.defs.appendChild(a),new n(a)},e.on("snap.util.getattr.filter",function(){e.stop();var n=u(this.node,"filter");if(n){var r=s(n).match(a);return r&&t.select(r[1])}}),e.on("snap.util.attr.filter",function(r){if(r instanceof n&&"filter"==r.type){e.stop();var i=r.node.id;i||(u(r.node,{id:r.id}),i=r.id),u(this.node,{filter:t.url(i)})}r&&"none"!=r||(e.stop(),this.node.removeAttribute("filter"))}),t.filter.blur=function(e,n){null==e&&(e=2);var r=null==n?e:[e,n];return t.format('<feGaussianBlur stdDeviation="{def}"/>',{def:r})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,n,r,i,o){return"string"==typeof r&&(i=r,o=i,r=4),"string"!=typeof i&&(o=i,i="#000"),i=i||"#000",null==r&&(r=4),null==o&&(o=1),null==e&&(e=0,n=2),null==n&&(n=e),i=t.color(i),t.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:i,dx:e,dy:n,blur:r,opacity:o})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}}),r.plugin(function(t,e,n,r,i){var o=t._.box,a=t.is,s=/^[^a-z]*([tbmlrc])/i,u=function(){return"T"+this.dx+","+this.dy};e.prototype.getAlign=function(t,e){null==e&&a(t,"string")&&(e=t,t=null),t=t||this.paper;var n=t.getBBox?t.getBBox():o(t),r=this.getBBox(),i={};switch(e=e&&e.match(s),e=e?e[1].toLowerCase():"c"){case"t":i.dx=0,i.dy=n.y-r.y;break;case"b":i.dx=0,i.dy=n.y2-r.y2;break;case"m":i.dx=0,i.dy=n.cy-r.cy;break;case"l":i.dx=n.x-r.x,i.dy=0;break;case"r":i.dx=n.x2-r.x2,i.dy=0;break;default:i.dx=n.cx-r.cx,i.dy=0}return i.toString=u,i},e.prototype.align=function(t,e){return this.transform("..."+this.getAlign(t,e))}}),r})}).call(window)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(1),a=function(){function t(e){r(this,t),this.zoomFactor=.1,this.paper=e.paper,this.MIN_SIZE=40,this.imageWidth=parseInt(this.paper.select(".main-image").attr("width")),this.imageHeight=parseInt(this.paper.select(".main-image").attr("height")),this.viewport={width:parseInt(this.paper.attr("width")),height:parseInt(this.paper.attr("height"))},this.scale=1,this.paper.attr({stroke:2,fill:"blue"}),this.disableDrag=!1,this.imgMinSize=Math.min(this.imageWidth,this.imageHeight),this.lastPosition=[],this.updateViewBox([0,0,this.imageWidth,this.imageHeight])}return i(t,[{key:"testShowCenter",value:function(t,e){this.center&&this.center.remove(),this.center=this.paper.rect(t-3,e-3,20,20),this.center.attr({fill:"red"})}},{key:"drawTestRectangle",value:function(t,e,n,r){var i=t-n/2,o=e-r/2;this.paper.rect(i,o,n,r)}},{key:"zoomIn",value:function(){if(9===this.scale)return void this.scale--;var t=this.currentViewBox[0]+this.currentViewBox[2]/2,e=this.currentViewBox[1]+this.currentViewBox[3]/2,n=this.zoomFactor*this.scale,r=this.imgMinSize-this.imgMinSize*n,i=r;this.currentViewBox[0]=t-r/2,this.currentViewBox[1]=e-i/2,this.currentViewBox[2]=r,this.currentViewBox[3]=i,this.scale++,this.updateViewBox()}},{key:"updateViewBox",value:function(t,e){if(e="boolean"!=typeof e||e,t&&4!=t.length)throw new Error("Provided currentViewBox is not valid!");if(t&&(this.currentViewBox=t),this.paper.attr({viewBox:this.currentViewBox}),!e)return!1;var n=this;o.eventEmitter.emit("zoomChanged",{updateFunction:function(t){n.updateViewBox(t,!1)},zoomFactor:this.getZoomFactor(),viewport:this.viewport,currentScale:this.scale,imageSize:{width:this.imageWidth,height:this.imageHeight},minSize:Math.min(this.imageWidth,this.imageHeight),currentViewBox:this.currentViewBox.slice()})}},{key:"getZoomFactor",value:function(){return{x:this.viewport.width/this.currentViewBox[2],y:this.viewport.height/this.currentViewBox[3]}}},{key:"onStart",value:function(t,e,n){this.lastPosition[0]=this.currentViewBox[0],this.lastPosition[1]=this.currentViewBox[1],"drawingHandler"===n.target.className.baseVal&&(this.disableDrag=!0)}},{key:"canDrag",value:function(){return!this.disableDrag}},{key:"onStop",value:function(){this.disableDrag=!1}},{key:"onDrag",value:function(t,e,n,r,i){if(!this.canDrag())return!0;var o=this.lastPosition[0]-t,a=this.lastPosition[1]-e;o+this.currentViewBox[2]>=this.viewport.width&&(o=this.viewport.width-this.currentViewBox[2]),a+this.currentViewBox[3]>=this.viewport.height&&(a=this.viewport.height-this.currentViewBox[3]),o<=0&&(o=0),a<=0&&(a=0),this.currentViewBox[0]=o,this.currentViewBox[1]=a,this.updateViewBox()}},{key:"reset",value:function(){this.scale=1,this.currentViewBox=[0,0,this.imageWidth,this.imageHeight],this.updateViewBox()}},{key:"zoomOut",value:function(){if(1==this.scale)return!1;var t=this.currentViewBox[0]+this.currentViewBox[2]/2,e=this.currentViewBox[1]+this.currentViewBox[3]/2,n=this.zoomFactor*(this.scale-1),r=this.imgMinSize-this.imgMinSize*n,i=r,o=t-r/2,a=e-i/2;this.currentViewBox[0]=o,this.currentViewBox[1]=a,this.currentViewBox[2]=r,this.currentViewBox[3]=i,this.updateViewBox(),this.scale--}}]),t}();e["default"]={enable_zoom:function(t){return new a(t)}}},function(t,e,n){var r,i;r=n(10);var o=n(43);i=r||{},i.__esModule&&(i=i["default"]),"function"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,t.exports=r||i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(35),o=r(i),a=n(2),s=r(a),u=n(5),c=r(u);e["default"]={el:"#drawing-zone",MODE_RECT:"RECT",MODE_FREE:"FREE",ZOOM_IN:"in",ZOOM_OUT:"out",components:{typeahead:s["default"],zoomview:c["default"]},data:{mode:"",isRect:!0,normalizePath:"",readOnly:!1,formView:!0,useClipPath:!1,transformMatrix:"",fragmentPath:"",canZoom:!0,displayMask:!1},mounted:function(){var t=this;this.initialDrawingMode=null,this.drawingComponent=o["default"].init({wrapperId:"#iconolab-image-wrapper",actionWrapper:"#action-wrapper",readOnly:!1,onDrawingModeChange:function(e){t.setDrawingMode(e,!1)}}),this.$refs.zoomview.setZoomTarget(this.drawingComponent.getPaper()),this.showEditor(),this.drawingComponent.createTestHandler(10,20,50)},methods:{computeCentreredViewBox:function(){var t=this.$refs.zoomSvg,e=[],n=t.getAttribute("width"),r=t.getAttribute("height"),i=n/100,o=r/100,a=this.drawingComponent.getShapeBBox();return e=[(a.x-1)*i,(a.y-1)*o,(a.w+2)*i,(a.h+2)*o],e.join(" ")},computeZoomedViewBox:function(){var t=[],e=this.$refs.zoomSvg,n=this.drawingComponent.getShapeBBox(),r=e.getAttribute("width"),i=e.getAttribute("height"),o=r/100,a=i/100;n.x=n.x*o,n.y=n.y*a,n.w=n.w*o,n.h=n.h*a;var s=r/i;return n.w>n.h?(n.y=Math.max(0,n.y-(n.w*s-n.h)/2),n.h=n.w*s):(n.x=Math.max(0,n.x-(n.h/s-n.w)/2),n.w=n.h/s),t=[n.x,n.y,n.w,n.h],!!n&&t.join(" ")},zoom:function(t){var e=this.$refs.smallSvgWrapper;if(this.$options.ZOOM_OUT===t){var n=[0,0,e.getAttribute("width"),e.getAttribute("height")];e.setAttribute("viewBox",n.join(" ")),this.canZoom=!0}this.$options.ZOOM_IN===t&&(e.setAttribute("viewBox",this.computeCentreredViewBox()),this.canZoom=!1)},setDrawingMode:function(t,e){this.initialDrawingMode||(this.initialDrawingMode=t);var e="boolean"!=typeof e||e;this.mode=this.$options["MODE_"+t],this.isRect=this.mode===this.$options.MODE_RECT,e&&this.drawingComponent.setDrawingMode(this.mode)},cancel:function(){this.formView=!0;var t=this.$refs.currentPath.getAttribute("d");t.length&&this.initialDrawingMode&&(t+=";"+this.initialDrawingMode,this.drawingComponent.setPath(t))},highLightZone:function(){this.displayMask?this.displayMask=!1:this.displayMask=!0},displayEditedPath:function(){this.drawingComponent.getPath()},resetZoom:function(){this.zoom(this.$options.ZOOM_OUT)},showEditor:function(){this.formView=!0,this.resetZoom()},showForm:function(){this.normalizePath=this.drawingComponent.getPath();var t=this.$refs.smallImage;this.formView=!0;var e=t.getAttribute("width")/100,n=t.getAttribute("height")/100,r=[e,0,0,n,0,0].join(",");this.transformMatrix="matrix("+r+")",this.fragmentPath=this.normalizePath.split(";")[0]},clear:function(){this.drawingComponent.clear()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=r(i);e["default"]={data:function(){return{}},components:{Typeahead:o["default"]},mounted:function(){this.targetKeyMap={title:"proposal-title",desc:"proposal-description",frag:"proposal-fragment"},this.targetFieldTypeMap={title:"input",desc:"input",frag:"frag"},this.originalValues={title:"",desc:"",frag:""}},methods:{pickProposition:function(t,e,n){var r="",i=document.getElementById(e),o=this.$refs[this.targetKeyMap[n]],a=this.targetFieldTypeMap[n];if(!a)throw new Error("A target type must be provided...");if("input"===a&&(r=o.value,o.value=i.value),"frag"===a){r=o.getAttribute("d");var s=i.getAttribute("d");o.getAttribute("data-path-type");o.setAttribute("d",s);var u=i.getAttribute("data-path-type");u=u||"FREE";var c=this.$refs["fragment-field"];c.value=s+";"+u}this.preserveOriginalValue(n,r)},pickTag:function(t,e){var n=this.$refs[e],r=this.$refs["proposal-tags"];this.preserveOriginalValue("proposal-tags",r.tags),r.setTags(n.tags,!0)},preserveOriginalValue:function(t,e){this.originalValues[t]||(this.originalValues[t]=e)},hightlightSource:function(t){t.className+="highlight"},save:function(){alert("this is it ... ")}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e["default"]={data:function(){return{tags:[],readOnly:!1}},methods:{removeTag:function(t){this.tags.$remove(t),this.normalizeSelectedTags()},reset:function(){this.tags=[],this.normalizeSelectedTags()},tagAlreadyExists:function(t){var e=!1,n=this.tags.find(function(e){if(e.tag_link){if(e.tag_link===t.tag_link)return!0}else if(e.tag_label===t.tag_label)return!0});if(n){var r=this.$refs[n.id][0];r.style.border="1px solid red",setTimeout(function(){r.style.border=""},1e3),e=!0}return e},setTags:function(t){Array.isArray(t)||new Error("setTags expects an array!");var e=this;t.map(function(t){e.addTag(t)})},addTag:function(t){return!this.tagAlreadyExists(t)&&void(t&&t.hasOwnProperty("tag_label")&&(t.id||(t.id=(0,r.generateId)("tag_")),this.tags.push(t),this.normalizeSelectedTags()))},normalizeSelectedTags:function(){var t=[];this.tags.map(function(e){var n={};n.tag_input="string"==typeof e.tag_link&&e.tag_link.length?e.tag_link:e.tag_label,n.accuracy=e.accuracy,n.relevancy=e.relevancy,t.push(n)}),this.$parent.$data.selectedTags=JSON.stringify(t)},updateAccuracy:function(t,e){e.accuracy=t.target.value,this.normalizeSelectedTags()},updatePertinence:function(t,e){e.relevancy=t.target.value,this.normalizeSelectedTags()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(29),o=r(i),a=n(41),s=r(a),u="http://lookup.dbpedia.org/api/search/PrefixSearch?MaxHits=5",c="http://fr.wikipedia.org/w/api.php",l={reset:o["default"].methods.reset},f=function(t,e){var n=jQuery.Deferred();jQuery.getJSON(t,e).done(function(t){var e={};e.data=t,n.resolve(e)}).fail(n.reject);return n.promise()};e["default"]={mixins:[o["default"]],components:{taglist:s["default"]},props:["tags","read-only"],mounted:function(){this.taglist=this.$refs.taglist,this.taglist.readOnly=this.readOnly,this.setTags(this.tags)},data:function(){return{src:u,limit:7,minChars:2,showAddButton:!1,datasource:"wikipedia",selectedTags:"[]",items:[],queryParamName:"QueryString"}},methods:{setTags:function(t,e){t=Array.isArray(t)?t:[],e="boolean"==typeof e&&e,e&&this.taglist.reset(),this.taglist.setTags(t)},checkQuery:function(){0===this.query.length&&this.reset()},fetch:function(){if("wikipedia"===this.datasource)return this.fetchWikiPedia();var t={};return t[this.queryParamName]=this.query,f(this.src,query)},fetchWikiPedia:function(){this.src=c;var t={action:"opensearch",format:"json",search:this.query},e=jQuery.Deferred();return jQuery.ajax({url:this.src,data:t,dataType:"jsonp",success:function(t){var n={};n.data=t,e.resolve(n)}}),e.promise()},reset:function(){this.showAddButton=!1,l.reset.call(this)},prepareWikipediaResponse:function(t){var e=[];if(4!==t.length)return e;var n=t[1],r=t[3];return n.length===r.length?(n.map(function(t,n){var i={};i.tag_label=t;var o=r[n];o=o.replace("https://fr.wikipedia.org/wiki/","http://fr.dbpedia.org/resource/"),i.tag_link=decodeURI(o),i.accuracy=1,i.relevancy=1,e.push(i)}),e):void 0},prepareResponseData:function(t){var e="string"==typeof t?JSON.parse(t):t;return"wikipedia"===this.datasource&&(e=this.prepareWikipediaResponse(e)),Array.isArray(e)&&!e.length&&(this.showAddButton=!0),e},addTag:function(){if(this.hasItems)return!1;var t={tag_label:this.query,accuracy:1,relevancy:1};this.$refs.taglist.addTag(t),this.reset()},onHit:function(t){this.$refs.taglist.addTag(t),this.reset()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(4),a=r(o),s=n(3),u=r(s);e["default"]={props:["image-url","image-width","image-height","zoomTarget","main-image-id"],mounted:function(){this.root=new u["default"](this.$refs["root-svg"]),this.handler=this.root.select("#zoom-handler"),this.image=this.root.select("#small-image"),this.root.attr({width:101,height:101});var t=parseInt(this.image.attr("width")),e=parseInt(this.image.attr("height"));this.root.attr({viewBox:[0,0,t,e]}),this.imgMinSize=Math.min(t,e),this.handlerSize=20,this.handler.attr({width:this.handlerSize,height:this.handlerSize}),this.currentViewBox=null,this.currentViewport=null,this.updateFunction=null;var n=document.getElementById("zoomTarget");n&&this.setZoomTarget(n),this.handleEvents()},data:function(){return{showHandler:!1}},methods:{setZoomTarget:function(t){if(t.hasOwnProperty("type")&&"svg"===t.type)this.paper=t;else{this.paper=new u["default"](t);var e=this.paper.select("#"+this.mainImageId);if(!e)throw new Error("A main image wasn't found.")}this.zoomHandler=a["default"].enable_zoom(this.paper)},incraseDrawingZoom:function(){this.zoomHandler.zoomIn()},resetDrawingZoom:function(){this.zoomHandler.reset()},decreaseDrawingZoom:function(){this.zoomHandler.zoomOut()},handleEvents:function(){i.eventEmitter.on("zoomChanged",this.handleZoomChanged.bind(this));var t=this;this.handler.drag(function(e,n){var r=this.getBBox(),i=this.data("startPosition").x,o=this.data("startPosition").y,a=parseInt(t.image.attr("width")),s=parseInt(t.image.attr("height")),u=i+e,c=o+n;u+r.w>=a&&(u=a-r.w),c+r.h>=s&&(c=s-r.h),u=u<0?0:u,c=c<0?0:c;var l="T"+[u,c];this.attr("transform",l),t.notifyMove(this.getBBox().x,this.getBBox().y)},function(){this.data("startPosition",{x:this.getBBox().x,y:this.getBBox().y}),this.data("origTransform",this.transform().local)},function(){})},moveHandlerToCenter:function(t,e){cx=cx?cx:this.width/2,cy=cy?cy:this.height/2;var n=cx-this.handler.getBBox().w/2,r=cy-this.handler.getBBox().h/2;this.handler.transform("T"+[n,r])},notifyMove:function(t,e){if(i.eventEmitter.emit("moveZoomHandler",{x:t,y:e,viewport:{width:this.image.attr("width"),height:this.image.attr("height")}}),!this.currentViewBox||!this.currentViewport||"function"!=typeof this.updateFunction)return!1;var n=this.currentImageSize.width/this.image.attr("width"),r=this.currentImageSize.height/this.image.attr("height"),o=t*n,a=e*r;this.currentViewBox[0]=o,this.currentViewBox[1]=a,this.updateFunction(this.currentViewBox)},handleZoomChanged:function(t){if(1===t.currentScale)return void(this.showHandler=!1);this.showHandler=!0,this.currentViewport=t.viewport,this.currentViewBox=t.currentViewBox,this.currentImageSize=t.imageSize,this.updateFunction=t.updateFunction;var e=t.currentViewBox[2]*this.imgMinSize/t.minSize;this.handler.attr("width",e),this.handler.attr("height",e);var n=t.currentViewBox[0]*this.image.attr("width")/t.imageSize.width,r=t.currentViewBox[1]*this.image.attr("height")/t.imageSize.height;this.handler.transform("T"+[n,r])}}}},function(t,e){"use strict";t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){"use strict";var r,i=n(13),o=n(20),a=n(16),s=n(23);r=t.exports=function(t,e){var n,r,a,u,c;return arguments.length<2||"string"!=typeof t?(u=e,e=t,t=null):u=arguments[2],null==t?(n=a=!0,r=!1):(n=s.call(t,"c"),r=s.call(t,"e"),a=s.call(t,"w")),c={value:e,configurable:n,enumerable:r,writable:a},u?i(o(u),c):c},r.gs=function(t,e,n){var r,u,c,l;return"string"!=typeof t?(c=n,n=e,e=t,t=null):c=arguments[3],null==e?e=void 0:a(e)?null==n?n=void 0:a(n)||(c=n,n=void 0):(c=e,e=n=void 0),null==t?(r=!0,u=!1):(r=s.call(t,"c"),u=s.call(t,"e")),l={get:e,set:n,configurable:r,enumerable:u},c?i(o(c),l):l}},function(t,e,n){"use strict";t.exports=n(14)()?Object.assign:n(15)},function(t,e){"use strict";t.exports=function(){var t,e=Object.assign;return"function"==typeof e&&(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},function(t,e,n){"use strict";var r=n(17),i=n(22),o=Math.max;t.exports=function(t,e){var n,a,s,u=o(arguments.length,2);for(t=Object(i(t)),s=function(r){try{t[r]=e[r]}catch(i){n||(n=i)}},a=1;a<u;++a)e=arguments[a],r(e).forEach(s);if(void 0!==n)throw n;return t}},function(t,e){"use strict";t.exports=function(t){return"function"==typeof t}},function(t,e,n){"use strict";t.exports=n(18)()?Object.keys:n(19)},function(t,e){"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},function(t,e){"use strict";var n=Object.keys;t.exports=function(t){return n(null==t?t:Object(t))}},function(t,e){"use strict";var n=Array.prototype.forEach,r=Object.create,i=function(t,e){var n;for(n in t)e[n]=t[n]};t.exports=function(t){var e=r(null);return n.call(arguments,function(t){null!=t&&i(Object(t),e)}),e}},function(t,e){"use strict";t.exports=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}},function(t,e){"use strict";t.exports=function(t){if(null==t)throw new TypeError("Cannot use null or undefined");return t}},function(t,e,n){"use strict";t.exports=n(24)()?String.prototype.contains:n(25)},function(t,e){"use strict";var n="razdwatrzy";t.exports=function(){return"function"==typeof n.contains&&(n.contains("dwa")===!0&&n.contains("foo")===!1)}},function(t,e){"use strict";var n=String.prototype.indexOf;t.exports=function(t){return n.call(this,t,arguments[1])>-1}},function(t,e,n){"use strict";var r,i,o,a,s,u,c,l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},f=n(12),h=n(21),d=Function.prototype.apply,p=Function.prototype.call,v=Object.create,g=Object.defineProperty,m=Object.defineProperties,y=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0};r=function(t,e){var n;return h(e),y.call(this,"__ee__")?n=this.__ee__:(n=b.value=v(null),g(this,"__ee__",b),b.value=null),n[t]?"object"===l(n[t])?n[t].push(e):n[t]=[n[t],e]:n[t]=e,this},i=function(t,e){var n,i;return h(e),i=this,r.call(this,t,n=function(){o.call(i,t,n),d.call(e,this,arguments)}),n.__eeOnceListener__=e,this},o=function(t,e){var n,r,i,o;if(h(e),!y.call(this,"__ee__"))return this;if(n=this.__ee__,!n[t])return this;if(r=n[t],"object"===("undefined"==typeof r?"undefined":l(r)))for(o=0;i=r[o];++o)i!==e&&i.__eeOnceListener__!==e||(2===r.length?n[t]=r[o?0:1]:r.splice(o,1));else r!==e&&r.__eeOnceListener__!==e||delete n[t];return this},a=function(t){var e,n,r,i,o;if(y.call(this,"__ee__")&&(i=this.__ee__[t]))if("object"===("undefined"==typeof i?"undefined":l(i))){for(n=arguments.length,o=new Array(n-1),e=1;e<n;++e)o[e-1]=arguments[e];for(i=i.slice(),e=0;r=i[e];++e)d.call(r,this,o)}else switch(arguments.length){case 1:p.call(i,this);
-break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),e=1;e<n;++e)o[e-1]=arguments[e];d.call(i,this,o)}},s={on:r,once:i,off:o,emit:a},u={on:f(r),once:f(i),off:f(o),emit:f(a)},c=m({},u),t.exports=e=function(t){return null==t?v(c):m(Object(t),u)},e.methods=s},function(t,e,n){var r,i;(function(t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};/*!
+!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="/dist/",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n(38),n(39),n(37);var i=n(28),o=(r(i),n(2)),a=r(o),s=n(33),u=r(s),c=n(6),l=r(c),f=n(41),h=r(f),d={Cutout:u["default"],VueComponents:{Typeahead:a["default"],MergeTool:h["default"],Zoomview:l["default"]}};window.iconolab||(window.iconolab=d)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.eventEmitter=e.generateId=void 0;var i=n(27),o=r(i),a=(0,o["default"])({}),s=function(){var t=0,e="item_";return function(n){return n="string"==typeof n?n:e,t+=1,n+t}}();e.generateId=s,e.eventEmitter=a},function(t,e,n){var r,i;n(47),r=n(10);var o=n(43);i=r||{},i.__esModule&&(i=i["default"]),"function"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,i._scopeId="data-v-1",t.exports=r||i},function(t,e,n){var r,i,r,o,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};(function(){t.exports=0;!function(n){var o,a,s="0.4.2",u="hasOwnProperty",c=/[\.\/]/,l=/\s*,\s*/,f="*",h=function(t,e){return t-e},d={n:{}},p=function(){for(var t=0,e=this.length;t<e;t++)if("undefined"!=typeof this[t])return this[t]},v=function(){for(var t=this.length;--t;)if("undefined"!=typeof this[t])return this[t]},g=function m(t,e){t=String(t);var n,r=a,i=Array.prototype.slice.call(arguments,2),s=m.listeners(t),u=0,c=[],l={},f=[],d=o;f.firstDefined=p,f.lastDefined=v,o=t,a=0;for(var g=0,y=s.length;g<y;g++)"zIndex"in s[g]&&(c.push(s[g].zIndex),s[g].zIndex<0&&(l[s[g].zIndex]=s[g]));for(c.sort(h);c[u]<0;)if(n=l[c[u++]],f.push(n.apply(e,i)),a)return a=r,f;for(g=0;g<y;g++)if(n=s[g],"zIndex"in n)if(n.zIndex==c[u]){if(f.push(n.apply(e,i)),a)break;do if(u++,n=l[c[u]],n&&f.push(n.apply(e,i)),a)break;while(n)}else l[n.zIndex]=n;else if(f.push(n.apply(e,i)),a)break;return a=r,o=d,f};g._events=d,g.listeners=function(t){var e,n,r,i,o,a,s,u,l=t.split(c),h=d,p=[h],v=[];for(i=0,o=l.length;i<o;i++){for(u=[],a=0,s=p.length;a<s;a++)for(h=p[a].n,n=[h[l[i]],h[f]],r=2;r--;)e=n[r],e&&(u.push(e),v=v.concat(e.f||[]));p=u}return v},g.on=function(t,e){if(t=String(t),"function"!=typeof e)return function(){};for(var n=t.split(l),r=0,i=n.length;r<i;r++)!function(t){for(var n,r=t.split(c),i=d,o=0,a=r.length;o<a;o++)i=i.n,i=i.hasOwnProperty(r[o])&&i[r[o]]||(i[r[o]]={n:{}});for(i.f=i.f||[],o=0,a=i.f.length;o<a;o++)if(i.f[o]==e){n=!0;break}!n&&i.f.push(e)}(n[r]);return function(t){+t==+t&&(e.zIndex=+t)}},g.f=function(t){var e=[].slice.call(arguments,1);return function(){g.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},g.stop=function(){a=1},g.nt=function(t){return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(o):o},g.nts=function(){return o.split(c)},g.off=g.unbind=function(t,e){if(!t)return void(g._events=d={n:{}});var n=t.split(l);if(n.length>1)for(var r=0,i=n.length;r<i;r++)g.off(n[r],e);else{n=t.split(c);var o,a,s,r,i,h,p,v=[d];for(r=0,i=n.length;r<i;r++)for(h=0;h<v.length;h+=s.length-2){if(s=[h,1],o=v[h].n,n[r]!=f)o[n[r]]&&s.push(o[n[r]]);else for(a in o)o[u](a)&&s.push(o[a]);v.splice.apply(v,s)}for(r=0,i=v.length;r<i;r++)for(o=v[r];o.n;){if(e){if(o.f){for(h=0,p=o.f.length;h<p;h++)if(o.f[h]==e){o.f.splice(h,1);break}!o.f.length&&delete o.f}for(a in o.n)if(o.n[u](a)&&o.n[a].f){var m=o.n[a].f;for(h=0,p=m.length;h<p;h++)if(m[h]==e){m.splice(h,1);break}!m.length&&delete o.n[a].f}}else{delete o.f;for(a in o.n)o.n[u](a)&&o.n[a].f&&delete o.n[a].f}o=o.n}}},g.once=function(t,e){var n=function r(){return g.unbind(t,r),e.apply(this,arguments)};return g.on(t,n)},g.version=s,g.toString=function(){return"You are running Eve "+s},"undefined"!=typeof t&&t.exports?t.exports=g:(r=[],!(i=function(){return g}.apply(e,r)))}(this),function(n,a){r=[i],o=function(t){return a(n,t)}.apply(e,r),!(void 0!==o&&(t.exports=o))}(window||this,function(t,e){var n=function(e){var n={},r=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(t){setTimeout(t,16)},i=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},o=0,a="M"+(+new Date).toString(36),s=function(){return a+(o++).toString(36)},u=Date.now||function(){return+new Date},c=function(t){var e=this;if(null==t)return e.s;var n=e.s-t;e.b+=e.dur*n,e.B+=e.dur*n,e.s=t},l=function(t){var e=this;return null==t?e.spd:void(e.spd=t)},f=function(t){var e=this;return null==t?e.dur:(e.s=e.s*t/e.dur,void(e.dur=t))},h=function(){var t=this;delete n[t.id],t.update(),e("mina.stop."+t.id,t)},d=function(){var t=this;t.pdif||(delete n[t.id],t.update(),t.pdif=t.get()-t.b)},p=function(){var t=this;t.pdif&&(t.b=t.get()-t.pdif,delete t.pdif,n[t.id]=t)},v=function(){var t,e=this;if(i(e.start)){t=[];for(var n=0,r=e.start.length;n<r;n++)t[n]=+e.start[n]+(e.end[n]-e.start[n])*e.easing(e.s)}else t=+e.start+(e.end-e.start)*e.easing(e.s);e.set(t)},g=function y(){var t=0;for(var i in n)if(n.hasOwnProperty(i)){var o=n[i],a=o.get();t++,o.s=(a-o.b)/(o.dur/o.spd),o.s>=1&&(delete n[i],o.s=1,t--,function(t){setTimeout(function(){e("mina.finish."+t.id,t)})}(o)),o.update()}t&&r(y)},m=function b(t,e,i,o,a,u,m){var y={id:s(),start:t,end:e,b:i,s:0,dur:o-i,spd:1,get:a,set:u,easing:m||b.linear,status:c,speed:l,duration:f,stop:h,pause:d,resume:p,update:v};n[y.id]=y;var x,w=0;for(x in n)if(n.hasOwnProperty(x)&&(w++,2==w))break;return 1==w&&r(g),y};return m.time=u,m.getById=function(t){return n[t]||null},m.linear=function(t){return t},m.easeout=function(t){return Math.pow(t,1.7)},m.easein=function(t){return Math.pow(t,.48)},m.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,n=Math.sqrt(.1734+e*e),r=n-e,i=Math.pow(Math.abs(r),1/3)*(r<0?-1:1),o=-n-e,a=Math.pow(Math.abs(o),1/3)*(o<0?-1:1),s=i+a+.5;return 3*(1-s)*s*s+s*s*s},m.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},m.backout=function(t){if(0==t)return 0;t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},m.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},m.bounce=function(t){var e,n=7.5625,r=2.75;return t<1/r?e=n*t*t:t<2/r?(t-=1.5/r,e=n*t*t+.75):t<2.5/r?(t-=2.25/r,e=n*t*t+.9375):(t-=2.625/r,e=n*t*t+.984375),e},t.mina=m,m}("undefined"==typeof e?function(){}:e),r=function(t){function n(t,e){if(t){if(t.nodeType)return C(t);if(i(t,"array")&&n.set)return n.set.apply(n,t);if(t instanceof b)return t;if(null==e)return t=T.doc.querySelector(String(t)),C(t)}return t=null==t?"100%":t,e=null==e?"100%":e,new _(t,e)}function r(t,e){if(e){if("#text"==t&&(t=T.doc.createTextNode(e.text||e["#text"]||"")),"#comment"==t&&(t=T.doc.createComment(e.text||e["#text"]||"")),"string"==typeof t&&(t=r(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(W,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(X,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType){for(var n in e)if(e[A](n)){var i=S(e[n]);i?"xlink:"==n.substring(0,6)?t.setAttributeNS(W,n.substring(6),i):"xml:"==n.substring(0,4)?t.setAttributeNS(X,n.substring(4),i):t.setAttribute(n,i):t.removeAttribute(n)}}else"text"in e&&(t.nodeValue=e.text)}else t=T.doc.createElementNS(X,t);return t}function i(t,e){return e=S.prototype.toLowerCase.call(e),"finite"==e?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||("null"==e&&null===t||e==("undefined"==typeof t?"undefined":a(t))&&null!==t||"object"==e&&t===Object(t)||F.call(t).slice(8,-1).toLowerCase()==e)}function o(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[A](n)&&(e[n]=o(t[n]));return e}function s(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}function u(t,e,n){function r(){var i=Array.prototype.slice.call(arguments,0),o=i.join("␀"),a=r.cache=r.cache||{},u=r.count=r.count||[];return a[A](o)?(s(u,o),n?n(a[o]):a[o]):(u.length>=1e3&&delete a[u.shift()],u.push(o),a[o]=t.apply(e,i),n?n(a[o]):a[o])}return r}function c(t,e,n,r,i,o){if(null==i){var a=t-n,s=e-r;return a||s?(180+180*j.atan2(-s,-a)/M+360)%360:0}return c(t,e,i,o)-c(n,r,i,o)}function l(t){return t%360*M/180}function f(t){return 180*t/M%360}function h(t){var e=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(t,n,r){return r=r.split(/\s*,\s*|\s+/),"rotate"==n&&1==r.length&&r.push(0,0),"scale"==n&&(r.length>2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==n?e.push(["m",1,0,j.tan(l(r[0])),1,0,0]):"skewY"==n?e.push(["m",1,j.tan(l(r[0])),0,1,0,0]):e.push([n.charAt(0)].concat(r)),t}),e}function d(t,e){var r=et(t),i=new n.Matrix;if(r)for(var o=0,a=r.length;o<a;o++){var s,u,c,l,f,h=r[o],d=h.length,p=S(h[0]).toLowerCase(),v=h[0]!=p,g=v?i.invert():0;"t"==p&&2==d?i.translate(h[1],0):"t"==p&&3==d?v?(s=g.x(0,0),u=g.y(0,0),c=g.x(h[1],h[2]),l=g.y(h[1],h[2]),i.translate(c-s,l-u)):i.translate(h[1],h[2]):"r"==p?2==d?(f=f||e,i.rotate(h[1],f.x+f.width/2,f.y+f.height/2)):4==d&&(v?(c=g.x(h[2],h[3]),l=g.y(h[2],h[3]),i.rotate(h[1],c,l)):i.rotate(h[1],h[2],h[3])):"s"==p?2==d||3==d?(f=f||e,i.scale(h[1],h[d-1],f.x+f.width/2,f.y+f.height/2)):4==d?v?(c=g.x(h[2],h[3]),l=g.y(h[2],h[3]),i.scale(h[1],h[1],c,l)):i.scale(h[1],h[1],h[2],h[3]):5==d&&(v?(c=g.x(h[3],h[4]),l=g.y(h[3],h[4]),i.scale(h[1],h[2],c,l)):i.scale(h[1],h[2],h[3],h[4])):"m"==p&&7==d&&i.add(h[1],h[2],h[3],h[4],h[5],h[6])}return i}function p(t){var e=t.node.ownerSVGElement&&C(t.node.ownerSVGElement)||t.node.parentNode&&C(t.node.parentNode)||n.select("svg")||n(0,0),r=e.select("defs"),i=null!=r&&r.node;return i||(i=w("defs",e.node).node),i}function v(t){return t.node.ownerSVGElement&&C(t.node.ownerSVGElement)||n.select("svg")}function m(t,e,n){function i(t){if(null==t)return P;if(t==+t)return t;r(c,{width:t});try{return c.getBBox().width}catch(e){return 0}}function o(t){if(null==t)return P;if(t==+t)return t;r(c,{height:t});try{return c.getBBox().height}catch(e){return 0}}function a(r,i){null==e?u[r]=i(t.attr(r)||0):r==e&&(u=i(null==n?t.attr(r)||0:n))}var s=v(t).node,u={},c=s.querySelector(".svg---mgr");switch(c||(c=r("rect"),r(c,{x:-9e9,y:-9e9,width:10,height:10,"class":"svg---mgr",fill:"none"}),s.appendChild(c)),t.type){case"rect":a("rx",i),a("ry",o);case"image":a("width",i),a("height",o);case"text":a("x",i),a("y",o);break;case"circle":a("cx",i),a("cy",o),a("r",i);break;case"ellipse":a("cx",i),a("cy",o),a("rx",i),a("ry",o);break;case"line":a("x1",i),a("x2",i),a("y1",o),a("y2",o);break;case"marker":a("refX",i),a("markerWidth",i),a("refY",o),a("markerHeight",o);break;case"radialGradient":a("fx",i),a("fy",o);break;case"tspan":a("dx",i),a("dy",o);break;default:a(e,i)}return s.removeChild(c),u}function y(t){i(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,n=0,r=this.node;this[e];)delete this[e++];for(e=0;e<t.length;e++)"set"==t[e].type?t[e].forEach(function(t){r.appendChild(t.node)}):r.appendChild(t[e].node);var o=r.childNodes;for(e=0;e<o.length;e++)this[n++]=C(o[e]);return this}function b(t){if(t.snap in G)return G[t.snap];var e;try{e=t.ownerSVGElement}catch(n){}this.node=t,e&&(this.paper=new _(e)),this.type=t.tagName||t.nodeName;var r=this.id=U(this);if(this.anims={},this._={transform:[]},t.snap=r,G[r]=this,"g"==this.type&&(this.add=y),this.type in{g:1,mask:1,pattern:1,symbol:1})for(var i in _.prototype)_.prototype[A](i)&&(this[i]=_.prototype[i])}function x(t){this.node=t}function w(t,e){var n=r(t);e.appendChild(n);var i=C(n);return i}function _(t,e){var n,i,o,a=_.prototype;if(t&&"svg"==t.tagName){if(t.snap in G)return G[t.snap];var s=t.ownerDocument;n=new b(t),i=t.getElementsByTagName("desc")[0],o=t.getElementsByTagName("defs")[0],i||(i=r("desc"),i.appendChild(s.createTextNode("Created with Snap")),n.node.appendChild(i)),o||(o=r("defs"),n.node.appendChild(o)),n.defs=o;for(var u in a)a[A](u)&&(n[u]=a[u]);n.paper=n.root=n}else n=w("svg",T.doc.body),r(n.node,{height:e,version:1.1,width:t,xmlns:X});return n}function C(t){return t?t instanceof b||t instanceof x?t:t.tagName&&"svg"==t.tagName.toLowerCase()?new _(t):t.tagName&&"object"==t.tagName.toLowerCase()&&"image/svg+xml"==t.type?new _(t.contentDocument.getElementsByTagName("svg")[0]):new b(t):t}function k(t,e){for(var n=0,r=t.length;n<r;n++){var i={type:t[n].type,attr:t[n].attr()},o=t[n].children();e.push(i),o.length&&k(o,i.childNodes=[])}}n.version="0.4.0",n.toString=function(){return"Snap v"+this.version},n._={};var T={win:t.window,doc:t.window.document};n._.glob=T;var A="hasOwnProperty",S=String,$=parseFloat,E=parseInt,j=Math,O=j.max,N=j.min,D=j.abs,M=(j.pow,j.PI),P=(j.round,""),F=Object.prototype.toString,B=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,L=(n._.separator=/[,\s]+/,/[\s]*,[\s]*/),R={hs:1,rg:1},I=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,H=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,q=/(-?\d*\.?\d*(?:e[\-+]?\\d+)?)[\s]*,?[\s]*/gi,z=0,V="S"+(+new Date).toString(36),U=function(t){return(t&&t.type?t.type:P)+V+(z++).toString(36)},W="http://www.w3.org/1999/xlink",X="http://www.w3.org/2000/svg",G={};n.url=function(t){return"url('#"+t+"')"};n._.$=r,n._.id=U,n.format=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,n=function(t,n,r){var i=r;return n.replace(e,function(t,e,n,r,o){e=e||r,i&&(e in i&&(i=i[e]),"function"==typeof i&&o&&(i=i()))}),i=(null==i||i==r?t:i)+""};return function(e,r){return S(e).replace(t,function(t,e){return n(t,e,r)})}}(),n._.clone=o,n._.cacher=u,n.rad=l,n.deg=f,n.sin=function(t){return j.sin(n.rad(t))},n.tan=function(t){return j.tan(n.rad(t))},n.cos=function(t){return j.cos(n.rad(t))},n.asin=function(t){return n.deg(j.asin(t))},n.acos=function(t){return n.deg(j.acos(t))},n.atan=function(t){return n.deg(j.atan(t))},n.atan2=function(t){return n.deg(j.atan2(t))},n.angle=c,n.len=function(t,e,r,i){return Math.sqrt(n.len2(t,e,r,i))},n.len2=function(t,e,n,r){return(t-n)*(t-n)+(e-r)*(e-r)},n.closestPoint=function(t,e,n){function r(t){var r=t.x-e,i=t.y-n;return r*r+i*i}for(var i,o,a,s,u=t.node,c=u.getTotalLength(),l=c/u.pathSegList.numberOfItems*.125,f=1/0,h=0;h<=c;h+=l)(s=r(a=u.getPointAtLength(h)))<f&&(i=a,o=h,f=s);for(l*=.5;l>.5;){var d,p,v,g,m,y;(v=o-l)>=0&&(m=r(d=u.getPointAtLength(v)))<f?(i=d,o=v,f=m):(g=o+l)<=c&&(y=r(p=u.getPointAtLength(g)))<f?(i=p,o=g,f=y):l*=.5}return i={x:i.x,y:i.y,length:o,distance:Math.sqrt(f)}},n.is=i,n.snapTo=function(t,e,n){if(n=i(n,"finite")?n:10,i(t,"array")){for(var r=t.length;r--;)if(D(t[r]-e)<=n)return t[r]}else{t=+t;var o=e%t;if(o<n)return e-o;if(o>t-n)return e-o+t}return e},n.getRGB=u(function(t){if(!t||(t=S(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Q};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:Q};if(!(R[A](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=Z(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Q};var e,r,o,a,s,u,c=t.match(B);return c?(c[2]&&(o=E(c[2].substring(5),16),r=E(c[2].substring(3,5),16),e=E(c[2].substring(1,3),16)),c[3]&&(o=E((s=c[3].charAt(3))+s,16),r=E((s=c[3].charAt(2))+s,16),e=E((s=c[3].charAt(1))+s,16)),c[4]&&(u=c[4].split(L),e=$(u[0]),"%"==u[0].slice(-1)&&(e*=2.55),r=$(u[1]),"%"==u[1].slice(-1)&&(r*=2.55),o=$(u[2]),"%"==u[2].slice(-1)&&(o*=2.55),"rgba"==c[1].toLowerCase().slice(0,4)&&(a=$(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100)),c[5]?(u=c[5].split(L),e=$(u[0]),"%"==u[0].slice(-1)&&(e/=100),r=$(u[1]),"%"==u[1].slice(-1)&&(r/=100),o=$(u[2]),"%"==u[2].slice(-1)&&(o/=100),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(e/=360),"hsba"==c[1].toLowerCase().slice(0,4)&&(a=$(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),n.hsb2rgb(e,r,o,a)):c[6]?(u=c[6].split(L),e=$(u[0]),"%"==u[0].slice(-1)&&(e/=100),r=$(u[1]),"%"==u[1].slice(-1)&&(r/=100),o=$(u[2]),"%"==u[2].slice(-1)&&(o/=100),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(e/=360),"hsla"==c[1].toLowerCase().slice(0,4)&&(a=$(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),n.hsl2rgb(e,r,o,a)):(e=N(j.round(e),255),r=N(j.round(r),255),o=N(j.round(o),255),a=N(O(a,0),1),c={r:e,g:r,b:o,toString:Q},c.hex="#"+(16777216|o|r<<8|e<<16).toString(16).slice(1),c.opacity=i(a,"finite")?a:1,c)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Q}},n),n.hsb=u(function(t,e,r){return n.hsb2rgb(t,e,r).hex}),n.hsl=u(function(t,e,r){return n.hsl2rgb(t,e,r).hex}),n.rgb=u(function(t,e,n,r){if(i(r,"finite")){var o=j.round;return"rgba("+[o(t),o(e),o(n),+r.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)});var Z=function(t){var e=T.doc.getElementsByTagName("head")[0]||T.doc.getElementsByTagName("svg")[0],n="rgb(255, 0, 0)";return(Z=u(function(t){if("red"==t.toLowerCase())return n;e.style.color=n,e.style.color=t;var r=T.doc.defaultView.getComputedStyle(e,P).getPropertyValue("color");return r==n?null:r}))(t)},J=function(){return"hsb("+[this.h,this.s,this.b]+")"},Y=function(){return"hsl("+[this.h,this.s,this.l]+")"},Q=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},K=function(t,e,r){if(null==e&&i(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,e=t.g,t=t.r),null==e&&i(t,string)){var o=n.getRGB(t);t=o.r,e=o.g,r=o.b}return(t>1||e>1||r>1)&&(t/=255,e/=255,r/=255),[t,e,r]},tt=function(t,e,r,o){t=j.round(255*t),e=j.round(255*e),r=j.round(255*r);var a={r:t,g:e,b:r,opacity:i(o,"finite")?o:1,hex:n.rgb(t,e,r),toString:Q};return i(o,"finite")&&(a.opacity=o),a};n.color=function(t){var e;return i(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=n.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):i(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=n.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(i(t,"string")&&(t=n.getRGB(t)),i(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=n.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=n.rgb2hsb(t),t.v=e.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=Q,t},n.hsb2rgb=function(t,e,n,r){i(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,r=t.o,t=t.h),t*=360;var o,a,s,u,c;return t=t%360/60,c=n*e,u=c*(1-D(t%2-1)),o=a=s=n-c,t=~~t,o+=[c,u,0,0,u,c][t],a+=[u,c,c,u,0,0][t],s+=[0,0,u,c,c,u][t],tt(o,a,s,r)},n.hsl2rgb=function(t,e,n,r){i(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),t*=360;var o,a,s,u,c;return t=t%360/60,c=2*e*(n<.5?n:1-n),u=c*(1-D(t%2-1)),o=a=s=n-c/2,t=~~t,o+=[c,u,0,0,u,c][t],a+=[u,c,c,u,0,0][t],s+=[0,0,u,c,c,u][t],tt(o,a,s,r)},n.rgb2hsb=function(t,e,n){n=K(t,e,n),t=n[0],e=n[1],n=n[2];var r,i,o,a;return o=O(t,e,n),a=o-N(t,e,n),r=0==a?null:o==t?(e-n)/a:o==e?(n-t)/a+2:(t-e)/a+4,r=(r+360)%6*60/360,i=0==a?0:a/o,{h:r,s:i,b:o,toString:J}},n.rgb2hsl=function(t,e,n){n=K(t,e,n),t=n[0],e=n[1],n=n[2];var r,i,o,a,s,u;return a=O(t,e,n),s=N(t,e,n),u=a-s,r=0==u?null:a==t?(e-n)/u:a==e?(n-t)/u+2:(t-e)/u+4,r=(r+360)%6*60/360,o=(a+s)/2,i=0==u?0:o<.5?u/(2*o):u/(2-2*o),{h:r,s:i,l:o,toString:Y}},n.parsePathString=function(t){if(!t)return null;var e=n.path(t);if(e.arr)return n.path.clone(e.arr);var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},o=[];return i(t,"array")&&i(t[0],"array")&&(o=n.path.clone(t)),o.length||S(t).replace(I,function(t,e,n){var i=[],a=e.toLowerCase();if(n.replace(q,function(t,e){e&&i.push(+e)}),"m"==a&&i.length>2&&(o.push([e].concat(i.splice(0,2))),a="l",e="m"==e?"l":"L"),"o"==a&&1==i.length&&o.push([e,i[0]]),"r"==a)o.push([e].concat(i));else for(;i.length>=r[a]&&(o.push([e].concat(i.splice(0,r[a]))),r[a]););}),o.toString=n.path.toString,e.arr=n.path.clone(o),o};var et=n.parseTransformString=function(t){if(!t)return null;var e=[];return i(t,"array")&&i(t[0],"array")&&(e=n.path.clone(t)),e.length||S(t).replace(H,function(t,n,r){var i=[];n.toLowerCase();r.replace(q,function(t,e){e&&i.push(+e)}),e.push([n].concat(i))}),e.toString=n.path.toString,e};n._.svgTransform2string=h,n._.rgTransform=/^[a-z][\s]*-?\.?\d/i,n._.transform2matrix=d,n._unit2px=m;T.doc.contains||T.doc.compareDocumentPosition?function(t,e){var n=9==t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t==r||!(!r||1!=r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e;)if(e=e.parentNode,e==t)return!0;return!1};n._.getSomeDefs=p,n._.getSomeSVG=v,n.select=function(t){return t=S(t).replace(/([^\\]):/g,"$1\\:"),C(T.doc.querySelector(t))},n.selectAll=function(t){for(var e=T.doc.querySelectorAll(t),r=(n.set||Array)(),i=0;i<e.length;i++)r.push(C(e[i]));return r},setInterval(function(){for(var t in G)if(G[A](t)){var e=G[t],n=e.node;("svg"!=e.type&&!n.ownerSVGElement||"svg"==e.type&&(!n.parentNode||"ownerSVGElement"in n.parentNode&&!n.ownerSVGElement))&&delete G[t]}},1e4),b.prototype.attr=function(t,n){var r=this,o=r.node;if(!t){if(1!=o.nodeType)return{text:o.nodeValue};for(var a=o.attributes,s={},u=0,c=a.length;u<c;u++)s[a[u].nodeName]=a[u].nodeValue;return s}if(i(t,"string")){if(!(arguments.length>1))return e("snap.util.getattr."+t,r).firstDefined();var l={};l[t]=n,t=l}for(var f in t)t[A](f)&&e("snap.util.attr."+f,r,t[f]);return r},n.parse=function(t){var e=T.doc.createDocumentFragment(),n=!0,r=T.doc.createElement("div");if(t=S(t),t.match(/^\s*<\s*svg(?:\s|>)/)||(t="<svg>"+t+"</svg>",n=!1),r.innerHTML=t,t=r.getElementsByTagName("svg")[0])if(n)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return new x(e)},n.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=T.doc.createDocumentFragment(),r=0,i=t.length;r<i;r++){var o=t[r];o.node&&o.node.nodeType&&e.appendChild(o.node),o.nodeType&&e.appendChild(o),"string"==typeof o&&e.appendChild(n.parse(o).node)}return new x(e)},n._.make=w,n._.wrap=C,_.prototype.el=function(t,e){var n=w(t,this.node);return e&&n.attr(e),n},b.prototype.children=function(){for(var t=[],e=this.node.childNodes,r=0,i=e.length;r<i;r++)t[r]=n(e[r]);return t},b.prototype.toJSON=function(){var t=[];return k([this],t),t[0]},e.on("snap.util.getattr",function(){var t=e.nt();t=t.substring(t.lastIndexOf(".")+1);var n=t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});return nt[A](n)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(n):r(this.node,t)});var nt={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};e.on("snap.util.attr",function(t){var n=e.nt(),i={};n=n.substring(n.lastIndexOf(".")+1),i[n]=t;var o=n.replace(/-(\w)/gi,function(t,e){return e.toUpperCase()}),a=n.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});nt[A](a)?this.node.style[o]=null==t?P:t:r(this.node,i)}),function(t){}(_.prototype),n.ajax=function(t,n,r,o){var a=new XMLHttpRequest,s=U();if(a){if(i(n,"function"))o=r,r=n,n=null;else if(i(n,"object")){var u=[];for(var c in n)n.hasOwnProperty(c)&&u.push(encodeURIComponent(c)+"="+encodeURIComponent(n[c]));n=u.join("&")}return a.open(n?"POST":"GET",t,!0),n&&(a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.setRequestHeader("Content-type","application/x-www-form-urlencoded")),r&&(e.once("snap.ajax."+s+".0",r),e.once("snap.ajax."+s+".200",r),e.once("snap.ajax."+s+".304",r)),a.onreadystatechange=function(){4==a.readyState&&e("snap.ajax."+s+"."+a.status,o,a)},4==a.readyState?a:(a.send(n),a)}},n.load=function(t,e,r){n.ajax(t,function(t){var i=n.parse(t.responseText);r?e.call(r,i):e(i)})};var rt=function(t){var e=t.getBoundingClientRect(),n=t.ownerDocument,r=n.body,i=n.documentElement,o=i.clientTop||r.clientTop||0,a=i.clientLeft||r.clientLeft||0,s=e.top+(g.win.pageYOffset||i.scrollTop||r.scrollTop)-o,u=e.left+(g.win.pageXOffset||i.scrollLeft||r.scrollLeft)-a;return{y:s,x:u}};return n.getElementByPoint=function(t,e){var n=this,r=(n.canvas,T.doc.elementFromPoint(t,e));if(T.win.opera&&"svg"==r.tagName){var i=rt(r),o=r.createSVGRect();o.x=t-i.x,o.y=e-i.y,o.width=o.height=1;var a=r.getIntersectionList(o,null);a.length&&(r=a[a.length-1])}return r?C(r):null},n.plugin=function(t){t(n,b,_,T,x)},T.win.Snap=n,n}(t||this);return r.plugin(function(r,i,o,a,s){function u(t,e){if(null==e){var n=!0;if(e="linearGradient"==t.type||"radialGradient"==t.type?t.node.getAttribute("gradientTransform"):"pattern"==t.type?t.node.getAttribute("patternTransform"):t.node.getAttribute("transform"),!e)return new r.Matrix;e=r._.svgTransform2string(e)}else e=r._.rgTransform.test(e)?p(e).replace(/\.{3}|\u2026/g,t._.transform||E):r._.svgTransform2string(e),d(e,"array")&&(e=r.path?r.path.toString.call(e):p(e)),t._.transform=e;var i=r._.transform2matrix(e,t.getBBox(1));return n?i:void(t.matrix=i)}function c(t){function e(t,e){var n=g(t.node,e);n=n&&n.match(o),n=n&&n[2],n&&"#"==n.charAt()&&(n=n.substring(1),n&&(s[n]=(s[n]||[]).concat(function(n){var r={};r[e]=URL(n),g(t.node,r)})))}function n(t){var e=g(t.node,"xlink:href");e&&"#"==e.charAt()&&(e=e.substring(1),e&&(s[e]=(s[e]||[]).concat(function(e){t.attr("xlink:href","#"+e)})))}for(var r,i=t.selectAll("*"),o=/^\s*url\(("|'|)(.*)\1\)\s*$/,a=[],s={},u=0,c=i.length;u<c;u++){r=i[u],e(r,"fill"),e(r,"stroke"),e(r,"filter"),e(r,"mask"),e(r,"clip-path"),n(r);var l=g(r.node,"id");l&&(g(r.node,{id:r.id}),a.push({old:l,id:r.id}))}for(u=0,c=a.length;u<c;u++){var f=s[a[u].old];if(f)for(var h=0,d=f.length;h<d;h++)f[h](a[u].id)}}function l(t,e,n){return function(r){var i=r.slice(t,e);return 1==i.length&&(i=i[0]),n?n(i):i}}function f(t){return function(){var e=t?"<"+this.type:"",n=this.node.attributes,r=this.node.childNodes;if(t)for(var i=0,o=n.length;i<o;i++)e+=" "+n[i].name+'="'+n[i].value.replace(/"/g,'\\"')+'"';if(r.length){for(t&&(e+=">"),i=0,o=r.length;i<o;i++)3==r[i].nodeType?e+=r[i].nodeValue:1==r[i].nodeType&&(e+=x(r[i]).toString());t&&(e+="</"+this.type+">")}else t&&(e+="/>");return e}}var h=i.prototype,d=r.is,p=String,v=r._unit2px,g=r._.$,m=r._.make,y=r._.getSomeDefs,b="hasOwnProperty",x=r._.wrap;h.getBBox=function(t){if(!r.Matrix||!r.path)return this.node.getBBox();var e=this,n=new r.Matrix;if(e.removed)return r._.box();for(;"use"==e.type;)if(t||(n=n.add(e.transform().localMatrix.translate(e.attr("x")||0,e.attr("y")||0))),e.original)e=e.original;else{var i=e.attr("xlink:href");e=e.original=e.node.ownerDocument.getElementById(i.substring(i.indexOf("#")+1))}var o=e._,a=r.path.get[e.type]||r.path.get.deflt;try{return t?(o.bboxwt=a?r.path.getBBox(e.realPath=a(e)):r._.box(e.node.getBBox()),r._.box(o.bboxwt)):(e.realPath=a(e),e.matrix=e.transform().localMatrix,o.bbox=r.path.getBBox(r.path.map(e.realPath,n.add(e.matrix))),r._.box(o.bbox))}catch(s){return r._.box()}};var w=function(){return this.string};h.transform=function(t){var e=this._;if(null==t){for(var n,i=this,o=new r.Matrix(this.node.getCTM()),a=u(this),s=[a],c=new r.Matrix,l=a.toTransformString(),f=p(a)==p(this.matrix)?p(e.transform):l;"svg"!=i.type&&(i=i.parent());)s.push(u(i));for(n=s.length;n--;)c.add(s[n]);return{string:f,globalMatrix:o,totalMatrix:c,localMatrix:a,diffMatrix:o.clone().add(a.invert()),global:o.toTransformString(),total:c.toTransformString(),local:l,toString:w}}return t instanceof r.Matrix?(this.matrix=t,this._.transform=t.toTransformString()):u(this,t),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?g(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?g(this.node,{patternTransform:this.matrix}):g(this.node,{transform:this.matrix})),this},h.parent=function(){return x(this.node.parentNode)},h.append=h.add=function(t){if(t){if("set"==t.type){var e=this;return t.forEach(function(t){e.add(t)}),this}t=x(t),this.node.appendChild(t.node),t.paper=this.paper}return this},h.appendTo=function(t){return t&&(t=x(t),t.append(this)),this},h.prepend=function(t){if(t){if("set"==t.type){var e,n=this;return t.forEach(function(t){e?e.after(t):n.prepend(t),e=t}),this}t=x(t);var r=t.parent();this.node.insertBefore(t.node,this.node.firstChild),this.add&&this.add(),t.paper=this.paper,this.parent()&&this.parent().add(),r&&r.add()}return this},h.prependTo=function(t){return t=x(t),t.prepend(this),this},h.before=function(t){if("set"==t.type){var e=this;return t.forEach(function(t){var n=t.parent();e.node.parentNode.insertBefore(t.node,e.node),n&&n.add()}),this.parent().add(),this}t=x(t);var n=t.parent();return this.node.parentNode.insertBefore(t.node,this.node),this.parent()&&this.parent().add(),n&&n.add(),t.paper=this.paper,this},h.after=function(t){t=x(t);var e=t.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(t.node,this.node.nextSibling):this.node.parentNode.appendChild(t.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},h.insertBefore=function(t){t=x(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},h.insertAfter=function(t){t=x(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node.nextSibling),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},h.remove=function(){var t=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,t&&t.add(),this},h.select=function(t){return t=p(t).replace(/([^\\]):/g,"$1\\:"),x(this.node.querySelector(t))},h.selectAll=function(t){for(var e=this.node.querySelectorAll(t),n=(r.set||Array)(),i=0;i<e.length;i++)n.push(x(e[i]));return n},h.asPX=function(t,e){return null==e&&(e=this.attr(t)),+v(this,t,e)},h.use=function(){var t,e=this.node.id;return e||(e=this.id,g(this.node,{id:e})),t="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?m(this.type,this.node.parentNode):m("use",this.node.parentNode),g(t.node,{"xlink:href":"#"+e}),t.original=this,t},h.clone=function(){var t=x(this.node.cloneNode(!0));return g(t.node,"id")&&g(t.node,{id:t.id}),c(t),t.insertAfter(this),t},h.toDefs=function(){var t=y(this);return t.appendChild(this.node),this},h.pattern=h.toPattern=function(t,e,n,r){var i=m("pattern",y(this));return null==t&&(t=this.getBBox()),d(t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,t=t.x),g(i.node,{x:t,y:e,width:n,height:r,patternUnits:"userSpaceOnUse",id:i.id,viewBox:[t,e,n,r].join(" ")}),i.node.appendChild(this.node),i},h.marker=function(t,e,n,r,i,o){var a=m("marker",y(this));return null==t&&(t=this.getBBox()),d(t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,i=t.refX||t.cx,o=t.refY||t.cy,t=t.x),g(a.node,{viewBox:[t,e,n,r].join(" "),markerWidth:n,markerHeight:r,orient:"auto",refX:i||0,refY:o||0,id:a.id}),a.node.appendChild(this.node),a};var _=function(t,e,r,i){"function"!=typeof r||r.length||(i=r,r=n.linear),this.attr=t,this.dur=e,r&&(this.easing=r),i&&(this.callback=i)};r._.Animation=_,r.animation=function(t,e,n,r){return new _(t,e,n,r)},h.inAnim=function(){
+var t=this,e=[];for(var n in t.anims)t.anims[b](n)&&!function(t){e.push({anim:new _(t._attrs,t.dur,t.easing,t._callback),mina:t,curStatus:t.status(),status:function(e){return t.status(e)},stop:function(){t.stop()}})}(t.anims[n]);return e},r.animate=function(t,r,i,o,a,s){"function"!=typeof a||a.length||(s=a,a=n.linear);var u=n.time(),c=n(t,r,u,u+o,n.time,i,a);return s&&e.once("mina.finish."+c.id,s),c},h.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;e<n;e++)t[e].stop();return this},h.animate=function(t,r,i,o){"function"!=typeof i||i.length||(o=i,i=n.linear),t instanceof _&&(o=t.callback,i=t.easing,r=i.dur,t=t.attr);var a,s,u,c,f=[],h=[],v={},g=this;for(var m in t)if(t[b](m)){g.equal?(c=g.equal(m,p(t[m])),a=c.from,s=c.to,u=c.f):(a=+g.attr(m),s=+t[m]);var y=d(a,"array")?a.length:1;v[m]=l(f.length,f.length+y,u),f=f.concat(a),h=h.concat(s)}var x=n.time(),w=n(f,h,x,x+r,n.time,function(t){var e={};for(var n in v)v[b](n)&&(e[n]=v[n](t));g.attr(e)},i);return g.anims[w.id]=w,w._attrs=t,w._callback=o,e("snap.animcreated."+g.id,w),e.once("mina.finish."+w.id,function(){delete g.anims[w.id],o&&o.call(g)}),e.once("mina.stop."+w.id,function(){delete g.anims[w.id]}),g};var C={};h.data=function(t,n){var i=C[this.id]=C[this.id]||{};if(0==arguments.length)return e("snap.data.get."+this.id,this,i,null),i;if(1==arguments.length){if(r.is(t,"object")){for(var o in t)t[b](o)&&this.data(o,t[o]);return this}return e("snap.data.get."+this.id,this,i[t],t),i[t]}return i[t]=n,e("snap.data.set."+this.id,this,n,t),this},h.removeData=function(t){return null==t?C[this.id]={}:C[this.id]&&delete C[this.id][t],this},h.outerSVG=h.toString=f(1),h.innerSVG=f(),h.toDataURL=function(){if(t&&t.btoa){var e=this.getBBox(),n=r.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>',{x:+e.x.toFixed(3),y:+e.y.toFixed(3),width:+e.width.toFixed(3),height:+e.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n)))}},s.prototype.select=h.select,s.prototype.selectAll=h.selectAll}),r.plugin(function(t,e,n,r,i){function o(t,e,n,r,i,o){return null==e&&"[object SVGMatrix]"==a.call(t)?(this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f)):void(null!=t?(this.a=+t,this.b=+e,this.c=+n,this.d=+r,this.e=+i,this.f=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}var a=Object.prototype.toString,s=String,u=Math,c="";!function(e){function n(t){return t[0]*t[0]+t[1]*t[1]}function r(t){var e=u.sqrt(n(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}e.add=function(t,e,n,r,i,a){var s,u,c,l,f=[[],[],[]],h=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],d=[[t,n,i],[e,r,a],[0,0,1]];for(t&&t instanceof o&&(d=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),s=0;s<3;s++)for(u=0;u<3;u++){for(l=0,c=0;c<3;c++)l+=h[s][c]*d[c][u];f[s][u]=l}return this.a=f[0][0],this.b=f[1][0],this.c=f[0][1],this.d=f[1][1],this.e=f[0][2],this.f=f[1][2],this},e.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new o(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},e.clone=function(){return new o(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(t,e){return this.add(1,0,0,1,t,e)},e.scale=function(t,e,n,r){return null==e&&(e=t),(n||r)&&this.add(1,0,0,1,n,r),this.add(t,0,0,e,0,0),(n||r)&&this.add(1,0,0,1,-n,-r),this},e.rotate=function(e,n,r){e=t.rad(e),n=n||0,r=r||0;var i=+u.cos(e).toFixed(9),o=+u.sin(e).toFixed(9);return this.add(i,o,-o,i,n,r),this.add(1,0,0,1,-n,-r)},e.x=function(t,e){return t*this.a+e*this.c+this.e},e.y=function(t,e){return t*this.b+e*this.d+this.f},e.get=function(t){return+this[s.fromCharCode(97+t)].toFixed(4)},e.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.determinant=function(){return this.a*this.d-this.b*this.c},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var i=[[this.a,this.c],[this.b,this.d]];e.scalex=u.sqrt(n(i[0])),r(i[0]),e.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1],i[1]=[i[1][0]-i[0][0]*e.shear,i[1][1]-i[0][1]*e.shear],e.scaley=u.sqrt(n(i[1])),r(i[1]),e.shear/=e.scaley,this.determinant()<0&&(e.scalex=-e.scalex);var o=-i[0][1],a=i[1][1];return a<0?(e.rotate=t.deg(u.acos(a)),o<0&&(e.rotate=360-e.rotate)):e.rotate=t.deg(u.asin(o)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(t){var e=t||this.split();return+e.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[+e.dx.toFixed(4),+e.dy.toFixed(4)]:c)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:c)+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:c))}}(o.prototype),t.Matrix=o,t.matrix=function(t,e,n,r,i,a){return new o(t,e,n,r,i,a)}}),r.plugin(function(t,n,r,i,o){function a(r){return function(i){if(e.stop(),i instanceof o&&1==i.node.childNodes.length&&("radialGradient"==i.node.firstChild.tagName||"linearGradient"==i.node.firstChild.tagName||"pattern"==i.node.firstChild.tagName)&&(i=i.node.firstChild,d(this).appendChild(i),i=f(i)),i instanceof n)if("radialGradient"==i.type||"linearGradient"==i.type||"pattern"==i.type){i.node.id||v(i.node,{id:i.id});var a=g(i.node.id)}else a=i.attr(r);else if(a=t.color(i),a.error){var s=t(d(this).ownerSVGElement).gradient(i);s?(s.node.id||v(s.node,{id:s.id}),a=g(s.node.id)):a=i}else a=m(a);var u={};u[r]=a,v(this.node,u),this.node.style[r]=b}}function s(t){e.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function u(t){for(var e=[],n=t.childNodes,r=0,i=n.length;r<i;r++){var o=n[r];3==o.nodeType&&e.push(o.nodeValue),"tspan"==o.tagName&&(1==o.childNodes.length&&3==o.firstChild.nodeType?e.push(o.firstChild.nodeValue):e.push(u(o)))}return e}function c(){return e.stop(),this.node.style.fontSize}var l=t._.make,f=t._.wrap,h=t.is,d=t._.getSomeDefs,p=/^url\(#?([^)]+)\)$/,v=t._.$,g=t.url,m=String,y=t._.separator,b="";e.on("snap.util.attr.mask",function(t){if(t instanceof n||t instanceof o){if(e.stop(),t instanceof o&&1==t.node.childNodes.length&&(t=t.node.firstChild,d(this).appendChild(t),t=f(t)),"mask"==t.type)var r=t;else r=l("mask",d(this)),r.node.appendChild(t.node);!r.node.id&&v(r.node,{id:r.id}),v(this.node,{mask:g(r.id)})}}),function(t){e.on("snap.util.attr.clip",t),e.on("snap.util.attr.clip-path",t),e.on("snap.util.attr.clipPath",t)}(function(t){if(t instanceof n||t instanceof o){if(e.stop(),"clipPath"==t.type)var r=t;else r=l("clipPath",d(this)),r.node.appendChild(t.node),!r.node.id&&v(r.node,{id:r.id});v(this.node,{"clip-path":g(r.node.id||r.id)})}}),e.on("snap.util.attr.fill",a("fill")),e.on("snap.util.attr.stroke",a("stroke"));var x=/^([lr])(?:\(([^)]*)\))?(.*)$/i;e.on("snap.util.grad.parse",function(t){t=m(t);var e=t.match(x);if(!e)return null;var n=e[1],r=e[2],i=e[3];return r=r.split(/\s*,\s*/).map(function(t){return+t==t?+t:t}),1==r.length&&0==r[0]&&(r=[]),i=i.split("-"),i=i.map(function(t){t=t.split(":");var e={color:t[0]};return t[1]&&(e.offset=parseFloat(t[1])),e}),{type:n,params:r,stops:i}}),e.on("snap.util.attr.d",function(n){e.stop(),h(n,"array")&&h(n[0],"array")&&(n=t.path.toString.call(n)),n=m(n),n.match(/[ruo]/i)&&(n=t.path.toAbsolute(n)),v(this.node,{d:n})})(-1),e.on("snap.util.attr.#text",function(t){e.stop(),t=m(t);for(var n=i.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(n)})(-1),e.on("snap.util.attr.path",function(t){e.stop(),this.attr({d:t})})(-1),e.on("snap.util.attr.class",function(t){e.stop(),this.node.className.baseVal=t})(-1),e.on("snap.util.attr.viewBox",function(t){var n;n=h(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):h(t,"array")?t.join(" "):t,v(this.node,{viewBox:n}),e.stop()})(-1),e.on("snap.util.attr.transform",function(t){this.transform(t),e.stop()})(-1),e.on("snap.util.attr.r",function(t){"rect"==this.type&&(e.stop(),v(this.node,{rx:t,ry:t}))})(-1),e.on("snap.util.attr.textpath",function(t){if(e.stop(),"text"==this.type){var r,i,o;if(!t&&this.textPath){for(i=this.textPath;i.node.firstChild;)this.node.appendChild(i.node.firstChild);return i.remove(),void delete this.textPath}if(h(t,"string")){var a=d(this),s=f(a.parentNode).path(t);a.appendChild(s.node),r=s.id,s.attr({id:r})}else t=f(t),t instanceof n&&(r=t.attr("id"),r||(r=t.id,t.attr({id:r})));if(r)if(i=this.textPath,o=this.node,i)i.attr({"xlink:href":"#"+r});else{for(i=v("textPath",{"xlink:href":"#"+r});o.firstChild;)i.appendChild(o.firstChild);o.appendChild(i),this.textPath=f(i)}}})(-1),e.on("snap.util.attr.text",function(t){if("text"==this.type){for(var n=this.node,r=function a(t){var e=v("tspan");if(h(t,"array"))for(var n=0;n<t.length;n++)e.appendChild(a(t[n]));else e.appendChild(i.doc.createTextNode(t));return e.normalize&&e.normalize(),e};n.firstChild;)n.removeChild(n.firstChild);for(var o=r(t);o.firstChild;)n.appendChild(o.firstChild)}e.stop()})(-1),e.on("snap.util.attr.fontSize",s)(-1),e.on("snap.util.attr.font-size",s)(-1),e.on("snap.util.getattr.transform",function(){return e.stop(),this.transform()})(-1),e.on("snap.util.getattr.textpath",function(){return e.stop(),this.textPath})(-1),function(){function n(n){return function(){e.stop();var r=i.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+n);return"none"==r?r:t(i.doc.getElementById(r.match(p)[1]))}}function r(t){return function(n){e.stop();var r="marker"+t.charAt(0).toUpperCase()+t.substring(1);if(""==n||!n)return void(this.node.style[r]="none");if("marker"==n.type){var i=n.node.id;return i||v(n.node,{id:n.id}),void(this.node.style[r]=g(i))}}}e.on("snap.util.getattr.marker-end",n("end"))(-1),e.on("snap.util.getattr.markerEnd",n("end"))(-1),e.on("snap.util.getattr.marker-start",n("start"))(-1),e.on("snap.util.getattr.markerStart",n("start"))(-1),e.on("snap.util.getattr.marker-mid",n("mid"))(-1),e.on("snap.util.getattr.markerMid",n("mid"))(-1),e.on("snap.util.attr.marker-end",r("end"))(-1),e.on("snap.util.attr.markerEnd",r("end"))(-1),e.on("snap.util.attr.marker-start",r("start"))(-1),e.on("snap.util.attr.markerStart",r("start"))(-1),e.on("snap.util.attr.marker-mid",r("mid"))(-1),e.on("snap.util.attr.markerMid",r("mid"))(-1)}(),e.on("snap.util.getattr.r",function(){if("rect"==this.type&&v(this.node,"rx")==v(this.node,"ry"))return e.stop(),v(this.node,"rx")})(-1),e.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){e.stop();var t=u(this.node);return 1==t.length?t[0]:t}})(-1),e.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),e.on("snap.util.getattr.viewBox",function(){e.stop();var n=v(this.node,"viewBox");return n?(n=n.split(y),t._.box(+n[0],+n[1],+n[2],+n[3])):void 0})(-1),e.on("snap.util.getattr.points",function(){var t=v(this.node,"points");return e.stop(),t?t.split(y):void 0})(-1),e.on("snap.util.getattr.path",function(){var t=v(this.node,"d");return e.stop(),t})(-1),e.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1),e.on("snap.util.getattr.fontSize",c)(-1),e.on("snap.util.getattr.font-size",c)(-1)}),r.plugin(function(t,e,n,r,i){var o=/\S+/g,a=String,s=e.prototype;s.addClass=function(t){var e,n,r,i,s=a(t||"").match(o)||[],u=this.node,c=u.className.baseVal,l=c.match(o)||[];if(s.length){for(e=0;r=s[e++];)n=l.indexOf(r),~n||l.push(r);i=l.join(" "),c!=i&&(u.className.baseVal=i)}return this},s.removeClass=function(t){var e,n,r,i,s=a(t||"").match(o)||[],u=this.node,c=u.className.baseVal,l=c.match(o)||[];if(l.length){for(e=0;r=s[e++];)n=l.indexOf(r),~n&&l.splice(n,1);i=l.join(" "),c!=i&&(u.className.baseVal=i)}return this},s.hasClass=function(t){var e=this.node,n=e.className.baseVal,r=n.match(o)||[];return!!~r.indexOf(t)},s.toggleClass=function(t,e){if(null!=e)return e?this.addClass(t):this.removeClass(t);var n,r,i,a,s=(t||"").match(o)||[],u=this.node,c=u.className.baseVal,l=c.match(o)||[];for(n=0;i=s[n++];)r=l.indexOf(i),~r?l.splice(r,1):l.push(i);return a=l.join(" "),c!=a&&(u.className.baseVal=a),this}}),r.plugin(function(t,n,r,i,o){function a(t){return t}function s(t){return function(e){return+e.toFixed(3)+t}}var u={"+":function(t,e){return t+e},"-":function(t,e){return t-e},"/":function(t,e){return t/e},"*":function(t,e){return t*e}},c=String,l=/[a-z]+$/i,f=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;e.on("snap.util.attr",function(t){var n=c(t).match(f);if(n){var r=e.nt(),i=r.substring(r.lastIndexOf(".")+1),o=this.attr(i),a={};e.stop();var s=n[3]||"",h=o.match(l),d=u[n[1]];if(h&&h==s?t=d(parseFloat(o),+n[2]):(o=this.asPX(i),t=d(this.asPX(i),this.asPX(i,n[2]+s))),isNaN(o)||isNaN(t))return;a[i]=t,this.attr(a)}})(-10),e.on("snap.util.equal",function(t,n){var r=c(this.attr(t)||""),i=c(n).match(f);if(i){e.stop();var o=i[3]||"",h=r.match(l),d=u[i[1]];return h&&h==o?{from:parseFloat(r),to:d(parseFloat(r),+i[2]),f:s(h)}:(r=this.asPX(t),{from:r,to:d(r,this.asPX(t,i[2]+o)),f:a})}})(-10)}),r.plugin(function(n,r,i,o,a){var s=i.prototype,u=n.is;s.rect=function(t,e,n,r,i,o){var a;return null==o&&(o=i),u(t,"object")&&"[object Object]"==t?a=t:null!=t&&(a={x:t,y:e,width:n,height:r},null!=i&&(a.rx=i,a.ry=o)),this.el("rect",a)},s.circle=function(t,e,n){var r;return u(t,"object")&&"[object Object]"==t?r=t:null!=t&&(r={cx:t,cy:e,r:n}),this.el("circle",r)};var c=function(){function t(){this.parentNode.removeChild(this)}return function(e,n){var r=o.doc.createElement("img"),i=o.doc.body;r.style.cssText="position:absolute;left:-9999em;top:-9999em",r.onload=function(){n.call(r),r.onload=r.onerror=null,i.removeChild(r)},r.onerror=t,i.appendChild(r),r.src=e}}();s.image=function(t,e,r,i,o){var a=this.el("image");if(u(t,"object")&&"src"in t)a.attr(t);else if(null!=t){var s={"xlink:href":t,preserveAspectRatio:"none"};null!=e&&null!=r&&(s.x=e,s.y=r),null!=i&&null!=o?(s.width=i,s.height=o):c(t,function(){n._.$(a.node,{width:this.offsetWidth,height:this.offsetHeight})}),n._.$(a.node,s)}return a},s.ellipse=function(t,e,n,r){var i;return u(t,"object")&&"[object Object]"==t?i=t:null!=t&&(i={cx:t,cy:e,rx:n,ry:r}),this.el("ellipse",i)},s.path=function(t){var e;return u(t,"object")&&!u(t,"array")?e=t:t&&(e={d:t}),this.el("path",e)},s.group=s.g=function(t){var e=this.el("g");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},s.svg=function(t,e,n,r,i,o,a,s){var c={};return u(t,"object")&&null==e?c=t:(null!=t&&(c.x=t),null!=e&&(c.y=e),null!=n&&(c.width=n),null!=r&&(c.height=r),null!=i&&null!=o&&null!=a&&null!=s&&(c.viewBox=[i,o,a,s])),this.el("svg",c)},s.mask=function(t){var e=this.el("mask");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},s.ptrn=function(t,e,n,r,i,o,a,s){if(u(t,"object"))var c=t;else c={patternUnits:"userSpaceOnUse"},t&&(c.x=t),e&&(c.y=e),null!=n&&(c.width=n),null!=r&&(c.height=r),null!=i&&null!=o&&null!=a&&null!=s?c.viewBox=[i,o,a,s]:c.viewBox=[t||0,e||0,n||0,r||0];return this.el("pattern",c)},s.use=function(t){return null!=t?(t instanceof r&&(t.attr("id")||t.attr({id:n._.id(t)}),t=t.attr("id")),"#"==String(t).charAt()&&(t=t.substring(1)),this.el("use",{"xlink:href":"#"+t})):r.prototype.use.call(this)},s.symbol=function(t,e,n,r){var i={};return null!=t&&null!=e&&null!=n&&null!=r&&(i.viewBox=[t,e,n,r]),this.el("symbol",i)},s.text=function(t,e,n){var r={};return u(t,"object")?r=t:null!=t&&(r={x:t,y:e,text:n||""}),this.el("text",r)},s.line=function(t,e,n,r){var i={};return u(t,"object")?i=t:null!=t&&(i={x1:t,x2:n,y1:e,y2:r}),this.el("line",i)},s.polyline=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return u(t,"object")&&!u(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},s.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return u(t,"object")&&!u(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){function r(){return this.selectAll("stop")}function i(t,e){var r=l("stop"),i={offset:+e+"%"};return t=n.color(t),i["stop-color"]=t.hex,t.opacity<1&&(i["stop-opacity"]=t.opacity),l(r,i),this.node.appendChild(r),this}function o(){if("linearGradient"==this.type){var t=l(this.node,"x1")||0,e=l(this.node,"x2")||1,r=l(this.node,"y1")||0,i=l(this.node,"y2")||0;return n._.box(t,r,math.abs(e-t),math.abs(i-r))}var o=this.node.cx||.5,a=this.node.cy||.5,s=this.node.r||0;return n._.box(o-s,a-s,2*s,2*s)}function a(t,n){function r(t,e){for(var n=(e-f)/(t-h),r=h;r<t;r++)a[r].offset=+(+f+n*(r-h)).toFixed(2);h=t,f=e}var i,o=e("snap.util.grad.parse",null,n).firstDefined();if(!o)return null;o.params.unshift(t),i="l"==o.type.toLowerCase()?u.apply(0,o.params):c.apply(0,o.params),o.type!=o.type.toLowerCase()&&l(i.node,{gradientUnits:"userSpaceOnUse"});var a=o.stops,s=a.length,f=0,h=0;s--;for(var d=0;d<s;d++)"offset"in a[d]&&r(d,a[d].offset);for(a[s].offset=a[s].offset||100,r(s,a[s].offset),d=0;d<=s;d++){var p=a[d];i.addStop(p.color,p.offset)}return i}function u(t,e,a,s,u){var c=n._.make("linearGradient",t);return c.stops=r,c.addStop=i,c.getBBox=o,null!=e&&l(c.node,{x1:e,y1:a,x2:s,y2:u}),c}function c(t,e,a,s,u,c){var f=n._.make("radialGradient",t);return f.stops=r,f.addStop=i,f.getBBox=o,null!=e&&l(f.node,{cx:e,cy:a,r:s}),null!=u&&null!=c&&l(f.node,{fx:u,fy:c}),f}var l=n._.$;s.gradient=function(t){return a(this.defs,t)},s.gradientLinear=function(t,e,n,r){return u(this.defs,t,e,n,r)},s.gradientRadial=function(t,e,n,r,i){return c(this.defs,t,e,n,r,i)},s.toString=function(){var t,e=this.node.ownerDocument,r=e.createDocumentFragment(),i=e.createElement("div"),o=this.node.cloneNode(!0);return r.appendChild(i),i.appendChild(o),n._.$(o,{xmlns:"http://www.w3.org/2000/svg"}),t=i.innerHTML,r.removeChild(r.firstChild),t},s.toDataURL=function(){if(t&&t.btoa)return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this)))},s.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName?e.parentNode.removeChild(e):s.clear.call({node:e}),e=t}}()}),r.plugin(function(t,e,n,r){function i(t){var e=i.ps=i.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[L](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]}function o(t,e,n,r){return null==t&&(t=e=n=r=0),null==e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:H.min(n,r)/2,r2:H.max(n,r)/2,r0:H.sqrt(n*n+r*r)/2,path:k(t,e,n,r),vb:[t,e,n,r].join(" ")}}function a(){return this.join(",").replace(R,"$1")}function s(t){var e=B(t);return e.toString=a,e}function u(t,e,n,r,i,o,a,s,u){return null==u?v(t,e,n,r,i,o,a,s):l(t,e,n,r,i,o,a,s,g(t,e,n,r,i,o,a,s,u))}function c(n,r){function i(t){return+(+t).toFixed(3)}return t._.cacher(function(t,o,a){t instanceof e&&(t=t.attr("d")),t=N(t);for(var s,c,f,h,d,p="",v={},g=0,m=0,y=t.length;m<y;m++){if(f=t[m],"M"==f[0])s=+f[1],c=+f[2];else{if(h=u(s,c,f[1],f[2],f[3],f[4],f[5],f[6]),g+h>o){if(r&&!v.start){if(d=u(s,c,f[1],f[2],f[3],f[4],f[5],f[6],o-g),p+=["C"+i(d.start.x),i(d.start.y),i(d.m.x),i(d.m.y),i(d.x),i(d.y)],a)return p;v.start=p,p=["M"+i(d.x),i(d.y)+"C"+i(d.n.x),i(d.n.y),i(d.end.x),i(d.end.y),i(f[5]),i(f[6])].join(),g+=h,s=+f[5],c=+f[6];continue}if(!n&&!r)return d=u(s,c,f[1],f[2],f[3],f[4],f[5],f[6],o-g)}g+=h,s=+f[5],c=+f[6]}p+=f.shift()+f}return v.end=p,d=n?g:r?v:l(s,c,f[0],f[1],f[2],f[3],f[4],f[5],1)},null,t._.clone)}function l(t,e,n,r,i,o,a,s,u){var c=1-u,l=U(c,3),f=U(c,2),h=u*u,d=h*u,p=l*t+3*f*u*n+3*c*u*u*i+d*a,v=l*e+3*f*u*r+3*c*u*u*o+d*s,g=t+2*u*(n-t)+h*(i-2*n+t),m=e+2*u*(r-e)+h*(o-2*r+e),y=n+2*u*(i-n)+h*(a-2*i+n),b=r+2*u*(o-r)+h*(s-2*o+r),x=c*t+u*n,w=c*e+u*r,_=c*i+u*a,C=c*o+u*s,k=90-180*H.atan2(g-y,m-b)/q;return{x:p,y:v,m:{x:g,y:m},n:{x:y,y:b},start:{x:x,y:w},end:{x:_,y:C},alpha:k}}function f(e,n,r,i,a,s,u,c){t.is(e,"array")||(e=[e,n,r,i,a,s,u,c]);var l=O.apply(null,e);return o(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)}function h(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function d(t,e){return t=o(t),e=o(e),h(e,t.x,t.y)||h(e,t.x2,t.y)||h(e,t.x,t.y2)||h(e,t.x2,t.y2)||h(t,e.x,e.y)||h(t,e.x2,e.y)||h(t,e.x,e.y2)||h(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function p(t,e,n,r,i){var o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n}function v(t,e,n,r,i,o,a,s,u){null==u&&(u=1),u=u>1?1:u<0?0:u;for(var c=u/2,l=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,v=0;v<l;v++){var g=c*f[v]+c,m=p(g,t,n,i,a),y=p(g,e,r,o,s),b=m*m+y*y;d+=h[v]*H.sqrt(b)}return c*d}function g(t,e,n,r,i,o,a,s,u){if(!(u<0||v(t,e,n,r,i,o,a,s)<u)){var c,l=1,f=l/2,h=l-f,d=.01;for(c=v(t,e,n,r,i,o,a,s,h);W(c-u)>d;)f/=2,h+=(c<u?1:-1)*f,c=v(t,e,n,r,i,o,a,s,h);return h}}function m(t,e,n,r,i,o,a,s){if(!(V(t,n)<z(i,a)||z(t,n)>V(i,a)||V(e,r)<z(o,s)||z(e,r)>V(o,s))){var u=(t*r-e*n)*(i-a)-(t-n)*(i*s-o*a),c=(t*r-e*n)*(o-s)-(e-r)*(i*s-o*a),l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var f=u/l,h=c/l,d=+f.toFixed(2),p=+h.toFixed(2);if(!(d<+z(t,n).toFixed(2)||d>+V(t,n).toFixed(2)||d<+z(i,a).toFixed(2)||d>+V(i,a).toFixed(2)||p<+z(e,r).toFixed(2)||p>+V(e,r).toFixed(2)||p<+z(o,s).toFixed(2)||p>+V(o,s).toFixed(2)))return{x:f,y:h}}}}function y(t,e,n){var r=f(t),i=f(e);if(!d(r,i))return n?0:[];for(var o=v.apply(0,t),a=v.apply(0,e),s=~~(o/8),u=~~(a/8),c=[],h=[],p={},g=n?0:[],y=0;y<s+1;y++){var b=l.apply(0,t.concat(y/s));c.push({x:b.x,y:b.y,t:y/s})}for(y=0;y<u+1;y++)b=l.apply(0,e.concat(y/u)),h.push({x:b.x,y:b.y,t:y/u});for(y=0;y<s;y++)for(var x=0;x<u;x++){var w=c[y],_=c[y+1],C=h[x],k=h[x+1],T=W(_.x-w.x)<.001?"y":"x",A=W(k.x-C.x)<.001?"y":"x",S=m(w.x,w.y,_.x,_.y,C.x,C.y,k.x,k.y);if(S){if(p[S.x.toFixed(4)]==S.y.toFixed(4))continue;p[S.x.toFixed(4)]=S.y.toFixed(4);var $=w.t+W((S[T]-w[T])/(_[T]-w[T]))*(_.t-w.t),E=C.t+W((S[A]-C[A])/(k[A]-C[A]))*(k.t-C.t);$>=0&&$<=1&&E>=0&&E<=1&&(n?g++:g.push({x:S.x,y:S.y,t1:$,t2:E}))}}return g}function b(t,e){return w(t,e)}function x(t,e){return w(t,e,1)}function w(t,e,n){t=N(t),e=N(e);for(var r,i,o,a,s,u,c,l,f,h,d=n?0:[],p=0,v=t.length;p<v;p++){var g=t[p];if("M"==g[0])r=s=g[1],i=u=g[2];else{"C"==g[0]?(f=[r,i].concat(g.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,s,u,s,u],r=s,i=u);for(var m=0,b=e.length;m<b;m++){var x=e[m];if("M"==x[0])o=c=x[1],a=l=x[2];else{"C"==x[0]?(h=[o,a].concat(x.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,c,l,c,l],o=c,a=l);var w=y(f,h,n);if(n)d+=w;else{for(var _=0,C=w.length;_<C;_++)w[_].segment1=p,w[_].segment2=m,w[_].bez1=f,w[_].bez2=h;d=d.concat(w)}}}}}return d}function _(t,e,n){var r=C(t);return h(r,e,n)&&w(t,[["M",e,n],["H",r.x2+10]],1)%2==1}function C(t){var e=i(t);if(e.bbox)return B(e.bbox);if(!t)return o();t=N(t);for(var n,r=0,a=0,s=[],u=[],c=0,l=t.length;c<l;c++)if(n=t[c],"M"==n[0])r=n[1],a=n[2],s.push(r),u.push(a);else{var f=O(r,a,n[1],n[2],n[3],n[4],n[5],n[6]);s=s.concat(f.min.x,f.max.x),u=u.concat(f.min.y,f.max.y),r=n[5],a=n[6]}var h=z.apply(0,s),d=z.apply(0,u),p=V.apply(0,s),v=V.apply(0,u),g=o(h,d,p-h,v-d);return e.bbox=B(g),g}function k(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.toString=a,o}function T(t,e,n,r,i){if(null==i&&null==r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!=i)var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o),c=e+n*Math.sin(-r*o),l=e+n*Math.sin(-i*o),f=[["M",s,c],["A",n,n,0,+(i-r>180),0,u,l]];else f=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return f.toString=a,f}function A(e){var n=i(e),r=String.prototype.toLowerCase;if(n.rel)return s(n.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var o=[],u=0,c=0,l=0,f=0,h=0;"M"==e[0][0]&&(u=e[0][1],c=e[0][2],l=u,f=c,h++,o.push(["M",u,c]));for(var d=h,p=e.length;d<p;d++){var v=o[d]=[],g=e[d];if(g[0]!=r.call(g[0]))switch(v[0]=r.call(g[0]),v[0]){case"a":v[1]=g[1],v[2]=g[2],v[3]=g[3],v[4]=g[4],v[5]=g[5],v[6]=+(g[6]-u).toFixed(3),v[7]=+(g[7]-c).toFixed(3);break;case"v":v[1]=+(g[1]-c).toFixed(3);break;case"m":l=g[1],f=g[2];default:for(var m=1,y=g.length;m<y;m++)v[m]=+(g[m]-(m%2?u:c)).toFixed(3)}else{v=o[d]=[],"m"==g[0]&&(l=g[1]+u,f=g[2]+c);for(var b=0,x=g.length;b<x;b++)o[d][b]=g[b]}var w=o[d].length;switch(o[d][0]){case"z":u=l,c=f;break;case"h":u+=+o[d][w-1];break;case"v":c+=+o[d][w-1];break;default:u+=+o[d][w-2],c+=+o[d][w-1]}}return o.toString=a,n.rel=s(o),o}function S(e){var n=i(e);if(n.abs)return s(n.abs);if(F(e,"array")&&F(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var r,o=[],u=0,c=0,l=0,f=0,h=0;"M"==e[0][0]&&(u=+e[0][1],c=+e[0][2],l=u,f=c,h++,o[0]=["M",u,c]);for(var d,p,v=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),g=h,m=e.length;g<m;g++){if(o.push(d=[]),p=e[g],r=p[0],r!=r.toUpperCase())switch(d[0]=r.toUpperCase(),d[0]){case"A":d[1]=p[1],d[2]=p[2],d[3]=p[3],d[4]=p[4],d[5]=p[5],d[6]=+p[6]+u,d[7]=+p[7]+c;break;case"V":d[1]=+p[1]+c;break;case"H":d[1]=+p[1]+u;break;case"R":for(var y=[u,c].concat(p.slice(1)),b=2,x=y.length;b<x;b++)y[b]=+y[b]+u,y[++b]=+y[b]+c;o.pop(),o=o.concat(M(y,v));break;case"O":o.pop(),y=T(u,c,p[1],p[2]),y.push(y[0]),o=o.concat(y);break;case"U":o.pop(),o=o.concat(T(u,c,p[1],p[2],p[3])),d=["U"].concat(o[o.length-1].slice(-2));break;case"M":l=+p[1]+u,f=+p[2]+c;default:for(b=1,x=p.length;b<x;b++)d[b]=+p[b]+(b%2?u:c)}else if("R"==r)y=[u,c].concat(p.slice(1)),o.pop(),o=o.concat(M(y,v)),d=["R"].concat(p.slice(-2));else if("O"==r)o.pop(),y=T(u,c,p[1],p[2]),y.push(y[0]),o=o.concat(y);else if("U"==r)o.pop(),o=o.concat(T(u,c,p[1],p[2],p[3])),d=["U"].concat(o[o.length-1].slice(-2));else for(var w=0,_=p.length;w<_;w++)d[w]=p[w];if(r=r.toUpperCase(),"O"!=r)switch(d[0]){case"Z":u=+l,c=+f;break;case"H":u=d[1];break;case"V":c=d[1];break;case"M":l=d[d.length-2],f=d[d.length-1];default:u=d[d.length-2],c=d[d.length-1]}}return o.toString=a,n.abs=s(o),o}function $(t,e,n,r){return[t,e,n,r,n,r]}function E(t,e,n,r,i,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]}function j(e,n,r,i,o,a,s,u,c,l){var f,h=120*q/180,d=q/180*(+o||0),p=[],v=t._.cacher(function(t,e,n){var r=t*H.cos(n)-e*H.sin(n),i=t*H.sin(n)+e*H.cos(n);return{x:r,y:i}});if(l)k=l[0],T=l[1],_=l[2],C=l[3];else{f=v(e,n,-d),e=f.x,n=f.y,f=v(u,c,-d),u=f.x,c=f.y;var g=(H.cos(q/180*o),H.sin(q/180*o),(e-u)/2),m=(n-c)/2,y=g*g/(r*r)+m*m/(i*i);y>1&&(y=H.sqrt(y),r=y*r,i=y*i);var b=r*r,x=i*i,w=(a==s?-1:1)*H.sqrt(W((b*x-b*m*m-x*g*g)/(b*m*m+x*g*g))),_=w*r*m/i+(e+u)/2,C=w*-i*g/r+(n+c)/2,k=H.asin(((n-C)/i).toFixed(9)),T=H.asin(((c-C)/i).toFixed(9));k=e<_?q-k:k,T=u<_?q-T:T,k<0&&(k=2*q+k),T<0&&(T=2*q+T),s&&k>T&&(k-=2*q),!s&&T>k&&(T-=2*q)}var A=T-k;if(W(A)>h){var S=T,$=u,E=c;T=k+h*(s&&T>k?1:-1),u=_+r*H.cos(T),c=C+i*H.sin(T),p=j(u,c,r,i,o,0,s,$,E,[T,S,_,C])}A=T-k;var O=H.cos(k),N=H.sin(k),D=H.cos(T),M=H.sin(T),P=H.tan(A/4),F=4/3*r*P,B=4/3*i*P,L=[e,n],R=[e+F*N,n-B*O],I=[u+F*M,c-B*D],z=[u,c];if(R[0]=2*L[0]-R[0],R[1]=2*L[1]-R[1],l)return[R,I,z].concat(p);p=[R,I,z].concat(p).join().split(",");for(var V=[],U=0,X=p.length;U<X;U++)V[U]=U%2?v(p[U-1],p[U],d).y:v(p[U],p[U+1],d).x;return V}function O(t,e,n,r,i,o,a,s){for(var u,c,l,f,h,d,p,v,g=[],m=[[],[]],y=0;y<2;++y)if(0==y?(c=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,l=3*n-3*t):(c=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,l=3*r-3*e),W(u)<1e-12){if(W(c)<1e-12)continue;f=-l/c,0<f&&f<1&&g.push(f)}else p=c*c-4*l*u,v=H.sqrt(p),p<0||(h=(-c+v)/(2*u),0<h&&h<1&&g.push(h),d=(-c-v)/(2*u),0<d&&d<1&&g.push(d));for(var b,x=g.length,w=x;x--;)f=g[x],b=1-f,m[0][x]=b*b*b*t+3*b*b*f*n+3*b*f*f*i+f*f*f*a,m[1][x]=b*b*b*e+3*b*b*f*r+3*b*f*f*o+f*f*f*s;return m[0][w]=t,m[1][w]=e,m[0][w+1]=a,m[1][w+1]=s,m[0].length=m[1].length=w+2,{min:{x:z.apply(0,m[0]),y:z.apply(0,m[1])},max:{x:V.apply(0,m[0]),y:V.apply(0,m[1])}}}function N(t,e){var n=!e&&i(t);if(!e&&n.curve)return s(n.curve);for(var r=S(t),o=e&&S(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=(function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(j.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"==n||"S"==n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(E(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(E(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat($(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat($(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat($(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat($(e.x,e.y,e.X,e.Y))}return t}),l=function(t,e){if(t[e].length>7){t[e].shift();for(var n=t[e];n.length;)h[e]="A",o&&(d[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),m=V(r.length,o&&o.length||0)}},f=function(t,e,n,i,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",i.x,i.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2],m=V(r.length,o&&o.length||0))},h=[],d=[],p="",v="",g=0,m=V(r.length,o&&o.length||0);g<m;g++){r[g]&&(p=r[g][0]),"C"!=p&&(h[g]=p,g&&(v=h[g-1])),r[g]=c(r[g],a,v),"A"!=h[g]&&"C"==p&&(h[g]="C"),l(r,g),o&&(o[g]&&(p=o[g][0]),"C"!=p&&(d[g]=p,g&&(v=d[g-1])),o[g]=c(o[g],u,v),"A"!=d[g]&&"C"==p&&(d[g]="C"),l(o,g)),f(r,o,a,u,g),f(o,r,u,a,g);var y=r[g],b=o&&o[g],x=y.length,w=o&&b.length;a.x=y[x-2],a.y=y[x-1],a.bx=I(y[x-4])||a.x,a.by=I(y[x-3])||a.y,u.bx=o&&(I(b[w-4])||u.x),u.by=o&&(I(b[w-3])||u.y),u.x=o&&b[w-2],u.y=o&&b[w-1]}return o||(n.curve=s(r)),o?[r,o]:r}function D(t,e){if(!e)return t;var n,r,i,o,a,s,u;for(t=N(t),i=0,a=t.length;i<a;i++)for(u=t[i],o=1,s=u.length;o<s;o+=2)n=e.x(u[o],u[o+1]),r=e.y(u[o],u[o+1]),u[o]=n,u[o+1]=r;return t}function M(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4==r?o[3]={x:+t[0],y:+t[1]}:i-2==r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4==r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}var P=e.prototype,F=t.is,B=t._.clone,L="hasOwnProperty",R=/,?([a-z]),?/gi,I=parseFloat,H=Math,q=H.PI,z=H.min,V=H.max,U=H.pow,W=H.abs,X=c(1),G=c(),Z=c(0,1),J=t._unit2px,Y={path:function(t){return t.attr("path")},circle:function(t){var e=J(t);return T(e.cx,e.cy,e.r)},ellipse:function(t){var e=J(t);return T(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=J(t);return k(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=J(t);return k(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return k(e.x,e.y,e.width,e.height)}};t.path=i,t.path.getTotalLength=X,t.path.getPointAtLength=G,t.path.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return Z(t,e).end;var r=Z(t,n,1);return e?Z(r,e).end:r},P.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},P.getPointAtLength=function(t){return G(this.attr("d"),t)},P.getSubpath=function(e,n){return t.path.getSubpath(this.attr("d"),e,n)},t._.box=o,t.path.findDotsAtSegment=l,t.path.bezierBBox=f,t.path.isPointInsideBBox=h,t.closest=function(e,n,r,i){for(var a=100,s=o(e-a/2,n-a/2,a,a),u=[],c=r[0].hasOwnProperty("x")?function(t){return{x:r[t].x,y:r[t].y}}:function(t){return{x:r[t],y:i[t]}},l=0;a<=1e6&&!l;){for(var f=0,d=r.length;f<d;f++){
+var p=c(f);if(h(s,p.x,p.y)){l++,u.push(p);break}}l||(a*=2,s=o(e-a/2,n-a/2,a,a))}if(1e6!=a){var v,g=1/0;for(f=0,d=u.length;f<d;f++){var m=t.len(e,n,u[f].x,u[f].y);g>m&&(g=m,u[f].len=m,v=u[f])}return v}},t.path.isBBoxIntersect=d,t.path.intersection=b,t.path.intersectionNumber=x,t.path.isPointInside=_,t.path.getBBox=C,t.path.get=Y,t.path.toRelative=A,t.path.toAbsolute=S,t.path.toCubic=N,t.path.map=D,t.path.toString=a,t.path.clone=s}),r.plugin(function(t,r,i,o){var a=Math.max,s=Math.min,u=function(t){if(this.items=[],this.bindings={},this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)t[e]&&(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},c=u.prototype;c.push=function(){for(var t,e,n=0,r=arguments.length;n<r;n++)t=arguments[n],t&&(e=this.items.length,this[e]=this.items[e]=t,this.length++);return this},c.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},c.forEach=function(t,e){for(var n=0,r=this.items.length;n<r;n++)if(t.call(e,this.items[n],n)===!1)return this;return this},c.animate=function(r,i,o,a){"function"!=typeof o||o.length||(a=o,o=n.linear),r instanceof t._.Animation&&(a=r.callback,o=r.easing,i=o.dur,r=r.attr);var s=arguments;if(t.is(r,"array")&&t.is(s[s.length-1],"array"))var u=!0;var c,l=function(){c?this.b=c:c=this.b},f=0,h=this,d=a&&function(){++f==h.length&&a.call(this)};return this.forEach(function(t,n){e.once("snap.animcreated."+t.id,l),u?s[n]&&t.animate.apply(t,s[n]):t.animate(r,i,o,d)})},c.remove=function(){for(;this.length;)this.pop().remove();return this},c.bind=function(t,e,n){var r={};if("function"==typeof e)this.bindings[t]=e;else{var i=n||t;this.bindings[t]=function(t){r[i]=t,e.attr(r)}}return this},c.attr=function(t){var e={};for(var n in t)this.bindings[n]?this.bindings[n](t[n]):e[n]=t[n];for(var r=0,i=this.items.length;r<i;r++)this.items[r].attr(e);return this},c.clear=function(){for(;this.length;)this.pop()},c.splice=function(t,e,n){t=t<0?a(this.length+t,0):t,e=a(0,s(this.length-t,e));var r,i=[],o=[],c=[];for(r=2;r<arguments.length;r++)c.push(arguments[r]);for(r=0;r<e;r++)o.push(this[t+r]);for(;r<this.length-t;r++)i.push(this[t+r]);var l=c.length;for(r=0;r<l+i.length;r++)this.items[t+r]=this[t+r]=r<l?c[r]:i[r-l];for(r=this.items.length=this.length-=e-l;this[r];)delete this[r++];return new u(o)},c.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0;return!1},c.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},c.getBBox=function(){for(var t=[],e=[],n=[],r=[],i=this.items.length;i--;)if(!this.items[i].removed){var o=this.items[i].getBBox();t.push(o.x),e.push(o.y),n.push(o.x+o.width),r.push(o.y+o.height)}return t=s.apply(0,t),e=s.apply(0,e),n=a.apply(0,n),r=a.apply(0,r),{x:t,y:e,x2:n,y2:r,width:n-t,height:r-e,cx:t+(n-t)/2,cy:e+(r-e)/2}},c.clone=function(t){t=new u;for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},c.toString=function(){return"Snap‘s set"},c.type="set",t.Set=u,t.set=function(){var t=new u;return arguments.length&&t.push.apply(t,Array.prototype.slice.call(arguments,0)),t}}),r.plugin(function(t,n,r,i){function o(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}}function a(e,n,r){n=m(n).replace(/\.{3}|\u2026/g,e),e=t.parseTransformString(e)||[],n=t.parseTransformString(n)||[];for(var i,a,s,u,c=Math.max(e.length,n.length),l=[],d=[],p=0;p<c;p++){if(s=e[p]||o(n[p]),u=n[p]||o(s),s[0]!=u[0]||"r"==s[0].toLowerCase()&&(s[2]!=u[2]||s[3]!=u[3])||"s"==s[0].toLowerCase()&&(s[3]!=u[3]||s[4]!=u[4])){e=t._.transform2matrix(e,r()),n=t._.transform2matrix(n,r()),l=[["m",e.a,e.b,e.c,e.d,e.e,e.f]],d=[["m",n.a,n.b,n.c,n.d,n.e,n.f]];break}for(l[p]=[],d[p]=[],i=0,a=Math.max(s.length,u.length);i<a;i++)i in s&&(l[p][i]=s[i]),i in u&&(d[p][i]=u[i])}return{from:h(l),to:h(d),f:f(l)}}function s(t){return t}function u(t){return function(e){return+e.toFixed(3)+t}}function c(t){return t.join(" ")}function l(e){return t.rgb(e[0],e[1],e[2])}function f(t){var e,n,r,i,o,a,s=0,u=[];for(e=0,n=t.length;e<n;e++){for(o="[",a=['"'+t[e][0]+'"'],r=1,i=t[e].length;r<i;r++)a[r]="val["+s++ +"]";o+=a+"]",u[e]=o}return Function("val","return Snap.path.toString.call(["+u+"])")}function h(t){for(var e=[],n=0,r=t.length;n<r;n++)for(var i=1,o=t[n].length;i<o;i++)e.push(t[n][i]);return e}function d(t){return isFinite(parseFloat(t))}function p(e,n){return!(!t.is(e,"array")||!t.is(n,"array"))&&e.toString()==n.toString()}var v={},g=/[a-z]+$/i,m=String;v.stroke=v.fill="colour",n.prototype.equal=function(t,n){return e("snap.util.equal",this,t,n).firstDefined()},e.on("snap.util.equal",function(e,n){var r,i,o=m(this.attr(e)||""),y=this;if(d(o)&&d(n))return{from:parseFloat(o),to:parseFloat(n),f:s};if("colour"==v[e])return r=t.color(o),i=t.color(n),{from:[r.r,r.g,r.b,r.opacity],to:[i.r,i.g,i.b,i.opacity],f:l};if("viewBox"==e)return r=this.attr(e).vb.split(" ").map(Number),i=n.split(" ").map(Number),{from:r,to:i,f:c};if("transform"==e||"gradientTransform"==e||"patternTransform"==e)return n instanceof t.Matrix&&(n=n.toTransformString()),t._.rgTransform.test(n)||(n=t._.svgTransform2string(n)),a(o,n,function(){return y.getBBox(1)});if("d"==e||"path"==e)return r=t.path.toCubic(o,n),{from:h(r[0]),to:h(r[1]),f:f(r[0])};if("points"==e)return r=m(o).split(t._.separator),i=m(n).split(t._.separator),{from:r,to:i,f:function(t){return t}};var b=o.match(g),x=m(n).match(g);return b&&p(b,x)?{from:parseFloat(o),to:parseFloat(n),f:u(b)}:{from:this.asPX(e),to:this.asPX(e,n),f:s}})}),r.plugin(function(t,n,r,i){for(var o=n.prototype,a="hasOwnProperty",s=("createTouch"in i.doc),u=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],c={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},l=(function(t,e){var n="y"==t?"scrollTop":"scrollLeft",r=e&&e.node?e.node.ownerDocument:i.doc;return r[n in r.documentElement?"documentElement":"body"][n]}),f=function(){return this.originalEvent.preventDefault()},h=function(){return this.originalEvent.stopPropagation()},d=function(t,e,n,r){var i=s&&c[e]?c[e]:e,o=function(i){var o=l("y",r),u=l("x",r);if(s&&c[a](e))for(var d=0,p=i.targetTouches&&i.targetTouches.length;d<p;d++)if(i.targetTouches[d].target==t||t.contains(i.targetTouches[d].target)){var v=i;i=i.targetTouches[d],i.originalEvent=v,i.preventDefault=f,i.stopPropagation=h;break}var g=i.clientX+u,m=i.clientY+o;return n.call(r,i,g,m)};return e!==i&&t.addEventListener(e,o,!1),t.addEventListener(i,o,!1),function(){return e!==i&&t.removeEventListener(e,o,!1),t.removeEventListener(i,o,!1),!0}},p=[],v=function(t){for(var n,r=t.clientX,i=t.clientY,o=l("y"),a=l("x"),u=p.length;u--;){if(n=p[u],s){for(var c,f=t.touches&&t.touches.length;f--;)if(c=t.touches[f],c.identifier==n.el._drag.id||n.el.node.contains(c.target)){r=c.clientX,i=c.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var h=n.el.node;h.nextSibling,h.parentNode,h.style.display;r+=a,i+=o,e("snap.drag.move."+n.el.id,n.move_scope||n.el,r-n.el._drag.x,i-n.el._drag.y,r,i,t)}},g=function b(n){t.unmousemove(v).unmouseup(b);for(var r,i=p.length;i--;)r=p[i],r.el._drag={},e("snap.drag.end."+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,n),e.off("snap.drag.*."+r.el.id);p=[]},m=u.length;m--;)!function(e){t[e]=o[e]=function(n,r){if(t.is(n,"function"))this.events=this.events||[],this.events.push({name:e,f:n,unbind:d(this.node||document,e,n,r||this)});else for(var i=0,o=this.events.length;i<o;i++)if(this.events[i].name==e)try{this.events[i].f.call(this)}catch(a){}return this},t["un"+e]=o["un"+e]=function(t){for(var n=this.events||[],r=n.length;r--;)if(n[r].name==e&&(n[r].f==t||!t))return n[r].unbind(),n.splice(r,1),!n.length&&delete this.events,this;return this}}(u[m]);o.hover=function(t,e,n,r){return this.mouseover(t,n).mouseout(e,r||n)},o.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var y=[];o.drag=function(n,r,i,o,a,s){function u(u,c,f){(u.originalEvent||u).preventDefault(),l._drag.x=c,l._drag.y=f,l._drag.id=u.identifier,!p.length&&t.mousemove(v).mouseup(g),p.push({el:l,move_scope:o,start_scope:a,end_scope:s}),r&&e.on("snap.drag.start."+l.id,r),n&&e.on("snap.drag.move."+l.id,n),i&&e.on("snap.drag.end."+l.id,i),e("snap.drag.start."+l.id,a||o||l,c,f,u)}function c(t,n,r){e("snap.draginit."+l.id,l,t,n,r)}var l=this;if(!arguments.length){var f;return l.drag(function(t,e){this.attr({transform:f+(f?"T":"t")+[t,e]})},function(){f=this.transform().local})}return e.on("snap.draginit."+l.id,u),l._drag={},y.push({el:l,start:u,init:c}),l.mousedown(c),l},o.undrag=function(){for(var n=y.length;n--;)y[n].el==this&&(this.unmousedown(y[n].init),y.splice(n,1),e.unbind("snap.drag.*."+this.id),e.unbind("snap.draginit."+this.id));return!y.length&&t.unmousemove(v).unmouseup(g),this}}),r.plugin(function(t,n,r,i){var o=(n.prototype,r.prototype),a=/^\s*url\((.+)\)/,s=String,u=t._.$;t.filter={},o.filter=function(e){var r=this;"svg"!=r.type&&(r=r.paper);var i=t.parse(s(e)),o=t._.id(),a=(r.node.offsetWidth,r.node.offsetHeight,u("filter"));return u(a,{id:o,filterUnits:"userSpaceOnUse"}),a.appendChild(i.node),r.defs.appendChild(a),new n(a)},e.on("snap.util.getattr.filter",function(){e.stop();var n=u(this.node,"filter");if(n){var r=s(n).match(a);return r&&t.select(r[1])}}),e.on("snap.util.attr.filter",function(r){if(r instanceof n&&"filter"==r.type){e.stop();var i=r.node.id;i||(u(r.node,{id:r.id}),i=r.id),u(this.node,{filter:t.url(i)})}r&&"none"!=r||(e.stop(),this.node.removeAttribute("filter"))}),t.filter.blur=function(e,n){null==e&&(e=2);var r=null==n?e:[e,n];return t.format('<feGaussianBlur stdDeviation="{def}"/>',{def:r})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,n,r,i,o){return"string"==typeof r&&(i=r,o=i,r=4),"string"!=typeof i&&(o=i,i="#000"),i=i||"#000",null==r&&(r=4),null==o&&(o=1),null==e&&(e=0,n=2),null==n&&(n=e),i=t.color(i),t.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:i,dx:e,dy:n,blur:r,opacity:o})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}}),r.plugin(function(t,e,n,r,i){var o=t._.box,a=t.is,s=/^[^a-z]*([tbmlrc])/i,u=function(){return"T"+this.dx+","+this.dy};e.prototype.getAlign=function(t,e){null==e&&a(t,"string")&&(e=t,t=null),t=t||this.paper;var n=t.getBBox?t.getBBox():o(t),r=this.getBBox(),i={};switch(e=e&&e.match(s),e=e?e[1].toLowerCase():"c"){case"t":i.dx=0,i.dy=n.y-r.y;break;case"b":i.dx=0,i.dy=n.y2-r.y2;break;case"m":i.dx=0,i.dy=n.cy-r.cy;break;case"l":i.dx=n.x-r.x,i.dy=0;break;case"r":i.dx=n.x2-r.x2,i.dy=0;break;default:i.dx=n.cx-r.cx,i.dy=0}return i.toString=u,i},e.prototype.align=function(t,e){return this.transform("..."+this.getAlign(t,e))}}),r})}).call(window)},function(t,e,n){var r,i;(function(t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};/*!
* jQuery JavaScript Library v3.0.0
* https://jquery.com/
*
@@ -26,7 +25,7 @@
*/
function(t){function e(t,e,n,r){var i,o,a,s,u,c,l,h=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:H)!==D&&N(e),e=e||D,P)){if(11!==p&&(u=mt.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(h&&(a=h.getElementById(i))&&R(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return Q.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&_.getElementsByClassName&&e.getElementsByClassName)return Q.apply(n,e.getElementsByClassName(i)),n}if(_.qsa&&!W[t+" "]&&(!F||!F.test(t))){if(1!==p)h=e,l=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(wt,_t):e.setAttribute("id",s=I),c=A(t),o=c.length;o--;)c[o]="#"+s+" "+d(c[o]);l=c.join(","),h=yt.test(t)&&f(e.parentNode)||e}if(l)try{return Q.apply(n,h.querySelectorAll(l)),n}catch(v){}finally{s===I&&e.removeAttribute("id")}}}return $(t.replace(st,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>C.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[I]=!0,t}function i(t){var e=D.createElement("fieldset");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return function(e){return"label"in e&&e.disabled===t||"form"in e&&e.disabled===t||"form"in e&&e.disabled===!1&&(e.isDisabled===t||e.isDisabled!==!t&&("label"in e||!kt(e))!==t)}}function l(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function f(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function h(){}function d(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function p(t,e,n){var r=e.dir,i=e.next,o=i||r,a=n&&"parentNode"===o,s=z++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||a)return t(e,n,i)}:function(e,n,u){var c,l,f,h=[q,s];if(u){for(;e=e[r];)if((1===e.nodeType||a)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||a)if(f=e[I]||(e[I]={}),l=f[e.uniqueID]||(f[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((c=l[o])&&c[0]===q&&c[1]===s)return h[2]=c[2];if(l[o]=h,h[2]=t(e,n,u))return!0}}}function v(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function g(t,n,r){for(var i=0,o=n.length;i<o;i++)e(t,n[i],r);return r}function m(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,c=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),c&&e.push(s)));return a}function y(t,e,n,i,o,a){return i&&!i[I]&&(i=y(i)),o&&!o[I]&&(o=y(o,a)),r(function(r,a,s,u){var c,l,f,h=[],d=[],p=a.length,v=r||g(e||"*",s.nodeType?[s]:s,[]),y=!t||!r&&e?v:m(v,h,t,s,u),b=n?o||(r?t:p||i)?[]:a:y;if(n&&n(y,b,s,u),i)for(c=m(b,d),i(c,[],s,u),l=c.length;l--;)(f=c[l])&&(b[d[l]]=!(y[d[l]]=f));if(r){if(o||t){if(o){for(c=[],l=b.length;l--;)(f=b[l])&&c.push(y[l]=f);o(null,b=[],c,u)}for(l=b.length;l--;)(f=b[l])&&(c=o?tt(r,f):h[l])>-1&&(r[c]=!(a[c]=f))}}else b=m(b===a?b.splice(p,b.length):b),o?o(null,a,b,u):Q.apply(a,b)})}function b(t){for(var e,n,r,i=t.length,o=C.relative[t[0].type],a=o||C.relative[" "],s=o?1:0,u=p(function(t){return t===e},a,!0),c=p(function(t){return tt(e,t)>-1},a,!0),l=[function(t,n,r){var i=!o&&(r||n!==E)||((e=n).nodeType?u(t,n,r):c(t,n,r));return e=null,i}];s<i;s++)if(n=C.relative[t[s].type])l=[p(v(l),n)];else{if(n=C.filter[t[s].type].apply(null,t[s].matches),n[I]){for(r=++s;r<i&&!C.relative[t[r].type];r++);return y(s>1&&v(l),s>1&&d(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(st,"$1"),n,s<r&&b(t.slice(s,r)),r<i&&b(t=t.slice(r)),r<i&&d(t))}l.push(n)}return v(l)}function x(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,s,u,c){var l,f,h,d=0,p="0",v=r&&[],g=[],y=E,b=r||o&&C.find.TAG("*",c),x=q+=null==y?1:Math.random()||.1,w=b.length;for(c&&(E=a===D||a||c);p!==w&&null!=(l=b[p]);p++){if(o&&l){for(f=0,a||l.ownerDocument===D||(N(l),s=!P);h=t[f++];)if(h(l,a||D,s)){u.push(l);break}c&&(q=x)}i&&((l=!h&&l)&&d--,r&&v.push(l))}if(d+=p,i&&p!==d){for(f=0;h=n[f++];)h(v,g,a,s);if(r){if(d>0)for(;p--;)v[p]||g[p]||(g[p]=J.call(u));g=m(g)}Q.apply(u,g),c&&!r&&g.length>0&&d+n.length>1&&e.uniqueSort(u)}return c&&(q=x,E=y),v};return i?r(a):a}var w,_,C,k,T,A,S,$,E,j,O,N,D,M,P,F,B,L,R,I="sizzle"+1*new Date,H=t.document,q=0,z=0,V=n(),U=n(),W=n(),X=function(t,e){return t===e&&(O=!0),0},G={}.hasOwnProperty,Z=[],J=Z.pop,Y=Z.push,Q=Z.push,K=Z.slice,tt=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",it="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+nt+"*\\]",ot=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",at=new RegExp(nt+"+","g"),st=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ut=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),lt=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ft=new RegExp(ot),ht=new RegExp("^"+rt+"$"),dt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},pt=/^(?:input|select|textarea|button)$/i,vt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,mt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),xt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},wt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,_t=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},Ct=function(){N()},kt=p(function(t){return t.disabled===!0},{dir:"parentNode",next:"legend"});try{Q.apply(Z=K.call(H.childNodes),H.childNodes),Z[H.childNodes.length].nodeType}catch(Tt){Q={apply:Z.length?function(t,e){Y.apply(t,K.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}_=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},N=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:H;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,M=D.documentElement,P=!T(D),H!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ct,!1):n.attachEvent&&n.attachEvent("onunload",Ct)),_.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),_.getElementsByTagName=i(function(t){return t.appendChild(D.createComment("")),!t.getElementsByTagName("*").length}),_.getElementsByClassName=gt.test(D.getElementsByClassName),_.getById=i(function(t){return M.appendChild(t).id=I,!D.getElementsByName||!D.getElementsByName(I).length}),_.getById?(C.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&P){var n=e.getElementById(t);return n?[n]:[]}},C.filter.ID=function(t){var e=t.replace(bt,xt);return function(t){return t.getAttribute("id")===e}}):(delete C.find.ID,C.filter.ID=function(t){var e=t.replace(bt,xt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),C.find.TAG=_.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):_.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},C.find.CLASS=_.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&P)return e.getElementsByClassName(t)},B=[],F=[],(_.qsa=gt.test(D.querySelectorAll))&&(i(function(t){M.appendChild(t).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||F.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+I+"-]").length||F.push("~="),t.querySelectorAll(":checked").length||F.push(":checked"),t.querySelectorAll("a#"+I+"+*").length||F.push(".#.+[+~]")}),i(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=D.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&F.push("name"+nt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&F.push(":enabled",":disabled"),M.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),F.push(",.*:")})),(_.matchesSelector=gt.test(L=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&i(function(t){_.disconnectedMatch=L.call(t,"*"),L.call(t,"[s!='']:x"),B.push("!=",ot)}),F=F.length&&new RegExp(F.join("|")),B=B.length&&new RegExp(B.join("|")),e=gt.test(M.compareDocumentPosition),R=e||gt.test(M.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},X=e?function(t,e){if(t===e)return O=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!_.sortDetached&&e.compareDocumentPosition(t)===n?t===D||t.ownerDocument===H&&R(H,t)?-1:e===D||e.ownerDocument===H&&R(H,e)?1:j?tt(j,t)-tt(j,e):0:4&n?-1:1)}:function(t,e){if(t===e)return O=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,s=[t],u=[e];if(!i||!o)return t===D?-1:e===D?1:i?-1:o?1:j?tt(j,t)-tt(j,e):0;if(i===o)return a(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===H?-1:u[r]===H?1:0},D):D},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==D&&N(t),n=n.replace(lt,"='$1']"),_.matchesSelector&&P&&!W[n+" "]&&(!B||!B.test(n))&&(!F||!F.test(n)))try{var r=L.call(t,n);if(r||_.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return e(n,D,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==D&&N(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==D&&N(t);var n=C.attrHandle[e.toLowerCase()],r=n&&G.call(C.attrHandle,e.toLowerCase())?n(t,e,!P):void 0;return void 0!==r?r:_.attributes||!P?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.escape=function(t){return(t+"").replace(wt,_t)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(O=!_.detectDuplicates,j=!_.sortStable&&t.slice(0),t.sort(X),O){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return j=null,t},k=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=k(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=k(e);return n},C=e.selectors={cacheLength:50,createPseudo:r,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,xt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ft.test(n)&&(e=A(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=V[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&V(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(at," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,h,d,p,v=o!==a?"nextSibling":"previousSibling",g=e.parentNode,m=s&&e.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(g){if(o){for(;v;){for(h=e;h=h[v];)if(s?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;p=v="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(h=g,f=h[I]||(h[I]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),c=l[t]||[],d=c[0]===q&&c[1],b=d&&c[2],h=d&&g.childNodes[d];h=++d&&h&&h[v]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){l[t]=[q,d,b];break}}else if(y&&(h=e,f=h[I]||(h[I]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),c=l[t]||[],d=c[0]===q&&c[1],b=d),b===!1)for(;(h=++d&&h&&h[v]||(b=d=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++b||(y&&(f=h[I]||(h[I]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),l[t]=[q,b]),h!==e)););return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(t,n){var i,o=C.pseudos[t]||C.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[I]?o(n):o.length>1?(i=[t,t,"",n],C.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=tt(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=S(t.replace(st,"$1"));return i[I]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(bt,xt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:r(function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,xt).toLowerCase(),function(e){var n;do if(n=P?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===M},focus:function(t){return t===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!C.pseudos.empty(t)},header:function(t){return vt.test(t.nodeName)},input:function(t){return pt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:l(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},C.pseudos.nth=C.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=s(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=u(w);return h.prototype=C.filters=C.pseudos,C.setFilters=new h,A=e.tokenize=function(t,n){var r,i,o,a,s,u,c,l=U[t+" "];if(l)return n?0:l.slice(0);for(s=t,u=[],c=C.preFilter;s;){r&&!(i=ut.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ct.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(st," ")}),s=s.slice(r.length));for(a in C.filter)!(i=dt[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):U(t,u).slice(0)},S=e.compile=function(t,e){var n,r=[],i=[],o=W[t+" "];if(!o){for(e||(e=A(t)),n=e.length;n--;)o=b(e[n]),o[I]?r.push(o):i.push(o);o=W(t,x(i,r)),o.selector=t}return o},$=e.select=function(t,e,n,r){var i,o,a,s,u,c="function"==typeof t&&t,l=!r&&A(t=c.selector||t);if(n=n||[],1===l.length){if(o=l[0]=l[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&_.getById&&9===e.nodeType&&P&&C.relative[o[1].type]){if(e=(C.find.ID(a.matches[0].replace(bt,xt),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=dt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!C.relative[s=a.type]);)if((u=C.find[s])&&(r=u(a.matches[0].replace(bt,xt),yt.test(o[0].type)&&f(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&d(o),!t)return Q.apply(n,r),n;break}}return(c||S(t,l))(r,e,!P,n,!e||yt.test(t)&&f(e.parentNode)||e),n},_.sortStable=I.split("").sort(X).join("")===I,_.detectDuplicates=!!O,N(),_.sortDetached=i(function(t){return 1&t.compareDocumentPosition(D.createElement("fieldset"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),_.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var r;if(!n)return t[e]===!0?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(o);mt.find=_t,mt.expr=_t.selectors,mt.expr[":"]=mt.expr.pseudos,mt.uniqueSort=mt.unique=_t.uniqueSort,mt.text=_t.getText,mt.isXMLDoc=_t.isXML,mt.contains=_t.contains,mt.escapeSelector=_t.escape;var Ct=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&mt(t).is(n))break;r.push(t)}return r},kt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},Tt=mt.expr.match.needsContext,At=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,St=/^.[^:#\[\.,]*$/;mt.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?mt.find.matchesSelector(r,t)?[r]:[]:mt.find.matches(t,mt.grep(e,function(t){return 1===t.nodeType}))},mt.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(mt(t).filter(function(){for(e=0;e<r;e++)if(mt.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)mt.find(t,i[e],n);return r>1?mt.uniqueSort(n):n},filter:function(t){return this.pushStack(c(this,t||[],!1))},not:function(t){return this.pushStack(c(this,t||[],!0))},is:function(t){return!!c(this,"string"==typeof t&&Tt.test(t)?mt(t):t||[],!1).length}});var $t,Et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,jt=mt.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||$t,"string"==typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Et.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof mt?e[0]:e,mt.merge(this,mt.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:it,!0)),At.test(r[1])&&mt.isPlainObject(e))for(r in e)mt.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=it.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):mt.isFunction(t)?void 0!==n.ready?n.ready(t):t(mt):mt.makeArray(t,this)};jt.prototype=mt.fn,$t=mt(it);var Ot=/^(?:parents|prev(?:Until|All))/,Nt={children:!0,contents:!0,next:!0,prev:!0};mt.fn.extend({has:function(t){var e=mt(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(mt.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,o=[],a="string"!=typeof t&&mt(t);if(!Tt.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&mt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?mt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?ct.call(mt(t),this[0]):ct.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(mt.uniqueSort(mt.merge(this.get(),mt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),mt.each({parent:function tn(t){var tn=t.parentNode;return tn&&11!==tn.nodeType?tn:null},parents:function(t){return Ct(t,"parentNode")},parentsUntil:function(t,e,n){return Ct(t,"parentNode",n)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return Ct(t,"nextSibling")},prevAll:function(t){return Ct(t,"previousSibling")},nextUntil:function(t,e,n){return Ct(t,"nextSibling",n)},prevUntil:function(t,e,n){return Ct(t,"previousSibling",n)},siblings:function(t){return kt((t.parentNode||{}).firstChild,t)},children:function(t){return kt(t.firstChild)},contents:function(t){return t.contentDocument||mt.merge([],t.childNodes)}},function(t,e){mt.fn[t]=function(n,r){var i=mt.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=mt.filter(r,i)),this.length>1&&(Nt[t]||mt.uniqueSort(i),Ot.test(t)&&i.reverse()),this.pushStack(i)}});var Dt=/\S+/g;mt.Callbacks=function(t){t="string"==typeof t?f(t):mt.extend({},t);var e,n,r,i,o=[],a=[],s=-1,u=function(){for(i=t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)o[s].apply(n[0],n[1])===!1&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function r(e){mt.each(e,function(e,n){mt.isFunction(n)?t.unique&&c.has(n)||o.push(n):n&&n.length&&"string"!==mt.type(n)&&r(n)})}(arguments),n&&!e&&u()),this},remove:function(){return mt.each(arguments,function(t,e){for(var n;(n=mt.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?mt.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},mt.extend({Deferred:function(t){var e=[["notify","progress",mt.Callbacks("memory"),mt.Callbacks("memory"),2],["resolve","done",mt.Callbacks("once memory"),mt.Callbacks("once memory"),0,"resolved"],["reject","fail",mt.Callbacks("once memory"),mt.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},"catch":function(t){return i.then(null,t)},pipe:function(){var t=arguments;return mt.Deferred(function(n){mt.each(e,function(e,r){var i=mt.isFunction(t[r[4]])&&t[r[4]];a[r[1]](function(){var t=i&&i.apply(this,arguments);t&&mt.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){function a(t,e,r,i){return function(){var u=this,c=arguments,l=function(){var o,l;if(!(t<s)){if(o=r.apply(u,c),o===e.promise())throw new TypeError("Thenable self-resolution");l=o&&("object"===("undefined"==typeof o?"undefined":n(o))||"function"==typeof o)&&o.then,mt.isFunction(l)?i?l.call(o,a(s,e,h,i),a(s,e,d,i)):(s++,l.call(o,a(s,e,h,i),a(s,e,d,i),a(s,e,h,e.notifyWith))):(r!==h&&(u=void 0,c=[o]),(i||e.resolveWith)(u,c))}},f=i?l:function(){try{l()}catch(n){mt.Deferred.exceptionHook&&mt.Deferred.exceptionHook(n,f.stackTrace),t+1>=s&&(r!==d&&(u=void 0,c=[n]),e.rejectWith(u,c))}};t?f():(mt.Deferred.getStackHook&&(f.stackTrace=mt.Deferred.getStackHook()),o.setTimeout(f))}}var s=0;return mt.Deferred(function(n){e[0][3].add(a(0,n,mt.isFunction(i)?i:h,n.notifyWith)),e[1][3].add(a(0,n,mt.isFunction(t)?t:h)),e[2][3].add(a(0,n,mt.isFunction(r)?r:d))}).promise()},promise:function(t){return null!=t?mt.extend(t,i):i}},a={};return mt.each(e,function(t,n){var o=n[2],s=n[5];i[n[1]]=o.add,s&&o.add(function(){r=s},e[3-t][2].disable,e[0][2].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith}),i.promise(a),t&&t.call(a,a),a},when:function(t){var e=arguments.length,n=e,r=Array(n),i=at.call(arguments),o=mt.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?at.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(p(t,o.done(a(n)).resolve,o.reject),"pending"===o.state()||mt.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)p(i[n],a(n),o.reject);return o.promise()}});var Mt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;mt.Deferred.exceptionHook=function(t,e){o.console&&o.console.warn&&t&&Mt.test(t.name)&&o.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)};var Pt=mt.Deferred();mt.fn.ready=function(t){return Pt.then(t),this},mt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?mt.readyWait++:mt.ready(!0)},ready:function(t){(t===!0?--mt.readyWait:mt.isReady)||(mt.isReady=!0,t!==!0&&--mt.readyWait>0||Pt.resolveWith(it,[mt]))}}),mt.ready.then=Pt.then,"complete"===it.readyState||"loading"!==it.readyState&&!it.documentElement.doScroll?o.setTimeout(mt.ready):(it.addEventListener("DOMContentLoaded",v),o.addEventListener("load",v));var Ft=function en(t,e,n,r,i,o,a){var s=0,u=t.length,c=null==n;if("object"===mt.type(n)){i=!0;for(s in n)en(t,e,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,mt.isFunction(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(mt(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:c?e.call(t):u?e(t[0],n):o},Bt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};g.uid=1,g.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Bt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[mt.camelCase(e)]=n;else for(r in e)i[mt.camelCase(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][mt.camelCase(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){mt.isArray(e)?e=e.map(mt.camelCase):(e=mt.camelCase(e),e=e in r?[e]:e.match(Dt)||[]),n=e.length;for(;n--;)delete r[e[n]]}(void 0===e||mt.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!mt.isEmptyObject(e)}};var Lt=new g,Rt=new g,It=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ht=/[A-Z]/g;mt.extend({hasData:function(t){return Rt.hasData(t)||Lt.hasData(t)},data:function(t,e,n){return Rt.access(t,e,n)},removeData:function(t,e){Rt.remove(t,e)},_data:function(t,e,n){return Lt.access(t,e,n)},_removeData:function(t,e){Lt.remove(t,e)}}),mt.fn.extend({data:function nn(t,e){var r,i,nn,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(nn=Rt.get(o),1===o.nodeType&&!Lt.get(o,"hasDataAttrs"))){for(r=a.length;r--;)a[r]&&(i=a[r].name,0===i.indexOf("data-")&&(i=mt.camelCase(i.slice(5)),m(o,i,nn[i])));Lt.set(o,"hasDataAttrs",!0)}return nn}return"object"===("undefined"==typeof t?"undefined":n(t))?this.each(function(){Rt.set(this,t)}):Ft(this,function(e){var n;if(o&&void 0===e){if(n=Rt.get(o,t),void 0!==n)return n;if(n=m(o,t),void 0!==n)return n}else this.each(function(){Rt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Rt.remove(this,t)})}}),mt.extend({queue:function rn(t,e,n){var rn;if(t)return e=(e||"fx")+"queue",rn=Lt.get(t,e),n&&(!rn||mt.isArray(n)?rn=Lt.access(t,e,mt.makeArray(n)):rn.push(n)),rn||[]},dequeue:function(t,e){e=e||"fx";var n=mt.queue(t,e),r=n.length,i=n.shift(),o=mt._queueHooks(t,e),a=function(){mt.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Lt.get(t,n)||Lt.access(t,n,{empty:mt.Callbacks("once memory").add(function(){Lt.remove(t,[e+"queue",n])})})}}),mt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?mt.queue(this[0],t):void 0===e?this:this.each(function(){var n=mt.queue(this,t,e);mt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&mt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){mt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=mt.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)n=Lt.get(o[a],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var qt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,zt=new RegExp("^(?:([+-])=|)("+qt+")([a-z%]*)$","i"),Vt=["Top","Right","Bottom","Left"],Ut=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&mt.contains(t.ownerDocument,t)&&"none"===mt.css(t,"display")},Wt=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=a[o];return i},Xt={};mt.fn.extend({show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Ut(this)?mt(this).show():mt(this).hide()})}});var Gt=/^(?:checkbox|radio)$/i,Zt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Jt=/^$|\/(?:java|ecma)script/i,Yt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Yt.optgroup=Yt.option,Yt.tbody=Yt.tfoot=Yt.colgroup=Yt.caption=Yt.thead,Yt.th=Yt.td;var Qt=/<|&#?\w+;/;!function(){var t=it.createDocumentFragment(),e=t.appendChild(it.createElement("div")),n=it.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),vt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",vt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue;
}();var Kt=it.documentElement,te=/^key/,ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ne=/^([^.]*)(?:\.(.+)|)/;mt.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,c,l,f,h,d,p,v,g=Lt.get(t);if(g)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&mt.find.matchesSelector(Kt,i),n.guid||(n.guid=mt.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(e){return"undefined"!=typeof mt&&mt.event.triggered!==e.type?mt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Dt)||[""],c=e.length;c--;)s=ne.exec(e[c])||[],d=v=s[1],p=(s[2]||"").split(".").sort(),d&&(f=mt.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=mt.event.special[d]||{},l=mt.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&mt.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=u[d])||(h=u[d]=[],h.delegateCount=0,f.setup&&f.setup.call(t,r,p,a)!==!1||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),mt.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,c,l,f,h,d,p,v,g=Lt.hasData(t)&&Lt.get(t);if(g&&(u=g.events)){for(e=(e||"").match(Dt)||[""],c=e.length;c--;)if(s=ne.exec(e[c])||[],d=v=s[1],p=(s[2]||"").split(".").sort(),d){for(f=mt.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,h=u[d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)l=h[o],!i&&v!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l));a&&!h.length&&(f.teardown&&f.teardown.call(t,p,g.handle)!==!1||mt.removeEvent(t,d,g.handle),delete u[d])}else for(d in u)mt.event.remove(t,d+e[c],n,r,!0);mt.isEmptyObject(u)&&Lt.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=mt.event.fix(t),u=new Array(arguments.length),c=(Lt.get(this,"events")||{})[s.type]||[],l=mt.event.special[s.type]||{};for(u[0]=s,e=1;e<arguments.length;e++)u[e]=arguments[e];if(s.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,s)!==!1){for(a=mt.event.handlers.call(this,s,c),e=0;(i=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,r=((mt.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u),void 0!==r&&(s.result=r)===!1&&(s.preventDefault(),s.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==t.type)){for(r=[],n=0;n<s;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?mt(i,this).index(u)>-1:mt.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},addProp:function(t,e){Object.defineProperty(mt.Event.prototype,t,{enumerable:!0,configurable:!0,get:mt.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[mt.expando]?t:new mt.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==A()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===A()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&mt.nodeName(this,"input"))return this.click(),!1},_default:function(t){return mt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},mt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},mt.Event=function(t,e){return this instanceof mt.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?k:T,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&mt.extend(this,e),this.timeStamp=t&&t.timeStamp||mt.now(),void(this[mt.expando]=!0)):new mt.Event(t,e)},mt.Event.prototype={constructor:mt.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=k,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=k,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=k,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},mt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&te.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&ee.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},mt.event.addProp),mt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){mt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||mt.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),mt.fn.extend({on:function(t,e,n,r){return S(this,t,e,n,r)},one:function(t,e,n,r){return S(this,t,e,n,r,1)},off:function(t,e,r){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,mt(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"===("undefined"==typeof t?"undefined":n(t))){for(o in t)this.off(o,e,t[o]);return this}return e!==!1&&"function"!=typeof e||(r=e,e=void 0),r===!1&&(r=T),this.each(function(){mt.event.remove(this,t,r,e)})}});var re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ie=/<script|<style|<link/i,oe=/checked\s*(?:[^=]|=\s*.checked.)/i,ae=/^true\/(.*)/,se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;mt.extend({htmlPrefilter:function(t){return t.replace(re,"<$1></$2>")},clone:function on(t,e,n){var r,i,o,a,on=t.cloneNode(!0),s=mt.contains(t.ownerDocument,t);if(!(vt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||mt.isXMLDoc(t)))for(a=w(on),o=w(t),r=0,i=o.length;r<i;r++)N(o[r],a[r]);if(e)if(n)for(o=o||w(t),a=a||w(on),r=0,i=o.length;r<i;r++)O(o[r],a[r]);else O(t,on);return a=w(on,"script"),a.length>0&&_(a,!s&&w(t,"script")),on},cleanData:function(t){for(var e,n,r,i=mt.event.special,o=0;void 0!==(n=t[o]);o++)if(Bt(n)){if(e=n[Lt.expando]){if(e.events)for(r in e.events)i[r]?mt.event.remove(n,r):mt.removeEvent(n,r,e.handle);n[Lt.expando]=void 0}n[Rt.expando]&&(n[Rt.expando]=void 0)}}}),mt.fn.extend({detach:function(t){return M(this,t,!0)},remove:function(t){return M(this,t)},text:function(t){return Ft(this,function(t){return void 0===t?mt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return D(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=$(this,t);e.appendChild(t)}})},prepend:function(){return D(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=$(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return D(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return D(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(mt.cleanData(w(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return mt.clone(this,t,e)})},html:function(t){return Ft(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!ie.test(t)&&!Yt[(Zt.exec(t)||["",""])[1].toLowerCase()]){t=mt.htmlPrefilter(t);try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(mt.cleanData(w(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return D(this,arguments,function(e){var n=this.parentNode;mt.inArray(this,t)<0&&(mt.cleanData(w(this)),n&&n.replaceChild(e,this))},t)}}),mt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){mt.fn[t]=function(t){for(var n,r=[],i=mt(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),mt(i[a])[e](n),ut.apply(r,n.get());return this.pushStack(r)}});var ue=/^margin/,ce=new RegExp("^("+qt+")(?!px)[a-z%]+$","i"),le=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=o),e.getComputedStyle(t)};!function(){function t(){if(s){s.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Kt.appendChild(a);var t=o.getComputedStyle(s);e="1%"!==t.top,i="2px"===t.marginLeft,n="4px"===t.width,s.style.marginRight="50%",r="4px"===t.marginRight,Kt.removeChild(a),s=null}}var e,n,r,i,a=it.createElement("div"),s=it.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",vt.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),mt.extend(vt,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return t(),n},pixelMarginRight:function(){return t(),r},reliableMarginLeft:function(){return t(),i}}))}();var fe=/^(none|table(?!-c[ea]).+)/,he={position:"absolute",visibility:"hidden",display:"block"},de={letterSpacing:"0",fontWeight:"400"},pe=["Webkit","Moz","ms"],ve=it.createElement("div").style;mt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=P(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function an(t,e,r,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,a,s,u=mt.camelCase(e),an=t.style;return e=mt.cssProps[u]||(mt.cssProps[u]=B(u)||u),s=mt.cssHooks[e]||mt.cssHooks[u],void 0===r?s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:an[e]:(a="undefined"==typeof r?"undefined":n(r),"string"===a&&(o=zt.exec(r))&&o[1]&&(r=y(t,e,o),a="number"),null!=r&&r===r&&("number"===a&&(r+=o&&o[3]||(mt.cssNumber[u]?"":"px")),vt.clearCloneStyle||""!==r||0!==e.indexOf("background")||(an[e]="inherit"),s&&"set"in s&&void 0===(r=s.set(t,r,i))||(an[e]=r)),void 0)}},css:function(t,e,n,r){var i,o,a,s=mt.camelCase(e);return e=mt.cssProps[s]||(mt.cssProps[s]=B(s)||s),a=mt.cssHooks[e]||mt.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=P(t,e,r)),"normal"===i&&e in de&&(i=de[e]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),mt.each(["height","width"],function(t,e){mt.cssHooks[e]={get:function(t,n,r){if(n)return!fe.test(mt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?I(t,e,r):Wt(t,he,function(){return I(t,e,r)})},set:function(t,n,r){var i,o=r&&le(t),a=r&&R(t,e,r,"border-box"===mt.css(t,"boxSizing",!1,o),o);return a&&(i=zt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=mt.css(t,e)),L(t,n,a)}}}),mt.cssHooks.marginLeft=F(vt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(P(t,"marginLeft"))||t.getBoundingClientRect().left-Wt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),mt.each({margin:"",padding:"",border:"Width"},function(t,e){mt.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+Vt[r]+e]=o[r]||o[r-2]||o[0];return i}},ue.test(t)||(mt.cssHooks[t+e].set=L)}),mt.fn.extend({css:function(t,e){return Ft(this,function(t,e,n){var r,i,o={},a=0;if(mt.isArray(e)){for(r=le(t),i=e.length;a<i;a++)o[e[a]]=mt.css(t,e[a],!1,r);return o}return void 0!==n?mt.style(t,e,n):mt.css(t,e)},t,e,arguments.length>1)}}),mt.Tween=H,H.prototype={constructor:H,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||mt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(mt.cssNumber[n]?"":"px")},cur:function(){var t=H.propHooks[this.prop];return t&&t.get?t.get(this):H.propHooks._default.get(this)},run:function(t){var e,n=H.propHooks[this.prop];return this.options.duration?this.pos=e=mt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=mt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){mt.fx.step[t.prop]?mt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[mt.cssProps[t.prop]]&&!mt.cssHooks[t.prop]?t.elem[t.prop]=t.now:mt.style(t.elem,t.prop,t.now+t.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},mt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},mt.fx=H.prototype.init,mt.fx.step={};var ge,me,ye=/^(?:toggle|show|hide)$/,be=/queueHooks$/;mt.Animation=mt.extend(G,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return y(n.elem,t,zt.exec(e),n),n}]},tweener:function(t,e){mt.isFunction(t)?(e=t,t=["*"]):t=t.match(Dt);for(var n,r=0,i=t.length;r<i;r++)n=t[r],G.tweeners[n]=G.tweeners[n]||[],G.tweeners[n].unshift(e)},prefilters:[W],prefilter:function(t,e){e?G.prefilters.unshift(t):G.prefilters.push(t)}}),mt.speed=function(t,e,r){var i=t&&"object"===("undefined"==typeof t?"undefined":n(t))?mt.extend({},t):{complete:r||!r&&e||mt.isFunction(t)&&t,duration:t,easing:r&&e||e&&!mt.isFunction(e)&&e};return mt.fx.off||it.hidden?i.duration=0:i.duration="number"==typeof i.duration?i.duration:i.duration in mt.fx.speeds?mt.fx.speeds[i.duration]:mt.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){mt.isFunction(i.old)&&i.old.call(this),i.queue&&mt.dequeue(this,i.queue)},i},mt.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Ut).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=mt.isEmptyObject(t),o=mt.speed(e,n,r),a=function(){var e=G(this,mt.extend({},t),o);(i||Lt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=mt.timers,a=Lt.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&be.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||mt.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=Lt.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=mt.timers,a=r?r.length:0;for(n.finish=!0,mt.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),mt.each(["toggle","show","hide"],function(t,e){var n=mt.fn[e];mt.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(V(e,!0),t,r,i)}}),mt.each({slideDown:V("show"),slideUp:V("hide"),slideToggle:V("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){mt.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),mt.timers=[],mt.fx.tick=function(){var t,e=0,n=mt.timers;for(ge=mt.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||mt.fx.stop(),ge=void 0},mt.fx.timer=function(t){mt.timers.push(t),t()?mt.fx.start():mt.timers.pop()},mt.fx.interval=13,mt.fx.start=function(){me||(me=o.requestAnimationFrame?o.requestAnimationFrame(q):o.setInterval(mt.fx.tick,mt.fx.interval))},mt.fx.stop=function(){o.cancelAnimationFrame?o.cancelAnimationFrame(me):o.clearInterval(me),me=null},mt.fx.speeds={slow:600,fast:200,_default:400},mt.fn.delay=function(t,e){return t=mt.fx?mt.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=o.setTimeout(e,t);n.stop=function(){o.clearTimeout(r)}})},function(){var t=it.createElement("input"),e=it.createElement("select"),n=e.appendChild(it.createElement("option"));t.type="checkbox",vt.checkOn=""!==t.value,vt.optSelected=n.selected,t=it.createElement("input"),t.value="t",t.type="radio",vt.radioValue="t"===t.value}();var xe,we=mt.expr.attrHandle;mt.fn.extend({attr:function(t,e){return Ft(this,mt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){mt.removeAttr(this,t)})}}),mt.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?mt.prop(t,e,n):(1===o&&mt.isXMLDoc(t)||(i=mt.attrHooks[e.toLowerCase()]||(mt.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void mt.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=mt.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!vt.radioValue&&"radio"===e&&mt.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(Dt);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return e===!1?mt.removeAttr(t,n):t.setAttribute(n,n),n}},mt.each(mt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=we[e]||mt.find.attr;we[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=we[a],we[a]=i,i=null!=n(t,e,r)?a:null,we[a]=o),i}});var _e=/^(?:input|select|textarea|button)$/i,Ce=/^(?:a|area)$/i;mt.fn.extend({prop:function(t,e){return Ft(this,mt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[mt.propFix[t]||t]})}}),mt.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&mt.isXMLDoc(t)||(e=mt.propFix[e]||e,i=mt.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=mt.find.attr(t,"tabindex");return e?parseInt(e,10):_e.test(t.nodeName)||Ce.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),vt.optSelected||(mt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),mt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){mt.propFix[this.toLowerCase()]=this});var ke=/[\t\r\n\f]/g;mt.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(mt.isFunction(t))return this.each(function(e){mt(this).addClass(t.call(this,e,Z(this)))});if("string"==typeof t&&t)for(e=t.match(Dt)||[];n=this[u++];)if(i=Z(n),r=1===n.nodeType&&(" "+i+" ").replace(ke," ")){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=mt.trim(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(mt.isFunction(t))return this.each(function(e){mt(this).removeClass(t.call(this,e,Z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Dt)||[];n=this[u++];)if(i=Z(n),r=1===n.nodeType&&(" "+i+" ").replace(ke," ")){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=mt.trim(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var r="undefined"==typeof t?"undefined":n(t);return"boolean"==typeof e&&"string"===r?e?this.addClass(t):this.removeClass(t):mt.isFunction(t)?this.each(function(n){mt(this).toggleClass(t.call(this,n,Z(this),e),e)}):this.each(function(){var e,n,i,o;if("string"===r)for(n=0,i=mt(this),o=t.match(Dt)||[];e=o[n++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==t&&"boolean"!==r||(e=Z(this),e&&Lt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":Lt.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+Z(n)+" ").replace(ke," ").indexOf(e)>-1)return!0;return!1}});var Te=/\r/g,Ae=/[\x20\t\r\n\f]+/g;mt.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=mt.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,mt(this).val()):t,null==i?i="":"number"==typeof i?i+="":mt.isArray(i)&&(i=mt.map(i,function(t){return null==t?"":t+""})),e=mt.valHooks[this.type]||mt.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=mt.valHooks[i.type]||mt.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Te,""):null==n?"":n)}}}),mt.extend({valHooks:{option:{get:function(t){var e=mt.find.attr(t,"value");return null!=e?e:mt.trim(mt.text(t)).replace(Ae," ")}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(n=r[u],(n.selected||u===i)&&!n.disabled&&(!n.parentNode.disabled||!mt.nodeName(n.parentNode,"optgroup"))){if(e=mt(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=mt.makeArray(e),a=i.length;a--;)r=i[a],(r.selected=mt.inArray(mt.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),mt.each(["radio","checkbox"],function(){mt.valHooks[this]={set:function(t,e){if(mt.isArray(e))return t.checked=mt.inArray(mt(t).val(),e)>-1}},vt.checkOn||(mt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Se=/^(?:focusinfocus|focusoutblur)$/;mt.extend(mt.event,{trigger:function(t,e,r,i){var a,s,u,c,l,f,h,d=[r||it],p=ht.call(t,"type")?t.type:t,v=ht.call(t,"namespace")?t.namespace.split("."):[];if(s=u=r=r||it,3!==r.nodeType&&8!==r.nodeType&&!Se.test(p+mt.event.triggered)&&(p.indexOf(".")>-1&&(v=p.split("."),p=v.shift(),v.sort()),l=p.indexOf(":")<0&&"on"+p,t=t[mt.expando]?t:new mt.Event(p,"object"===("undefined"==typeof t?"undefined":n(t))&&t),t.isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:mt.makeArray(e,[t]),h=mt.event.special[p]||{},i||!h.trigger||h.trigger.apply(r,e)!==!1)){if(!i&&!h.noBubble&&!mt.isWindow(r)){for(c=h.delegateType||p,Se.test(c+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),u=s;u===(r.ownerDocument||it)&&d.push(u.defaultView||u.parentWindow||o)}for(a=0;(s=d[a++])&&!t.isPropagationStopped();)t.type=a>1?c:h.bindType||p,f=(Lt.get(s,"events")||{})[t.type]&&Lt.get(s,"handle"),f&&f.apply(s,e),f=l&&s[l],f&&f.apply&&Bt(s)&&(t.result=f.apply(s,e),t.result===!1&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||h._default&&h._default.apply(d.pop(),e)!==!1||!Bt(r)||l&&mt.isFunction(r[p])&&!mt.isWindow(r)&&(u=r[l],u&&(r[l]=null),mt.event.triggered=p,r[p](),mt.event.triggered=void 0,u&&(r[l]=u)),t.result}},simulate:function(t,e,n){var r=mt.extend(new mt.Event,n,{type:t,isSimulated:!0});mt.event.trigger(r,null,e)}}),mt.fn.extend({trigger:function(t,e){return this.each(function(){mt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return mt.event.trigger(t,e,n,!0)}}),mt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){mt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),mt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),vt.focusin="onfocusin"in o,vt.focusin||mt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){mt.event.simulate(e,t.target,mt.event.fix(t))};mt.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=Lt.access(r,e);i||r.addEventListener(t,n,!0),Lt.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Lt.access(r,e)-1;i?Lt.access(r,e,i):(r.removeEventListener(t,n,!0),Lt.remove(r,e))}}});var $e=o.location,Ee=mt.now(),je=/\?/;mt.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new o.DOMParser).parseFromString(t,"text/xml")}catch(n){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||mt.error("Invalid XML: "+t),e};var Oe=/\[\]$/,Ne=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Me=/^(?:input|select|textarea|keygen)/i;mt.param=function(t,e){var n,r=[],i=function(t,e){var n=mt.isFunction(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(mt.isArray(t)||t.jquery&&!mt.isPlainObject(t))mt.each(t,function(){i(this.name,this.value)});else for(n in t)J(n,t[n],e,i);return r.join("&")},mt.fn.extend({serialize:function(){return mt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=mt.prop(this,"elements");return t?mt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!mt(this).is(":disabled")&&Me.test(this.nodeName)&&!De.test(t)&&(this.checked||!Gt.test(t))}).map(function(t,e){var n=mt(this).val();return null==n?null:mt.isArray(n)?mt.map(n,function(t){return{name:e.name,value:t.replace(Ne,"\r\n")}}):{name:e.name,value:n.replace(Ne,"\r\n")}}).get()}});var Pe=/%20/g,Fe=/#.*$/,Be=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)$/gm,Re=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ie=/^(?:GET|HEAD)$/,He=/^\/\//,qe={},ze={},Ve="*/".concat("*"),Ue=it.createElement("a");Ue.href=$e.href,mt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$e.href,type:"GET",isLocal:Re.test($e.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ve,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":mt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?K(K(t,mt.ajaxSettings),e):K(mt.ajaxSettings,t)},ajaxPrefilter:Y(qe),ajaxTransport:Y(ze),ajax:function(t,e){function r(t,e,n,r){var u,l,d,p,w,_=e;f||(f=!0,c&&o.clearTimeout(c),i=void 0,s=r||"",k.readyState=t>0?4:0,u=t>=200&&t<300||304===t,n&&(p=tt(v,k,n)),p=et(v,p,k,u),u?(v.ifModified&&(w=k.getResponseHeader("Last-Modified"),w&&(mt.lastModified[a]=w),w=k.getResponseHeader("etag"),w&&(mt.etag[a]=w)),204===t||"HEAD"===v.type?_="nocontent":304===t?_="notmodified":(_=p.state,l=p.data,d=p.error,u=!d)):(d=_,!t&&_||(_="error",t<0&&(t=0))),k.status=t,k.statusText=(e||_)+"",u?y.resolveWith(g,[l,_,k]):y.rejectWith(g,[k,_,d]),k.statusCode(x),x=void 0,h&&m.trigger(u?"ajaxSuccess":"ajaxError",[k,v,u?l:d]),b.fireWith(g,[k,_]),h&&(m.trigger("ajaxComplete",[k,v]),--mt.active||mt.event.trigger("ajaxStop")))}"object"===("undefined"==typeof t?"undefined":n(t))&&(e=t,t=void 0),e=e||{};var i,a,s,u,c,l,f,h,d,p,v=mt.ajaxSetup({},e),g=v.context||v,m=v.context&&(g.nodeType||g.jquery)?mt(g):mt.event,y=mt.Deferred(),b=mt.Callbacks("once memory"),x=v.statusCode||{},w={},_={},C="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(f){if(!u)for(u={};e=Le.exec(s);)u[e[1].toLowerCase()]=e[2];e=u[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return f?s:null},setRequestHeader:function(t,e){return null==f&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==f&&(v.mimeType=t),this},statusCode:function(t){var e;if(t)if(f)k.always(t[k.status]);else for(e in t)x[e]=[x[e],t[e]];return this},abort:function(t){var e=t||C;return i&&i.abort(e),r(0,e),this}};if(y.promise(k),v.url=((t||v.url||$e.href)+"").replace(He,$e.protocol+"//"),v.type=e.method||e.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(Dt)||[""],null==v.crossDomain){l=it.createElement("a");try{l.href=v.url,l.href=l.href,v.crossDomain=Ue.protocol+"//"+Ue.host!=l.protocol+"//"+l.host}catch(T){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=mt.param(v.data,v.traditional)),Q(qe,v,e,k),f)return k;h=mt.event&&v.global,h&&0===mt.active++&&mt.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ie.test(v.type),a=v.url.replace(Fe,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Pe,"+")):(p=v.url.slice(a.length),v.data&&(a+=(je.test(a)?"&":"?")+v.data,delete v.data),v.cache===!1&&(a=a.replace(Be,""),p=(je.test(a)?"&":"?")+"_="+Ee++ +p),v.url=a+p),v.ifModified&&(mt.lastModified[a]&&k.setRequestHeader("If-Modified-Since",mt.lastModified[a]),mt.etag[a]&&k.setRequestHeader("If-None-Match",mt.etag[a])),(v.data&&v.hasContent&&v.contentType!==!1||e.contentType)&&k.setRequestHeader("Content-Type",v.contentType),k.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Ve+"; q=0.01":""):v.accepts["*"]);for(d in v.headers)k.setRequestHeader(d,v.headers[d]);if(v.beforeSend&&(v.beforeSend.call(g,k,v)===!1||f))return k.abort();if(C="abort",b.add(v.complete),k.done(v.success),k.fail(v.error),i=Q(ze,v,e,k)){if(k.readyState=1,h&&m.trigger("ajaxSend",[k,v]),f)return k;v.async&&v.timeout>0&&(c=o.setTimeout(function(){k.abort("timeout")},v.timeout));try{f=!1,i.send(w,r)}catch(T){if(f)throw T;r(-1,T)}}else r(-1,"No Transport");return k},getJSON:function(t,e,n){return mt.get(t,e,n,"json")},getScript:function(t,e){return mt.get(t,void 0,e,"script")}}),mt.each(["get","post"],function(t,e){mt[e]=function(t,n,r,i){return mt.isFunction(n)&&(i=i||r,r=n,n=void 0),mt.ajax(mt.extend({url:t,type:e,dataType:i,data:n,success:r},mt.isPlainObject(t)&&t))}}),mt._evalUrl=function(t){return mt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},mt.fn.extend({wrapAll:function(t){var e;return this[0]&&(mt.isFunction(t)&&(t=t.call(this[0])),e=mt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return mt.isFunction(t)?this.each(function(e){mt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=mt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=mt.isFunction(t);return this.each(function(n){mt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){mt(this).replaceWith(this.childNodes);
-}),this}}),mt.expr.pseudos.hidden=function(t){return!mt.expr.pseudos.visible(t)},mt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},mt.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(t){}};var We={0:200,1223:204},Xe=mt.ajaxSettings.xhr();vt.cors=!!Xe&&"withCredentials"in Xe,vt.ajax=Xe=!!Xe,mt.ajaxTransport(function(t){var e,n;if(vt.cors||Xe&&!t.crossDomain)return{send:function(r,i){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(a in r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(We[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&o.setTimeout(function(){e&&n()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(e)throw u}},abort:function(){e&&e()}}}),mt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),mt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return mt.globalEval(t),t}}}),mt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),mt.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=mt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),it.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Ge=[],Ze=/(=)\?(?=&|$)|\?\?/;mt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ge.pop()||mt.expando+"_"+Ee++;return this[t]=!0,t}}),mt.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,a,s=t.jsonp!==!1&&(Ze.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=mt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ze,"$1"+r):t.jsonp!==!1&&(t.url+=(je.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||mt.error(r+" was not called"),a[0]},t.dataTypes[0]="json",i=o[r],o[r]=function(){a=arguments},n.always(function(){void 0===i?mt(o).removeProp(r):o[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,Ge.push(r)),a&&mt.isFunction(i)&&i(a[0]),a=i=void 0}),"script"}),vt.createHTMLDocument=function(){var t=it.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),mt.parseHTML=function(t,e,n){if("string"!=typeof t)return[];"boolean"==typeof e&&(n=e,e=!1);var r,i,o;return e||(vt.createHTMLDocument?(e=it.implementation.createHTMLDocument(""),r=e.createElement("base"),r.href=it.location.href,e.head.appendChild(r)):e=it),i=At.exec(t),o=!n&&[],i?[e.createElement(i[1])]:(i=C([t],e,o),o&&o.length&&mt(o).remove(),mt.merge([],i.childNodes))},mt.fn.load=function(t,e,r){var i,o,a,s=this,u=t.indexOf(" ");return u>-1&&(i=mt.trim(t.slice(u)),t=t.slice(0,u)),mt.isFunction(e)?(r=e,e=void 0):e&&"object"===("undefined"==typeof e?"undefined":n(e))&&(o="POST"),s.length>0&&mt.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){a=arguments,s.html(i?mt("<div>").append(mt.parseHTML(t)).find(i):t)}).always(r&&function(t,e){s.each(function(){r.apply(this,a||[t.responseText,e,t])})}),this},mt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){mt.fn[e]=function(t){return this.on(e,t)}}),mt.expr.pseudos.animated=function(t){return mt.grep(mt.timers,function(e){return t===e.elem}).length},mt.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,c,l=mt.css(t,"position"),f=mt(t),h={};"static"===l&&(t.style.position="relative"),s=f.offset(),o=mt.css(t,"top"),u=mt.css(t,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),mt.isFunction(e)&&(e=e.call(t,n,mt.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+i),"using"in e?e.using.call(t,h):f.css(h)}},mt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){mt.offset.setOffset(this,t,e)});var e,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),r.width||r.height?(i=o.ownerDocument,n=nt(i),e=i.documentElement,{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r):{top:0,left:0}},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===mt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),mt.nodeName(t[0],"html")||(r=t.offset()),r={top:r.top+mt.css(t[0],"borderTopWidth",!0),left:r.left+mt.css(t[0],"borderLeftWidth",!0)}),{top:e.top-r.top-mt.css(n,"marginTop",!0),left:e.left-r.left-mt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===mt.css(t,"position");)t=t.offsetParent;return t||Kt})}}),mt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;mt.fn[t]=function(r){return Ft(this,function(t,r,i){var o=nt(t);return void 0===i?o?o[e]:t[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i)},t,r,arguments.length)}}),mt.each(["top","left"],function(t,e){mt.cssHooks[e]=F(vt.pixelPosition,function(t,n){if(n)return n=P(t,e),ce.test(n)?mt(t).position()[e]+"px":n})}),mt.each({Height:"height",Width:"width"},function(t,e){mt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){mt.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||o===!0?"margin":"border");return Ft(this,function(e,n,i){var o;return mt.isWindow(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?mt.css(e,n,s):mt.style(e,n,i,s)},e,a?i:void 0,a)}})}),mt.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),mt.parseJSON=JSON.parse,r=[],i=function(){return mt}.apply(e,r),!(void 0!==i&&(t.exports=i));var Je=o.jQuery,Ye=o.$;return mt.noConflict=function(t){return o.$===mt&&(o.$=Ye),t&&o.jQuery===mt&&(o.jQuery=Je),mt},a||(o.jQuery=o.$=mt),mt})}).call(e,n(32)(t))},function(t,e){/*!
+}),this}}),mt.expr.pseudos.hidden=function(t){return!mt.expr.pseudos.visible(t)},mt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},mt.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(t){}};var We={0:200,1223:204},Xe=mt.ajaxSettings.xhr();vt.cors=!!Xe&&"withCredentials"in Xe,vt.ajax=Xe=!!Xe,mt.ajaxTransport(function(t){var e,n;if(vt.cors||Xe&&!t.crossDomain)return{send:function(r,i){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(a in r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(We[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&o.setTimeout(function(){e&&n()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(e)throw u}},abort:function(){e&&e()}}}),mt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),mt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return mt.globalEval(t),t}}}),mt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),mt.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=mt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),it.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Ge=[],Ze=/(=)\?(?=&|$)|\?\?/;mt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ge.pop()||mt.expando+"_"+Ee++;return this[t]=!0,t}}),mt.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,a,s=t.jsonp!==!1&&(Ze.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=mt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ze,"$1"+r):t.jsonp!==!1&&(t.url+=(je.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||mt.error(r+" was not called"),a[0]},t.dataTypes[0]="json",i=o[r],o[r]=function(){a=arguments},n.always(function(){void 0===i?mt(o).removeProp(r):o[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,Ge.push(r)),a&&mt.isFunction(i)&&i(a[0]),a=i=void 0}),"script"}),vt.createHTMLDocument=function(){var t=it.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),mt.parseHTML=function(t,e,n){if("string"!=typeof t)return[];"boolean"==typeof e&&(n=e,e=!1);var r,i,o;return e||(vt.createHTMLDocument?(e=it.implementation.createHTMLDocument(""),r=e.createElement("base"),r.href=it.location.href,e.head.appendChild(r)):e=it),i=At.exec(t),o=!n&&[],i?[e.createElement(i[1])]:(i=C([t],e,o),o&&o.length&&mt(o).remove(),mt.merge([],i.childNodes))},mt.fn.load=function(t,e,r){var i,o,a,s=this,u=t.indexOf(" ");return u>-1&&(i=mt.trim(t.slice(u)),t=t.slice(0,u)),mt.isFunction(e)?(r=e,e=void 0):e&&"object"===("undefined"==typeof e?"undefined":n(e))&&(o="POST"),s.length>0&&mt.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){a=arguments,s.html(i?mt("<div>").append(mt.parseHTML(t)).find(i):t)}).always(r&&function(t,e){s.each(function(){r.apply(this,a||[t.responseText,e,t])})}),this},mt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){mt.fn[e]=function(t){return this.on(e,t)}}),mt.expr.pseudos.animated=function(t){return mt.grep(mt.timers,function(e){return t===e.elem}).length},mt.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,c,l=mt.css(t,"position"),f=mt(t),h={};"static"===l&&(t.style.position="relative"),s=f.offset(),o=mt.css(t,"top"),u=mt.css(t,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),mt.isFunction(e)&&(e=e.call(t,n,mt.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+i),"using"in e?e.using.call(t,h):f.css(h)}},mt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){mt.offset.setOffset(this,t,e)});var e,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),r.width||r.height?(i=o.ownerDocument,n=nt(i),e=i.documentElement,{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r):{top:0,left:0}},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===mt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),mt.nodeName(t[0],"html")||(r=t.offset()),r={top:r.top+mt.css(t[0],"borderTopWidth",!0),left:r.left+mt.css(t[0],"borderLeftWidth",!0)}),{top:e.top-r.top-mt.css(n,"marginTop",!0),left:e.left-r.left-mt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===mt.css(t,"position");)t=t.offsetParent;return t||Kt})}}),mt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;mt.fn[t]=function(r){return Ft(this,function(t,r,i){var o=nt(t);return void 0===i?o?o[e]:t[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i)},t,r,arguments.length)}}),mt.each(["top","left"],function(t,e){mt.cssHooks[e]=F(vt.pixelPosition,function(t,n){if(n)return n=P(t,e),ce.test(n)?mt(t).position()[e]+"px":n})}),mt.each({Height:"height",Width:"width"},function(t,e){mt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){mt.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||o===!0?"margin":"border");return Ft(this,function(e,n,i){var o;return mt.isWindow(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?mt.css(e,n,s):mt.style(e,n,i,s)},e,a?i:void 0,a)}})}),mt.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),mt.parseJSON=JSON.parse,r=[],i=function(){return mt}.apply(e,r),!(void 0!==i&&(t.exports=i));var Je=o.jQuery,Ye=o.$;return mt.noConflict=function(t){return o.$===mt&&(o.$=Ye),t&&o.jQuery===mt&&(o.jQuery=Je),mt},a||(o.jQuery=o.$=mt),mt})}).call(e,n(32)(t))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(1),a=function(){function t(e){r(this,t),this.zoomFactor=.1,this.paper=e.paper,this.MIN_SIZE=40,this.imageWidth=parseInt(this.paper.select(".main-image").attr("width")),this.imageHeight=parseInt(this.paper.select(".main-image").attr("height")),this.viewport={width:parseInt(this.paper.attr("width")),height:parseInt(this.paper.attr("height"))},this.scale=1,this.paper.attr({stroke:2,fill:"blue"}),this.disableDrag=!1,this.imgMinSize=Math.min(this.imageWidth,this.imageHeight),this.lastPosition=[],this.updateViewBox([0,0,this.imageWidth,this.imageHeight])}return i(t,[{key:"testShowCenter",value:function(t,e){this.center&&this.center.remove(),this.center=this.paper.rect(t-3,e-3,20,20),this.center.attr({fill:"red"})}},{key:"drawTestRectangle",value:function(t,e,n,r){var i=t-n/2,o=e-r/2;this.paper.rect(i,o,n,r)}},{key:"zoomIn",value:function(){if(9===this.scale)return void this.scale--;var t=this.currentViewBox[0]+this.currentViewBox[2]/2,e=this.currentViewBox[1]+this.currentViewBox[3]/2,n=this.zoomFactor*this.scale,r=this.imgMinSize-this.imgMinSize*n,i=r;this.currentViewBox[0]=t-r/2,this.currentViewBox[1]=e-i/2,this.currentViewBox[2]=r,this.currentViewBox[3]=i,this.scale++,this.updateViewBox()}},{key:"updateViewBox",value:function(t,e){if(e="boolean"!=typeof e||e,t&&4!=t.length)throw new Error("Provided currentViewBox is not valid!");if(t&&(this.currentViewBox=t),this.paper.attr({viewBox:this.currentViewBox}),!e)return!1;var n=this;o.eventEmitter.emit("zoomChanged",{updateFunction:function(t){n.updateViewBox(t,!1)},zoomFactor:this.getZoomFactor(),viewport:this.viewport,currentScale:this.scale,imageSize:{width:this.imageWidth,height:this.imageHeight},minSize:Math.min(this.imageWidth,this.imageHeight),currentViewBox:this.currentViewBox.slice()})}},{key:"getZoomFactor",value:function(){return{x:this.viewport.width/this.currentViewBox[2],y:this.viewport.height/this.currentViewBox[3]}}},{key:"onStart",value:function(t,e,n){this.lastPosition[0]=this.currentViewBox[0],this.lastPosition[1]=this.currentViewBox[1],"drawingHandler"===n.target.className.baseVal&&(this.disableDrag=!0)}},{key:"canDrag",value:function(){return!this.disableDrag}},{key:"onStop",value:function(){this.disableDrag=!1}},{key:"onDrag",value:function(t,e,n,r,i){if(!this.canDrag())return!0;var o=this.lastPosition[0]-t,a=this.lastPosition[1]-e;o+this.currentViewBox[2]>=this.viewport.width&&(o=this.viewport.width-this.currentViewBox[2]),a+this.currentViewBox[3]>=this.viewport.height&&(a=this.viewport.height-this.currentViewBox[3]),o<=0&&(o=0),a<=0&&(a=0),this.currentViewBox[0]=o,this.currentViewBox[1]=a,this.updateViewBox()}},{key:"reset",value:function(){this.scale=1,this.currentViewBox=[0,0,this.imageWidth,this.imageHeight],this.updateViewBox()}},{key:"zoomOut",value:function(){if(1==this.scale)return!1;var t=this.currentViewBox[0]+this.currentViewBox[2]/2,e=this.currentViewBox[1]+this.currentViewBox[3]/2,n=this.zoomFactor*(this.scale-1),r=this.imgMinSize-this.imgMinSize*n,i=r,o=t-r/2,a=e-i/2;this.currentViewBox[0]=o,this.currentViewBox[1]=a,this.currentViewBox[2]=r,this.currentViewBox[3]=i,this.updateViewBox(),this.scale--}}]),t}();e["default"]={enable_zoom:function(t){return new a(t)}}},function(t,e,n){var r,i;r=n(11);var o=n(44);i=r||{},i.__esModule&&(i=i["default"]),"function"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,t.exports=r||i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(35),o=r(i),a=n(2),s=r(a),u=n(6),c=r(u);e["default"]={el:"#drawing-zone",MODE_RECT:"RECT",MODE_FREE:"FREE",ZOOM_IN:"in",ZOOM_OUT:"out",components:{typeahead:s["default"],zoomview:c["default"]},data:{mode:"",isRect:!0,normalizePath:"",readOnly:!1,formView:!0,useClipPath:!1,transformMatrix:"",fragmentPath:"",canZoom:!0,displayMask:!1},mounted:function(){var t=this;this.initialDrawingMode=null,this.drawingComponent=o["default"].init({wrapperId:"#iconolab-image-wrapper",actionWrapper:"#action-wrapper",readOnly:!1,onDrawingModeChange:function(e){t.setDrawingMode(e,!1)}}),this.$refs.zoomview.setZoomTarget(this.drawingComponent.getPaper()),this.showEditor(),this.drawingComponent.createTestHandler(10,20,50)},methods:{computeCentreredViewBox:function(){var t=this.$refs.zoomSvg,e=[],n=t.getAttribute("width"),r=t.getAttribute("height"),i=n/100,o=r/100,a=this.drawingComponent.getShapeBBox();return e=[(a.x-1)*i,(a.y-1)*o,(a.w+2)*i,(a.h+2)*o],e.join(" ")},computeZoomedViewBox:function(){var t=[],e=this.$refs.zoomSvg,n=this.drawingComponent.getShapeBBox(),r=e.getAttribute("width"),i=e.getAttribute("height"),o=r/100,a=i/100;n.x=n.x*o,n.y=n.y*a,n.w=n.w*o,n.h=n.h*a;var s=r/i;return n.w>n.h?(n.y=Math.max(0,n.y-(n.w*s-n.h)/2),n.h=n.w*s):(n.x=Math.max(0,n.x-(n.h/s-n.w)/2),n.w=n.h/s),t=[n.x,n.y,n.w,n.h],!!n&&t.join(" ")},zoom:function(t){var e=this.$refs.smallSvgWrapper;if(this.$options.ZOOM_OUT===t){var n=[0,0,e.getAttribute("width"),e.getAttribute("height")];e.setAttribute("viewBox",n.join(" ")),this.canZoom=!0}this.$options.ZOOM_IN===t&&(e.setAttribute("viewBox",this.computeCentreredViewBox()),this.canZoom=!1)},setDrawingMode:function(t,e){this.initialDrawingMode||(this.initialDrawingMode=t);var e="boolean"!=typeof e||e;this.mode=this.$options["MODE_"+t],this.isRect=this.mode===this.$options.MODE_RECT,e&&this.drawingComponent.setDrawingMode(this.mode)},cancel:function(){this.formView=!0;var t=this.$refs.currentPath.getAttribute("d");t.length&&this.initialDrawingMode&&(t+=";"+this.initialDrawingMode,this.drawingComponent.setPath(t))},highLightZone:function(){this.displayMask?this.displayMask=!1:this.displayMask=!0},displayEditedPath:function(){this.drawingComponent.getPath()},resetZoom:function(){this.zoom(this.$options.ZOOM_OUT)},showEditor:function(){this.formView=!0,this.resetZoom()},showForm:function(){this.normalizePath=this.drawingComponent.getPath();var t=this.$refs.smallImage;this.formView=!0;var e=t.getAttribute("width")/100,n=t.getAttribute("height")/100,r=[e,0,0,n,0,0].join(",");this.transformMatrix="matrix("+r+")",this.fragmentPath=this.normalizePath.split(";")[0]},clear:function(){this.drawingComponent.clear()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=r(i);e["default"]={data:function(){return{}},components:{Typeahead:o["default"]},mounted:function(){this.targetKeyMap={title:"proposal-title",desc:"proposal-description",frag:"proposal-fragment"},this.targetFieldTypeMap={title:"input",desc:"input",frag:"frag"},this.originalValues={title:"",desc:"",frag:""}},methods:{pickProposition:function(t,e,n){var r="",i=document.getElementById(e),o=this.$refs[this.targetKeyMap[n]],a=this.targetFieldTypeMap[n];if(!a)throw new Error("A target type must be provided...");if("input"===a&&(r=o.value,o.value=i.value),"frag"===a){r=o.getAttribute("d");var s=i.getAttribute("d");o.getAttribute("data-path-type");o.setAttribute("d",s);var u=i.getAttribute("data-path-type");u=u||"FREE";var c=this.$refs["fragment-field"];c.value=s+";"+u}this.preserveOriginalValue(n,r)},pickTag:function(t,e){var n=this.$refs[e],r=this.$refs["proposal-tags"];this.preserveOriginalValue("proposal-tags",r.tags),r.setTags(n.tags,!0)},preserveOriginalValue:function(t,e){this.originalValues[t]||(this.originalValues[t]=e)},hightlightSource:function(t){t.className+="highlight"},save:function(){alert("this is it ... ")}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e["default"]={data:function(){return{tags:[],readOnly:!1}},methods:{removeTag:function(t){this.tags.$remove(t),this.normalizeSelectedTags()},reset:function(){this.tags=[],this.normalizeSelectedTags()},tagAlreadyExists:function(t){var e=!1,n=this.tags.find(function(e){if(e.tag_link){if(e.tag_link===t.tag_link)return!0}else if(e.tag_label===t.tag_label)return!0});if(n){var r=this.$refs[n.id][0];r.style.border="1px solid red",setTimeout(function(){r.style.border=""},1e3),e=!0}return e},setTags:function(t){Array.isArray(t)||new Error("setTags expects an array!");var e=this;t.map(function(t){e.addTag(t)})},addTag:function(t){return!this.tagAlreadyExists(t)&&void(t&&t.hasOwnProperty("tag_label")&&(t.id||(t.id=(0,r.generateId)("tag_")),this.tags.push(t),this.normalizeSelectedTags()))},normalizeSelectedTags:function(){var t=[];this.tags.map(function(e){var n={};n.tag_input="string"==typeof e.tag_link&&e.tag_link.length?e.tag_link:e.tag_label,n.accuracy=e.accuracy,n.relevancy=e.relevancy,t.push(n)}),this.$parent.$data.selectedTags=JSON.stringify(t)},updateAccuracy:function(t,e){e.accuracy=t.target.value,this.normalizeSelectedTags()},updatePertinence:function(t,e){e.relevancy=t.target.value,this.normalizeSelectedTags()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(29),o=r(i),a=n(42),s=r(a),u="http://lookup.dbpedia.org/api/search/PrefixSearch?MaxHits=5",c="http://fr.wikipedia.org/w/api.php",l={reset:o["default"].methods.reset},f=function(t,e){var n=jQuery.Deferred();jQuery.getJSON(t,e).done(function(t){var e={};e.data=t,n.resolve(e)}).fail(n.reject);return n.promise()};e["default"]={mixins:[o["default"]],components:{taglist:s["default"]},props:["tags","read-only"],mounted:function(){this.taglist=this.$refs.taglist,this.taglist.readOnly=this.readOnly,this.setTags(this.tags)},data:function(){return{src:u,limit:7,minChars:2,showAddButton:!1,datasource:"wikipedia",selectedTags:"[]",items:[],queryParamName:"QueryString"}},methods:{setTags:function(t,e){t=Array.isArray(t)?t:[],e="boolean"==typeof e&&e,e&&this.taglist.reset(),this.taglist.setTags(t)},checkQuery:function(){0===this.query.length&&this.reset()},fetch:function(){if("wikipedia"===this.datasource)return this.fetchWikiPedia();var t={};return t[this.queryParamName]=this.query,f(this.src,query)},fetchWikiPedia:function(){this.src=c;var t={action:"opensearch",format:"json",search:this.query},e=jQuery.Deferred();return jQuery.ajax({url:this.src,data:t,dataType:"jsonp",success:function(t){var n={};n.data=t,e.resolve(n)}}),e.promise()},reset:function(){this.showAddButton=!1,l.reset.call(this)},prepareWikipediaResponse:function(t){var e=[];if(4!==t.length)return e;var n=t[1],r=t[3];return n.length===r.length?(n.map(function(t,n){var i={};i.tag_label=t;var o=r[n];o=o.replace("https://fr.wikipedia.org/wiki/","http://fr.dbpedia.org/resource/"),i.tag_link=decodeURI(o),i.accuracy=1,i.relevancy=1,e.push(i)}),e):void 0},prepareResponseData:function(t){var e="string"==typeof t?JSON.parse(t):t;return"wikipedia"===this.datasource&&(e=this.prepareWikipediaResponse(e)),Array.isArray(e)&&!e.length&&(this.showAddButton=!0),e},addTag:function(){if(this.hasItems)return!1;var t={tag_label:this.query,accuracy:1,relevancy:1};this.$refs.taglist.addTag(t),this.reset()},onHit:function(t){this.$refs.taglist.addTag(t),this.reset()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(5),a=r(o),s=n(3),u=r(s);e["default"]={props:["image-url","image-width","image-height","zoomTarget","main-image-id"],mounted:function(){this.root=new u["default"](this.$refs["root-svg"]),this.handler=this.root.select("#zoom-handler"),this.image=this.root.select("#small-image"),this.root.attr({width:101,height:101});var t=parseInt(this.image.attr("width")),e=parseInt(this.image.attr("height"));this.root.attr({viewBox:[0,0,t,e]}),this.imgMinSize=Math.min(t,e),this.handlerSize=20,this.handler.attr({width:this.handlerSize,height:this.handlerSize}),this.currentViewBox=null,this.currentViewport=null,this.updateFunction=null;var n=document.getElementById("zoomTarget");n&&this.setZoomTarget(n),this.handleEvents()},data:function(){return{showHandler:!1}},methods:{setZoomTarget:function(t){if(t.hasOwnProperty("type")&&"svg"===t.type)this.paper=t;else{this.paper=new u["default"](t);var e=this.paper.select("#"+this.mainImageId);if(!e)throw new Error("A main image wasn't found.")}this.zoomHandler=a["default"].enable_zoom(this.paper)},incraseDrawingZoom:function(){this.zoomHandler.zoomIn()},resetDrawingZoom:function(){this.zoomHandler.reset()},decreaseDrawingZoom:function(){this.zoomHandler.zoomOut()},handleEvents:function(){i.eventEmitter.on("zoomChanged",this.handleZoomChanged.bind(this));var t=this;this.handler.drag(function(e,n){var r=this.getBBox(),i=this.data("startPosition").x,o=this.data("startPosition").y,a=parseInt(t.image.attr("width")),s=parseInt(t.image.attr("height")),u=i+e,c=o+n;u+r.w>=a&&(u=a-r.w),c+r.h>=s&&(c=s-r.h),u=u<0?0:u,c=c<0?0:c;var l="T"+[u,c];this.attr("transform",l),t.notifyMove(this.getBBox().x,this.getBBox().y)},function(){this.data("startPosition",{x:this.getBBox().x,y:this.getBBox().y}),this.data("origTransform",this.transform().local)},function(){})},moveHandlerToCenter:function(t,e){cx=cx?cx:this.width/2,cy=cy?cy:this.height/2;var n=cx-this.handler.getBBox().w/2,r=cy-this.handler.getBBox().h/2;this.handler.transform("T"+[n,r])},notifyMove:function(t,e){if(i.eventEmitter.emit("moveZoomHandler",{x:t,y:e,viewport:{width:this.image.attr("width"),height:this.image.attr("height")}}),!this.currentViewBox||!this.currentViewport||"function"!=typeof this.updateFunction)return!1;var n=this.currentImageSize.width/this.image.attr("width"),r=this.currentImageSize.height/this.image.attr("height"),o=t*n,a=e*r;this.currentViewBox[0]=o,this.currentViewBox[1]=a,this.updateFunction(this.currentViewBox)},handleZoomChanged:function(t){if(1===t.currentScale)return void(this.showHandler=!1);this.showHandler=!0,this.currentViewport=t.viewport,this.currentViewBox=t.currentViewBox,this.currentImageSize=t.imageSize,this.updateFunction=t.updateFunction;var e=t.currentViewBox[2]*this.imgMinSize/t.minSize;this.handler.attr("width",e),this.handler.attr("height",e);var n=t.currentViewBox[0]*this.image.attr("width")/t.imageSize.width,r=t.currentViewBox[1]*this.image.attr("height")/t.imageSize.height;this.handler.transform("T"+[n,r])}}}},function(t,e){"use strict";t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){"use strict";var r,i=n(14),o=n(21),a=n(17),s=n(24);r=t.exports=function(t,e){var n,r,a,u,c;return arguments.length<2||"string"!=typeof t?(u=e,e=t,t=null):u=arguments[2],null==t?(n=a=!0,r=!1):(n=s.call(t,"c"),r=s.call(t,"e"),a=s.call(t,"w")),c={value:e,configurable:n,enumerable:r,writable:a},u?i(o(u),c):c},r.gs=function(t,e,n){var r,u,c,l;return"string"!=typeof t?(c=n,n=e,e=t,t=null):c=arguments[3],null==e?e=void 0:a(e)?null==n?n=void 0:a(n)||(c=n,n=void 0):(c=e,e=n=void 0),null==t?(r=!0,u=!1):(r=s.call(t,"c"),u=s.call(t,"e")),l={get:e,set:n,configurable:r,enumerable:u},c?i(o(c),l):l}},function(t,e,n){"use strict";t.exports=n(15)()?Object.assign:n(16)},function(t,e){"use strict";t.exports=function(){var t,e=Object.assign;return"function"==typeof e&&(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},function(t,e,n){"use strict";var r=n(18),i=n(23),o=Math.max;t.exports=function(t,e){var n,a,s,u=o(arguments.length,2);for(t=Object(i(t)),s=function(r){try{t[r]=e[r]}catch(i){n||(n=i)}},a=1;a<u;++a)e=arguments[a],r(e).forEach(s);if(void 0!==n)throw n;return t}},function(t,e){"use strict";t.exports=function(t){return"function"==typeof t}},function(t,e,n){"use strict";t.exports=n(19)()?Object.keys:n(20)},function(t,e){"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},function(t,e){"use strict";var n=Object.keys;t.exports=function(t){return n(null==t?t:Object(t))}},function(t,e){"use strict";var n=Array.prototype.forEach,r=Object.create,i=function(t,e){var n;for(n in t)e[n]=t[n]};t.exports=function(t){var e=r(null);return n.call(arguments,function(t){null!=t&&i(Object(t),e)}),e}},function(t,e){"use strict";t.exports=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}},function(t,e){"use strict";t.exports=function(t){if(null==t)throw new TypeError("Cannot use null or undefined");return t}},function(t,e,n){"use strict";t.exports=n(25)()?String.prototype.contains:n(26)},function(t,e){"use strict";var n="razdwatrzy";t.exports=function(){return"function"==typeof n.contains&&(n.contains("dwa")===!0&&n.contains("foo")===!1)}},function(t,e){"use strict";var n=String.prototype.indexOf;t.exports=function(t){return n.call(this,t,arguments[1])>-1}},function(t,e,n){"use strict";var r,i,o,a,s,u,c,l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},f=n(13),h=n(22),d=Function.prototype.apply,p=Function.prototype.call,v=Object.create,g=Object.defineProperty,m=Object.defineProperties,y=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0};r=function(t,e){var n;return h(e),y.call(this,"__ee__")?n=this.__ee__:(n=b.value=v(null),g(this,"__ee__",b),b.value=null),n[t]?"object"===l(n[t])?n[t].push(e):n[t]=[n[t],e]:n[t]=e,this},i=function(t,e){var n,i;return h(e),i=this,r.call(this,t,n=function(){o.call(i,t,n),d.call(e,this,arguments)}),n.__eeOnceListener__=e,this},o=function(t,e){var n,r,i,o;if(h(e),!y.call(this,"__ee__"))return this;if(n=this.__ee__,!n[t])return this;if(r=n[t],"object"===("undefined"==typeof r?"undefined":l(r)))for(o=0;i=r[o];++o)i!==e&&i.__eeOnceListener__!==e||(2===r.length?n[t]=r[o?0:1]:r.splice(o,1));else r!==e&&r.__eeOnceListener__!==e||delete n[t];return this},a=function(t){var e,n,r,i,o;if(y.call(this,"__ee__")&&(i=this.__ee__[t]))if("object"===("undefined"==typeof i?"undefined":l(i))){for(n=arguments.length,o=new Array(n-1),e=1;e<n;++e)o[e-1]=arguments[e];for(i=i.slice(),e=0;r=i[e];++e)d.call(r,this,o)}else switch(arguments.length){case 1:p.call(i,this);break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),e=1;e<n;++e)o[e-1]=arguments[e];d.call(i,this,o)}},s={on:r,once:i,off:o,emit:a},u={on:f(r),once:f(i),off:f(o),emit:f(a)},c=m({},u),t.exports=e=function(t){return null==t?v(c):m(Object(t),u)},e.methods=s},function(t,e){/*!
* vue-resource v0.9.1
* https://github.com/vuejs/vue-resource
* Released under the MIT License.
@@ -45,5 +44,5 @@
*/
!function(o,s){"object"===a(e)&&"undefined"!=typeof t?t.exports=s():(r=s,i="function"==typeof r?r.call(e,n,e,t):r,!(void 0!==i&&(t.exports=i)))}(void 0,function(){function t(t){return null==t?"":"object"===("undefined"==typeof t?"undefined":a(t))?JSON.stringify(t,null,2):String(t)}function e(t){var e=parseFloat(t,10);return e||0===e?e:t}function n(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function r(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function i(t,e){return vr.call(t,e)}function s(t){return"string"==typeof t||"number"==typeof t}function u(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function c(t,e){return function(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}}function l(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function f(t,e){for(var n in e)t[n]=e[n];return t}function h(t){return null!==t&&"object"===("undefined"==typeof t?"undefined":a(t))}function d(t){return wr.call(t)===_r}function p(t){for(var e=t[0]||{},n=1;n<t.length;n++)t[n]&&f(e,t[n]);return e}function v(){}function g(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}function m(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function y(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function b(t){if(!Tr.test(t)){var e=function(){var e=t.split(".");return{v:function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}();return"object"===("undefined"==typeof e?"undefined":a(e))?e.v:void 0}}function x(t){Ir.target&&Hr.push(Ir.target),Ir.target=t}function w(){Ir.target=Hr.pop()}function _(){qr.length=0,zr.length=0,Vr={},Ur={},Wr=!1}function C(){return T(qr.sort(k)),T(zr),qr.length?C():($r&&kr.devtools&&$r.emit("flush"),void _())}function k(t,e){return t.id-e.id}function T(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.id;if(Vr[r]=null,n.run(),null!=Vr[r]&&(Ur[r]=(Ur[r]||0)+1,Ur[r]>kr._maxUpdateCount)){ui('You may have an infinite update loop for watcher with expression "'+n.expression+'"',n.vm);break}}t.length=0}function A(t){var e=t.id;if(null==Vr[e]){var n=t.user?zr:qr;Vr[e]=!0,n.push(t),Wr||(Wr=!0,Mr(C))}}function S(t,e){var n=void 0,r=void 0;e||(e=Zr,e.clear());var i=Array.isArray(t),o=h(t);if((i||o)&&Object.isExtensible(t)){if(t.__ob__){var a=t.__ob__.dep.id;if(e.has(a))return;e.add(a)}if(i)for(n=t.length;n--;)S(t[n],e);else if(o)for(r=Object.keys(t),n=r.length;n--;)S(t[r[n]],e)}}function $(t,e){t.__proto__=e}function E(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];y(t,o,e[o])}}function j(t){if(h(t)){var e=void 0;return i(t,"__ob__")&&t.__ob__ instanceof ti?e=t.__ob__:Kr.shouldConvert&&!kr._isServer&&(Array.isArray(t)||d(t))&&Object.isExtensible(t)&&!t._isVue&&(e=new ti(t)),e}}function O(t,e,n,r){var i=new Ir,o=Object.getOwnPropertyDescriptor(t,e);if(!o||o.configurable!==!1){var a=o&&o.get,s=o&&o.set,u=j(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;if(Ir.target&&(i.depend(),u&&u.dep.depend(),Array.isArray(e)))for(var r,o=0,s=e.length;o<s;o++)r=e[o],r&&r.__ob__&&r.__ob__.dep.depend();return e},set:function(e){var o=a?a.call(t):n;e!==o&&(r&&r(),s?s.call(t,e):n=e,u=j(e),i.notify())}})}}function N(t,e,n){if(Array.isArray(t))return t.splice(e,1,n),n;if(i(t,e))return void(t[e]=n);var r=t.__ob__;return t._isVue||r&&r.vmCount?void ui("Avoid adding reactive properties to a Vue instance or its root $data at runtime - delcare it upfront in the data option."):r?(O(r.value,e,n),r.dep.notify(),n):void(t[e]=n)}function D(t,e){var n=t.__ob__;return t._isVue||n&&n.vmCount?void ui("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):void(i(t,e)&&(delete t[e],n&&n.dep.notify()))}function M(t){t._watchers=[],P(t),F(t),B(t),R(t),I(t)}function P(t){var e=t.$options.props,n=t.$options.propsData;if(e){var r=t.$options._propKeys=Object.keys(e),i=!t.$parent;Kr.shouldConvert=i;for(var o=function(e){var i=r[e];O(t,i,At(t,i,n),function(){t.$parent&&!Kr.isSettingProps&&ui("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's "+('value. Prop being mutated: "'+i+'"'),t)})},a=0;a<r.length;a++)o(a);Kr.shouldConvert=!0}}function F(t){var e=t.$options.data;e=t._data="function"==typeof e?e.call(t):e||{},d(e)||(e={},ui("data functions should return an object.",t));for(var n=Object.keys(e),r=t.$options.props,o=n.length;o--;)r&&i(r,n[o])?ui('The data property "'+n[o]+'" is already declared as a prop. Use prop default value instead.',t):z(t,n[o]);j(e),e.__ob__&&e.__ob__.vmCount++}function B(t){var e=t.$options.computed;if(e)for(var n in e){var r=e[n];"function"==typeof r?(ei.get=L(r,t),ei.set=v):(ei.get=r.get?r.cache!==!1?L(r.get,t):c(r.get,t):v,ei.set=r.set?c(r.set,t):v),Object.defineProperty(t,n,ei)}}function L(t,e){var n=new Gr(e,t,v,{lazy:!0});return function(){return n.dirty&&n.evaluate(),Ir.target&&n.depend(),n.value}}function R(t){var e=t.$options.methods;if(e)for(var n in e)t[n]=c(e[n],t)}function I(t){var e=t.$options.watch;if(e)for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)H(t,n,r[i]);else H(t,n,r)}}function H(t,e,n){var r=void 0;d(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function q(t){var e={};e.get=function(){return this._data},e.set=function(t){ui("Avoid replacing instance root $data. Use nested data properties instead.",this)},Object.defineProperty(t.prototype,"$data",e),t.prototype.$watch=function(t,e,n){var r=this;n=n||{},n.user=!0;var i=new Gr(r,t,e,n);return n.immediate&&e.call(r,i.value),function(){i.teardown()}}}function z(t,e){m(e)||Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return t._data[e]},set:function(n){t._data[e]=n}})}function V(t,e){if("function"==typeof t&&(t=t()),s(t))return[U(t)];if(Array.isArray(t)){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r],a=n[n.length-1];Array.isArray(o)?n.push.apply(n,V(o)):s(o)?a&&a.text?a.text+=String(o):n.push(U(o)):o instanceof ni&&(o.text&&a&&a.text?a.text+=o.text:(e&&o.tag&&(o.ns=e),n.push(o)))}return n}}function U(t){return new ni((void 0),(void 0),(void 0),String(t))}function W(t,e,n,r){var i=void 0,o=void 0,a=void 0,s=void 0,u=void 0,c=void 0;for(i in t)if(o=t[i],a=e[i])if(Array.isArray(a)){a.length=o.length;for(var l=0;l<a.length;l++)a[l]=o[l];t[i]=a}else a.fn=o,t[i]=a;else c="!"===i.charAt(0),u=c?i.slice(1):i,Array.isArray(o)?n(u,o.invoker=X(o),c):(s=o,o=t[i]={},o.fn=s,n(u,o.invoker=G(o),c));for(i in e)t[i]||(u="!"===i.charAt(0)?i.slice(1):i,r(u,e[i].invoker))}function X(t){return function(e){for(var n=1===arguments.length,r=0;r<t.length;r++)n?t[r](e):t[r].apply(null,arguments)}}function G(t){return function(e){var n=1===arguments.length;n?t.fn(e):t.fn.apply(null,arguments)}}function Z(t){var e=t.$options;t.$parent=e.parent,t.$root=t.$parent?t.$parent.$root:t,t.$parent&&!e._abstract&&t.$parent.$children.push(t),t.$children=[],t.$refs={},t._watcher=null,t._inactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function J(t){t.prototype._mount=function(t,e){var n=this;return n.$el=t,n.$options.render||(n.$options.render=ri,n.$options.template?ui("You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",n):ui("Failed to mount component: template or render function not defined.",n)),Y(n,"beforeMount"),n._watcher=new Gr(n,function(){n._update(n._render(),e)},v),e=!1,n.$root===n&&(n._isMounted=!0,Y(n,"mounted")),n},t.prototype._update=function(t,e){var n=this;n._isMounted&&Y(n,"beforeUpdate");var r=n.$el;n._vnode?n.$el=n.__patch__(n._vnode,t):n.$el=n.__patch__(n.$el,t,e),n._vnode=t,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);var i=n.$options._parentVnode;i&&(i.elm=n.$el,n.$parent&&i===n.$parent._vnode&&(n.$parent.$el=n.$el)),n._isMounted&&Y(n,"updated")},t.prototype._updateFromParent=function(t,e,n,r){var i=this;if(i.$options._parentVnode=n,i.$options._renderChildren=r,t&&i.$options.props){Kr.shouldConvert=!1,Kr.isSettingProps=!0;for(var o=i.$options._propKeys||[],a=0;a<o.length;a++){var s=o[a];i[s]=At(i,s,t)}Kr.shouldConvert=!0,Kr.isSettingProps=!1}if(e){var u=i.$options._parentListeners;i.$options._parentListeners=e,i._updateListeners(e,u)}},t.prototype.$forceUpdate=function(){var t=this;if(t._watcher&&t._watcher.update(),t._watchers.length)for(var e=0;e<t._watchers.length;e++)t._watchers[e].update(!0)},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Y(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options._abstract||r(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,Y(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null)}}}function Y(t,e){t.$emit("pre-hook:"+e);var n=t.$options[e];if(n)for(var r=0,i=n.length;r<i;r++)n[r].call(t);t.$emit("hook:"+e)}function Q(t,e,n,r,i,o,a){if(o&&"function"!=typeof o&&ui("A component's children should be a function that returns the children array. This allows the component to track the children dependencies and optimizes re-rendering."),t){if(h(t)&&(t=mt.extend(t)),"function"!=typeof t)return void ui("Invalid Component definition: "+t,n);if(!t.cid)if(t.resolved)t=t.resolved;else if(t=it(t,function(){n.$forceUpdate()}),!t)return;e=e||{};var s=ot(e,t);if(t.options.functional)return t.options.render.call(null,n.$createElement,s||{},V(o));st(e);var u=e.on;u&&delete e.on;var c=t.options.name||a,l=new ni("vue-component-"+t.cid+(c?"-"+c:""),e,(void 0),(void 0),(void 0),(void 0),r,i,{Ctor:t,propsData:s,listeners:u,parent:n,tag:a,children:o});return l}}function K(t){var e=t.componentOptions,n={_isComponent:!0,parent:e.parent,propsData:e.propsData,_componentTag:e.tag,_parentVnode:t,_parentListeners:e.listeners,_renderChildren:e.children},r=t.data.inlineTemplate;return r&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.Ctor(n)}function tt(t,e){if(!t.child){var n=t.child=K(t);n.$mount(e?t.elm:void 0,e)}}function et(t,e){var n=e.componentOptions;e.child=t.child,e.child._updateFromParent(n.propsData,n.listeners,e,n.children)}function nt(t){t.child._isMounted||(t.child._isMounted=!0,Y(t.child,"mounted")),t.data.keepAlive&&(t.child._inactive=!1,Y(t.child,"activated"))}function rt(t){t.child._isDestroyed||(t.data.keepAlive?(t.child._inactive=!0,Y(t.child,"deactivated")):t.child.$destroy())}function it(t,e){if(t.requested)t.pendingCallbacks.push(e);else{var n=function(){t.requested=!0;var n=t.pendingCallbacks=[e],r=!0;return t(function(e){if(h(e)&&(e=mt.extend(e)),t.resolved=e,!r)for(var i=0,o=n.length;i<o;i++)n[i](e)},function(e){ui("Failed to resolve async component: "+t+(e?"\nReason: "+e:""))}),r=!1,{v:t.resolved}}();if("object"===("undefined"==typeof n?"undefined":a(n)))return n.v}}function ot(t,e){var n=e.options.props;if(n){var r={},i=t.attrs,o=t.props,a=t.staticAttrs;if(!i&&!o&&!a)return r;for(var s in n){var u=xr(s);at(r,i,s,u)||at(r,o,s,u)||at(r,a,s,u)}return r}}function at(t,e,n,r){if(e){if(i(e,n))return t[n]=e[n],delete e[n],!0;if(i(e,r))return t[n]=e[r],delete e[r],!0}return!1}function st(t){if(t.hook)for(var e=0;e<oi.length;e++){var n=oi[e],r=t.hook[n],i=ii[n];t.hook[n]=r?ut(i,r):i}else t.hook=ii}function ut(t,e){return function(n,r){t(n,r),e(n,r)}}function ct(t,e,n){return e&&(Array.isArray(e)||"object"!==("undefined"==typeof e?"undefined":a(e)))&&(n=e,e=void 0),lt.call(this,t,e,n)}function lt(t,e,n){var r=this._self,i=ai.activeInstance,o=r!==i?i:void 0;if(!i)return void ui("createElement cannot be called outside of component render functions.");if(!t)return ri();if("string"==typeof t){var a=kr.getTagNamespace(t),s=void 0;return kr.isReservedTag(t)?new ni(t,e,V(n,a),(void 0),(void 0),a,r,o):(s=Tt(r.$options,"components",t))?Q(s,e,i,r,o,n,t):(a||kr.ignoredElements&&kr.ignoredElements.indexOf(t)>-1||!kr.isUnknownElement(t)||ui("Unknown custom element: <"+t+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.'),new ni(t,e,V(n,a),(void 0),(void 0),a,r,o))}return Q(t,e,i,r,o,n)}function ft(t){t._vnode=null,t._staticTrees=null,t.$slots={},t.$createElement=c(ct,t),t.$options.el&&t.$mount(t.$options.el)}function ht(n){n.prototype.$nextTick=function(t){Mr(t,this)},n.prototype._render=function(){var t=this,e=ai.activeInstance;ai.activeInstance=t;var n=t.$options,r=n.render,i=n.staticRenderFns,o=n._renderChildren,a=n._parentVnode;i&&!this._staticTrees&&(this._staticTrees=[]),o&&dt(t,o);var s=r.call(t._renderProxy,t.$createElement);return s instanceof ni||(Array.isArray(s)&&ui("Multiple root nodes returned from render function. Render function should return a single root node.",t),s=ri()),s.parent=a,ai.activeInstance=e,s},n.prototype._h=ct,n.prototype._s=t,n.prototype._n=e,n.prototype._m=function(t){return this._staticTrees[t]||(this._staticTrees[t]=this.$options.staticRenderFns[t].call(this._renderProxy))};var r=function(t){return t};n.prototype._f=function(t){return Tt(this.$options,"filters",t,!0)||r},n.prototype._l=function(t,e){var n=void 0,r=void 0,i=void 0,o=void 0,a=void 0;if(Array.isArray(t))for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(h(t))for(o=Object.keys(t),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=e(t[a],a,r);return n},n.prototype._b=function(t,e){if(e)if(h(e)){Array.isArray(e)&&(e=p(e));var n=t.data;for(var r in e){var i=kr.mustUseProp(r)?n.props||(n.props={}):n.attrs||(n.attrs={});i[r]=e[r]}}else ui("v-bind without argument expects an Object or Array value",this)},n.prototype._k=function(t){return kr.keyCodes[t]}}function dt(t,e){if(e){for(var n=V(e)||[],r={},i=[],o=void 0,a=void 0,s=0,u=n.length;s<u;s++)if(a=n[s],o=a.data&&a.data.slot){var c=r[o]||(r[o]=[]);"template"===a.tag?c.push.apply(c,a.children):c.push(a)}else i.push(a);!i.length||1===i.length&&" "===i[0].text||(r["default"]=i),t.$slots=r}}function pt(t){t._events=Object.create(null);var e=t.$options._parentListeners,n=c(t.$on,t),r=c(t.$off,t);t._updateListeners=function(t,e){W(t,e||{},n,r)},e&&t._updateListeners(e)}function vt(t){t.prototype.$on=function(t,e){var n=this;return(n._events[t]||(n._events[t]=[])).push(e),n},t.prototype.$once=function(t,e){function n(){r.$off(t,n),e.apply(r,arguments)}var r=this;return n.fn=e,r.$on(t,n),r},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;var r=n._events[t];if(!r)return n;if(1===arguments.length)return n._events[t]=null,n;for(var i=void 0,o=r.length;o--;)if(i=r[o],i===e||i.fn===e){r.splice(o,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?l(n):n;for(var r=l(arguments,1),i=0,o=n.length;i<o;i++)n[i].apply(e,r)}return e}}function gt(t){function e(t,e){var r=t.$options=Object.create(n(t));r.parent=e.parent,r.propsData=e.propsData,r._parentVnode=e._parentVnode,r._parentListeners=e._parentListeners,r._renderChildren=e._renderChildren,r._componentTag=e._componentTag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}function n(t){var e=t.constructor,n=e.options;if(e["super"]){var r=e["super"].options,i=e.superOptions;r!==i&&(e.superOptions=r,n=e.options=kt(r,e.extendOptions),n.name&&(n.components[n.name]=e))}return n}t.prototype._init=function(t){var r=this;r._uid=si++,r._isVue=!0,t&&t._isComponent?e(r,t):r.$options=kt(n(r),t||{},r),Lr(r),r._self=r,Z(r),pt(r),Y(r,"beforeCreate"),M(r),Y(r,"created"),ft(r)}}function mt(t){this._init(t)}function yt(t,e){var n=void 0,r=void 0,o=void 0;for(n in e)r=t[n],o=e[n],i(t,n)?h(r)&&h(o)&&yt(r,o):N(t,n,o);return t}function bt(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function xt(t,e){var n=Object.create(t||null);return e?f(n,e):n}function wt(t){if(t.components){var e=t.components,n=void 0;for(var r in e){var i=r.toLowerCase();pr(i)||kr.isReservedTag(i)?ui("Do not use built-in or reserved HTML elements as component id: "+r):(n=e[r],d(n)&&(e[r]=mt.extend(n)))}}}function _t(t){var e=t.props;if(e){var n={},r=void 0,i=void 0,o=void 0;if(Array.isArray(e))for(r=e.length;r--;)i=e[r],"string"==typeof i?(o=mr(i),n[o]={type:null}):ui("props must be strings when using array syntax.");else if(d(e))for(var a in e)i=e[a],o=mr(a),n[o]=d(i)?i:{type:i};t.props=n}}function Ct(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}function kt(t,e,n){function r(r){var i=li[r]||fi;c[r]=i(t[r],e[r],n,r)}wt(e),_t(e),Ct(e);var o=e["extends"];if(o&&(t="function"==typeof o?kt(t,o.options,n):kt(t,o,n)),e.mixins)for(var a=0,s=e.mixins.length;a<s;a++){var u=e.mixins[a];u.prototype instanceof mt&&(u=u.options),t=kt(t,u,n)}var c={},l=void 0;for(l in t)r(l);for(l in e)i(t,l)||r(l);return c}function Tt(t,e,n,r){if("string"==typeof n){var i=t[e],o=i[n]||i[mr(n)]||i[yr(mr(n))];return r&&!o&&ui("Failed to resolve "+e.slice(0,-1)+": "+n,t),o}}function At(t,e,n){if(t.$options.props&&n){var r=t.$options.props[e],o=!i(n,e),a=n[e];return r.type===Boolean&&(o&&!i(r,"default")?a=!1:""!==a&&a!==xr(e)||(a=!0)),void 0===a&&(a=St(t,r,e),Kr.shouldConvert=!0,j(a),Kr.shouldConvert=!1),$t(r,e,a,t,o),a}}function St(t,e,n){if(i(e,"default")){var r=e["default"];return h(r)&&ui('Invalid default value for prop "'+n+'": Props with type Object/Array must use a factory function to return the default value.',t),"function"==typeof r&&e.type!==Function?r.call(t):r}}function $t(t,e,n,r,i){if(t.required&&i)return void ui('Missing required prop: "'+e+'"',r);if(null!=n||t.required){var o=t.type,a=!o,s=[];if(o){Array.isArray(o)||(o=[o]);for(var u=0;u<o.length&&!a;u++){var c=Et(n,o[u]);s.push(c.expectedType),a=c.valid}}if(!a)return void ui('Invalid prop: type check failed for prop "'+e+'". Expected '+s.map(yr).join(", ")+", got "+Object.prototype.toString.call(n).slice(8,-1)+".",r);var l=t.validator;l&&(l(n)||ui('Invalid prop: custom validator check failed for prop "'+e+'".',r))}}function Et(t,e){var n=void 0,r=void 0;return e===String?(r="string",n=("undefined"==typeof t?"undefined":a(t))===r):e===Number?(r="number",n=("undefined"==typeof t?"undefined":a(t))===r):e===Boolean?(r="boolean",n=("undefined"==typeof t?"undefined":a(t))===r):e===Function?(r="function",n=("undefined"==typeof t?"undefined":a(t))===r):e===Object?(r="Object",n=d(t)):e===Array?(r="Array",n=Array.isArray(t)):(r=e.name||e.toString(),n=t instanceof e),{valid:n,expectedType:r}}function jt(t){t.use=function(t){if(!t.installed){var e=l(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}}}function Ot(t){t.mixin=function(e){t.options=kt(t.options,e)}}function Nt(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=0===n.cid;if(r&&t._Ctor)return t._Ctor;var i=t.name||n.options.name;/^[a-zA-Z][\w-]*$/.test(i)||(ui('Invalid component name: "'+i+'". Component names can only contain alphanumeric characaters and the hyphen.'),i=null);var o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=kt(n.options,t),o["super"]=n,o.extend=n.extend,kr._assetTypes.forEach(function(t){o[t]=n[t]}),i&&(o.options.components[i]=o),o.superOptions=n.options,o.extendOptions=t,r&&(t._Ctor=o),o}}function Dt(t){kr._assetTypes.forEach(function(e){t[e]=function(n,r){return r?("component"===e&&kr.isReservedTag(n)&&ui("Do not use built-in or reserved HTML elements as component id: "+n),"component"===e&&d(r)&&(r.name=r.name||n,r=t.extend(r)),this.options[e+"s"][n]=r,r):this.options[e+"s"][n]}})}function Mt(t){var e=t&&t.componentOptions;return e&&e.Ctor.options._abstract?Mt(e.propsData.child):t}function Pt(t){var e={};e.get=function(){return kr},e.set=function(){ui("Do not replace the Vue.config object, set individual fields instead.")},Object.defineProperty(t,"config",e),t.util=hi,t.set=N,t["delete"]=D,t.nextTick=Mr,t.options=Object.create(null),kr._assetTypes.forEach(function(e){t.options[e+"s"]=Object.create(null)}),f(t.options.components,pi),jt(t),Ot(t),Nt(t),Dt(t)}function Ft(t){var e=t.data,n=void 0;return(n=t.child)&&(n=n._vnode.data)&&(e=Bt(n,e)),(n=t.parent)&&(n=n.data)&&(e=Bt(e,n)),Lt(e)}function Bt(t,e){return{staticClass:Rt(t.staticClass,e.staticClass),"class":t["class"]?[t["class"],e["class"]]:e["class"]}}function Lt(t){var e=t["class"],n=t.staticClass;return n||e?Rt(n,It(e)):""}function Rt(t,e){return t?e?t+" "+e:t:e||""}function It(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n=void 0,r=0,i=t.length;r<i;r++)t[r]&&(n=It(t[r]))&&(e+=n+" ");return e.slice(0,-1)}if(h(t)){for(var o in t)t[o]&&(e+=o+" ");return e.slice(0,-1)}return e}function Ht(t){return Si(t)?"svg":"math"===t?"math":void 0}function qt(t){if(!Sr)return!0;if(t=t.toLowerCase(),null!=$i[t])return $i[t];var e=document.createElement(t);return t.indexOf("-")>-1?$i[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:$i[t]=/HTMLUnknownElement/.test(e.toString())}function zt(t){if("string"==typeof t){var e=t;if(t=document.querySelector(t),!t)return ui("Cannot find element: "+e),document.createElement("div")}return t}function Vt(t){return document.createElement(t)}function Ut(t,e){return document.createElementNS(_i[t],e)}function Wt(t){return document.createTextNode(t)}function Xt(t,e,n){t.insertBefore(e,n)}function Gt(t,e){t.removeChild(e)}function Zt(t,e){t.appendChild(e)}function Jt(t){return t.parentNode}function Yt(t){return t.nextSibling}function Qt(t){return t.tagName}function Kt(t,e){t.textContent=e}function te(t){return t.childNodes}function ee(t,e,n){t.setAttribute(e,n)}function ne(t){return null==t}function re(t){return null!=t}function ie(t,e){return t.key===e.key&&t.tag===e.tag}function oe(t,e,n){var r=void 0,i=void 0,o={};for(r=e;r<=n;++r)i=t[r].key,re(i)&&(o[i]=r);return o}function ae(e){function n(t){return new ni(_.tagName(t).toLowerCase(),{},[],(void 0),t)}function r(t,e){function n(){0===--n.listeners&&i(t)}return n.listeners=e,n}function i(t){var e=_.parentNode(t);_.removeChild(e,t)}function o(t,e){var n=void 0,r=void 0,i=t.data;if(re(i)&&(re(n=i.hook)&&re(n=n.init)&&n(t),re(n=t.child)))return a(t,e),u(t),t.elm;var c=t.children,l=t.tag;if(re(l)){if(r=t.elm=t.ns?_.createElementNS(t.ns,l):_.createElement(l),u(t),Array.isArray(c))for(n=0;n<c.length;++n)_.appendChild(r,o(c[n],e));else s(t.text)&&_.appendChild(r,_.createTextNode(t.text));re(i)&&a(t,e)}else r=t.elm=_.createTextNode(t.text);return t.elm}function a(t,e){for(var n=0;n<x.create.length;++n)x.create[n](Pi,t);y=t.data.hook,re(y)&&(y.create&&y.create(Pi,t),y.insert&&e.push(t))}function u(t){var e=void 0;re(e=t.host)&&re(e=e.$options._scopeId)&&_.setAttribute(t.elm,e,""),re(e=t.context)&&re(e=e.$options._scopeId)&&_.setAttribute(t.elm,e,"")}function c(t,e,n,r,i,a){for(;r<=i;++r)_.insertBefore(t,o(n[r],a),e)}function l(t){var e=void 0,n=void 0,r=t.data;if(re(r))for(re(e=r.hook)&&re(e=e.destroy)&&e(t),e=0;e<x.destroy.length;++e)x.destroy[e](t);if(re(e=t.child)&&!r.keepAlive&&l(e._vnode),re(e=t.children))for(n=0;n<t.children.length;++n)l(t.children[n])}function f(t,e,n,r){for(;n<=r;++n){var i=e[n];re(i)&&(re(i.tag)?(l(i),h(i)):_.removeChild(t,i.elm))}}function h(t,e){if(e||re(t.data)){var n=x.remove.length+1;for(e?e.listeners+=n:e=r(t.elm,n),re(y=t.child)&&re(y=y._vnode)&&re(y.data)&&h(y,e),y=0;y<x.remove.length;++y)x.remove[y](t,e);re(y=t.data.hook)&&re(y=y.remove)?y(t,e):e()}else i(t.elm)}function d(t,e,n,r){for(var i=0,a=0,s=e.length-1,u=e[0],l=e[s],h=n.length-1,d=n[0],v=n[h],g=void 0,m=void 0,y=void 0,b=void 0;i<=s&&a<=h;)ne(u)?u=e[++i]:ne(l)?l=e[--s]:ie(u,d)?(p(u,d,r),u=e[++i],d=n[++a]):ie(l,v)?(p(l,v,r),l=e[--s],v=n[--h]):ie(u,v)?(p(u,v,r),_.insertBefore(t,u.elm,_.nextSibling(l.elm)),u=e[++i],v=n[--h]):ie(l,d)?(p(l,d,r),_.insertBefore(t,l.elm,u.elm),l=e[--s],d=n[++a]):(ne(g)&&(g=oe(e,i,s)),m=g[d.key],ne(m)?(_.insertBefore(t,o(d,r),u.elm),d=n[++a]):(y=e[m],y||ui("It seems there are duplicate keys that is causing an update error. Make sure each v-for item has a unique key."),y.tag!==d.tag?(_.insertBefore(t,o(d,r),u.elm),d=n[++a]):(p(y,d,r),e[m]=void 0,_.insertBefore(t,d.elm,u.elm),d=n[++a])));i>s?(b=ne(n[h+1])?null:n[h+1].elm,c(t,b,n,a,h,r)):a>h&&f(t,e,i,s)}function p(t,e,n){if(t!==e){var r=void 0,i=void 0,o=re(r=e.data);o&&(t.data=t.data||Mi,re(i=r.hook)&&re(r=i.prepatch)&&r(t,e));var a=e.elm=t.elm,s=t.children,u=e.children;if(o){for(r=0;r<x.update.length;++r)x.update[r](t,e);re(i)&&re(r=i.update)&&r(t,e)}if(ne(e.text)?re(s)&&re(u)?s!==u&&d(a,s,u,n):re(u)?(re(t.text)&&_.setTextContent(a,""),c(a,null,u,0,u.length-1,n)):re(s)?f(a,s,0,s.length-1):re(t.text)&&_.setTextContent(a,""):t.text!==e.text&&_.setTextContent(a,e.text),o){for(r=0;r<x.postpatch.length;++r)x.postpatch[r](t,e);re(i)&&re(r=i.postpatch)&&r(t,e)}}}function v(t){for(var e=0;e<t.length;++e)t[e].data.hook.insert(t[e])}function g(t,e,n){if(!m(t,e))return!1;e.elm=t;var r=e.tag,i=e.data,o=e.children;if(re(i)&&(re(y=i.hook)&&re(y=y.init)&&y(e,!0),re(y=e.child)))return a(e,n),!0;if(re(r)){if(re(o))for(var s=_.childNodes(t),u=0;u<o.length;u++){var c=g(s[u],o[u],n);if(!c)return!1}re(i)&&a(e,n)}return!0}function m(e,n){if(n.tag){if(0===n.tag.indexOf("vue-component"))return!0;var r=_.childNodes(e);return n.tag===_.tagName(e).toLowerCase()&&(n.children?n.children.length===r.length:0===r.length)}return t(n.text)===e.data}var y=void 0,b=void 0,x={},w=e.modules,_=e.nodeOps;for(y=0;y<Fi.length;++y)for(x[Fi[y]]=[],b=0;b<w.length;++b)void 0!==w[b][Fi[y]]&&x[Fi[y]].push(w[b][Fi[y]]);return function(t,e,r){var i=void 0,a=void 0,s=[];if(t){var u=re(t.nodeType);if(!u&&ie(t,e))p(t,e,s);else{if(u){if(t.hasAttribute("server-rendered")&&(t.removeAttribute("server-rendered"),r=!0),r){if(g(t,e,s))return v(s),t;ui("The client-side rendered virtual DOM tree is not matching server-rendered content. Bailing hydration and performing full client-side render.")}t=n(t)}i=t.elm,a=_.parentNode(i),o(e,s),null!==a?(_.insertBefore(a,e.elm,_.nextSibling(i)),f(a,[t],0,0)):re(t.tag)&&l(t)}}else o(e,s);return v(s),e.elm}}function se(t,e,n){var r=e.data.directives;if(r)for(var i=t.data.directives,o="update"===n,a=0;a<r.length;a++){var s=r[a],u=Tt(e.context.$options,"directives",s.name,!0),c=u&&u[n];if(c){if(o&&i){var l=s.oldValue=i[a].value;if(l===s.value)continue}c(e.elm,s,e,t)}}}function ue(t,e){var n=t.data.ref;if(n){var i=t.context,o=t.child||t.elm,a=i.$refs;e?Array.isArray(a[n])?r(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].push(o):a[n]=[o]:a[n]=o}}function ce(t,e){if(t.data.attrs||e.data.attrs){var n=void 0,r=void 0,i=void 0,o=e.elm,a=t.data.attrs||{},s=e.data.attrs||{};for(n in s)r=s[n],i=a[n],i!==r&&le(o,n,r);for(n in a)null==s[n]&&(bi(n)?o.removeAttributeNS(yi,xi(n)):gi(n)||o.removeAttribute(n))}}function le(t,e,n){mi(e)?wi(n)?t.removeAttribute(e):t.setAttribute(e,e):gi(e)?t.setAttribute(e,wi(n)||"false"===n?"false":"true"):bi(e)?wi(n)?t.removeAttributeNS(yi,xi(e)):t.setAttributeNS(yi,e,n):wi(n)?t.removeAttribute(e):t.setAttribute(e,n)}function fe(t,e){var n=e.elm,r=e.data;if(r.staticClass||r["class"]){var i=Ft(e),o=n._transitionClasses;o&&(i=Rt(i,It(o))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}}function he(t,e){if(t.data.on||e.data.on){var n=e.data.on||{},r=t.data.on||{},i=e.elm._v_add||(e.elm._v_add=function(t,n,r){e.elm.addEventListener(t,n,r)}),o=e.elm._v_remove||(e.elm._v_remove=function(t,n){e.elm.removeEventListener(t,n)});W(n,r,i,o)}}function de(t,e){if(t.data.props||e.data.props){var n=void 0,r=void 0,i=e.elm,o=t.data.props||{},a=e.data.props||{};for(n in o)null==a[n]&&(i[n]=void 0);for(n in a)r=a[n],"value"===n?(i._value=r,i.value!=r&&(i.value=r)):i[n]=r}}function pe(t,e){if(t.data.style||e.data.style){var n=void 0,r=void 0,i=e.elm,o=t.data.style||{},a=e.data.style||{};Array.isArray(a)&&(a=e.data.style=p(a));for(r in o)a[r]||(i.style[Wi(r)]="");for(r in a)n=a[r],n!==o[r]&&(i.style[Wi(r)]=n||"");e.data.style=f({},a)}}function ve(t,e){if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+t.getAttribute("class")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function ge(t,e){if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+t.getAttribute("class")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function me(t){eo(function(){eo(t)})}function ye(t){var e=t.elm,n=t.context;e._leaveCb&&(e._leaveCb.cancelled=!0,e._leaveCb());var r=t.data.transition;if(r){var i=xe(r,t.context),o=i.css,a=i.appear,s=i.enterClass,u=i.enterActiveClass,c=i.appearClass,l=i.appearActiveClass,f=i.beforeEnter,h=i.onEnter,d=i.afterEnter,p=i.enterCancelled,v=i.beforeAppear,g=i.onAppear,m=i.afterAppear,y=i.appearCancelled,b=!t.context.$root._isMounted;if(!b||a||""===a){var x=b?c:s,w=b?l:u,_=b?v||f:f,C=b?g||h:h,k=b?m||d:d,T=b?y||p:p,A=o!==!1,S=C&&C.length>2,$=e._enterCb=Ee(function(){A&&ke(e,w),$.cancelled?(A&&ke(e,x),T&&T(e,n)):k&&k(e,n),e._enterCb=null});_&&_(e,n),A&&(Ce(e,x),Ce(e,w),me(function(){ke(e,x),$.cancelled||S||Te(e,$)})),C&&C(e,n,$),A||S||$()}}}function be(t,e){function n(){l&&l(r,i),v&&(Ce(r,u),Ce(r,c),me(function(){ke(r,u),m.cancelled||g||Te(r,m)})),f&&f(r,i,m),v||g||m()}var r=t.elm,i=t.context;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var o=t.data.transition;if(!o)return e();var a=xe(o,t.context),s=a.css,u=a.leaveClass,c=a.leaveActiveClass,l=a.beforeLeave,f=a.onLeave,h=a.afterLeave,d=a.leaveCancelled,p=a.delayLeave,v=s!==!1,g=f&&f.length>2,m=r._leaveCb=Ee(function(){v&&ke(r,c),m.cancelled?(v&&ke(r,u),d&&d(r,i)):(e(),h&&h(r,i)),r._leaveCb=null});p?p(n):n()}function xe(t,e){var n=void 0;if(t&&"string"==typeof t)return n=Tt(e.$options,"transitions",t),n?we(n.name||t,n):no(t);if("object"===("undefined"==typeof t?"undefined":a(t))){if(t.name&&(n=Tt(e.$options,"transitions",t.name)),n=n?f(we(t.name,n),t):we(t.name,t),t.hooks)for(var r in t.hooks)_e(n,r,t.hooks[r]);return n}return no("v")}function we(t,e){t=t||"v";var n={};return e.css!==!1&&f(n,no(t)),f(n,e),n}function _e(t,e,n){var r=t[e];r?t[e]=function(){r.apply(this,arguments),n()}:t[e]=n}function Ce(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),ve(t,e)}function ke(t,e){r(t._transitionClasses,e),ge(t,e)}function Te(t,e){var n=Ae(t),r=n.type,i=n.timeout,o=n.propCount;if(!r)return e();var a=r===Zi?Qi:to,s=0,u=function(){t.removeEventListener(a,c),e()},c=function(){++s>=o&&u()};setTimeout(function(){s<o&&u()},i+1),t.addEventListener(a,c)}function Ae(t){var e=window.getComputedStyle(t),n=e[Yi+"Delay"].split(", "),r=e[Yi+"Duration"].split(", "),i=e[Ki+"Delay"].split(", "),o=e[Ki+"Duration"].split(", "),a=Se(n,r),s=Se(i,o),u=Math.max(a,s),c=u>0?a>s?Zi:Ji:null,l=c?c===Zi?r.length:o.length:0;return{type:c,timeout:u,propCount:l}}function Se(t,e){return Math.max.apply(null,e.map(function(e,n){return $e(e)+$e(t[n])}))}function $e(t){return 1e3*Number(t.slice(0,-1))}function Ee(t){var e=!1;return function(){e||(e=!0,t())}}function je(t){return!!(t.parent&&t.parent.data.transition||t.data.show)}function Oe(t,e){var n=t.multiple;n||(t.selectedIndex=-1);for(var r=0,i=t.options.length;r<i;r++){var o=t.options[r];if(n)o.selected=e.indexOf(De(o))>-1;else if(De(o)===e){t.selectedIndex=r;break}}}function Ne(t,e){for(var n=0,r=e.length;n<r;n++)if(De(e[n])===t)return!1;return!0}function De(t){return"_value"in t?t._value:t.value||t.text}function Me(t){t.target.composing=!0}function Pe(t){t.target.composing=!1,Fe(t.target,"input")}function Fe(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),
t.dispatchEvent(n)}function Be(t){var e=t.parent;return e&&null!=e.data.transition?e.data.transition:t.data.transition}function Le(t,e){if(t.data&&t.data.transition){var n=t.data.transition;"string"==typeof n?n=t.data.transition={name:n}:"object"!==("undefined"==typeof n?"undefined":a(n))&&(n=t.data.transition={name:"v"}),n.hooks=e}}function Re(t){return po.innerHTML=t,po.textContent}function Ie(t){var e=vo.source+"(?:\\s*("+He(t)+")\\s*(?:"+yo.join("|")+"))?";return new RegExp("^\\s*"+e)}function He(t){return mo.map(function(t){return"(?:"+t.source+")"}).join("|")}function qe(t,e){function n(e){l+=e,t=t.substring(e)}function r(){var e=t.match(wo);if(e){var r={tagName:e[1],attrs:[],start:l};n(e[0].length);for(var i=void 0,o=void 0;!(i=t.match(_o))&&(o=t.match(s));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=l,r}}function i(t){var n=t.tagName,r=t.unarySlash;u&&("p"===h&&Ai(n)&&o("",h),Ti(n)&&h===n&&o("",n));for(var i=c(n)||"html"===n&&"head"===h||!!r,s=t.attrs.length,l=new Array(s),f=0;f<s;f++){var d=t.attrs[f];To&&d[0].indexOf('""')===-1&&(""===d[3]&&delete d[3],""===d[4]&&delete d[4],""===d[5]&&delete d[5]),l[f]={name:d[1],value:Re(d[3]||d[4]||d[5]||"")}}i||(a.push({tag:n,attrs:l}),h=n,r=""),e.start&&e.start(n,l,i,t.start,t.end)}function o(t,n,r,i){var o=void 0;if(null==r&&(r=l),null==i&&(i=l),n){var s=n.toLowerCase();for(o=a.length-1;o>=0&&a[o].tag.toLowerCase()!==s;o--);}else o=0;if(o>=0){for(var u=a.length-1;u>=o;u--)e.end&&e.end(a[u].tag,r,i);a.length=o,h=o&&a[o-1].tag}else"br"===n.toLowerCase()?e.start&&e.start(n,[],!0,r,i):"p"===n.toLowerCase()&&(e.start&&e.start(n,[],!1,r,i),e.end&&e.end(n,r,i))}for(var a=[],s=Ie(e),u=e.expectHTML,c=e.isUnaryTag||Cr,l=0,f=void 0,h=void 0;t;){if(f=t,h&&Ao(h))!function(){var n=h.toLowerCase(),r=So[n]||(So[n]=new RegExp("([\\s\\S]*?)(</"+n+"[^>]*>)","i")),i=0,a=t.replace(r,function(t,r,o){return i=o.length,"script"!==n&&"style"!==n&&"noscript"!==n&&(r=r.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)\]\]>/g,"$1")),e.chars&&e.chars(r),""});l+=t.length-a.length,t=a,o("</"+n+">",n,l-i,l)}();else{var d=t.indexOf("<");if(0===d){if(/^<!--/.test(t)){var p=t.indexOf("-->");if(p>=0){n(p+3);continue}}if(/^<!\[/.test(t)){var v=t.indexOf("]>");if(v>=0){n(v+2);continue}}var g=t.match(ko);if(g){e.doctype&&e.doctype(g[0]),n(g[0].length);continue}var m=t.match(Co);if(m){var y=l;n(m[0].length),o(m[0],m[1],y,l);continue}var b=r();if(b){i(b);continue}}var x=void 0;d>=0?(x=t.substring(0,d),n(d)):(x=t,t=""),e.chars&&e.chars(x)}if(t===f)throw new Error("Error parsing template:\n\n"+t)}o()}function ze(t){function e(){(h||(h=[])).push(t.slice(s,l).trim()),s=l+1}var n=!1,r=!1,i=0,o=0,a=0,s=0,u=void 0,c=void 0,l=void 0,f=void 0,h=void 0;for(l=0;l<t.length;l++)if(c=u,u=t.charCodeAt(l),n)39===u&&92!==c&&(n=!n);else if(r)34===u&&92!==c&&(r=!r);else if(124!==u||124===t.charCodeAt(l+1)||124===t.charCodeAt(l-1)||i||o||a)switch(u){case 34:r=!0;break;case 39:n=!0;break;case 40:a++;break;case 41:a--;break;case 91:o++;break;case 93:o--;break;case 123:i++;break;case 125:i--}else void 0===f?(s=l+1,f=t.slice(0,l).trim()):e();if(void 0===f?f=t.slice(0,l).trim():0!==s&&e(),h)for(l=0;l<h.length;l++)f=Ve(f,h[l]);return f}function Ve(t,e){var n=e.indexOf("(");if(n<0)return'_f("'+e+'")('+t+")";var r=e.slice(0,n),i=e.slice(n+1);return'_f("'+r+'")('+t+","+i}function Ue(t,e){var n=e?jo(e):$o;if(n.test(t)){for(var r=[],i=n.lastIndex=0,o=void 0,a=void 0;o=n.exec(t);){a=o.index,a>i&&r.push(JSON.stringify(t.slice(i,a)));var s=ze(o[1].trim());r.push("_s("+s+")"),i=a+o[0].length}return i<t.length&&r.push(JSON.stringify(t.slice(i))),r.join("+")}}function We(t){console.error("[Vue parser]: "+t)}function Xe(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function Ge(t,e,n){(t.props||(t.props=[])).push({name:e,value:n})}function Ze(t,e,n){(t.attrs||(t.attrs=[])).push({name:e,value:n})}function Je(t,e,n){(t.staticAttrs||(t.staticAttrs=[])).push({name:e,value:n})}function Ye(t,e,n,r,i){(t.directives||(t.directives=[])).push({name:e,value:n,arg:r,modifiers:i})}function Qe(t,e,n){var r=t.hooks||(t.hooks={}),i=r[e];i?i.push(n):r[e]=[n]}function Ke(t,e,n,r){var i=t.events||(t.events={});r&&r.capture&&(delete r.capture,e="!"+e);var o={value:n,modifiers:r},a=i[e];Array.isArray(a)?a.push(o):a?i[e]=[a,o]:i[e]=o}function tn(t,e,n){var r=en(t,":"+e)||en(t,"v-bind:"+e);if(null!=r)return r;if(n!==!1){var i=en(t,e);if(null!=i)return JSON.stringify(i)}}function en(t,e){var n=void 0;if(null!=(n=t.attrsMap[e]))for(var r=t.attrsList,i=0,o=r.length;i<o;i++)if(r[i].name===e){r.splice(i,1);break}return n}function nn(t,e){Io=e.warn||We,Ho=e.getTagNamespace||Cr,qo=e.mustUseProp||Cr,zo=Xe(e.modules,"preTransformNode"),Vo=Xe(e.modules,"transformNode"),Uo=Xe(e.modules,"postTransformNode"),Wo=e.delimiters;var n=[],r=e.preserveWhitespace!==!1,i=void 0,o=void 0,a=!1,s=!1;return qe(t,{expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,start:function(r,u,c){Lo.test(r)&&(Io("Found camelCase tag in template: <"+r+">. "+("I've converted it to <"+xr(r)+"> for you.")),r=xr(r)),r=r.toLowerCase();var l=o&&o.ns||Ho(r);e.isIE&&"svg"===l&&(u=bn(u));var f={type:1,tag:r,attrsList:u,attrsMap:gn(u),parent:o,children:[]};l&&(f.ns=l),yn(f)&&(f.forbidden=!0,Io("Templates should only be responsbile for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as "+("<"+r+">.")));for(var h=0;h<zo.length;h++)zo[h](f,e);if(a||(rn(f),f.pre&&(a=!0)),a)on(f);else{un(f),cn(f),fn(f),f.plain=!f.key&&!u.length,an(f),sn(f),hn(f),dn(f);for(var d=0;d<Vo.length;d++)Vo[d](f,e);pn(f)}i?n.length||s||(s=!0,Io("Component template should contain exactly one root element:\n\n"+t)):(i=f,"slot"!==r&&"template"!==r||Io("Cannot use <"+r+"> as component root element because it may contain multiple nodes:\n"+t),f.attrsMap.hasOwnProperty("v-for")&&Io("Cannot use v-for on stateful component root element because it renders multiple elements:\n"+t)),o&&!f.forbidden&&(f["else"]?ln(f,o):(o.children.push(f),f.parent=o)),c||(o=f,n.push(f));for(var p=0;p<Uo.length;p++)Uo[p](f,e)},end:function(){var t=n[n.length-1],e=t.children[t.children.length-1];e&&3===e.type&&" "===e.text&&t.children.pop(),n.length-=1,o=n[n.length-1],t.pre&&(a=!1)},chars:function(e){if(!o)return void(s||(s=!0,Io("Component template should contain exactly one root element:\n\n"+t)));if(e="pre"===o.tag||e.trim()?Ro(e):r&&o.children.length?" ":""){var n=void 0;!a&&" "!==e&&(n=Ue(e,Wo))?o.children.push({type:2,expression:n,text:e}):o.children.push({type:3,text:e})}}}),i}function rn(t){null!=en(t,"v-pre")&&(t.pre=!0)}function on(t){var e=t.attrsList.length;if(e)for(var n=t.staticAttrs=new Array(e),r=0;r<e;r++)n[r]={name:t.attrsList[r].name,value:JSON.stringify(t.attrsList[r].value)};else t.pre||(t.plain=!0)}function an(t){var e=tn(t,"key");e&&(t.key=e)}function sn(t){var e=tn(t,"ref");if(e){t.ref=e;for(var n=t;n;){if(void 0!==n["for"]){t.refInFor=!0;break}n=n.parent}}}function un(t){var e=void 0;if(e=en(t,"v-for")){var n=e.match(No);if(!n)return void Io("Invalid v-for expression: "+e);t["for"]=n[2].trim();var r=n[1].trim(),i=r.match(Do);i?(t.alias=i[1].trim(),t.iterator1=i[2].trim(),i[3]&&(t.iterator2=i[3].trim())):t.alias=r}}function cn(t){var e=en(t,"v-if");e&&(t["if"]=e),null!=en(t,"v-else")&&(t["else"]=!0)}function ln(t,e){var n=mn(e.children);n&&n["if"]?n.elseBlock=t:Io("v-else used on element <"+t.tag+"> without corresponding v-if.")}function fn(t){var e=en(t,"v-once");null!=e&&(t.once=!0)}function hn(t){if("slot"===t.tag)t.slotName=tn(t,"name");else{var e=tn(t,"slot");e&&(t.slotTarget=e)}}function dn(t){var e=void 0;(e=tn(t,"is"))&&(t.component=e),null!=en(t,"keep-alive")&&(t.keepAlive=!0),null!=en(t,"inline-template")&&(t.inlineTemplate=!0)}function pn(t){var e=t.attrsList,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0;for(n=0,r=e.length;n<r;n++)if(i=e[n].name,o=e[n].value,Oo.test(i))if(s=vn(i),s&&(i=i.replace(Bo,"")),Mo.test(i))i=i.replace(Mo,""),qo(i)?Ge(t,i,o):Ze(t,i,o);else if(Po.test(i))i=i.replace(Po,""),Ke(t,i,o,s);else{i=i.replace(Oo,"");var u=i.match(Fo);u&&(a=u[1])&&(i=i.slice(0,-(a.length+1))),Ye(t,i,o,a,s)}else{var c=Ue(o,Wo);c&&Io(i+'="'+o+'": Interpolation inside attributes has been deprecated. Use v-bind or the colon shorthand instead.'),Je(t,i,JSON.stringify(o))}}function vn(t){var e=t.match(Bo);if(e){var n=function(){var t={};return e.forEach(function(e){t[e.slice(1)]=!0}),{v:t}}();if("object"===("undefined"==typeof n?"undefined":a(n)))return n.v}}function gn(t){for(var e={},n=0,r=t.length;n<r;n++)e[t[n].name]&&Io("duplicate attribute: "+t[n].name),e[t[n].name]=t[n].value;return e}function mn(t){for(var e=t.length;e--;)if(t[e].tag)return t[e]}function yn(t){return"style"===t.tag||"script"===t.tag&&(!t.attrsMap.type||"text/javascript"===t.attrsMap.type)}function bn(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];Xo.test(r.name)||(r.name=r.name.replace(Go,""),e.push(r))}return e}function xn(t,e){t&&(Zo=Yo(e.staticKeys||""),Jo=e.isReservedTag||function(){return!1},_n(t),Cn(t))}function wn(t){return n("type,tag,attrsList,attrsMap,plain,parent,children,staticAttrs"+(t?","+t:""))}function _n(t){if(t["static"]=kn(t),1===t.type)for(var e=0,n=t.children.length;e<n;e++){var r=t.children[e];_n(r),r["static"]||(t["static"]=!1)}}function Cn(t){if(1===t.type&&(t.once||t["static"]))return void(t.staticRoot=!0);if(t.children)for(var e=0,n=t.children.length;e<n;e++)Cn(t.children[e])}function kn(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t["if"]||t["for"]||pr(t.tag)||!Jo(t.tag)||!t.plain&&!Object.keys(t).every(Zo))))}function Tn(t){var e="on:{";for(var n in t)e+='"'+n+'":'+An(t[n])+",";return e.slice(0,-1)+"}"}function An(t){if(t){if(Array.isArray(t))return"["+t.map(An).join(",")+"]";if(t.modifiers){var e="function($event){";for(var n in t.modifiers)e+=ta[n]||Sn(n);var r=Qo.test(t.value)?t.value+"($event)":t.value;return e+r+"}"}return Qo.test(t.value)?t.value:"function($event){"+t.value+"}"}return"function(){}"}function Sn(t){var e=parseInt(t,10)||Ko[t]||"_k("+JSON.stringify(t)+")";return Array.isArray(e)?"if("+e.map(function(t){return"$event.keyCode!=="+t}).join("&&")+")return;":"if($event.keyCode!=="+e+")return;"}function $n(t,e){Qe(t,"construct","_b(n1,"+e.value+")")}function En(t,e){var n=sa,r=sa=[];ua=e,na=e.warn||We,ra=Xe(e.modules,"transformCode"),ia=Xe(e.modules,"genData"),oa=e.directives||{},aa=e.isReservedTag||Cr;var i=t?jn(t):'_h("div")';return sa=n,{render:"with(this){return "+i+"}",staticRenderFns:r}}function jn(t){if(t.staticRoot&&!t.staticProcessed)return t.staticProcessed=!0,sa.push("with(this){return "+jn(t)+"}"),"_m("+(sa.length-1)+")";if(t["for"]&&!t.forProcessed)return Dn(t);if(t["if"]&&!t.ifProcessed)return On(t);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return Rn(t);var e=void 0;if(t.component)e=In(t);else{var n=Mn(t),r=t.inlineTemplate?null:Fn(t,!t.ns&&!aa(t.tag));e="_h('"+t.tag+"'"+(n?","+n:"")+(r?","+r:"")+")"}for(var i=0;i<ra.length;i++)e=ra[i](t,e);return t.component&&t.keepAlive&&(e='_h("KeepAlive",{props:{child:'+e+"}})"),e}return Fn(t)||"void 0"}function On(t){var e=t["if"];return t.ifProcessed=!0,"("+e+")?"+jn(t)+":"+Nn(t)}function Nn(t){return t.elseBlock?jn(t.elseBlock):"void 0"}function Dn(t){var e=t["for"],n=t.alias,r=t.iterator1?","+t.iterator1:"",i=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,"("+e+")&&_l(("+e+"),"+("function("+n+r+i+"){")+("return "+jn(t))+"})"}function Mn(t){if(!t.plain){var e="{",n=Pn(t);n&&(e+=n+","),t.key&&(e+="key:"+t.key+","),t.ref&&(e+="ref:"+t.ref+","),t.refInFor&&(e+="refInFor:true,"),t.component&&(e+='tag:"'+t.tag+'",'),t.slotTarget&&(e+="slot:"+t.slotTarget+",");for(var r=0;r<ia.length;r++)e+=ia[r](t);if(t.attrsMap["v-show"]&&(e+="show:true,"),t.props&&(e+="props:{"+Hn(t.props)+"},"),t.attrs&&(e+="attrs:{"+Hn(t.attrs)+"},"),t.staticAttrs&&(e+="staticAttrs:{"+Hn(t.staticAttrs)+"},"),t.hooks&&(e+="hook:{"+qn(t.hooks)+"},"),t.events&&(e+=Tn(t.events)+","),t.inlineTemplate){var i=t.children[0];if((t.children.length>1||1!==i.type)&&na("Inline-template components must have exactly one child element."),1===i.type){var o=En(i,ua);e+="inlineTemplate:{render:function(){"+o.render+"},staticRenderFns:["+o.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}return e.replace(/,$/,"")+"}"}}function Pn(t){var e=t.directives;if(e){var n="directives:[",r=!1,i=void 0,o=void 0,a=void 0,s=void 0;for(i=0,o=e.length;i<o;i++){a=e[i],s=!0;var u=oa[a.name]||ea[a.name];u&&(s=!!u(t,a,na)),s&&(r=!0,n+='{name:"'+a.name+'"'+(a.value?",value:("+a.value+"),expression:"+JSON.stringify(a.value):"")+(a.arg?',arg:"'+a.arg+'"':"")+(a.modifiers?",modifiers:"+JSON.stringify(a.modifiers):"")+"},")}return r?n.slice(0,-1)+"]":void 0}}function Fn(t,e){if(t.children.length){var n="["+t.children.map(Bn).join(",")+"]";return e?"function(){return "+n+"}":n}}function Bn(t){return 1===t.type?jn(t):Ln(t)}function Ln(t){return 2===t.type?t.expression:JSON.stringify(t.text)}function Rn(t){var e="$slots["+(t.slotName||'"default"')+"]",n=Fn(t);return n?"("+e+"||"+n+")":e}function In(t){var e=Fn(t,!0);return"_h("+t.component+","+Mn(t)+(e?","+e:"")+")"}function Hn(t){for(var e="",n=0;n<t.length;n++){var r=t[n];e+='"'+r.name+'":'+r.value+","}return e.slice(0,-1)}function qn(t){var e="";for(var n in t)e+='"'+n+'":function(n1,n2){'+t[n].join(";")+"},";return e.slice(0,-1)}function zn(t,e){var n=nn(t.trim(),e);xn(n,e);var r=En(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}}function Vn(t){var e=[];return t&&Un(t,e),e}function Un(t,e){if(1===t.type){for(var n in t.attrsMap)if(Oo.test(n)){var r=t.attrsMap[n];r&&("v-for"===n?Wn(t,'v-for="'+r+'"',e):Gn(r,n+'="'+r+'"',e))}if(t.children)for(var i=0;i<t.children.length;i++)Un(t.children[i],e)}else 2===t.type&&Gn(t.expression,t.text,e)}function Wn(t,e,n){Gn(t["for"]||"",e,n),Xn(t.alias,"v-for alias",e,n),Xn(t.iterator1,"v-for iterator",e,n),Xn(t.iterator2,"v-for iterator",e,n)}function Xn(t,e,n,r){"string"!=typeof t||la.test(t)||r.push("- invalid "+e+' "'+t+'" in expression: '+n)}function Gn(t,e,n){try{new Function("return "+t)}catch(r){var i=t.replace(fa,"").match(ca);i?n.push("- avoid using JavaScript keyword as property name: "+('"'+i[0]+'" in expression '+e)):n.push("- invalid expression: "+e)}}function Zn(t,e){var n=e.warn||We,r=en(t,"class");if(r){var i=Ue(r,e.delimiters);i&&n('class="'+r+'": Interpolation inside attributes has been deprecated. Use v-bind or the colon shorthand instead.')}t.staticClass=JSON.stringify(r);var o=tn(t,"class",!1);o&&(t.classBinding=o)}function Jn(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}function Yn(t){var e=tn(t,"style",!1);e&&(t.styleBinding=e)}function Qn(t){return t.styleBinding?"style:("+t.styleBinding+"),":""}function Kn(t){var e=tn(t,"transition");'""'===e&&(e=!0),e&&(t.transition=e);var n=tn(t,"transition-mode");n&&(t.transitionMode=n)}function tr(t){return t.transition?"transition:"+t.transition+",":""}function er(t,e){return t.transitionMode?"_h('TransitionControl',{props:{mode:"+t.transitionMode+",child:"+e+"}})":e}function nr(t,e,n){ga=n;var r=e.value,i=e.modifiers;if("select"===t.tag)return ar(t,r);switch(t.attrsMap.type){case"checkbox":rr(t,r);break;case"radio":ir(t,r);break;default:return or(t,r,i)}}function rr(t,e){null!=t.attrsMap.checked&&ga("<"+t.tag+' v-model="'+e+"\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");var n=tn(t,"value"),r=tn(t,"true-value")||"true",i=tn(t,"false-value")||"false";Ge(t,"checked","Array.isArray("+e+")"+("?("+e+").indexOf("+n+")>-1")+(":("+e+")===("+r+")")),Ke(t,"change","var $$a="+e+",$$el=$event.target,"+("$$c=$$el.checked?("+r+"):("+i+");")+"if(Array.isArray($$a)){"+("var $$v="+n+",")+"$$i=$$a.indexOf($$v);if($$c){$$i<0&&$$a.push($$v)}else{$$i>-1&&$$a.splice($$i,1)}"+("}else{"+e+"=$$c}"))}function ir(t,e){null!=t.attrsMap.checked&&ga("<"+t.tag+' v-model="'+e+"\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");var n=tn(t,"value");Ge(t,"checked","("+e+")===("+n+")"),Ke(t,"change",e+"="+n)}function or(t,e,n){"input"===t.tag&&t.attrsMap.value&&ga("<"+t.tag+' v-model="'+e+'" value="'+t.attrsMap.value+"\">:\ninline value attributes will be ignored when using v-model. Declare initial values in the component's data option instead."),"textarea"===t.tag&&t.children.length&&ga('<textarea v-model="'+e+"\">:\ninline content inside <textarea> will be ignored when using v-model. Declare initial values in the component's data option instead.");var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,u=o?"change":"input",c=!o&&"range"!==r,l="$event.target.value"+(s?".trim()":""),f=a||"number"===r?e+"=_n("+l+")":e+"="+l;if(c&&(f="if($event.target.composing)return;"+f),Ge(t,"value","_s("+e+")"),Ke(t,u,f),c)return!0}function ar(t,e){t.children.some(sr);var n=e+'=Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){return "_value" in o ? o._value : o.value})'+(null==t.attrsMap.multiple?"[0]":"");return Ke(t,"change",n),!0}function sr(t){if(1===t.type&&"option"===t.tag&&null!=t.attrsMap.selected){var e=t.parent&&1===t.parent.type&&t.parent.attrsMap["v-model"];return ga('<select v-model="'+e+"\">:\ninline selected attributes on <option> will be ignored when using v-model. Declare initial values in the component's data option instead."),!0}}function ur(t,e){e.value&&Ge(t,"textContent","_s("+e.value+")")}function cr(t,e){e.value&&Ge(t,"innerHTML","_s("+e.value+")")}function lr(t,e){return e=e?f(f({},ba),e):ba,zn(t,e)}function fr(t,e,n){var r=e&&e.warn||ui;try{new Function("return 1")}catch(i){i.toString().match(/unsafe-eval|CSP/)&&r("It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions.")}var o=e&&e.delimiters?String(e.delimiters)+t:t;if(ya[o])return ya[o];var a={},s=lr(t,e);a.render=hr(s.render);var u=s.staticRenderFns.length;a.staticRenderFns=new Array(u);for(var c=0;c<u;c++)a.staticRenderFns[c]=hr(s.staticRenderFns[c]);return(a.render===v||a.staticRenderFns.some(function(t){return t===v}))&&r("failed to compile template:\n\n"+t+"\n\n"+Vn(s.ast).join("\n")+"\n\n",n),ya[o]=a}function hr(t){try{return new Function(t)}catch(e){return v}}function dr(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}var pr=n("slot,component,render,transition",!0),vr=Object.prototype.hasOwnProperty,gr=/-(\w)/g,mr=u(function(t){return t.replace(gr,function(t,e){return e?e.toUpperCase():""})}),yr=u(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),br=/([a-z\d])([A-Z])/g,xr=u(function(t){return t.replace(br,"$1-$2").toLowerCase()}),wr=Object.prototype.toString,_r="[object Object]",Cr=function(){return!1},kr={optionMergeStrategies:Object.create(null),silent:!1,devtools:!0,errorHandler:null,ignoredElements:null,keyCodes:Object.create(null),isReservedTag:Cr,isUnknownElement:Cr,getTagNamespace:v,mustUseProp:Cr,_assetTypes:["component","directive","transition","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],_maxUpdateCount:100,_isServer:!1},Tr=/[^\w\.]/,Ar="__proto__"in{},Sr="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),$r=Sr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Er=Sr&&window.navigator.userAgent.toLowerCase(),jr=Er&&/(iphone|ipad|ipod|ios)/i.test(Er),Or=Er&&jr&&Er.match(/os ([\d_]+)/),Nr=Or&&Or[1].split("_"),Dr=Nr&&Number(Nr[0])>=9&&Number(Nr[1])>=3&&!window.indexedDB,Mr=function(){function t(){n=!1;var t=e.slice(0);e=[];for(var r=0;r<t.length;r++)t[r]()}var e=[],n=!1,r=void 0;if("undefined"==typeof MutationObserver||Dr){var i=Sr?window:"undefined"!=typeof o?o:{};r=i.setImmediate||setTimeout}else!function(){var e=1,n=new MutationObserver(t),i=document.createTextNode(String(e));n.observe(i,{characterData:!0}),r=function(){e=(e+1)%2,i.data=String(e)}}();return function(i,o){var a=o?function(){i.call(o)}:i;e.push(a),n||(n=!0,r(t,0))}}(),Pr=void 0;Pr="undefined"!=typeof Set&&/native code/.test(Set.toString())?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return void 0!==this.set[t]},t.prototype.add=function(t){this.set[t]=1},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Fr=void 0,Br=void 0,Lr=void 0;!function(){var t=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require,__webpack_require__");Fr="undefined"!=typeof Proxy&&Proxy.toString().match(/native code/),Br={has:function e(n,r){var e=r in n,i=t(r);return e||i||ui('Trying to access non-existent property "'+r+'" while rendering. Make sure to declare reactive data properties in the data option.',n),!i}},Lr=function(t){Fr?t._renderProxy=new Proxy(t,Br):t._renderProxy=t}}();var Rr=0,Ir=function(){function t(){this.id=Rr++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){r(this.subs,t)},t.prototype.depend=function(){t.target&&t.target.addDep(this)},t.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},t}();Ir.target=null;var Hr=[],qr=[],zr=[],Vr={},Ur={},Wr=!1,Xr=0,Gr=function(){function t(t,e,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];this.vm=t,t._watchers.push(this),this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.expression=e.toString(),this.cb=n,this.id=++Xr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Pr,this.newDepIds=new Pr,"function"==typeof e?this.getter=e:(this.getter=b(e),this.getter||(this.getter=function(){},ui("Failed watching path: "+e+"Watcher only accepts simple dot-delimited paths. For full control, use a function instead.",t))),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){x(this);var t=void 0;try{t=this.getter.call(this.vm,this.vm)}catch(e){if(this.user?ui("Error when evaluating watcher with getter: "+this.expression,this.vm):ui("Error during component render",this.vm),!kr.errorHandler)throw e;kr.errorHandler.call(null,e,this.vm),t=this.value}return this.deep&&S(t),w(),this.cleanupDeps(),t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():A(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||h(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(n){if(ui('Error in watcher "'+this.expression+'"',this.vm),!kr.errorHandler)throw n;kr.errorHandler.call(null,n,this.vm)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},t.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||r(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}},t}(),Zr=new Pr,Jr=Array.prototype,Yr=Object.create(Jr);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Jr[t];y(Yr,t,function(){for(var n=arguments.length,r=new Array(n);n--;)r[n]=arguments[n];var i=e.apply(this,r),o=this.__ob__,a=void 0;switch(t){case"push":a=r;break;case"unshift":a=r;break;case"splice":a=r.slice(2)}return a&&o.observeArray(a),o.dep.notify(),i})});var Qr=Object.getOwnPropertyNames(Yr),Kr={shouldConvert:!0,isSettingProps:!1},ti=function(){function t(t){if(this.value=t,this.dep=new Ir,this.vmCount=0,y(t,"__ob__",this),Array.isArray(t)){var e=Ar?$:E;e(t,Yr,Qr),this.observeArray(t)}else this.walk(t)}return t.prototype.walk=function(t){var e=this.value;for(var n in t)O(e,n,t[n])},t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)j(t[e])},t}(),ei={enumerable:!0,configurable:!0,get:v,set:v},ni=function(t,e,n,r,i,o,a,s,u){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=o,this.context=a,this.host=s,this.key=e&&e.key,this.componentOptions=u,this.child=void 0,this.parent=void 0,this.raw=!1;var c=e&&e.hook&&e.hook.construct;c&&c(this)},ri=function(){return new ni((void 0),(void 0),(void 0),"")},ii={init:tt,prepatch:et,insert:nt,destroy:rt},oi=Object.keys(ii),ai={activeInstance:null},si=0;gt(mt),q(mt),vt(mt),J(mt),ht(mt);var ui=void 0,ci=void 0;!function(){var t="undefined"!=typeof console;ui=function(e,n){t&&!kr.silent&&console.error("[Vue warn]: "+e+(n?ci(n):""))},ci=function(t){if(t.$root===t)return" (found in root instance)";var e=t._isVue?t.$options.name||t.$options._componentTag:t.name;return e?" (found in component: <"+xr(e)+">)":' (found in anonymous component. Use the "name" option for better debugging messages)'}}();var li=kr.optionMergeStrategies;li.el=li.propsData=function(t,e,n,r){return n||ui('option "'+r+'" can only be used during instance creation with the `new` keyword.'),fi(t,e)},li.name=function(t,e,n){return n&&ui('options "name" can only be used as a component definition option, not during instance creation.'),fi(t,e)},li.data=function(t,e,n){return n?t||e?function(){var r="function"==typeof e?e.call(n):e,i="function"==typeof t?t.call(n):void 0;return r?yt(r,i):i}:void 0:e?"function"!=typeof e?(ui('The "data" option should be a function that returns a per-instance value in component definitions.',n),t):t?function(){return yt(e.call(this),t.call(this))}:e:t},kr._lifecycleHooks.forEach(function(t){li[t]=bt}),kr._assetTypes.forEach(function(t){li[t+"s"]=xt}),li.watch=function(t,e){if(!e)return t;if(!t)return e;var n={};f(n,t);for(var r in e){var i=n[r],o=e[r];i&&!Array.isArray(i)&&(i=[i]),n[r]=i?i.concat(o):[o]}return n},li.props=li.methods=li.computed=function(t,e){if(!e)return t;if(!t)return e;var n=Object.create(null);return f(n,t),f(n,e),n};var fi=function(t,e){return void 0===e?t:e},hi=Object.freeze({defineReactive:O,_toString:t,toNumber:e,makeMap:n,isBuiltInTag:pr,remove:r,hasOwn:i,isPrimitive:s,cached:u,camelize:mr,capitalize:yr,hyphenate:xr,bind:c,toArray:l,extend:f,isObject:h,isPlainObject:d,toObject:p,noop:v,no:Cr,genStaticKeys:g,isReserved:m,def:y,parsePath:b,hasProto:Ar,inBrowser:Sr,devtools:$r,UA:Er,nextTick:Mr,get _Set(){return Pr},mergeOptions:kt,resolveAsset:Tt,get warn(){return ui},validateProp:At}),di={name:"keep-alive",_abstract:!0,props:{child:Object},created:function(){this.cache=Object.create(null)},render:function(){var t=this.child,e=Mt(this.child),n=e.componentOptions.Ctor.cid;if(this.cache[n]){var r=e.child=this.cache[n].child;e.elm=this.$el=r.$el}else this.cache[n]=e;return e.data.keepAlive=!0,t},destroyed:function(){for(var t in this.cache){var e=this.cache[t];Y(e.child,"deactivated"),e.child.$destroy()}}},pi={KeepAlive:di};Pt(mt),Object.defineProperty(mt.prototype,"$isServer",{get:function(){return kr._isServer}}),mt.version="2.0.0-alpha.8";var vi=n("value,selected,checked,muted"),gi=n("contenteditable,draggable,spellcheck"),mi=n("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),yi=(n("accept,accept-charset,accesskey,action,align,alt,async,autocomplete,autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,http-equiv,name,contenteditable,contextmenu,controls,coords,data,datetime,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,method,for,form,formaction,headers,<th>,height,hidden,high,href,hreflang,http-equiv,icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,seamless,selected,shape,size,type,text,password,sizes,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,type,usemap,value,width,wrap"),"http://www.w3.org/1999/xlink"),bi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},xi=function(t){return bi(t)?t.slice(6,t.length):""},wi=function(t){return null==t||t===!1},_i={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ci=n("html,base,head,link,meta,style,title,address,article,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),ki=n("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),Ti=n("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source",!0),Ai=n("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track",!0),Si=n("svg,g,defs,symbol,use,image,text,circle,ellipse,line,path,polygon,polyline,rect",!0),$i=Object.create(null),Ei=Sr&&window.navigator.userAgent.toLowerCase(),ji=Ei&&/msie|trident/.test(Ei),Oi=Ei&&Ei.indexOf("msie 9.0")>0,Ni=Ei&&Ei.indexOf("android")>0,Di=Object.freeze({createElement:Vt,createElementNS:Ut,createTextNode:Wt,insertBefore:Xt,removeChild:Gt,appendChild:Zt,parentNode:Jt,nextSibling:Yt,tagName:Qt,setTextContent:Kt,childNodes:te,setAttribute:ee}),Mi={},Pi=new ni("",Mi,[]),Fi=["create","update","postpatch","remove","destroy"],Bi={create:function(t,e){se(t,e,"bind")},update:function(t,e){se(t,e,"update")},postpatch:function(t,e){se(t,e,"postupdate")},destroy:function(t){se(t,t,"unbind")}},Li={create:function(t,e){ue(e)},update:function(t,e){t.data.ref!==e.data.ref&&(ue(t,!0),ue(e))},destroy:function(t){ue(t,!0)}},Ri=[Li,Bi],Ii={create:function(t,e){var n=e.data.staticAttrs;if(n)for(var r in n)le(e.elm,r,n[r]);ce(t,e)},update:ce},Hi={create:fe,update:fe},qi={create:he,update:he},zi={create:de,update:de},Vi=["Webkit","Moz","ms"],Ui=void 0,Wi=u(function(t){if(Ui=Ui||document.createElement("div"),t=mr(t),"filter"!==t&&t in Ui.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Vi.length;n++){var r=Vi[n]+e;if(r in Ui.style)return r}}),Xi={create:pe,update:pe},Gi=Sr&&!Oi,Zi="transition",Ji="animation",Yi="transition",Qi="transitionend",Ki="animation",to="animationend";Gi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Yi="WebkitTransition",Qi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ki="WebkitAnimation",
-to="webkitAnimationEnd"));var eo=Sr&&window.requestAnimationFrame||setTimeout,no=u(function(t){return{enterClass:t+"-enter",leaveClass:t+"-leave",appearClass:t+"-enter",enterActiveClass:t+"-enter-active",leaveActiveClass:t+"-leave-active",appearActiveClass:t+"-enter-active"}}),ro=Gi?{create:function(t,e){je(e)||ye(e)},remove:function(t,e){je(t)?e():be(t,e)}}:{},io=[Ii,Hi,qi,zi,Xi,ro],oo=io.concat(Ri),ao=ae({nodeOps:Di,modules:oo}),so=/^input|select|textarea|vue-component-[0-9]+(-[0-9a-zA-Z_\-]*)?$/;Oi&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Fe(t,"input")});var uo={bind:function(t,e,n){so.test(n.tag)||ui("v-model is not supported on element type: <"+n.tag+">. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.",n.context),"select"===n.tag?Oe(t,e.value):(Ni||(t.addEventListener("compositionstart",Me),t.addEventListener("compositionend",Pe)),Oi&&(t.vmodel=!0))},postupdate:function(t,e,n){var r=e.value;if("select"===n.tag){Oe(t,r);var i=t.multiple?r.some(function(e){return Ne(e,t.options)}):Ne(r,t.options);i&&Fe(t,"change")}}},co={bind:function(t,e,n){var r=e.value,i=Be(n);r&&i&&i.appear&&!Oi&&ye(n),t.style.display=r?"":"none"},update:function(t,e,n){var r=e.value,i=Be(n);i&&!Oi?r?(ye(n),t.style.display=""):be(n,function(){t.style.display="none"}):t.style.display=r?"":"none"}},lo={model:uo,show:co},fo={name:"transition-control",_abstract:!0,props:{child:Object,mode:{validator:function(t){return!t||"out-in"===t||"in-out"===t||(ui('transition-mode must be either "out-in" or "in-out".'),!1)}}},render:function(){var t=this,e=this._vnode,n=this.child;if(e&&e.data&&(e.tag!==n.tag||e.key!==n.key)){if("out-in"===this.mode)return Le(e,{afterLeave:function(){t.$forceUpdate()}});"in-out"===this.mode&&!function(){var t=void 0,r=function(){t()};Le(n,{afterEnter:r,enterCancelled:r}),Le(e,{delayLeave:function(e){t=e}})}()}return n}},ho={TransitionControl:fo};mt.config.isUnknownElement=qt,mt.config.isReservedTag=Ci,mt.config.getTagNamespace=Ht,mt.config.mustUseProp=vi,f(mt.options.directives,lo),f(mt.options.components,ho),mt.prototype.__patch__=kr._isServer?v:ao,mt.prototype.$mount=function(t,e){return t=t&&!kr._isServer?zt(t):void 0,this._mount(t,e)},setTimeout(function(){kr.devtools&&($r?$r.emit("init",mt):Sr&&/Chrome\/\d+/.test(window.navigator.userAgent)&&console.log("Download the Vue Devtools for a better development experience:\nhttps://github.com/vuejs/vue-devtools"))},0);var po=document.createElement("div"),vo=/([^\s"'<>\/=]+)/,go=/=/,mo=[go],yo=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],bo="[a-zA-Z_][\\w\\-\\.]*",xo="((?:"+bo+"\\:)?"+bo+")",wo=new RegExp("^<"+xo),_o=/^\s*(\/?)>/,Co=new RegExp("^<\\/"+xo+"[^>]*>"),ko=/^<!DOCTYPE [^>]+>/i,To=!1;"x".replace(/x(.)?/g,function(t,e){To=""===e});var Ao=n("script,style",!0),So={},$o=/\{\{((?:.|\\n)+?)\}\}/g,Eo=/[-.*+?^${}()|[\]\/\\]/g,jo=u(function(t){var e=t[0].replace(Eo,"\\$&"),n=t[1].replace(Eo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}),Oo=/^v-|^@|^:/,No=/(.*)\s+(?:in|of)\s+(.*)/,Do=/\(([^,]*),([^,]*)(?:,([^,]*))?\)/,Mo=/^:|^v-bind:/,Po=/^@|^v-on:/,Fo=/:(.*)$/,Bo=/\.[^\.]+/g,Lo=/[a-z\d][A-Z]/,Ro=u(Re),Io=void 0,Ho=void 0,qo=void 0,zo=void 0,Vo=void 0,Uo=void 0,Wo=void 0,Xo=/^xmlns:NS\d+/,Go=/^NS\d+:/,Zo=void 0,Jo=void 0,Yo=u(wn),Qo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,Ko={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,"delete":[8,46]},ta={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:"if($event.target !== $event.currentTarget)return;"},ea={bind:$n,cloak:v},na=void 0,ra=void 0,ia=void 0,oa=void 0,aa=void 0,sa=void 0,ua=void 0,ca=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),la=/[A-Za-z_$][\w$]*/,fa=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,ha={staticKeys:["staticClass"],transformNode:Zn,genData:Jn},da={transformNode:Yn,genData:Qn},pa={transformNode:Kn,genData:tr,transformCode:er},va=[ha,da,pa],ga=void 0,ma={model:nr,text:ur,html:cr},ya=Object.create(null),ba={isIE:ji,expectHTML:!0,modules:va,staticKeys:g(va),directives:ma,isReservedTag:Ci,isUnaryTag:ki,mustUseProp:vi,getTagNamespace:Ht},xa=u(function(t){var e=zt(t);return e&&e.innerHTML}),wa=mt.prototype.$mount;return mt.prototype.$mount=function(t,e){t=t&&zt(t);var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=xa(r));else{if(!r.nodeType)return ui("invalid template option:"+r,this),this;r=r.innerHTML}else t&&(r=dr(t));if(r){var i=fr(r,{delimiters:n.delimiters,warn:ui},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return wa.call(this,t,e)},mt.compile=fr,mt})}).call(e,function(){return this}())},function(t,e){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(39),o=r(i);e["default"]={init:function(){new Vue(o["default"])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t,e,n,r){this.paper=t,this.shape=e,this.handlers=[],this.viewPort=n,this.viewBox=r,this.isResizing=!1,this.currentPosition={},this.HANDLER_SIZE=8,this.SHAPE_MIN_SIZE=20,this.states={},this.noop=function(){},this.init()};i.prototype={init:function(){this.showHandlers()},computeHandlerSize:function(){return this.HANDLER_SIZE*Math.min(this.viewBox[2],this.viewBox[3])/this.viewPort.width},showHandlers:function(){var t=this.shape.getBBox(),e=t.x-this.computeHandlerSize()/2,n=t.y-this.computeHandlerSize()/2,r=this.paper.rect(e,n,this.computeHandlerSize(),this.computeHandlerSize()).attr({fill:"red"});r.addClass("drawingHandler"),this.shape.addClass("drawingHandler");var i={position:"t_r",handler:r};this.handlers.push(i),this.shapesGroup=this.paper.g(this.shape,r),this.attachEvents()},updateShapePositions:function(t,e,n){var r=t.handler.getBBox(),i=this.shape.data("origBbox"),o=(r.x+this.computeHandlerSize()/2,r.y+this.computeHandlerSize()/2,e>0?i.width-e:i.width+Math.abs(e)),a=n>0?i.height-n:i.height+Math.abs(n),s=this.shape.data("origTransform")+(this.shape.data("origTransform")?"T":"t")+[e,n];this.shape.attr({transform:s,width:o,height:a})},dragEvents:{onStart:function(t,e,n,r){this.startPosition={x:r.clientX,y:r.clientY},this.isResizing=!0,this.currentPosition={},t.handler.data("origTransform",t.handler.transform().local),this.shape.data("origBbox",this.shape.getBBox()),this.shape.data("origBounding",this.shape.node.getBoundingClientRect()),this.shape.data("origTransform",this.shape.transform().local)},onMove:function(t,e,n,r,i,o){var a,s,u=t.handler.transform().diffMatrix.invert();u.e=u.f=0,a=u.x(e,n),s=u.y(e,n),this.currentPosition.x=o.clientX,this.currentPosition.y=o.clientY,this.checkBondaries(e,n)&&(t.handler.transform("t"+[a,s]+t.handler.data("origTransform")),this.updateShapePositions(t,a,s))},onStop:function(){this.isResizing=!1,this.startPosition={},this.currentPosition={}}},checkBondaries:function(t,e){var n=!0,r=this.shape.data("origBounding");this.shape.node.getBoundingClientRect();return r.width-t<=this.SHAPE_MIN_SIZE&&(n=!1),r.height-e<=this.SHAPE_MIN_SIZE&&(n=!1),n},destroy:function(){this.handlers.map(function(t){t.handler.remove()}),delete this},getZoomFactor:function(){return{x:this.viewPort.width/this.viewBox[2],y:this.viewPort.height/this.viewBox[3]}},attachEvents:function(){var t=this;this.handlers.map(function(e){e.handler.drag(t.dragEvents.onMove.bind(t,e),t.dragEvents.onStart.bind(t,e),t.dragEvents.onStop.bind(t,e))}),r.eventEmitter.on("cutout:clear",function(){t.destroy()}),this.shapesGroup.drag(function(e,n){if(!t.isResizing){var r=this.transform().diffMatrix.invert();r.e=r.f=0;var i=r.x(e,n),o=r.y(e,n),a=this.data("origTransform")+(this.data("origTransform")?"T":"t")+[i,o];this.transform(a)}},function(){this.data("origTransform",this.transform().local)},this.noop)}};e["default"]={enable_resizer:function(t,e,n,r){new i(t,e,n,r)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=r(i),a=n(34),s=r(a),u=n(1),c=n(4);r(c);o["default"].plugin(function(t,e,n,r){var i=e.prototype;i.toBack=function(){this.prependTo(this.paper)},i.toFront=function(){this.appendTo(this.paper)}}),Element.prototype.getTransformedXY=function(t,e){var n=this.transform().globalMatrix;return{x:n.x(t,e),y:n.y(t,e)}};var l=null,f=null,h=[],d={X:100,Y:100},p={x:1,y:1},v={width:850,height:850},g=[],m=!1,y=null,b=null,x=!1,w=null,_="#ff00ff",C="red",k="orange",T="#FF0000",A=8,S=!1,$=!0,E=!1,j=!0,O="RECT",N=O,D="FREE",M=[O,D],P=null,F=function(){var t=0,e="item_";return function(n){return n="string"==typeof n?n:e,t+=1,n+t}}(),B=function(t){if(m)return void l.path(t).attr({stroke:"red",opacity:.6});var e=o["default"].path.getBBox(t);w=l.rect(e.x,e.y,e.width,e.height),w.attr({fill:k,stroke:C,opacity:.6}),b=w,x=!1,E=!0,s["default"].enable_resizer(l,b,v,g)},L=function(t){if(m)return void l.path(t).attr({stroke:"orange",fill:"orange",opacity:.5});var e=o["default"].parsePathString(t);e.map(function(t){"Z"!==t[0]?G(l,t[1],t[2],h):(E=!0,R(l,H))})},R=function(t,e){var n="M";if(!(h.length<=1)){n+=h[0].x+","+h[0].y;for(var r=0;r<h.length;r++)if(0!=r){var i=h[r],o="L"+i.x+","+i.y;n+=" "+o}n+=E?" Z":"",b&&b.remove(),b=t.path(n),b.attr({stroke:C,"vector-effect":"non-scaling-stroke","stroke-width":3,fill:"white",opacity:.1}),h.map(function(t){V();t.handler&&t.handler.toFront()}),"function"==typeof e&&E&&e(),!e&&E&&I()}},I=function(){b.attr({fill:k,strokeWidth:1,opacity:.6})},H=function(){j=!1,I()},q=function(t,e,n){t.isFirst&&h.length>2&&(E=!0)},z=function(t,e,n){var r=h.indexOf(t);return r!==-1&&(h[r].x=e,h[r].y=n,!0)},V=function(){g.length||(g=[0,0,parseInt(f.width()),parseInt(f.height())]);var t=A*Math.min(g[2],g[3])/850;return t},U=function(t,e,n,r,i){S=!0;var o,a,s=this.transform().diffMatrix.invert();s.e=s.f=0,o=s.x(t,e),a=s.y(t,e);var u=this.data("origTransform")+(this.data("origTransform")?"T":"t")+[o,a];this.attr({transform:u});var c=this.getBBox(),l=z(this.data("point"),c.x+V()/2,c.y+V()/2);l&&R(this.paper)},W=function(t,e){t.handler.click(q.bind(this,t,e)),t.handler.hover(function(){t.handler.attr({fill:"yellow"})},function(){var e=t.isFirst?T:"";t.handler.attr({fill:e})}),t.handler.drag(U,function(){this.data("origTransform",this.transform().local)},function(){return!S||(S=!1,void($=!1))})},X=function(t,e){var n,r=V(),i=e.x-r/2,o=e.y-r/2;return n=t.rect(i,o,r,r),n.addClass("drawingHandler"),e.handler=n,e.handler.data("point",e),0===h.length&&(e.isFirst=!0),W(e,t),e.handler.attr({fill:0===h.length?T:"",opacity:.9,stroke:_}),e},G=function(t,e,n,r){var i={x:e,y:n,id:F()};return E?void R(t,H):$?(i=X(t,i),r.push(i),void R(t)):($=!0,!1)},Z=function(t){if(m)return!1;var e={},n={};t.mousedown(function(t){N===D||E||(e.x=t.offsetX,e.y=t.offsetY,x=!0)}),t.mousemove(function(r){if(N!==D&&x){var i,o;n.x=r.offsetX,n.y=r.offsetY,w&&w.remove();var a=Math.abs(n.x-e.x),s=Math.abs(e.y-n.y);n.y>e.y&&n.x>e.x&&(i=e.x,o=e.y),n.y<e.y&&n.x>e.x&&(i=n.x-a,o=n.y),n.y<e.y&&n.x<e.x&&(i=n.x,o=n.y),n.y>e.y&&n.x<e.x&&(i=n.x,o=n.y-s),i&&o&&(w=t.rect(i,o,a,s),w.attr({fill:k,stroke:C,opacity:.6}))}}),t.mouseup(function(){return!(N===D||E||!w)&&(b=w,s["default"].enable_resizer(t,w,v,g),x=!1,void(E=!0))})},J=function(t){m||t.click(function(e){return N===O||(!j||void G(t,e.offsetX,e.offsetY,h))})},Y=function(){u.eventEmitter.on("zoomChanged",function(t){p=t.zoomFactor,g=t.currentViewBox;var e=Q.getPath();Q.clear(),Q.setPath(e)})},Q={getPaper:function(){return l},setPath:function(t){var e=t.split(";");M.indexOf(e[1])===-1&&(e[1]="FREE"),this.setDrawingMode(e[1]);var n=e[0];if(n.length){var r=f.attr("width")/d.X,i=f.attr("height")/d.Y;(isNaN(r)||isNaN(i))&&new Error("Ratio should be a number.");var a=o["default"].matrix(r,0,0,i,0,0),s=o["default"].path.map(n,a).toString();s.search(/[z|Z]/gi)===-1&&(s+="Z"),e.length>=2&&(e[1]===O&&B(s),e[1]===D&&L(s))}},setDrawingMode:function(t){M.indexOf(t)!==-1&&(N=t),"function"==typeof P&&P(N),this.clear()},clear:function(){h.map(function(t){t.handler&&t.handler.remove()}),b&&b.remove(),u.eventEmitter.emit("cutout:clear"),h=[],y=null,b=null,S=!1,$=!0,E=!1,j=!0},getShapeBBox:function(){var t=this.getPath();return o["default"].path.getBBox(t)},getShape:function(){return this.getPath()},getPath:function(){var t="";if(b)if(N===O){var e=b.getBBox(),n=b.transform();if(n.global.length){var r=b.node.getAttribute("x"),i=b.node.getAttribute("y"),a=n.totalMatrix,s=l.rect(a.x(r,i),a.y(r,i),e.width,e.height);u=s.getBBox().path,s.remove()}else var u=b.getBBox().path;t=o["default"].path.toAbsolute(u).toString()}else t=b.attr("d");var c=d.X/f.attr("width"),h=d.Y/f.attr("height");if((isNaN(c)||isNaN(h))&&new Error("ratio should be a number."),!t.length)return t=N===O?";RECT":";FREE";var p=o["default"].matrix(c,0,0,h,0,0);t=o["default"].path.map(t,p).toString();var v=N===O?";RECT":";FREE";return t.search(/[z|Z]/gi)===-1&&(t+=" Z"),t+=v}};e["default"]={init:function(t){f=jQuery(t.wrapperId).find(".main-image").eq(0);var e=jQuery(t.wrapperId).find(".cut-canvas").eq(0),n=jQuery(t.wrapperId).find(".image-path").eq(0);if("function"==typeof t.onDrawingModeChange&&(P=t.onDrawingModeChange),!f.length)throw new Error("The main image Can't be found ...");if(!e.length){var e=jQuery('<svg version="1.1"></svg>').addClass("cut-canvas");jQuery(t.wrapperId).append(e),e.append(f)}if(e.css({marginLeft:"auto",marginRight:"auto",width:v.width,height:v.height}),"boolean"==typeof t.readOnly&&t.readOnly===!0&&(m=!0),l=new o["default"](e.get(0)),n.length){jQuery(e).append(n);var r=n.attr("d");Q.setPath(r),n.remove()}return Y(),J(l),Z(l),Q}}},function(t,e,n){e=t.exports=n(11)(),e.push([t.id,"Typeahead[data-v-1]{position:relative}.selected-tags[data-v-1]{border:1px solid red;width:200px!important}.selected-tags select[data-v-1]{display:inline-block}.Typeahead__input[data-v-1]{width:100%;font-size:14px;color:#2c3e50;line-height:1.42857143;box-shadow:inset 0 1px 4px rgba(0,0,0,.4);-webkit-transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-weight:300;padding:12px 26px;border:none;border-radius:22px;letter-spacing:1px;box-sizing:border-box}.Typeahead__input[data-v-1]:focus{border-color:#4fc08d;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px #4fc08d}.tag-item[data-v-1]{border:1px solid red}.fa-times[data-v-1]{cursor:pointer}ul[data-v-1]{padding:0;margin-top:8px;min-width:100%;background-color:#fff;list-style:none;border-radius:4px;box-shadow:0 0 10px rgba(0,0,0,.25);z-index:1000}li[data-v-1]{padding:10px 16px;border-bottom:1px solid #ccc;cursor:pointer}li[data-v-1]:first-child{border-radius:4px 4px 0 0}li[data-v-1]:last-child{border-radius:0 0 4px 4px;border-bottom:0}span[data-v-1]{display:block;color:#2c3e50}.active[data-v-1]{background-color:#3aa373}.active span[data-v-1]{color:#fff}.name[data-v-1]{font-weight:700;font-size:18px}.screen-name[data-v-1]{font-style:italic}",""])},function(t,e,n){(function(e){t.exports=e.Vue=n(31)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.jQuery=n(27)}).call(e,function(){return this}())},function(t,e,n){var r,i;r=n(6),i=r||{},i.__esModule&&(i=i["default"]),"function"==typeof i&&(i=i.options),t.exports=r||i},function(t,e,n){var r,i;r=n(7),i=r||{},i.__esModule&&(i=i["default"]),"function"==typeof i&&(i=i.options),t.exports=r||i},function(t,e,n){var r,i;r=n(8);var o=n(44);i=r||{},i.__esModule&&(i=i["default"]),"function"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,t.exports=r||i},function(module,exports){module.exports={render:function(){with(this)return _h("div",[_h("taglist",{ref:"taglist"})," "," ",_h("input",{directives:[{name:"show",value:!readOnly,expression:"!readOnly"},{name:"model",value:query,expression:"query"}],show:!0,props:{value:_s(query)},staticAttrs:{type:"text",placeholder:"...",autocomplete:"off"},on:{keyup:[function(t){8===t.keyCode&&checkQuery(t)},update],keydown:[function(t){40===t.keyCode&&down(t)},function(t){38===t.keyCode&&up(t)},function(t){13===t.keyCode&&hit(t)},function(t){27===t.keyCode&&reset(t)}],input:function(t){t.target.composing||(query=t.target.value)}}})," ",_h("a",{directives:[{name:"show",value:showAddButton,expression:"showAddButton"}],show:!0,on:{click:addTag}},[_m(0)," Créer ce tag"])," "," ",_h("ul",{directives:[{name:"show",value:hasItems||!readOnly,expression:"hasItems || !readOnly"}],show:!0},[items&&_l(items,function(t,e){return _h("li",{"class":activeClass(e),on:{mousedown:hit,mousemove:function(t){setActive(e)}}},[_h("span",{props:{textContent:_s(t.tag_label)}})])})])," ",_h("input",{directives:[{name:"model",value:selectedTags,expression:"selectedTags"}],props:{value:_s(selectedTags)},staticAttrs:{name:"tags",type:"hidden"},on:{input:function(t){t.target.composing||(selectedTags=t.target.value)}}})])},staticRenderFns:[function(){with(this)return _h("i",{staticClass:"fa fa-plus"})}]}},function(module,exports){module.exports={render:function(){with(this)return _h("div",{staticClass:"zoomview-wrapper"},[_m(0)," ",_h("svg",{ref:"root-svg"},[_h("image",{attrs:{"xlink:href":imageUrl,width:imageWidth,height:imageHeight},staticAttrs:{id:"small-image",x:"0",y:"0","xmlns:xlink":"http://www.w3.org/1999/xlink"}})," ",_h("rect",{directives:[{name:"show",value:showHandler,expression:"showHandler"}],ref:"handler",show:!0,staticAttrs:{id:"zoom-handler",x:"0",y:"0",style:"fill:black; opacity:0.4"}})])," ",_h("ul",{staticClass:"form-drawing-wrapper zoom-action-list list-inline"},[_h("li",{staticClass:"small showPointer",on:{click:incraseDrawingZoom}},[_m(1)])," ",_h("li",{staticClass:"small showPointer",on:{click:resetDrawingZoom}},[_m(2)])," ",_h("li",{staticClass:"small showPointer",on:{click:decreaseDrawingZoom}},[_m(3)])])])},staticRenderFns:[function(){with(this)return _h("p",{staticClass:"form-drawing pullright"},[_h("strong",["Zoom"])])},function(){with(this)return _h("i",{staticClass:"fa fa-search-plus"})},function(){with(this)return _h("i",{staticClass:"fa fa-square"})},function(){with(this)return _h("i",{staticClass:"fa fa-search-minus"})}]}},function(module,exports){module.exports={render:function(){with(this)return _h("div",[_h("ul",{directives:[{name:"show",value:!readOnly,expression:"!readOnly"}],staticClass:"tags-wrapper list-unstyled",show:!0},[tags&&_l(tags,function(t,e){return _h("li",{ref:t.id,refInFor:!0,staticClass:"tag-item"},[_m(0)," ",_h("strong",[_h("span",{props:{textContent:_s(t.tag_label)}})]),"\n\n\t\t\tPrécision: \t",_h("select",{on:{change:function(e){updateAccuracy(e,t)}}},[[1,2,3,4,5]&&_l([1,2,3,4,5],function(e,n){return _h("option",{props:{selected:t.accuracy==e,value:e}},[_s(e)])})]),"\n\n\t\t\tPertinence: ",_h("select",{on:{change:function(e){updatePertinence(e,t)}}},[[1,2,3,4,5]&&_l([1,2,3,4,5],function(e,n){return _h("option",{props:{selected:t.relevancy==e,value:e}},[_s(e)])})])," ",_h("a",{on:{click:function(e){removeTag(t)}}},[_m(1)])])})])," ",_h("ul",{directives:[{name:"show",value:readOnly,expression:"readOnly"}],staticClass:"list-inline",show:!0},[tags&&_l(tags,function(t,e){return _h("li",[_m(2)," ",_h("span",{staticClass:"label label-info"},[_s(t.tag_label)]),"\n\t\t\t | précision ",_h("span",{staticClass:"badge"},[_s(t.accuracy)]),"\n\t\t\t | pertinence ",_h("span",{staticClass:"badge"},[_s(t.relevancy)])])})])])},staticRenderFns:[function(){with(this)return _h("i",{staticClass:"fa fa-tag"})},function(){with(this)return _h("i",{staticClass:"fa fa-trash"})},function(){with(this)return _h("i",{staticClass:"fa fa-tag"})}]}},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=f[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(u(r.parts[o],e))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(u(r.parts[o],e));f[r.id]={id:r.id,refs:1,parts:a}}}}function i(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],a=i[1],s=i[2],u=i[3],c={css:a,media:s,sourceMap:u};n[o]?n[o].parts.push(c):e.push(n[o]={id:o,parts:[c]})}return e}function o(t,e){var n=p(),r=m[m.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),m.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){t.parentNode.removeChild(t);var e=m.indexOf(t);e>=0&&m.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function u(t,e){var n,r,i;if(e.singleton){var o=g++;n=v||(v=s(e)),r=c.bind(null,n,o,!1),i=c.bind(null,n,o,!0)}else n=s(e),r=l.bind(null,n),i=function(){a(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function c(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function l(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var f={},h=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},d=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),p=h(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,g=0,m=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=d()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],a=0;a<n.length;a++){var s=n[a],u=f[s.id];u.refs--,o.push(u)}if(t){var c=i(t);r(c,e)}for(var a=0;a<o.length;a++){var u=o[a];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete f[u.id]}}}};var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){var r=n(36);"string"==typeof r&&(r=[[t.id,r,""]]);n(45)(r,{});r.locals&&(t.exports=r.locals)}]);
+to="webkitAnimationEnd"));var eo=Sr&&window.requestAnimationFrame||setTimeout,no=u(function(t){return{enterClass:t+"-enter",leaveClass:t+"-leave",appearClass:t+"-enter",enterActiveClass:t+"-enter-active",leaveActiveClass:t+"-leave-active",appearActiveClass:t+"-enter-active"}}),ro=Gi?{create:function(t,e){je(e)||ye(e)},remove:function(t,e){je(t)?e():be(t,e)}}:{},io=[Ii,Hi,qi,zi,Xi,ro],oo=io.concat(Ri),ao=ae({nodeOps:Di,modules:oo}),so=/^input|select|textarea|vue-component-[0-9]+(-[0-9a-zA-Z_\-]*)?$/;Oi&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Fe(t,"input")});var uo={bind:function(t,e,n){so.test(n.tag)||ui("v-model is not supported on element type: <"+n.tag+">. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.",n.context),"select"===n.tag?Oe(t,e.value):(Ni||(t.addEventListener("compositionstart",Me),t.addEventListener("compositionend",Pe)),Oi&&(t.vmodel=!0))},postupdate:function(t,e,n){var r=e.value;if("select"===n.tag){Oe(t,r);var i=t.multiple?r.some(function(e){return Ne(e,t.options)}):Ne(r,t.options);i&&Fe(t,"change")}}},co={bind:function(t,e,n){var r=e.value,i=Be(n);r&&i&&i.appear&&!Oi&&ye(n),t.style.display=r?"":"none"},update:function(t,e,n){var r=e.value,i=Be(n);i&&!Oi?r?(ye(n),t.style.display=""):be(n,function(){t.style.display="none"}):t.style.display=r?"":"none"}},lo={model:uo,show:co},fo={name:"transition-control",_abstract:!0,props:{child:Object,mode:{validator:function(t){return!t||"out-in"===t||"in-out"===t||(ui('transition-mode must be either "out-in" or "in-out".'),!1)}}},render:function(){var t=this,e=this._vnode,n=this.child;if(e&&e.data&&(e.tag!==n.tag||e.key!==n.key)){if("out-in"===this.mode)return Le(e,{afterLeave:function(){t.$forceUpdate()}});"in-out"===this.mode&&!function(){var t=void 0,r=function(){t()};Le(n,{afterEnter:r,enterCancelled:r}),Le(e,{delayLeave:function(e){t=e}})}()}return n}},ho={TransitionControl:fo};mt.config.isUnknownElement=qt,mt.config.isReservedTag=Ci,mt.config.getTagNamespace=Ht,mt.config.mustUseProp=vi,f(mt.options.directives,lo),f(mt.options.components,ho),mt.prototype.__patch__=kr._isServer?v:ao,mt.prototype.$mount=function(t,e){return t=t&&!kr._isServer?zt(t):void 0,this._mount(t,e)},setTimeout(function(){kr.devtools&&($r?$r.emit("init",mt):Sr&&/Chrome\/\d+/.test(window.navigator.userAgent)&&console.log("Download the Vue Devtools for a better development experience:\nhttps://github.com/vuejs/vue-devtools"))},0);var po=document.createElement("div"),vo=/([^\s"'<>\/=]+)/,go=/=/,mo=[go],yo=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],bo="[a-zA-Z_][\\w\\-\\.]*",xo="((?:"+bo+"\\:)?"+bo+")",wo=new RegExp("^<"+xo),_o=/^\s*(\/?)>/,Co=new RegExp("^<\\/"+xo+"[^>]*>"),ko=/^<!DOCTYPE [^>]+>/i,To=!1;"x".replace(/x(.)?/g,function(t,e){To=""===e});var Ao=n("script,style",!0),So={},$o=/\{\{((?:.|\\n)+?)\}\}/g,Eo=/[-.*+?^${}()|[\]\/\\]/g,jo=u(function(t){var e=t[0].replace(Eo,"\\$&"),n=t[1].replace(Eo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}),Oo=/^v-|^@|^:/,No=/(.*)\s+(?:in|of)\s+(.*)/,Do=/\(([^,]*),([^,]*)(?:,([^,]*))?\)/,Mo=/^:|^v-bind:/,Po=/^@|^v-on:/,Fo=/:(.*)$/,Bo=/\.[^\.]+/g,Lo=/[a-z\d][A-Z]/,Ro=u(Re),Io=void 0,Ho=void 0,qo=void 0,zo=void 0,Vo=void 0,Uo=void 0,Wo=void 0,Xo=/^xmlns:NS\d+/,Go=/^NS\d+:/,Zo=void 0,Jo=void 0,Yo=u(wn),Qo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,Ko={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,"delete":[8,46]},ta={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:"if($event.target !== $event.currentTarget)return;"},ea={bind:$n,cloak:v},na=void 0,ra=void 0,ia=void 0,oa=void 0,aa=void 0,sa=void 0,ua=void 0,ca=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),la=/[A-Za-z_$][\w$]*/,fa=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,ha={staticKeys:["staticClass"],transformNode:Zn,genData:Jn},da={transformNode:Yn,genData:Qn},pa={transformNode:Kn,genData:tr,transformCode:er},va=[ha,da,pa],ga=void 0,ma={model:nr,text:ur,html:cr},ya=Object.create(null),ba={isIE:ji,expectHTML:!0,modules:va,staticKeys:g(va),directives:ma,isReservedTag:Ci,isUnaryTag:ki,mustUseProp:vi,getTagNamespace:Ht},xa=u(function(t){var e=zt(t);return e&&e.innerHTML}),wa=mt.prototype.$mount;return mt.prototype.$mount=function(t,e){t=t&&zt(t);var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=xa(r));else{if(!r.nodeType)return ui("invalid template option:"+r,this),this;r=r.innerHTML}else t&&(r=dr(t));if(r){var i=fr(r,{delimiters:n.delimiters,warn:ui},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return wa.call(this,t,e)},mt.compile=fr,mt})}).call(e,function(){return this}())},function(t,e){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(40),o=r(i);e["default"]={init:function(){new Vue(o["default"])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t,e,n,r){this.paper=t,this.shape=e,this.handlers=[],this.viewPort=n,this.viewBox=r,this.isResizing=!1,this.currentPosition={},this.HANDLER_SIZE=8,this.SHAPE_MIN_SIZE=20,this.states={},this.noop=function(){},this.init()};i.prototype={init:function(){this.showHandlers()},computeHandlerSize:function(){return this.HANDLER_SIZE*Math.min(this.viewBox[2],this.viewBox[3])/this.viewPort.width},showHandlers:function(){var t=this.shape.getBBox(),e=t.x-this.computeHandlerSize()/2,n=t.y-this.computeHandlerSize()/2,r=this.paper.rect(e,n,this.computeHandlerSize(),this.computeHandlerSize()).attr({fill:"red"});r.addClass("drawingHandler"),this.shape.addClass("drawingHandler");var i={position:"t_r",handler:r};this.handlers.push(i),this.shapesGroup=this.paper.g(this.shape,r),this.attachEvents()},updateShapePositions:function(t,e,n){var r=t.handler.getBBox(),i=this.shape.data("origBbox"),o=(r.x+this.computeHandlerSize()/2,r.y+this.computeHandlerSize()/2,e>0?i.width-e:i.width+Math.abs(e)),a=n>0?i.height-n:i.height+Math.abs(n),s=this.shape.data("origTransform")+(this.shape.data("origTransform")?"T":"t")+[e,n];this.shape.attr({transform:s,width:o,height:a})},dragEvents:{onStart:function(t,e,n,r){this.startPosition={x:r.clientX,y:r.clientY},this.isResizing=!0,this.currentPosition={},t.handler.data("origTransform",t.handler.transform().local),this.shape.data("origBbox",this.shape.getBBox()),this.shape.data("origBounding",this.shape.node.getBoundingClientRect()),this.shape.data("origTransform",this.shape.transform().local)},onMove:function(t,e,n,r,i,o){var a,s,u=t.handler.transform().diffMatrix.invert();u.e=u.f=0,a=u.x(e,n),s=u.y(e,n),this.currentPosition.x=o.clientX,this.currentPosition.y=o.clientY,this.checkBondaries(e,n)&&(t.handler.transform("t"+[a,s]+t.handler.data("origTransform")),this.updateShapePositions(t,a,s))},onStop:function(){this.isResizing=!1,this.startPosition={},this.currentPosition={}}},checkBondaries:function(t,e){var n=!0,r=this.shape.data("origBounding");this.shape.node.getBoundingClientRect();return r.width-t<=this.SHAPE_MIN_SIZE&&(n=!1),r.height-e<=this.SHAPE_MIN_SIZE&&(n=!1),n},destroy:function(){this.handlers.map(function(t){t.handler.remove()}),delete this},getZoomFactor:function(){return{x:this.viewPort.width/this.viewBox[2],y:this.viewPort.height/this.viewBox[3]}},attachEvents:function(){var t=this;this.handlers.map(function(e){e.handler.drag(t.dragEvents.onMove.bind(t,e),t.dragEvents.onStart.bind(t,e),t.dragEvents.onStop.bind(t,e))}),r.eventEmitter.on("cutout:clear",function(){t.destroy()}),this.shapesGroup.drag(function(e,n){if(!t.isResizing){var r=this.transform().diffMatrix.invert();r.e=r.f=0;var i=r.x(e,n),o=r.y(e,n),a=this.data("origTransform")+(this.data("origTransform")?"T":"t")+[i,o];this.transform(a)}},function(){this.data("origTransform",this.transform().local)},this.noop)}};e["default"]={enable_resizer:function(t,e,n,r){new i(t,e,n,r)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=r(i),a=n(34),s=r(a),u=n(1),c=n(5);r(c);o["default"].plugin(function(t,e,n,r){var i=e.prototype;i.toBack=function(){this.prependTo(this.paper)},i.toFront=function(){this.appendTo(this.paper)}}),Element.prototype.getTransformedXY=function(t,e){var n=this.transform().globalMatrix;return{x:n.x(t,e),y:n.y(t,e)}};var l=null,f=null,h=[],d={X:100,Y:100},p={x:1,y:1},v={width:850,height:850},g=[],m=!1,y=null,b=null,x=!1,w=null,_="#ff00ff",C="red",k="orange",T="#FF0000",A=8,S=!1,$=!0,E=!1,j=!0,O="RECT",N=O,D="FREE",M=[O,D],P=null,F=function(){var t=0,e="item_";return function(n){return n="string"==typeof n?n:e,t+=1,n+t}}(),B=function(t){if(m)return void l.path(t).attr({stroke:"red",opacity:.6});var e=o["default"].path.getBBox(t);w=l.rect(e.x,e.y,e.width,e.height),w.attr({fill:k,stroke:C,opacity:.6}),b=w,x=!1,E=!0,s["default"].enable_resizer(l,b,v,g)},L=function(t){if(m)return void l.path(t).attr({stroke:"orange",fill:"orange",opacity:.5});var e=o["default"].parsePathString(t);e.map(function(t){"Z"!==t[0]?G(l,t[1],t[2],h):(E=!0,R(l,H))})},R=function(t,e){var n="M";if(!(h.length<=1)){n+=h[0].x+","+h[0].y;for(var r=0;r<h.length;r++)if(0!=r){var i=h[r],o="L"+i.x+","+i.y;n+=" "+o}n+=E?" Z":"",b&&b.remove(),b=t.path(n),b.attr({stroke:C,"vector-effect":"non-scaling-stroke","stroke-width":3,fill:"white",opacity:.1}),h.map(function(t){V();t.handler&&t.handler.toFront()}),"function"==typeof e&&E&&e(),!e&&E&&I()}},I=function(){b.attr({fill:k,strokeWidth:1,opacity:.6})},H=function(){j=!1,I()},q=function(t,e,n){t.isFirst&&h.length>2&&(E=!0)},z=function(t,e,n){var r=h.indexOf(t);return r!==-1&&(h[r].x=e,h[r].y=n,!0)},V=function(){g.length||(g=[0,0,parseInt(f.width()),parseInt(f.height())]);var t=A*Math.min(g[2],g[3])/850;return t},U=function(t,e,n,r,i){S=!0;var o,a,s=this.transform().diffMatrix.invert();s.e=s.f=0,o=s.x(t,e),a=s.y(t,e);var u=this.data("origTransform")+(this.data("origTransform")?"T":"t")+[o,a];this.attr({transform:u});var c=this.getBBox(),l=z(this.data("point"),c.x+V()/2,c.y+V()/2);l&&R(this.paper)},W=function(t,e){t.handler.click(q.bind(this,t,e)),t.handler.hover(function(){t.handler.attr({fill:"yellow"})},function(){var e=t.isFirst?T:"";t.handler.attr({fill:e})}),t.handler.drag(U,function(){this.data("origTransform",this.transform().local)},function(){return!S||(S=!1,void($=!1))})},X=function(t,e){var n,r=V(),i=e.x-r/2,o=e.y-r/2;return n=t.rect(i,o,r,r),n.addClass("drawingHandler"),e.handler=n,e.handler.data("point",e),0===h.length&&(e.isFirst=!0),W(e,t),e.handler.attr({fill:0===h.length?T:"",opacity:.9,stroke:_}),e},G=function(t,e,n,r){var i={x:e,y:n,id:F()};return E?void R(t,H):$?(i=X(t,i),r.push(i),void R(t)):($=!0,!1)},Z=function(t){if(m)return!1;var e={},n={};t.mousedown(function(t){N===D||E||(e.x=t.offsetX,e.y=t.offsetY,x=!0)}),t.mousemove(function(r){if(N!==D&&x){var i,o;n.x=r.offsetX,n.y=r.offsetY,w&&w.remove();var a=Math.abs(n.x-e.x),s=Math.abs(e.y-n.y);n.y>e.y&&n.x>e.x&&(i=e.x,o=e.y),n.y<e.y&&n.x>e.x&&(i=n.x-a,o=n.y),n.y<e.y&&n.x<e.x&&(i=n.x,o=n.y),n.y>e.y&&n.x<e.x&&(i=n.x,o=n.y-s),i&&o&&(w=t.rect(i,o,a,s),w.attr({fill:k,stroke:C,opacity:.6}))}}),t.mouseup(function(){return!(N===D||E||!w)&&(b=w,s["default"].enable_resizer(t,w,v,g),x=!1,void(E=!0))})},J=function(t){m||t.click(function(e){return N===O||(!j||void G(t,e.offsetX,e.offsetY,h))})},Y=function(){u.eventEmitter.on("zoomChanged",function(t){p=t.zoomFactor,g=t.currentViewBox;var e=Q.getPath();Q.clear(),Q.setPath(e)})},Q={getPaper:function(){return l},setPath:function(t){var e=t.split(";");M.indexOf(e[1])===-1&&(e[1]="FREE"),this.setDrawingMode(e[1]);var n=e[0];if(n.length){var r=f.attr("width")/d.X,i=f.attr("height")/d.Y;(isNaN(r)||isNaN(i))&&new Error("Ratio should be a number.");var a=o["default"].matrix(r,0,0,i,0,0),s=o["default"].path.map(n,a).toString();s.search(/[z|Z]/gi)===-1&&(s+="Z"),e.length>=2&&(e[1]===O&&B(s),e[1]===D&&L(s))}},setDrawingMode:function(t){M.indexOf(t)!==-1&&(N=t),"function"==typeof P&&P(N),this.clear()},clear:function(){h.map(function(t){t.handler&&t.handler.remove()}),b&&b.remove(),u.eventEmitter.emit("cutout:clear"),h=[],y=null,b=null,S=!1,$=!0,E=!1,j=!0},getShapeBBox:function(){var t=this.getPath();return o["default"].path.getBBox(t)},getShape:function(){return this.getPath()},getPath:function(){var t="";if(b)if(N===O){var e=b.getBBox(),n=b.transform();if(n.global.length){var r=b.node.getAttribute("x"),i=b.node.getAttribute("y"),a=n.totalMatrix,s=l.rect(a.x(r,i),a.y(r,i),e.width,e.height);u=s.getBBox().path,s.remove()}else var u=b.getBBox().path;t=o["default"].path.toAbsolute(u).toString()}else t=b.attr("d");var c=d.X/f.attr("width"),h=d.Y/f.attr("height");if((isNaN(c)||isNaN(h))&&new Error("ratio should be a number."),!t.length)return t=N===O?";RECT":";FREE";var p=o["default"].matrix(c,0,0,h,0,0);t=o["default"].path.map(t,p).toString();var v=N===O?";RECT":";FREE";return t.search(/[z|Z]/gi)===-1&&(t+=" Z"),t+=v}};e["default"]={init:function(t){f=jQuery(t.wrapperId).find(".main-image").eq(0);var e=jQuery(t.wrapperId).find(".cut-canvas").eq(0),n=jQuery(t.wrapperId).find(".image-path").eq(0);if("function"==typeof t.onDrawingModeChange&&(P=t.onDrawingModeChange),!f.length)throw new Error("The main image Can't be found ...");if(!e.length){var e=jQuery('<svg version="1.1"></svg>').addClass("cut-canvas");jQuery(t.wrapperId).append(e),e.append(f)}if(e.css({marginLeft:"auto",marginRight:"auto",width:v.width,height:v.height}),"boolean"==typeof t.readOnly&&t.readOnly===!0&&(m=!0),l=new o["default"](e.get(0)),n.length){jQuery(e).append(n);var r=n.attr("d");Q.setPath(r),n.remove()}return Y(),J(l),Z(l),Q}}},function(t,e,n){e=t.exports=n(12)(),e.push([t.id,"Typeahead[data-v-1]{position:relative}.selected-tags[data-v-1]{border:1px solid red;width:200px!important}.selected-tags select[data-v-1]{display:inline-block}.Typeahead__input[data-v-1]{width:100%;font-size:14px;color:#2c3e50;line-height:1.42857143;box-shadow:inset 0 1px 4px rgba(0,0,0,.4);-webkit-transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-weight:300;padding:12px 26px;border:none;border-radius:22px;letter-spacing:1px;box-sizing:border-box}.Typeahead__input[data-v-1]:focus{border-color:#4fc08d;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px #4fc08d}.tag-item[data-v-1]{border:1px solid red}.fa-times[data-v-1]{cursor:pointer}ul[data-v-1]{padding:0;margin-top:8px;min-width:100%;background-color:#fff;list-style:none;border-radius:4px;box-shadow:0 0 10px rgba(0,0,0,.25);z-index:1000}li[data-v-1]{padding:10px 16px;border-bottom:1px solid #ccc;cursor:pointer}li[data-v-1]:first-child{border-radius:4px 4px 0 0}li[data-v-1]:last-child{border-radius:0 0 4px 4px;border-bottom:0}span[data-v-1]{display:block;color:#2c3e50}.active[data-v-1]{background-color:#3aa373}.active span[data-v-1]{color:#fff}.name[data-v-1]{font-weight:700;font-size:18px}.screen-name[data-v-1]{font-style:italic}",""])},function(t,e,n){(function(e){t.exports=e.$=n(4)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.Vue=n(31)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.jQuery=n(4)}).call(e,function(){return this}())},function(t,e,n){var r,i;r=n(7),i=r||{},i.__esModule&&(i=i["default"]),"function"==typeof i&&(i=i.options),t.exports=r||i},function(t,e,n){var r,i;r=n(8),i=r||{},i.__esModule&&(i=i["default"]),"function"==typeof i&&(i=i.options),t.exports=r||i},function(t,e,n){var r,i;r=n(9);var o=n(45);i=r||{},i.__esModule&&(i=i["default"]),"function"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,t.exports=r||i},function(module,exports){module.exports={render:function(){with(this)return _h("div",[_h("taglist",{ref:"taglist"})," "," ",_h("input",{directives:[{name:"show",value:!readOnly,expression:"!readOnly"},{name:"model",value:query,expression:"query"}],show:!0,props:{value:_s(query)},staticAttrs:{type:"text",placeholder:"...",autocomplete:"off"},on:{keyup:[function(t){8===t.keyCode&&checkQuery(t)},update],keydown:[function(t){40===t.keyCode&&down(t)},function(t){38===t.keyCode&&up(t)},function(t){13===t.keyCode&&hit(t)},function(t){27===t.keyCode&&reset(t)}],input:function(t){t.target.composing||(query=t.target.value)}}})," ",_h("a",{directives:[{name:"show",value:showAddButton,expression:"showAddButton"}],show:!0,on:{click:addTag}},[_m(0)," Créer ce tag"])," "," ",_h("ul",{directives:[{name:"show",value:hasItems||!readOnly,expression:"hasItems || !readOnly"}],show:!0},[items&&_l(items,function(t,e){return _h("li",{"class":activeClass(e),on:{mousedown:hit,mousemove:function(t){setActive(e)}}},[_h("span",{props:{textContent:_s(t.tag_label)}})])})])," ",_h("input",{directives:[{name:"model",value:selectedTags,expression:"selectedTags"}],props:{value:_s(selectedTags)},staticAttrs:{name:"tags",type:"hidden"},on:{input:function(t){t.target.composing||(selectedTags=t.target.value)}}})])},staticRenderFns:[function(){with(this)return _h("i",{staticClass:"fa fa-plus"})}]}},function(module,exports){module.exports={render:function(){with(this)return _h("div",{staticClass:"zoomview-wrapper"},[_m(0)," ",_h("svg",{ref:"root-svg"},[_h("image",{attrs:{"xlink:href":imageUrl,width:imageWidth,height:imageHeight},staticAttrs:{id:"small-image",x:"0",y:"0","xmlns:xlink":"http://www.w3.org/1999/xlink"}})," ",_h("rect",{directives:[{name:"show",value:showHandler,expression:"showHandler"}],ref:"handler",show:!0,staticAttrs:{id:"zoom-handler",x:"0",y:"0",style:"fill:black; opacity:0.4"}})])," ",_h("ul",{staticClass:"form-drawing-wrapper zoom-action-list list-inline"},[_h("li",{staticClass:"small showPointer",on:{click:incraseDrawingZoom}},[_m(1)])," ",_h("li",{staticClass:"small showPointer",on:{click:resetDrawingZoom}},[_m(2)])," ",_h("li",{staticClass:"small showPointer",on:{click:decreaseDrawingZoom}},[_m(3)])])])},staticRenderFns:[function(){with(this)return _h("p",{staticClass:"form-drawing pullright"},[_h("strong",["Zoom"])])},function(){with(this)return _h("i",{staticClass:"fa fa-search-plus"})},function(){with(this)return _h("i",{staticClass:"fa fa-square"})},function(){with(this)return _h("i",{staticClass:"fa fa-search-minus"})}]}},function(module,exports){module.exports={render:function(){with(this)return _h("div",[_h("ul",{directives:[{name:"show",value:!readOnly,expression:"!readOnly"}],staticClass:"tags-wrapper list-unstyled",show:!0},[tags&&_l(tags,function(t,e){return _h("li",{ref:t.id,refInFor:!0,staticClass:"tag-item"},[_m(0)," ",_h("strong",[_h("span",{props:{textContent:_s(t.tag_label)}})]),"\n\n\t\t\tPrécision: \t",_h("select",{on:{change:function(e){updateAccuracy(e,t)}}},[[1,2,3,4,5]&&_l([1,2,3,4,5],function(e,n){return _h("option",{props:{selected:t.accuracy==e,value:e}},[_s(e)])})]),"\n\n\t\t\tPertinence: ",_h("select",{on:{change:function(e){updatePertinence(e,t)}}},[[1,2,3,4,5]&&_l([1,2,3,4,5],function(e,n){return _h("option",{props:{selected:t.relevancy==e,value:e}},[_s(e)])})])," ",_h("a",{on:{click:function(e){removeTag(t)}}},[_m(1)])])})])," ",_h("ul",{directives:[{name:"show",value:readOnly,expression:"readOnly"}],staticClass:"list-inline",show:!0},[tags&&_l(tags,function(t,e){return _h("li",[_m(2)," ",_h("span",{staticClass:"label label-info"},[_s(t.tag_label)]),"\n\t\t\t | précision ",_h("span",{staticClass:"badge"},[_s(t.accuracy)]),"\n\t\t\t | pertinence ",_h("span",{staticClass:"badge"},[_s(t.relevancy)])])})])])},staticRenderFns:[function(){with(this)return _h("i",{staticClass:"fa fa-tag"})},function(){with(this)return _h("i",{staticClass:"fa fa-trash"})},function(){with(this)return _h("i",{staticClass:"fa fa-tag"})}]}},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=f[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(u(r.parts[o],e))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(u(r.parts[o],e));f[r.id]={id:r.id,refs:1,parts:a}}}}function i(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],a=i[1],s=i[2],u=i[3],c={css:a,media:s,sourceMap:u};n[o]?n[o].parts.push(c):e.push(n[o]={id:o,parts:[c]})}return e}function o(t,e){var n=p(),r=m[m.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),m.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){t.parentNode.removeChild(t);var e=m.indexOf(t);e>=0&&m.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function u(t,e){var n,r,i;if(e.singleton){var o=g++;n=v||(v=s(e)),r=c.bind(null,n,o,!1),i=c.bind(null,n,o,!0)}else n=s(e),r=l.bind(null,n),i=function(){a(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function c(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function l(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var f={},h=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},d=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),p=h(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,g=0,m=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=d()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],a=0;a<n.length;a++){var s=n[a],u=f[s.id];u.refs--,o.push(u)}if(t){var c=i(t);r(c,e)}for(var a=0;a<o.length;a++){var u=o[a];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete f[u.id]}}}};var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){var r=n(36);"string"==typeof r&&(r=[[t.id,r,""]]);n(46)(r,{});r.locals&&(t.exports=r.locals)}]);
//# sourceMappingURL=build.js.map
\ No newline at end of file