smart-textarea
Version:
A simplistic textarea in browser that supports undo, redo, find, and replace.
26 lines • 69.8 kB
JavaScript
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){!function(){"use strict";var e=function(t){var e=t||{},n={provider:function(){throw new Error("No provider!")},maxLength:30,onUpdate:function(){}};this.provider=void 0!==e.provider?e.provider:n.provider,this.maxLength=void 0!==e.maxLength?e.maxLength:n.maxLength,this.onUpdate=void 0!==e.onUpdate?e.onUpdate:n.onUpdate,this.initialItem=null,this.clear()};e.prototype.initialize=function(t){this.stack[0]=t,this.initialItem=t},e.prototype.clear=function(){this.stack=[this.initialItem],this.position=0,this.onUpdate()},e.prototype.save=function(){this.provider(function(t){this.position>=this.maxLength&&function(t,e){for(;t.length>e;)t.shift()}(this.stack,this.maxLength),this.position=Math.min(this.position,this.stack.length-1),this.stack=this.stack.slice(0,this.position+1),this.stack.push(t),this.position++,this.onUpdate()}.bind(this))},e.prototype.undo=function(t){if(this.canUndo()){var e=this.stack[--this.position];this.onUpdate(),t&&t(e)}},e.prototype.redo=function(t){if(this.canRedo()){var e=this.stack[++this.position];this.onUpdate(),t&&t(e)}},e.prototype.canUndo=function(){return this.position>0},e.prototype.canRedo=function(){return this.position<this.count()},e.prototype.count=function(){return this.stack.length-1},t.exports=e,"undefined"!=typeof window&&(window.SimpleUndo=e)}()},function(t,e,n){"use strict";(function(t){for(
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.14.7
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var n="undefined"!=typeof window&&"undefined"!=typeof document,i=["Edge","Trident","Firefox"],r=0,o=0;o<i.length;o+=1)if(n&&navigator.userAgent.indexOf(i[o])>=0){r=1;break}var a=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},r))}};function s(t){return t&&"[object Function]"==={}.toString.call(t)}function p(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=p(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?t:c(l(t))}var d=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function u(t){return 11===t?d:10===t?f:d||f}function h(t){if(!t)return document.documentElement;for(var e=u(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===p(n,"position")?h(n):n:t?t.ownerDocument.documentElement:document.documentElement}function m(t){return null!==t.parentNode?m(t.parentNode):t}function v(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,p=o.commonAncestorContainer;if(t!==p&&e!==p||i.contains(r))return"BODY"===(s=(a=p).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(p):p;var l=m(t);return l.host?v(l.host,e):v(t,m(e).host)}function g(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function b(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function y(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],u(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function x(t){var e=t.body,n=t.documentElement,i=u(10)&&getComputedStyle(n);return{height:y("Height",e,n,i),width:y("Width",e,n,i)}}var w=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},k=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),E=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},C=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function L(t){return C({},t,{right:t.left+t.width,bottom:t.top+t.height})}function T(t){var e={};try{if(u(10)){e=t.getBoundingClientRect();var n=g(t,"top"),i=g(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?x(t.ownerDocument):{},a=o.width||t.clientWidth||r.right-r.left,s=o.height||t.clientHeight||r.bottom-r.top,l=t.offsetWidth-a,c=t.offsetHeight-s;if(l||c){var d=p(t);l-=b(d,"x"),c-=b(d,"y"),r.width-=l,r.height-=c}return L(r)}function A(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=u(10),r="HTML"===e.nodeName,o=T(t),a=T(e),s=c(t),l=p(e),d=parseFloat(l.borderTopWidth,10),f=parseFloat(l.borderLeftWidth,10);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=L({top:o.top-a.top-d,left:o.left-a.left-f,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!i&&r){var m=parseFloat(l.marginTop,10),v=parseFloat(l.marginLeft,10);h.top-=d-m,h.bottom-=d-m,h.left-=f-v,h.right-=f-v,h.marginTop=m,h.marginLeft=v}return(i&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(h=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=g(e,"top"),r=g(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}(h,e)),h}function S(t){if(!t||!t.parentElement||u())return document.documentElement;for(var e=t.parentElement;e&&"none"===p(e,"transform");)e=e.parentElement;return e||document.documentElement}function R(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=r?S(t):v(t,e);if("viewport"===i)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=A(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:g(n),s=e?0:g(n,"left");return L({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o})}(a,r);else{var s=void 0;"scrollParent"===i?"BODY"===(s=c(l(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var d=A(s,a,r);if("HTML"!==s.nodeName||function t(e){var n=e.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===p(e,"position"))return!0;var i=l(e);return!!i&&t(i)}(a))o=d;else{var f=x(t.ownerDocument),u=f.height,h=f.width;o.top+=d.top-d.marginTop,o.bottom=u+d.top,o.left+=d.left-d.marginLeft,o.right=h+d.left}}var m="number"==typeof(n=n||0);return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function O(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=R(n,i,o,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},p=Object.keys(s).map(function(t){return C({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),l=p.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),c=l.length>0?l[0].key:p[0].key,d=t.split("-")[1];return c+(d?"-"+d:"")}function P(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return A(n,i?S(e):v(e,n),i)}function F(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function M(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function I(t,e,n){n=n.split("-")[0];var i=F(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",p=o?"height":"width",l=o?"width":"height";return r[a]=e[a]+e[p]/2-i[p]/2,r[s]=n===s?e[s]-i[l]:e[M(s)],r}function N(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function _(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=N(t,function(t){return t[e]===n});return t.indexOf(i)}(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&s(n)&&(e.offsets.popper=L(e.offsets.popper),e.offsets.reference=L(e.offsets.reference),e=n(e,t))}),e}function B(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function H(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==document.body.style[o])return o}return null}function D(t){var e=t.ownerDocument;return e?e.defaultView:window}function W(t,e,n,i){n.updateBound=i,D(t).addEventListener("resize",n.updateBound,{passive:!0});var r=c(t);return function t(e,n,i,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(n,i,{passive:!0}),o||t(c(a.parentNode),n,i,r),r.push(a)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function Y(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,D(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function U(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function X(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&U(e[n])&&(i="px"),t.style[n]=e[n]+i})}var z=n&&/Firefox/i.test(navigator.userAgent);function j(t,e,n){var i=N(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var V=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],q=V.slice(3);function K(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=q.indexOf(t),i=q.slice(n+1).concat(q.slice(0,n));return e?i.reverse():i}var $={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function G(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(N(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var p=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(p)[0]]),[a[s].split(p)[1]].concat(a.slice(s+1))]:[a];return(l=l.map(function(t,i){var r=(1===i?!o:o)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return L(s)[e]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,r,e,n)})})).forEach(function(t,e){t.forEach(function(n,i){U(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))})}),r}var J={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),p=s?"left":"top",l=s?"width":"height",c={start:E({},p,o[p]),end:E({},p,o[p]+o[l]-a[l])};t.offsets.popper=C({},a,c[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,a=r.reference,s=i.split("-")[0],p=void 0;return p=U(+n)?[+n,0]:G(n,o,a,s),"left"===s?(o.top+=p[0],o.left-=p[1]):"right"===s?(o.top+=p[0],o.left+=p[1]):"top"===s?(o.left+=p[0],o.top-=p[1]):"bottom"===s&&(o.left+=p[0],o.top+=p[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||h(t.instance.popper);t.instance.reference===n&&(n=h(n));var i=H("transform"),r=t.instance.popper.style,o=r.top,a=r.left,s=r[i];r.top="",r.left="",r[i]="";var p=R(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);r.top=o,r.left=a,r[i]=s,e.boundaries=p;var l=e.priority,c=t.offsets.popper,d={primary:function(t){var n=c[t];return c[t]<p[t]&&!e.escapeWithReference&&(n=Math.max(c[t],p[t])),E({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=c[n];return c[t]>p[t]&&!e.escapeWithReference&&(i=Math.min(c[n],p[t]-("right"===t?c.width:c.height))),E({},n,i)}};return l.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=C({},c,d[e](t))}),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",p=a?"left":"top",l=a?"width":"height";return n[s]<o(i[p])&&(t.offsets.popper[p]=o(i[p])-n[l]),n[p]>o(i[s])&&(t.offsets.popper[p]=o(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!j(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],o=t.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),u=l?"left":"top",h=l?"bottom":"right",m=F(i)[c];s[h]-m<a[f]&&(t.offsets.popper[f]-=a[f]-(s[h]-m)),s[f]+m>a[h]&&(t.offsets.popper[f]+=s[f]+m-a[h]),t.offsets.popper=L(t.offsets.popper);var v=s[f]+s[c]/2-m/2,g=p(t.instance.popper),b=parseFloat(g["margin"+d],10),y=parseFloat(g["border"+d+"Width"],10),x=v-t.offsets.popper[f]-b-y;return x=Math.max(Math.min(a[c]-m,x),0),t.arrowElement=i,t.offsets.arrow=(E(n={},f,Math.round(x)),E(n,u,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(B(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=R(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],r=M(i),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case $.FLIP:a=[i,r];break;case $.CLOCKWISE:a=K(i);break;case $.COUNTERCLOCKWISE:a=K(i,!0);break;default:a=e.behavior}return a.forEach(function(s,p){if(i!==s||a.length===p+1)return t;i=t.placement.split("-")[0],r=M(i);var l=t.offsets.popper,c=t.offsets.reference,d=Math.floor,f="left"===i&&d(l.right)>d(c.left)||"right"===i&&d(l.left)<d(c.right)||"top"===i&&d(l.bottom)>d(c.top)||"bottom"===i&&d(l.top)<d(c.bottom),u=d(l.left)<d(n.left),h=d(l.right)>d(n.right),m=d(l.top)<d(n.top),v=d(l.bottom)>d(n.bottom),g="left"===i&&u||"right"===i&&h||"top"===i&&m||"bottom"===i&&v,b=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(b&&"start"===o&&u||b&&"end"===o&&h||!b&&"start"===o&&m||!b&&"end"===o&&v);(f||g||y)&&(t.flipped=!0,(f||g)&&(i=a[p+1]),y&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=C({},t.offsets.popper,I(t.instance.popper,t.offsets.reference,t.placement)),t=_(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),t.placement=M(e),t.offsets.popper=L(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!j(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=N(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,r=t.offsets.popper,o=N(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=h(t.instance.popper),p=T(s),l={position:r.position},c=function(t,e){var n=t.offsets,i=n.popper,r=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},p=o(r.width),l=o(i.width),c=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),f=e?c||d||p%2==l%2?o:a:s,u=e?o:s;return{left:f(p%2==1&&l%2==1&&!d&&e?i.left-1:i.left),top:u(i.top),bottom:u(i.bottom),right:f(i.right)}}(t,window.devicePixelRatio<2||!z),d="bottom"===n?"top":"bottom",f="right"===i?"left":"right",u=H("transform"),m=void 0,v=void 0;if(v="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-p.height+c.bottom:c.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+c.right:-p.width+c.right:c.left,a&&u)l[u]="translate3d("+m+"px, "+v+"px, 0)",l[d]=0,l[f]=0,l.willChange="transform";else{var g="bottom"===d?-1:1,b="right"===f?-1:1;l[d]=v*g,l[f]=m*b,l.willChange=d+", "+f}var y={"x-placement":t.placement};return t.attributes=C({},y,t.attributes),t.styles=C({},l,t.styles),t.arrowStyles=C({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return X(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&X(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,r){var o=P(r,e,t,n.positionFixed),a=O(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),X(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Q=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=a(this.update.bind(this)),this.options=C({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(C({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=C({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return C({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&s(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return k(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=O(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=I(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=_(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,B(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[H("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),t}();Q.Utils=("undefined"!=typeof window?window:t).PopperUtils,Q.placements=V,Q.Defaults=J,e.a=Q}).call(this,n(5))},function(t,e,n){t.exports=n(7)},function(t,e){window.$=function(t,e){return(e=e||document).querySelector(t)},window.$$=function(t,e){return(e=e||document).querySelectorAll(t)},window.toggleShowHide=function(t,e="block",n,i){console.log("TCL: toggleShowHide -> element.style.display",t.style.display),"none"===getStyle(t,"display")?(console.log(`Showing ${t}...`),show(t,e),"function"==typeof n&&n()):(console.log(`Hiding ${t}...`),hide(t),"function"==typeof i&&i())},window.show=function(t,e="block"){t.style.display=e},window.hide=function(t){t.style.display="none"},window.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:window.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(e):null}},function(t,e,n){},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){},function(t,e,n){"use strict";n.r(e);n(3),n(4);var i=n(0),r=n.n(i),o=n(1);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var s="undefined"!=typeof window&&"undefined"!=typeof document,p=s?navigator.userAgent:"",l=/MSIE |Trident\//.test(p),c=/UCBrowser\//.test(p),d=s&&/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,f={a11y:!0,allowHTML:!0,animateFill:!0,animation:"shift-away",appendTo:function(){return document.body},aria:"describedby",arrow:!1,arrowType:"sharp",boundary:"scrollParent",content:"",delay:0,distance:10,duration:[325,275],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,followCursor:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},placement:"top",popperOptions:{},role:"tooltip",showOnInit:!1,size:"regular",sticky:!1,target:"",theme:"dark",touch:!0,touchHold:!1,trigger:"mouseenter focus",updateDuration:0,wait:null,zIndex:9999},u=["arrow","arrowType","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],h={POPPER:".tippy-popper",TOOLTIP:".tippy-tooltip",CONTENT:".tippy-content",BACKDROP:".tippy-backdrop",ARROW:".tippy-arrow",ROUND_ARROW:".tippy-roundarrow"},m=s?Element.prototype:{},v=m.matches||m.matchesSelector||m.webkitMatchesSelector||m.mozMatchesSelector||m.msMatchesSelector;function g(t){return[].slice.call(t)}function b(t,e){return(m.closest||function(t){for(var e=this;e;){if(v.call(e,t))return e;e=e.parentElement}}).call(t,e)}function y(t,e){for(;t;){if(e(t))return t;t=t.parentElement}}var x={passive:!0},w=4,k=Object.keys(f);function E(t,e){return{}.hasOwnProperty.call(t,e)}function C(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?n:i}return t}function L(t,e){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){return t.apply(i,r)},e)}}function T(t,e){return t&&t.modifiers&&t.modifiers[e]}function A(t,e){return t.indexOf(e)>-1}function S(t){return!(!t||!E(t,"isVirtual"))||t instanceof Element}function R(t,e){return"function"==typeof t?t.apply(null,e):t}function O(t,e){t.filter(function(t){return"flip"===t.name})[0].enabled=e}function P(){return document.createElement("div")}function F(t,e){var n=a({},e,{content:R(e.content,[t])},e.ignoreAttributes?{}:function(t){return k.reduce(function(e,n){var i=(t.getAttribute("data-tippy-".concat(n))||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e},{})}(t));return(n.arrow||c)&&(n.animateFill=!1),n}function M(t,e){Object.keys(t).forEach(function(t){if(!E(e,t))throw new Error("[tippy]: `".concat(t,"` is not a valid option"))})}function I(t,e){t.innerHTML=e instanceof Element?e.innerHTML:e}function N(t,e){if(e.content instanceof Element)I(t,""),t.appendChild(e.content);else if("function"!=typeof e.content){t[e.allowHTML?"innerHTML":"textContent"]=e.content}}function _(t){return{tooltip:t.querySelector(h.TOOLTIP),backdrop:t.querySelector(h.BACKDROP),content:t.querySelector(h.CONTENT),arrow:t.querySelector(h.ARROW)||t.querySelector(h.ROUND_ARROW)}}function B(t){t.setAttribute("data-inertia","")}function H(t){var e=P();return"round"===t?(e.className="tippy-roundarrow",I(e,'<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>')):e.className="tippy-arrow",e}function D(){var t=P();return t.className="tippy-backdrop",t.setAttribute("data-state","hidden"),t}function W(t,e){t.setAttribute("tabindex","-1"),e.setAttribute("data-interactive","")}function Y(t,e){t.forEach(function(t){t&&(t.style.transitionDuration="".concat(e,"ms"))})}function U(t,e,n){var i=c&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](i,n)}function X(t){var e=t.getAttribute("x-placement");return e?e.split("-")[0]:""}function z(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function j(t,e,n){n.split(" ").forEach(function(n){t.classList[e](n+"-theme")})}function V(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.checkHideOnClick,n=t.exclude,i=t.duration;g(document.querySelectorAll(h.POPPER)).forEach(function(t){var r=t._tippy;!r||e&&!0!==r.props.hideOnClick||n&&t===n.popper||r.hide(i)})}var q=!1;function K(){q||(q=!0,d&&document.body.classList.add("tippy-iOS"),window.performance&&document.addEventListener("mousemove",G))}var $=0;function G(){var t=performance.now();t-$<20&&(q=!1,document.removeEventListener("mousemove",G),d||document.body.classList.remove("tippy-iOS")),$=t}function J(t){if(!(t.target instanceof Element))return V();var e=b(t.target,h.POPPER);if(!(e&&e._tippy&&e._tippy.props.interactive)){var n=y(t.target,function(t){return t._tippy&&t._tippy.reference===t});if(n){var i=n._tippy;if(i){var r=A(i.props.trigger||"","click");if(q||r)return V({exclude:i,checkHideOnClick:!0});if(!0!==i.props.hideOnClick||r)return;i.clearDelayTimeouts()}}V({checkHideOnClick:!0})}}function Q(){var t=document.activeElement;t&&t.blur&&t._tippy&&t.blur()}var Z=1;function tt(t,e){var n,i,r,s,p,c=F(t,e);if(!c.multiple&&t._tippy)return null;var d,m,k,S=!1,I=[],V=c.interactiveDebounce>0?L(ot,c.interactiveDebounce):ot,K=Z++,$=function(t,e){var n=P();n.className="tippy-popper",n.id="tippy-".concat(t),n.style.zIndex=""+e.zIndex,e.role&&n.setAttribute("role",e.role);var i=P();i.className="tippy-tooltip",i.style.maxWidth=e.maxWidth+("number"==typeof e.maxWidth?"px":""),i.setAttribute("data-size",e.size),i.setAttribute("data-animation",e.animation),i.setAttribute("data-state","hidden"),j(i,"add",e.theme);var r=P();return r.className="tippy-content",r.setAttribute("data-state","hidden"),e.interactive&&W(n,i),e.arrow&&i.appendChild(H(e.arrowType)),e.animateFill&&(i.appendChild(D()),i.setAttribute("data-animatefill","")),e.inertia&&B(i),N(r,e),i.appendChild(r),n.appendChild(i),n}(K,c),G={id:K,reference:t,popper:$,popperChildren:_($),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},clearDelayTimeouts:bt,set:yt,setContent:function(t){yt({content:t})},show:xt,hide:wt,enable:function(){G.state.isEnabled=!0},disable:function(){G.state.isEnabled=!1},destroy:kt};return mt(),c.lazy||(dt(),G.popperInstance.disableEventListeners()),c.showOnInit&&Q(),c.a11y&&!c.target&&((k=t)instanceof Element&&(!v.call(k,"a[href],area[href],button,details,input,textarea,select,iframe,[tabindex]")||k.hasAttribute("disabled")))&&t.setAttribute("tabindex","0"),$.addEventListener("mouseenter",function(t){G.props.interactive&&G.state.isVisible&&"mouseenter"===n&&Q(t)}),$.addEventListener("mouseleave",function(){G.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",V)}),t._tippy=G,$._tippy=G,G;function J(t){var e=i=t,n=e.clientX,r=e.clientY;if(G.popperInstance){var o=X(G.popper),s=G.props.arrow?w+("round"===G.props.arrowType?18:16):w,p=A(["top","bottom"],o),l=A(["left","right"],o),c=p?Math.max(s,n):n,d=l?Math.max(s,r):r;p&&c>s&&(c=Math.min(n,window.innerWidth-s)),l&&d>s&&(d=Math.min(r,window.innerHeight-s));var f=G.reference.getBoundingClientRect(),u=G.props.followCursor,h="horizontal"===u,m="vertical"===u;G.popperInstance.reference=a({},G.popperInstance.reference,{getBoundingClientRect:function(){return{width:0,height:0,top:h?f.top:d,bottom:h?f.bottom:d,left:m?f.left:c,right:m?f.right:c}},clientWidth:0,clientHeight:0}),G.popperInstance.scheduleUpdate(),"initial"===u&&G.state.isVisible&&nt()}}function Q(t){if(bt(),!G.state.isVisible){if(G.props.target)return function(t){if(t){var n=b(t.target,G.props.target);n&&!n._tippy&&(tt(n,a({},G.props,{content:R(e.content,[n]),appendTo:e.appendTo,target:"",showOnInit:!0})),Q(t))}}(t);if(S=!0,G.props.wait)return G.props.wait(G,t);ft()&&!G.state.isMounted&&document.addEventListener("mousemove",J);var n=C(G.props.delay,0,f.delay);n?r=setTimeout(function(){xt()},n):xt()}}function et(){if(bt(),!G.state.isVisible)return nt();S=!1;var t=C(G.props.delay,1,f.delay);t?s=setTimeout(function(){G.state.isVisible&&wt()},t):p=requestAnimationFrame(function(){wt()})}function nt(){document.removeEventListener("mousemove",J)}function it(){document.body.removeEventListener("mouseleave",et),document.removeEventListener("mousemove",V)}function rt(t){G.state.isEnabled&&!ct(t)&&(G.state.isVisible||(n=t.type,t instanceof MouseEvent&&(i=t)),"click"===t.type&&!1!==G.props.hideOnClick&&G.state.isVisible?et():Q(t))}function ot(t){var e=y(t.target,function(t){return t._tippy}),n=b(t.target,h.POPPER)===G.popper,i=e===G.reference;n||i||function(t,e,n,i){if(!t)return!0;var r=n.clientX,o=n.clientY,a=i.interactiveBorder,s=i.distance,p=e.top-o>("top"===t?a+s:a),l=o-e.bottom>("bottom"===t?a+s:a),c=e.left-r>("left"===t?a+s:a),d=r-e.right>("right"===t?a+s:a);return p||l||c||d}(X(G.popper),G.popper.getBoundingClientRect(),t,G.props)&&(it(),et())}function at(t){if(!ct(t))return G.props.interactive?(document.body.addEventListener("mouseleave",et),void document.addEventListener("mousemove",V)):void et()}function st(t){t.target===G.reference&&(G.props.interactive&&t.relatedTarget&&G.popper.contains(t.relatedTarget)||et())}function pt(t){b(t.target,G.props.target)&&Q(t)}function lt(t){b(t.target,G.props.target)&&et()}function ct(t){var e="ontouchstart"in window,n=A(t.type,"touch"),i=G.props.touchHold;return e&&q&&i&&!n||q&&!i&&n}function dt(){var t=G.props.popperOptions,e=G.popperChildren,n=e.tooltip,i=e.arrow,r=T(t,"preventOverflow");function s(t){G.props.flip&&!G.props.flipOnUpdate&&(t.flipped&&(G.popperInstance.options.placement=t.placement),O(G.popperInstance.modifiers,!1)),n.setAttribute("x-placement",t.placement);var e=X(G.popper),i=n.style;i.top=i.bottom=i.left=i.right="",i[e]=-(G.props.distance-10)+"px";var o=r&&void 0!==r.padding?r.padding:w,s="number"==typeof o,p=a({top:s?o:o.top,bottom:s?o:o.bottom,left:s?o:o.left,right:s?o:o.right},!s&&o);p[e]=s?o+G.props.distance:(o[e]||0)+G.props.distance,G.popperInstance.modifiers.filter(function(t){return"preventOverflow"===t.name})[0].padding=p}var p=a({placement:G.props.placement},t,{modifiers:a({},t?t.modifiers:{},{preventOverflow:a({boundariesElement:G.props.boundary,padding:w},r),arrow:a({element:i,enabled:!!i},T(t,"arrow")),flip:a({enabled:G.props.flip,padding:G.props.distance+w,behavior:G.props.flipBehavior},T(t,"flip")),offset:a({offset:G.props.offset},T(t,"offset"))}),onCreate:function(e){s(e),t&&t.onCreate&&t.onCreate(e)},onUpdate:function(e){s(e),t&&t.onUpdate&&t.onUpdate(e)}});G.popperInstance=new o.a(G.reference,G.popper,p)}function ft(){return G.props.followCursor&&!q&&"focus"!==n}function ut(t,e){var n=G.popperChildren.tooltip;function i(t){t.target===n&&(U(n,"remove",i),e())}if(0===t)return e();U(n,"remove",d),U(n,"add",i),d=i}function ht(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];G.reference.addEventListener(t,e,n),I.push({eventType:t,handler:e,options:n})}function mt(){G.props.touchHold&&!G.props.target&&(ht("touchstart",rt,x),ht("touchend",at,x)),G.props.trigger.trim().split(" ").forEach(function(t){if("manual"!==t)if(G.props.target)switch(t){case"mouseenter":ht("mouseover",pt),ht("mouseout",lt);break;case"focus":ht("focusin",pt),ht("focusout",lt);break;case"click":ht(t,pt)}else switch(ht(t,rt),t){case"mouseenter":ht("mouseleave",at);break;case"focus":ht(l?"focusout":"blur",st)}})}function vt(){I.forEach(function(t){var e=t.eventType,n=t.handler,i=t.options;G.reference.removeEventListener(e,n,i)}),I=[]}function gt(){return[G.popperChildren.tooltip,G.popperChildren.backdrop,G.popperChildren.content]}function bt(){clearTimeout(r),clearTimeout(s),cancelAnimationFrame(p)}function yt(t){M(t=t||{},f);var e=G.props,n=F(G.reference,a({},G.props,t,{ignoreAttributes:!0}));n.ignoreAttributes=E(t,"ignoreAttributes")?t.ignoreAttributes||!1:e.ignoreAttributes,G.props=n,(E(t,"trigger")||E(t,"touchHold"))&&(vt(),mt()),E(t,"interactiveDebounce")&&(it(),V=L(ot,t.interactiveDebounce||0)),function(t,e,n){var i=_(t),r=i.tooltip,o=i.content,a=i.backdrop,s=i.arrow;t.style.zIndex=""+n.zIndex,r.setAttribute("data-size",n.size),r.setAttribute("data-animation",n.animation),r.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?t.setAttribute("role",n.role):t.removeAttribute("role"),e.content!==n.content&&N(o,n),!e.animateFill&&n.animateFill?(r.appendChild(D()),r.setAttribute("data-animatefill","")):e.animateFill&&!n.animateFill&&(r.removeChild(a),r.removeAttribute("data-animatefill")),!e.arrow&&n.arrow?r.appendChild(H(n.arrowType)):e.arrow&&!n.arrow&&r.removeChild(s),e.arrow&&n.arrow&&e.arrowType!==n.arrowType&&r.replaceChild(H(n.arrowType),s),!e.interactive&&n.interactive?W(t,r):e.interactive&&!n.interactive&&function(t,e){t.removeAttribute("tabindex"),e.removeAttribute("data-interactive")}(t,r),!e.inertia&&n.inertia?B(r):e.inertia&&!n.inertia&&function(t){t.removeAttribute("data-inertia")}(r),e.theme!==n.theme&&(j(r,"remove",e.theme),j(r,"add",n.theme))}(G.popper,e,n),G.popperChildren=_(G.popper),G.popperInstance&&(G.popperInstance.update(),u.some(function(e){return E(t,e)})&&(G.popperInstance.destroy(),dt(),G.state.isVisible||G.popperInstance.disableEventListeners(),G.props.followCursor&&i&&J(i)))}function xt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C(G.props.duration,0,f.duration[1]);if(!G.state.isDestroyed&&G.state.isEnabled&&(!q||G.props.touch))return E(G.reference,"isVirtual")||document.documentElement.contains(G.reference)?void(G.reference.hasAttribute("disabled")||!1!==G.props.onShow(G)&&(G.popper.style.visibility="visible",G.state.isVisible=!0,G.props.interactive&&G.reference.classList.add("tippy-active"),Y([G.popper,G.popperChildren.tooltip,G.popperChildren.backdrop],0),function(t){var e=!(ft()||"initial"===G.props.followCursor&&q);G.popperInstance?(ft()||(G.popperInstance.scheduleUpdate(),e&&G.popperInstance.enableEventListeners()),O(G.popperInstance.modifiers,G.props.flip)):(dt(),e||G.popperInstance.disableEventListeners()),G.popperInstance.reference=G.reference;var n=G.popperChildren.arrow;ft()?(n&&(n.style.margin="0"),i&&J(i)):n&&(n.style.margin=""),q&&i&&"initial"===G.props.followCursor&&(J(i),n&&(n.style.margin="0")),function(t,e){var n=t.popper,i=t.options,r=i.onCreate,o=i.onUpdate;i.onCreate=i.onUpdate=function(t){!function(t){t.offsetHeight}(n),e(),o&&o(t),i.onCreate=r,i.onUpdate=o}}(G.popperInstance,t);var r=G.props.appendTo;(m="parent"===r?G.reference.parentNode:R(r,[G.reference])).contains(G.popper)||(m.appendChild(G.popper),G.props.onMount(G),G.state.isMounted=!0)}(function(){G.state.isVisible&&(ft()||G.popperInstance.update(),Y([G.popper],c.updateDuration),Y(gt(),t),G.popperChildren.backdrop&&(G.popperChildren.content.style.transitionDelay=Math.round(t/12)+"ms"),G.props.sticky&&(Y([G.popper],l?0:G.props.updateDuration),function t(){G.popperInstance&&G.popperInstance.scheduleUpdate(),G.state.isMounted?requestAnimationFrame(t):Y([G.popper],0)}()),z(gt(),"visible"),function(t,e){ut(t,e)}(t,function(){G.popperChildren.tooltip.classList.add("tippy-notransition"),G.props.aria&&G.reference.setAttribute("aria-".concat(G.props.aria),G.popper.id),G.props.onShown(G),G.state.isShown=!0}))}))):kt()}function wt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C(G.props.duration,1,f.duration[1]);!G.state.isDestroyed&&G.state.isEnabled&&!1!==G.props.onHide(G)&&(G.popperChildren.tooltip.classList.remove("tippy-notransition"),G.props.interactive&&G.reference.classList.remove("tippy-active"),G.popper.style.visibility="hidden",G.state.isVisible=!1,G.state.isShown=!1,Y(gt(),t),z(gt(),"hidden"),function(t,e){ut(t,function(){!G.state.isVisible&&m&&m.contains(G.popper)&&e()})}(t,function(){S||nt(),G.props.aria&&G.reference.removeAttribute("aria-".concat(G.props.aria)),G.popperInstance.disableEventListeners(),G.popperInstance.options.placement=G.props.placement,m.removeChild(G.popper),G.props.onHidden(G),G.state.isMounted=!1}))}function kt(t){G.state.isDestroyed||(G.state.isMounted&&wt(0),vt(),delete G.reference._tippy,G.props.target&&t&&g(G.reference.querySelectorAll(G.props.target)).forEach(function(t){t._tippy&&t._tippy.destroy()}),G.popperInstance&&G.popperInstance.destroy(),G.state.isDestroyed=!0)}}var et=!1;function nt(t,e){M(e||{},f),et||(document.addEventListener("click",J,!0),document.addEventListener("touchstart",K,x),window.addEventListener("blur",Q),et=!0);var n,i=a({},f,e);n=t,"[object Object]"!=={}.toString.call(n)||n.addEventListener||function(t){var e={isVirtual:!0,attributes:t.attributes||{},setAttribute:function(e,n){t.attributes[e]=n},getAttribute:function(e){return t.attributes[e]},removeAttribute:function(e){delete t.attributes[e]},hasAttribute:function(e){return e in t.attributes},addEventListener:function(){},removeEventListener:function(){},classList:{classNames:{},add:function(e){t.classList.classNames[e]=!0},remove:function(e){delete t.classList.classNames[e]},contains:function(e){return e in t.classList.classNames}}};for(var n in e)t[n]=e[n]}(t);var r=function(t){if(S(t))return[t];if(t instanceof NodeList)return g(t);if(Array.isArray(t))return t;try{return g(document.querySelectorAll(t))}catch(t){return[]}}(t).reduce(function(t,e){var n=e&&tt(e,i);return n&&t.push(n),t},[]);return S(t)?r[0]:r}nt.version="4.2.0",nt.defaults=f,nt.setDefaults=function(t){Object.keys(t).forEach(function(e){f[e]=t[e]})},nt.hideAll=V,nt.group=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.delay,i=void 0===n?t[0].props.delay:n,r=e.duration,o=void 0===r?0:r;if(!t.some(function(t){return E(t,"_originalProps")})){var s=!1;t.forEach(function(t){t._originalProps=a({},t.props)}),f()}function p(t){s=t,f()}function l(e){e._originalProps.onShow(e),t.forEach(function(t){t.set({duration:o}),t.hide()}),p(!0)}function c(t){t._originalProps.onHide(t),p(!1)}function d(t){t._originalProps.onShown(t),t.set({duration:t._originalProps.duration})}function f(){t.forEach(function(t){t.set({onShow:l,onShown:d,onHide:c,delay:s?[0,Array.isArray(i)?i[1]:i]:i,duration:s?o:t._originalProps.duration})})}},s&&setTimeout(function(){g(document.querySelectorAll("[data-tippy]")).forEach(function(t){var e=t.getAttribute("data-tippy");e&&nt(t,{content:e})})}),function(t){if(s){var e=document.createElement("style");e.type="text/css",e.textContent=t;var n=document.head,i=n.firstChild;i?n.insertBefore(e,i):n.appendChild(e)}}('.tippy-iOS{cursor:pointer!important}.tippy-notransition{transition:none}.tippy-popper{transition-timing-function:cubic-bezier(.165,.84,.44,1);max-width:calc(100% - 8px);pointer-events:none;outline:0}.tippy-popper[x-placement^=top] .tippy-backdrop{border-radius:40% 40% 0 0}.tippy-popper[x-placement^=top] .tippy-roundarrow{bottom:-7px;bottom:-6.5px;-webkit-transform-origin:50% 0;transform-origin:50% 0;margin:0 3px}.tippy-popper[x-placement^=top] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tippy-popper[x-placement^=top] .tippy-arrow{border-top:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;bottom:-7px;margin:0 3px;-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=top] .tippy-backdrop{-webkit-transform-origin:0 25%;transform-origin:0 25%}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-55%);transform:scale(1) translate(-50%,-55%)}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-50%,-45%);transform:scale(.2) translate(-50%,-45%);opacity:0}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateY(-10px) rotateX(0);transform:perspective(700px) translateY(-10px) rotateX(0)}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) translateY(0) rotateX(60deg);transform:perspective(700px) translateY(0) rotateX(60deg)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=top] [data-animation=scale]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=visible]{-webkit-transform:translateY(-10px) scale(1);transform:translateY(-10px) scale(1)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px) scale(.5);transform:translateY(-10px) scale(.5)}.tippy-popper[x-placement^=bottom] .tippy-backdrop{border-radius:0 0 30% 30%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow{top:-7px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;margin:0 3px}.tippy-popper[x-placement^=bottom] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(0);transform:rotate(0)}.tippy-popper[x-placement^=bottom] .tippy-arrow{border-bottom:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;top:-7px;margin:0 3px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.tippy-popper[x-placement^=bottom] .tippy-backdrop{-webkit-transform-origin:0 -50%;transform-origin:0 -50%}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-45%);transform:scale(1) translate(-50%,-45%)}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-50%);transform:scale(.2) translate(-50%);opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateY(10px) rotateX(0);transform:perspective(700px) translateY(10px) rotateX(0)}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) translateY(0) rotateX(-60deg);transform:perspective(700px) translateY(0) rotateX(-60deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=bottom] [data-animation=scale]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=visible]{-webkit-transform:translateY(10px) scale(1);transform:translateY(10px) scale(1)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px) scale(.5);transform:translateY(10px) scale(.5)}.tippy-popper[x-placement^=left] .tippy-backdrop{border-radius:50% 0 0 50%}.tippy-popper[x-placement^=left] .tippy-roundarrow{right:-12px;-webkit-transform-origin:33.33333333% 50%;transform-origin:33.33333333% 50%;margin:3px 0}.tippy-popper[x-placement^=left] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.tippy-popper[x-placement^=left] .tippy-arrow{border-left:8px solid #333;border-top:8px solid transparent;border-botto