@ws-ui/shared 1.6.3 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,21 +1,21 @@
1
- "use strict";var r_=Object.defineProperty;var Dd=e=>{throw TypeError(e)};var n_=(e,r,n)=>r in e?r_(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var et=(e,r,n)=>n_(e,typeof r!="symbol"?r+"":r,n),Eu=(e,r,n)=>r.has(e)||Dd("Cannot "+n);var re=(e,r,n)=>(Eu(e,r,"read from private field"),n?n.call(e):r.get(e)),Ot=(e,r,n)=>r.has(e)?Dd("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,n),Ge=(e,r,n,o)=>(Eu(e,r,"write to private field"),o?o.call(e,n):r.set(e,n),n),Zr=(e,r,n)=>(Eu(e,r,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react/jsx-runtime"),U=require("react"),so=require("react-dom"),rt=require("@ws-ui/icons"),al=require("@emotion/react");function qh(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const $=qh(U),i_=qh(so),Zh=({children:e})=>so.createPortal(e,document.querySelector("body"));var $d=function(r){return r.reduce(function(n,o){var a=o[0],u=o[1];return n[a]=u,n},{})},Nd=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,At="top",Yt="bottom",Xt="right",Tt="left",Al="auto",uo=[At,Yt,Xt,Tt],Qn="start",Qi="end",o_="clippingParents",Gh="viewport",Ei="popper",a_="reference",kd=uo.reduce(function(e,r){return e.concat([r+"-"+Qn,r+"-"+Qi])},[]),Kh=[].concat(uo,[Al]).reduce(function(e,r){return e.concat([r,r+"-"+Qn,r+"-"+Qi])},[]),s_="beforeRead",u_="read",l_="afterRead",c_="beforeMain",f_="main",d_="afterMain",p_="beforeWrite",h_="write",v_="afterWrite",m_=[s_,u_,l_,c_,f_,d_,p_,h_,v_];function vr(e){return e?(e.nodeName||"").toLowerCase():null}function $t(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function xn(e){var r=$t(e).Element;return e instanceof r||e instanceof Element}function Vt(e){var r=$t(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function Tl(e){if(typeof ShadowRoot>"u")return!1;var r=$t(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function g_(e){var r=e.state;Object.keys(r.elements).forEach(function(n){var o=r.styles[n]||{},a=r.attributes[n]||{},u=r.elements[n];!Vt(u)||!vr(u)||(Object.assign(u.style,o),Object.keys(a).forEach(function(l){var d=a[l];d===!1?u.removeAttribute(l):u.setAttribute(l,d===!0?"":d)}))})}function y_(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow),function(){Object.keys(r.elements).forEach(function(o){var a=r.elements[o],u=r.attributes[o]||{},l=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:n[o]),d=l.reduce(function(w,S){return w[S]="",w},{});!Vt(a)||!vr(a)||(Object.assign(a.style,d),Object.keys(u).forEach(function(w){a.removeAttribute(w)}))})}}const w_={name:"applyStyles",enabled:!0,phase:"write",fn:g_,effect:y_,requires:["computeStyles"]};function hr(e){return e.split("-")[0]}var Sn=Math.max,Fa=Math.min,ei=Math.round;function sl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function Vh(){return!/^((?!chrome|android).)*safari/i.test(sl())}function ti(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),a=1,u=1;r&&Vt(e)&&(a=e.offsetWidth>0&&ei(o.width)/e.offsetWidth||1,u=e.offsetHeight>0&&ei(o.height)/e.offsetHeight||1);var l=xn(e)?$t(e):window,d=l.visualViewport,w=!Vh()&&n,S=(o.left+(w&&d?d.offsetLeft:0))/a,y=(o.top+(w&&d?d.offsetTop:0))/u,h=o.width/a,c=o.height/u;return{width:h,height:c,top:y,right:S+h,bottom:y+c,left:S,x:S,y}}function Cl(e){var r=ti(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(r.width-n)<=1&&(n=r.width),Math.abs(r.height-o)<=1&&(o=r.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Yh(e,r){var n=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(n&&Tl(n)){var o=r;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ir(e){return $t(e).getComputedStyle(e)}function b_(e){return["table","td","th"].indexOf(vr(e))>=0}function rn(e){return((xn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ba(e){return vr(e)==="html"?e:e.assignedSlot||e.parentNode||(Tl(e)?e.host:null)||rn(e)}function jd(e){return!Vt(e)||Ir(e).position==="fixed"?null:e.offsetParent}function S_(e){var r=/firefox/i.test(sl()),n=/Trident/i.test(sl());if(n&&Vt(e)){var o=Ir(e);if(o.position==="fixed")return null}var a=Ba(e);for(Tl(a)&&(a=a.host);Vt(a)&&["html","body"].indexOf(vr(a))<0;){var u=Ir(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||r&&u.willChange==="filter"||r&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function lo(e){for(var r=$t(e),n=jd(e);n&&b_(n)&&Ir(n).position==="static";)n=jd(n);return n&&(vr(n)==="html"||vr(n)==="body"&&Ir(n).position==="static")?r:n||S_(e)||r}function Pl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yi(e,r,n){return Sn(e,Fa(r,n))}function E_(e,r,n){var o=Yi(e,r,n);return o>n?n:o}function Xh(){return{top:0,right:0,bottom:0,left:0}}function Jh(e){return Object.assign({},Xh(),e)}function Qh(e,r){return r.reduce(function(n,o){return n[o]=e,n},{})}var __=function(r,n){return r=typeof r=="function"?r(Object.assign({},n.rects,{placement:n.placement})):r,Jh(typeof r!="number"?r:Qh(r,uo))};function x_(e){var r,n=e.state,o=e.name,a=e.options,u=n.elements.arrow,l=n.modifiersData.popperOffsets,d=hr(n.placement),w=Pl(d),S=[Tt,Xt].indexOf(d)>=0,y=S?"height":"width";if(!(!u||!l)){var h=__(a.padding,n),c=Cl(u),p=w==="y"?At:Tt,m=w==="y"?Yt:Xt,f=n.rects.reference[y]+n.rects.reference[w]-l[w]-n.rects.popper[y],g=l[w]-n.rects.reference[w],b=lo(u),_=b?w==="y"?b.clientHeight||0:b.clientWidth||0:0,x=f/2-g/2,C=h[p],T=_-c[y]-h[m],M=_/2-c[y]/2+x,H=Yi(C,M,T),L=w;n.modifiersData[o]=(r={},r[L]=H,r.centerOffset=H-M,r)}}function O_(e){var r=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||Yh(r.elements.popper,a)&&(r.elements.arrow=a))}const A_={name:"arrow",enabled:!0,phase:"main",fn:x_,effect:O_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ri(e){return e.split("-")[1]}var T_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function C_(e,r){var n=e.x,o=e.y,a=r.devicePixelRatio||1;return{x:ei(n*a)/a||0,y:ei(o*a)/a||0}}function Wd(e){var r,n=e.popper,o=e.popperRect,a=e.placement,u=e.variation,l=e.offsets,d=e.position,w=e.gpuAcceleration,S=e.adaptive,y=e.roundOffsets,h=e.isFixed,c=l.x,p=c===void 0?0:c,m=l.y,f=m===void 0?0:m,g=typeof y=="function"?y({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var b=l.hasOwnProperty("x"),_=l.hasOwnProperty("y"),x=Tt,C=At,T=window;if(S){var M=lo(n),H="clientHeight",L="clientWidth";if(M===$t(n)&&(M=rn(n),Ir(M).position!=="static"&&d==="absolute"&&(H="scrollHeight",L="scrollWidth")),M=M,a===At||(a===Tt||a===Xt)&&u===Qi){C=Yt;var k=h&&M===T&&T.visualViewport?T.visualViewport.height:M[H];f-=k-o.height,f*=w?1:-1}if(a===Tt||(a===At||a===Yt)&&u===Qi){x=Xt;var X=h&&M===T&&T.visualViewport?T.visualViewport.width:M[L];p-=X-o.width,p*=w?1:-1}}var j=Object.assign({position:d},S&&T_),F=y===!0?C_({x:p,y:f},$t(n)):{x:p,y:f};if(p=F.x,f=F.y,w){var B;return Object.assign({},j,(B={},B[C]=_?"0":"",B[x]=b?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",B))}return Object.assign({},j,(r={},r[C]=_?f+"px":"",r[x]=b?p+"px":"",r.transform="",r))}function P_(e){var r=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,u=n.adaptive,l=u===void 0?!0:u,d=n.roundOffsets,w=d===void 0?!0:d,S={placement:hr(r.placement),variation:ri(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,Wd(Object.assign({},S,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:l,roundOffsets:w})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,Wd(Object.assign({},S,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:w})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const R_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:P_,data:{}};var sa={passive:!0};function M_(e){var r=e.state,n=e.instance,o=e.options,a=o.scroll,u=a===void 0?!0:a,l=o.resize,d=l===void 0?!0:l,w=$t(r.elements.popper),S=[].concat(r.scrollParents.reference,r.scrollParents.popper);return u&&S.forEach(function(y){y.addEventListener("scroll",n.update,sa)}),d&&w.addEventListener("resize",n.update,sa),function(){u&&S.forEach(function(y){y.removeEventListener("scroll",n.update,sa)}),d&&w.removeEventListener("resize",n.update,sa)}}const I_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:M_,data:{}};var F_={left:"right",right:"left",bottom:"top",top:"bottom"};function Aa(e){return e.replace(/left|right|bottom|top/g,function(r){return F_[r]})}var L_={start:"end",end:"start"};function Ud(e){return e.replace(/start|end/g,function(r){return L_[r]})}function Rl(e){var r=$t(e),n=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Ml(e){return ti(rn(e)).left+Rl(e).scrollLeft}function D_(e,r){var n=$t(e),o=rn(e),a=n.visualViewport,u=o.clientWidth,l=o.clientHeight,d=0,w=0;if(a){u=a.width,l=a.height;var S=Vh();(S||!S&&r==="fixed")&&(d=a.offsetLeft,w=a.offsetTop)}return{width:u,height:l,x:d+Ml(e),y:w}}function $_(e){var r,n=rn(e),o=Rl(e),a=(r=e.ownerDocument)==null?void 0:r.body,u=Sn(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Sn(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-o.scrollLeft+Ml(e),w=-o.scrollTop;return Ir(a||n).direction==="rtl"&&(d+=Sn(n.clientWidth,a?a.clientWidth:0)-u),{width:u,height:l,x:d,y:w}}function Il(e){var r=Ir(e),n=r.overflow,o=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function ev(e){return["html","body","#document"].indexOf(vr(e))>=0?e.ownerDocument.body:Vt(e)&&Il(e)?e:ev(Ba(e))}function Xi(e,r){var n;r===void 0&&(r=[]);var o=ev(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),u=$t(o),l=a?[u].concat(u.visualViewport||[],Il(o)?o:[]):o,d=r.concat(l);return a?d:d.concat(Xi(Ba(l)))}function ul(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function N_(e,r){var n=ti(e,!1,r==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Bd(e,r,n){return r===Gh?ul(D_(e,n)):xn(r)?N_(r,n):ul($_(rn(e)))}function k_(e){var r=Xi(Ba(e)),n=["absolute","fixed"].indexOf(Ir(e).position)>=0,o=n&&Vt(e)?lo(e):e;return xn(o)?r.filter(function(a){return xn(a)&&Yh(a,o)&&vr(a)!=="body"}):[]}function j_(e,r,n,o){var a=r==="clippingParents"?k_(e):[].concat(r),u=[].concat(a,[n]),l=u[0],d=u.reduce(function(w,S){var y=Bd(e,S,o);return w.top=Sn(y.top,w.top),w.right=Fa(y.right,w.right),w.bottom=Fa(y.bottom,w.bottom),w.left=Sn(y.left,w.left),w},Bd(e,l,o));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function tv(e){var r=e.reference,n=e.element,o=e.placement,a=o?hr(o):null,u=o?ri(o):null,l=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,w;switch(a){case At:w={x:l,y:r.y-n.height};break;case Yt:w={x:l,y:r.y+r.height};break;case Xt:w={x:r.x+r.width,y:d};break;case Tt:w={x:r.x-n.width,y:d};break;default:w={x:r.x,y:r.y}}var S=a?Pl(a):null;if(S!=null){var y=S==="y"?"height":"width";switch(u){case Qn:w[S]=w[S]-(r[y]/2-n[y]/2);break;case Qi:w[S]=w[S]+(r[y]/2-n[y]/2);break}}return w}function eo(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=o===void 0?e.placement:o,u=n.strategy,l=u===void 0?e.strategy:u,d=n.boundary,w=d===void 0?o_:d,S=n.rootBoundary,y=S===void 0?Gh:S,h=n.elementContext,c=h===void 0?Ei:h,p=n.altBoundary,m=p===void 0?!1:p,f=n.padding,g=f===void 0?0:f,b=Jh(typeof g!="number"?g:Qh(g,uo)),_=c===Ei?a_:Ei,x=e.rects.popper,C=e.elements[m?_:c],T=j_(xn(C)?C:C.contextElement||rn(e.elements.popper),w,y,l),M=ti(e.elements.reference),H=tv({reference:M,element:x,placement:a}),L=ul(Object.assign({},x,H)),k=c===Ei?L:M,X={top:T.top-k.top+b.top,bottom:k.bottom-T.bottom+b.bottom,left:T.left-k.left+b.left,right:k.right-T.right+b.right},j=e.modifiersData.offset;if(c===Ei&&j){var F=j[a];Object.keys(X).forEach(function(B){var q=[Xt,Yt].indexOf(B)>=0?1:-1,R=[At,Yt].indexOf(B)>=0?"y":"x";X[B]+=F[R]*q})}return X}function W_(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=n.boundary,u=n.rootBoundary,l=n.padding,d=n.flipVariations,w=n.allowedAutoPlacements,S=w===void 0?Kh:w,y=ri(o),h=y?d?kd:kd.filter(function(m){return ri(m)===y}):uo,c=h.filter(function(m){return S.indexOf(m)>=0});c.length===0&&(c=h);var p=c.reduce(function(m,f){return m[f]=eo(e,{placement:f,boundary:a,rootBoundary:u,padding:l})[hr(f)],m},{});return Object.keys(p).sort(function(m,f){return p[m]-p[f]})}function U_(e){if(hr(e)===Al)return[];var r=Aa(e);return[Ud(e),r,Ud(r)]}function B_(e){var r=e.state,n=e.options,o=e.name;if(!r.modifiersData[o]._skip){for(var a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,d=l===void 0?!0:l,w=n.fallbackPlacements,S=n.padding,y=n.boundary,h=n.rootBoundary,c=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,f=n.allowedAutoPlacements,g=r.options.placement,b=hr(g),_=b===g,x=w||(_||!m?[Aa(g)]:U_(g)),C=[g].concat(x).reduce(function(oe,fe){return oe.concat(hr(fe)===Al?W_(r,{placement:fe,boundary:y,rootBoundary:h,padding:S,flipVariations:m,allowedAutoPlacements:f}):fe)},[]),T=r.rects.reference,M=r.rects.popper,H=new Map,L=!0,k=C[0],X=0;X<C.length;X++){var j=C[X],F=hr(j),B=ri(j)===Qn,q=[At,Yt].indexOf(F)>=0,R=q?"width":"height",J=eo(r,{placement:j,boundary:y,rootBoundary:h,altBoundary:c,padding:S}),V=q?B?Xt:Tt:B?Yt:At;T[R]>M[R]&&(V=Aa(V));var te=Aa(V),le=[];if(u&&le.push(J[F]<=0),d&&le.push(J[V]<=0,J[te]<=0),le.every(function(oe){return oe})){k=j,L=!1;break}H.set(j,le)}if(L)for(var Z=m?3:1,ee=function(fe){var pe=C.find(function(ye){var ge=H.get(ye);if(ge)return ge.slice(0,fe).every(function(_e){return _e})});if(pe)return k=pe,"break"},ae=Z;ae>0;ae--){var ce=ee(ae);if(ce==="break")break}r.placement!==k&&(r.modifiersData[o]._skip=!0,r.placement=k,r.reset=!0)}}const z_={name:"flip",enabled:!0,phase:"main",fn:B_,requiresIfExists:["offset"],data:{_skip:!1}};function zd(e,r,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-r.height-n.y,right:e.right-r.width+n.x,bottom:e.bottom-r.height+n.y,left:e.left-r.width-n.x}}function Hd(e){return[At,Xt,Yt,Tt].some(function(r){return e[r]>=0})}function H_(e){var r=e.state,n=e.name,o=r.rects.reference,a=r.rects.popper,u=r.modifiersData.preventOverflow,l=eo(r,{elementContext:"reference"}),d=eo(r,{altBoundary:!0}),w=zd(l,o),S=zd(d,a,u),y=Hd(w),h=Hd(S);r.modifiersData[n]={referenceClippingOffsets:w,popperEscapeOffsets:S,isReferenceHidden:y,hasPopperEscaped:h},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":h})}const q_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:H_};function Z_(e,r,n){var o=hr(e),a=[Tt,At].indexOf(o)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},r,{placement:e})):n,l=u[0],d=u[1];return l=l||0,d=(d||0)*a,[Tt,Xt].indexOf(o)>=0?{x:d,y:l}:{x:l,y:d}}function G_(e){var r=e.state,n=e.options,o=e.name,a=n.offset,u=a===void 0?[0,0]:a,l=Kh.reduce(function(y,h){return y[h]=Z_(h,r.rects,u),y},{}),d=l[r.placement],w=d.x,S=d.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=w,r.modifiersData.popperOffsets.y+=S),r.modifiersData[o]=l}const K_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G_};function V_(e){var r=e.state,n=e.name;r.modifiersData[n]=tv({reference:r.rects.reference,element:r.rects.popper,placement:r.placement})}const Y_={name:"popperOffsets",enabled:!0,phase:"read",fn:V_,data:{}};function X_(e){return e==="x"?"y":"x"}function J_(e){var r=e.state,n=e.options,o=e.name,a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,d=l===void 0?!1:l,w=n.boundary,S=n.rootBoundary,y=n.altBoundary,h=n.padding,c=n.tether,p=c===void 0?!0:c,m=n.tetherOffset,f=m===void 0?0:m,g=eo(r,{boundary:w,rootBoundary:S,padding:h,altBoundary:y}),b=hr(r.placement),_=ri(r.placement),x=!_,C=Pl(b),T=X_(C),M=r.modifiersData.popperOffsets,H=r.rects.reference,L=r.rects.popper,k=typeof f=="function"?f(Object.assign({},r.rects,{placement:r.placement})):f,X=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),j=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,F={x:0,y:0};if(M){if(u){var B,q=C==="y"?At:Tt,R=C==="y"?Yt:Xt,J=C==="y"?"height":"width",V=M[C],te=V+g[q],le=V-g[R],Z=p?-L[J]/2:0,ee=_===Qn?H[J]:L[J],ae=_===Qn?-L[J]:-H[J],ce=r.elements.arrow,oe=p&&ce?Cl(ce):{width:0,height:0},fe=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Xh(),pe=fe[q],ye=fe[R],ge=Yi(0,H[J],oe[J]),_e=x?H[J]/2-Z-ge-pe-X.mainAxis:ee-ge-pe-X.mainAxis,Ae=x?-H[J]/2+Z+ge+ye+X.mainAxis:ae+ge+ye+X.mainAxis,Ue=r.elements.arrow&&lo(r.elements.arrow),ne=Ue?C==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,ft=(B=j==null?void 0:j[C])!=null?B:0,nt=V+_e-ft-ne,or=V+Ae-ft,mo=Yi(p?Fa(te,nt):te,V,p?Sn(le,or):le);M[C]=mo,F[C]=mo-V}if(d){var Nt,go=C==="x"?At:Tt,es=C==="x"?Yt:Xt,Ct=M[T],dt=T==="y"?"height":"width",Lr=Ct+g[go],on=Ct-g[es],ai=[At,Tt].indexOf(b)!==-1,Dr=(Nt=j==null?void 0:j[T])!=null?Nt:0,yo=ai?Lr:Ct-H[dt]-L[dt]-Dr+X.altAxis,$r=ai?Ct+H[dt]+L[dt]-Dr-X.altAxis:on,gr=p&&ai?E_(yo,Ct,$r):Yi(p?yo:Lr,Ct,p?$r:on);M[T]=gr,F[T]=gr-Ct}r.modifiersData[o]=F}}const Q_={name:"preventOverflow",enabled:!0,phase:"main",fn:J_,requiresIfExists:["offset"]};function ex(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function tx(e){return e===$t(e)||!Vt(e)?Rl(e):ex(e)}function rx(e){var r=e.getBoundingClientRect(),n=ei(r.width)/e.offsetWidth||1,o=ei(r.height)/e.offsetHeight||1;return n!==1||o!==1}function nx(e,r,n){n===void 0&&(n=!1);var o=Vt(r),a=Vt(r)&&rx(r),u=rn(r),l=ti(e,a,n),d={scrollLeft:0,scrollTop:0},w={x:0,y:0};return(o||!o&&!n)&&((vr(r)!=="body"||Il(u))&&(d=tx(r)),Vt(r)?(w=ti(r,!0),w.x+=r.clientLeft,w.y+=r.clientTop):u&&(w.x=Ml(u))),{x:l.left+d.scrollLeft-w.x,y:l.top+d.scrollTop-w.y,width:l.width,height:l.height}}function ix(e){var r=new Map,n=new Set,o=[];e.forEach(function(u){r.set(u.name,u)});function a(u){n.add(u.name);var l=[].concat(u.requires||[],u.requiresIfExists||[]);l.forEach(function(d){if(!n.has(d)){var w=r.get(d);w&&a(w)}}),o.push(u)}return e.forEach(function(u){n.has(u.name)||a(u)}),o}function ox(e){var r=ix(e);return m_.reduce(function(n,o){return n.concat(r.filter(function(a){return a.phase===o}))},[])}function ax(e){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(e())})})),r}}function sx(e){var r=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(r).map(function(n){return r[n]})}var qd={placement:"bottom",modifiers:[],strategy:"absolute"};function Zd(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return!r.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function ux(e){e===void 0&&(e={});var r=e,n=r.defaultModifiers,o=n===void 0?[]:n,a=r.defaultOptions,u=a===void 0?qd:a;return function(d,w,S){S===void 0&&(S=u);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},qd,u),modifiersData:{},elements:{reference:d,popper:w},attributes:{},styles:{}},h=[],c=!1,p={state:y,setOptions:function(b){var _=typeof b=="function"?b(y.options):b;f(),y.options=Object.assign({},u,y.options,_),y.scrollParents={reference:xn(d)?Xi(d):d.contextElement?Xi(d.contextElement):[],popper:Xi(w)};var x=ox(sx([].concat(o,y.options.modifiers)));return y.orderedModifiers=x.filter(function(C){return C.enabled}),m(),p.update()},forceUpdate:function(){if(!c){var b=y.elements,_=b.reference,x=b.popper;if(Zd(_,x)){y.rects={reference:nx(_,lo(x),y.options.strategy==="fixed"),popper:Cl(x)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(X){return y.modifiersData[X.name]=Object.assign({},X.data)});for(var C=0;C<y.orderedModifiers.length;C++){if(y.reset===!0){y.reset=!1,C=-1;continue}var T=y.orderedModifiers[C],M=T.fn,H=T.options,L=H===void 0?{}:H,k=T.name;typeof M=="function"&&(y=M({state:y,options:L,name:k,instance:p})||y)}}}},update:ax(function(){return new Promise(function(g){p.forceUpdate(),g(y)})}),destroy:function(){f(),c=!0}};if(!Zd(d,w))return p;p.setOptions(S).then(function(g){!c&&S.onFirstUpdate&&S.onFirstUpdate(g)});function m(){y.orderedModifiers.forEach(function(g){var b=g.name,_=g.options,x=_===void 0?{}:_,C=g.effect;if(typeof C=="function"){var T=C({state:y,name:b,instance:p,options:x}),M=function(){};h.push(T||M)}})}function f(){h.forEach(function(g){return g()}),h=[]}return p}}var lx=[I_,Y_,R_,w_,K_,z_,Q_,A_,q_],cx=ux({defaultModifiers:lx}),ua=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _u,Gd;function fx(){if(Gd)return _u;Gd=1;var e=typeof Element<"u",r=typeof Map=="function",n=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(u,l){if(u===l)return!0;if(u&&l&&typeof u=="object"&&typeof l=="object"){if(u.constructor!==l.constructor)return!1;var d,w,S;if(Array.isArray(u)){if(d=u.length,d!=l.length)return!1;for(w=d;w--!==0;)if(!a(u[w],l[w]))return!1;return!0}var y;if(r&&u instanceof Map&&l instanceof Map){if(u.size!==l.size)return!1;for(y=u.entries();!(w=y.next()).done;)if(!l.has(w.value[0]))return!1;for(y=u.entries();!(w=y.next()).done;)if(!a(w.value[1],l.get(w.value[0])))return!1;return!0}if(n&&u instanceof Set&&l instanceof Set){if(u.size!==l.size)return!1;for(y=u.entries();!(w=y.next()).done;)if(!l.has(w.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(l)){if(d=u.length,d!=l.length)return!1;for(w=d;w--!==0;)if(u[w]!==l[w])return!1;return!0}if(u.constructor===RegExp)return u.source===l.source&&u.flags===l.flags;if(u.valueOf!==Object.prototype.valueOf&&typeof u.valueOf=="function"&&typeof l.valueOf=="function")return u.valueOf()===l.valueOf();if(u.toString!==Object.prototype.toString&&typeof u.toString=="function"&&typeof l.toString=="function")return u.toString()===l.toString();if(S=Object.keys(u),d=S.length,d!==Object.keys(l).length)return!1;for(w=d;w--!==0;)if(!Object.prototype.hasOwnProperty.call(l,S[w]))return!1;if(e&&u instanceof Element)return!1;for(w=d;w--!==0;)if(!((S[w]==="_owner"||S[w]==="__v"||S[w]==="__o")&&u.$$typeof)&&!a(u[S[w]],l[S[w]]))return!1;return!0}return u!==u&&l!==l}return _u=function(l,d){try{return a(l,d)}catch(w){if((w.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw w}},_u}var dx=fx();const px=rv(dx);var hx=[],nv=function(r,n,o){o===void 0&&(o={});var a=$.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||hx},l=$.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=l[0],w=l[1],S=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var m=p.state,f=Object.keys(m.elements);i_.flushSync(function(){w({styles:$d(f.map(function(g){return[g,m.styles[g]||{}]})),attributes:$d(f.map(function(g){return[g,m.attributes[g]]}))})})},requires:["computeStyles"]}},[]),y=$.useMemo(function(){var c={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[S,{name:"applyStyles",enabled:!1}])};return px(a.current,c)?a.current||c:(a.current=c,c)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,S]),h=$.useRef();return Nd(function(){h.current&&h.current.setOptions(y)},[y]),Nd(function(){if(!(r==null||n==null)){var c=o.createPopper||cx,p=c(r,n,y);return h.current=p,function(){p.destroy(),h.current=null}}},[r,n,o.createPopper]),{state:h.current?h.current.state:null,styles:d.styles,attributes:d.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}};const iv=e=>W.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),ov=U.forwardRef(({children:e,style:r,attributes:n},o)=>W.jsx("div",{style:{...r,zIndex:2e3},...n,ref:o,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),vx=({referenceElement:e,placement:r,isOpen:n,children:o,onClose:a})=>{const[u,l]=U.useState(null),{styles:d,attributes:w}=nv(e,u,{placement:r||"bottom-start"}),S=U.useCallback(()=>{a&&a()},[a]);return n?W.jsxs(Zh,{children:[W.jsx(iv,{onClick:()=>S()}),W.jsx(ov,{ref:l,style:d.popper,attributes:w.popper,children:o})]}):null};var xu={exports:{}};/*!
1
+ "use strict";var n_=Object.defineProperty;var $d=e=>{throw TypeError(e)};var i_=(e,r,n)=>r in e?n_(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var et=(e,r,n)=>i_(e,typeof r!="symbol"?r+"":r,n),Eu=(e,r,n)=>r.has(e)||$d("Cannot "+n);var re=(e,r,n)=>(Eu(e,r,"read from private field"),n?n.call(e):r.get(e)),At=(e,r,n)=>r.has(e)?$d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,n),Ge=(e,r,n,o)=>(Eu(e,r,"write to private field"),o?o.call(e,n):r.set(e,n),n),Zr=(e,r,n)=>(Eu(e,r,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react/jsx-runtime"),U=require("react"),so=require("react-dom"),rt=require("@ws-ui/icons"),al=require("@emotion/react");function Zh(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const $=Zh(U),o_=Zh(so),Gh=({children:e})=>so.createPortal(e,document.querySelector("body"));var Nd=function(r){return r.reduce(function(n,o){var a=o[0],u=o[1];return n[a]=u,n},{})},kd=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,Tt="top",Yt="bottom",Xt="right",Ct="left",Al="auto",uo=[Tt,Yt,Xt,Ct],Qn="start",Qi="end",a_="clippingParents",Kh="viewport",Ei="popper",s_="reference",jd=uo.reduce(function(e,r){return e.concat([r+"-"+Qn,r+"-"+Qi])},[]),Vh=[].concat(uo,[Al]).reduce(function(e,r){return e.concat([r,r+"-"+Qn,r+"-"+Qi])},[]),u_="beforeRead",l_="read",c_="afterRead",f_="beforeMain",d_="main",p_="afterMain",h_="beforeWrite",v_="write",m_="afterWrite",g_=[u_,l_,c_,f_,d_,p_,h_,v_,m_];function vr(e){return e?(e.nodeName||"").toLowerCase():null}function Nt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function xn(e){var r=Nt(e).Element;return e instanceof r||e instanceof Element}function Vt(e){var r=Nt(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function Tl(e){if(typeof ShadowRoot>"u")return!1;var r=Nt(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function y_(e){var r=e.state;Object.keys(r.elements).forEach(function(n){var o=r.styles[n]||{},a=r.attributes[n]||{},u=r.elements[n];!Vt(u)||!vr(u)||(Object.assign(u.style,o),Object.keys(a).forEach(function(l){var d=a[l];d===!1?u.removeAttribute(l):u.setAttribute(l,d===!0?"":d)}))})}function w_(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow),function(){Object.keys(r.elements).forEach(function(o){var a=r.elements[o],u=r.attributes[o]||{},l=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:n[o]),d=l.reduce(function(w,S){return w[S]="",w},{});!Vt(a)||!vr(a)||(Object.assign(a.style,d),Object.keys(u).forEach(function(w){a.removeAttribute(w)}))})}}const b_={name:"applyStyles",enabled:!0,phase:"write",fn:y_,effect:w_,requires:["computeStyles"]};function hr(e){return e.split("-")[0]}var Sn=Math.max,La=Math.min,ei=Math.round;function sl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function Yh(){return!/^((?!chrome|android).)*safari/i.test(sl())}function ti(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),a=1,u=1;r&&Vt(e)&&(a=e.offsetWidth>0&&ei(o.width)/e.offsetWidth||1,u=e.offsetHeight>0&&ei(o.height)/e.offsetHeight||1);var l=xn(e)?Nt(e):window,d=l.visualViewport,w=!Yh()&&n,S=(o.left+(w&&d?d.offsetLeft:0))/a,y=(o.top+(w&&d?d.offsetTop:0))/u,h=o.width/a,c=o.height/u;return{width:h,height:c,top:y,right:S+h,bottom:y+c,left:S,x:S,y}}function Cl(e){var r=ti(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(r.width-n)<=1&&(n=r.width),Math.abs(r.height-o)<=1&&(o=r.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Xh(e,r){var n=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(n&&Tl(n)){var o=r;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Mr(e){return Nt(e).getComputedStyle(e)}function S_(e){return["table","td","th"].indexOf(vr(e))>=0}function rn(e){return((xn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ba(e){return vr(e)==="html"?e:e.assignedSlot||e.parentNode||(Tl(e)?e.host:null)||rn(e)}function Wd(e){return!Vt(e)||Mr(e).position==="fixed"?null:e.offsetParent}function E_(e){var r=/firefox/i.test(sl()),n=/Trident/i.test(sl());if(n&&Vt(e)){var o=Mr(e);if(o.position==="fixed")return null}var a=Ba(e);for(Tl(a)&&(a=a.host);Vt(a)&&["html","body"].indexOf(vr(a))<0;){var u=Mr(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||r&&u.willChange==="filter"||r&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function lo(e){for(var r=Nt(e),n=Wd(e);n&&S_(n)&&Mr(n).position==="static";)n=Wd(n);return n&&(vr(n)==="html"||vr(n)==="body"&&Mr(n).position==="static")?r:n||E_(e)||r}function Pl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yi(e,r,n){return Sn(e,La(r,n))}function __(e,r,n){var o=Yi(e,r,n);return o>n?n:o}function Jh(){return{top:0,right:0,bottom:0,left:0}}function Qh(e){return Object.assign({},Jh(),e)}function ev(e,r){return r.reduce(function(n,o){return n[o]=e,n},{})}var x_=function(r,n){return r=typeof r=="function"?r(Object.assign({},n.rects,{placement:n.placement})):r,Qh(typeof r!="number"?r:ev(r,uo))};function O_(e){var r,n=e.state,o=e.name,a=e.options,u=n.elements.arrow,l=n.modifiersData.popperOffsets,d=hr(n.placement),w=Pl(d),S=[Ct,Xt].indexOf(d)>=0,y=S?"height":"width";if(!(!u||!l)){var h=x_(a.padding,n),c=Cl(u),p=w==="y"?Tt:Ct,m=w==="y"?Yt:Xt,f=n.rects.reference[y]+n.rects.reference[w]-l[w]-n.rects.popper[y],g=l[w]-n.rects.reference[w],b=lo(u),_=b?w==="y"?b.clientHeight||0:b.clientWidth||0:0,x=f/2-g/2,C=h[p],T=_-c[y]-h[m],I=_/2-c[y]/2+x,H=Yi(C,I,T),F=w;n.modifiersData[o]=(r={},r[F]=H,r.centerOffset=H-I,r)}}function A_(e){var r=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||Xh(r.elements.popper,a)&&(r.elements.arrow=a))}const T_={name:"arrow",enabled:!0,phase:"main",fn:O_,effect:A_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ri(e){return e.split("-")[1]}var C_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function P_(e,r){var n=e.x,o=e.y,a=r.devicePixelRatio||1;return{x:ei(n*a)/a||0,y:ei(o*a)/a||0}}function Ud(e){var r,n=e.popper,o=e.popperRect,a=e.placement,u=e.variation,l=e.offsets,d=e.position,w=e.gpuAcceleration,S=e.adaptive,y=e.roundOffsets,h=e.isFixed,c=l.x,p=c===void 0?0:c,m=l.y,f=m===void 0?0:m,g=typeof y=="function"?y({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var b=l.hasOwnProperty("x"),_=l.hasOwnProperty("y"),x=Ct,C=Tt,T=window;if(S){var I=lo(n),H="clientHeight",F="clientWidth";if(I===Nt(n)&&(I=rn(n),Mr(I).position!=="static"&&d==="absolute"&&(H="scrollHeight",F="scrollWidth")),I=I,a===Tt||(a===Ct||a===Xt)&&u===Qi){C=Yt;var k=h&&I===T&&T.visualViewport?T.visualViewport.height:I[H];f-=k-o.height,f*=w?1:-1}if(a===Ct||(a===Tt||a===Yt)&&u===Qi){x=Xt;var X=h&&I===T&&T.visualViewport?T.visualViewport.width:I[F];p-=X-o.width,p*=w?1:-1}}var j=Object.assign({position:d},S&&C_),L=y===!0?P_({x:p,y:f},Nt(n)):{x:p,y:f};if(p=L.x,f=L.y,w){var B;return Object.assign({},j,(B={},B[C]=_?"0":"",B[x]=b?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",B))}return Object.assign({},j,(r={},r[C]=_?f+"px":"",r[x]=b?p+"px":"",r.transform="",r))}function R_(e){var r=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,u=n.adaptive,l=u===void 0?!0:u,d=n.roundOffsets,w=d===void 0?!0:d,S={placement:hr(r.placement),variation:ri(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,Ud(Object.assign({},S,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:l,roundOffsets:w})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,Ud(Object.assign({},S,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:w})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const I_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:R_,data:{}};var sa={passive:!0};function M_(e){var r=e.state,n=e.instance,o=e.options,a=o.scroll,u=a===void 0?!0:a,l=o.resize,d=l===void 0?!0:l,w=Nt(r.elements.popper),S=[].concat(r.scrollParents.reference,r.scrollParents.popper);return u&&S.forEach(function(y){y.addEventListener("scroll",n.update,sa)}),d&&w.addEventListener("resize",n.update,sa),function(){u&&S.forEach(function(y){y.removeEventListener("scroll",n.update,sa)}),d&&w.removeEventListener("resize",n.update,sa)}}const L_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:M_,data:{}};var F_={left:"right",right:"left",bottom:"top",top:"bottom"};function Aa(e){return e.replace(/left|right|bottom|top/g,function(r){return F_[r]})}var D_={start:"end",end:"start"};function Bd(e){return e.replace(/start|end/g,function(r){return D_[r]})}function Rl(e){var r=Nt(e),n=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Il(e){return ti(rn(e)).left+Rl(e).scrollLeft}function $_(e,r){var n=Nt(e),o=rn(e),a=n.visualViewport,u=o.clientWidth,l=o.clientHeight,d=0,w=0;if(a){u=a.width,l=a.height;var S=Yh();(S||!S&&r==="fixed")&&(d=a.offsetLeft,w=a.offsetTop)}return{width:u,height:l,x:d+Il(e),y:w}}function N_(e){var r,n=rn(e),o=Rl(e),a=(r=e.ownerDocument)==null?void 0:r.body,u=Sn(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Sn(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-o.scrollLeft+Il(e),w=-o.scrollTop;return Mr(a||n).direction==="rtl"&&(d+=Sn(n.clientWidth,a?a.clientWidth:0)-u),{width:u,height:l,x:d,y:w}}function Ml(e){var r=Mr(e),n=r.overflow,o=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function tv(e){return["html","body","#document"].indexOf(vr(e))>=0?e.ownerDocument.body:Vt(e)&&Ml(e)?e:tv(Ba(e))}function Xi(e,r){var n;r===void 0&&(r=[]);var o=tv(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),u=Nt(o),l=a?[u].concat(u.visualViewport||[],Ml(o)?o:[]):o,d=r.concat(l);return a?d:d.concat(Xi(Ba(l)))}function ul(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function k_(e,r){var n=ti(e,!1,r==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function zd(e,r,n){return r===Kh?ul($_(e,n)):xn(r)?k_(r,n):ul(N_(rn(e)))}function j_(e){var r=Xi(Ba(e)),n=["absolute","fixed"].indexOf(Mr(e).position)>=0,o=n&&Vt(e)?lo(e):e;return xn(o)?r.filter(function(a){return xn(a)&&Xh(a,o)&&vr(a)!=="body"}):[]}function W_(e,r,n,o){var a=r==="clippingParents"?j_(e):[].concat(r),u=[].concat(a,[n]),l=u[0],d=u.reduce(function(w,S){var y=zd(e,S,o);return w.top=Sn(y.top,w.top),w.right=La(y.right,w.right),w.bottom=La(y.bottom,w.bottom),w.left=Sn(y.left,w.left),w},zd(e,l,o));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function rv(e){var r=e.reference,n=e.element,o=e.placement,a=o?hr(o):null,u=o?ri(o):null,l=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,w;switch(a){case Tt:w={x:l,y:r.y-n.height};break;case Yt:w={x:l,y:r.y+r.height};break;case Xt:w={x:r.x+r.width,y:d};break;case Ct:w={x:r.x-n.width,y:d};break;default:w={x:r.x,y:r.y}}var S=a?Pl(a):null;if(S!=null){var y=S==="y"?"height":"width";switch(u){case Qn:w[S]=w[S]-(r[y]/2-n[y]/2);break;case Qi:w[S]=w[S]+(r[y]/2-n[y]/2);break}}return w}function eo(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=o===void 0?e.placement:o,u=n.strategy,l=u===void 0?e.strategy:u,d=n.boundary,w=d===void 0?a_:d,S=n.rootBoundary,y=S===void 0?Kh:S,h=n.elementContext,c=h===void 0?Ei:h,p=n.altBoundary,m=p===void 0?!1:p,f=n.padding,g=f===void 0?0:f,b=Qh(typeof g!="number"?g:ev(g,uo)),_=c===Ei?s_:Ei,x=e.rects.popper,C=e.elements[m?_:c],T=W_(xn(C)?C:C.contextElement||rn(e.elements.popper),w,y,l),I=ti(e.elements.reference),H=rv({reference:I,element:x,placement:a}),F=ul(Object.assign({},x,H)),k=c===Ei?F:I,X={top:T.top-k.top+b.top,bottom:k.bottom-T.bottom+b.bottom,left:T.left-k.left+b.left,right:k.right-T.right+b.right},j=e.modifiersData.offset;if(c===Ei&&j){var L=j[a];Object.keys(X).forEach(function(B){var q=[Xt,Yt].indexOf(B)>=0?1:-1,R=[Tt,Yt].indexOf(B)>=0?"y":"x";X[B]+=L[R]*q})}return X}function U_(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=n.boundary,u=n.rootBoundary,l=n.padding,d=n.flipVariations,w=n.allowedAutoPlacements,S=w===void 0?Vh:w,y=ri(o),h=y?d?jd:jd.filter(function(m){return ri(m)===y}):uo,c=h.filter(function(m){return S.indexOf(m)>=0});c.length===0&&(c=h);var p=c.reduce(function(m,f){return m[f]=eo(e,{placement:f,boundary:a,rootBoundary:u,padding:l})[hr(f)],m},{});return Object.keys(p).sort(function(m,f){return p[m]-p[f]})}function B_(e){if(hr(e)===Al)return[];var r=Aa(e);return[Bd(e),r,Bd(r)]}function z_(e){var r=e.state,n=e.options,o=e.name;if(!r.modifiersData[o]._skip){for(var a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,d=l===void 0?!0:l,w=n.fallbackPlacements,S=n.padding,y=n.boundary,h=n.rootBoundary,c=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,f=n.allowedAutoPlacements,g=r.options.placement,b=hr(g),_=b===g,x=w||(_||!m?[Aa(g)]:B_(g)),C=[g].concat(x).reduce(function(oe,fe){return oe.concat(hr(fe)===Al?U_(r,{placement:fe,boundary:y,rootBoundary:h,padding:S,flipVariations:m,allowedAutoPlacements:f}):fe)},[]),T=r.rects.reference,I=r.rects.popper,H=new Map,F=!0,k=C[0],X=0;X<C.length;X++){var j=C[X],L=hr(j),B=ri(j)===Qn,q=[Tt,Yt].indexOf(L)>=0,R=q?"width":"height",J=eo(r,{placement:j,boundary:y,rootBoundary:h,altBoundary:c,padding:S}),V=q?B?Xt:Ct:B?Yt:Tt;T[R]>I[R]&&(V=Aa(V));var te=Aa(V),le=[];if(u&&le.push(J[L]<=0),d&&le.push(J[V]<=0,J[te]<=0),le.every(function(oe){return oe})){k=j,F=!1;break}H.set(j,le)}if(F)for(var Z=m?3:1,ee=function(fe){var pe=C.find(function(ye){var ge=H.get(ye);if(ge)return ge.slice(0,fe).every(function(_e){return _e})});if(pe)return k=pe,"break"},ae=Z;ae>0;ae--){var ce=ee(ae);if(ce==="break")break}r.placement!==k&&(r.modifiersData[o]._skip=!0,r.placement=k,r.reset=!0)}}const H_={name:"flip",enabled:!0,phase:"main",fn:z_,requiresIfExists:["offset"],data:{_skip:!1}};function Hd(e,r,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-r.height-n.y,right:e.right-r.width+n.x,bottom:e.bottom-r.height+n.y,left:e.left-r.width-n.x}}function qd(e){return[Tt,Xt,Yt,Ct].some(function(r){return e[r]>=0})}function q_(e){var r=e.state,n=e.name,o=r.rects.reference,a=r.rects.popper,u=r.modifiersData.preventOverflow,l=eo(r,{elementContext:"reference"}),d=eo(r,{altBoundary:!0}),w=Hd(l,o),S=Hd(d,a,u),y=qd(w),h=qd(S);r.modifiersData[n]={referenceClippingOffsets:w,popperEscapeOffsets:S,isReferenceHidden:y,hasPopperEscaped:h},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":h})}const Z_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:q_};function G_(e,r,n){var o=hr(e),a=[Ct,Tt].indexOf(o)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},r,{placement:e})):n,l=u[0],d=u[1];return l=l||0,d=(d||0)*a,[Ct,Xt].indexOf(o)>=0?{x:d,y:l}:{x:l,y:d}}function K_(e){var r=e.state,n=e.options,o=e.name,a=n.offset,u=a===void 0?[0,0]:a,l=Vh.reduce(function(y,h){return y[h]=G_(h,r.rects,u),y},{}),d=l[r.placement],w=d.x,S=d.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=w,r.modifiersData.popperOffsets.y+=S),r.modifiersData[o]=l}const V_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:K_};function Y_(e){var r=e.state,n=e.name;r.modifiersData[n]=rv({reference:r.rects.reference,element:r.rects.popper,placement:r.placement})}const X_={name:"popperOffsets",enabled:!0,phase:"read",fn:Y_,data:{}};function J_(e){return e==="x"?"y":"x"}function Q_(e){var r=e.state,n=e.options,o=e.name,a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,d=l===void 0?!1:l,w=n.boundary,S=n.rootBoundary,y=n.altBoundary,h=n.padding,c=n.tether,p=c===void 0?!0:c,m=n.tetherOffset,f=m===void 0?0:m,g=eo(r,{boundary:w,rootBoundary:S,padding:h,altBoundary:y}),b=hr(r.placement),_=ri(r.placement),x=!_,C=Pl(b),T=J_(C),I=r.modifiersData.popperOffsets,H=r.rects.reference,F=r.rects.popper,k=typeof f=="function"?f(Object.assign({},r.rects,{placement:r.placement})):f,X=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),j=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,L={x:0,y:0};if(I){if(u){var B,q=C==="y"?Tt:Ct,R=C==="y"?Yt:Xt,J=C==="y"?"height":"width",V=I[C],te=V+g[q],le=V-g[R],Z=p?-F[J]/2:0,ee=_===Qn?H[J]:F[J],ae=_===Qn?-F[J]:-H[J],ce=r.elements.arrow,oe=p&&ce?Cl(ce):{width:0,height:0},fe=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Jh(),pe=fe[q],ye=fe[R],ge=Yi(0,H[J],oe[J]),_e=x?H[J]/2-Z-ge-pe-X.mainAxis:ee-ge-pe-X.mainAxis,Ae=x?-H[J]/2+Z+ge+ye+X.mainAxis:ae+ge+ye+X.mainAxis,Ue=r.elements.arrow&&lo(r.elements.arrow),ne=Ue?C==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,dt=(B=j==null?void 0:j[C])!=null?B:0,nt=V+_e-dt-ne,or=V+Ae-dt,mo=Yi(p?La(te,nt):te,V,p?Sn(le,or):le);I[C]=mo,L[C]=mo-V}if(d){var kt,go=C==="x"?Tt:Ct,es=C==="x"?Yt:Xt,Pt=I[T],pt=T==="y"?"height":"width",Fr=Pt+g[go],on=Pt-g[es],ai=[Tt,Ct].indexOf(b)!==-1,Dr=(kt=j==null?void 0:j[T])!=null?kt:0,yo=ai?Fr:Pt-H[pt]-F[pt]-Dr+X.altAxis,$r=ai?Pt+H[pt]+F[pt]-Dr-X.altAxis:on,gr=p&&ai?__(yo,Pt,$r):Yi(p?yo:Fr,Pt,p?$r:on);I[T]=gr,L[T]=gr-Pt}r.modifiersData[o]=L}}const ex={name:"preventOverflow",enabled:!0,phase:"main",fn:Q_,requiresIfExists:["offset"]};function tx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rx(e){return e===Nt(e)||!Vt(e)?Rl(e):tx(e)}function nx(e){var r=e.getBoundingClientRect(),n=ei(r.width)/e.offsetWidth||1,o=ei(r.height)/e.offsetHeight||1;return n!==1||o!==1}function ix(e,r,n){n===void 0&&(n=!1);var o=Vt(r),a=Vt(r)&&nx(r),u=rn(r),l=ti(e,a,n),d={scrollLeft:0,scrollTop:0},w={x:0,y:0};return(o||!o&&!n)&&((vr(r)!=="body"||Ml(u))&&(d=rx(r)),Vt(r)?(w=ti(r,!0),w.x+=r.clientLeft,w.y+=r.clientTop):u&&(w.x=Il(u))),{x:l.left+d.scrollLeft-w.x,y:l.top+d.scrollTop-w.y,width:l.width,height:l.height}}function ox(e){var r=new Map,n=new Set,o=[];e.forEach(function(u){r.set(u.name,u)});function a(u){n.add(u.name);var l=[].concat(u.requires||[],u.requiresIfExists||[]);l.forEach(function(d){if(!n.has(d)){var w=r.get(d);w&&a(w)}}),o.push(u)}return e.forEach(function(u){n.has(u.name)||a(u)}),o}function ax(e){var r=ox(e);return g_.reduce(function(n,o){return n.concat(r.filter(function(a){return a.phase===o}))},[])}function sx(e){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(e())})})),r}}function ux(e){var r=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(r).map(function(n){return r[n]})}var Zd={placement:"bottom",modifiers:[],strategy:"absolute"};function Gd(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return!r.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function lx(e){e===void 0&&(e={});var r=e,n=r.defaultModifiers,o=n===void 0?[]:n,a=r.defaultOptions,u=a===void 0?Zd:a;return function(d,w,S){S===void 0&&(S=u);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zd,u),modifiersData:{},elements:{reference:d,popper:w},attributes:{},styles:{}},h=[],c=!1,p={state:y,setOptions:function(b){var _=typeof b=="function"?b(y.options):b;f(),y.options=Object.assign({},u,y.options,_),y.scrollParents={reference:xn(d)?Xi(d):d.contextElement?Xi(d.contextElement):[],popper:Xi(w)};var x=ax(ux([].concat(o,y.options.modifiers)));return y.orderedModifiers=x.filter(function(C){return C.enabled}),m(),p.update()},forceUpdate:function(){if(!c){var b=y.elements,_=b.reference,x=b.popper;if(Gd(_,x)){y.rects={reference:ix(_,lo(x),y.options.strategy==="fixed"),popper:Cl(x)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(X){return y.modifiersData[X.name]=Object.assign({},X.data)});for(var C=0;C<y.orderedModifiers.length;C++){if(y.reset===!0){y.reset=!1,C=-1;continue}var T=y.orderedModifiers[C],I=T.fn,H=T.options,F=H===void 0?{}:H,k=T.name;typeof I=="function"&&(y=I({state:y,options:F,name:k,instance:p})||y)}}}},update:sx(function(){return new Promise(function(g){p.forceUpdate(),g(y)})}),destroy:function(){f(),c=!0}};if(!Gd(d,w))return p;p.setOptions(S).then(function(g){!c&&S.onFirstUpdate&&S.onFirstUpdate(g)});function m(){y.orderedModifiers.forEach(function(g){var b=g.name,_=g.options,x=_===void 0?{}:_,C=g.effect;if(typeof C=="function"){var T=C({state:y,name:b,instance:p,options:x}),I=function(){};h.push(T||I)}})}function f(){h.forEach(function(g){return g()}),h=[]}return p}}var cx=[L_,X_,I_,b_,V_,H_,ex,T_,Z_],fx=lx({defaultModifiers:cx}),ua=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _u,Kd;function dx(){if(Kd)return _u;Kd=1;var e=typeof Element<"u",r=typeof Map=="function",n=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(u,l){if(u===l)return!0;if(u&&l&&typeof u=="object"&&typeof l=="object"){if(u.constructor!==l.constructor)return!1;var d,w,S;if(Array.isArray(u)){if(d=u.length,d!=l.length)return!1;for(w=d;w--!==0;)if(!a(u[w],l[w]))return!1;return!0}var y;if(r&&u instanceof Map&&l instanceof Map){if(u.size!==l.size)return!1;for(y=u.entries();!(w=y.next()).done;)if(!l.has(w.value[0]))return!1;for(y=u.entries();!(w=y.next()).done;)if(!a(w.value[1],l.get(w.value[0])))return!1;return!0}if(n&&u instanceof Set&&l instanceof Set){if(u.size!==l.size)return!1;for(y=u.entries();!(w=y.next()).done;)if(!l.has(w.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(l)){if(d=u.length,d!=l.length)return!1;for(w=d;w--!==0;)if(u[w]!==l[w])return!1;return!0}if(u.constructor===RegExp)return u.source===l.source&&u.flags===l.flags;if(u.valueOf!==Object.prototype.valueOf&&typeof u.valueOf=="function"&&typeof l.valueOf=="function")return u.valueOf()===l.valueOf();if(u.toString!==Object.prototype.toString&&typeof u.toString=="function"&&typeof l.toString=="function")return u.toString()===l.toString();if(S=Object.keys(u),d=S.length,d!==Object.keys(l).length)return!1;for(w=d;w--!==0;)if(!Object.prototype.hasOwnProperty.call(l,S[w]))return!1;if(e&&u instanceof Element)return!1;for(w=d;w--!==0;)if(!((S[w]==="_owner"||S[w]==="__v"||S[w]==="__o")&&u.$$typeof)&&!a(u[S[w]],l[S[w]]))return!1;return!0}return u!==u&&l!==l}return _u=function(l,d){try{return a(l,d)}catch(w){if((w.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw w}},_u}var px=dx();const hx=nv(px);var vx=[],iv=function(r,n,o){o===void 0&&(o={});var a=$.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||vx},l=$.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=l[0],w=l[1],S=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var m=p.state,f=Object.keys(m.elements);o_.flushSync(function(){w({styles:Nd(f.map(function(g){return[g,m.styles[g]||{}]})),attributes:Nd(f.map(function(g){return[g,m.attributes[g]]}))})})},requires:["computeStyles"]}},[]),y=$.useMemo(function(){var c={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[S,{name:"applyStyles",enabled:!1}])};return hx(a.current,c)?a.current||c:(a.current=c,c)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,S]),h=$.useRef();return kd(function(){h.current&&h.current.setOptions(y)},[y]),kd(function(){if(!(r==null||n==null)){var c=o.createPopper||fx,p=c(r,n,y);return h.current=p,function(){p.destroy(),h.current=null}}},[r,n,o.createPopper]),{state:h.current?h.current.state:null,styles:d.styles,attributes:d.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}};const ov=e=>W.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),av=U.forwardRef(({children:e,style:r,attributes:n},o)=>W.jsx("div",{style:{...r,zIndex:2e3},...n,ref:o,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),mx=({referenceElement:e,placement:r,isOpen:n,children:o,onClose:a})=>{const[u,l]=U.useState(null),{styles:d,attributes:w}=iv(e,u,{placement:r||"bottom-start"}),S=U.useCallback(()=>{a&&a()},[a]);return n?W.jsxs(Gh,{children:[W.jsx(ov,{onClick:()=>S()}),W.jsx(av,{ref:l,style:d.popper,attributes:w.popper,children:o})]}):null};var xu={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var Kd;function av(){return Kd||(Kd=1,function(e){(function(){var r={}.hasOwnProperty;function n(){for(var u="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(u=a(u,o(d)))}return u}function o(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return n.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var l="";for(var d in u)r.call(u,d)&&u[d]&&(l=a(l,d));return l}function a(u,l){return l?u?u+" "+l:u+l:u}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(xu)),xu.exports}var mx=av();const Ye=rv(mx);function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gn.apply(this,arguments)}const gx=["children","options"],me={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Vd;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Vd||(Vd={}));const Yd=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,r)=>(e[r.toLowerCase()]=r,e),{class:"className",for:"htmlFor"}),Xd={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},yx=["style","script"],wx=["src","href","data","formAction","srcDoc","action"],bx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Sx=/mailto:/i,Ex=/\n{2,}$/,sv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,_x=/^ *> ?/gm,xx=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Ox=/^ {2,}\n/,Ax=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,uv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,lv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Tx=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Cx=/^(?:\n *)*\n/,Px=/\r\n?/g,Rx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Mx=/^\[\^([^\]]+)]/,Ix=/\f/g,Fx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Lx=/^\s*?\[(x|\s)\]/,cv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,fv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,dv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ll=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Dx=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,pv=/^<!--[\s\S]*?(?:-->)/,$x=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,cl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Nx=/^\{.*\}$/,kx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,jx=/^<([^ >]+@[^ >]+)>/,Wx=/^<([^ >]+:\/[^ >]+)>/,Ux=/-([a-z])?/gi,hv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Bx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,zx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Hx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,qx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Zx=/\t/g,Gx=/(^ *\||\| *$)/g,Kx=/^ *:-+: *$/,Vx=/^ *:-+ *$/,Yx=/^ *-+: *$/,za="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Xx=new RegExp(`^([*_])\\1${za}\\1\\1(?!\\1)`),Jx=new RegExp(`^([*_])${za}\\1(?!\\1)`),Qx=new RegExp(`^(==)${za}\\1`),eO=new RegExp(`^(~~)${za}\\1`),tO=/^\\([^0-9A-Za-z\s])/,Jd=/\\([^0-9A-Za-z\s])/g,rO=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,nO=/^\n+/,iO=/^([ \t]*)/,oO=/\\([^\\])/g,aO=/(?:^|\n)( *)$/,Fl="(?:\\d+\\.)",Ll="(?:[*+-])";function vv(e){return"( *)("+(e===1?Fl:Ll)+") +"}const mv=vv(1),gv=vv(2);function yv(e){return new RegExp("^"+(e===1?mv:gv))}const sO=yv(1),uO=yv(2);function wv(e){return new RegExp("^"+(e===1?mv:gv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Fl:Ll)+" )[^\\n]*)*(\\n|$)","gm")}const lO=wv(1),cO=wv(2);function bv(e){const r=e===1?Fl:Ll;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Sv=bv(1),Ev=bv(2);function Qd(e,r){const n=r===1,o=n?Sv:Ev,a=n?lO:cO,u=n?sO:uO;return{match:ni(function(l,d){const w=aO.exec(d.prevCapture);return w&&(d.list||!d.inline&&!d.simple)?o.exec(l=w[1]+l):null}),order:1,parse(l,d,w){const S=n?+l[2]:void 0,y=l[0].replace(Ex,`
5
+ */var Vd;function sv(){return Vd||(Vd=1,function(e){(function(){var r={}.hasOwnProperty;function n(){for(var u="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(u=a(u,o(d)))}return u}function o(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return n.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var l="";for(var d in u)r.call(u,d)&&u[d]&&(l=a(l,d));return l}function a(u,l){return l?u?u+" "+l:u+l:u}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(xu)),xu.exports}var gx=sv();const Ye=nv(gx);function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gn.apply(this,arguments)}const yx=["children","options"],me={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Yd;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Yd||(Yd={}));const Xd=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,r)=>(e[r.toLowerCase()]=r,e),{class:"className",for:"htmlFor"}),Jd={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},wx=["style","script"],bx=["src","href","data","formAction","srcDoc","action"],Sx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Ex=/mailto:/i,_x=/\n{2,}$/,uv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,xx=/^ *> ?/gm,Ox=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Ax=/^ {2,}\n/,Tx=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,lv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,cv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Cx=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Px=/^(?:\n *)*\n/,Rx=/\r\n?/g,Ix=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Mx=/^\[\^([^\]]+)]/,Lx=/\f/g,Fx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Dx=/^\s*?\[(x|\s)\]/,fv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,dv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,pv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ll=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,$x=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,hv=/^<!--[\s\S]*?(?:-->)/,Nx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,cl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,kx=/^\{.*\}$/,jx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Wx=/^<([^ >]+@[^ >]+)>/,Ux=/^<([^ >]+:\/[^ >]+)>/,Bx=/-([a-z])?/gi,vv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,zx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Hx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,qx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Zx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Gx=/\t/g,Kx=/(^ *\||\| *$)/g,Vx=/^ *:-+: *$/,Yx=/^ *:-+ *$/,Xx=/^ *-+: *$/,za="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Jx=new RegExp(`^([*_])\\1${za}\\1\\1(?!\\1)`),Qx=new RegExp(`^([*_])${za}\\1(?!\\1)`),eO=new RegExp(`^(==)${za}\\1`),tO=new RegExp(`^(~~)${za}\\1`),rO=/^\\([^0-9A-Za-z\s])/,Qd=/\\([^0-9A-Za-z\s])/g,nO=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,iO=/^\n+/,oO=/^([ \t]*)/,aO=/\\([^\\])/g,sO=/(?:^|\n)( *)$/,Ll="(?:\\d+\\.)",Fl="(?:[*+-])";function mv(e){return"( *)("+(e===1?Ll:Fl)+") +"}const gv=mv(1),yv=mv(2);function wv(e){return new RegExp("^"+(e===1?gv:yv))}const uO=wv(1),lO=wv(2);function bv(e){return new RegExp("^"+(e===1?gv:yv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Ll:Fl)+" )[^\\n]*)*(\\n|$)","gm")}const cO=bv(1),fO=bv(2);function Sv(e){const r=e===1?Ll:Fl;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Ev=Sv(1),_v=Sv(2);function ep(e,r){const n=r===1,o=n?Ev:_v,a=n?cO:fO,u=n?uO:lO;return{match:ni(function(l,d){const w=sO.exec(d.prevCapture);return w&&(d.list||!d.inline&&!d.simple)?o.exec(l=w[1]+l):null}),order:1,parse(l,d,w){const S=n?+l[2]:void 0,y=l[0].replace(_x,`
6
6
  `).match(a);let h=!1;return{items:y.map(function(c,p){const m=u.exec(c)[0].length,f=new RegExp("^ {1,"+m+"}","gm"),g=c.replace(f,"").replace(u,""),b=p===y.length-1,_=g.indexOf(`
7
7
 
8
8
  `)!==-1||b&&h;h=_;const x=w.inline,C=w.list;let T;w.list=!0,_?(w.inline=!1,T=to(g)+`
9
9
 
10
- `):(w.inline=!0,T=to(g));const M=d(T,w);return w.inline=x,w.list=C,M}),ordered:n,start:S}},render:(l,d,w)=>e(l.ordered?"ol":"ul",{key:w.key,start:l.type===me.orderedList?l.start:void 0},l.items.map(function(S,y){return e("li",{key:y},d(S,w))}))}}const fO=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),dO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,_v=[sv,uv,lv,cv,dv,fv,hv,Sv,Ev],pO=[..._v,/^[^\n]+(?: \n|\n{2,})/,ll,pv,cl];function to(e){let r=e.length;for(;r>0&&e[r-1]<=" ";)r--;return e.slice(0,r)}function _i(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function hO(e){return Yx.test(e)?"right":Kx.test(e)?"center":Vx.test(e)?"left":null}function ep(e,r,n,o){const a=n.inTable;n.inTable=!0;let u=[[]],l="";function d(){if(!l)return;const w=u[u.length-1];w.push.apply(w,r(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((w,S,y)=>{w.trim()==="|"&&(d(),o)?S!==0&&S!==y.length-1&&u.push([]):l+=w}),d(),n.inTable=a,u}function vO(e,r,n){n.inline=!0;const o=e[2]?e[2].replace(Gx,"").split("|").map(hO):[],a=e[3]?function(l,d,w){return l.trim().split(`
11
- `).map(function(S){return ep(S,d,w,!0)})}(e[3],r,n):[],u=ep(e[1],r,n,!!a.length);return n.inline=!1,a.length?{align:o,cells:a,header:u,type:me.table}:{children:u,type:me.paragraph}}function tp(e,r){return e.align[r]==null?{}:{textAlign:e.align[r]}}function ni(e){return e.inline=1,e}function Gr(e){return ni(function(r,n){return n.inline?e.exec(r):null})}function Kr(e){return ni(function(r,n){return n.inline||n.simple?e.exec(r):null})}function Tr(e){return function(r,n){return n.inline||n.simple?null:e.exec(r)}}function xi(e){return ni(function(r){return e.exec(r)})}function mO(e,r){if(r.inline||r.simple)return null;let n="";e.split(`
10
+ `):(w.inline=!0,T=to(g));const I=d(T,w);return w.inline=x,w.list=C,I}),ordered:n,start:S}},render:(l,d,w)=>e(l.ordered?"ol":"ul",{key:w.key,start:l.type===me.orderedList?l.start:void 0},l.items.map(function(S,y){return e("li",{key:y},d(S,w))}))}}const dO=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),pO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,xv=[uv,lv,cv,fv,pv,dv,vv,Ev,_v],hO=[...xv,/^[^\n]+(?: \n|\n{2,})/,ll,hv,cl];function to(e){let r=e.length;for(;r>0&&e[r-1]<=" ";)r--;return e.slice(0,r)}function _i(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function vO(e){return Xx.test(e)?"right":Vx.test(e)?"center":Yx.test(e)?"left":null}function tp(e,r,n,o){const a=n.inTable;n.inTable=!0;let u=[[]],l="";function d(){if(!l)return;const w=u[u.length-1];w.push.apply(w,r(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((w,S,y)=>{w.trim()==="|"&&(d(),o)?S!==0&&S!==y.length-1&&u.push([]):l+=w}),d(),n.inTable=a,u}function mO(e,r,n){n.inline=!0;const o=e[2]?e[2].replace(Kx,"").split("|").map(vO):[],a=e[3]?function(l,d,w){return l.trim().split(`
11
+ `).map(function(S){return tp(S,d,w,!0)})}(e[3],r,n):[],u=tp(e[1],r,n,!!a.length);return n.inline=!1,a.length?{align:o,cells:a,header:u,type:me.table}:{children:u,type:me.paragraph}}function rp(e,r){return e.align[r]==null?{}:{textAlign:e.align[r]}}function ni(e){return e.inline=1,e}function Gr(e){return ni(function(r,n){return n.inline?e.exec(r):null})}function Kr(e){return ni(function(r,n){return n.inline||n.simple?e.exec(r):null})}function Tr(e){return function(r,n){return n.inline||n.simple?null:e.exec(r)}}function xi(e){return ni(function(r){return e.exec(r)})}function gO(e,r){if(r.inline||r.simple)return null;let n="";e.split(`
12
12
  `).every(a=>(a+=`
13
- `,!_v.some(u=>u.test(a))&&(n+=a,!!a.trim())));const o=to(n);return o==""?null:[n,,o]}const gO=/(javascript|vbscript|data(?!:image)):/i;function yO(e){try{const r=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(gO.test(r))return null}catch{return null}return e}function rp(e){return e.replace(oO,"$1")}function Ta(e,r,n){const o=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const u=e(r,n);return n.inline=o,n.simple=a,u}function wO(e,r,n){const o=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const u=e(r,n);return n.inline=o,n.simple=a,u}function bO(e,r,n){const o=n.inline||!1;n.inline=!1;const a=e(r,n);return n.inline=o,a}const Ou=(e,r,n)=>({children:Ta(r,e[2],n)});function Au(){return{}}function Tu(){return null}function SO(...e){return e.filter(Boolean).join(" ")}function Cu(e,r,n){let o=e;const a=r.split(".");for(;a.length&&(o=o[a[0]],o!==void 0);)a.shift();return o||n}function EO(e="",r={}){function n(c,p,...m){const f=Cu(r.overrides,`${c}.props`,{});return r.createElement(function(g,b){const _=Cu(b,g);return _?typeof _=="function"||typeof _=="object"&&"render"in _?_:Cu(b,`${g}.component`,g):g}(c,r.overrides),gn({},p,f,{className:SO(p==null?void 0:p.className,f.className)||void 0}),...m)}function o(c){c=c.replace(Fx,"");let p=!1;r.forceInline?p=!0:r.forceBlock||(p=qx.test(c)===!1);const m=S(w(p?c:`${to(c).replace(nO,"")}
13
+ `,!xv.some(u=>u.test(a))&&(n+=a,!!a.trim())));const o=to(n);return o==""?null:[n,,o]}const yO=/(javascript|vbscript|data(?!:image)):/i;function wO(e){try{const r=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(yO.test(r))return null}catch{return null}return e}function np(e){return e.replace(aO,"$1")}function Ta(e,r,n){const o=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const u=e(r,n);return n.inline=o,n.simple=a,u}function bO(e,r,n){const o=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const u=e(r,n);return n.inline=o,n.simple=a,u}function SO(e,r,n){const o=n.inline||!1;n.inline=!1;const a=e(r,n);return n.inline=o,a}const Ou=(e,r,n)=>({children:Ta(r,e[2],n)});function Au(){return{}}function Tu(){return null}function EO(...e){return e.filter(Boolean).join(" ")}function Cu(e,r,n){let o=e;const a=r.split(".");for(;a.length&&(o=o[a[0]],o!==void 0);)a.shift();return o||n}function _O(e="",r={}){function n(c,p,...m){const f=Cu(r.overrides,`${c}.props`,{});return r.createElement(function(g,b){const _=Cu(b,g);return _?typeof _=="function"||typeof _=="object"&&"render"in _?_:Cu(b,`${g}.component`,g):g}(c,r.overrides),gn({},p,f,{className:EO(p==null?void 0:p.className,f.className)||void 0}),...m)}function o(c){c=c.replace(Fx,"");let p=!1;r.forceInline?p=!0:r.forceBlock||(p=Zx.test(c)===!1);const m=S(w(p?c:`${to(c).replace(iO,"")}
14
14
 
15
- `,{inline:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(r.wrapper===null)return m;const f=r.wrapper||(p?"span":"div");let g;if(m.length>1||r.forceWrapper)g=m;else{if(m.length===1)return g=m[0],typeof g=="string"?n("span",{key:"outer"},g):g;g=null}return r.createElement(f,{key:"outer"},g)}function a(c,p){const m=p.match(bx);return m?m.reduce(function(f,g){const b=g.indexOf("=");if(b!==-1){const _=function(M){return M.indexOf("-")!==-1&&M.match($x)===null&&(M=M.replace(Ux,function(H,L){return L.toUpperCase()})),M}(g.slice(0,b)).trim(),x=function(M){const H=M[0];return(H==='"'||H==="'")&&M.length>=2&&M[M.length-1]===H?M.slice(1,-1):M}(g.slice(b+1).trim()),C=Yd[_]||_;if(C==="ref")return f;const T=f[C]=function(M,H,L,k){return H==="style"?function(X){const j=[];let F="",B=!1,q=!1,R="";if(!X)return j;for(let V=0;V<X.length;V++){const te=X[V];if(te!=='"'&&te!=="'"||B||(q?te===R&&(q=!1,R=""):(q=!0,R=te)),te==="("&&F.endsWith("url")?B=!0:te===")"&&B&&(B=!1),te!==";"||q||B)F+=te;else{const le=F.trim();if(le){const Z=le.indexOf(":");if(Z>0){const ee=le.slice(0,Z).trim(),ae=le.slice(Z+1).trim();j.push([ee,ae])}}F=""}}const J=F.trim();if(J){const V=J.indexOf(":");if(V>0){const te=J.slice(0,V).trim(),le=J.slice(V+1).trim();j.push([te,le])}}return j}(L).reduce(function(X,[j,F]){return X[j.replace(/(-[a-z])/g,B=>B[1].toUpperCase())]=k(F,M,j),X},{}):wx.indexOf(H)!==-1?k(L,M,H):(L.match(Nx)&&(L=L.slice(1,L.length-1)),L==="true"||L!=="false"&&L)}(c,_,x,r.sanitizer);typeof T=="string"&&(ll.test(T)||cl.test(T))&&(f[C]=o(T.trim()))}else g!=="style"&&(f[Yd[g]||g]=!0);return f},{}):null}r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||yO,r.slugify=r.slugify||_i,r.namedCodesToUnicode=r.namedCodesToUnicode?gn({},Xd,r.namedCodesToUnicode):Xd,r.createElement=r.createElement||$.createElement;const u=[],l={},d={[me.blockQuote]:{match:Tr(sv),order:1,parse(c,p,m){const[,f,g]=c[0].replace(_x,"").match(xx);return{alert:f,children:p(g,m)}},render(c,p,m){const f={key:m.key};return c.alert&&(f.className="markdown-alert-"+r.slugify(c.alert.toLowerCase(),_i),c.children.unshift({attrs:{},children:[{type:me.text,text:c.alert}],noInnerParse:!0,type:me.htmlBlock,tag:"header"})),n("blockquote",f,p(c.children,m))}},[me.breakLine]:{match:xi(Ox),order:1,parse:Au,render:(c,p,m)=>n("br",{key:m.key})},[me.breakThematic]:{match:Tr(Ax),order:1,parse:Au,render:(c,p,m)=>n("hr",{key:m.key})},[me.codeBlock]:{match:Tr(lv),order:0,parse:c=>({lang:void 0,text:to(c[0].replace(/^ {4}/gm,"")).replace(Jd,"$1")}),render:(c,p,m)=>n("pre",{key:m.key},n("code",gn({},c.attrs,{className:c.lang?`lang-${c.lang}`:""}),c.text))},[me.codeFenced]:{match:Tr(uv),order:0,parse:c=>({attrs:a("code",c[3]||""),lang:c[2]||void 0,text:c[4],type:me.codeBlock})},[me.codeInline]:{match:Kr(Tx),order:3,parse:c=>({text:c[2].replace(Jd,"$1")}),render:(c,p,m)=>n("code",{key:m.key},c.text)},[me.footnote]:{match:Tr(Rx),order:0,parse:c=>(u.push({footnote:c[2],identifier:c[1]}),{}),render:Tu},[me.footnoteReference]:{match:Gr(Mx),order:1,parse:c=>({target:`#${r.slugify(c[1],_i)}`,text:c[1]}),render:(c,p,m)=>n("a",{key:m.key,href:r.sanitizer(c.target,"a","href")},n("sup",{key:m.key},c.text))},[me.gfmTask]:{match:Gr(Lx),order:1,parse:c=>({completed:c[1].toLowerCase()==="x"}),render:(c,p,m)=>n("input",{checked:c.completed,key:m.key,readOnly:!0,type:"checkbox"})},[me.heading]:{match:Tr(r.enforceAtxHeadings?fv:cv),order:1,parse:(c,p,m)=>({children:Ta(p,c[2],m),id:r.slugify(c[2],_i),level:c[1].length}),render:(c,p,m)=>n(`h${c.level}`,{id:c.id,key:m.key},p(c.children,m))},[me.headingSetext]:{match:Tr(dv),order:0,parse:(c,p,m)=>({children:Ta(p,c[1],m),level:c[2]==="="?1:2,type:me.heading})},[me.htmlBlock]:{match:xi(ll),order:1,parse(c,p,m){const[,f]=c[3].match(iO),g=new RegExp(`^${f}`,"gm"),b=c[3].replace(g,""),_=(x=b,pO.some(L=>L.test(x))?bO:Ta);var x;const C=c[1].toLowerCase(),T=yx.indexOf(C)!==-1,M=(T?C:c[1]).trim(),H={attrs:a(M,c[2]),noInnerParse:T,tag:M};return m.inAnchor=m.inAnchor||C==="a",T?H.text=c[3]:H.children=_(p,b,m),m.inAnchor=!1,H},render:(c,p,m)=>n(c.tag,gn({key:m.key},c.attrs),c.text||(c.children?p(c.children,m):""))},[me.htmlSelfClosing]:{match:xi(cl),order:1,parse(c){const p=c[1].trim();return{attrs:a(p,c[2]||""),tag:p}},render:(c,p,m)=>n(c.tag,gn({},c.attrs,{key:m.key}))},[me.htmlComment]:{match:xi(pv),order:1,parse:()=>({}),render:Tu},[me.image]:{match:Kr(dO),order:1,parse:c=>({alt:c[1],target:rp(c[2]),title:c[3]}),render:(c,p,m)=>n("img",{key:m.key,alt:c.alt||void 0,title:c.title||void 0,src:r.sanitizer(c.target,"img","src")})},[me.link]:{match:Gr(fO),order:3,parse:(c,p,m)=>({children:wO(p,c[1],m),target:rp(c[2]),title:c[3]}),render:(c,p,m)=>n("a",{key:m.key,href:r.sanitizer(c.target,"a","href"),title:c.title},p(c.children,m))},[me.linkAngleBraceStyleDetector]:{match:Gr(Wx),order:0,parse:c=>({children:[{text:c[1],type:me.text}],target:c[1],type:me.link})},[me.linkBareUrlDetector]:{match:ni((c,p)=>p.inAnchor||r.disableAutoLink?null:Gr(kx)(c,p)),order:0,parse:c=>({children:[{text:c[1],type:me.text}],target:c[1],title:void 0,type:me.link})},[me.linkMailtoDetector]:{match:Gr(jx),order:0,parse(c){let p=c[1],m=c[1];return Sx.test(m)||(m="mailto:"+m),{children:[{text:p.replace("mailto:",""),type:me.text}],target:m,type:me.link}}},[me.orderedList]:Qd(n,1),[me.unorderedList]:Qd(n,2),[me.newlineCoalescer]:{match:Tr(Cx),order:3,parse:Au,render:()=>`
16
- `},[me.paragraph]:{match:ni(mO),order:3,parse:Ou,render:(c,p,m)=>n("p",{key:m.key},p(c.children,m))},[me.ref]:{match:Gr(Bx),order:0,parse:c=>(l[c[1]]={target:c[2],title:c[4]},{}),render:Tu},[me.refImage]:{match:Kr(zx),order:0,parse:c=>({alt:c[1]||void 0,ref:c[2]}),render:(c,p,m)=>l[c.ref]?n("img",{key:m.key,alt:c.alt,src:r.sanitizer(l[c.ref].target,"img","src"),title:l[c.ref].title}):null},[me.refLink]:{match:Gr(Hx),order:0,parse:(c,p,m)=>({children:p(c[1],m),fallbackChildren:c[0],ref:c[2]}),render:(c,p,m)=>l[c.ref]?n("a",{key:m.key,href:r.sanitizer(l[c.ref].target,"a","href"),title:l[c.ref].title},p(c.children,m)):n("span",{key:m.key},c.fallbackChildren)},[me.table]:{match:Tr(hv),order:1,parse:vO,render(c,p,m){const f=c;return n("table",{key:m.key},n("thead",null,n("tr",null,f.header.map(function(g,b){return n("th",{key:b,style:tp(f,b)},p(g,m))}))),n("tbody",null,f.cells.map(function(g,b){return n("tr",{key:b},g.map(function(_,x){return n("td",{key:x,style:tp(f,x)},p(_,m))}))})))}},[me.text]:{match:xi(rO),order:4,parse:c=>({text:c[0].replace(Dx,(p,m)=>r.namedCodesToUnicode[m]?r.namedCodesToUnicode[m]:p)}),render:c=>c.text},[me.textBolded]:{match:Kr(Xx),order:2,parse:(c,p,m)=>({children:p(c[2],m)}),render:(c,p,m)=>n("strong",{key:m.key},p(c.children,m))},[me.textEmphasized]:{match:Kr(Jx),order:3,parse:(c,p,m)=>({children:p(c[2],m)}),render:(c,p,m)=>n("em",{key:m.key},p(c.children,m))},[me.textEscaped]:{match:Kr(tO),order:1,parse:c=>({text:c[1],type:me.text})},[me.textMarked]:{match:Kr(Qx),order:3,parse:Ou,render:(c,p,m)=>n("mark",{key:m.key},p(c.children,m))},[me.textStrikethroughed]:{match:Kr(eO),order:3,parse:Ou,render:(c,p,m)=>n("del",{key:m.key},p(c.children,m))}};r.disableParsingRawHTML===!0&&(delete d[me.htmlBlock],delete d[me.htmlSelfClosing]);const w=function(c){let p=Object.keys(c);function m(f,g){let b,_,x=[],C="",T="";for(g.prevCapture=g.prevCapture||"";f;){let M=0;for(;M<p.length;){if(C=p[M],b=c[C],g.inline&&!b.match.inline){M++;continue}const H=b.match(f,g);if(H){T=H[0],g.prevCapture+=T,f=f.substring(T.length),_=b.parse(H,m,g),_.type==null&&(_.type=C),x.push(_);break}M++}}return g.prevCapture="",x}return p.sort(function(f,g){let b=c[f].order,_=c[g].order;return b!==_?b-_:f<g?-1:1}),function(f,g){return m(function(b){return b.replace(Px,`
17
- `).replace(Ix,"").replace(Zx," ")}(f),g)}}(d),S=(y=function(c,p){return function(m,f,g){const b=c[m.type].render;return p?p(()=>b(m,f,g),m,f,g):b(m,f,g)}}(d,r.renderRule),function c(p,m={}){if(Array.isArray(p)){const f=m.key,g=[];let b=!1;for(let _=0;_<p.length;_++){m.key=_;const x=c(p[_],m),C=typeof x=="string";C&&b?g[g.length-1]+=x:x!==null&&g.push(x),b=C}return m.key=f,g}return y(p,c,m)});var y;const h=o(e);return u.length?n("div",null,h,n("footer",{key:"footer"},u.map(function(c){return n("div",{id:r.slugify(c.identifier,_i),key:c.identifier},c.identifier,S(w(c.footnote,{inline:!0})))}))):h}const La=e=>{let{children:r="",options:n}=e,o=function(a,u){if(a==null)return{};var l,d,w={},S=Object.keys(a);for(d=0;d<S.length;d++)u.indexOf(l=S[d])>=0||(w[l]=a[l]);return w}(e,gx);return $.cloneElement(EO(r,n),o)},np=({kind:e,customIcon:r})=>{if(r)return W.jsx(r,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return W.jsx(rt.FdSanityCheckInfo,{className:"flex-none h-6 w-6"});case"info":return W.jsx(W.Fragment,{children:W.jsx(rt.FdInfoBold,{className:"flex-none h-6 w-6"})});case"warning":return W.jsx(W.Fragment,{children:W.jsx(rt.FdWarningDanger,{className:"flex-none h-6 w-6"})});case"message":return W.jsx(W.Fragment,{children:W.jsx(rt.FdInfoBold,{className:"flex-none h-6 w-6"})});default:return null}},_O=({id:e,onClose:r,kind:n,message:o,markdown:a,customIcon:u})=>{const l=({className:d}={})=>W.jsx("button",{onClick:r,className:Ye("flex items-center justify-center p-1",d),children:W.jsx(rt.FdCloseNaked,{className:"h-5 w-5 font-thin stroke-current"})});return W.jsx("div",{className:Ye("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":n==="warning","bg-red-200 text-red-500":n==="danger"||n==="error","bg-primary-light text-primary":n==="info","bg-green-200 text-green-500":n==="message"}),children:typeof o=="string"?W.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[W.jsxs("div",{className:"flex items-center gap-1",children:[W.jsx(np,{kind:n,customIcon:u}),a?W.jsx(La,{children:o}):W.jsx(W.Fragment,{children:o})]}),l()]}):W.jsxs("div",{className:"flex items-start",children:[W.jsx("div",{className:"flex flex-col gap-2 justify-between",children:o.filter(d=>d.messages.length>0).map(d=>W.jsxs(W.Fragment,{children:[d.title&&W.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[W.jsx(np,{kind:n,customIcon:u}),W.jsxs("span",{children:[d.title," :"]})]}),W.jsx("ul",{className:Ye("list-disc",{"px-12":d.title,"px-6":!d.title}),children:d.messages.map(w=>W.jsx("li",{children:a?W.jsx(La,{children:w}):W.jsx(W.Fragment,{children:w})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},xv=({children:e,size:r,className:n,...o})=>W.jsx("div",{style:{"--width":`${r||24}px`},className:Ye("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var Pu={},Oi={},la={},ip;function Ov(){if(ip)return la;ip=1,Object.defineProperty(la,"__esModule",{value:!0}),la.default=n;let e;const r=new Uint8Array(16);function n(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)}return la}var qn={},Ai={},Ti={},op;function xO(){if(op)return Ti;op=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Ti.default=e,Ti}var ap;function Ha(){if(ap)return Ai;ap=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=void 0;var e=r(xO());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){return typeof a=="string"&&e.default.test(a)}var o=n;return Ai.default=o,Ai}var sp;function qa(){if(sp)return qn;sp=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.default=void 0,qn.unsafeStringify=o;var e=r(Ha());function r(l){return l&&l.__esModule?l:{default:l}}const n=[];for(let l=0;l<256;++l)n.push((l+256).toString(16).slice(1));function o(l,d=0){return n[l[d+0]]+n[l[d+1]]+n[l[d+2]]+n[l[d+3]]+"-"+n[l[d+4]]+n[l[d+5]]+"-"+n[l[d+6]]+n[l[d+7]]+"-"+n[l[d+8]]+n[l[d+9]]+"-"+n[l[d+10]]+n[l[d+11]]+n[l[d+12]]+n[l[d+13]]+n[l[d+14]]+n[l[d+15]]}function a(l,d=0){const w=o(l,d);if(!(0,e.default)(w))throw TypeError("Stringified UUID is invalid");return w}var u=a;return qn.default=u,qn}var up;function OO(){if(up)return Oi;up=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.default=void 0;var e=n(Ov()),r=qa();function n(S){return S&&S.__esModule?S:{default:S}}let o,a,u=0,l=0;function d(S,y,h){let c=y&&h||0;const p=y||new Array(16);S=S||{};let m=S.node||o,f=S.clockseq!==void 0?S.clockseq:a;if(m==null||f==null){const T=S.random||(S.rng||e.default)();m==null&&(m=o=[T[0]|1,T[1],T[2],T[3],T[4],T[5]]),f==null&&(f=a=(T[6]<<8|T[7])&16383)}let g=S.msecs!==void 0?S.msecs:Date.now(),b=S.nsecs!==void 0?S.nsecs:l+1;const _=g-u+(b-l)/1e4;if(_<0&&S.clockseq===void 0&&(f=f+1&16383),(_<0||g>u)&&S.nsecs===void 0&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=g,l=b,a=f,g+=122192928e5;const x=((g&268435455)*1e4+b)%4294967296;p[c++]=x>>>24&255,p[c++]=x>>>16&255,p[c++]=x>>>8&255,p[c++]=x&255;const C=g/4294967296*1e4&268435455;p[c++]=C>>>8&255,p[c++]=C&255,p[c++]=C>>>24&15|16,p[c++]=C>>>16&255,p[c++]=f>>>8|128,p[c++]=f&255;for(let T=0;T<6;++T)p[c+T]=m[T];return y||(0,r.unsafeStringify)(p)}var w=d;return Oi.default=w,Oi}var Ci={},Vr={},Pi={},lp;function Av(){if(lp)return Pi;lp=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=void 0;var e=r(Ha());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");let u;const l=new Uint8Array(16);return l[0]=(u=parseInt(a.slice(0,8),16))>>>24,l[1]=u>>>16&255,l[2]=u>>>8&255,l[3]=u&255,l[4]=(u=parseInt(a.slice(9,13),16))>>>8,l[5]=u&255,l[6]=(u=parseInt(a.slice(14,18),16))>>>8,l[7]=u&255,l[8]=(u=parseInt(a.slice(19,23),16))>>>8,l[9]=u&255,l[10]=(u=parseInt(a.slice(24,36),16))/1099511627776&255,l[11]=u/4294967296&255,l[12]=u>>>24&255,l[13]=u>>>16&255,l[14]=u>>>8&255,l[15]=u&255,l}var o=n;return Pi.default=o,Pi}var cp;function Tv(){if(cp)return Vr;cp=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.URL=Vr.DNS=void 0,Vr.default=l;var e=qa(),r=n(Av());function n(d){return d&&d.__esModule?d:{default:d}}function o(d){d=unescape(encodeURIComponent(d));const w=[];for(let S=0;S<d.length;++S)w.push(d.charCodeAt(S));return w}const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Vr.DNS=a;const u="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Vr.URL=u;function l(d,w,S){function y(h,c,p,m){var f;if(typeof h=="string"&&(h=o(h)),typeof c=="string"&&(c=(0,r.default)(c)),((f=c)===null||f===void 0?void 0:f.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let g=new Uint8Array(16+h.length);if(g.set(c),g.set(h,c.length),g=S(g),g[6]=g[6]&15|w,g[8]=g[8]&63|128,p){m=m||0;for(let b=0;b<16;++b)p[m+b]=g[b];return p}return(0,e.unsafeStringify)(g)}try{y.name=d}catch{}return y.DNS=a,y.URL=u,y}return Vr}var Ri={},fp;function AO(){if(fp)return Ri;fp=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.default=void 0;function e(p){if(typeof p=="string"){const m=unescape(encodeURIComponent(p));p=new Uint8Array(m.length);for(let f=0;f<m.length;++f)p[f]=m.charCodeAt(f)}return r(o(a(p),p.length*8))}function r(p){const m=[],f=p.length*32,g="0123456789abcdef";for(let b=0;b<f;b+=8){const _=p[b>>5]>>>b%32&255,x=parseInt(g.charAt(_>>>4&15)+g.charAt(_&15),16);m.push(x)}return m}function n(p){return(p+64>>>9<<4)+14+1}function o(p,m){p[m>>5]|=128<<m%32,p[n(m)-1]=m;let f=1732584193,g=-271733879,b=-1732584194,_=271733878;for(let x=0;x<p.length;x+=16){const C=f,T=g,M=b,H=_;f=w(f,g,b,_,p[x],7,-680876936),_=w(_,f,g,b,p[x+1],12,-389564586),b=w(b,_,f,g,p[x+2],17,606105819),g=w(g,b,_,f,p[x+3],22,-1044525330),f=w(f,g,b,_,p[x+4],7,-176418897),_=w(_,f,g,b,p[x+5],12,1200080426),b=w(b,_,f,g,p[x+6],17,-1473231341),g=w(g,b,_,f,p[x+7],22,-45705983),f=w(f,g,b,_,p[x+8],7,1770035416),_=w(_,f,g,b,p[x+9],12,-1958414417),b=w(b,_,f,g,p[x+10],17,-42063),g=w(g,b,_,f,p[x+11],22,-1990404162),f=w(f,g,b,_,p[x+12],7,1804603682),_=w(_,f,g,b,p[x+13],12,-40341101),b=w(b,_,f,g,p[x+14],17,-1502002290),g=w(g,b,_,f,p[x+15],22,1236535329),f=S(f,g,b,_,p[x+1],5,-165796510),_=S(_,f,g,b,p[x+6],9,-1069501632),b=S(b,_,f,g,p[x+11],14,643717713),g=S(g,b,_,f,p[x],20,-373897302),f=S(f,g,b,_,p[x+5],5,-701558691),_=S(_,f,g,b,p[x+10],9,38016083),b=S(b,_,f,g,p[x+15],14,-660478335),g=S(g,b,_,f,p[x+4],20,-405537848),f=S(f,g,b,_,p[x+9],5,568446438),_=S(_,f,g,b,p[x+14],9,-1019803690),b=S(b,_,f,g,p[x+3],14,-187363961),g=S(g,b,_,f,p[x+8],20,1163531501),f=S(f,g,b,_,p[x+13],5,-1444681467),_=S(_,f,g,b,p[x+2],9,-51403784),b=S(b,_,f,g,p[x+7],14,1735328473),g=S(g,b,_,f,p[x+12],20,-1926607734),f=y(f,g,b,_,p[x+5],4,-378558),_=y(_,f,g,b,p[x+8],11,-2022574463),b=y(b,_,f,g,p[x+11],16,1839030562),g=y(g,b,_,f,p[x+14],23,-35309556),f=y(f,g,b,_,p[x+1],4,-1530992060),_=y(_,f,g,b,p[x+4],11,1272893353),b=y(b,_,f,g,p[x+7],16,-155497632),g=y(g,b,_,f,p[x+10],23,-1094730640),f=y(f,g,b,_,p[x+13],4,681279174),_=y(_,f,g,b,p[x],11,-358537222),b=y(b,_,f,g,p[x+3],16,-722521979),g=y(g,b,_,f,p[x+6],23,76029189),f=y(f,g,b,_,p[x+9],4,-640364487),_=y(_,f,g,b,p[x+12],11,-421815835),b=y(b,_,f,g,p[x+15],16,530742520),g=y(g,b,_,f,p[x+2],23,-995338651),f=h(f,g,b,_,p[x],6,-198630844),_=h(_,f,g,b,p[x+7],10,1126891415),b=h(b,_,f,g,p[x+14],15,-1416354905),g=h(g,b,_,f,p[x+5],21,-57434055),f=h(f,g,b,_,p[x+12],6,1700485571),_=h(_,f,g,b,p[x+3],10,-1894986606),b=h(b,_,f,g,p[x+10],15,-1051523),g=h(g,b,_,f,p[x+1],21,-2054922799),f=h(f,g,b,_,p[x+8],6,1873313359),_=h(_,f,g,b,p[x+15],10,-30611744),b=h(b,_,f,g,p[x+6],15,-1560198380),g=h(g,b,_,f,p[x+13],21,1309151649),f=h(f,g,b,_,p[x+4],6,-145523070),_=h(_,f,g,b,p[x+11],10,-1120210379),b=h(b,_,f,g,p[x+2],15,718787259),g=h(g,b,_,f,p[x+9],21,-343485551),f=u(f,C),g=u(g,T),b=u(b,M),_=u(_,H)}return[f,g,b,_]}function a(p){if(p.length===0)return[];const m=p.length*8,f=new Uint32Array(n(m));for(let g=0;g<m;g+=8)f[g>>5]|=(p[g/8]&255)<<g%32;return f}function u(p,m){const f=(p&65535)+(m&65535);return(p>>16)+(m>>16)+(f>>16)<<16|f&65535}function l(p,m){return p<<m|p>>>32-m}function d(p,m,f,g,b,_){return u(l(u(u(m,p),u(g,_)),b),f)}function w(p,m,f,g,b,_,x){return d(m&f|~m&g,p,m,b,_,x)}function S(p,m,f,g,b,_,x){return d(m&g|f&~g,p,m,b,_,x)}function y(p,m,f,g,b,_,x){return d(m^f^g,p,m,b,_,x)}function h(p,m,f,g,b,_,x){return d(f^(m|~g),p,m,b,_,x)}var c=e;return Ri.default=c,Ri}var dp;function TO(){if(dp)return Ci;dp=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.default=void 0;var e=n(Tv()),r=n(AO());function n(u){return u&&u.__esModule?u:{default:u}}var a=(0,e.default)("v3",48,r.default);return Ci.default=a,Ci}var Mi={},Ii={},pp;function CO(){if(pp)return Ii;pp=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=void 0;var r={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Ii.default=r,Ii}var hp;function PO(){if(hp)return Mi;hp=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=void 0;var e=o(CO()),r=o(Ov()),n=qa();function o(l){return l&&l.__esModule?l:{default:l}}function a(l,d,w){if(e.default.randomUUID&&!d&&!l)return e.default.randomUUID();l=l||{};const S=l.random||(l.rng||r.default)();if(S[6]=S[6]&15|64,S[8]=S[8]&63|128,d){w=w||0;for(let y=0;y<16;++y)d[w+y]=S[y];return d}return(0,n.unsafeStringify)(S)}var u=a;return Mi.default=u,Mi}var Fi={},Li={},vp;function RO(){if(vp)return Li;vp=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.default=void 0;function e(a,u,l,d){switch(a){case 0:return u&l^~u&d;case 1:return u^l^d;case 2:return u&l^u&d^l&d;case 3:return u^l^d}}function r(a,u){return a<<u|a>>>32-u}function n(a){const u=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const y=unescape(encodeURIComponent(a));a=[];for(let h=0;h<y.length;++h)a.push(y.charCodeAt(h))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const d=a.length/4+2,w=Math.ceil(d/16),S=new Array(w);for(let y=0;y<w;++y){const h=new Uint32Array(16);for(let c=0;c<16;++c)h[c]=a[y*64+c*4]<<24|a[y*64+c*4+1]<<16|a[y*64+c*4+2]<<8|a[y*64+c*4+3];S[y]=h}S[w-1][14]=(a.length-1)*8/Math.pow(2,32),S[w-1][14]=Math.floor(S[w-1][14]),S[w-1][15]=(a.length-1)*8&4294967295;for(let y=0;y<w;++y){const h=new Uint32Array(80);for(let b=0;b<16;++b)h[b]=S[y][b];for(let b=16;b<80;++b)h[b]=r(h[b-3]^h[b-8]^h[b-14]^h[b-16],1);let c=l[0],p=l[1],m=l[2],f=l[3],g=l[4];for(let b=0;b<80;++b){const _=Math.floor(b/20),x=r(c,5)+e(_,p,m,f)+g+u[_]+h[b]>>>0;g=f,f=m,m=r(p,30)>>>0,p=c,c=x}l[0]=l[0]+c>>>0,l[1]=l[1]+p>>>0,l[2]=l[2]+m>>>0,l[3]=l[3]+f>>>0,l[4]=l[4]+g>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var o=n;return Li.default=o,Li}var mp;function MO(){if(mp)return Fi;mp=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.default=void 0;var e=n(Tv()),r=n(RO());function n(u){return u&&u.__esModule?u:{default:u}}var a=(0,e.default)("v5",80,r.default);return Fi.default=a,Fi}var Di={},gp;function IO(){if(gp)return Di;gp=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Di.default=e,Di}var $i={},yp;function FO(){if(yp)return $i;yp=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.default=void 0;var e=r(Ha());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");return parseInt(a.slice(14,15),16)}var o=n;return $i.default=o,$i}var wp;function LO(){return wp||(wp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var r=y(OO()),n=y(TO()),o=y(PO()),a=y(MO()),u=y(IO()),l=y(FO()),d=y(Ha()),w=y(qa()),S=y(Av());function y(h){return h&&h.__esModule?h:{default:h}}}(Pu)),Pu}var Ru,bp;function DO(){if(bp)return Ru;bp=1;function e(r,n){if(!r||!n||!r.length||!n.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=n}return e.prototype.convert=function(r){var n,o,a,u={},l=this.srcAlphabet.length,d=this.dstAlphabet.length,w=r.length,S=typeof r=="string"?"":[];if(!this.isValid(r))throw new Error('Number "'+r+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return r;for(n=0;n<w;n++)u[n]=this.srcAlphabet.indexOf(r[n]);do{for(o=0,a=0,n=0;n<w;n++)o=o*l+u[n],o>=d?(u[a++]=parseInt(o/d,10),o=o%d):a>0&&(u[a++]=0);w=a,S=this.dstAlphabet.slice(o,o+1).concat(S)}while(a!==0);return S},e.prototype.isValid=function(r){for(var n=0;n<r.length;++n)if(this.srcAlphabet.indexOf(r[n])===-1)return!1;return!0},Ru=e,Ru}var Mu,Sp;function $O(){if(Sp)return Mu;Sp=1;var e=DO();function r(n,o){var a=new e(n,o);return function(u){return a.convert(u)}}return r.BIN="01",r.OCT="01234567",r.DEC="0123456789",r.HEX="0123456789abcdef",Mu=r,Mu}var Iu,Ep;function NO(){if(Ep)return Iu;Ep=1;const{v4:e,validate:r}=LO(),n=$O(),o={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},a={consistentLength:!0};let u;const l=(S,y,h)=>{const c=y(S.toLowerCase().replace(/-/g,""));return!h||!h.consistentLength?c:c.padStart(h.shortIdLength,h.paddingChar)},d=(S,y)=>{const c=y(S).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[c[1],c[2],c[3],c[4],c[5]].join("-")},w=S=>Math.ceil(Math.log(2**128)/Math.log(S));return Iu=(()=>{const S=(y,h)=>{const c=y||o.flickrBase58,p={...a,...h};if([...new Set(Array.from(c))].length!==c.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const m=w(c.length),f={shortIdLength:m,consistentLength:p.consistentLength,paddingChar:c[0]},g=n(n.HEX,c),b=n(c,n.HEX),_=()=>l(e(),g,f),C={alphabet:c,fromUUID:T=>l(T,g,f),maxLength:m,generate:_,new:_,toUUID:T=>d(T,b),uuid:e,validate:(T,M=!1)=>{if(!T||typeof T!="string")return!1;const H=p.consistentLength?T.length===m:T.length<=m,L=T.split("").every(k=>c.includes(k));return M===!1?H&&L:H&&L&&r(d(T,b))}};return Object.freeze(C),C};return S.constants=o,S.uuid=e,S.generate=()=>(u||(u=S(o.flickrBase58).generate),u()),S})(),Iu}var Dl=NO();const Cv=({depth:e,height:r=24,width:n=11,showLines:o=!0,stroke:a="rgb(241, 245, 249)"})=>{const u=`indent_line_${Dl.generate()}`;return W.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:r,children:[W.jsx("defs",{children:W.jsx("pattern",{id:u,x:"0",y:"0",width:n,height:r,patternUnits:"userSpaceOnUse",children:W.jsx("line",{x1:n/2,y1:"0",x2:n/2,y2:r,stroke:a})})}),o?W.jsx("rect",{fill:`url(#${u})`,x:"0",y:"0",width:`${11*e}`,height:r}):W.jsx("rect",{fill:o?`url(#${u})`:"",x:"0",y:"0",width:0,height:r})]})},Pv=({show:e,expanded:r,onClick:n,variant:o="arrow"})=>e?W.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>n&&n(a),children:(()=>{switch(o){case"arrow":return W.jsx(rt.FdDown,{className:Ye(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":r,"-rotate-90":!r}])});case"caret":return r?W.jsx(rt.FdDown,{}):W.jsx(rt.FdRight,{});default:return W.jsx(rt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):W.jsx("div",{className:"flex h-6 w-3 items-center"}),$l=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:l,onNodeClick:d})=>{var p;const{key:w,children:S}=e,y=U.useMemo(()=>({expanded:n.includes(e.key),selected:o.includes(e.key)}),[n,e.key,o]),h=l&&typeof l=="function"?l(e,r,y,a,u):WO(e,r,y,d);return!((p=e.options)!=null&&p.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?W.jsxs(W.Fragment,{children:[W.jsx("div",{className:"flex items-center space-x-2",children:h},w),jO(S||[],r,u,n,o,y.expanded,a,d,l)]}):null},kO=function(e,r){var l;const{title:n,icon:o,subtitle:a}=e;let u=null;return o&&(u=W.jsx(xv,{children:o})),W.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{r&&r(e)},children:[u,W.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:n}),a&&W.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},jO=function(e,r,n,o,a,u,l,d,w){return e.length&&u?e.map(S=>W.jsx($l,{actions:l,node:S,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:d,renderNode:w},S.key)):null},WO=function(e,r,n,o){return W.jsxs(W.Fragment,{children:[W.jsx(Cv,{showLines:!0,depth:r}),W.jsx(Pv,{show:e.children&&e.children.length>0||!1,expanded:n.expanded}),kO(e,o)]})},ca=e=>r=>e===r,UO=function({treeData:r,renderNode:n,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:l,expandCondition:d="always",encapsulated:w,className:S}){const[y,h]=U.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));U.useEffect(()=>{d==="when-collapsed"&&y.expandedKeys.length>0||h({...y,expandedKeys:l||y.expandedKeys})},[l]);const c=U.useCallback(b=>{if(!b)return;const _=y.expandedKeys.findIndex(ca(b.key));let x=[];_===-1?(x=[...y.expandedKeys,b.key],h(()=>({...y,expandedKeys:x})),a&&a(x)):(x=y.expandedKeys.filter(C=>C!==b.key),h(()=>({...y,expandedKeys:x})),a&&a(x))},[y]),p=U.useCallback(b=>{var x;if(!((x=b==null?void 0:b.options)!=null&&x.selectable))return;y.selectedKeys.findIndex(ca(b.key))===-1&&h({...y,selectedKeys:[...y.selectedKeys,b.key]})},[y]),m=U.useCallback(b=>{var x;if(!((x=b==null?void 0:b.options)!=null&&x.selectable))return;y.selectedKeys.findIndex(ca(b.key))===-1&&h({...y,selectedKeys:[b.key]})},[y]),f=U.useCallback(b=>{var x;if(!((x=b==null?void 0:b.options)!=null&&x.selectable)){h({...y,selectedKeys:[]});return}y.selectedKeys.findIndex(ca(b.key))!==-1&&h({...y,selectedKeys:y.selectedKeys.filter(C=>C!==b.key)})},[y]),g=U.useMemo(()=>({expand:c,select:p,selectSingle:m,deselect:f}),[f,c,p,m]);return W.jsx("div",{className:Ye("fd-tree",S,{"pl-2 mb-1 rounded border bg-grey-900 p-1":w}),children:r.map(b=>W.jsx($l,{node:b,searchQuery:u||"",depth:0,expandedKeys:y.expandedKeys,selectedKeys:y.selectedKeys,actions:g,renderNode:n,onNodeClick:o},b.key))})};function BO(e){return e.of&&e.children?W.jsx(W.Fragment,{children:e.children}):null}function at(){return at=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},at.apply(null,arguments)}function zO(e){for(var r=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var HO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Rv(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var qO=/[A-Z]|^ms/g,ZO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mv=function(r){return r.charCodeAt(1)===45},_p=function(r){return r!=null&&typeof r!="boolean"},Fu=Rv(function(e){return Mv(e)?e:e.replace(qO,"-$&").toLowerCase()}),xp=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(ZO,function(o,a,u){return fr={name:a,styles:u,next:fr},a})}return HO[r]!==1&&!Mv(r)&&typeof n=="number"&&n!==0?n+"px":n};function ro(e,r,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return fr={name:a.name,styles:a.styles,next:fr},a.name;var u=n;if(u.styles!==void 0){var l=u.next;if(l!==void 0)for(;l!==void 0;)fr={name:l.name,styles:l.styles,next:fr},l=l.next;var d=u.styles+";";return d}return GO(e,r,n)}case"function":{if(e!==void 0){var w=fr,S=n(e);return fr=w,ro(e,r,S)}break}}var y=n;if(r==null)return y;var h=r[y];return h!==void 0?h:y}function GO(e,r,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=ro(e,r,n[a])+";";else for(var u in n){var l=n[u];if(typeof l!="object"){var d=l;r!=null&&r[d]!==void 0?o+=u+"{"+r[d]+"}":_p(d)&&(o+=Fu(u)+":"+xp(u,d)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var w=0;w<l.length;w++)_p(l[w])&&(o+=Fu(u)+":"+xp(u,l[w])+";");else{var S=ro(e,r,l);switch(u){case"animation":case"animationName":{o+=Fu(u)+":"+S+";";break}default:o+=u+"{"+S+"}"}}}return o}var Op=/label:\s*([^\s;{]+)\s*(;|$)/g,fr;function KO(e,r,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,a="";fr=void 0;var u=e[0];if(u==null||u.raw===void 0)o=!1,a+=ro(n,r,u);else{var l=u;a+=l[0]}for(var d=1;d<e.length;d++)if(a+=ro(n,r,e[d]),o){var w=u;a+=w[d]}Op.lastIndex=0;for(var S="",y;(y=Op.exec(a))!==null;)S+="-"+y[1];var h=zO(a)+S;return{name:h,styles:a,next:fr}}var VO=function(r){return r()},YO=$.useInsertionEffect?$.useInsertionEffect:!1,XO=YO||VO,JO=!0;function QO(e,r,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(o+=a+" ")}),o}var Iv=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||JO===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},eA=function(r,n,o){Iv(r,n,o);var a=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var u=n;do r.insert(n===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}},tA=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,rA=Rv(function(e){return tA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),nA=rA,iA=function(r){return r!=="theme"},Ap=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?nA:iA},Tp=function(r,n,o){var a;if(n){var u=n.shouldForwardProp;a=r.__emotion_forwardProp&&u?function(l){return r.__emotion_forwardProp(l)&&u(l)}:u}return typeof a!="function"&&o&&(a=r.__emotion_forwardProp),a},oA=function(r){var n=r.cache,o=r.serialized,a=r.isStringTag;return Iv(n,o,a),XO(function(){return eA(n,o,a)}),null},aA=function e(r,n){var o=r.__emotion_real===r,a=o&&r.__emotion_base||r,u,l;n!==void 0&&(u=n.label,l=n.target);var d=Tp(r,n,o),w=d||Ap(a),S=!w("as");return function(){var y=arguments,h=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(u!==void 0&&h.push("label:"+u+";"),y[0]==null||y[0].raw===void 0)h.push.apply(h,y);else{var c=y[0];h.push(c[0]);for(var p=y.length,m=1;m<p;m++)h.push(y[m],c[m])}var f=al.withEmotionCache(function(g,b,_){var x=S&&g.as||a,C="",T=[],M=g;if(g.theme==null){M={};for(var H in g)M[H]=g[H];M.theme=$.useContext(al.ThemeContext)}typeof g.className=="string"?C=QO(b.registered,T,g.className):g.className!=null&&(C=g.className+" ");var L=KO(h.concat(T),b.registered,M);C+=b.key+"-"+L.name,l!==void 0&&(C+=" "+l);var k=S&&d===void 0?Ap(x):w,X={};for(var j in g)S&&j==="as"||k(j)&&(X[j]=g[j]);return X.className=C,_&&(X.ref=_),$.createElement($.Fragment,null,$.createElement(oA,{cache:b,serialized:L,isStringTag:typeof x=="string"}),$.createElement(x,X))});return f.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",f.defaultProps=r.defaultProps,f.__emotion_real=f,f.__emotion_base=a,f.__emotion_styles=h,f.__emotion_forwardProp=d,Object.defineProperty(f,"toString",{value:function(){return"."+l}}),f.withComponent=function(g,b){var _=e(g,at({},n,b,{shouldForwardProp:Tp(f,b,!0)}));return _.apply(void 0,h)},f}},sA=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Da=aA.bind(null);sA.forEach(function(e){Da[e]=Da(e)});var uA=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},Zn=new WeakMap,fa=new WeakMap,da={},Lu=0,Fv=function(e){return e&&(e.host||Fv(e.parentNode))},lA=function(e,r){return r.map(function(n){if(e.contains(n))return n;var o=Fv(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},cA=function(e,r,n,o){var a=lA(r,Array.isArray(e)?e:[e]);da[n]||(da[n]=new WeakMap);var u=da[n],l=[],d=new Set,w=new Set(a),S=function(h){!h||d.has(h)||(d.add(h),S(h.parentNode))};a.forEach(S);var y=function(h){!h||w.has(h)||Array.prototype.forEach.call(h.children,function(c){if(d.has(c))y(c);else try{var p=c.getAttribute(o),m=p!==null&&p!=="false",f=(Zn.get(c)||0)+1,g=(u.get(c)||0)+1;Zn.set(c,f),u.set(c,g),l.push(c),f===1&&m&&fa.set(c,!0),g===1&&c.setAttribute(n,"true"),m||c.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",c,b)}})};return y(r),d.clear(),Lu++,function(){l.forEach(function(h){var c=Zn.get(h)-1,p=u.get(h)-1;Zn.set(h,c),u.set(h,p),c||(fa.has(h)||h.removeAttribute(o),fa.delete(h)),p||h.removeAttribute(n)}),Lu--,Lu||(Zn=new WeakMap,Zn=new WeakMap,fa=new WeakMap,da={})}},fA=function(e,r,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=uA(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live], script"))),cA(o,a,n,"aria-hidden")):function(){return null}},fl=function(e,r){return fl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},fl(e,r)};function Za(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");fl(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var dr=function(){return dr=Object.assign||function(r){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(r[u]=n[u])}return r},dr.apply(this,arguments)};function Lv(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function dl(e){var r=typeof Symbol=="function"&&Symbol.iterator,n=r&&e[r],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function pl(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),a,u=[],l;try{for(;(r===void 0||r-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(d){l={error:d}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return u}function $a(e,r,n){if(n||arguments.length===2)for(var o=0,a=r.length,u;o<a;o++)(u||!(o in r))&&(u||(u=Array.prototype.slice.call(r,0,o)),u[o]=r[o]);return e.concat(u||Array.prototype.slice.call(r))}var Ca="right-scroll-bar-position",Pa="width-before-scroll-bar",dA="with-scroll-bars-hidden",pA="--removed-body-scroll-bar-size";function Du(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function hA(e,r){var n=U.useState(function(){return{value:e,callback:r,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=r,n.facade}var vA=typeof window<"u"?$.useLayoutEffect:$.useEffect,Cp=new WeakMap;function mA(e,r){var n=hA(null,function(o){return e.forEach(function(a){return Du(a,o)})});return vA(function(){var o=Cp.get(n);if(o){var a=new Set(o),u=new Set(e),l=n.current;a.forEach(function(d){u.has(d)||Du(d,null)}),u.forEach(function(d){a.has(d)||Du(d,l)})}Cp.set(n,e)},[e]),n}function gA(e){return e}function yA(e,r){r===void 0&&(r=gA);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var l=r(u,o);return n.push(l),function(){n=n.filter(function(d){return d!==l})}},assignSyncMedium:function(u){for(o=!0;n.length;){var l=n;n=[],l.forEach(u)}n={push:function(d){return u(d)},filter:function(){return n}}},assignMedium:function(u){o=!0;var l=[];if(n.length){var d=n;n=[],d.forEach(u),l=n}var w=function(){var y=l;l=[],y.forEach(u)},S=function(){return Promise.resolve().then(w)};S(),n={push:function(y){l.push(y),S()},filter:function(y){return l=l.filter(y),n}}}};return a}function wA(e){e===void 0&&(e={});var r=yA(null);return r.options=dr({async:!0,ssr:!1},e),r}var Dv=function(e){var r=e.sideCar,n=Lv(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return $.createElement(o,dr({},n))};Dv.isSideCarExport=!0;function bA(e,r){return e.useMedium(r),Dv}var $v=wA(),$u=function(){},Ga=$.forwardRef(function(e,r){var n=$.useRef(null),o=$.useState({onScrollCapture:$u,onWheelCapture:$u,onTouchMoveCapture:$u}),a=o[0],u=o[1],l=e.forwardProps,d=e.children,w=e.className,S=e.removeScrollBar,y=e.enabled,h=e.shards,c=e.sideCar,p=e.noRelative,m=e.noIsolation,f=e.inert,g=e.allowPinchZoom,b=e.as,_=b===void 0?"div":b,x=e.gapMode,C=Lv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=c,M=mA([n,r]),H=dr(dr({},C),a);return $.createElement($.Fragment,null,y&&$.createElement(T,{sideCar:$v,removeScrollBar:S,shards:h,noRelative:p,noIsolation:m,inert:f,setCallbacks:u,allowPinchZoom:!!g,lockRef:n,gapMode:x}),l?$.cloneElement($.Children.only(d),dr(dr({},H),{ref:M})):$.createElement(_,dr({},H,{className:w,ref:M}),d))});Ga.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ga.classNames={fullWidth:Pa,zeroRight:Ca};var SA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function EA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=SA();return r&&e.setAttribute("nonce",r),e}function _A(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function xA(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var OA=function(){var e=0,r=null;return{add:function(n){e==0&&(r=EA())&&(_A(r,n),xA(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},AA=function(){var e=OA();return function(r,n){$.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},Nv=function(){var e=AA(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},TA={left:0,top:0,right:0,gap:0},Nu=function(e){return parseInt(e||"",10)||0},CA=function(e){var r=window.getComputedStyle(document.body),n=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],a=r[e==="padding"?"paddingRight":"marginRight"];return[Nu(n),Nu(o),Nu(a)]},PA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return TA;var r=CA(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},RA=Nv(),Yn="data-scroll-locked",MA=function(e,r,n,o){var a=e.left,u=e.top,l=e.right,d=e.gap;return n===void 0&&(n="margin"),`
18
- .`.concat(dA,` {
15
+ `,{inline:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(r.wrapper===null)return m;const f=r.wrapper||(p?"span":"div");let g;if(m.length>1||r.forceWrapper)g=m;else{if(m.length===1)return g=m[0],typeof g=="string"?n("span",{key:"outer"},g):g;g=null}return r.createElement(f,{key:"outer"},g)}function a(c,p){const m=p.match(Sx);return m?m.reduce(function(f,g){const b=g.indexOf("=");if(b!==-1){const _=function(I){return I.indexOf("-")!==-1&&I.match(Nx)===null&&(I=I.replace(Bx,function(H,F){return F.toUpperCase()})),I}(g.slice(0,b)).trim(),x=function(I){const H=I[0];return(H==='"'||H==="'")&&I.length>=2&&I[I.length-1]===H?I.slice(1,-1):I}(g.slice(b+1).trim()),C=Xd[_]||_;if(C==="ref")return f;const T=f[C]=function(I,H,F,k){return H==="style"?function(X){const j=[];let L="",B=!1,q=!1,R="";if(!X)return j;for(let V=0;V<X.length;V++){const te=X[V];if(te!=='"'&&te!=="'"||B||(q?te===R&&(q=!1,R=""):(q=!0,R=te)),te==="("&&L.endsWith("url")?B=!0:te===")"&&B&&(B=!1),te!==";"||q||B)L+=te;else{const le=L.trim();if(le){const Z=le.indexOf(":");if(Z>0){const ee=le.slice(0,Z).trim(),ae=le.slice(Z+1).trim();j.push([ee,ae])}}L=""}}const J=L.trim();if(J){const V=J.indexOf(":");if(V>0){const te=J.slice(0,V).trim(),le=J.slice(V+1).trim();j.push([te,le])}}return j}(F).reduce(function(X,[j,L]){return X[j.replace(/(-[a-z])/g,B=>B[1].toUpperCase())]=k(L,I,j),X},{}):bx.indexOf(H)!==-1?k(F,I,H):(F.match(kx)&&(F=F.slice(1,F.length-1)),F==="true"||F!=="false"&&F)}(c,_,x,r.sanitizer);typeof T=="string"&&(ll.test(T)||cl.test(T))&&(f[C]=o(T.trim()))}else g!=="style"&&(f[Xd[g]||g]=!0);return f},{}):null}r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||wO,r.slugify=r.slugify||_i,r.namedCodesToUnicode=r.namedCodesToUnicode?gn({},Jd,r.namedCodesToUnicode):Jd,r.createElement=r.createElement||$.createElement;const u=[],l={},d={[me.blockQuote]:{match:Tr(uv),order:1,parse(c,p,m){const[,f,g]=c[0].replace(xx,"").match(Ox);return{alert:f,children:p(g,m)}},render(c,p,m){const f={key:m.key};return c.alert&&(f.className="markdown-alert-"+r.slugify(c.alert.toLowerCase(),_i),c.children.unshift({attrs:{},children:[{type:me.text,text:c.alert}],noInnerParse:!0,type:me.htmlBlock,tag:"header"})),n("blockquote",f,p(c.children,m))}},[me.breakLine]:{match:xi(Ax),order:1,parse:Au,render:(c,p,m)=>n("br",{key:m.key})},[me.breakThematic]:{match:Tr(Tx),order:1,parse:Au,render:(c,p,m)=>n("hr",{key:m.key})},[me.codeBlock]:{match:Tr(cv),order:0,parse:c=>({lang:void 0,text:to(c[0].replace(/^ {4}/gm,"")).replace(Qd,"$1")}),render:(c,p,m)=>n("pre",{key:m.key},n("code",gn({},c.attrs,{className:c.lang?`lang-${c.lang}`:""}),c.text))},[me.codeFenced]:{match:Tr(lv),order:0,parse:c=>({attrs:a("code",c[3]||""),lang:c[2]||void 0,text:c[4],type:me.codeBlock})},[me.codeInline]:{match:Kr(Cx),order:3,parse:c=>({text:c[2].replace(Qd,"$1")}),render:(c,p,m)=>n("code",{key:m.key},c.text)},[me.footnote]:{match:Tr(Ix),order:0,parse:c=>(u.push({footnote:c[2],identifier:c[1]}),{}),render:Tu},[me.footnoteReference]:{match:Gr(Mx),order:1,parse:c=>({target:`#${r.slugify(c[1],_i)}`,text:c[1]}),render:(c,p,m)=>n("a",{key:m.key,href:r.sanitizer(c.target,"a","href")},n("sup",{key:m.key},c.text))},[me.gfmTask]:{match:Gr(Dx),order:1,parse:c=>({completed:c[1].toLowerCase()==="x"}),render:(c,p,m)=>n("input",{checked:c.completed,key:m.key,readOnly:!0,type:"checkbox"})},[me.heading]:{match:Tr(r.enforceAtxHeadings?dv:fv),order:1,parse:(c,p,m)=>({children:Ta(p,c[2],m),id:r.slugify(c[2],_i),level:c[1].length}),render:(c,p,m)=>n(`h${c.level}`,{id:c.id,key:m.key},p(c.children,m))},[me.headingSetext]:{match:Tr(pv),order:0,parse:(c,p,m)=>({children:Ta(p,c[1],m),level:c[2]==="="?1:2,type:me.heading})},[me.htmlBlock]:{match:xi(ll),order:1,parse(c,p,m){const[,f]=c[3].match(oO),g=new RegExp(`^${f}`,"gm"),b=c[3].replace(g,""),_=(x=b,hO.some(F=>F.test(x))?SO:Ta);var x;const C=c[1].toLowerCase(),T=wx.indexOf(C)!==-1,I=(T?C:c[1]).trim(),H={attrs:a(I,c[2]),noInnerParse:T,tag:I};return m.inAnchor=m.inAnchor||C==="a",T?H.text=c[3]:H.children=_(p,b,m),m.inAnchor=!1,H},render:(c,p,m)=>n(c.tag,gn({key:m.key},c.attrs),c.text||(c.children?p(c.children,m):""))},[me.htmlSelfClosing]:{match:xi(cl),order:1,parse(c){const p=c[1].trim();return{attrs:a(p,c[2]||""),tag:p}},render:(c,p,m)=>n(c.tag,gn({},c.attrs,{key:m.key}))},[me.htmlComment]:{match:xi(hv),order:1,parse:()=>({}),render:Tu},[me.image]:{match:Kr(pO),order:1,parse:c=>({alt:c[1],target:np(c[2]),title:c[3]}),render:(c,p,m)=>n("img",{key:m.key,alt:c.alt||void 0,title:c.title||void 0,src:r.sanitizer(c.target,"img","src")})},[me.link]:{match:Gr(dO),order:3,parse:(c,p,m)=>({children:bO(p,c[1],m),target:np(c[2]),title:c[3]}),render:(c,p,m)=>n("a",{key:m.key,href:r.sanitizer(c.target,"a","href"),title:c.title},p(c.children,m))},[me.linkAngleBraceStyleDetector]:{match:Gr(Ux),order:0,parse:c=>({children:[{text:c[1],type:me.text}],target:c[1],type:me.link})},[me.linkBareUrlDetector]:{match:ni((c,p)=>p.inAnchor||r.disableAutoLink?null:Gr(jx)(c,p)),order:0,parse:c=>({children:[{text:c[1],type:me.text}],target:c[1],title:void 0,type:me.link})},[me.linkMailtoDetector]:{match:Gr(Wx),order:0,parse(c){let p=c[1],m=c[1];return Ex.test(m)||(m="mailto:"+m),{children:[{text:p.replace("mailto:",""),type:me.text}],target:m,type:me.link}}},[me.orderedList]:ep(n,1),[me.unorderedList]:ep(n,2),[me.newlineCoalescer]:{match:Tr(Px),order:3,parse:Au,render:()=>`
16
+ `},[me.paragraph]:{match:ni(gO),order:3,parse:Ou,render:(c,p,m)=>n("p",{key:m.key},p(c.children,m))},[me.ref]:{match:Gr(zx),order:0,parse:c=>(l[c[1]]={target:c[2],title:c[4]},{}),render:Tu},[me.refImage]:{match:Kr(Hx),order:0,parse:c=>({alt:c[1]||void 0,ref:c[2]}),render:(c,p,m)=>l[c.ref]?n("img",{key:m.key,alt:c.alt,src:r.sanitizer(l[c.ref].target,"img","src"),title:l[c.ref].title}):null},[me.refLink]:{match:Gr(qx),order:0,parse:(c,p,m)=>({children:p(c[1],m),fallbackChildren:c[0],ref:c[2]}),render:(c,p,m)=>l[c.ref]?n("a",{key:m.key,href:r.sanitizer(l[c.ref].target,"a","href"),title:l[c.ref].title},p(c.children,m)):n("span",{key:m.key},c.fallbackChildren)},[me.table]:{match:Tr(vv),order:1,parse:mO,render(c,p,m){const f=c;return n("table",{key:m.key},n("thead",null,n("tr",null,f.header.map(function(g,b){return n("th",{key:b,style:rp(f,b)},p(g,m))}))),n("tbody",null,f.cells.map(function(g,b){return n("tr",{key:b},g.map(function(_,x){return n("td",{key:x,style:rp(f,x)},p(_,m))}))})))}},[me.text]:{match:xi(nO),order:4,parse:c=>({text:c[0].replace($x,(p,m)=>r.namedCodesToUnicode[m]?r.namedCodesToUnicode[m]:p)}),render:c=>c.text},[me.textBolded]:{match:Kr(Jx),order:2,parse:(c,p,m)=>({children:p(c[2],m)}),render:(c,p,m)=>n("strong",{key:m.key},p(c.children,m))},[me.textEmphasized]:{match:Kr(Qx),order:3,parse:(c,p,m)=>({children:p(c[2],m)}),render:(c,p,m)=>n("em",{key:m.key},p(c.children,m))},[me.textEscaped]:{match:Kr(rO),order:1,parse:c=>({text:c[1],type:me.text})},[me.textMarked]:{match:Kr(eO),order:3,parse:Ou,render:(c,p,m)=>n("mark",{key:m.key},p(c.children,m))},[me.textStrikethroughed]:{match:Kr(tO),order:3,parse:Ou,render:(c,p,m)=>n("del",{key:m.key},p(c.children,m))}};r.disableParsingRawHTML===!0&&(delete d[me.htmlBlock],delete d[me.htmlSelfClosing]);const w=function(c){let p=Object.keys(c);function m(f,g){let b,_,x=[],C="",T="";for(g.prevCapture=g.prevCapture||"";f;){let I=0;for(;I<p.length;){if(C=p[I],b=c[C],g.inline&&!b.match.inline){I++;continue}const H=b.match(f,g);if(H){T=H[0],g.prevCapture+=T,f=f.substring(T.length),_=b.parse(H,m,g),_.type==null&&(_.type=C),x.push(_);break}I++}}return g.prevCapture="",x}return p.sort(function(f,g){let b=c[f].order,_=c[g].order;return b!==_?b-_:f<g?-1:1}),function(f,g){return m(function(b){return b.replace(Rx,`
17
+ `).replace(Lx,"").replace(Gx," ")}(f),g)}}(d),S=(y=function(c,p){return function(m,f,g){const b=c[m.type].render;return p?p(()=>b(m,f,g),m,f,g):b(m,f,g)}}(d,r.renderRule),function c(p,m={}){if(Array.isArray(p)){const f=m.key,g=[];let b=!1;for(let _=0;_<p.length;_++){m.key=_;const x=c(p[_],m),C=typeof x=="string";C&&b?g[g.length-1]+=x:x!==null&&g.push(x),b=C}return m.key=f,g}return y(p,c,m)});var y;const h=o(e);return u.length?n("div",null,h,n("footer",{key:"footer"},u.map(function(c){return n("div",{id:r.slugify(c.identifier,_i),key:c.identifier},c.identifier,S(w(c.footnote,{inline:!0})))}))):h}const Fa=e=>{let{children:r="",options:n}=e,o=function(a,u){if(a==null)return{};var l,d,w={},S=Object.keys(a);for(d=0;d<S.length;d++)u.indexOf(l=S[d])>=0||(w[l]=a[l]);return w}(e,yx);return $.cloneElement(_O(r,n),o)},ip=({kind:e,customIcon:r})=>{if(r)return W.jsx(r,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return W.jsx(rt.FdSanityCheckInfo,{className:"flex-none h-6 w-6"});case"info":return W.jsx(W.Fragment,{children:W.jsx(rt.FdInfoBold,{className:"flex-none h-6 w-6"})});case"warning":return W.jsx(W.Fragment,{children:W.jsx(rt.FdWarningDanger,{className:"flex-none h-6 w-6"})});case"message":return W.jsx(W.Fragment,{children:W.jsx(rt.FdInfoBold,{className:"flex-none h-6 w-6"})});default:return null}},xO=({id:e,onClose:r,kind:n,message:o,markdown:a,customIcon:u})=>{const l=({className:d}={})=>W.jsx("button",{onClick:r,className:Ye("flex items-center justify-center p-1",d),children:W.jsx(rt.FdCloseNaked,{className:"h-5 w-5 font-thin stroke-current"})});return W.jsx("div",{className:Ye("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":n==="warning","bg-red-200 text-red-500":n==="danger"||n==="error","bg-primary-light text-primary":n==="info","bg-green-200 text-green-500":n==="message"}),children:typeof o=="string"?W.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[W.jsxs("div",{className:"flex items-center gap-1",children:[W.jsx(ip,{kind:n,customIcon:u}),a?W.jsx(Fa,{children:o}):W.jsx(W.Fragment,{children:o})]}),l()]}):W.jsxs("div",{className:"flex items-start",children:[W.jsx("div",{className:"flex flex-col gap-2 justify-between",children:o.filter(d=>d.messages.length>0).map(d=>W.jsxs(W.Fragment,{children:[d.title&&W.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[W.jsx(ip,{kind:n,customIcon:u}),W.jsxs("span",{children:[d.title," :"]})]}),W.jsx("ul",{className:Ye("list-disc",{"px-12":d.title,"px-6":!d.title}),children:d.messages.map(w=>W.jsx("li",{children:a?W.jsx(Fa,{children:w}):W.jsx(W.Fragment,{children:w})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},Ov=({children:e,size:r,className:n,...o})=>W.jsx("div",{style:{"--width":`${r||24}px`},className:Ye("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var Pu={},Oi={},la={},op;function Av(){if(op)return la;op=1,Object.defineProperty(la,"__esModule",{value:!0}),la.default=n;let e;const r=new Uint8Array(16);function n(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)}return la}var qn={},Ai={},Ti={},ap;function OO(){if(ap)return Ti;ap=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Ti.default=e,Ti}var sp;function Ha(){if(sp)return Ai;sp=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=void 0;var e=r(OO());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){return typeof a=="string"&&e.default.test(a)}var o=n;return Ai.default=o,Ai}var up;function qa(){if(up)return qn;up=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.default=void 0,qn.unsafeStringify=o;var e=r(Ha());function r(l){return l&&l.__esModule?l:{default:l}}const n=[];for(let l=0;l<256;++l)n.push((l+256).toString(16).slice(1));function o(l,d=0){return n[l[d+0]]+n[l[d+1]]+n[l[d+2]]+n[l[d+3]]+"-"+n[l[d+4]]+n[l[d+5]]+"-"+n[l[d+6]]+n[l[d+7]]+"-"+n[l[d+8]]+n[l[d+9]]+"-"+n[l[d+10]]+n[l[d+11]]+n[l[d+12]]+n[l[d+13]]+n[l[d+14]]+n[l[d+15]]}function a(l,d=0){const w=o(l,d);if(!(0,e.default)(w))throw TypeError("Stringified UUID is invalid");return w}var u=a;return qn.default=u,qn}var lp;function AO(){if(lp)return Oi;lp=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.default=void 0;var e=n(Av()),r=qa();function n(S){return S&&S.__esModule?S:{default:S}}let o,a,u=0,l=0;function d(S,y,h){let c=y&&h||0;const p=y||new Array(16);S=S||{};let m=S.node||o,f=S.clockseq!==void 0?S.clockseq:a;if(m==null||f==null){const T=S.random||(S.rng||e.default)();m==null&&(m=o=[T[0]|1,T[1],T[2],T[3],T[4],T[5]]),f==null&&(f=a=(T[6]<<8|T[7])&16383)}let g=S.msecs!==void 0?S.msecs:Date.now(),b=S.nsecs!==void 0?S.nsecs:l+1;const _=g-u+(b-l)/1e4;if(_<0&&S.clockseq===void 0&&(f=f+1&16383),(_<0||g>u)&&S.nsecs===void 0&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=g,l=b,a=f,g+=122192928e5;const x=((g&268435455)*1e4+b)%4294967296;p[c++]=x>>>24&255,p[c++]=x>>>16&255,p[c++]=x>>>8&255,p[c++]=x&255;const C=g/4294967296*1e4&268435455;p[c++]=C>>>8&255,p[c++]=C&255,p[c++]=C>>>24&15|16,p[c++]=C>>>16&255,p[c++]=f>>>8|128,p[c++]=f&255;for(let T=0;T<6;++T)p[c+T]=m[T];return y||(0,r.unsafeStringify)(p)}var w=d;return Oi.default=w,Oi}var Ci={},Vr={},Pi={},cp;function Tv(){if(cp)return Pi;cp=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=void 0;var e=r(Ha());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");let u;const l=new Uint8Array(16);return l[0]=(u=parseInt(a.slice(0,8),16))>>>24,l[1]=u>>>16&255,l[2]=u>>>8&255,l[3]=u&255,l[4]=(u=parseInt(a.slice(9,13),16))>>>8,l[5]=u&255,l[6]=(u=parseInt(a.slice(14,18),16))>>>8,l[7]=u&255,l[8]=(u=parseInt(a.slice(19,23),16))>>>8,l[9]=u&255,l[10]=(u=parseInt(a.slice(24,36),16))/1099511627776&255,l[11]=u/4294967296&255,l[12]=u>>>24&255,l[13]=u>>>16&255,l[14]=u>>>8&255,l[15]=u&255,l}var o=n;return Pi.default=o,Pi}var fp;function Cv(){if(fp)return Vr;fp=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.URL=Vr.DNS=void 0,Vr.default=l;var e=qa(),r=n(Tv());function n(d){return d&&d.__esModule?d:{default:d}}function o(d){d=unescape(encodeURIComponent(d));const w=[];for(let S=0;S<d.length;++S)w.push(d.charCodeAt(S));return w}const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Vr.DNS=a;const u="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Vr.URL=u;function l(d,w,S){function y(h,c,p,m){var f;if(typeof h=="string"&&(h=o(h)),typeof c=="string"&&(c=(0,r.default)(c)),((f=c)===null||f===void 0?void 0:f.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let g=new Uint8Array(16+h.length);if(g.set(c),g.set(h,c.length),g=S(g),g[6]=g[6]&15|w,g[8]=g[8]&63|128,p){m=m||0;for(let b=0;b<16;++b)p[m+b]=g[b];return p}return(0,e.unsafeStringify)(g)}try{y.name=d}catch{}return y.DNS=a,y.URL=u,y}return Vr}var Ri={},dp;function TO(){if(dp)return Ri;dp=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.default=void 0;function e(p){if(typeof p=="string"){const m=unescape(encodeURIComponent(p));p=new Uint8Array(m.length);for(let f=0;f<m.length;++f)p[f]=m.charCodeAt(f)}return r(o(a(p),p.length*8))}function r(p){const m=[],f=p.length*32,g="0123456789abcdef";for(let b=0;b<f;b+=8){const _=p[b>>5]>>>b%32&255,x=parseInt(g.charAt(_>>>4&15)+g.charAt(_&15),16);m.push(x)}return m}function n(p){return(p+64>>>9<<4)+14+1}function o(p,m){p[m>>5]|=128<<m%32,p[n(m)-1]=m;let f=1732584193,g=-271733879,b=-1732584194,_=271733878;for(let x=0;x<p.length;x+=16){const C=f,T=g,I=b,H=_;f=w(f,g,b,_,p[x],7,-680876936),_=w(_,f,g,b,p[x+1],12,-389564586),b=w(b,_,f,g,p[x+2],17,606105819),g=w(g,b,_,f,p[x+3],22,-1044525330),f=w(f,g,b,_,p[x+4],7,-176418897),_=w(_,f,g,b,p[x+5],12,1200080426),b=w(b,_,f,g,p[x+6],17,-1473231341),g=w(g,b,_,f,p[x+7],22,-45705983),f=w(f,g,b,_,p[x+8],7,1770035416),_=w(_,f,g,b,p[x+9],12,-1958414417),b=w(b,_,f,g,p[x+10],17,-42063),g=w(g,b,_,f,p[x+11],22,-1990404162),f=w(f,g,b,_,p[x+12],7,1804603682),_=w(_,f,g,b,p[x+13],12,-40341101),b=w(b,_,f,g,p[x+14],17,-1502002290),g=w(g,b,_,f,p[x+15],22,1236535329),f=S(f,g,b,_,p[x+1],5,-165796510),_=S(_,f,g,b,p[x+6],9,-1069501632),b=S(b,_,f,g,p[x+11],14,643717713),g=S(g,b,_,f,p[x],20,-373897302),f=S(f,g,b,_,p[x+5],5,-701558691),_=S(_,f,g,b,p[x+10],9,38016083),b=S(b,_,f,g,p[x+15],14,-660478335),g=S(g,b,_,f,p[x+4],20,-405537848),f=S(f,g,b,_,p[x+9],5,568446438),_=S(_,f,g,b,p[x+14],9,-1019803690),b=S(b,_,f,g,p[x+3],14,-187363961),g=S(g,b,_,f,p[x+8],20,1163531501),f=S(f,g,b,_,p[x+13],5,-1444681467),_=S(_,f,g,b,p[x+2],9,-51403784),b=S(b,_,f,g,p[x+7],14,1735328473),g=S(g,b,_,f,p[x+12],20,-1926607734),f=y(f,g,b,_,p[x+5],4,-378558),_=y(_,f,g,b,p[x+8],11,-2022574463),b=y(b,_,f,g,p[x+11],16,1839030562),g=y(g,b,_,f,p[x+14],23,-35309556),f=y(f,g,b,_,p[x+1],4,-1530992060),_=y(_,f,g,b,p[x+4],11,1272893353),b=y(b,_,f,g,p[x+7],16,-155497632),g=y(g,b,_,f,p[x+10],23,-1094730640),f=y(f,g,b,_,p[x+13],4,681279174),_=y(_,f,g,b,p[x],11,-358537222),b=y(b,_,f,g,p[x+3],16,-722521979),g=y(g,b,_,f,p[x+6],23,76029189),f=y(f,g,b,_,p[x+9],4,-640364487),_=y(_,f,g,b,p[x+12],11,-421815835),b=y(b,_,f,g,p[x+15],16,530742520),g=y(g,b,_,f,p[x+2],23,-995338651),f=h(f,g,b,_,p[x],6,-198630844),_=h(_,f,g,b,p[x+7],10,1126891415),b=h(b,_,f,g,p[x+14],15,-1416354905),g=h(g,b,_,f,p[x+5],21,-57434055),f=h(f,g,b,_,p[x+12],6,1700485571),_=h(_,f,g,b,p[x+3],10,-1894986606),b=h(b,_,f,g,p[x+10],15,-1051523),g=h(g,b,_,f,p[x+1],21,-2054922799),f=h(f,g,b,_,p[x+8],6,1873313359),_=h(_,f,g,b,p[x+15],10,-30611744),b=h(b,_,f,g,p[x+6],15,-1560198380),g=h(g,b,_,f,p[x+13],21,1309151649),f=h(f,g,b,_,p[x+4],6,-145523070),_=h(_,f,g,b,p[x+11],10,-1120210379),b=h(b,_,f,g,p[x+2],15,718787259),g=h(g,b,_,f,p[x+9],21,-343485551),f=u(f,C),g=u(g,T),b=u(b,I),_=u(_,H)}return[f,g,b,_]}function a(p){if(p.length===0)return[];const m=p.length*8,f=new Uint32Array(n(m));for(let g=0;g<m;g+=8)f[g>>5]|=(p[g/8]&255)<<g%32;return f}function u(p,m){const f=(p&65535)+(m&65535);return(p>>16)+(m>>16)+(f>>16)<<16|f&65535}function l(p,m){return p<<m|p>>>32-m}function d(p,m,f,g,b,_){return u(l(u(u(m,p),u(g,_)),b),f)}function w(p,m,f,g,b,_,x){return d(m&f|~m&g,p,m,b,_,x)}function S(p,m,f,g,b,_,x){return d(m&g|f&~g,p,m,b,_,x)}function y(p,m,f,g,b,_,x){return d(m^f^g,p,m,b,_,x)}function h(p,m,f,g,b,_,x){return d(f^(m|~g),p,m,b,_,x)}var c=e;return Ri.default=c,Ri}var pp;function CO(){if(pp)return Ci;pp=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.default=void 0;var e=n(Cv()),r=n(TO());function n(u){return u&&u.__esModule?u:{default:u}}var a=(0,e.default)("v3",48,r.default);return Ci.default=a,Ci}var Ii={},Mi={},hp;function PO(){if(hp)return Mi;hp=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=void 0;var r={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Mi.default=r,Mi}var vp;function RO(){if(vp)return Ii;vp=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=void 0;var e=o(PO()),r=o(Av()),n=qa();function o(l){return l&&l.__esModule?l:{default:l}}function a(l,d,w){if(e.default.randomUUID&&!d&&!l)return e.default.randomUUID();l=l||{};const S=l.random||(l.rng||r.default)();if(S[6]=S[6]&15|64,S[8]=S[8]&63|128,d){w=w||0;for(let y=0;y<16;++y)d[w+y]=S[y];return d}return(0,n.unsafeStringify)(S)}var u=a;return Ii.default=u,Ii}var Li={},Fi={},mp;function IO(){if(mp)return Fi;mp=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.default=void 0;function e(a,u,l,d){switch(a){case 0:return u&l^~u&d;case 1:return u^l^d;case 2:return u&l^u&d^l&d;case 3:return u^l^d}}function r(a,u){return a<<u|a>>>32-u}function n(a){const u=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const y=unescape(encodeURIComponent(a));a=[];for(let h=0;h<y.length;++h)a.push(y.charCodeAt(h))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const d=a.length/4+2,w=Math.ceil(d/16),S=new Array(w);for(let y=0;y<w;++y){const h=new Uint32Array(16);for(let c=0;c<16;++c)h[c]=a[y*64+c*4]<<24|a[y*64+c*4+1]<<16|a[y*64+c*4+2]<<8|a[y*64+c*4+3];S[y]=h}S[w-1][14]=(a.length-1)*8/Math.pow(2,32),S[w-1][14]=Math.floor(S[w-1][14]),S[w-1][15]=(a.length-1)*8&4294967295;for(let y=0;y<w;++y){const h=new Uint32Array(80);for(let b=0;b<16;++b)h[b]=S[y][b];for(let b=16;b<80;++b)h[b]=r(h[b-3]^h[b-8]^h[b-14]^h[b-16],1);let c=l[0],p=l[1],m=l[2],f=l[3],g=l[4];for(let b=0;b<80;++b){const _=Math.floor(b/20),x=r(c,5)+e(_,p,m,f)+g+u[_]+h[b]>>>0;g=f,f=m,m=r(p,30)>>>0,p=c,c=x}l[0]=l[0]+c>>>0,l[1]=l[1]+p>>>0,l[2]=l[2]+m>>>0,l[3]=l[3]+f>>>0,l[4]=l[4]+g>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var o=n;return Fi.default=o,Fi}var gp;function MO(){if(gp)return Li;gp=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.default=void 0;var e=n(Cv()),r=n(IO());function n(u){return u&&u.__esModule?u:{default:u}}var a=(0,e.default)("v5",80,r.default);return Li.default=a,Li}var Di={},yp;function LO(){if(yp)return Di;yp=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Di.default=e,Di}var $i={},wp;function FO(){if(wp)return $i;wp=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.default=void 0;var e=r(Ha());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");return parseInt(a.slice(14,15),16)}var o=n;return $i.default=o,$i}var bp;function DO(){return bp||(bp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var r=y(AO()),n=y(CO()),o=y(RO()),a=y(MO()),u=y(LO()),l=y(FO()),d=y(Ha()),w=y(qa()),S=y(Tv());function y(h){return h&&h.__esModule?h:{default:h}}}(Pu)),Pu}var Ru,Sp;function $O(){if(Sp)return Ru;Sp=1;function e(r,n){if(!r||!n||!r.length||!n.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=n}return e.prototype.convert=function(r){var n,o,a,u={},l=this.srcAlphabet.length,d=this.dstAlphabet.length,w=r.length,S=typeof r=="string"?"":[];if(!this.isValid(r))throw new Error('Number "'+r+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return r;for(n=0;n<w;n++)u[n]=this.srcAlphabet.indexOf(r[n]);do{for(o=0,a=0,n=0;n<w;n++)o=o*l+u[n],o>=d?(u[a++]=parseInt(o/d,10),o=o%d):a>0&&(u[a++]=0);w=a,S=this.dstAlphabet.slice(o,o+1).concat(S)}while(a!==0);return S},e.prototype.isValid=function(r){for(var n=0;n<r.length;++n)if(this.srcAlphabet.indexOf(r[n])===-1)return!1;return!0},Ru=e,Ru}var Iu,Ep;function NO(){if(Ep)return Iu;Ep=1;var e=$O();function r(n,o){var a=new e(n,o);return function(u){return a.convert(u)}}return r.BIN="01",r.OCT="01234567",r.DEC="0123456789",r.HEX="0123456789abcdef",Iu=r,Iu}var Mu,_p;function kO(){if(_p)return Mu;_p=1;const{v4:e,validate:r}=DO(),n=NO(),o={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},a={consistentLength:!0};let u;const l=(S,y,h)=>{const c=y(S.toLowerCase().replace(/-/g,""));return!h||!h.consistentLength?c:c.padStart(h.shortIdLength,h.paddingChar)},d=(S,y)=>{const c=y(S).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[c[1],c[2],c[3],c[4],c[5]].join("-")},w=S=>Math.ceil(Math.log(2**128)/Math.log(S));return Mu=(()=>{const S=(y,h)=>{const c=y||o.flickrBase58,p={...a,...h};if([...new Set(Array.from(c))].length!==c.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const m=w(c.length),f={shortIdLength:m,consistentLength:p.consistentLength,paddingChar:c[0]},g=n(n.HEX,c),b=n(c,n.HEX),_=()=>l(e(),g,f),C={alphabet:c,fromUUID:T=>l(T,g,f),maxLength:m,generate:_,new:_,toUUID:T=>d(T,b),uuid:e,validate:(T,I=!1)=>{if(!T||typeof T!="string")return!1;const H=p.consistentLength?T.length===m:T.length<=m,F=T.split("").every(k=>c.includes(k));return I===!1?H&&F:H&&F&&r(d(T,b))}};return Object.freeze(C),C};return S.constants=o,S.uuid=e,S.generate=()=>(u||(u=S(o.flickrBase58).generate),u()),S})(),Mu}var Dl=kO();const Pv=({depth:e,height:r=24,width:n=11,showLines:o=!0,stroke:a="rgb(241, 245, 249)"})=>{const u=`indent_line_${Dl.generate()}`;return W.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:r,children:[W.jsx("defs",{children:W.jsx("pattern",{id:u,x:"0",y:"0",width:n,height:r,patternUnits:"userSpaceOnUse",children:W.jsx("line",{x1:n/2,y1:"0",x2:n/2,y2:r,stroke:a})})}),o?W.jsx("rect",{fill:`url(#${u})`,x:"0",y:"0",width:`${11*e}`,height:r}):W.jsx("rect",{fill:o?`url(#${u})`:"",x:"0",y:"0",width:0,height:r})]})},Rv=({show:e,expanded:r,onClick:n,variant:o="arrow"})=>e?W.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>n&&n(a),children:(()=>{switch(o){case"arrow":return W.jsx(rt.FdDown,{className:Ye(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":r,"-rotate-90":!r}])});case"caret":return r?W.jsx(rt.FdDown,{}):W.jsx(rt.FdRight,{});default:return W.jsx(rt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):W.jsx("div",{className:"flex h-6 w-3 items-center"}),$l=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:l,onNodeClick:d})=>{var p;const{key:w,children:S}=e,y=U.useMemo(()=>({expanded:n.includes(e.key),selected:o.includes(e.key)}),[n,e.key,o]),h=l&&typeof l=="function"?l(e,r,y,a,u):UO(e,r,y,d);return!((p=e.options)!=null&&p.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?W.jsxs(W.Fragment,{children:[W.jsx("div",{className:"flex items-center space-x-2",children:h},w),WO(S||[],r,u,n,o,y.expanded,a,d,l)]}):null},jO=function(e,r){var l;const{title:n,icon:o,subtitle:a}=e;let u=null;return o&&(u=W.jsx(Ov,{children:o})),W.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{r&&r(e)},children:[u,W.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:n}),a&&W.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},WO=function(e,r,n,o,a,u,l,d,w){return e.length&&u?e.map(S=>W.jsx($l,{actions:l,node:S,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:d,renderNode:w},S.key)):null},UO=function(e,r,n,o){return W.jsxs(W.Fragment,{children:[W.jsx(Pv,{showLines:!0,depth:r}),W.jsx(Rv,{show:e.children&&e.children.length>0||!1,expanded:n.expanded}),jO(e,o)]})},ca=e=>r=>e===r,BO=function({treeData:r,renderNode:n,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:l,expandCondition:d="always",encapsulated:w,className:S}){const[y,h]=U.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));U.useEffect(()=>{d==="when-collapsed"&&y.expandedKeys.length>0||h({...y,expandedKeys:l||y.expandedKeys})},[l]);const c=U.useCallback(b=>{if(!b)return;const _=y.expandedKeys.findIndex(ca(b.key));let x=[];_===-1?(x=[...y.expandedKeys,b.key],h(()=>({...y,expandedKeys:x})),a&&a(x)):(x=y.expandedKeys.filter(C=>C!==b.key),h(()=>({...y,expandedKeys:x})),a&&a(x))},[y]),p=U.useCallback(b=>{var x;if(!((x=b==null?void 0:b.options)!=null&&x.selectable))return;y.selectedKeys.findIndex(ca(b.key))===-1&&h({...y,selectedKeys:[...y.selectedKeys,b.key]})},[y]),m=U.useCallback(b=>{var x;if(!((x=b==null?void 0:b.options)!=null&&x.selectable))return;y.selectedKeys.findIndex(ca(b.key))===-1&&h({...y,selectedKeys:[b.key]})},[y]),f=U.useCallback(b=>{var x;if(!((x=b==null?void 0:b.options)!=null&&x.selectable)){h({...y,selectedKeys:[]});return}y.selectedKeys.findIndex(ca(b.key))!==-1&&h({...y,selectedKeys:y.selectedKeys.filter(C=>C!==b.key)})},[y]),g=U.useMemo(()=>({expand:c,select:p,selectSingle:m,deselect:f}),[f,c,p,m]);return W.jsx("div",{className:Ye("fd-tree",S,{"pl-2 mb-1 rounded border bg-grey-900 p-1":w}),children:r.map(b=>W.jsx($l,{node:b,searchQuery:u||"",depth:0,expandedKeys:y.expandedKeys,selectedKeys:y.selectedKeys,actions:g,renderNode:n,onNodeClick:o},b.key))})};function zO(e){return e.of&&e.children?W.jsx(W.Fragment,{children:e.children}):null}function at(){return at=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},at.apply(null,arguments)}function HO(e){for(var r=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var qO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Iv(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var ZO=/[A-Z]|^ms/g,GO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mv=function(r){return r.charCodeAt(1)===45},xp=function(r){return r!=null&&typeof r!="boolean"},Lu=Iv(function(e){return Mv(e)?e:e.replace(ZO,"-$&").toLowerCase()}),Op=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(GO,function(o,a,u){return fr={name:a,styles:u,next:fr},a})}return qO[r]!==1&&!Mv(r)&&typeof n=="number"&&n!==0?n+"px":n};function ro(e,r,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return fr={name:a.name,styles:a.styles,next:fr},a.name;var u=n;if(u.styles!==void 0){var l=u.next;if(l!==void 0)for(;l!==void 0;)fr={name:l.name,styles:l.styles,next:fr},l=l.next;var d=u.styles+";";return d}return KO(e,r,n)}case"function":{if(e!==void 0){var w=fr,S=n(e);return fr=w,ro(e,r,S)}break}}var y=n;if(r==null)return y;var h=r[y];return h!==void 0?h:y}function KO(e,r,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=ro(e,r,n[a])+";";else for(var u in n){var l=n[u];if(typeof l!="object"){var d=l;r!=null&&r[d]!==void 0?o+=u+"{"+r[d]+"}":xp(d)&&(o+=Lu(u)+":"+Op(u,d)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var w=0;w<l.length;w++)xp(l[w])&&(o+=Lu(u)+":"+Op(u,l[w])+";");else{var S=ro(e,r,l);switch(u){case"animation":case"animationName":{o+=Lu(u)+":"+S+";";break}default:o+=u+"{"+S+"}"}}}return o}var Ap=/label:\s*([^\s;{]+)\s*(;|$)/g,fr;function VO(e,r,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,a="";fr=void 0;var u=e[0];if(u==null||u.raw===void 0)o=!1,a+=ro(n,r,u);else{var l=u;a+=l[0]}for(var d=1;d<e.length;d++)if(a+=ro(n,r,e[d]),o){var w=u;a+=w[d]}Ap.lastIndex=0;for(var S="",y;(y=Ap.exec(a))!==null;)S+="-"+y[1];var h=HO(a)+S;return{name:h,styles:a,next:fr}}var YO=function(r){return r()},XO=$.useInsertionEffect?$.useInsertionEffect:!1,JO=XO||YO,QO=!0;function eA(e,r,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(o+=a+" ")}),o}var Lv=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||QO===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},tA=function(r,n,o){Lv(r,n,o);var a=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var u=n;do r.insert(n===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}},rA=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nA=Iv(function(e){return rA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),iA=nA,oA=function(r){return r!=="theme"},Tp=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?iA:oA},Cp=function(r,n,o){var a;if(n){var u=n.shouldForwardProp;a=r.__emotion_forwardProp&&u?function(l){return r.__emotion_forwardProp(l)&&u(l)}:u}return typeof a!="function"&&o&&(a=r.__emotion_forwardProp),a},aA=function(r){var n=r.cache,o=r.serialized,a=r.isStringTag;return Lv(n,o,a),JO(function(){return tA(n,o,a)}),null},sA=function e(r,n){var o=r.__emotion_real===r,a=o&&r.__emotion_base||r,u,l;n!==void 0&&(u=n.label,l=n.target);var d=Cp(r,n,o),w=d||Tp(a),S=!w("as");return function(){var y=arguments,h=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(u!==void 0&&h.push("label:"+u+";"),y[0]==null||y[0].raw===void 0)h.push.apply(h,y);else{var c=y[0];h.push(c[0]);for(var p=y.length,m=1;m<p;m++)h.push(y[m],c[m])}var f=al.withEmotionCache(function(g,b,_){var x=S&&g.as||a,C="",T=[],I=g;if(g.theme==null){I={};for(var H in g)I[H]=g[H];I.theme=$.useContext(al.ThemeContext)}typeof g.className=="string"?C=eA(b.registered,T,g.className):g.className!=null&&(C=g.className+" ");var F=VO(h.concat(T),b.registered,I);C+=b.key+"-"+F.name,l!==void 0&&(C+=" "+l);var k=S&&d===void 0?Tp(x):w,X={};for(var j in g)S&&j==="as"||k(j)&&(X[j]=g[j]);return X.className=C,_&&(X.ref=_),$.createElement($.Fragment,null,$.createElement(aA,{cache:b,serialized:F,isStringTag:typeof x=="string"}),$.createElement(x,X))});return f.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",f.defaultProps=r.defaultProps,f.__emotion_real=f,f.__emotion_base=a,f.__emotion_styles=h,f.__emotion_forwardProp=d,Object.defineProperty(f,"toString",{value:function(){return"."+l}}),f.withComponent=function(g,b){var _=e(g,at({},n,b,{shouldForwardProp:Cp(f,b,!0)}));return _.apply(void 0,h)},f}},uA=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Da=sA.bind(null);uA.forEach(function(e){Da[e]=Da(e)});var lA=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},Zn=new WeakMap,fa=new WeakMap,da={},Fu=0,Fv=function(e){return e&&(e.host||Fv(e.parentNode))},cA=function(e,r){return r.map(function(n){if(e.contains(n))return n;var o=Fv(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},fA=function(e,r,n,o){var a=cA(r,Array.isArray(e)?e:[e]);da[n]||(da[n]=new WeakMap);var u=da[n],l=[],d=new Set,w=new Set(a),S=function(h){!h||d.has(h)||(d.add(h),S(h.parentNode))};a.forEach(S);var y=function(h){!h||w.has(h)||Array.prototype.forEach.call(h.children,function(c){if(d.has(c))y(c);else try{var p=c.getAttribute(o),m=p!==null&&p!=="false",f=(Zn.get(c)||0)+1,g=(u.get(c)||0)+1;Zn.set(c,f),u.set(c,g),l.push(c),f===1&&m&&fa.set(c,!0),g===1&&c.setAttribute(n,"true"),m||c.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",c,b)}})};return y(r),d.clear(),Fu++,function(){l.forEach(function(h){var c=Zn.get(h)-1,p=u.get(h)-1;Zn.set(h,c),u.set(h,p),c||(fa.has(h)||h.removeAttribute(o),fa.delete(h)),p||h.removeAttribute(n)}),Fu--,Fu||(Zn=new WeakMap,Zn=new WeakMap,fa=new WeakMap,da={})}},dA=function(e,r,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=lA(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live], script"))),fA(o,a,n,"aria-hidden")):function(){return null}},fl=function(e,r){return fl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},fl(e,r)};function Za(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");fl(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var dr=function(){return dr=Object.assign||function(r){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(r[u]=n[u])}return r},dr.apply(this,arguments)};function Dv(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function dl(e){var r=typeof Symbol=="function"&&Symbol.iterator,n=r&&e[r],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function pl(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),a,u=[],l;try{for(;(r===void 0||r-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(d){l={error:d}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return u}function $a(e,r,n){if(n||arguments.length===2)for(var o=0,a=r.length,u;o<a;o++)(u||!(o in r))&&(u||(u=Array.prototype.slice.call(r,0,o)),u[o]=r[o]);return e.concat(u||Array.prototype.slice.call(r))}var Ca="right-scroll-bar-position",Pa="width-before-scroll-bar",pA="with-scroll-bars-hidden",hA="--removed-body-scroll-bar-size";function Du(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function vA(e,r){var n=U.useState(function(){return{value:e,callback:r,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=r,n.facade}var mA=typeof window<"u"?$.useLayoutEffect:$.useEffect,Pp=new WeakMap;function gA(e,r){var n=vA(null,function(o){return e.forEach(function(a){return Du(a,o)})});return mA(function(){var o=Pp.get(n);if(o){var a=new Set(o),u=new Set(e),l=n.current;a.forEach(function(d){u.has(d)||Du(d,null)}),u.forEach(function(d){a.has(d)||Du(d,l)})}Pp.set(n,e)},[e]),n}function yA(e){return e}function wA(e,r){r===void 0&&(r=yA);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var l=r(u,o);return n.push(l),function(){n=n.filter(function(d){return d!==l})}},assignSyncMedium:function(u){for(o=!0;n.length;){var l=n;n=[],l.forEach(u)}n={push:function(d){return u(d)},filter:function(){return n}}},assignMedium:function(u){o=!0;var l=[];if(n.length){var d=n;n=[],d.forEach(u),l=n}var w=function(){var y=l;l=[],y.forEach(u)},S=function(){return Promise.resolve().then(w)};S(),n={push:function(y){l.push(y),S()},filter:function(y){return l=l.filter(y),n}}}};return a}function bA(e){e===void 0&&(e={});var r=wA(null);return r.options=dr({async:!0,ssr:!1},e),r}var $v=function(e){var r=e.sideCar,n=Dv(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return $.createElement(o,dr({},n))};$v.isSideCarExport=!0;function SA(e,r){return e.useMedium(r),$v}var Nv=bA(),$u=function(){},Ga=$.forwardRef(function(e,r){var n=$.useRef(null),o=$.useState({onScrollCapture:$u,onWheelCapture:$u,onTouchMoveCapture:$u}),a=o[0],u=o[1],l=e.forwardProps,d=e.children,w=e.className,S=e.removeScrollBar,y=e.enabled,h=e.shards,c=e.sideCar,p=e.noRelative,m=e.noIsolation,f=e.inert,g=e.allowPinchZoom,b=e.as,_=b===void 0?"div":b,x=e.gapMode,C=Dv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=c,I=gA([n,r]),H=dr(dr({},C),a);return $.createElement($.Fragment,null,y&&$.createElement(T,{sideCar:Nv,removeScrollBar:S,shards:h,noRelative:p,noIsolation:m,inert:f,setCallbacks:u,allowPinchZoom:!!g,lockRef:n,gapMode:x}),l?$.cloneElement($.Children.only(d),dr(dr({},H),{ref:I})):$.createElement(_,dr({},H,{className:w,ref:I}),d))});Ga.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ga.classNames={fullWidth:Pa,zeroRight:Ca};var EA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _A(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=EA();return r&&e.setAttribute("nonce",r),e}function xA(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function OA(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var AA=function(){var e=0,r=null;return{add:function(n){e==0&&(r=_A())&&(xA(r,n),OA(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},TA=function(){var e=AA();return function(r,n){$.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},kv=function(){var e=TA(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},CA={left:0,top:0,right:0,gap:0},Nu=function(e){return parseInt(e||"",10)||0},PA=function(e){var r=window.getComputedStyle(document.body),n=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],a=r[e==="padding"?"paddingRight":"marginRight"];return[Nu(n),Nu(o),Nu(a)]},RA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return CA;var r=PA(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},IA=kv(),Yn="data-scroll-locked",MA=function(e,r,n,o){var a=e.left,u=e.top,l=e.right,d=e.gap;return n===void 0&&(n="margin"),`
18
+ .`.concat(pA,` {
19
19
  overflow: hidden `).concat(o,`;
20
20
  padding-right: `).concat(d,"px ").concat(o,`;
21
21
  }
@@ -49,45 +49,45 @@
49
49
  }
50
50
 
51
51
  body[`).concat(Yn,`] {
52
- `).concat(pA,": ").concat(d,`px;
52
+ `).concat(hA,": ").concat(d,`px;
53
53
  }
54
- `)},Pp=function(){var e=parseInt(document.body.getAttribute(Yn)||"0",10);return isFinite(e)?e:0},IA=function(){$.useEffect(function(){return document.body.setAttribute(Yn,(Pp()+1).toString()),function(){var e=Pp()-1;e<=0?document.body.removeAttribute(Yn):document.body.setAttribute(Yn,e.toString())}},[])},FA=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;IA();var u=$.useMemo(function(){return PA(a)},[a]);return $.createElement(RA,{styles:MA(u,!r,a,n?"":"!important")})},hl=!1;if(typeof window<"u")try{var pa=Object.defineProperty({},"passive",{get:function(){return hl=!0,!0}});window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{hl=!1}var Gn=hl?{passive:!1}:!1,LA=function(e){return e.tagName==="TEXTAREA"},kv=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!LA(e)&&n[r]==="visible")},DA=function(e){return kv(e,"overflowY")},$A=function(e){return kv(e,"overflowX")},Rp=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=jv(e,o);if(a){var u=Wv(e,o),l=u[1],d=u[2];if(l>d)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},NA=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},kA=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},jv=function(e,r){return e==="v"?DA(r):$A(r)},Wv=function(e,r){return e==="v"?NA(r):kA(r)},jA=function(e,r){return e==="h"&&r==="rtl"?-1:1},WA=function(e,r,n,o,a){var u=jA(e,window.getComputedStyle(r).direction),l=u*o,d=n.target,w=r.contains(d),S=!1,y=l>0,h=0,c=0;do{if(!d)break;var p=Wv(e,d),m=p[0],f=p[1],g=p[2],b=f-g-u*m;(m||b)&&jv(e,d)&&(h+=b,c+=m);var _=d.parentNode;d=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!w&&d!==document.body||w&&(r.contains(d)||r===d));return(y&&Math.abs(h)<1||!y&&Math.abs(c)<1)&&(S=!0),S},ha=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mp=function(e){return[e.deltaX,e.deltaY]},Ip=function(e){return e&&"current"in e?e.current:e},UA=function(e,r){return e[0]===r[0]&&e[1]===r[1]},BA=function(e){return`
54
+ `)},Rp=function(){var e=parseInt(document.body.getAttribute(Yn)||"0",10);return isFinite(e)?e:0},LA=function(){$.useEffect(function(){return document.body.setAttribute(Yn,(Rp()+1).toString()),function(){var e=Rp()-1;e<=0?document.body.removeAttribute(Yn):document.body.setAttribute(Yn,e.toString())}},[])},FA=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;LA();var u=$.useMemo(function(){return RA(a)},[a]);return $.createElement(IA,{styles:MA(u,!r,a,n?"":"!important")})},hl=!1;if(typeof window<"u")try{var pa=Object.defineProperty({},"passive",{get:function(){return hl=!0,!0}});window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{hl=!1}var Gn=hl?{passive:!1}:!1,DA=function(e){return e.tagName==="TEXTAREA"},jv=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!DA(e)&&n[r]==="visible")},$A=function(e){return jv(e,"overflowY")},NA=function(e){return jv(e,"overflowX")},Ip=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=Wv(e,o);if(a){var u=Uv(e,o),l=u[1],d=u[2];if(l>d)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},kA=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},jA=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},Wv=function(e,r){return e==="v"?$A(r):NA(r)},Uv=function(e,r){return e==="v"?kA(r):jA(r)},WA=function(e,r){return e==="h"&&r==="rtl"?-1:1},UA=function(e,r,n,o,a){var u=WA(e,window.getComputedStyle(r).direction),l=u*o,d=n.target,w=r.contains(d),S=!1,y=l>0,h=0,c=0;do{if(!d)break;var p=Uv(e,d),m=p[0],f=p[1],g=p[2],b=f-g-u*m;(m||b)&&Wv(e,d)&&(h+=b,c+=m);var _=d.parentNode;d=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!w&&d!==document.body||w&&(r.contains(d)||r===d));return(y&&Math.abs(h)<1||!y&&Math.abs(c)<1)&&(S=!0),S},ha=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mp=function(e){return[e.deltaX,e.deltaY]},Lp=function(e){return e&&"current"in e?e.current:e},BA=function(e,r){return e[0]===r[0]&&e[1]===r[1]},zA=function(e){return`
55
55
  .block-interactivity-`.concat(e,` {pointer-events: none;}
56
56
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
57
- `)},zA=0,Kn=[];function HA(e){var r=$.useRef([]),n=$.useRef([0,0]),o=$.useRef(),a=$.useState(zA++)[0],u=$.useState(Nv)[0],l=$.useRef(e);$.useEffect(function(){l.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var f=$a([e.lockRef.current],(e.shards||[]).map(Ip),!0).filter(Boolean);return f.forEach(function(g){return g.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),f.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=$.useCallback(function(f,g){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!l.current.allowPinchZoom;var b=ha(f),_=n.current,x="deltaX"in f?f.deltaX:_[0]-b[0],C="deltaY"in f?f.deltaY:_[1]-b[1],T,M=f.target,H=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in f&&H==="h"&&M.type==="range")return!1;var L=Rp(H,M);if(!L)return!0;if(L?T=H:(T=H==="v"?"h":"v",L=Rp(H,M)),!L)return!1;if(!o.current&&"changedTouches"in f&&(x||C)&&(o.current=T),!T)return!0;var k=o.current||T;return WA(k,g,f,k==="h"?x:C)},[]),w=$.useCallback(function(f){var g=f;if(!(!Kn.length||Kn[Kn.length-1]!==u)){var b="deltaY"in g?Mp(g):ha(g),_=r.current.filter(function(T){return T.name===g.type&&(T.target===g.target||g.target===T.shadowParent)&&UA(T.delta,b)})[0];if(_&&_.should){g.cancelable&&g.preventDefault();return}if(!_){var x=(l.current.shards||[]).map(Ip).filter(Boolean).filter(function(T){return T.contains(g.target)}),C=x.length>0?d(g,x[0]):!l.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),S=$.useCallback(function(f,g,b,_){var x={name:f,delta:g,target:b,should:_,shadowParent:qA(b)};r.current.push(x),setTimeout(function(){r.current=r.current.filter(function(C){return C!==x})},1)},[]),y=$.useCallback(function(f){n.current=ha(f),o.current=void 0},[]),h=$.useCallback(function(f){S(f.type,Mp(f),f.target,d(f,e.lockRef.current))},[]),c=$.useCallback(function(f){S(f.type,ha(f),f.target,d(f,e.lockRef.current))},[]);$.useEffect(function(){return Kn.push(u),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:c}),document.addEventListener("wheel",w,Gn),document.addEventListener("touchmove",w,Gn),document.addEventListener("touchstart",y,Gn),function(){Kn=Kn.filter(function(f){return f!==u}),document.removeEventListener("wheel",w,Gn),document.removeEventListener("touchmove",w,Gn),document.removeEventListener("touchstart",y,Gn)}},[]);var p=e.removeScrollBar,m=e.inert;return $.createElement($.Fragment,null,m?$.createElement(u,{styles:BA(a)}):null,p?$.createElement(FA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function qA(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const ZA=bA($v,HA);var Uv=$.forwardRef(function(e,r){return $.createElement(Ga,dr({},e,{ref:r,sideCar:ZA}))});Uv.classNames=Ga.classNames;const GA=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},KA=$.useId||(()=>{});let VA=0;function YA(e){const[r,n]=$.useState(KA());return GA(()=>{n(o=>o??String(VA++))},[e]),e||(r?`radix-${r}`:"")}function Bv(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Cn(...e){return $.useCallback(Bv(...e),e)}const zv=$.forwardRef((e,r)=>{const{children:n,...o}=e;return $.Children.toArray(n).some(Fp)?$.createElement($.Fragment,null,$.Children.map(n,a=>Fp(a)?$.createElement(vl,at({},o,{ref:r}),a.props.children):a)):$.createElement(vl,at({},o,{ref:r}),n)});zv.displayName="Slot";const vl=$.forwardRef((e,r)=>{const{children:n,...o}=e;return $.isValidElement(n)?$.cloneElement(n,{...JA(o,n.props),ref:Bv(r,n.ref)}):$.Children.count(n)>1?$.Children.only(null):null});vl.displayName="SlotClone";const XA=({children:e})=>$.createElement($.Fragment,null,e);function Fp(e){return $.isValidElement(e)&&e.type===XA}function JA(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...l)=>{u==null||u(...l),a==null||a(...l)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const oi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:$.forwardRef((n,o)=>{const{asChild:a,...u}=n,l=a?zv:r;return $.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),$.createElement(l,at({},u,{ref:o}))})}),{}),Lp=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},Hv=e=>{const{present:r,children:n}=e,o=function(l){const[d,w]=$.useState(),S=$.useRef({}),y=$.useRef(l),h=$.useRef("none"),c=l?"mounted":"unmounted",[p,m]=function(f,g){return $.useReducer((b,_)=>{const x=g[b][_];return x??b},f)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const f=va(S.current);h.current=p==="mounted"?f:"none"},[p]),Lp(()=>{const f=S.current,g=y.current;if(g!==l){const b=h.current,_=va(f);l?m("MOUNT"):_==="none"||(f==null?void 0:f.display)==="none"?m("UNMOUNT"):m(g&&b!==_?"ANIMATION_OUT":"UNMOUNT"),y.current=l}},[l,m]),Lp(()=>{if(d){const f=b=>{const _=va(S.current).includes(b.animationName);b.target===d&&_&&m("ANIMATION_END")},g=b=>{b.target===d&&(h.current=va(S.current))};return d.addEventListener("animationstart",g),d.addEventListener("animationcancel",f),d.addEventListener("animationend",f),()=>{d.removeEventListener("animationstart",g),d.removeEventListener("animationcancel",f),d.removeEventListener("animationend",f)}}m("ANIMATION_END")},[d,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:$.useCallback(f=>{f&&(S.current=getComputedStyle(f)),w(f)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):$.Children.only(n),u=Cn(o.ref,a.ref);return typeof n=="function"||o.isPresent?$.cloneElement(a,{ref:u}):null};function va(e){return(e==null?void 0:e.animationName)||"none"}Hv.displayName="Presence";let ku=0;function QA(){$.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Dp()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:Dp()),ku++,()=>{ku===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),ku--}},[])}function Dp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const eT=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},qv=$.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...l}=e,d=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,w]=$.useState({});return eT(()=>{w({})},[]),d?so.createPortal($.createElement(oi.div,at({"data-radix-portal":""},l,{ref:r,style:d===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),d):null});function On(e){const r=$.useRef(e);return $.useEffect(()=>{r.current=e}),$.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const $p={bubbles:!1,cancelable:!0},tT=$.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[d,w]=$.useState(null),S=On(a),y=On(u),h=$.useRef(null),c=Cn(r,f=>w(f)),p=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect(()=>{if(o){let f=function(b){if(p.paused||!d)return;const _=b.target;d.contains(_)?h.current=_:vn(h.current,{select:!0})},g=function(b){!p.paused&&d&&(d.contains(b.relatedTarget)||vn(h.current,{select:!0}))};return document.addEventListener("focusin",f),document.addEventListener("focusout",g),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",g)}}},[o,d,p.paused]),$.useEffect(()=>{if(d){jp.add(p);const g=document.activeElement;if(!d.contains(g)){const b=new Event("focusScope.autoFocusOnMount",$p);d.addEventListener("focusScope.autoFocusOnMount",S),d.dispatchEvent(b),b.defaultPrevented||(function(_,{select:x=!1}={}){const C=document.activeElement;for(const T of _)if(vn(T,{select:x}),document.activeElement!==C)return}((f=Np(d),f.filter(_=>_.tagName!=="A")),{select:!0}),document.activeElement===g&&vn(d))}return()=>{d.removeEventListener("focusScope.autoFocusOnMount",S),setTimeout(()=>{const b=new Event("focusScope.autoFocusOnUnmount",$p);d.addEventListener("focusScope.autoFocusOnUnmount",y),d.dispatchEvent(b),b.defaultPrevented||vn(g??document.body,{select:!0}),d.removeEventListener("focusScope.autoFocusOnUnmount",y),jp.remove(p)},0)}}var f},[d,S,y,p]);const m=$.useCallback(f=>{if(!n&&!o||p.paused)return;const g=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,b=document.activeElement;if(g&&b){const _=f.currentTarget,[x,C]=function(T){const M=Np(T),H=kp(M,T),L=kp(M.reverse(),T);return[H,L]}(_);x&&C?f.shiftKey||b!==C?f.shiftKey&&b===x&&(f.preventDefault(),n&&vn(C,{select:!0})):(f.preventDefault(),n&&vn(x,{select:!0})):b===_&&f.preventDefault()}},[n,o,p.paused]);return $.createElement(oi.div,at({tabIndex:-1},l,{ref:c,onKeyDown:m}))});function Np(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function kp(e,r){for(const n of e)if(!rT(n,{upTo:r}))return n}function rT(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function vn(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const jp=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=Wp(e,r),e.unshift(r)},remove(r){var n;e=Wp(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function Wp(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function nT(e){const r=On(e);$.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}const iT=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let Up,ma=0;function oT({disabled:e}){const r=$.useRef(!1);iT(()=>{if(e){let n=function(){ma--,ma===0&&(document.body.style.pointerEvents=Up)},o=function(a){r.current=a.pointerType!=="mouse"};return ma===0&&(Up=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ma++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function En(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const aT=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sT=$.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:d,...w}=e,S=$.useContext(aT),[y,h]=$.useState(null),[,c]=$.useState({}),p=Cn(r,M=>h(M)),m=Array.from(S.layers),[f]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(f),b=y?m.indexOf(y):-1,_=S.layersWithOutsidePointerEventsDisabled.size>0,x=b>=g,C=function(M){const H=On(M),L=$.useRef(!1);return $.useEffect(()=>{const k=j=>{j.target&&!L.current&&zp("dismissableLayer.pointerDownOutside",H,{originalEvent:j}),L.current=!1},X=window.setTimeout(()=>{document.addEventListener("pointerdown",k)},0);return()=>{window.clearTimeout(X),document.removeEventListener("pointerdown",k)}},[H]),{onPointerDownCapture:()=>L.current=!0}}(M=>{const H=M.target,L=[...S.branches].some(k=>k.contains(H));x&&!L&&(a==null||a(M),l==null||l(M),M.defaultPrevented||d==null||d())}),T=function(M){const H=On(M),L=$.useRef(!1);return $.useEffect(()=>{const k=X=>{X.target&&!L.current&&zp("dismissableLayer.focusOutside",H,{originalEvent:X})};return document.addEventListener("focusin",k),()=>document.removeEventListener("focusin",k)},[H]),{onFocusCapture:()=>L.current=!0,onBlurCapture:()=>L.current=!1}}(M=>{const H=M.target;[...S.branches].some(L=>L.contains(H))||(u==null||u(M),l==null||l(M),M.defaultPrevented||d==null||d())});return nT(M=>{b===S.layers.size-1&&(o==null||o(M),M.defaultPrevented||d==null||d())}),oT({disabled:n}),$.useEffect(()=>{y&&(n&&S.layersWithOutsidePointerEventsDisabled.add(y),S.layers.add(y),Bp())},[y,n,S]),$.useEffect(()=>()=>{y&&(S.layers.delete(y),S.layersWithOutsidePointerEventsDisabled.delete(y),Bp())},[y,S]),$.useEffect(()=>{const M=()=>c({});return document.addEventListener("dismissableLayer.update",M),()=>document.removeEventListener("dismissableLayer.update",M)},[]),$.createElement(oi.div,at({},w,{ref:p,style:{pointerEvents:_?x?"auto":"none":void 0,...e.style},onFocusCapture:En(e.onFocusCapture,T.onFocusCapture),onBlurCapture:En(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:En(e.onPointerDownCapture,C.onPointerDownCapture)}))});function Bp(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function zp(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function Hp(e){const[r,n]=$.useState(void 0);return $.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let l,d;if("borderBoxSize"in u){const w=u.borderBoxSize,S=Array.isArray(w)?w[0]:w;l=S.inlineSize,d=S.blockSize}else{const w=e.getBoundingClientRect();l=w.width,d=w.height}n({width:l,height:d})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function uT(e,r){const n=mn.get(e);return n===void 0?(mn.set(e,{rect:{},callbacks:[r]}),mn.size===1&&(ml=requestAnimationFrame(Zv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=mn.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(mn.delete(e),mn.size===0&&cancelAnimationFrame(ml))}}let ml;const mn=new Map;function Zv(){const e=[];mn.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),ml=requestAnimationFrame(Zv)}function lT(e){const[r,n]=$.useState();return $.useEffect(()=>{if(e){const o=uT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Gv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>$.createContext(u));return function(u){const l=(u==null?void 0:u[e])||a;return $.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[function(a,u){const l=$.createContext(u),d=n.length;function w(S){const{scope:y,children:h,...c}=S,p=(y==null?void 0:y[e][d])||l,m=$.useMemo(()=>c,Object.values(c));return $.createElement(p.Provider,{value:m},h)}return n=[...n,u],w.displayName=a+"Provider",[w,function(S,y){const h=(y==null?void 0:y[e][d])||l,c=$.useContext(h);if(c)return c;if(u!==void 0)return u;throw new Error(`\`${S}\` must be used within \`${a}\``)}]},cT(o,...r)]}function cT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((l,{useScope:d,scopeName:w})=>({...l,...d(a)[`__scope${w}`]}),{});return $.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function fT({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:l,alignOffset:d=0,shouldAvoidCollisions:w=!0,collisionBoundariesRect:S,collisionTolerance:y=0}){if(!e||!r||!S)return{popperStyles:dT,arrowStyles:ju};const h=function(H,L,k=0,X=0,j){const F=j?j.height:0,B=qp(L,H,"x"),q=qp(L,H,"y"),R=q.before-k-F,J=q.after+k+F,V=B.before-k-F,te=B.after+k+F;return{top:{start:{x:B.start+X,y:R},center:{x:B.center,y:R},end:{x:B.end-X,y:R}},right:{start:{x:te,y:q.start+X},center:{x:te,y:q.center},end:{x:te,y:q.end-X}},bottom:{start:{x:B.start+X,y:J},center:{x:B.center,y:J},end:{x:B.end-X,y:J}},left:{start:{x:V,y:q.start+X},center:{x:V,y:q.center},end:{x:V,y:q.end-X}}}}(r,e,u,d,n),c=h[a][l];if(w===!1){const H=Zp(c);let L=ju;return n&&(L=Kp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":Gp(r,a,l,o,n)},arrowStyles:L,placedSide:a,placedAlign:l}}const p=DOMRect.fromRect({...r,...c}),m=(f=S,g=y,DOMRect.fromRect({width:f.width-2*g,height:f.height-2*g,x:f.left+g,y:f.top+g}));var f,g;const b=Yp(p,m),_=h[Vp(a)][l],x=function(H,L,k){const X=Vp(H);return L[H]&&!k[X]?X:H}(a,b,Yp(DOMRect.fromRect({...r,..._}),m)),C=function(H,L,k,X,j){const F=k==="top"||k==="bottom",B=F?"left":"top",q=F?"right":"bottom",R=F?"width":"height",J=L[R]>H[R];return(X==="start"||X==="center")&&(j[B]&&J||j[q]&&!J)?"end":(X==="end"||X==="center")&&(j[q]&&J||j[B]&&!J)?"start":X}(r,e,a,l,b),T=Zp(h[x][C]);let M=ju;return n&&(M=Kp({popperSize:r,arrowSize:n,arrowOffset:o,side:x,align:C})),{popperStyles:{...T,"--radix-popper-transform-origin":Gp(r,x,C,o,n)},arrowStyles:M,placedSide:x,placedAlign:C}}function qp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],l=r[a];return{before:o-l,start:o,center:o+(u-l)/2,end:o+u-l,after:o+u}}function Zp(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Gp(e,r,n,o,a){const u=r==="top"||r==="bottom",l=a?a.width:0,d=a?a.height:0,w=l/2+o;let S="",y="";return u?(S={start:`${w}px`,center:"center",end:e.width-w+"px"}[n],y=r==="top"?`${e.height+d}px`:-d+"px"):(S=r==="left"?`${e.width+d}px`:-d+"px",y={start:`${w}px`,center:"center",end:e.height-w+"px"}[n]),`${S} ${y}`}const dT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},ju={position:"absolute",opacity:0};function Kp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,l=(e.height-r.width)/2,d={top:0,right:90,bottom:180,left:-90}[o],w=Math.max(r.width,r.height),S={width:`${w}px`,height:`${w}px`,transform:`rotate(${d}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:pT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(S.left=`${n}px`),a==="center"&&(S.left=`${u}px`),a==="end"&&(S.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(S.top=`${n}px`),a==="center"&&(S.top=`${l}px`),a==="end"&&(S.bottom=`${n}px`)),S}function pT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function Vp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Yp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[Kv,Vv]=Gv("Popper"),[hT,Yv]=Kv("Popper"),vT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=$.useState(null);return $.createElement(hT,{scope:r,anchor:o,onAnchorChange:a},n)},mT=$.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Yv("PopperAnchor",n),l=$.useRef(null),d=Cn(r,l);return $.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:$.createElement(oi.div,at({},a,{ref:d}))}),[gT,xI]=Kv("PopperContent"),yT=$.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:d,avoidCollisions:w=!0,...S}=e,y=Yv("PopperContent",n),[h,c]=$.useState(),p=lT(y.anchor),[m,f]=$.useState(null),g=Hp(m),[b,_]=$.useState(null),x=Hp(b),C=Cn(r,F=>f(F)),T=function(){const[F,B]=$.useState(void 0);return $.useEffect(()=>{let q;function R(){B({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(R,100)}return R(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[]),F}(),M=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:L,placedSide:k,placedAlign:X}=fT({anchorRect:p,popperSize:g,arrowSize:x,arrowOffset:h,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:w,collisionBoundariesRect:M,collisionTolerance:d}),j=k!==void 0;return $.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},$.createElement(gT,{scope:n,arrowStyles:L,onArrowChange:_,onArrowOffsetChange:c},$.createElement(oi.div,at({"data-side":k,"data-align":X},S,{style:{...S.style,animation:j?void 0:"none"},ref:C}))))}),wT=vT,bT=mT,ST=yT;function ET({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:w,onChange:S}){const y=$.useState(w),[h]=y,c=$.useRef(h),p=On(S);return $.useEffect(()=>{c.current!==h&&(p(h),c.current=h)},[h,c,p]),y}({defaultProp:r,onChange:n}),u=e!==void 0,l=u?e:o,d=On(n);return[l,$.useCallback(w=>{if(u){const S=w,y=typeof w=="function"?S(e):w;y!==e&&d(y)}else a(w)},[u,e,a,d])]}const[_T,OI]=Gv("Popover",[Vv]),Nl=Vv(),[xT,co]=_T("Popover"),OT=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,d=Nl(r),w=$.useRef(null),[S,y]=$.useState(!1),[h=!1,c]=ET({prop:o,defaultProp:a,onChange:u});return $.createElement(wT,d,$.createElement(xT,{scope:r,contentId:YA(),triggerRef:w,open:h,onOpenChange:c,onOpenToggle:$.useCallback(()=>c(p=>!p),[c]),hasCustomAnchor:S,onCustomAnchorAdd:$.useCallback(()=>y(!0),[]),onCustomAnchorRemove:$.useCallback(()=>y(!1),[]),modal:l},n))},AT=$.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=co("PopoverTrigger",n),u=Nl(n),l=Cn(r,a.triggerRef),d=$.createElement(oi.button,at({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Jv(a.open)},o,{ref:l,onClick:En(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?d:$.createElement(bT,at({asChild:!0},u),d)}),TT=$.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=co("PopoverContent",e.__scopePopover);return $.createElement(Hv,{present:n||a.open},a.modal?$.createElement(CT,at({},o,{ref:r})):$.createElement(PT,at({},o,{ref:r})))}),CT=$.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=co("PopoverContent",e.__scopePopover),l=$.useRef(null),d=Cn(r,l),w=$.useRef(!1);$.useEffect(()=>{const y=l.current;if(y)return fA(y)},[]);const S=o?qv:$.Fragment;return $.createElement(S,null,$.createElement(Uv,{allowPinchZoom:n},$.createElement(Xv,at({},a,{ref:d,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:En(e.onCloseAutoFocus,y=>{var h;y.preventDefault(),w.current||(h=u.triggerRef.current)===null||h===void 0||h.focus()}),onPointerDownOutside:En(e.onPointerDownOutside,y=>{const h=y.detail.originalEvent,c=h.button===0&&h.ctrlKey===!0,p=h.button===2||c;w.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:En(e.onFocusOutside,y=>y.preventDefault(),{checkForDefaultPrevented:!1})}))))}),PT=$.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=co("PopoverContent",e.__scopePopover),u=$.useRef(!1),l=n?qv:$.Fragment;return $.createElement(l,null,$.createElement(Xv,at({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var w,S;(w=e.onCloseAutoFocus)===null||w===void 0||w.call(e,d),d.defaultPrevented||(u.current||(S=a.triggerRef.current)===null||S===void 0||S.focus(),d.preventDefault()),u.current=!1},onInteractOutside:d=>{var w,S;(w=e.onInteractOutside)===null||w===void 0||w.call(e,d),d.defaultPrevented||(u.current=!0);const y=d.target;!((S=a.triggerRef.current)===null||S===void 0)&&S.contains(y)&&d.preventDefault()}})))}),Xv=$.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:w,onFocusOutside:S,onInteractOutside:y,...h}=e,c=co("PopoverContent",n),p=Nl(n);return QA(),$.createElement(tT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},$.createElement(sT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:y,onEscapeKeyDown:d,onPointerDownOutside:w,onFocusOutside:S,onDismiss:()=>c.onOpenChange(!1)},$.createElement(ST,at({"data-state":Jv(c.open),role:"dialog",id:c.contentId},p,h,{ref:r,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Jv(e){return e?"open":"closed"}const RT=OT,MT=AT,IT=TT;var Ra=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ra||{}),Wu={},Ni={},ga={},ya={},wa={exports:{}},ba={exports:{}},Me={};/** @license React v16.13.1
57
+ `)},HA=0,Kn=[];function qA(e){var r=$.useRef([]),n=$.useRef([0,0]),o=$.useRef(),a=$.useState(HA++)[0],u=$.useState(kv)[0],l=$.useRef(e);$.useEffect(function(){l.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var f=$a([e.lockRef.current],(e.shards||[]).map(Lp),!0).filter(Boolean);return f.forEach(function(g){return g.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),f.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=$.useCallback(function(f,g){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!l.current.allowPinchZoom;var b=ha(f),_=n.current,x="deltaX"in f?f.deltaX:_[0]-b[0],C="deltaY"in f?f.deltaY:_[1]-b[1],T,I=f.target,H=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in f&&H==="h"&&I.type==="range")return!1;var F=Ip(H,I);if(!F)return!0;if(F?T=H:(T=H==="v"?"h":"v",F=Ip(H,I)),!F)return!1;if(!o.current&&"changedTouches"in f&&(x||C)&&(o.current=T),!T)return!0;var k=o.current||T;return UA(k,g,f,k==="h"?x:C)},[]),w=$.useCallback(function(f){var g=f;if(!(!Kn.length||Kn[Kn.length-1]!==u)){var b="deltaY"in g?Mp(g):ha(g),_=r.current.filter(function(T){return T.name===g.type&&(T.target===g.target||g.target===T.shadowParent)&&BA(T.delta,b)})[0];if(_&&_.should){g.cancelable&&g.preventDefault();return}if(!_){var x=(l.current.shards||[]).map(Lp).filter(Boolean).filter(function(T){return T.contains(g.target)}),C=x.length>0?d(g,x[0]):!l.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),S=$.useCallback(function(f,g,b,_){var x={name:f,delta:g,target:b,should:_,shadowParent:ZA(b)};r.current.push(x),setTimeout(function(){r.current=r.current.filter(function(C){return C!==x})},1)},[]),y=$.useCallback(function(f){n.current=ha(f),o.current=void 0},[]),h=$.useCallback(function(f){S(f.type,Mp(f),f.target,d(f,e.lockRef.current))},[]),c=$.useCallback(function(f){S(f.type,ha(f),f.target,d(f,e.lockRef.current))},[]);$.useEffect(function(){return Kn.push(u),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:c}),document.addEventListener("wheel",w,Gn),document.addEventListener("touchmove",w,Gn),document.addEventListener("touchstart",y,Gn),function(){Kn=Kn.filter(function(f){return f!==u}),document.removeEventListener("wheel",w,Gn),document.removeEventListener("touchmove",w,Gn),document.removeEventListener("touchstart",y,Gn)}},[]);var p=e.removeScrollBar,m=e.inert;return $.createElement($.Fragment,null,m?$.createElement(u,{styles:zA(a)}):null,p?$.createElement(FA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ZA(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const GA=SA(Nv,qA);var Bv=$.forwardRef(function(e,r){return $.createElement(Ga,dr({},e,{ref:r,sideCar:GA}))});Bv.classNames=Ga.classNames;const KA=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},VA=$.useId||(()=>{});let YA=0;function XA(e){const[r,n]=$.useState(VA());return KA(()=>{n(o=>o??String(YA++))},[e]),e||(r?`radix-${r}`:"")}function zv(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Cn(...e){return $.useCallback(zv(...e),e)}const Hv=$.forwardRef((e,r)=>{const{children:n,...o}=e;return $.Children.toArray(n).some(Fp)?$.createElement($.Fragment,null,$.Children.map(n,a=>Fp(a)?$.createElement(vl,at({},o,{ref:r}),a.props.children):a)):$.createElement(vl,at({},o,{ref:r}),n)});Hv.displayName="Slot";const vl=$.forwardRef((e,r)=>{const{children:n,...o}=e;return $.isValidElement(n)?$.cloneElement(n,{...QA(o,n.props),ref:zv(r,n.ref)}):$.Children.count(n)>1?$.Children.only(null):null});vl.displayName="SlotClone";const JA=({children:e})=>$.createElement($.Fragment,null,e);function Fp(e){return $.isValidElement(e)&&e.type===JA}function QA(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...l)=>{u==null||u(...l),a==null||a(...l)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const oi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:$.forwardRef((n,o)=>{const{asChild:a,...u}=n,l=a?Hv:r;return $.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),$.createElement(l,at({},u,{ref:o}))})}),{}),Dp=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},qv=e=>{const{present:r,children:n}=e,o=function(l){const[d,w]=$.useState(),S=$.useRef({}),y=$.useRef(l),h=$.useRef("none"),c=l?"mounted":"unmounted",[p,m]=function(f,g){return $.useReducer((b,_)=>{const x=g[b][_];return x??b},f)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const f=va(S.current);h.current=p==="mounted"?f:"none"},[p]),Dp(()=>{const f=S.current,g=y.current;if(g!==l){const b=h.current,_=va(f);l?m("MOUNT"):_==="none"||(f==null?void 0:f.display)==="none"?m("UNMOUNT"):m(g&&b!==_?"ANIMATION_OUT":"UNMOUNT"),y.current=l}},[l,m]),Dp(()=>{if(d){const f=b=>{const _=va(S.current).includes(b.animationName);b.target===d&&_&&m("ANIMATION_END")},g=b=>{b.target===d&&(h.current=va(S.current))};return d.addEventListener("animationstart",g),d.addEventListener("animationcancel",f),d.addEventListener("animationend",f),()=>{d.removeEventListener("animationstart",g),d.removeEventListener("animationcancel",f),d.removeEventListener("animationend",f)}}m("ANIMATION_END")},[d,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:$.useCallback(f=>{f&&(S.current=getComputedStyle(f)),w(f)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):$.Children.only(n),u=Cn(o.ref,a.ref);return typeof n=="function"||o.isPresent?$.cloneElement(a,{ref:u}):null};function va(e){return(e==null?void 0:e.animationName)||"none"}qv.displayName="Presence";let ku=0;function eT(){$.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:$p()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:$p()),ku++,()=>{ku===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),ku--}},[])}function $p(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const tT=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},Zv=$.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...l}=e,d=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,w]=$.useState({});return tT(()=>{w({})},[]),d?so.createPortal($.createElement(oi.div,at({"data-radix-portal":""},l,{ref:r,style:d===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),d):null});function On(e){const r=$.useRef(e);return $.useEffect(()=>{r.current=e}),$.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const Np={bubbles:!1,cancelable:!0},rT=$.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[d,w]=$.useState(null),S=On(a),y=On(u),h=$.useRef(null),c=Cn(r,f=>w(f)),p=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect(()=>{if(o){let f=function(b){if(p.paused||!d)return;const _=b.target;d.contains(_)?h.current=_:vn(h.current,{select:!0})},g=function(b){!p.paused&&d&&(d.contains(b.relatedTarget)||vn(h.current,{select:!0}))};return document.addEventListener("focusin",f),document.addEventListener("focusout",g),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",g)}}},[o,d,p.paused]),$.useEffect(()=>{if(d){Wp.add(p);const g=document.activeElement;if(!d.contains(g)){const b=new Event("focusScope.autoFocusOnMount",Np);d.addEventListener("focusScope.autoFocusOnMount",S),d.dispatchEvent(b),b.defaultPrevented||(function(_,{select:x=!1}={}){const C=document.activeElement;for(const T of _)if(vn(T,{select:x}),document.activeElement!==C)return}((f=kp(d),f.filter(_=>_.tagName!=="A")),{select:!0}),document.activeElement===g&&vn(d))}return()=>{d.removeEventListener("focusScope.autoFocusOnMount",S),setTimeout(()=>{const b=new Event("focusScope.autoFocusOnUnmount",Np);d.addEventListener("focusScope.autoFocusOnUnmount",y),d.dispatchEvent(b),b.defaultPrevented||vn(g??document.body,{select:!0}),d.removeEventListener("focusScope.autoFocusOnUnmount",y),Wp.remove(p)},0)}}var f},[d,S,y,p]);const m=$.useCallback(f=>{if(!n&&!o||p.paused)return;const g=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,b=document.activeElement;if(g&&b){const _=f.currentTarget,[x,C]=function(T){const I=kp(T),H=jp(I,T),F=jp(I.reverse(),T);return[H,F]}(_);x&&C?f.shiftKey||b!==C?f.shiftKey&&b===x&&(f.preventDefault(),n&&vn(C,{select:!0})):(f.preventDefault(),n&&vn(x,{select:!0})):b===_&&f.preventDefault()}},[n,o,p.paused]);return $.createElement(oi.div,at({tabIndex:-1},l,{ref:c,onKeyDown:m}))});function kp(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function jp(e,r){for(const n of e)if(!nT(n,{upTo:r}))return n}function nT(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function vn(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const Wp=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=Up(e,r),e.unshift(r)},remove(r){var n;e=Up(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function Up(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function iT(e){const r=On(e);$.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}const oT=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let Bp,ma=0;function aT({disabled:e}){const r=$.useRef(!1);oT(()=>{if(e){let n=function(){ma--,ma===0&&(document.body.style.pointerEvents=Bp)},o=function(a){r.current=a.pointerType!=="mouse"};return ma===0&&(Bp=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ma++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function En(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const sT=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),uT=$.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:d,...w}=e,S=$.useContext(sT),[y,h]=$.useState(null),[,c]=$.useState({}),p=Cn(r,I=>h(I)),m=Array.from(S.layers),[f]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(f),b=y?m.indexOf(y):-1,_=S.layersWithOutsidePointerEventsDisabled.size>0,x=b>=g,C=function(I){const H=On(I),F=$.useRef(!1);return $.useEffect(()=>{const k=j=>{j.target&&!F.current&&Hp("dismissableLayer.pointerDownOutside",H,{originalEvent:j}),F.current=!1},X=window.setTimeout(()=>{document.addEventListener("pointerdown",k)},0);return()=>{window.clearTimeout(X),document.removeEventListener("pointerdown",k)}},[H]),{onPointerDownCapture:()=>F.current=!0}}(I=>{const H=I.target,F=[...S.branches].some(k=>k.contains(H));x&&!F&&(a==null||a(I),l==null||l(I),I.defaultPrevented||d==null||d())}),T=function(I){const H=On(I),F=$.useRef(!1);return $.useEffect(()=>{const k=X=>{X.target&&!F.current&&Hp("dismissableLayer.focusOutside",H,{originalEvent:X})};return document.addEventListener("focusin",k),()=>document.removeEventListener("focusin",k)},[H]),{onFocusCapture:()=>F.current=!0,onBlurCapture:()=>F.current=!1}}(I=>{const H=I.target;[...S.branches].some(F=>F.contains(H))||(u==null||u(I),l==null||l(I),I.defaultPrevented||d==null||d())});return iT(I=>{b===S.layers.size-1&&(o==null||o(I),I.defaultPrevented||d==null||d())}),aT({disabled:n}),$.useEffect(()=>{y&&(n&&S.layersWithOutsidePointerEventsDisabled.add(y),S.layers.add(y),zp())},[y,n,S]),$.useEffect(()=>()=>{y&&(S.layers.delete(y),S.layersWithOutsidePointerEventsDisabled.delete(y),zp())},[y,S]),$.useEffect(()=>{const I=()=>c({});return document.addEventListener("dismissableLayer.update",I),()=>document.removeEventListener("dismissableLayer.update",I)},[]),$.createElement(oi.div,at({},w,{ref:p,style:{pointerEvents:_?x?"auto":"none":void 0,...e.style},onFocusCapture:En(e.onFocusCapture,T.onFocusCapture),onBlurCapture:En(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:En(e.onPointerDownCapture,C.onPointerDownCapture)}))});function zp(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Hp(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function qp(e){const[r,n]=$.useState(void 0);return $.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let l,d;if("borderBoxSize"in u){const w=u.borderBoxSize,S=Array.isArray(w)?w[0]:w;l=S.inlineSize,d=S.blockSize}else{const w=e.getBoundingClientRect();l=w.width,d=w.height}n({width:l,height:d})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function lT(e,r){const n=mn.get(e);return n===void 0?(mn.set(e,{rect:{},callbacks:[r]}),mn.size===1&&(ml=requestAnimationFrame(Gv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=mn.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(mn.delete(e),mn.size===0&&cancelAnimationFrame(ml))}}let ml;const mn=new Map;function Gv(){const e=[];mn.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),ml=requestAnimationFrame(Gv)}function cT(e){const[r,n]=$.useState();return $.useEffect(()=>{if(e){const o=lT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Kv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>$.createContext(u));return function(u){const l=(u==null?void 0:u[e])||a;return $.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[function(a,u){const l=$.createContext(u),d=n.length;function w(S){const{scope:y,children:h,...c}=S,p=(y==null?void 0:y[e][d])||l,m=$.useMemo(()=>c,Object.values(c));return $.createElement(p.Provider,{value:m},h)}return n=[...n,u],w.displayName=a+"Provider",[w,function(S,y){const h=(y==null?void 0:y[e][d])||l,c=$.useContext(h);if(c)return c;if(u!==void 0)return u;throw new Error(`\`${S}\` must be used within \`${a}\``)}]},fT(o,...r)]}function fT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((l,{useScope:d,scopeName:w})=>({...l,...d(a)[`__scope${w}`]}),{});return $.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function dT({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:l,alignOffset:d=0,shouldAvoidCollisions:w=!0,collisionBoundariesRect:S,collisionTolerance:y=0}){if(!e||!r||!S)return{popperStyles:pT,arrowStyles:ju};const h=function(H,F,k=0,X=0,j){const L=j?j.height:0,B=Zp(F,H,"x"),q=Zp(F,H,"y"),R=q.before-k-L,J=q.after+k+L,V=B.before-k-L,te=B.after+k+L;return{top:{start:{x:B.start+X,y:R},center:{x:B.center,y:R},end:{x:B.end-X,y:R}},right:{start:{x:te,y:q.start+X},center:{x:te,y:q.center},end:{x:te,y:q.end-X}},bottom:{start:{x:B.start+X,y:J},center:{x:B.center,y:J},end:{x:B.end-X,y:J}},left:{start:{x:V,y:q.start+X},center:{x:V,y:q.center},end:{x:V,y:q.end-X}}}}(r,e,u,d,n),c=h[a][l];if(w===!1){const H=Gp(c);let F=ju;return n&&(F=Vp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":Kp(r,a,l,o,n)},arrowStyles:F,placedSide:a,placedAlign:l}}const p=DOMRect.fromRect({...r,...c}),m=(f=S,g=y,DOMRect.fromRect({width:f.width-2*g,height:f.height-2*g,x:f.left+g,y:f.top+g}));var f,g;const b=Xp(p,m),_=h[Yp(a)][l],x=function(H,F,k){const X=Yp(H);return F[H]&&!k[X]?X:H}(a,b,Xp(DOMRect.fromRect({...r,..._}),m)),C=function(H,F,k,X,j){const L=k==="top"||k==="bottom",B=L?"left":"top",q=L?"right":"bottom",R=L?"width":"height",J=F[R]>H[R];return(X==="start"||X==="center")&&(j[B]&&J||j[q]&&!J)?"end":(X==="end"||X==="center")&&(j[q]&&J||j[B]&&!J)?"start":X}(r,e,a,l,b),T=Gp(h[x][C]);let I=ju;return n&&(I=Vp({popperSize:r,arrowSize:n,arrowOffset:o,side:x,align:C})),{popperStyles:{...T,"--radix-popper-transform-origin":Kp(r,x,C,o,n)},arrowStyles:I,placedSide:x,placedAlign:C}}function Zp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],l=r[a];return{before:o-l,start:o,center:o+(u-l)/2,end:o+u-l,after:o+u}}function Gp(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Kp(e,r,n,o,a){const u=r==="top"||r==="bottom",l=a?a.width:0,d=a?a.height:0,w=l/2+o;let S="",y="";return u?(S={start:`${w}px`,center:"center",end:e.width-w+"px"}[n],y=r==="top"?`${e.height+d}px`:-d+"px"):(S=r==="left"?`${e.width+d}px`:-d+"px",y={start:`${w}px`,center:"center",end:e.height-w+"px"}[n]),`${S} ${y}`}const pT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},ju={position:"absolute",opacity:0};function Vp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,l=(e.height-r.width)/2,d={top:0,right:90,bottom:180,left:-90}[o],w=Math.max(r.width,r.height),S={width:`${w}px`,height:`${w}px`,transform:`rotate(${d}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:hT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(S.left=`${n}px`),a==="center"&&(S.left=`${u}px`),a==="end"&&(S.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(S.top=`${n}px`),a==="center"&&(S.top=`${l}px`),a==="end"&&(S.bottom=`${n}px`)),S}function hT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function Yp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Xp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[Vv,Yv]=Kv("Popper"),[vT,Xv]=Vv("Popper"),mT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=$.useState(null);return $.createElement(vT,{scope:r,anchor:o,onAnchorChange:a},n)},gT=$.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Xv("PopperAnchor",n),l=$.useRef(null),d=Cn(r,l);return $.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:$.createElement(oi.div,at({},a,{ref:d}))}),[yT,OM]=Vv("PopperContent"),wT=$.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:d,avoidCollisions:w=!0,...S}=e,y=Xv("PopperContent",n),[h,c]=$.useState(),p=cT(y.anchor),[m,f]=$.useState(null),g=qp(m),[b,_]=$.useState(null),x=qp(b),C=Cn(r,L=>f(L)),T=function(){const[L,B]=$.useState(void 0);return $.useEffect(()=>{let q;function R(){B({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(R,100)}return R(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[]),L}(),I=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:F,placedSide:k,placedAlign:X}=dT({anchorRect:p,popperSize:g,arrowSize:x,arrowOffset:h,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:w,collisionBoundariesRect:I,collisionTolerance:d}),j=k!==void 0;return $.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},$.createElement(yT,{scope:n,arrowStyles:F,onArrowChange:_,onArrowOffsetChange:c},$.createElement(oi.div,at({"data-side":k,"data-align":X},S,{style:{...S.style,animation:j?void 0:"none"},ref:C}))))}),bT=mT,ST=gT,ET=wT;function _T({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:w,onChange:S}){const y=$.useState(w),[h]=y,c=$.useRef(h),p=On(S);return $.useEffect(()=>{c.current!==h&&(p(h),c.current=h)},[h,c,p]),y}({defaultProp:r,onChange:n}),u=e!==void 0,l=u?e:o,d=On(n);return[l,$.useCallback(w=>{if(u){const S=w,y=typeof w=="function"?S(e):w;y!==e&&d(y)}else a(w)},[u,e,a,d])]}const[xT,AM]=Kv("Popover",[Yv]),Nl=Yv(),[OT,co]=xT("Popover"),AT=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,d=Nl(r),w=$.useRef(null),[S,y]=$.useState(!1),[h=!1,c]=_T({prop:o,defaultProp:a,onChange:u});return $.createElement(bT,d,$.createElement(OT,{scope:r,contentId:XA(),triggerRef:w,open:h,onOpenChange:c,onOpenToggle:$.useCallback(()=>c(p=>!p),[c]),hasCustomAnchor:S,onCustomAnchorAdd:$.useCallback(()=>y(!0),[]),onCustomAnchorRemove:$.useCallback(()=>y(!1),[]),modal:l},n))},TT=$.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=co("PopoverTrigger",n),u=Nl(n),l=Cn(r,a.triggerRef),d=$.createElement(oi.button,at({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Qv(a.open)},o,{ref:l,onClick:En(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?d:$.createElement(ST,at({asChild:!0},u),d)}),CT=$.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=co("PopoverContent",e.__scopePopover);return $.createElement(qv,{present:n||a.open},a.modal?$.createElement(PT,at({},o,{ref:r})):$.createElement(RT,at({},o,{ref:r})))}),PT=$.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=co("PopoverContent",e.__scopePopover),l=$.useRef(null),d=Cn(r,l),w=$.useRef(!1);$.useEffect(()=>{const y=l.current;if(y)return dA(y)},[]);const S=o?Zv:$.Fragment;return $.createElement(S,null,$.createElement(Bv,{allowPinchZoom:n},$.createElement(Jv,at({},a,{ref:d,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:En(e.onCloseAutoFocus,y=>{var h;y.preventDefault(),w.current||(h=u.triggerRef.current)===null||h===void 0||h.focus()}),onPointerDownOutside:En(e.onPointerDownOutside,y=>{const h=y.detail.originalEvent,c=h.button===0&&h.ctrlKey===!0,p=h.button===2||c;w.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:En(e.onFocusOutside,y=>y.preventDefault(),{checkForDefaultPrevented:!1})}))))}),RT=$.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=co("PopoverContent",e.__scopePopover),u=$.useRef(!1),l=n?Zv:$.Fragment;return $.createElement(l,null,$.createElement(Jv,at({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var w,S;(w=e.onCloseAutoFocus)===null||w===void 0||w.call(e,d),d.defaultPrevented||(u.current||(S=a.triggerRef.current)===null||S===void 0||S.focus(),d.preventDefault()),u.current=!1},onInteractOutside:d=>{var w,S;(w=e.onInteractOutside)===null||w===void 0||w.call(e,d),d.defaultPrevented||(u.current=!0);const y=d.target;!((S=a.triggerRef.current)===null||S===void 0)&&S.contains(y)&&d.preventDefault()}})))}),Jv=$.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:w,onFocusOutside:S,onInteractOutside:y,...h}=e,c=co("PopoverContent",n),p=Nl(n);return eT(),$.createElement(rT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},$.createElement(uT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:y,onEscapeKeyDown:d,onPointerDownOutside:w,onFocusOutside:S,onDismiss:()=>c.onOpenChange(!1)},$.createElement(ET,at({"data-state":Qv(c.open),role:"dialog",id:c.contentId},p,h,{ref:r,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Qv(e){return e?"open":"closed"}const IT=AT,MT=TT,LT=CT;var Ra=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ra||{}),Wu={},Ni={},ga={},ya={},wa={exports:{}},ba={exports:{}},Ie={};/** @license React v16.13.1
58
58
  * react-is.production.min.js
59
59
  *
60
60
  * Copyright (c) Facebook, Inc. and its affiliates.
61
61
  *
62
62
  * This source code is licensed under the MIT license found in the
63
63
  * LICENSE file in the root directory of this source tree.
64
- */var Xp;function FT(){if(Xp)return Me;Xp=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,w=e?Symbol.for("react.async_mode"):60111,S=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,c=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(T){if(typeof T=="object"&&T!==null){var M=T.$$typeof;switch(M){case r:switch(T=T.type,T){case w:case S:case o:case u:case a:case h:return T;default:switch(T=T&&T.$$typeof,T){case d:case y:case m:case p:case l:return T;default:return M}}case n:return M}}}function C(T){return x(T)===S}return Me.AsyncMode=w,Me.ConcurrentMode=S,Me.ContextConsumer=d,Me.ContextProvider=l,Me.Element=r,Me.ForwardRef=y,Me.Fragment=o,Me.Lazy=m,Me.Memo=p,Me.Portal=n,Me.Profiler=u,Me.StrictMode=a,Me.Suspense=h,Me.isAsyncMode=function(T){return C(T)||x(T)===w},Me.isConcurrentMode=C,Me.isContextConsumer=function(T){return x(T)===d},Me.isContextProvider=function(T){return x(T)===l},Me.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===r},Me.isForwardRef=function(T){return x(T)===y},Me.isFragment=function(T){return x(T)===o},Me.isLazy=function(T){return x(T)===m},Me.isMemo=function(T){return x(T)===p},Me.isPortal=function(T){return x(T)===n},Me.isProfiler=function(T){return x(T)===u},Me.isStrictMode=function(T){return x(T)===a},Me.isSuspense=function(T){return x(T)===h},Me.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===S||T===u||T===a||T===h||T===c||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===p||T.$$typeof===l||T.$$typeof===d||T.$$typeof===y||T.$$typeof===g||T.$$typeof===b||T.$$typeof===_||T.$$typeof===f)},Me.typeOf=x,Me}var Ie={};/** @license React v16.13.1
64
+ */var Jp;function FT(){if(Jp)return Ie;Jp=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,w=e?Symbol.for("react.async_mode"):60111,S=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,c=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(T){if(typeof T=="object"&&T!==null){var I=T.$$typeof;switch(I){case r:switch(T=T.type,T){case w:case S:case o:case u:case a:case h:return T;default:switch(T=T&&T.$$typeof,T){case d:case y:case m:case p:case l:return T;default:return I}}case n:return I}}}function C(T){return x(T)===S}return Ie.AsyncMode=w,Ie.ConcurrentMode=S,Ie.ContextConsumer=d,Ie.ContextProvider=l,Ie.Element=r,Ie.ForwardRef=y,Ie.Fragment=o,Ie.Lazy=m,Ie.Memo=p,Ie.Portal=n,Ie.Profiler=u,Ie.StrictMode=a,Ie.Suspense=h,Ie.isAsyncMode=function(T){return C(T)||x(T)===w},Ie.isConcurrentMode=C,Ie.isContextConsumer=function(T){return x(T)===d},Ie.isContextProvider=function(T){return x(T)===l},Ie.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===r},Ie.isForwardRef=function(T){return x(T)===y},Ie.isFragment=function(T){return x(T)===o},Ie.isLazy=function(T){return x(T)===m},Ie.isMemo=function(T){return x(T)===p},Ie.isPortal=function(T){return x(T)===n},Ie.isProfiler=function(T){return x(T)===u},Ie.isStrictMode=function(T){return x(T)===a},Ie.isSuspense=function(T){return x(T)===h},Ie.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===S||T===u||T===a||T===h||T===c||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===p||T.$$typeof===l||T.$$typeof===d||T.$$typeof===y||T.$$typeof===g||T.$$typeof===b||T.$$typeof===_||T.$$typeof===f)},Ie.typeOf=x,Ie}var Me={};/** @license React v16.13.1
65
65
  * react-is.development.js
66
66
  *
67
67
  * Copyright (c) Facebook, Inc. and its affiliates.
68
68
  *
69
69
  * This source code is licensed under the MIT license found in the
70
70
  * LICENSE file in the root directory of this source tree.
71
- */var Jp;function LT(){return Jp||(Jp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,w=e?Symbol.for("react.async_mode"):60111,S=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,c=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(ne){return typeof ne=="string"||typeof ne=="function"||ne===o||ne===S||ne===u||ne===a||ne===h||ne===c||typeof ne=="object"&&ne!==null&&(ne.$$typeof===m||ne.$$typeof===p||ne.$$typeof===l||ne.$$typeof===d||ne.$$typeof===y||ne.$$typeof===g||ne.$$typeof===b||ne.$$typeof===_||ne.$$typeof===f)}function C(ne){if(typeof ne=="object"&&ne!==null){var ft=ne.$$typeof;switch(ft){case r:var nt=ne.type;switch(nt){case w:case S:case o:case u:case a:case h:return nt;default:var or=nt&&nt.$$typeof;switch(or){case d:case y:case m:case p:case l:return or;default:return ft}}case n:return ft}}}var T=w,M=S,H=d,L=l,k=r,X=y,j=o,F=m,B=p,q=n,R=u,J=a,V=h,te=!1;function le(ne){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(ne)||C(ne)===w}function Z(ne){return C(ne)===S}function ee(ne){return C(ne)===d}function ae(ne){return C(ne)===l}function ce(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===r}function oe(ne){return C(ne)===y}function fe(ne){return C(ne)===o}function pe(ne){return C(ne)===m}function ye(ne){return C(ne)===p}function ge(ne){return C(ne)===n}function _e(ne){return C(ne)===u}function Ae(ne){return C(ne)===a}function Ue(ne){return C(ne)===h}Ie.AsyncMode=T,Ie.ConcurrentMode=M,Ie.ContextConsumer=H,Ie.ContextProvider=L,Ie.Element=k,Ie.ForwardRef=X,Ie.Fragment=j,Ie.Lazy=F,Ie.Memo=B,Ie.Portal=q,Ie.Profiler=R,Ie.StrictMode=J,Ie.Suspense=V,Ie.isAsyncMode=le,Ie.isConcurrentMode=Z,Ie.isContextConsumer=ee,Ie.isContextProvider=ae,Ie.isElement=ce,Ie.isForwardRef=oe,Ie.isFragment=fe,Ie.isLazy=pe,Ie.isMemo=ye,Ie.isPortal=ge,Ie.isProfiler=_e,Ie.isStrictMode=Ae,Ie.isSuspense=Ue,Ie.isValidElementType=x,Ie.typeOf=C}()),Ie}var Qp;function Qv(){return Qp||(Qp=1,process.env.NODE_ENV==="production"?ba.exports=FT():ba.exports=LT()),ba.exports}/*
71
+ */var Qp;function DT(){return Qp||(Qp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,w=e?Symbol.for("react.async_mode"):60111,S=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,c=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(ne){return typeof ne=="string"||typeof ne=="function"||ne===o||ne===S||ne===u||ne===a||ne===h||ne===c||typeof ne=="object"&&ne!==null&&(ne.$$typeof===m||ne.$$typeof===p||ne.$$typeof===l||ne.$$typeof===d||ne.$$typeof===y||ne.$$typeof===g||ne.$$typeof===b||ne.$$typeof===_||ne.$$typeof===f)}function C(ne){if(typeof ne=="object"&&ne!==null){var dt=ne.$$typeof;switch(dt){case r:var nt=ne.type;switch(nt){case w:case S:case o:case u:case a:case h:return nt;default:var or=nt&&nt.$$typeof;switch(or){case d:case y:case m:case p:case l:return or;default:return dt}}case n:return dt}}}var T=w,I=S,H=d,F=l,k=r,X=y,j=o,L=m,B=p,q=n,R=u,J=a,V=h,te=!1;function le(ne){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(ne)||C(ne)===w}function Z(ne){return C(ne)===S}function ee(ne){return C(ne)===d}function ae(ne){return C(ne)===l}function ce(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===r}function oe(ne){return C(ne)===y}function fe(ne){return C(ne)===o}function pe(ne){return C(ne)===m}function ye(ne){return C(ne)===p}function ge(ne){return C(ne)===n}function _e(ne){return C(ne)===u}function Ae(ne){return C(ne)===a}function Ue(ne){return C(ne)===h}Me.AsyncMode=T,Me.ConcurrentMode=I,Me.ContextConsumer=H,Me.ContextProvider=F,Me.Element=k,Me.ForwardRef=X,Me.Fragment=j,Me.Lazy=L,Me.Memo=B,Me.Portal=q,Me.Profiler=R,Me.StrictMode=J,Me.Suspense=V,Me.isAsyncMode=le,Me.isConcurrentMode=Z,Me.isContextConsumer=ee,Me.isContextProvider=ae,Me.isElement=ce,Me.isForwardRef=oe,Me.isFragment=fe,Me.isLazy=pe,Me.isMemo=ye,Me.isPortal=ge,Me.isProfiler=_e,Me.isStrictMode=Ae,Me.isSuspense=Ue,Me.isValidElementType=x,Me.typeOf=C}()),Me}var eh;function em(){return eh||(eh=1,process.env.NODE_ENV==="production"?ba.exports=FT():ba.exports=DT()),ba.exports}/*
72
72
  object-assign
73
73
  (c) Sindre Sorhus
74
74
  @license MIT
75
- */var Uu,eh;function DT(){if(eh)return Uu;eh=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var l={},d=0;d<10;d++)l["_"+String.fromCharCode(d)]=d;var w=Object.getOwnPropertyNames(l).map(function(y){return l[y]});if(w.join("")!=="0123456789")return!1;var S={};return"abcdefghijklmnopqrst".split("").forEach(function(y){S[y]=y}),Object.keys(Object.assign({},S)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Uu=a()?Object.assign:function(u,l){for(var d,w=o(u),S,y=1;y<arguments.length;y++){d=Object(arguments[y]);for(var h in d)r.call(d,h)&&(w[h]=d[h]);if(e){S=e(d);for(var c=0;c<S.length;c++)n.call(d,S[c])&&(w[S[c]]=d[S[c]])}}return w},Uu}var Bu,th;function kl(){if(th)return Bu;th=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bu=e,Bu}var zu,rh;function em(){return rh||(rh=1,zu=Function.call.bind(Object.prototype.hasOwnProperty)),zu}var Hu,nh;function $T(){if(nh)return Hu;nh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=kl(),n={},o=em();e=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(u,l,d,w,S){if(process.env.NODE_ENV!=="production"){for(var y in u)if(o(u,y)){var h;try{if(typeof u[y]!="function"){var c=Error((w||"React class")+": "+d+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}h=u[y](l,y,w,d,null,r)}catch(m){h=m}if(h&&!(h instanceof Error)&&e((w||"React class")+": type specification of "+d+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var p=S?S():"";e("Failed "+d+" type: "+h.message+(p??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Hu=a,Hu}var qu,ih;function NT(){if(ih)return qu;ih=1;var e=Qv(),r=DT(),n=kl(),o=em(),a=$T(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(d){var w="Warning: "+d;typeof console<"u"&&console.error(w);try{throw new Error(w)}catch{}});function l(){return null}return qu=function(d,w){var S=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function h(Z){var ee=Z&&(S&&Z[S]||Z[y]);if(typeof ee=="function")return ee}var c="<<anonymous>>",p={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:_(),arrayOf:x,element:C(),elementType:T(),instanceOf:M,node:X(),objectOf:L,oneOf:H,oneOfType:k,shape:F,exact:B};function m(Z,ee){return Z===ee?Z!==0||1/Z===1/ee:Z!==Z&&ee!==ee}function f(Z,ee){this.message=Z,this.data=ee&&typeof ee=="object"?ee:{},this.stack=""}f.prototype=Error.prototype;function g(Z){if(process.env.NODE_ENV!=="production")var ee={},ae=0;function ce(fe,pe,ye,ge,_e,Ae,Ue){if(ge=ge||c,Ae=Ae||ye,Ue!==n){if(w){var ne=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ne.name="Invariant Violation",ne}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ft=ge+":"+ye;!ee[ft]&&ae<3&&(u("You are manually calling a React.PropTypes validation function for the `"+Ae+"` prop on `"+ge+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ee[ft]=!0,ae++)}}return pe[ye]==null?fe?pe[ye]===null?new f("The "+_e+" `"+Ae+"` is marked as required "+("in `"+ge+"`, but its value is `null`.")):new f("The "+_e+" `"+Ae+"` is marked as required in "+("`"+ge+"`, but its value is `undefined`.")):null:Z(pe,ye,ge,_e,Ae)}var oe=ce.bind(null,!1);return oe.isRequired=ce.bind(null,!0),oe}function b(Z){function ee(ae,ce,oe,fe,pe,ye){var ge=ae[ce],_e=J(ge);if(_e!==Z){var Ae=V(ge);return new f("Invalid "+fe+" `"+pe+"` of type "+("`"+Ae+"` supplied to `"+oe+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return g(ee)}function _(){return g(l)}function x(Z){function ee(ae,ce,oe,fe,pe){if(typeof Z!="function")return new f("Property `"+pe+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var ye=ae[ce];if(!Array.isArray(ye)){var ge=J(ye);return new f("Invalid "+fe+" `"+pe+"` of type "+("`"+ge+"` supplied to `"+oe+"`, expected an array."))}for(var _e=0;_e<ye.length;_e++){var Ae=Z(ye,_e,oe,fe,pe+"["+_e+"]",n);if(Ae instanceof Error)return Ae}return null}return g(ee)}function C(){function Z(ee,ae,ce,oe,fe){var pe=ee[ae];if(!d(pe)){var ye=J(pe);return new f("Invalid "+oe+" `"+fe+"` of type "+("`"+ye+"` supplied to `"+ce+"`, expected a single ReactElement."))}return null}return g(Z)}function T(){function Z(ee,ae,ce,oe,fe){var pe=ee[ae];if(!e.isValidElementType(pe)){var ye=J(pe);return new f("Invalid "+oe+" `"+fe+"` of type "+("`"+ye+"` supplied to `"+ce+"`, expected a single ReactElement type."))}return null}return g(Z)}function M(Z){function ee(ae,ce,oe,fe,pe){if(!(ae[ce]instanceof Z)){var ye=Z.name||c,ge=le(ae[ce]);return new f("Invalid "+fe+" `"+pe+"` of type "+("`"+ge+"` supplied to `"+oe+"`, expected ")+("instance of `"+ye+"`."))}return null}return g(ee)}function H(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):u("Invalid argument supplied to oneOf, expected an array.")),l;function ee(ae,ce,oe,fe,pe){for(var ye=ae[ce],ge=0;ge<Z.length;ge++)if(m(ye,Z[ge]))return null;var _e=JSON.stringify(Z,function(Ue,ne){var ft=V(ne);return ft==="symbol"?String(ne):ne});return new f("Invalid "+fe+" `"+pe+"` of value `"+String(ye)+"` "+("supplied to `"+oe+"`, expected one of "+_e+"."))}return g(ee)}function L(Z){function ee(ae,ce,oe,fe,pe){if(typeof Z!="function")return new f("Property `"+pe+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var ye=ae[ce],ge=J(ye);if(ge!=="object")return new f("Invalid "+fe+" `"+pe+"` of type "+("`"+ge+"` supplied to `"+oe+"`, expected an object."));for(var _e in ye)if(o(ye,_e)){var Ae=Z(ye,_e,oe,fe,pe+"."+_e,n);if(Ae instanceof Error)return Ae}return null}return g(ee)}function k(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var ee=0;ee<Z.length;ee++){var ae=Z[ee];if(typeof ae!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(ae)+" at index "+ee+"."),l}function ce(oe,fe,pe,ye,ge){for(var _e=[],Ae=0;Ae<Z.length;Ae++){var Ue=Z[Ae],ne=Ue(oe,fe,pe,ye,ge,n);if(ne==null)return null;ne.data&&o(ne.data,"expectedType")&&_e.push(ne.data.expectedType)}var ft=_e.length>0?", expected one of type ["+_e.join(", ")+"]":"";return new f("Invalid "+ye+" `"+ge+"` supplied to "+("`"+pe+"`"+ft+"."))}return g(ce)}function X(){function Z(ee,ae,ce,oe,fe){return q(ee[ae])?null:new f("Invalid "+oe+" `"+fe+"` supplied to "+("`"+ce+"`, expected a ReactNode."))}return g(Z)}function j(Z,ee,ae,ce,oe){return new f((Z||"React class")+": "+ee+" type `"+ae+"."+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function F(Z){function ee(ae,ce,oe,fe,pe){var ye=ae[ce],ge=J(ye);if(ge!=="object")return new f("Invalid "+fe+" `"+pe+"` of type `"+ge+"` "+("supplied to `"+oe+"`, expected `object`."));for(var _e in Z){var Ae=Z[_e];if(typeof Ae!="function")return j(oe,fe,pe,_e,V(Ae));var Ue=Ae(ye,_e,oe,fe,pe+"."+_e,n);if(Ue)return Ue}return null}return g(ee)}function B(Z){function ee(ae,ce,oe,fe,pe){var ye=ae[ce],ge=J(ye);if(ge!=="object")return new f("Invalid "+fe+" `"+pe+"` of type `"+ge+"` "+("supplied to `"+oe+"`, expected `object`."));var _e=r({},ae[ce],Z);for(var Ae in _e){var Ue=Z[Ae];if(o(Z,Ae)&&typeof Ue!="function")return j(oe,fe,pe,Ae,V(Ue));if(!Ue)return new f("Invalid "+fe+" `"+pe+"` key `"+Ae+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(ae[ce],null," ")+`
76
- Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ne=Ue(ye,Ae,oe,fe,pe+"."+Ae,n);if(ne)return ne}return null}return g(ee)}function q(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(q);if(Z===null||d(Z))return!0;var ee=h(Z);if(ee){var ae=ee.call(Z),ce;if(ee!==Z.entries){for(;!(ce=ae.next()).done;)if(!q(ce.value))return!1}else for(;!(ce=ae.next()).done;){var oe=ce.value;if(oe&&!q(oe[1]))return!1}}else return!1;return!0;default:return!1}}function R(Z,ee){return Z==="symbol"?!0:ee?ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ee instanceof Symbol:!1}function J(Z){var ee=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":R(ee,Z)?"symbol":ee}function V(Z){if(typeof Z>"u"||Z===null)return""+Z;var ee=J(Z);if(ee==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return ee}function te(Z){var ee=V(Z);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function le(Z){return!Z.constructor||!Z.constructor.name?c:Z.constructor.name}return p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},qu}var Zu,oh;function kT(){if(oh)return Zu;oh=1;var e=kl();function r(){}function n(){}return n.resetWarningCache=r,Zu=function(){function o(l,d,w,S,y,h){if(h!==e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return u.PropTypes=u,u},Zu}var ah;function jT(){if(ah)return wa.exports;if(ah=1,process.env.NODE_ENV!=="production"){var e=Qv(),r=!0;wa.exports=NT()(e.isElement,r)}else wa.exports=kT()();return wa.exports}var sh;function WT(){return sh||(sh=1,function(e){(function(r,n){n(e,U,jT())})(ya,function(r,n,o){Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=m;var a=l(n),u=l(o);function l(_){return _&&_.__esModule?_:{default:_}}var d=Object.assign||function(_){for(var x=1;x<arguments.length;x++){var C=arguments[x];for(var T in C)Object.prototype.hasOwnProperty.call(C,T)&&(_[T]=C[T])}return _};function w(_,x){var C={};for(var T in _)x.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(_,T)&&(C[T]=_[T]);return C}function S(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}var y=function(){function _(x,C){for(var T=0;T<C.length;T++){var M=C[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(x,M.key,M)}}return function(x,C,T){return C&&_(x.prototype,C),T&&_(x,T),x}}();function h(_,x){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:_}function c(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(_,x):_.__proto__=x)}var p=!1;function m(_){p=_}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){m(!0)}}))}catch{}function f(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return p?_:_.capture}function g(_){if("touches"in _){var x=_.touches[0],C=x.pageX,T=x.pageY;return{x:C,y:T}}var M=_.screenX,H=_.screenY;return{x:M,y:H}}var b=function(_){c(x,_);function x(){var C;S(this,x);for(var T=arguments.length,M=Array(T),H=0;H<T;H++)M[H]=arguments[H];var L=h(this,(C=x.__proto__||Object.getPrototypeOf(x)).call.apply(C,[this].concat(M)));return L._handleSwipeStart=L._handleSwipeStart.bind(L),L._handleSwipeMove=L._handleSwipeMove.bind(L),L._handleSwipeEnd=L._handleSwipeEnd.bind(L),L._onMouseDown=L._onMouseDown.bind(L),L._onMouseMove=L._onMouseMove.bind(L),L._onMouseUp=L._onMouseUp.bind(L),L._setSwiperRef=L._setSwiperRef.bind(L),L}return y(x,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(T){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(T))}},{key:"_onMouseMove",value:function(T){this.mouseDown&&this._handleSwipeMove(T)}},{key:"_onMouseUp",value:function(T){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(T)}},{key:"_handleSwipeStart",value:function(T){var M=g(T),H=M.x,L=M.y;this.moveStart={x:H,y:L},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var M=g(T),H=M.x,L=M.y,k=H-this.moveStart.x,X=L-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:k,y:X},T);j&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:k,deltaY:X}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var M=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-M?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>M&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-M?this.props.onSwipeUp(1,T):this.movePosition.deltaY>M&&this.props.onSwipeDown(1,T)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(T){this.swiper=T,this.props.innerRef(T)}},{key:"render",value:function(){var T=this.props;T.tagName;var M=T.className,H=T.style,L=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var k=w(T,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,d({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:M,style:H},k),L)}}]),x}(n.Component);b.displayName="ReactSwipe",b.propTypes={tagName:u.default.string,className:u.default.string,style:u.default.object,children:u.default.node,allowMouseEvents:u.default.bool,onSwipeUp:u.default.func,onSwipeDown:u.default.func,onSwipeLeft:u.default.func,onSwipeRight:u.default.func,onSwipeStart:u.default.func,onSwipeMove:u.default.func,onSwipeEnd:u.default.func,innerRef:u.default.func,tolerance:u.default.number.isRequired},b.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=b})}(ya)),ya}var uh;function tm(){return uh||(uh=1,function(e){(function(r,n){n(e,WT())})(ga,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=a(n);function a(u){return u&&u.__esModule?u:{default:u}}r.default=o.default})}(ga)),ga}var ki={},lh;function rm(){if(lh)return ki;lh=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.default=void 0;var e=r(av());function r(a){return a&&a.__esModule?a:{default:a}}function n(a,u,l){return u in a?Object.defineProperty(a,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[u]=l,a}var o={ROOT:function(u){return(0,e.default)(n({"carousel-root":!0},u||"",!!u))},CAROUSEL:function(u){return(0,e.default)({carousel:!0,"carousel-slider":u})},WRAPPER:function(u,l){return(0,e.default)({"thumbs-wrapper":!u,"slider-wrapper":u,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(u,l){return(0,e.default)({thumbs:!u,slider:u,animated:!l})},ITEM:function(u,l,d){return(0,e.default)({thumb:!u,slide:u,selected:l,previous:d})},ARROW_PREV:function(u){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":u})},ARROW_NEXT:function(u){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":u})},DOT:function(u){return(0,e.default)({dot:!0,selected:u})}};return ki.default=o,ki}var ji={},Wi={},ch;function UT(){if(ch)return Wi;ch=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.outerWidth=void 0;var e=function(n){var o=n.offsetWidth,a=getComputedStyle(n);return o+=parseInt(a.marginLeft)+parseInt(a.marginRight),o};return Wi.outerWidth=e,Wi}var Ui={},fh;function jl(){if(fh)return Ui;fh=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=void 0;var e=function(n,o,a){var u=n===0?n:n+o,l=a==="horizontal"?[u,0,0]:[0,u,0],d="translate3d",w="("+l.join(",")+")";return d+w};return Ui.default=e,Ui}var Bi={},dh;function nm(){if(dh)return Bi;dh=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.default=void 0;var e=function(){return window};return Bi.default=e,Bi}var ph;function im(){if(ph)return ji;ph=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=void 0;var e=w(U),r=l(rm()),n=UT(),o=l(jl()),a=l(tm()),u=l(nm());function l(L){return L&&L.__esModule?L:{default:L}}function d(){if(typeof WeakMap!="function")return null;var L=new WeakMap;return d=function(){return L},L}function w(L){if(L&&L.__esModule)return L;if(L===null||S(L)!=="object"&&typeof L!="function")return{default:L};var k=d();if(k&&k.has(L))return k.get(L);var X={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in L)if(Object.prototype.hasOwnProperty.call(L,F)){var B=j?Object.getOwnPropertyDescriptor(L,F):null;B&&(B.get||B.set)?Object.defineProperty(X,F,B):X[F]=L[F]}return X.default=L,k&&k.set(L,X),X}function S(L){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(X){return typeof X}:S=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},S(L)}function y(){return y=Object.assign||function(L){for(var k=1;k<arguments.length;k++){var X=arguments[k];for(var j in X)Object.prototype.hasOwnProperty.call(X,j)&&(L[j]=X[j])}return L},y.apply(this,arguments)}function h(L,k){if(!(L instanceof k))throw new TypeError("Cannot call a class as a function")}function c(L,k){for(var X=0;X<k.length;X++){var j=k[X];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(L,j.key,j)}}function p(L,k,X){return k&&c(L.prototype,k),L}function m(L,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(k&&k.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),k&&f(L,k)}function f(L,k){return f=Object.setPrototypeOf||function(j,F){return j.__proto__=F,j},f(L,k)}function g(L){var k=x();return function(){var j=C(L),F;if(k){var B=C(this).constructor;F=Reflect.construct(j,arguments,B)}else F=j.apply(this,arguments);return b(this,F)}}function b(L,k){return k&&(S(k)==="object"||typeof k=="function")?k:_(L)}function _(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function C(L){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||Object.getPrototypeOf(X)},C(L)}function T(L,k,X){return k in L?Object.defineProperty(L,k,{value:X,enumerable:!0,configurable:!0,writable:!0}):L[k]=X,L}var M=function(k){return k.hasOwnProperty("key")},H=function(L){m(X,L);var k=g(X);function X(j){var F;return h(this,X),F=k.call(this,j),T(_(F),"itemsWrapperRef",void 0),T(_(F),"itemsListRef",void 0),T(_(F),"thumbsRef",void 0),T(_(F),"setItemsWrapperRef",function(B){F.itemsWrapperRef=B}),T(_(F),"setItemsListRef",function(B){F.itemsListRef=B}),T(_(F),"setThumbsRef",function(B,q){F.thumbsRef||(F.thumbsRef=[]),F.thumbsRef[q]=B}),T(_(F),"updateSizes",function(){if(!(!F.props.children||!F.itemsWrapperRef||!F.thumbsRef)){var B=e.Children.count(F.props.children),q=F.itemsWrapperRef.clientWidth,R=F.props.thumbWidth?F.props.thumbWidth:(0,n.outerWidth)(F.thumbsRef[0]),J=Math.floor(q/R),V=J<B,te=V?B-J:0;F.setState(function(le,Z){return{itemSize:R,visibleItems:J,firstItem:V?F.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:V}})}}),T(_(F),"handleClickItem",function(B,q,R){if(!M(R)||R.key==="Enter"){var J=F.props.onSelectItem;typeof J=="function"&&J(B,q)}}),T(_(F),"onSwipeStart",function(){F.setState({swiping:!0})}),T(_(F),"onSwipeEnd",function(){F.setState({swiping:!1})}),T(_(F),"onSwipeMove",function(B){var q=B.x;if(!F.state.itemSize||!F.itemsWrapperRef||!F.state.visibleItems)return!1;var R=0,J=e.Children.count(F.props.children),V=-(F.state.firstItem*100)/F.state.visibleItems,te=Math.max(J-F.state.visibleItems,0),le=-te*100/F.state.visibleItems;V===R&&q>0&&(q=0),V===le&&q<0&&(q=0);var Z=F.itemsWrapperRef.clientWidth,ee=V+100/(Z/q);return F.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ae){F.itemsListRef.style[ae]=(0,o.default)(ee,"%",F.props.axis)}),!0}),T(_(F),"slideRight",function(B){F.moveTo(F.state.firstItem-(typeof B=="number"?B:1))}),T(_(F),"slideLeft",function(B){F.moveTo(F.state.firstItem+(typeof B=="number"?B:1))}),T(_(F),"moveTo",function(B){B=B<0?0:B,B=B>=F.state.lastPosition?F.state.lastPosition:B,F.setState({firstItem:B})}),F.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},F}return p(X,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(F){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==F.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(F){var B=F;return F>=this.state.lastPosition&&(B=this.state.lastPosition),F<this.state.firstItem+this.state.visibleItems&&(B=this.state.firstItem),F<this.state.firstItem&&(B=F),B}},{key:"renderItems",value:function(){var F=this;return this.props.children.map(function(B,q){var R=r.default.ITEM(!1,q===F.state.selectedItem),J={key:q,ref:function(te){return F.setThumbsRef(te,q)},className:R,onClick:F.handleClickItem.bind(F,q,F.props.children[q]),onKeyDown:F.handleClickItem.bind(F,q,F.props.children[q]),"aria-label":"".concat(F.props.labels.item," ").concat(q+1),style:{width:F.props.thumbWidth}};return e.default.createElement("li",y({},J,{role:"button",tabIndex:0}),B)})}},{key:"render",value:function(){var F=this;if(!this.props.children)return null;var B=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,R=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},V=-this.state.firstItem*(this.state.itemSize||0),te=(0,o.default)(V,"px",this.props.axis),le=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:le,MozTransitionDuration:le,MsTransitionDuration:le,OTransitionDuration:le,transitionDuration:le,msTransitionDuration:le},e.default.createElement("div",{className:r.default.CAROUSEL(!1)},e.default.createElement("div",{className:r.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:r.default.ARROW_PREV(!q),onClick:function(){return F.slideRight()},"aria-label":this.props.labels.leftArrow}),B?e.default.createElement(a.default,{tagName:"ul",className:r.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:r.default.SLIDER(!1,this.state.swiping),ref:function(ee){return F.setItemsListRef(ee)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:r.default.ARROW_NEXT(!R),onClick:function(){return F.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),X}(e.Component);return ji.default=H,T(H,"displayName","Thumbs"),T(H,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),ji}var zi={},hh;function BT(){if(hh)return zi;hh=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=void 0;var e=function(){return document};return zi.default=e,zi}var Dt={},vh;function om(){if(vh)return Dt;vh=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.setPosition=Dt.getPosition=Dt.isKeyboardEvent=Dt.defaultStatusFormatter=Dt.noop=void 0;var e=U,r=n(jl());function n(w){return w&&w.__esModule?w:{default:w}}var o=function(){};Dt.noop=o;var a=function(S,y){return"".concat(S," of ").concat(y)};Dt.defaultStatusFormatter=a;var u=function(S){return S?S.hasOwnProperty("key"):!1};Dt.isKeyboardEvent=u;var l=function(S,y){if(y.infiniteLoop&&++S,S===0)return 0;var h=e.Children.count(y.children);if(y.centerMode&&y.axis==="horizontal"){var c=-S*y.centerSlidePercentage,p=h-1;return S&&(S!==p||y.infiniteLoop)?c+=(100-y.centerSlidePercentage)/2:S===p&&(c+=100-y.centerSlidePercentage),c}return-S*100};Dt.getPosition=l;var d=function(S,y){var h={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(c){h[c]=(0,r.default)(S,"%",y)}),h};return Dt.setPosition=d,Dt}var rr={},mh;function zT(){if(mh)return rr;mh=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.fadeAnimationHandler=rr.slideStopSwipingHandler=rr.slideSwipeAnimationHandler=rr.slideAnimationHandler=void 0;var e=U,r=o(jl()),n=om();function o(h){return h&&h.__esModule?h:{default:h}}function a(h,c){var p=Object.keys(h);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(h);c&&(m=m.filter(function(f){return Object.getOwnPropertyDescriptor(h,f).enumerable})),p.push.apply(p,m)}return p}function u(h){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?a(Object(p),!0).forEach(function(m){l(h,m,p[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(p)):a(Object(p)).forEach(function(m){Object.defineProperty(h,m,Object.getOwnPropertyDescriptor(p,m))})}return h}function l(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}var d=function(c,p){var m={},f=p.selectedItem,g=f,b=e.Children.count(c.children)-1,_=c.infiniteLoop&&(f<0||f>b);if(_)return g<0?c.centerMode&&c.centerSlidePercentage&&c.axis==="horizontal"?m.itemListStyle=(0,n.setPosition)(-(b+2)*c.centerSlidePercentage-(100-c.centerSlidePercentage)/2,c.axis):m.itemListStyle=(0,n.setPosition)(-(b+2)*100,c.axis):g>b&&(m.itemListStyle=(0,n.setPosition)(0,c.axis)),m;var x=(0,n.getPosition)(f,c),C=(0,r.default)(x,"%",c.axis),T=c.transitionTime+"ms";return m.itemListStyle={WebkitTransform:C,msTransform:C,OTransform:C,transform:C},p.swiping||(m.itemListStyle=u(u({},m.itemListStyle),{},{WebkitTransitionDuration:T,MozTransitionDuration:T,OTransitionDuration:T,transitionDuration:T,msTransitionDuration:T})),m};rr.slideAnimationHandler=d;var w=function(c,p,m,f){var g={},b=p.axis==="horizontal",_=e.Children.count(p.children),x=0,C=(0,n.getPosition)(m.selectedItem,p),T=p.infiniteLoop?(0,n.getPosition)(_-1,p)-100:(0,n.getPosition)(_-1,p),M=b?c.x:c.y,H=M;C===x&&M>0&&(H=0),C===T&&M<0&&(H=0);var L=C+100/(m.itemSize/H),k=Math.abs(M)>p.swipeScrollTolerance;return p.infiniteLoop&&k&&(m.selectedItem===0&&L>-100?L-=_*100:m.selectedItem===_-1&&L<-_*100&&(L+=_*100)),(!p.preventMovementUntilSwipeScrollTolerance||k||m.swipeMovementStarted)&&(m.swipeMovementStarted||f({swipeMovementStarted:!0}),g.itemListStyle=(0,n.setPosition)(L,p.axis)),k&&!m.cancelClick&&f({cancelClick:!0}),g};rr.slideSwipeAnimationHandler=w;var S=function(c,p){var m=(0,n.getPosition)(p.selectedItem,c),f=(0,n.setPosition)(m,c.axis);return{itemListStyle:f}};rr.slideStopSwipingHandler=S;var y=function(c,p){var m=c.transitionTime+"ms",f="ease-in-out",g={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:f,msTransitionTimingFunction:f,MozTransitionTimingFunction:f,WebkitTransitionTimingFunction:f,OTransitionTimingFunction:f};return p.swiping||(g=u(u({},g),{},{WebkitTransitionDuration:m,MozTransitionDuration:m,OTransitionDuration:m,transitionDuration:m,msTransitionDuration:m})),{slideStyle:g,selectedStyle:u(u({},g),{},{opacity:1,position:"relative"}),prevStyle:u({},g)}};return rr.fadeAnimationHandler=y,rr}var gh;function HT(){if(gh)return Ni;gh=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=void 0;var e=y(U),r=w(tm()),n=w(rm()),o=w(im()),a=w(BT()),u=w(nm()),l=om(),d=zT();function w(j){return j&&j.__esModule?j:{default:j}}function S(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return S=function(){return j},j}function y(j){if(j&&j.__esModule)return j;if(j===null||h(j)!=="object"&&typeof j!="function")return{default:j};var F=S();if(F&&F.has(j))return F.get(j);var B={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in j)if(Object.prototype.hasOwnProperty.call(j,R)){var J=q?Object.getOwnPropertyDescriptor(j,R):null;J&&(J.get||J.set)?Object.defineProperty(B,R,J):B[R]=j[R]}return B.default=j,F&&F.set(j,B),B}function h(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(B){return typeof B}:h=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},h(j)}function c(){return c=Object.assign||function(j){for(var F=1;F<arguments.length;F++){var B=arguments[F];for(var q in B)Object.prototype.hasOwnProperty.call(B,q)&&(j[q]=B[q])}return j},c.apply(this,arguments)}function p(j,F){var B=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);F&&(q=q.filter(function(R){return Object.getOwnPropertyDescriptor(j,R).enumerable})),B.push.apply(B,q)}return B}function m(j){for(var F=1;F<arguments.length;F++){var B=arguments[F]!=null?arguments[F]:{};F%2?p(Object(B),!0).forEach(function(q){k(j,q,B[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(B)):p(Object(B)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(B,q))})}return j}function f(j,F){if(!(j instanceof F))throw new TypeError("Cannot call a class as a function")}function g(j,F){for(var B=0;B<F.length;B++){var q=F[B];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function b(j,F,B){return F&&g(j.prototype,F),j}function _(j,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(F&&F.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),F&&x(j,F)}function x(j,F){return x=Object.setPrototypeOf||function(q,R){return q.__proto__=R,q},x(j,F)}function C(j){var F=H();return function(){var q=L(j),R;if(F){var J=L(this).constructor;R=Reflect.construct(q,arguments,J)}else R=q.apply(this,arguments);return T(this,R)}}function T(j,F){return F&&(h(F)==="object"||typeof F=="function")?F:M(j)}function M(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function L(j){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},L(j)}function k(j,F,B){return F in j?Object.defineProperty(j,F,{value:B,enumerable:!0,configurable:!0,writable:!0}):j[F]=B,j}var X=function(j){_(B,j);var F=C(B);function B(q){var R;f(this,B),R=F.call(this,q),k(M(R),"thumbsRef",void 0),k(M(R),"carouselWrapperRef",void 0),k(M(R),"listRef",void 0),k(M(R),"itemsRef",void 0),k(M(R),"timer",void 0),k(M(R),"animationHandler",void 0),k(M(R),"setThumbsRef",function(V){R.thumbsRef=V}),k(M(R),"setCarouselWrapperRef",function(V){R.carouselWrapperRef=V}),k(M(R),"setListRef",function(V){R.listRef=V}),k(M(R),"setItemsRef",function(V,te){R.itemsRef||(R.itemsRef=[]),R.itemsRef[te]=V}),k(M(R),"autoPlay",function(){e.Children.count(R.props.children)<=1||(R.clearAutoPlay(),R.props.autoPlay&&(R.timer=setTimeout(function(){R.increment()},R.props.interval)))}),k(M(R),"clearAutoPlay",function(){R.timer&&clearTimeout(R.timer)}),k(M(R),"resetAutoPlay",function(){R.clearAutoPlay(),R.autoPlay()}),k(M(R),"stopOnHover",function(){R.setState({isMouseEntered:!0},R.clearAutoPlay)}),k(M(R),"startOnLeave",function(){R.setState({isMouseEntered:!1},R.autoPlay)}),k(M(R),"isFocusWithinTheCarousel",function(){return R.carouselWrapperRef?!!((0,a.default)().activeElement===R.carouselWrapperRef||R.carouselWrapperRef.contains((0,a.default)().activeElement)):!1}),k(M(R),"navigateWithKeyboard",function(V){if(R.isFocusWithinTheCarousel()){var te=R.props.axis,le=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},ee=le?Z.ArrowRight:Z.ArrowDown,ae=le?Z.ArrowLeft:Z.ArrowUp;ee===V.keyCode?R.increment():ae===V.keyCode&&R.decrement()}}),k(M(R),"updateSizes",function(){if(!(!R.state.initialized||!R.itemsRef||R.itemsRef.length===0)){var V=R.props.axis==="horizontal",te=R.itemsRef[0];if(te){var le=V?te.clientWidth:te.clientHeight;R.setState({itemSize:le}),R.thumbsRef&&R.thumbsRef.updateSizes()}}}),k(M(R),"setMountState",function(){R.setState({hasMount:!0}),R.updateSizes()}),k(M(R),"handleClickItem",function(V,te){if(e.Children.count(R.props.children)!==0){if(R.state.cancelClick){R.setState({cancelClick:!1});return}R.props.onClickItem(V,te),V!==R.state.selectedItem&&R.setState({selectedItem:V})}}),k(M(R),"handleOnChange",function(V,te){e.Children.count(R.props.children)<=1||R.props.onChange(V,te)}),k(M(R),"handleClickThumb",function(V,te){R.props.onClickThumb(V,te),R.moveTo(V)}),k(M(R),"onSwipeStart",function(V){R.setState({swiping:!0}),R.props.onSwipeStart(V)}),k(M(R),"onSwipeEnd",function(V){R.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),R.props.onSwipeEnd(V),R.clearAutoPlay(),R.state.autoPlay&&R.autoPlay()}),k(M(R),"onSwipeMove",function(V,te){R.props.onSwipeMove(te);var le=R.props.swipeAnimationHandler(V,R.props,R.state,R.setState.bind(M(R)));return R.setState(m({},le)),!!Object.keys(le).length}),k(M(R),"decrement",function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;R.moveTo(R.state.selectedItem-(typeof V=="number"?V:1))}),k(M(R),"increment",function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;R.moveTo(R.state.selectedItem+(typeof V=="number"?V:1))}),k(M(R),"moveTo",function(V){if(typeof V=="number"){var te=e.Children.count(R.props.children)-1;V<0&&(V=R.props.infiniteLoop?te:0),V>te&&(V=R.props.infiniteLoop?0:te),R.selectItem({selectedItem:V}),R.state.autoPlay&&R.state.isMouseEntered===!1&&R.resetAutoPlay()}}),k(M(R),"onClickNext",function(){R.increment(1)}),k(M(R),"onClickPrev",function(){R.decrement(1)}),k(M(R),"onSwipeForward",function(){R.increment(1),R.props.emulateTouch&&R.setState({cancelClick:!0})}),k(M(R),"onSwipeBackwards",function(){R.decrement(1),R.props.emulateTouch&&R.setState({cancelClick:!0})}),k(M(R),"changeItem",function(V){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&R.moveTo(V)}}),k(M(R),"selectItem",function(V){R.setState(m({previousItem:R.state.selectedItem},V),function(){R.setState(R.animationHandler(R.props,R.state))}),R.handleOnChange(V.selectedItem,e.Children.toArray(R.props.children)[V.selectedItem])}),k(M(R),"getInitialImage",function(){var V=R.props.selectedItem,te=R.itemsRef&&R.itemsRef[V],le=te&&te.getElementsByTagName("img")||[];return le[0]}),k(M(R),"getVariableItemHeight",function(V){var te=R.itemsRef&&R.itemsRef[V];if(R.state.hasMount&&te&&te.children.length){var le=te.children[0].getElementsByTagName("img")||[];if(le.length>0){var Z=le[0];if(!Z.complete){var ee=function oe(){R.forceUpdate(),Z.removeEventListener("load",oe)};Z.addEventListener("load",ee)}}var ae=le[0]||te.children[0],ce=ae.clientHeight;return ce>0?ce:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return R.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&d.fadeAnimationHandler||d.slideAnimationHandler,R.state=m(m({},J),R.animationHandler(q,J)),R}return b(B,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(R,J){!R.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!R.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(m({},this.props.stopSwipingHandler(this.props,this.state))),(R.selectedItem!==this.props.selectedItem||R.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),R.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var R=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var J=R.getInitialImage();J&&!J.complete?J.addEventListener("load",R.setMountState):R.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var R=this.carouselWrapperRef;this.props.stopOnHover&&R&&(R.addEventListener("mouseenter",this.stopOnHover),R.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var R=this.carouselWrapperRef;this.props.stopOnHover&&R&&(R.removeEventListener("mouseenter",this.stopOnHover),R.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,a.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var R=this.getInitialImage();R&&R.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,a.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var R;(R=this.carouselWrapperRef)===null||R===void 0||R.focus()}},{key:"renderItems",value:function(R){var J=this;return this.props.children?e.Children.map(this.props.children,function(V,te){var le=te===J.state.selectedItem,Z=te===J.state.previousItem,ee=le&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(ee=m(m({},ee),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(ee=m(m({},ee),{},{pointerEvents:"none"}));var ae={ref:function(oe){return J.setItemsRef(oe,te)},key:"itemKey"+te+(R?"clone":""),className:n.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,V),style:ee};return e.default.createElement("li",ae,J.props.renderItem(V,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var R=this,J=this.props,V=J.showIndicators,te=J.labels,le=J.renderIndicator,Z=J.children;return V?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(ee,ae){return le&&le(R.changeItem(ae),ae===R.state.selectedItem,ae,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(o.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var R=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,V=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,le=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,ee=this.renderItems(!0),ae=ee.shift(),ce=ee.pop(),oe={className:n.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},fe={};if(V){if(oe.onSwipeLeft=this.onSwipeForward,oe.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var pe=this.getVariableItemHeight(this.state.selectedItem);fe.height=pe||"auto"}}else oe.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,oe.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,oe.style=m(m({},oe.style),{},{height:this.state.itemSize}),fe.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:n.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:n.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,le,this.props.labels.leftArrow),e.default.createElement("div",{className:n.default.WRAPPER(!0,this.props.axis),style:fe},J?e.default.createElement(r.default,c({tagName:"ul",innerRef:this.setListRef},oe,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ce,this.renderItems(),this.props.infiniteLoop&&ae):e.default.createElement("ul",{className:n.default.SLIDER(!0,this.state.swiping),ref:function(ge){return R.setListRef(ge)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ce,this.renderItems(),this.props.infiniteLoop&&ae)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B}(e.default.Component);return Ni.default=X,k(X,"displayName","Carousel"),k(X,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(F,B,q){return e.default.createElement("button",{type:"button","aria-label":q,className:n.default.ARROW_PREV(!B),onClick:F})},renderArrowNext:function(F,B,q){return e.default.createElement("button",{type:"button","aria-label":q,className:n.default.ARROW_NEXT(!B),onClick:F})},renderIndicator:function(F,B,q,R){return e.default.createElement("li",{className:n.default.DOT(B),onClick:F,onKeyDown:F,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(R," ").concat(q+1)})},renderItem:function(F){return F},renderThumbs:function(F){var B=e.Children.map(F,function(q){var R=q;if(q.type!=="img"&&(R=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!R)return R});return B.filter(function(q){return q}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):B},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:d.slideSwipeAnimationHandler,stopSwipingHandler:d.slideStopSwipingHandler}),Ni}var yh={},wh;function qT(){return wh||(wh=1),yh}var bh;function ZT(){return bh||(bh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return n.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var r=a(HT()),n=qT(),o=a(im());function a(u){return u&&u.__esModule?u:{default:u}}}(Wu)),Wu}var GT=ZT();const KT=({tip:e})=>W.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:am(e,!0)}),VT=({pages:e})=>W.jsx("div",{className:"min-h-[10rem] w-96",children:W.jsx(GT.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>W.jsx(KT,{tip:r},r.key))})}),YT=({body:e,isInsideCarousel:r})=>W.jsx("article",{className:Ye(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!r}]),children:W.jsx(La,{children:e,options:{overrides:{a:{component:({children:n,...o})=>W.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[n,W.jsx(rt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),XT=({video:e,body:r,title:n,isInsideCarousel:o})=>W.jsxs("div",{className:Ye([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[W.jsx("div",{className:Ye([{"mr-1":!o,"mb-1":o}]),children:W.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),W.jsx("article",{className:Ye(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:W.jsx(La,{children:r||"",options:{overrides:{a:{component:({children:a,...u})=>W.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,W.jsx(rt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),am=(e,r)=>{switch(e.type){case Ra.TEXT:return W.jsx(YT,{body:e.body,isInsideCarousel:r});case Ra.VIDEO:return W.jsx(XT,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case Ra.CAROUSEL:return W.jsx(VT,{pages:e.pages})}},sm=U.createContext(void 0);function Sh(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const JT=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=U.useState({tips:{},show:!0});U.useEffect(()=>{const d=new AbortController;try{fetch(`${n}/tips.json`,{signal:d.signal}).then(w=>w.json()).then(w=>{const S=w.reduce((y,h)=>Sh(w,h.key).length>1?{...y,[h.key]:{type:"carousel",pages:Sh(w,h.key)}}:{...y,[h.key]:h},{});u(y=>({...y,tips:S}))})}catch{}return()=>{d.abort()}},[]);const l=()=>{u(d=>({...d,show:!a}))};return W.jsx(sm.Provider,{value:{tips:o,toggleTips:l,show:a,enabled:r},children:e})},um=e=>{const r=U.useContext(sm);if(r===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?r.tips[e]:null,toggleTips:r.toggleTips,show:r.show,enabled:r.enabled}},QT=Da(MT)`
75
+ */var Uu,th;function $T(){if(th)return Uu;th=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var l={},d=0;d<10;d++)l["_"+String.fromCharCode(d)]=d;var w=Object.getOwnPropertyNames(l).map(function(y){return l[y]});if(w.join("")!=="0123456789")return!1;var S={};return"abcdefghijklmnopqrst".split("").forEach(function(y){S[y]=y}),Object.keys(Object.assign({},S)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Uu=a()?Object.assign:function(u,l){for(var d,w=o(u),S,y=1;y<arguments.length;y++){d=Object(arguments[y]);for(var h in d)r.call(d,h)&&(w[h]=d[h]);if(e){S=e(d);for(var c=0;c<S.length;c++)n.call(d,S[c])&&(w[S[c]]=d[S[c]])}}return w},Uu}var Bu,rh;function kl(){if(rh)return Bu;rh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bu=e,Bu}var zu,nh;function tm(){return nh||(nh=1,zu=Function.call.bind(Object.prototype.hasOwnProperty)),zu}var Hu,ih;function NT(){if(ih)return Hu;ih=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=kl(),n={},o=tm();e=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(u,l,d,w,S){if(process.env.NODE_ENV!=="production"){for(var y in u)if(o(u,y)){var h;try{if(typeof u[y]!="function"){var c=Error((w||"React class")+": "+d+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}h=u[y](l,y,w,d,null,r)}catch(m){h=m}if(h&&!(h instanceof Error)&&e((w||"React class")+": type specification of "+d+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var p=S?S():"";e("Failed "+d+" type: "+h.message+(p??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Hu=a,Hu}var qu,oh;function kT(){if(oh)return qu;oh=1;var e=em(),r=$T(),n=kl(),o=tm(),a=NT(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(d){var w="Warning: "+d;typeof console<"u"&&console.error(w);try{throw new Error(w)}catch{}});function l(){return null}return qu=function(d,w){var S=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function h(Z){var ee=Z&&(S&&Z[S]||Z[y]);if(typeof ee=="function")return ee}var c="<<anonymous>>",p={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:_(),arrayOf:x,element:C(),elementType:T(),instanceOf:I,node:X(),objectOf:F,oneOf:H,oneOfType:k,shape:L,exact:B};function m(Z,ee){return Z===ee?Z!==0||1/Z===1/ee:Z!==Z&&ee!==ee}function f(Z,ee){this.message=Z,this.data=ee&&typeof ee=="object"?ee:{},this.stack=""}f.prototype=Error.prototype;function g(Z){if(process.env.NODE_ENV!=="production")var ee={},ae=0;function ce(fe,pe,ye,ge,_e,Ae,Ue){if(ge=ge||c,Ae=Ae||ye,Ue!==n){if(w){var ne=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ne.name="Invariant Violation",ne}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var dt=ge+":"+ye;!ee[dt]&&ae<3&&(u("You are manually calling a React.PropTypes validation function for the `"+Ae+"` prop on `"+ge+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ee[dt]=!0,ae++)}}return pe[ye]==null?fe?pe[ye]===null?new f("The "+_e+" `"+Ae+"` is marked as required "+("in `"+ge+"`, but its value is `null`.")):new f("The "+_e+" `"+Ae+"` is marked as required in "+("`"+ge+"`, but its value is `undefined`.")):null:Z(pe,ye,ge,_e,Ae)}var oe=ce.bind(null,!1);return oe.isRequired=ce.bind(null,!0),oe}function b(Z){function ee(ae,ce,oe,fe,pe,ye){var ge=ae[ce],_e=J(ge);if(_e!==Z){var Ae=V(ge);return new f("Invalid "+fe+" `"+pe+"` of type "+("`"+Ae+"` supplied to `"+oe+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return g(ee)}function _(){return g(l)}function x(Z){function ee(ae,ce,oe,fe,pe){if(typeof Z!="function")return new f("Property `"+pe+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var ye=ae[ce];if(!Array.isArray(ye)){var ge=J(ye);return new f("Invalid "+fe+" `"+pe+"` of type "+("`"+ge+"` supplied to `"+oe+"`, expected an array."))}for(var _e=0;_e<ye.length;_e++){var Ae=Z(ye,_e,oe,fe,pe+"["+_e+"]",n);if(Ae instanceof Error)return Ae}return null}return g(ee)}function C(){function Z(ee,ae,ce,oe,fe){var pe=ee[ae];if(!d(pe)){var ye=J(pe);return new f("Invalid "+oe+" `"+fe+"` of type "+("`"+ye+"` supplied to `"+ce+"`, expected a single ReactElement."))}return null}return g(Z)}function T(){function Z(ee,ae,ce,oe,fe){var pe=ee[ae];if(!e.isValidElementType(pe)){var ye=J(pe);return new f("Invalid "+oe+" `"+fe+"` of type "+("`"+ye+"` supplied to `"+ce+"`, expected a single ReactElement type."))}return null}return g(Z)}function I(Z){function ee(ae,ce,oe,fe,pe){if(!(ae[ce]instanceof Z)){var ye=Z.name||c,ge=le(ae[ce]);return new f("Invalid "+fe+" `"+pe+"` of type "+("`"+ge+"` supplied to `"+oe+"`, expected ")+("instance of `"+ye+"`."))}return null}return g(ee)}function H(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):u("Invalid argument supplied to oneOf, expected an array.")),l;function ee(ae,ce,oe,fe,pe){for(var ye=ae[ce],ge=0;ge<Z.length;ge++)if(m(ye,Z[ge]))return null;var _e=JSON.stringify(Z,function(Ue,ne){var dt=V(ne);return dt==="symbol"?String(ne):ne});return new f("Invalid "+fe+" `"+pe+"` of value `"+String(ye)+"` "+("supplied to `"+oe+"`, expected one of "+_e+"."))}return g(ee)}function F(Z){function ee(ae,ce,oe,fe,pe){if(typeof Z!="function")return new f("Property `"+pe+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var ye=ae[ce],ge=J(ye);if(ge!=="object")return new f("Invalid "+fe+" `"+pe+"` of type "+("`"+ge+"` supplied to `"+oe+"`, expected an object."));for(var _e in ye)if(o(ye,_e)){var Ae=Z(ye,_e,oe,fe,pe+"."+_e,n);if(Ae instanceof Error)return Ae}return null}return g(ee)}function k(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var ee=0;ee<Z.length;ee++){var ae=Z[ee];if(typeof ae!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(ae)+" at index "+ee+"."),l}function ce(oe,fe,pe,ye,ge){for(var _e=[],Ae=0;Ae<Z.length;Ae++){var Ue=Z[Ae],ne=Ue(oe,fe,pe,ye,ge,n);if(ne==null)return null;ne.data&&o(ne.data,"expectedType")&&_e.push(ne.data.expectedType)}var dt=_e.length>0?", expected one of type ["+_e.join(", ")+"]":"";return new f("Invalid "+ye+" `"+ge+"` supplied to "+("`"+pe+"`"+dt+"."))}return g(ce)}function X(){function Z(ee,ae,ce,oe,fe){return q(ee[ae])?null:new f("Invalid "+oe+" `"+fe+"` supplied to "+("`"+ce+"`, expected a ReactNode."))}return g(Z)}function j(Z,ee,ae,ce,oe){return new f((Z||"React class")+": "+ee+" type `"+ae+"."+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function L(Z){function ee(ae,ce,oe,fe,pe){var ye=ae[ce],ge=J(ye);if(ge!=="object")return new f("Invalid "+fe+" `"+pe+"` of type `"+ge+"` "+("supplied to `"+oe+"`, expected `object`."));for(var _e in Z){var Ae=Z[_e];if(typeof Ae!="function")return j(oe,fe,pe,_e,V(Ae));var Ue=Ae(ye,_e,oe,fe,pe+"."+_e,n);if(Ue)return Ue}return null}return g(ee)}function B(Z){function ee(ae,ce,oe,fe,pe){var ye=ae[ce],ge=J(ye);if(ge!=="object")return new f("Invalid "+fe+" `"+pe+"` of type `"+ge+"` "+("supplied to `"+oe+"`, expected `object`."));var _e=r({},ae[ce],Z);for(var Ae in _e){var Ue=Z[Ae];if(o(Z,Ae)&&typeof Ue!="function")return j(oe,fe,pe,Ae,V(Ue));if(!Ue)return new f("Invalid "+fe+" `"+pe+"` key `"+Ae+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(ae[ce],null," ")+`
76
+ Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ne=Ue(ye,Ae,oe,fe,pe+"."+Ae,n);if(ne)return ne}return null}return g(ee)}function q(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(q);if(Z===null||d(Z))return!0;var ee=h(Z);if(ee){var ae=ee.call(Z),ce;if(ee!==Z.entries){for(;!(ce=ae.next()).done;)if(!q(ce.value))return!1}else for(;!(ce=ae.next()).done;){var oe=ce.value;if(oe&&!q(oe[1]))return!1}}else return!1;return!0;default:return!1}}function R(Z,ee){return Z==="symbol"?!0:ee?ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ee instanceof Symbol:!1}function J(Z){var ee=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":R(ee,Z)?"symbol":ee}function V(Z){if(typeof Z>"u"||Z===null)return""+Z;var ee=J(Z);if(ee==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return ee}function te(Z){var ee=V(Z);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function le(Z){return!Z.constructor||!Z.constructor.name?c:Z.constructor.name}return p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},qu}var Zu,ah;function jT(){if(ah)return Zu;ah=1;var e=kl();function r(){}function n(){}return n.resetWarningCache=r,Zu=function(){function o(l,d,w,S,y,h){if(h!==e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return u.PropTypes=u,u},Zu}var sh;function WT(){if(sh)return wa.exports;if(sh=1,process.env.NODE_ENV!=="production"){var e=em(),r=!0;wa.exports=kT()(e.isElement,r)}else wa.exports=jT()();return wa.exports}var uh;function UT(){return uh||(uh=1,function(e){(function(r,n){n(e,U,WT())})(ya,function(r,n,o){Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=m;var a=l(n),u=l(o);function l(_){return _&&_.__esModule?_:{default:_}}var d=Object.assign||function(_){for(var x=1;x<arguments.length;x++){var C=arguments[x];for(var T in C)Object.prototype.hasOwnProperty.call(C,T)&&(_[T]=C[T])}return _};function w(_,x){var C={};for(var T in _)x.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(_,T)&&(C[T]=_[T]);return C}function S(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}var y=function(){function _(x,C){for(var T=0;T<C.length;T++){var I=C[T];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(x,I.key,I)}}return function(x,C,T){return C&&_(x.prototype,C),T&&_(x,T),x}}();function h(_,x){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:_}function c(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(_,x):_.__proto__=x)}var p=!1;function m(_){p=_}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){m(!0)}}))}catch{}function f(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return p?_:_.capture}function g(_){if("touches"in _){var x=_.touches[0],C=x.pageX,T=x.pageY;return{x:C,y:T}}var I=_.screenX,H=_.screenY;return{x:I,y:H}}var b=function(_){c(x,_);function x(){var C;S(this,x);for(var T=arguments.length,I=Array(T),H=0;H<T;H++)I[H]=arguments[H];var F=h(this,(C=x.__proto__||Object.getPrototypeOf(x)).call.apply(C,[this].concat(I)));return F._handleSwipeStart=F._handleSwipeStart.bind(F),F._handleSwipeMove=F._handleSwipeMove.bind(F),F._handleSwipeEnd=F._handleSwipeEnd.bind(F),F._onMouseDown=F._onMouseDown.bind(F),F._onMouseMove=F._onMouseMove.bind(F),F._onMouseUp=F._onMouseUp.bind(F),F._setSwiperRef=F._setSwiperRef.bind(F),F}return y(x,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(T){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(T))}},{key:"_onMouseMove",value:function(T){this.mouseDown&&this._handleSwipeMove(T)}},{key:"_onMouseUp",value:function(T){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(T)}},{key:"_handleSwipeStart",value:function(T){var I=g(T),H=I.x,F=I.y;this.moveStart={x:H,y:F},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var I=g(T),H=I.x,F=I.y,k=H-this.moveStart.x,X=F-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:k,y:X},T);j&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:k,deltaY:X}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var I=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-I?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>I&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-I?this.props.onSwipeUp(1,T):this.movePosition.deltaY>I&&this.props.onSwipeDown(1,T)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(T){this.swiper=T,this.props.innerRef(T)}},{key:"render",value:function(){var T=this.props;T.tagName;var I=T.className,H=T.style,F=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var k=w(T,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,d({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:I,style:H},k),F)}}]),x}(n.Component);b.displayName="ReactSwipe",b.propTypes={tagName:u.default.string,className:u.default.string,style:u.default.object,children:u.default.node,allowMouseEvents:u.default.bool,onSwipeUp:u.default.func,onSwipeDown:u.default.func,onSwipeLeft:u.default.func,onSwipeRight:u.default.func,onSwipeStart:u.default.func,onSwipeMove:u.default.func,onSwipeEnd:u.default.func,innerRef:u.default.func,tolerance:u.default.number.isRequired},b.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=b})}(ya)),ya}var lh;function rm(){return lh||(lh=1,function(e){(function(r,n){n(e,UT())})(ga,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=a(n);function a(u){return u&&u.__esModule?u:{default:u}}r.default=o.default})}(ga)),ga}var ki={},ch;function nm(){if(ch)return ki;ch=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.default=void 0;var e=r(sv());function r(a){return a&&a.__esModule?a:{default:a}}function n(a,u,l){return u in a?Object.defineProperty(a,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[u]=l,a}var o={ROOT:function(u){return(0,e.default)(n({"carousel-root":!0},u||"",!!u))},CAROUSEL:function(u){return(0,e.default)({carousel:!0,"carousel-slider":u})},WRAPPER:function(u,l){return(0,e.default)({"thumbs-wrapper":!u,"slider-wrapper":u,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(u,l){return(0,e.default)({thumbs:!u,slider:u,animated:!l})},ITEM:function(u,l,d){return(0,e.default)({thumb:!u,slide:u,selected:l,previous:d})},ARROW_PREV:function(u){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":u})},ARROW_NEXT:function(u){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":u})},DOT:function(u){return(0,e.default)({dot:!0,selected:u})}};return ki.default=o,ki}var ji={},Wi={},fh;function BT(){if(fh)return Wi;fh=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.outerWidth=void 0;var e=function(n){var o=n.offsetWidth,a=getComputedStyle(n);return o+=parseInt(a.marginLeft)+parseInt(a.marginRight),o};return Wi.outerWidth=e,Wi}var Ui={},dh;function jl(){if(dh)return Ui;dh=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=void 0;var e=function(n,o,a){var u=n===0?n:n+o,l=a==="horizontal"?[u,0,0]:[0,u,0],d="translate3d",w="("+l.join(",")+")";return d+w};return Ui.default=e,Ui}var Bi={},ph;function im(){if(ph)return Bi;ph=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.default=void 0;var e=function(){return window};return Bi.default=e,Bi}var hh;function om(){if(hh)return ji;hh=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=void 0;var e=w(U),r=l(nm()),n=BT(),o=l(jl()),a=l(rm()),u=l(im());function l(F){return F&&F.__esModule?F:{default:F}}function d(){if(typeof WeakMap!="function")return null;var F=new WeakMap;return d=function(){return F},F}function w(F){if(F&&F.__esModule)return F;if(F===null||S(F)!=="object"&&typeof F!="function")return{default:F};var k=d();if(k&&k.has(F))return k.get(F);var X={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in F)if(Object.prototype.hasOwnProperty.call(F,L)){var B=j?Object.getOwnPropertyDescriptor(F,L):null;B&&(B.get||B.set)?Object.defineProperty(X,L,B):X[L]=F[L]}return X.default=F,k&&k.set(F,X),X}function S(F){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(X){return typeof X}:S=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},S(F)}function y(){return y=Object.assign||function(F){for(var k=1;k<arguments.length;k++){var X=arguments[k];for(var j in X)Object.prototype.hasOwnProperty.call(X,j)&&(F[j]=X[j])}return F},y.apply(this,arguments)}function h(F,k){if(!(F instanceof k))throw new TypeError("Cannot call a class as a function")}function c(F,k){for(var X=0;X<k.length;X++){var j=k[X];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(F,j.key,j)}}function p(F,k,X){return k&&c(F.prototype,k),F}function m(F,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(k&&k.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),k&&f(F,k)}function f(F,k){return f=Object.setPrototypeOf||function(j,L){return j.__proto__=L,j},f(F,k)}function g(F){var k=x();return function(){var j=C(F),L;if(k){var B=C(this).constructor;L=Reflect.construct(j,arguments,B)}else L=j.apply(this,arguments);return b(this,L)}}function b(F,k){return k&&(S(k)==="object"||typeof k=="function")?k:_(F)}function _(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function C(F){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||Object.getPrototypeOf(X)},C(F)}function T(F,k,X){return k in F?Object.defineProperty(F,k,{value:X,enumerable:!0,configurable:!0,writable:!0}):F[k]=X,F}var I=function(k){return k.hasOwnProperty("key")},H=function(F){m(X,F);var k=g(X);function X(j){var L;return h(this,X),L=k.call(this,j),T(_(L),"itemsWrapperRef",void 0),T(_(L),"itemsListRef",void 0),T(_(L),"thumbsRef",void 0),T(_(L),"setItemsWrapperRef",function(B){L.itemsWrapperRef=B}),T(_(L),"setItemsListRef",function(B){L.itemsListRef=B}),T(_(L),"setThumbsRef",function(B,q){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[q]=B}),T(_(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var B=e.Children.count(L.props.children),q=L.itemsWrapperRef.clientWidth,R=L.props.thumbWidth?L.props.thumbWidth:(0,n.outerWidth)(L.thumbsRef[0]),J=Math.floor(q/R),V=J<B,te=V?B-J:0;L.setState(function(le,Z){return{itemSize:R,visibleItems:J,firstItem:V?L.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:V}})}}),T(_(L),"handleClickItem",function(B,q,R){if(!I(R)||R.key==="Enter"){var J=L.props.onSelectItem;typeof J=="function"&&J(B,q)}}),T(_(L),"onSwipeStart",function(){L.setState({swiping:!0})}),T(_(L),"onSwipeEnd",function(){L.setState({swiping:!1})}),T(_(L),"onSwipeMove",function(B){var q=B.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var R=0,J=e.Children.count(L.props.children),V=-(L.state.firstItem*100)/L.state.visibleItems,te=Math.max(J-L.state.visibleItems,0),le=-te*100/L.state.visibleItems;V===R&&q>0&&(q=0),V===le&&q<0&&(q=0);var Z=L.itemsWrapperRef.clientWidth,ee=V+100/(Z/q);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ae){L.itemsListRef.style[ae]=(0,o.default)(ee,"%",L.props.axis)}),!0}),T(_(L),"slideRight",function(B){L.moveTo(L.state.firstItem-(typeof B=="number"?B:1))}),T(_(L),"slideLeft",function(B){L.moveTo(L.state.firstItem+(typeof B=="number"?B:1))}),T(_(L),"moveTo",function(B){B=B<0?0:B,B=B>=L.state.lastPosition?L.state.lastPosition:B,L.setState({firstItem:B})}),L.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return p(X,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(L){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==L.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(L){var B=L;return L>=this.state.lastPosition&&(B=this.state.lastPosition),L<this.state.firstItem+this.state.visibleItems&&(B=this.state.firstItem),L<this.state.firstItem&&(B=L),B}},{key:"renderItems",value:function(){var L=this;return this.props.children.map(function(B,q){var R=r.default.ITEM(!1,q===L.state.selectedItem),J={key:q,ref:function(te){return L.setThumbsRef(te,q)},className:R,onClick:L.handleClickItem.bind(L,q,L.props.children[q]),onKeyDown:L.handleClickItem.bind(L,q,L.props.children[q]),"aria-label":"".concat(L.props.labels.item," ").concat(q+1),style:{width:L.props.thumbWidth}};return e.default.createElement("li",y({},J,{role:"button",tabIndex:0}),B)})}},{key:"render",value:function(){var L=this;if(!this.props.children)return null;var B=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,R=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},V=-this.state.firstItem*(this.state.itemSize||0),te=(0,o.default)(V,"px",this.props.axis),le=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:le,MozTransitionDuration:le,MsTransitionDuration:le,OTransitionDuration:le,transitionDuration:le,msTransitionDuration:le},e.default.createElement("div",{className:r.default.CAROUSEL(!1)},e.default.createElement("div",{className:r.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:r.default.ARROW_PREV(!q),onClick:function(){return L.slideRight()},"aria-label":this.props.labels.leftArrow}),B?e.default.createElement(a.default,{tagName:"ul",className:r.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:r.default.SLIDER(!1,this.state.swiping),ref:function(ee){return L.setItemsListRef(ee)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:r.default.ARROW_NEXT(!R),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),X}(e.Component);return ji.default=H,T(H,"displayName","Thumbs"),T(H,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),ji}var zi={},vh;function zT(){if(vh)return zi;vh=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=void 0;var e=function(){return document};return zi.default=e,zi}var $t={},mh;function am(){if(mh)return $t;mh=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.setPosition=$t.getPosition=$t.isKeyboardEvent=$t.defaultStatusFormatter=$t.noop=void 0;var e=U,r=n(jl());function n(w){return w&&w.__esModule?w:{default:w}}var o=function(){};$t.noop=o;var a=function(S,y){return"".concat(S," of ").concat(y)};$t.defaultStatusFormatter=a;var u=function(S){return S?S.hasOwnProperty("key"):!1};$t.isKeyboardEvent=u;var l=function(S,y){if(y.infiniteLoop&&++S,S===0)return 0;var h=e.Children.count(y.children);if(y.centerMode&&y.axis==="horizontal"){var c=-S*y.centerSlidePercentage,p=h-1;return S&&(S!==p||y.infiniteLoop)?c+=(100-y.centerSlidePercentage)/2:S===p&&(c+=100-y.centerSlidePercentage),c}return-S*100};$t.getPosition=l;var d=function(S,y){var h={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(c){h[c]=(0,r.default)(S,"%",y)}),h};return $t.setPosition=d,$t}var rr={},gh;function HT(){if(gh)return rr;gh=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.fadeAnimationHandler=rr.slideStopSwipingHandler=rr.slideSwipeAnimationHandler=rr.slideAnimationHandler=void 0;var e=U,r=o(jl()),n=am();function o(h){return h&&h.__esModule?h:{default:h}}function a(h,c){var p=Object.keys(h);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(h);c&&(m=m.filter(function(f){return Object.getOwnPropertyDescriptor(h,f).enumerable})),p.push.apply(p,m)}return p}function u(h){for(var c=1;c<arguments.length;c++){var p=arguments[c]!=null?arguments[c]:{};c%2?a(Object(p),!0).forEach(function(m){l(h,m,p[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(p)):a(Object(p)).forEach(function(m){Object.defineProperty(h,m,Object.getOwnPropertyDescriptor(p,m))})}return h}function l(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}var d=function(c,p){var m={},f=p.selectedItem,g=f,b=e.Children.count(c.children)-1,_=c.infiniteLoop&&(f<0||f>b);if(_)return g<0?c.centerMode&&c.centerSlidePercentage&&c.axis==="horizontal"?m.itemListStyle=(0,n.setPosition)(-(b+2)*c.centerSlidePercentage-(100-c.centerSlidePercentage)/2,c.axis):m.itemListStyle=(0,n.setPosition)(-(b+2)*100,c.axis):g>b&&(m.itemListStyle=(0,n.setPosition)(0,c.axis)),m;var x=(0,n.getPosition)(f,c),C=(0,r.default)(x,"%",c.axis),T=c.transitionTime+"ms";return m.itemListStyle={WebkitTransform:C,msTransform:C,OTransform:C,transform:C},p.swiping||(m.itemListStyle=u(u({},m.itemListStyle),{},{WebkitTransitionDuration:T,MozTransitionDuration:T,OTransitionDuration:T,transitionDuration:T,msTransitionDuration:T})),m};rr.slideAnimationHandler=d;var w=function(c,p,m,f){var g={},b=p.axis==="horizontal",_=e.Children.count(p.children),x=0,C=(0,n.getPosition)(m.selectedItem,p),T=p.infiniteLoop?(0,n.getPosition)(_-1,p)-100:(0,n.getPosition)(_-1,p),I=b?c.x:c.y,H=I;C===x&&I>0&&(H=0),C===T&&I<0&&(H=0);var F=C+100/(m.itemSize/H),k=Math.abs(I)>p.swipeScrollTolerance;return p.infiniteLoop&&k&&(m.selectedItem===0&&F>-100?F-=_*100:m.selectedItem===_-1&&F<-_*100&&(F+=_*100)),(!p.preventMovementUntilSwipeScrollTolerance||k||m.swipeMovementStarted)&&(m.swipeMovementStarted||f({swipeMovementStarted:!0}),g.itemListStyle=(0,n.setPosition)(F,p.axis)),k&&!m.cancelClick&&f({cancelClick:!0}),g};rr.slideSwipeAnimationHandler=w;var S=function(c,p){var m=(0,n.getPosition)(p.selectedItem,c),f=(0,n.setPosition)(m,c.axis);return{itemListStyle:f}};rr.slideStopSwipingHandler=S;var y=function(c,p){var m=c.transitionTime+"ms",f="ease-in-out",g={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:f,msTransitionTimingFunction:f,MozTransitionTimingFunction:f,WebkitTransitionTimingFunction:f,OTransitionTimingFunction:f};return p.swiping||(g=u(u({},g),{},{WebkitTransitionDuration:m,MozTransitionDuration:m,OTransitionDuration:m,transitionDuration:m,msTransitionDuration:m})),{slideStyle:g,selectedStyle:u(u({},g),{},{opacity:1,position:"relative"}),prevStyle:u({},g)}};return rr.fadeAnimationHandler=y,rr}var yh;function qT(){if(yh)return Ni;yh=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=void 0;var e=y(U),r=w(rm()),n=w(nm()),o=w(om()),a=w(zT()),u=w(im()),l=am(),d=HT();function w(j){return j&&j.__esModule?j:{default:j}}function S(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return S=function(){return j},j}function y(j){if(j&&j.__esModule)return j;if(j===null||h(j)!=="object"&&typeof j!="function")return{default:j};var L=S();if(L&&L.has(j))return L.get(j);var B={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in j)if(Object.prototype.hasOwnProperty.call(j,R)){var J=q?Object.getOwnPropertyDescriptor(j,R):null;J&&(J.get||J.set)?Object.defineProperty(B,R,J):B[R]=j[R]}return B.default=j,L&&L.set(j,B),B}function h(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(B){return typeof B}:h=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},h(j)}function c(){return c=Object.assign||function(j){for(var L=1;L<arguments.length;L++){var B=arguments[L];for(var q in B)Object.prototype.hasOwnProperty.call(B,q)&&(j[q]=B[q])}return j},c.apply(this,arguments)}function p(j,L){var B=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);L&&(q=q.filter(function(R){return Object.getOwnPropertyDescriptor(j,R).enumerable})),B.push.apply(B,q)}return B}function m(j){for(var L=1;L<arguments.length;L++){var B=arguments[L]!=null?arguments[L]:{};L%2?p(Object(B),!0).forEach(function(q){k(j,q,B[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(B)):p(Object(B)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(B,q))})}return j}function f(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}function g(j,L){for(var B=0;B<L.length;B++){var q=L[B];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function b(j,L,B){return L&&g(j.prototype,L),j}function _(j,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(L&&L.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),L&&x(j,L)}function x(j,L){return x=Object.setPrototypeOf||function(q,R){return q.__proto__=R,q},x(j,L)}function C(j){var L=H();return function(){var q=F(j),R;if(L){var J=F(this).constructor;R=Reflect.construct(q,arguments,J)}else R=q.apply(this,arguments);return T(this,R)}}function T(j,L){return L&&(h(L)==="object"||typeof L=="function")?L:I(j)}function I(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function F(j){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},F(j)}function k(j,L,B){return L in j?Object.defineProperty(j,L,{value:B,enumerable:!0,configurable:!0,writable:!0}):j[L]=B,j}var X=function(j){_(B,j);var L=C(B);function B(q){var R;f(this,B),R=L.call(this,q),k(I(R),"thumbsRef",void 0),k(I(R),"carouselWrapperRef",void 0),k(I(R),"listRef",void 0),k(I(R),"itemsRef",void 0),k(I(R),"timer",void 0),k(I(R),"animationHandler",void 0),k(I(R),"setThumbsRef",function(V){R.thumbsRef=V}),k(I(R),"setCarouselWrapperRef",function(V){R.carouselWrapperRef=V}),k(I(R),"setListRef",function(V){R.listRef=V}),k(I(R),"setItemsRef",function(V,te){R.itemsRef||(R.itemsRef=[]),R.itemsRef[te]=V}),k(I(R),"autoPlay",function(){e.Children.count(R.props.children)<=1||(R.clearAutoPlay(),R.props.autoPlay&&(R.timer=setTimeout(function(){R.increment()},R.props.interval)))}),k(I(R),"clearAutoPlay",function(){R.timer&&clearTimeout(R.timer)}),k(I(R),"resetAutoPlay",function(){R.clearAutoPlay(),R.autoPlay()}),k(I(R),"stopOnHover",function(){R.setState({isMouseEntered:!0},R.clearAutoPlay)}),k(I(R),"startOnLeave",function(){R.setState({isMouseEntered:!1},R.autoPlay)}),k(I(R),"isFocusWithinTheCarousel",function(){return R.carouselWrapperRef?!!((0,a.default)().activeElement===R.carouselWrapperRef||R.carouselWrapperRef.contains((0,a.default)().activeElement)):!1}),k(I(R),"navigateWithKeyboard",function(V){if(R.isFocusWithinTheCarousel()){var te=R.props.axis,le=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},ee=le?Z.ArrowRight:Z.ArrowDown,ae=le?Z.ArrowLeft:Z.ArrowUp;ee===V.keyCode?R.increment():ae===V.keyCode&&R.decrement()}}),k(I(R),"updateSizes",function(){if(!(!R.state.initialized||!R.itemsRef||R.itemsRef.length===0)){var V=R.props.axis==="horizontal",te=R.itemsRef[0];if(te){var le=V?te.clientWidth:te.clientHeight;R.setState({itemSize:le}),R.thumbsRef&&R.thumbsRef.updateSizes()}}}),k(I(R),"setMountState",function(){R.setState({hasMount:!0}),R.updateSizes()}),k(I(R),"handleClickItem",function(V,te){if(e.Children.count(R.props.children)!==0){if(R.state.cancelClick){R.setState({cancelClick:!1});return}R.props.onClickItem(V,te),V!==R.state.selectedItem&&R.setState({selectedItem:V})}}),k(I(R),"handleOnChange",function(V,te){e.Children.count(R.props.children)<=1||R.props.onChange(V,te)}),k(I(R),"handleClickThumb",function(V,te){R.props.onClickThumb(V,te),R.moveTo(V)}),k(I(R),"onSwipeStart",function(V){R.setState({swiping:!0}),R.props.onSwipeStart(V)}),k(I(R),"onSwipeEnd",function(V){R.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),R.props.onSwipeEnd(V),R.clearAutoPlay(),R.state.autoPlay&&R.autoPlay()}),k(I(R),"onSwipeMove",function(V,te){R.props.onSwipeMove(te);var le=R.props.swipeAnimationHandler(V,R.props,R.state,R.setState.bind(I(R)));return R.setState(m({},le)),!!Object.keys(le).length}),k(I(R),"decrement",function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;R.moveTo(R.state.selectedItem-(typeof V=="number"?V:1))}),k(I(R),"increment",function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;R.moveTo(R.state.selectedItem+(typeof V=="number"?V:1))}),k(I(R),"moveTo",function(V){if(typeof V=="number"){var te=e.Children.count(R.props.children)-1;V<0&&(V=R.props.infiniteLoop?te:0),V>te&&(V=R.props.infiniteLoop?0:te),R.selectItem({selectedItem:V}),R.state.autoPlay&&R.state.isMouseEntered===!1&&R.resetAutoPlay()}}),k(I(R),"onClickNext",function(){R.increment(1)}),k(I(R),"onClickPrev",function(){R.decrement(1)}),k(I(R),"onSwipeForward",function(){R.increment(1),R.props.emulateTouch&&R.setState({cancelClick:!0})}),k(I(R),"onSwipeBackwards",function(){R.decrement(1),R.props.emulateTouch&&R.setState({cancelClick:!0})}),k(I(R),"changeItem",function(V){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&R.moveTo(V)}}),k(I(R),"selectItem",function(V){R.setState(m({previousItem:R.state.selectedItem},V),function(){R.setState(R.animationHandler(R.props,R.state))}),R.handleOnChange(V.selectedItem,e.Children.toArray(R.props.children)[V.selectedItem])}),k(I(R),"getInitialImage",function(){var V=R.props.selectedItem,te=R.itemsRef&&R.itemsRef[V],le=te&&te.getElementsByTagName("img")||[];return le[0]}),k(I(R),"getVariableItemHeight",function(V){var te=R.itemsRef&&R.itemsRef[V];if(R.state.hasMount&&te&&te.children.length){var le=te.children[0].getElementsByTagName("img")||[];if(le.length>0){var Z=le[0];if(!Z.complete){var ee=function oe(){R.forceUpdate(),Z.removeEventListener("load",oe)};Z.addEventListener("load",ee)}}var ae=le[0]||te.children[0],ce=ae.clientHeight;return ce>0?ce:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return R.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&d.fadeAnimationHandler||d.slideAnimationHandler,R.state=m(m({},J),R.animationHandler(q,J)),R}return b(B,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(R,J){!R.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!R.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(m({},this.props.stopSwipingHandler(this.props,this.state))),(R.selectedItem!==this.props.selectedItem||R.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),R.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var R=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var J=R.getInitialImage();J&&!J.complete?J.addEventListener("load",R.setMountState):R.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var R=this.carouselWrapperRef;this.props.stopOnHover&&R&&(R.addEventListener("mouseenter",this.stopOnHover),R.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var R=this.carouselWrapperRef;this.props.stopOnHover&&R&&(R.removeEventListener("mouseenter",this.stopOnHover),R.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,a.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var R=this.getInitialImage();R&&R.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,a.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var R;(R=this.carouselWrapperRef)===null||R===void 0||R.focus()}},{key:"renderItems",value:function(R){var J=this;return this.props.children?e.Children.map(this.props.children,function(V,te){var le=te===J.state.selectedItem,Z=te===J.state.previousItem,ee=le&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(ee=m(m({},ee),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(ee=m(m({},ee),{},{pointerEvents:"none"}));var ae={ref:function(oe){return J.setItemsRef(oe,te)},key:"itemKey"+te+(R?"clone":""),className:n.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,V),style:ee};return e.default.createElement("li",ae,J.props.renderItem(V,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var R=this,J=this.props,V=J.showIndicators,te=J.labels,le=J.renderIndicator,Z=J.children;return V?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(ee,ae){return le&&le(R.changeItem(ae),ae===R.state.selectedItem,ae,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(o.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var R=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,V=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,le=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,ee=this.renderItems(!0),ae=ee.shift(),ce=ee.pop(),oe={className:n.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},fe={};if(V){if(oe.onSwipeLeft=this.onSwipeForward,oe.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var pe=this.getVariableItemHeight(this.state.selectedItem);fe.height=pe||"auto"}}else oe.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,oe.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,oe.style=m(m({},oe.style),{},{height:this.state.itemSize}),fe.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:n.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:n.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,le,this.props.labels.leftArrow),e.default.createElement("div",{className:n.default.WRAPPER(!0,this.props.axis),style:fe},J?e.default.createElement(r.default,c({tagName:"ul",innerRef:this.setListRef},oe,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ce,this.renderItems(),this.props.infiniteLoop&&ae):e.default.createElement("ul",{className:n.default.SLIDER(!0,this.state.swiping),ref:function(ge){return R.setListRef(ge)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ce,this.renderItems(),this.props.infiniteLoop&&ae)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B}(e.default.Component);return Ni.default=X,k(X,"displayName","Carousel"),k(X,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(L,B,q){return e.default.createElement("button",{type:"button","aria-label":q,className:n.default.ARROW_PREV(!B),onClick:L})},renderArrowNext:function(L,B,q){return e.default.createElement("button",{type:"button","aria-label":q,className:n.default.ARROW_NEXT(!B),onClick:L})},renderIndicator:function(L,B,q,R){return e.default.createElement("li",{className:n.default.DOT(B),onClick:L,onKeyDown:L,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(R," ").concat(q+1)})},renderItem:function(L){return L},renderThumbs:function(L){var B=e.Children.map(L,function(q){var R=q;if(q.type!=="img"&&(R=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!R)return R});return B.filter(function(q){return q}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):B},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:d.slideSwipeAnimationHandler,stopSwipingHandler:d.slideStopSwipingHandler}),Ni}var wh={},bh;function ZT(){return bh||(bh=1),wh}var Sh;function GT(){return Sh||(Sh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return n.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var r=a(qT()),n=ZT(),o=a(om());function a(u){return u&&u.__esModule?u:{default:u}}}(Wu)),Wu}var KT=GT();const VT=({tip:e})=>W.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:sm(e,!0)}),YT=({pages:e})=>W.jsx("div",{className:"min-h-[10rem] w-96",children:W.jsx(KT.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>W.jsx(VT,{tip:r},r.key))})}),XT=({body:e,isInsideCarousel:r})=>W.jsx("article",{className:Ye(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!r}]),children:W.jsx(Fa,{children:e,options:{overrides:{a:{component:({children:n,...o})=>W.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[n,W.jsx(rt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),JT=({video:e,body:r,title:n,isInsideCarousel:o})=>W.jsxs("div",{className:Ye([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[W.jsx("div",{className:Ye([{"mr-1":!o,"mb-1":o}]),children:W.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),W.jsx("article",{className:Ye(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:W.jsx(Fa,{children:r||"",options:{overrides:{a:{component:({children:a,...u})=>W.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,W.jsx(rt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),sm=(e,r)=>{switch(e.type){case Ra.TEXT:return W.jsx(XT,{body:e.body,isInsideCarousel:r});case Ra.VIDEO:return W.jsx(JT,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case Ra.CAROUSEL:return W.jsx(YT,{pages:e.pages})}},um=U.createContext(void 0);function Eh(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const QT=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=U.useState({tips:{},show:!0});U.useEffect(()=>{const d=new AbortController;try{fetch(`${n}/tips.json`,{signal:d.signal}).then(w=>w.json()).then(w=>{const S=w.reduce((y,h)=>Eh(w,h.key).length>1?{...y,[h.key]:{type:"carousel",pages:Eh(w,h.key)}}:{...y,[h.key]:h},{});u(y=>({...y,tips:S}))})}catch{}return()=>{d.abort()}},[]);const l=()=>{u(d=>({...d,show:!a}))};return W.jsx(um.Provider,{value:{tips:o,toggleTips:l,show:a,enabled:r},children:e})},lm=e=>{const r=U.useContext(um);if(r===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?r.tips[e]:null,toggleTips:r.toggleTips,show:r.show,enabled:r.enabled}},eC=Da(MT)`
77
77
  &[data-state='open'] > * {
78
78
  display: block !important;
79
79
  }
80
- `,eC=({tipKey:e,side:r="right",alwaysOn:n,asButton:o=!1})=>{const{tip:a,enabled:u}=um(e),[l,d]=U.useState(!1),w=U.useRef(null);return U.useEffect(()=>{if(w.current){const S=new IntersectionObserver(y=>{y[0].isIntersecting||d(!1)});return S.observe(w.current),()=>{w.current&&S.unobserve(w.current)}}},[]),a&&u?W.jsxs(RT,{open:l,onOpenChange:d,children:[W.jsx(QT,{ref:w,className:Ye("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":o}),onClick:S=>S.stopPropagation(),children:W.jsx("span",{className:Ye("group-hover:block",{hidden:!n}),children:W.jsx(rt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),W.jsx(IT,{side:r,sideOffset:5,onClick:S=>S.stopPropagation(),children:W.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:am(a)})})]}):null};var tC=Object.defineProperty,rC=(e,r,n)=>r in e?tC(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Gu=(e,r,n)=>(rC(e,typeof r!="symbol"?r+"":r,n),n);let nC=class{constructor(){Gu(this,"current",this.detect()),Gu(this,"handoffState","pending"),Gu(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Xn=new nC,mr=(e,r)=>{Xn.isServer?U.useEffect(e,r):U.useLayoutEffect(e,r)};function Jn(e){let r=U.useRef(e);return mr(()=>{r.current=e},[e]),r}let vt=function(e){let r=Jn(e);return U.useCallback((...n)=>r.current(...n),[r])};function iC(e,r,n){let[o,a]=U.useState(n),u=e!==void 0,l=U.useRef(u),d=U.useRef(!1),w=U.useRef(!1);return u&&!l.current&&!d.current?(d.current=!0,l.current=u,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!u&&l.current&&!w.current&&(w.current=!0,l.current=u,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[u?e:o,vt(S=>(u||a(S),r==null?void 0:r(S)))]}function oC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(r=>setTimeout(()=>{throw r}))}function fo(){let e=[],r={addEventListener(n,o,a,u){return n.addEventListener(o,a,u),r.add(()=>n.removeEventListener(o,a,u))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return r.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return r.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return oC(()=>{o.current&&n[0]()}),r.add(()=>{o.current=!1})},style(n,o,a){let u=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:a}),this.add(()=>{Object.assign(n.style,{[o]:u})})},group(n){let o=fo();return n(o),this.add(()=>o.dispose())},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0)for(let a of e.splice(o,1))a()}},dispose(){for(let n of e.splice(0))n()}};return r}function Wl(){let[e]=U.useState(fo);return U.useEffect(()=>()=>e.dispose(),[e]),e}function aC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(r=>r.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function Ul(){let e=aC(),[r,n]=$.useState(Xn.isHandoffComplete);return r&&Xn.isHandoffComplete===!1&&n(!1),$.useEffect(()=>{r!==!0&&n(!0)},[r]),$.useEffect(()=>Xn.handoff(),[]),e?!1:r}var Eh;let Bl=(Eh=U.useId)!=null?Eh:function(){let e=Ul(),[r,n]=U.useState(e?()=>Xn.nextId():null);return mr(()=>{r===null&&n(Xn.nextId())},[r]),r!=null?""+r:void 0};function pr(e,r,...n){if(e in r){let a=r[e];return typeof a=="function"?a(...n):a}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,pr),o}function _h(e){var r;if(e.type)return e.type;let n=(r=e.as)!=null?r:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function sC(e,r){let[n,o]=U.useState(()=>_h(e));return mr(()=>{o(_h(e))},[e.type,e.as]),mr(()=>{n||r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&o("button")},[n,r]),n}let uC=Symbol();function po(...e){let r=U.useRef(e);U.useEffect(()=>{r.current=e},[e]);let n=vt(o=>{for(let a of r.current)a!=null&&(typeof a=="function"?a(o):a.current=o)});return e.every(o=>o==null||(o==null?void 0:o[uC]))?void 0:n}function Na(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}var lm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(lm||{}),Qr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qr||{});function Pn({ourProps:e,theirProps:r,slot:n,defaultTag:o,features:a,visible:u=!0,name:l,mergeRefs:d}){d=d??lC;let w=cm(r,e);if(u)return Sa(w,n,o,l,d);let S=a??0;if(S&2){let{static:y=!1,...h}=w;if(y)return Sa(h,n,o,l,d)}if(S&1){let{unmount:y=!0,...h}=w;return pr(y?0:1,{0(){return null},1(){return Sa({...h,hidden:!0,style:{display:"none"}},n,o,l,d)}})}return Sa(w,n,o,l,d)}function Sa(e,r={},n,o,a){let{as:u=n,children:l,refName:d="ref",...w}=Ku(e,["unmount","static"]),S=e.ref!==void 0?{[d]:e.ref}:{},y=typeof l=="function"?l(r):l;"className"in w&&w.className&&typeof w.className=="function"&&(w.className=w.className(r));let h={};if(r){let c=!1,p=[];for(let[m,f]of Object.entries(r))typeof f=="boolean"&&(c=!0),f===!0&&p.push(m);c&&(h["data-headlessui-state"]=p.join(" "))}if(u===U.Fragment&&Object.keys(gl(w)).length>0){if(!U.isValidElement(y)||Array.isArray(y)&&y.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(w).map(f=>` - ${f}`).join(`
80
+ `,tC=({tipKey:e,side:r="right",alwaysOn:n,asButton:o=!1})=>{const{tip:a,enabled:u}=lm(e),[l,d]=U.useState(!1),w=U.useRef(null);return U.useEffect(()=>{if(w.current){const S=new IntersectionObserver(y=>{y[0].isIntersecting||d(!1)});return S.observe(w.current),()=>{w.current&&S.unobserve(w.current)}}},[]),a&&u?W.jsxs(IT,{open:l,onOpenChange:d,children:[W.jsx(eC,{ref:w,className:Ye("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":o}),onClick:S=>S.stopPropagation(),children:W.jsx("span",{className:Ye("group-hover:block",{hidden:!n}),children:W.jsx(rt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),W.jsx(LT,{side:r,sideOffset:5,onClick:S=>S.stopPropagation(),children:W.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:sm(a)})})]}):null};var rC=Object.defineProperty,nC=(e,r,n)=>r in e?rC(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Gu=(e,r,n)=>(nC(e,typeof r!="symbol"?r+"":r,n),n);let iC=class{constructor(){Gu(this,"current",this.detect()),Gu(this,"handoffState","pending"),Gu(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Xn=new iC,mr=(e,r)=>{Xn.isServer?U.useEffect(e,r):U.useLayoutEffect(e,r)};function Jn(e){let r=U.useRef(e);return mr(()=>{r.current=e},[e]),r}let mt=function(e){let r=Jn(e);return U.useCallback((...n)=>r.current(...n),[r])};function oC(e,r,n){let[o,a]=U.useState(n),u=e!==void 0,l=U.useRef(u),d=U.useRef(!1),w=U.useRef(!1);return u&&!l.current&&!d.current?(d.current=!0,l.current=u,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!u&&l.current&&!w.current&&(w.current=!0,l.current=u,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[u?e:o,mt(S=>(u||a(S),r==null?void 0:r(S)))]}function aC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(r=>setTimeout(()=>{throw r}))}function fo(){let e=[],r={addEventListener(n,o,a,u){return n.addEventListener(o,a,u),r.add(()=>n.removeEventListener(o,a,u))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return r.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return r.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return aC(()=>{o.current&&n[0]()}),r.add(()=>{o.current=!1})},style(n,o,a){let u=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:a}),this.add(()=>{Object.assign(n.style,{[o]:u})})},group(n){let o=fo();return n(o),this.add(()=>o.dispose())},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0)for(let a of e.splice(o,1))a()}},dispose(){for(let n of e.splice(0))n()}};return r}function Wl(){let[e]=U.useState(fo);return U.useEffect(()=>()=>e.dispose(),[e]),e}function sC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(r=>r.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function Ul(){let e=sC(),[r,n]=$.useState(Xn.isHandoffComplete);return r&&Xn.isHandoffComplete===!1&&n(!1),$.useEffect(()=>{r!==!0&&n(!0)},[r]),$.useEffect(()=>Xn.handoff(),[]),e?!1:r}var _h;let Bl=(_h=U.useId)!=null?_h:function(){let e=Ul(),[r,n]=U.useState(e?()=>Xn.nextId():null);return mr(()=>{r===null&&n(Xn.nextId())},[r]),r!=null?""+r:void 0};function pr(e,r,...n){if(e in r){let a=r[e];return typeof a=="function"?a(...n):a}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,pr),o}function xh(e){var r;if(e.type)return e.type;let n=(r=e.as)!=null?r:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function uC(e,r){let[n,o]=U.useState(()=>xh(e));return mr(()=>{o(xh(e))},[e.type,e.as]),mr(()=>{n||r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&o("button")},[n,r]),n}let lC=Symbol();function po(...e){let r=U.useRef(e);U.useEffect(()=>{r.current=e},[e]);let n=mt(o=>{for(let a of r.current)a!=null&&(typeof a=="function"?a(o):a.current=o)});return e.every(o=>o==null||(o==null?void 0:o[lC]))?void 0:n}function Na(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}var cm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(cm||{}),Qr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qr||{});function Pn({ourProps:e,theirProps:r,slot:n,defaultTag:o,features:a,visible:u=!0,name:l,mergeRefs:d}){d=d??cC;let w=fm(r,e);if(u)return Sa(w,n,o,l,d);let S=a??0;if(S&2){let{static:y=!1,...h}=w;if(y)return Sa(h,n,o,l,d)}if(S&1){let{unmount:y=!0,...h}=w;return pr(y?0:1,{0(){return null},1(){return Sa({...h,hidden:!0,style:{display:"none"}},n,o,l,d)}})}return Sa(w,n,o,l,d)}function Sa(e,r={},n,o,a){let{as:u=n,children:l,refName:d="ref",...w}=Ku(e,["unmount","static"]),S=e.ref!==void 0?{[d]:e.ref}:{},y=typeof l=="function"?l(r):l;"className"in w&&w.className&&typeof w.className=="function"&&(w.className=w.className(r));let h={};if(r){let c=!1,p=[];for(let[m,f]of Object.entries(r))typeof f=="boolean"&&(c=!0),f===!0&&p.push(m);c&&(h["data-headlessui-state"]=p.join(" "))}if(u===U.Fragment&&Object.keys(gl(w)).length>0){if(!U.isValidElement(y)||Array.isArray(y)&&y.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(w).map(f=>` - ${f}`).join(`
81
81
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(f=>` - ${f}`).join(`
82
82
  `)].join(`
83
- `));let c=y.props,p=typeof(c==null?void 0:c.className)=="function"?(...f)=>Na(c==null?void 0:c.className(...f),w.className):Na(c==null?void 0:c.className,w.className),m=p?{className:p}:{};return U.cloneElement(y,Object.assign({},cm(y.props,gl(Ku(w,["ref"]))),h,S,{ref:a(y.ref,S.ref)},m))}return U.createElement(u,Object.assign({},Ku(w,["ref"]),u!==U.Fragment&&S,u!==U.Fragment&&h),y)}function lC(...e){return e.every(r=>r==null)?void 0:r=>{for(let n of e)n!=null&&(typeof n=="function"?n(r):n.current=r)}}function cm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let o of e)for(let a in o)a.startsWith("on")&&typeof o[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(o[a])):r[a]=o[a];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(r,{[o](a,...u){let l=n[o];for(let d of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;d(a,...u)}}});return r}function Rn(e){var r;return Object.assign(U.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function gl(e){let r=Object.assign({},e);for(let n in r)r[n]===void 0&&delete r[n];return r}function Ku(e,r=[]){let n=Object.assign({},e);for(let o of r)o in n&&delete n[o];return n}let cC="div";var fm=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(fm||{});function fC(e,r){var n;let{features:o=1,...a}=e,u={ref:r,"aria-hidden":(o&2)===2?!0:(n=a["aria-hidden"])!=null?n:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return Pn({ourProps:u,theirProps:a,slot:{},defaultTag:cC,name:"Hidden"})}let dC=Rn(fC),zl=U.createContext(null);zl.displayName="OpenClosedContext";var Pr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pr||{});function dm(){return U.useContext(zl)}function pC({value:e,children:r}){return U.createElement(zl.Provider,{value:e},r)}function hC(e){let r=e.parentElement,n=null;for(;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(n=r),r=r.parentElement;let o=(r==null?void 0:r.getAttribute("disabled"))==="";return o&&vC(n)?!1:o}function vC(e){if(!e)return!1;let r=e.previousElementSibling;for(;r!==null;){if(r instanceof HTMLLegendElement)return!1;r=r.previousElementSibling}return!0}function mC(e){var r,n;let o=(r=e==null?void 0:e.form)!=null?r:e.closest("form");if(o){for(let a of o.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(n=o.requestSubmit)==null||n.call(o)}}var yl=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(yl||{});function Hl(){let e=U.useRef(!1);return mr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let pm=U.createContext(null);function hm(){let e=U.useContext(pm);if(e===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,hm),r}return e}function gC(){let[e,r]=U.useState([]);return[e.length>0?e.join(" "):void 0,U.useMemo(()=>function(n){let o=vt(u=>(r(l=>[...l,u]),()=>r(l=>{let d=l.slice(),w=d.indexOf(u);return w!==-1&&d.splice(w,1),d}))),a=U.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return U.createElement(pm.Provider,{value:a},n.children)},[r])]}let yC="p";function wC(e,r){let n=Bl(),{id:o=`headlessui-description-${n}`,...a}=e,u=hm(),l=po(r);mr(()=>u.register(o),[o,u.register]);let d={ref:l,...u.props,id:o};return Pn({ourProps:d,theirProps:a,slot:u.slot||{},defaultTag:yC,name:u.name||"Description"})}let bC=Rn(wC),SC=Object.assign(bC,{}),vm=U.createContext(null);function mm(){let e=U.useContext(vm);if(e===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,mm),r}return e}function EC(){let[e,r]=U.useState([]);return[e.length>0?e.join(" "):void 0,U.useMemo(()=>function(n){let o=vt(u=>(r(l=>[...l,u]),()=>r(l=>{let d=l.slice(),w=d.indexOf(u);return w!==-1&&d.splice(w,1),d}))),a=U.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return U.createElement(vm.Provider,{value:a},n.children)},[r])]}let _C="label";function xC(e,r){let n=Bl(),{id:o=`headlessui-label-${n}`,passive:a=!1,...u}=e,l=mm(),d=po(r);mr(()=>l.register(o),[o,l.register]);let w={ref:d,...l.props,id:o};return a&&("onClick"in w&&(delete w.htmlFor,delete w.onClick),"onClick"in u&&delete u.onClick),Pn({ourProps:w,theirProps:u,slot:l.slot||{},defaultTag:_C,name:l.name||"Label"})}let OC=Rn(xC),AC=Object.assign(OC,{});function TC(e=0){let[r,n]=U.useState(e),o=Hl(),a=U.useCallback(w=>{o.current&&n(S=>S|w)},[r,o]),u=U.useCallback(w=>!!(r&w),[r]),l=U.useCallback(w=>{o.current&&n(S=>S&~w)},[n,o]),d=U.useCallback(w=>{o.current&&n(S=>S^w)},[n]);return{flags:r,addFlag:a,hasFlag:u,removeFlag:l,toggleFlag:d}}let ql=U.createContext(null);ql.displayName="GroupContext";let CC=U.Fragment;function PC(e){var r;let[n,o]=U.useState(null),[a,u]=EC(),[l,d]=gC(),w=U.useMemo(()=>({switch:n,setSwitch:o,labelledby:a,describedby:l}),[n,o,a,l]),S={},y=e;return U.createElement(d,{name:"Switch.Description"},U.createElement(u,{name:"Switch.Label",props:{htmlFor:(r=w.switch)==null?void 0:r.id,onClick(h){n&&(h.currentTarget.tagName==="LABEL"&&h.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},U.createElement(ql.Provider,{value:w},Pn({ourProps:S,theirProps:y,defaultTag:CC,name:"Switch.Group"}))))}let RC="button";function MC(e,r){var n;let o=Bl(),{id:a=`headlessui-switch-${o}`,checked:u,defaultChecked:l=!1,onChange:d,disabled:w=!1,name:S,value:y,form:h,...c}=e,p=U.useContext(ql),m=U.useRef(null),f=po(m,r,p===null?null:p.setSwitch),[g,b]=iC(u,d,l),_=vt(()=>b==null?void 0:b(!g)),x=vt(k=>{if(hC(k.currentTarget))return k.preventDefault();k.preventDefault(),_()}),C=vt(k=>{k.key===yl.Space?(k.preventDefault(),_()):k.key===yl.Enter&&mC(k.currentTarget)}),T=vt(k=>k.preventDefault()),M=U.useMemo(()=>({checked:g}),[g]),H={id:a,ref:f,role:"switch",type:sC(e,m),tabIndex:e.tabIndex===-1?0:(n=e.tabIndex)!=null?n:0,"aria-checked":g,"aria-labelledby":p==null?void 0:p.labelledby,"aria-describedby":p==null?void 0:p.describedby,disabled:w,onClick:x,onKeyUp:C,onKeyPress:T},L=Wl();return U.useEffect(()=>{var k;let X=(k=m.current)==null?void 0:k.closest("form");X&&l!==void 0&&L.addEventListener(X,"reset",()=>{b(l)})},[m,b]),U.createElement(U.Fragment,null,S!=null&&g&&U.createElement(dC,{features:fm.Hidden,...gl({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:w,form:h,checked:g,name:S,value:y})}),Pn({ourProps:H,theirProps:c,slot:M,defaultTag:RC,name:"Switch"}))}let IC=Rn(MC),FC=PC,LC=Object.assign(IC,{Group:FC,Label:AC,Description:SC});function DC(e){let r={called:!1};return(...n)=>{if(!r.called)return r.called=!0,e(...n)}}function Vu(e,...r){e&&r.length>0&&e.classList.add(...r)}function Yu(e,...r){e&&r.length>0&&e.classList.remove(...r)}function $C(e,r){let n=fo();if(!e)return n.dispose;let{transitionDuration:o,transitionDelay:a}=getComputedStyle(e),[u,l]=[o,a].map(w=>{let[S=0]=w.split(",").filter(Boolean).map(y=>y.includes("ms")?parseFloat(y):parseFloat(y)*1e3).sort((y,h)=>h-y);return S}),d=u+l;if(d!==0){n.group(S=>{S.setTimeout(()=>{r(),S.dispose()},d),S.addEventListener(e,"transitionrun",y=>{y.target===y.currentTarget&&S.dispose()})});let w=n.addEventListener(e,"transitionend",S=>{S.target===S.currentTarget&&(r(),w())})}else r();return n.add(()=>r()),n.dispose}function NC(e,r,n,o){let a=n?"enter":"leave",u=fo(),l=o!==void 0?DC(o):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let d=pr(a,{enter:()=>r.enter,leave:()=>r.leave}),w=pr(a,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),S=pr(a,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom});return Yu(e,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),Vu(e,...r.base,...d,...S),u.nextFrame(()=>{Yu(e,...r.base,...d,...S),Vu(e,...r.base,...d,...w),$C(e,()=>(Yu(e,...r.base,...d),Vu(e,...r.base,...r.entered),l()))}),u.dispose}function kC({immediate:e,container:r,direction:n,classes:o,onStart:a,onStop:u}){let l=Hl(),d=Wl(),w=Jn(n);mr(()=>{e&&(w.current="enter")},[e]),mr(()=>{let S=fo();d.add(S.dispose);let y=r.current;if(y&&w.current!=="idle"&&l.current)return S.dispose(),a.current(w.current),S.add(NC(y,o.current,w.current==="enter",()=>{S.dispose(),u.current(w.current)})),S.dispose},[n])}function Yr(e=""){return e.split(/\s+/).filter(r=>r.length>1)}let Ka=U.createContext(null);Ka.displayName="TransitionContext";var jC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(jC||{});function WC(){let e=U.useContext(Ka);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function UC(){let e=U.useContext(Va);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Va=U.createContext(null);Va.displayName="NestingContext";function Ya(e){return"children"in e?Ya(e.children):e.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function gm(e,r){let n=Jn(e),o=U.useRef([]),a=Hl(),u=Wl(),l=vt((p,m=Qr.Hidden)=>{let f=o.current.findIndex(({el:g})=>g===p);f!==-1&&(pr(m,{[Qr.Unmount](){o.current.splice(f,1)},[Qr.Hidden](){o.current[f].state="hidden"}}),u.microTask(()=>{var g;!Ya(o)&&a.current&&((g=n.current)==null||g.call(n))}))}),d=vt(p=>{let m=o.current.find(({el:f})=>f===p);return m?m.state!=="visible"&&(m.state="visible"):o.current.push({el:p,state:"visible"}),()=>l(p,Qr.Unmount)}),w=U.useRef([]),S=U.useRef(Promise.resolve()),y=U.useRef({enter:[],leave:[],idle:[]}),h=vt((p,m,f)=>{w.current.splice(0),r&&(r.chains.current[m]=r.chains.current[m].filter(([g])=>g!==p)),r==null||r.chains.current[m].push([p,new Promise(g=>{w.current.push(g)})]),r==null||r.chains.current[m].push([p,new Promise(g=>{Promise.all(y.current[m].map(([b,_])=>_)).then(()=>g())})]),m==="enter"?S.current=S.current.then(()=>r==null?void 0:r.wait.current).then(()=>f(m)):f(m)}),c=vt((p,m,f)=>{Promise.all(y.current[m].splice(0).map(([g,b])=>b)).then(()=>{var g;(g=w.current.shift())==null||g()}).then(()=>f(m))});return U.useMemo(()=>({children:o,register:d,unregister:l,onStart:h,onStop:c,wait:S,chains:y}),[d,l,o,h,c,y,S])}function BC(){}let zC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function xh(e){var r;let n={};for(let o of zC)n[o]=(r=e[o])!=null?r:BC;return n}function HC(e){let r=U.useRef(xh(e));return U.useEffect(()=>{r.current=xh(e)},[e]),r}let qC="div",ym=lm.RenderStrategy;function ZC(e,r){var n,o;let{beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:d,enter:w,enterFrom:S,enterTo:y,entered:h,leave:c,leaveFrom:p,leaveTo:m,...f}=e,g=U.useRef(null),b=po(g,r),_=(n=f.unmount)==null||n?Qr.Unmount:Qr.Hidden,{show:x,appear:C,initial:T}=WC(),[M,H]=U.useState(x?"visible":"hidden"),L=UC(),{register:k,unregister:X}=L;U.useEffect(()=>k(g),[k,g]),U.useEffect(()=>{if(_===Qr.Hidden&&g.current){if(x&&M!=="visible"){H("visible");return}return pr(M,{hidden:()=>X(g),visible:()=>k(g)})}},[M,g,k,X,x,_]);let j=Jn({base:Yr(f.className),enter:Yr(w),enterFrom:Yr(S),enterTo:Yr(y),entered:Yr(h),leave:Yr(c),leaveFrom:Yr(p),leaveTo:Yr(m)}),F=HC({beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:d}),B=Ul();U.useEffect(()=>{if(B&&M==="visible"&&g.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[g,M,B]);let q=T&&!C,R=C&&x&&T,J=!B||q?"idle":x?"enter":"leave",V=TC(0),te=vt(oe=>pr(oe,{enter:()=>{V.addFlag(Pr.Opening),F.current.beforeEnter()},leave:()=>{V.addFlag(Pr.Closing),F.current.beforeLeave()},idle:()=>{}})),le=vt(oe=>pr(oe,{enter:()=>{V.removeFlag(Pr.Opening),F.current.afterEnter()},leave:()=>{V.removeFlag(Pr.Closing),F.current.afterLeave()},idle:()=>{}})),Z=gm(()=>{H("hidden"),X(g)},L),ee=U.useRef(!1);kC({immediate:R,container:g,classes:j,direction:J,onStart:Jn(oe=>{ee.current=!0,Z.onStart(g,oe,te)}),onStop:Jn(oe=>{ee.current=!1,Z.onStop(g,oe,le),oe==="leave"&&!Ya(Z)&&(H("hidden"),X(g))})});let ae=f,ce={ref:b};return R?ae={...ae,className:Na(f.className,...j.current.enter,...j.current.enterFrom)}:ee.current&&(ae.className=Na(f.className,(o=g.current)==null?void 0:o.className),ae.className===""&&delete ae.className),U.createElement(Va.Provider,{value:Z},U.createElement(pC,{value:pr(M,{visible:Pr.Open,hidden:Pr.Closed})|V.flags},Pn({ourProps:ce,theirProps:ae,defaultTag:qC,features:ym,visible:M==="visible",name:"Transition.Child"})))}function GC(e,r){let{show:n,appear:o=!1,unmount:a=!0,...u}=e,l=U.useRef(null),d=po(l,r);Ul();let w=dm();if(n===void 0&&w!==null&&(n=(w&Pr.Open)===Pr.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[S,y]=U.useState(n?"visible":"hidden"),h=gm(()=>{y("hidden")}),[c,p]=U.useState(!0),m=U.useRef([n]);mr(()=>{c!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))},[m,n]);let f=U.useMemo(()=>({show:n,appear:o,initial:c}),[n,o,c]);U.useEffect(()=>{if(n)y("visible");else if(!Ya(h))y("hidden");else{let x=l.current;if(!x)return;let C=x.getBoundingClientRect();C.x===0&&C.y===0&&C.width===0&&C.height===0&&y("hidden")}},[n,h]);let g={unmount:a},b=vt(()=>{var x;c&&p(!1),(x=e.beforeEnter)==null||x.call(e)}),_=vt(()=>{var x;c&&p(!1),(x=e.beforeLeave)==null||x.call(e)});return U.createElement(Va.Provider,{value:h},U.createElement(Ka.Provider,{value:f},Pn({ourProps:{...g,as:U.Fragment,children:U.createElement(wm,{ref:d,...g,...u,beforeEnter:b,beforeLeave:_})},theirProps:{},defaultTag:U.Fragment,features:ym,visible:S==="visible",name:"Transition"})))}function KC(e,r){let n=U.useContext(Ka)!==null,o=dm()!==null;return U.createElement(U.Fragment,null,!n&&o?U.createElement(wl,{ref:r,...e}):U.createElement(wm,{ref:r,...e}))}let wl=Rn(GC),wm=Rn(ZC),VC=Rn(KC),ka=Object.assign(wl,{Child:VC,Root:wl});const Xu={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},bm=U.forwardRef(({onChange:e,value:r,size:n="md",className:o="ml-auto"},a)=>{const u=l=>{e(l)};return W.jsx("div",{className:Ye("flex items-center",o),children:W.jsx(LC,{as:"span",ref:a,checked:r,onChange:u,onKeyDown:l=>{l.key==="Enter"&&u(!r)},className:`${r?"bg-primary-dark":"bg-grey-200"}
83
+ `));let c=y.props,p=typeof(c==null?void 0:c.className)=="function"?(...f)=>Na(c==null?void 0:c.className(...f),w.className):Na(c==null?void 0:c.className,w.className),m=p?{className:p}:{};return U.cloneElement(y,Object.assign({},fm(y.props,gl(Ku(w,["ref"]))),h,S,{ref:a(y.ref,S.ref)},m))}return U.createElement(u,Object.assign({},Ku(w,["ref"]),u!==U.Fragment&&S,u!==U.Fragment&&h),y)}function cC(...e){return e.every(r=>r==null)?void 0:r=>{for(let n of e)n!=null&&(typeof n=="function"?n(r):n.current=r)}}function fm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let o of e)for(let a in o)a.startsWith("on")&&typeof o[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(o[a])):r[a]=o[a];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(r,{[o](a,...u){let l=n[o];for(let d of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;d(a,...u)}}});return r}function Rn(e){var r;return Object.assign(U.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function gl(e){let r=Object.assign({},e);for(let n in r)r[n]===void 0&&delete r[n];return r}function Ku(e,r=[]){let n=Object.assign({},e);for(let o of r)o in n&&delete n[o];return n}let fC="div";var dm=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(dm||{});function dC(e,r){var n;let{features:o=1,...a}=e,u={ref:r,"aria-hidden":(o&2)===2?!0:(n=a["aria-hidden"])!=null?n:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return Pn({ourProps:u,theirProps:a,slot:{},defaultTag:fC,name:"Hidden"})}let pC=Rn(dC),zl=U.createContext(null);zl.displayName="OpenClosedContext";var Pr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pr||{});function pm(){return U.useContext(zl)}function hC({value:e,children:r}){return U.createElement(zl.Provider,{value:e},r)}function vC(e){let r=e.parentElement,n=null;for(;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(n=r),r=r.parentElement;let o=(r==null?void 0:r.getAttribute("disabled"))==="";return o&&mC(n)?!1:o}function mC(e){if(!e)return!1;let r=e.previousElementSibling;for(;r!==null;){if(r instanceof HTMLLegendElement)return!1;r=r.previousElementSibling}return!0}function gC(e){var r,n;let o=(r=e==null?void 0:e.form)!=null?r:e.closest("form");if(o){for(let a of o.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(n=o.requestSubmit)==null||n.call(o)}}var yl=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(yl||{});function Hl(){let e=U.useRef(!1);return mr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let hm=U.createContext(null);function vm(){let e=U.useContext(hm);if(e===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,vm),r}return e}function yC(){let[e,r]=U.useState([]);return[e.length>0?e.join(" "):void 0,U.useMemo(()=>function(n){let o=mt(u=>(r(l=>[...l,u]),()=>r(l=>{let d=l.slice(),w=d.indexOf(u);return w!==-1&&d.splice(w,1),d}))),a=U.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return U.createElement(hm.Provider,{value:a},n.children)},[r])]}let wC="p";function bC(e,r){let n=Bl(),{id:o=`headlessui-description-${n}`,...a}=e,u=vm(),l=po(r);mr(()=>u.register(o),[o,u.register]);let d={ref:l,...u.props,id:o};return Pn({ourProps:d,theirProps:a,slot:u.slot||{},defaultTag:wC,name:u.name||"Description"})}let SC=Rn(bC),EC=Object.assign(SC,{}),mm=U.createContext(null);function gm(){let e=U.useContext(mm);if(e===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,gm),r}return e}function _C(){let[e,r]=U.useState([]);return[e.length>0?e.join(" "):void 0,U.useMemo(()=>function(n){let o=mt(u=>(r(l=>[...l,u]),()=>r(l=>{let d=l.slice(),w=d.indexOf(u);return w!==-1&&d.splice(w,1),d}))),a=U.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return U.createElement(mm.Provider,{value:a},n.children)},[r])]}let xC="label";function OC(e,r){let n=Bl(),{id:o=`headlessui-label-${n}`,passive:a=!1,...u}=e,l=gm(),d=po(r);mr(()=>l.register(o),[o,l.register]);let w={ref:d,...l.props,id:o};return a&&("onClick"in w&&(delete w.htmlFor,delete w.onClick),"onClick"in u&&delete u.onClick),Pn({ourProps:w,theirProps:u,slot:l.slot||{},defaultTag:xC,name:l.name||"Label"})}let AC=Rn(OC),TC=Object.assign(AC,{});function CC(e=0){let[r,n]=U.useState(e),o=Hl(),a=U.useCallback(w=>{o.current&&n(S=>S|w)},[r,o]),u=U.useCallback(w=>!!(r&w),[r]),l=U.useCallback(w=>{o.current&&n(S=>S&~w)},[n,o]),d=U.useCallback(w=>{o.current&&n(S=>S^w)},[n]);return{flags:r,addFlag:a,hasFlag:u,removeFlag:l,toggleFlag:d}}let ql=U.createContext(null);ql.displayName="GroupContext";let PC=U.Fragment;function RC(e){var r;let[n,o]=U.useState(null),[a,u]=_C(),[l,d]=yC(),w=U.useMemo(()=>({switch:n,setSwitch:o,labelledby:a,describedby:l}),[n,o,a,l]),S={},y=e;return U.createElement(d,{name:"Switch.Description"},U.createElement(u,{name:"Switch.Label",props:{htmlFor:(r=w.switch)==null?void 0:r.id,onClick(h){n&&(h.currentTarget.tagName==="LABEL"&&h.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},U.createElement(ql.Provider,{value:w},Pn({ourProps:S,theirProps:y,defaultTag:PC,name:"Switch.Group"}))))}let IC="button";function MC(e,r){var n;let o=Bl(),{id:a=`headlessui-switch-${o}`,checked:u,defaultChecked:l=!1,onChange:d,disabled:w=!1,name:S,value:y,form:h,...c}=e,p=U.useContext(ql),m=U.useRef(null),f=po(m,r,p===null?null:p.setSwitch),[g,b]=oC(u,d,l),_=mt(()=>b==null?void 0:b(!g)),x=mt(k=>{if(vC(k.currentTarget))return k.preventDefault();k.preventDefault(),_()}),C=mt(k=>{k.key===yl.Space?(k.preventDefault(),_()):k.key===yl.Enter&&gC(k.currentTarget)}),T=mt(k=>k.preventDefault()),I=U.useMemo(()=>({checked:g}),[g]),H={id:a,ref:f,role:"switch",type:uC(e,m),tabIndex:e.tabIndex===-1?0:(n=e.tabIndex)!=null?n:0,"aria-checked":g,"aria-labelledby":p==null?void 0:p.labelledby,"aria-describedby":p==null?void 0:p.describedby,disabled:w,onClick:x,onKeyUp:C,onKeyPress:T},F=Wl();return U.useEffect(()=>{var k;let X=(k=m.current)==null?void 0:k.closest("form");X&&l!==void 0&&F.addEventListener(X,"reset",()=>{b(l)})},[m,b]),U.createElement(U.Fragment,null,S!=null&&g&&U.createElement(pC,{features:dm.Hidden,...gl({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:w,form:h,checked:g,name:S,value:y})}),Pn({ourProps:H,theirProps:c,slot:I,defaultTag:IC,name:"Switch"}))}let LC=Rn(MC),FC=RC,DC=Object.assign(LC,{Group:FC,Label:TC,Description:EC});function $C(e){let r={called:!1};return(...n)=>{if(!r.called)return r.called=!0,e(...n)}}function Vu(e,...r){e&&r.length>0&&e.classList.add(...r)}function Yu(e,...r){e&&r.length>0&&e.classList.remove(...r)}function NC(e,r){let n=fo();if(!e)return n.dispose;let{transitionDuration:o,transitionDelay:a}=getComputedStyle(e),[u,l]=[o,a].map(w=>{let[S=0]=w.split(",").filter(Boolean).map(y=>y.includes("ms")?parseFloat(y):parseFloat(y)*1e3).sort((y,h)=>h-y);return S}),d=u+l;if(d!==0){n.group(S=>{S.setTimeout(()=>{r(),S.dispose()},d),S.addEventListener(e,"transitionrun",y=>{y.target===y.currentTarget&&S.dispose()})});let w=n.addEventListener(e,"transitionend",S=>{S.target===S.currentTarget&&(r(),w())})}else r();return n.add(()=>r()),n.dispose}function kC(e,r,n,o){let a=n?"enter":"leave",u=fo(),l=o!==void 0?$C(o):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let d=pr(a,{enter:()=>r.enter,leave:()=>r.leave}),w=pr(a,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),S=pr(a,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom});return Yu(e,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),Vu(e,...r.base,...d,...S),u.nextFrame(()=>{Yu(e,...r.base,...d,...S),Vu(e,...r.base,...d,...w),NC(e,()=>(Yu(e,...r.base,...d),Vu(e,...r.base,...r.entered),l()))}),u.dispose}function jC({immediate:e,container:r,direction:n,classes:o,onStart:a,onStop:u}){let l=Hl(),d=Wl(),w=Jn(n);mr(()=>{e&&(w.current="enter")},[e]),mr(()=>{let S=fo();d.add(S.dispose);let y=r.current;if(y&&w.current!=="idle"&&l.current)return S.dispose(),a.current(w.current),S.add(kC(y,o.current,w.current==="enter",()=>{S.dispose(),u.current(w.current)})),S.dispose},[n])}function Yr(e=""){return e.split(/\s+/).filter(r=>r.length>1)}let Ka=U.createContext(null);Ka.displayName="TransitionContext";var WC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(WC||{});function UC(){let e=U.useContext(Ka);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function BC(){let e=U.useContext(Va);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Va=U.createContext(null);Va.displayName="NestingContext";function Ya(e){return"children"in e?Ya(e.children):e.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function ym(e,r){let n=Jn(e),o=U.useRef([]),a=Hl(),u=Wl(),l=mt((p,m=Qr.Hidden)=>{let f=o.current.findIndex(({el:g})=>g===p);f!==-1&&(pr(m,{[Qr.Unmount](){o.current.splice(f,1)},[Qr.Hidden](){o.current[f].state="hidden"}}),u.microTask(()=>{var g;!Ya(o)&&a.current&&((g=n.current)==null||g.call(n))}))}),d=mt(p=>{let m=o.current.find(({el:f})=>f===p);return m?m.state!=="visible"&&(m.state="visible"):o.current.push({el:p,state:"visible"}),()=>l(p,Qr.Unmount)}),w=U.useRef([]),S=U.useRef(Promise.resolve()),y=U.useRef({enter:[],leave:[],idle:[]}),h=mt((p,m,f)=>{w.current.splice(0),r&&(r.chains.current[m]=r.chains.current[m].filter(([g])=>g!==p)),r==null||r.chains.current[m].push([p,new Promise(g=>{w.current.push(g)})]),r==null||r.chains.current[m].push([p,new Promise(g=>{Promise.all(y.current[m].map(([b,_])=>_)).then(()=>g())})]),m==="enter"?S.current=S.current.then(()=>r==null?void 0:r.wait.current).then(()=>f(m)):f(m)}),c=mt((p,m,f)=>{Promise.all(y.current[m].splice(0).map(([g,b])=>b)).then(()=>{var g;(g=w.current.shift())==null||g()}).then(()=>f(m))});return U.useMemo(()=>({children:o,register:d,unregister:l,onStart:h,onStop:c,wait:S,chains:y}),[d,l,o,h,c,y,S])}function zC(){}let HC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Oh(e){var r;let n={};for(let o of HC)n[o]=(r=e[o])!=null?r:zC;return n}function qC(e){let r=U.useRef(Oh(e));return U.useEffect(()=>{r.current=Oh(e)},[e]),r}let ZC="div",wm=cm.RenderStrategy;function GC(e,r){var n,o;let{beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:d,enter:w,enterFrom:S,enterTo:y,entered:h,leave:c,leaveFrom:p,leaveTo:m,...f}=e,g=U.useRef(null),b=po(g,r),_=(n=f.unmount)==null||n?Qr.Unmount:Qr.Hidden,{show:x,appear:C,initial:T}=UC(),[I,H]=U.useState(x?"visible":"hidden"),F=BC(),{register:k,unregister:X}=F;U.useEffect(()=>k(g),[k,g]),U.useEffect(()=>{if(_===Qr.Hidden&&g.current){if(x&&I!=="visible"){H("visible");return}return pr(I,{hidden:()=>X(g),visible:()=>k(g)})}},[I,g,k,X,x,_]);let j=Jn({base:Yr(f.className),enter:Yr(w),enterFrom:Yr(S),enterTo:Yr(y),entered:Yr(h),leave:Yr(c),leaveFrom:Yr(p),leaveTo:Yr(m)}),L=qC({beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:d}),B=Ul();U.useEffect(()=>{if(B&&I==="visible"&&g.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[g,I,B]);let q=T&&!C,R=C&&x&&T,J=!B||q?"idle":x?"enter":"leave",V=CC(0),te=mt(oe=>pr(oe,{enter:()=>{V.addFlag(Pr.Opening),L.current.beforeEnter()},leave:()=>{V.addFlag(Pr.Closing),L.current.beforeLeave()},idle:()=>{}})),le=mt(oe=>pr(oe,{enter:()=>{V.removeFlag(Pr.Opening),L.current.afterEnter()},leave:()=>{V.removeFlag(Pr.Closing),L.current.afterLeave()},idle:()=>{}})),Z=ym(()=>{H("hidden"),X(g)},F),ee=U.useRef(!1);jC({immediate:R,container:g,classes:j,direction:J,onStart:Jn(oe=>{ee.current=!0,Z.onStart(g,oe,te)}),onStop:Jn(oe=>{ee.current=!1,Z.onStop(g,oe,le),oe==="leave"&&!Ya(Z)&&(H("hidden"),X(g))})});let ae=f,ce={ref:b};return R?ae={...ae,className:Na(f.className,...j.current.enter,...j.current.enterFrom)}:ee.current&&(ae.className=Na(f.className,(o=g.current)==null?void 0:o.className),ae.className===""&&delete ae.className),U.createElement(Va.Provider,{value:Z},U.createElement(hC,{value:pr(I,{visible:Pr.Open,hidden:Pr.Closed})|V.flags},Pn({ourProps:ce,theirProps:ae,defaultTag:ZC,features:wm,visible:I==="visible",name:"Transition.Child"})))}function KC(e,r){let{show:n,appear:o=!1,unmount:a=!0,...u}=e,l=U.useRef(null),d=po(l,r);Ul();let w=pm();if(n===void 0&&w!==null&&(n=(w&Pr.Open)===Pr.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[S,y]=U.useState(n?"visible":"hidden"),h=ym(()=>{y("hidden")}),[c,p]=U.useState(!0),m=U.useRef([n]);mr(()=>{c!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))},[m,n]);let f=U.useMemo(()=>({show:n,appear:o,initial:c}),[n,o,c]);U.useEffect(()=>{if(n)y("visible");else if(!Ya(h))y("hidden");else{let x=l.current;if(!x)return;let C=x.getBoundingClientRect();C.x===0&&C.y===0&&C.width===0&&C.height===0&&y("hidden")}},[n,h]);let g={unmount:a},b=mt(()=>{var x;c&&p(!1),(x=e.beforeEnter)==null||x.call(e)}),_=mt(()=>{var x;c&&p(!1),(x=e.beforeLeave)==null||x.call(e)});return U.createElement(Va.Provider,{value:h},U.createElement(Ka.Provider,{value:f},Pn({ourProps:{...g,as:U.Fragment,children:U.createElement(bm,{ref:d,...g,...u,beforeEnter:b,beforeLeave:_})},theirProps:{},defaultTag:U.Fragment,features:wm,visible:S==="visible",name:"Transition"})))}function VC(e,r){let n=U.useContext(Ka)!==null,o=pm()!==null;return U.createElement(U.Fragment,null,!n&&o?U.createElement(wl,{ref:r,...e}):U.createElement(bm,{ref:r,...e}))}let wl=Rn(KC),bm=Rn(GC),YC=Rn(VC),ka=Object.assign(wl,{Child:YC,Root:wl});const Xu={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},Sm=U.forwardRef(({onChange:e,value:r,size:n="md",className:o="ml-auto"},a)=>{const u=l=>{e(l)};return W.jsx("div",{className:Ye("flex items-center",o),children:W.jsx(DC,{as:"span",ref:a,checked:r,onChange:u,onKeyDown:l=>{l.key==="Enter"&&u(!r)},className:`${r?"bg-primary-dark":"bg-grey-200"}
84
84
  relative inline-flex shrink-0 ${Xu[n].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:W.jsx("span",{"aria-hidden":"true",className:`${r?Xu[n].translate:"translate-x-0"}
85
- pointer-events-none inline-block ${Xu[n].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),YC=({children:e,label:r,placement:n="top",className:o})=>{const[a,u]=U.useState(null),[l,d]=U.useState(null),[w,S]=U.useState(!1),{styles:y,attributes:h}=nv(a,l,{placement:n,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),c=U.Children.map(e,p=>U.isValidElement(p)?U.cloneElement(p,{ref:u,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1)}):p);return W.jsxs(W.Fragment,{children:[c,w&&so.createPortal(W.jsx("div",{ref:d,style:y.popper,...h.popper,className:Ye("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",o),children:r}),document.querySelector("body"))]})},XC=al.keyframes`
85
+ pointer-events-none inline-block ${Xu[n].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),XC=({children:e,label:r,placement:n="top",className:o})=>{const[a,u]=U.useState(null),[l,d]=U.useState(null),[w,S]=U.useState(!1),{styles:y,attributes:h}=iv(a,l,{placement:n,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),c=U.Children.map(e,p=>U.isValidElement(p)?U.cloneElement(p,{ref:u,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1)}):p);return W.jsxs(W.Fragment,{children:[c,w&&so.createPortal(W.jsx("div",{ref:d,style:y.popper,...h.popper,className:Ye("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",o),children:r}),document.querySelector("body"))]})},JC=al.keyframes`
86
86
  to {
87
87
  fill: url(#d);
88
88
  stroke-dashoffset: 0;
89
89
  }
90
- `,Sm=Da.svg`
90
+ `,Em=Da.svg`
91
91
  & .e {
92
92
  fill: url(#d);
93
93
  }
@@ -98,7 +98,7 @@ pointer-events-none inline-block ${Xu[n].switch} transform rounded-full bg-white
98
98
  fill: transparent;
99
99
  stroke-dasharray: 700;
100
100
  stroke-dashoffset: 700;
101
- animation: ${XC} 1.5s ease-in-out infinite alternate-reverse;
101
+ animation: ${JC} 1.5s ease-in-out infinite alternate-reverse;
102
102
  }
103
103
 
104
104
  & #circle {
@@ -108,37 +108,37 @@ pointer-events-none inline-block ${Xu[n].switch} transform rounded-full bg-white
108
108
  stroke-dasharray: 700;
109
109
  stroke-dashoffset: 700;
110
110
  }
111
- `,JC=({message:e,version:r})=>W.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:W.jsxs("div",{className:"flex flex-col text-center",children:[W.jsx("div",{className:"relative mr-4 self-center",children:W.jsx("div",{className:"flex items-center justify-center rounded",children:W.jsxs(Sm,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[W.jsx("defs",{children:W.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[W.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:W.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),W.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:W.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),W.jsx("g",{id:"a"}),W.jsx("g",{id:"b",children:W.jsx("g",{id:"c",children:W.jsxs("g",{children:[W.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),W.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),W.jsxs("div",{children:[W.jsx("span",{className:"text-xs text-grey-200",children:r}),W.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var Zi={exports:{}};/**
111
+ `,QC=({message:e,version:r})=>W.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:W.jsxs("div",{className:"flex flex-col text-center",children:[W.jsx("div",{className:"relative mr-4 self-center",children:W.jsx("div",{className:"flex items-center justify-center rounded",children:W.jsxs(Em,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[W.jsx("defs",{children:W.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[W.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:W.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),W.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:W.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),W.jsx("g",{id:"a"}),W.jsx("g",{id:"b",children:W.jsx("g",{id:"c",children:W.jsxs("g",{children:[W.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),W.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),W.jsxs("div",{children:[W.jsx("span",{className:"text-xs text-grey-200",children:r}),W.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var Zi={exports:{}};/**
112
112
  * @license
113
113
  * Lodash <https://lodash.com/>
114
114
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
115
115
  * Released under MIT license <https://lodash.com/license>
116
116
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
117
117
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
118
- */var QC=Zi.exports,Oh;function eP(){return Oh||(Oh=1,function(e,r){(function(){var n,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",d="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",S=500,y="__lodash_placeholder__",h=1,c=2,p=4,m=1,f=2,g=1,b=2,_=4,x=8,C=16,T=32,M=64,H=128,L=256,k=512,X=30,j="...",F=800,B=16,q=1,R=2,J=3,V=1/0,te=9007199254740991,le=17976931348623157e292,Z=NaN,ee=4294967295,ae=ee-1,ce=ee>>>1,oe=[["ary",H],["bind",g],["bindKey",b],["curry",x],["curryRight",C],["flip",k],["partial",T],["partialRight",M],["rearg",L]],fe="[object Arguments]",pe="[object Array]",ye="[object AsyncFunction]",ge="[object Boolean]",_e="[object Date]",Ae="[object DOMException]",Ue="[object Error]",ne="[object Function]",ft="[object GeneratorFunction]",nt="[object Map]",or="[object Number]",mo="[object Null]",Nt="[object Object]",go="[object Promise]",es="[object Proxy]",Ct="[object RegExp]",dt="[object Set]",Lr="[object String]",on="[object Symbol]",ai="[object Undefined]",Dr="[object WeakMap]",yo="[object WeakSet]",$r="[object ArrayBuffer]",gr="[object DataView]",ts="[object Float32Array]",rs="[object Float64Array]",ns="[object Int8Array]",is="[object Int16Array]",os="[object Int32Array]",as="[object Uint8Array]",ss="[object Uint8ClampedArray]",us="[object Uint16Array]",ls="[object Uint32Array]",_g=/\b__p \+= '';/g,xg=/\b(__p \+=) '' \+/g,Og=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oc=/&(?:amp|lt|gt|quot|#39);/g,ac=/[&<>"']/g,Ag=RegExp(oc.source),Tg=RegExp(ac.source),Cg=/<%-([\s\S]+?)%>/g,Pg=/<%([\s\S]+?)%>/g,sc=/<%=([\s\S]+?)%>/g,Rg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mg=/^\w*$/,Ig=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cs=/[\\^$.*+?()[\]{}|]/g,Fg=RegExp(cs.source),fs=/^\s+/,Lg=/\s/,Dg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$g=/\{\n\/\* \[wrapped with (.+)\] \*/,Ng=/,? & /,kg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jg=/[()=,{}\[\]\/\s]/,Wg=/\\(\\)?/g,Ug=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uc=/\w*$/,Bg=/^[-+]0x[0-9a-f]+$/i,zg=/^0b[01]+$/i,Hg=/^\[object .+?Constructor\]$/,qg=/^0o[0-7]+$/i,Zg=/^(?:0|[1-9]\d*)$/,Gg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wo=/($^)/,Kg=/['\n\r\u2028\u2029\\]/g,bo="\\ud800-\\udfff",Vg="\\u0300-\\u036f",Yg="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",lc=Vg+Yg+Xg,cc="\\u2700-\\u27bf",fc="a-z\\xdf-\\xf6\\xf8-\\xff",Jg="\\xac\\xb1\\xd7\\xf7",Qg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ey="\\u2000-\\u206f",ty=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dc="A-Z\\xc0-\\xd6\\xd8-\\xde",pc="\\ufe0e\\ufe0f",hc=Jg+Qg+ey+ty,ds="['’]",ry="["+bo+"]",vc="["+hc+"]",So="["+lc+"]",mc="\\d+",ny="["+cc+"]",gc="["+fc+"]",yc="[^"+bo+hc+mc+cc+fc+dc+"]",ps="\\ud83c[\\udffb-\\udfff]",iy="(?:"+So+"|"+ps+")",wc="[^"+bo+"]",hs="(?:\\ud83c[\\udde6-\\uddff]){2}",vs="[\\ud800-\\udbff][\\udc00-\\udfff]",Mn="["+dc+"]",bc="\\u200d",Sc="(?:"+gc+"|"+yc+")",oy="(?:"+Mn+"|"+yc+")",Ec="(?:"+ds+"(?:d|ll|m|re|s|t|ve))?",_c="(?:"+ds+"(?:D|LL|M|RE|S|T|VE))?",xc=iy+"?",Oc="["+pc+"]?",ay="(?:"+bc+"(?:"+[wc,hs,vs].join("|")+")"+Oc+xc+")*",sy="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",uy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ac=Oc+xc+ay,ly="(?:"+[ny,hs,vs].join("|")+")"+Ac,cy="(?:"+[wc+So+"?",So,hs,vs,ry].join("|")+")",fy=RegExp(ds,"g"),dy=RegExp(So,"g"),ms=RegExp(ps+"(?="+ps+")|"+cy+Ac,"g"),py=RegExp([Mn+"?"+gc+"+"+Ec+"(?="+[vc,Mn,"$"].join("|")+")",oy+"+"+_c+"(?="+[vc,Mn+Sc,"$"].join("|")+")",Mn+"?"+Sc+"+"+Ec,Mn+"+"+_c,uy,sy,mc,ly].join("|"),"g"),hy=RegExp("["+bc+bo+lc+pc+"]"),vy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,my=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gy=-1,Ne={};Ne[ts]=Ne[rs]=Ne[ns]=Ne[is]=Ne[os]=Ne[as]=Ne[ss]=Ne[us]=Ne[ls]=!0,Ne[fe]=Ne[pe]=Ne[$r]=Ne[ge]=Ne[gr]=Ne[_e]=Ne[Ue]=Ne[ne]=Ne[nt]=Ne[or]=Ne[Nt]=Ne[Ct]=Ne[dt]=Ne[Lr]=Ne[Dr]=!1;var $e={};$e[fe]=$e[pe]=$e[$r]=$e[gr]=$e[ge]=$e[_e]=$e[ts]=$e[rs]=$e[ns]=$e[is]=$e[os]=$e[nt]=$e[or]=$e[Nt]=$e[Ct]=$e[dt]=$e[Lr]=$e[on]=$e[as]=$e[ss]=$e[us]=$e[ls]=!0,$e[Ue]=$e[ne]=$e[Dr]=!1;var yy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},wy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},by={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Sy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ey=parseFloat,_y=parseInt,Tc=typeof ua=="object"&&ua&&ua.Object===Object&&ua,xy=typeof self=="object"&&self&&self.Object===Object&&self,st=Tc||xy||Function("return this")(),gs=r&&!r.nodeType&&r,an=gs&&!0&&e&&!e.nodeType&&e,Cc=an&&an.exports===gs,ys=Cc&&Tc.process,kt=function(){try{var D=an&&an.require&&an.require("util").types;return D||ys&&ys.binding&&ys.binding("util")}catch{}}(),Pc=kt&&kt.isArrayBuffer,Rc=kt&&kt.isDate,Mc=kt&&kt.isMap,Ic=kt&&kt.isRegExp,Fc=kt&&kt.isSet,Lc=kt&&kt.isTypedArray;function Pt(D,G,z){switch(z.length){case 0:return D.call(G);case 1:return D.call(G,z[0]);case 2:return D.call(G,z[0],z[1]);case 3:return D.call(G,z[0],z[1],z[2])}return D.apply(G,z)}function Oy(D,G,z,se){for(var we=-1,Pe=D==null?0:D.length;++we<Pe;){var Je=D[we];G(se,Je,z(Je),D)}return se}function jt(D,G){for(var z=-1,se=D==null?0:D.length;++z<se&&G(D[z],z,D)!==!1;);return D}function Ay(D,G){for(var z=D==null?0:D.length;z--&&G(D[z],z,D)!==!1;);return D}function Dc(D,G){for(var z=-1,se=D==null?0:D.length;++z<se;)if(!G(D[z],z,D))return!1;return!0}function Nr(D,G){for(var z=-1,se=D==null?0:D.length,we=0,Pe=[];++z<se;){var Je=D[z];G(Je,z,D)&&(Pe[we++]=Je)}return Pe}function Eo(D,G){var z=D==null?0:D.length;return!!z&&In(D,G,0)>-1}function ws(D,G,z){for(var se=-1,we=D==null?0:D.length;++se<we;)if(z(G,D[se]))return!0;return!1}function ke(D,G){for(var z=-1,se=D==null?0:D.length,we=Array(se);++z<se;)we[z]=G(D[z],z,D);return we}function kr(D,G){for(var z=-1,se=G.length,we=D.length;++z<se;)D[we+z]=G[z];return D}function bs(D,G,z,se){var we=-1,Pe=D==null?0:D.length;for(se&&Pe&&(z=D[++we]);++we<Pe;)z=G(z,D[we],we,D);return z}function Ty(D,G,z,se){var we=D==null?0:D.length;for(se&&we&&(z=D[--we]);we--;)z=G(z,D[we],we,D);return z}function Ss(D,G){for(var z=-1,se=D==null?0:D.length;++z<se;)if(G(D[z],z,D))return!0;return!1}var Cy=Es("length");function Py(D){return D.split("")}function Ry(D){return D.match(kg)||[]}function $c(D,G,z){var se;return z(D,function(we,Pe,Je){if(G(we,Pe,Je))return se=Pe,!1}),se}function _o(D,G,z,se){for(var we=D.length,Pe=z+(se?1:-1);se?Pe--:++Pe<we;)if(G(D[Pe],Pe,D))return Pe;return-1}function In(D,G,z){return G===G?By(D,G,z):_o(D,Nc,z)}function My(D,G,z,se){for(var we=z-1,Pe=D.length;++we<Pe;)if(se(D[we],G))return we;return-1}function Nc(D){return D!==D}function kc(D,G){var z=D==null?0:D.length;return z?xs(D,G)/z:Z}function Es(D){return function(G){return G==null?n:G[D]}}function _s(D){return function(G){return D==null?n:D[G]}}function jc(D,G,z,se,we){return we(D,function(Pe,Je,De){z=se?(se=!1,Pe):G(z,Pe,Je,De)}),z}function Iy(D,G){var z=D.length;for(D.sort(G);z--;)D[z]=D[z].value;return D}function xs(D,G){for(var z,se=-1,we=D.length;++se<we;){var Pe=G(D[se]);Pe!==n&&(z=z===n?Pe:z+Pe)}return z}function Os(D,G){for(var z=-1,se=Array(D);++z<D;)se[z]=G(z);return se}function Fy(D,G){return ke(G,function(z){return[z,D[z]]})}function Wc(D){return D&&D.slice(0,Hc(D)+1).replace(fs,"")}function Rt(D){return function(G){return D(G)}}function As(D,G){return ke(G,function(z){return D[z]})}function si(D,G){return D.has(G)}function Uc(D,G){for(var z=-1,se=D.length;++z<se&&In(G,D[z],0)>-1;);return z}function Bc(D,G){for(var z=D.length;z--&&In(G,D[z],0)>-1;);return z}function Ly(D,G){for(var z=D.length,se=0;z--;)D[z]===G&&++se;return se}var Dy=_s(yy),$y=_s(wy);function Ny(D){return"\\"+Sy[D]}function ky(D,G){return D==null?n:D[G]}function Fn(D){return hy.test(D)}function jy(D){return vy.test(D)}function Wy(D){for(var G,z=[];!(G=D.next()).done;)z.push(G.value);return z}function Ts(D){var G=-1,z=Array(D.size);return D.forEach(function(se,we){z[++G]=[we,se]}),z}function zc(D,G){return function(z){return D(G(z))}}function jr(D,G){for(var z=-1,se=D.length,we=0,Pe=[];++z<se;){var Je=D[z];(Je===G||Je===y)&&(D[z]=y,Pe[we++]=z)}return Pe}function xo(D){var G=-1,z=Array(D.size);return D.forEach(function(se){z[++G]=se}),z}function Uy(D){var G=-1,z=Array(D.size);return D.forEach(function(se){z[++G]=[se,se]}),z}function By(D,G,z){for(var se=z-1,we=D.length;++se<we;)if(D[se]===G)return se;return-1}function zy(D,G,z){for(var se=z+1;se--;)if(D[se]===G)return se;return se}function Ln(D){return Fn(D)?qy(D):Cy(D)}function Jt(D){return Fn(D)?Zy(D):Py(D)}function Hc(D){for(var G=D.length;G--&&Lg.test(D.charAt(G)););return G}var Hy=_s(by);function qy(D){for(var G=ms.lastIndex=0;ms.test(D);)++G;return G}function Zy(D){return D.match(ms)||[]}function Gy(D){return D.match(py)||[]}var Ky=function D(G){G=G==null?st:Dn.defaults(st.Object(),G,Dn.pick(st,my));var z=G.Array,se=G.Date,we=G.Error,Pe=G.Function,Je=G.Math,De=G.Object,Cs=G.RegExp,Vy=G.String,Wt=G.TypeError,Oo=z.prototype,Yy=Pe.prototype,$n=De.prototype,Ao=G["__core-js_shared__"],To=Yy.toString,Fe=$n.hasOwnProperty,Xy=0,qc=function(){var t=/[^.]+$/.exec(Ao&&Ao.keys&&Ao.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Co=$n.toString,Jy=To.call(De),Qy=st._,e0=Cs("^"+To.call(Fe).replace(cs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Po=Cc?G.Buffer:n,Wr=G.Symbol,Ro=G.Uint8Array,Zc=Po?Po.allocUnsafe:n,Mo=zc(De.getPrototypeOf,De),Gc=De.create,Kc=$n.propertyIsEnumerable,Io=Oo.splice,Vc=Wr?Wr.isConcatSpreadable:n,ui=Wr?Wr.iterator:n,sn=Wr?Wr.toStringTag:n,Fo=function(){try{var t=dn(De,"defineProperty");return t({},"",{}),t}catch{}}(),t0=G.clearTimeout!==st.clearTimeout&&G.clearTimeout,r0=se&&se.now!==st.Date.now&&se.now,n0=G.setTimeout!==st.setTimeout&&G.setTimeout,Lo=Je.ceil,Do=Je.floor,Ps=De.getOwnPropertySymbols,i0=Po?Po.isBuffer:n,Yc=G.isFinite,o0=Oo.join,a0=zc(De.keys,De),Qe=Je.max,pt=Je.min,s0=se.now,u0=G.parseInt,Xc=Je.random,l0=Oo.reverse,Rs=dn(G,"DataView"),li=dn(G,"Map"),Ms=dn(G,"Promise"),Nn=dn(G,"Set"),ci=dn(G,"WeakMap"),fi=dn(De,"create"),$o=ci&&new ci,kn={},c0=pn(Rs),f0=pn(li),d0=pn(Ms),p0=pn(Nn),h0=pn(ci),No=Wr?Wr.prototype:n,di=No?No.valueOf:n,Jc=No?No.toString:n;function O(t){if(He(t)&&!be(t)&&!(t instanceof Te)){if(t instanceof Ut)return t;if(Fe.call(t,"__wrapped__"))return ed(t)}return new Ut(t)}var jn=function(){function t(){}return function(i){if(!Be(i))return{};if(Gc)return Gc(i);t.prototype=i;var s=new t;return t.prototype=n,s}}();function ko(){}function Ut(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}O.templateSettings={escape:Cg,evaluate:Pg,interpolate:sc,variable:"",imports:{_:O}},O.prototype=ko.prototype,O.prototype.constructor=O,Ut.prototype=jn(ko.prototype),Ut.prototype.constructor=Ut;function Te(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function v0(){var t=new Te(this.__wrapped__);return t.__actions__=St(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=St(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=St(this.__views__),t}function m0(){if(this.__filtered__){var t=new Te(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function g0(){var t=this.__wrapped__.value(),i=this.__dir__,s=be(t),v=i<0,E=s?t.length:0,A=P1(0,E,this.__views__),P=A.start,I=A.end,N=I-P,K=v?I:P-1,Y=this.__iteratees__,Q=Y.length,ie=0,ue=pt(N,this.__takeCount__);if(!s||!v&&E==N&&ue==N)return _f(t,this.__actions__);var he=[];e:for(;N--&&ie<ue;){K+=i;for(var Ee=-1,ve=t[K];++Ee<Q;){var Oe=Y[Ee],Ce=Oe.iteratee,Ft=Oe.type,wt=Ce(ve);if(Ft==R)ve=wt;else if(!wt){if(Ft==q)continue e;break e}}he[ie++]=ve}return he}Te.prototype=jn(ko.prototype),Te.prototype.constructor=Te;function un(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var v=t[i];this.set(v[0],v[1])}}function y0(){this.__data__=fi?fi(null):{},this.size=0}function w0(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function b0(t){var i=this.__data__;if(fi){var s=i[t];return s===w?n:s}return Fe.call(i,t)?i[t]:n}function S0(t){var i=this.__data__;return fi?i[t]!==n:Fe.call(i,t)}function E0(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=fi&&i===n?w:i,this}un.prototype.clear=y0,un.prototype.delete=w0,un.prototype.get=b0,un.prototype.has=S0,un.prototype.set=E0;function yr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var v=t[i];this.set(v[0],v[1])}}function _0(){this.__data__=[],this.size=0}function x0(t){var i=this.__data__,s=jo(i,t);if(s<0)return!1;var v=i.length-1;return s==v?i.pop():Io.call(i,s,1),--this.size,!0}function O0(t){var i=this.__data__,s=jo(i,t);return s<0?n:i[s][1]}function A0(t){return jo(this.__data__,t)>-1}function T0(t,i){var s=this.__data__,v=jo(s,t);return v<0?(++this.size,s.push([t,i])):s[v][1]=i,this}yr.prototype.clear=_0,yr.prototype.delete=x0,yr.prototype.get=O0,yr.prototype.has=A0,yr.prototype.set=T0;function wr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var v=t[i];this.set(v[0],v[1])}}function C0(){this.size=0,this.__data__={hash:new un,map:new(li||yr),string:new un}}function P0(t){var i=Xo(this,t).delete(t);return this.size-=i?1:0,i}function R0(t){return Xo(this,t).get(t)}function M0(t){return Xo(this,t).has(t)}function I0(t,i){var s=Xo(this,t),v=s.size;return s.set(t,i),this.size+=s.size==v?0:1,this}wr.prototype.clear=C0,wr.prototype.delete=P0,wr.prototype.get=R0,wr.prototype.has=M0,wr.prototype.set=I0;function ln(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new wr;++i<s;)this.add(t[i])}function F0(t){return this.__data__.set(t,w),this}function L0(t){return this.__data__.has(t)}ln.prototype.add=ln.prototype.push=F0,ln.prototype.has=L0;function Qt(t){var i=this.__data__=new yr(t);this.size=i.size}function D0(){this.__data__=new yr,this.size=0}function $0(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function N0(t){return this.__data__.get(t)}function k0(t){return this.__data__.has(t)}function j0(t,i){var s=this.__data__;if(s instanceof yr){var v=s.__data__;if(!li||v.length<a-1)return v.push([t,i]),this.size=++s.size,this;s=this.__data__=new wr(v)}return s.set(t,i),this.size=s.size,this}Qt.prototype.clear=D0,Qt.prototype.delete=$0,Qt.prototype.get=N0,Qt.prototype.has=k0,Qt.prototype.set=j0;function Qc(t,i){var s=be(t),v=!s&&hn(t),E=!s&&!v&&qr(t),A=!s&&!v&&!E&&zn(t),P=s||v||E||A,I=P?Os(t.length,Vy):[],N=I.length;for(var K in t)(i||Fe.call(t,K))&&!(P&&(K=="length"||E&&(K=="offset"||K=="parent")||A&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||_r(K,N)))&&I.push(K);return I}function ef(t){var i=t.length;return i?t[Bs(0,i-1)]:n}function W0(t,i){return Jo(St(t),cn(i,0,t.length))}function U0(t){return Jo(St(t))}function Is(t,i,s){(s!==n&&!er(t[i],s)||s===n&&!(i in t))&&br(t,i,s)}function pi(t,i,s){var v=t[i];(!(Fe.call(t,i)&&er(v,s))||s===n&&!(i in t))&&br(t,i,s)}function jo(t,i){for(var s=t.length;s--;)if(er(t[s][0],i))return s;return-1}function B0(t,i,s,v){return Ur(t,function(E,A,P){i(v,E,s(E),P)}),v}function tf(t,i){return t&&sr(i,it(i),t)}function z0(t,i){return t&&sr(i,_t(i),t)}function br(t,i,s){i=="__proto__"&&Fo?Fo(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function Fs(t,i){for(var s=-1,v=i.length,E=z(v),A=t==null;++s<v;)E[s]=A?n:pu(t,i[s]);return E}function cn(t,i,s){return t===t&&(s!==n&&(t=t<=s?t:s),i!==n&&(t=t>=i?t:i)),t}function Bt(t,i,s,v,E,A){var P,I=i&h,N=i&c,K=i&p;if(s&&(P=E?s(t,v,E,A):s(t)),P!==n)return P;if(!Be(t))return t;var Y=be(t);if(Y){if(P=M1(t),!I)return St(t,P)}else{var Q=ht(t),ie=Q==ne||Q==ft;if(qr(t))return Af(t,I);if(Q==Nt||Q==fe||ie&&!E){if(P=N||ie?{}:qf(t),!I)return N?b1(t,z0(P,t)):w1(t,tf(P,t))}else{if(!$e[Q])return E?t:{};P=I1(t,Q,I)}}A||(A=new Qt);var ue=A.get(t);if(ue)return ue;A.set(t,P),bd(t)?t.forEach(function(ve){P.add(Bt(ve,i,s,ve,t,A))}):yd(t)&&t.forEach(function(ve,Oe){P.set(Oe,Bt(ve,i,s,Oe,t,A))});var he=K?N?Qs:Js:N?_t:it,Ee=Y?n:he(t);return jt(Ee||t,function(ve,Oe){Ee&&(Oe=ve,ve=t[Oe]),pi(P,Oe,Bt(ve,i,s,Oe,t,A))}),P}function H0(t){var i=it(t);return function(s){return rf(s,t,i)}}function rf(t,i,s){var v=s.length;if(t==null)return!v;for(t=De(t);v--;){var E=s[v],A=i[E],P=t[E];if(P===n&&!(E in t)||!A(P))return!1}return!0}function nf(t,i,s){if(typeof t!="function")throw new Wt(l);return bi(function(){t.apply(n,s)},i)}function hi(t,i,s,v){var E=-1,A=Eo,P=!0,I=t.length,N=[],K=i.length;if(!I)return N;s&&(i=ke(i,Rt(s))),v?(A=ws,P=!1):i.length>=a&&(A=si,P=!1,i=new ln(i));e:for(;++E<I;){var Y=t[E],Q=s==null?Y:s(Y);if(Y=v||Y!==0?Y:0,P&&Q===Q){for(var ie=K;ie--;)if(i[ie]===Q)continue e;N.push(Y)}else A(i,Q,v)||N.push(Y)}return N}var Ur=Mf(ar),of=Mf(Ds,!0);function q0(t,i){var s=!0;return Ur(t,function(v,E,A){return s=!!i(v,E,A),s}),s}function Wo(t,i,s){for(var v=-1,E=t.length;++v<E;){var A=t[v],P=i(A);if(P!=null&&(I===n?P===P&&!It(P):s(P,I)))var I=P,N=A}return N}function Z0(t,i,s,v){var E=t.length;for(s=Se(s),s<0&&(s=-s>E?0:E+s),v=v===n||v>E?E:Se(v),v<0&&(v+=E),v=s>v?0:Ed(v);s<v;)t[s++]=i;return t}function af(t,i){var s=[];return Ur(t,function(v,E,A){i(v,E,A)&&s.push(v)}),s}function ut(t,i,s,v,E){var A=-1,P=t.length;for(s||(s=L1),E||(E=[]);++A<P;){var I=t[A];i>0&&s(I)?i>1?ut(I,i-1,s,v,E):kr(E,I):v||(E[E.length]=I)}return E}var Ls=If(),sf=If(!0);function ar(t,i){return t&&Ls(t,i,it)}function Ds(t,i){return t&&sf(t,i,it)}function Uo(t,i){return Nr(i,function(s){return xr(t[s])})}function fn(t,i){i=zr(i,t);for(var s=0,v=i.length;t!=null&&s<v;)t=t[ur(i[s++])];return s&&s==v?t:n}function uf(t,i,s){var v=i(t);return be(t)?v:kr(v,s(t))}function gt(t){return t==null?t===n?ai:mo:sn&&sn in De(t)?C1(t):U1(t)}function $s(t,i){return t>i}function G0(t,i){return t!=null&&Fe.call(t,i)}function K0(t,i){return t!=null&&i in De(t)}function V0(t,i,s){return t>=pt(i,s)&&t<Qe(i,s)}function Ns(t,i,s){for(var v=s?ws:Eo,E=t[0].length,A=t.length,P=A,I=z(A),N=1/0,K=[];P--;){var Y=t[P];P&&i&&(Y=ke(Y,Rt(i))),N=pt(Y.length,N),I[P]=!s&&(i||E>=120&&Y.length>=120)?new ln(P&&Y):n}Y=t[0];var Q=-1,ie=I[0];e:for(;++Q<E&&K.length<N;){var ue=Y[Q],he=i?i(ue):ue;if(ue=s||ue!==0?ue:0,!(ie?si(ie,he):v(K,he,s))){for(P=A;--P;){var Ee=I[P];if(!(Ee?si(Ee,he):v(t[P],he,s)))continue e}ie&&ie.push(he),K.push(ue)}}return K}function Y0(t,i,s,v){return ar(t,function(E,A,P){i(v,s(E),A,P)}),v}function vi(t,i,s){i=zr(i,t),t=Vf(t,i);var v=t==null?t:t[ur(Ht(i))];return v==null?n:Pt(v,t,s)}function lf(t){return He(t)&&gt(t)==fe}function X0(t){return He(t)&&gt(t)==$r}function J0(t){return He(t)&&gt(t)==_e}function mi(t,i,s,v,E){return t===i?!0:t==null||i==null||!He(t)&&!He(i)?t!==t&&i!==i:Q0(t,i,s,v,mi,E)}function Q0(t,i,s,v,E,A){var P=be(t),I=be(i),N=P?pe:ht(t),K=I?pe:ht(i);N=N==fe?Nt:N,K=K==fe?Nt:K;var Y=N==Nt,Q=K==Nt,ie=N==K;if(ie&&qr(t)){if(!qr(i))return!1;P=!0,Y=!1}if(ie&&!Y)return A||(A=new Qt),P||zn(t)?Bf(t,i,s,v,E,A):A1(t,i,N,s,v,E,A);if(!(s&m)){var ue=Y&&Fe.call(t,"__wrapped__"),he=Q&&Fe.call(i,"__wrapped__");if(ue||he){var Ee=ue?t.value():t,ve=he?i.value():i;return A||(A=new Qt),E(Ee,ve,s,v,A)}}return ie?(A||(A=new Qt),T1(t,i,s,v,E,A)):!1}function e1(t){return He(t)&&ht(t)==nt}function ks(t,i,s,v){var E=s.length,A=E,P=!v;if(t==null)return!A;for(t=De(t);E--;){var I=s[E];if(P&&I[2]?I[1]!==t[I[0]]:!(I[0]in t))return!1}for(;++E<A;){I=s[E];var N=I[0],K=t[N],Y=I[1];if(P&&I[2]){if(K===n&&!(N in t))return!1}else{var Q=new Qt;if(v)var ie=v(K,Y,N,t,i,Q);if(!(ie===n?mi(Y,K,m|f,v,Q):ie))return!1}}return!0}function cf(t){if(!Be(t)||$1(t))return!1;var i=xr(t)?e0:Hg;return i.test(pn(t))}function t1(t){return He(t)&&gt(t)==Ct}function r1(t){return He(t)&&ht(t)==dt}function n1(t){return He(t)&&ia(t.length)&&!!Ne[gt(t)]}function ff(t){return typeof t=="function"?t:t==null?xt:typeof t=="object"?be(t)?hf(t[0],t[1]):pf(t):Fd(t)}function js(t){if(!wi(t))return a0(t);var i=[];for(var s in De(t))Fe.call(t,s)&&s!="constructor"&&i.push(s);return i}function i1(t){if(!Be(t))return W1(t);var i=wi(t),s=[];for(var v in t)v=="constructor"&&(i||!Fe.call(t,v))||s.push(v);return s}function Ws(t,i){return t<i}function df(t,i){var s=-1,v=Et(t)?z(t.length):[];return Ur(t,function(E,A,P){v[++s]=i(E,A,P)}),v}function pf(t){var i=tu(t);return i.length==1&&i[0][2]?Gf(i[0][0],i[0][1]):function(s){return s===t||ks(s,t,i)}}function hf(t,i){return nu(t)&&Zf(i)?Gf(ur(t),i):function(s){var v=pu(s,t);return v===n&&v===i?hu(s,t):mi(i,v,m|f)}}function Bo(t,i,s,v,E){t!==i&&Ls(i,function(A,P){if(E||(E=new Qt),Be(A))o1(t,i,P,s,Bo,v,E);else{var I=v?v(ou(t,P),A,P+"",t,i,E):n;I===n&&(I=A),Is(t,P,I)}},_t)}function o1(t,i,s,v,E,A,P){var I=ou(t,s),N=ou(i,s),K=P.get(N);if(K){Is(t,s,K);return}var Y=A?A(I,N,s+"",t,i,P):n,Q=Y===n;if(Q){var ie=be(N),ue=!ie&&qr(N),he=!ie&&!ue&&zn(N);Y=N,ie||ue||he?be(I)?Y=I:qe(I)?Y=St(I):ue?(Q=!1,Y=Af(N,!0)):he?(Q=!1,Y=Tf(N,!0)):Y=[]:Si(N)||hn(N)?(Y=I,hn(I)?Y=_d(I):(!Be(I)||xr(I))&&(Y=qf(N))):Q=!1}Q&&(P.set(N,Y),E(Y,N,v,A,P),P.delete(N)),Is(t,s,Y)}function vf(t,i){var s=t.length;if(s)return i+=i<0?s:0,_r(i,s)?t[i]:n}function mf(t,i,s){i.length?i=ke(i,function(A){return be(A)?function(P){return fn(P,A.length===1?A[0]:A)}:A}):i=[xt];var v=-1;i=ke(i,Rt(de()));var E=df(t,function(A,P,I){var N=ke(i,function(K){return K(A)});return{criteria:N,index:++v,value:A}});return Iy(E,function(A,P){return y1(A,P,s)})}function a1(t,i){return gf(t,i,function(s,v){return hu(t,v)})}function gf(t,i,s){for(var v=-1,E=i.length,A={};++v<E;){var P=i[v],I=fn(t,P);s(I,P)&&gi(A,zr(P,t),I)}return A}function s1(t){return function(i){return fn(i,t)}}function Us(t,i,s,v){var E=v?My:In,A=-1,P=i.length,I=t;for(t===i&&(i=St(i)),s&&(I=ke(t,Rt(s)));++A<P;)for(var N=0,K=i[A],Y=s?s(K):K;(N=E(I,Y,N,v))>-1;)I!==t&&Io.call(I,N,1),Io.call(t,N,1);return t}function yf(t,i){for(var s=t?i.length:0,v=s-1;s--;){var E=i[s];if(s==v||E!==A){var A=E;_r(E)?Io.call(t,E,1):qs(t,E)}}return t}function Bs(t,i){return t+Do(Xc()*(i-t+1))}function u1(t,i,s,v){for(var E=-1,A=Qe(Lo((i-t)/(s||1)),0),P=z(A);A--;)P[v?A:++E]=t,t+=s;return P}function zs(t,i){var s="";if(!t||i<1||i>te)return s;do i%2&&(s+=t),i=Do(i/2),i&&(t+=t);while(i);return s}function xe(t,i){return au(Kf(t,i,xt),t+"")}function l1(t){return ef(Hn(t))}function c1(t,i){var s=Hn(t);return Jo(s,cn(i,0,s.length))}function gi(t,i,s,v){if(!Be(t))return t;i=zr(i,t);for(var E=-1,A=i.length,P=A-1,I=t;I!=null&&++E<A;){var N=ur(i[E]),K=s;if(N==="__proto__"||N==="constructor"||N==="prototype")return t;if(E!=P){var Y=I[N];K=v?v(Y,N,I):n,K===n&&(K=Be(Y)?Y:_r(i[E+1])?[]:{})}pi(I,N,K),I=I[N]}return t}var wf=$o?function(t,i){return $o.set(t,i),t}:xt,f1=Fo?function(t,i){return Fo(t,"toString",{configurable:!0,enumerable:!1,value:mu(i),writable:!0})}:xt;function d1(t){return Jo(Hn(t))}function zt(t,i,s){var v=-1,E=t.length;i<0&&(i=-i>E?0:E+i),s=s>E?E:s,s<0&&(s+=E),E=i>s?0:s-i>>>0,i>>>=0;for(var A=z(E);++v<E;)A[v]=t[v+i];return A}function p1(t,i){var s;return Ur(t,function(v,E,A){return s=i(v,E,A),!s}),!!s}function zo(t,i,s){var v=0,E=t==null?v:t.length;if(typeof i=="number"&&i===i&&E<=ce){for(;v<E;){var A=v+E>>>1,P=t[A];P!==null&&!It(P)&&(s?P<=i:P<i)?v=A+1:E=A}return E}return Hs(t,i,xt,s)}function Hs(t,i,s,v){var E=0,A=t==null?0:t.length;if(A===0)return 0;i=s(i);for(var P=i!==i,I=i===null,N=It(i),K=i===n;E<A;){var Y=Do((E+A)/2),Q=s(t[Y]),ie=Q!==n,ue=Q===null,he=Q===Q,Ee=It(Q);if(P)var ve=v||he;else K?ve=he&&(v||ie):I?ve=he&&ie&&(v||!ue):N?ve=he&&ie&&!ue&&(v||!Ee):ue||Ee?ve=!1:ve=v?Q<=i:Q<i;ve?E=Y+1:A=Y}return pt(A,ae)}function bf(t,i){for(var s=-1,v=t.length,E=0,A=[];++s<v;){var P=t[s],I=i?i(P):P;if(!s||!er(I,N)){var N=I;A[E++]=P===0?0:P}}return A}function Sf(t){return typeof t=="number"?t:It(t)?Z:+t}function Mt(t){if(typeof t=="string")return t;if(be(t))return ke(t,Mt)+"";if(It(t))return Jc?Jc.call(t):"";var i=t+"";return i=="0"&&1/t==-V?"-0":i}function Br(t,i,s){var v=-1,E=Eo,A=t.length,P=!0,I=[],N=I;if(s)P=!1,E=ws;else if(A>=a){var K=i?null:x1(t);if(K)return xo(K);P=!1,E=si,N=new ln}else N=i?[]:I;e:for(;++v<A;){var Y=t[v],Q=i?i(Y):Y;if(Y=s||Y!==0?Y:0,P&&Q===Q){for(var ie=N.length;ie--;)if(N[ie]===Q)continue e;i&&N.push(Q),I.push(Y)}else E(N,Q,s)||(N!==I&&N.push(Q),I.push(Y))}return I}function qs(t,i){return i=zr(i,t),t=Vf(t,i),t==null||delete t[ur(Ht(i))]}function Ef(t,i,s,v){return gi(t,i,s(fn(t,i)),v)}function Ho(t,i,s,v){for(var E=t.length,A=v?E:-1;(v?A--:++A<E)&&i(t[A],A,t););return s?zt(t,v?0:A,v?A+1:E):zt(t,v?A+1:0,v?E:A)}function _f(t,i){var s=t;return s instanceof Te&&(s=s.value()),bs(i,function(v,E){return E.func.apply(E.thisArg,kr([v],E.args))},s)}function Zs(t,i,s){var v=t.length;if(v<2)return v?Br(t[0]):[];for(var E=-1,A=z(v);++E<v;)for(var P=t[E],I=-1;++I<v;)I!=E&&(A[E]=hi(A[E]||P,t[I],i,s));return Br(ut(A,1),i,s)}function xf(t,i,s){for(var v=-1,E=t.length,A=i.length,P={};++v<E;){var I=v<A?i[v]:n;s(P,t[v],I)}return P}function Gs(t){return qe(t)?t:[]}function Ks(t){return typeof t=="function"?t:xt}function zr(t,i){return be(t)?t:nu(t,i)?[t]:Qf(Re(t))}var h1=xe;function Hr(t,i,s){var v=t.length;return s=s===n?v:s,!i&&s>=v?t:zt(t,i,s)}var Of=t0||function(t){return st.clearTimeout(t)};function Af(t,i){if(i)return t.slice();var s=t.length,v=Zc?Zc(s):new t.constructor(s);return t.copy(v),v}function Vs(t){var i=new t.constructor(t.byteLength);return new Ro(i).set(new Ro(t)),i}function v1(t,i){var s=i?Vs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function m1(t){var i=new t.constructor(t.source,uc.exec(t));return i.lastIndex=t.lastIndex,i}function g1(t){return di?De(di.call(t)):{}}function Tf(t,i){var s=i?Vs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function Cf(t,i){if(t!==i){var s=t!==n,v=t===null,E=t===t,A=It(t),P=i!==n,I=i===null,N=i===i,K=It(i);if(!I&&!K&&!A&&t>i||A&&P&&N&&!I&&!K||v&&P&&N||!s&&N||!E)return 1;if(!v&&!A&&!K&&t<i||K&&s&&E&&!v&&!A||I&&s&&E||!P&&E||!N)return-1}return 0}function y1(t,i,s){for(var v=-1,E=t.criteria,A=i.criteria,P=E.length,I=s.length;++v<P;){var N=Cf(E[v],A[v]);if(N){if(v>=I)return N;var K=s[v];return N*(K=="desc"?-1:1)}}return t.index-i.index}function Pf(t,i,s,v){for(var E=-1,A=t.length,P=s.length,I=-1,N=i.length,K=Qe(A-P,0),Y=z(N+K),Q=!v;++I<N;)Y[I]=i[I];for(;++E<P;)(Q||E<A)&&(Y[s[E]]=t[E]);for(;K--;)Y[I++]=t[E++];return Y}function Rf(t,i,s,v){for(var E=-1,A=t.length,P=-1,I=s.length,N=-1,K=i.length,Y=Qe(A-I,0),Q=z(Y+K),ie=!v;++E<Y;)Q[E]=t[E];for(var ue=E;++N<K;)Q[ue+N]=i[N];for(;++P<I;)(ie||E<A)&&(Q[ue+s[P]]=t[E++]);return Q}function St(t,i){var s=-1,v=t.length;for(i||(i=z(v));++s<v;)i[s]=t[s];return i}function sr(t,i,s,v){var E=!s;s||(s={});for(var A=-1,P=i.length;++A<P;){var I=i[A],N=v?v(s[I],t[I],I,s,t):n;N===n&&(N=t[I]),E?br(s,I,N):pi(s,I,N)}return s}function w1(t,i){return sr(t,ru(t),i)}function b1(t,i){return sr(t,zf(t),i)}function qo(t,i){return function(s,v){var E=be(s)?Oy:B0,A=i?i():{};return E(s,t,de(v,2),A)}}function Wn(t){return xe(function(i,s){var v=-1,E=s.length,A=E>1?s[E-1]:n,P=E>2?s[2]:n;for(A=t.length>3&&typeof A=="function"?(E--,A):n,P&&yt(s[0],s[1],P)&&(A=E<3?n:A,E=1),i=De(i);++v<E;){var I=s[v];I&&t(i,I,v,A)}return i})}function Mf(t,i){return function(s,v){if(s==null)return s;if(!Et(s))return t(s,v);for(var E=s.length,A=i?E:-1,P=De(s);(i?A--:++A<E)&&v(P[A],A,P)!==!1;);return s}}function If(t){return function(i,s,v){for(var E=-1,A=De(i),P=v(i),I=P.length;I--;){var N=P[t?I:++E];if(s(A[N],N,A)===!1)break}return i}}function S1(t,i,s){var v=i&g,E=yi(t);function A(){var P=this&&this!==st&&this instanceof A?E:t;return P.apply(v?s:this,arguments)}return A}function Ff(t){return function(i){i=Re(i);var s=Fn(i)?Jt(i):n,v=s?s[0]:i.charAt(0),E=s?Hr(s,1).join(""):i.slice(1);return v[t]()+E}}function Un(t){return function(i){return bs(Md(Rd(i).replace(fy,"")),t,"")}}function yi(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=jn(t.prototype),v=t.apply(s,i);return Be(v)?v:s}}function E1(t,i,s){var v=yi(t);function E(){for(var A=arguments.length,P=z(A),I=A,N=Bn(E);I--;)P[I]=arguments[I];var K=A<3&&P[0]!==N&&P[A-1]!==N?[]:jr(P,N);if(A-=K.length,A<s)return kf(t,i,Zo,E.placeholder,n,P,K,n,n,s-A);var Y=this&&this!==st&&this instanceof E?v:t;return Pt(Y,this,P)}return E}function Lf(t){return function(i,s,v){var E=De(i);if(!Et(i)){var A=de(s,3);i=it(i),s=function(I){return A(E[I],I,E)}}var P=t(i,s,v);return P>-1?E[A?i[P]:P]:n}}function Df(t){return Er(function(i){var s=i.length,v=s,E=Ut.prototype.thru;for(t&&i.reverse();v--;){var A=i[v];if(typeof A!="function")throw new Wt(l);if(E&&!P&&Yo(A)=="wrapper")var P=new Ut([],!0)}for(v=P?v:s;++v<s;){A=i[v];var I=Yo(A),N=I=="wrapper"?eu(A):n;N&&iu(N[0])&&N[1]==(H|x|T|L)&&!N[4].length&&N[9]==1?P=P[Yo(N[0])].apply(P,N[3]):P=A.length==1&&iu(A)?P[I]():P.thru(A)}return function(){var K=arguments,Y=K[0];if(P&&K.length==1&&be(Y))return P.plant(Y).value();for(var Q=0,ie=s?i[Q].apply(this,K):Y;++Q<s;)ie=i[Q].call(this,ie);return ie}})}function Zo(t,i,s,v,E,A,P,I,N,K){var Y=i&H,Q=i&g,ie=i&b,ue=i&(x|C),he=i&k,Ee=ie?n:yi(t);function ve(){for(var Oe=arguments.length,Ce=z(Oe),Ft=Oe;Ft--;)Ce[Ft]=arguments[Ft];if(ue)var wt=Bn(ve),Lt=Ly(Ce,wt);if(v&&(Ce=Pf(Ce,v,E,ue)),A&&(Ce=Rf(Ce,A,P,ue)),Oe-=Lt,ue&&Oe<K){var Ze=jr(Ce,wt);return kf(t,i,Zo,ve.placeholder,s,Ce,Ze,I,N,K-Oe)}var tr=Q?s:this,Ar=ie?tr[t]:t;return Oe=Ce.length,I?Ce=B1(Ce,I):he&&Oe>1&&Ce.reverse(),Y&&N<Oe&&(Ce.length=N),this&&this!==st&&this instanceof ve&&(Ar=Ee||yi(Ar)),Ar.apply(tr,Ce)}return ve}function $f(t,i){return function(s,v){return Y0(s,t,i(v),{})}}function Go(t,i){return function(s,v){var E;if(s===n&&v===n)return i;if(s!==n&&(E=s),v!==n){if(E===n)return v;typeof s=="string"||typeof v=="string"?(s=Mt(s),v=Mt(v)):(s=Sf(s),v=Sf(v)),E=t(s,v)}return E}}function Ys(t){return Er(function(i){return i=ke(i,Rt(de())),xe(function(s){var v=this;return t(i,function(E){return Pt(E,v,s)})})})}function Ko(t,i){i=i===n?" ":Mt(i);var s=i.length;if(s<2)return s?zs(i,t):i;var v=zs(i,Lo(t/Ln(i)));return Fn(i)?Hr(Jt(v),0,t).join(""):v.slice(0,t)}function _1(t,i,s,v){var E=i&g,A=yi(t);function P(){for(var I=-1,N=arguments.length,K=-1,Y=v.length,Q=z(Y+N),ie=this&&this!==st&&this instanceof P?A:t;++K<Y;)Q[K]=v[K];for(;N--;)Q[K++]=arguments[++I];return Pt(ie,E?s:this,Q)}return P}function Nf(t){return function(i,s,v){return v&&typeof v!="number"&&yt(i,s,v)&&(s=v=n),i=Or(i),s===n?(s=i,i=0):s=Or(s),v=v===n?i<s?1:-1:Or(v),u1(i,s,v,t)}}function Vo(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=qt(i),s=qt(s)),t(i,s)}}function kf(t,i,s,v,E,A,P,I,N,K){var Y=i&x,Q=Y?P:n,ie=Y?n:P,ue=Y?A:n,he=Y?n:A;i|=Y?T:M,i&=~(Y?M:T),i&_||(i&=-4);var Ee=[t,i,E,ue,Q,he,ie,I,N,K],ve=s.apply(n,Ee);return iu(t)&&Yf(ve,Ee),ve.placeholder=v,Xf(ve,t,i)}function Xs(t){var i=Je[t];return function(s,v){if(s=qt(s),v=v==null?0:pt(Se(v),292),v&&Yc(s)){var E=(Re(s)+"e").split("e"),A=i(E[0]+"e"+(+E[1]+v));return E=(Re(A)+"e").split("e"),+(E[0]+"e"+(+E[1]-v))}return i(s)}}var x1=Nn&&1/xo(new Nn([,-0]))[1]==V?function(t){return new Nn(t)}:wu;function jf(t){return function(i){var s=ht(i);return s==nt?Ts(i):s==dt?Uy(i):Fy(i,t(i))}}function Sr(t,i,s,v,E,A,P,I){var N=i&b;if(!N&&typeof t!="function")throw new Wt(l);var K=v?v.length:0;if(K||(i&=-97,v=E=n),P=P===n?P:Qe(Se(P),0),I=I===n?I:Se(I),K-=E?E.length:0,i&M){var Y=v,Q=E;v=E=n}var ie=N?n:eu(t),ue=[t,i,s,v,E,Y,Q,A,P,I];if(ie&&j1(ue,ie),t=ue[0],i=ue[1],s=ue[2],v=ue[3],E=ue[4],I=ue[9]=ue[9]===n?N?0:t.length:Qe(ue[9]-K,0),!I&&i&(x|C)&&(i&=-25),!i||i==g)var he=S1(t,i,s);else i==x||i==C?he=E1(t,i,I):(i==T||i==(g|T))&&!E.length?he=_1(t,i,s,v):he=Zo.apply(n,ue);var Ee=ie?wf:Yf;return Xf(Ee(he,ue),t,i)}function Wf(t,i,s,v){return t===n||er(t,$n[s])&&!Fe.call(v,s)?i:t}function Uf(t,i,s,v,E,A){return Be(t)&&Be(i)&&(A.set(i,t),Bo(t,i,n,Uf,A),A.delete(i)),t}function O1(t){return Si(t)?n:t}function Bf(t,i,s,v,E,A){var P=s&m,I=t.length,N=i.length;if(I!=N&&!(P&&N>I))return!1;var K=A.get(t),Y=A.get(i);if(K&&Y)return K==i&&Y==t;var Q=-1,ie=!0,ue=s&f?new ln:n;for(A.set(t,i),A.set(i,t);++Q<I;){var he=t[Q],Ee=i[Q];if(v)var ve=P?v(Ee,he,Q,i,t,A):v(he,Ee,Q,t,i,A);if(ve!==n){if(ve)continue;ie=!1;break}if(ue){if(!Ss(i,function(Oe,Ce){if(!si(ue,Ce)&&(he===Oe||E(he,Oe,s,v,A)))return ue.push(Ce)})){ie=!1;break}}else if(!(he===Ee||E(he,Ee,s,v,A))){ie=!1;break}}return A.delete(t),A.delete(i),ie}function A1(t,i,s,v,E,A,P){switch(s){case gr:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case $r:return!(t.byteLength!=i.byteLength||!A(new Ro(t),new Ro(i)));case ge:case _e:case or:return er(+t,+i);case Ue:return t.name==i.name&&t.message==i.message;case Ct:case Lr:return t==i+"";case nt:var I=Ts;case dt:var N=v&m;if(I||(I=xo),t.size!=i.size&&!N)return!1;var K=P.get(t);if(K)return K==i;v|=f,P.set(t,i);var Y=Bf(I(t),I(i),v,E,A,P);return P.delete(t),Y;case on:if(di)return di.call(t)==di.call(i)}return!1}function T1(t,i,s,v,E,A){var P=s&m,I=Js(t),N=I.length,K=Js(i),Y=K.length;if(N!=Y&&!P)return!1;for(var Q=N;Q--;){var ie=I[Q];if(!(P?ie in i:Fe.call(i,ie)))return!1}var ue=A.get(t),he=A.get(i);if(ue&&he)return ue==i&&he==t;var Ee=!0;A.set(t,i),A.set(i,t);for(var ve=P;++Q<N;){ie=I[Q];var Oe=t[ie],Ce=i[ie];if(v)var Ft=P?v(Ce,Oe,ie,i,t,A):v(Oe,Ce,ie,t,i,A);if(!(Ft===n?Oe===Ce||E(Oe,Ce,s,v,A):Ft)){Ee=!1;break}ve||(ve=ie=="constructor")}if(Ee&&!ve){var wt=t.constructor,Lt=i.constructor;wt!=Lt&&"constructor"in t&&"constructor"in i&&!(typeof wt=="function"&&wt instanceof wt&&typeof Lt=="function"&&Lt instanceof Lt)&&(Ee=!1)}return A.delete(t),A.delete(i),Ee}function Er(t){return au(Kf(t,n,nd),t+"")}function Js(t){return uf(t,it,ru)}function Qs(t){return uf(t,_t,zf)}var eu=$o?function(t){return $o.get(t)}:wu;function Yo(t){for(var i=t.name+"",s=kn[i],v=Fe.call(kn,i)?s.length:0;v--;){var E=s[v],A=E.func;if(A==null||A==t)return E.name}return i}function Bn(t){var i=Fe.call(O,"placeholder")?O:t;return i.placeholder}function de(){var t=O.iteratee||gu;return t=t===gu?ff:t,arguments.length?t(arguments[0],arguments[1]):t}function Xo(t,i){var s=t.__data__;return D1(i)?s[typeof i=="string"?"string":"hash"]:s.map}function tu(t){for(var i=it(t),s=i.length;s--;){var v=i[s],E=t[v];i[s]=[v,E,Zf(E)]}return i}function dn(t,i){var s=ky(t,i);return cf(s)?s:n}function C1(t){var i=Fe.call(t,sn),s=t[sn];try{t[sn]=n;var v=!0}catch{}var E=Co.call(t);return v&&(i?t[sn]=s:delete t[sn]),E}var ru=Ps?function(t){return t==null?[]:(t=De(t),Nr(Ps(t),function(i){return Kc.call(t,i)}))}:bu,zf=Ps?function(t){for(var i=[];t;)kr(i,ru(t)),t=Mo(t);return i}:bu,ht=gt;(Rs&&ht(new Rs(new ArrayBuffer(1)))!=gr||li&&ht(new li)!=nt||Ms&&ht(Ms.resolve())!=go||Nn&&ht(new Nn)!=dt||ci&&ht(new ci)!=Dr)&&(ht=function(t){var i=gt(t),s=i==Nt?t.constructor:n,v=s?pn(s):"";if(v)switch(v){case c0:return gr;case f0:return nt;case d0:return go;case p0:return dt;case h0:return Dr}return i});function P1(t,i,s){for(var v=-1,E=s.length;++v<E;){var A=s[v],P=A.size;switch(A.type){case"drop":t+=P;break;case"dropRight":i-=P;break;case"take":i=pt(i,t+P);break;case"takeRight":t=Qe(t,i-P);break}}return{start:t,end:i}}function R1(t){var i=t.match($g);return i?i[1].split(Ng):[]}function Hf(t,i,s){i=zr(i,t);for(var v=-1,E=i.length,A=!1;++v<E;){var P=ur(i[v]);if(!(A=t!=null&&s(t,P)))break;t=t[P]}return A||++v!=E?A:(E=t==null?0:t.length,!!E&&ia(E)&&_r(P,E)&&(be(t)||hn(t)))}function M1(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&Fe.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function qf(t){return typeof t.constructor=="function"&&!wi(t)?jn(Mo(t)):{}}function I1(t,i,s){var v=t.constructor;switch(i){case $r:return Vs(t);case ge:case _e:return new v(+t);case gr:return v1(t,s);case ts:case rs:case ns:case is:case os:case as:case ss:case us:case ls:return Tf(t,s);case nt:return new v;case or:case Lr:return new v(t);case Ct:return m1(t);case dt:return new v;case on:return g1(t)}}function F1(t,i){var s=i.length;if(!s)return t;var v=s-1;return i[v]=(s>1?"& ":"")+i[v],i=i.join(s>2?", ":" "),t.replace(Dg,`{
118
+ */var eP=Zi.exports,Ah;function tP(){return Ah||(Ah=1,function(e,r){(function(){var n,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",d="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",S=500,y="__lodash_placeholder__",h=1,c=2,p=4,m=1,f=2,g=1,b=2,_=4,x=8,C=16,T=32,I=64,H=128,F=256,k=512,X=30,j="...",L=800,B=16,q=1,R=2,J=3,V=1/0,te=9007199254740991,le=17976931348623157e292,Z=NaN,ee=4294967295,ae=ee-1,ce=ee>>>1,oe=[["ary",H],["bind",g],["bindKey",b],["curry",x],["curryRight",C],["flip",k],["partial",T],["partialRight",I],["rearg",F]],fe="[object Arguments]",pe="[object Array]",ye="[object AsyncFunction]",ge="[object Boolean]",_e="[object Date]",Ae="[object DOMException]",Ue="[object Error]",ne="[object Function]",dt="[object GeneratorFunction]",nt="[object Map]",or="[object Number]",mo="[object Null]",kt="[object Object]",go="[object Promise]",es="[object Proxy]",Pt="[object RegExp]",pt="[object Set]",Fr="[object String]",on="[object Symbol]",ai="[object Undefined]",Dr="[object WeakMap]",yo="[object WeakSet]",$r="[object ArrayBuffer]",gr="[object DataView]",ts="[object Float32Array]",rs="[object Float64Array]",ns="[object Int8Array]",is="[object Int16Array]",os="[object Int32Array]",as="[object Uint8Array]",ss="[object Uint8ClampedArray]",us="[object Uint16Array]",ls="[object Uint32Array]",xg=/\b__p \+= '';/g,Og=/\b(__p \+=) '' \+/g,Ag=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ac=/&(?:amp|lt|gt|quot|#39);/g,sc=/[&<>"']/g,Tg=RegExp(ac.source),Cg=RegExp(sc.source),Pg=/<%-([\s\S]+?)%>/g,Rg=/<%([\s\S]+?)%>/g,uc=/<%=([\s\S]+?)%>/g,Ig=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mg=/^\w*$/,Lg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cs=/[\\^$.*+?()[\]{}|]/g,Fg=RegExp(cs.source),fs=/^\s+/,Dg=/\s/,$g=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ng=/\{\n\/\* \[wrapped with (.+)\] \*/,kg=/,? & /,jg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wg=/[()=,{}\[\]\/\s]/,Ug=/\\(\\)?/g,Bg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lc=/\w*$/,zg=/^[-+]0x[0-9a-f]+$/i,Hg=/^0b[01]+$/i,qg=/^\[object .+?Constructor\]$/,Zg=/^0o[0-7]+$/i,Gg=/^(?:0|[1-9]\d*)$/,Kg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wo=/($^)/,Vg=/['\n\r\u2028\u2029\\]/g,bo="\\ud800-\\udfff",Yg="\\u0300-\\u036f",Xg="\\ufe20-\\ufe2f",Jg="\\u20d0-\\u20ff",cc=Yg+Xg+Jg,fc="\\u2700-\\u27bf",dc="a-z\\xdf-\\xf6\\xf8-\\xff",Qg="\\xac\\xb1\\xd7\\xf7",ey="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ty="\\u2000-\\u206f",ry=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pc="A-Z\\xc0-\\xd6\\xd8-\\xde",hc="\\ufe0e\\ufe0f",vc=Qg+ey+ty+ry,ds="['’]",ny="["+bo+"]",mc="["+vc+"]",So="["+cc+"]",gc="\\d+",iy="["+fc+"]",yc="["+dc+"]",wc="[^"+bo+vc+gc+fc+dc+pc+"]",ps="\\ud83c[\\udffb-\\udfff]",oy="(?:"+So+"|"+ps+")",bc="[^"+bo+"]",hs="(?:\\ud83c[\\udde6-\\uddff]){2}",vs="[\\ud800-\\udbff][\\udc00-\\udfff]",In="["+pc+"]",Sc="\\u200d",Ec="(?:"+yc+"|"+wc+")",ay="(?:"+In+"|"+wc+")",_c="(?:"+ds+"(?:d|ll|m|re|s|t|ve))?",xc="(?:"+ds+"(?:D|LL|M|RE|S|T|VE))?",Oc=oy+"?",Ac="["+hc+"]?",sy="(?:"+Sc+"(?:"+[bc,hs,vs].join("|")+")"+Ac+Oc+")*",uy="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ly="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tc=Ac+Oc+sy,cy="(?:"+[iy,hs,vs].join("|")+")"+Tc,fy="(?:"+[bc+So+"?",So,hs,vs,ny].join("|")+")",dy=RegExp(ds,"g"),py=RegExp(So,"g"),ms=RegExp(ps+"(?="+ps+")|"+fy+Tc,"g"),hy=RegExp([In+"?"+yc+"+"+_c+"(?="+[mc,In,"$"].join("|")+")",ay+"+"+xc+"(?="+[mc,In+Ec,"$"].join("|")+")",In+"?"+Ec+"+"+_c,In+"+"+xc,ly,uy,gc,cy].join("|"),"g"),vy=RegExp("["+Sc+bo+cc+hc+"]"),my=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gy=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yy=-1,Ne={};Ne[ts]=Ne[rs]=Ne[ns]=Ne[is]=Ne[os]=Ne[as]=Ne[ss]=Ne[us]=Ne[ls]=!0,Ne[fe]=Ne[pe]=Ne[$r]=Ne[ge]=Ne[gr]=Ne[_e]=Ne[Ue]=Ne[ne]=Ne[nt]=Ne[or]=Ne[kt]=Ne[Pt]=Ne[pt]=Ne[Fr]=Ne[Dr]=!1;var $e={};$e[fe]=$e[pe]=$e[$r]=$e[gr]=$e[ge]=$e[_e]=$e[ts]=$e[rs]=$e[ns]=$e[is]=$e[os]=$e[nt]=$e[or]=$e[kt]=$e[Pt]=$e[pt]=$e[Fr]=$e[on]=$e[as]=$e[ss]=$e[us]=$e[ls]=!0,$e[Ue]=$e[ne]=$e[Dr]=!1;var wy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},by={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Sy={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ey={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_y=parseFloat,xy=parseInt,Cc=typeof ua=="object"&&ua&&ua.Object===Object&&ua,Oy=typeof self=="object"&&self&&self.Object===Object&&self,st=Cc||Oy||Function("return this")(),gs=r&&!r.nodeType&&r,an=gs&&!0&&e&&!e.nodeType&&e,Pc=an&&an.exports===gs,ys=Pc&&Cc.process,jt=function(){try{var D=an&&an.require&&an.require("util").types;return D||ys&&ys.binding&&ys.binding("util")}catch{}}(),Rc=jt&&jt.isArrayBuffer,Ic=jt&&jt.isDate,Mc=jt&&jt.isMap,Lc=jt&&jt.isRegExp,Fc=jt&&jt.isSet,Dc=jt&&jt.isTypedArray;function Rt(D,G,z){switch(z.length){case 0:return D.call(G);case 1:return D.call(G,z[0]);case 2:return D.call(G,z[0],z[1]);case 3:return D.call(G,z[0],z[1],z[2])}return D.apply(G,z)}function Ay(D,G,z,se){for(var we=-1,Pe=D==null?0:D.length;++we<Pe;){var Je=D[we];G(se,Je,z(Je),D)}return se}function Wt(D,G){for(var z=-1,se=D==null?0:D.length;++z<se&&G(D[z],z,D)!==!1;);return D}function Ty(D,G){for(var z=D==null?0:D.length;z--&&G(D[z],z,D)!==!1;);return D}function $c(D,G){for(var z=-1,se=D==null?0:D.length;++z<se;)if(!G(D[z],z,D))return!1;return!0}function Nr(D,G){for(var z=-1,se=D==null?0:D.length,we=0,Pe=[];++z<se;){var Je=D[z];G(Je,z,D)&&(Pe[we++]=Je)}return Pe}function Eo(D,G){var z=D==null?0:D.length;return!!z&&Mn(D,G,0)>-1}function ws(D,G,z){for(var se=-1,we=D==null?0:D.length;++se<we;)if(z(G,D[se]))return!0;return!1}function ke(D,G){for(var z=-1,se=D==null?0:D.length,we=Array(se);++z<se;)we[z]=G(D[z],z,D);return we}function kr(D,G){for(var z=-1,se=G.length,we=D.length;++z<se;)D[we+z]=G[z];return D}function bs(D,G,z,se){var we=-1,Pe=D==null?0:D.length;for(se&&Pe&&(z=D[++we]);++we<Pe;)z=G(z,D[we],we,D);return z}function Cy(D,G,z,se){var we=D==null?0:D.length;for(se&&we&&(z=D[--we]);we--;)z=G(z,D[we],we,D);return z}function Ss(D,G){for(var z=-1,se=D==null?0:D.length;++z<se;)if(G(D[z],z,D))return!0;return!1}var Py=Es("length");function Ry(D){return D.split("")}function Iy(D){return D.match(jg)||[]}function Nc(D,G,z){var se;return z(D,function(we,Pe,Je){if(G(we,Pe,Je))return se=Pe,!1}),se}function _o(D,G,z,se){for(var we=D.length,Pe=z+(se?1:-1);se?Pe--:++Pe<we;)if(G(D[Pe],Pe,D))return Pe;return-1}function Mn(D,G,z){return G===G?zy(D,G,z):_o(D,kc,z)}function My(D,G,z,se){for(var we=z-1,Pe=D.length;++we<Pe;)if(se(D[we],G))return we;return-1}function kc(D){return D!==D}function jc(D,G){var z=D==null?0:D.length;return z?xs(D,G)/z:Z}function Es(D){return function(G){return G==null?n:G[D]}}function _s(D){return function(G){return D==null?n:D[G]}}function Wc(D,G,z,se,we){return we(D,function(Pe,Je,De){z=se?(se=!1,Pe):G(z,Pe,Je,De)}),z}function Ly(D,G){var z=D.length;for(D.sort(G);z--;)D[z]=D[z].value;return D}function xs(D,G){for(var z,se=-1,we=D.length;++se<we;){var Pe=G(D[se]);Pe!==n&&(z=z===n?Pe:z+Pe)}return z}function Os(D,G){for(var z=-1,se=Array(D);++z<D;)se[z]=G(z);return se}function Fy(D,G){return ke(G,function(z){return[z,D[z]]})}function Uc(D){return D&&D.slice(0,qc(D)+1).replace(fs,"")}function It(D){return function(G){return D(G)}}function As(D,G){return ke(G,function(z){return D[z]})}function si(D,G){return D.has(G)}function Bc(D,G){for(var z=-1,se=D.length;++z<se&&Mn(G,D[z],0)>-1;);return z}function zc(D,G){for(var z=D.length;z--&&Mn(G,D[z],0)>-1;);return z}function Dy(D,G){for(var z=D.length,se=0;z--;)D[z]===G&&++se;return se}var $y=_s(wy),Ny=_s(by);function ky(D){return"\\"+Ey[D]}function jy(D,G){return D==null?n:D[G]}function Ln(D){return vy.test(D)}function Wy(D){return my.test(D)}function Uy(D){for(var G,z=[];!(G=D.next()).done;)z.push(G.value);return z}function Ts(D){var G=-1,z=Array(D.size);return D.forEach(function(se,we){z[++G]=[we,se]}),z}function Hc(D,G){return function(z){return D(G(z))}}function jr(D,G){for(var z=-1,se=D.length,we=0,Pe=[];++z<se;){var Je=D[z];(Je===G||Je===y)&&(D[z]=y,Pe[we++]=z)}return Pe}function xo(D){var G=-1,z=Array(D.size);return D.forEach(function(se){z[++G]=se}),z}function By(D){var G=-1,z=Array(D.size);return D.forEach(function(se){z[++G]=[se,se]}),z}function zy(D,G,z){for(var se=z-1,we=D.length;++se<we;)if(D[se]===G)return se;return-1}function Hy(D,G,z){for(var se=z+1;se--;)if(D[se]===G)return se;return se}function Fn(D){return Ln(D)?Zy(D):Py(D)}function Jt(D){return Ln(D)?Gy(D):Ry(D)}function qc(D){for(var G=D.length;G--&&Dg.test(D.charAt(G)););return G}var qy=_s(Sy);function Zy(D){for(var G=ms.lastIndex=0;ms.test(D);)++G;return G}function Gy(D){return D.match(ms)||[]}function Ky(D){return D.match(hy)||[]}var Vy=function D(G){G=G==null?st:Dn.defaults(st.Object(),G,Dn.pick(st,gy));var z=G.Array,se=G.Date,we=G.Error,Pe=G.Function,Je=G.Math,De=G.Object,Cs=G.RegExp,Yy=G.String,Ut=G.TypeError,Oo=z.prototype,Xy=Pe.prototype,$n=De.prototype,Ao=G["__core-js_shared__"],To=Xy.toString,Le=$n.hasOwnProperty,Jy=0,Zc=function(){var t=/[^.]+$/.exec(Ao&&Ao.keys&&Ao.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Co=$n.toString,Qy=To.call(De),e0=st._,t0=Cs("^"+To.call(Le).replace(cs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Po=Pc?G.Buffer:n,Wr=G.Symbol,Ro=G.Uint8Array,Gc=Po?Po.allocUnsafe:n,Io=Hc(De.getPrototypeOf,De),Kc=De.create,Vc=$n.propertyIsEnumerable,Mo=Oo.splice,Yc=Wr?Wr.isConcatSpreadable:n,ui=Wr?Wr.iterator:n,sn=Wr?Wr.toStringTag:n,Lo=function(){try{var t=dn(De,"defineProperty");return t({},"",{}),t}catch{}}(),r0=G.clearTimeout!==st.clearTimeout&&G.clearTimeout,n0=se&&se.now!==st.Date.now&&se.now,i0=G.setTimeout!==st.setTimeout&&G.setTimeout,Fo=Je.ceil,Do=Je.floor,Ps=De.getOwnPropertySymbols,o0=Po?Po.isBuffer:n,Xc=G.isFinite,a0=Oo.join,s0=Hc(De.keys,De),Qe=Je.max,ht=Je.min,u0=se.now,l0=G.parseInt,Jc=Je.random,c0=Oo.reverse,Rs=dn(G,"DataView"),li=dn(G,"Map"),Is=dn(G,"Promise"),Nn=dn(G,"Set"),ci=dn(G,"WeakMap"),fi=dn(De,"create"),$o=ci&&new ci,kn={},f0=pn(Rs),d0=pn(li),p0=pn(Is),h0=pn(Nn),v0=pn(ci),No=Wr?Wr.prototype:n,di=No?No.valueOf:n,Qc=No?No.toString:n;function O(t){if(He(t)&&!be(t)&&!(t instanceof Te)){if(t instanceof Bt)return t;if(Le.call(t,"__wrapped__"))return td(t)}return new Bt(t)}var jn=function(){function t(){}return function(i){if(!Be(i))return{};if(Kc)return Kc(i);t.prototype=i;var s=new t;return t.prototype=n,s}}();function ko(){}function Bt(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}O.templateSettings={escape:Pg,evaluate:Rg,interpolate:uc,variable:"",imports:{_:O}},O.prototype=ko.prototype,O.prototype.constructor=O,Bt.prototype=jn(ko.prototype),Bt.prototype.constructor=Bt;function Te(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function m0(){var t=new Te(this.__wrapped__);return t.__actions__=Et(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Et(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Et(this.__views__),t}function g0(){if(this.__filtered__){var t=new Te(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function y0(){var t=this.__wrapped__.value(),i=this.__dir__,s=be(t),v=i<0,E=s?t.length:0,A=R1(0,E,this.__views__),P=A.start,M=A.end,N=M-P,K=v?M:P-1,Y=this.__iteratees__,Q=Y.length,ie=0,ue=ht(N,this.__takeCount__);if(!s||!v&&E==N&&ue==N)return xf(t,this.__actions__);var he=[];e:for(;N--&&ie<ue;){K+=i;for(var Ee=-1,ve=t[K];++Ee<Q;){var Oe=Y[Ee],Ce=Oe.iteratee,Ft=Oe.type,bt=Ce(ve);if(Ft==R)ve=bt;else if(!bt){if(Ft==q)continue e;break e}}he[ie++]=ve}return he}Te.prototype=jn(ko.prototype),Te.prototype.constructor=Te;function un(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var v=t[i];this.set(v[0],v[1])}}function w0(){this.__data__=fi?fi(null):{},this.size=0}function b0(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function S0(t){var i=this.__data__;if(fi){var s=i[t];return s===w?n:s}return Le.call(i,t)?i[t]:n}function E0(t){var i=this.__data__;return fi?i[t]!==n:Le.call(i,t)}function _0(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=fi&&i===n?w:i,this}un.prototype.clear=w0,un.prototype.delete=b0,un.prototype.get=S0,un.prototype.has=E0,un.prototype.set=_0;function yr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var v=t[i];this.set(v[0],v[1])}}function x0(){this.__data__=[],this.size=0}function O0(t){var i=this.__data__,s=jo(i,t);if(s<0)return!1;var v=i.length-1;return s==v?i.pop():Mo.call(i,s,1),--this.size,!0}function A0(t){var i=this.__data__,s=jo(i,t);return s<0?n:i[s][1]}function T0(t){return jo(this.__data__,t)>-1}function C0(t,i){var s=this.__data__,v=jo(s,t);return v<0?(++this.size,s.push([t,i])):s[v][1]=i,this}yr.prototype.clear=x0,yr.prototype.delete=O0,yr.prototype.get=A0,yr.prototype.has=T0,yr.prototype.set=C0;function wr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var v=t[i];this.set(v[0],v[1])}}function P0(){this.size=0,this.__data__={hash:new un,map:new(li||yr),string:new un}}function R0(t){var i=Xo(this,t).delete(t);return this.size-=i?1:0,i}function I0(t){return Xo(this,t).get(t)}function M0(t){return Xo(this,t).has(t)}function L0(t,i){var s=Xo(this,t),v=s.size;return s.set(t,i),this.size+=s.size==v?0:1,this}wr.prototype.clear=P0,wr.prototype.delete=R0,wr.prototype.get=I0,wr.prototype.has=M0,wr.prototype.set=L0;function ln(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new wr;++i<s;)this.add(t[i])}function F0(t){return this.__data__.set(t,w),this}function D0(t){return this.__data__.has(t)}ln.prototype.add=ln.prototype.push=F0,ln.prototype.has=D0;function Qt(t){var i=this.__data__=new yr(t);this.size=i.size}function $0(){this.__data__=new yr,this.size=0}function N0(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function k0(t){return this.__data__.get(t)}function j0(t){return this.__data__.has(t)}function W0(t,i){var s=this.__data__;if(s instanceof yr){var v=s.__data__;if(!li||v.length<a-1)return v.push([t,i]),this.size=++s.size,this;s=this.__data__=new wr(v)}return s.set(t,i),this.size=s.size,this}Qt.prototype.clear=$0,Qt.prototype.delete=N0,Qt.prototype.get=k0,Qt.prototype.has=j0,Qt.prototype.set=W0;function ef(t,i){var s=be(t),v=!s&&hn(t),E=!s&&!v&&qr(t),A=!s&&!v&&!E&&zn(t),P=s||v||E||A,M=P?Os(t.length,Yy):[],N=M.length;for(var K in t)(i||Le.call(t,K))&&!(P&&(K=="length"||E&&(K=="offset"||K=="parent")||A&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||_r(K,N)))&&M.push(K);return M}function tf(t){var i=t.length;return i?t[Bs(0,i-1)]:n}function U0(t,i){return Jo(Et(t),cn(i,0,t.length))}function B0(t){return Jo(Et(t))}function Ms(t,i,s){(s!==n&&!er(t[i],s)||s===n&&!(i in t))&&br(t,i,s)}function pi(t,i,s){var v=t[i];(!(Le.call(t,i)&&er(v,s))||s===n&&!(i in t))&&br(t,i,s)}function jo(t,i){for(var s=t.length;s--;)if(er(t[s][0],i))return s;return-1}function z0(t,i,s,v){return Ur(t,function(E,A,P){i(v,E,s(E),P)}),v}function rf(t,i){return t&&sr(i,it(i),t)}function H0(t,i){return t&&sr(i,xt(i),t)}function br(t,i,s){i=="__proto__"&&Lo?Lo(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function Ls(t,i){for(var s=-1,v=i.length,E=z(v),A=t==null;++s<v;)E[s]=A?n:pu(t,i[s]);return E}function cn(t,i,s){return t===t&&(s!==n&&(t=t<=s?t:s),i!==n&&(t=t>=i?t:i)),t}function zt(t,i,s,v,E,A){var P,M=i&h,N=i&c,K=i&p;if(s&&(P=E?s(t,v,E,A):s(t)),P!==n)return P;if(!Be(t))return t;var Y=be(t);if(Y){if(P=M1(t),!M)return Et(t,P)}else{var Q=vt(t),ie=Q==ne||Q==dt;if(qr(t))return Tf(t,M);if(Q==kt||Q==fe||ie&&!E){if(P=N||ie?{}:Zf(t),!M)return N?S1(t,H0(P,t)):b1(t,rf(P,t))}else{if(!$e[Q])return E?t:{};P=L1(t,Q,M)}}A||(A=new Qt);var ue=A.get(t);if(ue)return ue;A.set(t,P),Sd(t)?t.forEach(function(ve){P.add(zt(ve,i,s,ve,t,A))}):wd(t)&&t.forEach(function(ve,Oe){P.set(Oe,zt(ve,i,s,Oe,t,A))});var he=K?N?Qs:Js:N?xt:it,Ee=Y?n:he(t);return Wt(Ee||t,function(ve,Oe){Ee&&(Oe=ve,ve=t[Oe]),pi(P,Oe,zt(ve,i,s,Oe,t,A))}),P}function q0(t){var i=it(t);return function(s){return nf(s,t,i)}}function nf(t,i,s){var v=s.length;if(t==null)return!v;for(t=De(t);v--;){var E=s[v],A=i[E],P=t[E];if(P===n&&!(E in t)||!A(P))return!1}return!0}function of(t,i,s){if(typeof t!="function")throw new Ut(l);return bi(function(){t.apply(n,s)},i)}function hi(t,i,s,v){var E=-1,A=Eo,P=!0,M=t.length,N=[],K=i.length;if(!M)return N;s&&(i=ke(i,It(s))),v?(A=ws,P=!1):i.length>=a&&(A=si,P=!1,i=new ln(i));e:for(;++E<M;){var Y=t[E],Q=s==null?Y:s(Y);if(Y=v||Y!==0?Y:0,P&&Q===Q){for(var ie=K;ie--;)if(i[ie]===Q)continue e;N.push(Y)}else A(i,Q,v)||N.push(Y)}return N}var Ur=Mf(ar),af=Mf(Ds,!0);function Z0(t,i){var s=!0;return Ur(t,function(v,E,A){return s=!!i(v,E,A),s}),s}function Wo(t,i,s){for(var v=-1,E=t.length;++v<E;){var A=t[v],P=i(A);if(P!=null&&(M===n?P===P&&!Lt(P):s(P,M)))var M=P,N=A}return N}function G0(t,i,s,v){var E=t.length;for(s=Se(s),s<0&&(s=-s>E?0:E+s),v=v===n||v>E?E:Se(v),v<0&&(v+=E),v=s>v?0:_d(v);s<v;)t[s++]=i;return t}function sf(t,i){var s=[];return Ur(t,function(v,E,A){i(v,E,A)&&s.push(v)}),s}function ut(t,i,s,v,E){var A=-1,P=t.length;for(s||(s=D1),E||(E=[]);++A<P;){var M=t[A];i>0&&s(M)?i>1?ut(M,i-1,s,v,E):kr(E,M):v||(E[E.length]=M)}return E}var Fs=Lf(),uf=Lf(!0);function ar(t,i){return t&&Fs(t,i,it)}function Ds(t,i){return t&&uf(t,i,it)}function Uo(t,i){return Nr(i,function(s){return xr(t[s])})}function fn(t,i){i=zr(i,t);for(var s=0,v=i.length;t!=null&&s<v;)t=t[ur(i[s++])];return s&&s==v?t:n}function lf(t,i,s){var v=i(t);return be(t)?v:kr(v,s(t))}function yt(t){return t==null?t===n?ai:mo:sn&&sn in De(t)?P1(t):B1(t)}function $s(t,i){return t>i}function K0(t,i){return t!=null&&Le.call(t,i)}function V0(t,i){return t!=null&&i in De(t)}function Y0(t,i,s){return t>=ht(i,s)&&t<Qe(i,s)}function Ns(t,i,s){for(var v=s?ws:Eo,E=t[0].length,A=t.length,P=A,M=z(A),N=1/0,K=[];P--;){var Y=t[P];P&&i&&(Y=ke(Y,It(i))),N=ht(Y.length,N),M[P]=!s&&(i||E>=120&&Y.length>=120)?new ln(P&&Y):n}Y=t[0];var Q=-1,ie=M[0];e:for(;++Q<E&&K.length<N;){var ue=Y[Q],he=i?i(ue):ue;if(ue=s||ue!==0?ue:0,!(ie?si(ie,he):v(K,he,s))){for(P=A;--P;){var Ee=M[P];if(!(Ee?si(Ee,he):v(t[P],he,s)))continue e}ie&&ie.push(he),K.push(ue)}}return K}function X0(t,i,s,v){return ar(t,function(E,A,P){i(v,s(E),A,P)}),v}function vi(t,i,s){i=zr(i,t),t=Yf(t,i);var v=t==null?t:t[ur(qt(i))];return v==null?n:Rt(v,t,s)}function cf(t){return He(t)&&yt(t)==fe}function J0(t){return He(t)&&yt(t)==$r}function Q0(t){return He(t)&&yt(t)==_e}function mi(t,i,s,v,E){return t===i?!0:t==null||i==null||!He(t)&&!He(i)?t!==t&&i!==i:e1(t,i,s,v,mi,E)}function e1(t,i,s,v,E,A){var P=be(t),M=be(i),N=P?pe:vt(t),K=M?pe:vt(i);N=N==fe?kt:N,K=K==fe?kt:K;var Y=N==kt,Q=K==kt,ie=N==K;if(ie&&qr(t)){if(!qr(i))return!1;P=!0,Y=!1}if(ie&&!Y)return A||(A=new Qt),P||zn(t)?zf(t,i,s,v,E,A):T1(t,i,N,s,v,E,A);if(!(s&m)){var ue=Y&&Le.call(t,"__wrapped__"),he=Q&&Le.call(i,"__wrapped__");if(ue||he){var Ee=ue?t.value():t,ve=he?i.value():i;return A||(A=new Qt),E(Ee,ve,s,v,A)}}return ie?(A||(A=new Qt),C1(t,i,s,v,E,A)):!1}function t1(t){return He(t)&&vt(t)==nt}function ks(t,i,s,v){var E=s.length,A=E,P=!v;if(t==null)return!A;for(t=De(t);E--;){var M=s[E];if(P&&M[2]?M[1]!==t[M[0]]:!(M[0]in t))return!1}for(;++E<A;){M=s[E];var N=M[0],K=t[N],Y=M[1];if(P&&M[2]){if(K===n&&!(N in t))return!1}else{var Q=new Qt;if(v)var ie=v(K,Y,N,t,i,Q);if(!(ie===n?mi(Y,K,m|f,v,Q):ie))return!1}}return!0}function ff(t){if(!Be(t)||N1(t))return!1;var i=xr(t)?t0:qg;return i.test(pn(t))}function r1(t){return He(t)&&yt(t)==Pt}function n1(t){return He(t)&&vt(t)==pt}function i1(t){return He(t)&&ia(t.length)&&!!Ne[yt(t)]}function df(t){return typeof t=="function"?t:t==null?Ot:typeof t=="object"?be(t)?vf(t[0],t[1]):hf(t):Fd(t)}function js(t){if(!wi(t))return s0(t);var i=[];for(var s in De(t))Le.call(t,s)&&s!="constructor"&&i.push(s);return i}function o1(t){if(!Be(t))return U1(t);var i=wi(t),s=[];for(var v in t)v=="constructor"&&(i||!Le.call(t,v))||s.push(v);return s}function Ws(t,i){return t<i}function pf(t,i){var s=-1,v=_t(t)?z(t.length):[];return Ur(t,function(E,A,P){v[++s]=i(E,A,P)}),v}function hf(t){var i=tu(t);return i.length==1&&i[0][2]?Kf(i[0][0],i[0][1]):function(s){return s===t||ks(s,t,i)}}function vf(t,i){return nu(t)&&Gf(i)?Kf(ur(t),i):function(s){var v=pu(s,t);return v===n&&v===i?hu(s,t):mi(i,v,m|f)}}function Bo(t,i,s,v,E){t!==i&&Fs(i,function(A,P){if(E||(E=new Qt),Be(A))a1(t,i,P,s,Bo,v,E);else{var M=v?v(ou(t,P),A,P+"",t,i,E):n;M===n&&(M=A),Ms(t,P,M)}},xt)}function a1(t,i,s,v,E,A,P){var M=ou(t,s),N=ou(i,s),K=P.get(N);if(K){Ms(t,s,K);return}var Y=A?A(M,N,s+"",t,i,P):n,Q=Y===n;if(Q){var ie=be(N),ue=!ie&&qr(N),he=!ie&&!ue&&zn(N);Y=N,ie||ue||he?be(M)?Y=M:qe(M)?Y=Et(M):ue?(Q=!1,Y=Tf(N,!0)):he?(Q=!1,Y=Cf(N,!0)):Y=[]:Si(N)||hn(N)?(Y=M,hn(M)?Y=xd(M):(!Be(M)||xr(M))&&(Y=Zf(N))):Q=!1}Q&&(P.set(N,Y),E(Y,N,v,A,P),P.delete(N)),Ms(t,s,Y)}function mf(t,i){var s=t.length;if(s)return i+=i<0?s:0,_r(i,s)?t[i]:n}function gf(t,i,s){i.length?i=ke(i,function(A){return be(A)?function(P){return fn(P,A.length===1?A[0]:A)}:A}):i=[Ot];var v=-1;i=ke(i,It(de()));var E=pf(t,function(A,P,M){var N=ke(i,function(K){return K(A)});return{criteria:N,index:++v,value:A}});return Ly(E,function(A,P){return w1(A,P,s)})}function s1(t,i){return yf(t,i,function(s,v){return hu(t,v)})}function yf(t,i,s){for(var v=-1,E=i.length,A={};++v<E;){var P=i[v],M=fn(t,P);s(M,P)&&gi(A,zr(P,t),M)}return A}function u1(t){return function(i){return fn(i,t)}}function Us(t,i,s,v){var E=v?My:Mn,A=-1,P=i.length,M=t;for(t===i&&(i=Et(i)),s&&(M=ke(t,It(s)));++A<P;)for(var N=0,K=i[A],Y=s?s(K):K;(N=E(M,Y,N,v))>-1;)M!==t&&Mo.call(M,N,1),Mo.call(t,N,1);return t}function wf(t,i){for(var s=t?i.length:0,v=s-1;s--;){var E=i[s];if(s==v||E!==A){var A=E;_r(E)?Mo.call(t,E,1):qs(t,E)}}return t}function Bs(t,i){return t+Do(Jc()*(i-t+1))}function l1(t,i,s,v){for(var E=-1,A=Qe(Fo((i-t)/(s||1)),0),P=z(A);A--;)P[v?A:++E]=t,t+=s;return P}function zs(t,i){var s="";if(!t||i<1||i>te)return s;do i%2&&(s+=t),i=Do(i/2),i&&(t+=t);while(i);return s}function xe(t,i){return au(Vf(t,i,Ot),t+"")}function c1(t){return tf(Hn(t))}function f1(t,i){var s=Hn(t);return Jo(s,cn(i,0,s.length))}function gi(t,i,s,v){if(!Be(t))return t;i=zr(i,t);for(var E=-1,A=i.length,P=A-1,M=t;M!=null&&++E<A;){var N=ur(i[E]),K=s;if(N==="__proto__"||N==="constructor"||N==="prototype")return t;if(E!=P){var Y=M[N];K=v?v(Y,N,M):n,K===n&&(K=Be(Y)?Y:_r(i[E+1])?[]:{})}pi(M,N,K),M=M[N]}return t}var bf=$o?function(t,i){return $o.set(t,i),t}:Ot,d1=Lo?function(t,i){return Lo(t,"toString",{configurable:!0,enumerable:!1,value:mu(i),writable:!0})}:Ot;function p1(t){return Jo(Hn(t))}function Ht(t,i,s){var v=-1,E=t.length;i<0&&(i=-i>E?0:E+i),s=s>E?E:s,s<0&&(s+=E),E=i>s?0:s-i>>>0,i>>>=0;for(var A=z(E);++v<E;)A[v]=t[v+i];return A}function h1(t,i){var s;return Ur(t,function(v,E,A){return s=i(v,E,A),!s}),!!s}function zo(t,i,s){var v=0,E=t==null?v:t.length;if(typeof i=="number"&&i===i&&E<=ce){for(;v<E;){var A=v+E>>>1,P=t[A];P!==null&&!Lt(P)&&(s?P<=i:P<i)?v=A+1:E=A}return E}return Hs(t,i,Ot,s)}function Hs(t,i,s,v){var E=0,A=t==null?0:t.length;if(A===0)return 0;i=s(i);for(var P=i!==i,M=i===null,N=Lt(i),K=i===n;E<A;){var Y=Do((E+A)/2),Q=s(t[Y]),ie=Q!==n,ue=Q===null,he=Q===Q,Ee=Lt(Q);if(P)var ve=v||he;else K?ve=he&&(v||ie):M?ve=he&&ie&&(v||!ue):N?ve=he&&ie&&!ue&&(v||!Ee):ue||Ee?ve=!1:ve=v?Q<=i:Q<i;ve?E=Y+1:A=Y}return ht(A,ae)}function Sf(t,i){for(var s=-1,v=t.length,E=0,A=[];++s<v;){var P=t[s],M=i?i(P):P;if(!s||!er(M,N)){var N=M;A[E++]=P===0?0:P}}return A}function Ef(t){return typeof t=="number"?t:Lt(t)?Z:+t}function Mt(t){if(typeof t=="string")return t;if(be(t))return ke(t,Mt)+"";if(Lt(t))return Qc?Qc.call(t):"";var i=t+"";return i=="0"&&1/t==-V?"-0":i}function Br(t,i,s){var v=-1,E=Eo,A=t.length,P=!0,M=[],N=M;if(s)P=!1,E=ws;else if(A>=a){var K=i?null:O1(t);if(K)return xo(K);P=!1,E=si,N=new ln}else N=i?[]:M;e:for(;++v<A;){var Y=t[v],Q=i?i(Y):Y;if(Y=s||Y!==0?Y:0,P&&Q===Q){for(var ie=N.length;ie--;)if(N[ie]===Q)continue e;i&&N.push(Q),M.push(Y)}else E(N,Q,s)||(N!==M&&N.push(Q),M.push(Y))}return M}function qs(t,i){return i=zr(i,t),t=Yf(t,i),t==null||delete t[ur(qt(i))]}function _f(t,i,s,v){return gi(t,i,s(fn(t,i)),v)}function Ho(t,i,s,v){for(var E=t.length,A=v?E:-1;(v?A--:++A<E)&&i(t[A],A,t););return s?Ht(t,v?0:A,v?A+1:E):Ht(t,v?A+1:0,v?E:A)}function xf(t,i){var s=t;return s instanceof Te&&(s=s.value()),bs(i,function(v,E){return E.func.apply(E.thisArg,kr([v],E.args))},s)}function Zs(t,i,s){var v=t.length;if(v<2)return v?Br(t[0]):[];for(var E=-1,A=z(v);++E<v;)for(var P=t[E],M=-1;++M<v;)M!=E&&(A[E]=hi(A[E]||P,t[M],i,s));return Br(ut(A,1),i,s)}function Of(t,i,s){for(var v=-1,E=t.length,A=i.length,P={};++v<E;){var M=v<A?i[v]:n;s(P,t[v],M)}return P}function Gs(t){return qe(t)?t:[]}function Ks(t){return typeof t=="function"?t:Ot}function zr(t,i){return be(t)?t:nu(t,i)?[t]:ed(Re(t))}var v1=xe;function Hr(t,i,s){var v=t.length;return s=s===n?v:s,!i&&s>=v?t:Ht(t,i,s)}var Af=r0||function(t){return st.clearTimeout(t)};function Tf(t,i){if(i)return t.slice();var s=t.length,v=Gc?Gc(s):new t.constructor(s);return t.copy(v),v}function Vs(t){var i=new t.constructor(t.byteLength);return new Ro(i).set(new Ro(t)),i}function m1(t,i){var s=i?Vs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function g1(t){var i=new t.constructor(t.source,lc.exec(t));return i.lastIndex=t.lastIndex,i}function y1(t){return di?De(di.call(t)):{}}function Cf(t,i){var s=i?Vs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function Pf(t,i){if(t!==i){var s=t!==n,v=t===null,E=t===t,A=Lt(t),P=i!==n,M=i===null,N=i===i,K=Lt(i);if(!M&&!K&&!A&&t>i||A&&P&&N&&!M&&!K||v&&P&&N||!s&&N||!E)return 1;if(!v&&!A&&!K&&t<i||K&&s&&E&&!v&&!A||M&&s&&E||!P&&E||!N)return-1}return 0}function w1(t,i,s){for(var v=-1,E=t.criteria,A=i.criteria,P=E.length,M=s.length;++v<P;){var N=Pf(E[v],A[v]);if(N){if(v>=M)return N;var K=s[v];return N*(K=="desc"?-1:1)}}return t.index-i.index}function Rf(t,i,s,v){for(var E=-1,A=t.length,P=s.length,M=-1,N=i.length,K=Qe(A-P,0),Y=z(N+K),Q=!v;++M<N;)Y[M]=i[M];for(;++E<P;)(Q||E<A)&&(Y[s[E]]=t[E]);for(;K--;)Y[M++]=t[E++];return Y}function If(t,i,s,v){for(var E=-1,A=t.length,P=-1,M=s.length,N=-1,K=i.length,Y=Qe(A-M,0),Q=z(Y+K),ie=!v;++E<Y;)Q[E]=t[E];for(var ue=E;++N<K;)Q[ue+N]=i[N];for(;++P<M;)(ie||E<A)&&(Q[ue+s[P]]=t[E++]);return Q}function Et(t,i){var s=-1,v=t.length;for(i||(i=z(v));++s<v;)i[s]=t[s];return i}function sr(t,i,s,v){var E=!s;s||(s={});for(var A=-1,P=i.length;++A<P;){var M=i[A],N=v?v(s[M],t[M],M,s,t):n;N===n&&(N=t[M]),E?br(s,M,N):pi(s,M,N)}return s}function b1(t,i){return sr(t,ru(t),i)}function S1(t,i){return sr(t,Hf(t),i)}function qo(t,i){return function(s,v){var E=be(s)?Ay:z0,A=i?i():{};return E(s,t,de(v,2),A)}}function Wn(t){return xe(function(i,s){var v=-1,E=s.length,A=E>1?s[E-1]:n,P=E>2?s[2]:n;for(A=t.length>3&&typeof A=="function"?(E--,A):n,P&&wt(s[0],s[1],P)&&(A=E<3?n:A,E=1),i=De(i);++v<E;){var M=s[v];M&&t(i,M,v,A)}return i})}function Mf(t,i){return function(s,v){if(s==null)return s;if(!_t(s))return t(s,v);for(var E=s.length,A=i?E:-1,P=De(s);(i?A--:++A<E)&&v(P[A],A,P)!==!1;);return s}}function Lf(t){return function(i,s,v){for(var E=-1,A=De(i),P=v(i),M=P.length;M--;){var N=P[t?M:++E];if(s(A[N],N,A)===!1)break}return i}}function E1(t,i,s){var v=i&g,E=yi(t);function A(){var P=this&&this!==st&&this instanceof A?E:t;return P.apply(v?s:this,arguments)}return A}function Ff(t){return function(i){i=Re(i);var s=Ln(i)?Jt(i):n,v=s?s[0]:i.charAt(0),E=s?Hr(s,1).join(""):i.slice(1);return v[t]()+E}}function Un(t){return function(i){return bs(Md(Id(i).replace(dy,"")),t,"")}}function yi(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=jn(t.prototype),v=t.apply(s,i);return Be(v)?v:s}}function _1(t,i,s){var v=yi(t);function E(){for(var A=arguments.length,P=z(A),M=A,N=Bn(E);M--;)P[M]=arguments[M];var K=A<3&&P[0]!==N&&P[A-1]!==N?[]:jr(P,N);if(A-=K.length,A<s)return jf(t,i,Zo,E.placeholder,n,P,K,n,n,s-A);var Y=this&&this!==st&&this instanceof E?v:t;return Rt(Y,this,P)}return E}function Df(t){return function(i,s,v){var E=De(i);if(!_t(i)){var A=de(s,3);i=it(i),s=function(M){return A(E[M],M,E)}}var P=t(i,s,v);return P>-1?E[A?i[P]:P]:n}}function $f(t){return Er(function(i){var s=i.length,v=s,E=Bt.prototype.thru;for(t&&i.reverse();v--;){var A=i[v];if(typeof A!="function")throw new Ut(l);if(E&&!P&&Yo(A)=="wrapper")var P=new Bt([],!0)}for(v=P?v:s;++v<s;){A=i[v];var M=Yo(A),N=M=="wrapper"?eu(A):n;N&&iu(N[0])&&N[1]==(H|x|T|F)&&!N[4].length&&N[9]==1?P=P[Yo(N[0])].apply(P,N[3]):P=A.length==1&&iu(A)?P[M]():P.thru(A)}return function(){var K=arguments,Y=K[0];if(P&&K.length==1&&be(Y))return P.plant(Y).value();for(var Q=0,ie=s?i[Q].apply(this,K):Y;++Q<s;)ie=i[Q].call(this,ie);return ie}})}function Zo(t,i,s,v,E,A,P,M,N,K){var Y=i&H,Q=i&g,ie=i&b,ue=i&(x|C),he=i&k,Ee=ie?n:yi(t);function ve(){for(var Oe=arguments.length,Ce=z(Oe),Ft=Oe;Ft--;)Ce[Ft]=arguments[Ft];if(ue)var bt=Bn(ve),Dt=Dy(Ce,bt);if(v&&(Ce=Rf(Ce,v,E,ue)),A&&(Ce=If(Ce,A,P,ue)),Oe-=Dt,ue&&Oe<K){var Ze=jr(Ce,bt);return jf(t,i,Zo,ve.placeholder,s,Ce,Ze,M,N,K-Oe)}var tr=Q?s:this,Ar=ie?tr[t]:t;return Oe=Ce.length,M?Ce=z1(Ce,M):he&&Oe>1&&Ce.reverse(),Y&&N<Oe&&(Ce.length=N),this&&this!==st&&this instanceof ve&&(Ar=Ee||yi(Ar)),Ar.apply(tr,Ce)}return ve}function Nf(t,i){return function(s,v){return X0(s,t,i(v),{})}}function Go(t,i){return function(s,v){var E;if(s===n&&v===n)return i;if(s!==n&&(E=s),v!==n){if(E===n)return v;typeof s=="string"||typeof v=="string"?(s=Mt(s),v=Mt(v)):(s=Ef(s),v=Ef(v)),E=t(s,v)}return E}}function Ys(t){return Er(function(i){return i=ke(i,It(de())),xe(function(s){var v=this;return t(i,function(E){return Rt(E,v,s)})})})}function Ko(t,i){i=i===n?" ":Mt(i);var s=i.length;if(s<2)return s?zs(i,t):i;var v=zs(i,Fo(t/Fn(i)));return Ln(i)?Hr(Jt(v),0,t).join(""):v.slice(0,t)}function x1(t,i,s,v){var E=i&g,A=yi(t);function P(){for(var M=-1,N=arguments.length,K=-1,Y=v.length,Q=z(Y+N),ie=this&&this!==st&&this instanceof P?A:t;++K<Y;)Q[K]=v[K];for(;N--;)Q[K++]=arguments[++M];return Rt(ie,E?s:this,Q)}return P}function kf(t){return function(i,s,v){return v&&typeof v!="number"&&wt(i,s,v)&&(s=v=n),i=Or(i),s===n?(s=i,i=0):s=Or(s),v=v===n?i<s?1:-1:Or(v),l1(i,s,v,t)}}function Vo(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=Zt(i),s=Zt(s)),t(i,s)}}function jf(t,i,s,v,E,A,P,M,N,K){var Y=i&x,Q=Y?P:n,ie=Y?n:P,ue=Y?A:n,he=Y?n:A;i|=Y?T:I,i&=~(Y?I:T),i&_||(i&=-4);var Ee=[t,i,E,ue,Q,he,ie,M,N,K],ve=s.apply(n,Ee);return iu(t)&&Xf(ve,Ee),ve.placeholder=v,Jf(ve,t,i)}function Xs(t){var i=Je[t];return function(s,v){if(s=Zt(s),v=v==null?0:ht(Se(v),292),v&&Xc(s)){var E=(Re(s)+"e").split("e"),A=i(E[0]+"e"+(+E[1]+v));return E=(Re(A)+"e").split("e"),+(E[0]+"e"+(+E[1]-v))}return i(s)}}var O1=Nn&&1/xo(new Nn([,-0]))[1]==V?function(t){return new Nn(t)}:wu;function Wf(t){return function(i){var s=vt(i);return s==nt?Ts(i):s==pt?By(i):Fy(i,t(i))}}function Sr(t,i,s,v,E,A,P,M){var N=i&b;if(!N&&typeof t!="function")throw new Ut(l);var K=v?v.length:0;if(K||(i&=-97,v=E=n),P=P===n?P:Qe(Se(P),0),M=M===n?M:Se(M),K-=E?E.length:0,i&I){var Y=v,Q=E;v=E=n}var ie=N?n:eu(t),ue=[t,i,s,v,E,Y,Q,A,P,M];if(ie&&W1(ue,ie),t=ue[0],i=ue[1],s=ue[2],v=ue[3],E=ue[4],M=ue[9]=ue[9]===n?N?0:t.length:Qe(ue[9]-K,0),!M&&i&(x|C)&&(i&=-25),!i||i==g)var he=E1(t,i,s);else i==x||i==C?he=_1(t,i,M):(i==T||i==(g|T))&&!E.length?he=x1(t,i,s,v):he=Zo.apply(n,ue);var Ee=ie?bf:Xf;return Jf(Ee(he,ue),t,i)}function Uf(t,i,s,v){return t===n||er(t,$n[s])&&!Le.call(v,s)?i:t}function Bf(t,i,s,v,E,A){return Be(t)&&Be(i)&&(A.set(i,t),Bo(t,i,n,Bf,A),A.delete(i)),t}function A1(t){return Si(t)?n:t}function zf(t,i,s,v,E,A){var P=s&m,M=t.length,N=i.length;if(M!=N&&!(P&&N>M))return!1;var K=A.get(t),Y=A.get(i);if(K&&Y)return K==i&&Y==t;var Q=-1,ie=!0,ue=s&f?new ln:n;for(A.set(t,i),A.set(i,t);++Q<M;){var he=t[Q],Ee=i[Q];if(v)var ve=P?v(Ee,he,Q,i,t,A):v(he,Ee,Q,t,i,A);if(ve!==n){if(ve)continue;ie=!1;break}if(ue){if(!Ss(i,function(Oe,Ce){if(!si(ue,Ce)&&(he===Oe||E(he,Oe,s,v,A)))return ue.push(Ce)})){ie=!1;break}}else if(!(he===Ee||E(he,Ee,s,v,A))){ie=!1;break}}return A.delete(t),A.delete(i),ie}function T1(t,i,s,v,E,A,P){switch(s){case gr:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case $r:return!(t.byteLength!=i.byteLength||!A(new Ro(t),new Ro(i)));case ge:case _e:case or:return er(+t,+i);case Ue:return t.name==i.name&&t.message==i.message;case Pt:case Fr:return t==i+"";case nt:var M=Ts;case pt:var N=v&m;if(M||(M=xo),t.size!=i.size&&!N)return!1;var K=P.get(t);if(K)return K==i;v|=f,P.set(t,i);var Y=zf(M(t),M(i),v,E,A,P);return P.delete(t),Y;case on:if(di)return di.call(t)==di.call(i)}return!1}function C1(t,i,s,v,E,A){var P=s&m,M=Js(t),N=M.length,K=Js(i),Y=K.length;if(N!=Y&&!P)return!1;for(var Q=N;Q--;){var ie=M[Q];if(!(P?ie in i:Le.call(i,ie)))return!1}var ue=A.get(t),he=A.get(i);if(ue&&he)return ue==i&&he==t;var Ee=!0;A.set(t,i),A.set(i,t);for(var ve=P;++Q<N;){ie=M[Q];var Oe=t[ie],Ce=i[ie];if(v)var Ft=P?v(Ce,Oe,ie,i,t,A):v(Oe,Ce,ie,t,i,A);if(!(Ft===n?Oe===Ce||E(Oe,Ce,s,v,A):Ft)){Ee=!1;break}ve||(ve=ie=="constructor")}if(Ee&&!ve){var bt=t.constructor,Dt=i.constructor;bt!=Dt&&"constructor"in t&&"constructor"in i&&!(typeof bt=="function"&&bt instanceof bt&&typeof Dt=="function"&&Dt instanceof Dt)&&(Ee=!1)}return A.delete(t),A.delete(i),Ee}function Er(t){return au(Vf(t,n,id),t+"")}function Js(t){return lf(t,it,ru)}function Qs(t){return lf(t,xt,Hf)}var eu=$o?function(t){return $o.get(t)}:wu;function Yo(t){for(var i=t.name+"",s=kn[i],v=Le.call(kn,i)?s.length:0;v--;){var E=s[v],A=E.func;if(A==null||A==t)return E.name}return i}function Bn(t){var i=Le.call(O,"placeholder")?O:t;return i.placeholder}function de(){var t=O.iteratee||gu;return t=t===gu?df:t,arguments.length?t(arguments[0],arguments[1]):t}function Xo(t,i){var s=t.__data__;return $1(i)?s[typeof i=="string"?"string":"hash"]:s.map}function tu(t){for(var i=it(t),s=i.length;s--;){var v=i[s],E=t[v];i[s]=[v,E,Gf(E)]}return i}function dn(t,i){var s=jy(t,i);return ff(s)?s:n}function P1(t){var i=Le.call(t,sn),s=t[sn];try{t[sn]=n;var v=!0}catch{}var E=Co.call(t);return v&&(i?t[sn]=s:delete t[sn]),E}var ru=Ps?function(t){return t==null?[]:(t=De(t),Nr(Ps(t),function(i){return Vc.call(t,i)}))}:bu,Hf=Ps?function(t){for(var i=[];t;)kr(i,ru(t)),t=Io(t);return i}:bu,vt=yt;(Rs&&vt(new Rs(new ArrayBuffer(1)))!=gr||li&&vt(new li)!=nt||Is&&vt(Is.resolve())!=go||Nn&&vt(new Nn)!=pt||ci&&vt(new ci)!=Dr)&&(vt=function(t){var i=yt(t),s=i==kt?t.constructor:n,v=s?pn(s):"";if(v)switch(v){case f0:return gr;case d0:return nt;case p0:return go;case h0:return pt;case v0:return Dr}return i});function R1(t,i,s){for(var v=-1,E=s.length;++v<E;){var A=s[v],P=A.size;switch(A.type){case"drop":t+=P;break;case"dropRight":i-=P;break;case"take":i=ht(i,t+P);break;case"takeRight":t=Qe(t,i-P);break}}return{start:t,end:i}}function I1(t){var i=t.match(Ng);return i?i[1].split(kg):[]}function qf(t,i,s){i=zr(i,t);for(var v=-1,E=i.length,A=!1;++v<E;){var P=ur(i[v]);if(!(A=t!=null&&s(t,P)))break;t=t[P]}return A||++v!=E?A:(E=t==null?0:t.length,!!E&&ia(E)&&_r(P,E)&&(be(t)||hn(t)))}function M1(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&Le.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function Zf(t){return typeof t.constructor=="function"&&!wi(t)?jn(Io(t)):{}}function L1(t,i,s){var v=t.constructor;switch(i){case $r:return Vs(t);case ge:case _e:return new v(+t);case gr:return m1(t,s);case ts:case rs:case ns:case is:case os:case as:case ss:case us:case ls:return Cf(t,s);case nt:return new v;case or:case Fr:return new v(t);case Pt:return g1(t);case pt:return new v;case on:return y1(t)}}function F1(t,i){var s=i.length;if(!s)return t;var v=s-1;return i[v]=(s>1?"& ":"")+i[v],i=i.join(s>2?", ":" "),t.replace($g,`{
119
119
  /* [wrapped with `+i+`] */
120
- `)}function L1(t){return be(t)||hn(t)||!!(Vc&&t&&t[Vc])}function _r(t,i){var s=typeof t;return i=i??te,!!i&&(s=="number"||s!="symbol"&&Zg.test(t))&&t>-1&&t%1==0&&t<i}function yt(t,i,s){if(!Be(s))return!1;var v=typeof i;return(v=="number"?Et(s)&&_r(i,s.length):v=="string"&&i in s)?er(s[i],t):!1}function nu(t,i){if(be(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||It(t)?!0:Mg.test(t)||!Rg.test(t)||i!=null&&t in De(i)}function D1(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function iu(t){var i=Yo(t),s=O[i];if(typeof s!="function"||!(i in Te.prototype))return!1;if(t===s)return!0;var v=eu(s);return!!v&&t===v[0]}function $1(t){return!!qc&&qc in t}var N1=Ao?xr:Su;function wi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||$n;return t===s}function Zf(t){return t===t&&!Be(t)}function Gf(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in De(s))}}function k1(t){var i=ra(t,function(v){return s.size===S&&s.clear(),v}),s=i.cache;return i}function j1(t,i){var s=t[1],v=i[1],E=s|v,A=E<(g|b|H),P=v==H&&s==x||v==H&&s==L&&t[7].length<=i[8]||v==(H|L)&&i[7].length<=i[8]&&s==x;if(!(A||P))return t;v&g&&(t[2]=i[2],E|=s&g?0:_);var I=i[3];if(I){var N=t[3];t[3]=N?Pf(N,I,i[4]):I,t[4]=N?jr(t[3],y):i[4]}return I=i[5],I&&(N=t[5],t[5]=N?Rf(N,I,i[6]):I,t[6]=N?jr(t[5],y):i[6]),I=i[7],I&&(t[7]=I),v&H&&(t[8]=t[8]==null?i[8]:pt(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=E,t}function W1(t){var i=[];if(t!=null)for(var s in De(t))i.push(s);return i}function U1(t){return Co.call(t)}function Kf(t,i,s){return i=Qe(i===n?t.length-1:i,0),function(){for(var v=arguments,E=-1,A=Qe(v.length-i,0),P=z(A);++E<A;)P[E]=v[i+E];E=-1;for(var I=z(i+1);++E<i;)I[E]=v[E];return I[i]=s(P),Pt(t,this,I)}}function Vf(t,i){return i.length<2?t:fn(t,zt(i,0,-1))}function B1(t,i){for(var s=t.length,v=pt(i.length,s),E=St(t);v--;){var A=i[v];t[v]=_r(A,s)?E[A]:n}return t}function ou(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var Yf=Jf(wf),bi=n0||function(t,i){return st.setTimeout(t,i)},au=Jf(f1);function Xf(t,i,s){var v=i+"";return au(t,F1(v,z1(R1(v),s)))}function Jf(t){var i=0,s=0;return function(){var v=s0(),E=B-(v-s);if(s=v,E>0){if(++i>=F)return arguments[0]}else i=0;return t.apply(n,arguments)}}function Jo(t,i){var s=-1,v=t.length,E=v-1;for(i=i===n?v:i;++s<i;){var A=Bs(s,E),P=t[A];t[A]=t[s],t[s]=P}return t.length=i,t}var Qf=k1(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Ig,function(s,v,E,A){i.push(E?A.replace(Wg,"$1"):v||s)}),i});function ur(t){if(typeof t=="string"||It(t))return t;var i=t+"";return i=="0"&&1/t==-V?"-0":i}function pn(t){if(t!=null){try{return To.call(t)}catch{}try{return t+""}catch{}}return""}function z1(t,i){return jt(oe,function(s){var v="_."+s[0];i&s[1]&&!Eo(t,v)&&t.push(v)}),t.sort()}function ed(t){if(t instanceof Te)return t.clone();var i=new Ut(t.__wrapped__,t.__chain__);return i.__actions__=St(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function H1(t,i,s){(s?yt(t,i,s):i===n)?i=1:i=Qe(Se(i),0);var v=t==null?0:t.length;if(!v||i<1)return[];for(var E=0,A=0,P=z(Lo(v/i));E<v;)P[A++]=zt(t,E,E+=i);return P}function q1(t){for(var i=-1,s=t==null?0:t.length,v=0,E=[];++i<s;){var A=t[i];A&&(E[v++]=A)}return E}function Z1(){var t=arguments.length;if(!t)return[];for(var i=z(t-1),s=arguments[0],v=t;v--;)i[v-1]=arguments[v];return kr(be(s)?St(s):[s],ut(i,1))}var G1=xe(function(t,i){return qe(t)?hi(t,ut(i,1,qe,!0)):[]}),K1=xe(function(t,i){var s=Ht(i);return qe(s)&&(s=n),qe(t)?hi(t,ut(i,1,qe,!0),de(s,2)):[]}),V1=xe(function(t,i){var s=Ht(i);return qe(s)&&(s=n),qe(t)?hi(t,ut(i,1,qe,!0),n,s):[]});function Y1(t,i,s){var v=t==null?0:t.length;return v?(i=s||i===n?1:Se(i),zt(t,i<0?0:i,v)):[]}function X1(t,i,s){var v=t==null?0:t.length;return v?(i=s||i===n?1:Se(i),i=v-i,zt(t,0,i<0?0:i)):[]}function J1(t,i){return t&&t.length?Ho(t,de(i,3),!0,!0):[]}function Q1(t,i){return t&&t.length?Ho(t,de(i,3),!0):[]}function ew(t,i,s,v){var E=t==null?0:t.length;return E?(s&&typeof s!="number"&&yt(t,i,s)&&(s=0,v=E),Z0(t,i,s,v)):[]}function td(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=s==null?0:Se(s);return E<0&&(E=Qe(v+E,0)),_o(t,de(i,3),E)}function rd(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=v-1;return s!==n&&(E=Se(s),E=s<0?Qe(v+E,0):pt(E,v-1)),_o(t,de(i,3),E,!0)}function nd(t){var i=t==null?0:t.length;return i?ut(t,1):[]}function tw(t){var i=t==null?0:t.length;return i?ut(t,V):[]}function rw(t,i){var s=t==null?0:t.length;return s?(i=i===n?1:Se(i),ut(t,i)):[]}function nw(t){for(var i=-1,s=t==null?0:t.length,v={};++i<s;){var E=t[i];v[E[0]]=E[1]}return v}function id(t){return t&&t.length?t[0]:n}function iw(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=s==null?0:Se(s);return E<0&&(E=Qe(v+E,0)),In(t,i,E)}function ow(t){var i=t==null?0:t.length;return i?zt(t,0,-1):[]}var aw=xe(function(t){var i=ke(t,Gs);return i.length&&i[0]===t[0]?Ns(i):[]}),sw=xe(function(t){var i=Ht(t),s=ke(t,Gs);return i===Ht(s)?i=n:s.pop(),s.length&&s[0]===t[0]?Ns(s,de(i,2)):[]}),uw=xe(function(t){var i=Ht(t),s=ke(t,Gs);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===t[0]?Ns(s,n,i):[]});function lw(t,i){return t==null?"":o0.call(t,i)}function Ht(t){var i=t==null?0:t.length;return i?t[i-1]:n}function cw(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=v;return s!==n&&(E=Se(s),E=E<0?Qe(v+E,0):pt(E,v-1)),i===i?zy(t,i,E):_o(t,Nc,E,!0)}function fw(t,i){return t&&t.length?vf(t,Se(i)):n}var dw=xe(od);function od(t,i){return t&&t.length&&i&&i.length?Us(t,i):t}function pw(t,i,s){return t&&t.length&&i&&i.length?Us(t,i,de(s,2)):t}function hw(t,i,s){return t&&t.length&&i&&i.length?Us(t,i,n,s):t}var vw=Er(function(t,i){var s=t==null?0:t.length,v=Fs(t,i);return yf(t,ke(i,function(E){return _r(E,s)?+E:E}).sort(Cf)),v});function mw(t,i){var s=[];if(!(t&&t.length))return s;var v=-1,E=[],A=t.length;for(i=de(i,3);++v<A;){var P=t[v];i(P,v,t)&&(s.push(P),E.push(v))}return yf(t,E),s}function su(t){return t==null?t:l0.call(t)}function gw(t,i,s){var v=t==null?0:t.length;return v?(s&&typeof s!="number"&&yt(t,i,s)?(i=0,s=v):(i=i==null?0:Se(i),s=s===n?v:Se(s)),zt(t,i,s)):[]}function yw(t,i){return zo(t,i)}function ww(t,i,s){return Hs(t,i,de(s,2))}function bw(t,i){var s=t==null?0:t.length;if(s){var v=zo(t,i);if(v<s&&er(t[v],i))return v}return-1}function Sw(t,i){return zo(t,i,!0)}function Ew(t,i,s){return Hs(t,i,de(s,2),!0)}function _w(t,i){var s=t==null?0:t.length;if(s){var v=zo(t,i,!0)-1;if(er(t[v],i))return v}return-1}function xw(t){return t&&t.length?bf(t):[]}function Ow(t,i){return t&&t.length?bf(t,de(i,2)):[]}function Aw(t){var i=t==null?0:t.length;return i?zt(t,1,i):[]}function Tw(t,i,s){return t&&t.length?(i=s||i===n?1:Se(i),zt(t,0,i<0?0:i)):[]}function Cw(t,i,s){var v=t==null?0:t.length;return v?(i=s||i===n?1:Se(i),i=v-i,zt(t,i<0?0:i,v)):[]}function Pw(t,i){return t&&t.length?Ho(t,de(i,3),!1,!0):[]}function Rw(t,i){return t&&t.length?Ho(t,de(i,3)):[]}var Mw=xe(function(t){return Br(ut(t,1,qe,!0))}),Iw=xe(function(t){var i=Ht(t);return qe(i)&&(i=n),Br(ut(t,1,qe,!0),de(i,2))}),Fw=xe(function(t){var i=Ht(t);return i=typeof i=="function"?i:n,Br(ut(t,1,qe,!0),n,i)});function Lw(t){return t&&t.length?Br(t):[]}function Dw(t,i){return t&&t.length?Br(t,de(i,2)):[]}function $w(t,i){return i=typeof i=="function"?i:n,t&&t.length?Br(t,n,i):[]}function uu(t){if(!(t&&t.length))return[];var i=0;return t=Nr(t,function(s){if(qe(s))return i=Qe(s.length,i),!0}),Os(i,function(s){return ke(t,Es(s))})}function ad(t,i){if(!(t&&t.length))return[];var s=uu(t);return i==null?s:ke(s,function(v){return Pt(i,n,v)})}var Nw=xe(function(t,i){return qe(t)?hi(t,i):[]}),kw=xe(function(t){return Zs(Nr(t,qe))}),jw=xe(function(t){var i=Ht(t);return qe(i)&&(i=n),Zs(Nr(t,qe),de(i,2))}),Ww=xe(function(t){var i=Ht(t);return i=typeof i=="function"?i:n,Zs(Nr(t,qe),n,i)}),Uw=xe(uu);function Bw(t,i){return xf(t||[],i||[],pi)}function zw(t,i){return xf(t||[],i||[],gi)}var Hw=xe(function(t){var i=t.length,s=i>1?t[i-1]:n;return s=typeof s=="function"?(t.pop(),s):n,ad(t,s)});function sd(t){var i=O(t);return i.__chain__=!0,i}function qw(t,i){return i(t),t}function Qo(t,i){return i(t)}var Zw=Er(function(t){var i=t.length,s=i?t[0]:0,v=this.__wrapped__,E=function(A){return Fs(A,t)};return i>1||this.__actions__.length||!(v instanceof Te)||!_r(s)?this.thru(E):(v=v.slice(s,+s+(i?1:0)),v.__actions__.push({func:Qo,args:[E],thisArg:n}),new Ut(v,this.__chain__).thru(function(A){return i&&!A.length&&A.push(n),A}))});function Gw(){return sd(this)}function Kw(){return new Ut(this.value(),this.__chain__)}function Vw(){this.__values__===n&&(this.__values__=Sd(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function Yw(){return this}function Xw(t){for(var i,s=this;s instanceof ko;){var v=ed(s);v.__index__=0,v.__values__=n,i?E.__wrapped__=v:i=v;var E=v;s=s.__wrapped__}return E.__wrapped__=t,i}function Jw(){var t=this.__wrapped__;if(t instanceof Te){var i=t;return this.__actions__.length&&(i=new Te(this)),i=i.reverse(),i.__actions__.push({func:Qo,args:[su],thisArg:n}),new Ut(i,this.__chain__)}return this.thru(su)}function Qw(){return _f(this.__wrapped__,this.__actions__)}var eb=qo(function(t,i,s){Fe.call(t,s)?++t[s]:br(t,s,1)});function tb(t,i,s){var v=be(t)?Dc:q0;return s&&yt(t,i,s)&&(i=n),v(t,de(i,3))}function rb(t,i){var s=be(t)?Nr:af;return s(t,de(i,3))}var nb=Lf(td),ib=Lf(rd);function ob(t,i){return ut(ea(t,i),1)}function ab(t,i){return ut(ea(t,i),V)}function sb(t,i,s){return s=s===n?1:Se(s),ut(ea(t,i),s)}function ud(t,i){var s=be(t)?jt:Ur;return s(t,de(i,3))}function ld(t,i){var s=be(t)?Ay:of;return s(t,de(i,3))}var ub=qo(function(t,i,s){Fe.call(t,s)?t[s].push(i):br(t,s,[i])});function lb(t,i,s,v){t=Et(t)?t:Hn(t),s=s&&!v?Se(s):0;var E=t.length;return s<0&&(s=Qe(E+s,0)),oa(t)?s<=E&&t.indexOf(i,s)>-1:!!E&&In(t,i,s)>-1}var cb=xe(function(t,i,s){var v=-1,E=typeof i=="function",A=Et(t)?z(t.length):[];return Ur(t,function(P){A[++v]=E?Pt(i,P,s):vi(P,i,s)}),A}),fb=qo(function(t,i,s){br(t,s,i)});function ea(t,i){var s=be(t)?ke:df;return s(t,de(i,3))}function db(t,i,s,v){return t==null?[]:(be(i)||(i=i==null?[]:[i]),s=v?n:s,be(s)||(s=s==null?[]:[s]),mf(t,i,s))}var pb=qo(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function hb(t,i,s){var v=be(t)?bs:jc,E=arguments.length<3;return v(t,de(i,4),s,E,Ur)}function vb(t,i,s){var v=be(t)?Ty:jc,E=arguments.length<3;return v(t,de(i,4),s,E,of)}function mb(t,i){var s=be(t)?Nr:af;return s(t,na(de(i,3)))}function gb(t){var i=be(t)?ef:l1;return i(t)}function yb(t,i,s){(s?yt(t,i,s):i===n)?i=1:i=Se(i);var v=be(t)?W0:c1;return v(t,i)}function wb(t){var i=be(t)?U0:d1;return i(t)}function bb(t){if(t==null)return 0;if(Et(t))return oa(t)?Ln(t):t.length;var i=ht(t);return i==nt||i==dt?t.size:js(t).length}function Sb(t,i,s){var v=be(t)?Ss:p1;return s&&yt(t,i,s)&&(i=n),v(t,de(i,3))}var Eb=xe(function(t,i){if(t==null)return[];var s=i.length;return s>1&&yt(t,i[0],i[1])?i=[]:s>2&&yt(i[0],i[1],i[2])&&(i=[i[0]]),mf(t,ut(i,1),[])}),ta=r0||function(){return st.Date.now()};function _b(t,i){if(typeof i!="function")throw new Wt(l);return t=Se(t),function(){if(--t<1)return i.apply(this,arguments)}}function cd(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Sr(t,H,n,n,n,n,i)}function fd(t,i){var s;if(typeof i!="function")throw new Wt(l);return t=Se(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=n),s}}var lu=xe(function(t,i,s){var v=g;if(s.length){var E=jr(s,Bn(lu));v|=T}return Sr(t,v,i,s,E)}),dd=xe(function(t,i,s){var v=g|b;if(s.length){var E=jr(s,Bn(dd));v|=T}return Sr(i,v,t,s,E)});function pd(t,i,s){i=s?n:i;var v=Sr(t,x,n,n,n,n,n,i);return v.placeholder=pd.placeholder,v}function hd(t,i,s){i=s?n:i;var v=Sr(t,C,n,n,n,n,n,i);return v.placeholder=hd.placeholder,v}function vd(t,i,s){var v,E,A,P,I,N,K=0,Y=!1,Q=!1,ie=!0;if(typeof t!="function")throw new Wt(l);i=qt(i)||0,Be(s)&&(Y=!!s.leading,Q="maxWait"in s,A=Q?Qe(qt(s.maxWait)||0,i):A,ie="trailing"in s?!!s.trailing:ie);function ue(Ze){var tr=v,Ar=E;return v=E=n,K=Ze,P=t.apply(Ar,tr),P}function he(Ze){return K=Ze,I=bi(Oe,i),Y?ue(Ze):P}function Ee(Ze){var tr=Ze-N,Ar=Ze-K,Ld=i-tr;return Q?pt(Ld,A-Ar):Ld}function ve(Ze){var tr=Ze-N,Ar=Ze-K;return N===n||tr>=i||tr<0||Q&&Ar>=A}function Oe(){var Ze=ta();if(ve(Ze))return Ce(Ze);I=bi(Oe,Ee(Ze))}function Ce(Ze){return I=n,ie&&v?ue(Ze):(v=E=n,P)}function Ft(){I!==n&&Of(I),K=0,v=N=E=I=n}function wt(){return I===n?P:Ce(ta())}function Lt(){var Ze=ta(),tr=ve(Ze);if(v=arguments,E=this,N=Ze,tr){if(I===n)return he(N);if(Q)return Of(I),I=bi(Oe,i),ue(N)}return I===n&&(I=bi(Oe,i)),P}return Lt.cancel=Ft,Lt.flush=wt,Lt}var xb=xe(function(t,i){return nf(t,1,i)}),Ob=xe(function(t,i,s){return nf(t,qt(i)||0,s)});function Ab(t){return Sr(t,k)}function ra(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new Wt(l);var s=function(){var v=arguments,E=i?i.apply(this,v):v[0],A=s.cache;if(A.has(E))return A.get(E);var P=t.apply(this,v);return s.cache=A.set(E,P)||A,P};return s.cache=new(ra.Cache||wr),s}ra.Cache=wr;function na(t){if(typeof t!="function")throw new Wt(l);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function Tb(t){return fd(2,t)}var Cb=h1(function(t,i){i=i.length==1&&be(i[0])?ke(i[0],Rt(de())):ke(ut(i,1),Rt(de()));var s=i.length;return xe(function(v){for(var E=-1,A=pt(v.length,s);++E<A;)v[E]=i[E].call(this,v[E]);return Pt(t,this,v)})}),cu=xe(function(t,i){var s=jr(i,Bn(cu));return Sr(t,T,n,i,s)}),md=xe(function(t,i){var s=jr(i,Bn(md));return Sr(t,M,n,i,s)}),Pb=Er(function(t,i){return Sr(t,L,n,n,n,i)});function Rb(t,i){if(typeof t!="function")throw new Wt(l);return i=i===n?i:Se(i),xe(t,i)}function Mb(t,i){if(typeof t!="function")throw new Wt(l);return i=i==null?0:Qe(Se(i),0),xe(function(s){var v=s[i],E=Hr(s,0,i);return v&&kr(E,v),Pt(t,this,E)})}function Ib(t,i,s){var v=!0,E=!0;if(typeof t!="function")throw new Wt(l);return Be(s)&&(v="leading"in s?!!s.leading:v,E="trailing"in s?!!s.trailing:E),vd(t,i,{leading:v,maxWait:i,trailing:E})}function Fb(t){return cd(t,1)}function Lb(t,i){return cu(Ks(i),t)}function Db(){if(!arguments.length)return[];var t=arguments[0];return be(t)?t:[t]}function $b(t){return Bt(t,p)}function Nb(t,i){return i=typeof i=="function"?i:n,Bt(t,p,i)}function kb(t){return Bt(t,h|p)}function jb(t,i){return i=typeof i=="function"?i:n,Bt(t,h|p,i)}function Wb(t,i){return i==null||rf(t,i,it(i))}function er(t,i){return t===i||t!==t&&i!==i}var Ub=Vo($s),Bb=Vo(function(t,i){return t>=i}),hn=lf(function(){return arguments}())?lf:function(t){return He(t)&&Fe.call(t,"callee")&&!Kc.call(t,"callee")},be=z.isArray,zb=Pc?Rt(Pc):X0;function Et(t){return t!=null&&ia(t.length)&&!xr(t)}function qe(t){return He(t)&&Et(t)}function Hb(t){return t===!0||t===!1||He(t)&&gt(t)==ge}var qr=i0||Su,qb=Rc?Rt(Rc):J0;function Zb(t){return He(t)&&t.nodeType===1&&!Si(t)}function Gb(t){if(t==null)return!0;if(Et(t)&&(be(t)||typeof t=="string"||typeof t.splice=="function"||qr(t)||zn(t)||hn(t)))return!t.length;var i=ht(t);if(i==nt||i==dt)return!t.size;if(wi(t))return!js(t).length;for(var s in t)if(Fe.call(t,s))return!1;return!0}function Kb(t,i){return mi(t,i)}function Vb(t,i,s){s=typeof s=="function"?s:n;var v=s?s(t,i):n;return v===n?mi(t,i,n,s):!!v}function fu(t){if(!He(t))return!1;var i=gt(t);return i==Ue||i==Ae||typeof t.message=="string"&&typeof t.name=="string"&&!Si(t)}function Yb(t){return typeof t=="number"&&Yc(t)}function xr(t){if(!Be(t))return!1;var i=gt(t);return i==ne||i==ft||i==ye||i==es}function gd(t){return typeof t=="number"&&t==Se(t)}function ia(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=te}function Be(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function He(t){return t!=null&&typeof t=="object"}var yd=Mc?Rt(Mc):e1;function Xb(t,i){return t===i||ks(t,i,tu(i))}function Jb(t,i,s){return s=typeof s=="function"?s:n,ks(t,i,tu(i),s)}function Qb(t){return wd(t)&&t!=+t}function eS(t){if(N1(t))throw new we(u);return cf(t)}function tS(t){return t===null}function rS(t){return t==null}function wd(t){return typeof t=="number"||He(t)&&gt(t)==or}function Si(t){if(!He(t)||gt(t)!=Nt)return!1;var i=Mo(t);if(i===null)return!0;var s=Fe.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&To.call(s)==Jy}var du=Ic?Rt(Ic):t1;function nS(t){return gd(t)&&t>=-te&&t<=te}var bd=Fc?Rt(Fc):r1;function oa(t){return typeof t=="string"||!be(t)&&He(t)&&gt(t)==Lr}function It(t){return typeof t=="symbol"||He(t)&&gt(t)==on}var zn=Lc?Rt(Lc):n1;function iS(t){return t===n}function oS(t){return He(t)&&ht(t)==Dr}function aS(t){return He(t)&&gt(t)==yo}var sS=Vo(Ws),uS=Vo(function(t,i){return t<=i});function Sd(t){if(!t)return[];if(Et(t))return oa(t)?Jt(t):St(t);if(ui&&t[ui])return Wy(t[ui]());var i=ht(t),s=i==nt?Ts:i==dt?xo:Hn;return s(t)}function Or(t){if(!t)return t===0?t:0;if(t=qt(t),t===V||t===-V){var i=t<0?-1:1;return i*le}return t===t?t:0}function Se(t){var i=Or(t),s=i%1;return i===i?s?i-s:i:0}function Ed(t){return t?cn(Se(t),0,ee):0}function qt(t){if(typeof t=="number")return t;if(It(t))return Z;if(Be(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=Be(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=Wc(t);var s=zg.test(t);return s||qg.test(t)?_y(t.slice(2),s?2:8):Bg.test(t)?Z:+t}function _d(t){return sr(t,_t(t))}function lS(t){return t?cn(Se(t),-te,te):t===0?t:0}function Re(t){return t==null?"":Mt(t)}var cS=Wn(function(t,i){if(wi(i)||Et(i)){sr(i,it(i),t);return}for(var s in i)Fe.call(i,s)&&pi(t,s,i[s])}),xd=Wn(function(t,i){sr(i,_t(i),t)}),aa=Wn(function(t,i,s,v){sr(i,_t(i),t,v)}),fS=Wn(function(t,i,s,v){sr(i,it(i),t,v)}),dS=Er(Fs);function pS(t,i){var s=jn(t);return i==null?s:tf(s,i)}var hS=xe(function(t,i){t=De(t);var s=-1,v=i.length,E=v>2?i[2]:n;for(E&&yt(i[0],i[1],E)&&(v=1);++s<v;)for(var A=i[s],P=_t(A),I=-1,N=P.length;++I<N;){var K=P[I],Y=t[K];(Y===n||er(Y,$n[K])&&!Fe.call(t,K))&&(t[K]=A[K])}return t}),vS=xe(function(t){return t.push(n,Uf),Pt(Od,n,t)});function mS(t,i){return $c(t,de(i,3),ar)}function gS(t,i){return $c(t,de(i,3),Ds)}function yS(t,i){return t==null?t:Ls(t,de(i,3),_t)}function wS(t,i){return t==null?t:sf(t,de(i,3),_t)}function bS(t,i){return t&&ar(t,de(i,3))}function SS(t,i){return t&&Ds(t,de(i,3))}function ES(t){return t==null?[]:Uo(t,it(t))}function _S(t){return t==null?[]:Uo(t,_t(t))}function pu(t,i,s){var v=t==null?n:fn(t,i);return v===n?s:v}function xS(t,i){return t!=null&&Hf(t,i,G0)}function hu(t,i){return t!=null&&Hf(t,i,K0)}var OS=$f(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Co.call(i)),t[i]=s},mu(xt)),AS=$f(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Co.call(i)),Fe.call(t,i)?t[i].push(s):t[i]=[s]},de),TS=xe(vi);function it(t){return Et(t)?Qc(t):js(t)}function _t(t){return Et(t)?Qc(t,!0):i1(t)}function CS(t,i){var s={};return i=de(i,3),ar(t,function(v,E,A){br(s,i(v,E,A),v)}),s}function PS(t,i){var s={};return i=de(i,3),ar(t,function(v,E,A){br(s,E,i(v,E,A))}),s}var RS=Wn(function(t,i,s){Bo(t,i,s)}),Od=Wn(function(t,i,s,v){Bo(t,i,s,v)}),MS=Er(function(t,i){var s={};if(t==null)return s;var v=!1;i=ke(i,function(A){return A=zr(A,t),v||(v=A.length>1),A}),sr(t,Qs(t),s),v&&(s=Bt(s,h|c|p,O1));for(var E=i.length;E--;)qs(s,i[E]);return s});function IS(t,i){return Ad(t,na(de(i)))}var FS=Er(function(t,i){return t==null?{}:a1(t,i)});function Ad(t,i){if(t==null)return{};var s=ke(Qs(t),function(v){return[v]});return i=de(i),gf(t,s,function(v,E){return i(v,E[0])})}function LS(t,i,s){i=zr(i,t);var v=-1,E=i.length;for(E||(E=1,t=n);++v<E;){var A=t==null?n:t[ur(i[v])];A===n&&(v=E,A=s),t=xr(A)?A.call(t):A}return t}function DS(t,i,s){return t==null?t:gi(t,i,s)}function $S(t,i,s,v){return v=typeof v=="function"?v:n,t==null?t:gi(t,i,s,v)}var Td=jf(it),Cd=jf(_t);function NS(t,i,s){var v=be(t),E=v||qr(t)||zn(t);if(i=de(i,4),s==null){var A=t&&t.constructor;E?s=v?new A:[]:Be(t)?s=xr(A)?jn(Mo(t)):{}:s={}}return(E?jt:ar)(t,function(P,I,N){return i(s,P,I,N)}),s}function kS(t,i){return t==null?!0:qs(t,i)}function jS(t,i,s){return t==null?t:Ef(t,i,Ks(s))}function WS(t,i,s,v){return v=typeof v=="function"?v:n,t==null?t:Ef(t,i,Ks(s),v)}function Hn(t){return t==null?[]:As(t,it(t))}function US(t){return t==null?[]:As(t,_t(t))}function BS(t,i,s){return s===n&&(s=i,i=n),s!==n&&(s=qt(s),s=s===s?s:0),i!==n&&(i=qt(i),i=i===i?i:0),cn(qt(t),i,s)}function zS(t,i,s){return i=Or(i),s===n?(s=i,i=0):s=Or(s),t=qt(t),V0(t,i,s)}function HS(t,i,s){if(s&&typeof s!="boolean"&&yt(t,i,s)&&(i=s=n),s===n&&(typeof i=="boolean"?(s=i,i=n):typeof t=="boolean"&&(s=t,t=n)),t===n&&i===n?(t=0,i=1):(t=Or(t),i===n?(i=t,t=0):i=Or(i)),t>i){var v=t;t=i,i=v}if(s||t%1||i%1){var E=Xc();return pt(t+E*(i-t+Ey("1e-"+((E+"").length-1))),i)}return Bs(t,i)}var qS=Un(function(t,i,s){return i=i.toLowerCase(),t+(s?Pd(i):i)});function Pd(t){return vu(Re(t).toLowerCase())}function Rd(t){return t=Re(t),t&&t.replace(Gg,Dy).replace(dy,"")}function ZS(t,i,s){t=Re(t),i=Mt(i);var v=t.length;s=s===n?v:cn(Se(s),0,v);var E=s;return s-=i.length,s>=0&&t.slice(s,E)==i}function GS(t){return t=Re(t),t&&Tg.test(t)?t.replace(ac,$y):t}function KS(t){return t=Re(t),t&&Fg.test(t)?t.replace(cs,"\\$&"):t}var VS=Un(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),YS=Un(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),XS=Ff("toLowerCase");function JS(t,i,s){t=Re(t),i=Se(i);var v=i?Ln(t):0;if(!i||v>=i)return t;var E=(i-v)/2;return Ko(Do(E),s)+t+Ko(Lo(E),s)}function QS(t,i,s){t=Re(t),i=Se(i);var v=i?Ln(t):0;return i&&v<i?t+Ko(i-v,s):t}function eE(t,i,s){t=Re(t),i=Se(i);var v=i?Ln(t):0;return i&&v<i?Ko(i-v,s)+t:t}function tE(t,i,s){return s||i==null?i=0:i&&(i=+i),u0(Re(t).replace(fs,""),i||0)}function rE(t,i,s){return(s?yt(t,i,s):i===n)?i=1:i=Se(i),zs(Re(t),i)}function nE(){var t=arguments,i=Re(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var iE=Un(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function oE(t,i,s){return s&&typeof s!="number"&&yt(t,i,s)&&(i=s=n),s=s===n?ee:s>>>0,s?(t=Re(t),t&&(typeof i=="string"||i!=null&&!du(i))&&(i=Mt(i),!i&&Fn(t))?Hr(Jt(t),0,s):t.split(i,s)):[]}var aE=Un(function(t,i,s){return t+(s?" ":"")+vu(i)});function sE(t,i,s){return t=Re(t),s=s==null?0:cn(Se(s),0,t.length),i=Mt(i),t.slice(s,s+i.length)==i}function uE(t,i,s){var v=O.templateSettings;s&&yt(t,i,s)&&(i=n),t=Re(t),i=aa({},i,v,Wf);var E=aa({},i.imports,v.imports,Wf),A=it(E),P=As(E,A),I,N,K=0,Y=i.interpolate||wo,Q="__p += '",ie=Cs((i.escape||wo).source+"|"+Y.source+"|"+(Y===sc?Ug:wo).source+"|"+(i.evaluate||wo).source+"|$","g"),ue="//# sourceURL="+(Fe.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gy+"]")+`
121
- `;t.replace(ie,function(ve,Oe,Ce,Ft,wt,Lt){return Ce||(Ce=Ft),Q+=t.slice(K,Lt).replace(Kg,Ny),Oe&&(I=!0,Q+=`' +
120
+ `)}function D1(t){return be(t)||hn(t)||!!(Yc&&t&&t[Yc])}function _r(t,i){var s=typeof t;return i=i??te,!!i&&(s=="number"||s!="symbol"&&Gg.test(t))&&t>-1&&t%1==0&&t<i}function wt(t,i,s){if(!Be(s))return!1;var v=typeof i;return(v=="number"?_t(s)&&_r(i,s.length):v=="string"&&i in s)?er(s[i],t):!1}function nu(t,i){if(be(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Lt(t)?!0:Mg.test(t)||!Ig.test(t)||i!=null&&t in De(i)}function $1(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function iu(t){var i=Yo(t),s=O[i];if(typeof s!="function"||!(i in Te.prototype))return!1;if(t===s)return!0;var v=eu(s);return!!v&&t===v[0]}function N1(t){return!!Zc&&Zc in t}var k1=Ao?xr:Su;function wi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||$n;return t===s}function Gf(t){return t===t&&!Be(t)}function Kf(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in De(s))}}function j1(t){var i=ra(t,function(v){return s.size===S&&s.clear(),v}),s=i.cache;return i}function W1(t,i){var s=t[1],v=i[1],E=s|v,A=E<(g|b|H),P=v==H&&s==x||v==H&&s==F&&t[7].length<=i[8]||v==(H|F)&&i[7].length<=i[8]&&s==x;if(!(A||P))return t;v&g&&(t[2]=i[2],E|=s&g?0:_);var M=i[3];if(M){var N=t[3];t[3]=N?Rf(N,M,i[4]):M,t[4]=N?jr(t[3],y):i[4]}return M=i[5],M&&(N=t[5],t[5]=N?If(N,M,i[6]):M,t[6]=N?jr(t[5],y):i[6]),M=i[7],M&&(t[7]=M),v&H&&(t[8]=t[8]==null?i[8]:ht(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=E,t}function U1(t){var i=[];if(t!=null)for(var s in De(t))i.push(s);return i}function B1(t){return Co.call(t)}function Vf(t,i,s){return i=Qe(i===n?t.length-1:i,0),function(){for(var v=arguments,E=-1,A=Qe(v.length-i,0),P=z(A);++E<A;)P[E]=v[i+E];E=-1;for(var M=z(i+1);++E<i;)M[E]=v[E];return M[i]=s(P),Rt(t,this,M)}}function Yf(t,i){return i.length<2?t:fn(t,Ht(i,0,-1))}function z1(t,i){for(var s=t.length,v=ht(i.length,s),E=Et(t);v--;){var A=i[v];t[v]=_r(A,s)?E[A]:n}return t}function ou(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var Xf=Qf(bf),bi=i0||function(t,i){return st.setTimeout(t,i)},au=Qf(d1);function Jf(t,i,s){var v=i+"";return au(t,F1(v,H1(I1(v),s)))}function Qf(t){var i=0,s=0;return function(){var v=u0(),E=B-(v-s);if(s=v,E>0){if(++i>=L)return arguments[0]}else i=0;return t.apply(n,arguments)}}function Jo(t,i){var s=-1,v=t.length,E=v-1;for(i=i===n?v:i;++s<i;){var A=Bs(s,E),P=t[A];t[A]=t[s],t[s]=P}return t.length=i,t}var ed=j1(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Lg,function(s,v,E,A){i.push(E?A.replace(Ug,"$1"):v||s)}),i});function ur(t){if(typeof t=="string"||Lt(t))return t;var i=t+"";return i=="0"&&1/t==-V?"-0":i}function pn(t){if(t!=null){try{return To.call(t)}catch{}try{return t+""}catch{}}return""}function H1(t,i){return Wt(oe,function(s){var v="_."+s[0];i&s[1]&&!Eo(t,v)&&t.push(v)}),t.sort()}function td(t){if(t instanceof Te)return t.clone();var i=new Bt(t.__wrapped__,t.__chain__);return i.__actions__=Et(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function q1(t,i,s){(s?wt(t,i,s):i===n)?i=1:i=Qe(Se(i),0);var v=t==null?0:t.length;if(!v||i<1)return[];for(var E=0,A=0,P=z(Fo(v/i));E<v;)P[A++]=Ht(t,E,E+=i);return P}function Z1(t){for(var i=-1,s=t==null?0:t.length,v=0,E=[];++i<s;){var A=t[i];A&&(E[v++]=A)}return E}function G1(){var t=arguments.length;if(!t)return[];for(var i=z(t-1),s=arguments[0],v=t;v--;)i[v-1]=arguments[v];return kr(be(s)?Et(s):[s],ut(i,1))}var K1=xe(function(t,i){return qe(t)?hi(t,ut(i,1,qe,!0)):[]}),V1=xe(function(t,i){var s=qt(i);return qe(s)&&(s=n),qe(t)?hi(t,ut(i,1,qe,!0),de(s,2)):[]}),Y1=xe(function(t,i){var s=qt(i);return qe(s)&&(s=n),qe(t)?hi(t,ut(i,1,qe,!0),n,s):[]});function X1(t,i,s){var v=t==null?0:t.length;return v?(i=s||i===n?1:Se(i),Ht(t,i<0?0:i,v)):[]}function J1(t,i,s){var v=t==null?0:t.length;return v?(i=s||i===n?1:Se(i),i=v-i,Ht(t,0,i<0?0:i)):[]}function Q1(t,i){return t&&t.length?Ho(t,de(i,3),!0,!0):[]}function ew(t,i){return t&&t.length?Ho(t,de(i,3),!0):[]}function tw(t,i,s,v){var E=t==null?0:t.length;return E?(s&&typeof s!="number"&&wt(t,i,s)&&(s=0,v=E),G0(t,i,s,v)):[]}function rd(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=s==null?0:Se(s);return E<0&&(E=Qe(v+E,0)),_o(t,de(i,3),E)}function nd(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=v-1;return s!==n&&(E=Se(s),E=s<0?Qe(v+E,0):ht(E,v-1)),_o(t,de(i,3),E,!0)}function id(t){var i=t==null?0:t.length;return i?ut(t,1):[]}function rw(t){var i=t==null?0:t.length;return i?ut(t,V):[]}function nw(t,i){var s=t==null?0:t.length;return s?(i=i===n?1:Se(i),ut(t,i)):[]}function iw(t){for(var i=-1,s=t==null?0:t.length,v={};++i<s;){var E=t[i];v[E[0]]=E[1]}return v}function od(t){return t&&t.length?t[0]:n}function ow(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=s==null?0:Se(s);return E<0&&(E=Qe(v+E,0)),Mn(t,i,E)}function aw(t){var i=t==null?0:t.length;return i?Ht(t,0,-1):[]}var sw=xe(function(t){var i=ke(t,Gs);return i.length&&i[0]===t[0]?Ns(i):[]}),uw=xe(function(t){var i=qt(t),s=ke(t,Gs);return i===qt(s)?i=n:s.pop(),s.length&&s[0]===t[0]?Ns(s,de(i,2)):[]}),lw=xe(function(t){var i=qt(t),s=ke(t,Gs);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===t[0]?Ns(s,n,i):[]});function cw(t,i){return t==null?"":a0.call(t,i)}function qt(t){var i=t==null?0:t.length;return i?t[i-1]:n}function fw(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=v;return s!==n&&(E=Se(s),E=E<0?Qe(v+E,0):ht(E,v-1)),i===i?Hy(t,i,E):_o(t,kc,E,!0)}function dw(t,i){return t&&t.length?mf(t,Se(i)):n}var pw=xe(ad);function ad(t,i){return t&&t.length&&i&&i.length?Us(t,i):t}function hw(t,i,s){return t&&t.length&&i&&i.length?Us(t,i,de(s,2)):t}function vw(t,i,s){return t&&t.length&&i&&i.length?Us(t,i,n,s):t}var mw=Er(function(t,i){var s=t==null?0:t.length,v=Ls(t,i);return wf(t,ke(i,function(E){return _r(E,s)?+E:E}).sort(Pf)),v});function gw(t,i){var s=[];if(!(t&&t.length))return s;var v=-1,E=[],A=t.length;for(i=de(i,3);++v<A;){var P=t[v];i(P,v,t)&&(s.push(P),E.push(v))}return wf(t,E),s}function su(t){return t==null?t:c0.call(t)}function yw(t,i,s){var v=t==null?0:t.length;return v?(s&&typeof s!="number"&&wt(t,i,s)?(i=0,s=v):(i=i==null?0:Se(i),s=s===n?v:Se(s)),Ht(t,i,s)):[]}function ww(t,i){return zo(t,i)}function bw(t,i,s){return Hs(t,i,de(s,2))}function Sw(t,i){var s=t==null?0:t.length;if(s){var v=zo(t,i);if(v<s&&er(t[v],i))return v}return-1}function Ew(t,i){return zo(t,i,!0)}function _w(t,i,s){return Hs(t,i,de(s,2),!0)}function xw(t,i){var s=t==null?0:t.length;if(s){var v=zo(t,i,!0)-1;if(er(t[v],i))return v}return-1}function Ow(t){return t&&t.length?Sf(t):[]}function Aw(t,i){return t&&t.length?Sf(t,de(i,2)):[]}function Tw(t){var i=t==null?0:t.length;return i?Ht(t,1,i):[]}function Cw(t,i,s){return t&&t.length?(i=s||i===n?1:Se(i),Ht(t,0,i<0?0:i)):[]}function Pw(t,i,s){var v=t==null?0:t.length;return v?(i=s||i===n?1:Se(i),i=v-i,Ht(t,i<0?0:i,v)):[]}function Rw(t,i){return t&&t.length?Ho(t,de(i,3),!1,!0):[]}function Iw(t,i){return t&&t.length?Ho(t,de(i,3)):[]}var Mw=xe(function(t){return Br(ut(t,1,qe,!0))}),Lw=xe(function(t){var i=qt(t);return qe(i)&&(i=n),Br(ut(t,1,qe,!0),de(i,2))}),Fw=xe(function(t){var i=qt(t);return i=typeof i=="function"?i:n,Br(ut(t,1,qe,!0),n,i)});function Dw(t){return t&&t.length?Br(t):[]}function $w(t,i){return t&&t.length?Br(t,de(i,2)):[]}function Nw(t,i){return i=typeof i=="function"?i:n,t&&t.length?Br(t,n,i):[]}function uu(t){if(!(t&&t.length))return[];var i=0;return t=Nr(t,function(s){if(qe(s))return i=Qe(s.length,i),!0}),Os(i,function(s){return ke(t,Es(s))})}function sd(t,i){if(!(t&&t.length))return[];var s=uu(t);return i==null?s:ke(s,function(v){return Rt(i,n,v)})}var kw=xe(function(t,i){return qe(t)?hi(t,i):[]}),jw=xe(function(t){return Zs(Nr(t,qe))}),Ww=xe(function(t){var i=qt(t);return qe(i)&&(i=n),Zs(Nr(t,qe),de(i,2))}),Uw=xe(function(t){var i=qt(t);return i=typeof i=="function"?i:n,Zs(Nr(t,qe),n,i)}),Bw=xe(uu);function zw(t,i){return Of(t||[],i||[],pi)}function Hw(t,i){return Of(t||[],i||[],gi)}var qw=xe(function(t){var i=t.length,s=i>1?t[i-1]:n;return s=typeof s=="function"?(t.pop(),s):n,sd(t,s)});function ud(t){var i=O(t);return i.__chain__=!0,i}function Zw(t,i){return i(t),t}function Qo(t,i){return i(t)}var Gw=Er(function(t){var i=t.length,s=i?t[0]:0,v=this.__wrapped__,E=function(A){return Ls(A,t)};return i>1||this.__actions__.length||!(v instanceof Te)||!_r(s)?this.thru(E):(v=v.slice(s,+s+(i?1:0)),v.__actions__.push({func:Qo,args:[E],thisArg:n}),new Bt(v,this.__chain__).thru(function(A){return i&&!A.length&&A.push(n),A}))});function Kw(){return ud(this)}function Vw(){return new Bt(this.value(),this.__chain__)}function Yw(){this.__values__===n&&(this.__values__=Ed(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function Xw(){return this}function Jw(t){for(var i,s=this;s instanceof ko;){var v=td(s);v.__index__=0,v.__values__=n,i?E.__wrapped__=v:i=v;var E=v;s=s.__wrapped__}return E.__wrapped__=t,i}function Qw(){var t=this.__wrapped__;if(t instanceof Te){var i=t;return this.__actions__.length&&(i=new Te(this)),i=i.reverse(),i.__actions__.push({func:Qo,args:[su],thisArg:n}),new Bt(i,this.__chain__)}return this.thru(su)}function eb(){return xf(this.__wrapped__,this.__actions__)}var tb=qo(function(t,i,s){Le.call(t,s)?++t[s]:br(t,s,1)});function rb(t,i,s){var v=be(t)?$c:Z0;return s&&wt(t,i,s)&&(i=n),v(t,de(i,3))}function nb(t,i){var s=be(t)?Nr:sf;return s(t,de(i,3))}var ib=Df(rd),ob=Df(nd);function ab(t,i){return ut(ea(t,i),1)}function sb(t,i){return ut(ea(t,i),V)}function ub(t,i,s){return s=s===n?1:Se(s),ut(ea(t,i),s)}function ld(t,i){var s=be(t)?Wt:Ur;return s(t,de(i,3))}function cd(t,i){var s=be(t)?Ty:af;return s(t,de(i,3))}var lb=qo(function(t,i,s){Le.call(t,s)?t[s].push(i):br(t,s,[i])});function cb(t,i,s,v){t=_t(t)?t:Hn(t),s=s&&!v?Se(s):0;var E=t.length;return s<0&&(s=Qe(E+s,0)),oa(t)?s<=E&&t.indexOf(i,s)>-1:!!E&&Mn(t,i,s)>-1}var fb=xe(function(t,i,s){var v=-1,E=typeof i=="function",A=_t(t)?z(t.length):[];return Ur(t,function(P){A[++v]=E?Rt(i,P,s):vi(P,i,s)}),A}),db=qo(function(t,i,s){br(t,s,i)});function ea(t,i){var s=be(t)?ke:pf;return s(t,de(i,3))}function pb(t,i,s,v){return t==null?[]:(be(i)||(i=i==null?[]:[i]),s=v?n:s,be(s)||(s=s==null?[]:[s]),gf(t,i,s))}var hb=qo(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function vb(t,i,s){var v=be(t)?bs:Wc,E=arguments.length<3;return v(t,de(i,4),s,E,Ur)}function mb(t,i,s){var v=be(t)?Cy:Wc,E=arguments.length<3;return v(t,de(i,4),s,E,af)}function gb(t,i){var s=be(t)?Nr:sf;return s(t,na(de(i,3)))}function yb(t){var i=be(t)?tf:c1;return i(t)}function wb(t,i,s){(s?wt(t,i,s):i===n)?i=1:i=Se(i);var v=be(t)?U0:f1;return v(t,i)}function bb(t){var i=be(t)?B0:p1;return i(t)}function Sb(t){if(t==null)return 0;if(_t(t))return oa(t)?Fn(t):t.length;var i=vt(t);return i==nt||i==pt?t.size:js(t).length}function Eb(t,i,s){var v=be(t)?Ss:h1;return s&&wt(t,i,s)&&(i=n),v(t,de(i,3))}var _b=xe(function(t,i){if(t==null)return[];var s=i.length;return s>1&&wt(t,i[0],i[1])?i=[]:s>2&&wt(i[0],i[1],i[2])&&(i=[i[0]]),gf(t,ut(i,1),[])}),ta=n0||function(){return st.Date.now()};function xb(t,i){if(typeof i!="function")throw new Ut(l);return t=Se(t),function(){if(--t<1)return i.apply(this,arguments)}}function fd(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Sr(t,H,n,n,n,n,i)}function dd(t,i){var s;if(typeof i!="function")throw new Ut(l);return t=Se(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=n),s}}var lu=xe(function(t,i,s){var v=g;if(s.length){var E=jr(s,Bn(lu));v|=T}return Sr(t,v,i,s,E)}),pd=xe(function(t,i,s){var v=g|b;if(s.length){var E=jr(s,Bn(pd));v|=T}return Sr(i,v,t,s,E)});function hd(t,i,s){i=s?n:i;var v=Sr(t,x,n,n,n,n,n,i);return v.placeholder=hd.placeholder,v}function vd(t,i,s){i=s?n:i;var v=Sr(t,C,n,n,n,n,n,i);return v.placeholder=vd.placeholder,v}function md(t,i,s){var v,E,A,P,M,N,K=0,Y=!1,Q=!1,ie=!0;if(typeof t!="function")throw new Ut(l);i=Zt(i)||0,Be(s)&&(Y=!!s.leading,Q="maxWait"in s,A=Q?Qe(Zt(s.maxWait)||0,i):A,ie="trailing"in s?!!s.trailing:ie);function ue(Ze){var tr=v,Ar=E;return v=E=n,K=Ze,P=t.apply(Ar,tr),P}function he(Ze){return K=Ze,M=bi(Oe,i),Y?ue(Ze):P}function Ee(Ze){var tr=Ze-N,Ar=Ze-K,Dd=i-tr;return Q?ht(Dd,A-Ar):Dd}function ve(Ze){var tr=Ze-N,Ar=Ze-K;return N===n||tr>=i||tr<0||Q&&Ar>=A}function Oe(){var Ze=ta();if(ve(Ze))return Ce(Ze);M=bi(Oe,Ee(Ze))}function Ce(Ze){return M=n,ie&&v?ue(Ze):(v=E=n,P)}function Ft(){M!==n&&Af(M),K=0,v=N=E=M=n}function bt(){return M===n?P:Ce(ta())}function Dt(){var Ze=ta(),tr=ve(Ze);if(v=arguments,E=this,N=Ze,tr){if(M===n)return he(N);if(Q)return Af(M),M=bi(Oe,i),ue(N)}return M===n&&(M=bi(Oe,i)),P}return Dt.cancel=Ft,Dt.flush=bt,Dt}var Ob=xe(function(t,i){return of(t,1,i)}),Ab=xe(function(t,i,s){return of(t,Zt(i)||0,s)});function Tb(t){return Sr(t,k)}function ra(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new Ut(l);var s=function(){var v=arguments,E=i?i.apply(this,v):v[0],A=s.cache;if(A.has(E))return A.get(E);var P=t.apply(this,v);return s.cache=A.set(E,P)||A,P};return s.cache=new(ra.Cache||wr),s}ra.Cache=wr;function na(t){if(typeof t!="function")throw new Ut(l);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function Cb(t){return dd(2,t)}var Pb=v1(function(t,i){i=i.length==1&&be(i[0])?ke(i[0],It(de())):ke(ut(i,1),It(de()));var s=i.length;return xe(function(v){for(var E=-1,A=ht(v.length,s);++E<A;)v[E]=i[E].call(this,v[E]);return Rt(t,this,v)})}),cu=xe(function(t,i){var s=jr(i,Bn(cu));return Sr(t,T,n,i,s)}),gd=xe(function(t,i){var s=jr(i,Bn(gd));return Sr(t,I,n,i,s)}),Rb=Er(function(t,i){return Sr(t,F,n,n,n,i)});function Ib(t,i){if(typeof t!="function")throw new Ut(l);return i=i===n?i:Se(i),xe(t,i)}function Mb(t,i){if(typeof t!="function")throw new Ut(l);return i=i==null?0:Qe(Se(i),0),xe(function(s){var v=s[i],E=Hr(s,0,i);return v&&kr(E,v),Rt(t,this,E)})}function Lb(t,i,s){var v=!0,E=!0;if(typeof t!="function")throw new Ut(l);return Be(s)&&(v="leading"in s?!!s.leading:v,E="trailing"in s?!!s.trailing:E),md(t,i,{leading:v,maxWait:i,trailing:E})}function Fb(t){return fd(t,1)}function Db(t,i){return cu(Ks(i),t)}function $b(){if(!arguments.length)return[];var t=arguments[0];return be(t)?t:[t]}function Nb(t){return zt(t,p)}function kb(t,i){return i=typeof i=="function"?i:n,zt(t,p,i)}function jb(t){return zt(t,h|p)}function Wb(t,i){return i=typeof i=="function"?i:n,zt(t,h|p,i)}function Ub(t,i){return i==null||nf(t,i,it(i))}function er(t,i){return t===i||t!==t&&i!==i}var Bb=Vo($s),zb=Vo(function(t,i){return t>=i}),hn=cf(function(){return arguments}())?cf:function(t){return He(t)&&Le.call(t,"callee")&&!Vc.call(t,"callee")},be=z.isArray,Hb=Rc?It(Rc):J0;function _t(t){return t!=null&&ia(t.length)&&!xr(t)}function qe(t){return He(t)&&_t(t)}function qb(t){return t===!0||t===!1||He(t)&&yt(t)==ge}var qr=o0||Su,Zb=Ic?It(Ic):Q0;function Gb(t){return He(t)&&t.nodeType===1&&!Si(t)}function Kb(t){if(t==null)return!0;if(_t(t)&&(be(t)||typeof t=="string"||typeof t.splice=="function"||qr(t)||zn(t)||hn(t)))return!t.length;var i=vt(t);if(i==nt||i==pt)return!t.size;if(wi(t))return!js(t).length;for(var s in t)if(Le.call(t,s))return!1;return!0}function Vb(t,i){return mi(t,i)}function Yb(t,i,s){s=typeof s=="function"?s:n;var v=s?s(t,i):n;return v===n?mi(t,i,n,s):!!v}function fu(t){if(!He(t))return!1;var i=yt(t);return i==Ue||i==Ae||typeof t.message=="string"&&typeof t.name=="string"&&!Si(t)}function Xb(t){return typeof t=="number"&&Xc(t)}function xr(t){if(!Be(t))return!1;var i=yt(t);return i==ne||i==dt||i==ye||i==es}function yd(t){return typeof t=="number"&&t==Se(t)}function ia(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=te}function Be(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function He(t){return t!=null&&typeof t=="object"}var wd=Mc?It(Mc):t1;function Jb(t,i){return t===i||ks(t,i,tu(i))}function Qb(t,i,s){return s=typeof s=="function"?s:n,ks(t,i,tu(i),s)}function eS(t){return bd(t)&&t!=+t}function tS(t){if(k1(t))throw new we(u);return ff(t)}function rS(t){return t===null}function nS(t){return t==null}function bd(t){return typeof t=="number"||He(t)&&yt(t)==or}function Si(t){if(!He(t)||yt(t)!=kt)return!1;var i=Io(t);if(i===null)return!0;var s=Le.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&To.call(s)==Qy}var du=Lc?It(Lc):r1;function iS(t){return yd(t)&&t>=-te&&t<=te}var Sd=Fc?It(Fc):n1;function oa(t){return typeof t=="string"||!be(t)&&He(t)&&yt(t)==Fr}function Lt(t){return typeof t=="symbol"||He(t)&&yt(t)==on}var zn=Dc?It(Dc):i1;function oS(t){return t===n}function aS(t){return He(t)&&vt(t)==Dr}function sS(t){return He(t)&&yt(t)==yo}var uS=Vo(Ws),lS=Vo(function(t,i){return t<=i});function Ed(t){if(!t)return[];if(_t(t))return oa(t)?Jt(t):Et(t);if(ui&&t[ui])return Uy(t[ui]());var i=vt(t),s=i==nt?Ts:i==pt?xo:Hn;return s(t)}function Or(t){if(!t)return t===0?t:0;if(t=Zt(t),t===V||t===-V){var i=t<0?-1:1;return i*le}return t===t?t:0}function Se(t){var i=Or(t),s=i%1;return i===i?s?i-s:i:0}function _d(t){return t?cn(Se(t),0,ee):0}function Zt(t){if(typeof t=="number")return t;if(Lt(t))return Z;if(Be(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=Be(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=Uc(t);var s=Hg.test(t);return s||Zg.test(t)?xy(t.slice(2),s?2:8):zg.test(t)?Z:+t}function xd(t){return sr(t,xt(t))}function cS(t){return t?cn(Se(t),-te,te):t===0?t:0}function Re(t){return t==null?"":Mt(t)}var fS=Wn(function(t,i){if(wi(i)||_t(i)){sr(i,it(i),t);return}for(var s in i)Le.call(i,s)&&pi(t,s,i[s])}),Od=Wn(function(t,i){sr(i,xt(i),t)}),aa=Wn(function(t,i,s,v){sr(i,xt(i),t,v)}),dS=Wn(function(t,i,s,v){sr(i,it(i),t,v)}),pS=Er(Ls);function hS(t,i){var s=jn(t);return i==null?s:rf(s,i)}var vS=xe(function(t,i){t=De(t);var s=-1,v=i.length,E=v>2?i[2]:n;for(E&&wt(i[0],i[1],E)&&(v=1);++s<v;)for(var A=i[s],P=xt(A),M=-1,N=P.length;++M<N;){var K=P[M],Y=t[K];(Y===n||er(Y,$n[K])&&!Le.call(t,K))&&(t[K]=A[K])}return t}),mS=xe(function(t){return t.push(n,Bf),Rt(Ad,n,t)});function gS(t,i){return Nc(t,de(i,3),ar)}function yS(t,i){return Nc(t,de(i,3),Ds)}function wS(t,i){return t==null?t:Fs(t,de(i,3),xt)}function bS(t,i){return t==null?t:uf(t,de(i,3),xt)}function SS(t,i){return t&&ar(t,de(i,3))}function ES(t,i){return t&&Ds(t,de(i,3))}function _S(t){return t==null?[]:Uo(t,it(t))}function xS(t){return t==null?[]:Uo(t,xt(t))}function pu(t,i,s){var v=t==null?n:fn(t,i);return v===n?s:v}function OS(t,i){return t!=null&&qf(t,i,K0)}function hu(t,i){return t!=null&&qf(t,i,V0)}var AS=Nf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Co.call(i)),t[i]=s},mu(Ot)),TS=Nf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Co.call(i)),Le.call(t,i)?t[i].push(s):t[i]=[s]},de),CS=xe(vi);function it(t){return _t(t)?ef(t):js(t)}function xt(t){return _t(t)?ef(t,!0):o1(t)}function PS(t,i){var s={};return i=de(i,3),ar(t,function(v,E,A){br(s,i(v,E,A),v)}),s}function RS(t,i){var s={};return i=de(i,3),ar(t,function(v,E,A){br(s,E,i(v,E,A))}),s}var IS=Wn(function(t,i,s){Bo(t,i,s)}),Ad=Wn(function(t,i,s,v){Bo(t,i,s,v)}),MS=Er(function(t,i){var s={};if(t==null)return s;var v=!1;i=ke(i,function(A){return A=zr(A,t),v||(v=A.length>1),A}),sr(t,Qs(t),s),v&&(s=zt(s,h|c|p,A1));for(var E=i.length;E--;)qs(s,i[E]);return s});function LS(t,i){return Td(t,na(de(i)))}var FS=Er(function(t,i){return t==null?{}:s1(t,i)});function Td(t,i){if(t==null)return{};var s=ke(Qs(t),function(v){return[v]});return i=de(i),yf(t,s,function(v,E){return i(v,E[0])})}function DS(t,i,s){i=zr(i,t);var v=-1,E=i.length;for(E||(E=1,t=n);++v<E;){var A=t==null?n:t[ur(i[v])];A===n&&(v=E,A=s),t=xr(A)?A.call(t):A}return t}function $S(t,i,s){return t==null?t:gi(t,i,s)}function NS(t,i,s,v){return v=typeof v=="function"?v:n,t==null?t:gi(t,i,s,v)}var Cd=Wf(it),Pd=Wf(xt);function kS(t,i,s){var v=be(t),E=v||qr(t)||zn(t);if(i=de(i,4),s==null){var A=t&&t.constructor;E?s=v?new A:[]:Be(t)?s=xr(A)?jn(Io(t)):{}:s={}}return(E?Wt:ar)(t,function(P,M,N){return i(s,P,M,N)}),s}function jS(t,i){return t==null?!0:qs(t,i)}function WS(t,i,s){return t==null?t:_f(t,i,Ks(s))}function US(t,i,s,v){return v=typeof v=="function"?v:n,t==null?t:_f(t,i,Ks(s),v)}function Hn(t){return t==null?[]:As(t,it(t))}function BS(t){return t==null?[]:As(t,xt(t))}function zS(t,i,s){return s===n&&(s=i,i=n),s!==n&&(s=Zt(s),s=s===s?s:0),i!==n&&(i=Zt(i),i=i===i?i:0),cn(Zt(t),i,s)}function HS(t,i,s){return i=Or(i),s===n?(s=i,i=0):s=Or(s),t=Zt(t),Y0(t,i,s)}function qS(t,i,s){if(s&&typeof s!="boolean"&&wt(t,i,s)&&(i=s=n),s===n&&(typeof i=="boolean"?(s=i,i=n):typeof t=="boolean"&&(s=t,t=n)),t===n&&i===n?(t=0,i=1):(t=Or(t),i===n?(i=t,t=0):i=Or(i)),t>i){var v=t;t=i,i=v}if(s||t%1||i%1){var E=Jc();return ht(t+E*(i-t+_y("1e-"+((E+"").length-1))),i)}return Bs(t,i)}var ZS=Un(function(t,i,s){return i=i.toLowerCase(),t+(s?Rd(i):i)});function Rd(t){return vu(Re(t).toLowerCase())}function Id(t){return t=Re(t),t&&t.replace(Kg,$y).replace(py,"")}function GS(t,i,s){t=Re(t),i=Mt(i);var v=t.length;s=s===n?v:cn(Se(s),0,v);var E=s;return s-=i.length,s>=0&&t.slice(s,E)==i}function KS(t){return t=Re(t),t&&Cg.test(t)?t.replace(sc,Ny):t}function VS(t){return t=Re(t),t&&Fg.test(t)?t.replace(cs,"\\$&"):t}var YS=Un(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),XS=Un(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),JS=Ff("toLowerCase");function QS(t,i,s){t=Re(t),i=Se(i);var v=i?Fn(t):0;if(!i||v>=i)return t;var E=(i-v)/2;return Ko(Do(E),s)+t+Ko(Fo(E),s)}function eE(t,i,s){t=Re(t),i=Se(i);var v=i?Fn(t):0;return i&&v<i?t+Ko(i-v,s):t}function tE(t,i,s){t=Re(t),i=Se(i);var v=i?Fn(t):0;return i&&v<i?Ko(i-v,s)+t:t}function rE(t,i,s){return s||i==null?i=0:i&&(i=+i),l0(Re(t).replace(fs,""),i||0)}function nE(t,i,s){return(s?wt(t,i,s):i===n)?i=1:i=Se(i),zs(Re(t),i)}function iE(){var t=arguments,i=Re(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var oE=Un(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function aE(t,i,s){return s&&typeof s!="number"&&wt(t,i,s)&&(i=s=n),s=s===n?ee:s>>>0,s?(t=Re(t),t&&(typeof i=="string"||i!=null&&!du(i))&&(i=Mt(i),!i&&Ln(t))?Hr(Jt(t),0,s):t.split(i,s)):[]}var sE=Un(function(t,i,s){return t+(s?" ":"")+vu(i)});function uE(t,i,s){return t=Re(t),s=s==null?0:cn(Se(s),0,t.length),i=Mt(i),t.slice(s,s+i.length)==i}function lE(t,i,s){var v=O.templateSettings;s&&wt(t,i,s)&&(i=n),t=Re(t),i=aa({},i,v,Uf);var E=aa({},i.imports,v.imports,Uf),A=it(E),P=As(E,A),M,N,K=0,Y=i.interpolate||wo,Q="__p += '",ie=Cs((i.escape||wo).source+"|"+Y.source+"|"+(Y===uc?Bg:wo).source+"|"+(i.evaluate||wo).source+"|$","g"),ue="//# sourceURL="+(Le.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yy+"]")+`
121
+ `;t.replace(ie,function(ve,Oe,Ce,Ft,bt,Dt){return Ce||(Ce=Ft),Q+=t.slice(K,Dt).replace(Vg,ky),Oe&&(M=!0,Q+=`' +
122
122
  __e(`+Oe+`) +
123
- '`),wt&&(N=!0,Q+=`';
124
- `+wt+`;
123
+ '`),bt&&(N=!0,Q+=`';
124
+ `+bt+`;
125
125
  __p += '`),Ce&&(Q+=`' +
126
126
  ((__t = (`+Ce+`)) == null ? '' : __t) +
127
- '`),K=Lt+ve.length,ve}),Q+=`';
128
- `;var he=Fe.call(i,"variable")&&i.variable;if(!he)Q=`with (obj) {
127
+ '`),K=Dt+ve.length,ve}),Q+=`';
128
+ `;var he=Le.call(i,"variable")&&i.variable;if(!he)Q=`with (obj) {
129
129
  `+Q+`
130
130
  }
131
- `;else if(jg.test(he))throw new we(d);Q=(N?Q.replace(_g,""):Q).replace(xg,"$1").replace(Og,"$1;"),Q="function("+(he||"obj")+`) {
131
+ `;else if(Wg.test(he))throw new we(d);Q=(N?Q.replace(xg,""):Q).replace(Og,"$1").replace(Ag,"$1;"),Q="function("+(he||"obj")+`) {
132
132
  `+(he?"":`obj || (obj = {});
133
- `)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(N?`, __j = Array.prototype.join;
133
+ `)+"var __t, __p = ''"+(M?", __e = _.escape":"")+(N?`, __j = Array.prototype.join;
134
134
  function print() { __p += __j.call(arguments, '') }
135
135
  `:`;
136
136
  `)+Q+`return __p
137
- }`;var Ee=Id(function(){return Pe(A,ue+"return "+Q).apply(n,P)});if(Ee.source=Q,fu(Ee))throw Ee;return Ee}function lE(t){return Re(t).toLowerCase()}function cE(t){return Re(t).toUpperCase()}function fE(t,i,s){if(t=Re(t),t&&(s||i===n))return Wc(t);if(!t||!(i=Mt(i)))return t;var v=Jt(t),E=Jt(i),A=Uc(v,E),P=Bc(v,E)+1;return Hr(v,A,P).join("")}function dE(t,i,s){if(t=Re(t),t&&(s||i===n))return t.slice(0,Hc(t)+1);if(!t||!(i=Mt(i)))return t;var v=Jt(t),E=Bc(v,Jt(i))+1;return Hr(v,0,E).join("")}function pE(t,i,s){if(t=Re(t),t&&(s||i===n))return t.replace(fs,"");if(!t||!(i=Mt(i)))return t;var v=Jt(t),E=Uc(v,Jt(i));return Hr(v,E).join("")}function hE(t,i){var s=X,v=j;if(Be(i)){var E="separator"in i?i.separator:E;s="length"in i?Se(i.length):s,v="omission"in i?Mt(i.omission):v}t=Re(t);var A=t.length;if(Fn(t)){var P=Jt(t);A=P.length}if(s>=A)return t;var I=s-Ln(v);if(I<1)return v;var N=P?Hr(P,0,I).join(""):t.slice(0,I);if(E===n)return N+v;if(P&&(I+=N.length-I),du(E)){if(t.slice(I).search(E)){var K,Y=N;for(E.global||(E=Cs(E.source,Re(uc.exec(E))+"g")),E.lastIndex=0;K=E.exec(Y);)var Q=K.index;N=N.slice(0,Q===n?I:Q)}}else if(t.indexOf(Mt(E),I)!=I){var ie=N.lastIndexOf(E);ie>-1&&(N=N.slice(0,ie))}return N+v}function vE(t){return t=Re(t),t&&Ag.test(t)?t.replace(oc,Hy):t}var mE=Un(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),vu=Ff("toUpperCase");function Md(t,i,s){return t=Re(t),i=s?n:i,i===n?jy(t)?Gy(t):Ry(t):t.match(i)||[]}var Id=xe(function(t,i){try{return Pt(t,n,i)}catch(s){return fu(s)?s:new we(s)}}),gE=Er(function(t,i){return jt(i,function(s){s=ur(s),br(t,s,lu(t[s],t))}),t});function yE(t){var i=t==null?0:t.length,s=de();return t=i?ke(t,function(v){if(typeof v[1]!="function")throw new Wt(l);return[s(v[0]),v[1]]}):[],xe(function(v){for(var E=-1;++E<i;){var A=t[E];if(Pt(A[0],this,v))return Pt(A[1],this,v)}})}function wE(t){return H0(Bt(t,h))}function mu(t){return function(){return t}}function bE(t,i){return t==null||t!==t?i:t}var SE=Df(),EE=Df(!0);function xt(t){return t}function gu(t){return ff(typeof t=="function"?t:Bt(t,h))}function _E(t){return pf(Bt(t,h))}function xE(t,i){return hf(t,Bt(i,h))}var OE=xe(function(t,i){return function(s){return vi(s,t,i)}}),AE=xe(function(t,i){return function(s){return vi(t,s,i)}});function yu(t,i,s){var v=it(i),E=Uo(i,v);s==null&&!(Be(i)&&(E.length||!v.length))&&(s=i,i=t,t=this,E=Uo(i,it(i)));var A=!(Be(s)&&"chain"in s)||!!s.chain,P=xr(t);return jt(E,function(I){var N=i[I];t[I]=N,P&&(t.prototype[I]=function(){var K=this.__chain__;if(A||K){var Y=t(this.__wrapped__),Q=Y.__actions__=St(this.__actions__);return Q.push({func:N,args:arguments,thisArg:t}),Y.__chain__=K,Y}return N.apply(t,kr([this.value()],arguments))})}),t}function TE(){return st._===this&&(st._=Qy),this}function wu(){}function CE(t){return t=Se(t),xe(function(i){return vf(i,t)})}var PE=Ys(ke),RE=Ys(Dc),ME=Ys(Ss);function Fd(t){return nu(t)?Es(ur(t)):s1(t)}function IE(t){return function(i){return t==null?n:fn(t,i)}}var FE=Nf(),LE=Nf(!0);function bu(){return[]}function Su(){return!1}function DE(){return{}}function $E(){return""}function NE(){return!0}function kE(t,i){if(t=Se(t),t<1||t>te)return[];var s=ee,v=pt(t,ee);i=de(i),t-=ee;for(var E=Os(v,i);++s<t;)i(s);return E}function jE(t){return be(t)?ke(t,ur):It(t)?[t]:St(Qf(Re(t)))}function WE(t){var i=++Xy;return Re(t)+i}var UE=Go(function(t,i){return t+i},0),BE=Xs("ceil"),zE=Go(function(t,i){return t/i},1),HE=Xs("floor");function qE(t){return t&&t.length?Wo(t,xt,$s):n}function ZE(t,i){return t&&t.length?Wo(t,de(i,2),$s):n}function GE(t){return kc(t,xt)}function KE(t,i){return kc(t,de(i,2))}function VE(t){return t&&t.length?Wo(t,xt,Ws):n}function YE(t,i){return t&&t.length?Wo(t,de(i,2),Ws):n}var XE=Go(function(t,i){return t*i},1),JE=Xs("round"),QE=Go(function(t,i){return t-i},0);function e_(t){return t&&t.length?xs(t,xt):0}function t_(t,i){return t&&t.length?xs(t,de(i,2)):0}return O.after=_b,O.ary=cd,O.assign=cS,O.assignIn=xd,O.assignInWith=aa,O.assignWith=fS,O.at=dS,O.before=fd,O.bind=lu,O.bindAll=gE,O.bindKey=dd,O.castArray=Db,O.chain=sd,O.chunk=H1,O.compact=q1,O.concat=Z1,O.cond=yE,O.conforms=wE,O.constant=mu,O.countBy=eb,O.create=pS,O.curry=pd,O.curryRight=hd,O.debounce=vd,O.defaults=hS,O.defaultsDeep=vS,O.defer=xb,O.delay=Ob,O.difference=G1,O.differenceBy=K1,O.differenceWith=V1,O.drop=Y1,O.dropRight=X1,O.dropRightWhile=J1,O.dropWhile=Q1,O.fill=ew,O.filter=rb,O.flatMap=ob,O.flatMapDeep=ab,O.flatMapDepth=sb,O.flatten=nd,O.flattenDeep=tw,O.flattenDepth=rw,O.flip=Ab,O.flow=SE,O.flowRight=EE,O.fromPairs=nw,O.functions=ES,O.functionsIn=_S,O.groupBy=ub,O.initial=ow,O.intersection=aw,O.intersectionBy=sw,O.intersectionWith=uw,O.invert=OS,O.invertBy=AS,O.invokeMap=cb,O.iteratee=gu,O.keyBy=fb,O.keys=it,O.keysIn=_t,O.map=ea,O.mapKeys=CS,O.mapValues=PS,O.matches=_E,O.matchesProperty=xE,O.memoize=ra,O.merge=RS,O.mergeWith=Od,O.method=OE,O.methodOf=AE,O.mixin=yu,O.negate=na,O.nthArg=CE,O.omit=MS,O.omitBy=IS,O.once=Tb,O.orderBy=db,O.over=PE,O.overArgs=Cb,O.overEvery=RE,O.overSome=ME,O.partial=cu,O.partialRight=md,O.partition=pb,O.pick=FS,O.pickBy=Ad,O.property=Fd,O.propertyOf=IE,O.pull=dw,O.pullAll=od,O.pullAllBy=pw,O.pullAllWith=hw,O.pullAt=vw,O.range=FE,O.rangeRight=LE,O.rearg=Pb,O.reject=mb,O.remove=mw,O.rest=Rb,O.reverse=su,O.sampleSize=yb,O.set=DS,O.setWith=$S,O.shuffle=wb,O.slice=gw,O.sortBy=Eb,O.sortedUniq=xw,O.sortedUniqBy=Ow,O.split=oE,O.spread=Mb,O.tail=Aw,O.take=Tw,O.takeRight=Cw,O.takeRightWhile=Pw,O.takeWhile=Rw,O.tap=qw,O.throttle=Ib,O.thru=Qo,O.toArray=Sd,O.toPairs=Td,O.toPairsIn=Cd,O.toPath=jE,O.toPlainObject=_d,O.transform=NS,O.unary=Fb,O.union=Mw,O.unionBy=Iw,O.unionWith=Fw,O.uniq=Lw,O.uniqBy=Dw,O.uniqWith=$w,O.unset=kS,O.unzip=uu,O.unzipWith=ad,O.update=jS,O.updateWith=WS,O.values=Hn,O.valuesIn=US,O.without=Nw,O.words=Md,O.wrap=Lb,O.xor=kw,O.xorBy=jw,O.xorWith=Ww,O.zip=Uw,O.zipObject=Bw,O.zipObjectDeep=zw,O.zipWith=Hw,O.entries=Td,O.entriesIn=Cd,O.extend=xd,O.extendWith=aa,yu(O,O),O.add=UE,O.attempt=Id,O.camelCase=qS,O.capitalize=Pd,O.ceil=BE,O.clamp=BS,O.clone=$b,O.cloneDeep=kb,O.cloneDeepWith=jb,O.cloneWith=Nb,O.conformsTo=Wb,O.deburr=Rd,O.defaultTo=bE,O.divide=zE,O.endsWith=ZS,O.eq=er,O.escape=GS,O.escapeRegExp=KS,O.every=tb,O.find=nb,O.findIndex=td,O.findKey=mS,O.findLast=ib,O.findLastIndex=rd,O.findLastKey=gS,O.floor=HE,O.forEach=ud,O.forEachRight=ld,O.forIn=yS,O.forInRight=wS,O.forOwn=bS,O.forOwnRight=SS,O.get=pu,O.gt=Ub,O.gte=Bb,O.has=xS,O.hasIn=hu,O.head=id,O.identity=xt,O.includes=lb,O.indexOf=iw,O.inRange=zS,O.invoke=TS,O.isArguments=hn,O.isArray=be,O.isArrayBuffer=zb,O.isArrayLike=Et,O.isArrayLikeObject=qe,O.isBoolean=Hb,O.isBuffer=qr,O.isDate=qb,O.isElement=Zb,O.isEmpty=Gb,O.isEqual=Kb,O.isEqualWith=Vb,O.isError=fu,O.isFinite=Yb,O.isFunction=xr,O.isInteger=gd,O.isLength=ia,O.isMap=yd,O.isMatch=Xb,O.isMatchWith=Jb,O.isNaN=Qb,O.isNative=eS,O.isNil=rS,O.isNull=tS,O.isNumber=wd,O.isObject=Be,O.isObjectLike=He,O.isPlainObject=Si,O.isRegExp=du,O.isSafeInteger=nS,O.isSet=bd,O.isString=oa,O.isSymbol=It,O.isTypedArray=zn,O.isUndefined=iS,O.isWeakMap=oS,O.isWeakSet=aS,O.join=lw,O.kebabCase=VS,O.last=Ht,O.lastIndexOf=cw,O.lowerCase=YS,O.lowerFirst=XS,O.lt=sS,O.lte=uS,O.max=qE,O.maxBy=ZE,O.mean=GE,O.meanBy=KE,O.min=VE,O.minBy=YE,O.stubArray=bu,O.stubFalse=Su,O.stubObject=DE,O.stubString=$E,O.stubTrue=NE,O.multiply=XE,O.nth=fw,O.noConflict=TE,O.noop=wu,O.now=ta,O.pad=JS,O.padEnd=QS,O.padStart=eE,O.parseInt=tE,O.random=HS,O.reduce=hb,O.reduceRight=vb,O.repeat=rE,O.replace=nE,O.result=LS,O.round=JE,O.runInContext=D,O.sample=gb,O.size=bb,O.snakeCase=iE,O.some=Sb,O.sortedIndex=yw,O.sortedIndexBy=ww,O.sortedIndexOf=bw,O.sortedLastIndex=Sw,O.sortedLastIndexBy=Ew,O.sortedLastIndexOf=_w,O.startCase=aE,O.startsWith=sE,O.subtract=QE,O.sum=e_,O.sumBy=t_,O.template=uE,O.times=kE,O.toFinite=Or,O.toInteger=Se,O.toLength=Ed,O.toLower=lE,O.toNumber=qt,O.toSafeInteger=lS,O.toString=Re,O.toUpper=cE,O.trim=fE,O.trimEnd=dE,O.trimStart=pE,O.truncate=hE,O.unescape=vE,O.uniqueId=WE,O.upperCase=mE,O.upperFirst=vu,O.each=ud,O.eachRight=ld,O.first=id,yu(O,function(){var t={};return ar(O,function(i,s){Fe.call(O.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),O.VERSION=o,jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){O[t].placeholder=O}),jt(["drop","take"],function(t,i){Te.prototype[t]=function(s){s=s===n?1:Qe(Se(s),0);var v=this.__filtered__&&!i?new Te(this):this.clone();return v.__filtered__?v.__takeCount__=pt(s,v.__takeCount__):v.__views__.push({size:pt(s,ee),type:t+(v.__dir__<0?"Right":"")}),v},Te.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),jt(["filter","map","takeWhile"],function(t,i){var s=i+1,v=s==q||s==J;Te.prototype[t]=function(E){var A=this.clone();return A.__iteratees__.push({iteratee:de(E,3),type:s}),A.__filtered__=A.__filtered__||v,A}}),jt(["head","last"],function(t,i){var s="take"+(i?"Right":"");Te.prototype[t]=function(){return this[s](1).value()[0]}}),jt(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");Te.prototype[t]=function(){return this.__filtered__?new Te(this):this[s](1)}}),Te.prototype.compact=function(){return this.filter(xt)},Te.prototype.find=function(t){return this.filter(t).head()},Te.prototype.findLast=function(t){return this.reverse().find(t)},Te.prototype.invokeMap=xe(function(t,i){return typeof t=="function"?new Te(this):this.map(function(s){return vi(s,t,i)})}),Te.prototype.reject=function(t){return this.filter(na(de(t)))},Te.prototype.slice=function(t,i){t=Se(t);var s=this;return s.__filtered__&&(t>0||i<0)?new Te(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Se(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},Te.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Te.prototype.toArray=function(){return this.take(ee)},ar(Te.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),v=/^(?:head|last)$/.test(i),E=O[v?"take"+(i=="last"?"Right":""):i],A=v||/^find/.test(i);E&&(O.prototype[i]=function(){var P=this.__wrapped__,I=v?[1]:arguments,N=P instanceof Te,K=I[0],Y=N||be(P),Q=function(Oe){var Ce=E.apply(O,kr([Oe],I));return v&&ie?Ce[0]:Ce};Y&&s&&typeof K=="function"&&K.length!=1&&(N=Y=!1);var ie=this.__chain__,ue=!!this.__actions__.length,he=A&&!ie,Ee=N&&!ue;if(!A&&Y){P=Ee?P:new Te(this);var ve=t.apply(P,I);return ve.__actions__.push({func:Qo,args:[Q],thisArg:n}),new Ut(ve,ie)}return he&&Ee?t.apply(this,I):(ve=this.thru(Q),he?v?ve.value()[0]:ve.value():ve)})}),jt(["pop","push","shift","sort","splice","unshift"],function(t){var i=Oo[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",v=/^(?:pop|shift)$/.test(t);O.prototype[t]=function(){var E=arguments;if(v&&!this.__chain__){var A=this.value();return i.apply(be(A)?A:[],E)}return this[s](function(P){return i.apply(be(P)?P:[],E)})}}),ar(Te.prototype,function(t,i){var s=O[i];if(s){var v=s.name+"";Fe.call(kn,v)||(kn[v]=[]),kn[v].push({name:i,func:s})}}),kn[Zo(n,b).name]=[{name:"wrapper",func:n}],Te.prototype.clone=v0,Te.prototype.reverse=m0,Te.prototype.value=g0,O.prototype.at=Zw,O.prototype.chain=Gw,O.prototype.commit=Kw,O.prototype.next=Vw,O.prototype.plant=Xw,O.prototype.reverse=Jw,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=Qw,O.prototype.first=O.prototype.head,ui&&(O.prototype[ui]=Yw),O},Dn=Ky();an?((an.exports=Dn)._=Dn,gs._=Dn):st._=Dn}).call(QC)}(Zi,Zi.exports)),Zi.exports}var Ve=eP();const bl={FdSave:rt.FdSave,FdWarningDanger:rt.FdWarningDanger,FdInfoCircle:rt.FdInfoCircle,FdInfoBold:rt.FdInfoBold};var Zl=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Zl||{}),_n=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(_n||{}),Vn=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Vn||{});const Em={[_n.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[_n.DANGER]:{icon:"red-500",button:"primary-dark"},[_n.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Ju=({color:e=_n.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=Em[e].button,l=r==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-primary-hover hover:text-white`;return W.jsx("button",{autoFocus:o,className:Ye("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},tP=({name:e,color:r=_n.PRIMARY,className:n="w-8 h-8"})=>{const o=bl[e]||bl.FdInfoCircle,a=`text-${Em[r].icon}`;return W.jsx(o,{className:Ye(n,a)})},rP=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:l=3e3,views:d,width:w=520,hasOverlay:S=!0,onClose:y,onEdit:h})=>{const c=f=>{y({id:e,reason:f})};U.useEffect(()=>{function f(g){g.key==="Escape"&&c(Vn.CANCELED)}return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]);const p=Ve.merge(Ve.values(d==null?void 0:d.toggles).flatMap(f=>f.value?f.warnings||[]:[]),d==null?void 0:d.tips),m=(f,g)=>{var _;if(!(d!=null&&d.toggles))return;const b=Ve.cloneDeep(d);(_=b.toggles)!=null&&_[f]&&(b.toggles[f].value=g),h({id:e,views:b})};return so.createPortal(W.jsx(ka,{appear:!0,show:!0,as:U.Fragment,children:W.jsx("div",{className:Ye("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":S}),style:{zIndex:l},onClick:()=>c(Vn.CANCELED),children:W.jsx(ka.Child,{as:U.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:W.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:w},onClick:f=>f.stopPropagation(),children:W.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[o?W.jsx("div",{className:"flex items-center justify-center",children:W.jsx(tP,{name:o,color:u,className:"w-6 h-6"})}):null,W.jsx(nP,{condition:r,children:W.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:r})}),W.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:n}),W.jsx("div",{className:"text-xs text-white",children:Ve.values(d==null?void 0:d.toggles).map(f=>W.jsx("div",{children:W.jsxs("label",{htmlFor:f.key,className:"flex items-center",children:[W.jsx(bm,{size:"xs",value:f.value,onChange:g=>m(f.key,g)}),W.jsx("span",{className:"ml-1",children:f.title})]})},f.key))}),W.jsx(iP,{warnings:p}),W.jsx("div",{className:"flex items-center gap-4",children:a===Zl.CONFIRM?W.jsxs(W.Fragment,{children:[W.jsx(Ju,{autoFocus:!0,color:u,onClick:()=>c(Vn.CONFIRMED),children:"Confirm"}),W.jsx(Ju,{color:u,variant:"outlined",onClick:()=>c(Vn.CANCELED),children:"Cancel"})]}):W.jsx(Ju,{autoFocus:!0,onClick:()=>c(),children:"OK"})})]})})})})}),document.querySelector("body"))},nP=e=>e.condition?W.jsx(W.Fragment,{children:e.children}):null,iP=e=>e.warnings?W.jsx(ka,{appear:!0,show:!!e.warnings.length,as:U.Fragment,children:W.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((r,n)=>W.jsx(ka.Child,{as:U.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:W.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[W.jsx(rt.FdWarningDanger,{className:Ye({"h-3 w-3":!0,"text-yellow-500":r.type==="warning","text-red-400":r.type==="error","text-primary-dark":r.type==="info"},"mr-3")}),W.jsx("div",{className:"flex-1",children:r.message})]})},`modal-warnings-${n}`))})}):null;var _m=(e=>(e[e.MIN=1]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(_m||{});const oP=({zoom:e,minZoom:r=1,maxZoom:n=10,handleZoomIn:o,handleZoomOut:a})=>W.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[W.jsx(rt.FdMinusNaked,{onClick:a,className:Ye("h-5 w-5 p-1",{"text-grey-200":e<=r,"cursor-pointer rounded hover:bg-purple-800":e>r})}),W.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),W.jsx(rt.FdPlusNaked,{onClick:o,className:Ye("h-5 w-5 p-1",{"text-grey-200":e>=n,"cursor-pointer rounded hover:bg-purple-800":e<n})})]});function aP(e,r){const n=U.useRef(!1);U.useEffect(()=>{if(n.current)return e();n.current=!0},r)}const Qu=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function el(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),n)}function Hi(e,r,n,o){e.removeEventListener?e.removeEventListener(r,n,o):e.detachEvent&&e.detachEvent("on".concat(r),n)}function xm(e,r){const n=r.slice(0,r.length-1);for(let o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function Om(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const r=e.split(",");let n=r.lastIndexOf("");for(;n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function sP(e,r){const n=e.length>=r.length?e:r,o=e.length>=r.length?r:e;let a=!0;for(let u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}const ii={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Qu?173:189,"=":Qu?61:187,";":Qu?59:186,"'":222,"[":219,"]":221,"\\":220},ir={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Gi={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ct={16:!1,18:!1,17:!1,91:!1},ze={};for(let e=1;e<20;e++)ii["f".concat(e)]=111+e;let We=[],Ji=null,Am="all";const Cr=new Map,An=e=>ii[e.toLowerCase()]||ir[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),uP=e=>Object.keys(ii).find(r=>ii[r]===e),lP=e=>Object.keys(ir).find(r=>ir[r]===e);function Tm(e){Am=e||"all"}function no(){return Am||"all"}function cP(){return We.slice(0)}function fP(){return We.map(e=>uP(e)||lP(e)||String.fromCharCode(e))}function dP(){const e=[];return Object.keys(ze).forEach(r=>{ze[r].forEach(n=>{let{key:o,scope:a,mods:u,shortcut:l}=n;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(d=>An(d))})})}),e}function pP(e){const r=e.target||e.srcElement,{tagName:n}=r;let o=!0;const a=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(r.type);return(r.isContentEditable||(a||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function hP(e){return typeof e=="string"&&(e=An(e)),We.indexOf(e)!==-1}function vP(e,r){let n,o;e||(e=no());for(const a in ze)if(Object.prototype.hasOwnProperty.call(ze,a))for(n=ze[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1).forEach(l=>{let{element:d}=l;return Gl(d)}):o++;no()===e&&Tm(r||"all")}function mP(e){let r=e.keyCode||e.which||e.charCode;e.key&&(r=An(e.key));const n=We.indexOf(r);if(n>=0&&We.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&We.splice(0,We.length),(r===93||r===224)&&(r=91),r in ct){ct[r]=!1;for(const o in ir)ir[o]===r&&(nr[o]=!1)}}function Cm(e){if(typeof e>"u")Object.keys(ze).forEach(a=>{Array.isArray(ze[a])&&ze[a].forEach(u=>Ea(u)),delete ze[a]}),Gl(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&Ea(a)});else if(typeof e=="object")e.key&&Ea(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];let[a,u]=n;typeof a=="function"&&(u=a,a=""),Ea({key:e,scope:a,method:u,splitKey:"+"})}}const Ea=e=>{let{key:r,scope:n,method:o,splitKey:a="+"}=e;Om(r).forEach(l=>{const d=l.split(a),w=d.length,S=d[w-1],y=S==="*"?"*":An(S);if(!ze[y])return;n||(n=no());const h=w>1?xm(ir,d):[],c=[];ze[y]=ze[y].filter(p=>{const f=(o?p.method===o:!0)&&p.scope===n&&sP(p.mods,h);return f&&c.push(p.element),!f}),c.forEach(p=>Gl(p))})};function Ah(e,r,n,o){if(r.element!==o)return;let a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(const u in ct)Object.prototype.hasOwnProperty.call(ct,u)&&(!ct[u]&&r.mods.indexOf(+u)>-1||ct[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!ct[16]&&!ct[18]&&!ct[17]&&!ct[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(We),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Th(e,r){const n=ze["*"];let o=e.keyCode||e.which||e.charCode;if(e.key&&(o=An(e.key)),o===ii.capslock||!nr.filter.call(this,e))return;if((o===93||o===224)&&(o=91),We.indexOf(o)===-1&&o!==229&&We.push(o),["metaKey","ctrlKey","altKey","shiftKey"].forEach(d=>{const w=Gi[d];e[d]&&We.indexOf(w)===-1?We.push(w):!e[d]&&We.indexOf(w)>-1?We.splice(We.indexOf(w),1):d==="metaKey"&&e[d]&&(We=We.filter(S=>S in Gi||S===o))}),o in ct){ct[o]=!0;for(const d in ir)if(Object.prototype.hasOwnProperty.call(ir,d)){const w=Gi[ir[d]];nr[d]=e[w]}if(!n)return}for(const d in ct)Object.prototype.hasOwnProperty.call(ct,d)&&(ct[d]=e[Gi[d]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(We.indexOf(17)===-1&&We.push(17),We.indexOf(18)===-1&&We.push(18),ct[17]=!0,ct[18]=!0);const a=no();if(n)for(let d=0;d<n.length;d++)n[d].scope===a&&(e.type==="keydown"&&n[d].keydown||e.type==="keyup"&&n[d].keyup)&&Ah(e,n[d],a,r);if(!(o in ze))return;const u=ze[o],l=u.length;for(let d=0;d<l;d++)if((e.type==="keydown"&&u[d].keydown||e.type==="keyup"&&u[d].keyup)&&u[d].key){const w=u[d],{splitKey:S}=w,y=w.key.split(S),h=[];for(let c=0;c<y.length;c++)h.push(An(y[c]));h.sort().join("")===We.sort().join("")&&Ah(e,w,a,r)}}function nr(e,r,n){We=[];const o=Om(e);let a=[],u="all",l=document,d=0,w=!1,S=!0,y="+",h=!1,c=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(l=r.element),r.keyup&&(w=r.keyup),r.keydown!==void 0&&(S=r.keydown),r.capture!==void 0&&(h=r.capture),typeof r.splitKey=="string"&&(y=r.splitKey),r.single===!0&&(c=!0)),typeof r=="string"&&(u=r),c&&Cm(e,u);d<o.length;d++)e=o[d].split(y),a=[],e.length>1&&(a=xm(ir,e)),e=e[e.length-1],e=e==="*"?"*":An(e),e in ze||(ze[e]=[]),ze[e].push({keyup:w,keydown:S,scope:u,mods:a,shortcut:o[d],method:n,key:o[d],splitKey:y,element:l});if(typeof l<"u"&&window){if(!Cr.has(l)){const p=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Th(f,l)},m=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Th(f,l),mP(f)};Cr.set(l,{keydownListener:p,keyupListenr:m,capture:h}),el(l,"keydown",p,h),el(l,"keyup",m,h)}if(!Ji){const p=()=>{We=[]};Ji={listener:p,capture:h},el(window,"focus",p,h)}}}function gP(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ze).forEach(n=>{ze[n].filter(a=>a.scope===r&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function Gl(e){const r=Object.values(ze).flat();if(r.findIndex(o=>{let{element:a}=o;return a===e})<0){const{keydownListener:o,keyupListenr:a,capture:u}=Cr.get(e)||{};o&&a&&(Hi(e,"keyup",a,u),Hi(e,"keydown",o,u),Cr.delete(e))}if((r.length<=0||Cr.size<=0)&&(Object.keys(Cr).forEach(a=>{const{keydownListener:u,keyupListenr:l,capture:d}=Cr.get(a)||{};u&&l&&(Hi(a,"keyup",l,d),Hi(a,"keydown",u,d),Cr.delete(a))}),Cr.clear(),Object.keys(ze).forEach(a=>delete ze[a]),Ji)){const{listener:a,capture:u}=Ji;Hi(window,"focus",a,u),Ji=null}}const tl={getPressedKeyString:fP,setScope:Tm,getScope:no,deleteScope:vP,getPressedKeyCodes:cP,getAllKeyCodes:dP,isPressed:hP,filter:pP,trigger:gP,unbind:Cm,keyMap:ii,modifier:ir,modifierMap:Gi};for(const e in tl)Object.prototype.hasOwnProperty.call(tl,e)&&(nr[e]=tl[e]);if(typeof window<"u"){const e=window.hotkeys;nr.noConflict=r=>(r&&window.hotkeys===nr&&(window.hotkeys=e),nr),window.hotkeys=nr}nr.filter=()=>!0;function yP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=U.useCallback((d,w)=>{a&&d.preventDefault(),setTimeout(()=>r(d,w))},o),l=()=>{nr.unbind(e,u)};U.useEffect(()=>(nr(e,n,u),l),[e,n,u])}const wP=e=>{const r=U.useRef(null);return U.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function bP(e){const r=U.useRef();return U.useEffect(()=>{r.current=e},[e]),r.current}function SP(e){const r=U.useRef(e);return U.useEffect(()=>{r.current=e},[e]),r}function EP(e){const r=U.useRef(null);return U.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}function _P(e){const[r,n]=U.useState(e),o=(u,l)=>{n(d=>({...d,features:{...d.features,[u]:{enabled:l}}}))},a=U.useCallback((...u)=>u.every(l=>{var d;return(d=r.features[l])==null?void 0:d.enabled}),[r.features]);return{setFeature:o,isFeatureEnabled:a}}const Pm=U.createContext(""),xP=e=>W.jsx(Pm.Provider,{value:e.value,children:e.children}),OP=()=>{const e=U.useContext(Pm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function AP(e){const[r,n]=U.useState(e),o=U.useMemo(()=>TP(r,n),[]);return{state:r,actions:{...o,set:a=>{n(typeof a=="function"?a:u=>({...u,...a}))}}}}function TP(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${Ve.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const CP=(e,r,n={})=>{n={timeout:200,...n};const o=U.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return U.useCallback((u,...l)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...l)},n.timeout)),u.detail%2===0&&e(u,...l)},[r,e,n.timeout])};function Mr(e){return typeof e=="function"}function Rm(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var rl=Rm(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
137
+ }`;var Ee=Ld(function(){return Pe(A,ue+"return "+Q).apply(n,P)});if(Ee.source=Q,fu(Ee))throw Ee;return Ee}function cE(t){return Re(t).toLowerCase()}function fE(t){return Re(t).toUpperCase()}function dE(t,i,s){if(t=Re(t),t&&(s||i===n))return Uc(t);if(!t||!(i=Mt(i)))return t;var v=Jt(t),E=Jt(i),A=Bc(v,E),P=zc(v,E)+1;return Hr(v,A,P).join("")}function pE(t,i,s){if(t=Re(t),t&&(s||i===n))return t.slice(0,qc(t)+1);if(!t||!(i=Mt(i)))return t;var v=Jt(t),E=zc(v,Jt(i))+1;return Hr(v,0,E).join("")}function hE(t,i,s){if(t=Re(t),t&&(s||i===n))return t.replace(fs,"");if(!t||!(i=Mt(i)))return t;var v=Jt(t),E=Bc(v,Jt(i));return Hr(v,E).join("")}function vE(t,i){var s=X,v=j;if(Be(i)){var E="separator"in i?i.separator:E;s="length"in i?Se(i.length):s,v="omission"in i?Mt(i.omission):v}t=Re(t);var A=t.length;if(Ln(t)){var P=Jt(t);A=P.length}if(s>=A)return t;var M=s-Fn(v);if(M<1)return v;var N=P?Hr(P,0,M).join(""):t.slice(0,M);if(E===n)return N+v;if(P&&(M+=N.length-M),du(E)){if(t.slice(M).search(E)){var K,Y=N;for(E.global||(E=Cs(E.source,Re(lc.exec(E))+"g")),E.lastIndex=0;K=E.exec(Y);)var Q=K.index;N=N.slice(0,Q===n?M:Q)}}else if(t.indexOf(Mt(E),M)!=M){var ie=N.lastIndexOf(E);ie>-1&&(N=N.slice(0,ie))}return N+v}function mE(t){return t=Re(t),t&&Tg.test(t)?t.replace(ac,qy):t}var gE=Un(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),vu=Ff("toUpperCase");function Md(t,i,s){return t=Re(t),i=s?n:i,i===n?Wy(t)?Ky(t):Iy(t):t.match(i)||[]}var Ld=xe(function(t,i){try{return Rt(t,n,i)}catch(s){return fu(s)?s:new we(s)}}),yE=Er(function(t,i){return Wt(i,function(s){s=ur(s),br(t,s,lu(t[s],t))}),t});function wE(t){var i=t==null?0:t.length,s=de();return t=i?ke(t,function(v){if(typeof v[1]!="function")throw new Ut(l);return[s(v[0]),v[1]]}):[],xe(function(v){for(var E=-1;++E<i;){var A=t[E];if(Rt(A[0],this,v))return Rt(A[1],this,v)}})}function bE(t){return q0(zt(t,h))}function mu(t){return function(){return t}}function SE(t,i){return t==null||t!==t?i:t}var EE=$f(),_E=$f(!0);function Ot(t){return t}function gu(t){return df(typeof t=="function"?t:zt(t,h))}function xE(t){return hf(zt(t,h))}function OE(t,i){return vf(t,zt(i,h))}var AE=xe(function(t,i){return function(s){return vi(s,t,i)}}),TE=xe(function(t,i){return function(s){return vi(t,s,i)}});function yu(t,i,s){var v=it(i),E=Uo(i,v);s==null&&!(Be(i)&&(E.length||!v.length))&&(s=i,i=t,t=this,E=Uo(i,it(i)));var A=!(Be(s)&&"chain"in s)||!!s.chain,P=xr(t);return Wt(E,function(M){var N=i[M];t[M]=N,P&&(t.prototype[M]=function(){var K=this.__chain__;if(A||K){var Y=t(this.__wrapped__),Q=Y.__actions__=Et(this.__actions__);return Q.push({func:N,args:arguments,thisArg:t}),Y.__chain__=K,Y}return N.apply(t,kr([this.value()],arguments))})}),t}function CE(){return st._===this&&(st._=e0),this}function wu(){}function PE(t){return t=Se(t),xe(function(i){return mf(i,t)})}var RE=Ys(ke),IE=Ys($c),ME=Ys(Ss);function Fd(t){return nu(t)?Es(ur(t)):u1(t)}function LE(t){return function(i){return t==null?n:fn(t,i)}}var FE=kf(),DE=kf(!0);function bu(){return[]}function Su(){return!1}function $E(){return{}}function NE(){return""}function kE(){return!0}function jE(t,i){if(t=Se(t),t<1||t>te)return[];var s=ee,v=ht(t,ee);i=de(i),t-=ee;for(var E=Os(v,i);++s<t;)i(s);return E}function WE(t){return be(t)?ke(t,ur):Lt(t)?[t]:Et(ed(Re(t)))}function UE(t){var i=++Jy;return Re(t)+i}var BE=Go(function(t,i){return t+i},0),zE=Xs("ceil"),HE=Go(function(t,i){return t/i},1),qE=Xs("floor");function ZE(t){return t&&t.length?Wo(t,Ot,$s):n}function GE(t,i){return t&&t.length?Wo(t,de(i,2),$s):n}function KE(t){return jc(t,Ot)}function VE(t,i){return jc(t,de(i,2))}function YE(t){return t&&t.length?Wo(t,Ot,Ws):n}function XE(t,i){return t&&t.length?Wo(t,de(i,2),Ws):n}var JE=Go(function(t,i){return t*i},1),QE=Xs("round"),e_=Go(function(t,i){return t-i},0);function t_(t){return t&&t.length?xs(t,Ot):0}function r_(t,i){return t&&t.length?xs(t,de(i,2)):0}return O.after=xb,O.ary=fd,O.assign=fS,O.assignIn=Od,O.assignInWith=aa,O.assignWith=dS,O.at=pS,O.before=dd,O.bind=lu,O.bindAll=yE,O.bindKey=pd,O.castArray=$b,O.chain=ud,O.chunk=q1,O.compact=Z1,O.concat=G1,O.cond=wE,O.conforms=bE,O.constant=mu,O.countBy=tb,O.create=hS,O.curry=hd,O.curryRight=vd,O.debounce=md,O.defaults=vS,O.defaultsDeep=mS,O.defer=Ob,O.delay=Ab,O.difference=K1,O.differenceBy=V1,O.differenceWith=Y1,O.drop=X1,O.dropRight=J1,O.dropRightWhile=Q1,O.dropWhile=ew,O.fill=tw,O.filter=nb,O.flatMap=ab,O.flatMapDeep=sb,O.flatMapDepth=ub,O.flatten=id,O.flattenDeep=rw,O.flattenDepth=nw,O.flip=Tb,O.flow=EE,O.flowRight=_E,O.fromPairs=iw,O.functions=_S,O.functionsIn=xS,O.groupBy=lb,O.initial=aw,O.intersection=sw,O.intersectionBy=uw,O.intersectionWith=lw,O.invert=AS,O.invertBy=TS,O.invokeMap=fb,O.iteratee=gu,O.keyBy=db,O.keys=it,O.keysIn=xt,O.map=ea,O.mapKeys=PS,O.mapValues=RS,O.matches=xE,O.matchesProperty=OE,O.memoize=ra,O.merge=IS,O.mergeWith=Ad,O.method=AE,O.methodOf=TE,O.mixin=yu,O.negate=na,O.nthArg=PE,O.omit=MS,O.omitBy=LS,O.once=Cb,O.orderBy=pb,O.over=RE,O.overArgs=Pb,O.overEvery=IE,O.overSome=ME,O.partial=cu,O.partialRight=gd,O.partition=hb,O.pick=FS,O.pickBy=Td,O.property=Fd,O.propertyOf=LE,O.pull=pw,O.pullAll=ad,O.pullAllBy=hw,O.pullAllWith=vw,O.pullAt=mw,O.range=FE,O.rangeRight=DE,O.rearg=Rb,O.reject=gb,O.remove=gw,O.rest=Ib,O.reverse=su,O.sampleSize=wb,O.set=$S,O.setWith=NS,O.shuffle=bb,O.slice=yw,O.sortBy=_b,O.sortedUniq=Ow,O.sortedUniqBy=Aw,O.split=aE,O.spread=Mb,O.tail=Tw,O.take=Cw,O.takeRight=Pw,O.takeRightWhile=Rw,O.takeWhile=Iw,O.tap=Zw,O.throttle=Lb,O.thru=Qo,O.toArray=Ed,O.toPairs=Cd,O.toPairsIn=Pd,O.toPath=WE,O.toPlainObject=xd,O.transform=kS,O.unary=Fb,O.union=Mw,O.unionBy=Lw,O.unionWith=Fw,O.uniq=Dw,O.uniqBy=$w,O.uniqWith=Nw,O.unset=jS,O.unzip=uu,O.unzipWith=sd,O.update=WS,O.updateWith=US,O.values=Hn,O.valuesIn=BS,O.without=kw,O.words=Md,O.wrap=Db,O.xor=jw,O.xorBy=Ww,O.xorWith=Uw,O.zip=Bw,O.zipObject=zw,O.zipObjectDeep=Hw,O.zipWith=qw,O.entries=Cd,O.entriesIn=Pd,O.extend=Od,O.extendWith=aa,yu(O,O),O.add=BE,O.attempt=Ld,O.camelCase=ZS,O.capitalize=Rd,O.ceil=zE,O.clamp=zS,O.clone=Nb,O.cloneDeep=jb,O.cloneDeepWith=Wb,O.cloneWith=kb,O.conformsTo=Ub,O.deburr=Id,O.defaultTo=SE,O.divide=HE,O.endsWith=GS,O.eq=er,O.escape=KS,O.escapeRegExp=VS,O.every=rb,O.find=ib,O.findIndex=rd,O.findKey=gS,O.findLast=ob,O.findLastIndex=nd,O.findLastKey=yS,O.floor=qE,O.forEach=ld,O.forEachRight=cd,O.forIn=wS,O.forInRight=bS,O.forOwn=SS,O.forOwnRight=ES,O.get=pu,O.gt=Bb,O.gte=zb,O.has=OS,O.hasIn=hu,O.head=od,O.identity=Ot,O.includes=cb,O.indexOf=ow,O.inRange=HS,O.invoke=CS,O.isArguments=hn,O.isArray=be,O.isArrayBuffer=Hb,O.isArrayLike=_t,O.isArrayLikeObject=qe,O.isBoolean=qb,O.isBuffer=qr,O.isDate=Zb,O.isElement=Gb,O.isEmpty=Kb,O.isEqual=Vb,O.isEqualWith=Yb,O.isError=fu,O.isFinite=Xb,O.isFunction=xr,O.isInteger=yd,O.isLength=ia,O.isMap=wd,O.isMatch=Jb,O.isMatchWith=Qb,O.isNaN=eS,O.isNative=tS,O.isNil=nS,O.isNull=rS,O.isNumber=bd,O.isObject=Be,O.isObjectLike=He,O.isPlainObject=Si,O.isRegExp=du,O.isSafeInteger=iS,O.isSet=Sd,O.isString=oa,O.isSymbol=Lt,O.isTypedArray=zn,O.isUndefined=oS,O.isWeakMap=aS,O.isWeakSet=sS,O.join=cw,O.kebabCase=YS,O.last=qt,O.lastIndexOf=fw,O.lowerCase=XS,O.lowerFirst=JS,O.lt=uS,O.lte=lS,O.max=ZE,O.maxBy=GE,O.mean=KE,O.meanBy=VE,O.min=YE,O.minBy=XE,O.stubArray=bu,O.stubFalse=Su,O.stubObject=$E,O.stubString=NE,O.stubTrue=kE,O.multiply=JE,O.nth=dw,O.noConflict=CE,O.noop=wu,O.now=ta,O.pad=QS,O.padEnd=eE,O.padStart=tE,O.parseInt=rE,O.random=qS,O.reduce=vb,O.reduceRight=mb,O.repeat=nE,O.replace=iE,O.result=DS,O.round=QE,O.runInContext=D,O.sample=yb,O.size=Sb,O.snakeCase=oE,O.some=Eb,O.sortedIndex=ww,O.sortedIndexBy=bw,O.sortedIndexOf=Sw,O.sortedLastIndex=Ew,O.sortedLastIndexBy=_w,O.sortedLastIndexOf=xw,O.startCase=sE,O.startsWith=uE,O.subtract=e_,O.sum=t_,O.sumBy=r_,O.template=lE,O.times=jE,O.toFinite=Or,O.toInteger=Se,O.toLength=_d,O.toLower=cE,O.toNumber=Zt,O.toSafeInteger=cS,O.toString=Re,O.toUpper=fE,O.trim=dE,O.trimEnd=pE,O.trimStart=hE,O.truncate=vE,O.unescape=mE,O.uniqueId=UE,O.upperCase=gE,O.upperFirst=vu,O.each=ld,O.eachRight=cd,O.first=od,yu(O,function(){var t={};return ar(O,function(i,s){Le.call(O.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),O.VERSION=o,Wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){O[t].placeholder=O}),Wt(["drop","take"],function(t,i){Te.prototype[t]=function(s){s=s===n?1:Qe(Se(s),0);var v=this.__filtered__&&!i?new Te(this):this.clone();return v.__filtered__?v.__takeCount__=ht(s,v.__takeCount__):v.__views__.push({size:ht(s,ee),type:t+(v.__dir__<0?"Right":"")}),v},Te.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),Wt(["filter","map","takeWhile"],function(t,i){var s=i+1,v=s==q||s==J;Te.prototype[t]=function(E){var A=this.clone();return A.__iteratees__.push({iteratee:de(E,3),type:s}),A.__filtered__=A.__filtered__||v,A}}),Wt(["head","last"],function(t,i){var s="take"+(i?"Right":"");Te.prototype[t]=function(){return this[s](1).value()[0]}}),Wt(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");Te.prototype[t]=function(){return this.__filtered__?new Te(this):this[s](1)}}),Te.prototype.compact=function(){return this.filter(Ot)},Te.prototype.find=function(t){return this.filter(t).head()},Te.prototype.findLast=function(t){return this.reverse().find(t)},Te.prototype.invokeMap=xe(function(t,i){return typeof t=="function"?new Te(this):this.map(function(s){return vi(s,t,i)})}),Te.prototype.reject=function(t){return this.filter(na(de(t)))},Te.prototype.slice=function(t,i){t=Se(t);var s=this;return s.__filtered__&&(t>0||i<0)?new Te(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Se(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},Te.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Te.prototype.toArray=function(){return this.take(ee)},ar(Te.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),v=/^(?:head|last)$/.test(i),E=O[v?"take"+(i=="last"?"Right":""):i],A=v||/^find/.test(i);E&&(O.prototype[i]=function(){var P=this.__wrapped__,M=v?[1]:arguments,N=P instanceof Te,K=M[0],Y=N||be(P),Q=function(Oe){var Ce=E.apply(O,kr([Oe],M));return v&&ie?Ce[0]:Ce};Y&&s&&typeof K=="function"&&K.length!=1&&(N=Y=!1);var ie=this.__chain__,ue=!!this.__actions__.length,he=A&&!ie,Ee=N&&!ue;if(!A&&Y){P=Ee?P:new Te(this);var ve=t.apply(P,M);return ve.__actions__.push({func:Qo,args:[Q],thisArg:n}),new Bt(ve,ie)}return he&&Ee?t.apply(this,M):(ve=this.thru(Q),he?v?ve.value()[0]:ve.value():ve)})}),Wt(["pop","push","shift","sort","splice","unshift"],function(t){var i=Oo[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",v=/^(?:pop|shift)$/.test(t);O.prototype[t]=function(){var E=arguments;if(v&&!this.__chain__){var A=this.value();return i.apply(be(A)?A:[],E)}return this[s](function(P){return i.apply(be(P)?P:[],E)})}}),ar(Te.prototype,function(t,i){var s=O[i];if(s){var v=s.name+"";Le.call(kn,v)||(kn[v]=[]),kn[v].push({name:i,func:s})}}),kn[Zo(n,b).name]=[{name:"wrapper",func:n}],Te.prototype.clone=m0,Te.prototype.reverse=g0,Te.prototype.value=y0,O.prototype.at=Gw,O.prototype.chain=Kw,O.prototype.commit=Vw,O.prototype.next=Yw,O.prototype.plant=Jw,O.prototype.reverse=Qw,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=eb,O.prototype.first=O.prototype.head,ui&&(O.prototype[ui]=Xw),O},Dn=Vy();an?((an.exports=Dn)._=Dn,gs._=Dn):st._=Dn}).call(eP)}(Zi,Zi.exports)),Zi.exports}var Ve=tP();const bl={FdSave:rt.FdSave,FdWarningDanger:rt.FdWarningDanger,FdInfoCircle:rt.FdInfoCircle,FdInfoBold:rt.FdInfoBold};var Zl=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Zl||{}),_n=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(_n||{}),Vn=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Vn||{});const _m={[_n.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[_n.DANGER]:{icon:"red-500",button:"primary-dark"},[_n.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Ju=({color:e=_n.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=_m[e].button,l=r==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-primary-hover hover:text-white`;return W.jsx("button",{autoFocus:o,className:Ye("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},rP=({name:e,color:r=_n.PRIMARY,className:n="w-8 h-8"})=>{const o=bl[e]||bl.FdInfoCircle,a=`text-${_m[r].icon}`;return W.jsx(o,{className:Ye(n,a)})},nP=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:l=3e3,views:d,width:w=520,hasOverlay:S=!0,onClose:y,onEdit:h})=>{const c=f=>{y({id:e,reason:f})};U.useEffect(()=>{function f(g){g.key==="Escape"&&c(Vn.CANCELED)}return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]);const p=Ve.merge(Ve.values(d==null?void 0:d.toggles).flatMap(f=>f.value?f.warnings||[]:[]),d==null?void 0:d.tips),m=(f,g)=>{var _;if(!(d!=null&&d.toggles))return;const b=Ve.cloneDeep(d);(_=b.toggles)!=null&&_[f]&&(b.toggles[f].value=g),h({id:e,views:b})};return so.createPortal(W.jsx(ka,{appear:!0,show:!0,as:U.Fragment,children:W.jsx("div",{className:Ye("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":S}),style:{zIndex:l},onClick:()=>c(Vn.CANCELED),children:W.jsx(ka.Child,{as:U.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:W.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:w},onClick:f=>f.stopPropagation(),children:W.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[o?W.jsx("div",{className:"flex items-center justify-center",children:W.jsx(rP,{name:o,color:u,className:"w-6 h-6"})}):null,W.jsx(iP,{condition:r,children:W.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:r})}),W.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:n}),W.jsx("div",{className:"text-xs text-white",children:Ve.values(d==null?void 0:d.toggles).map(f=>W.jsx("div",{children:W.jsxs("label",{htmlFor:f.key,className:"flex items-center",children:[W.jsx(Sm,{size:"xs",value:f.value,onChange:g=>m(f.key,g)}),W.jsx("span",{className:"ml-1",children:f.title})]})},f.key))}),W.jsx(oP,{warnings:p}),W.jsx("div",{className:"flex items-center gap-4",children:a===Zl.CONFIRM?W.jsxs(W.Fragment,{children:[W.jsx(Ju,{autoFocus:!0,color:u,onClick:()=>c(Vn.CONFIRMED),children:"Confirm"}),W.jsx(Ju,{color:u,variant:"outlined",onClick:()=>c(Vn.CANCELED),children:"Cancel"})]}):W.jsx(Ju,{autoFocus:!0,onClick:()=>c(),children:"OK"})})]})})})})}),document.querySelector("body"))},iP=e=>e.condition?W.jsx(W.Fragment,{children:e.children}):null,oP=e=>e.warnings?W.jsx(ka,{appear:!0,show:!!e.warnings.length,as:U.Fragment,children:W.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((r,n)=>W.jsx(ka.Child,{as:U.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:W.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[W.jsx(rt.FdWarningDanger,{className:Ye({"h-3 w-3":!0,"text-yellow-500":r.type==="warning","text-red-400":r.type==="error","text-primary-dark":r.type==="info"},"mr-3")}),W.jsx("div",{className:"flex-1",children:r.message})]})},`modal-warnings-${n}`))})}):null;var xm=(e=>(e[e.MIN=1]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(xm||{});const aP=({zoom:e,minZoom:r=1,maxZoom:n=10,handleZoomIn:o,handleZoomOut:a})=>W.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[W.jsx(rt.FdMinusNaked,{onClick:a,className:Ye("h-5 w-5 p-1",{"text-grey-200":e<=r,"cursor-pointer rounded hover:bg-purple-800":e>r})}),W.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),W.jsx(rt.FdPlusNaked,{onClick:o,className:Ye("h-5 w-5 p-1",{"text-grey-200":e>=n,"cursor-pointer rounded hover:bg-purple-800":e<n})})]});function sP(e,r){const n=U.useRef(!1);U.useEffect(()=>{if(n.current)return e();n.current=!0},r)}const Qu=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function el(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),n)}function Hi(e,r,n,o){e.removeEventListener?e.removeEventListener(r,n,o):e.detachEvent&&e.detachEvent("on".concat(r),n)}function Om(e,r){const n=r.slice(0,r.length-1);for(let o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function Am(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const r=e.split(",");let n=r.lastIndexOf("");for(;n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function uP(e,r){const n=e.length>=r.length?e:r,o=e.length>=r.length?r:e;let a=!0;for(let u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}const ii={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Qu?173:189,"=":Qu?61:187,";":Qu?59:186,"'":222,"[":219,"]":221,"\\":220},ir={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Gi={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ft={16:!1,18:!1,17:!1,91:!1},ze={};for(let e=1;e<20;e++)ii["f".concat(e)]=111+e;let We=[],Ji=null,Tm="all";const Cr=new Map,An=e=>ii[e.toLowerCase()]||ir[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),lP=e=>Object.keys(ii).find(r=>ii[r]===e),cP=e=>Object.keys(ir).find(r=>ir[r]===e);function Cm(e){Tm=e||"all"}function no(){return Tm||"all"}function fP(){return We.slice(0)}function dP(){return We.map(e=>lP(e)||cP(e)||String.fromCharCode(e))}function pP(){const e=[];return Object.keys(ze).forEach(r=>{ze[r].forEach(n=>{let{key:o,scope:a,mods:u,shortcut:l}=n;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(d=>An(d))})})}),e}function hP(e){const r=e.target||e.srcElement,{tagName:n}=r;let o=!0;const a=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(r.type);return(r.isContentEditable||(a||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function vP(e){return typeof e=="string"&&(e=An(e)),We.indexOf(e)!==-1}function mP(e,r){let n,o;e||(e=no());for(const a in ze)if(Object.prototype.hasOwnProperty.call(ze,a))for(n=ze[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1).forEach(l=>{let{element:d}=l;return Gl(d)}):o++;no()===e&&Cm(r||"all")}function gP(e){let r=e.keyCode||e.which||e.charCode;e.key&&(r=An(e.key));const n=We.indexOf(r);if(n>=0&&We.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&We.splice(0,We.length),(r===93||r===224)&&(r=91),r in ft){ft[r]=!1;for(const o in ir)ir[o]===r&&(nr[o]=!1)}}function Pm(e){if(typeof e>"u")Object.keys(ze).forEach(a=>{Array.isArray(ze[a])&&ze[a].forEach(u=>Ea(u)),delete ze[a]}),Gl(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&Ea(a)});else if(typeof e=="object")e.key&&Ea(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];let[a,u]=n;typeof a=="function"&&(u=a,a=""),Ea({key:e,scope:a,method:u,splitKey:"+"})}}const Ea=e=>{let{key:r,scope:n,method:o,splitKey:a="+"}=e;Am(r).forEach(l=>{const d=l.split(a),w=d.length,S=d[w-1],y=S==="*"?"*":An(S);if(!ze[y])return;n||(n=no());const h=w>1?Om(ir,d):[],c=[];ze[y]=ze[y].filter(p=>{const f=(o?p.method===o:!0)&&p.scope===n&&uP(p.mods,h);return f&&c.push(p.element),!f}),c.forEach(p=>Gl(p))})};function Th(e,r,n,o){if(r.element!==o)return;let a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(const u in ft)Object.prototype.hasOwnProperty.call(ft,u)&&(!ft[u]&&r.mods.indexOf(+u)>-1||ft[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!ft[16]&&!ft[18]&&!ft[17]&&!ft[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(We),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Ch(e,r){const n=ze["*"];let o=e.keyCode||e.which||e.charCode;if(e.key&&(o=An(e.key)),o===ii.capslock||!nr.filter.call(this,e))return;if((o===93||o===224)&&(o=91),We.indexOf(o)===-1&&o!==229&&We.push(o),["metaKey","ctrlKey","altKey","shiftKey"].forEach(d=>{const w=Gi[d];e[d]&&We.indexOf(w)===-1?We.push(w):!e[d]&&We.indexOf(w)>-1?We.splice(We.indexOf(w),1):d==="metaKey"&&e[d]&&(We=We.filter(S=>S in Gi||S===o))}),o in ft){ft[o]=!0;for(const d in ir)if(Object.prototype.hasOwnProperty.call(ir,d)){const w=Gi[ir[d]];nr[d]=e[w]}if(!n)return}for(const d in ft)Object.prototype.hasOwnProperty.call(ft,d)&&(ft[d]=e[Gi[d]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(We.indexOf(17)===-1&&We.push(17),We.indexOf(18)===-1&&We.push(18),ft[17]=!0,ft[18]=!0);const a=no();if(n)for(let d=0;d<n.length;d++)n[d].scope===a&&(e.type==="keydown"&&n[d].keydown||e.type==="keyup"&&n[d].keyup)&&Th(e,n[d],a,r);if(!(o in ze))return;const u=ze[o],l=u.length;for(let d=0;d<l;d++)if((e.type==="keydown"&&u[d].keydown||e.type==="keyup"&&u[d].keyup)&&u[d].key){const w=u[d],{splitKey:S}=w,y=w.key.split(S),h=[];for(let c=0;c<y.length;c++)h.push(An(y[c]));h.sort().join("")===We.sort().join("")&&Th(e,w,a,r)}}function nr(e,r,n){We=[];const o=Am(e);let a=[],u="all",l=document,d=0,w=!1,S=!0,y="+",h=!1,c=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(l=r.element),r.keyup&&(w=r.keyup),r.keydown!==void 0&&(S=r.keydown),r.capture!==void 0&&(h=r.capture),typeof r.splitKey=="string"&&(y=r.splitKey),r.single===!0&&(c=!0)),typeof r=="string"&&(u=r),c&&Pm(e,u);d<o.length;d++)e=o[d].split(y),a=[],e.length>1&&(a=Om(ir,e)),e=e[e.length-1],e=e==="*"?"*":An(e),e in ze||(ze[e]=[]),ze[e].push({keyup:w,keydown:S,scope:u,mods:a,shortcut:o[d],method:n,key:o[d],splitKey:y,element:l});if(typeof l<"u"&&window){if(!Cr.has(l)){const p=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Ch(f,l)},m=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Ch(f,l),gP(f)};Cr.set(l,{keydownListener:p,keyupListenr:m,capture:h}),el(l,"keydown",p,h),el(l,"keyup",m,h)}if(!Ji){const p=()=>{We=[]};Ji={listener:p,capture:h},el(window,"focus",p,h)}}}function yP(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ze).forEach(n=>{ze[n].filter(a=>a.scope===r&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function Gl(e){const r=Object.values(ze).flat();if(r.findIndex(o=>{let{element:a}=o;return a===e})<0){const{keydownListener:o,keyupListenr:a,capture:u}=Cr.get(e)||{};o&&a&&(Hi(e,"keyup",a,u),Hi(e,"keydown",o,u),Cr.delete(e))}if((r.length<=0||Cr.size<=0)&&(Object.keys(Cr).forEach(a=>{const{keydownListener:u,keyupListenr:l,capture:d}=Cr.get(a)||{};u&&l&&(Hi(a,"keyup",l,d),Hi(a,"keydown",u,d),Cr.delete(a))}),Cr.clear(),Object.keys(ze).forEach(a=>delete ze[a]),Ji)){const{listener:a,capture:u}=Ji;Hi(window,"focus",a,u),Ji=null}}const tl={getPressedKeyString:dP,setScope:Cm,getScope:no,deleteScope:mP,getPressedKeyCodes:fP,getAllKeyCodes:pP,isPressed:vP,filter:hP,trigger:yP,unbind:Pm,keyMap:ii,modifier:ir,modifierMap:Gi};for(const e in tl)Object.prototype.hasOwnProperty.call(tl,e)&&(nr[e]=tl[e]);if(typeof window<"u"){const e=window.hotkeys;nr.noConflict=r=>(r&&window.hotkeys===nr&&(window.hotkeys=e),nr),window.hotkeys=nr}nr.filter=()=>!0;function wP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=U.useCallback((d,w)=>{a&&d.preventDefault(),setTimeout(()=>r(d,w))},o),l=()=>{nr.unbind(e,u)};U.useEffect(()=>(nr(e,n,u),l),[e,n,u])}const bP=e=>{const r=U.useRef(null);return U.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function SP(e){const r=U.useRef();return U.useEffect(()=>{r.current=e},[e]),r.current}function EP(e){const r=U.useRef(e);return U.useEffect(()=>{r.current=e},[e]),r}function _P(e){const r=U.useRef(null);return U.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}function xP(e){const[r,n]=U.useState(e),o=(u,l)=>{n(d=>({...d,features:{...d.features,[u]:{enabled:l}}}))},a=U.useCallback((...u)=>u.every(l=>{var d;return(d=r.features[l])==null?void 0:d.enabled}),[r.features]);return{setFeature:o,isFeatureEnabled:a}}const Rm=U.createContext(""),OP=e=>W.jsx(Rm.Provider,{value:e.value,children:e.children}),AP=()=>{const e=U.useContext(Rm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function TP(e){const[r,n]=U.useState(e),o=U.useMemo(()=>CP(r,n),[]);return{state:r,actions:{...o,set:a=>{n(typeof a=="function"?a:u=>({...u,...a}))}}}}function CP(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${Ve.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const PP=(e,r,n={})=>{n={timeout:200,...n};const o=U.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return U.useCallback((u,...l)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...l)},n.timeout)),u.detail%2===0&&e(u,...l)},[r,e,n.timeout])};function Ir(e){return typeof e=="function"}function Im(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var rl=Im(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
138
138
  `+n.map(function(o,a){return a+1+") "+o.toString()}).join(`
139
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Sl(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var Xa=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,n,o,a,u;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var d=dl(l),w=d.next();!w.done;w=d.next()){var S=w.value;S.remove(this)}}catch(f){r={error:f}}finally{try{w&&!w.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}else l.remove(this);var y=this.initialTeardown;if(Mr(y))try{y()}catch(f){u=f instanceof rl?f.errors:[f]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var c=dl(h),p=c.next();!p.done;p=c.next()){var m=p.value;try{Ch(m)}catch(f){u=u??[],f instanceof rl?u=$a($a([],pl(u)),pl(f.errors)):u.push(f)}}}catch(f){o={error:f}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}}if(u)throw new rl(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)Ch(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&Sl(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&Sl(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),Mm=Xa.EMPTY;function Im(e){return e instanceof Xa||e&&"closed"in e&&Mr(e.remove)&&Mr(e.add)&&Mr(e.unsubscribe)}function Ch(e){Mr(e)?e():e.unsubscribe()}var PP={Promise:void 0},RP={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return setTimeout.apply(void 0,$a([e,r],pl(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function MP(e){RP.setTimeout(function(){throw e})}function Ph(){}function Ma(e){e()}var Fm=function(e){Za(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,Im(n)&&n.add(o)):o.destination=LP,o}return r.create=function(n,o,a){return new El(n,o,a)},r.prototype.next=function(n){this.isStopped||this._next(n)},r.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Xa),IP=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var n=this.partialObserver;if(n.next)try{n.next(r)}catch(o){_a(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){_a(o)}else _a(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){_a(n)}},e}(),El=function(e){Za(r,e);function r(n,o,a){var u=e.call(this)||this,l;return Mr(n)||!n?l={next:n??void 0,error:o??void 0,complete:a??void 0}:l=n,u.destination=new IP(l),u}return r}(Fm);function _a(e){MP(e)}function FP(e){throw e}var LP={closed:!0,next:Ph,error:FP,complete:Ph},DP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function $P(e){return e}function NP(e){return e.length===0?$P:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var Rh=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,o){var a=this,u=jP(r)?r:new El(r,n,o);return Ma(function(){var l=a,d=l.operator,w=l.source;u.add(d?d.call(u,w):w?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var o=this;return n=Mh(n),new n(function(a,u){var l=new El({next:function(d){try{r(d)}catch(w){u(w),l.unsubscribe()}},error:u,complete:a});o.subscribe(l)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[DP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return NP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=Mh(r),new r(function(o,a){var u;n.subscribe(function(l){return u=l},function(l){return a(l)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function Mh(e){var r;return(r=e??PP.Promise)!==null&&r!==void 0?r:Promise}function kP(e){return e&&Mr(e.next)&&Mr(e.error)&&Mr(e.complete)}function jP(e){return e&&e instanceof Fm||kP(e)&&Im(e)}var WP=Rm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Fr=function(e){Za(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var o=new Ih(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new WP},r.prototype.next=function(n){var o=this;Ma(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=dl(o.currentObservers),d=l.next();!d.done;d=l.next()){var w=d.value;w.next(n)}}catch(S){a={error:S}}finally{try{d&&!d.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;Ma(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},r.prototype.complete=function(){var n=this;Ma(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var o=this,a=this,u=a.hasError,l=a.isStopped,d=a.observers;return u||l?Mm:(this.currentObservers=null,d.push(n),new Xa(function(){o.currentObservers=null,Sl(d,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,l=o.isStopped;a?n.error(u):l&&n.complete()},r.prototype.asObservable=function(){var n=new Rh;return n.source=this,n},r.create=function(n,o){return new Ih(n,o)},r}(Rh),Ih=function(e){Za(r,e);function r(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return r.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},r.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},r.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},r.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:Mm},r}(Fr),Lm=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Lm||{}),Dm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Dm||{});const UP=new Fr,BP=new Fr,$m=new Fr;var Nm=(e=>(e.SAVE_ALL="save-all",e))(Nm||{});const zP=new Fr;var km=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(km||{});const HP=new Fr;var jm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(jm||{});const qP=new Fr,ZP=new Fr;var io=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(io||{});const ja=new Fr,Kl=31;var Vl=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Kl} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Vl||{});function Wm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>Kl)throw new Error(Vl.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function GP(e){if(!e)return null;if(typeof e=="string")try{Wm(e)}catch(r){return r.message}}function KP(e,r){let n="";if(["array","object"].includes(r))try{const o=JSON.parse(e);r==="array"&&(!Array.isArray(o)||!Ve.isObject(o))&&(n=`Invalid value for type ${r}`),r==="object"&&(!Ve.isObject(o)||Array.isArray(o))&&(n=`Invalid value for type ${r}`)}catch{n=`Invalid value for type ${r}`}return r==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(n=`Invalid value for type ${r}`)),r==="number"&&isNaN(+e)&&(n=`Invalid value for type ${r}`),["boolean","bool"].includes(r)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(n=`Invalid value for type ${r}`),n}function Ja(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(r,"")}var Yl=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Yl||{});const en={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Kt=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Kt||{}),nn=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(nn||{}),Xl=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Xl||{});const Um="roles.json",Bm="qodlyApp.json",VP="model.4DModel",zm="HTTPHandlers.json",YP="Localization/i18n";function Hm(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return Kt.MODEL;case n==="WebForm":return Kt.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===en.METHODS):return Kt.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===en.CLASSES):return Kt.CLASS;case e===Um:return Kt.ROLES;case e===zm:return Kt.HTTP_HANDLERS;case e===Bm:return Kt.SETTINGS;default:return Kt.TEXT}}function XP(e,r=!1){switch(e){case en.REPORTS:case"report":return"QoDoc";case en.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case en.CLASSES:case en.METHODS:return r?"4qs":"4dm";default:return""}}function JP(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class qm{constructor(){this.current=Promise.resolve()}lock(){let r;const n=new Promise(a=>{r=a}),o=this.current.then(()=>r);return this.current=n,o}}function Jl(){const e=new qm;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Zm=Ve.curry((e,r,n)=>e&&Ve.get(n,e)===r),QP=Ve.curry((e,r,n)=>Ve.get(n,e)!==r),eR=Ve.curry((e,r)=>Ve.get(r,"id")!==e),tR=Ve.curry((e,r)=>Ve.get(r,"id")===e),rR=Ve.curry((e,r)=>Ve.get(r,"path")===e);function nR(e="id",r,n){return n.findIndex(Zm(e,r))!==-1}function iR(e){if(!e)return"";const{id:r,namespace:n}=e;return n&&r?`${n}:${r}`:r}function Gm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function oR(e){return e.type==="object"}function Km(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Vm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Gm(e)}function aR(e){return Km(e)||Vm(e)}function sR(e){return e.applyTo==="dataStore"}function uR(e){return e.applyTo==="dataClass"}function lR(e){return e.applyTo==="entity"}function cR(e){return e.applyTo==="entityCollection"}function fR(e){return e.type==="entity"}function dR(e){return e.type==="entitysel"}function Ym(e){return e.dataType==="array"}function Xm(e){return e.dataType==="object"}function Jm(e){return e.type==="scalar"}function pR(e){return Ym(e)||Xm(e)||Jm(e)}const hR=e=>e!=null&&e.type==="entity",vR=e=>e.type==="entitysel",mR=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",gR=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",yR=e=>e.type==="scalar"&&e.dataType==="date";function wR(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}function bR(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var oo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(oo||{}),Qm=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Qm||{}),Ql=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Ql||{});const SR={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function ER(e){var u;let r={};try{const l=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(l)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:oo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:Ql.table}},...o}}function eg(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[oo.capable,oo.incapable].includes(e.preemptive)&&(r.preemptive=e.preemptive),e.publishedSoap&&(r.publishedSoap=!0,e.publishedWsdl&&(r.publishedWsdl=!0)),e.publishedWeb&&(r.publishedWeb=!0),e.publishedSql&&(r.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(r.published4DMobile=e.publishedRestOptions),JSON.stringify(r).replace(/"(true|false)"/g,"$1")}function _R(e,r,n=!1){const o=Ve.isString(r)?r:eg(r);if(!n&&tg(e))return e;const a=rg(e);return`//%attributes = ${o}\r
140
- ${a}`}function tg(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function rg(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const xR=()=>Dl.uuid().replaceAll("-","").toUpperCase(),Xe="/rest/$designer",ho="/rest/$designer-ext";function OR(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class _l extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function Le(e,r){var a;ja.next({action:io.REQUEST_SENT});const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let u;try{const l=await n.json();((a=l==null?void 0:l.__ERROR)==null?void 0:a.some(w=>w.errCode===1651))&&ja.next({action:io.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),u=new _l(e,n,l)}catch{u=new _l(e,n)}throw u.log(),u}return await n.json()}function AR(e){return ja.next({action:io.REQUEST_SENT}),e}var lr={},lt={},Fh;function yn(){if(Fh)return lt;Fh=1;var e=lt.ValidationError=function(f,g,b,_,x,C){if(Array.isArray(_)?(this.path=_,this.property=_.reduce(function(M,H){return M+d(H)},"instance")):_!==void 0&&(this.property=_),f&&(this.message=f),b){var T=b.$id||b.id;this.schema=T||b}g!==void 0&&(this.instance=g),this.name=x,this.argument=C,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var r=lt.ValidatorResult=function(f,g,b,_){this.instance=f,this.schema=g,this.options=b,this.path=_.path,this.propertyPath=_.propertyPath,this.errors=[],this.throwError=b&&b.throwError,this.throwFirst=b&&b.throwFirst,this.throwAll=b&&b.throwAll,this.disableFormat=b&&b.disableFormat===!0};r.prototype.addError=function(f){var g;if(typeof f=="string")g=new e(f,this.instance,this.schema,this.path);else{if(!f)throw new Error("Missing error detail");if(!f.message)throw new Error("Missing error message");if(!f.name)throw new Error("Missing validator type");g=new e(f.message,this.instance,this.schema,this.path,f.name,f.argument)}if(this.errors.push(g),this.throwFirst)throw new o(this);if(this.throwError)throw g;return g},r.prototype.importErrors=function(f){typeof f=="string"||f&&f.validatorType?this.addError(f):f&&f.errors&&(this.errors=this.errors.concat(f.errors))};function n(m,f){return f+": "+m.toString()+`
141
- `}r.prototype.toString=function(f){return this.errors.map(n).join("")},Object.defineProperty(r.prototype,"valid",{get:function(){return!this.errors.length}}),lt.ValidatorResultError=o;function o(m){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,o),this.instance=m.instance,this.schema=m.schema,this.options=m.options,this.errors=m.errors}o.prototype=new Error,o.prototype.constructor=o,o.prototype.name="Validation Error";var a=lt.SchemaError=function m(f,g){this.message=f,this.schema=g,Error.call(this,f),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,m)};a.prototype=Object.create(Error.prototype,{constructor:{value:a,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var u=lt.SchemaContext=function(f,g,b,_,x){this.schema=f,this.options=g,Array.isArray(b)?(this.path=b,this.propertyPath=b.reduce(function(C,T){return C+d(T)},"instance")):this.propertyPath=b,this.base=_,this.schemas=x};u.prototype.resolve=function(f){return p(this.base,f)},u.prototype.makeChild=function(f,g){var b=g===void 0?this.path:this.path.concat([g]),_=f.$id||f.id;let x=p(this.base,_||"");var C=new u(f,this.options,b,x,Object.create(this.schemas));return _&&!C.schemas[x]&&(C.schemas[x]=f),C};var l=lt.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(m){return typeof m=="string"&&parseFloat(m)===parseInt(m,10)&&!isNaN(m)},regex:function(m){var f=!0;try{new RegExp(m)}catch{f=!1}return f},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],lt.isFormat=function(f,g,b){if(typeof f=="string"&&l[g]!==void 0){if(l[g]instanceof RegExp)return l[g].test(f);if(typeof l[g]=="function")return l[g](f)}else if(b&&b.customFormats&&typeof b.customFormats[g]=="function")return b.customFormats[g](f);return!0};var d=lt.makeSuffix=function(f){return f=f.toString(),!f.match(/[.\s\[\]]/)&&!f.match(/^[\d]/)?"."+f:f.match(/^\d+$/)?"["+f+"]":"["+JSON.stringify(f)+"]"};lt.deepCompareStrict=function m(f,g){if(typeof f!=typeof g)return!1;if(Array.isArray(f))return!Array.isArray(g)||f.length!==g.length?!1:f.every(function(x,C){return m(f[C],g[C])});if(typeof f=="object"){if(!f||!g)return f===g;var b=Object.keys(f),_=Object.keys(g);return b.length!==_.length?!1:b.every(function(x){return m(f[x],g[x])})}return f===g};function w(m,f,g,b){typeof g=="object"?f[b]=h(m[b],g):m.indexOf(g)===-1&&f.push(g)}function S(m,f,g){f[g]=m[g]}function y(m,f,g,b){typeof f[b]!="object"||!f[b]?g[b]=f[b]:m[b]?g[b]=h(m[b],f[b]):g[b]=f[b]}function h(m,f){var g=Array.isArray(f),b=g&&[]||{};return g?(m=m||[],b=b.concat(m),f.forEach(w.bind(null,m,b))):(m&&typeof m=="object"&&Object.keys(m).forEach(S.bind(null,m,b)),Object.keys(f).forEach(y.bind(null,m,f,b))),b}lt.deepMerge=h,lt.objectGetPath=function(f,g){for(var b=g.split("/").slice(1),_;typeof(_=b.shift())=="string";){var x=decodeURIComponent(_.replace(/~0/,"~").replace(/~1/g,"/"));if(!(x in f))return;f=f[x]}return f};function c(m){return"/"+encodeURIComponent(m).replace(/~/g,"%7E")}lt.encodePath=function(f){return f.map(c).join("")},lt.getDecimalPlaces=function(f){var g=0;if(isNaN(f))return g;typeof f!="number"&&(f=Number(f));var b=f.toString().split("e");if(b.length===2){if(b[1][0]!=="-")return g;g=Number(b[1].slice(1))}var _=b[0].split(".");return _.length===2&&(g+=_[1].length),g},lt.isSchema=function(f){return typeof f=="object"&&f||typeof f=="boolean"};var p=lt.resolveUrl=function(f,g){const b=new URL(g,new URL(f,"resolve://"));if(b.protocol==="resolve:"){const{pathname:_,search:x,hash:C}=b;return _+x+C}return b.toString()};return lt}var nl,Lh;function TR(){if(Lh)return nl;Lh=1;var e=yn(),r=e.ValidatorResult,n=e.SchemaError,o={};o.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var a=o.validators={};a.type=function(h,c,p,m){if(h===void 0)return null;var f=new r(h,c,p,m),g=Array.isArray(c.type)?c.type:[c.type];if(!g.some(this.testType.bind(this,h,c,p,m))){var b=g.map(function(_){if(_){var x=_.$id||_.id;return x?"<"+x+">":_+""}});f.addError({name:"type",argument:b,message:"is not of a type(s) "+b})}return f};function u(y,h,c,p,m){var f=h.throwError,g=h.throwAll;h.throwError=!1,h.throwAll=!1;var b=this.validateSchema(y,m,h,c);return h.throwError=f,h.throwAll=g,!b.valid&&p instanceof Function&&p(b),b.valid}a.anyOf=function(h,c,p,m){if(h===void 0)return null;var f=new r(h,c,p,m),g=new r(h,c,p,m);if(!Array.isArray(c.anyOf))throw new n("anyOf must be an array");if(!c.anyOf.some(u.bind(this,h,p,m,function(_){g.importErrors(_)}))){var b=c.anyOf.map(function(_,x){var C=_.$id||_.id;return C?"<"+C+">":_.title&&JSON.stringify(_.title)||_.$ref&&"<"+_.$ref+">"||"[subschema "+x+"]"});p.nestedErrors&&f.importErrors(g),f.addError({name:"anyOf",argument:b,message:"is not any of "+b.join(",")})}return f},a.allOf=function(h,c,p,m){if(h===void 0)return null;if(!Array.isArray(c.allOf))throw new n("allOf must be an array");var f=new r(h,c,p,m),g=this;return c.allOf.forEach(function(b,_){var x=g.validateSchema(h,b,p,m);if(!x.valid){var C=b.$id||b.id,T=C||b.title&&JSON.stringify(b.title)||b.$ref&&"<"+b.$ref+">"||"[subschema "+_+"]";f.addError({name:"allOf",argument:{id:T,length:x.errors.length,valid:x},message:"does not match allOf schema "+T+" with "+x.errors.length+" error[s]:"}),f.importErrors(x)}}),f},a.oneOf=function(h,c,p,m){if(h===void 0)return null;if(!Array.isArray(c.oneOf))throw new n("oneOf must be an array");var f=new r(h,c,p,m),g=new r(h,c,p,m),b=c.oneOf.filter(u.bind(this,h,p,m,function(x){g.importErrors(x)})).length,_=c.oneOf.map(function(x,C){var T=x.$id||x.id;return T||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+C+"]"});return b!==1&&(p.nestedErrors&&f.importErrors(g),f.addError({name:"oneOf",argument:_,message:"is not exactly one from "+_.join(",")})),f},a.if=function(h,c,p,m){if(h===void 0)return null;if(!e.isSchema(c.if))throw new Error('Expected "if" keyword to be a schema');var f=u.call(this,h,p,m,null,c.if),g=new r(h,c,p,m),b;if(f){if(c.then===void 0)return;if(!e.isSchema(c.then))throw new Error('Expected "then" keyword to be a schema');b=this.validateSchema(h,c.then,p,m.makeChild(c.then)),g.importErrors(b)}else{if(c.else===void 0)return;if(!e.isSchema(c.else))throw new Error('Expected "else" keyword to be a schema');b=this.validateSchema(h,c.else,p,m.makeChild(c.else)),g.importErrors(b)}return g};function l(y,h){if(Object.hasOwnProperty.call(y,h))return y[h];if(h in y){for(;y=Object.getPrototypeOf(y);)if(Object.propertyIsEnumerable.call(y,h))return y[h]}}a.propertyNames=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m),g=c.propertyNames!==void 0?c.propertyNames:{};if(!e.isSchema(g))throw new n('Expected "propertyNames" to be a schema (object or boolean)');for(var b in h)if(l(h,b)!==void 0){var _=this.validateSchema(b,g,p,m.makeChild(g));f.importErrors(_)}return f}},a.properties=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m),g=c.properties||{};for(var b in g){var _=g[b];if(_!==void 0){if(_===null)throw new n('Unexpected null, expected schema in "properties"');typeof p.preValidateProperty=="function"&&p.preValidateProperty(h,b,_,p,m);var x=l(h,b),C=this.validateSchema(x,_,p,m.makeChild(_,b));C.instance!==f.instance[b]&&(f.instance[b]=C.instance),f.importErrors(C)}}return f}};function d(y,h,c,p,m,f){if(this.types.object(y)&&!(h.properties&&h.properties[m]!==void 0))if(h.additionalProperties===!1)f.addError({name:"additionalProperties",argument:m,message:"is not allowed to have the additional property "+JSON.stringify(m)});else{var g=h.additionalProperties||{};typeof c.preValidateProperty=="function"&&c.preValidateProperty(y,m,g,c,p);var b=this.validateSchema(y[m],g,c,p.makeChild(g,m));b.instance!==f.instance[m]&&(f.instance[m]=b.instance),f.importErrors(b)}}a.patternProperties=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m),g=c.patternProperties||{};for(var b in h){var _=!0;for(var x in g){var C=g[x];if(C!==void 0){if(C===null)throw new n('Unexpected null, expected schema in "patternProperties"');try{var T=new RegExp(x,"u")}catch{T=new RegExp(x)}if(T.test(b)){_=!1,typeof p.preValidateProperty=="function"&&p.preValidateProperty(h,b,C,p,m);var M=this.validateSchema(h[b],C,p,m.makeChild(C,b));M.instance!==f.instance[b]&&(f.instance[b]=M.instance),f.importErrors(M)}}}_&&d.call(this,h,c,p,m,b,f)}return f}},a.additionalProperties=function(h,c,p,m){if(this.types.object(h)){if(c.patternProperties)return null;var f=new r(h,c,p,m);for(var g in h)d.call(this,h,c,p,m,g,f);return f}},a.minProperties=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m),g=Object.keys(h);return g.length>=c.minProperties||f.addError({name:"minProperties",argument:c.minProperties,message:"does not meet minimum property length of "+c.minProperties}),f}},a.maxProperties=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m),g=Object.keys(h);return g.length<=c.maxProperties||f.addError({name:"maxProperties",argument:c.maxProperties,message:"does not meet maximum property length of "+c.maxProperties}),f}},a.items=function(h,c,p,m){var f=this;if(this.types.array(h)&&c.items!==void 0){var g=new r(h,c,p,m);return h.every(function(b,_){if(Array.isArray(c.items))var x=c.items[_]===void 0?c.additionalItems:c.items[_];else var x=c.items;if(x===void 0)return!0;if(x===!1)return g.addError({name:"items",message:"additionalItems not permitted"}),!1;var C=f.validateSchema(b,x,p,m.makeChild(x,_));return C.instance!==g.instance[_]&&(g.instance[_]=C.instance),g.importErrors(C),!0}),g}},a.contains=function(h,c,p,m){var f=this;if(this.types.array(h)&&c.contains!==void 0){if(!e.isSchema(c.contains))throw new Error('Expected "contains" keyword to be a schema');var g=new r(h,c,p,m),b=h.some(function(_,x){var C=f.validateSchema(_,c.contains,p,m.makeChild(c.contains,x));return C.errors.length===0});return b===!1&&g.addError({name:"contains",argument:c.contains,message:"must contain an item matching given schema"}),g}},a.minimum=function(h,c,p,m){if(this.types.number(h)){var f=new r(h,c,p,m);return c.exclusiveMinimum&&c.exclusiveMinimum===!0?h>c.minimum||f.addError({name:"minimum",argument:c.minimum,message:"must be greater than "+c.minimum}):h>=c.minimum||f.addError({name:"minimum",argument:c.minimum,message:"must be greater than or equal to "+c.minimum}),f}},a.maximum=function(h,c,p,m){if(this.types.number(h)){var f=new r(h,c,p,m);return c.exclusiveMaximum&&c.exclusiveMaximum===!0?h<c.maximum||f.addError({name:"maximum",argument:c.maximum,message:"must be less than "+c.maximum}):h<=c.maximum||f.addError({name:"maximum",argument:c.maximum,message:"must be less than or equal to "+c.maximum}),f}},a.exclusiveMinimum=function(h,c,p,m){if(typeof c.exclusiveMinimum!="boolean"&&this.types.number(h)){var f=new r(h,c,p,m),g=h>c.exclusiveMinimum;return g||f.addError({name:"exclusiveMinimum",argument:c.exclusiveMinimum,message:"must be strictly greater than "+c.exclusiveMinimum}),f}},a.exclusiveMaximum=function(h,c,p,m){if(typeof c.exclusiveMaximum!="boolean"&&this.types.number(h)){var f=new r(h,c,p,m),g=h<c.exclusiveMaximum;return g||f.addError({name:"exclusiveMaximum",argument:c.exclusiveMaximum,message:"must be strictly less than "+c.exclusiveMaximum}),f}};var w=function(h,c,p,m,f,g){if(this.types.number(h)){var b=c[f];if(b==0)throw new n(f+" cannot be zero");var _=new r(h,c,p,m),x=e.getDecimalPlaces(h),C=e.getDecimalPlaces(b),T=Math.max(x,C),M=Math.pow(10,T);return Math.round(h*M)%Math.round(b*M)!==0&&_.addError({name:f,argument:b,message:g+JSON.stringify(b)}),_}};a.multipleOf=function(h,c,p,m){return w.call(this,h,c,p,m,"multipleOf","is not a multiple of (divisible by) ")},a.divisibleBy=function(h,c,p,m){return w.call(this,h,c,p,m,"divisibleBy","is not divisible by (multiple of) ")},a.required=function(h,c,p,m){var f=new r(h,c,p,m);return h===void 0&&c.required===!0?f.addError({name:"required",message:"is required"}):this.types.object(h)&&Array.isArray(c.required)&&c.required.forEach(function(g){l(h,g)===void 0&&f.addError({name:"required",argument:g,message:"requires property "+JSON.stringify(g)})}),f},a.pattern=function(h,c,p,m){if(this.types.string(h)){var f=new r(h,c,p,m),g=c.pattern;try{var b=new RegExp(g,"u")}catch{b=new RegExp(g)}return h.match(b)||f.addError({name:"pattern",argument:c.pattern,message:"does not match pattern "+JSON.stringify(c.pattern.toString())}),f}},a.format=function(h,c,p,m){if(h!==void 0){var f=new r(h,c,p,m);return!f.disableFormat&&!e.isFormat(h,c.format,this)&&f.addError({name:"format",argument:c.format,message:"does not conform to the "+JSON.stringify(c.format)+" format"}),f}},a.minLength=function(h,c,p,m){if(this.types.string(h)){var f=new r(h,c,p,m),g=h.match(/[\uDC00-\uDFFF]/g),b=h.length-(g?g.length:0);return b>=c.minLength||f.addError({name:"minLength",argument:c.minLength,message:"does not meet minimum length of "+c.minLength}),f}},a.maxLength=function(h,c,p,m){if(this.types.string(h)){var f=new r(h,c,p,m),g=h.match(/[\uDC00-\uDFFF]/g),b=h.length-(g?g.length:0);return b<=c.maxLength||f.addError({name:"maxLength",argument:c.maxLength,message:"does not meet maximum length of "+c.maxLength}),f}},a.minItems=function(h,c,p,m){if(this.types.array(h)){var f=new r(h,c,p,m);return h.length>=c.minItems||f.addError({name:"minItems",argument:c.minItems,message:"does not meet minimum length of "+c.minItems}),f}},a.maxItems=function(h,c,p,m){if(this.types.array(h)){var f=new r(h,c,p,m);return h.length<=c.maxItems||f.addError({name:"maxItems",argument:c.maxItems,message:"does not meet maximum length of "+c.maxItems}),f}};function S(y,h,c){var p,m=c.length;for(p=h+1,m;p<m;p++)if(e.deepCompareStrict(y,c[p]))return!1;return!0}return a.uniqueItems=function(h,c,p,m){if(c.uniqueItems===!0&&this.types.array(h)){var f=new r(h,c,p,m);return h.every(S)||f.addError({name:"uniqueItems",message:"contains duplicate item"}),f}},a.dependencies=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m);for(var g in c.dependencies)if(h[g]!==void 0){var b=c.dependencies[g],_=m.makeChild(b,g);if(typeof b=="string"&&(b=[b]),Array.isArray(b))b.forEach(function(C){h[C]===void 0&&f.addError({name:"dependencies",argument:_.propertyPath,message:"property "+C+" not found, required by "+_.propertyPath})});else{var x=this.validateSchema(h,b,p,_);f.instance!==x.instance&&(f.instance=x.instance),x&&x.errors.length&&(f.addError({name:"dependencies",argument:_.propertyPath,message:"does not meet dependency required by "+_.propertyPath}),f.importErrors(x))}}return f}},a.enum=function(h,c,p,m){if(h===void 0)return null;if(!Array.isArray(c.enum))throw new n("enum expects an array",c);var f=new r(h,c,p,m);return c.enum.some(e.deepCompareStrict.bind(null,h))||f.addError({name:"enum",argument:c.enum,message:"is not one of enum values: "+c.enum.map(String).join(",")}),f},a.const=function(h,c,p,m){if(h===void 0)return null;var f=new r(h,c,p,m);return e.deepCompareStrict(c.const,h)||f.addError({name:"const",argument:c.const,message:"does not exactly match expected constant: "+c.const}),f},a.not=a.disallow=function(h,c,p,m){var f=this;if(h===void 0)return null;var g=new r(h,c,p,m),b=c.not||c.disallow;return b?(Array.isArray(b)||(b=[b]),b.forEach(function(_){if(f.testType(h,c,p,m,_)){var x=_&&(_.$id||_.id),C=x||_;g.addError({name:"not",argument:C,message:"is of prohibited type "+C})}}),g):null},nl=o,nl}var xa={},Dh;function xl(){if(Dh)return xa;Dh=1;var e=yn();xa.SchemaScanResult=r;function r(n,o){this.id=n,this.ref=o}return xa.scan=function(o,a){function u(y,h){if(!h||typeof h!="object")return;if(h.$ref){let f=e.resolveUrl(y,h.$ref);S[f]=S[f]?S[f]+1:0;return}var c=h.$id||h.id;let p=e.resolveUrl(y,c);var m=c?p:y;if(m){if(m.indexOf("#")<0&&(m+="#"),w[m]){if(!e.deepCompareStrict(w[m],h))throw new Error("Schema <"+m+"> already exists with different definition");return w[m]}w[m]=h,m[m.length-1]=="#"&&(w[m.substring(0,m.length-1)]=h)}l(m+"/items",Array.isArray(h.items)?h.items:[h.items]),l(m+"/extends",Array.isArray(h.extends)?h.extends:[h.extends]),u(m+"/additionalItems",h.additionalItems),d(m+"/properties",h.properties),u(m+"/additionalProperties",h.additionalProperties),d(m+"/definitions",h.definitions),d(m+"/patternProperties",h.patternProperties),d(m+"/dependencies",h.dependencies),l(m+"/disallow",h.disallow),l(m+"/allOf",h.allOf),l(m+"/anyOf",h.anyOf),l(m+"/oneOf",h.oneOf),u(m+"/not",h.not)}function l(y,h){if(Array.isArray(h))for(var c=0;c<h.length;c++)u(y+"/"+c,h[c])}function d(y,h){if(!(!h||typeof h!="object"))for(var c in h)u(y+"/"+c,h[c])}var w={},S={};return u(o,a),new r(w,S)},xa}var il,$h;function CR(){if($h)return il;$h=1;var e=TR(),r=yn(),n=xl().scan,o=r.ValidatorResult,a=r.ValidatorResultError,u=r.SchemaError,l=r.SchemaContext,d="/",w=function h(){this.customFormats=Object.create(h.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(y),this.attributes=Object.create(e.validators)};w.prototype.customFormats={},w.prototype.schemas=null,w.prototype.types=null,w.prototype.attributes=null,w.prototype.unresolvedRefs=null,w.prototype.addSchema=function(c,p){var m=this;if(!c)return null;var f=n(p||d,c),g=p||c.$id||c.id;for(var b in f.id)this.schemas[b]=f.id[b];for(var b in f.ref)this.unresolvedRefs.push(b);return this.unresolvedRefs=this.unresolvedRefs.filter(function(_){return typeof m.schemas[_]>"u"}),this.schemas[g]},w.prototype.addSubSchemaArray=function(c,p){if(Array.isArray(p))for(var m=0;m<p.length;m++)this.addSubSchema(c,p[m])},w.prototype.addSubSchemaObject=function(c,p){if(!(!p||typeof p!="object"))for(var m in p)this.addSubSchema(c,p[m])},w.prototype.setSchemas=function(c){this.schemas=c},w.prototype.getSchema=function(c){return this.schemas[c]},w.prototype.validate=function(c,p,m,f){if(typeof p!="boolean"&&typeof p!="object"||p===null)throw new u("Expected `schema` to be an object or boolean");m||(m={});var g=p.$id||p.id;let b=r.resolveUrl(m.base,g||"");if(!f){f=new l(p,m,[],b,Object.create(this.schemas)),f.schemas[b]||(f.schemas[b]=p);var _=n(b,p);for(var x in _.id){var C=_.id[x];f.schemas[x]=C}}if(m.required&&c===void 0){var T=new o(c,p,m,f);return T.addError("is required, but is undefined"),T}var T=this.validateSchema(c,p,m,f);if(T){if(m.throwAll&&T.errors.length)throw new a(T)}else throw new Error("Result undefined");return T};function S(h){var c=typeof h=="string"?h:h.$ref;return typeof c=="string"?c:!1}w.prototype.validateSchema=function(c,p,m,f){var g=new o(c,p,m,f);if(typeof p=="boolean")p===!0?p={}:p===!1&&(p={type:[]});else if(!p)throw new Error("schema is undefined");if(p.extends)if(Array.isArray(p.extends)){var b={schema:p,ctx:f};p.extends.forEach(this.schemaTraverser.bind(this,b)),p=b.schema,b.schema=null,b.ctx=null,b=null}else p=r.deepMerge(p,this.superResolve(p.extends,f));var _=S(p);if(_){var x=this.resolve(p,_,f),C=new l(x.subschema,m,f.path,x.switchSchema,f.schemas);return this.validateSchema(c,x.subschema,m,C)}var T=m&&m.skipAttributes||[];for(var M in p)if(!e.ignoreProperties[M]&&T.indexOf(M)<0){var H=null,L=this.attributes[M];if(L)H=L.call(this,c,p,m,f);else if(m.allowUnknownAttributes===!1)throw new u("Unsupported attribute: "+M,p);H&&g.importErrors(H)}if(typeof m.rewrite=="function"){var k=m.rewrite.call(this,c,p,m,f);g.instance=k}return g},w.prototype.schemaTraverser=function(c,p){c.schema=r.deepMerge(c.schema,this.superResolve(p,c.ctx))},w.prototype.superResolve=function(c,p){var m=S(c);return m?this.resolve(c,m,p).subschema:c},w.prototype.resolve=function(c,p,m){if(p=m.resolve(p),m.schemas[p])return{subschema:m.schemas[p],switchSchema:p};let g=new URL(p,"thismessage::/").hash;var b=g&&g.length&&p.substr(0,p.length-g.length);if(!b||!m.schemas[b])throw new u("no such schema <"+p+">",c);var _=r.objectGetPath(m.schemas[b],g.substr(1));if(_===void 0)throw new u("no such schema "+g+" located in <"+b+">",c);return{subschema:_,switchSchema:p}},w.prototype.testType=function(c,p,m,f,g){if(g!==void 0){if(g===null)throw new u('Unexpected null in "type" keyword');if(typeof this.types[g]=="function")return this.types[g].call(this,c);if(g&&typeof g=="object"){var b=this.validateSchema(c,g,m,f);return b===void 0||!(b&&b.errors.length)}return!0}};var y=w.prototype.types={};return y.string=function(c){return typeof c=="string"},y.number=function(c){return typeof c=="number"&&isFinite(c)},y.integer=function(c){return typeof c=="number"&&c%1===0},y.boolean=function(c){return typeof c=="boolean"},y.array=function(c){return Array.isArray(c)},y.null=function(c){return c===null},y.date=function(c){return c instanceof Date},y.any=function(c){return!0},y.object=function(c){return c&&typeof c=="object"&&!Array.isArray(c)&&!(c instanceof Date)},il=w,il}var Nh;function PR(){if(Nh)return lr;Nh=1;var e=lr.Validator=CR();return lr.ValidatorResult=yn().ValidatorResult,lr.ValidatorResultError=yn().ValidatorResultError,lr.ValidationError=yn().ValidationError,lr.SchemaError=yn().SchemaError,lr.SchemaScanResult=xl().SchemaScanResult,lr.scan=xl().scan,lr.validate=function(r,n,o){var a=new e;return a.validate(r,n,o)},lr}var RR=PR();const ng=(e,r,n)=>{const o=e instanceof RegExp?kh(e,n):e,a=r instanceof RegExp?kh(r,n):r,u=o!==null&&a!=null&&MR(o,a,n);return u&&{start:u[0],end:u[1],pre:n.slice(0,u[0]),body:n.slice(u[0]+o.length,u[1]),post:n.slice(u[1]+a.length)}},kh=(e,r)=>{const n=r.match(e);return n?n[0]:null},MR=(e,r,n)=>{let o,a,u,l,d,w=n.indexOf(e),S=n.indexOf(r,w+1),y=w;if(w>=0&&S>0){if(e===r)return[w,S];for(o=[],u=n.length;y>=0&&!d;){if(y===w)o.push(y),w=n.indexOf(e,y+1);else if(o.length===1){const h=o.pop();h!==void 0&&(d=[h,S])}else a=o.pop(),a!==void 0&&a<u&&(u=a,l=S),S=n.indexOf(r,y+1);y=w<S&&w>=0?w:S}o.length&&l!==void 0&&(d=[u,l])}return d},ig="\0SLASH"+Math.random()+"\0",og="\0OPEN"+Math.random()+"\0",ec="\0CLOSE"+Math.random()+"\0",ag="\0COMMA"+Math.random()+"\0",sg="\0PERIOD"+Math.random()+"\0",IR=new RegExp(ig,"g"),FR=new RegExp(og,"g"),LR=new RegExp(ec,"g"),DR=new RegExp(ag,"g"),$R=new RegExp(sg,"g"),NR=/\\\\/g,kR=/\\{/g,jR=/\\}/g,WR=/\\,/g,UR=/\\./g;function ol(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function BR(e){return e.replace(NR,ig).replace(kR,og).replace(jR,ec).replace(WR,ag).replace(UR,sg)}function zR(e){return e.replace(IR,"\\").replace(FR,"{").replace(LR,"}").replace(DR,",").replace($R,".")}function ug(e){if(!e)return[""];const r=[],n=ng("{","}",e);if(!n)return e.split(",");const{pre:o,body:a,post:u}=n,l=o.split(",");l[l.length-1]+="{"+a+"}";const d=ug(u);return u.length&&(l[l.length-1]+=d.shift(),l.push.apply(l,d)),r.push.apply(r,l),r}function HR(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Ki(BR(e),!0).map(zR)):[]}function qR(e){return"{"+e+"}"}function ZR(e){return/^-?0\d/.test(e)}function GR(e,r){return e<=r}function KR(e,r){return e>=r}function Ki(e,r){const n=[],o=ng("{","}",e);if(!o)return[e];const a=o.pre,u=o.post.length?Ki(o.post,!1):[""];if(/\$$/.test(o.pre))for(let l=0;l<u.length;l++){const d=a+"{"+o.body+"}"+u[l];n.push(d)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),w=l||d,S=o.body.indexOf(",")>=0;if(!w&&!S)return o.post.match(/,(?!,).*\}/)?(e=o.pre+"{"+o.body+ec+o.post,Ki(e)):[e];let y;if(w)y=o.body.split(/\.\./);else if(y=ug(o.body),y.length===1&&y[0]!==void 0&&(y=Ki(y[0],!1).map(qR),y.length===1))return u.map(c=>o.pre+y[0]+c);let h;if(w&&y[0]!==void 0&&y[1]!==void 0){const c=ol(y[0]),p=ol(y[1]),m=Math.max(y[0].length,y[1].length);let f=y.length===3&&y[2]!==void 0?Math.abs(ol(y[2])):1,g=GR;p<c&&(f*=-1,g=KR);const _=y.some(ZR);h=[];for(let x=c;g(x,p);x+=f){let C;if(d)C=String.fromCharCode(x),C==="\\"&&(C="");else if(C=String(x),_){const T=m-C.length;if(T>0){const M=new Array(T+1).join("0");x<0?C="-"+M+C.slice(1):C=M+C}}h.push(C)}}else{h=[];for(let c=0;c<y.length;c++)h.push.apply(h,Ki(y[c],!1))}for(let c=0;c<h.length;c++)for(let p=0;p<u.length;p++){const m=a+h[c]+u[p];(!r||w||m)&&n.push(m)}}return n}const VR=1024*64,Wa=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>VR)throw new TypeError("pattern is too long")},YR={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},qi=e=>e.replace(/[[\]\\-]/g,"\\$&"),XR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jh=e=>e.join(""),JR=(e,r)=>{const n=r;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");const o=[],a=[];let u=n+1,l=!1,d=!1,w=!1,S=!1,y=n,h="";e:for(;u<e.length;){const f=e.charAt(u);if((f==="!"||f==="^")&&u===n+1){S=!0,u++;continue}if(f==="]"&&l&&!w){y=u+1;break}if(l=!0,f==="\\"&&!w){w=!0,u++;continue}if(f==="["&&!w){for(const[g,[b,_,x]]of Object.entries(YR))if(e.startsWith(g,u)){if(h)return["$.",!1,e.length-n,!0];u+=g.length,x?a.push(b):o.push(b),d=d||_;continue e}}if(w=!1,h){f>h?o.push(qi(h)+"-"+qi(f)):f===h&&o.push(qi(f)),h="",u++;continue}if(e.startsWith("-]",u+1)){o.push(qi(f+"-")),u+=2;continue}if(e.startsWith("-",u+1)){h=f,u+=2;continue}o.push(qi(f)),u++}if(y<u)return["",!1,0,!1];if(!o.length&&!a.length)return["$.",!1,e.length-n,!0];if(a.length===0&&o.length===1&&/^\\?.$/.test(o[0])&&!S){const f=o[0].length===2?o[0].slice(-1):o[0];return[XR(f),!1,y-n,!1]}const c="["+(S?"^":"")+jh(o)+"]",p="["+(S?"":"^")+jh(a)+"]";return[o.length&&a.length?"("+c+"|"+p+")":o.length?c:p,d,y-n,!0]},Vi=(e,{windowsPathsNoEscape:r=!1}={})=>r?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),QR=new Set(["!","?","+","*","@"]),Wh=e=>QR.has(e),eM="(?!(?:^|/)\\.\\.?(?:$|/))",Oa="(?!\\.)",tM=new Set(["[","."]),rM=new Set(["..","."]),nM=new Set("().*{}+?[]^$\\!"),iM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tc="[^/]",Uh=tc+"*?",Bh=tc+"+?";var tt,ot,Rr,je,Ke,Xr,wn,Jr,cr,bn,ao,Tn,lg,tn,Ia,Ol,cg;const bt=class bt{constructor(r,n,o={}){Ot(this,Tn);et(this,"type");Ot(this,tt);Ot(this,ot);Ot(this,Rr,!1);Ot(this,je,[]);Ot(this,Ke);Ot(this,Xr);Ot(this,wn);Ot(this,Jr,!1);Ot(this,cr);Ot(this,bn);Ot(this,ao,!1);this.type=r,r&&Ge(this,ot,!0),Ge(this,Ke,n),Ge(this,tt,re(this,Ke)?re(re(this,Ke),tt):this),Ge(this,cr,re(this,tt)===this?o:re(re(this,tt),cr)),Ge(this,wn,re(this,tt)===this?[]:re(re(this,tt),wn)),r==="!"&&!re(re(this,tt),Jr)&&re(this,wn).push(this),Ge(this,Xr,re(this,Ke)?re(re(this,Ke),je).length:0)}get hasMagic(){if(re(this,ot)!==void 0)return re(this,ot);for(const r of re(this,je))if(typeof r!="string"&&(r.type||r.hasMagic))return Ge(this,ot,!0);return re(this,ot)}toString(){return re(this,bn)!==void 0?re(this,bn):this.type?Ge(this,bn,this.type+"("+re(this,je).map(r=>String(r)).join("|")+")"):Ge(this,bn,re(this,je).map(r=>String(r)).join(""))}push(...r){for(const n of r)if(n!==""){if(typeof n!="string"&&!(n instanceof bt&&re(n,Ke)===this))throw new Error("invalid part: "+n);re(this,je).push(n)}}toJSON(){var n;const r=this.type===null?re(this,je).slice().map(o=>typeof o=="string"?o:o.toJSON()):[this.type,...re(this,je).map(o=>o.toJSON())];return this.isStart()&&!this.type&&r.unshift([]),this.isEnd()&&(this===re(this,tt)||re(re(this,tt),Jr)&&((n=re(this,Ke))==null?void 0:n.type)==="!")&&r.push({}),r}isStart(){var n;if(re(this,tt)===this)return!0;if(!((n=re(this,Ke))!=null&&n.isStart()))return!1;if(re(this,Xr)===0)return!0;const r=re(this,Ke);for(let o=0;o<re(this,Xr);o++){const a=re(r,je)[o];if(!(a instanceof bt&&a.type==="!"))return!1}return!0}isEnd(){var n,o,a;if(re(this,tt)===this||((n=re(this,Ke))==null?void 0:n.type)==="!")return!0;if(!((o=re(this,Ke))!=null&&o.isEnd()))return!1;if(!this.type)return(a=re(this,Ke))==null?void 0:a.isEnd();const r=re(this,Ke)?re(re(this,Ke),je).length:0;return re(this,Xr)===r-1}copyIn(r){typeof r=="string"?this.push(r):this.push(r.clone(this))}clone(r){const n=new bt(this.type,r);for(const o of re(this,je))n.copyIn(o);return n}static fromGlob(r,n={}){var a;const o=new bt(null,void 0,n);return Zr(a=bt,tn,Ia).call(a,r,o,0,n),o}toMMPattern(){if(this!==re(this,tt))return re(this,tt).toMMPattern();const r=this.toString(),[n,o,a,u]=this.toRegExpSource();if(!(a||re(this,ot)||re(this,cr).nocase&&!re(this,cr).nocaseMagicOnly&&r.toUpperCase()!==r.toLowerCase()))return o;const d=(re(this,cr).nocase?"i":"")+(u?"u":"");return Object.assign(new RegExp(`^${n}$`,d),{_src:n,_glob:r})}get options(){return re(this,cr)}toRegExpSource(r){var w;const n=r??!!re(this,cr).dot;if(re(this,tt)===this&&Zr(this,Tn,lg).call(this),!this.type){const S=this.isStart()&&this.isEnd(),y=re(this,je).map(m=>{var x;const[f,g,b,_]=typeof m=="string"?Zr(x=bt,tn,cg).call(x,m,re(this,ot),S):m.toRegExpSource(r);return Ge(this,ot,re(this,ot)||b),Ge(this,Rr,re(this,Rr)||_),f}).join("");let h="";if(this.isStart()&&typeof re(this,je)[0]=="string"&&!(re(this,je).length===1&&rM.has(re(this,je)[0]))){const f=tM,g=n&&f.has(y.charAt(0))||y.startsWith("\\.")&&f.has(y.charAt(2))||y.startsWith("\\.\\.")&&f.has(y.charAt(4)),b=!n&&!r&&f.has(y.charAt(0));h=g?eM:b?Oa:""}let c="";return this.isEnd()&&re(re(this,tt),Jr)&&((w=re(this,Ke))==null?void 0:w.type)==="!"&&(c="(?:$|\\/)"),[h+y+c,Vi(y),Ge(this,ot,!!re(this,ot)),re(this,Rr)]}const o=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let u=Zr(this,Tn,Ol).call(this,n);if(this.isStart()&&this.isEnd()&&!u&&this.type!=="!"){const S=this.toString();return Ge(this,je,[S]),this.type=null,Ge(this,ot,void 0),[S,Vi(this.toString()),!1,!1]}let l=!o||r||n||!Oa?"":Zr(this,Tn,Ol).call(this,!0);l===u&&(l=""),l&&(u=`(?:${u})(?:${l})*?`);let d="";if(this.type==="!"&&re(this,ao))d=(this.isStart()&&!n?Oa:"")+Bh;else{const S=this.type==="!"?"))"+(this.isStart()&&!n&&!r?Oa:"")+Uh+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;d=a+u+S}return[d,Vi(u),Ge(this,ot,!!re(this,ot)),re(this,Rr)]}};tt=new WeakMap,ot=new WeakMap,Rr=new WeakMap,je=new WeakMap,Ke=new WeakMap,Xr=new WeakMap,wn=new WeakMap,Jr=new WeakMap,cr=new WeakMap,bn=new WeakMap,ao=new WeakMap,Tn=new WeakSet,lg=function(){if(this!==re(this,tt))throw new Error("should only call on root");if(re(this,Jr))return this;this.toString(),Ge(this,Jr,!0);let r;for(;r=re(this,wn).pop();){if(r.type!=="!")continue;let n=r,o=re(n,Ke);for(;o;){for(let a=re(n,Xr)+1;!o.type&&a<re(o,je).length;a++)for(const u of re(r,je)){if(typeof u=="string")throw new Error("string part in extglob AST??");u.copyIn(re(o,je)[a])}n=o,o=re(n,Ke)}}return this},tn=new WeakSet,Ia=function(r,n,o,a){var p,m;let u=!1,l=!1,d=-1,w=!1;if(n.type===null){let f=o,g="";for(;f<r.length;){const b=r.charAt(f++);if(u||b==="\\"){u=!u,g+=b;continue}if(l){f===d+1?(b==="^"||b==="!")&&(w=!0):b==="]"&&!(f===d+2&&w)&&(l=!1),g+=b;continue}else if(b==="["){l=!0,d=f,w=!1,g+=b;continue}if(!a.noext&&Wh(b)&&r.charAt(f)==="("){n.push(g),g="";const _=new bt(b,n);f=Zr(p=bt,tn,Ia).call(p,r,_,f,a),n.push(_);continue}g+=b}return n.push(g),f}let S=o+1,y=new bt(null,n);const h=[];let c="";for(;S<r.length;){const f=r.charAt(S++);if(u||f==="\\"){u=!u,c+=f;continue}if(l){S===d+1?(f==="^"||f==="!")&&(w=!0):f==="]"&&!(S===d+2&&w)&&(l=!1),c+=f;continue}else if(f==="["){l=!0,d=S,w=!1,c+=f;continue}if(Wh(f)&&r.charAt(S)==="("){y.push(c),c="";const g=new bt(f,y);y.push(g),S=Zr(m=bt,tn,Ia).call(m,r,g,S,a);continue}if(f==="|"){y.push(c),c="",h.push(y),y=new bt(null,n);continue}if(f===")")return c===""&&re(n,je).length===0&&Ge(n,ao,!0),y.push(c),c="",n.push(...h,y),S;c+=f}return n.type=null,Ge(n,ot,void 0),Ge(n,je,[r.substring(o-1)]),S},Ol=function(r){return re(this,je).map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");const[o,a,u,l]=n.toRegExpSource(r);return Ge(this,Rr,re(this,Rr)||l),o}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")},cg=function(r,n,o=!1){let a=!1,u="",l=!1;for(let d=0;d<r.length;d++){const w=r.charAt(d);if(a){a=!1,u+=(nM.has(w)?"\\":"")+w;continue}if(w==="\\"){d===r.length-1?u+="\\\\":a=!0;continue}if(w==="["){const[S,y,h,c]=JR(r,d);if(h){u+=S,l=l||y,d+=h-1,n=n||c;continue}}if(w==="*"){o&&r==="*"?u+=Bh:u+=Uh,n=!0;continue}if(w==="?"){u+=tc,n=!0;continue}u+=iM(w)}return[u,Vi(r),!!n,l]},Ot(bt,tn);let Ua=bt;const oM=(e,{windowsPathsNoEscape:r=!1}={})=>r?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),mt=(e,r,n={})=>(Wa(r),!n.nocomment&&r.charAt(0)==="#"?!1:new Qa(r,n).match(e)),aM=/^\*+([^+@!?\*\[\(]*)$/,sM=e=>r=>!r.startsWith(".")&&r.endsWith(e),uM=e=>r=>r.endsWith(e),lM=e=>(e=e.toLowerCase(),r=>!r.startsWith(".")&&r.toLowerCase().endsWith(e)),cM=e=>(e=e.toLowerCase(),r=>r.toLowerCase().endsWith(e)),fM=/^\*+\.\*+$/,dM=e=>!e.startsWith(".")&&e.includes("."),pM=e=>e!=="."&&e!==".."&&e.includes("."),hM=/^\.\*+$/,vM=e=>e!=="."&&e!==".."&&e.startsWith("."),mM=/^\*+$/,gM=e=>e.length!==0&&!e.startsWith("."),yM=e=>e.length!==0&&e!=="."&&e!=="..",wM=/^\?+([^+@!?\*\[\(]*)?$/,bM=([e,r=""])=>{const n=fg([e]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},SM=([e,r=""])=>{const n=dg([e]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},EM=([e,r=""])=>{const n=dg([e]);return r?o=>n(o)&&o.endsWith(r):n},_M=([e,r=""])=>{const n=fg([e]);return r?o=>n(o)&&o.endsWith(r):n},fg=([e])=>{const r=e.length;return n=>n.length===r&&!n.startsWith(".")},dg=([e])=>{const r=e.length;return n=>n.length===r&&n!=="."&&n!==".."},pg=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",zh={win32:{sep:"\\"},posix:{sep:"/"}},xM=pg==="win32"?zh.win32.sep:zh.posix.sep;mt.sep=xM;const Gt=Symbol("globstar **");mt.GLOBSTAR=Gt;const OM="[^/]",AM=OM+"*?",TM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",CM="(?:(?!(?:\\/|^)\\.).)*?",PM=(e,r={})=>n=>mt(n,e,r);mt.filter=PM;const Zt=(e,r={})=>Object.assign({},e,r),RM=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return mt;const r=mt;return Object.assign((o,a,u={})=>r(o,a,Zt(e,u)),{Minimatch:class extends r.Minimatch{constructor(a,u={}){super(a,Zt(e,u))}static defaults(a){return r.defaults(Zt(e,a)).Minimatch}},AST:class extends r.AST{constructor(a,u,l={}){super(a,u,Zt(e,l))}static fromGlob(a,u={}){return r.AST.fromGlob(a,Zt(e,u))}},unescape:(o,a={})=>r.unescape(o,Zt(e,a)),escape:(o,a={})=>r.escape(o,Zt(e,a)),filter:(o,a={})=>r.filter(o,Zt(e,a)),defaults:o=>r.defaults(Zt(e,o)),makeRe:(o,a={})=>r.makeRe(o,Zt(e,a)),braceExpand:(o,a={})=>r.braceExpand(o,Zt(e,a)),match:(o,a,u={})=>r.match(o,a,Zt(e,u)),sep:r.sep,GLOBSTAR:Gt})};mt.defaults=RM;const hg=(e,r={})=>(Wa(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:HR(e));mt.braceExpand=hg;const MM=(e,r={})=>new Qa(e,r).makeRe();mt.makeRe=MM;const IM=(e,r,n={})=>{const o=new Qa(r,n);return e=e.filter(a=>o.match(a)),o.options.nonull&&!e.length&&e.push(r),e};mt.match=IM;const Hh=/[?*]|[+@!]\(.*?\)|\[|\]/,FM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Qa{constructor(r,n={}){et(this,"options");et(this,"set");et(this,"pattern");et(this,"windowsPathsNoEscape");et(this,"nonegate");et(this,"negate");et(this,"comment");et(this,"empty");et(this,"preserveMultipleSlashes");et(this,"partial");et(this,"globSet");et(this,"globParts");et(this,"nocase");et(this,"isWindows");et(this,"platform");et(this,"windowsNoMagicRoot");et(this,"regexp");Wa(r),n=n||{},this.options=n,this.pattern=r,this.platform=n.platform||pg,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const r of this.set)for(const n of r)if(typeof n!="string")return!0;return!1}debug(...r){}make(){const r=this.pattern,n=this.options;if(!n.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...u)=>console.error(...u)),this.debug(this.pattern,this.globSet);const o=this.globSet.map(u=>this.slashSplit(u));this.globParts=this.preprocess(o),this.debug(this.pattern,this.globParts);let a=this.globParts.map((u,l,d)=>{if(this.isWindows&&this.windowsNoMagicRoot){const w=u[0]===""&&u[1]===""&&(u[2]==="?"||!Hh.test(u[2]))&&!Hh.test(u[3]),S=/^[a-z]:/i.test(u[0]);if(w)return[...u.slice(0,4),...u.slice(4).map(y=>this.parse(y))];if(S)return[u[0],...u.slice(1).map(y=>this.parse(y))]}return u.map(w=>this.parse(w))});if(this.debug(this.pattern,a),this.set=a.filter(u=>u.indexOf(!1)===-1),this.isWindows)for(let u=0;u<this.set.length;u++){const l=this.set[u];l[0]===""&&l[1]===""&&this.globParts[u][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(r){if(this.options.noglobstar)for(let o=0;o<r.length;o++)for(let a=0;a<r[o].length;a++)r[o][a]==="**"&&(r[o][a]="*");const{optimizationLevel:n=1}=this.options;return n>=2?(r=this.firstPhasePreProcess(r),r=this.secondPhasePreProcess(r)):n>=1?r=this.levelOneOptimize(r):r=this.adjascentGlobstarOptimize(r),r}adjascentGlobstarOptimize(r){return r.map(n=>{let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let a=o;for(;n[a+1]==="**";)a++;a!==o&&n.splice(o,a-o)}return n})}levelOneOptimize(r){return r.map(n=>(n=n.reduce((o,a)=>{const u=o[o.length-1];return a==="**"&&u==="**"?o:a===".."&&u&&u!==".."&&u!=="."&&u!=="**"?(o.pop(),o):(o.push(a),o)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(r){Array.isArray(r)||(r=this.slashSplit(r));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let a=1;a<r.length-1;a++){const u=r[a];a===1&&u===""&&r[0]===""||(u==="."||u==="")&&(n=!0,r.splice(a,1),a--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(n=!0,r.pop())}let o=0;for(;(o=r.indexOf("..",o+1))!==-1;){const a=r[o-1];a&&a!=="."&&a!==".."&&a!=="**"&&(n=!0,r.splice(o-1,2),o-=2)}}while(n);return r.length===0?[""]:r}firstPhasePreProcess(r){let n=!1;do{n=!1;for(let o of r){let a=-1;for(;(a=o.indexOf("**",a+1))!==-1;){let l=a;for(;o[l+1]==="**";)l++;l>a&&o.splice(a+1,l-a);let d=o[a+1];const w=o[a+2],S=o[a+3];if(d!==".."||!w||w==="."||w===".."||!S||S==="."||S==="..")continue;n=!0,o.splice(a,1);const y=o.slice(0);y[a]="**",r.push(y),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<o.length-1;l++){const d=o[l];l===1&&d===""&&o[0]===""||(d==="."||d==="")&&(n=!0,o.splice(l,1),l--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(n=!0,o.pop())}let u=0;for(;(u=o.indexOf("..",u+1))!==-1;){const l=o[u-1];if(l&&l!=="."&&l!==".."&&l!=="**"){n=!0;const w=u===1&&o[u+1]==="**"?["."]:[];o.splice(u-1,2,...w),o.length===0&&o.push(""),u-=2}}}}while(n);return r}secondPhasePreProcess(r){for(let n=0;n<r.length-1;n++)for(let o=n+1;o<r.length;o++){const a=this.partsMatch(r[n],r[o],!this.preserveMultipleSlashes);if(a){r[n]=[],r[o]=a;break}}return r.filter(n=>n.length)}partsMatch(r,n,o=!1){let a=0,u=0,l=[],d="";for(;a<r.length&&u<n.length;)if(r[a]===n[u])l.push(d==="b"?n[u]:r[a]),a++,u++;else if(o&&r[a]==="**"&&n[u]===r[a+1])l.push(r[a]),a++;else if(o&&n[u]==="**"&&r[a]===n[u+1])l.push(n[u]),u++;else if(r[a]==="*"&&n[u]&&(this.options.dot||!n[u].startsWith("."))&&n[u]!=="**"){if(d==="b")return!1;d="a",l.push(r[a]),a++,u++}else if(n[u]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(d==="a")return!1;d="b",l.push(n[u]),a++,u++}else return!1;return r.length===n.length&&l}parseNegate(){if(this.nonegate)return;const r=this.pattern;let n=!1,o=0;for(let a=0;a<r.length&&r.charAt(a)==="!";a++)n=!n,o++;o&&(this.pattern=r.slice(o)),this.negate=n}matchOne(r,n,o=!1){const a=this.options;if(this.isWindows){const f=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),g=!f&&r[0]===""&&r[1]===""&&r[2]==="?"&&/^[a-z]:$/i.test(r[3]),b=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),_=!b&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]),x=g?3:f?0:void 0,C=_?3:b?0:void 0;if(typeof x=="number"&&typeof C=="number"){const[T,M]=[r[x],n[C]];T.toLowerCase()===M.toLowerCase()&&(n[C]=T,C>x?n=n.slice(C):x>C&&(r=r.slice(x)))}}const{optimizationLevel:u=1}=this.options;u>=2&&(r=this.levelTwoFileOptimize(r)),this.debug("matchOne",this,{file:r,pattern:n}),this.debug("matchOne",r.length,n.length);for(var l=0,d=0,w=r.length,S=n.length;l<w&&d<S;l++,d++){this.debug("matchOne loop");var y=n[d],h=r[l];if(this.debug(n,y,h),y===!1)return!1;if(y===Gt){this.debug("GLOBSTAR",[n,y,h]);var c=l,p=d+1;if(p===S){for(this.debug("** at the end");l<w;l++)if(r[l]==="."||r[l]===".."||!a.dot&&r[l].charAt(0)===".")return!1;return!0}for(;c<w;){var m=r[c];if(this.debug(`
139
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Sl(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var Xa=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,n,o,a,u;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var d=dl(l),w=d.next();!w.done;w=d.next()){var S=w.value;S.remove(this)}}catch(f){r={error:f}}finally{try{w&&!w.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}else l.remove(this);var y=this.initialTeardown;if(Ir(y))try{y()}catch(f){u=f instanceof rl?f.errors:[f]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var c=dl(h),p=c.next();!p.done;p=c.next()){var m=p.value;try{Ph(m)}catch(f){u=u??[],f instanceof rl?u=$a($a([],pl(u)),pl(f.errors)):u.push(f)}}}catch(f){o={error:f}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}}if(u)throw new rl(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)Ph(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&Sl(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&Sl(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),Mm=Xa.EMPTY;function Lm(e){return e instanceof Xa||e&&"closed"in e&&Ir(e.remove)&&Ir(e.add)&&Ir(e.unsubscribe)}function Ph(e){Ir(e)?e():e.unsubscribe()}var RP={Promise:void 0},IP={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return setTimeout.apply(void 0,$a([e,r],pl(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function MP(e){IP.setTimeout(function(){throw e})}function Rh(){}function Ia(e){e()}var Fm=function(e){Za(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,Lm(n)&&n.add(o)):o.destination=DP,o}return r.create=function(n,o,a){return new El(n,o,a)},r.prototype.next=function(n){this.isStopped||this._next(n)},r.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Xa),LP=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var n=this.partialObserver;if(n.next)try{n.next(r)}catch(o){_a(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){_a(o)}else _a(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){_a(n)}},e}(),El=function(e){Za(r,e);function r(n,o,a){var u=e.call(this)||this,l;return Ir(n)||!n?l={next:n??void 0,error:o??void 0,complete:a??void 0}:l=n,u.destination=new LP(l),u}return r}(Fm);function _a(e){MP(e)}function FP(e){throw e}var DP={closed:!0,next:Rh,error:FP,complete:Rh},$P=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function NP(e){return e}function kP(e){return e.length===0?NP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var Ih=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,o){var a=this,u=WP(r)?r:new El(r,n,o);return Ia(function(){var l=a,d=l.operator,w=l.source;u.add(d?d.call(u,w):w?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var o=this;return n=Mh(n),new n(function(a,u){var l=new El({next:function(d){try{r(d)}catch(w){u(w),l.unsubscribe()}},error:u,complete:a});o.subscribe(l)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[$P]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return kP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=Mh(r),new r(function(o,a){var u;n.subscribe(function(l){return u=l},function(l){return a(l)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function Mh(e){var r;return(r=e??RP.Promise)!==null&&r!==void 0?r:Promise}function jP(e){return e&&Ir(e.next)&&Ir(e.error)&&Ir(e.complete)}function WP(e){return e&&e instanceof Fm||jP(e)&&Lm(e)}var UP=Im(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Lr=function(e){Za(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var o=new Lh(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new UP},r.prototype.next=function(n){var o=this;Ia(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=dl(o.currentObservers),d=l.next();!d.done;d=l.next()){var w=d.value;w.next(n)}}catch(S){a={error:S}}finally{try{d&&!d.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;Ia(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},r.prototype.complete=function(){var n=this;Ia(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var o=this,a=this,u=a.hasError,l=a.isStopped,d=a.observers;return u||l?Mm:(this.currentObservers=null,d.push(n),new Xa(function(){o.currentObservers=null,Sl(d,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,l=o.isStopped;a?n.error(u):l&&n.complete()},r.prototype.asObservable=function(){var n=new Ih;return n.source=this,n},r.create=function(n,o){return new Lh(n,o)},r}(Ih),Lh=function(e){Za(r,e);function r(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return r.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},r.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},r.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},r.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:Mm},r}(Lr),Dm=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Dm||{}),$m=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))($m||{});const BP=new Lr,zP=new Lr,Nm=new Lr;var km=(e=>(e.SAVE_ALL="save-all",e))(km||{});const HP=new Lr;var jm=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(jm||{});const qP=new Lr;var Wm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Wm||{});const ZP=new Lr,GP=new Lr;var io=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(io||{});const ja=new Lr,Kl=31;var Vl=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Kl} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Vl||{});function Um(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>Kl)throw new Error(Vl.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function KP(e){if(!e)return null;if(typeof e=="string")try{Um(e)}catch(r){return r.message}}function VP(e,r){let n="";if(["array","object"].includes(r))try{const o=JSON.parse(e);r==="array"&&(!Array.isArray(o)||!Ve.isObject(o))&&(n=`Invalid value for type ${r}`),r==="object"&&(!Ve.isObject(o)||Array.isArray(o))&&(n=`Invalid value for type ${r}`)}catch{n=`Invalid value for type ${r}`}return r==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(n=`Invalid value for type ${r}`)),r==="number"&&isNaN(+e)&&(n=`Invalid value for type ${r}`),["boolean","bool"].includes(r)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(n=`Invalid value for type ${r}`),n}function Ja(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(r,"")}var Yl=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Yl||{});const en={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ct=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(ct||{}),nn=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(nn||{}),Xl=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Xl||{});const Bm="roles.json",zm="qodlyApp.json",YP="model.4DModel",Hm="HTTPHandlers.json",qm="Shared/i18n.json";function XP(e){const r=Jl(e);switch(r){case ct.SETTINGS:return{filename:"Settings",type:r};case ct.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:r};case ct.ROLES:return{filename:"Roles & Privileges",type:r};case ct.LOCALIZATION:return{filename:"Localization",type:r};default:{const n=e.split("/"),[o]=n[1].split(".");return{filename:o,type:r}}}}function Jl(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return ct.MODEL;case n==="WebForm":return ct.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===en.METHODS):return ct.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===en.CLASSES):return ct.CLASS;case e===Bm:return ct.ROLES;case e===Hm:return ct.HTTP_HANDLERS;case e===zm:return ct.SETTINGS;case e===qm:return ct.LOCALIZATION;default:return ct.TEXT}}function JP(e,r=!1){switch(e){case en.REPORTS:case"report":return"QoDoc";case en.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case en.CLASSES:case en.METHODS:return r?"4qs":"4dm";default:return""}}function QP(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class Zm{constructor(){this.current=Promise.resolve()}lock(){let r;const n=new Promise(a=>{r=a}),o=this.current.then(()=>r);return this.current=n,o}}function Ql(){const e=new Zm;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Gm=Ve.curry((e,r,n)=>e&&Ve.get(n,e)===r),eR=Ve.curry((e,r,n)=>Ve.get(n,e)!==r),tR=Ve.curry((e,r)=>Ve.get(r,"id")!==e),rR=Ve.curry((e,r)=>Ve.get(r,"id")===e),nR=Ve.curry((e,r)=>Ve.get(r,"path")===e);function iR(e="id",r,n){return n.findIndex(Gm(e,r))!==-1}function oR(e){if(!e)return"";const{id:r,namespace:n}=e;return n&&r?`${n}:${r}`:r}function Km(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function aR(e){return e.type==="object"}function Vm(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Ym(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Km(e)}function sR(e){return Vm(e)||Ym(e)}function uR(e){return e.applyTo==="dataStore"}function lR(e){return e.applyTo==="dataClass"}function cR(e){return e.applyTo==="entity"}function fR(e){return e.applyTo==="entityCollection"}function dR(e){return e.type==="entity"}function pR(e){return e.type==="entitysel"}function Xm(e){return e.dataType==="array"}function Jm(e){return e.dataType==="object"}function Qm(e){return e.type==="scalar"}function hR(e){return Xm(e)||Jm(e)||Qm(e)}const vR=e=>e!=null&&e.type==="entity",mR=e=>e.type==="entitysel",gR=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",yR=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",wR=e=>e.type==="scalar"&&e.dataType==="date";function bR(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}function SR(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var oo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(oo||{}),eg=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(eg||{}),ec=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(ec||{});const ER={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function _R(e){var u;let r={};try{const l=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(l)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:oo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:ec.table}},...o}}function tg(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[oo.capable,oo.incapable].includes(e.preemptive)&&(r.preemptive=e.preemptive),e.publishedSoap&&(r.publishedSoap=!0,e.publishedWsdl&&(r.publishedWsdl=!0)),e.publishedWeb&&(r.publishedWeb=!0),e.publishedSql&&(r.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(r.published4DMobile=e.publishedRestOptions),JSON.stringify(r).replace(/"(true|false)"/g,"$1")}function xR(e,r,n=!1){const o=Ve.isString(r)?r:tg(r);if(!n&&rg(e))return e;const a=ng(e);return`//%attributes = ${o}\r
140
+ ${a}`}function rg(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function ng(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const OR=()=>Dl.uuid().replaceAll("-","").toUpperCase(),Xe="/rest/$designer",ho="/rest/$designer-ext";function AR(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class _l extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function Fe(e,r){var a;ja.next({action:io.REQUEST_SENT});const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let u;try{const l=await n.json();((a=l==null?void 0:l.__ERROR)==null?void 0:a.some(w=>w.errCode===1651))&&ja.next({action:io.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),u=new _l(e,n,l)}catch{u=new _l(e,n)}throw u.log(),u}return await n.json()}function TR(e){return ja.next({action:io.REQUEST_SENT}),e}var lr={},lt={},Fh;function yn(){if(Fh)return lt;Fh=1;var e=lt.ValidationError=function(f,g,b,_,x,C){if(Array.isArray(_)?(this.path=_,this.property=_.reduce(function(I,H){return I+d(H)},"instance")):_!==void 0&&(this.property=_),f&&(this.message=f),b){var T=b.$id||b.id;this.schema=T||b}g!==void 0&&(this.instance=g),this.name=x,this.argument=C,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var r=lt.ValidatorResult=function(f,g,b,_){this.instance=f,this.schema=g,this.options=b,this.path=_.path,this.propertyPath=_.propertyPath,this.errors=[],this.throwError=b&&b.throwError,this.throwFirst=b&&b.throwFirst,this.throwAll=b&&b.throwAll,this.disableFormat=b&&b.disableFormat===!0};r.prototype.addError=function(f){var g;if(typeof f=="string")g=new e(f,this.instance,this.schema,this.path);else{if(!f)throw new Error("Missing error detail");if(!f.message)throw new Error("Missing error message");if(!f.name)throw new Error("Missing validator type");g=new e(f.message,this.instance,this.schema,this.path,f.name,f.argument)}if(this.errors.push(g),this.throwFirst)throw new o(this);if(this.throwError)throw g;return g},r.prototype.importErrors=function(f){typeof f=="string"||f&&f.validatorType?this.addError(f):f&&f.errors&&(this.errors=this.errors.concat(f.errors))};function n(m,f){return f+": "+m.toString()+`
141
+ `}r.prototype.toString=function(f){return this.errors.map(n).join("")},Object.defineProperty(r.prototype,"valid",{get:function(){return!this.errors.length}}),lt.ValidatorResultError=o;function o(m){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,o),this.instance=m.instance,this.schema=m.schema,this.options=m.options,this.errors=m.errors}o.prototype=new Error,o.prototype.constructor=o,o.prototype.name="Validation Error";var a=lt.SchemaError=function m(f,g){this.message=f,this.schema=g,Error.call(this,f),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,m)};a.prototype=Object.create(Error.prototype,{constructor:{value:a,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var u=lt.SchemaContext=function(f,g,b,_,x){this.schema=f,this.options=g,Array.isArray(b)?(this.path=b,this.propertyPath=b.reduce(function(C,T){return C+d(T)},"instance")):this.propertyPath=b,this.base=_,this.schemas=x};u.prototype.resolve=function(f){return p(this.base,f)},u.prototype.makeChild=function(f,g){var b=g===void 0?this.path:this.path.concat([g]),_=f.$id||f.id;let x=p(this.base,_||"");var C=new u(f,this.options,b,x,Object.create(this.schemas));return _&&!C.schemas[x]&&(C.schemas[x]=f),C};var l=lt.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(m){return typeof m=="string"&&parseFloat(m)===parseInt(m,10)&&!isNaN(m)},regex:function(m){var f=!0;try{new RegExp(m)}catch{f=!1}return f},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],lt.isFormat=function(f,g,b){if(typeof f=="string"&&l[g]!==void 0){if(l[g]instanceof RegExp)return l[g].test(f);if(typeof l[g]=="function")return l[g](f)}else if(b&&b.customFormats&&typeof b.customFormats[g]=="function")return b.customFormats[g](f);return!0};var d=lt.makeSuffix=function(f){return f=f.toString(),!f.match(/[.\s\[\]]/)&&!f.match(/^[\d]/)?"."+f:f.match(/^\d+$/)?"["+f+"]":"["+JSON.stringify(f)+"]"};lt.deepCompareStrict=function m(f,g){if(typeof f!=typeof g)return!1;if(Array.isArray(f))return!Array.isArray(g)||f.length!==g.length?!1:f.every(function(x,C){return m(f[C],g[C])});if(typeof f=="object"){if(!f||!g)return f===g;var b=Object.keys(f),_=Object.keys(g);return b.length!==_.length?!1:b.every(function(x){return m(f[x],g[x])})}return f===g};function w(m,f,g,b){typeof g=="object"?f[b]=h(m[b],g):m.indexOf(g)===-1&&f.push(g)}function S(m,f,g){f[g]=m[g]}function y(m,f,g,b){typeof f[b]!="object"||!f[b]?g[b]=f[b]:m[b]?g[b]=h(m[b],f[b]):g[b]=f[b]}function h(m,f){var g=Array.isArray(f),b=g&&[]||{};return g?(m=m||[],b=b.concat(m),f.forEach(w.bind(null,m,b))):(m&&typeof m=="object"&&Object.keys(m).forEach(S.bind(null,m,b)),Object.keys(f).forEach(y.bind(null,m,f,b))),b}lt.deepMerge=h,lt.objectGetPath=function(f,g){for(var b=g.split("/").slice(1),_;typeof(_=b.shift())=="string";){var x=decodeURIComponent(_.replace(/~0/,"~").replace(/~1/g,"/"));if(!(x in f))return;f=f[x]}return f};function c(m){return"/"+encodeURIComponent(m).replace(/~/g,"%7E")}lt.encodePath=function(f){return f.map(c).join("")},lt.getDecimalPlaces=function(f){var g=0;if(isNaN(f))return g;typeof f!="number"&&(f=Number(f));var b=f.toString().split("e");if(b.length===2){if(b[1][0]!=="-")return g;g=Number(b[1].slice(1))}var _=b[0].split(".");return _.length===2&&(g+=_[1].length),g},lt.isSchema=function(f){return typeof f=="object"&&f||typeof f=="boolean"};var p=lt.resolveUrl=function(f,g){const b=new URL(g,new URL(f,"resolve://"));if(b.protocol==="resolve:"){const{pathname:_,search:x,hash:C}=b;return _+x+C}return b.toString()};return lt}var nl,Dh;function CR(){if(Dh)return nl;Dh=1;var e=yn(),r=e.ValidatorResult,n=e.SchemaError,o={};o.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var a=o.validators={};a.type=function(h,c,p,m){if(h===void 0)return null;var f=new r(h,c,p,m),g=Array.isArray(c.type)?c.type:[c.type];if(!g.some(this.testType.bind(this,h,c,p,m))){var b=g.map(function(_){if(_){var x=_.$id||_.id;return x?"<"+x+">":_+""}});f.addError({name:"type",argument:b,message:"is not of a type(s) "+b})}return f};function u(y,h,c,p,m){var f=h.throwError,g=h.throwAll;h.throwError=!1,h.throwAll=!1;var b=this.validateSchema(y,m,h,c);return h.throwError=f,h.throwAll=g,!b.valid&&p instanceof Function&&p(b),b.valid}a.anyOf=function(h,c,p,m){if(h===void 0)return null;var f=new r(h,c,p,m),g=new r(h,c,p,m);if(!Array.isArray(c.anyOf))throw new n("anyOf must be an array");if(!c.anyOf.some(u.bind(this,h,p,m,function(_){g.importErrors(_)}))){var b=c.anyOf.map(function(_,x){var C=_.$id||_.id;return C?"<"+C+">":_.title&&JSON.stringify(_.title)||_.$ref&&"<"+_.$ref+">"||"[subschema "+x+"]"});p.nestedErrors&&f.importErrors(g),f.addError({name:"anyOf",argument:b,message:"is not any of "+b.join(",")})}return f},a.allOf=function(h,c,p,m){if(h===void 0)return null;if(!Array.isArray(c.allOf))throw new n("allOf must be an array");var f=new r(h,c,p,m),g=this;return c.allOf.forEach(function(b,_){var x=g.validateSchema(h,b,p,m);if(!x.valid){var C=b.$id||b.id,T=C||b.title&&JSON.stringify(b.title)||b.$ref&&"<"+b.$ref+">"||"[subschema "+_+"]";f.addError({name:"allOf",argument:{id:T,length:x.errors.length,valid:x},message:"does not match allOf schema "+T+" with "+x.errors.length+" error[s]:"}),f.importErrors(x)}}),f},a.oneOf=function(h,c,p,m){if(h===void 0)return null;if(!Array.isArray(c.oneOf))throw new n("oneOf must be an array");var f=new r(h,c,p,m),g=new r(h,c,p,m),b=c.oneOf.filter(u.bind(this,h,p,m,function(x){g.importErrors(x)})).length,_=c.oneOf.map(function(x,C){var T=x.$id||x.id;return T||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+C+"]"});return b!==1&&(p.nestedErrors&&f.importErrors(g),f.addError({name:"oneOf",argument:_,message:"is not exactly one from "+_.join(",")})),f},a.if=function(h,c,p,m){if(h===void 0)return null;if(!e.isSchema(c.if))throw new Error('Expected "if" keyword to be a schema');var f=u.call(this,h,p,m,null,c.if),g=new r(h,c,p,m),b;if(f){if(c.then===void 0)return;if(!e.isSchema(c.then))throw new Error('Expected "then" keyword to be a schema');b=this.validateSchema(h,c.then,p,m.makeChild(c.then)),g.importErrors(b)}else{if(c.else===void 0)return;if(!e.isSchema(c.else))throw new Error('Expected "else" keyword to be a schema');b=this.validateSchema(h,c.else,p,m.makeChild(c.else)),g.importErrors(b)}return g};function l(y,h){if(Object.hasOwnProperty.call(y,h))return y[h];if(h in y){for(;y=Object.getPrototypeOf(y);)if(Object.propertyIsEnumerable.call(y,h))return y[h]}}a.propertyNames=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m),g=c.propertyNames!==void 0?c.propertyNames:{};if(!e.isSchema(g))throw new n('Expected "propertyNames" to be a schema (object or boolean)');for(var b in h)if(l(h,b)!==void 0){var _=this.validateSchema(b,g,p,m.makeChild(g));f.importErrors(_)}return f}},a.properties=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m),g=c.properties||{};for(var b in g){var _=g[b];if(_!==void 0){if(_===null)throw new n('Unexpected null, expected schema in "properties"');typeof p.preValidateProperty=="function"&&p.preValidateProperty(h,b,_,p,m);var x=l(h,b),C=this.validateSchema(x,_,p,m.makeChild(_,b));C.instance!==f.instance[b]&&(f.instance[b]=C.instance),f.importErrors(C)}}return f}};function d(y,h,c,p,m,f){if(this.types.object(y)&&!(h.properties&&h.properties[m]!==void 0))if(h.additionalProperties===!1)f.addError({name:"additionalProperties",argument:m,message:"is not allowed to have the additional property "+JSON.stringify(m)});else{var g=h.additionalProperties||{};typeof c.preValidateProperty=="function"&&c.preValidateProperty(y,m,g,c,p);var b=this.validateSchema(y[m],g,c,p.makeChild(g,m));b.instance!==f.instance[m]&&(f.instance[m]=b.instance),f.importErrors(b)}}a.patternProperties=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m),g=c.patternProperties||{};for(var b in h){var _=!0;for(var x in g){var C=g[x];if(C!==void 0){if(C===null)throw new n('Unexpected null, expected schema in "patternProperties"');try{var T=new RegExp(x,"u")}catch{T=new RegExp(x)}if(T.test(b)){_=!1,typeof p.preValidateProperty=="function"&&p.preValidateProperty(h,b,C,p,m);var I=this.validateSchema(h[b],C,p,m.makeChild(C,b));I.instance!==f.instance[b]&&(f.instance[b]=I.instance),f.importErrors(I)}}}_&&d.call(this,h,c,p,m,b,f)}return f}},a.additionalProperties=function(h,c,p,m){if(this.types.object(h)){if(c.patternProperties)return null;var f=new r(h,c,p,m);for(var g in h)d.call(this,h,c,p,m,g,f);return f}},a.minProperties=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m),g=Object.keys(h);return g.length>=c.minProperties||f.addError({name:"minProperties",argument:c.minProperties,message:"does not meet minimum property length of "+c.minProperties}),f}},a.maxProperties=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m),g=Object.keys(h);return g.length<=c.maxProperties||f.addError({name:"maxProperties",argument:c.maxProperties,message:"does not meet maximum property length of "+c.maxProperties}),f}},a.items=function(h,c,p,m){var f=this;if(this.types.array(h)&&c.items!==void 0){var g=new r(h,c,p,m);return h.every(function(b,_){if(Array.isArray(c.items))var x=c.items[_]===void 0?c.additionalItems:c.items[_];else var x=c.items;if(x===void 0)return!0;if(x===!1)return g.addError({name:"items",message:"additionalItems not permitted"}),!1;var C=f.validateSchema(b,x,p,m.makeChild(x,_));return C.instance!==g.instance[_]&&(g.instance[_]=C.instance),g.importErrors(C),!0}),g}},a.contains=function(h,c,p,m){var f=this;if(this.types.array(h)&&c.contains!==void 0){if(!e.isSchema(c.contains))throw new Error('Expected "contains" keyword to be a schema');var g=new r(h,c,p,m),b=h.some(function(_,x){var C=f.validateSchema(_,c.contains,p,m.makeChild(c.contains,x));return C.errors.length===0});return b===!1&&g.addError({name:"contains",argument:c.contains,message:"must contain an item matching given schema"}),g}},a.minimum=function(h,c,p,m){if(this.types.number(h)){var f=new r(h,c,p,m);return c.exclusiveMinimum&&c.exclusiveMinimum===!0?h>c.minimum||f.addError({name:"minimum",argument:c.minimum,message:"must be greater than "+c.minimum}):h>=c.minimum||f.addError({name:"minimum",argument:c.minimum,message:"must be greater than or equal to "+c.minimum}),f}},a.maximum=function(h,c,p,m){if(this.types.number(h)){var f=new r(h,c,p,m);return c.exclusiveMaximum&&c.exclusiveMaximum===!0?h<c.maximum||f.addError({name:"maximum",argument:c.maximum,message:"must be less than "+c.maximum}):h<=c.maximum||f.addError({name:"maximum",argument:c.maximum,message:"must be less than or equal to "+c.maximum}),f}},a.exclusiveMinimum=function(h,c,p,m){if(typeof c.exclusiveMinimum!="boolean"&&this.types.number(h)){var f=new r(h,c,p,m),g=h>c.exclusiveMinimum;return g||f.addError({name:"exclusiveMinimum",argument:c.exclusiveMinimum,message:"must be strictly greater than "+c.exclusiveMinimum}),f}},a.exclusiveMaximum=function(h,c,p,m){if(typeof c.exclusiveMaximum!="boolean"&&this.types.number(h)){var f=new r(h,c,p,m),g=h<c.exclusiveMaximum;return g||f.addError({name:"exclusiveMaximum",argument:c.exclusiveMaximum,message:"must be strictly less than "+c.exclusiveMaximum}),f}};var w=function(h,c,p,m,f,g){if(this.types.number(h)){var b=c[f];if(b==0)throw new n(f+" cannot be zero");var _=new r(h,c,p,m),x=e.getDecimalPlaces(h),C=e.getDecimalPlaces(b),T=Math.max(x,C),I=Math.pow(10,T);return Math.round(h*I)%Math.round(b*I)!==0&&_.addError({name:f,argument:b,message:g+JSON.stringify(b)}),_}};a.multipleOf=function(h,c,p,m){return w.call(this,h,c,p,m,"multipleOf","is not a multiple of (divisible by) ")},a.divisibleBy=function(h,c,p,m){return w.call(this,h,c,p,m,"divisibleBy","is not divisible by (multiple of) ")},a.required=function(h,c,p,m){var f=new r(h,c,p,m);return h===void 0&&c.required===!0?f.addError({name:"required",message:"is required"}):this.types.object(h)&&Array.isArray(c.required)&&c.required.forEach(function(g){l(h,g)===void 0&&f.addError({name:"required",argument:g,message:"requires property "+JSON.stringify(g)})}),f},a.pattern=function(h,c,p,m){if(this.types.string(h)){var f=new r(h,c,p,m),g=c.pattern;try{var b=new RegExp(g,"u")}catch{b=new RegExp(g)}return h.match(b)||f.addError({name:"pattern",argument:c.pattern,message:"does not match pattern "+JSON.stringify(c.pattern.toString())}),f}},a.format=function(h,c,p,m){if(h!==void 0){var f=new r(h,c,p,m);return!f.disableFormat&&!e.isFormat(h,c.format,this)&&f.addError({name:"format",argument:c.format,message:"does not conform to the "+JSON.stringify(c.format)+" format"}),f}},a.minLength=function(h,c,p,m){if(this.types.string(h)){var f=new r(h,c,p,m),g=h.match(/[\uDC00-\uDFFF]/g),b=h.length-(g?g.length:0);return b>=c.minLength||f.addError({name:"minLength",argument:c.minLength,message:"does not meet minimum length of "+c.minLength}),f}},a.maxLength=function(h,c,p,m){if(this.types.string(h)){var f=new r(h,c,p,m),g=h.match(/[\uDC00-\uDFFF]/g),b=h.length-(g?g.length:0);return b<=c.maxLength||f.addError({name:"maxLength",argument:c.maxLength,message:"does not meet maximum length of "+c.maxLength}),f}},a.minItems=function(h,c,p,m){if(this.types.array(h)){var f=new r(h,c,p,m);return h.length>=c.minItems||f.addError({name:"minItems",argument:c.minItems,message:"does not meet minimum length of "+c.minItems}),f}},a.maxItems=function(h,c,p,m){if(this.types.array(h)){var f=new r(h,c,p,m);return h.length<=c.maxItems||f.addError({name:"maxItems",argument:c.maxItems,message:"does not meet maximum length of "+c.maxItems}),f}};function S(y,h,c){var p,m=c.length;for(p=h+1,m;p<m;p++)if(e.deepCompareStrict(y,c[p]))return!1;return!0}return a.uniqueItems=function(h,c,p,m){if(c.uniqueItems===!0&&this.types.array(h)){var f=new r(h,c,p,m);return h.every(S)||f.addError({name:"uniqueItems",message:"contains duplicate item"}),f}},a.dependencies=function(h,c,p,m){if(this.types.object(h)){var f=new r(h,c,p,m);for(var g in c.dependencies)if(h[g]!==void 0){var b=c.dependencies[g],_=m.makeChild(b,g);if(typeof b=="string"&&(b=[b]),Array.isArray(b))b.forEach(function(C){h[C]===void 0&&f.addError({name:"dependencies",argument:_.propertyPath,message:"property "+C+" not found, required by "+_.propertyPath})});else{var x=this.validateSchema(h,b,p,_);f.instance!==x.instance&&(f.instance=x.instance),x&&x.errors.length&&(f.addError({name:"dependencies",argument:_.propertyPath,message:"does not meet dependency required by "+_.propertyPath}),f.importErrors(x))}}return f}},a.enum=function(h,c,p,m){if(h===void 0)return null;if(!Array.isArray(c.enum))throw new n("enum expects an array",c);var f=new r(h,c,p,m);return c.enum.some(e.deepCompareStrict.bind(null,h))||f.addError({name:"enum",argument:c.enum,message:"is not one of enum values: "+c.enum.map(String).join(",")}),f},a.const=function(h,c,p,m){if(h===void 0)return null;var f=new r(h,c,p,m);return e.deepCompareStrict(c.const,h)||f.addError({name:"const",argument:c.const,message:"does not exactly match expected constant: "+c.const}),f},a.not=a.disallow=function(h,c,p,m){var f=this;if(h===void 0)return null;var g=new r(h,c,p,m),b=c.not||c.disallow;return b?(Array.isArray(b)||(b=[b]),b.forEach(function(_){if(f.testType(h,c,p,m,_)){var x=_&&(_.$id||_.id),C=x||_;g.addError({name:"not",argument:C,message:"is of prohibited type "+C})}}),g):null},nl=o,nl}var xa={},$h;function xl(){if($h)return xa;$h=1;var e=yn();xa.SchemaScanResult=r;function r(n,o){this.id=n,this.ref=o}return xa.scan=function(o,a){function u(y,h){if(!h||typeof h!="object")return;if(h.$ref){let f=e.resolveUrl(y,h.$ref);S[f]=S[f]?S[f]+1:0;return}var c=h.$id||h.id;let p=e.resolveUrl(y,c);var m=c?p:y;if(m){if(m.indexOf("#")<0&&(m+="#"),w[m]){if(!e.deepCompareStrict(w[m],h))throw new Error("Schema <"+m+"> already exists with different definition");return w[m]}w[m]=h,m[m.length-1]=="#"&&(w[m.substring(0,m.length-1)]=h)}l(m+"/items",Array.isArray(h.items)?h.items:[h.items]),l(m+"/extends",Array.isArray(h.extends)?h.extends:[h.extends]),u(m+"/additionalItems",h.additionalItems),d(m+"/properties",h.properties),u(m+"/additionalProperties",h.additionalProperties),d(m+"/definitions",h.definitions),d(m+"/patternProperties",h.patternProperties),d(m+"/dependencies",h.dependencies),l(m+"/disallow",h.disallow),l(m+"/allOf",h.allOf),l(m+"/anyOf",h.anyOf),l(m+"/oneOf",h.oneOf),u(m+"/not",h.not)}function l(y,h){if(Array.isArray(h))for(var c=0;c<h.length;c++)u(y+"/"+c,h[c])}function d(y,h){if(!(!h||typeof h!="object"))for(var c in h)u(y+"/"+c,h[c])}var w={},S={};return u(o,a),new r(w,S)},xa}var il,Nh;function PR(){if(Nh)return il;Nh=1;var e=CR(),r=yn(),n=xl().scan,o=r.ValidatorResult,a=r.ValidatorResultError,u=r.SchemaError,l=r.SchemaContext,d="/",w=function h(){this.customFormats=Object.create(h.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(y),this.attributes=Object.create(e.validators)};w.prototype.customFormats={},w.prototype.schemas=null,w.prototype.types=null,w.prototype.attributes=null,w.prototype.unresolvedRefs=null,w.prototype.addSchema=function(c,p){var m=this;if(!c)return null;var f=n(p||d,c),g=p||c.$id||c.id;for(var b in f.id)this.schemas[b]=f.id[b];for(var b in f.ref)this.unresolvedRefs.push(b);return this.unresolvedRefs=this.unresolvedRefs.filter(function(_){return typeof m.schemas[_]>"u"}),this.schemas[g]},w.prototype.addSubSchemaArray=function(c,p){if(Array.isArray(p))for(var m=0;m<p.length;m++)this.addSubSchema(c,p[m])},w.prototype.addSubSchemaObject=function(c,p){if(!(!p||typeof p!="object"))for(var m in p)this.addSubSchema(c,p[m])},w.prototype.setSchemas=function(c){this.schemas=c},w.prototype.getSchema=function(c){return this.schemas[c]},w.prototype.validate=function(c,p,m,f){if(typeof p!="boolean"&&typeof p!="object"||p===null)throw new u("Expected `schema` to be an object or boolean");m||(m={});var g=p.$id||p.id;let b=r.resolveUrl(m.base,g||"");if(!f){f=new l(p,m,[],b,Object.create(this.schemas)),f.schemas[b]||(f.schemas[b]=p);var _=n(b,p);for(var x in _.id){var C=_.id[x];f.schemas[x]=C}}if(m.required&&c===void 0){var T=new o(c,p,m,f);return T.addError("is required, but is undefined"),T}var T=this.validateSchema(c,p,m,f);if(T){if(m.throwAll&&T.errors.length)throw new a(T)}else throw new Error("Result undefined");return T};function S(h){var c=typeof h=="string"?h:h.$ref;return typeof c=="string"?c:!1}w.prototype.validateSchema=function(c,p,m,f){var g=new o(c,p,m,f);if(typeof p=="boolean")p===!0?p={}:p===!1&&(p={type:[]});else if(!p)throw new Error("schema is undefined");if(p.extends)if(Array.isArray(p.extends)){var b={schema:p,ctx:f};p.extends.forEach(this.schemaTraverser.bind(this,b)),p=b.schema,b.schema=null,b.ctx=null,b=null}else p=r.deepMerge(p,this.superResolve(p.extends,f));var _=S(p);if(_){var x=this.resolve(p,_,f),C=new l(x.subschema,m,f.path,x.switchSchema,f.schemas);return this.validateSchema(c,x.subschema,m,C)}var T=m&&m.skipAttributes||[];for(var I in p)if(!e.ignoreProperties[I]&&T.indexOf(I)<0){var H=null,F=this.attributes[I];if(F)H=F.call(this,c,p,m,f);else if(m.allowUnknownAttributes===!1)throw new u("Unsupported attribute: "+I,p);H&&g.importErrors(H)}if(typeof m.rewrite=="function"){var k=m.rewrite.call(this,c,p,m,f);g.instance=k}return g},w.prototype.schemaTraverser=function(c,p){c.schema=r.deepMerge(c.schema,this.superResolve(p,c.ctx))},w.prototype.superResolve=function(c,p){var m=S(c);return m?this.resolve(c,m,p).subschema:c},w.prototype.resolve=function(c,p,m){if(p=m.resolve(p),m.schemas[p])return{subschema:m.schemas[p],switchSchema:p};let g=new URL(p,"thismessage::/").hash;var b=g&&g.length&&p.substr(0,p.length-g.length);if(!b||!m.schemas[b])throw new u("no such schema <"+p+">",c);var _=r.objectGetPath(m.schemas[b],g.substr(1));if(_===void 0)throw new u("no such schema "+g+" located in <"+b+">",c);return{subschema:_,switchSchema:p}},w.prototype.testType=function(c,p,m,f,g){if(g!==void 0){if(g===null)throw new u('Unexpected null in "type" keyword');if(typeof this.types[g]=="function")return this.types[g].call(this,c);if(g&&typeof g=="object"){var b=this.validateSchema(c,g,m,f);return b===void 0||!(b&&b.errors.length)}return!0}};var y=w.prototype.types={};return y.string=function(c){return typeof c=="string"},y.number=function(c){return typeof c=="number"&&isFinite(c)},y.integer=function(c){return typeof c=="number"&&c%1===0},y.boolean=function(c){return typeof c=="boolean"},y.array=function(c){return Array.isArray(c)},y.null=function(c){return c===null},y.date=function(c){return c instanceof Date},y.any=function(c){return!0},y.object=function(c){return c&&typeof c=="object"&&!Array.isArray(c)&&!(c instanceof Date)},il=w,il}var kh;function RR(){if(kh)return lr;kh=1;var e=lr.Validator=PR();return lr.ValidatorResult=yn().ValidatorResult,lr.ValidatorResultError=yn().ValidatorResultError,lr.ValidationError=yn().ValidationError,lr.SchemaError=yn().SchemaError,lr.SchemaScanResult=xl().SchemaScanResult,lr.scan=xl().scan,lr.validate=function(r,n,o){var a=new e;return a.validate(r,n,o)},lr}var IR=RR();const ig=(e,r,n)=>{const o=e instanceof RegExp?jh(e,n):e,a=r instanceof RegExp?jh(r,n):r,u=o!==null&&a!=null&&MR(o,a,n);return u&&{start:u[0],end:u[1],pre:n.slice(0,u[0]),body:n.slice(u[0]+o.length,u[1]),post:n.slice(u[1]+a.length)}},jh=(e,r)=>{const n=r.match(e);return n?n[0]:null},MR=(e,r,n)=>{let o,a,u,l,d,w=n.indexOf(e),S=n.indexOf(r,w+1),y=w;if(w>=0&&S>0){if(e===r)return[w,S];for(o=[],u=n.length;y>=0&&!d;){if(y===w)o.push(y),w=n.indexOf(e,y+1);else if(o.length===1){const h=o.pop();h!==void 0&&(d=[h,S])}else a=o.pop(),a!==void 0&&a<u&&(u=a,l=S),S=n.indexOf(r,y+1);y=w<S&&w>=0?w:S}o.length&&l!==void 0&&(d=[u,l])}return d},og="\0SLASH"+Math.random()+"\0",ag="\0OPEN"+Math.random()+"\0",tc="\0CLOSE"+Math.random()+"\0",sg="\0COMMA"+Math.random()+"\0",ug="\0PERIOD"+Math.random()+"\0",LR=new RegExp(og,"g"),FR=new RegExp(ag,"g"),DR=new RegExp(tc,"g"),$R=new RegExp(sg,"g"),NR=new RegExp(ug,"g"),kR=/\\\\/g,jR=/\\{/g,WR=/\\}/g,UR=/\\,/g,BR=/\\./g;function ol(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function zR(e){return e.replace(kR,og).replace(jR,ag).replace(WR,tc).replace(UR,sg).replace(BR,ug)}function HR(e){return e.replace(LR,"\\").replace(FR,"{").replace(DR,"}").replace($R,",").replace(NR,".")}function lg(e){if(!e)return[""];const r=[],n=ig("{","}",e);if(!n)return e.split(",");const{pre:o,body:a,post:u}=n,l=o.split(",");l[l.length-1]+="{"+a+"}";const d=lg(u);return u.length&&(l[l.length-1]+=d.shift(),l.push.apply(l,d)),r.push.apply(r,l),r}function qR(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Ki(zR(e),!0).map(HR)):[]}function ZR(e){return"{"+e+"}"}function GR(e){return/^-?0\d/.test(e)}function KR(e,r){return e<=r}function VR(e,r){return e>=r}function Ki(e,r){const n=[],o=ig("{","}",e);if(!o)return[e];const a=o.pre,u=o.post.length?Ki(o.post,!1):[""];if(/\$$/.test(o.pre))for(let l=0;l<u.length;l++){const d=a+"{"+o.body+"}"+u[l];n.push(d)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),w=l||d,S=o.body.indexOf(",")>=0;if(!w&&!S)return o.post.match(/,(?!,).*\}/)?(e=o.pre+"{"+o.body+tc+o.post,Ki(e)):[e];let y;if(w)y=o.body.split(/\.\./);else if(y=lg(o.body),y.length===1&&y[0]!==void 0&&(y=Ki(y[0],!1).map(ZR),y.length===1))return u.map(c=>o.pre+y[0]+c);let h;if(w&&y[0]!==void 0&&y[1]!==void 0){const c=ol(y[0]),p=ol(y[1]),m=Math.max(y[0].length,y[1].length);let f=y.length===3&&y[2]!==void 0?Math.abs(ol(y[2])):1,g=KR;p<c&&(f*=-1,g=VR);const _=y.some(GR);h=[];for(let x=c;g(x,p);x+=f){let C;if(d)C=String.fromCharCode(x),C==="\\"&&(C="");else if(C=String(x),_){const T=m-C.length;if(T>0){const I=new Array(T+1).join("0");x<0?C="-"+I+C.slice(1):C=I+C}}h.push(C)}}else{h=[];for(let c=0;c<y.length;c++)h.push.apply(h,Ki(y[c],!1))}for(let c=0;c<h.length;c++)for(let p=0;p<u.length;p++){const m=a+h[c]+u[p];(!r||w||m)&&n.push(m)}}return n}const YR=1024*64,Wa=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>YR)throw new TypeError("pattern is too long")},XR={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},qi=e=>e.replace(/[[\]\\-]/g,"\\$&"),JR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Wh=e=>e.join(""),QR=(e,r)=>{const n=r;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");const o=[],a=[];let u=n+1,l=!1,d=!1,w=!1,S=!1,y=n,h="";e:for(;u<e.length;){const f=e.charAt(u);if((f==="!"||f==="^")&&u===n+1){S=!0,u++;continue}if(f==="]"&&l&&!w){y=u+1;break}if(l=!0,f==="\\"&&!w){w=!0,u++;continue}if(f==="["&&!w){for(const[g,[b,_,x]]of Object.entries(XR))if(e.startsWith(g,u)){if(h)return["$.",!1,e.length-n,!0];u+=g.length,x?a.push(b):o.push(b),d=d||_;continue e}}if(w=!1,h){f>h?o.push(qi(h)+"-"+qi(f)):f===h&&o.push(qi(f)),h="",u++;continue}if(e.startsWith("-]",u+1)){o.push(qi(f+"-")),u+=2;continue}if(e.startsWith("-",u+1)){h=f,u+=2;continue}o.push(qi(f)),u++}if(y<u)return["",!1,0,!1];if(!o.length&&!a.length)return["$.",!1,e.length-n,!0];if(a.length===0&&o.length===1&&/^\\?.$/.test(o[0])&&!S){const f=o[0].length===2?o[0].slice(-1):o[0];return[JR(f),!1,y-n,!1]}const c="["+(S?"^":"")+Wh(o)+"]",p="["+(S?"":"^")+Wh(a)+"]";return[o.length&&a.length?"("+c+"|"+p+")":o.length?c:p,d,y-n,!0]},Vi=(e,{windowsPathsNoEscape:r=!1}={})=>r?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),eI=new Set(["!","?","+","*","@"]),Uh=e=>eI.has(e),tI="(?!(?:^|/)\\.\\.?(?:$|/))",Oa="(?!\\.)",rI=new Set(["[","."]),nI=new Set(["..","."]),iI=new Set("().*{}+?[]^$\\!"),oI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),rc="[^/]",Bh=rc+"*?",zh=rc+"+?";var tt,ot,Rr,je,Ke,Xr,wn,Jr,cr,bn,ao,Tn,cg,tn,Ma,Ol,fg;const St=class St{constructor(r,n,o={}){At(this,Tn);et(this,"type");At(this,tt);At(this,ot);At(this,Rr,!1);At(this,je,[]);At(this,Ke);At(this,Xr);At(this,wn);At(this,Jr,!1);At(this,cr);At(this,bn);At(this,ao,!1);this.type=r,r&&Ge(this,ot,!0),Ge(this,Ke,n),Ge(this,tt,re(this,Ke)?re(re(this,Ke),tt):this),Ge(this,cr,re(this,tt)===this?o:re(re(this,tt),cr)),Ge(this,wn,re(this,tt)===this?[]:re(re(this,tt),wn)),r==="!"&&!re(re(this,tt),Jr)&&re(this,wn).push(this),Ge(this,Xr,re(this,Ke)?re(re(this,Ke),je).length:0)}get hasMagic(){if(re(this,ot)!==void 0)return re(this,ot);for(const r of re(this,je))if(typeof r!="string"&&(r.type||r.hasMagic))return Ge(this,ot,!0);return re(this,ot)}toString(){return re(this,bn)!==void 0?re(this,bn):this.type?Ge(this,bn,this.type+"("+re(this,je).map(r=>String(r)).join("|")+")"):Ge(this,bn,re(this,je).map(r=>String(r)).join(""))}push(...r){for(const n of r)if(n!==""){if(typeof n!="string"&&!(n instanceof St&&re(n,Ke)===this))throw new Error("invalid part: "+n);re(this,je).push(n)}}toJSON(){var n;const r=this.type===null?re(this,je).slice().map(o=>typeof o=="string"?o:o.toJSON()):[this.type,...re(this,je).map(o=>o.toJSON())];return this.isStart()&&!this.type&&r.unshift([]),this.isEnd()&&(this===re(this,tt)||re(re(this,tt),Jr)&&((n=re(this,Ke))==null?void 0:n.type)==="!")&&r.push({}),r}isStart(){var n;if(re(this,tt)===this)return!0;if(!((n=re(this,Ke))!=null&&n.isStart()))return!1;if(re(this,Xr)===0)return!0;const r=re(this,Ke);for(let o=0;o<re(this,Xr);o++){const a=re(r,je)[o];if(!(a instanceof St&&a.type==="!"))return!1}return!0}isEnd(){var n,o,a;if(re(this,tt)===this||((n=re(this,Ke))==null?void 0:n.type)==="!")return!0;if(!((o=re(this,Ke))!=null&&o.isEnd()))return!1;if(!this.type)return(a=re(this,Ke))==null?void 0:a.isEnd();const r=re(this,Ke)?re(re(this,Ke),je).length:0;return re(this,Xr)===r-1}copyIn(r){typeof r=="string"?this.push(r):this.push(r.clone(this))}clone(r){const n=new St(this.type,r);for(const o of re(this,je))n.copyIn(o);return n}static fromGlob(r,n={}){var a;const o=new St(null,void 0,n);return Zr(a=St,tn,Ma).call(a,r,o,0,n),o}toMMPattern(){if(this!==re(this,tt))return re(this,tt).toMMPattern();const r=this.toString(),[n,o,a,u]=this.toRegExpSource();if(!(a||re(this,ot)||re(this,cr).nocase&&!re(this,cr).nocaseMagicOnly&&r.toUpperCase()!==r.toLowerCase()))return o;const d=(re(this,cr).nocase?"i":"")+(u?"u":"");return Object.assign(new RegExp(`^${n}$`,d),{_src:n,_glob:r})}get options(){return re(this,cr)}toRegExpSource(r){var w;const n=r??!!re(this,cr).dot;if(re(this,tt)===this&&Zr(this,Tn,cg).call(this),!this.type){const S=this.isStart()&&this.isEnd(),y=re(this,je).map(m=>{var x;const[f,g,b,_]=typeof m=="string"?Zr(x=St,tn,fg).call(x,m,re(this,ot),S):m.toRegExpSource(r);return Ge(this,ot,re(this,ot)||b),Ge(this,Rr,re(this,Rr)||_),f}).join("");let h="";if(this.isStart()&&typeof re(this,je)[0]=="string"&&!(re(this,je).length===1&&nI.has(re(this,je)[0]))){const f=rI,g=n&&f.has(y.charAt(0))||y.startsWith("\\.")&&f.has(y.charAt(2))||y.startsWith("\\.\\.")&&f.has(y.charAt(4)),b=!n&&!r&&f.has(y.charAt(0));h=g?tI:b?Oa:""}let c="";return this.isEnd()&&re(re(this,tt),Jr)&&((w=re(this,Ke))==null?void 0:w.type)==="!"&&(c="(?:$|\\/)"),[h+y+c,Vi(y),Ge(this,ot,!!re(this,ot)),re(this,Rr)]}const o=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let u=Zr(this,Tn,Ol).call(this,n);if(this.isStart()&&this.isEnd()&&!u&&this.type!=="!"){const S=this.toString();return Ge(this,je,[S]),this.type=null,Ge(this,ot,void 0),[S,Vi(this.toString()),!1,!1]}let l=!o||r||n||!Oa?"":Zr(this,Tn,Ol).call(this,!0);l===u&&(l=""),l&&(u=`(?:${u})(?:${l})*?`);let d="";if(this.type==="!"&&re(this,ao))d=(this.isStart()&&!n?Oa:"")+zh;else{const S=this.type==="!"?"))"+(this.isStart()&&!n&&!r?Oa:"")+Bh+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;d=a+u+S}return[d,Vi(u),Ge(this,ot,!!re(this,ot)),re(this,Rr)]}};tt=new WeakMap,ot=new WeakMap,Rr=new WeakMap,je=new WeakMap,Ke=new WeakMap,Xr=new WeakMap,wn=new WeakMap,Jr=new WeakMap,cr=new WeakMap,bn=new WeakMap,ao=new WeakMap,Tn=new WeakSet,cg=function(){if(this!==re(this,tt))throw new Error("should only call on root");if(re(this,Jr))return this;this.toString(),Ge(this,Jr,!0);let r;for(;r=re(this,wn).pop();){if(r.type!=="!")continue;let n=r,o=re(n,Ke);for(;o;){for(let a=re(n,Xr)+1;!o.type&&a<re(o,je).length;a++)for(const u of re(r,je)){if(typeof u=="string")throw new Error("string part in extglob AST??");u.copyIn(re(o,je)[a])}n=o,o=re(n,Ke)}}return this},tn=new WeakSet,Ma=function(r,n,o,a){var p,m;let u=!1,l=!1,d=-1,w=!1;if(n.type===null){let f=o,g="";for(;f<r.length;){const b=r.charAt(f++);if(u||b==="\\"){u=!u,g+=b;continue}if(l){f===d+1?(b==="^"||b==="!")&&(w=!0):b==="]"&&!(f===d+2&&w)&&(l=!1),g+=b;continue}else if(b==="["){l=!0,d=f,w=!1,g+=b;continue}if(!a.noext&&Uh(b)&&r.charAt(f)==="("){n.push(g),g="";const _=new St(b,n);f=Zr(p=St,tn,Ma).call(p,r,_,f,a),n.push(_);continue}g+=b}return n.push(g),f}let S=o+1,y=new St(null,n);const h=[];let c="";for(;S<r.length;){const f=r.charAt(S++);if(u||f==="\\"){u=!u,c+=f;continue}if(l){S===d+1?(f==="^"||f==="!")&&(w=!0):f==="]"&&!(S===d+2&&w)&&(l=!1),c+=f;continue}else if(f==="["){l=!0,d=S,w=!1,c+=f;continue}if(Uh(f)&&r.charAt(S)==="("){y.push(c),c="";const g=new St(f,y);y.push(g),S=Zr(m=St,tn,Ma).call(m,r,g,S,a);continue}if(f==="|"){y.push(c),c="",h.push(y),y=new St(null,n);continue}if(f===")")return c===""&&re(n,je).length===0&&Ge(n,ao,!0),y.push(c),c="",n.push(...h,y),S;c+=f}return n.type=null,Ge(n,ot,void 0),Ge(n,je,[r.substring(o-1)]),S},Ol=function(r){return re(this,je).map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");const[o,a,u,l]=n.toRegExpSource(r);return Ge(this,Rr,re(this,Rr)||l),o}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")},fg=function(r,n,o=!1){let a=!1,u="",l=!1;for(let d=0;d<r.length;d++){const w=r.charAt(d);if(a){a=!1,u+=(iI.has(w)?"\\":"")+w;continue}if(w==="\\"){d===r.length-1?u+="\\\\":a=!0;continue}if(w==="["){const[S,y,h,c]=QR(r,d);if(h){u+=S,l=l||y,d+=h-1,n=n||c;continue}}if(w==="*"){o&&r==="*"?u+=zh:u+=Bh,n=!0;continue}if(w==="?"){u+=rc,n=!0;continue}u+=oI(w)}return[u,Vi(r),!!n,l]},At(St,tn);let Ua=St;const aI=(e,{windowsPathsNoEscape:r=!1}={})=>r?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),gt=(e,r,n={})=>(Wa(r),!n.nocomment&&r.charAt(0)==="#"?!1:new Qa(r,n).match(e)),sI=/^\*+([^+@!?\*\[\(]*)$/,uI=e=>r=>!r.startsWith(".")&&r.endsWith(e),lI=e=>r=>r.endsWith(e),cI=e=>(e=e.toLowerCase(),r=>!r.startsWith(".")&&r.toLowerCase().endsWith(e)),fI=e=>(e=e.toLowerCase(),r=>r.toLowerCase().endsWith(e)),dI=/^\*+\.\*+$/,pI=e=>!e.startsWith(".")&&e.includes("."),hI=e=>e!=="."&&e!==".."&&e.includes("."),vI=/^\.\*+$/,mI=e=>e!=="."&&e!==".."&&e.startsWith("."),gI=/^\*+$/,yI=e=>e.length!==0&&!e.startsWith("."),wI=e=>e.length!==0&&e!=="."&&e!=="..",bI=/^\?+([^+@!?\*\[\(]*)?$/,SI=([e,r=""])=>{const n=dg([e]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},EI=([e,r=""])=>{const n=pg([e]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},_I=([e,r=""])=>{const n=pg([e]);return r?o=>n(o)&&o.endsWith(r):n},xI=([e,r=""])=>{const n=dg([e]);return r?o=>n(o)&&o.endsWith(r):n},dg=([e])=>{const r=e.length;return n=>n.length===r&&!n.startsWith(".")},pg=([e])=>{const r=e.length;return n=>n.length===r&&n!=="."&&n!==".."},hg=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Hh={win32:{sep:"\\"},posix:{sep:"/"}},OI=hg==="win32"?Hh.win32.sep:Hh.posix.sep;gt.sep=OI;const Kt=Symbol("globstar **");gt.GLOBSTAR=Kt;const AI="[^/]",TI=AI+"*?",CI="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",PI="(?:(?!(?:\\/|^)\\.).)*?",RI=(e,r={})=>n=>gt(n,e,r);gt.filter=RI;const Gt=(e,r={})=>Object.assign({},e,r),II=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return gt;const r=gt;return Object.assign((o,a,u={})=>r(o,a,Gt(e,u)),{Minimatch:class extends r.Minimatch{constructor(a,u={}){super(a,Gt(e,u))}static defaults(a){return r.defaults(Gt(e,a)).Minimatch}},AST:class extends r.AST{constructor(a,u,l={}){super(a,u,Gt(e,l))}static fromGlob(a,u={}){return r.AST.fromGlob(a,Gt(e,u))}},unescape:(o,a={})=>r.unescape(o,Gt(e,a)),escape:(o,a={})=>r.escape(o,Gt(e,a)),filter:(o,a={})=>r.filter(o,Gt(e,a)),defaults:o=>r.defaults(Gt(e,o)),makeRe:(o,a={})=>r.makeRe(o,Gt(e,a)),braceExpand:(o,a={})=>r.braceExpand(o,Gt(e,a)),match:(o,a,u={})=>r.match(o,a,Gt(e,u)),sep:r.sep,GLOBSTAR:Kt})};gt.defaults=II;const vg=(e,r={})=>(Wa(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:qR(e));gt.braceExpand=vg;const MI=(e,r={})=>new Qa(e,r).makeRe();gt.makeRe=MI;const LI=(e,r,n={})=>{const o=new Qa(r,n);return e=e.filter(a=>o.match(a)),o.options.nonull&&!e.length&&e.push(r),e};gt.match=LI;const qh=/[?*]|[+@!]\(.*?\)|\[|\]/,FI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Qa{constructor(r,n={}){et(this,"options");et(this,"set");et(this,"pattern");et(this,"windowsPathsNoEscape");et(this,"nonegate");et(this,"negate");et(this,"comment");et(this,"empty");et(this,"preserveMultipleSlashes");et(this,"partial");et(this,"globSet");et(this,"globParts");et(this,"nocase");et(this,"isWindows");et(this,"platform");et(this,"windowsNoMagicRoot");et(this,"regexp");Wa(r),n=n||{},this.options=n,this.pattern=r,this.platform=n.platform||hg,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const r of this.set)for(const n of r)if(typeof n!="string")return!0;return!1}debug(...r){}make(){const r=this.pattern,n=this.options;if(!n.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...u)=>console.error(...u)),this.debug(this.pattern,this.globSet);const o=this.globSet.map(u=>this.slashSplit(u));this.globParts=this.preprocess(o),this.debug(this.pattern,this.globParts);let a=this.globParts.map((u,l,d)=>{if(this.isWindows&&this.windowsNoMagicRoot){const w=u[0]===""&&u[1]===""&&(u[2]==="?"||!qh.test(u[2]))&&!qh.test(u[3]),S=/^[a-z]:/i.test(u[0]);if(w)return[...u.slice(0,4),...u.slice(4).map(y=>this.parse(y))];if(S)return[u[0],...u.slice(1).map(y=>this.parse(y))]}return u.map(w=>this.parse(w))});if(this.debug(this.pattern,a),this.set=a.filter(u=>u.indexOf(!1)===-1),this.isWindows)for(let u=0;u<this.set.length;u++){const l=this.set[u];l[0]===""&&l[1]===""&&this.globParts[u][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(r){if(this.options.noglobstar)for(let o=0;o<r.length;o++)for(let a=0;a<r[o].length;a++)r[o][a]==="**"&&(r[o][a]="*");const{optimizationLevel:n=1}=this.options;return n>=2?(r=this.firstPhasePreProcess(r),r=this.secondPhasePreProcess(r)):n>=1?r=this.levelOneOptimize(r):r=this.adjascentGlobstarOptimize(r),r}adjascentGlobstarOptimize(r){return r.map(n=>{let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let a=o;for(;n[a+1]==="**";)a++;a!==o&&n.splice(o,a-o)}return n})}levelOneOptimize(r){return r.map(n=>(n=n.reduce((o,a)=>{const u=o[o.length-1];return a==="**"&&u==="**"?o:a===".."&&u&&u!==".."&&u!=="."&&u!=="**"?(o.pop(),o):(o.push(a),o)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(r){Array.isArray(r)||(r=this.slashSplit(r));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let a=1;a<r.length-1;a++){const u=r[a];a===1&&u===""&&r[0]===""||(u==="."||u==="")&&(n=!0,r.splice(a,1),a--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(n=!0,r.pop())}let o=0;for(;(o=r.indexOf("..",o+1))!==-1;){const a=r[o-1];a&&a!=="."&&a!==".."&&a!=="**"&&(n=!0,r.splice(o-1,2),o-=2)}}while(n);return r.length===0?[""]:r}firstPhasePreProcess(r){let n=!1;do{n=!1;for(let o of r){let a=-1;for(;(a=o.indexOf("**",a+1))!==-1;){let l=a;for(;o[l+1]==="**";)l++;l>a&&o.splice(a+1,l-a);let d=o[a+1];const w=o[a+2],S=o[a+3];if(d!==".."||!w||w==="."||w===".."||!S||S==="."||S==="..")continue;n=!0,o.splice(a,1);const y=o.slice(0);y[a]="**",r.push(y),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<o.length-1;l++){const d=o[l];l===1&&d===""&&o[0]===""||(d==="."||d==="")&&(n=!0,o.splice(l,1),l--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(n=!0,o.pop())}let u=0;for(;(u=o.indexOf("..",u+1))!==-1;){const l=o[u-1];if(l&&l!=="."&&l!==".."&&l!=="**"){n=!0;const w=u===1&&o[u+1]==="**"?["."]:[];o.splice(u-1,2,...w),o.length===0&&o.push(""),u-=2}}}}while(n);return r}secondPhasePreProcess(r){for(let n=0;n<r.length-1;n++)for(let o=n+1;o<r.length;o++){const a=this.partsMatch(r[n],r[o],!this.preserveMultipleSlashes);if(a){r[n]=[],r[o]=a;break}}return r.filter(n=>n.length)}partsMatch(r,n,o=!1){let a=0,u=0,l=[],d="";for(;a<r.length&&u<n.length;)if(r[a]===n[u])l.push(d==="b"?n[u]:r[a]),a++,u++;else if(o&&r[a]==="**"&&n[u]===r[a+1])l.push(r[a]),a++;else if(o&&n[u]==="**"&&r[a]===n[u+1])l.push(n[u]),u++;else if(r[a]==="*"&&n[u]&&(this.options.dot||!n[u].startsWith("."))&&n[u]!=="**"){if(d==="b")return!1;d="a",l.push(r[a]),a++,u++}else if(n[u]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(d==="a")return!1;d="b",l.push(n[u]),a++,u++}else return!1;return r.length===n.length&&l}parseNegate(){if(this.nonegate)return;const r=this.pattern;let n=!1,o=0;for(let a=0;a<r.length&&r.charAt(a)==="!";a++)n=!n,o++;o&&(this.pattern=r.slice(o)),this.negate=n}matchOne(r,n,o=!1){const a=this.options;if(this.isWindows){const f=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),g=!f&&r[0]===""&&r[1]===""&&r[2]==="?"&&/^[a-z]:$/i.test(r[3]),b=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),_=!b&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]),x=g?3:f?0:void 0,C=_?3:b?0:void 0;if(typeof x=="number"&&typeof C=="number"){const[T,I]=[r[x],n[C]];T.toLowerCase()===I.toLowerCase()&&(n[C]=T,C>x?n=n.slice(C):x>C&&(r=r.slice(x)))}}const{optimizationLevel:u=1}=this.options;u>=2&&(r=this.levelTwoFileOptimize(r)),this.debug("matchOne",this,{file:r,pattern:n}),this.debug("matchOne",r.length,n.length);for(var l=0,d=0,w=r.length,S=n.length;l<w&&d<S;l++,d++){this.debug("matchOne loop");var y=n[d],h=r[l];if(this.debug(n,y,h),y===!1)return!1;if(y===Kt){this.debug("GLOBSTAR",[n,y,h]);var c=l,p=d+1;if(p===S){for(this.debug("** at the end");l<w;l++)if(r[l]==="."||r[l]===".."||!a.dot&&r[l].charAt(0)===".")return!1;return!0}for(;c<w;){var m=r[c];if(this.debug(`
142
142
  globstar while`,r,c,n,p,m),this.matchOne(r.slice(c),n.slice(p),o))return this.debug("globstar found match!",c,w,m),!0;if(m==="."||m===".."||!a.dot&&m.charAt(0)==="."){this.debug("dot detected!",r,c,n,p);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(o&&(this.debug(`
143
- >>> no match, partial?`,r,c,n,p),c===w))}let f;if(typeof y=="string"?(f=h===y,this.debug("string match",y,h,f)):(f=y.test(h),this.debug("pattern match",y,h,f)),!f)return!1}if(l===w&&d===S)return!0;if(l===w)return o;if(d===S)return l===w-1&&r[l]==="";throw new Error("wtf?")}braceExpand(){return hg(this.pattern,this.options)}parse(r){Wa(r);const n=this.options;if(r==="**")return Gt;if(r==="")return"";let o,a=null;(o=r.match(mM))?a=n.dot?yM:gM:(o=r.match(aM))?a=(n.nocase?n.dot?cM:lM:n.dot?uM:sM)(o[1]):(o=r.match(wM))?a=(n.nocase?n.dot?SM:bM:n.dot?EM:_M)(o):(o=r.match(fM))?a=n.dot?pM:dM:(o=r.match(hM))&&(a=vM);const u=Ua.fromGlob(r,this.options).toMMPattern();return a&&typeof u=="object"&&Reflect.defineProperty(u,"test",{value:a}),u}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const r=this.set;if(!r.length)return this.regexp=!1,this.regexp;const n=this.options,o=n.noglobstar?AM:n.dot?TM:CM,a=new Set(n.nocase?["i"]:[]);let u=r.map(w=>{const S=w.map(y=>{if(y instanceof RegExp)for(const h of y.flags.split(""))a.add(h);return typeof y=="string"?FM(y):y===Gt?Gt:y._src});return S.forEach((y,h)=>{const c=S[h+1],p=S[h-1];y!==Gt||p===Gt||(p===void 0?c!==void 0&&c!==Gt?S[h+1]="(?:\\/|"+o+"\\/)?"+c:S[h]=o:c===void 0?S[h-1]=p+"(?:\\/|"+o+")?":c!==Gt&&(S[h-1]=p+"(?:\\/|\\/"+o+"\\/)"+c,S[h+1]=Gt))}),S.filter(y=>y!==Gt).join("/")}).join("|");const[l,d]=r.length>1?["(?:",")"]:["",""];u="^"+l+u+d+"$",this.negate&&(u="^(?!"+u+").+$");try{this.regexp=new RegExp(u,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(r){return this.preserveMultipleSlashes?r.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(r)?["",...r.split(/\/+/)]:r.split(/\/+/)}match(r,n=this.partial){if(this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&n)return!0;const o=this.options;this.isWindows&&(r=r.split("\\").join("/"));const a=this.slashSplit(r);this.debug(this.pattern,"split",a);const u=this.set;this.debug(this.pattern,"set",u);let l=a[a.length-1];if(!l)for(let d=a.length-2;!l&&d>=0;d--)l=a[d];for(let d=0;d<u.length;d++){const w=u[d];let S=a;if(o.matchBase&&w.length===1&&(S=[l]),this.matchOne(S,w,n))return o.flipNegate?!0:!this.negate}return o.flipNegate?!1:this.negate}static defaults(r){return mt.defaults(r).Minimatch}}mt.AST=Ua;mt.Minimatch=Qa;mt.escape=oM;mt.unescape=Vi;const rc="/$shared",LM={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/*.json":{parser:"json",content:{}}};function vg(e){const r=Object.entries(LM).find(([n])=>mt(e,n));return r==null?void 0:r[1]}function nc(e){var o;const r=(o=vg(e))==null?void 0:o.content;if(!r)return;const n=e.replace(`${rc}/`,"Shared/");ic({name:n,content:r,asText:typeof r=="string"})}function vo({path:e,createIfNotExists:r=!1}){const n=`${rc}/${e}`;return Le(`${n}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(o=>{const a=vg(e);let u=o;if(!a)return u;if(typeof u=="string")try{switch(a.parser){case"json":u=JSON.parse(u);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new RR.Validator().validate(u,a.schema).valid)throw new Error("Invalid Schema");return u}).catch(o=>{if(DM(o)&&r){const a=$M(o,e);$m.next({message:a,kind:"warning"}),nc(n)}throw o})}function DM(e){var r;return((r=e==null?void 0:e.response)==null?void 0:r.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function $M(e,r){var n;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${r}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${r}' is corrupt, resetting...`;case((n=e==null?void 0:e.response)==null?void 0:n.status)===404:return`File '${r}' not found, creating...`;default:return e==null?void 0:e.message}}function NM(e){return Le(ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function kM(e){return Le(ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const mg=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:Xl.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function jM(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await Le(Xe,{method:"POST",body:JSON.stringify({verb:nn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,d=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?d:l:a.webServerHTTPPort?l:d})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),mg()}}async function gg(e){return await Le(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function WM(...e){return(await Promise.all(e.map(o=>gg({root:o,verb:nn.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function UM(e,r={}){const{sanitize:n=!0}=r;return Le(`/rest/$getWebForm/${e}`,{method:"GET"}).then(o=>{if(!(o!=null&&o.components)||!n)return o;const a=new Map;return{...o,components:Ve.entries(o.components).map(([u,l])=>{const d=u,{resolvedName:w}=l.type;if(w==="WebformLoader"){const S=Dl.generate();a.set(u,S),u=S}return[u,l,d]}).reduce((u,[l,d,w])=>{var S;return d.nodes&&(d.nodes=d.nodes.map(y=>a.get(y)||y)),d.linkedNodes&&(d.linkedNodes=Ve.entries(d.linkedNodes).reduce((y,[h,c])=>({...y,[h]:a.get(c)||c}),{})),(S=d.props)!=null&&S.events&&(d.props.events=d.props.events.map(y=>(y.type==="navigation"&&y.loader&&(y.loader=a.get(y.loader)||y.loader),y))),{...u,[l]:{...d,props:{...d.props,__originalID:w}}}},{})}})}function BM(e){return Le(Xe,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[Kt.METHOD,Kt.CLASS].includes(r.type)?Ja(r.content):r.content}))}function zM(e){return e.type==="folder"?Le(ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Le(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function HM(e){return e.type==="folder"?(await Le(ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Le(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function qM(e){return Le(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function ZM(e){return Le(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function GM(e){return(await Le(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function KM(...e){return await Le(Xe,{method:"POST",body:JSON.stringify({verb:nn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function VM(e){const r=await Le("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function YM(){return await Le("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function XM(e){try{const r=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,o=await(await fetch(r)).text(),{supported:a}=JSON.parse(o);return a}catch{return[]}}async function JM({name:e,path:r="",root:n="root",asText:o=!1}){return Le(Xe,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function QM(e={}){try{return await vo({path:"shared_datasources.json",...e})}catch{return{}}}async function eI(e={}){try{return await vo({path:"shared_app_events.json",createIfNotExists:!0,...e})}catch{return[]}}async function tI(e={}){try{return await vo({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function rI(e={}){try{return await vo({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function nI(){try{return await Le("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function iI(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const oI=Jl(),aI=async e=>{const r={verb:nn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return oI(async()=>(await Le(Xe,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},sI=Jl(),uI=async e=>{const r={verb:nn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return sI(async()=>(await Le(Xe,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},ic=async e=>{const r=await Le(Xe,{method:"POST",body:JSON.stringify({...e,verb:nn.SET_FILE_CONTENT,root:Yl.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Hm(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},lI=async e=>await ic({name:"crafted_components.json",path:en.WEBFORMS,content:e});function cI(e){return Le(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function fI(e){return Le(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function dI(e){return Le(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function pI(e){return Le(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?Ja(r.content):r.content}).catch(r=>{var n,o;throw((o=(n=r.data)==null?void 0:n.__ERROR[0])==null?void 0:o.errCode)===1839&&nc(e.path),r})}function hI(e){return Le(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function vI(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function mI(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function gI(e){const r=vI(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=mI(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function yI(e,r){const o=e.split(".").pop();try{const a=await Le(Xe,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=Ja(a.content);const{params:u,result:l}=gI(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var yg=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(yg||{});function wI(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}function bI(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var wg=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(wg||{}),bg=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(bg||{}),Sg=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(Sg||{}),Eg=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(Eg||{});const SI={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},EI={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=Xe;exports.AppLoader=JC;exports.ControlledSwitch=bm;exports.DATASOURCE_THEMES=SI;exports.DatasourcesActions=Dm;exports.DebuggerActions=jm;exports.DesignerRequestVerb=nn;exports.Dialog=vx;exports.DialogBody=ov;exports.EActivity=yg;exports.EDITOR=EI;exports.EIDENTIFIERS=Sg;exports.ERROR_CODES=Eg;exports.EWebFormStyleClassScope=wg;exports.EXT_API_PREFIX=ho;exports.FileFolderType=Kt;exports.FolderRootPath=en;exports.FolderRootType=Yl;exports.HTTPError=_l;exports.HTTP_HANDLERS_PATH=zm;exports.IPreemptive=oo;exports.IPublished=Qm;exports.IPublishedRestScope=Ql;exports.IdentityProvider=xP;exports.Incase=BO;exports.IndentLines=Cv;exports.LOCALIZATION_PATH=YP;exports.LogoSVG=Sm;exports.LspActions=km;exports.MAX_FILE_NAME_LENGTH=Kl;exports.MODEL_TAB_PATH=VP;exports.Modal=rP;exports.ModalCloseReason=Vn;exports.ModalColor=_n;exports.ModalIcons=bl;exports.ModalType=Zl;exports.Mutex=qm;exports.NameError=Vl;exports.Overlay=iv;exports.Portal=Zh;exports.PublishOptions=SR;exports.ROLES_TAB_PATH=Um;exports.RemoteDebuggerMode=Xl;exports.SETTINGS_TAB_PATH=Bm;exports.SHARED_API_PREFIX=rc;exports.SourceCodeDescriptor=bg;exports.Switcher=Pv;exports.TabEventsActions=Nm;exports.Tip=eC;exports.TipsProvider=JT;exports.Toast=_O;exports.Tooltip=YC;exports.Tree=UO;exports.TreeIcon=xv;exports.TreeNode=$l;exports.WebformActions=Lm;exports.WebformEventsActions=io;exports.ZoomComponent=oP;exports.ZoomLevel=_m;exports._isArrayDatasource=mR;exports._isObjectDatasource=gR;exports.addAttributesToContent=_R;exports.addFolder=qM;exports.by=Zm;exports.byId=tR;exports.byPath=rR;exports.callServerSideParser=AR;exports.checkUpdates=NM;exports.createFolder=cI;exports.datasourcesSubject=UP;exports.debuggerSubject=qP;exports.dropFile=HM;exports.dropFolder=GM;exports.exists=nR;exports.extractWebformName=JP;exports.generateUUID=xR;exports.getAppSettings=jM;exports.getCatalog=YM;exports.getDatasourceId=iR;exports.getDefaultAppSettings=mg;exports.getFile=BM;exports.getFileContent=JM;exports.getFileExtentionFromType=XP;exports.getFilesInfo=KM;exports.getFolder=gg;exports.getFolders=WM;exports.getFunctionContent=yI;exports.getMonacoTheme=iI;exports.getNodeInfo=pI;exports.getSavedConditions=rI;exports.getSharedAppEvents=eI;exports.getSharedCSS=tI;exports.getSharedDatasources=QM;exports.getSharedResource=vo;exports.getSupportedLanguages=XM;exports.getTypeFromExtension=Hm;exports.getUserPrivileges=nI;exports.getWebForm=UM;exports.hasAttributesString=tg;exports.http=Le;exports.installUpdates=kM;exports.isArrayDatasource=Ym;exports.isDataClassMethod=uR;exports.isDataStoreMethod=sR;exports.isDateDatasource=yR;exports.isEntity=hR;exports.isEntityDatasource=fR;exports.isEntityMethod=lR;exports.isEntitySelection=vR;exports.isEntitySelectionDatasource=dR;exports.isEntitySelectionMethod=cR;exports.isObjectAttribute=oR;exports.isObjectDatasource=Xm;exports.isRelatedAttribute=aR;exports.isRelatedEntitiesAttribute=Km;exports.isRelatedEntityAttribute=Vm;exports.isScalarDatasource=Jm;exports.isSimpleAttribute=Gm;exports.isSimpleDatasource=pR;exports.loadDS=wR;exports.loadI18n=bR;exports.log=wI;exports.login=VM;exports.lspSubject=HP;exports.moveItem=dI;exports.outBy=QP;exports.outById=eR;exports.parseAttributes=ER;exports.queue=Jl;exports.removeAttributesString=rg;exports.removeItem=fI;exports.renameFile=zM;exports.renameFolder=ZM;exports.sanitizeContent=Ja;exports.saveContent=hI;exports.setCraftedComponents=lI;exports.setFileContent=ic;exports.setSharedAppEvents=uI;exports.setSharedSources=aI;exports.stringifyAttributes=eg;exports.tabEventsSubject=zP;exports.tasksManagerSubject=ZP;exports.toastSubject=$m;exports.trackEvent=bI;exports.transformDates=OR;exports.tryCreateSharedResource=nc;exports.useDidMountEffect=aP;exports.useDoubleClick=CP;exports.useFeatureFlags=_P;exports.useForwardedRef=EP;exports.useHotkeys=yP;exports.useIdentity=OP;exports.useOutsideClick=wP;exports.usePrevious=bP;exports.useStateObject=AP;exports.useStateRef=SP;exports.useTip=um;exports.validateName=Wm;exports.validateServerSide=GP;exports.validateValue=KP;exports.webformEventsSubject=ja;exports.webformSubject=BP;
143
+ >>> no match, partial?`,r,c,n,p),c===w))}let f;if(typeof y=="string"?(f=h===y,this.debug("string match",y,h,f)):(f=y.test(h),this.debug("pattern match",y,h,f)),!f)return!1}if(l===w&&d===S)return!0;if(l===w)return o;if(d===S)return l===w-1&&r[l]==="";throw new Error("wtf?")}braceExpand(){return vg(this.pattern,this.options)}parse(r){Wa(r);const n=this.options;if(r==="**")return Kt;if(r==="")return"";let o,a=null;(o=r.match(gI))?a=n.dot?wI:yI:(o=r.match(sI))?a=(n.nocase?n.dot?fI:cI:n.dot?lI:uI)(o[1]):(o=r.match(bI))?a=(n.nocase?n.dot?EI:SI:n.dot?_I:xI)(o):(o=r.match(dI))?a=n.dot?hI:pI:(o=r.match(vI))&&(a=mI);const u=Ua.fromGlob(r,this.options).toMMPattern();return a&&typeof u=="object"&&Reflect.defineProperty(u,"test",{value:a}),u}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const r=this.set;if(!r.length)return this.regexp=!1,this.regexp;const n=this.options,o=n.noglobstar?TI:n.dot?CI:PI,a=new Set(n.nocase?["i"]:[]);let u=r.map(w=>{const S=w.map(y=>{if(y instanceof RegExp)for(const h of y.flags.split(""))a.add(h);return typeof y=="string"?FI(y):y===Kt?Kt:y._src});return S.forEach((y,h)=>{const c=S[h+1],p=S[h-1];y!==Kt||p===Kt||(p===void 0?c!==void 0&&c!==Kt?S[h+1]="(?:\\/|"+o+"\\/)?"+c:S[h]=o:c===void 0?S[h-1]=p+"(?:\\/|"+o+")?":c!==Kt&&(S[h-1]=p+"(?:\\/|\\/"+o+"\\/)"+c,S[h+1]=Kt))}),S.filter(y=>y!==Kt).join("/")}).join("|");const[l,d]=r.length>1?["(?:",")"]:["",""];u="^"+l+u+d+"$",this.negate&&(u="^(?!"+u+").+$");try{this.regexp=new RegExp(u,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(r){return this.preserveMultipleSlashes?r.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(r)?["",...r.split(/\/+/)]:r.split(/\/+/)}match(r,n=this.partial){if(this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&n)return!0;const o=this.options;this.isWindows&&(r=r.split("\\").join("/"));const a=this.slashSplit(r);this.debug(this.pattern,"split",a);const u=this.set;this.debug(this.pattern,"set",u);let l=a[a.length-1];if(!l)for(let d=a.length-2;!l&&d>=0;d--)l=a[d];for(let d=0;d<u.length;d++){const w=u[d];let S=a;if(o.matchBase&&w.length===1&&(S=[l]),this.matchOne(S,w,n))return o.flipNegate?!0:!this.negate}return o.flipNegate?!1:this.negate}static defaults(r){return gt.defaults(r).Minimatch}}gt.AST=Ua;gt.Minimatch=Qa;gt.escape=aI;gt.unescape=Vi;const nc="/$shared",DI={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/*.json":{parser:"json",content:{}}};function mg(e){const r=Object.entries(DI).find(([n])=>gt(e,n));return r==null?void 0:r[1]}function ic(e){var o;const r=(o=mg(e))==null?void 0:o.content;if(!r)return;const n=e.replace(`${nc}/`,"Shared/");oc({name:n,content:r,asText:typeof r=="string"})}function vo({path:e,createIfNotExists:r=!1}){const n=`${nc}/${e}`;return Fe(`${n}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(o=>{const a=mg(e);let u=o;if(!a)return u;if(typeof u=="string")try{switch(a.parser){case"json":u=JSON.parse(u);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new IR.Validator().validate(u,a.schema).valid)throw new Error("Invalid Schema");return u}).catch(o=>{if($I(o)&&r){const a=NI(o,e);Nm.next({message:a,kind:"warning"}),ic(n)}throw o})}function $I(e){var r;return((r=e==null?void 0:e.response)==null?void 0:r.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function NI(e,r){var n;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${r}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${r}' is corrupt, resetting...`;case((n=e==null?void 0:e.response)==null?void 0:n.status)===404:return`File '${r}' not found, creating...`;default:return e==null?void 0:e.message}}function kI(e){return Fe(ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function jI(e){return Fe(ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const gg=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:Xl.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function WI(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await Fe(Xe,{method:"POST",body:JSON.stringify({verb:nn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,d=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?d:l:a.webServerHTTPPort?l:d})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),gg()}}async function yg(e){return await Fe(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function UI(...e){return(await Promise.all(e.map(o=>yg({root:o,verb:nn.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function BI(e,r={}){const{sanitize:n=!0}=r;return Fe(`/rest/$getWebForm/${e}`,{method:"GET"}).then(o=>{if(!(o!=null&&o.components)||!n)return o;const a=new Map;return{...o,components:Ve.entries(o.components).map(([u,l])=>{const d=u,{resolvedName:w}=l.type;if(w==="WebformLoader"){const S=Dl.generate();a.set(u,S),u=S}return[u,l,d]}).reduce((u,[l,d,w])=>{var S;return d.nodes&&(d.nodes=d.nodes.map(y=>a.get(y)||y)),d.linkedNodes&&(d.linkedNodes=Ve.entries(d.linkedNodes).reduce((y,[h,c])=>({...y,[h]:a.get(c)||c}),{})),(S=d.props)!=null&&S.events&&(d.props.events=d.props.events.map(y=>(y.type==="navigation"&&y.loader&&(y.loader=a.get(y.loader)||y.loader),y))),{...u,[l]:{...d,props:{...d.props,__originalID:w}}}},{})}})}function zI(e){return Fe(Xe,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[ct.METHOD,ct.CLASS].includes(r.type)?Ja(r.content):r.content}))}function HI(e){return e.type==="folder"?Fe(ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Fe(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function qI(e){return e.type==="folder"?(await Fe(ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Fe(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function ZI(e){return Fe(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function GI(e){return Fe(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function KI(e){return(await Fe(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function VI(...e){return await Fe(Xe,{method:"POST",body:JSON.stringify({verb:nn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function YI(e){const r=await Fe("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function XI(){return await Fe("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function JI(e){try{const r=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,o=await(await fetch(r)).text(),{supported:a}=JSON.parse(o);return a}catch{return[]}}async function QI({name:e,path:r="",root:n="root",asText:o=!1}){return Fe(Xe,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function eM(e={}){try{return await vo({path:"shared_datasources.json",...e})}catch{return{}}}async function tM(e={}){try{return await vo({path:"shared_app_events.json",createIfNotExists:!0,...e})}catch{return[]}}async function rM(e={}){try{return await vo({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function nM(e={}){try{return await vo({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function iM(){try{return await Fe("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function oM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const aM=Ql(),sM=async e=>{const r={verb:nn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return aM(async()=>(await Fe(Xe,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},uM=Ql(),lM=async e=>{const r={verb:nn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return uM(async()=>(await Fe(Xe,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},oc=async e=>{const r=await Fe(Xe,{method:"POST",body:JSON.stringify({...e,verb:nn.SET_FILE_CONTENT,root:Yl.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Jl(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},cM=async e=>await oc({name:"crafted_components.json",path:en.WEBFORMS,content:e});function fM(e){return Fe(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function dM(e){return Fe(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function pM(e){return Fe(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function hM(e){return Fe(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?Ja(r.content):r.content}).catch(r=>{var n,o;throw((o=(n=r.data)==null?void 0:n.__ERROR[0])==null?void 0:o.errCode)===1839&&ic(e.path),r})}function vM(e){return Fe(Xe,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function mM(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function gM(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function yM(e){const r=mM(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=gM(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function wM(e,r){const o=e.split(".").pop();try{const a=await Fe(Xe,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=Ja(a.content);const{params:u,result:l}=yM(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var wg=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(wg||{});function bM(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}function SM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var bg=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(bg||{}),Sg=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(Sg||{}),Eg=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(Eg||{}),_g=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(_g||{});const EM={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},_M={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=Xe;exports.AppLoader=QC;exports.ControlledSwitch=Sm;exports.DATASOURCE_THEMES=EM;exports.DatasourcesActions=$m;exports.DebuggerActions=Wm;exports.DesignerRequestVerb=nn;exports.Dialog=mx;exports.DialogBody=av;exports.EActivity=wg;exports.EDITOR=_M;exports.EIDENTIFIERS=Eg;exports.ERROR_CODES=_g;exports.EWebFormStyleClassScope=bg;exports.EXT_API_PREFIX=ho;exports.FileFolderType=ct;exports.FolderRootPath=en;exports.FolderRootType=Yl;exports.HTTPError=_l;exports.HTTP_HANDLERS_TAB_PATH=Hm;exports.IPreemptive=oo;exports.IPublished=eg;exports.IPublishedRestScope=ec;exports.IdentityProvider=OP;exports.Incase=zO;exports.IndentLines=Pv;exports.LOCALIZATION_TAB_PATH=qm;exports.LogoSVG=Em;exports.LspActions=jm;exports.MAX_FILE_NAME_LENGTH=Kl;exports.MODEL_TAB_PATH=YP;exports.Modal=nP;exports.ModalCloseReason=Vn;exports.ModalColor=_n;exports.ModalIcons=bl;exports.ModalType=Zl;exports.Mutex=Zm;exports.NameError=Vl;exports.Overlay=ov;exports.Portal=Gh;exports.PublishOptions=ER;exports.ROLES_TAB_PATH=Bm;exports.RemoteDebuggerMode=Xl;exports.SETTINGS_TAB_PATH=zm;exports.SHARED_API_PREFIX=nc;exports.SourceCodeDescriptor=Sg;exports.Switcher=Rv;exports.TabEventsActions=km;exports.Tip=tC;exports.TipsProvider=QT;exports.Toast=xO;exports.Tooltip=XC;exports.Tree=BO;exports.TreeIcon=Ov;exports.TreeNode=$l;exports.WebformActions=Dm;exports.WebformEventsActions=io;exports.ZoomComponent=aP;exports.ZoomLevel=xm;exports._isArrayDatasource=gR;exports._isObjectDatasource=yR;exports.addAttributesToContent=xR;exports.addFolder=ZI;exports.by=Gm;exports.byId=rR;exports.byPath=nR;exports.callServerSideParser=TR;exports.checkUpdates=kI;exports.createFolder=fM;exports.datasourcesSubject=BP;exports.debuggerSubject=ZP;exports.dropFile=qI;exports.dropFolder=KI;exports.exists=iR;exports.extractWebformName=QP;exports.generateUUID=OR;exports.getAppSettings=WI;exports.getCatalog=XI;exports.getDatasourceId=oR;exports.getDefaultAppSettings=gg;exports.getFile=zI;exports.getFileContent=QI;exports.getFileExtentionFromType=JP;exports.getFilenameAndTypeFromPath=XP;exports.getFilesInfo=VI;exports.getFolder=yg;exports.getFolders=UI;exports.getFunctionContent=wM;exports.getMonacoTheme=oM;exports.getNodeInfo=hM;exports.getSavedConditions=nM;exports.getSharedAppEvents=tM;exports.getSharedCSS=rM;exports.getSharedDatasources=eM;exports.getSharedResource=vo;exports.getSupportedLanguages=JI;exports.getTypeFromExtension=Jl;exports.getUserPrivileges=iM;exports.getWebForm=BI;exports.hasAttributesString=rg;exports.http=Fe;exports.installUpdates=jI;exports.isArrayDatasource=Xm;exports.isDataClassMethod=lR;exports.isDataStoreMethod=uR;exports.isDateDatasource=wR;exports.isEntity=vR;exports.isEntityDatasource=dR;exports.isEntityMethod=cR;exports.isEntitySelection=mR;exports.isEntitySelectionDatasource=pR;exports.isEntitySelectionMethod=fR;exports.isObjectAttribute=aR;exports.isObjectDatasource=Jm;exports.isRelatedAttribute=sR;exports.isRelatedEntitiesAttribute=Vm;exports.isRelatedEntityAttribute=Ym;exports.isScalarDatasource=Qm;exports.isSimpleAttribute=Km;exports.isSimpleDatasource=hR;exports.loadDS=bR;exports.loadI18n=SR;exports.log=bM;exports.login=YI;exports.lspSubject=qP;exports.moveItem=pM;exports.outBy=eR;exports.outById=tR;exports.parseAttributes=_R;exports.queue=Ql;exports.removeAttributesString=ng;exports.removeItem=dM;exports.renameFile=HI;exports.renameFolder=GI;exports.sanitizeContent=Ja;exports.saveContent=vM;exports.setCraftedComponents=cM;exports.setFileContent=oc;exports.setSharedAppEvents=lM;exports.setSharedSources=sM;exports.stringifyAttributes=tg;exports.tabEventsSubject=HP;exports.tasksManagerSubject=GP;exports.toastSubject=Nm;exports.trackEvent=SM;exports.transformDates=AR;exports.tryCreateSharedResource=ic;exports.useDidMountEffect=sP;exports.useDoubleClick=PP;exports.useFeatureFlags=xP;exports.useForwardedRef=_P;exports.useHotkeys=wP;exports.useIdentity=AP;exports.useOutsideClick=bP;exports.usePrevious=SP;exports.useStateObject=TP;exports.useStateRef=EP;exports.useTip=lm;exports.validateName=Um;exports.validateServerSide=KP;exports.validateValue=VP;exports.webformEventsSubject=ja;exports.webformSubject=zP;
144
144
  //# sourceMappingURL=index.cjs.js.map