@ws-ui/shared 1.12.4 → 1.13.0

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,26 +1,26 @@
1
- "use strict";var DO=Object.defineProperty;var bh=e=>{throw TypeError(e)};var NO=(e,t,r)=>t in e?DO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ye=(e,t,r)=>NO(e,typeof t!="symbol"?t+"":t,r),Sl=(e,t,r)=>t.has(e)||bh("Cannot "+r);var Y=(e,t,r)=>(Sl(e,t,"read from private field"),r?r.call(e):t.get(e)),gt=(e,t,r)=>t.has(e)?bh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),je=(e,t,r,i)=>(Sl(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),de=(e,t,r)=>(Sl(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react/jsx-runtime"),W=require("react"),zo=require("react-dom"),tt=require("@ws-ui/icons"),pc=require("@emotion/react"),jO=require("re-resizable");function ev(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const $=ev(W),zO=ev(zo),tv=({children:e,container:t=document.body})=>zo.createPortal(e,t);var wh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},xh=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,Mt="top",or="bottom",sr="right",Ft="left",Hc="auto",Wo=[Mt,or,sr,Ft],Si="start",Co="end",WO="clippingParents",rv="viewport",Zi="popper",UO="reference",Sh=Wo.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Co])},[]),nv=[].concat(Wo,[Hc]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Co])},[]),BO="beforeRead",HO="read",qO="afterRead",ZO="beforeMain",GO="main",KO="afterMain",VO="beforeWrite",XO="write",YO="afterWrite",JO=[BO,HO,qO,ZO,GO,KO,VO,XO,YO];function $r(e){return e?(e.nodeName||"").toLowerCase():null}function Gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hn(e){var t=Gt(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qc(e){if(typeof ShadowRoot>"u")return!1;var t=Gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function QO(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},s=t.attributes[r]||{},a=t.elements[r];!ir(a)||!$r(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(l){var c=s[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function eA(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],a=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=l.reduce(function(f,m){return f[m]="",f},{});!ir(s)||!$r(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const tA={name:"applyStyles",enabled:!0,phase:"write",fn:QO,effect:eA,requires:["computeStyles"]};function Cr(e){return e.split("-")[0]}var Un=Math.max,wa=Math.min,Ei=Math.round;function hc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function iv(){return!/^((?!chrome|android).)*safari/i.test(hc())}function _i(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),s=1,a=1;t&&ir(e)&&(s=e.offsetWidth>0&&Ei(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ei(i.height)/e.offsetHeight||1);var l=Hn(e)?Gt(e):window,c=l.visualViewport,f=!iv()&&r,m=(i.left+(f&&c?c.offsetLeft:0))/s,y=(i.top+(f&&c?c.offsetTop:0))/a,p=i.width/s,g=i.height/a;return{width:p,height:g,top:y,right:m+p,bottom:y+g,left:m,x:m,y}}function Zc(e){var t=_i(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function ov(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&qc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Xr(e){return Gt(e).getComputedStyle(e)}function rA(e){return["table","td","th"].indexOf($r(e))>=0}function xn(e){return((Hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ma(e){return $r(e)==="html"?e:e.assignedSlot||e.parentNode||(qc(e)?e.host:null)||xn(e)}function Eh(e){return!ir(e)||Xr(e).position==="fixed"?null:e.offsetParent}function nA(e){var t=/firefox/i.test(hc()),r=/Trident/i.test(hc());if(r&&ir(e)){var i=Xr(e);if(i.position==="fixed")return null}var s=Ma(e);for(qc(s)&&(s=s.host);ir(s)&&["html","body"].indexOf($r(s))<0;){var a=Xr(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function Uo(e){for(var t=Gt(e),r=Eh(e);r&&rA(r)&&Xr(r).position==="static";)r=Eh(r);return r&&($r(r)==="html"||$r(r)==="body"&&Xr(r).position==="static")?t:r||nA(e)||t}function Gc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oo(e,t,r){return Un(e,wa(t,r))}function iA(e,t,r){var i=Oo(e,t,r);return i>r?r:i}function sv(){return{top:0,right:0,bottom:0,left:0}}function av(e){return Object.assign({},sv(),e)}function uv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var oA=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,av(typeof t!="number"?t:uv(t,Wo))};function sA(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Cr(r.placement),f=Gc(c),m=[Ft,sr].indexOf(c)>=0,y=m?"height":"width";if(!(!a||!l)){var p=oA(s.padding,r),g=Zc(a),v=f==="y"?Mt:Ft,x=f==="y"?or:sr,d=r.rects.reference[y]+r.rects.reference[f]-l[f]-r.rects.popper[y],w=l[f]-r.rects.reference[f],h=Uo(a),S=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0,E=d/2-w/2,R=p[v],O=S-g[y]-p[x],C=S/2-g[y]/2+E,U=Oo(R,C,O),M=f;r.modifiersData[i]=(t={},t[M]=U,t.centerOffset=U-C,t)}}function aA(e){var t=e.state,r=e.options,i=r.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||ov(t.elements.popper,s)&&(t.elements.arrow=s))}const uA={name:"arrow",enabled:!0,phase:"main",fn:sA,effect:aA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oi(e){return e.split("-")[1]}var lA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cA(e,t){var r=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Ei(r*s)/s||0,y:Ei(i*s)/s||0}}function _h(e){var t,r=e.popper,i=e.popperRect,s=e.placement,a=e.variation,l=e.offsets,c=e.position,f=e.gpuAcceleration,m=e.adaptive,y=e.roundOffsets,p=e.isFixed,g=l.x,v=g===void 0?0:g,x=l.y,d=x===void 0?0:x,w=typeof y=="function"?y({x:v,y:d}):{x:v,y:d};v=w.x,d=w.y;var h=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=Ft,R=Mt,O=window;if(m){var C=Uo(r),U="clientHeight",M="clientWidth";if(C===Gt(r)&&(C=xn(r),Xr(C).position!=="static"&&c==="absolute"&&(U="scrollHeight",M="scrollWidth")),C=C,s===Mt||(s===Ft||s===sr)&&a===Co){R=or;var D=p&&C===O&&O.visualViewport?O.visualViewport.height:C[U];d-=D-i.height,d*=f?1:-1}if(s===Ft||(s===Mt||s===or)&&a===Co){E=sr;var q=p&&C===O&&O.visualViewport?O.visualViewport.width:C[M];v-=q-i.width,v*=f?1:-1}}var N=Object.assign({position:c},m&&lA),L=y===!0?cA({x:v,y:d},Gt(r)):{x:v,y:d};if(v=L.x,d=L.y,f){var B;return Object.assign({},N,(B={},B[R]=S?"0":"",B[E]=h?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+v+"px, "+d+"px)":"translate3d("+v+"px, "+d+"px, 0)",B))}return Object.assign({},N,(t={},t[R]=S?d+"px":"",t[E]=h?v+"px":"",t.transform="",t))}function fA(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,f=c===void 0?!0:c,m={placement:Cr(t.placement),variation:Oi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_h(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_h(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fA,data:{}};var zs={passive:!0};function pA(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,l=i.resize,c=l===void 0?!0:l,f=Gt(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&m.forEach(function(y){y.addEventListener("scroll",r.update,zs)}),c&&f.addEventListener("resize",r.update,zs),function(){a&&m.forEach(function(y){y.removeEventListener("scroll",r.update,zs)}),c&&f.removeEventListener("resize",r.update,zs)}}const hA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pA,data:{}};var gA={left:"right",right:"left",bottom:"top",top:"bottom"};function ua(e){return e.replace(/left|right|bottom|top/g,function(t){return gA[t]})}var mA={start:"end",end:"start"};function Oh(e){return e.replace(/start|end/g,function(t){return mA[t]})}function Kc(e){var t=Gt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Vc(e){return _i(xn(e)).left+Kc(e).scrollLeft}function vA(e,t){var r=Gt(e),i=xn(e),s=r.visualViewport,a=i.clientWidth,l=i.clientHeight,c=0,f=0;if(s){a=s.width,l=s.height;var m=iv();(m||!m&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:l,x:c+Vc(e),y:f}}function yA(e){var t,r=xn(e),i=Kc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Un(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=Un(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+Vc(e),f=-i.scrollTop;return Xr(s||r).direction==="rtl"&&(c+=Un(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:l,x:c,y:f}}function Xc(e){var t=Xr(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function lv(e){return["html","body","#document"].indexOf($r(e))>=0?e.ownerDocument.body:ir(e)&&Xc(e)?e:lv(Ma(e))}function Ao(e,t){var r;t===void 0&&(t=[]);var i=lv(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Gt(i),l=s?[a].concat(a.visualViewport||[],Xc(i)?i:[]):i,c=t.concat(l);return s?c:c.concat(Ao(Ma(l)))}function gc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bA(e,t){var r=_i(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ah(e,t,r){return t===rv?gc(vA(e,r)):Hn(t)?bA(t,r):gc(yA(xn(e)))}function wA(e){var t=Ao(Ma(e)),r=["absolute","fixed"].indexOf(Xr(e).position)>=0,i=r&&ir(e)?Uo(e):e;return Hn(i)?t.filter(function(s){return Hn(s)&&ov(s,i)&&$r(s)!=="body"}):[]}function xA(e,t,r,i){var s=t==="clippingParents"?wA(e):[].concat(t),a=[].concat(s,[r]),l=a[0],c=a.reduce(function(f,m){var y=Ah(e,m,i);return f.top=Un(y.top,f.top),f.right=wa(y.right,f.right),f.bottom=wa(y.bottom,f.bottom),f.left=Un(y.left,f.left),f},Ah(e,l,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function cv(e){var t=e.reference,r=e.element,i=e.placement,s=i?Cr(i):null,a=i?Oi(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(s){case Mt:f={x:l,y:t.y-r.height};break;case or:f={x:l,y:t.y+t.height};break;case sr:f={x:t.x+t.width,y:c};break;case Ft:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var m=s?Gc(s):null;if(m!=null){var y=m==="y"?"height":"width";switch(a){case Si:f[m]=f[m]-(t[y]/2-r[y]/2);break;case Co:f[m]=f[m]+(t[y]/2-r[y]/2);break}}return f}function ko(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=i===void 0?e.placement:i,a=r.strategy,l=a===void 0?e.strategy:a,c=r.boundary,f=c===void 0?WO:c,m=r.rootBoundary,y=m===void 0?rv:m,p=r.elementContext,g=p===void 0?Zi:p,v=r.altBoundary,x=v===void 0?!1:v,d=r.padding,w=d===void 0?0:d,h=av(typeof w!="number"?w:uv(w,Wo)),S=g===Zi?UO:Zi,E=e.rects.popper,R=e.elements[x?S:g],O=xA(Hn(R)?R:R.contextElement||xn(e.elements.popper),f,y,l),C=_i(e.elements.reference),U=cv({reference:C,element:E,placement:s}),M=gc(Object.assign({},E,U)),D=g===Zi?M:C,q={top:O.top-D.top+h.top,bottom:D.bottom-O.bottom+h.bottom,left:O.left-D.left+h.left,right:D.right-O.right+h.right},N=e.modifiersData.offset;if(g===Zi&&N){var L=N[s];Object.keys(q).forEach(function(B){var Z=[sr,or].indexOf(B)>=0?1:-1,k=[Mt,or].indexOf(B)>=0?"y":"x";q[B]+=L[k]*Z})}return q}function SA(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,m=f===void 0?nv:f,y=Oi(i),p=y?c?Sh:Sh.filter(function(x){return Oi(x)===y}):Wo,g=p.filter(function(x){return m.indexOf(x)>=0});g.length===0&&(g=p);var v=g.reduce(function(x,d){return x[d]=ko(e,{placement:d,boundary:s,rootBoundary:a,padding:l})[Cr(d)],x},{});return Object.keys(v).sort(function(x,d){return v[x]-v[d]})}function EA(e){if(Cr(e)===Hc)return[];var t=ua(e);return[Oh(e),t,Oh(t)]}function _A(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,c=l===void 0?!0:l,f=r.fallbackPlacements,m=r.padding,y=r.boundary,p=r.rootBoundary,g=r.altBoundary,v=r.flipVariations,x=v===void 0?!0:v,d=r.allowedAutoPlacements,w=t.options.placement,h=Cr(w),S=h===w,E=f||(S||!x?[ua(w)]:EA(w)),R=[w].concat(E).reduce(function(ie,he){return ie.concat(Cr(he)===Hc?SA(t,{placement:he,boundary:y,rootBoundary:p,padding:m,flipVariations:x,allowedAutoPlacements:d}):he)},[]),O=t.rects.reference,C=t.rects.popper,U=new Map,M=!0,D=R[0],q=0;q<R.length;q++){var N=R[q],L=Cr(N),B=Oi(N)===Si,Z=[Mt,or].indexOf(L)>=0,k=Z?"width":"height",Q=ko(t,{placement:N,boundary:y,rootBoundary:p,altBoundary:g,padding:m}),J=Z?B?sr:Ft:B?or:Mt;O[k]>C[k]&&(J=ua(J));var re=ua(J),ce=[];if(a&&ce.push(Q[L]<=0),c&&ce.push(Q[J]<=0,Q[re]<=0),ce.every(function(ie){return ie})){D=N,M=!1;break}U.set(N,ce)}if(M)for(var G=x?3:1,te=function(he){var fe=R.find(function(ve){var xe=U.get(ve);if(xe)return xe.slice(0,he).every(function(Ae){return Ae})});if(fe)return D=fe,"break"},ne=G;ne>0;ne--){var ue=te(ne);if(ue==="break")break}t.placement!==D&&(t.modifiersData[i]._skip=!0,t.placement=D,t.reset=!0)}}const OA={name:"flip",enabled:!0,phase:"main",fn:_A,requiresIfExists:["offset"],data:{_skip:!1}};function Th(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Rh(e){return[Mt,sr,or,Ft].some(function(t){return e[t]>=0})}function AA(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,l=ko(t,{elementContext:"reference"}),c=ko(t,{altBoundary:!0}),f=Th(l,i),m=Th(c,s,a),y=Rh(f),p=Rh(m);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:m,isReferenceHidden:y,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":p})}const TA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AA};function RA(e,t,r){var i=Cr(e),s=[Ft,Mt].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*s,[Ft,sr].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function PA(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,l=nv.reduce(function(y,p){return y[p]=RA(p,t.rects,a),y},{}),c=l[t.placement],f=c.x,m=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=m),t.modifiersData[i]=l}const CA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:PA};function kA(e){var t=e.state,r=e.name;t.modifiersData[r]=cv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const $A={name:"popperOffsets",enabled:!0,phase:"read",fn:kA,data:{}};function IA(e){return e==="x"?"y":"x"}function LA(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,c=l===void 0?!1:l,f=r.boundary,m=r.rootBoundary,y=r.altBoundary,p=r.padding,g=r.tether,v=g===void 0?!0:g,x=r.tetherOffset,d=x===void 0?0:x,w=ko(t,{boundary:f,rootBoundary:m,padding:p,altBoundary:y}),h=Cr(t.placement),S=Oi(t.placement),E=!S,R=Gc(h),O=IA(R),C=t.modifiersData.popperOffsets,U=t.rects.reference,M=t.rects.popper,D=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,q=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(C){if(a){var B,Z=R==="y"?Mt:Ft,k=R==="y"?or:sr,Q=R==="y"?"height":"width",J=C[R],re=J+w[Z],ce=J-w[k],G=v?-M[Q]/2:0,te=S===Si?U[Q]:M[Q],ne=S===Si?-M[Q]:-U[Q],ue=t.elements.arrow,ie=v&&ue?Zc(ue):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sv(),fe=he[Z],ve=he[k],xe=Oo(0,U[Q],ie[Q]),Ae=E?U[Q]/2-G-xe-fe-q.mainAxis:te-xe-fe-q.mainAxis,_e=E?-U[Q]/2+G+xe+ve+q.mainAxis:ne+xe+ve+q.mainAxis,ot=t.elements.arrow&&Uo(t.elements.arrow),oe=ot?R==="y"?ot.clientTop||0:ot.clientLeft||0:0,ct=(B=N==null?void 0:N[R])!=null?B:0,Mr=J+Ae-ct-oe,bt=J+_e-ct,Yr=Oo(v?wa(re,Mr):re,J,v?Un(ce,bt):ce);C[R]=Yr,L[R]=Yr-J}if(c){var Vo,ar=R==="x"?Mt:Ft,Xo=R==="x"?or:sr,Fr=C[O],yr=O==="y"?"height":"width",Pt=Fr+w[ar],Jr=Fr-w[Xo],Qr=[Mt,Ft].indexOf(h)!==-1,Yo=(Vo=N==null?void 0:N[O])!=null?Vo:0,en=Qr?Pt:Fr-U[yr]-M[yr]-Yo+q.altAxis,Jo=Qr?Fr+U[yr]+M[yr]-Yo-q.altAxis:Jr,tn=v&&Qr?iA(en,Fr,Jo):Oo(v?en:Pt,Fr,v?Jo:Jr);C[O]=tn,L[O]=tn-Fr}t.modifiersData[i]=L}}const MA={name:"preventOverflow",enabled:!0,phase:"main",fn:LA,requiresIfExists:["offset"]};function FA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DA(e){return e===Gt(e)||!ir(e)?Kc(e):FA(e)}function NA(e){var t=e.getBoundingClientRect(),r=Ei(t.width)/e.offsetWidth||1,i=Ei(t.height)/e.offsetHeight||1;return r!==1||i!==1}function jA(e,t,r){r===void 0&&(r=!1);var i=ir(t),s=ir(t)&&NA(t),a=xn(t),l=_i(e,s,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&(($r(t)!=="body"||Xc(a))&&(c=DA(t)),ir(t)?(f=_i(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Vc(a))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function zA(e){var t=new Map,r=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&s(f)}}),i.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),i}function WA(e){var t=zA(e);return JO.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function UA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function BA(e){var t=e.reduce(function(r,i){var s=r[i.name];return r[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ph={placement:"bottom",modifiers:[],strategy:"absolute"};function Ch(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function HA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Ph:s;return function(c,f,m){m===void 0&&(m=a);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ph,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},p=[],g=!1,v={state:y,setOptions:function(h){var S=typeof h=="function"?h(y.options):h;d(),y.options=Object.assign({},a,y.options,S),y.scrollParents={reference:Hn(c)?Ao(c):c.contextElement?Ao(c.contextElement):[],popper:Ao(f)};var E=WA(BA([].concat(i,y.options.modifiers)));return y.orderedModifiers=E.filter(function(R){return R.enabled}),x(),v.update()},forceUpdate:function(){if(!g){var h=y.elements,S=h.reference,E=h.popper;if(Ch(S,E)){y.rects={reference:jA(S,Uo(E),y.options.strategy==="fixed"),popper:Zc(E)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(q){return y.modifiersData[q.name]=Object.assign({},q.data)});for(var R=0;R<y.orderedModifiers.length;R++){if(y.reset===!0){y.reset=!1,R=-1;continue}var O=y.orderedModifiers[R],C=O.fn,U=O.options,M=U===void 0?{}:U,D=O.name;typeof C=="function"&&(y=C({state:y,options:M,name:D,instance:v})||y)}}}},update:UA(function(){return new Promise(function(w){v.forceUpdate(),w(y)})}),destroy:function(){d(),g=!0}};if(!Ch(c,f))return v;v.setOptions(m).then(function(w){!g&&m.onFirstUpdate&&m.onFirstUpdate(w)});function x(){y.orderedModifiers.forEach(function(w){var h=w.name,S=w.options,E=S===void 0?{}:S,R=w.effect;if(typeof R=="function"){var O=R({state:y,name:h,instance:v,options:E}),C=function(){};p.push(O||C)}})}function d(){p.forEach(function(w){return w()}),p=[]}return v}}var qA=[hA,$A,dA,tA,CA,OA,MA,uA,TA],ZA=HA({defaultModifiers:qA}),Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var El,kh;function GA(){if(kh)return El;kh=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){if(a.constructor!==l.constructor)return!1;var c,f,m;if(Array.isArray(a)){if(c=a.length,c!=l.length)return!1;for(f=c;f--!==0;)if(!s(a[f],l[f]))return!1;return!0}var y;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(y=a.entries();!(f=y.next()).done;)if(!l.has(f.value[0]))return!1;for(y=a.entries();!(f=y.next()).done;)if(!s(f.value[1],l.get(f.value[0])))return!1;return!0}if(r&&a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(y=a.entries();!(f=y.next()).done;)if(!l.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(l)){if(c=a.length,c!=l.length)return!1;for(f=c;f--!==0;)if(a[f]!==l[f])return!1;return!0}if(a.constructor===RegExp)return a.source===l.source&&a.flags===l.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof l.valueOf=="function")return a.valueOf()===l.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof l.toString=="function")return a.toString()===l.toString();if(m=Object.keys(a),c=m.length,c!==Object.keys(l).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(l,m[f]))return!1;if(e&&a instanceof Element)return!1;for(f=c;f--!==0;)if(!((m[f]==="_owner"||m[f]==="__v"||m[f]==="__o")&&a.$$typeof)&&!s(a[m[f]],l[m[f]]))return!1;return!0}return a!==a&&l!==l}return El=function(l,c){try{return s(l,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},El}var KA=GA();const VA=fv(KA);var XA=[],dv=function(t,r,i){i===void 0&&(i={});var s=$.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||XA},l=$.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],f=l[1],m=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var x=v.state,d=Object.keys(x.elements);zO.flushSync(function(){f({styles:wh(d.map(function(w){return[w,x.styles[w]||{}]})),attributes:wh(d.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),y=$.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[m,{name:"applyStyles",enabled:!1}])};return VA(s.current,g)?s.current||g:(s.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,m]),p=$.useRef();return xh(function(){p.current&&p.current.setOptions(y)},[y]),xh(function(){if(!(t==null||r==null)){var g=i.createPopper||ZA,v=g(t,r,y);return p.current=v,function(){v.destroy(),p.current=null}}},[t,r,i.createPopper]),{state:p.current?p.current.state:null,styles:c.styles,attributes:c.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const pv=e=>F.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),hv=W.forwardRef(({children:e,style:t,attributes:r},i)=>F.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),YA=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,l]=W.useState(null),{styles:c,attributes:f}=dv(e,a,{placement:t||"bottom-start"}),m=W.useCallback(()=>{s&&s()},[s]);return r?F.jsxs(tv,{children:[F.jsx(pv,{onClick:()=>m()}),F.jsx(hv,{ref:l,style:c.popper,attributes:f.popper,children:i})]}):null};var _l={exports:{}};/*!
1
+ "use strict";var zO=Object.defineProperty;var yh=e=>{throw TypeError(e)};var WO=(e,t,r)=>t in e?zO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ye=(e,t,r)=>WO(e,typeof t!="symbol"?t+"":t,r),xl=(e,t,r)=>t.has(e)||yh("Cannot "+r);var Y=(e,t,r)=>(xl(e,t,"read from private field"),r?r.call(e):t.get(e)),gt=(e,t,r)=>t.has(e)?yh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),je=(e,t,r,i)=>(xl(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),de=(e,t,r)=>(xl(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react/jsx-runtime"),W=require("react"),zo=require("react-dom"),tt=require("@ws-ui/icons"),dc=require("@emotion/react"),UO=require("re-resizable");function ev(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const $=ev(W),BO=ev(zo),tv=({children:e,container:t=document.body})=>zo.createPortal(e,t);var bh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},wh=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,Mt="top",or="bottom",sr="right",Ft="left",Bc="auto",Wo=[Mt,or,sr,Ft],Si="start",Co="end",HO="clippingParents",rv="viewport",Zi="popper",qO="reference",xh=Wo.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Co])},[]),nv=[].concat(Wo,[Bc]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Co])},[]),ZO="beforeRead",GO="read",KO="afterRead",VO="beforeMain",XO="main",YO="afterMain",JO="beforeWrite",QO="write",eA="afterWrite",tA=[ZO,GO,KO,VO,XO,YO,JO,QO,eA];function Ir(e){return e?(e.nodeName||"").toLowerCase():null}function Gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hn(e){var t=Gt(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Hc(e){if(typeof ShadowRoot>"u")return!1;var t=Gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rA(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},s=t.attributes[r]||{},a=t.elements[r];!ir(a)||!Ir(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(u){var c=s[u];c===!1?a.removeAttribute(u):a.setAttribute(u,c===!0?"":c)}))})}function nA(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],a=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=u.reduce(function(f,m){return f[m]="",f},{});!ir(s)||!Ir(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const iA={name:"applyStyles",enabled:!0,phase:"write",fn:rA,effect:nA,requires:["computeStyles"]};function kr(e){return e.split("-")[0]}var Un=Math.max,ba=Math.min,Ei=Math.round;function pc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function iv(){return!/^((?!chrome|android).)*safari/i.test(pc())}function _i(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),s=1,a=1;t&&ir(e)&&(s=e.offsetWidth>0&&Ei(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ei(i.height)/e.offsetHeight||1);var u=Hn(e)?Gt(e):window,c=u.visualViewport,f=!iv()&&r,m=(i.left+(f&&c?c.offsetLeft:0))/s,y=(i.top+(f&&c?c.offsetTop:0))/a,p=i.width/s,g=i.height/a;return{width:p,height:g,top:y,right:m+p,bottom:y+g,left:m,x:m,y}}function qc(e){var t=_i(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function ov(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Hc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Yr(e){return Gt(e).getComputedStyle(e)}function oA(e){return["table","td","th"].indexOf(Ir(e))>=0}function Sn(e){return((Hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function La(e){return Ir(e)==="html"?e:e.assignedSlot||e.parentNode||(Hc(e)?e.host:null)||Sn(e)}function Sh(e){return!ir(e)||Yr(e).position==="fixed"?null:e.offsetParent}function sA(e){var t=/firefox/i.test(pc()),r=/Trident/i.test(pc());if(r&&ir(e)){var i=Yr(e);if(i.position==="fixed")return null}var s=La(e);for(Hc(s)&&(s=s.host);ir(s)&&["html","body"].indexOf(Ir(s))<0;){var a=Yr(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function Uo(e){for(var t=Gt(e),r=Sh(e);r&&oA(r)&&Yr(r).position==="static";)r=Sh(r);return r&&(Ir(r)==="html"||Ir(r)==="body"&&Yr(r).position==="static")?t:r||sA(e)||t}function Zc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oo(e,t,r){return Un(e,ba(t,r))}function aA(e,t,r){var i=Oo(e,t,r);return i>r?r:i}function sv(){return{top:0,right:0,bottom:0,left:0}}function av(e){return Object.assign({},sv(),e)}function uv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var uA=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,av(typeof t!="number"?t:uv(t,Wo))};function lA(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,c=kr(r.placement),f=Zc(c),m=[Ft,sr].indexOf(c)>=0,y=m?"height":"width";if(!(!a||!u)){var p=uA(s.padding,r),g=qc(a),v=f==="y"?Mt:Ft,x=f==="y"?or:sr,d=r.rects.reference[y]+r.rects.reference[f]-u[f]-r.rects.popper[y],w=u[f]-r.rects.reference[f],h=Uo(a),S=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0,E=d/2-w/2,R=p[v],O=S-g[y]-p[x],C=S/2-g[y]/2+E,U=Oo(R,C,O),M=f;r.modifiersData[i]=(t={},t[M]=U,t.centerOffset=U-C,t)}}function cA(e){var t=e.state,r=e.options,i=r.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||ov(t.elements.popper,s)&&(t.elements.arrow=s))}const fA={name:"arrow",enabled:!0,phase:"main",fn:lA,effect:cA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oi(e){return e.split("-")[1]}var dA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pA(e,t){var r=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Ei(r*s)/s||0,y:Ei(i*s)/s||0}}function Eh(e){var t,r=e.popper,i=e.popperRect,s=e.placement,a=e.variation,u=e.offsets,c=e.position,f=e.gpuAcceleration,m=e.adaptive,y=e.roundOffsets,p=e.isFixed,g=u.x,v=g===void 0?0:g,x=u.y,d=x===void 0?0:x,w=typeof y=="function"?y({x:v,y:d}):{x:v,y:d};v=w.x,d=w.y;var h=u.hasOwnProperty("x"),S=u.hasOwnProperty("y"),E=Ft,R=Mt,O=window;if(m){var C=Uo(r),U="clientHeight",M="clientWidth";if(C===Gt(r)&&(C=Sn(r),Yr(C).position!=="static"&&c==="absolute"&&(U="scrollHeight",M="scrollWidth")),C=C,s===Mt||(s===Ft||s===sr)&&a===Co){R=or;var D=p&&C===O&&O.visualViewport?O.visualViewport.height:C[U];d-=D-i.height,d*=f?1:-1}if(s===Ft||(s===Mt||s===or)&&a===Co){E=sr;var q=p&&C===O&&O.visualViewport?O.visualViewport.width:C[M];v-=q-i.width,v*=f?1:-1}}var N=Object.assign({position:c},m&&dA),L=y===!0?pA({x:v,y:d},Gt(r)):{x:v,y:d};if(v=L.x,d=L.y,f){var B;return Object.assign({},N,(B={},B[R]=S?"0":"",B[E]=h?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+v+"px, "+d+"px)":"translate3d("+v+"px, "+d+"px, 0)",B))}return Object.assign({},N,(t={},t[R]=S?d+"px":"",t[E]=h?v+"px":"",t.transform="",t))}function hA(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,a=r.adaptive,u=a===void 0?!0:a,c=r.roundOffsets,f=c===void 0?!0:c,m={placement:kr(t.placement),variation:Oi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Eh(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Eh(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hA,data:{}};var zs={passive:!0};function mA(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,u=i.resize,c=u===void 0?!0:u,f=Gt(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&m.forEach(function(y){y.addEventListener("scroll",r.update,zs)}),c&&f.addEventListener("resize",r.update,zs),function(){a&&m.forEach(function(y){y.removeEventListener("scroll",r.update,zs)}),c&&f.removeEventListener("resize",r.update,zs)}}const vA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mA,data:{}};var yA={left:"right",right:"left",bottom:"top",top:"bottom"};function ua(e){return e.replace(/left|right|bottom|top/g,function(t){return yA[t]})}var bA={start:"end",end:"start"};function _h(e){return e.replace(/start|end/g,function(t){return bA[t]})}function Gc(e){var t=Gt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Kc(e){return _i(Sn(e)).left+Gc(e).scrollLeft}function wA(e,t){var r=Gt(e),i=Sn(e),s=r.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,f=0;if(s){a=s.width,u=s.height;var m=iv();(m||!m&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:u,x:c+Kc(e),y:f}}function xA(e){var t,r=Sn(e),i=Gc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Un(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=Un(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+Kc(e),f=-i.scrollTop;return Yr(s||r).direction==="rtl"&&(c+=Un(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:c,y:f}}function Vc(e){var t=Yr(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function lv(e){return["html","body","#document"].indexOf(Ir(e))>=0?e.ownerDocument.body:ir(e)&&Vc(e)?e:lv(La(e))}function Ao(e,t){var r;t===void 0&&(t=[]);var i=lv(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Gt(i),u=s?[a].concat(a.visualViewport||[],Vc(i)?i:[]):i,c=t.concat(u);return s?c:c.concat(Ao(La(u)))}function hc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function SA(e,t){var r=_i(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Oh(e,t,r){return t===rv?hc(wA(e,r)):Hn(t)?SA(t,r):hc(xA(Sn(e)))}function EA(e){var t=Ao(La(e)),r=["absolute","fixed"].indexOf(Yr(e).position)>=0,i=r&&ir(e)?Uo(e):e;return Hn(i)?t.filter(function(s){return Hn(s)&&ov(s,i)&&Ir(s)!=="body"}):[]}function _A(e,t,r,i){var s=t==="clippingParents"?EA(e):[].concat(t),a=[].concat(s,[r]),u=a[0],c=a.reduce(function(f,m){var y=Oh(e,m,i);return f.top=Un(y.top,f.top),f.right=ba(y.right,f.right),f.bottom=ba(y.bottom,f.bottom),f.left=Un(y.left,f.left),f},Oh(e,u,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function cv(e){var t=e.reference,r=e.element,i=e.placement,s=i?kr(i):null,a=i?Oi(i):null,u=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(s){case Mt:f={x:u,y:t.y-r.height};break;case or:f={x:u,y:t.y+t.height};break;case sr:f={x:t.x+t.width,y:c};break;case Ft:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var m=s?Zc(s):null;if(m!=null){var y=m==="y"?"height":"width";switch(a){case Si:f[m]=f[m]-(t[y]/2-r[y]/2);break;case Co:f[m]=f[m]+(t[y]/2-r[y]/2);break}}return f}function ko(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=i===void 0?e.placement:i,a=r.strategy,u=a===void 0?e.strategy:a,c=r.boundary,f=c===void 0?HO:c,m=r.rootBoundary,y=m===void 0?rv:m,p=r.elementContext,g=p===void 0?Zi:p,v=r.altBoundary,x=v===void 0?!1:v,d=r.padding,w=d===void 0?0:d,h=av(typeof w!="number"?w:uv(w,Wo)),S=g===Zi?qO:Zi,E=e.rects.popper,R=e.elements[x?S:g],O=_A(Hn(R)?R:R.contextElement||Sn(e.elements.popper),f,y,u),C=_i(e.elements.reference),U=cv({reference:C,element:E,placement:s}),M=hc(Object.assign({},E,U)),D=g===Zi?M:C,q={top:O.top-D.top+h.top,bottom:D.bottom-O.bottom+h.bottom,left:O.left-D.left+h.left,right:D.right-O.right+h.right},N=e.modifiersData.offset;if(g===Zi&&N){var L=N[s];Object.keys(q).forEach(function(B){var Z=[sr,or].indexOf(B)>=0?1:-1,k=[Mt,or].indexOf(B)>=0?"y":"x";q[B]+=L[k]*Z})}return q}function OA(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,u=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,m=f===void 0?nv:f,y=Oi(i),p=y?c?xh:xh.filter(function(x){return Oi(x)===y}):Wo,g=p.filter(function(x){return m.indexOf(x)>=0});g.length===0&&(g=p);var v=g.reduce(function(x,d){return x[d]=ko(e,{placement:d,boundary:s,rootBoundary:a,padding:u})[kr(d)],x},{});return Object.keys(v).sort(function(x,d){return v[x]-v[d]})}function AA(e){if(kr(e)===Bc)return[];var t=ua(e);return[_h(e),t,_h(t)]}function TA(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,c=u===void 0?!0:u,f=r.fallbackPlacements,m=r.padding,y=r.boundary,p=r.rootBoundary,g=r.altBoundary,v=r.flipVariations,x=v===void 0?!0:v,d=r.allowedAutoPlacements,w=t.options.placement,h=kr(w),S=h===w,E=f||(S||!x?[ua(w)]:AA(w)),R=[w].concat(E).reduce(function(ie,he){return ie.concat(kr(he)===Bc?OA(t,{placement:he,boundary:y,rootBoundary:p,padding:m,flipVariations:x,allowedAutoPlacements:d}):he)},[]),O=t.rects.reference,C=t.rects.popper,U=new Map,M=!0,D=R[0],q=0;q<R.length;q++){var N=R[q],L=kr(N),B=Oi(N)===Si,Z=[Mt,or].indexOf(L)>=0,k=Z?"width":"height",Q=ko(t,{placement:N,boundary:y,rootBoundary:p,altBoundary:g,padding:m}),J=Z?B?sr:Ft:B?or:Mt;O[k]>C[k]&&(J=ua(J));var re=ua(J),ce=[];if(a&&ce.push(Q[L]<=0),c&&ce.push(Q[J]<=0,Q[re]<=0),ce.every(function(ie){return ie})){D=N,M=!1;break}U.set(N,ce)}if(M)for(var G=x?3:1,te=function(he){var fe=R.find(function(ve){var xe=U.get(ve);if(xe)return xe.slice(0,he).every(function(Ae){return Ae})});if(fe)return D=fe,"break"},ne=G;ne>0;ne--){var ue=te(ne);if(ue==="break")break}t.placement!==D&&(t.modifiersData[i]._skip=!0,t.placement=D,t.reset=!0)}}const RA={name:"flip",enabled:!0,phase:"main",fn:TA,requiresIfExists:["offset"],data:{_skip:!1}};function Ah(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Th(e){return[Mt,sr,or,Ft].some(function(t){return e[t]>=0})}function PA(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=ko(t,{elementContext:"reference"}),c=ko(t,{altBoundary:!0}),f=Ah(u,i),m=Ah(c,s,a),y=Th(f),p=Th(m);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:m,isReferenceHidden:y,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":p})}const CA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PA};function kA(e,t,r){var i=kr(e),s=[Ft,Mt].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],c=a[1];return u=u||0,c=(c||0)*s,[Ft,sr].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}function $A(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,u=nv.reduce(function(y,p){return y[p]=kA(p,t.rects,a),y},{}),c=u[t.placement],f=c.x,m=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=m),t.modifiersData[i]=u}const IA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$A};function LA(e){var t=e.state,r=e.name;t.modifiersData[r]=cv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const MA={name:"popperOffsets",enabled:!0,phase:"read",fn:LA,data:{}};function FA(e){return e==="x"?"y":"x"}function DA(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,c=u===void 0?!1:u,f=r.boundary,m=r.rootBoundary,y=r.altBoundary,p=r.padding,g=r.tether,v=g===void 0?!0:g,x=r.tetherOffset,d=x===void 0?0:x,w=ko(t,{boundary:f,rootBoundary:m,padding:p,altBoundary:y}),h=kr(t.placement),S=Oi(t.placement),E=!S,R=Zc(h),O=FA(R),C=t.modifiersData.popperOffsets,U=t.rects.reference,M=t.rects.popper,D=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,q=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(C){if(a){var B,Z=R==="y"?Mt:Ft,k=R==="y"?or:sr,Q=R==="y"?"height":"width",J=C[R],re=J+w[Z],ce=J-w[k],G=v?-M[Q]/2:0,te=S===Si?U[Q]:M[Q],ne=S===Si?-M[Q]:-U[Q],ue=t.elements.arrow,ie=v&&ue?qc(ue):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sv(),fe=he[Z],ve=he[k],xe=Oo(0,U[Q],ie[Q]),Ae=E?U[Q]/2-G-xe-fe-q.mainAxis:te-xe-fe-q.mainAxis,_e=E?-U[Q]/2+G+xe+ve+q.mainAxis:ne+xe+ve+q.mainAxis,ot=t.elements.arrow&&Uo(t.elements.arrow),oe=ot?R==="y"?ot.clientTop||0:ot.clientLeft||0:0,ct=(B=N==null?void 0:N[R])!=null?B:0,Fr=J+Ae-ct-oe,bt=J+_e-ct,Jr=Oo(v?ba(re,Fr):re,J,v?Un(ce,bt):ce);C[R]=Jr,L[R]=Jr-J}if(c){var Vo,ar=R==="x"?Mt:Ft,Xo=R==="x"?or:sr,Dr=C[O],yr=O==="y"?"height":"width",Pt=Dr+w[ar],Qr=Dr-w[Xo],en=[Mt,Ft].indexOf(h)!==-1,Yo=(Vo=N==null?void 0:N[O])!=null?Vo:0,tn=en?Pt:Dr-U[yr]-M[yr]-Yo+q.altAxis,Jo=en?Dr+U[yr]+M[yr]-Yo-q.altAxis:Qr,rn=v&&en?aA(tn,Dr,Jo):Oo(v?tn:Pt,Dr,v?Jo:Qr);C[O]=rn,L[O]=rn-Dr}t.modifiersData[i]=L}}const NA={name:"preventOverflow",enabled:!0,phase:"main",fn:DA,requiresIfExists:["offset"]};function jA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zA(e){return e===Gt(e)||!ir(e)?Gc(e):jA(e)}function WA(e){var t=e.getBoundingClientRect(),r=Ei(t.width)/e.offsetWidth||1,i=Ei(t.height)/e.offsetHeight||1;return r!==1||i!==1}function UA(e,t,r){r===void 0&&(r=!1);var i=ir(t),s=ir(t)&&WA(t),a=Sn(t),u=_i(e,s,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Ir(t)!=="body"||Vc(a))&&(c=zA(t)),ir(t)?(f=_i(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Kc(a))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function BA(e){var t=new Map,r=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&s(f)}}),i.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),i}function HA(e){var t=BA(e);return tA.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function qA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function ZA(e){var t=e.reduce(function(r,i){var s=r[i.name];return r[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Rh={placement:"bottom",modifiers:[],strategy:"absolute"};function Ph(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function GA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Rh:s;return function(c,f,m){m===void 0&&(m=a);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rh,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},p=[],g=!1,v={state:y,setOptions:function(h){var S=typeof h=="function"?h(y.options):h;d(),y.options=Object.assign({},a,y.options,S),y.scrollParents={reference:Hn(c)?Ao(c):c.contextElement?Ao(c.contextElement):[],popper:Ao(f)};var E=HA(ZA([].concat(i,y.options.modifiers)));return y.orderedModifiers=E.filter(function(R){return R.enabled}),x(),v.update()},forceUpdate:function(){if(!g){var h=y.elements,S=h.reference,E=h.popper;if(Ph(S,E)){y.rects={reference:UA(S,Uo(E),y.options.strategy==="fixed"),popper:qc(E)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(q){return y.modifiersData[q.name]=Object.assign({},q.data)});for(var R=0;R<y.orderedModifiers.length;R++){if(y.reset===!0){y.reset=!1,R=-1;continue}var O=y.orderedModifiers[R],C=O.fn,U=O.options,M=U===void 0?{}:U,D=O.name;typeof C=="function"&&(y=C({state:y,options:M,name:D,instance:v})||y)}}}},update:qA(function(){return new Promise(function(w){v.forceUpdate(),w(y)})}),destroy:function(){d(),g=!0}};if(!Ph(c,f))return v;v.setOptions(m).then(function(w){!g&&m.onFirstUpdate&&m.onFirstUpdate(w)});function x(){y.orderedModifiers.forEach(function(w){var h=w.name,S=w.options,E=S===void 0?{}:S,R=w.effect;if(typeof R=="function"){var O=R({state:y,name:h,instance:v,options:E}),C=function(){};p.push(O||C)}})}function d(){p.forEach(function(w){return w()}),p=[]}return v}}var KA=[vA,MA,gA,iA,IA,RA,NA,fA,CA],VA=GA({defaultModifiers:KA}),Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sl,Ch;function XA(){if(Ch)return Sl;Ch=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,u){if(a===u)return!0;if(a&&u&&typeof a=="object"&&typeof u=="object"){if(a.constructor!==u.constructor)return!1;var c,f,m;if(Array.isArray(a)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(!s(a[f],u[f]))return!1;return!0}var y;if(t&&a instanceof Map&&u instanceof Map){if(a.size!==u.size)return!1;for(y=a.entries();!(f=y.next()).done;)if(!u.has(f.value[0]))return!1;for(y=a.entries();!(f=y.next()).done;)if(!s(f.value[1],u.get(f.value[0])))return!1;return!0}if(r&&a instanceof Set&&u instanceof Set){if(a.size!==u.size)return!1;for(y=a.entries();!(f=y.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(u)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(a[f]!==u[f])return!1;return!0}if(a.constructor===RegExp)return a.source===u.source&&a.flags===u.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof u.valueOf=="function")return a.valueOf()===u.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof u.toString=="function")return a.toString()===u.toString();if(m=Object.keys(a),c=m.length,c!==Object.keys(u).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,m[f]))return!1;if(e&&a instanceof Element)return!1;for(f=c;f--!==0;)if(!((m[f]==="_owner"||m[f]==="__v"||m[f]==="__o")&&a.$$typeof)&&!s(a[m[f]],u[m[f]]))return!1;return!0}return a!==a&&u!==u}return Sl=function(u,c){try{return s(u,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Sl}var YA=XA();const JA=fv(YA);var QA=[],dv=function(t,r,i){i===void 0&&(i={});var s=$.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||QA},u=$.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=u[0],f=u[1],m=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var x=v.state,d=Object.keys(x.elements);BO.flushSync(function(){f({styles:bh(d.map(function(w){return[w,x.styles[w]||{}]})),attributes:bh(d.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),y=$.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[m,{name:"applyStyles",enabled:!1}])};return JA(s.current,g)?s.current||g:(s.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,m]),p=$.useRef();return wh(function(){p.current&&p.current.setOptions(y)},[y]),wh(function(){if(!(t==null||r==null)){var g=i.createPopper||VA,v=g(t,r,y);return p.current=v,function(){v.destroy(),p.current=null}}},[t,r,i.createPopper]),{state:p.current?p.current.state:null,styles:c.styles,attributes:c.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const pv=e=>F.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),hv=W.forwardRef(({children:e,style:t,attributes:r},i)=>F.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),eT=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,u]=W.useState(null),{styles:c,attributes:f}=dv(e,a,{placement:t||"bottom-start"}),m=W.useCallback(()=>{s&&s()},[s]);return r?F.jsxs(tv,{children:[F.jsx(pv,{onClick:()=>m()}),F.jsx(hv,{ref:u,style:c.popper,attributes:f.popper,children:i})]}):null};var El={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 $h;function gv(){return $h||($h=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=s(a,i(c)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)t.call(a,c)&&a[c]&&(l=s(l,c));return l}function s(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(_l)),_l.exports}var JA=gv();const He=fv(JA);function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},jn.apply(this,arguments)}const QA=["children","options"],Ih=["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,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Lh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},eT=["style","script","pre"],tT=["src","href","data","formAction","srcDoc","action"],rT=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,nT=/\n{2,}$/,Mh=/^(\s*>[\s\S]*?)(?=\n\n|$)/,iT=/^ *> ?/gm,oT=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,sT=/^ {2,}\n/,aT=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Fh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Dh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,uT=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,lT=/^(?:\n *)*\n/,cT=/\r\n?/g,fT=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,dT=/^\[\^([^\]]+)]/,pT=/\f/g,hT=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,gT=/^\s*?\[(x|\s)\]/,Nh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,jh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zh=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ol=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,mT=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Wh=/^<!--[\s\S]*?(?:-->)/,vT=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Al=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,yT=/^\{.*\}$/,bT=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,wT=/^<([^ >]+[:@\/][^ >]+)>/,xT=/-([a-z])?/gi,Uh=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,ST=/^[^\n]+(?: \n|\n{2,})/,ET=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,_T=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,OT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,AT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,TT=/\t/g,RT=/(^ *\||\| *$)/g,PT=/^ *:-+: *$/,CT=/^ *:-+ *$/,kT=/^ *-+: *$/,Fa=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Da="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",$T=RegExp(`^([*_])\\1${Fa(1)}${Da}\\1\\1(?!\\1)`),IT=RegExp(`^([*_])${Fa(0)}${Da}\\1(?!\\1)`),LT=RegExp(`^(==)${Fa(0)}${Da}\\1`),MT=RegExp(`^(~~)${Fa(0)}${Da}\\1`),FT=/^(:[a-zA-Z0-9-_]+:)/,DT=/^\\([^0-9A-Za-z\s])/,NT=/\\([^0-9A-Za-z\s])/g,jT=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,zT=/^\n+/,WT=/^([ \t]*)/,UT=/(?:^|\n)( *)$/,Yc="(?:\\d+\\.)",Jc="(?:[*+-])";function mv(e){return"( *)("+(e===1?Yc:Jc)+") +"}const vv=mv(1),yv=mv(2);function bv(e){return RegExp("^"+(e===1?vv:yv))}const BT=bv(1),HT=bv(2);function wv(e){return RegExp("^"+(e===1?vv:yv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Yc:Jc)+" )[^\\n]*)*(\\n|$)","gm")}const qT=wv(1),ZT=wv(2);function xv(e){const t=e===1?Yc:Jc;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Sv=xv(1),Ev=xv(2);function Bh(e,t){const r=t===1,i=r?Sv:Ev,s=r?qT:ZT,a=r?BT:HT;return{t:l=>a.test(l),o:Ai(function(l,c){const f=UT.exec(c.prevCapture);return f&&(c.list||!c.inline&&!c.simple)?i.exec(l=f[1]+l):null}),i:1,u(l,c,f){const m=r?+l[2]:void 0,y=l[0].replace(nT,`
5
+ */var kh;function gv(){return kh||(kh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(a=s(a,i(c)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var u="";for(var c in a)t.call(a,c)&&a[c]&&(u=s(u,c));return u}function s(a,u){return u?a?a+" "+u:a+u:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(El)),El.exports}var tT=gv();const He=fv(tT);function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},jn.apply(this,arguments)}const rT=["children","options"],$h=["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,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Ih={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},nT=["style","script","pre"],iT=["src","href","data","formAction","srcDoc","action"],oT=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,sT=/\n{2,}$/,Lh=/^(\s*>[\s\S]*?)(?=\n\n|$)/,aT=/^ *> ?/gm,uT=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,lT=/^ {2,}\n/,cT=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Mh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Fh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,fT=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,dT=/^(?:\n *)*\n/,pT=/\r\n?/g,hT=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,gT=/^\[\^([^\]]+)]/,mT=/\f/g,vT=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,yT=/^\s*?\[(x|\s)\]/,Dh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Nh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,jh=/^([^\n]+)\n *(=|-)\2{2,} *\n/,_l=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,bT=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,zh=/^<!--[\s\S]*?(?:-->)/,wT=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ol=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,xT=/^\{.*\}$/,ST=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ET=/^<([^ >]+[:@\/][^ >]+)>/,_T=/-([a-z])?/gi,Wh=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,OT=/^[^\n]+(?: \n|\n{2,})/,AT=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,TT=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,RT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,PT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,CT=/\t/g,kT=/(^ *\||\| *$)/g,$T=/^ *:-+: *$/,IT=/^ *:-+ *$/,LT=/^ *-+: *$/,Ma=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Fa="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",MT=RegExp(`^([*_])\\1${Ma(1)}${Fa}\\1\\1(?!\\1)`),FT=RegExp(`^([*_])${Ma(0)}${Fa}\\1(?!\\1)`),DT=RegExp(`^(==)${Ma(0)}${Fa}\\1`),NT=RegExp(`^(~~)${Ma(0)}${Fa}\\1`),jT=/^(:[a-zA-Z0-9-_]+:)/,zT=/^\\([^0-9A-Za-z\s])/,WT=/\\([^0-9A-Za-z\s])/g,UT=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,BT=/^\n+/,HT=/^([ \t]*)/,qT=/(?:^|\n)( *)$/,Xc="(?:\\d+\\.)",Yc="(?:[*+-])";function mv(e){return"( *)("+(e===1?Xc:Yc)+") +"}const vv=mv(1),yv=mv(2);function bv(e){return RegExp("^"+(e===1?vv:yv))}const ZT=bv(1),GT=bv(2);function wv(e){return RegExp("^"+(e===1?vv:yv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Xc:Yc)+" )[^\\n]*)*(\\n|$)","gm")}const KT=wv(1),VT=wv(2);function xv(e){const t=e===1?Xc:Yc;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Sv=xv(1),Ev=xv(2);function Uh(e,t){const r=t===1,i=r?Sv:Ev,s=r?KT:VT,a=r?ZT:GT;return{t:u=>a.test(u),o:Ai(function(u,c){const f=qT.exec(c.prevCapture);return f&&(c.list||!c.inline&&!c.simple)?i.exec(u=f[1]+u):null}),i:1,u(u,c,f){const m=r?+u[2]:void 0,y=u[0].replace(sT,`
6
6
  `).match(s);let p=!1;return{items:y.map(function(g,v){const x=a.exec(g)[0].length,d=RegExp("^ {1,"+x+"}","gm"),w=g.replace(d,"").replace(a,""),h=v===y.length-1,S=w.indexOf(`
7
7
 
8
8
  `)!==-1||h&&p;p=S;const E=f.inline,R=f.list;let O;f.list=!0,S?(f.inline=!1,O=To(w)+`
9
9
 
10
- `):(f.inline=!0,O=To(w));const C=c(O,f);return f.inline=E,f.list=R,C}),ordered:r,start:m}},l:(l,c,f)=>e(l.ordered?"ol":"ul",{key:f.key,start:l.type==="20"?l.start:void 0},l.items.map(function(m,y){return e("li",{key:y},c(m,f))}))}}const GT=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),KT=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Hh(e){return typeof e=="string"}function To(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function la(e,t){return e.startsWith(t)}function VT(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(la(e,r[i]))return!0;return!1}return r(e,t)}function Gi(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 XT(e){return kT.test(e)?"right":PT.test(e)?"center":CT.test(e)?"left":null}function qh(e,t,r,i){const s=r.inTable;r.inTable=!0;let a=[[]],l="";function c(){if(!l)return;const f=a[a.length-1];f.push.apply(f,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,m,y)=>{f.trim()==="|"&&(c(),i)?m!==0&&m!==y.length-1&&a.push([]):l+=f}),c(),r.inTable=s,a}function YT(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(RT,"").split("|").map(XT):[],s=e[3]?(function(l,c,f){return l.trim().split(`
11
- `).map(function(m){return qh(m,c,f,!0)})})(e[3],t,r):[],a=qh(e[1],t,r,!!s.length);return r.inline=!1,s.length?{align:i,cells:s,header:a,type:"25"}:{children:a,type:"21"}}function Zh(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Ai(e){return e.inline=1,e}function Ln(e){return Ai(function(t,r){return r.inline?e.exec(t):null})}function dn(e){return Ai(function(t,r){return r.inline||r.simple?e.exec(t):null})}function qr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Us(e){return Ai(function(t){return e.exec(t)})}const JT=/(javascript|vbscript|data(?!:image)):/i;function QT(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(JT.test(t))return null}catch{return null}return e}function Sr(e){return e&&e.replace(NT,"$1")}function ca(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function eR(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function tR(e,t,r){const i=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=i,s}const Tl=(e,t,r)=>({children:ca(t,e[2],r)});function Rl(){return{}}function Pl(){return null}function rR(...e){return e.filter(Boolean).join(" ")}function Cl(e,t,r){let i=e;const s=t.split(".");for(;s.length&&(i=i[s[0]],i!==void 0);)s.shift();return i||r}function nR(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?jn({},Lh,t.namedCodesToUnicode):Lh;const r=t.slugify||Gi,i=t.sanitizer||QT,s=t.createElement||$.createElement,a=[Mh,Fh,Dh,t.enforceAtxHeadings?jh:Nh,zh,Uh,Sv,Ev],l=[...a,ST,Ol,Wh,Al];function c(h,S){for(let E=0;E<h.length;E++)if(h[E].test(S))return!0;return!1}function f(h,S,...E){const R=Cl(t.overrides,h+".props",{});return s((function(O,C){const U=Cl(C,O);return U?typeof U=="function"||typeof U=="object"&&"render"in U?U:Cl(C,O+".component",O):O})(h,t.overrides),jn({},S,R,{className:rR(S==null?void 0:S.className,R.className)||void 0}),...E)}function m(h){h=h.replace(hT,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=AT.test(h)===!1);const E=d(x(S?h:To(h).replace(zT,"")+`
10
+ `):(f.inline=!0,O=To(w));const C=c(O,f);return f.inline=E,f.list=R,C}),ordered:r,start:m}},l:(u,c,f)=>e(u.ordered?"ol":"ul",{key:f.key,start:u.type==="20"?u.start:void 0},u.items.map(function(m,y){return e("li",{key:y},c(m,f))}))}}const XT=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),YT=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Bh(e){return typeof e=="string"}function To(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function la(e,t){return e.startsWith(t)}function JT(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(la(e,r[i]))return!0;return!1}return r(e,t)}function Gi(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 QT(e){return LT.test(e)?"right":$T.test(e)?"center":IT.test(e)?"left":null}function Hh(e,t,r,i){const s=r.inTable;r.inTable=!0;let a=[[]],u="";function c(){if(!u)return;const f=a[a.length-1];f.push.apply(f,t(u,r)),u=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,m,y)=>{f.trim()==="|"&&(c(),i)?m!==0&&m!==y.length-1&&a.push([]):u+=f}),c(),r.inTable=s,a}function eR(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(kT,"").split("|").map(QT):[],s=e[3]?(function(u,c,f){return u.trim().split(`
11
+ `).map(function(m){return Hh(m,c,f,!0)})})(e[3],t,r):[],a=Hh(e[1],t,r,!!s.length);return r.inline=!1,s.length?{align:i,cells:s,header:a,type:"25"}:{children:a,type:"21"}}function qh(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Ai(e){return e.inline=1,e}function Mn(e){return Ai(function(t,r){return r.inline?e.exec(t):null})}function pn(e){return Ai(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Zr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Us(e){return Ai(function(t){return e.exec(t)})}const tR=/(javascript|vbscript|data(?!:image)):/i;function rR(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(tR.test(t))return null}catch{return null}return e}function Sr(e){return e&&e.replace(WT,"$1")}function ca(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function nR(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function iR(e,t,r){const i=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=i,s}const Al=(e,t,r)=>({children:ca(t,e[2],r)});function Tl(){return{}}function Rl(){return null}function oR(...e){return e.filter(Boolean).join(" ")}function Pl(e,t,r){let i=e;const s=t.split(".");for(;s.length&&(i=i[s[0]],i!==void 0);)s.shift();return i||r}function sR(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?jn({},Ih,t.namedCodesToUnicode):Ih;const r=t.slugify||Gi,i=t.sanitizer||rR,s=t.createElement||$.createElement,a=[Lh,Mh,Fh,t.enforceAtxHeadings?Nh:Dh,jh,Wh,Sv,Ev],u=[...a,OT,_l,zh,Ol];function c(h,S){for(let E=0;E<h.length;E++)if(h[E].test(S))return!0;return!1}function f(h,S,...E){const R=Pl(t.overrides,h+".props",{});return s((function(O,C){const U=Pl(C,O);return U?typeof U=="function"||typeof U=="object"&&"render"in U?U:Pl(C,O+".component",O):O})(h,t.overrides),jn({},S,R,{className:oR(S==null?void 0:S.className,R.className)||void 0}),...E)}function m(h){h=h.replace(vT,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=PT.test(h)===!1);const E=d(x(S?h:To(h).replace(BT,"")+`
12
12
 
13
- `,{inline:S}));for(;Hh(E[E.length-1])&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const R=t.wrapper||(S?"span":"div");let O;if(E.length>1||t.forceWrapper)O=E;else{if(E.length===1)return O=E[0],typeof O=="string"?f("span",{key:"outer"},O):O;O=null}return s(R,{key:"outer"},O)}function y(h,S){if(!S||!S.trim())return null;const E=S.match(rT);return E?E.reduce(function(R,O){const C=O.indexOf("=");if(C!==-1){const U=(function(N){return N.indexOf("-")!==-1&&N.match(vT)===null&&(N=N.replace(xT,function(L,B){return B.toUpperCase()})),N})(O.slice(0,C)).trim(),M=(function(N){const L=N[0];return(L==='"'||L==="'")&&N.length>=2&&N[N.length-1]===L?N.slice(1,-1):N})(O.slice(C+1).trim()),D=Ih[U]||U;if(D==="ref")return R;const q=R[D]=(function(N,L,B,Z){return L==="style"?(function(k){const Q=[];let J="",re=!1,ce=!1,G="";if(!k)return Q;for(let ne=0;ne<k.length;ne++){const ue=k[ne];if(ue!=='"'&&ue!=="'"||re||(ce?ue===G&&(ce=!1,G=""):(ce=!0,G=ue)),ue==="("&&J.endsWith("url")?re=!0:ue===")"&&re&&(re=!1),ue!==";"||ce||re)J+=ue;else{const ie=J.trim();if(ie){const he=ie.indexOf(":");if(he>0){const fe=ie.slice(0,he).trim(),ve=ie.slice(he+1).trim();Q.push([fe,ve])}}J=""}}const te=J.trim();if(te){const ne=te.indexOf(":");if(ne>0){const ue=te.slice(0,ne).trim(),ie=te.slice(ne+1).trim();Q.push([ue,ie])}}return Q})(B).reduce(function(k,[Q,J]){return k[Q.replace(/(-[a-z])/g,re=>re[1].toUpperCase())]=Z(J,N,Q),k},{}):tT.indexOf(L)!==-1?Z(Sr(B),N,L):(B.match(yT)&&(B=Sr(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)})(h,U,M,i);typeof q=="string"&&(Ol.test(q)||Al.test(q))&&(R[D]=m(q.trim()))}else O!=="style"&&(R[Ih[O]||O]=!0);return R},{}):null}const p=[],g={},v={0:{t:[">"],o:qr(Mh),i:1,u(h,S,E){const[,R,O]=h[0].replace(iT,"").match(oT);return{alert:R,children:S(O,E)}},l(h,S,E){const R={key:E.key};return h.alert&&(R.className="markdown-alert-"+r(h.alert.toLowerCase(),Gi),h.children.unshift({attrs:{},children:[{type:"27",text:h.alert}],noInnerParse:!0,type:"11",tag:"header"})),f("blockquote",R,S(h.children,E))}},1:{t:[" "],o:Us(sT),i:1,u:Rl,l:(h,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:qr(aT),i:1,u:Rl,l:(h,S,E)=>f("hr",{key:E.key})},3:{t:[" "],o:qr(Dh),i:0,u:h=>({lang:void 0,text:Sr(To(h[0].replace(/^ {4}/gm,"")))}),l:(h,S,E)=>f("pre",{key:E.key},f("code",jn({},h.attrs,{className:h.lang?"lang-"+h.lang:""}),h.text))},4:{t:["```","~~~"],o:qr(Fh),i:0,u:h=>({attrs:y("code",h[3]||""),lang:h[2]||void 0,text:h[4],type:"3"})},5:{t:["`"],o:dn(uT),i:3,u:h=>({text:Sr(h[2])}),l:(h,S,E)=>f("code",{key:E.key},h.text)},6:{t:["[^"],o:qr(fT),i:0,u:h=>(p.push({footnote:h[2],identifier:h[1]}),{}),l:Pl},7:{t:["[^"],o:Ln(dT),i:1,u:h=>({target:"#"+r(h[1],Gi),text:h[1]}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href")},f("sup",{key:E.key},h.text))},8:{t:["[ ]","[x]"],o:Ln(gT),i:1,u:h=>({completed:h[1].toLowerCase()==="x"}),l:(h,S,E)=>f("input",{checked:h.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:qr(t.enforceAtxHeadings?jh:Nh),i:1,u:(h,S,E)=>({children:ca(S,h[2],E),id:r(h[2],Gi),level:h[1].length}),l:(h,S,E)=>f("h"+h.level,{id:h.id,key:E.key},S(h.children,E))},10:{t:h=>{const S=h.indexOf(`
14
- `);return S>0&&S<h.length-1&&(h[S+1]==="="||h[S+1]==="-")},o:qr(zh),i:1,u:(h,S,E)=>({children:ca(S,h[1],E),level:h[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Us(Ol),i:1,u(h,S,E){const[,R]=h[3].match(WT),O=RegExp("^"+R,"gm"),C=h[3].replace(O,""),U=c(l,C)?tR:ca,M=h[1].toLowerCase(),D=eT.indexOf(M)!==-1,q=(D?M:h[1]).trim(),N={attrs:y(q,h[2]),noInnerParse:D,tag:q};if(E.inAnchor=E.inAnchor||M==="a",D)N.text=h[3];else{const L=E.inHTML;E.inHTML=!0,N.children=U(S,C,E),E.inHTML=L}return E.inAnchor=!1,N},l:(h,S,E)=>f(h.tag,jn({key:E.key},h.attrs),h.text||(h.children?S(h.children,E):""))},13:{t:["<"],o:Us(Al),i:1,u(h){const S=h[1].trim();return{attrs:y(S,h[2]||""),tag:S}},l:(h,S,E)=>f(h.tag,jn({},h.attrs,{key:E.key}))},12:{t:["<!--"],o:Us(Wh),i:1,u:()=>({}),l:Pl},14:{t:["!["],o:dn(KT),i:1,u:h=>({alt:Sr(h[1]),target:Sr(h[2]),title:Sr(h[3])}),l:(h,S,E)=>f("img",{key:E.key,alt:h.alt||void 0,title:h.title||void 0,src:i(h.target,"img","src")})},15:{t:["["],o:Ln(GT),i:3,u:(h,S,E)=>({children:eR(S,h[1],E),target:Sr(h[2]),title:Sr(h[3])}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href"),title:h.title},S(h.children,E))},16:{t:["<"],o:Ln(wT),i:0,u(h){let S=h[1],E=!1;return S.indexOf("@")!==-1&&S.indexOf("//")===-1&&(E=!0,S=S.replace("mailto:","")),{children:[{text:S,type:"27"}],target:E?"mailto:"+S:S,type:"15"}}},17:{t:(h,S)=>!S.inAnchor&&!t.disableAutoLink&&(la(h,"http://")||la(h,"https://")),o:Ln(bT),i:0,u:h=>({children:[{text:h[1],type:"27"}],target:h[1],title:void 0,type:"15"})},20:Bh(f,1),33:Bh(f,2),19:{t:[`
15
- `],o:qr(lT),i:3,u:Rl,l:()=>`
13
+ `,{inline:S}));for(;Bh(E[E.length-1])&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const R=t.wrapper||(S?"span":"div");let O;if(E.length>1||t.forceWrapper)O=E;else{if(E.length===1)return O=E[0],typeof O=="string"?f("span",{key:"outer"},O):O;O=null}return s(R,{key:"outer"},O)}function y(h,S){if(!S||!S.trim())return null;const E=S.match(oT);return E?E.reduce(function(R,O){const C=O.indexOf("=");if(C!==-1){const U=(function(N){return N.indexOf("-")!==-1&&N.match(wT)===null&&(N=N.replace(_T,function(L,B){return B.toUpperCase()})),N})(O.slice(0,C)).trim(),M=(function(N){const L=N[0];return(L==='"'||L==="'")&&N.length>=2&&N[N.length-1]===L?N.slice(1,-1):N})(O.slice(C+1).trim()),D=$h[U]||U;if(D==="ref")return R;const q=R[D]=(function(N,L,B,Z){return L==="style"?(function(k){const Q=[];let J="",re=!1,ce=!1,G="";if(!k)return Q;for(let ne=0;ne<k.length;ne++){const ue=k[ne];if(ue!=='"'&&ue!=="'"||re||(ce?ue===G&&(ce=!1,G=""):(ce=!0,G=ue)),ue==="("&&J.endsWith("url")?re=!0:ue===")"&&re&&(re=!1),ue!==";"||ce||re)J+=ue;else{const ie=J.trim();if(ie){const he=ie.indexOf(":");if(he>0){const fe=ie.slice(0,he).trim(),ve=ie.slice(he+1).trim();Q.push([fe,ve])}}J=""}}const te=J.trim();if(te){const ne=te.indexOf(":");if(ne>0){const ue=te.slice(0,ne).trim(),ie=te.slice(ne+1).trim();Q.push([ue,ie])}}return Q})(B).reduce(function(k,[Q,J]){return k[Q.replace(/(-[a-z])/g,re=>re[1].toUpperCase())]=Z(J,N,Q),k},{}):iT.indexOf(L)!==-1?Z(Sr(B),N,L):(B.match(xT)&&(B=Sr(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)})(h,U,M,i);typeof q=="string"&&(_l.test(q)||Ol.test(q))&&(R[D]=m(q.trim()))}else O!=="style"&&(R[$h[O]||O]=!0);return R},{}):null}const p=[],g={},v={0:{t:[">"],o:Zr(Lh),i:1,u(h,S,E){const[,R,O]=h[0].replace(aT,"").match(uT);return{alert:R,children:S(O,E)}},l(h,S,E){const R={key:E.key};return h.alert&&(R.className="markdown-alert-"+r(h.alert.toLowerCase(),Gi),h.children.unshift({attrs:{},children:[{type:"27",text:h.alert}],noInnerParse:!0,type:"11",tag:"header"})),f("blockquote",R,S(h.children,E))}},1:{t:[" "],o:Us(lT),i:1,u:Tl,l:(h,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Zr(cT),i:1,u:Tl,l:(h,S,E)=>f("hr",{key:E.key})},3:{t:[" "],o:Zr(Fh),i:0,u:h=>({lang:void 0,text:Sr(To(h[0].replace(/^ {4}/gm,"")))}),l:(h,S,E)=>f("pre",{key:E.key},f("code",jn({},h.attrs,{className:h.lang?"lang-"+h.lang:""}),h.text))},4:{t:["```","~~~"],o:Zr(Mh),i:0,u:h=>({attrs:y("code",h[3]||""),lang:h[2]||void 0,text:h[4],type:"3"})},5:{t:["`"],o:pn(fT),i:3,u:h=>({text:Sr(h[2])}),l:(h,S,E)=>f("code",{key:E.key},h.text)},6:{t:["[^"],o:Zr(hT),i:0,u:h=>(p.push({footnote:h[2],identifier:h[1]}),{}),l:Rl},7:{t:["[^"],o:Mn(gT),i:1,u:h=>({target:"#"+r(h[1],Gi),text:h[1]}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href")},f("sup",{key:E.key},h.text))},8:{t:["[ ]","[x]"],o:Mn(yT),i:1,u:h=>({completed:h[1].toLowerCase()==="x"}),l:(h,S,E)=>f("input",{checked:h.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Zr(t.enforceAtxHeadings?Nh:Dh),i:1,u:(h,S,E)=>({children:ca(S,h[2],E),id:r(h[2],Gi),level:h[1].length}),l:(h,S,E)=>f("h"+h.level,{id:h.id,key:E.key},S(h.children,E))},10:{t:h=>{const S=h.indexOf(`
14
+ `);return S>0&&S<h.length-1&&(h[S+1]==="="||h[S+1]==="-")},o:Zr(jh),i:1,u:(h,S,E)=>({children:ca(S,h[1],E),level:h[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Us(_l),i:1,u(h,S,E){const[,R]=h[3].match(HT),O=RegExp("^"+R,"gm"),C=h[3].replace(O,""),U=c(u,C)?iR:ca,M=h[1].toLowerCase(),D=nT.indexOf(M)!==-1,q=(D?M:h[1]).trim(),N={attrs:y(q,h[2]),noInnerParse:D,tag:q};if(E.inAnchor=E.inAnchor||M==="a",D)N.text=h[3];else{const L=E.inHTML;E.inHTML=!0,N.children=U(S,C,E),E.inHTML=L}return E.inAnchor=!1,N},l:(h,S,E)=>f(h.tag,jn({key:E.key},h.attrs),h.text||(h.children?S(h.children,E):""))},13:{t:["<"],o:Us(Ol),i:1,u(h){const S=h[1].trim();return{attrs:y(S,h[2]||""),tag:S}},l:(h,S,E)=>f(h.tag,jn({},h.attrs,{key:E.key}))},12:{t:["<!--"],o:Us(zh),i:1,u:()=>({}),l:Rl},14:{t:["!["],o:pn(YT),i:1,u:h=>({alt:Sr(h[1]),target:Sr(h[2]),title:Sr(h[3])}),l:(h,S,E)=>f("img",{key:E.key,alt:h.alt||void 0,title:h.title||void 0,src:i(h.target,"img","src")})},15:{t:["["],o:Mn(XT),i:3,u:(h,S,E)=>({children:nR(S,h[1],E),target:Sr(h[2]),title:Sr(h[3])}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href"),title:h.title},S(h.children,E))},16:{t:["<"],o:Mn(ET),i:0,u(h){let S=h[1],E=!1;return S.indexOf("@")!==-1&&S.indexOf("//")===-1&&(E=!0,S=S.replace("mailto:","")),{children:[{text:S,type:"27"}],target:E?"mailto:"+S:S,type:"15"}}},17:{t:(h,S)=>!S.inAnchor&&!t.disableAutoLink&&(la(h,"http://")||la(h,"https://")),o:Mn(ST),i:0,u:h=>({children:[{text:h[1],type:"27"}],target:h[1],title:void 0,type:"15"})},20:Uh(f,1),33:Uh(f,2),19:{t:[`
15
+ `],o:Zr(dT),i:3,u:Tl,l:()=>`
16
16
  `},21:{o:Ai(function(h,S){if(S.inline||S.simple||S.inHTML&&h.indexOf(`
17
17
 
18
18
  `)===-1&&S.prevCapture.indexOf(`
19
19
 
20
20
  `)===-1)return null;let E="",R=0;for(;;){const C=h.indexOf(`
21
- `,R),U=h.slice(R,C===-1?void 0:C+1);if(c(a,U)||(E+=U,C===-1||!U.trim()))break;R=C+1}const O=To(E);return O===""?null:[E,,O]}),i:3,u:Tl,l:(h,S,E)=>f("p",{key:E.key},S(h.children,E))},22:{t:["["],o:Ln(ET),i:0,u:h=>(g[h[1]]={target:h[2],title:h[4]},{}),l:Pl},23:{t:["!["],o:dn(_T),i:0,u:h=>({alt:h[1]?Sr(h[1]):void 0,ref:h[2]}),l:(h,S,E)=>g[h.ref]?f("img",{key:E.key,alt:h.alt,src:i(g[h.ref].target,"img","src"),title:g[h.ref].title}):null},24:{t:h=>h[0]==="["&&h.indexOf("](")===-1,o:Ln(OT),i:0,u:(h,S,E)=>({children:S(h[1],E),fallbackChildren:h[0],ref:h[2]}),l:(h,S,E)=>g[h.ref]?f("a",{key:E.key,href:i(g[h.ref].target,"a","href"),title:g[h.ref].title},S(h.children,E)):f("span",{key:E.key},h.fallbackChildren)},25:{t:["|"],o:qr(Uh),i:1,u:YT,l(h,S,E){const R=h;return f("table",{key:E.key},f("thead",null,f("tr",null,R.header.map(function(O,C){return f("th",{key:C,style:Zh(R,C)},S(O,E))}))),f("tbody",null,R.cells.map(function(O,C){return f("tr",{key:C},O.map(function(U,M){return f("td",{key:M,style:Zh(R,M)},S(U,E))}))})))}},27:{o:Ai(function(h,S){let E;return la(h,":")&&(E=FT.exec(h)),E||jT.exec(h)}),i:4,u(h){const S=h[0];return{text:S.indexOf("&")===-1?S:S.replace(mT,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:h=>h.text},28:{t:["**","__"],o:dn($T),i:2,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("strong",{key:E.key},S(h.children,E))},29:{t:h=>{const S=h[0];return(S==="*"||S==="_")&&h[1]!==S},o:dn(IT),i:3,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("em",{key:E.key},S(h.children,E))},30:{t:["\\"],o:dn(DT),i:1,u:h=>({text:h[1],type:"27"})},31:{t:["=="],o:dn(LT),i:3,u:Tl,l:(h,S,E)=>f("mark",{key:E.key},S(h.children,E))},32:{t:["~~"],o:dn(MT),i:3,u:Tl,l:(h,S,E)=>f("del",{key:E.key},S(h.children,E))}};t.disableParsingRawHTML===!0&&(delete v[11],delete v[13]);const x=(function(h){var S=Object.keys(h);function E(R,O){var C=[];if(O.prevCapture=O.prevCapture||"",R.trim())for(;R;)for(var U=0;U<S.length;){var M=S[U],D=h[M];if(!D.t||VT(R,O,D.t)){var q=D.o(R,O);if(q&&q[0]){R=R.substring(q[0].length);var N=D.u(q,E,O);O.prevCapture+=q[0],N.type||(N.type=M),C.push(N);break}U++}else U++}return O.prevCapture="",C}return S.sort(function(R,O){return h[R].i-h[O].i||(R<O?-1:1)}),function(R,O){return E((function(C){return C.replace(cT,`
22
- `).replace(pT,"").replace(TT," ")})(R),O)}})(v),d=(function(h,S){return function E(R,O={}){if(Array.isArray(R)){const C=O.key,U=[];let M=!1;for(let D=0;D<R.length;D++){O.key=D;const q=E(R[D],O),N=Hh(q);N&&M?U[U.length-1]+=q:q!==null&&U.push(q),M=N}return O.key=C,U}return(function(C,U,M){const D=h[C.type].l;return S?S(()=>D(C,U,M),C,U,M):D(C,U,M)})(R,E,O)}})(v,t.renderRule),w=m(e);return p.length?f("div",null,w,f("footer",{key:"footer"},p.map(function(h){return f("div",{id:r(h.identifier,Gi),key:h.identifier},h.identifier,d(x(h.footnote,{inline:!0})))}))):w}const xa=e=>{let{children:t,options:r}=e,i=(function(s,a){if(s==null)return{};var l,c,f={},m=Object.keys(s);for(c=0;c<m.length;c++)a.indexOf(l=m[c])>=0||(f[l]=s[l]);return f})(e,QA);return $.cloneElement(nR(t??"",r),i)},Gh=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return F.jsx(t,{className:He("flex-none size-6",r)});switch(e){case"error":case"danger":return F.jsx(tt.FdSanityCheckInfo,{className:He("flex-none size-6",r)});case"info":return F.jsx(F.Fragment,{children:F.jsx(tt.FdInfoBold,{className:He("flex-none size-6",r)})});case"warning":return F.jsx(F.Fragment,{children:F.jsx(tt.FdWarningDanger,{className:He("flex-none size-6",r)})});case"message":return F.jsx(F.Fragment,{children:F.jsx(tt.FdInfoBold,{className:He("flex-none size-6",r)})});default:return null}},iR=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const l=({className:c}={})=>F.jsx("button",{onClick:t,className:He("flex justify-center p-1",c),children:F.jsx(tt.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return F.jsx("div",{className:He("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?F.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[F.jsx("div",{className:"pt-1",children:F.jsx(Gh,{kind:r,customIcon:a})}),F.jsx("div",{className:"flex items-center gap-1 prose",children:s?F.jsx(xa,{children:i}):F.jsx(F.Fragment,{children:i})}),l()]}):F.jsxs("div",{className:"flex items-start",children:[F.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>F.jsxs(F.Fragment,{children:[c.title&&F.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[F.jsx(Gh,{kind:r,customIcon:a}),F.jsxs("span",{children:[c.title," :"]})]}),F.jsx("ul",{className:He("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>F.jsx("li",{children:s?F.jsx(xa,{children:f}):F.jsx(F.Fragment,{children:f})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},_v=({children:e,size:t,className:r,...i})=>F.jsx("div",{style:{"--width":`${t||24}px`},className:He("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var kl={},Ki={},Bs={},Kh;function Ov(){if(Kh)return Bs;Kh=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=r;let e;const t=new Uint8Array(16);function r(){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(t)}return Bs}var di={},Vi={},Xi={},Vh;function oR(){if(Vh)return Xi;Vh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.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 Xi.default=e,Xi}var Xh;function Na(){if(Xh)return Vi;Xh=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=void 0;var e=t(oR());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){return typeof s=="string"&&e.default.test(s)}var i=r;return Vi.default=i,Vi}var Yh;function ja(){if(Yh)return di;Yh=1,Object.defineProperty(di,"__esModule",{value:!0}),di.default=void 0,di.unsafeStringify=i;var e=t(Na());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function i(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function s(l,c=0){const f=i(l,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var a=s;return di.default=a,di}var Jh;function sR(){if(Jh)return Ki;Jh=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=r(Ov()),t=ja();function r(m){return m&&m.__esModule?m:{default:m}}let i,s,a=0,l=0;function c(m,y,p){let g=y&&p||0;const v=y||new Array(16);m=m||{};let x=m.node||i,d=m.clockseq!==void 0?m.clockseq:s;if(x==null||d==null){const O=m.random||(m.rng||e.default)();x==null&&(x=i=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),d==null&&(d=s=(O[6]<<8|O[7])&16383)}let w=m.msecs!==void 0?m.msecs:Date.now(),h=m.nsecs!==void 0?m.nsecs:l+1;const S=w-a+(h-l)/1e4;if(S<0&&m.clockseq===void 0&&(d=d+1&16383),(S<0||w>a)&&m.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=w,l=h,s=d,w+=122192928e5;const E=((w&268435455)*1e4+h)%4294967296;v[g++]=E>>>24&255,v[g++]=E>>>16&255,v[g++]=E>>>8&255,v[g++]=E&255;const R=w/4294967296*1e4&268435455;v[g++]=R>>>8&255,v[g++]=R&255,v[g++]=R>>>24&15|16,v[g++]=R>>>16&255,v[g++]=d>>>8|128,v[g++]=d&255;for(let O=0;O<6;++O)v[g+O]=x[O];return y||(0,t.unsafeStringify)(v)}var f=c;return Ki.default=f,Ki}var Yi={},pn={},Ji={},Qh;function Av(){if(Qh)return Ji;Qh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=t(Na());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let a;const l=new Uint8Array(16);return l[0]=(a=parseInt(s.slice(0,8),16))>>>24,l[1]=a>>>16&255,l[2]=a>>>8&255,l[3]=a&255,l[4]=(a=parseInt(s.slice(9,13),16))>>>8,l[5]=a&255,l[6]=(a=parseInt(s.slice(14,18),16))>>>8,l[7]=a&255,l[8]=(a=parseInt(s.slice(19,23),16))>>>8,l[9]=a&255,l[10]=(a=parseInt(s.slice(24,36),16))/1099511627776&255,l[11]=a/4294967296&255,l[12]=a>>>24&255,l[13]=a>>>16&255,l[14]=a>>>8&255,l[15]=a&255,l}var i=r;return Ji.default=i,Ji}var eg;function Tv(){if(eg)return pn;eg=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.URL=pn.DNS=void 0,pn.default=l;var e=ja(),t=r(Av());function r(c){return c&&c.__esModule?c:{default:c}}function i(c){c=unescape(encodeURIComponent(c));const f=[];for(let m=0;m<c.length;++m)f.push(c.charCodeAt(m));return f}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";pn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";pn.URL=a;function l(c,f,m){function y(p,g,v,x){var d;if(typeof p=="string"&&(p=i(p)),typeof g=="string"&&(g=(0,t.default)(g)),((d=g)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+p.length);if(w.set(g),w.set(p,g.length),w=m(w),w[6]=w[6]&15|f,w[8]=w[8]&63|128,v){x=x||0;for(let h=0;h<16;++h)v[x+h]=w[h];return v}return(0,e.unsafeStringify)(w)}try{y.name=c}catch{}return y.DNS=s,y.URL=a,y}return pn}var Qi={},tg;function aR(){if(tg)return Qi;tg=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;function e(v){if(typeof v=="string"){const x=unescape(encodeURIComponent(v));v=new Uint8Array(x.length);for(let d=0;d<x.length;++d)v[d]=x.charCodeAt(d)}return t(i(s(v),v.length*8))}function t(v){const x=[],d=v.length*32,w="0123456789abcdef";for(let h=0;h<d;h+=8){const S=v[h>>5]>>>h%32&255,E=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);x.push(E)}return x}function r(v){return(v+64>>>9<<4)+14+1}function i(v,x){v[x>>5]|=128<<x%32,v[r(x)-1]=x;let d=1732584193,w=-271733879,h=-1732584194,S=271733878;for(let E=0;E<v.length;E+=16){const R=d,O=w,C=h,U=S;d=f(d,w,h,S,v[E],7,-680876936),S=f(S,d,w,h,v[E+1],12,-389564586),h=f(h,S,d,w,v[E+2],17,606105819),w=f(w,h,S,d,v[E+3],22,-1044525330),d=f(d,w,h,S,v[E+4],7,-176418897),S=f(S,d,w,h,v[E+5],12,1200080426),h=f(h,S,d,w,v[E+6],17,-1473231341),w=f(w,h,S,d,v[E+7],22,-45705983),d=f(d,w,h,S,v[E+8],7,1770035416),S=f(S,d,w,h,v[E+9],12,-1958414417),h=f(h,S,d,w,v[E+10],17,-42063),w=f(w,h,S,d,v[E+11],22,-1990404162),d=f(d,w,h,S,v[E+12],7,1804603682),S=f(S,d,w,h,v[E+13],12,-40341101),h=f(h,S,d,w,v[E+14],17,-1502002290),w=f(w,h,S,d,v[E+15],22,1236535329),d=m(d,w,h,S,v[E+1],5,-165796510),S=m(S,d,w,h,v[E+6],9,-1069501632),h=m(h,S,d,w,v[E+11],14,643717713),w=m(w,h,S,d,v[E],20,-373897302),d=m(d,w,h,S,v[E+5],5,-701558691),S=m(S,d,w,h,v[E+10],9,38016083),h=m(h,S,d,w,v[E+15],14,-660478335),w=m(w,h,S,d,v[E+4],20,-405537848),d=m(d,w,h,S,v[E+9],5,568446438),S=m(S,d,w,h,v[E+14],9,-1019803690),h=m(h,S,d,w,v[E+3],14,-187363961),w=m(w,h,S,d,v[E+8],20,1163531501),d=m(d,w,h,S,v[E+13],5,-1444681467),S=m(S,d,w,h,v[E+2],9,-51403784),h=m(h,S,d,w,v[E+7],14,1735328473),w=m(w,h,S,d,v[E+12],20,-1926607734),d=y(d,w,h,S,v[E+5],4,-378558),S=y(S,d,w,h,v[E+8],11,-2022574463),h=y(h,S,d,w,v[E+11],16,1839030562),w=y(w,h,S,d,v[E+14],23,-35309556),d=y(d,w,h,S,v[E+1],4,-1530992060),S=y(S,d,w,h,v[E+4],11,1272893353),h=y(h,S,d,w,v[E+7],16,-155497632),w=y(w,h,S,d,v[E+10],23,-1094730640),d=y(d,w,h,S,v[E+13],4,681279174),S=y(S,d,w,h,v[E],11,-358537222),h=y(h,S,d,w,v[E+3],16,-722521979),w=y(w,h,S,d,v[E+6],23,76029189),d=y(d,w,h,S,v[E+9],4,-640364487),S=y(S,d,w,h,v[E+12],11,-421815835),h=y(h,S,d,w,v[E+15],16,530742520),w=y(w,h,S,d,v[E+2],23,-995338651),d=p(d,w,h,S,v[E],6,-198630844),S=p(S,d,w,h,v[E+7],10,1126891415),h=p(h,S,d,w,v[E+14],15,-1416354905),w=p(w,h,S,d,v[E+5],21,-57434055),d=p(d,w,h,S,v[E+12],6,1700485571),S=p(S,d,w,h,v[E+3],10,-1894986606),h=p(h,S,d,w,v[E+10],15,-1051523),w=p(w,h,S,d,v[E+1],21,-2054922799),d=p(d,w,h,S,v[E+8],6,1873313359),S=p(S,d,w,h,v[E+15],10,-30611744),h=p(h,S,d,w,v[E+6],15,-1560198380),w=p(w,h,S,d,v[E+13],21,1309151649),d=p(d,w,h,S,v[E+4],6,-145523070),S=p(S,d,w,h,v[E+11],10,-1120210379),h=p(h,S,d,w,v[E+2],15,718787259),w=p(w,h,S,d,v[E+9],21,-343485551),d=a(d,R),w=a(w,O),h=a(h,C),S=a(S,U)}return[d,w,h,S]}function s(v){if(v.length===0)return[];const x=v.length*8,d=new Uint32Array(r(x));for(let w=0;w<x;w+=8)d[w>>5]|=(v[w/8]&255)<<w%32;return d}function a(v,x){const d=(v&65535)+(x&65535);return(v>>16)+(x>>16)+(d>>16)<<16|d&65535}function l(v,x){return v<<x|v>>>32-x}function c(v,x,d,w,h,S){return a(l(a(a(x,v),a(w,S)),h),d)}function f(v,x,d,w,h,S,E){return c(x&d|~x&w,v,x,h,S,E)}function m(v,x,d,w,h,S,E){return c(x&w|d&~w,v,x,h,S,E)}function y(v,x,d,w,h,S,E){return c(x^d^w,v,x,h,S,E)}function p(v,x,d,w,h,S,E){return c(d^(x|~w),v,x,h,S,E)}var g=e;return Qi.default=g,Qi}var rg;function uR(){if(rg)return Yi;rg=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=r(Tv()),t=r(aR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Yi.default=s,Yi}var eo={},to={},ng;function lR(){if(ng)return to;ng=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return to.default=t,to}var ig;function cR(){if(ig)return eo;ig=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e=i(lR()),t=i(Ov()),r=ja();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c,f){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const m=l.random||(l.rng||t.default)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,c){f=f||0;for(let y=0;y<16;++y)c[f+y]=m[y];return c}return(0,r.unsafeStringify)(m)}var a=s;return eo.default=a,eo}var ro={},no={},og;function fR(){if(og)return no;og=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;function e(s,a,l,c){switch(s){case 0:return a&l^~a&c;case 1:return a^l^c;case 2:return a&l^a&c^l&c;case 3:return a^l^c}}function t(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const y=unescape(encodeURIComponent(s));s=[];for(let p=0;p<y.length;++p)s.push(y.charCodeAt(p))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const c=s.length/4+2,f=Math.ceil(c/16),m=new Array(f);for(let y=0;y<f;++y){const p=new Uint32Array(16);for(let g=0;g<16;++g)p[g]=s[y*64+g*4]<<24|s[y*64+g*4+1]<<16|s[y*64+g*4+2]<<8|s[y*64+g*4+3];m[y]=p}m[f-1][14]=(s.length-1)*8/Math.pow(2,32),m[f-1][14]=Math.floor(m[f-1][14]),m[f-1][15]=(s.length-1)*8&4294967295;for(let y=0;y<f;++y){const p=new Uint32Array(80);for(let h=0;h<16;++h)p[h]=m[y][h];for(let h=16;h<80;++h)p[h]=t(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);let g=l[0],v=l[1],x=l[2],d=l[3],w=l[4];for(let h=0;h<80;++h){const S=Math.floor(h/20),E=t(g,5)+e(S,v,x,d)+w+a[S]+p[h]>>>0;w=d,d=x,x=t(v,30)>>>0,v=g,g=E}l[0]=l[0]+g>>>0,l[1]=l[1]+v>>>0,l[2]=l[2]+x>>>0,l[3]=l[3]+d>>>0,l[4]=l[4]+w>>>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 i=r;return no.default=i,no}var sg;function dR(){if(sg)return ro;sg=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=r(Tv()),t=r(fR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return ro.default=s,ro}var io={},ag;function pR(){if(ag)return io;ag=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e="00000000-0000-0000-0000-000000000000";return io.default=e,io}var oo={},ug;function hR(){if(ug)return oo;ug=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var e=t(Na());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");return parseInt(s.slice(14,15),16)}var i=r;return oo.default=i,oo}var lg;function gR(){return lg||(lg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=y(sR()),r=y(uR()),i=y(cR()),s=y(dR()),a=y(pR()),l=y(hR()),c=y(Na()),f=y(ja()),m=y(Av());function y(p){return p&&p.__esModule?p:{default:p}}})(kl)),kl}var $l,cg;function mR(){if(cg)return $l;cg=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,i,s,a={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,f=t.length,m=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,s=0,r=0;r<f;r++)i=i*l+a[r],i>=c?(a[s++]=parseInt(i/c,10),i=i%c):s>0&&(a[s++]=0);f=s,m=this.dstAlphabet.slice(i,i+1).concat(m)}while(s!==0);return m},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},$l=e,$l}var Il,fg;function vR(){if(fg)return Il;fg=1;var e=mR();function t(r,i){var s=new e(r,i);return function(a){return s.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",Il=t,Il}var Ll,dg;function yR(){if(dg)return Ll;dg=1;const{v4:e,validate:t}=gR(),r=vR(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const l=(m,y,p)=>{const g=y(m.toLowerCase().replace(/-/g,""));return!p||!p.consistentLength?g:g.padStart(p.shortIdLength,p.paddingChar)},c=(m,y)=>{const g=y(m).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[g[1],g[2],g[3],g[4],g[5]].join("-")},f=m=>Math.ceil(Math.log(2**128)/Math.log(m));return Ll=(()=>{const m=(y,p)=>{const g=y||i.flickrBase58,v={...s,...p};if([...new Set(Array.from(g))].length!==g.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(g.length),d={shortIdLength:x,consistentLength:v.consistentLength,paddingChar:g[0]},w=r(r.HEX,g),h=r(g,r.HEX),S=()=>l(e(),w,d),R={alphabet:g,fromUUID:O=>l(O,w,d),maxLength:x,generate:S,new:S,toUUID:O=>c(O,h),uuid:e,validate:(O,C=!1)=>{if(!O||typeof O!="string")return!1;const U=v.consistentLength?O.length===x:O.length<=x,M=O.split("").every(D=>g.includes(D));return C===!1?U&&M:U&&M&&t(c(O,h))}};return Object.freeze(R),R};return m.constants=i,m.uuid=e,m.generate=()=>(a||(a=m(i.flickrBase58).generate),a()),m})(),Ll}var Qc=yR();const Rv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${Qc.generate()}`;return F.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[F.jsx("defs",{children:F.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:F.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?F.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):F.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Pv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?F.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return F.jsx(tt.FdDown,{className:He(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?F.jsx(tt.FdDown,{}):F.jsx(tt.FdRight,{});default:return F.jsx(tt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):F.jsx("div",{className:"flex h-6 w-3 items-center"}),ef=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:l,onNodeClick:c})=>{var v;const{key:f,children:m}=e,y=W.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),p=l&&typeof l=="function"?l(e,t,y,s,a):xR(e,t,y,c);return!((v=e.options)!=null&&v.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"flex items-center space-x-2",children:p},f),wR(m||[],t,a,r,i,y.expanded,s,c,l)]}):null},bR=function(e,t){var l;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=F.jsx(_v,{children:i})),F.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:()=>{t&&t(e)},children:[a,F.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&F.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},wR=function(e,t,r,i,s,a,l,c,f){var m,y;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((m=e[0].data)==null?void 0:m.nodeType)||((y=e[0].data)==null?void 0:y.type))?e:e.sort((p,g)=>v0(p.title,g.title))).map(p=>F.jsx(ef,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:c,renderNode:f},p.key)):null},xR=function(e,t,r,i){return F.jsxs(F.Fragment,{children:[F.jsx(Rv,{showLines:!0,depth:t}),F.jsx(Pv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),bR(e,i)]})},Hs=e=>t=>e===t,SR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:l,expandCondition:c="always",encapsulated:f,className:m}){const[y,p]=W.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&y.expandedKeys.length>0||p({...y,expandedKeys:l||y.expandedKeys})},[l]);const g=W.useCallback(h=>{if(!h)return;const S=y.expandedKeys.findIndex(Hs(h.key));let E=[];S===-1?(E=[...y.expandedKeys,h.key],p(()=>({...y,expandedKeys:E})),s&&s(E)):(E=y.expandedKeys.filter(R=>R!==h.key),p(()=>({...y,expandedKeys:E})),s&&s(E))},[y]),v=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;y.selectedKeys.findIndex(Hs(h.key))===-1&&p({...y,selectedKeys:[...y.selectedKeys,h.key]})},[y]),x=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;y.selectedKeys.findIndex(Hs(h.key))===-1&&p({...y,selectedKeys:[h.key]})},[y]),d=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable)){p({...y,selectedKeys:[]});return}y.selectedKeys.findIndex(Hs(h.key))!==-1&&p({...y,selectedKeys:y.selectedKeys.filter(R=>R!==h.key)})},[y]),w=W.useMemo(()=>({expand:g,select:v,selectSingle:x,deselect:d}),[d,g,v,x]);return F.jsx("div",{className:He("fd-tree",m,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(h=>F.jsx(ef,{node:h,searchQuery:a||"",depth:0,expandedKeys:y.expandedKeys,selectedKeys:y.selectedKeys,actions:w,renderNode:r,onNodeClick:i},h.key))})};function fa(e){return e.of&&e.children?F.jsx(F.Fragment,{children:e.children}):null}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Qe.apply(null,arguments)}function ER(e){for(var t=0,r,i=0,s=e.length;s>=4;++i,s-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var _R={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 Cv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var OR=/[A-Z]|^ms/g,AR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kv=function(t){return t.charCodeAt(1)===45},pg=function(t){return t!=null&&typeof t!="boolean"},Ml=Cv(function(e){return kv(e)?e:e.replace(OR,"-$&").toLowerCase()}),hg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(AR,function(i,s,a){return Tr={name:s,styles:a,next:Tr},s})}return _R[t]!==1&&!kv(t)&&typeof r=="number"&&r!==0?r+"px":r};function $o(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return Tr={name:s.name,styles:s.styles,next:Tr},s.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Tr={name:l.name,styles:l.styles,next:Tr},l=l.next;var c=a.styles+";";return c}return TR(e,t,r)}case"function":{if(e!==void 0){var f=Tr,m=r(e);return Tr=f,$o(e,t,m)}break}}var y=r;if(t==null)return y;var p=t[y];return p!==void 0?p:y}function TR(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=$o(e,t,r[s])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?i+=a+"{"+t[c]+"}":pg(c)&&(i+=Ml(a)+":"+hg(a,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var f=0;f<l.length;f++)pg(l[f])&&(i+=Ml(a)+":"+hg(a,l[f])+";");else{var m=$o(e,t,l);switch(a){case"animation":case"animationName":{i+=Ml(a)+":"+m+";";break}default:i+=a+"{"+m+"}"}}}return i}var gg=/label:\s*([^\s;{]+)\s*(;|$)/g,Tr;function RR(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";Tr=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=$o(r,t,a);else{var l=a;s+=l[0]}for(var c=1;c<e.length;c++)if(s+=$o(r,t,e[c]),i){var f=a;s+=f[c]}gg.lastIndex=0;for(var m="",y;(y=gg.exec(s))!==null;)m+="-"+y[1];var p=ER(s)+m;return{name:p,styles:s,next:Tr}}var PR=function(t){return t()},CR=$.useInsertionEffect?$.useInsertionEffect:!1,kR=CR||PR,$R=!0;function IR(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var $v=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||$R===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},LR=function(t,r,i){$v(t,r,i);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},MR=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,FR=Cv(function(e){return MR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),DR=FR,NR=function(t){return t!=="theme"},mg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?DR:NR},vg=function(t,r,i){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},jR=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return $v(r,i,s),kR(function(){return LR(r,i,s)}),null},zR=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var c=vg(t,r,i),f=c||mg(s),m=!f("as");return function(){var y=arguments,p=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)p.push.apply(p,y);else{var g=y[0];p.push(g[0]);for(var v=y.length,x=1;x<v;x++)p.push(y[x],g[x])}var d=pc.withEmotionCache(function(w,h,S){var E=m&&w.as||s,R="",O=[],C=w;if(w.theme==null){C={};for(var U in w)C[U]=w[U];C.theme=$.useContext(pc.ThemeContext)}typeof w.className=="string"?R=IR(h.registered,O,w.className):w.className!=null&&(R=w.className+" ");var M=RR(p.concat(O),h.registered,C);R+=h.key+"-"+M.name,l!==void 0&&(R+=" "+l);var D=m&&c===void 0?mg(E):f,q={};for(var N in w)m&&N==="as"||D(N)&&(q[N]=w[N]);return q.className=R,S&&(q.ref=S),$.createElement($.Fragment,null,$.createElement(jR,{cache:h,serialized:M,isStringTag:typeof E=="string"}),$.createElement(E,q))});return d.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",d.defaultProps=t.defaultProps,d.__emotion_real=d,d.__emotion_base=s,d.__emotion_styles=p,d.__emotion_forwardProp=c,Object.defineProperty(d,"toString",{value:function(){return"."+l}}),d.withComponent=function(w,h){var S=e(w,Qe({},r,h,{shouldForwardProp:vg(d,h,!0)}));return S.apply(void 0,p)},d}},WR=["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"],Sa=zR.bind(null);WR.forEach(function(e){Sa[e]=Sa(e)});var UR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pi=new WeakMap,qs=new WeakMap,Zs={},Fl=0,Iv=function(e){return e&&(e.host||Iv(e.parentNode))},BR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=Iv(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},HR=function(e,t,r,i){var s=BR(t,Array.isArray(e)?e:[e]);Zs[r]||(Zs[r]=new WeakMap);var a=Zs[r],l=[],c=new Set,f=new Set(s),m=function(p){!p||c.has(p)||(c.add(p),m(p.parentNode))};s.forEach(m);var y=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(g){if(c.has(g))y(g);else try{var v=g.getAttribute(i),x=v!==null&&v!=="false",d=(pi.get(g)||0)+1,w=(a.get(g)||0)+1;pi.set(g,d),a.set(g,w),l.push(g),d===1&&x&&qs.set(g,!0),w===1&&g.setAttribute(r,"true"),x||g.setAttribute(i,"true")}catch(h){console.error("aria-hidden: cannot operate on ",g,h)}})};return y(t),c.clear(),Fl++,function(){l.forEach(function(p){var g=pi.get(p)-1,v=a.get(p)-1;pi.set(p,g),a.set(p,v),g||(qs.has(p)||p.removeAttribute(i),qs.delete(p)),v||p.removeAttribute(r)}),Fl--,Fl||(pi=new WeakMap,pi=new WeakMap,qs=new WeakMap,Zs={})}},qR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=UR(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),HR(i,s,r,"aria-hidden")):function(){return null}},mc=function(e,t){return mc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},mc(e,t)};function za(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Rr=function(){return Rr=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Rr.apply(this,arguments)};function Lv(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}function vc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],l;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(c){l={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return a}function Ea(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var da="right-scroll-bar-position",pa="width-before-scroll-bar",ZR="with-scroll-bars-hidden",GR="--removed-body-scroll-bar-size";function Dl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function KR(e,t){var r=W.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=t,r.facade}var VR=typeof window<"u"?$.useLayoutEffect:$.useEffect,yg=new WeakMap;function XR(e,t){var r=KR(null,function(i){return e.forEach(function(s){return Dl(s,i)})});return VR(function(){var i=yg.get(r);if(i){var s=new Set(i),a=new Set(e),l=r.current;s.forEach(function(c){a.has(c)||Dl(c,null)}),a.forEach(function(c){s.has(c)||Dl(c,l)})}yg.set(r,e)},[e]),r}function YR(e){return e}function JR(e,t){t===void 0&&(t=YR);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var l=t(a,i);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(a){for(i=!0;r.length;){var l=r;r=[],l.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(a),l=r}var f=function(){var y=l;l=[],y.forEach(a)},m=function(){return Promise.resolve().then(f)};m(),r={push:function(y){l.push(y),m()},filter:function(y){return l=l.filter(y),r}}}};return s}function QR(e){e===void 0&&(e={});var t=JR(null);return t.options=Rr({async:!0,ssr:!1},e),t}var Mv=function(e){var t=e.sideCar,r=Lv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return $.createElement(i,Rr({},r))};Mv.isSideCarExport=!0;function eP(e,t){return e.useMedium(t),Mv}var Fv=QR(),Nl=function(){},Wa=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:Nl,onWheelCapture:Nl,onTouchMoveCapture:Nl}),s=i[0],a=i[1],l=e.forwardProps,c=e.children,f=e.className,m=e.removeScrollBar,y=e.enabled,p=e.shards,g=e.sideCar,v=e.noRelative,x=e.noIsolation,d=e.inert,w=e.allowPinchZoom,h=e.as,S=h===void 0?"div":h,E=e.gapMode,R=Lv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=g,C=XR([r,t]),U=Rr(Rr({},R),s);return $.createElement($.Fragment,null,y&&$.createElement(O,{sideCar:Fv,removeScrollBar:m,shards:p,noRelative:v,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:E}),l?$.cloneElement($.Children.only(c),Rr(Rr({},U),{ref:C})):$.createElement(S,Rr({},U,{className:f,ref:C}),c))});Wa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wa.classNames={fullWidth:pa,zeroRight:da};var tP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tP();return t&&e.setAttribute("nonce",t),e}function nP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function iP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var oP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=rP())&&(nP(t,r),iP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sP=function(){var e=oP();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Dv=function(){var e=sP(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},aP={left:0,top:0,right:0,gap:0},jl=function(e){return parseInt(e||"",10)||0},uP=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[jl(r),jl(i),jl(s)]},lP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aP;var t=uP(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},cP=Dv(),yi="data-scroll-locked",fP=function(e,t,r,i){var s=e.left,a=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
23
- .`.concat(ZR,` {
21
+ `,R),U=h.slice(R,C===-1?void 0:C+1);if(c(a,U)||(E+=U,C===-1||!U.trim()))break;R=C+1}const O=To(E);return O===""?null:[E,,O]}),i:3,u:Al,l:(h,S,E)=>f("p",{key:E.key},S(h.children,E))},22:{t:["["],o:Mn(AT),i:0,u:h=>(g[h[1]]={target:h[2],title:h[4]},{}),l:Rl},23:{t:["!["],o:pn(TT),i:0,u:h=>({alt:h[1]?Sr(h[1]):void 0,ref:h[2]}),l:(h,S,E)=>g[h.ref]?f("img",{key:E.key,alt:h.alt,src:i(g[h.ref].target,"img","src"),title:g[h.ref].title}):null},24:{t:h=>h[0]==="["&&h.indexOf("](")===-1,o:Mn(RT),i:0,u:(h,S,E)=>({children:S(h[1],E),fallbackChildren:h[0],ref:h[2]}),l:(h,S,E)=>g[h.ref]?f("a",{key:E.key,href:i(g[h.ref].target,"a","href"),title:g[h.ref].title},S(h.children,E)):f("span",{key:E.key},h.fallbackChildren)},25:{t:["|"],o:Zr(Wh),i:1,u:eR,l(h,S,E){const R=h;return f("table",{key:E.key},f("thead",null,f("tr",null,R.header.map(function(O,C){return f("th",{key:C,style:qh(R,C)},S(O,E))}))),f("tbody",null,R.cells.map(function(O,C){return f("tr",{key:C},O.map(function(U,M){return f("td",{key:M,style:qh(R,M)},S(U,E))}))})))}},27:{o:Ai(function(h,S){let E;return la(h,":")&&(E=jT.exec(h)),E||UT.exec(h)}),i:4,u(h){const S=h[0];return{text:S.indexOf("&")===-1?S:S.replace(bT,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:h=>h.text},28:{t:["**","__"],o:pn(MT),i:2,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("strong",{key:E.key},S(h.children,E))},29:{t:h=>{const S=h[0];return(S==="*"||S==="_")&&h[1]!==S},o:pn(FT),i:3,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("em",{key:E.key},S(h.children,E))},30:{t:["\\"],o:pn(zT),i:1,u:h=>({text:h[1],type:"27"})},31:{t:["=="],o:pn(DT),i:3,u:Al,l:(h,S,E)=>f("mark",{key:E.key},S(h.children,E))},32:{t:["~~"],o:pn(NT),i:3,u:Al,l:(h,S,E)=>f("del",{key:E.key},S(h.children,E))}};t.disableParsingRawHTML===!0&&(delete v[11],delete v[13]);const x=(function(h){var S=Object.keys(h);function E(R,O){var C=[];if(O.prevCapture=O.prevCapture||"",R.trim())for(;R;)for(var U=0;U<S.length;){var M=S[U],D=h[M];if(!D.t||JT(R,O,D.t)){var q=D.o(R,O);if(q&&q[0]){R=R.substring(q[0].length);var N=D.u(q,E,O);O.prevCapture+=q[0],N.type||(N.type=M),C.push(N);break}U++}else U++}return O.prevCapture="",C}return S.sort(function(R,O){return h[R].i-h[O].i||(R<O?-1:1)}),function(R,O){return E((function(C){return C.replace(pT,`
22
+ `).replace(mT,"").replace(CT," ")})(R),O)}})(v),d=(function(h,S){return function E(R,O={}){if(Array.isArray(R)){const C=O.key,U=[];let M=!1;for(let D=0;D<R.length;D++){O.key=D;const q=E(R[D],O),N=Bh(q);N&&M?U[U.length-1]+=q:q!==null&&U.push(q),M=N}return O.key=C,U}return(function(C,U,M){const D=h[C.type].l;return S?S(()=>D(C,U,M),C,U,M):D(C,U,M)})(R,E,O)}})(v,t.renderRule),w=m(e);return p.length?f("div",null,w,f("footer",{key:"footer"},p.map(function(h){return f("div",{id:r(h.identifier,Gi),key:h.identifier},h.identifier,d(x(h.footnote,{inline:!0})))}))):w}const wa=e=>{let{children:t,options:r}=e,i=(function(s,a){if(s==null)return{};var u,c,f={},m=Object.keys(s);for(c=0;c<m.length;c++)a.indexOf(u=m[c])>=0||(f[u]=s[u]);return f})(e,rT);return $.cloneElement(sR(t??"",r),i)},Zh=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return F.jsx(t,{className:He("flex-none size-6",r)});switch(e){case"error":case"danger":return F.jsx(tt.FdSanityCheckInfo,{className:He("flex-none size-6",r)});case"info":return F.jsx(F.Fragment,{children:F.jsx(tt.FdInfoBold,{className:He("flex-none size-6",r)})});case"warning":return F.jsx(F.Fragment,{children:F.jsx(tt.FdWarningDanger,{className:He("flex-none size-6",r)})});case"message":return F.jsx(F.Fragment,{children:F.jsx(tt.FdInfoBold,{className:He("flex-none size-6",r)})});default:return null}},aR=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const u=({className:c}={})=>F.jsx("button",{onClick:t,className:He("flex justify-center p-1",c),children:F.jsx(tt.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return F.jsx("div",{className:He("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?F.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[F.jsx("div",{className:"pt-1",children:F.jsx(Zh,{kind:r,customIcon:a})}),F.jsx("div",{className:"flex items-center gap-1 prose",children:s?F.jsx(wa,{children:i}):F.jsx(F.Fragment,{children:i})}),u()]}):F.jsxs("div",{className:"flex items-start",children:[F.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>F.jsxs(F.Fragment,{children:[c.title&&F.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[F.jsx(Zh,{kind:r,customIcon:a}),F.jsxs("span",{children:[c.title," :"]})]}),F.jsx("ul",{className:He("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>F.jsx("li",{children:s?F.jsx(wa,{children:f}):F.jsx(F.Fragment,{children:f})}))})]}))}),u({className:"absolute top-1 right-1"})]})},e)},_v=({children:e,size:t,className:r,...i})=>F.jsx("div",{style:{"--width":`${t||24}px`},className:He("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var Cl={},Ki={},Bs={},Gh;function Ov(){if(Gh)return Bs;Gh=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=r;let e;const t=new Uint8Array(16);function r(){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(t)}return Bs}var di={},Vi={},Xi={},Kh;function uR(){if(Kh)return Xi;Kh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.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 Xi.default=e,Xi}var Vh;function Da(){if(Vh)return Vi;Vh=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=void 0;var e=t(uR());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){return typeof s=="string"&&e.default.test(s)}var i=r;return Vi.default=i,Vi}var Xh;function Na(){if(Xh)return di;Xh=1,Object.defineProperty(di,"__esModule",{value:!0}),di.default=void 0,di.unsafeStringify=i;var e=t(Da());function t(u){return u&&u.__esModule?u:{default:u}}const r=[];for(let u=0;u<256;++u)r.push((u+256).toString(16).slice(1));function i(u,c=0){return r[u[c+0]]+r[u[c+1]]+r[u[c+2]]+r[u[c+3]]+"-"+r[u[c+4]]+r[u[c+5]]+"-"+r[u[c+6]]+r[u[c+7]]+"-"+r[u[c+8]]+r[u[c+9]]+"-"+r[u[c+10]]+r[u[c+11]]+r[u[c+12]]+r[u[c+13]]+r[u[c+14]]+r[u[c+15]]}function s(u,c=0){const f=i(u,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var a=s;return di.default=a,di}var Yh;function lR(){if(Yh)return Ki;Yh=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=r(Ov()),t=Na();function r(m){return m&&m.__esModule?m:{default:m}}let i,s,a=0,u=0;function c(m,y,p){let g=y&&p||0;const v=y||new Array(16);m=m||{};let x=m.node||i,d=m.clockseq!==void 0?m.clockseq:s;if(x==null||d==null){const O=m.random||(m.rng||e.default)();x==null&&(x=i=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),d==null&&(d=s=(O[6]<<8|O[7])&16383)}let w=m.msecs!==void 0?m.msecs:Date.now(),h=m.nsecs!==void 0?m.nsecs:u+1;const S=w-a+(h-u)/1e4;if(S<0&&m.clockseq===void 0&&(d=d+1&16383),(S<0||w>a)&&m.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=w,u=h,s=d,w+=122192928e5;const E=((w&268435455)*1e4+h)%4294967296;v[g++]=E>>>24&255,v[g++]=E>>>16&255,v[g++]=E>>>8&255,v[g++]=E&255;const R=w/4294967296*1e4&268435455;v[g++]=R>>>8&255,v[g++]=R&255,v[g++]=R>>>24&15|16,v[g++]=R>>>16&255,v[g++]=d>>>8|128,v[g++]=d&255;for(let O=0;O<6;++O)v[g+O]=x[O];return y||(0,t.unsafeStringify)(v)}var f=c;return Ki.default=f,Ki}var Yi={},hn={},Ji={},Jh;function Av(){if(Jh)return Ji;Jh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=t(Da());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let a;const u=new Uint8Array(16);return u[0]=(a=parseInt(s.slice(0,8),16))>>>24,u[1]=a>>>16&255,u[2]=a>>>8&255,u[3]=a&255,u[4]=(a=parseInt(s.slice(9,13),16))>>>8,u[5]=a&255,u[6]=(a=parseInt(s.slice(14,18),16))>>>8,u[7]=a&255,u[8]=(a=parseInt(s.slice(19,23),16))>>>8,u[9]=a&255,u[10]=(a=parseInt(s.slice(24,36),16))/1099511627776&255,u[11]=a/4294967296&255,u[12]=a>>>24&255,u[13]=a>>>16&255,u[14]=a>>>8&255,u[15]=a&255,u}var i=r;return Ji.default=i,Ji}var Qh;function Tv(){if(Qh)return hn;Qh=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.URL=hn.DNS=void 0,hn.default=u;var e=Na(),t=r(Av());function r(c){return c&&c.__esModule?c:{default:c}}function i(c){c=unescape(encodeURIComponent(c));const f=[];for(let m=0;m<c.length;++m)f.push(c.charCodeAt(m));return f}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";hn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";hn.URL=a;function u(c,f,m){function y(p,g,v,x){var d;if(typeof p=="string"&&(p=i(p)),typeof g=="string"&&(g=(0,t.default)(g)),((d=g)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+p.length);if(w.set(g),w.set(p,g.length),w=m(w),w[6]=w[6]&15|f,w[8]=w[8]&63|128,v){x=x||0;for(let h=0;h<16;++h)v[x+h]=w[h];return v}return(0,e.unsafeStringify)(w)}try{y.name=c}catch{}return y.DNS=s,y.URL=a,y}return hn}var Qi={},eg;function cR(){if(eg)return Qi;eg=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;function e(v){if(typeof v=="string"){const x=unescape(encodeURIComponent(v));v=new Uint8Array(x.length);for(let d=0;d<x.length;++d)v[d]=x.charCodeAt(d)}return t(i(s(v),v.length*8))}function t(v){const x=[],d=v.length*32,w="0123456789abcdef";for(let h=0;h<d;h+=8){const S=v[h>>5]>>>h%32&255,E=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);x.push(E)}return x}function r(v){return(v+64>>>9<<4)+14+1}function i(v,x){v[x>>5]|=128<<x%32,v[r(x)-1]=x;let d=1732584193,w=-271733879,h=-1732584194,S=271733878;for(let E=0;E<v.length;E+=16){const R=d,O=w,C=h,U=S;d=f(d,w,h,S,v[E],7,-680876936),S=f(S,d,w,h,v[E+1],12,-389564586),h=f(h,S,d,w,v[E+2],17,606105819),w=f(w,h,S,d,v[E+3],22,-1044525330),d=f(d,w,h,S,v[E+4],7,-176418897),S=f(S,d,w,h,v[E+5],12,1200080426),h=f(h,S,d,w,v[E+6],17,-1473231341),w=f(w,h,S,d,v[E+7],22,-45705983),d=f(d,w,h,S,v[E+8],7,1770035416),S=f(S,d,w,h,v[E+9],12,-1958414417),h=f(h,S,d,w,v[E+10],17,-42063),w=f(w,h,S,d,v[E+11],22,-1990404162),d=f(d,w,h,S,v[E+12],7,1804603682),S=f(S,d,w,h,v[E+13],12,-40341101),h=f(h,S,d,w,v[E+14],17,-1502002290),w=f(w,h,S,d,v[E+15],22,1236535329),d=m(d,w,h,S,v[E+1],5,-165796510),S=m(S,d,w,h,v[E+6],9,-1069501632),h=m(h,S,d,w,v[E+11],14,643717713),w=m(w,h,S,d,v[E],20,-373897302),d=m(d,w,h,S,v[E+5],5,-701558691),S=m(S,d,w,h,v[E+10],9,38016083),h=m(h,S,d,w,v[E+15],14,-660478335),w=m(w,h,S,d,v[E+4],20,-405537848),d=m(d,w,h,S,v[E+9],5,568446438),S=m(S,d,w,h,v[E+14],9,-1019803690),h=m(h,S,d,w,v[E+3],14,-187363961),w=m(w,h,S,d,v[E+8],20,1163531501),d=m(d,w,h,S,v[E+13],5,-1444681467),S=m(S,d,w,h,v[E+2],9,-51403784),h=m(h,S,d,w,v[E+7],14,1735328473),w=m(w,h,S,d,v[E+12],20,-1926607734),d=y(d,w,h,S,v[E+5],4,-378558),S=y(S,d,w,h,v[E+8],11,-2022574463),h=y(h,S,d,w,v[E+11],16,1839030562),w=y(w,h,S,d,v[E+14],23,-35309556),d=y(d,w,h,S,v[E+1],4,-1530992060),S=y(S,d,w,h,v[E+4],11,1272893353),h=y(h,S,d,w,v[E+7],16,-155497632),w=y(w,h,S,d,v[E+10],23,-1094730640),d=y(d,w,h,S,v[E+13],4,681279174),S=y(S,d,w,h,v[E],11,-358537222),h=y(h,S,d,w,v[E+3],16,-722521979),w=y(w,h,S,d,v[E+6],23,76029189),d=y(d,w,h,S,v[E+9],4,-640364487),S=y(S,d,w,h,v[E+12],11,-421815835),h=y(h,S,d,w,v[E+15],16,530742520),w=y(w,h,S,d,v[E+2],23,-995338651),d=p(d,w,h,S,v[E],6,-198630844),S=p(S,d,w,h,v[E+7],10,1126891415),h=p(h,S,d,w,v[E+14],15,-1416354905),w=p(w,h,S,d,v[E+5],21,-57434055),d=p(d,w,h,S,v[E+12],6,1700485571),S=p(S,d,w,h,v[E+3],10,-1894986606),h=p(h,S,d,w,v[E+10],15,-1051523),w=p(w,h,S,d,v[E+1],21,-2054922799),d=p(d,w,h,S,v[E+8],6,1873313359),S=p(S,d,w,h,v[E+15],10,-30611744),h=p(h,S,d,w,v[E+6],15,-1560198380),w=p(w,h,S,d,v[E+13],21,1309151649),d=p(d,w,h,S,v[E+4],6,-145523070),S=p(S,d,w,h,v[E+11],10,-1120210379),h=p(h,S,d,w,v[E+2],15,718787259),w=p(w,h,S,d,v[E+9],21,-343485551),d=a(d,R),w=a(w,O),h=a(h,C),S=a(S,U)}return[d,w,h,S]}function s(v){if(v.length===0)return[];const x=v.length*8,d=new Uint32Array(r(x));for(let w=0;w<x;w+=8)d[w>>5]|=(v[w/8]&255)<<w%32;return d}function a(v,x){const d=(v&65535)+(x&65535);return(v>>16)+(x>>16)+(d>>16)<<16|d&65535}function u(v,x){return v<<x|v>>>32-x}function c(v,x,d,w,h,S){return a(u(a(a(x,v),a(w,S)),h),d)}function f(v,x,d,w,h,S,E){return c(x&d|~x&w,v,x,h,S,E)}function m(v,x,d,w,h,S,E){return c(x&w|d&~w,v,x,h,S,E)}function y(v,x,d,w,h,S,E){return c(x^d^w,v,x,h,S,E)}function p(v,x,d,w,h,S,E){return c(d^(x|~w),v,x,h,S,E)}var g=e;return Qi.default=g,Qi}var tg;function fR(){if(tg)return Yi;tg=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=r(Tv()),t=r(cR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Yi.default=s,Yi}var eo={},to={},rg;function dR(){if(rg)return to;rg=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return to.default=t,to}var ng;function pR(){if(ng)return eo;ng=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e=i(dR()),t=i(Ov()),r=Na();function i(u){return u&&u.__esModule?u:{default:u}}function s(u,c,f){if(e.default.randomUUID&&!c&&!u)return e.default.randomUUID();u=u||{};const m=u.random||(u.rng||t.default)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,c){f=f||0;for(let y=0;y<16;++y)c[f+y]=m[y];return c}return(0,r.unsafeStringify)(m)}var a=s;return eo.default=a,eo}var ro={},no={},ig;function hR(){if(ig)return no;ig=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;function e(s,a,u,c){switch(s){case 0:return a&u^~a&c;case 1:return a^u^c;case 2:return a&u^a&c^u&c;case 3:return a^u^c}}function t(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],u=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const y=unescape(encodeURIComponent(s));s=[];for(let p=0;p<y.length;++p)s.push(y.charCodeAt(p))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const c=s.length/4+2,f=Math.ceil(c/16),m=new Array(f);for(let y=0;y<f;++y){const p=new Uint32Array(16);for(let g=0;g<16;++g)p[g]=s[y*64+g*4]<<24|s[y*64+g*4+1]<<16|s[y*64+g*4+2]<<8|s[y*64+g*4+3];m[y]=p}m[f-1][14]=(s.length-1)*8/Math.pow(2,32),m[f-1][14]=Math.floor(m[f-1][14]),m[f-1][15]=(s.length-1)*8&4294967295;for(let y=0;y<f;++y){const p=new Uint32Array(80);for(let h=0;h<16;++h)p[h]=m[y][h];for(let h=16;h<80;++h)p[h]=t(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);let g=u[0],v=u[1],x=u[2],d=u[3],w=u[4];for(let h=0;h<80;++h){const S=Math.floor(h/20),E=t(g,5)+e(S,v,x,d)+w+a[S]+p[h]>>>0;w=d,d=x,x=t(v,30)>>>0,v=g,g=E}u[0]=u[0]+g>>>0,u[1]=u[1]+v>>>0,u[2]=u[2]+x>>>0,u[3]=u[3]+d>>>0,u[4]=u[4]+w>>>0}return[u[0]>>24&255,u[0]>>16&255,u[0]>>8&255,u[0]&255,u[1]>>24&255,u[1]>>16&255,u[1]>>8&255,u[1]&255,u[2]>>24&255,u[2]>>16&255,u[2]>>8&255,u[2]&255,u[3]>>24&255,u[3]>>16&255,u[3]>>8&255,u[3]&255,u[4]>>24&255,u[4]>>16&255,u[4]>>8&255,u[4]&255]}var i=r;return no.default=i,no}var og;function gR(){if(og)return ro;og=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=r(Tv()),t=r(hR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return ro.default=s,ro}var io={},sg;function mR(){if(sg)return io;sg=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e="00000000-0000-0000-0000-000000000000";return io.default=e,io}var oo={},ag;function vR(){if(ag)return oo;ag=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var e=t(Da());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");return parseInt(s.slice(14,15),16)}var i=r;return oo.default=i,oo}var ug;function yR(){return ug||(ug=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return u.default}});var t=y(lR()),r=y(fR()),i=y(pR()),s=y(gR()),a=y(mR()),u=y(vR()),c=y(Da()),f=y(Na()),m=y(Av());function y(p){return p&&p.__esModule?p:{default:p}}})(Cl)),Cl}var kl,lg;function bR(){if(lg)return kl;lg=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,i,s,a={},u=this.srcAlphabet.length,c=this.dstAlphabet.length,f=t.length,m=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,s=0,r=0;r<f;r++)i=i*u+a[r],i>=c?(a[s++]=parseInt(i/c,10),i=i%c):s>0&&(a[s++]=0);f=s,m=this.dstAlphabet.slice(i,i+1).concat(m)}while(s!==0);return m},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},kl=e,kl}var $l,cg;function wR(){if(cg)return $l;cg=1;var e=bR();function t(r,i){var s=new e(r,i);return function(a){return s.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",$l=t,$l}var Il,fg;function xR(){if(fg)return Il;fg=1;const{v4:e,validate:t}=yR(),r=wR(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const u=(m,y,p)=>{const g=y(m.toLowerCase().replace(/-/g,""));return!p||!p.consistentLength?g:g.padStart(p.shortIdLength,p.paddingChar)},c=(m,y)=>{const g=y(m).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[g[1],g[2],g[3],g[4],g[5]].join("-")},f=m=>Math.ceil(Math.log(2**128)/Math.log(m));return Il=(()=>{const m=(y,p)=>{const g=y||i.flickrBase58,v={...s,...p};if([...new Set(Array.from(g))].length!==g.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(g.length),d={shortIdLength:x,consistentLength:v.consistentLength,paddingChar:g[0]},w=r(r.HEX,g),h=r(g,r.HEX),S=()=>u(e(),w,d),R={alphabet:g,fromUUID:O=>u(O,w,d),maxLength:x,generate:S,new:S,toUUID:O=>c(O,h),uuid:e,validate:(O,C=!1)=>{if(!O||typeof O!="string")return!1;const U=v.consistentLength?O.length===x:O.length<=x,M=O.split("").every(D=>g.includes(D));return C===!1?U&&M:U&&M&&t(c(O,h))}};return Object.freeze(R),R};return m.constants=i,m.uuid=e,m.generate=()=>(a||(a=m(i.flickrBase58).generate),a()),m})(),Il}var Jc=xR();const Rv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${Jc.generate()}`;return F.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[F.jsx("defs",{children:F.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:F.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?F.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):F.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Pv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?F.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return F.jsx(tt.FdDown,{className:He(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?F.jsx(tt.FdDown,{}):F.jsx(tt.FdRight,{});default:return F.jsx(tt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):F.jsx("div",{className:"flex h-6 w-3 items-center"}),Qc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:u,onNodeClick:c})=>{var v;const{key:f,children:m}=e,y=W.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),p=u&&typeof u=="function"?u(e,t,y,s,a):_R(e,t,y,c);return!((v=e.options)!=null&&v.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"flex items-center space-x-2",children:p},f),ER(m||[],t,a,r,i,y.expanded,s,c,u)]}):null},SR=function(e,t){var u;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=F.jsx(_v,{children:i})),F.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(u=e.options)==null?void 0:u.draggable,onClick:()=>{t&&t(e)},children:[a,F.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&F.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},ER=function(e,t,r,i,s,a,u,c,f){var m,y;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((m=e[0].data)==null?void 0:m.nodeType)||((y=e[0].data)==null?void 0:y.type))?e:e.sort((p,g)=>w0(p.title,g.title))).map(p=>F.jsx(Qc,{actions:u,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:c,renderNode:f},p.key)):null},_R=function(e,t,r,i){return F.jsxs(F.Fragment,{children:[F.jsx(Rv,{showLines:!0,depth:t}),F.jsx(Pv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),SR(e,i)]})},Hs=e=>t=>e===t,OR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:u,expandCondition:c="always",encapsulated:f,className:m}){const[y,p]=W.useState(()=>({expandedKeys:u||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&y.expandedKeys.length>0||p({...y,expandedKeys:u||y.expandedKeys})},[u]);const g=W.useCallback(h=>{if(!h)return;const S=y.expandedKeys.findIndex(Hs(h.key));let E=[];S===-1?(E=[...y.expandedKeys,h.key],p(()=>({...y,expandedKeys:E})),s&&s(E)):(E=y.expandedKeys.filter(R=>R!==h.key),p(()=>({...y,expandedKeys:E})),s&&s(E))},[y]),v=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;y.selectedKeys.findIndex(Hs(h.key))===-1&&p({...y,selectedKeys:[...y.selectedKeys,h.key]})},[y]),x=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;y.selectedKeys.findIndex(Hs(h.key))===-1&&p({...y,selectedKeys:[h.key]})},[y]),d=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable)){p({...y,selectedKeys:[]});return}y.selectedKeys.findIndex(Hs(h.key))!==-1&&p({...y,selectedKeys:y.selectedKeys.filter(R=>R!==h.key)})},[y]),w=W.useMemo(()=>({expand:g,select:v,selectSingle:x,deselect:d}),[d,g,v,x]);return F.jsx("div",{className:He("fd-tree",m,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(h=>F.jsx(Qc,{node:h,searchQuery:a||"",depth:0,expandedKeys:y.expandedKeys,selectedKeys:y.selectedKeys,actions:w,renderNode:r,onNodeClick:i},h.key))})};function fa(e){return e.of&&e.children?F.jsx(F.Fragment,{children:e.children}):null}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Qe.apply(null,arguments)}function AR(e){for(var t=0,r,i=0,s=e.length;s>=4;++i,s-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var TR={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 Cv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var RR=/[A-Z]|^ms/g,PR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kv=function(t){return t.charCodeAt(1)===45},dg=function(t){return t!=null&&typeof t!="boolean"},Ll=Cv(function(e){return kv(e)?e:e.replace(RR,"-$&").toLowerCase()}),pg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(PR,function(i,s,a){return Rr={name:s,styles:a,next:Rr},s})}return TR[t]!==1&&!kv(t)&&typeof r=="number"&&r!==0?r+"px":r};function $o(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return Rr={name:s.name,styles:s.styles,next:Rr},s.name;var a=r;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Rr={name:u.name,styles:u.styles,next:Rr},u=u.next;var c=a.styles+";";return c}return CR(e,t,r)}case"function":{if(e!==void 0){var f=Rr,m=r(e);return Rr=f,$o(e,t,m)}break}}var y=r;if(t==null)return y;var p=t[y];return p!==void 0?p:y}function CR(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=$o(e,t,r[s])+";";else for(var a in r){var u=r[a];if(typeof u!="object"){var c=u;t!=null&&t[c]!==void 0?i+=a+"{"+t[c]+"}":dg(c)&&(i+=Ll(a)+":"+pg(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var f=0;f<u.length;f++)dg(u[f])&&(i+=Ll(a)+":"+pg(a,u[f])+";");else{var m=$o(e,t,u);switch(a){case"animation":case"animationName":{i+=Ll(a)+":"+m+";";break}default:i+=a+"{"+m+"}"}}}return i}var hg=/label:\s*([^\s;{]+)\s*(;|$)/g,Rr;function kR(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";Rr=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=$o(r,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=$o(r,t,e[c]),i){var f=a;s+=f[c]}hg.lastIndex=0;for(var m="",y;(y=hg.exec(s))!==null;)m+="-"+y[1];var p=AR(s)+m;return{name:p,styles:s,next:Rr}}var $R=function(t){return t()},IR=$.useInsertionEffect?$.useInsertionEffect:!1,LR=IR||$R,MR=!0;function FR(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var $v=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||MR===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},DR=function(t,r,i){$v(t,r,i);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},NR=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,jR=Cv(function(e){return NR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),zR=jR,WR=function(t){return t!=="theme"},gg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?zR:WR},mg=function(t,r,i){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},UR=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return $v(r,i,s),LR(function(){return DR(r,i,s)}),null},BR=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,a,u;r!==void 0&&(a=r.label,u=r.target);var c=mg(t,r,i),f=c||gg(s),m=!f("as");return function(){var y=arguments,p=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)p.push.apply(p,y);else{var g=y[0];p.push(g[0]);for(var v=y.length,x=1;x<v;x++)p.push(y[x],g[x])}var d=dc.withEmotionCache(function(w,h,S){var E=m&&w.as||s,R="",O=[],C=w;if(w.theme==null){C={};for(var U in w)C[U]=w[U];C.theme=$.useContext(dc.ThemeContext)}typeof w.className=="string"?R=FR(h.registered,O,w.className):w.className!=null&&(R=w.className+" ");var M=kR(p.concat(O),h.registered,C);R+=h.key+"-"+M.name,u!==void 0&&(R+=" "+u);var D=m&&c===void 0?gg(E):f,q={};for(var N in w)m&&N==="as"||D(N)&&(q[N]=w[N]);return q.className=R,S&&(q.ref=S),$.createElement($.Fragment,null,$.createElement(UR,{cache:h,serialized:M,isStringTag:typeof E=="string"}),$.createElement(E,q))});return d.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",d.defaultProps=t.defaultProps,d.__emotion_real=d,d.__emotion_base=s,d.__emotion_styles=p,d.__emotion_forwardProp=c,Object.defineProperty(d,"toString",{value:function(){return"."+u}}),d.withComponent=function(w,h){var S=e(w,Qe({},r,h,{shouldForwardProp:mg(d,h,!0)}));return S.apply(void 0,p)},d}},HR=["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"],xa=BR.bind(null);HR.forEach(function(e){xa[e]=xa(e)});var qR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pi=new WeakMap,qs=new WeakMap,Zs={},Ml=0,Iv=function(e){return e&&(e.host||Iv(e.parentNode))},ZR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=Iv(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},GR=function(e,t,r,i){var s=ZR(t,Array.isArray(e)?e:[e]);Zs[r]||(Zs[r]=new WeakMap);var a=Zs[r],u=[],c=new Set,f=new Set(s),m=function(p){!p||c.has(p)||(c.add(p),m(p.parentNode))};s.forEach(m);var y=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(g){if(c.has(g))y(g);else try{var v=g.getAttribute(i),x=v!==null&&v!=="false",d=(pi.get(g)||0)+1,w=(a.get(g)||0)+1;pi.set(g,d),a.set(g,w),u.push(g),d===1&&x&&qs.set(g,!0),w===1&&g.setAttribute(r,"true"),x||g.setAttribute(i,"true")}catch(h){console.error("aria-hidden: cannot operate on ",g,h)}})};return y(t),c.clear(),Ml++,function(){u.forEach(function(p){var g=pi.get(p)-1,v=a.get(p)-1;pi.set(p,g),a.set(p,v),g||(qs.has(p)||p.removeAttribute(i),qs.delete(p)),v||p.removeAttribute(r)}),Ml--,Ml||(pi=new WeakMap,pi=new WeakMap,qs=new WeakMap,Zs={})}},KR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=qR(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),GR(i,s,r,"aria-hidden")):function(){return null}},gc=function(e,t){return gc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},gc(e,t)};function ja(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");gc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Pr=function(){return Pr=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Pr.apply(this,arguments)};function Lv(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}function mc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],u;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(c){u={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return a}function Sa(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var da="right-scroll-bar-position",pa="width-before-scroll-bar",VR="with-scroll-bars-hidden",XR="--removed-body-scroll-bar-size";function Fl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function YR(e,t){var r=W.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=t,r.facade}var JR=typeof window<"u"?$.useLayoutEffect:$.useEffect,vg=new WeakMap;function QR(e,t){var r=YR(null,function(i){return e.forEach(function(s){return Fl(s,i)})});return JR(function(){var i=vg.get(r);if(i){var s=new Set(i),a=new Set(e),u=r.current;s.forEach(function(c){a.has(c)||Fl(c,null)}),a.forEach(function(c){s.has(c)||Fl(c,u)})}vg.set(r,e)},[e]),r}function eP(e){return e}function tP(e,t){t===void 0&&(t=eP);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var u=t(a,i);return r.push(u),function(){r=r.filter(function(c){return c!==u})}},assignSyncMedium:function(a){for(i=!0;r.length;){var u=r;r=[],u.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var u=[];if(r.length){var c=r;r=[],c.forEach(a),u=r}var f=function(){var y=u;u=[],y.forEach(a)},m=function(){return Promise.resolve().then(f)};m(),r={push:function(y){u.push(y),m()},filter:function(y){return u=u.filter(y),r}}}};return s}function rP(e){e===void 0&&(e={});var t=tP(null);return t.options=Pr({async:!0,ssr:!1},e),t}var Mv=function(e){var t=e.sideCar,r=Lv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return $.createElement(i,Pr({},r))};Mv.isSideCarExport=!0;function nP(e,t){return e.useMedium(t),Mv}var Fv=rP(),Dl=function(){},za=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:Dl,onWheelCapture:Dl,onTouchMoveCapture:Dl}),s=i[0],a=i[1],u=e.forwardProps,c=e.children,f=e.className,m=e.removeScrollBar,y=e.enabled,p=e.shards,g=e.sideCar,v=e.noRelative,x=e.noIsolation,d=e.inert,w=e.allowPinchZoom,h=e.as,S=h===void 0?"div":h,E=e.gapMode,R=Lv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=g,C=QR([r,t]),U=Pr(Pr({},R),s);return $.createElement($.Fragment,null,y&&$.createElement(O,{sideCar:Fv,removeScrollBar:m,shards:p,noRelative:v,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:E}),u?$.cloneElement($.Children.only(c),Pr(Pr({},U),{ref:C})):$.createElement(S,Pr({},U,{className:f,ref:C}),c))});za.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};za.classNames={fullWidth:pa,zeroRight:da};var iP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=iP();return t&&e.setAttribute("nonce",t),e}function sP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function aP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=oP())&&(sP(t,r),aP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lP=function(){var e=uP();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Dv=function(){var e=lP(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},cP={left:0,top:0,right:0,gap:0},Nl=function(e){return parseInt(e||"",10)||0},fP=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Nl(r),Nl(i),Nl(s)]},dP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cP;var t=fP(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},pP=Dv(),yi="data-scroll-locked",hP=function(e,t,r,i){var s=e.left,a=e.top,u=e.right,c=e.gap;return r===void 0&&(r="margin"),`
23
+ .`.concat(VR,` {
24
24
  overflow: hidden `).concat(i,`;
25
25
  padding-right: `).concat(c,"px ").concat(i,`;
26
26
  }
@@ -30,7 +30,7 @@
30
30
  `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
31
31
  padding-left: `.concat(s,`px;
32
32
  padding-top: `).concat(a,`px;
33
- padding-right: `).concat(l,`px;
33
+ padding-right: `).concat(u,`px;
34
34
  margin-left:0;
35
35
  margin-top:0;
36
36
  margin-right: `).concat(c,"px ").concat(i,`;
@@ -54,104 +54,104 @@
54
54
  }
55
55
 
56
56
  body[`).concat(yi,`] {
57
- `).concat(GR,": ").concat(c,`px;
57
+ `).concat(XR,": ").concat(c,`px;
58
58
  }
59
- `)},bg=function(){var e=parseInt(document.body.getAttribute(yi)||"0",10);return isFinite(e)?e:0},dP=function(){$.useEffect(function(){return document.body.setAttribute(yi,(bg()+1).toString()),function(){var e=bg()-1;e<=0?document.body.removeAttribute(yi):document.body.setAttribute(yi,e.toString())}},[])},pP=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;dP();var a=$.useMemo(function(){return lP(s)},[s]);return $.createElement(cP,{styles:fP(a,!t,s,r?"":"!important")})},bc=!1;if(typeof window<"u")try{var Gs=Object.defineProperty({},"passive",{get:function(){return bc=!0,!0}});window.addEventListener("test",Gs,Gs),window.removeEventListener("test",Gs,Gs)}catch{bc=!1}var hi=bc?{passive:!1}:!1,hP=function(e){return e.tagName==="TEXTAREA"},Nv=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!hP(e)&&r[t]==="visible")},gP=function(e){return Nv(e,"overflowY")},mP=function(e){return Nv(e,"overflowX")},wg=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=jv(e,i);if(s){var a=zv(e,i),l=a[1],c=a[2];if(l>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},vP=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},yP=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},jv=function(e,t){return e==="v"?gP(t):mP(t)},zv=function(e,t){return e==="v"?vP(t):yP(t)},bP=function(e,t){return e==="h"&&t==="rtl"?-1:1},wP=function(e,t,r,i,s){var a=bP(e,window.getComputedStyle(t).direction),l=a*i,c=r.target,f=t.contains(c),m=!1,y=l>0,p=0,g=0;do{if(!c)break;var v=zv(e,c),x=v[0],d=v[1],w=v[2],h=d-w-a*x;(x||h)&&jv(e,c)&&(p+=h,g+=x);var S=c.parentNode;c=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(y&&Math.abs(p)<1||!y&&Math.abs(g)<1)&&(m=!0),m},Ks=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xg=function(e){return[e.deltaX,e.deltaY]},Sg=function(e){return e&&"current"in e?e.current:e},xP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},SP=function(e){return`
59
+ `)},yg=function(){var e=parseInt(document.body.getAttribute(yi)||"0",10);return isFinite(e)?e:0},gP=function(){$.useEffect(function(){return document.body.setAttribute(yi,(yg()+1).toString()),function(){var e=yg()-1;e<=0?document.body.removeAttribute(yi):document.body.setAttribute(yi,e.toString())}},[])},mP=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;gP();var a=$.useMemo(function(){return dP(s)},[s]);return $.createElement(pP,{styles:hP(a,!t,s,r?"":"!important")})},yc=!1;if(typeof window<"u")try{var Gs=Object.defineProperty({},"passive",{get:function(){return yc=!0,!0}});window.addEventListener("test",Gs,Gs),window.removeEventListener("test",Gs,Gs)}catch{yc=!1}var hi=yc?{passive:!1}:!1,vP=function(e){return e.tagName==="TEXTAREA"},Nv=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!vP(e)&&r[t]==="visible")},yP=function(e){return Nv(e,"overflowY")},bP=function(e){return Nv(e,"overflowX")},bg=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=jv(e,i);if(s){var a=zv(e,i),u=a[1],c=a[2];if(u>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},wP=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},xP=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},jv=function(e,t){return e==="v"?yP(t):bP(t)},zv=function(e,t){return e==="v"?wP(t):xP(t)},SP=function(e,t){return e==="h"&&t==="rtl"?-1:1},EP=function(e,t,r,i,s){var a=SP(e,window.getComputedStyle(t).direction),u=a*i,c=r.target,f=t.contains(c),m=!1,y=u>0,p=0,g=0;do{if(!c)break;var v=zv(e,c),x=v[0],d=v[1],w=v[2],h=d-w-a*x;(x||h)&&jv(e,c)&&(p+=h,g+=x);var S=c.parentNode;c=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(y&&Math.abs(p)<1||!y&&Math.abs(g)<1)&&(m=!0),m},Ks=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wg=function(e){return[e.deltaX,e.deltaY]},xg=function(e){return e&&"current"in e?e.current:e},_P=function(e,t){return e[0]===t[0]&&e[1]===t[1]},OP=function(e){return`
60
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},EP=0,gi=[];function _P(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),s=$.useState(EP++)[0],a=$.useState(Dv)[0],l=$.useRef(e);$.useEffect(function(){l.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var d=Ea([e.lockRef.current],(e.shards||[]).map(Sg),!0).filter(Boolean);return d.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),d.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=$.useCallback(function(d,w){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!l.current.allowPinchZoom;var h=Ks(d),S=r.current,E="deltaX"in d?d.deltaX:S[0]-h[0],R="deltaY"in d?d.deltaY:S[1]-h[1],O,C=d.target,U=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in d&&U==="h"&&C.type==="range")return!1;var M=window.getSelection(),D=M&&M.anchorNode,q=D?D===C||D.contains(C):!1;if(q)return!1;var N=wg(U,C);if(!N)return!0;if(N?O=U:(O=U==="v"?"h":"v",N=wg(U,C)),!N)return!1;if(!i.current&&"changedTouches"in d&&(E||R)&&(i.current=O),!O)return!0;var L=i.current||O;return wP(L,w,d,L==="h"?E:R)},[]),f=$.useCallback(function(d){var w=d;if(!(!gi.length||gi[gi.length-1]!==a)){var h="deltaY"in w?xg(w):Ks(w),S=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&xP(O.delta,h)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(l.current.shards||[]).map(Sg).filter(Boolean).filter(function(O){return O.contains(w.target)}),R=E.length>0?c(w,E[0]):!l.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),m=$.useCallback(function(d,w,h,S){var E={name:d,delta:w,target:h,should:S,shadowParent:OP(h)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),y=$.useCallback(function(d){r.current=Ks(d),i.current=void 0},[]),p=$.useCallback(function(d){m(d.type,xg(d),d.target,c(d,e.lockRef.current))},[]),g=$.useCallback(function(d){m(d.type,Ks(d),d.target,c(d,e.lockRef.current))},[]);$.useEffect(function(){return gi.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",f,hi),document.addEventListener("touchmove",f,hi),document.addEventListener("touchstart",y,hi),function(){gi=gi.filter(function(d){return d!==a}),document.removeEventListener("wheel",f,hi),document.removeEventListener("touchmove",f,hi),document.removeEventListener("touchstart",y,hi)}},[]);var v=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(a,{styles:SP(s)}):null,v?$.createElement(pP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function OP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const AP=eP(Fv,_P);var Wv=$.forwardRef(function(e,t){return $.createElement(Wa,Rr({},e,{ref:t,sideCar:AP}))});Wv.classNames=Wa.classNames;const TP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},RP=$.useId||(()=>{});let PP=0;function Uv(e){const[t,r]=$.useState(RP());return TP((()=>{r((i=>i??String(PP++)))}),[e]),t?`radix-${t}`:""}function Bv(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function Sn(...e){return $.useCallback(Bv(...e),e)}const Hv=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(Eg)?$.createElement($.Fragment,null,$.Children.map(r,(s=>Eg(s)?$.createElement(wc,Qe({},i,{ref:t}),s.props.children):s))):$.createElement(wc,Qe({},i,{ref:t}),r)}));Hv.displayName="Slot";const wc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...CP(i,r.props),ref:Bv(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));wc.displayName="SlotClone";const qv=({children:e})=>$.createElement($.Fragment,null,e);function Eg(e){return $.isValidElement(e)&&e.type===qv}function CP(e,t){const r={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{a==null||a(...l),s==null||s(...l)}:i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const En=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:$.forwardRef(((r,i)=>{const{asChild:s,...a}=r,l=s?Hv:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(l,Qe({},a,{ref:i}))}))})),{}),_g=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},tf=e=>{const{present:t,children:r}=e,i=(function(l){const[c,f]=$.useState(),m=$.useRef({}),y=$.useRef(l),p=$.useRef("none"),g=l?"mounted":"unmounted",[v,x]=(function(d,w){return $.useReducer(((h,S)=>{const E=w[h][S];return E??h}),d)})(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const d=Vs(m.current);p.current=v==="mounted"?d:"none"}),[v]),_g((()=>{const d=m.current,w=y.current;if(w!==l){const h=p.current,S=Vs(d);l?x("MOUNT"):S==="none"||(d==null?void 0:d.display)==="none"?x("UNMOUNT"):x(w&&h!==S?"ANIMATION_OUT":"UNMOUNT"),y.current=l}}),[l,x]),_g((()=>{if(c){const d=h=>{const S=Vs(m.current).includes(h.animationName);h.target===c&&S&&x("ANIMATION_END")},w=h=>{h.target===c&&(p.current=Vs(m.current))};return c.addEventListener("animationstart",w),c.addEventListener("animationcancel",d),c.addEventListener("animationend",d),()=>{c.removeEventListener("animationstart",w),c.removeEventListener("animationcancel",d),c.removeEventListener("animationend",d)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:$.useCallback((d=>{d&&(m.current=getComputedStyle(d)),f(d)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),a=Sn(i.ref,s.ref);return typeof r=="function"||i.isPresent?$.cloneElement(s,{ref:a}):null};function Vs(e){return(e==null?void 0:e.animationName)||"none"}tf.displayName="Presence";let zl=0;function kP(){$.useEffect((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Og()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Og()),zl++,()=>{zl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),zl--}}),[])}function Og(){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 $P=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},rf=$.forwardRef(((e,t)=>{var r,i;const{containerRef:s,style:a,...l}=e,c=(r=s==null?void 0:s.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,f]=$.useState({});return $P((()=>{f({})}),[]),c?zo.createPortal($.createElement(En.div,Qe({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function qn(e){const t=$.useRef(e);return $.useEffect((()=>{t.current=e})),$.useMemo((()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)}),[])}const Ag={bubbles:!1,cancelable:!0},IP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=e,[c,f]=$.useState(null),m=qn(s),y=qn(a),p=$.useRef(null),g=Sn(t,(d=>f(d))),v=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let d=function(h){if(v.paused||!c)return;const S=h.target;c.contains(S)?p.current=S:Mn(p.current,{select:!0})},w=function(h){!v.paused&&c&&(c.contains(h.relatedTarget)||Mn(p.current,{select:!0}))};return document.addEventListener("focusin",d),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",w)}}}),[i,c,v.paused]),$.useEffect((()=>{if(c){Pg.add(v);const w=document.activeElement;if(!c.contains(w)){const h=new Event("focusScope.autoFocusOnMount",Ag);c.addEventListener("focusScope.autoFocusOnMount",m),c.dispatchEvent(h),h.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const O of S)if(Mn(O,{select:E}),document.activeElement!==R)return})((d=Tg(c),d.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&Mn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout((()=>{const h=new Event("focusScope.autoFocusOnUnmount",Ag);c.addEventListener("focusScope.autoFocusOnUnmount",y),c.dispatchEvent(h),h.defaultPrevented||Mn(w??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",y),Pg.remove(v)}),0)}}var d}),[c,m,y,v]);const x=$.useCallback((d=>{if(!r&&!i||v.paused)return;const w=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,h=document.activeElement;if(w&&h){const S=d.currentTarget,[E,R]=(function(O){const C=Tg(O),U=Rg(C,O),M=Rg(C.reverse(),O);return[U,M]})(S);E&&R?d.shiftKey||h!==R?d.shiftKey&&h===E&&(d.preventDefault(),r&&Mn(R,{select:!0})):(d.preventDefault(),r&&Mn(E,{select:!0})):h===S&&d.preventDefault()}}),[r,i,v.paused]);return $.createElement(En.div,Qe({tabIndex:-1},l,{ref:g,onKeyDown:x}))}));function Tg(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Rg(e,t){for(const r of e)if(!LP(r,{upTo:t}))return r}function LP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Mn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(i){return i instanceof HTMLInputElement&&"select"in i})(e)&&t&&e.select()}}const Pg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Cg(e,t),e.unshift(t)},remove(t){var r;e=Cg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function Cg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function Zv(e){const t=qn(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const MP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let kg,Xs=0;function FP({disabled:e}){const t=$.useRef(!1);MP((()=>{if(e){let r=function(){Xs--,Xs===0&&(document.body.style.pointerEvents=kg)},i=function(s){t.current=s.pointerType!=="mouse"};return Xs===0&&(kg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Xs++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function qt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}const DP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),NP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...f}=e,m=$.useContext(DP),[y,p]=$.useState(null),[,g]=$.useState({}),v=Sn(t,(C=>p(C))),x=Array.from(m.layers),[d]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(d),h=y?x.indexOf(y):-1,S=m.layersWithOutsidePointerEventsDisabled.size>0,E=h>=w,R=(function(C){const U=qn(C),M=$.useRef(!1);return $.useEffect((()=>{const D=N=>{N.target&&!M.current&&Ig("dismissableLayer.pointerDownOutside",U,{originalEvent:N}),M.current=!1},q=window.setTimeout((()=>{document.addEventListener("pointerdown",D)}),0);return()=>{window.clearTimeout(q),document.removeEventListener("pointerdown",D)}}),[U]),{onPointerDownCapture:()=>M.current=!0}})((C=>{const U=C.target,M=[...m.branches].some((D=>D.contains(U)));E&&!M&&(s==null||s(C),l==null||l(C),C.defaultPrevented||c==null||c())})),O=(function(C){const U=qn(C),M=$.useRef(!1);return $.useEffect((()=>{const D=q=>{q.target&&!M.current&&Ig("dismissableLayer.focusOutside",U,{originalEvent:q})};return document.addEventListener("focusin",D),()=>document.removeEventListener("focusin",D)}),[U]),{onFocusCapture:()=>M.current=!0,onBlurCapture:()=>M.current=!1}})((C=>{const U=C.target;[...m.branches].some((M=>M.contains(U)))||(a==null||a(C),l==null||l(C),C.defaultPrevented||c==null||c())}));return Zv((C=>{h===m.layers.size-1&&(i==null||i(C),C.defaultPrevented||c==null||c())})),FP({disabled:r}),$.useEffect((()=>{y&&(r&&m.layersWithOutsidePointerEventsDisabled.add(y),m.layers.add(y),$g())}),[y,r,m]),$.useEffect((()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),$g())}),[y,m]),$.useEffect((()=>{const C=()=>g({});return document.addEventListener("dismissableLayer.update",C),()=>document.removeEventListener("dismissableLayer.update",C)}),[]),$.createElement(En.div,Qe({},f,{ref:v,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:qt(e.onFocusCapture,O.onFocusCapture),onBlurCapture:qt(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:qt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function $g(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Ig(e,t,r){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(s)}function Lg(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,c;if("borderBoxSize"in a){const f=a.borderBoxSize,m=Array.isArray(f)?f[0]:f;l=m.inlineSize,c=m.blockSize}else{const f=e.getBoundingClientRect();l=f.width,c=f.height}r({width:l,height:c})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function jP(e,t){const r=Fn.get(e);return r===void 0?(Fn.set(e,{rect:{},callbacks:[t]}),Fn.size===1&&(xc=requestAnimationFrame(Gv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Fn.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&(Fn.delete(e),Fn.size===0&&cancelAnimationFrame(xc))}}let xc;const Fn=new Map;function Gv(){const e=[];Fn.forEach(((t,r)=>{const i=r.getBoundingClientRect();var s,a;s=t.rect,a=i,(s.width!==a.width||s.height!==a.height||s.top!==a.top||s.right!==a.right||s.bottom!==a.bottom||s.left!==a.left)&&(t.rect=i,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),xc=requestAnimationFrame(Gv)}function Kv(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=jP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function nf(e,t=[]){let r=[];const i=()=>{const s=r.map((a=>$.createContext(a)));return function(a){const l=(a==null?void 0:a[e])||s;return $.useMemo((()=>({[`__scope${e}`]:{...a,[e]:l}})),[a,l])}};return i.scopeName=e,[function(s,a){const l=$.createContext(a),c=r.length;function f(m){const{scope:y,children:p,...g}=m,v=(y==null?void 0:y[e][c])||l,x=$.useMemo((()=>g),Object.values(g));return $.createElement(v.Provider,{value:x},p)}return r=[...r,a],f.displayName=s+"Provider",[f,function(m,y){const p=(y==null?void 0:y[e][c])||l,g=$.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}]},zP(i,...t)]}function zP(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((s=>({useScope:s(),scopeName:s.scopeName})));return function(s){const a=i.reduce(((l,{useScope:c,scopeName:f})=>({...l,...c(s)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function WP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:s,sideOffset:a=0,align:l,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:m,collisionTolerance:y=0}){if(!e||!t||!m)return{popperStyles:UP,arrowStyles:Wl};const p=(function(U,M,D=0,q=0,N){const L=N?N.height:0,B=Mg(M,U,"x"),Z=Mg(M,U,"y"),k=Z.before-D-L,Q=Z.after+D+L,J=B.before-D-L,re=B.after+D+L;return{top:{start:{x:B.start+q,y:k},center:{x:B.center,y:k},end:{x:B.end-q,y:k}},right:{start:{x:re,y:Z.start+q},center:{x:re,y:Z.center},end:{x:re,y:Z.end-q}},bottom:{start:{x:B.start+q,y:Q},center:{x:B.center,y:Q},end:{x:B.end-q,y:Q}},left:{start:{x:J,y:Z.start+q},center:{x:J,y:Z.center},end:{x:J,y:Z.end-q}}}})(t,e,a,c,r),g=p[s][l];if(f===!1){const U=Fg(g);let M=Wl;return r&&(M=Ng({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":Dg(t,s,l,i,r)},arrowStyles:M,placedSide:s,placedAlign:l}}const v=DOMRect.fromRect({...t,...g}),x=(d=m,w=y,DOMRect.fromRect({width:d.width-2*w,height:d.height-2*w,x:d.left+w,y:d.top+w}));var d,w;const h=zg(v,x),S=p[jg(s)][l],E=(function(U,M,D){const q=jg(U);return M[U]&&!D[q]?q:U})(s,h,zg(DOMRect.fromRect({...t,...S}),x)),R=(function(U,M,D,q,N){const L=D==="top"||D==="bottom",B=L?"left":"top",Z=L?"right":"bottom",k=L?"width":"height",Q=M[k]>U[k];return(q==="start"||q==="center")&&(N[B]&&Q||N[Z]&&!Q)?"end":(q==="end"||q==="center")&&(N[Z]&&Q||N[B]&&!Q)?"start":q})(t,e,s,l,h),O=Fg(p[E][R]);let C=Wl;return r&&(C=Ng({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":Dg(t,E,R,i,r)},arrowStyles:C,placedSide:E,placedAlign:R}}function Mg(e,t,r){const i=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],l=t[s];return{before:i-l,start:i,center:i+(a-l)/2,end:i+a-l,after:i+a}}function Fg(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 Dg(e,t,r,i,s){const a=t==="top"||t==="bottom",l=s?s.width:0,c=s?s.height:0,f=l/2+i;let m="",y="";return a?(m={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],y=t==="top"?`${e.height+c}px`:-c+"px"):(m=t==="left"?`${e.width+c}px`:-c+"px",y={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${m} ${y}`}const UP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Wl={position:"absolute",opacity:0};function Ng({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:s}){const a=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],f=Math.max(t.width,t.height),m={width:`${f}px`,height:`${f}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:BP(i,s)};return i!=="top"&&i!=="bottom"||(s==="start"&&(m.left=`${r}px`),s==="center"&&(m.left=`${a}px`),s==="end"&&(m.right=`${r}px`)),i!=="left"&&i!=="right"||(s==="start"&&(m.top=`${r}px`),s==="center"&&(m.top=`${l}px`),s==="end"&&(m.bottom=`${r}px`)),m}function BP(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function jg(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function zg(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Vv,Ua]=nf("Popper"),[HP,Xv]=Vv("Popper"),qP=e=>{const{__scopePopper:t,children:r}=e,[i,s]=$.useState(null);return $.createElement(HP,{scope:t,anchor:i,onAnchorChange:s},r)},ZP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=Xv("PopperAnchor",r),l=$.useRef(null),c=Sn(t,l);return $.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||l.current)})),i?null:$.createElement(En.div,Qe({},s,{ref:c}))})),[GP,MM]=Vv("PopperContent"),KP=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:l,collisionTolerance:c,avoidCollisions:f=!0,...m}=e,y=Xv("PopperContent",r),[p,g]=$.useState(),v=Kv(y.anchor),[x,d]=$.useState(null),w=Lg(x),[h,S]=$.useState(null),E=Lg(h),R=Sn(t,(L=>d(L))),O=(function(){const[L,B]=$.useState(void 0);return $.useEffect((()=>{let Z;function k(){B({width:window.innerWidth,height:window.innerHeight})}function Q(){window.clearTimeout(Z),Z=window.setTimeout(k,100)}return k(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)}),[]),L})(),C=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:M,placedSide:D,placedAlign:q}=WP({anchorRect:v,popperSize:w,arrowSize:E,arrowOffset:p,side:i,sideOffset:s,align:a,alignOffset:l,shouldAvoidCollisions:f,collisionBoundariesRect:C,collisionTolerance:c}),N=D!==void 0;return $.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},$.createElement(GP,{scope:r,arrowStyles:M,onArrowChange:S,onArrowOffsetChange:g},$.createElement(En.div,Qe({"data-side":D,"data-align":q},m,{style:{...m.style,animation:N?void 0:"none"},ref:R}))))})),Yv=qP,Jv=ZP,Qv=KP;function ey({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:m}){const y=$.useState(f),[p]=y,g=$.useRef(p),v=qn(m);return $.useEffect((()=>{g.current!==p&&(v(p),g.current=p)}),[p,g,v]),y})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:i,c=qn(r);return[l,$.useCallback((f=>{if(a){const m=f,y=typeof f=="function"?m(e):f;y!==e&&c(y)}else s(f)}),[a,e,s,c])]}const[VP]=nf("Popover",[Ua]),of=Ua(),[XP,Bo]=VP("Popover"),YP=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:l=!1}=e,c=of(t),f=$.useRef(null),[m,y]=$.useState(!1),[p=!1,g]=ey({prop:i,defaultProp:s,onChange:a});return $.createElement(Yv,c,$.createElement(XP,{scope:t,contentId:Uv(),triggerRef:f,open:p,onOpenChange:g,onOpenToggle:$.useCallback((()=>g((v=>!v))),[g]),hasCustomAnchor:m,onCustomAnchorAdd:$.useCallback((()=>y(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>y(!1)),[]),modal:l},r))},JP=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=Bo("PopoverTrigger",r),a=of(r),l=Sn(t,s.triggerRef),c=$.createElement(En.button,Qe({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ry(s.open)},i,{ref:l,onClick:qt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:$.createElement(Jv,Qe({asChild:!0},a),c)})),QP=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Bo("PopoverContent",e.__scopePopover);return $.createElement(tf,{present:r||s.open},s.modal?$.createElement(eC,Qe({},i,{ref:t})):$.createElement(tC,Qe({},i,{ref:t})))})),eC=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=Bo("PopoverContent",e.__scopePopover),l=$.useRef(null),c=Sn(t,l),f=$.useRef(!1);$.useEffect((()=>{const y=l.current;if(y)return qR(y)}),[]);const m=i?rf:$.Fragment;return $.createElement(m,null,$.createElement(Wv,{allowPinchZoom:r},$.createElement(ty,Qe({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qt(e.onCloseAutoFocus,(y=>{var p;y.preventDefault(),f.current||(p=a.triggerRef.current)===null||p===void 0||p.focus()})),onPointerDownOutside:qt(e.onPointerDownOutside,(y=>{const p=y.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,v=p.button===2||g;f.current=v}),{checkForDefaultPrevented:!1}),onFocusOutside:qt(e.onFocusOutside,(y=>y.preventDefault()),{checkForDefaultPrevented:!1})}))))})),tC=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=Bo("PopoverContent",e.__scopePopover),a=$.useRef(!1),l=r?rf:$.Fragment;return $.createElement(l,null,$.createElement(ty,Qe({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,m;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current||(m=s.triggerRef.current)===null||m===void 0||m.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var f,m;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current=!0);const y=c.target;!((m=s.triggerRef.current)===null||m===void 0)&&m.contains(y)&&c.preventDefault()}})))})),ty=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:y,...p}=e,g=Bo("PopoverContent",r),v=of(r);return kP(),$.createElement(IP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},$.createElement(NP,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:y,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>g.onOpenChange(!1)},$.createElement(Qv,Qe({"data-state":ry(g.open),role:"dialog",id:g.contentId},v,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function ry(e){return e?"open":"closed"}const rC=YP,nC=JP,iC=QP;var ha=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(ha||{}),Ul={},so={},Ys={},Js={},Qs={exports:{}},ea={exports:{}},Fe={};/** @license React v16.13.1
62
+ `)},AP=0,gi=[];function TP(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),s=$.useState(AP++)[0],a=$.useState(Dv)[0],u=$.useRef(e);$.useEffect(function(){u.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var d=Sa([e.lockRef.current],(e.shards||[]).map(xg),!0).filter(Boolean);return d.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),d.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=$.useCallback(function(d,w){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!u.current.allowPinchZoom;var h=Ks(d),S=r.current,E="deltaX"in d?d.deltaX:S[0]-h[0],R="deltaY"in d?d.deltaY:S[1]-h[1],O,C=d.target,U=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in d&&U==="h"&&C.type==="range")return!1;var M=window.getSelection(),D=M&&M.anchorNode,q=D?D===C||D.contains(C):!1;if(q)return!1;var N=bg(U,C);if(!N)return!0;if(N?O=U:(O=U==="v"?"h":"v",N=bg(U,C)),!N)return!1;if(!i.current&&"changedTouches"in d&&(E||R)&&(i.current=O),!O)return!0;var L=i.current||O;return EP(L,w,d,L==="h"?E:R)},[]),f=$.useCallback(function(d){var w=d;if(!(!gi.length||gi[gi.length-1]!==a)){var h="deltaY"in w?wg(w):Ks(w),S=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&_P(O.delta,h)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(u.current.shards||[]).map(xg).filter(Boolean).filter(function(O){return O.contains(w.target)}),R=E.length>0?c(w,E[0]):!u.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),m=$.useCallback(function(d,w,h,S){var E={name:d,delta:w,target:h,should:S,shadowParent:RP(h)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),y=$.useCallback(function(d){r.current=Ks(d),i.current=void 0},[]),p=$.useCallback(function(d){m(d.type,wg(d),d.target,c(d,e.lockRef.current))},[]),g=$.useCallback(function(d){m(d.type,Ks(d),d.target,c(d,e.lockRef.current))},[]);$.useEffect(function(){return gi.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",f,hi),document.addEventListener("touchmove",f,hi),document.addEventListener("touchstart",y,hi),function(){gi=gi.filter(function(d){return d!==a}),document.removeEventListener("wheel",f,hi),document.removeEventListener("touchmove",f,hi),document.removeEventListener("touchstart",y,hi)}},[]);var v=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(a,{styles:OP(s)}):null,v?$.createElement(mP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function RP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const PP=nP(Fv,TP);var Wv=$.forwardRef(function(e,t){return $.createElement(za,Pr({},e,{ref:t,sideCar:PP}))});Wv.classNames=za.classNames;const CP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},kP=$.useId||(()=>{});let $P=0;function Uv(e){const[t,r]=$.useState(kP());return CP((()=>{r((i=>i??String($P++)))}),[e]),t?`radix-${t}`:""}function Bv(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function En(...e){return $.useCallback(Bv(...e),e)}const Hv=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(Sg)?$.createElement($.Fragment,null,$.Children.map(r,(s=>Sg(s)?$.createElement(bc,Qe({},i,{ref:t}),s.props.children):s))):$.createElement(bc,Qe({},i,{ref:t}),r)}));Hv.displayName="Slot";const bc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...IP(i,r.props),ref:Bv(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));bc.displayName="SlotClone";const qv=({children:e})=>$.createElement($.Fragment,null,e);function Sg(e){return $.isValidElement(e)&&e.type===qv}function IP(e,t){const r={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?r[i]=(...u)=>{a==null||a(...u),s==null||s(...u)}:i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const _n=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:$.forwardRef(((r,i)=>{const{asChild:s,...a}=r,u=s?Hv:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(u,Qe({},a,{ref:i}))}))})),{}),Eg=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},ef=e=>{const{present:t,children:r}=e,i=(function(u){const[c,f]=$.useState(),m=$.useRef({}),y=$.useRef(u),p=$.useRef("none"),g=u?"mounted":"unmounted",[v,x]=(function(d,w){return $.useReducer(((h,S)=>{const E=w[h][S];return E??h}),d)})(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const d=Vs(m.current);p.current=v==="mounted"?d:"none"}),[v]),Eg((()=>{const d=m.current,w=y.current;if(w!==u){const h=p.current,S=Vs(d);u?x("MOUNT"):S==="none"||(d==null?void 0:d.display)==="none"?x("UNMOUNT"):x(w&&h!==S?"ANIMATION_OUT":"UNMOUNT"),y.current=u}}),[u,x]),Eg((()=>{if(c){const d=h=>{const S=Vs(m.current).includes(h.animationName);h.target===c&&S&&x("ANIMATION_END")},w=h=>{h.target===c&&(p.current=Vs(m.current))};return c.addEventListener("animationstart",w),c.addEventListener("animationcancel",d),c.addEventListener("animationend",d),()=>{c.removeEventListener("animationstart",w),c.removeEventListener("animationcancel",d),c.removeEventListener("animationend",d)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:$.useCallback((d=>{d&&(m.current=getComputedStyle(d)),f(d)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),a=En(i.ref,s.ref);return typeof r=="function"||i.isPresent?$.cloneElement(s,{ref:a}):null};function Vs(e){return(e==null?void 0:e.animationName)||"none"}ef.displayName="Presence";let jl=0;function LP(){$.useEffect((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:_g()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:_g()),jl++,()=>{jl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),jl--}}),[])}function _g(){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 MP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},tf=$.forwardRef(((e,t)=>{var r,i;const{containerRef:s,style:a,...u}=e,c=(r=s==null?void 0:s.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,f]=$.useState({});return MP((()=>{f({})}),[]),c?zo.createPortal($.createElement(_n.div,Qe({"data-radix-portal":""},u,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function qn(e){const t=$.useRef(e);return $.useEffect((()=>{t.current=e})),$.useMemo((()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)}),[])}const Og={bubbles:!1,cancelable:!0},FP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...u}=e,[c,f]=$.useState(null),m=qn(s),y=qn(a),p=$.useRef(null),g=En(t,(d=>f(d))),v=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let d=function(h){if(v.paused||!c)return;const S=h.target;c.contains(S)?p.current=S:Fn(p.current,{select:!0})},w=function(h){!v.paused&&c&&(c.contains(h.relatedTarget)||Fn(p.current,{select:!0}))};return document.addEventListener("focusin",d),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",w)}}}),[i,c,v.paused]),$.useEffect((()=>{if(c){Rg.add(v);const w=document.activeElement;if(!c.contains(w)){const h=new Event("focusScope.autoFocusOnMount",Og);c.addEventListener("focusScope.autoFocusOnMount",m),c.dispatchEvent(h),h.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const O of S)if(Fn(O,{select:E}),document.activeElement!==R)return})((d=Ag(c),d.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&Fn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout((()=>{const h=new Event("focusScope.autoFocusOnUnmount",Og);c.addEventListener("focusScope.autoFocusOnUnmount",y),c.dispatchEvent(h),h.defaultPrevented||Fn(w??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",y),Rg.remove(v)}),0)}}var d}),[c,m,y,v]);const x=$.useCallback((d=>{if(!r&&!i||v.paused)return;const w=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,h=document.activeElement;if(w&&h){const S=d.currentTarget,[E,R]=(function(O){const C=Ag(O),U=Tg(C,O),M=Tg(C.reverse(),O);return[U,M]})(S);E&&R?d.shiftKey||h!==R?d.shiftKey&&h===E&&(d.preventDefault(),r&&Fn(R,{select:!0})):(d.preventDefault(),r&&Fn(E,{select:!0})):h===S&&d.preventDefault()}}),[r,i,v.paused]);return $.createElement(_n.div,Qe({tabIndex:-1},u,{ref:g,onKeyDown:x}))}));function Ag(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Tg(e,t){for(const r of e)if(!DP(r,{upTo:t}))return r}function DP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Fn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(i){return i instanceof HTMLInputElement&&"select"in i})(e)&&t&&e.select()}}const Rg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Pg(e,t),e.unshift(t)},remove(t){var r;e=Pg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function Pg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function Zv(e){const t=qn(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const NP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let Cg,Xs=0;function jP({disabled:e}){const t=$.useRef(!1);NP((()=>{if(e){let r=function(){Xs--,Xs===0&&(document.body.style.pointerEvents=Cg)},i=function(s){t.current=s.pointerType!=="mouse"};return Xs===0&&(Cg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Xs++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function qt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}const zP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),WP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...f}=e,m=$.useContext(zP),[y,p]=$.useState(null),[,g]=$.useState({}),v=En(t,(C=>p(C))),x=Array.from(m.layers),[d]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(d),h=y?x.indexOf(y):-1,S=m.layersWithOutsidePointerEventsDisabled.size>0,E=h>=w,R=(function(C){const U=qn(C),M=$.useRef(!1);return $.useEffect((()=>{const D=N=>{N.target&&!M.current&&$g("dismissableLayer.pointerDownOutside",U,{originalEvent:N}),M.current=!1},q=window.setTimeout((()=>{document.addEventListener("pointerdown",D)}),0);return()=>{window.clearTimeout(q),document.removeEventListener("pointerdown",D)}}),[U]),{onPointerDownCapture:()=>M.current=!0}})((C=>{const U=C.target,M=[...m.branches].some((D=>D.contains(U)));E&&!M&&(s==null||s(C),u==null||u(C),C.defaultPrevented||c==null||c())})),O=(function(C){const U=qn(C),M=$.useRef(!1);return $.useEffect((()=>{const D=q=>{q.target&&!M.current&&$g("dismissableLayer.focusOutside",U,{originalEvent:q})};return document.addEventListener("focusin",D),()=>document.removeEventListener("focusin",D)}),[U]),{onFocusCapture:()=>M.current=!0,onBlurCapture:()=>M.current=!1}})((C=>{const U=C.target;[...m.branches].some((M=>M.contains(U)))||(a==null||a(C),u==null||u(C),C.defaultPrevented||c==null||c())}));return Zv((C=>{h===m.layers.size-1&&(i==null||i(C),C.defaultPrevented||c==null||c())})),jP({disabled:r}),$.useEffect((()=>{y&&(r&&m.layersWithOutsidePointerEventsDisabled.add(y),m.layers.add(y),kg())}),[y,r,m]),$.useEffect((()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),kg())}),[y,m]),$.useEffect((()=>{const C=()=>g({});return document.addEventListener("dismissableLayer.update",C),()=>document.removeEventListener("dismissableLayer.update",C)}),[]),$.createElement(_n.div,Qe({},f,{ref:v,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:qt(e.onFocusCapture,O.onFocusCapture),onBlurCapture:qt(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:qt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function kg(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function $g(e,t,r){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(s)}function Ig(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let u,c;if("borderBoxSize"in a){const f=a.borderBoxSize,m=Array.isArray(f)?f[0]:f;u=m.inlineSize,c=m.blockSize}else{const f=e.getBoundingClientRect();u=f.width,c=f.height}r({width:u,height:c})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function UP(e,t){const r=Dn.get(e);return r===void 0?(Dn.set(e,{rect:{},callbacks:[t]}),Dn.size===1&&(wc=requestAnimationFrame(Gv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Dn.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&(Dn.delete(e),Dn.size===0&&cancelAnimationFrame(wc))}}let wc;const Dn=new Map;function Gv(){const e=[];Dn.forEach(((t,r)=>{const i=r.getBoundingClientRect();var s,a;s=t.rect,a=i,(s.width!==a.width||s.height!==a.height||s.top!==a.top||s.right!==a.right||s.bottom!==a.bottom||s.left!==a.left)&&(t.rect=i,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),wc=requestAnimationFrame(Gv)}function Kv(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=UP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function rf(e,t=[]){let r=[];const i=()=>{const s=r.map((a=>$.createContext(a)));return function(a){const u=(a==null?void 0:a[e])||s;return $.useMemo((()=>({[`__scope${e}`]:{...a,[e]:u}})),[a,u])}};return i.scopeName=e,[function(s,a){const u=$.createContext(a),c=r.length;function f(m){const{scope:y,children:p,...g}=m,v=(y==null?void 0:y[e][c])||u,x=$.useMemo((()=>g),Object.values(g));return $.createElement(v.Provider,{value:x},p)}return r=[...r,a],f.displayName=s+"Provider",[f,function(m,y){const p=(y==null?void 0:y[e][c])||u,g=$.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}]},BP(i,...t)]}function BP(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((s=>({useScope:s(),scopeName:s.scopeName})));return function(s){const a=i.reduce(((u,{useScope:c,scopeName:f})=>({...u,...c(s)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function HP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:s,sideOffset:a=0,align:u,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:m,collisionTolerance:y=0}){if(!e||!t||!m)return{popperStyles:qP,arrowStyles:zl};const p=(function(U,M,D=0,q=0,N){const L=N?N.height:0,B=Lg(M,U,"x"),Z=Lg(M,U,"y"),k=Z.before-D-L,Q=Z.after+D+L,J=B.before-D-L,re=B.after+D+L;return{top:{start:{x:B.start+q,y:k},center:{x:B.center,y:k},end:{x:B.end-q,y:k}},right:{start:{x:re,y:Z.start+q},center:{x:re,y:Z.center},end:{x:re,y:Z.end-q}},bottom:{start:{x:B.start+q,y:Q},center:{x:B.center,y:Q},end:{x:B.end-q,y:Q}},left:{start:{x:J,y:Z.start+q},center:{x:J,y:Z.center},end:{x:J,y:Z.end-q}}}})(t,e,a,c,r),g=p[s][u];if(f===!1){const U=Mg(g);let M=zl;return r&&(M=Dg({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:u})),{popperStyles:{...U,"--radix-popper-transform-origin":Fg(t,s,u,i,r)},arrowStyles:M,placedSide:s,placedAlign:u}}const v=DOMRect.fromRect({...t,...g}),x=(d=m,w=y,DOMRect.fromRect({width:d.width-2*w,height:d.height-2*w,x:d.left+w,y:d.top+w}));var d,w;const h=jg(v,x),S=p[Ng(s)][u],E=(function(U,M,D){const q=Ng(U);return M[U]&&!D[q]?q:U})(s,h,jg(DOMRect.fromRect({...t,...S}),x)),R=(function(U,M,D,q,N){const L=D==="top"||D==="bottom",B=L?"left":"top",Z=L?"right":"bottom",k=L?"width":"height",Q=M[k]>U[k];return(q==="start"||q==="center")&&(N[B]&&Q||N[Z]&&!Q)?"end":(q==="end"||q==="center")&&(N[Z]&&Q||N[B]&&!Q)?"start":q})(t,e,s,u,h),O=Mg(p[E][R]);let C=zl;return r&&(C=Dg({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":Fg(t,E,R,i,r)},arrowStyles:C,placedSide:E,placedAlign:R}}function Lg(e,t,r){const i=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],u=t[s];return{before:i-u,start:i,center:i+(a-u)/2,end:i+a-u,after:i+a}}function Mg(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 Fg(e,t,r,i,s){const a=t==="top"||t==="bottom",u=s?s.width:0,c=s?s.height:0,f=u/2+i;let m="",y="";return a?(m={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],y=t==="top"?`${e.height+c}px`:-c+"px"):(m=t==="left"?`${e.width+c}px`:-c+"px",y={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${m} ${y}`}const qP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},zl={position:"absolute",opacity:0};function Dg({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:s}){const a=(e.width-t.width)/2,u=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],f=Math.max(t.width,t.height),m={width:`${f}px`,height:`${f}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:ZP(i,s)};return i!=="top"&&i!=="bottom"||(s==="start"&&(m.left=`${r}px`),s==="center"&&(m.left=`${a}px`),s==="end"&&(m.right=`${r}px`)),i!=="left"&&i!=="right"||(s==="start"&&(m.top=`${r}px`),s==="center"&&(m.top=`${u}px`),s==="end"&&(m.bottom=`${r}px`)),m}function ZP(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Ng(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function jg(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Vv,Wa]=rf("Popper"),[GP,Xv]=Vv("Popper"),KP=e=>{const{__scopePopper:t,children:r}=e,[i,s]=$.useState(null);return $.createElement(GP,{scope:t,anchor:i,onAnchorChange:s},r)},VP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=Xv("PopperAnchor",r),u=$.useRef(null),c=En(t,u);return $.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||u.current)})),i?null:$.createElement(_n.div,Qe({},s,{ref:c}))})),[XP,jM]=Vv("PopperContent"),YP=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:u,collisionTolerance:c,avoidCollisions:f=!0,...m}=e,y=Xv("PopperContent",r),[p,g]=$.useState(),v=Kv(y.anchor),[x,d]=$.useState(null),w=Ig(x),[h,S]=$.useState(null),E=Ig(h),R=En(t,(L=>d(L))),O=(function(){const[L,B]=$.useState(void 0);return $.useEffect((()=>{let Z;function k(){B({width:window.innerWidth,height:window.innerHeight})}function Q(){window.clearTimeout(Z),Z=window.setTimeout(k,100)}return k(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)}),[]),L})(),C=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:M,placedSide:D,placedAlign:q}=HP({anchorRect:v,popperSize:w,arrowSize:E,arrowOffset:p,side:i,sideOffset:s,align:a,alignOffset:u,shouldAvoidCollisions:f,collisionBoundariesRect:C,collisionTolerance:c}),N=D!==void 0;return $.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},$.createElement(XP,{scope:r,arrowStyles:M,onArrowChange:S,onArrowOffsetChange:g},$.createElement(_n.div,Qe({"data-side":D,"data-align":q},m,{style:{...m.style,animation:N?void 0:"none"},ref:R}))))})),Yv=KP,Jv=VP,Qv=YP;function ey({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:m}){const y=$.useState(f),[p]=y,g=$.useRef(p),v=qn(m);return $.useEffect((()=>{g.current!==p&&(v(p),g.current=p)}),[p,g,v]),y})({defaultProp:t,onChange:r}),a=e!==void 0,u=a?e:i,c=qn(r);return[u,$.useCallback((f=>{if(a){const m=f,y=typeof f=="function"?m(e):f;y!==e&&c(y)}else s(f)}),[a,e,s,c])]}const[JP]=rf("Popover",[Wa]),nf=Wa(),[QP,Bo]=JP("Popover"),eC=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:u=!1}=e,c=nf(t),f=$.useRef(null),[m,y]=$.useState(!1),[p=!1,g]=ey({prop:i,defaultProp:s,onChange:a});return $.createElement(Yv,c,$.createElement(QP,{scope:t,contentId:Uv(),triggerRef:f,open:p,onOpenChange:g,onOpenToggle:$.useCallback((()=>g((v=>!v))),[g]),hasCustomAnchor:m,onCustomAnchorAdd:$.useCallback((()=>y(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>y(!1)),[]),modal:u},r))},tC=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=Bo("PopoverTrigger",r),a=nf(r),u=En(t,s.triggerRef),c=$.createElement(_n.button,Qe({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ry(s.open)},i,{ref:u,onClick:qt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:$.createElement(Jv,Qe({asChild:!0},a),c)})),rC=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Bo("PopoverContent",e.__scopePopover);return $.createElement(ef,{present:r||s.open},s.modal?$.createElement(nC,Qe({},i,{ref:t})):$.createElement(iC,Qe({},i,{ref:t})))})),nC=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=Bo("PopoverContent",e.__scopePopover),u=$.useRef(null),c=En(t,u),f=$.useRef(!1);$.useEffect((()=>{const y=u.current;if(y)return KR(y)}),[]);const m=i?tf:$.Fragment;return $.createElement(m,null,$.createElement(Wv,{allowPinchZoom:r},$.createElement(ty,Qe({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qt(e.onCloseAutoFocus,(y=>{var p;y.preventDefault(),f.current||(p=a.triggerRef.current)===null||p===void 0||p.focus()})),onPointerDownOutside:qt(e.onPointerDownOutside,(y=>{const p=y.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,v=p.button===2||g;f.current=v}),{checkForDefaultPrevented:!1}),onFocusOutside:qt(e.onFocusOutside,(y=>y.preventDefault()),{checkForDefaultPrevented:!1})}))))})),iC=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=Bo("PopoverContent",e.__scopePopover),a=$.useRef(!1),u=r?tf:$.Fragment;return $.createElement(u,null,$.createElement(ty,Qe({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,m;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current||(m=s.triggerRef.current)===null||m===void 0||m.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var f,m;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current=!0);const y=c.target;!((m=s.triggerRef.current)===null||m===void 0)&&m.contains(y)&&c.preventDefault()}})))})),ty=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:y,...p}=e,g=Bo("PopoverContent",r),v=nf(r);return LP(),$.createElement(FP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},$.createElement(WP,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:y,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>g.onOpenChange(!1)},$.createElement(Qv,Qe({"data-state":ry(g.open),role:"dialog",id:g.contentId},v,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function ry(e){return e?"open":"closed"}const oC=eC,sC=tC,aC=rC;var ha=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(ha||{}),Wl={},so={},Ys={},Js={},Qs={exports:{}},ea={exports:{}},Fe={};/** @license React v16.13.1
63
63
  * react-is.production.min.js
64
64
  *
65
65
  * Copyright (c) Facebook, Inc. and its affiliates.
66
66
  *
67
67
  * This source code is licensed under the MIT license found in the
68
68
  * LICENSE file in the root directory of this source tree.
69
- */var Wg;function oC(){if(Wg)return Fe;Wg=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(O){if(typeof O=="object"&&O!==null){var C=O.$$typeof;switch(C){case t:switch(O=O.type,O){case f:case m:case i:case a:case s:case p:return O;default:switch(O=O&&O.$$typeof,O){case c:case y:case x:case v:case l:return O;default:return C}}case r:return C}}}function R(O){return E(O)===m}return Fe.AsyncMode=f,Fe.ConcurrentMode=m,Fe.ContextConsumer=c,Fe.ContextProvider=l,Fe.Element=t,Fe.ForwardRef=y,Fe.Fragment=i,Fe.Lazy=x,Fe.Memo=v,Fe.Portal=r,Fe.Profiler=a,Fe.StrictMode=s,Fe.Suspense=p,Fe.isAsyncMode=function(O){return R(O)||E(O)===f},Fe.isConcurrentMode=R,Fe.isContextConsumer=function(O){return E(O)===c},Fe.isContextProvider=function(O){return E(O)===l},Fe.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Fe.isForwardRef=function(O){return E(O)===y},Fe.isFragment=function(O){return E(O)===i},Fe.isLazy=function(O){return E(O)===x},Fe.isMemo=function(O){return E(O)===v},Fe.isPortal=function(O){return E(O)===r},Fe.isProfiler=function(O){return E(O)===a},Fe.isStrictMode=function(O){return E(O)===s},Fe.isSuspense=function(O){return E(O)===p},Fe.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===m||O===a||O===s||O===p||O===g||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===v||O.$$typeof===l||O.$$typeof===c||O.$$typeof===y||O.$$typeof===w||O.$$typeof===h||O.$$typeof===S||O.$$typeof===d)},Fe.typeOf=E,Fe}var De={};/** @license React v16.13.1
69
+ */var zg;function uC(){if(zg)return Fe;zg=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(O){if(typeof O=="object"&&O!==null){var C=O.$$typeof;switch(C){case t:switch(O=O.type,O){case f:case m:case i:case a:case s:case p:return O;default:switch(O=O&&O.$$typeof,O){case c:case y:case x:case v:case u:return O;default:return C}}case r:return C}}}function R(O){return E(O)===m}return Fe.AsyncMode=f,Fe.ConcurrentMode=m,Fe.ContextConsumer=c,Fe.ContextProvider=u,Fe.Element=t,Fe.ForwardRef=y,Fe.Fragment=i,Fe.Lazy=x,Fe.Memo=v,Fe.Portal=r,Fe.Profiler=a,Fe.StrictMode=s,Fe.Suspense=p,Fe.isAsyncMode=function(O){return R(O)||E(O)===f},Fe.isConcurrentMode=R,Fe.isContextConsumer=function(O){return E(O)===c},Fe.isContextProvider=function(O){return E(O)===u},Fe.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Fe.isForwardRef=function(O){return E(O)===y},Fe.isFragment=function(O){return E(O)===i},Fe.isLazy=function(O){return E(O)===x},Fe.isMemo=function(O){return E(O)===v},Fe.isPortal=function(O){return E(O)===r},Fe.isProfiler=function(O){return E(O)===a},Fe.isStrictMode=function(O){return E(O)===s},Fe.isSuspense=function(O){return E(O)===p},Fe.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===m||O===a||O===s||O===p||O===g||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===v||O.$$typeof===u||O.$$typeof===c||O.$$typeof===y||O.$$typeof===w||O.$$typeof===h||O.$$typeof===S||O.$$typeof===d)},Fe.typeOf=E,Fe}var De={};/** @license React v16.13.1
70
70
  * react-is.development.js
71
71
  *
72
72
  * Copyright (c) Facebook, Inc. and its affiliates.
73
73
  *
74
74
  * This source code is licensed under the MIT license found in the
75
75
  * LICENSE file in the root directory of this source tree.
76
- */var Ug;function sC(){return Ug||(Ug=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(oe){return typeof oe=="string"||typeof oe=="function"||oe===i||oe===m||oe===a||oe===s||oe===p||oe===g||typeof oe=="object"&&oe!==null&&(oe.$$typeof===x||oe.$$typeof===v||oe.$$typeof===l||oe.$$typeof===c||oe.$$typeof===y||oe.$$typeof===w||oe.$$typeof===h||oe.$$typeof===S||oe.$$typeof===d)}function R(oe){if(typeof oe=="object"&&oe!==null){var ct=oe.$$typeof;switch(ct){case t:var Mr=oe.type;switch(Mr){case f:case m:case i:case a:case s:case p:return Mr;default:var bt=Mr&&Mr.$$typeof;switch(bt){case c:case y:case x:case v:case l:return bt;default:return ct}}case r:return ct}}}var O=f,C=m,U=c,M=l,D=t,q=y,N=i,L=x,B=v,Z=r,k=a,Q=s,J=p,re=!1;function ce(oe){return re||(re=!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.")),G(oe)||R(oe)===f}function G(oe){return R(oe)===m}function te(oe){return R(oe)===c}function ne(oe){return R(oe)===l}function ue(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function ie(oe){return R(oe)===y}function he(oe){return R(oe)===i}function fe(oe){return R(oe)===x}function ve(oe){return R(oe)===v}function xe(oe){return R(oe)===r}function Ae(oe){return R(oe)===a}function _e(oe){return R(oe)===s}function ot(oe){return R(oe)===p}De.AsyncMode=O,De.ConcurrentMode=C,De.ContextConsumer=U,De.ContextProvider=M,De.Element=D,De.ForwardRef=q,De.Fragment=N,De.Lazy=L,De.Memo=B,De.Portal=Z,De.Profiler=k,De.StrictMode=Q,De.Suspense=J,De.isAsyncMode=ce,De.isConcurrentMode=G,De.isContextConsumer=te,De.isContextProvider=ne,De.isElement=ue,De.isForwardRef=ie,De.isFragment=he,De.isLazy=fe,De.isMemo=ve,De.isPortal=xe,De.isProfiler=Ae,De.isStrictMode=_e,De.isSuspense=ot,De.isValidElementType=E,De.typeOf=R})()),De}var Bg;function ny(){return Bg||(Bg=1,process.env.NODE_ENV==="production"?ea.exports=oC():ea.exports=sC()),ea.exports}/*
76
+ */var Wg;function lC(){return Wg||(Wg=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(oe){return typeof oe=="string"||typeof oe=="function"||oe===i||oe===m||oe===a||oe===s||oe===p||oe===g||typeof oe=="object"&&oe!==null&&(oe.$$typeof===x||oe.$$typeof===v||oe.$$typeof===u||oe.$$typeof===c||oe.$$typeof===y||oe.$$typeof===w||oe.$$typeof===h||oe.$$typeof===S||oe.$$typeof===d)}function R(oe){if(typeof oe=="object"&&oe!==null){var ct=oe.$$typeof;switch(ct){case t:var Fr=oe.type;switch(Fr){case f:case m:case i:case a:case s:case p:return Fr;default:var bt=Fr&&Fr.$$typeof;switch(bt){case c:case y:case x:case v:case u:return bt;default:return ct}}case r:return ct}}}var O=f,C=m,U=c,M=u,D=t,q=y,N=i,L=x,B=v,Z=r,k=a,Q=s,J=p,re=!1;function ce(oe){return re||(re=!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.")),G(oe)||R(oe)===f}function G(oe){return R(oe)===m}function te(oe){return R(oe)===c}function ne(oe){return R(oe)===u}function ue(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function ie(oe){return R(oe)===y}function he(oe){return R(oe)===i}function fe(oe){return R(oe)===x}function ve(oe){return R(oe)===v}function xe(oe){return R(oe)===r}function Ae(oe){return R(oe)===a}function _e(oe){return R(oe)===s}function ot(oe){return R(oe)===p}De.AsyncMode=O,De.ConcurrentMode=C,De.ContextConsumer=U,De.ContextProvider=M,De.Element=D,De.ForwardRef=q,De.Fragment=N,De.Lazy=L,De.Memo=B,De.Portal=Z,De.Profiler=k,De.StrictMode=Q,De.Suspense=J,De.isAsyncMode=ce,De.isConcurrentMode=G,De.isContextConsumer=te,De.isContextProvider=ne,De.isElement=ue,De.isForwardRef=ie,De.isFragment=he,De.isLazy=fe,De.isMemo=ve,De.isPortal=xe,De.isProfiler=Ae,De.isStrictMode=_e,De.isSuspense=ot,De.isValidElementType=E,De.typeOf=R})()),De}var Ug;function ny(){return Ug||(Ug=1,process.env.NODE_ENV==="production"?ea.exports=uC():ea.exports=lC()),ea.exports}/*
77
77
  object-assign
78
78
  (c) Sindre Sorhus
79
79
  @license MIT
80
- */var Bl,Hg;function aC(){if(Hg)return Bl;Hg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(l).map(function(y){return l[y]});if(f.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(y){m[y]=y}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Bl=s()?Object.assign:function(a,l){for(var c,f=i(a),m,y=1;y<arguments.length;y++){c=Object(arguments[y]);for(var p in c)t.call(c,p)&&(f[p]=c[p]);if(e){m=e(c);for(var g=0;g<m.length;g++)r.call(c,m[g])&&(f[m[g]]=c[m[g]])}}return f},Bl}var Hl,qg;function sf(){if(qg)return Hl;qg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Hl=e,Hl}var ql,Zg;function iy(){return Zg||(Zg=1,ql=Function.call.bind(Object.prototype.hasOwnProperty)),ql}var Zl,Gg;function uC(){if(Gg)return Zl;Gg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=sf(),r={},i=iy();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function s(a,l,c,f,m){if(process.env.NODE_ENV!=="production"){for(var y in a)if(i(a,y)){var p;try{if(typeof a[y]!="function"){var g=Error((f||"React class")+": "+c+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}p=a[y](l,y,f,c,null,t)}catch(x){p=x}if(p&&!(p instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var v=m?m():"";e("Failed "+c+" type: "+p.message+(v??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Zl=s,Zl}var Gl,Kg;function lC(){if(Kg)return Gl;Kg=1;var e=ny(),t=aC(),r=sf(),i=iy(),s=uC(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function l(){return null}return Gl=function(c,f){var m=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function p(G){var te=G&&(m&&G[m]||G[y]);if(typeof te=="function")return te}var g="<<anonymous>>",v={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:S(),arrayOf:E,element:R(),elementType:O(),instanceOf:C,node:q(),objectOf:M,oneOf:U,oneOfType:D,shape:L,exact:B};function x(G,te){return G===te?G!==0||1/G===1/te:G!==G&&te!==te}function d(G,te){this.message=G,this.data=te&&typeof te=="object"?te:{},this.stack=""}d.prototype=Error.prototype;function w(G){if(process.env.NODE_ENV!=="production")var te={},ne=0;function ue(he,fe,ve,xe,Ae,_e,ot){if(xe=xe||g,_e=_e||ve,ot!==r){if(f){var oe=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 oe.name="Invariant Violation",oe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ct=xe+":"+ve;!te[ct]&&ne<3&&(a("You are manually calling a React.PropTypes validation function for the `"+_e+"` prop on `"+xe+"`. 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."),te[ct]=!0,ne++)}}return fe[ve]==null?he?fe[ve]===null?new d("The "+Ae+" `"+_e+"` is marked as required "+("in `"+xe+"`, but its value is `null`.")):new d("The "+Ae+" `"+_e+"` is marked as required in "+("`"+xe+"`, but its value is `undefined`.")):null:G(fe,ve,xe,Ae,_e)}var ie=ue.bind(null,!1);return ie.isRequired=ue.bind(null,!0),ie}function h(G){function te(ne,ue,ie,he,fe,ve){var xe=ne[ue],Ae=Q(xe);if(Ae!==G){var _e=J(xe);return new d("Invalid "+he+" `"+fe+"` of type "+("`"+_e+"` supplied to `"+ie+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return w(te)}function S(){return w(l)}function E(G){function te(ne,ue,ie,he,fe){if(typeof G!="function")return new d("Property `"+fe+"` of component `"+ie+"` has invalid PropType notation inside arrayOf.");var ve=ne[ue];if(!Array.isArray(ve)){var xe=Q(ve);return new d("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected an array."))}for(var Ae=0;Ae<ve.length;Ae++){var _e=G(ve,Ae,ie,he,fe+"["+Ae+"]",r);if(_e instanceof Error)return _e}return null}return w(te)}function R(){function G(te,ne,ue,ie,he){var fe=te[ne];if(!c(fe)){var ve=Q(fe);return new d("Invalid "+ie+" `"+he+"` of type "+("`"+ve+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(G)}function O(){function G(te,ne,ue,ie,he){var fe=te[ne];if(!e.isValidElementType(fe)){var ve=Q(fe);return new d("Invalid "+ie+" `"+he+"` of type "+("`"+ve+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(G)}function C(G){function te(ne,ue,ie,he,fe){if(!(ne[ue]instanceof G)){var ve=G.name||g,xe=ce(ne[ue]);return new d("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected ")+("instance of `"+ve+"`."))}return null}return w(te)}function U(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function te(ne,ue,ie,he,fe){for(var ve=ne[ue],xe=0;xe<G.length;xe++)if(x(ve,G[xe]))return null;var Ae=JSON.stringify(G,function(ot,oe){var ct=J(oe);return ct==="symbol"?String(oe):oe});return new d("Invalid "+he+" `"+fe+"` of value `"+String(ve)+"` "+("supplied to `"+ie+"`, expected one of "+Ae+"."))}return w(te)}function M(G){function te(ne,ue,ie,he,fe){if(typeof G!="function")return new d("Property `"+fe+"` of component `"+ie+"` has invalid PropType notation inside objectOf.");var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new d("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected an object."));for(var Ae in ve)if(i(ve,Ae)){var _e=G(ve,Ae,ie,he,fe+"."+Ae,r);if(_e instanceof Error)return _e}return null}return w(te)}function D(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var te=0;te<G.length;te++){var ne=G[te];if(typeof ne!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(ne)+" at index "+te+"."),l}function ue(ie,he,fe,ve,xe){for(var Ae=[],_e=0;_e<G.length;_e++){var ot=G[_e],oe=ot(ie,he,fe,ve,xe,r);if(oe==null)return null;oe.data&&i(oe.data,"expectedType")&&Ae.push(oe.data.expectedType)}var ct=Ae.length>0?", expected one of type ["+Ae.join(", ")+"]":"";return new d("Invalid "+ve+" `"+xe+"` supplied to "+("`"+fe+"`"+ct+"."))}return w(ue)}function q(){function G(te,ne,ue,ie,he){return Z(te[ne])?null:new d("Invalid "+ie+" `"+he+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(G)}function N(G,te,ne,ue,ie){return new d((G||"React class")+": "+te+" type `"+ne+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ie+"`.")}function L(G){function te(ne,ue,ie,he,fe){var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new d("Invalid "+he+" `"+fe+"` of type `"+xe+"` "+("supplied to `"+ie+"`, expected `object`."));for(var Ae in G){var _e=G[Ae];if(typeof _e!="function")return N(ie,he,fe,Ae,J(_e));var ot=_e(ve,Ae,ie,he,fe+"."+Ae,r);if(ot)return ot}return null}return w(te)}function B(G){function te(ne,ue,ie,he,fe){var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new d("Invalid "+he+" `"+fe+"` of type `"+xe+"` "+("supplied to `"+ie+"`, expected `object`."));var Ae=t({},ne[ue],G);for(var _e in Ae){var ot=G[_e];if(i(G,_e)&&typeof ot!="function")return N(ie,he,fe,_e,J(ot));if(!ot)return new d("Invalid "+he+" `"+fe+"` key `"+_e+"` supplied to `"+ie+"`.\nBad object: "+JSON.stringify(ne[ue],null," ")+`
81
- Valid keys: `+JSON.stringify(Object.keys(G),null," "));var oe=ot(ve,_e,ie,he,fe+"."+_e,r);if(oe)return oe}return null}return w(te)}function Z(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(Z);if(G===null||c(G))return!0;var te=p(G);if(te){var ne=te.call(G),ue;if(te!==G.entries){for(;!(ue=ne.next()).done;)if(!Z(ue.value))return!1}else for(;!(ue=ne.next()).done;){var ie=ue.value;if(ie&&!Z(ie[1]))return!1}}else return!1;return!0;default:return!1}}function k(G,te){return G==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function Q(G){var te=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":k(te,G)?"symbol":te}function J(G){if(typeof G>"u"||G===null)return""+G;var te=Q(G);if(te==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return te}function re(G){var te=J(G);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function ce(G){return!G.constructor||!G.constructor.name?g:G.constructor.name}return v.checkPropTypes=s,v.resetWarningCache=s.resetWarningCache,v.PropTypes=v,v},Gl}var Kl,Vg;function cC(){if(Vg)return Kl;Vg=1;var e=sf();function t(){}function r(){}return r.resetWarningCache=t,Kl=function(){function i(l,c,f,m,y,p){if(p!==e){var g=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 g.name="Invariant Violation",g}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Kl}var Xg;function fC(){if(Xg)return Qs.exports;if(Xg=1,process.env.NODE_ENV!=="production"){var e=ny(),t=!0;Qs.exports=lC()(e.isElement,t)}else Qs.exports=cC()();return Qs.exports}var Yg;function dC(){return Yg||(Yg=1,(function(e){(function(t,r){r(e,W,fC())})(Js,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=l(r),a=l(i);function l(S){return S&&S.__esModule?S:{default:S}}var c=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(S[O]=R[O])}return S};function f(S,E){var R={};for(var O in S)E.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(S,O)&&(R[O]=S[O]);return R}function m(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var y=(function(){function S(E,R){for(var O=0;O<R.length;O++){var C=R[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function p(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function g(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var v=!1;function x(S){v=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function d(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return v?S:S.capture}function w(S){if("touches"in S){var E=S.touches[0],R=E.pageX,O=E.pageY;return{x:R,y:O}}var C=S.screenX,U=S.screenY;return{x:C,y:U}}var h=(function(S){g(E,S);function E(){var R;m(this,E);for(var O=arguments.length,C=Array(O),U=0;U<O;U++)C[U]=arguments[U];var M=p(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(C)));return M._handleSwipeStart=M._handleSwipeStart.bind(M),M._handleSwipeMove=M._handleSwipeMove.bind(M),M._handleSwipeEnd=M._handleSwipeEnd.bind(M),M._onMouseDown=M._onMouseDown.bind(M),M._onMouseMove=M._onMouseMove.bind(M),M._onMouseUp=M._onMouseUp.bind(M),M._setSwiperRef=M._setSwiperRef.bind(M),M}return y(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var C=w(O),U=C.x,M=C.y;this.moveStart={x:U,y:M},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var C=w(O),U=C.x,M=C.y,D=U-this.moveStart.x,q=M-this.moveStart.y;this.moving=!0;var N=this.props.onSwipeMove({x:D,y:q},O);N&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:D,deltaY:q}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var C=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-C?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>C&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-C?this.props.onSwipeUp(1,O):this.movePosition.deltaY>C&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var C=O.className,U=O.style,M=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var D=f(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:C,style:U},D),M)}}]),E})(r.Component);h.displayName="ReactSwipe",h.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},h.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=h})})(Js)),Js}var Jg;function oy(){return Jg||(Jg=1,(function(e){(function(t,r){r(e,dC())})(Ys,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=s(r);function s(a){return a&&a.__esModule?a:{default:a}}t.default=i.default})})(Ys)),Ys}var ao={},Qg;function sy(){if(Qg)return ao;Qg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=t(gv());function t(s){return s&&s.__esModule?s:{default:s}}function r(s,a,l){return a in s?Object.defineProperty(s,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[a]=l,s}var i={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,l){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(a,l){return(0,e.default)({thumbs:!a,slider:a,animated:!l})},ITEM:function(a,l,c){return(0,e.default)({thumb:!a,slide:a,selected:l,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return ao.default=i,ao}var uo={},lo={},em;function pC(){if(em)return lo;em=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return lo.outerWidth=e,lo}var co={},tm;function af(){if(tm)return co;tm=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;var e=function(r,i,s){var a=r===0?r:r+i,l=s==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",f="("+l.join(",")+")";return c+f};return co.default=e,co}var fo={},rm;function ay(){if(rm)return fo;rm=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=void 0;var e=function(){return window};return fo.default=e,fo}var nm;function uy(){if(nm)return uo;nm=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=f(W),t=l(sy()),r=pC(),i=l(af()),s=l(oy()),a=l(ay());function l(M){return M&&M.__esModule?M:{default:M}}function c(){if(typeof WeakMap!="function")return null;var M=new WeakMap;return c=function(){return M},M}function f(M){if(M&&M.__esModule)return M;if(M===null||m(M)!=="object"&&typeof M!="function")return{default:M};var D=c();if(D&&D.has(M))return D.get(M);var q={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in M)if(Object.prototype.hasOwnProperty.call(M,L)){var B=N?Object.getOwnPropertyDescriptor(M,L):null;B&&(B.get||B.set)?Object.defineProperty(q,L,B):q[L]=M[L]}return q.default=M,D&&D.set(M,q),q}function m(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(q){return typeof q}:m=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},m(M)}function y(){return y=Object.assign||function(M){for(var D=1;D<arguments.length;D++){var q=arguments[D];for(var N in q)Object.prototype.hasOwnProperty.call(q,N)&&(M[N]=q[N])}return M},y.apply(this,arguments)}function p(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function g(M,D){for(var q=0;q<D.length;q++){var N=D[q];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}function v(M,D,q){return D&&g(M.prototype,D),M}function x(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),D&&d(M,D)}function d(M,D){return d=Object.setPrototypeOf||function(N,L){return N.__proto__=L,N},d(M,D)}function w(M){var D=E();return function(){var N=R(M),L;if(D){var B=R(this).constructor;L=Reflect.construct(N,arguments,B)}else L=N.apply(this,arguments);return h(this,L)}}function h(M,D){return D&&(m(D)==="object"||typeof D=="function")?D:S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function E(){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 R(M){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)},R(M)}function O(M,D,q){return D in M?Object.defineProperty(M,D,{value:q,enumerable:!0,configurable:!0,writable:!0}):M[D]=q,M}var C=function(D){return D.hasOwnProperty("key")},U=(function(M){x(q,M);var D=w(q);function q(N){var L;return p(this,q),L=D.call(this,N),O(S(L),"itemsWrapperRef",void 0),O(S(L),"itemsListRef",void 0),O(S(L),"thumbsRef",void 0),O(S(L),"setItemsWrapperRef",function(B){L.itemsWrapperRef=B}),O(S(L),"setItemsListRef",function(B){L.itemsListRef=B}),O(S(L),"setThumbsRef",function(B,Z){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[Z]=B}),O(S(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var B=e.Children.count(L.props.children),Z=L.itemsWrapperRef.clientWidth,k=L.props.thumbWidth?L.props.thumbWidth:(0,r.outerWidth)(L.thumbsRef[0]),Q=Math.floor(Z/k),J=Q<B,re=J?B-Q:0;L.setState(function(ce,G){return{itemSize:k,visibleItems:Q,firstItem:J?L.getFirstItem(G.selectedItem):0,lastPosition:re,showArrows:J}})}}),O(S(L),"handleClickItem",function(B,Z,k){if(!C(k)||k.key==="Enter"){var Q=L.props.onSelectItem;typeof Q=="function"&&Q(B,Z)}}),O(S(L),"onSwipeStart",function(){L.setState({swiping:!0})}),O(S(L),"onSwipeEnd",function(){L.setState({swiping:!1})}),O(S(L),"onSwipeMove",function(B){var Z=B.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var k=0,Q=e.Children.count(L.props.children),J=-(L.state.firstItem*100)/L.state.visibleItems,re=Math.max(Q-L.state.visibleItems,0),ce=-re*100/L.state.visibleItems;J===k&&Z>0&&(Z=0),J===ce&&Z<0&&(Z=0);var G=L.itemsWrapperRef.clientWidth,te=J+100/(G/Z);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ne){L.itemsListRef.style[ne]=(0,i.default)(te,"%",L.props.axis)}),!0}),O(S(L),"slideRight",function(B){L.moveTo(L.state.firstItem-(typeof B=="number"?B:1))}),O(S(L),"slideLeft",function(B){L.moveTo(L.state.firstItem+(typeof B=="number"?B:1))}),O(S(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:N.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return v(q,[{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,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.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,Z){var k=t.default.ITEM(!1,Z===L.state.selectedItem),Q={key:Z,ref:function(re){return L.setThumbsRef(re,Z)},className:k,onClick:L.handleClickItem.bind(L,Z,L.props.children[Z]),onKeyDown:L.handleClickItem.bind(L,Z,L.props.children[Z]),"aria-label":"".concat(L.props.labels.item," ").concat(Z+1),style:{width:L.props.thumbWidth}};return e.default.createElement("li",y({},Q,{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,Z=this.state.showArrows&&this.state.firstItem>0,k=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,Q={},J=-this.state.firstItem*(this.state.itemSize||0),re=(0,i.default)(J,"px",this.props.axis),ce=this.props.transitionTime+"ms";return Q={WebkitTransform:re,MozTransform:re,MsTransform:re,OTransform:re,transform:re,msTransform:re,WebkitTransitionDuration:ce,MozTransitionDuration:ce,MsTransitionDuration:ce,OTransitionDuration:ce,transitionDuration:ce,msTransitionDuration:ce},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!Z),onClick:function(){return L.slideRight()},"aria-label":this.props.labels.leftArrow}),B?e.default.createElement(s.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:Q,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(te){return L.setItemsListRef(te)},style:Q},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!k),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),q})(e.Component);return uo.default=U,O(U,"displayName","Thumbs"),O(U,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),uo}var po={},im;function hC(){if(im)return po;im=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var e=function(){return document};return po.default=e,po}var Ht={},om;function ly(){if(om)return Ht;om=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.setPosition=Ht.getPosition=Ht.isKeyboardEvent=Ht.defaultStatusFormatter=Ht.noop=void 0;var e=W,t=r(af());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Ht.noop=i;var s=function(m,y){return"".concat(m," of ").concat(y)};Ht.defaultStatusFormatter=s;var a=function(m){return m?m.hasOwnProperty("key"):!1};Ht.isKeyboardEvent=a;var l=function(m,y){if(y.infiniteLoop&&++m,m===0)return 0;var p=e.Children.count(y.children);if(y.centerMode&&y.axis==="horizontal"){var g=-m*y.centerSlidePercentage,v=p-1;return m&&(m!==v||y.infiniteLoop)?g+=(100-y.centerSlidePercentage)/2:m===v&&(g+=100-y.centerSlidePercentage),g}return-m*100};Ht.getPosition=l;var c=function(m,y){var p={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(g){p[g]=(0,t.default)(m,"%",y)}),p};return Ht.setPosition=c,Ht}var pr={},sm;function gC(){if(sm)return pr;sm=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.fadeAnimationHandler=pr.slideStopSwipingHandler=pr.slideSwipeAnimationHandler=pr.slideAnimationHandler=void 0;var e=W,t=i(af()),r=ly();function i(p){return p&&p.__esModule?p:{default:p}}function s(p,g){var v=Object.keys(p);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(p);g&&(x=x.filter(function(d){return Object.getOwnPropertyDescriptor(p,d).enumerable})),v.push.apply(v,x)}return v}function a(p){for(var g=1;g<arguments.length;g++){var v=arguments[g]!=null?arguments[g]:{};g%2?s(Object(v),!0).forEach(function(x){l(p,x,v[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(x){Object.defineProperty(p,x,Object.getOwnPropertyDescriptor(v,x))})}return p}function l(p,g,v){return g in p?Object.defineProperty(p,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[g]=v,p}var c=function(g,v){var x={},d=v.selectedItem,w=d,h=e.Children.count(g.children)-1,S=g.infiniteLoop&&(d<0||d>h);if(S)return w<0?g.centerMode&&g.centerSlidePercentage&&g.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(h+2)*g.centerSlidePercentage-(100-g.centerSlidePercentage)/2,g.axis):x.itemListStyle=(0,r.setPosition)(-(h+2)*100,g.axis):w>h&&(x.itemListStyle=(0,r.setPosition)(0,g.axis)),x;var E=(0,r.getPosition)(d,g),R=(0,t.default)(E,"%",g.axis),O=g.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},v.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};pr.slideAnimationHandler=c;var f=function(g,v,x,d){var w={},h=v.axis==="horizontal",S=e.Children.count(v.children),E=0,R=(0,r.getPosition)(x.selectedItem,v),O=v.infiniteLoop?(0,r.getPosition)(S-1,v)-100:(0,r.getPosition)(S-1,v),C=h?g.x:g.y,U=C;R===E&&C>0&&(U=0),R===O&&C<0&&(U=0);var M=R+100/(x.itemSize/U),D=Math.abs(C)>v.swipeScrollTolerance;return v.infiniteLoop&&D&&(x.selectedItem===0&&M>-100?M-=S*100:x.selectedItem===S-1&&M<-S*100&&(M+=S*100)),(!v.preventMovementUntilSwipeScrollTolerance||D||x.swipeMovementStarted)&&(x.swipeMovementStarted||d({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(M,v.axis)),D&&!x.cancelClick&&d({cancelClick:!0}),w};pr.slideSwipeAnimationHandler=f;var m=function(g,v){var x=(0,r.getPosition)(v.selectedItem,g),d=(0,r.setPosition)(x,g.axis);return{itemListStyle:d}};pr.slideStopSwipingHandler=m;var y=function(g,v){var x=g.transitionTime+"ms",d="ease-in-out",w={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:d,msTransitionTimingFunction:d,MozTransitionTimingFunction:d,WebkitTransitionTimingFunction:d,OTransitionTimingFunction:d};return v.swiping||(w=a(a({},w),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:w,selectedStyle:a(a({},w),{},{opacity:1,position:"relative"}),prevStyle:a({},w)}};return pr.fadeAnimationHandler=y,pr}var am;function mC(){if(am)return so;am=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e=y(W),t=f(oy()),r=f(sy()),i=f(uy()),s=f(hC()),a=f(ay()),l=ly(),c=gC();function f(N){return N&&N.__esModule?N:{default:N}}function m(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return m=function(){return N},N}function y(N){if(N&&N.__esModule)return N;if(N===null||p(N)!=="object"&&typeof N!="function")return{default:N};var L=m();if(L&&L.has(N))return L.get(N);var B={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in N)if(Object.prototype.hasOwnProperty.call(N,k)){var Q=Z?Object.getOwnPropertyDescriptor(N,k):null;Q&&(Q.get||Q.set)?Object.defineProperty(B,k,Q):B[k]=N[k]}return B.default=N,L&&L.set(N,B),B}function p(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(B){return typeof B}:p=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},p(N)}function g(){return g=Object.assign||function(N){for(var L=1;L<arguments.length;L++){var B=arguments[L];for(var Z in B)Object.prototype.hasOwnProperty.call(B,Z)&&(N[Z]=B[Z])}return N},g.apply(this,arguments)}function v(N,L){var B=Object.keys(N);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(N);L&&(Z=Z.filter(function(k){return Object.getOwnPropertyDescriptor(N,k).enumerable})),B.push.apply(B,Z)}return B}function x(N){for(var L=1;L<arguments.length;L++){var B=arguments[L]!=null?arguments[L]:{};L%2?v(Object(B),!0).forEach(function(Z){D(N,Z,B[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(B)):v(Object(B)).forEach(function(Z){Object.defineProperty(N,Z,Object.getOwnPropertyDescriptor(B,Z))})}return N}function d(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function w(N,L){for(var B=0;B<L.length;B++){var Z=L[B];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(N,Z.key,Z)}}function h(N,L,B){return L&&w(N.prototype,L),N}function S(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),L&&E(N,L)}function E(N,L){return E=Object.setPrototypeOf||function(Z,k){return Z.__proto__=k,Z},E(N,L)}function R(N){var L=U();return function(){var Z=M(N),k;if(L){var Q=M(this).constructor;k=Reflect.construct(Z,arguments,Q)}else k=Z.apply(this,arguments);return O(this,k)}}function O(N,L){return L&&(p(L)==="object"||typeof L=="function")?L:C(N)}function C(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function U(){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 M(N){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},M(N)}function D(N,L,B){return L in N?Object.defineProperty(N,L,{value:B,enumerable:!0,configurable:!0,writable:!0}):N[L]=B,N}var q=(function(N){S(B,N);var L=R(B);function B(Z){var k;d(this,B),k=L.call(this,Z),D(C(k),"thumbsRef",void 0),D(C(k),"carouselWrapperRef",void 0),D(C(k),"listRef",void 0),D(C(k),"itemsRef",void 0),D(C(k),"timer",void 0),D(C(k),"animationHandler",void 0),D(C(k),"setThumbsRef",function(J){k.thumbsRef=J}),D(C(k),"setCarouselWrapperRef",function(J){k.carouselWrapperRef=J}),D(C(k),"setListRef",function(J){k.listRef=J}),D(C(k),"setItemsRef",function(J,re){k.itemsRef||(k.itemsRef=[]),k.itemsRef[re]=J}),D(C(k),"autoPlay",function(){e.Children.count(k.props.children)<=1||(k.clearAutoPlay(),k.props.autoPlay&&(k.timer=setTimeout(function(){k.increment()},k.props.interval)))}),D(C(k),"clearAutoPlay",function(){k.timer&&clearTimeout(k.timer)}),D(C(k),"resetAutoPlay",function(){k.clearAutoPlay(),k.autoPlay()}),D(C(k),"stopOnHover",function(){k.setState({isMouseEntered:!0},k.clearAutoPlay)}),D(C(k),"startOnLeave",function(){k.setState({isMouseEntered:!1},k.autoPlay)}),D(C(k),"isFocusWithinTheCarousel",function(){return k.carouselWrapperRef?!!((0,s.default)().activeElement===k.carouselWrapperRef||k.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),D(C(k),"navigateWithKeyboard",function(J){if(k.isFocusWithinTheCarousel()){var re=k.props.axis,ce=re==="horizontal",G={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},te=ce?G.ArrowRight:G.ArrowDown,ne=ce?G.ArrowLeft:G.ArrowUp;te===J.keyCode?k.increment():ne===J.keyCode&&k.decrement()}}),D(C(k),"updateSizes",function(){if(!(!k.state.initialized||!k.itemsRef||k.itemsRef.length===0)){var J=k.props.axis==="horizontal",re=k.itemsRef[0];if(re){var ce=J?re.clientWidth:re.clientHeight;k.setState({itemSize:ce}),k.thumbsRef&&k.thumbsRef.updateSizes()}}}),D(C(k),"setMountState",function(){k.setState({hasMount:!0}),k.updateSizes()}),D(C(k),"handleClickItem",function(J,re){if(e.Children.count(k.props.children)!==0){if(k.state.cancelClick){k.setState({cancelClick:!1});return}k.props.onClickItem(J,re),J!==k.state.selectedItem&&k.setState({selectedItem:J})}}),D(C(k),"handleOnChange",function(J,re){e.Children.count(k.props.children)<=1||k.props.onChange(J,re)}),D(C(k),"handleClickThumb",function(J,re){k.props.onClickThumb(J,re),k.moveTo(J)}),D(C(k),"onSwipeStart",function(J){k.setState({swiping:!0}),k.props.onSwipeStart(J)}),D(C(k),"onSwipeEnd",function(J){k.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),k.props.onSwipeEnd(J),k.clearAutoPlay(),k.state.autoPlay&&k.autoPlay()}),D(C(k),"onSwipeMove",function(J,re){k.props.onSwipeMove(re);var ce=k.props.swipeAnimationHandler(J,k.props,k.state,k.setState.bind(C(k)));return k.setState(x({},ce)),!!Object.keys(ce).length}),D(C(k),"decrement",function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;k.moveTo(k.state.selectedItem-(typeof J=="number"?J:1))}),D(C(k),"increment",function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;k.moveTo(k.state.selectedItem+(typeof J=="number"?J:1))}),D(C(k),"moveTo",function(J){if(typeof J=="number"){var re=e.Children.count(k.props.children)-1;J<0&&(J=k.props.infiniteLoop?re:0),J>re&&(J=k.props.infiniteLoop?0:re),k.selectItem({selectedItem:J}),k.state.autoPlay&&k.state.isMouseEntered===!1&&k.resetAutoPlay()}}),D(C(k),"onClickNext",function(){k.increment(1)}),D(C(k),"onClickPrev",function(){k.decrement(1)}),D(C(k),"onSwipeForward",function(){k.increment(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),D(C(k),"onSwipeBackwards",function(){k.decrement(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),D(C(k),"changeItem",function(J){return function(re){(!(0,l.isKeyboardEvent)(re)||re.key==="Enter")&&k.moveTo(J)}}),D(C(k),"selectItem",function(J){k.setState(x({previousItem:k.state.selectedItem},J),function(){k.setState(k.animationHandler(k.props,k.state))}),k.handleOnChange(J.selectedItem,e.Children.toArray(k.props.children)[J.selectedItem])}),D(C(k),"getInitialImage",function(){var J=k.props.selectedItem,re=k.itemsRef&&k.itemsRef[J],ce=re&&re.getElementsByTagName("img")||[];return ce[0]}),D(C(k),"getVariableItemHeight",function(J){var re=k.itemsRef&&k.itemsRef[J];if(k.state.hasMount&&re&&re.children.length){var ce=re.children[0].getElementsByTagName("img")||[];if(ce.length>0){var G=ce[0];if(!G.complete){var te=function ie(){k.forceUpdate(),G.removeEventListener("load",ie)};G.addEventListener("load",te)}}var ne=ce[0]||re.children[0],ue=ne.clientHeight;return ue>0?ue:null}return null});var Q={initialized:!1,previousItem:Z.selectedItem,selectedItem:Z.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:Z.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return k.animationHandler=typeof Z.animationHandler=="function"&&Z.animationHandler||Z.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,k.state=x(x({},Q),k.animationHandler(Z,Q)),k}return h(B,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(k,Q){!k.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!k.autoFocus&&this.props.autoFocus&&this.forceFocus(),Q.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(k.selectedItem!==this.props.selectedItem||k.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),k.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 k=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 Q=k.getInitialImage();Q&&!Q.complete?Q.addEventListener("load",k.setMountState):k.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var k=this.carouselWrapperRef;this.props.stopOnHover&&k&&(k.addEventListener("mouseenter",this.stopOnHover),k.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var k=this.carouselWrapperRef;this.props.stopOnHover&&k&&(k.removeEventListener("mouseenter",this.stopOnHover),k.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,s.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var k=this.getInitialImage();k&&k.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var k;(k=this.carouselWrapperRef)===null||k===void 0||k.focus()}},{key:"renderItems",value:function(k){var Q=this;return this.props.children?e.Children.map(this.props.children,function(J,re){var ce=re===Q.state.selectedItem,G=re===Q.state.previousItem,te=ce&&Q.state.selectedStyle||G&&Q.state.prevStyle||Q.state.slideStyle||{};Q.props.centerMode&&Q.props.axis==="horizontal"&&(te=x(x({},te),{},{minWidth:Q.props.centerSlidePercentage+"%"})),Q.state.swiping&&Q.state.swipeMovementStarted&&(te=x(x({},te),{},{pointerEvents:"none"}));var ne={ref:function(ie){return Q.setItemsRef(ie,re)},key:"itemKey"+re+(k?"clone":""),className:r.default.ITEM(!0,re===Q.state.selectedItem,re===Q.state.previousItem),onClick:Q.handleClickItem.bind(Q,re,J),style:te};return e.default.createElement("li",ne,Q.props.renderItem(J,{isSelected:re===Q.state.selectedItem,isPrevious:re===Q.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var k=this,Q=this.props,J=Q.showIndicators,re=Q.labels,ce=Q.renderIndicator,G=Q.children;return J?e.default.createElement("ul",{className:"control-dots"},e.Children.map(G,function(te,ne){return ce&&ce(k.changeItem(ne),ne===k.state.selectedItem,ne,re.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(i.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 k=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var Q=this.props.swipeable&&e.Children.count(this.props.children)>1,J=this.props.axis==="horizontal",re=this.props.showArrows&&e.Children.count(this.props.children)>1,ce=re&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,G=re&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,te=this.renderItems(!0),ne=te.shift(),ue=te.pop(),ie={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},he={};if(J){if(ie.onSwipeLeft=this.onSwipeForward,ie.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);he.height=fe||"auto"}}else ie.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ie.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ie.style=x(x({},ie.style),{},{height:this.state.itemSize}),he.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,ce,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:he},Q?e.default.createElement(t.default,g({tagName:"ul",innerRef:this.setListRef},ie,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ne):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(xe){return k.setListRef(xe)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ne)),this.props.renderArrowNext(this.onClickNext,G,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B})(e.default.Component);return so.default=q,D(q,"displayName","Carousel"),D(q,"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,Z){return e.default.createElement("button",{type:"button","aria-label":Z,className:r.default.ARROW_PREV(!B),onClick:L})},renderArrowNext:function(L,B,Z){return e.default.createElement("button",{type:"button","aria-label":Z,className:r.default.ARROW_NEXT(!B),onClick:L})},renderIndicator:function(L,B,Z,k){return e.default.createElement("li",{className:r.default.DOT(B),onClick:L,onKeyDown:L,value:Z,key:Z,role:"button",tabIndex:0,"aria-label":"".concat(k," ").concat(Z+1)})},renderItem:function(L){return L},renderThumbs:function(L){var B=e.Children.map(L,function(Z){var k=Z;if(Z.type!=="img"&&(k=e.Children.toArray(Z.props.children).find(function(Q){return Q.type==="img"})),!!k)return k});return B.filter(function(Z){return Z}).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:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),so}var um={},lm;function vC(){return lm||(lm=1),um}var cm;function yC(){return cm||(cm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=s(mC()),r=vC(),i=s(uy());function s(a){return a&&a.__esModule?a:{default:a}}})(Ul)),Ul}var bC=yC();const wC=({tip:e})=>F.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:cy(e,!0)}),xC=({pages:e})=>F.jsx("div",{className:"min-h-[10rem] w-96",children:F.jsx(bC.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>F.jsx(wC,{tip:t},t.key))})}),SC=({body:e,isInsideCarousel:t})=>F.jsx("article",{className:He(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:F.jsx(xa,{children:e,options:{overrides:{a:{component:({children:r,...i})=>F.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,F.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),EC=({video:e,body:t,title:r,isInsideCarousel:i})=>F.jsxs("div",{className:He([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[F.jsx("div",{className:He([{"mr-1":!i,"mb-1":i}]),children:F.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),F.jsx("article",{className:He(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:F.jsx(xa,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>F.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,F.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),cy=(e,t)=>{switch(e.type){case ha.TEXT:return F.jsx(SC,{body:e.body,isInsideCarousel:t});case ha.VIDEO:return F.jsx(EC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case ha.CAROUSEL:return F.jsx(xC,{pages:e.pages})}},fy=W.createContext(void 0);function fm(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const _C=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:s},a]=W.useState({tips:{},show:!0});W.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(f=>f.json()).then(f=>{const m=f.reduce((y,p)=>fm(f,p.key).length>1?{...y,[p.key]:{type:"carousel",pages:fm(f,p.key)}}:{...y,[p.key]:p},{});a(y=>({...y,tips:m}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{a(c=>({...c,show:!s}))};return F.jsx(fy.Provider,{value:{tips:i,toggleTips:l,show:s,enabled:t},children:e})},dy=e=>{const t=W.useContext(fy);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},OC=Sa(nC)`
80
+ */var Ul,Bg;function cC(){if(Bg)return Ul;Bg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(u).map(function(y){return u[y]});if(f.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(y){m[y]=y}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ul=s()?Object.assign:function(a,u){for(var c,f=i(a),m,y=1;y<arguments.length;y++){c=Object(arguments[y]);for(var p in c)t.call(c,p)&&(f[p]=c[p]);if(e){m=e(c);for(var g=0;g<m.length;g++)r.call(c,m[g])&&(f[m[g]]=c[m[g]])}}return f},Ul}var Bl,Hg;function of(){if(Hg)return Bl;Hg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bl=e,Bl}var Hl,qg;function iy(){return qg||(qg=1,Hl=Function.call.bind(Object.prototype.hasOwnProperty)),Hl}var ql,Zg;function fC(){if(Zg)return ql;Zg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=of(),r={},i=iy();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,c,f,m){if(process.env.NODE_ENV!=="production"){for(var y in a)if(i(a,y)){var p;try{if(typeof a[y]!="function"){var g=Error((f||"React class")+": "+c+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}p=a[y](u,y,f,c,null,t)}catch(x){p=x}if(p&&!(p instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var v=m?m():"";e("Failed "+c+" type: "+p.message+(v??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ql=s,ql}var Zl,Gg;function dC(){if(Gg)return Zl;Gg=1;var e=ny(),t=cC(),r=of(),i=iy(),s=fC(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return Zl=function(c,f){var m=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function p(G){var te=G&&(m&&G[m]||G[y]);if(typeof te=="function")return te}var g="<<anonymous>>",v={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:S(),arrayOf:E,element:R(),elementType:O(),instanceOf:C,node:q(),objectOf:M,oneOf:U,oneOfType:D,shape:L,exact:B};function x(G,te){return G===te?G!==0||1/G===1/te:G!==G&&te!==te}function d(G,te){this.message=G,this.data=te&&typeof te=="object"?te:{},this.stack=""}d.prototype=Error.prototype;function w(G){if(process.env.NODE_ENV!=="production")var te={},ne=0;function ue(he,fe,ve,xe,Ae,_e,ot){if(xe=xe||g,_e=_e||ve,ot!==r){if(f){var oe=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 oe.name="Invariant Violation",oe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ct=xe+":"+ve;!te[ct]&&ne<3&&(a("You are manually calling a React.PropTypes validation function for the `"+_e+"` prop on `"+xe+"`. 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."),te[ct]=!0,ne++)}}return fe[ve]==null?he?fe[ve]===null?new d("The "+Ae+" `"+_e+"` is marked as required "+("in `"+xe+"`, but its value is `null`.")):new d("The "+Ae+" `"+_e+"` is marked as required in "+("`"+xe+"`, but its value is `undefined`.")):null:G(fe,ve,xe,Ae,_e)}var ie=ue.bind(null,!1);return ie.isRequired=ue.bind(null,!0),ie}function h(G){function te(ne,ue,ie,he,fe,ve){var xe=ne[ue],Ae=Q(xe);if(Ae!==G){var _e=J(xe);return new d("Invalid "+he+" `"+fe+"` of type "+("`"+_e+"` supplied to `"+ie+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return w(te)}function S(){return w(u)}function E(G){function te(ne,ue,ie,he,fe){if(typeof G!="function")return new d("Property `"+fe+"` of component `"+ie+"` has invalid PropType notation inside arrayOf.");var ve=ne[ue];if(!Array.isArray(ve)){var xe=Q(ve);return new d("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected an array."))}for(var Ae=0;Ae<ve.length;Ae++){var _e=G(ve,Ae,ie,he,fe+"["+Ae+"]",r);if(_e instanceof Error)return _e}return null}return w(te)}function R(){function G(te,ne,ue,ie,he){var fe=te[ne];if(!c(fe)){var ve=Q(fe);return new d("Invalid "+ie+" `"+he+"` of type "+("`"+ve+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(G)}function O(){function G(te,ne,ue,ie,he){var fe=te[ne];if(!e.isValidElementType(fe)){var ve=Q(fe);return new d("Invalid "+ie+" `"+he+"` of type "+("`"+ve+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(G)}function C(G){function te(ne,ue,ie,he,fe){if(!(ne[ue]instanceof G)){var ve=G.name||g,xe=ce(ne[ue]);return new d("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected ")+("instance of `"+ve+"`."))}return null}return w(te)}function U(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),u;function te(ne,ue,ie,he,fe){for(var ve=ne[ue],xe=0;xe<G.length;xe++)if(x(ve,G[xe]))return null;var Ae=JSON.stringify(G,function(ot,oe){var ct=J(oe);return ct==="symbol"?String(oe):oe});return new d("Invalid "+he+" `"+fe+"` of value `"+String(ve)+"` "+("supplied to `"+ie+"`, expected one of "+Ae+"."))}return w(te)}function M(G){function te(ne,ue,ie,he,fe){if(typeof G!="function")return new d("Property `"+fe+"` of component `"+ie+"` has invalid PropType notation inside objectOf.");var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new d("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected an object."));for(var Ae in ve)if(i(ve,Ae)){var _e=G(ve,Ae,ie,he,fe+"."+Ae,r);if(_e instanceof Error)return _e}return null}return w(te)}function D(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var te=0;te<G.length;te++){var ne=G[te];if(typeof ne!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(ne)+" at index "+te+"."),u}function ue(ie,he,fe,ve,xe){for(var Ae=[],_e=0;_e<G.length;_e++){var ot=G[_e],oe=ot(ie,he,fe,ve,xe,r);if(oe==null)return null;oe.data&&i(oe.data,"expectedType")&&Ae.push(oe.data.expectedType)}var ct=Ae.length>0?", expected one of type ["+Ae.join(", ")+"]":"";return new d("Invalid "+ve+" `"+xe+"` supplied to "+("`"+fe+"`"+ct+"."))}return w(ue)}function q(){function G(te,ne,ue,ie,he){return Z(te[ne])?null:new d("Invalid "+ie+" `"+he+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(G)}function N(G,te,ne,ue,ie){return new d((G||"React class")+": "+te+" type `"+ne+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ie+"`.")}function L(G){function te(ne,ue,ie,he,fe){var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new d("Invalid "+he+" `"+fe+"` of type `"+xe+"` "+("supplied to `"+ie+"`, expected `object`."));for(var Ae in G){var _e=G[Ae];if(typeof _e!="function")return N(ie,he,fe,Ae,J(_e));var ot=_e(ve,Ae,ie,he,fe+"."+Ae,r);if(ot)return ot}return null}return w(te)}function B(G){function te(ne,ue,ie,he,fe){var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new d("Invalid "+he+" `"+fe+"` of type `"+xe+"` "+("supplied to `"+ie+"`, expected `object`."));var Ae=t({},ne[ue],G);for(var _e in Ae){var ot=G[_e];if(i(G,_e)&&typeof ot!="function")return N(ie,he,fe,_e,J(ot));if(!ot)return new d("Invalid "+he+" `"+fe+"` key `"+_e+"` supplied to `"+ie+"`.\nBad object: "+JSON.stringify(ne[ue],null," ")+`
81
+ Valid keys: `+JSON.stringify(Object.keys(G),null," "));var oe=ot(ve,_e,ie,he,fe+"."+_e,r);if(oe)return oe}return null}return w(te)}function Z(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(Z);if(G===null||c(G))return!0;var te=p(G);if(te){var ne=te.call(G),ue;if(te!==G.entries){for(;!(ue=ne.next()).done;)if(!Z(ue.value))return!1}else for(;!(ue=ne.next()).done;){var ie=ue.value;if(ie&&!Z(ie[1]))return!1}}else return!1;return!0;default:return!1}}function k(G,te){return G==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function Q(G){var te=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":k(te,G)?"symbol":te}function J(G){if(typeof G>"u"||G===null)return""+G;var te=Q(G);if(te==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return te}function re(G){var te=J(G);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function ce(G){return!G.constructor||!G.constructor.name?g:G.constructor.name}return v.checkPropTypes=s,v.resetWarningCache=s.resetWarningCache,v.PropTypes=v,v},Zl}var Gl,Kg;function pC(){if(Kg)return Gl;Kg=1;var e=of();function t(){}function r(){}return r.resetWarningCache=t,Gl=function(){function i(u,c,f,m,y,p){if(p!==e){var g=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 g.name="Invariant Violation",g}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Gl}var Vg;function hC(){if(Vg)return Qs.exports;if(Vg=1,process.env.NODE_ENV!=="production"){var e=ny(),t=!0;Qs.exports=dC()(e.isElement,t)}else Qs.exports=pC()();return Qs.exports}var Xg;function gC(){return Xg||(Xg=1,(function(e){(function(t,r){r(e,W,hC())})(Js,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=u(r),a=u(i);function u(S){return S&&S.__esModule?S:{default:S}}var c=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(S[O]=R[O])}return S};function f(S,E){var R={};for(var O in S)E.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(S,O)&&(R[O]=S[O]);return R}function m(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var y=(function(){function S(E,R){for(var O=0;O<R.length;O++){var C=R[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function p(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function g(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var v=!1;function x(S){v=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function d(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return v?S:S.capture}function w(S){if("touches"in S){var E=S.touches[0],R=E.pageX,O=E.pageY;return{x:R,y:O}}var C=S.screenX,U=S.screenY;return{x:C,y:U}}var h=(function(S){g(E,S);function E(){var R;m(this,E);for(var O=arguments.length,C=Array(O),U=0;U<O;U++)C[U]=arguments[U];var M=p(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(C)));return M._handleSwipeStart=M._handleSwipeStart.bind(M),M._handleSwipeMove=M._handleSwipeMove.bind(M),M._handleSwipeEnd=M._handleSwipeEnd.bind(M),M._onMouseDown=M._onMouseDown.bind(M),M._onMouseMove=M._onMouseMove.bind(M),M._onMouseUp=M._onMouseUp.bind(M),M._setSwiperRef=M._setSwiperRef.bind(M),M}return y(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var C=w(O),U=C.x,M=C.y;this.moveStart={x:U,y:M},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var C=w(O),U=C.x,M=C.y,D=U-this.moveStart.x,q=M-this.moveStart.y;this.moving=!0;var N=this.props.onSwipeMove({x:D,y:q},O);N&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:D,deltaY:q}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var C=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-C?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>C&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-C?this.props.onSwipeUp(1,O):this.movePosition.deltaY>C&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var C=O.className,U=O.style,M=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var D=f(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:C,style:U},D),M)}}]),E})(r.Component);h.displayName="ReactSwipe",h.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},h.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=h})})(Js)),Js}var Yg;function oy(){return Yg||(Yg=1,(function(e){(function(t,r){r(e,gC())})(Ys,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=s(r);function s(a){return a&&a.__esModule?a:{default:a}}t.default=i.default})})(Ys)),Ys}var ao={},Jg;function sy(){if(Jg)return ao;Jg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=t(gv());function t(s){return s&&s.__esModule?s:{default:s}}function r(s,a,u){return a in s?Object.defineProperty(s,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[a]=u,s}var i={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,u){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":u==="horizontal","axis-vertical":u!=="horizontal"})},SLIDER:function(a,u){return(0,e.default)({thumbs:!a,slider:a,animated:!u})},ITEM:function(a,u,c){return(0,e.default)({thumb:!a,slide:a,selected:u,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return ao.default=i,ao}var uo={},lo={},Qg;function mC(){if(Qg)return lo;Qg=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return lo.outerWidth=e,lo}var co={},em;function sf(){if(em)return co;em=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;var e=function(r,i,s){var a=r===0?r:r+i,u=s==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",f="("+u.join(",")+")";return c+f};return co.default=e,co}var fo={},tm;function ay(){if(tm)return fo;tm=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=void 0;var e=function(){return window};return fo.default=e,fo}var rm;function uy(){if(rm)return uo;rm=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=f(W),t=u(sy()),r=mC(),i=u(sf()),s=u(oy()),a=u(ay());function u(M){return M&&M.__esModule?M:{default:M}}function c(){if(typeof WeakMap!="function")return null;var M=new WeakMap;return c=function(){return M},M}function f(M){if(M&&M.__esModule)return M;if(M===null||m(M)!=="object"&&typeof M!="function")return{default:M};var D=c();if(D&&D.has(M))return D.get(M);var q={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in M)if(Object.prototype.hasOwnProperty.call(M,L)){var B=N?Object.getOwnPropertyDescriptor(M,L):null;B&&(B.get||B.set)?Object.defineProperty(q,L,B):q[L]=M[L]}return q.default=M,D&&D.set(M,q),q}function m(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(q){return typeof q}:m=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},m(M)}function y(){return y=Object.assign||function(M){for(var D=1;D<arguments.length;D++){var q=arguments[D];for(var N in q)Object.prototype.hasOwnProperty.call(q,N)&&(M[N]=q[N])}return M},y.apply(this,arguments)}function p(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function g(M,D){for(var q=0;q<D.length;q++){var N=D[q];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}function v(M,D,q){return D&&g(M.prototype,D),M}function x(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),D&&d(M,D)}function d(M,D){return d=Object.setPrototypeOf||function(N,L){return N.__proto__=L,N},d(M,D)}function w(M){var D=E();return function(){var N=R(M),L;if(D){var B=R(this).constructor;L=Reflect.construct(N,arguments,B)}else L=N.apply(this,arguments);return h(this,L)}}function h(M,D){return D&&(m(D)==="object"||typeof D=="function")?D:S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function E(){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 R(M){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)},R(M)}function O(M,D,q){return D in M?Object.defineProperty(M,D,{value:q,enumerable:!0,configurable:!0,writable:!0}):M[D]=q,M}var C=function(D){return D.hasOwnProperty("key")},U=(function(M){x(q,M);var D=w(q);function q(N){var L;return p(this,q),L=D.call(this,N),O(S(L),"itemsWrapperRef",void 0),O(S(L),"itemsListRef",void 0),O(S(L),"thumbsRef",void 0),O(S(L),"setItemsWrapperRef",function(B){L.itemsWrapperRef=B}),O(S(L),"setItemsListRef",function(B){L.itemsListRef=B}),O(S(L),"setThumbsRef",function(B,Z){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[Z]=B}),O(S(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var B=e.Children.count(L.props.children),Z=L.itemsWrapperRef.clientWidth,k=L.props.thumbWidth?L.props.thumbWidth:(0,r.outerWidth)(L.thumbsRef[0]),Q=Math.floor(Z/k),J=Q<B,re=J?B-Q:0;L.setState(function(ce,G){return{itemSize:k,visibleItems:Q,firstItem:J?L.getFirstItem(G.selectedItem):0,lastPosition:re,showArrows:J}})}}),O(S(L),"handleClickItem",function(B,Z,k){if(!C(k)||k.key==="Enter"){var Q=L.props.onSelectItem;typeof Q=="function"&&Q(B,Z)}}),O(S(L),"onSwipeStart",function(){L.setState({swiping:!0})}),O(S(L),"onSwipeEnd",function(){L.setState({swiping:!1})}),O(S(L),"onSwipeMove",function(B){var Z=B.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var k=0,Q=e.Children.count(L.props.children),J=-(L.state.firstItem*100)/L.state.visibleItems,re=Math.max(Q-L.state.visibleItems,0),ce=-re*100/L.state.visibleItems;J===k&&Z>0&&(Z=0),J===ce&&Z<0&&(Z=0);var G=L.itemsWrapperRef.clientWidth,te=J+100/(G/Z);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ne){L.itemsListRef.style[ne]=(0,i.default)(te,"%",L.props.axis)}),!0}),O(S(L),"slideRight",function(B){L.moveTo(L.state.firstItem-(typeof B=="number"?B:1))}),O(S(L),"slideLeft",function(B){L.moveTo(L.state.firstItem+(typeof B=="number"?B:1))}),O(S(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:N.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return v(q,[{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,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.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,Z){var k=t.default.ITEM(!1,Z===L.state.selectedItem),Q={key:Z,ref:function(re){return L.setThumbsRef(re,Z)},className:k,onClick:L.handleClickItem.bind(L,Z,L.props.children[Z]),onKeyDown:L.handleClickItem.bind(L,Z,L.props.children[Z]),"aria-label":"".concat(L.props.labels.item," ").concat(Z+1),style:{width:L.props.thumbWidth}};return e.default.createElement("li",y({},Q,{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,Z=this.state.showArrows&&this.state.firstItem>0,k=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,Q={},J=-this.state.firstItem*(this.state.itemSize||0),re=(0,i.default)(J,"px",this.props.axis),ce=this.props.transitionTime+"ms";return Q={WebkitTransform:re,MozTransform:re,MsTransform:re,OTransform:re,transform:re,msTransform:re,WebkitTransitionDuration:ce,MozTransitionDuration:ce,MsTransitionDuration:ce,OTransitionDuration:ce,transitionDuration:ce,msTransitionDuration:ce},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!Z),onClick:function(){return L.slideRight()},"aria-label":this.props.labels.leftArrow}),B?e.default.createElement(s.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:Q,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(te){return L.setItemsListRef(te)},style:Q},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!k),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),q})(e.Component);return uo.default=U,O(U,"displayName","Thumbs"),O(U,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),uo}var po={},nm;function vC(){if(nm)return po;nm=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var e=function(){return document};return po.default=e,po}var Ht={},im;function ly(){if(im)return Ht;im=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.setPosition=Ht.getPosition=Ht.isKeyboardEvent=Ht.defaultStatusFormatter=Ht.noop=void 0;var e=W,t=r(sf());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Ht.noop=i;var s=function(m,y){return"".concat(m," of ").concat(y)};Ht.defaultStatusFormatter=s;var a=function(m){return m?m.hasOwnProperty("key"):!1};Ht.isKeyboardEvent=a;var u=function(m,y){if(y.infiniteLoop&&++m,m===0)return 0;var p=e.Children.count(y.children);if(y.centerMode&&y.axis==="horizontal"){var g=-m*y.centerSlidePercentage,v=p-1;return m&&(m!==v||y.infiniteLoop)?g+=(100-y.centerSlidePercentage)/2:m===v&&(g+=100-y.centerSlidePercentage),g}return-m*100};Ht.getPosition=u;var c=function(m,y){var p={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(g){p[g]=(0,t.default)(m,"%",y)}),p};return Ht.setPosition=c,Ht}var pr={},om;function yC(){if(om)return pr;om=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.fadeAnimationHandler=pr.slideStopSwipingHandler=pr.slideSwipeAnimationHandler=pr.slideAnimationHandler=void 0;var e=W,t=i(sf()),r=ly();function i(p){return p&&p.__esModule?p:{default:p}}function s(p,g){var v=Object.keys(p);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(p);g&&(x=x.filter(function(d){return Object.getOwnPropertyDescriptor(p,d).enumerable})),v.push.apply(v,x)}return v}function a(p){for(var g=1;g<arguments.length;g++){var v=arguments[g]!=null?arguments[g]:{};g%2?s(Object(v),!0).forEach(function(x){u(p,x,v[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(x){Object.defineProperty(p,x,Object.getOwnPropertyDescriptor(v,x))})}return p}function u(p,g,v){return g in p?Object.defineProperty(p,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[g]=v,p}var c=function(g,v){var x={},d=v.selectedItem,w=d,h=e.Children.count(g.children)-1,S=g.infiniteLoop&&(d<0||d>h);if(S)return w<0?g.centerMode&&g.centerSlidePercentage&&g.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(h+2)*g.centerSlidePercentage-(100-g.centerSlidePercentage)/2,g.axis):x.itemListStyle=(0,r.setPosition)(-(h+2)*100,g.axis):w>h&&(x.itemListStyle=(0,r.setPosition)(0,g.axis)),x;var E=(0,r.getPosition)(d,g),R=(0,t.default)(E,"%",g.axis),O=g.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},v.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};pr.slideAnimationHandler=c;var f=function(g,v,x,d){var w={},h=v.axis==="horizontal",S=e.Children.count(v.children),E=0,R=(0,r.getPosition)(x.selectedItem,v),O=v.infiniteLoop?(0,r.getPosition)(S-1,v)-100:(0,r.getPosition)(S-1,v),C=h?g.x:g.y,U=C;R===E&&C>0&&(U=0),R===O&&C<0&&(U=0);var M=R+100/(x.itemSize/U),D=Math.abs(C)>v.swipeScrollTolerance;return v.infiniteLoop&&D&&(x.selectedItem===0&&M>-100?M-=S*100:x.selectedItem===S-1&&M<-S*100&&(M+=S*100)),(!v.preventMovementUntilSwipeScrollTolerance||D||x.swipeMovementStarted)&&(x.swipeMovementStarted||d({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(M,v.axis)),D&&!x.cancelClick&&d({cancelClick:!0}),w};pr.slideSwipeAnimationHandler=f;var m=function(g,v){var x=(0,r.getPosition)(v.selectedItem,g),d=(0,r.setPosition)(x,g.axis);return{itemListStyle:d}};pr.slideStopSwipingHandler=m;var y=function(g,v){var x=g.transitionTime+"ms",d="ease-in-out",w={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:d,msTransitionTimingFunction:d,MozTransitionTimingFunction:d,WebkitTransitionTimingFunction:d,OTransitionTimingFunction:d};return v.swiping||(w=a(a({},w),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:w,selectedStyle:a(a({},w),{},{opacity:1,position:"relative"}),prevStyle:a({},w)}};return pr.fadeAnimationHandler=y,pr}var sm;function bC(){if(sm)return so;sm=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e=y(W),t=f(oy()),r=f(sy()),i=f(uy()),s=f(vC()),a=f(ay()),u=ly(),c=yC();function f(N){return N&&N.__esModule?N:{default:N}}function m(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return m=function(){return N},N}function y(N){if(N&&N.__esModule)return N;if(N===null||p(N)!=="object"&&typeof N!="function")return{default:N};var L=m();if(L&&L.has(N))return L.get(N);var B={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in N)if(Object.prototype.hasOwnProperty.call(N,k)){var Q=Z?Object.getOwnPropertyDescriptor(N,k):null;Q&&(Q.get||Q.set)?Object.defineProperty(B,k,Q):B[k]=N[k]}return B.default=N,L&&L.set(N,B),B}function p(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(B){return typeof B}:p=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},p(N)}function g(){return g=Object.assign||function(N){for(var L=1;L<arguments.length;L++){var B=arguments[L];for(var Z in B)Object.prototype.hasOwnProperty.call(B,Z)&&(N[Z]=B[Z])}return N},g.apply(this,arguments)}function v(N,L){var B=Object.keys(N);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(N);L&&(Z=Z.filter(function(k){return Object.getOwnPropertyDescriptor(N,k).enumerable})),B.push.apply(B,Z)}return B}function x(N){for(var L=1;L<arguments.length;L++){var B=arguments[L]!=null?arguments[L]:{};L%2?v(Object(B),!0).forEach(function(Z){D(N,Z,B[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(B)):v(Object(B)).forEach(function(Z){Object.defineProperty(N,Z,Object.getOwnPropertyDescriptor(B,Z))})}return N}function d(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function w(N,L){for(var B=0;B<L.length;B++){var Z=L[B];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(N,Z.key,Z)}}function h(N,L,B){return L&&w(N.prototype,L),N}function S(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),L&&E(N,L)}function E(N,L){return E=Object.setPrototypeOf||function(Z,k){return Z.__proto__=k,Z},E(N,L)}function R(N){var L=U();return function(){var Z=M(N),k;if(L){var Q=M(this).constructor;k=Reflect.construct(Z,arguments,Q)}else k=Z.apply(this,arguments);return O(this,k)}}function O(N,L){return L&&(p(L)==="object"||typeof L=="function")?L:C(N)}function C(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function U(){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 M(N){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},M(N)}function D(N,L,B){return L in N?Object.defineProperty(N,L,{value:B,enumerable:!0,configurable:!0,writable:!0}):N[L]=B,N}var q=(function(N){S(B,N);var L=R(B);function B(Z){var k;d(this,B),k=L.call(this,Z),D(C(k),"thumbsRef",void 0),D(C(k),"carouselWrapperRef",void 0),D(C(k),"listRef",void 0),D(C(k),"itemsRef",void 0),D(C(k),"timer",void 0),D(C(k),"animationHandler",void 0),D(C(k),"setThumbsRef",function(J){k.thumbsRef=J}),D(C(k),"setCarouselWrapperRef",function(J){k.carouselWrapperRef=J}),D(C(k),"setListRef",function(J){k.listRef=J}),D(C(k),"setItemsRef",function(J,re){k.itemsRef||(k.itemsRef=[]),k.itemsRef[re]=J}),D(C(k),"autoPlay",function(){e.Children.count(k.props.children)<=1||(k.clearAutoPlay(),k.props.autoPlay&&(k.timer=setTimeout(function(){k.increment()},k.props.interval)))}),D(C(k),"clearAutoPlay",function(){k.timer&&clearTimeout(k.timer)}),D(C(k),"resetAutoPlay",function(){k.clearAutoPlay(),k.autoPlay()}),D(C(k),"stopOnHover",function(){k.setState({isMouseEntered:!0},k.clearAutoPlay)}),D(C(k),"startOnLeave",function(){k.setState({isMouseEntered:!1},k.autoPlay)}),D(C(k),"isFocusWithinTheCarousel",function(){return k.carouselWrapperRef?!!((0,s.default)().activeElement===k.carouselWrapperRef||k.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),D(C(k),"navigateWithKeyboard",function(J){if(k.isFocusWithinTheCarousel()){var re=k.props.axis,ce=re==="horizontal",G={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},te=ce?G.ArrowRight:G.ArrowDown,ne=ce?G.ArrowLeft:G.ArrowUp;te===J.keyCode?k.increment():ne===J.keyCode&&k.decrement()}}),D(C(k),"updateSizes",function(){if(!(!k.state.initialized||!k.itemsRef||k.itemsRef.length===0)){var J=k.props.axis==="horizontal",re=k.itemsRef[0];if(re){var ce=J?re.clientWidth:re.clientHeight;k.setState({itemSize:ce}),k.thumbsRef&&k.thumbsRef.updateSizes()}}}),D(C(k),"setMountState",function(){k.setState({hasMount:!0}),k.updateSizes()}),D(C(k),"handleClickItem",function(J,re){if(e.Children.count(k.props.children)!==0){if(k.state.cancelClick){k.setState({cancelClick:!1});return}k.props.onClickItem(J,re),J!==k.state.selectedItem&&k.setState({selectedItem:J})}}),D(C(k),"handleOnChange",function(J,re){e.Children.count(k.props.children)<=1||k.props.onChange(J,re)}),D(C(k),"handleClickThumb",function(J,re){k.props.onClickThumb(J,re),k.moveTo(J)}),D(C(k),"onSwipeStart",function(J){k.setState({swiping:!0}),k.props.onSwipeStart(J)}),D(C(k),"onSwipeEnd",function(J){k.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),k.props.onSwipeEnd(J),k.clearAutoPlay(),k.state.autoPlay&&k.autoPlay()}),D(C(k),"onSwipeMove",function(J,re){k.props.onSwipeMove(re);var ce=k.props.swipeAnimationHandler(J,k.props,k.state,k.setState.bind(C(k)));return k.setState(x({},ce)),!!Object.keys(ce).length}),D(C(k),"decrement",function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;k.moveTo(k.state.selectedItem-(typeof J=="number"?J:1))}),D(C(k),"increment",function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;k.moveTo(k.state.selectedItem+(typeof J=="number"?J:1))}),D(C(k),"moveTo",function(J){if(typeof J=="number"){var re=e.Children.count(k.props.children)-1;J<0&&(J=k.props.infiniteLoop?re:0),J>re&&(J=k.props.infiniteLoop?0:re),k.selectItem({selectedItem:J}),k.state.autoPlay&&k.state.isMouseEntered===!1&&k.resetAutoPlay()}}),D(C(k),"onClickNext",function(){k.increment(1)}),D(C(k),"onClickPrev",function(){k.decrement(1)}),D(C(k),"onSwipeForward",function(){k.increment(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),D(C(k),"onSwipeBackwards",function(){k.decrement(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),D(C(k),"changeItem",function(J){return function(re){(!(0,u.isKeyboardEvent)(re)||re.key==="Enter")&&k.moveTo(J)}}),D(C(k),"selectItem",function(J){k.setState(x({previousItem:k.state.selectedItem},J),function(){k.setState(k.animationHandler(k.props,k.state))}),k.handleOnChange(J.selectedItem,e.Children.toArray(k.props.children)[J.selectedItem])}),D(C(k),"getInitialImage",function(){var J=k.props.selectedItem,re=k.itemsRef&&k.itemsRef[J],ce=re&&re.getElementsByTagName("img")||[];return ce[0]}),D(C(k),"getVariableItemHeight",function(J){var re=k.itemsRef&&k.itemsRef[J];if(k.state.hasMount&&re&&re.children.length){var ce=re.children[0].getElementsByTagName("img")||[];if(ce.length>0){var G=ce[0];if(!G.complete){var te=function ie(){k.forceUpdate(),G.removeEventListener("load",ie)};G.addEventListener("load",te)}}var ne=ce[0]||re.children[0],ue=ne.clientHeight;return ue>0?ue:null}return null});var Q={initialized:!1,previousItem:Z.selectedItem,selectedItem:Z.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:Z.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return k.animationHandler=typeof Z.animationHandler=="function"&&Z.animationHandler||Z.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,k.state=x(x({},Q),k.animationHandler(Z,Q)),k}return h(B,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(k,Q){!k.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!k.autoFocus&&this.props.autoFocus&&this.forceFocus(),Q.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(k.selectedItem!==this.props.selectedItem||k.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),k.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 k=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 Q=k.getInitialImage();Q&&!Q.complete?Q.addEventListener("load",k.setMountState):k.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var k=this.carouselWrapperRef;this.props.stopOnHover&&k&&(k.addEventListener("mouseenter",this.stopOnHover),k.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var k=this.carouselWrapperRef;this.props.stopOnHover&&k&&(k.removeEventListener("mouseenter",this.stopOnHover),k.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,s.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var k=this.getInitialImage();k&&k.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var k;(k=this.carouselWrapperRef)===null||k===void 0||k.focus()}},{key:"renderItems",value:function(k){var Q=this;return this.props.children?e.Children.map(this.props.children,function(J,re){var ce=re===Q.state.selectedItem,G=re===Q.state.previousItem,te=ce&&Q.state.selectedStyle||G&&Q.state.prevStyle||Q.state.slideStyle||{};Q.props.centerMode&&Q.props.axis==="horizontal"&&(te=x(x({},te),{},{minWidth:Q.props.centerSlidePercentage+"%"})),Q.state.swiping&&Q.state.swipeMovementStarted&&(te=x(x({},te),{},{pointerEvents:"none"}));var ne={ref:function(ie){return Q.setItemsRef(ie,re)},key:"itemKey"+re+(k?"clone":""),className:r.default.ITEM(!0,re===Q.state.selectedItem,re===Q.state.previousItem),onClick:Q.handleClickItem.bind(Q,re,J),style:te};return e.default.createElement("li",ne,Q.props.renderItem(J,{isSelected:re===Q.state.selectedItem,isPrevious:re===Q.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var k=this,Q=this.props,J=Q.showIndicators,re=Q.labels,ce=Q.renderIndicator,G=Q.children;return J?e.default.createElement("ul",{className:"control-dots"},e.Children.map(G,function(te,ne){return ce&&ce(k.changeItem(ne),ne===k.state.selectedItem,ne,re.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(i.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 k=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var Q=this.props.swipeable&&e.Children.count(this.props.children)>1,J=this.props.axis==="horizontal",re=this.props.showArrows&&e.Children.count(this.props.children)>1,ce=re&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,G=re&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,te=this.renderItems(!0),ne=te.shift(),ue=te.pop(),ie={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},he={};if(J){if(ie.onSwipeLeft=this.onSwipeForward,ie.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);he.height=fe||"auto"}}else ie.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ie.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ie.style=x(x({},ie.style),{},{height:this.state.itemSize}),he.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,ce,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:he},Q?e.default.createElement(t.default,g({tagName:"ul",innerRef:this.setListRef},ie,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ne):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(xe){return k.setListRef(xe)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ne)),this.props.renderArrowNext(this.onClickNext,G,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B})(e.default.Component);return so.default=q,D(q,"displayName","Carousel"),D(q,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:u.noop,onClickThumb:u.noop,onChange:u.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(L,B,Z){return e.default.createElement("button",{type:"button","aria-label":Z,className:r.default.ARROW_PREV(!B),onClick:L})},renderArrowNext:function(L,B,Z){return e.default.createElement("button",{type:"button","aria-label":Z,className:r.default.ARROW_NEXT(!B),onClick:L})},renderIndicator:function(L,B,Z,k){return e.default.createElement("li",{className:r.default.DOT(B),onClick:L,onKeyDown:L,value:Z,key:Z,role:"button",tabIndex:0,"aria-label":"".concat(k," ").concat(Z+1)})},renderItem:function(L){return L},renderThumbs:function(L){var B=e.Children.map(L,function(Z){var k=Z;if(Z.type!=="img"&&(k=e.Children.toArray(Z.props.children).find(function(Q){return Q.type==="img"})),!!k)return k});return B.filter(function(Z){return Z}).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:u.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:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),so}var am={},um;function wC(){return um||(um=1),am}var lm;function xC(){return lm||(lm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=s(bC()),r=wC(),i=s(uy());function s(a){return a&&a.__esModule?a:{default:a}}})(Wl)),Wl}var SC=xC();const EC=({tip:e})=>F.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:cy(e,!0)}),_C=({pages:e})=>F.jsx("div",{className:"min-h-[10rem] w-96",children:F.jsx(SC.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>F.jsx(EC,{tip:t},t.key))})}),OC=({body:e,isInsideCarousel:t})=>F.jsx("article",{className:He(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:F.jsx(wa,{children:e,options:{overrides:{a:{component:({children:r,...i})=>F.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,F.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),AC=({video:e,body:t,title:r,isInsideCarousel:i})=>F.jsxs("div",{className:He([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[F.jsx("div",{className:He([{"mr-1":!i,"mb-1":i}]),children:F.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),F.jsx("article",{className:He(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:F.jsx(wa,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>F.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,F.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),cy=(e,t)=>{switch(e.type){case ha.TEXT:return F.jsx(OC,{body:e.body,isInsideCarousel:t});case ha.VIDEO:return F.jsx(AC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case ha.CAROUSEL:return F.jsx(_C,{pages:e.pages})}},fy=W.createContext(void 0);function cm(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const TC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:s},a]=W.useState({tips:{},show:!0});W.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(f=>f.json()).then(f=>{const m=f.reduce((y,p)=>cm(f,p.key).length>1?{...y,[p.key]:{type:"carousel",pages:cm(f,p.key)}}:{...y,[p.key]:p},{});a(y=>({...y,tips:m}))})}catch{}return()=>{c.abort()}},[]);const u=()=>{a(c=>({...c,show:!s}))};return F.jsx(fy.Provider,{value:{tips:i,toggleTips:u,show:s,enabled:t},children:e})},dy=e=>{const t=W.useContext(fy);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},RC=xa(sC)`
82
82
  &[data-state='open'] > * {
83
83
  display: block !important;
84
84
  }
85
- `,py=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:s,enabled:a}=dy(e),[l,c]=W.useState(!1),f=W.useRef(null);return W.useEffect(()=>{if(f.current){const m=new IntersectionObserver(y=>{y[0].isIntersecting||c(!1)});return m.observe(f.current),()=>{f.current&&m.unobserve(f.current)}}},[]),s&&a?F.jsxs(rC,{open:l,onOpenChange:c,children:[F.jsx(OC,{ref:f,className:He("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:m=>m.stopPropagation(),children:F.jsx("span",{className:He("group-hover:block",{hidden:!r}),children:F.jsx(tt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),F.jsx(iC,{side:t,sideOffset:5,onClick:m=>m.stopPropagation(),children:F.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:cy(s)})})]}):null};var AC=Object.defineProperty,TC=(e,t,r)=>t in e?AC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vl=(e,t,r)=>(TC(e,typeof t!="symbol"?t+"":t,r),r);let RC=class{constructor(){Vl(this,"current",this.detect()),Vl(this,"handoffState","pending"),Vl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}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"}},bi=new RC,Ir=(e,t)=>{bi.isServer?W.useEffect(e,t):W.useLayoutEffect(e,t)};function wi(e){let t=W.useRef(e);return Ir(()=>{t.current=e},[e]),t}let Et=function(e){let t=wi(e);return W.useCallback((...r)=>t.current(...r),[t])};function PC(e,t,r){let[i,s]=W.useState(r),a=e!==void 0,l=W.useRef(a),c=W.useRef(!1),f=W.useRef(!1);return a&&!l.current&&!c.current?(c.current=!0,l.current=a,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.")):!a&&l.current&&!f.current&&(f.current=!0,l.current=a,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.")),[a?e:i,Et(m=>(a||s(m),t==null?void 0:t(m)))]}function CC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ho(){let e=[],t={addEventListener(r,i,s,a){return r.addEventListener(i,s,a),t.add(()=>r.removeEventListener(i,s,a))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(...r){let i={current:!0};return CC(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,s){let a=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:s}),this.add(()=>{Object.assign(r.style,{[i]:a})})},group(r){let i=Ho();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let s of e.splice(i,1))s()}},dispose(){for(let r of e.splice(0))r()}};return t}function uf(){let[e]=W.useState(Ho);return W.useEffect(()=>()=>e.dispose(),[e]),e}function kC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function lf(){let e=kC(),[t,r]=$.useState(bi.isHandoffComplete);return t&&bi.isHandoffComplete===!1&&r(!1),$.useEffect(()=>{t!==!0&&r(!0)},[t]),$.useEffect(()=>bi.handoff(),[]),e?!1:t}var dm;let cf=(dm=W.useId)!=null?dm:function(){let e=lf(),[t,r]=W.useState(e?()=>bi.nextId():null);return Ir(()=>{t===null&&r(bi.nextId())},[t]),t!=null?""+t:void 0};function Pr(e,t,...r){if(e in t){let s=t[e];return typeof s=="function"?s(...r):s}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Pr),i}function pm(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function $C(e,t){let[r,i]=W.useState(()=>pm(e));return Ir(()=>{i(pm(e))},[e.type,e.as]),Ir(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let IC=Symbol();function qo(...e){let t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]);let r=Et(i=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(i):s.current=i)});return e.every(i=>i==null||(i==null?void 0:i[IC]))?void 0:r}function _a(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var hy=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(hy||{}),yn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(yn||{});function Kn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:s,visible:a=!0,name:l,mergeRefs:c}){c=c??LC;let f=gy(t,e);if(a)return ta(f,r,i,l,c);let m=s??0;if(m&2){let{static:y=!1,...p}=f;if(y)return ta(p,r,i,l,c)}if(m&1){let{unmount:y=!0,...p}=f;return Pr(y?0:1,{0(){return null},1(){return ta({...p,hidden:!0,style:{display:"none"}},r,i,l,c)}})}return ta(f,r,i,l,c)}function ta(e,t={},r,i,s){let{as:a=r,children:l,refName:c="ref",...f}=Xl(e,["unmount","static"]),m=e.ref!==void 0?{[c]:e.ref}:{},y=typeof l=="function"?l(t):l;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let p={};if(t){let g=!1,v=[];for(let[x,d]of Object.entries(t))typeof d=="boolean"&&(g=!0),d===!0&&v.push(x);g&&(p["data-headlessui-state"]=v.join(" "))}if(a===W.Fragment&&Object.keys(Sc(f)).length>0){if(!W.isValidElement(y)||Array.isArray(y)&&y.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(d=>` - ${d}`).join(`
85
+ `,py=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:s,enabled:a}=dy(e),[u,c]=W.useState(!1),f=W.useRef(null);return W.useEffect(()=>{if(f.current){const m=new IntersectionObserver(y=>{y[0].isIntersecting||c(!1)});return m.observe(f.current),()=>{f.current&&m.unobserve(f.current)}}},[]),s&&a?F.jsxs(oC,{open:u,onOpenChange:c,children:[F.jsx(RC,{ref:f,className:He("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:m=>m.stopPropagation(),children:F.jsx("span",{className:He("group-hover:block",{hidden:!r}),children:F.jsx(tt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),F.jsx(aC,{side:t,sideOffset:5,onClick:m=>m.stopPropagation(),children:F.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:cy(s)})})]}):null};var PC=Object.defineProperty,CC=(e,t,r)=>t in e?PC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kl=(e,t,r)=>(CC(e,typeof t!="symbol"?t+"":t,r),r);let kC=class{constructor(){Kl(this,"current",this.detect()),Kl(this,"handoffState","pending"),Kl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}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"}},bi=new kC,Lr=(e,t)=>{bi.isServer?W.useEffect(e,t):W.useLayoutEffect(e,t)};function wi(e){let t=W.useRef(e);return Lr(()=>{t.current=e},[e]),t}let Et=function(e){let t=wi(e);return W.useCallback((...r)=>t.current(...r),[t])};function $C(e,t,r){let[i,s]=W.useState(r),a=e!==void 0,u=W.useRef(a),c=W.useRef(!1),f=W.useRef(!1);return a&&!u.current&&!c.current?(c.current=!0,u.current=a,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.")):!a&&u.current&&!f.current&&(f.current=!0,u.current=a,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.")),[a?e:i,Et(m=>(a||s(m),t==null?void 0:t(m)))]}function IC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ho(){let e=[],t={addEventListener(r,i,s,a){return r.addEventListener(i,s,a),t.add(()=>r.removeEventListener(i,s,a))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(...r){let i={current:!0};return IC(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,s){let a=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:s}),this.add(()=>{Object.assign(r.style,{[i]:a})})},group(r){let i=Ho();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let s of e.splice(i,1))s()}},dispose(){for(let r of e.splice(0))r()}};return t}function af(){let[e]=W.useState(Ho);return W.useEffect(()=>()=>e.dispose(),[e]),e}function LC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function uf(){let e=LC(),[t,r]=$.useState(bi.isHandoffComplete);return t&&bi.isHandoffComplete===!1&&r(!1),$.useEffect(()=>{t!==!0&&r(!0)},[t]),$.useEffect(()=>bi.handoff(),[]),e?!1:t}var fm;let lf=(fm=W.useId)!=null?fm:function(){let e=uf(),[t,r]=W.useState(e?()=>bi.nextId():null);return Lr(()=>{t===null&&r(bi.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...r){if(e in t){let s=t[e];return typeof s=="function"?s(...r):s}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Cr),i}function dm(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function MC(e,t){let[r,i]=W.useState(()=>dm(e));return Lr(()=>{i(dm(e))},[e.type,e.as]),Lr(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let FC=Symbol();function qo(...e){let t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]);let r=Et(i=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(i):s.current=i)});return e.every(i=>i==null||(i==null?void 0:i[FC]))?void 0:r}function Ea(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var hy=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(hy||{}),bn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(bn||{});function Kn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:s,visible:a=!0,name:u,mergeRefs:c}){c=c??DC;let f=gy(t,e);if(a)return ta(f,r,i,u,c);let m=s??0;if(m&2){let{static:y=!1,...p}=f;if(y)return ta(p,r,i,u,c)}if(m&1){let{unmount:y=!0,...p}=f;return Cr(y?0:1,{0(){return null},1(){return ta({...p,hidden:!0,style:{display:"none"}},r,i,u,c)}})}return ta(f,r,i,u,c)}function ta(e,t={},r,i,s){let{as:a=r,children:u,refName:c="ref",...f}=Vl(e,["unmount","static"]),m=e.ref!==void 0?{[c]:e.ref}:{},y=typeof u=="function"?u(t):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let p={};if(t){let g=!1,v=[];for(let[x,d]of Object.entries(t))typeof d=="boolean"&&(g=!0),d===!0&&v.push(x);g&&(p["data-headlessui-state"]=v.join(" "))}if(a===W.Fragment&&Object.keys(xc(f)).length>0){if(!W.isValidElement(y)||Array.isArray(y)&&y.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(d=>` - ${d}`).join(`
86
86
  `),"","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(d=>` - ${d}`).join(`
87
87
  `)].join(`
88
- `));let g=y.props,v=typeof(g==null?void 0:g.className)=="function"?(...d)=>_a(g==null?void 0:g.className(...d),f.className):_a(g==null?void 0:g.className,f.className),x=v?{className:v}:{};return W.cloneElement(y,Object.assign({},gy(y.props,Sc(Xl(f,["ref"]))),p,m,{ref:s(y.ref,m.ref)},x))}return W.createElement(a,Object.assign({},Xl(f,["ref"]),a!==W.Fragment&&m,a!==W.Fragment&&p),y)}function LC(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function gy(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let s in i)s.startsWith("on")&&typeof i[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(i[s])):t[s]=i[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](s,...a){let l=r[i];for(let c of l){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;c(s,...a)}}});return t}function Vn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Sc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Xl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let MC="div";var my=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(my||{});function FC(e,t){var r;let{features:i=1,...s}=e,a={ref:t,"aria-hidden":(i&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(i&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",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Kn({ourProps:a,theirProps:s,slot:{},defaultTag:MC,name:"Hidden"})}let DC=Vn(FC),ff=W.createContext(null);ff.displayName="OpenClosedContext";var Gr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Gr||{});function vy(){return W.useContext(ff)}function NC({value:e,children:t}){return W.createElement(ff.Provider,{value:e},t)}function jC(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&zC(r)?!1:i}function zC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function WC(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let s of i.elements)if(s!==e&&(s.tagName==="INPUT"&&s.type==="submit"||s.tagName==="BUTTON"&&s.type==="submit"||s.nodeName==="INPUT"&&s.type==="image")){s.click();return}(r=i.requestSubmit)==null||r.call(i)}}var Ec=(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))(Ec||{});function df(){let e=W.useRef(!1);return Ir(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let yy=W.createContext(null);function by(){let e=W.useContext(yy);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,by),t}return e}function UC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=Et(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(yy.Provider,{value:s},r.children)},[t])]}let BC="p";function HC(e,t){let r=cf(),{id:i=`headlessui-description-${r}`,...s}=e,a=by(),l=qo(t);Ir(()=>a.register(i),[i,a.register]);let c={ref:l,...a.props,id:i};return Kn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:BC,name:a.name||"Description"})}let qC=Vn(HC),ZC=Object.assign(qC,{}),wy=W.createContext(null);function xy(){let e=W.useContext(wy);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,xy),t}return e}function GC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=Et(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(wy.Provider,{value:s},r.children)},[t])]}let KC="label";function VC(e,t){let r=cf(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,l=xy(),c=qo(t);Ir(()=>l.register(i),[i,l.register]);let f={ref:c,...l.props,id:i};return s&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in a&&delete a.onClick),Kn({ourProps:f,theirProps:a,slot:l.slot||{},defaultTag:KC,name:l.name||"Label"})}let XC=Vn(VC),YC=Object.assign(XC,{});function JC(e=0){let[t,r]=W.useState(e),i=df(),s=W.useCallback(f=>{i.current&&r(m=>m|f)},[t,i]),a=W.useCallback(f=>!!(t&f),[t]),l=W.useCallback(f=>{i.current&&r(m=>m&~f)},[r,i]),c=W.useCallback(f=>{i.current&&r(m=>m^f)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:l,toggleFlag:c}}let pf=W.createContext(null);pf.displayName="GroupContext";let QC=W.Fragment;function ek(e){var t;let[r,i]=W.useState(null),[s,a]=GC(),[l,c]=UC(),f=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:l}),[r,i,s,l]),m={},y=e;return W.createElement(c,{name:"Switch.Description"},W.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=f.switch)==null?void 0:t.id,onClick(p){r&&(p.currentTarget.tagName==="LABEL"&&p.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},W.createElement(pf.Provider,{value:f},Kn({ourProps:m,theirProps:y,defaultTag:QC,name:"Switch.Group"}))))}let tk="button";function rk(e,t){var r;let i=cf(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:l=!1,onChange:c,disabled:f=!1,name:m,value:y,form:p,...g}=e,v=W.useContext(pf),x=W.useRef(null),d=qo(x,t,v===null?null:v.setSwitch),[w,h]=PC(a,c,l),S=Et(()=>h==null?void 0:h(!w)),E=Et(D=>{if(jC(D.currentTarget))return D.preventDefault();D.preventDefault(),S()}),R=Et(D=>{D.key===Ec.Space?(D.preventDefault(),S()):D.key===Ec.Enter&&WC(D.currentTarget)}),O=Et(D=>D.preventDefault()),C=W.useMemo(()=>({checked:w}),[w]),U={id:s,ref:d,role:"switch",type:$C(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":v==null?void 0:v.labelledby,"aria-describedby":v==null?void 0:v.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:O},M=uf();return W.useEffect(()=>{var D;let q=(D=x.current)==null?void 0:D.closest("form");q&&l!==void 0&&M.addEventListener(q,"reset",()=>{h(l)})},[x,h]),W.createElement(W.Fragment,null,m!=null&&w&&W.createElement(DC,{features:my.Hidden,...Sc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:p,checked:w,name:m,value:y})}),Kn({ourProps:U,theirProps:g,slot:C,defaultTag:tk,name:"Switch"}))}let nk=Vn(rk),ik=ek,ok=Object.assign(nk,{Group:ik,Label:YC,Description:ZC});function sk(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Yl(e,...t){e&&t.length>0&&e.classList.add(...t)}function Jl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ak(e,t){let r=Ho();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[a,l]=[i,s].map(f=>{let[m=0]=f.split(",").filter(Boolean).map(y=>y.includes("ms")?parseFloat(y):parseFloat(y)*1e3).sort((y,p)=>p-y);return m}),c=a+l;if(c!==0){r.group(m=>{m.setTimeout(()=>{t(),m.dispose()},c),m.addEventListener(e,"transitionrun",y=>{y.target===y.currentTarget&&m.dispose()})});let f=r.addEventListener(e,"transitionend",m=>{m.target===m.currentTarget&&(t(),f())})}else t();return r.add(()=>t()),r.dispose}function uk(e,t,r,i){let s=r?"enter":"leave",a=Ho(),l=i!==void 0?sk(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Pr(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Pr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),m=Pr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Jl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Yl(e,...t.base,...c,...m),a.nextFrame(()=>{Jl(e,...t.base,...c,...m),Yl(e,...t.base,...c,...f),ak(e,()=>(Jl(e,...t.base,...c),Yl(e,...t.base,...t.entered),l()))}),a.dispose}function lk({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let l=df(),c=uf(),f=wi(r);Ir(()=>{e&&(f.current="enter")},[e]),Ir(()=>{let m=Ho();c.add(m.dispose);let y=t.current;if(y&&f.current!=="idle"&&l.current)return m.dispose(),s.current(f.current),m.add(uk(y,i.current,f.current==="enter",()=>{m.dispose(),a.current(f.current)})),m.dispose},[r])}function hn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ba=W.createContext(null);Ba.displayName="TransitionContext";var ck=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ck||{});function fk(){let e=W.useContext(Ba);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function dk(){let e=W.useContext(Ha);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ha=W.createContext(null);Ha.displayName="NestingContext";function qa(e){return"children"in e?qa(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Sy(e,t){let r=wi(e),i=W.useRef([]),s=df(),a=uf(),l=Et((v,x=yn.Hidden)=>{let d=i.current.findIndex(({el:w})=>w===v);d!==-1&&(Pr(x,{[yn.Unmount](){i.current.splice(d,1)},[yn.Hidden](){i.current[d].state="hidden"}}),a.microTask(()=>{var w;!qa(i)&&s.current&&((w=r.current)==null||w.call(r))}))}),c=Et(v=>{let x=i.current.find(({el:d})=>d===v);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:v,state:"visible"}),()=>l(v,yn.Unmount)}),f=W.useRef([]),m=W.useRef(Promise.resolve()),y=W.useRef({enter:[],leave:[],idle:[]}),p=Et((v,x,d)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([w])=>w!==v)),t==null||t.chains.current[x].push([v,new Promise(w=>{f.current.push(w)})]),t==null||t.chains.current[x].push([v,new Promise(w=>{Promise.all(y.current[x].map(([h,S])=>S)).then(()=>w())})]),x==="enter"?m.current=m.current.then(()=>t==null?void 0:t.wait.current).then(()=>d(x)):d(x)}),g=Et((v,x,d)=>{Promise.all(y.current[x].splice(0).map(([w,h])=>h)).then(()=>{var w;(w=f.current.shift())==null||w()}).then(()=>d(x))});return W.useMemo(()=>({children:i,register:c,unregister:l,onStart:p,onStop:g,wait:m,chains:y}),[c,l,i,p,g,y,m])}function pk(){}let hk=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function hm(e){var t;let r={};for(let i of hk)r[i]=(t=e[i])!=null?t:pk;return r}function gk(e){let t=W.useRef(hm(e));return W.useEffect(()=>{t.current=hm(e)},[e]),t}let mk="div",Ey=hy.RenderStrategy;function vk(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c,enter:f,enterFrom:m,enterTo:y,entered:p,leave:g,leaveFrom:v,leaveTo:x,...d}=e,w=W.useRef(null),h=qo(w,t),S=(r=d.unmount)==null||r?yn.Unmount:yn.Hidden,{show:E,appear:R,initial:O}=fk(),[C,U]=W.useState(E?"visible":"hidden"),M=dk(),{register:D,unregister:q}=M;W.useEffect(()=>D(w),[D,w]),W.useEffect(()=>{if(S===yn.Hidden&&w.current){if(E&&C!=="visible"){U("visible");return}return Pr(C,{hidden:()=>q(w),visible:()=>D(w)})}},[C,w,D,q,E,S]);let N=wi({base:hn(d.className),enter:hn(f),enterFrom:hn(m),enterTo:hn(y),entered:hn(p),leave:hn(g),leaveFrom:hn(v),leaveTo:hn(x)}),L=gk({beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c}),B=lf();W.useEffect(()=>{if(B&&C==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,C,B]);let Z=O&&!R,k=R&&E&&O,Q=!B||Z?"idle":E?"enter":"leave",J=JC(0),re=Et(ie=>Pr(ie,{enter:()=>{J.addFlag(Gr.Opening),L.current.beforeEnter()},leave:()=>{J.addFlag(Gr.Closing),L.current.beforeLeave()},idle:()=>{}})),ce=Et(ie=>Pr(ie,{enter:()=>{J.removeFlag(Gr.Opening),L.current.afterEnter()},leave:()=>{J.removeFlag(Gr.Closing),L.current.afterLeave()},idle:()=>{}})),G=Sy(()=>{U("hidden"),q(w)},M),te=W.useRef(!1);lk({immediate:k,container:w,classes:N,direction:Q,onStart:wi(ie=>{te.current=!0,G.onStart(w,ie,re)}),onStop:wi(ie=>{te.current=!1,G.onStop(w,ie,ce),ie==="leave"&&!qa(G)&&(U("hidden"),q(w))})});let ne=d,ue={ref:h};return k?ne={...ne,className:_a(d.className,...N.current.enter,...N.current.enterFrom)}:te.current&&(ne.className=_a(d.className,(i=w.current)==null?void 0:i.className),ne.className===""&&delete ne.className),W.createElement(Ha.Provider,{value:G},W.createElement(NC,{value:Pr(C,{visible:Gr.Open,hidden:Gr.Closed})|J.flags},Kn({ourProps:ue,theirProps:ne,defaultTag:mk,features:Ey,visible:C==="visible",name:"Transition.Child"})))}function yk(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,l=W.useRef(null),c=qo(l,t);lf();let f=vy();if(r===void 0&&f!==null&&(r=(f&Gr.Open)===Gr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,y]=W.useState(r?"visible":"hidden"),p=Sy(()=>{y("hidden")}),[g,v]=W.useState(!0),x=W.useRef([r]);Ir(()=>{g!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),v(!1))},[x,r]);let d=W.useMemo(()=>({show:r,appear:i,initial:g}),[r,i,g]);W.useEffect(()=>{if(r)y("visible");else if(!qa(p))y("hidden");else{let E=l.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&y("hidden")}},[r,p]);let w={unmount:s},h=Et(()=>{var E;g&&v(!1),(E=e.beforeEnter)==null||E.call(e)}),S=Et(()=>{var E;g&&v(!1),(E=e.beforeLeave)==null||E.call(e)});return W.createElement(Ha.Provider,{value:p},W.createElement(Ba.Provider,{value:d},Kn({ourProps:{...w,as:W.Fragment,children:W.createElement(_y,{ref:c,...w,...a,beforeEnter:h,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:Ey,visible:m==="visible",name:"Transition"})))}function bk(e,t){let r=W.useContext(Ba)!==null,i=vy()!==null;return W.createElement(W.Fragment,null,!r&&i?W.createElement(_c,{ref:t,...e}):W.createElement(_y,{ref:t,...e}))}let _c=Vn(yk),_y=Vn(vk),wk=Vn(bk),Oa=Object.assign(_c,{Child:wk,Root:_c});const Ql={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"}},Oy=W.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto",...s},a)=>{const l=c=>{e(c)};return F.jsx("div",{className:He("flex items-center",i),children:F.jsx(ok,{as:"span",ref:a,checked:t,onChange:l,onKeyDown:c=>{c.key==="Enter"&&l(!t)},...s,className:`${t?"bg-primary-dark":"bg-grey-200"}
89
- relative inline-flex shrink-0 ${Ql[r].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:F.jsx("span",{"aria-hidden":"true",className:`${t?Ql[r].translate:"translate-x-0"}
90
- pointer-events-none inline-block ${Ql[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function hf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xn=hf();function Ay(e){Xn=e}var Ro={exec:()=>null};function ke(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(Rt.caret,"$1"),r=r.replace(s,l),i},getRegex:()=>new RegExp(r,t)};return i}var xk=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Rt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Sk=/^(?:[ \t]*(?:\n|$))+/,Ek=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_k=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Zo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ok=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gf=/(?:[*+-]|\d{1,9}[.)])/,Ty=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ry=ke(Ty).replace(/bull/g,gf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ak=ke(Ty).replace(/bull/g,gf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),mf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Tk=/^[^\n]+/,vf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Rk=ke(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pk=ke(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gf).getRegex(),Za="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ck=ke("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",yf).replace("tag",Za).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Py=ke(mf).replace("hr",Zo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Za).getRegex(),kk=ke(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Py).getRegex(),bf={blockquote:kk,code:Ek,def:Rk,fences:_k,heading:Ok,hr:Zo,html:Ck,lheading:Ry,list:Pk,newline:Sk,paragraph:Py,table:Ro,text:Tk},gm=ke("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Zo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Za).getRegex(),$k={...bf,lheading:Ak,table:gm,paragraph:ke(mf).replace("hr",Zo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",gm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Za).getRegex()},Ik={...bf,html:ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ro,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ke(mf).replace("hr",Zo).replace("heading",` *#{1,6} *[^
91
- ]`).replace("lheading",Ry).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Lk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cy=/^( {2,}|\\)\n(?!\s*$)/,Fk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ga=/[\p{P}\p{S}]/u,wf=/[\s\p{P}\p{S}]/u,ky=/[^\s\p{P}\p{S}]/u,Dk=ke(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,wf).getRegex(),$y=/(?!~)[\p{P}\p{S}]/u,Nk=/(?!~)[\s\p{P}\p{S}]/u,jk=/(?:[^\s\p{P}\p{S}]|~)/u,zk=ke(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",xk?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Iy=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Wk=ke(Iy,"u").replace(/punct/g,Ga).getRegex(),Uk=ke(Iy,"u").replace(/punct/g,$y).getRegex(),Ly="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Bk=ke(Ly,"gu").replace(/notPunctSpace/g,ky).replace(/punctSpace/g,wf).replace(/punct/g,Ga).getRegex(),Hk=ke(Ly,"gu").replace(/notPunctSpace/g,jk).replace(/punctSpace/g,Nk).replace(/punct/g,$y).getRegex(),qk=ke("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ky).replace(/punctSpace/g,wf).replace(/punct/g,Ga).getRegex(),Zk=ke(/\\(punct)/,"gu").replace(/punct/g,Ga).getRegex(),Gk=ke(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[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])?)+(?![-_])/).getRegex(),Kk=ke(yf).replace("(?:-->|$)","-->").getRegex(),Vk=ke("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Kk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Aa=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Xk=ke(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Aa).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),My=ke(/^!?\[(label)\]\[(ref)\]/).replace("label",Aa).replace("ref",vf).getRegex(),Fy=ke(/^!?\[(ref)\](?:\[\])?/).replace("ref",vf).getRegex(),Yk=ke("reflink|nolink(?!\\()","g").replace("reflink",My).replace("nolink",Fy).getRegex(),mm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,xf={_backpedal:Ro,anyPunctuation:Zk,autolink:Gk,blockSkip:zk,br:Cy,code:Mk,del:Ro,emStrongLDelim:Wk,emStrongRDelimAst:Bk,emStrongRDelimUnd:qk,escape:Lk,link:Xk,nolink:Fy,punctuation:Dk,reflink:My,reflinkSearch:Yk,tag:Vk,text:Fk,url:Ro},Jk={...xf,link:ke(/^!?\[(label)\]\((.*?)\)/).replace("label",Aa).getRegex(),reflink:ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Aa).getRegex()},Oc={...xf,emStrongRDelimAst:Hk,emStrongLDelim:Uk,url:ke(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",mm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ke(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",mm).getRegex()},Qk={...Oc,br:ke(Cy).replace("{2,}","*").getRegex(),text:ke(Oc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ra={normal:bf,gfm:$k,pedantic:Ik},ho={normal:xf,gfm:Oc,breaks:Qk,pedantic:Jk},e$={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vm=e=>e$[e];function _r(e,t){if(t){if(Rt.escapeTest.test(e))return e.replace(Rt.escapeReplace,vm)}else if(Rt.escapeTestNoEncode.test(e))return e.replace(Rt.escapeReplaceNoEncode,vm);return e}function ym(e){try{e=encodeURI(e).replace(Rt.percentDecode,"%")}catch{return null}return e}function bm(e,t){var a;let r=e.replace(Rt.findPipe,(l,c,f)=>{let m=!1,y=c;for(;--y>=0&&f[y]==="\\";)m=!m;return m?"|":" |"}),i=r.split(Rt.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(Rt.slashPipe,"|");return i}function go(e,t,r){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function t$(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function wm(e,t,r,i,s){let a=t.href,l=t.title||null,c=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:l,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function r$(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
92
- `).map(a=>{let l=a.match(r.other.beginningSpace);if(l===null)return a;let[c]=l;return c.length>=s.length?a.slice(s.length):a}).join(`
93
- `)}var Ta=class{constructor(t){ye(this,"options");ye(this,"rules");ye(this,"lexer");this.options=t||Xn}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:go(i,`
94
- `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=r$(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let s=go(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:go(r[0],`
88
+ `));let g=y.props,v=typeof(g==null?void 0:g.className)=="function"?(...d)=>Ea(g==null?void 0:g.className(...d),f.className):Ea(g==null?void 0:g.className,f.className),x=v?{className:v}:{};return W.cloneElement(y,Object.assign({},gy(y.props,xc(Vl(f,["ref"]))),p,m,{ref:s(y.ref,m.ref)},x))}return W.createElement(a,Object.assign({},Vl(f,["ref"]),a!==W.Fragment&&m,a!==W.Fragment&&p),y)}function DC(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function gy(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let s in i)s.startsWith("on")&&typeof i[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(i[s])):t[s]=i[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](s,...a){let u=r[i];for(let c of u){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;c(s,...a)}}});return t}function Vn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function xc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Vl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let NC="div";var my=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(my||{});function jC(e,t){var r;let{features:i=1,...s}=e,a={ref:t,"aria-hidden":(i&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(i&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",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Kn({ourProps:a,theirProps:s,slot:{},defaultTag:NC,name:"Hidden"})}let zC=Vn(jC),cf=W.createContext(null);cf.displayName="OpenClosedContext";var Kr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Kr||{});function vy(){return W.useContext(cf)}function WC({value:e,children:t}){return W.createElement(cf.Provider,{value:e},t)}function UC(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&BC(r)?!1:i}function BC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function HC(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let s of i.elements)if(s!==e&&(s.tagName==="INPUT"&&s.type==="submit"||s.tagName==="BUTTON"&&s.type==="submit"||s.nodeName==="INPUT"&&s.type==="image")){s.click();return}(r=i.requestSubmit)==null||r.call(i)}}var Sc=(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))(Sc||{});function ff(){let e=W.useRef(!1);return Lr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let yy=W.createContext(null);function by(){let e=W.useContext(yy);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,by),t}return e}function qC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=Et(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(yy.Provider,{value:s},r.children)},[t])]}let ZC="p";function GC(e,t){let r=lf(),{id:i=`headlessui-description-${r}`,...s}=e,a=by(),u=qo(t);Lr(()=>a.register(i),[i,a.register]);let c={ref:u,...a.props,id:i};return Kn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:ZC,name:a.name||"Description"})}let KC=Vn(GC),VC=Object.assign(KC,{}),wy=W.createContext(null);function xy(){let e=W.useContext(wy);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,xy),t}return e}function XC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=Et(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(wy.Provider,{value:s},r.children)},[t])]}let YC="label";function JC(e,t){let r=lf(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,u=xy(),c=qo(t);Lr(()=>u.register(i),[i,u.register]);let f={ref:c,...u.props,id:i};return s&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in a&&delete a.onClick),Kn({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:YC,name:u.name||"Label"})}let QC=Vn(JC),ek=Object.assign(QC,{});function tk(e=0){let[t,r]=W.useState(e),i=ff(),s=W.useCallback(f=>{i.current&&r(m=>m|f)},[t,i]),a=W.useCallback(f=>!!(t&f),[t]),u=W.useCallback(f=>{i.current&&r(m=>m&~f)},[r,i]),c=W.useCallback(f=>{i.current&&r(m=>m^f)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:u,toggleFlag:c}}let df=W.createContext(null);df.displayName="GroupContext";let rk=W.Fragment;function nk(e){var t;let[r,i]=W.useState(null),[s,a]=XC(),[u,c]=qC(),f=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:u}),[r,i,s,u]),m={},y=e;return W.createElement(c,{name:"Switch.Description"},W.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=f.switch)==null?void 0:t.id,onClick(p){r&&(p.currentTarget.tagName==="LABEL"&&p.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},W.createElement(df.Provider,{value:f},Kn({ourProps:m,theirProps:y,defaultTag:rk,name:"Switch.Group"}))))}let ik="button";function ok(e,t){var r;let i=lf(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:u=!1,onChange:c,disabled:f=!1,name:m,value:y,form:p,...g}=e,v=W.useContext(df),x=W.useRef(null),d=qo(x,t,v===null?null:v.setSwitch),[w,h]=$C(a,c,u),S=Et(()=>h==null?void 0:h(!w)),E=Et(D=>{if(UC(D.currentTarget))return D.preventDefault();D.preventDefault(),S()}),R=Et(D=>{D.key===Sc.Space?(D.preventDefault(),S()):D.key===Sc.Enter&&HC(D.currentTarget)}),O=Et(D=>D.preventDefault()),C=W.useMemo(()=>({checked:w}),[w]),U={id:s,ref:d,role:"switch",type:MC(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":v==null?void 0:v.labelledby,"aria-describedby":v==null?void 0:v.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:O},M=af();return W.useEffect(()=>{var D;let q=(D=x.current)==null?void 0:D.closest("form");q&&u!==void 0&&M.addEventListener(q,"reset",()=>{h(u)})},[x,h]),W.createElement(W.Fragment,null,m!=null&&w&&W.createElement(zC,{features:my.Hidden,...xc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:p,checked:w,name:m,value:y})}),Kn({ourProps:U,theirProps:g,slot:C,defaultTag:ik,name:"Switch"}))}let sk=Vn(ok),ak=nk,uk=Object.assign(sk,{Group:ak,Label:ek,Description:VC});function lk(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Xl(e,...t){e&&t.length>0&&e.classList.add(...t)}function Yl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ck(e,t){let r=Ho();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[a,u]=[i,s].map(f=>{let[m=0]=f.split(",").filter(Boolean).map(y=>y.includes("ms")?parseFloat(y):parseFloat(y)*1e3).sort((y,p)=>p-y);return m}),c=a+u;if(c!==0){r.group(m=>{m.setTimeout(()=>{t(),m.dispose()},c),m.addEventListener(e,"transitionrun",y=>{y.target===y.currentTarget&&m.dispose()})});let f=r.addEventListener(e,"transitionend",m=>{m.target===m.currentTarget&&(t(),f())})}else t();return r.add(()=>t()),r.dispose}function fk(e,t,r,i){let s=r?"enter":"leave",a=Ho(),u=i!==void 0?lk(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Cr(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Cr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),m=Cr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Yl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Xl(e,...t.base,...c,...m),a.nextFrame(()=>{Yl(e,...t.base,...c,...m),Xl(e,...t.base,...c,...f),ck(e,()=>(Yl(e,...t.base,...c),Xl(e,...t.base,...t.entered),u()))}),a.dispose}function dk({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let u=ff(),c=af(),f=wi(r);Lr(()=>{e&&(f.current="enter")},[e]),Lr(()=>{let m=Ho();c.add(m.dispose);let y=t.current;if(y&&f.current!=="idle"&&u.current)return m.dispose(),s.current(f.current),m.add(fk(y,i.current,f.current==="enter",()=>{m.dispose(),a.current(f.current)})),m.dispose},[r])}function gn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ua=W.createContext(null);Ua.displayName="TransitionContext";var pk=(e=>(e.Visible="visible",e.Hidden="hidden",e))(pk||{});function hk(){let e=W.useContext(Ua);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function gk(){let e=W.useContext(Ba);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ba=W.createContext(null);Ba.displayName="NestingContext";function Ha(e){return"children"in e?Ha(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Sy(e,t){let r=wi(e),i=W.useRef([]),s=ff(),a=af(),u=Et((v,x=bn.Hidden)=>{let d=i.current.findIndex(({el:w})=>w===v);d!==-1&&(Cr(x,{[bn.Unmount](){i.current.splice(d,1)},[bn.Hidden](){i.current[d].state="hidden"}}),a.microTask(()=>{var w;!Ha(i)&&s.current&&((w=r.current)==null||w.call(r))}))}),c=Et(v=>{let x=i.current.find(({el:d})=>d===v);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:v,state:"visible"}),()=>u(v,bn.Unmount)}),f=W.useRef([]),m=W.useRef(Promise.resolve()),y=W.useRef({enter:[],leave:[],idle:[]}),p=Et((v,x,d)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([w])=>w!==v)),t==null||t.chains.current[x].push([v,new Promise(w=>{f.current.push(w)})]),t==null||t.chains.current[x].push([v,new Promise(w=>{Promise.all(y.current[x].map(([h,S])=>S)).then(()=>w())})]),x==="enter"?m.current=m.current.then(()=>t==null?void 0:t.wait.current).then(()=>d(x)):d(x)}),g=Et((v,x,d)=>{Promise.all(y.current[x].splice(0).map(([w,h])=>h)).then(()=>{var w;(w=f.current.shift())==null||w()}).then(()=>d(x))});return W.useMemo(()=>({children:i,register:c,unregister:u,onStart:p,onStop:g,wait:m,chains:y}),[c,u,i,p,g,y,m])}function mk(){}let vk=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function pm(e){var t;let r={};for(let i of vk)r[i]=(t=e[i])!=null?t:mk;return r}function yk(e){let t=W.useRef(pm(e));return W.useEffect(()=>{t.current=pm(e)},[e]),t}let bk="div",Ey=hy.RenderStrategy;function wk(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:c,enter:f,enterFrom:m,enterTo:y,entered:p,leave:g,leaveFrom:v,leaveTo:x,...d}=e,w=W.useRef(null),h=qo(w,t),S=(r=d.unmount)==null||r?bn.Unmount:bn.Hidden,{show:E,appear:R,initial:O}=hk(),[C,U]=W.useState(E?"visible":"hidden"),M=gk(),{register:D,unregister:q}=M;W.useEffect(()=>D(w),[D,w]),W.useEffect(()=>{if(S===bn.Hidden&&w.current){if(E&&C!=="visible"){U("visible");return}return Cr(C,{hidden:()=>q(w),visible:()=>D(w)})}},[C,w,D,q,E,S]);let N=wi({base:gn(d.className),enter:gn(f),enterFrom:gn(m),enterTo:gn(y),entered:gn(p),leave:gn(g),leaveFrom:gn(v),leaveTo:gn(x)}),L=yk({beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:c}),B=uf();W.useEffect(()=>{if(B&&C==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,C,B]);let Z=O&&!R,k=R&&E&&O,Q=!B||Z?"idle":E?"enter":"leave",J=tk(0),re=Et(ie=>Cr(ie,{enter:()=>{J.addFlag(Kr.Opening),L.current.beforeEnter()},leave:()=>{J.addFlag(Kr.Closing),L.current.beforeLeave()},idle:()=>{}})),ce=Et(ie=>Cr(ie,{enter:()=>{J.removeFlag(Kr.Opening),L.current.afterEnter()},leave:()=>{J.removeFlag(Kr.Closing),L.current.afterLeave()},idle:()=>{}})),G=Sy(()=>{U("hidden"),q(w)},M),te=W.useRef(!1);dk({immediate:k,container:w,classes:N,direction:Q,onStart:wi(ie=>{te.current=!0,G.onStart(w,ie,re)}),onStop:wi(ie=>{te.current=!1,G.onStop(w,ie,ce),ie==="leave"&&!Ha(G)&&(U("hidden"),q(w))})});let ne=d,ue={ref:h};return k?ne={...ne,className:Ea(d.className,...N.current.enter,...N.current.enterFrom)}:te.current&&(ne.className=Ea(d.className,(i=w.current)==null?void 0:i.className),ne.className===""&&delete ne.className),W.createElement(Ba.Provider,{value:G},W.createElement(WC,{value:Cr(C,{visible:Kr.Open,hidden:Kr.Closed})|J.flags},Kn({ourProps:ue,theirProps:ne,defaultTag:bk,features:Ey,visible:C==="visible",name:"Transition.Child"})))}function xk(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,u=W.useRef(null),c=qo(u,t);uf();let f=vy();if(r===void 0&&f!==null&&(r=(f&Kr.Open)===Kr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,y]=W.useState(r?"visible":"hidden"),p=Sy(()=>{y("hidden")}),[g,v]=W.useState(!0),x=W.useRef([r]);Lr(()=>{g!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),v(!1))},[x,r]);let d=W.useMemo(()=>({show:r,appear:i,initial:g}),[r,i,g]);W.useEffect(()=>{if(r)y("visible");else if(!Ha(p))y("hidden");else{let E=u.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&y("hidden")}},[r,p]);let w={unmount:s},h=Et(()=>{var E;g&&v(!1),(E=e.beforeEnter)==null||E.call(e)}),S=Et(()=>{var E;g&&v(!1),(E=e.beforeLeave)==null||E.call(e)});return W.createElement(Ba.Provider,{value:p},W.createElement(Ua.Provider,{value:d},Kn({ourProps:{...w,as:W.Fragment,children:W.createElement(_y,{ref:c,...w,...a,beforeEnter:h,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:Ey,visible:m==="visible",name:"Transition"})))}function Sk(e,t){let r=W.useContext(Ua)!==null,i=vy()!==null;return W.createElement(W.Fragment,null,!r&&i?W.createElement(Ec,{ref:t,...e}):W.createElement(_y,{ref:t,...e}))}let Ec=Vn(xk),_y=Vn(wk),Ek=Vn(Sk),_a=Object.assign(Ec,{Child:Ek,Root:Ec});const Jl={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"}},Oy=W.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto",...s},a)=>{const u=c=>{e(c)};return F.jsx("div",{className:He("flex items-center",i),children:F.jsx(uk,{as:"span",ref:a,checked:t,onChange:u,onKeyDown:c=>{c.key==="Enter"&&u(!t)},...s,className:`${t?"bg-primary-dark":"bg-grey-200"}
89
+ relative inline-flex shrink-0 ${Jl[r].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:F.jsx("span",{"aria-hidden":"true",className:`${t?Jl[r].translate:"translate-x-0"}
90
+ pointer-events-none inline-block ${Jl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function pf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xn=pf();function Ay(e){Xn=e}var Ro={exec:()=>null};function ke(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,a)=>{let u=typeof a=="string"?a:a.source;return u=u.replace(Rt.caret,"$1"),r=r.replace(s,u),i},getRegex:()=>new RegExp(r,t)};return i}var _k=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Rt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Ok=/^(?:[ \t]*(?:\n|$))+/,Ak=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Tk=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Zo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Rk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hf=/(?:[*+-]|\d{1,9}[.)])/,Ty=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ry=ke(Ty).replace(/bull/g,hf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Pk=ke(Ty).replace(/bull/g,hf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),gf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ck=/^[^\n]+/,mf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kk=ke(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",mf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$k=ke(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,hf).getRegex(),qa="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ik=ke("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vf).replace("tag",qa).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Py=ke(gf).replace("hr",Zo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qa).getRegex(),Lk=ke(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Py).getRegex(),yf={blockquote:Lk,code:Ak,def:kk,fences:Tk,heading:Rk,hr:Zo,html:Ik,lheading:Ry,list:$k,newline:Ok,paragraph:Py,table:Ro,text:Ck},hm=ke("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Zo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qa).getRegex(),Mk={...yf,lheading:Pk,table:hm,paragraph:ke(gf).replace("hr",Zo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qa).getRegex()},Fk={...yf,html:ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ro,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ke(gf).replace("hr",Zo).replace("heading",` *#{1,6} *[^
91
+ ]`).replace("lheading",Ry).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Dk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Nk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cy=/^( {2,}|\\)\n(?!\s*$)/,jk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Za=/[\p{P}\p{S}]/u,bf=/[\s\p{P}\p{S}]/u,ky=/[^\s\p{P}\p{S}]/u,zk=ke(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,bf).getRegex(),$y=/(?!~)[\p{P}\p{S}]/u,Wk=/(?!~)[\s\p{P}\p{S}]/u,Uk=/(?:[^\s\p{P}\p{S}]|~)/u,Bk=ke(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",_k?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Iy=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Hk=ke(Iy,"u").replace(/punct/g,Za).getRegex(),qk=ke(Iy,"u").replace(/punct/g,$y).getRegex(),Ly="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Zk=ke(Ly,"gu").replace(/notPunctSpace/g,ky).replace(/punctSpace/g,bf).replace(/punct/g,Za).getRegex(),Gk=ke(Ly,"gu").replace(/notPunctSpace/g,Uk).replace(/punctSpace/g,Wk).replace(/punct/g,$y).getRegex(),Kk=ke("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ky).replace(/punctSpace/g,bf).replace(/punct/g,Za).getRegex(),Vk=ke(/\\(punct)/,"gu").replace(/punct/g,Za).getRegex(),Xk=ke(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[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])?)+(?![-_])/).getRegex(),Yk=ke(vf).replace("(?:-->|$)","-->").getRegex(),Jk=ke("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Yk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Oa=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Qk=ke(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Oa).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),My=ke(/^!?\[(label)\]\[(ref)\]/).replace("label",Oa).replace("ref",mf).getRegex(),Fy=ke(/^!?\[(ref)\](?:\[\])?/).replace("ref",mf).getRegex(),e$=ke("reflink|nolink(?!\\()","g").replace("reflink",My).replace("nolink",Fy).getRegex(),gm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,wf={_backpedal:Ro,anyPunctuation:Vk,autolink:Xk,blockSkip:Bk,br:Cy,code:Nk,del:Ro,emStrongLDelim:Hk,emStrongRDelimAst:Zk,emStrongRDelimUnd:Kk,escape:Dk,link:Qk,nolink:Fy,punctuation:zk,reflink:My,reflinkSearch:e$,tag:Jk,text:jk,url:Ro},t$={...wf,link:ke(/^!?\[(label)\]\((.*?)\)/).replace("label",Oa).getRegex(),reflink:ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Oa).getRegex()},_c={...wf,emStrongRDelimAst:Gk,emStrongLDelim:qk,url:ke(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",gm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ke(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",gm).getRegex()},r$={..._c,br:ke(Cy).replace("{2,}","*").getRegex(),text:ke(_c.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ra={normal:yf,gfm:Mk,pedantic:Fk},ho={normal:wf,gfm:_c,breaks:r$,pedantic:t$},n$={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},mm=e=>n$[e];function _r(e,t){if(t){if(Rt.escapeTest.test(e))return e.replace(Rt.escapeReplace,mm)}else if(Rt.escapeTestNoEncode.test(e))return e.replace(Rt.escapeReplaceNoEncode,mm);return e}function vm(e){try{e=encodeURI(e).replace(Rt.percentDecode,"%")}catch{return null}return e}function ym(e,t){var a;let r=e.replace(Rt.findPipe,(u,c,f)=>{let m=!1,y=c;for(;--y>=0&&f[y]==="\\";)m=!m;return m?"|":" |"}),i=r.split(Rt.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(Rt.slashPipe,"|");return i}function go(e,t,r){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function i$(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function bm(e,t,r,i,s){let a=t.href,u=t.title||null,c=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:u,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function o$(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
92
+ `).map(a=>{let u=a.match(r.other.beginningSpace);if(u===null)return a;let[c]=u;return c.length>=s.length?a.slice(s.length):a}).join(`
93
+ `)}var Aa=class{constructor(t){ye(this,"options");ye(this,"rules");ye(this,"lexer");this.options=t||Xn}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:go(i,`
94
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=o$(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let s=go(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:go(r[0],`
95
95
  `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=go(r[0],`
96
96
  `).split(`
97
- `),s="",a="",l=[];for(;i.length>0;){let c=!1,f=[],m;for(m=0;m<i.length;m++)if(this.rules.other.blockquoteStart.test(i[m]))f.push(i[m]),c=!0;else if(!c)f.push(i[m]);else break;i=i.slice(m);let y=f.join(`
97
+ `),s="",a="",u=[];for(;i.length>0;){let c=!1,f=[],m;for(m=0;m<i.length;m++)if(this.rules.other.blockquoteStart.test(i[m]))f.push(i[m]),c=!0;else if(!c)f.push(i[m]);else break;i=i.slice(m);let y=f.join(`
98
98
  `),p=y.replace(this.rules.other.blockquoteSetextReplace,`
99
99
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
100
100
  ${y}`:y,a=a?`${a}
101
- ${p}`:p;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,l,!0),this.lexer.state.top=g,i.length===0)break;let v=l.at(-1);if((v==null?void 0:v.type)==="code")break;if((v==null?void 0:v.type)==="blockquote"){let x=v,d=x.raw+`
101
+ ${p}`:p;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,u,!0),this.lexer.state.top=g,i.length===0)break;let v=u.at(-1);if((v==null?void 0:v.type)==="code")break;if((v==null?void 0:v.type)==="blockquote"){let x=v,d=x.raw+`
102
102
  `+i.join(`
103
- `),w=this.blockquote(d);l[l.length-1]=w,s=s.substring(0,s.length-x.raw.length)+w.raw,a=a.substring(0,a.length-x.text.length)+w.text;break}else if((v==null?void 0:v.type)==="list"){let x=v,d=x.raw+`
103
+ `),w=this.blockquote(d);u[u.length-1]=w,s=s.substring(0,s.length-x.raw.length)+w.raw,a=a.substring(0,a.length-x.text.length)+w.text;break}else if((v==null?void 0:v.type)==="list"){let x=v,d=x.raw+`
104
104
  `+i.join(`
105
- `),w=this.list(d);l[l.length-1]=w,s=s.substring(0,s.length-v.raw.length)+w.raw,a=a.substring(0,a.length-x.raw.length)+w.raw,i=d.substring(l.at(-1).raw.length).split(`
106
- `);continue}}return{type:"blockquote",raw:s,tokens:l,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,a={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let l=this.rules.other.listItemRegex(i),c=!1;for(;t;){let m=!1,y="",p="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;y=r[0],t=t.substring(y.length);let g=r[2].split(`
105
+ `),w=this.list(d);u[u.length-1]=w,s=s.substring(0,s.length-v.raw.length)+w.raw,a=a.substring(0,a.length-x.raw.length)+w.raw,i=d.substring(u.at(-1).raw.length).split(`
106
+ `);continue}}return{type:"blockquote",raw:s,tokens:u,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,a={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let u=this.rules.other.listItemRegex(i),c=!1;for(;t;){let m=!1,y="",p="";if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;y=r[0],t=t.substring(y.length);let g=r[2].split(`
107
107
  `,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),v=t.split(`
108
108
  `,1)[0],x=!g.trim(),d=0;if(this.options.pedantic?(d=2,p=g.trimStart()):x?d=r[1].length+1:(d=r[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,p=g.slice(d),d+=r[1].length),x&&this.rules.other.blankLine.test(v)&&(y+=v+`
109
109
  `,t=t.substring(v.length+1),m=!0),!m){let S=this.rules.other.nextBulletRegex(d),E=this.rules.other.hrRegex(d),R=this.rules.other.fencesBeginRegex(d),O=this.rules.other.headingBeginRegex(d),C=this.rules.other.htmlBeginRegex(d);for(;t;){let U=t.split(`
110
110
  `,1)[0],M;if(v=U,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),M=v):M=v.replace(this.rules.other.tabCharGlobal," "),R.test(v)||O.test(v)||C.test(v)||S.test(v)||E.test(v))break;if(M.search(this.rules.other.nonSpaceChar)>=d||!v.trim())p+=`
111
111
  `+M.slice(d);else{if(x||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(g)||O.test(g)||E.test(g))break;p+=`
112
112
  `+v}!x&&!v.trim()&&(x=!0),y+=U+`
113
- `,t=t.substring(U.length+1),g=M.slice(d)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(c=!0));let w=null,h;this.options.gfm&&(w=this.rules.other.listIsTask.exec(p),w&&(h=w[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:y,task:!!w,checked:h,loose:!1,text:p,tokens:[]}),a.raw+=y}let f=a.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let m=0;m<a.items.length;m++)if(this.lexer.state.top=!1,a.items[m].tokens=this.lexer.blockTokens(a.items[m].text,[]),!a.loose){let y=a.items[m].tokens.filter(g=>g.type==="space"),p=y.length>0&&y.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=p}if(a.loose)for(let m=0;m<a.items.length;m++)a.items[m].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:a}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=bm(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
114
- `):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?l.align.push("right"):this.rules.other.tableAlignCenter.test(f)?l.align.push("center"):this.rules.other.tableAlignLeft.test(f)?l.align.push("left"):l.align.push(null);for(let f=0;f<i.length;f++)l.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:l.align[f]});for(let f of a)l.rows.push(bm(f,l.header.length).map((m,y)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:l.align[y]})));return l}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
115
- `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let l=go(i.slice(0,-1),"\\");if((i.length-l.length)%2===0)return}else{let l=t$(r[2],"()");if(l===-2)return;if(l>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let s=r[2],a="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],a=l[3])}else a=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),wm(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[s.toLowerCase()];if(!a){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return wm(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...s[0]].length-1,l,c,f=a,m=0,y=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,r=r.slice(-1*t.length+a);(s=y.exec(r))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(c=[...l].length,s[3]||s[4]){f+=c;continue}else if((s[5]||s[6])&&a%3&&!((a+c)%3)){m+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+m);let p=[...s[0]][0].length,g=t.slice(0,a+s.index+p+c);if(Math.min(a,c)%2){let x=g.slice(1,-1);return{type:"em",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}let v=g.slice(2,-2);return{type:"strong",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let s,a;if(r[2]==="@")s=r[0],a="mailto:"+s;else{let l;do l=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(l!==r[0]);s=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:s,href:a,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},hr=class Ac{constructor(t){ye(this,"tokens");ye(this,"options");ye(this,"state");ye(this,"tokenizer");ye(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Xn,this.options.tokenizer=this.options.tokenizer||new Ta,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Rt,block:ra.normal,inline:ho.normal};this.options.pedantic?(r.block=ra.pedantic,r.inline=ho.pedantic):this.options.gfm&&(r.block=ra.gfm,this.options.breaks?r.inline=ho.breaks:r.inline=ho.gfm),this.tokenizer.rules=r}static get rules(){return{block:ra,inline:ho}}static lex(t,r){return new Ac(r).lex(t)}static lexInline(t,r){return new Ac(r).inlineTokens(t)}lex(t){t=t.replace(Rt.carriageReturn,`
116
- `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var s,a,l;for(this.options.pedantic&&(t=t.replace(Rt.tabCharGlobal," ").replace(Rt.spaceLine,""));t;){let c;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(m=>(c=m.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let m=r.at(-1);c.raw.length===1&&m!==void 0?m.raw+=`
113
+ `,t=t.substring(U.length+1),g=M.slice(d)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(c=!0));let w=null,h;this.options.gfm&&(w=this.rules.other.listIsTask.exec(p),w&&(h=w[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:y,task:!!w,checked:h,loose:!1,text:p,tokens:[]}),a.raw+=y}let f=a.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let m=0;m<a.items.length;m++)if(this.lexer.state.top=!1,a.items[m].tokens=this.lexer.blockTokens(a.items[m].text,[]),!a.loose){let y=a.items[m].tokens.filter(g=>g.type==="space"),p=y.length>0&&y.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=p}if(a.loose)for(let m=0;m<a.items.length;m++)a.items[m].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:a}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=ym(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
114
+ `):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?u.align.push("right"):this.rules.other.tableAlignCenter.test(f)?u.align.push("center"):this.rules.other.tableAlignLeft.test(f)?u.align.push("left"):u.align.push(null);for(let f=0;f<i.length;f++)u.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:u.align[f]});for(let f of a)u.rows.push(ym(f,u.header.length).map((m,y)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:u.align[y]})));return u}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
115
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let u=go(i.slice(0,-1),"\\");if((i.length-u.length)%2===0)return}else{let u=i$(r[2],"()");if(u===-2)return;if(u>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let s=r[2],a="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(s);u&&(s=u[1],a=u[3])}else a=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),bm(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[s.toLowerCase()];if(!a){let u=i[0].charAt(0);return{type:"text",raw:u,text:u}}return bm(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...s[0]].length-1,u,c,f=a,m=0,y=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,r=r.slice(-1*t.length+a);(s=y.exec(r))!=null;){if(u=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!u)continue;if(c=[...u].length,s[3]||s[4]){f+=c;continue}else if((s[5]||s[6])&&a%3&&!((a+c)%3)){m+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+m);let p=[...s[0]][0].length,g=t.slice(0,a+s.index+p+c);if(Math.min(a,c)%2){let x=g.slice(1,-1);return{type:"em",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}let v=g.slice(2,-2);return{type:"strong",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let s,a;if(r[2]==="@")s=r[0],a="mailto:"+s;else{let u;do u=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(u!==r[0]);s=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:s,href:a,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},hr=class Oc{constructor(t){ye(this,"tokens");ye(this,"options");ye(this,"state");ye(this,"tokenizer");ye(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Xn,this.options.tokenizer=this.options.tokenizer||new Aa,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Rt,block:ra.normal,inline:ho.normal};this.options.pedantic?(r.block=ra.pedantic,r.inline=ho.pedantic):this.options.gfm&&(r.block=ra.gfm,this.options.breaks?r.inline=ho.breaks:r.inline=ho.gfm),this.tokenizer.rules=r}static get rules(){return{block:ra,inline:ho}}static lex(t,r){return new Oc(r).lex(t)}static lexInline(t,r){return new Oc(r).inlineTokens(t)}lex(t){t=t.replace(Rt.carriageReturn,`
116
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var s,a,u;for(this.options.pedantic&&(t=t.replace(Rt.tabCharGlobal," ").replace(Rt.spaceLine,""));t;){let c;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(m=>(c=m.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let m=r.at(-1);c.raw.length===1&&m!==void 0?m.raw+=`
117
117
  `:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
118
118
  `)?"":`
119
119
  `)+c.raw,m.text+=`
120
120
  `+c.text,this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
121
121
  `)?"":`
122
122
  `)+c.raw,m.text+=`
123
- `+c.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let f=t;if((l=this.options.extensions)!=null&&l.startBlock){let m=1/0,y=t.slice(1),p;this.options.extensions.startBlock.forEach(g=>{p=g.call({lexer:this},y),typeof p=="number"&&p>=0&&(m=Math.min(m,p))}),m<1/0&&m>=0&&(f=t.substring(0,m+1))}if(this.state.top&&(c=this.tokenizer.paragraph(f))){let m=r.at(-1);i&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
123
+ `+c.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let m=1/0,y=t.slice(1),p;this.options.extensions.startBlock.forEach(g=>{p=g.call({lexer:this},y),typeof p=="number"&&p>=0&&(m=Math.min(m,p))}),m<1/0&&m>=0&&(f=t.substring(0,m+1))}if(this.state.top&&(c=this.tokenizer.paragraph(f))){let m=r.at(-1);i&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
124
124
  `)?"":`
125
125
  `)+c.raw,m.text+=`
126
126
  `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c),i=f.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
127
127
  `)?"":`
128
128
  `)+c.raw,m.text+=`
129
- `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var f,m,y,p,g;let i=t,s=null;if(this.tokens.links){let v=Object.keys(this.tokens.links);if(v.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)v.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=s[2]?s[2].length:0,i=i.slice(0,s.index+a)+"["+"a".repeat(s[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((m=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:m.call({lexer:this},i))??i;let l=!1,c="";for(;t;){l||(c=""),l=!1;let v;if((p=(y=this.options.extensions)==null?void 0:y.inline)!=null&&p.some(d=>(v=d.call({lexer:this},t,r))?(t=t.substring(v.raw.length),r.push(v),!0):!1))continue;if(v=this.tokenizer.escape(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.tag(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.link(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(v.raw.length);let d=r.at(-1);v.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=v.raw,d.text+=v.text):r.push(v);continue}if(v=this.tokenizer.emStrong(t,i,c)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.codespan(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.br(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.del(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.autolink(t)){t=t.substring(v.raw.length),r.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(t))){t=t.substring(v.raw.length),r.push(v);continue}let x=t;if((g=this.options.extensions)!=null&&g.startInline){let d=1/0,w=t.slice(1),h;this.options.extensions.startInline.forEach(S=>{h=S.call({lexer:this},w),typeof h=="number"&&h>=0&&(d=Math.min(d,h))}),d<1/0&&d>=0&&(x=t.substring(0,d+1))}if(v=this.tokenizer.inlineText(x)){t=t.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(c=v.raw.slice(-1)),l=!0;let d=r.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=v.raw,d.text+=v.text):r.push(v);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return r}},Ra=class{constructor(t){ye(this,"options");ye(this,"parser");this.options=t||Xn}space(t){return""}code({text:t,lang:r,escaped:i}){var l;let s=(l=(r||"").match(Rt.notSpaceStart))==null?void 0:l[0],a=t.replace(Rt.endingNewline,"")+`
129
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var f,m,y,p,g;let i=t,s=null;if(this.tokens.links){let v=Object.keys(this.tokens.links);if(v.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)v.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=s[2]?s[2].length:0,i=i.slice(0,s.index+a)+"["+"a".repeat(s[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((m=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:m.call({lexer:this},i))??i;let u=!1,c="";for(;t;){u||(c=""),u=!1;let v;if((p=(y=this.options.extensions)==null?void 0:y.inline)!=null&&p.some(d=>(v=d.call({lexer:this},t,r))?(t=t.substring(v.raw.length),r.push(v),!0):!1))continue;if(v=this.tokenizer.escape(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.tag(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.link(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(v.raw.length);let d=r.at(-1);v.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=v.raw,d.text+=v.text):r.push(v);continue}if(v=this.tokenizer.emStrong(t,i,c)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.codespan(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.br(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.del(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.autolink(t)){t=t.substring(v.raw.length),r.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(t))){t=t.substring(v.raw.length),r.push(v);continue}let x=t;if((g=this.options.extensions)!=null&&g.startInline){let d=1/0,w=t.slice(1),h;this.options.extensions.startInline.forEach(S=>{h=S.call({lexer:this},w),typeof h=="number"&&h>=0&&(d=Math.min(d,h))}),d<1/0&&d>=0&&(x=t.substring(0,d+1))}if(v=this.tokenizer.inlineText(x)){t=t.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(c=v.raw.slice(-1)),u=!0;let d=r.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=v.raw,d.text+=v.text):r.push(v);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return r}},Ta=class{constructor(t){ye(this,"options");ye(this,"parser");this.options=t||Xn}space(t){return""}code({text:t,lang:r,escaped:i}){var u;let s=(u=(r||"").match(Rt.notSpaceStart))==null?void 0:u[0],a=t.replace(Rt.endingNewline,"")+`
130
130
  `;return s?'<pre><code class="language-'+_r(s)+'">'+(i?a:_r(a,!0))+`</code></pre>
131
131
  `:"<pre><code>"+(i?a:_r(a,!0))+`</code></pre>
132
132
  `}blockquote({tokens:t}){return`<blockquote>
133
133
  ${this.parser.parse(t)}</blockquote>
134
134
  `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
135
135
  `}hr(t){return`<hr>
136
- `}list(t){let r=t.ordered,i=t.start,s="";for(let c=0;c<t.items.length;c++){let f=t.items[c];s+=this.listitem(f)}let a=r?"ol":"ul",l=r&&i!==1?' start="'+i+'"':"";return"<"+a+l+`>
136
+ `}list(t){let r=t.ordered,i=t.start,s="";for(let c=0;c<t.items.length;c++){let f=t.items[c];s+=this.listitem(f)}let a=r?"ol":"ul",u=r&&i!==1?' start="'+i+'"':"";return"<"+a+u+`>
137
137
  `+s+"</"+a+`>
138
138
  `}listitem(t){var i;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+_r(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
139
139
  `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
140
- `}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let s="";for(let a=0;a<t.rows.length;a++){let l=t.rows[a];i="";for(let c=0;c<l.length;c++)i+=this.tablecell(l[c]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
140
+ `}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let s="";for(let a=0;a<t.rows.length;a++){let u=t.rows[a];i="";for(let c=0;c<u.length;c++)i+=this.tablecell(u[c]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
141
141
  <thead>
142
142
  `+r+`</thead>
143
143
  `+s+`</table>
144
144
  `}tablerow({text:t}){return`<tr>
145
145
  ${t}</tr>
146
146
  `}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
147
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${_r(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let s=this.parser.parseInline(i),a=ym(t);if(a===null)return s;t=a;let l='<a href="'+t+'"';return r&&(l+=' title="'+_r(r)+'"'),l+=">"+s+"</a>",l}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let a=ym(t);if(a===null)return _r(i);t=a;let l=`<img src="${t}" alt="${i}"`;return r&&(l+=` title="${_r(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:_r(t.text)}},Sf=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},gr=class Tc{constructor(t){ye(this,"options");ye(this,"renderer");ye(this,"textRenderer");this.options=t||Xn,this.options.renderer=this.options.renderer||new Ra,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Sf}static parse(t,r){return new Tc(r).parse(t)}static parseInline(t,r){return new Tc(r).parseInline(t)}parse(t,r=!0){var s,a;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=c,y=this.options.extensions.renderers[m.type].call({parser:this},m);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){i+=y||"";continue}}let f=c;switch(f.type){case"space":{i+=this.renderer.space(f);continue}case"hr":{i+=this.renderer.hr(f);continue}case"heading":{i+=this.renderer.heading(f);continue}case"code":{i+=this.renderer.code(f);continue}case"table":{i+=this.renderer.table(f);continue}case"blockquote":{i+=this.renderer.blockquote(f);continue}case"list":{i+=this.renderer.list(f);continue}case"html":{i+=this.renderer.html(f);continue}case"def":{i+=this.renderer.def(f);continue}case"paragraph":{i+=this.renderer.paragraph(f);continue}case"text":{let m=f,y=this.renderer.text(m);for(;l+1<t.length&&t[l+1].type==="text";)m=t[++l],y+=`
148
- `+this.renderer.text(m);r?i+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):i+=y;continue}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}parseInline(t,r=this.renderer){var s,a;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=this.options.extensions.renderers[c.type].call({parser:this},c);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=m||"";continue}}let f=c;switch(f.type){case"escape":{i+=r.text(f);break}case"html":{i+=r.html(f);break}case"link":{i+=r.link(f);break}case"image":{i+=r.image(f);break}case"strong":{i+=r.strong(f);break}case"em":{i+=r.em(f);break}case"codespan":{i+=r.codespan(f);break}case"br":{i+=r.br(f);break}case"del":{i+=r.del(f);break}case"text":{i+=r.text(f);break}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}},aa,yo=(aa=class{constructor(t){ye(this,"options");ye(this,"block");this.options=t||Xn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?hr.lex:hr.lexInline}provideParser(){return this.block?gr.parse:gr.parseInline}},ye(aa,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ye(aa,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),aa),Dy=class{constructor(...t){ye(this,"defaults",hf());ye(this,"options",this.setOptions);ye(this,"parse",this.parseMarkdown(!0));ye(this,"parseInline",this.parseMarkdown(!1));ye(this,"Parser",gr);ye(this,"Renderer",Ra);ye(this,"TextRenderer",Sf);ye(this,"Lexer",hr);ye(this,"Tokenizer",Ta);ye(this,"Hooks",yo);this.use(...t)}walkTokens(t,r){var s,a;let i=[];for(let l of t)switch(i=i.concat(r.call(this,l)),l.type){case"table":{let c=l;for(let f of c.header)i=i.concat(this.walkTokens(f.tokens,r));for(let f of c.rows)for(let m of f)i=i.concat(this.walkTokens(m.tokens,r));break}case"list":{let c=l;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=l;(a=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&a[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let m=c[f].flat(1/0);i=i.concat(this.walkTokens(m,r))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let l=r.renderers[a.name];l?r.renderers[a.name]=function(...c){let f=a.renderer.apply(this,c);return f===!1&&(f=l.apply(this,c)),f}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[a.level];l?l.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),s.extensions=r),i.renderer){let a=this.defaults.renderer||new Ra(this.defaults);for(let l in i.renderer){if(!(l in a))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,f=i.renderer[c],m=a[c];a[c]=(...y)=>{let p=f.apply(a,y);return p===!1&&(p=m.apply(a,y)),p||""}}s.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Ta(this.defaults);for(let l in i.tokenizer){if(!(l in a))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,f=i.tokenizer[c],m=a[c];a[c]=(...y)=>{let p=f.apply(a,y);return p===!1&&(p=m.apply(a,y)),p}}s.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new yo;for(let l in i.hooks){if(!(l in a))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,f=i.hooks[c],m=a[c];yo.passThroughHooks.has(l)?a[c]=y=>{if(this.defaults.async&&yo.passThroughHooksRespectAsync.has(l))return(async()=>{let g=await f.call(a,y);return m.call(a,g)})();let p=f.call(a,y);return m.call(a,p)}:a[c]=(...y)=>{if(this.defaults.async)return(async()=>{let g=await f.apply(a,y);return g===!1&&(g=await m.apply(a,y)),g})();let p=f.apply(a,y);return p===!1&&(p=m.apply(a,y)),p}}s.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,l=i.walkTokens;s.walkTokens=function(c){let f=[];return f.push(l.call(this,c)),a&&(f=f.concat(a.call(this,c))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return hr.lex(t,r??this.defaults)}parser(t,r){return gr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},a={...this.defaults,...s},l=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&s.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let c=a.hooks?await a.hooks.preprocess(r):r,f=await(a.hooks?await a.hooks.provideLexer():t?hr.lex:hr.lexInline)(c,a),m=a.hooks?await a.hooks.processAllTokens(f):f;a.walkTokens&&await Promise.all(this.walkTokens(m,a.walkTokens));let y=await(a.hooks?await a.hooks.provideParser():t?gr.parse:gr.parseInline)(m,a);return a.hooks?await a.hooks.postprocess(y):y})().catch(l);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?hr.lex:hr.lexInline)(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let f=(a.hooks?a.hooks.provideParser():t?gr.parse:gr.parseInline)(c,a);return a.hooks&&(f=a.hooks.postprocess(f)),f}catch(c){return l(c)}}}onError(t,r){return i=>{if(i.message+=`
149
- Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+_r(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},Zn=new Dy;function ze(e,t){return Zn.parse(e,t)}ze.options=ze.setOptions=function(e){return Zn.setOptions(e),ze.defaults=Zn.defaults,Ay(ze.defaults),ze};ze.getDefaults=hf;ze.defaults=Xn;ze.use=function(...e){return Zn.use(...e),ze.defaults=Zn.defaults,Ay(ze.defaults),ze};ze.walkTokens=function(e,t){return Zn.walkTokens(e,t)};ze.parseInline=Zn.parseInline;ze.Parser=gr;ze.parser=gr.parse;ze.Renderer=Ra;ze.TextRenderer=Sf;ze.Lexer=hr;ze.lexer=hr.lex;ze.Tokenizer=Ta;ze.Hooks=yo;ze.parse=ze;ze.options;ze.setOptions;ze.use;ze.walkTokens;ze.parseInline;gr.parse;hr.lex;const n$={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&#160;":" "},Ny=/&(?:amp|lt|gt|quot|nbsp|#(?:0+)?(?:39|160));/g,i$=RegExp(Ny.source),xm=(e="")=>i$.test(e)?e.replace(Ny,t=>n$[t]||"'"):e,Sm=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var o$=class{constructor(e){this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const i=r.depth;return this.renderer.heading(this.parseInline(r.tokens),i)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const i=r;return i.tokens?this.parseInline(i.tokens):r.text}case"blockquote":{const i=r,s=this.parse(i.tokens);return this.renderer.blockquote(s)}case"list":{const i=r;this.renderer.elIdList.push(0);const s=i.items.map(a=>{const l=[];return a.task&&l.push(this.renderer.checkbox(a.checked??!1)),l.push(this.parse(a.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(s,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const i=r;this.renderer.elIdList.push(0);const s=i.header.map((m,y)=>this.renderer.tableCell(this.parseInline(m.tokens),{header:!0,align:r.align[y]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(s),l=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=i.rows.map(m=>{this.renderer.elIdList.push(0);const y=m.map((p,g)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!1,align:r.align[g]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(y)});this.renderer.elIdList.pop();const f=this.renderer.tableBody(c);return this.renderer.table([l,f])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(xm(r.text));case"strong":return this.renderer.strong(this.parseInline(r.tokens));case"em":return this.renderer.em(this.parseInline(r.tokens));case"del":return this.renderer.del(this.parseInline(r.tokens));case"codespan":return this.renderer.codespan(xm(r.text));case"link":return this.renderer.link(r.href,this.parseInline(r.tokens));case"image":return this.renderer.image(r.href,r.text,r.title);case"html":return this.renderer.html(r.text);case"br":return this.renderer.br();case"escape":return this.renderer.text(r.text);default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}},s$=o$,gn,Be,it,Rc,Qm,a$=(Qm=class{constructor(e={}){gt(this,Be);gt(this,gn);this.elIdList=[];const{renderer:t}=e;je(this,gn,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,i])=>{const s=r,a=i;!this[s]||s==="elementId"||s==="elIdList"||typeof a!="function"||Object.defineProperty(this,s,{value(...l){return de(this,Be,Rc).call(this),a.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return de(this,Be,it).call(this,`h${t}`,e)}paragraph(e){return de(this,Be,it).call(this,"p",e)}link(e,t){const r=Sm(e,Y(this,gn).baseURL),i=Y(this,gn).openLinksInNewTab?"_blank":null;return de(this,Be,it).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=Sm(e,Y(this,gn).baseURL);return de(this,Be,it).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${Y(this,gn).langPrefix}${t}`:null;return de(this,Be,it).call(this,"code",e,{className:r})}code(e,t){return de(this,Be,it).call(this,"pre",this.codespan(e,t))}blockquote(e){return de(this,Be,it).call(this,"blockquote",e)}list(e,t,r){return de(this,Be,it).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return de(this,Be,it).call(this,"li",e)}checkbox(e){return de(this,Be,it).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return de(this,Be,it).call(this,"table",e)}tableHeader(e){return de(this,Be,it).call(this,"thead",e)}tableBody(e){return de(this,Be,it).call(this,"tbody",e)}tableRow(e){return de(this,Be,it).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return de(this,Be,it).call(this,r,e,{align:t.align})}strong(e){return de(this,Be,it).call(this,"strong",e)}em(e){return de(this,Be,it).call(this,"em",e)}del(e){return de(this,Be,it).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return de(this,Be,it).call(this,"hr")}br(){return de(this,Be,it).call(this,"br")}},gn=new WeakMap,Be=new WeakSet,it=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return de(this,Be,Rc).call(this),W.createElement(e,{...r,...i},t)},Rc=function(){this.elIdList[this.elIdList.length-1]+=1},Qm),u$=a$;const l$=e=>{if(e.value&&typeof e.value!="string")throw new TypeError(`[marked-react]: Expected value to be of type string but got ${typeof e.value}`);if(e.children&&typeof e.children!="string")throw new TypeError(`[marked-react]: Expected children to be of type string but got ${typeof e.children}`)},c$={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},f$=new Dy,d$=e=>{l$(e);const t={...c$,...e},r=t.instance??f$,i={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},s=t.value??t.children??"",a=t.isInline?r.Lexer.lexInline(s,i):r.lexer(s,i),l=new s$({renderer:new u$({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})});return W.createElement(W.Fragment,null,t.isInline?l.parseInline(a):l.parse(a))};var p$=d$,h$=p$;const g$=({children:e,label:t,placement:r="top",className:i,isDisabled:s,container:a})=>{const[l,c]=W.useState(null),f=W.useRef(null),[m,y]=W.useState(null),[p,g]=W.useState(!1),{styles:v,attributes:x}=dv(l,m,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),d=W.Children.map(e,w=>W.isValidElement(w)?W.cloneElement(w,{ref:c,onMouseEnter:()=>g(!0),onMouseLeave:()=>{f.current=setTimeout(()=>g(!1),50)}}):w);return s?F.jsx(F.Fragment,{children:d}):F.jsxs(F.Fragment,{children:[d,p&&t&&zo.createPortal(F.jsx("div",{ref:y,style:v.popper,...x.popper,className:He("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",i),onMouseEnter:()=>{f.current&&clearTimeout(f.current),g(!0)},onMouseLeave:()=>g(!1),children:F.jsx(h$,{openLinksInNewTab:!0,children:t})}),a||document.body)]})},m$=pc.keyframes`
147
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${_r(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let s=this.parser.parseInline(i),a=vm(t);if(a===null)return s;t=a;let u='<a href="'+t+'"';return r&&(u+=' title="'+_r(r)+'"'),u+=">"+s+"</a>",u}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let a=vm(t);if(a===null)return _r(i);t=a;let u=`<img src="${t}" alt="${i}"`;return r&&(u+=` title="${_r(r)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:_r(t.text)}},xf=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},gr=class Ac{constructor(t){ye(this,"options");ye(this,"renderer");ye(this,"textRenderer");this.options=t||Xn,this.options.renderer=this.options.renderer||new Ta,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new xf}static parse(t,r){return new Ac(r).parse(t)}static parseInline(t,r){return new Ac(r).parseInline(t)}parse(t,r=!0){var s,a;let i="";for(let u=0;u<t.length;u++){let c=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=c,y=this.options.extensions.renderers[m.type].call({parser:this},m);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){i+=y||"";continue}}let f=c;switch(f.type){case"space":{i+=this.renderer.space(f);continue}case"hr":{i+=this.renderer.hr(f);continue}case"heading":{i+=this.renderer.heading(f);continue}case"code":{i+=this.renderer.code(f);continue}case"table":{i+=this.renderer.table(f);continue}case"blockquote":{i+=this.renderer.blockquote(f);continue}case"list":{i+=this.renderer.list(f);continue}case"html":{i+=this.renderer.html(f);continue}case"def":{i+=this.renderer.def(f);continue}case"paragraph":{i+=this.renderer.paragraph(f);continue}case"text":{let m=f,y=this.renderer.text(m);for(;u+1<t.length&&t[u+1].type==="text";)m=t[++u],y+=`
148
+ `+this.renderer.text(m);r?i+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):i+=y;continue}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}parseInline(t,r=this.renderer){var s,a;let i="";for(let u=0;u<t.length;u++){let c=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=this.options.extensions.renderers[c.type].call({parser:this},c);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=m||"";continue}}let f=c;switch(f.type){case"escape":{i+=r.text(f);break}case"html":{i+=r.html(f);break}case"link":{i+=r.link(f);break}case"image":{i+=r.image(f);break}case"strong":{i+=r.strong(f);break}case"em":{i+=r.em(f);break}case"codespan":{i+=r.codespan(f);break}case"br":{i+=r.br(f);break}case"del":{i+=r.del(f);break}case"text":{i+=r.text(f);break}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}},aa,yo=(aa=class{constructor(t){ye(this,"options");ye(this,"block");this.options=t||Xn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?hr.lex:hr.lexInline}provideParser(){return this.block?gr.parse:gr.parseInline}},ye(aa,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ye(aa,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),aa),Dy=class{constructor(...t){ye(this,"defaults",pf());ye(this,"options",this.setOptions);ye(this,"parse",this.parseMarkdown(!0));ye(this,"parseInline",this.parseMarkdown(!1));ye(this,"Parser",gr);ye(this,"Renderer",Ta);ye(this,"TextRenderer",xf);ye(this,"Lexer",hr);ye(this,"Tokenizer",Aa);ye(this,"Hooks",yo);this.use(...t)}walkTokens(t,r){var s,a;let i=[];for(let u of t)switch(i=i.concat(r.call(this,u)),u.type){case"table":{let c=u;for(let f of c.header)i=i.concat(this.walkTokens(f.tokens,r));for(let f of c.rows)for(let m of f)i=i.concat(this.walkTokens(m.tokens,r));break}case"list":{let c=u;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=u;(a=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&a[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let m=c[f].flat(1/0);i=i.concat(this.walkTokens(m,r))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let u=r.renderers[a.name];u?r.renderers[a.name]=function(...c){let f=a.renderer.apply(this,c);return f===!1&&(f=u.apply(this,c)),f}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[a.level];u?u.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),s.extensions=r),i.renderer){let a=this.defaults.renderer||new Ta(this.defaults);for(let u in i.renderer){if(!(u in a))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let c=u,f=i.renderer[c],m=a[c];a[c]=(...y)=>{let p=f.apply(a,y);return p===!1&&(p=m.apply(a,y)),p||""}}s.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Aa(this.defaults);for(let u in i.tokenizer){if(!(u in a))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let c=u,f=i.tokenizer[c],m=a[c];a[c]=(...y)=>{let p=f.apply(a,y);return p===!1&&(p=m.apply(a,y)),p}}s.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new yo;for(let u in i.hooks){if(!(u in a))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let c=u,f=i.hooks[c],m=a[c];yo.passThroughHooks.has(u)?a[c]=y=>{if(this.defaults.async&&yo.passThroughHooksRespectAsync.has(u))return(async()=>{let g=await f.call(a,y);return m.call(a,g)})();let p=f.call(a,y);return m.call(a,p)}:a[c]=(...y)=>{if(this.defaults.async)return(async()=>{let g=await f.apply(a,y);return g===!1&&(g=await m.apply(a,y)),g})();let p=f.apply(a,y);return p===!1&&(p=m.apply(a,y)),p}}s.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,u=i.walkTokens;s.walkTokens=function(c){let f=[];return f.push(u.call(this,c)),a&&(f=f.concat(a.call(this,c))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return hr.lex(t,r??this.defaults)}parser(t,r){return gr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},a={...this.defaults,...s},u=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&s.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let c=a.hooks?await a.hooks.preprocess(r):r,f=await(a.hooks?await a.hooks.provideLexer():t?hr.lex:hr.lexInline)(c,a),m=a.hooks?await a.hooks.processAllTokens(f):f;a.walkTokens&&await Promise.all(this.walkTokens(m,a.walkTokens));let y=await(a.hooks?await a.hooks.provideParser():t?gr.parse:gr.parseInline)(m,a);return a.hooks?await a.hooks.postprocess(y):y})().catch(u);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?hr.lex:hr.lexInline)(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let f=(a.hooks?a.hooks.provideParser():t?gr.parse:gr.parseInline)(c,a);return a.hooks&&(f=a.hooks.postprocess(f)),f}catch(c){return u(c)}}}onError(t,r){return i=>{if(i.message+=`
149
+ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+_r(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},Zn=new Dy;function ze(e,t){return Zn.parse(e,t)}ze.options=ze.setOptions=function(e){return Zn.setOptions(e),ze.defaults=Zn.defaults,Ay(ze.defaults),ze};ze.getDefaults=pf;ze.defaults=Xn;ze.use=function(...e){return Zn.use(...e),ze.defaults=Zn.defaults,Ay(ze.defaults),ze};ze.walkTokens=function(e,t){return Zn.walkTokens(e,t)};ze.parseInline=Zn.parseInline;ze.Parser=gr;ze.parser=gr.parse;ze.Renderer=Ta;ze.TextRenderer=xf;ze.Lexer=hr;ze.lexer=hr.lex;ze.Tokenizer=Aa;ze.Hooks=yo;ze.parse=ze;ze.options;ze.setOptions;ze.use;ze.walkTokens;ze.parseInline;gr.parse;hr.lex;const s$={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&#160;":" "},Ny=/&(?:amp|lt|gt|quot|nbsp|#(?:0+)?(?:39|160));/g,a$=RegExp(Ny.source),wm=(e="")=>a$.test(e)?e.replace(Ny,t=>s$[t]||"'"):e,xm=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var u$=class{constructor(e){this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const i=r.depth;return this.renderer.heading(this.parseInline(r.tokens),i)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const i=r;return i.tokens?this.parseInline(i.tokens):r.text}case"blockquote":{const i=r,s=this.parse(i.tokens);return this.renderer.blockquote(s)}case"list":{const i=r;this.renderer.elIdList.push(0);const s=i.items.map(a=>{const u=[];return a.task&&u.push(this.renderer.checkbox(a.checked??!1)),u.push(this.parse(a.tokens)),this.renderer.listItem(u)});return this.renderer.elIdList.pop(),this.renderer.list(s,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const i=r;this.renderer.elIdList.push(0);const s=i.header.map((m,y)=>this.renderer.tableCell(this.parseInline(m.tokens),{header:!0,align:r.align[y]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(s),u=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=i.rows.map(m=>{this.renderer.elIdList.push(0);const y=m.map((p,g)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!1,align:r.align[g]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(y)});this.renderer.elIdList.pop();const f=this.renderer.tableBody(c);return this.renderer.table([u,f])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(wm(r.text));case"strong":return this.renderer.strong(this.parseInline(r.tokens));case"em":return this.renderer.em(this.parseInline(r.tokens));case"del":return this.renderer.del(this.parseInline(r.tokens));case"codespan":return this.renderer.codespan(wm(r.text));case"link":return this.renderer.link(r.href,this.parseInline(r.tokens));case"image":return this.renderer.image(r.href,r.text,r.title);case"html":return this.renderer.html(r.text);case"br":return this.renderer.br();case"escape":return this.renderer.text(r.text);default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}},l$=u$,mn,Be,it,Tc,Qm,c$=(Qm=class{constructor(e={}){gt(this,Be);gt(this,mn);this.elIdList=[];const{renderer:t}=e;je(this,mn,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,i])=>{const s=r,a=i;!this[s]||s==="elementId"||s==="elIdList"||typeof a!="function"||Object.defineProperty(this,s,{value(...u){return de(this,Be,Tc).call(this),a.apply(this,u)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return de(this,Be,it).call(this,`h${t}`,e)}paragraph(e){return de(this,Be,it).call(this,"p",e)}link(e,t){const r=xm(e,Y(this,mn).baseURL),i=Y(this,mn).openLinksInNewTab?"_blank":null;return de(this,Be,it).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=xm(e,Y(this,mn).baseURL);return de(this,Be,it).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${Y(this,mn).langPrefix}${t}`:null;return de(this,Be,it).call(this,"code",e,{className:r})}code(e,t){return de(this,Be,it).call(this,"pre",this.codespan(e,t))}blockquote(e){return de(this,Be,it).call(this,"blockquote",e)}list(e,t,r){return de(this,Be,it).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return de(this,Be,it).call(this,"li",e)}checkbox(e){return de(this,Be,it).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return de(this,Be,it).call(this,"table",e)}tableHeader(e){return de(this,Be,it).call(this,"thead",e)}tableBody(e){return de(this,Be,it).call(this,"tbody",e)}tableRow(e){return de(this,Be,it).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return de(this,Be,it).call(this,r,e,{align:t.align})}strong(e){return de(this,Be,it).call(this,"strong",e)}em(e){return de(this,Be,it).call(this,"em",e)}del(e){return de(this,Be,it).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return de(this,Be,it).call(this,"hr")}br(){return de(this,Be,it).call(this,"br")}},mn=new WeakMap,Be=new WeakSet,it=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return de(this,Be,Tc).call(this),W.createElement(e,{...r,...i},t)},Tc=function(){this.elIdList[this.elIdList.length-1]+=1},Qm),f$=c$;const d$=e=>{if(e.value&&typeof e.value!="string")throw new TypeError(`[marked-react]: Expected value to be of type string but got ${typeof e.value}`);if(e.children&&typeof e.children!="string")throw new TypeError(`[marked-react]: Expected children to be of type string but got ${typeof e.children}`)},p$={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},h$=new Dy,g$=e=>{d$(e);const t={...p$,...e},r=t.instance??h$,i={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},s=t.value??t.children??"",a=t.isInline?r.Lexer.lexInline(s,i):r.lexer(s,i),u=new l$({renderer:new f$({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})});return W.createElement(W.Fragment,null,t.isInline?u.parseInline(a):u.parse(a))};var m$=g$,v$=m$;const y$=({children:e,label:t,placement:r="top",className:i,isDisabled:s,container:a})=>{const[u,c]=W.useState(null),f=W.useRef(null),[m,y]=W.useState(null),[p,g]=W.useState(!1),{styles:v,attributes:x}=dv(u,m,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),d=W.Children.map(e,w=>W.isValidElement(w)?W.cloneElement(w,{ref:c,onMouseEnter:()=>g(!0),onMouseLeave:()=>{f.current=setTimeout(()=>g(!1),50)}}):w);return s?F.jsx(F.Fragment,{children:d}):F.jsxs(F.Fragment,{children:[d,p&&t&&zo.createPortal(F.jsx("div",{ref:y,style:v.popper,...x.popper,className:He("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",i),onMouseEnter:()=>{f.current&&clearTimeout(f.current),g(!0)},onMouseLeave:()=>g(!1),children:F.jsx(v$,{openLinksInNewTab:!0,children:t})}),a||document.body)]})},b$=dc.keyframes`
150
150
  to {
151
151
  fill: url(#d);
152
152
  stroke-dashoffset: 0;
153
153
  }
154
- `,jy=Sa.svg`
154
+ `,jy=xa.svg`
155
155
  & .e {
156
156
  fill: url(#d);
157
157
  }
@@ -162,7 +162,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
162
162
  fill: transparent;
163
163
  stroke-dasharray: 700;
164
164
  stroke-dashoffset: 700;
165
- animation: ${m$} 1.5s ease-in-out infinite alternate-reverse;
165
+ animation: ${b$} 1.5s ease-in-out infinite alternate-reverse;
166
166
  }
167
167
 
168
168
  & #circle {
@@ -172,17 +172,17 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
172
172
  stroke-dasharray: 700;
173
173
  stroke-dashoffset: 700;
174
174
  }
175
- `,v$=({message:e,version:t})=>F.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:F.jsxs("div",{className:"flex flex-col text-center",children:[F.jsx("div",{className:"relative mr-4 self-center",children:F.jsx("div",{className:"flex items-center justify-center rounded",children:F.jsxs(jy,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[F.jsx("defs",{children:F.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[F.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:F.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),F.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:F.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),F.jsx("g",{id:"a"}),F.jsx("g",{id:"b",children:F.jsx("g",{id:"c",children:F.jsxs("g",{children:[F.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"}),F.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"})]})})})]})})}),F.jsxs("div",{children:[F.jsx("span",{className:"text-xs text-grey-200",children:t}),F.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var bo={exports:{}};/**
175
+ `,w$=({message:e,version:t})=>F.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:F.jsxs("div",{className:"flex flex-col text-center",children:[F.jsx("div",{className:"relative mr-4 self-center",children:F.jsx("div",{className:"flex items-center justify-center rounded",children:F.jsxs(jy,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[F.jsx("defs",{children:F.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[F.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:F.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),F.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:F.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),F.jsx("g",{id:"a"}),F.jsx("g",{id:"b",children:F.jsx("g",{id:"c",children:F.jsxs("g",{children:[F.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"}),F.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"})]})})})]})})}),F.jsxs("div",{children:[F.jsx("span",{className:"text-xs text-grey-200",children:t}),F.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var bo={exports:{}};/**
176
176
  * @license
177
177
  * Lodash <https://lodash.com/>
178
178
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
179
179
  * Released under MIT license <https://lodash.com/license>
180
180
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
181
181
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
182
- */var y$=bo.exports,Em;function b$(){return Em||(Em=1,(function(e,t){(function(){var r,i="4.18.1",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",f="Invalid `imports` option passed into `_.template`",m="__lodash_hash_undefined__",y=500,p="__lodash_placeholder__",g=1,v=2,x=4,d=1,w=2,h=1,S=2,E=4,R=8,O=16,C=32,U=64,M=128,D=256,q=512,N=30,L="...",B=800,Z=16,k=1,Q=2,J=3,re=1/0,ce=9007199254740991,G=17976931348623157e292,te=NaN,ne=4294967295,ue=ne-1,ie=ne>>>1,he=[["ary",M],["bind",h],["bindKey",S],["curry",R],["curryRight",O],["flip",q],["partial",C],["partialRight",U],["rearg",D]],fe="[object Arguments]",ve="[object Array]",xe="[object AsyncFunction]",Ae="[object Boolean]",_e="[object Date]",ot="[object DOMException]",oe="[object Error]",ct="[object Function]",Mr="[object GeneratorFunction]",bt="[object Map]",Yr="[object Number]",Vo="[object Null]",ar="[object Object]",Xo="[object Promise]",Fr="[object Proxy]",yr="[object RegExp]",Pt="[object Set]",Jr="[object String]",Qr="[object Symbol]",Yo="[object Undefined]",en="[object WeakMap]",Jo="[object WeakSet]",tn="[object ArrayBuffer]",Yn="[object DataView]",eu="[object Float32Array]",tu="[object Float64Array]",ru="[object Int8Array]",nu="[object Int16Array]",iu="[object Int32Array]",ou="[object Uint8Array]",su="[object Uint8ClampedArray]",au="[object Uint16Array]",uu="[object Uint32Array]",sb=/\b__p \+= '';/g,ab=/\b(__p \+=) '' \+/g,ub=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Uf=/&(?:amp|lt|gt|quot|#39);/g,Bf=/[&<>"']/g,lb=RegExp(Uf.source),cb=RegExp(Bf.source),fb=/<%-([\s\S]+?)%>/g,db=/<%([\s\S]+?)%>/g,Hf=/<%=([\s\S]+?)%>/g,pb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hb=/^\w*$/,gb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lu=/[\\^$.*+?()[\]{}|]/g,mb=RegExp(lu.source),cu=/^\s+/,vb=/\s/,yb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bb=/\{\n\/\* \[wrapped with (.+)\] \*/,wb=/,? & /,xb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qf=/[()=,{}\[\]\/\s]/,Sb=/\\(\\)?/g,Eb=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zf=/\w*$/,_b=/^[-+]0x[0-9a-f]+$/i,Ob=/^0b[01]+$/i,Ab=/^\[object .+?Constructor\]$/,Tb=/^0o[0-7]+$/i,Rb=/^(?:0|[1-9]\d*)$/,Pb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qo=/($^)/,Cb=/['\n\r\u2028\u2029\\]/g,es="\\ud800-\\udfff",kb="\\u0300-\\u036f",$b="\\ufe20-\\ufe2f",Ib="\\u20d0-\\u20ff",Gf=kb+$b+Ib,Kf="\\u2700-\\u27bf",Vf="a-z\\xdf-\\xf6\\xf8-\\xff",Lb="\\xac\\xb1\\xd7\\xf7",Mb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fb="\\u2000-\\u206f",Db=" \\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",Xf="A-Z\\xc0-\\xd6\\xd8-\\xde",Yf="\\ufe0e\\ufe0f",Jf=Lb+Mb+Fb+Db,fu="['’]",Nb="["+es+"]",Qf="["+Jf+"]",ts="["+Gf+"]",ed="\\d+",jb="["+Kf+"]",td="["+Vf+"]",rd="[^"+es+Jf+ed+Kf+Vf+Xf+"]",du="\\ud83c[\\udffb-\\udfff]",zb="(?:"+ts+"|"+du+")",nd="[^"+es+"]",pu="(?:\\ud83c[\\udde6-\\uddff]){2}",hu="[\\ud800-\\udbff][\\udc00-\\udfff]",Jn="["+Xf+"]",id="\\u200d",od="(?:"+td+"|"+rd+")",Wb="(?:"+Jn+"|"+rd+")",sd="(?:"+fu+"(?:d|ll|m|re|s|t|ve))?",ad="(?:"+fu+"(?:D|LL|M|RE|S|T|VE))?",ud=zb+"?",ld="["+Yf+"]?",Ub="(?:"+id+"(?:"+[nd,pu,hu].join("|")+")"+ld+ud+")*",Bb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cd=ld+ud+Ub,qb="(?:"+[jb,pu,hu].join("|")+")"+cd,Zb="(?:"+[nd+ts+"?",ts,pu,hu,Nb].join("|")+")",Gb=RegExp(fu,"g"),Kb=RegExp(ts,"g"),gu=RegExp(du+"(?="+du+")|"+Zb+cd,"g"),Vb=RegExp([Jn+"?"+td+"+"+sd+"(?="+[Qf,Jn,"$"].join("|")+")",Wb+"+"+ad+"(?="+[Qf,Jn+od,"$"].join("|")+")",Jn+"?"+od+"+"+sd,Jn+"+"+ad,Hb,Bb,ed,qb].join("|"),"g"),Xb=RegExp("["+id+es+Gf+Yf+"]"),Yb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jb=["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"],Qb=-1,qe={};qe[eu]=qe[tu]=qe[ru]=qe[nu]=qe[iu]=qe[ou]=qe[su]=qe[au]=qe[uu]=!0,qe[fe]=qe[ve]=qe[tn]=qe[Ae]=qe[Yn]=qe[_e]=qe[oe]=qe[ct]=qe[bt]=qe[Yr]=qe[ar]=qe[yr]=qe[Pt]=qe[Jr]=qe[en]=!1;var Ue={};Ue[fe]=Ue[ve]=Ue[tn]=Ue[Yn]=Ue[Ae]=Ue[_e]=Ue[eu]=Ue[tu]=Ue[ru]=Ue[nu]=Ue[iu]=Ue[bt]=Ue[Yr]=Ue[ar]=Ue[yr]=Ue[Pt]=Ue[Jr]=Ue[Qr]=Ue[ou]=Ue[su]=Ue[au]=Ue[uu]=!0,Ue[oe]=Ue[ct]=Ue[en]=!1;var ew={À:"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"},tw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rw={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},nw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},iw=parseFloat,ow=parseInt,fd=typeof Ws=="object"&&Ws&&Ws.Object===Object&&Ws,sw=typeof self=="object"&&self&&self.Object===Object&&self,pt=fd||sw||Function("return this")(),mu=t&&!t.nodeType&&t,On=mu&&!0&&e&&!e.nodeType&&e,dd=On&&On.exports===mu,vu=dd&&fd.process,Xt=(function(){try{var j=On&&On.require&&On.require("util").types;return j||vu&&vu.binding&&vu.binding("util")}catch{}})(),pd=Xt&&Xt.isArrayBuffer,hd=Xt&&Xt.isDate,gd=Xt&&Xt.isMap,md=Xt&&Xt.isRegExp,vd=Xt&&Xt.isSet,yd=Xt&&Xt.isTypedArray;function Dt(j,K,H){switch(H.length){case 0:return j.call(K);case 1:return j.call(K,H[0]);case 2:return j.call(K,H[0],H[1]);case 3:return j.call(K,H[0],H[1],H[2])}return j.apply(K,H)}function aw(j,K,H,ae){for(var be=-1,$e=j==null?0:j.length;++be<$e;){var ut=j[be];K(ae,ut,H(ut),j)}return ae}function Nt(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae&&K(j[H],H,j)!==!1;);return j}function uw(j,K){for(var H=j==null?0:j.length;H--&&K(j[H],H,j)!==!1;);return j}function bd(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae;)if(!K(j[H],H,j))return!1;return!0}function rn(j,K){for(var H=-1,ae=j==null?0:j.length,be=0,$e=[];++H<ae;){var ut=j[H];K(ut,H,j)&&($e[be++]=ut)}return $e}function rs(j,K){var H=j==null?0:j.length;return!!H&&Qn(j,K,0)>-1}function yu(j,K,H){for(var ae=-1,be=j==null?0:j.length;++ae<be;)if(H(K,j[ae]))return!0;return!1}function Ze(j,K){for(var H=-1,ae=j==null?0:j.length,be=Array(ae);++H<ae;)be[H]=K(j[H],H,j);return be}function nn(j,K){for(var H=-1,ae=K.length,be=j.length;++H<ae;)j[be+H]=K[H];return j}function bu(j,K,H,ae){var be=-1,$e=j==null?0:j.length;for(ae&&$e&&(H=j[++be]);++be<$e;)H=K(H,j[be],be,j);return H}function lw(j,K,H,ae){var be=j==null?0:j.length;for(ae&&be&&(H=j[--be]);be--;)H=K(H,j[be],be,j);return H}function wu(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae;)if(K(j[H],H,j))return!0;return!1}var cw=xu("length");function fw(j){return j.split("")}function dw(j){return j.match(xb)||[]}function wd(j,K,H){var ae;return H(j,function(be,$e,ut){if(K(be,$e,ut))return ae=$e,!1}),ae}function ns(j,K,H,ae){for(var be=j.length,$e=H+(ae?1:-1);ae?$e--:++$e<be;)if(K(j[$e],$e,j))return $e;return-1}function Qn(j,K,H){return K===K?_w(j,K,H):ns(j,xd,H)}function pw(j,K,H,ae){for(var be=H-1,$e=j.length;++be<$e;)if(ae(j[be],K))return be;return-1}function xd(j){return j!==j}function Sd(j,K){var H=j==null?0:j.length;return H?Eu(j,K)/H:te}function xu(j){return function(K){return K==null?r:K[j]}}function Su(j){return function(K){return j==null?r:j[K]}}function Ed(j,K,H,ae,be){return be(j,function($e,ut,We){H=ae?(ae=!1,$e):K(H,$e,ut,We)}),H}function hw(j,K){var H=j.length;for(j.sort(K);H--;)j[H]=j[H].value;return j}function Eu(j,K){for(var H,ae=-1,be=j.length;++ae<be;){var $e=K(j[ae]);$e!==r&&(H=H===r?$e:H+$e)}return H}function _u(j,K){for(var H=-1,ae=Array(j);++H<j;)ae[H]=K(H);return ae}function gw(j,K){return Ze(K,function(H){return[H,j[H]]})}function _d(j){return j&&j.slice(0,Rd(j)+1).replace(cu,"")}function jt(j){return function(K){return j(K)}}function Ou(j,K){return Ze(K,function(H){return j[H]})}function ki(j,K){return j.has(K)}function Od(j,K){for(var H=-1,ae=j.length;++H<ae&&Qn(K,j[H],0)>-1;);return H}function Ad(j,K){for(var H=j.length;H--&&Qn(K,j[H],0)>-1;);return H}function mw(j,K){for(var H=j.length,ae=0;H--;)j[H]===K&&++ae;return ae}var vw=Su(ew),yw=Su(tw);function bw(j){return"\\"+nw[j]}function ww(j,K){return j==null?r:j[K]}function ei(j){return Xb.test(j)}function xw(j){return Yb.test(j)}function Sw(j){for(var K,H=[];!(K=j.next()).done;)H.push(K.value);return H}function Au(j){var K=-1,H=Array(j.size);return j.forEach(function(ae,be){H[++K]=[be,ae]}),H}function Td(j,K){return function(H){return j(K(H))}}function on(j,K){for(var H=-1,ae=j.length,be=0,$e=[];++H<ae;){var ut=j[H];(ut===K||ut===p)&&(j[H]=p,$e[be++]=H)}return $e}function is(j){var K=-1,H=Array(j.size);return j.forEach(function(ae){H[++K]=ae}),H}function Ew(j){var K=-1,H=Array(j.size);return j.forEach(function(ae){H[++K]=[ae,ae]}),H}function _w(j,K,H){for(var ae=H-1,be=j.length;++ae<be;)if(j[ae]===K)return ae;return-1}function Ow(j,K,H){for(var ae=H+1;ae--;)if(j[ae]===K)return ae;return ae}function ti(j){return ei(j)?Tw(j):cw(j)}function ur(j){return ei(j)?Rw(j):fw(j)}function Rd(j){for(var K=j.length;K--&&vb.test(j.charAt(K)););return K}var Aw=Su(rw);function Tw(j){for(var K=gu.lastIndex=0;gu.test(j);)++K;return K}function Rw(j){return j.match(gu)||[]}function Pw(j){return j.match(Vb)||[]}var Cw=(function j(K){K=K==null?pt:ri.defaults(pt.Object(),K,ri.pick(pt,Jb));var H=K.Array,ae=K.Date,be=K.Error,$e=K.Function,ut=K.Math,We=K.Object,Tu=K.RegExp,kw=K.String,Yt=K.TypeError,os=H.prototype,$w=$e.prototype,ni=We.prototype,ss=K["__core-js_shared__"],as=$w.toString,Le=ni.hasOwnProperty,Iw=0,Pd=(function(){var n=/[^.]+$/.exec(ss&&ss.keys&&ss.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),us=ni.toString,Lw=as.call(We),Mw=pt._,Fw=Tu("^"+as.call(Le).replace(lu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ls=dd?K.Buffer:r,sn=K.Symbol,cs=K.Uint8Array,Cd=ls?ls.allocUnsafe:r,fs=Td(We.getPrototypeOf,We),kd=We.create,$d=ni.propertyIsEnumerable,ds=os.splice,Id=sn?sn.isConcatSpreadable:r,$i=sn?sn.iterator:r,An=sn?sn.toStringTag:r,ps=(function(){try{var n=kn(We,"defineProperty");return n({},"",{}),n}catch{}})(),Dw=K.clearTimeout!==pt.clearTimeout&&K.clearTimeout,Nw=ae&&ae.now!==pt.Date.now&&ae.now,jw=K.setTimeout!==pt.setTimeout&&K.setTimeout,hs=ut.ceil,gs=ut.floor,Ru=We.getOwnPropertySymbols,zw=ls?ls.isBuffer:r,Ld=K.isFinite,Ww=os.join,Uw=Td(We.keys,We),lt=ut.max,wt=ut.min,Bw=ae.now,Hw=K.parseInt,Md=ut.random,qw=os.reverse,Pu=kn(K,"DataView"),Ii=kn(K,"Map"),Cu=kn(K,"Promise"),ii=kn(K,"Set"),Li=kn(K,"WeakMap"),Mi=kn(We,"create"),ms=Li&&new Li,oi={},Zw=$n(Pu),Gw=$n(Ii),Kw=$n(Cu),Vw=$n(ii),Xw=$n(Li),vs=sn?sn.prototype:r,Fi=vs?vs.valueOf:r,Fd=vs?vs.toString:r;function A(n){if(et(n)&&!Se(n)&&!(n instanceof Pe)){if(n instanceof Jt)return n;if(Le.call(n,"__wrapped__"))return Dp(n)}return new Jt(n)}var si=(function(){function n(){}return function(o){if(!Ve(o))return{};if(kd)return kd(o);n.prototype=o;var u=new n;return n.prototype=r,u}})();function ys(){}function Jt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:fb,evaluate:db,interpolate:Hf,variable:"",imports:{_:A}},A.prototype=ys.prototype,A.prototype.constructor=A,Jt.prototype=si(ys.prototype),Jt.prototype.constructor=Jt;function Pe(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function Yw(){var n=new Pe(this.__wrapped__);return n.__actions__=Ct(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ct(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ct(this.__views__),n}function Jw(){if(this.__filtered__){var n=new Pe(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Qw(){var n=this.__wrapped__.value(),o=this.__dir__,u=Se(n),b=o<0,_=u?n.length:0,T=fx(0,_,this.__views__),P=T.start,I=T.end,z=I-P,V=b?I:P-1,X=this.__iteratees__,ee=X.length,se=0,le=wt(z,this.__takeCount__);if(!u||!b&&_==z&&le==z)return sp(n,this.__actions__);var me=[];e:for(;z--&&se<le;){V+=o;for(var Oe=-1,pe=n[V];++Oe<ee;){var Re=X[Oe],Ce=Re.iteratee,Ut=Re.type,Tt=Ce(pe);if(Ut==Q)pe=Tt;else if(!Tt){if(Ut==k)continue e;break e}}me[se++]=pe}return me}Pe.prototype=si(ys.prototype),Pe.prototype.constructor=Pe;function Tn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var b=n[o];this.set(b[0],b[1])}}function e1(){this.__data__=Mi?Mi(null):{},this.size=0}function t1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function r1(n){var o=this.__data__;if(Mi){var u=o[n];return u===m?r:u}return Le.call(o,n)?o[n]:r}function n1(n){var o=this.__data__;return Mi?o[n]!==r:Le.call(o,n)}function i1(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=Mi&&o===r?m:o,this}Tn.prototype.clear=e1,Tn.prototype.delete=t1,Tn.prototype.get=r1,Tn.prototype.has=n1,Tn.prototype.set=i1;function Dr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var b=n[o];this.set(b[0],b[1])}}function o1(){this.__data__=[],this.size=0}function s1(n){var o=this.__data__,u=bs(o,n);if(u<0)return!1;var b=o.length-1;return u==b?o.pop():ds.call(o,u,1),--this.size,!0}function a1(n){var o=this.__data__,u=bs(o,n);return u<0?r:o[u][1]}function u1(n){return bs(this.__data__,n)>-1}function l1(n,o){var u=this.__data__,b=bs(u,n);return b<0?(++this.size,u.push([n,o])):u[b][1]=o,this}Dr.prototype.clear=o1,Dr.prototype.delete=s1,Dr.prototype.get=a1,Dr.prototype.has=u1,Dr.prototype.set=l1;function Nr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var b=n[o];this.set(b[0],b[1])}}function c1(){this.size=0,this.__data__={hash:new Tn,map:new(Ii||Dr),string:new Tn}}function f1(n){var o=ks(this,n).delete(n);return this.size-=o?1:0,o}function d1(n){return ks(this,n).get(n)}function p1(n){return ks(this,n).has(n)}function h1(n,o){var u=ks(this,n),b=u.size;return u.set(n,o),this.size+=u.size==b?0:1,this}Nr.prototype.clear=c1,Nr.prototype.delete=f1,Nr.prototype.get=d1,Nr.prototype.has=p1,Nr.prototype.set=h1;function Rn(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Nr;++o<u;)this.add(n[o])}function g1(n){return this.__data__.set(n,m),this}function m1(n){return this.__data__.has(n)}Rn.prototype.add=Rn.prototype.push=g1,Rn.prototype.has=m1;function lr(n){var o=this.__data__=new Dr(n);this.size=o.size}function v1(){this.__data__=new Dr,this.size=0}function y1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function b1(n){return this.__data__.get(n)}function w1(n){return this.__data__.has(n)}function x1(n,o){var u=this.__data__;if(u instanceof Dr){var b=u.__data__;if(!Ii||b.length<s-1)return b.push([n,o]),this.size=++u.size,this;u=this.__data__=new Nr(b)}return u.set(n,o),this.size=u.size,this}lr.prototype.clear=v1,lr.prototype.delete=y1,lr.prototype.get=b1,lr.prototype.has=w1,lr.prototype.set=x1;function Dd(n,o){var u=Se(n),b=!u&&In(n),_=!u&&!b&&fn(n),T=!u&&!b&&!_&&ci(n),P=u||b||_||T,I=P?_u(n.length,kw):[],z=I.length;for(var V in n)(o||Le.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Wr(V,z)))&&I.push(V);return I}function Nd(n){var o=n.length;return o?n[Wu(0,o-1)]:r}function S1(n,o){return $s(Ct(n),Pn(o,0,n.length))}function E1(n){return $s(Ct(n))}function ku(n,o,u){(u!==r&&!fr(n[o],u)||u===r&&!(o in n))&&br(n,o,u)}function Di(n,o,u){var b=n[o];(!(Le.call(n,o)&&fr(b,u))||u===r&&!(o in n))&&br(n,o,u)}function bs(n,o){for(var u=n.length;u--;)if(fr(n[u][0],o))return u;return-1}function _1(n,o,u,b){return an(n,function(_,T,P){o(b,_,u(_),P)}),b}function jd(n,o){return n&&xr(o,ft(o),n)}function O1(n,o){return n&&xr(o,$t(o),n)}function br(n,o,u){o=="__proto__"&&ps?ps(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function $u(n,o){for(var u=-1,b=o.length,_=H(b),T=n==null;++u<b;)_[u]=T?r:pl(n,o[u]);return _}function Pn(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function Qt(n,o,u,b,_,T){var P,I=o&g,z=o&v,V=o&x;if(u&&(P=_?u(n,b,_,T):u(n)),P!==r)return P;if(!Ve(n))return n;var X=Se(n);if(X){if(P=px(n),!I)return Ct(n,P)}else{var ee=xt(n),se=ee==ct||ee==Mr;if(fn(n))return lp(n,I);if(ee==ar||ee==fe||se&&!_){if(P=z||se?{}:Rp(n),!I)return z?rx(n,O1(P,n)):tx(n,jd(P,n))}else{if(!Ue[ee])return _?n:{};P=hx(n,ee,I)}}T||(T=new lr);var le=T.get(n);if(le)return le;T.set(n,P),nh(n)?n.forEach(function(pe){P.add(Qt(pe,o,u,pe,n,T))}):th(n)&&n.forEach(function(pe,Re){P.set(Re,Qt(pe,o,u,Re,n,T))});var me=V?z?Ju:Yu:z?$t:ft,Oe=X?r:me(n);return Nt(Oe||n,function(pe,Re){Oe&&(Re=pe,pe=n[Re]),Di(P,Re,Qt(pe,o,u,Re,n,T))}),P}function A1(n){var o=ft(n);return function(u){return zd(u,n,o)}}function zd(n,o,u){var b=u.length;if(n==null)return!b;for(n=We(n);b--;){var _=u[b],T=o[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function Wd(n,o,u){if(typeof n!="function")throw new Yt(l);return Hi(function(){n.apply(r,u)},o)}function Ni(n,o,u,b){var _=-1,T=rs,P=!0,I=n.length,z=[],V=o.length;if(!I)return z;u&&(o=Ze(o,jt(u))),b?(T=yu,P=!1):o.length>=s&&(T=ki,P=!1,o=new Rn(o));e:for(;++_<I;){var X=n[_],ee=u==null?X:u(X);if(X=b||X!==0?X:0,P&&ee===ee){for(var se=V;se--;)if(o[se]===ee)continue e;z.push(X)}else T(o,ee,b)||z.push(X)}return z}var an=hp(wr),Ud=hp(Lu,!0);function T1(n,o){var u=!0;return an(n,function(b,_,T){return u=!!o(b,_,T),u}),u}function ws(n,o,u){for(var b=-1,_=n.length;++b<_;){var T=n[b],P=o(T);if(P!=null&&(I===r?P===P&&!Wt(P):u(P,I)))var I=P,z=T}return z}function R1(n,o,u,b){var _=n.length;for(u=Ee(u),u<0&&(u=-u>_?0:_+u),b=b===r||b>_?_:Ee(b),b<0&&(b+=_),b=u>b?0:oh(b);u<b;)n[u++]=o;return n}function Bd(n,o){var u=[];return an(n,function(b,_,T){o(b,_,T)&&u.push(b)}),u}function ht(n,o,u,b,_){var T=-1,P=n.length;for(u||(u=mx),_||(_=[]);++T<P;){var I=n[T];o>0&&u(I)?o>1?ht(I,o-1,u,b,_):nn(_,I):b||(_[_.length]=I)}return _}var Iu=gp(),Hd=gp(!0);function wr(n,o){return n&&Iu(n,o,ft)}function Lu(n,o){return n&&Hd(n,o,ft)}function xs(n,o){return rn(o,function(u){return Ur(n[u])})}function Cn(n,o){o=ln(o,n);for(var u=0,b=o.length;n!=null&&u<b;)n=n[cr(o[u++])];return u&&u==b?n:r}function qd(n,o,u){var b=o(n);return Se(n)?b:nn(b,u(n))}function Ot(n){return n==null?n===r?Yo:Vo:An&&An in We(n)?cx(n):Ex(n)}function Mu(n,o){return n>o}function P1(n,o){return n!=null&&Le.call(n,o)}function C1(n,o){return n!=null&&o in We(n)}function k1(n,o,u){return n>=wt(o,u)&&n<lt(o,u)}function Fu(n,o,u){for(var b=u?yu:rs,_=n[0].length,T=n.length,P=T,I=H(T),z=1/0,V=[];P--;){var X=n[P];P&&o&&(X=Ze(X,jt(o))),z=wt(X.length,z),I[P]=!u&&(o||_>=120&&X.length>=120)?new Rn(P&&X):r}X=n[0];var ee=-1,se=I[0];e:for(;++ee<_&&V.length<z;){var le=X[ee],me=o?o(le):le;if(le=u||le!==0?le:0,!(se?ki(se,me):b(V,me,u))){for(P=T;--P;){var Oe=I[P];if(!(Oe?ki(Oe,me):b(n[P],me,u)))continue e}se&&se.push(me),V.push(le)}}return V}function $1(n,o,u,b){return wr(n,function(_,T,P){o(b,u(_),T,P)}),b}function ji(n,o,u){o=ln(o,n),n=$p(n,o);var b=n==null?n:n[cr(tr(o))];return b==null?r:Dt(b,n,u)}function Zd(n){return et(n)&&Ot(n)==fe}function I1(n){return et(n)&&Ot(n)==tn}function L1(n){return et(n)&&Ot(n)==_e}function zi(n,o,u,b,_){return n===o?!0:n==null||o==null||!et(n)&&!et(o)?n!==n&&o!==o:M1(n,o,u,b,zi,_)}function M1(n,o,u,b,_,T){var P=Se(n),I=Se(o),z=P?ve:xt(n),V=I?ve:xt(o);z=z==fe?ar:z,V=V==fe?ar:V;var X=z==ar,ee=V==ar,se=z==V;if(se&&fn(n)){if(!fn(o))return!1;P=!0,X=!1}if(se&&!X)return T||(T=new lr),P||ci(n)?Op(n,o,u,b,_,T):ux(n,o,z,u,b,_,T);if(!(u&d)){var le=X&&Le.call(n,"__wrapped__"),me=ee&&Le.call(o,"__wrapped__");if(le||me){var Oe=le?n.value():n,pe=me?o.value():o;return T||(T=new lr),_(Oe,pe,u,b,T)}}return se?(T||(T=new lr),lx(n,o,u,b,_,T)):!1}function F1(n){return et(n)&&xt(n)==bt}function Du(n,o,u,b){var _=u.length,T=_,P=!b;if(n==null)return!T;for(n=We(n);_--;){var I=u[_];if(P&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++_<T;){I=u[_];var z=I[0],V=n[z],X=I[1];if(P&&I[2]){if(V===r&&!(z in n))return!1}else{var ee=new lr;if(b)var se=b(V,X,z,n,o,ee);if(!(se===r?zi(X,V,d|w,b,ee):se))return!1}}return!0}function Gd(n){if(!Ve(n)||yx(n))return!1;var o=Ur(n)?Fw:Ab;return o.test($n(n))}function D1(n){return et(n)&&Ot(n)==yr}function N1(n){return et(n)&&xt(n)==Pt}function j1(n){return et(n)&&Ns(n.length)&&!!qe[Ot(n)]}function Kd(n){return typeof n=="function"?n:n==null?It:typeof n=="object"?Se(n)?Yd(n[0],n[1]):Xd(n):vh(n)}function Nu(n){if(!Bi(n))return Uw(n);var o=[];for(var u in We(n))Le.call(n,u)&&u!="constructor"&&o.push(u);return o}function z1(n){if(!Ve(n))return Sx(n);var o=Bi(n),u=[];for(var b in n)b=="constructor"&&(o||!Le.call(n,b))||u.push(b);return u}function ju(n,o){return n<o}function Vd(n,o){var u=-1,b=kt(n)?H(n.length):[];return an(n,function(_,T,P){b[++u]=o(_,T,P)}),b}function Xd(n){var o=el(n);return o.length==1&&o[0][2]?Cp(o[0][0],o[0][1]):function(u){return u===n||Du(u,n,o)}}function Yd(n,o){return rl(n)&&Pp(o)?Cp(cr(n),o):function(u){var b=pl(u,n);return b===r&&b===o?hl(u,n):zi(o,b,d|w)}}function Ss(n,o,u,b,_){n!==o&&Iu(o,function(T,P){if(_||(_=new lr),Ve(T))W1(n,o,P,u,Ss,b,_);else{var I=b?b(il(n,P),T,P+"",n,o,_):r;I===r&&(I=T),ku(n,P,I)}},$t)}function W1(n,o,u,b,_,T,P){var I=il(n,u),z=il(o,u),V=P.get(z);if(V){ku(n,u,V);return}var X=T?T(I,z,u+"",n,o,P):r,ee=X===r;if(ee){var se=Se(z),le=!se&&fn(z),me=!se&&!le&&ci(z);X=z,se||le||me?Se(I)?X=I:rt(I)?X=Ct(I):le?(ee=!1,X=lp(z,!0)):me?(ee=!1,X=cp(z,!0)):X=[]:qi(z)||In(z)?(X=I,In(I)?X=sh(I):(!Ve(I)||Ur(I))&&(X=Rp(z))):ee=!1}ee&&(P.set(z,X),_(X,z,b,T,P),P.delete(z)),ku(n,u,X)}function Jd(n,o){var u=n.length;if(u)return o+=o<0?u:0,Wr(o,u)?n[o]:r}function Qd(n,o,u){o.length?o=Ze(o,function(T){return Se(T)?function(P){return Cn(P,T.length===1?T[0]:T)}:T}):o=[It];var b=-1;o=Ze(o,jt(ge()));var _=Vd(n,function(T,P,I){var z=Ze(o,function(V){return V(T)});return{criteria:z,index:++b,value:T}});return hw(_,function(T,P){return ex(T,P,u)})}function U1(n,o){return ep(n,o,function(u,b){return hl(n,b)})}function ep(n,o,u){for(var b=-1,_=o.length,T={};++b<_;){var P=o[b],I=Cn(n,P);u(I,P)&&Wi(T,ln(P,n),I)}return T}function B1(n){return function(o){return Cn(o,n)}}function zu(n,o,u,b){var _=b?pw:Qn,T=-1,P=o.length,I=n;for(n===o&&(o=Ct(o)),u&&(I=Ze(n,jt(u)));++T<P;)for(var z=0,V=o[T],X=u?u(V):V;(z=_(I,X,z,b))>-1;)I!==n&&ds.call(I,z,1),ds.call(n,z,1);return n}function tp(n,o){for(var u=n?o.length:0,b=u-1;u--;){var _=o[u];if(u==b||_!==T){var T=_;Wr(_)?ds.call(n,_,1):Hu(n,_)}}return n}function Wu(n,o){return n+gs(Md()*(o-n+1))}function H1(n,o,u,b){for(var _=-1,T=lt(hs((o-n)/(u||1)),0),P=H(T);T--;)P[b?T:++_]=n,n+=u;return P}function Uu(n,o){var u="";if(!n||o<1||o>ce)return u;do o%2&&(u+=n),o=gs(o/2),o&&(n+=n);while(o);return u}function Te(n,o){return ol(kp(n,o,It),n+"")}function q1(n){return Nd(fi(n))}function Z1(n,o){var u=fi(n);return $s(u,Pn(o,0,u.length))}function Wi(n,o,u,b){if(!Ve(n))return n;o=ln(o,n);for(var _=-1,T=o.length,P=T-1,I=n;I!=null&&++_<T;){var z=cr(o[_]),V=u;if(z==="__proto__"||z==="constructor"||z==="prototype")return n;if(_!=P){var X=I[z];V=b?b(X,z,I):r,V===r&&(V=Ve(X)?X:Wr(o[_+1])?[]:{})}Di(I,z,V),I=I[z]}return n}var rp=ms?function(n,o){return ms.set(n,o),n}:It,G1=ps?function(n,o){return ps(n,"toString",{configurable:!0,enumerable:!1,value:ml(o),writable:!0})}:It;function K1(n){return $s(fi(n))}function er(n,o,u){var b=-1,_=n.length;o<0&&(o=-o>_?0:_+o),u=u>_?_:u,u<0&&(u+=_),_=o>u?0:u-o>>>0,o>>>=0;for(var T=H(_);++b<_;)T[b]=n[b+o];return T}function V1(n,o){var u;return an(n,function(b,_,T){return u=o(b,_,T),!u}),!!u}function Es(n,o,u){var b=0,_=n==null?b:n.length;if(typeof o=="number"&&o===o&&_<=ie){for(;b<_;){var T=b+_>>>1,P=n[T];P!==null&&!Wt(P)&&(u?P<=o:P<o)?b=T+1:_=T}return _}return Bu(n,o,It,u)}function Bu(n,o,u,b){var _=0,T=n==null?0:n.length;if(T===0)return 0;o=u(o);for(var P=o!==o,I=o===null,z=Wt(o),V=o===r;_<T;){var X=gs((_+T)/2),ee=u(n[X]),se=ee!==r,le=ee===null,me=ee===ee,Oe=Wt(ee);if(P)var pe=b||me;else V?pe=me&&(b||se):I?pe=me&&se&&(b||!le):z?pe=me&&se&&!le&&(b||!Oe):le||Oe?pe=!1:pe=b?ee<=o:ee<o;pe?_=X+1:T=X}return wt(T,ue)}function np(n,o){for(var u=-1,b=n.length,_=0,T=[];++u<b;){var P=n[u],I=o?o(P):P;if(!u||!fr(I,z)){var z=I;T[_++]=P===0?0:P}}return T}function ip(n){return typeof n=="number"?n:Wt(n)?te:+n}function zt(n){if(typeof n=="string")return n;if(Se(n))return Ze(n,zt)+"";if(Wt(n))return Fd?Fd.call(n):"";var o=n+"";return o=="0"&&1/n==-re?"-0":o}function un(n,o,u){var b=-1,_=rs,T=n.length,P=!0,I=[],z=I;if(u)P=!1,_=yu;else if(T>=s){var V=o?null:sx(n);if(V)return is(V);P=!1,_=ki,z=new Rn}else z=o?[]:I;e:for(;++b<T;){var X=n[b],ee=o?o(X):X;if(X=u||X!==0?X:0,P&&ee===ee){for(var se=z.length;se--;)if(z[se]===ee)continue e;o&&z.push(ee),I.push(X)}else _(z,ee,u)||(z!==I&&z.push(ee),I.push(X))}return I}function Hu(n,o){o=ln(o,n);var u=-1,b=o.length;if(!b)return!0;for(;++u<b;){var _=cr(o[u]);if(_==="__proto__"&&!Le.call(n,"__proto__")||(_==="constructor"||_==="prototype")&&u<b-1)return!1}var T=$p(n,o);return T==null||delete T[cr(tr(o))]}function op(n,o,u,b){return Wi(n,o,u(Cn(n,o)),b)}function _s(n,o,u,b){for(var _=n.length,T=b?_:-1;(b?T--:++T<_)&&o(n[T],T,n););return u?er(n,b?0:T,b?T+1:_):er(n,b?T+1:0,b?_:T)}function sp(n,o){var u=n;return u instanceof Pe&&(u=u.value()),bu(o,function(b,_){return _.func.apply(_.thisArg,nn([b],_.args))},u)}function qu(n,o,u){var b=n.length;if(b<2)return b?un(n[0]):[];for(var _=-1,T=H(b);++_<b;)for(var P=n[_],I=-1;++I<b;)I!=_&&(T[_]=Ni(T[_]||P,n[I],o,u));return un(ht(T,1),o,u)}function ap(n,o,u){for(var b=-1,_=n.length,T=o.length,P={};++b<_;){var I=b<T?o[b]:r;u(P,n[b],I)}return P}function Zu(n){return rt(n)?n:[]}function Gu(n){return typeof n=="function"?n:It}function ln(n,o){return Se(n)?n:rl(n,o)?[n]:Fp(Me(n))}var X1=Te;function cn(n,o,u){var b=n.length;return u=u===r?b:u,!o&&u>=b?n:er(n,o,u)}var up=Dw||function(n){return pt.clearTimeout(n)};function lp(n,o){if(o)return n.slice();var u=n.length,b=Cd?Cd(u):new n.constructor(u);return n.copy(b),b}function Ku(n){var o=new n.constructor(n.byteLength);return new cs(o).set(new cs(n)),o}function Y1(n,o){var u=o?Ku(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function J1(n){var o=new n.constructor(n.source,Zf.exec(n));return o.lastIndex=n.lastIndex,o}function Q1(n){return Fi?We(Fi.call(n)):{}}function cp(n,o){var u=o?Ku(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function fp(n,o){if(n!==o){var u=n!==r,b=n===null,_=n===n,T=Wt(n),P=o!==r,I=o===null,z=o===o,V=Wt(o);if(!I&&!V&&!T&&n>o||T&&P&&z&&!I&&!V||b&&P&&z||!u&&z||!_)return 1;if(!b&&!T&&!V&&n<o||V&&u&&_&&!b&&!T||I&&u&&_||!P&&_||!z)return-1}return 0}function ex(n,o,u){for(var b=-1,_=n.criteria,T=o.criteria,P=_.length,I=u.length;++b<P;){var z=fp(_[b],T[b]);if(z){if(b>=I)return z;var V=u[b];return z*(V=="desc"?-1:1)}}return n.index-o.index}function dp(n,o,u,b){for(var _=-1,T=n.length,P=u.length,I=-1,z=o.length,V=lt(T-P,0),X=H(z+V),ee=!b;++I<z;)X[I]=o[I];for(;++_<P;)(ee||_<T)&&(X[u[_]]=n[_]);for(;V--;)X[I++]=n[_++];return X}function pp(n,o,u,b){for(var _=-1,T=n.length,P=-1,I=u.length,z=-1,V=o.length,X=lt(T-I,0),ee=H(X+V),se=!b;++_<X;)ee[_]=n[_];for(var le=_;++z<V;)ee[le+z]=o[z];for(;++P<I;)(se||_<T)&&(ee[le+u[P]]=n[_++]);return ee}function Ct(n,o){var u=-1,b=n.length;for(o||(o=H(b));++u<b;)o[u]=n[u];return o}function xr(n,o,u,b){var _=!u;u||(u={});for(var T=-1,P=o.length;++T<P;){var I=o[T],z=b?b(u[I],n[I],I,u,n):r;z===r&&(z=n[I]),_?br(u,I,z):Di(u,I,z)}return u}function tx(n,o){return xr(n,tl(n),o)}function rx(n,o){return xr(n,Ap(n),o)}function Os(n,o){return function(u,b){var _=Se(u)?aw:_1,T=o?o():{};return _(u,n,ge(b,2),T)}}function ai(n){return Te(function(o,u){var b=-1,_=u.length,T=_>1?u[_-1]:r,P=_>2?u[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&At(u[0],u[1],P)&&(T=_<3?r:T,_=1),o=We(o);++b<_;){var I=u[b];I&&n(o,I,b,T)}return o})}function hp(n,o){return function(u,b){if(u==null)return u;if(!kt(u))return n(u,b);for(var _=u.length,T=o?_:-1,P=We(u);(o?T--:++T<_)&&b(P[T],T,P)!==!1;);return u}}function gp(n){return function(o,u,b){for(var _=-1,T=We(o),P=b(o),I=P.length;I--;){var z=P[n?I:++_];if(u(T[z],z,T)===!1)break}return o}}function nx(n,o,u){var b=o&h,_=Ui(n);function T(){var P=this&&this!==pt&&this instanceof T?_:n;return P.apply(b?u:this,arguments)}return T}function mp(n){return function(o){o=Me(o);var u=ei(o)?ur(o):r,b=u?u[0]:o.charAt(0),_=u?cn(u,1).join(""):o.slice(1);return b[n]()+_}}function ui(n){return function(o){return bu(gh(hh(o).replace(Gb,"")),n,"")}}function Ui(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=si(n.prototype),b=n.apply(u,o);return Ve(b)?b:u}}function ix(n,o,u){var b=Ui(n);function _(){for(var T=arguments.length,P=H(T),I=T,z=li(_);I--;)P[I]=arguments[I];var V=T<3&&P[0]!==z&&P[T-1]!==z?[]:on(P,z);if(T-=V.length,T<u)return xp(n,o,As,_.placeholder,r,P,V,r,r,u-T);var X=this&&this!==pt&&this instanceof _?b:n;return Dt(X,this,P)}return _}function vp(n){return function(o,u,b){var _=We(o);if(!kt(o)){var T=ge(u,3);o=ft(o),u=function(I){return T(_[I],I,_)}}var P=n(o,u,b);return P>-1?_[T?o[P]:P]:r}}function yp(n){return zr(function(o){var u=o.length,b=u,_=Jt.prototype.thru;for(n&&o.reverse();b--;){var T=o[b];if(typeof T!="function")throw new Yt(l);if(_&&!P&&Cs(T)=="wrapper")var P=new Jt([],!0)}for(b=P?b:u;++b<u;){T=o[b];var I=Cs(T),z=I=="wrapper"?Qu(T):r;z&&nl(z[0])&&z[1]==(M|R|C|D)&&!z[4].length&&z[9]==1?P=P[Cs(z[0])].apply(P,z[3]):P=T.length==1&&nl(T)?P[I]():P.thru(T)}return function(){var V=arguments,X=V[0];if(P&&V.length==1&&Se(X))return P.plant(X).value();for(var ee=0,se=u?o[ee].apply(this,V):X;++ee<u;)se=o[ee].call(this,se);return se}})}function As(n,o,u,b,_,T,P,I,z,V){var X=o&M,ee=o&h,se=o&S,le=o&(R|O),me=o&q,Oe=se?r:Ui(n);function pe(){for(var Re=arguments.length,Ce=H(Re),Ut=Re;Ut--;)Ce[Ut]=arguments[Ut];if(le)var Tt=li(pe),Bt=mw(Ce,Tt);if(b&&(Ce=dp(Ce,b,_,le)),T&&(Ce=pp(Ce,T,P,le)),Re-=Bt,le&&Re<V){var nt=on(Ce,Tt);return xp(n,o,As,pe.placeholder,u,Ce,nt,I,z,V-Re)}var dr=ee?u:this,Hr=se?dr[n]:n;return Re=Ce.length,I?Ce=_x(Ce,I):me&&Re>1&&Ce.reverse(),X&&z<Re&&(Ce.length=z),this&&this!==pt&&this instanceof pe&&(Hr=Oe||Ui(Hr)),Hr.apply(dr,Ce)}return pe}function bp(n,o){return function(u,b){return $1(u,n,o(b),{})}}function Ts(n,o){return function(u,b){var _;if(u===r&&b===r)return o;if(u!==r&&(_=u),b!==r){if(_===r)return b;typeof u=="string"||typeof b=="string"?(u=zt(u),b=zt(b)):(u=ip(u),b=ip(b)),_=n(u,b)}return _}}function Vu(n){return zr(function(o){return o=Ze(o,jt(ge())),Te(function(u){var b=this;return n(o,function(_){return Dt(_,b,u)})})})}function Rs(n,o){o=o===r?" ":zt(o);var u=o.length;if(u<2)return u?Uu(o,n):o;var b=Uu(o,hs(n/ti(o)));return ei(o)?cn(ur(b),0,n).join(""):b.slice(0,n)}function ox(n,o,u,b){var _=o&h,T=Ui(n);function P(){for(var I=-1,z=arguments.length,V=-1,X=b.length,ee=H(X+z),se=this&&this!==pt&&this instanceof P?T:n;++V<X;)ee[V]=b[V];for(;z--;)ee[V++]=arguments[++I];return Dt(se,_?u:this,ee)}return P}function wp(n){return function(o,u,b){return b&&typeof b!="number"&&At(o,u,b)&&(u=b=r),o=Br(o),u===r?(u=o,o=0):u=Br(u),b=b===r?o<u?1:-1:Br(b),H1(o,u,b,n)}}function Ps(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=rr(o),u=rr(u)),n(o,u)}}function xp(n,o,u,b,_,T,P,I,z,V){var X=o&R,ee=X?P:r,se=X?r:P,le=X?T:r,me=X?r:T;o|=X?C:U,o&=~(X?U:C),o&E||(o&=-4);var Oe=[n,o,_,le,ee,me,se,I,z,V],pe=u.apply(r,Oe);return nl(n)&&Ip(pe,Oe),pe.placeholder=b,Lp(pe,n,o)}function Xu(n){var o=ut[n];return function(u,b){if(u=rr(u),b=b==null?0:wt(Ee(b),292),b&&Ld(u)){var _=(Me(u)+"e").split("e"),T=o(_[0]+"e"+(+_[1]+b));return _=(Me(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-b))}return o(u)}}var sx=ii&&1/is(new ii([,-0]))[1]==re?function(n){return new ii(n)}:bl;function Sp(n){return function(o){var u=xt(o);return u==bt?Au(o):u==Pt?Ew(o):gw(o,n(o))}}function jr(n,o,u,b,_,T,P,I){var z=o&S;if(!z&&typeof n!="function")throw new Yt(l);var V=b?b.length:0;if(V||(o&=-97,b=_=r),P=P===r?P:lt(Ee(P),0),I=I===r?I:Ee(I),V-=_?_.length:0,o&U){var X=b,ee=_;b=_=r}var se=z?r:Qu(n),le=[n,o,u,b,_,X,ee,T,P,I];if(se&&xx(le,se),n=le[0],o=le[1],u=le[2],b=le[3],_=le[4],I=le[9]=le[9]===r?z?0:n.length:lt(le[9]-V,0),!I&&o&(R|O)&&(o&=-25),!o||o==h)var me=nx(n,o,u);else o==R||o==O?me=ix(n,o,I):(o==C||o==(h|C))&&!_.length?me=ox(n,o,u,b):me=As.apply(r,le);var Oe=se?rp:Ip;return Lp(Oe(me,le),n,o)}function Ep(n,o,u,b){return n===r||fr(n,ni[u])&&!Le.call(b,u)?o:n}function _p(n,o,u,b,_,T){return Ve(n)&&Ve(o)&&(T.set(o,n),Ss(n,o,r,_p,T),T.delete(o)),n}function ax(n){return qi(n)?r:n}function Op(n,o,u,b,_,T){var P=u&d,I=n.length,z=o.length;if(I!=z&&!(P&&z>I))return!1;var V=T.get(n),X=T.get(o);if(V&&X)return V==o&&X==n;var ee=-1,se=!0,le=u&w?new Rn:r;for(T.set(n,o),T.set(o,n);++ee<I;){var me=n[ee],Oe=o[ee];if(b)var pe=P?b(Oe,me,ee,o,n,T):b(me,Oe,ee,n,o,T);if(pe!==r){if(pe)continue;se=!1;break}if(le){if(!wu(o,function(Re,Ce){if(!ki(le,Ce)&&(me===Re||_(me,Re,u,b,T)))return le.push(Ce)})){se=!1;break}}else if(!(me===Oe||_(me,Oe,u,b,T))){se=!1;break}}return T.delete(n),T.delete(o),se}function ux(n,o,u,b,_,T,P){switch(u){case Yn:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case tn:return!(n.byteLength!=o.byteLength||!T(new cs(n),new cs(o)));case Ae:case _e:case Yr:return fr(+n,+o);case oe:return n.name==o.name&&n.message==o.message;case yr:case Jr:return n==o+"";case bt:var I=Au;case Pt:var z=b&d;if(I||(I=is),n.size!=o.size&&!z)return!1;var V=P.get(n);if(V)return V==o;b|=w,P.set(n,o);var X=Op(I(n),I(o),b,_,T,P);return P.delete(n),X;case Qr:if(Fi)return Fi.call(n)==Fi.call(o)}return!1}function lx(n,o,u,b,_,T){var P=u&d,I=Yu(n),z=I.length,V=Yu(o),X=V.length;if(z!=X&&!P)return!1;for(var ee=z;ee--;){var se=I[ee];if(!(P?se in o:Le.call(o,se)))return!1}var le=T.get(n),me=T.get(o);if(le&&me)return le==o&&me==n;var Oe=!0;T.set(n,o),T.set(o,n);for(var pe=P;++ee<z;){se=I[ee];var Re=n[se],Ce=o[se];if(b)var Ut=P?b(Ce,Re,se,o,n,T):b(Re,Ce,se,n,o,T);if(!(Ut===r?Re===Ce||_(Re,Ce,u,b,T):Ut)){Oe=!1;break}pe||(pe=se=="constructor")}if(Oe&&!pe){var Tt=n.constructor,Bt=o.constructor;Tt!=Bt&&"constructor"in n&&"constructor"in o&&!(typeof Tt=="function"&&Tt instanceof Tt&&typeof Bt=="function"&&Bt instanceof Bt)&&(Oe=!1)}return T.delete(n),T.delete(o),Oe}function zr(n){return ol(kp(n,r,zp),n+"")}function Yu(n){return qd(n,ft,tl)}function Ju(n){return qd(n,$t,Ap)}var Qu=ms?function(n){return ms.get(n)}:bl;function Cs(n){for(var o=n.name+"",u=oi[o],b=Le.call(oi,o)?u.length:0;b--;){var _=u[b],T=_.func;if(T==null||T==n)return _.name}return o}function li(n){var o=Le.call(A,"placeholder")?A:n;return o.placeholder}function ge(){var n=A.iteratee||vl;return n=n===vl?Kd:n,arguments.length?n(arguments[0],arguments[1]):n}function ks(n,o){var u=n.__data__;return vx(o)?u[typeof o=="string"?"string":"hash"]:u.map}function el(n){for(var o=ft(n),u=o.length;u--;){var b=o[u],_=n[b];o[u]=[b,_,Pp(_)]}return o}function kn(n,o){var u=ww(n,o);return Gd(u)?u:r}function cx(n){var o=Le.call(n,An),u=n[An];try{n[An]=r;var b=!0}catch{}var _=us.call(n);return b&&(o?n[An]=u:delete n[An]),_}var tl=Ru?function(n){return n==null?[]:(n=We(n),rn(Ru(n),function(o){return $d.call(n,o)}))}:wl,Ap=Ru?function(n){for(var o=[];n;)nn(o,tl(n)),n=fs(n);return o}:wl,xt=Ot;(Pu&&xt(new Pu(new ArrayBuffer(1)))!=Yn||Ii&&xt(new Ii)!=bt||Cu&&xt(Cu.resolve())!=Xo||ii&&xt(new ii)!=Pt||Li&&xt(new Li)!=en)&&(xt=function(n){var o=Ot(n),u=o==ar?n.constructor:r,b=u?$n(u):"";if(b)switch(b){case Zw:return Yn;case Gw:return bt;case Kw:return Xo;case Vw:return Pt;case Xw:return en}return o});function fx(n,o,u){for(var b=-1,_=u.length;++b<_;){var T=u[b],P=T.size;switch(T.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=wt(o,n+P);break;case"takeRight":n=lt(n,o-P);break}}return{start:n,end:o}}function dx(n){var o=n.match(bb);return o?o[1].split(wb):[]}function Tp(n,o,u){o=ln(o,n);for(var b=-1,_=o.length,T=!1;++b<_;){var P=cr(o[b]);if(!(T=n!=null&&u(n,P)))break;n=n[P]}return T||++b!=_?T:(_=n==null?0:n.length,!!_&&Ns(_)&&Wr(P,_)&&(Se(n)||In(n)))}function px(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Le.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Rp(n){return typeof n.constructor=="function"&&!Bi(n)?si(fs(n)):{}}function hx(n,o,u){var b=n.constructor;switch(o){case tn:return Ku(n);case Ae:case _e:return new b(+n);case Yn:return Y1(n,u);case eu:case tu:case ru:case nu:case iu:case ou:case su:case au:case uu:return cp(n,u);case bt:return new b;case Yr:case Jr:return new b(n);case yr:return J1(n);case Pt:return new b;case Qr:return Q1(n)}}function gx(n,o){var u=o.length;if(!u)return n;var b=u-1;return o[b]=(u>1?"& ":"")+o[b],o=o.join(u>2?", ":" "),n.replace(yb,`{
182
+ */var x$=bo.exports,Sm;function S$(){return Sm||(Sm=1,(function(e,t){(function(){var r,i="4.18.1",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="Invalid `imports` option passed into `_.template`",m="__lodash_hash_undefined__",y=500,p="__lodash_placeholder__",g=1,v=2,x=4,d=1,w=2,h=1,S=2,E=4,R=8,O=16,C=32,U=64,M=128,D=256,q=512,N=30,L="...",B=800,Z=16,k=1,Q=2,J=3,re=1/0,ce=9007199254740991,G=17976931348623157e292,te=NaN,ne=4294967295,ue=ne-1,ie=ne>>>1,he=[["ary",M],["bind",h],["bindKey",S],["curry",R],["curryRight",O],["flip",q],["partial",C],["partialRight",U],["rearg",D]],fe="[object Arguments]",ve="[object Array]",xe="[object AsyncFunction]",Ae="[object Boolean]",_e="[object Date]",ot="[object DOMException]",oe="[object Error]",ct="[object Function]",Fr="[object GeneratorFunction]",bt="[object Map]",Jr="[object Number]",Vo="[object Null]",ar="[object Object]",Xo="[object Promise]",Dr="[object Proxy]",yr="[object RegExp]",Pt="[object Set]",Qr="[object String]",en="[object Symbol]",Yo="[object Undefined]",tn="[object WeakMap]",Jo="[object WeakSet]",rn="[object ArrayBuffer]",Yn="[object DataView]",Qa="[object Float32Array]",eu="[object Float64Array]",tu="[object Int8Array]",ru="[object Int16Array]",nu="[object Int32Array]",iu="[object Uint8Array]",ou="[object Uint8ClampedArray]",su="[object Uint16Array]",au="[object Uint32Array]",lb=/\b__p \+= '';/g,cb=/\b(__p \+=) '' \+/g,fb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wf=/&(?:amp|lt|gt|quot|#39);/g,Uf=/[&<>"']/g,db=RegExp(Wf.source),pb=RegExp(Uf.source),hb=/<%-([\s\S]+?)%>/g,gb=/<%([\s\S]+?)%>/g,Bf=/<%=([\s\S]+?)%>/g,mb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vb=/^\w*$/,yb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,uu=/[\\^$.*+?()[\]{}|]/g,bb=RegExp(uu.source),lu=/^\s+/,wb=/\s/,xb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Sb=/\{\n\/\* \[wrapped with (.+)\] \*/,Eb=/,? & /,_b=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hf=/[()=,{}\[\]\/\s]/,Ob=/\\(\\)?/g,Ab=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qf=/\w*$/,Tb=/^[-+]0x[0-9a-f]+$/i,Rb=/^0b[01]+$/i,Pb=/^\[object .+?Constructor\]$/,Cb=/^0o[0-7]+$/i,kb=/^(?:0|[1-9]\d*)$/,$b=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qo=/($^)/,Ib=/['\n\r\u2028\u2029\\]/g,es="\\ud800-\\udfff",Lb="\\u0300-\\u036f",Mb="\\ufe20-\\ufe2f",Fb="\\u20d0-\\u20ff",Zf=Lb+Mb+Fb,Gf="\\u2700-\\u27bf",Kf="a-z\\xdf-\\xf6\\xf8-\\xff",Db="\\xac\\xb1\\xd7\\xf7",Nb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jb="\\u2000-\\u206f",zb=" \\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",Vf="A-Z\\xc0-\\xd6\\xd8-\\xde",Xf="\\ufe0e\\ufe0f",Yf=Db+Nb+jb+zb,cu="['’]",Wb="["+es+"]",Jf="["+Yf+"]",ts="["+Zf+"]",Qf="\\d+",Ub="["+Gf+"]",ed="["+Kf+"]",td="[^"+es+Yf+Qf+Gf+Kf+Vf+"]",fu="\\ud83c[\\udffb-\\udfff]",Bb="(?:"+ts+"|"+fu+")",rd="[^"+es+"]",du="(?:\\ud83c[\\udde6-\\uddff]){2}",pu="[\\ud800-\\udbff][\\udc00-\\udfff]",Jn="["+Vf+"]",nd="\\u200d",id="(?:"+ed+"|"+td+")",Hb="(?:"+Jn+"|"+td+")",od="(?:"+cu+"(?:d|ll|m|re|s|t|ve))?",sd="(?:"+cu+"(?:D|LL|M|RE|S|T|VE))?",ad=Bb+"?",ud="["+Xf+"]?",qb="(?:"+nd+"(?:"+[rd,du,pu].join("|")+")"+ud+ad+")*",Zb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ld=ud+ad+qb,Kb="(?:"+[Ub,du,pu].join("|")+")"+ld,Vb="(?:"+[rd+ts+"?",ts,du,pu,Wb].join("|")+")",Xb=RegExp(cu,"g"),Yb=RegExp(ts,"g"),hu=RegExp(fu+"(?="+fu+")|"+Vb+ld,"g"),Jb=RegExp([Jn+"?"+ed+"+"+od+"(?="+[Jf,Jn,"$"].join("|")+")",Hb+"+"+sd+"(?="+[Jf,Jn+id,"$"].join("|")+")",Jn+"?"+id+"+"+od,Jn+"+"+sd,Gb,Zb,Qf,Kb].join("|"),"g"),Qb=RegExp("["+nd+es+Zf+Xf+"]"),ew=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tw=["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"],rw=-1,qe={};qe[Qa]=qe[eu]=qe[tu]=qe[ru]=qe[nu]=qe[iu]=qe[ou]=qe[su]=qe[au]=!0,qe[fe]=qe[ve]=qe[rn]=qe[Ae]=qe[Yn]=qe[_e]=qe[oe]=qe[ct]=qe[bt]=qe[Jr]=qe[ar]=qe[yr]=qe[Pt]=qe[Qr]=qe[tn]=!1;var Ue={};Ue[fe]=Ue[ve]=Ue[rn]=Ue[Yn]=Ue[Ae]=Ue[_e]=Ue[Qa]=Ue[eu]=Ue[tu]=Ue[ru]=Ue[nu]=Ue[bt]=Ue[Jr]=Ue[ar]=Ue[yr]=Ue[Pt]=Ue[Qr]=Ue[en]=Ue[iu]=Ue[ou]=Ue[su]=Ue[au]=!0,Ue[oe]=Ue[ct]=Ue[tn]=!1;var nw={À:"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"},iw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ow={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},sw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},aw=parseFloat,uw=parseInt,cd=typeof Ws=="object"&&Ws&&Ws.Object===Object&&Ws,lw=typeof self=="object"&&self&&self.Object===Object&&self,pt=cd||lw||Function("return this")(),gu=t&&!t.nodeType&&t,An=gu&&!0&&e&&!e.nodeType&&e,fd=An&&An.exports===gu,mu=fd&&cd.process,Xt=(function(){try{var j=An&&An.require&&An.require("util").types;return j||mu&&mu.binding&&mu.binding("util")}catch{}})(),dd=Xt&&Xt.isArrayBuffer,pd=Xt&&Xt.isDate,hd=Xt&&Xt.isMap,gd=Xt&&Xt.isRegExp,md=Xt&&Xt.isSet,vd=Xt&&Xt.isTypedArray;function Dt(j,K,H){switch(H.length){case 0:return j.call(K);case 1:return j.call(K,H[0]);case 2:return j.call(K,H[0],H[1]);case 3:return j.call(K,H[0],H[1],H[2])}return j.apply(K,H)}function cw(j,K,H,ae){for(var be=-1,$e=j==null?0:j.length;++be<$e;){var ut=j[be];K(ae,ut,H(ut),j)}return ae}function Nt(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae&&K(j[H],H,j)!==!1;);return j}function fw(j,K){for(var H=j==null?0:j.length;H--&&K(j[H],H,j)!==!1;);return j}function yd(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae;)if(!K(j[H],H,j))return!1;return!0}function nn(j,K){for(var H=-1,ae=j==null?0:j.length,be=0,$e=[];++H<ae;){var ut=j[H];K(ut,H,j)&&($e[be++]=ut)}return $e}function rs(j,K){var H=j==null?0:j.length;return!!H&&Qn(j,K,0)>-1}function vu(j,K,H){for(var ae=-1,be=j==null?0:j.length;++ae<be;)if(H(K,j[ae]))return!0;return!1}function Ze(j,K){for(var H=-1,ae=j==null?0:j.length,be=Array(ae);++H<ae;)be[H]=K(j[H],H,j);return be}function on(j,K){for(var H=-1,ae=K.length,be=j.length;++H<ae;)j[be+H]=K[H];return j}function yu(j,K,H,ae){var be=-1,$e=j==null?0:j.length;for(ae&&$e&&(H=j[++be]);++be<$e;)H=K(H,j[be],be,j);return H}function dw(j,K,H,ae){var be=j==null?0:j.length;for(ae&&be&&(H=j[--be]);be--;)H=K(H,j[be],be,j);return H}function bu(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae;)if(K(j[H],H,j))return!0;return!1}var pw=wu("length");function hw(j){return j.split("")}function gw(j){return j.match(_b)||[]}function bd(j,K,H){var ae;return H(j,function(be,$e,ut){if(K(be,$e,ut))return ae=$e,!1}),ae}function ns(j,K,H,ae){for(var be=j.length,$e=H+(ae?1:-1);ae?$e--:++$e<be;)if(K(j[$e],$e,j))return $e;return-1}function Qn(j,K,H){return K===K?Tw(j,K,H):ns(j,wd,H)}function mw(j,K,H,ae){for(var be=H-1,$e=j.length;++be<$e;)if(ae(j[be],K))return be;return-1}function wd(j){return j!==j}function xd(j,K){var H=j==null?0:j.length;return H?Su(j,K)/H:te}function wu(j){return function(K){return K==null?r:K[j]}}function xu(j){return function(K){return j==null?r:j[K]}}function Sd(j,K,H,ae,be){return be(j,function($e,ut,We){H=ae?(ae=!1,$e):K(H,$e,ut,We)}),H}function vw(j,K){var H=j.length;for(j.sort(K);H--;)j[H]=j[H].value;return j}function Su(j,K){for(var H,ae=-1,be=j.length;++ae<be;){var $e=K(j[ae]);$e!==r&&(H=H===r?$e:H+$e)}return H}function Eu(j,K){for(var H=-1,ae=Array(j);++H<j;)ae[H]=K(H);return ae}function yw(j,K){return Ze(K,function(H){return[H,j[H]]})}function Ed(j){return j&&j.slice(0,Td(j)+1).replace(lu,"")}function jt(j){return function(K){return j(K)}}function _u(j,K){return Ze(K,function(H){return j[H]})}function ki(j,K){return j.has(K)}function _d(j,K){for(var H=-1,ae=j.length;++H<ae&&Qn(K,j[H],0)>-1;);return H}function Od(j,K){for(var H=j.length;H--&&Qn(K,j[H],0)>-1;);return H}function bw(j,K){for(var H=j.length,ae=0;H--;)j[H]===K&&++ae;return ae}var ww=xu(nw),xw=xu(iw);function Sw(j){return"\\"+sw[j]}function Ew(j,K){return j==null?r:j[K]}function ei(j){return Qb.test(j)}function _w(j){return ew.test(j)}function Ow(j){for(var K,H=[];!(K=j.next()).done;)H.push(K.value);return H}function Ou(j){var K=-1,H=Array(j.size);return j.forEach(function(ae,be){H[++K]=[be,ae]}),H}function Ad(j,K){return function(H){return j(K(H))}}function sn(j,K){for(var H=-1,ae=j.length,be=0,$e=[];++H<ae;){var ut=j[H];(ut===K||ut===p)&&(j[H]=p,$e[be++]=H)}return $e}function is(j){var K=-1,H=Array(j.size);return j.forEach(function(ae){H[++K]=ae}),H}function Aw(j){var K=-1,H=Array(j.size);return j.forEach(function(ae){H[++K]=[ae,ae]}),H}function Tw(j,K,H){for(var ae=H-1,be=j.length;++ae<be;)if(j[ae]===K)return ae;return-1}function Rw(j,K,H){for(var ae=H+1;ae--;)if(j[ae]===K)return ae;return ae}function ti(j){return ei(j)?Cw(j):pw(j)}function ur(j){return ei(j)?kw(j):hw(j)}function Td(j){for(var K=j.length;K--&&wb.test(j.charAt(K)););return K}var Pw=xu(ow);function Cw(j){for(var K=hu.lastIndex=0;hu.test(j);)++K;return K}function kw(j){return j.match(hu)||[]}function $w(j){return j.match(Jb)||[]}var Iw=(function j(K){K=K==null?pt:ri.defaults(pt.Object(),K,ri.pick(pt,tw));var H=K.Array,ae=K.Date,be=K.Error,$e=K.Function,ut=K.Math,We=K.Object,Au=K.RegExp,Lw=K.String,Yt=K.TypeError,os=H.prototype,Mw=$e.prototype,ni=We.prototype,ss=K["__core-js_shared__"],as=Mw.toString,Le=ni.hasOwnProperty,Fw=0,Rd=(function(){var n=/[^.]+$/.exec(ss&&ss.keys&&ss.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),us=ni.toString,Dw=as.call(We),Nw=pt._,jw=Au("^"+as.call(Le).replace(uu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ls=fd?K.Buffer:r,an=K.Symbol,cs=K.Uint8Array,Pd=ls?ls.allocUnsafe:r,fs=Ad(We.getPrototypeOf,We),Cd=We.create,kd=ni.propertyIsEnumerable,ds=os.splice,$d=an?an.isConcatSpreadable:r,$i=an?an.iterator:r,Tn=an?an.toStringTag:r,ps=(function(){try{var n=$n(We,"defineProperty");return n({},"",{}),n}catch{}})(),zw=K.clearTimeout!==pt.clearTimeout&&K.clearTimeout,Ww=ae&&ae.now!==pt.Date.now&&ae.now,Uw=K.setTimeout!==pt.setTimeout&&K.setTimeout,hs=ut.ceil,gs=ut.floor,Tu=We.getOwnPropertySymbols,Bw=ls?ls.isBuffer:r,Id=K.isFinite,Hw=os.join,qw=Ad(We.keys,We),lt=ut.max,wt=ut.min,Zw=ae.now,Gw=K.parseInt,Ld=ut.random,Kw=os.reverse,Ru=$n(K,"DataView"),Ii=$n(K,"Map"),Pu=$n(K,"Promise"),ii=$n(K,"Set"),Li=$n(K,"WeakMap"),Mi=$n(We,"create"),ms=Li&&new Li,oi={},Vw=In(Ru),Xw=In(Ii),Yw=In(Pu),Jw=In(ii),Qw=In(Li),vs=an?an.prototype:r,Fi=vs?vs.valueOf:r,Md=vs?vs.toString:r;function A(n){if(et(n)&&!Se(n)&&!(n instanceof Pe)){if(n instanceof Jt)return n;if(Le.call(n,"__wrapped__"))return Fp(n)}return new Jt(n)}var si=(function(){function n(){}return function(o){if(!Ve(o))return{};if(Cd)return Cd(o);n.prototype=o;var l=new n;return n.prototype=r,l}})();function ys(){}function Jt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:hb,evaluate:gb,interpolate:Bf,variable:"",imports:{_:A}},A.prototype=ys.prototype,A.prototype.constructor=A,Jt.prototype=si(ys.prototype),Jt.prototype.constructor=Jt;function Pe(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function e1(){var n=new Pe(this.__wrapped__);return n.__actions__=Ct(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ct(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ct(this.__views__),n}function t1(){if(this.__filtered__){var n=new Pe(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function r1(){var n=this.__wrapped__.value(),o=this.__dir__,l=Se(n),b=o<0,_=l?n.length:0,T=hx(0,_,this.__views__),P=T.start,I=T.end,z=I-P,V=b?I:P-1,X=this.__iteratees__,ee=X.length,se=0,le=wt(z,this.__takeCount__);if(!l||!b&&_==z&&le==z)return op(n,this.__actions__);var me=[];e:for(;z--&&se<le;){V+=o;for(var Oe=-1,pe=n[V];++Oe<ee;){var Re=X[Oe],Ce=Re.iteratee,Ut=Re.type,Tt=Ce(pe);if(Ut==Q)pe=Tt;else if(!Tt){if(Ut==k)continue e;break e}}me[se++]=pe}return me}Pe.prototype=si(ys.prototype),Pe.prototype.constructor=Pe;function Rn(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function n1(){this.__data__=Mi?Mi(null):{},this.size=0}function i1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function o1(n){var o=this.__data__;if(Mi){var l=o[n];return l===m?r:l}return Le.call(o,n)?o[n]:r}function s1(n){var o=this.__data__;return Mi?o[n]!==r:Le.call(o,n)}function a1(n,o){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=Mi&&o===r?m:o,this}Rn.prototype.clear=n1,Rn.prototype.delete=i1,Rn.prototype.get=o1,Rn.prototype.has=s1,Rn.prototype.set=a1;function Nr(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function u1(){this.__data__=[],this.size=0}function l1(n){var o=this.__data__,l=bs(o,n);if(l<0)return!1;var b=o.length-1;return l==b?o.pop():ds.call(o,l,1),--this.size,!0}function c1(n){var o=this.__data__,l=bs(o,n);return l<0?r:o[l][1]}function f1(n){return bs(this.__data__,n)>-1}function d1(n,o){var l=this.__data__,b=bs(l,n);return b<0?(++this.size,l.push([n,o])):l[b][1]=o,this}Nr.prototype.clear=u1,Nr.prototype.delete=l1,Nr.prototype.get=c1,Nr.prototype.has=f1,Nr.prototype.set=d1;function jr(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function p1(){this.size=0,this.__data__={hash:new Rn,map:new(Ii||Nr),string:new Rn}}function h1(n){var o=ks(this,n).delete(n);return this.size-=o?1:0,o}function g1(n){return ks(this,n).get(n)}function m1(n){return ks(this,n).has(n)}function v1(n,o){var l=ks(this,n),b=l.size;return l.set(n,o),this.size+=l.size==b?0:1,this}jr.prototype.clear=p1,jr.prototype.delete=h1,jr.prototype.get=g1,jr.prototype.has=m1,jr.prototype.set=v1;function Pn(n){var o=-1,l=n==null?0:n.length;for(this.__data__=new jr;++o<l;)this.add(n[o])}function y1(n){return this.__data__.set(n,m),this}function b1(n){return this.__data__.has(n)}Pn.prototype.add=Pn.prototype.push=y1,Pn.prototype.has=b1;function lr(n){var o=this.__data__=new Nr(n);this.size=o.size}function w1(){this.__data__=new Nr,this.size=0}function x1(n){var o=this.__data__,l=o.delete(n);return this.size=o.size,l}function S1(n){return this.__data__.get(n)}function E1(n){return this.__data__.has(n)}function _1(n,o){var l=this.__data__;if(l instanceof Nr){var b=l.__data__;if(!Ii||b.length<s-1)return b.push([n,o]),this.size=++l.size,this;l=this.__data__=new jr(b)}return l.set(n,o),this.size=l.size,this}lr.prototype.clear=w1,lr.prototype.delete=x1,lr.prototype.get=S1,lr.prototype.has=E1,lr.prototype.set=_1;function Fd(n,o){var l=Se(n),b=!l&&Ln(n),_=!l&&!b&&dn(n),T=!l&&!b&&!_&&ci(n),P=l||b||_||T,I=P?Eu(n.length,Lw):[],z=I.length;for(var V in n)(o||Le.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Ur(V,z)))&&I.push(V);return I}function Dd(n){var o=n.length;return o?n[zu(0,o-1)]:r}function O1(n,o){return $s(Ct(n),Cn(o,0,n.length))}function A1(n){return $s(Ct(n))}function Cu(n,o,l){(l!==r&&!fr(n[o],l)||l===r&&!(o in n))&&br(n,o,l)}function Di(n,o,l){var b=n[o];(!(Le.call(n,o)&&fr(b,l))||l===r&&!(o in n))&&br(n,o,l)}function bs(n,o){for(var l=n.length;l--;)if(fr(n[l][0],o))return l;return-1}function T1(n,o,l,b){return un(n,function(_,T,P){o(b,_,l(_),P)}),b}function Nd(n,o){return n&&xr(o,ft(o),n)}function R1(n,o){return n&&xr(o,$t(o),n)}function br(n,o,l){o=="__proto__"&&ps?ps(n,o,{configurable:!0,enumerable:!0,value:l,writable:!0}):n[o]=l}function ku(n,o){for(var l=-1,b=o.length,_=H(b),T=n==null;++l<b;)_[l]=T?r:dl(n,o[l]);return _}function Cn(n,o,l){return n===n&&(l!==r&&(n=n<=l?n:l),o!==r&&(n=n>=o?n:o)),n}function Qt(n,o,l,b,_,T){var P,I=o&g,z=o&v,V=o&x;if(l&&(P=_?l(n,b,_,T):l(n)),P!==r)return P;if(!Ve(n))return n;var X=Se(n);if(X){if(P=mx(n),!I)return Ct(n,P)}else{var ee=xt(n),se=ee==ct||ee==Fr;if(dn(n))return up(n,I);if(ee==ar||ee==fe||se&&!_){if(P=z||se?{}:Tp(n),!I)return z?ox(n,R1(P,n)):ix(n,Nd(P,n))}else{if(!Ue[ee])return _?n:{};P=vx(n,ee,I)}}T||(T=new lr);var le=T.get(n);if(le)return le;T.set(n,P),rh(n)?n.forEach(function(pe){P.add(Qt(pe,o,l,pe,n,T))}):eh(n)&&n.forEach(function(pe,Re){P.set(Re,Qt(pe,o,l,Re,n,T))});var me=V?z?Yu:Xu:z?$t:ft,Oe=X?r:me(n);return Nt(Oe||n,function(pe,Re){Oe&&(Re=pe,pe=n[Re]),Di(P,Re,Qt(pe,o,l,Re,n,T))}),P}function P1(n){var o=ft(n);return function(l){return jd(l,n,o)}}function jd(n,o,l){var b=l.length;if(n==null)return!b;for(n=We(n);b--;){var _=l[b],T=o[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function zd(n,o,l){if(typeof n!="function")throw new Yt(u);return Hi(function(){n.apply(r,l)},o)}function Ni(n,o,l,b){var _=-1,T=rs,P=!0,I=n.length,z=[],V=o.length;if(!I)return z;l&&(o=Ze(o,jt(l))),b?(T=vu,P=!1):o.length>=s&&(T=ki,P=!1,o=new Pn(o));e:for(;++_<I;){var X=n[_],ee=l==null?X:l(X);if(X=b||X!==0?X:0,P&&ee===ee){for(var se=V;se--;)if(o[se]===ee)continue e;z.push(X)}else T(o,ee,b)||z.push(X)}return z}var un=pp(wr),Wd=pp(Iu,!0);function C1(n,o){var l=!0;return un(n,function(b,_,T){return l=!!o(b,_,T),l}),l}function ws(n,o,l){for(var b=-1,_=n.length;++b<_;){var T=n[b],P=o(T);if(P!=null&&(I===r?P===P&&!Wt(P):l(P,I)))var I=P,z=T}return z}function k1(n,o,l,b){var _=n.length;for(l=Ee(l),l<0&&(l=-l>_?0:_+l),b=b===r||b>_?_:Ee(b),b<0&&(b+=_),b=l>b?0:ih(b);l<b;)n[l++]=o;return n}function Ud(n,o){var l=[];return un(n,function(b,_,T){o(b,_,T)&&l.push(b)}),l}function ht(n,o,l,b,_){var T=-1,P=n.length;for(l||(l=bx),_||(_=[]);++T<P;){var I=n[T];o>0&&l(I)?o>1?ht(I,o-1,l,b,_):on(_,I):b||(_[_.length]=I)}return _}var $u=hp(),Bd=hp(!0);function wr(n,o){return n&&$u(n,o,ft)}function Iu(n,o){return n&&Bd(n,o,ft)}function xs(n,o){return nn(o,function(l){return Br(n[l])})}function kn(n,o){o=cn(o,n);for(var l=0,b=o.length;n!=null&&l<b;)n=n[cr(o[l++])];return l&&l==b?n:r}function Hd(n,o,l){var b=o(n);return Se(n)?b:on(b,l(n))}function Ot(n){return n==null?n===r?Yo:Vo:Tn&&Tn in We(n)?px(n):Ax(n)}function Lu(n,o){return n>o}function $1(n,o){return n!=null&&Le.call(n,o)}function I1(n,o){return n!=null&&o in We(n)}function L1(n,o,l){return n>=wt(o,l)&&n<lt(o,l)}function Mu(n,o,l){for(var b=l?vu:rs,_=n[0].length,T=n.length,P=T,I=H(T),z=1/0,V=[];P--;){var X=n[P];P&&o&&(X=Ze(X,jt(o))),z=wt(X.length,z),I[P]=!l&&(o||_>=120&&X.length>=120)?new Pn(P&&X):r}X=n[0];var ee=-1,se=I[0];e:for(;++ee<_&&V.length<z;){var le=X[ee],me=o?o(le):le;if(le=l||le!==0?le:0,!(se?ki(se,me):b(V,me,l))){for(P=T;--P;){var Oe=I[P];if(!(Oe?ki(Oe,me):b(n[P],me,l)))continue e}se&&se.push(me),V.push(le)}}return V}function M1(n,o,l,b){return wr(n,function(_,T,P){o(b,l(_),T,P)}),b}function ji(n,o,l){o=cn(o,n),n=kp(n,o);var b=n==null?n:n[cr(tr(o))];return b==null?r:Dt(b,n,l)}function qd(n){return et(n)&&Ot(n)==fe}function F1(n){return et(n)&&Ot(n)==rn}function D1(n){return et(n)&&Ot(n)==_e}function zi(n,o,l,b,_){return n===o?!0:n==null||o==null||!et(n)&&!et(o)?n!==n&&o!==o:N1(n,o,l,b,zi,_)}function N1(n,o,l,b,_,T){var P=Se(n),I=Se(o),z=P?ve:xt(n),V=I?ve:xt(o);z=z==fe?ar:z,V=V==fe?ar:V;var X=z==ar,ee=V==ar,se=z==V;if(se&&dn(n)){if(!dn(o))return!1;P=!0,X=!1}if(se&&!X)return T||(T=new lr),P||ci(n)?_p(n,o,l,b,_,T):fx(n,o,z,l,b,_,T);if(!(l&d)){var le=X&&Le.call(n,"__wrapped__"),me=ee&&Le.call(o,"__wrapped__");if(le||me){var Oe=le?n.value():n,pe=me?o.value():o;return T||(T=new lr),_(Oe,pe,l,b,T)}}return se?(T||(T=new lr),dx(n,o,l,b,_,T)):!1}function j1(n){return et(n)&&xt(n)==bt}function Fu(n,o,l,b){var _=l.length,T=_,P=!b;if(n==null)return!T;for(n=We(n);_--;){var I=l[_];if(P&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++_<T;){I=l[_];var z=I[0],V=n[z],X=I[1];if(P&&I[2]){if(V===r&&!(z in n))return!1}else{var ee=new lr;if(b)var se=b(V,X,z,n,o,ee);if(!(se===r?zi(X,V,d|w,b,ee):se))return!1}}return!0}function Zd(n){if(!Ve(n)||xx(n))return!1;var o=Br(n)?jw:Pb;return o.test(In(n))}function z1(n){return et(n)&&Ot(n)==yr}function W1(n){return et(n)&&xt(n)==Pt}function U1(n){return et(n)&&Ns(n.length)&&!!qe[Ot(n)]}function Gd(n){return typeof n=="function"?n:n==null?It:typeof n=="object"?Se(n)?Xd(n[0],n[1]):Vd(n):mh(n)}function Du(n){if(!Bi(n))return qw(n);var o=[];for(var l in We(n))Le.call(n,l)&&l!="constructor"&&o.push(l);return o}function B1(n){if(!Ve(n))return Ox(n);var o=Bi(n),l=[];for(var b in n)b=="constructor"&&(o||!Le.call(n,b))||l.push(b);return l}function Nu(n,o){return n<o}function Kd(n,o){var l=-1,b=kt(n)?H(n.length):[];return un(n,function(_,T,P){b[++l]=o(_,T,P)}),b}function Vd(n){var o=Qu(n);return o.length==1&&o[0][2]?Pp(o[0][0],o[0][1]):function(l){return l===n||Fu(l,n,o)}}function Xd(n,o){return tl(n)&&Rp(o)?Pp(cr(n),o):function(l){var b=dl(l,n);return b===r&&b===o?pl(l,n):zi(o,b,d|w)}}function Ss(n,o,l,b,_){n!==o&&$u(o,function(T,P){if(_||(_=new lr),Ve(T))H1(n,o,P,l,Ss,b,_);else{var I=b?b(nl(n,P),T,P+"",n,o,_):r;I===r&&(I=T),Cu(n,P,I)}},$t)}function H1(n,o,l,b,_,T,P){var I=nl(n,l),z=nl(o,l),V=P.get(z);if(V){Cu(n,l,V);return}var X=T?T(I,z,l+"",n,o,P):r,ee=X===r;if(ee){var se=Se(z),le=!se&&dn(z),me=!se&&!le&&ci(z);X=z,se||le||me?Se(I)?X=I:rt(I)?X=Ct(I):le?(ee=!1,X=up(z,!0)):me?(ee=!1,X=lp(z,!0)):X=[]:qi(z)||Ln(z)?(X=I,Ln(I)?X=oh(I):(!Ve(I)||Br(I))&&(X=Tp(z))):ee=!1}ee&&(P.set(z,X),_(X,z,b,T,P),P.delete(z)),Cu(n,l,X)}function Yd(n,o){var l=n.length;if(l)return o+=o<0?l:0,Ur(o,l)?n[o]:r}function Jd(n,o,l){o.length?o=Ze(o,function(T){return Se(T)?function(P){return kn(P,T.length===1?T[0]:T)}:T}):o=[It];var b=-1;o=Ze(o,jt(ge()));var _=Kd(n,function(T,P,I){var z=Ze(o,function(V){return V(T)});return{criteria:z,index:++b,value:T}});return vw(_,function(T,P){return nx(T,P,l)})}function q1(n,o){return Qd(n,o,function(l,b){return pl(n,b)})}function Qd(n,o,l){for(var b=-1,_=o.length,T={};++b<_;){var P=o[b],I=kn(n,P);l(I,P)&&Wi(T,cn(P,n),I)}return T}function Z1(n){return function(o){return kn(o,n)}}function ju(n,o,l,b){var _=b?mw:Qn,T=-1,P=o.length,I=n;for(n===o&&(o=Ct(o)),l&&(I=Ze(n,jt(l)));++T<P;)for(var z=0,V=o[T],X=l?l(V):V;(z=_(I,X,z,b))>-1;)I!==n&&ds.call(I,z,1),ds.call(n,z,1);return n}function ep(n,o){for(var l=n?o.length:0,b=l-1;l--;){var _=o[l];if(l==b||_!==T){var T=_;Ur(_)?ds.call(n,_,1):Bu(n,_)}}return n}function zu(n,o){return n+gs(Ld()*(o-n+1))}function G1(n,o,l,b){for(var _=-1,T=lt(hs((o-n)/(l||1)),0),P=H(T);T--;)P[b?T:++_]=n,n+=l;return P}function Wu(n,o){var l="";if(!n||o<1||o>ce)return l;do o%2&&(l+=n),o=gs(o/2),o&&(n+=n);while(o);return l}function Te(n,o){return il(Cp(n,o,It),n+"")}function K1(n){return Dd(fi(n))}function V1(n,o){var l=fi(n);return $s(l,Cn(o,0,l.length))}function Wi(n,o,l,b){if(!Ve(n))return n;o=cn(o,n);for(var _=-1,T=o.length,P=T-1,I=n;I!=null&&++_<T;){var z=cr(o[_]),V=l;if(z==="__proto__"||z==="constructor"||z==="prototype")return n;if(_!=P){var X=I[z];V=b?b(X,z,I):r,V===r&&(V=Ve(X)?X:Ur(o[_+1])?[]:{})}Di(I,z,V),I=I[z]}return n}var tp=ms?function(n,o){return ms.set(n,o),n}:It,X1=ps?function(n,o){return ps(n,"toString",{configurable:!0,enumerable:!1,value:gl(o),writable:!0})}:It;function Y1(n){return $s(fi(n))}function er(n,o,l){var b=-1,_=n.length;o<0&&(o=-o>_?0:_+o),l=l>_?_:l,l<0&&(l+=_),_=o>l?0:l-o>>>0,o>>>=0;for(var T=H(_);++b<_;)T[b]=n[b+o];return T}function J1(n,o){var l;return un(n,function(b,_,T){return l=o(b,_,T),!l}),!!l}function Es(n,o,l){var b=0,_=n==null?b:n.length;if(typeof o=="number"&&o===o&&_<=ie){for(;b<_;){var T=b+_>>>1,P=n[T];P!==null&&!Wt(P)&&(l?P<=o:P<o)?b=T+1:_=T}return _}return Uu(n,o,It,l)}function Uu(n,o,l,b){var _=0,T=n==null?0:n.length;if(T===0)return 0;o=l(o);for(var P=o!==o,I=o===null,z=Wt(o),V=o===r;_<T;){var X=gs((_+T)/2),ee=l(n[X]),se=ee!==r,le=ee===null,me=ee===ee,Oe=Wt(ee);if(P)var pe=b||me;else V?pe=me&&(b||se):I?pe=me&&se&&(b||!le):z?pe=me&&se&&!le&&(b||!Oe):le||Oe?pe=!1:pe=b?ee<=o:ee<o;pe?_=X+1:T=X}return wt(T,ue)}function rp(n,o){for(var l=-1,b=n.length,_=0,T=[];++l<b;){var P=n[l],I=o?o(P):P;if(!l||!fr(I,z)){var z=I;T[_++]=P===0?0:P}}return T}function np(n){return typeof n=="number"?n:Wt(n)?te:+n}function zt(n){if(typeof n=="string")return n;if(Se(n))return Ze(n,zt)+"";if(Wt(n))return Md?Md.call(n):"";var o=n+"";return o=="0"&&1/n==-re?"-0":o}function ln(n,o,l){var b=-1,_=rs,T=n.length,P=!0,I=[],z=I;if(l)P=!1,_=vu;else if(T>=s){var V=o?null:lx(n);if(V)return is(V);P=!1,_=ki,z=new Pn}else z=o?[]:I;e:for(;++b<T;){var X=n[b],ee=o?o(X):X;if(X=l||X!==0?X:0,P&&ee===ee){for(var se=z.length;se--;)if(z[se]===ee)continue e;o&&z.push(ee),I.push(X)}else _(z,ee,l)||(z!==I&&z.push(ee),I.push(X))}return I}function Bu(n,o){o=cn(o,n);var l=-1,b=o.length;if(!b)return!0;for(;++l<b;){var _=cr(o[l]);if(_==="__proto__"&&!Le.call(n,"__proto__")||(_==="constructor"||_==="prototype")&&l<b-1)return!1}var T=kp(n,o);return T==null||delete T[cr(tr(o))]}function ip(n,o,l,b){return Wi(n,o,l(kn(n,o)),b)}function _s(n,o,l,b){for(var _=n.length,T=b?_:-1;(b?T--:++T<_)&&o(n[T],T,n););return l?er(n,b?0:T,b?T+1:_):er(n,b?T+1:0,b?_:T)}function op(n,o){var l=n;return l instanceof Pe&&(l=l.value()),yu(o,function(b,_){return _.func.apply(_.thisArg,on([b],_.args))},l)}function Hu(n,o,l){var b=n.length;if(b<2)return b?ln(n[0]):[];for(var _=-1,T=H(b);++_<b;)for(var P=n[_],I=-1;++I<b;)I!=_&&(T[_]=Ni(T[_]||P,n[I],o,l));return ln(ht(T,1),o,l)}function sp(n,o,l){for(var b=-1,_=n.length,T=o.length,P={};++b<_;){var I=b<T?o[b]:r;l(P,n[b],I)}return P}function qu(n){return rt(n)?n:[]}function Zu(n){return typeof n=="function"?n:It}function cn(n,o){return Se(n)?n:tl(n,o)?[n]:Mp(Me(n))}var Q1=Te;function fn(n,o,l){var b=n.length;return l=l===r?b:l,!o&&l>=b?n:er(n,o,l)}var ap=zw||function(n){return pt.clearTimeout(n)};function up(n,o){if(o)return n.slice();var l=n.length,b=Pd?Pd(l):new n.constructor(l);return n.copy(b),b}function Gu(n){var o=new n.constructor(n.byteLength);return new cs(o).set(new cs(n)),o}function ex(n,o){var l=o?Gu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.byteLength)}function tx(n){var o=new n.constructor(n.source,qf.exec(n));return o.lastIndex=n.lastIndex,o}function rx(n){return Fi?We(Fi.call(n)):{}}function lp(n,o){var l=o?Gu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.length)}function cp(n,o){if(n!==o){var l=n!==r,b=n===null,_=n===n,T=Wt(n),P=o!==r,I=o===null,z=o===o,V=Wt(o);if(!I&&!V&&!T&&n>o||T&&P&&z&&!I&&!V||b&&P&&z||!l&&z||!_)return 1;if(!b&&!T&&!V&&n<o||V&&l&&_&&!b&&!T||I&&l&&_||!P&&_||!z)return-1}return 0}function nx(n,o,l){for(var b=-1,_=n.criteria,T=o.criteria,P=_.length,I=l.length;++b<P;){var z=cp(_[b],T[b]);if(z){if(b>=I)return z;var V=l[b];return z*(V=="desc"?-1:1)}}return n.index-o.index}function fp(n,o,l,b){for(var _=-1,T=n.length,P=l.length,I=-1,z=o.length,V=lt(T-P,0),X=H(z+V),ee=!b;++I<z;)X[I]=o[I];for(;++_<P;)(ee||_<T)&&(X[l[_]]=n[_]);for(;V--;)X[I++]=n[_++];return X}function dp(n,o,l,b){for(var _=-1,T=n.length,P=-1,I=l.length,z=-1,V=o.length,X=lt(T-I,0),ee=H(X+V),se=!b;++_<X;)ee[_]=n[_];for(var le=_;++z<V;)ee[le+z]=o[z];for(;++P<I;)(se||_<T)&&(ee[le+l[P]]=n[_++]);return ee}function Ct(n,o){var l=-1,b=n.length;for(o||(o=H(b));++l<b;)o[l]=n[l];return o}function xr(n,o,l,b){var _=!l;l||(l={});for(var T=-1,P=o.length;++T<P;){var I=o[T],z=b?b(l[I],n[I],I,l,n):r;z===r&&(z=n[I]),_?br(l,I,z):Di(l,I,z)}return l}function ix(n,o){return xr(n,el(n),o)}function ox(n,o){return xr(n,Op(n),o)}function Os(n,o){return function(l,b){var _=Se(l)?cw:T1,T=o?o():{};return _(l,n,ge(b,2),T)}}function ai(n){return Te(function(o,l){var b=-1,_=l.length,T=_>1?l[_-1]:r,P=_>2?l[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&At(l[0],l[1],P)&&(T=_<3?r:T,_=1),o=We(o);++b<_;){var I=l[b];I&&n(o,I,b,T)}return o})}function pp(n,o){return function(l,b){if(l==null)return l;if(!kt(l))return n(l,b);for(var _=l.length,T=o?_:-1,P=We(l);(o?T--:++T<_)&&b(P[T],T,P)!==!1;);return l}}function hp(n){return function(o,l,b){for(var _=-1,T=We(o),P=b(o),I=P.length;I--;){var z=P[n?I:++_];if(l(T[z],z,T)===!1)break}return o}}function sx(n,o,l){var b=o&h,_=Ui(n);function T(){var P=this&&this!==pt&&this instanceof T?_:n;return P.apply(b?l:this,arguments)}return T}function gp(n){return function(o){o=Me(o);var l=ei(o)?ur(o):r,b=l?l[0]:o.charAt(0),_=l?fn(l,1).join(""):o.slice(1);return b[n]()+_}}function ui(n){return function(o){return yu(hh(ph(o).replace(Xb,"")),n,"")}}function Ui(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var l=si(n.prototype),b=n.apply(l,o);return Ve(b)?b:l}}function ax(n,o,l){var b=Ui(n);function _(){for(var T=arguments.length,P=H(T),I=T,z=li(_);I--;)P[I]=arguments[I];var V=T<3&&P[0]!==z&&P[T-1]!==z?[]:sn(P,z);if(T-=V.length,T<l)return wp(n,o,As,_.placeholder,r,P,V,r,r,l-T);var X=this&&this!==pt&&this instanceof _?b:n;return Dt(X,this,P)}return _}function mp(n){return function(o,l,b){var _=We(o);if(!kt(o)){var T=ge(l,3);o=ft(o),l=function(I){return T(_[I],I,_)}}var P=n(o,l,b);return P>-1?_[T?o[P]:P]:r}}function vp(n){return Wr(function(o){var l=o.length,b=l,_=Jt.prototype.thru;for(n&&o.reverse();b--;){var T=o[b];if(typeof T!="function")throw new Yt(u);if(_&&!P&&Cs(T)=="wrapper")var P=new Jt([],!0)}for(b=P?b:l;++b<l;){T=o[b];var I=Cs(T),z=I=="wrapper"?Ju(T):r;z&&rl(z[0])&&z[1]==(M|R|C|D)&&!z[4].length&&z[9]==1?P=P[Cs(z[0])].apply(P,z[3]):P=T.length==1&&rl(T)?P[I]():P.thru(T)}return function(){var V=arguments,X=V[0];if(P&&V.length==1&&Se(X))return P.plant(X).value();for(var ee=0,se=l?o[ee].apply(this,V):X;++ee<l;)se=o[ee].call(this,se);return se}})}function As(n,o,l,b,_,T,P,I,z,V){var X=o&M,ee=o&h,se=o&S,le=o&(R|O),me=o&q,Oe=se?r:Ui(n);function pe(){for(var Re=arguments.length,Ce=H(Re),Ut=Re;Ut--;)Ce[Ut]=arguments[Ut];if(le)var Tt=li(pe),Bt=bw(Ce,Tt);if(b&&(Ce=fp(Ce,b,_,le)),T&&(Ce=dp(Ce,T,P,le)),Re-=Bt,le&&Re<V){var nt=sn(Ce,Tt);return wp(n,o,As,pe.placeholder,l,Ce,nt,I,z,V-Re)}var dr=ee?l:this,qr=se?dr[n]:n;return Re=Ce.length,I?Ce=Tx(Ce,I):me&&Re>1&&Ce.reverse(),X&&z<Re&&(Ce.length=z),this&&this!==pt&&this instanceof pe&&(qr=Oe||Ui(qr)),qr.apply(dr,Ce)}return pe}function yp(n,o){return function(l,b){return M1(l,n,o(b),{})}}function Ts(n,o){return function(l,b){var _;if(l===r&&b===r)return o;if(l!==r&&(_=l),b!==r){if(_===r)return b;typeof l=="string"||typeof b=="string"?(l=zt(l),b=zt(b)):(l=np(l),b=np(b)),_=n(l,b)}return _}}function Ku(n){return Wr(function(o){return o=Ze(o,jt(ge())),Te(function(l){var b=this;return n(o,function(_){return Dt(_,b,l)})})})}function Rs(n,o){o=o===r?" ":zt(o);var l=o.length;if(l<2)return l?Wu(o,n):o;var b=Wu(o,hs(n/ti(o)));return ei(o)?fn(ur(b),0,n).join(""):b.slice(0,n)}function ux(n,o,l,b){var _=o&h,T=Ui(n);function P(){for(var I=-1,z=arguments.length,V=-1,X=b.length,ee=H(X+z),se=this&&this!==pt&&this instanceof P?T:n;++V<X;)ee[V]=b[V];for(;z--;)ee[V++]=arguments[++I];return Dt(se,_?l:this,ee)}return P}function bp(n){return function(o,l,b){return b&&typeof b!="number"&&At(o,l,b)&&(l=b=r),o=Hr(o),l===r?(l=o,o=0):l=Hr(l),b=b===r?o<l?1:-1:Hr(b),G1(o,l,b,n)}}function Ps(n){return function(o,l){return typeof o=="string"&&typeof l=="string"||(o=rr(o),l=rr(l)),n(o,l)}}function wp(n,o,l,b,_,T,P,I,z,V){var X=o&R,ee=X?P:r,se=X?r:P,le=X?T:r,me=X?r:T;o|=X?C:U,o&=~(X?U:C),o&E||(o&=-4);var Oe=[n,o,_,le,ee,me,se,I,z,V],pe=l.apply(r,Oe);return rl(n)&&$p(pe,Oe),pe.placeholder=b,Ip(pe,n,o)}function Vu(n){var o=ut[n];return function(l,b){if(l=rr(l),b=b==null?0:wt(Ee(b),292),b&&Id(l)){var _=(Me(l)+"e").split("e"),T=o(_[0]+"e"+(+_[1]+b));return _=(Me(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-b))}return o(l)}}var lx=ii&&1/is(new ii([,-0]))[1]==re?function(n){return new ii(n)}:yl;function xp(n){return function(o){var l=xt(o);return l==bt?Ou(o):l==Pt?Aw(o):yw(o,n(o))}}function zr(n,o,l,b,_,T,P,I){var z=o&S;if(!z&&typeof n!="function")throw new Yt(u);var V=b?b.length:0;if(V||(o&=-97,b=_=r),P=P===r?P:lt(Ee(P),0),I=I===r?I:Ee(I),V-=_?_.length:0,o&U){var X=b,ee=_;b=_=r}var se=z?r:Ju(n),le=[n,o,l,b,_,X,ee,T,P,I];if(se&&_x(le,se),n=le[0],o=le[1],l=le[2],b=le[3],_=le[4],I=le[9]=le[9]===r?z?0:n.length:lt(le[9]-V,0),!I&&o&(R|O)&&(o&=-25),!o||o==h)var me=sx(n,o,l);else o==R||o==O?me=ax(n,o,I):(o==C||o==(h|C))&&!_.length?me=ux(n,o,l,b):me=As.apply(r,le);var Oe=se?tp:$p;return Ip(Oe(me,le),n,o)}function Sp(n,o,l,b){return n===r||fr(n,ni[l])&&!Le.call(b,l)?o:n}function Ep(n,o,l,b,_,T){return Ve(n)&&Ve(o)&&(T.set(o,n),Ss(n,o,r,Ep,T),T.delete(o)),n}function cx(n){return qi(n)?r:n}function _p(n,o,l,b,_,T){var P=l&d,I=n.length,z=o.length;if(I!=z&&!(P&&z>I))return!1;var V=T.get(n),X=T.get(o);if(V&&X)return V==o&&X==n;var ee=-1,se=!0,le=l&w?new Pn:r;for(T.set(n,o),T.set(o,n);++ee<I;){var me=n[ee],Oe=o[ee];if(b)var pe=P?b(Oe,me,ee,o,n,T):b(me,Oe,ee,n,o,T);if(pe!==r){if(pe)continue;se=!1;break}if(le){if(!bu(o,function(Re,Ce){if(!ki(le,Ce)&&(me===Re||_(me,Re,l,b,T)))return le.push(Ce)})){se=!1;break}}else if(!(me===Oe||_(me,Oe,l,b,T))){se=!1;break}}return T.delete(n),T.delete(o),se}function fx(n,o,l,b,_,T,P){switch(l){case Yn:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case rn:return!(n.byteLength!=o.byteLength||!T(new cs(n),new cs(o)));case Ae:case _e:case Jr:return fr(+n,+o);case oe:return n.name==o.name&&n.message==o.message;case yr:case Qr:return n==o+"";case bt:var I=Ou;case Pt:var z=b&d;if(I||(I=is),n.size!=o.size&&!z)return!1;var V=P.get(n);if(V)return V==o;b|=w,P.set(n,o);var X=_p(I(n),I(o),b,_,T,P);return P.delete(n),X;case en:if(Fi)return Fi.call(n)==Fi.call(o)}return!1}function dx(n,o,l,b,_,T){var P=l&d,I=Xu(n),z=I.length,V=Xu(o),X=V.length;if(z!=X&&!P)return!1;for(var ee=z;ee--;){var se=I[ee];if(!(P?se in o:Le.call(o,se)))return!1}var le=T.get(n),me=T.get(o);if(le&&me)return le==o&&me==n;var Oe=!0;T.set(n,o),T.set(o,n);for(var pe=P;++ee<z;){se=I[ee];var Re=n[se],Ce=o[se];if(b)var Ut=P?b(Ce,Re,se,o,n,T):b(Re,Ce,se,n,o,T);if(!(Ut===r?Re===Ce||_(Re,Ce,l,b,T):Ut)){Oe=!1;break}pe||(pe=se=="constructor")}if(Oe&&!pe){var Tt=n.constructor,Bt=o.constructor;Tt!=Bt&&"constructor"in n&&"constructor"in o&&!(typeof Tt=="function"&&Tt instanceof Tt&&typeof Bt=="function"&&Bt instanceof Bt)&&(Oe=!1)}return T.delete(n),T.delete(o),Oe}function Wr(n){return il(Cp(n,r,jp),n+"")}function Xu(n){return Hd(n,ft,el)}function Yu(n){return Hd(n,$t,Op)}var Ju=ms?function(n){return ms.get(n)}:yl;function Cs(n){for(var o=n.name+"",l=oi[o],b=Le.call(oi,o)?l.length:0;b--;){var _=l[b],T=_.func;if(T==null||T==n)return _.name}return o}function li(n){var o=Le.call(A,"placeholder")?A:n;return o.placeholder}function ge(){var n=A.iteratee||ml;return n=n===ml?Gd:n,arguments.length?n(arguments[0],arguments[1]):n}function ks(n,o){var l=n.__data__;return wx(o)?l[typeof o=="string"?"string":"hash"]:l.map}function Qu(n){for(var o=ft(n),l=o.length;l--;){var b=o[l],_=n[b];o[l]=[b,_,Rp(_)]}return o}function $n(n,o){var l=Ew(n,o);return Zd(l)?l:r}function px(n){var o=Le.call(n,Tn),l=n[Tn];try{n[Tn]=r;var b=!0}catch{}var _=us.call(n);return b&&(o?n[Tn]=l:delete n[Tn]),_}var el=Tu?function(n){return n==null?[]:(n=We(n),nn(Tu(n),function(o){return kd.call(n,o)}))}:bl,Op=Tu?function(n){for(var o=[];n;)on(o,el(n)),n=fs(n);return o}:bl,xt=Ot;(Ru&&xt(new Ru(new ArrayBuffer(1)))!=Yn||Ii&&xt(new Ii)!=bt||Pu&&xt(Pu.resolve())!=Xo||ii&&xt(new ii)!=Pt||Li&&xt(new Li)!=tn)&&(xt=function(n){var o=Ot(n),l=o==ar?n.constructor:r,b=l?In(l):"";if(b)switch(b){case Vw:return Yn;case Xw:return bt;case Yw:return Xo;case Jw:return Pt;case Qw:return tn}return o});function hx(n,o,l){for(var b=-1,_=l.length;++b<_;){var T=l[b],P=T.size;switch(T.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=wt(o,n+P);break;case"takeRight":n=lt(n,o-P);break}}return{start:n,end:o}}function gx(n){var o=n.match(Sb);return o?o[1].split(Eb):[]}function Ap(n,o,l){o=cn(o,n);for(var b=-1,_=o.length,T=!1;++b<_;){var P=cr(o[b]);if(!(T=n!=null&&l(n,P)))break;n=n[P]}return T||++b!=_?T:(_=n==null?0:n.length,!!_&&Ns(_)&&Ur(P,_)&&(Se(n)||Ln(n)))}function mx(n){var o=n.length,l=new n.constructor(o);return o&&typeof n[0]=="string"&&Le.call(n,"index")&&(l.index=n.index,l.input=n.input),l}function Tp(n){return typeof n.constructor=="function"&&!Bi(n)?si(fs(n)):{}}function vx(n,o,l){var b=n.constructor;switch(o){case rn:return Gu(n);case Ae:case _e:return new b(+n);case Yn:return ex(n,l);case Qa:case eu:case tu:case ru:case nu:case iu:case ou:case su:case au:return lp(n,l);case bt:return new b;case Jr:case Qr:return new b(n);case yr:return tx(n);case Pt:return new b;case en:return rx(n)}}function yx(n,o){var l=o.length;if(!l)return n;var b=l-1;return o[b]=(l>1?"& ":"")+o[b],o=o.join(l>2?", ":" "),n.replace(xb,`{
183
183
  /* [wrapped with `+o+`] */
184
- `)}function mx(n){return Se(n)||In(n)||!!(Id&&n&&n[Id])}function Wr(n,o){var u=typeof n;return o=o??ce,!!o&&(u=="number"||u!="symbol"&&Rb.test(n))&&n>-1&&n%1==0&&n<o}function At(n,o,u){if(!Ve(u))return!1;var b=typeof o;return(b=="number"?kt(u)&&Wr(o,u.length):b=="string"&&o in u)?fr(u[o],n):!1}function rl(n,o){if(Se(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Wt(n)?!0:hb.test(n)||!pb.test(n)||o!=null&&n in We(o)}function vx(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function nl(n){var o=Cs(n),u=A[o];if(typeof u!="function"||!(o in Pe.prototype))return!1;if(n===u)return!0;var b=Qu(u);return!!b&&n===b[0]}function yx(n){return!!Pd&&Pd in n}var bx=ss?Ur:xl;function Bi(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ni;return n===u}function Pp(n){return n===n&&!Ve(n)}function Cp(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in We(u))}}function wx(n){var o=Fs(n,function(b){return u.size===y&&u.clear(),b}),u=o.cache;return o}function xx(n,o){var u=n[1],b=o[1],_=u|b,T=_<(h|S|M),P=b==M&&u==R||b==M&&u==D&&n[7].length<=o[8]||b==(M|D)&&o[7].length<=o[8]&&u==R;if(!(T||P))return n;b&h&&(n[2]=o[2],_|=u&h?0:E);var I=o[3];if(I){var z=n[3];n[3]=z?dp(z,I,o[4]):I,n[4]=z?on(n[3],p):o[4]}return I=o[5],I&&(z=n[5],n[5]=z?pp(z,I,o[6]):I,n[6]=z?on(n[5],p):o[6]),I=o[7],I&&(n[7]=I),b&M&&(n[8]=n[8]==null?o[8]:wt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=_,n}function Sx(n){var o=[];if(n!=null)for(var u in We(n))o.push(u);return o}function Ex(n){return us.call(n)}function kp(n,o,u){return o=lt(o===r?n.length-1:o,0),function(){for(var b=arguments,_=-1,T=lt(b.length-o,0),P=H(T);++_<T;)P[_]=b[o+_];_=-1;for(var I=H(o+1);++_<o;)I[_]=b[_];return I[o]=u(P),Dt(n,this,I)}}function $p(n,o){return o.length<2?n:Cn(n,er(o,0,-1))}function _x(n,o){for(var u=n.length,b=wt(o.length,u),_=Ct(n);b--;){var T=o[b];n[b]=Wr(T,u)?_[T]:r}return n}function il(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Ip=Mp(rp),Hi=jw||function(n,o){return pt.setTimeout(n,o)},ol=Mp(G1);function Lp(n,o,u){var b=o+"";return ol(n,gx(b,Ox(dx(b),u)))}function Mp(n){var o=0,u=0;return function(){var b=Bw(),_=Z-(b-u);if(u=b,_>0){if(++o>=B)return arguments[0]}else o=0;return n.apply(r,arguments)}}function $s(n,o){var u=-1,b=n.length,_=b-1;for(o=o===r?b:o;++u<o;){var T=Wu(u,_),P=n[T];n[T]=n[u],n[u]=P}return n.length=o,n}var Fp=wx(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(gb,function(u,b,_,T){o.push(_?T.replace(Sb,"$1"):b||u)}),o});function cr(n){if(typeof n=="string"||Wt(n))return n;var o=n+"";return o=="0"&&1/n==-re?"-0":o}function $n(n){if(n!=null){try{return as.call(n)}catch{}try{return n+""}catch{}}return""}function Ox(n,o){return Nt(he,function(u){var b="_."+u[0];o&u[1]&&!rs(n,b)&&n.push(b)}),n.sort()}function Dp(n){if(n instanceof Pe)return n.clone();var o=new Jt(n.__wrapped__,n.__chain__);return o.__actions__=Ct(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Ax(n,o,u){(u?At(n,o,u):o===r)?o=1:o=lt(Ee(o),0);var b=n==null?0:n.length;if(!b||o<1)return[];for(var _=0,T=0,P=H(hs(b/o));_<b;)P[T++]=er(n,_,_+=o);return P}function Tx(n){for(var o=-1,u=n==null?0:n.length,b=0,_=[];++o<u;){var T=n[o];T&&(_[b++]=T)}return _}function Rx(){var n=arguments.length;if(!n)return[];for(var o=H(n-1),u=arguments[0],b=n;b--;)o[b-1]=arguments[b];return nn(Se(u)?Ct(u):[u],ht(o,1))}var Px=Te(function(n,o){return rt(n)?Ni(n,ht(o,1,rt,!0)):[]}),Cx=Te(function(n,o){var u=tr(o);return rt(u)&&(u=r),rt(n)?Ni(n,ht(o,1,rt,!0),ge(u,2)):[]}),kx=Te(function(n,o){var u=tr(o);return rt(u)&&(u=r),rt(n)?Ni(n,ht(o,1,rt,!0),r,u):[]});function $x(n,o,u){var b=n==null?0:n.length;return b?(o=u||o===r?1:Ee(o),er(n,o<0?0:o,b)):[]}function Ix(n,o,u){var b=n==null?0:n.length;return b?(o=u||o===r?1:Ee(o),o=b-o,er(n,0,o<0?0:o)):[]}function Lx(n,o){return n&&n.length?_s(n,ge(o,3),!0,!0):[]}function Mx(n,o){return n&&n.length?_s(n,ge(o,3),!0):[]}function Fx(n,o,u,b){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&At(n,o,u)&&(u=0,b=_),R1(n,o,u,b)):[]}function Np(n,o,u){var b=n==null?0:n.length;if(!b)return-1;var _=u==null?0:Ee(u);return _<0&&(_=lt(b+_,0)),ns(n,ge(o,3),_)}function jp(n,o,u){var b=n==null?0:n.length;if(!b)return-1;var _=b-1;return u!==r&&(_=Ee(u),_=u<0?lt(b+_,0):wt(_,b-1)),ns(n,ge(o,3),_,!0)}function zp(n){var o=n==null?0:n.length;return o?ht(n,1):[]}function Dx(n){var o=n==null?0:n.length;return o?ht(n,re):[]}function Nx(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:Ee(o),ht(n,o)):[]}function jx(n){for(var o=-1,u=n==null?0:n.length,b={};++o<u;){var _=n[o];br(b,_[0],_[1])}return b}function Wp(n){return n&&n.length?n[0]:r}function zx(n,o,u){var b=n==null?0:n.length;if(!b)return-1;var _=u==null?0:Ee(u);return _<0&&(_=lt(b+_,0)),Qn(n,o,_)}function Wx(n){var o=n==null?0:n.length;return o?er(n,0,-1):[]}var Ux=Te(function(n){var o=Ze(n,Zu);return o.length&&o[0]===n[0]?Fu(o):[]}),Bx=Te(function(n){var o=tr(n),u=Ze(n,Zu);return o===tr(u)?o=r:u.pop(),u.length&&u[0]===n[0]?Fu(u,ge(o,2)):[]}),Hx=Te(function(n){var o=tr(n),u=Ze(n,Zu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?Fu(u,r,o):[]});function qx(n,o){return n==null?"":Ww.call(n,o)}function tr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Zx(n,o,u){var b=n==null?0:n.length;if(!b)return-1;var _=b;return u!==r&&(_=Ee(u),_=_<0?lt(b+_,0):wt(_,b-1)),o===o?Ow(n,o,_):ns(n,xd,_,!0)}function Gx(n,o){return n&&n.length?Jd(n,Ee(o)):r}var Kx=Te(Up);function Up(n,o){return n&&n.length&&o&&o.length?zu(n,o):n}function Vx(n,o,u){return n&&n.length&&o&&o.length?zu(n,o,ge(u,2)):n}function Xx(n,o,u){return n&&n.length&&o&&o.length?zu(n,o,r,u):n}var Yx=zr(function(n,o){var u=n==null?0:n.length,b=$u(n,o);return tp(n,Ze(o,function(_){return Wr(_,u)?+_:_}).sort(fp)),b});function Jx(n,o){var u=[];if(!(n&&n.length))return u;var b=-1,_=[],T=n.length;for(o=ge(o,3);++b<T;){var P=n[b];o(P,b,n)&&(u.push(P),_.push(b))}return tp(n,_),u}function sl(n){return n==null?n:qw.call(n)}function Qx(n,o,u){var b=n==null?0:n.length;return b?(u&&typeof u!="number"&&At(n,o,u)?(o=0,u=b):(o=o==null?0:Ee(o),u=u===r?b:Ee(u)),er(n,o,u)):[]}function eS(n,o){return Es(n,o)}function tS(n,o,u){return Bu(n,o,ge(u,2))}function rS(n,o){var u=n==null?0:n.length;if(u){var b=Es(n,o);if(b<u&&fr(n[b],o))return b}return-1}function nS(n,o){return Es(n,o,!0)}function iS(n,o,u){return Bu(n,o,ge(u,2),!0)}function oS(n,o){var u=n==null?0:n.length;if(u){var b=Es(n,o,!0)-1;if(fr(n[b],o))return b}return-1}function sS(n){return n&&n.length?np(n):[]}function aS(n,o){return n&&n.length?np(n,ge(o,2)):[]}function uS(n){var o=n==null?0:n.length;return o?er(n,1,o):[]}function lS(n,o,u){return n&&n.length?(o=u||o===r?1:Ee(o),er(n,0,o<0?0:o)):[]}function cS(n,o,u){var b=n==null?0:n.length;return b?(o=u||o===r?1:Ee(o),o=b-o,er(n,o<0?0:o,b)):[]}function fS(n,o){return n&&n.length?_s(n,ge(o,3),!1,!0):[]}function dS(n,o){return n&&n.length?_s(n,ge(o,3)):[]}var pS=Te(function(n){return un(ht(n,1,rt,!0))}),hS=Te(function(n){var o=tr(n);return rt(o)&&(o=r),un(ht(n,1,rt,!0),ge(o,2))}),gS=Te(function(n){var o=tr(n);return o=typeof o=="function"?o:r,un(ht(n,1,rt,!0),r,o)});function mS(n){return n&&n.length?un(n):[]}function vS(n,o){return n&&n.length?un(n,ge(o,2)):[]}function yS(n,o){return o=typeof o=="function"?o:r,n&&n.length?un(n,r,o):[]}function al(n){if(!(n&&n.length))return[];var o=0;return n=rn(n,function(u){if(rt(u))return o=lt(u.length,o),!0}),_u(o,function(u){return Ze(n,xu(u))})}function Bp(n,o){if(!(n&&n.length))return[];var u=al(n);return o==null?u:Ze(u,function(b){return Dt(o,r,b)})}var bS=Te(function(n,o){return rt(n)?Ni(n,o):[]}),wS=Te(function(n){return qu(rn(n,rt))}),xS=Te(function(n){var o=tr(n);return rt(o)&&(o=r),qu(rn(n,rt),ge(o,2))}),SS=Te(function(n){var o=tr(n);return o=typeof o=="function"?o:r,qu(rn(n,rt),r,o)}),ES=Te(al);function _S(n,o){return ap(n||[],o||[],Di)}function OS(n,o){return ap(n||[],o||[],Wi)}var AS=Te(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Bp(n,u)});function Hp(n){var o=A(n);return o.__chain__=!0,o}function TS(n,o){return o(n),n}function Is(n,o){return o(n)}var RS=zr(function(n){var o=n.length,u=o?n[0]:0,b=this.__wrapped__,_=function(T){return $u(T,n)};return o>1||this.__actions__.length||!(b instanceof Pe)||!Wr(u)?this.thru(_):(b=b.slice(u,+u+(o?1:0)),b.__actions__.push({func:Is,args:[_],thisArg:r}),new Jt(b,this.__chain__).thru(function(T){return o&&!T.length&&T.push(r),T}))});function PS(){return Hp(this)}function CS(){return new Jt(this.value(),this.__chain__)}function kS(){this.__values__===r&&(this.__values__=ih(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function $S(){return this}function IS(n){for(var o,u=this;u instanceof ys;){var b=Dp(u);b.__index__=0,b.__values__=r,o?_.__wrapped__=b:o=b;var _=b;u=u.__wrapped__}return _.__wrapped__=n,o}function LS(){var n=this.__wrapped__;if(n instanceof Pe){var o=n;return this.__actions__.length&&(o=new Pe(this)),o=o.reverse(),o.__actions__.push({func:Is,args:[sl],thisArg:r}),new Jt(o,this.__chain__)}return this.thru(sl)}function MS(){return sp(this.__wrapped__,this.__actions__)}var FS=Os(function(n,o,u){Le.call(n,u)?++n[u]:br(n,u,1)});function DS(n,o,u){var b=Se(n)?bd:T1;return u&&At(n,o,u)&&(o=r),b(n,ge(o,3))}function NS(n,o){var u=Se(n)?rn:Bd;return u(n,ge(o,3))}var jS=vp(Np),zS=vp(jp);function WS(n,o){return ht(Ls(n,o),1)}function US(n,o){return ht(Ls(n,o),re)}function BS(n,o,u){return u=u===r?1:Ee(u),ht(Ls(n,o),u)}function qp(n,o){var u=Se(n)?Nt:an;return u(n,ge(o,3))}function Zp(n,o){var u=Se(n)?uw:Ud;return u(n,ge(o,3))}var HS=Os(function(n,o,u){Le.call(n,u)?n[u].push(o):br(n,u,[o])});function qS(n,o,u,b){n=kt(n)?n:fi(n),u=u&&!b?Ee(u):0;var _=n.length;return u<0&&(u=lt(_+u,0)),js(n)?u<=_&&n.indexOf(o,u)>-1:!!_&&Qn(n,o,u)>-1}var ZS=Te(function(n,o,u){var b=-1,_=typeof o=="function",T=kt(n)?H(n.length):[];return an(n,function(P){T[++b]=_?Dt(o,P,u):ji(P,o,u)}),T}),GS=Os(function(n,o,u){br(n,u,o)});function Ls(n,o){var u=Se(n)?Ze:Vd;return u(n,ge(o,3))}function KS(n,o,u,b){return n==null?[]:(Se(o)||(o=o==null?[]:[o]),u=b?r:u,Se(u)||(u=u==null?[]:[u]),Qd(n,o,u))}var VS=Os(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function XS(n,o,u){var b=Se(n)?bu:Ed,_=arguments.length<3;return b(n,ge(o,4),u,_,an)}function YS(n,o,u){var b=Se(n)?lw:Ed,_=arguments.length<3;return b(n,ge(o,4),u,_,Ud)}function JS(n,o){var u=Se(n)?rn:Bd;return u(n,Ds(ge(o,3)))}function QS(n){var o=Se(n)?Nd:q1;return o(n)}function eE(n,o,u){(u?At(n,o,u):o===r)?o=1:o=Ee(o);var b=Se(n)?S1:Z1;return b(n,o)}function tE(n){var o=Se(n)?E1:K1;return o(n)}function rE(n){if(n==null)return 0;if(kt(n))return js(n)?ti(n):n.length;var o=xt(n);return o==bt||o==Pt?n.size:Nu(n).length}function nE(n,o,u){var b=Se(n)?wu:V1;return u&&At(n,o,u)&&(o=r),b(n,ge(o,3))}var iE=Te(function(n,o){if(n==null)return[];var u=o.length;return u>1&&At(n,o[0],o[1])?o=[]:u>2&&At(o[0],o[1],o[2])&&(o=[o[0]]),Qd(n,ht(o,1),[])}),Ms=Nw||function(){return pt.Date.now()};function oE(n,o){if(typeof o!="function")throw new Yt(l);return n=Ee(n),function(){if(--n<1)return o.apply(this,arguments)}}function Gp(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,jr(n,M,r,r,r,r,o)}function Kp(n,o){var u;if(typeof o!="function")throw new Yt(l);return n=Ee(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var ul=Te(function(n,o,u){var b=h;if(u.length){var _=on(u,li(ul));b|=C}return jr(n,b,o,u,_)}),Vp=Te(function(n,o,u){var b=h|S;if(u.length){var _=on(u,li(Vp));b|=C}return jr(o,b,n,u,_)});function Xp(n,o,u){o=u?r:o;var b=jr(n,R,r,r,r,r,r,o);return b.placeholder=Xp.placeholder,b}function Yp(n,o,u){o=u?r:o;var b=jr(n,O,r,r,r,r,r,o);return b.placeholder=Yp.placeholder,b}function Jp(n,o,u){var b,_,T,P,I,z,V=0,X=!1,ee=!1,se=!0;if(typeof n!="function")throw new Yt(l);o=rr(o)||0,Ve(u)&&(X=!!u.leading,ee="maxWait"in u,T=ee?lt(rr(u.maxWait)||0,o):T,se="trailing"in u?!!u.trailing:se);function le(nt){var dr=b,Hr=_;return b=_=r,V=nt,P=n.apply(Hr,dr),P}function me(nt){return V=nt,I=Hi(Re,o),X?le(nt):P}function Oe(nt){var dr=nt-z,Hr=nt-V,yh=o-dr;return ee?wt(yh,T-Hr):yh}function pe(nt){var dr=nt-z,Hr=nt-V;return z===r||dr>=o||dr<0||ee&&Hr>=T}function Re(){var nt=Ms();if(pe(nt))return Ce(nt);I=Hi(Re,Oe(nt))}function Ce(nt){return I=r,se&&b?le(nt):(b=_=r,P)}function Ut(){I!==r&&up(I),V=0,b=z=_=I=r}function Tt(){return I===r?P:Ce(Ms())}function Bt(){var nt=Ms(),dr=pe(nt);if(b=arguments,_=this,z=nt,dr){if(I===r)return me(z);if(ee)return up(I),I=Hi(Re,o),le(z)}return I===r&&(I=Hi(Re,o)),P}return Bt.cancel=Ut,Bt.flush=Tt,Bt}var sE=Te(function(n,o){return Wd(n,1,o)}),aE=Te(function(n,o,u){return Wd(n,rr(o)||0,u)});function uE(n){return jr(n,q)}function Fs(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Yt(l);var u=function(){var b=arguments,_=o?o.apply(this,b):b[0],T=u.cache;if(T.has(_))return T.get(_);var P=n.apply(this,b);return u.cache=T.set(_,P)||T,P};return u.cache=new(Fs.Cache||Nr),u}Fs.Cache=Nr;function Ds(n){if(typeof n!="function")throw new Yt(l);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function lE(n){return Kp(2,n)}var cE=X1(function(n,o){o=o.length==1&&Se(o[0])?Ze(o[0],jt(ge())):Ze(ht(o,1),jt(ge()));var u=o.length;return Te(function(b){for(var _=-1,T=wt(b.length,u);++_<T;)b[_]=o[_].call(this,b[_]);return Dt(n,this,b)})}),ll=Te(function(n,o){var u=on(o,li(ll));return jr(n,C,r,o,u)}),Qp=Te(function(n,o){var u=on(o,li(Qp));return jr(n,U,r,o,u)}),fE=zr(function(n,o){return jr(n,D,r,r,r,o)});function dE(n,o){if(typeof n!="function")throw new Yt(l);return o=o===r?o:Ee(o),Te(n,o)}function pE(n,o){if(typeof n!="function")throw new Yt(l);return o=o==null?0:lt(Ee(o),0),Te(function(u){var b=u[o],_=cn(u,0,o);return b&&nn(_,b),Dt(n,this,_)})}function hE(n,o,u){var b=!0,_=!0;if(typeof n!="function")throw new Yt(l);return Ve(u)&&(b="leading"in u?!!u.leading:b,_="trailing"in u?!!u.trailing:_),Jp(n,o,{leading:b,maxWait:o,trailing:_})}function gE(n){return Gp(n,1)}function mE(n,o){return ll(Gu(o),n)}function vE(){if(!arguments.length)return[];var n=arguments[0];return Se(n)?n:[n]}function yE(n){return Qt(n,x)}function bE(n,o){return o=typeof o=="function"?o:r,Qt(n,x,o)}function wE(n){return Qt(n,g|x)}function xE(n,o){return o=typeof o=="function"?o:r,Qt(n,g|x,o)}function SE(n,o){return o==null||zd(n,o,ft(o))}function fr(n,o){return n===o||n!==n&&o!==o}var EE=Ps(Mu),_E=Ps(function(n,o){return n>=o}),In=Zd((function(){return arguments})())?Zd:function(n){return et(n)&&Le.call(n,"callee")&&!$d.call(n,"callee")},Se=H.isArray,OE=pd?jt(pd):I1;function kt(n){return n!=null&&Ns(n.length)&&!Ur(n)}function rt(n){return et(n)&&kt(n)}function AE(n){return n===!0||n===!1||et(n)&&Ot(n)==Ae}var fn=zw||xl,TE=hd?jt(hd):L1;function RE(n){return et(n)&&n.nodeType===1&&!qi(n)}function PE(n){if(n==null)return!0;if(kt(n)&&(Se(n)||typeof n=="string"||typeof n.splice=="function"||fn(n)||ci(n)||In(n)))return!n.length;var o=xt(n);if(o==bt||o==Pt)return!n.size;if(Bi(n))return!Nu(n).length;for(var u in n)if(Le.call(n,u))return!1;return!0}function CE(n,o){return zi(n,o)}function kE(n,o,u){u=typeof u=="function"?u:r;var b=u?u(n,o):r;return b===r?zi(n,o,r,u):!!b}function cl(n){if(!et(n))return!1;var o=Ot(n);return o==oe||o==ot||typeof n.message=="string"&&typeof n.name=="string"&&!qi(n)}function $E(n){return typeof n=="number"&&Ld(n)}function Ur(n){if(!Ve(n))return!1;var o=Ot(n);return o==ct||o==Mr||o==xe||o==Fr}function eh(n){return typeof n=="number"&&n==Ee(n)}function Ns(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ce}function Ve(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function et(n){return n!=null&&typeof n=="object"}var th=gd?jt(gd):F1;function IE(n,o){return n===o||Du(n,o,el(o))}function LE(n,o,u){return u=typeof u=="function"?u:r,Du(n,o,el(o),u)}function ME(n){return rh(n)&&n!=+n}function FE(n){if(bx(n))throw new be(a);return Gd(n)}function DE(n){return n===null}function NE(n){return n==null}function rh(n){return typeof n=="number"||et(n)&&Ot(n)==Yr}function qi(n){if(!et(n)||Ot(n)!=ar)return!1;var o=fs(n);if(o===null)return!0;var u=Le.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&as.call(u)==Lw}var fl=md?jt(md):D1;function jE(n){return eh(n)&&n>=-ce&&n<=ce}var nh=vd?jt(vd):N1;function js(n){return typeof n=="string"||!Se(n)&&et(n)&&Ot(n)==Jr}function Wt(n){return typeof n=="symbol"||et(n)&&Ot(n)==Qr}var ci=yd?jt(yd):j1;function zE(n){return n===r}function WE(n){return et(n)&&xt(n)==en}function UE(n){return et(n)&&Ot(n)==Jo}var BE=Ps(ju),HE=Ps(function(n,o){return n<=o});function ih(n){if(!n)return[];if(kt(n))return js(n)?ur(n):Ct(n);if($i&&n[$i])return Sw(n[$i]());var o=xt(n),u=o==bt?Au:o==Pt?is:fi;return u(n)}function Br(n){if(!n)return n===0?n:0;if(n=rr(n),n===re||n===-re){var o=n<0?-1:1;return o*G}return n===n?n:0}function Ee(n){var o=Br(n),u=o%1;return o===o?u?o-u:o:0}function oh(n){return n?Pn(Ee(n),0,ne):0}function rr(n){if(typeof n=="number")return n;if(Wt(n))return te;if(Ve(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ve(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=_d(n);var u=Ob.test(n);return u||Tb.test(n)?ow(n.slice(2),u?2:8):_b.test(n)?te:+n}function sh(n){return xr(n,$t(n))}function qE(n){return n?Pn(Ee(n),-ce,ce):n===0?n:0}function Me(n){return n==null?"":zt(n)}var ZE=ai(function(n,o){if(Bi(o)||kt(o)){xr(o,ft(o),n);return}for(var u in o)Le.call(o,u)&&Di(n,u,o[u])}),ah=ai(function(n,o){xr(o,$t(o),n)}),uh=ai(function(n,o,u,b){xr(o,$t(o),n,b)}),dl=ai(function(n,o,u,b){xr(o,ft(o),n,b)}),GE=zr($u);function KE(n,o){var u=si(n);return o==null?u:jd(u,o)}var VE=Te(function(n,o){n=We(n);var u=-1,b=o.length,_=b>2?o[2]:r;for(_&&At(o[0],o[1],_)&&(b=1);++u<b;)for(var T=o[u],P=$t(T),I=-1,z=P.length;++I<z;){var V=P[I],X=n[V];(X===r||fr(X,ni[V])&&!Le.call(n,V))&&(n[V]=T[V])}return n}),XE=Te(function(n){return n.push(r,_p),Dt(lh,r,n)});function YE(n,o){return wd(n,ge(o,3),wr)}function JE(n,o){return wd(n,ge(o,3),Lu)}function QE(n,o){return n==null?n:Iu(n,ge(o,3),$t)}function e_(n,o){return n==null?n:Hd(n,ge(o,3),$t)}function t_(n,o){return n&&wr(n,ge(o,3))}function r_(n,o){return n&&Lu(n,ge(o,3))}function n_(n){return n==null?[]:xs(n,ft(n))}function i_(n){return n==null?[]:xs(n,$t(n))}function pl(n,o,u){var b=n==null?r:Cn(n,o);return b===r?u:b}function o_(n,o){return n!=null&&Tp(n,o,P1)}function hl(n,o){return n!=null&&Tp(n,o,C1)}var s_=bp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),n[o]=u},ml(It)),a_=bp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),Le.call(n,o)?n[o].push(u):n[o]=[u]},ge),u_=Te(ji);function ft(n){return kt(n)?Dd(n):Nu(n)}function $t(n){return kt(n)?Dd(n,!0):z1(n)}function l_(n,o){var u={};return o=ge(o,3),wr(n,function(b,_,T){br(u,o(b,_,T),b)}),u}function c_(n,o){var u={};return o=ge(o,3),wr(n,function(b,_,T){br(u,_,o(b,_,T))}),u}var f_=ai(function(n,o,u){Ss(n,o,u)}),lh=ai(function(n,o,u,b){Ss(n,o,u,b)}),d_=zr(function(n,o){var u={};if(n==null)return u;var b=!1;o=Ze(o,function(T){return T=ln(T,n),b||(b=T.length>1),T}),xr(n,Ju(n),u),b&&(u=Qt(u,g|v|x,ax));for(var _=o.length;_--;)Hu(u,o[_]);return u});function p_(n,o){return ch(n,Ds(ge(o)))}var h_=zr(function(n,o){return n==null?{}:U1(n,o)});function ch(n,o){if(n==null)return{};var u=Ze(Ju(n),function(b){return[b]});return o=ge(o),ep(n,u,function(b,_){return o(b,_[0])})}function g_(n,o,u){o=ln(o,n);var b=-1,_=o.length;for(_||(_=1,n=r);++b<_;){var T=n==null?r:n[cr(o[b])];T===r&&(b=_,T=u),n=Ur(T)?T.call(n):T}return n}function m_(n,o,u){return n==null?n:Wi(n,o,u)}function v_(n,o,u,b){return b=typeof b=="function"?b:r,n==null?n:Wi(n,o,u,b)}var fh=Sp(ft),dh=Sp($t);function y_(n,o,u){var b=Se(n),_=b||fn(n)||ci(n);if(o=ge(o,4),u==null){var T=n&&n.constructor;_?u=b?new T:[]:Ve(n)?u=Ur(T)?si(fs(n)):{}:u={}}return(_?Nt:wr)(n,function(P,I,z){return o(u,P,I,z)}),u}function b_(n,o){return n==null?!0:Hu(n,o)}function w_(n,o,u){return n==null?n:op(n,o,Gu(u))}function x_(n,o,u,b){return b=typeof b=="function"?b:r,n==null?n:op(n,o,Gu(u),b)}function fi(n){return n==null?[]:Ou(n,ft(n))}function S_(n){return n==null?[]:Ou(n,$t(n))}function E_(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=rr(u),u=u===u?u:0),o!==r&&(o=rr(o),o=o===o?o:0),Pn(rr(n),o,u)}function __(n,o,u){return o=Br(o),u===r?(u=o,o=0):u=Br(u),n=rr(n),k1(n,o,u)}function O_(n,o,u){if(u&&typeof u!="boolean"&&At(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Br(n),o===r?(o=n,n=0):o=Br(o)),n>o){var b=n;n=o,o=b}if(u||n%1||o%1){var _=Md();return wt(n+_*(o-n+iw("1e-"+((_+"").length-1))),o)}return Wu(n,o)}var A_=ui(function(n,o,u){return o=o.toLowerCase(),n+(u?ph(o):o)});function ph(n){return gl(Me(n).toLowerCase())}function hh(n){return n=Me(n),n&&n.replace(Pb,vw).replace(Kb,"")}function T_(n,o,u){n=Me(n),o=zt(o);var b=n.length;u=u===r?b:Pn(Ee(u),0,b);var _=u;return u-=o.length,u>=0&&n.slice(u,_)==o}function R_(n){return n=Me(n),n&&cb.test(n)?n.replace(Bf,yw):n}function P_(n){return n=Me(n),n&&mb.test(n)?n.replace(lu,"\\$&"):n}var C_=ui(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),k_=ui(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),$_=mp("toLowerCase");function I_(n,o,u){n=Me(n),o=Ee(o);var b=o?ti(n):0;if(!o||b>=o)return n;var _=(o-b)/2;return Rs(gs(_),u)+n+Rs(hs(_),u)}function L_(n,o,u){n=Me(n),o=Ee(o);var b=o?ti(n):0;return o&&b<o?n+Rs(o-b,u):n}function M_(n,o,u){n=Me(n),o=Ee(o);var b=o?ti(n):0;return o&&b<o?Rs(o-b,u)+n:n}function F_(n,o,u){return u||o==null?o=0:o&&(o=+o),Hw(Me(n).replace(cu,""),o||0)}function D_(n,o,u){return(u?At(n,o,u):o===r)?o=1:o=Ee(o),Uu(Me(n),o)}function N_(){var n=arguments,o=Me(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var j_=ui(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function z_(n,o,u){return u&&typeof u!="number"&&At(n,o,u)&&(o=u=r),u=u===r?ne:u>>>0,u?(n=Me(n),n&&(typeof o=="string"||o!=null&&!fl(o))&&(o=zt(o),!o&&ei(n))?cn(ur(n),0,u):n.split(o,u)):[]}var W_=ui(function(n,o,u){return n+(u?" ":"")+gl(o)});function U_(n,o,u){return n=Me(n),u=u==null?0:Pn(Ee(u),0,n.length),o=zt(o),n.slice(u,u+o.length)==o}function B_(n,o,u){var b=A.templateSettings;u&&At(n,o,u)&&(o=r),n=Me(n),o=dl({},o,b,Ep);var _=dl({},o.imports,b.imports,Ep),T=ft(_),P=Ou(_,T);Nt(T,function(pe){if(qf.test(pe))throw new be(f)});var I,z,V=0,X=o.interpolate||Qo,ee="__p += '",se=Tu((o.escape||Qo).source+"|"+X.source+"|"+(X===Hf?Eb:Qo).source+"|"+(o.evaluate||Qo).source+"|$","g"),le="//# sourceURL="+(Le.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qb+"]")+`
185
- `;n.replace(se,function(pe,Re,Ce,Ut,Tt,Bt){return Ce||(Ce=Ut),ee+=n.slice(V,Bt).replace(Cb,bw),Re&&(I=!0,ee+=`' +
184
+ `)}function bx(n){return Se(n)||Ln(n)||!!($d&&n&&n[$d])}function Ur(n,o){var l=typeof n;return o=o??ce,!!o&&(l=="number"||l!="symbol"&&kb.test(n))&&n>-1&&n%1==0&&n<o}function At(n,o,l){if(!Ve(l))return!1;var b=typeof o;return(b=="number"?kt(l)&&Ur(o,l.length):b=="string"&&o in l)?fr(l[o],n):!1}function tl(n,o){if(Se(n))return!1;var l=typeof n;return l=="number"||l=="symbol"||l=="boolean"||n==null||Wt(n)?!0:vb.test(n)||!mb.test(n)||o!=null&&n in We(o)}function wx(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function rl(n){var o=Cs(n),l=A[o];if(typeof l!="function"||!(o in Pe.prototype))return!1;if(n===l)return!0;var b=Ju(l);return!!b&&n===b[0]}function xx(n){return!!Rd&&Rd in n}var Sx=ss?Br:wl;function Bi(n){var o=n&&n.constructor,l=typeof o=="function"&&o.prototype||ni;return n===l}function Rp(n){return n===n&&!Ve(n)}function Pp(n,o){return function(l){return l==null?!1:l[n]===o&&(o!==r||n in We(l))}}function Ex(n){var o=Fs(n,function(b){return l.size===y&&l.clear(),b}),l=o.cache;return o}function _x(n,o){var l=n[1],b=o[1],_=l|b,T=_<(h|S|M),P=b==M&&l==R||b==M&&l==D&&n[7].length<=o[8]||b==(M|D)&&o[7].length<=o[8]&&l==R;if(!(T||P))return n;b&h&&(n[2]=o[2],_|=l&h?0:E);var I=o[3];if(I){var z=n[3];n[3]=z?fp(z,I,o[4]):I,n[4]=z?sn(n[3],p):o[4]}return I=o[5],I&&(z=n[5],n[5]=z?dp(z,I,o[6]):I,n[6]=z?sn(n[5],p):o[6]),I=o[7],I&&(n[7]=I),b&M&&(n[8]=n[8]==null?o[8]:wt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=_,n}function Ox(n){var o=[];if(n!=null)for(var l in We(n))o.push(l);return o}function Ax(n){return us.call(n)}function Cp(n,o,l){return o=lt(o===r?n.length-1:o,0),function(){for(var b=arguments,_=-1,T=lt(b.length-o,0),P=H(T);++_<T;)P[_]=b[o+_];_=-1;for(var I=H(o+1);++_<o;)I[_]=b[_];return I[o]=l(P),Dt(n,this,I)}}function kp(n,o){return o.length<2?n:kn(n,er(o,0,-1))}function Tx(n,o){for(var l=n.length,b=wt(o.length,l),_=Ct(n);b--;){var T=o[b];n[b]=Ur(T,l)?_[T]:r}return n}function nl(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var $p=Lp(tp),Hi=Uw||function(n,o){return pt.setTimeout(n,o)},il=Lp(X1);function Ip(n,o,l){var b=o+"";return il(n,yx(b,Rx(gx(b),l)))}function Lp(n){var o=0,l=0;return function(){var b=Zw(),_=Z-(b-l);if(l=b,_>0){if(++o>=B)return arguments[0]}else o=0;return n.apply(r,arguments)}}function $s(n,o){var l=-1,b=n.length,_=b-1;for(o=o===r?b:o;++l<o;){var T=zu(l,_),P=n[T];n[T]=n[l],n[l]=P}return n.length=o,n}var Mp=Ex(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(yb,function(l,b,_,T){o.push(_?T.replace(Ob,"$1"):b||l)}),o});function cr(n){if(typeof n=="string"||Wt(n))return n;var o=n+"";return o=="0"&&1/n==-re?"-0":o}function In(n){if(n!=null){try{return as.call(n)}catch{}try{return n+""}catch{}}return""}function Rx(n,o){return Nt(he,function(l){var b="_."+l[0];o&l[1]&&!rs(n,b)&&n.push(b)}),n.sort()}function Fp(n){if(n instanceof Pe)return n.clone();var o=new Jt(n.__wrapped__,n.__chain__);return o.__actions__=Ct(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Px(n,o,l){(l?At(n,o,l):o===r)?o=1:o=lt(Ee(o),0);var b=n==null?0:n.length;if(!b||o<1)return[];for(var _=0,T=0,P=H(hs(b/o));_<b;)P[T++]=er(n,_,_+=o);return P}function Cx(n){for(var o=-1,l=n==null?0:n.length,b=0,_=[];++o<l;){var T=n[o];T&&(_[b++]=T)}return _}function kx(){var n=arguments.length;if(!n)return[];for(var o=H(n-1),l=arguments[0],b=n;b--;)o[b-1]=arguments[b];return on(Se(l)?Ct(l):[l],ht(o,1))}var $x=Te(function(n,o){return rt(n)?Ni(n,ht(o,1,rt,!0)):[]}),Ix=Te(function(n,o){var l=tr(o);return rt(l)&&(l=r),rt(n)?Ni(n,ht(o,1,rt,!0),ge(l,2)):[]}),Lx=Te(function(n,o){var l=tr(o);return rt(l)&&(l=r),rt(n)?Ni(n,ht(o,1,rt,!0),r,l):[]});function Mx(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:Ee(o),er(n,o<0?0:o,b)):[]}function Fx(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:Ee(o),o=b-o,er(n,0,o<0?0:o)):[]}function Dx(n,o){return n&&n.length?_s(n,ge(o,3),!0,!0):[]}function Nx(n,o){return n&&n.length?_s(n,ge(o,3),!0):[]}function jx(n,o,l,b){var _=n==null?0:n.length;return _?(l&&typeof l!="number"&&At(n,o,l)&&(l=0,b=_),k1(n,o,l,b)):[]}function Dp(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=l==null?0:Ee(l);return _<0&&(_=lt(b+_,0)),ns(n,ge(o,3),_)}function Np(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=b-1;return l!==r&&(_=Ee(l),_=l<0?lt(b+_,0):wt(_,b-1)),ns(n,ge(o,3),_,!0)}function jp(n){var o=n==null?0:n.length;return o?ht(n,1):[]}function zx(n){var o=n==null?0:n.length;return o?ht(n,re):[]}function Wx(n,o){var l=n==null?0:n.length;return l?(o=o===r?1:Ee(o),ht(n,o)):[]}function Ux(n){for(var o=-1,l=n==null?0:n.length,b={};++o<l;){var _=n[o];br(b,_[0],_[1])}return b}function zp(n){return n&&n.length?n[0]:r}function Bx(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=l==null?0:Ee(l);return _<0&&(_=lt(b+_,0)),Qn(n,o,_)}function Hx(n){var o=n==null?0:n.length;return o?er(n,0,-1):[]}var qx=Te(function(n){var o=Ze(n,qu);return o.length&&o[0]===n[0]?Mu(o):[]}),Zx=Te(function(n){var o=tr(n),l=Ze(n,qu);return o===tr(l)?o=r:l.pop(),l.length&&l[0]===n[0]?Mu(l,ge(o,2)):[]}),Gx=Te(function(n){var o=tr(n),l=Ze(n,qu);return o=typeof o=="function"?o:r,o&&l.pop(),l.length&&l[0]===n[0]?Mu(l,r,o):[]});function Kx(n,o){return n==null?"":Hw.call(n,o)}function tr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Vx(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=b;return l!==r&&(_=Ee(l),_=_<0?lt(b+_,0):wt(_,b-1)),o===o?Rw(n,o,_):ns(n,wd,_,!0)}function Xx(n,o){return n&&n.length?Yd(n,Ee(o)):r}var Yx=Te(Wp);function Wp(n,o){return n&&n.length&&o&&o.length?ju(n,o):n}function Jx(n,o,l){return n&&n.length&&o&&o.length?ju(n,o,ge(l,2)):n}function Qx(n,o,l){return n&&n.length&&o&&o.length?ju(n,o,r,l):n}var eS=Wr(function(n,o){var l=n==null?0:n.length,b=ku(n,o);return ep(n,Ze(o,function(_){return Ur(_,l)?+_:_}).sort(cp)),b});function tS(n,o){var l=[];if(!(n&&n.length))return l;var b=-1,_=[],T=n.length;for(o=ge(o,3);++b<T;){var P=n[b];o(P,b,n)&&(l.push(P),_.push(b))}return ep(n,_),l}function ol(n){return n==null?n:Kw.call(n)}function rS(n,o,l){var b=n==null?0:n.length;return b?(l&&typeof l!="number"&&At(n,o,l)?(o=0,l=b):(o=o==null?0:Ee(o),l=l===r?b:Ee(l)),er(n,o,l)):[]}function nS(n,o){return Es(n,o)}function iS(n,o,l){return Uu(n,o,ge(l,2))}function oS(n,o){var l=n==null?0:n.length;if(l){var b=Es(n,o);if(b<l&&fr(n[b],o))return b}return-1}function sS(n,o){return Es(n,o,!0)}function aS(n,o,l){return Uu(n,o,ge(l,2),!0)}function uS(n,o){var l=n==null?0:n.length;if(l){var b=Es(n,o,!0)-1;if(fr(n[b],o))return b}return-1}function lS(n){return n&&n.length?rp(n):[]}function cS(n,o){return n&&n.length?rp(n,ge(o,2)):[]}function fS(n){var o=n==null?0:n.length;return o?er(n,1,o):[]}function dS(n,o,l){return n&&n.length?(o=l||o===r?1:Ee(o),er(n,0,o<0?0:o)):[]}function pS(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:Ee(o),o=b-o,er(n,o<0?0:o,b)):[]}function hS(n,o){return n&&n.length?_s(n,ge(o,3),!1,!0):[]}function gS(n,o){return n&&n.length?_s(n,ge(o,3)):[]}var mS=Te(function(n){return ln(ht(n,1,rt,!0))}),vS=Te(function(n){var o=tr(n);return rt(o)&&(o=r),ln(ht(n,1,rt,!0),ge(o,2))}),yS=Te(function(n){var o=tr(n);return o=typeof o=="function"?o:r,ln(ht(n,1,rt,!0),r,o)});function bS(n){return n&&n.length?ln(n):[]}function wS(n,o){return n&&n.length?ln(n,ge(o,2)):[]}function xS(n,o){return o=typeof o=="function"?o:r,n&&n.length?ln(n,r,o):[]}function sl(n){if(!(n&&n.length))return[];var o=0;return n=nn(n,function(l){if(rt(l))return o=lt(l.length,o),!0}),Eu(o,function(l){return Ze(n,wu(l))})}function Up(n,o){if(!(n&&n.length))return[];var l=sl(n);return o==null?l:Ze(l,function(b){return Dt(o,r,b)})}var SS=Te(function(n,o){return rt(n)?Ni(n,o):[]}),ES=Te(function(n){return Hu(nn(n,rt))}),_S=Te(function(n){var o=tr(n);return rt(o)&&(o=r),Hu(nn(n,rt),ge(o,2))}),OS=Te(function(n){var o=tr(n);return o=typeof o=="function"?o:r,Hu(nn(n,rt),r,o)}),AS=Te(sl);function TS(n,o){return sp(n||[],o||[],Di)}function RS(n,o){return sp(n||[],o||[],Wi)}var PS=Te(function(n){var o=n.length,l=o>1?n[o-1]:r;return l=typeof l=="function"?(n.pop(),l):r,Up(n,l)});function Bp(n){var o=A(n);return o.__chain__=!0,o}function CS(n,o){return o(n),n}function Is(n,o){return o(n)}var kS=Wr(function(n){var o=n.length,l=o?n[0]:0,b=this.__wrapped__,_=function(T){return ku(T,n)};return o>1||this.__actions__.length||!(b instanceof Pe)||!Ur(l)?this.thru(_):(b=b.slice(l,+l+(o?1:0)),b.__actions__.push({func:Is,args:[_],thisArg:r}),new Jt(b,this.__chain__).thru(function(T){return o&&!T.length&&T.push(r),T}))});function $S(){return Bp(this)}function IS(){return new Jt(this.value(),this.__chain__)}function LS(){this.__values__===r&&(this.__values__=nh(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function MS(){return this}function FS(n){for(var o,l=this;l instanceof ys;){var b=Fp(l);b.__index__=0,b.__values__=r,o?_.__wrapped__=b:o=b;var _=b;l=l.__wrapped__}return _.__wrapped__=n,o}function DS(){var n=this.__wrapped__;if(n instanceof Pe){var o=n;return this.__actions__.length&&(o=new Pe(this)),o=o.reverse(),o.__actions__.push({func:Is,args:[ol],thisArg:r}),new Jt(o,this.__chain__)}return this.thru(ol)}function NS(){return op(this.__wrapped__,this.__actions__)}var jS=Os(function(n,o,l){Le.call(n,l)?++n[l]:br(n,l,1)});function zS(n,o,l){var b=Se(n)?yd:C1;return l&&At(n,o,l)&&(o=r),b(n,ge(o,3))}function WS(n,o){var l=Se(n)?nn:Ud;return l(n,ge(o,3))}var US=mp(Dp),BS=mp(Np);function HS(n,o){return ht(Ls(n,o),1)}function qS(n,o){return ht(Ls(n,o),re)}function ZS(n,o,l){return l=l===r?1:Ee(l),ht(Ls(n,o),l)}function Hp(n,o){var l=Se(n)?Nt:un;return l(n,ge(o,3))}function qp(n,o){var l=Se(n)?fw:Wd;return l(n,ge(o,3))}var GS=Os(function(n,o,l){Le.call(n,l)?n[l].push(o):br(n,l,[o])});function KS(n,o,l,b){n=kt(n)?n:fi(n),l=l&&!b?Ee(l):0;var _=n.length;return l<0&&(l=lt(_+l,0)),js(n)?l<=_&&n.indexOf(o,l)>-1:!!_&&Qn(n,o,l)>-1}var VS=Te(function(n,o,l){var b=-1,_=typeof o=="function",T=kt(n)?H(n.length):[];return un(n,function(P){T[++b]=_?Dt(o,P,l):ji(P,o,l)}),T}),XS=Os(function(n,o,l){br(n,l,o)});function Ls(n,o){var l=Se(n)?Ze:Kd;return l(n,ge(o,3))}function YS(n,o,l,b){return n==null?[]:(Se(o)||(o=o==null?[]:[o]),l=b?r:l,Se(l)||(l=l==null?[]:[l]),Jd(n,o,l))}var JS=Os(function(n,o,l){n[l?0:1].push(o)},function(){return[[],[]]});function QS(n,o,l){var b=Se(n)?yu:Sd,_=arguments.length<3;return b(n,ge(o,4),l,_,un)}function eE(n,o,l){var b=Se(n)?dw:Sd,_=arguments.length<3;return b(n,ge(o,4),l,_,Wd)}function tE(n,o){var l=Se(n)?nn:Ud;return l(n,Ds(ge(o,3)))}function rE(n){var o=Se(n)?Dd:K1;return o(n)}function nE(n,o,l){(l?At(n,o,l):o===r)?o=1:o=Ee(o);var b=Se(n)?O1:V1;return b(n,o)}function iE(n){var o=Se(n)?A1:Y1;return o(n)}function oE(n){if(n==null)return 0;if(kt(n))return js(n)?ti(n):n.length;var o=xt(n);return o==bt||o==Pt?n.size:Du(n).length}function sE(n,o,l){var b=Se(n)?bu:J1;return l&&At(n,o,l)&&(o=r),b(n,ge(o,3))}var aE=Te(function(n,o){if(n==null)return[];var l=o.length;return l>1&&At(n,o[0],o[1])?o=[]:l>2&&At(o[0],o[1],o[2])&&(o=[o[0]]),Jd(n,ht(o,1),[])}),Ms=Ww||function(){return pt.Date.now()};function uE(n,o){if(typeof o!="function")throw new Yt(u);return n=Ee(n),function(){if(--n<1)return o.apply(this,arguments)}}function Zp(n,o,l){return o=l?r:o,o=n&&o==null?n.length:o,zr(n,M,r,r,r,r,o)}function Gp(n,o){var l;if(typeof o!="function")throw new Yt(u);return n=Ee(n),function(){return--n>0&&(l=o.apply(this,arguments)),n<=1&&(o=r),l}}var al=Te(function(n,o,l){var b=h;if(l.length){var _=sn(l,li(al));b|=C}return zr(n,b,o,l,_)}),Kp=Te(function(n,o,l){var b=h|S;if(l.length){var _=sn(l,li(Kp));b|=C}return zr(o,b,n,l,_)});function Vp(n,o,l){o=l?r:o;var b=zr(n,R,r,r,r,r,r,o);return b.placeholder=Vp.placeholder,b}function Xp(n,o,l){o=l?r:o;var b=zr(n,O,r,r,r,r,r,o);return b.placeholder=Xp.placeholder,b}function Yp(n,o,l){var b,_,T,P,I,z,V=0,X=!1,ee=!1,se=!0;if(typeof n!="function")throw new Yt(u);o=rr(o)||0,Ve(l)&&(X=!!l.leading,ee="maxWait"in l,T=ee?lt(rr(l.maxWait)||0,o):T,se="trailing"in l?!!l.trailing:se);function le(nt){var dr=b,qr=_;return b=_=r,V=nt,P=n.apply(qr,dr),P}function me(nt){return V=nt,I=Hi(Re,o),X?le(nt):P}function Oe(nt){var dr=nt-z,qr=nt-V,vh=o-dr;return ee?wt(vh,T-qr):vh}function pe(nt){var dr=nt-z,qr=nt-V;return z===r||dr>=o||dr<0||ee&&qr>=T}function Re(){var nt=Ms();if(pe(nt))return Ce(nt);I=Hi(Re,Oe(nt))}function Ce(nt){return I=r,se&&b?le(nt):(b=_=r,P)}function Ut(){I!==r&&ap(I),V=0,b=z=_=I=r}function Tt(){return I===r?P:Ce(Ms())}function Bt(){var nt=Ms(),dr=pe(nt);if(b=arguments,_=this,z=nt,dr){if(I===r)return me(z);if(ee)return ap(I),I=Hi(Re,o),le(z)}return I===r&&(I=Hi(Re,o)),P}return Bt.cancel=Ut,Bt.flush=Tt,Bt}var lE=Te(function(n,o){return zd(n,1,o)}),cE=Te(function(n,o,l){return zd(n,rr(o)||0,l)});function fE(n){return zr(n,q)}function Fs(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Yt(u);var l=function(){var b=arguments,_=o?o.apply(this,b):b[0],T=l.cache;if(T.has(_))return T.get(_);var P=n.apply(this,b);return l.cache=T.set(_,P)||T,P};return l.cache=new(Fs.Cache||jr),l}Fs.Cache=jr;function Ds(n){if(typeof n!="function")throw new Yt(u);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function dE(n){return Gp(2,n)}var pE=Q1(function(n,o){o=o.length==1&&Se(o[0])?Ze(o[0],jt(ge())):Ze(ht(o,1),jt(ge()));var l=o.length;return Te(function(b){for(var _=-1,T=wt(b.length,l);++_<T;)b[_]=o[_].call(this,b[_]);return Dt(n,this,b)})}),ul=Te(function(n,o){var l=sn(o,li(ul));return zr(n,C,r,o,l)}),Jp=Te(function(n,o){var l=sn(o,li(Jp));return zr(n,U,r,o,l)}),hE=Wr(function(n,o){return zr(n,D,r,r,r,o)});function gE(n,o){if(typeof n!="function")throw new Yt(u);return o=o===r?o:Ee(o),Te(n,o)}function mE(n,o){if(typeof n!="function")throw new Yt(u);return o=o==null?0:lt(Ee(o),0),Te(function(l){var b=l[o],_=fn(l,0,o);return b&&on(_,b),Dt(n,this,_)})}function vE(n,o,l){var b=!0,_=!0;if(typeof n!="function")throw new Yt(u);return Ve(l)&&(b="leading"in l?!!l.leading:b,_="trailing"in l?!!l.trailing:_),Yp(n,o,{leading:b,maxWait:o,trailing:_})}function yE(n){return Zp(n,1)}function bE(n,o){return ul(Zu(o),n)}function wE(){if(!arguments.length)return[];var n=arguments[0];return Se(n)?n:[n]}function xE(n){return Qt(n,x)}function SE(n,o){return o=typeof o=="function"?o:r,Qt(n,x,o)}function EE(n){return Qt(n,g|x)}function _E(n,o){return o=typeof o=="function"?o:r,Qt(n,g|x,o)}function OE(n,o){return o==null||jd(n,o,ft(o))}function fr(n,o){return n===o||n!==n&&o!==o}var AE=Ps(Lu),TE=Ps(function(n,o){return n>=o}),Ln=qd((function(){return arguments})())?qd:function(n){return et(n)&&Le.call(n,"callee")&&!kd.call(n,"callee")},Se=H.isArray,RE=dd?jt(dd):F1;function kt(n){return n!=null&&Ns(n.length)&&!Br(n)}function rt(n){return et(n)&&kt(n)}function PE(n){return n===!0||n===!1||et(n)&&Ot(n)==Ae}var dn=Bw||wl,CE=pd?jt(pd):D1;function kE(n){return et(n)&&n.nodeType===1&&!qi(n)}function $E(n){if(n==null)return!0;if(kt(n)&&(Se(n)||typeof n=="string"||typeof n.splice=="function"||dn(n)||ci(n)||Ln(n)))return!n.length;var o=xt(n);if(o==bt||o==Pt)return!n.size;if(Bi(n))return!Du(n).length;for(var l in n)if(Le.call(n,l))return!1;return!0}function IE(n,o){return zi(n,o)}function LE(n,o,l){l=typeof l=="function"?l:r;var b=l?l(n,o):r;return b===r?zi(n,o,r,l):!!b}function ll(n){if(!et(n))return!1;var o=Ot(n);return o==oe||o==ot||typeof n.message=="string"&&typeof n.name=="string"&&!qi(n)}function ME(n){return typeof n=="number"&&Id(n)}function Br(n){if(!Ve(n))return!1;var o=Ot(n);return o==ct||o==Fr||o==xe||o==Dr}function Qp(n){return typeof n=="number"&&n==Ee(n)}function Ns(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ce}function Ve(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function et(n){return n!=null&&typeof n=="object"}var eh=hd?jt(hd):j1;function FE(n,o){return n===o||Fu(n,o,Qu(o))}function DE(n,o,l){return l=typeof l=="function"?l:r,Fu(n,o,Qu(o),l)}function NE(n){return th(n)&&n!=+n}function jE(n){if(Sx(n))throw new be(a);return Zd(n)}function zE(n){return n===null}function WE(n){return n==null}function th(n){return typeof n=="number"||et(n)&&Ot(n)==Jr}function qi(n){if(!et(n)||Ot(n)!=ar)return!1;var o=fs(n);if(o===null)return!0;var l=Le.call(o,"constructor")&&o.constructor;return typeof l=="function"&&l instanceof l&&as.call(l)==Dw}var cl=gd?jt(gd):z1;function UE(n){return Qp(n)&&n>=-ce&&n<=ce}var rh=md?jt(md):W1;function js(n){return typeof n=="string"||!Se(n)&&et(n)&&Ot(n)==Qr}function Wt(n){return typeof n=="symbol"||et(n)&&Ot(n)==en}var ci=vd?jt(vd):U1;function BE(n){return n===r}function HE(n){return et(n)&&xt(n)==tn}function qE(n){return et(n)&&Ot(n)==Jo}var ZE=Ps(Nu),GE=Ps(function(n,o){return n<=o});function nh(n){if(!n)return[];if(kt(n))return js(n)?ur(n):Ct(n);if($i&&n[$i])return Ow(n[$i]());var o=xt(n),l=o==bt?Ou:o==Pt?is:fi;return l(n)}function Hr(n){if(!n)return n===0?n:0;if(n=rr(n),n===re||n===-re){var o=n<0?-1:1;return o*G}return n===n?n:0}function Ee(n){var o=Hr(n),l=o%1;return o===o?l?o-l:o:0}function ih(n){return n?Cn(Ee(n),0,ne):0}function rr(n){if(typeof n=="number")return n;if(Wt(n))return te;if(Ve(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ve(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Ed(n);var l=Rb.test(n);return l||Cb.test(n)?uw(n.slice(2),l?2:8):Tb.test(n)?te:+n}function oh(n){return xr(n,$t(n))}function KE(n){return n?Cn(Ee(n),-ce,ce):n===0?n:0}function Me(n){return n==null?"":zt(n)}var VE=ai(function(n,o){if(Bi(o)||kt(o)){xr(o,ft(o),n);return}for(var l in o)Le.call(o,l)&&Di(n,l,o[l])}),sh=ai(function(n,o){xr(o,$t(o),n)}),ah=ai(function(n,o,l,b){xr(o,$t(o),n,b)}),fl=ai(function(n,o,l,b){xr(o,ft(o),n,b)}),XE=Wr(ku);function YE(n,o){var l=si(n);return o==null?l:Nd(l,o)}var JE=Te(function(n,o){n=We(n);var l=-1,b=o.length,_=b>2?o[2]:r;for(_&&At(o[0],o[1],_)&&(b=1);++l<b;)for(var T=o[l],P=$t(T),I=-1,z=P.length;++I<z;){var V=P[I],X=n[V];(X===r||fr(X,ni[V])&&!Le.call(n,V))&&(n[V]=T[V])}return n}),QE=Te(function(n){return n.push(r,Ep),Dt(uh,r,n)});function e_(n,o){return bd(n,ge(o,3),wr)}function t_(n,o){return bd(n,ge(o,3),Iu)}function r_(n,o){return n==null?n:$u(n,ge(o,3),$t)}function n_(n,o){return n==null?n:Bd(n,ge(o,3),$t)}function i_(n,o){return n&&wr(n,ge(o,3))}function o_(n,o){return n&&Iu(n,ge(o,3))}function s_(n){return n==null?[]:xs(n,ft(n))}function a_(n){return n==null?[]:xs(n,$t(n))}function dl(n,o,l){var b=n==null?r:kn(n,o);return b===r?l:b}function u_(n,o){return n!=null&&Ap(n,o,$1)}function pl(n,o){return n!=null&&Ap(n,o,I1)}var l_=yp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),n[o]=l},gl(It)),c_=yp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),Le.call(n,o)?n[o].push(l):n[o]=[l]},ge),f_=Te(ji);function ft(n){return kt(n)?Fd(n):Du(n)}function $t(n){return kt(n)?Fd(n,!0):B1(n)}function d_(n,o){var l={};return o=ge(o,3),wr(n,function(b,_,T){br(l,o(b,_,T),b)}),l}function p_(n,o){var l={};return o=ge(o,3),wr(n,function(b,_,T){br(l,_,o(b,_,T))}),l}var h_=ai(function(n,o,l){Ss(n,o,l)}),uh=ai(function(n,o,l,b){Ss(n,o,l,b)}),g_=Wr(function(n,o){var l={};if(n==null)return l;var b=!1;o=Ze(o,function(T){return T=cn(T,n),b||(b=T.length>1),T}),xr(n,Yu(n),l),b&&(l=Qt(l,g|v|x,cx));for(var _=o.length;_--;)Bu(l,o[_]);return l});function m_(n,o){return lh(n,Ds(ge(o)))}var v_=Wr(function(n,o){return n==null?{}:q1(n,o)});function lh(n,o){if(n==null)return{};var l=Ze(Yu(n),function(b){return[b]});return o=ge(o),Qd(n,l,function(b,_){return o(b,_[0])})}function y_(n,o,l){o=cn(o,n);var b=-1,_=o.length;for(_||(_=1,n=r);++b<_;){var T=n==null?r:n[cr(o[b])];T===r&&(b=_,T=l),n=Br(T)?T.call(n):T}return n}function b_(n,o,l){return n==null?n:Wi(n,o,l)}function w_(n,o,l,b){return b=typeof b=="function"?b:r,n==null?n:Wi(n,o,l,b)}var ch=xp(ft),fh=xp($t);function x_(n,o,l){var b=Se(n),_=b||dn(n)||ci(n);if(o=ge(o,4),l==null){var T=n&&n.constructor;_?l=b?new T:[]:Ve(n)?l=Br(T)?si(fs(n)):{}:l={}}return(_?Nt:wr)(n,function(P,I,z){return o(l,P,I,z)}),l}function S_(n,o){return n==null?!0:Bu(n,o)}function E_(n,o,l){return n==null?n:ip(n,o,Zu(l))}function __(n,o,l,b){return b=typeof b=="function"?b:r,n==null?n:ip(n,o,Zu(l),b)}function fi(n){return n==null?[]:_u(n,ft(n))}function O_(n){return n==null?[]:_u(n,$t(n))}function A_(n,o,l){return l===r&&(l=o,o=r),l!==r&&(l=rr(l),l=l===l?l:0),o!==r&&(o=rr(o),o=o===o?o:0),Cn(rr(n),o,l)}function T_(n,o,l){return o=Hr(o),l===r?(l=o,o=0):l=Hr(l),n=rr(n),L1(n,o,l)}function R_(n,o,l){if(l&&typeof l!="boolean"&&At(n,o,l)&&(o=l=r),l===r&&(typeof o=="boolean"?(l=o,o=r):typeof n=="boolean"&&(l=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Hr(n),o===r?(o=n,n=0):o=Hr(o)),n>o){var b=n;n=o,o=b}if(l||n%1||o%1){var _=Ld();return wt(n+_*(o-n+aw("1e-"+((_+"").length-1))),o)}return zu(n,o)}var P_=ui(function(n,o,l){return o=o.toLowerCase(),n+(l?dh(o):o)});function dh(n){return hl(Me(n).toLowerCase())}function ph(n){return n=Me(n),n&&n.replace($b,ww).replace(Yb,"")}function C_(n,o,l){n=Me(n),o=zt(o);var b=n.length;l=l===r?b:Cn(Ee(l),0,b);var _=l;return l-=o.length,l>=0&&n.slice(l,_)==o}function k_(n){return n=Me(n),n&&pb.test(n)?n.replace(Uf,xw):n}function $_(n){return n=Me(n),n&&bb.test(n)?n.replace(uu,"\\$&"):n}var I_=ui(function(n,o,l){return n+(l?"-":"")+o.toLowerCase()}),L_=ui(function(n,o,l){return n+(l?" ":"")+o.toLowerCase()}),M_=gp("toLowerCase");function F_(n,o,l){n=Me(n),o=Ee(o);var b=o?ti(n):0;if(!o||b>=o)return n;var _=(o-b)/2;return Rs(gs(_),l)+n+Rs(hs(_),l)}function D_(n,o,l){n=Me(n),o=Ee(o);var b=o?ti(n):0;return o&&b<o?n+Rs(o-b,l):n}function N_(n,o,l){n=Me(n),o=Ee(o);var b=o?ti(n):0;return o&&b<o?Rs(o-b,l)+n:n}function j_(n,o,l){return l||o==null?o=0:o&&(o=+o),Gw(Me(n).replace(lu,""),o||0)}function z_(n,o,l){return(l?At(n,o,l):o===r)?o=1:o=Ee(o),Wu(Me(n),o)}function W_(){var n=arguments,o=Me(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var U_=ui(function(n,o,l){return n+(l?"_":"")+o.toLowerCase()});function B_(n,o,l){return l&&typeof l!="number"&&At(n,o,l)&&(o=l=r),l=l===r?ne:l>>>0,l?(n=Me(n),n&&(typeof o=="string"||o!=null&&!cl(o))&&(o=zt(o),!o&&ei(n))?fn(ur(n),0,l):n.split(o,l)):[]}var H_=ui(function(n,o,l){return n+(l?" ":"")+hl(o)});function q_(n,o,l){return n=Me(n),l=l==null?0:Cn(Ee(l),0,n.length),o=zt(o),n.slice(l,l+o.length)==o}function Z_(n,o,l){var b=A.templateSettings;l&&At(n,o,l)&&(o=r),n=Me(n),o=fl({},o,b,Sp);var _=fl({},o.imports,b.imports,Sp),T=ft(_),P=_u(_,T);Nt(T,function(pe){if(Hf.test(pe))throw new be(f)});var I,z,V=0,X=o.interpolate||Qo,ee="__p += '",se=Au((o.escape||Qo).source+"|"+X.source+"|"+(X===Bf?Ab:Qo).source+"|"+(o.evaluate||Qo).source+"|$","g"),le="//# sourceURL="+(Le.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rw+"]")+`
185
+ `;n.replace(se,function(pe,Re,Ce,Ut,Tt,Bt){return Ce||(Ce=Ut),ee+=n.slice(V,Bt).replace(Ib,Sw),Re&&(I=!0,ee+=`' +
186
186
  __e(`+Re+`) +
187
187
  '`),Tt&&(z=!0,ee+=`';
188
188
  `+Tt+`;
@@ -192,15 +192,15 @@ __p += '`),Ce&&(ee+=`' +
192
192
  `;var me=Le.call(o,"variable")&&o.variable;if(!me)ee=`with (obj) {
193
193
  `+ee+`
194
194
  }
195
- `;else if(qf.test(me))throw new be(c);ee=(z?ee.replace(sb,""):ee).replace(ab,"$1").replace(ub,"$1;"),ee="function("+(me||"obj")+`) {
195
+ `;else if(Hf.test(me))throw new be(c);ee=(z?ee.replace(lb,""):ee).replace(cb,"$1").replace(fb,"$1;"),ee="function("+(me||"obj")+`) {
196
196
  `+(me?"":`obj || (obj = {});
197
197
  `)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
198
198
  function print() { __p += __j.call(arguments, '') }
199
199
  `:`;
200
200
  `)+ee+`return __p
201
- }`;var Oe=mh(function(){return $e(T,le+"return "+ee).apply(r,P)});if(Oe.source=ee,cl(Oe))throw Oe;return Oe}function H_(n){return Me(n).toLowerCase()}function q_(n){return Me(n).toUpperCase()}function Z_(n,o,u){if(n=Me(n),n&&(u||o===r))return _d(n);if(!n||!(o=zt(o)))return n;var b=ur(n),_=ur(o),T=Od(b,_),P=Ad(b,_)+1;return cn(b,T,P).join("")}function G_(n,o,u){if(n=Me(n),n&&(u||o===r))return n.slice(0,Rd(n)+1);if(!n||!(o=zt(o)))return n;var b=ur(n),_=Ad(b,ur(o))+1;return cn(b,0,_).join("")}function K_(n,o,u){if(n=Me(n),n&&(u||o===r))return n.replace(cu,"");if(!n||!(o=zt(o)))return n;var b=ur(n),_=Od(b,ur(o));return cn(b,_).join("")}function V_(n,o){var u=N,b=L;if(Ve(o)){var _="separator"in o?o.separator:_;u="length"in o?Ee(o.length):u,b="omission"in o?zt(o.omission):b}n=Me(n);var T=n.length;if(ei(n)){var P=ur(n);T=P.length}if(u>=T)return n;var I=u-ti(b);if(I<1)return b;var z=P?cn(P,0,I).join(""):n.slice(0,I);if(_===r)return z+b;if(P&&(I+=z.length-I),fl(_)){if(n.slice(I).search(_)){var V,X=z;for(_.global||(_=Tu(_.source,Me(Zf.exec(_))+"g")),_.lastIndex=0;V=_.exec(X);)var ee=V.index;z=z.slice(0,ee===r?I:ee)}}else if(n.indexOf(zt(_),I)!=I){var se=z.lastIndexOf(_);se>-1&&(z=z.slice(0,se))}return z+b}function X_(n){return n=Me(n),n&&lb.test(n)?n.replace(Uf,Aw):n}var Y_=ui(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),gl=mp("toUpperCase");function gh(n,o,u){return n=Me(n),o=u?r:o,o===r?xw(n)?Pw(n):dw(n):n.match(o)||[]}var mh=Te(function(n,o){try{return Dt(n,r,o)}catch(u){return cl(u)?u:new be(u)}}),J_=zr(function(n,o){return Nt(o,function(u){u=cr(u),br(n,u,ul(n[u],n))}),n});function Q_(n){var o=n==null?0:n.length,u=ge();return n=o?Ze(n,function(b){if(typeof b[1]!="function")throw new Yt(l);return[u(b[0]),b[1]]}):[],Te(function(b){for(var _=-1;++_<o;){var T=n[_];if(Dt(T[0],this,b))return Dt(T[1],this,b)}})}function eO(n){return A1(Qt(n,g))}function ml(n){return function(){return n}}function tO(n,o){return n==null||n!==n?o:n}var rO=yp(),nO=yp(!0);function It(n){return n}function vl(n){return Kd(typeof n=="function"?n:Qt(n,g))}function iO(n){return Xd(Qt(n,g))}function oO(n,o){return Yd(n,Qt(o,g))}var sO=Te(function(n,o){return function(u){return ji(u,n,o)}}),aO=Te(function(n,o){return function(u){return ji(n,u,o)}});function yl(n,o,u){var b=ft(o),_=xs(o,b);u==null&&!(Ve(o)&&(_.length||!b.length))&&(u=o,o=n,n=this,_=xs(o,ft(o)));var T=!(Ve(u)&&"chain"in u)||!!u.chain,P=Ur(n);return Nt(_,function(I){var z=o[I];n[I]=z,P&&(n.prototype[I]=function(){var V=this.__chain__;if(T||V){var X=n(this.__wrapped__),ee=X.__actions__=Ct(this.__actions__);return ee.push({func:z,args:arguments,thisArg:n}),X.__chain__=V,X}return z.apply(n,nn([this.value()],arguments))})}),n}function uO(){return pt._===this&&(pt._=Mw),this}function bl(){}function lO(n){return n=Ee(n),Te(function(o){return Jd(o,n)})}var cO=Vu(Ze),fO=Vu(bd),dO=Vu(wu);function vh(n){return rl(n)?xu(cr(n)):B1(n)}function pO(n){return function(o){return n==null?r:Cn(n,o)}}var hO=wp(),gO=wp(!0);function wl(){return[]}function xl(){return!1}function mO(){return{}}function vO(){return""}function yO(){return!0}function bO(n,o){if(n=Ee(n),n<1||n>ce)return[];var u=ne,b=wt(n,ne);o=ge(o),n-=ne;for(var _=_u(b,o);++u<n;)o(u);return _}function wO(n){return Se(n)?Ze(n,cr):Wt(n)?[n]:Ct(Fp(Me(n)))}function xO(n){var o=++Iw;return Me(n)+o}var SO=Ts(function(n,o){return n+o},0),EO=Xu("ceil"),_O=Ts(function(n,o){return n/o},1),OO=Xu("floor");function AO(n){return n&&n.length?ws(n,It,Mu):r}function TO(n,o){return n&&n.length?ws(n,ge(o,2),Mu):r}function RO(n){return Sd(n,It)}function PO(n,o){return Sd(n,ge(o,2))}function CO(n){return n&&n.length?ws(n,It,ju):r}function kO(n,o){return n&&n.length?ws(n,ge(o,2),ju):r}var $O=Ts(function(n,o){return n*o},1),IO=Xu("round"),LO=Ts(function(n,o){return n-o},0);function MO(n){return n&&n.length?Eu(n,It):0}function FO(n,o){return n&&n.length?Eu(n,ge(o,2)):0}return A.after=oE,A.ary=Gp,A.assign=ZE,A.assignIn=ah,A.assignInWith=uh,A.assignWith=dl,A.at=GE,A.before=Kp,A.bind=ul,A.bindAll=J_,A.bindKey=Vp,A.castArray=vE,A.chain=Hp,A.chunk=Ax,A.compact=Tx,A.concat=Rx,A.cond=Q_,A.conforms=eO,A.constant=ml,A.countBy=FS,A.create=KE,A.curry=Xp,A.curryRight=Yp,A.debounce=Jp,A.defaults=VE,A.defaultsDeep=XE,A.defer=sE,A.delay=aE,A.difference=Px,A.differenceBy=Cx,A.differenceWith=kx,A.drop=$x,A.dropRight=Ix,A.dropRightWhile=Lx,A.dropWhile=Mx,A.fill=Fx,A.filter=NS,A.flatMap=WS,A.flatMapDeep=US,A.flatMapDepth=BS,A.flatten=zp,A.flattenDeep=Dx,A.flattenDepth=Nx,A.flip=uE,A.flow=rO,A.flowRight=nO,A.fromPairs=jx,A.functions=n_,A.functionsIn=i_,A.groupBy=HS,A.initial=Wx,A.intersection=Ux,A.intersectionBy=Bx,A.intersectionWith=Hx,A.invert=s_,A.invertBy=a_,A.invokeMap=ZS,A.iteratee=vl,A.keyBy=GS,A.keys=ft,A.keysIn=$t,A.map=Ls,A.mapKeys=l_,A.mapValues=c_,A.matches=iO,A.matchesProperty=oO,A.memoize=Fs,A.merge=f_,A.mergeWith=lh,A.method=sO,A.methodOf=aO,A.mixin=yl,A.negate=Ds,A.nthArg=lO,A.omit=d_,A.omitBy=p_,A.once=lE,A.orderBy=KS,A.over=cO,A.overArgs=cE,A.overEvery=fO,A.overSome=dO,A.partial=ll,A.partialRight=Qp,A.partition=VS,A.pick=h_,A.pickBy=ch,A.property=vh,A.propertyOf=pO,A.pull=Kx,A.pullAll=Up,A.pullAllBy=Vx,A.pullAllWith=Xx,A.pullAt=Yx,A.range=hO,A.rangeRight=gO,A.rearg=fE,A.reject=JS,A.remove=Jx,A.rest=dE,A.reverse=sl,A.sampleSize=eE,A.set=m_,A.setWith=v_,A.shuffle=tE,A.slice=Qx,A.sortBy=iE,A.sortedUniq=sS,A.sortedUniqBy=aS,A.split=z_,A.spread=pE,A.tail=uS,A.take=lS,A.takeRight=cS,A.takeRightWhile=fS,A.takeWhile=dS,A.tap=TS,A.throttle=hE,A.thru=Is,A.toArray=ih,A.toPairs=fh,A.toPairsIn=dh,A.toPath=wO,A.toPlainObject=sh,A.transform=y_,A.unary=gE,A.union=pS,A.unionBy=hS,A.unionWith=gS,A.uniq=mS,A.uniqBy=vS,A.uniqWith=yS,A.unset=b_,A.unzip=al,A.unzipWith=Bp,A.update=w_,A.updateWith=x_,A.values=fi,A.valuesIn=S_,A.without=bS,A.words=gh,A.wrap=mE,A.xor=wS,A.xorBy=xS,A.xorWith=SS,A.zip=ES,A.zipObject=_S,A.zipObjectDeep=OS,A.zipWith=AS,A.entries=fh,A.entriesIn=dh,A.extend=ah,A.extendWith=uh,yl(A,A),A.add=SO,A.attempt=mh,A.camelCase=A_,A.capitalize=ph,A.ceil=EO,A.clamp=E_,A.clone=yE,A.cloneDeep=wE,A.cloneDeepWith=xE,A.cloneWith=bE,A.conformsTo=SE,A.deburr=hh,A.defaultTo=tO,A.divide=_O,A.endsWith=T_,A.eq=fr,A.escape=R_,A.escapeRegExp=P_,A.every=DS,A.find=jS,A.findIndex=Np,A.findKey=YE,A.findLast=zS,A.findLastIndex=jp,A.findLastKey=JE,A.floor=OO,A.forEach=qp,A.forEachRight=Zp,A.forIn=QE,A.forInRight=e_,A.forOwn=t_,A.forOwnRight=r_,A.get=pl,A.gt=EE,A.gte=_E,A.has=o_,A.hasIn=hl,A.head=Wp,A.identity=It,A.includes=qS,A.indexOf=zx,A.inRange=__,A.invoke=u_,A.isArguments=In,A.isArray=Se,A.isArrayBuffer=OE,A.isArrayLike=kt,A.isArrayLikeObject=rt,A.isBoolean=AE,A.isBuffer=fn,A.isDate=TE,A.isElement=RE,A.isEmpty=PE,A.isEqual=CE,A.isEqualWith=kE,A.isError=cl,A.isFinite=$E,A.isFunction=Ur,A.isInteger=eh,A.isLength=Ns,A.isMap=th,A.isMatch=IE,A.isMatchWith=LE,A.isNaN=ME,A.isNative=FE,A.isNil=NE,A.isNull=DE,A.isNumber=rh,A.isObject=Ve,A.isObjectLike=et,A.isPlainObject=qi,A.isRegExp=fl,A.isSafeInteger=jE,A.isSet=nh,A.isString=js,A.isSymbol=Wt,A.isTypedArray=ci,A.isUndefined=zE,A.isWeakMap=WE,A.isWeakSet=UE,A.join=qx,A.kebabCase=C_,A.last=tr,A.lastIndexOf=Zx,A.lowerCase=k_,A.lowerFirst=$_,A.lt=BE,A.lte=HE,A.max=AO,A.maxBy=TO,A.mean=RO,A.meanBy=PO,A.min=CO,A.minBy=kO,A.stubArray=wl,A.stubFalse=xl,A.stubObject=mO,A.stubString=vO,A.stubTrue=yO,A.multiply=$O,A.nth=Gx,A.noConflict=uO,A.noop=bl,A.now=Ms,A.pad=I_,A.padEnd=L_,A.padStart=M_,A.parseInt=F_,A.random=O_,A.reduce=XS,A.reduceRight=YS,A.repeat=D_,A.replace=N_,A.result=g_,A.round=IO,A.runInContext=j,A.sample=QS,A.size=rE,A.snakeCase=j_,A.some=nE,A.sortedIndex=eS,A.sortedIndexBy=tS,A.sortedIndexOf=rS,A.sortedLastIndex=nS,A.sortedLastIndexBy=iS,A.sortedLastIndexOf=oS,A.startCase=W_,A.startsWith=U_,A.subtract=LO,A.sum=MO,A.sumBy=FO,A.template=B_,A.times=bO,A.toFinite=Br,A.toInteger=Ee,A.toLength=oh,A.toLower=H_,A.toNumber=rr,A.toSafeInteger=qE,A.toString=Me,A.toUpper=q_,A.trim=Z_,A.trimEnd=G_,A.trimStart=K_,A.truncate=V_,A.unescape=X_,A.uniqueId=xO,A.upperCase=Y_,A.upperFirst=gl,A.each=qp,A.eachRight=Zp,A.first=Wp,yl(A,(function(){var n={};return wr(A,function(o,u){Le.call(A.prototype,u)||(n[u]=o)}),n})(),{chain:!1}),A.VERSION=i,Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){A[n].placeholder=A}),Nt(["drop","take"],function(n,o){Pe.prototype[n]=function(u){u=u===r?1:lt(Ee(u),0);var b=this.__filtered__&&!o?new Pe(this):this.clone();return b.__filtered__?b.__takeCount__=wt(u,b.__takeCount__):b.__views__.push({size:wt(u,ne),type:n+(b.__dir__<0?"Right":"")}),b},Pe.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Nt(["filter","map","takeWhile"],function(n,o){var u=o+1,b=u==k||u==J;Pe.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:ge(_,3),type:u}),T.__filtered__=T.__filtered__||b,T}}),Nt(["head","last"],function(n,o){var u="take"+(o?"Right":"");Pe.prototype[n]=function(){return this[u](1).value()[0]}}),Nt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");Pe.prototype[n]=function(){return this.__filtered__?new Pe(this):this[u](1)}}),Pe.prototype.compact=function(){return this.filter(It)},Pe.prototype.find=function(n){return this.filter(n).head()},Pe.prototype.findLast=function(n){return this.reverse().find(n)},Pe.prototype.invokeMap=Te(function(n,o){return typeof n=="function"?new Pe(this):this.map(function(u){return ji(u,n,o)})}),Pe.prototype.reject=function(n){return this.filter(Ds(ge(n)))},Pe.prototype.slice=function(n,o){n=Ee(n);var u=this;return u.__filtered__&&(n>0||o<0)?new Pe(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=Ee(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},Pe.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pe.prototype.toArray=function(){return this.take(ne)},wr(Pe.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),b=/^(?:head|last)$/.test(o),_=A[b?"take"+(o=="last"?"Right":""):o],T=b||/^find/.test(o);_&&(A.prototype[o]=function(){var P=this.__wrapped__,I=b?[1]:arguments,z=P instanceof Pe,V=I[0],X=z||Se(P),ee=function(Re){var Ce=_.apply(A,nn([Re],I));return b&&se?Ce[0]:Ce};X&&u&&typeof V=="function"&&V.length!=1&&(z=X=!1);var se=this.__chain__,le=!!this.__actions__.length,me=T&&!se,Oe=z&&!le;if(!T&&X){P=Oe?P:new Pe(this);var pe=n.apply(P,I);return pe.__actions__.push({func:Is,args:[ee],thisArg:r}),new Jt(pe,se)}return me&&Oe?n.apply(this,I):(pe=this.thru(ee),me?b?pe.value()[0]:pe.value():pe)})}),Nt(["pop","push","shift","sort","splice","unshift"],function(n){var o=os[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",b=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var _=arguments;if(b&&!this.__chain__){var T=this.value();return o.apply(Se(T)?T:[],_)}return this[u](function(P){return o.apply(Se(P)?P:[],_)})}}),wr(Pe.prototype,function(n,o){var u=A[o];if(u){var b=u.name+"";Le.call(oi,b)||(oi[b]=[]),oi[b].push({name:o,func:u})}}),oi[As(r,S).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=Yw,Pe.prototype.reverse=Jw,Pe.prototype.value=Qw,A.prototype.at=RS,A.prototype.chain=PS,A.prototype.commit=CS,A.prototype.next=kS,A.prototype.plant=IS,A.prototype.reverse=LS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=MS,A.prototype.first=A.prototype.head,$i&&(A.prototype[$i]=$S),A}),ri=Cw();On?((On.exports=ri)._=ri,mu._=ri):pt._=ri}).call(y$)})(bo,bo.exports)),bo.exports}var Ye=b$();const Pc={FdSave:tt.FdSave,FdWarningDanger:tt.FdWarningDanger,FdInfoCircle:tt.FdInfoCircle,FdInfoBold:tt.FdInfoBold};var Ef=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Ef||{}),Bn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Bn||{}),vi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(vi||{});const zy={[Bn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Bn.DANGER]:{icon:"red-500",button:"primary-dark"},[Bn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ec=({color:e=Bn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=zy[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return F.jsx("button",{autoFocus:i,className:He("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...s,children:r})},w$=({name:e,color:t=Bn.PRIMARY,className:r="w-8 h-8"})=>{const i=Pc[e]||Pc.FdInfoCircle,s=`text-${zy[t].icon}`;return F.jsx(i,{className:He(r,s)})},x$=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:l=3e3,views:c,width:f=520,hasOverlay:m=!0,container:y,onClose:p,onEdit:g})=>{const v=w=>{p({id:e,reason:w})};W.useEffect(()=>{function w(h){h.key==="Escape"&&v(vi.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=Ye.merge(Ye.values(c==null?void 0:c.toggles).flatMap(w=>w.value?w.warnings||[]:[]),c==null?void 0:c.tips),d=(w,h)=>{var E;if(!(c!=null&&c.toggles))return;const S=Ye.cloneDeep(c);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=h),g({id:e,views:S})};return zo.createPortal(F.jsx(Oa,{appear:!0,show:!0,as:W.Fragment,children:F.jsx("div",{className:He("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":m}),style:{zIndex:l},onClick:()=>v(vi.CANCELED),children:F.jsx(Oa.Child,{as:W.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:F.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:f},onClick:w=>w.stopPropagation(),children:F.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?F.jsx("div",{className:"flex items-center justify-center",children:F.jsx(w$,{name:i,color:a,className:"w-6 h-6"})}):null,F.jsx(S$,{condition:t,children:F.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),F.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),F.jsx("div",{className:"text-xs text-white",children:Ye.values(c==null?void 0:c.toggles).map(w=>F.jsx("div",{children:F.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[F.jsx(Oy,{size:"xs",value:w.value,onChange:h=>d(w.key,h)}),F.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),F.jsx(E$,{warnings:x}),F.jsx("div",{className:"flex items-center gap-4",children:s===Ef.CONFIRM?F.jsxs(F.Fragment,{children:[F.jsx(ec,{autoFocus:!0,color:a,onClick:()=>v(vi.CONFIRMED),children:"Confirm"}),F.jsx(ec,{color:a,variant:"outlined",onClick:()=>v(vi.CANCELED),children:"Cancel"})]}):F.jsx(ec,{autoFocus:!0,onClick:()=>v(),children:"OK"})})]})})})})}),y||document.body)},S$=e=>e.condition?F.jsx(F.Fragment,{children:e.children}):null,E$=e=>e.warnings?F.jsx(Oa,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:F.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>F.jsx(Oa.Child,{as:W.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:F.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[F.jsx(tt.FdWarningDanger,{className:He({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),F.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Wy=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(Wy||{});const _$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>F.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[F.jsx(tt.FdMinusNaked,{onClick:s,className:He("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),F.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),F.jsx(tt.FdPlusNaked,{onClick:i,className:He("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),O$=$.forwardRef(((e,t)=>$.createElement(En.span,Qe({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),A$=O$;function _m(e){const t=$.useRef({value:e,previous:e});return $.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Uy]=nf("Tooltip",[Ua]),_f=Ua(),T$=700,[WM,R$]=Uy("TooltipProvider",{isOpenDelayed:!0,delayDuration:T$,onOpen:()=>{},onClose:()=>{}}),[P$,Ka]=Uy("Tooltip"),C$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:l}=e,c=R$("Tooltip",t),f=_f(t),[m,y]=$.useState(null),p=Uv(),g=$.useRef(0),v=l??c.delayDuration,x=$.useRef(!1),{onOpen:d,onClose:w}=c,[h=!1,S]=ey({prop:i,defaultProp:s,onChange:C=>{C&&(document.dispatchEvent(new CustomEvent("tooltip.open")),d()),a==null||a(C)}}),E=$.useMemo((()=>h?x.current?"delayed-open":"instant-open":"closed"),[h]),R=$.useCallback((()=>{window.clearTimeout(g.current),x.current=!1,S(!0)}),[S]),O=$.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{x.current=!0,S(!0)}),v)}),[v,S]);return $.useEffect((()=>()=>window.clearTimeout(g.current)),[]),$.createElement(Yv,f,$.createElement(P$,{scope:t,contentId:p,open:h,stateAttribute:E,trigger:m,onTriggerChange:y,onTriggerEnter:$.useCallback((()=>{c.isOpenDelayed?O():R()}),[c.isOpenDelayed,O,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(g.current),S(!1),w()}),[S,w])},r))},k$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=Ka("TooltipTrigger",r),a=_f(r),l=Sn(t,s.onTriggerChange),c=$.useRef(!1),f=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(Jv,Qe({asChild:!0},a),$.createElement(En.button,Qe({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:l,onMouseEnter:qt(e.onMouseEnter,s.onTriggerEnter),onMouseLeave:qt(e.onMouseLeave,s.onClose),onMouseDown:qt(e.onMouseDown,(()=>{s.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:qt(e.onFocus,(()=>{c.current||s.onOpen()})),onBlur:qt(e.onBlur,s.onClose),onClick:qt(e.onClick,(m=>{m.detail===0&&s.onClose()}))})))})),$$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Ka("TooltipContent",e.__scopeTooltip);return $.createElement(tf,{present:r||s.open},$.createElement(I$,Qe({ref:t},i)))})),I$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...l}=e,c=Ka("TooltipContent",r),f=_f(r),m=a?rf:$.Fragment,{onClose:y}=c;return Zv((()=>y())),$.useEffect((()=>(document.addEventListener("tooltip.open",y),()=>document.removeEventListener("tooltip.open",y))),[y]),$.createElement(m,null,$.createElement(L$,{__scopeTooltip:r}),$.createElement(Qv,Qe({"data-state":c.stateAttribute},f,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(qv,null,i),$.createElement(A$,{id:c.contentId,role:"tooltip"},s||i)))}));function L$(e){const{__scopeTooltip:t}=e,r=Ka("CheckTriggerMoved",t),i=Kv(r.trigger),s=i==null?void 0:i.left,a=_m(s),l=i==null?void 0:i.top,c=_m(l),f=r.onClose;return $.useEffect((()=>{(a!==void 0&&a!==s||c!==void 0&&c!==l)&&f()}),[f,a,c,s,l]),null}const M$=C$,F$=k$,D$=$$;function N$(e){return F.jsxs(M$,{delayDuration:e.delayDuration,open:e.open,children:[F.jsx(F$,{tabIndex:-1,asChild:!0,children:F.jsx("span",{children:e.children})}),F.jsxs(D$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&F.jsx("p",{className:"max-w-[240px] rounded-md bg-primary-light px-1 py-2 text-s font-semibold text-primary-dark",children:e.message}),typeof e.message!="string"&&e.message]})]})}const Dn=30,ga=500,j$=()=>F.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),z$=e=>{const[t,r]=W.useState(Dn),i=W.useRef(),s=t>Dn,a=W.useRef(null);return W.useEffect(()=>{e.isOpen&&!s&&r(ga),!e.isOpen&&s&&r(Dn)},[e.isOpen]),F.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[F.jsx(jO.Resizable,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:700,minHeight:Dn,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(s?Dn:ga):i.current=Date.now()},onResize:(l,c,f)=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{var m;(m=e.onResize)==null||m.call(e),a.current=null})},onResizeStop:(l,c,f,m)=>{r(t+m.height)},handleComponent:{top:F.jsx(j$,{})}}),F.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ye.kebabCase(e.path)}`,children:[F.jsxs("div",{className:He("flex justify-between items-center px-3 py-0.5",{"flex-1":!s}),children:[F.jsxs("div",{className:"group flex items-center justify-start",children:[F.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),F.jsx("span",{}),e.tipKey?F.jsx(py,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,F.jsx("button",{"data-cy":`contextualPanel-toggle-button-${s?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{s?(r(Dn),e.onClose()):(r(ga),e.onOpen())},children:s?F.jsx(tt.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):F.jsx(tt.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),F.jsxs(fa,{of:s,children:[F.jsx(fa,{of:e.render,children:e.render}),F.jsx(fa,{of:!e.render,children:e.children})]})]})]})};function By({children:e,viewBox:t="0 0 24 24",...r}){return F.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...r,children:e})}function Hy(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return F.jsx(By,{viewBox:"0 0 24 24",...e,children:F.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function W$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:l,...c}){const f=W.useRef(null),m=i||F.jsx(Hy,{}),y=c.checked??e;W.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const p=y||t,g=["base-checkbox-container",a].join(" ");return F.jsxs("label",{className:g,style:l,"data-invalid":r,children:[F.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:y,...c,"aria-invalid":r||void 0}),F.jsx("span",{className:"base-checkbox-control",children:p&&m&&W.cloneElement(m,{isChecked:y,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&F.jsx("span",{className:"base-checkbox-label",children:s})]})}const U$=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:i,onReset:s,resetButtonLabel:a="Reset Page"})=>F.jsx("div",{className:"flex h-full w-full items-center justify-center",children:F.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[F.jsxs("div",{className:"relative",children:[F.jsx(tt.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-red-500 rounded-full"}),F.jsx("div",{className:"w-1/2 h-1/2 absolute z-0 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white"})]}),F.jsx("p",{className:"mb-2 mt-4 text-2xl text-white",children:e}),F.jsx("p",{className:"text-md mb-4 font-extralight text-grey-100",children:t}),F.jsxs("div",{className:"flex gap-4",children:[i&&F.jsx("button",{className:"text-md rounded border border-primary-dark hover:border-primary-hover bg-primary-dark hover:bg-primary-hover px-3 py-1 text-white focus:outline-none",onClick:i,children:"Open in Text Editor"}),s&&F.jsx("button",{className:"text-md rounded border border-red-500 bg-red-500 hover:bg-red-400 focus:ring-red-500 px-3 py-1 text-white focus:outline-none",onClick:s,children:a}),r&&F.jsx("button",{className:"text-md rounded border border-grey-50 bg-transparent hover:bg-grey-50 text-white hover:text-primary-dark px-3 py-1 focus:outline-none",onClick:r,children:"Close"})]})]})});function B$(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const tc=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function rc(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function mo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function qy(e,t){const r=t.slice(0,t.length-1);for(let i=0;i<r.length;i++)r[i]=e[r[i].toLowerCase()];return r}function Zy(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function H$(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let s=!0;for(let a=0;a<r.length;a++)i.indexOf(r[a])===-1&&(s=!1);return s}const Io={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,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,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,"-":tc?173:189,"=":tc?61:187,";":tc?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},vr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},wo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},vt={16:!1,18:!1,17:!1,91:!1},Je={};for(let e=1;e<20;e++)Io["f".concat(e)]=111+e;let Ke=[],Po=null,Gy="all";const Zr=new Map,Pi=e=>Io[e.toLowerCase()]||vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),q$=e=>Object.keys(Io).find(t=>Io[t]===e),Z$=e=>Object.keys(vr).find(t=>vr[t]===e);function Ky(e){Gy=e||"all"}function Lo(){return Gy||"all"}function G$(){return Ke.slice(0)}function K$(){return Ke.map(e=>q$(e)||Z$(e)||String.fromCharCode(e))}function V$(){const e=[];return Object.keys(Je).forEach(t=>{Je[t].forEach(r=>{let{key:i,scope:s,mods:a,shortcut:l}=r;e.push({scope:s,shortcut:l,mods:a,keys:i.split("+").map(c=>Pi(c))})})}),e}function X$(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const s=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(s||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function Y$(e){return typeof e=="string"&&(e=Pi(e)),Ke.indexOf(e)!==-1}function J$(e,t){let r,i;e||(e=Lo());for(const s in Je)if(Object.prototype.hasOwnProperty.call(Je,s))for(r=Je[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:c}=l;return Of(c)}):i++;Lo()===e&&Ky(t||"all")}function Q$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Pi(e.key));const r=Ke.indexOf(t);if(r>=0&&Ke.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Ke.splice(0,Ke.length),(t===93||t===224)&&(t=91),t in vt){vt[t]=!1;for(const i in vr)vr[i]===t&&(mr[i]=!1)}}function Vy(e){if(typeof e>"u")Object.keys(Je).forEach(s=>{Array.isArray(Je[s])&&Je[s].forEach(a=>na(a)),delete Je[s]}),Of(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&na(s)});else if(typeof e=="object")e.key&&na(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let[s,a]=r;typeof s=="function"&&(a=s,s=""),na({key:e,scope:s,method:a,splitKey:"+"})}}const na=e=>{let{key:t,scope:r,method:i,splitKey:s="+"}=e;Zy(t).forEach(l=>{const c=l.split(s),f=c.length,m=c[f-1],y=m==="*"?"*":Pi(m);if(!Je[y])return;r||(r=Lo());const p=f>1?qy(vr,c):[],g=[];Je[y]=Je[y].filter(v=>{const d=(i?v.method===i:!0)&&v.scope===r&&H$(v.mods,p);return d&&g.push(v.element),!d}),g.forEach(v=>Of(v))})};function Om(e,t,r,i){if(t.element!==i)return;let s;if(t.scope===r||t.scope==="all"){s=t.mods.length>0;for(const a in vt)Object.prototype.hasOwnProperty.call(vt,a)&&(!vt[a]&&t.mods.indexOf(+a)>-1||vt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!vt[16]&&!vt[18]&&!vt[17]&&!vt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Ke),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Am(e,t){const r=Je["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!mr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Ke.indexOf(i)===-1&&i!==229&&Ke.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const f=wo[c];e[c]&&Ke.indexOf(f)===-1?Ke.push(f):!e[c]&&Ke.indexOf(f)>-1?Ke.splice(Ke.indexOf(f),1):c==="metaKey"&&e[c]&&(Ke=Ke.filter(m=>m in wo||m===i))}),i in vt){vt[i]=!0;for(const c in vr)if(Object.prototype.hasOwnProperty.call(vr,c)){const f=wo[vr[c]];mr[c]=e[f]}if(!r)return}for(const c in vt)Object.prototype.hasOwnProperty.call(vt,c)&&(vt[c]=e[wo[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ke.indexOf(17)===-1&&Ke.push(17),Ke.indexOf(18)===-1&&Ke.push(18),vt[17]=!0,vt[18]=!0);const s=Lo();if(r)for(let c=0;c<r.length;c++)r[c].scope===s&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&Om(e,r[c],s,t);if(!(i in Je))return;const a=Je[i],l=a.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const f=a[c],{splitKey:m}=f,y=f.key.split(m),p=[];for(let g=0;g<y.length;g++)p.push(Pi(y[g]));p.sort().join("")===Ke.sort().join("")&&Om(e,f,s,t)}}function mr(e,t,r){Ke=[];const i=Zy(e);let s=[],a="all",l=document,c=0,f=!1,m=!0,y="+",p=!1,g=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(l=t.element),t.keyup&&(f=t.keyup),t.keydown!==void 0&&(m=t.keydown),t.capture!==void 0&&(p=t.capture),typeof t.splitKey=="string"&&(y=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(a=t),g&&Vy(e,a);c<i.length;c++)e=i[c].split(y),s=[],e.length>1&&(s=qy(vr,e)),e=e[e.length-1],e=e==="*"?"*":Pi(e),e in Je||(Je[e]=[]),Je[e].push({keyup:f,keydown:m,scope:a,mods:s,shortcut:i[c],method:r,key:i[c],splitKey:y,element:l});if(typeof l<"u"&&window){if(!Zr.has(l)){const v=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Am(d,l)},x=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Am(d,l),Q$(d)};Zr.set(l,{keydownListener:v,keyupListenr:x,capture:p}),rc(l,"keydown",v,p),rc(l,"keyup",x,p)}if(!Po){const v=()=>{Ke=[]};Po={listener:v,capture:p},rc(window,"focus",v,p)}}}function eI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Je).forEach(r=>{Je[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function Of(e){const t=Object.values(Je).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Zr.get(e)||{};i&&s&&(mo(e,"keyup",s,a),mo(e,"keydown",i,a),Zr.delete(e))}if((t.length<=0||Zr.size<=0)&&(Object.keys(Zr).forEach(s=>{const{keydownListener:a,keyupListenr:l,capture:c}=Zr.get(s)||{};a&&l&&(mo(s,"keyup",l,c),mo(s,"keydown",a,c),Zr.delete(s))}),Zr.clear(),Object.keys(Je).forEach(s=>delete Je[s]),Po)){const{listener:s,capture:a}=Po;mo(window,"focus",s,a),Po=null}}const nc={getPressedKeyString:K$,setScope:Ky,getScope:Lo,deleteScope:J$,getPressedKeyCodes:G$,getAllKeyCodes:V$,isPressed:Y$,filter:X$,trigger:eI,unbind:Vy,keyMap:Io,modifier:vr,modifierMap:wo};for(const e in nc)Object.prototype.hasOwnProperty.call(nc,e)&&(mr[e]=nc[e]);if(typeof window<"u"){const e=window.hotkeys;mr.noConflict=t=>(t&&window.hotkeys===mr&&(window.hotkeys=e),mr),window.hotkeys=mr}mr.filter=()=>!0;function tI(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:s=!0}=r,a=W.useCallback((c,f)=>{s&&c.preventDefault(),setTimeout(()=>t(c,f))},i),l=()=>{mr.unbind(e,a)};W.useEffect(()=>(mr(e,r,a),l),[e,r,a])}const rI=e=>{const t=W.useRef(null);return W.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function nI(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function iI(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function oI(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function sI(e){const[t,r]=W.useState(e),i=(a,l)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:l}}}))},s=W.useCallback((...a)=>a.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:s}}const Xy=W.createContext(""),aI=e=>F.jsx(Xy.Provider,{value:e.value,children:e.children}),uI=()=>{const e=W.useContext(Xy);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function lI(e){const[t,r]=W.useState(e),i=W.useMemo(()=>cI(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function cI(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Ye.upperFirst(s)}`]:a=>t(l=>({...l,[s]:a}))}),{})}const fI=(e,t,r={})=>{r={timeout:200,...r};const i=W.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return W.useCallback((a,...l)=>{s(),t&&a.detail===1&&(i.current=setTimeout(()=>{t(a,...l)},r.timeout)),a.detail%2===0&&e(a,...l)},[t,e,r.timeout])};function yt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(process.env.NODE_ENV!=="production"){var s=yI[e],a=s?typeof s=="function"?s.apply(null,r):s:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ti(e){return!!e&&!!e[Kt]}function Gn(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var s=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===bI})(e)||Array.isArray(e)||!!e[Lm]||!!(!((t=e.constructor)===null||t===void 0)&&t[Lm])||Af(e)||Tf(e))}function Mo(e,t,r){r===void 0&&(r=!1),Ci(e)===0?(r?Object.keys:kf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function Ci(e){var t=e[Kt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Af(e)?2:Tf(e)?3:0}function Cc(e,t){return Ci(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dI(e,t){return Ci(e)===2?e.get(t):e[t]}function Yy(e,t,r){var i=Ci(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function pI(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Af(e){return mI&&e instanceof Map}function Tf(e){return vI&&e instanceof Set}function Nn(e){return e.o||e.t}function Rf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=wI(e);delete t[Kt];for(var r=kf(t),i=0;i<r.length;i++){var s=r[i],a=t[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function Fo(e,t){return t===void 0&&(t=!1),Pf(e)||Ti(e)||!Gn(e)||(Ci(e)>1&&(e.set=e.add=e.clear=e.delete=hI),Object.freeze(e),t&&Mo(e,(function(r,i){return Fo(i,!0)}),!0)),e}function hI(){yt(2)}function Pf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function kr(e){var t=xI[e];return t||yt(18,e),t}function Tm(){return process.env.NODE_ENV==="production"||Ri||yt(0),Ri}function ic(e,t){t&&(kr("Patches"),e.u=[],e.s=[],e.v=t)}function Pa(e){kc(e),e.p.forEach(gI),e.p=null}function kc(e){e===Ri&&(Ri=e.l)}function Rm(e){return Ri={p:[],l:Ri,h:e,m:!0,_:0}}function gI(e){var t=e[Kt];t.i===0||t.i===1?t.j():t.g=!0}function oc(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||kr("ES5").S(t,e,i),i?(r[Kt].P&&(Pa(t),yt(4)),Gn(e)&&(e=Ca(t,e),t.l||ka(t,e)),t.u&&kr("Patches").M(r[Kt].t,e,t.u,t.s)):e=Ca(t,r,[]),Pa(t),t.u&&t.v(t.u,t.s),e!==Qy?e:void 0}function Ca(e,t,r){if(Pf(t))return t;var i=t[Kt];if(!i)return Mo(t,(function(c,f){return Pm(e,i,t,c,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return ka(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=Rf(i.k):i.o,a=s,l=!1;i.i===3&&(a=new Set(s),s.clear(),l=!0),Mo(a,(function(c,f){return Pm(e,i,s,c,f,r,l)})),ka(e,s,!1),r&&e.u&&kr("Patches").N(i,r,e.u,e.s)}return i.o}function Pm(e,t,r,i,s,a,l){if(process.env.NODE_ENV!=="production"&&s===r&&yt(5),Ti(s)){var c=Ca(e,s,a&&t&&t.i!==3&&!Cc(t.R,i)?a.concat(i):void 0);if(Yy(r,i,c),!Ti(c))return;e.m=!1}else l&&r.add(s);if(Gn(s)&&!Pf(s)){if(!e.h.D&&e._<1)return;Ca(e,s),t&&t.A.l||ka(e,s)}}function ka(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Fo(t,r)}function sc(e,t){var r=e[Kt];return(r?Nn(r):e)[t]}function Cm(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function $c(e){e.P||(e.P=!0,e.l&&$c(e.l))}function ac(e){e.o||(e.o=Rf(e.t))}function Ic(e,t,r){var i=Af(t)?kr("MapSet").F(t,r):Tf(t)?kr("MapSet").T(t,r):e.O?(function(s,a){var l=Array.isArray(s),c={i:l?1:0,A:a?a.A:Tm(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=c,m=Lc;l&&(f=[c],m=xo);var y=Proxy.revocable(f,m),p=y.revoke,g=y.proxy;return c.k=g,c.j=p,g})(t,r):kr("ES5").J(t,r);return(r?r.A:Tm()).p.push(i),i}function Jy(e){return Ti(e)||yt(22,e),(function t(r){if(!Gn(r))return r;var i,s=r[Kt],a=Ci(r);if(s){if(!s.P&&(s.i<4||!kr("ES5").K(s)))return s.t;s.I=!0,i=km(r,a),s.I=!1}else i=km(r,a);return Mo(i,(function(l,c){s&&dI(s.t,l)===c||Yy(i,l,t(c))})),a===3?new Set(i):i})(e)}function km(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Rf(e)}var $m,Ri,Cf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mI=typeof Map<"u",vI=typeof Set<"u",Im=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Qy=Cf?Symbol.for("immer-nothing"):(($m={})["immer-nothing"]=!0,$m),Lm=Cf?Symbol.for("immer-draftable"):"__$immer_draftable",Kt=Cf?Symbol.for("immer-state"):"__$immer_state",yI={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},bI=""+Object.prototype.constructor,kf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,wI=Object.getOwnPropertyDescriptors||function(e){var t={};return kf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},xI={},Lc={get:function(e,t){if(t===Kt)return e;var r=Nn(e);if(!Cc(r,t))return(function(s,a,l){var c,f=Cm(a,l);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(s.k):void 0})(e,r,t);var i=r[t];return e.I||!Gn(i)?i:i===sc(e.t,t)?(ac(e),e.o[t]=Ic(e.A.h,i,e)):i},has:function(e,t){return t in Nn(e)},ownKeys:function(e){return Reflect.ownKeys(Nn(e))},set:function(e,t,r){var i=Cm(Nn(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=sc(Nn(e),t),a=s==null?void 0:s[Kt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(pI(r,s)&&(r!==void 0||Cc(e.t,t)))return!0;ac(e),$c(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return sc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ac(e),$c(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Nn(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){yt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){yt(12)}},xo={};Mo(Lc,(function(e,t){xo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&yt(13),xo.set.call(this,e,t,void 0)},xo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&yt(14),Lc.set.call(this,e[0],t,r,e[0])};var SI=(function(){function e(r){var i=this;this.O=Im,this.D=!0,this.produce=function(s,a,l){if(typeof s=="function"&&typeof a!="function"){var c=a;a=s;var f=i;return function(d){var w=this;d===void 0&&(d=c);for(var h=arguments.length,S=Array(h>1?h-1:0),E=1;E<h;E++)S[E-1]=arguments[E];return f.produce(d,(function(R){var O;return(O=a).call.apply(O,[w,R].concat(S))}))}}var m;if(typeof a!="function"&&yt(6),l!==void 0&&typeof l!="function"&&yt(7),Gn(s)){var y=Rm(i),p=Ic(i,s,void 0),g=!0;try{m=a(p),g=!1}finally{g?Pa(y):kc(y)}return typeof Promise<"u"&&m instanceof Promise?m.then((function(d){return ic(y,l),oc(d,y)}),(function(d){throw Pa(y),d})):(ic(y,l),oc(m,y))}if(!s||typeof s!="object"){if((m=a(s))===void 0&&(m=s),m===Qy&&(m=void 0),i.D&&Fo(m,!0),l){var v=[],x=[];kr("Patches").M(s,m,v,x),l(v,x)}return m}yt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(m){for(var y=arguments.length,p=Array(y>1?y-1:0),g=1;g<y;g++)p[g-1]=arguments[g];return i.produceWithPatches(m,(function(v){return s.apply(void 0,[v].concat(p))}))};var l,c,f=i.produce(s,a,(function(m,y){l=m,c=y}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(m){return[m,l,c]})):[f,l,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Gn(r)||yt(8),Ti(r)&&(r=Jy(r));var i=Rm(this),s=Ic(this,r,void 0);return s[Kt].C=!0,kc(i),s},t.finishDraft=function(r,i){var s=r&&r[Kt];process.env.NODE_ENV!=="production"&&(s&&s.C||yt(9),s.I&&yt(10));var a=s.A;return ic(a,i),oc(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Im&&yt(20),this.O=r},t.applyPatches=function(r,i){var s;for(s=i.length-1;s>=0;s--){var a=i[s];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}s>-1&&(i=i.slice(s+1));var l=kr("Patches").$;return Ti(r)?l(r,i):this.produce(r,(function(c){return l(c,i)}))},e})(),Vt=new SI,EI=Vt.produce;Vt.produceWithPatches.bind(Vt);Vt.setAutoFreeze.bind(Vt);Vt.setUseProxies.bind(Vt);Vt.applyPatches.bind(Vt);Vt.createDraft.bind(Vt);Vt.finishDraft.bind(Vt);function _I(e){var t=W.useState(function(){return Fo(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],W.useCallback(function(i){r(typeof i=="function"?EI(i):Fo(i))},[])]}const OI=process.env.NODE_ENV==="development",uc=OI&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,AI=(e,t,r)=>{const[i,s]=_I(e),a=W.useRef(null);W.useEffect(()=>{var f;return r&&(a.current=uc==null?void 0:uc.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var m,y;(y=(m=a.current)==null?void 0:m.disconnect)==null||y.call(m)}},[]);const l=t&&typeof t=="object"?t:{},c=W.useMemo(()=>Object.keys(l).reduce((f,m)=>({...f,[m]:y=>(s(p=>{var g;l[m](p,y),(g=a.current)==null||g.send({type:l[m].name},Jy(p))}),c)}),{}),[s]);return{state:i,dispatch:c}};function Vr(e){return typeof e=="function"}function e0(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var lc=e0(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
201
+ }`;var Oe=gh(function(){return $e(T,le+"return "+ee).apply(r,P)});if(Oe.source=ee,ll(Oe))throw Oe;return Oe}function G_(n){return Me(n).toLowerCase()}function K_(n){return Me(n).toUpperCase()}function V_(n,o,l){if(n=Me(n),n&&(l||o===r))return Ed(n);if(!n||!(o=zt(o)))return n;var b=ur(n),_=ur(o),T=_d(b,_),P=Od(b,_)+1;return fn(b,T,P).join("")}function X_(n,o,l){if(n=Me(n),n&&(l||o===r))return n.slice(0,Td(n)+1);if(!n||!(o=zt(o)))return n;var b=ur(n),_=Od(b,ur(o))+1;return fn(b,0,_).join("")}function Y_(n,o,l){if(n=Me(n),n&&(l||o===r))return n.replace(lu,"");if(!n||!(o=zt(o)))return n;var b=ur(n),_=_d(b,ur(o));return fn(b,_).join("")}function J_(n,o){var l=N,b=L;if(Ve(o)){var _="separator"in o?o.separator:_;l="length"in o?Ee(o.length):l,b="omission"in o?zt(o.omission):b}n=Me(n);var T=n.length;if(ei(n)){var P=ur(n);T=P.length}if(l>=T)return n;var I=l-ti(b);if(I<1)return b;var z=P?fn(P,0,I).join(""):n.slice(0,I);if(_===r)return z+b;if(P&&(I+=z.length-I),cl(_)){if(n.slice(I).search(_)){var V,X=z;for(_.global||(_=Au(_.source,Me(qf.exec(_))+"g")),_.lastIndex=0;V=_.exec(X);)var ee=V.index;z=z.slice(0,ee===r?I:ee)}}else if(n.indexOf(zt(_),I)!=I){var se=z.lastIndexOf(_);se>-1&&(z=z.slice(0,se))}return z+b}function Q_(n){return n=Me(n),n&&db.test(n)?n.replace(Wf,Pw):n}var eO=ui(function(n,o,l){return n+(l?" ":"")+o.toUpperCase()}),hl=gp("toUpperCase");function hh(n,o,l){return n=Me(n),o=l?r:o,o===r?_w(n)?$w(n):gw(n):n.match(o)||[]}var gh=Te(function(n,o){try{return Dt(n,r,o)}catch(l){return ll(l)?l:new be(l)}}),tO=Wr(function(n,o){return Nt(o,function(l){l=cr(l),br(n,l,al(n[l],n))}),n});function rO(n){var o=n==null?0:n.length,l=ge();return n=o?Ze(n,function(b){if(typeof b[1]!="function")throw new Yt(u);return[l(b[0]),b[1]]}):[],Te(function(b){for(var _=-1;++_<o;){var T=n[_];if(Dt(T[0],this,b))return Dt(T[1],this,b)}})}function nO(n){return P1(Qt(n,g))}function gl(n){return function(){return n}}function iO(n,o){return n==null||n!==n?o:n}var oO=vp(),sO=vp(!0);function It(n){return n}function ml(n){return Gd(typeof n=="function"?n:Qt(n,g))}function aO(n){return Vd(Qt(n,g))}function uO(n,o){return Xd(n,Qt(o,g))}var lO=Te(function(n,o){return function(l){return ji(l,n,o)}}),cO=Te(function(n,o){return function(l){return ji(n,l,o)}});function vl(n,o,l){var b=ft(o),_=xs(o,b);l==null&&!(Ve(o)&&(_.length||!b.length))&&(l=o,o=n,n=this,_=xs(o,ft(o)));var T=!(Ve(l)&&"chain"in l)||!!l.chain,P=Br(n);return Nt(_,function(I){var z=o[I];n[I]=z,P&&(n.prototype[I]=function(){var V=this.__chain__;if(T||V){var X=n(this.__wrapped__),ee=X.__actions__=Ct(this.__actions__);return ee.push({func:z,args:arguments,thisArg:n}),X.__chain__=V,X}return z.apply(n,on([this.value()],arguments))})}),n}function fO(){return pt._===this&&(pt._=Nw),this}function yl(){}function dO(n){return n=Ee(n),Te(function(o){return Yd(o,n)})}var pO=Ku(Ze),hO=Ku(yd),gO=Ku(bu);function mh(n){return tl(n)?wu(cr(n)):Z1(n)}function mO(n){return function(o){return n==null?r:kn(n,o)}}var vO=bp(),yO=bp(!0);function bl(){return[]}function wl(){return!1}function bO(){return{}}function wO(){return""}function xO(){return!0}function SO(n,o){if(n=Ee(n),n<1||n>ce)return[];var l=ne,b=wt(n,ne);o=ge(o),n-=ne;for(var _=Eu(b,o);++l<n;)o(l);return _}function EO(n){return Se(n)?Ze(n,cr):Wt(n)?[n]:Ct(Mp(Me(n)))}function _O(n){var o=++Fw;return Me(n)+o}var OO=Ts(function(n,o){return n+o},0),AO=Vu("ceil"),TO=Ts(function(n,o){return n/o},1),RO=Vu("floor");function PO(n){return n&&n.length?ws(n,It,Lu):r}function CO(n,o){return n&&n.length?ws(n,ge(o,2),Lu):r}function kO(n){return xd(n,It)}function $O(n,o){return xd(n,ge(o,2))}function IO(n){return n&&n.length?ws(n,It,Nu):r}function LO(n,o){return n&&n.length?ws(n,ge(o,2),Nu):r}var MO=Ts(function(n,o){return n*o},1),FO=Vu("round"),DO=Ts(function(n,o){return n-o},0);function NO(n){return n&&n.length?Su(n,It):0}function jO(n,o){return n&&n.length?Su(n,ge(o,2)):0}return A.after=uE,A.ary=Zp,A.assign=VE,A.assignIn=sh,A.assignInWith=ah,A.assignWith=fl,A.at=XE,A.before=Gp,A.bind=al,A.bindAll=tO,A.bindKey=Kp,A.castArray=wE,A.chain=Bp,A.chunk=Px,A.compact=Cx,A.concat=kx,A.cond=rO,A.conforms=nO,A.constant=gl,A.countBy=jS,A.create=YE,A.curry=Vp,A.curryRight=Xp,A.debounce=Yp,A.defaults=JE,A.defaultsDeep=QE,A.defer=lE,A.delay=cE,A.difference=$x,A.differenceBy=Ix,A.differenceWith=Lx,A.drop=Mx,A.dropRight=Fx,A.dropRightWhile=Dx,A.dropWhile=Nx,A.fill=jx,A.filter=WS,A.flatMap=HS,A.flatMapDeep=qS,A.flatMapDepth=ZS,A.flatten=jp,A.flattenDeep=zx,A.flattenDepth=Wx,A.flip=fE,A.flow=oO,A.flowRight=sO,A.fromPairs=Ux,A.functions=s_,A.functionsIn=a_,A.groupBy=GS,A.initial=Hx,A.intersection=qx,A.intersectionBy=Zx,A.intersectionWith=Gx,A.invert=l_,A.invertBy=c_,A.invokeMap=VS,A.iteratee=ml,A.keyBy=XS,A.keys=ft,A.keysIn=$t,A.map=Ls,A.mapKeys=d_,A.mapValues=p_,A.matches=aO,A.matchesProperty=uO,A.memoize=Fs,A.merge=h_,A.mergeWith=uh,A.method=lO,A.methodOf=cO,A.mixin=vl,A.negate=Ds,A.nthArg=dO,A.omit=g_,A.omitBy=m_,A.once=dE,A.orderBy=YS,A.over=pO,A.overArgs=pE,A.overEvery=hO,A.overSome=gO,A.partial=ul,A.partialRight=Jp,A.partition=JS,A.pick=v_,A.pickBy=lh,A.property=mh,A.propertyOf=mO,A.pull=Yx,A.pullAll=Wp,A.pullAllBy=Jx,A.pullAllWith=Qx,A.pullAt=eS,A.range=vO,A.rangeRight=yO,A.rearg=hE,A.reject=tE,A.remove=tS,A.rest=gE,A.reverse=ol,A.sampleSize=nE,A.set=b_,A.setWith=w_,A.shuffle=iE,A.slice=rS,A.sortBy=aE,A.sortedUniq=lS,A.sortedUniqBy=cS,A.split=B_,A.spread=mE,A.tail=fS,A.take=dS,A.takeRight=pS,A.takeRightWhile=hS,A.takeWhile=gS,A.tap=CS,A.throttle=vE,A.thru=Is,A.toArray=nh,A.toPairs=ch,A.toPairsIn=fh,A.toPath=EO,A.toPlainObject=oh,A.transform=x_,A.unary=yE,A.union=mS,A.unionBy=vS,A.unionWith=yS,A.uniq=bS,A.uniqBy=wS,A.uniqWith=xS,A.unset=S_,A.unzip=sl,A.unzipWith=Up,A.update=E_,A.updateWith=__,A.values=fi,A.valuesIn=O_,A.without=SS,A.words=hh,A.wrap=bE,A.xor=ES,A.xorBy=_S,A.xorWith=OS,A.zip=AS,A.zipObject=TS,A.zipObjectDeep=RS,A.zipWith=PS,A.entries=ch,A.entriesIn=fh,A.extend=sh,A.extendWith=ah,vl(A,A),A.add=OO,A.attempt=gh,A.camelCase=P_,A.capitalize=dh,A.ceil=AO,A.clamp=A_,A.clone=xE,A.cloneDeep=EE,A.cloneDeepWith=_E,A.cloneWith=SE,A.conformsTo=OE,A.deburr=ph,A.defaultTo=iO,A.divide=TO,A.endsWith=C_,A.eq=fr,A.escape=k_,A.escapeRegExp=$_,A.every=zS,A.find=US,A.findIndex=Dp,A.findKey=e_,A.findLast=BS,A.findLastIndex=Np,A.findLastKey=t_,A.floor=RO,A.forEach=Hp,A.forEachRight=qp,A.forIn=r_,A.forInRight=n_,A.forOwn=i_,A.forOwnRight=o_,A.get=dl,A.gt=AE,A.gte=TE,A.has=u_,A.hasIn=pl,A.head=zp,A.identity=It,A.includes=KS,A.indexOf=Bx,A.inRange=T_,A.invoke=f_,A.isArguments=Ln,A.isArray=Se,A.isArrayBuffer=RE,A.isArrayLike=kt,A.isArrayLikeObject=rt,A.isBoolean=PE,A.isBuffer=dn,A.isDate=CE,A.isElement=kE,A.isEmpty=$E,A.isEqual=IE,A.isEqualWith=LE,A.isError=ll,A.isFinite=ME,A.isFunction=Br,A.isInteger=Qp,A.isLength=Ns,A.isMap=eh,A.isMatch=FE,A.isMatchWith=DE,A.isNaN=NE,A.isNative=jE,A.isNil=WE,A.isNull=zE,A.isNumber=th,A.isObject=Ve,A.isObjectLike=et,A.isPlainObject=qi,A.isRegExp=cl,A.isSafeInteger=UE,A.isSet=rh,A.isString=js,A.isSymbol=Wt,A.isTypedArray=ci,A.isUndefined=BE,A.isWeakMap=HE,A.isWeakSet=qE,A.join=Kx,A.kebabCase=I_,A.last=tr,A.lastIndexOf=Vx,A.lowerCase=L_,A.lowerFirst=M_,A.lt=ZE,A.lte=GE,A.max=PO,A.maxBy=CO,A.mean=kO,A.meanBy=$O,A.min=IO,A.minBy=LO,A.stubArray=bl,A.stubFalse=wl,A.stubObject=bO,A.stubString=wO,A.stubTrue=xO,A.multiply=MO,A.nth=Xx,A.noConflict=fO,A.noop=yl,A.now=Ms,A.pad=F_,A.padEnd=D_,A.padStart=N_,A.parseInt=j_,A.random=R_,A.reduce=QS,A.reduceRight=eE,A.repeat=z_,A.replace=W_,A.result=y_,A.round=FO,A.runInContext=j,A.sample=rE,A.size=oE,A.snakeCase=U_,A.some=sE,A.sortedIndex=nS,A.sortedIndexBy=iS,A.sortedIndexOf=oS,A.sortedLastIndex=sS,A.sortedLastIndexBy=aS,A.sortedLastIndexOf=uS,A.startCase=H_,A.startsWith=q_,A.subtract=DO,A.sum=NO,A.sumBy=jO,A.template=Z_,A.times=SO,A.toFinite=Hr,A.toInteger=Ee,A.toLength=ih,A.toLower=G_,A.toNumber=rr,A.toSafeInteger=KE,A.toString=Me,A.toUpper=K_,A.trim=V_,A.trimEnd=X_,A.trimStart=Y_,A.truncate=J_,A.unescape=Q_,A.uniqueId=_O,A.upperCase=eO,A.upperFirst=hl,A.each=Hp,A.eachRight=qp,A.first=zp,vl(A,(function(){var n={};return wr(A,function(o,l){Le.call(A.prototype,l)||(n[l]=o)}),n})(),{chain:!1}),A.VERSION=i,Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){A[n].placeholder=A}),Nt(["drop","take"],function(n,o){Pe.prototype[n]=function(l){l=l===r?1:lt(Ee(l),0);var b=this.__filtered__&&!o?new Pe(this):this.clone();return b.__filtered__?b.__takeCount__=wt(l,b.__takeCount__):b.__views__.push({size:wt(l,ne),type:n+(b.__dir__<0?"Right":"")}),b},Pe.prototype[n+"Right"]=function(l){return this.reverse()[n](l).reverse()}}),Nt(["filter","map","takeWhile"],function(n,o){var l=o+1,b=l==k||l==J;Pe.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:ge(_,3),type:l}),T.__filtered__=T.__filtered__||b,T}}),Nt(["head","last"],function(n,o){var l="take"+(o?"Right":"");Pe.prototype[n]=function(){return this[l](1).value()[0]}}),Nt(["initial","tail"],function(n,o){var l="drop"+(o?"":"Right");Pe.prototype[n]=function(){return this.__filtered__?new Pe(this):this[l](1)}}),Pe.prototype.compact=function(){return this.filter(It)},Pe.prototype.find=function(n){return this.filter(n).head()},Pe.prototype.findLast=function(n){return this.reverse().find(n)},Pe.prototype.invokeMap=Te(function(n,o){return typeof n=="function"?new Pe(this):this.map(function(l){return ji(l,n,o)})}),Pe.prototype.reject=function(n){return this.filter(Ds(ge(n)))},Pe.prototype.slice=function(n,o){n=Ee(n);var l=this;return l.__filtered__&&(n>0||o<0)?new Pe(l):(n<0?l=l.takeRight(-n):n&&(l=l.drop(n)),o!==r&&(o=Ee(o),l=o<0?l.dropRight(-o):l.take(o-n)),l)},Pe.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pe.prototype.toArray=function(){return this.take(ne)},wr(Pe.prototype,function(n,o){var l=/^(?:filter|find|map|reject)|While$/.test(o),b=/^(?:head|last)$/.test(o),_=A[b?"take"+(o=="last"?"Right":""):o],T=b||/^find/.test(o);_&&(A.prototype[o]=function(){var P=this.__wrapped__,I=b?[1]:arguments,z=P instanceof Pe,V=I[0],X=z||Se(P),ee=function(Re){var Ce=_.apply(A,on([Re],I));return b&&se?Ce[0]:Ce};X&&l&&typeof V=="function"&&V.length!=1&&(z=X=!1);var se=this.__chain__,le=!!this.__actions__.length,me=T&&!se,Oe=z&&!le;if(!T&&X){P=Oe?P:new Pe(this);var pe=n.apply(P,I);return pe.__actions__.push({func:Is,args:[ee],thisArg:r}),new Jt(pe,se)}return me&&Oe?n.apply(this,I):(pe=this.thru(ee),me?b?pe.value()[0]:pe.value():pe)})}),Nt(["pop","push","shift","sort","splice","unshift"],function(n){var o=os[n],l=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",b=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var _=arguments;if(b&&!this.__chain__){var T=this.value();return o.apply(Se(T)?T:[],_)}return this[l](function(P){return o.apply(Se(P)?P:[],_)})}}),wr(Pe.prototype,function(n,o){var l=A[o];if(l){var b=l.name+"";Le.call(oi,b)||(oi[b]=[]),oi[b].push({name:o,func:l})}}),oi[As(r,S).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=e1,Pe.prototype.reverse=t1,Pe.prototype.value=r1,A.prototype.at=kS,A.prototype.chain=$S,A.prototype.commit=IS,A.prototype.next=LS,A.prototype.plant=FS,A.prototype.reverse=DS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=NS,A.prototype.first=A.prototype.head,$i&&(A.prototype[$i]=MS),A}),ri=Iw();An?((An.exports=ri)._=ri,gu._=ri):pt._=ri}).call(x$)})(bo,bo.exports)),bo.exports}var Ye=S$();const Rc={FdSave:tt.FdSave,FdWarningDanger:tt.FdWarningDanger,FdInfoCircle:tt.FdInfoCircle,FdInfoBold:tt.FdInfoBold};var Sf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Sf||{}),Bn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Bn||{}),vi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(vi||{});const zy={[Bn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Bn.DANGER]:{icon:"red-500",button:"primary-dark"},[Bn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Ql=({color:e=Bn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=zy[e].button,u=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return F.jsx("button",{autoFocus:i,className:He("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",u),...s,children:r})},E$=({name:e,color:t=Bn.PRIMARY,className:r="w-8 h-8"})=>{const i=Rc[e]||Rc.FdInfoCircle,s=`text-${zy[t].icon}`;return F.jsx(i,{className:He(r,s)})},_$=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:u=3e3,views:c,width:f=520,hasOverlay:m=!0,container:y,onClose:p,onEdit:g})=>{const v=w=>{p({id:e,reason:w})};W.useEffect(()=>{function w(h){h.key==="Escape"&&v(vi.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=Ye.merge(Ye.values(c==null?void 0:c.toggles).flatMap(w=>w.value?w.warnings||[]:[]),c==null?void 0:c.tips),d=(w,h)=>{var E;if(!(c!=null&&c.toggles))return;const S=Ye.cloneDeep(c);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=h),g({id:e,views:S})};return zo.createPortal(F.jsx(_a,{appear:!0,show:!0,as:W.Fragment,children:F.jsx("div",{className:He("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":m}),style:{zIndex:u},onClick:()=>v(vi.CANCELED),children:F.jsx(_a.Child,{as:W.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:F.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:f},onClick:w=>w.stopPropagation(),children:F.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?F.jsx("div",{className:"flex items-center justify-center",children:F.jsx(E$,{name:i,color:a,className:"w-6 h-6"})}):null,F.jsx(O$,{condition:t,children:F.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),F.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),F.jsx("div",{className:"text-xs text-white",children:Ye.values(c==null?void 0:c.toggles).map(w=>F.jsx("div",{children:F.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[F.jsx(Oy,{size:"xs",value:w.value,onChange:h=>d(w.key,h)}),F.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),F.jsx(A$,{warnings:x}),F.jsx("div",{className:"flex items-center gap-4",children:s===Sf.CONFIRM?F.jsxs(F.Fragment,{children:[F.jsx(Ql,{autoFocus:!0,color:a,onClick:()=>v(vi.CONFIRMED),children:"Confirm"}),F.jsx(Ql,{color:a,variant:"outlined",onClick:()=>v(vi.CANCELED),children:"Cancel"})]}):F.jsx(Ql,{autoFocus:!0,onClick:()=>v(),children:"OK"})})]})})})})}),y||document.body)},O$=e=>e.condition?F.jsx(F.Fragment,{children:e.children}):null,A$=e=>e.warnings?F.jsx(_a,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:F.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>F.jsx(_a.Child,{as:W.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:F.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[F.jsx(tt.FdWarningDanger,{className:He({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),F.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Wy=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(Wy||{});const T$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>F.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[F.jsx(tt.FdMinusNaked,{onClick:s,className:He("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),F.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),F.jsx(tt.FdPlusNaked,{onClick:i,className:He("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),R$=$.forwardRef(((e,t)=>$.createElement(_n.span,Qe({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),P$=R$;function Em(e){const t=$.useRef({value:e,previous:e});return $.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Uy]=rf("Tooltip",[Wa]),Ef=Wa(),C$=700,[qM,k$]=Uy("TooltipProvider",{isOpenDelayed:!0,delayDuration:C$,onOpen:()=>{},onClose:()=>{}}),[$$,Ga]=Uy("Tooltip"),I$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:u}=e,c=k$("Tooltip",t),f=Ef(t),[m,y]=$.useState(null),p=Uv(),g=$.useRef(0),v=u??c.delayDuration,x=$.useRef(!1),{onOpen:d,onClose:w}=c,[h=!1,S]=ey({prop:i,defaultProp:s,onChange:C=>{C&&(document.dispatchEvent(new CustomEvent("tooltip.open")),d()),a==null||a(C)}}),E=$.useMemo((()=>h?x.current?"delayed-open":"instant-open":"closed"),[h]),R=$.useCallback((()=>{window.clearTimeout(g.current),x.current=!1,S(!0)}),[S]),O=$.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{x.current=!0,S(!0)}),v)}),[v,S]);return $.useEffect((()=>()=>window.clearTimeout(g.current)),[]),$.createElement(Yv,f,$.createElement($$,{scope:t,contentId:p,open:h,stateAttribute:E,trigger:m,onTriggerChange:y,onTriggerEnter:$.useCallback((()=>{c.isOpenDelayed?O():R()}),[c.isOpenDelayed,O,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(g.current),S(!1),w()}),[S,w])},r))},L$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=Ga("TooltipTrigger",r),a=Ef(r),u=En(t,s.onTriggerChange),c=$.useRef(!1),f=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(Jv,Qe({asChild:!0},a),$.createElement(_n.button,Qe({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:u,onMouseEnter:qt(e.onMouseEnter,s.onTriggerEnter),onMouseLeave:qt(e.onMouseLeave,s.onClose),onMouseDown:qt(e.onMouseDown,(()=>{s.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:qt(e.onFocus,(()=>{c.current||s.onOpen()})),onBlur:qt(e.onBlur,s.onClose),onClick:qt(e.onClick,(m=>{m.detail===0&&s.onClose()}))})))})),M$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Ga("TooltipContent",e.__scopeTooltip);return $.createElement(ef,{present:r||s.open},$.createElement(F$,Qe({ref:t},i)))})),F$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...u}=e,c=Ga("TooltipContent",r),f=Ef(r),m=a?tf:$.Fragment,{onClose:y}=c;return Zv((()=>y())),$.useEffect((()=>(document.addEventListener("tooltip.open",y),()=>document.removeEventListener("tooltip.open",y))),[y]),$.createElement(m,null,$.createElement(D$,{__scopeTooltip:r}),$.createElement(Qv,Qe({"data-state":c.stateAttribute},f,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(qv,null,i),$.createElement(P$,{id:c.contentId,role:"tooltip"},s||i)))}));function D$(e){const{__scopeTooltip:t}=e,r=Ga("CheckTriggerMoved",t),i=Kv(r.trigger),s=i==null?void 0:i.left,a=Em(s),u=i==null?void 0:i.top,c=Em(u),f=r.onClose;return $.useEffect((()=>{(a!==void 0&&a!==s||c!==void 0&&c!==u)&&f()}),[f,a,c,s,u]),null}const N$=I$,j$=L$,z$=M$;function W$(e){return F.jsxs(N$,{delayDuration:e.delayDuration,open:e.open,children:[F.jsx(j$,{tabIndex:-1,asChild:!0,children:F.jsx("span",{children:e.children})}),F.jsxs(z$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&F.jsx("p",{className:"max-w-[240px] rounded-md bg-primary-light px-1 py-2 text-s font-semibold text-primary-dark",children:e.message}),typeof e.message!="string"&&e.message]})]})}const Or=30,By=.3,Hy=.6,U$=()=>typeof window>"u"?400:Math.round(window.innerHeight*By),qy=()=>typeof window>"u"?600:Math.round(window.innerHeight*Hy),_m=e=>{const t=qy();return Math.min(Math.max(e,Or),t)},B$=()=>F.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),H$=e=>{const[t,r]=W.useState(Or),i=W.useRef(),s=W.useRef(null),a=qy(),u=U$(),c=t>Or;W.useEffect(()=>{r(e.isOpen?u:Or)},[e.isOpen,u]),W.useEffect(()=>{const m=()=>{r(y=>y<=Or?Or:_m(y))};return window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m),s.current&&cancelAnimationFrame(s.current)}},[]);const f=()=>{if(c){r(Or),e.onClose();return}r(u),e.onOpen()};return F.jsx("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:F.jsx(UO.Resizable,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:a,minHeight:Or,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(c?Or:u):i.current=Date.now()},onResize:(m,y,p)=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{var g;(g=e.onResize)==null||g.call(e),s.current=null})},onResizeStop:(m,y,p,g)=>{r(v=>_m(v+g.height))},handleComponent:{top:F.jsx(B$,{})},children:F.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ye.kebabCase(e.path)}`,children:[F.jsxs("div",{className:He("flex justify-between items-center px-3 py-0.5",{"flex-1":!c}),children:[F.jsxs("div",{className:"group flex items-center justify-start",children:[F.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),e.tipKey?F.jsx(py,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,F.jsx("button",{"data-cy":`contextualPanel-toggle-button-${c?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:f,children:c?F.jsx(tt.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):F.jsx(tt.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),F.jsxs(fa,{of:c,children:[F.jsx(fa,{of:e.render,children:e.render}),F.jsx(fa,{of:!e.render,children:e.children})]})]})})})};function Zy({children:e,viewBox:t="0 0 24 24",...r}){return F.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...r,children:e})}function Gy(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return F.jsx(Zy,{viewBox:"0 0 24 24",...e,children:F.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function q$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:u,...c}){const f=W.useRef(null),m=i||F.jsx(Gy,{}),y=c.checked??e;W.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const p=y||t,g=["base-checkbox-container",a].join(" ");return F.jsxs("label",{className:g,style:u,"data-invalid":r,children:[F.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:y,...c,"aria-invalid":r||void 0}),F.jsx("span",{className:"base-checkbox-control",children:p&&m&&W.cloneElement(m,{isChecked:y,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&F.jsx("span",{className:"base-checkbox-label",children:s})]})}const Z$=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:i,onReset:s,resetButtonLabel:a="Reset Page"})=>F.jsx("div",{className:"flex h-full w-full items-center justify-center",children:F.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[F.jsxs("div",{className:"relative",children:[F.jsx(tt.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-red-500 rounded-full"}),F.jsx("div",{className:"w-1/2 h-1/2 absolute z-0 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white"})]}),F.jsx("p",{className:"mb-2 mt-4 text-2xl text-white",children:e}),F.jsx("p",{className:"text-md mb-4 font-extralight text-grey-100",children:t}),F.jsxs("div",{className:"flex gap-4",children:[i&&F.jsx("button",{className:"text-md rounded border border-primary-dark hover:border-primary-hover bg-primary-dark hover:bg-primary-hover px-3 py-1 text-white focus:outline-none",onClick:i,children:"Open in Text Editor"}),s&&F.jsx("button",{className:"text-md rounded border border-red-500 bg-red-500 hover:bg-red-400 focus:ring-red-500 px-3 py-1 text-white focus:outline-none",onClick:s,children:a}),r&&F.jsx("button",{className:"text-md rounded border border-grey-50 bg-transparent hover:bg-grey-50 text-white hover:text-primary-dark px-3 py-1 focus:outline-none",onClick:r,children:"Close"})]})]})});function G$(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const ec=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function tc(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function mo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Ky(e,t){const r=t.slice(0,t.length-1);for(let i=0;i<r.length;i++)r[i]=e[r[i].toLowerCase()];return r}function Vy(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function K$(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let s=!0;for(let a=0;a<r.length;a++)i.indexOf(r[a])===-1&&(s=!1);return s}const Io={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,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,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,"-":ec?173:189,"=":ec?61:187,";":ec?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},vr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},wo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},vt={16:!1,18:!1,17:!1,91:!1},Je={};for(let e=1;e<20;e++)Io["f".concat(e)]=111+e;let Ke=[],Po=null,Xy="all";const Gr=new Map,Pi=e=>Io[e.toLowerCase()]||vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),V$=e=>Object.keys(Io).find(t=>Io[t]===e),X$=e=>Object.keys(vr).find(t=>vr[t]===e);function Yy(e){Xy=e||"all"}function Lo(){return Xy||"all"}function Y$(){return Ke.slice(0)}function J$(){return Ke.map(e=>V$(e)||X$(e)||String.fromCharCode(e))}function Q$(){const e=[];return Object.keys(Je).forEach(t=>{Je[t].forEach(r=>{let{key:i,scope:s,mods:a,shortcut:u}=r;e.push({scope:s,shortcut:u,mods:a,keys:i.split("+").map(c=>Pi(c))})})}),e}function eI(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const s=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(s||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function tI(e){return typeof e=="string"&&(e=Pi(e)),Ke.indexOf(e)!==-1}function rI(e,t){let r,i;e||(e=Lo());for(const s in Je)if(Object.prototype.hasOwnProperty.call(Je,s))for(r=Je[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(u=>{let{element:c}=u;return _f(c)}):i++;Lo()===e&&Yy(t||"all")}function nI(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Pi(e.key));const r=Ke.indexOf(t);if(r>=0&&Ke.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Ke.splice(0,Ke.length),(t===93||t===224)&&(t=91),t in vt){vt[t]=!1;for(const i in vr)vr[i]===t&&(mr[i]=!1)}}function Jy(e){if(typeof e>"u")Object.keys(Je).forEach(s=>{Array.isArray(Je[s])&&Je[s].forEach(a=>na(a)),delete Je[s]}),_f(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&na(s)});else if(typeof e=="object")e.key&&na(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let[s,a]=r;typeof s=="function"&&(a=s,s=""),na({key:e,scope:s,method:a,splitKey:"+"})}}const na=e=>{let{key:t,scope:r,method:i,splitKey:s="+"}=e;Vy(t).forEach(u=>{const c=u.split(s),f=c.length,m=c[f-1],y=m==="*"?"*":Pi(m);if(!Je[y])return;r||(r=Lo());const p=f>1?Ky(vr,c):[],g=[];Je[y]=Je[y].filter(v=>{const d=(i?v.method===i:!0)&&v.scope===r&&K$(v.mods,p);return d&&g.push(v.element),!d}),g.forEach(v=>_f(v))})};function Om(e,t,r,i){if(t.element!==i)return;let s;if(t.scope===r||t.scope==="all"){s=t.mods.length>0;for(const a in vt)Object.prototype.hasOwnProperty.call(vt,a)&&(!vt[a]&&t.mods.indexOf(+a)>-1||vt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!vt[16]&&!vt[18]&&!vt[17]&&!vt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Ke),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Am(e,t){const r=Je["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!mr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Ke.indexOf(i)===-1&&i!==229&&Ke.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const f=wo[c];e[c]&&Ke.indexOf(f)===-1?Ke.push(f):!e[c]&&Ke.indexOf(f)>-1?Ke.splice(Ke.indexOf(f),1):c==="metaKey"&&e[c]&&(Ke=Ke.filter(m=>m in wo||m===i))}),i in vt){vt[i]=!0;for(const c in vr)if(Object.prototype.hasOwnProperty.call(vr,c)){const f=wo[vr[c]];mr[c]=e[f]}if(!r)return}for(const c in vt)Object.prototype.hasOwnProperty.call(vt,c)&&(vt[c]=e[wo[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ke.indexOf(17)===-1&&Ke.push(17),Ke.indexOf(18)===-1&&Ke.push(18),vt[17]=!0,vt[18]=!0);const s=Lo();if(r)for(let c=0;c<r.length;c++)r[c].scope===s&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&Om(e,r[c],s,t);if(!(i in Je))return;const a=Je[i],u=a.length;for(let c=0;c<u;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const f=a[c],{splitKey:m}=f,y=f.key.split(m),p=[];for(let g=0;g<y.length;g++)p.push(Pi(y[g]));p.sort().join("")===Ke.sort().join("")&&Om(e,f,s,t)}}function mr(e,t,r){Ke=[];const i=Vy(e);let s=[],a="all",u=document,c=0,f=!1,m=!0,y="+",p=!1,g=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(u=t.element),t.keyup&&(f=t.keyup),t.keydown!==void 0&&(m=t.keydown),t.capture!==void 0&&(p=t.capture),typeof t.splitKey=="string"&&(y=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(a=t),g&&Jy(e,a);c<i.length;c++)e=i[c].split(y),s=[],e.length>1&&(s=Ky(vr,e)),e=e[e.length-1],e=e==="*"?"*":Pi(e),e in Je||(Je[e]=[]),Je[e].push({keyup:f,keydown:m,scope:a,mods:s,shortcut:i[c],method:r,key:i[c],splitKey:y,element:u});if(typeof u<"u"&&window){if(!Gr.has(u)){const v=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Am(d,u)},x=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Am(d,u),nI(d)};Gr.set(u,{keydownListener:v,keyupListenr:x,capture:p}),tc(u,"keydown",v,p),tc(u,"keyup",x,p)}if(!Po){const v=()=>{Ke=[]};Po={listener:v,capture:p},tc(window,"focus",v,p)}}}function iI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Je).forEach(r=>{Je[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function _f(e){const t=Object.values(Je).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Gr.get(e)||{};i&&s&&(mo(e,"keyup",s,a),mo(e,"keydown",i,a),Gr.delete(e))}if((t.length<=0||Gr.size<=0)&&(Object.keys(Gr).forEach(s=>{const{keydownListener:a,keyupListenr:u,capture:c}=Gr.get(s)||{};a&&u&&(mo(s,"keyup",u,c),mo(s,"keydown",a,c),Gr.delete(s))}),Gr.clear(),Object.keys(Je).forEach(s=>delete Je[s]),Po)){const{listener:s,capture:a}=Po;mo(window,"focus",s,a),Po=null}}const rc={getPressedKeyString:J$,setScope:Yy,getScope:Lo,deleteScope:rI,getPressedKeyCodes:Y$,getAllKeyCodes:Q$,isPressed:tI,filter:eI,trigger:iI,unbind:Jy,keyMap:Io,modifier:vr,modifierMap:wo};for(const e in rc)Object.prototype.hasOwnProperty.call(rc,e)&&(mr[e]=rc[e]);if(typeof window<"u"){const e=window.hotkeys;mr.noConflict=t=>(t&&window.hotkeys===mr&&(window.hotkeys=e),mr),window.hotkeys=mr}mr.filter=()=>!0;function oI(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:s=!0}=r,a=W.useCallback((c,f)=>{s&&c.preventDefault(),setTimeout(()=>t(c,f))},i),u=()=>{mr.unbind(e,a)};W.useEffect(()=>(mr(e,r,a),u),[e,r,a])}const sI=e=>{const t=W.useRef(null);return W.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function aI(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function uI(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function lI(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function cI(e){const[t,r]=W.useState(e),i=(a,u)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:u}}}))},s=W.useCallback((...a)=>a.every(u=>{var c;return(c=t.features[u])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:s}}const Qy=W.createContext(""),fI=e=>F.jsx(Qy.Provider,{value:e.value,children:e.children}),dI=()=>{const e=W.useContext(Qy);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function pI(e){const[t,r]=W.useState(e),i=W.useMemo(()=>hI(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function hI(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Ye.upperFirst(s)}`]:a=>t(u=>({...u,[s]:a}))}),{})}const gI=(e,t,r={})=>{r={timeout:200,...r};const i=W.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return W.useCallback((a,...u)=>{s(),t&&a.detail===1&&(i.current=setTimeout(()=>{t(a,...u)},r.timeout)),a.detail%2===0&&e(a,...u)},[t,e,r.timeout])};function yt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(process.env.NODE_ENV!=="production"){var s=SI[e],a=s?typeof s=="function"?s.apply(null,r):s:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(u){return"'"+u+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ti(e){return!!e&&!!e[Kt]}function Gn(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var s=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===EI})(e)||Array.isArray(e)||!!e[Lm]||!!(!((t=e.constructor)===null||t===void 0)&&t[Lm])||Of(e)||Af(e))}function Mo(e,t,r){r===void 0&&(r=!1),Ci(e)===0?(r?Object.keys:Cf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function Ci(e){var t=e[Kt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Of(e)?2:Af(e)?3:0}function Pc(e,t){return Ci(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function mI(e,t){return Ci(e)===2?e.get(t):e[t]}function e0(e,t,r){var i=Ci(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function vI(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Of(e){return wI&&e instanceof Map}function Af(e){return xI&&e instanceof Set}function Nn(e){return e.o||e.t}function Tf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=_I(e);delete t[Kt];for(var r=Cf(t),i=0;i<r.length;i++){var s=r[i],a=t[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function Fo(e,t){return t===void 0&&(t=!1),Rf(e)||Ti(e)||!Gn(e)||(Ci(e)>1&&(e.set=e.add=e.clear=e.delete=yI),Object.freeze(e),t&&Mo(e,(function(r,i){return Fo(i,!0)}),!0)),e}function yI(){yt(2)}function Rf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function $r(e){var t=OI[e];return t||yt(18,e),t}function Tm(){return process.env.NODE_ENV==="production"||Ri||yt(0),Ri}function nc(e,t){t&&($r("Patches"),e.u=[],e.s=[],e.v=t)}function Ra(e){Cc(e),e.p.forEach(bI),e.p=null}function Cc(e){e===Ri&&(Ri=e.l)}function Rm(e){return Ri={p:[],l:Ri,h:e,m:!0,_:0}}function bI(e){var t=e[Kt];t.i===0||t.i===1?t.j():t.g=!0}function ic(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||$r("ES5").S(t,e,i),i?(r[Kt].P&&(Ra(t),yt(4)),Gn(e)&&(e=Pa(t,e),t.l||Ca(t,e)),t.u&&$r("Patches").M(r[Kt].t,e,t.u,t.s)):e=Pa(t,r,[]),Ra(t),t.u&&t.v(t.u,t.s),e!==r0?e:void 0}function Pa(e,t,r){if(Rf(t))return t;var i=t[Kt];if(!i)return Mo(t,(function(c,f){return Pm(e,i,t,c,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Ca(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=Tf(i.k):i.o,a=s,u=!1;i.i===3&&(a=new Set(s),s.clear(),u=!0),Mo(a,(function(c,f){return Pm(e,i,s,c,f,r,u)})),Ca(e,s,!1),r&&e.u&&$r("Patches").N(i,r,e.u,e.s)}return i.o}function Pm(e,t,r,i,s,a,u){if(process.env.NODE_ENV!=="production"&&s===r&&yt(5),Ti(s)){var c=Pa(e,s,a&&t&&t.i!==3&&!Pc(t.R,i)?a.concat(i):void 0);if(e0(r,i,c),!Ti(c))return;e.m=!1}else u&&r.add(s);if(Gn(s)&&!Rf(s)){if(!e.h.D&&e._<1)return;Pa(e,s),t&&t.A.l||Ca(e,s)}}function Ca(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Fo(t,r)}function oc(e,t){var r=e[Kt];return(r?Nn(r):e)[t]}function Cm(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function kc(e){e.P||(e.P=!0,e.l&&kc(e.l))}function sc(e){e.o||(e.o=Tf(e.t))}function $c(e,t,r){var i=Of(t)?$r("MapSet").F(t,r):Af(t)?$r("MapSet").T(t,r):e.O?(function(s,a){var u=Array.isArray(s),c={i:u?1:0,A:a?a.A:Tm(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=c,m=Ic;u&&(f=[c],m=xo);var y=Proxy.revocable(f,m),p=y.revoke,g=y.proxy;return c.k=g,c.j=p,g})(t,r):$r("ES5").J(t,r);return(r?r.A:Tm()).p.push(i),i}function t0(e){return Ti(e)||yt(22,e),(function t(r){if(!Gn(r))return r;var i,s=r[Kt],a=Ci(r);if(s){if(!s.P&&(s.i<4||!$r("ES5").K(s)))return s.t;s.I=!0,i=km(r,a),s.I=!1}else i=km(r,a);return Mo(i,(function(u,c){s&&mI(s.t,u)===c||e0(i,u,t(c))})),a===3?new Set(i):i})(e)}function km(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Tf(e)}var $m,Ri,Pf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wI=typeof Map<"u",xI=typeof Set<"u",Im=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",r0=Pf?Symbol.for("immer-nothing"):(($m={})["immer-nothing"]=!0,$m),Lm=Pf?Symbol.for("immer-draftable"):"__$immer_draftable",Kt=Pf?Symbol.for("immer-state"):"__$immer_state",SI={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},EI=""+Object.prototype.constructor,Cf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,_I=Object.getOwnPropertyDescriptors||function(e){var t={};return Cf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},OI={},Ic={get:function(e,t){if(t===Kt)return e;var r=Nn(e);if(!Pc(r,t))return(function(s,a,u){var c,f=Cm(a,u);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(s.k):void 0})(e,r,t);var i=r[t];return e.I||!Gn(i)?i:i===oc(e.t,t)?(sc(e),e.o[t]=$c(e.A.h,i,e)):i},has:function(e,t){return t in Nn(e)},ownKeys:function(e){return Reflect.ownKeys(Nn(e))},set:function(e,t,r){var i=Cm(Nn(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=oc(Nn(e),t),a=s==null?void 0:s[Kt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(vI(r,s)&&(r!==void 0||Pc(e.t,t)))return!0;sc(e),kc(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return oc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,sc(e),kc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Nn(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){yt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){yt(12)}},xo={};Mo(Ic,(function(e,t){xo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&yt(13),xo.set.call(this,e,t,void 0)},xo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&yt(14),Ic.set.call(this,e[0],t,r,e[0])};var AI=(function(){function e(r){var i=this;this.O=Im,this.D=!0,this.produce=function(s,a,u){if(typeof s=="function"&&typeof a!="function"){var c=a;a=s;var f=i;return function(d){var w=this;d===void 0&&(d=c);for(var h=arguments.length,S=Array(h>1?h-1:0),E=1;E<h;E++)S[E-1]=arguments[E];return f.produce(d,(function(R){var O;return(O=a).call.apply(O,[w,R].concat(S))}))}}var m;if(typeof a!="function"&&yt(6),u!==void 0&&typeof u!="function"&&yt(7),Gn(s)){var y=Rm(i),p=$c(i,s,void 0),g=!0;try{m=a(p),g=!1}finally{g?Ra(y):Cc(y)}return typeof Promise<"u"&&m instanceof Promise?m.then((function(d){return nc(y,u),ic(d,y)}),(function(d){throw Ra(y),d})):(nc(y,u),ic(m,y))}if(!s||typeof s!="object"){if((m=a(s))===void 0&&(m=s),m===r0&&(m=void 0),i.D&&Fo(m,!0),u){var v=[],x=[];$r("Patches").M(s,m,v,x),u(v,x)}return m}yt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(m){for(var y=arguments.length,p=Array(y>1?y-1:0),g=1;g<y;g++)p[g-1]=arguments[g];return i.produceWithPatches(m,(function(v){return s.apply(void 0,[v].concat(p))}))};var u,c,f=i.produce(s,a,(function(m,y){u=m,c=y}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(m){return[m,u,c]})):[f,u,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Gn(r)||yt(8),Ti(r)&&(r=t0(r));var i=Rm(this),s=$c(this,r,void 0);return s[Kt].C=!0,Cc(i),s},t.finishDraft=function(r,i){var s=r&&r[Kt];process.env.NODE_ENV!=="production"&&(s&&s.C||yt(9),s.I&&yt(10));var a=s.A;return nc(a,i),ic(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Im&&yt(20),this.O=r},t.applyPatches=function(r,i){var s;for(s=i.length-1;s>=0;s--){var a=i[s];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}s>-1&&(i=i.slice(s+1));var u=$r("Patches").$;return Ti(r)?u(r,i):this.produce(r,(function(c){return u(c,i)}))},e})(),Vt=new AI,TI=Vt.produce;Vt.produceWithPatches.bind(Vt);Vt.setAutoFreeze.bind(Vt);Vt.setUseProxies.bind(Vt);Vt.applyPatches.bind(Vt);Vt.createDraft.bind(Vt);Vt.finishDraft.bind(Vt);function RI(e){var t=W.useState(function(){return Fo(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],W.useCallback(function(i){r(typeof i=="function"?TI(i):Fo(i))},[])]}const PI=process.env.NODE_ENV==="development",ac=PI&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,CI=(e,t,r)=>{const[i,s]=RI(e),a=W.useRef(null);W.useEffect(()=>{var f;return r&&(a.current=ac==null?void 0:ac.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var m,y;(y=(m=a.current)==null?void 0:m.disconnect)==null||y.call(m)}},[]);const u=t&&typeof t=="object"?t:{},c=W.useMemo(()=>Object.keys(u).reduce((f,m)=>({...f,[m]:y=>(s(p=>{var g;u[m](p,y),(g=a.current)==null||g.send({type:u[m].name},t0(p))}),c)}),{}),[s]);return{state:i,dispatch:c}};function Xr(e){return typeof e=="function"}function n0(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var uc=n0(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
202
202
  `+r.map(function(i,s){return s+1+") "+i.toString()}).join(`
203
- `):"",this.name="UnsubscriptionError",this.errors=r}});function Mc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Va=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,s,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=vc(l),f=c.next();!f.done;f=c.next()){var m=f.value;m.remove(this)}}catch(d){t={error:d}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var y=this.initialTeardown;if(Vr(y))try{y()}catch(d){a=d instanceof lc?d.errors:[d]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var g=vc(p),v=g.next();!v.done;v=g.next()){var x=v.value;try{Mm(x)}catch(d){a=a??[],d instanceof lc?a=Ea(Ea([],yc(a)),yc(d.errors)):a.push(d)}}}catch(d){i={error:d}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}}if(a)throw new lc(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Mm(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Mc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Mc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),t0=Va.EMPTY;function r0(e){return e instanceof Va||e&&"closed"in e&&Vr(e.remove)&&Vr(e.add)&&Vr(e.unsubscribe)}function Mm(e){Vr(e)?e():e.unsubscribe()}var TI={Promise:void 0},RI={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Ea([e,t],yc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function PI(e){RI.setTimeout(function(){throw e})}function Fm(){}function ma(e){e()}var n0=(function(e){za(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,r0(r)&&r.add(i)):i.destination=$I,i}return t.create=function(r,i,s){return new Fc(r,i,s)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Va),CI=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){ia(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ia(i)}else ia(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ia(r)}},e})(),Fc=(function(e){za(t,e);function t(r,i,s){var a=e.call(this)||this,l;return Vr(r)||!r?l={next:r??void 0,error:i??void 0,complete:s??void 0}:l=r,a.destination=new CI(l),a}return t})(n0);function ia(e){PI(e)}function kI(e){throw e}var $I={closed:!0,next:Fm,error:kI,complete:Fm},II=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function LI(e){return e}function MI(e){return e.length===0?LI:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var Dm=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var s=this,a=DI(t)?t:new Fc(t,r,i);return ma(function(){var l=s,c=l.operator,f=l.source;a.add(c?c.call(a,f):f?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Nm(r),new r(function(s,a){var l=new Fc({next:function(c){try{t(c)}catch(f){a(f),l.unsubscribe()}},error:a,complete:s});i.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[II]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return MI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Nm(t),new t(function(i,s){var a;r.subscribe(function(l){return a=l},function(l){return s(l)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function Nm(e){var t;return(t=e??TI.Promise)!==null&&t!==void 0?t:Promise}function FI(e){return e&&Vr(e.next)&&Vr(e.error)&&Vr(e.complete)}function DI(e){return e&&e instanceof n0||FI(e)&&r0(e)}var NI=e0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Lr=(function(e){za(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new jm(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new NI},t.prototype.next=function(r){var i=this;ma(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=vc(i.currentObservers),c=l.next();!c.done;c=l.next()){var f=c.value;f.next(r)}}catch(m){s={error:m}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var i=this;ma(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var s=i.observers;s.length;)s.shift().error(r)}})},t.prototype.complete=function(){var r=this;ma(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,s=this,a=s.hasError,l=s.isStopped,c=s.observers;return a||l?t0:(this.currentObservers=null,c.push(r),new Va(function(){i.currentObservers=null,Mc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,s=i.hasError,a=i.thrownError,l=i.isStopped;s?r.error(a):l&&r.complete()},t.prototype.asObservable=function(){var r=new Dm;return r.source=this,r},t.create=function(r,i){return new jm(r,i)},t})(Dm),jm=(function(e){za(t,e);function t(r,i){var s=e.call(this)||this;return s.destination=r,s.source=i,s}return t.prototype.next=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,r)},t.prototype.error=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&s!==void 0?s:t0},t})(Lr),i0=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(i0||{}),o0=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(o0||{});const jI=new Lr,zI=new Lr,s0=new Lr;var a0=(e=>(e.SAVE_ALL="save-all",e))(a0||{});const WI=new Lr;var u0=(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))(u0||{});const UI=new Lr;var l0=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(l0||{});const BI=new Lr,HI=new Lr;var Do=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Do||{});const $a=new Lr,qI=new Lr,$f=255;var If=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${$f} characters (including extension)`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(If||{});function c0(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>$f)throw new Error(If.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(r))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(r))throw new Error("Invalid name");return!0}function ZI(e){if(!e)return null;if(typeof e=="string")try{c0(e)}catch(t){return t.message}}function GI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Ye.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Ye.isObject(i)||Array.isArray(i))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function KI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Xa(e){const{PLACEHOLDER_PREFIX:t,counter:r}=KI();let i=r;const s=[],a="@!",l=y=>(s.push(y),`${t}${i++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(y,p,g)=>p+l(g)),c=c.replace(/:\d{2}:\d{2}/g,l);const f=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let m=c.replace(f,"");for(let y=0;y<s.length;y++){const g=`${t}${y}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),v=new RegExp(g,"g");m=m.replace(v,s[y])}return m}var Lf=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Lf||{});const bn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Xe=(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))(Xe||{}),_n=(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))(_n||{}),Mf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Mf||{});const f0="roles.json",d0="qodlyApp.json",VI="model.4DModel",p0="HTTPHandlers.json",h0="Shared/i18n.json";function XI(e){const t=Ff(e);switch(t){case Xe.SETTINGS:return{filename:"Settings",type:t};case Xe.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case Xe.ROLES:return{filename:"Roles & Privileges",type:t};case Xe.LOCALIZATION:return{filename:"Localization",type:t};case Xe.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function Ff(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Xe.MODEL;case r==="WebForm":return Xe.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===bn.METHODS):return Xe.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===bn.CLASSES):return Xe.CLASS;case e===f0:return Xe.ROLES;case e===p0:return Xe.HTTP_HANDLERS;case e===d0:return Xe.SETTINGS;case e===h0:return Xe.LOCALIZATION;default:return Xe.TEXT}}function YI(e,t=!1){switch(e){case bn.REPORTS:case"report":return"QoDoc";case bn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case bn.CLASSES:case bn.METHODS:return t?"4qs":"4dm";default:return""}}function JI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function QI(e,t,r){switch(t){case Xe.MOBILEFORM:return`${e}.MForm`;case Xe.WEBFORM:return`${e}.WebForm`;case Xe.REPORT:return`${e}.QoDoc`;case Xe.METHOD:case Xe.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class g0{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(s=>{t=s}),i=this.current.then(()=>t);return this.current=r,i}}function Df(){const e=new g0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const m0=Ye.curry((e,t,r)=>e&&Ye.get(r,e)===t),e2=Ye.curry((e,t,r)=>Ye.get(r,e)!==t),t2=Ye.curry((e,t)=>Ye.get(t,"id")!==e),r2=Ye.curry((e,t)=>Ye.get(t,"id")===e),n2=Ye.curry((e,t)=>Ye.get(t,"path")===e);function i2(e="id",t,r){return r.findIndex(m0(e,t))!==-1}function v0(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function o2(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function s2(e=""){const t=e.trim().split(":")||[];let r="",i="";return t.length>1?(r=t[1],i=t[0]):r=t[0],{id:r,namespace:i,root:r.split(".").filter(Boolean)[0],original:i?`${i}:${r}`:r,parts:t}}function y0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function a2(e){return e.type==="object"}function b0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function w0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!y0(e)}function u2(e){return b0(e)||w0(e)}function l2(e){return e.applyTo==="dataStore"}function c2(e){return e.applyTo==="dataClass"}function f2(e){return e.applyTo==="entity"}function d2(e){return e.applyTo==="entityCollection"}function p2(e){return e.type==="entity"}function h2(e){return e.type==="entitysel"}function x0(e){return e.dataType==="array"}function S0(e){return e.dataType==="object"}function E0(e){return e.type==="scalar"}function g2(e){return x0(e)||S0(e)||E0(e)}const m2=e=>e!=null&&e.type==="entity",v2=e=>e.type==="entitysel",y2=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",b2=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",w2=e=>e.type==="scalar"&&e.dataType==="date",x2=(e,t)=>(e||"")===(t||"");function S2(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function E2(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const So="Qodly",_0="Location",O0="UserLanguage",A0="Title",Ia={[So]:[{id:A0,dataType:"string",type:"scalar",namespace:So,initialValue:""},{id:_0,dataType:"object",type:"scalar",namespace:So,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:O0,dataType:"object",type:"scalar",namespace:So,initialValue:{selected:{},supported:[]},schema:{type:"object",properties:[{name:"selected",type:"object",initialValue:{},attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]},{name:"supported",type:"array",initialValue:[],attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]}]}}]};var No=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(No||{}),T0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(T0||{}),Nf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Nf||{});const _2={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function O2(e){var a;let t={};try{const l=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:No.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Nf.table}},...i}}function R0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[No.capable,No.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function A2(e,t,r=!1){const i=Ye.isString(t)?t:R0(t);if(!r&&P0(e))return e;const s=C0(e);return`//%attributes = ${i}\r
204
- ${s}`}function P0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function C0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const T2=()=>Qc.uuid().replaceAll("-","").toUpperCase(),R2=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");function k0(e){var r;if(!e||typeof e!="object")return[];const t=((r=e.__STATUS)==null?void 0:r.errors)??e.__ERRORS??e.errorStack;return Array.isArray(t)?t:[]}function $0(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function P2(e,t){const r=k0(e);return $0(r,t)}function C2(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}const at="/rest/$designer",Go="/rest/$designer-ext";function k2(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(i=>{typeof r[i]=="string"&&(r[i]=new Date(r[i]))}),r}}class Dc extends Error{constructor(t,r,i){super(),this.url=t,this.response=r,this.data=i}log(){console.error("Error while sending the request",this)}}async function Ne(e,t){var s;$a.next({action:Do.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const l=await r.json();((s=l==null?void 0:l.__ERROR)==null?void 0:s.some(f=>f.errCode===1651))&&$a.next({action:Do.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Dc(e,r,l)}catch{a=new Dc(e,r)}throw a.log(),a}return await r.json()}function $2(e){return $a.next({action:Do.REQUEST_SENT}),e}var Er={},mt={},zm;function zn(){if(zm)return mt;zm=1;var e=mt.ValidationError=function(d,w,h,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(C,U){return C+c(U)},"instance")):S!==void 0&&(this.property=S),d&&(this.message=d),h){var O=h.$id||h.id;this.schema=O||h}w!==void 0&&(this.instance=w),this.name=E,this.argument=R,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=mt.ValidatorResult=function(d,w,h,S){this.instance=d,this.schema=w,this.options=h,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=h&&h.throwError,this.throwFirst=h&&h.throwFirst,this.throwAll=h&&h.throwAll,this.disableFormat=h&&h.disableFormat===!0};t.prototype.addError=function(d){var w;if(typeof d=="string")w=new e(d,this.instance,this.schema,this.path);else{if(!d)throw new Error("Missing error detail");if(!d.message)throw new Error("Missing error message");if(!d.name)throw new Error("Missing validator type");w=new e(d.message,this.instance,this.schema,this.path,d.name,d.argument)}if(this.errors.push(w),this.throwFirst)throw new i(this);if(this.throwError)throw w;return w},t.prototype.importErrors=function(d){typeof d=="string"||d&&d.validatorType?this.addError(d):d&&d.errors&&(this.errors=this.errors.concat(d.errors))};function r(x,d){return d+": "+x.toString()+`
205
- `}t.prototype.toString=function(d){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),mt.ValidatorResultError=i;function i(x){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,i),this.instance=x.instance,this.schema=x.schema,this.options=x.options,this.errors=x.errors}i.prototype=new Error,i.prototype.constructor=i,i.prototype.name="Validation Error";var s=mt.SchemaError=function x(d,w){this.message=d,this.schema=w,Error.call(this,d),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,x)};s.prototype=Object.create(Error.prototype,{constructor:{value:s,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=mt.SchemaContext=function(d,w,h,S,E){this.schema=d,this.options=w,Array.isArray(h)?(this.path=h,this.propertyPath=h.reduce(function(R,O){return R+c(O)},"instance")):this.propertyPath=h,this.base=S,this.schemas=E};a.prototype.resolve=function(d){return v(this.base,d)},a.prototype.makeChild=function(d,w){var h=w===void 0?this.path:this.path.concat([w]),S=d.$id||d.id;let E=v(this.base,S||"");var R=new a(d,this.options,h,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=d),R};var l=mt.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(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var d=!0;try{new RegExp(x)}catch{d=!1}return d},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"],mt.isFormat=function(d,w,h){if(typeof d=="string"&&l[w]!==void 0){if(l[w]instanceof RegExp)return l[w].test(d);if(typeof l[w]=="function")return l[w](d)}else if(h&&h.customFormats&&typeof h.customFormats[w]=="function")return h.customFormats[w](d);return!0};var c=mt.makeSuffix=function(d){return d=d.toString(),!d.match(/[.\s\[\]]/)&&!d.match(/^[\d]/)?"."+d:d.match(/^\d+$/)?"["+d+"]":"["+JSON.stringify(d)+"]"};mt.deepCompareStrict=function x(d,w){if(typeof d!=typeof w)return!1;if(Array.isArray(d))return!Array.isArray(w)||d.length!==w.length?!1:d.every(function(E,R){return x(d[R],w[R])});if(typeof d=="object"){if(!d||!w)return d===w;var h=Object.keys(d),S=Object.keys(w);return h.length!==S.length?!1:h.every(function(E){return x(d[E],w[E])})}return d===w};function f(x,d,w,h){typeof w=="object"?d[h]=p(x[h],w):x.indexOf(w)===-1&&d.push(w)}function m(x,d,w){d[w]=x[w]}function y(x,d,w,h){typeof d[h]!="object"||!d[h]?w[h]=d[h]:x[h]?w[h]=p(x[h],d[h]):w[h]=d[h]}function p(x,d){var w=Array.isArray(d),h=w&&[]||{};return w?(x=x||[],h=h.concat(x),d.forEach(f.bind(null,x,h))):(x&&typeof x=="object"&&Object.keys(x).forEach(m.bind(null,x,h)),Object.keys(d).forEach(y.bind(null,x,d,h))),h}mt.deepMerge=p,mt.objectGetPath=function(d,w){for(var h=w.split("/").slice(1),S;typeof(S=h.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in d))return;d=d[E]}return d};function g(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}mt.encodePath=function(d){return d.map(g).join("")},mt.getDecimalPlaces=function(d){var w=0;if(isNaN(d))return w;typeof d!="number"&&(d=Number(d));var h=d.toString().split("e");if(h.length===2){if(h[1][0]!=="-")return w;w=Number(h[1].slice(1))}var S=h[0].split(".");return S.length===2&&(w+=S[1].length),w},mt.isSchema=function(d){return typeof d=="object"&&d||typeof d=="boolean"};var v=mt.resolveUrl=function(d,w){const h=new URL(w,new URL(d,"resolve://"));if(h.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=h;return S+E+R}return h.toString()};return mt}var cc,Wm;function I2(){if(Wm)return cc;Wm=1;var e=zn(),t=e.ValidatorResult,r=e.SchemaError,i={};i.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var s=i.validators={};s.type=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x),w=Array.isArray(g.type)?g.type:[g.type];if(!w.some(this.testType.bind(this,p,g,v,x))){var h=w.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});d.addError({name:"type",argument:h,message:"is not of a type(s) "+h})}return d};function a(y,p,g,v,x){var d=p.throwError,w=p.throwAll;p.throwError=!1,p.throwAll=!1;var h=this.validateSchema(y,x,p,g);return p.throwError=d,p.throwAll=w,!h.valid&&v instanceof Function&&v(h),h.valid}s.anyOf=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x),w=new t(p,g,v,x);if(!Array.isArray(g.anyOf))throw new r("anyOf must be an array");if(!g.anyOf.some(a.bind(this,p,v,x,function(S){w.importErrors(S)}))){var h=g.anyOf.map(function(S,E){var R=S.$id||S.id;return R?"<"+R+">":S.title&&JSON.stringify(S.title)||S.$ref&&"<"+S.$ref+">"||"[subschema "+E+"]"});v.nestedErrors&&d.importErrors(w),d.addError({name:"anyOf",argument:h,message:"is not any of "+h.join(",")})}return d},s.allOf=function(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.allOf))throw new r("allOf must be an array");var d=new t(p,g,v,x),w=this;return g.allOf.forEach(function(h,S){var E=w.validateSchema(p,h,v,x);if(!E.valid){var R=h.$id||h.id,O=R||h.title&&JSON.stringify(h.title)||h.$ref&&"<"+h.$ref+">"||"[subschema "+S+"]";d.addError({name:"allOf",argument:{id:O,length:E.errors.length,valid:E},message:"does not match allOf schema "+O+" with "+E.errors.length+" error[s]:"}),d.importErrors(E)}}),d},s.oneOf=function(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.oneOf))throw new r("oneOf must be an array");var d=new t(p,g,v,x),w=new t(p,g,v,x),h=g.oneOf.filter(a.bind(this,p,v,x,function(E){w.importErrors(E)})).length,S=g.oneOf.map(function(E,R){var O=E.$id||E.id;return O||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return h!==1&&(v.nestedErrors&&d.importErrors(w),d.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),d},s.if=function(p,g,v,x){if(p===void 0)return null;if(!e.isSchema(g.if))throw new Error('Expected "if" keyword to be a schema');var d=a.call(this,p,v,x,null,g.if),w=new t(p,g,v,x),h;if(d){if(g.then===void 0)return;if(!e.isSchema(g.then))throw new Error('Expected "then" keyword to be a schema');h=this.validateSchema(p,g.then,v,x.makeChild(g.then)),w.importErrors(h)}else{if(g.else===void 0)return;if(!e.isSchema(g.else))throw new Error('Expected "else" keyword to be a schema');h=this.validateSchema(p,g.else,v,x.makeChild(g.else)),w.importErrors(h)}return w};function l(y,p){if(Object.hasOwnProperty.call(y,p))return y[p];if(p in y){for(;y=Object.getPrototypeOf(y);)if(Object.propertyIsEnumerable.call(y,p))return y[p]}}s.propertyNames=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.propertyNames!==void 0?g.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var h in p)if(l(p,h)!==void 0){var S=this.validateSchema(h,w,v,x.makeChild(w));d.importErrors(S)}return d}},s.properties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.properties||{};for(var h in w){var S=w[h];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof v.preValidateProperty=="function"&&v.preValidateProperty(p,h,S,v,x);var E=l(p,h),R=this.validateSchema(E,S,v,x.makeChild(S,h));R.instance!==d.instance[h]&&(d.instance[h]=R.instance),d.importErrors(R)}}return d}};function c(y,p,g,v,x,d){if(this.types.object(y)&&!(p.properties&&p.properties[x]!==void 0))if(p.additionalProperties===!1)d.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=p.additionalProperties||{};typeof g.preValidateProperty=="function"&&g.preValidateProperty(y,x,w,g,v);var h=this.validateSchema(y[x],w,g,v.makeChild(w,x));h.instance!==d.instance[x]&&(d.instance[x]=h.instance),d.importErrors(h)}}s.patternProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.patternProperties||{};for(var h in p){var S=!0;for(var E in w){var R=w[E];if(R!==void 0){if(R===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var O=new RegExp(E,"u")}catch{O=new RegExp(E)}if(O.test(h)){S=!1,typeof v.preValidateProperty=="function"&&v.preValidateProperty(p,h,R,v,x);var C=this.validateSchema(p[h],R,v,x.makeChild(R,h));C.instance!==d.instance[h]&&(d.instance[h]=C.instance),d.importErrors(C)}}}S&&c.call(this,p,g,v,x,h,d)}return d}},s.additionalProperties=function(p,g,v,x){if(this.types.object(p)){if(g.patternProperties)return null;var d=new t(p,g,v,x);for(var w in p)c.call(this,p,g,v,x,w,d);return d}},s.minProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=Object.keys(p);return w.length>=g.minProperties||d.addError({name:"minProperties",argument:g.minProperties,message:"does not meet minimum property length of "+g.minProperties}),d}},s.maxProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=Object.keys(p);return w.length<=g.maxProperties||d.addError({name:"maxProperties",argument:g.maxProperties,message:"does not meet maximum property length of "+g.maxProperties}),d}},s.items=function(p,g,v,x){var d=this;if(this.types.array(p)&&g.items!==void 0){var w=new t(p,g,v,x);return p.every(function(h,S){if(Array.isArray(g.items))var E=g.items[S]===void 0?g.additionalItems:g.items[S];else var E=g.items;if(E===void 0)return!0;if(E===!1)return w.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=d.validateSchema(h,E,v,x.makeChild(E,S));return R.instance!==w.instance[S]&&(w.instance[S]=R.instance),w.importErrors(R),!0}),w}},s.contains=function(p,g,v,x){var d=this;if(this.types.array(p)&&g.contains!==void 0){if(!e.isSchema(g.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(p,g,v,x),h=p.some(function(S,E){var R=d.validateSchema(S,g.contains,v,x.makeChild(g.contains,E));return R.errors.length===0});return h===!1&&w.addError({name:"contains",argument:g.contains,message:"must contain an item matching given schema"}),w}},s.minimum=function(p,g,v,x){if(this.types.number(p)){var d=new t(p,g,v,x);return g.exclusiveMinimum&&g.exclusiveMinimum===!0?p>g.minimum||d.addError({name:"minimum",argument:g.minimum,message:"must be greater than "+g.minimum}):p>=g.minimum||d.addError({name:"minimum",argument:g.minimum,message:"must be greater than or equal to "+g.minimum}),d}},s.maximum=function(p,g,v,x){if(this.types.number(p)){var d=new t(p,g,v,x);return g.exclusiveMaximum&&g.exclusiveMaximum===!0?p<g.maximum||d.addError({name:"maximum",argument:g.maximum,message:"must be less than "+g.maximum}):p<=g.maximum||d.addError({name:"maximum",argument:g.maximum,message:"must be less than or equal to "+g.maximum}),d}},s.exclusiveMinimum=function(p,g,v,x){if(typeof g.exclusiveMinimum!="boolean"&&this.types.number(p)){var d=new t(p,g,v,x),w=p>g.exclusiveMinimum;return w||d.addError({name:"exclusiveMinimum",argument:g.exclusiveMinimum,message:"must be strictly greater than "+g.exclusiveMinimum}),d}},s.exclusiveMaximum=function(p,g,v,x){if(typeof g.exclusiveMaximum!="boolean"&&this.types.number(p)){var d=new t(p,g,v,x),w=p<g.exclusiveMaximum;return w||d.addError({name:"exclusiveMaximum",argument:g.exclusiveMaximum,message:"must be strictly less than "+g.exclusiveMaximum}),d}};var f=function(p,g,v,x,d,w){if(this.types.number(p)){var h=g[d];if(h==0)throw new r(d+" cannot be zero");var S=new t(p,g,v,x),E=e.getDecimalPlaces(p),R=e.getDecimalPlaces(h),O=Math.max(E,R),C=Math.pow(10,O);return Math.round(p*C)%Math.round(h*C)!==0&&S.addError({name:d,argument:h,message:w+JSON.stringify(h)}),S}};s.multipleOf=function(p,g,v,x){return f.call(this,p,g,v,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(p,g,v,x){return f.call(this,p,g,v,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(p,g,v,x){var d=new t(p,g,v,x);return p===void 0&&g.required===!0?d.addError({name:"required",message:"is required"}):this.types.object(p)&&Array.isArray(g.required)&&g.required.forEach(function(w){l(p,w)===void 0&&d.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),d},s.pattern=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=g.pattern;try{var h=new RegExp(w,"u")}catch{h=new RegExp(w)}return p.match(h)||d.addError({name:"pattern",argument:g.pattern,message:"does not match pattern "+JSON.stringify(g.pattern.toString())}),d}},s.format=function(p,g,v,x){if(p!==void 0){var d=new t(p,g,v,x);return!d.disableFormat&&!e.isFormat(p,g.format,this)&&d.addError({name:"format",argument:g.format,message:"does not conform to the "+JSON.stringify(g.format)+" format"}),d}},s.minLength=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=p.match(/[\uDC00-\uDFFF]/g),h=p.length-(w?w.length:0);return h>=g.minLength||d.addError({name:"minLength",argument:g.minLength,message:"does not meet minimum length of "+g.minLength}),d}},s.maxLength=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=p.match(/[\uDC00-\uDFFF]/g),h=p.length-(w?w.length:0);return h<=g.maxLength||d.addError({name:"maxLength",argument:g.maxLength,message:"does not meet maximum length of "+g.maxLength}),d}},s.minItems=function(p,g,v,x){if(this.types.array(p)){var d=new t(p,g,v,x);return p.length>=g.minItems||d.addError({name:"minItems",argument:g.minItems,message:"does not meet minimum length of "+g.minItems}),d}},s.maxItems=function(p,g,v,x){if(this.types.array(p)){var d=new t(p,g,v,x);return p.length<=g.maxItems||d.addError({name:"maxItems",argument:g.maxItems,message:"does not meet maximum length of "+g.maxItems}),d}};function m(y,p,g){var v,x=g.length;for(v=p+1,x;v<x;v++)if(e.deepCompareStrict(y,g[v]))return!1;return!0}return s.uniqueItems=function(p,g,v,x){if(g.uniqueItems===!0&&this.types.array(p)){var d=new t(p,g,v,x);return p.every(m)||d.addError({name:"uniqueItems",message:"contains duplicate item"}),d}},s.dependencies=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x);for(var w in g.dependencies)if(p[w]!==void 0){var h=g.dependencies[w],S=x.makeChild(h,w);if(typeof h=="string"&&(h=[h]),Array.isArray(h))h.forEach(function(R){p[R]===void 0&&d.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(p,h,v,S);d.instance!==E.instance&&(d.instance=E.instance),E&&E.errors.length&&(d.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),d.importErrors(E))}}return d}},s.enum=function(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.enum))throw new r("enum expects an array",g);var d=new t(p,g,v,x);return g.enum.some(e.deepCompareStrict.bind(null,p))||d.addError({name:"enum",argument:g.enum,message:"is not one of enum values: "+g.enum.map(String).join(",")}),d},s.const=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x);return e.deepCompareStrict(g.const,p)||d.addError({name:"const",argument:g.const,message:"does not exactly match expected constant: "+g.const}),d},s.not=s.disallow=function(p,g,v,x){var d=this;if(p===void 0)return null;var w=new t(p,g,v,x),h=g.not||g.disallow;return h?(Array.isArray(h)||(h=[h]),h.forEach(function(S){if(d.testType(p,g,v,x,S)){var E=S&&(S.$id||S.id),R=E||S;w.addError({name:"not",argument:R,message:"is of prohibited type "+R})}}),w):null},cc=i,cc}var oa={},Um;function Nc(){if(Um)return oa;Um=1;var e=zn();oa.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return oa.scan=function(i,s){function a(y,p){if(!p||typeof p!="object")return;if(p.$ref){let d=e.resolveUrl(y,p.$ref);m[d]=m[d]?m[d]+1:0;return}var g=p.$id||p.id;let v=e.resolveUrl(y,g);var x=g?v:y;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],p))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=p,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=p)}l(x+"/items",Array.isArray(p.items)?p.items:[p.items]),l(x+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),a(x+"/additionalItems",p.additionalItems),c(x+"/properties",p.properties),a(x+"/additionalProperties",p.additionalProperties),c(x+"/definitions",p.definitions),c(x+"/patternProperties",p.patternProperties),c(x+"/dependencies",p.dependencies),l(x+"/disallow",p.disallow),l(x+"/allOf",p.allOf),l(x+"/anyOf",p.anyOf),l(x+"/oneOf",p.oneOf),a(x+"/not",p.not)}function l(y,p){if(Array.isArray(p))for(var g=0;g<p.length;g++)a(y+"/"+g,p[g])}function c(y,p){if(!(!p||typeof p!="object"))for(var g in p)a(y+"/"+g,p[g])}var f={},m={};return a(i,s),new t(f,m)},oa}var fc,Bm;function L2(){if(Bm)return fc;Bm=1;var e=I2(),t=zn(),r=Nc().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,l=t.SchemaContext,c="/",f=function p(){this.customFormats=Object.create(p.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(y),this.attributes=Object.create(e.validators)};f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(g,v){var x=this;if(!g)return null;var d=r(v||c,g),w=v||g.$id||g.id;for(var h in d.id)this.schemas[h]=d.id[h];for(var h in d.ref)this.unresolvedRefs.push(h);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[w]},f.prototype.addSubSchemaArray=function(g,v){if(Array.isArray(v))for(var x=0;x<v.length;x++)this.addSubSchema(g,v[x])},f.prototype.addSubSchemaObject=function(g,v){if(!(!v||typeof v!="object"))for(var x in v)this.addSubSchema(g,v[x])},f.prototype.setSchemas=function(g){this.schemas=g},f.prototype.getSchema=function(g){return this.schemas[g]},f.prototype.validate=function(g,v,x,d){if(typeof v!="boolean"&&typeof v!="object"||v===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var w=v.$id||v.id;let h=t.resolveUrl(x.base,w||"");if(!d){d=new l(v,x,[],h,Object.create(this.schemas)),d.schemas[h]||(d.schemas[h]=v);var S=r(h,v);for(var E in S.id){var R=S.id[E];d.schemas[E]=R}}if(x.required&&g===void 0){var O=new i(g,v,x,d);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(g,v,x,d);if(O){if(x.throwAll&&O.errors.length)throw new s(O)}else throw new Error("Result undefined");return O};function m(p){var g=typeof p=="string"?p:p.$ref;return typeof g=="string"?g:!1}f.prototype.validateSchema=function(g,v,x,d){var w=new i(g,v,x,d);if(typeof v=="boolean")v===!0?v={}:v===!1&&(v={type:[]});else if(!v)throw new Error("schema is undefined");if(v.extends)if(Array.isArray(v.extends)){var h={schema:v,ctx:d};v.extends.forEach(this.schemaTraverser.bind(this,h)),v=h.schema,h.schema=null,h.ctx=null,h=null}else v=t.deepMerge(v,this.superResolve(v.extends,d));var S=m(v);if(S){var E=this.resolve(v,S,d),R=new l(E.subschema,x,d.path,E.switchSchema,d.schemas);return this.validateSchema(g,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var C in v)if(!e.ignoreProperties[C]&&O.indexOf(C)<0){var U=null,M=this.attributes[C];if(M)U=M.call(this,g,v,x,d);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+C,v);U&&w.importErrors(U)}if(typeof x.rewrite=="function"){var D=x.rewrite.call(this,g,v,x,d);w.instance=D}return w},f.prototype.schemaTraverser=function(g,v){g.schema=t.deepMerge(g.schema,this.superResolve(v,g.ctx))},f.prototype.superResolve=function(g,v){var x=m(g);return x?this.resolve(g,x,v).subschema:g},f.prototype.resolve=function(g,v,x){if(v=x.resolve(v),x.schemas[v])return{subschema:x.schemas[v],switchSchema:v};let w=new URL(v,"thismessage::/").hash;var h=w&&w.length&&v.substr(0,v.length-w.length);if(!h||!x.schemas[h])throw new a("no such schema <"+v+">",g);var S=t.objectGetPath(x.schemas[h],w.substr(1));if(S===void 0)throw new a("no such schema "+w+" located in <"+h+">",g);return{subschema:S,switchSchema:v}},f.prototype.testType=function(g,v,x,d,w){if(w!==void 0){if(w===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[w]=="function")return this.types[w].call(this,g);if(w&&typeof w=="object"){var h=this.validateSchema(g,w,x,d);return h===void 0||!(h&&h.errors.length)}return!0}};var y=f.prototype.types={};return y.string=function(g){return typeof g=="string"},y.number=function(g){return typeof g=="number"&&isFinite(g)},y.integer=function(g){return typeof g=="number"&&g%1===0},y.boolean=function(g){return typeof g=="boolean"},y.array=function(g){return Array.isArray(g)},y.null=function(g){return g===null},y.date=function(g){return g instanceof Date},y.any=function(g){return!0},y.object=function(g){return g&&typeof g=="object"&&!Array.isArray(g)&&!(g instanceof Date)},fc=f,fc}var Hm;function M2(){if(Hm)return Er;Hm=1;var e=Er.Validator=L2();return Er.ValidatorResult=zn().ValidatorResult,Er.ValidatorResultError=zn().ValidatorResultError,Er.ValidationError=zn().ValidationError,Er.SchemaError=zn().SchemaError,Er.SchemaScanResult=Nc().SchemaScanResult,Er.scan=Nc().scan,Er.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},Er}var F2=M2();const I0=(e,t,r)=>{const i=e instanceof RegExp?qm(e,r):e,s=t instanceof RegExp?qm(t,r):t,a=i!==null&&s!=null&&D2(i,s,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+i.length,a[1]),post:r.slice(a[1]+s.length)}},qm=(e,t)=>{const r=t.match(e);return r?r[0]:null},D2=(e,t,r)=>{let i,s,a,l,c,f=r.indexOf(e),m=r.indexOf(t,f+1),y=f;if(f>=0&&m>0){if(e===t)return[f,m];for(i=[],a=r.length;y>=0&&!c;){if(y===f)i.push(y),f=r.indexOf(e,y+1);else if(i.length===1){const p=i.pop();p!==void 0&&(c=[p,m])}else s=i.pop(),s!==void 0&&s<a&&(a=s,l=m),m=r.indexOf(t,y+1);y=f<m&&f>=0?f:m}i.length&&l!==void 0&&(c=[a,l])}return c},L0="\0SLASH"+Math.random()+"\0",M0="\0OPEN"+Math.random()+"\0",jf="\0CLOSE"+Math.random()+"\0",F0="\0COMMA"+Math.random()+"\0",D0="\0PERIOD"+Math.random()+"\0",N2=new RegExp(L0,"g"),j2=new RegExp(M0,"g"),z2=new RegExp(jf,"g"),W2=new RegExp(F0,"g"),U2=new RegExp(D0,"g"),B2=/\\\\/g,H2=/\\{/g,q2=/\\}/g,Z2=/\\,/g,G2=/\\\./g,K2=1e5;function dc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function V2(e){return e.replace(B2,L0).replace(H2,M0).replace(q2,jf).replace(Z2,F0).replace(G2,D0)}function X2(e){return e.replace(N2,"\\").replace(j2,"{").replace(z2,"}").replace(W2,",").replace(U2,".")}function N0(e){if(!e)return[""];const t=[],r=I0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,l=i.split(",");l[l.length-1]+="{"+s+"}";const c=N0(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function Y2(e,t={}){if(!e)return[];const{max:r=K2}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Eo(V2(e),r,!0).map(X2)}function J2(e){return"{"+e+"}"}function Q2(e){return/^-?0\d/.test(e)}function eL(e,t){return e<=t}function tL(e,t){return e>=t}function Eo(e,t,r){const i=[],s=I0("{","}",e);if(!s)return[e];const a=s.pre,l=s.post.length?Eo(s.post,t,!1):[""];if(/\$$/.test(s.pre))for(let c=0;c<l.length&&c<t;c++){const f=a+"{"+s.body+"}"+l[c];i.push(f)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),m=c||f,y=s.body.indexOf(",")>=0;if(!m&&!y)return s.post.match(/,(?!,).*\}/)?(e=s.pre+"{"+s.body+jf+s.post,Eo(e,t,!0)):[e];let p;if(m)p=s.body.split(/\.\./);else if(p=N0(s.body),p.length===1&&p[0]!==void 0&&(p=Eo(p[0],t,!1).map(J2),p.length===1))return l.map(v=>s.pre+p[0]+v);let g;if(m&&p[0]!==void 0&&p[1]!==void 0){const v=dc(p[0]),x=dc(p[1]),d=Math.max(p[0].length,p[1].length);let w=p.length===3&&p[2]!==void 0?Math.max(Math.abs(dc(p[2])),1):1,h=eL;x<v&&(w*=-1,h=tL);const E=p.some(Q2);g=[];for(let R=v;h(R,x);R+=w){let O;if(f)O=String.fromCharCode(R),O==="\\"&&(O="");else if(O=String(R),E){const C=d-O.length;if(C>0){const U=new Array(C+1).join("0");R<0?O="-"+U+O.slice(1):O=U+O}}g.push(O)}}else{g=[];for(let v=0;v<p.length;v++)g.push.apply(g,Eo(p[v],t,!1))}for(let v=0;v<g.length;v++)for(let x=0;x<l.length&&i.length<t;x++){const d=a+g[v]+l[x];(!r||m||d)&&i.push(d)}}return i}const rL=1024*64,La=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>rL)throw new TypeError("pattern is too long")},nL={"[: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]},vo=e=>e.replace(/[[\]\\-]/g,"\\$&"),iL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zm=e=>e.join(""),oL=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],s=[];let a=r+1,l=!1,c=!1,f=!1,m=!1,y=r,p="";e:for(;a<e.length;){const d=e.charAt(a);if((d==="!"||d==="^")&&a===r+1){m=!0,a++;continue}if(d==="]"&&l&&!f){y=a+1;break}if(l=!0,d==="\\"&&!f){f=!0,a++;continue}if(d==="["&&!f){for(const[w,[h,S,E]]of Object.entries(nL))if(e.startsWith(w,a)){if(p)return["$.",!1,e.length-r,!0];a+=w.length,E?s.push(h):i.push(h),c=c||S;continue e}}if(f=!1,p){d>p?i.push(vo(p)+"-"+vo(d)):d===p&&i.push(vo(d)),p="",a++;continue}if(e.startsWith("-]",a+1)){i.push(vo(d+"-")),a+=2;continue}if(e.startsWith("-",a+1)){p=d,a+=2;continue}i.push(vo(d)),a++}if(y<a)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,e.length-r,!0];if(s.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!m){const d=i[0].length===2?i[0].slice(-1):i[0];return[iL(d),!1,y-r,!1]}const g="["+(m?"^":"")+Zm(i)+"]",v="["+(m?"":"^")+Zm(s)+"]";return[i.length&&s.length?"("+g+"|"+v+")":i.length?g:v,c,y-r,!0]},_o=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var Lt;const sL=new Set(["!","?","+","*","@"]),jc=e=>sL.has(e),Gm=e=>jc(e.type),aL=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),uL=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),lL=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Km=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),cL="(?!(?:^|/)\\.\\.?(?:$|/))",sa="(?!\\.)",fL=new Set(["[","."]),dL=new Set(["..","."]),pL=new Set("().*{}+?[]^$\\!"),hL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),zf="[^/]",Vm=zf+"*?",Xm=zf+"+?";let gL=0;var st,dt,Kr,we,Ge,mn,Wn,vn,Or,Ar,xi,Ie,j0,wn,va,z0,zc,ya,W0,Wc,U0,B0,H0,ba,Uc,q0;class Ya{constructor(t,r,i={}){gt(this,Ie);ye(this,"type");gt(this,st);gt(this,dt);gt(this,Kr,!1);gt(this,we,[]);gt(this,Ge);gt(this,mn);gt(this,Wn);gt(this,vn,!1);gt(this,Or);gt(this,Ar);gt(this,xi,!1);ye(this,"id",++gL);this.type=t,t&&je(this,dt,!0),je(this,Ge,r),je(this,st,Y(this,Ge)?Y(Y(this,Ge),st):this),je(this,Or,Y(this,st)===this?i:Y(Y(this,st),Or)),je(this,Wn,Y(this,st)===this?[]:Y(Y(this,st),Wn)),t==="!"&&!Y(Y(this,st),vn)&&Y(this,Wn).push(this),je(this,mn,Y(this,Ge)?Y(Y(this,Ge),we).length:0)}get depth(){var t;return(((t=Y(this,Ge))==null?void 0:t.depth)??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){var t;return{"@@type":"AST",id:this.id,type:this.type,root:Y(this,st).id,parent:(t=Y(this,Ge))==null?void 0:t.id,depth:this.depth,partsLength:Y(this,we).length,parts:Y(this,we)}}get hasMagic(){if(Y(this,dt)!==void 0)return Y(this,dt);for(const t of Y(this,we))if(typeof t!="string"&&(t.type||t.hasMagic))return je(this,dt,!0);return Y(this,dt)}toString(){return Y(this,Ar)!==void 0?Y(this,Ar):this.type?je(this,Ar,this.type+"("+Y(this,we).map(t=>String(t)).join("|")+")"):je(this,Ar,Y(this,we).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Lt&&Y(r,Ge)===this))throw new Error("invalid part: "+r);Y(this,we).push(r)}}toJSON(){var r;const t=this.type===null?Y(this,we).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...Y(this,we).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Y(this,st)||Y(Y(this,st),vn)&&((r=Y(this,Ge))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(Y(this,st)===this)return!0;if(!((r=Y(this,Ge))!=null&&r.isStart()))return!1;if(Y(this,mn)===0)return!0;const t=Y(this,Ge);for(let i=0;i<Y(this,mn);i++){const s=Y(t,we)[i];if(!(s instanceof Lt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(Y(this,st)===this||((r=Y(this,Ge))==null?void 0:r.type)==="!")return!0;if(!((i=Y(this,Ge))!=null&&i.isEnd()))return!1;if(!this.type)return(s=Y(this,Ge))==null?void 0:s.isEnd();const t=Y(this,Ge)?Y(Y(this,Ge),we).length:0;return Y(this,mn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Lt(this.type,t);for(const i of Y(this,we))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Lt(null,void 0,r);return de(s=Lt,wn,va).call(s,t,i,0,r,0),i}toMMPattern(){if(this!==Y(this,st))return Y(this,st).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||Y(this,dt)||Y(this,Or).nocase&&!Y(this,Or).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(Y(this,Or).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return Y(this,Or)}toRegExpSource(t){var f;const r=t??!!Y(this,Or).dot;if(Y(this,st)===this&&(de(this,Ie,ba).call(this),de(this,Ie,j0).call(this)),!Gm(this)){const m=this.isStart()&&this.isEnd()&&!Y(this,we).some(x=>typeof x!="string"),y=Y(this,we).map(x=>{var E;const[d,w,h,S]=typeof x=="string"?de(E=Lt,wn,q0).call(E,x,Y(this,dt),m):x.toRegExpSource(t);return je(this,dt,Y(this,dt)||h),je(this,Kr,Y(this,Kr)||S),d}).join("");let p="";if(this.isStart()&&typeof Y(this,we)[0]=="string"&&!(Y(this,we).length===1&&dL.has(Y(this,we)[0]))){const d=fL,w=r&&d.has(y.charAt(0))||y.startsWith("\\.")&&d.has(y.charAt(2))||y.startsWith("\\.\\.")&&d.has(y.charAt(4)),h=!r&&!t&&d.has(y.charAt(0));p=w?cL:h?sa:""}let g="";return this.isEnd()&&Y(Y(this,st),vn)&&((f=Y(this,Ge))==null?void 0:f.type)==="!"&&(g="(?:$|\\/)"),[p+y+g,_o(y),je(this,dt,!!Y(this,dt)),Y(this,Kr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=de(this,Ie,Uc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const m=this.toString(),y=this;return je(y,we,[m]),y.type=null,je(y,dt,void 0),[m,_o(this.toString()),!1,!1]}let l=!i||t||r||!sa?"":de(this,Ie,Uc).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&Y(this,xi))c=(this.isStart()&&!r?sa:"")+Xm;else{const m=this.type==="!"?"))"+(this.isStart()&&!r&&!t?sa:"")+Vm+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=s+a+m}return[c,_o(a),je(this,dt,!!Y(this,dt)),Y(this,Kr)]}}st=new WeakMap,dt=new WeakMap,Kr=new WeakMap,we=new WeakMap,Ge=new WeakMap,mn=new WeakMap,Wn=new WeakMap,vn=new WeakMap,Or=new WeakMap,Ar=new WeakMap,xi=new WeakMap,Ie=new WeakSet,j0=function(){if(this!==Y(this,st))throw new Error("should only call on root");if(Y(this,vn))return this;this.toString(),je(this,vn,!0);let t;for(;t=Y(this,Wn).pop();){if(t.type!=="!")continue;let r=t,i=Y(r,Ge);for(;i;){for(let s=Y(r,mn)+1;!i.type&&s<Y(i,we).length;s++)for(const a of Y(t,we)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(Y(i,we)[s])}r=i,i=Y(r,Ge)}}return this},wn=new WeakSet,va=function(t,r,i,s,a){var d,w,h,S;const l=s.maxExtglobRecursion??2;let c=!1,f=!1,m=-1,y=!1;if(r.type===null){let E=i,R="";for(;E<t.length;){const O=t.charAt(E++);if(c||O==="\\"){c=!c,R+=O;continue}if(f){E===m+1?(O==="^"||O==="!")&&(y=!0):O==="]"&&!(E===m+2&&y)&&(f=!1),R+=O;continue}else if(O==="["){f=!0,m=E,y=!1,R+=O;continue}if(!s.noext&&jc(O)&&t.charAt(E)==="("&&a<=l){r.push(R),R="";const U=new Lt(O,r);E=de(d=Lt,wn,va).call(d,t,U,E,s,a+1),r.push(U);continue}R+=O}return r.push(R),E}let p=i+1,g=new Lt(null,r);const v=[];let x="";for(;p<t.length;){const E=t.charAt(p++);if(c||E==="\\"){c=!c,x+=E;continue}if(f){p===m+1?(E==="^"||E==="!")&&(y=!0):E==="]"&&!(p===m+2&&y)&&(f=!1),x+=E;continue}else if(E==="["){f=!0,m=p,y=!1,x+=E;continue}if(!s.noext&&jc(E)&&t.charAt(p)==="("&&(a<=l||r&&de(w=r,Ie,ya).call(w,E))){const O=r&&de(h=r,Ie,ya).call(h,E)?0:1;g.push(x),x="";const C=new Lt(E,g);g.push(C),p=de(S=Lt,wn,va).call(S,t,C,p,s,a+O);continue}if(E==="|"){g.push(x),x="",v.push(g),g=new Lt(null,r);continue}if(E===")")return x===""&&Y(r,we).length===0&&je(r,xi,!0),g.push(x),x="",r.push(...v,g),p;x+=E}return r.type=null,je(r,dt,void 0),je(r,we,[t.substring(i-1)]),p},z0=function(t){return de(this,Ie,zc).call(this,t,uL)},zc=function(t,r=aL){if(!t||typeof t!="object"||t.type!==null||Y(t,we).length!==1||this.type===null)return!1;const i=Y(t,we)[0];return!i||typeof i!="object"||i.type===null?!1:de(this,Ie,ya).call(this,i.type,r)},ya=function(t,r=lL){var i;return!!((i=r.get(this.type))!=null&&i.includes(t))},W0=function(t,r){const i=Y(t,we)[0],s=new Lt(null,i,this.options);Y(s,we).push(""),i.push(s),de(this,Ie,Wc).call(this,t,r)},Wc=function(t,r){const i=Y(t,we)[0];Y(this,we).splice(r,1,...Y(i,we));for(const s of Y(i,we))typeof s=="object"&&je(s,Ge,this);je(this,Ar,void 0)},U0=function(t){const r=Km.get(this.type);return!!(r!=null&&r.has(t))},B0=function(t){if(!t||typeof t!="object"||t.type!==null||Y(t,we).length!==1||this.type===null||Y(this,we).length!==1)return!1;const r=Y(t,we)[0];return!r||typeof r!="object"||r.type===null?!1:de(this,Ie,U0).call(this,r.type)},H0=function(t){const r=Km.get(this.type),i=Y(t,we)[0],s=r==null?void 0:r.get(i.type);if(!s)return!1;je(this,we,Y(i,we));for(const a of Y(this,we))typeof a=="object"&&je(a,Ge,this);this.type=s,je(this,Ar,void 0),je(this,xi,!1)},ba=function(){var t,r;if(Gm(this)){let i=0,s=!1;do{s=!0;for(let a=0;a<Y(this,we).length;a++){const l=Y(this,we)[a];typeof l=="object"&&(de(r=l,Ie,ba).call(r),de(this,Ie,zc).call(this,l)?(s=!1,de(this,Ie,Wc).call(this,l,a)):de(this,Ie,z0).call(this,l)?(s=!1,de(this,Ie,W0).call(this,l,a)):de(this,Ie,B0).call(this,l)&&(s=!1,de(this,Ie,H0).call(this,l)))}}while(!s&&++i<10)}else for(const i of Y(this,we))typeof i=="object"&&de(t=i,Ie,ba).call(t);je(this,Ar,void 0)},Uc=function(t){return Y(this,we).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,l]=r.toRegExpSource(t);return je(this,Kr,Y(this,Kr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},q0=function(t,r,i=!1){let s=!1,a="",l=!1,c=!1;for(let f=0;f<t.length;f++){const m=t.charAt(f);if(s){s=!1,a+=(pL.has(m)?"\\":"")+m;continue}if(m==="*"){if(c)continue;c=!0,a+=i&&/^[*]+$/.test(t)?Xm:Vm,r=!0;continue}else c=!1;if(m==="\\"){f===t.length-1?a+="\\\\":s=!0;continue}if(m==="["){const[y,p,g,v]=oL(t,f);if(g){a+=y,l=l||p,f+=g-1,r=r||v;continue}}if(m==="?"){a+=zf,r=!0;continue}a+=hL(m)}return[a,_o(t),!!r,l]},gt(Ya,wn);Lt=Ya;const mL=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),_t=(e,t,r={})=>(La(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ja(t,r).match(e)),vL=/^\*+([^+@!?*[(]*)$/,yL=e=>t=>!t.startsWith(".")&&t.endsWith(e),bL=e=>t=>t.endsWith(e),wL=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),xL=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),SL=/^\*+\.\*+$/,EL=e=>!e.startsWith(".")&&e.includes("."),_L=e=>e!=="."&&e!==".."&&e.includes("."),OL=/^\.\*+$/,AL=e=>e!=="."&&e!==".."&&e.startsWith("."),TL=/^\*+$/,RL=e=>e.length!==0&&!e.startsWith("."),PL=e=>e.length!==0&&e!=="."&&e!=="..",CL=/^\?+([^+@!?*[(]*)?$/,kL=([e,t=""])=>{const r=Z0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},$L=([e,t=""])=>{const r=G0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},IL=([e,t=""])=>{const r=G0([e]);return t?i=>r(i)&&i.endsWith(t):r},LL=([e,t=""])=>{const r=Z0([e]);return t?i=>r(i)&&i.endsWith(t):r},Z0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},G0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},K0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ym={win32:{sep:"\\"},posix:{sep:"/"}},ML=K0==="win32"?Ym.win32.sep:Ym.posix.sep;_t.sep=ML;const St=Symbol("globstar **");_t.GLOBSTAR=St;const FL="[^/]",DL=FL+"*?",NL="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",jL="(?:(?!(?:\\/|^)\\.).)*?",zL=(e,t={})=>r=>_t(r,e,t);_t.filter=zL;const nr=(e,t={})=>Object.assign({},e,t),WL=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return _t;const t=_t;return Object.assign((i,s,a={})=>t(i,s,nr(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,nr(e,a))}static defaults(s){return t.defaults(nr(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,l={}){super(s,a,nr(e,l))}static fromGlob(s,a={}){return t.AST.fromGlob(s,nr(e,a))}},unescape:(i,s={})=>t.unescape(i,nr(e,s)),escape:(i,s={})=>t.escape(i,nr(e,s)),filter:(i,s={})=>t.filter(i,nr(e,s)),defaults:i=>t.defaults(nr(e,i)),makeRe:(i,s={})=>t.makeRe(i,nr(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,nr(e,s)),match:(i,s,a={})=>t.match(i,s,nr(e,a)),sep:t.sep,GLOBSTAR:St})};_t.defaults=WL;const V0=(e,t={})=>(La(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Y2(e,{max:t.braceExpandMax}));_t.braceExpand=V0;const UL=(e,t={})=>new Ja(e,t).makeRe();_t.makeRe=UL;const BL=(e,t,r={})=>{const i=new Ja(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};_t.match=BL;const Jm=/[?*]|[+@!]\(.*?\)|\[|\]/,HL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var Zt,X0,Bc,mi;class Ja{constructor(t,r={}){gt(this,Zt);ye(this,"options");ye(this,"set");ye(this,"pattern");ye(this,"windowsPathsNoEscape");ye(this,"nonegate");ye(this,"negate");ye(this,"comment");ye(this,"empty");ye(this,"preserveMultipleSlashes");ye(this,"partial");ye(this,"globSet");ye(this,"globParts");ye(this,"nocase");ye(this,"isWindows");ye(this,"platform");ye(this,"windowsNoMagicRoot");ye(this,"maxGlobstarRecursion");ye(this,"regexp");La(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||K0,this.isWindows=this.platform==="win32";const i="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.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 t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((a,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=a[0]===""&&a[1]===""&&(a[2]==="?"||!Jm.test(a[2]))&&!Jm.test(a[3]),m=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(y=>this.parse(y))];if(m)return[a[0],...a.slice(1).map(y=>this.parse(y))]}return a.map(f=>this.parse(f))});if(this.debug(this.pattern,s),this.set=s.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const l=this.set[a];l[0]===""&&l[1]===""&&this.globParts[a][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(const i of t)for(let s=0;s<i.length;s++)i[s]==="**"&&(i[s]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let s=i;for(;r[s+1]==="**";)s++;s!==i&&r.splice(i,s-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,s)=>{const a=i[i.length-1];return s==="**"&&a==="**"?i:s===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(i.pop(),i):(i.push(s),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){const a=t[s];s===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const s=t[i-1];s&&s!=="."&&s!==".."&&s!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(s))&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let s=-1;for(;(s=i.indexOf("**",s+1))!==-1;){let l=s;for(;i[l+1]==="**";)l++;l>s&&i.splice(s+1,l-s);let c=i[s+1];const f=i[s+2],m=i[s+3];if(c!==".."||!f||f==="."||f===".."||!m||m==="."||m==="..")continue;r=!0,i.splice(s,1);const y=i.slice(0);y[s]="**",t.push(y),s--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const c=i[l];l===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let a=0;for(;(a=i.indexOf("..",a+1))!==-1;){const l=i[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const f=a===1&&i[a+1]==="**"?["."]:[];i.splice(a-1,2,...f),i.length===0&&i.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const s=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(s){t[r]=[],t[i]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let s=0,a=0,l=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])l.push(c==="b"?r[a]:t[s]),s++,a++;else if(i&&t[s]==="**"&&r[a]===t[s+1])l.push(t[s]),s++;else if(i&&r[a]==="**"&&t[s]===r[a+1])l.push(r[a]),a++;else if(t[s]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",l.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="a")return!1;c="b",l.push(r[a]),s++,a++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){let s=0,a=0;if(this.isWindows){const c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),m=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),y=!m&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=f?3:c?0:void 0,g=y?3:m?0:void 0;if(typeof p=="number"&&typeof g=="number"){const[v,x]=[t[p],r[g]];v.toLowerCase()===x.toLowerCase()&&(r[g]=v,a=g,s=p)}}const{optimizationLevel:l=1}=this.options;return l>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(St)?de(this,Zt,X0).call(this,t,r,i,s,a):de(this,Zt,mi).call(this,t,r,i,s,a)}braceExpand(){return V0(this.pattern,this.options)}parse(t){La(t);const r=this.options;if(t==="**")return St;if(t==="")return"";let i,s=null;(i=t.match(TL))?s=r.dot?PL:RL:(i=t.match(vL))?s=(r.nocase?r.dot?xL:wL:r.dot?bL:yL)(i[1]):(i=t.match(CL))?s=(r.nocase?r.dot?$L:kL:r.dot?IL:LL)(i):(i=t.match(SL))?s=r.dot?_L:EL:(i=t.match(OL))&&(s=AL);const a=Ya.fromGlob(t,this.options).toMMPattern();return s&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:s}),a}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?DL:r.dot?NL:jL,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const m=f.map(p=>{if(p instanceof RegExp)for(const g of p.flags.split(""))s.add(g);return typeof p=="string"?HL(p):p===St?St:p._src});m.forEach((p,g)=>{const v=m[g+1],x=m[g-1];p!==St||x===St||(x===void 0?v!==void 0&&v!==St?m[g+1]="(?:\\/|"+i+"\\/)?"+v:m[g]=i:v===void 0?m[g-1]=x+"(?:\\/|\\/"+i+")?":v!==St&&(m[g-1]=x+"(?:\\/|\\/"+i+"\\/)"+v,m[g+1]=St))});const y=m.filter(p=>p!==St);if(this.partial&&y.length>=1){const p=[];for(let g=1;g<=y.length;g++)p.push(y.slice(0,g).join("/"));return"(?:"+p.join("|")+")"}return y.join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+c+"$",this.partial&&(a="^(?:\\/|"+l+a.slice(1,-1)+c+")$"),this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const a=this.set;this.debug(this.pattern,"set",a);let l=s[s.length-1];if(!l)for(let c=s.length-2;!l&&c>=0;c--)l=s[c];for(const c of a){let f=s;if(i.matchBase&&c.length===1&&(f=[l]),this.matchOne(f,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return _t.defaults(t).Minimatch}}Zt=new WeakSet,X0=function(t,r,i,s,a){const l=r.indexOf(St,a),c=r.lastIndexOf(St),[f,m,y]=i?[r.slice(a,l),r.slice(l+1),[]]:[r.slice(a,l),r.slice(l+1,c),r.slice(c+1)];if(f.length){const S=t.slice(s,s+f.length);if(!de(this,Zt,mi).call(this,S,f,i,0,0))return!1;s+=f.length,a+=f.length}let p=0;if(y.length){if(y.length+s>t.length)return!1;let S=t.length-y.length;if(de(this,Zt,mi).call(this,t,y,i,S,0))p=y.length;else{if(t[t.length-1]!==""||s+y.length===t.length||(S--,!de(this,Zt,mi).call(this,t,y,i,S,0)))return!1;p=y.length+1}}if(!m.length){let S=!!p;for(let E=s;E<t.length-p;E++){const R=String(t[E]);if(S=!0,R==="."||R===".."||!this.options.dot&&R.startsWith("."))return!1}return i||S}const g=[[[],0]];let v=g[0],x=0;const d=[0];for(const S of m)S===St?(d.push(x),v=[[],0],g.push(v)):(v[0].push(S),x++);let w=g.length-1;const h=t.length-p;for(const S of g)S[1]=h-(d[w--]+S[0].length);return!!de(this,Zt,Bc).call(this,t,g,s,0,i,0,!!p)},Bc=function(t,r,i,s,a,l,c){const f=r[s];if(!f){for(let p=i;p<t.length;p++){c=!0;const g=t[p];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1}return c}const[m,y]=f;for(;i<=y;){if(de(this,Zt,mi).call(this,t.slice(0,i+m.length),m,a,i,0)&&l<this.maxGlobstarRecursion){const v=de(this,Zt,Bc).call(this,t,r,i+m.length,s+1,a,l+1,c);if(v!==!1)return v}const g=t[i];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1;i++}return a||null},mi=function(t,r,i,s,a){let l,c,f,m;for(l=s,c=a,m=t.length,f=r.length;l<m&&c<f;l++,c++){this.debug("matchOne loop");let y=r[c],p=t[l];if(this.debug(r,y,p),y===!1||y===St)return!1;let g;if(typeof y=="string"?(g=p===y,this.debug("string match",y,p,g)):(g=y.test(p),this.debug("pattern match",y,p,g)),!g)return!1}if(l===m&&c===f)return!0;if(l===m)return i;if(c===f)return l===m-1&&t[l]==="";throw new Error("wtf?")};_t.AST=Ya;_t.Minimatch=Ja;_t.escape=mL;_t.unescape=_o;const jo="/$shared",qL={"**/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"}},"**/i18n.json":{parser:"json",content:{keys:{},userLang:{primary:"",supported:[]}},schema:{type:"object",properties:{keys:{type:"object"},userLang:{type:"object",properties:{primary:{type:"string"},supported:{type:"array",items:{type:"string"}}},required:["primary","supported"]}},required:["keys","userLang"]}},"**/*.json":{parser:"json",content:{}}};function Y0(e){const t=Object.entries(qL).find(([r])=>_t(e,r));return t==null?void 0:t[1]}function Qa(e){var i;const t=(i=Y0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${jo}/`,"Shared/");Wf({name:r,content:t,asText:typeof t=="string"})}async function ZL(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Ne(`${jo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){J0(r)&&Qa(`${jo}/${t}`)}}function Ko({path:e,createIfNotExists:t=!1}){const r=`${jo}/${e}`;return Ne(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=Y0(e);let a=i;if(!s)return a;if(typeof a=="string")try{switch(s.parser){case"json":a=JSON.parse(a);break;default:break}}catch{throw new Error("Cannot parse")}if(s.schema&&!new F2.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(J0(i)&&t){const s=GL(i,e);s0.next({message:s,kind:"warning"}),Qa(r)}throw i})}function J0(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.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 GL(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function KL(e){return Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function VL(e){return Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Q0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Mf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function XL(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:_n.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const l=`http://${e}:${s.webServerHTTPPort}`,c=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?i?c:l:s.webServerHTTPPort?l:c})();return{projectOpened:s.webServerHTTPSPort>0||s.webServerHTTPPort>0,remoteDebuggerMode:s.remoteDebuggerMode,baseUrl:a,qodly:typeof s.qodly>"u"?!0:s.qodly,urls:{renderer:s.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:s.isRESTActive}}catch(s){return console.error(s),Q0()}}async function eb(e){return await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function YL(...e){return(await Promise.all(e.map(i=>eb({root:i,verb:_n.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:l})=>({name:s,type:l,date:a,path:`${l}/${s}`}))).flat()}function JL(e,t={}){const{sanitize:r=!0}=t;return Ne(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const s=new Map;return{...i,components:Ye.entries(i.components).map(([a,l])=>{const c=a,{resolvedName:f}=l.type;if(f==="WebformLoader"){const m=Qc.generate();s.set(a,m),a=m}return[a,l,c]}).reduce((a,[l,c,f])=>{var m;return c.nodes&&(c.nodes=c.nodes.map(y=>s.get(y)||y)),c.linkedNodes&&(c.linkedNodes=Ye.entries(c.linkedNodes).reduce((y,[p,g])=>({...y,[p]:s.get(g)||g}),{})),(m=c.props)!=null&&m.events&&(c.props.events=c.props.events.map(y=>(y.type==="navigation"&&y.loader&&(y.loader=s.get(y.loader)||y.loader),y))),{...a,[l]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function QL(e){return Ne(at,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Xe.METHOD,Xe.CLASS].includes(t.type)?Xa(t.content):t.content}))}function eM(e){return e.type==="folder"?Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function tM(e){return e.type==="folder"?(await Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function rM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function nM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function iM(e){return(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function oM(...e){return await Ne(at,{method:"POST",body:JSON.stringify({verb:_n.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function sM(e){const t=await Ne("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function aM(){return await Ne("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function uM(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,i=await(await fetch(t)).text(),{supported:s}=JSON.parse(i);return s}catch{return[]}}async function lM({name:e,path:t="",root:r="root",asText:i=!1}){return Ne(at,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function cM(e={}){try{return{...await Ko({path:"shared_datasources.json",...e}),...Ia}}catch{return{...Ia}}}async function fM(e={}){try{return await Ko({path:"shared_app_events.json",...e})}catch{return[]}}async function dM(e={}){try{return await Ko({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function pM(e={}){try{return await Ko({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function hM(){try{return await Ne("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function gM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const mM=Df(),vM=async e=>{const t={verb:_n.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ye.omit(e,Ye.keys(Ia))};return mM(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},yM=Df(),bM=async e=>{const t={verb:_n.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return yM(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},Wf=async e=>{const t=await Ne(at,{method:"POST",body:JSON.stringify({...e,verb:_n.SET_FILE_CONTENT,root:Lf.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Ff(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},wM=async e=>await Wf({name:"crafted_components.json",path:bn.WEBFORMS,content:e});function xM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function SM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function EM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function _M(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?Xa(t.content):t.content}).catch(t=>{var r,i;throw((i=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:i.errCode)===1839&&Qa(e.path),t})}function OM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function AM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function TM(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function RM(e){const t=AM(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),l=s.split(":")[1].trim();return{name:a,type:l}}),r=TM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function PM(e,t){const i=e.split(".").pop();try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});s.content=Xa(s.content);const{params:a,result:l}=RM(s.parameters);return{...s,params:a,returns:l}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var tb=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(tb||{});function CM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function kM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var rb=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(rb||{}),nb=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(nb||{}),ib=(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))(ib||{}),ob=(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))(ob||{});const $M={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},IM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=at;exports.AppLoader=v$;exports.BaseCheckboxIcon=By;exports.Checkbox=W$;exports.ControlledSwitch=Oy;exports.DATASOURCE_THEMES=$M;exports.DatasourcesActions=o0;exports.DebuggerActions=l0;exports.DefaultCheckboxIcon=Hy;exports.DesignerRequestVerb=_n;exports.Dialog=YA;exports.DialogBody=hv;exports.EActivity=tb;exports.EDITOR=IM;exports.EIDENTIFIERS=ib;exports.ERROR_CODES=ob;exports.EWebFormStyleClassScope=rb;exports.EXT_API_PREFIX=Go;exports.FileFolderType=Xe;exports.FloatingTooltip=N$;exports.FolderRootPath=bn;exports.FolderRootType=Lf;exports.HTTPError=Dc;exports.HTTP_HANDLERS_TAB_PATH=p0;exports.IPreemptive=No;exports.IPublished=T0;exports.IPublishedRestScope=Nf;exports.IdentityProvider=aI;exports.Incase=fa;exports.IndentLines=Rv;exports.InvalidJsonError=U$;exports.LOCALIZATION_TAB_PATH=h0;exports.LOCATION_DATASOURCE_ID=_0;exports.LogoSVG=jy;exports.LspActions=u0;exports.MAX_FILE_NAME_LENGTH=$f;exports.MODEL_TAB_PATH=VI;exports.Modal=x$;exports.ModalCloseReason=vi;exports.ModalColor=Bn;exports.ModalIcons=Pc;exports.ModalType=Ef;exports.Mutex=g0;exports.NameError=If;exports.Overlay=pv;exports.PANEL_EXPANDED_HEIGHT=ga;exports.PANEL_INITIAL_HEIGHT=Dn;exports.Panel=z$;exports.Portal=tv;exports.PublishOptions=_2;exports.QODLY_NAMESPACE=So;exports.ROLES_TAB_PATH=f0;exports.RemoteDebuggerMode=Mf;exports.SETTINGS_TAB_PATH=d0;exports.SHARED_API_PREFIX=jo;exports.SHARED_USER_NAMESPACE=Ia;exports.SourceCodeDescriptor=nb;exports.Switcher=Pv;exports.TITLE_DATASOURCE_ID=A0;exports.TabEventsActions=a0;exports.Tip=py;exports.TipsProvider=_C;exports.Toast=iR;exports.Tooltip=g$;exports.Tree=SR;exports.TreeIcon=_v;exports.TreeNode=ef;exports.USER_LANGUAGE_DATASOURCE_ID=O0;exports.WebformActions=i0;exports.WebformEventsActions=Do;exports.ZoomComponent=_$;exports.ZoomLevel=Wy;exports._isArrayDatasource=y2;exports._isObjectDatasource=b2;exports.addAttributesToContent=A2;exports.addFolder=rM;exports.by=m0;exports.byId=r2;exports.byPath=n2;exports.callServerSideParser=$2;exports.checkUpdates=KL;exports.createFolder=xM;exports.datasourcesSubject=jI;exports.debuggerSubject=BI;exports.dropFile=tM;exports.dropFolder=iM;exports.exists=i2;exports.extractWebformName=JI;exports.filterBySeriousError=$0;exports.formatErrorsAsBulletToast=C2;exports.generateUUID=T2;exports.getAppSettings=XL;exports.getCatalog=aM;exports.getDatasourceId=o2;exports.getDefaultAppSettings=Q0;exports.getDisplayableFeedbackErrors=P2;exports.getErrorListFromPayload=k0;exports.getFile=QL;exports.getFileContent=lM;exports.getFileExtentionFromType=YI;exports.getFilenameAndTypeFromPath=XI;exports.getFilenameFromType=QI;exports.getFilesInfo=oM;exports.getFolder=eb;exports.getFolders=YL;exports.getFunctionContent=PM;exports.getMonacoTheme=gM;exports.getNodeInfo=_M;exports.getSavedConditions=pM;exports.getSharedAppEvents=fM;exports.getSharedCSS=dM;exports.getSharedDatasources=cM;exports.getSharedResource=Ko;exports.getSupportedLanguages=uM;exports.getTypeFromExtension=Ff;exports.getUserPrivileges=hM;exports.getWebForm=JL;exports.hasAttributesString=P0;exports.http=Ne;exports.i18nSubject=qI;exports.initializeDefaultProjectFiles=ZL;exports.installUpdates=VL;exports.isArrayDatasource=x0;exports.isDataClassMethod=c2;exports.isDataStoreMethod=l2;exports.isDateDatasource=w2;exports.isEntity=m2;exports.isEntityDatasource=p2;exports.isEntityMethod=f2;exports.isEntitySelection=v2;exports.isEntitySelectionDatasource=h2;exports.isEntitySelectionMethod=d2;exports.isObjectAttribute=a2;exports.isObjectDatasource=S0;exports.isRelatedAttribute=u2;exports.isRelatedEntitiesAttribute=b0;exports.isRelatedEntityAttribute=w0;exports.isSameNamespace=x2;exports.isScalarDatasource=E0;exports.isSimpleAttribute=y0;exports.isSimpleDatasource=g2;exports.loadDS=S2;exports.loadI18n=E2;exports.localeCompare=v0;exports.log=CM;exports.login=sM;exports.lspSubject=UI;exports.moveItem=EM;exports.outBy=e2;exports.outById=t2;exports.parseAttributes=O2;exports.queue=Df;exports.removeAttributesString=C0;exports.removeItem=SM;exports.renameFile=eM;exports.renameFolder=nM;exports.sanitizeContent=Xa;exports.sanitizeNameCY=R2;exports.saveContent=OM;exports.setCraftedComponents=wM;exports.setFileContent=Wf;exports.setSharedAppEvents=bM;exports.setSharedSources=vM;exports.splitDatasourceID=s2;exports.stringifyAttributes=R0;exports.tabEventsSubject=WI;exports.tasksManagerSubject=HI;exports.toastSubject=s0;exports.trackEvent=kM;exports.transformDates=k2;exports.tryCreateSharedResource=Qa;exports.useDidMountEffect=B$;exports.useDoubleClick=fI;exports.useEnhancedState=AI;exports.useFeatureFlags=sI;exports.useForwardedRef=oI;exports.useHotkeys=tI;exports.useIdentity=uI;exports.useOutsideClick=rI;exports.usePrevious=nI;exports.useStateObject=lI;exports.useStateRef=iI;exports.useTip=dy;exports.validateName=c0;exports.validateServerSide=ZI;exports.validateValue=GI;exports.webformEventsSubject=$a;exports.webformSubject=zI;
203
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Lc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ka=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,s,a;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=mc(u),f=c.next();!f.done;f=c.next()){var m=f.value;m.remove(this)}}catch(d){t={error:d}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else u.remove(this);var y=this.initialTeardown;if(Xr(y))try{y()}catch(d){a=d instanceof uc?d.errors:[d]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var g=mc(p),v=g.next();!v.done;v=g.next()){var x=v.value;try{Mm(x)}catch(d){a=a??[],d instanceof uc?a=Sa(Sa([],vc(a)),vc(d.errors)):a.push(d)}}}catch(d){i={error:d}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}}if(a)throw new uc(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Mm(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Lc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Lc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),i0=Ka.EMPTY;function o0(e){return e instanceof Ka||e&&"closed"in e&&Xr(e.remove)&&Xr(e.add)&&Xr(e.unsubscribe)}function Mm(e){Xr(e)?e():e.unsubscribe()}var kI={Promise:void 0},$I={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Sa([e,t],vc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function II(e){$I.setTimeout(function(){throw e})}function Fm(){}function ga(e){e()}var s0=(function(e){ja(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,o0(r)&&r.add(i)):i.destination=FI,i}return t.create=function(r,i,s){return new Mc(r,i,s)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ka),LI=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){ia(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ia(i)}else ia(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ia(r)}},e})(),Mc=(function(e){ja(t,e);function t(r,i,s){var a=e.call(this)||this,u;return Xr(r)||!r?u={next:r??void 0,error:i??void 0,complete:s??void 0}:u=r,a.destination=new LI(u),a}return t})(s0);function ia(e){II(e)}function MI(e){throw e}var FI={closed:!0,next:Fm,error:MI,complete:Fm},DI=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function NI(e){return e}function jI(e){return e.length===0?NI:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var Dm=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var s=this,a=WI(t)?t:new Mc(t,r,i);return ga(function(){var u=s,c=u.operator,f=u.source;a.add(c?c.call(a,f):f?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Nm(r),new r(function(s,a){var u=new Mc({next:function(c){try{t(c)}catch(f){a(f),u.unsubscribe()}},error:a,complete:s});i.subscribe(u)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[DI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return jI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Nm(t),new t(function(i,s){var a;r.subscribe(function(u){return a=u},function(u){return s(u)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function Nm(e){var t;return(t=e??kI.Promise)!==null&&t!==void 0?t:Promise}function zI(e){return e&&Xr(e.next)&&Xr(e.error)&&Xr(e.complete)}function WI(e){return e&&e instanceof s0||zI(e)&&o0(e)}var UI=n0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Mr=(function(e){ja(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new jm(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new UI},t.prototype.next=function(r){var i=this;ga(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=mc(i.currentObservers),c=u.next();!c.done;c=u.next()){var f=c.value;f.next(r)}}catch(m){s={error:m}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var i=this;ga(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var s=i.observers;s.length;)s.shift().error(r)}})},t.prototype.complete=function(){var r=this;ga(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,s=this,a=s.hasError,u=s.isStopped,c=s.observers;return a||u?i0:(this.currentObservers=null,c.push(r),new Ka(function(){i.currentObservers=null,Lc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,s=i.hasError,a=i.thrownError,u=i.isStopped;s?r.error(a):u&&r.complete()},t.prototype.asObservable=function(){var r=new Dm;return r.source=this,r},t.create=function(r,i){return new jm(r,i)},t})(Dm),jm=(function(e){ja(t,e);function t(r,i){var s=e.call(this)||this;return s.destination=r,s.source=i,s}return t.prototype.next=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,r)},t.prototype.error=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&s!==void 0?s:i0},t})(Mr),a0=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(a0||{}),u0=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(u0||{});const BI=new Mr,HI=new Mr,l0=new Mr;var c0=(e=>(e.SAVE_ALL="save-all",e))(c0||{});const qI=new Mr;var f0=(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))(f0||{});const ZI=new Mr;var d0=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(d0||{});const GI=new Mr,KI=new Mr;var Do=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Do||{});const ka=new Mr,VI=new Mr,kf=255;var $f=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${kf} characters (including extension)`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))($f||{});function p0(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>kf)throw new Error($f.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(r))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(r))throw new Error("Invalid name");return!0}function XI(e){if(!e)return null;if(typeof e=="string")try{p0(e)}catch(t){return t.message}}function YI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Ye.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Ye.isObject(i)||Array.isArray(i))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function JI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Va(e){const{PLACEHOLDER_PREFIX:t,counter:r}=JI();let i=r;const s=[],a="@!",u=y=>(s.push(y),`${t}${i++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,u);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(y,p,g)=>p+u(g)),c=c.replace(/:\d{2}:\d{2}/g,u);const f=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let m=c.replace(f,"");for(let y=0;y<s.length;y++){const g=`${t}${y}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),v=new RegExp(g,"g");m=m.replace(v,s[y])}return m}var If=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(If||{});const wn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Xe=(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))(Xe||{}),On=(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))(On||{}),Lf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Lf||{});const h0="roles.json",g0="qodlyApp.json",QI="model.4DModel",m0="HTTPHandlers.json",v0="Shared/i18n.json";function eL(e){const t=Mf(e);switch(t){case Xe.SETTINGS:return{filename:"Settings",type:t};case Xe.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case Xe.ROLES:return{filename:"Roles & Privileges",type:t};case Xe.LOCALIZATION:return{filename:"Localization",type:t};case Xe.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function Mf(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Xe.MODEL;case r==="WebForm":return Xe.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===wn.METHODS):return Xe.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===wn.CLASSES):return Xe.CLASS;case e===h0:return Xe.ROLES;case e===m0:return Xe.HTTP_HANDLERS;case e===g0:return Xe.SETTINGS;case e===v0:return Xe.LOCALIZATION;default:return Xe.TEXT}}function tL(e,t=!1){switch(e){case wn.REPORTS:case"report":return"QoDoc";case wn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case wn.CLASSES:case wn.METHODS:return t?"4qs":"4dm";default:return""}}function rL(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function nL(e,t,r){switch(t){case Xe.MOBILEFORM:return`${e}.MForm`;case Xe.WEBFORM:return`${e}.WebForm`;case Xe.REPORT:return`${e}.QoDoc`;case Xe.METHOD:case Xe.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class y0{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(s=>{t=s}),i=this.current.then(()=>t);return this.current=r,i}}function Ff(){const e=new y0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const b0=Ye.curry((e,t,r)=>e&&Ye.get(r,e)===t),iL=Ye.curry((e,t,r)=>Ye.get(r,e)!==t),oL=Ye.curry((e,t)=>Ye.get(t,"id")!==e),sL=Ye.curry((e,t)=>Ye.get(t,"id")===e),aL=Ye.curry((e,t)=>Ye.get(t,"path")===e);function uL(e="id",t,r){return r.findIndex(b0(e,t))!==-1}function w0(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function lL(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function cL(e=""){const t=e.trim().split(":")||[];let r="",i="";return t.length>1?(r=t[1],i=t[0]):r=t[0],{id:r,namespace:i,root:r.split(".").filter(Boolean)[0],original:i?`${i}:${r}`:r,parts:t}}function x0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function fL(e){return e.type==="object"}function S0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function E0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!x0(e)}function dL(e){return S0(e)||E0(e)}function pL(e){return e.applyTo==="dataStore"}function hL(e){return e.applyTo==="dataClass"}function gL(e){return e.applyTo==="entity"}function mL(e){return e.applyTo==="entityCollection"}function vL(e){return e.type==="entity"}function yL(e){return e.type==="entitysel"}function _0(e){return e.dataType==="array"}function O0(e){return e.dataType==="object"}function A0(e){return e.type==="scalar"}function bL(e){return _0(e)||O0(e)||A0(e)}const wL=e=>e!=null&&e.type==="entity",xL=e=>e.type==="entitysel",SL=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",EL=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",_L=e=>e.type==="scalar"&&e.dataType==="date",OL=(e,t)=>(e||"")===(t||"");function AL(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function TL(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const So="Qodly",T0="Location",R0="UserLanguage",P0="Title",$a={[So]:[{id:P0,dataType:"string",type:"scalar",namespace:So,initialValue:""},{id:T0,dataType:"object",type:"scalar",namespace:So,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:R0,dataType:"object",type:"scalar",namespace:So,initialValue:{selected:{},supported:[]},schema:{type:"object",properties:[{name:"selected",type:"object",initialValue:{},attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]},{name:"supported",type:"array",initialValue:[],attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]}]}}]};var No=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(No||{}),C0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(C0||{}),Df=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Df||{});const RL={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function PL(e){var a;let t={};try{const u=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(u)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:No.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Df.table}},...i}}function k0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[No.capable,No.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function CL(e,t,r=!1){const i=Ye.isString(t)?t:k0(t);if(!r&&$0(e))return e;const s=I0(e);return`//%attributes = ${i}\r
204
+ ${s}`}function $0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function I0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const kL=()=>Jc.uuid().replaceAll("-","").toUpperCase(),$L=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");function L0(e){var r;if(!e||typeof e!="object")return[];const t=((r=e.__STATUS)==null?void 0:r.errors)??e.__ERRORS??e.errorStack;return Array.isArray(t)?t:[]}function M0(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function IL(e,t){const r=L0(e);return M0(r,t)}function LL(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}const at="/rest/$designer",Go="/rest/$designer-ext";function ML(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(i=>{typeof r[i]=="string"&&(r[i]=new Date(r[i]))}),r}}class Fc extends Error{constructor(t,r,i){super(),this.url=t,this.response=r,this.data=i}log(){console.error("Error while sending the request",this)}}async function Ne(e,t){var s;ka.next({action:Do.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const u=await r.json();((s=u==null?void 0:u.__ERROR)==null?void 0:s.some(f=>f.errCode===1651))&&ka.next({action:Do.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Fc(e,r,u)}catch{a=new Fc(e,r)}throw a.log(),a}return await r.json()}function FL(e){return ka.next({action:Do.REQUEST_SENT}),e}var Er={},mt={},zm;function zn(){if(zm)return mt;zm=1;var e=mt.ValidationError=function(d,w,h,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(C,U){return C+c(U)},"instance")):S!==void 0&&(this.property=S),d&&(this.message=d),h){var O=h.$id||h.id;this.schema=O||h}w!==void 0&&(this.instance=w),this.name=E,this.argument=R,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=mt.ValidatorResult=function(d,w,h,S){this.instance=d,this.schema=w,this.options=h,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=h&&h.throwError,this.throwFirst=h&&h.throwFirst,this.throwAll=h&&h.throwAll,this.disableFormat=h&&h.disableFormat===!0};t.prototype.addError=function(d){var w;if(typeof d=="string")w=new e(d,this.instance,this.schema,this.path);else{if(!d)throw new Error("Missing error detail");if(!d.message)throw new Error("Missing error message");if(!d.name)throw new Error("Missing validator type");w=new e(d.message,this.instance,this.schema,this.path,d.name,d.argument)}if(this.errors.push(w),this.throwFirst)throw new i(this);if(this.throwError)throw w;return w},t.prototype.importErrors=function(d){typeof d=="string"||d&&d.validatorType?this.addError(d):d&&d.errors&&(this.errors=this.errors.concat(d.errors))};function r(x,d){return d+": "+x.toString()+`
205
+ `}t.prototype.toString=function(d){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),mt.ValidatorResultError=i;function i(x){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,i),this.instance=x.instance,this.schema=x.schema,this.options=x.options,this.errors=x.errors}i.prototype=new Error,i.prototype.constructor=i,i.prototype.name="Validation Error";var s=mt.SchemaError=function x(d,w){this.message=d,this.schema=w,Error.call(this,d),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,x)};s.prototype=Object.create(Error.prototype,{constructor:{value:s,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=mt.SchemaContext=function(d,w,h,S,E){this.schema=d,this.options=w,Array.isArray(h)?(this.path=h,this.propertyPath=h.reduce(function(R,O){return R+c(O)},"instance")):this.propertyPath=h,this.base=S,this.schemas=E};a.prototype.resolve=function(d){return v(this.base,d)},a.prototype.makeChild=function(d,w){var h=w===void 0?this.path:this.path.concat([w]),S=d.$id||d.id;let E=v(this.base,S||"");var R=new a(d,this.options,h,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=d),R};var u=mt.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(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var d=!0;try{new RegExp(x)}catch{d=!1}return d},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]+$/};u.regexp=u.regex,u.pattern=u.regex,u.ipv4=u["ip-address"],mt.isFormat=function(d,w,h){if(typeof d=="string"&&u[w]!==void 0){if(u[w]instanceof RegExp)return u[w].test(d);if(typeof u[w]=="function")return u[w](d)}else if(h&&h.customFormats&&typeof h.customFormats[w]=="function")return h.customFormats[w](d);return!0};var c=mt.makeSuffix=function(d){return d=d.toString(),!d.match(/[.\s\[\]]/)&&!d.match(/^[\d]/)?"."+d:d.match(/^\d+$/)?"["+d+"]":"["+JSON.stringify(d)+"]"};mt.deepCompareStrict=function x(d,w){if(typeof d!=typeof w)return!1;if(Array.isArray(d))return!Array.isArray(w)||d.length!==w.length?!1:d.every(function(E,R){return x(d[R],w[R])});if(typeof d=="object"){if(!d||!w)return d===w;var h=Object.keys(d),S=Object.keys(w);return h.length!==S.length?!1:h.every(function(E){return x(d[E],w[E])})}return d===w};function f(x,d,w,h){typeof w=="object"?d[h]=p(x[h],w):x.indexOf(w)===-1&&d.push(w)}function m(x,d,w){d[w]=x[w]}function y(x,d,w,h){typeof d[h]!="object"||!d[h]?w[h]=d[h]:x[h]?w[h]=p(x[h],d[h]):w[h]=d[h]}function p(x,d){var w=Array.isArray(d),h=w&&[]||{};return w?(x=x||[],h=h.concat(x),d.forEach(f.bind(null,x,h))):(x&&typeof x=="object"&&Object.keys(x).forEach(m.bind(null,x,h)),Object.keys(d).forEach(y.bind(null,x,d,h))),h}mt.deepMerge=p,mt.objectGetPath=function(d,w){for(var h=w.split("/").slice(1),S;typeof(S=h.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in d))return;d=d[E]}return d};function g(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}mt.encodePath=function(d){return d.map(g).join("")},mt.getDecimalPlaces=function(d){var w=0;if(isNaN(d))return w;typeof d!="number"&&(d=Number(d));var h=d.toString().split("e");if(h.length===2){if(h[1][0]!=="-")return w;w=Number(h[1].slice(1))}var S=h[0].split(".");return S.length===2&&(w+=S[1].length),w},mt.isSchema=function(d){return typeof d=="object"&&d||typeof d=="boolean"};var v=mt.resolveUrl=function(d,w){const h=new URL(w,new URL(d,"resolve://"));if(h.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=h;return S+E+R}return h.toString()};return mt}var lc,Wm;function DL(){if(Wm)return lc;Wm=1;var e=zn(),t=e.ValidatorResult,r=e.SchemaError,i={};i.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var s=i.validators={};s.type=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x),w=Array.isArray(g.type)?g.type:[g.type];if(!w.some(this.testType.bind(this,p,g,v,x))){var h=w.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});d.addError({name:"type",argument:h,message:"is not of a type(s) "+h})}return d};function a(y,p,g,v,x){var d=p.throwError,w=p.throwAll;p.throwError=!1,p.throwAll=!1;var h=this.validateSchema(y,x,p,g);return p.throwError=d,p.throwAll=w,!h.valid&&v instanceof Function&&v(h),h.valid}s.anyOf=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x),w=new t(p,g,v,x);if(!Array.isArray(g.anyOf))throw new r("anyOf must be an array");if(!g.anyOf.some(a.bind(this,p,v,x,function(S){w.importErrors(S)}))){var h=g.anyOf.map(function(S,E){var R=S.$id||S.id;return R?"<"+R+">":S.title&&JSON.stringify(S.title)||S.$ref&&"<"+S.$ref+">"||"[subschema "+E+"]"});v.nestedErrors&&d.importErrors(w),d.addError({name:"anyOf",argument:h,message:"is not any of "+h.join(",")})}return d},s.allOf=function(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.allOf))throw new r("allOf must be an array");var d=new t(p,g,v,x),w=this;return g.allOf.forEach(function(h,S){var E=w.validateSchema(p,h,v,x);if(!E.valid){var R=h.$id||h.id,O=R||h.title&&JSON.stringify(h.title)||h.$ref&&"<"+h.$ref+">"||"[subschema "+S+"]";d.addError({name:"allOf",argument:{id:O,length:E.errors.length,valid:E},message:"does not match allOf schema "+O+" with "+E.errors.length+" error[s]:"}),d.importErrors(E)}}),d},s.oneOf=function(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.oneOf))throw new r("oneOf must be an array");var d=new t(p,g,v,x),w=new t(p,g,v,x),h=g.oneOf.filter(a.bind(this,p,v,x,function(E){w.importErrors(E)})).length,S=g.oneOf.map(function(E,R){var O=E.$id||E.id;return O||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return h!==1&&(v.nestedErrors&&d.importErrors(w),d.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),d},s.if=function(p,g,v,x){if(p===void 0)return null;if(!e.isSchema(g.if))throw new Error('Expected "if" keyword to be a schema');var d=a.call(this,p,v,x,null,g.if),w=new t(p,g,v,x),h;if(d){if(g.then===void 0)return;if(!e.isSchema(g.then))throw new Error('Expected "then" keyword to be a schema');h=this.validateSchema(p,g.then,v,x.makeChild(g.then)),w.importErrors(h)}else{if(g.else===void 0)return;if(!e.isSchema(g.else))throw new Error('Expected "else" keyword to be a schema');h=this.validateSchema(p,g.else,v,x.makeChild(g.else)),w.importErrors(h)}return w};function u(y,p){if(Object.hasOwnProperty.call(y,p))return y[p];if(p in y){for(;y=Object.getPrototypeOf(y);)if(Object.propertyIsEnumerable.call(y,p))return y[p]}}s.propertyNames=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.propertyNames!==void 0?g.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var h in p)if(u(p,h)!==void 0){var S=this.validateSchema(h,w,v,x.makeChild(w));d.importErrors(S)}return d}},s.properties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.properties||{};for(var h in w){var S=w[h];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof v.preValidateProperty=="function"&&v.preValidateProperty(p,h,S,v,x);var E=u(p,h),R=this.validateSchema(E,S,v,x.makeChild(S,h));R.instance!==d.instance[h]&&(d.instance[h]=R.instance),d.importErrors(R)}}return d}};function c(y,p,g,v,x,d){if(this.types.object(y)&&!(p.properties&&p.properties[x]!==void 0))if(p.additionalProperties===!1)d.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=p.additionalProperties||{};typeof g.preValidateProperty=="function"&&g.preValidateProperty(y,x,w,g,v);var h=this.validateSchema(y[x],w,g,v.makeChild(w,x));h.instance!==d.instance[x]&&(d.instance[x]=h.instance),d.importErrors(h)}}s.patternProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.patternProperties||{};for(var h in p){var S=!0;for(var E in w){var R=w[E];if(R!==void 0){if(R===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var O=new RegExp(E,"u")}catch{O=new RegExp(E)}if(O.test(h)){S=!1,typeof v.preValidateProperty=="function"&&v.preValidateProperty(p,h,R,v,x);var C=this.validateSchema(p[h],R,v,x.makeChild(R,h));C.instance!==d.instance[h]&&(d.instance[h]=C.instance),d.importErrors(C)}}}S&&c.call(this,p,g,v,x,h,d)}return d}},s.additionalProperties=function(p,g,v,x){if(this.types.object(p)){if(g.patternProperties)return null;var d=new t(p,g,v,x);for(var w in p)c.call(this,p,g,v,x,w,d);return d}},s.minProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=Object.keys(p);return w.length>=g.minProperties||d.addError({name:"minProperties",argument:g.minProperties,message:"does not meet minimum property length of "+g.minProperties}),d}},s.maxProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=Object.keys(p);return w.length<=g.maxProperties||d.addError({name:"maxProperties",argument:g.maxProperties,message:"does not meet maximum property length of "+g.maxProperties}),d}},s.items=function(p,g,v,x){var d=this;if(this.types.array(p)&&g.items!==void 0){var w=new t(p,g,v,x);return p.every(function(h,S){if(Array.isArray(g.items))var E=g.items[S]===void 0?g.additionalItems:g.items[S];else var E=g.items;if(E===void 0)return!0;if(E===!1)return w.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=d.validateSchema(h,E,v,x.makeChild(E,S));return R.instance!==w.instance[S]&&(w.instance[S]=R.instance),w.importErrors(R),!0}),w}},s.contains=function(p,g,v,x){var d=this;if(this.types.array(p)&&g.contains!==void 0){if(!e.isSchema(g.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(p,g,v,x),h=p.some(function(S,E){var R=d.validateSchema(S,g.contains,v,x.makeChild(g.contains,E));return R.errors.length===0});return h===!1&&w.addError({name:"contains",argument:g.contains,message:"must contain an item matching given schema"}),w}},s.minimum=function(p,g,v,x){if(this.types.number(p)){var d=new t(p,g,v,x);return g.exclusiveMinimum&&g.exclusiveMinimum===!0?p>g.minimum||d.addError({name:"minimum",argument:g.minimum,message:"must be greater than "+g.minimum}):p>=g.minimum||d.addError({name:"minimum",argument:g.minimum,message:"must be greater than or equal to "+g.minimum}),d}},s.maximum=function(p,g,v,x){if(this.types.number(p)){var d=new t(p,g,v,x);return g.exclusiveMaximum&&g.exclusiveMaximum===!0?p<g.maximum||d.addError({name:"maximum",argument:g.maximum,message:"must be less than "+g.maximum}):p<=g.maximum||d.addError({name:"maximum",argument:g.maximum,message:"must be less than or equal to "+g.maximum}),d}},s.exclusiveMinimum=function(p,g,v,x){if(typeof g.exclusiveMinimum!="boolean"&&this.types.number(p)){var d=new t(p,g,v,x),w=p>g.exclusiveMinimum;return w||d.addError({name:"exclusiveMinimum",argument:g.exclusiveMinimum,message:"must be strictly greater than "+g.exclusiveMinimum}),d}},s.exclusiveMaximum=function(p,g,v,x){if(typeof g.exclusiveMaximum!="boolean"&&this.types.number(p)){var d=new t(p,g,v,x),w=p<g.exclusiveMaximum;return w||d.addError({name:"exclusiveMaximum",argument:g.exclusiveMaximum,message:"must be strictly less than "+g.exclusiveMaximum}),d}};var f=function(p,g,v,x,d,w){if(this.types.number(p)){var h=g[d];if(h==0)throw new r(d+" cannot be zero");var S=new t(p,g,v,x),E=e.getDecimalPlaces(p),R=e.getDecimalPlaces(h),O=Math.max(E,R),C=Math.pow(10,O);return Math.round(p*C)%Math.round(h*C)!==0&&S.addError({name:d,argument:h,message:w+JSON.stringify(h)}),S}};s.multipleOf=function(p,g,v,x){return f.call(this,p,g,v,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(p,g,v,x){return f.call(this,p,g,v,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(p,g,v,x){var d=new t(p,g,v,x);return p===void 0&&g.required===!0?d.addError({name:"required",message:"is required"}):this.types.object(p)&&Array.isArray(g.required)&&g.required.forEach(function(w){u(p,w)===void 0&&d.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),d},s.pattern=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=g.pattern;try{var h=new RegExp(w,"u")}catch{h=new RegExp(w)}return p.match(h)||d.addError({name:"pattern",argument:g.pattern,message:"does not match pattern "+JSON.stringify(g.pattern.toString())}),d}},s.format=function(p,g,v,x){if(p!==void 0){var d=new t(p,g,v,x);return!d.disableFormat&&!e.isFormat(p,g.format,this)&&d.addError({name:"format",argument:g.format,message:"does not conform to the "+JSON.stringify(g.format)+" format"}),d}},s.minLength=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=p.match(/[\uDC00-\uDFFF]/g),h=p.length-(w?w.length:0);return h>=g.minLength||d.addError({name:"minLength",argument:g.minLength,message:"does not meet minimum length of "+g.minLength}),d}},s.maxLength=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=p.match(/[\uDC00-\uDFFF]/g),h=p.length-(w?w.length:0);return h<=g.maxLength||d.addError({name:"maxLength",argument:g.maxLength,message:"does not meet maximum length of "+g.maxLength}),d}},s.minItems=function(p,g,v,x){if(this.types.array(p)){var d=new t(p,g,v,x);return p.length>=g.minItems||d.addError({name:"minItems",argument:g.minItems,message:"does not meet minimum length of "+g.minItems}),d}},s.maxItems=function(p,g,v,x){if(this.types.array(p)){var d=new t(p,g,v,x);return p.length<=g.maxItems||d.addError({name:"maxItems",argument:g.maxItems,message:"does not meet maximum length of "+g.maxItems}),d}};function m(y,p,g){var v,x=g.length;for(v=p+1,x;v<x;v++)if(e.deepCompareStrict(y,g[v]))return!1;return!0}return s.uniqueItems=function(p,g,v,x){if(g.uniqueItems===!0&&this.types.array(p)){var d=new t(p,g,v,x);return p.every(m)||d.addError({name:"uniqueItems",message:"contains duplicate item"}),d}},s.dependencies=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x);for(var w in g.dependencies)if(p[w]!==void 0){var h=g.dependencies[w],S=x.makeChild(h,w);if(typeof h=="string"&&(h=[h]),Array.isArray(h))h.forEach(function(R){p[R]===void 0&&d.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(p,h,v,S);d.instance!==E.instance&&(d.instance=E.instance),E&&E.errors.length&&(d.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),d.importErrors(E))}}return d}},s.enum=function(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.enum))throw new r("enum expects an array",g);var d=new t(p,g,v,x);return g.enum.some(e.deepCompareStrict.bind(null,p))||d.addError({name:"enum",argument:g.enum,message:"is not one of enum values: "+g.enum.map(String).join(",")}),d},s.const=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x);return e.deepCompareStrict(g.const,p)||d.addError({name:"const",argument:g.const,message:"does not exactly match expected constant: "+g.const}),d},s.not=s.disallow=function(p,g,v,x){var d=this;if(p===void 0)return null;var w=new t(p,g,v,x),h=g.not||g.disallow;return h?(Array.isArray(h)||(h=[h]),h.forEach(function(S){if(d.testType(p,g,v,x,S)){var E=S&&(S.$id||S.id),R=E||S;w.addError({name:"not",argument:R,message:"is of prohibited type "+R})}}),w):null},lc=i,lc}var oa={},Um;function Dc(){if(Um)return oa;Um=1;var e=zn();oa.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return oa.scan=function(i,s){function a(y,p){if(!p||typeof p!="object")return;if(p.$ref){let d=e.resolveUrl(y,p.$ref);m[d]=m[d]?m[d]+1:0;return}var g=p.$id||p.id;let v=e.resolveUrl(y,g);var x=g?v:y;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],p))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=p,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=p)}u(x+"/items",Array.isArray(p.items)?p.items:[p.items]),u(x+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),a(x+"/additionalItems",p.additionalItems),c(x+"/properties",p.properties),a(x+"/additionalProperties",p.additionalProperties),c(x+"/definitions",p.definitions),c(x+"/patternProperties",p.patternProperties),c(x+"/dependencies",p.dependencies),u(x+"/disallow",p.disallow),u(x+"/allOf",p.allOf),u(x+"/anyOf",p.anyOf),u(x+"/oneOf",p.oneOf),a(x+"/not",p.not)}function u(y,p){if(Array.isArray(p))for(var g=0;g<p.length;g++)a(y+"/"+g,p[g])}function c(y,p){if(!(!p||typeof p!="object"))for(var g in p)a(y+"/"+g,p[g])}var f={},m={};return a(i,s),new t(f,m)},oa}var cc,Bm;function NL(){if(Bm)return cc;Bm=1;var e=DL(),t=zn(),r=Dc().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,u=t.SchemaContext,c="/",f=function p(){this.customFormats=Object.create(p.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(y),this.attributes=Object.create(e.validators)};f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(g,v){var x=this;if(!g)return null;var d=r(v||c,g),w=v||g.$id||g.id;for(var h in d.id)this.schemas[h]=d.id[h];for(var h in d.ref)this.unresolvedRefs.push(h);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[w]},f.prototype.addSubSchemaArray=function(g,v){if(Array.isArray(v))for(var x=0;x<v.length;x++)this.addSubSchema(g,v[x])},f.prototype.addSubSchemaObject=function(g,v){if(!(!v||typeof v!="object"))for(var x in v)this.addSubSchema(g,v[x])},f.prototype.setSchemas=function(g){this.schemas=g},f.prototype.getSchema=function(g){return this.schemas[g]},f.prototype.validate=function(g,v,x,d){if(typeof v!="boolean"&&typeof v!="object"||v===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var w=v.$id||v.id;let h=t.resolveUrl(x.base,w||"");if(!d){d=new u(v,x,[],h,Object.create(this.schemas)),d.schemas[h]||(d.schemas[h]=v);var S=r(h,v);for(var E in S.id){var R=S.id[E];d.schemas[E]=R}}if(x.required&&g===void 0){var O=new i(g,v,x,d);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(g,v,x,d);if(O){if(x.throwAll&&O.errors.length)throw new s(O)}else throw new Error("Result undefined");return O};function m(p){var g=typeof p=="string"?p:p.$ref;return typeof g=="string"?g:!1}f.prototype.validateSchema=function(g,v,x,d){var w=new i(g,v,x,d);if(typeof v=="boolean")v===!0?v={}:v===!1&&(v={type:[]});else if(!v)throw new Error("schema is undefined");if(v.extends)if(Array.isArray(v.extends)){var h={schema:v,ctx:d};v.extends.forEach(this.schemaTraverser.bind(this,h)),v=h.schema,h.schema=null,h.ctx=null,h=null}else v=t.deepMerge(v,this.superResolve(v.extends,d));var S=m(v);if(S){var E=this.resolve(v,S,d),R=new u(E.subschema,x,d.path,E.switchSchema,d.schemas);return this.validateSchema(g,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var C in v)if(!e.ignoreProperties[C]&&O.indexOf(C)<0){var U=null,M=this.attributes[C];if(M)U=M.call(this,g,v,x,d);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+C,v);U&&w.importErrors(U)}if(typeof x.rewrite=="function"){var D=x.rewrite.call(this,g,v,x,d);w.instance=D}return w},f.prototype.schemaTraverser=function(g,v){g.schema=t.deepMerge(g.schema,this.superResolve(v,g.ctx))},f.prototype.superResolve=function(g,v){var x=m(g);return x?this.resolve(g,x,v).subschema:g},f.prototype.resolve=function(g,v,x){if(v=x.resolve(v),x.schemas[v])return{subschema:x.schemas[v],switchSchema:v};let w=new URL(v,"thismessage::/").hash;var h=w&&w.length&&v.substr(0,v.length-w.length);if(!h||!x.schemas[h])throw new a("no such schema <"+v+">",g);var S=t.objectGetPath(x.schemas[h],w.substr(1));if(S===void 0)throw new a("no such schema "+w+" located in <"+h+">",g);return{subschema:S,switchSchema:v}},f.prototype.testType=function(g,v,x,d,w){if(w!==void 0){if(w===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[w]=="function")return this.types[w].call(this,g);if(w&&typeof w=="object"){var h=this.validateSchema(g,w,x,d);return h===void 0||!(h&&h.errors.length)}return!0}};var y=f.prototype.types={};return y.string=function(g){return typeof g=="string"},y.number=function(g){return typeof g=="number"&&isFinite(g)},y.integer=function(g){return typeof g=="number"&&g%1===0},y.boolean=function(g){return typeof g=="boolean"},y.array=function(g){return Array.isArray(g)},y.null=function(g){return g===null},y.date=function(g){return g instanceof Date},y.any=function(g){return!0},y.object=function(g){return g&&typeof g=="object"&&!Array.isArray(g)&&!(g instanceof Date)},cc=f,cc}var Hm;function jL(){if(Hm)return Er;Hm=1;var e=Er.Validator=NL();return Er.ValidatorResult=zn().ValidatorResult,Er.ValidatorResultError=zn().ValidatorResultError,Er.ValidationError=zn().ValidationError,Er.SchemaError=zn().SchemaError,Er.SchemaScanResult=Dc().SchemaScanResult,Er.scan=Dc().scan,Er.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},Er}var zL=jL();const F0=(e,t,r)=>{const i=e instanceof RegExp?qm(e,r):e,s=t instanceof RegExp?qm(t,r):t,a=i!==null&&s!=null&&WL(i,s,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+i.length,a[1]),post:r.slice(a[1]+s.length)}},qm=(e,t)=>{const r=t.match(e);return r?r[0]:null},WL=(e,t,r)=>{let i,s,a,u,c,f=r.indexOf(e),m=r.indexOf(t,f+1),y=f;if(f>=0&&m>0){if(e===t)return[f,m];for(i=[],a=r.length;y>=0&&!c;){if(y===f)i.push(y),f=r.indexOf(e,y+1);else if(i.length===1){const p=i.pop();p!==void 0&&(c=[p,m])}else s=i.pop(),s!==void 0&&s<a&&(a=s,u=m),m=r.indexOf(t,y+1);y=f<m&&f>=0?f:m}i.length&&u!==void 0&&(c=[a,u])}return c},D0="\0SLASH"+Math.random()+"\0",N0="\0OPEN"+Math.random()+"\0",Nf="\0CLOSE"+Math.random()+"\0",j0="\0COMMA"+Math.random()+"\0",z0="\0PERIOD"+Math.random()+"\0",UL=new RegExp(D0,"g"),BL=new RegExp(N0,"g"),HL=new RegExp(Nf,"g"),qL=new RegExp(j0,"g"),ZL=new RegExp(z0,"g"),GL=/\\\\/g,KL=/\\{/g,VL=/\\}/g,XL=/\\,/g,YL=/\\\./g,JL=1e5;function fc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function QL(e){return e.replace(GL,D0).replace(KL,N0).replace(VL,Nf).replace(XL,j0).replace(YL,z0)}function e2(e){return e.replace(UL,"\\").replace(BL,"{").replace(HL,"}").replace(qL,",").replace(ZL,".")}function W0(e){if(!e)return[""];const t=[],r=F0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,u=i.split(",");u[u.length-1]+="{"+s+"}";const c=W0(a);return a.length&&(u[u.length-1]+=c.shift(),u.push.apply(u,c)),t.push.apply(t,u),t}function t2(e,t={}){if(!e)return[];const{max:r=JL}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Eo(QL(e),r,!0).map(e2)}function r2(e){return"{"+e+"}"}function n2(e){return/^-?0\d/.test(e)}function i2(e,t){return e<=t}function o2(e,t){return e>=t}function Eo(e,t,r){const i=[],s=F0("{","}",e);if(!s)return[e];const a=s.pre,u=s.post.length?Eo(s.post,t,!1):[""];if(/\$$/.test(s.pre))for(let c=0;c<u.length&&c<t;c++){const f=a+"{"+s.body+"}"+u[c];i.push(f)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),m=c||f,y=s.body.indexOf(",")>=0;if(!m&&!y)return s.post.match(/,(?!,).*\}/)?(e=s.pre+"{"+s.body+Nf+s.post,Eo(e,t,!0)):[e];let p;if(m)p=s.body.split(/\.\./);else if(p=W0(s.body),p.length===1&&p[0]!==void 0&&(p=Eo(p[0],t,!1).map(r2),p.length===1))return u.map(v=>s.pre+p[0]+v);let g;if(m&&p[0]!==void 0&&p[1]!==void 0){const v=fc(p[0]),x=fc(p[1]),d=Math.max(p[0].length,p[1].length);let w=p.length===3&&p[2]!==void 0?Math.max(Math.abs(fc(p[2])),1):1,h=i2;x<v&&(w*=-1,h=o2);const E=p.some(n2);g=[];for(let R=v;h(R,x);R+=w){let O;if(f)O=String.fromCharCode(R),O==="\\"&&(O="");else if(O=String(R),E){const C=d-O.length;if(C>0){const U=new Array(C+1).join("0");R<0?O="-"+U+O.slice(1):O=U+O}}g.push(O)}}else{g=[];for(let v=0;v<p.length;v++)g.push.apply(g,Eo(p[v],t,!1))}for(let v=0;v<g.length;v++)for(let x=0;x<u.length&&i.length<t;x++){const d=a+g[v]+u[x];(!r||m||d)&&i.push(d)}}return i}const s2=1024*64,Ia=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>s2)throw new TypeError("pattern is too long")},a2={"[: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]},vo=e=>e.replace(/[[\]\\-]/g,"\\$&"),u2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zm=e=>e.join(""),l2=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],s=[];let a=r+1,u=!1,c=!1,f=!1,m=!1,y=r,p="";e:for(;a<e.length;){const d=e.charAt(a);if((d==="!"||d==="^")&&a===r+1){m=!0,a++;continue}if(d==="]"&&u&&!f){y=a+1;break}if(u=!0,d==="\\"&&!f){f=!0,a++;continue}if(d==="["&&!f){for(const[w,[h,S,E]]of Object.entries(a2))if(e.startsWith(w,a)){if(p)return["$.",!1,e.length-r,!0];a+=w.length,E?s.push(h):i.push(h),c=c||S;continue e}}if(f=!1,p){d>p?i.push(vo(p)+"-"+vo(d)):d===p&&i.push(vo(d)),p="",a++;continue}if(e.startsWith("-]",a+1)){i.push(vo(d+"-")),a+=2;continue}if(e.startsWith("-",a+1)){p=d,a+=2;continue}i.push(vo(d)),a++}if(y<a)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,e.length-r,!0];if(s.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!m){const d=i[0].length===2?i[0].slice(-1):i[0];return[u2(d),!1,y-r,!1]}const g="["+(m?"^":"")+Zm(i)+"]",v="["+(m?"":"^")+Zm(s)+"]";return[i.length&&s.length?"("+g+"|"+v+")":i.length?g:v,c,y-r,!0]},_o=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var Lt;const c2=new Set(["!","?","+","*","@"]),Nc=e=>c2.has(e),Gm=e=>Nc(e.type),f2=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),d2=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),p2=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Km=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),h2="(?!(?:^|/)\\.\\.?(?:$|/))",sa="(?!\\.)",g2=new Set(["[","."]),m2=new Set(["..","."]),v2=new Set("().*{}+?[]^$\\!"),y2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jf="[^/]",Vm=jf+"*?",Xm=jf+"+?";let b2=0;var st,dt,Vr,we,Ge,vn,Wn,yn,Ar,Tr,xi,Ie,U0,xn,ma,B0,jc,va,H0,zc,q0,Z0,G0,ya,Wc,K0;class Xa{constructor(t,r,i={}){gt(this,Ie);ye(this,"type");gt(this,st);gt(this,dt);gt(this,Vr,!1);gt(this,we,[]);gt(this,Ge);gt(this,vn);gt(this,Wn);gt(this,yn,!1);gt(this,Ar);gt(this,Tr);gt(this,xi,!1);ye(this,"id",++b2);this.type=t,t&&je(this,dt,!0),je(this,Ge,r),je(this,st,Y(this,Ge)?Y(Y(this,Ge),st):this),je(this,Ar,Y(this,st)===this?i:Y(Y(this,st),Ar)),je(this,Wn,Y(this,st)===this?[]:Y(Y(this,st),Wn)),t==="!"&&!Y(Y(this,st),yn)&&Y(this,Wn).push(this),je(this,vn,Y(this,Ge)?Y(Y(this,Ge),we).length:0)}get depth(){var t;return(((t=Y(this,Ge))==null?void 0:t.depth)??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){var t;return{"@@type":"AST",id:this.id,type:this.type,root:Y(this,st).id,parent:(t=Y(this,Ge))==null?void 0:t.id,depth:this.depth,partsLength:Y(this,we).length,parts:Y(this,we)}}get hasMagic(){if(Y(this,dt)!==void 0)return Y(this,dt);for(const t of Y(this,we))if(typeof t!="string"&&(t.type||t.hasMagic))return je(this,dt,!0);return Y(this,dt)}toString(){return Y(this,Tr)!==void 0?Y(this,Tr):this.type?je(this,Tr,this.type+"("+Y(this,we).map(t=>String(t)).join("|")+")"):je(this,Tr,Y(this,we).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Lt&&Y(r,Ge)===this))throw new Error("invalid part: "+r);Y(this,we).push(r)}}toJSON(){var r;const t=this.type===null?Y(this,we).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...Y(this,we).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Y(this,st)||Y(Y(this,st),yn)&&((r=Y(this,Ge))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(Y(this,st)===this)return!0;if(!((r=Y(this,Ge))!=null&&r.isStart()))return!1;if(Y(this,vn)===0)return!0;const t=Y(this,Ge);for(let i=0;i<Y(this,vn);i++){const s=Y(t,we)[i];if(!(s instanceof Lt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(Y(this,st)===this||((r=Y(this,Ge))==null?void 0:r.type)==="!")return!0;if(!((i=Y(this,Ge))!=null&&i.isEnd()))return!1;if(!this.type)return(s=Y(this,Ge))==null?void 0:s.isEnd();const t=Y(this,Ge)?Y(Y(this,Ge),we).length:0;return Y(this,vn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Lt(this.type,t);for(const i of Y(this,we))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Lt(null,void 0,r);return de(s=Lt,xn,ma).call(s,t,i,0,r,0),i}toMMPattern(){if(this!==Y(this,st))return Y(this,st).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||Y(this,dt)||Y(this,Ar).nocase&&!Y(this,Ar).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(Y(this,Ar).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return Y(this,Ar)}toRegExpSource(t){var f;const r=t??!!Y(this,Ar).dot;if(Y(this,st)===this&&(de(this,Ie,ya).call(this),de(this,Ie,U0).call(this)),!Gm(this)){const m=this.isStart()&&this.isEnd()&&!Y(this,we).some(x=>typeof x!="string"),y=Y(this,we).map(x=>{var E;const[d,w,h,S]=typeof x=="string"?de(E=Lt,xn,K0).call(E,x,Y(this,dt),m):x.toRegExpSource(t);return je(this,dt,Y(this,dt)||h),je(this,Vr,Y(this,Vr)||S),d}).join("");let p="";if(this.isStart()&&typeof Y(this,we)[0]=="string"&&!(Y(this,we).length===1&&m2.has(Y(this,we)[0]))){const d=g2,w=r&&d.has(y.charAt(0))||y.startsWith("\\.")&&d.has(y.charAt(2))||y.startsWith("\\.\\.")&&d.has(y.charAt(4)),h=!r&&!t&&d.has(y.charAt(0));p=w?h2:h?sa:""}let g="";return this.isEnd()&&Y(Y(this,st),yn)&&((f=Y(this,Ge))==null?void 0:f.type)==="!"&&(g="(?:$|\\/)"),[p+y+g,_o(y),je(this,dt,!!Y(this,dt)),Y(this,Vr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=de(this,Ie,Wc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const m=this.toString(),y=this;return je(y,we,[m]),y.type=null,je(y,dt,void 0),[m,_o(this.toString()),!1,!1]}let u=!i||t||r||!sa?"":de(this,Ie,Wc).call(this,!0);u===a&&(u=""),u&&(a=`(?:${a})(?:${u})*?`);let c="";if(this.type==="!"&&Y(this,xi))c=(this.isStart()&&!r?sa:"")+Xm;else{const m=this.type==="!"?"))"+(this.isStart()&&!r&&!t?sa:"")+Vm+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&u?")":this.type==="*"&&u?")?":`)${this.type}`;c=s+a+m}return[c,_o(a),je(this,dt,!!Y(this,dt)),Y(this,Vr)]}}st=new WeakMap,dt=new WeakMap,Vr=new WeakMap,we=new WeakMap,Ge=new WeakMap,vn=new WeakMap,Wn=new WeakMap,yn=new WeakMap,Ar=new WeakMap,Tr=new WeakMap,xi=new WeakMap,Ie=new WeakSet,U0=function(){if(this!==Y(this,st))throw new Error("should only call on root");if(Y(this,yn))return this;this.toString(),je(this,yn,!0);let t;for(;t=Y(this,Wn).pop();){if(t.type!=="!")continue;let r=t,i=Y(r,Ge);for(;i;){for(let s=Y(r,vn)+1;!i.type&&s<Y(i,we).length;s++)for(const a of Y(t,we)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(Y(i,we)[s])}r=i,i=Y(r,Ge)}}return this},xn=new WeakSet,ma=function(t,r,i,s,a){var d,w,h,S;const u=s.maxExtglobRecursion??2;let c=!1,f=!1,m=-1,y=!1;if(r.type===null){let E=i,R="";for(;E<t.length;){const O=t.charAt(E++);if(c||O==="\\"){c=!c,R+=O;continue}if(f){E===m+1?(O==="^"||O==="!")&&(y=!0):O==="]"&&!(E===m+2&&y)&&(f=!1),R+=O;continue}else if(O==="["){f=!0,m=E,y=!1,R+=O;continue}if(!s.noext&&Nc(O)&&t.charAt(E)==="("&&a<=u){r.push(R),R="";const U=new Lt(O,r);E=de(d=Lt,xn,ma).call(d,t,U,E,s,a+1),r.push(U);continue}R+=O}return r.push(R),E}let p=i+1,g=new Lt(null,r);const v=[];let x="";for(;p<t.length;){const E=t.charAt(p++);if(c||E==="\\"){c=!c,x+=E;continue}if(f){p===m+1?(E==="^"||E==="!")&&(y=!0):E==="]"&&!(p===m+2&&y)&&(f=!1),x+=E;continue}else if(E==="["){f=!0,m=p,y=!1,x+=E;continue}if(!s.noext&&Nc(E)&&t.charAt(p)==="("&&(a<=u||r&&de(w=r,Ie,va).call(w,E))){const O=r&&de(h=r,Ie,va).call(h,E)?0:1;g.push(x),x="";const C=new Lt(E,g);g.push(C),p=de(S=Lt,xn,ma).call(S,t,C,p,s,a+O);continue}if(E==="|"){g.push(x),x="",v.push(g),g=new Lt(null,r);continue}if(E===")")return x===""&&Y(r,we).length===0&&je(r,xi,!0),g.push(x),x="",r.push(...v,g),p;x+=E}return r.type=null,je(r,dt,void 0),je(r,we,[t.substring(i-1)]),p},B0=function(t){return de(this,Ie,jc).call(this,t,d2)},jc=function(t,r=f2){if(!t||typeof t!="object"||t.type!==null||Y(t,we).length!==1||this.type===null)return!1;const i=Y(t,we)[0];return!i||typeof i!="object"||i.type===null?!1:de(this,Ie,va).call(this,i.type,r)},va=function(t,r=p2){var i;return!!((i=r.get(this.type))!=null&&i.includes(t))},H0=function(t,r){const i=Y(t,we)[0],s=new Lt(null,i,this.options);Y(s,we).push(""),i.push(s),de(this,Ie,zc).call(this,t,r)},zc=function(t,r){const i=Y(t,we)[0];Y(this,we).splice(r,1,...Y(i,we));for(const s of Y(i,we))typeof s=="object"&&je(s,Ge,this);je(this,Tr,void 0)},q0=function(t){const r=Km.get(this.type);return!!(r!=null&&r.has(t))},Z0=function(t){if(!t||typeof t!="object"||t.type!==null||Y(t,we).length!==1||this.type===null||Y(this,we).length!==1)return!1;const r=Y(t,we)[0];return!r||typeof r!="object"||r.type===null?!1:de(this,Ie,q0).call(this,r.type)},G0=function(t){const r=Km.get(this.type),i=Y(t,we)[0],s=r==null?void 0:r.get(i.type);if(!s)return!1;je(this,we,Y(i,we));for(const a of Y(this,we))typeof a=="object"&&je(a,Ge,this);this.type=s,je(this,Tr,void 0),je(this,xi,!1)},ya=function(){var t,r;if(Gm(this)){let i=0,s=!1;do{s=!0;for(let a=0;a<Y(this,we).length;a++){const u=Y(this,we)[a];typeof u=="object"&&(de(r=u,Ie,ya).call(r),de(this,Ie,jc).call(this,u)?(s=!1,de(this,Ie,zc).call(this,u,a)):de(this,Ie,B0).call(this,u)?(s=!1,de(this,Ie,H0).call(this,u,a)):de(this,Ie,Z0).call(this,u)&&(s=!1,de(this,Ie,G0).call(this,u)))}}while(!s&&++i<10)}else for(const i of Y(this,we))typeof i=="object"&&de(t=i,Ie,ya).call(t);je(this,Tr,void 0)},Wc=function(t){return Y(this,we).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,u]=r.toRegExpSource(t);return je(this,Vr,Y(this,Vr)||u),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},K0=function(t,r,i=!1){let s=!1,a="",u=!1,c=!1;for(let f=0;f<t.length;f++){const m=t.charAt(f);if(s){s=!1,a+=(v2.has(m)?"\\":"")+m;continue}if(m==="*"){if(c)continue;c=!0,a+=i&&/^[*]+$/.test(t)?Xm:Vm,r=!0;continue}else c=!1;if(m==="\\"){f===t.length-1?a+="\\\\":s=!0;continue}if(m==="["){const[y,p,g,v]=l2(t,f);if(g){a+=y,u=u||p,f+=g-1,r=r||v;continue}}if(m==="?"){a+=jf,r=!0;continue}a+=y2(m)}return[a,_o(t),!!r,u]},gt(Xa,xn);Lt=Xa;const w2=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),_t=(e,t,r={})=>(Ia(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ya(t,r).match(e)),x2=/^\*+([^+@!?*[(]*)$/,S2=e=>t=>!t.startsWith(".")&&t.endsWith(e),E2=e=>t=>t.endsWith(e),_2=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),O2=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),A2=/^\*+\.\*+$/,T2=e=>!e.startsWith(".")&&e.includes("."),R2=e=>e!=="."&&e!==".."&&e.includes("."),P2=/^\.\*+$/,C2=e=>e!=="."&&e!==".."&&e.startsWith("."),k2=/^\*+$/,$2=e=>e.length!==0&&!e.startsWith("."),I2=e=>e.length!==0&&e!=="."&&e!=="..",L2=/^\?+([^+@!?*[(]*)?$/,M2=([e,t=""])=>{const r=V0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},F2=([e,t=""])=>{const r=X0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},D2=([e,t=""])=>{const r=X0([e]);return t?i=>r(i)&&i.endsWith(t):r},N2=([e,t=""])=>{const r=V0([e]);return t?i=>r(i)&&i.endsWith(t):r},V0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},X0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Y0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ym={win32:{sep:"\\"},posix:{sep:"/"}},j2=Y0==="win32"?Ym.win32.sep:Ym.posix.sep;_t.sep=j2;const St=Symbol("globstar **");_t.GLOBSTAR=St;const z2="[^/]",W2=z2+"*?",U2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",B2="(?:(?!(?:\\/|^)\\.).)*?",H2=(e,t={})=>r=>_t(r,e,t);_t.filter=H2;const nr=(e,t={})=>Object.assign({},e,t),q2=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return _t;const t=_t;return Object.assign((i,s,a={})=>t(i,s,nr(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,nr(e,a))}static defaults(s){return t.defaults(nr(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,u={}){super(s,a,nr(e,u))}static fromGlob(s,a={}){return t.AST.fromGlob(s,nr(e,a))}},unescape:(i,s={})=>t.unescape(i,nr(e,s)),escape:(i,s={})=>t.escape(i,nr(e,s)),filter:(i,s={})=>t.filter(i,nr(e,s)),defaults:i=>t.defaults(nr(e,i)),makeRe:(i,s={})=>t.makeRe(i,nr(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,nr(e,s)),match:(i,s,a={})=>t.match(i,s,nr(e,a)),sep:t.sep,GLOBSTAR:St})};_t.defaults=q2;const J0=(e,t={})=>(Ia(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:t2(e,{max:t.braceExpandMax}));_t.braceExpand=J0;const Z2=(e,t={})=>new Ya(e,t).makeRe();_t.makeRe=Z2;const G2=(e,t,r={})=>{const i=new Ya(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};_t.match=G2;const Jm=/[?*]|[+@!]\(.*?\)|\[|\]/,K2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var Zt,Q0,Uc,mi;class Ya{constructor(t,r={}){gt(this,Zt);ye(this,"options");ye(this,"set");ye(this,"pattern");ye(this,"windowsPathsNoEscape");ye(this,"nonegate");ye(this,"negate");ye(this,"comment");ye(this,"empty");ye(this,"preserveMultipleSlashes");ye(this,"partial");ye(this,"globSet");ye(this,"globParts");ye(this,"nocase");ye(this,"isWindows");ye(this,"platform");ye(this,"windowsNoMagicRoot");ye(this,"maxGlobstarRecursion");ye(this,"regexp");Ia(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||Y0,this.isWindows=this.platform==="win32";const i="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.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 t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((a,u,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=a[0]===""&&a[1]===""&&(a[2]==="?"||!Jm.test(a[2]))&&!Jm.test(a[3]),m=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(y=>this.parse(y))];if(m)return[a[0],...a.slice(1).map(y=>this.parse(y))]}return a.map(f=>this.parse(f))});if(this.debug(this.pattern,s),this.set=s.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const u=this.set[a];u[0]===""&&u[1]===""&&this.globParts[a][2]==="?"&&typeof u[3]=="string"&&/^[a-z]:$/i.test(u[3])&&(u[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(const i of t)for(let s=0;s<i.length;s++)i[s]==="**"&&(i[s]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let s=i;for(;r[s+1]==="**";)s++;s!==i&&r.splice(i,s-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,s)=>{const a=i[i.length-1];return s==="**"&&a==="**"?i:s===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(i.pop(),i):(i.push(s),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){const a=t[s];s===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const s=t[i-1];s&&s!=="."&&s!==".."&&s!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(s))&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let s=-1;for(;(s=i.indexOf("**",s+1))!==-1;){let u=s;for(;i[u+1]==="**";)u++;u>s&&i.splice(s+1,u-s);let c=i[s+1];const f=i[s+2],m=i[s+3];if(c!==".."||!f||f==="."||f===".."||!m||m==="."||m==="..")continue;r=!0,i.splice(s,1);const y=i.slice(0);y[s]="**",t.push(y),s--}if(!this.preserveMultipleSlashes){for(let u=1;u<i.length-1;u++){const c=i[u];u===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(u,1),u--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let a=0;for(;(a=i.indexOf("..",a+1))!==-1;){const u=i[a-1];if(u&&u!=="."&&u!==".."&&u!=="**"){r=!0;const f=a===1&&i[a+1]==="**"?["."]:[];i.splice(a-1,2,...f),i.length===0&&i.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const s=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(s){t[r]=[],t[i]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let s=0,a=0,u=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])u.push(c==="b"?r[a]:t[s]),s++,a++;else if(i&&t[s]==="**"&&r[a]===t[s+1])u.push(t[s]),s++;else if(i&&r[a]==="**"&&t[s]===r[a+1])u.push(r[a]),a++;else if(t[s]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",u.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="a")return!1;c="b",u.push(r[a]),s++,a++}else return!1;return t.length===r.length&&u}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){let s=0,a=0;if(this.isWindows){const c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),m=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),y=!m&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=f?3:c?0:void 0,g=y?3:m?0:void 0;if(typeof p=="number"&&typeof g=="number"){const[v,x]=[t[p],r[g]];v.toLowerCase()===x.toLowerCase()&&(r[g]=v,a=g,s=p)}}const{optimizationLevel:u=1}=this.options;return u>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(St)?de(this,Zt,Q0).call(this,t,r,i,s,a):de(this,Zt,mi).call(this,t,r,i,s,a)}braceExpand(){return J0(this.pattern,this.options)}parse(t){Ia(t);const r=this.options;if(t==="**")return St;if(t==="")return"";let i,s=null;(i=t.match(k2))?s=r.dot?I2:$2:(i=t.match(x2))?s=(r.nocase?r.dot?O2:_2:r.dot?E2:S2)(i[1]):(i=t.match(L2))?s=(r.nocase?r.dot?F2:M2:r.dot?D2:N2)(i):(i=t.match(A2))?s=r.dot?R2:T2:(i=t.match(P2))&&(s=C2);const a=Xa.fromGlob(t,this.options).toMMPattern();return s&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:s}),a}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?W2:r.dot?U2:B2,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const m=f.map(p=>{if(p instanceof RegExp)for(const g of p.flags.split(""))s.add(g);return typeof p=="string"?K2(p):p===St?St:p._src});m.forEach((p,g)=>{const v=m[g+1],x=m[g-1];p!==St||x===St||(x===void 0?v!==void 0&&v!==St?m[g+1]="(?:\\/|"+i+"\\/)?"+v:m[g]=i:v===void 0?m[g-1]=x+"(?:\\/|\\/"+i+")?":v!==St&&(m[g-1]=x+"(?:\\/|\\/"+i+"\\/)"+v,m[g+1]=St))});const y=m.filter(p=>p!==St);if(this.partial&&y.length>=1){const p=[];for(let g=1;g<=y.length;g++)p.push(y.slice(0,g).join("/"));return"(?:"+p.join("|")+")"}return y.join("/")}).join("|");const[u,c]=t.length>1?["(?:",")"]:["",""];a="^"+u+a+c+"$",this.partial&&(a="^(?:\\/|"+u+a.slice(1,-1)+c+")$"),this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const a=this.set;this.debug(this.pattern,"set",a);let u=s[s.length-1];if(!u)for(let c=s.length-2;!u&&c>=0;c--)u=s[c];for(const c of a){let f=s;if(i.matchBase&&c.length===1&&(f=[u]),this.matchOne(f,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return _t.defaults(t).Minimatch}}Zt=new WeakSet,Q0=function(t,r,i,s,a){const u=r.indexOf(St,a),c=r.lastIndexOf(St),[f,m,y]=i?[r.slice(a,u),r.slice(u+1),[]]:[r.slice(a,u),r.slice(u+1,c),r.slice(c+1)];if(f.length){const S=t.slice(s,s+f.length);if(!de(this,Zt,mi).call(this,S,f,i,0,0))return!1;s+=f.length,a+=f.length}let p=0;if(y.length){if(y.length+s>t.length)return!1;let S=t.length-y.length;if(de(this,Zt,mi).call(this,t,y,i,S,0))p=y.length;else{if(t[t.length-1]!==""||s+y.length===t.length||(S--,!de(this,Zt,mi).call(this,t,y,i,S,0)))return!1;p=y.length+1}}if(!m.length){let S=!!p;for(let E=s;E<t.length-p;E++){const R=String(t[E]);if(S=!0,R==="."||R===".."||!this.options.dot&&R.startsWith("."))return!1}return i||S}const g=[[[],0]];let v=g[0],x=0;const d=[0];for(const S of m)S===St?(d.push(x),v=[[],0],g.push(v)):(v[0].push(S),x++);let w=g.length-1;const h=t.length-p;for(const S of g)S[1]=h-(d[w--]+S[0].length);return!!de(this,Zt,Uc).call(this,t,g,s,0,i,0,!!p)},Uc=function(t,r,i,s,a,u,c){const f=r[s];if(!f){for(let p=i;p<t.length;p++){c=!0;const g=t[p];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1}return c}const[m,y]=f;for(;i<=y;){if(de(this,Zt,mi).call(this,t.slice(0,i+m.length),m,a,i,0)&&u<this.maxGlobstarRecursion){const v=de(this,Zt,Uc).call(this,t,r,i+m.length,s+1,a,u+1,c);if(v!==!1)return v}const g=t[i];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1;i++}return a||null},mi=function(t,r,i,s,a){let u,c,f,m;for(u=s,c=a,m=t.length,f=r.length;u<m&&c<f;u++,c++){this.debug("matchOne loop");let y=r[c],p=t[u];if(this.debug(r,y,p),y===!1||y===St)return!1;let g;if(typeof y=="string"?(g=p===y,this.debug("string match",y,p,g)):(g=y.test(p),this.debug("pattern match",y,p,g)),!g)return!1}if(u===m&&c===f)return!0;if(u===m)return i;if(c===f)return u===m-1&&t[u]==="";throw new Error("wtf?")};_t.AST=Xa;_t.Minimatch=Ya;_t.escape=w2;_t.unescape=_o;const jo="/$shared",V2={"**/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"}},"**/i18n.json":{parser:"json",content:{keys:{},userLang:{primary:"",supported:[]}},schema:{type:"object",properties:{keys:{type:"object"},userLang:{type:"object",properties:{primary:{type:"string"},supported:{type:"array",items:{type:"string"}}},required:["primary","supported"]}},required:["keys","userLang"]}},"**/*.json":{parser:"json",content:{}}};function eb(e){const t=Object.entries(V2).find(([r])=>_t(e,r));return t==null?void 0:t[1]}function Ja(e){var i;const t=(i=eb(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${jo}/`,"Shared/");zf({name:r,content:t,asText:typeof t=="string"})}async function X2(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Ne(`${jo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){tb(r)&&Ja(`${jo}/${t}`)}}function Ko({path:e,createIfNotExists:t=!1}){const r=`${jo}/${e}`;return Ne(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=eb(e);let a=i;if(!s)return a;if(typeof a=="string")try{switch(s.parser){case"json":a=JSON.parse(a);break;default:break}}catch{throw new Error("Cannot parse")}if(s.schema&&!new zL.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(tb(i)&&t){const s=Y2(i,e);l0.next({message:s,kind:"warning"}),Ja(r)}throw i})}function tb(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.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 Y2(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function J2(e){return Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function Q2(e){return Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const rb=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Lf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function eM(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:On.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const u=`http://${e}:${s.webServerHTTPPort}`,c=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?i?c:u:s.webServerHTTPPort?u:c})();return{projectOpened:s.webServerHTTPSPort>0||s.webServerHTTPPort>0,remoteDebuggerMode:s.remoteDebuggerMode,baseUrl:a,qodly:typeof s.qodly>"u"?!0:s.qodly,urls:{renderer:s.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:s.isRESTActive}}catch(s){return console.error(s),rb()}}async function nb(e){return await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function tM(...e){return(await Promise.all(e.map(i=>nb({root:i,verb:On.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:u})=>({name:s,type:u,date:a,path:`${u}/${s}`}))).flat()}function rM(e,t={}){const{sanitize:r=!0}=t;return Ne(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const s=new Map;return{...i,components:Ye.entries(i.components).map(([a,u])=>{const c=a,{resolvedName:f}=u.type;if(f==="WebformLoader"){const m=Jc.generate();s.set(a,m),a=m}return[a,u,c]}).reduce((a,[u,c,f])=>{var m;return c.nodes&&(c.nodes=c.nodes.map(y=>s.get(y)||y)),c.linkedNodes&&(c.linkedNodes=Ye.entries(c.linkedNodes).reduce((y,[p,g])=>({...y,[p]:s.get(g)||g}),{})),(m=c.props)!=null&&m.events&&(c.props.events=c.props.events.map(y=>(y.type==="navigation"&&y.loader&&(y.loader=s.get(y.loader)||y.loader),y))),{...a,[u]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function nM(e){return Ne(at,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Xe.METHOD,Xe.CLASS].includes(t.type)?Va(t.content):t.content}))}function iM(e){return e.type==="folder"?Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function oM(e){return e.type==="folder"?(await Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function sM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function aM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function uM(e){return(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function lM(...e){return await Ne(at,{method:"POST",body:JSON.stringify({verb:On.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function cM(e){const t=await Ne("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function fM(){return await Ne("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function dM(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,i=await(await fetch(t)).text(),{supported:s}=JSON.parse(i);return s}catch{return[]}}async function pM({name:e,path:t="",root:r="root",asText:i=!1}){return Ne(at,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function hM(e={}){try{return{...await Ko({path:"shared_datasources.json",...e}),...$a}}catch{return{...$a}}}async function gM(e={}){try{return await Ko({path:"shared_app_events.json",...e})}catch{return[]}}async function mM(e={}){try{return await Ko({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function vM(e={}){try{return await Ko({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function yM(){try{return await Ne("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function bM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const wM=Ff(),xM=async e=>{const t={verb:On.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ye.omit(e,Ye.keys($a))};return wM(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},SM=Ff(),EM=async e=>{const t={verb:On.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return SM(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},zf=async e=>{const t=await Ne(at,{method:"POST",body:JSON.stringify({...e,verb:On.SET_FILE_CONTENT,root:If.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Mf(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},_M=async e=>await zf({name:"crafted_components.json",path:wn.WEBFORMS,content:e});function OM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function AM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function TM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function RM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?Va(t.content):t.content}).catch(t=>{var r,i;throw((i=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:i.errCode)===1839&&Ja(e.path),t})}function PM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function CM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function kM(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function $M(e){const t=CM(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),u=s.split(":")[1].trim();return{name:a,type:u}}),r=kM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function IM(e,t){const i=e.split(".").pop();try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});s.content=Va(s.content);const{params:a,result:u}=$M(s.parameters);return{...s,params:a,returns:u}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var ib=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(ib||{});function LM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function MM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var ob=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(ob||{}),sb=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(sb||{}),ab=(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))(ab||{}),ub=(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))(ub||{});const FM={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},DM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=at;exports.AppLoader=w$;exports.BaseCheckboxIcon=Zy;exports.Checkbox=q$;exports.ControlledSwitch=Oy;exports.DATASOURCE_THEMES=FM;exports.DatasourcesActions=u0;exports.DebuggerActions=d0;exports.DefaultCheckboxIcon=Gy;exports.DesignerRequestVerb=On;exports.Dialog=eT;exports.DialogBody=hv;exports.EActivity=ib;exports.EDITOR=DM;exports.EIDENTIFIERS=ab;exports.ERROR_CODES=ub;exports.EWebFormStyleClassScope=ob;exports.EXT_API_PREFIX=Go;exports.FileFolderType=Xe;exports.FloatingTooltip=W$;exports.FolderRootPath=wn;exports.FolderRootType=If;exports.HTTPError=Fc;exports.HTTP_HANDLERS_TAB_PATH=m0;exports.IPreemptive=No;exports.IPublished=C0;exports.IPublishedRestScope=Df;exports.IdentityProvider=fI;exports.Incase=fa;exports.IndentLines=Rv;exports.InvalidJsonError=Z$;exports.LOCALIZATION_TAB_PATH=v0;exports.LOCATION_DATASOURCE_ID=T0;exports.LogoSVG=jy;exports.LspActions=f0;exports.MAX_FILE_NAME_LENGTH=kf;exports.MODEL_TAB_PATH=QI;exports.Modal=_$;exports.ModalCloseReason=vi;exports.ModalColor=Bn;exports.ModalIcons=Rc;exports.ModalType=Sf;exports.Mutex=y0;exports.NameError=$f;exports.Overlay=pv;exports.PANEL_COLLAPSED_HEIGHT=Or;exports.PANEL_INITIAL_OPEN_RATIO=By;exports.PANEL_MAX_RATIO=Hy;exports.Panel=H$;exports.Portal=tv;exports.PublishOptions=RL;exports.QODLY_NAMESPACE=So;exports.ROLES_TAB_PATH=h0;exports.RemoteDebuggerMode=Lf;exports.SETTINGS_TAB_PATH=g0;exports.SHARED_API_PREFIX=jo;exports.SHARED_USER_NAMESPACE=$a;exports.SourceCodeDescriptor=sb;exports.Switcher=Pv;exports.TITLE_DATASOURCE_ID=P0;exports.TabEventsActions=c0;exports.Tip=py;exports.TipsProvider=TC;exports.Toast=aR;exports.Tooltip=y$;exports.Tree=OR;exports.TreeIcon=_v;exports.TreeNode=Qc;exports.USER_LANGUAGE_DATASOURCE_ID=R0;exports.WebformActions=a0;exports.WebformEventsActions=Do;exports.ZoomComponent=T$;exports.ZoomLevel=Wy;exports._isArrayDatasource=SL;exports._isObjectDatasource=EL;exports.addAttributesToContent=CL;exports.addFolder=sM;exports.by=b0;exports.byId=sL;exports.byPath=aL;exports.callServerSideParser=FL;exports.checkUpdates=J2;exports.createFolder=OM;exports.datasourcesSubject=BI;exports.debuggerSubject=GI;exports.dropFile=oM;exports.dropFolder=uM;exports.exists=uL;exports.extractWebformName=rL;exports.filterBySeriousError=M0;exports.formatErrorsAsBulletToast=LL;exports.generateUUID=kL;exports.getAppSettings=eM;exports.getCatalog=fM;exports.getDatasourceId=lL;exports.getDefaultAppSettings=rb;exports.getDisplayableFeedbackErrors=IL;exports.getErrorListFromPayload=L0;exports.getFile=nM;exports.getFileContent=pM;exports.getFileExtentionFromType=tL;exports.getFilenameAndTypeFromPath=eL;exports.getFilenameFromType=nL;exports.getFilesInfo=lM;exports.getFolder=nb;exports.getFolders=tM;exports.getFunctionContent=IM;exports.getMonacoTheme=bM;exports.getNodeInfo=RM;exports.getSavedConditions=vM;exports.getSharedAppEvents=gM;exports.getSharedCSS=mM;exports.getSharedDatasources=hM;exports.getSharedResource=Ko;exports.getSupportedLanguages=dM;exports.getTypeFromExtension=Mf;exports.getUserPrivileges=yM;exports.getWebForm=rM;exports.hasAttributesString=$0;exports.http=Ne;exports.i18nSubject=VI;exports.initializeDefaultProjectFiles=X2;exports.installUpdates=Q2;exports.isArrayDatasource=_0;exports.isDataClassMethod=hL;exports.isDataStoreMethod=pL;exports.isDateDatasource=_L;exports.isEntity=wL;exports.isEntityDatasource=vL;exports.isEntityMethod=gL;exports.isEntitySelection=xL;exports.isEntitySelectionDatasource=yL;exports.isEntitySelectionMethod=mL;exports.isObjectAttribute=fL;exports.isObjectDatasource=O0;exports.isRelatedAttribute=dL;exports.isRelatedEntitiesAttribute=S0;exports.isRelatedEntityAttribute=E0;exports.isSameNamespace=OL;exports.isScalarDatasource=A0;exports.isSimpleAttribute=x0;exports.isSimpleDatasource=bL;exports.loadDS=AL;exports.loadI18n=TL;exports.localeCompare=w0;exports.log=LM;exports.login=cM;exports.lspSubject=ZI;exports.moveItem=TM;exports.outBy=iL;exports.outById=oL;exports.parseAttributes=PL;exports.queue=Ff;exports.removeAttributesString=I0;exports.removeItem=AM;exports.renameFile=iM;exports.renameFolder=aM;exports.sanitizeContent=Va;exports.sanitizeNameCY=$L;exports.saveContent=PM;exports.setCraftedComponents=_M;exports.setFileContent=zf;exports.setSharedAppEvents=EM;exports.setSharedSources=xM;exports.splitDatasourceID=cL;exports.stringifyAttributes=k0;exports.tabEventsSubject=qI;exports.tasksManagerSubject=KI;exports.toastSubject=l0;exports.trackEvent=MM;exports.transformDates=ML;exports.tryCreateSharedResource=Ja;exports.useDidMountEffect=G$;exports.useDoubleClick=gI;exports.useEnhancedState=CI;exports.useFeatureFlags=cI;exports.useForwardedRef=lI;exports.useHotkeys=oI;exports.useIdentity=dI;exports.useOutsideClick=sI;exports.usePrevious=aI;exports.useStateObject=pI;exports.useStateRef=uI;exports.useTip=dy;exports.validateName=p0;exports.validateServerSide=XI;exports.validateValue=YI;exports.webformEventsSubject=ka;exports.webformSubject=HI;
206
206
  //# sourceMappingURL=index.cjs.js.map