--- a/src/iconolab/static/iconolab/js/iconolab.js Wed Aug 31 18:22:29 2016 +0200
+++ b/src/iconolab/static/iconolab/js/iconolab.js Wed Aug 31 18:59:08 2016 +0200
@@ -1,5 +1,5 @@
!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(92),n(93),n(91);var i=n(81),o=(r(i),n(27)),a=r(o),s=n(86),u=r(s),l=n(39),c=r(l),f=n(97),h=r(f),d=n(38),p=r(d),v=n(15),g=r(v),m=n(56);Vue.config.ignoredElements=["mask"];var y={Cutout:u["default"],JsDiff:m,JsonDiff:g["default"],VueComponents:{Typeahead:a["default"],MergeTool:h["default"],Zoomview:c["default"],DiffViewer:p["default"]}};window.iconolab||(window.iconolab=y)},function(t,e){"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},r="function"==typeof Array.isArray?Array.isArray:function(t){return t instanceof Array},i="function"==typeof Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e},o=function(t){return"_"===t.substr(0,1)?t.slice(1):t},a=function(t){return"_t"===t?-1:"_"===t.substr(0,1)?parseInt(t.slice(1),10):parseInt(t,10)+.1},s=function(t,e){return a(t)-a(e)},u=function(){};u.prototype.format=function(t,e){var n={};return this.prepareContext(n),this.recurse(n,t,e),this.finalize(n)},u.prototype.prepareContext=function(t){t.buffer=[],t.out=function(){this.buffer.push.apply(this.buffer,arguments)}},u.prototype.typeFormattterNotFound=function(t,e){throw new Error("cannot format delta type: "+e)},u.prototype.typeFormattterErrorFormatter=function(t,e){return e.toString()},u.prototype.finalize=function(t){if(r(t.buffer))return t.buffer.join("")},u.prototype.recurse=function(t,e,n,r,i,o,a){var s=e&&o,u=s?o.value:n;if("undefined"!=typeof e||"undefined"!=typeof r){var l=this.getDeltaType(e,o),c="node"===l?"a"===e._t?"array":"object":"";"undefined"!=typeof r?this.nodeBegin(t,r,i,l,c,a):this.rootBegin(t,l,c);var f;try{f=this["format_"+l]||this.typeFormattterNotFound(t,l),f.call(this,t,e,u,r,i,o)}catch(h){this.typeFormattterErrorFormatter(t,h,e,u,r,i,o),"undefined"!=typeof console&&console.error&&console.error(h.stack)}"undefined"!=typeof r?this.nodeEnd(t,r,i,l,c,a):this.rootEnd(t,l,c)}},u.prototype.formatDeltaChildren=function(t,e,n){var r=this;this.forEachDeltaKey(e,n,function(i,o,a,s){r.recurse(t,e[i],n?n[o]:void 0,i,o,a,s)})},u.prototype.forEachDeltaKey=function(t,e,n){var a,u=i(t),l="a"===t._t,c={};if("undefined"!=typeof e)for(a in e)"undefined"!=typeof t[a]||l&&"undefined"!=typeof t["_"+a]||u.push(a);for(a in t){var f=t[a];r(f)&&3===f[2]&&(c[f[1].toString()]={key:a,value:e&&e[parseInt(a.substr(1))]},this.includeMoveDestinations!==!1&&"undefined"==typeof e&&"undefined"==typeof t[f[1]]&&u.push(f[1].toString()))}l?u.sort(s):u.sort();for(var h=0,d=u.length;h<d;h++){var p=u[h];if(!l||"_t"!==p){var v=l?"number"==typeof p?p:parseInt(o(p),10):p,g=h===d-1;n(p,v,c[v],g)}}},u.prototype.getDeltaType=function(t,e){if("undefined"==typeof t)return"undefined"!=typeof e?"movedestination":"unchanged";if(r(t)){if(1===t.length)return"added";if(2===t.length)return"modified";if(3===t.length&&0===t[2])return"deleted";if(3===t.length&&2===t[2])return"textdiff";if(3===t.length&&3===t[2])return"moved"}else if("object"===("undefined"==typeof t?"undefined":n(t)))return"node";return"unknown"},u.prototype.parseTextDiff=function(t){for(var e=[],n=t.split("\n@@ "),r=0,i=n.length;r<i;r++){var o=n[r],a={pieces:[]},s=/^(?:@@ )?[-+]?(\d+),(\d+)/.exec(o).slice(1);a.location={line:s[0],chr:s[1]};for(var u=o.split("\n").slice(1),l=0,c=u.length;l<c;l++){var f=u[l];if(f.length){var h={type:"context"};"+"===f.substr(0,1)?h.type="added":"-"===f.substr(0,1)&&(h.type="deleted"),h.text=f.slice(1),a.pieces.push(h)}}e.push(a)}return e},e.BaseFormatter=u},function(t,e){"use strict";function n(){}function r(t,e,n,r,i){for(var o=0,a=e.length,s=0,u=0;o<a;o++){var l=e[o];if(l.removed){if(l.value=r.slice(u,u+l.count).join(""),u+=l.count,o&&e[o-1].added){var c=e[o-1];e[o-1]=e[o],e[o]=c}}else{if(!l.added&&i){var f=n.slice(s,s+l.count);f=f.map(function(t,e){var n=r[u+e];return n.length>t.length?n:t}),l.value=f.join("")}else l.value=n.slice(s,s+l.count).join("");s+=l.count,l.added||(u+=l.count)}}var h=e[a-1];return a>1&&(h.added||h.removed)&&t.equals("",h.value)&&(e[a-2].value+=h.value,e.pop()),e}function i(t){return{newPos:t.newPos,components:t.components.slice(0)}}e.__esModule=!0,e["default"]=n,n.prototype={diff:function(t,e){function n(t){return s?(setTimeout(function(){s(void 0,t)},0),!0):t}function o(){for(var o=-1*f;o<=f;o+=2){var a=void 0,s=d[o-1],h=d[o+1],p=(h?h.newPos:0)-o;s&&(d[o-1]=void 0);var v=s&&s.newPos+1<l,g=h&&0<=p&&p<c;if(v||g){if(!v||g&&s.newPos<h.newPos?(a=i(h),u.pushComponent(a.components,void 0,!0)):(a=s,a.newPos++,u.pushComponent(a.components,!0,void 0)),p=u.extractCommon(a,e,t,o),a.newPos+1>=l&&p+1>=c)return n(r(u,a.components,e,t,u.useLongestToken));d[o]=a}else d[o]=void 0}f++}var a=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],s=a.callback;"function"==typeof a&&(s=a,a={}),this.options=a;var u=this;t=this.castInput(t),e=this.castInput(e),t=this.removeEmpty(this.tokenize(t)),e=this.removeEmpty(this.tokenize(e));var l=e.length,c=t.length,f=1,h=l+c,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],e,t,0);if(d[0].newPos+1>=l&&p+1>=c)return n([{value:e.join(""),count:e.length}]);if(s)!function g(){setTimeout(function(){return f>h?s():void(o()||g())},0)}();else for(;f<=h;){var v=o();if(v)return v}},pushComponent:function(t,e,n){var r=t[t.length-1];r&&r.added===e&&r.removed===n?t[t.length-1]={count:r.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,r){for(var i=e.length,o=n.length,a=t.newPos,s=a-r,u=0;a+1<i&&s+1<o&&this.equals(e[a+1],n[s+1]);)a++,s++,u++;return u&&t.components.push({count:u}),t.newPos=a,s},equals:function(t,e){return t===e},removeEmpty:function(t){for(var e=[],n=0;n<t.length;n++)t[n]&&e.push(t[n]);return e},castInput:function(t){return t},tokenize:function(t){return t.split("")}}},function(t,e,n){"use strict";var r=n(16).Pipe,i=function(){};i.prototype.setResult=function(t){return this.result=t,this.hasResult=!0,this},i.prototype.exit=function(){return this.exiting=!0,this},i.prototype.switchTo=function(t,e){return"string"==typeof t||t instanceof r?this.nextPipe=t:(this.next=t,e&&(this.nextPipe=e)),this},i.prototype.push=function(t,e){return t.parent=this,"undefined"!=typeof e&&(t.childName=e),t.root=this.root||this,t.options=t.options||this.options,this.children?(this.children[this.children.length-1].next=t,this.children.push(t)):(this.children=[t],this.nextAfterChildren=this.next||null,this.next=t),t.next=this,this},e.Context=i},function(t,e,n){"use strict";var r="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},i=n(3).Context,o=n(13),a=function(t,e){this.left=t,this.right=e,this.pipe="diff"};a.prototype=new i,a.prototype.setResult=function(t){if(this.options.cloneDiffValues){var e="function"==typeof this.options.cloneDiffValues?this.options.cloneDiffValues:function(t){return JSON.parse(JSON.stringify(t),o)};"object"===r(t[0])&&(t[0]=e(t[0])),"object"===r(t[1])&&(t[1]=e(t[1]))}return i.prototype.setResult.apply(this,arguments)},e.DiffContext=a},function(t,e,n){"use strict";var r=n(3).Context,i=function(t,e){this.left=t,this.delta=e,this.pipe="patch"};i.prototype=new r,e.PatchContext=i},function(t,e,n){"use strict";var r=n(3).Context,i=function(t){this.delta=t,this.pipe="reverse"};i.prototype=new r,e.ReverseContext=i},function(t,e){"use strict";e.isBrowser="undefined"!=typeof window},function(t,e,n){"use strict";var r=n(1),i=r.BaseFormatter,o=function(){this.includeMoveDestinations=!1};o.prototype=new i,o.prototype.prepareContext=function(t){i.prototype.prepareContext.call(this,t),t.indent=function(t){this.indentLevel=(this.indentLevel||0)+("undefined"==typeof t?1:t),this.indentPad=new Array(this.indentLevel+1).join(" ")},t.row=function(e,n){t.out('<tr><td style="white-space: nowrap;"><pre class="jsondiffpatch-annotated-indent" style="display: inline-block">'),t.out(t.indentPad),t.out('</pre><pre style="display: inline-block">'),t.out(e),t.out('</pre></td><td class="jsondiffpatch-delta-note"><div>'),t.out(n),t.out("</div></td></tr>")}},o.prototype.typeFormattterErrorFormatter=function(t,e){t.row("",'<pre class="jsondiffpatch-error">'+e+"</pre>")},o.prototype.formatTextDiffString=function(t,e){var n=this.parseTextDiff(e);t.out('<ul class="jsondiffpatch-textdiff">');for(var r=0,i=n.length;r<i;r++){var o=n[r];t.out('<li><div class="jsondiffpatch-textdiff-location"><span class="jsondiffpatch-textdiff-line-number">'+o.location.line+'</span><span class="jsondiffpatch-textdiff-char">'+o.location.chr+'</span></div><div class="jsondiffpatch-textdiff-line">');for(var a=o.pieces,s=0,u=a.length;s<u;s++){var l=a[s];t.out('<span class="jsondiffpatch-textdiff-'+l.type+'">'+l.text+"</span>")}t.out("</div></li>")}t.out("</ul>")},o.prototype.rootBegin=function(t,e,n){t.out('<table class="jsondiffpatch-annotated-delta">'),"node"===e&&(t.row("{"),t.indent()),"array"===n&&t.row('"_t": "a",',"Array delta (member names indicate array indices)")},o.prototype.rootEnd=function(t,e){"node"===e&&(t.indent(-1),t.row("}")),t.out("</table>")},o.prototype.nodeBegin=function(t,e,n,r,i){t.row("""+e+"": {"),"node"===r&&t.indent(),"array"===i&&t.row('"_t": "a",',"Array delta (member names indicate array indices)")},o.prototype.nodeEnd=function(t,e,n,r,i,o){"node"===r&&t.indent(-1),t.row("}"+(o?"":","))},o.prototype.format_unchanged=function(){},o.prototype.format_movedestination=function(){},o.prototype.format_node=function(t,e,n){this.formatDeltaChildren(t,e,n)};var a=function(t){return'<pre style="display:inline-block">"'+t+""</pre>"},s={added:function(t,e,n,r){var i=" <pre>([newValue])</pre>";return"undefined"==typeof r?"new value"+i:"number"==typeof r?"insert at index "+r+i:"add property "+a(r)+i},modified:function(t,e,n,r){var i=" <pre>([previousValue, newValue])</pre>";return"undefined"==typeof r?"modify value"+i:"number"==typeof r?"modify at index "+r+i:"modify property "+a(r)+i},deleted:function(t,e,n,r){var i=" <pre>([previousValue, 0, 0])</pre>";return"undefined"==typeof r?"delete value"+i:"number"==typeof r?"remove index "+r+i:"delete property "+a(r)+i},moved:function(t,e,n,r){return'move from <span title="(position to remove at original state)">index '+r+'</span> to <span title="(position to insert at final state)">index '+t[1]+"</span>"},textdiff:function(t,e,n,r){var i="undefined"==typeof r?"":"number"==typeof r?" at index "+r:" at property "+a(r);return"text diff"+i+', format is <a href="https://code.google.com/p/google-diff-match-patch/wiki/Unidiff">a variation of Unidiff</a>'}},u=function(t,e){var n=this.getDeltaType(e),r=s[n],i=r&&r.apply(r,Array.prototype.slice.call(arguments,1)),o=JSON.stringify(e,null,2);"textdiff"===n&&(o=o.split("\\n").join('\\n"+\n "')),t.indent(),t.row(o,i),t.indent(-1)};o.prototype.format_added=u,o.prototype.format_modified=u,o.prototype.format_deleted=u,o.prototype.format_moved=u,o.prototype.format_textdiff=u,e.AnnotatedFormatter=o;var l;e.format=function(t,e){return l||(l=new o),l.format(t,e)}},function(t,e,n){"use strict";function r(t){for(var e=t,n=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/'/g,"'"],[/"/g,"""]],r=0;r<n.length;r++)e=e.replace(n[r][0],n[r][1]);return e}var i=n(1),o=i.BaseFormatter,a=function(){};a.prototype=new o,a.prototype.typeFormattterErrorFormatter=function(t,e){t.out('<pre class="jsondiffpatch-error">'+e+"</pre>")},a.prototype.formatValue=function(t,e){t.out("<pre>"+r(JSON.stringify(e,null,2))+"</pre>")},a.prototype.formatTextDiffString=function(t,e){var n=this.parseTextDiff(e);t.out('<ul class="jsondiffpatch-textdiff">');for(var i=0,o=n.length;i<o;i++){var a=n[i];t.out('<li><div class="jsondiffpatch-textdiff-location"><span class="jsondiffpatch-textdiff-line-number">'+a.location.line+'</span><span class="jsondiffpatch-textdiff-char">'+a.location.chr+'</span></div><div class="jsondiffpatch-textdiff-line">');for(var s=a.pieces,u=0,l=s.length;u<l;u++){var c=s[u];t.out('<span class="jsondiffpatch-textdiff-'+c.type+'">'+r(unescape(c.text))+"</span>")}t.out("</div></li>")}t.out("</ul>")};var s=function(t){t=t||document;var e=function(t){return t.textContent||t.innerText},n=function(t,e,n){for(var r=t.querySelectorAll(e),i=0,o=r.length;i<o;i++)n(r[i])},r=function(t,e){for(var n=0,r=t.children.length;n<r;n++)e(t.children[n],n)};n(t,".jsondiffpatch-arrow",function(t){var n=t.parentNode,i=t.children[0],o=i.children[1];i.style.display="none";var a,s=e(n.querySelector(".jsondiffpatch-moved-destination")),u=n.parentNode;if(r(u,function(t){t.getAttribute("data-key")===s&&(a=t)}),a)try{var l=a.offsetTop-n.offsetTop;i.setAttribute("height",Math.abs(l)+6),t.style.top=-8+(l>0?0:l)+"px";var c=l>0?"M30,0 Q-10,"+Math.round(l/2)+" 26,"+(l-4):"M30,"+-l+" Q-10,"+Math.round(-l/2)+" 26,4";o.setAttribute("d",c),i.style.display=""}catch(f){return}})};a.prototype.rootBegin=function(t,e,n){var r="jsondiffpatch-"+e+(n?" jsondiffpatch-child-node-type-"+n:"");t.out('<div class="jsondiffpatch-delta '+r+'">')},a.prototype.rootEnd=function(t){t.out("</div>"+(t.hasArrows?'<script type="text/javascript">setTimeout('+s.toString()+",10);</script>":""))},a.prototype.nodeBegin=function(t,e,n,r,i){var o="jsondiffpatch-"+r+(i?" jsondiffpatch-child-node-type-"+i:"");t.out('<li class="'+o+'" data-key="'+n+'"><div class="jsondiffpatch-property-name">'+n+"</div>")},a.prototype.nodeEnd=function(t){t.out("</li>")},a.prototype.format_unchanged=function(t,e,n){"undefined"!=typeof n&&(t.out('<div class="jsondiffpatch-value">'),this.formatValue(t,n),t.out("</div>"))},a.prototype.format_movedestination=function(t,e,n){"undefined"!=typeof n&&(t.out('<div class="jsondiffpatch-value">'),this.formatValue(t,n),t.out("</div>"))},a.prototype.format_node=function(t,e,n){var r="a"===e._t?"array":"object";t.out('<ul class="jsondiffpatch-node jsondiffpatch-node-type-'+r+'">'),this.formatDeltaChildren(t,e,n),t.out("</ul>")},a.prototype.format_added=function(t,e){t.out('<div class="jsondiffpatch-value">'),this.formatValue(t,e[0]),t.out("</div>")},a.prototype.format_modified=function(t,e){t.out('<div class="jsondiffpatch-value jsondiffpatch-left-value">'),this.formatValue(t,e[0]),t.out('</div><div class="jsondiffpatch-value jsondiffpatch-right-value">'),this.formatValue(t,e[1]),t.out("</div>")},a.prototype.format_deleted=function(t,e){t.out('<div class="jsondiffpatch-value">'),this.formatValue(t,e[0]),t.out("</div>")},a.prototype.format_moved=function(t,e){t.out('<div class="jsondiffpatch-value">'),this.formatValue(t,e[0]),t.out('</div><div class="jsondiffpatch-moved-destination">'+e[1]+"</div>"),t.out('<div class="jsondiffpatch-arrow" style="position: relative; left: -34px;">\t <svg width="30" height="60" style="position: absolute; display: none;">\t <defs>\t <marker id="markerArrow" markerWidth="8" markerHeight="8" refx="2" refy="4"\t orient="auto" markerUnits="userSpaceOnUse">\t <path d="M1,1 L1,7 L7,4 L1,1" style="fill: #339;" />\t </marker>\t </defs>\t <path d="M30,0 Q-10,25 26,50" style="stroke: #88f; stroke-width: 2px; fill: none;\t stroke-opacity: 0.5; marker-end: url(#markerArrow);"></path>\t </svg>\t </div>'),t.hasArrows=!0},a.prototype.format_textdiff=function(t,e){t.out('<div class="jsondiffpatch-value">'),this.formatTextDiffString(t,e[0]),t.out("</div>")};var u=function(t,e,n){var r=e||document.body,i="jsondiffpatch-unchanged-",o={showing:i+"showing",hiding:i+"hiding",visible:i+"visible",hidden:i+"hidden"},a=r.classList;if(a){if(!n)return a.remove(o.showing),a.remove(o.hiding),a.remove(o.visible),a.remove(o.hidden),void(t===!1&&a.add(o.hidden));t===!1?(a.remove(o.showing),a.add(o.visible),setTimeout(function(){a.add(o.hiding)},10)):(a.remove(o.hiding),a.add(o.showing),a.remove(o.hidden));var u=setInterval(function(){s(r)},100);setTimeout(function(){a.remove(o.showing),a.remove(o.hiding),t===!1?(a.add(o.hidden),a.remove(o.visible)):(a.add(o.visible),a.remove(o.hidden)),setTimeout(function(){a.remove(o.visible),clearInterval(u)},n+400)},n)}},l=function(t,e){return u(!1,t,e)};e.HtmlFormatter=a,e.showUnchanged=u,e.hideUnchanged=l;var c;e.format=function(t,e){return c||(c=new a),c.format(t,e)}},function(t,e,n){"use strict";var r=n(7);if(e.base=n(1),e.html=n(9),e.annotated=n(8),e.jsonpatch=n(11),!r.isBrowser){var i="./console";e.console=n(95)(i)}},function(t,e,n){"use strict";!function(){function t(){this.includeMoveDestinations=!1}function r(t){return t[t.length-1]}function i(t,e){return t.sort(e),t}function o(t){return i(t,function(t,e){var n=t.path.split("/"),i=e.path.split("/");return n.length!==i.length?n.length-i.length:h(r(n),r(i))})}function a(t,e){var n=[],r=[];return t.forEach(function(t){var i=e(t)?n:r;i.push(t)}),[n,r]}function s(t){var e=a(t,function(t){return"remove"===t.op}),n=e[0],r=e[1],i=o(n);return i.concat(r)}var u=n(1),l=u.BaseFormatter,c={added:"add",deleted:"remove",modified:"replace",moved:"moved",movedestination:"movedestination",unchanged:"unchanged",error:"error",textDiffLine:"textDiffLine"};t.prototype=new l,t.prototype.prepareContext=function(t){l.prototype.prepareContext.call(this,t),t.result=[],t.path=[],t.pushCurrentOp=function(t,e){var n={op:t,path:this.currentPath()};"undefined"!=typeof e&&(n.value=e),this.result.push(n)},t.currentPath=function(){return"/"+this.path.join("/")}},t.prototype.typeFormattterErrorFormatter=function(t,e){t.out("[ERROR]"+e)},t.prototype.rootBegin=function(){},t.prototype.rootEnd=function(){},t.prototype.nodeBegin=function(t,e,n){t.path.push(n)},t.prototype.nodeEnd=function(t){t.path.pop()},t.prototype.format_unchanged=function(t,e,n){"undefined"!=typeof n&&t.pushCurrentOp(c.unchanged,n)},t.prototype.format_movedestination=function(t,e,n){"undefined"!=typeof n&&t.pushCurrentOp(c.movedestination,n)},t.prototype.format_node=function(t,e,n){this.formatDeltaChildren(t,e,n)},t.prototype.format_added=function(t,e){t.pushCurrentOp(c.added,e[0])},t.prototype.format_modified=function(t,e){t.pushCurrentOp(c.modified,e[1])},t.prototype.format_deleted=function(t){t.pushCurrentOp(c.deleted)},t.prototype.format_moved=function(t,e){t.pushCurrentOp(c.moved,e[1])},t.prototype.format_textdiff=function(){throw"not implimented"},t.prototype.format=function(t,e){var n={};return this.prepareContext(n),this.recurse(n,t,e),n.result},e.JSONFormatter=t;var f,h=function(t,e){var n=parseInt(t,10),r=parseInt(e,10);return isNaN(n)||isNaN(r)?0:r-n},d=function(e,n){return f||(f=new t),s(f.format(e,n))};e.log=function(t,e){console.log(d(t,e))},e.format=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(74),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){"use strict";t.exports=function(t,e){var n;return"string"==typeof e&&(n=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d*))?(Z|([+\-])(\d{2}):(\d{2}))$/.exec(e))?new Date(Date.UTC(+n[1],+n[2]-1,+n[3],+n[4],+n[5],+n[6],+(n[7]||0))):e}},function(t,e,n){"use strict";var r=n(76),i=n(1),o=i.BaseFormatter,a={added:r.green,deleted:r.red,movedestination:r.gray,moved:r.yellow,unchanged:r.gray,error:r.white.bgRed,textDiffLine:r.gray},s=function(){this.includeMoveDestinations=!1};s.prototype=new o,s.prototype.prepareContext=function(t){o.prototype.prepareContext.call(this,t),t.indent=function(t){this.indentLevel=(this.indentLevel||0)+("undefined"==typeof t?1:t),this.indentPad=new Array(this.indentLevel+1).join(" "),this.outLine()},t.outLine=function(){this.buffer.push("\n"+(this.indentPad||""))},t.out=function(){for(var t=0,e=arguments.length;t<e;t++){var n=arguments[t].split("\n"),r=n.join("\n"+(this.indentPad||""));this.color&&this.color[0]&&(r=this.color[0](r)),this.buffer.push(r)}},t.pushColor=function(t){this.color=this.color||[],this.color.unshift(t)},t.popColor=function(){this.color=this.color||[],this.color.shift()}},s.prototype.typeFormattterErrorFormatter=function(t,e){t.pushColor(a.error),t.out("[ERROR]"+e),t.popColor()},s.prototype.formatValue=function(t,e){t.out(JSON.stringify(e,null,2))},s.prototype.formatTextDiffString=function(t,e){var n=this.parseTextDiff(e);t.indent();for(var r=0,i=n.length;r<i;r++){var o=n[r];t.pushColor(a.textDiffLine),t.out(o.location.line+","+o.location.chr+" "),t.popColor();for(var s=o.pieces,u=0,l=s.length;u<l;u++){var c=s[u];t.pushColor(a[c.type]),t.out(c.text),t.popColor()}r<i-1&&t.outLine()}t.indent(-1)},s.prototype.rootBegin=function(t,e,n){t.pushColor(a[e]),"node"===e&&(t.out("array"===n?"[":"{"),t.indent())},s.prototype.rootEnd=function(t,e,n){"node"===e&&(t.indent(-1),t.out("array"===n?"]":"}")),t.popColor()},s.prototype.nodeBegin=function(t,e,n,r,i){t.pushColor(a[r]),t.out(n+": "),"node"===r&&(t.out("array"===i?"[":"{"),t.indent())},s.prototype.nodeEnd=function(t,e,n,r,i,o){"node"===r&&(t.indent(-1),t.out("array"===i?"]":"}"+(o?"":","))),o||t.outLine(),t.popColor()},s.prototype.format_unchanged=function(t,e,n){"undefined"!=typeof n&&this.formatValue(t,n)},s.prototype.format_movedestination=function(t,e,n){"undefined"!=typeof n&&this.formatValue(t,n)},s.prototype.format_node=function(t,e,n){this.formatDeltaChildren(t,e,n)},s.prototype.format_added=function(t,e){this.formatValue(t,e[0])},s.prototype.format_modified=function(t,e){t.pushColor(a.deleted),this.formatValue(t,e[0]),t.popColor(),t.out(" => "),t.pushColor(a.added),this.formatValue(t,e[1]),t.popColor()},s.prototype.format_deleted=function(t,e){this.formatValue(t,e[0])},s.prototype.format_moved=function(t,e){t.out("==> "+e[1])},s.prototype.format_textdiff=function(t,e){this.formatTextDiffString(t,e[0])},e.ConsoleFormatter=s;var u,l=function(t,e){return u||(u=new s),u.format(t,e)};e.log=function(t,e){console.log(l(t,e))},e.format=l},function(t,e,n){"use strict";var r=n(7),i=n(19).DiffPatcher;e.DiffPatcher=i,e.create=function(t){return new i(t)},e.dateReviver=n(13);var o;if(e.diff=function(){return o||(o=new i),o.diff.apply(o,arguments)},e.patch=function(){return o||(o=new i),o.patch.apply(o,arguments)},e.unpatch=function(){return o||(o=new i),o.unpatch.apply(o,arguments)},e.reverse=function(){return o||(o=new i),o.reverse.apply(o,arguments)},r.isBrowser)e.homepage="{{package-homepage}}",e.version="{{package-version}}";else{var a="../package.json",s=n(37)(a);e.homepage=s.homepage,e.version=s.version;var u="./formatters",l=n(37)(u);e.formatters=l,e.console=l.console}},function(t,e){"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},r=function(t){this.name=t,this.filters=[]};r.prototype.process=function(t){if(!this.processor)throw new Error("add this pipe to a processor before using it");for(var e=this.debug,r=this.filters.length,i=t,o=0;o<r;o++){var a=this.filters[o];if(e&&this.log("filter: "+a.filterName),a(i),"object"===("undefined"==typeof i?"undefined":n(i))&&i.exiting){i.exiting=!1;break}}!i.next&&this.resultCheck&&this.resultCheck(i)},r.prototype.log=function(t){console.log("[jsondiffpatch] "+this.name+" pipe, "+t)},r.prototype.append=function(){return this.filters.push.apply(this.filters,arguments),this},r.prototype.prepend=function(){return this.filters.unshift.apply(this.filters,arguments),this},r.prototype.indexOf=function(t){if(!t)throw new Error("a filter name is required");for(var e=0;e<this.filters.length;e++){var n=this.filters[e];if(n.filterName===t)return e}throw new Error("filter not found: "+t)},r.prototype.list=function(){for(var t=[],e=0;e<this.filters.length;e++){var n=this.filters[e];t.push(n.filterName)}return t},r.prototype.after=function(t){var e=this.indexOf(t),n=Array.prototype.slice.call(arguments,1);if(!n.length)throw new Error("a filter is required");return n.unshift(e+1,0),Array.prototype.splice.apply(this.filters,n),this},r.prototype.before=function(t){var e=this.indexOf(t),n=Array.prototype.slice.call(arguments,1);if(!n.length)throw new Error("a filter is required");return n.unshift(e,0),Array.prototype.splice.apply(this.filters,n),this},r.prototype.clear=function(){return this.filters.length=0,this},r.prototype.shouldHaveResult=function(t){if(t===!1)return void(this.resultCheck=null);if(!this.resultCheck){var e=this;return this.resultCheck=function(t){if(!t.hasResult){console.log(t);var n=new Error(e.name+" failed");throw n.noResult=!0,n}},this}},e.Pipe=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e,n){return l.diff(t,e,n)}function o(t,e,n){var r=(0,u.generateOptions)(n,{ignoreWhitespace:!0});return l.diff(t,e,r)}e.__esModule=!0,e.lineDiff=void 0,e.diffLines=i,e.diffTrimmedLines=o;var a=n(2),s=r(a),u=n(30),l=e.lineDiff=new s["default"];l.tokenize=function(t){var e=[],n=t.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?e[e.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),e.push(i))}return e}},function(t,e){"use strict";function n(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}var r="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},i=-1,o=1,a=0;n.Diff,n.prototype.diff_main=function(t,e,n,r){"undefined"==typeof r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=r;if(null==t||null==e)throw new Error("Null input. (diff_main)");if(t==e)return t?[[a,t]]:[];"undefined"==typeof n&&(n=!0);var o=n,s=this.diff_commonPrefix(t,e),u=t.substring(0,s);t=t.substring(s),e=e.substring(s),s=this.diff_commonSuffix(t,e);var l=t.substring(t.length-s);t=t.substring(0,t.length-s),e=e.substring(0,e.length-s);var c=this.diff_compute_(t,e,o,i);return u&&c.unshift([a,u]),l&&c.push([a,l]),this.diff_cleanupMerge(c),c},n.prototype.diff_compute_=function(t,e,n,r){var s;if(!t)return[[o,e]];if(!e)return[[i,t]];var u=t.length>e.length?t:e,l=t.length>e.length?e:t,c=u.indexOf(l);if(c!=-1)return s=[[o,u.substring(0,c)],[a,l],[o,u.substring(c+l.length)]],t.length>e.length&&(s[0][0]=s[2][0]=i),s;if(1==l.length)return[[i,t],[o,e]];u=l=null;var f=this.diff_halfMatch_(t,e);if(f){var h=f[0],d=f[1],p=f[2],v=f[3],g=f[4],m=this.diff_main(h,p,n,r),y=this.diff_main(d,v,n,r);return m.concat([[a,g]],y)}return n&&t.length>100&&e.length>100?this.diff_lineMode_(t,e,r):this.diff_bisect_(t,e,r)},n.prototype.diff_lineMode_=function(t,e,n){var r=this.diff_linesToChars_(t,e);t=r[0],e=r[1];var s=r[2],u=this.diff_bisect_(t,e,n);this.diff_charsToLines_(u,s),this.diff_cleanupSemantic(u),u.push([a,""]);for(var l=0,c=0,f=0,h="",d="";l<u.length;){switch(u[l][0]){case o:f++,d+=u[l][1];break;case i:c++,h+=u[l][1];break;case a:if(c>=1&&f>=1){var r=this.diff_main(h,d,!1,n);u.splice(l-c-f,c+f),l=l-c-f;for(var p=r.length-1;p>=0;p--)u.splice(l,0,r[p]);l+=r.length}f=0,c=0,h="",d=""}l++}return u.pop(),u},n.prototype.diff_bisect_=function(t,e,n){for(var r=t.length,a=e.length,s=Math.ceil((r+a)/2),u=s,l=2*s,c=new Array(l),f=new Array(l),h=0;h<l;h++)c[h]=-1,f[h]=-1;c[u+1]=0,f[u+1]=0;for(var d=r-a,p=d%2!=0,v=0,g=0,m=0,y=0,b=0;b<s&&!((new Date).getTime()>n);b++){for(var x=-b+v;x<=b-g;x+=2){var w,_=u+x;w=x==-b||x!=b&&c[_-1]<c[_+1]?c[_+1]:c[_-1]+1;for(var C=w-x;w<r&&C<a&&t.charAt(w)==e.charAt(C);)w++,C++;if(c[_]=w,w>r)g+=2;else if(C>a)v+=2;else if(p){var k=u+d-x;if(k>=0&&k<l&&f[k]!=-1){var T=r-f[k];if(w>=T)return this.diff_bisectSplit_(t,e,w,C,n)}}}for(var A=-b+m;A<=b-y;A+=2){var T,k=u+A;T=A==-b||A!=b&&f[k-1]<f[k+1]?f[k+1]:f[k-1]+1;for(var S=T-A;T<r&&S<a&&t.charAt(r-T-1)==e.charAt(a-S-1);)T++,S++;if(f[k]=T,T>r)y+=2;else if(S>a)m+=2;else if(!p){var _=u+d-A;if(_>=0&&_<l&&c[_]!=-1){var w=c[_],C=u+w-_;if(T=r-T,w>=T)return this.diff_bisectSplit_(t,e,w,C,n)}}}}return[[i,t],[o,e]]},n.prototype.diff_bisectSplit_=function(t,e,n,r,i){var o=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),u=e.substring(r),l=this.diff_main(o,a,!1,i),c=this.diff_main(s,u,!1,i);return l.concat(c)},n.prototype.diff_linesToChars_=function(t,e){function n(t){for(var e="",n=0,o=-1,a=r.length;o<t.length-1;){o=t.indexOf("\n",n),o==-1&&(o=t.length-1);var s=t.substring(n,o+1);n=o+1,(i.hasOwnProperty?i.hasOwnProperty(s):void 0!==i[s])?e+=String.fromCharCode(i[s]):(e+=String.fromCharCode(a),i[s]=a,r[a++]=s)}return e}var r=[],i={};r[0]="";var o=n(t),a=n(e);return[o,a,r]},n.prototype.diff_charsToLines_=function(t,e){for(var n=0;n<t.length;n++){for(var r=t[n][1],i=[],o=0;o<r.length;o++)i[o]=e[r.charCodeAt(o)];t[n][1]=i.join("")}},n.prototype.diff_commonPrefix=function(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(o,i)==e.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i},n.prototype.diff_commonSuffix=function(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i},n.prototype.diff_commonOverlap_=function(t,e){var n=t.length,r=e.length;if(0==n||0==r)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var i=Math.min(n,r);if(t==e)return i;for(var o=0,a=1;;){var s=t.substring(i-a),u=e.indexOf(s);if(u==-1)return o;a+=u,0!=u&&t.substring(i-a)!=e.substring(0,a)||(o=a,a++)}},n.prototype.diff_halfMatch_=function(t,e){function n(t,e,n){for(var r,i,o,s,u=t.substring(n,n+Math.floor(t.length/4)),l=-1,c="";(l=e.indexOf(u,l+1))!=-1;){var f=a.diff_commonPrefix(t.substring(n),e.substring(l)),h=a.diff_commonSuffix(t.substring(0,n),e.substring(0,l));c.length<h+f&&(c=e.substring(l-h,l)+e.substring(l,l+f),r=t.substring(0,n-h),i=t.substring(n+f),o=e.substring(0,l-h),s=e.substring(l+f))}return 2*c.length>=t.length?[r,i,o,s,c]:null}if(this.Diff_Timeout<=0)return null;var r=t.length>e.length?t:e,i=t.length>e.length?e:t;if(r.length<4||2*i.length<r.length)return null;var o,a=this,s=n(r,i,Math.ceil(r.length/4)),u=n(r,i,Math.ceil(r.length/2));if(!s&&!u)return null;o=u?s&&s[4].length>u[4].length?s:u:s;var l,c,f,h;t.length>e.length?(l=o[0],c=o[1],f=o[2],h=o[3]):(f=o[0],h=o[1],l=o[2],c=o[3]);var d=o[4];return[l,c,f,h,d]},n.prototype.diff_cleanupSemantic=function(t){for(var e=!1,n=[],r=0,s=null,u=0,l=0,c=0,f=0,h=0;u<t.length;)t[u][0]==a?(n[r++]=u,l=f,c=h,f=0,h=0,s=t[u][1]):(t[u][0]==o?f+=t[u][1].length:h+=t[u][1].length,null!==s&&s.length<=Math.max(l,c)&&s.length<=Math.max(f,h)&&(t.splice(n[r-1],0,[i,s]),t[n[r-1]+1][0]=o,r--,r--,u=r>0?n[r-1]:-1,l=0,c=0,f=0,h=0,s=null,e=!0)),u++;for(e&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),u=1;u<t.length;){if(t[u-1][0]==i&&t[u][0]==o){var d=t[u-1][1],p=t[u][1],v=this.diff_commonOverlap_(d,p);(v>=d.length/2||v>=p.length/2)&&(t.splice(u,0,[a,p.substring(0,v)]),t[u-1][1]=d.substring(0,d.length-v),t[u+1][1]=p.substring(v),u++),u++}u++}},n.prototype.diff_cleanupSemanticLossless=function(t){function e(t,e){if(!t||!e)return 5;var a=0;return(t.charAt(t.length-1).match(n)||e.charAt(0).match(n))&&(a++,(t.charAt(t.length-1).match(r)||e.charAt(0).match(r))&&(a++,(t.charAt(t.length-1).match(i)||e.charAt(0).match(i))&&(a++,(t.match(o)||e.match(s))&&a++))),a}for(var n=/[^a-zA-Z0-9]/,r=/\s/,i=/[\r\n]/,o=/\n\r?\n$/,s=/^\r?\n\r?\n/,u=1;u<t.length-1;){if(t[u-1][0]==a&&t[u+1][0]==a){var l=t[u-1][1],c=t[u][1],f=t[u+1][1],h=this.diff_commonSuffix(l,c);
-if(h){var d=c.substring(c.length-h);l=l.substring(0,l.length-h),c=d+c.substring(0,c.length-h),f=d+f}for(var p=l,v=c,g=f,m=e(l,c)+e(c,f);c.charAt(0)===f.charAt(0);){l+=c.charAt(0),c=c.substring(1)+f.charAt(0),f=f.substring(1);var y=e(l,c)+e(c,f);y>=m&&(m=y,p=l,v=c,g=f)}t[u-1][1]!=p&&(p?t[u-1][1]=p:(t.splice(u-1,1),u--),t[u][1]=v,g?t[u+1][1]=g:(t.splice(u+1,1),u--))}u++}},n.prototype.diff_cleanupEfficiency=function(t){for(var e=!1,n=[],r=0,s="",u=0,l=!1,c=!1,f=!1,h=!1;u<t.length;)t[u][0]==a?(t[u][1].length<this.Diff_EditCost&&(f||h)?(n[r++]=u,l=f,c=h,s=t[u][1]):(r=0,s=""),f=h=!1):(t[u][0]==i?h=!0:f=!0,s&&(l&&c&&f&&h||s.length<this.Diff_EditCost/2&&l+c+f+h==3)&&(t.splice(n[r-1],0,[i,s]),t[n[r-1]+1][0]=o,r--,s="",l&&c?(f=h=!0,r=0):(r--,u=r>0?n[r-1]:-1,f=h=!1),e=!0)),u++;e&&this.diff_cleanupMerge(t)},n.prototype.diff_cleanupMerge=function(t){t.push([a,""]);for(var e,n=0,r=0,s=0,u="",l="";n<t.length;)switch(t[n][0]){case o:s++,l+=t[n][1],n++;break;case i:r++,u+=t[n][1],n++;break;case a:r+s>1?(0!==r&&0!==s&&(e=this.diff_commonPrefix(l,u),0!==e&&(n-r-s>0&&t[n-r-s-1][0]==a?t[n-r-s-1][1]+=l.substring(0,e):(t.splice(0,0,[a,l.substring(0,e)]),n++),l=l.substring(e),u=u.substring(e)),e=this.diff_commonSuffix(l,u),0!==e&&(t[n][1]=l.substring(l.length-e)+t[n][1],l=l.substring(0,l.length-e),u=u.substring(0,u.length-e))),0===r?t.splice(n-r-s,r+s,[o,l]):0===s?t.splice(n-r-s,r+s,[i,u]):t.splice(n-r-s,r+s,[i,u],[o,l]),n=n-r-s+(r?1:0)+(s?1:0)+1):0!==n&&t[n-1][0]==a?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,s=0,r=0,u="",l=""}""===t[t.length-1][1]&&t.pop();var c=!1;for(n=1;n<t.length-1;)t[n-1][0]==a&&t[n+1][0]==a&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),c=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),c=!0)),n++;c&&this.diff_cleanupMerge(t)},n.prototype.diff_xIndex=function(t,e){var n,r=0,a=0,s=0,u=0;for(n=0;n<t.length&&(t[n][0]!==o&&(r+=t[n][1].length),t[n][0]!==i&&(a+=t[n][1].length),!(r>e));n++)s=r,u=a;return t.length!=n&&t[n][0]===i?u:u+(e-s)},n.prototype.diff_prettyHtml=function(t){for(var e=[],n=0,r=/&/g,s=/</g,u=/>/g,l=/\n/g,c=0;c<t.length;c++){var f=t[c][0],h=t[c][1],d=h.replace(r,"&").replace(s,"<").replace(u,">").replace(l,"¶<br>");switch(f){case o:e[c]='<ins style="background:#e6ffe6;">'+d+"</ins>";break;case i:e[c]='<del style="background:#ffe6e6;">'+d+"</del>";break;case a:e[c]="<span>"+d+"</span>"}f!==i&&(n+=h.length)}return e.join("")},n.prototype.diff_text1=function(t){for(var e=[],n=0;n<t.length;n++)t[n][0]!==o&&(e[n]=t[n][1]);return e.join("")},n.prototype.diff_text2=function(t){for(var e=[],n=0;n<t.length;n++)t[n][0]!==i&&(e[n]=t[n][1]);return e.join("")},n.prototype.diff_levenshtein=function(t){for(var e=0,n=0,r=0,s=0;s<t.length;s++){var u=t[s][0],l=t[s][1];switch(u){case o:n+=l.length;break;case i:r+=l.length;break;case a:e+=Math.max(n,r),n=0,r=0}}return e+=Math.max(n,r)},n.prototype.diff_toDelta=function(t){for(var e=[],n=0;n<t.length;n++)switch(t[n][0]){case o:e[n]="+"+encodeURI(t[n][1]);break;case i:e[n]="-"+t[n][1].length;break;case a:e[n]="="+t[n][1].length}return e.join("\t").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(t,e){for(var n=[],r=0,s=0,u=e.split(/\t/g),l=0;l<u.length;l++){var c=u[l].substring(1);switch(u[l].charAt(0)){case"+":try{n[r++]=[o,decodeURI(c)]}catch(f){throw new Error("Illegal escape in diff_fromDelta: "+c)}break;case"-":case"=":var h=parseInt(c,10);if(isNaN(h)||h<0)throw new Error("Invalid number in diff_fromDelta: "+c);var d=t.substring(s,s+=h);"="==u[l].charAt(0)?n[r++]=[a,d]:n[r++]=[i,d];break;default:if(u[l])throw new Error("Invalid diff operation in diff_fromDelta: "+u[l])}}if(s!=t.length)throw new Error("Delta length ("+s+") does not equal source text length ("+t.length+").");return n},n.prototype.match_main=function(t,e,n){if(null==t||null==e||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,t.length)),t==e?0:t.length?t.substring(n,n+e.length)==e?n:this.match_bitap_(t,e,n):-1},n.prototype.match_bitap_=function(t,e,n){function r(t,r){var i=t/e.length,a=Math.abs(n-r);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(e),o=this,a=this.Match_Threshold,s=t.indexOf(e,n);s!=-1&&(a=Math.min(r(0,s),a),s=t.lastIndexOf(e,n+e.length),s!=-1&&(a=Math.min(r(0,s),a)));var u=1<<e.length-1;s=-1;for(var l,c,f,h=e.length+t.length,d=0;d<e.length;d++){for(l=0,c=h;l<c;)r(d,n+c)<=a?l=c:h=c,c=Math.floor((h-l)/2+l);h=c;var p=Math.max(1,n-c+1),v=Math.min(n+c,t.length)+e.length,g=Array(v+2);g[v+1]=(1<<d)-1;for(var m=v;m>=p;m--){var y=i[t.charAt(m-1)];if(0===d?g[m]=(g[m+1]<<1|1)&y:g[m]=(g[m+1]<<1|1)&y|((f[m+1]|f[m])<<1|1)|f[m+1],g[m]&u){var b=r(d,m-1);if(b<=a){if(a=b,s=m-1,!(s>n))break;p=Math.max(1,2*n-s)}}}if(r(d+1,n)>a)break;f=g}return s},n.prototype.match_alphabet_=function(t){for(var e={},n=0;n<t.length;n++)e[t.charAt(n)]=0;for(var n=0;n<t.length;n++)e[t.charAt(n)]|=1<<t.length-n-1;return e},n.prototype.patch_addContext_=function(t,e){if(0!=e.length){for(var n=e.substring(t.start2,t.start2+t.length1),r=0;e.indexOf(n)!=e.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,n=e.substring(t.start2-r,t.start2+t.length1+r);r+=this.Patch_Margin;var i=e.substring(t.start2-r,t.start2);i&&t.diffs.unshift([a,i]);var o=e.substring(t.start2+t.length1,t.start2+t.length1+r);o&&t.diffs.push([a,o]),t.start1-=i.length,t.start2-=i.length,t.length1+=i.length+o.length,t.length2+=i.length+o.length}},n.prototype.patch_make=function(t,e,s){var u,l;if("string"==typeof t&&"string"==typeof e&&"undefined"==typeof s)u=t,l=this.diff_main(u,e,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(t&&"object"==("undefined"==typeof t?"undefined":r(t))&&"undefined"==typeof e&&"undefined"==typeof s)l=t,u=this.diff_text1(l);else if("string"==typeof t&&e&&"object"==("undefined"==typeof e?"undefined":r(e))&&"undefined"==typeof s)u=t,l=e;else{if("string"!=typeof t||"string"!=typeof e||!s||"object"!=("undefined"==typeof s?"undefined":r(s)))throw new Error("Unknown call format to patch_make.");u=t,l=s}if(0===l.length)return[];for(var c=[],f=new n.patch_obj,h=0,d=0,p=0,v=u,g=u,m=0;m<l.length;m++){var y=l[m][0],b=l[m][1];switch(h||y===a||(f.start1=d,f.start2=p),y){case o:f.diffs[h++]=l[m],f.length2+=b.length,g=g.substring(0,p)+b+g.substring(p);break;case i:f.length1+=b.length,f.diffs[h++]=l[m],g=g.substring(0,p)+g.substring(p+b.length);break;case a:b.length<=2*this.Patch_Margin&&h&&l.length!=m+1?(f.diffs[h++]=l[m],f.length1+=b.length,f.length2+=b.length):b.length>=2*this.Patch_Margin&&h&&(this.patch_addContext_(f,v),c.push(f),f=new n.patch_obj,h=0,v=g,d=p)}y!==o&&(d+=b.length),y!==i&&(p+=b.length)}return h&&(this.patch_addContext_(f,v),c.push(f)),c},n.prototype.patch_deepCopy=function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r],o=new n.patch_obj;o.diffs=[];for(var a=0;a<i.diffs.length;a++)o.diffs[a]=i.diffs[a].slice();o.start1=i.start1,o.start2=i.start2,o.length1=i.length1,o.length2=i.length2,e[r]=o}return e},n.prototype.patch_apply=function(t,e){if(0==t.length)return[e,[]];t=this.patch_deepCopy(t);var n=this.patch_addPadding(t);e=n+e+n,this.patch_splitMax(t);for(var r=0,s=[],u=0;u<t.length;u++){var l,c=t[u].start2+r,f=this.diff_text1(t[u].diffs),h=-1;if(f.length>this.Match_MaxBits?(l=this.match_main(e,f.substring(0,this.Match_MaxBits),c),l!=-1&&(h=this.match_main(e,f.substring(f.length-this.Match_MaxBits),c+f.length-this.Match_MaxBits),(h==-1||l>=h)&&(l=-1))):l=this.match_main(e,f,c),l==-1)s[u]=!1,r-=t[u].length2-t[u].length1;else{s[u]=!0,r=l-c;var d;if(d=h==-1?e.substring(l,l+f.length):e.substring(l,h+this.Match_MaxBits),f==d)e=e.substring(0,l)+this.diff_text2(t[u].diffs)+e.substring(l+f.length);else{var p=this.diff_main(f,d,!1);if(f.length>this.Match_MaxBits&&this.diff_levenshtein(p)/f.length>this.Patch_DeleteThreshold)s[u]=!1;else{this.diff_cleanupSemanticLossless(p);for(var v,g=0,m=0;m<t[u].diffs.length;m++){var y=t[u].diffs[m];y[0]!==a&&(v=this.diff_xIndex(p,g)),y[0]===o?e=e.substring(0,l+v)+y[1]+e.substring(l+v):y[0]===i&&(e=e.substring(0,l+v)+e.substring(l+this.diff_xIndex(p,g+y[1].length))),y[0]!==i&&(g+=y[1].length)}}}}}return e=e.substring(n.length,e.length-n.length),[e,s]},n.prototype.patch_addPadding=function(t){for(var e=this.Patch_Margin,n="",r=1;r<=e;r++)n+=String.fromCharCode(r);for(var r=0;r<t.length;r++)t[r].start1+=e,t[r].start2+=e;var i=t[0],o=i.diffs;if(0==o.length||o[0][0]!=a)o.unshift([a,n]),i.start1-=e,i.start2-=e,i.length1+=e,i.length2+=e;else if(e>o[0][1].length){var s=e-o[0][1].length;o[0][1]=n.substring(o[0][1].length)+o[0][1],i.start1-=s,i.start2-=s,i.length1+=s,i.length2+=s}if(i=t[t.length-1],o=i.diffs,0==o.length||o[o.length-1][0]!=a)o.push([a,n]),i.length1+=e,i.length2+=e;else if(e>o[o.length-1][1].length){var s=e-o[o.length-1][1].length;o[o.length-1][1]+=n.substring(0,s),i.length1+=s,i.length2+=s}return n},n.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,r=0;r<t.length;r++)if(t[r].length1>e){var s=t[r];t.splice(r--,1);for(var u=s.start1,l=s.start2,c="";0!==s.diffs.length;){var f=new n.patch_obj,h=!0;for(f.start1=u-c.length,f.start2=l-c.length,""!==c&&(f.length1=f.length2=c.length,f.diffs.push([a,c]));0!==s.diffs.length&&f.length1<e-this.Patch_Margin;){var d=s.diffs[0][0],p=s.diffs[0][1];d===o?(f.length2+=p.length,l+=p.length,f.diffs.push(s.diffs.shift()),h=!1):d===i&&1==f.diffs.length&&f.diffs[0][0]==a&&p.length>2*e?(f.length1+=p.length,u+=p.length,h=!1,f.diffs.push([d,p]),s.diffs.shift()):(p=p.substring(0,e-f.length1-this.Patch_Margin),f.length1+=p.length,u+=p.length,d===a?(f.length2+=p.length,l+=p.length):h=!1,f.diffs.push([d,p]),p==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(p.length))}c=this.diff_text2(f.diffs),c=c.substring(c.length-this.Patch_Margin);var v=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==v&&(f.length1+=v.length,f.length2+=v.length,0!==f.diffs.length&&f.diffs[f.diffs.length-1][0]===a?f.diffs[f.diffs.length-1][1]+=v:f.diffs.push([a,v])),h||t.splice(++r,0,f)}}},n.prototype.patch_toText=function(t){for(var e=[],n=0;n<t.length;n++)e[n]=t[n];return e.join("")},n.prototype.patch_fromText=function(t){var e=[];if(!t)return e;for(var r=t.split("\n"),s=0,u=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;s<r.length;){var l=r[s].match(u);if(!l)throw new Error("Invalid patch string: "+r[s]);var c=new n.patch_obj;for(e.push(c),c.start1=parseInt(l[1],10),""===l[2]?(c.start1--,c.length1=1):"0"==l[2]?c.length1=0:(c.start1--,c.length1=parseInt(l[2],10)),c.start2=parseInt(l[3],10),""===l[4]?(c.start2--,c.length2=1):"0"==l[4]?c.length2=0:(c.start2--,c.length2=parseInt(l[4],10)),s++;s<r.length;){var f=r[s].charAt(0);try{var h=decodeURI(r[s].substring(1))}catch(d){throw new Error("Illegal escape in patch_fromText: "+h)}if("-"==f)c.diffs.push([i,h]);else if("+"==f)c.diffs.push([o,h]);else if(" "==f)c.diffs.push([a,h]);else{if("@"==f)break;if(""!==f)throw new Error('Invalid patch mode "'+f+'" in: '+h)}s++}}return e},n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},n.patch_obj.prototype.toString=function(){var t,e;t=0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1,e=0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2;for(var n,r=["@@ -"+t+" +"+e+" @@\n"],s=0;s<this.diffs.length;s++){switch(this.diffs[s][0]){case o:n="+";break;case i:n="-";break;case a:n=" "}r[s+1]=n+encodeURI(this.diffs[s][1])+"\n"}return r.join("").replace(/%20/g," ")},(void 0).diff_match_patch=n,(void 0).DIFF_DELETE=i,(void 0).DIFF_INSERT=o,(void 0).DIFF_EQUAL=a},function(t,e,n){"use strict";var r=n(26).Processor,i=n(16).Pipe,o=n(4).DiffContext,a=n(5).PatchContext,s=n(6).ReverseContext,u=n(25),l=n(23),c=n(20),f=n(21),h=n(24),d=function(t){this.processor=new r(t),this.processor.pipe(new i("diff").append(l.collectChildrenDiffFilter,u.diffFilter,f.diffFilter,h.diffFilter,l.objectsDiffFilter,c.diffFilter).shouldHaveResult()),this.processor.pipe(new i("patch").append(l.collectChildrenPatchFilter,c.collectChildrenPatchFilter,u.patchFilter,h.patchFilter,l.patchFilter,c.patchFilter).shouldHaveResult()),this.processor.pipe(new i("reverse").append(l.collectChildrenReverseFilter,c.collectChildrenReverseFilter,u.reverseFilter,h.reverseFilter,l.reverseFilter,c.reverseFilter).shouldHaveResult())};d.prototype.options=function(){return this.processor.options.apply(this.processor,arguments)},d.prototype.diff=function(t,e){return this.processor.process(new o(t,e))},d.prototype.patch=function(t,e){return this.processor.process(new a(t,e))},d.prototype.reverse=function(t){return this.processor.process(new s(t))},d.prototype.unpatch=function(t,e){return this.patch(t,this.reverse(e))},e.DiffPatcher=d},function(t,e,n){"use strict";function r(t,e,n,r){for(var i=0;i<n;i++)for(var o=t[i],a=0;a<r;a++){var s=e[a];if(o===s)return!0}}function i(t,e,n,r,i){var a=t[n],s=e[r];if(a===s)return!0;if("object"!==("undefined"==typeof a?"undefined":o(a))||"object"!==("undefined"==typeof s?"undefined":o(s)))return!1;var u=i.objectHash;if(!u)return i.matchByPosition&&n===r;var l,c;return"number"==typeof n?(i.hashCache1=i.hashCache1||[],l=i.hashCache1[n],"undefined"==typeof l&&(i.hashCache1[n]=l=u(a,n))):l=u(a),"undefined"!=typeof l&&("number"==typeof r?(i.hashCache2=i.hashCache2||[],c=i.hashCache2[r],"undefined"==typeof c&&(i.hashCache2[r]=c=u(s,r))):c=u(s),"undefined"!=typeof c&&l===c)}var o="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},a=n(4).DiffContext,s=n(5).PatchContext,u=n(6).ReverseContext,l=n(22),c=3,f="function"==typeof Array.isArray?Array.isArray:function(t){return t instanceof Array},h="function"==typeof Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r]===e)return r;return-1},d=function(t){if(t.leftIsArray){var e,n,o,s,u={objectHash:t.options&&t.options.objectHash,matchByPosition:t.options&&t.options.matchByPosition},f=0,d=0,p=t.left,v=t.right,g=p.length,m=v.length;for(g>0&&m>0&&!u.objectHash&&"boolean"!=typeof u.matchByPosition&&(u.matchByPosition=!r(p,v,g,m));f<g&&f<m&&i(p,v,f,f,u);)e=f,s=new a(t.left[e],t.right[e]),t.push(s,e),f++;for(;d+f<g&&d+f<m&&i(p,v,g-1-d,m-1-d,u);)n=g-1-d,o=m-1-d,s=new a(t.left[n],t.right[o]),t.push(s,o),d++;var y;if(f+d===g){if(g===m)return void t.setResult(void 0).exit();for(y=y||{_t:"a"},e=f;e<m-d;e++)y[e]=[v[e]];return void t.setResult(y).exit()}if(f+d===m){for(y=y||{_t:"a"},e=f;e<g-d;e++)y["_"+e]=[p[e],0,0];return void t.setResult(y).exit()}delete u.hashCache1,delete u.hashCache2;var b=p.slice(f,g-d),x=v.slice(f,m-d),w=l.get(b,x,i,u),_=[];for(y=y||{_t:"a"},e=f;e<g-d;e++)h(w.indices1,e-f)<0&&(y["_"+e]=[p[e],0,0],_.push(e));var C=!0;t.options&&t.options.arrays&&t.options.arrays.detectMove===!1&&(C=!1);var k=!1;t.options&&t.options.arrays&&t.options.arrays.includeValueOnMove&&(k=!0);var T=_.length;for(e=f;e<m-d;e++){var A=h(w.indices2,e-f);if(A<0){var S=!1;if(C&&T>0)for(var j=0;j<T;j++)if(n=_[j],i(b,x,n-f,e-f,u)){y["_"+n].splice(1,2,e,c),k||(y["_"+n][0]=""),o=e,s=new a(t.left[n],t.right[o]),t.push(s,o),_.splice(j,1),S=!0;break}S||(y[e]=[v[e]])}else n=w.indices1[A]+f,o=w.indices2[A]+f,s=new a(t.left[n],t.right[o]),t.push(s,o)}t.setResult(y).exit()}};d.filterName="arrays";var p={numerically:function(t,e){return t-e},numericallyBy:function(t){return function(e,n){return e[t]-n[t]}}},v=function(t){if(t.nested&&"a"===t.delta._t){var e,n,r=t.delta,i=t.left,o=[],a=[],u=[];for(e in r)if("_t"!==e)if("_"===e[0]){if(0!==r[e][2]&&r[e][2]!==c)throw new Error("only removal or move can be applied at original array indices, invalid diff type: "+r[e][2]);o.push(parseInt(e.slice(1),10))}else 1===r[e].length?a.push({index:parseInt(e,10),value:r[e][0]}):u.push({index:parseInt(e,10),delta:r[e]});for(o=o.sort(p.numerically),e=o.length-1;e>=0;e--){n=o[e];var l=r["_"+n],f=i.splice(n,1)[0];l[2]===c&&a.push({index:l[1],value:f})}a=a.sort(p.numericallyBy("index"));var h=a.length;for(e=0;e<h;e++){var d=a[e];i.splice(d.index,0,d.value)}var v,g=u.length;if(g>0)for(e=0;e<g;e++){var m=u[e];v=new s(t.left[m.index],m.delta),t.push(v,m.index)}return t.children?void t.exit():void t.setResult(t.left).exit()}};v.filterName="arrays";var g=function(t){if(t&&t.children&&"a"===t.delta._t){for(var e,n=t.children.length,r=0;r<n;r++)e=t.children[r],t.left[e.childName]=e.result;t.setResult(t.left).exit()}};g.filterName="arraysCollectChildren";var m=function(t){if(!t.nested)return void(t.delta[2]===c&&(t.newName="_"+t.delta[1],t.setResult([t.delta[0],parseInt(t.childName.substr(1),10),c]).exit()));if("a"===t.delta._t){var e,n;for(e in t.delta)"_t"!==e&&(n=new u(t.delta[e]),t.push(n,e));t.exit()}};m.filterName="arrays";var y=function(t,e,n){if("string"==typeof e&&"_"===e[0])return parseInt(e.substr(1),10);if(f(n)&&0===n[2])return"_"+e;var r=+e;for(var i in t){var o=t[i];if(f(o))if(o[2]===c){var a=parseInt(i.substr(1),10),s=o[1];if(s===+e)return a;a<=r&&s>r?r++:a>=r&&s<r&&r--}else if(0===o[2]){var u=parseInt(i.substr(1),10);u<=r&&r++}else 1===o.length&&i<=r&&r--}return r},b=function(t){if(t&&t.children&&"a"===t.delta._t){for(var e,n=t.children.length,r={_t:"a"},i=0;i<n;i++){e=t.children[i];var o=e.newName;"undefined"==typeof o&&(o=y(t.delta,e.childName,e.result)),r[o]!==e.result&&(r[o]=e.result)}t.setResult(r).exit()}};b.filterName="arraysCollectChildren",e.diffFilter=d,e.patchFilter=v,e.collectChildrenPatchFilter=g,e.reverseFilter=m,e.collectChildrenReverseFilter=b},function(t,e){"use strict";var n=function(t){t.left instanceof Date?(t.right instanceof Date?t.left.getTime()!==t.right.getTime()?t.setResult([t.left,t.right]):t.setResult(void 0):t.setResult([t.left,t.right]),t.exit()):t.right instanceof Date&&t.setResult([t.left,t.right]).exit()};n.filterName="dates",e.diffFilter=n},function(t,e){"use strict";var n=function(t,e,n,r){return t[n]===e[r]},r=function(t,e,n,r){var i,o,a=t.length,s=e.length,u=[a+1];for(i=0;i<a+1;i++)for(u[i]=[s+1],o=0;o<s+1;o++)u[i][o]=0;for(u.match=n,i=1;i<a+1;i++)for(o=1;o<s+1;o++)n(t,e,i-1,o-1,r)?u[i][o]=u[i-1][o-1]+1:u[i][o]=Math.max(u[i-1][o],u[i][o-1]);return u},i=function a(t,e,n,r,i,o){if(0===r||0===i)return{sequence:[],indices1:[],indices2:[]};if(t.match(e,n,r-1,i-1,o)){var s=a(t,e,n,r-1,i-1,o);return s.sequence.push(e[r-1]),s.indices1.push(r-1),s.indices2.push(i-1),s}return t[r][i-1]>t[r-1][i]?a(t,e,n,r,i-1,o):a(t,e,n,r-1,i,o)},o=function(t,e,o,a){a=a||{};var s=r(t,e,o||n,a),u=i(s,t,e,t.length,e.length,a);return"string"==typeof t&&"string"==typeof e&&(u.sequence=u.sequence.join("")),u};e.get=o},function(t,e,n){"use strict";var r=n(4).DiffContext,i=n(5).PatchContext,o=n(6).ReverseContext,a=function(t){if(t&&t.children){for(var e,n=t.children.length,r=t.result,i=0;i<n;i++)e=t.children[i],"undefined"!=typeof e.result&&(r=r||{},r[e.childName]=e.result);r&&t.leftIsArray&&(r._t="a"),t.setResult(r).exit()}};a.filterName="collectChildren";var s=function(t){if(!t.leftIsArray&&"object"===t.leftType){var e,n,i=t.options.propertyFilter;for(e in t.left)Object.prototype.hasOwnProperty.call(t.left,e)&&(i&&!i(e,t)||(n=new r(t.left[e],t.right[e]),t.push(n,e)));for(e in t.right)Object.prototype.hasOwnProperty.call(t.right,e)&&(i&&!i(e,t)||"undefined"==typeof t.left[e]&&(n=new r((void 0),t.right[e]),t.push(n,e)));return t.children&&0!==t.children.length?void t.exit():void t.setResult(void 0).exit()}};s.filterName="objects";var u=function(t){if(t.nested&&!t.delta._t){var e,n;for(e in t.delta)n=new i(t.left[e],t.delta[e]),t.push(n,e);t.exit()}};u.filterName="objects";var l=function(t){if(t&&t.children&&!t.delta._t){for(var e,n=t.children.length,r=0;r<n;r++)e=t.children[r],Object.prototype.hasOwnProperty.call(t.left,e.childName)&&void 0===e.result?delete t.left[e.childName]:t.left[e.childName]!==e.result&&(t.left[e.childName]=e.result);t.setResult(t.left).exit()}};l.filterName="collectChildren";var c=function(t){if(t.nested&&!t.delta._t){var e,n;for(e in t.delta)n=new o(t.delta[e]),t.push(n,e);t.exit()}};c.filterName="objects";var f=function(t){if(t&&t.children&&!t.delta._t){for(var e,n=t.children.length,r={},i=0;i<n;i++)e=t.children[i],r[e.childName]!==e.result&&(r[e.childName]=e.result);t.setResult(r).exit()}};f.filterName="collectChildren",e.collectChildrenDiffFilter=a,e.objectsDiffFilter=s,e.patchFilter=u,e.collectChildrenPatchFilter=l,e.reverseFilter=c,e.collectChildrenReverseFilter=f},function(t,e,n){"use strict";var r=2,i=60,o=null,a=function(t){if(!o){var e;if("undefined"!=typeof diff_match_patch)e="function"==typeof diff_match_patch?new diff_match_patch:new diff_match_patch.diff_match_patch;else try{var r="diff_match_patch_uncompressed",i=n(94)("./"+r);e=new i.diff_match_patch}catch(a){e=null}if(!e){if(!t)return null;var s=new Error("text diff_match_patch library not found");throw s.diff_match_patch_not_found=!0,s}o={diff:function(t,n){return e.patch_toText(e.patch_make(t,n))},patch:function(t,n){for(var r=e.patch_apply(e.patch_fromText(n),t),i=0;i<r[1].length;i++)if(!r[1][i]){var o=new Error("text patch failed");o.textPatchFailed=!0}return r[0]}}}return o},s=function(t){if("string"===t.leftType){var e=t.options&&t.options.textDiff&&t.options.textDiff.minLength||i;if(t.left.length<e||t.right.length<e)return void t.setResult([t.left,t.right]).exit();var n=a();if(!n)return void t.setResult([t.left,t.right]).exit();var o=n.diff;t.setResult([o(t.left,t.right),0,r]).exit()}};s.filterName="texts";var u=function(t){if(!t.nested&&t.delta[2]===r){var e=a(!0).patch;t.setResult(e(t.left,t.delta[0])).exit()}};u.filterName="texts";var l=function(t){var e,n,r,i,o,a,s,u,l=null,c=/^@@ +\-(\d+),(\d+) +\+(\d+),(\d+) +@@$/;for(r=t.split("\n"),e=0,n=r.length;e<n;e++){i=r[e];var f=i.slice(0,1);"@"===f?(l=c.exec(i),a=e,s=null,u=null,r[a]="@@ -"+l[3]+","+l[4]+" +"+l[1]+","+l[2]+" @@"):"+"===f?(s=e,r[e]="-"+r[e].slice(1),"+"===r[e-1].slice(0,1)&&(o=r[e],r[e]=r[e-1],r[e-1]=o)):"-"===f&&(u=e,r[e]="+"+r[e].slice(1))}return r.join("\n")},c=function(t){t.nested||t.delta[2]===r&&t.setResult([l(t.delta[0]),0,r]).exit()};c.filterName="texts",e.diffFilter=s,e.patchFilter=u,e.reverseFilter=c},function(t,e){"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},r="function"==typeof Array.isArray?Array.isArray:function(t){return t instanceof Array},i=function(t){if(t.left===t.right)return void t.setResult(void 0).exit();if("undefined"==typeof t.left){if("function"==typeof t.right)throw new Error("functions are not supported");return void t.setResult([t.right]).exit()}if("undefined"==typeof t.right)return void t.setResult([t.left,0,0]).exit();if("function"==typeof t.left||"function"==typeof t.right)throw new Error("functions are not supported");return t.leftType=null===t.left?"null":n(t.left),t.rightType=null===t.right?"null":n(t.right),t.leftType!==t.rightType?void t.setResult([t.left,t.right]).exit():"boolean"===t.leftType||"number"===t.leftType?void t.setResult([t.left,t.right]).exit():("object"===t.leftType&&(t.leftIsArray=r(t.left)),"object"===t.rightType&&(t.rightIsArray=r(t.right)),t.leftIsArray!==t.rightIsArray?void t.setResult([t.left,t.right]).exit():void 0)};i.filterName="trivial";var o=function(t){return"undefined"==typeof t.delta?void t.setResult(t.left).exit():(t.nested=!r(t.delta),t.nested?void 0:1===t.delta.length?void t.setResult(t.delta[0]).exit():2===t.delta.length?void t.setResult(t.delta[1]).exit():3===t.delta.length&&0===t.delta[2]?void t.setResult(void 0).exit():void 0)};o.filterName="trivial";var a=function(t){return"undefined"==typeof t.delta?void t.setResult(t.delta).exit():(t.nested=!r(t.delta),t.nested?void 0:1===t.delta.length?void t.setResult([t.delta[0],0,0]).exit():2===t.delta.length?void t.setResult([t.delta[1],t.delta[0]]).exit():3===t.delta.length&&0===t.delta[2]?void t.setResult([t.delta[0]]).exit():void 0)};a.filterName="trivial",e.diffFilter=i,e.patchFilter=o,e.reverseFilter=a},function(t,e){"use strict";var n=function(t){this.selfOptions=t||{},this.pipes={}};n.prototype.options=function(t){return t&&(this.selfOptions=t),this.selfOptions},n.prototype.pipe=function(t,e){if("string"==typeof t){if("undefined"==typeof e)return this.pipes[t];this.pipes[t]=e}if(t&&t.name){if(e=t,e.processor===this)return e;this.pipes[e.name]=e}return e.processor=this,e},n.prototype.process=function(t,e){var n=t;n.options=this.options();for(var r,i,o=e||t.pipe||"default";o;)"undefined"!=typeof n.nextAfterChildren&&(n.next=n.nextAfterChildren,n.nextAfterChildren=null),"string"==typeof o&&(o=this.pipe(o)),o.process(n),i=n,r=o,o=null,n&&n.next&&(n=n.next,o=i.nextPipe||n.pipe||r);return n.hasResult?n.result:void 0},e.Processor=n},function(t,e,n){var r,i;n(105),r=n(46);var o=n(101);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-2",t.exports=r||i},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){"use strict";function n(t){function e(){var t={};for(a.push(t);s<o.length;){var e=o[s];if(/^(\-\-\-|\+\+\+|@@)\s/.test(e))break;var u=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(e);u&&(t.index=u[1]),s++}for(n(t),n(t),t.hunks=[];s<o.length;){var l=o[s];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(l))break;if(/^@@/.test(l))t.hunks.push(r());else{if(l&&i.strict)throw new Error("Unknown line "+(s+1)+" "+JSON.stringify(l));s++}}}function n(t){var e=/^(---|\+\+\+)\s+([\S ]*)(?:\t(.*?)\s*)?$/,n=e.exec(o[s]);if(n){var r="---"===n[1]?"old":"new";t[r+"FileName"]=n[2],t[r+"Header"]=n[3],s++}}function r(){for(var t=s,e=o[s++],n=e.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),r={oldStart:+n[1],oldLines:+n[2]||1,newStart:+n[3],newLines:+n[4]||1,lines:[]},a=0,u=0;s<o.length;s++){var l=o[s][0];if("+"!==l&&"-"!==l&&" "!==l&&"\\"!==l)break;r.lines.push(o[s]),"+"===l?a++:"-"===l?u++:" "===l&&(a++,u++)}if(a||1!==r.newLines||(r.newLines=0),u||1!==r.oldLines||(r.oldLines=0),i.strict){if(a!==r.newLines)throw new Error("Added line count did not match for hunk at line "+(t+1));if(u!==r.oldLines)throw new Error("Removed line count did not match for hunk at line "+(t+1))}return r}for(var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=t.split("\n"),a=[],s=0;s<o.length;)e();return a}e.__esModule=!0,e.parsePatch=n},function(t,e){"use strict";function n(t,e){if("function"==typeof t)e.callback=t;else if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}e.__esModule=!0,e.generateOptions=n},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",l=/[\.\/]/,c=/\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,l=[],c={},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]&&(l.push(s[g].zIndex),s[g].zIndex<0&&(c[s[g].zIndex]=s[g]));for(l.sort(h);l[u]<0;)if(n=c[l[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==l[u]){if(f.push(n.apply(e,i)),a)break;do if(u++,n=c[l[u]],n&&f.push(n.apply(e,i)),a)break;while(n)}else c[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,c=t.split(l),h=d,p=[h],v=[];for(i=0,o=c.length;i<o;i++){for(u=[],a=0,s=p.length;a<s;a++)for(h=p[a].n,n=[h[c[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(c),r=0,i=n.length;r<i;r++)!function(t){for(var n,r=t.split(l),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(l)},g.off=g.unbind=function(t,e){if(!t)return void(g._events=d={n:{}});var n=t.split(c);if(n.length>1)for(var r=0,i=n.length;r<i;r++)g.off(n[r],e);else{n=t.split(l);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},l=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},c=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:l,speed:c,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),
+if(h){var d=c.substring(c.length-h);l=l.substring(0,l.length-h),c=d+c.substring(0,c.length-h),f=d+f}for(var p=l,v=c,g=f,m=e(l,c)+e(c,f);c.charAt(0)===f.charAt(0);){l+=c.charAt(0),c=c.substring(1)+f.charAt(0),f=f.substring(1);var y=e(l,c)+e(c,f);y>=m&&(m=y,p=l,v=c,g=f)}t[u-1][1]!=p&&(p?t[u-1][1]=p:(t.splice(u-1,1),u--),t[u][1]=v,g?t[u+1][1]=g:(t.splice(u+1,1),u--))}u++}},n.prototype.diff_cleanupEfficiency=function(t){for(var e=!1,n=[],r=0,s="",u=0,l=!1,c=!1,f=!1,h=!1;u<t.length;)t[u][0]==a?(t[u][1].length<this.Diff_EditCost&&(f||h)?(n[r++]=u,l=f,c=h,s=t[u][1]):(r=0,s=""),f=h=!1):(t[u][0]==i?h=!0:f=!0,s&&(l&&c&&f&&h||s.length<this.Diff_EditCost/2&&l+c+f+h==3)&&(t.splice(n[r-1],0,[i,s]),t[n[r-1]+1][0]=o,r--,s="",l&&c?(f=h=!0,r=0):(r--,u=r>0?n[r-1]:-1,f=h=!1),e=!0)),u++;e&&this.diff_cleanupMerge(t)},n.prototype.diff_cleanupMerge=function(t){t.push([a,""]);for(var e,n=0,r=0,s=0,u="",l="";n<t.length;)switch(t[n][0]){case o:s++,l+=t[n][1],n++;break;case i:r++,u+=t[n][1],n++;break;case a:r+s>1?(0!==r&&0!==s&&(e=this.diff_commonPrefix(l,u),0!==e&&(n-r-s>0&&t[n-r-s-1][0]==a?t[n-r-s-1][1]+=l.substring(0,e):(t.splice(0,0,[a,l.substring(0,e)]),n++),l=l.substring(e),u=u.substring(e)),e=this.diff_commonSuffix(l,u),0!==e&&(t[n][1]=l.substring(l.length-e)+t[n][1],l=l.substring(0,l.length-e),u=u.substring(0,u.length-e))),0===r?t.splice(n-r-s,r+s,[o,l]):0===s?t.splice(n-r-s,r+s,[i,u]):t.splice(n-r-s,r+s,[i,u],[o,l]),n=n-r-s+(r?1:0)+(s?1:0)+1):0!==n&&t[n-1][0]==a?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,s=0,r=0,u="",l=""}""===t[t.length-1][1]&&t.pop();var c=!1;for(n=1;n<t.length-1;)t[n-1][0]==a&&t[n+1][0]==a&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),c=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),c=!0)),n++;c&&this.diff_cleanupMerge(t)},n.prototype.diff_xIndex=function(t,e){var n,r=0,a=0,s=0,u=0;for(n=0;n<t.length&&(t[n][0]!==o&&(r+=t[n][1].length),t[n][0]!==i&&(a+=t[n][1].length),!(r>e));n++)s=r,u=a;return t.length!=n&&t[n][0]===i?u:u+(e-s)},n.prototype.diff_prettyHtml=function(t){for(var e=[],n=0,r=/&/g,s=/</g,u=/>/g,l=/\n/g,c=0;c<t.length;c++){var f=t[c][0],h=t[c][1],d=h.replace(r,"&").replace(s,"<").replace(u,">").replace(l,"¶<br>");switch(f){case o:e[c]='<ins style="background:#e6ffe6;">'+d+"</ins>";break;case i:e[c]='<del style="background:#ffe6e6;">'+d+"</del>";break;case a:e[c]="<span>"+d+"</span>"}f!==i&&(n+=h.length)}return e.join("")},n.prototype.diff_text1=function(t){for(var e=[],n=0;n<t.length;n++)t[n][0]!==o&&(e[n]=t[n][1]);return e.join("")},n.prototype.diff_text2=function(t){for(var e=[],n=0;n<t.length;n++)t[n][0]!==i&&(e[n]=t[n][1]);return e.join("")},n.prototype.diff_levenshtein=function(t){for(var e=0,n=0,r=0,s=0;s<t.length;s++){var u=t[s][0],l=t[s][1];switch(u){case o:n+=l.length;break;case i:r+=l.length;break;case a:e+=Math.max(n,r),n=0,r=0}}return e+=Math.max(n,r)},n.prototype.diff_toDelta=function(t){for(var e=[],n=0;n<t.length;n++)switch(t[n][0]){case o:e[n]="+"+encodeURI(t[n][1]);break;case i:e[n]="-"+t[n][1].length;break;case a:e[n]="="+t[n][1].length}return e.join("\t").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(t,e){for(var n=[],r=0,s=0,u=e.split(/\t/g),l=0;l<u.length;l++){var c=u[l].substring(1);switch(u[l].charAt(0)){case"+":try{n[r++]=[o,decodeURI(c)]}catch(f){throw new Error("Illegal escape in diff_fromDelta: "+c)}break;case"-":case"=":var h=parseInt(c,10);if(isNaN(h)||h<0)throw new Error("Invalid number in diff_fromDelta: "+c);var d=t.substring(s,s+=h);"="==u[l].charAt(0)?n[r++]=[a,d]:n[r++]=[i,d];break;default:if(u[l])throw new Error("Invalid diff operation in diff_fromDelta: "+u[l])}}if(s!=t.length)throw new Error("Delta length ("+s+") does not equal source text length ("+t.length+").");return n},n.prototype.match_main=function(t,e,n){if(null==t||null==e||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,t.length)),t==e?0:t.length?t.substring(n,n+e.length)==e?n:this.match_bitap_(t,e,n):-1},n.prototype.match_bitap_=function(t,e,n){function r(t,r){var i=t/e.length,a=Math.abs(n-r);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(e),o=this,a=this.Match_Threshold,s=t.indexOf(e,n);s!=-1&&(a=Math.min(r(0,s),a),s=t.lastIndexOf(e,n+e.length),s!=-1&&(a=Math.min(r(0,s),a)));var u=1<<e.length-1;s=-1;for(var l,c,f,h=e.length+t.length,d=0;d<e.length;d++){for(l=0,c=h;l<c;)r(d,n+c)<=a?l=c:h=c,c=Math.floor((h-l)/2+l);h=c;var p=Math.max(1,n-c+1),v=Math.min(n+c,t.length)+e.length,g=Array(v+2);g[v+1]=(1<<d)-1;for(var m=v;m>=p;m--){var y=i[t.charAt(m-1)];if(0===d?g[m]=(g[m+1]<<1|1)&y:g[m]=(g[m+1]<<1|1)&y|((f[m+1]|f[m])<<1|1)|f[m+1],g[m]&u){var b=r(d,m-1);if(b<=a){if(a=b,s=m-1,!(s>n))break;p=Math.max(1,2*n-s)}}}if(r(d+1,n)>a)break;f=g}return s},n.prototype.match_alphabet_=function(t){for(var e={},n=0;n<t.length;n++)e[t.charAt(n)]=0;for(var n=0;n<t.length;n++)e[t.charAt(n)]|=1<<t.length-n-1;return e},n.prototype.patch_addContext_=function(t,e){if(0!=e.length){for(var n=e.substring(t.start2,t.start2+t.length1),r=0;e.indexOf(n)!=e.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,n=e.substring(t.start2-r,t.start2+t.length1+r);r+=this.Patch_Margin;var i=e.substring(t.start2-r,t.start2);i&&t.diffs.unshift([a,i]);var o=e.substring(t.start2+t.length1,t.start2+t.length1+r);o&&t.diffs.push([a,o]),t.start1-=i.length,t.start2-=i.length,t.length1+=i.length+o.length,t.length2+=i.length+o.length}},n.prototype.patch_make=function(t,e,s){var u,l;if("string"==typeof t&&"string"==typeof e&&"undefined"==typeof s)u=t,l=this.diff_main(u,e,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(t&&"object"==("undefined"==typeof t?"undefined":r(t))&&"undefined"==typeof e&&"undefined"==typeof s)l=t,u=this.diff_text1(l);else if("string"==typeof t&&e&&"object"==("undefined"==typeof e?"undefined":r(e))&&"undefined"==typeof s)u=t,l=e;else{if("string"!=typeof t||"string"!=typeof e||!s||"object"!=("undefined"==typeof s?"undefined":r(s)))throw new Error("Unknown call format to patch_make.");u=t,l=s}if(0===l.length)return[];for(var c=[],f=new n.patch_obj,h=0,d=0,p=0,v=u,g=u,m=0;m<l.length;m++){var y=l[m][0],b=l[m][1];switch(h||y===a||(f.start1=d,f.start2=p),y){case o:f.diffs[h++]=l[m],f.length2+=b.length,g=g.substring(0,p)+b+g.substring(p);break;case i:f.length1+=b.length,f.diffs[h++]=l[m],g=g.substring(0,p)+g.substring(p+b.length);break;case a:b.length<=2*this.Patch_Margin&&h&&l.length!=m+1?(f.diffs[h++]=l[m],f.length1+=b.length,f.length2+=b.length):b.length>=2*this.Patch_Margin&&h&&(this.patch_addContext_(f,v),c.push(f),f=new n.patch_obj,h=0,v=g,d=p)}y!==o&&(d+=b.length),y!==i&&(p+=b.length)}return h&&(this.patch_addContext_(f,v),c.push(f)),c},n.prototype.patch_deepCopy=function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r],o=new n.patch_obj;o.diffs=[];for(var a=0;a<i.diffs.length;a++)o.diffs[a]=i.diffs[a].slice();o.start1=i.start1,o.start2=i.start2,o.length1=i.length1,o.length2=i.length2,e[r]=o}return e},n.prototype.patch_apply=function(t,e){if(0==t.length)return[e,[]];t=this.patch_deepCopy(t);var n=this.patch_addPadding(t);e=n+e+n,this.patch_splitMax(t);for(var r=0,s=[],u=0;u<t.length;u++){var l,c=t[u].start2+r,f=this.diff_text1(t[u].diffs),h=-1;if(f.length>this.Match_MaxBits?(l=this.match_main(e,f.substring(0,this.Match_MaxBits),c),l!=-1&&(h=this.match_main(e,f.substring(f.length-this.Match_MaxBits),c+f.length-this.Match_MaxBits),(h==-1||l>=h)&&(l=-1))):l=this.match_main(e,f,c),l==-1)s[u]=!1,r-=t[u].length2-t[u].length1;else{s[u]=!0,r=l-c;var d;if(d=h==-1?e.substring(l,l+f.length):e.substring(l,h+this.Match_MaxBits),f==d)e=e.substring(0,l)+this.diff_text2(t[u].diffs)+e.substring(l+f.length);else{var p=this.diff_main(f,d,!1);if(f.length>this.Match_MaxBits&&this.diff_levenshtein(p)/f.length>this.Patch_DeleteThreshold)s[u]=!1;else{this.diff_cleanupSemanticLossless(p);for(var v,g=0,m=0;m<t[u].diffs.length;m++){var y=t[u].diffs[m];y[0]!==a&&(v=this.diff_xIndex(p,g)),y[0]===o?e=e.substring(0,l+v)+y[1]+e.substring(l+v):y[0]===i&&(e=e.substring(0,l+v)+e.substring(l+this.diff_xIndex(p,g+y[1].length))),y[0]!==i&&(g+=y[1].length)}}}}}return e=e.substring(n.length,e.length-n.length),[e,s]},n.prototype.patch_addPadding=function(t){for(var e=this.Patch_Margin,n="",r=1;r<=e;r++)n+=String.fromCharCode(r);for(var r=0;r<t.length;r++)t[r].start1+=e,t[r].start2+=e;var i=t[0],o=i.diffs;if(0==o.length||o[0][0]!=a)o.unshift([a,n]),i.start1-=e,i.start2-=e,i.length1+=e,i.length2+=e;else if(e>o[0][1].length){var s=e-o[0][1].length;o[0][1]=n.substring(o[0][1].length)+o[0][1],i.start1-=s,i.start2-=s,i.length1+=s,i.length2+=s}if(i=t[t.length-1],o=i.diffs,0==o.length||o[o.length-1][0]!=a)o.push([a,n]),i.length1+=e,i.length2+=e;else if(e>o[o.length-1][1].length){var s=e-o[o.length-1][1].length;o[o.length-1][1]+=n.substring(0,s),i.length1+=s,i.length2+=s}return n},n.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,r=0;r<t.length;r++)if(t[r].length1>e){var s=t[r];t.splice(r--,1);for(var u=s.start1,l=s.start2,c="";0!==s.diffs.length;){var f=new n.patch_obj,h=!0;for(f.start1=u-c.length,f.start2=l-c.length,""!==c&&(f.length1=f.length2=c.length,f.diffs.push([a,c]));0!==s.diffs.length&&f.length1<e-this.Patch_Margin;){var d=s.diffs[0][0],p=s.diffs[0][1];d===o?(f.length2+=p.length,l+=p.length,f.diffs.push(s.diffs.shift()),h=!1):d===i&&1==f.diffs.length&&f.diffs[0][0]==a&&p.length>2*e?(f.length1+=p.length,u+=p.length,h=!1,f.diffs.push([d,p]),s.diffs.shift()):(p=p.substring(0,e-f.length1-this.Patch_Margin),f.length1+=p.length,u+=p.length,d===a?(f.length2+=p.length,l+=p.length):h=!1,f.diffs.push([d,p]),p==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(p.length))}c=this.diff_text2(f.diffs),c=c.substring(c.length-this.Patch_Margin);var v=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==v&&(f.length1+=v.length,f.length2+=v.length,0!==f.diffs.length&&f.diffs[f.diffs.length-1][0]===a?f.diffs[f.diffs.length-1][1]+=v:f.diffs.push([a,v])),h||t.splice(++r,0,f)}}},n.prototype.patch_toText=function(t){for(var e=[],n=0;n<t.length;n++)e[n]=t[n];return e.join("")},n.prototype.patch_fromText=function(t){var e=[];if(!t)return e;for(var r=t.split("\n"),s=0,u=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;s<r.length;){var l=r[s].match(u);if(!l)throw new Error("Invalid patch string: "+r[s]);var c=new n.patch_obj;for(e.push(c),c.start1=parseInt(l[1],10),""===l[2]?(c.start1--,c.length1=1):"0"==l[2]?c.length1=0:(c.start1--,c.length1=parseInt(l[2],10)),c.start2=parseInt(l[3],10),""===l[4]?(c.start2--,c.length2=1):"0"==l[4]?c.length2=0:(c.start2--,c.length2=parseInt(l[4],10)),s++;s<r.length;){var f=r[s].charAt(0);try{var h=decodeURI(r[s].substring(1))}catch(d){throw new Error("Illegal escape in patch_fromText: "+h)}if("-"==f)c.diffs.push([i,h]);else if("+"==f)c.diffs.push([o,h]);else if(" "==f)c.diffs.push([a,h]);else{if("@"==f)break;if(""!==f)throw new Error('Invalid patch mode "'+f+'" in: '+h)}s++}}return e},n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},n.patch_obj.prototype.toString=function(){var t,e;t=0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1,e=0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2;for(var n,r=["@@ -"+t+" +"+e+" @@\n"],s=0;s<this.diffs.length;s++){switch(this.diffs[s][0]){case o:n="+";break;case i:n="-";break;case a:n=" "}r[s+1]=n+encodeURI(this.diffs[s][1])+"\n"}return r.join("").replace(/%20/g," ")},(void 0).diff_match_patch=n,(void 0).DIFF_DELETE=i,(void 0).DIFF_INSERT=o,(void 0).DIFF_EQUAL=a},function(t,e,n){"use strict";var r=n(26).Processor,i=n(16).Pipe,o=n(4).DiffContext,a=n(5).PatchContext,s=n(6).ReverseContext,u=n(25),l=n(23),c=n(20),f=n(21),h=n(24),d=function(t){this.processor=new r(t),this.processor.pipe(new i("diff").append(l.collectChildrenDiffFilter,u.diffFilter,f.diffFilter,h.diffFilter,l.objectsDiffFilter,c.diffFilter).shouldHaveResult()),this.processor.pipe(new i("patch").append(l.collectChildrenPatchFilter,c.collectChildrenPatchFilter,u.patchFilter,h.patchFilter,l.patchFilter,c.patchFilter).shouldHaveResult()),this.processor.pipe(new i("reverse").append(l.collectChildrenReverseFilter,c.collectChildrenReverseFilter,u.reverseFilter,h.reverseFilter,l.reverseFilter,c.reverseFilter).shouldHaveResult())};d.prototype.options=function(){return this.processor.options.apply(this.processor,arguments)},d.prototype.diff=function(t,e){return this.processor.process(new o(t,e))},d.prototype.patch=function(t,e){return this.processor.process(new a(t,e))},d.prototype.reverse=function(t){return this.processor.process(new s(t))},d.prototype.unpatch=function(t,e){return this.patch(t,this.reverse(e))},e.DiffPatcher=d},function(t,e,n){"use strict";function r(t,e,n,r){for(var i=0;i<n;i++)for(var o=t[i],a=0;a<r;a++){var s=e[a];if(o===s)return!0}}function i(t,e,n,r,i){var a=t[n],s=e[r];if(a===s)return!0;if("object"!==("undefined"==typeof a?"undefined":o(a))||"object"!==("undefined"==typeof s?"undefined":o(s)))return!1;var u=i.objectHash;if(!u)return i.matchByPosition&&n===r;var l,c;return"number"==typeof n?(i.hashCache1=i.hashCache1||[],l=i.hashCache1[n],"undefined"==typeof l&&(i.hashCache1[n]=l=u(a,n))):l=u(a),"undefined"!=typeof l&&("number"==typeof r?(i.hashCache2=i.hashCache2||[],c=i.hashCache2[r],"undefined"==typeof c&&(i.hashCache2[r]=c=u(s,r))):c=u(s),"undefined"!=typeof c&&l===c)}var o="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},a=n(4).DiffContext,s=n(5).PatchContext,u=n(6).ReverseContext,l=n(22),c=3,f="function"==typeof Array.isArray?Array.isArray:function(t){return t instanceof Array},h="function"==typeof Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r]===e)return r;return-1},d=function(t){if(t.leftIsArray){var e,n,o,s,u={objectHash:t.options&&t.options.objectHash,matchByPosition:t.options&&t.options.matchByPosition},f=0,d=0,p=t.left,v=t.right,g=p.length,m=v.length;for(g>0&&m>0&&!u.objectHash&&"boolean"!=typeof u.matchByPosition&&(u.matchByPosition=!r(p,v,g,m));f<g&&f<m&&i(p,v,f,f,u);)e=f,s=new a(t.left[e],t.right[e]),t.push(s,e),f++;for(;d+f<g&&d+f<m&&i(p,v,g-1-d,m-1-d,u);)n=g-1-d,o=m-1-d,s=new a(t.left[n],t.right[o]),t.push(s,o),d++;var y;if(f+d===g){if(g===m)return void t.setResult(void 0).exit();for(y=y||{_t:"a"},e=f;e<m-d;e++)y[e]=[v[e]];return void t.setResult(y).exit()}if(f+d===m){for(y=y||{_t:"a"},e=f;e<g-d;e++)y["_"+e]=[p[e],0,0];return void t.setResult(y).exit()}delete u.hashCache1,delete u.hashCache2;var b=p.slice(f,g-d),x=v.slice(f,m-d),w=l.get(b,x,i,u),_=[];for(y=y||{_t:"a"},e=f;e<g-d;e++)h(w.indices1,e-f)<0&&(y["_"+e]=[p[e],0,0],_.push(e));var C=!0;t.options&&t.options.arrays&&t.options.arrays.detectMove===!1&&(C=!1);var k=!1;t.options&&t.options.arrays&&t.options.arrays.includeValueOnMove&&(k=!0);var T=_.length;for(e=f;e<m-d;e++){var A=h(w.indices2,e-f);if(A<0){var S=!1;if(C&&T>0)for(var j=0;j<T;j++)if(n=_[j],i(b,x,n-f,e-f,u)){y["_"+n].splice(1,2,e,c),k||(y["_"+n][0]=""),o=e,s=new a(t.left[n],t.right[o]),t.push(s,o),_.splice(j,1),S=!0;break}S||(y[e]=[v[e]])}else n=w.indices1[A]+f,o=w.indices2[A]+f,s=new a(t.left[n],t.right[o]),t.push(s,o)}t.setResult(y).exit()}};d.filterName="arrays";var p={numerically:function(t,e){return t-e},numericallyBy:function(t){return function(e,n){return e[t]-n[t]}}},v=function(t){if(t.nested&&"a"===t.delta._t){var e,n,r=t.delta,i=t.left,o=[],a=[],u=[];for(e in r)if("_t"!==e)if("_"===e[0]){if(0!==r[e][2]&&r[e][2]!==c)throw new Error("only removal or move can be applied at original array indices, invalid diff type: "+r[e][2]);o.push(parseInt(e.slice(1),10))}else 1===r[e].length?a.push({index:parseInt(e,10),value:r[e][0]}):u.push({index:parseInt(e,10),delta:r[e]});for(o=o.sort(p.numerically),e=o.length-1;e>=0;e--){n=o[e];var l=r["_"+n],f=i.splice(n,1)[0];l[2]===c&&a.push({index:l[1],value:f})}a=a.sort(p.numericallyBy("index"));var h=a.length;for(e=0;e<h;e++){var d=a[e];i.splice(d.index,0,d.value)}var v,g=u.length;if(g>0)for(e=0;e<g;e++){var m=u[e];v=new s(t.left[m.index],m.delta),t.push(v,m.index)}return t.children?void t.exit():void t.setResult(t.left).exit()}};v.filterName="arrays";var g=function(t){if(t&&t.children&&"a"===t.delta._t){for(var e,n=t.children.length,r=0;r<n;r++)e=t.children[r],t.left[e.childName]=e.result;t.setResult(t.left).exit()}};g.filterName="arraysCollectChildren";var m=function(t){if(!t.nested)return void(t.delta[2]===c&&(t.newName="_"+t.delta[1],t.setResult([t.delta[0],parseInt(t.childName.substr(1),10),c]).exit()));if("a"===t.delta._t){var e,n;for(e in t.delta)"_t"!==e&&(n=new u(t.delta[e]),t.push(n,e));t.exit()}};m.filterName="arrays";var y=function(t,e,n){if("string"==typeof e&&"_"===e[0])return parseInt(e.substr(1),10);if(f(n)&&0===n[2])return"_"+e;var r=+e;for(var i in t){var o=t[i];if(f(o))if(o[2]===c){var a=parseInt(i.substr(1),10),s=o[1];if(s===+e)return a;a<=r&&s>r?r++:a>=r&&s<r&&r--}else if(0===o[2]){var u=parseInt(i.substr(1),10);u<=r&&r++}else 1===o.length&&i<=r&&r--}return r},b=function(t){if(t&&t.children&&"a"===t.delta._t){for(var e,n=t.children.length,r={_t:"a"},i=0;i<n;i++){e=t.children[i];var o=e.newName;"undefined"==typeof o&&(o=y(t.delta,e.childName,e.result)),r[o]!==e.result&&(r[o]=e.result)}t.setResult(r).exit()}};b.filterName="arraysCollectChildren",e.diffFilter=d,e.patchFilter=v,e.collectChildrenPatchFilter=g,e.reverseFilter=m,e.collectChildrenReverseFilter=b},function(t,e){"use strict";var n=function(t){t.left instanceof Date?(t.right instanceof Date?t.left.getTime()!==t.right.getTime()?t.setResult([t.left,t.right]):t.setResult(void 0):t.setResult([t.left,t.right]),t.exit()):t.right instanceof Date&&t.setResult([t.left,t.right]).exit()};n.filterName="dates",e.diffFilter=n},function(t,e){"use strict";var n=function(t,e,n,r){return t[n]===e[r]},r=function(t,e,n,r){var i,o,a=t.length,s=e.length,u=[a+1];for(i=0;i<a+1;i++)for(u[i]=[s+1],o=0;o<s+1;o++)u[i][o]=0;for(u.match=n,i=1;i<a+1;i++)for(o=1;o<s+1;o++)n(t,e,i-1,o-1,r)?u[i][o]=u[i-1][o-1]+1:u[i][o]=Math.max(u[i-1][o],u[i][o-1]);return u},i=function a(t,e,n,r,i,o){if(0===r||0===i)return{sequence:[],indices1:[],indices2:[]};if(t.match(e,n,r-1,i-1,o)){var s=a(t,e,n,r-1,i-1,o);return s.sequence.push(e[r-1]),s.indices1.push(r-1),s.indices2.push(i-1),s}return t[r][i-1]>t[r-1][i]?a(t,e,n,r,i-1,o):a(t,e,n,r-1,i,o)},o=function(t,e,o,a){a=a||{};var s=r(t,e,o||n,a),u=i(s,t,e,t.length,e.length,a);return"string"==typeof t&&"string"==typeof e&&(u.sequence=u.sequence.join("")),u};e.get=o},function(t,e,n){"use strict";var r=n(4).DiffContext,i=n(5).PatchContext,o=n(6).ReverseContext,a=function(t){if(t&&t.children){for(var e,n=t.children.length,r=t.result,i=0;i<n;i++)e=t.children[i],"undefined"!=typeof e.result&&(r=r||{},r[e.childName]=e.result);r&&t.leftIsArray&&(r._t="a"),t.setResult(r).exit()}};a.filterName="collectChildren";var s=function(t){if(!t.leftIsArray&&"object"===t.leftType){var e,n,i=t.options.propertyFilter;for(e in t.left)Object.prototype.hasOwnProperty.call(t.left,e)&&(i&&!i(e,t)||(n=new r(t.left[e],t.right[e]),t.push(n,e)));for(e in t.right)Object.prototype.hasOwnProperty.call(t.right,e)&&(i&&!i(e,t)||"undefined"==typeof t.left[e]&&(n=new r((void 0),t.right[e]),t.push(n,e)));return t.children&&0!==t.children.length?void t.exit():void t.setResult(void 0).exit()}};s.filterName="objects";var u=function(t){if(t.nested&&!t.delta._t){var e,n;for(e in t.delta)n=new i(t.left[e],t.delta[e]),t.push(n,e);t.exit()}};u.filterName="objects";var l=function(t){if(t&&t.children&&!t.delta._t){for(var e,n=t.children.length,r=0;r<n;r++)e=t.children[r],Object.prototype.hasOwnProperty.call(t.left,e.childName)&&void 0===e.result?delete t.left[e.childName]:t.left[e.childName]!==e.result&&(t.left[e.childName]=e.result);t.setResult(t.left).exit()}};l.filterName="collectChildren";var c=function(t){if(t.nested&&!t.delta._t){var e,n;for(e in t.delta)n=new o(t.delta[e]),t.push(n,e);t.exit()}};c.filterName="objects";var f=function(t){if(t&&t.children&&!t.delta._t){for(var e,n=t.children.length,r={},i=0;i<n;i++)e=t.children[i],r[e.childName]!==e.result&&(r[e.childName]=e.result);t.setResult(r).exit()}};f.filterName="collectChildren",e.collectChildrenDiffFilter=a,e.objectsDiffFilter=s,e.patchFilter=u,e.collectChildrenPatchFilter=l,e.reverseFilter=c,e.collectChildrenReverseFilter=f},function(t,e,n){"use strict";var r=2,i=60,o=null,a=function(t){if(!o){var e;if("undefined"!=typeof diff_match_patch)e="function"==typeof diff_match_patch?new diff_match_patch:new diff_match_patch.diff_match_patch;else try{var r="diff_match_patch_uncompressed",i=n(94)("./"+r);e=new i.diff_match_patch}catch(a){e=null}if(!e){if(!t)return null;var s=new Error("text diff_match_patch library not found");throw s.diff_match_patch_not_found=!0,s}o={diff:function(t,n){return e.patch_toText(e.patch_make(t,n))},patch:function(t,n){for(var r=e.patch_apply(e.patch_fromText(n),t),i=0;i<r[1].length;i++)if(!r[1][i]){var o=new Error("text patch failed");o.textPatchFailed=!0}return r[0]}}}return o},s=function(t){if("string"===t.leftType){var e=t.options&&t.options.textDiff&&t.options.textDiff.minLength||i;if(t.left.length<e||t.right.length<e)return void t.setResult([t.left,t.right]).exit();var n=a();if(!n)return void t.setResult([t.left,t.right]).exit();var o=n.diff;t.setResult([o(t.left,t.right),0,r]).exit()}};s.filterName="texts";var u=function(t){if(!t.nested&&t.delta[2]===r){var e=a(!0).patch;t.setResult(e(t.left,t.delta[0])).exit()}};u.filterName="texts";var l=function(t){var e,n,r,i,o,a,s,u,l=null,c=/^@@ +\-(\d+),(\d+) +\+(\d+),(\d+) +@@$/;for(r=t.split("\n"),e=0,n=r.length;e<n;e++){i=r[e];var f=i.slice(0,1);"@"===f?(l=c.exec(i),a=e,s=null,u=null,r[a]="@@ -"+l[3]+","+l[4]+" +"+l[1]+","+l[2]+" @@"):"+"===f?(s=e,r[e]="-"+r[e].slice(1),"+"===r[e-1].slice(0,1)&&(o=r[e],r[e]=r[e-1],r[e-1]=o)):"-"===f&&(u=e,r[e]="+"+r[e].slice(1))}return r.join("\n")},c=function(t){t.nested||t.delta[2]===r&&t.setResult([l(t.delta[0]),0,r]).exit()};c.filterName="texts",e.diffFilter=s,e.patchFilter=u,e.reverseFilter=c},function(t,e){"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},r="function"==typeof Array.isArray?Array.isArray:function(t){return t instanceof Array},i=function(t){if(t.left===t.right)return void t.setResult(void 0).exit();if("undefined"==typeof t.left){if("function"==typeof t.right)throw new Error("functions are not supported");return void t.setResult([t.right]).exit()}if("undefined"==typeof t.right)return void t.setResult([t.left,0,0]).exit();if("function"==typeof t.left||"function"==typeof t.right)throw new Error("functions are not supported");return t.leftType=null===t.left?"null":n(t.left),t.rightType=null===t.right?"null":n(t.right),t.leftType!==t.rightType?void t.setResult([t.left,t.right]).exit():"boolean"===t.leftType||"number"===t.leftType?void t.setResult([t.left,t.right]).exit():("object"===t.leftType&&(t.leftIsArray=r(t.left)),"object"===t.rightType&&(t.rightIsArray=r(t.right)),t.leftIsArray!==t.rightIsArray?void t.setResult([t.left,t.right]).exit():void 0)};i.filterName="trivial";var o=function(t){return"undefined"==typeof t.delta?void t.setResult(t.left).exit():(t.nested=!r(t.delta),t.nested?void 0:1===t.delta.length?void t.setResult(t.delta[0]).exit():2===t.delta.length?void t.setResult(t.delta[1]).exit():3===t.delta.length&&0===t.delta[2]?void t.setResult(void 0).exit():void 0)};o.filterName="trivial";var a=function(t){return"undefined"==typeof t.delta?void t.setResult(t.delta).exit():(t.nested=!r(t.delta),t.nested?void 0:1===t.delta.length?void t.setResult([t.delta[0],0,0]).exit():2===t.delta.length?void t.setResult([t.delta[1],t.delta[0]]).exit():3===t.delta.length&&0===t.delta[2]?void t.setResult([t.delta[0]]).exit():void 0)};a.filterName="trivial",e.diffFilter=i,e.patchFilter=o,e.reverseFilter=a},function(t,e){"use strict";var n=function(t){this.selfOptions=t||{},this.pipes={}};n.prototype.options=function(t){return t&&(this.selfOptions=t),this.selfOptions},n.prototype.pipe=function(t,e){if("string"==typeof t){if("undefined"==typeof e)return this.pipes[t];this.pipes[t]=e}if(t&&t.name){if(e=t,e.processor===this)return e;this.pipes[e.name]=e}return e.processor=this,e},n.prototype.process=function(t,e){var n=t;n.options=this.options();for(var r,i,o=e||t.pipe||"default";o;)"undefined"!=typeof n.nextAfterChildren&&(n.next=n.nextAfterChildren,n.nextAfterChildren=null),"string"==typeof o&&(o=this.pipe(o)),o.process(n),i=n,r=o,o=null,n&&n.next&&(n=n.next,o=i.nextPipe||n.pipe||r);return n.hasResult?n.result:void 0},e.Processor=n},function(t,e,n){var r,i;n(105),r=n(46);var o=n(100);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){"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){"use strict";function n(t){function e(){var t={};for(a.push(t);s<o.length;){var e=o[s];if(/^(\-\-\-|\+\+\+|@@)\s/.test(e))break;var u=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(e);u&&(t.index=u[1]),s++}for(n(t),n(t),t.hunks=[];s<o.length;){var l=o[s];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(l))break;if(/^@@/.test(l))t.hunks.push(r());else{if(l&&i.strict)throw new Error("Unknown line "+(s+1)+" "+JSON.stringify(l));s++}}}function n(t){var e=/^(---|\+\+\+)\s+([\S ]*)(?:\t(.*?)\s*)?$/,n=e.exec(o[s]);if(n){var r="---"===n[1]?"old":"new";t[r+"FileName"]=n[2],t[r+"Header"]=n[3],s++}}function r(){for(var t=s,e=o[s++],n=e.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),r={oldStart:+n[1],oldLines:+n[2]||1,newStart:+n[3],newLines:+n[4]||1,lines:[]},a=0,u=0;s<o.length;s++){var l=o[s][0];if("+"!==l&&"-"!==l&&" "!==l&&"\\"!==l)break;r.lines.push(o[s]),"+"===l?a++:"-"===l?u++:" "===l&&(a++,u++)}if(a||1!==r.newLines||(r.newLines=0),u||1!==r.oldLines||(r.oldLines=0),i.strict){if(a!==r.newLines)throw new Error("Added line count did not match for hunk at line "+(t+1));if(u!==r.oldLines)throw new Error("Removed line count did not match for hunk at line "+(t+1))}return r}for(var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=t.split("\n"),a=[],s=0;s<o.length;)e();return a}e.__esModule=!0,e.parsePatch=n},function(t,e){"use strict";function n(t,e){if("function"==typeof t)e.callback=t;else if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}e.__esModule=!0,e.generateOptions=n},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",l=/[\.\/]/,c=/\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,l=[],c={},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]&&(l.push(s[g].zIndex),s[g].zIndex<0&&(c[s[g].zIndex]=s[g]));for(l.sort(h);l[u]<0;)if(n=c[l[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==l[u]){if(f.push(n.apply(e,i)),a)break;do if(u++,n=c[l[u]],n&&f.push(n.apply(e,i)),a)break;while(n)}else c[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,c=t.split(l),h=d,p=[h],v=[];for(i=0,o=c.length;i<o;i++){for(u=[],a=0,s=p.length;a<s;a++)for(h=p[a].n,n=[h[c[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(c),r=0,i=n.length;r<i;r++)!function(t){for(var n,r=t.split(l),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(l)},g.off=g.unbind=function(t,e){if(!t)return void(g._events=d={n:{}});var n=t.split(c);if(n.length>1)for(var r=0,i=n.length;r<i;r++)g.off(n[r],e);else{n=t.split(l);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},l=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},c=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:l,speed:c,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 l(t,e,n,r,i,o){if(null==i){var a=t-n,s=e-r;return a||s?(180+180*$.atan2(-s,-a)/D+360)%360:0}return l(t,e,i,o)-l(n,r,i,o)}function c(t){return t%360*D/180}function f(t){return 180*t/D%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,$.tan(c(r[0])),1,0,0]):"skewY"==n?e.push(["m",1,$.tan(c(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,l,c,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),l=g.x(h[1],h[2]),c=g.y(h[1],h[2]),i.translate(l-s,c-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?(l=g.x(h[2],h[3]),c=g.y(h[2],h[3]),i.rotate(h[1],l,c)):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?(l=g.x(h[2],h[3]),c=g.y(h[2],h[3]),i.scale(h[1],h[1],l,c)):i.scale(h[1],h[1],h[2],h[3]):5==d&&(v?(l=g.x(h[3],h[4]),c=g.y(h[3],h[4]),i.scale(h[1],h[2],l,c)):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(l,{width:t});try{return l.getBBox().width}catch(e){return 0}}function o(t){if(null==t)return P;if(t==+t)return t;r(l,{height:t});try{return l.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={},l=s.querySelector(".svg---mgr");switch(l||(l=r("rect"),r(l,{x:-9e9,y:-9e9,width:10,height:10,"class":"svg---mgr",fill:"none"}),s.appendChild(l)),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(l),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 J)return J[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,J[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 J)return J[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,j=parseFloat,E=parseInt,$=Math,O=$.max,N=$.min,M=$.abs,D=($.pow,$.PI),P=($.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,q=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,H=/(-?\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",J={};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=c,n.deg=f,n.sin=function(t){return $.sin(n.rad(t))},n.tan=function(t){return $.tan(n.rad(t))},n.cos=function(t){return $.cos(n.rad(t))},n.asin=function(t){return n.deg($.asin(t))},n.acos=function(t){return n.deg($.acos(t))},n.atan=function(t){return n.deg($.atan(t))},n.atan2=function(t){return n.deg($.atan2(t))},n.angle=l,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,l=u.getTotalLength(),c=l/u.pathSegList.numberOfItems*.125,f=1/0,h=0;h<=l;h+=c)(s=r(a=u.getPointAtLength(h)))<f&&(i=a,o=h,f=s);for(c*=.5;c>.5;){var d,p,v,g,m,y;(v=o-c)>=0&&(m=r(d=u.getPointAtLength(v)))<f?(i=d,o=v,f=m):(g=o+c)<=l&&(y=r(p=u.getPointAtLength(g)))<f?(i=p,o=g,f=y):c*=.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(M(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,l=t.match(B);return l?(l[2]&&(o=E(l[2].substring(5),16),r=E(l[2].substring(3,5),16),e=E(l[2].substring(1,3),16)),l[3]&&(o=E((s=l[3].charAt(3))+s,16),r=E((s=l[3].charAt(2))+s,16),e=E((s=l[3].charAt(1))+s,16)),l[4]&&(u=l[4].split(L),e=j(u[0]),"%"==u[0].slice(-1)&&(e*=2.55),r=j(u[1]),"%"==u[1].slice(-1)&&(r*=2.55),o=j(u[2]),"%"==u[2].slice(-1)&&(o*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(a=j(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100)),l[5]?(u=l[5].split(L),e=j(u[0]),"%"==u[0].slice(-1)&&(e/=100),r=j(u[1]),"%"==u[1].slice(-1)&&(r/=100),o=j(u[2]),"%"==u[2].slice(-1)&&(o/=100),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(e/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(a=j(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),n.hsb2rgb(e,r,o,a)):l[6]?(u=l[6].split(L),e=j(u[0]),"%"==u[0].slice(-1)&&(e/=100),r=j(u[1]),"%"==u[1].slice(-1)&&(r/=100),o=j(u[2]),"%"==u[2].slice(-1)&&(o/=100),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(e/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(a=j(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),n.hsl2rgb(e,r,o,a)):(e=N($.round(e),255),r=N($.round(r),255),o=N($.round(o),255),a=N(O(a,0),1),l={r:e,g:r,b:o,toString:Q},l.hex="#"+(16777216|o|r<<8|e<<16).toString(16).slice(1),l.opacity=i(a,"finite")?a:1,l)):{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=$.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)},G=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=$.round(255*t),e=$.round(255*e),r=$.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,l;return t=t%360/60,l=n*e,u=l*(1-M(t%2-1)),o=a=s=n-l,t=~~t,o+=[l,u,0,0,u,l][t],a+=[u,l,l,u,0,0][t],s+=[0,0,u,l,l,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,l;return t=t%360/60,l=2*e*(n<.5?n:1-n),u=l*(1-M(t%2-1)),o=a=s=n-l/2,t=~~t,o+=[l,u,0,0,u,l][t],a+=[u,l,l,u,0,0][t],s+=[0,0,u,l,l,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:G}},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(H,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(q,function(t,n,r){var i=[];n.toLowerCase();r.replace(H,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 J)if(J[A](t)){var e=J[t],n=e.node;("svg"!=e.type&&!n.ownerSVGElement||"svg"==e.type&&(!n.parentNode||"ownerSVGElement"in n.parentNode&&!n.ownerSVGElement))&&delete J[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,l=a.length;u<l;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 c={};c[t]=n,t=c}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 l in n)n.hasOwnProperty(l)&&u.push(encodeURIComponent(l)+"="+encodeURIComponent(n[l]));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 l(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,l=i.length;u<l;u++){r=i[u],e(r,"fill"),e(r,"stroke"),e(r,"filter"),e(r,"mask"),e(r,"clip-path"),n(r);var c=g(r.node,"id");c&&(g(r.node,{id:r.id}),a.push({old:c,id:r.id}))}for(u=0,l=a.length;u<l;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 c(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],l=new r.Matrix,c=a.toTransformString(),f=p(a)==p(this.matrix)?p(e.transform):c;"svg"!=i.type&&(i=i.parent());)s.push(u(i));for(n=s.length;n--;)l.add(s[n]);return{string:f,globalMatrix:o,totalMatrix:l,localMatrix:a,diffMatrix:o.clone().add(a.invert()),global:o.toTransformString(),total:l.toTransformString(),local:c,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}),l(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(),l=n(t,r,u,u+o,n.time,i,a);return s&&e.once("mina.finish."+l.id,s),l},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,l,f=[],h=[],v={},g=this;for(var m in t)if(t[b](m)){g.equal?(l=g.equal(m,p(t[m])),a=l.from,s=l.to,u=l.f):(a=+g.attr(m),s=+t[m]);var y=d(a,"array")?a.length:1;v[m]=c(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,l="";!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,l,c,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(c=0,l=0;l<3;l++)c+=h[s][l]*d[l][u];f[s][u]=c}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)]:l)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:l)+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:l))}}(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 l(){return e.stop(),this.node.style.fontSize}var c=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=c("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=c("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",l)(-1),e.on("snap.util.getattr.font-size",l)(-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,l=u.className.baseVal,c=l.match(o)||[];if(s.length){for(e=0;r=s[e++];)n=c.indexOf(r),~n||c.push(r);i=c.join(" "),l!=i&&(u.className.baseVal=i)}return this},s.removeClass=function(t){var e,n,r,i,s=a(t||"").match(o)||[],u=this.node,l=u.className.baseVal,c=l.match(o)||[];if(c.length){for(e=0;r=s[e++];)n=c.indexOf(r),~n&&c.splice(n,1);i=c.join(" "),l!=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,l=u.className.baseVal,c=l.match(o)||[];for(n=0;i=s[n++];)r=c.indexOf(i),~r?c.splice(r,1):c.push(i);return a=c.join(" "),l!=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}},l=String,c=/[a-z]+$/i,f=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;e.on("snap.util.attr",function(t){var n=l(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(c),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=l(this.attr(t)||""),i=l(n).match(f);if(i){e.stop();var o=i[3]||"",h=r.match(c),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 l=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):l(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 l={};return u(t,"object")&&null==e?l=t:(null!=t&&(l.x=t),null!=e&&(l.y=e),null!=n&&(l.width=n),null!=r&&(l.height=r),null!=i&&null!=o&&null!=a&&null!=s&&(l.viewBox=[i,o,a,s])),this.el("svg",l)},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 l=t;else l={patternUnits:"userSpaceOnUse"},t&&(l.x=t),e&&(l.y=e),null!=n&&(l.width=n),null!=r&&(l.height=r),null!=i&&null!=o&&null!=a&&null!=s?l.viewBox=[i,o,a,s]:l.viewBox=[t||0,e||0,n||0,r||0];return this.el("pattern",l)},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=c("stop"),i={offset:+e+"%"};return t=n.color(t),i["stop-color"]=t.hex,t.opacity<1&&(i["stop-opacity"]=t.opacity),c(r,i),this.node.appendChild(r),this}function o(){if("linearGradient"==this.type){var t=c(this.node,"x1")||0,e=c(this.node,"x2")||1,r=c(this.node,"y1")||0,i=c(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):l.apply(0,o.params),o.type!=o.type.toLowerCase()&&c(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 l=n._.make("linearGradient",t);return l.stops=r,l.addStop=i,l.getBBox=o,null!=e&&c(l.node,{x1:e,y1:a,x2:s,y2:u}),l}function l(t,e,a,s,u,l){var f=n._.make("radialGradient",t);return f.stops=r,f.addStop=i,f.getBBox=o,null!=e&&c(f.node,{cx:e,cy:a,r:s}),null!=u&&null!=l&&c(f.node,{fx:u,fy:l}),f}var c=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 l(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:q.min(n,r)/2,r2:q.max(n,r)/2,r0:q.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):c(t,e,n,r,i,o,a,s,g(t,e,n,r,i,o,a,s,u))}function l(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,l,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],l=+f[2];else{if(h=u(s,l,f[1],f[2],f[3],f[4],f[5],f[6]),g+h>o){if(r&&!v.start){if(d=u(s,l,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],l=+f[6];continue}if(!n&&!r)return d=u(s,l,f[1],f[2],f[3],f[4],f[5],f[6],o-g)}g+=h,s=+f[5],l=+f[6]}p+=f.shift()+f}return v.end=p,d=n?g:r?v:c(s,l,f[0],f[1],f[2],f[3],f[4],f[5],1)},null,t._.clone)}function c(t,e,n,r,i,o,a,s,u){var l=1-u,c=U(l,3),f=U(l,2),h=u*u,d=h*u,p=c*t+3*f*u*n+3*l*u*u*i+d*a,v=c*e+3*f*u*r+3*l*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=l*t+u*n,w=l*e+u*r,_=l*i+u*a,C=l*o+u*s,k=90-180*q.atan2(g-y,m-b)/H;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,l){t.is(e,"array")||(e=[e,n,r,i,a,s,u,l]);var c=O.apply(null,e);return o(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.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 l=u/2,c=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<c;v++){var g=l*f[v]+l,m=p(g,t,n,i,a),y=p(g,e,r,o,s),b=m*m+y*y;d+=h[v]*q.sqrt(b)}return l*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 l,c=1,f=c/2,h=c-f,d=.01;for(l=v(t,e,n,r,i,o,a,s,h);W(l-u)>d;)f/=2,h+=(l<u?1:-1)*f,l=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),l=(t*r-e*n)*(o-s)-(e-r)*(i*s-o*a),c=(t-n)*(o-s)-(e-r)*(i-a);if(c){var f=u/c,h=l/c,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),l=[],h=[],p={},g=n?0:[],y=0;y<s+1;y++){var b=c.apply(0,t.concat(y/s));l.push({x:b.x,y:b.y,t:y/s})}for(y=0;y<u+1;y++)b=c.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=l[y],_=l[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 j=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);j>=0&&j<=1&&E>=0&&E<=1&&(n?g++:g.push({x:S.x,y:S.y,t1:j,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,l,c,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=l=x[1],a=c=x[2];else{"C"==x[0]?(h=[o,a].concat(x.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,l,c,l,c],o=l,a=c);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=[],l=0,c=t.length;l<c;l++)if(n=t[l],"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),l=e+n*Math.sin(-r*o),c=e+n*Math.sin(-i*o),f=[["M",s,l],["A",n,n,0,+(i-r>180),0,u,c]];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,l=0,c=0,f=0,h=0;"M"==e[0][0]&&(u=e[0][1],l=e[0][2],c=u,f=l,h++,o.push(["M",u,l]));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]-l).toFixed(3);break;case"v":v[1]=+(g[1]-l).toFixed(3);break;case"m":c=g[1],f=g[2];default:for(var m=1,y=g.length;m<y;m++)v[m]=+(g[m]-(m%2?u:l)).toFixed(3)}else{v=o[d]=[],"m"==g[0]&&(c=g[1]+u,f=g[2]+l);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=c,l=f;break;case"h":u+=+o[d][w-1];break;case"v":l+=+o[d][w-1];break;default:u+=+o[d][w-2],l+=+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,l=0,c=0,f=0,h=0;"M"==e[0][0]&&(u=+e[0][1],l=+e[0][2],c=u,f=l,h++,o[0]=["M",u,l]);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]+l;break;case"V":d[1]=+p[1]+l;break;case"H":d[1]=+p[1]+u;break;case"R":for(var y=[u,l].concat(p.slice(1)),b=2,x=y.length;b<x;b++)y[b]=+y[b]+u,y[++b]=+y[b]+l;o.pop(),o=o.concat(D(y,v));break;case"O":o.pop(),y=T(u,l,p[1],p[2]),y.push(y[0]),o=o.concat(y);break;case"U":o.pop(),o=o.concat(T(u,l,p[1],p[2],p[3])),d=["U"].concat(o[o.length-1].slice(-2));break;case"M":c=+p[1]+u,f=+p[2]+l;default:for(b=1,x=p.length;b<x;b++)d[b]=+p[b]+(b%2?u:l)}else if("R"==r)y=[u,l].concat(p.slice(1)),o.pop(),o=o.concat(D(y,v)),d=["R"].concat(p.slice(-2));else if("O"==r)o.pop(),y=T(u,l,p[1],p[2]),y.push(y[0]),o=o.concat(y);else if("U"==r)o.pop(),o=o.concat(T(u,l,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=+c,l=+f;break;case"H":u=d[1];break;case"V":l=d[1];break;case"M":c=d[d.length-2],f=d[d.length-1];default:u=d[d.length-2],l=d[d.length-1]}}return o.toString=a,n.abs=s(o),o}function j(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 $(e,n,r,i,o,a,s,u,l,c){var f,h=120*H/180,d=H/180*(+o||0),p=[],v=t._.cacher(function(t,e,n){var r=t*q.cos(n)-e*q.sin(n),i=t*q.sin(n)+e*q.cos(n);return{x:r,y:i}});if(c)k=c[0],T=c[1],_=c[2],C=c[3];else{f=v(e,n,-d),e=f.x,n=f.y,f=v(u,l,-d),u=f.x,l=f.y;var g=(q.cos(H/180*o),q.sin(H/180*o),(e-u)/2),m=(n-l)/2,y=g*g/(r*r)+m*m/(i*i);y>1&&(y=q.sqrt(y),r=y*r,i=y*i);var b=r*r,x=i*i,w=(a==s?-1:1)*q.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+l)/2,k=q.asin(((n-C)/i).toFixed(9)),T=q.asin(((l-C)/i).toFixed(9));k=e<_?H-k:k,T=u<_?H-T:T,k<0&&(k=2*H+k),T<0&&(T=2*H+T),s&&k>T&&(k-=2*H),!s&&T>k&&(T-=2*H)}var A=T-k;if(W(A)>h){var S=T,j=u,E=l;T=k+h*(s&&T>k?1:-1),u=_+r*q.cos(T),l=C+i*q.sin(T),p=$(u,l,r,i,o,0,s,j,E,[T,S,_,C])}A=T-k;var O=q.cos(k),N=q.sin(k),M=q.cos(T),D=q.sin(T),P=q.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*D,l-B*M],z=[u,l];if(R[0]=2*L[0]-R[0],R[1]=2*L[1]-R[1],c)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,l,c,f,h,d,p,v,g=[],m=[[],[]],y=0;y<2;++y)if(0==y?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,c=3*n-3*t):(l=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,c=3*r-3*e),W(u)<1e-12){if(W(l)<1e-12)continue;f=-c/l,0<f&&f<1&&g.push(f)}else p=l*l-4*c*u,v=q.sqrt(p),p<0||(h=(-l+v)/(2*u),0<h&&h<1&&g.push(h),d=(-l-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},l=(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($.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(j(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(j(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(j(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(j(e.x,e.y,e.X,e.Y))}return t}),c=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]=l(r[g],a,v),"A"!=h[g]&&"C"==p&&(h[g]="C"),c(r,g),o&&(o[g]&&(p=o[g][0]),"C"!=p&&(d[g]=p,g&&(v=d[g-1])),o[g]=l(o[g],u,v),"A"!=d[g]&&"C"==p&&(d[g]="C"),c(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 M(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 D(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,q=Math,H=q.PI,z=q.min,V=q.max,U=q.pow,W=q.abs,X=l(1),J=l(),Z=l(0,1),G=t._unit2px,Y={path:function(t){return t.attr("path")},circle:function(t){var e=G(t);return T(e.cx,e.cy,e.r)},ellipse:function(t){var e=G(t);return T(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=G(t);return k(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=G(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=J,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 J(this.attr("d"),t)},P.getSubpath=function(e,n){return t.path.getSubpath(this.attr("d"),e,n)},t._.box=o,t.path.findDotsAtSegment=c,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=[],l=r[0].hasOwnProperty("x")?function(t){return{x:r[t].x,y:r[t].y}}:function(t){return{x:r[t],y:i[t]}},c=0;a<=1e6&&!c;){for(var f=0,d=r.length;f<d;f++){var p=l(f);if(h(s,p.x,p.y)){c++,u.push(p);break}}c||(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=M,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++)},l=u.prototype;l.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},l.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},l.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},l.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 l,c=function(){l?this.b=l:l=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,c),u?s[n]&&t.animate.apply(t,s[n]):t.animate(r,i,o,d)})},l.remove=function(){for(;this.length;)this.pop().remove();return this},l.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},l.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},l.clear=function(){for(;this.length;)this.pop()},l.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=[],l=[];for(r=2;r<arguments.length;r++)l.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 c=l.length;for(r=0;r<c+i.length;r++)this.items[t+r]=this[t+r]=r<c?l[r]:i[r-c];for(r=this.items.length=this.length-=e-c;this[r];)delete this[r++];return new u(o)},l.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},l.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},l.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}},l.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},l.toString=function(){return"Snap‘s set"},l.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,l=Math.max(e.length,n.length),c=[],d=[],p=0;p<l;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()),c=[["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(c[p]=[],d[p]=[],i=0,a=Math.max(s.length,u.length);i<a;i++)i in s&&(c[p][i]=s[i]),i in u&&(d[p][i]=u[i])}return{from:h(c),to:h(d),f:f(c)}}function s(t){return t}function u(t){return function(e){return+e.toFixed(3)+t}}function l(t){return t.join(" ")}function c(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:c};if("viewBox"==e)return r=this.attr(e).vb.split(" ").map(Number),i=n.split(" ").map(Number),{from:r,to:i,f:l};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"],l={
mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},c=(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&&l[e]?l[e]:e,o=function(i){var o=c("y",r),u=c("x",r);if(s&&l[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=c("y"),a=c("x"),u=p.length;u--;){if(n=p[u],s){for(var l,f=t.touches&&t.touches.length;f--;)if(l=t.touches[f],l.identifier==n.el._drag.id||n.el.node.contains(l.target)){r=l.clientX,i=l.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,l,f){(u.originalEvent||u).preventDefault(),c._drag.x=l,c._drag.y=f,c._drag.id=u.identifier,!p.length&&t.mousemove(v).mouseup(g),p.push({el:c,move_scope:o,start_scope:a,end_scope:s}),r&&e.on("snap.drag.start."+c.id,r),n&&e.on("snap.drag.move."+c.id,n),i&&e.on("snap.drag.end."+c.id,i),e("snap.drag.start."+c.id,a||o||c,l,f,u)}function l(t,n,r){e("snap.draginit."+c.id,c,t,n,r)}var c=this;if(!arguments.length){var f;return c.drag(function(t,e){this.attr({transform:f+(f?"T":"t")+[t,e]})},function(){f=this.transform().local})}return e.on("snap.draginit."+c.id,u),c._drag={},y.push({el:c,start:u,init:l}),c.mousedown(l),c},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};/*!
@@ -27,7 +27,7 @@
*/
function(t){function e(t,e,n,r){var i,o,a,s,u,l,c,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:q)!==M&&N(e),e=e||M,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,c=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(wt,_t):e.setAttribute("id",s=I),l=A(t),o=l.length;o--;)l[o]="#"+s+" "+d(l[o]);c=l.join(","),h=yt.test(t)&&f(e.parentNode)||e}if(c)try{return Q.apply(n,h.querySelectorAll(c)),n}catch(v){}finally{s===I&&e.removeAttribute("id")}}}return j(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=M.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 l(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 c(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 l,c,f,h=[H,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]={}),c=f[e.uniqueID]||(f[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((l=c[o])&&l[0]===H&&l[1]===s)return h[2]=l[2];if(c[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,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&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 l,c,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(l=m(b,d),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(b[d[c]]=!(y[d[c]]=f));if(r){if(o||t){if(o){for(l=[],c=b.length;c--;)(f=b[c])&&l.push(y[c]=f);o(null,b=[],l,u)}for(c=b.length;c--;)(f=b[c])&&(l=o?tt(r,f):h[c])>-1&&(r[l]=!(a[l]=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),l=p(function(t){return tt(e,t)>-1},a,!0),c=[function(t,n,r){var i=!o&&(r||n!==E)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];s<i;s++)if(n=C.relative[t[s].type])c=[p(v(c),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(c),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))}c.push(n)}return v(c)}function x(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,s,u,l){var c,f,h,d=0,p="0",v=r&&[],g=[],y=E,b=r||o&&C.find.TAG("*",l),x=H+=null==y?1:Math.random()||.1,w=b.length;for(l&&(E=a===M||a||l);p!==w&&null!=(c=b[p]);p++){if(o&&c){for(f=0,a||c.ownerDocument===M||(N(c),s=!P);h=t[f++];)if(h(c,a||M,s)){u.push(c);break}l&&(H=x)}i&&((c=!h&&c)&&d--,r&&v.push(c))}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]=G.call(u));g=m(g)}Q.apply(u,g),l&&!r&&g.length>0&&d+n.length>1&&e.uniqueSort(u)}return l&&(H=x,E=y),v};return i?r(a):a}var w,_,C,k,T,A,S,j,E,$,O,N,M,D,P,F,B,L,R,I="sizzle"+1*new Date,q=t.document,H=0,z=0,V=n(),U=n(),W=n(),X=function(t,e){return t===e&&(O=!0),0},J={}.hasOwnProperty,Z=[],G=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+"*"),lt=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ct=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(q.childNodes),q.childNodes),Z[q.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:q;return r!==M&&9===r.nodeType&&r.documentElement?(M=r,D=M.documentElement,P=!T(M),q!==M&&(n=M.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(M.createComment("")),!t.getElementsByTagName("*").length}),_.getElementsByClassName=gt.test(M.getElementsByClassName),_.getById=i(function(t){return D.appendChild(t).id=I,!M.getElementsByName||!M.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(M.querySelectorAll))&&(i(function(t){D.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=M.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"),D.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),F.push(",.*:")})),(_.matchesSelector=gt.test(L=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.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(D.compareDocumentPosition),R=e||gt.test(D.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===M||t.ownerDocument===q&&R(q,t)?-1:e===M||e.ownerDocument===q&&R(q,e)?1:$?tt($,t)-tt($,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===M?-1:e===M?1:i?-1:o?1:$?tt($,t)-tt($,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]===q?-1:u[r]===q?1:0},M):M},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==M&&N(t),n=n.replace(ct,"='$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,M,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==M&&N(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==M&&N(t);var n=C.attrHandle[e.toLowerCase()],r=n&&J.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,$=!_.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 $=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 l,c,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]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[t]||[],d=l[0]===H&&l[1],b=d&&l[2],h=d&&g.childNodes[d];h=++d&&h&&h[v]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[H,d,b];break}}else if(y&&(h=e,f=h[I]||(h[I]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[t]||[],d=l[0]===H&&l[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]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),c[t]=[H,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===D},focus:function(t){return t===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:l(!1),disabled:l(!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:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[n<0?n+e:n]}),even:c(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:c(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,l,c=U[t+" "];if(c)return n?0:c.slice(0);for(s=t,u=[],l=C.preFilter;s;){r&&!(i=ut.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=lt.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))||l[a]&&!(i=l[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},j=e.select=function(t,e,n,r){var i,o,a,s,u,l="function"==typeof t&&t,c=!r&&A(t=l.selector||t);if(n=n||[],1===c.length){if(o=c[0]=c[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;l&&(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(l||S(t,c))(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(M.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(l(this,t||[],!1))},not:function(t){return this.pushStack(l(this,t||[],!0))},is:function(t){return!!l(this,"string"==typeof t&&Tt.test(t)?mt(t):t||[],!1).length}});var jt,Et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,$t=mt.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||jt,"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)};$t.prototype=mt.fn,jt=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?lt.call(mt(t),this[0]):lt.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 c(t,"nextSibling")},prev:function(t){return c(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 Mt=/\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?[]:"")},l={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&&l.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 l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},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,l=arguments,c=function(){var o,c;if(!(t<s)){if(o=r.apply(u,l),o===e.promise())throw new TypeError("Thenable self-resolution");c=o&&("object"===("undefined"==typeof o?"undefined":n(o))||"function"==typeof o)&&o.then,mt.isFunction(c)?i?c.call(o,a(s,e,h,i),a(s,e,d,i)):(s++,c.call(o,a(s,e,h,i),a(s,e,d,i),a(s,e,h,e.notifyWith))):(r!==h&&(u=void 0,l=[o]),(i||e.resolveWith)(u,l))}},f=i?c:function(){try{c()}catch(n){mt.Deferred.exceptionHook&&mt.Deferred.exceptionHook(n,f.stackTrace),t+1>=s&&(r!==d&&(u=void 0,l=[n]),e.rejectWith(u,l))}};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 Dt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;mt.Deferred.exceptionHook=function(t,e){o.console&&o.console.warn&&t&&Dt.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,l=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),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.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:l?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(Mt)||[]),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]*\])$/,qt=/[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 Ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,zt=new RegExp("^(?:([+-])=|)("+Ht+")([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 Jt=/^(?:checkbox|radio)$/i,Zt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Gt=/^$|\/(?: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,l,c,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(Mt)||[""],l=e.length;l--;)s=ne.exec(e[l])||[],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]||{},c=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,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),mt.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,d,p,v,g=Lt.hasData(t)&&Lt.get(t);if(g&&(u=g.events)){for(e=(e||"").match(Mt)||[""],l=e.length;l--;)if(s=ne.exec(e[l])||[],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--;)c=h[o],!i&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));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[l],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),l=(Lt.get(this,"events")||{})[s.type]||[],c=mt.event.special[s.type]||{};for(u[0]=s,e=1;e<arguments.length;e++)u[e]=arguments[e];if(s.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,s)!==!1){for(a=mt.event.handlers.call(this,s,l),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 c.postDispatch&&c.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 D(this,t,!0)},remove:function(t){return D(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 M(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=j(this,t);e.appendChild(t)}})},prepend:function(){return M(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=j(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return M(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return M(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 M(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/,le=new RegExp("^("+Ht+")(?!px)[a-z%]+$","i"),ce=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&&ce(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=ce(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=q,q.prototype={constructor:q,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=q.propHooks[this.prop];return t&&t.get?t.get(this):q.propHooks._default.get(this)},run:function(t){var e,n=q.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):q.propHooks._default.set(this),this}},q.prototype.init.prototype=q.prototype,q.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)}}},q.propHooks.scrollTop=q.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=q.prototype.init,mt.fx.step={};var ge,me,ye=/^(?:toggle|show|hide)$/,be=/queueHooks$/;mt.Animation=mt.extend(J,{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(Mt);for(var n,r=0,i=t.length;r<i;r++)n=t[r],J.tweeners[n]=J.tweeners[n]||[],J.tweeners[n].unshift(e)},prefilters:[W],prefilter:function(t,e){e?J.prefilters.unshift(t):J.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=J(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(H):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(Mt);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(Mt)||[];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(Mt)||[];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(Mt)||[];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,l,c,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()),c=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(l=h.delegateType||p,Se.test(l+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?l:h.bindType||p,f=(Lt.get(s,"events")||{})[t.type]&&Lt.get(s,"handle"),f&&f.apply(s,e),f=c&&s[c],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)||c&&mt.isFunction(r[p])&&!mt.isWindow(r)&&(u=r[c],u&&(r[c]=null),mt.event.triggered=p,r[p](),mt.event.triggered=void 0,u&&(r[c]=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 je=o.location,Ee=mt.now(),$e=/\?/;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,Me=/^(?:submit|button|image|reset|file)$/i,De=/^(?: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)G(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")&&De.test(this.nodeName)&&!Me.test(t)&&(this.checked||!Jt.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)$/,qe=/^\/\//,He={},ze={},Ve="*/".concat("*"),Ue=it.createElement("a");Ue.href=je.href,mt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:je.href,type:"GET",isLocal:Re.test(je.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(He),ajaxTransport:Y(ze),ajax:function(t,e){function r(t,e,n,r){var u,c,d,p,w,_=e;f||(f=!0,l&&o.clearTimeout(l),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,c=p.data,d=p.error,u=!d)):(d=_,!t&&_||(_="error",t<0&&(t=0))),k.status=t,k.statusText=(e||_)+"",u?y.resolveWith(g,[c,_,k]):y.rejectWith(g,[k,_,d]),k.statusCode(x),x=void 0,h&&m.trigger(u?"ajaxSuccess":"ajaxError",[k,v,u?c: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,l,c,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||je.href)+"").replace(qe,je.protocol+"//"),v.type=e.method||e.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(Mt)||[""],null==v.crossDomain){c=it.createElement("a");try{c.href=v.url,c.href=c.href,v.crossDomain=Ue.protocol+"//"+Ue.host!=c.protocol+"//"+c.host}catch(T){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=mt.param(v.data,v.traditional)),Q(He,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+=($e.test(a)?"&":"?")+v.data,delete v.data),v.cache===!1&&(a=a.replace(Be,""),p=($e.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&&(l=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 Je=[],Ze=/(=)\?(?=&|$)|\?\?/;mt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Je.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+=($e.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,Je.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,l,c=mt.css(t,"position"),f=mt(t),h={};"static"===c&&(t.style.position="relative"),s=f.offset(),o=mt.css(t,"top"),u=mt.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(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),le.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 Ge=o.jQuery,Ye=o.$;return mt.noConflict=function(t){return o.$===mt&&(o.$=Ye),t&&o.jQuery===mt&&(o.jQuery=Ge),mt},a||(o.jQuery=o.$=mt),mt})}).call(e,n(85)(t))},function(t,e){"use strict";t.exports=function(){return/\u001b\[(?:[0-9]{1,3}(?:;[0-9]{1,3})*)?[m|K]/g}},function(t,e,n){"use strict";t.exports=n(10)},function(t,e,n){"use strict";var r=n(7);r.isBrowser&&(window.diff_match_patch=n(18)),t.exports=n(15)},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(12),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){function r(t){return n(i(t))}function i(t){return o[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var o={"./contexts/context":3,"./contexts/context.js":3,"./contexts/diff":4,"./contexts/diff.js":4,"./contexts/patch":5,"./contexts/patch.js":5,"./contexts/reverse":6,"./contexts/reverse.js":6,"./date-reviver":13,"./date-reviver.js":13,"./diffpatcher":19,"./diffpatcher.js":19,"./environment":7,"./environment.js":7,"./filters/arrays":20,"./filters/arrays.js":20,"./filters/dates":21,"./filters/dates.js":21,"./filters/lcs":22,"./filters/lcs.js":22,"./filters/nested":23,"./filters/nested.js":23,"./filters/texts":24,"./filters/texts.js":24,"./filters/trivial":25,"./filters/trivial.js":25,"./formatters/annotated":8,"./formatters/annotated.js":8,"./formatters/base":1,"./formatters/base.js":1,"./formatters/console":14,"./formatters/console.js":14,"./formatters/html":9,"./formatters/html.js":9,"./formatters/index":10,"./formatters/index.js":10,"./formatters/jsonpatch":11,"./formatters/jsonpatch.js":11,"./main":15,"./main-formatters":34,"./main-formatters.js":34,"./main-full":35,"./main-full.js":35,"./main.js":15,"./pipe":16,"./pipe.js":16,"./processor":26,"./processor.js":26};r.keys=function(){return Object.keys(o)},r.resolve=i,t.exports=r,r.id=37},function(t,e,n){var r,i;n(106),r=n(42);var o=n(102);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-4",t.exports=r||i},function(t,e,n){var r,i;r=n(47);var o=n(100);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){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],l={css:a,media:s,sourceMap:u};n[o]?n[o].parts.push(l):e.push(n[o]={id:o,parts:[l]})}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=l.bind(null,n,o,!1),i=l.bind(null,n,o,!0)}else n=s(e),r=c.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 l(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 c(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 l=i(t);r(l,e)}for(var a=0;a<o.length;a++){var u=o[a];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();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){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(88),o=r(i),a=n(27),s=r(a),u=n(39),l=r(u);e["default"]={el:"#drawing-zone",MODE_RECT:"RECT",MODE_FREE:"FREE",ZOOM_IN:"in",ZOOM_OUT:"out",components:{typeahead:s["default"],zoomview:l["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.showForm()},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=!1,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}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var o,a=n(98),s=r(a);e["default"]=(o={components:{modalpanel:s["default"]},mounted:function(){},props:["transform-matrix","image-path","image-height","image-width"],data:function(){return{diffText:"",tagMode:!1,textMode:!1,fragmentMode:!1,originalPath:"",modifiedPath:"",tags:[]}}},i(o,"mounted",function(){return!1}),i(o,"computed",{matrixTransform:function u(){var u="";return this.transformMatrix&&(u="matrix("+this.transformMatrix+")"),u}}),i(o,"methods",{setContent:function(t){this.$refs.modalcontent.appendChild(t)},switchMode:function(t){var e=["tagMode","textMode","fragmentMode"];this.tagMode=!1,this.textMode=!1,this.fragmentMode=!1,e.indexOf(t)!==-1&&(this[t]=!0)},showTagDiff:function(t,e){this.switchMode("tagMode");var n=iconolab.JsonDiff.diff(t,e),r=[];if(t.forEach(function(t,i){var t=JSON.parse(JSON.stringify(t)),o=n["_"+i],a=n[i];return o||a||r.push(t),Array.isArray(o)?(t.action="del",r.push(t),!0):a&&(a.tag_label||a.relevancy||a.accuracy)?(t.action=a.tag_label?"replace":"update",t.new_label=e[i].tag_label,t.new_accuracy=e[i].accuracy,t.new_relevancy=e[i].relevancy,r.push(t),!0):Array.isArray(a)?(t.action="add",r.push(e[i]),!0):void 0}),t.length<e.length){var i=e.slice(t.length);i.forEach(function(t,e){t.action="add",r.push(t)})}this.tags=r},showTextDiff:function(t,e){this.switchMode("textMode");for(var n=iconolab.JsDiff.diffWords(t,e),r=document.createDocumentFragment(),i=0;i<n.length;i++){if(n[i].added&&n[i+1]&&n[i+1].removed){var o=n[i];n[i]=n[i+1],n[i+1]=o}var a;n[i].removed?(a=document.createElement("del"),a.appendChild(document.createTextNode(n[i].value))):n[i].added?(a=document.createElement("ins"),a.appendChild(document.createTextNode(n[i].value))):a=document.createTextNode(n[i].value),r.appendChild(a)}this.diffText=jQuery("<div>").append(r).html()},showFragmentDiff:function(t,e){this.switchMode("fragmentMode"),this.originalPath=t,this.modifiedPath=e},show:function(){this.$refs.panel.show()},hide:function(){this.$refs.panel.hide()}}),o)},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(27),o=r(i),a=n(38),s=r(a);e["default"]={data:function(){return{}},components:{Typeahead:o["default"],diffviewer:s["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 l=this.$refs["fragment-field"];l.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)},showDiffviewer:function(t,e,n){var r=document.getElementById(e),i=this.$refs[this.targetKeyMap[n]],o=this.targetFieldTypeMap[n],a=this.$refs[t];if(!a)throw new Error("The DiffViewer can't be found for "+n);if("input"===o&&a.showTextDiff(r.value,i.value),"tag"===n){var s=this.$refs[e],u=this.$refs["proposal-tags"];0!==s.tags.length&&0!==u.tags.length&&a.showTagDiff(s.tags,u.tags)}if("frag"===n){var l=i.getAttribute("d"),c=r.getAttribute("d");a.showFragmentDiff(l,c)}a.show()},hightlightSource:function(t){t.className+="highlight"},save:function(){alert("this is it ... ")}}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={props:["close-with-escape"],data:function(){return{display:!1}},methods:{close:function(){this.display=!1},show:function(){this.display=!0}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);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(82),o=r(i),a=n(99),s=r(a),u="http://lookup.dbpedia.org/api/search/PrefixSearch?MaxHits=5",l="http://fr.wikipedia.org/w/api.php",c={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=l;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,c.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(12),o=n(36),a=r(o),s=n(31),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,l=o+n;u+r.w>=a&&(u=a-r.w),l+r.h>=s&&(l=s-r.h),u=u<0?0:u,l=l<0?0:l;var c="T"+[u,l];this.attr("transform",c),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,n){"use strict";var r,i=n(60),o=n(67),a=n(63),s=n(70);r=t.exports=function(t,e){var n,r,a,u,l;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")),l={value:e,configurable:n,enumerable:r,writable:a},u?i(o(u),l):l},r.gs=function(t,e,n){var r,u,l,c;return"string"!=typeof t?(l=n,n=e,e=t,t=null):l=arguments[3],null==e?e=void 0:a(e)?null==n?n=void 0:a(n)||(l=n,n=void 0):(l=e,e=n=void 0),null==t?(r=!0,u=!1):(r=s.call(t,"c"),u=s.call(t,"e")),c={get:e,set:n,configurable:r,enumerable:u},l?i(o(l),c):c}},function(t,e){"use strict";function n(t){for(var e=[],n=void 0,r=void 0,i=0;i<t.length;i++)n=t[i],r=n.added?1:n.removed?-1:0,e.push([r,n.value]);return e}e.__esModule=!0,e.convertChangesToDMP=n},function(t,e){"use strict";function n(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];i.added?e.push("<ins>"):i.removed&&e.push("<del>"),e.push(r(i.value)),i.added?e.push("</ins>"):i.removed&&e.push("</del>")}return e.join("")}function r(t){var e=t;return e=e.replace(/&/g,"&"),e=e.replace(/</g,"<"),e=e.replace(/>/g,">"),e=e.replace(/"/g,""")}e.__esModule=!0,e.convertChangesToXML=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e,n){return s.diff(t,e,n)}e.__esModule=!0,e.characterDiff=void 0,e.diffChars=i;var o=n(2),a=r(o),s=e.characterDiff=new a["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e,n){return s.diff(t,e,n)}e.__esModule=!0,e.cssDiff=void 0,e.diffCss=i;var o=n(2),a=r(o),s=e.cssDiff=new a["default"];s.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e,n){return h.diff(t,e,n)}function o(t,e,n){e=e||[],n=n||[];var r=void 0;for(r=0;r<e.length;r+=1)if(e[r]===t)return n[r];var i=void 0;if("[object Array]"===f.call(t)){for(e.push(t),i=new Array(t.length),n.push(i),r=0;r<t.length;r+=1)i[r]=o(t[r],e,n);return e.pop(),n.pop(),i}if(t&&t.toJSON&&(t=t.toJSON()),"object"===("undefined"==typeof t?"undefined":s(t))&&null!==t){e.push(t),i={},n.push(i);var a=[],u=void 0;for(u in t)t.hasOwnProperty(u)&&a.push(u);for(a.sort(),r=0;r<a.length;r+=1)u=a[r],i[u]=o(t[u],e,n);e.pop(),n.pop()}else i=t;return i}var 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};e.__esModule=!0,e.jsonDiff=void 0;var s="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(t){return"undefined"==typeof t?"undefined":a(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":"undefined"==typeof t?"undefined":a(t)};e.diffJson=i,e.canonicalize=o;var u=n(2),l=r(u),c=n(17),f=Object.prototype.toString,h=e.jsonDiff=new l["default"];h.useLongestToken=!0,h.tokenize=c.lineDiff.tokenize,h.castInput=function(t){return"string"==typeof t?t:JSON.stringify(o(t),void 0," ")},h.equals=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 Je=[],Ze=/(=)\?(?=&|$)|\?\?/;mt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Je.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+=($e.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,Je.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,l,c=mt.css(t,"position"),f=mt(t),h={};"static"===c&&(t.style.position="relative"),s=f.offset(),o=mt.css(t,"top"),u=mt.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(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),le.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 Ge=o.jQuery,Ye=o.$;return mt.noConflict=function(t){return o.$===mt&&(o.$=Ye),t&&o.jQuery===mt&&(o.jQuery=Ge),mt},a||(o.jQuery=o.$=mt),mt})}).call(e,n(85)(t))},function(t,e){"use strict";t.exports=function(){return/\u001b\[(?:[0-9]{1,3}(?:;[0-9]{1,3})*)?[m|K]/g}},function(t,e,n){"use strict";t.exports=n(10)},function(t,e,n){"use strict";var r=n(7);r.isBrowser&&(window.diff_match_patch=n(18)),t.exports=n(15)},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(12),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){function r(t){return n(i(t))}function i(t){return o[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var o={"./contexts/context":3,"./contexts/context.js":3,"./contexts/diff":4,"./contexts/diff.js":4,"./contexts/patch":5,"./contexts/patch.js":5,"./contexts/reverse":6,"./contexts/reverse.js":6,"./date-reviver":13,"./date-reviver.js":13,"./diffpatcher":19,"./diffpatcher.js":19,"./environment":7,"./environment.js":7,"./filters/arrays":20,"./filters/arrays.js":20,"./filters/dates":21,"./filters/dates.js":21,"./filters/lcs":22,"./filters/lcs.js":22,"./filters/nested":23,"./filters/nested.js":23,"./filters/texts":24,"./filters/texts.js":24,"./filters/trivial":25,"./filters/trivial.js":25,"./formatters/annotated":8,"./formatters/annotated.js":8,"./formatters/base":1,"./formatters/base.js":1,"./formatters/console":14,"./formatters/console.js":14,"./formatters/html":9,"./formatters/html.js":9,"./formatters/index":10,"./formatters/index.js":10,"./formatters/jsonpatch":11,"./formatters/jsonpatch.js":11,"./main":15,"./main-formatters":34,"./main-formatters.js":34,"./main-full":35,"./main-full.js":35,"./main.js":15,"./pipe":16,"./pipe.js":16,"./processor":26,"./processor.js":26};r.keys=function(){return Object.keys(o)},r.resolve=i,t.exports=r,r.id=37},function(t,e,n){var r,i;n(106),r=n(42);var o=n(102);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-4",t.exports=r||i},function(t,e,n){var r,i;r=n(47);var o=n(101);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){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],l={css:a,media:s,sourceMap:u};n[o]?n[o].parts.push(l):e.push(n[o]={id:o,parts:[l]})}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=l.bind(null,n,o,!1),i=l.bind(null,n,o,!0)}else n=s(e),r=c.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 l(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 c(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 l=i(t);r(l,e)}for(var a=0;a<o.length;a++){var u=o[a];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();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){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(88),o=r(i),a=n(27),s=r(a),u=n(39),l=r(u);e["default"]={el:"#drawing-zone",MODE_RECT:"RECT",MODE_FREE:"FREE",ZOOM_IN:"in",ZOOM_OUT:"out",components:{typeahead:s["default"],zoomview:l["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.showForm()},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=!1,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}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var o,a=n(98),s=r(a);e["default"]=(o={components:{modalpanel:s["default"]},mounted:function(){},props:["transform-matrix","image-path","image-height","image-width"],data:function(){return{diffText:"",tagMode:!1,textMode:!1,fragmentMode:!1,originalPath:"",modifiedPath:"",tags:[]}}},i(o,"mounted",function(){return!1}),i(o,"computed",{matrixTransform:function u(){var u="";return this.transformMatrix&&(u="matrix("+this.transformMatrix+")"),u}}),i(o,"methods",{setContent:function(t){this.$refs.modalcontent.appendChild(t)},switchMode:function(t){var e=["tagMode","textMode","fragmentMode"];this.tagMode=!1,this.textMode=!1,this.fragmentMode=!1,e.indexOf(t)!==-1&&(this[t]=!0)},showTagDiff:function(t,e){this.switchMode("tagMode");var n=iconolab.JsonDiff.diff(t,e),r=[];if(t.forEach(function(t,i){var t=JSON.parse(JSON.stringify(t)),o=n["_"+i],a=n[i];return o||a||r.push(t),Array.isArray(o)?(t.action="del",r.push(t),!0):a&&(a.tag_label||a.relevancy||a.accuracy)?(t.action=a.tag_label?"replace":"update",t.new_label=e[i].tag_label,t.new_accuracy=e[i].accuracy,t.new_relevancy=e[i].relevancy,r.push(t),!0):Array.isArray(a)?(t.action="add",r.push(e[i]),!0):void 0}),t.length<e.length){var i=e.slice(t.length);i.forEach(function(t,e){t.action="add",r.push(t)})}this.tags=r},showTextDiff:function(t,e){this.switchMode("textMode");for(var n=iconolab.JsDiff.diffWords(t,e),r=document.createDocumentFragment(),i=0;i<n.length;i++){if(n[i].added&&n[i+1]&&n[i+1].removed){var o=n[i];n[i]=n[i+1],n[i+1]=o}var a;n[i].removed?(a=document.createElement("del"),a.appendChild(document.createTextNode(n[i].value))):n[i].added?(a=document.createElement("ins"),a.appendChild(document.createTextNode(n[i].value))):a=document.createTextNode(n[i].value),r.appendChild(a)}this.diffText=jQuery("<div>").append(r).html()},showFragmentDiff:function(t,e){this.switchMode("fragmentMode"),this.originalPath=t,this.modifiedPath=e},show:function(){this.$refs.panel.show()},hide:function(){this.$refs.panel.hide()}}),o)},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(27),o=r(i),a=n(38),s=r(a);e["default"]={data:function(){return{}},components:{Typeahead:o["default"],diffviewer:s["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 l=this.$refs["fragment-field"];l.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)},showDiffviewer:function(t,e,n){var r=document.getElementById(e),i=this.$refs[this.targetKeyMap[n]],o=this.targetFieldTypeMap[n],a=this.$refs[t];if(!a)throw new Error("The DiffViewer can't be found for "+n);if("input"===o&&a.showTextDiff(r.value,i.value),"tag"===n){var s=this.$refs[e],u=this.$refs["proposal-tags"];0!==s.tags.length&&0!==u.tags.length&&a.showTagDiff(s.tags,u.tags)}if("frag"===n){var l=i.getAttribute("d"),c=r.getAttribute("d");a.showFragmentDiff(l,c)}a.show()},hightlightSource:function(t){t.className+="highlight"},save:function(){alert("this is it ... ")}}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={props:["close-with-escape"],data:function(){return{display:!1}},methods:{close:function(){this.display=!1},show:function(){this.display=!0}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);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(82),o=r(i),a=n(99),s=r(a),u="http://lookup.dbpedia.org/api/search/PrefixSearch?MaxHits=5",l="http://fr.wikipedia.org/w/api.php",c={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=l;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,c.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(12),o=n(36),a=r(o),s=n(31),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,l=o+n;u+r.w>=a&&(u=a-r.w),l+r.h>=s&&(l=s-r.h),u=u<0?0:u,l=l<0?0:l;var c="T"+[u,l];this.attr("transform",c),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,n){"use strict";var r,i=n(60),o=n(67),a=n(63),s=n(70);r=t.exports=function(t,e){var n,r,a,u,l;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")),l={value:e,configurable:n,enumerable:r,writable:a},u?i(o(u),l):l},r.gs=function(t,e,n){var r,u,l,c;return"string"!=typeof t?(l=n,n=e,e=t,t=null):l=arguments[3],null==e?e=void 0:a(e)?null==n?n=void 0:a(n)||(l=n,n=void 0):(l=e,e=n=void 0),null==t?(r=!0,u=!1):(r=s.call(t,"c"),u=s.call(t,"e")),c={get:e,set:n,configurable:r,enumerable:u},l?i(o(l),c):c}},function(t,e){"use strict";function n(t){for(var e=[],n=void 0,r=void 0,i=0;i<t.length;i++)n=t[i],r=n.added?1:n.removed?-1:0,e.push([r,n.value]);return e}e.__esModule=!0,e.convertChangesToDMP=n},function(t,e){"use strict";function n(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];i.added?e.push("<ins>"):i.removed&&e.push("<del>"),e.push(r(i.value)),i.added?e.push("</ins>"):i.removed&&e.push("</del>")}return e.join("")}function r(t){var e=t;return e=e.replace(/&/g,"&"),e=e.replace(/</g,"<"),e=e.replace(/>/g,">"),e=e.replace(/"/g,""")}e.__esModule=!0,e.convertChangesToXML=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e,n){return s.diff(t,e,n)}e.__esModule=!0,e.characterDiff=void 0,e.diffChars=i;var o=n(2),a=r(o),s=e.characterDiff=new a["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e,n){return s.diff(t,e,n)}e.__esModule=!0,e.cssDiff=void 0,e.diffCss=i;var o=n(2),a=r(o),s=e.cssDiff=new a["default"];s.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e,n){return h.diff(t,e,n)}function o(t,e,n){e=e||[],n=n||[];var r=void 0;for(r=0;r<e.length;r+=1)if(e[r]===t)return n[r];var i=void 0;if("[object Array]"===f.call(t)){for(e.push(t),i=new Array(t.length),n.push(i),r=0;r<t.length;r+=1)i[r]=o(t[r],e,n);return e.pop(),n.pop(),i}if(t&&t.toJSON&&(t=t.toJSON()),"object"===("undefined"==typeof t?"undefined":s(t))&&null!==t){e.push(t),i={},n.push(i);var a=[],u=void 0;for(u in t)t.hasOwnProperty(u)&&a.push(u);for(a.sort(),r=0;r<a.length;r+=1)u=a[r],i[u]=o(t[u],e,n);e.pop(),n.pop()}else i=t;return i}var 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};e.__esModule=!0,e.jsonDiff=void 0;var s="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(t){return"undefined"==typeof t?"undefined":a(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":"undefined"==typeof t?"undefined":a(t)};e.diffJson=i,e.canonicalize=o;var u=n(2),l=r(u),c=n(17),f=Object.prototype.toString,h=e.jsonDiff=new l["default"];h.useLongestToken=!0,h.tokenize=c.lineDiff.tokenize,h.castInput=function(t){return"string"==typeof t?t:JSON.stringify(o(t),void 0," ")},h.equals=function(t,e){
return l["default"].prototype.equals(t.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e,n){return s.diff(t,e,n)}e.__esModule=!0,e.sentenceDiff=void 0,e.diffSentences=i;var o=n(2),a=r(o),s=e.sentenceDiff=new a["default"];s.tokenize=function(t){return t.split(/(\S.+?[.!?])(?=\s+|$)/)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e,n){var r=(0,u.generateOptions)(n,{ignoreWhitespace:!0});return f.diff(t,e,r)}function o(t,e,n){return f.diff(t,e,n)}e.__esModule=!0,e.wordDiff=void 0,e.diffWords=i,e.diffWordsWithSpace=o;var a=n(2),s=r(a),u=n(30),l=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,c=/\S/,f=e.wordDiff=new s["default"];f.equals=function(t,e){return t===e||this.options.ignoreWhitespace&&!c.test(t)&&!c.test(e)},f.tokenize=function(t){for(var e=t.split(/(\s+|\b)/),n=0;n<e.length-1;n++)!e[n+1]&&e[n+2]&&l.test(e[n])&&l.test(e[n+2])&&(e[n]+=e[n+2],e.splice(n+1,2),n--);return e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.canonicalize=e.convertChangesToXML=e.convertChangesToDMP=e.parsePatch=e.applyPatches=e.applyPatch=e.createPatch=e.createTwoFilesPatch=e.structuredPatch=e.diffJson=e.diffCss=e.diffSentences=e.diffTrimmedLines=e.diffLines=e.diffWordsWithSpace=e.diffWords=e.diffChars=e.Diff=void 0;var i=n(2),o=r(i),a=n(51),s=n(55),u=n(17),l=n(54),c=n(52),f=n(53),h=n(57),d=n(29),p=n(58),v=n(49),g=n(50);e.Diff=o["default"],e.diffChars=a.diffChars,e.diffWords=s.diffWords,e.diffWordsWithSpace=s.diffWordsWithSpace,e.diffLines=u.diffLines,e.diffTrimmedLines=u.diffTrimmedLines,e.diffSentences=l.diffSentences,e.diffCss=c.diffCss,e.diffJson=f.diffJson,e.structuredPatch=p.structuredPatch,e.createTwoFilesPatch=p.createTwoFilesPatch,e.createPatch=p.createPatch,e.applyPatch=h.applyPatch,e.applyPatches=h.applyPatches,e.parsePatch=d.parsePatch,e.convertChangesToDMP=v.convertChangesToDMP,e.convertChangesToXML=g.convertChangesToXML,e.canonicalize=f.canonicalize},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){function n(t,e){for(var n=0;n<t.lines.length;n++){var r=t.lines[n],o=r[0],a=r.substr(1);if(" "===o||"-"===o){if(!s(e+1,i[e],o,a)&&(l++,l>c))return!1;e++}}return!0}var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if("string"==typeof e&&(e=(0,a.parsePatch)(e)),Array.isArray(e)){if(e.length>1)throw new Error("applyPatch only works with a single input.");e=e[0]}for(var i=t.split("\n"),o=e.hunks,s=r.compareLine||function(t,e,n,r){return e===r},l=0,c=r.fuzzFactor||0,f=0,h=0,d=void 0,p=void 0,v=0;v<o.length;v++){for(var g=o[v],m=i.length-g.oldLines,y=0,b=h+g.oldStart-1,x=(0,u["default"])(b,f,m);void 0!==y;y=x())if(n(g,b+y)){g.offset=h+=y;break}if(void 0===y)return!1;f=g.offset+g.oldStart+g.oldLines}for(var w=0;w<o.length;w++){var _=o[w],C=_.offset+_.newStart-1;0==_.newLines&&C++;for(var k=0;k<_.lines.length;k++){var T=_.lines[k],A=T[0],S=T.substr(1);if(" "===A)C++;else if("-"===A)i.splice(C,1);else if("+"===A)i.splice(C,0,S),C++;else if("\\"===A){var j=_.lines[k-1]?_.lines[k-1][0]:null;"+"===j?d=!0:"-"===j&&(p=!0)}}}if(d)for(;!i[i.length-1];)i.pop();else p&&i.push("");return i.join("\n")}function o(t,e){function n(){var o=t[r++];return o?void e.loadFile(o,function(t,r){if(t)return e.complete(t);var a=i(r,o,e);e.patched(o,a,function(t){return t?e.complete(t):void n()})}):e.complete()}"string"==typeof t&&(t=(0,a.parsePatch)(t));var r=0;n()}e.__esModule=!0,e.applyPatch=i,e.applyPatches=o;var a=n(29),s=n(59),u=r(s)},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e,n,i,o,a,u){function l(t){return t.map(function(t){return" "+t})}u||(u={context:4});var c=(0,s.diffLines)(n,i);c.push({value:"",lines:[]});for(var f=[],h=0,d=0,p=[],v=1,g=1,m=function(t){var e=c[t],o=e.lines||e.value.replace(/\n$/,"").split("\n");if(e.lines=o,e.added||e.removed){var a;if(!h){var s=c[t-1];h=v,d=g,s&&(p=u.context>0?l(s.lines.slice(-u.context)):[],h-=p.length,d-=p.length)}(a=p).push.apply(a,r(o.map(function(t){return(e.added?"+":"-")+t}))),e.added?g+=o.length:v+=o.length}else{if(h)if(o.length<=2*u.context&&t<c.length-2){var m;(m=p).push.apply(m,r(l(o)))}else{var y,b=Math.min(o.length,u.context);(y=p).push.apply(y,r(l(o.slice(0,b))));var x={oldStart:h,oldLines:v-h+b,newStart:d,newLines:g-d+b,lines:p};if(t>=c.length-2&&o.length<=u.context){var w=/\n$/.test(n),_=/\n$/.test(i);0!=o.length||w?w&&_||p.push("\\ No newline at end of file"):p.splice(x.oldLines,0,"\\ No newline at end of file")}f.push(x),h=0,d=0,p=[]}v+=o.length,g+=o.length}},y=0;y<c.length;y++)m(y);return{oldFileName:t,newFileName:e,oldHeader:o,newHeader:a,hunks:f}}function o(t,e,n,r,o,a,s){var u=i(t,e,n,r,o,a,s),l=[];t==e&&l.push("Index: "+t),l.push("==================================================================="),l.push("--- "+u.oldFileName+("undefined"==typeof u.oldHeader?"":"\t"+u.oldHeader)),l.push("+++ "+u.newFileName+("undefined"==typeof u.newHeader?"":"\t"+u.newHeader));for(var c=0;c<u.hunks.length;c++){var f=u.hunks[c];l.push("@@ -"+f.oldStart+","+f.oldLines+" +"+f.newStart+","+f.newLines+" @@"),l.push.apply(l,f.lines)}return l.join("\n")+"\n"}function a(t,e,n,r,i,a){return o(t,t,e,n,r,i,a)}e.__esModule=!0,e.structuredPatch=i,e.createTwoFilesPatch=o,e.createPatch=a;var s=n(17)},function(t,e){"use strict";e.__esModule=!0,e["default"]=function(t,e,n){var r=!0,i=!1,o=!1,a=1;return function s(){if(r&&!o){if(i?a++:r=!1,t+a<=n)return a;o=!0}if(!i)return o||(r=!0),e<=t-a?-a++:(i=!0,s())}}},function(t,e,n){"use strict";t.exports=n(61)()?Object.assign:n(62)},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(64),i=n(69),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(65)()?Object.keys:n(66)},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(71)()?String.prototype.contains:n(72)},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){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(n,"\\$&")}},function(t,e,n){"use strict";var r,i,o,a,s,u,l,c="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(48),h=n(68),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"===c(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":c(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":c(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)},l=m({},u),t.exports=e=function(t){return null==t?v(l):m(Object(t),u)},e.methods=s},function(t,e){"use strict";var n=t.exports,r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]};Object.keys(r).forEach(function(t){var e=r[t],i=n[t]={};i.open="["+e[0]+"m",i.close="["+e[1]+"m"})},function(t,e,n){"use strict";function r(t){var e=function n(){return i.apply(n,arguments)};return e._styles=t,e.__proto__=p,e}function i(){var t=arguments,e=t.length,n=0!==e&&String(arguments[0]);if(e>1)for(var r=1;r<e;r++)n+=" "+t[r];if(!h.enabled||!n)return n;for(var i=this._styles,o=0;o<i.length;o++){var a=s[i[o]];n=a.open+n.replace(a.closeRe,a.open)+a.close}return n}function o(){var t={};return Object.keys(d).forEach(function(e){t[e]={get:function(){return r([e])}}}),t}var a=n(73),s=n(75),u=n(78),l=n(77),c=n(79),f=Object.defineProperties,h=t.exports,d=function(){var t={};return s.grey=s.gray,Object.keys(s).forEach(function(e){s[e].closeRe=new RegExp(a(s[e].close),"g"),t[e]={get:function(){return r(this._styles.concat(e))}}}),t}(),p=f(function(){},d);f(h,o()),h.styles=s,h.hasColor=l,h.stripColor=u,h.supportsColor=c,void 0===h.enabled&&(h.enabled=h.supportsColor)},function(t,e,n){"use strict";var r=n(33),i=new RegExp(r().source);t.exports=i.test.bind(i)},function(t,e,n){"use strict";var r=n(33)();t.exports=function(t){return"string"==typeof t?t.replace(r,""):t}},function(t,e,n){(function(e){"use strict";t.exports=function(){return e.argv.indexOf("--no-color")===-1&&(e.argv.indexOf("--color")!==-1||!(e.stdout&&!e.stdout.isTTY)&&("win32"===e.platform||("COLORTERM"in{NODE_ENV:"production"}||"dumb"!=={NODE_ENV:"production"}.TERM&&!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test({NODE_ENV:"production"}.TERM))))}()}).call(e,n(80))},function(t,e){"use strict";function n(){f&&l&&(f=!1,l.length?c=l.concat(c):h=-1,c.length&&r())}function r(){if(!f){var t=a(n);f=!0;for(var e=c.length;e;){for(l=c,c=[];++h<e;)l&&l[h].run();h=-1,e=c.length}l=null,f=!1,s(t)}}function i(t,e){this.fun=t,this.array=e}function o(){}var a,s,u=t.exports={};!function(){try{a=setTimeout}catch(t){a=function(){throw new Error("setTimeout is not defined")}}try{s=clearTimeout}catch(t){s=function(){throw new Error("clearTimeout is not defined")}}}();var l,c=[],f=!1,h=-1;u.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new i(t,e)),1!==c.length||f||a(r,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=o,u.addListener=o,u.once=o,u.off=o,u.removeListener=o,u.removeAllListeners=o,u.emit=o,u.binding=function(t){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(t){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},function(t,e){/*!
* vue-resource v0.9.1
* https://github.com/vuejs/vue-resource
@@ -47,5 +47,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 l(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 c(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&&qr.push(Ir.target),Ir.target=t}function w(){Ir.target=qr.pop()}function _(){Hr.length=0,zr.length=0,Vr={},Ur={},Wr=!1}function C(){return T(Hr.sort(k)),T(zr),Hr.length?C():(jr&&kr.devtools&&jr.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:Hr;Vr[e]=!0,n.push(t),Wr||(Wr=!0,Dr(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 j(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 $(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=$(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=$(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 M(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 D(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]);$(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):l(r.get,t):v,ei.set=r.set?l(r.set,t):v),Object.defineProperty(t,n,ei)}}function L(t,e){var n=new Jr(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]=l(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++)q(t,n,r[i]);else q(t,n,r)}}function q(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 H(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 Jr(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,l=void 0;for(i in t)if(o=t[i],a=e[i])if(Array.isArray(a)){a.length=o.length;for(var c=0;c<a.length;c++)a[c]=o[c];t[i]=a}else a.fn=o,t[i]=a;else l="!"===i.charAt(0),u=l?i.slice(1):i,Array.isArray(o)?n(u,o.invoker=X(o),l):(s=o,o=t[i]={},o.fn=s,n(u,o.invoker=J(o),l));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 J(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 G(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 Jr(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 l=t.options.name||a,c=new ni("vue-component-"+t.cid+(l?"-"+l:""),e,(void 0),(void 0),(void 0),(void 0),r,i,{Ctor:t,propsData:s,listeners:u,parent:n,tag:a,children:o});return c}}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 lt(t,e,n){return e&&(Array.isArray(e)||"object"!==("undefined"==typeof e?"undefined":a(e)))&&(n=e,e=void 0),ct.call(this,t,e,n)}function ct(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=l(lt,t),t.$options.el&&t.$mount(t.$options.el)}function ht(n){n.prototype.$nextTick=function(t){Dr(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=lt,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 l=r[o]||(r[o]=[]);"template"===a.tag?l.push.apply(l,a.children):l.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=l(t.$on,t),r=l(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?c(n):n;for(var r=c(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"),D(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=ci[r]||fi;l[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 l={},c=void 0;for(c in t)r(c);for(c in e)i(t,c)||r(c);return l}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,$(a),Kr.shouldConvert=!1),jt(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 jt(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 l=Et(n,o[u]);s.push(l.expectedType),a=l.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 c=t.validator;c&&(c(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 $t(t){t.use=function(t){if(!t.installed){var e=c(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 Mt(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 Dt(t){var e=t&&t.componentOptions;return e&&e.Ctor.options._abstract?Dt(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"]=M,t.nextTick=Dr,t.options=Object.create(null),kr._assetTypes.forEach(function(e){t.options[e+"s"]=Object.create(null)}),f(t.options.components,pi),$t(t),Ot(t),Nt(t),Mt(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 qt(t){return Si(t)?"svg":"math"===t?"math":void 0}function Ht(t){if(!Sr)return!0;if(t=t.toLowerCase(),null!=ji[t])return ji[t];var e=document.createElement(t);return t.indexOf("-")>-1?ji[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ji[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 Jt(t,e){t.removeChild(e)}function Zt(t,e){t.appendChild(e)}function Gt(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 l=t.children,c=t.tag;if(re(c)){if(r=t.elm=t.ns?_.createElementNS(t.ns,c):_.createElement(c),u(t),Array.isArray(l))for(n=0;n<l.length;++n)_.appendChild(r,o(l[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 l(t,e,n,r,i,a){for(;r<=i;++r)_.insertBefore(t,o(n[r],a),e)}function c(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&&c(e._vnode),re(e=t.children))for(n=0;n<t.children.length;++n)c(t.children[n])}function f(t,e,n,r){for(;n<=r;++n){var i=e[n];re(i)&&(re(i.tag)?(c(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],c=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(c)?c=e[--s]:ie(u,d)?(p(u,d,r),u=e[++i],d=n[++a]):ie(c,v)?(p(c,v,r),c=e[--s],v=n[--h]):ie(u,v)?(p(u,v,r),_.insertBefore(t,u.elm,_.nextSibling(c.elm)),u=e[++i],v=n[--h]):ie(c,d)?(p(c,d,r),_.insertBefore(t,c.elm,u.elm),c=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,l(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||Di,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,""),l(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 l=g(s[u],o[u],n);if(!l)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)&&c(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),l=u&&u[n];if(l){if(o&&i){var c=s.oldValue=i[a].value;if(c===s.value)continue}l(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 le(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&&ce(o,n,r);for(n in a)null==s[n]&&(bi(n)?o.removeAttributeNS(yi,xi(n)):gi(n)||o.removeAttribute(n))}}function ce(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,l=i.appearClass,c=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?l:s,w=b?c: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,j=e._enterCb=Ee(function(){A&&ke(e,w),j.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),j.cancelled||S||Te(e,j)})),C&&C(e,n,j),A||S||j()}}}function be(t,e){function n(){c&&c(r,i),v&&(Ce(r,u),Ce(r,l),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,l=a.leaveActiveClass,c=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,l),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,l),e()},l=function(){++s>=o&&u()};setTimeout(function(){s<o&&u()},i+1),t.addEventListener(a,l)}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),l=u>0?a>s?Zi:Gi:null,c=l?l===Zi?r.length:o.length:0;return{type:l,timeout:u,propCount:c}}function Se(t,e){return Math.max.apply(null,e.map(function(e,n){return je(e)+je(t[n])}))}function je(t){return 1e3*Number(t.slice(0,-1))}function Ee(t){var e=!1;return function(){e||(e=!0,t())}}function $e(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(Me(o))>-1;else if(Me(o)===e){t.selectedIndex=r;break}}}function Ne(t,e){for(var n=0,r=e.length;n<r;n++)if(Me(e[n])===t)return!1;return!0}function Me(t){return"_value"in t?t._value:t.value||t.text}function De(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*("+qe(t)+")\\s*(?:"+yo.join("|")+"))?";return new RegExp("^\\s*"+e)}function qe(t){return mo.map(function(t){return"(?:"+t.source+")"}).join("|")}function He(t,e){function n(e){c+=e,t=t.substring(e)}function r(){var e=t.match(wo);if(e){var r={tagName:e[1],attrs:[],start:c};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=c,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=l(n)||"html"===n&&"head"===h||!!r,s=t.attrs.length,c=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]),c[f]={name:d[1],value:Re(d[3]||d[4]||d[5]||"")}}i||(a.push({tag:n,attrs:c}),h=n,r=""),e.start&&e.start(n,c,i,t.start,t.end)}function o(t,n,r,i){var o=void 0;if(null==r&&(r=c),null==i&&(i=c),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,l=e.isUnaryTag||Cr,c=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),""});c+=t.length-a.length,t=a,o("</"+n+">",n,c-i,c)}();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=c;n(m[0].length),o(m[0],m[1],y,c);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,c).trim()),s=c+1}var n=!1,r=!1,i=0,o=0,a=0,s=0,u=void 0,l=void 0,c=void 0,f=void 0,h=void 0;for(c=0;c<t.length;c++)if(l=u,u=t.charCodeAt(c),n)39===u&&92!==l&&(n=!n);else if(r)34===u&&92!==l&&(r=!r);else if(124!==u||124===t.charCodeAt(c+1)||124===t.charCodeAt(c-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=c+1,f=t.slice(0,c).trim()):e();if(void 0===f?f=t.slice(0,c).trim():0!==s&&e(),h)for(c=0;c<h.length;c++)f=Ve(f,h[c]);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?$o(e):jo;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 Je(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 Ge(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,qo=e.getTagNamespace||Cr,Ho=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 He(t,{expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,start:function(r,u,l){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 c=o&&o.ns||qo(r);e.isIE&&"svg"===c&&(u=bn(u));var f={type:1,tag:r,attrsList:u,attrsMap:gn(u),parent:o,children:[]};c&&(f.ns=c),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),ln(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"]?cn(f,o):(o.children.push(f),f.parent=o)),l||(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(Mo);i?(t.alias=i[1].trim(),t.iterator1=i[2].trim(),i[3]&&(t.iterator2=i[3].trim())):t.alias=r}}function ln(t){var e=en(t,"v-if");e&&(t["if"]=e),null!=en(t,"v-else")&&(t["else"]=!0)}function cn(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,"")),Do.test(i))i=i.replace(Do,""),Ho(i)?Je(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 l=Ue(o,Wo);l&&Io(i+'="'+o+'": Interpolation inside attributes has been deprecated. Use v-bind or the colon shorthand instead.'),Ge(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(Jo,""),e.push(r))}return e}function xn(t,e){t&&(Zo=Yo(e.staticKeys||""),Go=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)||!Go(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 jn(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?$n(t):'_h("div")';return sa=n,{render:"with(this){return "+i+"}",staticRenderFns:r}}function $n(t){if(t.staticRoot&&!t.staticProcessed)return t.staticProcessed=!0,sa.push("with(this){return "+$n(t)+"}"),"_m("+(sa.length-1)+")";if(t["for"]&&!t.forProcessed)return Mn(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=Dn(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+")?"+$n(t)+":"+Nn(t)}function Nn(t){return t.elseBlock?$n(t.elseBlock):"void 0"}function Mn(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 "+$n(t))+"})"}function Dn(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:{"+qn(t.props)+"},"),t.attrs&&(e+="attrs:{"+qn(t.attrs)+"},"),t.staticAttrs&&(e+="staticAttrs:{"+qn(t.staticAttrs)+"},"),t.hooks&&(e+="hook:{"+Hn(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?$n(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+","+Dn(t)+(e?","+e:"")+")"}function qn(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 Hn(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):Jn(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&&Jn(t.expression,t.text,e)}function Wn(t,e,n){Jn(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||ca.test(t)||r.push("- invalid "+e+' "'+t+'" in expression: '+n)}function Jn(t,e,n){try{new Function("return "+t)}catch(r){var i=t.replace(fa,"").match(la);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 Gn(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";Je(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");Je(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",l=!o&&"range"!==r,c="$event.target.value"+(s?".trim()":""),f=a||"number"===r?e+"=_n("+c+")":e+"="+c;if(l&&(f="if($event.target.composing)return;"+f),Je(t,"value","_s("+e+")"),Ke(t,u,f),l)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&&Je(t,"textContent","_s("+e.value+")")}function lr(t,e){e.value&&Je(t,"innerHTML","_s("+e.value+")")}function cr(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=cr(t,e);a.render=hr(s.render);var u=s.staticRenderFns.length;a.staticRenderFns=new Array(u);for(var l=0;l<u;l++)a.staticRenderFns[l]=hr(s.staticRenderFns[l]);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),jr=Sr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Er=Sr&&window.navigator.userAgent.toLowerCase(),$r=Er&&/(iphone|ipad|ipod|ios)/i.test(Er),Or=Er&&$r&&Er.match(/os ([\d_]+)/),Nr=Or&&Or[1].split("_"),Mr=Nr&&Number(Nr[0])>=9&&Number(Nr[1])>=3&&!window.indexedDB,Dr=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||Mr){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 qr=[],Hr=[],zr=[],Vr={},Ur={},Wr=!1,Xr=0,Jr=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,Gr=Array.prototype,Yr=Object.create(Gr);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Gr[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?j: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++)$(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 l=e&&e.hook&&e.hook.construct;l&&l(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),H(mt),vt(mt),G(mt),ht(mt);var ui=void 0,li=void 0;!function(){var t="undefined"!=typeof console;ui=function(e,n){t&&!kr.silent&&console.error("[Vue warn]: "+e+(n?li(n):""))},li=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 ci=kr.optionMergeStrategies;ci.el=ci.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)},ci.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)},ci.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){ci[t]=bt}),kr._assetTypes.forEach(function(t){ci[t+"s"]=xt}),ci.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},ci.props=ci.methods=ci.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:l,toArray:c,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:jr,UA:Er,nextTick:Dr,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=Dt(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),ji=Object.create(null),Ei=Sr&&window.navigator.userAgent.toLowerCase(),$i=Ei&&/msie|trident/.test(Ei),Oi=Ei&&Ei.indexOf("msie 9.0")>0,Ni=Ei&&Ei.indexOf("android")>0,Mi=Object.freeze({createElement:Vt,createElementNS:Ut,createTextNode:Wt,insertBefore:Xt,removeChild:Jt,appendChild:Zt,parentNode:Gt,nextSibling:Yt,tagName:Qt,setTextContent:Kt,childNodes:te,setAttribute:ee}),Di={},Pi=new ni("",Di,[]),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)ce(e.elm,r,n[r]);le(t,e)},update:le},qi={create:fe,update:fe},Hi={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},Ji=Sr&&!Oi,Zi="transition",Gi="animation",Yi="transition",Qi="transitionend",Ki="animation",to="animationend";Ji&&(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=Ji?{create:function(t,e){$e(e)||ye(e)},remove:function(t,e){$e(t)?e():be(t,e)}}:{},io=[Ii,qi,Hi,zi,Xi,ro],oo=io.concat(Ri),ao=ae({nodeOps:Mi,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",De),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")}}},lo={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"}},co={model:uo,show:lo},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=Ht,mt.config.isReservedTag=Ci,mt.config.getTagNamespace=qt,mt.config.mustUseProp=vi,f(mt.options.directives,co),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&&(jr?jr.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={},jo=/\{\{((?:.|\\n)+?)\}\}/g,Eo=/[-.*+?^${}()|[\]\/\\]/g,$o=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+(.*)/,Mo=/\(([^,]*),([^,]*)(?:,([^,]*))?\)/,Do=/^:|^v-bind:/,Po=/^@|^v-on:/,Fo=/:(.*)$/,Bo=/\.[^\.]+/g,Lo=/[a-z\d][A-Z]/,Ro=u(Re),Io=void 0,qo=void 0,Ho=void 0,zo=void 0,Vo=void 0,Uo=void 0,Wo=void 0,Xo=/^xmlns:NS\d+/,Jo=/^NS\d+:/,Zo=void 0,Go=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:jn,cloak:v},na=void 0,ra=void 0,ia=void 0,oa=void 0,aa=void 0,sa=void 0,ua=void 0,la=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"),ca=/[A-Za-z_$][\w$]*/,fa=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,ha={staticKeys:["staticClass"],transformNode:Zn,genData:Gn},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:lr},ya=Object.create(null),ba={isIE:$i,expectHTML:!0,modules:va,staticKeys:g(va),directives:ma,isReservedTag:Ci,isUnaryTag:ki,mustUseProp:vi,getTagNamespace:qt},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(96),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(12),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(31),o=r(i),a=n(87),s=r(a),u=n(12),l=n(36);r(l);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 c=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,j=!0,E=!1,$=!0,O="RECT",N=O,M="FREE",D=[O,M],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 c.path(t).attr({stroke:"red",opacity:.6});var e=o["default"].path.getBBox(t);w=c.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(c,b,v,g)},L=function(t){if(m)return void c.path(t).attr({stroke:"orange",fill:"orange",opacity:.5});var e=o["default"].parsePathString(t);e.map(function(t){"Z"!==t[0]?J(c,t[1],t[2],h):(E=!0,R(c,q))})},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})},q=function(){$=!1,I()},H=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 l=this.getBBox(),c=z(this.data("point"),l.x+V()/2,l.y+V()/2);c&&R(this.paper)},W=function(t,e){t.handler.click(H.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(j=!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},J=function(t,e,n,r){var i={x:e,y:n,id:F()};return E?void R(t,q):j?(i=X(t,i),r.push(i),void R(t)):(j=!0,!1)},Z=function(t){if(m)return!1;var e={},n={};t.mousedown(function(t){N===M||E||(e.x=t.offsetX,e.y=t.offsetY,x=!0)}),t.mousemove(function(r){if(N!==M&&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===M||E||!w)&&(b=w,s["default"].enable_resizer(t,w,v,g),x=!1,void(E=!0))})},G=function(t){if(!m){var e=null,n=!1;t.dblclick(function(r){return n=!0,e&&(e=clearTimeout(e),n=!1,E=!0,h.length>2&&R(t,q)),!1});var r=function(r){if(!n){if(N===O)return!0;if(!$)return!0;J(t,r.offsetX,r.offsetY,h),e=null,n=!1}};t.click(function(t){e||(e=setTimeout(r.bind(this,t),190))})}},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 c},setPath:function(t){var e=t.split(";");D.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]===M&&L(s))}},setDrawingMode:function(t){D.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,j=!0,E=!1,$=!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=c.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 l=d.X/f.attr("width"),h=d.Y/f.attr("height");if((isNaN(l)||isNaN(h))&&new Error("ratio should be a number."),!t.length)return t=N===O?";RECT":";FREE";var p=o["default"].matrix(l,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),c=new o["default"](e.get(0)),n.length){jQuery(e).append(n);var r=n.attr("d");Q.setPath(r),n.remove()}return Y(),G(c),Z(c),Q}}},function(t,e,n){e=t.exports=n(28)(),e.push([t.id,"Typeahead[data-v-2]{position:relative}.selected-tags[data-v-2]{border:1px solid red;width:200px!important}.selected-tags select[data-v-2]{display:inline-block}.Typeahead__input[data-v-2]{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-2]: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-2]{border:1px solid red}.fa-times[data-v-2]{cursor:pointer}ul[data-v-2]{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-2]{padding:10px 16px;border-bottom:1px solid #ccc;cursor:pointer}li[data-v-2]:first-child{border-radius:4px 4px 0 0}li[data-v-2]:last-child{border-radius:0 0 4px 4px;border-bottom:0}span[data-v-2]{display:block;color:#2c3e50}.active[data-v-2]{background-color:#3aa373}.active span[data-v-2]{color:#fff}.name[data-v-2]{font-weight:700;font-size:18px}.screen-name[data-v-2]{font-style:italic}",""])},function(t,e,n){e=t.exports=n(28)(),e.push([t.id,".diff-viewer-wrapper[data-v-4]{margin-top:5px}.diff-panel[data-v-4]{border:1px solid gray;width:300px;heigth:250px}del[data-v-4]{text-decoration:none;color:#b30000;background:#fadad7}ins[data-v-4]{background:#eaf2c2;color:#406619;text-decoration:none}",""])},function(t,e,n){(function(e){t.exports=e.$=n(32)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.Vue=n(84)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.jQuery=n(32)}).call(e,function(){return this}())},function(t,e,n){function r(t){return n(i(t))}function i(t){return o[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var o={"./diff_match_patch_uncompressed":18,"./diff_match_patch_uncompressed.js":18};r.keys=function(){return Object.keys(o)},r.resolve=i,t.exports=r,r.id=94},function(t,e,n){function r(t){return n(i(t))}function i(t){return o[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var o={"./annotated":8,"./annotated.js":8,"./base":1,"./base.js":1,"./console":14,"./console.js":14,"./html":9,"./html.js":9,"./index":10,"./index.js":10,"./jsonpatch":11,"./jsonpatch.js":11};r.keys=function(){return Object.keys(o)},r.resolve=i,t.exports=r,r.id=95},function(t,e,n){var r,i;r=n(41),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(43),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(44);var o=n(103);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){var r,i;r=n(45);var o=n(104);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",{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("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:"diff-viewer-wrapper col-md-12"},[_h("modalpanel",{ref:"panel"},function(){return[_h("h5",{slot:"header"},["Comparer les deux versions:"])," ",_h("div",{slot:"content"},[_h("div",{ref:"modalcontent"},[_h("div",{directives:[{name:"show",value:fragmentMode,expression:"fragmentMode"}],show:!0},[_h("svg",[_h("image",{attrs:{href:imagePath,width:imageWidth,height:imageHeight},staticAttrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"}})," ",_h("g",{attrs:{transform:matrixTransform}},[_h("path",{attrs:{d:originalPath},staticAttrs:{fill:"red",stroke:"blue",opacity:"0.3"}})," ",_h("path",{attrs:{d:modifiedPath},staticAttrs:{fill:"blue",stroke:"red",opacity:"0.3"}})])])])," ",_h("div",{directives:[{name:"show",value:textMode,expression:"textMode"}],show:!0},[_h("div",{props:{innerHTML:_s(diffText)}})])," ",_h("div",{directives:[{name:"show",value:tagMode,expression:"tagMode"}],show:!0},[_h("ul",[tags&&_l(tags,function(t,e){return _h("li",[t.action?void 0:[_h("li",[_h("span",[_s(t.tag_label)])," | précision : "+_s(t.accuracy)+" \n\t\t\t\t\t\t\t\t\t- \n\t\t\t\t\t\t\t\t\tpertinence : "+_s(t.relevancy)+"\n\t\t\t\t\t\t\t\t"])]," ","replace"==t.action?[_m(0)," ",_h("del",[_s(t.tag_label)])," a été remplacé par\n\t\t\t\t\t\t\t\t",_m(1)," ",_h("strong",[_h("ins",[_s(t.new_label)])])," \n\t\t\t\t\t\t\t\tprécision : ",_h("ins",[_s(t.new_accuracy)])," - \n\t\t\t\t\t\t\t\tpertinence: ",_h("ins",[_s(t.new_relevancy)])]:void 0," ","add"==t.action?[_h("li",[_m(2)," ",_h("ins",[_s(t.tag_label)]),"\n\t\t\t\t\t\t\t\t\tprécision : ",_h("ins",[_s(t.accuracy)])," - \n\t\t\t\t\t\t\t\t\tpertinence : ",_h("ins",[_s(t.relevancy)])])]:void 0," ","del"==t.action?[_h("li",[_m(3)," ",_h("del",[_s(t.tag_label)])," a été effacé"])]:void 0," ","update"==t.action?[_h("li",[_h("strong",[_s(t.tag_label)])," ",t.accuracy!=t.new_accuracy?["\n\t\t\t\t\t\t\t\t\t\tprécision: ",_h("del",[_s(t.accuracy)])," ",_h("ins",[_s(t.new_accuracy)])," -\t\n\t\t\t\t\t\t\t\t\t"]:void 0," ",t.accuracy==t.new_accuracy?["\n\t\t\t\t\t\t\t\t\t\tprécision: "+_s(t.accuracy)+" -\n\t\t\t\t\t\t\t\t\t"]:void 0," ",t.relevancy!=t.new_relevancy?["\n\t\t\t\t\t\t\t\t\t\tpertinence: ",_h("del",[_s(t.relevancy)])," ",_h("ins",[_s(t.new_relevancy)])]:void 0," ",t.relevancy==t.new_relevancy?["\n\t\t\t\t\t\t\t\t\t\tpertinence: "+_s(t.relevancy)+"\t\n\t\t\t\t\t\t\t\t\t"]:void 0])]:void 0])})])])])])]})])},staticRenderFns:[function(){with(this)return _h("del",["--"])},function(){with(this)return _h("ins",["++"])},function(){with(this)return _h("ins",["++"])},function(){with(this)return _h("del",["--"])}]}},function(module,exports){module.exports={render:function(){with(this)return _h("div",{directives:[{name:"show",value:display,expression:"display"}],staticClass:"modal-mask diff-panel",show:!0},[_h("p",{staticClass:"pull-right close-btn",on:{click:close}},[_m(0)])," ",$slots.header," ",$slots.content," ",$slots.footer])},staticRenderFns:[function(){with(this)return _h("i",{staticClass:"fa fa-close"})}]}},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){var r=n(89);"string"==typeof r&&(r=[[t.id,r,""]]);n(40)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(90);"string"==typeof r&&(r=[[t.id,r,""]]);n(40)(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=Ji?{create:function(t,e){$e(e)||ye(e)},remove:function(t,e){$e(t)?e():be(t,e)}}:{},io=[Ii,qi,Hi,zi,Xi,ro],oo=io.concat(Ri),ao=ae({nodeOps:Mi,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",De),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")}}},lo={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"}},co={model:uo,show:lo},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=Ht,mt.config.isReservedTag=Ci,mt.config.getTagNamespace=qt,mt.config.mustUseProp=vi,f(mt.options.directives,co),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&&(jr?jr.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={},jo=/\{\{((?:.|\\n)+?)\}\}/g,Eo=/[-.*+?^${}()|[\]\/\\]/g,$o=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+(.*)/,Mo=/\(([^,]*),([^,]*)(?:,([^,]*))?\)/,Do=/^:|^v-bind:/,Po=/^@|^v-on:/,Fo=/:(.*)$/,Bo=/\.[^\.]+/g,Lo=/[a-z\d][A-Z]/,Ro=u(Re),Io=void 0,qo=void 0,Ho=void 0,zo=void 0,Vo=void 0,Uo=void 0,Wo=void 0,Xo=/^xmlns:NS\d+/,Jo=/^NS\d+:/,Zo=void 0,Go=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:jn,cloak:v},na=void 0,ra=void 0,ia=void 0,oa=void 0,aa=void 0,sa=void 0,ua=void 0,la=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"),ca=/[A-Za-z_$][\w$]*/,fa=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,ha={staticKeys:["staticClass"],transformNode:Zn,genData:Gn},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:lr},ya=Object.create(null),ba={isIE:$i,expectHTML:!0,modules:va,staticKeys:g(va),directives:ma,isReservedTag:Ci,isUnaryTag:ki,mustUseProp:vi,getTagNamespace:qt},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(96),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(12),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(31),o=r(i),a=n(87),s=r(a),u=n(12),l=n(36);r(l);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 c=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,j=!0,E=!1,$=!0,O="RECT",N=O,M="FREE",D=[O,M],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 c.path(t).attr({stroke:"red",opacity:.6});var e=o["default"].path.getBBox(t);w=c.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(c,b,v,g)},L=function(t){if(m)return void c.path(t).attr({stroke:"orange",fill:"orange",opacity:.5});var e=o["default"].parsePathString(t);e.map(function(t){"Z"!==t[0]?J(c,t[1],t[2],h):(E=!0,R(c,q))})},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})},q=function(){$=!1,I()},H=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 l=this.getBBox(),c=z(this.data("point"),l.x+V()/2,l.y+V()/2);c&&R(this.paper)},W=function(t,e){t.handler.click(H.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(j=!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},J=function(t,e,n,r){var i={x:e,y:n,id:F()};return E?void R(t,q):j?(i=X(t,i),r.push(i),void R(t)):(j=!0,!1)},Z=function(t){if(m)return!1;var e={},n={};t.mousedown(function(t){N===M||E||(e.x=t.offsetX,e.y=t.offsetY,x=!0)}),t.mousemove(function(r){if(N!==M&&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===M||E||!w)&&(b=w,s["default"].enable_resizer(t,w,v,g),x=!1,void(E=!0))})},G=function(t){if(!m){var e=null,n=!1;t.dblclick(function(r){return N===O||(n=!0,e&&(e=clearTimeout(e),n=!1,E=!0,h.length>2&&R(t,q)),!1)});var r=function(r,i){if(!n){if(N===O)return!0;if(!$)return!0;J(t,r,i,h),e=null,n=!1}};t.click(function(t){if(!e){var n=t.offsetX,i=t.offsetY;e=setTimeout(r.bind(this,n,i),190)}})}},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 c},setPath:function(t){var e=t.split(";");D.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]===M&&L(s))}},setDrawingMode:function(t){D.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,j=!0,E=!1,$=!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=c.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 l=d.X/f.attr("width"),h=d.Y/f.attr("height");if((isNaN(l)||isNaN(h))&&new Error("ratio should be a number."),!t.length)return t=N===O?";RECT":";FREE";var p=o["default"].matrix(l,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),c=new o["default"](e.get(0)),n.length){jQuery(e).append(n);var r=n.attr("d");Q.setPath(r),n.remove()}return Y(),G(c),Z(c),Q}}},function(t,e,n){e=t.exports=n(28)(),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){e=t.exports=n(28)(),e.push([t.id,".diff-viewer-wrapper[data-v-4]{margin-top:5px}.diff-panel[data-v-4]{border:1px solid gray;width:300px;heigth:250px}del[data-v-4]{text-decoration:none;color:#b30000;background:#fadad7}ins[data-v-4]{background:#eaf2c2;color:#406619;text-decoration:none}",""])},function(t,e,n){(function(e){t.exports=e.$=n(32)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.Vue=n(84)}).call(e,function(){return this}())},function(t,e,n){(function(e){t.exports=e.jQuery=n(32)}).call(e,function(){return this}())},function(t,e,n){function r(t){return n(i(t))}function i(t){return o[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var o={"./diff_match_patch_uncompressed":18,"./diff_match_patch_uncompressed.js":18};r.keys=function(){return Object.keys(o)},r.resolve=i,t.exports=r,r.id=94},function(t,e,n){function r(t){return n(i(t))}function i(t){return o[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var o={"./annotated":8,"./annotated.js":8,"./base":1,"./base.js":1,"./console":14,"./console.js":14,"./html":9,"./html.js":9,"./index":10,"./index.js":10,"./jsonpatch":11,"./jsonpatch.js":11};r.keys=function(){return Object.keys(o)},r.resolve=i,t.exports=r,r.id=95},function(t,e,n){var r,i;r=n(41),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(43),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(44);var o=n(104);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){var r,i;r=n(45);var o=n(103);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",{staticClass:"diff-viewer-wrapper col-md-12"},[_h("modalpanel",{ref:"panel"},function(){return[_h("h5",{slot:"header"},["Comparer les deux versions:"])," ",_h("div",{slot:"content"},[_h("div",{ref:"modalcontent"},[_h("div",{directives:[{name:"show",value:fragmentMode,expression:"fragmentMode"}],show:!0},[_h("svg",[_h("image",{attrs:{href:imagePath,width:imageWidth,height:imageHeight},staticAttrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"}})," ",_h("g",{attrs:{transform:matrixTransform}},[_h("path",{attrs:{d:originalPath},staticAttrs:{fill:"red",stroke:"blue",opacity:"0.3"}})," ",_h("path",{attrs:{d:modifiedPath},staticAttrs:{fill:"blue",stroke:"red",opacity:"0.3"}})])])])," ",_h("div",{directives:[{name:"show",value:textMode,expression:"textMode"}],show:!0},[_h("div",{props:{innerHTML:_s(diffText)}})])," ",_h("div",{directives:[{name:"show",value:tagMode,expression:"tagMode"}],show:!0},[_h("ul",[tags&&_l(tags,function(t,e){return _h("li",[t.action?void 0:[_h("li",[_h("span",[_s(t.tag_label)])," | précision : "+_s(t.accuracy)+" \n\t\t\t\t\t\t\t\t\t- \n\t\t\t\t\t\t\t\t\tpertinence : "+_s(t.relevancy)+"\n\t\t\t\t\t\t\t\t"])]," ","replace"==t.action?[_m(0)," ",_h("del",[_s(t.tag_label)])," a été remplacé par\n\t\t\t\t\t\t\t\t",_m(1)," ",_h("strong",[_h("ins",[_s(t.new_label)])])," \n\t\t\t\t\t\t\t\tprécision : ",_h("ins",[_s(t.new_accuracy)])," - \n\t\t\t\t\t\t\t\tpertinence: ",_h("ins",[_s(t.new_relevancy)])]:void 0," ","add"==t.action?[_h("li",[_m(2)," ",_h("ins",[_s(t.tag_label)]),"\n\t\t\t\t\t\t\t\t\tprécision : ",_h("ins",[_s(t.accuracy)])," - \n\t\t\t\t\t\t\t\t\tpertinence : ",_h("ins",[_s(t.relevancy)])])]:void 0," ","del"==t.action?[_h("li",[_m(3)," ",_h("del",[_s(t.tag_label)])," a été effacé"])]:void 0," ","update"==t.action?[_h("li",[_h("strong",[_s(t.tag_label)])," ",t.accuracy!=t.new_accuracy?["\n\t\t\t\t\t\t\t\t\t\tprécision: ",_h("del",[_s(t.accuracy)])," ",_h("ins",[_s(t.new_accuracy)])," -\t\n\t\t\t\t\t\t\t\t\t"]:void 0," ",t.accuracy==t.new_accuracy?["\n\t\t\t\t\t\t\t\t\t\tprécision: "+_s(t.accuracy)+" -\n\t\t\t\t\t\t\t\t\t"]:void 0," ",t.relevancy!=t.new_relevancy?["\n\t\t\t\t\t\t\t\t\t\tpertinence: ",_h("del",[_s(t.relevancy)])," ",_h("ins",[_s(t.new_relevancy)])]:void 0," ",t.relevancy==t.new_relevancy?["\n\t\t\t\t\t\t\t\t\t\tpertinence: "+_s(t.relevancy)+"\t\n\t\t\t\t\t\t\t\t\t"]:void 0])]:void 0])})])])])])]})])},staticRenderFns:[function(){with(this)return _h("del",["--"])},function(){with(this)return _h("ins",["++"])},function(){with(this)return _h("ins",["++"])},function(){with(this)return _h("del",["--"])}]}},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(module,exports){module.exports={render:function(){with(this)return _h("div",{directives:[{name:"show",value:display,expression:"display"}],staticClass:"modal-mask diff-panel",show:!0},[_h("p",{staticClass:"pull-right close-btn",on:{click:close}},[_m(0)])," ",$slots.header," ",$slots.content," ",$slots.footer])},staticRenderFns:[function(){with(this)return _h("i",{staticClass:"fa fa-close"})}]}},function(t,e,n){var r=n(89);"string"==typeof r&&(r=[[t.id,r,""]]);n(40)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(90);"string"==typeof r&&(r=[[t.id,r,""]]);n(40)(r,{});r.locals&&(t.exports=r.locals)}]);
//# sourceMappingURL=iconolab.js.map
\ No newline at end of file