static.kuangkie.hydrogen.bundle.bd58ee926383fa71ce43.js Maven / Gradle / Ivy
(self.webpackChunkhydrogen_react=self.webpackChunkhydrogen_react||[]).push([[4769],{12158:function(t,e,r){"use strict";function i(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function n(t){return t instanceof i(t).Element||t instanceof Element}function o(t){return t instanceof i(t).HTMLElement||t instanceof HTMLElement}function a(t){return"undefined"!=typeof ShadowRoot&&(t instanceof i(t).ShadowRoot||t instanceof ShadowRoot)}r.d(e,{fi:function(){return ct}});var s=Math.max,l=Math.min,u=Math.round;function c(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function f(){return!/^((?!chrome|android).)*safari/i.test(c())}function h(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var a=t.getBoundingClientRect(),s=1,l=1;e&&o(t)&&(s=t.offsetWidth>0&&u(a.width)/t.offsetWidth||1,l=t.offsetHeight>0&&u(a.height)/t.offsetHeight||1);var c=(n(t)?i(t):window).visualViewport,h=!f()&&r,d=(a.left+(h&&c?c.offsetLeft:0))/s,p=(a.top+(h&&c?c.offsetTop:0))/l,v=a.width/s,g=a.height/l;return{width:v,height:g,top:p,right:d+v,bottom:p+g,left:d,x:d,y:p}}function d(t){var e=i(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function p(t){return t?(t.nodeName||"").toLowerCase():null}function v(t){return((n(t)?t.ownerDocument:t.document)||window.document).documentElement}function g(t){return h(v(t)).left+d(t).scrollLeft}function m(t){return i(t).getComputedStyle(t)}function x(t){var e=m(t),r=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function b(t,e,r){void 0===r&&(r=!1);var n,a,s=o(e),l=o(e)&&function(t){var e=t.getBoundingClientRect(),r=u(e.width)/t.offsetWidth||1,i=u(e.height)/t.offsetHeight||1;return 1!==r||1!==i}(e),c=v(e),f=h(t,l,r),m={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!r)&&(("body"!==p(e)||x(c))&&(m=(n=e)!==i(n)&&o(n)?{scrollLeft:(a=n).scrollLeft,scrollTop:a.scrollTop}:d(n)),o(e)?((b=h(e,!0)).x+=e.clientLeft,b.y+=e.clientTop):c&&(b.x=g(c))),{x:f.left+m.scrollLeft-b.x,y:f.top+m.scrollTop-b.y,width:f.width,height:f.height}}function y(t){var e=h(t),r=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:i}}function w(t){return"html"===p(t)?t:t.assignedSlot||t.parentNode||(a(t)?t.host:null)||v(t)}function _(t){return["html","body","#document"].indexOf(p(t))>=0?t.ownerDocument.body:o(t)&&x(t)?t:_(w(t))}function k(t,e){var r;void 0===e&&(e=[]);var n=_(t),o=n===(null==(r=t.ownerDocument)?void 0:r.body),a=i(n),s=o?[a].concat(a.visualViewport||[],x(n)?n:[]):n,l=e.concat(s);return o?l:l.concat(k(w(s)))}function C(t){return["table","td","th"].indexOf(p(t))>=0}function S(t){return o(t)&&"fixed"!==m(t).position?t.offsetParent:null}function B(t){for(var e=i(t),r=S(t);r&&C(r)&&"static"===m(r).position;)r=S(r);return r&&("html"===p(r)||"body"===p(r)&&"static"===m(r).position)?e:r||function(t){var e=/firefox/i.test(c());if(/Trident/i.test(c())&&o(t)&&"fixed"===m(t).position)return null;var r=w(t);for(a(r)&&(r=r.host);o(r)&&["html","body"].indexOf(p(r))<0;){var i=m(r);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return r;r=r.parentNode}return null}(t)||e}var E="top",A="bottom",T="right",O="left",M="auto",L=[E,A,T,O],N="start",P="end",j="viewport",R="popper",z=L.reduce((function(t,e){return t.concat([e+"-"+N,e+"-"+P])}),[]),D=[].concat(L,[M]).reduce((function(t,e){return t.concat([e,e+"-"+N,e+"-"+P])}),[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function I(t){var e=new Map,r=new Set,i=[];function n(t){r.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!r.has(t)){var i=e.get(t);i&&n(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){r.has(t.name)||n(t)})),i}var q={placement:"bottom",modifiers:[],strategy:"absolute"};function V(){for(var t=arguments.length,e=new Array(t),r=0;r=0?"x":"y"}function G(t){var e,r=t.reference,i=t.element,n=t.placement,o=n?U(n):null,a=n?Y(n):null,s=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2;switch(o){case E:e={x:s,y:r.y-i.height};break;case A:e={x:s,y:r.y+r.height};break;case T:e={x:r.x+r.width,y:l};break;case O:e={x:r.x-i.width,y:l};break;default:e={x:r.x,y:r.y}}var u=o?X(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case N:e[u]=e[u]-(r[c]/2-i[c]/2);break;case P:e[u]=e[u]+(r[c]/2-i[c]/2)}}return e}var $={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,s=t.offsets,l=t.position,c=t.gpuAcceleration,f=t.adaptive,h=t.roundOffsets,d=t.isFixed,p=s.x,g=void 0===p?0:p,x=s.y,b=void 0===x?0:x,y="function"==typeof h?h({x:g,y:b}):{x:g,y:b};g=y.x,b=y.y;var w=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),k=O,C=E,S=window;if(f){var M=B(r),L="clientHeight",N="clientWidth";M===i(r)&&"static"!==m(M=v(r)).position&&"absolute"===l&&(L="scrollHeight",N="scrollWidth"),(o===E||(o===O||o===T)&&a===P)&&(C=A,b-=(d&&M===S&&S.visualViewport?S.visualViewport.height:M[L])-n.height,b*=c?1:-1),o!==O&&(o!==E&&o!==A||a!==P)||(k=T,g-=(d&&M===S&&S.visualViewport?S.visualViewport.width:M[N])-n.width,g*=c?1:-1)}var j,R=Object.assign({position:l},f&&$),z=!0===h?function(t,e){var r=t.x,i=t.y,n=e.devicePixelRatio||1;return{x:u(r*n)/n||0,y:u(i*n)/n||0}}({x:g,y:b},i(r)):{x:g,y:b};return g=z.x,b=z.y,c?Object.assign({},R,((j={})[C]=_?"0":"",j[k]=w?"0":"",j.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",j)):Object.assign({},R,((e={})[C]=_?b+"px":"",e[k]=w?g+"px":"",e.transform="",e))}var K={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(t){return t.replace(/left|right|bottom|top/g,(function(t){return K[t]}))}var J={start:"end",end:"start"};function tt(t){return t.replace(/start|end/g,(function(t){return J[t]}))}function et(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&a(r)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function rt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function it(t,e,r){return e===j?rt(function(t,e){var r=i(t),n=v(t),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;var c=f();(c||!c&&"fixed"===e)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l+g(t),y:u}}(t,r)):n(e)?function(t,e){var r=h(t,!1,"fixed"===e);return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}(e,r):rt(function(t){var e,r=v(t),i=d(t),n=null==(e=t.ownerDocument)?void 0:e.body,o=s(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=s(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-i.scrollLeft+g(t),u=-i.scrollTop;return"rtl"===m(n||r).direction&&(l+=s(r.clientWidth,n?n.clientWidth:0)-o),{width:o,height:a,x:l,y:u}}(v(t)))}function nt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ot(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}function at(t,e){void 0===e&&(e={});var r=e,i=r.placement,a=void 0===i?t.placement:i,u=r.strategy,c=void 0===u?t.strategy:u,f=r.boundary,d=void 0===f?"clippingParents":f,g=r.rootBoundary,x=void 0===g?j:g,b=r.elementContext,y=void 0===b?R:b,_=r.altBoundary,C=void 0!==_&&_,S=r.padding,O=void 0===S?0:S,M=nt("number"!=typeof O?O:ot(O,L)),N=y===R?"reference":R,P=t.rects.popper,z=t.elements[C?N:y],D=function(t,e,r,i){var a="clippingParents"===e?function(t){var e=k(w(t)),r=["absolute","fixed"].indexOf(m(t).position)>=0&&o(t)?B(t):t;return n(r)?e.filter((function(t){return n(t)&&et(t,r)&&"body"!==p(t)})):[]}(t):[].concat(e),u=[].concat(a,[r]),c=u[0],f=u.reduce((function(e,r){var n=it(t,r,i);return e.top=s(n.top,e.top),e.right=l(n.right,e.right),e.bottom=l(n.bottom,e.bottom),e.left=s(n.left,e.left),e}),it(t,c,i));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}(n(z)?z:z.contextElement||v(t.elements.popper),d,x,c),F=h(t.elements.reference),I=G({reference:F,element:P,strategy:"absolute",placement:a}),q=rt(Object.assign({},P,I)),V=y===R?q:F,H={top:D.top-V.top+M.top,bottom:V.bottom-D.bottom+M.bottom,left:D.left-V.left+M.left,right:V.right-D.right+M.right},W=t.modifiersData.offset;if(y===R&&W){var U=W[a];Object.keys(H).forEach((function(t){var e=[T,A].indexOf(t)>=0?1:-1,r=[E,A].indexOf(t)>=0?"y":"x";H[t]+=U[r]*e}))}return H}function st(t,e,r){return s(t,l(e,r))}function lt(t,e,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function ut(t){return[E,T,A,O].some((function(e){return t[e]>=0}))}var ct=H({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=void 0===o||o,s=n.resize,l=void 0===s||s,u=i(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach((function(t){t.addEventListener("scroll",r.update,W)})),l&&u.addEventListener("resize",r.update,W),function(){a&&c.forEach((function(t){t.removeEventListener("scroll",r.update,W)})),l&&u.removeEventListener("resize",r.update,W)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=G({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,r=t.options,i=r.gpuAcceleration,n=void 0===i||i,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,l=void 0===s||s,u={placement:U(e.placement),variation:Y(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Z(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Z(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},n=e.elements[t];o(n)&&p(n)&&(Object.assign(n.style,r),Object.keys(i).forEach((function(t){var e=i[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],n=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]).reduce((function(t,e){return t[e]="",t}),{});o(i)&&p(i)&&(Object.assign(i.style,a),Object.keys(n).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,i=t.name,n=r.offset,o=void 0===n?[0,0]:n,a=D.reduce((function(t,r){return t[r]=function(t,e,r){var i=U(t),n=[O,E].indexOf(i)>=0?-1:1,o="function"==typeof r?r(Object.assign({},e,{placement:t})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*n,[O,T].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(r,e.rects,o),t}),{}),s=a[e.placement],l=s.x,u=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var n=r.mainAxis,o=void 0===n||n,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,h=r.altBoundary,d=r.flipVariations,p=void 0===d||d,v=r.allowedAutoPlacements,g=e.options.placement,m=U(g),x=l||(m!==g&&p?function(t){if(U(t)===M)return[];var e=Q(t);return[tt(t),e,tt(e)]}(g):[Q(g)]),b=[g].concat(x).reduce((function(t,r){return t.concat(U(r)===M?function(t,e){void 0===e&&(e={});var r=e,i=r.placement,n=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=void 0===l?D:l,c=Y(i),f=c?s?z:z.filter((function(t){return Y(t)===c})):L,h=f.filter((function(t){return u.indexOf(t)>=0}));0===h.length&&(h=f);var d=h.reduce((function(e,r){return e[r]=at(t,{placement:r,boundary:n,rootBoundary:o,padding:a})[U(r)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}(e,{placement:r,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):r)}),[]),y=e.rects.reference,w=e.rects.popper,_=new Map,k=!0,C=b[0],S=0;S=0,F=R?"width":"height",I=at(e,{placement:B,boundary:c,rootBoundary:f,altBoundary:h,padding:u}),q=R?j?T:O:j?A:E;y[F]>w[F]&&(q=Q(q));var V=Q(q),H=[];if(o&&H.push(I[P]<=0),s&&H.push(I[q]<=0,I[V]<=0),H.every((function(t){return t}))){C=B,k=!1;break}_.set(B,H)}if(k)for(var W=function(t){var e=b.find((function(e){var r=_.get(e);if(r)return r.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},X=p?3:1;X>0&&"break"!==W(X);X--);e.placement!==C&&(e.modifiersData[i]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,i=t.name,n=r.mainAxis,o=void 0===n||n,a=r.altAxis,u=void 0!==a&&a,c=r.boundary,f=r.rootBoundary,h=r.altBoundary,d=r.padding,p=r.tether,v=void 0===p||p,g=r.tetherOffset,m=void 0===g?0:g,x=at(e,{boundary:c,rootBoundary:f,padding:d,altBoundary:h}),b=U(e.placement),w=Y(e.placement),_=!w,k=X(b),C="x"===k?"y":"x",S=e.modifiersData.popperOffsets,M=e.rects.reference,L=e.rects.popper,P="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,j="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),R=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,z={x:0,y:0};if(S){if(o){var D,F="y"===k?E:O,I="y"===k?A:T,q="y"===k?"height":"width",V=S[k],H=V+x[F],W=V-x[I],G=v?-L[q]/2:0,$=w===N?M[q]:L[q],Z=w===N?-L[q]:-M[q],K=e.elements.arrow,Q=v&&K?y(K):{width:0,height:0},J=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tt=J[F],et=J[I],rt=st(0,M[q],Q[q]),it=_?M[q]/2-G-rt-tt-j.mainAxis:$-rt-tt-j.mainAxis,nt=_?-M[q]/2+G+rt+et+j.mainAxis:Z+rt+et+j.mainAxis,ot=e.elements.arrow&&B(e.elements.arrow),lt=ot?"y"===k?ot.clientTop||0:ot.clientLeft||0:0,ut=null!=(D=null==R?void 0:R[k])?D:0,ct=V+nt-ut,ft=st(v?l(H,V+it-ut-lt):H,V,v?s(W,ct):W);S[k]=ft,z[k]=ft-V}if(u){var ht,dt="x"===k?E:O,pt="x"===k?A:T,vt=S[C],gt="y"===C?"height":"width",mt=vt+x[dt],xt=vt-x[pt],bt=-1!==[E,O].indexOf(b),yt=null!=(ht=null==R?void 0:R[C])?ht:0,wt=bt?mt:vt-M[gt]-L[gt]-yt+j.altAxis,_t=bt?vt+M[gt]+L[gt]-yt-j.altAxis:xt,kt=v&&bt?function(t,e,r){var i=st(t,e,r);return i>r?r:i}(wt,vt,_t):st(v?wt:mt,vt,v?_t:xt);S[C]=kt,z[C]=kt-vt}e.modifiersData[i]=z}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,i=t.name,n=t.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=U(r.placement),l=X(s),u=[O,T].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(t,e){return nt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ot(t,L))}(n.padding,r),f=y(o),h="y"===l?E:O,d="y"===l?A:T,p=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],v=a[l]-r.rects.reference[l],g=B(o),m=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,x=p/2-v/2,b=c[h],w=m-f[u]-c[d],_=m/2-f[u]/2+x,k=st(b,_,w),C=l;r.modifiersData[i]=((e={})[C]=k,e.centerOffset=k-_,e)}},effect:function(t){var e=t.state,r=t.options.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&et(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,r=t.name,i=e.rects.reference,n=e.rects.popper,o=e.modifiersData.preventOverflow,a=at(e,{elementContext:"reference"}),s=at(e,{altBoundary:!0}),l=lt(a,i),u=lt(s,n,o),c=ut(l),f=ut(u);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]})},38181:function(t){window,t.exports=function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(i,n,function(e){return t[e]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=1)}([function(t,e,r){var i,n;i=[r(2)],void 0===(n=function(t){function e(i){if(e.is(i,"function"))return r?i():t.on("raphael.DOMload",i);if(e.is(i,O))return e._engine.create[d](e,i.splice(0,3+e.is(i[0],T))).add(i);var n=Array.prototype.slice.call(arguments,0);if(e.is(n[n.length-1],"function")){var o=n.pop();return r?o.call(e._engine.create[d](e,n)):t.on("raphael.DOMload",(function(){o.call(e._engine.create[d](e,n))}))}return e._engine.create[d](e,arguments)}e.version="2.3.0",e.eve=t;var r,i,n,o,a=/[, ]+/,s={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},l=/\{(\d+)\}/g,u="hasOwnProperty",c={doc:document,win:window},f={was:Object.prototype[u].call(c.win,"Raphael"),is:c.win.Raphael},h=function(){this.ca=this.customAttributes={}},d="apply",p="concat",v="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,g="",m=" ",x=String,b="split",y="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[b](m),w={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},_=x.prototype.toLowerCase,k=Math,C=k.max,S=k.min,B=k.abs,E=k.pow,A=k.PI,T="number",O="array",M=Object.prototype.toString,L=(e._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),N={NaN:1,Infinity:1,"-Infinity":1},P=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,j=k.round,R=parseFloat,z=parseInt,D=x.prototype.toUpperCase,F=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},I=e._availableAnimAttrs={blur:T,"clip-rect":"csv",cx:T,cy:T,fill:"colour","fill-opacity":T,"font-size":T,height:T,opacity:T,path:"path",r:T,rx:T,ry:T,stroke:"colour","stroke-opacity":T,"stroke-width":T,transform:"transform",width:T,x:T,y:T},q=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,V={hs:1,rg:1},H=/,?([achlmqrstvxz]),?/gi,W=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,U=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,Y=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,X=(e._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),G=function(t,e){return R(t)-R(e)},$=function(t){return t},Z=e._rectPath=function(t,e,r,i,n){return n?[["M",t+n,e],["l",r-2*n,0],["a",n,n,0,0,1,n,n],["l",0,i-2*n],["a",n,n,0,0,1,-n,n],["l",2*n-r,0],["a",n,n,0,0,1,-n,-n],["l",0,2*n-i],["a",n,n,0,0,1,n,-n],["z"]]:[["M",t,e],["l",r,0],["l",0,i],["l",-r,0],["z"]]},K=function(t,e,r,i){return null==i&&(i=r),[["M",t,e],["m",0,-i],["a",r,i,0,1,1,0,2*i],["a",r,i,0,1,1,0,-2*i],["z"]]},Q=e._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return K(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return K(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return Z(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return Z(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return Z(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return Z(e.x,e.y,e.width,e.height)}},J=e.mapPath=function(t,e){if(!e)return t;var r,i,n,o,a,s,l;for(n=0,a=(t=Et(t)).length;n',(tt=et.firstChild).style.behavior="url(#default#VML)",!tt||"object"!=typeof tt.adj)return e.type=g;et=null}function rt(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var r in t)t[u](r)&&(e[r]=rt(t[r]));return e}e.svg=!(e.vml="VML"==e.type),e._Paper=h,e.fn=i=h.prototype=e.prototype,e._id=0,e.is=function(t,e){return"finite"==(e=_.call(e))?!N[u](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||M.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,r,i,n,o,a){if(null==o){var s=t-i,l=r-n;return s||l?(180+180*k.atan2(-l,-s)/A+360)%360:0}return e.angle(t,r,o,a)-e.angle(i,n,o,a)},e.rad=function(t){return t%360*A/180},e.deg=function(t){return Math.round(180*t/A%360*1e3)/1e3},e.snapTo=function(t,r,i){if(i=e.is(i,"finite")?i:10,e.is(t,O)){for(var n=t.length;n--;)if(B(t[n]-r)<=i)return t[n]}else{var o=r%(t=+t);if(ot-i)return r-o+t}return r},e.createUUID=(n=/[xy]/g,o=function(t){var e=16*k.random()|0;return("x"==t?e:3&e|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(n,o).toUpperCase()}),e.setWindow=function(r){t("raphael.setWindow",e,c.win,r),c.win=r,c.doc=c.win.document,e._engine.initWin&&e._engine.initWin(c.win)};var it=function(t){if(e.vml){var r,i=/^\s+|\s+$/g;try{var n=new ActiveXObject("htmlfile");n.write(""),n.close(),r=n.body}catch(t){r=createPopup().document.body}var o=r.createTextRange();it=ut((function(t){try{r.style.color=x(t).replace(i,g);var e=o.queryCommandValue("ForeColor");return"#"+("000000"+(e=(255&e)<<16|65280&e|(16711680&e)>>>16).toString(16)).slice(-6)}catch(t){return"none"}}))}else{var a=c.doc.createElement("i");a.title="Raphaël Colour Picker",a.style.display="none",c.doc.body.appendChild(a),it=ut((function(t){return a.style.color=t,c.doc.defaultView.getComputedStyle(a,g).getPropertyValue("color")}))}return it(t)},nt=function(){return"hsb("+[this.h,this.s,this.b]+")"},ot=function(){return"hsl("+[this.h,this.s,this.l]+")"},at=function(){return this.hex},st=function(t,r,i){if(null==r&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,r=t.g,t=t.r),null==r&&e.is(t,"string")){var n=e.getRGB(t);t=n.r,r=n.g,i=n.b}return(t>1||r>1||i>1)&&(t/=255,r/=255,i/=255),[t,r,i]},lt=function(t,r,i,n){var o={r:t*=255,g:r*=255,b:i*=255,hex:e.rgb(t,r,i),toString:at};return e.is(n,"finite")&&(o.opacity=n),o};function ut(t,e,r){return function i(){var n=Array.prototype.slice.call(arguments,0),o=n.join("␀"),a=i.cache=i.cache||{},s=i.count=i.count||[];return a[u](o)?(function(t,e){for(var r=0,i=t.length;r=1e3&&delete a[s.shift()],s.push(o),a[o]=t[d](e,n),r?r(a[o]):a[o])}}function ct(){return this.hex}function ft(t,e){for(var r=[],i=0,n=t.length;n-2*!e>i;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?n-4==i?o[3]={x:+t[0],y:+t[1]}:n-2==i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[n-2],y:+t[n-1]}:n-4==i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),r.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}e.color=function(t){var r;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(r=e.hsb2rgb(t),t.r=r.r,t.g=r.g,t.b=r.b,t.hex=r.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(r=e.hsl2rgb(t),t.r=r.r,t.g=r.g,t.b=r.b,t.hex=r.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(r=e.rgb2hsl(t),t.h=r.h,t.s=r.s,t.l=r.l,r=e.rgb2hsb(t),t.v=r.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=at,t},e.hsb2rgb=function(t,e,r,i){var n,o,a,s,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(r=t.b,e=t.s,i=t.o,t=t.h),s=(l=r*e)*(1-B((t=(t*=360)%360/60)%2-1)),n=o=a=r-l,lt(n+=[l,s,0,0,s,l][t=~~t],o+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],i)},e.hsl2rgb=function(t,e,r,i){var n,o,a,s,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(r=t.l,e=t.s,t=t.h),(t>1||e>1||r>1)&&(t/=360,e/=100,r/=100),s=(l=2*e*(r<.5?r:1-r))*(1-B((t=(t*=360)%360/60)%2-1)),n=o=a=r-l/2,lt(n+=[l,s,0,0,s,l][t=~~t],o+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],i)},e.rgb2hsb=function(t,e,r){var i,n;return t=(r=st(t,e,r))[0],e=r[1],r=r[2],{h:((0==(n=(i=C(t,e,r))-S(t,e,r))?null:i==t?(e-r)/n:i==e?(r-t)/n+2:(t-e)/n+4)+360)%6*60/360,s:0==n?0:n/i,b:i,toString:nt}},e.rgb2hsl=function(t,e,r){var i,n,o,a;return t=(r=st(t,e,r))[0],e=r[1],r=r[2],i=((n=C(t,e,r))+(o=S(t,e,r)))/2,{h:((0==(a=n-o)?null:n==t?(e-r)/a:n==e?(r-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:0==a?0:i<.5?a/(2*i):a/(2-2*i),l:i,toString:ot}},e._path2string=function(){return this.join(",").replace(H,"$1")},e._preload=function(t,e){var r=c.doc.createElement("img");r.style.cssText="position:absolute;left:-9999em;top:-9999em",r.onload=function(){e.call(this),this.onload=null,c.doc.body.removeChild(this)},r.onerror=function(){c.doc.body.removeChild(this)},c.doc.body.appendChild(r),r.src=t},e.getRGB=ut((function(t){if(!t||(t=x(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ct};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:ct};!V[u](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=it(t));var r,i,n,o,a,s,l=t.match(L);return l?(l[2]&&(n=z(l[2].substring(5),16),i=z(l[2].substring(3,5),16),r=z(l[2].substring(1,3),16)),l[3]&&(n=z((a=l[3].charAt(3))+a,16),i=z((a=l[3].charAt(2))+a,16),r=z((a=l[3].charAt(1))+a,16)),l[4]&&(s=l[4][b](q),r=R(s[0]),"%"==s[0].slice(-1)&&(r*=2.55),i=R(s[1]),"%"==s[1].slice(-1)&&(i*=2.55),n=R(s[2]),"%"==s[2].slice(-1)&&(n*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(o=R(s[3])),s[3]&&"%"==s[3].slice(-1)&&(o/=100)),l[5]?(s=l[5][b](q),r=R(s[0]),"%"==s[0].slice(-1)&&(r*=2.55),i=R(s[1]),"%"==s[1].slice(-1)&&(i*=2.55),n=R(s[2]),"%"==s[2].slice(-1)&&(n*=2.55),("deg"==s[0].slice(-3)||"°"==s[0].slice(-1))&&(r/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(o=R(s[3])),s[3]&&"%"==s[3].slice(-1)&&(o/=100),e.hsb2rgb(r,i,n,o)):l[6]?(s=l[6][b](q),r=R(s[0]),"%"==s[0].slice(-1)&&(r*=2.55),i=R(s[1]),"%"==s[1].slice(-1)&&(i*=2.55),n=R(s[2]),"%"==s[2].slice(-1)&&(n*=2.55),("deg"==s[0].slice(-3)||"°"==s[0].slice(-1))&&(r/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(o=R(s[3])),s[3]&&"%"==s[3].slice(-1)&&(o/=100),e.hsl2rgb(r,i,n,o)):((l={r:r,g:i,b:n,toString:ct}).hex="#"+(16777216|n|i<<8|r<<16).toString(16).slice(1),e.is(o,"finite")&&(l.opacity=o),l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ct}}),e),e.hsb=ut((function(t,r,i){return e.hsb2rgb(t,r,i).hex})),e.hsl=ut((function(t,r,i){return e.hsl2rgb(t,r,i).hex})),e.rgb=ut((function(t,e,r){function i(t){return t+.5|0}return"#"+(16777216|i(r)|i(e)<<8|i(t)<<16).toString(16).slice(1)})),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},r=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),r.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var r=ht(t);if(r.arr)return bt(r.arr);var i={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},n=[];return e.is(t,O)&&e.is(t[0],O)&&(n=bt(t)),n.length||x(t).replace(W,(function(t,e,r){var o=[],a=e.toLowerCase();if(r.replace(Y,(function(t,e){e&&o.push(+e)})),"m"==a&&o.length>2&&(n.push([e][p](o.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)n.push([e][p](o));else for(;o.length>=i[a]&&(n.push([e][p](o.splice(0,i[a]))),i[a]););})),n.toString=e._path2string,r.arr=bt(n),n},e.parseTransformString=ut((function(t){if(!t)return null;var r=[];return e.is(t,O)&&e.is(t[0],O)&&(r=bt(t)),r.length||x(t).replace(U,(function(t,e,i){var n=[];_.call(e),i.replace(Y,(function(t,e){e&&n.push(+e)})),r.push([e][p](n))})),r.toString=e._path2string,r}),this,(function(t){if(!t)return t;for(var e=[],r=0;r1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,d=0;d<12;d++){var p=u*c[d]+u,v=dt(p,t,r,n,a),g=dt(p,e,i,o,s),m=v*v+g*g;h+=f[d]*k.sqrt(m)}return u*h}function vt(t,e,r,i,n,o,a,s){if(!(C(t,r)C(n,a)||C(e,i)C(o,s))){var l=(t-r)*(o-s)-(e-i)*(n-a);if(l){var u=((t*i-e*r)*(n-a)-(t-r)*(n*s-o*a))/l,c=((t*i-e*r)*(o-s)-(e-i)*(n*s-o*a))/l,f=+u.toFixed(2),h=+c.toFixed(2);if(!(f<+S(t,r).toFixed(2)||f>+C(t,r).toFixed(2)||f<+S(n,a).toFixed(2)||f>+C(n,a).toFixed(2)||h<+S(e,i).toFixed(2)||h>+C(e,i).toFixed(2)||h<+S(o,s).toFixed(2)||h>+C(o,s).toFixed(2)))return{x:u,y:c}}}}function gt(t,r,i){var n=e.bezierBBox(t),o=e.bezierBBox(r);if(!e.isBBoxIntersect(n,o))return i?0:[];for(var a=pt.apply(0,t),s=pt.apply(0,r),l=C(~~(a/5),1),u=C(~~(s/5),1),c=[],f=[],h={},d=i?0:[],p=0;p=0&&E<=1.001&&A>=0&&A<=1.001&&(i?d++:d.push({x:k.x,y:k.y,t1:S(E,1),t2:S(A,1)}))}}return d}function mt(t,r,i){t=e._path2curve(t),r=e._path2curve(r);for(var n,o,a,s,l,u,c,f,h,d,p=i?0:[],v=0,g=t.length;vx||m=t.x&&e<=t.x2&&r>=t.y&&r<=t.y2},e.isBBoxIntersect=function(t,r){var i=e.isPointInsideBBox;return i(r,t.x,t.y)||i(r,t.x2,t.y)||i(r,t.x,t.y2)||i(r,t.x2,t.y2)||i(t,r.x,r.y)||i(t,r.x2,r.y)||i(t,r.x,r.y2)||i(t,r.x2,r.y2)||(t.xr.x||r.xt.x)&&(t.yr.y||r.yt.y)},e.pathIntersection=function(t,e){return mt(t,e)},e.pathIntersectionNumber=function(t,e){return mt(t,e,1)},e.isPointInsidePath=function(t,r,i){var n=e.pathBBox(t);return e.isPointInsideBBox(n,r,i)&&mt(t,[["M",r,i],["H",n.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var xt=e.pathBBox=function(t){var e=ht(t);if(e.bbox)return rt(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var r,i=0,n=0,o=[],a=[],s=0,l=(t=Et(t)).length;s1&&(r*=x=k.sqrt(x),i*=x);var y=r*r,w=i*i,_=(o==a?-1:1)*k.sqrt(B((y*w-y*m*m-w*g*g)/(y*m*m+w*g*g))),C=_*r*m/i+(t+s)/2,S=_*-i*g/r+(e+l)/2,E=k.asin(((e-S)/i).toFixed(9)),T=k.asin(((l-S)/i).toFixed(9));(E=tT&&(E-=2*A),!a&&T>E&&(T-=2*A)}var O=T-E;if(B(O)>f){var M=T,L=s,N=l;T=E+f*(a&&T>E?1:-1),s=C+r*k.cos(T),l=S+i*k.sin(T),d=Ct(s,l,r,i,n,0,a,L,N,[T,M,C,S])}O=T-E;var P=k.cos(E),j=k.sin(E),R=k.cos(T),z=k.sin(T),D=k.tan(O/4),F=4/3*r*D,I=4/3*i*D,q=[t,e],V=[t+F*j,e-I*P],H=[s+F*z,l-I*R],W=[s,l];if(V[0]=2*q[0]-V[0],V[1]=2*q[1]-V[1],u)return[V,H,W][p](d);for(var U=[],Y=0,X=(d=[V,H,W][p](d).join()[b](",")).length;Y"1e12"&&(h=.5),B(p)>"1e12"&&(p=.5),h>0&&h<1&&(l=St(t,e,r,i,n,o,a,s,h),g.push(l.x),v.push(l.y)),p>0&&p<1&&(l=St(t,e,r,i,n,o,a,s,p),g.push(l.x),v.push(l.y)),u=o-2*i+e-(s-2*o+i),f=e-i,h=(-(c=2*(i-e)-2*(o-i))+k.sqrt(c*c-4*u*f))/2/u,p=(-c-k.sqrt(c*c-4*u*f))/2/u,B(h)>"1e12"&&(h=.5),B(p)>"1e12"&&(p=.5),h>0&&h<1&&(l=St(t,e,r,i,n,o,a,s,h),g.push(l.x),v.push(l.y)),p>0&&p<1&&(l=St(t,e,r,i,n,o,a,s,p),g.push(l.x),v.push(l.y)),{min:{x:S[d](0,g),y:S[d](0,v)},max:{x:C[d](0,g),y:C[d](0,v)}}})),Et=e._path2curve=ut((function(t,e){var r=!e&&ht(t);if(!e&&r.curve)return bt(r.curve);for(var i=wt(t),n=e&&wt(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(t,e,r){var i,n;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][p](Ct[d](0,[e.x,e.y][p](t.slice(1))));break;case"S":"C"==r||"S"==r?(i=2*e.x-e.bx,n=2*e.y-e.by):(i=e.x,n=e.y),t=["C",i,n][p](t.slice(1));break;case"T":"Q"==r||"T"==r?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][p](kt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][p](kt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][p](_t(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][p](_t(e.x,e.y,t[1],e.y));break;case"V":t=["C"][p](_t(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][p](_t(e.x,e.y,e.X,e.Y))}return t},l=function(t,e){if(t[e].length>7){t[e].shift();for(var r=t[e];r.length;)c[e]="A",n&&(f[e]="A"),t.splice(e++,0,["C"][p](r.splice(0,6)));t.splice(e,1),m=C(i.length,n&&n.length||0)}},u=function(t,e,r,o,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",o.x,o.y]),r.bx=0,r.by=0,r.x=t[a][1],r.y=t[a][2],m=C(i.length,n&&n.length||0))},c=[],f=[],h="",v="",g=0,m=C(i.length,n&&n.length||0);g.01;)u=pt(t,e,r,i,n,o,a,s,f+=(un){if(r&&!h.start){if(f+=["C"+(c=Xt(a,s,l[1],l[2],l[3],l[4],l[5],l[6],n-d)).start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],o)return f;h.start=f,f=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,l[5],l[6]].join(),d+=u,a=+l[5],s=+l[6];continue}if(!t&&!r)return{x:(c=Xt(a,s,l[1],l[2],l[3],l[4],l[5],l[6],n-d)).x,y:c.y,alpha:c.alpha}}d+=u,a=+l[5],s=+l[6]}f+=l.shift()+l}return h.end=f,(c=t?d:r?h:e.findDotsAtSegment(a,s,l[0],l[1],l[2],l[3],l[4],l[5],1)).alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},$t=Gt(1),Zt=Gt(),Kt=Gt(0,1);e.getTotalLength=$t,e.getPointAtLength=Zt,e.getSubpath=function(t,e,r){if(this.getTotalLength(t)-r<1e-6)return Kt(t,e).end;var i=Kt(t,r,1);return e?Kt(i,e).end:i},Ht.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():$t(t)},Ht.getPointAtLength=function(t){var e=this.getPath();if(e)return Zt(e,t)},Ht.getPath=function(){var t,r=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return r&&(t=r(this)),t},Ht.getSubpath=function(t,r){var i=this.getPath();if(i)return e.getSubpath(i,t,r)};var Qt=e.easing_formulas={linear:function(t){return t},"<":function(t){return E(t,1.7)},">":function(t){return E(t,.48)},"<>":function(t){var e=.48-t/1.04,r=k.sqrt(.1734+e*e),i=r-e,n=-r-e,o=E(B(i),1/3)*(i<0?-1:1)+E(B(n),1/3)*(n<0?-1:1)+.5;return 3*(1-o)*o*o+o*o*o},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:E(2,-10*t)*k.sin(2*A*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375}};Qt.easeIn=Qt["ease-in"]=Qt["<"],Qt.easeOut=Qt["ease-out"]=Qt[">"],Qt.easeInOut=Qt["ease-in-out"]=Qt["<>"],Qt["back-in"]=Qt.backIn,Qt["back-out"]=Qt.backOut;var Jt=[],te=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},ee=function(){for(var r=+new Date,i=0;i1&&!n.next){for(a in d)d[u](a)&&(x[a]=n.totalOrigin[a]);n.el.attr(x),oe(n.anim,n.el,n.anim.percents[0],null,n.totalOrigin,n.repeat-1)}n.next&&!n.stop&&oe(n.anim,n.el,n.next,null,n.totalOrigin,n.repeat)}}}Jt.length&&te(ee)},re=function(t){return t>255?255:t<0?0:t};function ie(t,e,r,i,n,o){var a=3*e,s=3*(i-e)-a,l=1-a-s,u=3*r,c=3*(n-r)-u,f=1-u-c;function h(t){return((l*t+s)*t+a)*t}return function(t,e){var r=function(t,e){var r,i,n,o,u,c;for(n=t,c=0;c<8;c++){if(o=h(n)-t,B(o)(i=1))return i;for(;ro?r=n:i=n,n=(i-r)/2+r}return n}(t,e);return((f*r+c)*r+u)*r}(t,1/(200*o))}function ne(t,e){var r=[],i={};if(this.ms=e,this.times=1,t){for(var n in t)t[u](n)&&(i[R(n)]=t[n],r.push(R(n)));r.sort(G)}this.anim=i,this.top=r[r.length-1],this.percents=r}function oe(r,i,n,o,s,l){n=R(n);var c,f,h,d,v,g,m=r.ms,y={},w={},_={};if(o)for(C=0,S=Jt.length;Co*r.top){n=r.percents[C],v=r.percents[C-1]||0,m=m/r.top*(n-v),d=r.percents[C+1],c=r.anim[n];break}o&&i.attr(r.anim[r.percents[C]])}if(c){if(f)f.initstatus=o,f.start=new Date-f.ms*o;else{for(var B in c)if(c[u](B)&&(I[u](B)||i.paper.customAttributes[u](B)))switch(y[B]=i.attr(B),null==y[B]&&(y[B]=F[B]),w[B]=c[B],I[B]){case T:_[B]=(w[B]-y[B])/m;break;case"colour":y[B]=e.getRGB(y[B]);var E=e.getRGB(w[B]);_[B]={r:(E.r-y[B].r)/m,g:(E.g-y[B].g)/m,b:(E.b-y[B].b)/m};break;case"path":var A=Et(y[B],w[B]),O=A[1];for(y[B]=A[0],_[B]=[],C=0,S=y[B].length;Cl&&(l=f)}!t[l+="%"].callback&&(t[l].callback=n)}return new ne(t,r)},Ht.animate=function(t,r,i,n){if(this.removed)return n&&n.call(this),this;var o=t instanceof ne?t:e.animation(t,r,i,n);return oe(o,this,o.percents[0],null,this.attr()),this},Ht.setTime=function(t,e){return t&&null!=e&&this.status(t,S(e,t.ms)/t.ms),this},Ht.status=function(t,e){var r,i,n=[],o=0;if(null!=e)return oe(t,this,-1,S(e,1)),this;for(r=Jt.length;o1)for(var i=0,n=r.length;i.5)-1;l(h-.5,2)+l(d-.5,2)>.25&&(d=o.sqrt(.25-l(h-.5,2))*n+.5)&&.5!=d&&(d=d.toFixed(5)-1e-5*n)}return f}))).split(/\s*\-\s*/),"linear"==u){var y=n.shift();if(y=-i(y),isNaN(y))return null;var w=[0,0,o.cos(t.rad(y)),o.sin(t.rad(y))],_=1/(a(s(w[2]),s(w[3]))||1);w[2]*=_,w[3]*=_,w[2]<0&&(w[0]=-w[2],w[2]=0),w[3]<0&&(w[1]=-w[3],w[3]=0)}var k=t._parseDots(n);if(!k)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(v.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){b=g(u+"Gradient",{id:c}),e.gradient=b,g(b,"radial"==u?{fx:h,fy:d}:{x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientTransform:e.matrix.invert()}),v.defs.appendChild(b);for(var C=0,S=k.length;C1?N.opacity/100:N.opacity});case"stroke":N=t.getRGB(v),l.setAttribute(p,N.hex),"stroke"==p&&N[e]("opacity")&&g(l,{"stroke-opacity":N.opacity>1?N.opacity/100:N.opacity}),"stroke"==p&&i._.arrows&&("startString"in i._.arrows&&y(i,i._.arrows.startString),"endString"in i._.arrows&&y(i,i._.arrows.endString,1));break;case"gradient":("circle"==i.type||"ellipse"==i.type||"r"!=r(v).charAt())&&m(i,v);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&g(l,{"stroke-opacity":v>1?v/100:v});case"fill-opacity":if(c.gradient){(P=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,f)))&&(j=P.getElementsByTagName("stop"),g(j[j.length-1],{"stop-opacity":v}));break}default:"font-size"==p&&(v=n(v,10)+"px");var R=p.replace(/(\-.)/g,(function(t){return t.substring(1).toUpperCase()}));l.style[R]=v,i._.dirty=1,l.setAttribute(p,v)}}C(i,o),l.style.visibility=h},C=function(i,o){if("text"==i.type&&(o[e]("text")||o[e]("font")||o[e]("font-size")||o[e]("x")||o[e]("y"))){var a=i.attrs,s=i.node,l=s.firstChild?n(t._g.doc.defaultView.getComputedStyle(s.firstChild,f).getPropertyValue("font-size"),10):10;if(o[e]("text")){for(a.text=o.text;s.firstChild;)s.removeChild(s.firstChild);for(var u,c=r(o.text).split("\n"),h=[],d=0,p=c.length;d"));var G=Y.getBoundingClientRect();E.W=v.w=(G.right-G.left)/100,E.H=v.h=(G.bottom-G.top)/100,E.X=v.x,E.Y=v.y+E.H/2,("x"in l||"y"in l)&&(E.path.v=t.format("m{0},{1}l{2},{1}",o(v.x*x),o(v.y*x),o(v.x*x)+1));for(var $=["x","y","text","font","font-family","font-weight","font-style","font-size"],Z=0,K=$.length;Z.25&&(r=n.sqrt(.25-s(e-.5,2))*(2*(r>.5)-1)+.5),u=e+f+r),h}))).split(/\s*\-\s*/),"linear"==l){var c=o.shift();if(c=-i(c),isNaN(c))return null}var d=t._parseDots(o);if(!d)return null;if(e=e.shape||e.node,d.length){e.removeChild(a),a.on=!0,a.method="none",a.color=d[0].color,a.color2=d[d.length-1].color;for(var p=[],v=0,g=d.length;v')}}catch(t){k=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),r=e.container,i=e.height,n=e.width,o=e.x,a=e.y;if(!r)throw new Error("VML container not found.");var s=new t._Paper,l=s.canvas=t._g.doc.createElement("div"),u=l.style;return o=o||0,a=a||0,n=n||512,i=i||342,s.width=n,s.height=i,n==+n&&(n+="px"),i==+i&&(i+="px"),s.coordsize="21600000 21600000",s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(s.span),u.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",n,i),1==r?(t._g.doc.body.appendChild(l),u.left=o+"px",u.top=a+"px",u.position="absolute"):r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=h,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){for(var e in t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var T=t.st;for(var O in A)A[e](O)&&!T[e](O)&&(T[O]=function(t){return function(){var e=arguments;return this.forEach((function(r){r[t].apply(r,e)}))}}(O))}}.apply(e,i))||(t.exports=n)}])},91548:function(t,e,r){"use strict";(i=r(35466))&&"object"==typeof i&&"default"in i&&i.default;var i,n=r(88686),o=new n,a=o.getBrowser(),s=(o.getCPU(),o.getDevice()),l=o.getEngine(),u=o.getOS(),c=o.getUA();var f="mobile",h="tablet",d="Chrome",p="Firefox",v="Opera",g="Yandex",m="Safari",x="Internet Explorer",b="Edge",y="Chromium",w="IE",_="Mobile Safari",k="MIUI Browser",C="Samsung Browser",S="iOS",B="Android",E="Windows Phone",A="Windows",T="Mac OS",O=function(t){return t||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},M=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},L=function(t){var e=M();return e&&e.platform&&(-1!==e.platform.indexOf(t)||"MacIntel"===e.platform&&e.maxTouchPoints>1&&!window.MSStream)},N=function(t){return t.type===f},P=function(t){return t.type===h},j=function(t){var e=t.type;return e===f||e===h},R=function(t){return"smarttv"===t.type},z=function(t){return undefined===t.type},D=function(t){return"wearable"===t.type},F=function(t){return"console"===t.type},I=function(t){return"embedded"===t.type},q=function(t){var e=t.vendor;return O(e)},V=function(t){var e=t.model;return O(e)},H=function(t){var e=t.type;return O(e,"browser")},W=function(t){return t.name===B},U=function(t){return t.name===A},Y=function(t){return t.name===T},X=function(t){return t.name===E},G=function(t){return t.name===S},$=function(t){var e=t.version;return O(e)},Z=function(t){var e=t.name;return O(e)},K=function(t){return t.name===d},Q=function(t){return t.name===p},J=function(t){return t.name===y},tt=function(t){return t.name===b},et=function(t){return t.name===g},rt=function(t){var e=t.name;return e===m||e===_},it=function(t){return t.name===_},nt=function(t){return t.name===v},ot=function(t){var e=t.name;return e===x||e===w},at=function(t){return t.name===k},st=function(t){return t.name===C},lt=function(t){var e=t.version;return O(e)},ut=function(t){var e=t.major;return O(e)},ct=function(t){var e=t.name;return O(e)},ft=function(t){var e=t.name;return O(e)},ht=function(t){var e=t.version;return O(e)},dt=function(){var t=M(),e=t&&t.userAgent&&t.userAgent.toLowerCase();return"string"==typeof e&&/electron/.test(e)},pt=function(t){return"string"==typeof t&&-1!==t.indexOf("Edg/")},vt=function(){var t=M();return t&&(/iPad|iPhone|iPod/.test(t.platform)||"MacIntel"===t.platform&&t.maxTouchPoints>1)&&!window.MSStream},gt=function(){return L("iPad")},mt=function(){return L("iPhone")},xt=function(){return L("iPod")},bt=function(t){return O(t)};R(s),F(s),D(s),I(s),it(a)||gt(),J(a),j(s)||gt(),N(s),P(s)||gt(),z(s),z(s),W(u),X(u),G(u)||gt(),K(a),Q(a),rt(a),nt(a);var yt=ot(a),wt=($(u),Z(u),lt(a),ut(a),ct(a),q(s),V(s),ft(l),ht(l),bt(c),tt(a)||pt(c),et(a),H(s),vt(),gt(),mt(),xt(),dt(),pt(c),tt(a)&&pt(c),U(u),Y(u));at(a),st(a);e.w1=yt,e.Q5=wt},88686:function(t,e,r){var i;!function(n,o){"use strict";var a="function",s="undefined",l="object",u="string",c="major",f="model",h="name",d="type",p="vendor",v="version",g="architecture",m="console",x="mobile",b="tablet",y="smarttv",w="wearable",_="embedded",k="Amazon",C="Apple",S="ASUS",B="BlackBerry",E="Browser",A="Chrome",T="Firefox",O="Google",M="Huawei",L="LG",N="Microsoft",P="Motorola",j="Opera",R="Samsung",z="Sharp",D="Sony",F="Xiaomi",I="Zebra",q="Facebook",V="Chromium OS",H="Mac OS",W=function(t){for(var e={},r=0;r0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):o:this[s[0]]=c?s[1].call(this,c,s[2]):o:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;f+=2}},$=function(t,e){for(var r in e)if(typeof e[r]===l&&e[r].length>0){for(var i=0;i2&&(t[f]="iPad",t[d]=b),t},this.getEngine=function(){var t={};return t[h]=o,t[v]=o,G.call(t,i,y.engine),t},this.getOS=function(){var t={};return t[h]=o,t[v]=o,G.call(t,i,y.os),w&&!t[h]&&m&&"Unknown"!=m.platform&&(t[h]=m.platform.replace(/chrome os/i,V).replace(/macos/i,H)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(t){return i=typeof t===u&&t.length>500?X(t,500):t,this},this.setUA(i),this};Q.VERSION="1.0.37",Q.BROWSER=W([h,v,c]),Q.CPU=W([g]),Q.DEVICE=W([f,p,d,m,x,y,b,w,_]),Q.ENGINE=Q.OS=W([h,v]),typeof e!==s?(t.exports&&(e=t.exports=Q),e.UAParser=Q):r.amdO?(i=function(){return Q}.call(e,r,e,t))===o||(t.exports=i):typeof n!==s&&(n.UAParser=Q);var J=typeof n!==s&&(n.jQuery||n.Zepto);if(J&&!J.ua){var tt=new Q;J.ua=tt.getResult(),J.ua.get=function(){return tt.getUA()},J.ua.set=function(t){tt.setUA(t);var e=tt.getResult();for(var r in e)J.ua[r]=e[r]}}}("object"==typeof window?window:this)},55651:function(t,e,r){"use strict";r.d(e,{ZE:function(){return j},gW:function(){return M}});var i=r(35466);function n(){return(n=Object.assign||function(t){for(var e=1;e=0||(n[r]=t[r]);return n}function a(t){var e=(0,i.useRef)(t),r=(0,i.useRef)((function(t){e.current&&e.current(t)}));return e.current=t,r.current}var s=function(t,e,r){return void 0===e&&(e=0),void 0===r&&(r=1),t>r?r:t0:t.buttons>0)&&h.current?d(c(h.current,t,v.current)):r(!1)},e=function(){return r(!1)};function r(r){var i=g.current,n=u(h.current),o=r?n.addEventListener:n.removeEventListener;o(i?"touchmove":"mousemove",t),o(i?"touchend":"mouseup",e)}return[function(t){var e=t.nativeEvent,i=h.current;if(i&&(f(e),!function(t,e){return e&&!l(t)}(e,g.current)&&i)){if(l(e)){g.current=!0;var n=e.changedTouches||[];n.length&&(v.current=n[0].identifier)}i.focus(),d(c(i,e,v.current)),r(!0)}},function(t){var e=t.which||t.keyCode;e<37||e>40||(t.preventDefault(),p({left:39===e?.05:37===e?-.05:0,top:40===e?.05:38===e?-.05:0}))},r]}),[p,d]),x=m[0],b=m[1],y=m[2];return(0,i.useEffect)((function(){return y}),[y]),i.createElement("div",n({},s,{onTouchStart:x,onMouseDown:x,className:"react-colorful__interactive",ref:h,onKeyDown:b,tabIndex:0,role:"slider"}))})),d=function(t){return t.filter(Boolean).join(" ")},p=function(t){var e=t.color,r=t.left,n=t.top,o=void 0===n?.5:n,a=d(["react-colorful__pointer",t.className]);return i.createElement("div",{className:a,style:{top:100*o+"%",left:100*r+"%"}},i.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},v=function(t,e,r){return void 0===e&&(e=0),void 0===r&&(r=Math.pow(10,e)),Math.round(r*t)/r},g=(Math.PI,function(t){return _(m(t))}),m=function(t){return"#"===t[0]&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?v(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:8===t.length?v(parseInt(t.substring(6,8),16)/255,2):1}},x=function(t){var e=function(t){var e=t.s,r=t.v,i=t.a,n=(200-e)*r/100;return{h:v(t.h),s:v(n>0&&n<200?e*r/100/(n<=100?n:200-n)*100:0),l:v(n/2),a:v(i,2)}}(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},b=function(t){var e=t.h,r=t.s,i=t.v,n=t.a;e=e/360*6,r/=100,i/=100;var o=Math.floor(e),a=i*(1-r),s=i*(1-(e-o)*r),l=i*(1-(1-e+o)*r),u=o%6;return{r:v(255*[i,s,a,a,l,i][u]),g:v(255*[l,i,i,s,a,a][u]),b:v(255*[a,a,l,i,i,s][u]),a:v(n,2)}},y=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},w=function(t){var e=t.r,r=t.g,i=t.b,n=t.a,o=n<1?y(v(255*n)):"";return"#"+y(e)+y(r)+y(i)+o},_=function(t){var e=t.r,r=t.g,i=t.b,n=t.a,o=Math.max(e,r,i),a=o-Math.min(e,r,i),s=a?o===e?(r-i)/a:o===r?2+(i-e)/a:4+(e-r)/a:0;return{h:v(60*(s<0?s+6:s)),s:v(o?a/o*100:0),v:v(o/255*100),a:n}},k=i.memo((function(t){var e=t.hue,r=t.onChange,n=d(["react-colorful__hue",t.className]);return i.createElement("div",{className:n},i.createElement(h,{onMove:function(t){r({h:360*t.left})},onKey:function(t){r({h:s(e+360*t.left,0,360)})},"aria-label":"Hue","aria-valuenow":v(e),"aria-valuemax":"360","aria-valuemin":"0"},i.createElement(p,{className:"react-colorful__hue-pointer",left:e/360,color:x({h:e,s:100,v:100,a:1})})))})),C=i.memo((function(t){var e=t.hsva,r=t.onChange,n={backgroundColor:x({h:e.h,s:100,v:100,a:1})};return i.createElement("div",{className:"react-colorful__saturation",style:n},i.createElement(h,{onMove:function(t){r({s:100*t.left,v:100-100*t.top})},onKey:function(t){r({s:s(e.s+100*t.left,0,100),v:s(e.v-100*t.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+v(e.s)+"%, Brightness "+v(e.v)+"%"},i.createElement(p,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:x(e)})))})),S=function(t,e){if(t===e)return!0;for(var r in t)if(t[r]!==e[r])return!1;return!0};function B(t,e,r){var n=a(r),o=(0,i.useState)((function(){return t.toHsva(e)})),s=o[0],l=o[1],u=(0,i.useRef)({color:e,hsva:s});(0,i.useEffect)((function(){if(!t.equal(e,u.current.color)){var r=t.toHsva(e);u.current={hsva:r,color:e},l(r)}}),[e,t]),(0,i.useEffect)((function(){var e;S(s,u.current.hsva)||t.equal(e=t.fromHsva(s),u.current.color)||(u.current={hsva:s,color:e},n(e))}),[s,t,n]);var c=(0,i.useCallback)((function(t){l((function(e){return Object.assign({},e,t)}))}),[]);return[s,c]}var E="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,A=new Map,T=function(t){var e,a=t.className,s=t.colorModel,l=t.color,u=void 0===l?s.defaultColor:l,c=t.onChange,f=o(t,["className","colorModel","color","onChange"]),h=(0,i.useRef)(null);e=h,E((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!A.has(t)){var i=t.createElement("style");i.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',A.set(t,i);var n=r.nc;n&&i.setAttribute("nonce",n),t.head.appendChild(i)}}),[]);var p=B(s,u,c),v=p[0],g=p[1],m=d(["react-colorful",a]);return i.createElement("div",n({},f,{ref:h,className:m}),i.createElement(C,{hsva:v,onChange:g}),i.createElement(k,{hue:v.h,onChange:g,className:"react-colorful__last-control"}))},O={defaultColor:"000",toHsva:g,fromHsva:function(t){return function(t){return w(b(t))}({h:t.h,s:t.s,v:t.v,a:1})},equal:function(t,e){return t.toLowerCase()===e.toLowerCase()||S(m(t),m(e))}},M=function(t){return i.createElement(T,n({},t,{colorModel:O}))},L=/^#?([0-9A-F]{3,8})$/i,N=function(t){var e=t.color,r=void 0===e?"":e,s=t.onChange,l=t.onBlur,u=t.escape,c=t.validate,f=t.format,h=t.process,d=o(t,["color","onChange","onBlur","escape","validate","format","process"]),p=(0,i.useState)((function(){return u(r)})),v=p[0],g=p[1],m=a(s),x=a(l),b=(0,i.useCallback)((function(t){var e=u(t.target.value);g(e),c(e)&&m(h?h(e):e)}),[u,h,c,m]),y=(0,i.useCallback)((function(t){c(t.target.value)||g(u(r)),x(t)}),[r,u,c,x]);return(0,i.useEffect)((function(){g(u(r))}),[r,u]),i.createElement("input",n({},d,{value:f?f(v):v,spellCheck:"false",onChange:b,onBlur:y}))},P=function(t){return"#"+t},j=function(t){var e=t.prefixed,r=t.alpha,a=o(t,["prefixed","alpha"]),s=(0,i.useCallback)((function(t){return t.replace(/([^0-9A-F]+)/gi,"").substring(0,r?8:6)}),[r]),l=(0,i.useCallback)((function(t){return function(t,e){var r=L.exec(t),i=r?r[1].length:0;return 3===i||6===i||!!e&&4===i||!!e&&8===i}(t,r)}),[r]);return i.createElement(N,n({},a,{escape:s,format:e?P:void 0,process:P,validate:l}))}},75282:function(t,e,r){"use strict";r.d(e,{av:function(){return p},ck:function(){return w},rS:function(){return C},v2:function(){return y}});var i=r(35466),n=r(29383),o=r(46116),a=(0,i.createContext)({}),s=()=>(0,i.useContext)(a),l=t=>i.createElement(a.Provider,{...t}),u=function(){let t=new Map;return{on(e,r){return t.has(e)?t.get(e).add(r):t.set(e,new Set([r])),this},off(e,r){return t.has(e)&&t.get(e).delete(r),this},emit(e,r){return t.has(e)&&t.get(e).forEach((t=>{t(r)})),this}}}(),c=()=>(0,i.useRef)(new Map).current,f=()=>{},h=["resize","contextmenu","click","scroll","blur"],d={show({event:t,id:e,props:r,position:i}){t.preventDefault&&t.preventDefault(),u.emit(0).emit(e,{event:t.nativeEvent||t,props:r,position:i})},hideAll(){u.emit(0)}};function p(t){return{show(e){d.show({...t,...e})},hideAll(){d.hideAll()}}}function v(t){return"function"==typeof t}function g(t){return"string"==typeof t}function m(t,e){return i.Children.map(i.Children.toArray(t).filter(Boolean),(t=>(0,i.cloneElement)(t,e)))}function x(t,e){return v(t)?t(e):t}function b(t,e){return{...t,...v(e)?e(t):e}}var y=({id:t,theme:e,style:r,className:a,children:s,animation:f="fade",preventDefaultOnKeydown:d=!0,disableBoundariesCheck:p=!1,onVisibilityChange:x,...y})=>{let[w,_]=(0,i.useReducer)(b,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),k=(0,i.useRef)(null),C=c(),[S]=(0,i.useState)((()=>function(){let t,e,r,i,n=new Map,o=!1;function a(){i[t].node.focus()}function s(){return-1!==t||(l(),!1)}function l(){t+1=0&&i[t].isSubmenu){let s=Array.from(i[t].submenuRefTracker.values()),{node:l,setSubmenuPosition:u}=i[t];return n.set(l,{isRoot:r,focusedIndex:t,parentNode:e||l,items:i}),u(),l.classList.add("contexify_submenu-isOpen"),e=l,s.length>0?(t=0,i=s):o=!0,r=!1,a(),!0}return!1},closeSubmenu:u,matchKeys:function(t){!function e(r){for(let i of r)i.isSubmenu&&i.submenuRefTracker&&e(Array.from(i.submenuRefTracker.values())),i.keyMatcher&&i.keyMatcher(t)}(i)}}}())),B=(0,i.useRef)(),E=(0,i.useRef)();function A(t,e){if(k.current&&!p){let{innerWidth:r,innerHeight:i}=window,{offsetWidth:n,offsetHeight:o}=k.current;t+n>r&&(t-=t+n-r),e+o>i&&(e-=e+o-i)}return{x:t,y:e}}function T({event:t,props:e,position:r}){t.stopPropagation();let i=r||function(t){let e={x:t.clientX,y:t.clientY},r=t.changedTouches;return r&&(e.x=r[0].clientX,e.y=r[0].clientY),(!e.x||e.x<0)&&(e.x=0),(!e.y||e.y<0)&&(e.y=0),e}(t),{x:n,y:a}=A(i.x,i.y);(0,o.flushSync)((()=>{_({visible:!0,willLeave:!1,x:n,y:a,triggerEvent:t,propsFromTrigger:e})})),clearTimeout(E.current),!B.current&&v(x)&&(x(!0),B.current=!0)}function O(t){null!=t&&(2===t.button||t.ctrlKey)&&"contextmenu"!==t.type||(f&&(g(f)||"exit"in f&&f.exit)?_((t=>({willLeave:t.visible}))):_((t=>({visible:!t.visible&&t.visible}))),E.current=setTimeout((()=>{v(x)&&x(!1),B.current=!1})))}(0,i.useEffect)((()=>(u.on(t,T).on(0,O),()=>{u.off(t,T).off(0,O)})),[t,f,p]),(0,i.useEffect)((()=>{w.visible?S.init(C):C.clear()}),[w.visible,S,C]),(0,i.useEffect)((()=>{w.visible&&_(A(w.x,w.y))}),[w.visible]),(0,i.useEffect)((()=>{function t(t){d&&t.preventDefault()}function e(e){switch(e.key){case"Enter":case" ":S.openSubmenu()||O();break;case"Escape":O();break;case"ArrowUp":t(e),S.moveUp();break;case"ArrowDown":t(e),S.moveDown();break;case"ArrowRight":t(e),S.openSubmenu();break;case"ArrowLeft":t(e),S.closeSubmenu();break;default:S.matchKeys(e)}}if(w.visible){window.addEventListener("keydown",e);for(let t of h)window.addEventListener(t,O)}return()=>{window.removeEventListener("keydown",e);for(let t of h)window.removeEventListener(t,O)}}),[w.visible,S,d]);let{visible:M,triggerEvent:L,propsFromTrigger:N,x:P,y:j,willLeave:R}=w,z=(0,n.Z)("contexify",a,{[`contexify_theme-${e}`]:e},g(f)?(0,n.Z)({[`contexify_willEnter-${f}`]:M&&!R,[`contexify_willLeave-${f} contexify_willLeave-'disabled'`]:M&&R}):f&&"enter"in f&&"exit"in f?(0,n.Z)({[`contexify_willEnter-${f.enter}`]:f.enter&&M&&!R,[`contexify_willLeave-${f.exit} contexify_willLeave-'disabled'`]:f.exit&&M&&R}):null);return i.createElement(l,{value:C},M&&i.createElement("div",{...y,className:z,onAnimationEnd:function(){w.willLeave&&w.visible&&(0,o.flushSync)((()=>_({visible:!1,willLeave:!1})))},style:{...r,left:P,top:j,opacity:1},ref:k,role:"menu"},m(s,{propsFromTrigger:N,triggerEvent:L})))},w=({id:t,children:e,className:r,style:o,triggerEvent:a,data:l,propsFromTrigger:u,keyMatcher:c,onClick:h=f,disabled:p=!1,hidden:g=!1,closeOnClick:m=!0,handlerEvent:b="onClick",...y})=>{let w=(0,i.useRef)(),_=s(),k={id:t,data:l,triggerEvent:a,props:u},C=x(p,k);function S(){let t=w.current;t.focus(),t.addEventListener("animationend",(()=>setTimeout(d.hideAll)),{once:!0}),t.classList.add("contexify_item-feedback"),h(k)}return x(g,k)?null:i.createElement("div",{...y,[b]:function(t){k.event=t,t.stopPropagation(),C||(m?S():h(k))},className:(0,n.Z)("contexify_item",r,{"contexify_item-disabled":C}),style:o,onKeyDown:function(t){("Enter"===t.key||" "===t.key)&&(t.stopPropagation(),k.event=t,S())},ref:function(t){t&&!C&&(w.current=t,_.set(t,{node:t,isSubmenu:!1,keyMatcher:!C&&v(c)&&(t=>{c(t)&&(t.stopPropagation(),t.preventDefault(),k.event=t,S())})}))},tabIndex:-1,role:"menuitem","aria-disabled":C},i.createElement("div",{className:"contexify_itemContent"},e))},_=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},i.createElement("polyline",{points:"9 18 15 12 9 6"})),k=({className:t,...e})=>i.createElement("div",{className:(0,n.Z)("contexify_rightSlot",t),...e}),C=({arrow:t,children:e,disabled:r=!1,hidden:o=!1,label:a,className:u,triggerEvent:f,propsFromTrigger:h,style:d,...p})=>{let v=s(),g=c(),b=(0,i.useRef)(null),y={triggerEvent:f,props:h},w=x(r,y);function C(){let t=b.current;if(t){let e="contexify_submenu-bottom",r="contexify_submenu-right";t.classList.remove(e,r);let i=t.getBoundingClientRect();i.right>window.innerWidth&&t.classList.add(r),i.bottom>window.innerHeight&&t.classList.add(e)}}if(x(o,y))return null;let S=(0,n.Z)("contexify_item",u,{"contexify_item-disabled":w});return i.createElement(l,{value:g},i.createElement("div",{...p,className:S,ref:function(t){t&&!w&&v.set(t,{node:t,isSubmenu:!0,submenuRefTracker:g,setSubmenuPosition:C})},tabIndex:-1,role:"menuitem","aria-haspopup":!0,"aria-disabled":w,onMouseEnter:C,onTouchStart:C},i.createElement("div",{className:"contexify_itemContent",onClick:t=>t.stopPropagation()},a,i.createElement(k,null,t||i.createElement(_,null))),i.createElement("div",{className:"contexify contexify_submenu",ref:b,style:d},m(e,{propsFromTrigger:h,triggerEvent:f}))))}}}]);