@ws-ui/shared 1.12.3 → 1.13.0-dev.1
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/components/Grid.d.ts +26 -0
- package/dist/components/Image.d.ts +5 -0
- package/dist/components/Panel.d.ts +3 -2
- package/dist/components/SearchInput.d.ts +12 -0
- package/dist/components/ToolbarIcon/index.d.ts +2 -0
- package/dist/components/ToolbarIcon/interfaces.d.ts +21 -0
- package/dist/components/Tooltip.d.ts +7 -3
- package/dist/components/index.d.ts +4 -3
- package/dist/declarations/datasources/datasource.d.ts +393 -393
- package/dist/declarations/datasources/interfaces/catalog.d.ts +114 -115
- package/dist/declarations/datasources/methods.d.ts +110 -110
- package/dist/declarations/index.d.ts +11 -11
- package/dist/declarations/webform/webform.d.ts +304 -304
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/use-boolean.d.ts +5 -0
- package/dist/hooks/use-callback-ref.d.ts +1 -0
- package/dist/hooks/use-controllable-state.d.ts +7 -0
- package/dist/hooks/use-ds-change-renderer.d.ts +10 -0
- package/dist/hooks/use-ds-renderer.d.ts +7 -0
- package/dist/hooks/use-form-control-props.d.ts +15 -0
- package/dist/hooks/use-safe-layout-effect.d.ts +2 -0
- package/dist/hooks/use-update-effect.d.ts +2 -0
- package/dist/index.cjs.js +166 -115
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +25493 -14300
- package/dist/index.es.js.map +1 -1
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/studio-context.d.ts +7 -0
- package/dist/providers/toast-provider.d.ts +18 -0
- package/dist/shared.css +1 -1
- package/dist/types/adapter.d.ts +12 -0
- package/dist/types/explorer.d.ts +31 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/modal.d.ts +11 -4
- package/dist/types/roles.d.ts +111 -0
- package/dist/types/settings.d.ts +28 -0
- package/dist/types/webform-editor.d.ts +132 -1
- package/dist/types/welcome-tour.d.ts +3 -0
- package/dist/utils/catalog.d.ts +1 -0
- package/dist/utils/chakra-utils.d.ts +21 -0
- package/dist/utils/common.d.ts +1 -0
- package/dist/utils/explorer.d.ts +4 -1
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/roles.d.ts +54 -0
- package/dist/utils/webform-editor.d.ts +91 -0
- package/package.json +6 -6
- package/dist/components/Checkbox/index.d.ts +0 -16
- package/dist/components/ControlledSwitch.d.ts +0 -10
- package/dist/components/FloatingTooltip/index.d.ts +0 -11
- package/dist/components/Modal/Button.d.ts +0 -10
package/dist/index.cjs.js
CHANGED
|
@@ -1,157 +1,204 @@
|
|
|
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 bC=Object.defineProperty;var em=e=>{throw TypeError(e)};var yC=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>yC(e,typeof t!="symbol"?t+"":t,r),Cd=(e,t,r)=>t.has(e)||em("Cannot "+r);var ae=(e,t,r)=>(Cd(e,t,"read from private field"),r?r.call(e):t.get(e)),Bt=(e,t,r)=>t.has(e)?em("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),tt=(e,t,r,n)=>(Cd(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ee=(e,t,r)=>(Cd(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),N=require("react"),En=require("react-dom"),Mf=require("@emotion/react");function $y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const B=$y(N),wC=$y(En),jy=({children:e,container:t=document.body})=>En.createPortal(e,t);var tm=function(t){return t.reduce(function(r,n){var i=n[0],s=n[1];return r[i]=s,r},{})},rm=typeof window<"u"&&window.document&&window.document.createElement?B.useLayoutEffect:B.useEffect,cr="top",jr="bottom",Fr="right",ur="left",mp="auto",Sa=[cr,jr,Fr,ur],Mo="start",la="end",xC="clippingParents",Fy="viewport",ms="popper",SC="reference",nm=Sa.reduce(function(e,t){return e.concat([t+"-"+Mo,t+"-"+la])},[]),Hy=[].concat(Sa,[mp]).reduce(function(e,t){return e.concat([t,t+"-"+Mo,t+"-"+la])},[]),EC="beforeRead",_C="read",OC="afterRead",kC="beforeMain",AC="main",TC="afterMain",RC="beforeWrite",CC="write",PC="afterWrite",IC=[EC,_C,OC,kC,AC,TC,RC,CC,PC];function Sn(e){return e?(e.nodeName||"").toLowerCase():null}function Er(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bi(e){var t=Er(e).Element;return e instanceof t||e instanceof Element}function $r(e){var t=Er(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bp(e){if(typeof ShadowRoot>"u")return!1;var t=Er(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function NC(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},s=t.elements[r];!$r(s)||!Sn(s)||(Object.assign(s.style,n),Object.keys(i).forEach(function(l){var c=i[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function MC(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(n){var i=t.elements[n],s=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=l.reduce(function(u,f){return u[f]="",u},{});!$r(i)||!Sn(i)||(Object.assign(i.style,c),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}const DC={name:"applyStyles",enabled:!0,phase:"write",fn:NC,effect:MC,requires:["computeStyles"]};function wn(e){return e.split("-")[0]}var ji=Math.max,kc=Math.min,Do=Math.round;function Df(){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 By(){return!/^((?!chrome|android).)*safari/i.test(Df())}function zo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,s=1;t&&$r(e)&&(i=e.offsetWidth>0&&Do(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Do(n.height)/e.offsetHeight||1);var l=Bi(e)?Er(e):window,c=l.visualViewport,u=!By()&&r,f=(n.left+(u&&c?c.offsetLeft:0))/i,g=(n.top+(u&&c?c.offsetTop:0))/s,p=n.width/i,h=n.height/s;return{width:p,height:h,top:g,right:f+p,bottom:g+h,left:f,x:f,y:g}}function yp(e){var t=zo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Wy(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&bp(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Un(e){return Er(e).getComputedStyle(e)}function zC(e){return["table","td","th"].indexOf(Sn(e))>=0}function vi(e){return((Bi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gc(e){return Sn(e)==="html"?e:e.assignedSlot||e.parentNode||(bp(e)?e.host:null)||vi(e)}function im(e){return!$r(e)||Un(e).position==="fixed"?null:e.offsetParent}function LC(e){var t=/firefox/i.test(Df()),r=/Trident/i.test(Df());if(r&&$r(e)){var n=Un(e);if(n.position==="fixed")return null}var i=Gc(e);for(bp(i)&&(i=i.host);$r(i)&&["html","body"].indexOf(Sn(i))<0;){var s=Un(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ea(e){for(var t=Er(e),r=im(e);r&&zC(r)&&Un(r).position==="static";)r=im(r);return r&&(Sn(r)==="html"||Sn(r)==="body"&&Un(r).position==="static")?t:r||LC(e)||t}function wp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ra(e,t,r){return ji(e,kc(t,r))}function $C(e,t,r){var n=ra(e,t,r);return n>r?r:n}function Uy(){return{top:0,right:0,bottom:0,left:0}}function Vy(e){return Object.assign({},Uy(),e)}function qy(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var jC=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Vy(typeof t!="number"?t:qy(t,Sa))};function FC(e){var t,r=e.state,n=e.name,i=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=wn(r.placement),u=wp(c),f=[ur,Fr].indexOf(c)>=0,g=f?"height":"width";if(!(!s||!l)){var p=jC(i.padding,r),h=yp(s),b=u==="y"?cr:ur,S=u==="y"?jr:Fr,v=r.rects.reference[g]+r.rects.reference[u]-l[u]-r.rects.popper[g],y=l[u]-r.rects.reference[u],m=Ea(s),w=m?u==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-y/2,O=p[b],_=w-h[g]-p[S],R=w/2-h[g]/2+x,j=ra(O,R,_),P=u;r.modifiersData[n]=(t={},t[P]=j,t.centerOffset=j-R,t)}}function HC(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Wy(t.elements.popper,i)&&(t.elements.arrow=i))}const BC={name:"arrow",enabled:!0,phase:"main",fn:FC,effect:HC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Lo(e){return e.split("-")[1]}var WC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function UC(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Do(r*i)/i||0,y:Do(n*i)/i||0}}function om(e){var t,r=e.popper,n=e.popperRect,i=e.placement,s=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,f=e.adaptive,g=e.roundOffsets,p=e.isFixed,h=l.x,b=h===void 0?0:h,S=l.y,v=S===void 0?0:S,y=typeof g=="function"?g({x:b,y:v}):{x:b,y:v};b=y.x,v=y.y;var m=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),x=ur,O=cr,_=window;if(f){var R=Ea(r),j="clientHeight",P="clientWidth";if(R===Er(r)&&(R=vi(r),Un(R).position!=="static"&&c==="absolute"&&(j="scrollHeight",P="scrollWidth")),R=R,i===cr||(i===ur||i===Fr)&&s===la){O=jr;var z=p&&R===_&&_.visualViewport?_.visualViewport.height:R[j];v-=z-n.height,v*=u?1:-1}if(i===ur||(i===cr||i===jr)&&s===la){x=Fr;var W=p&&R===_&&_.visualViewport?_.visualViewport.width:R[P];b-=W-n.width,b*=u?1:-1}}var L=Object.assign({position:c},f&&WC),M=g===!0?UC({x:b,y:v},Er(r)):{x:b,y:v};if(b=M.x,v=M.y,u){var V;return Object.assign({},L,(V={},V[O]=w?"0":"",V[x]=m?"0":"",V.transform=(_.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",V))}return Object.assign({},L,(t={},t[O]=w?v+"px":"",t[x]=m?b+"px":"",t.transform="",t))}function VC(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,u=c===void 0?!0:c,f={placement:wn(t.placement),variation:Lo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,om(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,om(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:VC,data:{}};var Ol={passive:!0};function GC(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,s=i===void 0?!0:i,l=n.resize,c=l===void 0?!0:l,u=Er(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(g){g.addEventListener("scroll",r.update,Ol)}),c&&u.addEventListener("resize",r.update,Ol),function(){s&&f.forEach(function(g){g.removeEventListener("scroll",r.update,Ol)}),c&&u.removeEventListener("resize",r.update,Ol)}}const ZC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:GC,data:{}};var KC={left:"right",right:"left",bottom:"top",top:"bottom"};function sc(e){return e.replace(/left|right|bottom|top/g,function(t){return KC[t]})}var YC={start:"end",end:"start"};function sm(e){return e.replace(/start|end/g,function(t){return YC[t]})}function xp(e){var t=Er(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Sp(e){return zo(vi(e)).left+xp(e).scrollLeft}function XC(e,t){var r=Er(e),n=vi(e),i=r.visualViewport,s=n.clientWidth,l=n.clientHeight,c=0,u=0;if(i){s=i.width,l=i.height;var f=By();(f||!f&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:s,height:l,x:c+Sp(e),y:u}}function JC(e){var t,r=vi(e),n=xp(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=ji(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=ji(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-n.scrollLeft+Sp(e),u=-n.scrollTop;return Un(i||r).direction==="rtl"&&(c+=ji(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:c,y:u}}function Ep(e){var t=Un(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Gy(e){return["html","body","#document"].indexOf(Sn(e))>=0?e.ownerDocument.body:$r(e)&&Ep(e)?e:Gy(Gc(e))}function na(e,t){var r;t===void 0&&(t=[]);var n=Gy(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=Er(n),l=i?[s].concat(s.visualViewport||[],Ep(n)?n:[]):n,c=t.concat(l);return i?c:c.concat(na(Gc(l)))}function zf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function QC(e,t){var r=zo(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 am(e,t,r){return t===Fy?zf(XC(e,r)):Bi(t)?QC(t,r):zf(JC(vi(e)))}function e2(e){var t=na(Gc(e)),r=["absolute","fixed"].indexOf(Un(e).position)>=0,n=r&&$r(e)?Ea(e):e;return Bi(n)?t.filter(function(i){return Bi(i)&&Wy(i,n)&&Sn(i)!=="body"}):[]}function t2(e,t,r,n){var i=t==="clippingParents"?e2(e):[].concat(t),s=[].concat(i,[r]),l=s[0],c=s.reduce(function(u,f){var g=am(e,f,n);return u.top=ji(g.top,u.top),u.right=kc(g.right,u.right),u.bottom=kc(g.bottom,u.bottom),u.left=ji(g.left,u.left),u},am(e,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Zy(e){var t=e.reference,r=e.element,n=e.placement,i=n?wn(n):null,s=n?Lo(n):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(i){case cr:u={x:l,y:t.y-r.height};break;case jr:u={x:l,y:t.y+t.height};break;case Fr:u={x:t.x+t.width,y:c};break;case ur:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var f=i?wp(i):null;if(f!=null){var g=f==="y"?"height":"width";switch(s){case Mo:u[f]=u[f]-(t[g]/2-r[g]/2);break;case la:u[f]=u[f]+(t[g]/2-r[g]/2);break}}return u}function ca(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,u=c===void 0?xC:c,f=r.rootBoundary,g=f===void 0?Fy:f,p=r.elementContext,h=p===void 0?ms:p,b=r.altBoundary,S=b===void 0?!1:b,v=r.padding,y=v===void 0?0:v,m=Vy(typeof y!="number"?y:qy(y,Sa)),w=h===ms?SC:ms,x=e.rects.popper,O=e.elements[S?w:h],_=t2(Bi(O)?O:O.contextElement||vi(e.elements.popper),u,g,l),R=zo(e.elements.reference),j=Zy({reference:R,element:x,placement:i}),P=zf(Object.assign({},x,j)),z=h===ms?P:R,W={top:_.top-z.top+m.top,bottom:z.bottom-_.bottom+m.bottom,left:_.left-z.left+m.left,right:z.right-_.right+m.right},L=e.modifiersData.offset;if(h===ms&&L){var M=L[i];Object.keys(W).forEach(function(V){var U=[Fr,jr].indexOf(V)>=0?1:-1,I=[cr,jr].indexOf(V)>=0?"y":"x";W[V]+=M[I]*U})}return W}function r2(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?Hy:u,g=Lo(n),p=g?c?nm:nm.filter(function(S){return Lo(S)===g}):Sa,h=p.filter(function(S){return f.indexOf(S)>=0});h.length===0&&(h=p);var b=h.reduce(function(S,v){return S[v]=ca(e,{placement:v,boundary:i,rootBoundary:s,padding:l})[wn(v)],S},{});return Object.keys(b).sort(function(S,v){return b[S]-b[v]})}function n2(e){if(wn(e)===mp)return[];var t=sc(e);return[sm(e),t,sm(t)]}function i2(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,s=i===void 0?!0:i,l=r.altAxis,c=l===void 0?!0:l,u=r.fallbackPlacements,f=r.padding,g=r.boundary,p=r.rootBoundary,h=r.altBoundary,b=r.flipVariations,S=b===void 0?!0:b,v=r.allowedAutoPlacements,y=t.options.placement,m=wn(y),w=m===y,x=u||(w||!S?[sc(y)]:n2(y)),O=[y].concat(x).reduce(function(Y,ce){return Y.concat(wn(ce)===mp?r2(t,{placement:ce,boundary:g,rootBoundary:p,padding:f,flipVariations:S,allowedAutoPlacements:v}):ce)},[]),_=t.rects.reference,R=t.rects.popper,j=new Map,P=!0,z=O[0],W=0;W<O.length;W++){var L=O[W],M=wn(L),V=Lo(L)===Mo,U=[cr,jr].indexOf(M)>=0,I=U?"width":"height",F=ca(t,{placement:L,boundary:g,rootBoundary:p,altBoundary:h,padding:f}),Z=U?V?Fr:ur:V?jr:cr;_[I]>R[I]&&(Z=sc(Z));var X=sc(Z),pe=[];if(s&&pe.push(F[M]<=0),c&&pe.push(F[Z]<=0,F[X]<=0),pe.every(function(Y){return Y})){z=L,P=!1;break}j.set(L,pe)}if(P)for(var $=S?3:1,G=function(ce){var ie=O.find(function(re){var de=j.get(re);if(de)return de.slice(0,ce).every(function(ge){return ge})});if(ie)return z=ie,"break"},te=$;te>0;te--){var Q=G(te);if(Q==="break")break}t.placement!==z&&(t.modifiersData[n]._skip=!0,t.placement=z,t.reset=!0)}}const o2={name:"flip",enabled:!0,phase:"main",fn:i2,requiresIfExists:["offset"],data:{_skip:!1}};function lm(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 cm(e){return[cr,Fr,jr,ur].some(function(t){return e[t]>=0})}function s2(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,l=ca(t,{elementContext:"reference"}),c=ca(t,{altBoundary:!0}),u=lm(l,n),f=lm(c,i,s),g=cm(u),p=cm(f);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:g,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":p})}const a2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:s2};function l2(e,t,r){var n=wn(e),i=[ur,cr].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*i,[ur,Fr].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function c2(e){var t=e.state,r=e.options,n=e.name,i=r.offset,s=i===void 0?[0,0]:i,l=Hy.reduce(function(g,p){return g[p]=l2(p,t.rects,s),g},{}),c=l[t.placement],u=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=l}const u2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:c2};function d2(e){var t=e.state,r=e.name;t.modifiersData[r]=Zy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const f2={name:"popperOffsets",enabled:!0,phase:"read",fn:d2,data:{}};function p2(e){return e==="x"?"y":"x"}function h2(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,s=i===void 0?!0:i,l=r.altAxis,c=l===void 0?!1:l,u=r.boundary,f=r.rootBoundary,g=r.altBoundary,p=r.padding,h=r.tether,b=h===void 0?!0:h,S=r.tetherOffset,v=S===void 0?0:S,y=ca(t,{boundary:u,rootBoundary:f,padding:p,altBoundary:g}),m=wn(t.placement),w=Lo(t.placement),x=!w,O=wp(m),_=p2(O),R=t.modifiersData.popperOffsets,j=t.rects.reference,P=t.rects.popper,z=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,W=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(R){if(s){var V,U=O==="y"?cr:ur,I=O==="y"?jr:Fr,F=O==="y"?"height":"width",Z=R[O],X=Z+y[U],pe=Z-y[I],$=b?-P[F]/2:0,G=w===Mo?j[F]:P[F],te=w===Mo?-P[F]:-j[F],Q=t.elements.arrow,Y=b&&Q?yp(Q):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Uy(),ie=ce[U],re=ce[I],de=ra(0,j[F],Y[F]),ge=x?j[F]/2-$-de-ie-W.mainAxis:G-de-ie-W.mainAxis,he=x?-j[F]/2+$+de+re+W.mainAxis:te+de+re+W.mainAxis,xe=t.elements.arrow&&Ea(t.elements.arrow),J=xe?O==="y"?xe.clientTop||0:xe.clientLeft||0:0,Pe=(V=L==null?void 0:L[O])!=null?V:0,ve=Z+ge-Pe-J,Le=Z+he-Pe,qe=ra(b?kc(X,ve):X,Z,b?ji(pe,Le):pe);R[O]=qe,M[O]=qe-Z}if(c){var it,dr=O==="x"?cr:ur,bi=O==="x"?jr:Fr,Et=R[_],kr=_==="y"?"height":"width",$t=Et+y[dr],It=Et-y[bi],Gt=[cr,ur].indexOf(m)!==-1,yi=(it=L==null?void 0:L[_])!=null?it:0,en=Gt?$t:Et-j[kr]-P[kr]-yi+W.altAxis,wi=Gt?Et+j[kr]+P[kr]-yi-W.altAxis:It,Ar=b&&Gt?$C(en,Et,wi):ra(b?en:$t,Et,b?wi:It);R[_]=Ar,M[_]=Ar-Et}t.modifiersData[n]=M}}const g2={name:"preventOverflow",enabled:!0,phase:"main",fn:h2,requiresIfExists:["offset"]};function v2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m2(e){return e===Er(e)||!$r(e)?xp(e):v2(e)}function b2(e){var t=e.getBoundingClientRect(),r=Do(t.width)/e.offsetWidth||1,n=Do(t.height)/e.offsetHeight||1;return r!==1||n!==1}function y2(e,t,r){r===void 0&&(r=!1);var n=$r(t),i=$r(t)&&b2(t),s=vi(t),l=zo(e,i,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Sn(t)!=="body"||Ep(s))&&(c=m2(t)),$r(t)?(u=zo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Sp(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function w2(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function i(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var u=t.get(c);u&&i(u)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||i(s)}),n}function x2(e){var t=w2(e);return IC.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function S2(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function E2(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var um={placement:"bottom",modifiers:[],strategy:"absolute"};function dm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function _2(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,s=i===void 0?um:i;return function(c,u,f){f===void 0&&(f=s);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},um,s),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},p=[],h=!1,b={state:g,setOptions:function(m){var w=typeof m=="function"?m(g.options):m;v(),g.options=Object.assign({},s,g.options,w),g.scrollParents={reference:Bi(c)?na(c):c.contextElement?na(c.contextElement):[],popper:na(u)};var x=x2(E2([].concat(n,g.options.modifiers)));return g.orderedModifiers=x.filter(function(O){return O.enabled}),S(),b.update()},forceUpdate:function(){if(!h){var m=g.elements,w=m.reference,x=m.popper;if(dm(w,x)){g.rects={reference:y2(w,Ea(x),g.options.strategy==="fixed"),popper:yp(x)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(W){return g.modifiersData[W.name]=Object.assign({},W.data)});for(var O=0;O<g.orderedModifiers.length;O++){if(g.reset===!0){g.reset=!1,O=-1;continue}var _=g.orderedModifiers[O],R=_.fn,j=_.options,P=j===void 0?{}:j,z=_.name;typeof R=="function"&&(g=R({state:g,options:P,name:z,instance:b})||g)}}}},update:S2(function(){return new Promise(function(y){b.forceUpdate(),y(g)})}),destroy:function(){v(),h=!0}};if(!dm(c,u))return b;b.setOptions(f).then(function(y){!h&&f.onFirstUpdate&&f.onFirstUpdate(y)});function S(){g.orderedModifiers.forEach(function(y){var m=y.name,w=y.options,x=w===void 0?{}:w,O=y.effect;if(typeof O=="function"){var _=O({state:g,name:m,instance:b,options:x}),R=function(){};p.push(_||R)}})}function v(){p.forEach(function(y){return y()}),p=[]}return b}}var O2=[ZC,f2,qC,DC,u2,o2,g2,BC,a2],k2=_2({defaultModifiers:O2}),kl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ky(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pd,fm;function A2(){if(fm)return Pd;fm=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var c,u,f;if(Array.isArray(s)){if(c=s.length,c!=l.length)return!1;for(u=c;u--!==0;)if(!i(s[u],l[u]))return!1;return!0}var g;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(g=s.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;for(g=s.entries();!(u=g.next()).done;)if(!i(u.value[1],l.get(u.value[0])))return!1;return!0}if(r&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(g=s.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(c=s.length,c!=l.length)return!1;for(u=c;u--!==0;)if(s[u]!==l[u])return!1;return!0}if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof l.valueOf=="function")return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof l.toString=="function")return s.toString()===l.toString();if(f=Object.keys(s),c=f.length,c!==Object.keys(l).length)return!1;for(u=c;u--!==0;)if(!Object.prototype.hasOwnProperty.call(l,f[u]))return!1;if(e&&s instanceof Element)return!1;for(u=c;u--!==0;)if(!((f[u]==="_owner"||f[u]==="__v"||f[u]==="__o")&&s.$$typeof)&&!i(s[f[u]],l[f[u]]))return!1;return!0}return s!==s&&l!==l}return Pd=function(l,c){try{return i(l,c)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},Pd}var T2=A2();const R2=Ky(T2);var C2=[],_p=function(t,r,n){n===void 0&&(n={});var i=B.useRef(null),s={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||C2},l=B.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],u=l[1],f=B.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var S=b.state,v=Object.keys(S.elements);wC.flushSync(function(){u({styles:tm(v.map(function(y){return[y,S.styles[y]||{}]})),attributes:tm(v.map(function(y){return[y,S.attributes[y]]}))})})},requires:["computeStyles"]}},[]),g=B.useMemo(function(){var h={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[f,{name:"applyStyles",enabled:!1}])};return R2(i.current,h)?i.current||h:(i.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,f]),p=B.useRef();return rm(function(){p.current&&p.current.setOptions(g)},[g]),rm(function(){if(!(t==null||r==null)){var h=n.createPopper||k2,b=h(t,r,g);return p.current=b,function(){b.destroy(),p.current=null}}},[t,r,n.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 Yy=e=>A.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Xy=N.forwardRef(({children:e,style:t,attributes:r},n)=>A.jsx("div",{style:{...t,zIndex:2e3},...r,ref:n,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),P2=({referenceElement:e,placement:t,isOpen:r,children:n,onClose:i})=>{const[s,l]=N.useState(null),{styles:c,attributes:u}=_p(e,s,{placement:t||"bottom-start"}),f=N.useCallback(()=>{i&&i()},[i]);return r?A.jsxs(jy,{children:[A.jsx(Yy,{onClick:()=>f()}),A.jsx(Xy,{ref:l,style:c.popper,attributes:u.popper,children:n})]}):null};(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.-right-px:not(#\\#){right:-1px}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.-left-px:not(#\\#){left:-1px}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-30:not(#\\#){height:calc(var(--spacing)*30)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.grow:not(#\\#){flex-grow:1}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-b:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-text:not(#\\#){background-color:var(--color-input-text)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:top-full:last-child:not(#\\#){top:100%}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-canvas-default:hover:not(#\\#){border-color:var(--color-canvas-default)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-default:hover:not(#\\#){background-color:var(--color-canvas-default)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary:hover:not(#\\#){background-color:var(--color-primary)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary:hover:not(#\\#){color:var(--color-primary)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--vscode-button-background,var(--theia-button-secondaryForeground,var(--theia-button-background,var(--ws-palette-primary-200)))));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--vscode-button-foreground,var(--theia-button-secondaryBackground,var(--theia-button-foreground,var(--ws-palette-primary-700)))));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--ws-palette-negative-200);--ws-negative-dark:var(--ws-palette-negative-600);--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-editor-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700))));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500))));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-base-ide:var(--vscode-editor-background,var(--theia-editor-background));--ws-panel-shift-ide:var(--vscode-editor-foreground,var(--theia-panel-foreground));--ws-panel-0-mix:var(--ws-panel-base-ide);--ws-panel-1-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-1-mix:color-mix(in srgb,var(--ws-panel-base-ide)96%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-2-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-2-mix:color-mix(in srgb,var(--ws-panel-base-ide)92%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-3-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-3-mix:color-mix(in srgb,var(--ws-panel-base-ide)88%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-4-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-4-mix:color-mix(in srgb,var(--ws-panel-base-ide)84%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-5-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-5-mix:color-mix(in srgb,var(--ws-panel-base-ide)80%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-light-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-light-mix:color-mix(in srgb,var(--ws-panel-base-ide)90%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-0:var(--ws-panel-0-mix,var(--ws-palette-grey-900));--ws-panel-1:var(--ws-panel-1-mix,var(--ws-palette-grey-700));--ws-panel-2:var(--ws-panel-2-mix,var(--ws-palette-grey-900));--ws-panel-3:var(--ws-panel-3-mix,var(--ws-palette-grey-900));--ws-panel-4:var(--ws-panel-4-mix,var(--ws-palette-grey-300));--ws-panel-5:var(--ws-panel-5-mix,var(--ws-palette-grey-950));--ws-panel-light:var(--ws-panel-light-mix,var(--ws-palette-grey-200));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,var(--ws-palette-grey-950)));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-100)))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
2
|
+
`,document.head.prepend(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const I2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),N2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),M2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),Bo=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),D2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M7.105 12.87a.47.47 0 0 0 .003.689l3.713 3.491.027.027.768.722a.528.528 0 0 0 .407.14.523.523 0 0 0 .32-.143l.761-.73a.513.513 0 0 0 .025-.024l3.682-3.529a.47.47 0 0 0-.003-.688l-.768-.722a.533.533 0 0 0-.726.003l-3.346 3.206-3.377-3.174a.533.533 0 0 0-.725.003l-.761.73Z",fill:"currentColor"}),A.jsx("path",{d:"M7.105 6.87a.47.47 0 0 0 .003.689l3.713 3.491.027.027.768.722a.528.528 0 0 0 .407.14.523.523 0 0 0 .32-.143l.761-.73a.513.513 0 0 0 .025-.025l3.682-3.528a.47.47 0 0 0-.003-.688l-.768-.722a.533.533 0 0 0-.726.003l-3.346 3.206L8.59 6.138a.533.533 0 0 0-.725.003l-.761.73Z",fill:"currentColor"})]}),z2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M16.811 11.031a.47.47 0 0 0-.003-.688l-3.714-3.491a.485.485 0 0 0-.026-.027l-.768-.722a.528.528 0 0 0-.408-.14.524.524 0 0 0-.32.143l-.76.73a.518.518 0 0 0-.025.025l-3.682 3.528a.47.47 0 0 0 .003.688l.768.722c.201.19.526.188.725-.003l3.347-3.206 3.377 3.174c.2.19.526.188.725-.003l.761-.73Z",fill:"currentColor"}),A.jsx("path",{d:"M16.811 17.032a.47.47 0 0 0-.003-.689l-3.714-3.491a.514.514 0 0 0-.026-.027l-.768-.722a.528.528 0 0 0-.408-.139.523.523 0 0 0-.32.142l-.76.73a.563.563 0 0 0-.025.025l-3.682 3.528a.47.47 0 0 0 .003.688l.768.722c.201.19.526.188.725-.003l3.347-3.206 3.377 3.174c.2.19.526.188.725-.003l.761-.73Z",fill:"currentColor"})]}),ac=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),Lf=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),L2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),$2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M21.5 10.889a.5.5 0 0 1 .5.5v1.222a.5.5 0 0 1-.5.5h-19a.5.5 0 0 1-.5-.5V11.39a.5.5 0 0 1 .5-.5h19Z",fill:"currentColor"})}),Jy=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),A.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),j2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M11.389 2a.5.5 0 0 0-.5.5v8.389H2.5a.5.5 0 0 0-.5.5v1.222a.5.5 0 0 0 .5.5h8.389V21.5a.5.5 0 0 0 .5.5h1.222a.5.5 0 0 0 .5-.5v-8.389H21.5a.5.5 0 0 0 .5-.5V11.39a.5.5 0 0 0-.5-.5h-8.389V2.5a.5.5 0 0 0-.5-.5H11.39Z",fill:"currentColor"})}),F2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),H2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),B2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm1 15.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7ZM11 7a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",fill:"currentColor"})}),W2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),U2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),V2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.774 15.7A7.513 7.513 0 0 1 4.2 4.2a7.511 7.511 0 0 1 10.623 0 7.515 7.515 0 0 1 .876 9.573l6.01 6.01a.995.995 0 0 1 0 1.407l-.52.519a.995.995 0 0 1-1.406 0l-6.009-6.01Zm-1.076-3a4.507 4.507 0 1 1-6.373-6.374 4.507 4.507 0 0 1 6.373 6.373Z",fill:"currentColor"})}),Op=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})}),q2=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},G2=(e,t)=>({classGroupId:e,validator:t}),Qy=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ac="-",pm=[],Z2="arbitrary..",K2=e=>{const t=X2(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Y2(i);const s=i.split(Ac),l=s[0]===""&&s.length>1?1:0;return ew(s,l,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const l=n[i],c=r[i];return l?c?q2(c,l):l:c||pm}return r[i]||pm}}},ew=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],i=r.nextPart.get(n);if(i){const u=ew(e,t+1,i);if(u)return u}const s=r.validators;if(s===null)return;const l=t===0?e.join(Ac):e.slice(t).join(Ac),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(f.validator(l))return f.classGroupId}},Y2=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Z2+n:void 0})(),X2=e=>{const{theme:t,classGroups:r}=e;return J2(r,t)},J2=(e,t)=>{const r=Qy();for(const n in e){const i=e[n];kp(i,r,n,t)}return r},kp=(e,t,r,n)=>{const i=e.length;for(let s=0;s<i;s++){const l=e[s];Q2(l,t,r,n)}},Q2=(e,t,r,n)=>{if(typeof e=="string"){e5(e,t,r);return}if(typeof e=="function"){t5(e,t,r,n);return}r5(e,t,r,n)},e5=(e,t,r)=>{const n=e===""?t:tw(t,e);n.classGroupId=r},t5=(e,t,r,n)=>{if(n5(e)){kp(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(G2(r,e))},r5=(e,t,r,n)=>{const i=Object.entries(e),s=i.length;for(let l=0;l<s;l++){const[c,u]=i[l];kp(u,tw(t,c),r,n)}},tw=(e,t)=>{let r=e;const n=t.split(Ac),i=n.length;for(let s=0;s<i;s++){const l=n[s];let c=r.nextPart.get(l);c||(c=Qy(),r.nextPart.set(l,c)),r=c}return r},n5=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,i5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(s,l)=>{r[s]=l,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(s){let l=r[s];if(l!==void 0)return l;if((l=n[s])!==void 0)return i(s,l),l},set(s,l){s in r?r[s]=l:i(s,l)}}},$f="!",hm=":",o5=[],gm=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),s5=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const s=[];let l=0,c=0,u=0,f;const g=i.length;for(let v=0;v<g;v++){const y=i[v];if(l===0&&c===0){if(y===hm){s.push(i.slice(u,v)),u=v+1;continue}if(y==="/"){f=v;continue}}y==="["?l++:y==="]"?l--:y==="("?c++:y===")"&&c--}const p=s.length===0?i:i.slice(u);let h=p,b=!1;p.endsWith($f)?(h=p.slice(0,-1),b=!0):p.startsWith($f)&&(h=p.slice(1),b=!0);const S=f&&f>u?f-u:void 0;return gm(s,b,h,S)};if(t){const i=t+hm,s=n;n=l=>l.startsWith(i)?s(l.slice(i.length)):gm(o5,!1,l,void 0,!0)}if(r){const i=n;n=s=>r({className:s,parseClassName:i})}return n},a5=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let s=0;s<r.length;s++){const l=r[s],c=l[0]==="[",u=t.has(l);c||u?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(l)):i.push(l)}return i.length>0&&(i.sort(),n.push(...i)),n}},l5=e=>({cache:i5(e.cacheSize),parseClassName:s5(e),sortModifiers:a5(e),...K2(e)}),c5=/\s+/,u5=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:s}=t,l=[],c=e.trim().split(c5);let u="";for(let f=c.length-1;f>=0;f-=1){const g=c[f],{isExternal:p,modifiers:h,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:v}=r(g);if(p){u=g+(u.length>0?" "+u:u);continue}let y=!!v,m=n(y?S.substring(0,v):S);if(!m){if(!y){u=g+(u.length>0?" "+u:u);continue}if(m=n(S),!m){u=g+(u.length>0?" "+u:u);continue}y=!1}const w=h.length===0?"":h.length===1?h[0]:s(h).join(":"),x=b?w+$f:w,O=x+m;if(l.indexOf(O)>-1)continue;l.push(O);const _=i(m,y);for(let R=0;R<_.length;++R){const j=_[R];l.push(x+j)}u=g+(u.length>0?" "+u:u)}return u},d5=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=rw(r))&&(i&&(i+=" "),i+=n);return i},rw=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=rw(e[n]))&&(r&&(r+=" "),r+=t);return r},vm=(e,...t)=>{let r,n,i,s;const l=u=>{const f=t.reduce((g,p)=>p(g),e());return r=l5(f),n=r.cache.get,i=r.cache.set,s=c,c(u)},c=u=>{const f=n(u);if(f)return f;const g=u5(u,r);return i(u,g),g};return s=l,(...u)=>s(d5(...u))},f5=[],Ct=e=>{const t=r=>r[e]||f5;return t.isThemeGetter=!0,t},nw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,iw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,p5=/^\d+\/\d+$/,h5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g5=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,m5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,b5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vo=e=>p5.test(e),De=e=>!!e&&!Number.isNaN(Number(e)),ni=e=>!!e&&Number.isInteger(Number(e)),Id=e=>e.endsWith("%")&&De(e.slice(0,-1)),Dn=e=>h5.test(e),y5=()=>!0,w5=e=>g5.test(e)&&!v5.test(e),ow=()=>!1,x5=e=>m5.test(e),S5=e=>b5.test(e),E5=e=>!ye(e)&&!we(e),_5=e=>Wo(e,lw,ow),ye=e=>nw.test(e),Pi=e=>Wo(e,cw,w5),Nd=e=>Wo(e,R5,De),mm=e=>Wo(e,sw,ow),O5=e=>Wo(e,aw,S5),Al=e=>Wo(e,uw,x5),we=e=>iw.test(e),bs=e=>Uo(e,cw),k5=e=>Uo(e,C5),bm=e=>Uo(e,sw),A5=e=>Uo(e,lw),T5=e=>Uo(e,aw),Tl=e=>Uo(e,uw,!0),Wo=(e,t,r)=>{const n=nw.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Uo=(e,t,r=!1)=>{const n=iw.exec(e);return n?n[1]?t(n[1]):r:!1},sw=e=>e==="position"||e==="percentage",aw=e=>e==="image"||e==="url",lw=e=>e==="length"||e==="size"||e==="bg-size",cw=e=>e==="length",R5=e=>e==="number",C5=e=>e==="family-name",uw=e=>e==="shadow",ym=()=>{const e=Ct("color"),t=Ct("font"),r=Ct("text"),n=Ct("font-weight"),i=Ct("tracking"),s=Ct("leading"),l=Ct("breakpoint"),c=Ct("container"),u=Ct("spacing"),f=Ct("radius"),g=Ct("shadow"),p=Ct("inset-shadow"),h=Ct("text-shadow"),b=Ct("drop-shadow"),S=Ct("blur"),v=Ct("perspective"),y=Ct("aspect"),m=Ct("ease"),w=Ct("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...O(),we,ye],R=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],P=()=>[we,ye,u],z=()=>[vo,"full","auto",...P()],W=()=>[ni,"none","subgrid",we,ye],L=()=>["auto",{span:["full",ni,we,ye]},ni,we,ye],M=()=>[ni,"auto",we,ye],V=()=>["auto","min","max","fr",we,ye],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...P()],Z=()=>[vo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],X=()=>[e,we,ye],pe=()=>[...O(),bm,mm,{position:[we,ye]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",A5,_5,{size:[we,ye]}],te=()=>[Id,bs,Pi],Q=()=>["","none","full",f,we,ye],Y=()=>["",De,bs,Pi],ce=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[De,Id,bm,mm],de=()=>["","none",S,we,ye],ge=()=>["none",De,we,ye],he=()=>["none",De,we,ye],xe=()=>[De,we,ye],J=()=>[vo,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dn],breakpoint:[Dn],color:[y5],container:[Dn],"drop-shadow":[Dn],ease:["in","out","in-out"],font:[E5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dn],shadow:[Dn],spacing:["px",De],text:[Dn],"text-shadow":[Dn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vo,ye,we,y]}],container:["container"],columns:[{columns:[De,ye,we,c]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ni,"auto",we,ye]}],basis:[{basis:[vo,"full","auto",c,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,vo,"auto","initial","none",ye]}],grow:[{grow:["",De,we,ye]}],shrink:[{shrink:["",De,we,ye]}],order:[{order:[ni,"first","last","none",we,ye]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[c,"screen",...Z()]}],"min-w":[{"min-w":[c,"screen","none",...Z()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",r,bs,Pi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,we,Nd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Id,ye]}],"font-family":[{font:[k5,ye,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,we,ye]}],"line-clamp":[{"line-clamp":[De,"none",we,Nd]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",we,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",we,Pi]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[De,"auto",we,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ni,we,ye],radial:["",we,ye],conic:[ni,we,ye]},T5,O5]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,we,ye]}],"outline-w":[{outline:["",De,bs,Pi]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",g,Tl,Al]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",p,Tl,Al]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[De,Pi]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",h,Tl,Al]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[De,we,ye]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[we,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,ye]}],filter:[{filter:["","none",we,ye]}],blur:[{blur:de()}],brightness:[{brightness:[De,we,ye]}],contrast:[{contrast:[De,we,ye]}],"drop-shadow":[{"drop-shadow":["","none",b,Tl,Al]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",De,we,ye]}],"hue-rotate":[{"hue-rotate":[De,we,ye]}],invert:[{invert:["",De,we,ye]}],saturate:[{saturate:[De,we,ye]}],sepia:[{sepia:["",De,we,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",we,ye]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[De,we,ye]}],"backdrop-contrast":[{"backdrop-contrast":[De,we,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,we,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,we,ye]}],"backdrop-invert":[{"backdrop-invert":["",De,we,ye]}],"backdrop-opacity":[{"backdrop-opacity":[De,we,ye]}],"backdrop-saturate":[{"backdrop-saturate":[De,we,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",De,we,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",we,ye]}],ease:[{ease:["linear","initial",m,we,ye]}],delay:[{delay:[De,we,ye]}],animate:[{animate:["none",w,we,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,we,ye]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[we,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,ye]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[De,bs,Pi,Nd]}],stroke:[{stroke:["none",...X()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},P5=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:i={},override:s={}})=>(Zs(e,"cacheSize",t),Zs(e,"prefix",r),Zs(e,"experimentalParseClassName",n),Rl(e.theme,s.theme),Rl(e.classGroups,s.classGroups),Rl(e.conflictingClassGroups,s.conflictingClassGroups),Rl(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Zs(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),Cl(e.theme,i.theme),Cl(e.classGroups,i.classGroups),Cl(e.conflictingClassGroups,i.conflictingClassGroups),Cl(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),dw(e,i,"orderSensitiveModifiers"),e),Zs=(e,t,r)=>{r!==void 0&&(e[t]=r)},Rl=(e,t)=>{if(t)for(const r in t)Zs(e,r,t[r])},Cl=(e,t)=>{if(t)for(const r in t)dw(e,t,r)},dw=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},I5=(e,...t)=>typeof e=="function"?vm(ym,e,...t):vm(()=>P5(ym(),e),...t);function fw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wm={exports:{}};/*!
|
|
2
3
|
Copyright (c) 2018 Jed Watson.
|
|
3
4
|
Licensed under the MIT License (MIT), see
|
|
4
5
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var
|
|
6
|
-
|
|
6
|
+
*/var xm;function N5(){return xm||(xm=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,n(c)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(wm)),wm.exports}var M5=N5();const D5=fw(M5),z5=I5({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function le(...e){return z5(D5(e))}const _a={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},zr={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},L5=`
|
|
7
|
+
appearance-none border rounded transition-all duration-200
|
|
8
|
+
focus:ring-2 focus:ring-offset-2 focus:outline-hidden
|
|
9
|
+
relative
|
|
10
|
+
`,$5=(e,t,r)=>{const{isChecked:n,isIndeterminate:i,isDisabled:s,isInvalid:l}=r,c=n||i;return le(L5,_a[e].checkbox,{"cursor-pointer":!s},l?{[zr.negative.checked]:c,[zr.negative.unchecked]:!c,[zr.negative.checkedHover]:!s&&c,[zr.negative.focus]:!s,"border-input-disable":s}:{[zr[t].checked]:c&&!s,[zr[t].unchecked]:!c&&!s,[zr[t].checkedHover]:!s&&c,[zr[t].focus]:!s,"border-input-disable":s,"bg-input-disable":s&&c})},j5=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return le(_a[e].text,i?{[zr.negative.label]:i}:{"text-input-disable":n,[zr[t].label]:!n,"cursor-pointer":!n})},F5=e=>le("inline-flex items-center ws-group",_a[e].spacing),H5=(e,t,r)=>le("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",_a[e].hoverSquare,{[zr.negative.hoverSquare]:r,[zr[t].hoverSquare]:!r}),B5=e=>`${_a[e].icon}`,W5=e=>A.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:A.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),U5=N.forwardRef(({label:e,isDisabled:t=!1,isInvalid:r=!1,isRequired:n=!1,size:i="md",color:s="primary",onChange:l,onFocus:c,onBlur:u,value:f,defaultValue:g,name:p,id:h,...b},S)=>{const[v,y]=N.useState(g),m=f===!0||v===!0,w=f===null,x=m||w,O={isChecked:m,isIndeterminate:w,isDisabled:t,isInvalid:r},_=$5(i,s,O),R=j5(i,s,O),j=F5(i),P=H5(i,s,r),z=B5(i);return A.jsxs("label",{"data-qui":"Checkbox",className:j,children:[A.jsxs("div",{className:_,children:[A.jsx("input",{ref:S,type:"checkbox",className:"sr-only",checked:m,disabled:t,required:n,onChange:W=>{f===void 0&&y(W.target.checked),l==null||l(W)},onFocus:c,onBlur:u,name:p,id:h,...b}),x&&A.jsx("div",{className:"center-absolute",children:w?A.jsx(W5,{className:z}):A.jsx(N2,{className:z})}),!x&&!t&&A.jsx("div",{className:P})]}),e&&A.jsxs("span",{className:R,children:[e,n&&A.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});U5.displayName="Checkbox";const Oa={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},ua={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},V5=`
|
|
11
|
+
relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
|
|
12
|
+
focus:outline-hidden focus:ring-2 focus:ring-offset-0
|
|
13
|
+
cursor-pointer peer
|
|
14
|
+
`,q5=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return le(V5,Oa[e].radio,i?ua[t].radioInvalid:{[ua[t].radio]:!n,"cursor-not-allowed opacity-60":n})},G5=(e,t,r)=>{const{checked:n,isDisabled:i,isInvalid:s}=r;return le("center-absolute rounded-full transition-all duration-200 ease-in-out",Oa[e].dot,s?"bg-negative":{[ua[t].dot]:!i,"border-neutral":i,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!i})},Z5=(e,t,r)=>le("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",Oa[e].hoverDot,{[ua[t].hoverDot]:!r,"bg-negative-bg":r}),K5=e=>le("cursor-pointer select-none transition-colors duration-200",Oa[e].label),Y5=(e,t,r,n)=>{const{isDisabled:i,isInvalid:s}=r;return le("inline-flex items-center group",Oa[e].container,s?{"text-negative":s}:{[ua[t].label]:!i,"text-muted":i},n)},X5=N.createContext(null),J5=()=>{const e=N.useContext(X5);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},Q5=N.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:i,isInvalid:s,isRequired:l,className:c,...u},f)=>{const g=J5(),p=r??g.size,h=n??g.color,b=i??g.isDisabled,S=s??g.isInvalid,v=l??g.isRequired,y=g.value===e,m={checked:y,isDisabled:b,isInvalid:S},w=q5(p,h,m),x=G5(p,h,m),O=Z5(p,h,S),_=K5(p),R=Y5(p,h,m,c),j=()=>{b||g.onChange(e)};return A.jsxs("label",{"data-qui":"RadioItem",className:R,children:[A.jsxs("div",{className:le("relative",{hidden:g.hideIndicator}),children:[A.jsx("input",{ref:f,type:"radio",value:e,checked:y,disabled:b,required:v,"aria-invalid":S,"aria-label":t?void 0:u["aria-label"],name:g.name,onChange:j,className:"sr-only",...u}),A.jsxs("div",{className:w,children:[A.jsx("div",{className:x}),!y&&!b&&A.jsx("div",{className:O})]})]}),t&&A.jsxs("span",{className:_,children:[t,v&&A.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});Q5.displayName="RadioItem";const pw={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},eP={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-primary-hover hover:bg-primary hover:text-body",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas-default hover:bg-canvas-default hover:text-primary",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:bg-positive-hover hover:text-body",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:bg-warning-hover hover:text-body",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:bg-negative-hover hover:text-body",ghost:"hover:bg-negative-hover hover:text-body"}}},tP=(e,t,r,n)=>{const i=pw[e],s=eP[r],l=le("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},i.container);return n?le(l,"text-inactive-text pointer-events-none",{"border-panel":t!=="ghost"&&t==="solid","border-panel-subtle":t==="outline","bg-panel":t==="solid","bg-transparent ":t==="outline"||t==="ghost","border-transparent":t==="ghost"}):le(l,s.bg[t],s.text[t],s.hover[t],s.border[t])},rP=e=>le("flex items-center justify-center gap-1",pw[e].text),Bn=N.forwardRef(({size:e="md",variant:t="solid",color:r="primary",className:n,children:i,disabled:s,...l},c)=>A.jsx("button",{"data-qui":"Button",ref:c,type:"button",className:le(tP(e,t,r,s),rP(e),n),disabled:s,...l,children:i}));Bn.displayName="Button";const hw=N.createContext(null),ka=()=>{const e=N.useContext(hw);if(!e)throw new Error("Input components must be used within Input.Root");return e},Vo={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},Fi={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},nP=()=>le("flex flex-col relative"),iP=({size:e,color:t,isDisabled:r,isReadOnly:n,hasMessage:i,hasArea:s,isInvalid:l})=>{const c=Fi[l?"negative":t];return le("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",c.text,i?c.borderMessage:!n&&c.border,Vo[e].group,{"ring-1":i,"opacity-60":r,"items-center":!s})},oP=({size:e,color:t})=>le("bg-transparent ring-0 w-full","focus:outline-hidden",[Vo[e].input],Fi[t].placeholder),Sm=({size:e,color:t})=>le("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Vo[e].input,Fi[t].placeholder),sP=({size:e,color:t,isDisabled:r,isAction:n})=>{const i=Fi[t];return le("transition-colors duration-200 rounded max-h-full h-fit",Vo[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?i.action:i.icon,{"cursor-pointer p-0.5":n&&!r,[i.actionHover]:n&&!r,"pointer-events-none":!n})},aP=({size:e,color:t,isDisabled:r})=>le("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",r?"text-muted":Fi[t].messageText,Fi[t].borderMessage,Fi[t].messageBackground,Vo[e].message,{"opacity-60":r}),lP=({size:e})=>le(Vo[e].icon);function Tc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cP=typeof global=="object"&&global&&global.Object===Object&&global,uP=typeof self=="object"&&self&&self.Object===Object&&self,gw=cP||uP||Function("return this")(),Md=function(){return gw.Date.now()},dP=/\s/;function fP(e){for(var t=e.length;t--&&dP.test(e.charAt(t)););return t}var pP=/^\s+/;function hP(e){return e&&e.slice(0,fP(e)+1).replace(pP,"")}var Rc=gw.Symbol,vw=Object.prototype,gP=vw.hasOwnProperty,vP=vw.toString,ys=Rc?Rc.toStringTag:void 0;function mP(e){var t=gP.call(e,ys),r=e[ys];try{e[ys]=void 0;var n=!0}catch{}var i=vP.call(e);return n&&(t?e[ys]=r:delete e[ys]),i}var bP=Object.prototype,yP=bP.toString;function wP(e){return yP.call(e)}var xP="[object Null]",SP="[object Undefined]",Em=Rc?Rc.toStringTag:void 0;function EP(e){return e==null?e===void 0?SP:xP:Em&&Em in Object(e)?mP(e):wP(e)}function _P(e){return e!=null&&typeof e=="object"}var OP="[object Symbol]";function kP(e){return typeof e=="symbol"||_P(e)&&EP(e)==OP}var _m=NaN,AP=/^[-+]0x[0-9a-f]+$/i,TP=/^0b[01]+$/i,RP=/^0o[0-7]+$/i,CP=parseInt;function Om(e){if(typeof e=="number")return e;if(kP(e))return _m;if(Tc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Tc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hP(e);var r=TP.test(e);return r||RP.test(e)?CP(e.slice(2),r?2:8):AP.test(e)?_m:+e}var PP="Expected a function",IP=Math.max,NP=Math.min;function lc(e,t,r){var n,i,s,l,c,u,f=0,g=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(PP);t=Om(t)||0,Tc(r)&&(g=!!r.leading,p="maxWait"in r,s=p?IP(Om(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h);function b(R){var j=n,P=i;return n=i=void 0,f=R,l=e.apply(P,j),l}function S(R){return f=R,c=setTimeout(m,t),g?b(R):l}function v(R){var j=R-u,P=R-f,z=t-j;return p?NP(z,s-P):z}function y(R){var j=R-u,P=R-f;return u===void 0||j>=t||j<0||p&&P>=s}function m(){var R=Md();if(y(R))return w(R);c=setTimeout(m,v(R))}function w(R){return c=void 0,h&&n?b(R):(n=i=void 0,l)}function x(){c!==void 0&&clearTimeout(c),f=0,n=u=i=c=void 0}function O(){return c===void 0?l:w(Md())}function _(){var R=Md(),j=y(R);if(n=arguments,i=this,u=R,j){if(c===void 0)return S(u);if(p)return clearTimeout(c),c=setTimeout(m,t),b(u)}return c===void 0&&(c=setTimeout(m,t)),l}return _.cancel=x,_.flush=O,_}var MP="Expected a function";function DP(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(MP);return Tc(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),lc(e,t,{leading:n,maxWait:t,trailing:i})}var ko=function(){return ko=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ko.apply(this,arguments)};function mw(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function bw(e){return!e||!e.ownerDocument?document:e.ownerDocument}var yw=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,i){var s=i.name.match(/data-simplebar-(.+)/);if(s){var l=s[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(i.value){case"true":n[l]=!0;break;case"false":n[l]=!1;break;case void 0:n[l]=!0;break;default:n[l]=i.value}}return n},t);return r};function ww(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function xw(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function Sw(e){return".".concat(e.split(" ").join("."))}var Ap=!!(typeof window<"u"&&window.document&&window.document.createElement),zP=Object.freeze({__proto__:null,addClasses:ww,canUseDOM:Ap,classNamesToQuery:Sw,getElementDocument:bw,getElementWindow:mw,getOptions:yw,removeClasses:xw}),_o=null,km=null;Ap&&window.addEventListener("resize",function(){km!==window.devicePixelRatio&&(km=window.devicePixelRatio,_o=null)});function Am(){if(_o===null){if(typeof document>"u")return _o=0,_o;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),_o=r}return _o}var ii=mw,Dd=bw,LP=yw,oi=ww,si=xw,ar=Sw,ws=(function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=ii(n.el);n.scrollXTicking||(i.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(i.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,oi(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){si(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(oi(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){si(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(i){n.mouseX=i.clientX,n.mouseY=i.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var s,l;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(s=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(l=n.isWithinBounds(n.axis.y.track.rect)),(s||l)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(s&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(i,"x"):n.onTrackClick(i,"x")),l&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(i,"y"):n.onTrackClick(i,"y"))))}},this.drag=function(i){var s,l,c,u,f,g,p,h,b,S,v;if(!(!n.draggedAxis||!n.contentWrapperEl)){var y,m=n.axis[n.draggedAxis].track,w=(l=(s=m.rect)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,x=n.axis[n.draggedAxis].scrollbar,O=(u=(c=n.contentWrapperEl)===null||c===void 0?void 0:c[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,_=parseInt((g=(f=n.elStyles)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].sizeAttr])!==null&&g!==void 0?g:"0px",10);i.preventDefault(),i.stopPropagation(),n.draggedAxis==="y"?y=i.pageY:y=i.pageX;var R=y-((h=(p=m.rect)===null||p===void 0?void 0:p[n.axis[n.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-n.axis[n.draggedAxis].dragOffset;R=n.draggedAxis==="x"&&n.isRtl?((S=(b=m.rect)===null||b===void 0?void 0:b[n.axis[n.draggedAxis].sizeAttr])!==null&&S!==void 0?S:0)-x.size-R:R;var j=R/(w-x.size),P=j*(O-_);n.draggedAxis==="x"&&n.isRtl&&(P=!((v=e.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-P:P),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(i){n.isDragging=!1;var s=Dd(n.el),l=ii(n.el);i.preventDefault(),i.stopPropagation(),si(n.el,n.classNames.dragging),n.onStopScrolling(),s.removeEventListener("mousemove",n.drag,!0),s.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=l.setTimeout(function(){s.removeEventListener("click",n.preventClick,!0),s.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=ko(ko({},e.defaultOptions),r),this.classNames=ko(ko({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=DP(this._onMouseMove,64),this.onWindowResize=lc(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=lc(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=lc(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var i=e.getOffset(r),s=e.getOffset(n);r.scrollLeft=-999;var l=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:i.left!==s.left,isScrollingToNegative:s.left!==l.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Am()}catch{return Am()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=Dd(t),i=ii(t);return{top:r.top+(i.pageYOffset||n.documentElement.scrollTop),left:r.left+(i.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){Ap&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(ar(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ar(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ar(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ar(this.classNames.offset)),this.maskEl=this.el.querySelector(ar(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ar(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ar(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ar(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ar(this.classNames.track)).concat(ar(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ar(this.classNames.track)).concat(ar(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(ar(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(ar(this.classNames.scrollbar)))||null,this.options.autoHide||(oi(this.axis.x.scrollbar.el,this.classNames.visible),oi(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=ii(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,s=n.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){i&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=ii(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||r>0,s=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,f=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(r||f,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var g=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&f>r,this.axis.y.isOverflowing=u>g,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&f>s-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>g-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],s=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,l=s/i,c;return c=Math.max(~~(l*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var r,n,i;t===void 0&&(t="y");var s=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),f=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];f=t==="x"&&this.isRtl&&!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero?-f:f,t==="x"&&this.isRtl&&(f=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?f:-f);var g=f/(l-u),p=~~((c-s.size)*g);p=t==="x"&&this.isRtl?-p+(c-s.size):p,s.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(oi(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(si(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),oi(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?oi(r.scrollbar.el,this.classNames.hover):si(r.scrollbar.el,this.classNames.hover)):(si(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),si(this.axis[t].track.el,this.classNames.hover),si(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y"),this.isDragging=!0;var i=Dd(this.el),s=ii(this.el),l=this.axis[r].scrollbar,c=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=c-(((n=l.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,oi(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,i,s,l,c;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var f=ii(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var g=this.axis[r].scrollbar,p=(s=(i=g.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])!==null&&s!==void 0?s:0,h=parseInt((c=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[r].sizeAttr])!==null&&c!==void 0?c:"0px",10),b=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],S=r==="y"?this.mouseY-p:this.mouseX-p,v=S<0?-1:1,y=v===-1?b-h:b+h,m=40,w=function(){n.contentWrapperEl&&(v===-1?b>y&&(b-=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=b,f.requestAnimationFrame(w)):b<y&&(b+=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=b,f.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=ii(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return n.call(i,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=LP,e.helpers=zP,e})(),xr=function(){return xr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},xr.apply(this,arguments)};function $P(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var Tp=B.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,s=$P(e,["children","scrollableNodeProps"]),l=B.useRef(),c=B.useRef(),u=B.useRef(),f={},g={};Object.keys(s).forEach(function(b){Object.prototype.hasOwnProperty.call(ws.defaultOptions,b)?f[b]=s[b]:g[b]=s[b]});var p=xr(xr({},ws.defaultOptions.classNames),f.classNames),h=xr(xr({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:f.tabIndex||ws.defaultOptions.tabIndex,role:"region","aria-label":f.ariaLabel||ws.defaultOptions.ariaLabel});return B.useEffect(function(){var b;return c.current=h.ref?h.ref.current:c.current,l.current&&(b=new ws(l.current,xr(xr(xr({},f),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(b):t&&(t.current=b)),function(){b==null||b.unMount(),b=null,typeof t=="function"&&t(null)}},[]),B.createElement("div",xr({"data-simplebar":"init",ref:l},g),B.createElement("div",{className:p.wrapper},B.createElement("div",{className:p.heightAutoObserverWrapperEl},B.createElement("div",{className:p.heightAutoObserverEl})),B.createElement("div",{className:p.mask},B.createElement("div",{className:p.offset},typeof r=="function"?r({scrollableNodeRef:c,scrollableNodeProps:xr(xr({},h),{ref:c}),contentNodeRef:u,contentNodeProps:{className:p.contentEl,ref:u}}):B.createElement("div",xr({},h),B.createElement("div",{className:p.contentEl},r)))),B.createElement("div",{className:p.placeholder})),B.createElement("div",{className:"".concat(p.track," ").concat(p.horizontal)},B.createElement("div",{className:p.scrollbar})),B.createElement("div",{className:"".concat(p.track," ").concat(p.vertical)},B.createElement("div",{className:p.scrollbar})))});Tp.displayName="SimpleBar";const Ew=N.forwardRef(({size:e="md",color:t="primary",isInvalid:r=!1,isDisabled:n=!1,isReadOnly:i=!1,className:s,children:l,...c},u)=>{const[f,g]=N.useState(!1),[p,h]=N.useState(!1),b={size:e,color:r?"negative":t,isInvalid:r,isDisabled:n,isReadOnly:i,hasMessage:f,setHasMessage:g,hasArea:p,setHasArea:h};return A.jsx(hw.Provider,{value:b,children:A.jsx("div",{ref:u,"data-qui":"Input",className:le(nP(),s),...c,children:l})})}),_w=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:f,isInvalid:g}=ka();return A.jsx("div",{ref:n,"data-qui":"InputGroup",className:le(iP({size:i,color:s,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:f,isInvalid:g}),e),...r,children:t})}),Ow=N.forwardRef(({className:e,...t},r)=>{const{size:n,color:i,isInvalid:s,isDisabled:l,isReadOnly:c}=ka(),{isDisabled:u,isReadOnly:f,...g}=t;return A.jsx("input",{ref:r,disabled:l||u,readOnly:f||c||!1,"aria-invalid":s,className:le(oP({size:n,color:i}),e),...g})}),jP=N.forwardRef(({className:e,wrapperClassName:t,autoHeight:r,...n},i)=>{const{size:s,color:l,isInvalid:c,isDisabled:u,setHasArea:f}=ka(),g=N.useRef(null),p=i||g,h=N.useRef(null);N.useEffect(()=>(f(!0),()=>{f(!1)}),[f]);const b=N.useCallback(()=>{if(g.current){const x=g.current;x.style.height="auto",x.style.height=`${x.scrollHeight}px`}},[]),S=x=>{var O;b(),(O=n.onInput)==null||O.call(n,x)};N.useEffect(()=>{b()},[b,n.value]),N.useEffect(()=>{r&&h.current&&h.current.style.removeProperty("height")},[r]);const v=x=>{x.preventDefault();const O=h.current;if(!O)return;const _=x.clientY,R=O.offsetHeight,j=z=>{const W=R+(z.clientY-_);W>30&&(O.style.height=W+"px")},P=()=>{document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",P)};document.addEventListener("mousemove",j),document.addEventListener("mouseup",P)},{isDisabled:y,isReadOnly:m,...w}=n;return A.jsxs("div",{ref:h,className:le("w-full relative",!r&&!n.rows&&"h-30",t),children:[r?A.jsx("textarea",{ref:p,rows:1,className:le(Sm({size:s,color:l}),e),disabled:u||y,onInput:S,readOnly:m||!1,"aria-invalid":c,style:{overflow:"hidden"},...w}):A.jsx(Tp,{style:{height:"100%"},children:A.jsx("textarea",{ref:p,rows:1,className:le(Sm({size:s,color:l}),e),disabled:u||y,onInput:S,readOnly:m||!1,"aria-invalid":c,style:{height:"auto",overflow:"hidden",width:"100%"},...w})}),!r&&A.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:v,children:A.jsx(F2,{})})]})}),kw=N.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:i,...s},l)=>{const{size:c,color:u,isDisabled:f}=ka(),g=r||f,p=sP({size:c,color:u,isDisabled:g,isAction:e});return A.jsx("div",{ref:l,"data-qui":"InputIcon",className:le(p,t),style:n,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!g?0:void 0,"aria-disabled":g,...s,children:i})}),FP=N.forwardRef(({icon:e,className:t,children:r,...n},i)=>{const{size:s,color:l,setHasMessage:c,isDisabled:u}=ka();return N.useEffect(()=>(c(!0),()=>{c(!1)}),[c]),A.jsxs("div",{ref:i,"data-qui":"InputMessage",role:"alert",className:le(aP({size:s,color:l,isDisabled:u}),t),...n,children:[e!==void 0&&A.jsx("div",{className:le(lP({size:s}),t),children:e}),A.jsx("p",{children:r})]})});Ew.displayName="InputRoot";_w.displayName="InputGroup";Ow.displayName="InputField";jP.displayName="InputArea";kw.displayName="InputIcon";FP.displayName="InputMessage";const xs={Root:Ew,Group:_w,Field:Ow,Icon:kw},da={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},HP=({color:e})=>le("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",da[e].container,da[e].icon),BP=({color:e})=>le("text-xs font-medium leading-3",da[e].text),WP=({color:e})=>le("p-0.5 rounded cursor-pointer",da[e].button,da[e].icon),Aw=({label:e,color:t="primary",position:r="up",showCloseButton:n=!1,icon:i,children:s,delay:l=0,trigger:c="hover",className:u,container:f,isHidden:g=!1})=>{const[p,h]=N.useState(!1),[b,S]=N.useState(!1),[v,y]=N.useState({position:r,transform:""}),m=N.useRef(null),w=N.useRef(null),x=N.useRef(null),O=p&&!g;N.useEffect(()=>{O||S(!1)},[O]);const _=N.useCallback(()=>{if(!m.current||!w.current)return;const F=m.current.getBoundingClientRect(),Z=w.current.getBoundingClientRect(),X=window.innerWidth,pe=window.innerHeight,$=window.scrollX,G=window.scrollY,te=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,X),Q=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,pe),Y=4;let ce=r,ie={position:ce,transform:""};const re=xe=>{const{top:J,left:Pe,width:ve,height:Le}=F,qe=J+G,it=Pe+$;switch(xe){case"up":return{top:`${qe-Z.height-Y}px`,left:`${it+ve/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${qe-Z.height-Y}px`,left:`${it}px`,transform:"translateX(0)"};case"up-end":return{top:`${qe-Z.height-Y}px`,left:`${it+ve-Z.width}px`,transform:"translateX(0)"};case"down":return{top:`${qe+Le+Y}px`,left:`${it+ve/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${qe+Le+Y}px`,left:`${it}px`,transform:"translateX(0)"};case"down-end":return{top:`${qe+Le+Y}px`,left:`${it+ve-Z.width}px`,transform:"translateX(0)"};case"left":return{top:`${qe+Le/2}px`,left:`${it-Z.width-Y}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${qe}px`,left:`${it-Z.width-Y}px`,transform:"translateY(0)"};case"left-end":return{top:`${qe+Le-Z.height}px`,left:`${it-Z.width-Y}px`,transform:"translateY(0)"};case"right":return{top:`${qe+Le/2}px`,left:`${it+ve+Y}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${qe}px`,left:`${it+ve+Y}px`,transform:"translateY(0)"};case"right-end":return{top:`${qe+Le-Z.height}px`,left:`${it+ve+Y}px`,transform:"translateY(0)"};default:return{}}},de={up:{fits:F.top-Z.height-Y>=0},"up-start":{fits:F.top-Z.height-Y>=0&&F.left+Z.width<=X},"up-end":{fits:F.top-Z.height-Y>=0&&F.right-Z.width>=0},down:{fits:F.bottom+Z.height+Y<=pe&&F.bottom+Z.height+Y<=Q},"down-start":{fits:F.bottom+Z.height+Y<=pe&&F.bottom+Z.height+Y<=Q&&F.left+Z.width<=X},"down-end":{fits:F.bottom+Z.height+Y<=pe&&F.bottom+Z.height+Y<=Q&&F.right-Z.width>=0},left:{fits:F.left-Z.width-Y>=0},"left-start":{fits:F.left-Z.width-Y>=0&&F.top+Z.height<=pe},"left-end":{fits:F.left-Z.width-Y>=0&&F.bottom-Z.height>=0},right:{fits:F.right+Z.width+Y<=X&&F.right+Z.width+Y<=te},"right-start":{fits:F.right+Z.width+Y<=X&&F.right+Z.width+Y<=te&&F.top+Z.height<=pe},"right-end":{fits:F.right+Z.width+Y<=X&&F.right+Z.width+Y<=te&&F.bottom-Z.height>=0}},ge=F.left+F.width/2-Z.width/2,he=F.left+F.width/2+Z.width/2;if((r==="up"||r==="down")&&(ge<0||he>X)&&(de[r].fits=!1),de[r].fits){const xe=re(r);ie={position:r,...xe,transform:xe.transform||""}}else{const xe=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(J=>de[J].fits);if(xe){ce=xe;const J=re(xe);ie={position:ce,...J,transform:J.transform||""}}else{const J={up:F.top,"up-start":F.top,"up-end":F.top,down:Math.min(pe-F.bottom,Q-F.bottom),"down-start":Math.min(pe-F.bottom,Q-F.bottom),"down-end":Math.min(pe-F.bottom,Q-F.bottom),left:F.left,"left-start":F.left,"left-end":F.left,right:Math.min(X-F.right,te-F.right),"right-start":Math.min(X-F.right,te-F.right),"right-end":Math.min(X-F.right,te-F.right)},Pe=Object.entries(J).reduce((Le,[qe,it])=>it>Le.space?{position:qe,space:it}:Le,{position:"up",space:0}).position;ce=Pe;const ve=re(Pe);ie={position:ce,...ve,transform:ve.transform||""}}}y(ie)},[r]),R=()=>{x.current&&(clearTimeout(x.current),x.current=null)},j=()=>{R(),h(!1)},P=()=>{R(),l===0?h(!1):x.current=setTimeout(()=>h(!1),l)},z=()=>{c==="click"&&(h(!0),R(),x.current=setTimeout(()=>{b||h(!1)},l))},W=F=>{F.stopPropagation(),j()},L=()=>{S(!0),R()},M=()=>{S(!1),p&&P()},V=()=>{c==="hover"&&(R(),h(!0))},U=()=>{c==="hover"&&P()};N.useEffect(()=>{if(!p||g||!m.current)return;const F=m.current;let Z=!1,X=!1;const pe=new IntersectionObserver(([$])=>{if(!Z){X=$.isIntersecting,Z=!0;return}X&&!$.isIntersecting&&j(),X=$.isIntersecting},{threshold:0});return pe.observe(F),()=>pe.disconnect()},[p,g]),N.useEffect(()=>{if(p){const F=requestAnimationFrame(()=>_());return()=>cancelAnimationFrame(F)}},[p,e,_]),N.useEffect(()=>{if(p){const F=setTimeout(()=>_(),0);return()=>clearTimeout(F)}},[p,_]),N.useEffect(()=>{const F=()=>{p&&_()},Z=()=>{p&&_()};return window.addEventListener("resize",F),window.addEventListener("scroll",Z,!0),()=>{window.removeEventListener("resize",F),window.removeEventListener("scroll",Z,!0),R()}},[p,_]);const I=f||(typeof document<"u"?document.body:null);return I?A.jsxs(A.Fragment,{children:[A.jsx("div",{"data-qui":"Tooltip",ref:m,onClick:z,onMouseEnter:V,onMouseLeave:U,className:le("relative inline-flex items-center",u),children:s}),p&&!g&&!!e&&En.createPortal(A.jsxs("div",{ref:w,role:"tooltip",className:HP({color:t}),style:{position:"absolute",left:v.left??0,top:v.top??0,transform:v.transform,zIndex:1e3,opacity:v.left?1:0,pointerEvents:n?"auto":"none"},onMouseEnter:n?L:void 0,onMouseLeave:n?M:void 0,children:[i&&A.jsx("span",{"data-testid":"tooltip-icon",children:i}),A.jsx("div",{className:BP({color:t}),children:e}),n&&A.jsx("div",{onClick:W,className:WP({color:t}),role:"button",children:A.jsx(Bo,{})})]}),I)]}):null};var Tm;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Tm||(Tm={}));const UP=Object.freeze({x:0,y:0});var Ao;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ao||(Ao={}));var Rm;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Rm||(Rm={}));var Lr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Lr||(Lr={}));Lr.Space,Lr.Enter,Lr.Esc,Lr.Space,Lr.Enter,Lr.Tab;var Cm;(function(e){e[e.RightClick=2]="RightClick"})(Cm||(Cm={}));var Pm;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Pm||(Pm={}));var Im;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Im||(Im={}));Ao.Backward+"",Ao.Forward+"",Ao.Backward+"",Ao.Forward+"";var jf;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(jf||(jf={}));var Ff;(function(e){e.Optimized="optimized"})(Ff||(Ff={}));jf.WhileDragging,Ff.Optimized;({...UP});var Nm;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Nm||(Nm={}));Lr.Down,Lr.Right,Lr.Up,Lr.Left;const Tw={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},VP={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},qP=(e,t,r,n)=>{const i=VP[e],s=Tw[t],l="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return n?le(l,s.padding,s.text,s.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):r?le(l,s.padding,s.text,s.gap,i.active.bg,i.active.text,"shadow-xs"):le(l,s.padding,s.text,s.gap,i.inactive.bg,i.inactive.text,i.hover.bg,i.hover.text)},GP=(e,t)=>le("flex items-center justify-center",Tw[e].icon,{"opacity-50":t}),ZP=()=>le("whitespace-nowrap"),Rw=(e,t)=>{const r=le("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?le(r,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?le(r,"border border-transparent bg-tab-inactive-bg text-inactive-text"):le(r,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},KP=N.createContext(void 0),YP=N.forwardRef(({value:e,label:t,icon:r,disabled:n,children:i,className:s,onClick:l,active:c,onClose:u,closable:f,touched:g,content:p,renderTab:h,...b},S)=>{const v=N.useContext(KP);if(!v)return null;const{activeTab:y,onTabChange:m,variant:w,color:x,size:O,showIcons:_,disabled:R}=v,j=c!==void 0?c:y===e,P=n||R,z=W=>{P||(m(e),l==null||l(W))};return w==="file"?A.jsx("div",{"data-qui":"FileTabItem",className:le(Rw(j,!1),"cursor-pointer",s),onClick:W=>!P&&z(W),children:i||A.jsx(A.Fragment,{children:A.jsxs("span",{className:"flex items-center gap-2",children:[r,A.jsx("span",{children:t})]})})}):A.jsxs("button",{ref:S,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":j,"aria-disabled":P,className:le(qP(x,O,j,P||!1),s),onClick:z,disabled:P,...b,children:[_&&r&&A.jsx("span",{className:GP(O,P||!1),children:r}),A.jsx("span",{className:ZP(),children:i||t})]})});YP.displayName="TabItem";const XP=N.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:r,...n},i)=>A.jsx("div",{"data-qui":"TabNavContainer",className:Rw(e,t),ref:i,...n,children:r}));XP.displayName="TabNavContainer";var kt=function(){return kt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},kt.apply(this,arguments)},Mm={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Dm={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Pl={width:"20px",height:"20px",position:"absolute",zIndex:1},JP={top:kt(kt({},Mm),{top:"-5px"}),right:kt(kt({},Dm),{left:void 0,right:"-5px"}),bottom:kt(kt({},Mm),{top:void 0,bottom:"-5px"}),left:kt(kt({},Dm),{left:"-5px"}),topRight:kt(kt({},Pl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:kt(kt({},Pl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:kt(kt({},Pl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:kt(kt({},Pl),{left:"-10px",top:"-10px",cursor:"nw-resize"})},QP=N.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,i=e.replaceStyles,s=e.className,l=N.useCallback(function(f){t(f,r)},[t,r]),c=N.useCallback(function(f){t(f,r)},[t,r]),u=N.useMemo(function(){return kt(kt({position:"absolute",userSelect:"none"},JP[r]),i??{})},[i,r]);return A.jsx("div",{className:s||void 0,style:u,onMouseDown:l,onTouchStart:c,children:n})}),eI=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),pn=function(){return pn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},pn.apply(this,arguments)},tI={width:"auto",height:"auto"},Il=function(e,t,r){return Math.max(Math.min(e,r),t)},zm=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},mo=function(e,t){return new RegExp(e,"i").test(t)},Nl=function(e){return!!(e.touches&&e.touches.length)},rI=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Lm=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(s,l,c){return Math.abs(l-e)<Math.abs(t[s]-e)?c:s},0),i=Math.abs(t[n]-e);return r===0||i<r?t[n]:e},zd=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Ml=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return r*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return n*i}}return e},nI=function(e,t,r,n,i,s,l){return n=Ml(n,e.width,t,r),i=Ml(i,e.height,t,r),s=Ml(s,e.width,t,r),l=Ml(l,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof l>"u"?void 0:Number(l)}},iI=function(e){return Array.isArray(e)?e:[e,e]},oI=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],$m="__resizable_base__",sI=(function(e){eI(t,e);function t(r){var n,i,s,l,c=e.call(this,r)||this;return c.ratio=1,c.resizable=null,c.parentLeft=0,c.parentTop=0,c.resizableLeft=0,c.resizableRight=0,c.resizableTop=0,c.resizableBottom=0,c.targetLeft=0,c.targetTop=0,c.delta={width:0,height:0},c.appendBase=function(){if(!c.resizable||!c.window)return null;var u=c.parentNode;if(!u)return null;var f=c.window.document.createElement("div");return f.style.width="100%",f.style.height="100%",f.style.position="absolute",f.style.transform="scale(0, 0)",f.style.left="0",f.style.flex="0 0 100%",f.classList?f.classList.add($m):f.className+=$m,u.appendChild(f),f},c.removeBase=function(u){var f=c.parentNode;f&&f.removeChild(u)},c.state={isResizing:!1,width:(i=(n=c.propsSize)===null||n===void 0?void 0:n.width)!==null&&i!==void 0?i:"auto",height:(l=(s=c.propsSize)===null||s===void 0?void 0:s.height)!==null&&l!==void 0?l:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},c.onResizeStart=c.onResizeStart.bind(c),c.onMouseMove=c.onMouseMove.bind(c),c.onMouseUp=c.onMouseUp.bind(c),c}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||tI},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,s=this.resizable.offsetHeight,l=this.resizable.style.position;l!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:s,this.resizable.style.position=l}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,i=function(c){var u;if(typeof r.state[c]>"u"||r.state[c]==="auto")return"auto";if(r.propsSize&&r.propsSize[c]&&!((u=r.propsSize[c])===null||u===void 0)&&u.toString().endsWith("%")){if(r.state[c].toString().endsWith("%"))return r.state[c].toString();var f=r.getParentSize(),g=Number(r.state[c].toString().replace("px","")),p=g/f[c]*100;return"".concat(p,"%")}return zd(r.state[c])},s=n&&typeof n.width<"u"&&!this.state.isResizing?zd(n.width):i("width"),l=n&&typeof n.height<"u"&&!this.state.isResizing?zd(n.height):i("height");return{width:s,height:l}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var s={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=i),this.removeBase(r),s},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var i=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof i>"u"||i==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var i=this.props.boundsByDirection,s=this.state.direction,l=i&&mo("left",s),c=i&&mo("top",s),u,f;if(this.props.bounds==="parent"){var g=this.parentNode;g&&(u=l?this.resizableRight-this.parentLeft:g.offsetWidth+(this.parentLeft-this.resizableLeft),f=c?this.resizableBottom-this.parentTop:g.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,f=c?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),f=c?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(r=r&&r<u?r:u),f&&Number.isFinite(f)&&(n=n&&n<f?n:f),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var i=this.props.scale||1,s=iI(this.props.resizeRatio||1),l=s[0],c=s[1],u=this.state,f=u.direction,g=u.original,p=this.props,h=p.lockAspectRatio,b=p.lockAspectRatioExtraHeight,S=p.lockAspectRatioExtraWidth,v=g.width,y=g.height,m=b||0,w=S||0;return mo("right",f)&&(v=g.width+(r-g.x)*l/i,h&&(y=(v-w)/this.ratio+m)),mo("left",f)&&(v=g.width-(r-g.x)*l/i,h&&(y=(v-w)/this.ratio+m)),mo("bottom",f)&&(y=g.height+(n-g.y)*c/i,h&&(v=(y-m)*this.ratio+w)),mo("top",f)&&(y=g.height-(n-g.y)*c/i,h&&(v=(y-m)*this.ratio+w)),{newWidth:v,newHeight:y}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,i,s){var l=this.props,c=l.lockAspectRatio,u=l.lockAspectRatioExtraHeight,f=l.lockAspectRatioExtraWidth,g=typeof s.width>"u"?10:s.width,p=typeof i.width>"u"||i.width<0?r:i.width,h=typeof s.height>"u"?10:s.height,b=typeof i.height>"u"||i.height<0?n:i.height,S=u||0,v=f||0;if(c){var y=(h-S)*this.ratio+v,m=(b-S)*this.ratio+v,w=(g-v)/this.ratio+S,x=(p-v)/this.ratio+S,O=Math.max(g,y),_=Math.min(p,m),R=Math.max(h,w),j=Math.min(b,x);r=Il(r,O,_),n=Il(n,R,j)}else r=Il(r,g,p),n=Il(n,h,b);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left*r,this.parentTop=i.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var s=this.props.bounds.getBoundingClientRect();this.targetLeft=s.left*r,this.targetTop=s.top*r}if(this.resizable){var l=this.resizable.getBoundingClientRect(),c=l.left,u=l.top,f=l.right,g=l.bottom;this.resizableLeft=c*r,this.resizableRight=f*r,this.resizableTop=u*r,this.resizableBottom=g*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var i=0,s=0;if(r.nativeEvent&&rI(r.nativeEvent)?(i=r.nativeEvent.clientX,s=r.nativeEvent.clientY):r.nativeEvent&&Nl(r.nativeEvent)&&(i=r.nativeEvent.touches[0].clientX,s=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var l=this.props.onResizeStart(r,n,this.resizable);if(l===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var c,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var f=this.parentNode;if(f){var g=this.window.getComputedStyle(f).flexDirection;this.flexDir=g.startsWith("row")?"row":"column",c=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:i,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:pn(pn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:c};this.setState(p)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Nl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var i=this.props,s=i.maxWidth,l=i.maxHeight,c=i.minWidth,u=i.minHeight,f=Nl(r)?r.touches[0].clientX:r.clientX,g=Nl(r)?r.touches[0].clientY:r.clientY,p=this.state,h=p.direction,b=p.original,S=p.width,v=p.height,y=this.getParentSize(),m=nI(y,this.window.innerWidth,this.window.innerHeight,s,l,c,u);s=m.maxWidth,l=m.maxHeight,c=m.minWidth,u=m.minHeight;var w=this.calculateNewSizeFromDirection(f,g),x=w.newHeight,O=w.newWidth,_=this.calculateNewMaxFromBoundary(s,l);this.props.snap&&this.props.snap.x&&(O=Lm(O,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=Lm(x,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(O,x,{width:_.maxWidth,height:_.maxHeight},{width:c,height:u});if(O=R.newWidth,x=R.newHeight,this.props.grid){var j=zm(O,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),P=zm(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),z=this.props.snapGap||0,W=z===0||Math.abs(j-O)<=z?j:O,L=z===0||Math.abs(P-x)<=z?P:x;O=W,x=L}var M={width:O-b.width,height:x-b.height};if(this.delta=M,S&&typeof S=="string"){if(S.endsWith("%")){var V=O/y.width*100;O="".concat(V,"%")}else if(S.endsWith("vw")){var U=O/this.window.innerWidth*100;O="".concat(U,"vw")}else if(S.endsWith("vh")){var I=O/this.window.innerHeight*100;O="".concat(I,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var V=x/y.height*100;x="".concat(V,"%")}else if(v.endsWith("vw")){var U=x/this.window.innerWidth*100;x="".concat(U,"vw")}else if(v.endsWith("vh")){var I=x/this.window.innerHeight*100;x="".concat(I,"vh")}}var F={width:this.createSizeForCssProperty(O,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?F.flexBasis=F.width:this.flexDir==="column"&&(F.flexBasis=F.height);var Z=this.state.width!==F.width,X=this.state.height!==F.height,pe=this.state.flexBasis!==F.flexBasis,$=Z||X||pe;$&&En.flushSync(function(){n.setState(F)}),this.props.onResize&&$&&this.props.onResize(r,h,this.resizable,M)}},t.prototype.onMouseUp=function(r){var n,i,s=this.state,l=s.isResizing,c=s.direction;s.original,!(!l||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,c,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:pn(pn({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,i;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(i=r.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,i=n.enable,s=n.handleStyles,l=n.handleClasses,c=n.handleWrapperStyle,u=n.handleWrapperClass,f=n.handleComponent;if(!i)return null;var g=Object.keys(i).map(function(p){return i[p]!==!1?A.jsx(QP,{direction:p,onResizeStart:r.onResizeStart,replaceStyles:s&&s[p],className:l&&l[p],children:f&&f[p]?f[p]:null},p):null});return A.jsx("div",{className:u,style:c,children:g})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(l,c){return oI.indexOf(c)!==-1||(l[c]=r.props[c]),l},{}),i=pn(pn(pn({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var s=this.props.as||"div";return A.jsxs(s,pn({style:i,className:this.props.className},n,{ref:function(l){l&&(r.resizable=l)},children:[this.state.isResizing&&A.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(N.PureComponent);const aI={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},lI={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},Cw=({depth:e=0,className:t,borderType:r,disabled:n})=>le("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?lI[r]:"border-panel-border",aI[e],t),cI=e=>{if(!e)return{};const t={},r=e.match(/min-w-\[(\d+)px\]/);r&&(t.minWidth=parseInt(r[1],10));const n=e.match(/max-w-\[(\d+)px\]/);n&&(t.maxWidth=parseInt(n[1],10));const i=e.match(/min-h-\[(\d+)px\]/);i&&(t.minHeight=parseInt(i[1],10));const s=e.match(/max-h-\[(\d+)px\]/);return s&&(t.maxHeight=parseInt(s[1],10)),t},Pw=N.forwardRef(({children:e,width:t,height:r,minWidth:n=10,minHeight:i=10,maxWidth:s,maxHeight:l,defaultWidth:c,defaultHeight:u,defaultSize:f,size:g,grid:p,snap:h,lockAspectRatio:b=!1,enable:S,handleStyles:v={},handleClasses:y={},handleComponent:m={},style:w={},className:x,onResizeStart:O,onResize:_,onResizeStop:R,scale:j=1,bounds:P,snapGap:z,as:W="div",depth:L,disabled:M},V)=>{const U=Cw({depth:L,className:x,disabled:M}),I=cI(x),F=g?{size:g}:t!==void 0||r!==void 0?{size:{width:t??"auto",height:r??"auto"}}:{},Z=f?{defaultSize:f}:c!==void 0||u!==void 0?{defaultSize:{width:c??"auto",height:u??"auto"}}:{},X=N.useRef(null);return N.useImperativeHandle(V,()=>{var pe;return(pe=X.current)==null?void 0:pe.resizable}),A.jsx(sI,{"data-qui":"Resizable",ref:X,...F,...Z,minWidth:n??I.minWidth,minHeight:i??I.minHeight,maxWidth:s??I.maxWidth,maxHeight:l??I.maxHeight,grid:p,snap:h,lockAspectRatio:b,enable:S,handleStyles:v,handleClasses:y,handleComponent:m,style:w,className:le("relative box-border",U),onResizeStart:O,onResize:_,onResizeStop:R,scale:j,bounds:P,snapGap:z,as:W,children:e})});Pw.displayName="Resizable";const Iw=({isDragging:e=!1,className:t})=>A.jsx("div",{className:le("absolute inset-0 flex items-center justify-center transition-colors",{"bg-primary/30":e},t),children:A.jsx("div",{className:le("h-full w-full transition-all",{"bg-primary":e,"bg-transparent hover:bg-primary/20":!e})})});Iw.displayName="Handle";const bo={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},Dl={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},uI=(e,t,r,n,i,s)=>({container:le("inline-flex items-center",bo[e].gap,s),track:le("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between",bo[e].track,{[Dl[t].bg]:r&&!n&&!i,"bg-input-bg":!r&&!n||i,"bg-panel cursor-not-allowed":n,"cursor-pointer":!n}),thumb:le("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",bo[e].thumb,r?bo[e].thumbChecked:bo[e].thumbUnchecked,{[Dl[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:le("flex items-center justify-center z-10 w-1/2 p-0.5",{[Dl[t].icon]:!r&&!n,"text-panel-subtle":n||r}),iconRight:le("flex items-center justify-center z-10 w-1/2 p-0.5",{[Dl[t].icon]:r&&!n,"text-panel-subtle":n||!r}),label:le("font-medium text-body",bo[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),Nw=N.forwardRef(({label:e,checked:t,defaultChecked:r=!1,disabled:n=!1,size:i="md",color:s="primary",icons:l,onChange:c,className:u,id:f,name:g,...p},h)=>{const[b,S]=N.useState(r),v=t!==void 0,y=v?t:b,m=()=>{const x=!y;v||S(x),c==null||c(x)},w=uI(i,s,y,n,!!l,u);return A.jsxs("div",{"data-qui":"Toggle",className:w.container,children:[e&&A.jsx("label",{htmlFor:f,className:w.label,children:e}),A.jsxs("button",{ref:h,...p,type:"button",role:"switch","aria-checked":y,"aria-label":e,disabled:n,onClick:m,name:g,id:f,className:w.track,children:[l&&A.jsx("span",{className:w.iconLeft,children:l.unchecked}),A.jsx("span",{className:w.thumb,"aria-hidden":"true"}),l&&A.jsx("span",{className:w.iconRight,children:l.checked})]})]})});Nw.displayName="Toggle";N.createContext(null);const qi=N.forwardRef(({depth:e=0,className:t,children:r,borderType:n,disabled:i,...s},l)=>{const c=Cw({depth:e,className:t,borderType:n,disabled:i});return A.jsx("div",{"data-qui":"Panel",ref:l,className:c,"aria-disabled":i,...s,children:r})});qi.displayName="Panel";const fa={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},cc={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},dark:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},dI=(e,t,r,n)=>le("inline-flex items-center justify-center font-medium border",fa[e].container,cc[t].bg,cc[t].text,cc[t].border,fa[e].text,{"opacity-60 pointer-events-none":r,"cursor-pointer hover:bg-opacity-90 transition-opacity":n&&!r}),fI=(e,t,r)=>le({[fa[e].icon]:!r,"bg-canvas-default outline-canvas-default text-primary":r&&t!=="white"||r,"bg-primary outline-primary text-button-text":r&&t==="white"&&!r,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":r||r}),pI=e=>le(fa[e].text),Mw=(e,t,r)=>le("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",fa[e].iconButton,cc[t].buttonHover,{"pointer-events-none":r}),Dw=N.createContext(null),Zc=()=>{const e=N.useContext(Dw);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},Rp=N.forwardRef(({size:e="md",color:t="primary",className:r,children:n,disabled:i=!1,onClick:s,...l},c)=>{const u={size:e,color:t,disabled:i},f=!!s;return A.jsx(Dw.Provider,{value:u,children:A.jsx("div",{"data-qui":"Pill",ref:c,onClick:s,className:le(dI(e,t,i,f),r),...l,children:n})})});Rp.displayName="Pill.Root";const Cp=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i}=Zc();return A.jsx("span",{ref:n,className:le(pI(i),e),...r,children:t})});Cp.displayName="Pill.Text";const Pp=N.forwardRef(({className:e,children:t,label:r,position:n,...i},s)=>{const{size:l,color:c,disabled:u}=Zc(),f=!!r,g=A.jsx("span",{ref:s,className:le(fI(l,c,f),e,{"opacity-60":u}),...i,children:t});return f&&!u?A.jsx(Aw,{label:r||"",position:n||"up",children:g}):g});Pp.displayName="Pill.Icon";const zw=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,disabled:l}=Zc();return A.jsx("button",{ref:n,type:"button",disabled:l,className:le(Mw(i,s,l),e),...r,children:t})});zw.displayName="Pill.Button";const Ip=N.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...i},s)=>{const{size:l,color:c,disabled:u}=Zc();return A.jsx("button",{ref:s,type:"button",disabled:u,className:le(Mw(l,c,u),e),onClick:t,"aria-label":r,...i,children:n||A.jsx(Bo,{})})});Ip.displayName="Pill.Close";const Lw=N.forwardRef(({size:e="md",color:t="primary",label:r,icon:n,onClose:i,closable:s=!1,className:l,children:c,disabled:u=!1,...f},g)=>A.jsxs(Rp,{ref:g,size:e,color:t,className:l,disabled:u,...f,children:[n&&A.jsx(Pp,{children:n}),c||r&&A.jsx(Cp,{children:r}),s&&A.jsx(Ip,{onClose:i})]}));Lw.displayName="Pill";Object.assign(Lw,{Root:Rp,Text:Cp,Icon:Pp,Button:zw,Close:Ip});function yo(e,t,r){let n=r.initialDeps??[],i,s=!0;function l(){var c,u,f;let g;r.key&&(c=r.debug)!=null&&c.call(r)&&(g=Date.now());const p=e();if(!(p.length!==n.length||p.some((b,S)=>n[S]!==b)))return i;n=p;let h;if(r.key&&(u=r.debug)!=null&&u.call(r)&&(h=Date.now()),i=t(...p),r.key&&(f=r.debug)!=null&&f.call(r)){const b=Math.round((Date.now()-g)*100)/100,S=Math.round((Date.now()-h)*100)/100,v=S/16,y=(m,w)=>{for(m=String(m);m.length<w;)m=" "+m;return m};console.info(`%c⏱ ${y(S,5)} /${y(b,5)} ms`,`
|
|
15
|
+
font-size: .6rem;
|
|
16
|
+
font-weight: bold;
|
|
17
|
+
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,r==null?void 0:r.key)}return r!=null&&r.onChange&&!(s&&r.skipInitialOnChange)&&r.onChange(i),s=!1,i}return l.updateDeps=c=>{n=c},l}function jm(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const hI=(e,t)=>Math.abs(e-t)<1.01,gI=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}},Fm=e=>{const{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},vI=e=>e,mI=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let i=t;i<=r;i++)n.push(i);return n},bI=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const i=l=>{const{width:c,height:u}=l;t({width:Math.round(c),height:Math.round(u)})};if(i(Fm(r)),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(l=>{const c=()=>{const u=l[0];if(u!=null&&u.borderBoxSize){const f=u.borderBoxSize[0];if(f){i({width:f.inlineSize,height:f.blockSize});return}}i(Fm(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},Hm={passive:!0},Bm=typeof window>"u"?!0:"onscrollend"in window,yI=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let i=0;const s=e.options.useScrollendEvent&&Bm?()=>{}:gI(n,()=>{t(i,!1)},e.options.isScrollingResetDelay),l=g=>()=>{const{horizontal:p,isRtl:h}=e.options;i=p?r.scrollLeft*(h&&-1||1):r.scrollTop,s(),t(i,g)},c=l(!0),u=l(!1);r.addEventListener("scroll",c,Hm);const f=e.options.useScrollendEvent&&Bm;return f&&r.addEventListener("scrollend",u,Hm),()=>{r.removeEventListener("scroll",c),f&&r.removeEventListener("scrollend",u)}},wI=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]},xI=(e,{adjustments:t=0,behavior:r},n)=>{var i,s;const l=e+t;(s=(i=n.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[n.options.horizontal?"left":"top"]:l,behavior:r})};class SI{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var r,n,i;return((i=(n=(r=this.targetWindow)==null?void 0:r.performance)==null?void 0:n.now)==null?void 0:i.call(n))??Date.now()},this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{const l=()=>{const c=s.target,u=this.indexFromElement(c);if(!c.isConnected){this.observer.unobserve(c);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(c,s,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var i;(i=n())==null||i.disconnect(),r=null},observe:i=>{var s;return(s=n())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=n())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,i])=>{typeof i>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:vI,rangeExtractor:mI,onChange:()=>{},measureElement:wI,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...r}},this.notify=r=>{var n,i;(i=(n=this.options).onChange)==null||i.call(n,this,r)},this.maybeNotify=yo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=s,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const i=new Map,s=new Map;for(let l=n-1;l>=0;l--){const c=r[l];if(i.has(c.lane))continue;const u=s.get(c.lane);if(u==null||c.end>u.end?s.set(c.lane,c):c.end<u.end&&i.set(c.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((l,c)=>l.end===c.end?l.index-c.index:l.end-c.end)[0]:void 0},this.getMeasurementOptions=yo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(r,n,i,s,l,c)=>(this.prevLanes!==void 0&&this.prevLanes!==c&&(this.lanesChangedFlag=!0),this.prevLanes=c,this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:i,getItemKey:s,enabled:l,lanes:c}),{key:!1}),this.getMeasurements=yo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:i,getItemKey:s,enabled:l,lanes:c},u)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>r)for(const h of this.laneAssignments.keys())h>=r&&this.laneAssignments.delete(h);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const f=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===r&&(this.lanesSettling=!1);const g=this.measurementsCache.slice(0,f),p=new Array(c).fill(void 0);for(let h=0;h<f;h++){const b=g[h];b&&(p[b.lane]=h)}for(let h=f;h<r;h++){const b=s(h),S=this.laneAssignments.get(h);let v,y;if(S!==void 0&&this.options.lanes>1){v=S;const O=p[v],_=O!==void 0?g[O]:void 0;y=_?_.end+this.options.gap:n+i}else{const O=this.options.lanes===1?g[h-1]:this.getFurthestMeasurement(g,h);y=O?O.end+this.options.gap:n+i,v=O?O.lane:h%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(h,v)}const m=u.get(b),w=typeof m=="number"?m:this.options.estimateSize(h),x=y+w;g[h]={index:h,start:y,size:w,end:x,key:b,lane:v},p[v]=h}return this.measurementsCache=g,g},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=yo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(r,n,i,s)=>this.range=r.length>0&&n>0?EI({measurements:r,outerSize:n,scrollOffset:i,lanes:s}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=yo(()=>{let r=null,n=null;const i=this.calculateRange();return i&&(r=i.startIndex,n=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,r,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,i,s,l)=>s===null||l===null?[]:r({startIndex:s,endIndex:l,overscan:n,count:i}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,i=r.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=r=>{var n;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const i=this.scrollState.index??((n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:n.index);if(i!==void 0&&this.range){const s=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,i-s),c=Math.min(this.options.count-1,i+s);return r>=l&&r<=c}return!0},this.measureElement=r=>{if(!r){this.elementsCache.forEach((l,c)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(c))});return}const n=this.indexFromElement(r),i=this.options.getItemKey(n),s=this.elementsCache.get(i);s!==r&&(s&&this.observer.unobserve(s),this.observer.observe(r),this.elementsCache.set(i,r)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(r,void 0,this))},this.resizeItem=(r,n)=>{var i;const s=this.measurementsCache[r];if(!s)return;const l=this.itemSizeCache.get(s.key)??s.size,c=n-l;c!==0&&(((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,c,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",c),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,n)),this.notify(!1))},this.getVirtualItems=yo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(r,n)=>{const i=[];for(let s=0,l=r.length;s<l;s++){const c=r[s],u=n[c];i.push(u)}return i},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return jm(n[$w(0,n.length-1,i=>jm(n[i]).start,r)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const r=this.scrollElement.document.documentElement;return this.options.horizontal?r.scrollWidth-this.scrollElement.innerWidth:r.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(r,n,i=0)=>{if(!this.scrollElement)return 0;const s=this.getSize(),l=this.getScrollOffset();n==="auto"&&(n=r>=l+s?"end":"start"),n==="center"?r+=(i-s)/2:n==="end"&&(r-=s);const c=this.getMaxScrollOffset();return Math.max(Math.min(c,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const i=this.getSize(),s=this.getScrollOffset(),l=this.measurementsCache[r];if(!l)return;if(n==="auto")if(l.end>=s+i-this.options.scrollPaddingEnd)n="end";else if(l.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];if(n==="end"&&r===this.options.count-1)return[this.getMaxScrollOffset(),n];const c=n==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,n,l.size),n]},this.scrollToOffset=(r,{align:n="start",behavior:i="auto"}={})=>{const s=this.getOffsetForAlignment(r,n),l=this.now();this.scrollState={index:null,align:n,behavior:i,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(r,{align:n="auto",behavior:i="auto"}={})=>{r=Math.max(0,Math.min(r,this.options.count-1));const s=this.getOffsetForIndex(r,n);if(!s)return;const[l,c]=s,u=this.now();this.scrollState={index:r,align:c,behavior:i,startedAt:u,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(r,{behavior:n="auto"}={})=>{const i=this.getScrollOffset()+r,s=this.now();this.scrollState={index:null,align:"start",behavior:n,startedAt:s,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let i;if(n.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((r=n[n.length-1])==null?void 0:r.end)??0;else{const s=Array(this.options.lanes).fill(null);let l=n.length-1;for(;l>=0&&s.some(c=>c===null);){const c=n[l];s[c.lane]===null&&(s[c.lane]=c.end),l--}i=Math.max(...s.filter(c=>c!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:i})=>{this.options.scrollToFn(r,{behavior:i,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const t=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=t?t[0]:this.scrollState.lastTargetOffset,n=1,i=r!==this.scrollState.lastTargetOffset;if(!i&&hI(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=n){this.scrollState=null;return}}else this.scrollState.stableFrames=0,i&&(this.scrollState.lastTargetOffset=r,this.scrollState.behavior="auto",this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const $w=(e,t,r,n)=>{for(;e<=t;){const i=(e+t)/2|0,s=r(i);if(s<n)e=i+1;else if(s>n)t=i-1;else return i}return e>0?e-1:0};function EI({measurements:e,outerSize:t,scrollOffset:r,lanes:n}){const i=e.length-1,s=u=>e[u].start;if(e.length<=n)return{startIndex:0,endIndex:i};let l=$w(0,i,s,r),c=l;if(n===1)for(;c<i&&e[c].end<r+t;)c++;else if(n>1){const u=Array(n).fill(0);for(;c<i&&u.some(g=>g<r+t);){const g=e[c];u[g.lane]=g.end,c++}const f=Array(n).fill(r+t);for(;l>=0&&f.some(g=>g>=r);){const g=e[l];f[g.lane]=g.start,l--}l=Math.max(0,l-l%n),c=Math.min(i,c+(n-1-c%n))}return{startIndex:l,endIndex:c}}const Wm=typeof document<"u"?B.useLayoutEffect:B.useEffect;function _I({useFlushSync:e=!0,...t}){const r=B.useReducer(()=>({}),{})[1],n={...t,onChange:(s,l)=>{var c;e&&l?En.flushSync(r):r(),(c=t.onChange)==null||c.call(t,s,l)}},[i]=B.useState(()=>new SI(n));return i.setOptions(n),Wm(()=>i._didMount(),[]),Wm(()=>i._willUpdate()),i}function OI(e){return _I({observeElementRect:bI,observeElementOffset:yI,scrollToFn:xI,...e})}const kI=N.createContext(null),zt=()=>{const e=N.useContext(kI);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Pt={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},vt={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},AI=({size:e,color:t,isDisabled:r,hasMessage:n,isInvalid:i,isFocused:s,menuPlacement:l})=>{const c=vt[i?"negative":t];return le("bg-input-bg flex relative transition-all duration-200 ease-in-out items-center",s&&l?l==="top"?"rounded-b":"rounded-t":"only:rounded first:rounded-t last:rounded-b",c.control,n?["ring-1",c.messageBorder]:["border",r?"border-input-border":s?c.controlFocused:`border-select-border focus-within:${c.controlFocused}`],Pt[e].trigger,{"ring-1":n,[c.controlDisabled]:r})},TI=({size:e,color:t,isDisabled:r,isAction:n})=>{const i=vt[t];return le("transition-colors duration-200 rounded max-h-full h-fit px-0.5",Pt[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?i.iconAction:i.icon,{"cursor-pointer p-0.5":n&&!r,[i.iconActionHover]:n&&!r,"pointer-events-none":!n})},RI=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:i,hasMessage:s,hasGroup:l,menuPlacement:c})=>{const u=vt[i?"negative":t];return l?le("flex items-center justify-between flex-1 min-w-0",Pt[e].control,"bg-transparent border-0",{[u.controlDisabled]:r}):le("flex items-center justify-between",n&&c?c==="top"?"rounded-b":"rounded-t":"rounded",Pt[e].control,u.control,s?["ring-1",u.messageBorder]:["border",r?"border-input-border":n?u.controlFocused:`border-select-border
|
|
18
|
+
focus-within:${u.controlFocused}`],{[u.controlDisabled]:r})},CI=({isMulti:e})=>le("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),PI=({size:e,color:t})=>le("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 text-input-text",Pt[e].input,vt[t].placeholder),II=({size:e,color:t})=>le("select-none truncate",Pt[e].placeholder,vt[t].placeholder),NI=({size:e,color:t,isDisabled:r})=>le("truncate",Pt[e].singleValue,r?vt[t].singleValueDisabled:vt[t].singleValue),MI=({size:e,color:t,isDisabled:r,isFocused:n})=>le("inline-flex items-center rounded-xs",Pt[e].multiValue,r?vt[t].multiValueDisabled:vt[t].multiValue,{"border border-white":n&&!r}),DI=({size:e})=>le("truncate",Pt[e].multiValueLabel),zI=({size:e,color:t,isDisabled:r})=>le("flex items-center justify-center cursor-pointer transition-colors",Pt[e].multiValueRemove,vt[t].multiValueRemove),jw=({size:e,color:t,isDisabled:r})=>le("flex items-center justify-center transition-colors rounded",Pt[e].clearIndicator,r?"hidden":[vt[t].clearIndicator,vt[t].clearIndicatorHover]),LI=({size:e,color:t,isDisabled:r})=>le("flex items-center justify-center transition-colors rounded",Pt[e].dropdownIndicator,r?"text-grey-200":[vt[t].dropdownIndicator,vt[t].dropdownIndicatorHover]),$I=({size:e,placement:t,hasMessage:r,color:n,hasGroup:i})=>{const s=t==="top";return le("absolute z-50 overflow-hidden border",i?"-left-px -right-px":"w-full",vt[n].menu,{[vt[n].messageBorder]:r},s?"bottom-full rounded-t rounded-b-none border-b-0":"top-full rounded-b border-t-0",Pt[e].menu)},jI=({size:e})=>le("overflow-y-auto",Pt[e].menuList,vt.primary.menuList),FI=({size:e,color:t,isDisabled:r,isFocused:n,isSelected:i})=>le("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",Pt[e].option,{[vt[t].optionDisabled]:r,[vt[t].optionSelected]:i&&!r,[vt[t].optionFocused]:n&&!i&&!r,[vt[t].option]:!i&&!n&&!r}),HI=({size:e})=>le(Pt[e].group),BI=({size:e,color:t})=>le(Pt[e].groupHeading,vt[t].groupHeading),WI=({size:e})=>le("text-grey-100",Pt[e].loadingMessage),UI=({size:e})=>le(Pt[e].noOptionsMessage,vt.primary.noOptionsMessage),Um=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)};function Ss(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},St.apply(null,arguments)}function Hf(e,t){return Hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Hf(e,t)}function VI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hf(e,t)}var zl={exports:{}},Ld={exports:{}},Ke={};/** @license React v16.13.1
|
|
19
|
+
* react-is.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Vm;function qI(){if(Vm)return Ke;Vm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case u:case f:case n:case s:case i:case p:return _;default:switch(_=_&&_.$$typeof,_){case c:case g:case S:case b:case l:return _;default:return R}}case r:return R}}}function O(_){return x(_)===f}return Ke.AsyncMode=u,Ke.ConcurrentMode=f,Ke.ContextConsumer=c,Ke.ContextProvider=l,Ke.Element=t,Ke.ForwardRef=g,Ke.Fragment=n,Ke.Lazy=S,Ke.Memo=b,Ke.Portal=r,Ke.Profiler=s,Ke.StrictMode=i,Ke.Suspense=p,Ke.isAsyncMode=function(_){return O(_)||x(_)===u},Ke.isConcurrentMode=O,Ke.isContextConsumer=function(_){return x(_)===c},Ke.isContextProvider=function(_){return x(_)===l},Ke.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Ke.isForwardRef=function(_){return x(_)===g},Ke.isFragment=function(_){return x(_)===n},Ke.isLazy=function(_){return x(_)===S},Ke.isMemo=function(_){return x(_)===b},Ke.isPortal=function(_){return x(_)===r},Ke.isProfiler=function(_){return x(_)===s},Ke.isStrictMode=function(_){return x(_)===i},Ke.isSuspense=function(_){return x(_)===p},Ke.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===f||_===s||_===i||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===S||_.$$typeof===b||_.$$typeof===l||_.$$typeof===c||_.$$typeof===g||_.$$typeof===y||_.$$typeof===m||_.$$typeof===w||_.$$typeof===v)},Ke.typeOf=x,Ke}var rt={};/** @license React v16.13.1
|
|
26
|
+
* react-is.development.js
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the MIT license found in the
|
|
31
|
+
* LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/var qm;function GI(){return qm||(qm=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,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(J){return typeof J=="string"||typeof J=="function"||J===n||J===f||J===s||J===i||J===p||J===h||typeof J=="object"&&J!==null&&(J.$$typeof===S||J.$$typeof===b||J.$$typeof===l||J.$$typeof===c||J.$$typeof===g||J.$$typeof===y||J.$$typeof===m||J.$$typeof===w||J.$$typeof===v)}function O(J){if(typeof J=="object"&&J!==null){var Pe=J.$$typeof;switch(Pe){case t:var ve=J.type;switch(ve){case u:case f:case n:case s:case i:case p:return ve;default:var Le=ve&&ve.$$typeof;switch(Le){case c:case g:case S:case b:case l:return Le;default:return Pe}}case r:return Pe}}}var _=u,R=f,j=c,P=l,z=t,W=g,L=n,M=S,V=b,U=r,I=s,F=i,Z=p,X=!1;function pe(J){return X||(X=!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.")),$(J)||O(J)===u}function $(J){return O(J)===f}function G(J){return O(J)===c}function te(J){return O(J)===l}function Q(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function Y(J){return O(J)===g}function ce(J){return O(J)===n}function ie(J){return O(J)===S}function re(J){return O(J)===b}function de(J){return O(J)===r}function ge(J){return O(J)===s}function he(J){return O(J)===i}function xe(J){return O(J)===p}rt.AsyncMode=_,rt.ConcurrentMode=R,rt.ContextConsumer=j,rt.ContextProvider=P,rt.Element=z,rt.ForwardRef=W,rt.Fragment=L,rt.Lazy=M,rt.Memo=V,rt.Portal=U,rt.Profiler=I,rt.StrictMode=F,rt.Suspense=Z,rt.isAsyncMode=pe,rt.isConcurrentMode=$,rt.isContextConsumer=G,rt.isContextProvider=te,rt.isElement=Q,rt.isForwardRef=Y,rt.isFragment=ce,rt.isLazy=ie,rt.isMemo=re,rt.isPortal=de,rt.isProfiler=ge,rt.isStrictMode=he,rt.isSuspense=xe,rt.isValidElementType=x,rt.typeOf=O})()),rt}var Gm;function Fw(){return Gm||(Gm=1,process.env.NODE_ENV==="production"?Ld.exports=qI():Ld.exports=GI()),Ld.exports}/*
|
|
33
|
+
object-assign
|
|
34
|
+
(c) Sindre Sorhus
|
|
35
|
+
@license MIT
|
|
36
|
+
*/var $d,Zm;function ZI(){if(Zm)return $d;Zm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(g){f[g]=g}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $d=i()?Object.assign:function(s,l){for(var c,u=n(s),f,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){f=e(c);for(var h=0;h<f.length;h++)r.call(c,f[h])&&(u[f[h]]=c[f[h]])}}return u},$d}var jd,Km;function Np(){if(Km)return jd;Km=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jd=e,jd}var Ym,Xm;function Hw(){return Xm||(Xm=1,Ym=Function.call.bind(Object.prototype.hasOwnProperty)),Ym}var Fd,Jm;function KI(){if(Jm)return Fd;Jm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Np(),r={},n=Hw();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,u,f){if(process.env.NODE_ENV!=="production"){for(var g in s)if(n(s,g)){var p;try{if(typeof s[g]!="function"){var h=Error((u||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=s[g](l,g,u,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+g+"` 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 b=f?f():"";e("Failed "+c+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Fd=i,Fd}var Hd,Qm;function YI(){if(Qm)return Hd;Qm=1;var e=Fw(),t=ZI(),r=Np(),n=Hw(),i=KI(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return Hd=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p($){var G=$&&(f&&$[f]||$[g]);if(typeof G=="function")return G}var h="<<anonymous>>",b={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:O(),elementType:_(),instanceOf:R,node:W(),objectOf:P,oneOf:j,oneOfType:z,shape:M,exact:V};function S($,G){return $===G?$!==0||1/$===1/G:$!==$&&G!==G}function v($,G){this.message=$,this.data=G&&typeof G=="object"?G:{},this.stack=""}v.prototype=Error.prototype;function y($){if(process.env.NODE_ENV!=="production")var G={},te=0;function Q(ce,ie,re,de,ge,he,xe){if(de=de||h,he=he||re,xe!==r){if(u){var J=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 J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Pe=de+":"+re;!G[Pe]&&te<3&&(s("You are manually calling a React.PropTypes validation function for the `"+he+"` prop on `"+de+"`. 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."),G[Pe]=!0,te++)}}return ie[re]==null?ce?ie[re]===null?new v("The "+ge+" `"+he+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new v("The "+ge+" `"+he+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:$(ie,re,de,ge,he)}var Y=Q.bind(null,!1);return Y.isRequired=Q.bind(null,!0),Y}function m($){function G(te,Q,Y,ce,ie,re){var de=te[Q],ge=F(de);if(ge!==$){var he=Z(de);return new v("Invalid "+ce+" `"+ie+"` of type "+("`"+he+"` supplied to `"+Y+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return y(G)}function w(){return y(l)}function x($){function G(te,Q,Y,ce,ie){if(typeof $!="function")return new v("Property `"+ie+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var re=te[Q];if(!Array.isArray(re)){var de=F(re);return new v("Invalid "+ce+" `"+ie+"` of type "+("`"+de+"` supplied to `"+Y+"`, expected an array."))}for(var ge=0;ge<re.length;ge++){var he=$(re,ge,Y,ce,ie+"["+ge+"]",r);if(he instanceof Error)return he}return null}return y(G)}function O(){function $(G,te,Q,Y,ce){var ie=G[te];if(!c(ie)){var re=F(ie);return new v("Invalid "+Y+" `"+ce+"` of type "+("`"+re+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return y($)}function _(){function $(G,te,Q,Y,ce){var ie=G[te];if(!e.isValidElementType(ie)){var re=F(ie);return new v("Invalid "+Y+" `"+ce+"` of type "+("`"+re+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return y($)}function R($){function G(te,Q,Y,ce,ie){if(!(te[Q]instanceof $)){var re=$.name||h,de=pe(te[Q]);return new v("Invalid "+ce+" `"+ie+"` of type "+("`"+de+"` supplied to `"+Y+"`, expected ")+("instance of `"+re+"`."))}return null}return y(G)}function j($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function G(te,Q,Y,ce,ie){for(var re=te[Q],de=0;de<$.length;de++)if(S(re,$[de]))return null;var ge=JSON.stringify($,function(he,xe){var J=Z(xe);return J==="symbol"?String(xe):xe});return new v("Invalid "+ce+" `"+ie+"` of value `"+String(re)+"` "+("supplied to `"+Y+"`, expected one of "+ge+"."))}return y(G)}function P($){function G(te,Q,Y,ce,ie){if(typeof $!="function")return new v("Property `"+ie+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var re=te[Q],de=F(re);if(de!=="object")return new v("Invalid "+ce+" `"+ie+"` of type "+("`"+de+"` supplied to `"+Y+"`, expected an object."));for(var ge in re)if(n(re,ge)){var he=$(re,ge,Y,ce,ie+"."+ge,r);if(he instanceof Error)return he}return null}return y(G)}function z($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var G=0;G<$.length;G++){var te=$[G];if(typeof te!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+X(te)+" at index "+G+"."),l}function Q(Y,ce,ie,re,de){for(var ge=[],he=0;he<$.length;he++){var xe=$[he],J=xe(Y,ce,ie,re,de,r);if(J==null)return null;J.data&&n(J.data,"expectedType")&&ge.push(J.data.expectedType)}var Pe=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new v("Invalid "+re+" `"+de+"` supplied to "+("`"+ie+"`"+Pe+"."))}return y(Q)}function W(){function $(G,te,Q,Y,ce){return U(G[te])?null:new v("Invalid "+Y+" `"+ce+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return y($)}function L($,G,te,Q,Y){return new v(($||"React class")+": "+G+" type `"+te+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function M($){function G(te,Q,Y,ce,ie){var re=te[Q],de=F(re);if(de!=="object")return new v("Invalid "+ce+" `"+ie+"` of type `"+de+"` "+("supplied to `"+Y+"`, expected `object`."));for(var ge in $){var he=$[ge];if(typeof he!="function")return L(Y,ce,ie,ge,Z(he));var xe=he(re,ge,Y,ce,ie+"."+ge,r);if(xe)return xe}return null}return y(G)}function V($){function G(te,Q,Y,ce,ie){var re=te[Q],de=F(re);if(de!=="object")return new v("Invalid "+ce+" `"+ie+"` of type `"+de+"` "+("supplied to `"+Y+"`, expected `object`."));var ge=t({},te[Q],$);for(var he in ge){var xe=$[he];if(n($,he)&&typeof xe!="function")return L(Y,ce,ie,he,Z(xe));if(!xe)return new v("Invalid "+ce+" `"+ie+"` key `"+he+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(te[Q],null," ")+`
|
|
37
|
+
Valid keys: `+JSON.stringify(Object.keys($),null," "));var J=xe(re,he,Y,ce,ie+"."+he,r);if(J)return J}return null}return y(G)}function U($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(U);if($===null||c($))return!0;var G=p($);if(G){var te=G.call($),Q;if(G!==$.entries){for(;!(Q=te.next()).done;)if(!U(Q.value))return!1}else for(;!(Q=te.next()).done;){var Y=Q.value;if(Y&&!U(Y[1]))return!1}}else return!1;return!0;default:return!1}}function I($,G){return $==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function F($){var G=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":I(G,$)?"symbol":G}function Z($){if(typeof $>"u"||$===null)return""+$;var G=F($);if(G==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return G}function X($){var G=Z($);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function pe($){return!$.constructor||!$.constructor.name?h:$.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Hd}var Bd,e0;function XI(){if(e0)return Bd;e0=1;var e=Np();function t(){}function r(){}return r.resetWarningCache=t,Bd=function(){function n(l,c,u,f,g,p){if(p!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Bd}var t0;function JI(){if(t0)return zl.exports;if(t0=1,process.env.NODE_ENV!=="production"){var e=Fw(),t=!0;zl.exports=YI()(e.isElement,t)}else zl.exports=XI()();return zl.exports}var QI=JI();const fe=fw(QI);var Wd={exports:{}},Ye={};/**
|
|
38
|
+
* @license React
|
|
39
|
+
* react-is.production.min.js
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the MIT license found in the
|
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/var r0;function eN(){if(r0)return Ye;r0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function v(y){if(typeof y=="object"&&y!==null){var m=y.$$typeof;switch(m){case e:switch(y=y.type,y){case r:case i:case n:case f:case g:return y;default:switch(y=y&&y.$$typeof,y){case c:case l:case u:case h:case p:case s:return y;default:return m}}case t:return m}}}return Ye.ContextConsumer=l,Ye.ContextProvider=s,Ye.Element=e,Ye.ForwardRef=u,Ye.Fragment=r,Ye.Lazy=h,Ye.Memo=p,Ye.Portal=t,Ye.Profiler=i,Ye.StrictMode=n,Ye.Suspense=f,Ye.SuspenseList=g,Ye.isAsyncMode=function(){return!1},Ye.isConcurrentMode=function(){return!1},Ye.isContextConsumer=function(y){return v(y)===l},Ye.isContextProvider=function(y){return v(y)===s},Ye.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Ye.isForwardRef=function(y){return v(y)===u},Ye.isFragment=function(y){return v(y)===r},Ye.isLazy=function(y){return v(y)===h},Ye.isMemo=function(y){return v(y)===p},Ye.isPortal=function(y){return v(y)===t},Ye.isProfiler=function(y){return v(y)===i},Ye.isStrictMode=function(y){return v(y)===n},Ye.isSuspense=function(y){return v(y)===f},Ye.isSuspenseList=function(y){return v(y)===g},Ye.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===f||y===g||y===b||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===s||y.$$typeof===l||y.$$typeof===u||y.$$typeof===S||y.getModuleId!==void 0)},Ye.typeOf=v,Ye}var nt={};/**
|
|
46
|
+
* @license React
|
|
47
|
+
* react-is.development.js
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/var n0;function tN(){return n0||(n0=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S=!1,v=!1,y=!1,m=!1,w=!1,x;x=Symbol.for("react.module.reference");function O(ve){return!!(typeof ve=="string"||typeof ve=="function"||ve===r||ve===i||w||ve===n||ve===f||ve===g||m||ve===b||S||v||y||typeof ve=="object"&&ve!==null&&(ve.$$typeof===h||ve.$$typeof===p||ve.$$typeof===s||ve.$$typeof===l||ve.$$typeof===u||ve.$$typeof===x||ve.getModuleId!==void 0))}function _(ve){if(typeof ve=="object"&&ve!==null){var Le=ve.$$typeof;switch(Le){case e:var qe=ve.type;switch(qe){case r:case i:case n:case f:case g:return qe;default:var it=qe&&qe.$$typeof;switch(it){case c:case l:case u:case h:case p:case s:return it;default:return Le}}case t:return Le}}}var R=l,j=s,P=e,z=u,W=r,L=h,M=p,V=t,U=i,I=n,F=f,Z=g,X=!1,pe=!1;function $(ve){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(ve){return pe||(pe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(ve){return _(ve)===l}function Q(ve){return _(ve)===s}function Y(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===e}function ce(ve){return _(ve)===u}function ie(ve){return _(ve)===r}function re(ve){return _(ve)===h}function de(ve){return _(ve)===p}function ge(ve){return _(ve)===t}function he(ve){return _(ve)===i}function xe(ve){return _(ve)===n}function J(ve){return _(ve)===f}function Pe(ve){return _(ve)===g}nt.ContextConsumer=R,nt.ContextProvider=j,nt.Element=P,nt.ForwardRef=z,nt.Fragment=W,nt.Lazy=L,nt.Memo=M,nt.Portal=V,nt.Profiler=U,nt.StrictMode=I,nt.Suspense=F,nt.SuspenseList=Z,nt.isAsyncMode=$,nt.isConcurrentMode=G,nt.isContextConsumer=te,nt.isContextProvider=Q,nt.isElement=Y,nt.isForwardRef=ce,nt.isFragment=ie,nt.isLazy=re,nt.isMemo=de,nt.isPortal=ge,nt.isProfiler=he,nt.isStrictMode=xe,nt.isSuspense=J,nt.isSuspenseList=Pe,nt.isValidElementType=O,nt.typeOf=_})()),nt}var i0;function rN(){return i0||(i0=1,process.env.NODE_ENV==="production"?Wd.exports=eN():Wd.exports=tN()),Wd.exports}var o0=rN();const s0=e=>typeof e=="object"&&e!=null&&e.nodeType===1,a0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ll=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return a0(r.overflowY,t)||a0(r.overflowX,t)||(n=>{const i=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)})(e)}return!1},$l=(e,t,r,n,i,s,l,c)=>s<e&&l>t||s>e&&l<t?0:s<=e&&c<=r||l>=t&&c>=r?s-e-n:l>t&&c<r||s<e&&c>r?l-t+i:0,nN=e=>e.parentElement??(e.getRootNode().host||null),iN=(e,t)=>{var r,n,i,s;if(typeof document>"u")return[];const{inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:V=>V!==c;if(!s0(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,p=[];let h=e;for(;s0(h)&&f(h);){if(h=nN(h),h===g){p.push(h);break}h!=null&&h===document.body&&Ll(h)&&!Ll(document.documentElement)||h!=null&&Ll(h,u)&&p.push(h)}const b=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,S=(s=(i=window.visualViewport)==null?void 0:i.height)!=null?s:innerHeight,{scrollX:v,scrollY:y}=window,{height:m,width:w,top:x,right:O,bottom:_,left:R}=e.getBoundingClientRect(),{top:j,right:P,left:z}=(V=>{const U=window.getComputedStyle(V);return{top:parseFloat(U.scrollMarginTop)||0,right:parseFloat(U.scrollMarginRight)||0,bottom:parseFloat(U.scrollMarginBottom)||0,left:parseFloat(U.scrollMarginLeft)||0}})(e);let W=x-j,L=l==="center"?R+w/2-z+P:l==="end"?O+P:R-z;const M=[];for(let V=0;V<p.length;V++){const U=p[V],{height:I,width:F,top:Z,right:X,bottom:pe,left:$}=U.getBoundingClientRect();if(x>=0&&R>=0&&_<=S&&O<=b&&(U===g&&!Ll(U)||x>=Z&&_<=pe&&R>=$&&O<=X))return M;const G=getComputedStyle(U),te=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Y=parseInt(G.borderRightWidth,10),ce=parseInt(G.borderBottomWidth,10);let ie=0,re=0;const de="offsetWidth"in U?U.offsetWidth-U.clientWidth-te-Y:0,ge="offsetHeight"in U?U.offsetHeight-U.clientHeight-Q-ce:0,he="offsetWidth"in U?U.offsetWidth===0?0:F/U.offsetWidth:0,xe="offsetHeight"in U?U.offsetHeight===0?0:I/U.offsetHeight:0;if(g===U)ie=$l(y,y+S,S,Q,ce,y+W,y+W+m,m),re=l==="start"?L:l==="center"?L-b/2:l==="end"?L-b:$l(v,v+b,b,te,Y,v+L,v+L+w,w),ie=Math.max(0,ie+y),re=Math.max(0,re+v);else{ie=$l(Z,pe,I,Q,ce+ge,W,W+m,m),re=l==="start"?L-$-te:l==="center"?L-($+F/2)+de/2:l==="end"?L-X+Y+de:$l($,X,F,te,Y+de,L,L+w,w);const{scrollLeft:J,scrollTop:Pe}=U;ie=xe===0?0:Math.max(0,Math.min(Pe+ie/xe,U.scrollHeight-I/xe+ge)),re=he===0?0:Math.max(0,Math.min(J+re/he,U.scrollWidth-F/he+de)),W+=Pe-ie,L+=J-re}M.push({el:U,top:ie,left:re})}return M};var $o=function(){return $o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$o.apply(this,arguments)},oN=0;function l0(e){return typeof e=="function"?e:Ln}function Ln(){}function Bw(e,t){if(e){var r=iN(e,{boundary:t});r.forEach(function(n){var i=n.el,s=n.top,l=n.left;i.scrollTop=s,i.scrollLeft=l})}}function c0(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function Mp(e,t){var r;function n(){r&&clearTimeout(r)}function i(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];n(),r=setTimeout(function(){r=null,e.apply(void 0,l)},t)}return i.cancel=n,i}function cn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];return t.some(function(c){return c&&c.apply(void 0,[n].concat(s)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function u0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(i){typeof i=="function"?i(n):i&&(i.current=n)})}}function sN(){return String(oN++)}function aN(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function d0(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Ww(e){return typeof e.type=="string"}function Uw(e){return e.props}function lN(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var cN=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function jl(e){e===void 0&&(e={});var t={};return cN.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function uN(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,n){return r[n]=Bf(t,n)?t[n]:e[n],r},{})}function Bf(e,t){return e[t]!==void 0}function f0(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function dN(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ud(e,t,r,n,i){var s=r.length;if(s===0)return-1;var l=s-1;(typeof e!="number"||e<0||e>l)&&(e=t>0?-1:l+1);var c=e+t;c<0?c=l:c>l&&(c=0);var u=Cc(c,t<0,r,n,i);return u===-1?e>=s?-1:e:u}function Cc(e,t,r,n,i){i===void 0&&(i=!1);var s=r.length;if(t){for(var l=e;l>=0;l--)if(!n(r[l],l))return l}else for(var c=e;c<s;c++)if(!n(r[c],c))return c;return i?Cc(t?s-1:0,t,r,n):-1}function p0(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(i){return i&&(c0(i,e,r)||n&&c0(i,r.document.activeElement,r))})}var Dp=Ln;process.env.NODE_ENV!=="production"&&(Dp=function(e,t,r){var n="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(function(i){t[i]!==void 0&&r[i]===void 0?console.error('downshift: A component has changed the controlled prop "'+i+'" to be uncontrolled. '+n):t[i]===void 0&&r[i]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+i+'" to be controlled. '+n)})});var fN=Mp(function(e){Vw(e).textContent=""},500);function Vw(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function qw(e,t){if(!(!e||!t)){var r=Vw(t);r.textContent=e,fN(t)}}var Gw=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Zw=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Kw=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,uc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,dc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Yw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Xw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Jw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Qw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,ex=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,tx=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,rx=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,nx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,Wf=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,ix=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,ox=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,sx=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,pN=Object.freeze({__proto__:null,blurButton:ix,blurInput:tx,changeInput:rx,clickButton:Wf,clickItem:ex,controlledPropUpdatedSelectedItem:ox,itemMouseEnter:Kw,keyDownArrowDown:dc,keyDownArrowUp:uc,keyDownEnd:Qw,keyDownEnter:Xw,keyDownEscape:Yw,keyDownHome:Jw,keyDownSpaceButton:nx,mouseUp:Zw,touchEnd:sx,unknown:Gw}),hN=["refKey","ref"],gN=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],vN=["onKeyDown","onBlur","onChange","onInput","onChangeText"],mN=["refKey","ref"],bN=["onMouseMove","onMouseDown","onClick","onPress","index","item"],yN=(function(){var e=(function(t){function r(i){var s;s=t.call(this,i)||this,s.id=s.props.id||"downshift-"+sN(),s.menuId=s.props.menuId||s.id+"-menu",s.labelId=s.props.labelId||s.id+"-label",s.inputId=s.props.inputId||s.id+"-input",s.getItemId=s.props.getItemId||function(w){return s.id+"-item-"+w},s.items=[],s.itemCount=null,s.previousResultCount=0,s.timeoutIds=[],s.internalSetTimeout=function(w,x){var O=setTimeout(function(){s.timeoutIds=s.timeoutIds.filter(function(_){return _!==O}),w()},x);s.timeoutIds.push(O)},s.setItemCount=function(w){s.itemCount=w},s.unsetItemCount=function(){s.itemCount=null},s.isItemDisabled=function(w,x){var O=s.getItemNodeFromIndex(x);return O&&O.hasAttribute("disabled")},s.setHighlightedIndex=function(w,x){w===void 0&&(w=s.props.defaultHighlightedIndex),x===void 0&&(x={}),x=jl(x),s.internalSetState(St({highlightedIndex:w},x))},s.clearSelection=function(w){s.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:s.props.defaultHighlightedIndex,isOpen:s.props.defaultIsOpen},w)},s.selectItem=function(w,x,O){x=jl(x),s.internalSetState(St({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,selectedItem:w,inputValue:s.props.itemToString(w)},x),O)},s.selectItemAtIndex=function(w,x,O){var _=s.items[w];_!=null&&s.selectItem(_,x,O)},s.selectHighlightedItem=function(w,x){return s.selectItemAtIndex(s.getState().highlightedIndex,w,x)},s.internalSetState=function(w,x){var O,_,R={},j=typeof w=="function";return!j&&w.hasOwnProperty("inputValue")&&s.props.onInputValueChange(w.inputValue,St({},s.getStateAndHelpers(),w)),s.setState(function(P){var z;P=s.getState(P);var W=j?w(P):w;W=s.props.stateReducer(P,W),O=W.hasOwnProperty("selectedItem");var L={};return O&&W.selectedItem!==P.selectedItem&&(_=W.selectedItem),(z=W).type||(z.type=Gw),Object.keys(W).forEach(function(M){P[M]!==W[M]&&(R[M]=W[M]),M!=="type"&&(W[M],Bf(s.props,M)||(L[M]=W[M]))}),j&&W.hasOwnProperty("inputValue")&&s.props.onInputValueChange(W.inputValue,St({},s.getStateAndHelpers(),W)),L},function(){l0(x)();var P=Object.keys(R).length>1;P&&s.props.onStateChange(R,s.getStateAndHelpers()),O&&s.props.onSelect(w.selectedItem,s.getStateAndHelpers()),_!==void 0&&s.props.onChange(_,s.getStateAndHelpers()),s.props.onUserAction(R,s.getStateAndHelpers())})},s.rootRef=function(w){return s._rootNode=w},s.getRootProps=function(w,x){var O,_=w===void 0?{}:w,R=_.refKey,j=R===void 0?"ref":R,P=_.ref,z=Ss(_,hN),W=x===void 0?{}:x,L=W.suppressRefError,M=L===void 0?!1:L;s.getRootProps.called=!0,s.getRootProps.refKey=j,s.getRootProps.suppressRefError=M;var V=s.getState(),U=V.isOpen;return St((O={},O[j]=u0(P,s.rootRef),O.role="combobox",O["aria-expanded"]=U,O["aria-haspopup"]="listbox",O["aria-owns"]=U?s.menuId:void 0,O["aria-labelledby"]=s.labelId,O),z)},s.keyDownHandlers={ArrowDown:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var O=w.shiftKey?5:1;this.moveHighlightedIndex(O,{type:dc})}else this.internalSetState({isOpen:!0,type:dc},function(){var _=x.getItemCount();if(_>0){var R=x.getState(),j=R.highlightedIndex,P=Ud(j,1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(P,{type:dc})}})},ArrowUp:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var O=w.shiftKey?-5:-1;this.moveHighlightedIndex(O,{type:uc})}else this.internalSetState({isOpen:!0,type:uc},function(){var _=x.getItemCount();if(_>0){var R=x.getState(),j=R.highlightedIndex,P=Ud(j,-1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(P,{type:uc})}})},Enter:function(w){if(w.which!==229){var x=this.getState(),O=x.isOpen,_=x.highlightedIndex;if(O&&_!=null){w.preventDefault();var R=this.items[_],j=this.getItemNodeFromIndex(_);if(R==null||j&&j.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Xw})}}},Escape:function(w){w.preventDefault(),this.reset(St({type:Yw},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},s.buttonKeyDownHandlers=St({},s.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:nx})}}),s.inputKeyDownHandlers=St({},s.keyDownHandlers,{Home:function(w){var x=this.getState(),O=x.isOpen;if(O){w.preventDefault();var _=this.getItemCount();if(!(_<=0||!O)){var R=Cc(0,!1,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:Jw})}}},End:function(w){var x=this.getState(),O=x.isOpen;if(O){w.preventDefault();var _=this.getItemCount();if(!(_<=0||!O)){var R=Cc(_-1,!0,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:Qw})}}}}),s.getToggleButtonProps=function(w){var x=w===void 0?{}:w,O=x.onClick;x.onPress;var _=x.onKeyDown,R=x.onKeyUp,j=x.onBlur,P=Ss(x,gN),z=s.getState(),W=z.isOpen,L={onClick:cn(O,s.buttonHandleClick),onKeyDown:cn(_,s.buttonHandleKeyDown),onKeyUp:cn(R,s.buttonHandleKeyUp),onBlur:cn(j,s.buttonHandleBlur)},M=P.disabled?{}:L;return St({type:"button",role:"button","aria-label":W?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},M,P)},s.buttonHandleKeyUp=function(w){w.preventDefault()},s.buttonHandleKeyDown=function(w){var x=f0(w);s.buttonKeyDownHandlers[x]&&s.buttonKeyDownHandlers[x].call(s,w)},s.buttonHandleClick=function(w){if(w.preventDefault(),s.props.environment){var x=s.props.environment.document,O=x.body,_=x.activeElement;O&&O===_&&w.target.focus()}process.env.NODE_ENV==="test"?s.toggleMenu({type:Wf}):s.internalSetTimeout(function(){return s.toggleMenu({type:Wf})})},s.buttonHandleBlur=function(w){var x=w.target;s.internalSetTimeout(function(){if(!(s.isMouseDown||!s.props.environment)){var O=s.props.environment.document.activeElement;(O==null||O.id!==s.inputId)&&O!==x&&s.reset({type:ix})}})},s.getLabelProps=function(w){return St({htmlFor:s.inputId,id:s.labelId},w)},s.getInputProps=function(w){var x=w===void 0?{}:w,O=x.onKeyDown,_=x.onBlur,R=x.onChange,j=x.onInput;x.onChangeText;var P=Ss(x,vN),z,W={};z="onChange";var L=s.getState(),M=L.inputValue,V=L.isOpen,U=L.highlightedIndex;if(!P.disabled){var I;W=(I={},I[z]=cn(R,j,s.inputHandleChange),I.onKeyDown=cn(O,s.inputHandleKeyDown),I.onBlur=cn(_,s.inputHandleBlur),I)}return St({"aria-autocomplete":"list","aria-activedescendant":V&&typeof U=="number"&&U>=0?s.getItemId(U):void 0,"aria-controls":V?s.menuId:void 0,"aria-labelledby":P&&P["aria-label"]?void 0:s.labelId,autoComplete:"off",value:M,id:s.inputId},W,P)},s.inputHandleKeyDown=function(w){var x=f0(w);x&&s.inputKeyDownHandlers[x]&&s.inputKeyDownHandlers[x].call(s,w)},s.inputHandleChange=function(w){s.internalSetState({type:rx,isOpen:!0,inputValue:w.target.value,highlightedIndex:s.props.defaultHighlightedIndex})},s.inputHandleBlur=function(){s.internalSetTimeout(function(){var w;if(!(s.isMouseDown||!s.props.environment)){var x=s.props.environment.document.activeElement,O=(x==null||(w=x.dataset)==null?void 0:w.toggle)&&s._rootNode&&s._rootNode.contains(x);O||s.reset({type:tx})}})},s.menuRef=function(w){s._menuNode=w},s.getMenuProps=function(w,x){var O,_=w===void 0?{}:w,R=_.refKey,j=R===void 0?"ref":R,P=_.ref,z=Ss(_,mN),W=x===void 0?{}:x,L=W.suppressRefError,M=L===void 0?!1:L;return s.getMenuProps.called=!0,s.getMenuProps.refKey=j,s.getMenuProps.suppressRefError=M,St((O={},O[j]=u0(P,s.menuRef),O.role="listbox",O["aria-labelledby"]=z&&z["aria-label"]?void 0:s.labelId,O.id=s.menuId,O),z)},s.getItemProps=function(w){var x,O=w===void 0?{}:w,_=O.onMouseMove,R=O.onMouseDown,j=O.onClick;O.onPress;var P=O.index,z=O.item,W=z===void 0?process.env.NODE_ENV==="production"?void 0:lN("getItemProps","item"):z,L=Ss(O,bN);P===void 0?(s.items.push(W),P=s.items.indexOf(W)):s.items[P]=W;var M="onClick",V=j,U=(x={onMouseMove:cn(_,function(){P!==s.getState().highlightedIndex&&(s.setHighlightedIndex(P,{type:Kw}),s.avoidScrolling=!0,s.internalSetTimeout(function(){return s.avoidScrolling=!1},250))}),onMouseDown:cn(R,function(F){F.preventDefault()})},x[M]=cn(V,function(){s.selectItemAtIndex(P,{type:ex})}),x),I=L.disabled?{onMouseDown:U.onMouseDown}:U;return St({id:s.getItemId(P),role:"option","aria-selected":s.getState().highlightedIndex===P},I,L)},s.clearItems=function(){s.items=[]},s.reset=function(w,x){w===void 0&&(w={}),w=jl(w),s.internalSetState(function(O){var _=O.selectedItem;return St({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,inputValue:s.props.itemToString(_)},w)},x)},s.toggleMenu=function(w,x){w===void 0&&(w={}),w=jl(w),s.internalSetState(function(O){var _=O.isOpen;return St({isOpen:!_},_&&{highlightedIndex:s.props.defaultHighlightedIndex},w)},function(){var O=s.getState(),_=O.isOpen,R=O.highlightedIndex;_&&s.getItemCount()>0&&typeof R=="number"&&s.setHighlightedIndex(R,w),l0(x)()})},s.openMenu=function(w){s.internalSetState({isOpen:!0},w)},s.closeMenu=function(w){s.internalSetState({isOpen:!1},w)},s.updateStatus=Mp(function(){var w;if((w=s.props)!=null&&(w=w.environment)!=null&&w.document){var x=s.getState(),O=s.items[x.highlightedIndex],_=s.getItemCount(),R=s.props.getA11yStatusMessage(St({itemToString:s.props.itemToString,previousResultCount:s.previousResultCount,resultCount:_,highlightedItem:O},x));s.previousResultCount=_,qw(R,s.props.environment.document)}},200);var l=s.props,c=l.defaultHighlightedIndex,u=l.initialHighlightedIndex,f=u===void 0?c:u,g=l.defaultIsOpen,p=l.initialIsOpen,h=p===void 0?g:p,b=l.initialInputValue,S=b===void 0?"":b,v=l.initialSelectedItem,y=v===void 0?null:v,m=s.getState({highlightedIndex:f,isOpen:h,inputValue:S,selectedItem:y});return m.selectedItem!=null&&s.props.initialInputValue===void 0&&(m.inputValue=s.props.itemToString(m.selectedItem)),s.state=m,s}VI(r,t);var n=r.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(i){clearTimeout(i)}),this.timeoutIds=[]},n.getState=function(i){return i===void 0&&(i=this.state),uN(i,this.props)},n.getItemCount=function(){var i=this.items.length;return this.itemCount!=null?i=this.itemCount:this.props.itemCount!==void 0&&(i=this.props.itemCount),i},n.getItemNodeFromIndex=function(i){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(i)):null},n.scrollHighlightedItemIntoView=function(){{var i=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(i,this._menuNode)}},n.moveHighlightedIndex=function(i,s){var l=this.getItemCount(),c=this.getState(),u=c.highlightedIndex;if(l>0){var f=Ud(u,i,{length:l},this.isItemDisabled,!0);this.setHighlightedIndex(f,s)}},n.getStateAndHelpers=function(){var i=this.getState(),s=i.highlightedIndex,l=i.inputValue,c=i.selectedItem,u=i.isOpen,f=this.props.itemToString,g=this.id,p=this.getRootProps,h=this.getToggleButtonProps,b=this.getLabelProps,S=this.getMenuProps,v=this.getInputProps,y=this.getItemProps,m=this.openMenu,w=this.closeMenu,x=this.toggleMenu,O=this.selectItem,_=this.selectItemAtIndex,R=this.selectHighlightedItem,j=this.setHighlightedIndex,P=this.clearSelection,z=this.clearItems,W=this.reset,L=this.setItemCount,M=this.unsetItemCount,V=this.internalSetState;return{getRootProps:p,getToggleButtonProps:h,getLabelProps:b,getMenuProps:S,getInputProps:v,getItemProps:y,reset:W,openMenu:m,closeMenu:w,toggleMenu:x,selectItem:O,selectItemAtIndex:_,selectHighlightedItem:R,setHighlightedIndex:j,clearSelection:P,clearItems:z,setItemCount:L,unsetItemCount:M,setState:V,itemToString:f,id:g,highlightedIndex:s,inputValue:l,isOpen:u,selectedItem:c}},n.componentDidMount=function(){var i=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&h0(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){i.internalClearTimeouts()};else{var s=function(){i.isMouseDown=!0},l=function(p){i.isMouseDown=!1;var h=p0(p.target,[i._rootNode,i._menuNode],i.props.environment);!h&&i.getState().isOpen&&i.reset({type:Zw},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},c=function(){i.isTouchMove=!1},u=function(){i.isTouchMove=!0},f=function(p){var h=p0(p.target,[i._rootNode,i._menuNode],i.props.environment,!1);!i.isTouchMove&&!h&&i.getState().isOpen&&i.reset({type:sx},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},g=this.props.environment;g.addEventListener("mousedown",s),g.addEventListener("mouseup",l),g.addEventListener("touchstart",c),g.addEventListener("touchmove",u),g.addEventListener("touchend",f),this.cleanup=function(){i.internalClearTimeouts(),i.updateStatus.cancel(),g.removeEventListener("mousedown",s),g.removeEventListener("mouseup",l),g.removeEventListener("touchstart",c),g.removeEventListener("touchmove",u),g.removeEventListener("touchend",f)}}},n.shouldScroll=function(i,s){var l=this.props.highlightedIndex===void 0?this.getState():this.props,c=l.highlightedIndex,u=s.highlightedIndex===void 0?i:s,f=u.highlightedIndex,g=c&&this.getState().isOpen&&!i.isOpen,p=c!==f;return g||p},n.componentDidUpdate=function(i,s){process.env.NODE_ENV!=="production"&&(Dp(this.state,i,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&h0(this._menuNode,this.getMenuProps)),Bf(this.props,"selectedItem")&&this.props.selectedItemChanged(i.selectedItem,this.props.selectedItem)&&this.internalSetState({type:ox,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(s,i)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var i=d0(this.props.children,Ln);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var s=d0(i(this.getStateAndHelpers()));if(!s)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&wN(s,this.getRootProps),s;if(Ww(s))return N.cloneElement(s,this.getRootProps(Uw(s)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r})(N.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:aN,itemToString:function(t){return t==null?"":(process.env.NODE_ENV!=="production"&&dN(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t))},onStateChange:Ln,onInputValueChange:Ln,onUserAction:Ln,onChange:Ln,onSelect:Ln,onOuterClick:Ln,selectedItemChanged:function(t,r){return t!==r},environment:typeof window>"u"?void 0:window,stateReducer:function(t,r){return r},suppressRefError:!1,scrollIntoView:Bw},e.stateChangeTypes=pN,e})();process.env.NODE_ENV!=="production"&&(yN.propTypes={children:fe.func,defaultHighlightedIndex:fe.number,defaultIsOpen:fe.bool,initialHighlightedIndex:fe.number,initialSelectedItem:fe.any,initialInputValue:fe.string,initialIsOpen:fe.bool,getA11yStatusMessage:fe.func,itemToString:fe.func,onChange:fe.func,onSelect:fe.func,onStateChange:fe.func,onInputValueChange:fe.func,onUserAction:fe.func,onOuterClick:fe.func,selectedItemChanged:fe.func,stateReducer:fe.func,itemCount:fe.number,id:fe.string,environment:fe.shape({addEventListener:fe.func.isRequired,removeEventListener:fe.func.isRequired,document:fe.shape({createElement:fe.func.isRequired,getElementById:fe.func.isRequired,activeElement:fe.any.isRequired,body:fe.any.isRequired}).isRequired,Node:fe.func.isRequired}),suppressRefError:fe.bool,scrollIntoView:fe.func,selectedItem:fe.any,isOpen:fe.bool,inputValue:fe.string,highlightedIndex:fe.number,labelId:fe.string,inputId:fe.string,menuId:fe.string,getItemId:fe.func});function h0(e,t){var r=t.refKey;e||console.error('downshift: The ref prop "'+r+'" from getMenuProps was not applied correctly on your menu element.')}function wN(e,t){var r=t.refKey,n=r!=="ref",i=!Ww(e);i&&!n&&!o0.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&n&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+r+'"'),!o0.isForwardRef(e)&&!Uw(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}function xN(e,t){return t.changes}Mp(function(e,t){qw(e,t)},200);var ia={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:xN,scrollIntoView:Bw,environment:typeof window>"u"?void 0:window};process.env.NODE_ENV;process.env.NODE_ENV;function SN(){var e=N.useRef(!0);return N.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var fc={environment:fe.shape({addEventListener:fe.func.isRequired,removeEventListener:fe.func.isRequired,document:fe.shape({createElement:fe.func.isRequired,getElementById:fe.func.isRequired,activeElement:fe.any.isRequired,body:fe.any.isRequired}).isRequired,Node:fe.func.isRequired}),itemToString:fe.func,itemToKey:fe.func,stateReducer:fe.func},ax=St({},fc,{getA11yStatusMessage:fe.func,highlightedIndex:fe.number,defaultHighlightedIndex:fe.number,initialHighlightedIndex:fe.number,isOpen:fe.bool,defaultIsOpen:fe.bool,initialIsOpen:fe.bool,selectedItem:fe.any,initialSelectedItem:fe.any,defaultSelectedItem:fe.any,id:fe.string,labelId:fe.string,menuId:fe.string,getItemId:fe.func,toggleButtonId:fe.string,onSelectedItemChange:fe.func,onHighlightedIndexChange:fe.func,onStateChange:fe.func,onIsOpenChange:fe.func,scrollIntoView:fe.func}),EN=$o($o({},ax),{items:fe.array.isRequired,isItemDisabled:fe.func});$o($o({},ia),{isItemDisabled:function(){return!1}});process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;var _N=St({},ax,{items:fe.array.isRequired,isItemDisabled:fe.func,inputValue:fe.string,defaultInputValue:fe.string,initialInputValue:fe.string,inputId:fe.string,onInputValueChange:fe.func});process.env.NODE_ENV;St({},ia,{isItemDisabled:function(){return!1}});var ON={stateReducer:fc.stateReducer,itemToKey:fc.itemToKey,environment:fc.environment,selectedItems:fe.array,initialSelectedItems:fe.array,defaultSelectedItems:fe.array,getA11yStatusMessage:fe.func,activeIndex:fe.number,initialActiveIndex:fe.number,defaultActiveIndex:fe.number,onActiveIndexChange:fe.func,onSelectedItemsChange:fe.func,keyNavigationNext:fe.string,keyNavigationPrevious:fe.string};ia.itemToKey,ia.stateReducer,ia.environment;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;const kN=N.forwardRef(({className:e,children:t,isFocused:r,isDisabled:n,...i},s)=>{const{size:l,color:c,isDisabled:u,hasMessage:f,hasGroup:g,downshift:p,isInvalid:h,menuPlacement:b}=zt(),S=n??u,v=r??p.isOpen;return A.jsx("div",{ref:s,className:le(RI({size:l,color:c,isDisabled:S,isFocused:!!v,isInvalid:h&&!p.isOpen,hasMessage:f,hasGroup:g,menuPlacement:p.isOpen?b:void 0}),e),"aria-disabled":S,"aria-invalid":h,role:"combobox",tabIndex:S?-1:0,...i,children:t})}),AN=({className:e,children:t,isMulti:r})=>A.jsx("div",{className:le(CI({isMulti:r}),e),children:t}),pc=N.forwardRef(({isHidden:e,inputClassName:t,className:r,...n},i)=>{const{size:s,color:l}=zt();return e?A.jsx("input",{ref:i,type:"text",className:r,style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...n}):A.jsx("input",{ref:i,type:"text","data-qui":"SelectSearchInput",className:le(PI({size:s,color:l}),t,e?"":r),...n})}),TN=({className:e,children:t})=>{const{size:r,color:n}=zt();return A.jsx("div",{className:le(II({size:r,color:n}),e),children:t})},RN=({className:e,children:t,data:r,isDisabled:n})=>{const{size:i,color:s,getOptionLabel:l}=zt();return A.jsx("div",{className:le(NI({size:i,color:s,isDisabled:n}),e),children:t||l(r)})},lx=({className:e,children:t,data:r,isDisabled:n,isFocused:i,onRemove:s})=>{const{size:l,color:c,downshift:u,getOptionLabel:f}=zt(),g=()=>{s?s(r):u.removeItem(r)};return A.jsxs("div",{className:le(MI({size:l,color:c,isDisabled:n,isFocused:i}),e),children:[A.jsx("div",{className:DI({size:l}),children:t||f(r)}),!n&&A.jsx("div",{className:zI({size:l,color:c,isDisabled:!1}),onClick:g,children:A.jsx(Bo,{className:"w-3 h-3"})})]})},cx=({color:e,className:t,children:r,onClick:n,isDisabled:i,...s})=>{const{size:l,color:c,isDisabled:u,downshift:f}=zt(),g=i??u,p=f.selectedItems.length>0;if(g||!p)return null;const h=b=>{b.stopPropagation(),n?n(b):f.clearSelection()};return A.jsx("div",{className:le(jw({size:l,color:e||c,isDisabled:g}),t),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...s,children:r||A.jsx(M2,{})})},CN=({className:e,children:t,onClick:r,isDisabled:n,...i})=>{const{size:s,color:l,isDisabled:c,downshift:u}=zt(),f=n??c,g=u.inputValue.length>0&&u.isSearchable;if(f||!g)return null;const p=h=>{f||(h.preventDefault(),h.stopPropagation(),r?r(h):(u.setInputValue(""),u.clearSelection()))};return A.jsx("div",{"data-qui":"SelectIndicator",className:le(jw({size:s,color:l,isDisabled:f}),"cursor-pointer",e),onClick:p,onMouseDown:h=>{h.preventDefault(),h.stopPropagation()},role:"button",tabIndex:-1,"aria-label":"Clear selection",...i,children:t||A.jsx(Bo,{})})},ux=N.forwardRef(({color:e,className:t,children:r,onClick:n,isDisabled:i,...s},l)=>{const{size:c,color:u,isDisabled:f,downshift:g}=zt(),p=i??f,h=g.isOpen,b=v=>{p||(v.preventDefault(),v.stopPropagation(),n?n(v):g.toggleMenu())},S=v=>{v.preventDefault(),v.stopPropagation()};return A.jsx("div",{ref:l,"data-qui":"SelectIndicator",className:le(LI({size:c,color:e||u,isDisabled:p}),"cursor-pointer",t),onClick:S,onMouseDown:b,role:"button",tabIndex:-1,"aria-label":h?"Close menu":"Open menu","aria-expanded":h,"aria-disabled":p,...s,children:r||A.jsx(ac,{className:le("transition-transform duration-200",{"rotate-180":h})})})}),PN=N.forwardRef(({className:e,children:t,placement:r,...n},i)=>{const{size:s,hasMessage:l,color:c,hasGroup:u}=zt();return A.jsx("div",{"data-qui":"SelectMenu",ref:i,className:le($I({size:s,placement:r,hasMessage:l,color:c,hasGroup:u}),e),...n,children:t})}),IN=N.forwardRef(({className:e,children:t,maxHeight:r=300,totalHeight:n,...i},s)=>{const{size:l}=zt();return A.jsx(Tp,{scrollableNodeProps:{ref:s},className:le(jI({size:l}),e),style:{maxHeight:r},...i,children:n!==void 0?A.jsx("div",{style:{height:n,position:"relative",width:"100%"},children:t}):t})}),hc=({className:e,children:t,data:r,isDisabled:n,isFocused:i,isSelected:s,innerProps:l,optionClassName:c,...u})=>{const{size:f,color:g,getOptionLabel:p}=zt();return A.jsx("div",{"data-qui":"SelectOption",className:le(FI({size:f,color:g,isDisabled:n,isFocused:i,isSelected:s}),c,e),...l,...u,children:t??p(r)})},dx=({className:e,children:t,data:r,label:n,renderGroupHeading:i})=>{const{size:s}=zt();return A.jsxs("div",{"data-qui":"SelectOptionGroup",className:le(HI({size:s}),e),children:[A.jsx(NN,{children:i?i(r):n||r.label}),t]})},NN=({className:e,children:t})=>{const{size:r,color:n}=zt();return A.jsx("div",{className:le(BI({size:r,color:n}),e),children:t})},Vd=({className:e,children:t,inputValue:r})=>{const{size:n}=zt();return A.jsx("div",{className:le(UI({size:n}),e),children:t||`No options found${r?` for "${r}"`:""}`})},MN=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,isDisabled:l,hasMessage:c,isInvalid:u,setHasGroup:f,menuVisible:g,menuPlacement:p}=zt();return N.useEffect(()=>(f(!0),()=>{f(!1)}),[f]),A.jsx("div",{ref:n,"data-qui":"SelectGroup",className:le(AI({size:i,color:s,isDisabled:l,hasMessage:c,isInvalid:u,isFocused:g,menuPlacement:g?p:void 0}),e),...r,children:t})}),DN=N.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:i,...s},l)=>{const{size:c,color:u,isDisabled:f}=zt(),g=r||f,p=TI({size:c,color:u,isDisabled:g,isAction:e});return A.jsx("div",{ref:l,"data-qui":"SelectIcon",className:le(p,t),style:n,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!g?0:void 0,"aria-disabled":g,...s,children:i})}),zN=({isOpen:e,usePortal:t,controlRef:r,children:n})=>{const[i,s]=N.useState(null);return N.useLayoutEffect(()=>{if(t&&e&&r.current){const l=()=>{var c;const u=(c=r.current)==null?void 0:c.getBoundingClientRect();u&&s({top:u.top+window.scrollY,left:u.left+window.scrollX,width:u.width,height:u.height})};return l(),window.addEventListener("resize",l),window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("resize",l),window.removeEventListener("scroll",l,!0)}}},[e,t,r]),e?t&&i?En.createPortal(A.jsx("div",{"data-qui":"SelectPortal",className:"absolute z-50",style:{top:i.top,left:i.left,width:i.width,height:i.height,pointerEvents:"none"},children:A.jsx("div",{className:"relative w-full h-full",children:A.jsx("div",{style:{pointerEvents:"auto"},children:n})})}),document.body):A.jsx(A.Fragment,{children:n}):null},Es=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&"current"in r&&(r.current=t)})},LN=N.forwardRef(({placeholder:e,noOptionsMessage:t,hideNoOptions:r=!1,loadingMessage:n="Loading...",isClearable:i=!1,isSearchClearable:s=!1,isLoading:l=!1,isRequired:c=!1,hideIndicators:u=!1,hideDropdownIndicator:f=!1,searchPlacement:g="trigger",hideSelectedOptions:p=!1,onFocus:h,onBlur:b,renderMenuHeader:S,formatOptionLabel:v,renderOption:y,optionClassName:m,renderValue:w,renderGroupHeading:x,inputRef:O,controlShouldRenderValue:_=!0,name:R,id:j,onSelectionComplete:P,"aria-label":z,"aria-labelledby":W,"aria-describedby":L,children:M,usePortal:V=!1,virtualizeThreshold:U=100,className:I,inputClassName:F,...Z},X)=>{const{size:pe,isInvalid:$,isDisabled:G,hasGroup:te,downshift:Q,options:Y=[],getOptionLabel:ce,getOptionValue:ie,isOptionDisabled:re,menuPlacement:de,setMenuPlacement:ge,menuVisible:he,setMenuVisible:xe,inputClassName:J}=zt(),Pe=F||J,ve=N.useMemo(()=>{if(y)return y;if(v)return({data:Be})=>v(Be)},[y,v]),Le=N.useRef(null),qe=O||Le,it=N.useRef(null),dr=N.useRef(null),bi=N.useRef(null),{isOpen:Et,openMenu:kr,selectedItem:$t,inputValue:It,highlightedIndex:Gt,getToggleButtonProps:yi,getMenuProps:en,getInputProps:wi,getItemProps:Ar,isMulti:Br,isSearchable:fr,multipleSelection:Ko}=Q,{getDropdownProps:Yo}=Ko;N.useLayoutEffect(()=>{if(!Et||!it.current)return;const Be=it.current.getBoundingClientRect(),_t=window.innerHeight-Be.bottom;ge(_t<300?"top":"bottom")},[Et,ge]),N.useLayoutEffect(()=>{const Be=Et&&!(r&&Q.filteredItems.length===0);return xe(Be),()=>xe(!1)},[Et,r,Q.filteredItems.length,xe]);const rr=Br?Q.selectedItems??[]:$t?[$t]:[],xi=rr.length>0,Xo=s&&!!It&&!G&&!u,Ki=i&&(xi||!!It)&&!G&&!u,Yi=!f&&!u,Jo=!xi&&(!fr||!It)||!_,Ia={},Na={};Object.entries(Z).forEach(([Be,_t])=>{Be.startsWith("data-")||Be.startsWith("aria-")||Be==="role"?Ia[Be]=_t:Na[Be]=_t});const Ma=N.useMemo(()=>Es([it,X]),[X]),Qo=en({},{suppressRefError:!0}),qn=Yo({preventKeyAction:Et}),es={ref:qe,disabled:G,required:c,name:R,id:j,"aria-label":z,"aria-labelledby":W,"aria-describedby":L,"aria-invalid":$,onFocus:h,onBlur:b,...Na},pu=fr?(wi==null?void 0:wi({...es,...qn}))??es:{...es,...qn},{ref:Da,...ts}=pu,Xi=N.useMemo(()=>Es([Da]),[Da]),hu=Be=>rr.some(_t=>ie(_t)===ie(Be)),za=Be=>p?Be.filter(_t=>!hu(_t)):Be,gu=Be=>p?Be.map(_t=>({..._t,options:za(_t.options)})).filter(_t=>_t.options.length>0):Be,tn=Um(Y)?[]:za(Q.filteredItems),vu={sm:22,md:28,lg:36}[pe]??28,On=tn.length>=U,Ji=OI({count:On?tn.length:0,getScrollElement:()=>bi.current,estimateSize:()=>vu,overscan:5});N.useEffect(()=>{On&&Et&&Gt>=0&&Gt<tn.length&&Ji.scrollToIndex(Gt,{align:"auto"})},[Gt,On,Et]);const{registerOnSelectionComplete:La}=zt();N.useEffect(()=>{if(P)return La(P)},[P,La]);const mu=fr?{}:yi({disabled:G,...qn,ref:Es([Ma,qn.ref])});return A.jsxs("div",{className:le({relative:!te,"flex-1 min-w-0":te}),children:[A.jsxs(kN,{"data-qui":"SelectControl",className:I,...fr?{ref:Es([Ma,qn.ref])}:mu,...Ia,isFocused:he,isDisabled:G,onClick:Be=>{Be.defaultPrevented||(fr?kr():Q.toggleMenu())},children:[M||A.jsxs(AN,{isMulti:Br,children:[Br&&_&&rr.map((Be,_t)=>A.jsx(lx,{data:Be,index:_t,isDisabled:G,children:w?w(Be):void 0},ie(Be))),!Br&&xi&&_&&!fr&&A.jsx("div",{className:"flex items-center gap-2",children:A.jsx(RN,{data:rr[0],isDisabled:G,children:w?w(rr[0]):ce(rr[0])})}),fr&&g==="trigger"?A.jsx(pc,{ref:Xi,...ts,className:I,inputClassName:Pe,placeholder:e}):A.jsxs(A.Fragment,{children:[A.jsx(pc,{ref:Xi,...ts,className:I,inputClassName:Pe,isHidden:!0,readOnly:!0,value:rr.map(Be=>ie(Be)).join(",")}),Jo&&A.jsx(TN,{children:e})]})]}),A.jsxs("div",{className:le("flex items-center size-fit gap-1",{hidden:!Ki&&!Yi}),children:[Xo&&A.jsx(CN,{}),Ki&&A.jsx(cx,{}),Yi&&A.jsx(ux,{...fr?yi({disabled:G,"aria-label":Et?"Close menu":"Open menu"}):{}})]})]}),!Et&&A.jsx("div",{ref:Qo.ref,style:{display:"none"},"aria-hidden":"true"}),A.jsx(zN,{isOpen:Et,usePortal:V,controlRef:it,children:(()=>{const{ref:Be,..._t}=Qo,$a=Es([dr,Be]);return r&&Q.filteredItems.length===0?A.jsx("div",{..._t,style:{display:"none"},"aria-hidden":"true"}):A.jsxs(PN,{ref:$a,..._t,placement:de,children:[S&&S(Q),fr&&g==="menu"&&A.jsx("div",{className:"p-2",children:A.jsx(pc,{ref:Xi,...ts,className:I,inputClassName:Pe,autoFocus:!0,placeholder:e,onClick:Nt=>Nt.stopPropagation()})}),A.jsx(IN,{ref:bi,totalHeight:On?Ji.getTotalSize():void 0,children:l?A.jsx("div",{className:WI({size:pe}),children:n}):Q.filteredItems.length===0?A.jsx(Vd,{inputValue:It,children:typeof t=="function"?t(It):t}):Um(Y)?(()=>{const Nt=gu(Y);return Nt.length===0?A.jsx(Vd,{inputValue:It,children:typeof t=="function"?t(It):t}):Nt.map((jt,kn)=>A.jsx(dx,{data:jt,label:jt.label,options:jt.options,renderGroupHeading:x,children:jt.options.map(Xt=>{const rn=ie(Xt),nn=rr.some(bu=>ie(bu)===rn),on=Q.filteredItems.indexOf(Xt),Gn=Gt===on,Qi=re(Xt),eo=Ar({item:Xt,index:on});return A.jsx(hc,{...eo,data:Xt,isDisabled:Qi,isFocused:Gn,isSelected:nn,optionClassName:m,children:ve?ve({data:Xt,isFocused:Gn,isSelected:nn,isDisabled:Qi}):void 0},`${rn}-${on}`)})},`${jt.label}-${kn}`))})():tn.length===0?A.jsx(Vd,{inputValue:It,children:typeof t=="function"?t(It):t}):On?Ji.getVirtualItems().map(Nt=>{const jt=tn[Nt.index],kn=ie(jt),Xt=rr.some(Qi=>ie(Qi)===kn),rn=Q.filteredItems.indexOf(jt),nn=Gt===rn,on=re(jt),Gn=Ar({item:jt,index:rn});return A.jsx("div",{"data-index":Nt.index,ref:Ji.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${Nt.start}px)`},children:A.jsx(hc,{...Gn,data:jt,isDisabled:on,isFocused:nn,isSelected:Xt,optionClassName:m,children:ve?ve({data:jt,isFocused:nn,isSelected:Xt,isDisabled:on}):void 0})},Nt.key)}):tn.map(Nt=>{const jt=ie(Nt),kn=rr.some(Gn=>ie(Gn)===jt),Xt=Q.filteredItems.indexOf(Nt),rn=Gt===Xt,nn=re(Nt),on=Ar({item:Nt,index:Xt});return A.jsx(hc,{...on,data:Nt,isDisabled:nn,isFocused:rn,isSelected:kn,optionClassName:m,children:ve?ve({data:Nt,isFocused:rn,isSelected:kn,isDisabled:nn}):void 0},`${jt}-${Xt}`)})})]})})()})]})});MN.displayName="Select.Group";DN.displayName="Select.Icon";pc.displayName="Select.Input";lx.displayName="Select.MultiValue";cx.displayName="Select.ClearIndicator";ux.displayName="Select.DropdownIndicator";hc.displayName="Select.Option";dx.displayName="Select.OptionGroup";const $N=LN;$N.displayName="Select.Field";N.createContext(void 0);const jN=({active:e,disabled:t,error:r,isOpen:n,className:i})=>le("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!t,"text-inactive-text":t,"bg-primary hover:bg-primary-hover":e&&!t,"text-negative":r&&!e&&!t,"bg-primary-hover text-body":n&&!e&&!t,"text-body":!e&&!t&&!r,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},i),FN=N.forwardRef(({active:e,disabled:t,error:r,isOpen:n,className:i,children:s,as:l="div",...c},u)=>{const f=jN({active:e,disabled:t,error:r,isOpen:n,className:i});return A.jsx(l,{"data-qui":"ListItem",ref:u,className:f,"aria-disabled":t,"aria-selected":e,"aria-invalid":r,"aria-expanded":n,role:c.onClick?"button":"listitem",...c,children:s})});FN.displayName="ListItem";var qd={exports:{}};/*!
|
|
54
|
+
Copyright (c) 2018 Jed Watson.
|
|
55
|
+
Licensed under the MIT License (MIT), see
|
|
56
|
+
http://jedwatson.github.io/classnames
|
|
57
|
+
*/var g0;function fx(){return g0||(g0=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,n(c)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(qd)),qd.exports}var HN=fx();const ct=Ky(HN);function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zi.apply(this,arguments)}const BN=["children","options"],v0=["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"}),m0={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},WN=["style","script","pre"],UN=["src","href","data","formAction","srcDoc","action"],VN=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,qN=/\n{2,}$/,b0=/^(\s*>[\s\S]*?)(?=\n\n|$)/,GN=/^ *> ?/gm,ZN=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,KN=/^ {2,}\n/,YN=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,y0=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,w0=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,XN=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,JN=/^(?:\n *)*\n/,QN=/\r\n?/g,eM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,tM=/^\[\^([^\]]+)]/,rM=/\f/g,nM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,iM=/^\s*?\[(x|\s)\]/,x0=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,S0=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,E0=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Gd=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,oM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,_0=/^<!--[\s\S]*?(?:-->)/,sM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Zd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,aM=/^\{.*\}$/,lM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,cM=/^<([^ >]+[:@\/][^ >]+)>/,uM=/-([a-z])?/gi,O0=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,dM=/^[^\n]+(?: \n|\n{2,})/,fM=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,pM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,hM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,gM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,vM=/\t/g,mM=/(^ *\||\| *$)/g,bM=/^ *:-+: *$/,yM=/^ *:-+ *$/,wM=/^ *-+: *$/,Kc=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Yc="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",xM=RegExp(`^([*_])\\1${Kc(1)}${Yc}\\1\\1(?!\\1)`),SM=RegExp(`^([*_])${Kc(0)}${Yc}\\1(?!\\1)`),EM=RegExp(`^(==)${Kc(0)}${Yc}\\1`),_M=RegExp(`^(~~)${Kc(0)}${Yc}\\1`),OM=/^(:[a-zA-Z0-9-_]+:)/,kM=/^\\([^0-9A-Za-z\s])/,AM=/\\([^0-9A-Za-z\s])/g,TM=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,RM=/^\n+/,CM=/^([ \t]*)/,PM=/(?:^|\n)( *)$/,zp="(?:\\d+\\.)",Lp="(?:[*+-])";function px(e){return"( *)("+(e===1?zp:Lp)+") +"}const hx=px(1),gx=px(2);function vx(e){return RegExp("^"+(e===1?hx:gx))}const IM=vx(1),NM=vx(2);function mx(e){return RegExp("^"+(e===1?hx:gx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?zp:Lp)+" )[^\\n]*)*(\\n|$)","gm")}const MM=mx(1),DM=mx(2);function bx(e){const t=e===1?zp:Lp;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const yx=bx(1),wx=bx(2);function k0(e,t){const r=t===1,n=r?yx:wx,i=r?MM:DM,s=r?IM:NM;return{t:l=>s.test(l),o:jo(function(l,c){const u=PM.exec(c.prevCapture);return u&&(c.list||!c.inline&&!c.simple)?n.exec(l=u[1]+l):null}),i:1,u(l,c,u){const f=r?+l[2]:void 0,g=l[0].replace(qN,`
|
|
58
|
+
`).match(i);let p=!1;return{items:g.map(function(h,b){const S=s.exec(h)[0].length,v=RegExp("^ {1,"+S+"}","gm"),y=h.replace(v,"").replace(s,""),m=b===g.length-1,w=y.indexOf(`
|
|
7
59
|
|
|
8
|
-
`)!==-1||
|
|
60
|
+
`)!==-1||m&&p;p=w;const x=u.inline,O=u.list;let _;u.list=!0,w?(u.inline=!1,_=oa(y)+`
|
|
9
61
|
|
|
10
|
-
`):(
|
|
11
|
-
`).map(function(
|
|
62
|
+
`):(u.inline=!0,_=oa(y));const R=c(_,u);return u.inline=x,u.list=O,R}),ordered:r,start:f}},l:(l,c,u)=>e(l.ordered?"ol":"ul",{key:u.key,start:l.type==="20"?l.start:void 0},l.items.map(function(f,g){return e("li",{key:g},c(f,u))}))}}const zM=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),LM=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function A0(e){return typeof e=="string"}function oa(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function gc(e,t){return e.startsWith(t)}function $M(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(gc(e,r[n]))return!0;return!1}return r(e,t)}function _s(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 jM(e){return wM.test(e)?"right":bM.test(e)?"center":yM.test(e)?"left":null}function T0(e,t,r,n){const i=r.inTable;r.inTable=!0;let s=[[]],l="";function c(){if(!l)return;const u=s[s.length-1];u.push.apply(u,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,f,g)=>{u.trim()==="|"&&(c(),n)?f!==0&&f!==g.length-1&&s.push([]):l+=u}),c(),r.inTable=i,s}function FM(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(mM,"").split("|").map(jM):[],i=e[3]?(function(l,c,u){return l.trim().split(`
|
|
63
|
+
`).map(function(f){return T0(f,c,u,!0)})})(e[3],t,r):[],s=T0(e[1],t,r,!!i.length);return r.inline=!1,i.length?{align:n,cells:i,header:s,type:"25"}:{children:s,type:"21"}}function R0(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function jo(e){return e.inline=1,e}function Ii(e){return jo(function(t,r){return r.inline?e.exec(t):null})}function ai(e){return jo(function(t,r){return r.inline||r.simple?e.exec(t):null})}function zn(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Fl(e){return jo(function(t){return e.exec(t)})}const HM=/(javascript|vbscript|data(?!:image)):/i;function BM(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(HM.test(t))return null}catch{return null}return e}function un(e){return e&&e.replace(AM,"$1")}function vc(e,t,r){const n=r.inline||!1,i=r.simple||!1;r.inline=!0,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=i,s}function WM(e,t,r){const n=r.inline||!1,i=r.simple||!1;r.inline=!1,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=i,s}function UM(e,t,r){const n=r.inline||!1;r.inline=!1;const i=e(t,r);return r.inline=n,i}const Kd=(e,t,r)=>({children:vc(t,e[2],r)});function Yd(){return{}}function Xd(){return null}function VM(...e){return e.filter(Boolean).join(" ")}function Jd(e,t,r){let n=e;const i=t.split(".");for(;i.length&&(n=n[i[0]],n!==void 0);)i.shift();return n||r}function qM(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?zi({},m0,t.namedCodesToUnicode):m0;const r=t.slugify||_s,n=t.sanitizer||BM,i=t.createElement||B.createElement,s=[b0,y0,w0,t.enforceAtxHeadings?S0:x0,E0,O0,yx,wx],l=[...s,dM,Gd,_0,Zd];function c(m,w){for(let x=0;x<m.length;x++)if(m[x].test(w))return!0;return!1}function u(m,w,...x){const O=Jd(t.overrides,m+".props",{});return i((function(_,R){const j=Jd(R,_);return j?typeof j=="function"||typeof j=="object"&&"render"in j?j:Jd(R,_+".component",_):_})(m,t.overrides),zi({},w,O,{className:VM(w==null?void 0:w.className,O.className)||void 0}),...x)}function f(m){m=m.replace(nM,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=gM.test(m)===!1);const x=v(S(w?m:oa(m).replace(RM,"")+`
|
|
12
64
|
|
|
13
|
-
`,{inline:
|
|
14
|
-
`);return
|
|
15
|
-
`],o:
|
|
16
|
-
`},21:{o:
|
|
65
|
+
`,{inline:w}));for(;A0(x[x.length-1])&&!x[x.length-1].trim();)x.pop();if(t.wrapper===null)return x;const O=t.wrapper||(w?"span":"div");let _;if(x.length>1||t.forceWrapper)_=x;else{if(x.length===1)return _=x[0],typeof _=="string"?u("span",{key:"outer"},_):_;_=null}return i(O,{key:"outer"},_)}function g(m,w){if(!w||!w.trim())return null;const x=w.match(VN);return x?x.reduce(function(O,_){const R=_.indexOf("=");if(R!==-1){const j=(function(L){return L.indexOf("-")!==-1&&L.match(sM)===null&&(L=L.replace(uM,function(M,V){return V.toUpperCase()})),L})(_.slice(0,R)).trim(),P=(function(L){const M=L[0];return(M==='"'||M==="'")&&L.length>=2&&L[L.length-1]===M?L.slice(1,-1):L})(_.slice(R+1).trim()),z=v0[j]||j;if(z==="ref")return O;const W=O[z]=(function(L,M,V,U){return M==="style"?(function(I){const F=[];let Z="",X=!1,pe=!1,$="";if(!I)return F;for(let te=0;te<I.length;te++){const Q=I[te];if(Q!=='"'&&Q!=="'"||X||(pe?Q===$&&(pe=!1,$=""):(pe=!0,$=Q)),Q==="("&&Z.endsWith("url")?X=!0:Q===")"&&X&&(X=!1),Q!==";"||pe||X)Z+=Q;else{const Y=Z.trim();if(Y){const ce=Y.indexOf(":");if(ce>0){const ie=Y.slice(0,ce).trim(),re=Y.slice(ce+1).trim();F.push([ie,re])}}Z=""}}const G=Z.trim();if(G){const te=G.indexOf(":");if(te>0){const Q=G.slice(0,te).trim(),Y=G.slice(te+1).trim();F.push([Q,Y])}}return F})(V).reduce(function(I,[F,Z]){return I[F.replace(/(-[a-z])/g,X=>X[1].toUpperCase())]=U(Z,L,F),I},{}):UN.indexOf(M)!==-1?U(un(V),L,M):(V.match(aM)&&(V=un(V.slice(1,V.length-1))),V==="true"||V!=="false"&&V)})(m,j,P,n);typeof W=="string"&&(Gd.test(W)||Zd.test(W))&&(O[z]=f(W.trim()))}else _!=="style"&&(O[v0[_]||_]=!0);return O},{}):null}const p=[],h={},b={0:{t:[">"],o:zn(b0),i:1,u(m,w,x){const[,O,_]=m[0].replace(GN,"").match(ZN);return{alert:O,children:w(_,x)}},l(m,w,x){const O={key:x.key};return m.alert&&(O.className="markdown-alert-"+r(m.alert.toLowerCase(),_s),m.children.unshift({attrs:{},children:[{type:"27",text:m.alert}],noInnerParse:!0,type:"11",tag:"header"})),u("blockquote",O,w(m.children,x))}},1:{t:[" "],o:Fl(KN),i:1,u:Yd,l:(m,w,x)=>u("br",{key:x.key})},2:{t:["--","__","**","- ","* ","_ "],o:zn(YN),i:1,u:Yd,l:(m,w,x)=>u("hr",{key:x.key})},3:{t:[" "],o:zn(w0),i:0,u:m=>({lang:void 0,text:un(oa(m[0].replace(/^ {4}/gm,"")))}),l:(m,w,x)=>u("pre",{key:x.key},u("code",zi({},m.attrs,{className:m.lang?"lang-"+m.lang:""}),m.text))},4:{t:["```","~~~"],o:zn(y0),i:0,u:m=>({attrs:g("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:"3"})},5:{t:["`"],o:ai(XN),i:3,u:m=>({text:un(m[2])}),l:(m,w,x)=>u("code",{key:x.key},m.text)},6:{t:["[^"],o:zn(eM),i:0,u:m=>(p.push({footnote:m[2],identifier:m[1]}),{}),l:Xd},7:{t:["[^"],o:Ii(tM),i:1,u:m=>({target:"#"+r(m[1],_s),text:m[1]}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href")},u("sup",{key:x.key},m.text))},8:{t:["[ ]","[x]"],o:Ii(iM),i:1,u:m=>({completed:m[1].toLowerCase()==="x"}),l:(m,w,x)=>u("input",{checked:m.completed,key:x.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:zn(t.enforceAtxHeadings?S0:x0),i:1,u:(m,w,x)=>({children:vc(w,m[2],x),id:r(m[2],_s),level:m[1].length}),l:(m,w,x)=>u("h"+m.level,{id:m.id,key:x.key},w(m.children,x))},10:{t:m=>{const w=m.indexOf(`
|
|
66
|
+
`);return w>0&&w<m.length-1&&(m[w+1]==="="||m[w+1]==="-")},o:zn(E0),i:0,u:(m,w,x)=>({children:vc(w,m[1],x),level:m[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Fl(Gd),i:1,u(m,w,x){const[,O]=m[3].match(CM),_=RegExp("^"+O,"gm"),R=m[3].replace(_,""),j=c(l,R)?UM:vc,P=m[1].toLowerCase(),z=WN.indexOf(P)!==-1,W=(z?P:m[1]).trim(),L={attrs:g(W,m[2]),noInnerParse:z,tag:W};if(x.inAnchor=x.inAnchor||P==="a",z)L.text=m[3];else{const M=x.inHTML;x.inHTML=!0,L.children=j(w,R,x),x.inHTML=M}return x.inAnchor=!1,L},l:(m,w,x)=>u(m.tag,zi({key:x.key},m.attrs),m.text||(m.children?w(m.children,x):""))},13:{t:["<"],o:Fl(Zd),i:1,u(m){const w=m[1].trim();return{attrs:g(w,m[2]||""),tag:w}},l:(m,w,x)=>u(m.tag,zi({},m.attrs,{key:x.key}))},12:{t:["<!--"],o:Fl(_0),i:1,u:()=>({}),l:Xd},14:{t:["!["],o:ai(LM),i:1,u:m=>({alt:un(m[1]),target:un(m[2]),title:un(m[3])}),l:(m,w,x)=>u("img",{key:x.key,alt:m.alt||void 0,title:m.title||void 0,src:n(m.target,"img","src")})},15:{t:["["],o:Ii(zM),i:3,u:(m,w,x)=>({children:WM(w,m[1],x),target:un(m[2]),title:un(m[3])}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href"),title:m.title},w(m.children,x))},16:{t:["<"],o:Ii(cM),i:0,u(m){let w=m[1],x=!1;return w.indexOf("@")!==-1&&w.indexOf("//")===-1&&(x=!0,w=w.replace("mailto:","")),{children:[{text:w,type:"27"}],target:x?"mailto:"+w:w,type:"15"}}},17:{t:(m,w)=>!w.inAnchor&&!t.disableAutoLink&&(gc(m,"http://")||gc(m,"https://")),o:Ii(lM),i:0,u:m=>({children:[{text:m[1],type:"27"}],target:m[1],title:void 0,type:"15"})},20:k0(u,1),33:k0(u,2),19:{t:[`
|
|
67
|
+
`],o:zn(JN),i:3,u:Yd,l:()=>`
|
|
68
|
+
`},21:{o:jo(function(m,w){if(w.inline||w.simple||w.inHTML&&m.indexOf(`
|
|
17
69
|
|
|
18
|
-
`)===-1&&
|
|
70
|
+
`)===-1&&w.prevCapture.indexOf(`
|
|
19
71
|
|
|
20
|
-
`)===-1)return null;let
|
|
21
|
-
`,
|
|
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(
|
|
24
|
-
overflow: hidden `).concat(
|
|
25
|
-
padding-right: `).concat(c,"px ").concat(
|
|
72
|
+
`)===-1)return null;let x="",O=0;for(;;){const R=m.indexOf(`
|
|
73
|
+
`,O),j=m.slice(O,R===-1?void 0:R+1);if(c(s,j)||(x+=j,R===-1||!j.trim()))break;O=R+1}const _=oa(x);return _===""?null:[x,,_]}),i:3,u:Kd,l:(m,w,x)=>u("p",{key:x.key},w(m.children,x))},22:{t:["["],o:Ii(fM),i:0,u:m=>(h[m[1]]={target:m[2],title:m[4]},{}),l:Xd},23:{t:["!["],o:ai(pM),i:0,u:m=>({alt:m[1]?un(m[1]):void 0,ref:m[2]}),l:(m,w,x)=>h[m.ref]?u("img",{key:x.key,alt:m.alt,src:n(h[m.ref].target,"img","src"),title:h[m.ref].title}):null},24:{t:m=>m[0]==="["&&m.indexOf("](")===-1,o:Ii(hM),i:0,u:(m,w,x)=>({children:w(m[1],x),fallbackChildren:m[0],ref:m[2]}),l:(m,w,x)=>h[m.ref]?u("a",{key:x.key,href:n(h[m.ref].target,"a","href"),title:h[m.ref].title},w(m.children,x)):u("span",{key:x.key},m.fallbackChildren)},25:{t:["|"],o:zn(O0),i:1,u:FM,l(m,w,x){const O=m;return u("table",{key:x.key},u("thead",null,u("tr",null,O.header.map(function(_,R){return u("th",{key:R,style:R0(O,R)},w(_,x))}))),u("tbody",null,O.cells.map(function(_,R){return u("tr",{key:R},_.map(function(j,P){return u("td",{key:P,style:R0(O,P)},w(j,x))}))})))}},27:{o:jo(function(m,w){let x;return gc(m,":")&&(x=OM.exec(m)),x||TM.exec(m)}),i:4,u(m){const w=m[0];return{text:w.indexOf("&")===-1?w:w.replace(oM,(x,O)=>t.namedCodesToUnicode[O]||x)}},l:m=>m.text},28:{t:["**","__"],o:ai(xM),i:2,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("strong",{key:x.key},w(m.children,x))},29:{t:m=>{const w=m[0];return(w==="*"||w==="_")&&m[1]!==w},o:ai(SM),i:3,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("em",{key:x.key},w(m.children,x))},30:{t:["\\"],o:ai(kM),i:1,u:m=>({text:m[1],type:"27"})},31:{t:["=="],o:ai(EM),i:3,u:Kd,l:(m,w,x)=>u("mark",{key:x.key},w(m.children,x))},32:{t:["~~"],o:ai(_M),i:3,u:Kd,l:(m,w,x)=>u("del",{key:x.key},w(m.children,x))}};t.disableParsingRawHTML===!0&&(delete b[11],delete b[13]);const S=(function(m){var w=Object.keys(m);function x(O,_){var R=[];if(_.prevCapture=_.prevCapture||"",O.trim())for(;O;)for(var j=0;j<w.length;){var P=w[j],z=m[P];if(!z.t||$M(O,_,z.t)){var W=z.o(O,_);if(W&&W[0]){O=O.substring(W[0].length);var L=z.u(W,x,_);_.prevCapture+=W[0],L.type||(L.type=P),R.push(L);break}j++}else j++}return _.prevCapture="",R}return w.sort(function(O,_){return m[O].i-m[_].i||(O<_?-1:1)}),function(O,_){return x((function(R){return R.replace(QN,`
|
|
74
|
+
`).replace(rM,"").replace(vM," ")})(O),_)}})(b),v=(function(m,w){return function x(O,_={}){if(Array.isArray(O)){const R=_.key,j=[];let P=!1;for(let z=0;z<O.length;z++){_.key=z;const W=x(O[z],_),L=A0(W);L&&P?j[j.length-1]+=W:W!==null&&j.push(W),P=L}return _.key=R,j}return(function(R,j,P){const z=m[R.type].l;return w?w(()=>z(R,j,P),R,j,P):z(R,j,P)})(O,x,_)}})(b,t.renderRule),y=f(e);return p.length?u("div",null,y,u("footer",{key:"footer"},p.map(function(m){return u("div",{id:r(m.identifier,_s),key:m.identifier},m.identifier,v(S(m.footnote,{inline:!0})))}))):y}const Pc=e=>{let{children:t="",options:r}=e,n=(function(i,s){if(i==null)return{};var l,c,u={},f=Object.keys(i);for(c=0;c<f.length;c++)s.indexOf(l=f[c])>=0||(u[l]=i[l]);return u})(e,BN);return B.cloneElement(qM(t,r),n)},C0=({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 A.jsx(t,{className:ct("flex-none size-6",r)});switch(e){case"error":case"danger":return A.jsx(W2,{className:ct("flex-none size-6",r)});case"info":return A.jsx(A.Fragment,{children:A.jsx(Lf,{className:ct("flex-none size-6",r)})});case"warning":return A.jsx(A.Fragment,{children:A.jsx(Op,{className:ct("flex-none size-6",r)})});case"message":return A.jsx(A.Fragment,{children:A.jsx(Lf,{className:ct("flex-none size-6",r)})});default:return null}},xx=({id:e,onClose:t,kind:r,message:n,markdown:i,customIcon:s})=>{const l=({className:c}={})=>A.jsx("button",{onClick:t,className:ct("flex justify-center p-1",c),children:A.jsx(Bo,{className:"size-4 font-thin stroke-current"})});return A.jsx("div",{className:ct("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof n=="string"?A.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[A.jsx("div",{className:"pt-1",children:A.jsx(C0,{kind:r,customIcon:s})}),A.jsx("div",{className:"flex items-center gap-1 prose",children:i?A.jsx(Pc,{children:n}):A.jsx(A.Fragment,{children:n})}),l()]}):A.jsxs("div",{className:"flex items-start",children:[A.jsx("div",{className:"flex flex-col gap-2 justify-between",children:n.filter(c=>c.messages.length>0).map(c=>A.jsxs(A.Fragment,{children:[c.title&&A.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[A.jsx(C0,{kind:r,customIcon:s}),A.jsxs("span",{children:[c.title," :"]})]}),A.jsx("ul",{className:ct("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(u=>A.jsx("li",{children:i?A.jsx(Pc,{children:u}):A.jsx(A.Fragment,{children:u})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},Sx=({children:e,size:t,className:r,...n})=>A.jsx("div",{style:{"--width":`${t||24}px`},className:ct("h-6 flex items-center pr-1 w-[--width]",r),...n,children:e});var Qd={},Os={},Hl={},P0;function Ex(){if(P0)return Hl;P0=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.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 Hl}var wo={},ks={},As={},I0;function GM(){if(I0)return As;I0=1,Object.defineProperty(As,"__esModule",{value:!0}),As.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 As.default=e,As}var N0;function Xc(){if(N0)return ks;N0=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var e=t(GM());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){return typeof i=="string"&&e.default.test(i)}var n=r;return ks.default=n,ks}var M0;function Jc(){if(M0)return wo;M0=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0,wo.unsafeStringify=n;var e=t(Xc());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 n(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 i(l,c=0){const u=n(l,c);if(!(0,e.default)(u))throw TypeError("Stringified UUID is invalid");return u}var s=i;return wo.default=s,wo}var D0;function ZM(){if(D0)return Os;D0=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var e=r(Ex()),t=Jc();function r(f){return f&&f.__esModule?f:{default:f}}let n,i,s=0,l=0;function c(f,g,p){let h=g&&p||0;const b=g||new Array(16);f=f||{};let S=f.node||n,v=f.clockseq!==void 0?f.clockseq:i;if(S==null||v==null){const _=f.random||(f.rng||e.default)();S==null&&(S=n=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),v==null&&(v=i=(_[6]<<8|_[7])&16383)}let y=f.msecs!==void 0?f.msecs:Date.now(),m=f.nsecs!==void 0?f.nsecs:l+1;const w=y-s+(m-l)/1e4;if(w<0&&f.clockseq===void 0&&(v=v+1&16383),(w<0||y>s)&&f.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=y,l=m,i=v,y+=122192928e5;const x=((y&268435455)*1e4+m)%4294967296;b[h++]=x>>>24&255,b[h++]=x>>>16&255,b[h++]=x>>>8&255,b[h++]=x&255;const O=y/4294967296*1e4&268435455;b[h++]=O>>>8&255,b[h++]=O&255,b[h++]=O>>>24&15|16,b[h++]=O>>>16&255,b[h++]=v>>>8|128,b[h++]=v&255;for(let _=0;_<6;++_)b[h+_]=S[_];return g||(0,t.unsafeStringify)(b)}var u=c;return Os.default=u,Os}var Ts={},li={},Rs={},z0;function _x(){if(z0)return Rs;z0=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var e=t(Xc());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){if(!(0,e.default)(i))throw TypeError("Invalid UUID");let s;const l=new Uint8Array(16);return l[0]=(s=parseInt(i.slice(0,8),16))>>>24,l[1]=s>>>16&255,l[2]=s>>>8&255,l[3]=s&255,l[4]=(s=parseInt(i.slice(9,13),16))>>>8,l[5]=s&255,l[6]=(s=parseInt(i.slice(14,18),16))>>>8,l[7]=s&255,l[8]=(s=parseInt(i.slice(19,23),16))>>>8,l[9]=s&255,l[10]=(s=parseInt(i.slice(24,36),16))/1099511627776&255,l[11]=s/4294967296&255,l[12]=s>>>24&255,l[13]=s>>>16&255,l[14]=s>>>8&255,l[15]=s&255,l}var n=r;return Rs.default=n,Rs}var L0;function Ox(){if(L0)return li;L0=1,Object.defineProperty(li,"__esModule",{value:!0}),li.URL=li.DNS=void 0,li.default=l;var e=Jc(),t=r(_x());function r(c){return c&&c.__esModule?c:{default:c}}function n(c){c=unescape(encodeURIComponent(c));const u=[];for(let f=0;f<c.length;++f)u.push(c.charCodeAt(f));return u}const i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";li.DNS=i;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";li.URL=s;function l(c,u,f){function g(p,h,b,S){var v;if(typeof p=="string"&&(p=n(p)),typeof h=="string"&&(h=(0,t.default)(h)),((v=h)===null||v===void 0?void 0:v.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let y=new Uint8Array(16+p.length);if(y.set(h),y.set(p,h.length),y=f(y),y[6]=y[6]&15|u,y[8]=y[8]&63|128,b){S=S||0;for(let m=0;m<16;++m)b[S+m]=y[m];return b}return(0,e.unsafeStringify)(y)}try{g.name=c}catch{}return g.DNS=i,g.URL=s,g}return li}var Cs={},$0;function KM(){if($0)return Cs;$0=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=void 0;function e(b){if(typeof b=="string"){const S=unescape(encodeURIComponent(b));b=new Uint8Array(S.length);for(let v=0;v<S.length;++v)b[v]=S.charCodeAt(v)}return t(n(i(b),b.length*8))}function t(b){const S=[],v=b.length*32,y="0123456789abcdef";for(let m=0;m<v;m+=8){const w=b[m>>5]>>>m%32&255,x=parseInt(y.charAt(w>>>4&15)+y.charAt(w&15),16);S.push(x)}return S}function r(b){return(b+64>>>9<<4)+14+1}function n(b,S){b[S>>5]|=128<<S%32,b[r(S)-1]=S;let v=1732584193,y=-271733879,m=-1732584194,w=271733878;for(let x=0;x<b.length;x+=16){const O=v,_=y,R=m,j=w;v=u(v,y,m,w,b[x],7,-680876936),w=u(w,v,y,m,b[x+1],12,-389564586),m=u(m,w,v,y,b[x+2],17,606105819),y=u(y,m,w,v,b[x+3],22,-1044525330),v=u(v,y,m,w,b[x+4],7,-176418897),w=u(w,v,y,m,b[x+5],12,1200080426),m=u(m,w,v,y,b[x+6],17,-1473231341),y=u(y,m,w,v,b[x+7],22,-45705983),v=u(v,y,m,w,b[x+8],7,1770035416),w=u(w,v,y,m,b[x+9],12,-1958414417),m=u(m,w,v,y,b[x+10],17,-42063),y=u(y,m,w,v,b[x+11],22,-1990404162),v=u(v,y,m,w,b[x+12],7,1804603682),w=u(w,v,y,m,b[x+13],12,-40341101),m=u(m,w,v,y,b[x+14],17,-1502002290),y=u(y,m,w,v,b[x+15],22,1236535329),v=f(v,y,m,w,b[x+1],5,-165796510),w=f(w,v,y,m,b[x+6],9,-1069501632),m=f(m,w,v,y,b[x+11],14,643717713),y=f(y,m,w,v,b[x],20,-373897302),v=f(v,y,m,w,b[x+5],5,-701558691),w=f(w,v,y,m,b[x+10],9,38016083),m=f(m,w,v,y,b[x+15],14,-660478335),y=f(y,m,w,v,b[x+4],20,-405537848),v=f(v,y,m,w,b[x+9],5,568446438),w=f(w,v,y,m,b[x+14],9,-1019803690),m=f(m,w,v,y,b[x+3],14,-187363961),y=f(y,m,w,v,b[x+8],20,1163531501),v=f(v,y,m,w,b[x+13],5,-1444681467),w=f(w,v,y,m,b[x+2],9,-51403784),m=f(m,w,v,y,b[x+7],14,1735328473),y=f(y,m,w,v,b[x+12],20,-1926607734),v=g(v,y,m,w,b[x+5],4,-378558),w=g(w,v,y,m,b[x+8],11,-2022574463),m=g(m,w,v,y,b[x+11],16,1839030562),y=g(y,m,w,v,b[x+14],23,-35309556),v=g(v,y,m,w,b[x+1],4,-1530992060),w=g(w,v,y,m,b[x+4],11,1272893353),m=g(m,w,v,y,b[x+7],16,-155497632),y=g(y,m,w,v,b[x+10],23,-1094730640),v=g(v,y,m,w,b[x+13],4,681279174),w=g(w,v,y,m,b[x],11,-358537222),m=g(m,w,v,y,b[x+3],16,-722521979),y=g(y,m,w,v,b[x+6],23,76029189),v=g(v,y,m,w,b[x+9],4,-640364487),w=g(w,v,y,m,b[x+12],11,-421815835),m=g(m,w,v,y,b[x+15],16,530742520),y=g(y,m,w,v,b[x+2],23,-995338651),v=p(v,y,m,w,b[x],6,-198630844),w=p(w,v,y,m,b[x+7],10,1126891415),m=p(m,w,v,y,b[x+14],15,-1416354905),y=p(y,m,w,v,b[x+5],21,-57434055),v=p(v,y,m,w,b[x+12],6,1700485571),w=p(w,v,y,m,b[x+3],10,-1894986606),m=p(m,w,v,y,b[x+10],15,-1051523),y=p(y,m,w,v,b[x+1],21,-2054922799),v=p(v,y,m,w,b[x+8],6,1873313359),w=p(w,v,y,m,b[x+15],10,-30611744),m=p(m,w,v,y,b[x+6],15,-1560198380),y=p(y,m,w,v,b[x+13],21,1309151649),v=p(v,y,m,w,b[x+4],6,-145523070),w=p(w,v,y,m,b[x+11],10,-1120210379),m=p(m,w,v,y,b[x+2],15,718787259),y=p(y,m,w,v,b[x+9],21,-343485551),v=s(v,O),y=s(y,_),m=s(m,R),w=s(w,j)}return[v,y,m,w]}function i(b){if(b.length===0)return[];const S=b.length*8,v=new Uint32Array(r(S));for(let y=0;y<S;y+=8)v[y>>5]|=(b[y/8]&255)<<y%32;return v}function s(b,S){const v=(b&65535)+(S&65535);return(b>>16)+(S>>16)+(v>>16)<<16|v&65535}function l(b,S){return b<<S|b>>>32-S}function c(b,S,v,y,m,w){return s(l(s(s(S,b),s(y,w)),m),v)}function u(b,S,v,y,m,w,x){return c(S&v|~S&y,b,S,m,w,x)}function f(b,S,v,y,m,w,x){return c(S&y|v&~y,b,S,m,w,x)}function g(b,S,v,y,m,w,x){return c(S^v^y,b,S,m,w,x)}function p(b,S,v,y,m,w,x){return c(v^(S|~y),b,S,m,w,x)}var h=e;return Cs.default=h,Cs}var j0;function YM(){if(j0)return Ts;j0=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=void 0;var e=r(Ox()),t=r(KM());function r(s){return s&&s.__esModule?s:{default:s}}var i=(0,e.default)("v3",48,t.default);return Ts.default=i,Ts}var Ps={},Is={},F0;function XM(){if(F0)return Is;F0=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Is.default=t,Is}var H0;function JM(){if(H0)return Ps;H0=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var e=n(XM()),t=n(Ex()),r=Jc();function n(l){return l&&l.__esModule?l:{default:l}}function i(l,c,u){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const f=l.random||(l.rng||t.default)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,c){u=u||0;for(let g=0;g<16;++g)c[u+g]=f[g];return c}return(0,r.unsafeStringify)(f)}var s=i;return Ps.default=s,Ps}var Ns={},Ms={},B0;function QM(){if(B0)return Ms;B0=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;function e(i,s,l,c){switch(i){case 0:return s&l^~s&c;case 1:return s^l^c;case 2:return s&l^s&c^l&c;case 3:return s^l^c}}function t(i,s){return i<<s|i>>>32-s}function r(i){const s=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof i=="string"){const g=unescape(encodeURIComponent(i));i=[];for(let p=0;p<g.length;++p)i.push(g.charCodeAt(p))}else Array.isArray(i)||(i=Array.prototype.slice.call(i));i.push(128);const c=i.length/4+2,u=Math.ceil(c/16),f=new Array(u);for(let g=0;g<u;++g){const p=new Uint32Array(16);for(let h=0;h<16;++h)p[h]=i[g*64+h*4]<<24|i[g*64+h*4+1]<<16|i[g*64+h*4+2]<<8|i[g*64+h*4+3];f[g]=p}f[u-1][14]=(i.length-1)*8/Math.pow(2,32),f[u-1][14]=Math.floor(f[u-1][14]),f[u-1][15]=(i.length-1)*8&4294967295;for(let g=0;g<u;++g){const p=new Uint32Array(80);for(let m=0;m<16;++m)p[m]=f[g][m];for(let m=16;m<80;++m)p[m]=t(p[m-3]^p[m-8]^p[m-14]^p[m-16],1);let h=l[0],b=l[1],S=l[2],v=l[3],y=l[4];for(let m=0;m<80;++m){const w=Math.floor(m/20),x=t(h,5)+e(w,b,S,v)+y+s[w]+p[m]>>>0;y=v,v=S,S=t(b,30)>>>0,b=h,h=x}l[0]=l[0]+h>>>0,l[1]=l[1]+b>>>0,l[2]=l[2]+S>>>0,l[3]=l[3]+v>>>0,l[4]=l[4]+y>>>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 n=r;return Ms.default=n,Ms}var W0;function eD(){if(W0)return Ns;W0=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=void 0;var e=r(Ox()),t=r(QM());function r(s){return s&&s.__esModule?s:{default:s}}var i=(0,e.default)("v5",80,t.default);return Ns.default=i,Ns}var Ds={},U0;function tD(){if(U0)return Ds;U0=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Ds.default=e,Ds}var zs={},V0;function rD(){if(V0)return zs;V0=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var e=t(Xc());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){if(!(0,e.default)(i))throw TypeError("Invalid UUID");return parseInt(i.slice(14,15),16)}var n=r;return zs.default=n,zs}var q0;function nD(){return q0||(q0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.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 n.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return i.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=g(ZM()),r=g(YM()),n=g(JM()),i=g(eD()),s=g(tD()),l=g(rD()),c=g(Xc()),u=g(Jc()),f=g(_x());function g(p){return p&&p.__esModule?p:{default:p}}})(Qd)),Qd}var ef,G0;function iD(){if(G0)return ef;G0=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,n,i,s={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,u=t.length,f=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<u;r++)s[r]=this.srcAlphabet.indexOf(t[r]);do{for(n=0,i=0,r=0;r<u;r++)n=n*l+s[r],n>=c?(s[i++]=parseInt(n/c,10),n=n%c):i>0&&(s[i++]=0);u=i,f=this.dstAlphabet.slice(n,n+1).concat(f)}while(i!==0);return f},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},ef=e,ef}var tf,Z0;function oD(){if(Z0)return tf;Z0=1;var e=iD();function t(r,n){var i=new e(r,n);return function(s){return i.convert(s)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",tf=t,tf}var rf,K0;function sD(){if(K0)return rf;K0=1;const{v4:e,validate:t}=nD(),r=oD(),n={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},i={consistentLength:!0};let s;const l=(f,g,p)=>{const h=g(f.toLowerCase().replace(/-/g,""));return!p||!p.consistentLength?h:h.padStart(p.shortIdLength,p.paddingChar)},c=(f,g)=>{const h=g(f).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[h[1],h[2],h[3],h[4],h[5]].join("-")},u=f=>Math.ceil(Math.log(2**128)/Math.log(f));return rf=(()=>{const f=(g,p)=>{const h=g||n.flickrBase58,b={...i,...p};if([...new Set(Array.from(h))].length!==h.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const S=u(h.length),v={shortIdLength:S,consistentLength:b.consistentLength,paddingChar:h[0]},y=r(r.HEX,h),m=r(h,r.HEX),w=()=>l(e(),y,v),O={alphabet:h,fromUUID:_=>l(_,y,v),maxLength:S,generate:w,new:w,toUUID:_=>c(_,m),uuid:e,validate:(_,R=!1)=>{if(!_||typeof _!="string")return!1;const j=b.consistentLength?_.length===S:_.length<=S,P=_.split("").every(z=>h.includes(z));return R===!1?j&&P:j&&P&&t(c(_,m))}};return Object.freeze(O),O};return f.constants=n,f.uuid=e,f.generate=()=>(s||(s=f(n.flickrBase58).generate),s()),f})(),rf}var gi=sD();const kx=({depth:e,height:t=24,width:r=11,showLines:n=!0,stroke:i})=>{const s=`indent_line_${gi.generate()}`;return A.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[A.jsx("defs",{children:A.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:A.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,className:i?`stroke-[${i}]`:"stroke-body"})})}),n?A.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):A.jsx("rect",{fill:n?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},Ax=({show:e,expanded:t,onClick:r,variant:n="arrow"})=>e?A.jsx("div",{className:"flex h-6 w-5 items-center",onClick:i=>r&&r(i),children:(()=>{switch(n){case"arrow":return A.jsx(ac,{className:ct(["h-3 w-3 transform transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?A.jsx(ac,{}):A.jsx(H2,{});default:return A.jsx(ac,{className:"h-3 w-3 transform transition ease-in-out"})}})()}):A.jsx("div",{className:"flex h-6 w-3 items-center"}),$p=({node:e,depth:t,expandedKeys:r,selectedKeys:n,actions:i,searchQuery:s,renderNode:l,onNodeClick:c})=>{var b;const{key:u,children:f}=e,g=N.useMemo(()=>({expanded:r.includes(e.key),selected:n.includes(e.key)}),[r,e.key,n]),p=l&&typeof l=="function"?l(e,t,g,i,s):cD(e,t,g,c);return!((b=e.options)!=null&&b.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"flex items-center gap-x-2",children:p},u),lD(f||[],t,s,r,n,g.expanded,i,c,l)]}):null},aD=function(e,t){var l;const{title:r,icon:n,subtitle:i}=e;let s=null;return n&&(s=A.jsx(Sx,{children:n})),A.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:[s,A.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),i&&A.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-muted",children:i})]})},lD=function(e,t,r,n,i,s,l,c,u){var f,g;return e.length&&s?(["dataclass-attribute","datasource-attribute","method"].includes(((f=e[0].data)==null?void 0:f.nodeType)||((g=e[0].data)==null?void 0:g.type))?e:e.sort((p,h)=>OS(p.title,h.title))).map(p=>A.jsx($p,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:n,selectedKeys:i,onNodeClick:c,renderNode:u},p.key)):null},cD=function(e,t,r,n){return A.jsxs(A.Fragment,{children:[A.jsx(kx,{showLines:!0,depth:t}),A.jsx(Ax,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),aD(e,n)]})},Bl=e=>t=>e===t,uD=function({treeData:t,renderNode:r,onNodeClick:n,onExpandNode:i,searchQuery:s,expandedKeys:l,expandCondition:c="always",encapsulated:u,className:f}){const[g,p]=N.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));N.useEffect(()=>{c==="when-collapsed"&&g.expandedKeys.length>0||p({...g,expandedKeys:l||g.expandedKeys})},[l]);const h=N.useCallback(m=>{if(!m)return;const w=g.expandedKeys.findIndex(Bl(m.key));let x=[];w===-1?(x=[...g.expandedKeys,m.key],p(()=>({...g,expandedKeys:x})),i&&i(x)):(x=g.expandedKeys.filter(O=>O!==m.key),p(()=>({...g,expandedKeys:x})),i&&i(x))},[g]),b=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(Bl(m.key))===-1&&p({...g,selectedKeys:[...g.selectedKeys,m.key]})},[g]),S=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(Bl(m.key))===-1&&p({...g,selectedKeys:[m.key]})},[g]),v=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable)){p({...g,selectedKeys:[]});return}g.selectedKeys.findIndex(Bl(m.key))!==-1&&p({...g,selectedKeys:g.selectedKeys.filter(O=>O!==m.key)})},[g]),y=N.useMemo(()=>({expand:h,select:b,selectSingle:S,deselect:v}),[v,h,b,S]);return A.jsx(qi,{depth:u?0:1,borderType:"light",className:ct("fd-tree",f,{"pl-2 mb-1 rounded border p-1":u}),children:t.map(m=>A.jsx($p,{node:m,searchQuery:s||"",depth:0,expandedKeys:g.expandedKeys,selectedKeys:g.selectedKeys,actions:y,renderNode:r,onNodeClick:n},m.key))})};function mc(e){return e.of&&e.children?A.jsx(A.Fragment,{children:e.children}):null}function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lt.apply(null,arguments)}function dD(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&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(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 fD={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 Tx(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var pD=/[A-Z]|^ms/g,hD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rx=function(t){return t.charCodeAt(1)===45},Y0=function(t){return t!=null&&typeof t!="boolean"},nf=Tx(function(e){return Rx(e)?e:e.replace(pD,"-$&").toLowerCase()}),X0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(hD,function(n,i,s){return mn={name:i,styles:s,next:mn},i})}return fD[t]!==1&&!Rx(t)&&typeof r=="number"&&r!==0?r+"px":r};function pa(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return mn={name:i.name,styles:i.styles,next:mn},i.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)mn={name:l.name,styles:l.styles,next:mn},l=l.next;var c=s.styles+";";return c}return gD(e,t,r)}case"function":{if(e!==void 0){var u=mn,f=r(e);return mn=u,pa(e,t,f)}break}}var g=r;if(t==null)return g;var p=t[g];return p!==void 0?p:g}function gD(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=pa(e,t,r[i])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?n+=s+"{"+t[c]+"}":Y0(c)&&(n+=nf(s)+":"+X0(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)Y0(l[u])&&(n+=nf(s)+":"+X0(s,l[u])+";");else{var f=pa(e,t,l);switch(s){case"animation":case"animationName":{n+=nf(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}return n}var J0=/label:\s*([^\s;{]+)\s*(;|$)/g,mn;function vD(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";mn=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,i+=pa(r,t,s);else{var l=s;i+=l[0]}for(var c=1;c<e.length;c++)if(i+=pa(r,t,e[c]),n){var u=s;i+=u[c]}J0.lastIndex=0;for(var f="",g;(g=J0.exec(i))!==null;)f+="-"+g[1];var p=dD(i)+f;return{name:p,styles:i,next:mn}}var mD=function(t){return t()},bD=B.useInsertionEffect?B.useInsertionEffect:!1,yD=bD||mD,wD=!0;function xD(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var Cx=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||wD===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},SD=function(t,r,n){Cx(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},ED=/^((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)-.*))$/,_D=Tx(function(e){return ED.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),OD=_D,kD=function(t){return t!=="theme"},Q0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?OD:kD},eb=function(t,r,n){var i;if(r){var s=r.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},AD=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Cx(r,n,i),yD(function(){return SD(r,n,i)}),null},TD=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=eb(t,r,n),u=c||Q0(i),f=!u("as");return function(){var g=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)p.push.apply(p,g);else{var h=g[0];p.push(h[0]);for(var b=g.length,S=1;S<b;S++)p.push(g[S],h[S])}var v=Mf.withEmotionCache(function(y,m,w){var x=f&&y.as||i,O="",_=[],R=y;if(y.theme==null){R={};for(var j in y)R[j]=y[j];R.theme=B.useContext(Mf.ThemeContext)}typeof y.className=="string"?O=xD(m.registered,_,y.className):y.className!=null&&(O=y.className+" ");var P=vD(p.concat(_),m.registered,R);O+=m.key+"-"+P.name,l!==void 0&&(O+=" "+l);var z=f&&c===void 0?Q0(x):u,W={};for(var L in y)f&&L==="as"||z(L)&&(W[L]=y[L]);return W.className=O,w&&(W.ref=w),B.createElement(B.Fragment,null,B.createElement(AD,{cache:m,serialized:P,isStringTag:typeof x=="string"}),B.createElement(x,W))});return v.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=p,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+l}}),v.withComponent=function(y,m){var w=e(y,Lt({},r,m,{shouldForwardProp:eb(v,m,!0)}));return w.apply(void 0,p)},v}},RD=["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"],Ic=TD.bind(null);RD.forEach(function(e){Ic[e]=Ic(e)});var CD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xo=new WeakMap,Wl=new WeakMap,Ul={},of=0,Px=function(e){return e&&(e.host||Px(e.parentNode))},PD=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Px(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},ID=function(e,t,r,n){var i=PD(t,Array.isArray(e)?e:[e]);Ul[r]||(Ul[r]=new WeakMap);var s=Ul[r],l=[],c=new Set,u=new Set(i),f=function(p){!p||c.has(p)||(c.add(p),f(p.parentNode))};i.forEach(f);var g=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(h){if(c.has(h))g(h);else try{var b=h.getAttribute(n),S=b!==null&&b!=="false",v=(xo.get(h)||0)+1,y=(s.get(h)||0)+1;xo.set(h,v),s.set(h,y),l.push(h),v===1&&S&&Wl.set(h,!0),y===1&&h.setAttribute(r,"true"),S||h.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return g(t),c.clear(),of++,function(){l.forEach(function(p){var h=xo.get(p)-1,b=s.get(p)-1;xo.set(p,h),s.set(p,b),h||(Wl.has(p)||p.removeAttribute(n),Wl.delete(p)),b||p.removeAttribute(r)}),of--,of||(xo=new WeakMap,xo=new WeakMap,Wl=new WeakMap,Ul={})}},ND=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=CD(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),ID(n,i,r,"aria-hidden")):function(){return null}},Uf=function(e,t){return Uf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Uf(e,t)};function Qc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Uf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var bn=function(){return bn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},bn.apply(this,arguments)};function Ix(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Vf(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],l;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(c){l={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return s}function Nc(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var bc="right-scroll-bar-position",yc="width-before-scroll-bar",MD="with-scroll-bars-hidden",DD="--removed-body-scroll-bar-size";function sf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zD(e,t){var r=N.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var LD=typeof window<"u"?B.useLayoutEffect:B.useEffect,tb=new WeakMap;function $D(e,t){var r=zD(null,function(n){return e.forEach(function(i){return sf(i,n)})});return LD(function(){var n=tb.get(r);if(n){var i=new Set(n),s=new Set(e),l=r.current;i.forEach(function(c){s.has(c)||sf(c,null)}),s.forEach(function(c){i.has(c)||sf(c,l)})}tb.set(r,e)},[e]),r}function jD(e){return e}function FD(e,t){t===void 0&&(t=jD);var r=[],n=!1,i={read:function(){if(n)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(s){var l=t(s,n);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(n=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){n=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var u=function(){var g=l;l=[],g.forEach(s)},f=function(){return Promise.resolve().then(u)};f(),r={push:function(g){l.push(g),f()},filter:function(g){return l=l.filter(g),r}}}};return i}function HD(e){e===void 0&&(e={});var t=FD(null);return t.options=bn({async:!0,ssr:!1},e),t}var Nx=function(e){var t=e.sideCar,r=Ix(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return B.createElement(n,bn({},r))};Nx.isSideCarExport=!0;function BD(e,t){return e.useMedium(t),Nx}var Mx=HD(),af=function(){},eu=B.forwardRef(function(e,t){var r=B.useRef(null),n=B.useState({onScrollCapture:af,onWheelCapture:af,onTouchMoveCapture:af}),i=n[0],s=n[1],l=e.forwardProps,c=e.children,u=e.className,f=e.removeScrollBar,g=e.enabled,p=e.shards,h=e.sideCar,b=e.noRelative,S=e.noIsolation,v=e.inert,y=e.allowPinchZoom,m=e.as,w=m===void 0?"div":m,x=e.gapMode,O=Ix(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,R=$D([r,t]),j=bn(bn({},O),i);return B.createElement(B.Fragment,null,g&&B.createElement(_,{sideCar:Mx,removeScrollBar:f,shards:p,noRelative:b,noIsolation:S,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:r,gapMode:x}),l?B.cloneElement(B.Children.only(c),bn(bn({},j),{ref:R})):B.createElement(w,bn({},j,{className:u,ref:R}),c))});eu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};eu.classNames={fullWidth:yc,zeroRight:bc};var WD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function UD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WD();return t&&e.setAttribute("nonce",t),e}function VD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var GD=function(){var e=0,t=null;return{add:function(r){e==0&&(t=UD())&&(VD(t,r),qD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ZD=function(){var e=GD();return function(t,r){B.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Dx=function(){var e=ZD(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},KD={left:0,top:0,right:0,gap:0},lf=function(e){return parseInt(e||"",10)||0},YD=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[lf(r),lf(n),lf(i)]},XD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KD;var t=YD(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},JD=Dx(),Co="data-scroll-locked",QD=function(e,t,r,n){var i=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
75
|
+
.`.concat(MD,` {
|
|
76
|
+
overflow: hidden `).concat(n,`;
|
|
77
|
+
padding-right: `).concat(c,"px ").concat(n,`;
|
|
26
78
|
}
|
|
27
|
-
body[`).concat(
|
|
28
|
-
overflow: hidden `).concat(
|
|
79
|
+
body[`).concat(Co,`] {
|
|
80
|
+
overflow: hidden `).concat(n,`;
|
|
29
81
|
overscroll-behavior: contain;
|
|
30
|
-
`).concat([t&&"position: relative ".concat(
|
|
31
|
-
padding-left: `.concat(
|
|
32
|
-
padding-top: `).concat(
|
|
82
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
83
|
+
padding-left: `.concat(i,`px;
|
|
84
|
+
padding-top: `).concat(s,`px;
|
|
33
85
|
padding-right: `).concat(l,`px;
|
|
34
86
|
margin-left:0;
|
|
35
87
|
margin-top:0;
|
|
36
|
-
margin-right: `).concat(c,"px ").concat(
|
|
37
|
-
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(
|
|
88
|
+
margin-right: `).concat(c,"px ").concat(n,`;
|
|
89
|
+
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
38
90
|
}
|
|
39
91
|
|
|
40
|
-
.`).concat(
|
|
41
|
-
right: `).concat(c,"px ").concat(
|
|
92
|
+
.`).concat(bc,` {
|
|
93
|
+
right: `).concat(c,"px ").concat(n,`;
|
|
42
94
|
}
|
|
43
95
|
|
|
44
|
-
.`).concat(
|
|
45
|
-
margin-right: `).concat(c,"px ").concat(
|
|
96
|
+
.`).concat(yc,` {
|
|
97
|
+
margin-right: `).concat(c,"px ").concat(n,`;
|
|
46
98
|
}
|
|
47
99
|
|
|
48
|
-
.`).concat(
|
|
49
|
-
right: 0 `).concat(
|
|
100
|
+
.`).concat(bc," .").concat(bc,` {
|
|
101
|
+
right: 0 `).concat(n,`;
|
|
50
102
|
}
|
|
51
103
|
|
|
52
|
-
.`).concat(
|
|
53
|
-
margin-right: 0 `).concat(
|
|
104
|
+
.`).concat(yc," .").concat(yc,` {
|
|
105
|
+
margin-right: 0 `).concat(n,`;
|
|
54
106
|
}
|
|
55
107
|
|
|
56
|
-
body[`).concat(
|
|
57
|
-
`).concat(
|
|
108
|
+
body[`).concat(Co,`] {
|
|
109
|
+
`).concat(DD,": ").concat(c,`px;
|
|
58
110
|
}
|
|
59
|
-
`)},
|
|
111
|
+
`)},rb=function(){var e=parseInt(document.body.getAttribute(Co)||"0",10);return isFinite(e)?e:0},e3=function(){B.useEffect(function(){return document.body.setAttribute(Co,(rb()+1).toString()),function(){var e=rb()-1;e<=0?document.body.removeAttribute(Co):document.body.setAttribute(Co,e.toString())}},[])},t3=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;e3();var s=B.useMemo(function(){return XD(i)},[i]);return B.createElement(JD,{styles:QD(s,!t,i,r?"":"!important")})},Gf=!1;if(typeof window<"u")try{var Vl=Object.defineProperty({},"passive",{get:function(){return Gf=!0,!0}});window.addEventListener("test",Vl,Vl),window.removeEventListener("test",Vl,Vl)}catch{Gf=!1}var So=Gf?{passive:!1}:!1,r3=function(e){return e.tagName==="TEXTAREA"},zx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!r3(e)&&r[t]==="visible")},n3=function(e){return zx(e,"overflowY")},i3=function(e){return zx(e,"overflowX")},nb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=Lx(e,n);if(i){var s=$x(e,n),l=s[1],c=s[2];if(l>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},o3=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},s3=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Lx=function(e,t){return e==="v"?n3(t):i3(t)},$x=function(e,t){return e==="v"?o3(t):s3(t)},a3=function(e,t){return e==="h"&&t==="rtl"?-1:1},l3=function(e,t,r,n,i){var s=a3(e,window.getComputedStyle(t).direction),l=s*n,c=r.target,u=t.contains(c),f=!1,g=l>0,p=0,h=0;do{if(!c)break;var b=$x(e,c),S=b[0],v=b[1],y=b[2],m=v-y-s*S;(S||m)&&Lx(e,c)&&(p+=m,h+=S);var w=c.parentNode;c=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(g&&Math.abs(p)<1||!g&&Math.abs(h)<1)&&(f=!0),f},ql=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ib=function(e){return[e.deltaX,e.deltaY]},ob=function(e){return e&&"current"in e?e.current:e},c3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},u3=function(e){return`
|
|
60
112
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
113
|
.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
|
|
114
|
+
`)},d3=0,Eo=[];function f3(e){var t=B.useRef([]),r=B.useRef([0,0]),n=B.useRef(),i=B.useState(d3++)[0],s=B.useState(Dx)[0],l=B.useRef(e);B.useEffect(function(){l.current=e},[e]),B.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=Nc([e.lockRef.current],(e.shards||[]).map(ob),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=B.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var m=ql(v),w=r.current,x="deltaX"in v?v.deltaX:w[0]-m[0],O="deltaY"in v?v.deltaY:w[1]-m[1],_,R=v.target,j=Math.abs(x)>Math.abs(O)?"h":"v";if("touches"in v&&j==="h"&&R.type==="range")return!1;var P=window.getSelection(),z=P&&P.anchorNode,W=z?z===R||z.contains(R):!1;if(W)return!1;var L=nb(j,R);if(!L)return!0;if(L?_=j:(_=j==="v"?"h":"v",L=nb(j,R)),!L)return!1;if(!n.current&&"changedTouches"in v&&(x||O)&&(n.current=_),!_)return!0;var M=n.current||_;return l3(M,y,v,M==="h"?x:O)},[]),u=B.useCallback(function(v){var y=v;if(!(!Eo.length||Eo[Eo.length-1]!==s)){var m="deltaY"in y?ib(y):ql(y),w=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&c3(_.delta,m)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var x=(l.current.shards||[]).map(ob).filter(Boolean).filter(function(_){return _.contains(y.target)}),O=x.length>0?c(y,x[0]):!l.current.noIsolation;O&&y.cancelable&&y.preventDefault()}}},[]),f=B.useCallback(function(v,y,m,w){var x={name:v,delta:y,target:m,should:w,shadowParent:p3(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(O){return O!==x})},1)},[]),g=B.useCallback(function(v){r.current=ql(v),n.current=void 0},[]),p=B.useCallback(function(v){f(v.type,ib(v),v.target,c(v,e.lockRef.current))},[]),h=B.useCallback(function(v){f(v.type,ql(v),v.target,c(v,e.lockRef.current))},[]);B.useEffect(function(){return Eo.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,So),document.addEventListener("touchmove",u,So),document.addEventListener("touchstart",g,So),function(){Eo=Eo.filter(function(v){return v!==s}),document.removeEventListener("wheel",u,So),document.removeEventListener("touchmove",u,So),document.removeEventListener("touchstart",g,So)}},[]);var b=e.removeScrollBar,S=e.inert;return B.createElement(B.Fragment,null,S?B.createElement(s,{styles:u3(i)}):null,b?B.createElement(t3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function p3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const h3=BD(Mx,f3);var jx=B.forwardRef(function(e,t){return B.createElement(eu,bn({},e,{ref:t,sideCar:h3}))});jx.classNames=eu.classNames;const g3=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},v3=B.useId||(()=>{});let m3=0;function b3(e){const[t,r]=B.useState(v3());return g3((()=>{r((n=>n??String(m3++)))}),[e]),e||(t?`radix-${t}`:"")}function Fx(...e){return t=>e.forEach((r=>(function(n,i){typeof n=="function"?n(i):n!=null&&(n.current=i)})(r,t)))}function Gi(...e){return B.useCallback(Fx(...e),e)}const Hx=B.forwardRef(((e,t)=>{const{children:r,...n}=e;return B.Children.toArray(r).some(sb)?B.createElement(B.Fragment,null,B.Children.map(r,(i=>sb(i)?B.createElement(Zf,Lt({},n,{ref:t}),i.props.children):i))):B.createElement(Zf,Lt({},n,{ref:t}),r)}));Hx.displayName="Slot";const Zf=B.forwardRef(((e,t)=>{const{children:r,...n}=e;return B.isValidElement(r)?B.cloneElement(r,{...w3(n,r.props),ref:Fx(t,r.ref)}):B.Children.count(r)>1?B.Children.only(null):null}));Zf.displayName="SlotClone";const y3=({children:e})=>B.createElement(B.Fragment,null,e);function sb(e){return B.isValidElement(e)&&e.type===y3}function w3(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?r[n]=(...l)=>{s==null||s(...l),i==null||i(...l)}:n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}const qo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:B.forwardRef(((r,n)=>{const{asChild:i,...s}=r,l=i?Hx:t;return B.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),B.createElement(l,Lt({},s,{ref:n}))}))})),{}),ab=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},Bx=e=>{const{present:t,children:r}=e,n=(function(l){const[c,u]=B.useState(),f=B.useRef({}),g=B.useRef(l),p=B.useRef("none"),h=l?"mounted":"unmounted",[b,S]=(function(v,y){return B.useReducer(((m,w)=>{const x=y[m][w];return x??m}),v)})(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return B.useEffect((()=>{const v=Gl(f.current);p.current=b==="mounted"?v:"none"}),[b]),ab((()=>{const v=f.current,y=g.current;if(y!==l){const m=p.current,w=Gl(v);l?S("MOUNT"):w==="none"||(v==null?void 0:v.display)==="none"?S("UNMOUNT"):S(y&&m!==w?"ANIMATION_OUT":"UNMOUNT"),g.current=l}}),[l,S]),ab((()=>{if(c){const v=m=>{const w=Gl(f.current).includes(m.animationName);m.target===c&&w&&S("ANIMATION_END")},y=m=>{m.target===c&&(p.current=Gl(f.current))};return c.addEventListener("animationstart",y),c.addEventListener("animationcancel",v),c.addEventListener("animationend",v),()=>{c.removeEventListener("animationstart",y),c.removeEventListener("animationcancel",v),c.removeEventListener("animationend",v)}}S("ANIMATION_END")}),[c,S]),{isPresent:["mounted","unmountSuspended"].includes(b),ref:B.useCallback((v=>{v&&(f.current=getComputedStyle(v)),u(v)}),[])}})(t),i=typeof r=="function"?r({present:n.isPresent}):B.Children.only(r),s=Gi(n.ref,i.ref);return typeof r=="function"||n.isPresent?B.cloneElement(i,{ref:s}):null};function Gl(e){return(e==null?void 0:e.animationName)||"none"}Bx.displayName="Presence";let cf=0;function x3(){B.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:lb()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:lb()),cf++,()=>{cf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((n=>n.remove())),cf--}}),[])}function lb(){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 S3=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},Wx=B.forwardRef(((e,t)=>{var r,n;const{containerRef:i,style:s,...l}=e,c=(r=i==null?void 0:i.current)!==null&&r!==void 0?r:globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,[,u]=B.useState({});return S3((()=>{u({})}),[]),c?En.createPortal(B.createElement(qo.div,Lt({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null}));function Wi(e){const t=B.useRef(e);return B.useEffect((()=>{t.current=e})),B.useMemo((()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)}),[])}const cb={bubbles:!1,cancelable:!0},E3=B.forwardRef(((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,u]=B.useState(null),f=Wi(i),g=Wi(s),p=B.useRef(null),h=Gi(t,(v=>u(v))),b=B.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;B.useEffect((()=>{if(n){let v=function(m){if(b.paused||!c)return;const w=m.target;c.contains(w)?p.current=w:Ni(p.current,{select:!0})},y=function(m){!b.paused&&c&&(c.contains(m.relatedTarget)||Ni(p.current,{select:!0}))};return document.addEventListener("focusin",v),document.addEventListener("focusout",y),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y)}}}),[n,c,b.paused]),B.useEffect((()=>{if(c){fb.add(b);const y=document.activeElement;if(!c.contains(y)){const m=new Event("focusScope.autoFocusOnMount",cb);c.addEventListener("focusScope.autoFocusOnMount",f),c.dispatchEvent(m),m.defaultPrevented||((function(w,{select:x=!1}={}){const O=document.activeElement;for(const _ of w)if(Ni(_,{select:x}),document.activeElement!==O)return})((v=ub(c),v.filter((w=>w.tagName!=="A"))),{select:!0}),document.activeElement===y&&Ni(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",f),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",cb);c.addEventListener("focusScope.autoFocusOnUnmount",g),c.dispatchEvent(m),m.defaultPrevented||Ni(y??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",g),fb.remove(b)}),0)}}var v}),[c,f,g,b]);const S=B.useCallback((v=>{if(!r&&!n||b.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(y&&m){const w=v.currentTarget,[x,O]=(function(_){const R=ub(_),j=db(R,_),P=db(R.reverse(),_);return[j,P]})(w);x&&O?v.shiftKey||m!==O?v.shiftKey&&m===x&&(v.preventDefault(),r&&Ni(O,{select:!0})):(v.preventDefault(),r&&Ni(x,{select:!0})):m===w&&v.preventDefault()}}),[r,n,b.paused]);return B.createElement(qo.div,Lt({tabIndex:-1},l,{ref:h,onKeyDown:S}))}));function ub(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function db(e,t){for(const r of e)if(!_3(r,{upTo:t}))return r}function _3(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 Ni(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(n){return n instanceof HTMLInputElement&&"select"in n})(e)&&t&&e.select()}}const fb=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=pb(e,t),e.unshift(t)},remove(t){var r;e=pb(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function pb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function O3(e){const t=Wi(e);B.useEffect((()=>{const r=n=>{n.key==="Escape"&&t(n)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const k3=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{};let hb,Zl=0;function A3({disabled:e}){const t=B.useRef(!1);k3((()=>{if(e){let r=function(){Zl--,Zl===0&&(document.body.style.pointerEvents=hb)},n=function(i){t.current=i.pointerType!=="mouse"};return Zl===0&&(hb=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Zl++,document.addEventListener("pointerup",n),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",n)}}}),[e])}function Hi(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}const T3=B.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),R3=B.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,f=B.useContext(T3),[g,p]=B.useState(null),[,h]=B.useState({}),b=Gi(t,(R=>p(R))),S=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=S.indexOf(v),m=g?S.indexOf(g):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,x=m>=y,O=(function(R){const j=Wi(R),P=B.useRef(!1);return B.useEffect((()=>{const z=L=>{L.target&&!P.current&&vb("dismissableLayer.pointerDownOutside",j,{originalEvent:L}),P.current=!1},W=window.setTimeout((()=>{document.addEventListener("pointerdown",z)}),0);return()=>{window.clearTimeout(W),document.removeEventListener("pointerdown",z)}}),[j]),{onPointerDownCapture:()=>P.current=!0}})((R=>{const j=R.target,P=[...f.branches].some((z=>z.contains(j)));x&&!P&&(i==null||i(R),l==null||l(R),R.defaultPrevented||c==null||c())})),_=(function(R){const j=Wi(R),P=B.useRef(!1);return B.useEffect((()=>{const z=W=>{W.target&&!P.current&&vb("dismissableLayer.focusOutside",j,{originalEvent:W})};return document.addEventListener("focusin",z),()=>document.removeEventListener("focusin",z)}),[j]),{onFocusCapture:()=>P.current=!0,onBlurCapture:()=>P.current=!1}})((R=>{const j=R.target;[...f.branches].some((P=>P.contains(j)))||(s==null||s(R),l==null||l(R),R.defaultPrevented||c==null||c())}));return O3((R=>{m===f.layers.size-1&&(n==null||n(R),R.defaultPrevented||c==null||c())})),A3({disabled:r}),B.useEffect((()=>{g&&(r&&f.layersWithOutsidePointerEventsDisabled.add(g),f.layers.add(g),gb())}),[g,r,f]),B.useEffect((()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),gb())}),[g,f]),B.useEffect((()=>{const R=()=>h({});return document.addEventListener("dismissableLayer.update",R),()=>document.removeEventListener("dismissableLayer.update",R)}),[]),B.createElement(qo.div,Lt({},u,{ref:b,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Hi(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Hi(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Hi(e.onPointerDownCapture,O.onPointerDownCapture)}))}));function gb(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function vb(e,t,r){const n=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&n.addEventListener(e,t,{once:!0}),!n.dispatchEvent(i)}function mb(e){const[t,r]=B.useState(void 0);return B.useEffect((()=>{if(e){const n=new ResizeObserver((i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,c;if("borderBoxSize"in s){const u=s.borderBoxSize,f=Array.isArray(u)?u[0]:u;l=f.inlineSize,c=f.blockSize}else{const u=e.getBoundingClientRect();l=u.width,c=u.height}r({width:l,height:c})}));return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}r(void 0)}),[e]),t}function C3(e,t){const r=Mi.get(e);return r===void 0?(Mi.set(e,{rect:{},callbacks:[t]}),Mi.size===1&&(Kf=requestAnimationFrame(Ux))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Mi.get(e);if(n===void 0)return;const i=n.callbacks.indexOf(t);i>-1&&n.callbacks.splice(i,1),n.callbacks.length===0&&(Mi.delete(e),Mi.size===0&&cancelAnimationFrame(Kf))}}let Kf;const Mi=new Map;function Ux(){const e=[];Mi.forEach(((t,r)=>{const n=r.getBoundingClientRect();var i,s;i=t.rect,s=n,(i.width!==s.width||i.height!==s.height||i.top!==s.top||i.right!==s.right||i.bottom!==s.bottom||i.left!==s.left)&&(t.rect=n,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),Kf=requestAnimationFrame(Ux)}function P3(e){const[t,r]=B.useState();return B.useEffect((()=>{if(e){const n=C3(e,r);return()=>{r(void 0),n()}}}),[e]),t}function Vx(e,t=[]){let r=[];const n=()=>{const i=r.map((s=>B.createContext(s)));return function(s){const l=(s==null?void 0:s[e])||i;return B.useMemo((()=>({[`__scope${e}`]:{...s,[e]:l}})),[s,l])}};return n.scopeName=e,[function(i,s){const l=B.createContext(s),c=r.length;function u(f){const{scope:g,children:p,...h}=f,b=(g==null?void 0:g[e][c])||l,S=B.useMemo((()=>h),Object.values(h));return B.createElement(b.Provider,{value:S},p)}return r=[...r,s],u.displayName=i+"Provider",[u,function(f,g){const p=(g==null?void 0:g[e][c])||l,h=B.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}]},I3(n,...t)]}function I3(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map((i=>({useScope:i(),scopeName:i.scopeName})));return function(i){const s=n.reduce(((l,{useScope:c,scopeName:u})=>({...l,...c(i)[`__scope${u}`]})),{});return B.useMemo((()=>({[`__scope${t.scopeName}`]:s})),[s])}};return r.scopeName=t.scopeName,r}function N3({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:n=0,side:i,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:u=!0,collisionBoundariesRect:f,collisionTolerance:g=0}){if(!e||!t||!f)return{popperStyles:M3,arrowStyles:uf};const p=(function(j,P,z=0,W=0,L){const M=L?L.height:0,V=bb(P,j,"x"),U=bb(P,j,"y"),I=U.before-z-M,F=U.after+z+M,Z=V.before-z-M,X=V.after+z+M;return{top:{start:{x:V.start+W,y:I},center:{x:V.center,y:I},end:{x:V.end-W,y:I}},right:{start:{x:X,y:U.start+W},center:{x:X,y:U.center},end:{x:X,y:U.end-W}},bottom:{start:{x:V.start+W,y:F},center:{x:V.center,y:F},end:{x:V.end-W,y:F}},left:{start:{x:Z,y:U.start+W},center:{x:Z,y:U.center},end:{x:Z,y:U.end-W}}}})(t,e,s,c,r),h=p[i][l];if(u===!1){const j=yb(h);let P=uf;return r&&(P=xb({popperSize:t,arrowSize:r,arrowOffset:n,side:i,align:l})),{popperStyles:{...j,"--radix-popper-transform-origin":wb(t,i,l,n,r)},arrowStyles:P,placedSide:i,placedAlign:l}}const b=DOMRect.fromRect({...t,...h}),S=(v=f,y=g,DOMRect.fromRect({width:v.width-2*y,height:v.height-2*y,x:v.left+y,y:v.top+y}));var v,y;const m=Eb(b,S),w=p[Sb(i)][l],x=(function(j,P,z){const W=Sb(j);return P[j]&&!z[W]?W:j})(i,m,Eb(DOMRect.fromRect({...t,...w}),S)),O=(function(j,P,z,W,L){const M=z==="top"||z==="bottom",V=M?"left":"top",U=M?"right":"bottom",I=M?"width":"height",F=P[I]>j[I];return(W==="start"||W==="center")&&(L[V]&&F||L[U]&&!F)?"end":(W==="end"||W==="center")&&(L[U]&&F||L[V]&&!F)?"start":W})(t,e,i,l,m),_=yb(p[x][O]);let R=uf;return r&&(R=xb({popperSize:t,arrowSize:r,arrowOffset:n,side:x,align:O})),{popperStyles:{..._,"--radix-popper-transform-origin":wb(t,x,O,n,r)},arrowStyles:R,placedSide:x,placedAlign:O}}function bb(e,t,r){const n=e[r==="x"?"left":"top"],i=r==="x"?"width":"height",s=e[i],l=t[i];return{before:n-l,start:n,center:n+(s-l)/2,end:n+s-l,after:n+s}}function yb(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 wb(e,t,r,n,i){const s=t==="top"||t==="bottom",l=i?i.width:0,c=i?i.height:0,u=l/2+n;let f="",g="";return s?(f={start:`${u}px`,center:"center",end:e.width-u+"px"}[r],g=t==="top"?`${e.height+c}px`:-c+"px"):(f=t==="left"?`${e.width+c}px`:-c+"px",g={start:`${u}px`,center:"center",end:e.height-u+"px"}[r]),`${f} ${g}`}const M3={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},uf={position:"absolute",opacity:0};function xb({popperSize:e,arrowSize:t,arrowOffset:r,side:n,align:i}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[n],u=Math.max(t.width,t.height),f={width:`${u}px`,height:`${u}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[n]:"100%",direction:D3(n,i)};return n!=="top"&&n!=="bottom"||(i==="start"&&(f.left=`${r}px`),i==="center"&&(f.left=`${s}px`),i==="end"&&(f.right=`${r}px`)),n!=="left"&&n!=="right"||(i==="start"&&(f.top=`${r}px`),i==="center"&&(f.top=`${l}px`),i==="end"&&(f.bottom=`${r}px`)),f}function D3(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Sb(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Eb(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[qx,Gx]=Vx("Popper"),[z3,Zx]=qx("Popper"),L3=e=>{const{__scopePopper:t,children:r}=e,[n,i]=B.useState(null);return B.createElement(z3,{scope:t,anchor:n,onAnchorChange:i},r)},$3=B.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,s=Zx("PopperAnchor",r),l=B.useRef(null),c=Gi(t,l);return B.useEffect((()=>{s.onAnchorChange((n==null?void 0:n.current)||l.current)})),n?null:B.createElement(qo.div,Lt({},i,{ref:c}))})),[j3,Z6]=qx("PopperContent"),F3=B.forwardRef(((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:i,align:s="center",alignOffset:l,collisionTolerance:c,avoidCollisions:u=!0,...f}=e,g=Zx("PopperContent",r),[p,h]=B.useState(),b=P3(g.anchor),[S,v]=B.useState(null),y=mb(S),[m,w]=B.useState(null),x=mb(m),O=Gi(t,(M=>v(M))),_=(function(){const[M,V]=B.useState(void 0);return B.useEffect((()=>{let U;function I(){V({width:window.innerWidth,height:window.innerHeight})}function F(){window.clearTimeout(U),U=window.setTimeout(I,100)}return I(),window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)}),[]),M})(),R=_?DOMRect.fromRect({..._,x:0,y:0}):void 0,{popperStyles:j,arrowStyles:P,placedSide:z,placedAlign:W}=N3({anchorRect:b,popperSize:y,arrowSize:x,arrowOffset:p,side:n,sideOffset:i,align:s,alignOffset:l,shouldAvoidCollisions:u,collisionBoundariesRect:R,collisionTolerance:c}),L=z!==void 0;return B.createElement("div",{style:j,"data-radix-popper-content-wrapper":""},B.createElement(j3,{scope:r,arrowStyles:P,onArrowChange:w,onArrowOffsetChange:h},B.createElement(qo.div,Lt({"data-side":z,"data-align":W},f,{style:{...f.style,animation:L?void 0:"none"},ref:O}))))})),H3=L3,B3=$3,W3=F3;function U3({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,i]=(function({defaultProp:u,onChange:f}){const g=B.useState(u),[p]=g,h=B.useRef(p),b=Wi(f);return B.useEffect((()=>{h.current!==p&&(b(p),h.current=p)}),[p,h,b]),g})({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:n,c=Wi(r);return[l,B.useCallback((u=>{if(s){const f=u,g=typeof u=="function"?f(e):u;g!==e&&c(g)}else i(u)}),[s,e,i,c])]}const[V3]=Vx("Popover",[Gx]),jp=Gx(),[q3,Aa]=V3("Popover"),G3=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=jp(t),u=B.useRef(null),[f,g]=B.useState(!1),[p=!1,h]=U3({prop:n,defaultProp:i,onChange:s});return B.createElement(H3,c,B.createElement(q3,{scope:t,contentId:b3(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:B.useCallback((()=>h((b=>!b))),[h]),hasCustomAnchor:f,onCustomAnchorAdd:B.useCallback((()=>g(!0)),[]),onCustomAnchorRemove:B.useCallback((()=>g(!1)),[]),modal:l},r))},Z3=B.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,i=Aa("PopoverTrigger",r),s=jp(r),l=Gi(t,i.triggerRef),c=B.createElement(qo.button,Lt({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Yx(i.open)},n,{ref:l,onClick:Hi(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?c:B.createElement(B3,Lt({asChild:!0},s),c)})),K3=B.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,i=Aa("PopoverContent",e.__scopePopover);return B.createElement(Bx,{present:r||i.open},i.modal?B.createElement(Y3,Lt({},n,{ref:t})):B.createElement(X3,Lt({},n,{ref:t})))})),Y3=B.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:n=!0,...i}=e,s=Aa("PopoverContent",e.__scopePopover),l=B.useRef(null),c=Gi(t,l),u=B.useRef(!1);B.useEffect((()=>{const g=l.current;if(g)return ND(g)}),[]);const f=n?Wx:B.Fragment;return B.createElement(f,null,B.createElement(jx,{allowPinchZoom:r},B.createElement(Kx,Lt({},i,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Hi(e.onCloseAutoFocus,(g=>{var p;g.preventDefault(),u.current||(p=s.triggerRef.current)===null||p===void 0||p.focus()})),onPointerDownOutside:Hi(e.onPointerDownOutside,(g=>{const p=g.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0,b=p.button===2||h;u.current=b}),{checkForDefaultPrevented:!1}),onFocusOutside:Hi(e.onFocusOutside,(g=>g.preventDefault()),{checkForDefaultPrevented:!1})}))))})),X3=B.forwardRef(((e,t)=>{const{portalled:r=!0,...n}=e,i=Aa("PopoverContent",e.__scopePopover),s=B.useRef(!1),l=r?Wx:B.Fragment;return B.createElement(l,null,B.createElement(Kx,Lt({},n,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var u,f;(u=e.onCloseAutoFocus)===null||u===void 0||u.call(e,c),c.defaultPrevented||(s.current||(f=i.triggerRef.current)===null||f===void 0||f.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var u,f;(u=e.onInteractOutside)===null||u===void 0||u.call(e,c),c.defaultPrevented||(s.current=!0);const g=c.target;!((f=i.triggerRef.current)===null||f===void 0)&&f.contains(g)&&c.preventDefault()}})))})),Kx=B.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:g,...p}=e,h=Aa("PopoverContent",r),b=jp(r);return x3(),B.createElement(E3,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},B.createElement(R3,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>h.onOpenChange(!1)},B.createElement(W3,Lt({"data-state":Yx(h.open),role:"dialog",id:h.contentId},b,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Yx(e){return e?"open":"closed"}const J3=G3,Q3=Z3,ez=K3;var wc=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(wc||{}),df={},Ls={},Kl={},Yl={},Xl={exports:{}},Jl={exports:{}},Xe={};/** @license React v16.13.1
|
|
63
115
|
* react-is.production.min.js
|
|
64
116
|
*
|
|
65
117
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
118
|
*
|
|
67
119
|
* This source code is licensed under the MIT license found in the
|
|
68
120
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var
|
|
121
|
+
*/var _b;function tz(){if(_b)return Xe;_b=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case u:case f:case n:case s:case i:case p:return _;default:switch(_=_&&_.$$typeof,_){case c:case g:case S:case b:case l:return _;default:return R}}case r:return R}}}function O(_){return x(_)===f}return Xe.AsyncMode=u,Xe.ConcurrentMode=f,Xe.ContextConsumer=c,Xe.ContextProvider=l,Xe.Element=t,Xe.ForwardRef=g,Xe.Fragment=n,Xe.Lazy=S,Xe.Memo=b,Xe.Portal=r,Xe.Profiler=s,Xe.StrictMode=i,Xe.Suspense=p,Xe.isAsyncMode=function(_){return O(_)||x(_)===u},Xe.isConcurrentMode=O,Xe.isContextConsumer=function(_){return x(_)===c},Xe.isContextProvider=function(_){return x(_)===l},Xe.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Xe.isForwardRef=function(_){return x(_)===g},Xe.isFragment=function(_){return x(_)===n},Xe.isLazy=function(_){return x(_)===S},Xe.isMemo=function(_){return x(_)===b},Xe.isPortal=function(_){return x(_)===r},Xe.isProfiler=function(_){return x(_)===s},Xe.isStrictMode=function(_){return x(_)===i},Xe.isSuspense=function(_){return x(_)===p},Xe.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===f||_===s||_===i||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===S||_.$$typeof===b||_.$$typeof===l||_.$$typeof===c||_.$$typeof===g||_.$$typeof===y||_.$$typeof===m||_.$$typeof===w||_.$$typeof===v)},Xe.typeOf=x,Xe}var Je={};/** @license React v16.13.1
|
|
70
122
|
* react-is.development.js
|
|
71
123
|
*
|
|
72
124
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
125
|
*
|
|
74
126
|
* This source code is licensed under the MIT license found in the
|
|
75
127
|
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var
|
|
128
|
+
*/var Ob;function rz(){return Ob||(Ob=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,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(J){return typeof J=="string"||typeof J=="function"||J===n||J===f||J===s||J===i||J===p||J===h||typeof J=="object"&&J!==null&&(J.$$typeof===S||J.$$typeof===b||J.$$typeof===l||J.$$typeof===c||J.$$typeof===g||J.$$typeof===y||J.$$typeof===m||J.$$typeof===w||J.$$typeof===v)}function O(J){if(typeof J=="object"&&J!==null){var Pe=J.$$typeof;switch(Pe){case t:var ve=J.type;switch(ve){case u:case f:case n:case s:case i:case p:return ve;default:var Le=ve&&ve.$$typeof;switch(Le){case c:case g:case S:case b:case l:return Le;default:return Pe}}case r:return Pe}}}var _=u,R=f,j=c,P=l,z=t,W=g,L=n,M=S,V=b,U=r,I=s,F=i,Z=p,X=!1;function pe(J){return X||(X=!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.")),$(J)||O(J)===u}function $(J){return O(J)===f}function G(J){return O(J)===c}function te(J){return O(J)===l}function Q(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function Y(J){return O(J)===g}function ce(J){return O(J)===n}function ie(J){return O(J)===S}function re(J){return O(J)===b}function de(J){return O(J)===r}function ge(J){return O(J)===s}function he(J){return O(J)===i}function xe(J){return O(J)===p}Je.AsyncMode=_,Je.ConcurrentMode=R,Je.ContextConsumer=j,Je.ContextProvider=P,Je.Element=z,Je.ForwardRef=W,Je.Fragment=L,Je.Lazy=M,Je.Memo=V,Je.Portal=U,Je.Profiler=I,Je.StrictMode=F,Je.Suspense=Z,Je.isAsyncMode=pe,Je.isConcurrentMode=$,Je.isContextConsumer=G,Je.isContextProvider=te,Je.isElement=Q,Je.isForwardRef=Y,Je.isFragment=ce,Je.isLazy=ie,Je.isMemo=re,Je.isPortal=de,Je.isProfiler=ge,Je.isStrictMode=he,Je.isSuspense=xe,Je.isValidElementType=x,Je.typeOf=O})()),Je}var kb;function Xx(){return kb||(kb=1,process.env.NODE_ENV==="production"?Jl.exports=tz():Jl.exports=rz()),Jl.exports}/*
|
|
77
129
|
object-assign
|
|
78
130
|
(c) Sindre Sorhus
|
|
79
131
|
@license MIT
|
|
80
|
-
*/var
|
|
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)`
|
|
132
|
+
*/var ff,Ab;function nz(){if(Ab)return ff;Ab=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(g){f[g]=g}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ff=i()?Object.assign:function(s,l){for(var c,u=n(s),f,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){f=e(c);for(var h=0;h<f.length;h++)r.call(c,f[h])&&(u[f[h]]=c[f[h]])}}return u},ff}var pf,Tb;function Fp(){if(Tb)return pf;Tb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pf=e,pf}var hf,Rb;function Jx(){return Rb||(Rb=1,hf=Function.call.bind(Object.prototype.hasOwnProperty)),hf}var gf,Cb;function iz(){if(Cb)return gf;Cb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fp(),r={},n=Jx();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,u,f){if(process.env.NODE_ENV!=="production"){for(var g in s)if(n(s,g)){var p;try{if(typeof s[g]!="function"){var h=Error((u||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=s[g](l,g,u,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+g+"` 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 b=f?f():"";e("Failed "+c+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},gf=i,gf}var vf,Pb;function oz(){if(Pb)return vf;Pb=1;var e=Xx(),t=nz(),r=Fp(),n=Jx(),i=iz(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return vf=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p($){var G=$&&(f&&$[f]||$[g]);if(typeof G=="function")return G}var h="<<anonymous>>",b={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:O(),elementType:_(),instanceOf:R,node:W(),objectOf:P,oneOf:j,oneOfType:z,shape:M,exact:V};function S($,G){return $===G?$!==0||1/$===1/G:$!==$&&G!==G}function v($,G){this.message=$,this.data=G&&typeof G=="object"?G:{},this.stack=""}v.prototype=Error.prototype;function y($){if(process.env.NODE_ENV!=="production")var G={},te=0;function Q(ce,ie,re,de,ge,he,xe){if(de=de||h,he=he||re,xe!==r){if(u){var J=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 J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Pe=de+":"+re;!G[Pe]&&te<3&&(s("You are manually calling a React.PropTypes validation function for the `"+he+"` prop on `"+de+"`. 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."),G[Pe]=!0,te++)}}return ie[re]==null?ce?ie[re]===null?new v("The "+ge+" `"+he+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new v("The "+ge+" `"+he+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:$(ie,re,de,ge,he)}var Y=Q.bind(null,!1);return Y.isRequired=Q.bind(null,!0),Y}function m($){function G(te,Q,Y,ce,ie,re){var de=te[Q],ge=F(de);if(ge!==$){var he=Z(de);return new v("Invalid "+ce+" `"+ie+"` of type "+("`"+he+"` supplied to `"+Y+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return y(G)}function w(){return y(l)}function x($){function G(te,Q,Y,ce,ie){if(typeof $!="function")return new v("Property `"+ie+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var re=te[Q];if(!Array.isArray(re)){var de=F(re);return new v("Invalid "+ce+" `"+ie+"` of type "+("`"+de+"` supplied to `"+Y+"`, expected an array."))}for(var ge=0;ge<re.length;ge++){var he=$(re,ge,Y,ce,ie+"["+ge+"]",r);if(he instanceof Error)return he}return null}return y(G)}function O(){function $(G,te,Q,Y,ce){var ie=G[te];if(!c(ie)){var re=F(ie);return new v("Invalid "+Y+" `"+ce+"` of type "+("`"+re+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return y($)}function _(){function $(G,te,Q,Y,ce){var ie=G[te];if(!e.isValidElementType(ie)){var re=F(ie);return new v("Invalid "+Y+" `"+ce+"` of type "+("`"+re+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return y($)}function R($){function G(te,Q,Y,ce,ie){if(!(te[Q]instanceof $)){var re=$.name||h,de=pe(te[Q]);return new v("Invalid "+ce+" `"+ie+"` of type "+("`"+de+"` supplied to `"+Y+"`, expected ")+("instance of `"+re+"`."))}return null}return y(G)}function j($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function G(te,Q,Y,ce,ie){for(var re=te[Q],de=0;de<$.length;de++)if(S(re,$[de]))return null;var ge=JSON.stringify($,function(xe,J){var Pe=Z(J);return Pe==="symbol"?String(J):J});return new v("Invalid "+ce+" `"+ie+"` of value `"+String(re)+"` "+("supplied to `"+Y+"`, expected one of "+ge+"."))}return y(G)}function P($){function G(te,Q,Y,ce,ie){if(typeof $!="function")return new v("Property `"+ie+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var re=te[Q],de=F(re);if(de!=="object")return new v("Invalid "+ce+" `"+ie+"` of type "+("`"+de+"` supplied to `"+Y+"`, expected an object."));for(var ge in re)if(n(re,ge)){var he=$(re,ge,Y,ce,ie+"."+ge,r);if(he instanceof Error)return he}return null}return y(G)}function z($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var G=0;G<$.length;G++){var te=$[G];if(typeof te!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+X(te)+" at index "+G+"."),l}function Q(Y,ce,ie,re,de){for(var ge=[],he=0;he<$.length;he++){var xe=$[he],J=xe(Y,ce,ie,re,de,r);if(J==null)return null;J.data&&n(J.data,"expectedType")&&ge.push(J.data.expectedType)}var Pe=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new v("Invalid "+re+" `"+de+"` supplied to "+("`"+ie+"`"+Pe+"."))}return y(Q)}function W(){function $(G,te,Q,Y,ce){return U(G[te])?null:new v("Invalid "+Y+" `"+ce+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return y($)}function L($,G,te,Q,Y){return new v(($||"React class")+": "+G+" type `"+te+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function M($){function G(te,Q,Y,ce,ie){var re=te[Q],de=F(re);if(de!=="object")return new v("Invalid "+ce+" `"+ie+"` of type `"+de+"` "+("supplied to `"+Y+"`, expected `object`."));for(var ge in $){var he=$[ge];if(typeof he!="function")return L(Y,ce,ie,ge,Z(he));var xe=he(re,ge,Y,ce,ie+"."+ge,r);if(xe)return xe}return null}return y(G)}function V($){function G(te,Q,Y,ce,ie){var re=te[Q],de=F(re);if(de!=="object")return new v("Invalid "+ce+" `"+ie+"` of type `"+de+"` "+("supplied to `"+Y+"`, expected `object`."));var ge=t({},te[Q],$);for(var he in ge){var xe=$[he];if(n($,he)&&typeof xe!="function")return L(Y,ce,ie,he,Z(xe));if(!xe)return new v("Invalid "+ce+" `"+ie+"` key `"+he+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(te[Q],null," ")+`
|
|
133
|
+
Valid keys: `+JSON.stringify(Object.keys($),null," "));var J=xe(re,he,Y,ce,ie+"."+he,r);if(J)return J}return null}return y(G)}function U($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(U);if($===null||c($))return!0;var G=p($);if(G){var te=G.call($),Q;if(G!==$.entries){for(;!(Q=te.next()).done;)if(!U(Q.value))return!1}else for(;!(Q=te.next()).done;){var Y=Q.value;if(Y&&!U(Y[1]))return!1}}else return!1;return!0;default:return!1}}function I($,G){return $==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function F($){var G=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":I(G,$)?"symbol":G}function Z($){if(typeof $>"u"||$===null)return""+$;var G=F($);if(G==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return G}function X($){var G=Z($);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function pe($){return!$.constructor||!$.constructor.name?h:$.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},vf}var mf,Ib;function sz(){if(Ib)return mf;Ib=1;var e=Fp();function t(){}function r(){}return r.resetWarningCache=t,mf=function(){function n(l,c,u,f,g,p){if(p!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},mf}var Nb;function az(){if(Nb)return Xl.exports;if(Nb=1,process.env.NODE_ENV!=="production"){var e=Xx(),t=!0;Xl.exports=oz()(e.isElement,t)}else Xl.exports=sz()();return Xl.exports}var Mb;function lz(){return Mb||(Mb=1,(function(e){(function(t,r){r(e,N,az())})(Yl,function(t,r,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=S;var i=l(r),s=l(n);function l(w){return w&&w.__esModule?w:{default:w}}var c=Object.assign||function(w){for(var x=1;x<arguments.length;x++){var O=arguments[x];for(var _ in O)Object.prototype.hasOwnProperty.call(O,_)&&(w[_]=O[_])}return w};function u(w,x){var O={};for(var _ in w)x.indexOf(_)>=0||Object.prototype.hasOwnProperty.call(w,_)&&(O[_]=w[_]);return O}function f(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}var g=(function(){function w(x,O){for(var _=0;_<O.length;_++){var R=O[_];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,O,_){return O&&w(x.prototype,O),_&&w(x,_),x}})();function p(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function h(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var b=!1;function S(w){b=w}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function v(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return b?w:w.capture}function y(w){if("touches"in w){var x=w.touches[0],O=x.pageX,_=x.pageY;return{x:O,y:_}}var R=w.screenX,j=w.screenY;return{x:R,y:j}}var m=(function(w){h(x,w);function x(){var O;f(this,x);for(var _=arguments.length,R=Array(_),j=0;j<_;j++)R[j]=arguments[j];var P=p(this,(O=x.__proto__||Object.getPrototypeOf(x)).call.apply(O,[this].concat(R)));return P._handleSwipeStart=P._handleSwipeStart.bind(P),P._handleSwipeMove=P._handleSwipeMove.bind(P),P._handleSwipeEnd=P._handleSwipeEnd.bind(P),P._onMouseDown=P._onMouseDown.bind(P),P._onMouseMove=P._onMouseMove.bind(P),P._onMouseUp=P._onMouseUp.bind(P),P._setSwiperRef=P._setSwiperRef.bind(P),P}return g(x,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(_){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(_))}},{key:"_onMouseMove",value:function(_){this.mouseDown&&this._handleSwipeMove(_)}},{key:"_onMouseUp",value:function(_){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(_)}},{key:"_handleSwipeStart",value:function(_){var R=y(_),j=R.x,P=R.y;this.moveStart={x:j,y:P},this.props.onSwipeStart(_)}},{key:"_handleSwipeMove",value:function(_){if(this.moveStart){var R=y(_),j=R.x,P=R.y,z=j-this.moveStart.x,W=P-this.moveStart.y;this.moving=!0;var L=this.props.onSwipeMove({x:z,y:W},_);L&&_.cancelable&&_.preventDefault(),this.movePosition={deltaX:z,deltaY:W}}}},{key:"_handleSwipeEnd",value:function(_){this.props.onSwipeEnd(_);var R=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-R?this.props.onSwipeLeft(1,_):this.movePosition.deltaX>R&&this.props.onSwipeRight(1,_),this.movePosition.deltaY<-R?this.props.onSwipeUp(1,_):this.movePosition.deltaY>R&&this.props.onSwipeDown(1,_)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(_){this.swiper=_,this.props.innerRef(_)}},{key:"render",value:function(){var _=this.props;_.tagName;var R=_.className,j=_.style,P=_.children;_.allowMouseEvents,_.onSwipeUp,_.onSwipeDown,_.onSwipeLeft,_.onSwipeRight,_.onSwipeStart,_.onSwipeMove,_.onSwipeEnd,_.innerRef,_.tolerance;var z=u(_,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return i.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:j},z),P)}}]),x})(r.Component);m.displayName="ReactSwipe",m.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},m.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=m})})(Yl)),Yl}var Db;function Qx(){return Db||(Db=1,(function(e){(function(t,r){r(e,lz())})(Kl,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=i(r);function i(s){return s&&s.__esModule?s:{default:s}}t.default=n.default})})(Kl)),Kl}var $s={},zb;function e1(){if(zb)return $s;zb=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e=t(fx());function t(i){return i&&i.__esModule?i:{default:i}}function r(i,s,l){return s in i?Object.defineProperty(i,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[s]=l,i}var n={ROOT:function(s){return(0,e.default)(r({"carousel-root":!0},s||"",!!s))},CAROUSEL:function(s){return(0,e.default)({carousel:!0,"carousel-slider":s})},WRAPPER:function(s,l){return(0,e.default)({"thumbs-wrapper":!s,"slider-wrapper":s,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(s,l){return(0,e.default)({thumbs:!s,slider:s,animated:!l})},ITEM:function(s,l,c){return(0,e.default)({thumb:!s,slide:s,selected:l,previous:c})},ARROW_PREV:function(s){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":s})},ARROW_NEXT:function(s){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":s})},DOT:function(s){return(0,e.default)({dot:!0,selected:s})}};return $s.default=n,$s}var js={},Fs={},Lb;function cz(){if(Lb)return Fs;Lb=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.outerWidth=void 0;var e=function(r){var n=r.offsetWidth,i=getComputedStyle(r);return n+=parseInt(i.marginLeft)+parseInt(i.marginRight),n};return Fs.outerWidth=e,Fs}var Hs={},$b;function Hp(){if($b)return Hs;$b=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=function(r,n,i){var s=r===0?r:r+n,l=i==="horizontal"?[s,0,0]:[0,s,0],c="translate3d",u="("+l.join(",")+")";return c+u};return Hs.default=e,Hs}var Bs={},jb;function t1(){if(jb)return Bs;jb=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var e=function(){return window};return Bs.default=e,Bs}var Fb;function r1(){if(Fb)return js;Fb=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=void 0;var e=u(N),t=l(e1()),r=cz(),n=l(Hp()),i=l(Qx()),s=l(t1());function l(P){return P&&P.__esModule?P:{default:P}}function c(){if(typeof WeakMap!="function")return null;var P=new WeakMap;return c=function(){return P},P}function u(P){if(P&&P.__esModule)return P;if(P===null||f(P)!=="object"&&typeof P!="function")return{default:P};var z=c();if(z&&z.has(P))return z.get(P);var W={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in P)if(Object.prototype.hasOwnProperty.call(P,M)){var V=L?Object.getOwnPropertyDescriptor(P,M):null;V&&(V.get||V.set)?Object.defineProperty(W,M,V):W[M]=P[M]}return W.default=P,z&&z.set(P,W),W}function f(P){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(W){return typeof W}:f=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},f(P)}function g(){return g=Object.assign||function(P){for(var z=1;z<arguments.length;z++){var W=arguments[z];for(var L in W)Object.prototype.hasOwnProperty.call(W,L)&&(P[L]=W[L])}return P},g.apply(this,arguments)}function p(P,z){if(!(P instanceof z))throw new TypeError("Cannot call a class as a function")}function h(P,z){for(var W=0;W<z.length;W++){var L=z[W];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}function b(P,z,W){return z&&h(P.prototype,z),P}function S(P,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(z&&z.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),z&&v(P,z)}function v(P,z){return v=Object.setPrototypeOf||function(L,M){return L.__proto__=M,L},v(P,z)}function y(P){var z=x();return function(){var L=O(P),M;if(z){var V=O(this).constructor;M=Reflect.construct(L,arguments,V)}else M=L.apply(this,arguments);return m(this,M)}}function m(P,z){return z&&(f(z)==="object"||typeof z=="function")?z:w(P)}function w(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(P){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},O(P)}function _(P,z,W){return z in P?Object.defineProperty(P,z,{value:W,enumerable:!0,configurable:!0,writable:!0}):P[z]=W,P}var R=function(z){return z.hasOwnProperty("key")},j=(function(P){S(W,P);var z=y(W);function W(L){var M;return p(this,W),M=z.call(this,L),_(w(M),"itemsWrapperRef",void 0),_(w(M),"itemsListRef",void 0),_(w(M),"thumbsRef",void 0),_(w(M),"setItemsWrapperRef",function(V){M.itemsWrapperRef=V}),_(w(M),"setItemsListRef",function(V){M.itemsListRef=V}),_(w(M),"setThumbsRef",function(V,U){M.thumbsRef||(M.thumbsRef=[]),M.thumbsRef[U]=V}),_(w(M),"updateSizes",function(){if(!(!M.props.children||!M.itemsWrapperRef||!M.thumbsRef)){var V=e.Children.count(M.props.children),U=M.itemsWrapperRef.clientWidth,I=M.props.thumbWidth?M.props.thumbWidth:(0,r.outerWidth)(M.thumbsRef[0]),F=Math.floor(U/I),Z=F<V,X=Z?V-F:0;M.setState(function(pe,$){return{itemSize:I,visibleItems:F,firstItem:Z?M.getFirstItem($.selectedItem):0,lastPosition:X,showArrows:Z}})}}),_(w(M),"handleClickItem",function(V,U,I){if(!R(I)||I.key==="Enter"){var F=M.props.onSelectItem;typeof F=="function"&&F(V,U)}}),_(w(M),"onSwipeStart",function(){M.setState({swiping:!0})}),_(w(M),"onSwipeEnd",function(){M.setState({swiping:!1})}),_(w(M),"onSwipeMove",function(V){var U=V.x;if(!M.state.itemSize||!M.itemsWrapperRef||!M.state.visibleItems)return!1;var I=0,F=e.Children.count(M.props.children),Z=-(M.state.firstItem*100)/M.state.visibleItems,X=Math.max(F-M.state.visibleItems,0),pe=-X*100/M.state.visibleItems;Z===I&&U>0&&(U=0),Z===pe&&U<0&&(U=0);var $=M.itemsWrapperRef.clientWidth,G=Z+100/($/U);return M.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(te){M.itemsListRef.style[te]=(0,n.default)(G,"%",M.props.axis)}),!0}),_(w(M),"slideRight",function(V){M.moveTo(M.state.firstItem-(typeof V=="number"?V:1))}),_(w(M),"slideLeft",function(V){M.moveTo(M.state.firstItem+(typeof V=="number"?V:1))}),_(w(M),"moveTo",function(V){V=V<0?0:V,V=V>=M.state.lastPosition?M.state.lastPosition:V,M.setState({firstItem:V})}),M.state={selectedItem:L.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},M}return b(W,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(M){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==M.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(M){var V=M;return M>=this.state.lastPosition&&(V=this.state.lastPosition),M<this.state.firstItem+this.state.visibleItems&&(V=this.state.firstItem),M<this.state.firstItem&&(V=M),V}},{key:"renderItems",value:function(){var M=this;return this.props.children.map(function(V,U){var I=t.default.ITEM(!1,U===M.state.selectedItem),F={key:U,ref:function(X){return M.setThumbsRef(X,U)},className:I,onClick:M.handleClickItem.bind(M,U,M.props.children[U]),onKeyDown:M.handleClickItem.bind(M,U,M.props.children[U]),"aria-label":"".concat(M.props.labels.item," ").concat(U+1),style:{width:M.props.thumbWidth}};return e.default.createElement("li",g({},F,{role:"button",tabIndex:0}),V)})}},{key:"render",value:function(){var M=this;if(!this.props.children)return null;var V=e.Children.count(this.props.children)>1,U=this.state.showArrows&&this.state.firstItem>0,I=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,F={},Z=-this.state.firstItem*(this.state.itemSize||0),X=(0,n.default)(Z,"px",this.props.axis),pe=this.props.transitionTime+"ms";return F={WebkitTransform:X,MozTransform:X,MsTransform:X,OTransform:X,transform:X,msTransform:X,WebkitTransitionDuration:pe,MozTransitionDuration:pe,MsTransitionDuration:pe,OTransitionDuration:pe,transitionDuration:pe,msTransitionDuration:pe},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(!U),onClick:function(){return M.slideRight()},"aria-label":this.props.labels.leftArrow}),V?e.default.createElement(i.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:F,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(G){return M.setItemsListRef(G)},style:F},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!I),onClick:function(){return M.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),W})(e.Component);return js.default=j,_(j,"displayName","Thumbs"),_(j,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),js}var Ws={},Hb;function uz(){if(Hb)return Ws;Hb=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=function(){return document};return Ws.default=e,Ws}var wr={},Bb;function n1(){if(Bb)return wr;Bb=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.setPosition=wr.getPosition=wr.isKeyboardEvent=wr.defaultStatusFormatter=wr.noop=void 0;var e=N,t=r(Hp());function r(u){return u&&u.__esModule?u:{default:u}}var n=function(){};wr.noop=n;var i=function(f,g){return"".concat(f," of ").concat(g)};wr.defaultStatusFormatter=i;var s=function(f){return f?f.hasOwnProperty("key"):!1};wr.isKeyboardEvent=s;var l=function(f,g){if(g.infiniteLoop&&++f,f===0)return 0;var p=e.Children.count(g.children);if(g.centerMode&&g.axis==="horizontal"){var h=-f*g.centerSlidePercentage,b=p-1;return f&&(f!==b||g.infiniteLoop)?h+=(100-g.centerSlidePercentage)/2:f===b&&(h+=100-g.centerSlidePercentage),h}return-f*100};wr.getPosition=l;var c=function(f,g){var p={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(h){p[h]=(0,t.default)(f,"%",g)}),p};return wr.setPosition=c,wr}var Zr={},Wb;function dz(){if(Wb)return Zr;Wb=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.fadeAnimationHandler=Zr.slideStopSwipingHandler=Zr.slideSwipeAnimationHandler=Zr.slideAnimationHandler=void 0;var e=N,t=n(Hp()),r=n1();function n(p){return p&&p.__esModule?p:{default:p}}function i(p,h){var b=Object.keys(p);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(p);h&&(S=S.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),b.push.apply(b,S)}return b}function s(p){for(var h=1;h<arguments.length;h++){var b=arguments[h]!=null?arguments[h]:{};h%2?i(Object(b),!0).forEach(function(S){l(p,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(b)):i(Object(b)).forEach(function(S){Object.defineProperty(p,S,Object.getOwnPropertyDescriptor(b,S))})}return p}function l(p,h,b){return h in p?Object.defineProperty(p,h,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[h]=b,p}var c=function(h,b){var S={},v=b.selectedItem,y=v,m=e.Children.count(h.children)-1,w=h.infiniteLoop&&(v<0||v>m);if(w)return y<0?h.centerMode&&h.centerSlidePercentage&&h.axis==="horizontal"?S.itemListStyle=(0,r.setPosition)(-(m+2)*h.centerSlidePercentage-(100-h.centerSlidePercentage)/2,h.axis):S.itemListStyle=(0,r.setPosition)(-(m+2)*100,h.axis):y>m&&(S.itemListStyle=(0,r.setPosition)(0,h.axis)),S;var x=(0,r.getPosition)(v,h),O=(0,t.default)(x,"%",h.axis),_=h.transitionTime+"ms";return S.itemListStyle={WebkitTransform:O,msTransform:O,OTransform:O,transform:O},b.swiping||(S.itemListStyle=s(s({},S.itemListStyle),{},{WebkitTransitionDuration:_,MozTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_})),S};Zr.slideAnimationHandler=c;var u=function(h,b,S,v){var y={},m=b.axis==="horizontal",w=e.Children.count(b.children),x=0,O=(0,r.getPosition)(S.selectedItem,b),_=b.infiniteLoop?(0,r.getPosition)(w-1,b)-100:(0,r.getPosition)(w-1,b),R=m?h.x:h.y,j=R;O===x&&R>0&&(j=0),O===_&&R<0&&(j=0);var P=O+100/(S.itemSize/j),z=Math.abs(R)>b.swipeScrollTolerance;return b.infiniteLoop&&z&&(S.selectedItem===0&&P>-100?P-=w*100:S.selectedItem===w-1&&P<-w*100&&(P+=w*100)),(!b.preventMovementUntilSwipeScrollTolerance||z||S.swipeMovementStarted)&&(S.swipeMovementStarted||v({swipeMovementStarted:!0}),y.itemListStyle=(0,r.setPosition)(P,b.axis)),z&&!S.cancelClick&&v({cancelClick:!0}),y};Zr.slideSwipeAnimationHandler=u;var f=function(h,b){var S=(0,r.getPosition)(b.selectedItem,h),v=(0,r.setPosition)(S,h.axis);return{itemListStyle:v}};Zr.slideStopSwipingHandler=f;var g=function(h,b){var S=h.transitionTime+"ms",v="ease-in-out",y={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:v,msTransitionTimingFunction:v,MozTransitionTimingFunction:v,WebkitTransitionTimingFunction:v,OTransitionTimingFunction:v};return b.swiping||(y=s(s({},y),{},{WebkitTransitionDuration:S,MozTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S})),{slideStyle:y,selectedStyle:s(s({},y),{},{opacity:1,position:"relative"}),prevStyle:s({},y)}};return Zr.fadeAnimationHandler=g,Zr}var Ub;function fz(){if(Ub)return Ls;Ub=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.default=void 0;var e=g(N),t=u(Qx()),r=u(e1()),n=u(r1()),i=u(uz()),s=u(t1()),l=n1(),c=dz();function u(L){return L&&L.__esModule?L:{default:L}}function f(){if(typeof WeakMap!="function")return null;var L=new WeakMap;return f=function(){return L},L}function g(L){if(L&&L.__esModule)return L;if(L===null||p(L)!=="object"&&typeof L!="function")return{default:L};var M=f();if(M&&M.has(L))return M.get(L);var V={},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in L)if(Object.prototype.hasOwnProperty.call(L,I)){var F=U?Object.getOwnPropertyDescriptor(L,I):null;F&&(F.get||F.set)?Object.defineProperty(V,I,F):V[I]=L[I]}return V.default=L,M&&M.set(L,V),V}function p(L){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(V){return typeof V}:p=function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},p(L)}function h(){return h=Object.assign||function(L){for(var M=1;M<arguments.length;M++){var V=arguments[M];for(var U in V)Object.prototype.hasOwnProperty.call(V,U)&&(L[U]=V[U])}return L},h.apply(this,arguments)}function b(L,M){var V=Object.keys(L);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(L);M&&(U=U.filter(function(I){return Object.getOwnPropertyDescriptor(L,I).enumerable})),V.push.apply(V,U)}return V}function S(L){for(var M=1;M<arguments.length;M++){var V=arguments[M]!=null?arguments[M]:{};M%2?b(Object(V),!0).forEach(function(U){z(L,U,V[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(V)):b(Object(V)).forEach(function(U){Object.defineProperty(L,U,Object.getOwnPropertyDescriptor(V,U))})}return L}function v(L,M){if(!(L instanceof M))throw new TypeError("Cannot call a class as a function")}function y(L,M){for(var V=0;V<M.length;V++){var U=M[V];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,U.key,U)}}function m(L,M,V){return M&&y(L.prototype,M),L}function w(L,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(M&&M.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),M&&x(L,M)}function x(L,M){return x=Object.setPrototypeOf||function(U,I){return U.__proto__=I,U},x(L,M)}function O(L){var M=j();return function(){var U=P(L),I;if(M){var F=P(this).constructor;I=Reflect.construct(U,arguments,F)}else I=U.apply(this,arguments);return _(this,I)}}function _(L,M){return M&&(p(M)==="object"||typeof M=="function")?M:R(L)}function R(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function j(){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 P(L){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)},P(L)}function z(L,M,V){return M in L?Object.defineProperty(L,M,{value:V,enumerable:!0,configurable:!0,writable:!0}):L[M]=V,L}var W=(function(L){w(V,L);var M=O(V);function V(U){var I;v(this,V),I=M.call(this,U),z(R(I),"thumbsRef",void 0),z(R(I),"carouselWrapperRef",void 0),z(R(I),"listRef",void 0),z(R(I),"itemsRef",void 0),z(R(I),"timer",void 0),z(R(I),"animationHandler",void 0),z(R(I),"setThumbsRef",function(Z){I.thumbsRef=Z}),z(R(I),"setCarouselWrapperRef",function(Z){I.carouselWrapperRef=Z}),z(R(I),"setListRef",function(Z){I.listRef=Z}),z(R(I),"setItemsRef",function(Z,X){I.itemsRef||(I.itemsRef=[]),I.itemsRef[X]=Z}),z(R(I),"autoPlay",function(){e.Children.count(I.props.children)<=1||(I.clearAutoPlay(),I.props.autoPlay&&(I.timer=setTimeout(function(){I.increment()},I.props.interval)))}),z(R(I),"clearAutoPlay",function(){I.timer&&clearTimeout(I.timer)}),z(R(I),"resetAutoPlay",function(){I.clearAutoPlay(),I.autoPlay()}),z(R(I),"stopOnHover",function(){I.setState({isMouseEntered:!0},I.clearAutoPlay)}),z(R(I),"startOnLeave",function(){I.setState({isMouseEntered:!1},I.autoPlay)}),z(R(I),"isFocusWithinTheCarousel",function(){return I.carouselWrapperRef?!!((0,i.default)().activeElement===I.carouselWrapperRef||I.carouselWrapperRef.contains((0,i.default)().activeElement)):!1}),z(R(I),"navigateWithKeyboard",function(Z){if(I.isFocusWithinTheCarousel()){var X=I.props.axis,pe=X==="horizontal",$={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},G=pe?$.ArrowRight:$.ArrowDown,te=pe?$.ArrowLeft:$.ArrowUp;G===Z.keyCode?I.increment():te===Z.keyCode&&I.decrement()}}),z(R(I),"updateSizes",function(){if(!(!I.state.initialized||!I.itemsRef||I.itemsRef.length===0)){var Z=I.props.axis==="horizontal",X=I.itemsRef[0];if(X){var pe=Z?X.clientWidth:X.clientHeight;I.setState({itemSize:pe}),I.thumbsRef&&I.thumbsRef.updateSizes()}}}),z(R(I),"setMountState",function(){I.setState({hasMount:!0}),I.updateSizes()}),z(R(I),"handleClickItem",function(Z,X){if(e.Children.count(I.props.children)!==0){if(I.state.cancelClick){I.setState({cancelClick:!1});return}I.props.onClickItem(Z,X),Z!==I.state.selectedItem&&I.setState({selectedItem:Z})}}),z(R(I),"handleOnChange",function(Z,X){e.Children.count(I.props.children)<=1||I.props.onChange(Z,X)}),z(R(I),"handleClickThumb",function(Z,X){I.props.onClickThumb(Z,X),I.moveTo(Z)}),z(R(I),"onSwipeStart",function(Z){I.setState({swiping:!0}),I.props.onSwipeStart(Z)}),z(R(I),"onSwipeEnd",function(Z){I.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),I.props.onSwipeEnd(Z),I.clearAutoPlay(),I.state.autoPlay&&I.autoPlay()}),z(R(I),"onSwipeMove",function(Z,X){I.props.onSwipeMove(X);var pe=I.props.swipeAnimationHandler(Z,I.props,I.state,I.setState.bind(R(I)));return I.setState(S({},pe)),!!Object.keys(pe).length}),z(R(I),"decrement",function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem-(typeof Z=="number"?Z:1))}),z(R(I),"increment",function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem+(typeof Z=="number"?Z:1))}),z(R(I),"moveTo",function(Z){if(typeof Z=="number"){var X=e.Children.count(I.props.children)-1;Z<0&&(Z=I.props.infiniteLoop?X:0),Z>X&&(Z=I.props.infiniteLoop?0:X),I.selectItem({selectedItem:Z}),I.state.autoPlay&&I.state.isMouseEntered===!1&&I.resetAutoPlay()}}),z(R(I),"onClickNext",function(){I.increment(1)}),z(R(I),"onClickPrev",function(){I.decrement(1)}),z(R(I),"onSwipeForward",function(){I.increment(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),z(R(I),"onSwipeBackwards",function(){I.decrement(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),z(R(I),"changeItem",function(Z){return function(X){(!(0,l.isKeyboardEvent)(X)||X.key==="Enter")&&I.moveTo(Z)}}),z(R(I),"selectItem",function(Z){I.setState(S({previousItem:I.state.selectedItem},Z),function(){I.setState(I.animationHandler(I.props,I.state))}),I.handleOnChange(Z.selectedItem,e.Children.toArray(I.props.children)[Z.selectedItem])}),z(R(I),"getInitialImage",function(){var Z=I.props.selectedItem,X=I.itemsRef&&I.itemsRef[Z],pe=X&&X.getElementsByTagName("img")||[];return pe[0]}),z(R(I),"getVariableItemHeight",function(Z){var X=I.itemsRef&&I.itemsRef[Z];if(I.state.hasMount&&X&&X.children.length){var pe=X.children[0].getElementsByTagName("img")||[];if(pe.length>0){var $=pe[0];if(!$.complete){var G=function Y(){I.forceUpdate(),$.removeEventListener("load",Y)};$.addEventListener("load",G)}}var te=pe[0]||X.children[0],Q=te.clientHeight;return Q>0?Q:null}return null});var F={initialized:!1,previousItem:U.selectedItem,selectedItem:U.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:U.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return I.animationHandler=typeof U.animationHandler=="function"&&U.animationHandler||U.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,I.state=S(S({},F),I.animationHandler(U,F)),I}return m(V,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(I,F){!I.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!I.autoFocus&&this.props.autoFocus&&this.forceFocus(),F.swiping&&!this.state.swiping&&this.setState(S({},this.props.stopSwipingHandler(this.props,this.state))),(I.selectedItem!==this.props.selectedItem||I.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),I.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 I=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 F=I.getInitialImage();F&&!F.complete?F.addEventListener("load",I.setMountState):I.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.addEventListener("mouseenter",this.stopOnHover),I.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.removeEventListener("mouseenter",this.stopOnHover),I.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,i.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var I=this.getInitialImage();I&&I.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,i.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var I;(I=this.carouselWrapperRef)===null||I===void 0||I.focus()}},{key:"renderItems",value:function(I){var F=this;return this.props.children?e.Children.map(this.props.children,function(Z,X){var pe=X===F.state.selectedItem,$=X===F.state.previousItem,G=pe&&F.state.selectedStyle||$&&F.state.prevStyle||F.state.slideStyle||{};F.props.centerMode&&F.props.axis==="horizontal"&&(G=S(S({},G),{},{minWidth:F.props.centerSlidePercentage+"%"})),F.state.swiping&&F.state.swipeMovementStarted&&(G=S(S({},G),{},{pointerEvents:"none"}));var te={ref:function(Y){return F.setItemsRef(Y,X)},key:"itemKey"+X+(I?"clone":""),className:r.default.ITEM(!0,X===F.state.selectedItem,X===F.state.previousItem),onClick:F.handleClickItem.bind(F,X,Z),style:G};return e.default.createElement("li",te,F.props.renderItem(Z,{isSelected:X===F.state.selectedItem,isPrevious:X===F.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var I=this,F=this.props,Z=F.showIndicators,X=F.labels,pe=F.renderIndicator,$=F.children;return Z?e.default.createElement("ul",{className:"control-dots"},e.Children.map($,function(G,te){return pe&&pe(I.changeItem(te),te===I.state.selectedItem,te,X.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(n.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 I=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var F=this.props.swipeable&&e.Children.count(this.props.children)>1,Z=this.props.axis==="horizontal",X=this.props.showArrows&&e.Children.count(this.props.children)>1,pe=X&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,$=X&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,G=this.renderItems(!0),te=G.shift(),Q=G.pop(),Y={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},ce={};if(Z){if(Y.onSwipeLeft=this.onSwipeForward,Y.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var ie=this.getVariableItemHeight(this.state.selectedItem);ce.height=ie||"auto"}}else Y.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,Y.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,Y.style=S(S({},Y.style),{},{height:this.state.itemSize}),ce.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,pe,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ce},F?e.default.createElement(t.default,h({tagName:"ul",innerRef:this.setListRef},Y,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&Q,this.renderItems(),this.props.infiniteLoop&&te):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(de){return I.setListRef(de)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&Q,this.renderItems(),this.props.infiniteLoop&&te)),this.props.renderArrowNext(this.onClickNext,$,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),V})(e.default.Component);return Ls.default=W,z(W,"displayName","Carousel"),z(W,"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(M,V,U){return e.default.createElement("button",{type:"button","aria-label":U,className:r.default.ARROW_PREV(!V),onClick:M})},renderArrowNext:function(M,V,U){return e.default.createElement("button",{type:"button","aria-label":U,className:r.default.ARROW_NEXT(!V),onClick:M})},renderIndicator:function(M,V,U,I){return e.default.createElement("li",{className:r.default.DOT(V),onClick:M,onKeyDown:M,value:U,key:U,role:"button",tabIndex:0,"aria-label":"".concat(I," ").concat(U+1)})},renderItem:function(M){return M},renderThumbs:function(M){var V=e.Children.map(M,function(U){var I=U;if(U.type!=="img"&&(I=e.Children.toArray(U.props.children).find(function(F){return F.type==="img"})),!!I)return I});return V.filter(function(U){return U}).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"),[]):V},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}),Ls}var Vb={},qb;function pz(){return qb||(qb=1),Vb}var Gb;function hz(){return Gb||(Gb=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 n.default}});var t=i(fz()),r=pz(),n=i(r1());function i(s){return s&&s.__esModule?s:{default:s}}})(df)),df}var gz=hz();const vz=({tip:e})=>A.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:i1(e,!0)}),mz=({pages:e})=>A.jsx("div",{className:"min-h-[10rem] w-96",children:A.jsx(gz.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>A.jsx(vz,{tip:t},t.key))})}),bz=({body:e,isInsideCarousel:t})=>A.jsx("article",{className:ct(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-muted",{"w-60":!t}]),children:A.jsx(Pc,{children:e,options:{overrides:{a:{component:({children:r,...n})=>A.jsxs("a",{...n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary",children:[r,A.jsx(Jy,{className:"ml-1 mt-px h-4 w-4"})]})},strong:{component:({children:r,...n})=>A.jsx("span",{...n,className:"font-semibold text-body",children:r})}}}})}),yz=({video:e,body:t,title:r,isInsideCarousel:n})=>A.jsxs("div",{className:ct([{"flex flex-row":!n,"flex max-h-[10rem] flex-col overflow-y-auto":n}]),children:[A.jsx("div",{className:ct([{"mr-1":!n,"mb-1":n}]),children:A.jsx("iframe",{height:n?"auto":90,width:n?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),A.jsx("article",{className:ct(["prose prose-sm p-1 text-left text-xs text-muted",{"w-60 overflow-auto":!n,"-mt-6":n}]),children:A.jsx(Pc,{children:t||"",options:{overrides:{a:{component:({children:i,...s})=>A.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[i,A.jsx(Jy,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),i1=(e,t)=>{switch(e.type){case wc.TEXT:return A.jsx(bz,{body:e.body,isInsideCarousel:t});case wc.VIDEO:return A.jsx(yz,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case wc.CAROUSEL:return A.jsx(mz,{pages:e.pages})}},o1=N.createContext(void 0);function Zb(e,t){const r=[];return e.forEach(n=>{n.key===t&&r.push(n)}),r}const wz=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:n,show:i},s]=N.useState({tips:{},show:!0});N.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(u=>u.json()).then(u=>{const f=u.reduce((g,p)=>Zb(u,p.key).length>1?{...g,[p.key]:{type:"carousel",pages:Zb(u,p.key)}}:{...g,[p.key]:p},{});s(g=>({...g,tips:f}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!i}))};return A.jsx(o1.Provider,{value:{tips:n,toggleTips:l,show:i,enabled:t},children:e})},s1=e=>{const t=N.useContext(o1);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}},xz=Ic(Q3)`
|
|
82
134
|
&[data-state='open'] > * {
|
|
83
135
|
display: block !important;
|
|
84
136
|
}
|
|
85
|
-
`,
|
|
86
|
-
`),"","
|
|
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
|
-
|
|
90
|
-
|
|
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$={"&":"&","<":"<",">":">",'"':""","'":"'"},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],`
|
|
95
|
-
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=go(r[0],`
|
|
137
|
+
`,a1=({tipKey:e,side:t="right",alwaysOn:r,asButton:n=!1})=>{const{tip:i,enabled:s}=s1(e),[l,c]=N.useState(!1),u=N.useRef(null);return N.useEffect(()=>{if(u.current){const f=new IntersectionObserver(g=>{g[0].isIntersecting||c(!1)});return f.observe(u.current),()=>{u.current&&f.unobserve(u.current)}}},[]),i&&s?A.jsxs(J3,{open:l,onOpenChange:c,children:[A.jsx(xz,{ref:u,className:ct("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":n}),onClick:f=>f.stopPropagation(),children:A.jsx("span",{className:ct("group-hover:block",{hidden:!r}),children:A.jsx(I2,{className:"h-4 w-4 text-yellow-300"})})}),A.jsx(ez,{side:t,sideOffset:5,onClick:f=>f.stopPropagation(),children:A.jsx(qi,{depth:3,borderType:"light",className:"relative rounded border p-2 text-xs shadow-2xl",children:i1(i)})})]}):null};function Bp(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Zi=Bp();function l1(e){Zi=e}var sa={exec:()=>null};function Ve(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(tr.caret,"$1"),r=r.replace(i,l),n},getRegex:()=>new RegExp(r,t)};return n}var tr={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")},Sz=/^(?:[ \t]*(?:\n|$))+/,Ez=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_z=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ta=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Oz=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Wp=/(?:[*+-]|\d{1,9}[.)])/,c1=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,u1=Ve(c1).replace(/bull/g,Wp).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(),kz=Ve(c1).replace(/bull/g,Wp).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(),Up=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Az=/^[^\n]+/,Vp=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Tz=Ve(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Vp).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Rz=Ve(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Wp).getRegex(),tu="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",qp=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Cz=Ve("^ {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",qp).replace("tag",tu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),d1=Ve(Up).replace("hr",Ta).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",tu).getRegex(),Pz=Ve(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",d1).getRegex(),Gp={blockquote:Pz,code:Ez,def:Tz,fences:_z,heading:Oz,hr:Ta,html:Cz,lheading:u1,list:Rz,newline:Sz,paragraph:d1,table:sa,text:Az},Kb=Ve("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ta).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",tu).getRegex(),Iz={...Gp,lheading:kz,table:Kb,paragraph:Ve(Up).replace("hr",Ta).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Kb).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",tu).getRegex()},Nz={...Gp,html:Ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qp).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:sa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ve(Up).replace("hr",Ta).replace("heading",` *#{1,6} *[^
|
|
138
|
+
]`).replace("lheading",u1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Mz=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Dz=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,f1=/^( {2,}|\\)\n(?!\s*$)/,zz=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ru=/[\p{P}\p{S}]/u,Zp=/[\s\p{P}\p{S}]/u,p1=/[^\s\p{P}\p{S}]/u,Lz=Ve(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Zp).getRegex(),h1=/(?!~)[\p{P}\p{S}]/u,$z=/(?!~)[\s\p{P}\p{S}]/u,jz=/(?:[^\s\p{P}\p{S}]|~)/u,Fz=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,g1=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Hz=Ve(g1,"u").replace(/punct/g,ru).getRegex(),Bz=Ve(g1,"u").replace(/punct/g,h1).getRegex(),v1="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Wz=Ve(v1,"gu").replace(/notPunctSpace/g,p1).replace(/punctSpace/g,Zp).replace(/punct/g,ru).getRegex(),Uz=Ve(v1,"gu").replace(/notPunctSpace/g,jz).replace(/punctSpace/g,$z).replace(/punct/g,h1).getRegex(),Vz=Ve("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,p1).replace(/punctSpace/g,Zp).replace(/punct/g,ru).getRegex(),qz=Ve(/\\(punct)/,"gu").replace(/punct/g,ru).getRegex(),Gz=Ve(/^<(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(),Zz=Ve(qp).replace("(?:-->|$)","-->").getRegex(),Kz=Ve("^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",Zz).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Mc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Yz=Ve(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Mc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),m1=Ve(/^!?\[(label)\]\[(ref)\]/).replace("label",Mc).replace("ref",Vp).getRegex(),b1=Ve(/^!?\[(ref)\](?:\[\])?/).replace("ref",Vp).getRegex(),Xz=Ve("reflink|nolink(?!\\()","g").replace("reflink",m1).replace("nolink",b1).getRegex(),Yb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Kp={_backpedal:sa,anyPunctuation:qz,autolink:Gz,blockSkip:Fz,br:f1,code:Dz,del:sa,emStrongLDelim:Hz,emStrongRDelimAst:Wz,emStrongRDelimUnd:Vz,escape:Mz,link:Yz,nolink:b1,punctuation:Lz,reflink:m1,reflinkSearch:Xz,tag:Kz,text:zz,url:sa},Jz={...Kp,link:Ve(/^!?\[(label)\]\((.*?)\)/).replace("label",Mc).getRegex(),reflink:Ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mc).getRegex()},Yf={...Kp,emStrongRDelimAst:Uz,emStrongLDelim:Bz,url:Ve(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Yb).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:Ve(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Yb).getRegex()},Qz={...Yf,br:Ve(f1).replace("{2,}","*").getRegex(),text:Ve(Yf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ql={normal:Gp,gfm:Iz,pedantic:Nz},Us={normal:Kp,gfm:Yf,breaks:Qz,pedantic:Jz},e4={"&":"&","<":"<",">":">",'"':""","'":"'"},Xb=e=>e4[e];function fn(e,t){if(t){if(tr.escapeTest.test(e))return e.replace(tr.escapeReplace,Xb)}else if(tr.escapeTestNoEncode.test(e))return e.replace(tr.escapeReplaceNoEncode,Xb);return e}function Jb(e){try{e=encodeURI(e).replace(tr.percentDecode,"%")}catch{return null}return e}function Qb(e,t){var s;let r=e.replace(tr.findPipe,(l,c,u)=>{let f=!1,g=c;for(;--g>=0&&u[g]==="\\";)f=!f;return f?"|":" |"}),n=r.split(tr.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(tr.slashPipe,"|");return n}function Vs(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function t4(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function ey(e,t,r,n,i){let s=t.href,l=t.title||null,c=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:l,text:c,tokens:n.inlineTokens(c)};return n.state.inLink=!1,u}function r4(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
|
|
139
|
+
`).map(s=>{let l=s.match(r.other.beginningSpace);if(l===null)return s;let[c]=l;return c.length>=i.length?s.slice(i.length):s}).join(`
|
|
140
|
+
`)}var Dc=class{constructor(t){Ae(this,"options");Ae(this,"rules");Ae(this,"lexer");this.options=t||Zi}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 n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Vs(n,`
|
|
141
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=r4(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=Vs(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Vs(r[0],`
|
|
142
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Vs(r[0],`
|
|
96
143
|
`).split(`
|
|
97
|
-
`),
|
|
98
|
-
`),p=
|
|
99
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");
|
|
100
|
-
${
|
|
101
|
-
${p}`:p;let
|
|
102
|
-
`+
|
|
103
|
-
`),
|
|
104
|
-
`+
|
|
105
|
-
`),
|
|
106
|
-
`);continue}}return{type:"blockquote",raw:
|
|
107
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,
|
|
108
|
-
`,1)[0],
|
|
109
|
-
`,t=t.substring(
|
|
110
|
-
`,1)[0],
|
|
111
|
-
`+
|
|
112
|
-
`+
|
|
113
|
-
`,t=t.substring(
|
|
114
|
-
`):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(
|
|
115
|
-
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:
|
|
116
|
-
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let
|
|
117
|
-
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let
|
|
144
|
+
`),i="",s="",l=[];for(;n.length>0;){let c=!1,u=[],f;for(f=0;f<n.length;f++)if(this.rules.other.blockquoteStart.test(n[f]))u.push(n[f]),c=!0;else if(!c)u.push(n[f]);else break;n=n.slice(f);let g=u.join(`
|
|
145
|
+
`),p=g.replace(this.rules.other.blockquoteSetextReplace,`
|
|
146
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
147
|
+
${g}`:g,s=s?`${s}
|
|
148
|
+
${p}`:p;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,l,!0),this.lexer.state.top=h,n.length===0)break;let b=l.at(-1);if((b==null?void 0:b.type)==="code")break;if((b==null?void 0:b.type)==="blockquote"){let S=b,v=S.raw+`
|
|
149
|
+
`+n.join(`
|
|
150
|
+
`),y=this.blockquote(v);l[l.length-1]=y,i=i.substring(0,i.length-S.raw.length)+y.raw,s=s.substring(0,s.length-S.text.length)+y.text;break}else if((b==null?void 0:b.type)==="list"){let S=b,v=S.raw+`
|
|
151
|
+
`+n.join(`
|
|
152
|
+
`),y=this.list(v);l[l.length-1]=y,i=i.substring(0,i.length-b.raw.length)+y.raw,s=s.substring(0,s.length-S.raw.length)+y.raw,n=v.substring(l.at(-1).raw.length).split(`
|
|
153
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,s={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let l=this.rules.other.listItemRegex(n),c=!1;for(;t;){let f=!1,g="",p="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;g=r[0],t=t.substring(g.length);let h=r[2].split(`
|
|
154
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),b=t.split(`
|
|
155
|
+
`,1)[0],S=!h.trim(),v=0;if(this.options.pedantic?(v=2,p=h.trimStart()):S?v=r[1].length+1:(v=r[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,p=h.slice(v),v+=r[1].length),S&&this.rules.other.blankLine.test(b)&&(g+=b+`
|
|
156
|
+
`,t=t.substring(b.length+1),f=!0),!f){let w=this.rules.other.nextBulletRegex(v),x=this.rules.other.hrRegex(v),O=this.rules.other.fencesBeginRegex(v),_=this.rules.other.headingBeginRegex(v),R=this.rules.other.htmlBeginRegex(v);for(;t;){let j=t.split(`
|
|
157
|
+
`,1)[0],P;if(b=j,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),P=b):P=b.replace(this.rules.other.tabCharGlobal," "),O.test(b)||_.test(b)||R.test(b)||w.test(b)||x.test(b))break;if(P.search(this.rules.other.nonSpaceChar)>=v||!b.trim())p+=`
|
|
158
|
+
`+P.slice(v);else{if(S||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(h)||_.test(h)||x.test(h))break;p+=`
|
|
159
|
+
`+b}!S&&!b.trim()&&(S=!0),g+=j+`
|
|
160
|
+
`,t=t.substring(j.length+1),h=P.slice(v)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0));let y=null,m;this.options.gfm&&(y=this.rules.other.listIsTask.exec(p),y&&(m=y[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:g,task:!!y,checked:m,loose:!1,text:p,tokens:[]}),s.raw+=g}let u=s.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let f=0;f<s.items.length;f++)if(this.lexer.state.top=!1,s.items[f].tokens=this.lexer.blockTokens(s.items[f].text,[]),!s.loose){let g=s.items[f].tokens.filter(h=>h.type==="space"),p=g.length>0&&g.some(h=>this.rules.other.anyLine.test(h.raw));s.loose=p}if(s.loose)for(let f=0;f<s.items.length;f++)s.items[f].loose=!0;return s}}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 n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:s}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=Qb(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
161
|
+
`):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)this.rules.other.tableAlignRight.test(u)?l.align.push("right"):this.rules.other.tableAlignCenter.test(u)?l.align.push("center"):this.rules.other.tableAlignLeft.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of s)l.rows.push(Qb(u,l.header.length).map((f,g)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:l.align[g]})));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 n=r[1].charAt(r[1].length-1)===`
|
|
162
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}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 n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=Vs(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=t4(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 i=r[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),ey(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[i.toLowerCase()];if(!s){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return ey(n,s,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,c,u=s,f=0,g=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,r=r.slice(-1*t.length+s);(i=g.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(c=[...l].length,i[3]||i[4]){u+=c;continue}else if((i[5]||i[6])&&s%3&&!((s+c)%3)){f+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+f);let p=[...i[0]][0].length,h=t.slice(0,s+i.index+p+c);if(Math.min(s,c)%2){let S=h.slice(1,-1);return{type:"em",raw:h,text:S,tokens:this.lexer.inlineTokens(S)}}let b=h.slice(2,-2);return{type:"strong",raw:h,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}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 n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let i,s;if(r[2]==="@")i=r[0],s="mailto:"+i;else{let l;do l=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(l!==r[0]);i=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Kr=class Xf{constructor(t){Ae(this,"tokens");Ae(this,"options");Ae(this,"state");Ae(this,"tokenizer");Ae(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Zi,this.options.tokenizer=this.options.tokenizer||new Dc,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:tr,block:Ql.normal,inline:Us.normal};this.options.pedantic?(r.block=Ql.pedantic,r.inline=Us.pedantic):this.options.gfm&&(r.block=Ql.gfm,this.options.breaks?r.inline=Us.breaks:r.inline=Us.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ql,inline:Us}}static lex(t,r){return new Xf(r).lex(t)}static lexInline(t,r){return new Xf(r).inlineTokens(t)}lex(t){t=t.replace(tr.carriageReturn,`
|
|
163
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var i,s,l;for(this.options.pedantic&&(t=t.replace(tr.tabCharGlobal," ").replace(tr.spaceLine,""));t;){let c;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(f=>(c=f.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 f=r.at(-1);c.raw.length===1&&f!==void 0?f.raw+=`
|
|
164
|
+
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let f=r.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
118
165
|
`)?"":`
|
|
119
|
-
`)+c.raw,
|
|
120
|
-
`+c.text,this.inlineQueue.at(-1).src=
|
|
166
|
+
`)+c.raw,f.text+=`
|
|
167
|
+
`+c.text,this.inlineQueue.at(-1).src=f.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 f=r.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
121
168
|
`)?"":`
|
|
122
|
-
`)+c.raw,
|
|
123
|
-
`+c.raw,this.inlineQueue.at(-1).src=
|
|
169
|
+
`)+c.raw,f.text+=`
|
|
170
|
+
`+c.raw,this.inlineQueue.at(-1).src=f.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 u=t;if((l=this.options.extensions)!=null&&l.startBlock){let f=1/0,g=t.slice(1),p;this.options.extensions.startBlock.forEach(h=>{p=h.call({lexer:this},g),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(u=t.substring(0,f+1))}if(this.state.top&&(c=this.tokenizer.paragraph(u))){let f=r.at(-1);n&&(f==null?void 0:f.type)==="paragraph"?(f.raw+=(f.raw.endsWith(`
|
|
124
171
|
`)?"":`
|
|
125
|
-
`)+c.raw,
|
|
126
|
-
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
172
|
+
`)+c.raw,f.text+=`
|
|
173
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(c),n=u.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let f=r.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
127
174
|
`)?"":`
|
|
128
|
-
`)+c.raw,
|
|
129
|
-
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
130
|
-
`;return
|
|
131
|
-
`:"<pre><code>"+(
|
|
175
|
+
`)+c.raw,f.text+=`
|
|
176
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(c);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,u,f,g,p;let n=t,i=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)h.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((u=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:u.call({lexer:this},n))??n;let s=!1,l="";for(;t;){s||(l=""),s=!1;let h;if((g=(f=this.options.extensions)==null?void 0:f.inline)!=null&&g.some(S=>(h=S.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let S=r.at(-1);h.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=h.raw,S.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,n,l)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let b=t;if((p=this.options.extensions)!=null&&p.startInline){let S=1/0,v=t.slice(1),y;this.options.extensions.startInline.forEach(m=>{y=m.call({lexer:this},v),typeof y=="number"&&y>=0&&(S=Math.min(S,y))}),S<1/0&&S>=0&&(b=t.substring(0,S+1))}if(h=this.tokenizer.inlineText(b)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(l=h.raw.slice(-1)),s=!0;let S=r.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=h.raw,S.text+=h.text):r.push(h);continue}if(t){let S="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return r}},zc=class{constructor(t){Ae(this,"options");Ae(this,"parser");this.options=t||Zi}space(t){return""}code({text:t,lang:r,escaped:n}){var l;let i=(l=(r||"").match(tr.notSpaceStart))==null?void 0:l[0],s=t.replace(tr.endingNewline,"")+`
|
|
177
|
+
`;return i?'<pre><code class="language-'+fn(i)+'">'+(n?s:fn(s,!0))+`</code></pre>
|
|
178
|
+
`:"<pre><code>"+(n?s:fn(s,!0))+`</code></pre>
|
|
132
179
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
133
180
|
${this.parser.parse(t)}</blockquote>
|
|
134
181
|
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
135
182
|
`}hr(t){return`<hr>
|
|
136
|
-
`}list(t){let r=t.ordered,
|
|
137
|
-
`+
|
|
138
|
-
`}listitem(t){var
|
|
183
|
+
`}list(t){let r=t.ordered,n=t.start,i="";for(let c=0;c<t.items.length;c++){let u=t.items[c];i+=this.listitem(u)}let s=r?"ol":"ul",l=r&&n!==1?' start="'+n+'"':"";return"<"+s+l+`>
|
|
184
|
+
`+i+"</"+s+`>
|
|
185
|
+
`}listitem(t){var n;let r="";if(t.task){let i=this.checkbox({checked:!!t.checked});t.loose?((n=t.tokens[0])==null?void 0:n.type)==="paragraph"?(t.tokens[0].text=i+" "+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=i+" "+fn(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
139
186
|
`}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="",
|
|
187
|
+
`}table(t){let r="",n="";for(let s=0;s<t.header.length;s++)n+=this.tablecell(t.header[s]);r+=this.tablerow({text:n});let i="";for(let s=0;s<t.rows.length;s++){let l=t.rows[s];n="";for(let c=0;c<l.length;c++)n+=this.tablecell(l[c]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
141
188
|
<thead>
|
|
142
189
|
`+r+`</thead>
|
|
143
|
-
`+
|
|
190
|
+
`+i+`</table>
|
|
144
191
|
`}tablerow({text:t}){return`<tr>
|
|
145
192
|
${t}</tr>
|
|
146
|
-
`}tablecell(t){let r=this.parser.parseInline(t.tokens),
|
|
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>${
|
|
148
|
-
`+this.renderer.text(
|
|
149
|
-
Please report this to https://github.com/markedjs/marked.`,t){let
|
|
193
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
|
|
194
|
+
`}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>${fn(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let i=this.parser.parseInline(n),s=Jb(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return r&&(l+=' title="'+fn(r)+'"'),l+=">"+i+"</a>",l}image({href:t,title:r,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let s=Jb(t);if(s===null)return fn(n);t=s;let l=`<img src="${t}" alt="${n}"`;return r&&(l+=` title="${fn(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fn(t.text)}},Yp=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""}},Yr=class Jf{constructor(t){Ae(this,"options");Ae(this,"renderer");Ae(this,"textRenderer");this.options=t||Zi,this.options.renderer=this.options.renderer||new zc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Yp}static parse(t,r){return new Jf(r).parse(t)}static parseInline(t,r){return new Jf(r).parseInline(t)}parse(t,r=!0){var i,s;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[c.type]){let f=c,g=this.options.extensions.renderers[f.type].call({parser:this},f);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(f.type)){n+=g||"";continue}}let u=c;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"def":{n+=this.renderer.def(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let f=u,g=this.renderer.text(f);for(;l+1<t.length&&t[l+1].type==="text";)f=t[++l],g+=`
|
|
195
|
+
`+this.renderer.text(f);r?n+=this.renderer.paragraph({type:"paragraph",raw:g,text:g,tokens:[{type:"text",raw:g,text:g,escaped:!0}]}):n+=g;continue}default:{let f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}parseInline(t,r=this.renderer){var i,s;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[c.type]){let f=this.options.extensions.renderers[c.type].call({parser:this},c);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){n+=f||"";continue}}let u=c;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{let f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}},oc,Ks=(oc=class{constructor(t){Ae(this,"options");Ae(this,"block");this.options=t||Zi}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Kr.lex:Kr.lexInline}provideParser(){return this.block?Yr.parse:Yr.parseInline}},Ae(oc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ae(oc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),oc),y1=class{constructor(...t){Ae(this,"defaults",Bp());Ae(this,"options",this.setOptions);Ae(this,"parse",this.parseMarkdown(!0));Ae(this,"parseInline",this.parseMarkdown(!1));Ae(this,"Parser",Yr);Ae(this,"Renderer",zc);Ae(this,"TextRenderer",Yp);Ae(this,"Lexer",Kr);Ae(this,"Tokenizer",Dc);Ae(this,"Hooks",Ks);this.use(...t)}walkTokens(t,r){var i,s;let n=[];for(let l of t)switch(n=n.concat(r.call(this,l)),l.type){case"table":{let c=l;for(let u of c.header)n=n.concat(this.walkTokens(u.tokens,r));for(let u of c.rows)for(let f of u)n=n.concat(this.walkTokens(f.tokens,r));break}case"list":{let c=l;n=n.concat(this.walkTokens(c.items,r));break}default:{let c=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[c.type]?this.defaults.extensions.childTokens[c.type].forEach(u=>{let f=c[u].flat(1/0);n=n.concat(this.walkTokens(f,r))}):c.tokens&&(n=n.concat(this.walkTokens(c.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let l=r.renderers[s.name];l?r.renderers[s.name]=function(...c){let u=s.renderer.apply(this,c);return u===!1&&(u=l.apply(this,c)),u}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[s.level];l?l.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),i.extensions=r),n.renderer){let s=this.defaults.renderer||new zc(this.defaults);for(let l in n.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,u=n.renderer[c],f=s[c];s[c]=(...g)=>{let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p||""}}i.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Dc(this.defaults);for(let l in n.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,u=n.tokenizer[c],f=s[c];s[c]=(...g)=>{let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p}}i.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Ks;for(let l in n.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,u=n.hooks[c],f=s[c];Ks.passThroughHooks.has(l)?s[c]=g=>{if(this.defaults.async&&Ks.passThroughHooksRespectAsync.has(l))return(async()=>{let h=await u.call(s,g);return f.call(s,h)})();let p=u.call(s,g);return f.call(s,p)}:s[c]=(...g)=>{if(this.defaults.async)return(async()=>{let h=await u.apply(s,g);return h===!1&&(h=await f.apply(s,g)),h})();let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p}}i.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,l=n.walkTokens;i.walkTokens=function(c){let u=[];return u.push(l.call(this,c)),s&&(u=u.concat(s.call(this,c))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Kr.lex(t,r??this.defaults)}parser(t,r){return Yr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let i={...n},s={...this.defaults,...i},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.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(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(r):r,u=await(s.hooks?await s.hooks.provideLexer():t?Kr.lex:Kr.lexInline)(c,s),f=s.hooks?await s.hooks.processAllTokens(u):u;s.walkTokens&&await Promise.all(this.walkTokens(f,s.walkTokens));let g=await(s.hooks?await s.hooks.provideParser():t?Yr.parse:Yr.parseInline)(f,s);return s.hooks?await s.hooks.postprocess(g):g})().catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let c=(s.hooks?s.hooks.provideLexer():t?Kr.lex:Kr.lexInline)(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let u=(s.hooks?s.hooks.provideParser():t?Yr.parse:Yr.parseInline)(c,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(c){return l(c)}}}onError(t,r){return n=>{if(n.message+=`
|
|
196
|
+
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+fn(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Ui=new y1;function ot(e,t){return Ui.parse(e,t)}ot.options=ot.setOptions=function(e){return Ui.setOptions(e),ot.defaults=Ui.defaults,l1(ot.defaults),ot};ot.getDefaults=Bp;ot.defaults=Zi;ot.use=function(...e){return Ui.use(...e),ot.defaults=Ui.defaults,l1(ot.defaults),ot};ot.walkTokens=function(e,t){return Ui.walkTokens(e,t)};ot.parseInline=Ui.parseInline;ot.Parser=Yr;ot.parser=Yr.parse;ot.Renderer=zc;ot.TextRenderer=Yp;ot.Lexer=Kr;ot.lexer=Kr.lex;ot.Tokenizer=Dc;ot.Hooks=Ks;ot.parse=ot;ot.options;ot.setOptions;ot.use;ot.walkTokens;ot.parseInline;Yr.parse;Kr.lex;const n4={"&":"&","<":"<",">":">",""":'"',"'":"'"},w1=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,i4=RegExp(w1.source),ty=(e="")=>i4.test(e)?e.replace(w1,t=>n4[t]||"'"):e,ry=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var o4=class{constructor(e){Ae(this,"renderer");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 n=r.depth;return this.renderer.heading(this.parseInline(r.tokens),n)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const n=r;return n.tokens?this.parseInline(n.tokens):r.text}case"blockquote":{const n=r,i=this.parse(n.tokens);return this.renderer.blockquote(i)}case"list":{const n=r;this.renderer.elIdList.push(0);const i=n.items.map(s=>{const l=[];return s.task&&l.push(this.renderer.checkbox(s.checked??!1)),l.push(this.parse(s.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(i,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 n=r;this.renderer.elIdList.push(0);const i=n.header.map((f,g)=>this.renderer.tableCell(this.parseInline(f.tokens),{header:!0,align:r.align[g]}));this.renderer.elIdList.pop();const s=this.renderer.tableRow(i),l=this.renderer.tableHeader(s);this.renderer.elIdList.push(0);const c=n.rows.map(f=>{this.renderer.elIdList.push(0);const g=f.map((p,h)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!1,align:r.align[h]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(g)});this.renderer.elIdList.pop();const u=this.renderer.tableBody(c);return this.renderer.table([l,u])}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(ty(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(ty(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}},s4=o4,ui,lt,xt,Qf,Ly,a4=(Ly=class{constructor(e={}){Bt(this,lt);Ae(this,"elIdList",[]);Bt(this,ui);const{renderer:t}=e;tt(this,ui,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{const i=r,s=n;!this[i]||i==="elementId"||i==="elIdList"||typeof s!="function"||Object.defineProperty(this,i,{value(...l){return Ee(this,lt,Qf).call(this),s.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return Ee(this,lt,xt).call(this,`h${t}`,e)}paragraph(e){return Ee(this,lt,xt).call(this,"p",e)}link(e,t){const r=ry(e,ae(this,ui).baseURL),n=ae(this,ui).openLinksInNewTab?"_blank":null;return Ee(this,lt,xt).call(this,"a",t,{href:r,target:n})}image(e,t,r=null){const n=ry(e,ae(this,ui).baseURL);return Ee(this,lt,xt).call(this,"img",null,{src:n,alt:t,title:r})}codespan(e,t=null){const r=t?`${ae(this,ui).langPrefix}${t}`:null;return Ee(this,lt,xt).call(this,"code",e,{className:r})}code(e,t){return Ee(this,lt,xt).call(this,"pre",this.codespan(e,t))}blockquote(e){return Ee(this,lt,xt).call(this,"blockquote",e)}list(e,t,r){return Ee(this,lt,xt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return Ee(this,lt,xt).call(this,"li",e)}checkbox(e){return Ee(this,lt,xt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return Ee(this,lt,xt).call(this,"table",e)}tableHeader(e){return Ee(this,lt,xt).call(this,"thead",e)}tableBody(e){return Ee(this,lt,xt).call(this,"tbody",e)}tableRow(e){return Ee(this,lt,xt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return Ee(this,lt,xt).call(this,r,e,{align:t.align})}strong(e){return Ee(this,lt,xt).call(this,"strong",e)}em(e){return Ee(this,lt,xt).call(this,"em",e)}del(e){return Ee(this,lt,xt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return Ee(this,lt,xt).call(this,"hr")}br(){return Ee(this,lt,xt).call(this,"br")}},ui=new WeakMap,lt=new WeakSet,xt=function(e,t=null,r={}){const n={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return Ee(this,lt,Qf).call(this),N.createElement(e,{...r,...n},t)},Qf=function(){this.elIdList[this.elIdList.length-1]+=1},Ly),l4=a4;const c4=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}`)},u4={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},d4=new y1,f4=e=>{c4(e);const t={...u4,...e},r=t.instance??d4,n={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},i=t.value??t.children??"",s=t.isInline?r.Lexer.lexInline(i,n):r.lexer(i,n),l={renderer:new l4({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new s4(l),u=t.isInline?c.parseInline(s):c.parse(s);return N.createElement(N.Fragment,null,u)};var p4=f4,h4=p4;const g4=({children:e,label:t,placement:r="top",className:n,isDisabled:i,container:s})=>{const[l,c]=N.useState(null),u=N.useRef(null),[f,g]=N.useState(null),[p,h]=N.useState(!1),b=typeof t=="string",{styles:S,attributes:v}=_p(l,f,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),y=()=>{u.current&&(clearTimeout(u.current),u.current=null)};N.useEffect(()=>{if(!p||!l)return;let w=!1,x=!1;const O=new IntersectionObserver(([_])=>{if(!w){x=_.isIntersecting,w=!0;return}x&&!_.isIntersecting&&(y(),h(!1)),x=_.isIntersecting},{threshold:0});return O.observe(l),()=>O.disconnect()},[p,l]),N.useEffect(()=>()=>y(),[]);const m=N.Children.map(e,w=>N.isValidElement(w)?N.cloneElement(w,{ref:c,onMouseEnter:()=>{y(),h(!0)},onMouseLeave:()=>{y(),h(!1)}}):w);return i?A.jsx(A.Fragment,{children:m}):A.jsxs(A.Fragment,{children:[m,p&&t&&En.createPortal(A.jsx("div",{ref:g,style:{...S.popper,zIndex:1e5},...v.popper,className:ct(b?"select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md":void 0,n),onMouseEnter:()=>{y(),h(!0)},onMouseLeave:()=>{y(),h(!1)},children:b?A.jsx(h4,{openLinksInNewTab:!0,children:t}):t}),s||document.body)]})},v4=({referenceElement:e,label:t})=>{const[r,n]=N.useState(null),{styles:i,attributes:s}=_p(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return A.jsx("div",{className:"rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",ref:n,style:{...i.popper,zIndex:1e5},...s.popper,children:t})},m4=Mf.keyframes`
|
|
150
197
|
to {
|
|
151
198
|
fill: url(#d);
|
|
152
199
|
stroke-dashoffset: 0;
|
|
153
200
|
}
|
|
154
|
-
`,
|
|
201
|
+
`,x1=Ic.svg`
|
|
155
202
|
& .e {
|
|
156
203
|
fill: url(#d);
|
|
157
204
|
}
|
|
@@ -162,7 +209,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
|
|
|
162
209
|
fill: transparent;
|
|
163
210
|
stroke-dasharray: 700;
|
|
164
211
|
stroke-dashoffset: 700;
|
|
165
|
-
animation: ${
|
|
212
|
+
animation: ${m4} 1.5s ease-in-out infinite alternate-reverse;
|
|
166
213
|
}
|
|
167
214
|
|
|
168
215
|
& #circle {
|
|
@@ -172,35 +219,39 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
|
|
|
172
219
|
stroke-dasharray: 700;
|
|
173
220
|
stroke-dashoffset: 700;
|
|
174
221
|
}
|
|
175
|
-
`,
|
|
222
|
+
`,b4=({message:e,version:t})=>A.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-body",children:A.jsxs("div",{className:"flex flex-col text-center",children:[A.jsx("div",{className:"relative mr-4 self-center",children:A.jsx("div",{className:"flex items-center justify-center rounded",children:A.jsxs(x1,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[A.jsx("defs",{children:A.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[A.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:A.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),A.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:A.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),A.jsx("g",{id:"a"}),A.jsx("g",{id:"b",children:A.jsx("g",{id:"c",children:A.jsxs("g",{children:[A.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"}),A.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"})]})})})]})})}),A.jsxs("div",{children:[A.jsx("span",{className:"text-xs text-inactive-text",children:t}),A.jsx("h2",{className:"text-lg text-muted",children:e})]})]})});var y4=Object.defineProperty,w4=(e,t,r)=>t in e?y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bf=(e,t,r)=>(w4(e,typeof t!="symbol"?t+"":t,r),r);let x4=class{constructor(){bf(this,"current",this.detect()),bf(this,"handoffState","pending"),bf(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"}},xc=new x4,ha=(e,t)=>{xc.isServer?N.useEffect(e,t):N.useLayoutEffect(e,t)};function Po(e){let t=N.useRef(e);return ha(()=>{t.current=e},[e]),t}let Hn=function(e){let t=Po(e);return N.useCallback((...r)=>t.current(...r),[t])};function S4(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ra(){let e=[],t={addEventListener(r,n,i,s){return r.addEventListener(n,i,s),t.add(()=>r.removeEventListener(n,i,s))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return S4(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let s=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:s})})},group(r){let n=Ra();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function S1(){let[e]=N.useState(Ra);return N.useEffect(()=>()=>e.dispose(),[e]),e}function E4(){let e=typeof document>"u";return"useSyncExternalStore"in B?(t=>t.useSyncExternalStore)(B)(()=>()=>{},()=>!1,()=>!e):!1}function E1(){let e=E4(),[t,r]=B.useState(xc.isHandoffComplete);return t&&xc.isHandoffComplete===!1&&r(!1),B.useEffect(()=>{t!==!0&&r(!0)},[t]),B.useEffect(()=>xc.handoff(),[]),e?!1:t}function yn(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,yn),n}let _4=Symbol();function _1(...e){let t=N.useRef(e);N.useEffect(()=>{t.current=e},[e]);let r=Hn(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[_4]))?void 0:r}function Lc(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var O1=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(O1||{}),pi=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pi||{});function k1({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:s=!0,name:l,mergeRefs:c}){c=c??O4;let u=A1(t,e);if(s)return ec(u,r,n,l,c);let f=i??0;if(f&2){let{static:g=!1,...p}=u;if(g)return ec(p,r,n,l,c)}if(f&1){let{unmount:g=!0,...p}=u;return yn(g?0:1,{0(){return null},1(){return ec({...p,hidden:!0,style:{display:"none"}},r,n,l,c)}})}return ec(u,r,n,l,c)}function ec(e,t={},r,n,i){let{as:s=r,children:l,refName:c="ref",...u}=yf(e,["unmount","static"]),f=e.ref!==void 0?{[c]:e.ref}:{},g=typeof l=="function"?l(t):l;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let p={};if(t){let h=!1,b=[];for(let[S,v]of Object.entries(t))typeof v=="boolean"&&(h=!0),v===!0&&b.push(S);h&&(p["data-headlessui-state"]=b.join(" "))}if(s===N.Fragment&&Object.keys(ny(u)).length>0){if(!N.isValidElement(g)||Array.isArray(g)&&g.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(v=>` - ${v}`).join(`
|
|
223
|
+
`),"","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(v=>` - ${v}`).join(`
|
|
224
|
+
`)].join(`
|
|
225
|
+
`));let h=g.props,b=typeof(h==null?void 0:h.className)=="function"?(...v)=>Lc(h==null?void 0:h.className(...v),u.className):Lc(h==null?void 0:h.className,u.className),S=b?{className:b}:{};return N.cloneElement(g,Object.assign({},A1(g.props,ny(yf(u,["ref"]))),p,f,{ref:i(g.ref,f.ref)},S))}return N.createElement(s,Object.assign({},yf(u,["ref"]),s!==N.Fragment&&f,s!==N.Fragment&&p),g)}function O4(...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 A1(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...s){let l=r[n];for(let c of l){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;c(i,...s)}}});return t}function Xp(e){var t;return Object.assign(N.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ny(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function yf(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Jp=N.createContext(null);Jp.displayName="OpenClosedContext";var jn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(jn||{});function T1(){return N.useContext(Jp)}function k4({value:e,children:t}){return N.createElement(Jp.Provider,{value:e},t)}function Qp(){let e=N.useRef(!1);return ha(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function A4(e=0){let[t,r]=N.useState(e),n=Qp(),i=N.useCallback(u=>{n.current&&r(f=>f|u)},[t,n]),s=N.useCallback(u=>!!(t&u),[t]),l=N.useCallback(u=>{n.current&&r(f=>f&~u)},[r,n]),c=N.useCallback(u=>{n.current&&r(f=>f^u)},[r]);return{flags:t,addFlag:i,hasFlag:s,removeFlag:l,toggleFlag:c}}function T4(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function wf(e,...t){e&&t.length>0&&e.classList.add(...t)}function xf(e,...t){e&&t.length>0&&e.classList.remove(...t)}function R4(e,t){let r=Ra();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[s,l]=[n,i].map(u=>{let[f=0]=u.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,p)=>p-g);return f}),c=s+l;if(c!==0){r.group(f=>{f.setTimeout(()=>{t(),f.dispose()},c),f.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&f.dispose()})});let u=r.addEventListener(e,"transitionend",f=>{f.target===f.currentTarget&&(t(),u())})}else t();return r.add(()=>t()),r.dispose}function C4(e,t,r,n){let i=r?"enter":"leave",s=Ra(),l=n!==void 0?T4(n):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=yn(i,{enter:()=>t.enter,leave:()=>t.leave}),u=yn(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),f=yn(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return xf(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),wf(e,...t.base,...c,...f),s.nextFrame(()=>{xf(e,...t.base,...c,...f),wf(e,...t.base,...c,...u),R4(e,()=>(xf(e,...t.base,...c),wf(e,...t.base,...t.entered),l()))}),s.dispose}function P4({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:s}){let l=Qp(),c=S1(),u=Po(r);ha(()=>{e&&(u.current="enter")},[e]),ha(()=>{let f=Ra();c.add(f.dispose);let g=t.current;if(g&&u.current!=="idle"&&l.current)return f.dispose(),i.current(u.current),f.add(C4(g,n.current,u.current==="enter",()=>{f.dispose(),s.current(u.current)})),f.dispose},[r])}function ci(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let nu=N.createContext(null);nu.displayName="TransitionContext";var I4=(e=>(e.Visible="visible",e.Hidden="hidden",e))(I4||{});function N4(){let e=N.useContext(nu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function M4(){let e=N.useContext(iu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let iu=N.createContext(null);iu.displayName="NestingContext";function ou(e){return"children"in e?ou(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function R1(e,t){let r=Po(e),n=N.useRef([]),i=Qp(),s=S1(),l=Hn((b,S=pi.Hidden)=>{let v=n.current.findIndex(({el:y})=>y===b);v!==-1&&(yn(S,{[pi.Unmount](){n.current.splice(v,1)},[pi.Hidden](){n.current[v].state="hidden"}}),s.microTask(()=>{var y;!ou(n)&&i.current&&((y=r.current)==null||y.call(r))}))}),c=Hn(b=>{let S=n.current.find(({el:v})=>v===b);return S?S.state!=="visible"&&(S.state="visible"):n.current.push({el:b,state:"visible"}),()=>l(b,pi.Unmount)}),u=N.useRef([]),f=N.useRef(Promise.resolve()),g=N.useRef({enter:[],leave:[],idle:[]}),p=Hn((b,S,v)=>{u.current.splice(0),t&&(t.chains.current[S]=t.chains.current[S].filter(([y])=>y!==b)),t==null||t.chains.current[S].push([b,new Promise(y=>{u.current.push(y)})]),t==null||t.chains.current[S].push([b,new Promise(y=>{Promise.all(g.current[S].map(([m,w])=>w)).then(()=>y())})]),S==="enter"?f.current=f.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(S)):v(S)}),h=Hn((b,S,v)=>{Promise.all(g.current[S].splice(0).map(([y,m])=>m)).then(()=>{var y;(y=u.current.shift())==null||y()}).then(()=>v(S))});return N.useMemo(()=>({children:n,register:c,unregister:l,onStart:p,onStop:h,wait:f,chains:g}),[c,l,n,p,h,g,f])}function D4(){}let z4=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function iy(e){var t;let r={};for(let n of z4)r[n]=(t=e[n])!=null?t:D4;return r}function L4(e){let t=N.useRef(iy(e));return N.useEffect(()=>{t.current=iy(e)},[e]),t}let $4="div",C1=O1.RenderStrategy;function j4(e,t){var r,n;let{beforeEnter:i,afterEnter:s,beforeLeave:l,afterLeave:c,enter:u,enterFrom:f,enterTo:g,entered:p,leave:h,leaveFrom:b,leaveTo:S,...v}=e,y=N.useRef(null),m=_1(y,t),w=(r=v.unmount)==null||r?pi.Unmount:pi.Hidden,{show:x,appear:O,initial:_}=N4(),[R,j]=N.useState(x?"visible":"hidden"),P=M4(),{register:z,unregister:W}=P;N.useEffect(()=>z(y),[z,y]),N.useEffect(()=>{if(w===pi.Hidden&&y.current){if(x&&R!=="visible"){j("visible");return}return yn(R,{hidden:()=>W(y),visible:()=>z(y)})}},[R,y,z,W,x,w]);let L=Po({base:ci(v.className),enter:ci(u),enterFrom:ci(f),enterTo:ci(g),entered:ci(p),leave:ci(h),leaveFrom:ci(b),leaveTo:ci(S)}),M=L4({beforeEnter:i,afterEnter:s,beforeLeave:l,afterLeave:c}),V=E1();N.useEffect(()=>{if(V&&R==="visible"&&y.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,R,V]);let U=_&&!O,I=O&&x&&_,F=!V||U?"idle":x?"enter":"leave",Z=A4(0),X=Hn(Y=>yn(Y,{enter:()=>{Z.addFlag(jn.Opening),M.current.beforeEnter()},leave:()=>{Z.addFlag(jn.Closing),M.current.beforeLeave()},idle:()=>{}})),pe=Hn(Y=>yn(Y,{enter:()=>{Z.removeFlag(jn.Opening),M.current.afterEnter()},leave:()=>{Z.removeFlag(jn.Closing),M.current.afterLeave()},idle:()=>{}})),$=R1(()=>{j("hidden"),W(y)},P),G=N.useRef(!1);P4({immediate:I,container:y,classes:L,direction:F,onStart:Po(Y=>{G.current=!0,$.onStart(y,Y,X)}),onStop:Po(Y=>{G.current=!1,$.onStop(y,Y,pe),Y==="leave"&&!ou($)&&(j("hidden"),W(y))})});let te=v,Q={ref:m};return I?te={...te,className:Lc(v.className,...L.current.enter,...L.current.enterFrom)}:G.current&&(te.className=Lc(v.className,(n=y.current)==null?void 0:n.className),te.className===""&&delete te.className),N.createElement(iu.Provider,{value:$},N.createElement(k4,{value:yn(R,{visible:jn.Open,hidden:jn.Closed})|Z.flags},k1({ourProps:Q,theirProps:te,defaultTag:$4,features:C1,visible:R==="visible",name:"Transition.Child"})))}function F4(e,t){let{show:r,appear:n=!1,unmount:i=!0,...s}=e,l=N.useRef(null),c=_1(l,t);E1();let u=T1();if(r===void 0&&u!==null&&(r=(u&jn.Open)===jn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,g]=N.useState(r?"visible":"hidden"),p=R1(()=>{g("hidden")}),[h,b]=N.useState(!0),S=N.useRef([r]);ha(()=>{h!==!1&&S.current[S.current.length-1]!==r&&(S.current.push(r),b(!1))},[S,r]);let v=N.useMemo(()=>({show:r,appear:n,initial:h}),[r,n,h]);N.useEffect(()=>{if(r)g("visible");else if(!ou(p))g("hidden");else{let x=l.current;if(!x)return;let O=x.getBoundingClientRect();O.x===0&&O.y===0&&O.width===0&&O.height===0&&g("hidden")}},[r,p]);let y={unmount:i},m=Hn(()=>{var x;h&&b(!1),(x=e.beforeEnter)==null||x.call(e)}),w=Hn(()=>{var x;h&&b(!1),(x=e.beforeLeave)==null||x.call(e)});return N.createElement(iu.Provider,{value:p},N.createElement(nu.Provider,{value:v},k1({ourProps:{...y,as:N.Fragment,children:N.createElement(P1,{ref:c,...y,...s,beforeEnter:m,beforeLeave:w})},theirProps:{},defaultTag:N.Fragment,features:C1,visible:f==="visible",name:"Transition"})))}function H4(e,t){let r=N.useContext(nu)!==null,n=T1()!==null;return N.createElement(N.Fragment,null,!r&&n?N.createElement(ep,{ref:t,...e}):N.createElement(P1,{ref:t,...e}))}let ep=Xp(F4),P1=Xp(j4),B4=Xp(H4),$c=Object.assign(ep,{Child:B4,Root:ep});var Ys={exports:{}};/**
|
|
176
226
|
* @license
|
|
177
227
|
* Lodash <https://lodash.com/>
|
|
178
228
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
179
229
|
* Released under MIT license <https://lodash.com/license>
|
|
180
230
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
181
231
|
* 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={"&":"&","<":"<",">":">",'"':""","'":"'"},rw={"&":"&","<":"<",">":">",""":'"',"'":"'"},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,`{
|
|
183
|
-
/* [wrapped with `+
|
|
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
|
-
`;
|
|
186
|
-
__e(`+
|
|
187
|
-
'`),
|
|
188
|
-
`+
|
|
189
|
-
__p += '`),
|
|
190
|
-
((__t = (`+
|
|
191
|
-
'`),
|
|
192
|
-
`;var
|
|
193
|
-
`+
|
|
232
|
+
*/var W4=Ys.exports,oy;function U4(){return oy||(oy=1,(function(e,t){(function(){var r,n="4.18.1",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",f="__lodash_hash_undefined__",g=500,p="__lodash_placeholder__",h=1,b=2,S=4,v=1,y=2,m=1,w=2,x=4,O=8,_=16,R=32,j=64,P=128,z=256,W=512,L=30,M="...",V=800,U=16,I=1,F=2,Z=3,X=1/0,pe=9007199254740991,$=17976931348623157e292,G=NaN,te=4294967295,Q=te-1,Y=te>>>1,ce=[["ary",P],["bind",m],["bindKey",w],["curry",O],["curryRight",_],["flip",W],["partial",R],["partialRight",j],["rearg",z]],ie="[object Arguments]",re="[object Array]",de="[object AsyncFunction]",ge="[object Boolean]",he="[object Date]",xe="[object DOMException]",J="[object Error]",Pe="[object Function]",ve="[object GeneratorFunction]",Le="[object Map]",qe="[object Number]",it="[object Null]",dr="[object Object]",bi="[object Promise]",Et="[object Proxy]",kr="[object RegExp]",$t="[object Set]",It="[object String]",Gt="[object Symbol]",yi="[object Undefined]",en="[object WeakMap]",wi="[object WeakSet]",Ar="[object ArrayBuffer]",Br="[object DataView]",fr="[object Float32Array]",Ko="[object Float64Array]",Yo="[object Int8Array]",rr="[object Int16Array]",xi="[object Int32Array]",Xo="[object Uint8Array]",Ki="[object Uint8ClampedArray]",Yi="[object Uint16Array]",Jo="[object Uint32Array]",Ia=/\b__p \+= '';/g,Na=/\b(__p \+=) '' \+/g,Ma=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qo=/&(?:amp|lt|gt|quot|#39);/g,qn=/[&<>"']/g,es=RegExp(Qo.source),pu=RegExp(qn.source),Da=/<%-([\s\S]+?)%>/g,ts=/<%([\s\S]+?)%>/g,Xi=/<%=([\s\S]+?)%>/g,hu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,za=/^\w*$/,gu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tn=/[\\^$.*+?()[\]{}|]/g,vu=RegExp(tn.source),On=/^\s+/,Ji=/\s/,La=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mu=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,_t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$a=/[()=,{}\[\]\/\s]/,Nt=/\\(\\)?/g,jt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kn=/\w*$/,Xt=/^[-+]0x[0-9a-f]+$/i,rn=/^0b[01]+$/i,nn=/^\[object .+?Constructor\]$/,on=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Qi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eo=/($^)/,bu=/['\n\r\u2028\u2029\\]/g,ja="\\ud800-\\udfff",fE="\\u0300-\\u036f",pE="\\ufe20-\\ufe2f",hE="\\u20d0-\\u20ff",Th=fE+pE+hE,Rh="\\u2700-\\u27bf",Ch="a-z\\xdf-\\xf6\\xf8-\\xff",gE="\\xac\\xb1\\xd7\\xf7",vE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mE="\\u2000-\\u206f",bE=" \\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",Ph="A-Z\\xc0-\\xd6\\xd8-\\xde",Ih="\\ufe0e\\ufe0f",Nh=gE+vE+mE+bE,yu="['’]",yE="["+ja+"]",Mh="["+Nh+"]",Fa="["+Th+"]",Dh="\\d+",wE="["+Rh+"]",zh="["+Ch+"]",Lh="[^"+ja+Nh+Dh+Rh+Ch+Ph+"]",wu="\\ud83c[\\udffb-\\udfff]",xE="(?:"+Fa+"|"+wu+")",$h="[^"+ja+"]",xu="(?:\\ud83c[\\udde6-\\uddff]){2}",Su="[\\ud800-\\udbff][\\udc00-\\udfff]",to="["+Ph+"]",jh="\\u200d",Fh="(?:"+zh+"|"+Lh+")",SE="(?:"+to+"|"+Lh+")",Hh="(?:"+yu+"(?:d|ll|m|re|s|t|ve))?",Bh="(?:"+yu+"(?:D|LL|M|RE|S|T|VE))?",Wh=xE+"?",Uh="["+Ih+"]?",EE="(?:"+jh+"(?:"+[$h,xu,Su].join("|")+")"+Uh+Wh+")*",_E="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vh=Uh+Wh+EE,kE="(?:"+[wE,xu,Su].join("|")+")"+Vh,AE="(?:"+[$h+Fa+"?",Fa,xu,Su,yE].join("|")+")",TE=RegExp(yu,"g"),RE=RegExp(Fa,"g"),Eu=RegExp(wu+"(?="+wu+")|"+AE+Vh,"g"),CE=RegExp([to+"?"+zh+"+"+Hh+"(?="+[Mh,to,"$"].join("|")+")",SE+"+"+Bh+"(?="+[Mh,to+Fh,"$"].join("|")+")",to+"?"+Fh+"+"+Hh,to+"+"+Bh,OE,_E,Dh,kE].join("|"),"g"),PE=RegExp("["+jh+ja+Th+Ih+"]"),IE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,NE=["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"],ME=-1,ut={};ut[fr]=ut[Ko]=ut[Yo]=ut[rr]=ut[xi]=ut[Xo]=ut[Ki]=ut[Yi]=ut[Jo]=!0,ut[ie]=ut[re]=ut[Ar]=ut[ge]=ut[Br]=ut[he]=ut[J]=ut[Pe]=ut[Le]=ut[qe]=ut[dr]=ut[kr]=ut[$t]=ut[It]=ut[en]=!1;var at={};at[ie]=at[re]=at[Ar]=at[Br]=at[ge]=at[he]=at[fr]=at[Ko]=at[Yo]=at[rr]=at[xi]=at[Le]=at[qe]=at[dr]=at[kr]=at[$t]=at[It]=at[Gt]=at[Xo]=at[Ki]=at[Yi]=at[Jo]=!0,at[J]=at[Pe]=at[en]=!1;var DE={À:"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"},zE={"&":"&","<":"<",">":">",'"':""","'":"'"},LE={"&":"&","<":"<",">":">",""":'"',"'":"'"},$E={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jE=parseFloat,FE=parseInt,qh=typeof kl=="object"&&kl&&kl.Object===Object&&kl,HE=typeof self=="object"&&self&&self.Object===Object&&self,Ft=qh||HE||Function("return this")(),_u=t&&!t.nodeType&&t,Si=_u&&!0&&e&&!e.nodeType&&e,Gh=Si&&Si.exports===_u,Ou=Gh&&qh.process,Tr=(function(){try{var q=Si&&Si.require&&Si.require("util").types;return q||Ou&&Ou.binding&&Ou.binding("util")}catch{}})(),Zh=Tr&&Tr.isArrayBuffer,Kh=Tr&&Tr.isDate,Yh=Tr&&Tr.isMap,Xh=Tr&&Tr.isRegExp,Jh=Tr&&Tr.isSet,Qh=Tr&&Tr.isTypedArray;function pr(q,ne,ee){switch(ee.length){case 0:return q.call(ne);case 1:return q.call(ne,ee[0]);case 2:return q.call(ne,ee[0],ee[1]);case 3:return q.call(ne,ee[0],ee[1],ee[2])}return q.apply(ne,ee)}function BE(q,ne,ee,be){for(var Te=-1,We=q==null?0:q.length;++Te<We;){var Tt=q[Te];ne(be,Tt,ee(Tt),q)}return be}function hr(q,ne){for(var ee=-1,be=q==null?0:q.length;++ee<be&&ne(q[ee],ee,q)!==!1;);return q}function WE(q,ne){for(var ee=q==null?0:q.length;ee--&&ne(q[ee],ee,q)!==!1;);return q}function eg(q,ne){for(var ee=-1,be=q==null?0:q.length;++ee<be;)if(!ne(q[ee],ee,q))return!1;return!0}function Zn(q,ne){for(var ee=-1,be=q==null?0:q.length,Te=0,We=[];++ee<be;){var Tt=q[ee];ne(Tt,ee,q)&&(We[Te++]=Tt)}return We}function Ha(q,ne){var ee=q==null?0:q.length;return!!ee&&ro(q,ne,0)>-1}function ku(q,ne,ee){for(var be=-1,Te=q==null?0:q.length;++be<Te;)if(ee(ne,q[be]))return!0;return!1}function ft(q,ne){for(var ee=-1,be=q==null?0:q.length,Te=Array(be);++ee<be;)Te[ee]=ne(q[ee],ee,q);return Te}function Kn(q,ne){for(var ee=-1,be=ne.length,Te=q.length;++ee<be;)q[Te+ee]=ne[ee];return q}function Au(q,ne,ee,be){var Te=-1,We=q==null?0:q.length;for(be&&We&&(ee=q[++Te]);++Te<We;)ee=ne(ee,q[Te],Te,q);return ee}function UE(q,ne,ee,be){var Te=q==null?0:q.length;for(be&&Te&&(ee=q[--Te]);Te--;)ee=ne(ee,q[Te],Te,q);return ee}function Tu(q,ne){for(var ee=-1,be=q==null?0:q.length;++ee<be;)if(ne(q[ee],ee,q))return!0;return!1}var VE=Ru("length");function qE(q){return q.split("")}function GE(q){return q.match(_t)||[]}function tg(q,ne,ee){var be;return ee(q,function(Te,We,Tt){if(ne(Te,We,Tt))return be=We,!1}),be}function Ba(q,ne,ee,be){for(var Te=q.length,We=ee+(be?1:-1);be?We--:++We<Te;)if(ne(q[We],We,q))return We;return-1}function ro(q,ne,ee){return ne===ne?o_(q,ne,ee):Ba(q,rg,ee)}function ZE(q,ne,ee,be){for(var Te=ee-1,We=q.length;++Te<We;)if(be(q[Te],ne))return Te;return-1}function rg(q){return q!==q}function ng(q,ne){var ee=q==null?0:q.length;return ee?Pu(q,ne)/ee:G}function Ru(q){return function(ne){return ne==null?r:ne[q]}}function Cu(q){return function(ne){return q==null?r:q[ne]}}function ig(q,ne,ee,be,Te){return Te(q,function(We,Tt,st){ee=be?(be=!1,We):ne(ee,We,Tt,st)}),ee}function KE(q,ne){var ee=q.length;for(q.sort(ne);ee--;)q[ee]=q[ee].value;return q}function Pu(q,ne){for(var ee,be=-1,Te=q.length;++be<Te;){var We=ne(q[be]);We!==r&&(ee=ee===r?We:ee+We)}return ee}function Iu(q,ne){for(var ee=-1,be=Array(q);++ee<q;)be[ee]=ne(ee);return be}function YE(q,ne){return ft(ne,function(ee){return[ee,q[ee]]})}function og(q){return q&&q.slice(0,cg(q)+1).replace(On,"")}function gr(q){return function(ne){return q(ne)}}function Nu(q,ne){return ft(ne,function(ee){return q[ee]})}function rs(q,ne){return q.has(ne)}function sg(q,ne){for(var ee=-1,be=q.length;++ee<be&&ro(ne,q[ee],0)>-1;);return ee}function ag(q,ne){for(var ee=q.length;ee--&&ro(ne,q[ee],0)>-1;);return ee}function XE(q,ne){for(var ee=q.length,be=0;ee--;)q[ee]===ne&&++be;return be}var JE=Cu(DE),QE=Cu(zE);function e_(q){return"\\"+$E[q]}function t_(q,ne){return q==null?r:q[ne]}function no(q){return PE.test(q)}function r_(q){return IE.test(q)}function n_(q){for(var ne,ee=[];!(ne=q.next()).done;)ee.push(ne.value);return ee}function Mu(q){var ne=-1,ee=Array(q.size);return q.forEach(function(be,Te){ee[++ne]=[Te,be]}),ee}function lg(q,ne){return function(ee){return q(ne(ee))}}function Yn(q,ne){for(var ee=-1,be=q.length,Te=0,We=[];++ee<be;){var Tt=q[ee];(Tt===ne||Tt===p)&&(q[ee]=p,We[Te++]=ee)}return We}function Wa(q){var ne=-1,ee=Array(q.size);return q.forEach(function(be){ee[++ne]=be}),ee}function i_(q){var ne=-1,ee=Array(q.size);return q.forEach(function(be){ee[++ne]=[be,be]}),ee}function o_(q,ne,ee){for(var be=ee-1,Te=q.length;++be<Te;)if(q[be]===ne)return be;return-1}function s_(q,ne,ee){for(var be=ee+1;be--;)if(q[be]===ne)return be;return be}function io(q){return no(q)?l_(q):VE(q)}function Wr(q){return no(q)?c_(q):qE(q)}function cg(q){for(var ne=q.length;ne--&&Ji.test(q.charAt(ne)););return ne}var a_=Cu(LE);function l_(q){for(var ne=Eu.lastIndex=0;Eu.test(q);)++ne;return ne}function c_(q){return q.match(Eu)||[]}function u_(q){return q.match(CE)||[]}var d_=(function q(ne){ne=ne==null?Ft:oo.defaults(Ft.Object(),ne,oo.pick(Ft,NE));var ee=ne.Array,be=ne.Date,Te=ne.Error,We=ne.Function,Tt=ne.Math,st=ne.Object,Du=ne.RegExp,f_=ne.String,Rr=ne.TypeError,Ua=ee.prototype,p_=We.prototype,so=st.prototype,Va=ne["__core-js_shared__"],qa=p_.toString,Ge=so.hasOwnProperty,h_=0,ug=(function(){var o=/[^.]+$/.exec(Va&&Va.keys&&Va.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),Ga=so.toString,g_=qa.call(st),v_=Ft._,m_=Du("^"+qa.call(Ge).replace(tn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Za=Gh?ne.Buffer:r,Xn=ne.Symbol,Ka=ne.Uint8Array,dg=Za?Za.allocUnsafe:r,Ya=lg(st.getPrototypeOf,st),fg=st.create,pg=so.propertyIsEnumerable,Xa=Ua.splice,hg=Xn?Xn.isConcatSpreadable:r,ns=Xn?Xn.iterator:r,Ei=Xn?Xn.toStringTag:r,Ja=(function(){try{var o=Ti(st,"defineProperty");return o({},"",{}),o}catch{}})(),b_=ne.clearTimeout!==Ft.clearTimeout&&ne.clearTimeout,y_=be&&be.now!==Ft.Date.now&&be.now,w_=ne.setTimeout!==Ft.setTimeout&&ne.setTimeout,Qa=Tt.ceil,el=Tt.floor,zu=st.getOwnPropertySymbols,x_=Za?Za.isBuffer:r,gg=ne.isFinite,S_=Ua.join,E_=lg(st.keys,st),Rt=Tt.max,Zt=Tt.min,__=be.now,O_=ne.parseInt,vg=Tt.random,k_=Ua.reverse,Lu=Ti(ne,"DataView"),is=Ti(ne,"Map"),$u=Ti(ne,"Promise"),ao=Ti(ne,"Set"),os=Ti(ne,"WeakMap"),ss=Ti(st,"create"),tl=os&&new os,lo={},A_=Ri(Lu),T_=Ri(is),R_=Ri($u),C_=Ri(ao),P_=Ri(os),rl=Xn?Xn.prototype:r,as=rl?rl.valueOf:r,mg=rl?rl.toString:r;function T(o){if(bt(o)&&!Ce(o)&&!(o instanceof $e)){if(o instanceof Cr)return o;if(Ge.call(o,"__wrapped__"))return bv(o)}return new Cr(o)}var co=(function(){function o(){}return function(a){if(!gt(a))return{};if(fg)return fg(a);o.prototype=a;var d=new o;return o.prototype=r,d}})();function nl(){}function Cr(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=r}T.templateSettings={escape:Da,evaluate:ts,interpolate:Xi,variable:"",imports:{_:T}},T.prototype=nl.prototype,T.prototype.constructor=T,Cr.prototype=co(nl.prototype),Cr.prototype.constructor=Cr;function $e(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function I_(){var o=new $e(this.__wrapped__);return o.__actions__=nr(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=nr(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=nr(this.__views__),o}function N_(){if(this.__filtered__){var o=new $e(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function M_(){var o=this.__wrapped__.value(),a=this.__dir__,d=Ce(o),E=a<0,k=d?o.length:0,C=qO(0,k,this.__views__),D=C.start,H=C.end,K=H-D,oe=E?H:D-1,se=this.__iteratees__,ue=se.length,me=0,Se=Zt(K,this.__takeCount__);if(!d||!E&&k==K&&Se==K)return Hg(o,this.__actions__);var ke=[];e:for(;K--&&me<Se;){oe+=a;for(var Ne=-1,_e=o[oe];++Ne<ue;){var ze=se[Ne],je=ze.iteratee,br=ze.type,er=je(_e);if(br==F)_e=er;else if(!er){if(br==I)continue e;break e}}ke[me++]=_e}return ke}$e.prototype=co(nl.prototype),$e.prototype.constructor=$e;function _i(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function D_(){this.__data__=ss?ss(null):{},this.size=0}function z_(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function L_(o){var a=this.__data__;if(ss){var d=a[o];return d===f?r:d}return Ge.call(a,o)?a[o]:r}function $_(o){var a=this.__data__;return ss?a[o]!==r:Ge.call(a,o)}function j_(o,a){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=ss&&a===r?f:a,this}_i.prototype.clear=D_,_i.prototype.delete=z_,_i.prototype.get=L_,_i.prototype.has=$_,_i.prototype.set=j_;function An(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function F_(){this.__data__=[],this.size=0}function H_(o){var a=this.__data__,d=il(a,o);if(d<0)return!1;var E=a.length-1;return d==E?a.pop():Xa.call(a,d,1),--this.size,!0}function B_(o){var a=this.__data__,d=il(a,o);return d<0?r:a[d][1]}function W_(o){return il(this.__data__,o)>-1}function U_(o,a){var d=this.__data__,E=il(d,o);return E<0?(++this.size,d.push([o,a])):d[E][1]=a,this}An.prototype.clear=F_,An.prototype.delete=H_,An.prototype.get=B_,An.prototype.has=W_,An.prototype.set=U_;function Tn(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function V_(){this.size=0,this.__data__={hash:new _i,map:new(is||An),string:new _i}}function q_(o){var a=vl(this,o).delete(o);return this.size-=a?1:0,a}function G_(o){return vl(this,o).get(o)}function Z_(o){return vl(this,o).has(o)}function K_(o,a){var d=vl(this,o),E=d.size;return d.set(o,a),this.size+=d.size==E?0:1,this}Tn.prototype.clear=V_,Tn.prototype.delete=q_,Tn.prototype.get=G_,Tn.prototype.has=Z_,Tn.prototype.set=K_;function Oi(o){var a=-1,d=o==null?0:o.length;for(this.__data__=new Tn;++a<d;)this.add(o[a])}function Y_(o){return this.__data__.set(o,f),this}function X_(o){return this.__data__.has(o)}Oi.prototype.add=Oi.prototype.push=Y_,Oi.prototype.has=X_;function Ur(o){var a=this.__data__=new An(o);this.size=a.size}function J_(){this.__data__=new An,this.size=0}function Q_(o){var a=this.__data__,d=a.delete(o);return this.size=a.size,d}function eO(o){return this.__data__.get(o)}function tO(o){return this.__data__.has(o)}function rO(o,a){var d=this.__data__;if(d instanceof An){var E=d.__data__;if(!is||E.length<i-1)return E.push([o,a]),this.size=++d.size,this;d=this.__data__=new Tn(E)}return d.set(o,a),this.size=d.size,this}Ur.prototype.clear=J_,Ur.prototype.delete=Q_,Ur.prototype.get=eO,Ur.prototype.has=tO,Ur.prototype.set=rO;function bg(o,a){var d=Ce(o),E=!d&&Ci(o),k=!d&&!E&&ri(o),C=!d&&!E&&!k&&ho(o),D=d||E||k||C,H=D?Iu(o.length,f_):[],K=H.length;for(var oe in o)(a||Ge.call(o,oe))&&!(D&&(oe=="length"||k&&(oe=="offset"||oe=="parent")||C&&(oe=="buffer"||oe=="byteLength"||oe=="byteOffset")||Pn(oe,K)))&&H.push(oe);return H}function yg(o){var a=o.length;return a?o[Ku(0,a-1)]:r}function nO(o,a){return ml(nr(o),ki(a,0,o.length))}function iO(o){return ml(nr(o))}function ju(o,a,d){(d!==r&&!qr(o[a],d)||d===r&&!(a in o))&&sn(o,a,d)}function ls(o,a,d){var E=o[a];(!(Ge.call(o,a)&&qr(E,d))||d===r&&!(a in o))&&sn(o,a,d)}function il(o,a){for(var d=o.length;d--;)if(qr(o[d][0],a))return d;return-1}function oO(o,a,d,E){return Jn(o,function(k,C,D){a(E,k,d(k),D)}),E}function wg(o,a){return o&&ln(a,Mt(a),o)}function sO(o,a){return o&&ln(a,or(a),o)}function sn(o,a,d){a=="__proto__"&&Ja?Ja(o,a,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[a]=d}function Fu(o,a){for(var d=-1,E=a.length,k=ee(E),C=o==null;++d<E;)k[d]=C?r:xd(o,a[d]);return k}function ki(o,a,d){return o===o&&(d!==r&&(o=o<=d?o:d),a!==r&&(o=o>=a?o:a)),o}function Pr(o,a,d,E,k,C){var D,H=a&h,K=a&b,oe=a&S;if(d&&(D=k?d(o,E,k,C):d(o)),D!==r)return D;if(!gt(o))return o;var se=Ce(o);if(se){if(D=ZO(o),!H)return nr(o,D)}else{var ue=Kt(o),me=ue==Pe||ue==ve;if(ri(o))return Ug(o,H);if(ue==dr||ue==ie||me&&!k){if(D=K||me?{}:cv(o),!H)return K?LO(o,sO(D,o)):zO(o,wg(D,o))}else{if(!at[ue])return k?o:{};D=KO(o,ue,H)}}C||(C=new Ur);var Se=C.get(o);if(Se)return Se;C.set(o,D),$v(o)?o.forEach(function(_e){D.add(Pr(_e,a,d,_e,o,C))}):zv(o)&&o.forEach(function(_e,ze){D.set(ze,Pr(_e,a,d,ze,o,C))});var ke=oe?K?sd:od:K?or:Mt,Ne=se?r:ke(o);return hr(Ne||o,function(_e,ze){Ne&&(ze=_e,_e=o[ze]),ls(D,ze,Pr(_e,a,d,ze,o,C))}),D}function aO(o){var a=Mt(o);return function(d){return xg(d,o,a)}}function xg(o,a,d){var E=d.length;if(o==null)return!E;for(o=st(o);E--;){var k=d[E],C=a[k],D=o[k];if(D===r&&!(k in o)||!C(D))return!1}return!0}function Sg(o,a,d){if(typeof o!="function")throw new Rr(l);return gs(function(){o.apply(r,d)},a)}function cs(o,a,d,E){var k=-1,C=Ha,D=!0,H=o.length,K=[],oe=a.length;if(!H)return K;d&&(a=ft(a,gr(d))),E?(C=ku,D=!1):a.length>=i&&(C=rs,D=!1,a=new Oi(a));e:for(;++k<H;){var se=o[k],ue=d==null?se:d(se);if(se=E||se!==0?se:0,D&&ue===ue){for(var me=oe;me--;)if(a[me]===ue)continue e;K.push(se)}else C(a,ue,E)||K.push(se)}return K}var Jn=Kg(an),Eg=Kg(Bu,!0);function lO(o,a){var d=!0;return Jn(o,function(E,k,C){return d=!!a(E,k,C),d}),d}function ol(o,a,d){for(var E=-1,k=o.length;++E<k;){var C=o[E],D=a(C);if(D!=null&&(H===r?D===D&&!mr(D):d(D,H)))var H=D,K=C}return K}function cO(o,a,d,E){var k=o.length;for(d=Ie(d),d<0&&(d=-d>k?0:k+d),E=E===r||E>k?k:Ie(E),E<0&&(E+=k),E=d>E?0:Fv(E);d<E;)o[d++]=a;return o}function _g(o,a){var d=[];return Jn(o,function(E,k,C){a(E,k,C)&&d.push(E)}),d}function Ht(o,a,d,E,k){var C=-1,D=o.length;for(d||(d=XO),k||(k=[]);++C<D;){var H=o[C];a>0&&d(H)?a>1?Ht(H,a-1,d,E,k):Kn(k,H):E||(k[k.length]=H)}return k}var Hu=Yg(),Og=Yg(!0);function an(o,a){return o&&Hu(o,a,Mt)}function Bu(o,a){return o&&Og(o,a,Mt)}function sl(o,a){return Zn(a,function(d){return In(o[d])})}function Ai(o,a){a=ei(a,o);for(var d=0,E=a.length;o!=null&&d<E;)o=o[Vr(a[d++])];return d&&d==E?o:r}function kg(o,a,d){var E=a(o);return Ce(o)?E:Kn(E,d(o))}function Jt(o){return o==null?o===r?yi:it:Ei&&Ei in st(o)?VO(o):ik(o)}function Wu(o,a){return o>a}function uO(o,a){return o!=null&&Ge.call(o,a)}function dO(o,a){return o!=null&&a in st(o)}function fO(o,a,d){return o>=Zt(a,d)&&o<Rt(a,d)}function Uu(o,a,d){for(var E=d?ku:Ha,k=o[0].length,C=o.length,D=C,H=ee(C),K=1/0,oe=[];D--;){var se=o[D];D&&a&&(se=ft(se,gr(a))),K=Zt(se.length,K),H[D]=!d&&(a||k>=120&&se.length>=120)?new Oi(D&&se):r}se=o[0];var ue=-1,me=H[0];e:for(;++ue<k&&oe.length<K;){var Se=se[ue],ke=a?a(Se):Se;if(Se=d||Se!==0?Se:0,!(me?rs(me,ke):E(oe,ke,d))){for(D=C;--D;){var Ne=H[D];if(!(Ne?rs(Ne,ke):E(o[D],ke,d)))continue e}me&&me.push(ke),oe.push(Se)}}return oe}function pO(o,a,d,E){return an(o,function(k,C,D){a(E,d(k),C,D)}),E}function us(o,a,d){a=ei(a,o),o=pv(o,a);var E=o==null?o:o[Vr(Nr(a))];return E==null?r:pr(E,o,d)}function Ag(o){return bt(o)&&Jt(o)==ie}function hO(o){return bt(o)&&Jt(o)==Ar}function gO(o){return bt(o)&&Jt(o)==he}function ds(o,a,d,E,k){return o===a?!0:o==null||a==null||!bt(o)&&!bt(a)?o!==o&&a!==a:vO(o,a,d,E,ds,k)}function vO(o,a,d,E,k,C){var D=Ce(o),H=Ce(a),K=D?re:Kt(o),oe=H?re:Kt(a);K=K==ie?dr:K,oe=oe==ie?dr:oe;var se=K==dr,ue=oe==dr,me=K==oe;if(me&&ri(o)){if(!ri(a))return!1;D=!0,se=!1}if(me&&!se)return C||(C=new Ur),D||ho(o)?sv(o,a,d,E,k,C):WO(o,a,K,d,E,k,C);if(!(d&v)){var Se=se&&Ge.call(o,"__wrapped__"),ke=ue&&Ge.call(a,"__wrapped__");if(Se||ke){var Ne=Se?o.value():o,_e=ke?a.value():a;return C||(C=new Ur),k(Ne,_e,d,E,C)}}return me?(C||(C=new Ur),UO(o,a,d,E,k,C)):!1}function mO(o){return bt(o)&&Kt(o)==Le}function Vu(o,a,d,E){var k=d.length,C=k,D=!E;if(o==null)return!C;for(o=st(o);k--;){var H=d[k];if(D&&H[2]?H[1]!==o[H[0]]:!(H[0]in o))return!1}for(;++k<C;){H=d[k];var K=H[0],oe=o[K],se=H[1];if(D&&H[2]){if(oe===r&&!(K in o))return!1}else{var ue=new Ur;if(E)var me=E(oe,se,K,o,a,ue);if(!(me===r?ds(se,oe,v|y,E,ue):me))return!1}}return!0}function Tg(o){if(!gt(o)||QO(o))return!1;var a=In(o)?m_:nn;return a.test(Ri(o))}function bO(o){return bt(o)&&Jt(o)==kr}function yO(o){return bt(o)&&Kt(o)==$t}function wO(o){return bt(o)&&El(o.length)&&!!ut[Jt(o)]}function Rg(o){return typeof o=="function"?o:o==null?sr:typeof o=="object"?Ce(o)?Ig(o[0],o[1]):Pg(o):Jv(o)}function qu(o){if(!hs(o))return E_(o);var a=[];for(var d in st(o))Ge.call(o,d)&&d!="constructor"&&a.push(d);return a}function xO(o){if(!gt(o))return nk(o);var a=hs(o),d=[];for(var E in o)E=="constructor"&&(a||!Ge.call(o,E))||d.push(E);return d}function Gu(o,a){return o<a}function Cg(o,a){var d=-1,E=ir(o)?ee(o.length):[];return Jn(o,function(k,C,D){E[++d]=a(k,C,D)}),E}function Pg(o){var a=ld(o);return a.length==1&&a[0][2]?dv(a[0][0],a[0][1]):function(d){return d===o||Vu(d,o,a)}}function Ig(o,a){return ud(o)&&uv(a)?dv(Vr(o),a):function(d){var E=xd(d,o);return E===r&&E===a?Sd(d,o):ds(a,E,v|y)}}function al(o,a,d,E,k){o!==a&&Hu(a,function(C,D){if(k||(k=new Ur),gt(C))SO(o,a,D,d,al,E,k);else{var H=E?E(fd(o,D),C,D+"",o,a,k):r;H===r&&(H=C),ju(o,D,H)}},or)}function SO(o,a,d,E,k,C,D){var H=fd(o,d),K=fd(a,d),oe=D.get(K);if(oe){ju(o,d,oe);return}var se=C?C(H,K,d+"",o,a,D):r,ue=se===r;if(ue){var me=Ce(K),Se=!me&&ri(K),ke=!me&&!Se&&ho(K);se=K,me||Se||ke?Ce(H)?se=H:yt(H)?se=nr(H):Se?(ue=!1,se=Ug(K,!0)):ke?(ue=!1,se=Vg(K,!0)):se=[]:vs(K)||Ci(K)?(se=H,Ci(H)?se=Hv(H):(!gt(H)||In(H))&&(se=cv(K))):ue=!1}ue&&(D.set(K,se),k(se,K,E,C,D),D.delete(K)),ju(o,d,se)}function Ng(o,a){var d=o.length;if(d)return a+=a<0?d:0,Pn(a,d)?o[a]:r}function Mg(o,a,d){a.length?a=ft(a,function(C){return Ce(C)?function(D){return Ai(D,C.length===1?C[0]:C)}:C}):a=[sr];var E=-1;a=ft(a,gr(Oe()));var k=Cg(o,function(C,D,H){var K=ft(a,function(oe){return oe(C)});return{criteria:K,index:++E,value:C}});return KE(k,function(C,D){return DO(C,D,d)})}function EO(o,a){return Dg(o,a,function(d,E){return Sd(o,E)})}function Dg(o,a,d){for(var E=-1,k=a.length,C={};++E<k;){var D=a[E],H=Ai(o,D);d(H,D)&&fs(C,ei(D,o),H)}return C}function _O(o){return function(a){return Ai(a,o)}}function Zu(o,a,d,E){var k=E?ZE:ro,C=-1,D=a.length,H=o;for(o===a&&(a=nr(a)),d&&(H=ft(o,gr(d)));++C<D;)for(var K=0,oe=a[C],se=d?d(oe):oe;(K=k(H,se,K,E))>-1;)H!==o&&Xa.call(H,K,1),Xa.call(o,K,1);return o}function zg(o,a){for(var d=o?a.length:0,E=d-1;d--;){var k=a[d];if(d==E||k!==C){var C=k;Pn(k)?Xa.call(o,k,1):Ju(o,k)}}return o}function Ku(o,a){return o+el(vg()*(a-o+1))}function OO(o,a,d,E){for(var k=-1,C=Rt(Qa((a-o)/(d||1)),0),D=ee(C);C--;)D[E?C:++k]=o,o+=d;return D}function Yu(o,a){var d="";if(!o||a<1||a>pe)return d;do a%2&&(d+=o),a=el(a/2),a&&(o+=o);while(a);return d}function Me(o,a){return pd(fv(o,a,sr),o+"")}function kO(o){return yg(go(o))}function AO(o,a){var d=go(o);return ml(d,ki(a,0,d.length))}function fs(o,a,d,E){if(!gt(o))return o;a=ei(a,o);for(var k=-1,C=a.length,D=C-1,H=o;H!=null&&++k<C;){var K=Vr(a[k]),oe=d;if(K==="__proto__"||K==="constructor"||K==="prototype")return o;if(k!=D){var se=H[K];oe=E?E(se,K,H):r,oe===r&&(oe=gt(se)?se:Pn(a[k+1])?[]:{})}ls(H,K,oe),H=H[K]}return o}var Lg=tl?function(o,a){return tl.set(o,a),o}:sr,TO=Ja?function(o,a){return Ja(o,"toString",{configurable:!0,enumerable:!1,value:_d(a),writable:!0})}:sr;function RO(o){return ml(go(o))}function Ir(o,a,d){var E=-1,k=o.length;a<0&&(a=-a>k?0:k+a),d=d>k?k:d,d<0&&(d+=k),k=a>d?0:d-a>>>0,a>>>=0;for(var C=ee(k);++E<k;)C[E]=o[E+a];return C}function CO(o,a){var d;return Jn(o,function(E,k,C){return d=a(E,k,C),!d}),!!d}function ll(o,a,d){var E=0,k=o==null?E:o.length;if(typeof a=="number"&&a===a&&k<=Y){for(;E<k;){var C=E+k>>>1,D=o[C];D!==null&&!mr(D)&&(d?D<=a:D<a)?E=C+1:k=C}return k}return Xu(o,a,sr,d)}function Xu(o,a,d,E){var k=0,C=o==null?0:o.length;if(C===0)return 0;a=d(a);for(var D=a!==a,H=a===null,K=mr(a),oe=a===r;k<C;){var se=el((k+C)/2),ue=d(o[se]),me=ue!==r,Se=ue===null,ke=ue===ue,Ne=mr(ue);if(D)var _e=E||ke;else oe?_e=ke&&(E||me):H?_e=ke&&me&&(E||!Se):K?_e=ke&&me&&!Se&&(E||!Ne):Se||Ne?_e=!1:_e=E?ue<=a:ue<a;_e?k=se+1:C=se}return Zt(C,Q)}function $g(o,a){for(var d=-1,E=o.length,k=0,C=[];++d<E;){var D=o[d],H=a?a(D):D;if(!d||!qr(H,K)){var K=H;C[k++]=D===0?0:D}}return C}function jg(o){return typeof o=="number"?o:mr(o)?G:+o}function vr(o){if(typeof o=="string")return o;if(Ce(o))return ft(o,vr)+"";if(mr(o))return mg?mg.call(o):"";var a=o+"";return a=="0"&&1/o==-X?"-0":a}function Qn(o,a,d){var E=-1,k=Ha,C=o.length,D=!0,H=[],K=H;if(d)D=!1,k=ku;else if(C>=i){var oe=a?null:HO(o);if(oe)return Wa(oe);D=!1,k=rs,K=new Oi}else K=a?[]:H;e:for(;++E<C;){var se=o[E],ue=a?a(se):se;if(se=d||se!==0?se:0,D&&ue===ue){for(var me=K.length;me--;)if(K[me]===ue)continue e;a&&K.push(ue),H.push(se)}else k(K,ue,d)||(K!==H&&K.push(ue),H.push(se))}return H}function Ju(o,a){a=ei(a,o);var d=-1,E=a.length;if(!E)return!0;for(;++d<E;){var k=Vr(a[d]);if(k==="__proto__"&&!Ge.call(o,"__proto__")||(k==="constructor"||k==="prototype")&&d<E-1)return!1}var C=pv(o,a);return C==null||delete C[Vr(Nr(a))]}function Fg(o,a,d,E){return fs(o,a,d(Ai(o,a)),E)}function cl(o,a,d,E){for(var k=o.length,C=E?k:-1;(E?C--:++C<k)&&a(o[C],C,o););return d?Ir(o,E?0:C,E?C+1:k):Ir(o,E?C+1:0,E?k:C)}function Hg(o,a){var d=o;return d instanceof $e&&(d=d.value()),Au(a,function(E,k){return k.func.apply(k.thisArg,Kn([E],k.args))},d)}function Qu(o,a,d){var E=o.length;if(E<2)return E?Qn(o[0]):[];for(var k=-1,C=ee(E);++k<E;)for(var D=o[k],H=-1;++H<E;)H!=k&&(C[k]=cs(C[k]||D,o[H],a,d));return Qn(Ht(C,1),a,d)}function Bg(o,a,d){for(var E=-1,k=o.length,C=a.length,D={};++E<k;){var H=E<C?a[E]:r;d(D,o[E],H)}return D}function ed(o){return yt(o)?o:[]}function td(o){return typeof o=="function"?o:sr}function ei(o,a){return Ce(o)?o:ud(o,a)?[o]:mv(Ze(o))}var PO=Me;function ti(o,a,d){var E=o.length;return d=d===r?E:d,!a&&d>=E?o:Ir(o,a,d)}var Wg=b_||function(o){return Ft.clearTimeout(o)};function Ug(o,a){if(a)return o.slice();var d=o.length,E=dg?dg(d):new o.constructor(d);return o.copy(E),E}function rd(o){var a=new o.constructor(o.byteLength);return new Ka(a).set(new Ka(o)),a}function IO(o,a){var d=a?rd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function NO(o){var a=new o.constructor(o.source,kn.exec(o));return a.lastIndex=o.lastIndex,a}function MO(o){return as?st(as.call(o)):{}}function Vg(o,a){var d=a?rd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function qg(o,a){if(o!==a){var d=o!==r,E=o===null,k=o===o,C=mr(o),D=a!==r,H=a===null,K=a===a,oe=mr(a);if(!H&&!oe&&!C&&o>a||C&&D&&K&&!H&&!oe||E&&D&&K||!d&&K||!k)return 1;if(!E&&!C&&!oe&&o<a||oe&&d&&k&&!E&&!C||H&&d&&k||!D&&k||!K)return-1}return 0}function DO(o,a,d){for(var E=-1,k=o.criteria,C=a.criteria,D=k.length,H=d.length;++E<D;){var K=qg(k[E],C[E]);if(K){if(E>=H)return K;var oe=d[E];return K*(oe=="desc"?-1:1)}}return o.index-a.index}function Gg(o,a,d,E){for(var k=-1,C=o.length,D=d.length,H=-1,K=a.length,oe=Rt(C-D,0),se=ee(K+oe),ue=!E;++H<K;)se[H]=a[H];for(;++k<D;)(ue||k<C)&&(se[d[k]]=o[k]);for(;oe--;)se[H++]=o[k++];return se}function Zg(o,a,d,E){for(var k=-1,C=o.length,D=-1,H=d.length,K=-1,oe=a.length,se=Rt(C-H,0),ue=ee(se+oe),me=!E;++k<se;)ue[k]=o[k];for(var Se=k;++K<oe;)ue[Se+K]=a[K];for(;++D<H;)(me||k<C)&&(ue[Se+d[D]]=o[k++]);return ue}function nr(o,a){var d=-1,E=o.length;for(a||(a=ee(E));++d<E;)a[d]=o[d];return a}function ln(o,a,d,E){var k=!d;d||(d={});for(var C=-1,D=a.length;++C<D;){var H=a[C],K=E?E(d[H],o[H],H,d,o):r;K===r&&(K=o[H]),k?sn(d,H,K):ls(d,H,K)}return d}function zO(o,a){return ln(o,cd(o),a)}function LO(o,a){return ln(o,av(o),a)}function ul(o,a){return function(d,E){var k=Ce(d)?BE:oO,C=a?a():{};return k(d,o,Oe(E,2),C)}}function uo(o){return Me(function(a,d){var E=-1,k=d.length,C=k>1?d[k-1]:r,D=k>2?d[2]:r;for(C=o.length>3&&typeof C=="function"?(k--,C):r,D&&Qt(d[0],d[1],D)&&(C=k<3?r:C,k=1),a=st(a);++E<k;){var H=d[E];H&&o(a,H,E,C)}return a})}function Kg(o,a){return function(d,E){if(d==null)return d;if(!ir(d))return o(d,E);for(var k=d.length,C=a?k:-1,D=st(d);(a?C--:++C<k)&&E(D[C],C,D)!==!1;);return d}}function Yg(o){return function(a,d,E){for(var k=-1,C=st(a),D=E(a),H=D.length;H--;){var K=D[o?H:++k];if(d(C[K],K,C)===!1)break}return a}}function $O(o,a,d){var E=a&m,k=ps(o);function C(){var D=this&&this!==Ft&&this instanceof C?k:o;return D.apply(E?d:this,arguments)}return C}function Xg(o){return function(a){a=Ze(a);var d=no(a)?Wr(a):r,E=d?d[0]:a.charAt(0),k=d?ti(d,1).join(""):a.slice(1);return E[o]()+k}}function fo(o){return function(a){return Au(Yv(Kv(a).replace(TE,"")),o,"")}}function ps(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var d=co(o.prototype),E=o.apply(d,a);return gt(E)?E:d}}function jO(o,a,d){var E=ps(o);function k(){for(var C=arguments.length,D=ee(C),H=C,K=po(k);H--;)D[H]=arguments[H];var oe=C<3&&D[0]!==K&&D[C-1]!==K?[]:Yn(D,K);if(C-=oe.length,C<d)return rv(o,a,dl,k.placeholder,r,D,oe,r,r,d-C);var se=this&&this!==Ft&&this instanceof k?E:o;return pr(se,this,D)}return k}function Jg(o){return function(a,d,E){var k=st(a);if(!ir(a)){var C=Oe(d,3);a=Mt(a),d=function(H){return C(k[H],H,k)}}var D=o(a,d,E);return D>-1?k[C?a[D]:D]:r}}function Qg(o){return Cn(function(a){var d=a.length,E=d,k=Cr.prototype.thru;for(o&&a.reverse();E--;){var C=a[E];if(typeof C!="function")throw new Rr(l);if(k&&!D&&gl(C)=="wrapper")var D=new Cr([],!0)}for(E=D?E:d;++E<d;){C=a[E];var H=gl(C),K=H=="wrapper"?ad(C):r;K&&dd(K[0])&&K[1]==(P|O|R|z)&&!K[4].length&&K[9]==1?D=D[gl(K[0])].apply(D,K[3]):D=C.length==1&&dd(C)?D[H]():D.thru(C)}return function(){var oe=arguments,se=oe[0];if(D&&oe.length==1&&Ce(se))return D.plant(se).value();for(var ue=0,me=d?a[ue].apply(this,oe):se;++ue<d;)me=a[ue].call(this,me);return me}})}function dl(o,a,d,E,k,C,D,H,K,oe){var se=a&P,ue=a&m,me=a&w,Se=a&(O|_),ke=a&W,Ne=me?r:ps(o);function _e(){for(var ze=arguments.length,je=ee(ze),br=ze;br--;)je[br]=arguments[br];if(Se)var er=po(_e),yr=XE(je,er);if(E&&(je=Gg(je,E,k,Se)),C&&(je=Zg(je,C,D,Se)),ze-=yr,Se&&ze<oe){var wt=Yn(je,er);return rv(o,a,dl,_e.placeholder,d,je,wt,H,K,oe-ze)}var Gr=ue?d:this,Mn=me?Gr[o]:o;return ze=je.length,H?je=ok(je,H):ke&&ze>1&&je.reverse(),se&&K<ze&&(je.length=K),this&&this!==Ft&&this instanceof _e&&(Mn=Ne||ps(Mn)),Mn.apply(Gr,je)}return _e}function ev(o,a){return function(d,E){return pO(d,o,a(E),{})}}function fl(o,a){return function(d,E){var k;if(d===r&&E===r)return a;if(d!==r&&(k=d),E!==r){if(k===r)return E;typeof d=="string"||typeof E=="string"?(d=vr(d),E=vr(E)):(d=jg(d),E=jg(E)),k=o(d,E)}return k}}function nd(o){return Cn(function(a){return a=ft(a,gr(Oe())),Me(function(d){var E=this;return o(a,function(k){return pr(k,E,d)})})})}function pl(o,a){a=a===r?" ":vr(a);var d=a.length;if(d<2)return d?Yu(a,o):a;var E=Yu(a,Qa(o/io(a)));return no(a)?ti(Wr(E),0,o).join(""):E.slice(0,o)}function FO(o,a,d,E){var k=a&m,C=ps(o);function D(){for(var H=-1,K=arguments.length,oe=-1,se=E.length,ue=ee(se+K),me=this&&this!==Ft&&this instanceof D?C:o;++oe<se;)ue[oe]=E[oe];for(;K--;)ue[oe++]=arguments[++H];return pr(me,k?d:this,ue)}return D}function tv(o){return function(a,d,E){return E&&typeof E!="number"&&Qt(a,d,E)&&(d=E=r),a=Nn(a),d===r?(d=a,a=0):d=Nn(d),E=E===r?a<d?1:-1:Nn(E),OO(a,d,E,o)}}function hl(o){return function(a,d){return typeof a=="string"&&typeof d=="string"||(a=Mr(a),d=Mr(d)),o(a,d)}}function rv(o,a,d,E,k,C,D,H,K,oe){var se=a&O,ue=se?D:r,me=se?r:D,Se=se?C:r,ke=se?r:C;a|=se?R:j,a&=~(se?j:R),a&x||(a&=-4);var Ne=[o,a,k,Se,ue,ke,me,H,K,oe],_e=d.apply(r,Ne);return dd(o)&&hv(_e,Ne),_e.placeholder=E,gv(_e,o,a)}function id(o){var a=Tt[o];return function(d,E){if(d=Mr(d),E=E==null?0:Zt(Ie(E),292),E&&gg(d)){var k=(Ze(d)+"e").split("e"),C=a(k[0]+"e"+(+k[1]+E));return k=(Ze(C)+"e").split("e"),+(k[0]+"e"+(+k[1]-E))}return a(d)}}var HO=ao&&1/Wa(new ao([,-0]))[1]==X?function(o){return new ao(o)}:Ad;function nv(o){return function(a){var d=Kt(a);return d==Le?Mu(a):d==$t?i_(a):YE(a,o(a))}}function Rn(o,a,d,E,k,C,D,H){var K=a&w;if(!K&&typeof o!="function")throw new Rr(l);var oe=E?E.length:0;if(oe||(a&=-97,E=k=r),D=D===r?D:Rt(Ie(D),0),H=H===r?H:Ie(H),oe-=k?k.length:0,a&j){var se=E,ue=k;E=k=r}var me=K?r:ad(o),Se=[o,a,d,E,k,se,ue,C,D,H];if(me&&rk(Se,me),o=Se[0],a=Se[1],d=Se[2],E=Se[3],k=Se[4],H=Se[9]=Se[9]===r?K?0:o.length:Rt(Se[9]-oe,0),!H&&a&(O|_)&&(a&=-25),!a||a==m)var ke=$O(o,a,d);else a==O||a==_?ke=jO(o,a,H):(a==R||a==(m|R))&&!k.length?ke=FO(o,a,d,E):ke=dl.apply(r,Se);var Ne=me?Lg:hv;return gv(Ne(ke,Se),o,a)}function iv(o,a,d,E){return o===r||qr(o,so[d])&&!Ge.call(E,d)?a:o}function ov(o,a,d,E,k,C){return gt(o)&>(a)&&(C.set(a,o),al(o,a,r,ov,C),C.delete(a)),o}function BO(o){return vs(o)?r:o}function sv(o,a,d,E,k,C){var D=d&v,H=o.length,K=a.length;if(H!=K&&!(D&&K>H))return!1;var oe=C.get(o),se=C.get(a);if(oe&&se)return oe==a&&se==o;var ue=-1,me=!0,Se=d&y?new Oi:r;for(C.set(o,a),C.set(a,o);++ue<H;){var ke=o[ue],Ne=a[ue];if(E)var _e=D?E(Ne,ke,ue,a,o,C):E(ke,Ne,ue,o,a,C);if(_e!==r){if(_e)continue;me=!1;break}if(Se){if(!Tu(a,function(ze,je){if(!rs(Se,je)&&(ke===ze||k(ke,ze,d,E,C)))return Se.push(je)})){me=!1;break}}else if(!(ke===Ne||k(ke,Ne,d,E,C))){me=!1;break}}return C.delete(o),C.delete(a),me}function WO(o,a,d,E,k,C,D){switch(d){case Br:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case Ar:return!(o.byteLength!=a.byteLength||!C(new Ka(o),new Ka(a)));case ge:case he:case qe:return qr(+o,+a);case J:return o.name==a.name&&o.message==a.message;case kr:case It:return o==a+"";case Le:var H=Mu;case $t:var K=E&v;if(H||(H=Wa),o.size!=a.size&&!K)return!1;var oe=D.get(o);if(oe)return oe==a;E|=y,D.set(o,a);var se=sv(H(o),H(a),E,k,C,D);return D.delete(o),se;case Gt:if(as)return as.call(o)==as.call(a)}return!1}function UO(o,a,d,E,k,C){var D=d&v,H=od(o),K=H.length,oe=od(a),se=oe.length;if(K!=se&&!D)return!1;for(var ue=K;ue--;){var me=H[ue];if(!(D?me in a:Ge.call(a,me)))return!1}var Se=C.get(o),ke=C.get(a);if(Se&&ke)return Se==a&&ke==o;var Ne=!0;C.set(o,a),C.set(a,o);for(var _e=D;++ue<K;){me=H[ue];var ze=o[me],je=a[me];if(E)var br=D?E(je,ze,me,a,o,C):E(ze,je,me,o,a,C);if(!(br===r?ze===je||k(ze,je,d,E,C):br)){Ne=!1;break}_e||(_e=me=="constructor")}if(Ne&&!_e){var er=o.constructor,yr=a.constructor;er!=yr&&"constructor"in o&&"constructor"in a&&!(typeof er=="function"&&er instanceof er&&typeof yr=="function"&&yr instanceof yr)&&(Ne=!1)}return C.delete(o),C.delete(a),Ne}function Cn(o){return pd(fv(o,r,xv),o+"")}function od(o){return kg(o,Mt,cd)}function sd(o){return kg(o,or,av)}var ad=tl?function(o){return tl.get(o)}:Ad;function gl(o){for(var a=o.name+"",d=lo[a],E=Ge.call(lo,a)?d.length:0;E--;){var k=d[E],C=k.func;if(C==null||C==o)return k.name}return a}function po(o){var a=Ge.call(T,"placeholder")?T:o;return a.placeholder}function Oe(){var o=T.iteratee||Od;return o=o===Od?Rg:o,arguments.length?o(arguments[0],arguments[1]):o}function vl(o,a){var d=o.__data__;return JO(a)?d[typeof a=="string"?"string":"hash"]:d.map}function ld(o){for(var a=Mt(o),d=a.length;d--;){var E=a[d],k=o[E];a[d]=[E,k,uv(k)]}return a}function Ti(o,a){var d=t_(o,a);return Tg(d)?d:r}function VO(o){var a=Ge.call(o,Ei),d=o[Ei];try{o[Ei]=r;var E=!0}catch{}var k=Ga.call(o);return E&&(a?o[Ei]=d:delete o[Ei]),k}var cd=zu?function(o){return o==null?[]:(o=st(o),Zn(zu(o),function(a){return pg.call(o,a)}))}:Td,av=zu?function(o){for(var a=[];o;)Kn(a,cd(o)),o=Ya(o);return a}:Td,Kt=Jt;(Lu&&Kt(new Lu(new ArrayBuffer(1)))!=Br||is&&Kt(new is)!=Le||$u&&Kt($u.resolve())!=bi||ao&&Kt(new ao)!=$t||os&&Kt(new os)!=en)&&(Kt=function(o){var a=Jt(o),d=a==dr?o.constructor:r,E=d?Ri(d):"";if(E)switch(E){case A_:return Br;case T_:return Le;case R_:return bi;case C_:return $t;case P_:return en}return a});function qO(o,a,d){for(var E=-1,k=d.length;++E<k;){var C=d[E],D=C.size;switch(C.type){case"drop":o+=D;break;case"dropRight":a-=D;break;case"take":a=Zt(a,o+D);break;case"takeRight":o=Rt(o,a-D);break}}return{start:o,end:a}}function GO(o){var a=o.match(mu);return a?a[1].split(Be):[]}function lv(o,a,d){a=ei(a,o);for(var E=-1,k=a.length,C=!1;++E<k;){var D=Vr(a[E]);if(!(C=o!=null&&d(o,D)))break;o=o[D]}return C||++E!=k?C:(k=o==null?0:o.length,!!k&&El(k)&&Pn(D,k)&&(Ce(o)||Ci(o)))}function ZO(o){var a=o.length,d=new o.constructor(a);return a&&typeof o[0]=="string"&&Ge.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function cv(o){return typeof o.constructor=="function"&&!hs(o)?co(Ya(o)):{}}function KO(o,a,d){var E=o.constructor;switch(a){case Ar:return rd(o);case ge:case he:return new E(+o);case Br:return IO(o,d);case fr:case Ko:case Yo:case rr:case xi:case Xo:case Ki:case Yi:case Jo:return Vg(o,d);case Le:return new E;case qe:case It:return new E(o);case kr:return NO(o);case $t:return new E;case Gt:return MO(o)}}function YO(o,a){var d=a.length;if(!d)return o;var E=d-1;return a[E]=(d>1?"& ":"")+a[E],a=a.join(d>2?", ":" "),o.replace(La,`{
|
|
233
|
+
/* [wrapped with `+a+`] */
|
|
234
|
+
`)}function XO(o){return Ce(o)||Ci(o)||!!(hg&&o&&o[hg])}function Pn(o,a){var d=typeof o;return a=a??pe,!!a&&(d=="number"||d!="symbol"&&Gn.test(o))&&o>-1&&o%1==0&&o<a}function Qt(o,a,d){if(!gt(d))return!1;var E=typeof a;return(E=="number"?ir(d)&&Pn(a,d.length):E=="string"&&a in d)?qr(d[a],o):!1}function ud(o,a){if(Ce(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||mr(o)?!0:za.test(o)||!hu.test(o)||a!=null&&o in st(a)}function JO(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function dd(o){var a=gl(o),d=T[a];if(typeof d!="function"||!(a in $e.prototype))return!1;if(o===d)return!0;var E=ad(d);return!!E&&o===E[0]}function QO(o){return!!ug&&ug in o}var ek=Va?In:Rd;function hs(o){var a=o&&o.constructor,d=typeof a=="function"&&a.prototype||so;return o===d}function uv(o){return o===o&&!gt(o)}function dv(o,a){return function(d){return d==null?!1:d[o]===a&&(a!==r||o in st(d))}}function tk(o){var a=xl(o,function(E){return d.size===g&&d.clear(),E}),d=a.cache;return a}function rk(o,a){var d=o[1],E=a[1],k=d|E,C=k<(m|w|P),D=E==P&&d==O||E==P&&d==z&&o[7].length<=a[8]||E==(P|z)&&a[7].length<=a[8]&&d==O;if(!(C||D))return o;E&m&&(o[2]=a[2],k|=d&m?0:x);var H=a[3];if(H){var K=o[3];o[3]=K?Gg(K,H,a[4]):H,o[4]=K?Yn(o[3],p):a[4]}return H=a[5],H&&(K=o[5],o[5]=K?Zg(K,H,a[6]):H,o[6]=K?Yn(o[5],p):a[6]),H=a[7],H&&(o[7]=H),E&P&&(o[8]=o[8]==null?a[8]:Zt(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=k,o}function nk(o){var a=[];if(o!=null)for(var d in st(o))a.push(d);return a}function ik(o){return Ga.call(o)}function fv(o,a,d){return a=Rt(a===r?o.length-1:a,0),function(){for(var E=arguments,k=-1,C=Rt(E.length-a,0),D=ee(C);++k<C;)D[k]=E[a+k];k=-1;for(var H=ee(a+1);++k<a;)H[k]=E[k];return H[a]=d(D),pr(o,this,H)}}function pv(o,a){return a.length<2?o:Ai(o,Ir(a,0,-1))}function ok(o,a){for(var d=o.length,E=Zt(a.length,d),k=nr(o);E--;){var C=a[E];o[E]=Pn(C,d)?k[C]:r}return o}function fd(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var hv=vv(Lg),gs=w_||function(o,a){return Ft.setTimeout(o,a)},pd=vv(TO);function gv(o,a,d){var E=a+"";return pd(o,YO(E,sk(GO(E),d)))}function vv(o){var a=0,d=0;return function(){var E=__(),k=U-(E-d);if(d=E,k>0){if(++a>=V)return arguments[0]}else a=0;return o.apply(r,arguments)}}function ml(o,a){var d=-1,E=o.length,k=E-1;for(a=a===r?E:a;++d<a;){var C=Ku(d,k),D=o[C];o[C]=o[d],o[d]=D}return o.length=a,o}var mv=tk(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(gu,function(d,E,k,C){a.push(k?C.replace(Nt,"$1"):E||d)}),a});function Vr(o){if(typeof o=="string"||mr(o))return o;var a=o+"";return a=="0"&&1/o==-X?"-0":a}function Ri(o){if(o!=null){try{return qa.call(o)}catch{}try{return o+""}catch{}}return""}function sk(o,a){return hr(ce,function(d){var E="_."+d[0];a&d[1]&&!Ha(o,E)&&o.push(E)}),o.sort()}function bv(o){if(o instanceof $e)return o.clone();var a=new Cr(o.__wrapped__,o.__chain__);return a.__actions__=nr(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function ak(o,a,d){(d?Qt(o,a,d):a===r)?a=1:a=Rt(Ie(a),0);var E=o==null?0:o.length;if(!E||a<1)return[];for(var k=0,C=0,D=ee(Qa(E/a));k<E;)D[C++]=Ir(o,k,k+=a);return D}function lk(o){for(var a=-1,d=o==null?0:o.length,E=0,k=[];++a<d;){var C=o[a];C&&(k[E++]=C)}return k}function ck(){var o=arguments.length;if(!o)return[];for(var a=ee(o-1),d=arguments[0],E=o;E--;)a[E-1]=arguments[E];return Kn(Ce(d)?nr(d):[d],Ht(a,1))}var uk=Me(function(o,a){return yt(o)?cs(o,Ht(a,1,yt,!0)):[]}),dk=Me(function(o,a){var d=Nr(a);return yt(d)&&(d=r),yt(o)?cs(o,Ht(a,1,yt,!0),Oe(d,2)):[]}),fk=Me(function(o,a){var d=Nr(a);return yt(d)&&(d=r),yt(o)?cs(o,Ht(a,1,yt,!0),r,d):[]});function pk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Ie(a),Ir(o,a<0?0:a,E)):[]}function hk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Ie(a),a=E-a,Ir(o,0,a<0?0:a)):[]}function gk(o,a){return o&&o.length?cl(o,Oe(a,3),!0,!0):[]}function vk(o,a){return o&&o.length?cl(o,Oe(a,3),!0):[]}function mk(o,a,d,E){var k=o==null?0:o.length;return k?(d&&typeof d!="number"&&Qt(o,a,d)&&(d=0,E=k),cO(o,a,d,E)):[]}function yv(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=d==null?0:Ie(d);return k<0&&(k=Rt(E+k,0)),Ba(o,Oe(a,3),k)}function wv(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=E-1;return d!==r&&(k=Ie(d),k=d<0?Rt(E+k,0):Zt(k,E-1)),Ba(o,Oe(a,3),k,!0)}function xv(o){var a=o==null?0:o.length;return a?Ht(o,1):[]}function bk(o){var a=o==null?0:o.length;return a?Ht(o,X):[]}function yk(o,a){var d=o==null?0:o.length;return d?(a=a===r?1:Ie(a),Ht(o,a)):[]}function wk(o){for(var a=-1,d=o==null?0:o.length,E={};++a<d;){var k=o[a];sn(E,k[0],k[1])}return E}function Sv(o){return o&&o.length?o[0]:r}function xk(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=d==null?0:Ie(d);return k<0&&(k=Rt(E+k,0)),ro(o,a,k)}function Sk(o){var a=o==null?0:o.length;return a?Ir(o,0,-1):[]}var Ek=Me(function(o){var a=ft(o,ed);return a.length&&a[0]===o[0]?Uu(a):[]}),_k=Me(function(o){var a=Nr(o),d=ft(o,ed);return a===Nr(d)?a=r:d.pop(),d.length&&d[0]===o[0]?Uu(d,Oe(a,2)):[]}),Ok=Me(function(o){var a=Nr(o),d=ft(o,ed);return a=typeof a=="function"?a:r,a&&d.pop(),d.length&&d[0]===o[0]?Uu(d,r,a):[]});function kk(o,a){return o==null?"":S_.call(o,a)}function Nr(o){var a=o==null?0:o.length;return a?o[a-1]:r}function Ak(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=E;return d!==r&&(k=Ie(d),k=k<0?Rt(E+k,0):Zt(k,E-1)),a===a?s_(o,a,k):Ba(o,rg,k,!0)}function Tk(o,a){return o&&o.length?Ng(o,Ie(a)):r}var Rk=Me(Ev);function Ev(o,a){return o&&o.length&&a&&a.length?Zu(o,a):o}function Ck(o,a,d){return o&&o.length&&a&&a.length?Zu(o,a,Oe(d,2)):o}function Pk(o,a,d){return o&&o.length&&a&&a.length?Zu(o,a,r,d):o}var Ik=Cn(function(o,a){var d=o==null?0:o.length,E=Fu(o,a);return zg(o,ft(a,function(k){return Pn(k,d)?+k:k}).sort(qg)),E});function Nk(o,a){var d=[];if(!(o&&o.length))return d;var E=-1,k=[],C=o.length;for(a=Oe(a,3);++E<C;){var D=o[E];a(D,E,o)&&(d.push(D),k.push(E))}return zg(o,k),d}function hd(o){return o==null?o:k_.call(o)}function Mk(o,a,d){var E=o==null?0:o.length;return E?(d&&typeof d!="number"&&Qt(o,a,d)?(a=0,d=E):(a=a==null?0:Ie(a),d=d===r?E:Ie(d)),Ir(o,a,d)):[]}function Dk(o,a){return ll(o,a)}function zk(o,a,d){return Xu(o,a,Oe(d,2))}function Lk(o,a){var d=o==null?0:o.length;if(d){var E=ll(o,a);if(E<d&&qr(o[E],a))return E}return-1}function $k(o,a){return ll(o,a,!0)}function jk(o,a,d){return Xu(o,a,Oe(d,2),!0)}function Fk(o,a){var d=o==null?0:o.length;if(d){var E=ll(o,a,!0)-1;if(qr(o[E],a))return E}return-1}function Hk(o){return o&&o.length?$g(o):[]}function Bk(o,a){return o&&o.length?$g(o,Oe(a,2)):[]}function Wk(o){var a=o==null?0:o.length;return a?Ir(o,1,a):[]}function Uk(o,a,d){return o&&o.length?(a=d||a===r?1:Ie(a),Ir(o,0,a<0?0:a)):[]}function Vk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Ie(a),a=E-a,Ir(o,a<0?0:a,E)):[]}function qk(o,a){return o&&o.length?cl(o,Oe(a,3),!1,!0):[]}function Gk(o,a){return o&&o.length?cl(o,Oe(a,3)):[]}var Zk=Me(function(o){return Qn(Ht(o,1,yt,!0))}),Kk=Me(function(o){var a=Nr(o);return yt(a)&&(a=r),Qn(Ht(o,1,yt,!0),Oe(a,2))}),Yk=Me(function(o){var a=Nr(o);return a=typeof a=="function"?a:r,Qn(Ht(o,1,yt,!0),r,a)});function Xk(o){return o&&o.length?Qn(o):[]}function Jk(o,a){return o&&o.length?Qn(o,Oe(a,2)):[]}function Qk(o,a){return a=typeof a=="function"?a:r,o&&o.length?Qn(o,r,a):[]}function gd(o){if(!(o&&o.length))return[];var a=0;return o=Zn(o,function(d){if(yt(d))return a=Rt(d.length,a),!0}),Iu(a,function(d){return ft(o,Ru(d))})}function _v(o,a){if(!(o&&o.length))return[];var d=gd(o);return a==null?d:ft(d,function(E){return pr(a,r,E)})}var eA=Me(function(o,a){return yt(o)?cs(o,a):[]}),tA=Me(function(o){return Qu(Zn(o,yt))}),rA=Me(function(o){var a=Nr(o);return yt(a)&&(a=r),Qu(Zn(o,yt),Oe(a,2))}),nA=Me(function(o){var a=Nr(o);return a=typeof a=="function"?a:r,Qu(Zn(o,yt),r,a)}),iA=Me(gd);function oA(o,a){return Bg(o||[],a||[],ls)}function sA(o,a){return Bg(o||[],a||[],fs)}var aA=Me(function(o){var a=o.length,d=a>1?o[a-1]:r;return d=typeof d=="function"?(o.pop(),d):r,_v(o,d)});function Ov(o){var a=T(o);return a.__chain__=!0,a}function lA(o,a){return a(o),o}function bl(o,a){return a(o)}var cA=Cn(function(o){var a=o.length,d=a?o[0]:0,E=this.__wrapped__,k=function(C){return Fu(C,o)};return a>1||this.__actions__.length||!(E instanceof $e)||!Pn(d)?this.thru(k):(E=E.slice(d,+d+(a?1:0)),E.__actions__.push({func:bl,args:[k],thisArg:r}),new Cr(E,this.__chain__).thru(function(C){return a&&!C.length&&C.push(r),C}))});function uA(){return Ov(this)}function dA(){return new Cr(this.value(),this.__chain__)}function fA(){this.__values__===r&&(this.__values__=jv(this.value()));var o=this.__index__>=this.__values__.length,a=o?r:this.__values__[this.__index__++];return{done:o,value:a}}function pA(){return this}function hA(o){for(var a,d=this;d instanceof nl;){var E=bv(d);E.__index__=0,E.__values__=r,a?k.__wrapped__=E:a=E;var k=E;d=d.__wrapped__}return k.__wrapped__=o,a}function gA(){var o=this.__wrapped__;if(o instanceof $e){var a=o;return this.__actions__.length&&(a=new $e(this)),a=a.reverse(),a.__actions__.push({func:bl,args:[hd],thisArg:r}),new Cr(a,this.__chain__)}return this.thru(hd)}function vA(){return Hg(this.__wrapped__,this.__actions__)}var mA=ul(function(o,a,d){Ge.call(o,d)?++o[d]:sn(o,d,1)});function bA(o,a,d){var E=Ce(o)?eg:lO;return d&&Qt(o,a,d)&&(a=r),E(o,Oe(a,3))}function yA(o,a){var d=Ce(o)?Zn:_g;return d(o,Oe(a,3))}var wA=Jg(yv),xA=Jg(wv);function SA(o,a){return Ht(yl(o,a),1)}function EA(o,a){return Ht(yl(o,a),X)}function _A(o,a,d){return d=d===r?1:Ie(d),Ht(yl(o,a),d)}function kv(o,a){var d=Ce(o)?hr:Jn;return d(o,Oe(a,3))}function Av(o,a){var d=Ce(o)?WE:Eg;return d(o,Oe(a,3))}var OA=ul(function(o,a,d){Ge.call(o,d)?o[d].push(a):sn(o,d,[a])});function kA(o,a,d,E){o=ir(o)?o:go(o),d=d&&!E?Ie(d):0;var k=o.length;return d<0&&(d=Rt(k+d,0)),_l(o)?d<=k&&o.indexOf(a,d)>-1:!!k&&ro(o,a,d)>-1}var AA=Me(function(o,a,d){var E=-1,k=typeof a=="function",C=ir(o)?ee(o.length):[];return Jn(o,function(D){C[++E]=k?pr(a,D,d):us(D,a,d)}),C}),TA=ul(function(o,a,d){sn(o,d,a)});function yl(o,a){var d=Ce(o)?ft:Cg;return d(o,Oe(a,3))}function RA(o,a,d,E){return o==null?[]:(Ce(a)||(a=a==null?[]:[a]),d=E?r:d,Ce(d)||(d=d==null?[]:[d]),Mg(o,a,d))}var CA=ul(function(o,a,d){o[d?0:1].push(a)},function(){return[[],[]]});function PA(o,a,d){var E=Ce(o)?Au:ig,k=arguments.length<3;return E(o,Oe(a,4),d,k,Jn)}function IA(o,a,d){var E=Ce(o)?UE:ig,k=arguments.length<3;return E(o,Oe(a,4),d,k,Eg)}function NA(o,a){var d=Ce(o)?Zn:_g;return d(o,Sl(Oe(a,3)))}function MA(o){var a=Ce(o)?yg:kO;return a(o)}function DA(o,a,d){(d?Qt(o,a,d):a===r)?a=1:a=Ie(a);var E=Ce(o)?nO:AO;return E(o,a)}function zA(o){var a=Ce(o)?iO:RO;return a(o)}function LA(o){if(o==null)return 0;if(ir(o))return _l(o)?io(o):o.length;var a=Kt(o);return a==Le||a==$t?o.size:qu(o).length}function $A(o,a,d){var E=Ce(o)?Tu:CO;return d&&Qt(o,a,d)&&(a=r),E(o,Oe(a,3))}var jA=Me(function(o,a){if(o==null)return[];var d=a.length;return d>1&&Qt(o,a[0],a[1])?a=[]:d>2&&Qt(a[0],a[1],a[2])&&(a=[a[0]]),Mg(o,Ht(a,1),[])}),wl=y_||function(){return Ft.Date.now()};function FA(o,a){if(typeof a!="function")throw new Rr(l);return o=Ie(o),function(){if(--o<1)return a.apply(this,arguments)}}function Tv(o,a,d){return a=d?r:a,a=o&&a==null?o.length:a,Rn(o,P,r,r,r,r,a)}function Rv(o,a){var d;if(typeof a!="function")throw new Rr(l);return o=Ie(o),function(){return--o>0&&(d=a.apply(this,arguments)),o<=1&&(a=r),d}}var vd=Me(function(o,a,d){var E=m;if(d.length){var k=Yn(d,po(vd));E|=R}return Rn(o,E,a,d,k)}),Cv=Me(function(o,a,d){var E=m|w;if(d.length){var k=Yn(d,po(Cv));E|=R}return Rn(a,E,o,d,k)});function Pv(o,a,d){a=d?r:a;var E=Rn(o,O,r,r,r,r,r,a);return E.placeholder=Pv.placeholder,E}function Iv(o,a,d){a=d?r:a;var E=Rn(o,_,r,r,r,r,r,a);return E.placeholder=Iv.placeholder,E}function Nv(o,a,d){var E,k,C,D,H,K,oe=0,se=!1,ue=!1,me=!0;if(typeof o!="function")throw new Rr(l);a=Mr(a)||0,gt(d)&&(se=!!d.leading,ue="maxWait"in d,C=ue?Rt(Mr(d.maxWait)||0,a):C,me="trailing"in d?!!d.trailing:me);function Se(wt){var Gr=E,Mn=k;return E=k=r,oe=wt,D=o.apply(Mn,Gr),D}function ke(wt){return oe=wt,H=gs(ze,a),se?Se(wt):D}function Ne(wt){var Gr=wt-K,Mn=wt-oe,Qv=a-Gr;return ue?Zt(Qv,C-Mn):Qv}function _e(wt){var Gr=wt-K,Mn=wt-oe;return K===r||Gr>=a||Gr<0||ue&&Mn>=C}function ze(){var wt=wl();if(_e(wt))return je(wt);H=gs(ze,Ne(wt))}function je(wt){return H=r,me&&E?Se(wt):(E=k=r,D)}function br(){H!==r&&Wg(H),oe=0,E=K=k=H=r}function er(){return H===r?D:je(wl())}function yr(){var wt=wl(),Gr=_e(wt);if(E=arguments,k=this,K=wt,Gr){if(H===r)return ke(K);if(ue)return Wg(H),H=gs(ze,a),Se(K)}return H===r&&(H=gs(ze,a)),D}return yr.cancel=br,yr.flush=er,yr}var HA=Me(function(o,a){return Sg(o,1,a)}),BA=Me(function(o,a,d){return Sg(o,Mr(a)||0,d)});function WA(o){return Rn(o,W)}function xl(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Rr(l);var d=function(){var E=arguments,k=a?a.apply(this,E):E[0],C=d.cache;if(C.has(k))return C.get(k);var D=o.apply(this,E);return d.cache=C.set(k,D)||C,D};return d.cache=new(xl.Cache||Tn),d}xl.Cache=Tn;function Sl(o){if(typeof o!="function")throw new Rr(l);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function UA(o){return Rv(2,o)}var VA=PO(function(o,a){a=a.length==1&&Ce(a[0])?ft(a[0],gr(Oe())):ft(Ht(a,1),gr(Oe()));var d=a.length;return Me(function(E){for(var k=-1,C=Zt(E.length,d);++k<C;)E[k]=a[k].call(this,E[k]);return pr(o,this,E)})}),md=Me(function(o,a){var d=Yn(a,po(md));return Rn(o,R,r,a,d)}),Mv=Me(function(o,a){var d=Yn(a,po(Mv));return Rn(o,j,r,a,d)}),qA=Cn(function(o,a){return Rn(o,z,r,r,r,a)});function GA(o,a){if(typeof o!="function")throw new Rr(l);return a=a===r?a:Ie(a),Me(o,a)}function ZA(o,a){if(typeof o!="function")throw new Rr(l);return a=a==null?0:Rt(Ie(a),0),Me(function(d){var E=d[a],k=ti(d,0,a);return E&&Kn(k,E),pr(o,this,k)})}function KA(o,a,d){var E=!0,k=!0;if(typeof o!="function")throw new Rr(l);return gt(d)&&(E="leading"in d?!!d.leading:E,k="trailing"in d?!!d.trailing:k),Nv(o,a,{leading:E,maxWait:a,trailing:k})}function YA(o){return Tv(o,1)}function XA(o,a){return md(td(a),o)}function JA(){if(!arguments.length)return[];var o=arguments[0];return Ce(o)?o:[o]}function QA(o){return Pr(o,S)}function eT(o,a){return a=typeof a=="function"?a:r,Pr(o,S,a)}function tT(o){return Pr(o,h|S)}function rT(o,a){return a=typeof a=="function"?a:r,Pr(o,h|S,a)}function nT(o,a){return a==null||xg(o,a,Mt(a))}function qr(o,a){return o===a||o!==o&&a!==a}var iT=hl(Wu),oT=hl(function(o,a){return o>=a}),Ci=Ag((function(){return arguments})())?Ag:function(o){return bt(o)&&Ge.call(o,"callee")&&!pg.call(o,"callee")},Ce=ee.isArray,sT=Zh?gr(Zh):hO;function ir(o){return o!=null&&El(o.length)&&!In(o)}function yt(o){return bt(o)&&ir(o)}function aT(o){return o===!0||o===!1||bt(o)&&Jt(o)==ge}var ri=x_||Rd,lT=Kh?gr(Kh):gO;function cT(o){return bt(o)&&o.nodeType===1&&!vs(o)}function uT(o){if(o==null)return!0;if(ir(o)&&(Ce(o)||typeof o=="string"||typeof o.splice=="function"||ri(o)||ho(o)||Ci(o)))return!o.length;var a=Kt(o);if(a==Le||a==$t)return!o.size;if(hs(o))return!qu(o).length;for(var d in o)if(Ge.call(o,d))return!1;return!0}function dT(o,a){return ds(o,a)}function fT(o,a,d){d=typeof d=="function"?d:r;var E=d?d(o,a):r;return E===r?ds(o,a,r,d):!!E}function bd(o){if(!bt(o))return!1;var a=Jt(o);return a==J||a==xe||typeof o.message=="string"&&typeof o.name=="string"&&!vs(o)}function pT(o){return typeof o=="number"&&gg(o)}function In(o){if(!gt(o))return!1;var a=Jt(o);return a==Pe||a==ve||a==de||a==Et}function Dv(o){return typeof o=="number"&&o==Ie(o)}function El(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=pe}function gt(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function bt(o){return o!=null&&typeof o=="object"}var zv=Yh?gr(Yh):mO;function hT(o,a){return o===a||Vu(o,a,ld(a))}function gT(o,a,d){return d=typeof d=="function"?d:r,Vu(o,a,ld(a),d)}function vT(o){return Lv(o)&&o!=+o}function mT(o){if(ek(o))throw new Te(s);return Tg(o)}function bT(o){return o===null}function yT(o){return o==null}function Lv(o){return typeof o=="number"||bt(o)&&Jt(o)==qe}function vs(o){if(!bt(o)||Jt(o)!=dr)return!1;var a=Ya(o);if(a===null)return!0;var d=Ge.call(a,"constructor")&&a.constructor;return typeof d=="function"&&d instanceof d&&qa.call(d)==g_}var yd=Xh?gr(Xh):bO;function wT(o){return Dv(o)&&o>=-pe&&o<=pe}var $v=Jh?gr(Jh):yO;function _l(o){return typeof o=="string"||!Ce(o)&&bt(o)&&Jt(o)==It}function mr(o){return typeof o=="symbol"||bt(o)&&Jt(o)==Gt}var ho=Qh?gr(Qh):wO;function xT(o){return o===r}function ST(o){return bt(o)&&Kt(o)==en}function ET(o){return bt(o)&&Jt(o)==wi}var _T=hl(Gu),OT=hl(function(o,a){return o<=a});function jv(o){if(!o)return[];if(ir(o))return _l(o)?Wr(o):nr(o);if(ns&&o[ns])return n_(o[ns]());var a=Kt(o),d=a==Le?Mu:a==$t?Wa:go;return d(o)}function Nn(o){if(!o)return o===0?o:0;if(o=Mr(o),o===X||o===-X){var a=o<0?-1:1;return a*$}return o===o?o:0}function Ie(o){var a=Nn(o),d=a%1;return a===a?d?a-d:a:0}function Fv(o){return o?ki(Ie(o),0,te):0}function Mr(o){if(typeof o=="number")return o;if(mr(o))return G;if(gt(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=gt(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=og(o);var d=rn.test(o);return d||on.test(o)?FE(o.slice(2),d?2:8):Xt.test(o)?G:+o}function Hv(o){return ln(o,or(o))}function kT(o){return o?ki(Ie(o),-pe,pe):o===0?o:0}function Ze(o){return o==null?"":vr(o)}var AT=uo(function(o,a){if(hs(a)||ir(a)){ln(a,Mt(a),o);return}for(var d in a)Ge.call(a,d)&&ls(o,d,a[d])}),Bv=uo(function(o,a){ln(a,or(a),o)}),Wv=uo(function(o,a,d,E){ln(a,or(a),o,E)}),wd=uo(function(o,a,d,E){ln(a,Mt(a),o,E)}),TT=Cn(Fu);function RT(o,a){var d=co(o);return a==null?d:wg(d,a)}var CT=Me(function(o,a){o=st(o);var d=-1,E=a.length,k=E>2?a[2]:r;for(k&&Qt(a[0],a[1],k)&&(E=1);++d<E;)for(var C=a[d],D=or(C),H=-1,K=D.length;++H<K;){var oe=D[H],se=o[oe];(se===r||qr(se,so[oe])&&!Ge.call(o,oe))&&(o[oe]=C[oe])}return o}),PT=Me(function(o){return o.push(r,ov),pr(Uv,r,o)});function IT(o,a){return tg(o,Oe(a,3),an)}function NT(o,a){return tg(o,Oe(a,3),Bu)}function MT(o,a){return o==null?o:Hu(o,Oe(a,3),or)}function DT(o,a){return o==null?o:Og(o,Oe(a,3),or)}function zT(o,a){return o&&an(o,Oe(a,3))}function LT(o,a){return o&&Bu(o,Oe(a,3))}function $T(o){return o==null?[]:sl(o,Mt(o))}function jT(o){return o==null?[]:sl(o,or(o))}function xd(o,a,d){var E=o==null?r:Ai(o,a);return E===r?d:E}function FT(o,a){return o!=null&&lv(o,a,uO)}function Sd(o,a){return o!=null&&lv(o,a,dO)}var HT=ev(function(o,a,d){a!=null&&typeof a.toString!="function"&&(a=Ga.call(a)),o[a]=d},_d(sr)),BT=ev(function(o,a,d){a!=null&&typeof a.toString!="function"&&(a=Ga.call(a)),Ge.call(o,a)?o[a].push(d):o[a]=[d]},Oe),WT=Me(us);function Mt(o){return ir(o)?bg(o):qu(o)}function or(o){return ir(o)?bg(o,!0):xO(o)}function UT(o,a){var d={};return a=Oe(a,3),an(o,function(E,k,C){sn(d,a(E,k,C),E)}),d}function VT(o,a){var d={};return a=Oe(a,3),an(o,function(E,k,C){sn(d,k,a(E,k,C))}),d}var qT=uo(function(o,a,d){al(o,a,d)}),Uv=uo(function(o,a,d,E){al(o,a,d,E)}),GT=Cn(function(o,a){var d={};if(o==null)return d;var E=!1;a=ft(a,function(C){return C=ei(C,o),E||(E=C.length>1),C}),ln(o,sd(o),d),E&&(d=Pr(d,h|b|S,BO));for(var k=a.length;k--;)Ju(d,a[k]);return d});function ZT(o,a){return Vv(o,Sl(Oe(a)))}var KT=Cn(function(o,a){return o==null?{}:EO(o,a)});function Vv(o,a){if(o==null)return{};var d=ft(sd(o),function(E){return[E]});return a=Oe(a),Dg(o,d,function(E,k){return a(E,k[0])})}function YT(o,a,d){a=ei(a,o);var E=-1,k=a.length;for(k||(k=1,o=r);++E<k;){var C=o==null?r:o[Vr(a[E])];C===r&&(E=k,C=d),o=In(C)?C.call(o):C}return o}function XT(o,a,d){return o==null?o:fs(o,a,d)}function JT(o,a,d,E){return E=typeof E=="function"?E:r,o==null?o:fs(o,a,d,E)}var qv=nv(Mt),Gv=nv(or);function QT(o,a,d){var E=Ce(o),k=E||ri(o)||ho(o);if(a=Oe(a,4),d==null){var C=o&&o.constructor;k?d=E?new C:[]:gt(o)?d=In(C)?co(Ya(o)):{}:d={}}return(k?hr:an)(o,function(D,H,K){return a(d,D,H,K)}),d}function eR(o,a){return o==null?!0:Ju(o,a)}function tR(o,a,d){return o==null?o:Fg(o,a,td(d))}function rR(o,a,d,E){return E=typeof E=="function"?E:r,o==null?o:Fg(o,a,td(d),E)}function go(o){return o==null?[]:Nu(o,Mt(o))}function nR(o){return o==null?[]:Nu(o,or(o))}function iR(o,a,d){return d===r&&(d=a,a=r),d!==r&&(d=Mr(d),d=d===d?d:0),a!==r&&(a=Mr(a),a=a===a?a:0),ki(Mr(o),a,d)}function oR(o,a,d){return a=Nn(a),d===r?(d=a,a=0):d=Nn(d),o=Mr(o),fO(o,a,d)}function sR(o,a,d){if(d&&typeof d!="boolean"&&Qt(o,a,d)&&(a=d=r),d===r&&(typeof a=="boolean"?(d=a,a=r):typeof o=="boolean"&&(d=o,o=r)),o===r&&a===r?(o=0,a=1):(o=Nn(o),a===r?(a=o,o=0):a=Nn(a)),o>a){var E=o;o=a,a=E}if(d||o%1||a%1){var k=vg();return Zt(o+k*(a-o+jE("1e-"+((k+"").length-1))),a)}return Ku(o,a)}var aR=fo(function(o,a,d){return a=a.toLowerCase(),o+(d?Zv(a):a)});function Zv(o){return Ed(Ze(o).toLowerCase())}function Kv(o){return o=Ze(o),o&&o.replace(Qi,JE).replace(RE,"")}function lR(o,a,d){o=Ze(o),a=vr(a);var E=o.length;d=d===r?E:ki(Ie(d),0,E);var k=d;return d-=a.length,d>=0&&o.slice(d,k)==a}function cR(o){return o=Ze(o),o&&pu.test(o)?o.replace(qn,QE):o}function uR(o){return o=Ze(o),o&&vu.test(o)?o.replace(tn,"\\$&"):o}var dR=fo(function(o,a,d){return o+(d?"-":"")+a.toLowerCase()}),fR=fo(function(o,a,d){return o+(d?" ":"")+a.toLowerCase()}),pR=Xg("toLowerCase");function hR(o,a,d){o=Ze(o),a=Ie(a);var E=a?io(o):0;if(!a||E>=a)return o;var k=(a-E)/2;return pl(el(k),d)+o+pl(Qa(k),d)}function gR(o,a,d){o=Ze(o),a=Ie(a);var E=a?io(o):0;return a&&E<a?o+pl(a-E,d):o}function vR(o,a,d){o=Ze(o),a=Ie(a);var E=a?io(o):0;return a&&E<a?pl(a-E,d)+o:o}function mR(o,a,d){return d||a==null?a=0:a&&(a=+a),O_(Ze(o).replace(On,""),a||0)}function bR(o,a,d){return(d?Qt(o,a,d):a===r)?a=1:a=Ie(a),Yu(Ze(o),a)}function yR(){var o=arguments,a=Ze(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var wR=fo(function(o,a,d){return o+(d?"_":"")+a.toLowerCase()});function xR(o,a,d){return d&&typeof d!="number"&&Qt(o,a,d)&&(a=d=r),d=d===r?te:d>>>0,d?(o=Ze(o),o&&(typeof a=="string"||a!=null&&!yd(a))&&(a=vr(a),!a&&no(o))?ti(Wr(o),0,d):o.split(a,d)):[]}var SR=fo(function(o,a,d){return o+(d?" ":"")+Ed(a)});function ER(o,a,d){return o=Ze(o),d=d==null?0:ki(Ie(d),0,o.length),a=vr(a),o.slice(d,d+a.length)==a}function _R(o,a,d){var E=T.templateSettings;d&&Qt(o,a,d)&&(a=r),o=Ze(o),a=wd({},a,E,iv);var k=wd({},a.imports,E.imports,iv),C=Mt(k),D=Nu(k,C);hr(C,function(_e){if($a.test(_e))throw new Te(u)});var H,K,oe=0,se=a.interpolate||eo,ue="__p += '",me=Du((a.escape||eo).source+"|"+se.source+"|"+(se===Xi?jt:eo).source+"|"+(a.evaluate||eo).source+"|$","g"),Se="//# sourceURL="+(Ge.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ME+"]")+`
|
|
235
|
+
`;o.replace(me,function(_e,ze,je,br,er,yr){return je||(je=br),ue+=o.slice(oe,yr).replace(bu,e_),ze&&(H=!0,ue+=`' +
|
|
236
|
+
__e(`+ze+`) +
|
|
237
|
+
'`),er&&(K=!0,ue+=`';
|
|
238
|
+
`+er+`;
|
|
239
|
+
__p += '`),je&&(ue+=`' +
|
|
240
|
+
((__t = (`+je+`)) == null ? '' : __t) +
|
|
241
|
+
'`),oe=yr+_e.length,_e}),ue+=`';
|
|
242
|
+
`;var ke=Ge.call(a,"variable")&&a.variable;if(!ke)ue=`with (obj) {
|
|
243
|
+
`+ue+`
|
|
194
244
|
}
|
|
195
|
-
`;else if(
|
|
196
|
-
`+(
|
|
197
|
-
`)+"var __t, __p = ''"+(
|
|
245
|
+
`;else if($a.test(ke))throw new Te(c);ue=(K?ue.replace(Ia,""):ue).replace(Na,"$1").replace(Ma,"$1;"),ue="function("+(ke||"obj")+`) {
|
|
246
|
+
`+(ke?"":`obj || (obj = {});
|
|
247
|
+
`)+"var __t, __p = ''"+(H?", __e = _.escape":"")+(K?`, __j = Array.prototype.join;
|
|
198
248
|
function print() { __p += __j.call(arguments, '') }
|
|
199
249
|
`:`;
|
|
200
|
-
`)+
|
|
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:
|
|
202
|
-
`+r.map(function(i
|
|
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;
|
|
250
|
+
`)+ue+`return __p
|
|
251
|
+
}`;var Ne=Xv(function(){return We(C,Se+"return "+ue).apply(r,D)});if(Ne.source=ue,bd(Ne))throw Ne;return Ne}function OR(o){return Ze(o).toLowerCase()}function kR(o){return Ze(o).toUpperCase()}function AR(o,a,d){if(o=Ze(o),o&&(d||a===r))return og(o);if(!o||!(a=vr(a)))return o;var E=Wr(o),k=Wr(a),C=sg(E,k),D=ag(E,k)+1;return ti(E,C,D).join("")}function TR(o,a,d){if(o=Ze(o),o&&(d||a===r))return o.slice(0,cg(o)+1);if(!o||!(a=vr(a)))return o;var E=Wr(o),k=ag(E,Wr(a))+1;return ti(E,0,k).join("")}function RR(o,a,d){if(o=Ze(o),o&&(d||a===r))return o.replace(On,"");if(!o||!(a=vr(a)))return o;var E=Wr(o),k=sg(E,Wr(a));return ti(E,k).join("")}function CR(o,a){var d=L,E=M;if(gt(a)){var k="separator"in a?a.separator:k;d="length"in a?Ie(a.length):d,E="omission"in a?vr(a.omission):E}o=Ze(o);var C=o.length;if(no(o)){var D=Wr(o);C=D.length}if(d>=C)return o;var H=d-io(E);if(H<1)return E;var K=D?ti(D,0,H).join(""):o.slice(0,H);if(k===r)return K+E;if(D&&(H+=K.length-H),yd(k)){if(o.slice(H).search(k)){var oe,se=K;for(k.global||(k=Du(k.source,Ze(kn.exec(k))+"g")),k.lastIndex=0;oe=k.exec(se);)var ue=oe.index;K=K.slice(0,ue===r?H:ue)}}else if(o.indexOf(vr(k),H)!=H){var me=K.lastIndexOf(k);me>-1&&(K=K.slice(0,me))}return K+E}function PR(o){return o=Ze(o),o&&es.test(o)?o.replace(Qo,a_):o}var IR=fo(function(o,a,d){return o+(d?" ":"")+a.toUpperCase()}),Ed=Xg("toUpperCase");function Yv(o,a,d){return o=Ze(o),a=d?r:a,a===r?r_(o)?u_(o):GE(o):o.match(a)||[]}var Xv=Me(function(o,a){try{return pr(o,r,a)}catch(d){return bd(d)?d:new Te(d)}}),NR=Cn(function(o,a){return hr(a,function(d){d=Vr(d),sn(o,d,vd(o[d],o))}),o});function MR(o){var a=o==null?0:o.length,d=Oe();return o=a?ft(o,function(E){if(typeof E[1]!="function")throw new Rr(l);return[d(E[0]),E[1]]}):[],Me(function(E){for(var k=-1;++k<a;){var C=o[k];if(pr(C[0],this,E))return pr(C[1],this,E)}})}function DR(o){return aO(Pr(o,h))}function _d(o){return function(){return o}}function zR(o,a){return o==null||o!==o?a:o}var LR=Qg(),$R=Qg(!0);function sr(o){return o}function Od(o){return Rg(typeof o=="function"?o:Pr(o,h))}function jR(o){return Pg(Pr(o,h))}function FR(o,a){return Ig(o,Pr(a,h))}var HR=Me(function(o,a){return function(d){return us(d,o,a)}}),BR=Me(function(o,a){return function(d){return us(o,d,a)}});function kd(o,a,d){var E=Mt(a),k=sl(a,E);d==null&&!(gt(a)&&(k.length||!E.length))&&(d=a,a=o,o=this,k=sl(a,Mt(a)));var C=!(gt(d)&&"chain"in d)||!!d.chain,D=In(o);return hr(k,function(H){var K=a[H];o[H]=K,D&&(o.prototype[H]=function(){var oe=this.__chain__;if(C||oe){var se=o(this.__wrapped__),ue=se.__actions__=nr(this.__actions__);return ue.push({func:K,args:arguments,thisArg:o}),se.__chain__=oe,se}return K.apply(o,Kn([this.value()],arguments))})}),o}function WR(){return Ft._===this&&(Ft._=v_),this}function Ad(){}function UR(o){return o=Ie(o),Me(function(a){return Ng(a,o)})}var VR=nd(ft),qR=nd(eg),GR=nd(Tu);function Jv(o){return ud(o)?Ru(Vr(o)):_O(o)}function ZR(o){return function(a){return o==null?r:Ai(o,a)}}var KR=tv(),YR=tv(!0);function Td(){return[]}function Rd(){return!1}function XR(){return{}}function JR(){return""}function QR(){return!0}function eC(o,a){if(o=Ie(o),o<1||o>pe)return[];var d=te,E=Zt(o,te);a=Oe(a),o-=te;for(var k=Iu(E,a);++d<o;)a(d);return k}function tC(o){return Ce(o)?ft(o,Vr):mr(o)?[o]:nr(mv(Ze(o)))}function rC(o){var a=++h_;return Ze(o)+a}var nC=fl(function(o,a){return o+a},0),iC=id("ceil"),oC=fl(function(o,a){return o/a},1),sC=id("floor");function aC(o){return o&&o.length?ol(o,sr,Wu):r}function lC(o,a){return o&&o.length?ol(o,Oe(a,2),Wu):r}function cC(o){return ng(o,sr)}function uC(o,a){return ng(o,Oe(a,2))}function dC(o){return o&&o.length?ol(o,sr,Gu):r}function fC(o,a){return o&&o.length?ol(o,Oe(a,2),Gu):r}var pC=fl(function(o,a){return o*a},1),hC=id("round"),gC=fl(function(o,a){return o-a},0);function vC(o){return o&&o.length?Pu(o,sr):0}function mC(o,a){return o&&o.length?Pu(o,Oe(a,2)):0}return T.after=FA,T.ary=Tv,T.assign=AT,T.assignIn=Bv,T.assignInWith=Wv,T.assignWith=wd,T.at=TT,T.before=Rv,T.bind=vd,T.bindAll=NR,T.bindKey=Cv,T.castArray=JA,T.chain=Ov,T.chunk=ak,T.compact=lk,T.concat=ck,T.cond=MR,T.conforms=DR,T.constant=_d,T.countBy=mA,T.create=RT,T.curry=Pv,T.curryRight=Iv,T.debounce=Nv,T.defaults=CT,T.defaultsDeep=PT,T.defer=HA,T.delay=BA,T.difference=uk,T.differenceBy=dk,T.differenceWith=fk,T.drop=pk,T.dropRight=hk,T.dropRightWhile=gk,T.dropWhile=vk,T.fill=mk,T.filter=yA,T.flatMap=SA,T.flatMapDeep=EA,T.flatMapDepth=_A,T.flatten=xv,T.flattenDeep=bk,T.flattenDepth=yk,T.flip=WA,T.flow=LR,T.flowRight=$R,T.fromPairs=wk,T.functions=$T,T.functionsIn=jT,T.groupBy=OA,T.initial=Sk,T.intersection=Ek,T.intersectionBy=_k,T.intersectionWith=Ok,T.invert=HT,T.invertBy=BT,T.invokeMap=AA,T.iteratee=Od,T.keyBy=TA,T.keys=Mt,T.keysIn=or,T.map=yl,T.mapKeys=UT,T.mapValues=VT,T.matches=jR,T.matchesProperty=FR,T.memoize=xl,T.merge=qT,T.mergeWith=Uv,T.method=HR,T.methodOf=BR,T.mixin=kd,T.negate=Sl,T.nthArg=UR,T.omit=GT,T.omitBy=ZT,T.once=UA,T.orderBy=RA,T.over=VR,T.overArgs=VA,T.overEvery=qR,T.overSome=GR,T.partial=md,T.partialRight=Mv,T.partition=CA,T.pick=KT,T.pickBy=Vv,T.property=Jv,T.propertyOf=ZR,T.pull=Rk,T.pullAll=Ev,T.pullAllBy=Ck,T.pullAllWith=Pk,T.pullAt=Ik,T.range=KR,T.rangeRight=YR,T.rearg=qA,T.reject=NA,T.remove=Nk,T.rest=GA,T.reverse=hd,T.sampleSize=DA,T.set=XT,T.setWith=JT,T.shuffle=zA,T.slice=Mk,T.sortBy=jA,T.sortedUniq=Hk,T.sortedUniqBy=Bk,T.split=xR,T.spread=ZA,T.tail=Wk,T.take=Uk,T.takeRight=Vk,T.takeRightWhile=qk,T.takeWhile=Gk,T.tap=lA,T.throttle=KA,T.thru=bl,T.toArray=jv,T.toPairs=qv,T.toPairsIn=Gv,T.toPath=tC,T.toPlainObject=Hv,T.transform=QT,T.unary=YA,T.union=Zk,T.unionBy=Kk,T.unionWith=Yk,T.uniq=Xk,T.uniqBy=Jk,T.uniqWith=Qk,T.unset=eR,T.unzip=gd,T.unzipWith=_v,T.update=tR,T.updateWith=rR,T.values=go,T.valuesIn=nR,T.without=eA,T.words=Yv,T.wrap=XA,T.xor=tA,T.xorBy=rA,T.xorWith=nA,T.zip=iA,T.zipObject=oA,T.zipObjectDeep=sA,T.zipWith=aA,T.entries=qv,T.entriesIn=Gv,T.extend=Bv,T.extendWith=Wv,kd(T,T),T.add=nC,T.attempt=Xv,T.camelCase=aR,T.capitalize=Zv,T.ceil=iC,T.clamp=iR,T.clone=QA,T.cloneDeep=tT,T.cloneDeepWith=rT,T.cloneWith=eT,T.conformsTo=nT,T.deburr=Kv,T.defaultTo=zR,T.divide=oC,T.endsWith=lR,T.eq=qr,T.escape=cR,T.escapeRegExp=uR,T.every=bA,T.find=wA,T.findIndex=yv,T.findKey=IT,T.findLast=xA,T.findLastIndex=wv,T.findLastKey=NT,T.floor=sC,T.forEach=kv,T.forEachRight=Av,T.forIn=MT,T.forInRight=DT,T.forOwn=zT,T.forOwnRight=LT,T.get=xd,T.gt=iT,T.gte=oT,T.has=FT,T.hasIn=Sd,T.head=Sv,T.identity=sr,T.includes=kA,T.indexOf=xk,T.inRange=oR,T.invoke=WT,T.isArguments=Ci,T.isArray=Ce,T.isArrayBuffer=sT,T.isArrayLike=ir,T.isArrayLikeObject=yt,T.isBoolean=aT,T.isBuffer=ri,T.isDate=lT,T.isElement=cT,T.isEmpty=uT,T.isEqual=dT,T.isEqualWith=fT,T.isError=bd,T.isFinite=pT,T.isFunction=In,T.isInteger=Dv,T.isLength=El,T.isMap=zv,T.isMatch=hT,T.isMatchWith=gT,T.isNaN=vT,T.isNative=mT,T.isNil=yT,T.isNull=bT,T.isNumber=Lv,T.isObject=gt,T.isObjectLike=bt,T.isPlainObject=vs,T.isRegExp=yd,T.isSafeInteger=wT,T.isSet=$v,T.isString=_l,T.isSymbol=mr,T.isTypedArray=ho,T.isUndefined=xT,T.isWeakMap=ST,T.isWeakSet=ET,T.join=kk,T.kebabCase=dR,T.last=Nr,T.lastIndexOf=Ak,T.lowerCase=fR,T.lowerFirst=pR,T.lt=_T,T.lte=OT,T.max=aC,T.maxBy=lC,T.mean=cC,T.meanBy=uC,T.min=dC,T.minBy=fC,T.stubArray=Td,T.stubFalse=Rd,T.stubObject=XR,T.stubString=JR,T.stubTrue=QR,T.multiply=pC,T.nth=Tk,T.noConflict=WR,T.noop=Ad,T.now=wl,T.pad=hR,T.padEnd=gR,T.padStart=vR,T.parseInt=mR,T.random=sR,T.reduce=PA,T.reduceRight=IA,T.repeat=bR,T.replace=yR,T.result=YT,T.round=hC,T.runInContext=q,T.sample=MA,T.size=LA,T.snakeCase=wR,T.some=$A,T.sortedIndex=Dk,T.sortedIndexBy=zk,T.sortedIndexOf=Lk,T.sortedLastIndex=$k,T.sortedLastIndexBy=jk,T.sortedLastIndexOf=Fk,T.startCase=SR,T.startsWith=ER,T.subtract=gC,T.sum=vC,T.sumBy=mC,T.template=_R,T.times=eC,T.toFinite=Nn,T.toInteger=Ie,T.toLength=Fv,T.toLower=OR,T.toNumber=Mr,T.toSafeInteger=kT,T.toString=Ze,T.toUpper=kR,T.trim=AR,T.trimEnd=TR,T.trimStart=RR,T.truncate=CR,T.unescape=PR,T.uniqueId=rC,T.upperCase=IR,T.upperFirst=Ed,T.each=kv,T.eachRight=Av,T.first=Sv,kd(T,(function(){var o={};return an(T,function(a,d){Ge.call(T.prototype,d)||(o[d]=a)}),o})(),{chain:!1}),T.VERSION=n,hr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){T[o].placeholder=T}),hr(["drop","take"],function(o,a){$e.prototype[o]=function(d){d=d===r?1:Rt(Ie(d),0);var E=this.__filtered__&&!a?new $e(this):this.clone();return E.__filtered__?E.__takeCount__=Zt(d,E.__takeCount__):E.__views__.push({size:Zt(d,te),type:o+(E.__dir__<0?"Right":"")}),E},$e.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),hr(["filter","map","takeWhile"],function(o,a){var d=a+1,E=d==I||d==Z;$e.prototype[o]=function(k){var C=this.clone();return C.__iteratees__.push({iteratee:Oe(k,3),type:d}),C.__filtered__=C.__filtered__||E,C}}),hr(["head","last"],function(o,a){var d="take"+(a?"Right":"");$e.prototype[o]=function(){return this[d](1).value()[0]}}),hr(["initial","tail"],function(o,a){var d="drop"+(a?"":"Right");$e.prototype[o]=function(){return this.__filtered__?new $e(this):this[d](1)}}),$e.prototype.compact=function(){return this.filter(sr)},$e.prototype.find=function(o){return this.filter(o).head()},$e.prototype.findLast=function(o){return this.reverse().find(o)},$e.prototype.invokeMap=Me(function(o,a){return typeof o=="function"?new $e(this):this.map(function(d){return us(d,o,a)})}),$e.prototype.reject=function(o){return this.filter(Sl(Oe(o)))},$e.prototype.slice=function(o,a){o=Ie(o);var d=this;return d.__filtered__&&(o>0||a<0)?new $e(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),a!==r&&(a=Ie(a),d=a<0?d.dropRight(-a):d.take(a-o)),d)},$e.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},$e.prototype.toArray=function(){return this.take(te)},an($e.prototype,function(o,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),E=/^(?:head|last)$/.test(a),k=T[E?"take"+(a=="last"?"Right":""):a],C=E||/^find/.test(a);k&&(T.prototype[a]=function(){var D=this.__wrapped__,H=E?[1]:arguments,K=D instanceof $e,oe=H[0],se=K||Ce(D),ue=function(ze){var je=k.apply(T,Kn([ze],H));return E&&me?je[0]:je};se&&d&&typeof oe=="function"&&oe.length!=1&&(K=se=!1);var me=this.__chain__,Se=!!this.__actions__.length,ke=C&&!me,Ne=K&&!Se;if(!C&&se){D=Ne?D:new $e(this);var _e=o.apply(D,H);return _e.__actions__.push({func:bl,args:[ue],thisArg:r}),new Cr(_e,me)}return ke&&Ne?o.apply(this,H):(_e=this.thru(ue),ke?E?_e.value()[0]:_e.value():_e)})}),hr(["pop","push","shift","sort","splice","unshift"],function(o){var a=Ua[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",E=/^(?:pop|shift)$/.test(o);T.prototype[o]=function(){var k=arguments;if(E&&!this.__chain__){var C=this.value();return a.apply(Ce(C)?C:[],k)}return this[d](function(D){return a.apply(Ce(D)?D:[],k)})}}),an($e.prototype,function(o,a){var d=T[a];if(d){var E=d.name+"";Ge.call(lo,E)||(lo[E]=[]),lo[E].push({name:a,func:d})}}),lo[dl(r,w).name]=[{name:"wrapper",func:r}],$e.prototype.clone=I_,$e.prototype.reverse=N_,$e.prototype.value=M_,T.prototype.at=cA,T.prototype.chain=uA,T.prototype.commit=dA,T.prototype.next=fA,T.prototype.plant=hA,T.prototype.reverse=gA,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=vA,T.prototype.first=T.prototype.head,ns&&(T.prototype[ns]=pA),T}),oo=d_();Si?((Si.exports=oo)._=oo,_u._=oo):Ft._=oo}).call(W4)})(Ys,Ys.exports)),Ys.exports}var He=U4();const tp={FdSave:U2,FdWarningDanger:Op,FdInfoCircle:L2,FdInfoBold:Lf};var eh=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(eh||{}),Io=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Io||{}),To=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(To||{});const V4={[Io.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Io.DANGER]:{icon:"red-500",button:"primary-dark"},[Io.WARNING]:{icon:"yellow-400",button:"primary-dark"}},q4=({name:e,color:t=Io.PRIMARY,className:r="w-8 h-8"})=>{const n=tp[e]||tp.FdInfoCircle,i=`text-${V4[t].icon}`;return A.jsx(n,{className:ct(r,i)})},G4=({id:e,title:t,message:r,icon:n,type:i,color:s,zIndex:l=3e3,views:c,width:u=520,hasOverlay:f=!0,container:g,onClose:p,onEdit:h})=>{const b=y=>{p({id:e,reason:y})};N.useEffect(()=>{function y(m){m.key==="Escape"&&b(To.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const S=He.merge(He.values(c==null?void 0:c.toggles).flatMap(y=>y.value?y.warnings||[]:[]),c==null?void 0:c.tips),v=(y,m)=>{var x;if(!(c!=null&&c.toggles))return;const w=He.cloneDeep(c);(x=w.toggles)!=null&&x[y]&&(w.toggles[y].value=m),h({id:e,views:w})};return En.createPortal(A.jsx($c,{appear:!0,show:!0,as:N.Fragment,children:A.jsx("div",{className:ct("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":f}),style:{zIndex:l},onClick:()=>b(To.CANCELED),children:A.jsx($c.Child,{as:N.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:A.jsx(qi,{depth:3,borderType:"light","data-cy":"confirmation-modal-cy",className:"relative rounded-md border",style:{width:u},onClick:y=>y.stopPropagation(),children:A.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[n?A.jsx("div",{className:"flex items-center justify-center",children:A.jsx(q4,{name:n,color:s,className:"w-6 h-6"})}):null,A.jsx(Z4,{condition:t,children:A.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-center",children:t})}),A.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium",children:r}),A.jsx("div",{className:"text-xs",children:He.values(c==null?void 0:c.toggles).map(y=>A.jsx("div",{children:A.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[A.jsx(Nw,{size:"sm",checked:y.value,onChange:m=>v(y.key,m)}),A.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),A.jsx(K4,{warnings:S}),A.jsx("div",{className:"flex items-center gap-4",children:i===eh.CONFIRM?A.jsxs(A.Fragment,{children:[A.jsx(Bn,{autoFocus:!0,color:"primary",onClick:()=>b(To.CONFIRMED),children:"Confirm"}),A.jsx(Bn,{color:"white",variant:"outline",onClick:()=>b(To.CANCELED),children:"Cancel"})]}):A.jsx(Bn,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),g||document.body)},Z4=e=>e.condition?A.jsx(A.Fragment,{children:e.children}):null,K4=e=>e.warnings?A.jsx($c,{appear:!0,show:!!e.warnings.length,as:N.Fragment,children:A.jsx(qi,{depth:1,className:"flex flex-col gap-1 rounded-sm p-2 text-xs",children:e.warnings.map((t,r)=>A.jsx($c.Child,{as:N.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:A.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[A.jsx(Op,{className:ct({"h-3 w-3":!0,"text-warning-text":t.type==="warning","text-negative-text":t.type==="error","text-primary":t.type==="info"},"mr-3")}),A.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var I1=(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))(I1||{});const Y4=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:n,handleZoomOut:i})=>A.jsxs(qi,{depth:4,className:"flex items-center rounded p-1",children:[A.jsx($2,{onClick:i,className:ct("h-5 w-5 p-1",{"text-inactive-text":e<=t,"cursor-pointer rounded hover:bg-primary-hover":e>t})}),A.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),A.jsx(j2,{onClick:n,className:ct("h-5 w-5 p-1",{"text-inactive-text":e>=r,"cursor-pointer rounded hover:bg-primary-hover":e<r})})]}),hn=30,N1=.3,M1=.6,X4=()=>typeof window>"u"?400:Math.round(window.innerHeight*N1),D1=()=>typeof window>"u"?600:Math.round(window.innerHeight*M1),sy=e=>{const t=D1();return Math.min(Math.max(e,hn),t)},J4=e=>{const[t,r]=N.useState(hn),n=N.useRef(),i=N.useRef(null),s=D1(),l=X4(),c=t>hn;N.useEffect(()=>{r(e.isOpen?l:hn)},[e.isOpen,l]),N.useEffect(()=>{const f=()=>{r(g=>g<=hn?hn:sy(g))};return window.addEventListener("resize",f),()=>{window.removeEventListener("resize",f),i.current&&cancelAnimationFrame(i.current)}},[]);const u=()=>{if(c){r(hn),e.onClose();return}r(l),e.onOpen()};return A.jsx(Pw,{enable:{top:!0},className:"relative w-full select-none border-t isolate",style:{zIndex:49},size:{height:t,width:"100%"},maxHeight:s,minHeight:hn,onResizeStart:()=>{n.current&&Date.now()-n.current<200?r(c?hn:l):n.current=Date.now()},onResize:(f,g,p)=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{var h;(h=e.onResize)==null||h.call(e),i.current=null})},onResizeStop:(f,g,p,h)=>{r(b=>sy(b+h.height))},handleComponent:{top:A.jsx(Iw,{})},depth:1,children:A.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${He.kebabCase(e.path)}`,children:[A.jsxs("div",{className:ct("flex justify-between items-center px-3 py-0.5",{"flex-1":!c}),children:[A.jsxs("div",{className:"group flex items-center justify-start",children:[A.jsx("span",{className:"mr-2 text-sm",children:"Contextual panel"}),e.tipKey?A.jsx(a1,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,A.jsx(Bn,{variant:"ghost",color:"white","data-cy":`contextualPanel-toggle-button-${c?"close":"open"}`,onClick:u,children:c?A.jsx(D2,{className:"h-4 w-4"}):A.jsx(z2,{className:"h-4 w-4"})})]}),e.headerRightSide]}),A.jsxs(mc,{of:c,children:[A.jsx(mc,{of:e.render,children:e.render}),A.jsx(mc,{of:!e.render,children:e.children})]})]})})},Q4=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:n,onReset:i,resetButtonLabel:s="Reset Page"})=>A.jsx("div",{className:"flex h-full w-full items-center justify-center",children:A.jsxs(qi,{depth:4,borderType:"light",className:"flex flex-col items-center rounded px-10 py-6 text-center shadow-md",children:[A.jsxs("div",{className:"relative",children:[A.jsx(B2,{className:"relative z-20 h-12 w-12 text-negative-text rounded-full"}),A.jsx("div",{className:"size-full absolute inset-0 rounded-full z-0 bg-white"})]}),A.jsx("p",{className:"mb-2 mt-4 text-2xl text-body",children:e}),A.jsx("p",{className:"text-md mb-4 font-extralight text-muted",children:t}),A.jsxs("div",{className:"flex gap-4",children:[n&&A.jsx(Bn,{onClick:n,children:"Open in Text Editor"}),i&&A.jsx(Bn,{color:"negative",onClick:i,children:"Reset Page"}),r&&A.jsx(Bn,{color:"white",variant:"outline",onClick:r,children:"Close"})]})]})}),eL=({onChange:e,value:t,delay:r,placeholder:n,containerClassName:i,onFocusInput:s,icon:l,"data-cy":c})=>{const[u,f]=N.useState(t),g=N.useRef(null);return A.jsx(xs.Root,{className:ct("w-full",i),children:A.jsxs(xs.Group,{children:[A.jsx(xs.Icon,{children:l?A.jsx("button",{className:"mr-1 flex h-6 w-7 items-center justify-center text-xs rounded bg-grey-300 hover:bg-primary-hover",onClick:()=>{var p;return(p=g.current)==null?void 0:p.focus()},children:A.jsx("span",{className:`text-base fa ${l}`})}):A.jsx(V2,{})}),A.jsx(xs.Field,{ref:g,"data-cy":c||"search-cy",placeholder:n||"Search",onChange:p=>{f(p.currentTarget.value);const h=He.escapeRegExp(p.target.value);if(!r)return e(h);He.debounce(e,r)(h)},value:u,onFocus:()=>s&&s(),onDrop:p=>p.preventDefault()}),t&&A.jsx(xs.Icon,{isAction:!0,onClick:()=>{e(""),f("")},children:A.jsx(Bo,{})})]})})},tL=N.forwardRef(({label:e,Icon:t,className:r="",disableHover:n=!1,iconClassname:i,...s},l)=>A.jsx(A.Fragment,{children:A.jsx(Aw,{label:e,children:A.jsx(Bn,{ref:l,variant:"ghost",color:"white",...s,children:A.jsx(t,{className:ct(i)})})})}));function Ro(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function rL({rowGap:e,columnGap:t,templateColumns:r,templateRows:n,height:i,width:s,style:l,...c}){return A.jsx("div",{...c,style:{display:"grid",rowGap:Ro(e),columnGap:Ro(t),gridTemplateColumns:r,gridTemplateRows:n,height:Ro(i),width:Ro(s),...l}})}function nL({colStart:e,colSpan:t,rowStart:r,rowSpan:n,sx:i,style:s,...l}){return A.jsx("div",{...l,style:{gridColumnStart:e,gridColumnEnd:t?`span ${t}`:void 0,gridRowStart:r,gridRowEnd:n?`span ${n}`:void 0,...i,...s}})}function iL({columns:e=1,spacingX:t,spacingY:r,style:n,...i}){return A.jsx("div",{...i,style:{display:"grid",gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`,columnGap:Ro(t),rowGap:Ro(r),...n}})}const z1=N.forwardRef(({fallback:e=null,onError:t,onLoad:r,src:n,style:i,...s},l)=>{const[c,u]=N.useState(!1);return N.useEffect(()=>{u(!1)},[n]),!n||c?A.jsx(A.Fragment,{children:e}):A.jsx("img",{...s,ref:l,src:n,style:i,onLoad:f=>{u(!1),r==null||r(f)},onError:f=>{u(!0),t==null||t(f)}})});z1.displayName="Image";function oL(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Sf=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ef(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),r)}function qs(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on".concat(t),r)}function L1(e,t){const r=t.slice(0,t.length-1);for(let n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function $1(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 sL(e,t){const r=e.length>=t.length?e:t,n=e.length>=t.length?t:e;let i=!0;for(let s=0;s<r.length;s++)n.indexOf(r[s])===-1&&(i=!1);return i}const ga={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,"-":Sf?173:189,"=":Sf?61:187,";":Sf?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Qr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Xs={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Ut={16:!1,18:!1,17:!1,91:!1},mt={};for(let e=1;e<20;e++)ga["f".concat(e)]=111+e;let ht=[],aa=null,j1="all";const $n=new Map,Go=e=>ga[e.toLowerCase()]||Qr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),aL=e=>Object.keys(ga).find(t=>ga[t]===e),lL=e=>Object.keys(Qr).find(t=>Qr[t]===e);function F1(e){j1=e||"all"}function va(){return j1||"all"}function cL(){return ht.slice(0)}function uL(){return ht.map(e=>aL(e)||lL(e)||String.fromCharCode(e))}function dL(){const e=[];return Object.keys(mt).forEach(t=>{mt[t].forEach(r=>{let{key:n,scope:i,mods:s,shortcut:l}=r;e.push({scope:i,shortcut:l,mods:s,keys:n.split("+").map(c=>Go(c))})})}),e}function fL(e){const t=e.target||e.srcElement,{tagName:r}=t;let n=!0;const i=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(i||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(n=!1),n}function pL(e){return typeof e=="string"&&(e=Go(e)),ht.indexOf(e)!==-1}function hL(e,t){let r,n;e||(e=va());for(const i in mt)if(Object.prototype.hasOwnProperty.call(mt,i))for(r=mt[i],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(l=>{let{element:c}=l;return th(c)}):n++;va()===e&&F1(t||"all")}function gL(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Go(e.key));const r=ht.indexOf(t);if(r>=0&&ht.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&ht.splice(0,ht.length),(t===93||t===224)&&(t=91),t in Ut){Ut[t]=!1;for(const n in Qr)Qr[n]===t&&(Xr[n]=!1)}}function H1(e){if(typeof e>"u")Object.keys(mt).forEach(i=>{Array.isArray(mt[i])&&mt[i].forEach(s=>tc(s)),delete mt[i]}),th(null);else if(Array.isArray(e))e.forEach(i=>{i.key&&tc(i)});else if(typeof e=="object")e.key&&tc(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let[i,s]=r;typeof i=="function"&&(s=i,i=""),tc({key:e,scope:i,method:s,splitKey:"+"})}}const tc=e=>{let{key:t,scope:r,method:n,splitKey:i="+"}=e;$1(t).forEach(l=>{const c=l.split(i),u=c.length,f=c[u-1],g=f==="*"?"*":Go(f);if(!mt[g])return;r||(r=va());const p=u>1?L1(Qr,c):[],h=[];mt[g]=mt[g].filter(b=>{const v=(n?b.method===n:!0)&&b.scope===r&&sL(b.mods,p);return v&&h.push(b.element),!v}),h.forEach(b=>th(b))})};function ay(e,t,r,n){if(t.element!==n)return;let i;if(t.scope===r||t.scope==="all"){i=t.mods.length>0;for(const s in Ut)Object.prototype.hasOwnProperty.call(Ut,s)&&(!Ut[s]&&t.mods.indexOf(+s)>-1||Ut[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!Ut[16]&&!Ut[18]&&!Ut[17]&&!Ut[91]||i||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ht),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function ly(e,t){const r=mt["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!Xr.filter.call(this,e))return;if((n===93||n===224)&&(n=91),ht.indexOf(n)===-1&&n!==229&&ht.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const u=Xs[c];e[c]&&ht.indexOf(u)===-1?ht.push(u):!e[c]&&ht.indexOf(u)>-1?ht.splice(ht.indexOf(u),1):c==="metaKey"&&e[c]&&(ht=ht.filter(f=>f in Xs||f===n))}),n in Ut){Ut[n]=!0;for(const c in Qr)if(Object.prototype.hasOwnProperty.call(Qr,c)){const u=Xs[Qr[c]];Xr[c]=e[u]}if(!r)return}for(const c in Ut)Object.prototype.hasOwnProperty.call(Ut,c)&&(Ut[c]=e[Xs[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ht.indexOf(17)===-1&&ht.push(17),ht.indexOf(18)===-1&&ht.push(18),Ut[17]=!0,Ut[18]=!0);const i=va();if(r)for(let c=0;c<r.length;c++)r[c].scope===i&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&ay(e,r[c],i,t);if(!(n in mt))return;const s=mt[n],l=s.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&s[c].keydown||e.type==="keyup"&&s[c].keyup)&&s[c].key){const u=s[c],{splitKey:f}=u,g=u.key.split(f),p=[];for(let h=0;h<g.length;h++)p.push(Go(g[h]));p.sort().join("")===ht.sort().join("")&&ay(e,u,i,t)}}function Xr(e,t,r){ht=[];const n=$1(e);let i=[],s="all",l=document,c=0,u=!1,f=!0,g="+",p=!1,h=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(f=t.keydown),t.capture!==void 0&&(p=t.capture),typeof t.splitKey=="string"&&(g=t.splitKey),t.single===!0&&(h=!0)),typeof t=="string"&&(s=t),h&&H1(e,s);c<n.length;c++)e=n[c].split(g),i=[],e.length>1&&(i=L1(Qr,e)),e=e[e.length-1],e=e==="*"?"*":Go(e),e in mt||(mt[e]=[]),mt[e].push({keyup:u,keydown:f,scope:s,mods:i,shortcut:n[c],method:r,key:n[c],splitKey:g,element:l});if(typeof l<"u"&&window){if(!$n.has(l)){const b=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return ly(v,l)},S=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;ly(v,l),gL(v)};$n.set(l,{keydownListener:b,keyupListenr:S,capture:p}),Ef(l,"keydown",b,p),Ef(l,"keyup",S,p)}if(!aa){const b=()=>{ht=[]};aa={listener:b,capture:p},Ef(window,"focus",b,p)}}}function vL(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(mt).forEach(r=>{mt[r].filter(i=>i.scope===t&&i.shortcut===e).forEach(i=>{i&&i.method&&i.method()})})}function th(e){const t=Object.values(mt).flat();if(t.findIndex(n=>{let{element:i}=n;return i===e})<0){const{keydownListener:n,keyupListenr:i,capture:s}=$n.get(e)||{};n&&i&&(qs(e,"keyup",i,s),qs(e,"keydown",n,s),$n.delete(e))}if((t.length<=0||$n.size<=0)&&(Object.keys($n).forEach(i=>{const{keydownListener:s,keyupListenr:l,capture:c}=$n.get(i)||{};s&&l&&(qs(i,"keyup",l,c),qs(i,"keydown",s,c),$n.delete(i))}),$n.clear(),Object.keys(mt).forEach(i=>delete mt[i]),aa)){const{listener:i,capture:s}=aa;qs(window,"focus",i,s),aa=null}}const _f={getPressedKeyString:uL,setScope:F1,getScope:va,deleteScope:hL,getPressedKeyCodes:cL,getAllKeyCodes:dL,isPressed:pL,filter:fL,trigger:vL,unbind:H1,keyMap:ga,modifier:Qr,modifierMap:Xs};for(const e in _f)Object.prototype.hasOwnProperty.call(_f,e)&&(Xr[e]=_f[e]);if(typeof window<"u"){const e=window.hotkeys;Xr.noConflict=t=>(t&&window.hotkeys===Xr&&(window.hotkeys=e),Xr),window.hotkeys=Xr}Xr.filter=()=>!0;function mL(e,t,r,n){r instanceof Array&&(n=r,r=void 0),n=n||[],r=r||{};const{preventDefault:i=!0}=r,s=N.useCallback((c,u)=>{i&&c.preventDefault(),setTimeout(()=>t(c,u))},n),l=()=>{Xr.unbind(e,s)};N.useEffect(()=>(Xr(e,r,s),l),[e,r,s])}const bL=e=>{const t=N.useRef(null);return N.useEffect(()=>{const r=n=>{t.current&&!t.current.contains(n.target)&&e(n)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function yL(e){const t=N.useRef();return N.useEffect(()=>{t.current=e},[e]),t.current}function wL(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e},[e]),t}function xL(e){const t=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function SL(e){const[t,r]=N.useState(e),n=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},i=N.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:n,isFeatureEnabled:i}}const B1=N.createContext(""),EL=e=>A.jsx(B1.Provider,{value:e.value,children:e.children}),_L=()=>{const e=N.useContext(B1);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function OL(e){const[t,r]=N.useState(e),n=N.useMemo(()=>kL(t,r),[]);return{state:t,actions:{...n,set:i=>{r(typeof i=="function"?i:s=>({...s,...i}))}}}}function kL(e,t=()=>{}){return Object.keys(e).reduce((n,i)=>({...n,[`set${He.upperFirst(i)}`]:s=>t(l=>({...l,[i]:s}))}),{})}const AL=(e,t,r={})=>{r={timeout:200,...r};const n=N.useRef(),i=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return N.useCallback((s,...l)=>{i(),t&&s.detail===1&&(n.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function Vt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var i=ML[e],s=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+e;throw Error("[Immer] "+s)}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 Fo(e){return!!e&&!!e[_r]}function Vi(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===DL})(e)||Array.isArray(e)||!!e[vy]||!!(!((t=e.constructor)===null||t===void 0)&&t[vy])||rh(e)||nh(e))}function ma(e,t,r){r===void 0&&(r=!1),Zo(e)===0?(r?Object.keys:ah)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function Zo(e){var t=e[_r];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:rh(e)?2:nh(e)?3:0}function rp(e,t){return Zo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function TL(e,t){return Zo(e)===2?e.get(t):e[t]}function W1(e,t,r){var n=Zo(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function RL(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function rh(e){return IL&&e instanceof Map}function nh(e){return NL&&e instanceof Set}function Di(e){return e.o||e.t}function ih(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=zL(e);delete t[_r];for(var r=ah(t),n=0;n<r.length;n++){var i=r[n],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function ba(e,t){return t===void 0&&(t=!1),oh(e)||Fo(e)||!Vi(e)||(Zo(e)>1&&(e.set=e.add=e.clear=e.delete=CL),Object.freeze(e),t&&ma(e,(function(r,n){return ba(n,!0)}),!0)),e}function CL(){Vt(2)}function oh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function xn(e){var t=LL[e];return t||Vt(18,e),t}function cy(){return process.env.NODE_ENV==="production"||Ho||Vt(0),Ho}function Of(e,t){t&&(xn("Patches"),e.u=[],e.s=[],e.v=t)}function jc(e){np(e),e.p.forEach(PL),e.p=null}function np(e){e===Ho&&(Ho=e.l)}function uy(e){return Ho={p:[],l:Ho,h:e,m:!0,_:0}}function PL(e){var t=e[_r];t.i===0||t.i===1?t.j():t.g=!0}function kf(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||xn("ES5").S(t,e,n),n?(r[_r].P&&(jc(t),Vt(4)),Vi(e)&&(e=Fc(t,e),t.l||Hc(t,e)),t.u&&xn("Patches").M(r[_r].t,e,t.u,t.s)):e=Fc(t,r,[]),jc(t),t.u&&t.v(t.u,t.s),e!==V1?e:void 0}function Fc(e,t,r){if(oh(t))return t;var n=t[_r];if(!n)return ma(t,(function(c,u){return dy(e,n,t,c,u,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Hc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ih(n.k):n.o,s=i,l=!1;n.i===3&&(s=new Set(i),i.clear(),l=!0),ma(s,(function(c,u){return dy(e,n,i,c,u,r,l)})),Hc(e,i,!1),r&&e.u&&xn("Patches").N(n,r,e.u,e.s)}return n.o}function dy(e,t,r,n,i,s,l){if(process.env.NODE_ENV!=="production"&&i===r&&Vt(5),Fo(i)){var c=Fc(e,i,s&&t&&t.i!==3&&!rp(t.R,n)?s.concat(n):void 0);if(W1(r,n,c),!Fo(c))return;e.m=!1}else l&&r.add(i);if(Vi(i)&&!oh(i)){if(!e.h.D&&e._<1)return;Fc(e,i),t&&t.A.l||Hc(e,i)}}function Hc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&ba(t,r)}function Af(e,t){var r=e[_r];return(r?Di(r):e)[t]}function fy(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function ip(e){e.P||(e.P=!0,e.l&&ip(e.l))}function Tf(e){e.o||(e.o=ih(e.t))}function op(e,t,r){var n=rh(t)?xn("MapSet").F(t,r):nh(t)?xn("MapSet").T(t,r):e.O?(function(i,s){var l=Array.isArray(i),c={i:l?1:0,A:s?s.A:cy(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},u=c,f=sp;l&&(u=[c],f=Js);var g=Proxy.revocable(u,f),p=g.revoke,h=g.proxy;return c.k=h,c.j=p,h})(t,r):xn("ES5").J(t,r);return(r?r.A:cy()).p.push(n),n}function U1(e){return Fo(e)||Vt(22,e),(function t(r){if(!Vi(r))return r;var n,i=r[_r],s=Zo(r);if(i){if(!i.P&&(i.i<4||!xn("ES5").K(i)))return i.t;i.I=!0,n=py(r,s),i.I=!1}else n=py(r,s);return ma(n,(function(l,c){i&&TL(i.t,l)===c||W1(n,l,t(c))})),s===3?new Set(n):n})(e)}function py(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ih(e)}var hy,Ho,sh=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",IL=typeof Map<"u",NL=typeof Set<"u",gy=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",V1=sh?Symbol.for("immer-nothing"):((hy={})["immer-nothing"]=!0,hy),vy=sh?Symbol.for("immer-draftable"):"__$immer_draftable",_r=sh?Symbol.for("immer-state"):"__$immer_state",ML={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"},DL=""+Object.prototype.constructor,ah=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,zL=Object.getOwnPropertyDescriptors||function(e){var t={};return ah(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},LL={},sp={get:function(e,t){if(t===_r)return e;var r=Di(e);if(!rp(r,t))return(function(i,s,l){var c,u=fy(s,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!Vi(n)?n:n===Af(e.t,t)?(Tf(e),e.o[t]=op(e.A.h,n,e)):n},has:function(e,t){return t in Di(e)},ownKeys:function(e){return Reflect.ownKeys(Di(e))},set:function(e,t,r){var n=fy(Di(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Af(Di(e),t),s=i==null?void 0:i[_r];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(RL(r,i)&&(r!==void 0||rp(e.t,t)))return!0;Tf(e),ip(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 Af(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Tf(e),ip(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Di(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Vt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Vt(12)}},Js={};ma(sp,(function(e,t){Js[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Js.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Vt(13),Js.set.call(this,e,t,void 0)},Js.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Vt(14),sp.set.call(this,e[0],t,r,e[0])};var $L=(function(){function e(r){var n=this;this.O=gy,this.D=!0,this.produce=function(i,s,l){if(typeof i=="function"&&typeof s!="function"){var c=s;s=i;var u=n;return function(v){var y=this;v===void 0&&(v=c);for(var m=arguments.length,w=Array(m>1?m-1:0),x=1;x<m;x++)w[x-1]=arguments[x];return u.produce(v,(function(O){var _;return(_=s).call.apply(_,[y,O].concat(w))}))}}var f;if(typeof s!="function"&&Vt(6),l!==void 0&&typeof l!="function"&&Vt(7),Vi(i)){var g=uy(n),p=op(n,i,void 0),h=!0;try{f=s(p),h=!1}finally{h?jc(g):np(g)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(v){return Of(g,l),kf(v,g)}),(function(v){throw jc(g),v})):(Of(g,l),kf(f,g))}if(!i||typeof i!="object"){if((f=s(i))===void 0&&(f=i),f===V1&&(f=void 0),n.D&&ba(f,!0),l){var b=[],S=[];xn("Patches").M(i,f,b,S),l(b,S)}return f}Vt(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(f){for(var g=arguments.length,p=Array(g>1?g-1:0),h=1;h<g;h++)p[h-1]=arguments[h];return n.produceWithPatches(f,(function(b){return i.apply(void 0,[b].concat(p))}))};var l,c,u=n.produce(i,s,(function(f,g){l=f,c=g}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(f){return[f,l,c]})):[u,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){Vi(r)||Vt(8),Fo(r)&&(r=U1(r));var n=uy(this),i=op(this,r,void 0);return i[_r].C=!0,np(n),i},t.finishDraft=function(r,n){var i=r&&r[_r];process.env.NODE_ENV!=="production"&&(i&&i.C||Vt(9),i.I&&Vt(10));var s=i.A;return Of(s,n),kf(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!gy&&Vt(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var l=xn("Patches").$;return Fo(r)?l(r,n):this.produce(r,(function(c){return l(c,n)}))},e})(),Or=new $L,jL=Or.produce;Or.produceWithPatches.bind(Or);Or.setAutoFreeze.bind(Or);Or.setUseProxies.bind(Or);Or.applyPatches.bind(Or);Or.createDraft.bind(Or);Or.finishDraft.bind(Or);function FL(e){var t=N.useState(function(){return ba(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],N.useCallback(function(n){r(typeof n=="function"?jL(n):ba(n))},[])]}const HL=process.env.NODE_ENV==="development",Rf=HL&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,BL=(e,t,r)=>{const[n,i]=FL(e),s=N.useRef(null);N.useEffect(()=>{var u;return r&&(s.current=Rf==null?void 0:Rf.connect({name:r,trace:!0}),(u=s.current)==null||u.init(e)),()=>{var f,g;(g=(f=s.current)==null?void 0:f.disconnect)==null||g.call(f)}},[]);const l=t&&typeof t=="object"?t:{},c=N.useMemo(()=>Object.keys(l).reduce((u,f)=>({...u,[f]:g=>(i(p=>{var h;l[f](p,g),(h=s.current)==null||h.send({type:l[f].name},U1(p))}),c)}),{}),[i]);return{state:n,dispatch:c}},WL=e=>{const t=xh(e),r=()=>{const{id:n,namespace:i}=t,s=window.DataSource.spaces[i];if(s&&s.sources)return s.sources[n]};return{actions:{setProperty:(n,i)=>{try{const s=r();s&&s.setValue(n,i)}catch{}},getValue:()=>r()}}},UL=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:n,namespace:i}=xh(e),[s,l]=N.useState(!1),c=N.useCallback(()=>{try{return window.DataSource.getSource(n,i)}catch{return}},[i,n]),u=(p,h)=>{const b=c();b&&b.setValue(p,h)},f=async()=>{const p=c();if(!p)return;const h=await(p==null?void 0:p.getValue());r==null||r(h)},g=p=>{const{id:h}=p;!s&&h&&h.startsWith(n)&&l(!0)};return N.useEffect(()=>{if(s){const p=c();return p?(p==null||p.addListener("changed",f),()=>p==null?void 0:p.removeListener("changed",f)):void 0}},[s]),N.useEffect(()=>{if(t)return window.addEventListener("datasource:created",g),()=>window.removeEventListener("datasource:created",g)},[t]),{loaded:s,setCurrentSource:u}};function VL(e=!1){const[t,r]=N.useState(e),n=N.useMemo(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(i=>!i)}),[]);return[t,n]}function qL(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),N.useCallback((...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function q1(e,t){const r=e!==void 0;return[r,r?e:t]}function GL({value:e,defaultValue:t,onChange:r}){const[n,i]=N.useState(t),[s,l]=q1(e,n),c=N.useCallback(u=>{const f=typeof u=="function"?u(l):u;s||i(f),f!==l&&(r==null||r(f))},[l,s,r]);return[l,c]}const ZL=typeof window<"u"?N.useLayoutEffect:N.useEffect;function KL(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(!r.current){r.current=!0;return}return e()},t)}function YL(e){return{...e,isDisabled:e.isDisabled??e.disabled,isReadOnly:e.isReadOnly??e.readOnly,isRequired:e.isRequired??e.required}}function Wn(e){return typeof e=="function"}function G1(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Cf=G1(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
252
|
+
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
253
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function ap(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var su=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=Vf(l),u=c.next();!u.done;u=c.next()){var f=u.value;f.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var g=this.initialTeardown;if(Wn(g))try{g()}catch(v){s=v instanceof Cf?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=Vf(p),b=h.next();!b.done;b=h.next()){var S=b.value;try{my(S)}catch(v){s=s??[],v instanceof Cf?s=Nc(Nc([],qf(s)),qf(v.errors)):s.push(v)}}}catch(v){n={error:v}}finally{try{b&&!b.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(s)throw new Cf(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)my(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)&&ap(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ap(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Z1=su.EMPTY;function K1(e){return e instanceof su||e&&"closed"in e&&Wn(e.remove)&&Wn(e.add)&&Wn(e.unsubscribe)}function my(e){Wn(e)?e():e.unsubscribe()}var XL={Promise:void 0},JL={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Nc([e,t],qf(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function QL(e){JL.setTimeout(function(){throw e})}function by(){}function Sc(e){e()}var Y1=(function(e){Qc(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,K1(r)&&r.add(n)):n.destination=r$,n}return t.create=function(r,n,i){return new lp(r,n,i)},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})(su),e$=(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(n){rc(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){rc(n)}else rc(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){rc(r)}},e})(),lp=(function(e){Qc(t,e);function t(r,n,i){var s=e.call(this)||this,l;return Wn(r)||!r?l={next:r??void 0,error:n??void 0,complete:i??void 0}:l=r,s.destination=new e$(l),s}return t})(Y1);function rc(e){QL(e)}function t$(e){throw e}var r$={closed:!0,next:by,error:t$,complete:by},n$=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function i$(e){return e}function o$(e){return e.length===0?i$:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var yy=(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,n){var i=this,s=a$(t)?t:new lp(t,r,n);return Sc(function(){var l=i,c=l.operator,u=l.source;s.add(c?c.call(s,u):u?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=wy(r),new r(function(i,s){var l=new lp({next:function(c){try{t(c)}catch(u){s(u),l.unsubscribe()}},error:s,complete:i});n.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[n$]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return o$(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=wy(t),new t(function(n,i){var s;r.subscribe(function(l){return s=l},function(l){return i(l)},function(){return n(s)})})},e.create=function(t){return new e(t)},e})();function wy(e){var t;return(t=e??XL.Promise)!==null&&t!==void 0?t:Promise}function s$(e){return e&&Wn(e.next)&&Wn(e.error)&&Wn(e.complete)}function a$(e){return e&&e instanceof Y1||s$(e)&&K1(e)}var l$=G1(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),_n=(function(e){Qc(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 n=new xy(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new l$},t.prototype.next=function(r){var n=this;Sc(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var l=Vf(n.currentObservers),c=l.next();!c.done;c=l.next()){var u=c.value;u.next(r)}}catch(f){i={error:f}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Sc(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Sc(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.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 n=this,i=this,s=i.hasError,l=i.isStopped,c=i.observers;return s||l?Z1:(this.currentObservers=null,c.push(r),new su(function(){n.currentObservers=null,ap(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,l=n.isStopped;i?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new yy;return r.source=this,r},t.create=function(r,n){return new xy(r,n)},t})(yy),xy=(function(e){Qc(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Z1},t})(_n),X1=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(X1||{}),J1=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(J1||{});const c$=new _n,u$=new _n,lh=new _n;var Q1=(e=>(e.SAVE_ALL="save-all",e))(Q1||{});const d$=new _n;var eS=(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))(eS||{});const f$=new _n;var tS=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(tS||{});const p$=new _n,h$=new _n;var ya=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(ya||{});const Bc=new _n,g$=new _n,ch=255;var uh=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${ch} 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))(uh||{});function au(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>ch)throw new Error(uh.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 v$(e){if(!e)return null;if(typeof e=="string")try{au(e)}catch(t){return t.message}}function m$(e,t){let r="";if(["array","object"].includes(t))try{const n=JSON.parse(e);t==="array"&&(!Array.isArray(n)||!He.isObject(n))&&(r=`Invalid value for type ${t}`),t==="object"&&(!He.isObject(n)||Array.isArray(n))&&(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 b$(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function lu(e){const{PLACEHOLDER_PREFIX:t,counter:r}=b$();let n=r;const i=[],s="@!",l=g=>(i.push(g),`${t}${n++}${s}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(g,p,h)=>p+l(h)),c=c.replace(/:\d{2}:\d{2}/g,l);const u=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let f=c.replace(u,"");for(let g=0;g<i.length;g++){const h=`${t}${g}${s}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(h,"g");f=f.replace(b,i[g])}return f}const rS=(e,t,r)=>{const n=e instanceof RegExp?Sy(e,r):e,i=t instanceof RegExp?Sy(t,r):t,s=n!==null&&i!=null&&y$(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},Sy=(e,t)=>{const r=t.match(e);return r?r[0]:null},y$=(e,t,r)=>{let n,i,s,l,c,u=r.indexOf(e),f=r.indexOf(t,u+1),g=u;if(u>=0&&f>0){if(e===t)return[u,f];for(n=[],s=r.length;g>=0&&!c;){if(g===u)n.push(g),u=r.indexOf(e,g+1);else if(n.length===1){const p=n.pop();p!==void 0&&(c=[p,f])}else i=n.pop(),i!==void 0&&i<s&&(s=i,l=f),f=r.indexOf(t,g+1);g=u<f&&u>=0?u:f}n.length&&l!==void 0&&(c=[s,l])}return c},nS="\0SLASH"+Math.random()+"\0",iS="\0OPEN"+Math.random()+"\0",dh="\0CLOSE"+Math.random()+"\0",oS="\0COMMA"+Math.random()+"\0",sS="\0PERIOD"+Math.random()+"\0",w$=new RegExp(nS,"g"),x$=new RegExp(iS,"g"),S$=new RegExp(dh,"g"),E$=new RegExp(oS,"g"),_$=new RegExp(sS,"g"),O$=/\\\\/g,k$=/\\{/g,A$=/\\}/g,T$=/\\,/g,R$=/\\\./g,C$=1e5;function Pf(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function P$(e){return e.replace(O$,nS).replace(k$,iS).replace(A$,dh).replace(T$,oS).replace(R$,sS)}function I$(e){return e.replace(w$,"\\").replace(x$,"{").replace(S$,"}").replace(E$,",").replace(_$,".")}function aS(e){if(!e)return[""];const t=[],r=rS("{","}",e);if(!r)return e.split(",");const{pre:n,body:i,post:s}=r,l=n.split(",");l[l.length-1]+="{"+i+"}";const c=aS(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function N$(e,t={}){if(!e)return[];const{max:r=C$}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Qs(P$(e),r,!0).map(I$)}function M$(e){return"{"+e+"}"}function D$(e){return/^-?0\d/.test(e)}function z$(e,t){return e<=t}function L$(e,t){return e>=t}function Qs(e,t,r){const n=[],i=rS("{","}",e);if(!i)return[e];const s=i.pre,l=i.post.length?Qs(i.post,t,!1):[""];if(/\$$/.test(i.pre))for(let c=0;c<l.length&&c<t;c++){const u=s+"{"+i.body+"}"+l[c];n.push(u)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=c||u,g=i.body.indexOf(",")>=0;if(!f&&!g)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+dh+i.post,Qs(e,t,!0)):[e];let p;if(f)p=i.body.split(/\.\./);else if(p=aS(i.body),p.length===1&&p[0]!==void 0&&(p=Qs(p[0],t,!1).map(M$),p.length===1))return l.map(b=>i.pre+p[0]+b);let h;if(f&&p[0]!==void 0&&p[1]!==void 0){const b=Pf(p[0]),S=Pf(p[1]),v=Math.max(p[0].length,p[1].length);let y=p.length===3&&p[2]!==void 0?Math.max(Math.abs(Pf(p[2])),1):1,m=z$;S<b&&(y*=-1,m=L$);const x=p.some(D$);h=[];for(let O=b;m(O,S);O+=y){let _;if(u)_=String.fromCharCode(O),_==="\\"&&(_="");else if(_=String(O),x){const R=v-_.length;if(R>0){const j=new Array(R+1).join("0");O<0?_="-"+j+_.slice(1):_=j+_}}h.push(_)}}else{h=[];for(let b=0;b<p.length;b++)h.push.apply(h,Qs(p[b],t,!1))}for(let b=0;b<h.length;b++)for(let S=0;S<l.length&&n.length<t;S++){const v=s+h[b]+l[S];(!r||f||v)&&n.push(v)}}return n}const $$=1024*64,Wc=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>$$)throw new TypeError("pattern is too long")},j$={"[: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]},Gs=e=>e.replace(/[[\]\\-]/g,"\\$&"),F$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ey=e=>e.join(""),H$=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],i=[];let s=r+1,l=!1,c=!1,u=!1,f=!1,g=r,p="";e:for(;s<e.length;){const v=e.charAt(s);if((v==="!"||v==="^")&&s===r+1){f=!0,s++;continue}if(v==="]"&&l&&!u){g=s+1;break}if(l=!0,v==="\\"&&!u){u=!0,s++;continue}if(v==="["&&!u){for(const[y,[m,w,x]]of Object.entries(j$))if(e.startsWith(y,s)){if(p)return["$.",!1,e.length-r,!0];s+=y.length,x?i.push(m):n.push(m),c=c||w;continue e}}if(u=!1,p){v>p?n.push(Gs(p)+"-"+Gs(v)):v===p&&n.push(Gs(v)),p="",s++;continue}if(e.startsWith("-]",s+1)){n.push(Gs(v+"-")),s+=2;continue}if(e.startsWith("-",s+1)){p=v,s+=2;continue}n.push(Gs(v)),s++}if(g<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!f){const v=n[0].length===2?n[0].slice(-1):n[0];return[F$(v),!1,g-r,!1]}const h="["+(f?"^":"")+Ey(n)+"]",b="["+(f?"":"^")+Ey(i)+"]";return[n.length&&i.length?"("+h+"|"+b+")":n.length?h:b,c,g-r,!0]},ea=(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 lr;const B$=new Set(["!","?","+","*","@"]),cp=e=>B$.has(e),_y=e=>cp(e.type),W$=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),U$=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),V$=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Oy=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),q$="(?!(?:^|/)\\.\\.?(?:$|/))",nc="(?!\\.)",G$=new Set(["[","."]),Z$=new Set(["..","."]),K$=new Set("().*{}+?[]^$\\!"),Y$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fh="[^/]",ky=fh+"*?",Ay=fh+"+?";let X$=0;var Ot,Dt,Fn,Re,pt,di,$i,fi,gn,vn,No,Ue,lS,hi,Ec,cS,up,_c,uS,dp,dS,fS,pS,Oc,fp,hS;class cu{constructor(t,r,n={}){Bt(this,Ue);Ae(this,"type");Bt(this,Ot);Bt(this,Dt);Bt(this,Fn,!1);Bt(this,Re,[]);Bt(this,pt);Bt(this,di);Bt(this,$i);Bt(this,fi,!1);Bt(this,gn);Bt(this,vn);Bt(this,No,!1);Ae(this,"id",++X$);this.type=t,t&&tt(this,Dt,!0),tt(this,pt,r),tt(this,Ot,ae(this,pt)?ae(ae(this,pt),Ot):this),tt(this,gn,ae(this,Ot)===this?n:ae(ae(this,Ot),gn)),tt(this,$i,ae(this,Ot)===this?[]:ae(ae(this,Ot),$i)),t==="!"&&!ae(ae(this,Ot),fi)&&ae(this,$i).push(this),tt(this,di,ae(this,pt)?ae(ae(this,pt),Re).length:0)}get depth(){var t;return(((t=ae(this,pt))==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:ae(this,Ot).id,parent:(t=ae(this,pt))==null?void 0:t.id,depth:this.depth,partsLength:ae(this,Re).length,parts:ae(this,Re)}}get hasMagic(){if(ae(this,Dt)!==void 0)return ae(this,Dt);for(const t of ae(this,Re))if(typeof t!="string"&&(t.type||t.hasMagic))return tt(this,Dt,!0);return ae(this,Dt)}toString(){return ae(this,vn)!==void 0?ae(this,vn):this.type?tt(this,vn,this.type+"("+ae(this,Re).map(t=>String(t)).join("|")+")"):tt(this,vn,ae(this,Re).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof lr&&ae(r,pt)===this))throw new Error("invalid part: "+r);ae(this,Re).push(r)}}toJSON(){var r;const t=this.type===null?ae(this,Re).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...ae(this,Re).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===ae(this,Ot)||ae(ae(this,Ot),fi)&&((r=ae(this,pt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(ae(this,Ot)===this)return!0;if(!((r=ae(this,pt))!=null&&r.isStart()))return!1;if(ae(this,di)===0)return!0;const t=ae(this,pt);for(let n=0;n<ae(this,di);n++){const i=ae(t,Re)[n];if(!(i instanceof lr&&i.type==="!"))return!1}return!0}isEnd(){var r,n,i;if(ae(this,Ot)===this||((r=ae(this,pt))==null?void 0:r.type)==="!")return!0;if(!((n=ae(this,pt))!=null&&n.isEnd()))return!1;if(!this.type)return(i=ae(this,pt))==null?void 0:i.isEnd();const t=ae(this,pt)?ae(ae(this,pt),Re).length:0;return ae(this,di)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new lr(this.type,t);for(const n of ae(this,Re))r.copyIn(n);return r}static fromGlob(t,r={}){var i;const n=new lr(null,void 0,r);return Ee(i=lr,hi,Ec).call(i,t,n,0,r,0),n}toMMPattern(){if(this!==ae(this,Ot))return ae(this,Ot).toMMPattern();const t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||ae(this,Dt)||ae(this,gn).nocase&&!ae(this,gn).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const c=(ae(this,gn).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return ae(this,gn)}toRegExpSource(t){var u;const r=t??!!ae(this,gn).dot;if(ae(this,Ot)===this&&(Ee(this,Ue,Oc).call(this),Ee(this,Ue,lS).call(this)),!_y(this)){const f=this.isStart()&&this.isEnd()&&!ae(this,Re).some(S=>typeof S!="string"),g=ae(this,Re).map(S=>{var x;const[v,y,m,w]=typeof S=="string"?Ee(x=lr,hi,hS).call(x,S,ae(this,Dt),f):S.toRegExpSource(t);return tt(this,Dt,ae(this,Dt)||m),tt(this,Fn,ae(this,Fn)||w),v}).join("");let p="";if(this.isStart()&&typeof ae(this,Re)[0]=="string"&&!(ae(this,Re).length===1&&Z$.has(ae(this,Re)[0]))){const v=G$,y=r&&v.has(g.charAt(0))||g.startsWith("\\.")&&v.has(g.charAt(2))||g.startsWith("\\.\\.")&&v.has(g.charAt(4)),m=!r&&!t&&v.has(g.charAt(0));p=y?q$:m?nc:""}let h="";return this.isEnd()&&ae(ae(this,Ot),fi)&&((u=ae(this,pt))==null?void 0:u.type)==="!"&&(h="(?:$|\\/)"),[p+g+h,ea(g),tt(this,Dt,!!ae(this,Dt)),ae(this,Fn)]}const n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:";let s=Ee(this,Ue,fp).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const f=this.toString(),g=this;return tt(g,Re,[f]),g.type=null,tt(g,Dt,void 0),[f,ea(this.toString()),!1,!1]}let l=!n||t||r||!nc?"":Ee(this,Ue,fp).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&ae(this,No))c=(this.isStart()&&!r?nc:"")+Ay;else{const f=this.type==="!"?"))"+(this.isStart()&&!r&&!t?nc:"")+ky+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=i+s+f}return[c,ea(s),tt(this,Dt,!!ae(this,Dt)),ae(this,Fn)]}}Ot=new WeakMap,Dt=new WeakMap,Fn=new WeakMap,Re=new WeakMap,pt=new WeakMap,di=new WeakMap,$i=new WeakMap,fi=new WeakMap,gn=new WeakMap,vn=new WeakMap,No=new WeakMap,Ue=new WeakSet,lS=function(){if(this!==ae(this,Ot))throw new Error("should only call on root");if(ae(this,fi))return this;this.toString(),tt(this,fi,!0);let t;for(;t=ae(this,$i).pop();){if(t.type!=="!")continue;let r=t,n=ae(r,pt);for(;n;){for(let i=ae(r,di)+1;!n.type&&i<ae(n,Re).length;i++)for(const s of ae(t,Re)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(ae(n,Re)[i])}r=n,n=ae(r,pt)}}return this},hi=new WeakSet,Ec=function(t,r,n,i,s){var v,y,m,w;const l=i.maxExtglobRecursion??2;let c=!1,u=!1,f=-1,g=!1;if(r.type===null){let x=n,O="";for(;x<t.length;){const _=t.charAt(x++);if(c||_==="\\"){c=!c,O+=_;continue}if(u){x===f+1?(_==="^"||_==="!")&&(g=!0):_==="]"&&!(x===f+2&&g)&&(u=!1),O+=_;continue}else if(_==="["){u=!0,f=x,g=!1,O+=_;continue}if(!i.noext&&cp(_)&&t.charAt(x)==="("&&s<=l){r.push(O),O="";const j=new lr(_,r);x=Ee(v=lr,hi,Ec).call(v,t,j,x,i,s+1),r.push(j);continue}O+=_}return r.push(O),x}let p=n+1,h=new lr(null,r);const b=[];let S="";for(;p<t.length;){const x=t.charAt(p++);if(c||x==="\\"){c=!c,S+=x;continue}if(u){p===f+1?(x==="^"||x==="!")&&(g=!0):x==="]"&&!(p===f+2&&g)&&(u=!1),S+=x;continue}else if(x==="["){u=!0,f=p,g=!1,S+=x;continue}if(!i.noext&&cp(x)&&t.charAt(p)==="("&&(s<=l||r&&Ee(y=r,Ue,_c).call(y,x))){const _=r&&Ee(m=r,Ue,_c).call(m,x)?0:1;h.push(S),S="";const R=new lr(x,h);h.push(R),p=Ee(w=lr,hi,Ec).call(w,t,R,p,i,s+_);continue}if(x==="|"){h.push(S),S="",b.push(h),h=new lr(null,r);continue}if(x===")")return S===""&&ae(r,Re).length===0&&tt(r,No,!0),h.push(S),S="",r.push(...b,h),p;S+=x}return r.type=null,tt(r,Dt,void 0),tt(r,Re,[t.substring(n-1)]),p},cS=function(t){return Ee(this,Ue,up).call(this,t,U$)},up=function(t,r=W$){if(!t||typeof t!="object"||t.type!==null||ae(t,Re).length!==1||this.type===null)return!1;const n=ae(t,Re)[0];return!n||typeof n!="object"||n.type===null?!1:Ee(this,Ue,_c).call(this,n.type,r)},_c=function(t,r=V$){var n;return!!((n=r.get(this.type))!=null&&n.includes(t))},uS=function(t,r){const n=ae(t,Re)[0],i=new lr(null,n,this.options);ae(i,Re).push(""),n.push(i),Ee(this,Ue,dp).call(this,t,r)},dp=function(t,r){const n=ae(t,Re)[0];ae(this,Re).splice(r,1,...ae(n,Re));for(const i of ae(n,Re))typeof i=="object"&&tt(i,pt,this);tt(this,vn,void 0)},dS=function(t){const r=Oy.get(this.type);return!!(r!=null&&r.has(t))},fS=function(t){if(!t||typeof t!="object"||t.type!==null||ae(t,Re).length!==1||this.type===null||ae(this,Re).length!==1)return!1;const r=ae(t,Re)[0];return!r||typeof r!="object"||r.type===null?!1:Ee(this,Ue,dS).call(this,r.type)},pS=function(t){const r=Oy.get(this.type),n=ae(t,Re)[0],i=r==null?void 0:r.get(n.type);if(!i)return!1;tt(this,Re,ae(n,Re));for(const s of ae(this,Re))typeof s=="object"&&tt(s,pt,this);this.type=i,tt(this,vn,void 0),tt(this,No,!1)},Oc=function(){var t,r;if(_y(this)){let n=0,i=!1;do{i=!0;for(let s=0;s<ae(this,Re).length;s++){const l=ae(this,Re)[s];typeof l=="object"&&(Ee(r=l,Ue,Oc).call(r),Ee(this,Ue,up).call(this,l)?(i=!1,Ee(this,Ue,dp).call(this,l,s)):Ee(this,Ue,cS).call(this,l)?(i=!1,Ee(this,Ue,uS).call(this,l,s)):Ee(this,Ue,fS).call(this,l)&&(i=!1,Ee(this,Ue,pS).call(this,l)))}}while(!i&&++n<10)}else for(const n of ae(this,Re))typeof n=="object"&&Ee(t=n,Ue,Oc).call(t);tt(this,vn,void 0)},fp=function(t){return ae(this,Re).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,i,s,l]=r.toRegExpSource(t);return tt(this,Fn,ae(this,Fn)||l),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},hS=function(t,r,n=!1){let i=!1,s="",l=!1,c=!1;for(let u=0;u<t.length;u++){const f=t.charAt(u);if(i){i=!1,s+=(K$.has(f)?"\\":"")+f;continue}if(f==="*"){if(c)continue;c=!0,s+=n&&/^[*]+$/.test(t)?Ay:ky,r=!0;continue}else c=!1;if(f==="\\"){u===t.length-1?s+="\\\\":i=!0;continue}if(f==="["){const[g,p,h,b]=H$(t,u);if(h){s+=g,l=l||p,u+=h-1,r=r||b;continue}}if(f==="?"){s+=fh,r=!0;continue}s+=Y$(f)}return[s,ea(t),!!r,l]},Bt(cu,hi);lr=cu;const J$=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),qt=(e,t,r={})=>(Wc(t),!r.nocomment&&t.charAt(0)==="#"?!1:new uu(t,r).match(e)),Q$=/^\*+([^+@!?*[(]*)$/,ej=e=>t=>!t.startsWith(".")&&t.endsWith(e),tj=e=>t=>t.endsWith(e),rj=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),nj=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),ij=/^\*+\.\*+$/,oj=e=>!e.startsWith(".")&&e.includes("."),sj=e=>e!=="."&&e!==".."&&e.includes("."),aj=/^\.\*+$/,lj=e=>e!=="."&&e!==".."&&e.startsWith("."),cj=/^\*+$/,uj=e=>e.length!==0&&!e.startsWith("."),dj=e=>e.length!==0&&e!=="."&&e!=="..",fj=/^\?+([^+@!?*[(]*)?$/,pj=([e,t=""])=>{const r=gS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},hj=([e,t=""])=>{const r=vS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},gj=([e,t=""])=>{const r=vS([e]);return t?n=>r(n)&&n.endsWith(t):r},vj=([e,t=""])=>{const r=gS([e]);return t?n=>r(n)&&n.endsWith(t):r},gS=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},vS=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},mS=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ty={win32:{sep:"\\"},posix:{sep:"/"}},mj=mS==="win32"?Ty.win32.sep:Ty.posix.sep;qt.sep=mj;const Yt=Symbol("globstar **");qt.GLOBSTAR=Yt;const bj="[^/]",yj=bj+"*?",wj="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",xj="(?:(?!(?:\\/|^)\\.).)*?",Sj=(e,t={})=>r=>qt(r,e,t);qt.filter=Sj;const Dr=(e,t={})=>Object.assign({},e,t),Ej=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return qt;const t=qt;return Object.assign((n,i,s={})=>t(n,i,Dr(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,Dr(e,s))}static defaults(i){return t.defaults(Dr(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,l={}){super(i,s,Dr(e,l))}static fromGlob(i,s={}){return t.AST.fromGlob(i,Dr(e,s))}},unescape:(n,i={})=>t.unescape(n,Dr(e,i)),escape:(n,i={})=>t.escape(n,Dr(e,i)),filter:(n,i={})=>t.filter(n,Dr(e,i)),defaults:n=>t.defaults(Dr(e,n)),makeRe:(n,i={})=>t.makeRe(n,Dr(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,Dr(e,i)),match:(n,i,s={})=>t.match(n,i,Dr(e,s)),sep:t.sep,GLOBSTAR:Yt})};qt.defaults=Ej;const bS=(e,t={})=>(Wc(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:N$(e,{max:t.braceExpandMax}));qt.braceExpand=bS;const _j=(e,t={})=>new uu(e,t).makeRe();qt.makeRe=_j;const Oj=(e,t,r={})=>{const n=new uu(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};qt.match=Oj;const Ry=/[?*]|[+@!]\(.*?\)|\[|\]/,kj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var Sr,yS,pp,Oo;class uu{constructor(t,r={}){Bt(this,Sr);Ae(this,"options");Ae(this,"set");Ae(this,"pattern");Ae(this,"windowsPathsNoEscape");Ae(this,"nonegate");Ae(this,"negate");Ae(this,"comment");Ae(this,"empty");Ae(this,"preserveMultipleSlashes");Ae(this,"partial");Ae(this,"globSet");Ae(this,"globParts");Ae(this,"nocase");Ae(this,"isWindows");Ae(this,"platform");Ae(this,"windowsNoMagicRoot");Ae(this,"maxGlobstarRecursion");Ae(this,"regexp");Wc(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||mS,this.isWindows=this.platform==="win32";const n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!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=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=s[0]===""&&s[1]===""&&(s[2]==="?"||!Ry.test(s[2]))&&!Ry.test(s[3]),f=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map(g=>this.parse(g))];if(f)return[s[0],...s.slice(1).map(g=>this.parse(g))]}return s.map(u=>this.parse(u))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][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 n of t)for(let i=0;i<n.length;i++)n[i]==="**"&&(n[i]="*");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 n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{const s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){const s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let l=i;for(;n[l+1]==="**";)l++;l>i&&n.splice(i+1,l-i);let c=n[i+1];const u=n[i+2],f=n[i+3];if(c!==".."||!u||u==="."||u===".."||!f||f==="."||f==="..")continue;r=!0,n.splice(i,1);const g=n.slice(0);g[i]="**",t.push(g),i--}if(!this.preserveMultipleSlashes){for(let l=1;l<n.length-1;l++){const c=n[l];l===1&&c===""&&n[0]===""||(c==="."||c==="")&&(r=!0,n.splice(l,1),l--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){const l=n[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const u=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...u),n.length===0&&n.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,l=[],c="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])l.push(c==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])l.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])l.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),i++,s++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=0,s=0;if(this.isWindows){const c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),f=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),g=!f&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=u?3:c?0:void 0,h=g?3:f?0:void 0;if(typeof p=="number"&&typeof h=="number"){const[b,S]=[t[p],r[h]];b.toLowerCase()===S.toLowerCase()&&(r[h]=b,s=h,i=p)}}const{optimizationLevel:l=1}=this.options;return l>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(Yt)?Ee(this,Sr,yS).call(this,t,r,n,i,s):Ee(this,Sr,Oo).call(this,t,r,n,i,s)}braceExpand(){return bS(this.pattern,this.options)}parse(t){Wc(t);const r=this.options;if(t==="**")return Yt;if(t==="")return"";let n,i=null;(n=t.match(cj))?i=r.dot?dj:uj:(n=t.match(Q$))?i=(r.nocase?r.dot?nj:rj:r.dot?tj:ej)(n[1]):(n=t.match(fj))?i=(r.nocase?r.dot?hj:pj:r.dot?gj:vj)(n):(n=t.match(ij))?i=r.dot?sj:oj:(n=t.match(aj))&&(i=lj);const s=cu.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}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,n=r.noglobstar?yj:r.dot?wj:xj,i=new Set(r.nocase?["i"]:[]);let s=t.map(u=>{const f=u.map(p=>{if(p instanceof RegExp)for(const h of p.flags.split(""))i.add(h);return typeof p=="string"?kj(p):p===Yt?Yt:p._src});f.forEach((p,h)=>{const b=f[h+1],S=f[h-1];p!==Yt||S===Yt||(S===void 0?b!==void 0&&b!==Yt?f[h+1]="(?:\\/|"+n+"\\/)?"+b:f[h]=n:b===void 0?f[h-1]=S+"(?:\\/|\\/"+n+")?":b!==Yt&&(f[h-1]=S+"(?:\\/|\\/"+n+"\\/)"+b,f[h+1]=Yt))});const g=f.filter(p=>p!==Yt);if(this.partial&&g.length>=1){const p=[];for(let h=1;h<=g.length;h++)p.push(g.slice(0,h).join("/"));return"(?:"+p.join("|")+")"}return g.join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.partial&&(s="^(?:\\/|"+l+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].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 n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const i=this.slashSplit(t);this.debug(this.pattern,"split",i);const s=this.set;this.debug(this.pattern,"set",s);let l=i[i.length-1];if(!l)for(let c=i.length-2;!l&&c>=0;c--)l=i[c];for(const c of s){let u=i;if(n.matchBase&&c.length===1&&(u=[l]),this.matchOne(u,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return qt.defaults(t).Minimatch}}Sr=new WeakSet,yS=function(t,r,n,i,s){const l=r.indexOf(Yt,s),c=r.lastIndexOf(Yt),[u,f,g]=n?[r.slice(s,l),r.slice(l+1),[]]:[r.slice(s,l),r.slice(l+1,c),r.slice(c+1)];if(u.length){const w=t.slice(i,i+u.length);if(!Ee(this,Sr,Oo).call(this,w,u,n,0,0))return!1;i+=u.length,s+=u.length}let p=0;if(g.length){if(g.length+i>t.length)return!1;let w=t.length-g.length;if(Ee(this,Sr,Oo).call(this,t,g,n,w,0))p=g.length;else{if(t[t.length-1]!==""||i+g.length===t.length||(w--,!Ee(this,Sr,Oo).call(this,t,g,n,w,0)))return!1;p=g.length+1}}if(!f.length){let w=!!p;for(let x=i;x<t.length-p;x++){const O=String(t[x]);if(w=!0,O==="."||O===".."||!this.options.dot&&O.startsWith("."))return!1}return n||w}const h=[[[],0]];let b=h[0],S=0;const v=[0];for(const w of f)w===Yt?(v.push(S),b=[[],0],h.push(b)):(b[0].push(w),S++);let y=h.length-1;const m=t.length-p;for(const w of h)w[1]=m-(v[y--]+w[0].length);return!!Ee(this,Sr,pp).call(this,t,h,i,0,n,0,!!p)},pp=function(t,r,n,i,s,l,c){const u=r[i];if(!u){for(let p=n;p<t.length;p++){c=!0;const h=t[p];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return c}const[f,g]=u;for(;n<=g;){if(Ee(this,Sr,Oo).call(this,t.slice(0,n+f.length),f,s,n,0)&&l<this.maxGlobstarRecursion){const b=Ee(this,Sr,pp).call(this,t,r,n+f.length,i+1,s,l+1,c);if(b!==!1)return b}const h=t[n];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;n++}return s||null},Oo=function(t,r,n,i,s){let l,c,u,f;for(l=i,c=s,f=t.length,u=r.length;l<f&&c<u;l++,c++){this.debug("matchOne loop");let g=r[c],p=t[l];if(this.debug(r,g,p),g===!1||g===Yt)return!1;let h;if(typeof g=="string"?(h=p===g,this.debug("string match",g,p,h)):(h=g.test(p),this.debug("pattern match",g,p,h)),!h)return!1}if(l===f&&c===u)return!0;if(l===f)return n;if(c===u)return l===f-1&&t[l]==="";throw new Error("wtf?")};qt.AST=cu;qt.Minimatch=uu;qt.escape=J$;qt.unescape=ea;var ph=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(ph||{});const Jr={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Fe=(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))(Fe||{}),mi=(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))(mi||{}),hh=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(hh||{});const gh="roles.json",vh="qodlyApp.json",wS="model.4DModel",mh="HTTPHandlers.json",bh="Shared/i18n.json",xS=[{pattern:vh,editor:{key:"editors:settings"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:gh,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:mh,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:bh,editor:{key:"editors:localization"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:wS,editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.webform",editor:{key:"editors:webforms"},supportedEditors:[{key:"editors:event-report"},{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.qodoc",editor:{key:"editors:reports"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"Methods/*.4dm",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Methods/*.4qs",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4dm",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4qs",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(json)",editor:{key:"editors:code",config:{language:"json"}}},{pattern:"**/*.+(js)",editor:{key:"editors:code",config:{language:"js"}}},{pattern:"**/*.+(css)",editor:{key:"editors:code",config:{language:"css"}}},{pattern:"**/*.+(txt)",editor:{key:"editors:code",config:{language:""}}},{pattern:"Debugger/*",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(png|jpeg|jpg|gif|svg)",editor:{key:"editors:img"}}];function Aj(e){const t=yh(e);switch(t){case Fe.SETTINGS:return{filename:"Settings",type:t};case Fe.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case Fe.ROLES:return{filename:"Roles & Privileges",type:t};case Fe.LOCALIZATION:return{filename:"Localization",type:t};case Fe.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[n]=r[1].split(".");return{filename:n,type:t}}}}function Tj(e){const t=xS.find(({pattern:r})=>qt(e,r,{nocase:!0}));return t||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function yh(e){const t=e.split("."),r=t.pop(),n=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Fe.MODEL;case r==="WebForm":return Fe.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&n===Jr.METHODS):return Fe.METHOD;case(["4dm","4qs","4qm"].includes(r)&&n===Jr.CLASSES):return Fe.CLASS;case e===gh:return Fe.ROLES;case e===mh:return Fe.HTTP_HANDLERS;case e===vh:return Fe.SETTINGS;case e===bh:return Fe.LOCALIZATION;default:return Fe.TEXT}}function SS(e,t=!1){switch(e){case Jr.REPORTS:case"report":return"QoDoc";case Jr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Jr.CLASSES:case Jr.METHODS:return t?"4qs":"4dm";default:return""}}function Rj(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function Cj(e,t,r){switch(t){case Fe.MOBILEFORM:return`${e}.MForm`;case Fe.WEBFORM:return`${e}.WebForm`;case Fe.REPORT:return`${e}.QoDoc`;case Fe.METHOD:case Fe.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class ES{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(i=>{t=i}),n=this.current.then(()=>t);return this.current=r,n}}function wh(){const e=new ES;return async t=>{const r=await e.lock();try{const n=await t();return r(),n}catch(n){console.error(n),r();return}}}const Pj="4DWS_PREFS",_S=He.curry((e,t,r)=>e&&He.get(r,e)===t),Ij=He.curry((e,t,r)=>He.get(r,e)!==t),Nj=He.curry((e,t)=>He.get(t,"id")!==e),Mj=He.curry((e,t)=>He.get(t,"id")===e),Dj=He.curry((e,t)=>He.get(t,"path")===e);function zj(e="id",t,r){return r.findIndex(_S(e,t))!==-1}function OS(e,t){return e==null?void 0:e.localeCompare(t,void 0,{numeric:!0})}function Lj(){try{const e=localStorage.getItem(Pj);return{...e?JSON.parse(e):{},"features.experimental.i18n":!0}}catch(e){console.error(e)}}function $j(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function xh(e=""){const t=e.trim().split(":")||[];let r="",n="";return t.length>1?(r=t[1],n=t[0]):r=t[0],{id:r,namespace:n,root:r.split(".").filter(Boolean)[0],original:n?`${n}:${r}`:r,parts:t}}function kS(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function jj(e){return e.type==="object"}function AS(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function TS(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!kS(e)}function Fj(e){return AS(e)||TS(e)}function Hj(e){return e.applyTo==="dataStore"}function Bj(e){return e.applyTo==="dataClass"}function Wj(e){return e.applyTo==="entity"}function Uj(e){return e.applyTo==="entityCollection"}function Vj(e){return e.type==="entity"}function qj(e){return e.type==="entitysel"}function RS(e){return e.dataType==="array"}function CS(e){return e.dataType==="object"}function PS(e){return e.type==="scalar"}function Gj(e){return RS(e)||CS(e)||PS(e)}const Zj=e=>e!=null&&e.type==="entity",Kj=e=>e.type==="entitysel",Yj=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",Xj=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",Jj=e=>e.type==="scalar"&&e.dataType==="date",Qj=(e,t)=>(e||"")===(t||"");function eF(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function tF(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const ta="Qodly",IS="Location",NS="UserLanguage",MS="Title",Uc={[ta]:[{id:MS,dataType:"string",type:"scalar",namespace:ta,initialValue:""},{id:IS,dataType:"object",type:"scalar",namespace:ta,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:NS,dataType:"object",type:"scalar",namespace:ta,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 wa=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(wa||{}),DS=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(DS||{}),Sh=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Sh||{});const rF={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function nF(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...n}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:wa.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Sh.table}},...n}}function zS(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[wa.capable,wa.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 iF(e,t,r=!1){const n=He.isString(t)?t:zS(t);if(!r&&LS(e))return e;const i=$S(e);return`//%attributes = ${n}\r
|
|
254
|
+
${i}`}function LS(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function $S(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const hp=()=>gi.uuid().replaceAll("-","").toUpperCase();function oF(e){var i,s;const t=new Map,r=new Map,n=new Map;return(i=e.singletons)==null||i.forEach(({methods:l=[],...c})=>{n.set(c.name,{...c,methods:l})}),(s=e.dataClasses)==null||s.forEach(({methods:l=[],...c})=>{const u={...c,methods:l};if(u.uuid||(u.uuid=hp()),u.attributes){const f=["storage","relatedEntity"];u.attributes=u.attributes.map(g=>f.includes(g.kind)&&!g.uuid?{...g,uuid:hp()}:g)}r.set(u.className,u),t.set(u.collectionName,u)}),{...e,methods:e.methods||[],dataClasses:Object.fromEntries(r.entries()),dataClassByCollectionName:Object.fromEntries(t.entries()),singletons:Object.fromEntries(n.entries())}}const sF=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var Qe=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(Qe||{}),dt=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(dt||{});const aF=[Qe.DATASTORE,Qe.DATACLASS,Qe.ATTRIBUTE,Qe.SINGLETON_METHOD,Qe.SINGLETON,Qe.METHOD,dt.DS_METHOD,dt.DATACLASS_METHOD,dt.ENTITY_METHOD,dt.ENTITY_SEL_METHOD],Cy=e=>[dt.DS_METHOD,dt.ENTITY_METHOD,dt.DATACLASS_METHOD].includes(e)?Qe.METHOD:e,Vc="guest",Eh=[{key:"read",label:"Read",canApplyTo:[Qe.DATASTORE,Qe.DATACLASS,Qe.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Qe.DATASTORE,Qe.DATACLASS,Qe.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Qe.DATASTORE,Qe.DATACLASS,Qe.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Qe.DATASTORE,Qe.DATACLASS,Qe.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[Qe.DATASTORE,Qe.DATACLASS,Qe.METHOD,dt.DS_METHOD,dt.DATACLASS_METHOD,dt.ENTITY_METHOD,dt.ENTITY_SEL_METHOD,Qe.SINGLETON,Qe.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[Qe.METHOD,dt.DS_METHOD,dt.DATACLASS_METHOD,dt.ENTITY_METHOD,dt.ENTITY_SEL_METHOD,Qe.SINGLETON_METHOD]}];function Hr(e,...t){return Array.from(new Set([...e,...t]))}function jS(e){const t={},r=new Map;e.forEach(u=>{const f=u.id||gi.generate();t[f]={...u,id:f,parents:[],includes:Hr(u.includes||[]),resources:[]},r.set(u.privilege,f)}),Object.entries(t).forEach(([u,f])=>{const g=f.includes.map(p=>{const h=r.get(p);return h?(t[h].parents=Hr(t[h].parents,h),h):""}).filter(Boolean);t[u]={...f,includes:g}});const n=FS(t),i=new Set;function s(u){i.add(u.id),u.includes=u.includes.filter(f=>!i.has(f))}if(n.forEach(s),n.forEach(u=>u.parents=[]),n.forEach(u=>{u.includes.forEach(f=>t[f].parents.push(u.id))}),Object.values(t).find(({privilege:u})=>u===Vc))return t;const c=gi.generate();return{[c]:{id:c,privilege:Vc,includes:[],parents:[],resources:[]},...t}}function FS(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function du(e,t){const r=t[e];let n=[];return r&&r.parents.forEach(i=>{n=Hr(n,...du(i,t),i)}),n}function qc(e,t){const r=t[e];let n=[];return r&&r.includes.forEach(i=>{n=Hr(n,...qc(i,t),i)}),n}function lF(e,t){const r=t[e];if(!r)return[];const n=[e,...du(e,t),...r.includes];return Object.keys(t).filter(i=>!n.includes(i))}function cF(e,t){return t[e]?Object.keys(t).reduce((n,i)=>i===e?n:{...n,[i]:{...t[i],parents:t[i].parents.filter(s=>s!==e),includes:t[i].includes.filter(s=>s!==e)}},{}):t}function uF(e,t,r){const n=r[e],i=r[t];return!n||!i?r:{...r,[e]:{...r[e],includes:Hr(n.includes,t)},[t]:{...r[t],parents:Hr(i.parents,e)}}}function dF(e,t,r){const n=r[e],i=r[t];return!n||!i?r:{...r,[e]:{...r[e],includes:r[e].includes.filter(s=>s!==t)},[t]:{...r[t],parents:r[t].parents.filter(s=>s!==e)}}}function fF(e,t){au(e),Object.entries(t).forEach(([,{privilege:n}])=>{if(e.toLowerCase()===n.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const r=gi.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function pF(e,t,r){if(!e)throw new Error("Please enter a name");if(!r[t])throw new Error("Invalid privilege");return Object.entries(r).forEach(([,{privilege:n,id:i}])=>{if(e.toLowerCase()===n.toLowerCase()&&t!==i)throw new Error(`There's already a Privilege with the name ${e}`)}),{...r,[t]:{...r[t],privilege:e}}}function hF(e,t){return e.map(r=>Vn(r,t))}function Vn(e,t){return t[e]?t[e]:null}function HS({applyTo:e,type:t,...r}){return Object.entries(r).reduce((n,[i,s])=>{const l=He.find(Eh,["key",i]);return!l||!l.canApplyTo.includes(t)||(typeof s=="string"?s.split(","):s).forEach(u=>{n[u]=Hr(n[u]||[],i)}),n},{})}const Py=(e,t=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${t?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${t?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${t?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function _h(e){return{permissions:Eh.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const n={name:t,from:[]};switch(e.type){case Qe.DATASTORE:return{...n,info:Py(r,!0)};case Qe.DATACLASS:return{...n,info:Py(r)};default:return n}}),resource:e.applyTo,type:e.type}}function BS(e,t){const r=WS(t),n={};return e.filter(({type:i})=>aF.includes(i)).forEach(i=>{const s=HS(i);Object.entries(s).forEach(([l,c])=>{var g;const u=(g=r[l])==null?void 0:g.id;if(!u)return;n[u]=n[u]||{...t[u]};let f=He.find(n[u].resources,{resource:i.applyTo,type:i.type});f||(f=_h(i),n[u].resources.push(f)),f.permissions=f.permissions.map(p=>({...p,checked:p.checked||c.includes(p.name)}))})}),{...t,...n}}function WS(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function gF(e){var r;if(!e)throw new Error("Invalid roles data");const t=jS(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:BS(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:n=gi.generate(),role:i,privileges:s=[]})=>({id:n,role:i,privileges:Hr(s).map(l=>{var c;return(c=Object.values(t).find(({privilege:u})=>u===l))==null?void 0:c.id}).filter(Boolean)})).reduce((n,i)=>({...n,[i.id]:{...i}}),{})}}function vF(e){const t=Object.values(e.privileges).filter(({includes:n})=>n.length===0).map(({id:n})=>n),r=[...t,...t.map(n=>du(n,e.privileges).reverse())].flat().filter((n,i,s)=>s.indexOf(n)===i).map(n=>e.privileges[n]);return{forceLogin:e.forceLogin||!1,restrictedByDefault:e.restrictedByDefault||!1,permissions:{allowed:Object.values(e.privileges).reduce((n,i)=>(i.resources.forEach(({permissions:s,resource:l,type:c})=>{let u=He.find(n,{applyTo:l,type:Cy(c)});u||(u={applyTo:l,type:Cy(c)},n.push(u)),s.forEach(({name:f,checked:g})=>{g&&u&&(u[f]=u[f]||[],u[f].push(i.privilege))})}),n),[])},privileges:r.filter(({privilege:n})=>n!==Vc).map(({id:n,includes:i,privilege:s})=>({id:n,privilege:s,includes:i.map(l=>e.privileges[l].privilege)})),roles:Object.values(e.roles).map(n=>({...n,privileges:n.privileges.map(i=>{var s;return(s=e.privileges[i])==null?void 0:s.privilege}).filter(Boolean)}))}}function mF(e,t){const r=t[e],n={children:[],links:[],parents:[],selected:e};if(!r)return n;function i(c,u,f=[]){const g=c.reduce((p,h)=>[...p,...t[h][u]],[]);return g.length===0?f:(f.push(g),i(g,u,f))}function s(c){const u=[],f=[];for(let g=c.length-1;g>=0;g-=1){const p=c[g].filter(h=>u.includes(h)?!1:(u.push(h),!0));p.length>0&&f.unshift(Hr(p))}return f}function l(c,u){const f=[];return c.reduce((g,p)=>(p.forEach(h=>{t[h][u==="parents"?"includes":"parents"].forEach(S=>{f.includes(S)&&g.push(u==="parents"?{source:h,target:S}:{source:S,target:h})}),f.push(h)}),g),[])}return n.children=i([e],"includes"),n.children=s(n.children),n.parents=i([e],"parents"),n.parents=s(n.parents),n.links=[...l([[e],...n.parents],"parents"),...l([[e],...n.children],"includes")],n}function bF(e,t,r){const n=Vn(e,r);if(!n||He.find(n.resources,{resource:t.applyTo,type:t.type}))return r;const i={...n,resources:[...n.resources,_h(t)]};return{...r,[e]:i}}function yF(e,t,r){const n=Vn(e,r);if(!n)return r;const i={...n,resources:n.resources.filter(({resource:s,type:l})=>s!==t.applyTo||l!==t.type)};return{...r,[e]:i}}function wF(e,t){const r=Object.entries(e).map(([n,i])=>{const s=Vn(n,t);if(!s)return{[n]:t[n]};const l={...s,resources:s.resources.filter(({resource:c,type:u})=>!i.some(f=>f.applyTo===c&&f.type===u))};return{[n]:l}}).reduce((n,i)=>({...n,...i}),{});return{...t,...r}}function xF(e,t){const r=Vn(e,t);if(!r)return t;const n={...r,resources:r.resources.filter(i=>i.permissions.some(s=>s.from.length)).map(i=>({...i,permissions:i.permissions.map(s=>({...s,checked:!1}))}))};return{...t,[e]:n}}function SF(e,t,r,n){const i=Vn(e,n);if(!i)return n;const l=He.find(i.resources,{type:t.type,resource:t.resource})?{...i,resources:i.resources.map(c=>c.type===t.type&&c.resource===t.resource?{...c,permissions:t.permissions.map(u=>u.name===r.name?{...u,checked:!u.checked,from:[]}:u)}:c)}:{...i,resources:[...i.resources,{...t,permissions:t.permissions.map(c=>({...c,checked:r.name===c.name,from:[]}))}]};return{...n,[e]:l}}function EF(e,t){var u;const r=US(e,t)||[],n=((u=Vn(e,t))==null?void 0:u.resources)||[],l=([...r,...n].filter(({type:f})=>[dt.DS_METHOD,dt.DATACLASS_METHOD,dt.ENTITY_METHOD,dt.ENTITY_SEL_METHOD].includes(f))||[]).map(({resource:f})=>f);return Object.entries(t).reduce((f,[g,{resources:p}])=>(p.filter(({resource:h,type:b})=>[dt.DS_METHOD,dt.DATACLASS_METHOD,dt.ENTITY_METHOD,dt.ENTITY_SEL_METHOD].includes(b)&&l.includes(h)).forEach(({permissions:h,resource:b})=>{var v;((v=h.find(({name:y})=>y==="promote"))==null?void 0:v.checked)&&(f[b]=Hr(f[b]||[],g))}),f),{})}function US(e,t){var l;const r=Vn(e,t);if(!r)return[];const n=(l=Object.values(t).find(c=>c.privilege===Vc))==null?void 0:l.id;return(n&&n!==e?Hr(qc(e,t),n):qc(e,t)).reduce((c,u)=>(t[u].resources.forEach(g=>{if(g.permissions.filter(({checked:b,name:S})=>b&&S!=="promote").length===0)return;const h=He.find(c,{type:g.type,resource:g.resource});if(!h){c.push({...g,permissions:g.permissions.map(b=>({...b,from:b.checked?[u]:[],checked:!1}))});return}h.permissions=h.permissions.map((b,S)=>{let{from:v=[]}=b;return g.permissions[S].checked&&!v.includes(u)&&(v=[...v,u]),{...b,from:v,checked:b.checked}})}),c),He.clone(r.resources.map(c=>({...c,permissions:c.permissions.map(({checked:u,...f})=>({...f,checked:!!u}))}))))}const _F=(e,t,r)=>{const n={id:e,role:t,privileges:[]};return{...r,[n.id]:n}},OF=(e,t)=>t[e]?Object.values(t).reduce((r,n)=>e===n.id||n.role===""?r:{...r,[n.id]:n},{}):t,kF=(e,t)=>{if(au(e.role),Object.values(t).find(n=>n.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(t).reduce((n,i)=>e.id===i.id?{...n,[e.id]:e}:{...n,[i.id]:i},{})};function VS(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 qS(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function AF(e,t){const r=VS(e);return qS(r,t)}function TF(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}var GS=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(GS||{}),ZS=(e=>(e.GROUP="group",e.TEXT_FIELD="textfield",e.COLOR_PICKER="colorpicker",e.LAYOUT="layout",e.RADIOGROUP="radiogroup",e.SELECT="select",e.BORDERS="borders",e.BORDER_RADIUS="borderRadius",e.DIMENSIONS="dimensions",e.COMBOBOX="combobox",e.UNITFIELD="unitfield",e.DATAGRID="datagrid",e.CHECKBOX="checkbox",e.NUMBER_FIELD="number",e.FORMAT_FIELD="format",e.DISPLAY="display",e.BOXSHADOW="boxshadow",e.CSSCLASS_SELECTOR="cssClassSelector",e.CUSTOM_STYLE_PROPS_SELECTOR="customStylePropertiesSelector",e.ICON_PICKER="iconPicker",e.ASYNC_SELECT="asyncSelect",e.DS_AUTO_SUGGEST="dsAutoSuggest",e.POSITION="position",e.BACKGROUND="background",e.SELECTBOXLENGTH="selectBoxLength",e.I18NFIELD="i18nField",e.DATE_INTERVALS="dateIntervals",e))(ZS||{}),KS=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(KS||{}),Oh=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Oh||{}),YS=(e=>(e.GRID="grid",e.COMPACT="compact",e))(YS||{}),XS=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(XS||{}),JS=(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))(JS||{});const RF={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"};var QS=(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))(QS||{});const eE={label:"Base",id:"root"},CF=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],PF=e=>e.id===eE.id,kh=(e,t,r="")=>t?e.type==="currentState"&&e.value===t?{...e,value:r}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(n=>kh(n,t,r))}:e:e;function IF(e,t){const{id:r,label:n}=t;return{...e,components:Object.entries(e.components||{}).reduce((i,[s,l])=>({...i,[s]:{...l,custom:Object.entries(l.custom).reduce((c,[u,f])=>u===`states:${r}`?c:{...c,[u]:f},{}),props:Object.entries(l.props).reduce((c,[u,f])=>{let g=f;return u==="events"&&(g=g.map(p=>{var h,b;return p.type==="simple-action"?{...p,state:{...p.state,states:(b=(h=p.state)==null?void 0:h.states)==null?void 0:b.filter(S=>S!==r)}}:p})),{...c,[u]:g}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(i=>(i==null?void 0:i.id)!==r).map(i=>i.conditions?{...i,conditions:kh(i.conditions,n)}:i)}}}const tE=(e,t,r)=>{switch(e.type){case"datasource":return{...e,path:e.path===t?r:e.path,value:e.valueType==="datasource"&&e.value===t?r:e.value,compareValue:e.compareValueType==="datasource"&&e.compareValue===t?r:e.compareValue};case"privilege":case"currentState":case"parentState":if(e.valueType==="datasource")return{...e,value:e.value===t?r:e.value};break;case"combination":return{...e,conditions:(e.conditions||[]).map(n=>tE(n,t,r))}}return e},rE=(e,t)=>{if(e.id===t||e.type==="reference"&&e.ref===t)return null;if(e.type==="combination"&&e.conditions){const r=e.conditions.map(n=>rE(n,t)).filter(Boolean);return r.length===1?{...r[0],id:e.id}:{...e,conditions:r}}return e},nE=e=>e.id?e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(nE)}:e:{...e,id:gi.generate()};function NF(e,t={}){switch(e){case Fe.WEBFORM:case Fe.WEBFORMS:{const r={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white w-full px-6",classNames:[],events:[]},displayName:"Page",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return t["webforms.display-mode"]===Oh.AIRY&&(r.components.ROOT.props.airyMode=!0),r}case Fe.REPORT:return{metadata:{v:"1.0",datasources:[],styles:[]},pages:[{name:"doc",id:"index",components:{ROOT:{type:{resolvedName:"Document"},isCanvas:!0,props:{classNames:[],events:[],airyMode:!1,className:"bg-white w-full px-6"},displayName:"Document",custom:{},parent:"",hidden:!1,nodes:[],linkedNodes:{}}}}]};case Fe.METHOD:case Fe.METHODS:return`//%attributes = {}
|
|
255
|
+
`;case Fe.HTTP_HANDLERS:return[];case Fe.LOCALIZATION:case Fe.SETTINGS:return{};case Fe.ROLES:return{permissions:{allowed:[]},privileges:[],roles:[]};default:return""}}function MF(e,t){return He.isEqual(e,t)}function DF(e,t){const{qodly:r=!0,withExtension:n=!0}=t||{},i=SS(e.type,r);let s="";switch(e.type){case Fe.WEBFORM:s=`${Jr.WEBFORMS}/${e.name}`;break;case Fe.METHOD:s=`${Jr.METHODS}/${e.name}`;break;case Fe.CLASS:s=`${Jr.CLASSES}/${e.name}`;break;default:return""}return`${s}${n?`.${i}`:""}`}function iE(...e){return(...t)=>{e.forEach(r=>r==null?void 0:r(...t))}}const zF=iE;function LF(e){return e?"":void 0}function $F(e,t){if(!e)return;const r=()=>{e.focus(t)};if(t!=null&&t.nextTick){requestAnimationFrame(r);return}r()}function jF(...e){return t=>{e.forEach(r=>{if(r){if(typeof r=="function"){r(t);return}r.current=t}})}}function FF({condition:e,message:t}){!e||process.env.NODE_ENV==="production"||console.warn(t)}const HF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function BF(e,t){return e.some(r=>String(r)===String(t))?e:[...e,t]}function WF(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"}function UF(e){e.preventDefault(),e.stopPropagation()}const At="/rest/$designer",Ca="/rest/$designer-ext";function VF(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(n=>{typeof r[n]=="string"&&(r[n]=new Date(r[n]))}),r}}class gp extends Error{constructor(t,r,n){super(),this.url=t,this.response=r,this.data=n}log(){console.error("Error while sending the request",this)}}async function et(e,t){var i;Bc.next({action:ya.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 s;try{const l=await r.json();((i=l==null?void 0:l.__ERROR)==null?void 0:i.some(u=>u.errCode===1651))&&Bc.next({action:ya.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),s=new gp(e,r,l)}catch{s=new gp(e,r)}throw s.log(),s}return await r.json()}function qF(e){return Bc.next({action:ya.REQUEST_SENT}),e}var dn={},Wt={},Iy;function Li(){if(Iy)return Wt;Iy=1;var e=Wt.ValidationError=function(v,y,m,w,x,O){if(Array.isArray(w)?(this.path=w,this.property=w.reduce(function(R,j){return R+c(j)},"instance")):w!==void 0&&(this.property=w),v&&(this.message=v),m){var _=m.$id||m.id;this.schema=_||m}y!==void 0&&(this.instance=y),this.name=x,this.argument=O,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=Wt.ValidatorResult=function(v,y,m,w){this.instance=v,this.schema=y,this.options=m,this.path=w.path,this.propertyPath=w.propertyPath,this.errors=[],this.throwError=m&&m.throwError,this.throwFirst=m&&m.throwFirst,this.throwAll=m&&m.throwAll,this.disableFormat=m&&m.disableFormat===!0};t.prototype.addError=function(v){var y;if(typeof v=="string")y=new e(v,this.instance,this.schema,this.path);else{if(!v)throw new Error("Missing error detail");if(!v.message)throw new Error("Missing error message");if(!v.name)throw new Error("Missing validator type");y=new e(v.message,this.instance,this.schema,this.path,v.name,v.argument)}if(this.errors.push(y),this.throwFirst)throw new n(this);if(this.throwError)throw y;return y},t.prototype.importErrors=function(v){typeof v=="string"||v&&v.validatorType?this.addError(v):v&&v.errors&&(this.errors=this.errors.concat(v.errors))};function r(S,v){return v+": "+S.toString()+`
|
|
256
|
+
`}t.prototype.toString=function(v){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),Wt.ValidatorResultError=n;function n(S){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n),this.instance=S.instance,this.schema=S.schema,this.options=S.options,this.errors=S.errors}n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Validation Error";var i=Wt.SchemaError=function S(v,y){this.message=v,this.schema=y,Error.call(this,v),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,S)};i.prototype=Object.create(Error.prototype,{constructor:{value:i,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var s=Wt.SchemaContext=function(v,y,m,w,x){this.schema=v,this.options=y,Array.isArray(m)?(this.path=m,this.propertyPath=m.reduce(function(O,_){return O+c(_)},"instance")):this.propertyPath=m,this.base=w,this.schemas=x};s.prototype.resolve=function(v){return b(this.base,v)},s.prototype.makeChild=function(v,y){var m=y===void 0?this.path:this.path.concat([y]),w=v.$id||v.id;let x=b(this.base,w||"");var O=new s(v,this.options,m,x,Object.create(this.schemas));return w&&!O.schemas[x]&&(O.schemas[x]=v),O};var l=Wt.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(S){return typeof S=="string"&&parseFloat(S)===parseInt(S,10)&&!isNaN(S)},regex:function(S){var v=!0;try{new RegExp(S)}catch{v=!1}return v},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"],Wt.isFormat=function(v,y,m){if(typeof v=="string"&&l[y]!==void 0){if(l[y]instanceof RegExp)return l[y].test(v);if(typeof l[y]=="function")return l[y](v)}else if(m&&m.customFormats&&typeof m.customFormats[y]=="function")return m.customFormats[y](v);return!0};var c=Wt.makeSuffix=function(v){return v=v.toString(),!v.match(/[.\s\[\]]/)&&!v.match(/^[\d]/)?"."+v:v.match(/^\d+$/)?"["+v+"]":"["+JSON.stringify(v)+"]"};Wt.deepCompareStrict=function S(v,y){if(typeof v!=typeof y)return!1;if(Array.isArray(v))return!Array.isArray(y)||v.length!==y.length?!1:v.every(function(x,O){return S(v[O],y[O])});if(typeof v=="object"){if(!v||!y)return v===y;var m=Object.keys(v),w=Object.keys(y);return m.length!==w.length?!1:m.every(function(x){return S(v[x],y[x])})}return v===y};function u(S,v,y,m){typeof y=="object"?v[m]=p(S[m],y):S.indexOf(y)===-1&&v.push(y)}function f(S,v,y){v[y]=S[y]}function g(S,v,y,m){typeof v[m]!="object"||!v[m]?y[m]=v[m]:S[m]?y[m]=p(S[m],v[m]):y[m]=v[m]}function p(S,v){var y=Array.isArray(v),m=y&&[]||{};return y?(S=S||[],m=m.concat(S),v.forEach(u.bind(null,S,m))):(S&&typeof S=="object"&&Object.keys(S).forEach(f.bind(null,S,m)),Object.keys(v).forEach(g.bind(null,S,v,m))),m}Wt.deepMerge=p,Wt.objectGetPath=function(v,y){for(var m=y.split("/").slice(1),w;typeof(w=m.shift())=="string";){var x=decodeURIComponent(w.replace(/~0/,"~").replace(/~1/g,"/"));if(!(x in v))return;v=v[x]}return v};function h(S){return"/"+encodeURIComponent(S).replace(/~/g,"%7E")}Wt.encodePath=function(v){return v.map(h).join("")},Wt.getDecimalPlaces=function(v){var y=0;if(isNaN(v))return y;typeof v!="number"&&(v=Number(v));var m=v.toString().split("e");if(m.length===2){if(m[1][0]!=="-")return y;y=Number(m[1].slice(1))}var w=m[0].split(".");return w.length===2&&(y+=w[1].length),y},Wt.isSchema=function(v){return typeof v=="object"&&v||typeof v=="boolean"};var b=Wt.resolveUrl=function(v,y){const m=new URL(y,new URL(v,"resolve://"));if(m.protocol==="resolve:"){const{pathname:w,search:x,hash:O}=m;return w+x+O}return m.toString()};return Wt}var If,Ny;function GF(){if(Ny)return If;Ny=1;var e=Li(),t=e.ValidatorResult,r=e.SchemaError,n={};n.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var i=n.validators={};i.type=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S),y=Array.isArray(h.type)?h.type:[h.type];if(!y.some(this.testType.bind(this,p,h,b,S))){var m=y.map(function(w){if(w){var x=w.$id||w.id;return x?"<"+x+">":w+""}});v.addError({name:"type",argument:m,message:"is not of a type(s) "+m})}return v};function s(g,p,h,b,S){var v=p.throwError,y=p.throwAll;p.throwError=!1,p.throwAll=!1;var m=this.validateSchema(g,S,p,h);return p.throwError=v,p.throwAll=y,!m.valid&&b instanceof Function&&b(m),m.valid}i.anyOf=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S),y=new t(p,h,b,S);if(!Array.isArray(h.anyOf))throw new r("anyOf must be an array");if(!h.anyOf.some(s.bind(this,p,b,S,function(w){y.importErrors(w)}))){var m=h.anyOf.map(function(w,x){var O=w.$id||w.id;return O?"<"+O+">":w.title&&JSON.stringify(w.title)||w.$ref&&"<"+w.$ref+">"||"[subschema "+x+"]"});b.nestedErrors&&v.importErrors(y),v.addError({name:"anyOf",argument:m,message:"is not any of "+m.join(",")})}return v},i.allOf=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.allOf))throw new r("allOf must be an array");var v=new t(p,h,b,S),y=this;return h.allOf.forEach(function(m,w){var x=y.validateSchema(p,m,b,S);if(!x.valid){var O=m.$id||m.id,_=O||m.title&&JSON.stringify(m.title)||m.$ref&&"<"+m.$ref+">"||"[subschema "+w+"]";v.addError({name:"allOf",argument:{id:_,length:x.errors.length,valid:x},message:"does not match allOf schema "+_+" with "+x.errors.length+" error[s]:"}),v.importErrors(x)}}),v},i.oneOf=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.oneOf))throw new r("oneOf must be an array");var v=new t(p,h,b,S),y=new t(p,h,b,S),m=h.oneOf.filter(s.bind(this,p,b,S,function(x){y.importErrors(x)})).length,w=h.oneOf.map(function(x,O){var _=x.$id||x.id;return _||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+O+"]"});return m!==1&&(b.nestedErrors&&v.importErrors(y),v.addError({name:"oneOf",argument:w,message:"is not exactly one from "+w.join(",")})),v},i.if=function(p,h,b,S){if(p===void 0)return null;if(!e.isSchema(h.if))throw new Error('Expected "if" keyword to be a schema');var v=s.call(this,p,b,S,null,h.if),y=new t(p,h,b,S),m;if(v){if(h.then===void 0)return;if(!e.isSchema(h.then))throw new Error('Expected "then" keyword to be a schema');m=this.validateSchema(p,h.then,b,S.makeChild(h.then)),y.importErrors(m)}else{if(h.else===void 0)return;if(!e.isSchema(h.else))throw new Error('Expected "else" keyword to be a schema');m=this.validateSchema(p,h.else,b,S.makeChild(h.else)),y.importErrors(m)}return y};function l(g,p){if(Object.hasOwnProperty.call(g,p))return g[p];if(p in g){for(;g=Object.getPrototypeOf(g);)if(Object.propertyIsEnumerable.call(g,p))return g[p]}}i.propertyNames=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.propertyNames!==void 0?h.propertyNames:{};if(!e.isSchema(y))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var m in p)if(l(p,m)!==void 0){var w=this.validateSchema(m,y,b,S.makeChild(y));v.importErrors(w)}return v}},i.properties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.properties||{};for(var m in y){var w=y[m];if(w!==void 0){if(w===null)throw new r('Unexpected null, expected schema in "properties"');typeof b.preValidateProperty=="function"&&b.preValidateProperty(p,m,w,b,S);var x=l(p,m),O=this.validateSchema(x,w,b,S.makeChild(w,m));O.instance!==v.instance[m]&&(v.instance[m]=O.instance),v.importErrors(O)}}return v}};function c(g,p,h,b,S,v){if(this.types.object(g)&&!(p.properties&&p.properties[S]!==void 0))if(p.additionalProperties===!1)v.addError({name:"additionalProperties",argument:S,message:"is not allowed to have the additional property "+JSON.stringify(S)});else{var y=p.additionalProperties||{};typeof h.preValidateProperty=="function"&&h.preValidateProperty(g,S,y,h,b);var m=this.validateSchema(g[S],y,h,b.makeChild(y,S));m.instance!==v.instance[S]&&(v.instance[S]=m.instance),v.importErrors(m)}}i.patternProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.patternProperties||{};for(var m in p){var w=!0;for(var x in y){var O=y[x];if(O!==void 0){if(O===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var _=new RegExp(x,"u")}catch{_=new RegExp(x)}if(_.test(m)){w=!1,typeof b.preValidateProperty=="function"&&b.preValidateProperty(p,m,O,b,S);var R=this.validateSchema(p[m],O,b,S.makeChild(O,m));R.instance!==v.instance[m]&&(v.instance[m]=R.instance),v.importErrors(R)}}}w&&c.call(this,p,h,b,S,m,v)}return v}},i.additionalProperties=function(p,h,b,S){if(this.types.object(p)){if(h.patternProperties)return null;var v=new t(p,h,b,S);for(var y in p)c.call(this,p,h,b,S,y,v);return v}},i.minProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=Object.keys(p);return y.length>=h.minProperties||v.addError({name:"minProperties",argument:h.minProperties,message:"does not meet minimum property length of "+h.minProperties}),v}},i.maxProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=Object.keys(p);return y.length<=h.maxProperties||v.addError({name:"maxProperties",argument:h.maxProperties,message:"does not meet maximum property length of "+h.maxProperties}),v}},i.items=function(p,h,b,S){var v=this;if(this.types.array(p)&&h.items!==void 0){var y=new t(p,h,b,S);return p.every(function(m,w){if(Array.isArray(h.items))var x=h.items[w]===void 0?h.additionalItems:h.items[w];else var x=h.items;if(x===void 0)return!0;if(x===!1)return y.addError({name:"items",message:"additionalItems not permitted"}),!1;var O=v.validateSchema(m,x,b,S.makeChild(x,w));return O.instance!==y.instance[w]&&(y.instance[w]=O.instance),y.importErrors(O),!0}),y}},i.contains=function(p,h,b,S){var v=this;if(this.types.array(p)&&h.contains!==void 0){if(!e.isSchema(h.contains))throw new Error('Expected "contains" keyword to be a schema');var y=new t(p,h,b,S),m=p.some(function(w,x){var O=v.validateSchema(w,h.contains,b,S.makeChild(h.contains,x));return O.errors.length===0});return m===!1&&y.addError({name:"contains",argument:h.contains,message:"must contain an item matching given schema"}),y}},i.minimum=function(p,h,b,S){if(this.types.number(p)){var v=new t(p,h,b,S);return h.exclusiveMinimum&&h.exclusiveMinimum===!0?p>h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than "+h.minimum}):p>=h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than or equal to "+h.minimum}),v}},i.maximum=function(p,h,b,S){if(this.types.number(p)){var v=new t(p,h,b,S);return h.exclusiveMaximum&&h.exclusiveMaximum===!0?p<h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than "+h.maximum}):p<=h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than or equal to "+h.maximum}),v}},i.exclusiveMinimum=function(p,h,b,S){if(typeof h.exclusiveMinimum!="boolean"&&this.types.number(p)){var v=new t(p,h,b,S),y=p>h.exclusiveMinimum;return y||v.addError({name:"exclusiveMinimum",argument:h.exclusiveMinimum,message:"must be strictly greater than "+h.exclusiveMinimum}),v}},i.exclusiveMaximum=function(p,h,b,S){if(typeof h.exclusiveMaximum!="boolean"&&this.types.number(p)){var v=new t(p,h,b,S),y=p<h.exclusiveMaximum;return y||v.addError({name:"exclusiveMaximum",argument:h.exclusiveMaximum,message:"must be strictly less than "+h.exclusiveMaximum}),v}};var u=function(p,h,b,S,v,y){if(this.types.number(p)){var m=h[v];if(m==0)throw new r(v+" cannot be zero");var w=new t(p,h,b,S),x=e.getDecimalPlaces(p),O=e.getDecimalPlaces(m),_=Math.max(x,O),R=Math.pow(10,_);return Math.round(p*R)%Math.round(m*R)!==0&&w.addError({name:v,argument:m,message:y+JSON.stringify(m)}),w}};i.multipleOf=function(p,h,b,S){return u.call(this,p,h,b,S,"multipleOf","is not a multiple of (divisible by) ")},i.divisibleBy=function(p,h,b,S){return u.call(this,p,h,b,S,"divisibleBy","is not divisible by (multiple of) ")},i.required=function(p,h,b,S){var v=new t(p,h,b,S);return p===void 0&&h.required===!0?v.addError({name:"required",message:"is required"}):this.types.object(p)&&Array.isArray(h.required)&&h.required.forEach(function(y){l(p,y)===void 0&&v.addError({name:"required",argument:y,message:"requires property "+JSON.stringify(y)})}),v},i.pattern=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=h.pattern;try{var m=new RegExp(y,"u")}catch{m=new RegExp(y)}return p.match(m)||v.addError({name:"pattern",argument:h.pattern,message:"does not match pattern "+JSON.stringify(h.pattern.toString())}),v}},i.format=function(p,h,b,S){if(p!==void 0){var v=new t(p,h,b,S);return!v.disableFormat&&!e.isFormat(p,h.format,this)&&v.addError({name:"format",argument:h.format,message:"does not conform to the "+JSON.stringify(h.format)+" format"}),v}},i.minLength=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=p.match(/[\uDC00-\uDFFF]/g),m=p.length-(y?y.length:0);return m>=h.minLength||v.addError({name:"minLength",argument:h.minLength,message:"does not meet minimum length of "+h.minLength}),v}},i.maxLength=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=p.match(/[\uDC00-\uDFFF]/g),m=p.length-(y?y.length:0);return m<=h.maxLength||v.addError({name:"maxLength",argument:h.maxLength,message:"does not meet maximum length of "+h.maxLength}),v}},i.minItems=function(p,h,b,S){if(this.types.array(p)){var v=new t(p,h,b,S);return p.length>=h.minItems||v.addError({name:"minItems",argument:h.minItems,message:"does not meet minimum length of "+h.minItems}),v}},i.maxItems=function(p,h,b,S){if(this.types.array(p)){var v=new t(p,h,b,S);return p.length<=h.maxItems||v.addError({name:"maxItems",argument:h.maxItems,message:"does not meet maximum length of "+h.maxItems}),v}};function f(g,p,h){var b,S=h.length;for(b=p+1,S;b<S;b++)if(e.deepCompareStrict(g,h[b]))return!1;return!0}return i.uniqueItems=function(p,h,b,S){if(h.uniqueItems===!0&&this.types.array(p)){var v=new t(p,h,b,S);return p.every(f)||v.addError({name:"uniqueItems",message:"contains duplicate item"}),v}},i.dependencies=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S);for(var y in h.dependencies)if(p[y]!==void 0){var m=h.dependencies[y],w=S.makeChild(m,y);if(typeof m=="string"&&(m=[m]),Array.isArray(m))m.forEach(function(O){p[O]===void 0&&v.addError({name:"dependencies",argument:w.propertyPath,message:"property "+O+" not found, required by "+w.propertyPath})});else{var x=this.validateSchema(p,m,b,w);v.instance!==x.instance&&(v.instance=x.instance),x&&x.errors.length&&(v.addError({name:"dependencies",argument:w.propertyPath,message:"does not meet dependency required by "+w.propertyPath}),v.importErrors(x))}}return v}},i.enum=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.enum))throw new r("enum expects an array",h);var v=new t(p,h,b,S);return h.enum.some(e.deepCompareStrict.bind(null,p))||v.addError({name:"enum",argument:h.enum,message:"is not one of enum values: "+h.enum.map(String).join(",")}),v},i.const=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S);return e.deepCompareStrict(h.const,p)||v.addError({name:"const",argument:h.const,message:"does not exactly match expected constant: "+h.const}),v},i.not=i.disallow=function(p,h,b,S){var v=this;if(p===void 0)return null;var y=new t(p,h,b,S),m=h.not||h.disallow;return m?(Array.isArray(m)||(m=[m]),m.forEach(function(w){if(v.testType(p,h,b,S,w)){var x=w&&(w.$id||w.id),O=x||w;y.addError({name:"not",argument:O,message:"is of prohibited type "+O})}}),y):null},If=n,If}var ic={},My;function vp(){if(My)return ic;My=1;var e=Li();ic.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return ic.scan=function(n,i){function s(g,p){if(!p||typeof p!="object")return;if(p.$ref){let v=e.resolveUrl(g,p.$ref);f[v]=f[v]?f[v]+1:0;return}var h=p.$id||p.id;let b=e.resolveUrl(g,h);var S=h?b:g;if(S){if(S.indexOf("#")<0&&(S+="#"),u[S]){if(!e.deepCompareStrict(u[S],p))throw new Error("Schema <"+S+"> already exists with different definition");return u[S]}u[S]=p,S[S.length-1]=="#"&&(u[S.substring(0,S.length-1)]=p)}l(S+"/items",Array.isArray(p.items)?p.items:[p.items]),l(S+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),s(S+"/additionalItems",p.additionalItems),c(S+"/properties",p.properties),s(S+"/additionalProperties",p.additionalProperties),c(S+"/definitions",p.definitions),c(S+"/patternProperties",p.patternProperties),c(S+"/dependencies",p.dependencies),l(S+"/disallow",p.disallow),l(S+"/allOf",p.allOf),l(S+"/anyOf",p.anyOf),l(S+"/oneOf",p.oneOf),s(S+"/not",p.not)}function l(g,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)s(g+"/"+h,p[h])}function c(g,p){if(!(!p||typeof p!="object"))for(var h in p)s(g+"/"+h,p[h])}var u={},f={};return s(n,i),new t(u,f)},ic}var Nf,Dy;function ZF(){if(Dy)return Nf;Dy=1;var e=GF(),t=Li(),r=vp().scan,n=t.ValidatorResult,i=t.ValidatorResultError,s=t.SchemaError,l=t.SchemaContext,c="/",u=function p(){this.customFormats=Object.create(p.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(g),this.attributes=Object.create(e.validators)};u.prototype.customFormats={},u.prototype.schemas=null,u.prototype.types=null,u.prototype.attributes=null,u.prototype.unresolvedRefs=null,u.prototype.addSchema=function(h,b){var S=this;if(!h)return null;var v=r(b||c,h),y=b||h.$id||h.id;for(var m in v.id)this.schemas[m]=v.id[m];for(var m in v.ref)this.unresolvedRefs.push(m);return this.unresolvedRefs=this.unresolvedRefs.filter(function(w){return typeof S.schemas[w]>"u"}),this.schemas[y]},u.prototype.addSubSchemaArray=function(h,b){if(Array.isArray(b))for(var S=0;S<b.length;S++)this.addSubSchema(h,b[S])},u.prototype.addSubSchemaObject=function(h,b){if(!(!b||typeof b!="object"))for(var S in b)this.addSubSchema(h,b[S])},u.prototype.setSchemas=function(h){this.schemas=h},u.prototype.getSchema=function(h){return this.schemas[h]},u.prototype.validate=function(h,b,S,v){if(typeof b!="boolean"&&typeof b!="object"||b===null)throw new s("Expected `schema` to be an object or boolean");S||(S={});var y=b.$id||b.id;let m=t.resolveUrl(S.base,y||"");if(!v){v=new l(b,S,[],m,Object.create(this.schemas)),v.schemas[m]||(v.schemas[m]=b);var w=r(m,b);for(var x in w.id){var O=w.id[x];v.schemas[x]=O}}if(S.required&&h===void 0){var _=new n(h,b,S,v);return _.addError("is required, but is undefined"),_}var _=this.validateSchema(h,b,S,v);if(_){if(S.throwAll&&_.errors.length)throw new i(_)}else throw new Error("Result undefined");return _};function f(p){var h=typeof p=="string"?p:p.$ref;return typeof h=="string"?h:!1}u.prototype.validateSchema=function(h,b,S,v){var y=new n(h,b,S,v);if(typeof b=="boolean")b===!0?b={}:b===!1&&(b={type:[]});else if(!b)throw new Error("schema is undefined");if(b.extends)if(Array.isArray(b.extends)){var m={schema:b,ctx:v};b.extends.forEach(this.schemaTraverser.bind(this,m)),b=m.schema,m.schema=null,m.ctx=null,m=null}else b=t.deepMerge(b,this.superResolve(b.extends,v));var w=f(b);if(w){var x=this.resolve(b,w,v),O=new l(x.subschema,S,v.path,x.switchSchema,v.schemas);return this.validateSchema(h,x.subschema,S,O)}var _=S&&S.skipAttributes||[];for(var R in b)if(!e.ignoreProperties[R]&&_.indexOf(R)<0){var j=null,P=this.attributes[R];if(P)j=P.call(this,h,b,S,v);else if(S.allowUnknownAttributes===!1)throw new s("Unsupported attribute: "+R,b);j&&y.importErrors(j)}if(typeof S.rewrite=="function"){var z=S.rewrite.call(this,h,b,S,v);y.instance=z}return y},u.prototype.schemaTraverser=function(h,b){h.schema=t.deepMerge(h.schema,this.superResolve(b,h.ctx))},u.prototype.superResolve=function(h,b){var S=f(h);return S?this.resolve(h,S,b).subschema:h},u.prototype.resolve=function(h,b,S){if(b=S.resolve(b),S.schemas[b])return{subschema:S.schemas[b],switchSchema:b};let y=new URL(b,"thismessage::/").hash;var m=y&&y.length&&b.substr(0,b.length-y.length);if(!m||!S.schemas[m])throw new s("no such schema <"+b+">",h);var w=t.objectGetPath(S.schemas[m],y.substr(1));if(w===void 0)throw new s("no such schema "+y+" located in <"+m+">",h);return{subschema:w,switchSchema:b}},u.prototype.testType=function(h,b,S,v,y){if(y!==void 0){if(y===null)throw new s('Unexpected null in "type" keyword');if(typeof this.types[y]=="function")return this.types[y].call(this,h);if(y&&typeof y=="object"){var m=this.validateSchema(h,y,S,v);return m===void 0||!(m&&m.errors.length)}return!0}};var g=u.prototype.types={};return g.string=function(h){return typeof h=="string"},g.number=function(h){return typeof h=="number"&&isFinite(h)},g.integer=function(h){return typeof h=="number"&&h%1===0},g.boolean=function(h){return typeof h=="boolean"},g.array=function(h){return Array.isArray(h)},g.null=function(h){return h===null},g.date=function(h){return h instanceof Date},g.any=function(h){return!0},g.object=function(h){return h&&typeof h=="object"&&!Array.isArray(h)&&!(h instanceof Date)},Nf=u,Nf}var zy;function KF(){if(zy)return dn;zy=1;var e=dn.Validator=ZF();return dn.ValidatorResult=Li().ValidatorResult,dn.ValidatorResultError=Li().ValidatorResultError,dn.ValidationError=Li().ValidationError,dn.SchemaError=Li().SchemaError,dn.SchemaScanResult=vp().SchemaScanResult,dn.scan=vp().scan,dn.validate=function(t,r,n){var i=new e;return i.validate(t,r,n)},dn}var YF=KF();const xa="/$shared",XF={"**/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 oE(e){const t=Object.entries(XF).find(([r])=>qt(e,r));return t==null?void 0:t[1]}function fu(e){var n;const t=(n=oE(e))==null?void 0:n.content;if(!t)return;const r=e.replace(`${xa}/`,"Shared/");Ah({name:r,content:t,asText:typeof t=="string"})}async function JF(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await et(`${xa}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){sE(r)&&fu(`${xa}/${t}`)}}function Pa({path:e,createIfNotExists:t=!1}){const r=`${xa}/${e}`;return et(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(n=>{const i=oE(e);let s=n;if(!i)return s;if(typeof s=="string")try{switch(i.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(i.schema&&!new YF.Validator().validate(s,i.schema).valid)throw new Error("Invalid Schema");return s}).catch(n=>{if(sE(n)&&t){const i=QF(n,e);lh.next({message:i,kind:"warning"}),fu(r)}throw n})}function sE(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 QF(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 e6(e){return et(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function t6(e){return et(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const aE=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:hh.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function r6(){const{hostname:e,host:t,protocol:r}=window.location,n=r==="https:";try{const i=await et(At,{method:"POST",body:JSON.stringify({verb:mi.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(i.rendererPath)return i.rendererPath;const l=`http://${e}:${i.webServerHTTPPort}`,c=`https://${e}:${i.webServerHTTPSPort}`;return i.webServerHTTPPort&&i.webServerHTTPSPort?n?c:l:i.webServerHTTPPort?l:c})();return{projectOpened:i.webServerHTTPSPort>0||i.webServerHTTPPort>0,remoteDebuggerMode:i.remoteDebuggerMode,baseUrl:s,qodly:typeof i.qodly>"u"?!0:i.qodly,urls:{renderer:i.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${n?"s":""}://${t}/remoteDebugger`,lsp:`ws${n?"s":""}://${t}/LSP`},isRestActive:i.isRESTActive}}catch(i){return console.error(i),aE()}}async function lE(e){return await et(At,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function n6(...e){return(await Promise.all(e.map(n=>lE({root:n,verb:mi.GET_FOLDER})))).map(({children:n})=>n.map(({name:i,date:s,type:l})=>({name:i,type:l,date:s,path:`${l}/${i}`}))).flat()}function i6(e,t={}){const{sanitize:r=!0}=t;return et(`/rest/$getWebForm/${e}`,{method:"GET"}).then(n=>{if(!(n!=null&&n.components)||!r)return n;const i=new Map;return{...n,components:He.entries(n.components).map(([s,l])=>{const c=s,{resolvedName:u}=l.type;if(u==="WebformLoader"){const f=gi.generate();i.set(s,f),s=f}return[s,l,c]}).reduce((s,[l,c,u])=>{var f;return c.nodes&&(c.nodes=c.nodes.map(g=>i.get(g)||g)),c.linkedNodes&&(c.linkedNodes=He.entries(c.linkedNodes).reduce((g,[p,h])=>({...g,[p]:i.get(h)||h}),{})),(f=c.props)!=null&&f.events&&(c.props.events=c.props.events.map(g=>(g.type==="navigation"&&g.loader&&(g.loader=i.get(g.loader)||g.loader),g))),{...s,[l]:{...c,props:{...c.props,__originalID:u}}}},{})}})}function o6(e){return et(At,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Fe.METHOD,Fe.CLASS].includes(t.type)?lu(t.content):t.content}))}function s6(e){return e.type==="folder"?et(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):et(At,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function a6(e){return e.type==="folder"?(await et(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await et(At,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function l6(e){return et(At,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function c6(e){return et(At,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function u6(e){return(await et(At,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function d6(...e){return await et(At,{method:"POST",body:JSON.stringify({verb:mi.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function f6(e){const t=await et("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function p6(){return await et("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function h6(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,n=await(await fetch(t)).text(),{supported:i}=JSON.parse(n);return i}catch{return[]}}async function g6({name:e,path:t="",root:r="root",asText:n=!1}){return et(At,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:n}),headers:new Headers({"Content-Type":"application/json"})})}async function v6(e={}){try{return{...await Pa({path:"shared_datasources.json",...e}),...Uc}}catch{return{...Uc}}}async function m6(e={}){try{return await Pa({path:"shared_app_events.json",...e})}catch{return[]}}async function b6(e={}){try{return await Pa({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function y6(e={}){try{return await Pa({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function w6(){try{return await et("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function x6(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const S6=wh(),E6=async e=>{const t={verb:mi.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:He.omit(e,He.keys(Uc))};return S6(()=>et(At,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},_6=wh(),O6=async e=>{const t={verb:mi.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return _6(()=>et(At,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},Ah=async e=>{const t=await et(At,{method:"POST",body:JSON.stringify({...e,verb:mi.SET_FILE_CONTENT,root:ph.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=yh(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},k6=async e=>await Ah({name:"crafted_components.json",path:Jr.WEBFORMS,content:e});function A6(e){return et(At,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function T6(e){return et(At,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function R6(e){return et(At,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function C6(e){return et(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)?lu(t.content):t.content}).catch(t=>{var r,n;throw((n=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:n.errCode)===1839&&fu(e.path),t})}function P6(e){return et(At,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function I6(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function N6(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 M6(e){const t=I6(e).split(/[;,]/g).filter(Boolean).map(i=>{const s=i.split(":")[0].trim(),l=i.split(":")[1].trim();return{name:s,type:l}}),r=N6(e),n=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:n}}async function D6(e,t){const n=e.split(".").pop();try{const i=await et(At,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:n}),headers:new Headers({"Content-Type":"application/json"})});i.content=lu(i.content);const{params:s,result:l}=M6(i.parameters);return{...i,params:s,returns:l}}catch(i){return console.error(i),{className:t,functionName:n,filePath:e,content:"",params:[]}}}var cE=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(cE||{});function z6(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function L6(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}const $6={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},j6={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}},uE=N.createContext(void 0),F6=N.memo(({children:e,isInsideStudio:t,isStandaloneEditor:r})=>{const n=N.useMemo(()=>({isInsideStudio:t,isStandaloneEditor:r}),[t,r]);return A.jsx(uE.Provider,{value:n,children:e})});function H6(){const e=N.useContext(uE);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}const dE=N.createContext(null),B6=5e3,W6={top:"top-4",bottom:"bottom-4"};function U6({children:e}){const[t,r]=N.useState([]),n=N.useRef(0),i=N.useCallback(c=>{r(u=>u.filter(f=>f.id!==c))},[]),s=N.useCallback((c,u)=>{const f=++n.current,g={id:f,containerStyle:u==null?void 0:u.containerStyle,duration:c.duration??B6,position:c.position??"bottom",render:c.render};return r(p=>[...p,g]),f},[]);N.useEffect(()=>{const c=lh.subscribe(u=>{s({position:"bottom",render:({onClose:f})=>A.jsx(xx,{...u,onClose:f})})});return()=>{c.unsubscribe()}},[s]);const l=N.useMemo(()=>({pushToast:s,removeToast:i}),[s,i]);return A.jsxs(dE.Provider,{value:l,children:[e,typeof document<"u"?En.createPortal(A.jsx(A.Fragment,{children:["top","bottom"].map(c=>{const u=t.filter(f=>f.position===c);return u.length===0?null:A.jsx("div",{className:`pointer-events-none fixed inset-x-4 z-[2147483647] flex flex-col items-center gap-3 ${W6[c]}`,children:u.map(f=>A.jsx(V6,{toast:f,onClose:()=>i(f.id)},f.id))},c)})}),document.body):null]})}function V6({toast:e,onClose:t}){return N.useEffect(()=>{if(e.duration===null)return;const r=window.setTimeout(t,e.duration);return()=>window.clearTimeout(r)},[t,e.duration]),A.jsx("div",{className:"pointer-events-auto",style:e.containerStyle,children:e.render({onClose:t})})}function q6(e){const t=N.useContext(dE);if(!t)throw new Error("useToast must be used within a ToastProvider");return N.useCallback(r=>t.pushToast(r,e),[t,e])}exports.API_PREFIX=At;exports.AppLoader=b4;exports.DATASOURCE_THEMES=$6;exports.DatasourcesActions=J1;exports.DebuggerActions=tS;exports.DesignerRequestVerb=mi;exports.Dialog=P2;exports.DialogBody=Xy;exports.EActivity=cE;exports.ECustomStylePropsViewMode=YS;exports.EDITOR=j6;exports.EDisplayMode=Oh;exports.EIDENTIFIERS=JS;exports.EPermissionType=Qe;exports.ERROR_CODES=QS;exports.ESetting=ZS;exports.ESubPermissionType=dt;exports.ETooltipBehavior=KS;exports.EWebFormStyleClassScope=GS;exports.EXT_API_PREFIX=Ca;exports.FileFolderType=Fe;exports.FolderRootPath=Jr;exports.FolderRootType=ph;exports.Grid=rL;exports.GridItem=nL;exports.HTTPError=gp;exports.HTTP_HANDLERS_TAB_PATH=mh;exports.IPreemptive=wa;exports.IPublished=DS;exports.IPublishedRestScope=Sh;exports.IdentityProvider=EL;exports.Image=z1;exports.Incase=mc;exports.IndentLines=kx;exports.InvalidJsonError=Q4;exports.LOCALIZATION_TAB_PATH=bh;exports.LOCATION_DATASOURCE_ID=IS;exports.LogoSVG=x1;exports.LspActions=eS;exports.MAX_FILE_NAME_LENGTH=ch;exports.MODEL_TAB_PATH=wS;exports.Modal=G4;exports.ModalCloseReason=To;exports.ModalColor=Io;exports.ModalIcons=tp;exports.ModalType=eh;exports.Mutex=ES;exports.NameError=uh;exports.Overlay=Yy;exports.PANEL_COLLAPSED_HEIGHT=hn;exports.PANEL_INITIAL_OPEN_RATIO=N1;exports.PANEL_MAX_RATIO=M1;exports.PERMISSIONS=Eh;exports.Panel=J4;exports.PopperTooltip=v4;exports.Portal=jy;exports.PublishOptions=rF;exports.QODLY_NAMESPACE=ta;exports.ROLES_TAB_PATH=gh;exports.ROOT_WEBFORM_STATE=eE;exports.RemoteDebuggerMode=hh;exports.SETTINGS_TAB_PATH=vh;exports.SHARED_API_PREFIX=xa;exports.SHARED_USER_NAMESPACE=Uc;exports.SearchInput=eL;exports.SimpleGrid=iL;exports.SourceCodeDescriptor=XS;exports.StudioContextProvider=F6;exports.Switcher=Ax;exports.THEME_CLASSES=CF;exports.TITLE_DATASOURCE_ID=MS;exports.TabEventsActions=Q1;exports.Tip=a1;exports.TipsProvider=wz;exports.Toast=xx;exports.ToastProvider=U6;exports.ToolbarIcon=tL;exports.Tooltip=g4;exports.Tree=uD;exports.TreeIcon=Sx;exports.TreeNode=$p;exports.USER_LANGUAGE_DATASOURCE_ID=NS;exports.WT_FLAGS_KEYS=RF;exports.WebformActions=X1;exports.WebformEventsActions=ya;exports.ZoomComponent=Y4;exports.ZoomLevel=I1;exports._isArrayDatasource=Yj;exports._isObjectDatasource=Xj;exports.actionsToPrivs=HS;exports.addAttributesToContent=iF;exports.addFolder=l6;exports.addItem=BF;exports.addPermission=bF;exports.addPrivilegeIn=uF;exports.allowed=lF;exports.by=_S;exports.byId=Mj;exports.byPath=Dj;exports.callAll=iE;exports.callAllHandlers=zF;exports.callServerSideParser=qF;exports.checkUpdates=e6;exports.children=qc;exports.createFolder=A6;exports.createPrivilege=fF;exports.createRole=_F;exports.dataAttr=LF;exports.datasourcesSubject=c$;exports.debuggerSubject=p$;exports.deepDeleteCondition=rE;exports.deepSanitizeCondition=nE;exports.dropFile=a6;exports.dropFolder=u6;exports.editors=xS;exports.exists=zj;exports.extractWebformName=Rj;exports.filterBySeriousError=qS;exports.focus=$F;exports.formatErrorsAsBulletToast=TF;exports.generateUUID=hp;exports.getAppSettings=r6;exports.getCashedPrefrences=Lj;exports.getCatalog=p6;exports.getDatasourceId=$j;exports.getDefaultAppSettings=aE;exports.getDefaultContent=NF;exports.getDictByName=WS;exports.getDisplayableFeedbackErrors=AF;exports.getEditors=Tj;exports.getErrorListFromPayload=VS;exports.getFile=o6;exports.getFileContent=g6;exports.getFileExtentionFromType=SS;exports.getFilePath=DF;exports.getFilenameAndTypeFromPath=Aj;exports.getFilenameFromType=Cj;exports.getFilesInfo=d6;exports.getFolder=lE;exports.getFolders=n6;exports.getFunctionContent=D6;exports.getGraphData=mF;exports.getInheritedResources=US;exports.getMonacoTheme=x6;exports.getNodeInfo=C6;exports.getPrivilegeById=Vn;exports.getPromotions=EF;exports.getResourceFromType=_h;exports.getSavedConditions=y6;exports.getSharedAppEvents=m6;exports.getSharedCSS=b6;exports.getSharedDatasources=v6;exports.getSharedResource=Pa;exports.getSupportedLanguages=h6;exports.getTypeFromExtension=yh;exports.getUserPrivileges=w6;exports.getWebForm=i6;exports.hasAttributesString=LS;exports.http=et;exports.i18nSubject=g$;exports.initializeDefaultProjectFiles=JF;exports.installUpdates=t6;exports.isArrayDatasource=RS;exports.isBaseState=PF;exports.isDataClassMethod=Bj;exports.isDataStoreMethod=Hj;exports.isDateDatasource=Jj;exports.isEntity=Zj;exports.isEntityDatasource=Vj;exports.isEntityMethod=Wj;exports.isEntitySelection=Kj;exports.isEntitySelectionDatasource=qj;exports.isEntitySelectionMethod=Uj;exports.isInputEvent=WF;exports.isObjectAttribute=jj;exports.isObjectDatasource=CS;exports.isRelatedAttribute=Fj;exports.isRelatedEntitiesAttribute=AS;exports.isRelatedEntityAttribute=TS;exports.isSameNamespace=Qj;exports.isScalarDatasource=PS;exports.isSimpleAttribute=kS;exports.isSimpleDatasource=Gj;exports.loadDS=eF;exports.loadI18n=tF;exports.localeCompare=OS;exports.log=z6;exports.login=f6;exports.lspSubject=f$;exports.mergeRefs=jF;exports.moveItem=R6;exports.outBy=Ij;exports.outById=Nj;exports.parents=du;exports.parseAttributes=nF;exports.parseCatalog=oF;exports.populateShallow=hF;exports.queue=wh;exports.refactorConditions=kh;exports.refactorWebform=IF;exports.removeAttributesString=$S;exports.removeItem=T6;exports.removeMultiplePermissions=wF;exports.removePermission=yF;exports.removePrivilege=cF;exports.removePrivilegeFrom=dF;exports.removeRole=OF;exports.renameFile=s6;exports.renameFolder=c6;exports.renamePrivilege=pF;exports.resetResources=xF;exports.rolesToAPI=vF;exports.sanitizeContent=lu;exports.sanitizeNameCY=sF;exports.sanitizePermissions=BS;exports.sanitizePrivileges=jS;exports.sanitizeRoles=gF;exports.saveContent=P6;exports.saveRole=kF;exports.selectorEqualityFn=MF;exports.setCraftedComponents=k6;exports.setFileContent=Ah;exports.setSharedAppEvents=O6;exports.setSharedSources=E6;exports.sortPrivileges=FS;exports.splitDatasourceID=xh;exports.stopEvent=UF;exports.stringifyAttributes=zS;exports.tabEventsSubject=d$;exports.tasksManagerSubject=h$;exports.toastSubject=lh;exports.togglePermission=SF;exports.trackEvent=L6;exports.transformDates=VF;exports.tryCreateSharedResource=fu;exports.uniquePush=Hr;exports.updateDsCondition=tE;exports.useBoolean=VL;exports.useCallbackRef=qL;exports.useControllableProp=q1;exports.useControllableState=GL;exports.useDidMountEffect=oL;exports.useDoubleClick=AL;exports.useDsChangeRenderer=UL;exports.useDsRendererAdapter=WL;exports.useEnhancedState=BL;exports.useFeatureFlags=SL;exports.useFormControlProps=YL;exports.useForwardedRef=xL;exports.useHotkeys=mL;exports.useIdentity=_L;exports.useOutsideClick=bL;exports.usePrevious=yL;exports.useSafeLayoutEffect=ZL;exports.useStateObject=OL;exports.useStateRef=wL;exports.useStudioContext=H6;exports.useTip=s1;exports.useToast=q6;exports.useUpdateEffect=KL;exports.validateName=au;exports.validateServerSide=v$;exports.validateValue=m$;exports.visuallyHiddenStyle=HF;exports.warn=FF;exports.webformEventsSubject=Bc;exports.webformSubject=u$;
|
|
206
257
|
//# sourceMappingURL=index.cjs.js.map
|