!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e="top",t="bottom",n="right",r="left",i="auto",o=[e,t,n,r],s="start",a="end",c="viewport",u="popper",l=o.reduce((function(e,t){return e.concat([t+"-"+s,t+"-"+a])}),[]),f=[].concat(o,[i]).reduce((function(e,t){return e.concat([t,t+"-"+s,t+"-"+a])}),[]),p=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function d(e){return e?(e.nodeName||"").toLowerCase():null}function h(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function m(e){return e instanceof h(e).Element||e instanceof Element}function g(e){return e instanceof h(e).HTMLElement||e instanceof HTMLElement}function y(e){return"undefined"!=typeof ShadowRoot&&(e instanceof h(e).ShadowRoot||e instanceof ShadowRoot)}var v={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];g(i)&&d(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});g(r)&&d(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function b(e){return e.split("-")[0]}var w=Math.round;function O(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;return g(e)&&t&&(r=n.width/e.offsetWidth||1,i=n.height/e.offsetHeight||1),{width:w(n.width/r),height:w(n.height/i),top:w(n.top/i),right:w(n.right/r),bottom:w(n.bottom/i),left:w(n.left/r),x:w(n.left/r),y:w(n.top/i)}}function E(e){var t=O(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function T(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&y(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function A(e){return h(e).getComputedStyle(e)}function k(e){return["table","td","th"].indexOf(d(e))>=0}function x(e){return((m(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(y(e)?e.host:null)||x(e)}function L(e){return g(e)&&"fixed"!==A(e).position?e.offsetParent:null}function j(e){for(var t=h(e),n=L(e);n&&k(n)&&"static"===A(n).position;)n=L(n);return n&&("html"===d(n)||"body"===d(n)&&"static"===A(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&g(e)&&"fixed"===A(e).position)return null;for(var n=C(e);g(n)&&["html","body"].indexOf(d(n))<0;){var r=A(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function P(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var M=Math.max,B=Math.min,S=Math.round;function _(e,t,n){return M(e,B(t,n))}function D(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function N(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var V={top:"auto",right:"auto",bottom:"auto",left:"auto"};function I(i){var o,s=i.popper,a=i.popperRect,c=i.placement,u=i.offsets,l=i.position,f=i.gpuAcceleration,p=i.adaptive,d=i.roundOffsets,m=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:S(S(t*r)/r)||0,y:S(S(n*r)/r)||0}}(u):"function"==typeof d?d(u):u,g=m.x,y=void 0===g?0:g,v=m.y,b=void 0===v?0:v,w=u.hasOwnProperty("x"),O=u.hasOwnProperty("y"),E=r,T=e,k=window;if(p){var C=j(s),L="clientHeight",P="clientWidth";C===h(s)&&"static"!==A(C=x(s)).position&&(L="scrollHeight",P="scrollWidth"),C=C,c===e&&(T=t,b-=C[L]-a.height,b*=f?1:-1),c===r&&(E=n,y-=C[P]-a.width,y*=f?1:-1)}var M,B=Object.assign({position:l},p&&V);return f?Object.assign({},B,((M={})[T]=O?"0":"",M[E]=w?"0":"",M.transform=(k.devicePixelRatio||1)<2?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",M)):Object.assign({},B,((o={})[T]=O?b+"px":"",o[E]=w?y+"px":"",o.transform="",o))}var F={passive:!0};var R={left:"right",right:"left",bottom:"top",top:"bottom"};function K(e){return e.replace(/left|right|bottom|top/g,(function(e){return R[e]}))}var W={start:"end",end:"start"};function U(e){return e.replace(/start|end/g,(function(e){return W[e]}))}function H(e){var t=h(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function q(e){return O(x(e)).left+H(e).scrollLeft}function z(e){var t=A(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function $(e){return["html","body","#document"].indexOf(d(e))>=0?e.ownerDocument.body:g(e)&&z(e)?e:$(C(e))}function Y(e,t){var n;void 0===t&&(t=[]);var r=$(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=h(r),s=i?[o].concat(o.visualViewport||[],z(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Y(C(s)))}function J(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function X(e,t){return t===c?J(function(e){var t=h(e),n=x(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,s=0,a=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,a=r.offsetTop)),{width:i,height:o,x:s+q(e),y:a}}(e)):g(t)?function(e){var t=O(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):J(function(e){var t,n=x(e),r=H(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=M(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=M(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+q(e),c=-r.scrollTop;return"rtl"===A(i||n).direction&&(a+=M(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}(x(e)))}function Q(e,t,n){var r="clippingParents"===t?function(e){var t=Y(C(e)),n=["absolute","fixed"].indexOf(A(e).position)>=0&&g(e)?j(e):e;return m(n)?t.filter((function(e){return m(e)&&T(e,n)&&"body"!==d(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],s=i.reduce((function(t,n){var r=X(e,n);return t.top=M(r.top,t.top),t.right=B(r.right,t.right),t.bottom=B(r.bottom,t.bottom),t.left=M(r.left,t.left),t}),X(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function G(e){return e.split("-")[1]}function Z(i){var o,c=i.reference,u=i.element,l=i.placement,f=l?b(l):null,p=l?G(l):null,d=c.x+c.width/2-u.width/2,h=c.y+c.height/2-u.height/2;switch(f){case e:o={x:d,y:c.y-u.height};break;case t:o={x:d,y:c.y+c.height};break;case n:o={x:c.x+c.width,y:h};break;case r:o={x:c.x-u.width,y:h};break;default:o={x:c.x,y:c.y}}var m=f?P(f):null;if(null!=m){var g="y"===m?"height":"width";switch(p){case s:o[m]=o[m]-(c[g]/2-u[g]/2);break;case a:o[m]=o[m]+(c[g]/2-u[g]/2)}}return o}function ee(r,i){void 0===i&&(i={});var s=i,a=s.placement,l=void 0===a?r.placement:a,f=s.boundary,p=void 0===f?"clippingParents":f,d=s.rootBoundary,h=void 0===d?c:d,g=s.elementContext,y=void 0===g?u:g,v=s.altBoundary,b=void 0!==v&&v,w=s.padding,E=void 0===w?0:w,T=D("number"!=typeof E?E:N(E,o)),A=y===u?"reference":u,k=r.elements.reference,C=r.rects.popper,L=r.elements[b?A:y],j=Q(m(L)?L:L.contextElement||x(r.elements.popper),p,h),P=O(k),M=Z({reference:P,element:C,strategy:"absolute",placement:l}),B=J(Object.assign({},C,M)),S=y===u?B:P,_={top:j.top-S.top+T.top,bottom:S.bottom-j.bottom+T.bottom,left:j.left-S.left+T.left,right:S.right-j.right+T.right},V=r.modifiersData.offset;if(y===u&&V){var I=V[l];Object.keys(_).forEach((function(r){var i=[n,t].indexOf(r)>=0?1:-1,o=[e,t].indexOf(r)>=0?"y":"x";_[r]+=I[o]*i}))}return _}function te(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,p=void 0===u?f:u,d=G(r),h=d?c?l:l.filter((function(e){return G(e)===d})):o,m=h.filter((function(e){return p.indexOf(e)>=0}));0===m.length&&(m=h);var g=m.reduce((function(t,n){return t[n]=ee(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[b(n)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}function ne(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function re(i){return[e,n,t,r].some((function(e){return i[e]>=0}))}function ie(e,t,n){void 0===n&&(n=!1);var r,i,o=g(t),s=g(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),a=x(t),c=O(e,s),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&(("body"!==d(t)||z(a))&&(u=(r=t)!==h(r)&&g(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:H(r)),g(t)?((l=O(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=q(a))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function oe(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var se={placement:"bottom",modifiers:[],strategy:"absolute"};function ae(){for(var e=arguments.length,t=new Array(e),n=0;n=0?-1:1,c="function"==typeof o?o(Object.assign({},i,{placement:t})):o,u=c[0],l=c[1];return u=u||0,l=(l||0)*a,[r,n].indexOf(s)>=0?{x:l,y:u}:{x:u,y:l}}(o,i.rects,c),t}),{}),l=u[i.placement],p=l.x,d=l.y;null!=i.modifiersData.popperOffsets&&(i.modifiersData.popperOffsets.x+=p,i.modifiersData.popperOffsets.y+=d),i.modifiersData[s]=u}},{name:"flip",enabled:!0,phase:"main",fn:function(o){var a=o.state,c=o.options,u=o.name;if(!a.modifiersData[u]._skip){for(var l=c.mainAxis,f=void 0===l||l,p=c.altAxis,d=void 0===p||p,h=c.fallbackPlacements,m=c.padding,g=c.boundary,y=c.rootBoundary,v=c.altBoundary,w=c.flipVariations,O=void 0===w||w,E=c.allowedAutoPlacements,T=a.options.placement,A=b(T),k=h||(A===T||!O?[K(T)]:function(e){if(b(e)===i)return[];var t=K(e);return[U(e),t,U(t)]}(T)),x=[T].concat(k).reduce((function(e,t){return e.concat(b(t)===i?te(a,{placement:t,boundary:g,rootBoundary:y,padding:m,flipVariations:O,allowedAutoPlacements:E}):t)}),[]),C=a.rects.reference,L=a.rects.popper,j=new Map,P=!0,M=x[0],B=0;B=0,V=N?"width":"height",I=ee(a,{placement:S,boundary:g,rootBoundary:y,altBoundary:v,padding:m}),F=N?D?n:r:D?t:e;C[V]>L[V]&&(F=K(F));var R=K(F),W=[];if(f&&W.push(I[_]<=0),d&&W.push(I[F]<=0,I[R]<=0),W.every((function(e){return e}))){M=S,P=!1;break}j.set(S,W)}if(P)for(var H=function(e){var t=x.find((function(t){var n=j.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},q=O?3:1;q>0;q--){if("break"===H(q))break}a.placement!==M&&(a.modifiersData[u]._skip=!0,a.placement=M,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(i){var o=i.state,a=i.options,c=i.name,u=a.mainAxis,l=void 0===u||u,f=a.altAxis,p=void 0!==f&&f,d=a.boundary,h=a.rootBoundary,m=a.altBoundary,g=a.padding,y=a.tether,v=void 0===y||y,w=a.tetherOffset,O=void 0===w?0:w,T=ee(o,{boundary:d,rootBoundary:h,padding:g,altBoundary:m}),A=b(o.placement),k=G(o.placement),x=!k,C=P(A),L="x"===C?"y":"x",S=o.modifiersData.popperOffsets,D=o.rects.reference,N=o.rects.popper,V="function"==typeof O?O(Object.assign({},o.rects,{placement:o.placement})):O,I={x:0,y:0};if(S){if(l||p){var F="y"===C?e:r,R="y"===C?t:n,K="y"===C?"height":"width",W=S[C],U=S[C]+T[F],H=S[C]-T[R],q=v?-N[K]/2:0,z=k===s?D[K]:N[K],$=k===s?-N[K]:-D[K],Y=o.elements.arrow,J=v&&Y?E(Y):{width:0,height:0},X=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=X[F],Z=X[R],te=_(0,D[K],J[K]),ne=x?D[K]/2-q-te-Q-V:z-te-Q-V,re=x?-D[K]/2+q+te+Z+V:$+te+Z+V,ie=o.elements.arrow&&j(o.elements.arrow),oe=ie?"y"===C?ie.clientTop||0:ie.clientLeft||0:0,se=o.modifiersData.offset?o.modifiersData.offset[o.placement][C]:0,ae=S[C]+ne-se-oe,ce=S[C]+re-se;if(l){var ue=_(v?B(U,ae):U,W,v?M(H,ce):H);S[C]=ue,I[C]=ue-W}if(p){var le="x"===C?e:r,fe="x"===C?t:n,pe=S[L],de=pe+T[le],he=pe-T[fe],me=_(v?B(de,ae):de,pe,v?M(he,ce):he);S[L]=me,I[L]=me-pe}}o.modifiersData[c]=I}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(i){var s,a=i.state,c=i.name,u=i.options,l=a.elements.arrow,f=a.modifiersData.popperOffsets,p=b(a.placement),d=P(p),h=[r,n].indexOf(p)>=0?"height":"width";if(l&&f){var m=function(e,t){return D("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:N(e,o))}(u.padding,a),g=E(l),y="y"===d?e:r,v="y"===d?t:n,w=a.rects.reference[h]+a.rects.reference[d]-f[d]-a.rects.popper[h],O=f[d]-a.rects.reference[d],T=j(l),A=T?"y"===d?T.clientHeight||0:T.clientWidth||0:0,k=w/2-O/2,x=m[y],C=A-g[h]-m[v],L=A/2-g[h]/2+k,M=_(x,L,C),B=d;a.modifiersData[c]=((s={})[B]=M,s.centerOffset=M-L,s)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&T(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=ee(t,{elementContext:"reference"}),a=ee(t,{altBoundary:!0}),c=ne(s,r),u=ne(a,i,o),l=re(c),f=re(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),le="tippy-content",fe="tippy-arrow",pe="tippy-svg-arrow",de={passive:!0,capture:!0};function he(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function me(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ge(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ye(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function ve(e){return[].concat(e)}function be(e,t){-1===e.indexOf(t)&&e.push(t)}function we(e){return[].slice.call(e)}function Oe(){return document.createElement("div")}function Ee(e){return["Element","Fragment"].some((function(t){return me(e,t)}))}function Te(e){return Ee(e)?[e]:function(e){return me(e,"NodeList")}(e)?we(e):Array.isArray(e)?e:we(document.querySelectorAll(e))}function Ae(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function ke(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function xe(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var Ce={isTouch:!1},Le=0;function je(){Ce.isTouch||(Ce.isTouch=!0,window.performance&&document.addEventListener("mousemove",Pe))}function Pe(){var e=performance.now();e-Le<20&&(Ce.isTouch=!1,document.removeEventListener("mousemove",Pe)),Le=e}function Me(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Be="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",Se=/MSIE |Trident\//.test(Be),_e=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),De=Object.keys(_e);function Ne(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,i=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:i),t}),{});return Object.assign({},e,{},t)}function Ve(e,t){var n=Object.assign({},t,{content:ge(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ne(Object.assign({},_e,{plugins:t}))):De).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},_e.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Ie(e,t){e.innerHTML=t}function Fe(e){var t=Oe();return!0===e?t.className=fe:(t.className=pe,Ee(e)?t.appendChild(e):Ie(t,e)),t}function Re(e,t){Ee(t.content)?(Ie(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ie(e,t.content):e.textContent=t.content)}function Ke(e){var t=e.firstElementChild,n=we(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(le)})),arrow:n.find((function(e){return e.classList.contains(fe)||e.classList.contains(pe)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function We(e){var t=Oe(),n=Oe();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Oe();function i(n,r){var i=Ke(t),o=i.box,s=i.content,a=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Re(s,e.props),r.arrow?a?n.arrow!==r.arrow&&(o.removeChild(a),o.appendChild(Fe(r.arrow))):o.appendChild(Fe(r.arrow)):a&&o.removeChild(a)}return r.className=le,r.setAttribute("data-state","hidden"),Re(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}We.$$tippy=!0;var Ue=1,He=[],qe=[];function ze(e,t){var n,r,i,o,s,a,c,u,l,f=Ve(e,Object.assign({},_e,{},Ne((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),p=!1,d=!1,h=!1,m=!1,g=[],y=ye(Y,f.interactiveDebounce),v=Ue++,b=(l=f.plugins).filter((function(e,t){return l.indexOf(e)===t})),w={id:v,reference:e,popper:Oe(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)},setProps:function(t){if(w.state.isDestroyed)return;_("onBeforeUpdate",[w,t]),z();var n=w.props,r=Ve(e,Object.assign({},w.props,{},t,{ignoreAttributes:!0}));w.props=r,q(),n.interactiveDebounce!==r.interactiveDebounce&&(V(),y=ye(Y,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?ve(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");N(),S(),T&&T(n,r);w.popperInstance&&(G(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));_("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=Ce.isTouch&&!w.props.touch,i=he(w.props.duration,0,_e.duration);if(e||t||n||r)return;if(j().hasAttribute("disabled"))return;if(_("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,L()&&(E.style.visibility="visible");S(),K(),w.state.isMounted||(E.style.transition="none");if(L()){var o=M(),s=o.box,a=o.content;Ae([s,a],0)}c=function(){var e;if(w.state.isVisible&&!m){if(m=!0,E.offsetHeight,E.style.transition=w.props.moveTransition,L()&&w.props.animation){var t=M(),n=t.box,r=t.content;Ae([n,r],i),ke([n,r],"visible")}D(),N(),be(qe,w),null==(e=w.popperInstance)||e.forceUpdate(),w.state.isMounted=!0,_("onMount",[w]),w.props.animation&&L()&&function(e,t){U(e,t)}(i,(function(){w.state.isShown=!0,_("onShown",[w])}))}},function(){var e,t=w.props.appendTo,n=j();e=w.props.interactive&&t===_e.appendTo||"parent"===t?n.parentNode:ge(t,[n]);e.contains(E)||e.appendChild(E);G()}()},hide:function(){var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=he(w.props.duration,1,_e.duration);if(e||t||n)return;if(_("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,m=!1,p=!1,L()&&(E.style.visibility="hidden");if(V(),W(),S(),L()){var i=M(),o=i.box,s=i.content;w.props.animation&&(Ae([o,s],r),ke([o,s],"hidden"))}D(),N(),w.props.animation?L()&&function(e,t){U(e,(function(){!w.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&t()}))}(r,w.unmount):w.unmount()},hideWithInteractivity:function(e){P().addEventListener("mousemove",y),be(He,y),y(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Z(),ee().forEach((function(e){e._tippy.unmount()})),E.parentNode&&E.parentNode.removeChild(E);qe=qe.filter((function(e){return e!==w})),w.state.isMounted=!1,_("onHidden",[w])},destroy:function(){if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),z(),delete e._tippy,w.state.isDestroyed=!0,_("onDestroy",[w])}};if(!f.render)return w;var O=f.render(w),E=O.popper,T=O.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+w.id,w.popper=E,e._tippy=w,E._tippy=w;var A=b.map((function(e){return e.fn(w)})),k=e.hasAttribute("aria-expanded");return q(),N(),S(),_("onCreate",[w]),f.showOnCreate&&te(),E.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),E.addEventListener("mouseleave",(function(e){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(P().addEventListener("mousemove",y),y(e))})),w;function x(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===x()[0]}function L(){var e;return!!(null==(e=w.props.render)?void 0:e.$$tippy)}function j(){return u||e}function P(){var e,t,n=j().parentNode;return n?(null==(t=ve(n)[0])||null==(e=t.ownerDocument)?void 0:e.body)?t.ownerDocument:document:document}function M(){return Ke(E)}function B(e){return w.state.isMounted&&!w.state.isVisible||Ce.isTouch||s&&"focus"===s.type?0:he(w.props.delay,e?0:1,_e.delay)}function S(){E.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",E.style.zIndex=""+w.props.zIndex}function _(e,t,n){var r;(void 0===n&&(n=!0),A.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=w.props)[e].apply(r,t)}function D(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,r=E.id;ve(w.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function N(){!k&&w.props.aria.expanded&&ve(w.props.triggerTarget||e).forEach((function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===j()?"true":"false"):e.removeAttribute("aria-expanded")}))}function V(){P().removeEventListener("mousemove",y),He=He.filter((function(e){return e!==y}))}function I(e){if(!(Ce.isTouch&&(h||"mousedown"===e.type)||w.props.interactive&&E.contains(e.target))){if(j().contains(e.target)){if(Ce.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else _("onClickOutside",[w,e]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout((function(){d=!1})),w.state.isMounted||W())}}function F(){h=!0}function R(){h=!1}function K(){var e=P();e.addEventListener("mousedown",I,!0),e.addEventListener("touchend",I,de),e.addEventListener("touchstart",R,de),e.addEventListener("touchmove",F,de)}function W(){var e=P();e.removeEventListener("mousedown",I,!0),e.removeEventListener("touchend",I,de),e.removeEventListener("touchstart",R,de),e.removeEventListener("touchmove",F,de)}function U(e,t){var n=M().box;function r(e){e.target===n&&(xe(n,"remove",r),t())}if(0===e)return t();xe(n,"remove",a),xe(n,"add",r),a=r}function H(t,n,r){void 0===r&&(r=!1),ve(w.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),g.push({node:e,eventType:t,handler:n,options:r})}))}function q(){var e;C()&&(H("touchstart",$,{passive:!0}),H("touchend",J,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,$),e){case"mouseenter":H("mouseleave",J);break;case"focus":H(Se?"focusout":"blur",X);break;case"focusin":H("focusout",X)}}))}function z(){g.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),g=[]}function $(e){var t,n=!1;if(w.state.isEnabled&&!Q(e)&&!d){var r="focus"===(null==(t=s)?void 0:t.type);s=e,u=e.currentTarget,N(),!w.state.isVisible&&me(e,"MouseEvent")&&He.forEach((function(t){return t(e)})),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||p)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:te(e),"click"===e.type&&(p=!n),n&&!r&&ne(e)}}function Y(e){var t=e.target,n=j().contains(t)||E.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,s=i.placement.split("-")[0],a=i.modifiersData.offset;if(!a)return!0;var c="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,l="right"===s?a.left.x:0,f="left"===s?a.right.x:0,p=t.top-r+c>o,d=r-t.bottom-u>o,h=t.left-n+l>o,m=n-t.right-f>o;return p||d||h||m}))}(ee().concat(E).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:f}:null})).filter(Boolean),e)&&(V(),ne(e))}function J(e){Q(e)||w.props.trigger.indexOf("click")>=0&&p||(w.props.interactive?w.hideWithInteractivity(e):ne(e))}function X(e){w.props.trigger.indexOf("focusin")<0&&e.target!==j()||w.props.interactive&&e.relatedTarget&&E.contains(e.relatedTarget)||ne(e)}function Q(e){return!!Ce.isTouch&&C()!==e.type.indexOf("touch")>=0}function G(){Z();var t=w.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,a=L()?Ke(E).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||j()}:e,l=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(L()){var n=M().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];L()&&a&&l.push({name:"arrow",options:{element:a,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),w.popperInstance=ue(u,E,Object.assign({},n,{placement:r,onFirstUpdate:c,modifiers:l}))}function Z(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return we(E.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&_("onTrigger",[w,e]),K();var t=B(!0),n=x(),i=n[0],o=n[1];Ce.isTouch&&"hold"===i&&o&&(t=o),t?r=setTimeout((function(){w.show()}),t):w.show()}function ne(e){if(w.clearDelayTimeouts(),_("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=B(!1);t?i=setTimeout((function(){w.state.isVisible&&w.hide()}),t):o=requestAnimationFrame((function(){w.hide()}))}}else W()}}function $e(e,t){void 0===t&&(t={});var n=_e.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",je,de),window.addEventListener("blur",Me);var r=Object.assign({},t,{plugins:n}),i=Te(e).reduce((function(e,t){var n=t&&ze(t,r);return n&&e.push(n),e}),[]);return Ee(e)?i[0]:i}$e.defaultProps=_e,$e.setDefaultProps=function(e){Object.keys(e).forEach((function(t){_e[t]=e[t]}))},$e.currentInput=Ce,Object.assign({},v,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),$e.setDefaultProps({render:We});var Ye=function(){function e(e,t,n){this.eventTarget=e,this.eventName=t,this.eventOptions=n,this.unorderedBindings=new Set}return e.prototype.connect=function(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)},e.prototype.disconnect=function(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)},e.prototype.bindingConnected=function(e){this.unorderedBindings.add(e)},e.prototype.bindingDisconnected=function(e){this.unorderedBindings.delete(e)},e.prototype.handleEvent=function(e){for(var t=function(e){if("immediatePropagationStopped"in e)return e;var t=e.stopImmediatePropagation;return Object.assign(e,{immediatePropagationStopped:!1,stopImmediatePropagation:function(){this.immediatePropagationStopped=!0,t.call(this)}})}(e),n=0,r=this.bindings;nr?1:0}))},enumerable:!1,configurable:!0}),e}();var Je=function(){function e(e){this.application=e,this.eventListenerMaps=new Map,this.started=!1}return e.prototype.start=function(){this.started||(this.started=!0,this.eventListeners.forEach((function(e){return e.connect()})))},e.prototype.stop=function(){this.started&&(this.started=!1,this.eventListeners.forEach((function(e){return e.disconnect()})))},Object.defineProperty(e.prototype,"eventListeners",{get:function(){return Array.from(this.eventListenerMaps.values()).reduce((function(e,t){return e.concat(Array.from(t.values()))}),[])},enumerable:!1,configurable:!0}),e.prototype.bindingConnected=function(e){this.fetchEventListenerForBinding(e).bindingConnected(e)},e.prototype.bindingDisconnected=function(e){this.fetchEventListenerForBinding(e).bindingDisconnected(e)},e.prototype.handleError=function(e,t,n){void 0===n&&(n={}),this.application.handleError(e,"Error "+t,n)},e.prototype.fetchEventListenerForBinding=function(e){var t=e.eventTarget,n=e.eventName,r=e.eventOptions;return this.fetchEventListener(t,n,r)},e.prototype.fetchEventListener=function(e,t,n){var r=this.fetchEventListenerMapForEventTarget(e),i=this.cacheKey(t,n),o=r.get(i);return o||(o=this.createEventListener(e,t,n),r.set(i,o)),o},e.prototype.createEventListener=function(e,t,n){var r=new Ye(e,t,n);return this.started&&r.connect(),r},e.prototype.fetchEventListenerMapForEventTarget=function(e){var t=this.eventListenerMaps.get(e);return t||(t=new Map,this.eventListenerMaps.set(e,t)),t},e.prototype.cacheKey=function(e,t){var n=[e];return Object.keys(t).sort().forEach((function(e){n.push((t[e]?"":"!")+e)})),n.join(":")},e}(),Xe=/^((.+?)(@(window|document))?->)?(.+?)(#([^:]+?))(:(.+))?$/;function Qe(e){return"window"==e?window:"document"==e?document:void 0}var Ge=function(){function e(e,t,n){this.element=e,this.index=t,this.eventTarget=n.eventTarget||e,this.eventName=n.eventName||function(e){var t=e.tagName.toLowerCase();if(t in Ze)return Ze[t](e)}(e)||et("missing event name"),this.eventOptions=n.eventOptions||{},this.identifier=n.identifier||et("missing identifier"),this.methodName=n.methodName||et("missing method name")}return e.forToken=function(e){return new this(e.element,e.index,(t=e.content,{eventTarget:Qe((r=t.trim().match(Xe)||[])[4]),eventName:r[2],eventOptions:r[9]?(n=r[9],n.split(":").reduce((function(e,t){var n;return Object.assign(e,((n={})[t.replace(/^!/,"")]=!/^!/.test(t),n))}),{})):{},identifier:r[5],methodName:r[7]}));var t,n,r},e.prototype.toString=function(){var e=this.eventTargetName?"@"+this.eventTargetName:"";return""+this.eventName+e+"->"+this.identifier+"#"+this.methodName},Object.defineProperty(e.prototype,"eventTargetName",{get:function(){return(e=this.eventTarget)==window?"window":e==document?"document":void 0;var e},enumerable:!1,configurable:!0}),e}(),Ze={a:function(e){return"click"},button:function(e){return"click"},form:function(e){return"submit"},input:function(e){return"submit"==e.getAttribute("type")?"click":"input"},select:function(e){return"change"},textarea:function(e){return"input"}};function et(e){throw new Error(e)}var tt=function(){function e(e,t){this.context=e,this.action=t}return Object.defineProperty(e.prototype,"index",{get:function(){return this.action.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventTarget",{get:function(){return this.action.eventTarget},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventOptions",{get:function(){return this.action.eventOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"identifier",{get:function(){return this.context.identifier},enumerable:!1,configurable:!0}),e.prototype.handleEvent=function(e){this.willBeInvokedByEvent(e)&&this.invokeWithEvent(e)},Object.defineProperty(e.prototype,"eventName",{get:function(){return this.action.eventName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){var e=this.controller[this.methodName];if("function"==typeof e)return e;throw new Error('Action "'+this.action+'" references undefined method "'+this.methodName+'"')},enumerable:!1,configurable:!0}),e.prototype.invokeWithEvent=function(e){try{this.method.call(this.controller,e)}catch(r){var t=this,n={identifier:t.identifier,controller:t.controller,element:t.element,index:t.index,event:e};this.context.handleError(r,'invoking action "'+this.action+'"',n)}},e.prototype.willBeInvokedByEvent=function(e){var t=e.target;return this.element===t||(t instanceof Element&&this.element.contains(t)?this.scope.containsElement(t):this.scope.containsElement(this.action.element))},Object.defineProperty(e.prototype,"controller",{get:function(){return this.context.controller},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"methodName",{get:function(){return this.action.methodName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.scope.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scope",{get:function(){return this.context.scope},enumerable:!1,configurable:!0}),e}(),nt=function(){function e(e,t){var n=this;this.element=e,this.started=!1,this.delegate=t,this.elements=new Set,this.mutationObserver=new MutationObserver((function(e){return n.processMutations(e)}))}return e.prototype.start=function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,childList:!0,subtree:!0}),this.refresh())},e.prototype.stop=function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)},e.prototype.refresh=function(){if(this.started){for(var e=new Set(this.matchElementsInTree()),t=0,n=Array.from(this.elements);t0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]'},n.lockScroll=function(){var e=window.innerWidth-document.documentElement.clientWidth;document.body.style.paddingRight=e+"px",this.saveScrollPosition(),document.body.classList.add("fixed","inset-x-0","overflow-hidden"),document.body.style.top="-"+this.scrollPosition+"px"},n.unlockScroll=function(){document.body.style.paddingRight=null,document.body.classList.remove("fixed","inset-x-0","overflow-hidden"),this.restoreScrollPosition(),document.body.style.top=null},n.saveScrollPosition=function(){this.scrollPosition=window.pageYOffset||document.body.scrollTop},n.restoreScrollPosition=function(){document.documentElement.scrollTop=this.scrollPosition},t}(Qt)).targets=["container"],(function(e){function t(){return e.apply(this,arguments)||this}en(t,e);var n=t.prototype;return n.connect=function(){var e=this;this.activeTabClasses=(this.data.get("activeTab")||"active").split(" "),this.inactiveTabClasses=(this.data.get("inactiveTab")||"inactive").split(" "),this.anchor&&(this.index=this.tabTargets.findIndex((function(t){return t.id===e.anchor}))),this.showTab()},n.change=function(e){e.preventDefault(),this.index=e.currentTarget.dataset.index?e.currentTarget.dataset.index:e.currentTarget.dataset.id?this.tabTargets.findIndex((function(t){return t.id==e.currentTarget.dataset.id})):this.tabTargets.indexOf(e.currentTarget),window.dispatchEvent(new CustomEvent("tsc:tab-change"))},n.showTab=function(){var e=this;this.tabTargets.forEach((function(t,n){var r,i,o,s,a=e.panelTargets[n];n===e.index?(a.classList.remove("hidden"),(r=t.classList).remove.apply(r,e.inactiveTabClasses),(i=t.classList).add.apply(i,e.activeTabClasses),t.id&&(location.hash=t.id)):(a.classList.add("hidden"),(o=t.classList).remove.apply(o,e.activeTabClasses),(s=t.classList).add.apply(s,e.inactiveTabClasses))}))},Zt(t,[{key:"index",get:function(){return parseInt(this.data.get("index")||0)},set:function(e){this.data.set("index",e>=0?e:0),this.showTab()}},{key:"anchor",get:function(){return document.URL.split("#").length>1?document.URL.split("#")[1]:null}}]),t}(Qt)).targets=["tab","panel"];var nn=function(e){function t(){return e.apply(this,arguments)||this}en(t,e);var n=t.prototype;return n.connect=function(){this.toggleClass=this.data.get("class")||"hidden"},n.toggle=function(e){e.preventDefault(),this.openValue=!this.openValue},n.hide=function(e){e.preventDefault(),this.openValue=!1},n.show=function(e){e.preventDefault(),this.openValue=!0},n.openValueChanged=function(){var e=this;this.toggleClass&&this.toggleableTargets.forEach((function(t){t.classList.toggle(e.toggleClass)}))},t}(Qt);function rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function on(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=128?"#000":"#fff"},Zt(t,[{key:"preview",set:function(e){this.previewTarget.style[this.styleProperty]=e;var t=this._getContrastYIQ(e);"color"===this.styleProperty?this.previewTarget.style.backgroundColor=t:this.previewTarget.style.color=t}},{key:"color",get:function(){return this.colorTarget.value}}]),t}(Qt)).targets=["preview","color"];var yn=function(e){cn(n,e);var t=hn(n);function n(){return rn(this,n),t.apply(this,arguments)}return sn(n,[{key:"connect",value:function(){this.setCount()}},{key:"checkAll",value:function(){this.setAllCheckboxes(!0),this.setCount()}},{key:"checkNone",value:function(){this.setAllCheckboxes(!1),this.setCount()}},{key:"onChecked",value:function(){this.setCount()}},{key:"setAllCheckboxes",value:function(e){this.checkboxes.forEach((function(t){var n=t;n.disabled||(n.checked=e)}))}},{key:"setCount",value:function(){if(this.hasCountTarget){var e=this.selectedCheckboxes.length;this.countTarget.innerHTML="".concat(e," selected")}}},{key:"selectedCheckboxes",get:function(){return this.checkboxes.filter((function(e){return e.checked}))}},{key:"checkboxes",get:function(){return pn(Array,mn(this.element.querySelectorAll("input[type=checkbox]")))}}]),n}(Qt);an(yn,"targets",["count"]);var vn=function(e){cn(n,e);var t=hn(n);function n(){return rn(this,n),t.apply(this,arguments)}return sn(n,[{key:"selectAll",value:function(e){var t=e.target.checked;this.allTarget.indeterminate=!1,this._setAllCheckboxes(t),this._dispatch("change",{count:this.selectedCount})}},{key:"onSelected",value:function(){this.allTarget.indeterminate=!!this._indeterminate,this._dispatch("change",{count:this.selectedCount})}},{key:"selectedCount",get:function(){return this.selected.length}},{key:"selected",get:function(){return this.selectables.filter((function(e){return e.checked}))}},{key:"selectables",get:function(){return pn(Array,mn(this.selectableTargets))}},{key:"_setAllCheckboxes",value:function(e){this.selectables.forEach((function(t){var n=t;n.disabled||(n.checked=e)}))}},{key:"_indeterminate",get:function(){return this.selected.length!==this.selectableTargets.length&&this.selected.length>0}},{key:"_dispatch",value:function(e,t){window.dispatchEvent(new CustomEvent("rmp:select:".concat(e),{bubbles:!0,detail:t}))}}]),n}(Qt);an(vn,"targets",["all","selectable"]);var bn=function(e){cn(n,e);var t=hn(n);function n(){return rn(this,n),t.apply(this,arguments)}return sn(n,[{key:"apply",value:function(){location.href="".concat(window.location.pathname,"?").concat(this.params)}},{key:"post",value:function(){var e=document.head.querySelector('meta[name="csrf-token"]').content,t="".concat(window.location.pathname,"/destroy_all?").concat(this.params);fetch(t,{method:"DELETE",redirect:"follow",headers:{"Content-Type":"application/json",credentials:"same-origin"},body:JSON.stringify({authenticity_token:e})}).then((function(e){e.redirected&&(window.location.href=e.url)}))}},{key:"params",get:function(){return this.activeFilterTargets().map((function(e){return"".concat(e.name,"=").concat(e.value)})).join("&")}},{key:"activeFilterTargets",value:function(){return this.filterTargets.filter((function(e){return"checkbox"===e.type||"radio"===e.type?e.checked:e.value.length>0}))}}]),n}(Qt);an(bn,"targets",["filter"]);var wn=function(e){cn(n,e);var t=hn(n);function n(){return rn(this,n),t.apply(this,arguments)}return sn(n,[{key:"clear",value:function(){this.eventTarget.value=null,window.dispatchEvent(new CustomEvent("search-controller:submit",{}))}},{key:"submit",value:function(e){e.preventDefault(),"Enter"!==e.key&&"click"!==e.type||window.dispatchEvent(new CustomEvent("search-controller:submit",{}))}}]),n}(Qt);an(wn,"targets",["field"]);var On=function(e){cn(n,e);var t=hn(n);function n(){return rn(this,n),t.apply(this,arguments)}return sn(n,[{key:"enable",value:function(){this.enableTarget.disabled=!1}},{key:"disable",value:function(){this.enableTarget.disabled=!0}},{key:"change",value:function(e){e.type.match(/rmp:select:.*/)&&(e.detail.count>0?this.enable():this.disable())}}]),n}(Qt);an(On,"targets",["enable"]);var En=Wt.start();En.register("dropdown",tn),En.register("checklist",yn),En.register("selectable",vn),En.register("filters",bn),En.register("search",wn),En.register("enable",On),document.addEventListener("DOMContentLoaded",(function(){var e;!function(){var e=document.getElementById("profiled-requests-table");if(e)for(var t=e.rows,n=function(t){var n=e.rows[t],r=n.dataset.link;r&&(n.onclick=function(){window.location.href=r})},r=1;r