creevey 0.9.0-non-webpack.1 → 0.9.0-non-webpack.2.fix-capture-element
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTHORS +15 -15
- package/CHANGELOG.md +1275 -1275
- package/LICENSE +21 -21
- package/docs/config.md +212 -212
- package/docs/grid.md +10 -10
- package/docs/tests.md +63 -63
- package/lib/cjs/client/addon/components/Icons.js +1 -1
- package/lib/cjs/client/addon/withCreevey.js +39 -44
- package/lib/cjs/client/shared/helpers.js +4 -4
- package/lib/cjs/client/web/32.js +1 -1
- package/lib/cjs/client/web/551.js +1 -1
- package/lib/cjs/client/web/691.js +1 -1
- package/lib/cjs/client/web/725.js +1 -1
- package/lib/cjs/client/web/index.html +19 -19
- package/lib/cjs/client/web/main.js +1 -1
- package/lib/cjs/server/master/api.js +5 -1
- package/lib/esm/client/addon/components/Icons.js +1 -1
- package/lib/esm/client/addon/withCreevey.js +41 -44
- package/lib/esm/client/shared/helpers.js +4 -4
- package/lib/esm/server/master/api.js +5 -1
- package/package.json +1 -1
- package/preset.js +9 -9
- package/types/babel__register.d.ts +1 -1
- package/types/chai.d.ts +12 -12
- package/types/event-source-polyfill.d.ts +6 -6
- package/types/mocha.d.ts +20 -20
- package/types/png.d.ts +4 -4
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkcreevey=self.webpackChunkcreevey||[]).push([[725],{77725:(e,t,r)=>{r.r(t),r.d(t,{WithToolTipState:()=>Ie,WithTooltip:()=>Ie,WithTooltipPure:()=>Ne}),r(82526),r(41817),r(32165),r(43371),r(41539),r(39714),r(54747),r(47941),r(19601),r(74916),r(23123),r(57327),r(68309),r(69600),r(92222),r(15306),r(2707),r(66992),r(51532),r(78783),r(33948),r(69826),r(47042),r(70189),r(88674),r(21249),r(18264),r(24603),r(92087),r(4723),r(26699),r(32023),r(23157),r(91038);var n,o,i=r(72857),a=r(67294),s=r(65316),c=r(73935),l=r(52326),u=r.n(l);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function g(e){return e instanceof m(e).Element||e instanceof Element}function v(e){return e instanceof m(e).HTMLElement||e instanceof HTMLElement}function y(e){return"undefined"!=typeof ShadowRoot&&(e instanceof m(e).ShadowRoot||e instanceof ShadowRoot)}r(32839),r(80129);var b={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];v(o)&&h(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});v(n)&&h(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function w(e){return e.split("-")[0]}var O=Math.max,x=Math.min,k=Math.round;function C(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),n=1,o=1;if(v(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(n=k(r.width)/a||1),i>0&&(o=k(r.height)/i||1)}return{width:r.width/n,height:r.height/o,top:r.top/o,right:r.right/n,bottom:r.bottom/o,left:r.left/n,x:r.left/n,y:r.top/o}}function T(e){var t=C(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function E(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&y(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function R(e){return m(e).getComputedStyle(e)}function S(e){return["table","td","th"].indexOf(h(e))>=0}function P(e){return((g(e)?e.ownerDocument:e.document)||window.document).documentElement}function j(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(y(e)?e.host:null)||P(e)}function A(e){return v(e)&&"fixed"!==R(e).position?e.offsetParent:null}function H(e){for(var t=m(e),r=A(e);r&&S(r)&&"static"===R(r).position;)r=A(r);return r&&("html"===h(r)||"body"===h(r)&&"static"===R(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&v(e)&&"fixed"===R(e).position)return null;for(var r=j(e);v(r)&&["html","body"].indexOf(h(r))<0;){var n=R(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function M(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function B(e,t,r){return O(e,x(t,r))}function L(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function D(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var W={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,c=w(r.placement),l=M(c),u=[i.l,i.r].indexOf(c)>=0?"height":"width";if(a&&s){var f=function(e,t){return L("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:D(e,i.b))}(o.padding,r),p=T(a),d="y"===l?i.t:i.l,h="y"===l?i.e:i.r,m=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],g=s[l]-r.rects.reference[l],v=H(a),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=m/2-g/2,O=f[d],x=y-p[u]-f[h],k=y/2-p[u]/2+b,C=B(O,k,x),E=l;r.modifiersData[n]=((t={})[E]=C,t.centerOffset=C-k,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&E(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function V(e){return e.split("-")[1]}var U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,d=s.x,h=void 0===d?0:d,g=s.y,v=void 0===g?0:g,y="function"==typeof f?f({x:h,y:v}):{x:h,y:v};h=y.x,v=y.y;var b=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),O=i.l,x=i.t,C=window;if(u){var T=H(r),E="clientHeight",S="clientWidth";T===m(r)&&"static"!==R(T=P(r)).position&&"absolute"===c&&(E="scrollHeight",S="scrollWidth"),(o===i.t||(o===i.l||o===i.r)&&a===i.f)&&(x=i.e,v-=(p&&C.visualViewport?C.visualViewport.height:T[E])-n.height,v*=l?1:-1),o!==i.l&&(o!==i.t&&o!==i.e||a!==i.f)||(O=i.r,h-=(p&&C.visualViewport?C.visualViewport.width:T[S])-n.width,h*=l?1:-1)}var j,A=Object.assign({position:c},u&&U),M=!0===f?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:k(t*n)/n||0,y:k(r*n)/n||0}}({x:h,y:v}):{x:h,y:v};return h=M.x,v=M.y,l?Object.assign({},A,((j={})[x]=w?"0":"",j[O]=b?"0":"",j.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",j)):Object.assign({},A,((t={})[x]=w?v+"px":"",t[O]=b?h+"px":"",t.transform="",t))}var z={passive:!0},F={left:"right",right:"left",bottom:"top",top:"bottom"};function q(e){return e.replace(/left|right|bottom|top/g,(function(e){return F[e]}))}var X={start:"end",end:"start"};function Y(e){return e.replace(/start|end/g,(function(e){return X[e]}))}function N(e){var t=m(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function I(e){return C(P(e)).left+N(e).scrollLeft}function $(e){var t=R(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function G(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:v(e)&&$(e)?e:G(j(e))}function J(e,t){var r;void 0===t&&(t=[]);var n=G(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=m(n),a=o?[i].concat(i.visualViewport||[],$(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(J(j(a)))}function K(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Q(e,t){return t===i.v?K(function(e){var t=m(e),r=P(e),n=t.visualViewport,o=r.clientWidth,i=r.clientHeight,a=0,s=0;return n&&(o=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,s=n.offsetTop)),{width:o,height:i,x:a+I(e),y:s}}(e)):g(t)?function(e){var t=C(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):K(function(e){var t,r=P(e),n=N(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=O(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=O(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+I(e),c=-n.scrollTop;return"rtl"===R(o||r).direction&&(s+=O(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(P(e)))}function Z(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?w(o):null,s=o?V(o):null,c=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(a){case i.t:t={x:c,y:r.y-n.height};break;case i.e:t={x:c,y:r.y+r.height};break;case i.r:t={x:r.x+r.width,y:l};break;case i.l:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=a?M(a):null;if(null!=u){var f="y"===u?"height":"width";switch(s){case i.s:t[u]=t[u]-(r[f]/2-n[f]/2);break;case i.f:t[u]=t[u]+(r[f]/2-n[f]/2)}}return t}function ee(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.boundary,s=void 0===a?i.h:a,c=r.rootBoundary,l=void 0===c?i.v:c,u=r.elementContext,f=void 0===u?i.p:u,p=r.altBoundary,d=void 0!==p&&p,m=r.padding,y=void 0===m?0:m,b=L("number"!=typeof y?y:D(y,i.b)),w=f===i.p?i.i:i.p,k=e.rects.popper,T=e.elements[d?w:f],S=function(e,t,r){var n="clippingParents"===t?function(e){var t=J(j(e)),r=["absolute","fixed"].indexOf(R(e).position)>=0&&v(e)?H(e):e;return g(r)?t.filter((function(e){return g(e)&&E(e,r)&&"body"!==h(e)})):[]}(e):[].concat(t),o=[].concat(n,[r]),i=o[0],a=o.reduce((function(t,r){var n=Q(e,r);return t.top=O(n.top,t.top),t.right=x(n.right,t.right),t.bottom=x(n.bottom,t.bottom),t.left=O(n.left,t.left),t}),Q(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(g(T)?T:T.contextElement||P(e.elements.popper),s,l),A=C(e.elements.reference),M=Z({reference:A,element:k,strategy:"absolute",placement:o}),B=K(Object.assign({},k,M)),W=f===i.p?B:A,V={top:S.top-W.top+b.top,bottom:W.bottom-S.bottom+b.bottom,left:S.left-W.left+b.left,right:W.right-S.right+b.right},U=e.modifiersData.offset;if(f===i.p&&U){var _=U[o];Object.keys(V).forEach((function(e){var t=[i.r,i.e].indexOf(e)>=0?1:-1,r=[i.t,i.e].indexOf(e)>=0?"y":"x";V[e]+=_[r]*t}))}return V}function te(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function re(e){return[i.t,i.r,i.e,i.l].some((function(t){return e[t]>=0}))}function ne(e,t,r){void 0===r&&(r=!1);var n,o,i=v(t),a=v(t)&&function(e){var t=e.getBoundingClientRect(),r=k(t.width)/e.offsetWidth||1,n=k(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=P(t),c=C(e,a),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==h(t)||$(s))&&(l=(n=t)!==m(n)&&v(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:N(n)),v(t)?((u=C(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=I(s))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function oe(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var ie={placement:"bottom",modifiers:[],strategy:"absolute"};function ae(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function se(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?ie:o;return function(e,t,r){void 0===r&&(r=a);var o,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ie,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,f={state:c,setOptions:function(r){var o="function"==typeof r?r(c.options):r;p(),c.options=Object.assign({},a,c.options,o),c.scrollParents={reference:g(e)?J(e):e.contextElement?J(e.contextElement):[],popper:J(t)};var s,u,d=function(e){var t=oe(e);return i.n.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((s=[].concat(n,c.options.modifiers),u=s.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return c.orderedModifiers=d.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:c,name:t,instance:f,options:n});l.push(i||function(){})}})),f.update()},forceUpdate:function(){if(!u){var e=c.elements,t=e.reference,r=e.popper;if(ae(t,r)){c.rects={reference:ne(t,H(r),"fixed"===c.options.strategy),popper:T(r)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<c.orderedModifiers.length;n++)if(!0!==c.reset){var o=c.orderedModifiers[n],i=o.fn,a=o.options,s=void 0===a?{}:a,l=o.name;"function"==typeof i&&(c=i({state:c,options:s,name:l,instance:f})||c)}else c.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(c)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){p(),u=!0}};if(!ae(e,t))return f;function p(){l.forEach((function(e){return e()})),l=[]}return f.setOptions(r).then((function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)})),f}}var ce=se({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,c=m(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach((function(e){e.addEventListener("scroll",r.update,z)})),s&&c.addEventListener("resize",r.update,z),function(){i&&l.forEach((function(e){e.removeEventListener("scroll",r.update,z)})),s&&c.removeEventListener("resize",r.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,c=void 0===s||s,l={placement:w(t.placement),variation:V(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},b,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,s=i.k.reduce((function(e,r){return e[r]=function(e,t,r){var n=w(e),o=[i.l,i.t].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=a[0],c=a[1];return s=s||0,c=(c||0)*o,[i.l,i.r].indexOf(n)>=0?{x:c,y:s}:{x:s,y:c}}(r,t.rects,a),e}),{}),c=s[t.placement],l=c.x,u=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,s=r.altAxis,c=void 0===s||s,l=r.fallbackPlacements,u=r.padding,f=r.boundary,p=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,m=void 0===h||h,g=r.allowedAutoPlacements,v=t.options.placement,y=w(v),b=l||(y!==v&&m?function(e){if(w(e)===i.m)return[];var t=q(e);return[Y(e),t,Y(t)]}(v):[q(v)]),O=[v].concat(b).reduce((function(e,r){return e.concat(w(r)===i.m?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,c=r.flipVariations,l=r.allowedAutoPlacements,u=void 0===l?i.k:l,f=V(n),p=f?c?i.j:i.j.filter((function(e){return V(e)===f})):i.b,d=p.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=p);var h=d.reduce((function(t,r){return t[r]=ee(e,{placement:r,boundary:o,rootBoundary:a,padding:s})[w(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:r,boundary:f,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:g}):r)}),[]),x=t.rects.reference,k=t.rects.popper,C=new Map,T=!0,E=O[0],R=0;R<O.length;R++){var S=O[R],P=w(S),j=V(S)===i.s,A=[i.t,i.e].indexOf(P)>=0,H=A?"width":"height",M=ee(t,{placement:S,boundary:f,rootBoundary:p,altBoundary:d,padding:u}),B=A?j?i.r:i.l:j?i.e:i.t;x[H]>k[H]&&(B=q(B));var L=q(B),D=[];if(a&&D.push(M[P]<=0),c&&D.push(M[B]<=0,M[L]<=0),D.every((function(e){return e}))){E=S,T=!1;break}C.set(S,D)}if(T)for(var W=function(e){var t=O.find((function(t){var r=C.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},U=m?3:1;U>0&&"break"!==W(U);U--);t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,s=r.altAxis,c=void 0!==s&&s,l=r.boundary,u=r.rootBoundary,f=r.altBoundary,p=r.padding,d=r.tether,h=void 0===d||d,m=r.tetherOffset,g=void 0===m?0:m,v=ee(t,{boundary:l,rootBoundary:u,padding:p,altBoundary:f}),y=w(t.placement),b=V(t.placement),k=!b,C=M(y),E="x"===C?"y":"x",R=t.modifiersData.popperOffsets,S=t.rects.reference,P=t.rects.popper,j="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,A="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(R){if(a){var W,U="y"===C?i.t:i.l,_="y"===C?i.e:i.r,z="y"===C?"height":"width",F=R[C],q=F+v[U],X=F-v[_],Y=h?-P[z]/2:0,N=b===i.s?S[z]:P[z],I=b===i.s?-P[z]:-S[z],$=t.elements.arrow,G=h&&$?T($):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=J[U],Q=J[_],Z=B(0,S[z],G[z]),te=k?S[z]/2-Y-Z-K-A.mainAxis:N-Z-K-A.mainAxis,re=k?-S[z]/2+Y+Z+Q+A.mainAxis:I+Z+Q+A.mainAxis,ne=t.elements.arrow&&H(t.elements.arrow),oe=ne?"y"===C?ne.clientTop||0:ne.clientLeft||0:0,ie=null!=(W=null==L?void 0:L[C])?W:0,ae=F+re-ie,se=B(h?x(q,F+te-ie-oe):q,F,h?O(X,ae):X);R[C]=se,D[C]=se-F}if(c){var ce,le="x"===C?i.t:i.l,ue="x"===C?i.e:i.r,fe=R[E],pe="y"===E?"height":"width",de=fe+v[le],he=fe-v[ue],me=-1!==[i.t,i.l].indexOf(y),ge=null!=(ce=null==L?void 0:L[E])?ce:0,ve=me?de:fe-S[pe]-P[pe]-ge+A.altAxis,ye=me?fe+S[pe]+P[pe]-ge-A.altAxis:he,be=h&&me?function(e,t,r){var n=B(e,t,r);return n>r?r:n}(ve,fe,ye):B(h?ve:de,fe,h?ye:he);R[E]=be,D[E]=be-fe}t.modifiersData[n]=D}},requiresIfExists:["offset"]},W,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ee(t,{elementContext:"reference"}),s=ee(t,{altBoundary:!0}),c=te(a,n),l=te(s,o,i),u=re(c),f=re(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]});function le(e,t){return le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},le(e,t)}function ue(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,le(e,t)}var fe=a.createContext(),pe=a.createContext();function de(e){var t=e.children,r=a.useState(null),n=r[0],o=r[1],i=a.useRef(!1);a.useEffect((function(){return function(){i.current=!0}}),[]);var s=a.useCallback((function(e){i.current||o(e)}),[]);return a.createElement(fe.Provider,{value:n},a.createElement(pe.Provider,{value:s},t))}var he=function(e){return Array.isArray(e)?e[0]:e},me=function(e){if("function"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.apply(void 0,r)}},ge=function(e,t){if("function"==typeof e)return me(e,t);null!=e&&(e.current=t)},ve=function(e){return e.reduce((function(e,t){var r=t[0],n=t[1];return e[r]=n,e}),{})},ye="undefined"!=typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,be="undefined"!=typeof Element,we="function"==typeof Map,Oe="function"==typeof Set,xe="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function ke(e,t){if(e===t)return!0;if(e&&t&&"object"==d(e)&&"object"==d(t)){if(e.constructor!==t.constructor)return!1;var r,n,o,i;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!ke(e[n],t[n]))return!1;return!0}if(we&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!ke(n.value[1],t.get(n.value[0])))return!1;return!0}if(Oe&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(xe&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(be&&e instanceof Element)return!1;for(n=r;0!=n--;)if(("_owner"!==o[n]&&"__v"!==o[n]&&"__o"!==o[n]||!e.$$typeof)&&!ke(e[o[n]],t[o[n]]))return!1;return!0}return e!=e&&t!=t}var Ce=function(e,t){try{return ke(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},Te=[],Ee=function(){},Re=function(){return Promise.resolve(null)},Se=[];function Pe(e){var t=e.placement,r=void 0===t?"bottom":t,n=e.strategy,o=void 0===n?"absolute":n,i=e.modifiers,s=void 0===i?Se:i,c=e.referenceElement,l=e.onFirstUpdate,u=e.innerRef,f=e.children,p=a.useContext(fe),d=a.useState(null),h=d[0],m=d[1],g=a.useState(null),v=g[0],y=g[1];a.useEffect((function(){ge(u,h)}),[u,h]);var b=a.useMemo((function(){return{placement:r,strategy:o,onFirstUpdate:l,modifiers:[].concat(s,[{name:"arrow",enabled:null!=v,options:{element:v}}])}}),[r,o,l,s,v]),w=function(e,t,r){void 0===r&&(r={});var n=a.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Te},i=a.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=i[0],c=i[1],l=a.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);c({styles:ve(r.map((function(e){return[e,t.styles[e]||{}]}))),attributes:ve(r.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),u=a.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return Ce(n.current,e)?n.current||e:(n.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),f=a.useRef();return ye((function(){f.current&&f.current.setOptions(u)}),[u]),ye((function(){if(null!=e&&null!=t){var n=(r.createPopper||ce)(e,t,u);return f.current=n,function(){n.destroy(),f.current=null}}}),[e,t,r.createPopper]),{state:f.current?f.current.state:null,styles:s.styles,attributes:s.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}(c||p,h,b),O=w.state,x=w.styles,k=w.forceUpdate,C=w.update,T=a.useMemo((function(){return{ref:m,style:x.popper,placement:O?O.placement:r,hasPopperEscaped:O&&O.modifiersData.hide?O.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:O&&O.modifiersData.hide?O.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:x.arrow,ref:y},forceUpdate:k||Ee,update:C||Re}}),[m,y,r,O,x,C,k]);return he(f)(T)}var je=function(){};function Ae(e){var t=e.children,r=e.innerRef,n=a.useContext(pe),o=a.useCallback((function(e){ge(r,e),me(n,e)}),[r,n]);return a.useEffect((function(){return function(){return ge(r,null)}})),a.useEffect((function(){je(Boolean(n),"`Reference` should not be used outside of a `Manager` component.")}),[n]),he(t)({ref:o})}var He=a.createContext({}),Me=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.forEach((function(e){return e&&e.apply(void 0,r)}))}},Be=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},Le=function(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)},De=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).observer=void 0,t.tooltipRef=void 0,t.handleOutsideClick=function(e){if(t.tooltipRef&&!t.tooltipRef.contains(e.target)){var r=t.context.parentOutsideClickHandler,n=t.props,o=n.hideTooltip;(0,n.clearScheduled)(),o(),r&&r(e)}},t.handleOutsideRightClick=function(e){if(t.tooltipRef&&!t.tooltipRef.contains(e.target)){var r=t.context.parentOutsideRightClickHandler,n=t.props,o=n.hideTooltip;(0,n.clearScheduled)(),o(),r&&r(e)}},t.addOutsideClickHandler=function(){document.body.addEventListener("touchend",t.handleOutsideClick),document.body.addEventListener("click",t.handleOutsideClick)},t.removeOutsideClickHandler=function(){document.body.removeEventListener("touchend",t.handleOutsideClick),document.body.removeEventListener("click",t.handleOutsideClick)},t.addOutsideRightClickHandler=function(){return document.body.addEventListener("contextmenu",t.handleOutsideRightClick)},t.removeOutsideRightClickHandler=function(){return document.body.removeEventListener("contextmenu",t.handleOutsideRightClick)},t.getTooltipRef=function(e){t.tooltipRef=e,Le(t.props.innerRef,e)},t.getArrowProps=function(e){return void 0===e&&(e={}),(0,i.o)({},e,{style:(0,i.o)({},e.style,t.props.arrowProps.style)})},t.getTooltipProps=function(e){return void 0===e&&(e={}),(0,i.o)({},e,t.isTriggeredBy("hover")&&{onMouseEnter:Me(t.props.clearScheduled,e.onMouseEnter),onMouseLeave:Me(t.props.hideTooltip,e.onMouseLeave)},{style:(0,i.o)({},e.style,t.props.style)})},t.contextValue={isParentNoneTriggered:"none"===t.props.trigger,addParentOutsideClickHandler:t.addOutsideClickHandler,addParentOutsideRightClickHandler:t.addOutsideRightClickHandler,parentOutsideClickHandler:t.handleOutsideClick,parentOutsideRightClickHandler:t.handleOutsideRightClick,removeParentOutsideClickHandler:t.removeOutsideClickHandler,removeParentOutsideRightClickHandler:t.removeOutsideRightClickHandler},t}ue(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this;if((this.observer=new MutationObserver((function(){e.props.update()}))).observe(this.tooltipRef,this.props.mutationObserverOptions),this.isTriggeredBy("hover")||this.isTriggeredBy("click")||this.isTriggeredBy("right-click")){var t=this.context,r=t.removeParentOutsideClickHandler,n=t.removeParentOutsideRightClickHandler;this.addOutsideClickHandler(),this.addOutsideRightClickHandler(),r&&r(),n&&n()}},r.componentDidUpdate=function(){this.props.closeOnReferenceHidden&&this.props.isReferenceHidden&&this.props.hideTooltip()},r.componentWillUnmount=function(){if(this.observer&&this.observer.disconnect(),this.isTriggeredBy("hover")||this.isTriggeredBy("click")||this.isTriggeredBy("right-click")){var e=this.context,t=e.isParentNoneTriggered,r=e.addParentOutsideClickHandler,n=e.addParentOutsideRightClickHandler;this.removeOutsideClickHandler(),this.removeOutsideRightClickHandler(),this.handleOutsideClick=void 0,this.handleOutsideRightClick=void 0,!t&&r&&r(),!t&&n&&n()}},r.render=function(){var e=this.props,t=e.arrowProps,r=e.placement,n=e.tooltip;return a.createElement(He.Provider,{value:this.contextValue},n({arrowRef:t.ref,getArrowProps:this.getArrowProps,getTooltipProps:this.getTooltipProps,placement:r,tooltipRef:this.getTooltipRef}))},r.isTriggeredBy=function(e){var t=this.props.trigger;return t===e||Array.isArray(t)&&t.includes(e)},t}(a.Component);De.contextType=He;var We=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state={tooltipShown:t.props.defaultTooltipShown},t.hideTimeout=void 0,t.showTimeout=void 0,t.popperOffset=void 0,t.setTooltipState=function(e){var r=function(){return t.props.onVisibilityChange(e.tooltipShown)};t.isControlled()?r():t.setState(e,r)},t.clearScheduled=function(){clearTimeout(t.hideTimeout),clearTimeout(t.showTimeout)},t.showTooltip=function(e){var r=e.pageX,n=e.pageY;t.clearScheduled();var o={tooltipShown:!0};t.props.followCursor&&(o=(0,i.o)({},o,{pageX:r,pageY:n})),t.showTimeout=window.setTimeout((function(){return t.setTooltipState(o)}),t.props.delayShow)},t.hideTooltip=function(){t.clearScheduled(),t.hideTimeout=window.setTimeout((function(){return t.setTooltipState({tooltipShown:!1})}),t.props.delayHide)},t.toggleTooltip=function(e){var r=e.pageX,n=e.pageY,o=t.getState()?"hideTooltip":"showTooltip";t[o]({pageX:r,pageY:n})},t.clickToggle=function(e){e.preventDefault();var r=e.pageX,n=e.pageY,o=t.props.followCursor?"showTooltip":"toggleTooltip";t[o]({pageX:r,pageY:n})},t.contextMenuToggle=function(e){e.preventDefault();var r=e.pageX,n=e.pageY,o=t.props.followCursor?"showTooltip":"toggleTooltip";t[o]({pageX:r,pageY:n})},t.getTriggerProps=function(e){return void 0===e&&(e={}),(0,i.o)({},e,t.isTriggeredBy("click")&&{onClick:Me(t.clickToggle,e.onClick),onTouchEnd:Me(t.clickToggle,e.onTouchEnd)},t.isTriggeredBy("right-click")&&{onContextMenu:Me(t.contextMenuToggle,e.onContextMenu)},t.isTriggeredBy("hover")&&(0,i.o)({onMouseEnter:Me(t.showTooltip,e.onMouseEnter),onMouseLeave:Me(t.hideTooltip,e.onMouseLeave)},t.props.followCursor&&{onMouseMove:Me(t.showTooltip,e.onMouseMove)}),t.isTriggeredBy("focus")&&{onFocus:Me(t.showTooltip,e.onFocus),onBlur:Me(t.hideTooltip,e.onBlur)})},t}ue(t,e);var r=t.prototype;return r.componentWillUnmount=function(){this.clearScheduled()},r.render=function(){var e=this,t=this.props,r=t.children,n=t.tooltip,o=t.placement,s=t.trigger,l=t.getTriggerRef,u=t.modifiers,f=t.closeOnReferenceHidden,p=t.usePortal,d=t.portalContainer,h=t.followCursor,m=t.getTooltipRef,g=t.mutationObserverOptions,v=(0,i.q)(t,["children","tooltip","placement","trigger","getTriggerRef","modifiers","closeOnReferenceHidden","usePortal","portalContainer","followCursor","getTooltipRef","mutationObserverOptions"]),y=a.createElement(Pe,(0,i.o)({innerRef:m,placement:o,modifiers:[{name:"followCursor",enabled:h,phase:"main",fn:function(t){e.popperOffset=t.state.rects.popper}}].concat(u)},v),(function(t){var r=t.ref,o=t.style,c=t.placement,l=t.arrowProps,u=t.isReferenceHidden,p=t.update;if(h&&e.popperOffset){var d=e.state,m=d.pageX,v=d.pageY,y=e.popperOffset,b=y.width,w=y.height,O=m+b>window.pageXOffset+document.body.offsetWidth?m-b:m,x=v+w>window.pageYOffset+document.body.offsetHeight?v-w:v;o.transform="translate3d("+O+"px, "+x+"px, 0"}return a.createElement(De,(0,i.o)({arrowProps:l,closeOnReferenceHidden:f,isReferenceHidden:u,placement:c,update:p,style:o,tooltip:n,trigger:s,mutationObserverOptions:g},{clearScheduled:e.clearScheduled,hideTooltip:e.hideTooltip,innerRef:r}))}));return a.createElement(de,null,a.createElement(Ae,{innerRef:l},(function(t){var n=t.ref;return r({getTriggerProps:e.getTriggerProps,triggerRef:n})})),this.getState()&&(p?(0,c.createPortal)(y,d):y))},r.isControlled=function(){return void 0!==this.props.tooltipShown},r.getState=function(){return this.isControlled()?this.props.tooltipShown:this.state.tooltipShown},r.isTriggeredBy=function(e){var t=this.props.trigger;return t===e||Array.isArray(t)&&t.includes(e)},t}(a.Component);We.defaultProps={closeOnReferenceHidden:!0,defaultTooltipShown:!1,delayHide:0,delayShow:0,followCursor:!1,onVisibilityChange:function(){},placement:"right",portalContainer:Be()?document.body:null,trigger:"hover",usePortal:Be(),mutationObserverOptions:{childList:!0,subtree:!0},modifiers:[]};var Ve=We,Ue=u()(1e3)((function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return t.split("-")[0]===e?r:n})),_e=s.zo.div({position:"absolute",borderStyle:"solid"},(function(e){var t=e.placement,r=0,n=0;switch(!0){case t.startsWith("left")||t.startsWith("right"):n=8;break;case t.startsWith("top")||t.startsWith("bottom"):r=8}return{transform:"translate3d(".concat(r,"px, ").concat(n,"px, 0px)")}}),(function(e){var t=e.theme,r=e.color,n=e.placement;return{bottom:"".concat(Ue("top",n,-8,"auto"),"px"),top:"".concat(Ue("bottom",n,-8,"auto"),"px"),right:"".concat(Ue("left",n,-8,"auto"),"px"),left:"".concat(Ue("right",n,-8,"auto"),"px"),borderBottomWidth:"".concat(Ue("top",n,"0",8),"px"),borderTopWidth:"".concat(Ue("bottom",n,"0",8),"px"),borderRightWidth:"".concat(Ue("left",n,"0",8),"px"),borderLeftWidth:"".concat(Ue("right",n,"0",8),"px"),borderTopColor:Ue("top",n,t.color[r]||r||"light"===t.base?(0,s.$n)(t.background.app):(0,s._j)(t.background.app),"transparent"),borderBottomColor:Ue("bottom",n,t.color[r]||r||"light"===t.base?(0,s.$n)(t.background.app):(0,s._j)(t.background.app),"transparent"),borderLeftColor:Ue("left",n,t.color[r]||r||"light"===t.base?(0,s.$n)(t.background.app):(0,s._j)(t.background.app),"transparent"),borderRightColor:Ue("right",n,t.color[r]||r||"light"===t.base?(0,s.$n)(t.background.app):(0,s._j)(t.background.app),"transparent")}})),ze=s.zo.div((function(e){return{display:e.hidden?"none":"inline-block",zIndex:2147483647}}),(function(e){var t=e.theme,r=e.color;return e.hasChrome?{background:t.color[r]||r||"light"===t.base?(0,s.$n)(t.background.app):(0,s._j)(t.background.app),filter:"\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ",borderRadius:2*t.appBorderRadius,fontSize:t.typography.size.s1}:{}})),Fe=function(e){var t=e.placement,r=e.hasChrome,n=e.children,o=e.arrowProps,s=e.tooltipRef,c=e.arrowRef,l=e.color,u=(0,i.a)(e,["placement","hasChrome","children","arrowProps","tooltipRef","arrowRef","color"]);return a.createElement(ze,Object.assign({hasChrome:r,placement:t,ref:s},u,{color:l}),r&&a.createElement(_e,Object.assign({placement:t,ref:c},o,{color:l})),n)};Fe.defaultProps={color:void 0,arrowRef:void 0,tooltipRef:void 0,hasChrome:!0,placement:"top",arrowProps:{}};var qe=i.w.document,Xe=s.zo.div(n||(n=p(["\n display: inline-block;\n cursor: ",";\n"])),(function(e){return"hover"===e.mode?"default":"pointer"})),Ye=s.zo.g(o||(o=p(["\n cursor: ",";\n"])),(function(e){return"hover"===e.mode?"default":"pointer"})),Ne=function(e){var t=e.svg,r=e.trigger,n=(e.closeOnClick,e.placement),o=e.modifiers,s=e.hasChrome,c=e.tooltip,l=e.children,u=e.tooltipShown,f=e.onVisibilityChange,p=(0,i.a)(e,["svg","trigger","closeOnClick","placement","modifiers","hasChrome","tooltip","children","tooltipShown","onVisibilityChange"]),d=t?Ye:Xe;return a.createElement(Ve,{placement:n,trigger:r,modifiers:o,tooltipShown:u,onVisibilityChange:f,tooltip:function(e){var t=e.getTooltipProps,r=e.getArrowProps,n=e.tooltipRef,o=e.arrowRef,i=e.placement;return a.createElement(Fe,Object.assign({hasChrome:s,placement:i,tooltipRef:n,arrowRef:o,arrowProps:r()},t()),"function"==typeof c?c({onHide:function(){return f(!1)}}):c)}},(function(e){var t=e.getTriggerProps,r=e.triggerRef;return a.createElement(d,Object.assign({ref:r},t(),p),l)}))};Ne.defaultProps={svg:!1,trigger:"hover",closeOnClick:!1,placement:"top",modifiers:[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:!0,tooltipShown:!1};var Ie=function(e){var t,r,n=e.startOpen,o=e.onVisibilityChange,s=(0,i.a)(e,["startOpen","onVisibilityChange"]),c=(t=(0,a.useState)(n||!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],u=c[1],p=(0,a.useCallback)((function(e){o&&!1===o(e)||u(e)}),[o]);return(0,a.useEffect)((function(){var e=function(){return p(!1)};qe.addEventListener("keydown",e,!1);var t=Array.from(qe.getElementsByTagName("iframe")),r=[];return t.forEach((function(t){var n=function(){try{t.contentWindow.document&&(t.contentWindow.document.addEventListener("click",e),r.push((function(){try{t.contentWindow.document.removeEventListener("click",e)}catch(e){}})))}catch(e){}};n(),t.addEventListener("load",n),r.push((function(){t.removeEventListener("load",n)}))})),function(){qe.removeEventListener("keydown",e),r.forEach((function(e){e()}))}})),a.createElement(Ne,Object.assign({},s,{tooltipShown:l,onVisibilityChange:p}))}}}]);
|
1
|
+
"use strict";(self.webpackChunkcreevey=self.webpackChunkcreevey||[]).push([[725],{77725:(e,t,r)=>{r.r(t),r.d(t,{WithToolTipState:()=>Ie,WithTooltip:()=>Ie,WithTooltipPure:()=>Ne}),r(82526),r(41817),r(32165),r(43371),r(41539),r(39714),r(54747),r(47941),r(19601),r(74916),r(23123),r(57327),r(68309),r(69600),r(92222),r(15306),r(2707),r(66992),r(51532),r(78783),r(33948),r(69826),r(47042),r(70189),r(88674),r(21249),r(18264),r(24603),r(92087),r(4723),r(26699),r(32023),r(23157),r(91038);var n,o,i=r(72857),a=r(67294),s=r(76628),c=r(73935),l=r(52326),u=r.n(l);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function g(e){return e instanceof m(e).Element||e instanceof Element}function v(e){return e instanceof m(e).HTMLElement||e instanceof HTMLElement}function y(e){return"undefined"!=typeof ShadowRoot&&(e instanceof m(e).ShadowRoot||e instanceof ShadowRoot)}r(32839),r(80129);var b={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];v(o)&&h(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});v(n)&&h(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function w(e){return e.split("-")[0]}var O=Math.max,x=Math.min,k=Math.round;function C(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),n=1,o=1;if(v(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(n=k(r.width)/a||1),i>0&&(o=k(r.height)/i||1)}return{width:r.width/n,height:r.height/o,top:r.top/o,right:r.right/n,bottom:r.bottom/o,left:r.left/n,x:r.left/n,y:r.top/o}}function T(e){var t=C(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function E(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&y(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function R(e){return m(e).getComputedStyle(e)}function S(e){return["table","td","th"].indexOf(h(e))>=0}function P(e){return((g(e)?e.ownerDocument:e.document)||window.document).documentElement}function j(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(y(e)?e.host:null)||P(e)}function A(e){return v(e)&&"fixed"!==R(e).position?e.offsetParent:null}function H(e){for(var t=m(e),r=A(e);r&&S(r)&&"static"===R(r).position;)r=A(r);return r&&("html"===h(r)||"body"===h(r)&&"static"===R(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&v(e)&&"fixed"===R(e).position)return null;for(var r=j(e);v(r)&&["html","body"].indexOf(h(r))<0;){var n=R(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function M(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function B(e,t,r){return O(e,x(t,r))}function L(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function D(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var W={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,c=w(r.placement),l=M(c),u=[i.l,i.r].indexOf(c)>=0?"height":"width";if(a&&s){var f=function(e,t){return L("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:D(e,i.b))}(o.padding,r),p=T(a),d="y"===l?i.t:i.l,h="y"===l?i.e:i.r,m=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],g=s[l]-r.rects.reference[l],v=H(a),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=m/2-g/2,O=f[d],x=y-p[u]-f[h],k=y/2-p[u]/2+b,C=B(O,k,x),E=l;r.modifiersData[n]=((t={})[E]=C,t.centerOffset=C-k,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&E(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function V(e){return e.split("-")[1]}var U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,d=s.x,h=void 0===d?0:d,g=s.y,v=void 0===g?0:g,y="function"==typeof f?f({x:h,y:v}):{x:h,y:v};h=y.x,v=y.y;var b=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),O=i.l,x=i.t,C=window;if(u){var T=H(r),E="clientHeight",S="clientWidth";T===m(r)&&"static"!==R(T=P(r)).position&&"absolute"===c&&(E="scrollHeight",S="scrollWidth"),(o===i.t||(o===i.l||o===i.r)&&a===i.f)&&(x=i.e,v-=(p&&C.visualViewport?C.visualViewport.height:T[E])-n.height,v*=l?1:-1),o!==i.l&&(o!==i.t&&o!==i.e||a!==i.f)||(O=i.r,h-=(p&&C.visualViewport?C.visualViewport.width:T[S])-n.width,h*=l?1:-1)}var j,A=Object.assign({position:c},u&&U),M=!0===f?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:k(t*n)/n||0,y:k(r*n)/n||0}}({x:h,y:v}):{x:h,y:v};return h=M.x,v=M.y,l?Object.assign({},A,((j={})[x]=w?"0":"",j[O]=b?"0":"",j.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",j)):Object.assign({},A,((t={})[x]=w?v+"px":"",t[O]=b?h+"px":"",t.transform="",t))}var z={passive:!0},F={left:"right",right:"left",bottom:"top",top:"bottom"};function q(e){return e.replace(/left|right|bottom|top/g,(function(e){return F[e]}))}var X={start:"end",end:"start"};function Y(e){return e.replace(/start|end/g,(function(e){return X[e]}))}function N(e){var t=m(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function I(e){return C(P(e)).left+N(e).scrollLeft}function $(e){var t=R(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function G(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:v(e)&&$(e)?e:G(j(e))}function J(e,t){var r;void 0===t&&(t=[]);var n=G(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=m(n),a=o?[i].concat(i.visualViewport||[],$(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(J(j(a)))}function K(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Q(e,t){return t===i.v?K(function(e){var t=m(e),r=P(e),n=t.visualViewport,o=r.clientWidth,i=r.clientHeight,a=0,s=0;return n&&(o=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,s=n.offsetTop)),{width:o,height:i,x:a+I(e),y:s}}(e)):g(t)?function(e){var t=C(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):K(function(e){var t,r=P(e),n=N(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=O(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=O(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+I(e),c=-n.scrollTop;return"rtl"===R(o||r).direction&&(s+=O(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(P(e)))}function Z(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?w(o):null,s=o?V(o):null,c=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(a){case i.t:t={x:c,y:r.y-n.height};break;case i.e:t={x:c,y:r.y+r.height};break;case i.r:t={x:r.x+r.width,y:l};break;case i.l:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=a?M(a):null;if(null!=u){var f="y"===u?"height":"width";switch(s){case i.s:t[u]=t[u]-(r[f]/2-n[f]/2);break;case i.f:t[u]=t[u]+(r[f]/2-n[f]/2)}}return t}function ee(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.boundary,s=void 0===a?i.h:a,c=r.rootBoundary,l=void 0===c?i.v:c,u=r.elementContext,f=void 0===u?i.p:u,p=r.altBoundary,d=void 0!==p&&p,m=r.padding,y=void 0===m?0:m,b=L("number"!=typeof y?y:D(y,i.b)),w=f===i.p?i.i:i.p,k=e.rects.popper,T=e.elements[d?w:f],S=function(e,t,r){var n="clippingParents"===t?function(e){var t=J(j(e)),r=["absolute","fixed"].indexOf(R(e).position)>=0&&v(e)?H(e):e;return g(r)?t.filter((function(e){return g(e)&&E(e,r)&&"body"!==h(e)})):[]}(e):[].concat(t),o=[].concat(n,[r]),i=o[0],a=o.reduce((function(t,r){var n=Q(e,r);return t.top=O(n.top,t.top),t.right=x(n.right,t.right),t.bottom=x(n.bottom,t.bottom),t.left=O(n.left,t.left),t}),Q(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(g(T)?T:T.contextElement||P(e.elements.popper),s,l),A=C(e.elements.reference),M=Z({reference:A,element:k,strategy:"absolute",placement:o}),B=K(Object.assign({},k,M)),W=f===i.p?B:A,V={top:S.top-W.top+b.top,bottom:W.bottom-S.bottom+b.bottom,left:S.left-W.left+b.left,right:W.right-S.right+b.right},U=e.modifiersData.offset;if(f===i.p&&U){var _=U[o];Object.keys(V).forEach((function(e){var t=[i.r,i.e].indexOf(e)>=0?1:-1,r=[i.t,i.e].indexOf(e)>=0?"y":"x";V[e]+=_[r]*t}))}return V}function te(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function re(e){return[i.t,i.r,i.e,i.l].some((function(t){return e[t]>=0}))}function ne(e,t,r){void 0===r&&(r=!1);var n,o,i=v(t),a=v(t)&&function(e){var t=e.getBoundingClientRect(),r=k(t.width)/e.offsetWidth||1,n=k(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=P(t),c=C(e,a),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==h(t)||$(s))&&(l=(n=t)!==m(n)&&v(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:N(n)),v(t)?((u=C(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=I(s))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function oe(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var ie={placement:"bottom",modifiers:[],strategy:"absolute"};function ae(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function se(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?ie:o;return function(e,t,r){void 0===r&&(r=a);var o,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ie,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,f={state:c,setOptions:function(r){var o="function"==typeof r?r(c.options):r;p(),c.options=Object.assign({},a,c.options,o),c.scrollParents={reference:g(e)?J(e):e.contextElement?J(e.contextElement):[],popper:J(t)};var s,u,d=function(e){var t=oe(e);return i.n.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((s=[].concat(n,c.options.modifiers),u=s.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return c.orderedModifiers=d.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:c,name:t,instance:f,options:n});l.push(i||function(){})}})),f.update()},forceUpdate:function(){if(!u){var e=c.elements,t=e.reference,r=e.popper;if(ae(t,r)){c.rects={reference:ne(t,H(r),"fixed"===c.options.strategy),popper:T(r)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<c.orderedModifiers.length;n++)if(!0!==c.reset){var o=c.orderedModifiers[n],i=o.fn,a=o.options,s=void 0===a?{}:a,l=o.name;"function"==typeof i&&(c=i({state:c,options:s,name:l,instance:f})||c)}else c.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(c)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){p(),u=!0}};if(!ae(e,t))return f;function p(){l.forEach((function(e){return e()})),l=[]}return f.setOptions(r).then((function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)})),f}}var ce=se({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,c=m(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach((function(e){e.addEventListener("scroll",r.update,z)})),s&&c.addEventListener("resize",r.update,z),function(){i&&l.forEach((function(e){e.removeEventListener("scroll",r.update,z)})),s&&c.removeEventListener("resize",r.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,c=void 0===s||s,l={placement:w(t.placement),variation:V(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},b,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,s=i.k.reduce((function(e,r){return e[r]=function(e,t,r){var n=w(e),o=[i.l,i.t].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=a[0],c=a[1];return s=s||0,c=(c||0)*o,[i.l,i.r].indexOf(n)>=0?{x:c,y:s}:{x:s,y:c}}(r,t.rects,a),e}),{}),c=s[t.placement],l=c.x,u=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,s=r.altAxis,c=void 0===s||s,l=r.fallbackPlacements,u=r.padding,f=r.boundary,p=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,m=void 0===h||h,g=r.allowedAutoPlacements,v=t.options.placement,y=w(v),b=l||(y!==v&&m?function(e){if(w(e)===i.m)return[];var t=q(e);return[Y(e),t,Y(t)]}(v):[q(v)]),O=[v].concat(b).reduce((function(e,r){return e.concat(w(r)===i.m?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,c=r.flipVariations,l=r.allowedAutoPlacements,u=void 0===l?i.k:l,f=V(n),p=f?c?i.j:i.j.filter((function(e){return V(e)===f})):i.b,d=p.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=p);var h=d.reduce((function(t,r){return t[r]=ee(e,{placement:r,boundary:o,rootBoundary:a,padding:s})[w(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:r,boundary:f,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:g}):r)}),[]),x=t.rects.reference,k=t.rects.popper,C=new Map,T=!0,E=O[0],R=0;R<O.length;R++){var S=O[R],P=w(S),j=V(S)===i.s,A=[i.t,i.e].indexOf(P)>=0,H=A?"width":"height",M=ee(t,{placement:S,boundary:f,rootBoundary:p,altBoundary:d,padding:u}),B=A?j?i.r:i.l:j?i.e:i.t;x[H]>k[H]&&(B=q(B));var L=q(B),D=[];if(a&&D.push(M[P]<=0),c&&D.push(M[B]<=0,M[L]<=0),D.every((function(e){return e}))){E=S,T=!1;break}C.set(S,D)}if(T)for(var W=function(e){var t=O.find((function(t){var r=C.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},U=m?3:1;U>0&&"break"!==W(U);U--);t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,s=r.altAxis,c=void 0!==s&&s,l=r.boundary,u=r.rootBoundary,f=r.altBoundary,p=r.padding,d=r.tether,h=void 0===d||d,m=r.tetherOffset,g=void 0===m?0:m,v=ee(t,{boundary:l,rootBoundary:u,padding:p,altBoundary:f}),y=w(t.placement),b=V(t.placement),k=!b,C=M(y),E="x"===C?"y":"x",R=t.modifiersData.popperOffsets,S=t.rects.reference,P=t.rects.popper,j="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,A="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(R){if(a){var W,U="y"===C?i.t:i.l,_="y"===C?i.e:i.r,z="y"===C?"height":"width",F=R[C],q=F+v[U],X=F-v[_],Y=h?-P[z]/2:0,N=b===i.s?S[z]:P[z],I=b===i.s?-P[z]:-S[z],$=t.elements.arrow,G=h&&$?T($):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=J[U],Q=J[_],Z=B(0,S[z],G[z]),te=k?S[z]/2-Y-Z-K-A.mainAxis:N-Z-K-A.mainAxis,re=k?-S[z]/2+Y+Z+Q+A.mainAxis:I+Z+Q+A.mainAxis,ne=t.elements.arrow&&H(t.elements.arrow),oe=ne?"y"===C?ne.clientTop||0:ne.clientLeft||0:0,ie=null!=(W=null==L?void 0:L[C])?W:0,ae=F+re-ie,se=B(h?x(q,F+te-ie-oe):q,F,h?O(X,ae):X);R[C]=se,D[C]=se-F}if(c){var ce,le="x"===C?i.t:i.l,ue="x"===C?i.e:i.r,fe=R[E],pe="y"===E?"height":"width",de=fe+v[le],he=fe-v[ue],me=-1!==[i.t,i.l].indexOf(y),ge=null!=(ce=null==L?void 0:L[E])?ce:0,ve=me?de:fe-S[pe]-P[pe]-ge+A.altAxis,ye=me?fe+S[pe]+P[pe]-ge-A.altAxis:he,be=h&&me?function(e,t,r){var n=B(e,t,r);return n>r?r:n}(ve,fe,ye):B(h?ve:de,fe,h?ye:he);R[E]=be,D[E]=be-fe}t.modifiersData[n]=D}},requiresIfExists:["offset"]},W,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ee(t,{elementContext:"reference"}),s=ee(t,{altBoundary:!0}),c=te(a,n),l=te(s,o,i),u=re(c),f=re(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]});function le(e,t){return le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},le(e,t)}function ue(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,le(e,t)}var fe=a.createContext(),pe=a.createContext();function de(e){var t=e.children,r=a.useState(null),n=r[0],o=r[1],i=a.useRef(!1);a.useEffect((function(){return function(){i.current=!0}}),[]);var s=a.useCallback((function(e){i.current||o(e)}),[]);return a.createElement(fe.Provider,{value:n},a.createElement(pe.Provider,{value:s},t))}var he=function(e){return Array.isArray(e)?e[0]:e},me=function(e){if("function"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.apply(void 0,r)}},ge=function(e,t){if("function"==typeof e)return me(e,t);null!=e&&(e.current=t)},ve=function(e){return e.reduce((function(e,t){var r=t[0],n=t[1];return e[r]=n,e}),{})},ye="undefined"!=typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,be="undefined"!=typeof Element,we="function"==typeof Map,Oe="function"==typeof Set,xe="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function ke(e,t){if(e===t)return!0;if(e&&t&&"object"==d(e)&&"object"==d(t)){if(e.constructor!==t.constructor)return!1;var r,n,o,i;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!ke(e[n],t[n]))return!1;return!0}if(we&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!ke(n.value[1],t.get(n.value[0])))return!1;return!0}if(Oe&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(xe&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(be&&e instanceof Element)return!1;for(n=r;0!=n--;)if(("_owner"!==o[n]&&"__v"!==o[n]&&"__o"!==o[n]||!e.$$typeof)&&!ke(e[o[n]],t[o[n]]))return!1;return!0}return e!=e&&t!=t}var Ce=function(e,t){try{return ke(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},Te=[],Ee=function(){},Re=function(){return Promise.resolve(null)},Se=[];function Pe(e){var t=e.placement,r=void 0===t?"bottom":t,n=e.strategy,o=void 0===n?"absolute":n,i=e.modifiers,s=void 0===i?Se:i,c=e.referenceElement,l=e.onFirstUpdate,u=e.innerRef,f=e.children,p=a.useContext(fe),d=a.useState(null),h=d[0],m=d[1],g=a.useState(null),v=g[0],y=g[1];a.useEffect((function(){ge(u,h)}),[u,h]);var b=a.useMemo((function(){return{placement:r,strategy:o,onFirstUpdate:l,modifiers:[].concat(s,[{name:"arrow",enabled:null!=v,options:{element:v}}])}}),[r,o,l,s,v]),w=function(e,t,r){void 0===r&&(r={});var n=a.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Te},i=a.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=i[0],c=i[1],l=a.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);c({styles:ve(r.map((function(e){return[e,t.styles[e]||{}]}))),attributes:ve(r.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),u=a.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return Ce(n.current,e)?n.current||e:(n.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),f=a.useRef();return ye((function(){f.current&&f.current.setOptions(u)}),[u]),ye((function(){if(null!=e&&null!=t){var n=(r.createPopper||ce)(e,t,u);return f.current=n,function(){n.destroy(),f.current=null}}}),[e,t,r.createPopper]),{state:f.current?f.current.state:null,styles:s.styles,attributes:s.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}(c||p,h,b),O=w.state,x=w.styles,k=w.forceUpdate,C=w.update,T=a.useMemo((function(){return{ref:m,style:x.popper,placement:O?O.placement:r,hasPopperEscaped:O&&O.modifiersData.hide?O.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:O&&O.modifiersData.hide?O.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:x.arrow,ref:y},forceUpdate:k||Ee,update:C||Re}}),[m,y,r,O,x,C,k]);return he(f)(T)}var je=function(){};function Ae(e){var t=e.children,r=e.innerRef,n=a.useContext(pe),o=a.useCallback((function(e){ge(r,e),me(n,e)}),[r,n]);return a.useEffect((function(){return function(){return ge(r,null)}})),a.useEffect((function(){je(Boolean(n),"`Reference` should not be used outside of a `Manager` component.")}),[n]),he(t)({ref:o})}var He=a.createContext({}),Me=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.forEach((function(e){return e&&e.apply(void 0,r)}))}},Be=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},Le=function(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)},De=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).observer=void 0,t.tooltipRef=void 0,t.handleOutsideClick=function(e){if(t.tooltipRef&&!t.tooltipRef.contains(e.target)){var r=t.context.parentOutsideClickHandler,n=t.props,o=n.hideTooltip;(0,n.clearScheduled)(),o(),r&&r(e)}},t.handleOutsideRightClick=function(e){if(t.tooltipRef&&!t.tooltipRef.contains(e.target)){var r=t.context.parentOutsideRightClickHandler,n=t.props,o=n.hideTooltip;(0,n.clearScheduled)(),o(),r&&r(e)}},t.addOutsideClickHandler=function(){document.body.addEventListener("touchend",t.handleOutsideClick),document.body.addEventListener("click",t.handleOutsideClick)},t.removeOutsideClickHandler=function(){document.body.removeEventListener("touchend",t.handleOutsideClick),document.body.removeEventListener("click",t.handleOutsideClick)},t.addOutsideRightClickHandler=function(){return document.body.addEventListener("contextmenu",t.handleOutsideRightClick)},t.removeOutsideRightClickHandler=function(){return document.body.removeEventListener("contextmenu",t.handleOutsideRightClick)},t.getTooltipRef=function(e){t.tooltipRef=e,Le(t.props.innerRef,e)},t.getArrowProps=function(e){return void 0===e&&(e={}),(0,i.o)({},e,{style:(0,i.o)({},e.style,t.props.arrowProps.style)})},t.getTooltipProps=function(e){return void 0===e&&(e={}),(0,i.o)({},e,t.isTriggeredBy("hover")&&{onMouseEnter:Me(t.props.clearScheduled,e.onMouseEnter),onMouseLeave:Me(t.props.hideTooltip,e.onMouseLeave)},{style:(0,i.o)({},e.style,t.props.style)})},t.contextValue={isParentNoneTriggered:"none"===t.props.trigger,addParentOutsideClickHandler:t.addOutsideClickHandler,addParentOutsideRightClickHandler:t.addOutsideRightClickHandler,parentOutsideClickHandler:t.handleOutsideClick,parentOutsideRightClickHandler:t.handleOutsideRightClick,removeParentOutsideClickHandler:t.removeOutsideClickHandler,removeParentOutsideRightClickHandler:t.removeOutsideRightClickHandler},t}ue(t,e);var r=t.prototype;return r.componentDidMount=function(){var e=this;if((this.observer=new MutationObserver((function(){e.props.update()}))).observe(this.tooltipRef,this.props.mutationObserverOptions),this.isTriggeredBy("hover")||this.isTriggeredBy("click")||this.isTriggeredBy("right-click")){var t=this.context,r=t.removeParentOutsideClickHandler,n=t.removeParentOutsideRightClickHandler;this.addOutsideClickHandler(),this.addOutsideRightClickHandler(),r&&r(),n&&n()}},r.componentDidUpdate=function(){this.props.closeOnReferenceHidden&&this.props.isReferenceHidden&&this.props.hideTooltip()},r.componentWillUnmount=function(){if(this.observer&&this.observer.disconnect(),this.isTriggeredBy("hover")||this.isTriggeredBy("click")||this.isTriggeredBy("right-click")){var e=this.context,t=e.isParentNoneTriggered,r=e.addParentOutsideClickHandler,n=e.addParentOutsideRightClickHandler;this.removeOutsideClickHandler(),this.removeOutsideRightClickHandler(),this.handleOutsideClick=void 0,this.handleOutsideRightClick=void 0,!t&&r&&r(),!t&&n&&n()}},r.render=function(){var e=this.props,t=e.arrowProps,r=e.placement,n=e.tooltip;return a.createElement(He.Provider,{value:this.contextValue},n({arrowRef:t.ref,getArrowProps:this.getArrowProps,getTooltipProps:this.getTooltipProps,placement:r,tooltipRef:this.getTooltipRef}))},r.isTriggeredBy=function(e){var t=this.props.trigger;return t===e||Array.isArray(t)&&t.includes(e)},t}(a.Component);De.contextType=He;var We=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state={tooltipShown:t.props.defaultTooltipShown},t.hideTimeout=void 0,t.showTimeout=void 0,t.popperOffset=void 0,t.setTooltipState=function(e){var r=function(){return t.props.onVisibilityChange(e.tooltipShown)};t.isControlled()?r():t.setState(e,r)},t.clearScheduled=function(){clearTimeout(t.hideTimeout),clearTimeout(t.showTimeout)},t.showTooltip=function(e){var r=e.pageX,n=e.pageY;t.clearScheduled();var o={tooltipShown:!0};t.props.followCursor&&(o=(0,i.o)({},o,{pageX:r,pageY:n})),t.showTimeout=window.setTimeout((function(){return t.setTooltipState(o)}),t.props.delayShow)},t.hideTooltip=function(){t.clearScheduled(),t.hideTimeout=window.setTimeout((function(){return t.setTooltipState({tooltipShown:!1})}),t.props.delayHide)},t.toggleTooltip=function(e){var r=e.pageX,n=e.pageY,o=t.getState()?"hideTooltip":"showTooltip";t[o]({pageX:r,pageY:n})},t.clickToggle=function(e){e.preventDefault();var r=e.pageX,n=e.pageY,o=t.props.followCursor?"showTooltip":"toggleTooltip";t[o]({pageX:r,pageY:n})},t.contextMenuToggle=function(e){e.preventDefault();var r=e.pageX,n=e.pageY,o=t.props.followCursor?"showTooltip":"toggleTooltip";t[o]({pageX:r,pageY:n})},t.getTriggerProps=function(e){return void 0===e&&(e={}),(0,i.o)({},e,t.isTriggeredBy("click")&&{onClick:Me(t.clickToggle,e.onClick),onTouchEnd:Me(t.clickToggle,e.onTouchEnd)},t.isTriggeredBy("right-click")&&{onContextMenu:Me(t.contextMenuToggle,e.onContextMenu)},t.isTriggeredBy("hover")&&(0,i.o)({onMouseEnter:Me(t.showTooltip,e.onMouseEnter),onMouseLeave:Me(t.hideTooltip,e.onMouseLeave)},t.props.followCursor&&{onMouseMove:Me(t.showTooltip,e.onMouseMove)}),t.isTriggeredBy("focus")&&{onFocus:Me(t.showTooltip,e.onFocus),onBlur:Me(t.hideTooltip,e.onBlur)})},t}ue(t,e);var r=t.prototype;return r.componentWillUnmount=function(){this.clearScheduled()},r.render=function(){var e=this,t=this.props,r=t.children,n=t.tooltip,o=t.placement,s=t.trigger,l=t.getTriggerRef,u=t.modifiers,f=t.closeOnReferenceHidden,p=t.usePortal,d=t.portalContainer,h=t.followCursor,m=t.getTooltipRef,g=t.mutationObserverOptions,v=(0,i.q)(t,["children","tooltip","placement","trigger","getTriggerRef","modifiers","closeOnReferenceHidden","usePortal","portalContainer","followCursor","getTooltipRef","mutationObserverOptions"]),y=a.createElement(Pe,(0,i.o)({innerRef:m,placement:o,modifiers:[{name:"followCursor",enabled:h,phase:"main",fn:function(t){e.popperOffset=t.state.rects.popper}}].concat(u)},v),(function(t){var r=t.ref,o=t.style,c=t.placement,l=t.arrowProps,u=t.isReferenceHidden,p=t.update;if(h&&e.popperOffset){var d=e.state,m=d.pageX,v=d.pageY,y=e.popperOffset,b=y.width,w=y.height,O=m+b>window.pageXOffset+document.body.offsetWidth?m-b:m,x=v+w>window.pageYOffset+document.body.offsetHeight?v-w:v;o.transform="translate3d("+O+"px, "+x+"px, 0"}return a.createElement(De,(0,i.o)({arrowProps:l,closeOnReferenceHidden:f,isReferenceHidden:u,placement:c,update:p,style:o,tooltip:n,trigger:s,mutationObserverOptions:g},{clearScheduled:e.clearScheduled,hideTooltip:e.hideTooltip,innerRef:r}))}));return a.createElement(de,null,a.createElement(Ae,{innerRef:l},(function(t){var n=t.ref;return r({getTriggerProps:e.getTriggerProps,triggerRef:n})})),this.getState()&&(p?(0,c.createPortal)(y,d):y))},r.isControlled=function(){return void 0!==this.props.tooltipShown},r.getState=function(){return this.isControlled()?this.props.tooltipShown:this.state.tooltipShown},r.isTriggeredBy=function(e){var t=this.props.trigger;return t===e||Array.isArray(t)&&t.includes(e)},t}(a.Component);We.defaultProps={closeOnReferenceHidden:!0,defaultTooltipShown:!1,delayHide:0,delayShow:0,followCursor:!1,onVisibilityChange:function(){},placement:"right",portalContainer:Be()?document.body:null,trigger:"hover",usePortal:Be(),mutationObserverOptions:{childList:!0,subtree:!0},modifiers:[]};var Ve=We,Ue=u()(1e3)((function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return t.split("-")[0]===e?r:n})),_e=s.zo.div({position:"absolute",borderStyle:"solid"},(function(e){var t=e.placement,r=0,n=0;switch(!0){case t.startsWith("left")||t.startsWith("right"):n=8;break;case t.startsWith("top")||t.startsWith("bottom"):r=8}return{transform:"translate3d(".concat(r,"px, ").concat(n,"px, 0px)")}}),(function(e){var t=e.theme,r=e.color,n=e.placement;return{bottom:"".concat(Ue("top",n,-8,"auto"),"px"),top:"".concat(Ue("bottom",n,-8,"auto"),"px"),right:"".concat(Ue("left",n,-8,"auto"),"px"),left:"".concat(Ue("right",n,-8,"auto"),"px"),borderBottomWidth:"".concat(Ue("top",n,"0",8),"px"),borderTopWidth:"".concat(Ue("bottom",n,"0",8),"px"),borderRightWidth:"".concat(Ue("left",n,"0",8),"px"),borderLeftWidth:"".concat(Ue("right",n,"0",8),"px"),borderTopColor:Ue("top",n,t.color[r]||r||"light"===t.base?(0,s.$n)(t.background.app):(0,s._j)(t.background.app),"transparent"),borderBottomColor:Ue("bottom",n,t.color[r]||r||"light"===t.base?(0,s.$n)(t.background.app):(0,s._j)(t.background.app),"transparent"),borderLeftColor:Ue("left",n,t.color[r]||r||"light"===t.base?(0,s.$n)(t.background.app):(0,s._j)(t.background.app),"transparent"),borderRightColor:Ue("right",n,t.color[r]||r||"light"===t.base?(0,s.$n)(t.background.app):(0,s._j)(t.background.app),"transparent")}})),ze=s.zo.div((function(e){return{display:e.hidden?"none":"inline-block",zIndex:2147483647}}),(function(e){var t=e.theme,r=e.color;return e.hasChrome?{background:t.color[r]||r||"light"===t.base?(0,s.$n)(t.background.app):(0,s._j)(t.background.app),filter:"\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ",borderRadius:2*t.appBorderRadius,fontSize:t.typography.size.s1}:{}})),Fe=function(e){var t=e.placement,r=e.hasChrome,n=e.children,o=e.arrowProps,s=e.tooltipRef,c=e.arrowRef,l=e.color,u=(0,i.a)(e,["placement","hasChrome","children","arrowProps","tooltipRef","arrowRef","color"]);return a.createElement(ze,Object.assign({hasChrome:r,placement:t,ref:s},u,{color:l}),r&&a.createElement(_e,Object.assign({placement:t,ref:c},o,{color:l})),n)};Fe.defaultProps={color:void 0,arrowRef:void 0,tooltipRef:void 0,hasChrome:!0,placement:"top",arrowProps:{}};var qe=i.w.document,Xe=s.zo.div(n||(n=p(["\n display: inline-block;\n cursor: ",";\n"])),(function(e){return"hover"===e.mode?"default":"pointer"})),Ye=s.zo.g(o||(o=p(["\n cursor: ",";\n"])),(function(e){return"hover"===e.mode?"default":"pointer"})),Ne=function(e){var t=e.svg,r=e.trigger,n=(e.closeOnClick,e.placement),o=e.modifiers,s=e.hasChrome,c=e.tooltip,l=e.children,u=e.tooltipShown,f=e.onVisibilityChange,p=(0,i.a)(e,["svg","trigger","closeOnClick","placement","modifiers","hasChrome","tooltip","children","tooltipShown","onVisibilityChange"]),d=t?Ye:Xe;return a.createElement(Ve,{placement:n,trigger:r,modifiers:o,tooltipShown:u,onVisibilityChange:f,tooltip:function(e){var t=e.getTooltipProps,r=e.getArrowProps,n=e.tooltipRef,o=e.arrowRef,i=e.placement;return a.createElement(Fe,Object.assign({hasChrome:s,placement:i,tooltipRef:n,arrowRef:o,arrowProps:r()},t()),"function"==typeof c?c({onHide:function(){return f(!1)}}):c)}},(function(e){var t=e.getTriggerProps,r=e.triggerRef;return a.createElement(d,Object.assign({ref:r},t(),p),l)}))};Ne.defaultProps={svg:!1,trigger:"hover",closeOnClick:!1,placement:"top",modifiers:[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:!0,tooltipShown:!1};var Ie=function(e){var t,r,n=e.startOpen,o=e.onVisibilityChange,s=(0,i.a)(e,["startOpen","onVisibilityChange"]),c=(t=(0,a.useState)(n||!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],u=c[1],p=(0,a.useCallback)((function(e){o&&!1===o(e)||u(e)}),[o]);return(0,a.useEffect)((function(){var e=function(){return p(!1)};qe.addEventListener("keydown",e,!1);var t=Array.from(qe.getElementsByTagName("iframe")),r=[];return t.forEach((function(t){var n=function(){try{t.contentWindow.document&&(t.contentWindow.document.addEventListener("click",e),r.push((function(){try{t.contentWindow.document.removeEventListener("click",e)}catch(e){}})))}catch(e){}};n(),t.addEventListener("load",n),r.push((function(){t.removeEventListener("load",n)}))})),function(){qe.removeEventListener("keydown",e),r.forEach((function(e){e()}))}})),a.createElement(Ne,Object.assign({},s,{tooltipShown:l,onVisibilityChange:p}))}}}]);
|
@@ -1,19 +1,19 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="UTF-8" />
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
6
|
-
<title>Creevey</title>
|
7
|
-
<style>
|
8
|
-
body {
|
9
|
-
margin: 0;
|
10
|
-
font-family: 'Nunito Sans', -apple-system, '.SFNSText-Regular', 'San Francisco', BlinkMacSystemFont, 'Segoe UI',
|
11
|
-
'Helvetica Neue', Helvetica, Arial, sans-serif;
|
12
|
-
}
|
13
|
-
</style>
|
14
|
-
</head>
|
15
|
-
<body>
|
16
|
-
<div id="root"></div>
|
17
|
-
<script src="main.js"></script>
|
18
|
-
</body>
|
19
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8" />
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
6
|
+
<title>Creevey</title>
|
7
|
+
<style>
|
8
|
+
body {
|
9
|
+
margin: 0;
|
10
|
+
font-family: 'Nunito Sans', -apple-system, '.SFNSText-Regular', 'San Francisco', BlinkMacSystemFont, 'Segoe UI',
|
11
|
+
'Helvetica Neue', Helvetica, Arial, sans-serif;
|
12
|
+
}
|
13
|
+
</style>
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
<div id="root"></div>
|
17
|
+
<script src="main.js"></script>
|
18
|
+
</body>
|
19
|
+
</html>
|