@ws-ui/shared 1.13.5 → 1.13.6
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/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 +5 -0
- 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 +93 -92
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +11131 -9417
- 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 +7 -0
- 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 +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";var zO=Object.defineProperty;var yh=e=>{throw TypeError(e)};var WO=(e,t,r)=>t in e?zO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ye=(e,t,r)=>WO(e,typeof t!="symbol"?t+"":t,r),xl=(e,t,r)=>t.has(e)||yh("Cannot "+r);var Y=(e,t,r)=>(xl(e,t,"read from private field"),r?r.call(e):t.get(e)),gt=(e,t,r)=>t.has(e)?yh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),je=(e,t,r,i)=>(xl(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),de=(e,t,r)=>(xl(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react/jsx-runtime"),W=require("react"),zo=require("react-dom"),tt=require("@ws-ui/icons"),dc=require("@emotion/react"),UO=require("re-resizable");function ev(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const $=ev(W),BO=ev(zo),tv=({children:e,container:t=document.body})=>zo.createPortal(e,t);var bh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},wh=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,Mt="top",or="bottom",sr="right",Ft="left",Bc="auto",Wo=[Mt,or,sr,Ft],Si="start",Co="end",HO="clippingParents",rv="viewport",Zi="popper",qO="reference",xh=Wo.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Co])},[]),nv=[].concat(Wo,[Bc]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Co])},[]),ZO="beforeRead",GO="read",KO="afterRead",VO="beforeMain",XO="main",YO="afterMain",JO="beforeWrite",QO="write",eA="afterWrite",tA=[ZO,GO,KO,VO,XO,YO,JO,QO,eA];function Ir(e){return e?(e.nodeName||"").toLowerCase():null}function Gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hn(e){var t=Gt(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Hc(e){if(typeof ShadowRoot>"u")return!1;var t=Gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rA(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},s=t.attributes[r]||{},a=t.elements[r];!ir(a)||!Ir(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(u){var c=s[u];c===!1?a.removeAttribute(u):a.setAttribute(u,c===!0?"":c)}))})}function nA(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],a=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=u.reduce(function(f,m){return f[m]="",f},{});!ir(s)||!Ir(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const iA={name:"applyStyles",enabled:!0,phase:"write",fn:rA,effect:nA,requires:["computeStyles"]};function kr(e){return e.split("-")[0]}var Un=Math.max,ba=Math.min,Ei=Math.round;function pc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function iv(){return!/^((?!chrome|android).)*safari/i.test(pc())}function _i(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),s=1,a=1;t&&ir(e)&&(s=e.offsetWidth>0&&Ei(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ei(i.height)/e.offsetHeight||1);var u=Hn(e)?Gt(e):window,c=u.visualViewport,f=!iv()&&r,m=(i.left+(f&&c?c.offsetLeft:0))/s,y=(i.top+(f&&c?c.offsetTop:0))/a,p=i.width/s,g=i.height/a;return{width:p,height:g,top:y,right:m+p,bottom:y+g,left:m,x:m,y}}function qc(e){var t=_i(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function ov(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Hc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Yr(e){return Gt(e).getComputedStyle(e)}function oA(e){return["table","td","th"].indexOf(Ir(e))>=0}function Sn(e){return((Hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function La(e){return Ir(e)==="html"?e:e.assignedSlot||e.parentNode||(Hc(e)?e.host:null)||Sn(e)}function Sh(e){return!ir(e)||Yr(e).position==="fixed"?null:e.offsetParent}function sA(e){var t=/firefox/i.test(pc()),r=/Trident/i.test(pc());if(r&&ir(e)){var i=Yr(e);if(i.position==="fixed")return null}var s=La(e);for(Hc(s)&&(s=s.host);ir(s)&&["html","body"].indexOf(Ir(s))<0;){var a=Yr(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function Uo(e){for(var t=Gt(e),r=Sh(e);r&&oA(r)&&Yr(r).position==="static";)r=Sh(r);return r&&(Ir(r)==="html"||Ir(r)==="body"&&Yr(r).position==="static")?t:r||sA(e)||t}function Zc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oo(e,t,r){return Un(e,ba(t,r))}function aA(e,t,r){var i=Oo(e,t,r);return i>r?r:i}function sv(){return{top:0,right:0,bottom:0,left:0}}function av(e){return Object.assign({},sv(),e)}function uv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var uA=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,av(typeof t!="number"?t:uv(t,Wo))};function lA(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,c=kr(r.placement),f=Zc(c),m=[Ft,sr].indexOf(c)>=0,y=m?"height":"width";if(!(!a||!u)){var p=uA(s.padding,r),g=qc(a),v=f==="y"?Mt:Ft,x=f==="y"?or:sr,d=r.rects.reference[y]+r.rects.reference[f]-u[f]-r.rects.popper[y],w=u[f]-r.rects.reference[f],h=Uo(a),S=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0,E=d/2-w/2,R=p[v],O=S-g[y]-p[x],C=S/2-g[y]/2+E,U=Oo(R,C,O),M=f;r.modifiersData[i]=(t={},t[M]=U,t.centerOffset=U-C,t)}}function cA(e){var t=e.state,r=e.options,i=r.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||ov(t.elements.popper,s)&&(t.elements.arrow=s))}const fA={name:"arrow",enabled:!0,phase:"main",fn:lA,effect:cA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oi(e){return e.split("-")[1]}var dA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pA(e,t){var r=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Ei(r*s)/s||0,y:Ei(i*s)/s||0}}function Eh(e){var t,r=e.popper,i=e.popperRect,s=e.placement,a=e.variation,u=e.offsets,c=e.position,f=e.gpuAcceleration,m=e.adaptive,y=e.roundOffsets,p=e.isFixed,g=u.x,v=g===void 0?0:g,x=u.y,d=x===void 0?0:x,w=typeof y=="function"?y({x:v,y:d}):{x:v,y:d};v=w.x,d=w.y;var h=u.hasOwnProperty("x"),S=u.hasOwnProperty("y"),E=Ft,R=Mt,O=window;if(m){var C=Uo(r),U="clientHeight",M="clientWidth";if(C===Gt(r)&&(C=Sn(r),Yr(C).position!=="static"&&c==="absolute"&&(U="scrollHeight",M="scrollWidth")),C=C,s===Mt||(s===Ft||s===sr)&&a===Co){R=or;var D=p&&C===O&&O.visualViewport?O.visualViewport.height:C[U];d-=D-i.height,d*=f?1:-1}if(s===Ft||(s===Mt||s===or)&&a===Co){E=sr;var q=p&&C===O&&O.visualViewport?O.visualViewport.width:C[M];v-=q-i.width,v*=f?1:-1}}var N=Object.assign({position:c},m&&dA),L=y===!0?pA({x:v,y:d},Gt(r)):{x:v,y:d};if(v=L.x,d=L.y,f){var B;return Object.assign({},N,(B={},B[R]=S?"0":"",B[E]=h?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+v+"px, "+d+"px)":"translate3d("+v+"px, "+d+"px, 0)",B))}return Object.assign({},N,(t={},t[R]=S?d+"px":"",t[E]=h?v+"px":"",t.transform="",t))}function hA(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,a=r.adaptive,u=a===void 0?!0:a,c=r.roundOffsets,f=c===void 0?!0:c,m={placement:kr(t.placement),variation:Oi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Eh(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Eh(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hA,data:{}};var zs={passive:!0};function mA(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,u=i.resize,c=u===void 0?!0:u,f=Gt(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&m.forEach(function(y){y.addEventListener("scroll",r.update,zs)}),c&&f.addEventListener("resize",r.update,zs),function(){a&&m.forEach(function(y){y.removeEventListener("scroll",r.update,zs)}),c&&f.removeEventListener("resize",r.update,zs)}}const vA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mA,data:{}};var yA={left:"right",right:"left",bottom:"top",top:"bottom"};function ua(e){return e.replace(/left|right|bottom|top/g,function(t){return yA[t]})}var bA={start:"end",end:"start"};function _h(e){return e.replace(/start|end/g,function(t){return bA[t]})}function Gc(e){var t=Gt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Kc(e){return _i(Sn(e)).left+Gc(e).scrollLeft}function wA(e,t){var r=Gt(e),i=Sn(e),s=r.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,f=0;if(s){a=s.width,u=s.height;var m=iv();(m||!m&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:u,x:c+Kc(e),y:f}}function xA(e){var t,r=Sn(e),i=Gc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Un(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=Un(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+Kc(e),f=-i.scrollTop;return Yr(s||r).direction==="rtl"&&(c+=Un(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:c,y:f}}function Vc(e){var t=Yr(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function lv(e){return["html","body","#document"].indexOf(Ir(e))>=0?e.ownerDocument.body:ir(e)&&Vc(e)?e:lv(La(e))}function Ao(e,t){var r;t===void 0&&(t=[]);var i=lv(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Gt(i),u=s?[a].concat(a.visualViewport||[],Vc(i)?i:[]):i,c=t.concat(u);return s?c:c.concat(Ao(La(u)))}function hc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function SA(e,t){var r=_i(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Oh(e,t,r){return t===rv?hc(wA(e,r)):Hn(t)?SA(t,r):hc(xA(Sn(e)))}function EA(e){var t=Ao(La(e)),r=["absolute","fixed"].indexOf(Yr(e).position)>=0,i=r&&ir(e)?Uo(e):e;return Hn(i)?t.filter(function(s){return Hn(s)&&ov(s,i)&&Ir(s)!=="body"}):[]}function _A(e,t,r,i){var s=t==="clippingParents"?EA(e):[].concat(t),a=[].concat(s,[r]),u=a[0],c=a.reduce(function(f,m){var y=Oh(e,m,i);return f.top=Un(y.top,f.top),f.right=ba(y.right,f.right),f.bottom=ba(y.bottom,f.bottom),f.left=Un(y.left,f.left),f},Oh(e,u,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function cv(e){var t=e.reference,r=e.element,i=e.placement,s=i?kr(i):null,a=i?Oi(i):null,u=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(s){case Mt:f={x:u,y:t.y-r.height};break;case or:f={x:u,y:t.y+t.height};break;case sr:f={x:t.x+t.width,y:c};break;case Ft:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var m=s?Zc(s):null;if(m!=null){var y=m==="y"?"height":"width";switch(a){case Si:f[m]=f[m]-(t[y]/2-r[y]/2);break;case Co:f[m]=f[m]+(t[y]/2-r[y]/2);break}}return f}function ko(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=i===void 0?e.placement:i,a=r.strategy,u=a===void 0?e.strategy:a,c=r.boundary,f=c===void 0?HO:c,m=r.rootBoundary,y=m===void 0?rv:m,p=r.elementContext,g=p===void 0?Zi:p,v=r.altBoundary,x=v===void 0?!1:v,d=r.padding,w=d===void 0?0:d,h=av(typeof w!="number"?w:uv(w,Wo)),S=g===Zi?qO:Zi,E=e.rects.popper,R=e.elements[x?S:g],O=_A(Hn(R)?R:R.contextElement||Sn(e.elements.popper),f,y,u),C=_i(e.elements.reference),U=cv({reference:C,element:E,placement:s}),M=hc(Object.assign({},E,U)),D=g===Zi?M:C,q={top:O.top-D.top+h.top,bottom:D.bottom-O.bottom+h.bottom,left:O.left-D.left+h.left,right:D.right-O.right+h.right},N=e.modifiersData.offset;if(g===Zi&&N){var L=N[s];Object.keys(q).forEach(function(B){var Z=[sr,or].indexOf(B)>=0?1:-1,k=[Mt,or].indexOf(B)>=0?"y":"x";q[B]+=L[k]*Z})}return q}function OA(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,u=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,m=f===void 0?nv:f,y=Oi(i),p=y?c?xh:xh.filter(function(x){return Oi(x)===y}):Wo,g=p.filter(function(x){return m.indexOf(x)>=0});g.length===0&&(g=p);var v=g.reduce(function(x,d){return x[d]=ko(e,{placement:d,boundary:s,rootBoundary:a,padding:u})[kr(d)],x},{});return Object.keys(v).sort(function(x,d){return v[x]-v[d]})}function AA(e){if(kr(e)===Bc)return[];var t=ua(e);return[_h(e),t,_h(t)]}function TA(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,c=u===void 0?!0:u,f=r.fallbackPlacements,m=r.padding,y=r.boundary,p=r.rootBoundary,g=r.altBoundary,v=r.flipVariations,x=v===void 0?!0:v,d=r.allowedAutoPlacements,w=t.options.placement,h=kr(w),S=h===w,E=f||(S||!x?[ua(w)]:AA(w)),R=[w].concat(E).reduce(function(ie,he){return ie.concat(kr(he)===Bc?OA(t,{placement:he,boundary:y,rootBoundary:p,padding:m,flipVariations:x,allowedAutoPlacements:d}):he)},[]),O=t.rects.reference,C=t.rects.popper,U=new Map,M=!0,D=R[0],q=0;q<R.length;q++){var N=R[q],L=kr(N),B=Oi(N)===Si,Z=[Mt,or].indexOf(L)>=0,k=Z?"width":"height",Q=ko(t,{placement:N,boundary:y,rootBoundary:p,altBoundary:g,padding:m}),J=Z?B?sr:Ft:B?or:Mt;O[k]>C[k]&&(J=ua(J));var re=ua(J),ce=[];if(a&&ce.push(Q[L]<=0),c&&ce.push(Q[J]<=0,Q[re]<=0),ce.every(function(ie){return ie})){D=N,M=!1;break}U.set(N,ce)}if(M)for(var G=x?3:1,te=function(he){var fe=R.find(function(ve){var xe=U.get(ve);if(xe)return xe.slice(0,he).every(function(Ae){return Ae})});if(fe)return D=fe,"break"},ne=G;ne>0;ne--){var ue=te(ne);if(ue==="break")break}t.placement!==D&&(t.modifiersData[i]._skip=!0,t.placement=D,t.reset=!0)}}const RA={name:"flip",enabled:!0,phase:"main",fn:TA,requiresIfExists:["offset"],data:{_skip:!1}};function Ah(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Th(e){return[Mt,sr,or,Ft].some(function(t){return e[t]>=0})}function PA(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=ko(t,{elementContext:"reference"}),c=ko(t,{altBoundary:!0}),f=Ah(u,i),m=Ah(c,s,a),y=Th(f),p=Th(m);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:m,isReferenceHidden:y,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":p})}const CA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PA};function kA(e,t,r){var i=kr(e),s=[Ft,Mt].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],c=a[1];return u=u||0,c=(c||0)*s,[Ft,sr].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}function $A(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,u=nv.reduce(function(y,p){return y[p]=kA(p,t.rects,a),y},{}),c=u[t.placement],f=c.x,m=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=m),t.modifiersData[i]=u}const IA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$A};function LA(e){var t=e.state,r=e.name;t.modifiersData[r]=cv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const MA={name:"popperOffsets",enabled:!0,phase:"read",fn:LA,data:{}};function FA(e){return e==="x"?"y":"x"}function DA(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,c=u===void 0?!1:u,f=r.boundary,m=r.rootBoundary,y=r.altBoundary,p=r.padding,g=r.tether,v=g===void 0?!0:g,x=r.tetherOffset,d=x===void 0?0:x,w=ko(t,{boundary:f,rootBoundary:m,padding:p,altBoundary:y}),h=kr(t.placement),S=Oi(t.placement),E=!S,R=Zc(h),O=FA(R),C=t.modifiersData.popperOffsets,U=t.rects.reference,M=t.rects.popper,D=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,q=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(C){if(a){var B,Z=R==="y"?Mt:Ft,k=R==="y"?or:sr,Q=R==="y"?"height":"width",J=C[R],re=J+w[Z],ce=J-w[k],G=v?-M[Q]/2:0,te=S===Si?U[Q]:M[Q],ne=S===Si?-M[Q]:-U[Q],ue=t.elements.arrow,ie=v&&ue?qc(ue):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sv(),fe=he[Z],ve=he[k],xe=Oo(0,U[Q],ie[Q]),Ae=E?U[Q]/2-G-xe-fe-q.mainAxis:te-xe-fe-q.mainAxis,_e=E?-U[Q]/2+G+xe+ve+q.mainAxis:ne+xe+ve+q.mainAxis,ot=t.elements.arrow&&Uo(t.elements.arrow),oe=ot?R==="y"?ot.clientTop||0:ot.clientLeft||0:0,ct=(B=N==null?void 0:N[R])!=null?B:0,Fr=J+Ae-ct-oe,bt=J+_e-ct,Jr=Oo(v?ba(re,Fr):re,J,v?Un(ce,bt):ce);C[R]=Jr,L[R]=Jr-J}if(c){var Vo,ar=R==="x"?Mt:Ft,Xo=R==="x"?or:sr,Dr=C[O],yr=O==="y"?"height":"width",Pt=Dr+w[ar],Qr=Dr-w[Xo],en=[Mt,Ft].indexOf(h)!==-1,Yo=(Vo=N==null?void 0:N[O])!=null?Vo:0,tn=en?Pt:Dr-U[yr]-M[yr]-Yo+q.altAxis,Jo=en?Dr+U[yr]+M[yr]-Yo-q.altAxis:Qr,rn=v&&en?aA(tn,Dr,Jo):Oo(v?tn:Pt,Dr,v?Jo:Qr);C[O]=rn,L[O]=rn-Dr}t.modifiersData[i]=L}}const NA={name:"preventOverflow",enabled:!0,phase:"main",fn:DA,requiresIfExists:["offset"]};function jA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zA(e){return e===Gt(e)||!ir(e)?Gc(e):jA(e)}function WA(e){var t=e.getBoundingClientRect(),r=Ei(t.width)/e.offsetWidth||1,i=Ei(t.height)/e.offsetHeight||1;return r!==1||i!==1}function UA(e,t,r){r===void 0&&(r=!1);var i=ir(t),s=ir(t)&&WA(t),a=Sn(t),u=_i(e,s,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Ir(t)!=="body"||Vc(a))&&(c=zA(t)),ir(t)?(f=_i(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Kc(a))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function BA(e){var t=new Map,r=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&s(f)}}),i.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),i}function HA(e){var t=BA(e);return tA.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function qA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function ZA(e){var t=e.reduce(function(r,i){var s=r[i.name];return r[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Rh={placement:"bottom",modifiers:[],strategy:"absolute"};function Ph(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function GA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Rh:s;return function(c,f,m){m===void 0&&(m=a);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rh,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},p=[],g=!1,v={state:y,setOptions:function(h){var S=typeof h=="function"?h(y.options):h;d(),y.options=Object.assign({},a,y.options,S),y.scrollParents={reference:Hn(c)?Ao(c):c.contextElement?Ao(c.contextElement):[],popper:Ao(f)};var E=HA(ZA([].concat(i,y.options.modifiers)));return y.orderedModifiers=E.filter(function(R){return R.enabled}),x(),v.update()},forceUpdate:function(){if(!g){var h=y.elements,S=h.reference,E=h.popper;if(Ph(S,E)){y.rects={reference:UA(S,Uo(E),y.options.strategy==="fixed"),popper:qc(E)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(q){return y.modifiersData[q.name]=Object.assign({},q.data)});for(var R=0;R<y.orderedModifiers.length;R++){if(y.reset===!0){y.reset=!1,R=-1;continue}var O=y.orderedModifiers[R],C=O.fn,U=O.options,M=U===void 0?{}:U,D=O.name;typeof C=="function"&&(y=C({state:y,options:M,name:D,instance:v})||y)}}}},update:qA(function(){return new Promise(function(w){v.forceUpdate(),w(y)})}),destroy:function(){d(),g=!0}};if(!Ph(c,f))return v;v.setOptions(m).then(function(w){!g&&m.onFirstUpdate&&m.onFirstUpdate(w)});function x(){y.orderedModifiers.forEach(function(w){var h=w.name,S=w.options,E=S===void 0?{}:S,R=w.effect;if(typeof R=="function"){var O=R({state:y,name:h,instance:v,options:E}),C=function(){};p.push(O||C)}})}function d(){p.forEach(function(w){return w()}),p=[]}return v}}var KA=[vA,MA,gA,iA,IA,RA,NA,fA,CA],VA=GA({defaultModifiers:KA}),Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sl,Ch;function XA(){if(Ch)return Sl;Ch=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,u){if(a===u)return!0;if(a&&u&&typeof a=="object"&&typeof u=="object"){if(a.constructor!==u.constructor)return!1;var c,f,m;if(Array.isArray(a)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(!s(a[f],u[f]))return!1;return!0}var y;if(t&&a instanceof Map&&u instanceof Map){if(a.size!==u.size)return!1;for(y=a.entries();!(f=y.next()).done;)if(!u.has(f.value[0]))return!1;for(y=a.entries();!(f=y.next()).done;)if(!s(f.value[1],u.get(f.value[0])))return!1;return!0}if(r&&a instanceof Set&&u instanceof Set){if(a.size!==u.size)return!1;for(y=a.entries();!(f=y.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(u)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(a[f]!==u[f])return!1;return!0}if(a.constructor===RegExp)return a.source===u.source&&a.flags===u.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof u.valueOf=="function")return a.valueOf()===u.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof u.toString=="function")return a.toString()===u.toString();if(m=Object.keys(a),c=m.length,c!==Object.keys(u).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,m[f]))return!1;if(e&&a instanceof Element)return!1;for(f=c;f--!==0;)if(!((m[f]==="_owner"||m[f]==="__v"||m[f]==="__o")&&a.$$typeof)&&!s(a[m[f]],u[m[f]]))return!1;return!0}return a!==a&&u!==u}return Sl=function(u,c){try{return s(u,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Sl}var YA=XA();const JA=fv(YA);var QA=[],dv=function(t,r,i){i===void 0&&(i={});var s=$.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||QA},u=$.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=u[0],f=u[1],m=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var x=v.state,d=Object.keys(x.elements);BO.flushSync(function(){f({styles:bh(d.map(function(w){return[w,x.styles[w]||{}]})),attributes:bh(d.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),y=$.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[m,{name:"applyStyles",enabled:!1}])};return JA(s.current,g)?s.current||g:(s.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,m]),p=$.useRef();return wh(function(){p.current&&p.current.setOptions(y)},[y]),wh(function(){if(!(t==null||r==null)){var g=i.createPopper||VA,v=g(t,r,y);return p.current=v,function(){v.destroy(),p.current=null}}},[t,r,i.createPopper]),{state:p.current?p.current.state:null,styles:c.styles,attributes:c.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const pv=e=>F.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),hv=W.forwardRef(({children:e,style:t,attributes:r},i)=>F.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),eT=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,u]=W.useState(null),{styles:c,attributes:f}=dv(e,a,{placement:t||"bottom-start"}),m=W.useCallback(()=>{s&&s()},[s]);return r?F.jsxs(tv,{children:[F.jsx(pv,{onClick:()=>m()}),F.jsx(hv,{ref:u,style:c.popper,attributes:f.popper,children:i})]}):null};var El={exports:{}};/*!
|
|
1
|
+
"use strict";var TO=Object.defineProperty;var jh=e=>{throw TypeError(e)};var OO=(e,t,r)=>t in e?TO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ye=(e,t,r)=>OO(e,typeof t!="symbol"?t+"":t,r),kl=(e,t,r)=>t.has(e)||jh("Cannot "+r);var X=(e,t,r)=>(kl(e,t,"read from private field"),r?r.call(e):t.get(e)),vt=(e,t,r)=>t.has(e)?jh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),He=(e,t,r,i)=>(kl(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),de=(e,t,r)=>(kl(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react/jsx-runtime"),M=require("react"),Qn=require("react-dom"),Qe=require("@ws-ui/icons"),Sc=require("@emotion/react"),AO=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(M),RO=Ev(Qn),_v=({children:e,container:t=document.body})=>Qn.createPortal(e,t);var zh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},Bh=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,Nt="top",ar="bottom",ur="right",Ft="left",ef="auto",Zo=[Nt,ar,ur,Ft],Pi="start",No="end",PO="clippingParents",Tv="viewport",Qi="popper",CO="reference",Wh=Zo.reduce(function(e,t){return e.concat([t+"-"+Pi,t+"-"+No])},[]),Ov=[].concat(Zo,[ef]).reduce(function(e,t){return e.concat([t,t+"-"+Pi,t+"-"+No])},[]),kO="beforeRead",IO="read",$O="afterRead",LO="beforeMain",MO="main",DO="afterMain",NO="beforeWrite",FO="write",jO="afterWrite",zO=[kO,IO,$O,LO,MO,DO,NO,FO,jO];function Nr(e){return e?(e.nodeName||"").toLowerCase():null}function Kt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kn(e){var t=Kt(e).Element;return e instanceof t||e instanceof Element}function sr(e){var t=Kt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tf(e){if(typeof ShadowRoot>"u")return!1;var t=Kt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function BO(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];!sr(a)||!Nr(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(u){var l=s[u];l===!1?a.removeAttribute(u):a.setAttribute(u,l===!0?"":l)}))})}function WO(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],a=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),l=u.reduce(function(f,p){return f[p]="",f},{});!sr(s)||!Nr(s)||(Object.assign(s.style,l),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const HO={name:"applyStyles",enabled:!0,phase:"write",fn:BO,effect:WO,requires:["computeStyles"]};function Mr(e){return e.split("-")[0]}var Zn=Math.max,Ta=Math.min,Ci=Math.round;function Ec(){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 Av(){return!/^((?!chrome|android).)*safari/i.test(Ec())}function ki(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),s=1,a=1;t&&sr(e)&&(s=e.offsetWidth>0&&Ci(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ci(i.height)/e.offsetHeight||1);var u=Kn(e)?Kt(e):window,l=u.visualViewport,f=!Av()&&r,p=(i.left+(f&&l?l.offsetLeft:0))/s,m=(i.top+(f&&l?l.offsetTop:0))/a,d=i.width/s,g=i.height/a;return{width:d,height:g,top:m,right:p+d,bottom:m+g,left:p,x:p,y:m}}function rf(e){var t=ki(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 Rv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&tf(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function tn(e){return Kt(e).getComputedStyle(e)}function UO(e){return["table","td","th"].indexOf(Nr(e))>=0}function An(e){return((Kn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wa(e){return Nr(e)==="html"?e:e.assignedSlot||e.parentNode||(tf(e)?e.host:null)||An(e)}function Hh(e){return!sr(e)||tn(e).position==="fixed"?null:e.offsetParent}function qO(e){var t=/firefox/i.test(Ec()),r=/Trident/i.test(Ec());if(r&&sr(e)){var i=tn(e);if(i.position==="fixed")return null}var s=Wa(e);for(tf(s)&&(s=s.host);sr(s)&&["html","body"].indexOf(Nr(s))<0;){var a=tn(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 Vo(e){for(var t=Kt(e),r=Hh(e);r&&UO(r)&&tn(r).position==="static";)r=Hh(r);return r&&(Nr(r)==="html"||Nr(r)==="body"&&tn(r).position==="static")?t:r||qO(e)||t}function nf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Io(e,t,r){return Zn(e,Ta(t,r))}function GO(e,t,r){var i=Io(e,t,r);return i>r?r:i}function Pv(){return{top:0,right:0,bottom:0,left:0}}function Cv(e){return Object.assign({},Pv(),e)}function kv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var ZO=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Cv(typeof t!="number"?t:kv(t,Zo))};function VO(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,l=Mr(r.placement),f=nf(l),p=[Ft,ur].indexOf(l)>=0,m=p?"height":"width";if(!(!a||!u)){var d=ZO(s.padding,r),g=rf(a),y=f==="y"?Nt:Ft,x=f==="y"?ar:ur,h=r.rects.reference[m]+r.rects.reference[f]-u[f]-r.rects.popper[m],w=u[f]-r.rects.reference[f],v=Vo(a),S=v?f==="y"?v.clientHeight||0:v.clientWidth||0:0,E=h/2-w/2,R=d[y],T=S-g[m]-d[x],C=S/2-g[m]/2+E,W=Io(R,C,T),N=f;r.modifiersData[i]=(t={},t[N]=W,t.centerOffset=W-C,t)}}function KO(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)||Rv(t.elements.popper,s)&&(t.elements.arrow=s))}const YO={name:"arrow",enabled:!0,phase:"main",fn:VO,effect:KO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ii(e){return e.split("-")[1]}var XO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function JO(e,t){var r=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Ci(r*s)/s||0,y:Ci(i*s)/s||0}}function Uh(e){var t,r=e.popper,i=e.popperRect,s=e.placement,a=e.variation,u=e.offsets,l=e.position,f=e.gpuAcceleration,p=e.adaptive,m=e.roundOffsets,d=e.isFixed,g=u.x,y=g===void 0?0:g,x=u.y,h=x===void 0?0:x,w=typeof m=="function"?m({x:y,y:h}):{x:y,y:h};y=w.x,h=w.y;var v=u.hasOwnProperty("x"),S=u.hasOwnProperty("y"),E=Ft,R=Nt,T=window;if(p){var C=Vo(r),W="clientHeight",N="clientWidth";if(C===Kt(r)&&(C=An(r),tn(C).position!=="static"&&l==="absolute"&&(W="scrollHeight",N="scrollWidth")),C=C,s===Nt||(s===Ft||s===ur)&&a===No){R=ar;var F=d&&C===T&&T.visualViewport?T.visualViewport.height:C[W];h-=F-i.height,h*=f?1:-1}if(s===Ft||(s===Nt||s===ar)&&a===No){E=ur;var q=d&&C===T&&T.visualViewport?T.visualViewport.width:C[N];y-=q-i.width,y*=f?1:-1}}var j=Object.assign({position:l},p&&XO),D=m===!0?JO({x:y,y:h},Kt(r)):{x:y,y:h};if(y=D.x,h=D.y,f){var H;return Object.assign({},j,(H={},H[R]=S?"0":"",H[E]=v?"0":"",H.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+h+"px)":"translate3d("+y+"px, "+h+"px, 0)",H))}return Object.assign({},j,(t={},t[R]=S?h+"px":"",t[E]=v?y+"px":"",t.transform="",t))}function QO(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,a=r.adaptive,u=a===void 0?!0:a,l=r.roundOffsets,f=l===void 0?!0:l,p={placement:Mr(t.placement),variation:Ii(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,Uh(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Uh(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const eA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:QO,data:{}};var Gs={passive:!0};function tA(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,u=i.resize,l=u===void 0?!0:u,f=Kt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(m){m.addEventListener("scroll",r.update,Gs)}),l&&f.addEventListener("resize",r.update,Gs),function(){a&&p.forEach(function(m){m.removeEventListener("scroll",r.update,Gs)}),l&&f.removeEventListener("resize",r.update,Gs)}}const rA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tA,data:{}};var nA={left:"right",right:"left",bottom:"top",top:"bottom"};function ha(e){return e.replace(/left|right|bottom|top/g,function(t){return nA[t]})}var iA={start:"end",end:"start"};function qh(e){return e.replace(/start|end/g,function(t){return iA[t]})}function of(e){var t=Kt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function sf(e){return ki(An(e)).left+of(e).scrollLeft}function oA(e,t){var r=Kt(e),i=An(e),s=r.visualViewport,a=i.clientWidth,u=i.clientHeight,l=0,f=0;if(s){a=s.width,u=s.height;var p=Av();(p||!p&&t==="fixed")&&(l=s.offsetLeft,f=s.offsetTop)}return{width:a,height:u,x:l+sf(e),y:f}}function sA(e){var t,r=An(e),i=of(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Zn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=Zn(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-i.scrollLeft+sf(e),f=-i.scrollTop;return tn(s||r).direction==="rtl"&&(l+=Zn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:l,y:f}}function af(e){var t=tn(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function Iv(e){return["html","body","#document"].indexOf(Nr(e))>=0?e.ownerDocument.body:sr(e)&&af(e)?e:Iv(Wa(e))}function $o(e,t){var r;t===void 0&&(t=[]);var i=Iv(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Kt(i),u=s?[a].concat(a.visualViewport||[],af(i)?i:[]):i,l=t.concat(u);return s?l:l.concat($o(Wa(u)))}function _c(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aA(e,t){var r=ki(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 Gh(e,t,r){return t===Tv?_c(oA(e,r)):Kn(t)?aA(t,r):_c(sA(An(e)))}function uA(e){var t=$o(Wa(e)),r=["absolute","fixed"].indexOf(tn(e).position)>=0,i=r&&sr(e)?Vo(e):e;return Kn(i)?t.filter(function(s){return Kn(s)&&Rv(s,i)&&Nr(s)!=="body"}):[]}function lA(e,t,r,i){var s=t==="clippingParents"?uA(e):[].concat(t),a=[].concat(s,[r]),u=a[0],l=a.reduce(function(f,p){var m=Gh(e,p,i);return f.top=Zn(m.top,f.top),f.right=Ta(m.right,f.right),f.bottom=Ta(m.bottom,f.bottom),f.left=Zn(m.left,f.left),f},Gh(e,u,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function $v(e){var t=e.reference,r=e.element,i=e.placement,s=i?Mr(i):null,a=i?Ii(i):null,u=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,f;switch(s){case Nt:f={x:u,y:t.y-r.height};break;case ar:f={x:u,y:t.y+t.height};break;case ur:f={x:t.x+t.width,y:l};break;case Ft:f={x:t.x-r.width,y:l};break;default:f={x:t.x,y:t.y}}var p=s?nf(s):null;if(p!=null){var m=p==="y"?"height":"width";switch(a){case Pi:f[p]=f[p]-(t[m]/2-r[m]/2);break;case No:f[p]=f[p]+(t[m]/2-r[m]/2);break}}return f}function Fo(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=i===void 0?e.placement:i,a=r.strategy,u=a===void 0?e.strategy:a,l=r.boundary,f=l===void 0?PO:l,p=r.rootBoundary,m=p===void 0?Tv:p,d=r.elementContext,g=d===void 0?Qi:d,y=r.altBoundary,x=y===void 0?!1:y,h=r.padding,w=h===void 0?0:h,v=Cv(typeof w!="number"?w:kv(w,Zo)),S=g===Qi?CO:Qi,E=e.rects.popper,R=e.elements[x?S:g],T=lA(Kn(R)?R:R.contextElement||An(e.elements.popper),f,m,u),C=ki(e.elements.reference),W=$v({reference:C,element:E,placement:s}),N=_c(Object.assign({},E,W)),F=g===Qi?N:C,q={top:T.top-F.top+v.top,bottom:F.bottom-T.bottom+v.bottom,left:T.left-F.left+v.left,right:F.right-T.right+v.right},j=e.modifiersData.offset;if(g===Qi&&j){var D=j[s];Object.keys(q).forEach(function(H){var G=[ur,ar].indexOf(H)>=0?1:-1,k=[Nt,ar].indexOf(H)>=0?"y":"x";q[H]+=D[k]*G})}return q}function cA(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,u=r.padding,l=r.flipVariations,f=r.allowedAutoPlacements,p=f===void 0?Ov:f,m=Ii(i),d=m?l?Wh:Wh.filter(function(x){return Ii(x)===m}):Zo,g=d.filter(function(x){return p.indexOf(x)>=0});g.length===0&&(g=d);var y=g.reduce(function(x,h){return x[h]=Fo(e,{placement:h,boundary:s,rootBoundary:a,padding:u})[Mr(h)],x},{});return Object.keys(y).sort(function(x,h){return y[x]-y[h]})}function fA(e){if(Mr(e)===ef)return[];var t=ha(e);return[qh(e),t,qh(t)]}function dA(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,l=u===void 0?!0:u,f=r.fallbackPlacements,p=r.padding,m=r.boundary,d=r.rootBoundary,g=r.altBoundary,y=r.flipVariations,x=y===void 0?!0:y,h=r.allowedAutoPlacements,w=t.options.placement,v=Mr(w),S=v===w,E=f||(S||!x?[ha(w)]:fA(w)),R=[w].concat(E).reduce(function(ie,he){return ie.concat(Mr(he)===ef?cA(t,{placement:he,boundary:m,rootBoundary:d,padding:p,flipVariations:x,allowedAutoPlacements:h}):he)},[]),T=t.rects.reference,C=t.rects.popper,W=new Map,N=!0,F=R[0],q=0;q<R.length;q++){var j=R[q],D=Mr(j),H=Ii(j)===Pi,G=[Nt,ar].indexOf(D)>=0,k=G?"width":"height",Q=Fo(t,{placement:j,boundary:m,rootBoundary:d,altBoundary:g,padding:p}),J=G?H?ur:Ft:H?ar:Nt;T[k]>C[k]&&(J=ha(J));var re=ha(J),ce=[];if(a&&ce.push(Q[D]<=0),l&&ce.push(Q[J]<=0,Q[re]<=0),ce.every(function(ie){return ie})){F=j,N=!1;break}W.set(j,ce)}if(N)for(var Z=x?3:1,te=function(he){var fe=R.find(function(ve){var xe=W.get(ve);if(xe)return xe.slice(0,he).every(function(Oe){return Oe})});if(fe)return F=fe,"break"},ne=Z;ne>0;ne--){var ue=te(ne);if(ue==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const pA={name:"flip",enabled:!0,phase:"main",fn:dA,requiresIfExists:["offset"],data:{_skip:!1}};function Zh(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 Vh(e){return[Nt,ur,ar,Ft].some(function(t){return e[t]>=0})}function hA(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=Fo(t,{elementContext:"reference"}),l=Fo(t,{altBoundary:!0}),f=Zh(u,i),p=Zh(l,s,a),m=Vh(f),d=Vh(p);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:m,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":d})}const gA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hA};function mA(e,t,r){var i=Mr(e),s=[Ft,Nt].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],l=a[1];return u=u||0,l=(l||0)*s,[Ft,ur].indexOf(i)>=0?{x:l,y:u}:{x:u,y:l}}function vA(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,u=Ov.reduce(function(m,d){return m[d]=mA(d,t.rects,a),m},{}),l=u[t.placement],f=l.x,p=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=u}const yA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vA};function bA(e){var t=e.state,r=e.name;t.modifiersData[r]=$v({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const wA={name:"popperOffsets",enabled:!0,phase:"read",fn:bA,data:{}};function xA(e){return e==="x"?"y":"x"}function SA(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,l=u===void 0?!1:u,f=r.boundary,p=r.rootBoundary,m=r.altBoundary,d=r.padding,g=r.tether,y=g===void 0?!0:g,x=r.tetherOffset,h=x===void 0?0:x,w=Fo(t,{boundary:f,rootBoundary:p,padding:d,altBoundary:m}),v=Mr(t.placement),S=Ii(t.placement),E=!S,R=nf(v),T=xA(R),C=t.modifiersData.popperOffsets,W=t.rects.reference,N=t.rects.popper,F=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,q=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(a){var H,G=R==="y"?Nt:Ft,k=R==="y"?ar:ur,Q=R==="y"?"height":"width",J=C[R],re=J+w[G],ce=J-w[k],Z=y?-N[Q]/2:0,te=S===Pi?W[Q]:N[Q],ne=S===Pi?-N[Q]:-W[Q],ue=t.elements.arrow,ie=y&&ue?rf(ue):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pv(),fe=he[G],ve=he[k],xe=Io(0,W[Q],ie[Q]),Oe=E?W[Q]/2-Z-xe-fe-q.mainAxis:te-xe-fe-q.mainAxis,_e=E?-W[Q]/2+Z+xe+ve+q.mainAxis:ne+xe+ve+q.mainAxis,at=t.elements.arrow&&Vo(t.elements.arrow),oe=at?R==="y"?at.clientTop||0:at.clientLeft||0:0,dt=(H=j==null?void 0:j[R])!=null?H:0,zr=J+Oe-dt-oe,St=J+_e-dt,nn=Io(y?Ta(re,zr):re,J,y?Zn(ce,St):ce);C[R]=nn,D[R]=nn-J}if(l){var ts,cr=R==="x"?Nt:Ft,rs=R==="x"?ar:ur,Br=C[T],Sr=T==="y"?"height":"width",kt=Br+w[cr],on=Br-w[rs],sn=[Nt,Ft].indexOf(v)!==-1,ns=(ts=j==null?void 0:j[T])!=null?ts:0,an=sn?kt:Br-W[Sr]-N[Sr]-ns+q.altAxis,is=sn?Br+W[Sr]+N[Sr]-ns-q.altAxis:on,un=y&&sn?GO(an,Br,is):Io(y?an:kt,Br,y?is:on);C[T]=un,D[T]=un-Br}t.modifiersData[i]=D}}const EA={name:"preventOverflow",enabled:!0,phase:"main",fn:SA,requiresIfExists:["offset"]};function _A(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function TA(e){return e===Kt(e)||!sr(e)?of(e):_A(e)}function OA(e){var t=e.getBoundingClientRect(),r=Ci(t.width)/e.offsetWidth||1,i=Ci(t.height)/e.offsetHeight||1;return r!==1||i!==1}function AA(e,t,r){r===void 0&&(r=!1);var i=sr(t),s=sr(t)&&OA(t),a=An(t),u=ki(e,s,r),l={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Nr(t)!=="body"||af(a))&&(l=TA(t)),sr(t)?(f=ki(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=sf(a))),{x:u.left+l.scrollLeft-f.x,y:u.top+l.scrollTop-f.y,width:u.width,height:u.height}}function RA(e){var t=new Map,r=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(l){if(!r.has(l)){var f=t.get(l);f&&s(f)}}),i.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),i}function PA(e){var t=RA(e);return zO.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function CA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function kA(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 Kh={placement:"bottom",modifiers:[],strategy:"absolute"};function Yh(){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 IA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Kh:s;return function(l,f,p){p===void 0&&(p=a);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kh,a),modifiersData:{},elements:{reference:l,popper:f},attributes:{},styles:{}},d=[],g=!1,y={state:m,setOptions:function(v){var S=typeof v=="function"?v(m.options):v;h(),m.options=Object.assign({},a,m.options,S),m.scrollParents={reference:Kn(l)?$o(l):l.contextElement?$o(l.contextElement):[],popper:$o(f)};var E=PA(kA([].concat(i,m.options.modifiers)));return m.orderedModifiers=E.filter(function(R){return R.enabled}),x(),y.update()},forceUpdate:function(){if(!g){var v=m.elements,S=v.reference,E=v.popper;if(Yh(S,E)){m.rects={reference:AA(S,Vo(E),m.options.strategy==="fixed"),popper:rf(E)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(q){return m.modifiersData[q.name]=Object.assign({},q.data)});for(var R=0;R<m.orderedModifiers.length;R++){if(m.reset===!0){m.reset=!1,R=-1;continue}var T=m.orderedModifiers[R],C=T.fn,W=T.options,N=W===void 0?{}:W,F=T.name;typeof C=="function"&&(m=C({state:m,options:N,name:F,instance:y})||m)}}}},update:CA(function(){return new Promise(function(w){y.forceUpdate(),w(m)})}),destroy:function(){h(),g=!0}};if(!Yh(l,f))return y;y.setOptions(p).then(function(w){!g&&p.onFirstUpdate&&p.onFirstUpdate(w)});function x(){m.orderedModifiers.forEach(function(w){var v=w.name,S=w.options,E=S===void 0?{}:S,R=w.effect;if(typeof R=="function"){var T=R({state:m,name:v,instance:y,options:E}),C=function(){};d.push(T||C)}})}function h(){d.forEach(function(w){return w()}),d=[]}return y}}var $A=[rA,wA,eA,HO,yA,pA,EA,YO,gA],LA=IA({defaultModifiers:$A}),Zs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Il,Xh;function MA(){if(Xh)return Il;Xh=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,u){if(a===u)return!0;if(a&&u&&typeof a=="object"&&typeof u=="object"){if(a.constructor!==u.constructor)return!1;var l,f,p;if(Array.isArray(a)){if(l=a.length,l!=u.length)return!1;for(f=l;f--!==0;)if(!s(a[f],u[f]))return!1;return!0}var m;if(t&&a instanceof Map&&u instanceof Map){if(a.size!==u.size)return!1;for(m=a.entries();!(f=m.next()).done;)if(!u.has(f.value[0]))return!1;for(m=a.entries();!(f=m.next()).done;)if(!s(f.value[1],u.get(f.value[0])))return!1;return!0}if(r&&a instanceof Set&&u instanceof Set){if(a.size!==u.size)return!1;for(m=a.entries();!(f=m.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(u)){if(l=a.length,l!=u.length)return!1;for(f=l;f--!==0;)if(a[f]!==u[f])return!1;return!0}if(a.constructor===RegExp)return a.source===u.source&&a.flags===u.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof u.valueOf=="function")return a.valueOf()===u.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof u.toString=="function")return a.toString()===u.toString();if(p=Object.keys(a),l=p.length,l!==Object.keys(u).length)return!1;for(f=l;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,p[f]))return!1;if(e&&a instanceof Element)return!1;for(f=l;f--!==0;)if(!((p[f]==="_owner"||p[f]==="__v"||p[f]==="__o")&&a.$$typeof)&&!s(a[p[f]],u[p[f]]))return!1;return!0}return a!==a&&u!==u}return Il=function(u,l){try{return s(u,l)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Il}var DA=MA();const NA=Lv(DA);var FA=[],uf=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||FA},u=$.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=u[0],f=u[1],p=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(y){var x=y.state,h=Object.keys(x.elements);RO.flushSync(function(){f({styles:zh(h.map(function(w){return[w,x.styles[w]||{}]})),attributes:zh(h.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),m=$.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[p,{name:"applyStyles",enabled:!1}])};return NA(s.current,g)?s.current||g:(s.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,p]),d=$.useRef();return Bh(function(){d.current&&d.current.setOptions(m)},[m]),Bh(function(){if(!(t==null||r==null)){var g=i.createPopper||LA,y=g(t,r,m);return d.current=y,function(){y.destroy(),d.current=null}}},[t,r,i.createPopper]),{state:d.current?d.current.state:null,styles:l.styles,attributes:l.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};const Mv=e=>I.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Dv=M.forwardRef(({children:e,style:t,attributes:r},i)=>I.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})),jA=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,u]=M.useState(null),{styles:l,attributes:f}=uf(e,a,{placement:t||"bottom-start"}),p=M.useCallback(()=>{s&&s()},[s]);return r?I.jsxs(_v,{children:[I.jsx(Mv,{onClick:()=>p()}),I.jsx(Dv,{ref:u,style:l.popper,attributes:f.popper,children:i})]}):null};var $l={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var
|
|
6
|
-
`).match(s);let
|
|
5
|
+
*/var Jh;function Nv(){return Jh||(Jh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",u=0;u<arguments.length;u++){var l=arguments[u];l&&(a=s(a,i(l)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var u="";for(var l in a)t.call(a,l)&&a[l]&&(u=s(u,l));return u}function s(a,u){return u?a?a+" "+u:a+u:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})($l)),$l.exports}var zA=Nv();const Be=Lv(zA);function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Un.apply(this,arguments)}const BA=["children","options"],Qh=["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"}),eg={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},WA=["style","script","pre"],HA=["src","href","data","formAction","srcDoc","action"],UA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,qA=/\n{2,}$/,tg=/^(\s*>[\s\S]*?)(?=\n\n|$)/,GA=/^ *> ?/gm,ZA=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,VA=/^ {2,}\n/,KA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,rg=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,ng=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,YA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,XA=/^(?:\n *)*\n/,JA=/\r\n?/g,QA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,eR=/^\[\^([^\]]+)]/,tR=/\f/g,rR=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,nR=/^\s*?\[(x|\s)\]/,ig=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,og=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,sg=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ll=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,iR=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,ag=/^<!--[\s\S]*?(?:-->)/,oR=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ml=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,sR=/^\{.*\}$/,aR=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,uR=/^<([^ >]+[:@\/][^ >]+)>/,lR=/-([a-z])?/gi,ug=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,cR=/^[^\n]+(?: \n|\n{2,})/,fR=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,dR=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,pR=/^\[([^\]]*)\] ?\[([^\]]*)\]/,hR=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,gR=/\t/g,mR=/(^ *\||\| *$)/g,vR=/^ *:-+: *$/,yR=/^ *:-+ *$/,bR=/^ *-+: *$/,Ha=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Ua="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",wR=RegExp(`^([*_])\\1${Ha(1)}${Ua}\\1\\1(?!\\1)`),xR=RegExp(`^([*_])${Ha(0)}${Ua}\\1(?!\\1)`),SR=RegExp(`^(==)${Ha(0)}${Ua}\\1`),ER=RegExp(`^(~~)${Ha(0)}${Ua}\\1`),_R=/^(:[a-zA-Z0-9-_]+:)/,TR=/^\\([^0-9A-Za-z\s])/,OR=/\\([^0-9A-Za-z\s])/g,AR=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,RR=/^\n+/,PR=/^([ \t]*)/,CR=/(?:^|\n)( *)$/,lf="(?:\\d+\\.)",cf="(?:[*+-])";function Fv(e){return"( *)("+(e===1?lf:cf)+") +"}const jv=Fv(1),zv=Fv(2);function Bv(e){return RegExp("^"+(e===1?jv:zv))}const kR=Bv(1),IR=Bv(2);function Wv(e){return RegExp("^"+(e===1?jv:zv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?lf:cf)+" )[^\\n]*)*(\\n|$)","gm")}const $R=Wv(1),LR=Wv(2);function Hv(e){const t=e===1?lf:cf;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Uv=Hv(1),qv=Hv(2);function lg(e,t){const r=t===1,i=r?Uv:qv,s=r?$R:LR,a=r?kR:IR;return{t:u=>a.test(u),o:$i(function(u,l){const f=CR.exec(l.prevCapture);return f&&(l.list||!l.inline&&!l.simple)?i.exec(u=f[1]+u):null}),i:1,u(u,l,f){const p=r?+u[2]:void 0,m=u[0].replace(qA,`
|
|
6
|
+
`).match(s);let d=!1;return{items:m.map(function(g,y){const x=a.exec(g)[0].length,h=RegExp("^ {1,"+x+"}","gm"),w=g.replace(h,"").replace(a,""),v=y===m.length-1,S=w.indexOf(`
|
|
7
7
|
|
|
8
|
-
`)!==-1||
|
|
8
|
+
`)!==-1||v&&d;d=S;const E=f.inline,R=f.list;let T;f.list=!0,S?(f.inline=!1,T=Lo(w)+`
|
|
9
9
|
|
|
10
|
-
`):(f.inline=!0,
|
|
11
|
-
`).map(function(
|
|
10
|
+
`):(f.inline=!0,T=Lo(w));const C=l(T,f);return f.inline=E,f.list=R,C}),ordered:r,start:p}},l:(u,l,f)=>e(u.ordered?"ol":"ul",{key:f.key,start:u.type==="20"?u.start:void 0},u.items.map(function(p,m){return e("li",{key:m},l(p,f))}))}}const MR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),DR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function cg(e){return typeof e=="string"}function Lo(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function ga(e,t){return e.startsWith(t)}function NR(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(ga(e,r[i]))return!0;return!1}return r(e,t)}function eo(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 FR(e){return bR.test(e)?"right":vR.test(e)?"center":yR.test(e)?"left":null}function fg(e,t,r,i){const s=r.inTable;r.inTable=!0;let a=[[]],u="";function l(){if(!u)return;const f=a[a.length-1];f.push.apply(f,t(u,r)),u=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,p,m)=>{f.trim()==="|"&&(l(),i)?p!==0&&p!==m.length-1&&a.push([]):u+=f}),l(),r.inTable=s,a}function jR(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(mR,"").split("|").map(FR):[],s=e[3]?(function(u,l,f){return u.trim().split(`
|
|
11
|
+
`).map(function(p){return fg(p,l,f,!0)})})(e[3],t,r):[],a=fg(e[1],t,r,!!s.length);return r.inline=!1,s.length?{align:i,cells:s,header:a,type:"25"}:{children:a,type:"21"}}function dg(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function $i(e){return e.inline=1,e}function zn(e){return $i(function(t,r){return r.inline?e.exec(t):null})}function yn(e){return $i(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Yr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Vs(e){return $i(function(t){return e.exec(t)})}const zR=/(javascript|vbscript|data(?!:image)):/i;function BR(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(zR.test(t))return null}catch{return null}return e}function Or(e){return e&&e.replace(OR,"$1")}function ma(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function WR(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function HR(e,t,r){const i=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=i,s}const Dl=(e,t,r)=>({children:ma(t,e[2],r)});function Nl(){return{}}function Fl(){return null}function UR(...e){return e.filter(Boolean).join(" ")}function jl(e,t,r){let i=e;const s=t.split(".");for(;s.length&&(i=i[s[0]],i!==void 0);)s.shift();return i||r}function qR(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Un({},eg,t.namedCodesToUnicode):eg;const r=t.slugify||eo,i=t.sanitizer||BR,s=t.createElement||$.createElement,a=[tg,rg,ng,t.enforceAtxHeadings?og:ig,sg,ug,Uv,qv],u=[...a,cR,Ll,ag,Ml];function l(v,S){for(let E=0;E<v.length;E++)if(v[E].test(S))return!0;return!1}function f(v,S,...E){const R=jl(t.overrides,v+".props",{});return s((function(T,C){const W=jl(C,T);return W?typeof W=="function"||typeof W=="object"&&"render"in W?W:jl(C,T+".component",T):T})(v,t.overrides),Un({},S,R,{className:UR(S==null?void 0:S.className,R.className)||void 0}),...E)}function p(v){v=v.replace(rR,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=hR.test(v)===!1);const E=h(x(S?v:Lo(v).replace(RR,"")+`
|
|
12
12
|
|
|
13
|
-
`,{inline:S}));for(;
|
|
14
|
-
`);return S>0&&S<
|
|
15
|
-
`],o:
|
|
16
|
-
`},21:{o
|
|
13
|
+
`,{inline:S}));for(;cg(E[E.length-1])&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const R=t.wrapper||(S?"span":"div");let T;if(E.length>1||t.forceWrapper)T=E;else{if(E.length===1)return T=E[0],typeof T=="string"?f("span",{key:"outer"},T):T;T=null}return s(R,{key:"outer"},T)}function m(v,S){if(!S||!S.trim())return null;const E=S.match(UA);return E?E.reduce(function(R,T){const C=T.indexOf("=");if(C!==-1){const W=(function(j){return j.indexOf("-")!==-1&&j.match(oR)===null&&(j=j.replace(lR,function(D,H){return H.toUpperCase()})),j})(T.slice(0,C)).trim(),N=(function(j){const D=j[0];return(D==='"'||D==="'")&&j.length>=2&&j[j.length-1]===D?j.slice(1,-1):j})(T.slice(C+1).trim()),F=Qh[W]||W;if(F==="ref")return R;const q=R[F]=(function(j,D,H,G){return D==="style"?(function(k){const Q=[];let J="",re=!1,ce=!1,Z="";if(!k)return Q;for(let ne=0;ne<k.length;ne++){const ue=k[ne];if(ue!=='"'&&ue!=="'"||re||(ce?ue===Z&&(ce=!1,Z=""):(ce=!0,Z=ue)),ue==="("&&J.endsWith("url")?re=!0:ue===")"&&re&&(re=!1),ue!==";"||ce||re)J+=ue;else{const ie=J.trim();if(ie){const he=ie.indexOf(":");if(he>0){const fe=ie.slice(0,he).trim(),ve=ie.slice(he+1).trim();Q.push([fe,ve])}}J=""}}const te=J.trim();if(te){const ne=te.indexOf(":");if(ne>0){const ue=te.slice(0,ne).trim(),ie=te.slice(ne+1).trim();Q.push([ue,ie])}}return Q})(H).reduce(function(k,[Q,J]){return k[Q.replace(/(-[a-z])/g,re=>re[1].toUpperCase())]=G(J,j,Q),k},{}):HA.indexOf(D)!==-1?G(Or(H),j,D):(H.match(sR)&&(H=Or(H.slice(1,H.length-1))),H==="true"||H!=="false"&&H)})(v,W,N,i);typeof q=="string"&&(Ll.test(q)||Ml.test(q))&&(R[F]=p(q.trim()))}else T!=="style"&&(R[Qh[T]||T]=!0);return R},{}):null}const d=[],g={},y={0:{t:[">"],o:Yr(tg),i:1,u(v,S,E){const[,R,T]=v[0].replace(GA,"").match(ZA);return{alert:R,children:S(T,E)}},l(v,S,E){const R={key:E.key};return v.alert&&(R.className="markdown-alert-"+r(v.alert.toLowerCase(),eo),v.children.unshift({attrs:{},children:[{type:"27",text:v.alert}],noInnerParse:!0,type:"11",tag:"header"})),f("blockquote",R,S(v.children,E))}},1:{t:[" "],o:Vs(VA),i:1,u:Nl,l:(v,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Yr(KA),i:1,u:Nl,l:(v,S,E)=>f("hr",{key:E.key})},3:{t:[" "],o:Yr(ng),i:0,u:v=>({lang:void 0,text:Or(Lo(v[0].replace(/^ {4}/gm,"")))}),l:(v,S,E)=>f("pre",{key:E.key},f("code",Un({},v.attrs,{className:v.lang?"lang-"+v.lang:""}),v.text))},4:{t:["```","~~~"],o:Yr(rg),i:0,u:v=>({attrs:m("code",v[3]||""),lang:v[2]||void 0,text:v[4],type:"3"})},5:{t:["`"],o:yn(YA),i:3,u:v=>({text:Or(v[2])}),l:(v,S,E)=>f("code",{key:E.key},v.text)},6:{t:["[^"],o:Yr(QA),i:0,u:v=>(d.push({footnote:v[2],identifier:v[1]}),{}),l:Fl},7:{t:["[^"],o:zn(eR),i:1,u:v=>({target:"#"+r(v[1],eo),text:v[1]}),l:(v,S,E)=>f("a",{key:E.key,href:i(v.target,"a","href")},f("sup",{key:E.key},v.text))},8:{t:["[ ]","[x]"],o:zn(nR),i:1,u:v=>({completed:v[1].toLowerCase()==="x"}),l:(v,S,E)=>f("input",{checked:v.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Yr(t.enforceAtxHeadings?og:ig),i:1,u:(v,S,E)=>({children:ma(S,v[2],E),id:r(v[2],eo),level:v[1].length}),l:(v,S,E)=>f("h"+v.level,{id:v.id,key:E.key},S(v.children,E))},10:{t:v=>{const S=v.indexOf(`
|
|
14
|
+
`);return S>0&&S<v.length-1&&(v[S+1]==="="||v[S+1]==="-")},o:Yr(sg),i:1,u:(v,S,E)=>({children:ma(S,v[1],E),level:v[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Vs(Ll),i:1,u(v,S,E){const[,R]=v[3].match(PR),T=RegExp("^"+R,"gm"),C=v[3].replace(T,""),W=l(u,C)?HR:ma,N=v[1].toLowerCase(),F=WA.indexOf(N)!==-1,q=(F?N:v[1]).trim(),j={attrs:m(q,v[2]),noInnerParse:F,tag:q};if(E.inAnchor=E.inAnchor||N==="a",F)j.text=v[3];else{const D=E.inHTML;E.inHTML=!0,j.children=W(S,C,E),E.inHTML=D}return E.inAnchor=!1,j},l:(v,S,E)=>f(v.tag,Un({key:E.key},v.attrs),v.text||(v.children?S(v.children,E):""))},13:{t:["<"],o:Vs(Ml),i:1,u(v){const S=v[1].trim();return{attrs:m(S,v[2]||""),tag:S}},l:(v,S,E)=>f(v.tag,Un({},v.attrs,{key:E.key}))},12:{t:["<!--"],o:Vs(ag),i:1,u:()=>({}),l:Fl},14:{t:["!["],o:yn(DR),i:1,u:v=>({alt:Or(v[1]),target:Or(v[2]),title:Or(v[3])}),l:(v,S,E)=>f("img",{key:E.key,alt:v.alt||void 0,title:v.title||void 0,src:i(v.target,"img","src")})},15:{t:["["],o:zn(MR),i:3,u:(v,S,E)=>({children:WR(S,v[1],E),target:Or(v[2]),title:Or(v[3])}),l:(v,S,E)=>f("a",{key:E.key,href:i(v.target,"a","href"),title:v.title},S(v.children,E))},16:{t:["<"],o:zn(uR),i:0,u(v){let S=v[1],E=!1;return S.indexOf("@")!==-1&&S.indexOf("//")===-1&&(E=!0,S=S.replace("mailto:","")),{children:[{text:S,type:"27"}],target:E?"mailto:"+S:S,type:"15"}}},17:{t:(v,S)=>!S.inAnchor&&!t.disableAutoLink&&(ga(v,"http://")||ga(v,"https://")),o:zn(aR),i:0,u:v=>({children:[{text:v[1],type:"27"}],target:v[1],title:void 0,type:"15"})},20:lg(f,1),33:lg(f,2),19:{t:[`
|
|
15
|
+
`],o:Yr(XA),i:3,u:Nl,l:()=>`
|
|
16
|
+
`},21:{o:$i(function(v,S){if(S.inline||S.simple||S.inHTML&&v.indexOf(`
|
|
17
17
|
|
|
18
18
|
`)===-1&&S.prevCapture.indexOf(`
|
|
19
19
|
|
|
20
|
-
`)===-1)return null;let E="",R=0;for(;;){const C=
|
|
21
|
-
`,R),
|
|
22
|
-
`).replace(mT,"").replace(CT," ")})(R),O)}})(v),d=(function(h,S){return function E(R,O={}){if(Array.isArray(R)){const C=O.key,U=[];let M=!1;for(let D=0;D<R.length;D++){O.key=D;const q=E(R[D],O),N=Bh(q);N&&M?U[U.length-1]+=q:q!==null&&U.push(q),M=N}return O.key=C,U}return(function(C,U,M){const D=h[C.type].l;return S?S(()=>D(C,U,M),C,U,M):D(C,U,M)})(R,E,O)}})(v,t.renderRule),w=m(e);return p.length?f("div",null,w,f("footer",{key:"footer"},p.map(function(h){return f("div",{id:r(h.identifier,Gi),key:h.identifier},h.identifier,d(x(h.footnote,{inline:!0})))}))):w}const wa=e=>{let{children:t,options:r}=e,i=(function(s,a){if(s==null)return{};var u,c,f={},m=Object.keys(s);for(c=0;c<m.length;c++)a.indexOf(u=m[c])>=0||(f[u]=s[u]);return f})(e,rT);return $.cloneElement(sR(t??"",r),i)},Zh=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return F.jsx(t,{className:He("flex-none size-6",r)});switch(e){case"error":case"danger":return F.jsx(tt.FdSanityCheckInfo,{className:He("flex-none size-6",r)});case"info":return F.jsx(F.Fragment,{children:F.jsx(tt.FdInfoBold,{className:He("flex-none size-6",r)})});case"warning":return F.jsx(F.Fragment,{children:F.jsx(tt.FdWarningDanger,{className:He("flex-none size-6",r)})});case"message":return F.jsx(F.Fragment,{children:F.jsx(tt.FdInfoBold,{className:He("flex-none size-6",r)})});default:return null}},aR=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const u=({className:c}={})=>F.jsx("button",{onClick:t,className:He("flex justify-center p-1",c),children:F.jsx(tt.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return F.jsx("div",{className:He("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?F.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[F.jsx("div",{className:"pt-1",children:F.jsx(Zh,{kind:r,customIcon:a})}),F.jsx("div",{className:"flex items-center gap-1 prose",children:s?F.jsx(wa,{children:i}):F.jsx(F.Fragment,{children:i})}),u()]}):F.jsxs("div",{className:"flex items-start",children:[F.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>F.jsxs(F.Fragment,{children:[c.title&&F.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[F.jsx(Zh,{kind:r,customIcon:a}),F.jsxs("span",{children:[c.title," :"]})]}),F.jsx("ul",{className:He("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>F.jsx("li",{children:s?F.jsx(wa,{children:f}):F.jsx(F.Fragment,{children:f})}))})]}))}),u({className:"absolute top-1 right-1"})]})},e)},_v=({children:e,size:t,className:r,...i})=>F.jsx("div",{style:{"--width":`${t||24}px`},className:He("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var Cl={},Ki={},Bs={},Gh;function Ov(){if(Gh)return Bs;Gh=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Bs}var di={},Vi={},Xi={},Kh;function uR(){if(Kh)return Xi;Kh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Xi.default=e,Xi}var Vh;function Da(){if(Vh)return Vi;Vh=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=void 0;var e=t(uR());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){return typeof s=="string"&&e.default.test(s)}var i=r;return Vi.default=i,Vi}var Xh;function Na(){if(Xh)return di;Xh=1,Object.defineProperty(di,"__esModule",{value:!0}),di.default=void 0,di.unsafeStringify=i;var e=t(Da());function t(u){return u&&u.__esModule?u:{default:u}}const r=[];for(let u=0;u<256;++u)r.push((u+256).toString(16).slice(1));function i(u,c=0){return r[u[c+0]]+r[u[c+1]]+r[u[c+2]]+r[u[c+3]]+"-"+r[u[c+4]]+r[u[c+5]]+"-"+r[u[c+6]]+r[u[c+7]]+"-"+r[u[c+8]]+r[u[c+9]]+"-"+r[u[c+10]]+r[u[c+11]]+r[u[c+12]]+r[u[c+13]]+r[u[c+14]]+r[u[c+15]]}function s(u,c=0){const f=i(u,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var a=s;return di.default=a,di}var Yh;function lR(){if(Yh)return Ki;Yh=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=r(Ov()),t=Na();function r(m){return m&&m.__esModule?m:{default:m}}let i,s,a=0,u=0;function c(m,y,p){let g=y&&p||0;const v=y||new Array(16);m=m||{};let x=m.node||i,d=m.clockseq!==void 0?m.clockseq:s;if(x==null||d==null){const O=m.random||(m.rng||e.default)();x==null&&(x=i=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),d==null&&(d=s=(O[6]<<8|O[7])&16383)}let w=m.msecs!==void 0?m.msecs:Date.now(),h=m.nsecs!==void 0?m.nsecs:u+1;const S=w-a+(h-u)/1e4;if(S<0&&m.clockseq===void 0&&(d=d+1&16383),(S<0||w>a)&&m.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=w,u=h,s=d,w+=122192928e5;const E=((w&268435455)*1e4+h)%4294967296;v[g++]=E>>>24&255,v[g++]=E>>>16&255,v[g++]=E>>>8&255,v[g++]=E&255;const R=w/4294967296*1e4&268435455;v[g++]=R>>>8&255,v[g++]=R&255,v[g++]=R>>>24&15|16,v[g++]=R>>>16&255,v[g++]=d>>>8|128,v[g++]=d&255;for(let O=0;O<6;++O)v[g+O]=x[O];return y||(0,t.unsafeStringify)(v)}var f=c;return Ki.default=f,Ki}var Yi={},hn={},Ji={},Jh;function Av(){if(Jh)return Ji;Jh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=t(Da());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let a;const u=new Uint8Array(16);return u[0]=(a=parseInt(s.slice(0,8),16))>>>24,u[1]=a>>>16&255,u[2]=a>>>8&255,u[3]=a&255,u[4]=(a=parseInt(s.slice(9,13),16))>>>8,u[5]=a&255,u[6]=(a=parseInt(s.slice(14,18),16))>>>8,u[7]=a&255,u[8]=(a=parseInt(s.slice(19,23),16))>>>8,u[9]=a&255,u[10]=(a=parseInt(s.slice(24,36),16))/1099511627776&255,u[11]=a/4294967296&255,u[12]=a>>>24&255,u[13]=a>>>16&255,u[14]=a>>>8&255,u[15]=a&255,u}var i=r;return Ji.default=i,Ji}var Qh;function Tv(){if(Qh)return hn;Qh=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.URL=hn.DNS=void 0,hn.default=u;var e=Na(),t=r(Av());function r(c){return c&&c.__esModule?c:{default:c}}function i(c){c=unescape(encodeURIComponent(c));const f=[];for(let m=0;m<c.length;++m)f.push(c.charCodeAt(m));return f}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";hn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";hn.URL=a;function u(c,f,m){function y(p,g,v,x){var d;if(typeof p=="string"&&(p=i(p)),typeof g=="string"&&(g=(0,t.default)(g)),((d=g)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+p.length);if(w.set(g),w.set(p,g.length),w=m(w),w[6]=w[6]&15|f,w[8]=w[8]&63|128,v){x=x||0;for(let h=0;h<16;++h)v[x+h]=w[h];return v}return(0,e.unsafeStringify)(w)}try{y.name=c}catch{}return y.DNS=s,y.URL=a,y}return hn}var Qi={},eg;function cR(){if(eg)return Qi;eg=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;function e(v){if(typeof v=="string"){const x=unescape(encodeURIComponent(v));v=new Uint8Array(x.length);for(let d=0;d<x.length;++d)v[d]=x.charCodeAt(d)}return t(i(s(v),v.length*8))}function t(v){const x=[],d=v.length*32,w="0123456789abcdef";for(let h=0;h<d;h+=8){const S=v[h>>5]>>>h%32&255,E=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);x.push(E)}return x}function r(v){return(v+64>>>9<<4)+14+1}function i(v,x){v[x>>5]|=128<<x%32,v[r(x)-1]=x;let d=1732584193,w=-271733879,h=-1732584194,S=271733878;for(let E=0;E<v.length;E+=16){const R=d,O=w,C=h,U=S;d=f(d,w,h,S,v[E],7,-680876936),S=f(S,d,w,h,v[E+1],12,-389564586),h=f(h,S,d,w,v[E+2],17,606105819),w=f(w,h,S,d,v[E+3],22,-1044525330),d=f(d,w,h,S,v[E+4],7,-176418897),S=f(S,d,w,h,v[E+5],12,1200080426),h=f(h,S,d,w,v[E+6],17,-1473231341),w=f(w,h,S,d,v[E+7],22,-45705983),d=f(d,w,h,S,v[E+8],7,1770035416),S=f(S,d,w,h,v[E+9],12,-1958414417),h=f(h,S,d,w,v[E+10],17,-42063),w=f(w,h,S,d,v[E+11],22,-1990404162),d=f(d,w,h,S,v[E+12],7,1804603682),S=f(S,d,w,h,v[E+13],12,-40341101),h=f(h,S,d,w,v[E+14],17,-1502002290),w=f(w,h,S,d,v[E+15],22,1236535329),d=m(d,w,h,S,v[E+1],5,-165796510),S=m(S,d,w,h,v[E+6],9,-1069501632),h=m(h,S,d,w,v[E+11],14,643717713),w=m(w,h,S,d,v[E],20,-373897302),d=m(d,w,h,S,v[E+5],5,-701558691),S=m(S,d,w,h,v[E+10],9,38016083),h=m(h,S,d,w,v[E+15],14,-660478335),w=m(w,h,S,d,v[E+4],20,-405537848),d=m(d,w,h,S,v[E+9],5,568446438),S=m(S,d,w,h,v[E+14],9,-1019803690),h=m(h,S,d,w,v[E+3],14,-187363961),w=m(w,h,S,d,v[E+8],20,1163531501),d=m(d,w,h,S,v[E+13],5,-1444681467),S=m(S,d,w,h,v[E+2],9,-51403784),h=m(h,S,d,w,v[E+7],14,1735328473),w=m(w,h,S,d,v[E+12],20,-1926607734),d=y(d,w,h,S,v[E+5],4,-378558),S=y(S,d,w,h,v[E+8],11,-2022574463),h=y(h,S,d,w,v[E+11],16,1839030562),w=y(w,h,S,d,v[E+14],23,-35309556),d=y(d,w,h,S,v[E+1],4,-1530992060),S=y(S,d,w,h,v[E+4],11,1272893353),h=y(h,S,d,w,v[E+7],16,-155497632),w=y(w,h,S,d,v[E+10],23,-1094730640),d=y(d,w,h,S,v[E+13],4,681279174),S=y(S,d,w,h,v[E],11,-358537222),h=y(h,S,d,w,v[E+3],16,-722521979),w=y(w,h,S,d,v[E+6],23,76029189),d=y(d,w,h,S,v[E+9],4,-640364487),S=y(S,d,w,h,v[E+12],11,-421815835),h=y(h,S,d,w,v[E+15],16,530742520),w=y(w,h,S,d,v[E+2],23,-995338651),d=p(d,w,h,S,v[E],6,-198630844),S=p(S,d,w,h,v[E+7],10,1126891415),h=p(h,S,d,w,v[E+14],15,-1416354905),w=p(w,h,S,d,v[E+5],21,-57434055),d=p(d,w,h,S,v[E+12],6,1700485571),S=p(S,d,w,h,v[E+3],10,-1894986606),h=p(h,S,d,w,v[E+10],15,-1051523),w=p(w,h,S,d,v[E+1],21,-2054922799),d=p(d,w,h,S,v[E+8],6,1873313359),S=p(S,d,w,h,v[E+15],10,-30611744),h=p(h,S,d,w,v[E+6],15,-1560198380),w=p(w,h,S,d,v[E+13],21,1309151649),d=p(d,w,h,S,v[E+4],6,-145523070),S=p(S,d,w,h,v[E+11],10,-1120210379),h=p(h,S,d,w,v[E+2],15,718787259),w=p(w,h,S,d,v[E+9],21,-343485551),d=a(d,R),w=a(w,O),h=a(h,C),S=a(S,U)}return[d,w,h,S]}function s(v){if(v.length===0)return[];const x=v.length*8,d=new Uint32Array(r(x));for(let w=0;w<x;w+=8)d[w>>5]|=(v[w/8]&255)<<w%32;return d}function a(v,x){const d=(v&65535)+(x&65535);return(v>>16)+(x>>16)+(d>>16)<<16|d&65535}function u(v,x){return v<<x|v>>>32-x}function c(v,x,d,w,h,S){return a(u(a(a(x,v),a(w,S)),h),d)}function f(v,x,d,w,h,S,E){return c(x&d|~x&w,v,x,h,S,E)}function m(v,x,d,w,h,S,E){return c(x&w|d&~w,v,x,h,S,E)}function y(v,x,d,w,h,S,E){return c(x^d^w,v,x,h,S,E)}function p(v,x,d,w,h,S,E){return c(d^(x|~w),v,x,h,S,E)}var g=e;return Qi.default=g,Qi}var tg;function fR(){if(tg)return Yi;tg=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=r(Tv()),t=r(cR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Yi.default=s,Yi}var eo={},to={},rg;function dR(){if(rg)return to;rg=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return to.default=t,to}var ng;function pR(){if(ng)return eo;ng=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e=i(dR()),t=i(Ov()),r=Na();function i(u){return u&&u.__esModule?u:{default:u}}function s(u,c,f){if(e.default.randomUUID&&!c&&!u)return e.default.randomUUID();u=u||{};const m=u.random||(u.rng||t.default)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,c){f=f||0;for(let y=0;y<16;++y)c[f+y]=m[y];return c}return(0,r.unsafeStringify)(m)}var a=s;return eo.default=a,eo}var ro={},no={},ig;function hR(){if(ig)return no;ig=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;function e(s,a,u,c){switch(s){case 0:return a&u^~a&c;case 1:return a^u^c;case 2:return a&u^a&c^u&c;case 3:return a^u^c}}function t(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],u=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const y=unescape(encodeURIComponent(s));s=[];for(let p=0;p<y.length;++p)s.push(y.charCodeAt(p))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const c=s.length/4+2,f=Math.ceil(c/16),m=new Array(f);for(let y=0;y<f;++y){const p=new Uint32Array(16);for(let g=0;g<16;++g)p[g]=s[y*64+g*4]<<24|s[y*64+g*4+1]<<16|s[y*64+g*4+2]<<8|s[y*64+g*4+3];m[y]=p}m[f-1][14]=(s.length-1)*8/Math.pow(2,32),m[f-1][14]=Math.floor(m[f-1][14]),m[f-1][15]=(s.length-1)*8&4294967295;for(let y=0;y<f;++y){const p=new Uint32Array(80);for(let h=0;h<16;++h)p[h]=m[y][h];for(let h=16;h<80;++h)p[h]=t(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);let g=u[0],v=u[1],x=u[2],d=u[3],w=u[4];for(let h=0;h<80;++h){const S=Math.floor(h/20),E=t(g,5)+e(S,v,x,d)+w+a[S]+p[h]>>>0;w=d,d=x,x=t(v,30)>>>0,v=g,g=E}u[0]=u[0]+g>>>0,u[1]=u[1]+v>>>0,u[2]=u[2]+x>>>0,u[3]=u[3]+d>>>0,u[4]=u[4]+w>>>0}return[u[0]>>24&255,u[0]>>16&255,u[0]>>8&255,u[0]&255,u[1]>>24&255,u[1]>>16&255,u[1]>>8&255,u[1]&255,u[2]>>24&255,u[2]>>16&255,u[2]>>8&255,u[2]&255,u[3]>>24&255,u[3]>>16&255,u[3]>>8&255,u[3]&255,u[4]>>24&255,u[4]>>16&255,u[4]>>8&255,u[4]&255]}var i=r;return no.default=i,no}var og;function gR(){if(og)return ro;og=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=r(Tv()),t=r(hR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return ro.default=s,ro}var io={},sg;function mR(){if(sg)return io;sg=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e="00000000-0000-0000-0000-000000000000";return io.default=e,io}var oo={},ag;function vR(){if(ag)return oo;ag=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var e=t(Da());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");return parseInt(s.slice(14,15),16)}var i=r;return oo.default=i,oo}var ug;function yR(){return ug||(ug=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return u.default}});var t=y(lR()),r=y(fR()),i=y(pR()),s=y(gR()),a=y(mR()),u=y(vR()),c=y(Da()),f=y(Na()),m=y(Av());function y(p){return p&&p.__esModule?p:{default:p}}})(Cl)),Cl}var kl,lg;function bR(){if(lg)return kl;lg=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,i,s,a={},u=this.srcAlphabet.length,c=this.dstAlphabet.length,f=t.length,m=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,s=0,r=0;r<f;r++)i=i*u+a[r],i>=c?(a[s++]=parseInt(i/c,10),i=i%c):s>0&&(a[s++]=0);f=s,m=this.dstAlphabet.slice(i,i+1).concat(m)}while(s!==0);return m},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},kl=e,kl}var $l,cg;function wR(){if(cg)return $l;cg=1;var e=bR();function t(r,i){var s=new e(r,i);return function(a){return s.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",$l=t,$l}var Il,fg;function xR(){if(fg)return Il;fg=1;const{v4:e,validate:t}=yR(),r=wR(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const u=(m,y,p)=>{const g=y(m.toLowerCase().replace(/-/g,""));return!p||!p.consistentLength?g:g.padStart(p.shortIdLength,p.paddingChar)},c=(m,y)=>{const g=y(m).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[g[1],g[2],g[3],g[4],g[5]].join("-")},f=m=>Math.ceil(Math.log(2**128)/Math.log(m));return Il=(()=>{const m=(y,p)=>{const g=y||i.flickrBase58,v={...s,...p};if([...new Set(Array.from(g))].length!==g.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(g.length),d={shortIdLength:x,consistentLength:v.consistentLength,paddingChar:g[0]},w=r(r.HEX,g),h=r(g,r.HEX),S=()=>u(e(),w,d),R={alphabet:g,fromUUID:O=>u(O,w,d),maxLength:x,generate:S,new:S,toUUID:O=>c(O,h),uuid:e,validate:(O,C=!1)=>{if(!O||typeof O!="string")return!1;const U=v.consistentLength?O.length===x:O.length<=x,M=O.split("").every(D=>g.includes(D));return C===!1?U&&M:U&&M&&t(c(O,h))}};return Object.freeze(R),R};return m.constants=i,m.uuid=e,m.generate=()=>(a||(a=m(i.flickrBase58).generate),a()),m})(),Il}var Jc=xR();const Rv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${Jc.generate()}`;return F.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[F.jsx("defs",{children:F.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:F.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?F.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):F.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Pv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?F.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return F.jsx(tt.FdDown,{className:He(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?F.jsx(tt.FdDown,{}):F.jsx(tt.FdRight,{});default:return F.jsx(tt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):F.jsx("div",{className:"flex h-6 w-3 items-center"}),Qc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:u,onNodeClick:c})=>{var v;const{key:f,children:m}=e,y=W.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),p=u&&typeof u=="function"?u(e,t,y,s,a):_R(e,t,y,c);return!((v=e.options)!=null&&v.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"flex items-center space-x-2",children:p},f),ER(m||[],t,a,r,i,y.expanded,s,c,u)]}):null},SR=function(e,t){var u;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=F.jsx(_v,{children:i})),F.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(u=e.options)==null?void 0:u.draggable,onClick:()=>{t&&t(e)},children:[a,F.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&F.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},ER=function(e,t,r,i,s,a,u,c,f){var m,y;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((m=e[0].data)==null?void 0:m.nodeType)||((y=e[0].data)==null?void 0:y.type))?e:e.sort((p,g)=>w0(p.title,g.title))).map(p=>F.jsx(Qc,{actions:u,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:c,renderNode:f},p.key)):null},_R=function(e,t,r,i){return F.jsxs(F.Fragment,{children:[F.jsx(Rv,{showLines:!0,depth:t}),F.jsx(Pv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),SR(e,i)]})},Hs=e=>t=>e===t,OR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:u,expandCondition:c="always",encapsulated:f,className:m}){const[y,p]=W.useState(()=>({expandedKeys:u||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&y.expandedKeys.length>0||p({...y,expandedKeys:u||y.expandedKeys})},[u]);const g=W.useCallback(h=>{if(!h)return;const S=y.expandedKeys.findIndex(Hs(h.key));let E=[];S===-1?(E=[...y.expandedKeys,h.key],p(()=>({...y,expandedKeys:E})),s&&s(E)):(E=y.expandedKeys.filter(R=>R!==h.key),p(()=>({...y,expandedKeys:E})),s&&s(E))},[y]),v=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;y.selectedKeys.findIndex(Hs(h.key))===-1&&p({...y,selectedKeys:[...y.selectedKeys,h.key]})},[y]),x=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;y.selectedKeys.findIndex(Hs(h.key))===-1&&p({...y,selectedKeys:[h.key]})},[y]),d=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable)){p({...y,selectedKeys:[]});return}y.selectedKeys.findIndex(Hs(h.key))!==-1&&p({...y,selectedKeys:y.selectedKeys.filter(R=>R!==h.key)})},[y]),w=W.useMemo(()=>({expand:g,select:v,selectSingle:x,deselect:d}),[d,g,v,x]);return F.jsx("div",{className:He("fd-tree",m,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(h=>F.jsx(Qc,{node:h,searchQuery:a||"",depth:0,expandedKeys:y.expandedKeys,selectedKeys:y.selectedKeys,actions:w,renderNode:r,onNodeClick:i},h.key))})};function fa(e){return e.of&&e.children?F.jsx(F.Fragment,{children:e.children}):null}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Qe.apply(null,arguments)}function AR(e){for(var t=0,r,i=0,s=e.length;s>=4;++i,s-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var TR={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Cv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var RR=/[A-Z]|^ms/g,PR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kv=function(t){return t.charCodeAt(1)===45},dg=function(t){return t!=null&&typeof t!="boolean"},Ll=Cv(function(e){return kv(e)?e:e.replace(RR,"-$&").toLowerCase()}),pg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(PR,function(i,s,a){return Rr={name:s,styles:a,next:Rr},s})}return TR[t]!==1&&!kv(t)&&typeof r=="number"&&r!==0?r+"px":r};function $o(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return Rr={name:s.name,styles:s.styles,next:Rr},s.name;var a=r;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Rr={name:u.name,styles:u.styles,next:Rr},u=u.next;var c=a.styles+";";return c}return CR(e,t,r)}case"function":{if(e!==void 0){var f=Rr,m=r(e);return Rr=f,$o(e,t,m)}break}}var y=r;if(t==null)return y;var p=t[y];return p!==void 0?p:y}function CR(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=$o(e,t,r[s])+";";else for(var a in r){var u=r[a];if(typeof u!="object"){var c=u;t!=null&&t[c]!==void 0?i+=a+"{"+t[c]+"}":dg(c)&&(i+=Ll(a)+":"+pg(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var f=0;f<u.length;f++)dg(u[f])&&(i+=Ll(a)+":"+pg(a,u[f])+";");else{var m=$o(e,t,u);switch(a){case"animation":case"animationName":{i+=Ll(a)+":"+m+";";break}default:i+=a+"{"+m+"}"}}}return i}var hg=/label:\s*([^\s;{]+)\s*(;|$)/g,Rr;function kR(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";Rr=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=$o(r,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=$o(r,t,e[c]),i){var f=a;s+=f[c]}hg.lastIndex=0;for(var m="",y;(y=hg.exec(s))!==null;)m+="-"+y[1];var p=AR(s)+m;return{name:p,styles:s,next:Rr}}var $R=function(t){return t()},IR=$.useInsertionEffect?$.useInsertionEffect:!1,LR=IR||$R,MR=!0;function FR(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var $v=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||MR===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},DR=function(t,r,i){$v(t,r,i);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},NR=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,jR=Cv(function(e){return NR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),zR=jR,WR=function(t){return t!=="theme"},gg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?zR:WR},mg=function(t,r,i){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},UR=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return $v(r,i,s),LR(function(){return DR(r,i,s)}),null},BR=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,a,u;r!==void 0&&(a=r.label,u=r.target);var c=mg(t,r,i),f=c||gg(s),m=!f("as");return function(){var y=arguments,p=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)p.push.apply(p,y);else{var g=y[0];p.push(g[0]);for(var v=y.length,x=1;x<v;x++)p.push(y[x],g[x])}var d=dc.withEmotionCache(function(w,h,S){var E=m&&w.as||s,R="",O=[],C=w;if(w.theme==null){C={};for(var U in w)C[U]=w[U];C.theme=$.useContext(dc.ThemeContext)}typeof w.className=="string"?R=FR(h.registered,O,w.className):w.className!=null&&(R=w.className+" ");var M=kR(p.concat(O),h.registered,C);R+=h.key+"-"+M.name,u!==void 0&&(R+=" "+u);var D=m&&c===void 0?gg(E):f,q={};for(var N in w)m&&N==="as"||D(N)&&(q[N]=w[N]);return q.className=R,S&&(q.ref=S),$.createElement($.Fragment,null,$.createElement(UR,{cache:h,serialized:M,isStringTag:typeof E=="string"}),$.createElement(E,q))});return d.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",d.defaultProps=t.defaultProps,d.__emotion_real=d,d.__emotion_base=s,d.__emotion_styles=p,d.__emotion_forwardProp=c,Object.defineProperty(d,"toString",{value:function(){return"."+u}}),d.withComponent=function(w,h){var S=e(w,Qe({},r,h,{shouldForwardProp:mg(d,h,!0)}));return S.apply(void 0,p)},d}},HR=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],xa=BR.bind(null);HR.forEach(function(e){xa[e]=xa(e)});var qR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pi=new WeakMap,qs=new WeakMap,Zs={},Ml=0,Iv=function(e){return e&&(e.host||Iv(e.parentNode))},ZR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=Iv(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},GR=function(e,t,r,i){var s=ZR(t,Array.isArray(e)?e:[e]);Zs[r]||(Zs[r]=new WeakMap);var a=Zs[r],u=[],c=new Set,f=new Set(s),m=function(p){!p||c.has(p)||(c.add(p),m(p.parentNode))};s.forEach(m);var y=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(g){if(c.has(g))y(g);else try{var v=g.getAttribute(i),x=v!==null&&v!=="false",d=(pi.get(g)||0)+1,w=(a.get(g)||0)+1;pi.set(g,d),a.set(g,w),u.push(g),d===1&&x&&qs.set(g,!0),w===1&&g.setAttribute(r,"true"),x||g.setAttribute(i,"true")}catch(h){console.error("aria-hidden: cannot operate on ",g,h)}})};return y(t),c.clear(),Ml++,function(){u.forEach(function(p){var g=pi.get(p)-1,v=a.get(p)-1;pi.set(p,g),a.set(p,v),g||(qs.has(p)||p.removeAttribute(i),qs.delete(p)),v||p.removeAttribute(r)}),Ml--,Ml||(pi=new WeakMap,pi=new WeakMap,qs=new WeakMap,Zs={})}},KR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=qR(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),GR(i,s,r,"aria-hidden")):function(){return null}},gc=function(e,t){return gc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},gc(e,t)};function ja(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");gc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Pr=function(){return Pr=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Pr.apply(this,arguments)};function Lv(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}function mc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],u;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(c){u={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return a}function Sa(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var da="right-scroll-bar-position",pa="width-before-scroll-bar",VR="with-scroll-bars-hidden",XR="--removed-body-scroll-bar-size";function Fl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function YR(e,t){var r=W.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=t,r.facade}var JR=typeof window<"u"?$.useLayoutEffect:$.useEffect,vg=new WeakMap;function QR(e,t){var r=YR(null,function(i){return e.forEach(function(s){return Fl(s,i)})});return JR(function(){var i=vg.get(r);if(i){var s=new Set(i),a=new Set(e),u=r.current;s.forEach(function(c){a.has(c)||Fl(c,null)}),a.forEach(function(c){s.has(c)||Fl(c,u)})}vg.set(r,e)},[e]),r}function eP(e){return e}function tP(e,t){t===void 0&&(t=eP);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var u=t(a,i);return r.push(u),function(){r=r.filter(function(c){return c!==u})}},assignSyncMedium:function(a){for(i=!0;r.length;){var u=r;r=[],u.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var u=[];if(r.length){var c=r;r=[],c.forEach(a),u=r}var f=function(){var y=u;u=[],y.forEach(a)},m=function(){return Promise.resolve().then(f)};m(),r={push:function(y){u.push(y),m()},filter:function(y){return u=u.filter(y),r}}}};return s}function rP(e){e===void 0&&(e={});var t=tP(null);return t.options=Pr({async:!0,ssr:!1},e),t}var Mv=function(e){var t=e.sideCar,r=Lv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return $.createElement(i,Pr({},r))};Mv.isSideCarExport=!0;function nP(e,t){return e.useMedium(t),Mv}var Fv=rP(),Dl=function(){},za=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:Dl,onWheelCapture:Dl,onTouchMoveCapture:Dl}),s=i[0],a=i[1],u=e.forwardProps,c=e.children,f=e.className,m=e.removeScrollBar,y=e.enabled,p=e.shards,g=e.sideCar,v=e.noRelative,x=e.noIsolation,d=e.inert,w=e.allowPinchZoom,h=e.as,S=h===void 0?"div":h,E=e.gapMode,R=Lv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=g,C=QR([r,t]),U=Pr(Pr({},R),s);return $.createElement($.Fragment,null,y&&$.createElement(O,{sideCar:Fv,removeScrollBar:m,shards:p,noRelative:v,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:E}),u?$.cloneElement($.Children.only(c),Pr(Pr({},U),{ref:C})):$.createElement(S,Pr({},U,{className:f,ref:C}),c))});za.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};za.classNames={fullWidth:pa,zeroRight:da};var iP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=iP();return t&&e.setAttribute("nonce",t),e}function sP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function aP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=oP())&&(sP(t,r),aP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lP=function(){var e=uP();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Dv=function(){var e=lP(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},cP={left:0,top:0,right:0,gap:0},Nl=function(e){return parseInt(e||"",10)||0},fP=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Nl(r),Nl(i),Nl(s)]},dP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cP;var t=fP(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},pP=Dv(),yi="data-scroll-locked",hP=function(e,t,r,i){var s=e.left,a=e.top,u=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
23
|
-
.`.concat(
|
|
20
|
+
`)===-1)return null;let E="",R=0;for(;;){const C=v.indexOf(`
|
|
21
|
+
`,R),W=v.slice(R,C===-1?void 0:C+1);if(l(a,W)||(E+=W,C===-1||!W.trim()))break;R=C+1}const T=Lo(E);return T===""?null:[E,,T]}),i:3,u:Dl,l:(v,S,E)=>f("p",{key:E.key},S(v.children,E))},22:{t:["["],o:zn(fR),i:0,u:v=>(g[v[1]]={target:v[2],title:v[4]},{}),l:Fl},23:{t:["!["],o:yn(dR),i:0,u:v=>({alt:v[1]?Or(v[1]):void 0,ref:v[2]}),l:(v,S,E)=>g[v.ref]?f("img",{key:E.key,alt:v.alt,src:i(g[v.ref].target,"img","src"),title:g[v.ref].title}):null},24:{t:v=>v[0]==="["&&v.indexOf("](")===-1,o:zn(pR),i:0,u:(v,S,E)=>({children:S(v[1],E),fallbackChildren:v[0],ref:v[2]}),l:(v,S,E)=>g[v.ref]?f("a",{key:E.key,href:i(g[v.ref].target,"a","href"),title:g[v.ref].title},S(v.children,E)):f("span",{key:E.key},v.fallbackChildren)},25:{t:["|"],o:Yr(ug),i:1,u:jR,l(v,S,E){const R=v;return f("table",{key:E.key},f("thead",null,f("tr",null,R.header.map(function(T,C){return f("th",{key:C,style:dg(R,C)},S(T,E))}))),f("tbody",null,R.cells.map(function(T,C){return f("tr",{key:C},T.map(function(W,N){return f("td",{key:N,style:dg(R,N)},S(W,E))}))})))}},27:{o:$i(function(v,S){let E;return ga(v,":")&&(E=_R.exec(v)),E||AR.exec(v)}),i:4,u(v){const S=v[0];return{text:S.indexOf("&")===-1?S:S.replace(iR,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:v=>v.text},28:{t:["**","__"],o:yn(wR),i:2,u:(v,S,E)=>({children:S(v[2],E)}),l:(v,S,E)=>f("strong",{key:E.key},S(v.children,E))},29:{t:v=>{const S=v[0];return(S==="*"||S==="_")&&v[1]!==S},o:yn(xR),i:3,u:(v,S,E)=>({children:S(v[2],E)}),l:(v,S,E)=>f("em",{key:E.key},S(v.children,E))},30:{t:["\\"],o:yn(TR),i:1,u:v=>({text:v[1],type:"27"})},31:{t:["=="],o:yn(SR),i:3,u:Dl,l:(v,S,E)=>f("mark",{key:E.key},S(v.children,E))},32:{t:["~~"],o:yn(ER),i:3,u:Dl,l:(v,S,E)=>f("del",{key:E.key},S(v.children,E))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const x=(function(v){var S=Object.keys(v);function E(R,T){var C=[];if(T.prevCapture=T.prevCapture||"",R.trim())for(;R;)for(var W=0;W<S.length;){var N=S[W],F=v[N];if(!F.t||NR(R,T,F.t)){var q=F.o(R,T);if(q&&q[0]){R=R.substring(q[0].length);var j=F.u(q,E,T);T.prevCapture+=q[0],j.type||(j.type=N),C.push(j);break}W++}else W++}return T.prevCapture="",C}return S.sort(function(R,T){return v[R].i-v[T].i||(R<T?-1:1)}),function(R,T){return E((function(C){return C.replace(JA,`
|
|
22
|
+
`).replace(tR,"").replace(gR," ")})(R),T)}})(y),h=(function(v,S){return function E(R,T={}){if(Array.isArray(R)){const C=T.key,W=[];let N=!1;for(let F=0;F<R.length;F++){T.key=F;const q=E(R[F],T),j=cg(q);j&&N?W[W.length-1]+=q:q!==null&&W.push(q),N=j}return T.key=C,W}return(function(C,W,N){const F=v[C.type].l;return S?S(()=>F(C,W,N),C,W,N):F(C,W,N)})(R,E,T)}})(y,t.renderRule),w=p(e);return d.length?f("div",null,w,f("footer",{key:"footer"},d.map(function(v){return f("div",{id:r(v.identifier,eo),key:v.identifier},v.identifier,h(x(v.footnote,{inline:!0})))}))):w}const Oa=e=>{let{children:t,options:r}=e,i=(function(s,a){if(s==null)return{};var u,l,f={},p=Object.keys(s);for(l=0;l<p.length;l++)a.indexOf(u=p[l])>=0||(f[u]=s[u]);return f})(e,BA);return $.cloneElement(qR(t??"",r),i)},pg=({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 I.jsx(t,{className:Be("flex-none size-6",r)});switch(e){case"error":case"danger":return I.jsx(Qe.FdSanityCheckInfo,{className:Be("flex-none size-6",r)});case"info":return I.jsx(I.Fragment,{children:I.jsx(Qe.FdInfoBold,{className:Be("flex-none size-6",r)})});case"warning":return I.jsx(I.Fragment,{children:I.jsx(Qe.FdWarningDanger,{className:Be("flex-none size-6",r)})});case"message":return I.jsx(I.Fragment,{children:I.jsx(Qe.FdInfoBold,{className:Be("flex-none size-6",r)})});default:return null}},Gv=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const u=({className:l}={})=>I.jsx("button",{onClick:t,className:Be("flex justify-center p-1",l),children:I.jsx(Qe.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return I.jsx("div",{className:Be("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?I.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[I.jsx("div",{className:"pt-1",children:I.jsx(pg,{kind:r,customIcon:a})}),I.jsx("div",{className:"flex items-center gap-1 prose",children:s?I.jsx(Oa,{children:i}):I.jsx(I.Fragment,{children:i})}),u()]}):I.jsxs("div",{className:"flex items-start",children:[I.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(l=>l.messages.length>0).map(l=>I.jsxs(I.Fragment,{children:[l.title&&I.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[I.jsx(pg,{kind:r,customIcon:a}),I.jsxs("span",{children:[l.title," :"]})]}),I.jsx("ul",{className:Be("list-disc",{"px-12":l.title,"px-6":!l.title}),children:l.messages.map(f=>I.jsx("li",{children:s?I.jsx(Oa,{children:f}):I.jsx(I.Fragment,{children:f})}))})]}))}),u({className:"absolute top-1 right-1"})]})},e)},Zv=({children:e,size:t,className:r,...i})=>I.jsx("div",{style:{"--width":`${t||24}px`},className:Be("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var zl={},to={},Ks={},hg;function Vv(){if(hg)return Ks;hg=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.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 Ks}var yi={},ro={},no={},gg;function GR(){if(gg)return no;gg=1,Object.defineProperty(no,"__esModule",{value:!0}),no.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 no.default=e,no}var mg;function qa(){if(mg)return ro;mg=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=t(GR());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 ro.default=i,ro}var vg;function Ga(){if(vg)return yi;vg=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=void 0,yi.unsafeStringify=i;var e=t(qa());function t(u){return u&&u.__esModule?u:{default:u}}const r=[];for(let u=0;u<256;++u)r.push((u+256).toString(16).slice(1));function i(u,l=0){return r[u[l+0]]+r[u[l+1]]+r[u[l+2]]+r[u[l+3]]+"-"+r[u[l+4]]+r[u[l+5]]+"-"+r[u[l+6]]+r[u[l+7]]+"-"+r[u[l+8]]+r[u[l+9]]+"-"+r[u[l+10]]+r[u[l+11]]+r[u[l+12]]+r[u[l+13]]+r[u[l+14]]+r[u[l+15]]}function s(u,l=0){const f=i(u,l);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var a=s;return yi.default=a,yi}var yg;function ZR(){if(yg)return to;yg=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e=r(Vv()),t=Ga();function r(p){return p&&p.__esModule?p:{default:p}}let i,s,a=0,u=0;function l(p,m,d){let g=m&&d||0;const y=m||new Array(16);p=p||{};let x=p.node||i,h=p.clockseq!==void 0?p.clockseq:s;if(x==null||h==null){const T=p.random||(p.rng||e.default)();x==null&&(x=i=[T[0]|1,T[1],T[2],T[3],T[4],T[5]]),h==null&&(h=s=(T[6]<<8|T[7])&16383)}let w=p.msecs!==void 0?p.msecs:Date.now(),v=p.nsecs!==void 0?p.nsecs:u+1;const S=w-a+(v-u)/1e4;if(S<0&&p.clockseq===void 0&&(h=h+1&16383),(S<0||w>a)&&p.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=w,u=v,s=h,w+=122192928e5;const E=((w&268435455)*1e4+v)%4294967296;y[g++]=E>>>24&255,y[g++]=E>>>16&255,y[g++]=E>>>8&255,y[g++]=E&255;const R=w/4294967296*1e4&268435455;y[g++]=R>>>8&255,y[g++]=R&255,y[g++]=R>>>24&15|16,y[g++]=R>>>16&255,y[g++]=h>>>8|128,y[g++]=h&255;for(let T=0;T<6;++T)y[g+T]=x[T];return m||(0,t.unsafeStringify)(y)}var f=l;return to.default=f,to}var io={},bn={},oo={},bg;function Kv(){if(bg)return oo;bg=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var e=t(qa());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let a;const u=new Uint8Array(16);return u[0]=(a=parseInt(s.slice(0,8),16))>>>24,u[1]=a>>>16&255,u[2]=a>>>8&255,u[3]=a&255,u[4]=(a=parseInt(s.slice(9,13),16))>>>8,u[5]=a&255,u[6]=(a=parseInt(s.slice(14,18),16))>>>8,u[7]=a&255,u[8]=(a=parseInt(s.slice(19,23),16))>>>8,u[9]=a&255,u[10]=(a=parseInt(s.slice(24,36),16))/1099511627776&255,u[11]=a/4294967296&255,u[12]=a>>>24&255,u[13]=a>>>16&255,u[14]=a>>>8&255,u[15]=a&255,u}var i=r;return oo.default=i,oo}var wg;function Yv(){if(wg)return bn;wg=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.URL=bn.DNS=void 0,bn.default=u;var e=Ga(),t=r(Kv());function r(l){return l&&l.__esModule?l:{default:l}}function i(l){l=unescape(encodeURIComponent(l));const f=[];for(let p=0;p<l.length;++p)f.push(l.charCodeAt(p));return f}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";bn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";bn.URL=a;function u(l,f,p){function m(d,g,y,x){var h;if(typeof d=="string"&&(d=i(d)),typeof g=="string"&&(g=(0,t.default)(g)),((h=g)===null||h===void 0?void 0:h.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+d.length);if(w.set(g),w.set(d,g.length),w=p(w),w[6]=w[6]&15|f,w[8]=w[8]&63|128,y){x=x||0;for(let v=0;v<16;++v)y[x+v]=w[v];return y}return(0,e.unsafeStringify)(w)}try{m.name=l}catch{}return m.DNS=s,m.URL=a,m}return bn}var so={},xg;function VR(){if(xg)return so;xg=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;function e(y){if(typeof y=="string"){const x=unescape(encodeURIComponent(y));y=new Uint8Array(x.length);for(let h=0;h<x.length;++h)y[h]=x.charCodeAt(h)}return t(i(s(y),y.length*8))}function t(y){const x=[],h=y.length*32,w="0123456789abcdef";for(let v=0;v<h;v+=8){const S=y[v>>5]>>>v%32&255,E=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);x.push(E)}return x}function r(y){return(y+64>>>9<<4)+14+1}function i(y,x){y[x>>5]|=128<<x%32,y[r(x)-1]=x;let h=1732584193,w=-271733879,v=-1732584194,S=271733878;for(let E=0;E<y.length;E+=16){const R=h,T=w,C=v,W=S;h=f(h,w,v,S,y[E],7,-680876936),S=f(S,h,w,v,y[E+1],12,-389564586),v=f(v,S,h,w,y[E+2],17,606105819),w=f(w,v,S,h,y[E+3],22,-1044525330),h=f(h,w,v,S,y[E+4],7,-176418897),S=f(S,h,w,v,y[E+5],12,1200080426),v=f(v,S,h,w,y[E+6],17,-1473231341),w=f(w,v,S,h,y[E+7],22,-45705983),h=f(h,w,v,S,y[E+8],7,1770035416),S=f(S,h,w,v,y[E+9],12,-1958414417),v=f(v,S,h,w,y[E+10],17,-42063),w=f(w,v,S,h,y[E+11],22,-1990404162),h=f(h,w,v,S,y[E+12],7,1804603682),S=f(S,h,w,v,y[E+13],12,-40341101),v=f(v,S,h,w,y[E+14],17,-1502002290),w=f(w,v,S,h,y[E+15],22,1236535329),h=p(h,w,v,S,y[E+1],5,-165796510),S=p(S,h,w,v,y[E+6],9,-1069501632),v=p(v,S,h,w,y[E+11],14,643717713),w=p(w,v,S,h,y[E],20,-373897302),h=p(h,w,v,S,y[E+5],5,-701558691),S=p(S,h,w,v,y[E+10],9,38016083),v=p(v,S,h,w,y[E+15],14,-660478335),w=p(w,v,S,h,y[E+4],20,-405537848),h=p(h,w,v,S,y[E+9],5,568446438),S=p(S,h,w,v,y[E+14],9,-1019803690),v=p(v,S,h,w,y[E+3],14,-187363961),w=p(w,v,S,h,y[E+8],20,1163531501),h=p(h,w,v,S,y[E+13],5,-1444681467),S=p(S,h,w,v,y[E+2],9,-51403784),v=p(v,S,h,w,y[E+7],14,1735328473),w=p(w,v,S,h,y[E+12],20,-1926607734),h=m(h,w,v,S,y[E+5],4,-378558),S=m(S,h,w,v,y[E+8],11,-2022574463),v=m(v,S,h,w,y[E+11],16,1839030562),w=m(w,v,S,h,y[E+14],23,-35309556),h=m(h,w,v,S,y[E+1],4,-1530992060),S=m(S,h,w,v,y[E+4],11,1272893353),v=m(v,S,h,w,y[E+7],16,-155497632),w=m(w,v,S,h,y[E+10],23,-1094730640),h=m(h,w,v,S,y[E+13],4,681279174),S=m(S,h,w,v,y[E],11,-358537222),v=m(v,S,h,w,y[E+3],16,-722521979),w=m(w,v,S,h,y[E+6],23,76029189),h=m(h,w,v,S,y[E+9],4,-640364487),S=m(S,h,w,v,y[E+12],11,-421815835),v=m(v,S,h,w,y[E+15],16,530742520),w=m(w,v,S,h,y[E+2],23,-995338651),h=d(h,w,v,S,y[E],6,-198630844),S=d(S,h,w,v,y[E+7],10,1126891415),v=d(v,S,h,w,y[E+14],15,-1416354905),w=d(w,v,S,h,y[E+5],21,-57434055),h=d(h,w,v,S,y[E+12],6,1700485571),S=d(S,h,w,v,y[E+3],10,-1894986606),v=d(v,S,h,w,y[E+10],15,-1051523),w=d(w,v,S,h,y[E+1],21,-2054922799),h=d(h,w,v,S,y[E+8],6,1873313359),S=d(S,h,w,v,y[E+15],10,-30611744),v=d(v,S,h,w,y[E+6],15,-1560198380),w=d(w,v,S,h,y[E+13],21,1309151649),h=d(h,w,v,S,y[E+4],6,-145523070),S=d(S,h,w,v,y[E+11],10,-1120210379),v=d(v,S,h,w,y[E+2],15,718787259),w=d(w,v,S,h,y[E+9],21,-343485551),h=a(h,R),w=a(w,T),v=a(v,C),S=a(S,W)}return[h,w,v,S]}function s(y){if(y.length===0)return[];const x=y.length*8,h=new Uint32Array(r(x));for(let w=0;w<x;w+=8)h[w>>5]|=(y[w/8]&255)<<w%32;return h}function a(y,x){const h=(y&65535)+(x&65535);return(y>>16)+(x>>16)+(h>>16)<<16|h&65535}function u(y,x){return y<<x|y>>>32-x}function l(y,x,h,w,v,S){return a(u(a(a(x,y),a(w,S)),v),h)}function f(y,x,h,w,v,S,E){return l(x&h|~x&w,y,x,v,S,E)}function p(y,x,h,w,v,S,E){return l(x&w|h&~w,y,x,v,S,E)}function m(y,x,h,w,v,S,E){return l(x^h^w,y,x,v,S,E)}function d(y,x,h,w,v,S,E){return l(h^(x|~w),y,x,v,S,E)}var g=e;return so.default=g,so}var Sg;function KR(){if(Sg)return io;Sg=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e=r(Yv()),t=r(VR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return io.default=s,io}var ao={},uo={},Eg;function YR(){if(Eg)return uo;Eg=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return uo.default=t,uo}var _g;function XR(){if(_g)return ao;_g=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=i(YR()),t=i(Vv()),r=Ga();function i(u){return u&&u.__esModule?u:{default:u}}function s(u,l,f){if(e.default.randomUUID&&!l&&!u)return e.default.randomUUID();u=u||{};const p=u.random||(u.rng||t.default)();if(p[6]=p[6]&15|64,p[8]=p[8]&63|128,l){f=f||0;for(let m=0;m<16;++m)l[f+m]=p[m];return l}return(0,r.unsafeStringify)(p)}var a=s;return ao.default=a,ao}var lo={},co={},Tg;function JR(){if(Tg)return co;Tg=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;function e(s,a,u,l){switch(s){case 0:return a&u^~a&l;case 1:return a^u^l;case 2:return a&u^a&l^u&l;case 3:return a^u^l}}function t(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],u=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const m=unescape(encodeURIComponent(s));s=[];for(let d=0;d<m.length;++d)s.push(m.charCodeAt(d))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const l=s.length/4+2,f=Math.ceil(l/16),p=new Array(f);for(let m=0;m<f;++m){const d=new Uint32Array(16);for(let g=0;g<16;++g)d[g]=s[m*64+g*4]<<24|s[m*64+g*4+1]<<16|s[m*64+g*4+2]<<8|s[m*64+g*4+3];p[m]=d}p[f-1][14]=(s.length-1)*8/Math.pow(2,32),p[f-1][14]=Math.floor(p[f-1][14]),p[f-1][15]=(s.length-1)*8&4294967295;for(let m=0;m<f;++m){const d=new Uint32Array(80);for(let v=0;v<16;++v)d[v]=p[m][v];for(let v=16;v<80;++v)d[v]=t(d[v-3]^d[v-8]^d[v-14]^d[v-16],1);let g=u[0],y=u[1],x=u[2],h=u[3],w=u[4];for(let v=0;v<80;++v){const S=Math.floor(v/20),E=t(g,5)+e(S,y,x,h)+w+a[S]+d[v]>>>0;w=h,h=x,x=t(y,30)>>>0,y=g,g=E}u[0]=u[0]+g>>>0,u[1]=u[1]+y>>>0,u[2]=u[2]+x>>>0,u[3]=u[3]+h>>>0,u[4]=u[4]+w>>>0}return[u[0]>>24&255,u[0]>>16&255,u[0]>>8&255,u[0]&255,u[1]>>24&255,u[1]>>16&255,u[1]>>8&255,u[1]&255,u[2]>>24&255,u[2]>>16&255,u[2]>>8&255,u[2]&255,u[3]>>24&255,u[3]>>16&255,u[3]>>8&255,u[3]&255,u[4]>>24&255,u[4]>>16&255,u[4]>>8&255,u[4]&255]}var i=r;return co.default=i,co}var Og;function QR(){if(Og)return lo;Og=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.default=void 0;var e=r(Yv()),t=r(JR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return lo.default=s,lo}var fo={},Ag;function eP(){if(Ag)return fo;Ag=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=void 0;var e="00000000-0000-0000-0000-000000000000";return fo.default=e,fo}var po={},Rg;function tP(){if(Rg)return po;Rg=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var e=t(qa());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 po.default=i,po}var Pg;function rP(){return Pg||(Pg=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 p.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 l.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return u.default}});var t=m(ZR()),r=m(KR()),i=m(XR()),s=m(QR()),a=m(eP()),u=m(tP()),l=m(qa()),f=m(Ga()),p=m(Kv());function m(d){return d&&d.__esModule?d:{default:d}}})(zl)),zl}var Bl,Cg;function nP(){if(Cg)return Bl;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={},u=this.srcAlphabet.length,l=this.dstAlphabet.length,f=t.length,p=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,s=0,r=0;r<f;r++)i=i*u+a[r],i>=l?(a[s++]=parseInt(i/l,10),i=i%l):s>0&&(a[s++]=0);f=s,p=this.dstAlphabet.slice(i,i+1).concat(p)}while(s!==0);return p},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Bl=e,Bl}var Wl,kg;function iP(){if(kg)return Wl;kg=1;var e=nP();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",Wl=t,Wl}var Hl,Ig;function oP(){if(Ig)return Hl;Ig=1;const{v4:e,validate:t}=rP(),r=iP(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const u=(p,m,d)=>{const g=m(p.toLowerCase().replace(/-/g,""));return!d||!d.consistentLength?g:g.padStart(d.shortIdLength,d.paddingChar)},l=(p,m)=>{const g=m(p).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=p=>Math.ceil(Math.log(2**128)/Math.log(p));return Hl=(()=>{const p=(m,d)=>{const g=m||i.flickrBase58,y={...s,...d};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),h={shortIdLength:x,consistentLength:y.consistentLength,paddingChar:g[0]},w=r(r.HEX,g),v=r(g,r.HEX),S=()=>u(e(),w,h),R={alphabet:g,fromUUID:T=>u(T,w,h),maxLength:x,generate:S,new:S,toUUID:T=>l(T,v),uuid:e,validate:(T,C=!1)=>{if(!T||typeof T!="string")return!1;const W=y.consistentLength?T.length===x:T.length<=x,N=T.split("").every(F=>g.includes(F));return C===!1?W&&N:W&&N&&t(l(T,v))}};return Object.freeze(R),R};return p.constants=i,p.uuid=e,p.generate=()=>(a||(a=p(i.flickrBase58).generate),a()),p})(),Hl}var On=oP();const Xv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${On.generate()}`;return I.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[I.jsx("defs",{children:I.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:I.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?I.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):I.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Jv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?I.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return I.jsx(Qe.FdDown,{className:Be(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?I.jsx(Qe.FdDown,{}):I.jsx(Qe.FdRight,{});default:return I.jsx(Qe.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):I.jsx("div",{className:"flex h-6 w-3 items-center"}),ff=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:u,onNodeClick:l})=>{var y;const{key:f,children:p}=e,m=M.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),d=u&&typeof u=="function"?u(e,t,m,s,a):uP(e,t,m,l);return!((y=e.options)!=null&&y.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?I.jsxs(I.Fragment,{children:[I.jsx("div",{className:"flex items-center space-x-2",children:d},f),aP(p||[],t,a,r,i,m.expanded,s,l,u)]}):null},sP=function(e,t){var u;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=I.jsx(Zv,{children:i})),I.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(u=e.options)==null?void 0:u.draggable,onClick:()=>{t&&t(e)},children:[a,I.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&I.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},aP=function(e,t,r,i,s,a,u,l,f){var p,m;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((p=e[0].data)==null?void 0:p.nodeType)||((m=e[0].data)==null?void 0:m.type))?e:e.sort((d,g)=>ab(d.title,g.title))).map(d=>I.jsx(ff,{actions:u,node:d,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:l,renderNode:f},d.key)):null},uP=function(e,t,r,i){return I.jsxs(I.Fragment,{children:[I.jsx(Xv,{showLines:!0,depth:t}),I.jsx(Jv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),sP(e,i)]})},Ys=e=>t=>e===t,lP=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:u,expandCondition:l="always",encapsulated:f,className:p}){const[m,d]=M.useState(()=>({expandedKeys:u||[],selectedKeys:[]}));M.useEffect(()=>{l==="when-collapsed"&&m.expandedKeys.length>0||d({...m,expandedKeys:u||m.expandedKeys})},[u]);const g=M.useCallback(v=>{if(!v)return;const S=m.expandedKeys.findIndex(Ys(v.key));let E=[];S===-1?(E=[...m.expandedKeys,v.key],d(()=>({...m,expandedKeys:E})),s&&s(E)):(E=m.expandedKeys.filter(R=>R!==v.key),d(()=>({...m,expandedKeys:E})),s&&s(E))},[m]),y=M.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Ys(v.key))===-1&&d({...m,selectedKeys:[...m.selectedKeys,v.key]})},[m]),x=M.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Ys(v.key))===-1&&d({...m,selectedKeys:[v.key]})},[m]),h=M.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable)){d({...m,selectedKeys:[]});return}m.selectedKeys.findIndex(Ys(v.key))!==-1&&d({...m,selectedKeys:m.selectedKeys.filter(R=>R!==v.key)})},[m]),w=M.useMemo(()=>({expand:g,select:y,selectSingle:x,deselect:h}),[h,g,y,x]);return I.jsx("div",{className:Be("fd-tree",p,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(v=>I.jsx(ff,{node:v,searchQuery:a||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:w,renderNode:r,onNodeClick:i},v.key))})};function va(e){return e.of&&e.children?I.jsx(I.Fragment,{children:e.children}):null}function rt(){return rt=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},rt.apply(null,arguments)}function cP(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 fP={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 Qv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var dP=/[A-Z]|^ms/g,pP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ey=function(t){return t.charCodeAt(1)===45},$g=function(t){return t!=null&&typeof t!="boolean"},Ul=Qv(function(e){return ey(e)?e:e.replace(dP,"-$&").toLowerCase()}),Lg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(pP,function(i,s,a){return Ir={name:s,styles:a,next:Ir},s})}return fP[t]!==1&&!ey(t)&&typeof r=="number"&&r!==0?r+"px":r};function jo(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 Ir={name:s.name,styles:s.styles,next:Ir},s.name;var a=r;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Ir={name:u.name,styles:u.styles,next:Ir},u=u.next;var l=a.styles+";";return l}return hP(e,t,r)}case"function":{if(e!==void 0){var f=Ir,p=r(e);return Ir=f,jo(e,t,p)}break}}var m=r;if(t==null)return m;var d=t[m];return d!==void 0?d:m}function hP(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=jo(e,t,r[s])+";";else for(var a in r){var u=r[a];if(typeof u!="object"){var l=u;t!=null&&t[l]!==void 0?i+=a+"{"+t[l]+"}":$g(l)&&(i+=Ul(a)+":"+Lg(a,l)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var f=0;f<u.length;f++)$g(u[f])&&(i+=Ul(a)+":"+Lg(a,u[f])+";");else{var p=jo(e,t,u);switch(a){case"animation":case"animationName":{i+=Ul(a)+":"+p+";";break}default:i+=a+"{"+p+"}"}}}return i}var Mg=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function gP(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="";Ir=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=jo(r,t,a);else{var u=a;s+=u[0]}for(var l=1;l<e.length;l++)if(s+=jo(r,t,e[l]),i){var f=a;s+=f[l]}Mg.lastIndex=0;for(var p="",m;(m=Mg.exec(s))!==null;)p+="-"+m[1];var d=cP(s)+p;return{name:d,styles:s,next:Ir}}var mP=function(t){return t()},vP=$.useInsertionEffect?$.useInsertionEffect:!1,yP=vP||mP,bP=!0;function wP(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var ty=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||bP===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},xP=function(t,r,i){ty(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)}},SP=/^((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)-.*))$/,EP=Qv(function(e){return SP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_P=EP,TP=function(t){return t!=="theme"},Dg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?_P:TP},Ng=function(t,r,i){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},OP=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return ty(r,i,s),yP(function(){return xP(r,i,s)}),null},AP=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,a,u;r!==void 0&&(a=r.label,u=r.target);var l=Ng(t,r,i),f=l||Dg(s),p=!f("as");return function(){var m=arguments,d=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)d.push.apply(d,m);else{var g=m[0];d.push(g[0]);for(var y=m.length,x=1;x<y;x++)d.push(m[x],g[x])}var h=Sc.withEmotionCache(function(w,v,S){var E=p&&w.as||s,R="",T=[],C=w;if(w.theme==null){C={};for(var W in w)C[W]=w[W];C.theme=$.useContext(Sc.ThemeContext)}typeof w.className=="string"?R=wP(v.registered,T,w.className):w.className!=null&&(R=w.className+" ");var N=gP(d.concat(T),v.registered,C);R+=v.key+"-"+N.name,u!==void 0&&(R+=" "+u);var F=p&&l===void 0?Dg(E):f,q={};for(var j in w)p&&j==="as"||F(j)&&(q[j]=w[j]);return q.className=R,S&&(q.ref=S),$.createElement($.Fragment,null,$.createElement(OP,{cache:v,serialized:N,isStringTag:typeof E=="string"}),$.createElement(E,q))});return h.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+u}}),h.withComponent=function(w,v){var S=e(w,rt({},r,v,{shouldForwardProp:Ng(h,v,!0)}));return S.apply(void 0,d)},h}},RP=["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"],Aa=AP.bind(null);RP.forEach(function(e){Aa[e]=Aa(e)});var PP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bi=new WeakMap,Xs=new WeakMap,Js={},ql=0,ry=function(e){return e&&(e.host||ry(e.parentNode))},CP=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=ry(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})},kP=function(e,t,r,i){var s=CP(t,Array.isArray(e)?e:[e]);Js[r]||(Js[r]=new WeakMap);var a=Js[r],u=[],l=new Set,f=new Set(s),p=function(d){!d||l.has(d)||(l.add(d),p(d.parentNode))};s.forEach(p);var m=function(d){!d||f.has(d)||Array.prototype.forEach.call(d.children,function(g){if(l.has(g))m(g);else try{var y=g.getAttribute(i),x=y!==null&&y!=="false",h=(bi.get(g)||0)+1,w=(a.get(g)||0)+1;bi.set(g,h),a.set(g,w),u.push(g),h===1&&x&&Xs.set(g,!0),w===1&&g.setAttribute(r,"true"),x||g.setAttribute(i,"true")}catch(v){console.error("aria-hidden: cannot operate on ",g,v)}})};return m(t),l.clear(),ql++,function(){u.forEach(function(d){var g=bi.get(d)-1,y=a.get(d)-1;bi.set(d,g),a.set(d,y),g||(Xs.has(d)||d.removeAttribute(i),Xs.delete(d)),y||d.removeAttribute(r)}),ql--,ql||(bi=new WeakMap,bi=new WeakMap,Xs=new WeakMap,Js={})}},IP=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=PP(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),kP(i,s,r,"aria-hidden")):function(){return null}},Tc=function(e,t){return Tc=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])},Tc(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");Tc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var $r=function(){return $r=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},$r.apply(this,arguments)};function ny(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 Oc(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 Ac(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],u;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return a}function Ra(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 ya="right-scroll-bar-position",ba="width-before-scroll-bar",$P="with-scroll-bars-hidden",LP="--removed-body-scroll-bar-size";function Gl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function MP(e,t){var r=M.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 DP=typeof window<"u"?$.useLayoutEffect:$.useEffect,Fg=new WeakMap;function NP(e,t){var r=MP(null,function(i){return e.forEach(function(s){return Gl(s,i)})});return DP(function(){var i=Fg.get(r);if(i){var s=new Set(i),a=new Set(e),u=r.current;s.forEach(function(l){a.has(l)||Gl(l,null)}),a.forEach(function(l){s.has(l)||Gl(l,u)})}Fg.set(r,e)},[e]),r}function FP(e){return e}function jP(e,t){t===void 0&&(t=FP);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var u=t(a,i);return r.push(u),function(){r=r.filter(function(l){return l!==u})}},assignSyncMedium:function(a){for(i=!0;r.length;){var u=r;r=[],u.forEach(a)}r={push:function(l){return a(l)},filter:function(){return r}}},assignMedium:function(a){i=!0;var u=[];if(r.length){var l=r;r=[],l.forEach(a),u=r}var f=function(){var m=u;u=[],m.forEach(a)},p=function(){return Promise.resolve().then(f)};p(),r={push:function(m){u.push(m),p()},filter:function(m){return u=u.filter(m),r}}}};return s}function zP(e){e===void 0&&(e={});var t=jP(null);return t.options=$r({async:!0,ssr:!1},e),t}var iy=function(e){var t=e.sideCar,r=ny(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,$r({},r))};iy.isSideCarExport=!0;function BP(e,t){return e.useMedium(t),iy}var oy=zP(),Zl=function(){},Va=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:Zl,onWheelCapture:Zl,onTouchMoveCapture:Zl}),s=i[0],a=i[1],u=e.forwardProps,l=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,d=e.shards,g=e.sideCar,y=e.noRelative,x=e.noIsolation,h=e.inert,w=e.allowPinchZoom,v=e.as,S=v===void 0?"div":v,E=e.gapMode,R=ny(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=g,C=NP([r,t]),W=$r($r({},R),s);return $.createElement($.Fragment,null,m&&$.createElement(T,{sideCar:oy,removeScrollBar:p,shards:d,noRelative:y,noIsolation:x,inert:h,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:E}),u?$.cloneElement($.Children.only(l),$r($r({},W),{ref:C})):$.createElement(S,$r({},W,{className:f,ref:C}),l))});Va.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Va.classNames={fullWidth:ba,zeroRight:ya};var WP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function HP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WP();return t&&e.setAttribute("nonce",t),e}function UP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var GP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=HP())&&(UP(t,r),qP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ZP=function(){var e=GP();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},sy=function(){var e=ZP(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},VP={left:0,top:0,right:0,gap:0},Vl=function(e){return parseInt(e||"",10)||0},KP=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[Vl(r),Vl(i),Vl(s)]},YP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return VP;var t=KP(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])}},XP=sy(),Ti="data-scroll-locked",JP=function(e,t,r,i){var s=e.left,a=e.top,u=e.right,l=e.gap;return r===void 0&&(r="margin"),`
|
|
23
|
+
.`.concat($P,` {
|
|
24
24
|
overflow: hidden `).concat(i,`;
|
|
25
|
-
padding-right: `).concat(
|
|
25
|
+
padding-right: `).concat(l,"px ").concat(i,`;
|
|
26
26
|
}
|
|
27
|
-
body[`).concat(
|
|
27
|
+
body[`).concat(Ti,`] {
|
|
28
28
|
overflow: hidden `).concat(i,`;
|
|
29
29
|
overscroll-behavior: contain;
|
|
30
30
|
`).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
@@ -33,125 +33,125 @@
|
|
|
33
33
|
padding-right: `).concat(u,`px;
|
|
34
34
|
margin-left:0;
|
|
35
35
|
margin-top:0;
|
|
36
|
-
margin-right: `).concat(
|
|
37
|
-
`),r==="padding"&&"padding-right: ".concat(
|
|
36
|
+
margin-right: `).concat(l,"px ").concat(i,`;
|
|
37
|
+
`),r==="padding"&&"padding-right: ".concat(l,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.`).concat(
|
|
41
|
-
right: `).concat(
|
|
40
|
+
.`).concat(ya,` {
|
|
41
|
+
right: `).concat(l,"px ").concat(i,`;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.`).concat(
|
|
45
|
-
margin-right: `).concat(
|
|
44
|
+
.`).concat(ba,` {
|
|
45
|
+
margin-right: `).concat(l,"px ").concat(i,`;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.`).concat(
|
|
48
|
+
.`).concat(ya," .").concat(ya,` {
|
|
49
49
|
right: 0 `).concat(i,`;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.`).concat(
|
|
52
|
+
.`).concat(ba," .").concat(ba,` {
|
|
53
53
|
margin-right: 0 `).concat(i,`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
body[`).concat(
|
|
57
|
-
`).concat(
|
|
56
|
+
body[`).concat(Ti,`] {
|
|
57
|
+
`).concat(LP,": ").concat(l,`px;
|
|
58
58
|
}
|
|
59
|
-
`)},
|
|
59
|
+
`)},jg=function(){var e=parseInt(document.body.getAttribute(Ti)||"0",10);return isFinite(e)?e:0},QP=function(){$.useEffect(function(){return document.body.setAttribute(Ti,(jg()+1).toString()),function(){var e=jg()-1;e<=0?document.body.removeAttribute(Ti):document.body.setAttribute(Ti,e.toString())}},[])},eC=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;QP();var a=$.useMemo(function(){return YP(s)},[s]);return $.createElement(XP,{styles:JP(a,!t,s,r?"":"!important")})},Rc=!1;if(typeof window<"u")try{var Qs=Object.defineProperty({},"passive",{get:function(){return Rc=!0,!0}});window.addEventListener("test",Qs,Qs),window.removeEventListener("test",Qs,Qs)}catch{Rc=!1}var wi=Rc?{passive:!1}:!1,tC=function(e){return e.tagName==="TEXTAREA"},ay=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!tC(e)&&r[t]==="visible")},rC=function(e){return ay(e,"overflowY")},nC=function(e){return ay(e,"overflowX")},zg=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=uy(e,i);if(s){var a=ly(e,i),u=a[1],l=a[2];if(u>l)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},iC=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},oC=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},uy=function(e,t){return e==="v"?rC(t):nC(t)},ly=function(e,t){return e==="v"?iC(t):oC(t)},sC=function(e,t){return e==="h"&&t==="rtl"?-1:1},aC=function(e,t,r,i,s){var a=sC(e,window.getComputedStyle(t).direction),u=a*i,l=r.target,f=t.contains(l),p=!1,m=u>0,d=0,g=0;do{if(!l)break;var y=ly(e,l),x=y[0],h=y[1],w=y[2],v=h-w-a*x;(x||v)&&uy(e,l)&&(d+=v,g+=x);var S=l.parentNode;l=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&l!==document.body||f&&(t.contains(l)||t===l));return(m&&Math.abs(d)<1||!m&&Math.abs(g)<1)&&(p=!0),p},ea=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bg=function(e){return[e.deltaX,e.deltaY]},Wg=function(e){return e&&"current"in e?e.current:e},uC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},lC=function(e){return`
|
|
60
60
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
61
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
62
|
-
`)},AP=0,gi=[];function TP(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),s=$.useState(AP++)[0],a=$.useState(Dv)[0],u=$.useRef(e);$.useEffect(function(){u.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var d=Sa([e.lockRef.current],(e.shards||[]).map(xg),!0).filter(Boolean);return d.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),d.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=$.useCallback(function(d,w){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!u.current.allowPinchZoom;var h=Ks(d),S=r.current,E="deltaX"in d?d.deltaX:S[0]-h[0],R="deltaY"in d?d.deltaY:S[1]-h[1],O,C=d.target,U=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in d&&U==="h"&&C.type==="range")return!1;var M=window.getSelection(),D=M&&M.anchorNode,q=D?D===C||D.contains(C):!1;if(q)return!1;var N=bg(U,C);if(!N)return!0;if(N?O=U:(O=U==="v"?"h":"v",N=bg(U,C)),!N)return!1;if(!i.current&&"changedTouches"in d&&(E||R)&&(i.current=O),!O)return!0;var L=i.current||O;return EP(L,w,d,L==="h"?E:R)},[]),f=$.useCallback(function(d){var w=d;if(!(!gi.length||gi[gi.length-1]!==a)){var h="deltaY"in w?wg(w):Ks(w),S=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&_P(O.delta,h)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(u.current.shards||[]).map(xg).filter(Boolean).filter(function(O){return O.contains(w.target)}),R=E.length>0?c(w,E[0]):!u.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),m=$.useCallback(function(d,w,h,S){var E={name:d,delta:w,target:h,should:S,shadowParent:RP(h)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),y=$.useCallback(function(d){r.current=Ks(d),i.current=void 0},[]),p=$.useCallback(function(d){m(d.type,wg(d),d.target,c(d,e.lockRef.current))},[]),g=$.useCallback(function(d){m(d.type,Ks(d),d.target,c(d,e.lockRef.current))},[]);$.useEffect(function(){return gi.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",f,hi),document.addEventListener("touchmove",f,hi),document.addEventListener("touchstart",y,hi),function(){gi=gi.filter(function(d){return d!==a}),document.removeEventListener("wheel",f,hi),document.removeEventListener("touchmove",f,hi),document.removeEventListener("touchstart",y,hi)}},[]);var v=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(a,{styles:OP(s)}):null,v?$.createElement(mP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function RP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const PP=nP(Fv,TP);var Wv=$.forwardRef(function(e,t){return $.createElement(za,Pr({},e,{ref:t,sideCar:PP}))});Wv.classNames=za.classNames;const CP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},kP=$.useId||(()=>{});let $P=0;function Uv(e){const[t,r]=$.useState(kP());return CP((()=>{r((i=>i??String($P++)))}),[e]),t?`radix-${t}`:""}function Bv(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function En(...e){return $.useCallback(Bv(...e),e)}const Hv=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(Sg)?$.createElement($.Fragment,null,$.Children.map(r,(s=>Sg(s)?$.createElement(bc,Qe({},i,{ref:t}),s.props.children):s))):$.createElement(bc,Qe({},i,{ref:t}),r)}));Hv.displayName="Slot";const bc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...IP(i,r.props),ref:Bv(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));bc.displayName="SlotClone";const qv=({children:e})=>$.createElement($.Fragment,null,e);function Sg(e){return $.isValidElement(e)&&e.type===qv}function IP(e,t){const r={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?r[i]=(...u)=>{a==null||a(...u),s==null||s(...u)}:i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const _n=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:$.forwardRef(((r,i)=>{const{asChild:s,...a}=r,u=s?Hv:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(u,Qe({},a,{ref:i}))}))})),{}),Eg=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},ef=e=>{const{present:t,children:r}=e,i=(function(u){const[c,f]=$.useState(),m=$.useRef({}),y=$.useRef(u),p=$.useRef("none"),g=u?"mounted":"unmounted",[v,x]=(function(d,w){return $.useReducer(((h,S)=>{const E=w[h][S];return E??h}),d)})(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const d=Vs(m.current);p.current=v==="mounted"?d:"none"}),[v]),Eg((()=>{const d=m.current,w=y.current;if(w!==u){const h=p.current,S=Vs(d);u?x("MOUNT"):S==="none"||(d==null?void 0:d.display)==="none"?x("UNMOUNT"):x(w&&h!==S?"ANIMATION_OUT":"UNMOUNT"),y.current=u}}),[u,x]),Eg((()=>{if(c){const d=h=>{const S=Vs(m.current).includes(h.animationName);h.target===c&&S&&x("ANIMATION_END")},w=h=>{h.target===c&&(p.current=Vs(m.current))};return c.addEventListener("animationstart",w),c.addEventListener("animationcancel",d),c.addEventListener("animationend",d),()=>{c.removeEventListener("animationstart",w),c.removeEventListener("animationcancel",d),c.removeEventListener("animationend",d)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:$.useCallback((d=>{d&&(m.current=getComputedStyle(d)),f(d)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),a=En(i.ref,s.ref);return typeof r=="function"||i.isPresent?$.cloneElement(s,{ref:a}):null};function Vs(e){return(e==null?void 0:e.animationName)||"none"}ef.displayName="Presence";let jl=0;function LP(){$.useEffect((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:_g()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:_g()),jl++,()=>{jl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),jl--}}),[])}function _g(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const MP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},tf=$.forwardRef(((e,t)=>{var r,i;const{containerRef:s,style:a,...u}=e,c=(r=s==null?void 0:s.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,f]=$.useState({});return MP((()=>{f({})}),[]),c?zo.createPortal($.createElement(_n.div,Qe({"data-radix-portal":""},u,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function qn(e){const t=$.useRef(e);return $.useEffect((()=>{t.current=e})),$.useMemo((()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)}),[])}const Og={bubbles:!1,cancelable:!0},FP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...u}=e,[c,f]=$.useState(null),m=qn(s),y=qn(a),p=$.useRef(null),g=En(t,(d=>f(d))),v=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let d=function(h){if(v.paused||!c)return;const S=h.target;c.contains(S)?p.current=S:Fn(p.current,{select:!0})},w=function(h){!v.paused&&c&&(c.contains(h.relatedTarget)||Fn(p.current,{select:!0}))};return document.addEventListener("focusin",d),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",w)}}}),[i,c,v.paused]),$.useEffect((()=>{if(c){Rg.add(v);const w=document.activeElement;if(!c.contains(w)){const h=new Event("focusScope.autoFocusOnMount",Og);c.addEventListener("focusScope.autoFocusOnMount",m),c.dispatchEvent(h),h.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const O of S)if(Fn(O,{select:E}),document.activeElement!==R)return})((d=Ag(c),d.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&Fn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout((()=>{const h=new Event("focusScope.autoFocusOnUnmount",Og);c.addEventListener("focusScope.autoFocusOnUnmount",y),c.dispatchEvent(h),h.defaultPrevented||Fn(w??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",y),Rg.remove(v)}),0)}}var d}),[c,m,y,v]);const x=$.useCallback((d=>{if(!r&&!i||v.paused)return;const w=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,h=document.activeElement;if(w&&h){const S=d.currentTarget,[E,R]=(function(O){const C=Ag(O),U=Tg(C,O),M=Tg(C.reverse(),O);return[U,M]})(S);E&&R?d.shiftKey||h!==R?d.shiftKey&&h===E&&(d.preventDefault(),r&&Fn(R,{select:!0})):(d.preventDefault(),r&&Fn(E,{select:!0})):h===S&&d.preventDefault()}}),[r,i,v.paused]);return $.createElement(_n.div,Qe({tabIndex:-1},u,{ref:g,onKeyDown:x}))}));function Ag(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Tg(e,t){for(const r of e)if(!DP(r,{upTo:t}))return r}function DP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Fn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(i){return i instanceof HTMLInputElement&&"select"in i})(e)&&t&&e.select()}}const Rg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Pg(e,t),e.unshift(t)},remove(t){var r;e=Pg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function Pg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function Zv(e){const t=qn(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const NP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let Cg,Xs=0;function jP({disabled:e}){const t=$.useRef(!1);NP((()=>{if(e){let r=function(){Xs--,Xs===0&&(document.body.style.pointerEvents=Cg)},i=function(s){t.current=s.pointerType!=="mouse"};return Xs===0&&(Cg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Xs++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function qt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}const zP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),WP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...f}=e,m=$.useContext(zP),[y,p]=$.useState(null),[,g]=$.useState({}),v=En(t,(C=>p(C))),x=Array.from(m.layers),[d]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(d),h=y?x.indexOf(y):-1,S=m.layersWithOutsidePointerEventsDisabled.size>0,E=h>=w,R=(function(C){const U=qn(C),M=$.useRef(!1);return $.useEffect((()=>{const D=N=>{N.target&&!M.current&&$g("dismissableLayer.pointerDownOutside",U,{originalEvent:N}),M.current=!1},q=window.setTimeout((()=>{document.addEventListener("pointerdown",D)}),0);return()=>{window.clearTimeout(q),document.removeEventListener("pointerdown",D)}}),[U]),{onPointerDownCapture:()=>M.current=!0}})((C=>{const U=C.target,M=[...m.branches].some((D=>D.contains(U)));E&&!M&&(s==null||s(C),u==null||u(C),C.defaultPrevented||c==null||c())})),O=(function(C){const U=qn(C),M=$.useRef(!1);return $.useEffect((()=>{const D=q=>{q.target&&!M.current&&$g("dismissableLayer.focusOutside",U,{originalEvent:q})};return document.addEventListener("focusin",D),()=>document.removeEventListener("focusin",D)}),[U]),{onFocusCapture:()=>M.current=!0,onBlurCapture:()=>M.current=!1}})((C=>{const U=C.target;[...m.branches].some((M=>M.contains(U)))||(a==null||a(C),u==null||u(C),C.defaultPrevented||c==null||c())}));return Zv((C=>{h===m.layers.size-1&&(i==null||i(C),C.defaultPrevented||c==null||c())})),jP({disabled:r}),$.useEffect((()=>{y&&(r&&m.layersWithOutsidePointerEventsDisabled.add(y),m.layers.add(y),kg())}),[y,r,m]),$.useEffect((()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),kg())}),[y,m]),$.useEffect((()=>{const C=()=>g({});return document.addEventListener("dismissableLayer.update",C),()=>document.removeEventListener("dismissableLayer.update",C)}),[]),$.createElement(_n.div,Qe({},f,{ref:v,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:qt(e.onFocusCapture,O.onFocusCapture),onBlurCapture:qt(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:qt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function kg(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function $g(e,t,r){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(s)}function Ig(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let u,c;if("borderBoxSize"in a){const f=a.borderBoxSize,m=Array.isArray(f)?f[0]:f;u=m.inlineSize,c=m.blockSize}else{const f=e.getBoundingClientRect();u=f.width,c=f.height}r({width:u,height:c})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function UP(e,t){const r=Dn.get(e);return r===void 0?(Dn.set(e,{rect:{},callbacks:[t]}),Dn.size===1&&(wc=requestAnimationFrame(Gv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Dn.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&(Dn.delete(e),Dn.size===0&&cancelAnimationFrame(wc))}}let wc;const Dn=new Map;function Gv(){const e=[];Dn.forEach(((t,r)=>{const i=r.getBoundingClientRect();var s,a;s=t.rect,a=i,(s.width!==a.width||s.height!==a.height||s.top!==a.top||s.right!==a.right||s.bottom!==a.bottom||s.left!==a.left)&&(t.rect=i,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),wc=requestAnimationFrame(Gv)}function Kv(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=UP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function rf(e,t=[]){let r=[];const i=()=>{const s=r.map((a=>$.createContext(a)));return function(a){const u=(a==null?void 0:a[e])||s;return $.useMemo((()=>({[`__scope${e}`]:{...a,[e]:u}})),[a,u])}};return i.scopeName=e,[function(s,a){const u=$.createContext(a),c=r.length;function f(m){const{scope:y,children:p,...g}=m,v=(y==null?void 0:y[e][c])||u,x=$.useMemo((()=>g),Object.values(g));return $.createElement(v.Provider,{value:x},p)}return r=[...r,a],f.displayName=s+"Provider",[f,function(m,y){const p=(y==null?void 0:y[e][c])||u,g=$.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}]},BP(i,...t)]}function BP(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((s=>({useScope:s(),scopeName:s.scopeName})));return function(s){const a=i.reduce(((u,{useScope:c,scopeName:f})=>({...u,...c(s)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function HP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:s,sideOffset:a=0,align:u,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:m,collisionTolerance:y=0}){if(!e||!t||!m)return{popperStyles:qP,arrowStyles:zl};const p=(function(U,M,D=0,q=0,N){const L=N?N.height:0,B=Lg(M,U,"x"),Z=Lg(M,U,"y"),k=Z.before-D-L,Q=Z.after+D+L,J=B.before-D-L,re=B.after+D+L;return{top:{start:{x:B.start+q,y:k},center:{x:B.center,y:k},end:{x:B.end-q,y:k}},right:{start:{x:re,y:Z.start+q},center:{x:re,y:Z.center},end:{x:re,y:Z.end-q}},bottom:{start:{x:B.start+q,y:Q},center:{x:B.center,y:Q},end:{x:B.end-q,y:Q}},left:{start:{x:J,y:Z.start+q},center:{x:J,y:Z.center},end:{x:J,y:Z.end-q}}}})(t,e,a,c,r),g=p[s][u];if(f===!1){const U=Mg(g);let M=zl;return r&&(M=Dg({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:u})),{popperStyles:{...U,"--radix-popper-transform-origin":Fg(t,s,u,i,r)},arrowStyles:M,placedSide:s,placedAlign:u}}const v=DOMRect.fromRect({...t,...g}),x=(d=m,w=y,DOMRect.fromRect({width:d.width-2*w,height:d.height-2*w,x:d.left+w,y:d.top+w}));var d,w;const h=jg(v,x),S=p[Ng(s)][u],E=(function(U,M,D){const q=Ng(U);return M[U]&&!D[q]?q:U})(s,h,jg(DOMRect.fromRect({...t,...S}),x)),R=(function(U,M,D,q,N){const L=D==="top"||D==="bottom",B=L?"left":"top",Z=L?"right":"bottom",k=L?"width":"height",Q=M[k]>U[k];return(q==="start"||q==="center")&&(N[B]&&Q||N[Z]&&!Q)?"end":(q==="end"||q==="center")&&(N[Z]&&Q||N[B]&&!Q)?"start":q})(t,e,s,u,h),O=Mg(p[E][R]);let C=zl;return r&&(C=Dg({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":Fg(t,E,R,i,r)},arrowStyles:C,placedSide:E,placedAlign:R}}function Lg(e,t,r){const i=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],u=t[s];return{before:i-u,start:i,center:i+(a-u)/2,end:i+a-u,after:i+a}}function Mg(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Fg(e,t,r,i,s){const a=t==="top"||t==="bottom",u=s?s.width:0,c=s?s.height:0,f=u/2+i;let m="",y="";return a?(m={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],y=t==="top"?`${e.height+c}px`:-c+"px"):(m=t==="left"?`${e.width+c}px`:-c+"px",y={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${m} ${y}`}const qP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},zl={position:"absolute",opacity:0};function Dg({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:s}){const a=(e.width-t.width)/2,u=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],f=Math.max(t.width,t.height),m={width:`${f}px`,height:`${f}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:ZP(i,s)};return i!=="top"&&i!=="bottom"||(s==="start"&&(m.left=`${r}px`),s==="center"&&(m.left=`${a}px`),s==="end"&&(m.right=`${r}px`)),i!=="left"&&i!=="right"||(s==="start"&&(m.top=`${r}px`),s==="center"&&(m.top=`${u}px`),s==="end"&&(m.bottom=`${r}px`)),m}function ZP(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Ng(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function jg(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Vv,Wa]=rf("Popper"),[GP,Xv]=Vv("Popper"),KP=e=>{const{__scopePopper:t,children:r}=e,[i,s]=$.useState(null);return $.createElement(GP,{scope:t,anchor:i,onAnchorChange:s},r)},VP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=Xv("PopperAnchor",r),u=$.useRef(null),c=En(t,u);return $.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||u.current)})),i?null:$.createElement(_n.div,Qe({},s,{ref:c}))})),[XP,jM]=Vv("PopperContent"),YP=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:u,collisionTolerance:c,avoidCollisions:f=!0,...m}=e,y=Xv("PopperContent",r),[p,g]=$.useState(),v=Kv(y.anchor),[x,d]=$.useState(null),w=Ig(x),[h,S]=$.useState(null),E=Ig(h),R=En(t,(L=>d(L))),O=(function(){const[L,B]=$.useState(void 0);return $.useEffect((()=>{let Z;function k(){B({width:window.innerWidth,height:window.innerHeight})}function Q(){window.clearTimeout(Z),Z=window.setTimeout(k,100)}return k(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)}),[]),L})(),C=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:M,placedSide:D,placedAlign:q}=HP({anchorRect:v,popperSize:w,arrowSize:E,arrowOffset:p,side:i,sideOffset:s,align:a,alignOffset:u,shouldAvoidCollisions:f,collisionBoundariesRect:C,collisionTolerance:c}),N=D!==void 0;return $.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},$.createElement(XP,{scope:r,arrowStyles:M,onArrowChange:S,onArrowOffsetChange:g},$.createElement(_n.div,Qe({"data-side":D,"data-align":q},m,{style:{...m.style,animation:N?void 0:"none"},ref:R}))))})),Yv=KP,Jv=VP,Qv=YP;function ey({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:m}){const y=$.useState(f),[p]=y,g=$.useRef(p),v=qn(m);return $.useEffect((()=>{g.current!==p&&(v(p),g.current=p)}),[p,g,v]),y})({defaultProp:t,onChange:r}),a=e!==void 0,u=a?e:i,c=qn(r);return[u,$.useCallback((f=>{if(a){const m=f,y=typeof f=="function"?m(e):f;y!==e&&c(y)}else s(f)}),[a,e,s,c])]}const[JP]=rf("Popover",[Wa]),nf=Wa(),[QP,Bo]=JP("Popover"),eC=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:u=!1}=e,c=nf(t),f=$.useRef(null),[m,y]=$.useState(!1),[p=!1,g]=ey({prop:i,defaultProp:s,onChange:a});return $.createElement(Yv,c,$.createElement(QP,{scope:t,contentId:Uv(),triggerRef:f,open:p,onOpenChange:g,onOpenToggle:$.useCallback((()=>g((v=>!v))),[g]),hasCustomAnchor:m,onCustomAnchorAdd:$.useCallback((()=>y(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>y(!1)),[]),modal:u},r))},tC=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=Bo("PopoverTrigger",r),a=nf(r),u=En(t,s.triggerRef),c=$.createElement(_n.button,Qe({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ry(s.open)},i,{ref:u,onClick:qt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:$.createElement(Jv,Qe({asChild:!0},a),c)})),rC=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Bo("PopoverContent",e.__scopePopover);return $.createElement(ef,{present:r||s.open},s.modal?$.createElement(nC,Qe({},i,{ref:t})):$.createElement(iC,Qe({},i,{ref:t})))})),nC=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=Bo("PopoverContent",e.__scopePopover),u=$.useRef(null),c=En(t,u),f=$.useRef(!1);$.useEffect((()=>{const y=u.current;if(y)return KR(y)}),[]);const m=i?tf:$.Fragment;return $.createElement(m,null,$.createElement(Wv,{allowPinchZoom:r},$.createElement(ty,Qe({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qt(e.onCloseAutoFocus,(y=>{var p;y.preventDefault(),f.current||(p=a.triggerRef.current)===null||p===void 0||p.focus()})),onPointerDownOutside:qt(e.onPointerDownOutside,(y=>{const p=y.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,v=p.button===2||g;f.current=v}),{checkForDefaultPrevented:!1}),onFocusOutside:qt(e.onFocusOutside,(y=>y.preventDefault()),{checkForDefaultPrevented:!1})}))))})),iC=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=Bo("PopoverContent",e.__scopePopover),a=$.useRef(!1),u=r?tf:$.Fragment;return $.createElement(u,null,$.createElement(ty,Qe({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,m;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current||(m=s.triggerRef.current)===null||m===void 0||m.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var f,m;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current=!0);const y=c.target;!((m=s.triggerRef.current)===null||m===void 0)&&m.contains(y)&&c.preventDefault()}})))})),ty=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:y,...p}=e,g=Bo("PopoverContent",r),v=nf(r);return LP(),$.createElement(FP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},$.createElement(WP,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:y,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>g.onOpenChange(!1)},$.createElement(Qv,Qe({"data-state":ry(g.open),role:"dialog",id:g.contentId},v,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function ry(e){return e?"open":"closed"}const oC=eC,sC=tC,aC=rC;var ha=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(ha||{}),Wl={},so={},Ys={},Js={},Qs={exports:{}},ea={exports:{}},Fe={};/** @license React v16.13.1
|
|
62
|
+
`)},cC=0,xi=[];function fC(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),s=$.useState(cC++)[0],a=$.useState(sy)[0],u=$.useRef(e);$.useEffect(function(){u.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var h=Ra([e.lockRef.current],(e.shards||[]).map(Wg),!0).filter(Boolean);return h.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=$.useCallback(function(h,w){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!u.current.allowPinchZoom;var v=ea(h),S=r.current,E="deltaX"in h?h.deltaX:S[0]-v[0],R="deltaY"in h?h.deltaY:S[1]-v[1],T,C=h.target,W=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in h&&W==="h"&&C.type==="range")return!1;var N=window.getSelection(),F=N&&N.anchorNode,q=F?F===C||F.contains(C):!1;if(q)return!1;var j=zg(W,C);if(!j)return!0;if(j?T=W:(T=W==="v"?"h":"v",j=zg(W,C)),!j)return!1;if(!i.current&&"changedTouches"in h&&(E||R)&&(i.current=T),!T)return!0;var D=i.current||T;return aC(D,w,h,D==="h"?E:R)},[]),f=$.useCallback(function(h){var w=h;if(!(!xi.length||xi[xi.length-1]!==a)){var v="deltaY"in w?Bg(w):ea(w),S=t.current.filter(function(T){return T.name===w.type&&(T.target===w.target||w.target===T.shadowParent)&&uC(T.delta,v)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(u.current.shards||[]).map(Wg).filter(Boolean).filter(function(T){return T.contains(w.target)}),R=E.length>0?l(w,E[0]):!u.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),p=$.useCallback(function(h,w,v,S){var E={name:h,delta:w,target:v,should:S,shadowParent:dC(v)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),m=$.useCallback(function(h){r.current=ea(h),i.current=void 0},[]),d=$.useCallback(function(h){p(h.type,Bg(h),h.target,l(h,e.lockRef.current))},[]),g=$.useCallback(function(h){p(h.type,ea(h),h.target,l(h,e.lockRef.current))},[]);$.useEffect(function(){return xi.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:g}),document.addEventListener("wheel",f,wi),document.addEventListener("touchmove",f,wi),document.addEventListener("touchstart",m,wi),function(){xi=xi.filter(function(h){return h!==a}),document.removeEventListener("wheel",f,wi),document.removeEventListener("touchmove",f,wi),document.removeEventListener("touchstart",m,wi)}},[]);var y=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(a,{styles:lC(s)}):null,y?$.createElement(eC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pC=BP(oy,fC);var cy=$.forwardRef(function(e,t){return $.createElement(Va,$r({},e,{ref:t,sideCar:pC}))});cy.classNames=Va.classNames;const hC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},gC=$.useId||(()=>{});let mC=0;function fy(e){const[t,r]=$.useState(gC());return hC((()=>{r((i=>i??String(mC++)))}),[e]),t?`radix-${t}`:""}function dy(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function Rn(...e){return $.useCallback(dy(...e),e)}const py=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(Hg)?$.createElement($.Fragment,null,$.Children.map(r,(s=>Hg(s)?$.createElement(Pc,rt({},i,{ref:t}),s.props.children):s))):$.createElement(Pc,rt({},i,{ref:t}),r)}));py.displayName="Slot";const Pc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...vC(i,r.props),ref:dy(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));Pc.displayName="SlotClone";const hy=({children:e})=>$.createElement($.Fragment,null,e);function Hg(e){return $.isValidElement(e)&&e.type===hy}function vC(e,t){const r={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?r[i]=(...u)=>{a==null||a(...u),s==null||s(...u)}:i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const Pn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:$.forwardRef(((r,i)=>{const{asChild:s,...a}=r,u=s?py:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(u,rt({},a,{ref:i}))}))})),{}),Ug=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},df=e=>{const{present:t,children:r}=e,i=(function(u){const[l,f]=$.useState(),p=$.useRef({}),m=$.useRef(u),d=$.useRef("none"),g=u?"mounted":"unmounted",[y,x]=(function(h,w){return $.useReducer(((v,S)=>{const E=w[v][S];return E??v}),h)})(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const h=ta(p.current);d.current=y==="mounted"?h:"none"}),[y]),Ug((()=>{const h=p.current,w=m.current;if(w!==u){const v=d.current,S=ta(h);u?x("MOUNT"):S==="none"||(h==null?void 0:h.display)==="none"?x("UNMOUNT"):x(w&&v!==S?"ANIMATION_OUT":"UNMOUNT"),m.current=u}}),[u,x]),Ug((()=>{if(l){const h=v=>{const S=ta(p.current).includes(v.animationName);v.target===l&&S&&x("ANIMATION_END")},w=v=>{v.target===l&&(d.current=ta(p.current))};return l.addEventListener("animationstart",w),l.addEventListener("animationcancel",h),l.addEventListener("animationend",h),()=>{l.removeEventListener("animationstart",w),l.removeEventListener("animationcancel",h),l.removeEventListener("animationend",h)}}x("ANIMATION_END")}),[l,x]),{isPresent:["mounted","unmountSuspended"].includes(y),ref:$.useCallback((h=>{h&&(p.current=getComputedStyle(h)),f(h)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),a=Rn(i.ref,s.ref);return typeof r=="function"||i.isPresent?$.cloneElement(s,{ref:a}):null};function ta(e){return(e==null?void 0:e.animationName)||"none"}df.displayName="Presence";let Kl=0;function yC(){$.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:qg()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:qg()),Kl++,()=>{Kl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),Kl--}}),[])}function qg(){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 bC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},pf=$.forwardRef(((e,t)=>{var r,i;const{containerRef:s,style:a,...u}=e,l=(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 bC((()=>{f({})}),[]),l?Qn.createPortal($.createElement(Pn.div,rt({"data-radix-portal":""},u,{ref:t,style:l===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),l):null}));function Yn(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 Gg={bubbles:!1,cancelable:!0},wC=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...u}=e,[l,f]=$.useState(null),p=Yn(s),m=Yn(a),d=$.useRef(null),g=Rn(t,(h=>f(h))),y=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let h=function(v){if(y.paused||!l)return;const S=v.target;l.contains(S)?d.current=S:Bn(d.current,{select:!0})},w=function(v){!y.paused&&l&&(l.contains(v.relatedTarget)||Bn(d.current,{select:!0}))};return document.addEventListener("focusin",h),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w)}}}),[i,l,y.paused]),$.useEffect((()=>{if(l){Kg.add(y);const w=document.activeElement;if(!l.contains(w)){const v=new Event("focusScope.autoFocusOnMount",Gg);l.addEventListener("focusScope.autoFocusOnMount",p),l.dispatchEvent(v),v.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const T of S)if(Bn(T,{select:E}),document.activeElement!==R)return})((h=Zg(l),h.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&Bn(l))}return()=>{l.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout((()=>{const v=new Event("focusScope.autoFocusOnUnmount",Gg);l.addEventListener("focusScope.autoFocusOnUnmount",m),l.dispatchEvent(v),v.defaultPrevented||Bn(w??document.body,{select:!0}),l.removeEventListener("focusScope.autoFocusOnUnmount",m),Kg.remove(y)}),0)}}var h}),[l,p,m,y]);const x=$.useCallback((h=>{if(!r&&!i||y.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(w&&v){const S=h.currentTarget,[E,R]=(function(T){const C=Zg(T),W=Vg(C,T),N=Vg(C.reverse(),T);return[W,N]})(S);E&&R?h.shiftKey||v!==R?h.shiftKey&&v===E&&(h.preventDefault(),r&&Bn(R,{select:!0})):(h.preventDefault(),r&&Bn(E,{select:!0})):v===S&&h.preventDefault()}}),[r,i,y.paused]);return $.createElement(Pn.div,rt({tabIndex:-1},u,{ref:g,onKeyDown:x}))}));function Zg(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 Vg(e,t){for(const r of e)if(!xC(r,{upTo:t}))return r}function xC(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 Bn(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 Kg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Yg(e,t),e.unshift(t)},remove(t){var r;e=Yg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function Yg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function gy(e){const t=Yn(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const SC=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let Xg,ra=0;function EC({disabled:e}){const t=$.useRef(!1);SC((()=>{if(e){let r=function(){ra--,ra===0&&(document.body.style.pointerEvents=Xg)},i=function(s){t.current=s.pointerType!=="mouse"};return ra===0&&(Xg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ra++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function Zt(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 _C=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),TC=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:u,onDismiss:l,...f}=e,p=$.useContext(_C),[m,d]=$.useState(null),[,g]=$.useState({}),y=Rn(t,(C=>d(C))),x=Array.from(p.layers),[h]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(h),v=m?x.indexOf(m):-1,S=p.layersWithOutsidePointerEventsDisabled.size>0,E=v>=w,R=(function(C){const W=Yn(C),N=$.useRef(!1);return $.useEffect((()=>{const F=j=>{j.target&&!N.current&&Qg("dismissableLayer.pointerDownOutside",W,{originalEvent:j}),N.current=!1},q=window.setTimeout((()=>{document.addEventListener("pointerdown",F)}),0);return()=>{window.clearTimeout(q),document.removeEventListener("pointerdown",F)}}),[W]),{onPointerDownCapture:()=>N.current=!0}})((C=>{const W=C.target,N=[...p.branches].some((F=>F.contains(W)));E&&!N&&(s==null||s(C),u==null||u(C),C.defaultPrevented||l==null||l())})),T=(function(C){const W=Yn(C),N=$.useRef(!1);return $.useEffect((()=>{const F=q=>{q.target&&!N.current&&Qg("dismissableLayer.focusOutside",W,{originalEvent:q})};return document.addEventListener("focusin",F),()=>document.removeEventListener("focusin",F)}),[W]),{onFocusCapture:()=>N.current=!0,onBlurCapture:()=>N.current=!1}})((C=>{const W=C.target;[...p.branches].some((N=>N.contains(W)))||(a==null||a(C),u==null||u(C),C.defaultPrevented||l==null||l())}));return gy((C=>{v===p.layers.size-1&&(i==null||i(C),C.defaultPrevented||l==null||l())})),EC({disabled:r}),$.useEffect((()=>{m&&(r&&p.layersWithOutsidePointerEventsDisabled.add(m),p.layers.add(m),Jg())}),[m,r,p]),$.useEffect((()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),Jg())}),[m,p]),$.useEffect((()=>{const C=()=>g({});return document.addEventListener("dismissableLayer.update",C),()=>document.removeEventListener("dismissableLayer.update",C)}),[]),$.createElement(Pn.div,rt({},f,{ref:y,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:Zt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Zt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Zt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function Jg(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Qg(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 em(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let u,l;if("borderBoxSize"in a){const f=a.borderBoxSize,p=Array.isArray(f)?f[0]:f;u=p.inlineSize,l=p.blockSize}else{const f=e.getBoundingClientRect();u=f.width,l=f.height}r({width:u,height:l})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function OC(e,t){const r=Wn.get(e);return r===void 0?(Wn.set(e,{rect:{},callbacks:[t]}),Wn.size===1&&(Cc=requestAnimationFrame(my))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Wn.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&(Wn.delete(e),Wn.size===0&&cancelAnimationFrame(Cc))}}let Cc;const Wn=new Map;function my(){const e=[];Wn.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)))})),Cc=requestAnimationFrame(my)}function vy(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=OC(e,r);return()=>{r(void 0),i()}}}),[e]),t}function hf(e,t=[]){let r=[];const i=()=>{const s=r.map((a=>$.createContext(a)));return function(a){const u=(a==null?void 0:a[e])||s;return $.useMemo((()=>({[`__scope${e}`]:{...a,[e]:u}})),[a,u])}};return i.scopeName=e,[function(s,a){const u=$.createContext(a),l=r.length;function f(p){const{scope:m,children:d,...g}=p,y=(m==null?void 0:m[e][l])||u,x=$.useMemo((()=>g),Object.values(g));return $.createElement(y.Provider,{value:x},d)}return r=[...r,a],f.displayName=s+"Provider",[f,function(p,m){const d=(m==null?void 0:m[e][l])||u,g=$.useContext(d);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}]},AC(i,...t)]}function AC(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((s=>({useScope:s(),scopeName:s.scopeName})));return function(s){const a=i.reduce(((u,{useScope:l,scopeName:f})=>({...u,...l(s)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function RC({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:s,sideOffset:a=0,align:u,alignOffset:l=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:p,collisionTolerance:m=0}){if(!e||!t||!p)return{popperStyles:PC,arrowStyles:Yl};const d=(function(W,N,F=0,q=0,j){const D=j?j.height:0,H=tm(N,W,"x"),G=tm(N,W,"y"),k=G.before-F-D,Q=G.after+F+D,J=H.before-F-D,re=H.after+F+D;return{top:{start:{x:H.start+q,y:k},center:{x:H.center,y:k},end:{x:H.end-q,y:k}},right:{start:{x:re,y:G.start+q},center:{x:re,y:G.center},end:{x:re,y:G.end-q}},bottom:{start:{x:H.start+q,y:Q},center:{x:H.center,y:Q},end:{x:H.end-q,y:Q}},left:{start:{x:J,y:G.start+q},center:{x:J,y:G.center},end:{x:J,y:G.end-q}}}})(t,e,a,l,r),g=d[s][u];if(f===!1){const W=rm(g);let N=Yl;return r&&(N=im({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:u})),{popperStyles:{...W,"--radix-popper-transform-origin":nm(t,s,u,i,r)},arrowStyles:N,placedSide:s,placedAlign:u}}const y=DOMRect.fromRect({...t,...g}),x=(h=p,w=m,DOMRect.fromRect({width:h.width-2*w,height:h.height-2*w,x:h.left+w,y:h.top+w}));var h,w;const v=sm(y,x),S=d[om(s)][u],E=(function(W,N,F){const q=om(W);return N[W]&&!F[q]?q:W})(s,v,sm(DOMRect.fromRect({...t,...S}),x)),R=(function(W,N,F,q,j){const D=F==="top"||F==="bottom",H=D?"left":"top",G=D?"right":"bottom",k=D?"width":"height",Q=N[k]>W[k];return(q==="start"||q==="center")&&(j[H]&&Q||j[G]&&!Q)?"end":(q==="end"||q==="center")&&(j[G]&&Q||j[H]&&!Q)?"start":q})(t,e,s,u,v),T=rm(d[E][R]);let C=Yl;return r&&(C=im({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...T,"--radix-popper-transform-origin":nm(t,E,R,i,r)},arrowStyles:C,placedSide:E,placedAlign:R}}function tm(e,t,r){const i=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],u=t[s];return{before:i-u,start:i,center:i+(a-u)/2,end:i+a-u,after:i+a}}function rm(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 nm(e,t,r,i,s){const a=t==="top"||t==="bottom",u=s?s.width:0,l=s?s.height:0,f=u/2+i;let p="",m="";return a?(p={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],m=t==="top"?`${e.height+l}px`:-l+"px"):(p=t==="left"?`${e.width+l}px`:-l+"px",m={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${p} ${m}`}const PC={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Yl={position:"absolute",opacity:0};function im({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:s}){const a=(e.width-t.width)/2,u=(e.height-t.width)/2,l={top:0,right:90,bottom:180,left:-90}[i],f=Math.max(t.width,t.height),p={width:`${f}px`,height:`${f}px`,transform:`rotate(${l}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:CC(i,s)};return i!=="top"&&i!=="bottom"||(s==="start"&&(p.left=`${r}px`),s==="center"&&(p.left=`${a}px`),s==="end"&&(p.right=`${r}px`)),i!=="left"&&i!=="right"||(s==="start"&&(p.top=`${r}px`),s==="center"&&(p.top=`${u}px`),s==="end"&&(p.bottom=`${r}px`)),p}function CC(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function om(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function sm(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[yy,Ka]=hf("Popper"),[kC,by]=yy("Popper"),IC=e=>{const{__scopePopper:t,children:r}=e,[i,s]=$.useState(null);return $.createElement(kC,{scope:t,anchor:i,onAnchorChange:s},r)},$C=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=by("PopperAnchor",r),u=$.useRef(null),l=Rn(t,u);return $.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||u.current)})),i?null:$.createElement(Pn.div,rt({},s,{ref:l}))})),[LC,T2]=yy("PopperContent"),MC=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:u,collisionTolerance:l,avoidCollisions:f=!0,...p}=e,m=by("PopperContent",r),[d,g]=$.useState(),y=vy(m.anchor),[x,h]=$.useState(null),w=em(x),[v,S]=$.useState(null),E=em(v),R=Rn(t,(D=>h(D))),T=(function(){const[D,H]=$.useState(void 0);return $.useEffect((()=>{let G;function k(){H({width:window.innerWidth,height:window.innerHeight})}function Q(){window.clearTimeout(G),G=window.setTimeout(k,100)}return k(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)}),[]),D})(),C=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:W,arrowStyles:N,placedSide:F,placedAlign:q}=RC({anchorRect:y,popperSize:w,arrowSize:E,arrowOffset:d,side:i,sideOffset:s,align:a,alignOffset:u,shouldAvoidCollisions:f,collisionBoundariesRect:C,collisionTolerance:l}),j=F!==void 0;return $.createElement("div",{style:W,"data-radix-popper-content-wrapper":""},$.createElement(LC,{scope:r,arrowStyles:N,onArrowChange:S,onArrowOffsetChange:g},$.createElement(Pn.div,rt({"data-side":F,"data-align":q},p,{style:{...p.style,animation:j?void 0:"none"},ref:R}))))})),wy=IC,xy=$C,Sy=MC;function Ey({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:p}){const m=$.useState(f),[d]=m,g=$.useRef(d),y=Yn(p);return $.useEffect((()=>{g.current!==d&&(y(d),g.current=d)}),[d,g,y]),m})({defaultProp:t,onChange:r}),a=e!==void 0,u=a?e:i,l=Yn(r);return[u,$.useCallback((f=>{if(a){const p=f,m=typeof f=="function"?p(e):f;m!==e&&l(m)}else s(f)}),[a,e,s,l])]}const[DC]=hf("Popover",[Ka]),gf=Ka(),[NC,Ko]=DC("Popover"),FC=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:u=!1}=e,l=gf(t),f=$.useRef(null),[p,m]=$.useState(!1),[d=!1,g]=Ey({prop:i,defaultProp:s,onChange:a});return $.createElement(wy,l,$.createElement(NC,{scope:t,contentId:fy(),triggerRef:f,open:d,onOpenChange:g,onOpenToggle:$.useCallback((()=>g((y=>!y))),[g]),hasCustomAnchor:p,onCustomAnchorAdd:$.useCallback((()=>m(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>m(!1)),[]),modal:u},r))},jC=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=Ko("PopoverTrigger",r),a=gf(r),u=Rn(t,s.triggerRef),l=$.createElement(Pn.button,rt({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Ty(s.open)},i,{ref:u,onClick:Zt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?l:$.createElement(xy,rt({asChild:!0},a),l)})),zC=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Ko("PopoverContent",e.__scopePopover);return $.createElement(df,{present:r||s.open},s.modal?$.createElement(BC,rt({},i,{ref:t})):$.createElement(WC,rt({},i,{ref:t})))})),BC=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=Ko("PopoverContent",e.__scopePopover),u=$.useRef(null),l=Rn(t,u),f=$.useRef(!1);$.useEffect((()=>{const m=u.current;if(m)return IP(m)}),[]);const p=i?pf:$.Fragment;return $.createElement(p,null,$.createElement(cy,{allowPinchZoom:r},$.createElement(_y,rt({},s,{ref:l,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Zt(e.onCloseAutoFocus,(m=>{var d;m.preventDefault(),f.current||(d=a.triggerRef.current)===null||d===void 0||d.focus()})),onPointerDownOutside:Zt(e.onPointerDownOutside,(m=>{const d=m.detail.originalEvent,g=d.button===0&&d.ctrlKey===!0,y=d.button===2||g;f.current=y}),{checkForDefaultPrevented:!1}),onFocusOutside:Zt(e.onFocusOutside,(m=>m.preventDefault()),{checkForDefaultPrevented:!1})}))))})),WC=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=Ko("PopoverContent",e.__scopePopover),a=$.useRef(!1),u=r?pf:$.Fragment;return $.createElement(u,null,$.createElement(_y,rt({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var f,p;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,l),l.defaultPrevented||(a.current||(p=s.triggerRef.current)===null||p===void 0||p.focus(),l.preventDefault()),a.current=!1},onInteractOutside:l=>{var f,p;(f=e.onInteractOutside)===null||f===void 0||f.call(e,l),l.defaultPrevented||(a.current=!0);const m=l.target;!((p=s.triggerRef.current)===null||p===void 0)&&p.contains(m)&&l.preventDefault()}})))})),_y=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,...d}=e,g=Ko("PopoverContent",r),y=gf(r);return yC(),$.createElement(wC,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},$.createElement(TC,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:m,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>g.onOpenChange(!1)},$.createElement(Sy,rt({"data-state":Ty(g.open),role:"dialog",id:g.contentId},y,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Ty(e){return e?"open":"closed"}const HC=FC,UC=jC,qC=zC;var wa=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(wa||{}),Xl={},ho={},na={},ia={},oa={exports:{}},sa={exports:{}},Fe={};/** @license React v16.13.1
|
|
63
63
|
* react-is.production.min.js
|
|
64
64
|
*
|
|
65
65
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the MIT license found in the
|
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var
|
|
69
|
+
*/var am;function GC(){if(am)return Fe;am=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(T){if(typeof T=="object"&&T!==null){var C=T.$$typeof;switch(C){case t:switch(T=T.type,T){case f:case p:case i:case a:case s:case d:return T;default:switch(T=T&&T.$$typeof,T){case l:case m:case x:case y:case u:return T;default:return C}}case r:return C}}}function R(T){return E(T)===p}return Fe.AsyncMode=f,Fe.ConcurrentMode=p,Fe.ContextConsumer=l,Fe.ContextProvider=u,Fe.Element=t,Fe.ForwardRef=m,Fe.Fragment=i,Fe.Lazy=x,Fe.Memo=y,Fe.Portal=r,Fe.Profiler=a,Fe.StrictMode=s,Fe.Suspense=d,Fe.isAsyncMode=function(T){return R(T)||E(T)===f},Fe.isConcurrentMode=R,Fe.isContextConsumer=function(T){return E(T)===l},Fe.isContextProvider=function(T){return E(T)===u},Fe.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Fe.isForwardRef=function(T){return E(T)===m},Fe.isFragment=function(T){return E(T)===i},Fe.isLazy=function(T){return E(T)===x},Fe.isMemo=function(T){return E(T)===y},Fe.isPortal=function(T){return E(T)===r},Fe.isProfiler=function(T){return E(T)===a},Fe.isStrictMode=function(T){return E(T)===s},Fe.isSuspense=function(T){return E(T)===d},Fe.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===p||T===a||T===s||T===d||T===g||typeof T=="object"&&T!==null&&(T.$$typeof===x||T.$$typeof===y||T.$$typeof===u||T.$$typeof===l||T.$$typeof===m||T.$$typeof===w||T.$$typeof===v||T.$$typeof===S||T.$$typeof===h)},Fe.typeOf=E,Fe}var je={};/** @license React v16.13.1
|
|
70
70
|
* react-is.development.js
|
|
71
71
|
*
|
|
72
72
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the MIT license found in the
|
|
75
75
|
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var
|
|
76
|
+
*/var um;function ZC(){return um||(um=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(oe){return typeof oe=="string"||typeof oe=="function"||oe===i||oe===p||oe===a||oe===s||oe===d||oe===g||typeof oe=="object"&&oe!==null&&(oe.$$typeof===x||oe.$$typeof===y||oe.$$typeof===u||oe.$$typeof===l||oe.$$typeof===m||oe.$$typeof===w||oe.$$typeof===v||oe.$$typeof===S||oe.$$typeof===h)}function R(oe){if(typeof oe=="object"&&oe!==null){var dt=oe.$$typeof;switch(dt){case t:var zr=oe.type;switch(zr){case f:case p:case i:case a:case s:case d:return zr;default:var St=zr&&zr.$$typeof;switch(St){case l:case m:case x:case y:case u:return St;default:return dt}}case r:return dt}}}var T=f,C=p,W=l,N=u,F=t,q=m,j=i,D=x,H=y,G=r,k=a,Q=s,J=d,re=!1;function ce(oe){return re||(re=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(oe)||R(oe)===f}function Z(oe){return R(oe)===p}function te(oe){return R(oe)===l}function ne(oe){return R(oe)===u}function ue(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function ie(oe){return R(oe)===m}function he(oe){return R(oe)===i}function fe(oe){return R(oe)===x}function ve(oe){return R(oe)===y}function xe(oe){return R(oe)===r}function Oe(oe){return R(oe)===a}function _e(oe){return R(oe)===s}function at(oe){return R(oe)===d}je.AsyncMode=T,je.ConcurrentMode=C,je.ContextConsumer=W,je.ContextProvider=N,je.Element=F,je.ForwardRef=q,je.Fragment=j,je.Lazy=D,je.Memo=H,je.Portal=G,je.Profiler=k,je.StrictMode=Q,je.Suspense=J,je.isAsyncMode=ce,je.isConcurrentMode=Z,je.isContextConsumer=te,je.isContextProvider=ne,je.isElement=ue,je.isForwardRef=ie,je.isFragment=he,je.isLazy=fe,je.isMemo=ve,je.isPortal=xe,je.isProfiler=Oe,je.isStrictMode=_e,je.isSuspense=at,je.isValidElementType=E,je.typeOf=R})()),je}var lm;function Oy(){return lm||(lm=1,process.env.NODE_ENV==="production"?sa.exports=GC():sa.exports=ZC()),sa.exports}/*
|
|
77
77
|
object-assign
|
|
78
78
|
(c) Sindre Sorhus
|
|
79
79
|
@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},Zl}var Gl,Kg;function pC(){if(Kg)return Gl;Kg=1;var e=of();function t(){}function r(){}return r.resetWarningCache=t,Gl=function(){function i(u,c,f,m,y,p){if(p!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Gl}var Vg;function hC(){if(Vg)return Qs.exports;if(Vg=1,process.env.NODE_ENV!=="production"){var e=ny(),t=!0;Qs.exports=dC()(e.isElement,t)}else Qs.exports=pC()();return Qs.exports}var Xg;function gC(){return Xg||(Xg=1,(function(e){(function(t,r){r(e,W,hC())})(Js,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=u(r),a=u(i);function u(S){return S&&S.__esModule?S:{default:S}}var c=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(S[O]=R[O])}return S};function f(S,E){var R={};for(var O in S)E.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(S,O)&&(R[O]=S[O]);return R}function m(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var y=(function(){function S(E,R){for(var O=0;O<R.length;O++){var C=R[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function p(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function g(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var v=!1;function x(S){v=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function d(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return v?S:S.capture}function w(S){if("touches"in S){var E=S.touches[0],R=E.pageX,O=E.pageY;return{x:R,y:O}}var C=S.screenX,U=S.screenY;return{x:C,y:U}}var h=(function(S){g(E,S);function E(){var R;m(this,E);for(var O=arguments.length,C=Array(O),U=0;U<O;U++)C[U]=arguments[U];var M=p(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(C)));return M._handleSwipeStart=M._handleSwipeStart.bind(M),M._handleSwipeMove=M._handleSwipeMove.bind(M),M._handleSwipeEnd=M._handleSwipeEnd.bind(M),M._onMouseDown=M._onMouseDown.bind(M),M._onMouseMove=M._onMouseMove.bind(M),M._onMouseUp=M._onMouseUp.bind(M),M._setSwiperRef=M._setSwiperRef.bind(M),M}return y(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var C=w(O),U=C.x,M=C.y;this.moveStart={x:U,y:M},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var C=w(O),U=C.x,M=C.y,D=U-this.moveStart.x,q=M-this.moveStart.y;this.moving=!0;var N=this.props.onSwipeMove({x:D,y:q},O);N&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:D,deltaY:q}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var C=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-C?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>C&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-C?this.props.onSwipeUp(1,O):this.movePosition.deltaY>C&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var C=O.className,U=O.style,M=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var D=f(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:C,style:U},D),M)}}]),E})(r.Component);h.displayName="ReactSwipe",h.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},h.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=h})})(Js)),Js}var Yg;function oy(){return Yg||(Yg=1,(function(e){(function(t,r){r(e,gC())})(Ys,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=s(r);function s(a){return a&&a.__esModule?a:{default:a}}t.default=i.default})})(Ys)),Ys}var ao={},Jg;function sy(){if(Jg)return ao;Jg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=t(gv());function t(s){return s&&s.__esModule?s:{default:s}}function r(s,a,u){return a in s?Object.defineProperty(s,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[a]=u,s}var i={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,u){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":u==="horizontal","axis-vertical":u!=="horizontal"})},SLIDER:function(a,u){return(0,e.default)({thumbs:!a,slider:a,animated:!u})},ITEM:function(a,u,c){return(0,e.default)({thumb:!a,slide:a,selected:u,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return ao.default=i,ao}var uo={},lo={},Qg;function mC(){if(Qg)return lo;Qg=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return lo.outerWidth=e,lo}var co={},em;function sf(){if(em)return co;em=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;var e=function(r,i,s){var a=r===0?r:r+i,u=s==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",f="("+u.join(",")+")";return c+f};return co.default=e,co}var fo={},tm;function ay(){if(tm)return fo;tm=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=void 0;var e=function(){return window};return fo.default=e,fo}var rm;function uy(){if(rm)return uo;rm=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=f(W),t=u(sy()),r=mC(),i=u(sf()),s=u(oy()),a=u(ay());function u(M){return M&&M.__esModule?M:{default:M}}function c(){if(typeof WeakMap!="function")return null;var M=new WeakMap;return c=function(){return M},M}function f(M){if(M&&M.__esModule)return M;if(M===null||m(M)!=="object"&&typeof M!="function")return{default:M};var D=c();if(D&&D.has(M))return D.get(M);var q={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in M)if(Object.prototype.hasOwnProperty.call(M,L)){var B=N?Object.getOwnPropertyDescriptor(M,L):null;B&&(B.get||B.set)?Object.defineProperty(q,L,B):q[L]=M[L]}return q.default=M,D&&D.set(M,q),q}function m(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(q){return typeof q}:m=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},m(M)}function y(){return y=Object.assign||function(M){for(var D=1;D<arguments.length;D++){var q=arguments[D];for(var N in q)Object.prototype.hasOwnProperty.call(q,N)&&(M[N]=q[N])}return M},y.apply(this,arguments)}function p(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function g(M,D){for(var q=0;q<D.length;q++){var N=D[q];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}function v(M,D,q){return D&&g(M.prototype,D),M}function x(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),D&&d(M,D)}function d(M,D){return d=Object.setPrototypeOf||function(N,L){return N.__proto__=L,N},d(M,D)}function w(M){var D=E();return function(){var N=R(M),L;if(D){var B=R(this).constructor;L=Reflect.construct(N,arguments,B)}else L=N.apply(this,arguments);return h(this,L)}}function h(M,D){return D&&(m(D)==="object"||typeof D=="function")?D:S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(M){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)},R(M)}function O(M,D,q){return D in M?Object.defineProperty(M,D,{value:q,enumerable:!0,configurable:!0,writable:!0}):M[D]=q,M}var C=function(D){return D.hasOwnProperty("key")},U=(function(M){x(q,M);var D=w(q);function q(N){var L;return p(this,q),L=D.call(this,N),O(S(L),"itemsWrapperRef",void 0),O(S(L),"itemsListRef",void 0),O(S(L),"thumbsRef",void 0),O(S(L),"setItemsWrapperRef",function(B){L.itemsWrapperRef=B}),O(S(L),"setItemsListRef",function(B){L.itemsListRef=B}),O(S(L),"setThumbsRef",function(B,Z){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[Z]=B}),O(S(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var B=e.Children.count(L.props.children),Z=L.itemsWrapperRef.clientWidth,k=L.props.thumbWidth?L.props.thumbWidth:(0,r.outerWidth)(L.thumbsRef[0]),Q=Math.floor(Z/k),J=Q<B,re=J?B-Q:0;L.setState(function(ce,G){return{itemSize:k,visibleItems:Q,firstItem:J?L.getFirstItem(G.selectedItem):0,lastPosition:re,showArrows:J}})}}),O(S(L),"handleClickItem",function(B,Z,k){if(!C(k)||k.key==="Enter"){var Q=L.props.onSelectItem;typeof Q=="function"&&Q(B,Z)}}),O(S(L),"onSwipeStart",function(){L.setState({swiping:!0})}),O(S(L),"onSwipeEnd",function(){L.setState({swiping:!1})}),O(S(L),"onSwipeMove",function(B){var Z=B.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var k=0,Q=e.Children.count(L.props.children),J=-(L.state.firstItem*100)/L.state.visibleItems,re=Math.max(Q-L.state.visibleItems,0),ce=-re*100/L.state.visibleItems;J===k&&Z>0&&(Z=0),J===ce&&Z<0&&(Z=0);var G=L.itemsWrapperRef.clientWidth,te=J+100/(G/Z);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ne){L.itemsListRef.style[ne]=(0,i.default)(te,"%",L.props.axis)}),!0}),O(S(L),"slideRight",function(B){L.moveTo(L.state.firstItem-(typeof B=="number"?B:1))}),O(S(L),"slideLeft",function(B){L.moveTo(L.state.firstItem+(typeof B=="number"?B:1))}),O(S(L),"moveTo",function(B){B=B<0?0:B,B=B>=L.state.lastPosition?L.state.lastPosition:B,L.setState({firstItem:B})}),L.state={selectedItem:N.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return v(q,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(L){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==L.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(L){var B=L;return L>=this.state.lastPosition&&(B=this.state.lastPosition),L<this.state.firstItem+this.state.visibleItems&&(B=this.state.firstItem),L<this.state.firstItem&&(B=L),B}},{key:"renderItems",value:function(){var L=this;return this.props.children.map(function(B,Z){var k=t.default.ITEM(!1,Z===L.state.selectedItem),Q={key:Z,ref:function(re){return L.setThumbsRef(re,Z)},className:k,onClick:L.handleClickItem.bind(L,Z,L.props.children[Z]),onKeyDown:L.handleClickItem.bind(L,Z,L.props.children[Z]),"aria-label":"".concat(L.props.labels.item," ").concat(Z+1),style:{width:L.props.thumbWidth}};return e.default.createElement("li",y({},Q,{role:"button",tabIndex:0}),B)})}},{key:"render",value:function(){var L=this;if(!this.props.children)return null;var B=e.Children.count(this.props.children)>1,Z=this.state.showArrows&&this.state.firstItem>0,k=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,Q={},J=-this.state.firstItem*(this.state.itemSize||0),re=(0,i.default)(J,"px",this.props.axis),ce=this.props.transitionTime+"ms";return Q={WebkitTransform:re,MozTransform:re,MsTransform:re,OTransform:re,transform:re,msTransform:re,WebkitTransitionDuration:ce,MozTransitionDuration:ce,MsTransitionDuration:ce,OTransitionDuration:ce,transitionDuration:ce,msTransitionDuration:ce},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!Z),onClick:function(){return L.slideRight()},"aria-label":this.props.labels.leftArrow}),B?e.default.createElement(s.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:Q,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(te){return L.setItemsListRef(te)},style:Q},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!k),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),q})(e.Component);return uo.default=U,O(U,"displayName","Thumbs"),O(U,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),uo}var po={},nm;function vC(){if(nm)return po;nm=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var e=function(){return document};return po.default=e,po}var Ht={},im;function ly(){if(im)return Ht;im=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.setPosition=Ht.getPosition=Ht.isKeyboardEvent=Ht.defaultStatusFormatter=Ht.noop=void 0;var e=W,t=r(sf());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Ht.noop=i;var s=function(m,y){return"".concat(m," of ").concat(y)};Ht.defaultStatusFormatter=s;var a=function(m){return m?m.hasOwnProperty("key"):!1};Ht.isKeyboardEvent=a;var u=function(m,y){if(y.infiniteLoop&&++m,m===0)return 0;var p=e.Children.count(y.children);if(y.centerMode&&y.axis==="horizontal"){var g=-m*y.centerSlidePercentage,v=p-1;return m&&(m!==v||y.infiniteLoop)?g+=(100-y.centerSlidePercentage)/2:m===v&&(g+=100-y.centerSlidePercentage),g}return-m*100};Ht.getPosition=u;var c=function(m,y){var p={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(g){p[g]=(0,t.default)(m,"%",y)}),p};return Ht.setPosition=c,Ht}var pr={},om;function yC(){if(om)return pr;om=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.fadeAnimationHandler=pr.slideStopSwipingHandler=pr.slideSwipeAnimationHandler=pr.slideAnimationHandler=void 0;var e=W,t=i(sf()),r=ly();function i(p){return p&&p.__esModule?p:{default:p}}function s(p,g){var v=Object.keys(p);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(p);g&&(x=x.filter(function(d){return Object.getOwnPropertyDescriptor(p,d).enumerable})),v.push.apply(v,x)}return v}function a(p){for(var g=1;g<arguments.length;g++){var v=arguments[g]!=null?arguments[g]:{};g%2?s(Object(v),!0).forEach(function(x){u(p,x,v[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(x){Object.defineProperty(p,x,Object.getOwnPropertyDescriptor(v,x))})}return p}function u(p,g,v){return g in p?Object.defineProperty(p,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[g]=v,p}var c=function(g,v){var x={},d=v.selectedItem,w=d,h=e.Children.count(g.children)-1,S=g.infiniteLoop&&(d<0||d>h);if(S)return w<0?g.centerMode&&g.centerSlidePercentage&&g.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(h+2)*g.centerSlidePercentage-(100-g.centerSlidePercentage)/2,g.axis):x.itemListStyle=(0,r.setPosition)(-(h+2)*100,g.axis):w>h&&(x.itemListStyle=(0,r.setPosition)(0,g.axis)),x;var E=(0,r.getPosition)(d,g),R=(0,t.default)(E,"%",g.axis),O=g.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},v.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};pr.slideAnimationHandler=c;var f=function(g,v,x,d){var w={},h=v.axis==="horizontal",S=e.Children.count(v.children),E=0,R=(0,r.getPosition)(x.selectedItem,v),O=v.infiniteLoop?(0,r.getPosition)(S-1,v)-100:(0,r.getPosition)(S-1,v),C=h?g.x:g.y,U=C;R===E&&C>0&&(U=0),R===O&&C<0&&(U=0);var M=R+100/(x.itemSize/U),D=Math.abs(C)>v.swipeScrollTolerance;return v.infiniteLoop&&D&&(x.selectedItem===0&&M>-100?M-=S*100:x.selectedItem===S-1&&M<-S*100&&(M+=S*100)),(!v.preventMovementUntilSwipeScrollTolerance||D||x.swipeMovementStarted)&&(x.swipeMovementStarted||d({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(M,v.axis)),D&&!x.cancelClick&&d({cancelClick:!0}),w};pr.slideSwipeAnimationHandler=f;var m=function(g,v){var x=(0,r.getPosition)(v.selectedItem,g),d=(0,r.setPosition)(x,g.axis);return{itemListStyle:d}};pr.slideStopSwipingHandler=m;var y=function(g,v){var x=g.transitionTime+"ms",d="ease-in-out",w={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:d,msTransitionTimingFunction:d,MozTransitionTimingFunction:d,WebkitTransitionTimingFunction:d,OTransitionTimingFunction:d};return v.swiping||(w=a(a({},w),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:w,selectedStyle:a(a({},w),{},{opacity:1,position:"relative"}),prevStyle:a({},w)}};return pr.fadeAnimationHandler=y,pr}var sm;function bC(){if(sm)return so;sm=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e=y(W),t=f(oy()),r=f(sy()),i=f(uy()),s=f(vC()),a=f(ay()),u=ly(),c=yC();function f(N){return N&&N.__esModule?N:{default:N}}function m(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return m=function(){return N},N}function y(N){if(N&&N.__esModule)return N;if(N===null||p(N)!=="object"&&typeof N!="function")return{default:N};var L=m();if(L&&L.has(N))return L.get(N);var B={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in N)if(Object.prototype.hasOwnProperty.call(N,k)){var Q=Z?Object.getOwnPropertyDescriptor(N,k):null;Q&&(Q.get||Q.set)?Object.defineProperty(B,k,Q):B[k]=N[k]}return B.default=N,L&&L.set(N,B),B}function p(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(B){return typeof B}:p=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},p(N)}function g(){return g=Object.assign||function(N){for(var L=1;L<arguments.length;L++){var B=arguments[L];for(var Z in B)Object.prototype.hasOwnProperty.call(B,Z)&&(N[Z]=B[Z])}return N},g.apply(this,arguments)}function v(N,L){var B=Object.keys(N);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(N);L&&(Z=Z.filter(function(k){return Object.getOwnPropertyDescriptor(N,k).enumerable})),B.push.apply(B,Z)}return B}function x(N){for(var L=1;L<arguments.length;L++){var B=arguments[L]!=null?arguments[L]:{};L%2?v(Object(B),!0).forEach(function(Z){D(N,Z,B[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(B)):v(Object(B)).forEach(function(Z){Object.defineProperty(N,Z,Object.getOwnPropertyDescriptor(B,Z))})}return N}function d(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function w(N,L){for(var B=0;B<L.length;B++){var Z=L[B];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(N,Z.key,Z)}}function h(N,L,B){return L&&w(N.prototype,L),N}function S(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),L&&E(N,L)}function E(N,L){return E=Object.setPrototypeOf||function(Z,k){return Z.__proto__=k,Z},E(N,L)}function R(N){var L=U();return function(){var Z=M(N),k;if(L){var Q=M(this).constructor;k=Reflect.construct(Z,arguments,Q)}else k=Z.apply(this,arguments);return O(this,k)}}function O(N,L){return L&&(p(L)==="object"||typeof L=="function")?L:C(N)}function C(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function U(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(N){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},M(N)}function D(N,L,B){return L in N?Object.defineProperty(N,L,{value:B,enumerable:!0,configurable:!0,writable:!0}):N[L]=B,N}var q=(function(N){S(B,N);var L=R(B);function B(Z){var k;d(this,B),k=L.call(this,Z),D(C(k),"thumbsRef",void 0),D(C(k),"carouselWrapperRef",void 0),D(C(k),"listRef",void 0),D(C(k),"itemsRef",void 0),D(C(k),"timer",void 0),D(C(k),"animationHandler",void 0),D(C(k),"setThumbsRef",function(J){k.thumbsRef=J}),D(C(k),"setCarouselWrapperRef",function(J){k.carouselWrapperRef=J}),D(C(k),"setListRef",function(J){k.listRef=J}),D(C(k),"setItemsRef",function(J,re){k.itemsRef||(k.itemsRef=[]),k.itemsRef[re]=J}),D(C(k),"autoPlay",function(){e.Children.count(k.props.children)<=1||(k.clearAutoPlay(),k.props.autoPlay&&(k.timer=setTimeout(function(){k.increment()},k.props.interval)))}),D(C(k),"clearAutoPlay",function(){k.timer&&clearTimeout(k.timer)}),D(C(k),"resetAutoPlay",function(){k.clearAutoPlay(),k.autoPlay()}),D(C(k),"stopOnHover",function(){k.setState({isMouseEntered:!0},k.clearAutoPlay)}),D(C(k),"startOnLeave",function(){k.setState({isMouseEntered:!1},k.autoPlay)}),D(C(k),"isFocusWithinTheCarousel",function(){return k.carouselWrapperRef?!!((0,s.default)().activeElement===k.carouselWrapperRef||k.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),D(C(k),"navigateWithKeyboard",function(J){if(k.isFocusWithinTheCarousel()){var re=k.props.axis,ce=re==="horizontal",G={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},te=ce?G.ArrowRight:G.ArrowDown,ne=ce?G.ArrowLeft:G.ArrowUp;te===J.keyCode?k.increment():ne===J.keyCode&&k.decrement()}}),D(C(k),"updateSizes",function(){if(!(!k.state.initialized||!k.itemsRef||k.itemsRef.length===0)){var J=k.props.axis==="horizontal",re=k.itemsRef[0];if(re){var ce=J?re.clientWidth:re.clientHeight;k.setState({itemSize:ce}),k.thumbsRef&&k.thumbsRef.updateSizes()}}}),D(C(k),"setMountState",function(){k.setState({hasMount:!0}),k.updateSizes()}),D(C(k),"handleClickItem",function(J,re){if(e.Children.count(k.props.children)!==0){if(k.state.cancelClick){k.setState({cancelClick:!1});return}k.props.onClickItem(J,re),J!==k.state.selectedItem&&k.setState({selectedItem:J})}}),D(C(k),"handleOnChange",function(J,re){e.Children.count(k.props.children)<=1||k.props.onChange(J,re)}),D(C(k),"handleClickThumb",function(J,re){k.props.onClickThumb(J,re),k.moveTo(J)}),D(C(k),"onSwipeStart",function(J){k.setState({swiping:!0}),k.props.onSwipeStart(J)}),D(C(k),"onSwipeEnd",function(J){k.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),k.props.onSwipeEnd(J),k.clearAutoPlay(),k.state.autoPlay&&k.autoPlay()}),D(C(k),"onSwipeMove",function(J,re){k.props.onSwipeMove(re);var ce=k.props.swipeAnimationHandler(J,k.props,k.state,k.setState.bind(C(k)));return k.setState(x({},ce)),!!Object.keys(ce).length}),D(C(k),"decrement",function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;k.moveTo(k.state.selectedItem-(typeof J=="number"?J:1))}),D(C(k),"increment",function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;k.moveTo(k.state.selectedItem+(typeof J=="number"?J:1))}),D(C(k),"moveTo",function(J){if(typeof J=="number"){var re=e.Children.count(k.props.children)-1;J<0&&(J=k.props.infiniteLoop?re:0),J>re&&(J=k.props.infiniteLoop?0:re),k.selectItem({selectedItem:J}),k.state.autoPlay&&k.state.isMouseEntered===!1&&k.resetAutoPlay()}}),D(C(k),"onClickNext",function(){k.increment(1)}),D(C(k),"onClickPrev",function(){k.decrement(1)}),D(C(k),"onSwipeForward",function(){k.increment(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),D(C(k),"onSwipeBackwards",function(){k.decrement(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),D(C(k),"changeItem",function(J){return function(re){(!(0,u.isKeyboardEvent)(re)||re.key==="Enter")&&k.moveTo(J)}}),D(C(k),"selectItem",function(J){k.setState(x({previousItem:k.state.selectedItem},J),function(){k.setState(k.animationHandler(k.props,k.state))}),k.handleOnChange(J.selectedItem,e.Children.toArray(k.props.children)[J.selectedItem])}),D(C(k),"getInitialImage",function(){var J=k.props.selectedItem,re=k.itemsRef&&k.itemsRef[J],ce=re&&re.getElementsByTagName("img")||[];return ce[0]}),D(C(k),"getVariableItemHeight",function(J){var re=k.itemsRef&&k.itemsRef[J];if(k.state.hasMount&&re&&re.children.length){var ce=re.children[0].getElementsByTagName("img")||[];if(ce.length>0){var G=ce[0];if(!G.complete){var te=function ie(){k.forceUpdate(),G.removeEventListener("load",ie)};G.addEventListener("load",te)}}var ne=ce[0]||re.children[0],ue=ne.clientHeight;return ue>0?ue:null}return null});var Q={initialized:!1,previousItem:Z.selectedItem,selectedItem:Z.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:Z.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return k.animationHandler=typeof Z.animationHandler=="function"&&Z.animationHandler||Z.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,k.state=x(x({},Q),k.animationHandler(Z,Q)),k}return h(B,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(k,Q){!k.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!k.autoFocus&&this.props.autoFocus&&this.forceFocus(),Q.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(k.selectedItem!==this.props.selectedItem||k.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),k.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var k=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var Q=k.getInitialImage();Q&&!Q.complete?Q.addEventListener("load",k.setMountState):k.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var k=this.carouselWrapperRef;this.props.stopOnHover&&k&&(k.addEventListener("mouseenter",this.stopOnHover),k.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var k=this.carouselWrapperRef;this.props.stopOnHover&&k&&(k.removeEventListener("mouseenter",this.stopOnHover),k.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,s.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var k=this.getInitialImage();k&&k.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var k;(k=this.carouselWrapperRef)===null||k===void 0||k.focus()}},{key:"renderItems",value:function(k){var Q=this;return this.props.children?e.Children.map(this.props.children,function(J,re){var ce=re===Q.state.selectedItem,G=re===Q.state.previousItem,te=ce&&Q.state.selectedStyle||G&&Q.state.prevStyle||Q.state.slideStyle||{};Q.props.centerMode&&Q.props.axis==="horizontal"&&(te=x(x({},te),{},{minWidth:Q.props.centerSlidePercentage+"%"})),Q.state.swiping&&Q.state.swipeMovementStarted&&(te=x(x({},te),{},{pointerEvents:"none"}));var ne={ref:function(ie){return Q.setItemsRef(ie,re)},key:"itemKey"+re+(k?"clone":""),className:r.default.ITEM(!0,re===Q.state.selectedItem,re===Q.state.previousItem),onClick:Q.handleClickItem.bind(Q,re,J),style:te};return e.default.createElement("li",ne,Q.props.renderItem(J,{isSelected:re===Q.state.selectedItem,isPrevious:re===Q.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var k=this,Q=this.props,J=Q.showIndicators,re=Q.labels,ce=Q.renderIndicator,G=Q.children;return J?e.default.createElement("ul",{className:"control-dots"},e.Children.map(G,function(te,ne){return ce&&ce(k.changeItem(ne),ne===k.state.selectedItem,ne,re.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(i.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var k=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var Q=this.props.swipeable&&e.Children.count(this.props.children)>1,J=this.props.axis==="horizontal",re=this.props.showArrows&&e.Children.count(this.props.children)>1,ce=re&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,G=re&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,te=this.renderItems(!0),ne=te.shift(),ue=te.pop(),ie={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},he={};if(J){if(ie.onSwipeLeft=this.onSwipeForward,ie.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);he.height=fe||"auto"}}else ie.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ie.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ie.style=x(x({},ie.style),{},{height:this.state.itemSize}),he.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,ce,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:he},Q?e.default.createElement(t.default,g({tagName:"ul",innerRef:this.setListRef},ie,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ne):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(xe){return k.setListRef(xe)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ne)),this.props.renderArrowNext(this.onClickNext,G,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B})(e.default.Component);return so.default=q,D(q,"displayName","Carousel"),D(q,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:u.noop,onClickThumb:u.noop,onChange:u.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(L,B,Z){return e.default.createElement("button",{type:"button","aria-label":Z,className:r.default.ARROW_PREV(!B),onClick:L})},renderArrowNext:function(L,B,Z){return e.default.createElement("button",{type:"button","aria-label":Z,className:r.default.ARROW_NEXT(!B),onClick:L})},renderIndicator:function(L,B,Z,k){return e.default.createElement("li",{className:r.default.DOT(B),onClick:L,onKeyDown:L,value:Z,key:Z,role:"button",tabIndex:0,"aria-label":"".concat(k," ").concat(Z+1)})},renderItem:function(L){return L},renderThumbs:function(L){var B=e.Children.map(L,function(Z){var k=Z;if(Z.type!=="img"&&(k=e.Children.toArray(Z.props.children).find(function(Q){return Q.type==="img"})),!!k)return k});return B.filter(function(Z){return Z}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):B},statusFormatter:u.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),so}var am={},um;function wC(){return um||(um=1),am}var lm;function xC(){return lm||(lm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=s(bC()),r=wC(),i=s(uy());function s(a){return a&&a.__esModule?a:{default:a}}})(Wl)),Wl}var SC=xC();const EC=({tip:e})=>F.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:cy(e,!0)}),_C=({pages:e})=>F.jsx("div",{className:"min-h-[10rem] w-96",children:F.jsx(SC.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>F.jsx(EC,{tip:t},t.key))})}),OC=({body:e,isInsideCarousel:t})=>F.jsx("article",{className:He(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:F.jsx(wa,{children:e,options:{overrides:{a:{component:({children:r,...i})=>F.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,F.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),AC=({video:e,body:t,title:r,isInsideCarousel:i})=>F.jsxs("div",{className:He([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[F.jsx("div",{className:He([{"mr-1":!i,"mb-1":i}]),children:F.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),F.jsx("article",{className:He(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:F.jsx(wa,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>F.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,F.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),cy=(e,t)=>{switch(e.type){case ha.TEXT:return F.jsx(OC,{body:e.body,isInsideCarousel:t});case ha.VIDEO:return F.jsx(AC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case ha.CAROUSEL:return F.jsx(_C,{pages:e.pages})}},fy=W.createContext(void 0);function cm(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const TC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:s},a]=W.useState({tips:{},show:!0});W.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(f=>f.json()).then(f=>{const m=f.reduce((y,p)=>cm(f,p.key).length>1?{...y,[p.key]:{type:"carousel",pages:cm(f,p.key)}}:{...y,[p.key]:p},{});a(y=>({...y,tips:m}))})}catch{}return()=>{c.abort()}},[]);const u=()=>{a(c=>({...c,show:!s}))};return F.jsx(fy.Provider,{value:{tips:i,toggleTips:u,show:s,enabled:t},children:e})},dy=e=>{const t=W.useContext(fy);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},RC=xa(sC)`
|
|
80
|
+
*/var Jl,cm;function VC(){if(cm)return Jl;cm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},l=0;l<10;l++)u["_"+String.fromCharCode(l)]=l;var f=Object.getOwnPropertyNames(u).map(function(m){return u[m]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(m){p[m]=m}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jl=s()?Object.assign:function(a,u){for(var l,f=i(a),p,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var d in l)t.call(l,d)&&(f[d]=l[d]);if(e){p=e(l);for(var g=0;g<p.length;g++)r.call(l,p[g])&&(f[p[g]]=l[p[g]])}}return f},Jl}var Ql,fm;function mf(){if(fm)return Ql;fm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ql=e,Ql}var ec,dm;function Ay(){return dm||(dm=1,ec=Function.call.bind(Object.prototype.hasOwnProperty)),ec}var tc,pm;function KC(){if(pm)return tc;pm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=mf(),r={},i=Ay();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,l,f,p){if(process.env.NODE_ENV!=="production"){for(var m in a)if(i(a,m)){var d;try{if(typeof a[m]!="function"){var g=Error((f||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}d=a[m](u,m,f,l,null,t)}catch(x){d=x}if(d&&!(d instanceof Error)&&e((f||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var y=p?p():"";e("Failed "+l+" type: "+d.message+(y??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},tc=s,tc}var rc,hm;function YC(){if(hm)return rc;hm=1;var e=Oy(),t=VC(),r=mf(),i=Ay(),s=KC(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var f="Warning: "+l;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return rc=function(l,f){var p=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function d(Z){var te=Z&&(p&&Z[p]||Z[m]);if(typeof te=="function")return te}var g="<<anonymous>>",y={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:S(),arrayOf:E,element:R(),elementType:T(),instanceOf:C,node:q(),objectOf:N,oneOf:W,oneOfType:F,shape:D,exact:H};function x(Z,te){return Z===te?Z!==0||1/Z===1/te:Z!==Z&&te!==te}function h(Z,te){this.message=Z,this.data=te&&typeof te=="object"?te:{},this.stack=""}h.prototype=Error.prototype;function w(Z){if(process.env.NODE_ENV!=="production")var te={},ne=0;function ue(he,fe,ve,xe,Oe,_e,at){if(xe=xe||g,_e=_e||ve,at!==r){if(f){var oe=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw oe.name="Invariant Violation",oe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var dt=xe+":"+ve;!te[dt]&&ne<3&&(a("You are manually calling a React.PropTypes validation function for the `"+_e+"` prop on `"+xe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),te[dt]=!0,ne++)}}return fe[ve]==null?he?fe[ve]===null?new h("The "+Oe+" `"+_e+"` is marked as required "+("in `"+xe+"`, but its value is `null`.")):new h("The "+Oe+" `"+_e+"` is marked as required in "+("`"+xe+"`, but its value is `undefined`.")):null:Z(fe,ve,xe,Oe,_e)}var ie=ue.bind(null,!1);return ie.isRequired=ue.bind(null,!0),ie}function v(Z){function te(ne,ue,ie,he,fe,ve){var xe=ne[ue],Oe=Q(xe);if(Oe!==Z){var _e=J(xe);return new h("Invalid "+he+" `"+fe+"` of type "+("`"+_e+"` supplied to `"+ie+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return w(te)}function S(){return w(u)}function E(Z){function te(ne,ue,ie,he,fe){if(typeof Z!="function")return new h("Property `"+fe+"` of component `"+ie+"` has invalid PropType notation inside arrayOf.");var ve=ne[ue];if(!Array.isArray(ve)){var xe=Q(ve);return new h("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected an array."))}for(var Oe=0;Oe<ve.length;Oe++){var _e=Z(ve,Oe,ie,he,fe+"["+Oe+"]",r);if(_e instanceof Error)return _e}return null}return w(te)}function R(){function Z(te,ne,ue,ie,he){var fe=te[ne];if(!l(fe)){var ve=Q(fe);return new h("Invalid "+ie+" `"+he+"` of type "+("`"+ve+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(Z)}function T(){function Z(te,ne,ue,ie,he){var fe=te[ne];if(!e.isValidElementType(fe)){var ve=Q(fe);return new h("Invalid "+ie+" `"+he+"` of type "+("`"+ve+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(Z)}function C(Z){function te(ne,ue,ie,he,fe){if(!(ne[ue]instanceof Z)){var ve=Z.name||g,xe=ce(ne[ue]);return new h("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected ")+("instance of `"+ve+"`."))}return null}return w(te)}function W(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),u;function te(ne,ue,ie,he,fe){for(var ve=ne[ue],xe=0;xe<Z.length;xe++)if(x(ve,Z[xe]))return null;var Oe=JSON.stringify(Z,function(at,oe){var dt=J(oe);return dt==="symbol"?String(oe):oe});return new h("Invalid "+he+" `"+fe+"` of value `"+String(ve)+"` "+("supplied to `"+ie+"`, expected one of "+Oe+"."))}return w(te)}function N(Z){function te(ne,ue,ie,he,fe){if(typeof Z!="function")return new h("Property `"+fe+"` of component `"+ie+"` has invalid PropType notation inside objectOf.");var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new h("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected an object."));for(var Oe in ve)if(i(ve,Oe)){var _e=Z(ve,Oe,ie,he,fe+"."+Oe,r);if(_e instanceof Error)return _e}return null}return w(te)}function F(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var te=0;te<Z.length;te++){var ne=Z[te];if(typeof ne!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(ne)+" at index "+te+"."),u}function ue(ie,he,fe,ve,xe){for(var Oe=[],_e=0;_e<Z.length;_e++){var at=Z[_e],oe=at(ie,he,fe,ve,xe,r);if(oe==null)return null;oe.data&&i(oe.data,"expectedType")&&Oe.push(oe.data.expectedType)}var dt=Oe.length>0?", expected one of type ["+Oe.join(", ")+"]":"";return new h("Invalid "+ve+" `"+xe+"` supplied to "+("`"+fe+"`"+dt+"."))}return w(ue)}function q(){function Z(te,ne,ue,ie,he){return G(te[ne])?null:new h("Invalid "+ie+" `"+he+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(Z)}function j(Z,te,ne,ue,ie){return new h((Z||"React class")+": "+te+" type `"+ne+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ie+"`.")}function D(Z){function te(ne,ue,ie,he,fe){var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new h("Invalid "+he+" `"+fe+"` of type `"+xe+"` "+("supplied to `"+ie+"`, expected `object`."));for(var Oe in Z){var _e=Z[Oe];if(typeof _e!="function")return j(ie,he,fe,Oe,J(_e));var at=_e(ve,Oe,ie,he,fe+"."+Oe,r);if(at)return at}return null}return w(te)}function H(Z){function te(ne,ue,ie,he,fe){var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new h("Invalid "+he+" `"+fe+"` of type `"+xe+"` "+("supplied to `"+ie+"`, expected `object`."));var Oe=t({},ne[ue],Z);for(var _e in Oe){var at=Z[_e];if(i(Z,_e)&&typeof at!="function")return j(ie,he,fe,_e,J(at));if(!at)return new h("Invalid "+he+" `"+fe+"` key `"+_e+"` supplied to `"+ie+"`.\nBad object: "+JSON.stringify(ne[ue],null," ")+`
|
|
81
|
+
Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var oe=at(ve,_e,ie,he,fe+"."+_e,r);if(oe)return oe}return null}return w(te)}function G(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(G);if(Z===null||l(Z))return!0;var te=d(Z);if(te){var ne=te.call(Z),ue;if(te!==Z.entries){for(;!(ue=ne.next()).done;)if(!G(ue.value))return!1}else for(;!(ue=ne.next()).done;){var ie=ue.value;if(ie&&!G(ie[1]))return!1}}else return!1;return!0;default:return!1}}function k(Z,te){return Z==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function Q(Z){var te=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":k(te,Z)?"symbol":te}function J(Z){if(typeof Z>"u"||Z===null)return""+Z;var te=Q(Z);if(te==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return te}function re(Z){var te=J(Z);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function ce(Z){return!Z.constructor||!Z.constructor.name?g:Z.constructor.name}return y.checkPropTypes=s,y.resetWarningCache=s.resetWarningCache,y.PropTypes=y,y},rc}var nc,gm;function XC(){if(gm)return nc;gm=1;var e=mf();function t(){}function r(){}return r.resetWarningCache=t,nc=function(){function i(u,l,f,p,m,d){if(d!==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},nc}var mm;function JC(){if(mm)return oa.exports;if(mm=1,process.env.NODE_ENV!=="production"){var e=Oy(),t=!0;oa.exports=YC()(e.isElement,t)}else oa.exports=XC()();return oa.exports}var vm;function QC(){return vm||(vm=1,(function(e){(function(t,r){r(e,M,JC())})(ia,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=u(r),a=u(i);function u(S){return S&&S.__esModule?S:{default:S}}var l=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var T in R)Object.prototype.hasOwnProperty.call(R,T)&&(S[T]=R[T])}return S};function f(S,E){var R={};for(var T in S)E.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(S,T)&&(R[T]=S[T]);return R}function p(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var m=(function(){function S(E,R){for(var T=0;T<R.length;T++){var C=R[T];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}return function(E,R,T){return R&&S(E.prototype,R),T&&S(E,T),E}})();function d(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 y=!1;function x(S){y=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function h(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return y?S:S.capture}function w(S){if("touches"in S){var E=S.touches[0],R=E.pageX,T=E.pageY;return{x:R,y:T}}var C=S.screenX,W=S.screenY;return{x:C,y:W}}var v=(function(S){g(E,S);function E(){var R;p(this,E);for(var T=arguments.length,C=Array(T),W=0;W<T;W++)C[W]=arguments[W];var N=d(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(C)));return N._handleSwipeStart=N._handleSwipeStart.bind(N),N._handleSwipeMove=N._handleSwipeMove.bind(N),N._handleSwipeEnd=N._handleSwipeEnd.bind(N),N._onMouseDown=N._onMouseDown.bind(N),N._onMouseMove=N._onMouseMove.bind(N),N._onMouseUp=N._onMouseUp.bind(N),N._setSwiperRef=N._setSwiperRef.bind(N),N}return m(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,h({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,h({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(T){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(T))}},{key:"_onMouseMove",value:function(T){this.mouseDown&&this._handleSwipeMove(T)}},{key:"_onMouseUp",value:function(T){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(T)}},{key:"_handleSwipeStart",value:function(T){var C=w(T),W=C.x,N=C.y;this.moveStart={x:W,y:N},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var C=w(T),W=C.x,N=C.y,F=W-this.moveStart.x,q=N-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:F,y:q},T);j&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:F,deltaY:q}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var C=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-C?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>C&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-C?this.props.onSwipeUp(1,T):this.movePosition.deltaY>C&&this.props.onSwipeDown(1,T)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(T){this.swiper=T,this.props.innerRef(T)}},{key:"render",value:function(){var T=this.props;T.tagName;var C=T.className,W=T.style,N=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var F=f(T,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,l({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:C,style:W},F),N)}}]),E})(r.Component);v.displayName="ReactSwipe",v.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},v.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=v})})(ia)),ia}var ym;function Ry(){return ym||(ym=1,(function(e){(function(t,r){r(e,QC())})(na,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})})(na)),na}var go={},bm;function Py(){if(bm)return go;bm=1,Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var e=t(Nv());function t(s){return s&&s.__esModule?s:{default:s}}function r(s,a,u){return a in s?Object.defineProperty(s,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[a]=u,s}var i={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,u){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":u==="horizontal","axis-vertical":u!=="horizontal"})},SLIDER:function(a,u){return(0,e.default)({thumbs:!a,slider:a,animated:!u})},ITEM:function(a,u,l){return(0,e.default)({thumb:!a,slide:a,selected:u,previous:l})},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 go.default=i,go}var mo={},vo={},wm;function ek(){if(wm)return vo;wm=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return vo.outerWidth=e,vo}var yo={},xm;function vf(){if(xm)return yo;xm=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=void 0;var e=function(r,i,s){var a=r===0?r:r+i,u=s==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+u.join(",")+")";return l+f};return yo.default=e,yo}var bo={},Sm;function Cy(){if(Sm)return bo;Sm=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var e=function(){return window};return bo.default=e,bo}var Em;function ky(){if(Em)return mo;Em=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.default=void 0;var e=f(M),t=u(Py()),r=ek(),i=u(vf()),s=u(Ry()),a=u(Cy());function u(N){return N&&N.__esModule?N:{default:N}}function l(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return l=function(){return N},N}function f(N){if(N&&N.__esModule)return N;if(N===null||p(N)!=="object"&&typeof N!="function")return{default:N};var F=l();if(F&&F.has(N))return F.get(N);var q={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in N)if(Object.prototype.hasOwnProperty.call(N,D)){var H=j?Object.getOwnPropertyDescriptor(N,D):null;H&&(H.get||H.set)?Object.defineProperty(q,D,H):q[D]=N[D]}return q.default=N,F&&F.set(N,q),q}function p(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(q){return typeof q}:p=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},p(N)}function m(){return m=Object.assign||function(N){for(var F=1;F<arguments.length;F++){var q=arguments[F];for(var j in q)Object.prototype.hasOwnProperty.call(q,j)&&(N[j]=q[j])}return N},m.apply(this,arguments)}function d(N,F){if(!(N instanceof F))throw new TypeError("Cannot call a class as a function")}function g(N,F){for(var q=0;q<F.length;q++){var j=F[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(N,j.key,j)}}function y(N,F,q){return F&&g(N.prototype,F),N}function x(N,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(F&&F.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),F&&h(N,F)}function h(N,F){return h=Object.setPrototypeOf||function(j,D){return j.__proto__=D,j},h(N,F)}function w(N){var F=E();return function(){var j=R(N),D;if(F){var H=R(this).constructor;D=Reflect.construct(j,arguments,H)}else D=j.apply(this,arguments);return v(this,D)}}function v(N,F){return F&&(p(F)==="object"||typeof F=="function")?F:S(N)}function S(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}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(N){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)},R(N)}function T(N,F,q){return F in N?Object.defineProperty(N,F,{value:q,enumerable:!0,configurable:!0,writable:!0}):N[F]=q,N}var C=function(F){return F.hasOwnProperty("key")},W=(function(N){x(q,N);var F=w(q);function q(j){var D;return d(this,q),D=F.call(this,j),T(S(D),"itemsWrapperRef",void 0),T(S(D),"itemsListRef",void 0),T(S(D),"thumbsRef",void 0),T(S(D),"setItemsWrapperRef",function(H){D.itemsWrapperRef=H}),T(S(D),"setItemsListRef",function(H){D.itemsListRef=H}),T(S(D),"setThumbsRef",function(H,G){D.thumbsRef||(D.thumbsRef=[]),D.thumbsRef[G]=H}),T(S(D),"updateSizes",function(){if(!(!D.props.children||!D.itemsWrapperRef||!D.thumbsRef)){var H=e.Children.count(D.props.children),G=D.itemsWrapperRef.clientWidth,k=D.props.thumbWidth?D.props.thumbWidth:(0,r.outerWidth)(D.thumbsRef[0]),Q=Math.floor(G/k),J=Q<H,re=J?H-Q:0;D.setState(function(ce,Z){return{itemSize:k,visibleItems:Q,firstItem:J?D.getFirstItem(Z.selectedItem):0,lastPosition:re,showArrows:J}})}}),T(S(D),"handleClickItem",function(H,G,k){if(!C(k)||k.key==="Enter"){var Q=D.props.onSelectItem;typeof Q=="function"&&Q(H,G)}}),T(S(D),"onSwipeStart",function(){D.setState({swiping:!0})}),T(S(D),"onSwipeEnd",function(){D.setState({swiping:!1})}),T(S(D),"onSwipeMove",function(H){var G=H.x;if(!D.state.itemSize||!D.itemsWrapperRef||!D.state.visibleItems)return!1;var k=0,Q=e.Children.count(D.props.children),J=-(D.state.firstItem*100)/D.state.visibleItems,re=Math.max(Q-D.state.visibleItems,0),ce=-re*100/D.state.visibleItems;J===k&&G>0&&(G=0),J===ce&&G<0&&(G=0);var Z=D.itemsWrapperRef.clientWidth,te=J+100/(Z/G);return D.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ne){D.itemsListRef.style[ne]=(0,i.default)(te,"%",D.props.axis)}),!0}),T(S(D),"slideRight",function(H){D.moveTo(D.state.firstItem-(typeof H=="number"?H:1))}),T(S(D),"slideLeft",function(H){D.moveTo(D.state.firstItem+(typeof H=="number"?H:1))}),T(S(D),"moveTo",function(H){H=H<0?0:H,H=H>=D.state.lastPosition?D.state.lastPosition:H,D.setState({firstItem:H})}),D.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},D}return y(q,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(D){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==D.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(D){var H=D;return D>=this.state.lastPosition&&(H=this.state.lastPosition),D<this.state.firstItem+this.state.visibleItems&&(H=this.state.firstItem),D<this.state.firstItem&&(H=D),H}},{key:"renderItems",value:function(){var D=this;return this.props.children.map(function(H,G){var k=t.default.ITEM(!1,G===D.state.selectedItem),Q={key:G,ref:function(re){return D.setThumbsRef(re,G)},className:k,onClick:D.handleClickItem.bind(D,G,D.props.children[G]),onKeyDown:D.handleClickItem.bind(D,G,D.props.children[G]),"aria-label":"".concat(D.props.labels.item," ").concat(G+1),style:{width:D.props.thumbWidth}};return e.default.createElement("li",m({},Q,{role:"button",tabIndex:0}),H)})}},{key:"render",value:function(){var D=this;if(!this.props.children)return null;var H=e.Children.count(this.props.children)>1,G=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(!G),onClick:function(){return D.slideRight()},"aria-label":this.props.labels.leftArrow}),H?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 D.setItemsListRef(te)},style:Q},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!k),onClick:function(){return D.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),q})(e.Component);return mo.default=W,T(W,"displayName","Thumbs"),T(W,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),mo}var wo={},_m;function tk(){if(_m)return wo;_m=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0;var e=function(){return document};return wo.default=e,wo}var Gt={},Tm;function Iy(){if(Tm)return Gt;Tm=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.setPosition=Gt.getPosition=Gt.isKeyboardEvent=Gt.defaultStatusFormatter=Gt.noop=void 0;var e=M,t=r(vf());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Gt.noop=i;var s=function(p,m){return"".concat(p," of ").concat(m)};Gt.defaultStatusFormatter=s;var a=function(p){return p?p.hasOwnProperty("key"):!1};Gt.isKeyboardEvent=a;var u=function(p,m){if(m.infiniteLoop&&++p,p===0)return 0;var d=e.Children.count(m.children);if(m.centerMode&&m.axis==="horizontal"){var g=-p*m.centerSlidePercentage,y=d-1;return p&&(p!==y||m.infiniteLoop)?g+=(100-m.centerSlidePercentage)/2:p===y&&(g+=100-m.centerSlidePercentage),g}return-p*100};Gt.getPosition=u;var l=function(p,m){var d={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(g){d[g]=(0,t.default)(p,"%",m)}),d};return Gt.setPosition=l,Gt}var mr={},Om;function rk(){if(Om)return mr;Om=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.fadeAnimationHandler=mr.slideStopSwipingHandler=mr.slideSwipeAnimationHandler=mr.slideAnimationHandler=void 0;var e=M,t=i(vf()),r=Iy();function i(d){return d&&d.__esModule?d:{default:d}}function s(d,g){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(d);g&&(x=x.filter(function(h){return Object.getOwnPropertyDescriptor(d,h).enumerable})),y.push.apply(y,x)}return y}function a(d){for(var g=1;g<arguments.length;g++){var y=arguments[g]!=null?arguments[g]:{};g%2?s(Object(y),!0).forEach(function(x){u(d,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(y)):s(Object(y)).forEach(function(x){Object.defineProperty(d,x,Object.getOwnPropertyDescriptor(y,x))})}return d}function u(d,g,y){return g in d?Object.defineProperty(d,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):d[g]=y,d}var l=function(g,y){var x={},h=y.selectedItem,w=h,v=e.Children.count(g.children)-1,S=g.infiniteLoop&&(h<0||h>v);if(S)return w<0?g.centerMode&&g.centerSlidePercentage&&g.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(v+2)*g.centerSlidePercentage-(100-g.centerSlidePercentage)/2,g.axis):x.itemListStyle=(0,r.setPosition)(-(v+2)*100,g.axis):w>v&&(x.itemListStyle=(0,r.setPosition)(0,g.axis)),x;var E=(0,r.getPosition)(h,g),R=(0,t.default)(E,"%",g.axis),T=g.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},y.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:T,MozTransitionDuration:T,OTransitionDuration:T,transitionDuration:T,msTransitionDuration:T})),x};mr.slideAnimationHandler=l;var f=function(g,y,x,h){var w={},v=y.axis==="horizontal",S=e.Children.count(y.children),E=0,R=(0,r.getPosition)(x.selectedItem,y),T=y.infiniteLoop?(0,r.getPosition)(S-1,y)-100:(0,r.getPosition)(S-1,y),C=v?g.x:g.y,W=C;R===E&&C>0&&(W=0),R===T&&C<0&&(W=0);var N=R+100/(x.itemSize/W),F=Math.abs(C)>y.swipeScrollTolerance;return y.infiniteLoop&&F&&(x.selectedItem===0&&N>-100?N-=S*100:x.selectedItem===S-1&&N<-S*100&&(N+=S*100)),(!y.preventMovementUntilSwipeScrollTolerance||F||x.swipeMovementStarted)&&(x.swipeMovementStarted||h({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(N,y.axis)),F&&!x.cancelClick&&h({cancelClick:!0}),w};mr.slideSwipeAnimationHandler=f;var p=function(g,y){var x=(0,r.getPosition)(y.selectedItem,g),h=(0,r.setPosition)(x,g.axis);return{itemListStyle:h}};mr.slideStopSwipingHandler=p;var m=function(g,y){var x=g.transitionTime+"ms",h="ease-in-out",w={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:h,msTransitionTimingFunction:h,MozTransitionTimingFunction:h,WebkitTransitionTimingFunction:h,OTransitionTimingFunction:h};return y.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 mr.fadeAnimationHandler=m,mr}var Am;function nk(){if(Am)return ho;Am=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.default=void 0;var e=m(M),t=f(Ry()),r=f(Py()),i=f(ky()),s=f(tk()),a=f(Cy()),u=Iy(),l=rk();function f(j){return j&&j.__esModule?j:{default:j}}function p(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return p=function(){return j},j}function m(j){if(j&&j.__esModule)return j;if(j===null||d(j)!=="object"&&typeof j!="function")return{default:j};var D=p();if(D&&D.has(j))return D.get(j);var H={},G=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in j)if(Object.prototype.hasOwnProperty.call(j,k)){var Q=G?Object.getOwnPropertyDescriptor(j,k):null;Q&&(Q.get||Q.set)?Object.defineProperty(H,k,Q):H[k]=j[k]}return H.default=j,D&&D.set(j,H),H}function d(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(H){return typeof H}:d=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},d(j)}function g(){return g=Object.assign||function(j){for(var D=1;D<arguments.length;D++){var H=arguments[D];for(var G in H)Object.prototype.hasOwnProperty.call(H,G)&&(j[G]=H[G])}return j},g.apply(this,arguments)}function y(j,D){var H=Object.keys(j);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(j);D&&(G=G.filter(function(k){return Object.getOwnPropertyDescriptor(j,k).enumerable})),H.push.apply(H,G)}return H}function x(j){for(var D=1;D<arguments.length;D++){var H=arguments[D]!=null?arguments[D]:{};D%2?y(Object(H),!0).forEach(function(G){F(j,G,H[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(H)):y(Object(H)).forEach(function(G){Object.defineProperty(j,G,Object.getOwnPropertyDescriptor(H,G))})}return j}function h(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")}function w(j,D){for(var H=0;H<D.length;H++){var G=D[H];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(j,G.key,G)}}function v(j,D,H){return D&&w(j.prototype,D),j}function S(j,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(D&&D.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),D&&E(j,D)}function E(j,D){return E=Object.setPrototypeOf||function(G,k){return G.__proto__=k,G},E(j,D)}function R(j){var D=W();return function(){var G=N(j),k;if(D){var Q=N(this).constructor;k=Reflect.construct(G,arguments,Q)}else k=G.apply(this,arguments);return T(this,k)}}function T(j,D){return D&&(d(D)==="object"||typeof D=="function")?D:C(j)}function C(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function W(){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 N(j){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},N(j)}function F(j,D,H){return D in j?Object.defineProperty(j,D,{value:H,enumerable:!0,configurable:!0,writable:!0}):j[D]=H,j}var q=(function(j){S(H,j);var D=R(H);function H(G){var k;h(this,H),k=D.call(this,G),F(C(k),"thumbsRef",void 0),F(C(k),"carouselWrapperRef",void 0),F(C(k),"listRef",void 0),F(C(k),"itemsRef",void 0),F(C(k),"timer",void 0),F(C(k),"animationHandler",void 0),F(C(k),"setThumbsRef",function(J){k.thumbsRef=J}),F(C(k),"setCarouselWrapperRef",function(J){k.carouselWrapperRef=J}),F(C(k),"setListRef",function(J){k.listRef=J}),F(C(k),"setItemsRef",function(J,re){k.itemsRef||(k.itemsRef=[]),k.itemsRef[re]=J}),F(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)))}),F(C(k),"clearAutoPlay",function(){k.timer&&clearTimeout(k.timer)}),F(C(k),"resetAutoPlay",function(){k.clearAutoPlay(),k.autoPlay()}),F(C(k),"stopOnHover",function(){k.setState({isMouseEntered:!0},k.clearAutoPlay)}),F(C(k),"startOnLeave",function(){k.setState({isMouseEntered:!1},k.autoPlay)}),F(C(k),"isFocusWithinTheCarousel",function(){return k.carouselWrapperRef?!!((0,s.default)().activeElement===k.carouselWrapperRef||k.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),F(C(k),"navigateWithKeyboard",function(J){if(k.isFocusWithinTheCarousel()){var re=k.props.axis,ce=re==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},te=ce?Z.ArrowRight:Z.ArrowDown,ne=ce?Z.ArrowLeft:Z.ArrowUp;te===J.keyCode?k.increment():ne===J.keyCode&&k.decrement()}}),F(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()}}}),F(C(k),"setMountState",function(){k.setState({hasMount:!0}),k.updateSizes()}),F(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})}}),F(C(k),"handleOnChange",function(J,re){e.Children.count(k.props.children)<=1||k.props.onChange(J,re)}),F(C(k),"handleClickThumb",function(J,re){k.props.onClickThumb(J,re),k.moveTo(J)}),F(C(k),"onSwipeStart",function(J){k.setState({swiping:!0}),k.props.onSwipeStart(J)}),F(C(k),"onSwipeEnd",function(J){k.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),k.props.onSwipeEnd(J),k.clearAutoPlay(),k.state.autoPlay&&k.autoPlay()}),F(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}),F(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))}),F(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))}),F(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()}}),F(C(k),"onClickNext",function(){k.increment(1)}),F(C(k),"onClickPrev",function(){k.decrement(1)}),F(C(k),"onSwipeForward",function(){k.increment(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),F(C(k),"onSwipeBackwards",function(){k.decrement(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),F(C(k),"changeItem",function(J){return function(re){(!(0,u.isKeyboardEvent)(re)||re.key==="Enter")&&k.moveTo(J)}}),F(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])}),F(C(k),"getInitialImage",function(){var J=k.props.selectedItem,re=k.itemsRef&&k.itemsRef[J],ce=re&&re.getElementsByTagName("img")||[];return ce[0]}),F(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 Z=ce[0];if(!Z.complete){var te=function ie(){k.forceUpdate(),Z.removeEventListener("load",ie)};Z.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:G.selectedItem,selectedItem:G.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:G.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return k.animationHandler=typeof G.animationHandler=="function"&&G.animationHandler||G.animationHandler==="fade"&&l.fadeAnimationHandler||l.slideAnimationHandler,k.state=x(x({},Q),k.animationHandler(G,Q)),k}return v(H,[{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,Z=re===Q.state.previousItem,te=ce&&Q.state.selectedStyle||Z&&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,Z=Q.children;return J?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,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,Z=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,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),H})(e.default.Component);return ho.default=q,F(q,"displayName","Carousel"),F(q,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:u.noop,onClickThumb:u.noop,onChange:u.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(D,H,G){return e.default.createElement("button",{type:"button","aria-label":G,className:r.default.ARROW_PREV(!H),onClick:D})},renderArrowNext:function(D,H,G){return e.default.createElement("button",{type:"button","aria-label":G,className:r.default.ARROW_NEXT(!H),onClick:D})},renderIndicator:function(D,H,G,k){return e.default.createElement("li",{className:r.default.DOT(H),onClick:D,onKeyDown:D,value:G,key:G,role:"button",tabIndex:0,"aria-label":"".concat(k," ").concat(G+1)})},renderItem:function(D){return D},renderThumbs:function(D){var H=e.Children.map(D,function(G){var k=G;if(G.type!=="img"&&(k=e.Children.toArray(G.props.children).find(function(Q){return Q.type==="img"})),!!k)return k});return H.filter(function(G){return G}).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"),[]):H},statusFormatter:u.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:l.slideSwipeAnimationHandler,stopSwipingHandler:l.slideStopSwipingHandler}),ho}var Rm={},Pm;function ik(){return Pm||(Pm=1),Rm}var Cm;function ok(){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(nk()),r=ik(),i=s(ky());function s(a){return a&&a.__esModule?a:{default:a}}})(Xl)),Xl}var sk=ok();const ak=({tip:e})=>I.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:$y(e,!0)}),uk=({pages:e})=>I.jsx("div",{className:"min-h-[10rem] w-96",children:I.jsx(sk.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>I.jsx(ak,{tip:t},t.key))})}),lk=({body:e,isInsideCarousel:t})=>I.jsx("article",{className:Be(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:I.jsx(Oa,{children:e,options:{overrides:{a:{component:({children:r,...i})=>I.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,I.jsx(Qe.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),ck=({video:e,body:t,title:r,isInsideCarousel:i})=>I.jsxs("div",{className:Be([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[I.jsx("div",{className:Be([{"mr-1":!i,"mb-1":i}]),children:I.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})}),I.jsx("article",{className:Be(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:I.jsx(Oa,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>I.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,I.jsx(Qe.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),$y=(e,t)=>{switch(e.type){case wa.TEXT:return I.jsx(lk,{body:e.body,isInsideCarousel:t});case wa.VIDEO:return I.jsx(ck,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case wa.CAROUSEL:return I.jsx(uk,{pages:e.pages})}},Ly=M.createContext(void 0);function km(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const fk=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:s},a]=M.useState({tips:{},show:!0});M.useEffect(()=>{const l=new AbortController;try{fetch(`${r}/tips.json`,{signal:l.signal}).then(f=>f.json()).then(f=>{const p=f.reduce((m,d)=>km(f,d.key).length>1?{...m,[d.key]:{type:"carousel",pages:km(f,d.key)}}:{...m,[d.key]:d},{});a(m=>({...m,tips:p}))})}catch{}return()=>{l.abort()}},[]);const u=()=>{a(l=>({...l,show:!s}))};return I.jsx(Ly.Provider,{value:{tips:i,toggleTips:u,show:s,enabled:t},children:e})},My=e=>{const t=M.useContext(Ly);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}},dk=Aa(UC)`
|
|
82
82
|
&[data-state='open'] > * {
|
|
83
83
|
display: block !important;
|
|
84
84
|
}
|
|
85
|
-
`,
|
|
86
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(
|
|
85
|
+
`,Dy=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:s,enabled:a}=My(e),[u,l]=M.useState(!1),f=M.useRef(null);return M.useEffect(()=>{if(f.current){const p=new IntersectionObserver(m=>{m[0].isIntersecting||l(!1)});return p.observe(f.current),()=>{f.current&&p.unobserve(f.current)}}},[]),s&&a?I.jsxs(HC,{open:u,onOpenChange:l,children:[I.jsx(dk,{ref:f,className:Be("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:p=>p.stopPropagation(),children:I.jsx("span",{className:Be("group-hover:block",{hidden:!r}),children:I.jsx(Qe.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),I.jsx(qC,{side:t,sideOffset:5,onClick:p=>p.stopPropagation(),children:I.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:$y(s)})})]}):null};var pk=Object.defineProperty,hk=(e,t,r)=>t in e?pk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ic=(e,t,r)=>(hk(e,typeof t!="symbol"?t+"":t,r),r);let gk=class{constructor(){ic(this,"current",this.detect()),ic(this,"handoffState","pending"),ic(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"}},Oi=new gk,Fr=(e,t)=>{Oi.isServer?M.useEffect(e,t):M.useLayoutEffect(e,t)};function Ai(e){let t=M.useRef(e);return Fr(()=>{t.current=e},[e]),t}let Ot=function(e){let t=Ai(e);return M.useCallback((...r)=>t.current(...r),[t])};function mk(e,t,r){let[i,s]=M.useState(r),a=e!==void 0,u=M.useRef(a),l=M.useRef(!1),f=M.useRef(!1);return a&&!u.current&&!l.current?(l.current=!0,u.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&u.current&&!f.current&&(f.current=!0,u.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:i,Ot(p=>(a||s(p),t==null?void 0:t(p)))]}function vk(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Yo(){let e=[],t={addEventListener(r,i,s,a){return r.addEventListener(i,s,a),t.add(()=>r.removeEventListener(i,s,a))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(...r){let i={current:!0};return vk(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,s){let a=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:s}),this.add(()=>{Object.assign(r.style,{[i]:a})})},group(r){let i=Yo();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let s of e.splice(i,1))s()}},dispose(){for(let r of e.splice(0))r()}};return t}function yf(){let[e]=M.useState(Yo);return M.useEffect(()=>()=>e.dispose(),[e]),e}function yk(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function bf(){let e=yk(),[t,r]=$.useState(Oi.isHandoffComplete);return t&&Oi.isHandoffComplete===!1&&r(!1),$.useEffect(()=>{t!==!0&&r(!0)},[t]),$.useEffect(()=>Oi.handoff(),[]),e?!1:t}var Im;let wf=(Im=M.useId)!=null?Im:function(){let e=bf(),[t,r]=M.useState(e?()=>Oi.nextId():null);return Fr(()=>{t===null&&r(Oi.nextId())},[t]),t!=null?""+t:void 0};function Lr(e,t,...r){if(e in t){let s=t[e];return typeof s=="function"?s(...r):s}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Lr),i}function $m(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function bk(e,t){let[r,i]=M.useState(()=>$m(e));return Fr(()=>{i($m(e))},[e.type,e.as]),Fr(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let wk=Symbol();function Xo(...e){let t=M.useRef(e);M.useEffect(()=>{t.current=e},[e]);let r=Ot(i=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(i):s.current=i)});return e.every(i=>i==null||(i==null?void 0:i[wk]))?void 0:r}function Pa(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Ny=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ny||{}),_n=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_n||{});function ei({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:s,visible:a=!0,name:u,mergeRefs:l}){l=l??xk;let f=Fy(t,e);if(a)return aa(f,r,i,u,l);let p=s??0;if(p&2){let{static:m=!1,...d}=f;if(m)return aa(d,r,i,u,l)}if(p&1){let{unmount:m=!0,...d}=f;return Lr(m?0:1,{0(){return null},1(){return aa({...d,hidden:!0,style:{display:"none"}},r,i,u,l)}})}return aa(f,r,i,u,l)}function aa(e,t={},r,i,s){let{as:a=r,children:u,refName:l="ref",...f}=oc(e,["unmount","static"]),p=e.ref!==void 0?{[l]:e.ref}:{},m=typeof u=="function"?u(t):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let d={};if(t){let g=!1,y=[];for(let[x,h]of Object.entries(t))typeof h=="boolean"&&(g=!0),h===!0&&y.push(x);g&&(d["data-headlessui-state"]=y.join(" "))}if(a===M.Fragment&&Object.keys(kc(f)).length>0){if(!M.isValidElement(m)||Array.isArray(m)&&m.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(h=>` - ${h}`).join(`
|
|
86
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(`
|
|
87
87
|
`)].join(`
|
|
88
|
-
`));let g=y.props,v=typeof(g==null?void 0:g.className)=="function"?(...d)=>Ea(g==null?void 0:g.className(...d),f.className):Ea(g==null?void 0:g.className,f.className),x=v?{className:v}:{};return W.cloneElement(y,Object.assign({},gy(y.props,xc(Vl(f,["ref"]))),p,m,{ref:s(y.ref,m.ref)},x))}return W.createElement(a,Object.assign({},Vl(f,["ref"]),a!==W.Fragment&&m,a!==W.Fragment&&p),y)}function DC(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function gy(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let s in i)s.startsWith("on")&&typeof i[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(i[s])):t[s]=i[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](s,...a){let u=r[i];for(let c of u){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;c(s,...a)}}});return t}function Vn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function xc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Vl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let NC="div";var my=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(my||{});function jC(e,t){var r;let{features:i=1,...s}=e,a={ref:t,"aria-hidden":(i&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Kn({ourProps:a,theirProps:s,slot:{},defaultTag:NC,name:"Hidden"})}let zC=Vn(jC),cf=W.createContext(null);cf.displayName="OpenClosedContext";var Kr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Kr||{});function vy(){return W.useContext(cf)}function WC({value:e,children:t}){return W.createElement(cf.Provider,{value:e},t)}function UC(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&BC(r)?!1:i}function BC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function HC(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let s of i.elements)if(s!==e&&(s.tagName==="INPUT"&&s.type==="submit"||s.tagName==="BUTTON"&&s.type==="submit"||s.nodeName==="INPUT"&&s.type==="image")){s.click();return}(r=i.requestSubmit)==null||r.call(i)}}var Sc=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Sc||{});function ff(){let e=W.useRef(!1);return Lr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let yy=W.createContext(null);function by(){let e=W.useContext(yy);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,by),t}return e}function qC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=Et(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(yy.Provider,{value:s},r.children)},[t])]}let ZC="p";function GC(e,t){let r=lf(),{id:i=`headlessui-description-${r}`,...s}=e,a=by(),u=qo(t);Lr(()=>a.register(i),[i,a.register]);let c={ref:u,...a.props,id:i};return Kn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:ZC,name:a.name||"Description"})}let KC=Vn(GC),VC=Object.assign(KC,{}),wy=W.createContext(null);function xy(){let e=W.useContext(wy);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,xy),t}return e}function XC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=Et(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(wy.Provider,{value:s},r.children)},[t])]}let YC="label";function JC(e,t){let r=lf(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,u=xy(),c=qo(t);Lr(()=>u.register(i),[i,u.register]);let f={ref:c,...u.props,id:i};return s&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in a&&delete a.onClick),Kn({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:YC,name:u.name||"Label"})}let QC=Vn(JC),ek=Object.assign(QC,{});function tk(e=0){let[t,r]=W.useState(e),i=ff(),s=W.useCallback(f=>{i.current&&r(m=>m|f)},[t,i]),a=W.useCallback(f=>!!(t&f),[t]),u=W.useCallback(f=>{i.current&&r(m=>m&~f)},[r,i]),c=W.useCallback(f=>{i.current&&r(m=>m^f)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:u,toggleFlag:c}}let df=W.createContext(null);df.displayName="GroupContext";let rk=W.Fragment;function nk(e){var t;let[r,i]=W.useState(null),[s,a]=XC(),[u,c]=qC(),f=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:u}),[r,i,s,u]),m={},y=e;return W.createElement(c,{name:"Switch.Description"},W.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=f.switch)==null?void 0:t.id,onClick(p){r&&(p.currentTarget.tagName==="LABEL"&&p.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},W.createElement(df.Provider,{value:f},Kn({ourProps:m,theirProps:y,defaultTag:rk,name:"Switch.Group"}))))}let ik="button";function ok(e,t){var r;let i=lf(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:u=!1,onChange:c,disabled:f=!1,name:m,value:y,form:p,...g}=e,v=W.useContext(df),x=W.useRef(null),d=qo(x,t,v===null?null:v.setSwitch),[w,h]=$C(a,c,u),S=Et(()=>h==null?void 0:h(!w)),E=Et(D=>{if(UC(D.currentTarget))return D.preventDefault();D.preventDefault(),S()}),R=Et(D=>{D.key===Sc.Space?(D.preventDefault(),S()):D.key===Sc.Enter&&HC(D.currentTarget)}),O=Et(D=>D.preventDefault()),C=W.useMemo(()=>({checked:w}),[w]),U={id:s,ref:d,role:"switch",type:MC(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":v==null?void 0:v.labelledby,"aria-describedby":v==null?void 0:v.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:O},M=af();return W.useEffect(()=>{var D;let q=(D=x.current)==null?void 0:D.closest("form");q&&u!==void 0&&M.addEventListener(q,"reset",()=>{h(u)})},[x,h]),W.createElement(W.Fragment,null,m!=null&&w&&W.createElement(zC,{features:my.Hidden,...xc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:p,checked:w,name:m,value:y})}),Kn({ourProps:U,theirProps:g,slot:C,defaultTag:ik,name:"Switch"}))}let sk=Vn(ok),ak=nk,uk=Object.assign(sk,{Group:ak,Label:ek,Description:VC});function lk(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Xl(e,...t){e&&t.length>0&&e.classList.add(...t)}function Yl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ck(e,t){let r=Ho();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[a,u]=[i,s].map(f=>{let[m=0]=f.split(",").filter(Boolean).map(y=>y.includes("ms")?parseFloat(y):parseFloat(y)*1e3).sort((y,p)=>p-y);return m}),c=a+u;if(c!==0){r.group(m=>{m.setTimeout(()=>{t(),m.dispose()},c),m.addEventListener(e,"transitionrun",y=>{y.target===y.currentTarget&&m.dispose()})});let f=r.addEventListener(e,"transitionend",m=>{m.target===m.currentTarget&&(t(),f())})}else t();return r.add(()=>t()),r.dispose}function fk(e,t,r,i){let s=r?"enter":"leave",a=Ho(),u=i!==void 0?lk(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Cr(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Cr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),m=Cr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Yl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Xl(e,...t.base,...c,...m),a.nextFrame(()=>{Yl(e,...t.base,...c,...m),Xl(e,...t.base,...c,...f),ck(e,()=>(Yl(e,...t.base,...c),Xl(e,...t.base,...t.entered),u()))}),a.dispose}function dk({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let u=ff(),c=af(),f=wi(r);Lr(()=>{e&&(f.current="enter")},[e]),Lr(()=>{let m=Ho();c.add(m.dispose);let y=t.current;if(y&&f.current!=="idle"&&u.current)return m.dispose(),s.current(f.current),m.add(fk(y,i.current,f.current==="enter",()=>{m.dispose(),a.current(f.current)})),m.dispose},[r])}function gn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ua=W.createContext(null);Ua.displayName="TransitionContext";var pk=(e=>(e.Visible="visible",e.Hidden="hidden",e))(pk||{});function hk(){let e=W.useContext(Ua);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function gk(){let e=W.useContext(Ba);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ba=W.createContext(null);Ba.displayName="NestingContext";function Ha(e){return"children"in e?Ha(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Sy(e,t){let r=wi(e),i=W.useRef([]),s=ff(),a=af(),u=Et((v,x=bn.Hidden)=>{let d=i.current.findIndex(({el:w})=>w===v);d!==-1&&(Cr(x,{[bn.Unmount](){i.current.splice(d,1)},[bn.Hidden](){i.current[d].state="hidden"}}),a.microTask(()=>{var w;!Ha(i)&&s.current&&((w=r.current)==null||w.call(r))}))}),c=Et(v=>{let x=i.current.find(({el:d})=>d===v);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:v,state:"visible"}),()=>u(v,bn.Unmount)}),f=W.useRef([]),m=W.useRef(Promise.resolve()),y=W.useRef({enter:[],leave:[],idle:[]}),p=Et((v,x,d)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([w])=>w!==v)),t==null||t.chains.current[x].push([v,new Promise(w=>{f.current.push(w)})]),t==null||t.chains.current[x].push([v,new Promise(w=>{Promise.all(y.current[x].map(([h,S])=>S)).then(()=>w())})]),x==="enter"?m.current=m.current.then(()=>t==null?void 0:t.wait.current).then(()=>d(x)):d(x)}),g=Et((v,x,d)=>{Promise.all(y.current[x].splice(0).map(([w,h])=>h)).then(()=>{var w;(w=f.current.shift())==null||w()}).then(()=>d(x))});return W.useMemo(()=>({children:i,register:c,unregister:u,onStart:p,onStop:g,wait:m,chains:y}),[c,u,i,p,g,y,m])}function mk(){}let vk=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function pm(e){var t;let r={};for(let i of vk)r[i]=(t=e[i])!=null?t:mk;return r}function yk(e){let t=W.useRef(pm(e));return W.useEffect(()=>{t.current=pm(e)},[e]),t}let bk="div",Ey=hy.RenderStrategy;function wk(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:c,enter:f,enterFrom:m,enterTo:y,entered:p,leave:g,leaveFrom:v,leaveTo:x,...d}=e,w=W.useRef(null),h=qo(w,t),S=(r=d.unmount)==null||r?bn.Unmount:bn.Hidden,{show:E,appear:R,initial:O}=hk(),[C,U]=W.useState(E?"visible":"hidden"),M=gk(),{register:D,unregister:q}=M;W.useEffect(()=>D(w),[D,w]),W.useEffect(()=>{if(S===bn.Hidden&&w.current){if(E&&C!=="visible"){U("visible");return}return Cr(C,{hidden:()=>q(w),visible:()=>D(w)})}},[C,w,D,q,E,S]);let N=wi({base:gn(d.className),enter:gn(f),enterFrom:gn(m),enterTo:gn(y),entered:gn(p),leave:gn(g),leaveFrom:gn(v),leaveTo:gn(x)}),L=yk({beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:c}),B=uf();W.useEffect(()=>{if(B&&C==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,C,B]);let Z=O&&!R,k=R&&E&&O,Q=!B||Z?"idle":E?"enter":"leave",J=tk(0),re=Et(ie=>Cr(ie,{enter:()=>{J.addFlag(Kr.Opening),L.current.beforeEnter()},leave:()=>{J.addFlag(Kr.Closing),L.current.beforeLeave()},idle:()=>{}})),ce=Et(ie=>Cr(ie,{enter:()=>{J.removeFlag(Kr.Opening),L.current.afterEnter()},leave:()=>{J.removeFlag(Kr.Closing),L.current.afterLeave()},idle:()=>{}})),G=Sy(()=>{U("hidden"),q(w)},M),te=W.useRef(!1);dk({immediate:k,container:w,classes:N,direction:Q,onStart:wi(ie=>{te.current=!0,G.onStart(w,ie,re)}),onStop:wi(ie=>{te.current=!1,G.onStop(w,ie,ce),ie==="leave"&&!Ha(G)&&(U("hidden"),q(w))})});let ne=d,ue={ref:h};return k?ne={...ne,className:Ea(d.className,...N.current.enter,...N.current.enterFrom)}:te.current&&(ne.className=Ea(d.className,(i=w.current)==null?void 0:i.className),ne.className===""&&delete ne.className),W.createElement(Ba.Provider,{value:G},W.createElement(WC,{value:Cr(C,{visible:Kr.Open,hidden:Kr.Closed})|J.flags},Kn({ourProps:ue,theirProps:ne,defaultTag:bk,features:Ey,visible:C==="visible",name:"Transition.Child"})))}function xk(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,u=W.useRef(null),c=qo(u,t);uf();let f=vy();if(r===void 0&&f!==null&&(r=(f&Kr.Open)===Kr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,y]=W.useState(r?"visible":"hidden"),p=Sy(()=>{y("hidden")}),[g,v]=W.useState(!0),x=W.useRef([r]);Lr(()=>{g!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),v(!1))},[x,r]);let d=W.useMemo(()=>({show:r,appear:i,initial:g}),[r,i,g]);W.useEffect(()=>{if(r)y("visible");else if(!Ha(p))y("hidden");else{let E=u.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&y("hidden")}},[r,p]);let w={unmount:s},h=Et(()=>{var E;g&&v(!1),(E=e.beforeEnter)==null||E.call(e)}),S=Et(()=>{var E;g&&v(!1),(E=e.beforeLeave)==null||E.call(e)});return W.createElement(Ba.Provider,{value:p},W.createElement(Ua.Provider,{value:d},Kn({ourProps:{...w,as:W.Fragment,children:W.createElement(_y,{ref:c,...w,...a,beforeEnter:h,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:Ey,visible:m==="visible",name:"Transition"})))}function Sk(e,t){let r=W.useContext(Ua)!==null,i=vy()!==null;return W.createElement(W.Fragment,null,!r&&i?W.createElement(Ec,{ref:t,...e}):W.createElement(_y,{ref:t,...e}))}let Ec=Vn(xk),_y=Vn(wk),Ek=Vn(Sk),_a=Object.assign(Ec,{Child:Ek,Root:Ec});const Jl={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},Oy=W.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto",...s},a)=>{const u=c=>{e(c)};return F.jsx("div",{className:He("flex items-center",i),children:F.jsx(uk,{as:"span",ref:a,checked:t,onChange:u,onKeyDown:c=>{c.key==="Enter"&&u(!t)},...s,className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
89
|
-
relative inline-flex shrink-0 ${
|
|
90
|
-
pointer-events-none inline-block ${
|
|
91
|
-
]`).replace("lheading",
|
|
92
|
-
`).map(a=>{let u=a.match(r.other.beginningSpace);if(u===null)return a;let[
|
|
93
|
-
`)}var
|
|
94
|
-
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=
|
|
95
|
-
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=
|
|
88
|
+
`));let g=m.props,y=typeof(g==null?void 0:g.className)=="function"?(...h)=>Pa(g==null?void 0:g.className(...h),f.className):Pa(g==null?void 0:g.className,f.className),x=y?{className:y}:{};return M.cloneElement(m,Object.assign({},Fy(m.props,kc(oc(f,["ref"]))),d,p,{ref:s(m.ref,p.ref)},x))}return M.createElement(a,Object.assign({},oc(f,["ref"]),a!==M.Fragment&&p,a!==M.Fragment&&d),m)}function xk(...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 Fy(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let s in i)s.startsWith("on")&&typeof i[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(i[s])):t[s]=i[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](s,...a){let u=r[i];for(let l of u){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;l(s,...a)}}});return t}function ti(e){var t;return Object.assign(M.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function kc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function oc(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let Sk="div";var jy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(jy||{});function Ek(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 ei({ourProps:a,theirProps:s,slot:{},defaultTag:Sk,name:"Hidden"})}let _k=ti(Ek),xf=M.createContext(null);xf.displayName="OpenClosedContext";var Jr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Jr||{});function zy(){return M.useContext(xf)}function Tk({value:e,children:t}){return M.createElement(xf.Provider,{value:e},t)}function Ok(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&&Ak(r)?!1:i}function Ak(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Rk(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 Ic=(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))(Ic||{});function Sf(){let e=M.useRef(!1);return Fr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let By=M.createContext(null);function Wy(){let e=M.useContext(By);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,Wy),t}return e}function Pk(){let[e,t]=M.useState([]);return[e.length>0?e.join(" "):void 0,M.useMemo(()=>function(r){let i=Ot(a=>(t(u=>[...u,a]),()=>t(u=>{let l=u.slice(),f=l.indexOf(a);return f!==-1&&l.splice(f,1),l}))),s=M.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return M.createElement(By.Provider,{value:s},r.children)},[t])]}let Ck="p";function kk(e,t){let r=wf(),{id:i=`headlessui-description-${r}`,...s}=e,a=Wy(),u=Xo(t);Fr(()=>a.register(i),[i,a.register]);let l={ref:u,...a.props,id:i};return ei({ourProps:l,theirProps:s,slot:a.slot||{},defaultTag:Ck,name:a.name||"Description"})}let Ik=ti(kk),$k=Object.assign(Ik,{}),Hy=M.createContext(null);function Uy(){let e=M.useContext(Hy);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,Uy),t}return e}function Lk(){let[e,t]=M.useState([]);return[e.length>0?e.join(" "):void 0,M.useMemo(()=>function(r){let i=Ot(a=>(t(u=>[...u,a]),()=>t(u=>{let l=u.slice(),f=l.indexOf(a);return f!==-1&&l.splice(f,1),l}))),s=M.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return M.createElement(Hy.Provider,{value:s},r.children)},[t])]}let Mk="label";function Dk(e,t){let r=wf(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,u=Uy(),l=Xo(t);Fr(()=>u.register(i),[i,u.register]);let f={ref:l,...u.props,id:i};return s&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in a&&delete a.onClick),ei({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:Mk,name:u.name||"Label"})}let Nk=ti(Dk),Fk=Object.assign(Nk,{});function jk(e=0){let[t,r]=M.useState(e),i=Sf(),s=M.useCallback(f=>{i.current&&r(p=>p|f)},[t,i]),a=M.useCallback(f=>!!(t&f),[t]),u=M.useCallback(f=>{i.current&&r(p=>p&~f)},[r,i]),l=M.useCallback(f=>{i.current&&r(p=>p^f)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:u,toggleFlag:l}}let Ef=M.createContext(null);Ef.displayName="GroupContext";let zk=M.Fragment;function Bk(e){var t;let[r,i]=M.useState(null),[s,a]=Lk(),[u,l]=Pk(),f=M.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:u}),[r,i,s,u]),p={},m=e;return M.createElement(l,{name:"Switch.Description"},M.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=f.switch)==null?void 0:t.id,onClick(d){r&&(d.currentTarget.tagName==="LABEL"&&d.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},M.createElement(Ef.Provider,{value:f},ei({ourProps:p,theirProps:m,defaultTag:zk,name:"Switch.Group"}))))}let Wk="button";function Hk(e,t){var r;let i=wf(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:u=!1,onChange:l,disabled:f=!1,name:p,value:m,form:d,...g}=e,y=M.useContext(Ef),x=M.useRef(null),h=Xo(x,t,y===null?null:y.setSwitch),[w,v]=mk(a,l,u),S=Ot(()=>v==null?void 0:v(!w)),E=Ot(F=>{if(Ok(F.currentTarget))return F.preventDefault();F.preventDefault(),S()}),R=Ot(F=>{F.key===Ic.Space?(F.preventDefault(),S()):F.key===Ic.Enter&&Rk(F.currentTarget)}),T=Ot(F=>F.preventDefault()),C=M.useMemo(()=>({checked:w}),[w]),W={id:s,ref:h,role:"switch",type:bk(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":y==null?void 0:y.labelledby,"aria-describedby":y==null?void 0:y.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:T},N=yf();return M.useEffect(()=>{var F;let q=(F=x.current)==null?void 0:F.closest("form");q&&u!==void 0&&N.addEventListener(q,"reset",()=>{v(u)})},[x,v]),M.createElement(M.Fragment,null,p!=null&&w&&M.createElement(_k,{features:jy.Hidden,...kc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:d,checked:w,name:p,value:m})}),ei({ourProps:W,theirProps:g,slot:C,defaultTag:Wk,name:"Switch"}))}let Uk=ti(Hk),qk=Bk,Gk=Object.assign(Uk,{Group:qk,Label:Fk,Description:$k});function Zk(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function sc(e,...t){e&&t.length>0&&e.classList.add(...t)}function ac(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Vk(e,t){let r=Yo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[a,u]=[i,s].map(f=>{let[p=0]=f.split(",").filter(Boolean).map(m=>m.includes("ms")?parseFloat(m):parseFloat(m)*1e3).sort((m,d)=>d-m);return p}),l=a+u;if(l!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},l),p.addEventListener(e,"transitionrun",m=>{m.target===m.currentTarget&&p.dispose()})});let f=r.addEventListener(e,"transitionend",p=>{p.target===p.currentTarget&&(t(),f())})}else t();return r.add(()=>t()),r.dispose}function Kk(e,t,r,i){let s=r?"enter":"leave",a=Yo(),u=i!==void 0?Zk(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let l=Lr(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Lr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=Lr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ac(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),sc(e,...t.base,...l,...p),a.nextFrame(()=>{ac(e,...t.base,...l,...p),sc(e,...t.base,...l,...f),Vk(e,()=>(ac(e,...t.base,...l),sc(e,...t.base,...t.entered),u()))}),a.dispose}function Yk({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let u=Sf(),l=yf(),f=Ai(r);Fr(()=>{e&&(f.current="enter")},[e]),Fr(()=>{let p=Yo();l.add(p.dispose);let m=t.current;if(m&&f.current!=="idle"&&u.current)return p.dispose(),s.current(f.current),p.add(Kk(m,i.current,f.current==="enter",()=>{p.dispose(),a.current(f.current)})),p.dispose},[r])}function wn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ya=M.createContext(null);Ya.displayName="TransitionContext";var Xk=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Xk||{});function Jk(){let e=M.useContext(Ya);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Qk(){let e=M.useContext(Xa);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Xa=M.createContext(null);Xa.displayName="NestingContext";function Ja(e){return"children"in e?Ja(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function qy(e,t){let r=Ai(e),i=M.useRef([]),s=Sf(),a=yf(),u=Ot((y,x=_n.Hidden)=>{let h=i.current.findIndex(({el:w})=>w===y);h!==-1&&(Lr(x,{[_n.Unmount](){i.current.splice(h,1)},[_n.Hidden](){i.current[h].state="hidden"}}),a.microTask(()=>{var w;!Ja(i)&&s.current&&((w=r.current)==null||w.call(r))}))}),l=Ot(y=>{let x=i.current.find(({el:h})=>h===y);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:y,state:"visible"}),()=>u(y,_n.Unmount)}),f=M.useRef([]),p=M.useRef(Promise.resolve()),m=M.useRef({enter:[],leave:[],idle:[]}),d=Ot((y,x,h)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([w])=>w!==y)),t==null||t.chains.current[x].push([y,new Promise(w=>{f.current.push(w)})]),t==null||t.chains.current[x].push([y,new Promise(w=>{Promise.all(m.current[x].map(([v,S])=>S)).then(()=>w())})]),x==="enter"?p.current=p.current.then(()=>t==null?void 0:t.wait.current).then(()=>h(x)):h(x)}),g=Ot((y,x,h)=>{Promise.all(m.current[x].splice(0).map(([w,v])=>v)).then(()=>{var w;(w=f.current.shift())==null||w()}).then(()=>h(x))});return M.useMemo(()=>({children:i,register:l,unregister:u,onStart:d,onStop:g,wait:p,chains:m}),[l,u,i,d,g,m,p])}function eI(){}let tI=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Lm(e){var t;let r={};for(let i of tI)r[i]=(t=e[i])!=null?t:eI;return r}function rI(e){let t=M.useRef(Lm(e));return M.useEffect(()=>{t.current=Lm(e)},[e]),t}let nI="div",Gy=Ny.RenderStrategy;function iI(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:l,enter:f,enterFrom:p,enterTo:m,entered:d,leave:g,leaveFrom:y,leaveTo:x,...h}=e,w=M.useRef(null),v=Xo(w,t),S=(r=h.unmount)==null||r?_n.Unmount:_n.Hidden,{show:E,appear:R,initial:T}=Jk(),[C,W]=M.useState(E?"visible":"hidden"),N=Qk(),{register:F,unregister:q}=N;M.useEffect(()=>F(w),[F,w]),M.useEffect(()=>{if(S===_n.Hidden&&w.current){if(E&&C!=="visible"){W("visible");return}return Lr(C,{hidden:()=>q(w),visible:()=>F(w)})}},[C,w,F,q,E,S]);let j=Ai({base:wn(h.className),enter:wn(f),enterFrom:wn(p),enterTo:wn(m),entered:wn(d),leave:wn(g),leaveFrom:wn(y),leaveTo:wn(x)}),D=rI({beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:l}),H=bf();M.useEffect(()=>{if(H&&C==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,C,H]);let G=T&&!R,k=R&&E&&T,Q=!H||G?"idle":E?"enter":"leave",J=jk(0),re=Ot(ie=>Lr(ie,{enter:()=>{J.addFlag(Jr.Opening),D.current.beforeEnter()},leave:()=>{J.addFlag(Jr.Closing),D.current.beforeLeave()},idle:()=>{}})),ce=Ot(ie=>Lr(ie,{enter:()=>{J.removeFlag(Jr.Opening),D.current.afterEnter()},leave:()=>{J.removeFlag(Jr.Closing),D.current.afterLeave()},idle:()=>{}})),Z=qy(()=>{W("hidden"),q(w)},N),te=M.useRef(!1);Yk({immediate:k,container:w,classes:j,direction:Q,onStart:Ai(ie=>{te.current=!0,Z.onStart(w,ie,re)}),onStop:Ai(ie=>{te.current=!1,Z.onStop(w,ie,ce),ie==="leave"&&!Ja(Z)&&(W("hidden"),q(w))})});let ne=h,ue={ref:v};return k?ne={...ne,className:Pa(h.className,...j.current.enter,...j.current.enterFrom)}:te.current&&(ne.className=Pa(h.className,(i=w.current)==null?void 0:i.className),ne.className===""&&delete ne.className),M.createElement(Xa.Provider,{value:Z},M.createElement(Tk,{value:Lr(C,{visible:Jr.Open,hidden:Jr.Closed})|J.flags},ei({ourProps:ue,theirProps:ne,defaultTag:nI,features:Gy,visible:C==="visible",name:"Transition.Child"})))}function oI(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,u=M.useRef(null),l=Xo(u,t);bf();let f=zy();if(r===void 0&&f!==null&&(r=(f&Jr.Open)===Jr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,m]=M.useState(r?"visible":"hidden"),d=qy(()=>{m("hidden")}),[g,y]=M.useState(!0),x=M.useRef([r]);Fr(()=>{g!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),y(!1))},[x,r]);let h=M.useMemo(()=>({show:r,appear:i,initial:g}),[r,i,g]);M.useEffect(()=>{if(r)m("visible");else if(!Ja(d))m("hidden");else{let E=u.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&m("hidden")}},[r,d]);let w={unmount:s},v=Ot(()=>{var E;g&&y(!1),(E=e.beforeEnter)==null||E.call(e)}),S=Ot(()=>{var E;g&&y(!1),(E=e.beforeLeave)==null||E.call(e)});return M.createElement(Xa.Provider,{value:d},M.createElement(Ya.Provider,{value:h},ei({ourProps:{...w,as:M.Fragment,children:M.createElement(Zy,{ref:l,...w,...a,beforeEnter:v,beforeLeave:S})},theirProps:{},defaultTag:M.Fragment,features:Gy,visible:p==="visible",name:"Transition"})))}function sI(e,t){let r=M.useContext(Ya)!==null,i=zy()!==null;return M.createElement(M.Fragment,null,!r&&i?M.createElement($c,{ref:t,...e}):M.createElement(Zy,{ref:t,...e}))}let $c=ti(oI),Zy=ti(iI),aI=ti(sI),Ca=Object.assign($c,{Child:aI,Root:$c});const uc={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"}},Vy=M.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto",...s},a)=>{const u=l=>{e(l)};return I.jsx("div",{className:Be("flex items-center",i),children:I.jsx(Gk,{as:"span",ref:a,checked:t,onChange:u,onKeyDown:l=>{l.key==="Enter"&&u(!t)},...s,className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
89
|
+
relative inline-flex shrink-0 ${uc[r].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:I.jsx("span",{"aria-hidden":"true",className:`${t?uc[r].translate:"translate-x-0"}
|
|
90
|
+
pointer-events-none inline-block ${uc[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function _f(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ri=_f();function Ky(e){ri=e}var Mo={exec:()=>null};function $e(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,a)=>{let u=typeof a=="string"?a:a.source;return u=u.replace(Ct.caret,"$1"),r=r.replace(s,u),i},getRegex:()=>new RegExp(r,t)};return i}var uI=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ct={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")},lI=/^(?:[ \t]*(?:\n|$))+/,cI=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,fI=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Jo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dI=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Tf=/(?:[*+-]|\d{1,9}[.)])/,Yy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Xy=$e(Yy).replace(/bull/g,Tf).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(),pI=$e(Yy).replace(/bull/g,Tf).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(),Of=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,hI=/^[^\n]+/,Af=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gI=$e(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Af).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),mI=$e(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Tf).getRegex(),Qa="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Rf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,vI=$e("^ {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",Rf).replace("tag",Qa).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jy=$e(Of).replace("hr",Jo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qa).getRegex(),yI=$e(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Jy).getRegex(),Pf={blockquote:yI,code:cI,def:gI,fences:fI,heading:dI,hr:Jo,html:vI,lheading:Xy,list:mI,newline:lI,paragraph:Jy,table:Mo,text:hI},Mm=$e("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Jo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qa).getRegex(),bI={...Pf,lheading:pI,table:Mm,paragraph:$e(Of).replace("hr",Jo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Mm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qa).getRegex()},wI={...Pf,html:$e(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Rf).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:Mo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$e(Of).replace("hr",Jo).replace("heading",` *#{1,6} *[^
|
|
91
|
+
]`).replace("lheading",Xy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},xI=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,SI=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Qy=/^( {2,}|\\)\n(?!\s*$)/,EI=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,eu=/[\p{P}\p{S}]/u,Cf=/[\s\p{P}\p{S}]/u,e0=/[^\s\p{P}\p{S}]/u,_I=$e(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Cf).getRegex(),t0=/(?!~)[\p{P}\p{S}]/u,TI=/(?!~)[\s\p{P}\p{S}]/u,OI=/(?:[^\s\p{P}\p{S}]|~)/u,AI=$e(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uI?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),r0=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,RI=$e(r0,"u").replace(/punct/g,eu).getRegex(),PI=$e(r0,"u").replace(/punct/g,t0).getRegex(),n0="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",CI=$e(n0,"gu").replace(/notPunctSpace/g,e0).replace(/punctSpace/g,Cf).replace(/punct/g,eu).getRegex(),kI=$e(n0,"gu").replace(/notPunctSpace/g,OI).replace(/punctSpace/g,TI).replace(/punct/g,t0).getRegex(),II=$e("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,e0).replace(/punctSpace/g,Cf).replace(/punct/g,eu).getRegex(),$I=$e(/\\(punct)/,"gu").replace(/punct/g,eu).getRegex(),LI=$e(/^<(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(),MI=$e(Rf).replace("(?:-->|$)","-->").getRegex(),DI=$e("^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",MI).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ka=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,NI=$e(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ka).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),i0=$e(/^!?\[(label)\]\[(ref)\]/).replace("label",ka).replace("ref",Af).getRegex(),o0=$e(/^!?\[(ref)\](?:\[\])?/).replace("ref",Af).getRegex(),FI=$e("reflink|nolink(?!\\()","g").replace("reflink",i0).replace("nolink",o0).getRegex(),Dm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,kf={_backpedal:Mo,anyPunctuation:$I,autolink:LI,blockSkip:AI,br:Qy,code:SI,del:Mo,emStrongLDelim:RI,emStrongRDelimAst:CI,emStrongRDelimUnd:II,escape:xI,link:NI,nolink:o0,punctuation:_I,reflink:i0,reflinkSearch:FI,tag:DI,text:EI,url:Mo},jI={...kf,link:$e(/^!?\[(label)\]\((.*?)\)/).replace("label",ka).getRegex(),reflink:$e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ka).getRegex()},Lc={...kf,emStrongRDelimAst:kI,emStrongLDelim:PI,url:$e(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Dm).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:$e(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Dm).getRegex()},zI={...Lc,br:$e(Qy).replace("{2,}","*").getRegex(),text:$e(Lc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ua={normal:Pf,gfm:bI,pedantic:wI},xo={normal:kf,gfm:Lc,breaks:zI,pedantic:jI},BI={"&":"&","<":"<",">":">",'"':""","'":"'"},Nm=e=>BI[e];function Rr(e,t){if(t){if(Ct.escapeTest.test(e))return e.replace(Ct.escapeReplace,Nm)}else if(Ct.escapeTestNoEncode.test(e))return e.replace(Ct.escapeReplaceNoEncode,Nm);return e}function Fm(e){try{e=encodeURI(e).replace(Ct.percentDecode,"%")}catch{return null}return e}function jm(e,t){var a;let r=e.replace(Ct.findPipe,(u,l,f)=>{let p=!1,m=l;for(;--m>=0&&f[m]==="\\";)p=!p;return p?"|":" |"}),i=r.split(Ct.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(Ct.slashPipe,"|");return i}function So(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 WI(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 zm(e,t,r,i,s){let a=t.href,u=t.title||null,l=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:u,text:l,tokens:i.inlineTokens(l)};return i.state.inLink=!1,f}function HI(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
|
|
92
|
+
`).map(a=>{let u=a.match(r.other.beginningSpace);if(u===null)return a;let[l]=u;return l.length>=s.length?a.slice(s.length):a}).join(`
|
|
93
|
+
`)}var Ia=class{constructor(t){ye(this,"options");ye(this,"rules");ye(this,"lexer");this.options=t||ri}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:So(i,`
|
|
94
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=HI(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=So(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:So(r[0],`
|
|
95
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=So(r[0],`
|
|
96
96
|
`).split(`
|
|
97
|
-
`),s="",a="",u=[];for(;i.length>0;){let
|
|
98
|
-
`),
|
|
97
|
+
`),s="",a="",u=[];for(;i.length>0;){let l=!1,f=[],p;for(p=0;p<i.length;p++)if(this.rules.other.blockquoteStart.test(i[p]))f.push(i[p]),l=!0;else if(!l)f.push(i[p]);else break;i=i.slice(p);let m=f.join(`
|
|
98
|
+
`),d=m.replace(this.rules.other.blockquoteSetextReplace,`
|
|
99
99
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
100
|
-
${
|
|
101
|
-
${
|
|
100
|
+
${m}`:m,a=a?`${a}
|
|
101
|
+
${d}`:d;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,u,!0),this.lexer.state.top=g,i.length===0)break;let y=u.at(-1);if((y==null?void 0:y.type)==="code")break;if((y==null?void 0:y.type)==="blockquote"){let x=y,h=x.raw+`
|
|
102
102
|
`+i.join(`
|
|
103
|
-
`),w=this.blockquote(
|
|
103
|
+
`),w=this.blockquote(h);u[u.length-1]=w,s=s.substring(0,s.length-x.raw.length)+w.raw,a=a.substring(0,a.length-x.text.length)+w.text;break}else if((y==null?void 0:y.type)==="list"){let x=y,h=x.raw+`
|
|
104
104
|
`+i.join(`
|
|
105
|
-
`),w=this.list(
|
|
106
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:u,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,a={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let u=this.rules.other.listItemRegex(i),
|
|
107
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),
|
|
108
|
-
`,1)[0],x=!g.trim(),
|
|
109
|
-
`,t=t.substring(
|
|
110
|
-
`,1)[0],
|
|
111
|
-
`+
|
|
112
|
-
`+
|
|
113
|
-
`,t=t.substring(
|
|
114
|
-
`):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?u.align.push("right"):this.rules.other.tableAlignCenter.test(f)?u.align.push("center"):this.rules.other.tableAlignLeft.test(f)?u.align.push("left"):u.align.push(null);for(let f=0;f<i.length;f++)u.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:u.align[f]});for(let f of a)u.rows.push(
|
|
115
|
-
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let u=
|
|
116
|
-
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var s,a,u;for(this.options.pedantic&&(t=t.replace(
|
|
117
|
-
`:r.push(
|
|
105
|
+
`),w=this.list(h);u[u.length-1]=w,s=s.substring(0,s.length-y.raw.length)+w.raw,a=a.substring(0,a.length-x.raw.length)+w.raw,i=h.substring(u.at(-1).raw.length).split(`
|
|
106
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:u,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,a={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let u=this.rules.other.listItemRegex(i),l=!1;for(;t;){let p=!1,m="",d="";if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;m=r[0],t=t.substring(m.length);let g=r[2].split(`
|
|
107
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),y=t.split(`
|
|
108
|
+
`,1)[0],x=!g.trim(),h=0;if(this.options.pedantic?(h=2,d=g.trimStart()):x?h=r[1].length+1:(h=r[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,d=g.slice(h),h+=r[1].length),x&&this.rules.other.blankLine.test(y)&&(m+=y+`
|
|
109
|
+
`,t=t.substring(y.length+1),p=!0),!p){let S=this.rules.other.nextBulletRegex(h),E=this.rules.other.hrRegex(h),R=this.rules.other.fencesBeginRegex(h),T=this.rules.other.headingBeginRegex(h),C=this.rules.other.htmlBeginRegex(h);for(;t;){let W=t.split(`
|
|
110
|
+
`,1)[0],N;if(y=W,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),N=y):N=y.replace(this.rules.other.tabCharGlobal," "),R.test(y)||T.test(y)||C.test(y)||S.test(y)||E.test(y))break;if(N.search(this.rules.other.nonSpaceChar)>=h||!y.trim())d+=`
|
|
111
|
+
`+N.slice(h);else{if(x||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(g)||T.test(g)||E.test(g))break;d+=`
|
|
112
|
+
`+y}!x&&!y.trim()&&(x=!0),m+=W+`
|
|
113
|
+
`,t=t.substring(W.length+1),g=N.slice(h)}}a.loose||(l?a.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(l=!0));let w=null,v;this.options.gfm&&(w=this.rules.other.listIsTask.exec(d),w&&(v=w[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:m,task:!!w,checked:v,loose:!1,text:d,tokens:[]}),a.raw+=m}let f=a.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let p=0;p<a.items.length;p++)if(this.lexer.state.top=!1,a.items[p].tokens=this.lexer.blockTokens(a.items[p].text,[]),!a.loose){let m=a.items[p].tokens.filter(g=>g.type==="space"),d=m.length>0&&m.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=d}if(a.loose)for(let p=0;p<a.items.length;p++)a.items[p].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:a}}}table(t){var l;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=jm(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(l=r[3])!=null&&l.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
114
|
+
`):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?u.align.push("right"):this.rules.other.tableAlignCenter.test(f)?u.align.push("center"):this.rules.other.tableAlignLeft.test(f)?u.align.push("left"):u.align.push(null);for(let f=0;f<i.length;f++)u.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:u.align[f]});for(let f of a)u.rows.push(jm(f,u.header.length).map((p,m)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:u.align[m]})));return u}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
|
|
115
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let u=So(i.slice(0,-1),"\\");if((i.length-u.length)%2===0)return}else{let u=WI(r[2],"()");if(u===-2)return;if(u>-1){let l=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let s=r[2],a="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(s);u&&(s=u[1],a=u[3])}else a=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),zm(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[s.toLowerCase()];if(!a){let u=i[0].charAt(0);return{type:"text",raw:u,text:u}}return zm(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...s[0]].length-1,u,l,f=a,p=0,m=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*t.length+a);(s=m.exec(r))!=null;){if(u=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!u)continue;if(l=[...u].length,s[3]||s[4]){f+=l;continue}else if((s[5]||s[6])&&a%3&&!((a+l)%3)){p+=l;continue}if(f-=l,f>0)continue;l=Math.min(l,l+f+p);let d=[...s[0]][0].length,g=t.slice(0,a+s.index+d+l);if(Math.min(a,l)%2){let x=g.slice(1,-1);return{type:"em",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}let y=g.slice(2,-2);return{type:"strong",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let s,a;if(r[2]==="@")s=r[0],a="mailto:"+s;else{let u;do u=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(u!==r[0]);s=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:s,href:a,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},vr=class Mc{constructor(t){ye(this,"tokens");ye(this,"options");ye(this,"state");ye(this,"tokenizer");ye(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ri,this.options.tokenizer=this.options.tokenizer||new Ia,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:Ct,block:ua.normal,inline:xo.normal};this.options.pedantic?(r.block=ua.pedantic,r.inline=xo.pedantic):this.options.gfm&&(r.block=ua.gfm,this.options.breaks?r.inline=xo.breaks:r.inline=xo.gfm),this.tokenizer.rules=r}static get rules(){return{block:ua,inline:xo}}static lex(t,r){return new Mc(r).lex(t)}static lexInline(t,r){return new Mc(r).inlineTokens(t)}lex(t){t=t.replace(Ct.carriageReturn,`
|
|
116
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var s,a,u;for(this.options.pedantic&&(t=t.replace(Ct.tabCharGlobal," ").replace(Ct.spaceLine,""));t;){let l;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(p=>(l=p.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let p=r.at(-1);l.raw.length===1&&p!==void 0?p.raw+=`
|
|
117
|
+
`:r.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
|
|
118
118
|
`)?"":`
|
|
119
|
-
`)+
|
|
120
|
-
`+
|
|
119
|
+
`)+l.raw,p.text+=`
|
|
120
|
+
`+l.text,this.inlineQueue.at(-1).src=p.text):r.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
|
|
121
121
|
`)?"":`
|
|
122
|
-
`)+
|
|
123
|
-
`+
|
|
122
|
+
`)+l.raw,p.text+=`
|
|
123
|
+
`+l.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},r.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),r.push(l);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let p=1/0,m=t.slice(1),d;this.options.extensions.startBlock.forEach(g=>{d=g.call({lexer:this},m),typeof d=="number"&&d>=0&&(p=Math.min(p,d))}),p<1/0&&p>=0&&(f=t.substring(0,p+1))}if(this.state.top&&(l=this.tokenizer.paragraph(f))){let p=r.at(-1);i&&(p==null?void 0:p.type)==="paragraph"?(p.raw+=(p.raw.endsWith(`
|
|
124
124
|
`)?"":`
|
|
125
|
-
`)+
|
|
126
|
-
`+
|
|
125
|
+
`)+l.raw,p.text+=`
|
|
126
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(l),i=f.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
|
|
127
127
|
`)?"":`
|
|
128
|
-
`)+
|
|
129
|
-
`+
|
|
130
|
-
`;return s?'<pre><code class="language-'+
|
|
131
|
-
`:"<pre><code>"+(i?a:
|
|
128
|
+
`)+l.raw,p.text+=`
|
|
129
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(l);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var f,p,m,d,g;let i=t,s=null;if(this.tokens.links){let y=Object.keys(this.tokens.links);if(y.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)y.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=s[2]?s[2].length:0,i=i.slice(0,s.index+a)+"["+"a".repeat(s[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((p=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:p.call({lexer:this},i))??i;let u=!1,l="";for(;t;){u||(l=""),u=!1;let y;if((d=(m=this.options.extensions)==null?void 0:m.inline)!=null&&d.some(h=>(y=h.call({lexer:this},t,r))?(t=t.substring(y.raw.length),r.push(y),!0):!1))continue;if(y=this.tokenizer.escape(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.tag(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.link(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(y.raw.length);let h=r.at(-1);y.type==="text"&&(h==null?void 0:h.type)==="text"?(h.raw+=y.raw,h.text+=y.text):r.push(y);continue}if(y=this.tokenizer.emStrong(t,i,l)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.codespan(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.br(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.del(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.autolink(t)){t=t.substring(y.raw.length),r.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(t))){t=t.substring(y.raw.length),r.push(y);continue}let x=t;if((g=this.options.extensions)!=null&&g.startInline){let h=1/0,w=t.slice(1),v;this.options.extensions.startInline.forEach(S=>{v=S.call({lexer:this},w),typeof v=="number"&&v>=0&&(h=Math.min(h,v))}),h<1/0&&h>=0&&(x=t.substring(0,h+1))}if(y=this.tokenizer.inlineText(x)){t=t.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(l=y.raw.slice(-1)),u=!0;let h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=y.raw,h.text+=y.text):r.push(y);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},$a=class{constructor(t){ye(this,"options");ye(this,"parser");this.options=t||ri}space(t){return""}code({text:t,lang:r,escaped:i}){var u;let s=(u=(r||"").match(Ct.notSpaceStart))==null?void 0:u[0],a=t.replace(Ct.endingNewline,"")+`
|
|
130
|
+
`;return s?'<pre><code class="language-'+Rr(s)+'">'+(i?a:Rr(a,!0))+`</code></pre>
|
|
131
|
+
`:"<pre><code>"+(i?a:Rr(a,!0))+`</code></pre>
|
|
132
132
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
133
133
|
${this.parser.parse(t)}</blockquote>
|
|
134
134
|
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
135
135
|
`}hr(t){return`<hr>
|
|
136
|
-
`}list(t){let r=t.ordered,i=t.start,s="";for(let
|
|
136
|
+
`}list(t){let r=t.ordered,i=t.start,s="";for(let l=0;l<t.items.length;l++){let f=t.items[l];s+=this.listitem(f)}let a=r?"ol":"ul",u=r&&i!==1?' start="'+i+'"':"";return"<"+a+u+`>
|
|
137
137
|
`+s+"</"+a+`>
|
|
138
|
-
`}listitem(t){var i;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+
|
|
138
|
+
`}listitem(t){var i;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+Rr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
139
139
|
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
140
|
-
`}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let s="";for(let a=0;a<t.rows.length;a++){let u=t.rows[a];i="";for(let
|
|
140
|
+
`}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let s="";for(let a=0;a<t.rows.length;a++){let u=t.rows[a];i="";for(let l=0;l<u.length;l++)i+=this.tablecell(u[l]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
141
141
|
<thead>
|
|
142
142
|
`+r+`</thead>
|
|
143
143
|
`+s+`</table>
|
|
144
144
|
`}tablerow({text:t}){return`<tr>
|
|
145
145
|
${t}</tr>
|
|
146
146
|
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
147
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${
|
|
148
|
-
`+this.renderer.text(
|
|
149
|
-
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+
|
|
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>${Rr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let s=this.parser.parseInline(i),a=Fm(t);if(a===null)return s;t=a;let u='<a href="'+t+'"';return r&&(u+=' title="'+Rr(r)+'"'),u+=">"+s+"</a>",u}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let a=Fm(t);if(a===null)return Rr(i);t=a;let u=`<img src="${t}" alt="${i}"`;return r&&(u+=` title="${Rr(r)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Rr(t.text)}},If=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 Dc{constructor(t){ye(this,"options");ye(this,"renderer");ye(this,"textRenderer");this.options=t||ri,this.options.renderer=this.options.renderer||new $a,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new If}static parse(t,r){return new Dc(r).parse(t)}static parseInline(t,r){return new Dc(r).parseInline(t)}parse(t,r=!0){var s,a;let i="";for(let u=0;u<t.length;u++){let l=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[l.type]){let p=l,m=this.options.extensions.renderers[p.type].call({parser:this},p);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(p.type)){i+=m||"";continue}}let f=l;switch(f.type){case"space":{i+=this.renderer.space(f);continue}case"hr":{i+=this.renderer.hr(f);continue}case"heading":{i+=this.renderer.heading(f);continue}case"code":{i+=this.renderer.code(f);continue}case"table":{i+=this.renderer.table(f);continue}case"blockquote":{i+=this.renderer.blockquote(f);continue}case"list":{i+=this.renderer.list(f);continue}case"html":{i+=this.renderer.html(f);continue}case"def":{i+=this.renderer.def(f);continue}case"paragraph":{i+=this.renderer.paragraph(f);continue}case"text":{let p=f,m=this.renderer.text(p);for(;u+1<t.length&&t[u+1].type==="text";)p=t[++u],m+=`
|
|
148
|
+
`+this.renderer.text(p);r?i+=this.renderer.paragraph({type:"paragraph",raw:m,text:m,tokens:[{type:"text",raw:m,text:m,escaped:!0}]}):i+=m;continue}default:{let p='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return i}parseInline(t,r=this.renderer){var s,a;let i="";for(let u=0;u<t.length;u++){let l=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[l.type]){let p=this.options.extensions.renderers[l.type].call({parser:this},l);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){i+=p||"";continue}}let f=l;switch(f.type){case"escape":{i+=r.text(f);break}case"html":{i+=r.html(f);break}case"link":{i+=r.link(f);break}case"image":{i+=r.image(f);break}case"strong":{i+=r.strong(f);break}case"em":{i+=r.em(f);break}case"codespan":{i+=r.codespan(f);break}case"br":{i+=r.br(f);break}case"del":{i+=r.del(f);break}case"text":{i+=r.text(f);break}default:{let p='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return i}},pa,To=(pa=class{constructor(t){ye(this,"options");ye(this,"block");this.options=t||ri}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?vr.lex:vr.lexInline}provideParser(){return this.block?yr.parse:yr.parseInline}},ye(pa,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ye(pa,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),pa),s0=class{constructor(...t){ye(this,"defaults",_f());ye(this,"options",this.setOptions);ye(this,"parse",this.parseMarkdown(!0));ye(this,"parseInline",this.parseMarkdown(!1));ye(this,"Parser",yr);ye(this,"Renderer",$a);ye(this,"TextRenderer",If);ye(this,"Lexer",vr);ye(this,"Tokenizer",Ia);ye(this,"Hooks",To);this.use(...t)}walkTokens(t,r){var s,a;let i=[];for(let u of t)switch(i=i.concat(r.call(this,u)),u.type){case"table":{let l=u;for(let f of l.header)i=i.concat(this.walkTokens(f.tokens,r));for(let f of l.rows)for(let p of f)i=i.concat(this.walkTokens(p.tokens,r));break}case"list":{let l=u;i=i.concat(this.walkTokens(l.items,r));break}default:{let l=u;(a=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&a[l.type]?this.defaults.extensions.childTokens[l.type].forEach(f=>{let p=l[f].flat(1/0);i=i.concat(this.walkTokens(p,r))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let u=r.renderers[a.name];u?r.renderers[a.name]=function(...l){let f=a.renderer.apply(this,l);return f===!1&&(f=u.apply(this,l)),f}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[a.level];u?u.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),s.extensions=r),i.renderer){let a=this.defaults.renderer||new $a(this.defaults);for(let u in i.renderer){if(!(u in a))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let l=u,f=i.renderer[l],p=a[l];a[l]=(...m)=>{let d=f.apply(a,m);return d===!1&&(d=p.apply(a,m)),d||""}}s.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Ia(this.defaults);for(let u in i.tokenizer){if(!(u in a))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let l=u,f=i.tokenizer[l],p=a[l];a[l]=(...m)=>{let d=f.apply(a,m);return d===!1&&(d=p.apply(a,m)),d}}s.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new To;for(let u in i.hooks){if(!(u in a))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let l=u,f=i.hooks[l],p=a[l];To.passThroughHooks.has(u)?a[l]=m=>{if(this.defaults.async&&To.passThroughHooksRespectAsync.has(u))return(async()=>{let g=await f.call(a,m);return p.call(a,g)})();let d=f.call(a,m);return p.call(a,d)}:a[l]=(...m)=>{if(this.defaults.async)return(async()=>{let g=await f.apply(a,m);return g===!1&&(g=await p.apply(a,m)),g})();let d=f.apply(a,m);return d===!1&&(d=p.apply(a,m)),d}}s.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,u=i.walkTokens;s.walkTokens=function(l){let f=[];return f.push(u.call(this,l)),a&&(f=f.concat(a.call(this,l))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return vr.lex(t,r??this.defaults)}parser(t,r){return yr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},a={...this.defaults,...s},u=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&s.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let l=a.hooks?await a.hooks.preprocess(r):r,f=await(a.hooks?await a.hooks.provideLexer():t?vr.lex:vr.lexInline)(l,a),p=a.hooks?await a.hooks.processAllTokens(f):f;a.walkTokens&&await Promise.all(this.walkTokens(p,a.walkTokens));let m=await(a.hooks?await a.hooks.provideParser():t?yr.parse:yr.parseInline)(p,a);return a.hooks?await a.hooks.postprocess(m):m})().catch(u);try{a.hooks&&(r=a.hooks.preprocess(r));let l=(a.hooks?a.hooks.provideLexer():t?vr.lex:vr.lexInline)(r,a);a.hooks&&(l=a.hooks.processAllTokens(l)),a.walkTokens&&this.walkTokens(l,a.walkTokens);let f=(a.hooks?a.hooks.provideParser():t?yr.parse:yr.parseInline)(l,a);return a.hooks&&(f=a.hooks.postprocess(f)),f}catch(l){return u(l)}}}onError(t,r){return i=>{if(i.message+=`
|
|
149
|
+
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+Rr(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},Xn=new s0;function Ue(e,t){return Xn.parse(e,t)}Ue.options=Ue.setOptions=function(e){return Xn.setOptions(e),Ue.defaults=Xn.defaults,Ky(Ue.defaults),Ue};Ue.getDefaults=_f;Ue.defaults=ri;Ue.use=function(...e){return Xn.use(...e),Ue.defaults=Xn.defaults,Ky(Ue.defaults),Ue};Ue.walkTokens=function(e,t){return Xn.walkTokens(e,t)};Ue.parseInline=Xn.parseInline;Ue.Parser=yr;Ue.parser=yr.parse;Ue.Renderer=$a;Ue.TextRenderer=If;Ue.Lexer=vr;Ue.lexer=vr.lex;Ue.Tokenizer=Ia;Ue.Hooks=To;Ue.parse=Ue;Ue.options;Ue.setOptions;Ue.use;Ue.walkTokens;Ue.parseInline;yr.parse;vr.lex;const UI={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" "," ":" "},a0=/&(?:amp|lt|gt|quot|nbsp|#(?:0+)?(?:39|160));/g,qI=RegExp(a0.source),Bm=(e="")=>qI.test(e)?e.replace(a0,t=>UI[t]||"'"):e,Wm=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var GI=class{constructor(e){this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const i=r.depth;return this.renderer.heading(this.parseInline(r.tokens),i)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const i=r;return i.tokens?this.parseInline(i.tokens):r.text}case"blockquote":{const i=r,s=this.parse(i.tokens);return this.renderer.blockquote(s)}case"list":{const i=r;this.renderer.elIdList.push(0);const s=i.items.map(a=>{const u=[];return a.task&&u.push(this.renderer.checkbox(a.checked??!1)),u.push(this.parse(a.tokens)),this.renderer.listItem(u)});return this.renderer.elIdList.pop(),this.renderer.list(s,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const i=r;this.renderer.elIdList.push(0);const s=i.header.map((p,m)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!0,align:r.align[m]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(s),u=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const l=i.rows.map(p=>{this.renderer.elIdList.push(0);const m=p.map((d,g)=>this.renderer.tableCell(this.parseInline(d.tokens),{header:!1,align:r.align[g]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(m)});this.renderer.elIdList.pop();const f=this.renderer.tableBody(l);return this.renderer.table([u,f])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(Bm(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(Bm(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}},ZI=GI,xn,Ze,st,Nc,Sv,VI=(Sv=class{constructor(e={}){vt(this,Ze);vt(this,xn);this.elIdList=[];const{renderer:t}=e;He(this,xn,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,i])=>{const s=r,a=i;!this[s]||s==="elementId"||s==="elIdList"||typeof a!="function"||Object.defineProperty(this,s,{value(...u){return de(this,Ze,Nc).call(this),a.apply(this,u)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return de(this,Ze,st).call(this,`h${t}`,e)}paragraph(e){return de(this,Ze,st).call(this,"p",e)}link(e,t){const r=Wm(e,X(this,xn).baseURL),i=X(this,xn).openLinksInNewTab?"_blank":null;return de(this,Ze,st).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=Wm(e,X(this,xn).baseURL);return de(this,Ze,st).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${X(this,xn).langPrefix}${t}`:null;return de(this,Ze,st).call(this,"code",e,{className:r})}code(e,t){return de(this,Ze,st).call(this,"pre",this.codespan(e,t))}blockquote(e){return de(this,Ze,st).call(this,"blockquote",e)}list(e,t,r){return de(this,Ze,st).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return de(this,Ze,st).call(this,"li",e)}checkbox(e){return de(this,Ze,st).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return de(this,Ze,st).call(this,"table",e)}tableHeader(e){return de(this,Ze,st).call(this,"thead",e)}tableBody(e){return de(this,Ze,st).call(this,"tbody",e)}tableRow(e){return de(this,Ze,st).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return de(this,Ze,st).call(this,r,e,{align:t.align})}strong(e){return de(this,Ze,st).call(this,"strong",e)}em(e){return de(this,Ze,st).call(this,"em",e)}del(e){return de(this,Ze,st).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return de(this,Ze,st).call(this,"hr")}br(){return de(this,Ze,st).call(this,"br")}},xn=new WeakMap,Ze=new WeakSet,st=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return de(this,Ze,Nc).call(this),M.createElement(e,{...r,...i},t)},Nc=function(){this.elIdList[this.elIdList.length-1]+=1},Sv),KI=VI;const YI=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}`)},XI={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},JI=new s0,QI=e=>{YI(e);const t={...XI,...e},r=t.instance??JI,i={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},s=t.value??t.children??"",a=t.isInline?r.Lexer.lexInline(s,i):r.lexer(s,i),u=new ZI({renderer:new KI({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})});return M.createElement(M.Fragment,null,t.isInline?u.parseInline(a):u.parse(a))};var e$=QI,t$=e$;const r$=({children:e,label:t,placement:r="top",className:i,isDisabled:s,container:a})=>{const[u,l]=M.useState(null),f=M.useRef(null),[p,m]=M.useState(null),[d,g]=M.useState(!1),y=typeof t=="string",{styles:x,attributes:h}=uf(u,p,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),w=M.Children.map(e,v=>M.isValidElement(v)?M.cloneElement(v,{ref:l,onMouseEnter:()=>g(!0),onMouseLeave:()=>{f.current=setTimeout(()=>g(!1),50)}}):v);return s?I.jsx(I.Fragment,{children:w}):I.jsxs(I.Fragment,{children:[w,d&&t&&Qn.createPortal(I.jsx("div",{ref:m,style:{...x.popper,zIndex:1e5},...h.popper,className:Be(y?"select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md":void 0,i),onMouseEnter:()=>{f.current&&clearTimeout(f.current),g(!0)},onMouseLeave:()=>g(!1),children:y?I.jsx(t$,{openLinksInNewTab:!0,children:t}):t}),a||document.body)]})},u0=({referenceElement:e,label:t})=>{const[r,i]=M.useState(null),{styles:s,attributes:a}=uf(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return I.jsx("div",{className:"rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",ref:i,style:{...s.popper,zIndex:1e5},...a.popper,children:t})},n$=Sc.keyframes`
|
|
150
150
|
to {
|
|
151
151
|
fill: url(#d);
|
|
152
152
|
stroke-dashoffset: 0;
|
|
153
153
|
}
|
|
154
|
-
`,
|
|
154
|
+
`,l0=Aa.svg`
|
|
155
155
|
& .e {
|
|
156
156
|
fill: url(#d);
|
|
157
157
|
}
|
|
@@ -162,7 +162,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
|
|
|
162
162
|
fill: transparent;
|
|
163
163
|
stroke-dasharray: 700;
|
|
164
164
|
stroke-dashoffset: 700;
|
|
165
|
-
animation: ${
|
|
165
|
+
animation: ${n$} 1.5s ease-in-out infinite alternate-reverse;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
& #circle {
|
|
@@ -172,35 +172,36 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
|
|
|
172
172
|
stroke-dasharray: 700;
|
|
173
173
|
stroke-dashoffset: 700;
|
|
174
174
|
}
|
|
175
|
-
`,
|
|
175
|
+
`,i$=({message:e,version:t})=>I.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:I.jsxs("div",{className:"flex flex-col text-center",children:[I.jsx("div",{className:"relative mr-4 self-center",children:I.jsx("div",{className:"flex items-center justify-center rounded",children:I.jsxs(l0,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[I.jsx("defs",{children:I.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[I.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:I.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),I.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:I.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),I.jsx("g",{id:"a"}),I.jsx("g",{id:"b",children:I.jsx("g",{id:"c",children:I.jsxs("g",{children:[I.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"}),I.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"})]})})})]})})}),I.jsxs("div",{children:[I.jsx("span",{className:"text-xs text-grey-200",children:t}),I.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var Oo={exports:{}};/**
|
|
176
176
|
* @license
|
|
177
177
|
* Lodash <https://lodash.com/>
|
|
178
178
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
179
179
|
* Released under MIT license <https://lodash.com/license>
|
|
180
180
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
181
181
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
182
|
-
*/var x$=bo.exports,Sm;function S$(){return Sm||(Sm=1,(function(e,t){(function(){var r,i="4.18.1",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="Invalid `imports` option passed into `_.template`",m="__lodash_hash_undefined__",y=500,p="__lodash_placeholder__",g=1,v=2,x=4,d=1,w=2,h=1,S=2,E=4,R=8,O=16,C=32,U=64,M=128,D=256,q=512,N=30,L="...",B=800,Z=16,k=1,Q=2,J=3,re=1/0,ce=9007199254740991,G=17976931348623157e292,te=NaN,ne=4294967295,ue=ne-1,ie=ne>>>1,he=[["ary",M],["bind",h],["bindKey",S],["curry",R],["curryRight",O],["flip",q],["partial",C],["partialRight",U],["rearg",D]],fe="[object Arguments]",ve="[object Array]",xe="[object AsyncFunction]",Ae="[object Boolean]",_e="[object Date]",ot="[object DOMException]",oe="[object Error]",ct="[object Function]",Fr="[object GeneratorFunction]",bt="[object Map]",Jr="[object Number]",Vo="[object Null]",ar="[object Object]",Xo="[object Promise]",Dr="[object Proxy]",yr="[object RegExp]",Pt="[object Set]",Qr="[object String]",en="[object Symbol]",Yo="[object Undefined]",tn="[object WeakMap]",Jo="[object WeakSet]",rn="[object ArrayBuffer]",Yn="[object DataView]",Qa="[object Float32Array]",eu="[object Float64Array]",tu="[object Int8Array]",ru="[object Int16Array]",nu="[object Int32Array]",iu="[object Uint8Array]",ou="[object Uint8ClampedArray]",su="[object Uint16Array]",au="[object Uint32Array]",lb=/\b__p \+= '';/g,cb=/\b(__p \+=) '' \+/g,fb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wf=/&(?:amp|lt|gt|quot|#39);/g,Uf=/[&<>"']/g,db=RegExp(Wf.source),pb=RegExp(Uf.source),hb=/<%-([\s\S]+?)%>/g,gb=/<%([\s\S]+?)%>/g,Bf=/<%=([\s\S]+?)%>/g,mb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vb=/^\w*$/,yb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,uu=/[\\^$.*+?()[\]{}|]/g,bb=RegExp(uu.source),lu=/^\s+/,wb=/\s/,xb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Sb=/\{\n\/\* \[wrapped with (.+)\] \*/,Eb=/,? & /,_b=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hf=/[()=,{}\[\]\/\s]/,Ob=/\\(\\)?/g,Ab=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qf=/\w*$/,Tb=/^[-+]0x[0-9a-f]+$/i,Rb=/^0b[01]+$/i,Pb=/^\[object .+?Constructor\]$/,Cb=/^0o[0-7]+$/i,kb=/^(?:0|[1-9]\d*)$/,$b=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qo=/($^)/,Ib=/['\n\r\u2028\u2029\\]/g,es="\\ud800-\\udfff",Lb="\\u0300-\\u036f",Mb="\\ufe20-\\ufe2f",Fb="\\u20d0-\\u20ff",Zf=Lb+Mb+Fb,Gf="\\u2700-\\u27bf",Kf="a-z\\xdf-\\xf6\\xf8-\\xff",Db="\\xac\\xb1\\xd7\\xf7",Nb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jb="\\u2000-\\u206f",zb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vf="A-Z\\xc0-\\xd6\\xd8-\\xde",Xf="\\ufe0e\\ufe0f",Yf=Db+Nb+jb+zb,cu="['’]",Wb="["+es+"]",Jf="["+Yf+"]",ts="["+Zf+"]",Qf="\\d+",Ub="["+Gf+"]",ed="["+Kf+"]",td="[^"+es+Yf+Qf+Gf+Kf+Vf+"]",fu="\\ud83c[\\udffb-\\udfff]",Bb="(?:"+ts+"|"+fu+")",rd="[^"+es+"]",du="(?:\\ud83c[\\udde6-\\uddff]){2}",pu="[\\ud800-\\udbff][\\udc00-\\udfff]",Jn="["+Vf+"]",nd="\\u200d",id="(?:"+ed+"|"+td+")",Hb="(?:"+Jn+"|"+td+")",od="(?:"+cu+"(?:d|ll|m|re|s|t|ve))?",sd="(?:"+cu+"(?:D|LL|M|RE|S|T|VE))?",ad=Bb+"?",ud="["+Xf+"]?",qb="(?:"+nd+"(?:"+[rd,du,pu].join("|")+")"+ud+ad+")*",Zb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ld=ud+ad+qb,Kb="(?:"+[Ub,du,pu].join("|")+")"+ld,Vb="(?:"+[rd+ts+"?",ts,du,pu,Wb].join("|")+")",Xb=RegExp(cu,"g"),Yb=RegExp(ts,"g"),hu=RegExp(fu+"(?="+fu+")|"+Vb+ld,"g"),Jb=RegExp([Jn+"?"+ed+"+"+od+"(?="+[Jf,Jn,"$"].join("|")+")",Hb+"+"+sd+"(?="+[Jf,Jn+id,"$"].join("|")+")",Jn+"?"+id+"+"+od,Jn+"+"+sd,Gb,Zb,Qf,Kb].join("|"),"g"),Qb=RegExp("["+nd+es+Zf+Xf+"]"),ew=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tw=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rw=-1,qe={};qe[Qa]=qe[eu]=qe[tu]=qe[ru]=qe[nu]=qe[iu]=qe[ou]=qe[su]=qe[au]=!0,qe[fe]=qe[ve]=qe[rn]=qe[Ae]=qe[Yn]=qe[_e]=qe[oe]=qe[ct]=qe[bt]=qe[Jr]=qe[ar]=qe[yr]=qe[Pt]=qe[Qr]=qe[tn]=!1;var Ue={};Ue[fe]=Ue[ve]=Ue[rn]=Ue[Yn]=Ue[Ae]=Ue[_e]=Ue[Qa]=Ue[eu]=Ue[tu]=Ue[ru]=Ue[nu]=Ue[bt]=Ue[Jr]=Ue[ar]=Ue[yr]=Ue[Pt]=Ue[Qr]=Ue[en]=Ue[iu]=Ue[ou]=Ue[su]=Ue[au]=!0,Ue[oe]=Ue[ct]=Ue[tn]=!1;var nw={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},iw={"&":"&","<":"<",">":">",'"':""","'":"'"},ow={"&":"&","<":"<",">":">",""":'"',"'":"'"},sw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},aw=parseFloat,uw=parseInt,cd=typeof Ws=="object"&&Ws&&Ws.Object===Object&&Ws,lw=typeof self=="object"&&self&&self.Object===Object&&self,pt=cd||lw||Function("return this")(),gu=t&&!t.nodeType&&t,An=gu&&!0&&e&&!e.nodeType&&e,fd=An&&An.exports===gu,mu=fd&&cd.process,Xt=(function(){try{var j=An&&An.require&&An.require("util").types;return j||mu&&mu.binding&&mu.binding("util")}catch{}})(),dd=Xt&&Xt.isArrayBuffer,pd=Xt&&Xt.isDate,hd=Xt&&Xt.isMap,gd=Xt&&Xt.isRegExp,md=Xt&&Xt.isSet,vd=Xt&&Xt.isTypedArray;function Dt(j,K,H){switch(H.length){case 0:return j.call(K);case 1:return j.call(K,H[0]);case 2:return j.call(K,H[0],H[1]);case 3:return j.call(K,H[0],H[1],H[2])}return j.apply(K,H)}function cw(j,K,H,ae){for(var be=-1,$e=j==null?0:j.length;++be<$e;){var ut=j[be];K(ae,ut,H(ut),j)}return ae}function Nt(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae&&K(j[H],H,j)!==!1;);return j}function fw(j,K){for(var H=j==null?0:j.length;H--&&K(j[H],H,j)!==!1;);return j}function yd(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae;)if(!K(j[H],H,j))return!1;return!0}function nn(j,K){for(var H=-1,ae=j==null?0:j.length,be=0,$e=[];++H<ae;){var ut=j[H];K(ut,H,j)&&($e[be++]=ut)}return $e}function rs(j,K){var H=j==null?0:j.length;return!!H&&Qn(j,K,0)>-1}function vu(j,K,H){for(var ae=-1,be=j==null?0:j.length;++ae<be;)if(H(K,j[ae]))return!0;return!1}function Ze(j,K){for(var H=-1,ae=j==null?0:j.length,be=Array(ae);++H<ae;)be[H]=K(j[H],H,j);return be}function on(j,K){for(var H=-1,ae=K.length,be=j.length;++H<ae;)j[be+H]=K[H];return j}function yu(j,K,H,ae){var be=-1,$e=j==null?0:j.length;for(ae&&$e&&(H=j[++be]);++be<$e;)H=K(H,j[be],be,j);return H}function dw(j,K,H,ae){var be=j==null?0:j.length;for(ae&&be&&(H=j[--be]);be--;)H=K(H,j[be],be,j);return H}function bu(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae;)if(K(j[H],H,j))return!0;return!1}var pw=wu("length");function hw(j){return j.split("")}function gw(j){return j.match(_b)||[]}function bd(j,K,H){var ae;return H(j,function(be,$e,ut){if(K(be,$e,ut))return ae=$e,!1}),ae}function ns(j,K,H,ae){for(var be=j.length,$e=H+(ae?1:-1);ae?$e--:++$e<be;)if(K(j[$e],$e,j))return $e;return-1}function Qn(j,K,H){return K===K?Tw(j,K,H):ns(j,wd,H)}function mw(j,K,H,ae){for(var be=H-1,$e=j.length;++be<$e;)if(ae(j[be],K))return be;return-1}function wd(j){return j!==j}function xd(j,K){var H=j==null?0:j.length;return H?Su(j,K)/H:te}function wu(j){return function(K){return K==null?r:K[j]}}function xu(j){return function(K){return j==null?r:j[K]}}function Sd(j,K,H,ae,be){return be(j,function($e,ut,We){H=ae?(ae=!1,$e):K(H,$e,ut,We)}),H}function vw(j,K){var H=j.length;for(j.sort(K);H--;)j[H]=j[H].value;return j}function Su(j,K){for(var H,ae=-1,be=j.length;++ae<be;){var $e=K(j[ae]);$e!==r&&(H=H===r?$e:H+$e)}return H}function Eu(j,K){for(var H=-1,ae=Array(j);++H<j;)ae[H]=K(H);return ae}function yw(j,K){return Ze(K,function(H){return[H,j[H]]})}function Ed(j){return j&&j.slice(0,Td(j)+1).replace(lu,"")}function jt(j){return function(K){return j(K)}}function _u(j,K){return Ze(K,function(H){return j[H]})}function ki(j,K){return j.has(K)}function _d(j,K){for(var H=-1,ae=j.length;++H<ae&&Qn(K,j[H],0)>-1;);return H}function Od(j,K){for(var H=j.length;H--&&Qn(K,j[H],0)>-1;);return H}function bw(j,K){for(var H=j.length,ae=0;H--;)j[H]===K&&++ae;return ae}var ww=xu(nw),xw=xu(iw);function Sw(j){return"\\"+sw[j]}function Ew(j,K){return j==null?r:j[K]}function ei(j){return Qb.test(j)}function _w(j){return ew.test(j)}function Ow(j){for(var K,H=[];!(K=j.next()).done;)H.push(K.value);return H}function Ou(j){var K=-1,H=Array(j.size);return j.forEach(function(ae,be){H[++K]=[be,ae]}),H}function Ad(j,K){return function(H){return j(K(H))}}function sn(j,K){for(var H=-1,ae=j.length,be=0,$e=[];++H<ae;){var ut=j[H];(ut===K||ut===p)&&(j[H]=p,$e[be++]=H)}return $e}function is(j){var K=-1,H=Array(j.size);return j.forEach(function(ae){H[++K]=ae}),H}function Aw(j){var K=-1,H=Array(j.size);return j.forEach(function(ae){H[++K]=[ae,ae]}),H}function Tw(j,K,H){for(var ae=H-1,be=j.length;++ae<be;)if(j[ae]===K)return ae;return-1}function Rw(j,K,H){for(var ae=H+1;ae--;)if(j[ae]===K)return ae;return ae}function ti(j){return ei(j)?Cw(j):pw(j)}function ur(j){return ei(j)?kw(j):hw(j)}function Td(j){for(var K=j.length;K--&&wb.test(j.charAt(K)););return K}var Pw=xu(ow);function Cw(j){for(var K=hu.lastIndex=0;hu.test(j);)++K;return K}function kw(j){return j.match(hu)||[]}function $w(j){return j.match(Jb)||[]}var Iw=(function j(K){K=K==null?pt:ri.defaults(pt.Object(),K,ri.pick(pt,tw));var H=K.Array,ae=K.Date,be=K.Error,$e=K.Function,ut=K.Math,We=K.Object,Au=K.RegExp,Lw=K.String,Yt=K.TypeError,os=H.prototype,Mw=$e.prototype,ni=We.prototype,ss=K["__core-js_shared__"],as=Mw.toString,Le=ni.hasOwnProperty,Fw=0,Rd=(function(){var n=/[^.]+$/.exec(ss&&ss.keys&&ss.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),us=ni.toString,Dw=as.call(We),Nw=pt._,jw=Au("^"+as.call(Le).replace(uu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ls=fd?K.Buffer:r,an=K.Symbol,cs=K.Uint8Array,Pd=ls?ls.allocUnsafe:r,fs=Ad(We.getPrototypeOf,We),Cd=We.create,kd=ni.propertyIsEnumerable,ds=os.splice,$d=an?an.isConcatSpreadable:r,$i=an?an.iterator:r,Tn=an?an.toStringTag:r,ps=(function(){try{var n=$n(We,"defineProperty");return n({},"",{}),n}catch{}})(),zw=K.clearTimeout!==pt.clearTimeout&&K.clearTimeout,Ww=ae&&ae.now!==pt.Date.now&&ae.now,Uw=K.setTimeout!==pt.setTimeout&&K.setTimeout,hs=ut.ceil,gs=ut.floor,Tu=We.getOwnPropertySymbols,Bw=ls?ls.isBuffer:r,Id=K.isFinite,Hw=os.join,qw=Ad(We.keys,We),lt=ut.max,wt=ut.min,Zw=ae.now,Gw=K.parseInt,Ld=ut.random,Kw=os.reverse,Ru=$n(K,"DataView"),Ii=$n(K,"Map"),Pu=$n(K,"Promise"),ii=$n(K,"Set"),Li=$n(K,"WeakMap"),Mi=$n(We,"create"),ms=Li&&new Li,oi={},Vw=In(Ru),Xw=In(Ii),Yw=In(Pu),Jw=In(ii),Qw=In(Li),vs=an?an.prototype:r,Fi=vs?vs.valueOf:r,Md=vs?vs.toString:r;function A(n){if(et(n)&&!Se(n)&&!(n instanceof Pe)){if(n instanceof Jt)return n;if(Le.call(n,"__wrapped__"))return Fp(n)}return new Jt(n)}var si=(function(){function n(){}return function(o){if(!Ve(o))return{};if(Cd)return Cd(o);n.prototype=o;var l=new n;return n.prototype=r,l}})();function ys(){}function Jt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:hb,evaluate:gb,interpolate:Bf,variable:"",imports:{_:A}},A.prototype=ys.prototype,A.prototype.constructor=A,Jt.prototype=si(ys.prototype),Jt.prototype.constructor=Jt;function Pe(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function e1(){var n=new Pe(this.__wrapped__);return n.__actions__=Ct(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ct(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ct(this.__views__),n}function t1(){if(this.__filtered__){var n=new Pe(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function r1(){var n=this.__wrapped__.value(),o=this.__dir__,l=Se(n),b=o<0,_=l?n.length:0,T=hx(0,_,this.__views__),P=T.start,I=T.end,z=I-P,V=b?I:P-1,X=this.__iteratees__,ee=X.length,se=0,le=wt(z,this.__takeCount__);if(!l||!b&&_==z&&le==z)return op(n,this.__actions__);var me=[];e:for(;z--&&se<le;){V+=o;for(var Oe=-1,pe=n[V];++Oe<ee;){var Re=X[Oe],Ce=Re.iteratee,Ut=Re.type,Tt=Ce(pe);if(Ut==Q)pe=Tt;else if(!Tt){if(Ut==k)continue e;break e}}me[se++]=pe}return me}Pe.prototype=si(ys.prototype),Pe.prototype.constructor=Pe;function Rn(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function n1(){this.__data__=Mi?Mi(null):{},this.size=0}function i1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function o1(n){var o=this.__data__;if(Mi){var l=o[n];return l===m?r:l}return Le.call(o,n)?o[n]:r}function s1(n){var o=this.__data__;return Mi?o[n]!==r:Le.call(o,n)}function a1(n,o){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=Mi&&o===r?m:o,this}Rn.prototype.clear=n1,Rn.prototype.delete=i1,Rn.prototype.get=o1,Rn.prototype.has=s1,Rn.prototype.set=a1;function Nr(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function u1(){this.__data__=[],this.size=0}function l1(n){var o=this.__data__,l=bs(o,n);if(l<0)return!1;var b=o.length-1;return l==b?o.pop():ds.call(o,l,1),--this.size,!0}function c1(n){var o=this.__data__,l=bs(o,n);return l<0?r:o[l][1]}function f1(n){return bs(this.__data__,n)>-1}function d1(n,o){var l=this.__data__,b=bs(l,n);return b<0?(++this.size,l.push([n,o])):l[b][1]=o,this}Nr.prototype.clear=u1,Nr.prototype.delete=l1,Nr.prototype.get=c1,Nr.prototype.has=f1,Nr.prototype.set=d1;function jr(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function p1(){this.size=0,this.__data__={hash:new Rn,map:new(Ii||Nr),string:new Rn}}function h1(n){var o=ks(this,n).delete(n);return this.size-=o?1:0,o}function g1(n){return ks(this,n).get(n)}function m1(n){return ks(this,n).has(n)}function v1(n,o){var l=ks(this,n),b=l.size;return l.set(n,o),this.size+=l.size==b?0:1,this}jr.prototype.clear=p1,jr.prototype.delete=h1,jr.prototype.get=g1,jr.prototype.has=m1,jr.prototype.set=v1;function Pn(n){var o=-1,l=n==null?0:n.length;for(this.__data__=new jr;++o<l;)this.add(n[o])}function y1(n){return this.__data__.set(n,m),this}function b1(n){return this.__data__.has(n)}Pn.prototype.add=Pn.prototype.push=y1,Pn.prototype.has=b1;function lr(n){var o=this.__data__=new Nr(n);this.size=o.size}function w1(){this.__data__=new Nr,this.size=0}function x1(n){var o=this.__data__,l=o.delete(n);return this.size=o.size,l}function S1(n){return this.__data__.get(n)}function E1(n){return this.__data__.has(n)}function _1(n,o){var l=this.__data__;if(l instanceof Nr){var b=l.__data__;if(!Ii||b.length<s-1)return b.push([n,o]),this.size=++l.size,this;l=this.__data__=new jr(b)}return l.set(n,o),this.size=l.size,this}lr.prototype.clear=w1,lr.prototype.delete=x1,lr.prototype.get=S1,lr.prototype.has=E1,lr.prototype.set=_1;function Fd(n,o){var l=Se(n),b=!l&&Ln(n),_=!l&&!b&&dn(n),T=!l&&!b&&!_&&ci(n),P=l||b||_||T,I=P?Eu(n.length,Lw):[],z=I.length;for(var V in n)(o||Le.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Ur(V,z)))&&I.push(V);return I}function Dd(n){var o=n.length;return o?n[zu(0,o-1)]:r}function O1(n,o){return $s(Ct(n),Cn(o,0,n.length))}function A1(n){return $s(Ct(n))}function Cu(n,o,l){(l!==r&&!fr(n[o],l)||l===r&&!(o in n))&&br(n,o,l)}function Di(n,o,l){var b=n[o];(!(Le.call(n,o)&&fr(b,l))||l===r&&!(o in n))&&br(n,o,l)}function bs(n,o){for(var l=n.length;l--;)if(fr(n[l][0],o))return l;return-1}function T1(n,o,l,b){return un(n,function(_,T,P){o(b,_,l(_),P)}),b}function Nd(n,o){return n&&xr(o,ft(o),n)}function R1(n,o){return n&&xr(o,$t(o),n)}function br(n,o,l){o=="__proto__"&&ps?ps(n,o,{configurable:!0,enumerable:!0,value:l,writable:!0}):n[o]=l}function ku(n,o){for(var l=-1,b=o.length,_=H(b),T=n==null;++l<b;)_[l]=T?r:dl(n,o[l]);return _}function Cn(n,o,l){return n===n&&(l!==r&&(n=n<=l?n:l),o!==r&&(n=n>=o?n:o)),n}function Qt(n,o,l,b,_,T){var P,I=o&g,z=o&v,V=o&x;if(l&&(P=_?l(n,b,_,T):l(n)),P!==r)return P;if(!Ve(n))return n;var X=Se(n);if(X){if(P=mx(n),!I)return Ct(n,P)}else{var ee=xt(n),se=ee==ct||ee==Fr;if(dn(n))return up(n,I);if(ee==ar||ee==fe||se&&!_){if(P=z||se?{}:Tp(n),!I)return z?ox(n,R1(P,n)):ix(n,Nd(P,n))}else{if(!Ue[ee])return _?n:{};P=vx(n,ee,I)}}T||(T=new lr);var le=T.get(n);if(le)return le;T.set(n,P),rh(n)?n.forEach(function(pe){P.add(Qt(pe,o,l,pe,n,T))}):eh(n)&&n.forEach(function(pe,Re){P.set(Re,Qt(pe,o,l,Re,n,T))});var me=V?z?Yu:Xu:z?$t:ft,Oe=X?r:me(n);return Nt(Oe||n,function(pe,Re){Oe&&(Re=pe,pe=n[Re]),Di(P,Re,Qt(pe,o,l,Re,n,T))}),P}function P1(n){var o=ft(n);return function(l){return jd(l,n,o)}}function jd(n,o,l){var b=l.length;if(n==null)return!b;for(n=We(n);b--;){var _=l[b],T=o[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function zd(n,o,l){if(typeof n!="function")throw new Yt(u);return Hi(function(){n.apply(r,l)},o)}function Ni(n,o,l,b){var _=-1,T=rs,P=!0,I=n.length,z=[],V=o.length;if(!I)return z;l&&(o=Ze(o,jt(l))),b?(T=vu,P=!1):o.length>=s&&(T=ki,P=!1,o=new Pn(o));e:for(;++_<I;){var X=n[_],ee=l==null?X:l(X);if(X=b||X!==0?X:0,P&&ee===ee){for(var se=V;se--;)if(o[se]===ee)continue e;z.push(X)}else T(o,ee,b)||z.push(X)}return z}var un=pp(wr),Wd=pp(Iu,!0);function C1(n,o){var l=!0;return un(n,function(b,_,T){return l=!!o(b,_,T),l}),l}function ws(n,o,l){for(var b=-1,_=n.length;++b<_;){var T=n[b],P=o(T);if(P!=null&&(I===r?P===P&&!Wt(P):l(P,I)))var I=P,z=T}return z}function k1(n,o,l,b){var _=n.length;for(l=Ee(l),l<0&&(l=-l>_?0:_+l),b=b===r||b>_?_:Ee(b),b<0&&(b+=_),b=l>b?0:ih(b);l<b;)n[l++]=o;return n}function Ud(n,o){var l=[];return un(n,function(b,_,T){o(b,_,T)&&l.push(b)}),l}function ht(n,o,l,b,_){var T=-1,P=n.length;for(l||(l=bx),_||(_=[]);++T<P;){var I=n[T];o>0&&l(I)?o>1?ht(I,o-1,l,b,_):on(_,I):b||(_[_.length]=I)}return _}var $u=hp(),Bd=hp(!0);function wr(n,o){return n&&$u(n,o,ft)}function Iu(n,o){return n&&Bd(n,o,ft)}function xs(n,o){return nn(o,function(l){return Br(n[l])})}function kn(n,o){o=cn(o,n);for(var l=0,b=o.length;n!=null&&l<b;)n=n[cr(o[l++])];return l&&l==b?n:r}function Hd(n,o,l){var b=o(n);return Se(n)?b:on(b,l(n))}function Ot(n){return n==null?n===r?Yo:Vo:Tn&&Tn in We(n)?px(n):Ax(n)}function Lu(n,o){return n>o}function $1(n,o){return n!=null&&Le.call(n,o)}function I1(n,o){return n!=null&&o in We(n)}function L1(n,o,l){return n>=wt(o,l)&&n<lt(o,l)}function Mu(n,o,l){for(var b=l?vu:rs,_=n[0].length,T=n.length,P=T,I=H(T),z=1/0,V=[];P--;){var X=n[P];P&&o&&(X=Ze(X,jt(o))),z=wt(X.length,z),I[P]=!l&&(o||_>=120&&X.length>=120)?new Pn(P&&X):r}X=n[0];var ee=-1,se=I[0];e:for(;++ee<_&&V.length<z;){var le=X[ee],me=o?o(le):le;if(le=l||le!==0?le:0,!(se?ki(se,me):b(V,me,l))){for(P=T;--P;){var Oe=I[P];if(!(Oe?ki(Oe,me):b(n[P],me,l)))continue e}se&&se.push(me),V.push(le)}}return V}function M1(n,o,l,b){return wr(n,function(_,T,P){o(b,l(_),T,P)}),b}function ji(n,o,l){o=cn(o,n),n=kp(n,o);var b=n==null?n:n[cr(tr(o))];return b==null?r:Dt(b,n,l)}function qd(n){return et(n)&&Ot(n)==fe}function F1(n){return et(n)&&Ot(n)==rn}function D1(n){return et(n)&&Ot(n)==_e}function zi(n,o,l,b,_){return n===o?!0:n==null||o==null||!et(n)&&!et(o)?n!==n&&o!==o:N1(n,o,l,b,zi,_)}function N1(n,o,l,b,_,T){var P=Se(n),I=Se(o),z=P?ve:xt(n),V=I?ve:xt(o);z=z==fe?ar:z,V=V==fe?ar:V;var X=z==ar,ee=V==ar,se=z==V;if(se&&dn(n)){if(!dn(o))return!1;P=!0,X=!1}if(se&&!X)return T||(T=new lr),P||ci(n)?_p(n,o,l,b,_,T):fx(n,o,z,l,b,_,T);if(!(l&d)){var le=X&&Le.call(n,"__wrapped__"),me=ee&&Le.call(o,"__wrapped__");if(le||me){var Oe=le?n.value():n,pe=me?o.value():o;return T||(T=new lr),_(Oe,pe,l,b,T)}}return se?(T||(T=new lr),dx(n,o,l,b,_,T)):!1}function j1(n){return et(n)&&xt(n)==bt}function Fu(n,o,l,b){var _=l.length,T=_,P=!b;if(n==null)return!T;for(n=We(n);_--;){var I=l[_];if(P&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++_<T;){I=l[_];var z=I[0],V=n[z],X=I[1];if(P&&I[2]){if(V===r&&!(z in n))return!1}else{var ee=new lr;if(b)var se=b(V,X,z,n,o,ee);if(!(se===r?zi(X,V,d|w,b,ee):se))return!1}}return!0}function Zd(n){if(!Ve(n)||xx(n))return!1;var o=Br(n)?jw:Pb;return o.test(In(n))}function z1(n){return et(n)&&Ot(n)==yr}function W1(n){return et(n)&&xt(n)==Pt}function U1(n){return et(n)&&Ns(n.length)&&!!qe[Ot(n)]}function Gd(n){return typeof n=="function"?n:n==null?It:typeof n=="object"?Se(n)?Xd(n[0],n[1]):Vd(n):mh(n)}function Du(n){if(!Bi(n))return qw(n);var o=[];for(var l in We(n))Le.call(n,l)&&l!="constructor"&&o.push(l);return o}function B1(n){if(!Ve(n))return Ox(n);var o=Bi(n),l=[];for(var b in n)b=="constructor"&&(o||!Le.call(n,b))||l.push(b);return l}function Nu(n,o){return n<o}function Kd(n,o){var l=-1,b=kt(n)?H(n.length):[];return un(n,function(_,T,P){b[++l]=o(_,T,P)}),b}function Vd(n){var o=Qu(n);return o.length==1&&o[0][2]?Pp(o[0][0],o[0][1]):function(l){return l===n||Fu(l,n,o)}}function Xd(n,o){return tl(n)&&Rp(o)?Pp(cr(n),o):function(l){var b=dl(l,n);return b===r&&b===o?pl(l,n):zi(o,b,d|w)}}function Ss(n,o,l,b,_){n!==o&&$u(o,function(T,P){if(_||(_=new lr),Ve(T))H1(n,o,P,l,Ss,b,_);else{var I=b?b(nl(n,P),T,P+"",n,o,_):r;I===r&&(I=T),Cu(n,P,I)}},$t)}function H1(n,o,l,b,_,T,P){var I=nl(n,l),z=nl(o,l),V=P.get(z);if(V){Cu(n,l,V);return}var X=T?T(I,z,l+"",n,o,P):r,ee=X===r;if(ee){var se=Se(z),le=!se&&dn(z),me=!se&&!le&&ci(z);X=z,se||le||me?Se(I)?X=I:rt(I)?X=Ct(I):le?(ee=!1,X=up(z,!0)):me?(ee=!1,X=lp(z,!0)):X=[]:qi(z)||Ln(z)?(X=I,Ln(I)?X=oh(I):(!Ve(I)||Br(I))&&(X=Tp(z))):ee=!1}ee&&(P.set(z,X),_(X,z,b,T,P),P.delete(z)),Cu(n,l,X)}function Yd(n,o){var l=n.length;if(l)return o+=o<0?l:0,Ur(o,l)?n[o]:r}function Jd(n,o,l){o.length?o=Ze(o,function(T){return Se(T)?function(P){return kn(P,T.length===1?T[0]:T)}:T}):o=[It];var b=-1;o=Ze(o,jt(ge()));var _=Kd(n,function(T,P,I){var z=Ze(o,function(V){return V(T)});return{criteria:z,index:++b,value:T}});return vw(_,function(T,P){return nx(T,P,l)})}function q1(n,o){return Qd(n,o,function(l,b){return pl(n,b)})}function Qd(n,o,l){for(var b=-1,_=o.length,T={};++b<_;){var P=o[b],I=kn(n,P);l(I,P)&&Wi(T,cn(P,n),I)}return T}function Z1(n){return function(o){return kn(o,n)}}function ju(n,o,l,b){var _=b?mw:Qn,T=-1,P=o.length,I=n;for(n===o&&(o=Ct(o)),l&&(I=Ze(n,jt(l)));++T<P;)for(var z=0,V=o[T],X=l?l(V):V;(z=_(I,X,z,b))>-1;)I!==n&&ds.call(I,z,1),ds.call(n,z,1);return n}function ep(n,o){for(var l=n?o.length:0,b=l-1;l--;){var _=o[l];if(l==b||_!==T){var T=_;Ur(_)?ds.call(n,_,1):Bu(n,_)}}return n}function zu(n,o){return n+gs(Ld()*(o-n+1))}function G1(n,o,l,b){for(var _=-1,T=lt(hs((o-n)/(l||1)),0),P=H(T);T--;)P[b?T:++_]=n,n+=l;return P}function Wu(n,o){var l="";if(!n||o<1||o>ce)return l;do o%2&&(l+=n),o=gs(o/2),o&&(n+=n);while(o);return l}function Te(n,o){return il(Cp(n,o,It),n+"")}function K1(n){return Dd(fi(n))}function V1(n,o){var l=fi(n);return $s(l,Cn(o,0,l.length))}function Wi(n,o,l,b){if(!Ve(n))return n;o=cn(o,n);for(var _=-1,T=o.length,P=T-1,I=n;I!=null&&++_<T;){var z=cr(o[_]),V=l;if(z==="__proto__"||z==="constructor"||z==="prototype")return n;if(_!=P){var X=I[z];V=b?b(X,z,I):r,V===r&&(V=Ve(X)?X:Ur(o[_+1])?[]:{})}Di(I,z,V),I=I[z]}return n}var tp=ms?function(n,o){return ms.set(n,o),n}:It,X1=ps?function(n,o){return ps(n,"toString",{configurable:!0,enumerable:!1,value:gl(o),writable:!0})}:It;function Y1(n){return $s(fi(n))}function er(n,o,l){var b=-1,_=n.length;o<0&&(o=-o>_?0:_+o),l=l>_?_:l,l<0&&(l+=_),_=o>l?0:l-o>>>0,o>>>=0;for(var T=H(_);++b<_;)T[b]=n[b+o];return T}function J1(n,o){var l;return un(n,function(b,_,T){return l=o(b,_,T),!l}),!!l}function Es(n,o,l){var b=0,_=n==null?b:n.length;if(typeof o=="number"&&o===o&&_<=ie){for(;b<_;){var T=b+_>>>1,P=n[T];P!==null&&!Wt(P)&&(l?P<=o:P<o)?b=T+1:_=T}return _}return Uu(n,o,It,l)}function Uu(n,o,l,b){var _=0,T=n==null?0:n.length;if(T===0)return 0;o=l(o);for(var P=o!==o,I=o===null,z=Wt(o),V=o===r;_<T;){var X=gs((_+T)/2),ee=l(n[X]),se=ee!==r,le=ee===null,me=ee===ee,Oe=Wt(ee);if(P)var pe=b||me;else V?pe=me&&(b||se):I?pe=me&&se&&(b||!le):z?pe=me&&se&&!le&&(b||!Oe):le||Oe?pe=!1:pe=b?ee<=o:ee<o;pe?_=X+1:T=X}return wt(T,ue)}function rp(n,o){for(var l=-1,b=n.length,_=0,T=[];++l<b;){var P=n[l],I=o?o(P):P;if(!l||!fr(I,z)){var z=I;T[_++]=P===0?0:P}}return T}function np(n){return typeof n=="number"?n:Wt(n)?te:+n}function zt(n){if(typeof n=="string")return n;if(Se(n))return Ze(n,zt)+"";if(Wt(n))return Md?Md.call(n):"";var o=n+"";return o=="0"&&1/n==-re?"-0":o}function ln(n,o,l){var b=-1,_=rs,T=n.length,P=!0,I=[],z=I;if(l)P=!1,_=vu;else if(T>=s){var V=o?null:lx(n);if(V)return is(V);P=!1,_=ki,z=new Pn}else z=o?[]:I;e:for(;++b<T;){var X=n[b],ee=o?o(X):X;if(X=l||X!==0?X:0,P&&ee===ee){for(var se=z.length;se--;)if(z[se]===ee)continue e;o&&z.push(ee),I.push(X)}else _(z,ee,l)||(z!==I&&z.push(ee),I.push(X))}return I}function Bu(n,o){o=cn(o,n);var l=-1,b=o.length;if(!b)return!0;for(;++l<b;){var _=cr(o[l]);if(_==="__proto__"&&!Le.call(n,"__proto__")||(_==="constructor"||_==="prototype")&&l<b-1)return!1}var T=kp(n,o);return T==null||delete T[cr(tr(o))]}function ip(n,o,l,b){return Wi(n,o,l(kn(n,o)),b)}function _s(n,o,l,b){for(var _=n.length,T=b?_:-1;(b?T--:++T<_)&&o(n[T],T,n););return l?er(n,b?0:T,b?T+1:_):er(n,b?T+1:0,b?_:T)}function op(n,o){var l=n;return l instanceof Pe&&(l=l.value()),yu(o,function(b,_){return _.func.apply(_.thisArg,on([b],_.args))},l)}function Hu(n,o,l){var b=n.length;if(b<2)return b?ln(n[0]):[];for(var _=-1,T=H(b);++_<b;)for(var P=n[_],I=-1;++I<b;)I!=_&&(T[_]=Ni(T[_]||P,n[I],o,l));return ln(ht(T,1),o,l)}function sp(n,o,l){for(var b=-1,_=n.length,T=o.length,P={};++b<_;){var I=b<T?o[b]:r;l(P,n[b],I)}return P}function qu(n){return rt(n)?n:[]}function Zu(n){return typeof n=="function"?n:It}function cn(n,o){return Se(n)?n:tl(n,o)?[n]:Mp(Me(n))}var Q1=Te;function fn(n,o,l){var b=n.length;return l=l===r?b:l,!o&&l>=b?n:er(n,o,l)}var ap=zw||function(n){return pt.clearTimeout(n)};function up(n,o){if(o)return n.slice();var l=n.length,b=Pd?Pd(l):new n.constructor(l);return n.copy(b),b}function Gu(n){var o=new n.constructor(n.byteLength);return new cs(o).set(new cs(n)),o}function ex(n,o){var l=o?Gu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.byteLength)}function tx(n){var o=new n.constructor(n.source,qf.exec(n));return o.lastIndex=n.lastIndex,o}function rx(n){return Fi?We(Fi.call(n)):{}}function lp(n,o){var l=o?Gu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.length)}function cp(n,o){if(n!==o){var l=n!==r,b=n===null,_=n===n,T=Wt(n),P=o!==r,I=o===null,z=o===o,V=Wt(o);if(!I&&!V&&!T&&n>o||T&&P&&z&&!I&&!V||b&&P&&z||!l&&z||!_)return 1;if(!b&&!T&&!V&&n<o||V&&l&&_&&!b&&!T||I&&l&&_||!P&&_||!z)return-1}return 0}function nx(n,o,l){for(var b=-1,_=n.criteria,T=o.criteria,P=_.length,I=l.length;++b<P;){var z=cp(_[b],T[b]);if(z){if(b>=I)return z;var V=l[b];return z*(V=="desc"?-1:1)}}return n.index-o.index}function fp(n,o,l,b){for(var _=-1,T=n.length,P=l.length,I=-1,z=o.length,V=lt(T-P,0),X=H(z+V),ee=!b;++I<z;)X[I]=o[I];for(;++_<P;)(ee||_<T)&&(X[l[_]]=n[_]);for(;V--;)X[I++]=n[_++];return X}function dp(n,o,l,b){for(var _=-1,T=n.length,P=-1,I=l.length,z=-1,V=o.length,X=lt(T-I,0),ee=H(X+V),se=!b;++_<X;)ee[_]=n[_];for(var le=_;++z<V;)ee[le+z]=o[z];for(;++P<I;)(se||_<T)&&(ee[le+l[P]]=n[_++]);return ee}function Ct(n,o){var l=-1,b=n.length;for(o||(o=H(b));++l<b;)o[l]=n[l];return o}function xr(n,o,l,b){var _=!l;l||(l={});for(var T=-1,P=o.length;++T<P;){var I=o[T],z=b?b(l[I],n[I],I,l,n):r;z===r&&(z=n[I]),_?br(l,I,z):Di(l,I,z)}return l}function ix(n,o){return xr(n,el(n),o)}function ox(n,o){return xr(n,Op(n),o)}function Os(n,o){return function(l,b){var _=Se(l)?cw:T1,T=o?o():{};return _(l,n,ge(b,2),T)}}function ai(n){return Te(function(o,l){var b=-1,_=l.length,T=_>1?l[_-1]:r,P=_>2?l[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&At(l[0],l[1],P)&&(T=_<3?r:T,_=1),o=We(o);++b<_;){var I=l[b];I&&n(o,I,b,T)}return o})}function pp(n,o){return function(l,b){if(l==null)return l;if(!kt(l))return n(l,b);for(var _=l.length,T=o?_:-1,P=We(l);(o?T--:++T<_)&&b(P[T],T,P)!==!1;);return l}}function hp(n){return function(o,l,b){for(var _=-1,T=We(o),P=b(o),I=P.length;I--;){var z=P[n?I:++_];if(l(T[z],z,T)===!1)break}return o}}function sx(n,o,l){var b=o&h,_=Ui(n);function T(){var P=this&&this!==pt&&this instanceof T?_:n;return P.apply(b?l:this,arguments)}return T}function gp(n){return function(o){o=Me(o);var l=ei(o)?ur(o):r,b=l?l[0]:o.charAt(0),_=l?fn(l,1).join(""):o.slice(1);return b[n]()+_}}function ui(n){return function(o){return yu(hh(ph(o).replace(Xb,"")),n,"")}}function Ui(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var l=si(n.prototype),b=n.apply(l,o);return Ve(b)?b:l}}function ax(n,o,l){var b=Ui(n);function _(){for(var T=arguments.length,P=H(T),I=T,z=li(_);I--;)P[I]=arguments[I];var V=T<3&&P[0]!==z&&P[T-1]!==z?[]:sn(P,z);if(T-=V.length,T<l)return wp(n,o,As,_.placeholder,r,P,V,r,r,l-T);var X=this&&this!==pt&&this instanceof _?b:n;return Dt(X,this,P)}return _}function mp(n){return function(o,l,b){var _=We(o);if(!kt(o)){var T=ge(l,3);o=ft(o),l=function(I){return T(_[I],I,_)}}var P=n(o,l,b);return P>-1?_[T?o[P]:P]:r}}function vp(n){return Wr(function(o){var l=o.length,b=l,_=Jt.prototype.thru;for(n&&o.reverse();b--;){var T=o[b];if(typeof T!="function")throw new Yt(u);if(_&&!P&&Cs(T)=="wrapper")var P=new Jt([],!0)}for(b=P?b:l;++b<l;){T=o[b];var I=Cs(T),z=I=="wrapper"?Ju(T):r;z&&rl(z[0])&&z[1]==(M|R|C|D)&&!z[4].length&&z[9]==1?P=P[Cs(z[0])].apply(P,z[3]):P=T.length==1&&rl(T)?P[I]():P.thru(T)}return function(){var V=arguments,X=V[0];if(P&&V.length==1&&Se(X))return P.plant(X).value();for(var ee=0,se=l?o[ee].apply(this,V):X;++ee<l;)se=o[ee].call(this,se);return se}})}function As(n,o,l,b,_,T,P,I,z,V){var X=o&M,ee=o&h,se=o&S,le=o&(R|O),me=o&q,Oe=se?r:Ui(n);function pe(){for(var Re=arguments.length,Ce=H(Re),Ut=Re;Ut--;)Ce[Ut]=arguments[Ut];if(le)var Tt=li(pe),Bt=bw(Ce,Tt);if(b&&(Ce=fp(Ce,b,_,le)),T&&(Ce=dp(Ce,T,P,le)),Re-=Bt,le&&Re<V){var nt=sn(Ce,Tt);return wp(n,o,As,pe.placeholder,l,Ce,nt,I,z,V-Re)}var dr=ee?l:this,qr=se?dr[n]:n;return Re=Ce.length,I?Ce=Tx(Ce,I):me&&Re>1&&Ce.reverse(),X&&z<Re&&(Ce.length=z),this&&this!==pt&&this instanceof pe&&(qr=Oe||Ui(qr)),qr.apply(dr,Ce)}return pe}function yp(n,o){return function(l,b){return M1(l,n,o(b),{})}}function Ts(n,o){return function(l,b){var _;if(l===r&&b===r)return o;if(l!==r&&(_=l),b!==r){if(_===r)return b;typeof l=="string"||typeof b=="string"?(l=zt(l),b=zt(b)):(l=np(l),b=np(b)),_=n(l,b)}return _}}function Ku(n){return Wr(function(o){return o=Ze(o,jt(ge())),Te(function(l){var b=this;return n(o,function(_){return Dt(_,b,l)})})})}function Rs(n,o){o=o===r?" ":zt(o);var l=o.length;if(l<2)return l?Wu(o,n):o;var b=Wu(o,hs(n/ti(o)));return ei(o)?fn(ur(b),0,n).join(""):b.slice(0,n)}function ux(n,o,l,b){var _=o&h,T=Ui(n);function P(){for(var I=-1,z=arguments.length,V=-1,X=b.length,ee=H(X+z),se=this&&this!==pt&&this instanceof P?T:n;++V<X;)ee[V]=b[V];for(;z--;)ee[V++]=arguments[++I];return Dt(se,_?l:this,ee)}return P}function bp(n){return function(o,l,b){return b&&typeof b!="number"&&At(o,l,b)&&(l=b=r),o=Hr(o),l===r?(l=o,o=0):l=Hr(l),b=b===r?o<l?1:-1:Hr(b),G1(o,l,b,n)}}function Ps(n){return function(o,l){return typeof o=="string"&&typeof l=="string"||(o=rr(o),l=rr(l)),n(o,l)}}function wp(n,o,l,b,_,T,P,I,z,V){var X=o&R,ee=X?P:r,se=X?r:P,le=X?T:r,me=X?r:T;o|=X?C:U,o&=~(X?U:C),o&E||(o&=-4);var Oe=[n,o,_,le,ee,me,se,I,z,V],pe=l.apply(r,Oe);return rl(n)&&$p(pe,Oe),pe.placeholder=b,Ip(pe,n,o)}function Vu(n){var o=ut[n];return function(l,b){if(l=rr(l),b=b==null?0:wt(Ee(b),292),b&&Id(l)){var _=(Me(l)+"e").split("e"),T=o(_[0]+"e"+(+_[1]+b));return _=(Me(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-b))}return o(l)}}var lx=ii&&1/is(new ii([,-0]))[1]==re?function(n){return new ii(n)}:yl;function xp(n){return function(o){var l=xt(o);return l==bt?Ou(o):l==Pt?Aw(o):yw(o,n(o))}}function zr(n,o,l,b,_,T,P,I){var z=o&S;if(!z&&typeof n!="function")throw new Yt(u);var V=b?b.length:0;if(V||(o&=-97,b=_=r),P=P===r?P:lt(Ee(P),0),I=I===r?I:Ee(I),V-=_?_.length:0,o&U){var X=b,ee=_;b=_=r}var se=z?r:Ju(n),le=[n,o,l,b,_,X,ee,T,P,I];if(se&&_x(le,se),n=le[0],o=le[1],l=le[2],b=le[3],_=le[4],I=le[9]=le[9]===r?z?0:n.length:lt(le[9]-V,0),!I&&o&(R|O)&&(o&=-25),!o||o==h)var me=sx(n,o,l);else o==R||o==O?me=ax(n,o,I):(o==C||o==(h|C))&&!_.length?me=ux(n,o,l,b):me=As.apply(r,le);var Oe=se?tp:$p;return Ip(Oe(me,le),n,o)}function Sp(n,o,l,b){return n===r||fr(n,ni[l])&&!Le.call(b,l)?o:n}function Ep(n,o,l,b,_,T){return Ve(n)&&Ve(o)&&(T.set(o,n),Ss(n,o,r,Ep,T),T.delete(o)),n}function cx(n){return qi(n)?r:n}function _p(n,o,l,b,_,T){var P=l&d,I=n.length,z=o.length;if(I!=z&&!(P&&z>I))return!1;var V=T.get(n),X=T.get(o);if(V&&X)return V==o&&X==n;var ee=-1,se=!0,le=l&w?new Pn:r;for(T.set(n,o),T.set(o,n);++ee<I;){var me=n[ee],Oe=o[ee];if(b)var pe=P?b(Oe,me,ee,o,n,T):b(me,Oe,ee,n,o,T);if(pe!==r){if(pe)continue;se=!1;break}if(le){if(!bu(o,function(Re,Ce){if(!ki(le,Ce)&&(me===Re||_(me,Re,l,b,T)))return le.push(Ce)})){se=!1;break}}else if(!(me===Oe||_(me,Oe,l,b,T))){se=!1;break}}return T.delete(n),T.delete(o),se}function fx(n,o,l,b,_,T,P){switch(l){case Yn:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case rn:return!(n.byteLength!=o.byteLength||!T(new cs(n),new cs(o)));case Ae:case _e:case Jr:return fr(+n,+o);case oe:return n.name==o.name&&n.message==o.message;case yr:case Qr:return n==o+"";case bt:var I=Ou;case Pt:var z=b&d;if(I||(I=is),n.size!=o.size&&!z)return!1;var V=P.get(n);if(V)return V==o;b|=w,P.set(n,o);var X=_p(I(n),I(o),b,_,T,P);return P.delete(n),X;case en:if(Fi)return Fi.call(n)==Fi.call(o)}return!1}function dx(n,o,l,b,_,T){var P=l&d,I=Xu(n),z=I.length,V=Xu(o),X=V.length;if(z!=X&&!P)return!1;for(var ee=z;ee--;){var se=I[ee];if(!(P?se in o:Le.call(o,se)))return!1}var le=T.get(n),me=T.get(o);if(le&&me)return le==o&&me==n;var Oe=!0;T.set(n,o),T.set(o,n);for(var pe=P;++ee<z;){se=I[ee];var Re=n[se],Ce=o[se];if(b)var Ut=P?b(Ce,Re,se,o,n,T):b(Re,Ce,se,n,o,T);if(!(Ut===r?Re===Ce||_(Re,Ce,l,b,T):Ut)){Oe=!1;break}pe||(pe=se=="constructor")}if(Oe&&!pe){var Tt=n.constructor,Bt=o.constructor;Tt!=Bt&&"constructor"in n&&"constructor"in o&&!(typeof Tt=="function"&&Tt instanceof Tt&&typeof Bt=="function"&&Bt instanceof Bt)&&(Oe=!1)}return T.delete(n),T.delete(o),Oe}function Wr(n){return il(Cp(n,r,jp),n+"")}function Xu(n){return Hd(n,ft,el)}function Yu(n){return Hd(n,$t,Op)}var Ju=ms?function(n){return ms.get(n)}:yl;function Cs(n){for(var o=n.name+"",l=oi[o],b=Le.call(oi,o)?l.length:0;b--;){var _=l[b],T=_.func;if(T==null||T==n)return _.name}return o}function li(n){var o=Le.call(A,"placeholder")?A:n;return o.placeholder}function ge(){var n=A.iteratee||ml;return n=n===ml?Gd:n,arguments.length?n(arguments[0],arguments[1]):n}function ks(n,o){var l=n.__data__;return wx(o)?l[typeof o=="string"?"string":"hash"]:l.map}function Qu(n){for(var o=ft(n),l=o.length;l--;){var b=o[l],_=n[b];o[l]=[b,_,Rp(_)]}return o}function $n(n,o){var l=Ew(n,o);return Zd(l)?l:r}function px(n){var o=Le.call(n,Tn),l=n[Tn];try{n[Tn]=r;var b=!0}catch{}var _=us.call(n);return b&&(o?n[Tn]=l:delete n[Tn]),_}var el=Tu?function(n){return n==null?[]:(n=We(n),nn(Tu(n),function(o){return kd.call(n,o)}))}:bl,Op=Tu?function(n){for(var o=[];n;)on(o,el(n)),n=fs(n);return o}:bl,xt=Ot;(Ru&&xt(new Ru(new ArrayBuffer(1)))!=Yn||Ii&&xt(new Ii)!=bt||Pu&&xt(Pu.resolve())!=Xo||ii&&xt(new ii)!=Pt||Li&&xt(new Li)!=tn)&&(xt=function(n){var o=Ot(n),l=o==ar?n.constructor:r,b=l?In(l):"";if(b)switch(b){case Vw:return Yn;case Xw:return bt;case Yw:return Xo;case Jw:return Pt;case Qw:return tn}return o});function hx(n,o,l){for(var b=-1,_=l.length;++b<_;){var T=l[b],P=T.size;switch(T.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=wt(o,n+P);break;case"takeRight":n=lt(n,o-P);break}}return{start:n,end:o}}function gx(n){var o=n.match(Sb);return o?o[1].split(Eb):[]}function Ap(n,o,l){o=cn(o,n);for(var b=-1,_=o.length,T=!1;++b<_;){var P=cr(o[b]);if(!(T=n!=null&&l(n,P)))break;n=n[P]}return T||++b!=_?T:(_=n==null?0:n.length,!!_&&Ns(_)&&Ur(P,_)&&(Se(n)||Ln(n)))}function mx(n){var o=n.length,l=new n.constructor(o);return o&&typeof n[0]=="string"&&Le.call(n,"index")&&(l.index=n.index,l.input=n.input),l}function Tp(n){return typeof n.constructor=="function"&&!Bi(n)?si(fs(n)):{}}function vx(n,o,l){var b=n.constructor;switch(o){case rn:return Gu(n);case Ae:case _e:return new b(+n);case Yn:return ex(n,l);case Qa:case eu:case tu:case ru:case nu:case iu:case ou:case su:case au:return lp(n,l);case bt:return new b;case Jr:case Qr:return new b(n);case yr:return tx(n);case Pt:return new b;case en:return rx(n)}}function yx(n,o){var l=o.length;if(!l)return n;var b=l-1;return o[b]=(l>1?"& ":"")+o[b],o=o.join(l>2?", ":" "),n.replace(xb,`{
|
|
182
|
+
*/var o$=Oo.exports,Hm;function s$(){return Hm||(Hm=1,(function(e,t){(function(){var r,i="4.18.1",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="Invalid `imports` option passed into `_.template`",p="__lodash_hash_undefined__",m=500,d="__lodash_placeholder__",g=1,y=2,x=4,h=1,w=2,v=1,S=2,E=4,R=8,T=16,C=32,W=64,N=128,F=256,q=512,j=30,D="...",H=800,G=16,k=1,Q=2,J=3,re=1/0,ce=9007199254740991,Z=17976931348623157e292,te=NaN,ne=4294967295,ue=ne-1,ie=ne>>>1,he=[["ary",N],["bind",v],["bindKey",S],["curry",R],["curryRight",T],["flip",q],["partial",C],["partialRight",W],["rearg",F]],fe="[object Arguments]",ve="[object Array]",xe="[object AsyncFunction]",Oe="[object Boolean]",_e="[object Date]",at="[object DOMException]",oe="[object Error]",dt="[object Function]",zr="[object GeneratorFunction]",St="[object Map]",nn="[object Number]",ts="[object Null]",cr="[object Object]",rs="[object Promise]",Br="[object Proxy]",Sr="[object RegExp]",kt="[object Set]",on="[object String]",sn="[object Symbol]",ns="[object Undefined]",an="[object WeakMap]",is="[object WeakSet]",un="[object ArrayBuffer]",ni="[object DataView]",lu="[object Float32Array]",cu="[object Float64Array]",fu="[object Int8Array]",du="[object Int16Array]",pu="[object Int32Array]",hu="[object Uint8Array]",gu="[object Uint8ClampedArray]",mu="[object Uint16Array]",vu="[object Uint32Array]",Vb=/\b__p \+= '';/g,Kb=/\b(__p \+=) '' \+/g,Yb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ud=/&(?:amp|lt|gt|quot|#39);/g,ld=/[&<>"']/g,Xb=RegExp(ud.source),Jb=RegExp(ld.source),Qb=/<%-([\s\S]+?)%>/g,ew=/<%([\s\S]+?)%>/g,cd=/<%=([\s\S]+?)%>/g,tw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rw=/^\w*$/,nw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yu=/[\\^$.*+?()[\]{}|]/g,iw=RegExp(yu.source),bu=/^\s+/,ow=/\s/,sw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,aw=/\{\n\/\* \[wrapped with (.+)\] \*/,uw=/,? & /,lw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fd=/[()=,{}\[\]\/\s]/,cw=/\\(\\)?/g,fw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dd=/\w*$/,dw=/^[-+]0x[0-9a-f]+$/i,pw=/^0b[01]+$/i,hw=/^\[object .+?Constructor\]$/,gw=/^0o[0-7]+$/i,mw=/^(?:0|[1-9]\d*)$/,vw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,os=/($^)/,yw=/['\n\r\u2028\u2029\\]/g,ss="\\ud800-\\udfff",bw="\\u0300-\\u036f",ww="\\ufe20-\\ufe2f",xw="\\u20d0-\\u20ff",pd=bw+ww+xw,hd="\\u2700-\\u27bf",gd="a-z\\xdf-\\xf6\\xf8-\\xff",Sw="\\xac\\xb1\\xd7\\xf7",Ew="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_w="\\u2000-\\u206f",Tw=" \\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",md="A-Z\\xc0-\\xd6\\xd8-\\xde",vd="\\ufe0e\\ufe0f",yd=Sw+Ew+_w+Tw,wu="['’]",Ow="["+ss+"]",bd="["+yd+"]",as="["+pd+"]",wd="\\d+",Aw="["+hd+"]",xd="["+gd+"]",Sd="[^"+ss+yd+wd+hd+gd+md+"]",xu="\\ud83c[\\udffb-\\udfff]",Rw="(?:"+as+"|"+xu+")",Ed="[^"+ss+"]",Su="(?:\\ud83c[\\udde6-\\uddff]){2}",Eu="[\\ud800-\\udbff][\\udc00-\\udfff]",ii="["+md+"]",_d="\\u200d",Td="(?:"+xd+"|"+Sd+")",Pw="(?:"+ii+"|"+Sd+")",Od="(?:"+wu+"(?:d|ll|m|re|s|t|ve))?",Ad="(?:"+wu+"(?:D|LL|M|RE|S|T|VE))?",Rd=Rw+"?",Pd="["+vd+"]?",Cw="(?:"+_d+"(?:"+[Ed,Su,Eu].join("|")+")"+Pd+Rd+")*",kw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Iw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cd=Pd+Rd+Cw,$w="(?:"+[Aw,Su,Eu].join("|")+")"+Cd,Lw="(?:"+[Ed+as+"?",as,Su,Eu,Ow].join("|")+")",Mw=RegExp(wu,"g"),Dw=RegExp(as,"g"),_u=RegExp(xu+"(?="+xu+")|"+Lw+Cd,"g"),Nw=RegExp([ii+"?"+xd+"+"+Od+"(?="+[bd,ii,"$"].join("|")+")",Pw+"+"+Ad+"(?="+[bd,ii+Td,"$"].join("|")+")",ii+"?"+Td+"+"+Od,ii+"+"+Ad,Iw,kw,wd,$w].join("|"),"g"),Fw=RegExp("["+_d+ss+pd+vd+"]"),jw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zw=["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"],Bw=-1,Ve={};Ve[lu]=Ve[cu]=Ve[fu]=Ve[du]=Ve[pu]=Ve[hu]=Ve[gu]=Ve[mu]=Ve[vu]=!0,Ve[fe]=Ve[ve]=Ve[un]=Ve[Oe]=Ve[ni]=Ve[_e]=Ve[oe]=Ve[dt]=Ve[St]=Ve[nn]=Ve[cr]=Ve[Sr]=Ve[kt]=Ve[on]=Ve[an]=!1;var Ge={};Ge[fe]=Ge[ve]=Ge[un]=Ge[ni]=Ge[Oe]=Ge[_e]=Ge[lu]=Ge[cu]=Ge[fu]=Ge[du]=Ge[pu]=Ge[St]=Ge[nn]=Ge[cr]=Ge[Sr]=Ge[kt]=Ge[on]=Ge[sn]=Ge[hu]=Ge[gu]=Ge[mu]=Ge[vu]=!0,Ge[oe]=Ge[dt]=Ge[an]=!1;var Ww={À:"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"},Hw={"&":"&","<":"<",">":">",'"':""","'":"'"},Uw={"&":"&","<":"<",">":">",""":'"',"'":"'"},qw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gw=parseFloat,Zw=parseInt,kd=typeof Zs=="object"&&Zs&&Zs.Object===Object&&Zs,Vw=typeof self=="object"&&self&&self.Object===Object&&self,gt=kd||Vw||Function("return this")(),Tu=t&&!t.nodeType&&t,kn=Tu&&!0&&e&&!e.nodeType&&e,Id=kn&&kn.exports===Tu,Ou=Id&&kd.process,Jt=(function(){try{var z=kn&&kn.require&&kn.require("util").types;return z||Ou&&Ou.binding&&Ou.binding("util")}catch{}})(),$d=Jt&&Jt.isArrayBuffer,Ld=Jt&&Jt.isDate,Md=Jt&&Jt.isMap,Dd=Jt&&Jt.isRegExp,Nd=Jt&&Jt.isSet,Fd=Jt&&Jt.isTypedArray;function jt(z,V,U){switch(U.length){case 0:return z.call(V);case 1:return z.call(V,U[0]);case 2:return z.call(V,U[0],U[1]);case 3:return z.call(V,U[0],U[1],U[2])}return z.apply(V,U)}function Kw(z,V,U,ae){for(var be=-1,Le=z==null?0:z.length;++be<Le;){var ct=z[be];V(ae,ct,U(ct),z)}return ae}function zt(z,V){for(var U=-1,ae=z==null?0:z.length;++U<ae&&V(z[U],U,z)!==!1;);return z}function Yw(z,V){for(var U=z==null?0:z.length;U--&&V(z[U],U,z)!==!1;);return z}function jd(z,V){for(var U=-1,ae=z==null?0:z.length;++U<ae;)if(!V(z[U],U,z))return!1;return!0}function ln(z,V){for(var U=-1,ae=z==null?0:z.length,be=0,Le=[];++U<ae;){var ct=z[U];V(ct,U,z)&&(Le[be++]=ct)}return Le}function us(z,V){var U=z==null?0:z.length;return!!U&&oi(z,V,0)>-1}function Au(z,V,U){for(var ae=-1,be=z==null?0:z.length;++ae<be;)if(U(V,z[ae]))return!0;return!1}function Ye(z,V){for(var U=-1,ae=z==null?0:z.length,be=Array(ae);++U<ae;)be[U]=V(z[U],U,z);return be}function cn(z,V){for(var U=-1,ae=V.length,be=z.length;++U<ae;)z[be+U]=V[U];return z}function Ru(z,V,U,ae){var be=-1,Le=z==null?0:z.length;for(ae&&Le&&(U=z[++be]);++be<Le;)U=V(U,z[be],be,z);return U}function Xw(z,V,U,ae){var be=z==null?0:z.length;for(ae&&be&&(U=z[--be]);be--;)U=V(U,z[be],be,z);return U}function Pu(z,V){for(var U=-1,ae=z==null?0:z.length;++U<ae;)if(V(z[U],U,z))return!0;return!1}var Jw=Cu("length");function Qw(z){return z.split("")}function e1(z){return z.match(lw)||[]}function zd(z,V,U){var ae;return U(z,function(be,Le,ct){if(V(be,Le,ct))return ae=Le,!1}),ae}function ls(z,V,U,ae){for(var be=z.length,Le=U+(ae?1:-1);ae?Le--:++Le<be;)if(V(z[Le],Le,z))return Le;return-1}function oi(z,V,U){return V===V?d1(z,V,U):ls(z,Bd,U)}function t1(z,V,U,ae){for(var be=U-1,Le=z.length;++be<Le;)if(ae(z[be],V))return be;return-1}function Bd(z){return z!==z}function Wd(z,V){var U=z==null?0:z.length;return U?Iu(z,V)/U:te}function Cu(z){return function(V){return V==null?r:V[z]}}function ku(z){return function(V){return z==null?r:z[V]}}function Hd(z,V,U,ae,be){return be(z,function(Le,ct,qe){U=ae?(ae=!1,Le):V(U,Le,ct,qe)}),U}function r1(z,V){var U=z.length;for(z.sort(V);U--;)z[U]=z[U].value;return z}function Iu(z,V){for(var U,ae=-1,be=z.length;++ae<be;){var Le=V(z[ae]);Le!==r&&(U=U===r?Le:U+Le)}return U}function $u(z,V){for(var U=-1,ae=Array(z);++U<z;)ae[U]=V(U);return ae}function n1(z,V){return Ye(V,function(U){return[U,z[U]]})}function Ud(z){return z&&z.slice(0,Vd(z)+1).replace(bu,"")}function Bt(z){return function(V){return z(V)}}function Lu(z,V){return Ye(V,function(U){return z[U]})}function Fi(z,V){return z.has(V)}function qd(z,V){for(var U=-1,ae=z.length;++U<ae&&oi(V,z[U],0)>-1;);return U}function Gd(z,V){for(var U=z.length;U--&&oi(V,z[U],0)>-1;);return U}function i1(z,V){for(var U=z.length,ae=0;U--;)z[U]===V&&++ae;return ae}var o1=ku(Ww),s1=ku(Hw);function a1(z){return"\\"+qw[z]}function u1(z,V){return z==null?r:z[V]}function si(z){return Fw.test(z)}function l1(z){return jw.test(z)}function c1(z){for(var V,U=[];!(V=z.next()).done;)U.push(V.value);return U}function Mu(z){var V=-1,U=Array(z.size);return z.forEach(function(ae,be){U[++V]=[be,ae]}),U}function Zd(z,V){return function(U){return z(V(U))}}function fn(z,V){for(var U=-1,ae=z.length,be=0,Le=[];++U<ae;){var ct=z[U];(ct===V||ct===d)&&(z[U]=d,Le[be++]=U)}return Le}function cs(z){var V=-1,U=Array(z.size);return z.forEach(function(ae){U[++V]=ae}),U}function f1(z){var V=-1,U=Array(z.size);return z.forEach(function(ae){U[++V]=[ae,ae]}),U}function d1(z,V,U){for(var ae=U-1,be=z.length;++ae<be;)if(z[ae]===V)return ae;return-1}function p1(z,V,U){for(var ae=U+1;ae--;)if(z[ae]===V)return ae;return ae}function ai(z){return si(z)?g1(z):Jw(z)}function fr(z){return si(z)?m1(z):Qw(z)}function Vd(z){for(var V=z.length;V--&&ow.test(z.charAt(V)););return V}var h1=ku(Uw);function g1(z){for(var V=_u.lastIndex=0;_u.test(z);)++V;return V}function m1(z){return z.match(_u)||[]}function v1(z){return z.match(Nw)||[]}var y1=(function z(V){V=V==null?gt:ui.defaults(gt.Object(),V,ui.pick(gt,zw));var U=V.Array,ae=V.Date,be=V.Error,Le=V.Function,ct=V.Math,qe=V.Object,Du=V.RegExp,b1=V.String,Qt=V.TypeError,fs=U.prototype,w1=Le.prototype,li=qe.prototype,ds=V["__core-js_shared__"],ps=w1.toString,De=li.hasOwnProperty,x1=0,Kd=(function(){var n=/[^.]+$/.exec(ds&&ds.keys&&ds.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),hs=li.toString,S1=ps.call(qe),E1=gt._,_1=Du("^"+ps.call(De).replace(yu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gs=Id?V.Buffer:r,dn=V.Symbol,ms=V.Uint8Array,Yd=gs?gs.allocUnsafe:r,vs=Zd(qe.getPrototypeOf,qe),Xd=qe.create,Jd=li.propertyIsEnumerable,ys=fs.splice,Qd=dn?dn.isConcatSpreadable:r,ji=dn?dn.iterator:r,In=dn?dn.toStringTag:r,bs=(function(){try{var n=Nn(qe,"defineProperty");return n({},"",{}),n}catch{}})(),T1=V.clearTimeout!==gt.clearTimeout&&V.clearTimeout,O1=ae&&ae.now!==gt.Date.now&&ae.now,A1=V.setTimeout!==gt.setTimeout&&V.setTimeout,ws=ct.ceil,xs=ct.floor,Nu=qe.getOwnPropertySymbols,R1=gs?gs.isBuffer:r,ep=V.isFinite,P1=fs.join,C1=Zd(qe.keys,qe),ft=ct.max,Et=ct.min,k1=ae.now,I1=V.parseInt,tp=ct.random,$1=fs.reverse,Fu=Nn(V,"DataView"),zi=Nn(V,"Map"),ju=Nn(V,"Promise"),ci=Nn(V,"Set"),Bi=Nn(V,"WeakMap"),Wi=Nn(qe,"create"),Ss=Bi&&new Bi,fi={},L1=Fn(Fu),M1=Fn(zi),D1=Fn(ju),N1=Fn(ci),F1=Fn(Bi),Es=dn?dn.prototype:r,Hi=Es?Es.valueOf:r,rp=Es?Es.toString:r;function O(n){if(nt(n)&&!Se(n)&&!(n instanceof Pe)){if(n instanceof er)return n;if(De.call(n,"__wrapped__"))return nh(n)}return new er(n)}var di=(function(){function n(){}return function(o){if(!et(o))return{};if(Xd)return Xd(o);n.prototype=o;var c=new n;return n.prototype=r,c}})();function _s(){}function er(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}O.templateSettings={escape:Qb,evaluate:ew,interpolate:cd,variable:"",imports:{_:O}},O.prototype=_s.prototype,O.prototype.constructor=O,er.prototype=di(_s.prototype),er.prototype.constructor=er;function Pe(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function j1(){var n=new Pe(this.__wrapped__);return n.__actions__=It(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=It(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=It(this.__views__),n}function z1(){if(this.__filtered__){var n=new Pe(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function B1(){var n=this.__wrapped__.value(),o=this.__dir__,c=Se(n),b=o<0,_=c?n.length:0,A=Qx(0,_,this.__views__),P=A.start,L=A.end,B=L-P,K=b?L:P-1,Y=this.__iteratees__,ee=Y.length,se=0,le=Et(B,this.__takeCount__);if(!c||!b&&_==B&&le==B)return Op(n,this.__actions__);var me=[];e:for(;B--&&se<le;){K+=o;for(var Te=-1,pe=n[K];++Te<ee;){var Re=Y[Te],Ce=Re.iteratee,Ut=Re.type,Pt=Ce(pe);if(Ut==Q)pe=Pt;else if(!Pt){if(Ut==k)continue e;break e}}me[se++]=pe}return me}Pe.prototype=di(_s.prototype),Pe.prototype.constructor=Pe;function $n(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var b=n[o];this.set(b[0],b[1])}}function W1(){this.__data__=Wi?Wi(null):{},this.size=0}function H1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function U1(n){var o=this.__data__;if(Wi){var c=o[n];return c===p?r:c}return De.call(o,n)?o[n]:r}function q1(n){var o=this.__data__;return Wi?o[n]!==r:De.call(o,n)}function G1(n,o){var c=this.__data__;return this.size+=this.has(n)?0:1,c[n]=Wi&&o===r?p:o,this}$n.prototype.clear=W1,$n.prototype.delete=H1,$n.prototype.get=U1,$n.prototype.has=q1,$n.prototype.set=G1;function Wr(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var b=n[o];this.set(b[0],b[1])}}function Z1(){this.__data__=[],this.size=0}function V1(n){var o=this.__data__,c=Ts(o,n);if(c<0)return!1;var b=o.length-1;return c==b?o.pop():ys.call(o,c,1),--this.size,!0}function K1(n){var o=this.__data__,c=Ts(o,n);return c<0?r:o[c][1]}function Y1(n){return Ts(this.__data__,n)>-1}function X1(n,o){var c=this.__data__,b=Ts(c,n);return b<0?(++this.size,c.push([n,o])):c[b][1]=o,this}Wr.prototype.clear=Z1,Wr.prototype.delete=V1,Wr.prototype.get=K1,Wr.prototype.has=Y1,Wr.prototype.set=X1;function Hr(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var b=n[o];this.set(b[0],b[1])}}function J1(){this.size=0,this.__data__={hash:new $n,map:new(zi||Wr),string:new $n}}function Q1(n){var o=Ns(this,n).delete(n);return this.size-=o?1:0,o}function ex(n){return Ns(this,n).get(n)}function tx(n){return Ns(this,n).has(n)}function rx(n,o){var c=Ns(this,n),b=c.size;return c.set(n,o),this.size+=c.size==b?0:1,this}Hr.prototype.clear=J1,Hr.prototype.delete=Q1,Hr.prototype.get=ex,Hr.prototype.has=tx,Hr.prototype.set=rx;function Ln(n){var o=-1,c=n==null?0:n.length;for(this.__data__=new Hr;++o<c;)this.add(n[o])}function nx(n){return this.__data__.set(n,p),this}function ix(n){return this.__data__.has(n)}Ln.prototype.add=Ln.prototype.push=nx,Ln.prototype.has=ix;function dr(n){var o=this.__data__=new Wr(n);this.size=o.size}function ox(){this.__data__=new Wr,this.size=0}function sx(n){var o=this.__data__,c=o.delete(n);return this.size=o.size,c}function ax(n){return this.__data__.get(n)}function ux(n){return this.__data__.has(n)}function lx(n,o){var c=this.__data__;if(c instanceof Wr){var b=c.__data__;if(!zi||b.length<s-1)return b.push([n,o]),this.size=++c.size,this;c=this.__data__=new Hr(b)}return c.set(n,o),this.size=c.size,this}dr.prototype.clear=ox,dr.prototype.delete=sx,dr.prototype.get=ax,dr.prototype.has=ux,dr.prototype.set=lx;function np(n,o){var c=Se(n),b=!c&&jn(n),_=!c&&!b&&vn(n),A=!c&&!b&&!_&&mi(n),P=c||b||_||A,L=P?$u(n.length,b1):[],B=L.length;for(var K in n)(o||De.call(n,K))&&!(P&&(K=="length"||_&&(K=="offset"||K=="parent")||A&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||Gr(K,B)))&&L.push(K);return L}function ip(n){var o=n.length;return o?n[Yu(0,o-1)]:r}function cx(n,o){return Fs(It(n),Mn(o,0,n.length))}function fx(n){return Fs(It(n))}function zu(n,o,c){(c!==r&&!hr(n[o],c)||c===r&&!(o in n))&&Er(n,o,c)}function Ui(n,o,c){var b=n[o];(!(De.call(n,o)&&hr(b,c))||c===r&&!(o in n))&&Er(n,o,c)}function Ts(n,o){for(var c=n.length;c--;)if(hr(n[c][0],o))return c;return-1}function dx(n,o,c,b){return pn(n,function(_,A,P){o(b,_,c(_),P)}),b}function op(n,o){return n&&Tr(o,pt(o),n)}function px(n,o){return n&&Tr(o,Lt(o),n)}function Er(n,o,c){o=="__proto__"&&bs?bs(n,o,{configurable:!0,enumerable:!0,value:c,writable:!0}):n[o]=c}function Bu(n,o){for(var c=-1,b=o.length,_=U(b),A=n==null;++c<b;)_[c]=A?r:Sl(n,o[c]);return _}function Mn(n,o,c){return n===n&&(c!==r&&(n=n<=c?n:c),o!==r&&(n=n>=o?n:o)),n}function tr(n,o,c,b,_,A){var P,L=o&g,B=o&y,K=o&x;if(c&&(P=_?c(n,b,_,A):c(n)),P!==r)return P;if(!et(n))return n;var Y=Se(n);if(Y){if(P=tS(n),!L)return It(n,P)}else{var ee=_t(n),se=ee==dt||ee==zr;if(vn(n))return Pp(n,L);if(ee==cr||ee==fe||se&&!_){if(P=B||se?{}:Vp(n),!L)return B?Ux(n,px(P,n)):Hx(n,op(P,n))}else{if(!Ge[ee])return _?n:{};P=rS(n,ee,L)}}A||(A=new dr);var le=A.get(n);if(le)return le;A.set(n,P),Eh(n)?n.forEach(function(pe){P.add(tr(pe,o,c,pe,n,A))}):xh(n)&&n.forEach(function(pe,Re){P.set(Re,tr(pe,o,c,Re,n,A))});var me=K?B?al:sl:B?Lt:pt,Te=Y?r:me(n);return zt(Te||n,function(pe,Re){Te&&(Re=pe,pe=n[Re]),Ui(P,Re,tr(pe,o,c,Re,n,A))}),P}function hx(n){var o=pt(n);return function(c){return sp(c,n,o)}}function sp(n,o,c){var b=c.length;if(n==null)return!b;for(n=qe(n);b--;){var _=c[b],A=o[_],P=n[_];if(P===r&&!(_ in n)||!A(P))return!1}return!0}function ap(n,o,c){if(typeof n!="function")throw new Qt(u);return Xi(function(){n.apply(r,c)},o)}function qi(n,o,c,b){var _=-1,A=us,P=!0,L=n.length,B=[],K=o.length;if(!L)return B;c&&(o=Ye(o,Bt(c))),b?(A=Au,P=!1):o.length>=s&&(A=Fi,P=!1,o=new Ln(o));e:for(;++_<L;){var Y=n[_],ee=c==null?Y:c(Y);if(Y=b||Y!==0?Y:0,P&&ee===ee){for(var se=K;se--;)if(o[se]===ee)continue e;B.push(Y)}else A(o,ee,b)||B.push(Y)}return B}var pn=Lp(_r),up=Lp(Hu,!0);function gx(n,o){var c=!0;return pn(n,function(b,_,A){return c=!!o(b,_,A),c}),c}function Os(n,o,c){for(var b=-1,_=n.length;++b<_;){var A=n[b],P=o(A);if(P!=null&&(L===r?P===P&&!Ht(P):c(P,L)))var L=P,B=A}return B}function mx(n,o,c,b){var _=n.length;for(c=Ee(c),c<0&&(c=-c>_?0:_+c),b=b===r||b>_?_:Ee(b),b<0&&(b+=_),b=c>b?0:Th(b);c<b;)n[c++]=o;return n}function lp(n,o){var c=[];return pn(n,function(b,_,A){o(b,_,A)&&c.push(b)}),c}function mt(n,o,c,b,_){var A=-1,P=n.length;for(c||(c=iS),_||(_=[]);++A<P;){var L=n[A];o>0&&c(L)?o>1?mt(L,o-1,c,b,_):cn(_,L):b||(_[_.length]=L)}return _}var Wu=Mp(),cp=Mp(!0);function _r(n,o){return n&&Wu(n,o,pt)}function Hu(n,o){return n&&cp(n,o,pt)}function As(n,o){return ln(o,function(c){return Zr(n[c])})}function Dn(n,o){o=gn(o,n);for(var c=0,b=o.length;n!=null&&c<b;)n=n[pr(o[c++])];return c&&c==b?n:r}function fp(n,o,c){var b=o(n);return Se(n)?b:cn(b,c(n))}function At(n){return n==null?n===r?ns:ts:In&&In in qe(n)?Jx(n):fS(n)}function Uu(n,o){return n>o}function vx(n,o){return n!=null&&De.call(n,o)}function yx(n,o){return n!=null&&o in qe(n)}function bx(n,o,c){return n>=Et(o,c)&&n<ft(o,c)}function qu(n,o,c){for(var b=c?Au:us,_=n[0].length,A=n.length,P=A,L=U(A),B=1/0,K=[];P--;){var Y=n[P];P&&o&&(Y=Ye(Y,Bt(o))),B=Et(Y.length,B),L[P]=!c&&(o||_>=120&&Y.length>=120)?new Ln(P&&Y):r}Y=n[0];var ee=-1,se=L[0];e:for(;++ee<_&&K.length<B;){var le=Y[ee],me=o?o(le):le;if(le=c||le!==0?le:0,!(se?Fi(se,me):b(K,me,c))){for(P=A;--P;){var Te=L[P];if(!(Te?Fi(Te,me):b(n[P],me,c)))continue e}se&&se.push(me),K.push(le)}}return K}function wx(n,o,c,b){return _r(n,function(_,A,P){o(b,c(_),A,P)}),b}function Gi(n,o,c){o=gn(o,n),n=Jp(n,o);var b=n==null?n:n[pr(nr(o))];return b==null?r:jt(b,n,c)}function dp(n){return nt(n)&&At(n)==fe}function xx(n){return nt(n)&&At(n)==un}function Sx(n){return nt(n)&&At(n)==_e}function Zi(n,o,c,b,_){return n===o?!0:n==null||o==null||!nt(n)&&!nt(o)?n!==n&&o!==o:Ex(n,o,c,b,Zi,_)}function Ex(n,o,c,b,_,A){var P=Se(n),L=Se(o),B=P?ve:_t(n),K=L?ve:_t(o);B=B==fe?cr:B,K=K==fe?cr:K;var Y=B==cr,ee=K==cr,se=B==K;if(se&&vn(n)){if(!vn(o))return!1;P=!0,Y=!1}if(se&&!Y)return A||(A=new dr),P||mi(n)?qp(n,o,c,b,_,A):Yx(n,o,B,c,b,_,A);if(!(c&h)){var le=Y&&De.call(n,"__wrapped__"),me=ee&&De.call(o,"__wrapped__");if(le||me){var Te=le?n.value():n,pe=me?o.value():o;return A||(A=new dr),_(Te,pe,c,b,A)}}return se?(A||(A=new dr),Xx(n,o,c,b,_,A)):!1}function _x(n){return nt(n)&&_t(n)==St}function Gu(n,o,c,b){var _=c.length,A=_,P=!b;if(n==null)return!A;for(n=qe(n);_--;){var L=c[_];if(P&&L[2]?L[1]!==n[L[0]]:!(L[0]in n))return!1}for(;++_<A;){L=c[_];var B=L[0],K=n[B],Y=L[1];if(P&&L[2]){if(K===r&&!(B in n))return!1}else{var ee=new dr;if(b)var se=b(K,Y,B,n,o,ee);if(!(se===r?Zi(Y,K,h|w,b,ee):se))return!1}}return!0}function pp(n){if(!et(n)||sS(n))return!1;var o=Zr(n)?_1:hw;return o.test(Fn(n))}function Tx(n){return nt(n)&&At(n)==Sr}function Ox(n){return nt(n)&&_t(n)==kt}function Ax(n){return nt(n)&&Us(n.length)&&!!Ve[At(n)]}function hp(n){return typeof n=="function"?n:n==null?Mt:typeof n=="object"?Se(n)?vp(n[0],n[1]):mp(n):Nh(n)}function Zu(n){if(!Yi(n))return C1(n);var o=[];for(var c in qe(n))De.call(n,c)&&c!="constructor"&&o.push(c);return o}function Rx(n){if(!et(n))return cS(n);var o=Yi(n),c=[];for(var b in n)b=="constructor"&&(o||!De.call(n,b))||c.push(b);return c}function Vu(n,o){return n<o}function gp(n,o){var c=-1,b=$t(n)?U(n.length):[];return pn(n,function(_,A,P){b[++c]=o(_,A,P)}),b}function mp(n){var o=ll(n);return o.length==1&&o[0][2]?Yp(o[0][0],o[0][1]):function(c){return c===n||Gu(c,n,o)}}function vp(n,o){return fl(n)&&Kp(o)?Yp(pr(n),o):function(c){var b=Sl(c,n);return b===r&&b===o?El(c,n):Zi(o,b,h|w)}}function Rs(n,o,c,b,_){n!==o&&Wu(o,function(A,P){if(_||(_=new dr),et(A))Px(n,o,P,c,Rs,b,_);else{var L=b?b(pl(n,P),A,P+"",n,o,_):r;L===r&&(L=A),zu(n,P,L)}},Lt)}function Px(n,o,c,b,_,A,P){var L=pl(n,c),B=pl(o,c),K=P.get(B);if(K){zu(n,c,K);return}var Y=A?A(L,B,c+"",n,o,P):r,ee=Y===r;if(ee){var se=Se(B),le=!se&&vn(B),me=!se&&!le&&mi(B);Y=B,se||le||me?Se(L)?Y=L:it(L)?Y=It(L):le?(ee=!1,Y=Pp(B,!0)):me?(ee=!1,Y=Cp(B,!0)):Y=[]:Ji(B)||jn(B)?(Y=L,jn(L)?Y=Oh(L):(!et(L)||Zr(L))&&(Y=Vp(B))):ee=!1}ee&&(P.set(B,Y),_(Y,B,b,A,P),P.delete(B)),zu(n,c,Y)}function yp(n,o){var c=n.length;if(c)return o+=o<0?c:0,Gr(o,c)?n[o]:r}function bp(n,o,c){o.length?o=Ye(o,function(A){return Se(A)?function(P){return Dn(P,A.length===1?A[0]:A)}:A}):o=[Mt];var b=-1;o=Ye(o,Bt(ge()));var _=gp(n,function(A,P,L){var B=Ye(o,function(K){return K(A)});return{criteria:B,index:++b,value:A}});return r1(_,function(A,P){return Wx(A,P,c)})}function Cx(n,o){return wp(n,o,function(c,b){return El(n,b)})}function wp(n,o,c){for(var b=-1,_=o.length,A={};++b<_;){var P=o[b],L=Dn(n,P);c(L,P)&&Vi(A,gn(P,n),L)}return A}function kx(n){return function(o){return Dn(o,n)}}function Ku(n,o,c,b){var _=b?t1:oi,A=-1,P=o.length,L=n;for(n===o&&(o=It(o)),c&&(L=Ye(n,Bt(c)));++A<P;)for(var B=0,K=o[A],Y=c?c(K):K;(B=_(L,Y,B,b))>-1;)L!==n&&ys.call(L,B,1),ys.call(n,B,1);return n}function xp(n,o){for(var c=n?o.length:0,b=c-1;c--;){var _=o[c];if(c==b||_!==A){var A=_;Gr(_)?ys.call(n,_,1):Qu(n,_)}}return n}function Yu(n,o){return n+xs(tp()*(o-n+1))}function Ix(n,o,c,b){for(var _=-1,A=ft(ws((o-n)/(c||1)),0),P=U(A);A--;)P[b?A:++_]=n,n+=c;return P}function Xu(n,o){var c="";if(!n||o<1||o>ce)return c;do o%2&&(c+=n),o=xs(o/2),o&&(n+=n);while(o);return c}function Ae(n,o){return hl(Xp(n,o,Mt),n+"")}function $x(n){return ip(vi(n))}function Lx(n,o){var c=vi(n);return Fs(c,Mn(o,0,c.length))}function Vi(n,o,c,b){if(!et(n))return n;o=gn(o,n);for(var _=-1,A=o.length,P=A-1,L=n;L!=null&&++_<A;){var B=pr(o[_]),K=c;if(B==="__proto__"||B==="constructor"||B==="prototype")return n;if(_!=P){var Y=L[B];K=b?b(Y,B,L):r,K===r&&(K=et(Y)?Y:Gr(o[_+1])?[]:{})}Ui(L,B,K),L=L[B]}return n}var Sp=Ss?function(n,o){return Ss.set(n,o),n}:Mt,Mx=bs?function(n,o){return bs(n,"toString",{configurable:!0,enumerable:!1,value:Tl(o),writable:!0})}:Mt;function Dx(n){return Fs(vi(n))}function rr(n,o,c){var b=-1,_=n.length;o<0&&(o=-o>_?0:_+o),c=c>_?_:c,c<0&&(c+=_),_=o>c?0:c-o>>>0,o>>>=0;for(var A=U(_);++b<_;)A[b]=n[b+o];return A}function Nx(n,o){var c;return pn(n,function(b,_,A){return c=o(b,_,A),!c}),!!c}function Ps(n,o,c){var b=0,_=n==null?b:n.length;if(typeof o=="number"&&o===o&&_<=ie){for(;b<_;){var A=b+_>>>1,P=n[A];P!==null&&!Ht(P)&&(c?P<=o:P<o)?b=A+1:_=A}return _}return Ju(n,o,Mt,c)}function Ju(n,o,c,b){var _=0,A=n==null?0:n.length;if(A===0)return 0;o=c(o);for(var P=o!==o,L=o===null,B=Ht(o),K=o===r;_<A;){var Y=xs((_+A)/2),ee=c(n[Y]),se=ee!==r,le=ee===null,me=ee===ee,Te=Ht(ee);if(P)var pe=b||me;else K?pe=me&&(b||se):L?pe=me&&se&&(b||!le):B?pe=me&&se&&!le&&(b||!Te):le||Te?pe=!1:pe=b?ee<=o:ee<o;pe?_=Y+1:A=Y}return Et(A,ue)}function Ep(n,o){for(var c=-1,b=n.length,_=0,A=[];++c<b;){var P=n[c],L=o?o(P):P;if(!c||!hr(L,B)){var B=L;A[_++]=P===0?0:P}}return A}function _p(n){return typeof n=="number"?n:Ht(n)?te:+n}function Wt(n){if(typeof n=="string")return n;if(Se(n))return Ye(n,Wt)+"";if(Ht(n))return rp?rp.call(n):"";var o=n+"";return o=="0"&&1/n==-re?"-0":o}function hn(n,o,c){var b=-1,_=us,A=n.length,P=!0,L=[],B=L;if(c)P=!1,_=Au;else if(A>=s){var K=o?null:Vx(n);if(K)return cs(K);P=!1,_=Fi,B=new Ln}else B=o?[]:L;e:for(;++b<A;){var Y=n[b],ee=o?o(Y):Y;if(Y=c||Y!==0?Y:0,P&&ee===ee){for(var se=B.length;se--;)if(B[se]===ee)continue e;o&&B.push(ee),L.push(Y)}else _(B,ee,c)||(B!==L&&B.push(ee),L.push(Y))}return L}function Qu(n,o){o=gn(o,n);var c=-1,b=o.length;if(!b)return!0;for(;++c<b;){var _=pr(o[c]);if(_==="__proto__"&&!De.call(n,"__proto__")||(_==="constructor"||_==="prototype")&&c<b-1)return!1}var A=Jp(n,o);return A==null||delete A[pr(nr(o))]}function Tp(n,o,c,b){return Vi(n,o,c(Dn(n,o)),b)}function Cs(n,o,c,b){for(var _=n.length,A=b?_:-1;(b?A--:++A<_)&&o(n[A],A,n););return c?rr(n,b?0:A,b?A+1:_):rr(n,b?A+1:0,b?_:A)}function Op(n,o){var c=n;return c instanceof Pe&&(c=c.value()),Ru(o,function(b,_){return _.func.apply(_.thisArg,cn([b],_.args))},c)}function el(n,o,c){var b=n.length;if(b<2)return b?hn(n[0]):[];for(var _=-1,A=U(b);++_<b;)for(var P=n[_],L=-1;++L<b;)L!=_&&(A[_]=qi(A[_]||P,n[L],o,c));return hn(mt(A,1),o,c)}function Ap(n,o,c){for(var b=-1,_=n.length,A=o.length,P={};++b<_;){var L=b<A?o[b]:r;c(P,n[b],L)}return P}function tl(n){return it(n)?n:[]}function rl(n){return typeof n=="function"?n:Mt}function gn(n,o){return Se(n)?n:fl(n,o)?[n]:rh(Ne(n))}var Fx=Ae;function mn(n,o,c){var b=n.length;return c=c===r?b:c,!o&&c>=b?n:rr(n,o,c)}var Rp=T1||function(n){return gt.clearTimeout(n)};function Pp(n,o){if(o)return n.slice();var c=n.length,b=Yd?Yd(c):new n.constructor(c);return n.copy(b),b}function nl(n){var o=new n.constructor(n.byteLength);return new ms(o).set(new ms(n)),o}function jx(n,o){var c=o?nl(n.buffer):n.buffer;return new n.constructor(c,n.byteOffset,n.byteLength)}function zx(n){var o=new n.constructor(n.source,dd.exec(n));return o.lastIndex=n.lastIndex,o}function Bx(n){return Hi?qe(Hi.call(n)):{}}function Cp(n,o){var c=o?nl(n.buffer):n.buffer;return new n.constructor(c,n.byteOffset,n.length)}function kp(n,o){if(n!==o){var c=n!==r,b=n===null,_=n===n,A=Ht(n),P=o!==r,L=o===null,B=o===o,K=Ht(o);if(!L&&!K&&!A&&n>o||A&&P&&B&&!L&&!K||b&&P&&B||!c&&B||!_)return 1;if(!b&&!A&&!K&&n<o||K&&c&&_&&!b&&!A||L&&c&&_||!P&&_||!B)return-1}return 0}function Wx(n,o,c){for(var b=-1,_=n.criteria,A=o.criteria,P=_.length,L=c.length;++b<P;){var B=kp(_[b],A[b]);if(B){if(b>=L)return B;var K=c[b];return B*(K=="desc"?-1:1)}}return n.index-o.index}function Ip(n,o,c,b){for(var _=-1,A=n.length,P=c.length,L=-1,B=o.length,K=ft(A-P,0),Y=U(B+K),ee=!b;++L<B;)Y[L]=o[L];for(;++_<P;)(ee||_<A)&&(Y[c[_]]=n[_]);for(;K--;)Y[L++]=n[_++];return Y}function $p(n,o,c,b){for(var _=-1,A=n.length,P=-1,L=c.length,B=-1,K=o.length,Y=ft(A-L,0),ee=U(Y+K),se=!b;++_<Y;)ee[_]=n[_];for(var le=_;++B<K;)ee[le+B]=o[B];for(;++P<L;)(se||_<A)&&(ee[le+c[P]]=n[_++]);return ee}function It(n,o){var c=-1,b=n.length;for(o||(o=U(b));++c<b;)o[c]=n[c];return o}function Tr(n,o,c,b){var _=!c;c||(c={});for(var A=-1,P=o.length;++A<P;){var L=o[A],B=b?b(c[L],n[L],L,c,n):r;B===r&&(B=n[L]),_?Er(c,L,B):Ui(c,L,B)}return c}function Hx(n,o){return Tr(n,cl(n),o)}function Ux(n,o){return Tr(n,Gp(n),o)}function ks(n,o){return function(c,b){var _=Se(c)?Kw:dx,A=o?o():{};return _(c,n,ge(b,2),A)}}function pi(n){return Ae(function(o,c){var b=-1,_=c.length,A=_>1?c[_-1]:r,P=_>2?c[2]:r;for(A=n.length>3&&typeof A=="function"?(_--,A):r,P&&Rt(c[0],c[1],P)&&(A=_<3?r:A,_=1),o=qe(o);++b<_;){var L=c[b];L&&n(o,L,b,A)}return o})}function Lp(n,o){return function(c,b){if(c==null)return c;if(!$t(c))return n(c,b);for(var _=c.length,A=o?_:-1,P=qe(c);(o?A--:++A<_)&&b(P[A],A,P)!==!1;);return c}}function Mp(n){return function(o,c,b){for(var _=-1,A=qe(o),P=b(o),L=P.length;L--;){var B=P[n?L:++_];if(c(A[B],B,A)===!1)break}return o}}function qx(n,o,c){var b=o&v,_=Ki(n);function A(){var P=this&&this!==gt&&this instanceof A?_:n;return P.apply(b?c:this,arguments)}return A}function Dp(n){return function(o){o=Ne(o);var c=si(o)?fr(o):r,b=c?c[0]:o.charAt(0),_=c?mn(c,1).join(""):o.slice(1);return b[n]()+_}}function hi(n){return function(o){return Ru(Mh(Lh(o).replace(Mw,"")),n,"")}}function Ki(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 c=di(n.prototype),b=n.apply(c,o);return et(b)?b:c}}function Gx(n,o,c){var b=Ki(n);function _(){for(var A=arguments.length,P=U(A),L=A,B=gi(_);L--;)P[L]=arguments[L];var K=A<3&&P[0]!==B&&P[A-1]!==B?[]:fn(P,B);if(A-=K.length,A<c)return Bp(n,o,Is,_.placeholder,r,P,K,r,r,c-A);var Y=this&&this!==gt&&this instanceof _?b:n;return jt(Y,this,P)}return _}function Np(n){return function(o,c,b){var _=qe(o);if(!$t(o)){var A=ge(c,3);o=pt(o),c=function(L){return A(_[L],L,_)}}var P=n(o,c,b);return P>-1?_[A?o[P]:P]:r}}function Fp(n){return qr(function(o){var c=o.length,b=c,_=er.prototype.thru;for(n&&o.reverse();b--;){var A=o[b];if(typeof A!="function")throw new Qt(u);if(_&&!P&&Ds(A)=="wrapper")var P=new er([],!0)}for(b=P?b:c;++b<c;){A=o[b];var L=Ds(A),B=L=="wrapper"?ul(A):r;B&&dl(B[0])&&B[1]==(N|R|C|F)&&!B[4].length&&B[9]==1?P=P[Ds(B[0])].apply(P,B[3]):P=A.length==1&&dl(A)?P[L]():P.thru(A)}return function(){var K=arguments,Y=K[0];if(P&&K.length==1&&Se(Y))return P.plant(Y).value();for(var ee=0,se=c?o[ee].apply(this,K):Y;++ee<c;)se=o[ee].call(this,se);return se}})}function Is(n,o,c,b,_,A,P,L,B,K){var Y=o&N,ee=o&v,se=o&S,le=o&(R|T),me=o&q,Te=se?r:Ki(n);function pe(){for(var Re=arguments.length,Ce=U(Re),Ut=Re;Ut--;)Ce[Ut]=arguments[Ut];if(le)var Pt=gi(pe),qt=i1(Ce,Pt);if(b&&(Ce=Ip(Ce,b,_,le)),A&&(Ce=$p(Ce,A,P,le)),Re-=qt,le&&Re<K){var ot=fn(Ce,Pt);return Bp(n,o,Is,pe.placeholder,c,Ce,ot,L,B,K-Re)}var gr=ee?c:this,Kr=se?gr[n]:n;return Re=Ce.length,L?Ce=dS(Ce,L):me&&Re>1&&Ce.reverse(),Y&&B<Re&&(Ce.length=B),this&&this!==gt&&this instanceof pe&&(Kr=Te||Ki(Kr)),Kr.apply(gr,Ce)}return pe}function jp(n,o){return function(c,b){return wx(c,n,o(b),{})}}function $s(n,o){return function(c,b){var _;if(c===r&&b===r)return o;if(c!==r&&(_=c),b!==r){if(_===r)return b;typeof c=="string"||typeof b=="string"?(c=Wt(c),b=Wt(b)):(c=_p(c),b=_p(b)),_=n(c,b)}return _}}function il(n){return qr(function(o){return o=Ye(o,Bt(ge())),Ae(function(c){var b=this;return n(o,function(_){return jt(_,b,c)})})})}function Ls(n,o){o=o===r?" ":Wt(o);var c=o.length;if(c<2)return c?Xu(o,n):o;var b=Xu(o,ws(n/ai(o)));return si(o)?mn(fr(b),0,n).join(""):b.slice(0,n)}function Zx(n,o,c,b){var _=o&v,A=Ki(n);function P(){for(var L=-1,B=arguments.length,K=-1,Y=b.length,ee=U(Y+B),se=this&&this!==gt&&this instanceof P?A:n;++K<Y;)ee[K]=b[K];for(;B--;)ee[K++]=arguments[++L];return jt(se,_?c:this,ee)}return P}function zp(n){return function(o,c,b){return b&&typeof b!="number"&&Rt(o,c,b)&&(c=b=r),o=Vr(o),c===r?(c=o,o=0):c=Vr(c),b=b===r?o<c?1:-1:Vr(b),Ix(o,c,b,n)}}function Ms(n){return function(o,c){return typeof o=="string"&&typeof c=="string"||(o=ir(o),c=ir(c)),n(o,c)}}function Bp(n,o,c,b,_,A,P,L,B,K){var Y=o&R,ee=Y?P:r,se=Y?r:P,le=Y?A:r,me=Y?r:A;o|=Y?C:W,o&=~(Y?W:C),o&E||(o&=-4);var Te=[n,o,_,le,ee,me,se,L,B,K],pe=c.apply(r,Te);return dl(n)&&Qp(pe,Te),pe.placeholder=b,eh(pe,n,o)}function ol(n){var o=ct[n];return function(c,b){if(c=ir(c),b=b==null?0:Et(Ee(b),292),b&&ep(c)){var _=(Ne(c)+"e").split("e"),A=o(_[0]+"e"+(+_[1]+b));return _=(Ne(A)+"e").split("e"),+(_[0]+"e"+(+_[1]-b))}return o(c)}}var Vx=ci&&1/cs(new ci([,-0]))[1]==re?function(n){return new ci(n)}:Rl;function Wp(n){return function(o){var c=_t(o);return c==St?Mu(o):c==kt?f1(o):n1(o,n(o))}}function Ur(n,o,c,b,_,A,P,L){var B=o&S;if(!B&&typeof n!="function")throw new Qt(u);var K=b?b.length:0;if(K||(o&=-97,b=_=r),P=P===r?P:ft(Ee(P),0),L=L===r?L:Ee(L),K-=_?_.length:0,o&W){var Y=b,ee=_;b=_=r}var se=B?r:ul(n),le=[n,o,c,b,_,Y,ee,A,P,L];if(se&&lS(le,se),n=le[0],o=le[1],c=le[2],b=le[3],_=le[4],L=le[9]=le[9]===r?B?0:n.length:ft(le[9]-K,0),!L&&o&(R|T)&&(o&=-25),!o||o==v)var me=qx(n,o,c);else o==R||o==T?me=Gx(n,o,L):(o==C||o==(v|C))&&!_.length?me=Zx(n,o,c,b):me=Is.apply(r,le);var Te=se?Sp:Qp;return eh(Te(me,le),n,o)}function Hp(n,o,c,b){return n===r||hr(n,li[c])&&!De.call(b,c)?o:n}function Up(n,o,c,b,_,A){return et(n)&&et(o)&&(A.set(o,n),Rs(n,o,r,Up,A),A.delete(o)),n}function Kx(n){return Ji(n)?r:n}function qp(n,o,c,b,_,A){var P=c&h,L=n.length,B=o.length;if(L!=B&&!(P&&B>L))return!1;var K=A.get(n),Y=A.get(o);if(K&&Y)return K==o&&Y==n;var ee=-1,se=!0,le=c&w?new Ln:r;for(A.set(n,o),A.set(o,n);++ee<L;){var me=n[ee],Te=o[ee];if(b)var pe=P?b(Te,me,ee,o,n,A):b(me,Te,ee,n,o,A);if(pe!==r){if(pe)continue;se=!1;break}if(le){if(!Pu(o,function(Re,Ce){if(!Fi(le,Ce)&&(me===Re||_(me,Re,c,b,A)))return le.push(Ce)})){se=!1;break}}else if(!(me===Te||_(me,Te,c,b,A))){se=!1;break}}return A.delete(n),A.delete(o),se}function Yx(n,o,c,b,_,A,P){switch(c){case ni:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case un:return!(n.byteLength!=o.byteLength||!A(new ms(n),new ms(o)));case Oe:case _e:case nn:return hr(+n,+o);case oe:return n.name==o.name&&n.message==o.message;case Sr:case on:return n==o+"";case St:var L=Mu;case kt:var B=b&h;if(L||(L=cs),n.size!=o.size&&!B)return!1;var K=P.get(n);if(K)return K==o;b|=w,P.set(n,o);var Y=qp(L(n),L(o),b,_,A,P);return P.delete(n),Y;case sn:if(Hi)return Hi.call(n)==Hi.call(o)}return!1}function Xx(n,o,c,b,_,A){var P=c&h,L=sl(n),B=L.length,K=sl(o),Y=K.length;if(B!=Y&&!P)return!1;for(var ee=B;ee--;){var se=L[ee];if(!(P?se in o:De.call(o,se)))return!1}var le=A.get(n),me=A.get(o);if(le&&me)return le==o&&me==n;var Te=!0;A.set(n,o),A.set(o,n);for(var pe=P;++ee<B;){se=L[ee];var Re=n[se],Ce=o[se];if(b)var Ut=P?b(Ce,Re,se,o,n,A):b(Re,Ce,se,n,o,A);if(!(Ut===r?Re===Ce||_(Re,Ce,c,b,A):Ut)){Te=!1;break}pe||(pe=se=="constructor")}if(Te&&!pe){var Pt=n.constructor,qt=o.constructor;Pt!=qt&&"constructor"in n&&"constructor"in o&&!(typeof Pt=="function"&&Pt instanceof Pt&&typeof qt=="function"&&qt instanceof qt)&&(Te=!1)}return A.delete(n),A.delete(o),Te}function qr(n){return hl(Xp(n,r,sh),n+"")}function sl(n){return fp(n,pt,cl)}function al(n){return fp(n,Lt,Gp)}var ul=Ss?function(n){return Ss.get(n)}:Rl;function Ds(n){for(var o=n.name+"",c=fi[o],b=De.call(fi,o)?c.length:0;b--;){var _=c[b],A=_.func;if(A==null||A==n)return _.name}return o}function gi(n){var o=De.call(O,"placeholder")?O:n;return o.placeholder}function ge(){var n=O.iteratee||Ol;return n=n===Ol?hp:n,arguments.length?n(arguments[0],arguments[1]):n}function Ns(n,o){var c=n.__data__;return oS(o)?c[typeof o=="string"?"string":"hash"]:c.map}function ll(n){for(var o=pt(n),c=o.length;c--;){var b=o[c],_=n[b];o[c]=[b,_,Kp(_)]}return o}function Nn(n,o){var c=u1(n,o);return pp(c)?c:r}function Jx(n){var o=De.call(n,In),c=n[In];try{n[In]=r;var b=!0}catch{}var _=hs.call(n);return b&&(o?n[In]=c:delete n[In]),_}var cl=Nu?function(n){return n==null?[]:(n=qe(n),ln(Nu(n),function(o){return Jd.call(n,o)}))}:Pl,Gp=Nu?function(n){for(var o=[];n;)cn(o,cl(n)),n=vs(n);return o}:Pl,_t=At;(Fu&&_t(new Fu(new ArrayBuffer(1)))!=ni||zi&&_t(new zi)!=St||ju&&_t(ju.resolve())!=rs||ci&&_t(new ci)!=kt||Bi&&_t(new Bi)!=an)&&(_t=function(n){var o=At(n),c=o==cr?n.constructor:r,b=c?Fn(c):"";if(b)switch(b){case L1:return ni;case M1:return St;case D1:return rs;case N1:return kt;case F1:return an}return o});function Qx(n,o,c){for(var b=-1,_=c.length;++b<_;){var A=c[b],P=A.size;switch(A.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=Et(o,n+P);break;case"takeRight":n=ft(n,o-P);break}}return{start:n,end:o}}function eS(n){var o=n.match(aw);return o?o[1].split(uw):[]}function Zp(n,o,c){o=gn(o,n);for(var b=-1,_=o.length,A=!1;++b<_;){var P=pr(o[b]);if(!(A=n!=null&&c(n,P)))break;n=n[P]}return A||++b!=_?A:(_=n==null?0:n.length,!!_&&Us(_)&&Gr(P,_)&&(Se(n)||jn(n)))}function tS(n){var o=n.length,c=new n.constructor(o);return o&&typeof n[0]=="string"&&De.call(n,"index")&&(c.index=n.index,c.input=n.input),c}function Vp(n){return typeof n.constructor=="function"&&!Yi(n)?di(vs(n)):{}}function rS(n,o,c){var b=n.constructor;switch(o){case un:return nl(n);case Oe:case _e:return new b(+n);case ni:return jx(n,c);case lu:case cu:case fu:case du:case pu:case hu:case gu:case mu:case vu:return Cp(n,c);case St:return new b;case nn:case on:return new b(n);case Sr:return zx(n);case kt:return new b;case sn:return Bx(n)}}function nS(n,o){var c=o.length;if(!c)return n;var b=c-1;return o[b]=(c>1?"& ":"")+o[b],o=o.join(c>2?", ":" "),n.replace(sw,`{
|
|
183
183
|
/* [wrapped with `+o+`] */
|
|
184
|
-
`)}function bx(n){return Se(n)||Ln(n)||!!($d&&n&&n[$d])}function Ur(n,o){var l=typeof n;return o=o??ce,!!o&&(l=="number"||l!="symbol"&&kb.test(n))&&n>-1&&n%1==0&&n<o}function At(n,o,l){if(!Ve(l))return!1;var b=typeof o;return(b=="number"?kt(l)&&Ur(o,l.length):b=="string"&&o in l)?fr(l[o],n):!1}function tl(n,o){if(Se(n))return!1;var l=typeof n;return l=="number"||l=="symbol"||l=="boolean"||n==null||Wt(n)?!0:vb.test(n)||!mb.test(n)||o!=null&&n in We(o)}function wx(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function rl(n){var o=Cs(n),l=A[o];if(typeof l!="function"||!(o in Pe.prototype))return!1;if(n===l)return!0;var b=Ju(l);return!!b&&n===b[0]}function xx(n){return!!Rd&&Rd in n}var Sx=ss?Br:wl;function Bi(n){var o=n&&n.constructor,l=typeof o=="function"&&o.prototype||ni;return n===l}function Rp(n){return n===n&&!Ve(n)}function Pp(n,o){return function(l){return l==null?!1:l[n]===o&&(o!==r||n in We(l))}}function Ex(n){var o=Fs(n,function(b){return l.size===y&&l.clear(),b}),l=o.cache;return o}function _x(n,o){var l=n[1],b=o[1],_=l|b,T=_<(h|S|M),P=b==M&&l==R||b==M&&l==D&&n[7].length<=o[8]||b==(M|D)&&o[7].length<=o[8]&&l==R;if(!(T||P))return n;b&h&&(n[2]=o[2],_|=l&h?0:E);var I=o[3];if(I){var z=n[3];n[3]=z?fp(z,I,o[4]):I,n[4]=z?sn(n[3],p):o[4]}return I=o[5],I&&(z=n[5],n[5]=z?dp(z,I,o[6]):I,n[6]=z?sn(n[5],p):o[6]),I=o[7],I&&(n[7]=I),b&M&&(n[8]=n[8]==null?o[8]:wt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=_,n}function Ox(n){var o=[];if(n!=null)for(var l in We(n))o.push(l);return o}function Ax(n){return us.call(n)}function Cp(n,o,l){return o=lt(o===r?n.length-1:o,0),function(){for(var b=arguments,_=-1,T=lt(b.length-o,0),P=H(T);++_<T;)P[_]=b[o+_];_=-1;for(var I=H(o+1);++_<o;)I[_]=b[_];return I[o]=l(P),Dt(n,this,I)}}function kp(n,o){return o.length<2?n:kn(n,er(o,0,-1))}function Tx(n,o){for(var l=n.length,b=wt(o.length,l),_=Ct(n);b--;){var T=o[b];n[b]=Ur(T,l)?_[T]:r}return n}function nl(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var $p=Lp(tp),Hi=Uw||function(n,o){return pt.setTimeout(n,o)},il=Lp(X1);function Ip(n,o,l){var b=o+"";return il(n,yx(b,Rx(gx(b),l)))}function Lp(n){var o=0,l=0;return function(){var b=Zw(),_=Z-(b-l);if(l=b,_>0){if(++o>=B)return arguments[0]}else o=0;return n.apply(r,arguments)}}function $s(n,o){var l=-1,b=n.length,_=b-1;for(o=o===r?b:o;++l<o;){var T=zu(l,_),P=n[T];n[T]=n[l],n[l]=P}return n.length=o,n}var Mp=Ex(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(yb,function(l,b,_,T){o.push(_?T.replace(Ob,"$1"):b||l)}),o});function cr(n){if(typeof n=="string"||Wt(n))return n;var o=n+"";return o=="0"&&1/n==-re?"-0":o}function In(n){if(n!=null){try{return as.call(n)}catch{}try{return n+""}catch{}}return""}function Rx(n,o){return Nt(he,function(l){var b="_."+l[0];o&l[1]&&!rs(n,b)&&n.push(b)}),n.sort()}function Fp(n){if(n instanceof Pe)return n.clone();var o=new Jt(n.__wrapped__,n.__chain__);return o.__actions__=Ct(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Px(n,o,l){(l?At(n,o,l):o===r)?o=1:o=lt(Ee(o),0);var b=n==null?0:n.length;if(!b||o<1)return[];for(var _=0,T=0,P=H(hs(b/o));_<b;)P[T++]=er(n,_,_+=o);return P}function Cx(n){for(var o=-1,l=n==null?0:n.length,b=0,_=[];++o<l;){var T=n[o];T&&(_[b++]=T)}return _}function kx(){var n=arguments.length;if(!n)return[];for(var o=H(n-1),l=arguments[0],b=n;b--;)o[b-1]=arguments[b];return on(Se(l)?Ct(l):[l],ht(o,1))}var $x=Te(function(n,o){return rt(n)?Ni(n,ht(o,1,rt,!0)):[]}),Ix=Te(function(n,o){var l=tr(o);return rt(l)&&(l=r),rt(n)?Ni(n,ht(o,1,rt,!0),ge(l,2)):[]}),Lx=Te(function(n,o){var l=tr(o);return rt(l)&&(l=r),rt(n)?Ni(n,ht(o,1,rt,!0),r,l):[]});function Mx(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:Ee(o),er(n,o<0?0:o,b)):[]}function Fx(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:Ee(o),o=b-o,er(n,0,o<0?0:o)):[]}function Dx(n,o){return n&&n.length?_s(n,ge(o,3),!0,!0):[]}function Nx(n,o){return n&&n.length?_s(n,ge(o,3),!0):[]}function jx(n,o,l,b){var _=n==null?0:n.length;return _?(l&&typeof l!="number"&&At(n,o,l)&&(l=0,b=_),k1(n,o,l,b)):[]}function Dp(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=l==null?0:Ee(l);return _<0&&(_=lt(b+_,0)),ns(n,ge(o,3),_)}function Np(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=b-1;return l!==r&&(_=Ee(l),_=l<0?lt(b+_,0):wt(_,b-1)),ns(n,ge(o,3),_,!0)}function jp(n){var o=n==null?0:n.length;return o?ht(n,1):[]}function zx(n){var o=n==null?0:n.length;return o?ht(n,re):[]}function Wx(n,o){var l=n==null?0:n.length;return l?(o=o===r?1:Ee(o),ht(n,o)):[]}function Ux(n){for(var o=-1,l=n==null?0:n.length,b={};++o<l;){var _=n[o];br(b,_[0],_[1])}return b}function zp(n){return n&&n.length?n[0]:r}function Bx(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=l==null?0:Ee(l);return _<0&&(_=lt(b+_,0)),Qn(n,o,_)}function Hx(n){var o=n==null?0:n.length;return o?er(n,0,-1):[]}var qx=Te(function(n){var o=Ze(n,qu);return o.length&&o[0]===n[0]?Mu(o):[]}),Zx=Te(function(n){var o=tr(n),l=Ze(n,qu);return o===tr(l)?o=r:l.pop(),l.length&&l[0]===n[0]?Mu(l,ge(o,2)):[]}),Gx=Te(function(n){var o=tr(n),l=Ze(n,qu);return o=typeof o=="function"?o:r,o&&l.pop(),l.length&&l[0]===n[0]?Mu(l,r,o):[]});function Kx(n,o){return n==null?"":Hw.call(n,o)}function tr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Vx(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=b;return l!==r&&(_=Ee(l),_=_<0?lt(b+_,0):wt(_,b-1)),o===o?Rw(n,o,_):ns(n,wd,_,!0)}function Xx(n,o){return n&&n.length?Yd(n,Ee(o)):r}var Yx=Te(Wp);function Wp(n,o){return n&&n.length&&o&&o.length?ju(n,o):n}function Jx(n,o,l){return n&&n.length&&o&&o.length?ju(n,o,ge(l,2)):n}function Qx(n,o,l){return n&&n.length&&o&&o.length?ju(n,o,r,l):n}var eS=Wr(function(n,o){var l=n==null?0:n.length,b=ku(n,o);return ep(n,Ze(o,function(_){return Ur(_,l)?+_:_}).sort(cp)),b});function tS(n,o){var l=[];if(!(n&&n.length))return l;var b=-1,_=[],T=n.length;for(o=ge(o,3);++b<T;){var P=n[b];o(P,b,n)&&(l.push(P),_.push(b))}return ep(n,_),l}function ol(n){return n==null?n:Kw.call(n)}function rS(n,o,l){var b=n==null?0:n.length;return b?(l&&typeof l!="number"&&At(n,o,l)?(o=0,l=b):(o=o==null?0:Ee(o),l=l===r?b:Ee(l)),er(n,o,l)):[]}function nS(n,o){return Es(n,o)}function iS(n,o,l){return Uu(n,o,ge(l,2))}function oS(n,o){var l=n==null?0:n.length;if(l){var b=Es(n,o);if(b<l&&fr(n[b],o))return b}return-1}function sS(n,o){return Es(n,o,!0)}function aS(n,o,l){return Uu(n,o,ge(l,2),!0)}function uS(n,o){var l=n==null?0:n.length;if(l){var b=Es(n,o,!0)-1;if(fr(n[b],o))return b}return-1}function lS(n){return n&&n.length?rp(n):[]}function cS(n,o){return n&&n.length?rp(n,ge(o,2)):[]}function fS(n){var o=n==null?0:n.length;return o?er(n,1,o):[]}function dS(n,o,l){return n&&n.length?(o=l||o===r?1:Ee(o),er(n,0,o<0?0:o)):[]}function pS(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:Ee(o),o=b-o,er(n,o<0?0:o,b)):[]}function hS(n,o){return n&&n.length?_s(n,ge(o,3),!1,!0):[]}function gS(n,o){return n&&n.length?_s(n,ge(o,3)):[]}var mS=Te(function(n){return ln(ht(n,1,rt,!0))}),vS=Te(function(n){var o=tr(n);return rt(o)&&(o=r),ln(ht(n,1,rt,!0),ge(o,2))}),yS=Te(function(n){var o=tr(n);return o=typeof o=="function"?o:r,ln(ht(n,1,rt,!0),r,o)});function bS(n){return n&&n.length?ln(n):[]}function wS(n,o){return n&&n.length?ln(n,ge(o,2)):[]}function xS(n,o){return o=typeof o=="function"?o:r,n&&n.length?ln(n,r,o):[]}function sl(n){if(!(n&&n.length))return[];var o=0;return n=nn(n,function(l){if(rt(l))return o=lt(l.length,o),!0}),Eu(o,function(l){return Ze(n,wu(l))})}function Up(n,o){if(!(n&&n.length))return[];var l=sl(n);return o==null?l:Ze(l,function(b){return Dt(o,r,b)})}var SS=Te(function(n,o){return rt(n)?Ni(n,o):[]}),ES=Te(function(n){return Hu(nn(n,rt))}),_S=Te(function(n){var o=tr(n);return rt(o)&&(o=r),Hu(nn(n,rt),ge(o,2))}),OS=Te(function(n){var o=tr(n);return o=typeof o=="function"?o:r,Hu(nn(n,rt),r,o)}),AS=Te(sl);function TS(n,o){return sp(n||[],o||[],Di)}function RS(n,o){return sp(n||[],o||[],Wi)}var PS=Te(function(n){var o=n.length,l=o>1?n[o-1]:r;return l=typeof l=="function"?(n.pop(),l):r,Up(n,l)});function Bp(n){var o=A(n);return o.__chain__=!0,o}function CS(n,o){return o(n),n}function Is(n,o){return o(n)}var kS=Wr(function(n){var o=n.length,l=o?n[0]:0,b=this.__wrapped__,_=function(T){return ku(T,n)};return o>1||this.__actions__.length||!(b instanceof Pe)||!Ur(l)?this.thru(_):(b=b.slice(l,+l+(o?1:0)),b.__actions__.push({func:Is,args:[_],thisArg:r}),new Jt(b,this.__chain__).thru(function(T){return o&&!T.length&&T.push(r),T}))});function $S(){return Bp(this)}function IS(){return new Jt(this.value(),this.__chain__)}function LS(){this.__values__===r&&(this.__values__=nh(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function MS(){return this}function FS(n){for(var o,l=this;l instanceof ys;){var b=Fp(l);b.__index__=0,b.__values__=r,o?_.__wrapped__=b:o=b;var _=b;l=l.__wrapped__}return _.__wrapped__=n,o}function DS(){var n=this.__wrapped__;if(n instanceof Pe){var o=n;return this.__actions__.length&&(o=new Pe(this)),o=o.reverse(),o.__actions__.push({func:Is,args:[ol],thisArg:r}),new Jt(o,this.__chain__)}return this.thru(ol)}function NS(){return op(this.__wrapped__,this.__actions__)}var jS=Os(function(n,o,l){Le.call(n,l)?++n[l]:br(n,l,1)});function zS(n,o,l){var b=Se(n)?yd:C1;return l&&At(n,o,l)&&(o=r),b(n,ge(o,3))}function WS(n,o){var l=Se(n)?nn:Ud;return l(n,ge(o,3))}var US=mp(Dp),BS=mp(Np);function HS(n,o){return ht(Ls(n,o),1)}function qS(n,o){return ht(Ls(n,o),re)}function ZS(n,o,l){return l=l===r?1:Ee(l),ht(Ls(n,o),l)}function Hp(n,o){var l=Se(n)?Nt:un;return l(n,ge(o,3))}function qp(n,o){var l=Se(n)?fw:Wd;return l(n,ge(o,3))}var GS=Os(function(n,o,l){Le.call(n,l)?n[l].push(o):br(n,l,[o])});function KS(n,o,l,b){n=kt(n)?n:fi(n),l=l&&!b?Ee(l):0;var _=n.length;return l<0&&(l=lt(_+l,0)),js(n)?l<=_&&n.indexOf(o,l)>-1:!!_&&Qn(n,o,l)>-1}var VS=Te(function(n,o,l){var b=-1,_=typeof o=="function",T=kt(n)?H(n.length):[];return un(n,function(P){T[++b]=_?Dt(o,P,l):ji(P,o,l)}),T}),XS=Os(function(n,o,l){br(n,l,o)});function Ls(n,o){var l=Se(n)?Ze:Kd;return l(n,ge(o,3))}function YS(n,o,l,b){return n==null?[]:(Se(o)||(o=o==null?[]:[o]),l=b?r:l,Se(l)||(l=l==null?[]:[l]),Jd(n,o,l))}var JS=Os(function(n,o,l){n[l?0:1].push(o)},function(){return[[],[]]});function QS(n,o,l){var b=Se(n)?yu:Sd,_=arguments.length<3;return b(n,ge(o,4),l,_,un)}function eE(n,o,l){var b=Se(n)?dw:Sd,_=arguments.length<3;return b(n,ge(o,4),l,_,Wd)}function tE(n,o){var l=Se(n)?nn:Ud;return l(n,Ds(ge(o,3)))}function rE(n){var o=Se(n)?Dd:K1;return o(n)}function nE(n,o,l){(l?At(n,o,l):o===r)?o=1:o=Ee(o);var b=Se(n)?O1:V1;return b(n,o)}function iE(n){var o=Se(n)?A1:Y1;return o(n)}function oE(n){if(n==null)return 0;if(kt(n))return js(n)?ti(n):n.length;var o=xt(n);return o==bt||o==Pt?n.size:Du(n).length}function sE(n,o,l){var b=Se(n)?bu:J1;return l&&At(n,o,l)&&(o=r),b(n,ge(o,3))}var aE=Te(function(n,o){if(n==null)return[];var l=o.length;return l>1&&At(n,o[0],o[1])?o=[]:l>2&&At(o[0],o[1],o[2])&&(o=[o[0]]),Jd(n,ht(o,1),[])}),Ms=Ww||function(){return pt.Date.now()};function uE(n,o){if(typeof o!="function")throw new Yt(u);return n=Ee(n),function(){if(--n<1)return o.apply(this,arguments)}}function Zp(n,o,l){return o=l?r:o,o=n&&o==null?n.length:o,zr(n,M,r,r,r,r,o)}function Gp(n,o){var l;if(typeof o!="function")throw new Yt(u);return n=Ee(n),function(){return--n>0&&(l=o.apply(this,arguments)),n<=1&&(o=r),l}}var al=Te(function(n,o,l){var b=h;if(l.length){var _=sn(l,li(al));b|=C}return zr(n,b,o,l,_)}),Kp=Te(function(n,o,l){var b=h|S;if(l.length){var _=sn(l,li(Kp));b|=C}return zr(o,b,n,l,_)});function Vp(n,o,l){o=l?r:o;var b=zr(n,R,r,r,r,r,r,o);return b.placeholder=Vp.placeholder,b}function Xp(n,o,l){o=l?r:o;var b=zr(n,O,r,r,r,r,r,o);return b.placeholder=Xp.placeholder,b}function Yp(n,o,l){var b,_,T,P,I,z,V=0,X=!1,ee=!1,se=!0;if(typeof n!="function")throw new Yt(u);o=rr(o)||0,Ve(l)&&(X=!!l.leading,ee="maxWait"in l,T=ee?lt(rr(l.maxWait)||0,o):T,se="trailing"in l?!!l.trailing:se);function le(nt){var dr=b,qr=_;return b=_=r,V=nt,P=n.apply(qr,dr),P}function me(nt){return V=nt,I=Hi(Re,o),X?le(nt):P}function Oe(nt){var dr=nt-z,qr=nt-V,vh=o-dr;return ee?wt(vh,T-qr):vh}function pe(nt){var dr=nt-z,qr=nt-V;return z===r||dr>=o||dr<0||ee&&qr>=T}function Re(){var nt=Ms();if(pe(nt))return Ce(nt);I=Hi(Re,Oe(nt))}function Ce(nt){return I=r,se&&b?le(nt):(b=_=r,P)}function Ut(){I!==r&&ap(I),V=0,b=z=_=I=r}function Tt(){return I===r?P:Ce(Ms())}function Bt(){var nt=Ms(),dr=pe(nt);if(b=arguments,_=this,z=nt,dr){if(I===r)return me(z);if(ee)return ap(I),I=Hi(Re,o),le(z)}return I===r&&(I=Hi(Re,o)),P}return Bt.cancel=Ut,Bt.flush=Tt,Bt}var lE=Te(function(n,o){return zd(n,1,o)}),cE=Te(function(n,o,l){return zd(n,rr(o)||0,l)});function fE(n){return zr(n,q)}function Fs(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Yt(u);var l=function(){var b=arguments,_=o?o.apply(this,b):b[0],T=l.cache;if(T.has(_))return T.get(_);var P=n.apply(this,b);return l.cache=T.set(_,P)||T,P};return l.cache=new(Fs.Cache||jr),l}Fs.Cache=jr;function Ds(n){if(typeof n!="function")throw new Yt(u);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function dE(n){return Gp(2,n)}var pE=Q1(function(n,o){o=o.length==1&&Se(o[0])?Ze(o[0],jt(ge())):Ze(ht(o,1),jt(ge()));var l=o.length;return Te(function(b){for(var _=-1,T=wt(b.length,l);++_<T;)b[_]=o[_].call(this,b[_]);return Dt(n,this,b)})}),ul=Te(function(n,o){var l=sn(o,li(ul));return zr(n,C,r,o,l)}),Jp=Te(function(n,o){var l=sn(o,li(Jp));return zr(n,U,r,o,l)}),hE=Wr(function(n,o){return zr(n,D,r,r,r,o)});function gE(n,o){if(typeof n!="function")throw new Yt(u);return o=o===r?o:Ee(o),Te(n,o)}function mE(n,o){if(typeof n!="function")throw new Yt(u);return o=o==null?0:lt(Ee(o),0),Te(function(l){var b=l[o],_=fn(l,0,o);return b&&on(_,b),Dt(n,this,_)})}function vE(n,o,l){var b=!0,_=!0;if(typeof n!="function")throw new Yt(u);return Ve(l)&&(b="leading"in l?!!l.leading:b,_="trailing"in l?!!l.trailing:_),Yp(n,o,{leading:b,maxWait:o,trailing:_})}function yE(n){return Zp(n,1)}function bE(n,o){return ul(Zu(o),n)}function wE(){if(!arguments.length)return[];var n=arguments[0];return Se(n)?n:[n]}function xE(n){return Qt(n,x)}function SE(n,o){return o=typeof o=="function"?o:r,Qt(n,x,o)}function EE(n){return Qt(n,g|x)}function _E(n,o){return o=typeof o=="function"?o:r,Qt(n,g|x,o)}function OE(n,o){return o==null||jd(n,o,ft(o))}function fr(n,o){return n===o||n!==n&&o!==o}var AE=Ps(Lu),TE=Ps(function(n,o){return n>=o}),Ln=qd((function(){return arguments})())?qd:function(n){return et(n)&&Le.call(n,"callee")&&!kd.call(n,"callee")},Se=H.isArray,RE=dd?jt(dd):F1;function kt(n){return n!=null&&Ns(n.length)&&!Br(n)}function rt(n){return et(n)&&kt(n)}function PE(n){return n===!0||n===!1||et(n)&&Ot(n)==Ae}var dn=Bw||wl,CE=pd?jt(pd):D1;function kE(n){return et(n)&&n.nodeType===1&&!qi(n)}function $E(n){if(n==null)return!0;if(kt(n)&&(Se(n)||typeof n=="string"||typeof n.splice=="function"||dn(n)||ci(n)||Ln(n)))return!n.length;var o=xt(n);if(o==bt||o==Pt)return!n.size;if(Bi(n))return!Du(n).length;for(var l in n)if(Le.call(n,l))return!1;return!0}function IE(n,o){return zi(n,o)}function LE(n,o,l){l=typeof l=="function"?l:r;var b=l?l(n,o):r;return b===r?zi(n,o,r,l):!!b}function ll(n){if(!et(n))return!1;var o=Ot(n);return o==oe||o==ot||typeof n.message=="string"&&typeof n.name=="string"&&!qi(n)}function ME(n){return typeof n=="number"&&Id(n)}function Br(n){if(!Ve(n))return!1;var o=Ot(n);return o==ct||o==Fr||o==xe||o==Dr}function Qp(n){return typeof n=="number"&&n==Ee(n)}function Ns(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ce}function Ve(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function et(n){return n!=null&&typeof n=="object"}var eh=hd?jt(hd):j1;function FE(n,o){return n===o||Fu(n,o,Qu(o))}function DE(n,o,l){return l=typeof l=="function"?l:r,Fu(n,o,Qu(o),l)}function NE(n){return th(n)&&n!=+n}function jE(n){if(Sx(n))throw new be(a);return Zd(n)}function zE(n){return n===null}function WE(n){return n==null}function th(n){return typeof n=="number"||et(n)&&Ot(n)==Jr}function qi(n){if(!et(n)||Ot(n)!=ar)return!1;var o=fs(n);if(o===null)return!0;var l=Le.call(o,"constructor")&&o.constructor;return typeof l=="function"&&l instanceof l&&as.call(l)==Dw}var cl=gd?jt(gd):z1;function UE(n){return Qp(n)&&n>=-ce&&n<=ce}var rh=md?jt(md):W1;function js(n){return typeof n=="string"||!Se(n)&&et(n)&&Ot(n)==Qr}function Wt(n){return typeof n=="symbol"||et(n)&&Ot(n)==en}var ci=vd?jt(vd):U1;function BE(n){return n===r}function HE(n){return et(n)&&xt(n)==tn}function qE(n){return et(n)&&Ot(n)==Jo}var ZE=Ps(Nu),GE=Ps(function(n,o){return n<=o});function nh(n){if(!n)return[];if(kt(n))return js(n)?ur(n):Ct(n);if($i&&n[$i])return Ow(n[$i]());var o=xt(n),l=o==bt?Ou:o==Pt?is:fi;return l(n)}function Hr(n){if(!n)return n===0?n:0;if(n=rr(n),n===re||n===-re){var o=n<0?-1:1;return o*G}return n===n?n:0}function Ee(n){var o=Hr(n),l=o%1;return o===o?l?o-l:o:0}function ih(n){return n?Cn(Ee(n),0,ne):0}function rr(n){if(typeof n=="number")return n;if(Wt(n))return te;if(Ve(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ve(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Ed(n);var l=Rb.test(n);return l||Cb.test(n)?uw(n.slice(2),l?2:8):Tb.test(n)?te:+n}function oh(n){return xr(n,$t(n))}function KE(n){return n?Cn(Ee(n),-ce,ce):n===0?n:0}function Me(n){return n==null?"":zt(n)}var VE=ai(function(n,o){if(Bi(o)||kt(o)){xr(o,ft(o),n);return}for(var l in o)Le.call(o,l)&&Di(n,l,o[l])}),sh=ai(function(n,o){xr(o,$t(o),n)}),ah=ai(function(n,o,l,b){xr(o,$t(o),n,b)}),fl=ai(function(n,o,l,b){xr(o,ft(o),n,b)}),XE=Wr(ku);function YE(n,o){var l=si(n);return o==null?l:Nd(l,o)}var JE=Te(function(n,o){n=We(n);var l=-1,b=o.length,_=b>2?o[2]:r;for(_&&At(o[0],o[1],_)&&(b=1);++l<b;)for(var T=o[l],P=$t(T),I=-1,z=P.length;++I<z;){var V=P[I],X=n[V];(X===r||fr(X,ni[V])&&!Le.call(n,V))&&(n[V]=T[V])}return n}),QE=Te(function(n){return n.push(r,Ep),Dt(uh,r,n)});function e_(n,o){return bd(n,ge(o,3),wr)}function t_(n,o){return bd(n,ge(o,3),Iu)}function r_(n,o){return n==null?n:$u(n,ge(o,3),$t)}function n_(n,o){return n==null?n:Bd(n,ge(o,3),$t)}function i_(n,o){return n&&wr(n,ge(o,3))}function o_(n,o){return n&&Iu(n,ge(o,3))}function s_(n){return n==null?[]:xs(n,ft(n))}function a_(n){return n==null?[]:xs(n,$t(n))}function dl(n,o,l){var b=n==null?r:kn(n,o);return b===r?l:b}function u_(n,o){return n!=null&&Ap(n,o,$1)}function pl(n,o){return n!=null&&Ap(n,o,I1)}var l_=yp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),n[o]=l},gl(It)),c_=yp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),Le.call(n,o)?n[o].push(l):n[o]=[l]},ge),f_=Te(ji);function ft(n){return kt(n)?Fd(n):Du(n)}function $t(n){return kt(n)?Fd(n,!0):B1(n)}function d_(n,o){var l={};return o=ge(o,3),wr(n,function(b,_,T){br(l,o(b,_,T),b)}),l}function p_(n,o){var l={};return o=ge(o,3),wr(n,function(b,_,T){br(l,_,o(b,_,T))}),l}var h_=ai(function(n,o,l){Ss(n,o,l)}),uh=ai(function(n,o,l,b){Ss(n,o,l,b)}),g_=Wr(function(n,o){var l={};if(n==null)return l;var b=!1;o=Ze(o,function(T){return T=cn(T,n),b||(b=T.length>1),T}),xr(n,Yu(n),l),b&&(l=Qt(l,g|v|x,cx));for(var _=o.length;_--;)Bu(l,o[_]);return l});function m_(n,o){return lh(n,Ds(ge(o)))}var v_=Wr(function(n,o){return n==null?{}:q1(n,o)});function lh(n,o){if(n==null)return{};var l=Ze(Yu(n),function(b){return[b]});return o=ge(o),Qd(n,l,function(b,_){return o(b,_[0])})}function y_(n,o,l){o=cn(o,n);var b=-1,_=o.length;for(_||(_=1,n=r);++b<_;){var T=n==null?r:n[cr(o[b])];T===r&&(b=_,T=l),n=Br(T)?T.call(n):T}return n}function b_(n,o,l){return n==null?n:Wi(n,o,l)}function w_(n,o,l,b){return b=typeof b=="function"?b:r,n==null?n:Wi(n,o,l,b)}var ch=xp(ft),fh=xp($t);function x_(n,o,l){var b=Se(n),_=b||dn(n)||ci(n);if(o=ge(o,4),l==null){var T=n&&n.constructor;_?l=b?new T:[]:Ve(n)?l=Br(T)?si(fs(n)):{}:l={}}return(_?Nt:wr)(n,function(P,I,z){return o(l,P,I,z)}),l}function S_(n,o){return n==null?!0:Bu(n,o)}function E_(n,o,l){return n==null?n:ip(n,o,Zu(l))}function __(n,o,l,b){return b=typeof b=="function"?b:r,n==null?n:ip(n,o,Zu(l),b)}function fi(n){return n==null?[]:_u(n,ft(n))}function O_(n){return n==null?[]:_u(n,$t(n))}function A_(n,o,l){return l===r&&(l=o,o=r),l!==r&&(l=rr(l),l=l===l?l:0),o!==r&&(o=rr(o),o=o===o?o:0),Cn(rr(n),o,l)}function T_(n,o,l){return o=Hr(o),l===r?(l=o,o=0):l=Hr(l),n=rr(n),L1(n,o,l)}function R_(n,o,l){if(l&&typeof l!="boolean"&&At(n,o,l)&&(o=l=r),l===r&&(typeof o=="boolean"?(l=o,o=r):typeof n=="boolean"&&(l=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Hr(n),o===r?(o=n,n=0):o=Hr(o)),n>o){var b=n;n=o,o=b}if(l||n%1||o%1){var _=Ld();return wt(n+_*(o-n+aw("1e-"+((_+"").length-1))),o)}return zu(n,o)}var P_=ui(function(n,o,l){return o=o.toLowerCase(),n+(l?dh(o):o)});function dh(n){return hl(Me(n).toLowerCase())}function ph(n){return n=Me(n),n&&n.replace($b,ww).replace(Yb,"")}function C_(n,o,l){n=Me(n),o=zt(o);var b=n.length;l=l===r?b:Cn(Ee(l),0,b);var _=l;return l-=o.length,l>=0&&n.slice(l,_)==o}function k_(n){return n=Me(n),n&&pb.test(n)?n.replace(Uf,xw):n}function $_(n){return n=Me(n),n&&bb.test(n)?n.replace(uu,"\\$&"):n}var I_=ui(function(n,o,l){return n+(l?"-":"")+o.toLowerCase()}),L_=ui(function(n,o,l){return n+(l?" ":"")+o.toLowerCase()}),M_=gp("toLowerCase");function F_(n,o,l){n=Me(n),o=Ee(o);var b=o?ti(n):0;if(!o||b>=o)return n;var _=(o-b)/2;return Rs(gs(_),l)+n+Rs(hs(_),l)}function D_(n,o,l){n=Me(n),o=Ee(o);var b=o?ti(n):0;return o&&b<o?n+Rs(o-b,l):n}function N_(n,o,l){n=Me(n),o=Ee(o);var b=o?ti(n):0;return o&&b<o?Rs(o-b,l)+n:n}function j_(n,o,l){return l||o==null?o=0:o&&(o=+o),Gw(Me(n).replace(lu,""),o||0)}function z_(n,o,l){return(l?At(n,o,l):o===r)?o=1:o=Ee(o),Wu(Me(n),o)}function W_(){var n=arguments,o=Me(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var U_=ui(function(n,o,l){return n+(l?"_":"")+o.toLowerCase()});function B_(n,o,l){return l&&typeof l!="number"&&At(n,o,l)&&(o=l=r),l=l===r?ne:l>>>0,l?(n=Me(n),n&&(typeof o=="string"||o!=null&&!cl(o))&&(o=zt(o),!o&&ei(n))?fn(ur(n),0,l):n.split(o,l)):[]}var H_=ui(function(n,o,l){return n+(l?" ":"")+hl(o)});function q_(n,o,l){return n=Me(n),l=l==null?0:Cn(Ee(l),0,n.length),o=zt(o),n.slice(l,l+o.length)==o}function Z_(n,o,l){var b=A.templateSettings;l&&At(n,o,l)&&(o=r),n=Me(n),o=fl({},o,b,Sp);var _=fl({},o.imports,b.imports,Sp),T=ft(_),P=_u(_,T);Nt(T,function(pe){if(Hf.test(pe))throw new be(f)});var I,z,V=0,X=o.interpolate||Qo,ee="__p += '",se=Au((o.escape||Qo).source+"|"+X.source+"|"+(X===Bf?Ab:Qo).source+"|"+(o.evaluate||Qo).source+"|$","g"),le="//# sourceURL="+(Le.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rw+"]")+`
|
|
185
|
-
`;n.replace(se,function(pe,Re,Ce,Ut,
|
|
184
|
+
`)}function iS(n){return Se(n)||jn(n)||!!(Qd&&n&&n[Qd])}function Gr(n,o){var c=typeof n;return o=o??ce,!!o&&(c=="number"||c!="symbol"&&mw.test(n))&&n>-1&&n%1==0&&n<o}function Rt(n,o,c){if(!et(c))return!1;var b=typeof o;return(b=="number"?$t(c)&&Gr(o,c.length):b=="string"&&o in c)?hr(c[o],n):!1}function fl(n,o){if(Se(n))return!1;var c=typeof n;return c=="number"||c=="symbol"||c=="boolean"||n==null||Ht(n)?!0:rw.test(n)||!tw.test(n)||o!=null&&n in qe(o)}function oS(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function dl(n){var o=Ds(n),c=O[o];if(typeof c!="function"||!(o in Pe.prototype))return!1;if(n===c)return!0;var b=ul(c);return!!b&&n===b[0]}function sS(n){return!!Kd&&Kd in n}var aS=ds?Zr:Cl;function Yi(n){var o=n&&n.constructor,c=typeof o=="function"&&o.prototype||li;return n===c}function Kp(n){return n===n&&!et(n)}function Yp(n,o){return function(c){return c==null?!1:c[n]===o&&(o!==r||n in qe(c))}}function uS(n){var o=Ws(n,function(b){return c.size===m&&c.clear(),b}),c=o.cache;return o}function lS(n,o){var c=n[1],b=o[1],_=c|b,A=_<(v|S|N),P=b==N&&c==R||b==N&&c==F&&n[7].length<=o[8]||b==(N|F)&&o[7].length<=o[8]&&c==R;if(!(A||P))return n;b&v&&(n[2]=o[2],_|=c&v?0:E);var L=o[3];if(L){var B=n[3];n[3]=B?Ip(B,L,o[4]):L,n[4]=B?fn(n[3],d):o[4]}return L=o[5],L&&(B=n[5],n[5]=B?$p(B,L,o[6]):L,n[6]=B?fn(n[5],d):o[6]),L=o[7],L&&(n[7]=L),b&N&&(n[8]=n[8]==null?o[8]:Et(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=_,n}function cS(n){var o=[];if(n!=null)for(var c in qe(n))o.push(c);return o}function fS(n){return hs.call(n)}function Xp(n,o,c){return o=ft(o===r?n.length-1:o,0),function(){for(var b=arguments,_=-1,A=ft(b.length-o,0),P=U(A);++_<A;)P[_]=b[o+_];_=-1;for(var L=U(o+1);++_<o;)L[_]=b[_];return L[o]=c(P),jt(n,this,L)}}function Jp(n,o){return o.length<2?n:Dn(n,rr(o,0,-1))}function dS(n,o){for(var c=n.length,b=Et(o.length,c),_=It(n);b--;){var A=o[b];n[b]=Gr(A,c)?_[A]:r}return n}function pl(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Qp=th(Sp),Xi=A1||function(n,o){return gt.setTimeout(n,o)},hl=th(Mx);function eh(n,o,c){var b=o+"";return hl(n,nS(b,pS(eS(b),c)))}function th(n){var o=0,c=0;return function(){var b=k1(),_=G-(b-c);if(c=b,_>0){if(++o>=H)return arguments[0]}else o=0;return n.apply(r,arguments)}}function Fs(n,o){var c=-1,b=n.length,_=b-1;for(o=o===r?b:o;++c<o;){var A=Yu(c,_),P=n[A];n[A]=n[c],n[c]=P}return n.length=o,n}var rh=uS(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(nw,function(c,b,_,A){o.push(_?A.replace(cw,"$1"):b||c)}),o});function pr(n){if(typeof n=="string"||Ht(n))return n;var o=n+"";return o=="0"&&1/n==-re?"-0":o}function Fn(n){if(n!=null){try{return ps.call(n)}catch{}try{return n+""}catch{}}return""}function pS(n,o){return zt(he,function(c){var b="_."+c[0];o&c[1]&&!us(n,b)&&n.push(b)}),n.sort()}function nh(n){if(n instanceof Pe)return n.clone();var o=new er(n.__wrapped__,n.__chain__);return o.__actions__=It(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function hS(n,o,c){(c?Rt(n,o,c):o===r)?o=1:o=ft(Ee(o),0);var b=n==null?0:n.length;if(!b||o<1)return[];for(var _=0,A=0,P=U(ws(b/o));_<b;)P[A++]=rr(n,_,_+=o);return P}function gS(n){for(var o=-1,c=n==null?0:n.length,b=0,_=[];++o<c;){var A=n[o];A&&(_[b++]=A)}return _}function mS(){var n=arguments.length;if(!n)return[];for(var o=U(n-1),c=arguments[0],b=n;b--;)o[b-1]=arguments[b];return cn(Se(c)?It(c):[c],mt(o,1))}var vS=Ae(function(n,o){return it(n)?qi(n,mt(o,1,it,!0)):[]}),yS=Ae(function(n,o){var c=nr(o);return it(c)&&(c=r),it(n)?qi(n,mt(o,1,it,!0),ge(c,2)):[]}),bS=Ae(function(n,o){var c=nr(o);return it(c)&&(c=r),it(n)?qi(n,mt(o,1,it,!0),r,c):[]});function wS(n,o,c){var b=n==null?0:n.length;return b?(o=c||o===r?1:Ee(o),rr(n,o<0?0:o,b)):[]}function xS(n,o,c){var b=n==null?0:n.length;return b?(o=c||o===r?1:Ee(o),o=b-o,rr(n,0,o<0?0:o)):[]}function SS(n,o){return n&&n.length?Cs(n,ge(o,3),!0,!0):[]}function ES(n,o){return n&&n.length?Cs(n,ge(o,3),!0):[]}function _S(n,o,c,b){var _=n==null?0:n.length;return _?(c&&typeof c!="number"&&Rt(n,o,c)&&(c=0,b=_),mx(n,o,c,b)):[]}function ih(n,o,c){var b=n==null?0:n.length;if(!b)return-1;var _=c==null?0:Ee(c);return _<0&&(_=ft(b+_,0)),ls(n,ge(o,3),_)}function oh(n,o,c){var b=n==null?0:n.length;if(!b)return-1;var _=b-1;return c!==r&&(_=Ee(c),_=c<0?ft(b+_,0):Et(_,b-1)),ls(n,ge(o,3),_,!0)}function sh(n){var o=n==null?0:n.length;return o?mt(n,1):[]}function TS(n){var o=n==null?0:n.length;return o?mt(n,re):[]}function OS(n,o){var c=n==null?0:n.length;return c?(o=o===r?1:Ee(o),mt(n,o)):[]}function AS(n){for(var o=-1,c=n==null?0:n.length,b={};++o<c;){var _=n[o];Er(b,_[0],_[1])}return b}function ah(n){return n&&n.length?n[0]:r}function RS(n,o,c){var b=n==null?0:n.length;if(!b)return-1;var _=c==null?0:Ee(c);return _<0&&(_=ft(b+_,0)),oi(n,o,_)}function PS(n){var o=n==null?0:n.length;return o?rr(n,0,-1):[]}var CS=Ae(function(n){var o=Ye(n,tl);return o.length&&o[0]===n[0]?qu(o):[]}),kS=Ae(function(n){var o=nr(n),c=Ye(n,tl);return o===nr(c)?o=r:c.pop(),c.length&&c[0]===n[0]?qu(c,ge(o,2)):[]}),IS=Ae(function(n){var o=nr(n),c=Ye(n,tl);return o=typeof o=="function"?o:r,o&&c.pop(),c.length&&c[0]===n[0]?qu(c,r,o):[]});function $S(n,o){return n==null?"":P1.call(n,o)}function nr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function LS(n,o,c){var b=n==null?0:n.length;if(!b)return-1;var _=b;return c!==r&&(_=Ee(c),_=_<0?ft(b+_,0):Et(_,b-1)),o===o?p1(n,o,_):ls(n,Bd,_,!0)}function MS(n,o){return n&&n.length?yp(n,Ee(o)):r}var DS=Ae(uh);function uh(n,o){return n&&n.length&&o&&o.length?Ku(n,o):n}function NS(n,o,c){return n&&n.length&&o&&o.length?Ku(n,o,ge(c,2)):n}function FS(n,o,c){return n&&n.length&&o&&o.length?Ku(n,o,r,c):n}var jS=qr(function(n,o){var c=n==null?0:n.length,b=Bu(n,o);return xp(n,Ye(o,function(_){return Gr(_,c)?+_:_}).sort(kp)),b});function zS(n,o){var c=[];if(!(n&&n.length))return c;var b=-1,_=[],A=n.length;for(o=ge(o,3);++b<A;){var P=n[b];o(P,b,n)&&(c.push(P),_.push(b))}return xp(n,_),c}function gl(n){return n==null?n:$1.call(n)}function BS(n,o,c){var b=n==null?0:n.length;return b?(c&&typeof c!="number"&&Rt(n,o,c)?(o=0,c=b):(o=o==null?0:Ee(o),c=c===r?b:Ee(c)),rr(n,o,c)):[]}function WS(n,o){return Ps(n,o)}function HS(n,o,c){return Ju(n,o,ge(c,2))}function US(n,o){var c=n==null?0:n.length;if(c){var b=Ps(n,o);if(b<c&&hr(n[b],o))return b}return-1}function qS(n,o){return Ps(n,o,!0)}function GS(n,o,c){return Ju(n,o,ge(c,2),!0)}function ZS(n,o){var c=n==null?0:n.length;if(c){var b=Ps(n,o,!0)-1;if(hr(n[b],o))return b}return-1}function VS(n){return n&&n.length?Ep(n):[]}function KS(n,o){return n&&n.length?Ep(n,ge(o,2)):[]}function YS(n){var o=n==null?0:n.length;return o?rr(n,1,o):[]}function XS(n,o,c){return n&&n.length?(o=c||o===r?1:Ee(o),rr(n,0,o<0?0:o)):[]}function JS(n,o,c){var b=n==null?0:n.length;return b?(o=c||o===r?1:Ee(o),o=b-o,rr(n,o<0?0:o,b)):[]}function QS(n,o){return n&&n.length?Cs(n,ge(o,3),!1,!0):[]}function eE(n,o){return n&&n.length?Cs(n,ge(o,3)):[]}var tE=Ae(function(n){return hn(mt(n,1,it,!0))}),rE=Ae(function(n){var o=nr(n);return it(o)&&(o=r),hn(mt(n,1,it,!0),ge(o,2))}),nE=Ae(function(n){var o=nr(n);return o=typeof o=="function"?o:r,hn(mt(n,1,it,!0),r,o)});function iE(n){return n&&n.length?hn(n):[]}function oE(n,o){return n&&n.length?hn(n,ge(o,2)):[]}function sE(n,o){return o=typeof o=="function"?o:r,n&&n.length?hn(n,r,o):[]}function ml(n){if(!(n&&n.length))return[];var o=0;return n=ln(n,function(c){if(it(c))return o=ft(c.length,o),!0}),$u(o,function(c){return Ye(n,Cu(c))})}function lh(n,o){if(!(n&&n.length))return[];var c=ml(n);return o==null?c:Ye(c,function(b){return jt(o,r,b)})}var aE=Ae(function(n,o){return it(n)?qi(n,o):[]}),uE=Ae(function(n){return el(ln(n,it))}),lE=Ae(function(n){var o=nr(n);return it(o)&&(o=r),el(ln(n,it),ge(o,2))}),cE=Ae(function(n){var o=nr(n);return o=typeof o=="function"?o:r,el(ln(n,it),r,o)}),fE=Ae(ml);function dE(n,o){return Ap(n||[],o||[],Ui)}function pE(n,o){return Ap(n||[],o||[],Vi)}var hE=Ae(function(n){var o=n.length,c=o>1?n[o-1]:r;return c=typeof c=="function"?(n.pop(),c):r,lh(n,c)});function ch(n){var o=O(n);return o.__chain__=!0,o}function gE(n,o){return o(n),n}function js(n,o){return o(n)}var mE=qr(function(n){var o=n.length,c=o?n[0]:0,b=this.__wrapped__,_=function(A){return Bu(A,n)};return o>1||this.__actions__.length||!(b instanceof Pe)||!Gr(c)?this.thru(_):(b=b.slice(c,+c+(o?1:0)),b.__actions__.push({func:js,args:[_],thisArg:r}),new er(b,this.__chain__).thru(function(A){return o&&!A.length&&A.push(r),A}))});function vE(){return ch(this)}function yE(){return new er(this.value(),this.__chain__)}function bE(){this.__values__===r&&(this.__values__=_h(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function wE(){return this}function xE(n){for(var o,c=this;c instanceof _s;){var b=nh(c);b.__index__=0,b.__values__=r,o?_.__wrapped__=b:o=b;var _=b;c=c.__wrapped__}return _.__wrapped__=n,o}function SE(){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:js,args:[gl],thisArg:r}),new er(o,this.__chain__)}return this.thru(gl)}function EE(){return Op(this.__wrapped__,this.__actions__)}var _E=ks(function(n,o,c){De.call(n,c)?++n[c]:Er(n,c,1)});function TE(n,o,c){var b=Se(n)?jd:gx;return c&&Rt(n,o,c)&&(o=r),b(n,ge(o,3))}function OE(n,o){var c=Se(n)?ln:lp;return c(n,ge(o,3))}var AE=Np(ih),RE=Np(oh);function PE(n,o){return mt(zs(n,o),1)}function CE(n,o){return mt(zs(n,o),re)}function kE(n,o,c){return c=c===r?1:Ee(c),mt(zs(n,o),c)}function fh(n,o){var c=Se(n)?zt:pn;return c(n,ge(o,3))}function dh(n,o){var c=Se(n)?Yw:up;return c(n,ge(o,3))}var IE=ks(function(n,o,c){De.call(n,c)?n[c].push(o):Er(n,c,[o])});function $E(n,o,c,b){n=$t(n)?n:vi(n),c=c&&!b?Ee(c):0;var _=n.length;return c<0&&(c=ft(_+c,0)),qs(n)?c<=_&&n.indexOf(o,c)>-1:!!_&&oi(n,o,c)>-1}var LE=Ae(function(n,o,c){var b=-1,_=typeof o=="function",A=$t(n)?U(n.length):[];return pn(n,function(P){A[++b]=_?jt(o,P,c):Gi(P,o,c)}),A}),ME=ks(function(n,o,c){Er(n,c,o)});function zs(n,o){var c=Se(n)?Ye:gp;return c(n,ge(o,3))}function DE(n,o,c,b){return n==null?[]:(Se(o)||(o=o==null?[]:[o]),c=b?r:c,Se(c)||(c=c==null?[]:[c]),bp(n,o,c))}var NE=ks(function(n,o,c){n[c?0:1].push(o)},function(){return[[],[]]});function FE(n,o,c){var b=Se(n)?Ru:Hd,_=arguments.length<3;return b(n,ge(o,4),c,_,pn)}function jE(n,o,c){var b=Se(n)?Xw:Hd,_=arguments.length<3;return b(n,ge(o,4),c,_,up)}function zE(n,o){var c=Se(n)?ln:lp;return c(n,Hs(ge(o,3)))}function BE(n){var o=Se(n)?ip:$x;return o(n)}function WE(n,o,c){(c?Rt(n,o,c):o===r)?o=1:o=Ee(o);var b=Se(n)?cx:Lx;return b(n,o)}function HE(n){var o=Se(n)?fx:Dx;return o(n)}function UE(n){if(n==null)return 0;if($t(n))return qs(n)?ai(n):n.length;var o=_t(n);return o==St||o==kt?n.size:Zu(n).length}function qE(n,o,c){var b=Se(n)?Pu:Nx;return c&&Rt(n,o,c)&&(o=r),b(n,ge(o,3))}var GE=Ae(function(n,o){if(n==null)return[];var c=o.length;return c>1&&Rt(n,o[0],o[1])?o=[]:c>2&&Rt(o[0],o[1],o[2])&&(o=[o[0]]),bp(n,mt(o,1),[])}),Bs=O1||function(){return gt.Date.now()};function ZE(n,o){if(typeof o!="function")throw new Qt(u);return n=Ee(n),function(){if(--n<1)return o.apply(this,arguments)}}function ph(n,o,c){return o=c?r:o,o=n&&o==null?n.length:o,Ur(n,N,r,r,r,r,o)}function hh(n,o){var c;if(typeof o!="function")throw new Qt(u);return n=Ee(n),function(){return--n>0&&(c=o.apply(this,arguments)),n<=1&&(o=r),c}}var vl=Ae(function(n,o,c){var b=v;if(c.length){var _=fn(c,gi(vl));b|=C}return Ur(n,b,o,c,_)}),gh=Ae(function(n,o,c){var b=v|S;if(c.length){var _=fn(c,gi(gh));b|=C}return Ur(o,b,n,c,_)});function mh(n,o,c){o=c?r:o;var b=Ur(n,R,r,r,r,r,r,o);return b.placeholder=mh.placeholder,b}function vh(n,o,c){o=c?r:o;var b=Ur(n,T,r,r,r,r,r,o);return b.placeholder=vh.placeholder,b}function yh(n,o,c){var b,_,A,P,L,B,K=0,Y=!1,ee=!1,se=!0;if(typeof n!="function")throw new Qt(u);o=ir(o)||0,et(c)&&(Y=!!c.leading,ee="maxWait"in c,A=ee?ft(ir(c.maxWait)||0,o):A,se="trailing"in c?!!c.trailing:se);function le(ot){var gr=b,Kr=_;return b=_=r,K=ot,P=n.apply(Kr,gr),P}function me(ot){return K=ot,L=Xi(Re,o),Y?le(ot):P}function Te(ot){var gr=ot-B,Kr=ot-K,Fh=o-gr;return ee?Et(Fh,A-Kr):Fh}function pe(ot){var gr=ot-B,Kr=ot-K;return B===r||gr>=o||gr<0||ee&&Kr>=A}function Re(){var ot=Bs();if(pe(ot))return Ce(ot);L=Xi(Re,Te(ot))}function Ce(ot){return L=r,se&&b?le(ot):(b=_=r,P)}function Ut(){L!==r&&Rp(L),K=0,b=B=_=L=r}function Pt(){return L===r?P:Ce(Bs())}function qt(){var ot=Bs(),gr=pe(ot);if(b=arguments,_=this,B=ot,gr){if(L===r)return me(B);if(ee)return Rp(L),L=Xi(Re,o),le(B)}return L===r&&(L=Xi(Re,o)),P}return qt.cancel=Ut,qt.flush=Pt,qt}var VE=Ae(function(n,o){return ap(n,1,o)}),KE=Ae(function(n,o,c){return ap(n,ir(o)||0,c)});function YE(n){return Ur(n,q)}function Ws(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Qt(u);var c=function(){var b=arguments,_=o?o.apply(this,b):b[0],A=c.cache;if(A.has(_))return A.get(_);var P=n.apply(this,b);return c.cache=A.set(_,P)||A,P};return c.cache=new(Ws.Cache||Hr),c}Ws.Cache=Hr;function Hs(n){if(typeof n!="function")throw new Qt(u);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function XE(n){return hh(2,n)}var JE=Fx(function(n,o){o=o.length==1&&Se(o[0])?Ye(o[0],Bt(ge())):Ye(mt(o,1),Bt(ge()));var c=o.length;return Ae(function(b){for(var _=-1,A=Et(b.length,c);++_<A;)b[_]=o[_].call(this,b[_]);return jt(n,this,b)})}),yl=Ae(function(n,o){var c=fn(o,gi(yl));return Ur(n,C,r,o,c)}),bh=Ae(function(n,o){var c=fn(o,gi(bh));return Ur(n,W,r,o,c)}),QE=qr(function(n,o){return Ur(n,F,r,r,r,o)});function e_(n,o){if(typeof n!="function")throw new Qt(u);return o=o===r?o:Ee(o),Ae(n,o)}function t_(n,o){if(typeof n!="function")throw new Qt(u);return o=o==null?0:ft(Ee(o),0),Ae(function(c){var b=c[o],_=mn(c,0,o);return b&&cn(_,b),jt(n,this,_)})}function r_(n,o,c){var b=!0,_=!0;if(typeof n!="function")throw new Qt(u);return et(c)&&(b="leading"in c?!!c.leading:b,_="trailing"in c?!!c.trailing:_),yh(n,o,{leading:b,maxWait:o,trailing:_})}function n_(n){return ph(n,1)}function i_(n,o){return yl(rl(o),n)}function o_(){if(!arguments.length)return[];var n=arguments[0];return Se(n)?n:[n]}function s_(n){return tr(n,x)}function a_(n,o){return o=typeof o=="function"?o:r,tr(n,x,o)}function u_(n){return tr(n,g|x)}function l_(n,o){return o=typeof o=="function"?o:r,tr(n,g|x,o)}function c_(n,o){return o==null||sp(n,o,pt(o))}function hr(n,o){return n===o||n!==n&&o!==o}var f_=Ms(Uu),d_=Ms(function(n,o){return n>=o}),jn=dp((function(){return arguments})())?dp:function(n){return nt(n)&&De.call(n,"callee")&&!Jd.call(n,"callee")},Se=U.isArray,p_=$d?Bt($d):xx;function $t(n){return n!=null&&Us(n.length)&&!Zr(n)}function it(n){return nt(n)&&$t(n)}function h_(n){return n===!0||n===!1||nt(n)&&At(n)==Oe}var vn=R1||Cl,g_=Ld?Bt(Ld):Sx;function m_(n){return nt(n)&&n.nodeType===1&&!Ji(n)}function v_(n){if(n==null)return!0;if($t(n)&&(Se(n)||typeof n=="string"||typeof n.splice=="function"||vn(n)||mi(n)||jn(n)))return!n.length;var o=_t(n);if(o==St||o==kt)return!n.size;if(Yi(n))return!Zu(n).length;for(var c in n)if(De.call(n,c))return!1;return!0}function y_(n,o){return Zi(n,o)}function b_(n,o,c){c=typeof c=="function"?c:r;var b=c?c(n,o):r;return b===r?Zi(n,o,r,c):!!b}function bl(n){if(!nt(n))return!1;var o=At(n);return o==oe||o==at||typeof n.message=="string"&&typeof n.name=="string"&&!Ji(n)}function w_(n){return typeof n=="number"&&ep(n)}function Zr(n){if(!et(n))return!1;var o=At(n);return o==dt||o==zr||o==xe||o==Br}function wh(n){return typeof n=="number"&&n==Ee(n)}function Us(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ce}function et(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function nt(n){return n!=null&&typeof n=="object"}var xh=Md?Bt(Md):_x;function x_(n,o){return n===o||Gu(n,o,ll(o))}function S_(n,o,c){return c=typeof c=="function"?c:r,Gu(n,o,ll(o),c)}function E_(n){return Sh(n)&&n!=+n}function __(n){if(aS(n))throw new be(a);return pp(n)}function T_(n){return n===null}function O_(n){return n==null}function Sh(n){return typeof n=="number"||nt(n)&&At(n)==nn}function Ji(n){if(!nt(n)||At(n)!=cr)return!1;var o=vs(n);if(o===null)return!0;var c=De.call(o,"constructor")&&o.constructor;return typeof c=="function"&&c instanceof c&&ps.call(c)==S1}var wl=Dd?Bt(Dd):Tx;function A_(n){return wh(n)&&n>=-ce&&n<=ce}var Eh=Nd?Bt(Nd):Ox;function qs(n){return typeof n=="string"||!Se(n)&&nt(n)&&At(n)==on}function Ht(n){return typeof n=="symbol"||nt(n)&&At(n)==sn}var mi=Fd?Bt(Fd):Ax;function R_(n){return n===r}function P_(n){return nt(n)&&_t(n)==an}function C_(n){return nt(n)&&At(n)==is}var k_=Ms(Vu),I_=Ms(function(n,o){return n<=o});function _h(n){if(!n)return[];if($t(n))return qs(n)?fr(n):It(n);if(ji&&n[ji])return c1(n[ji]());var o=_t(n),c=o==St?Mu:o==kt?cs:vi;return c(n)}function Vr(n){if(!n)return n===0?n:0;if(n=ir(n),n===re||n===-re){var o=n<0?-1:1;return o*Z}return n===n?n:0}function Ee(n){var o=Vr(n),c=o%1;return o===o?c?o-c:o:0}function Th(n){return n?Mn(Ee(n),0,ne):0}function ir(n){if(typeof n=="number")return n;if(Ht(n))return te;if(et(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=et(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Ud(n);var c=pw.test(n);return c||gw.test(n)?Zw(n.slice(2),c?2:8):dw.test(n)?te:+n}function Oh(n){return Tr(n,Lt(n))}function $_(n){return n?Mn(Ee(n),-ce,ce):n===0?n:0}function Ne(n){return n==null?"":Wt(n)}var L_=pi(function(n,o){if(Yi(o)||$t(o)){Tr(o,pt(o),n);return}for(var c in o)De.call(o,c)&&Ui(n,c,o[c])}),Ah=pi(function(n,o){Tr(o,Lt(o),n)}),Rh=pi(function(n,o,c,b){Tr(o,Lt(o),n,b)}),xl=pi(function(n,o,c,b){Tr(o,pt(o),n,b)}),M_=qr(Bu);function D_(n,o){var c=di(n);return o==null?c:op(c,o)}var N_=Ae(function(n,o){n=qe(n);var c=-1,b=o.length,_=b>2?o[2]:r;for(_&&Rt(o[0],o[1],_)&&(b=1);++c<b;)for(var A=o[c],P=Lt(A),L=-1,B=P.length;++L<B;){var K=P[L],Y=n[K];(Y===r||hr(Y,li[K])&&!De.call(n,K))&&(n[K]=A[K])}return n}),F_=Ae(function(n){return n.push(r,Up),jt(Ph,r,n)});function j_(n,o){return zd(n,ge(o,3),_r)}function z_(n,o){return zd(n,ge(o,3),Hu)}function B_(n,o){return n==null?n:Wu(n,ge(o,3),Lt)}function W_(n,o){return n==null?n:cp(n,ge(o,3),Lt)}function H_(n,o){return n&&_r(n,ge(o,3))}function U_(n,o){return n&&Hu(n,ge(o,3))}function q_(n){return n==null?[]:As(n,pt(n))}function G_(n){return n==null?[]:As(n,Lt(n))}function Sl(n,o,c){var b=n==null?r:Dn(n,o);return b===r?c:b}function Z_(n,o){return n!=null&&Zp(n,o,vx)}function El(n,o){return n!=null&&Zp(n,o,yx)}var V_=jp(function(n,o,c){o!=null&&typeof o.toString!="function"&&(o=hs.call(o)),n[o]=c},Tl(Mt)),K_=jp(function(n,o,c){o!=null&&typeof o.toString!="function"&&(o=hs.call(o)),De.call(n,o)?n[o].push(c):n[o]=[c]},ge),Y_=Ae(Gi);function pt(n){return $t(n)?np(n):Zu(n)}function Lt(n){return $t(n)?np(n,!0):Rx(n)}function X_(n,o){var c={};return o=ge(o,3),_r(n,function(b,_,A){Er(c,o(b,_,A),b)}),c}function J_(n,o){var c={};return o=ge(o,3),_r(n,function(b,_,A){Er(c,_,o(b,_,A))}),c}var Q_=pi(function(n,o,c){Rs(n,o,c)}),Ph=pi(function(n,o,c,b){Rs(n,o,c,b)}),eT=qr(function(n,o){var c={};if(n==null)return c;var b=!1;o=Ye(o,function(A){return A=gn(A,n),b||(b=A.length>1),A}),Tr(n,al(n),c),b&&(c=tr(c,g|y|x,Kx));for(var _=o.length;_--;)Qu(c,o[_]);return c});function tT(n,o){return Ch(n,Hs(ge(o)))}var rT=qr(function(n,o){return n==null?{}:Cx(n,o)});function Ch(n,o){if(n==null)return{};var c=Ye(al(n),function(b){return[b]});return o=ge(o),wp(n,c,function(b,_){return o(b,_[0])})}function nT(n,o,c){o=gn(o,n);var b=-1,_=o.length;for(_||(_=1,n=r);++b<_;){var A=n==null?r:n[pr(o[b])];A===r&&(b=_,A=c),n=Zr(A)?A.call(n):A}return n}function iT(n,o,c){return n==null?n:Vi(n,o,c)}function oT(n,o,c,b){return b=typeof b=="function"?b:r,n==null?n:Vi(n,o,c,b)}var kh=Wp(pt),Ih=Wp(Lt);function sT(n,o,c){var b=Se(n),_=b||vn(n)||mi(n);if(o=ge(o,4),c==null){var A=n&&n.constructor;_?c=b?new A:[]:et(n)?c=Zr(A)?di(vs(n)):{}:c={}}return(_?zt:_r)(n,function(P,L,B){return o(c,P,L,B)}),c}function aT(n,o){return n==null?!0:Qu(n,o)}function uT(n,o,c){return n==null?n:Tp(n,o,rl(c))}function lT(n,o,c,b){return b=typeof b=="function"?b:r,n==null?n:Tp(n,o,rl(c),b)}function vi(n){return n==null?[]:Lu(n,pt(n))}function cT(n){return n==null?[]:Lu(n,Lt(n))}function fT(n,o,c){return c===r&&(c=o,o=r),c!==r&&(c=ir(c),c=c===c?c:0),o!==r&&(o=ir(o),o=o===o?o:0),Mn(ir(n),o,c)}function dT(n,o,c){return o=Vr(o),c===r?(c=o,o=0):c=Vr(c),n=ir(n),bx(n,o,c)}function pT(n,o,c){if(c&&typeof c!="boolean"&&Rt(n,o,c)&&(o=c=r),c===r&&(typeof o=="boolean"?(c=o,o=r):typeof n=="boolean"&&(c=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Vr(n),o===r?(o=n,n=0):o=Vr(o)),n>o){var b=n;n=o,o=b}if(c||n%1||o%1){var _=tp();return Et(n+_*(o-n+Gw("1e-"+((_+"").length-1))),o)}return Yu(n,o)}var hT=hi(function(n,o,c){return o=o.toLowerCase(),n+(c?$h(o):o)});function $h(n){return _l(Ne(n).toLowerCase())}function Lh(n){return n=Ne(n),n&&n.replace(vw,o1).replace(Dw,"")}function gT(n,o,c){n=Ne(n),o=Wt(o);var b=n.length;c=c===r?b:Mn(Ee(c),0,b);var _=c;return c-=o.length,c>=0&&n.slice(c,_)==o}function mT(n){return n=Ne(n),n&&Jb.test(n)?n.replace(ld,s1):n}function vT(n){return n=Ne(n),n&&iw.test(n)?n.replace(yu,"\\$&"):n}var yT=hi(function(n,o,c){return n+(c?"-":"")+o.toLowerCase()}),bT=hi(function(n,o,c){return n+(c?" ":"")+o.toLowerCase()}),wT=Dp("toLowerCase");function xT(n,o,c){n=Ne(n),o=Ee(o);var b=o?ai(n):0;if(!o||b>=o)return n;var _=(o-b)/2;return Ls(xs(_),c)+n+Ls(ws(_),c)}function ST(n,o,c){n=Ne(n),o=Ee(o);var b=o?ai(n):0;return o&&b<o?n+Ls(o-b,c):n}function ET(n,o,c){n=Ne(n),o=Ee(o);var b=o?ai(n):0;return o&&b<o?Ls(o-b,c)+n:n}function _T(n,o,c){return c||o==null?o=0:o&&(o=+o),I1(Ne(n).replace(bu,""),o||0)}function TT(n,o,c){return(c?Rt(n,o,c):o===r)?o=1:o=Ee(o),Xu(Ne(n),o)}function OT(){var n=arguments,o=Ne(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var AT=hi(function(n,o,c){return n+(c?"_":"")+o.toLowerCase()});function RT(n,o,c){return c&&typeof c!="number"&&Rt(n,o,c)&&(o=c=r),c=c===r?ne:c>>>0,c?(n=Ne(n),n&&(typeof o=="string"||o!=null&&!wl(o))&&(o=Wt(o),!o&&si(n))?mn(fr(n),0,c):n.split(o,c)):[]}var PT=hi(function(n,o,c){return n+(c?" ":"")+_l(o)});function CT(n,o,c){return n=Ne(n),c=c==null?0:Mn(Ee(c),0,n.length),o=Wt(o),n.slice(c,c+o.length)==o}function kT(n,o,c){var b=O.templateSettings;c&&Rt(n,o,c)&&(o=r),n=Ne(n),o=xl({},o,b,Hp);var _=xl({},o.imports,b.imports,Hp),A=pt(_),P=Lu(_,A);zt(A,function(pe){if(fd.test(pe))throw new be(f)});var L,B,K=0,Y=o.interpolate||os,ee="__p += '",se=Du((o.escape||os).source+"|"+Y.source+"|"+(Y===cd?fw:os).source+"|"+(o.evaluate||os).source+"|$","g"),le="//# sourceURL="+(De.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bw+"]")+`
|
|
185
|
+
`;n.replace(se,function(pe,Re,Ce,Ut,Pt,qt){return Ce||(Ce=Ut),ee+=n.slice(K,qt).replace(yw,a1),Re&&(L=!0,ee+=`' +
|
|
186
186
|
__e(`+Re+`) +
|
|
187
|
-
'`),
|
|
188
|
-
`+
|
|
187
|
+
'`),Pt&&(B=!0,ee+=`';
|
|
188
|
+
`+Pt+`;
|
|
189
189
|
__p += '`),Ce&&(ee+=`' +
|
|
190
190
|
((__t = (`+Ce+`)) == null ? '' : __t) +
|
|
191
|
-
'`),
|
|
192
|
-
`;var me=
|
|
191
|
+
'`),K=qt+pe.length,pe}),ee+=`';
|
|
192
|
+
`;var me=De.call(o,"variable")&&o.variable;if(!me)ee=`with (obj) {
|
|
193
193
|
`+ee+`
|
|
194
194
|
}
|
|
195
|
-
`;else if(
|
|
195
|
+
`;else if(fd.test(me))throw new be(l);ee=(B?ee.replace(Vb,""):ee).replace(Kb,"$1").replace(Yb,"$1;"),ee="function("+(me||"obj")+`) {
|
|
196
196
|
`+(me?"":`obj || (obj = {});
|
|
197
|
-
`)+"var __t, __p = ''"+(
|
|
197
|
+
`)+"var __t, __p = ''"+(L?", __e = _.escape":"")+(B?`, __j = Array.prototype.join;
|
|
198
198
|
function print() { __p += __j.call(arguments, '') }
|
|
199
199
|
`:`;
|
|
200
200
|
`)+ee+`return __p
|
|
201
|
-
}`;var Oe=gh(function(){return $e(T,le+"return "+ee).apply(r,P)});if(Oe.source=ee,ll(Oe))throw Oe;return Oe}function G_(n){return Me(n).toLowerCase()}function K_(n){return Me(n).toUpperCase()}function V_(n,o,l){if(n=Me(n),n&&(l||o===r))return Ed(n);if(!n||!(o=zt(o)))return n;var b=ur(n),_=ur(o),T=_d(b,_),P=Od(b,_)+1;return fn(b,T,P).join("")}function X_(n,o,l){if(n=Me(n),n&&(l||o===r))return n.slice(0,Td(n)+1);if(!n||!(o=zt(o)))return n;var b=ur(n),_=Od(b,ur(o))+1;return fn(b,0,_).join("")}function Y_(n,o,l){if(n=Me(n),n&&(l||o===r))return n.replace(lu,"");if(!n||!(o=zt(o)))return n;var b=ur(n),_=_d(b,ur(o));return fn(b,_).join("")}function J_(n,o){var l=N,b=L;if(Ve(o)){var _="separator"in o?o.separator:_;l="length"in o?Ee(o.length):l,b="omission"in o?zt(o.omission):b}n=Me(n);var T=n.length;if(ei(n)){var P=ur(n);T=P.length}if(l>=T)return n;var I=l-ti(b);if(I<1)return b;var z=P?fn(P,0,I).join(""):n.slice(0,I);if(_===r)return z+b;if(P&&(I+=z.length-I),cl(_)){if(n.slice(I).search(_)){var V,X=z;for(_.global||(_=Au(_.source,Me(qf.exec(_))+"g")),_.lastIndex=0;V=_.exec(X);)var ee=V.index;z=z.slice(0,ee===r?I:ee)}}else if(n.indexOf(zt(_),I)!=I){var se=z.lastIndexOf(_);se>-1&&(z=z.slice(0,se))}return z+b}function Q_(n){return n=Me(n),n&&db.test(n)?n.replace(Wf,Pw):n}var eO=ui(function(n,o,l){return n+(l?" ":"")+o.toUpperCase()}),hl=gp("toUpperCase");function hh(n,o,l){return n=Me(n),o=l?r:o,o===r?_w(n)?$w(n):gw(n):n.match(o)||[]}var gh=Te(function(n,o){try{return Dt(n,r,o)}catch(l){return ll(l)?l:new be(l)}}),tO=Wr(function(n,o){return Nt(o,function(l){l=cr(l),br(n,l,al(n[l],n))}),n});function rO(n){var o=n==null?0:n.length,l=ge();return n=o?Ze(n,function(b){if(typeof b[1]!="function")throw new Yt(u);return[l(b[0]),b[1]]}):[],Te(function(b){for(var _=-1;++_<o;){var T=n[_];if(Dt(T[0],this,b))return Dt(T[1],this,b)}})}function nO(n){return P1(Qt(n,g))}function gl(n){return function(){return n}}function iO(n,o){return n==null||n!==n?o:n}var oO=vp(),sO=vp(!0);function It(n){return n}function ml(n){return Gd(typeof n=="function"?n:Qt(n,g))}function aO(n){return Vd(Qt(n,g))}function uO(n,o){return Xd(n,Qt(o,g))}var lO=Te(function(n,o){return function(l){return ji(l,n,o)}}),cO=Te(function(n,o){return function(l){return ji(n,l,o)}});function vl(n,o,l){var b=ft(o),_=xs(o,b);l==null&&!(Ve(o)&&(_.length||!b.length))&&(l=o,o=n,n=this,_=xs(o,ft(o)));var T=!(Ve(l)&&"chain"in l)||!!l.chain,P=Br(n);return Nt(_,function(I){var z=o[I];n[I]=z,P&&(n.prototype[I]=function(){var V=this.__chain__;if(T||V){var X=n(this.__wrapped__),ee=X.__actions__=Ct(this.__actions__);return ee.push({func:z,args:arguments,thisArg:n}),X.__chain__=V,X}return z.apply(n,on([this.value()],arguments))})}),n}function fO(){return pt._===this&&(pt._=Nw),this}function yl(){}function dO(n){return n=Ee(n),Te(function(o){return Yd(o,n)})}var pO=Ku(Ze),hO=Ku(yd),gO=Ku(bu);function mh(n){return tl(n)?wu(cr(n)):Z1(n)}function mO(n){return function(o){return n==null?r:kn(n,o)}}var vO=bp(),yO=bp(!0);function bl(){return[]}function wl(){return!1}function bO(){return{}}function wO(){return""}function xO(){return!0}function SO(n,o){if(n=Ee(n),n<1||n>ce)return[];var l=ne,b=wt(n,ne);o=ge(o),n-=ne;for(var _=Eu(b,o);++l<n;)o(l);return _}function EO(n){return Se(n)?Ze(n,cr):Wt(n)?[n]:Ct(Mp(Me(n)))}function _O(n){var o=++Fw;return Me(n)+o}var OO=Ts(function(n,o){return n+o},0),AO=Vu("ceil"),TO=Ts(function(n,o){return n/o},1),RO=Vu("floor");function PO(n){return n&&n.length?ws(n,It,Lu):r}function CO(n,o){return n&&n.length?ws(n,ge(o,2),Lu):r}function kO(n){return xd(n,It)}function $O(n,o){return xd(n,ge(o,2))}function IO(n){return n&&n.length?ws(n,It,Nu):r}function LO(n,o){return n&&n.length?ws(n,ge(o,2),Nu):r}var MO=Ts(function(n,o){return n*o},1),FO=Vu("round"),DO=Ts(function(n,o){return n-o},0);function NO(n){return n&&n.length?Su(n,It):0}function jO(n,o){return n&&n.length?Su(n,ge(o,2)):0}return A.after=uE,A.ary=Zp,A.assign=VE,A.assignIn=sh,A.assignInWith=ah,A.assignWith=fl,A.at=XE,A.before=Gp,A.bind=al,A.bindAll=tO,A.bindKey=Kp,A.castArray=wE,A.chain=Bp,A.chunk=Px,A.compact=Cx,A.concat=kx,A.cond=rO,A.conforms=nO,A.constant=gl,A.countBy=jS,A.create=YE,A.curry=Vp,A.curryRight=Xp,A.debounce=Yp,A.defaults=JE,A.defaultsDeep=QE,A.defer=lE,A.delay=cE,A.difference=$x,A.differenceBy=Ix,A.differenceWith=Lx,A.drop=Mx,A.dropRight=Fx,A.dropRightWhile=Dx,A.dropWhile=Nx,A.fill=jx,A.filter=WS,A.flatMap=HS,A.flatMapDeep=qS,A.flatMapDepth=ZS,A.flatten=jp,A.flattenDeep=zx,A.flattenDepth=Wx,A.flip=fE,A.flow=oO,A.flowRight=sO,A.fromPairs=Ux,A.functions=s_,A.functionsIn=a_,A.groupBy=GS,A.initial=Hx,A.intersection=qx,A.intersectionBy=Zx,A.intersectionWith=Gx,A.invert=l_,A.invertBy=c_,A.invokeMap=VS,A.iteratee=ml,A.keyBy=XS,A.keys=ft,A.keysIn=$t,A.map=Ls,A.mapKeys=d_,A.mapValues=p_,A.matches=aO,A.matchesProperty=uO,A.memoize=Fs,A.merge=h_,A.mergeWith=uh,A.method=lO,A.methodOf=cO,A.mixin=vl,A.negate=Ds,A.nthArg=dO,A.omit=g_,A.omitBy=m_,A.once=dE,A.orderBy=YS,A.over=pO,A.overArgs=pE,A.overEvery=hO,A.overSome=gO,A.partial=ul,A.partialRight=Jp,A.partition=JS,A.pick=v_,A.pickBy=lh,A.property=mh,A.propertyOf=mO,A.pull=Yx,A.pullAll=Wp,A.pullAllBy=Jx,A.pullAllWith=Qx,A.pullAt=eS,A.range=vO,A.rangeRight=yO,A.rearg=hE,A.reject=tE,A.remove=tS,A.rest=gE,A.reverse=ol,A.sampleSize=nE,A.set=b_,A.setWith=w_,A.shuffle=iE,A.slice=rS,A.sortBy=aE,A.sortedUniq=lS,A.sortedUniqBy=cS,A.split=B_,A.spread=mE,A.tail=fS,A.take=dS,A.takeRight=pS,A.takeRightWhile=hS,A.takeWhile=gS,A.tap=CS,A.throttle=vE,A.thru=Is,A.toArray=nh,A.toPairs=ch,A.toPairsIn=fh,A.toPath=EO,A.toPlainObject=oh,A.transform=x_,A.unary=yE,A.union=mS,A.unionBy=vS,A.unionWith=yS,A.uniq=bS,A.uniqBy=wS,A.uniqWith=xS,A.unset=S_,A.unzip=sl,A.unzipWith=Up,A.update=E_,A.updateWith=__,A.values=fi,A.valuesIn=O_,A.without=SS,A.words=hh,A.wrap=bE,A.xor=ES,A.xorBy=_S,A.xorWith=OS,A.zip=AS,A.zipObject=TS,A.zipObjectDeep=RS,A.zipWith=PS,A.entries=ch,A.entriesIn=fh,A.extend=sh,A.extendWith=ah,vl(A,A),A.add=OO,A.attempt=gh,A.camelCase=P_,A.capitalize=dh,A.ceil=AO,A.clamp=A_,A.clone=xE,A.cloneDeep=EE,A.cloneDeepWith=_E,A.cloneWith=SE,A.conformsTo=OE,A.deburr=ph,A.defaultTo=iO,A.divide=TO,A.endsWith=C_,A.eq=fr,A.escape=k_,A.escapeRegExp=$_,A.every=zS,A.find=US,A.findIndex=Dp,A.findKey=e_,A.findLast=BS,A.findLastIndex=Np,A.findLastKey=t_,A.floor=RO,A.forEach=Hp,A.forEachRight=qp,A.forIn=r_,A.forInRight=n_,A.forOwn=i_,A.forOwnRight=o_,A.get=dl,A.gt=AE,A.gte=TE,A.has=u_,A.hasIn=pl,A.head=zp,A.identity=It,A.includes=KS,A.indexOf=Bx,A.inRange=T_,A.invoke=f_,A.isArguments=Ln,A.isArray=Se,A.isArrayBuffer=RE,A.isArrayLike=kt,A.isArrayLikeObject=rt,A.isBoolean=PE,A.isBuffer=dn,A.isDate=CE,A.isElement=kE,A.isEmpty=$E,A.isEqual=IE,A.isEqualWith=LE,A.isError=ll,A.isFinite=ME,A.isFunction=Br,A.isInteger=Qp,A.isLength=Ns,A.isMap=eh,A.isMatch=FE,A.isMatchWith=DE,A.isNaN=NE,A.isNative=jE,A.isNil=WE,A.isNull=zE,A.isNumber=th,A.isObject=Ve,A.isObjectLike=et,A.isPlainObject=qi,A.isRegExp=cl,A.isSafeInteger=UE,A.isSet=rh,A.isString=js,A.isSymbol=Wt,A.isTypedArray=ci,A.isUndefined=BE,A.isWeakMap=HE,A.isWeakSet=qE,A.join=Kx,A.kebabCase=I_,A.last=tr,A.lastIndexOf=Vx,A.lowerCase=L_,A.lowerFirst=M_,A.lt=ZE,A.lte=GE,A.max=PO,A.maxBy=CO,A.mean=kO,A.meanBy=$O,A.min=IO,A.minBy=LO,A.stubArray=bl,A.stubFalse=wl,A.stubObject=bO,A.stubString=wO,A.stubTrue=xO,A.multiply=MO,A.nth=Xx,A.noConflict=fO,A.noop=yl,A.now=Ms,A.pad=F_,A.padEnd=D_,A.padStart=N_,A.parseInt=j_,A.random=R_,A.reduce=QS,A.reduceRight=eE,A.repeat=z_,A.replace=W_,A.result=y_,A.round=FO,A.runInContext=j,A.sample=rE,A.size=oE,A.snakeCase=U_,A.some=sE,A.sortedIndex=nS,A.sortedIndexBy=iS,A.sortedIndexOf=oS,A.sortedLastIndex=sS,A.sortedLastIndexBy=aS,A.sortedLastIndexOf=uS,A.startCase=H_,A.startsWith=q_,A.subtract=DO,A.sum=NO,A.sumBy=jO,A.template=Z_,A.times=SO,A.toFinite=Hr,A.toInteger=Ee,A.toLength=ih,A.toLower=G_,A.toNumber=rr,A.toSafeInteger=KE,A.toString=Me,A.toUpper=K_,A.trim=V_,A.trimEnd=X_,A.trimStart=Y_,A.truncate=J_,A.unescape=Q_,A.uniqueId=_O,A.upperCase=eO,A.upperFirst=hl,A.each=Hp,A.eachRight=qp,A.first=zp,vl(A,(function(){var n={};return wr(A,function(o,l){Le.call(A.prototype,l)||(n[l]=o)}),n})(),{chain:!1}),A.VERSION=i,Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){A[n].placeholder=A}),Nt(["drop","take"],function(n,o){Pe.prototype[n]=function(l){l=l===r?1:lt(Ee(l),0);var b=this.__filtered__&&!o?new Pe(this):this.clone();return b.__filtered__?b.__takeCount__=wt(l,b.__takeCount__):b.__views__.push({size:wt(l,ne),type:n+(b.__dir__<0?"Right":"")}),b},Pe.prototype[n+"Right"]=function(l){return this.reverse()[n](l).reverse()}}),Nt(["filter","map","takeWhile"],function(n,o){var l=o+1,b=l==k||l==J;Pe.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:ge(_,3),type:l}),T.__filtered__=T.__filtered__||b,T}}),Nt(["head","last"],function(n,o){var l="take"+(o?"Right":"");Pe.prototype[n]=function(){return this[l](1).value()[0]}}),Nt(["initial","tail"],function(n,o){var l="drop"+(o?"":"Right");Pe.prototype[n]=function(){return this.__filtered__?new Pe(this):this[l](1)}}),Pe.prototype.compact=function(){return this.filter(It)},Pe.prototype.find=function(n){return this.filter(n).head()},Pe.prototype.findLast=function(n){return this.reverse().find(n)},Pe.prototype.invokeMap=Te(function(n,o){return typeof n=="function"?new Pe(this):this.map(function(l){return ji(l,n,o)})}),Pe.prototype.reject=function(n){return this.filter(Ds(ge(n)))},Pe.prototype.slice=function(n,o){n=Ee(n);var l=this;return l.__filtered__&&(n>0||o<0)?new Pe(l):(n<0?l=l.takeRight(-n):n&&(l=l.drop(n)),o!==r&&(o=Ee(o),l=o<0?l.dropRight(-o):l.take(o-n)),l)},Pe.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pe.prototype.toArray=function(){return this.take(ne)},wr(Pe.prototype,function(n,o){var l=/^(?:filter|find|map|reject)|While$/.test(o),b=/^(?:head|last)$/.test(o),_=A[b?"take"+(o=="last"?"Right":""):o],T=b||/^find/.test(o);_&&(A.prototype[o]=function(){var P=this.__wrapped__,I=b?[1]:arguments,z=P instanceof Pe,V=I[0],X=z||Se(P),ee=function(Re){var Ce=_.apply(A,on([Re],I));return b&&se?Ce[0]:Ce};X&&l&&typeof V=="function"&&V.length!=1&&(z=X=!1);var se=this.__chain__,le=!!this.__actions__.length,me=T&&!se,Oe=z&&!le;if(!T&&X){P=Oe?P:new Pe(this);var pe=n.apply(P,I);return pe.__actions__.push({func:Is,args:[ee],thisArg:r}),new Jt(pe,se)}return me&&Oe?n.apply(this,I):(pe=this.thru(ee),me?b?pe.value()[0]:pe.value():pe)})}),Nt(["pop","push","shift","sort","splice","unshift"],function(n){var o=os[n],l=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",b=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var _=arguments;if(b&&!this.__chain__){var T=this.value();return o.apply(Se(T)?T:[],_)}return this[l](function(P){return o.apply(Se(P)?P:[],_)})}}),wr(Pe.prototype,function(n,o){var l=A[o];if(l){var b=l.name+"";Le.call(oi,b)||(oi[b]=[]),oi[b].push({name:o,func:l})}}),oi[As(r,S).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=e1,Pe.prototype.reverse=t1,Pe.prototype.value=r1,A.prototype.at=kS,A.prototype.chain=$S,A.prototype.commit=IS,A.prototype.next=LS,A.prototype.plant=FS,A.prototype.reverse=DS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=NS,A.prototype.first=A.prototype.head,$i&&(A.prototype[$i]=MS),A}),ri=Iw();An?((An.exports=ri)._=ri,gu._=ri):pt._=ri}).call(x$)})(bo,bo.exports)),bo.exports}var Ye=S$();const Rc={FdSave:tt.FdSave,FdWarningDanger:tt.FdWarningDanger,FdInfoCircle:tt.FdInfoCircle,FdInfoBold:tt.FdInfoBold};var Sf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Sf||{}),Bn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Bn||{}),vi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(vi||{});const zy={[Bn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Bn.DANGER]:{icon:"red-500",button:"primary-dark"},[Bn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Ql=({color:e=Bn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=zy[e].button,u=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return F.jsx("button",{autoFocus:i,className:He("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",u),...s,children:r})},E$=({name:e,color:t=Bn.PRIMARY,className:r="w-8 h-8"})=>{const i=Rc[e]||Rc.FdInfoCircle,s=`text-${zy[t].icon}`;return F.jsx(i,{className:He(r,s)})},_$=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:u=3e3,views:c,width:f=520,hasOverlay:m=!0,container:y,onClose:p,onEdit:g})=>{const v=w=>{p({id:e,reason:w})};W.useEffect(()=>{function w(h){h.key==="Escape"&&v(vi.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=Ye.merge(Ye.values(c==null?void 0:c.toggles).flatMap(w=>w.value?w.warnings||[]:[]),c==null?void 0:c.tips),d=(w,h)=>{var E;if(!(c!=null&&c.toggles))return;const S=Ye.cloneDeep(c);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=h),g({id:e,views:S})};return zo.createPortal(F.jsx(_a,{appear:!0,show:!0,as:W.Fragment,children:F.jsx("div",{className:He("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":m}),style:{zIndex:u},onClick:()=>v(vi.CANCELED),children:F.jsx(_a.Child,{as:W.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:F.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:f},onClick:w=>w.stopPropagation(),children:F.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?F.jsx("div",{className:"flex items-center justify-center",children:F.jsx(E$,{name:i,color:a,className:"w-6 h-6"})}):null,F.jsx(O$,{condition:t,children:F.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),F.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),F.jsx("div",{className:"text-xs text-white",children:Ye.values(c==null?void 0:c.toggles).map(w=>F.jsx("div",{children:F.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[F.jsx(Oy,{size:"xs",value:w.value,onChange:h=>d(w.key,h)}),F.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),F.jsx(A$,{warnings:x}),F.jsx("div",{className:"flex items-center gap-4",children:s===Sf.CONFIRM?F.jsxs(F.Fragment,{children:[F.jsx(Ql,{autoFocus:!0,color:a,onClick:()=>v(vi.CONFIRMED),children:"Confirm"}),F.jsx(Ql,{color:a,variant:"outlined",onClick:()=>v(vi.CANCELED),children:"Cancel"})]}):F.jsx(Ql,{autoFocus:!0,onClick:()=>v(),children:"OK"})})]})})})})}),y||document.body)},O$=e=>e.condition?F.jsx(F.Fragment,{children:e.children}):null,A$=e=>e.warnings?F.jsx(_a,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:F.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>F.jsx(_a.Child,{as:W.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:F.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[F.jsx(tt.FdWarningDanger,{className:He({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),F.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Wy=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(Wy||{});const T$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>F.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[F.jsx(tt.FdMinusNaked,{onClick:s,className:He("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),F.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),F.jsx(tt.FdPlusNaked,{onClick:i,className:He("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),R$=$.forwardRef(((e,t)=>$.createElement(_n.span,Qe({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),P$=R$;function Em(e){const t=$.useRef({value:e,previous:e});return $.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Uy]=rf("Tooltip",[Wa]),Ef=Wa(),C$=700,[qM,k$]=Uy("TooltipProvider",{isOpenDelayed:!0,delayDuration:C$,onOpen:()=>{},onClose:()=>{}}),[$$,Ga]=Uy("Tooltip"),I$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:u}=e,c=k$("Tooltip",t),f=Ef(t),[m,y]=$.useState(null),p=Uv(),g=$.useRef(0),v=u??c.delayDuration,x=$.useRef(!1),{onOpen:d,onClose:w}=c,[h=!1,S]=ey({prop:i,defaultProp:s,onChange:C=>{C&&(document.dispatchEvent(new CustomEvent("tooltip.open")),d()),a==null||a(C)}}),E=$.useMemo((()=>h?x.current?"delayed-open":"instant-open":"closed"),[h]),R=$.useCallback((()=>{window.clearTimeout(g.current),x.current=!1,S(!0)}),[S]),O=$.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{x.current=!0,S(!0)}),v)}),[v,S]);return $.useEffect((()=>()=>window.clearTimeout(g.current)),[]),$.createElement(Yv,f,$.createElement($$,{scope:t,contentId:p,open:h,stateAttribute:E,trigger:m,onTriggerChange:y,onTriggerEnter:$.useCallback((()=>{c.isOpenDelayed?O():R()}),[c.isOpenDelayed,O,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(g.current),S(!1),w()}),[S,w])},r))},L$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=Ga("TooltipTrigger",r),a=Ef(r),u=En(t,s.onTriggerChange),c=$.useRef(!1),f=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(Jv,Qe({asChild:!0},a),$.createElement(_n.button,Qe({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:u,onMouseEnter:qt(e.onMouseEnter,s.onTriggerEnter),onMouseLeave:qt(e.onMouseLeave,s.onClose),onMouseDown:qt(e.onMouseDown,(()=>{s.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:qt(e.onFocus,(()=>{c.current||s.onOpen()})),onBlur:qt(e.onBlur,s.onClose),onClick:qt(e.onClick,(m=>{m.detail===0&&s.onClose()}))})))})),M$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Ga("TooltipContent",e.__scopeTooltip);return $.createElement(ef,{present:r||s.open},$.createElement(F$,Qe({ref:t},i)))})),F$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...u}=e,c=Ga("TooltipContent",r),f=Ef(r),m=a?tf:$.Fragment,{onClose:y}=c;return Zv((()=>y())),$.useEffect((()=>(document.addEventListener("tooltip.open",y),()=>document.removeEventListener("tooltip.open",y))),[y]),$.createElement(m,null,$.createElement(D$,{__scopeTooltip:r}),$.createElement(Qv,Qe({"data-state":c.stateAttribute},f,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(qv,null,i),$.createElement(P$,{id:c.contentId,role:"tooltip"},s||i)))}));function D$(e){const{__scopeTooltip:t}=e,r=Ga("CheckTriggerMoved",t),i=Kv(r.trigger),s=i==null?void 0:i.left,a=Em(s),u=i==null?void 0:i.top,c=Em(u),f=r.onClose;return $.useEffect((()=>{(a!==void 0&&a!==s||c!==void 0&&c!==u)&&f()}),[f,a,c,s,u]),null}const N$=I$,j$=L$,z$=M$;function W$(e){return F.jsxs(N$,{delayDuration:e.delayDuration,open:e.open,children:[F.jsx(j$,{tabIndex:-1,asChild:!0,children:F.jsx("span",{children:e.children})}),F.jsxs(z$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&F.jsx("p",{className:"max-w-[240px] rounded-md bg-primary-light px-1 py-2 text-s font-semibold text-primary-dark",children:e.message}),typeof e.message!="string"&&e.message]})]})}const Or=30,By=.3,Hy=.6,U$=()=>typeof window>"u"?400:Math.round(window.innerHeight*By),qy=()=>typeof window>"u"?600:Math.round(window.innerHeight*Hy),_m=e=>{const t=qy();return Math.min(Math.max(e,Or),t)},B$=()=>F.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),H$=e=>{const[t,r]=W.useState(Or),i=W.useRef(),s=W.useRef(null),a=qy(),u=U$(),c=t>Or;W.useEffect(()=>{r(e.isOpen?u:Or)},[e.isOpen,u]),W.useEffect(()=>{const m=()=>{r(y=>y<=Or?Or:_m(y))};return window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m),s.current&&cancelAnimationFrame(s.current)}},[]);const f=()=>{if(c){r(Or),e.onClose();return}r(u),e.onOpen()};return F.jsx("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:F.jsx(UO.Resizable,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:a,minHeight:Or,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(c?Or:u):i.current=Date.now()},onResize:(m,y,p)=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{var g;(g=e.onResize)==null||g.call(e),s.current=null})},onResizeStop:(m,y,p,g)=>{r(v=>_m(v+g.height))},handleComponent:{top:F.jsx(B$,{})},children:F.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ye.kebabCase(e.path)}`,children:[F.jsxs("div",{className:He("flex justify-between items-center px-3 py-0.5",{"flex-1":!c}),children:[F.jsxs("div",{className:"group flex items-center justify-start",children:[F.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),e.tipKey?F.jsx(py,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,F.jsx("button",{"data-cy":`contextualPanel-toggle-button-${c?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:f,children:c?F.jsx(tt.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):F.jsx(tt.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),F.jsxs(fa,{of:c,children:[F.jsx(fa,{of:e.render,children:e.render}),F.jsx(fa,{of:!e.render,children:e.children})]})]})})})};function Zy({children:e,viewBox:t="0 0 24 24",...r}){return F.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...r,children:e})}function Gy(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return F.jsx(Zy,{viewBox:"0 0 24 24",...e,children:F.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function q$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:u,...c}){const f=W.useRef(null),m=i||F.jsx(Gy,{}),y=c.checked??e;W.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const p=y||t,g=["base-checkbox-container",a].join(" ");return F.jsxs("label",{className:g,style:u,"data-invalid":r,children:[F.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:y,...c,"aria-invalid":r||void 0}),F.jsx("span",{className:"base-checkbox-control",children:p&&m&&W.cloneElement(m,{isChecked:y,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&F.jsx("span",{className:"base-checkbox-label",children:s})]})}const Z$=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:i,onReset:s,resetButtonLabel:a="Reset Page"})=>F.jsx("div",{className:"flex h-full w-full items-center justify-center",children:F.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[F.jsxs("div",{className:"relative",children:[F.jsx(tt.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-red-500 rounded-full"}),F.jsx("div",{className:"w-1/2 h-1/2 absolute z-0 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white"})]}),F.jsx("p",{className:"mb-2 mt-4 text-2xl text-white",children:e}),F.jsx("p",{className:"text-md mb-4 font-extralight text-grey-100",children:t}),F.jsxs("div",{className:"flex gap-4",children:[i&&F.jsx("button",{className:"text-md rounded border border-primary-dark hover:border-primary-hover bg-primary-dark hover:bg-primary-hover px-3 py-1 text-white focus:outline-none",onClick:i,children:"Open in Text Editor"}),s&&F.jsx("button",{className:"text-md rounded border border-red-500 bg-red-500 hover:bg-red-400 focus:ring-red-500 px-3 py-1 text-white focus:outline-none",onClick:s,children:a}),r&&F.jsx("button",{className:"text-md rounded border border-grey-50 bg-transparent hover:bg-grey-50 text-white hover:text-primary-dark px-3 py-1 focus:outline-none",onClick:r,children:"Close"})]})]})});function G$(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const ec=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function tc(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function mo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Ky(e,t){const r=t.slice(0,t.length-1);for(let i=0;i<r.length;i++)r[i]=e[r[i].toLowerCase()];return r}function Vy(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function K$(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let s=!0;for(let a=0;a<r.length;a++)i.indexOf(r[a])===-1&&(s=!1);return s}const Io={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":ec?173:189,"=":ec?61:187,";":ec?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},vr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},wo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},vt={16:!1,18:!1,17:!1,91:!1},Je={};for(let e=1;e<20;e++)Io["f".concat(e)]=111+e;let Ke=[],Po=null,Xy="all";const Gr=new Map,Pi=e=>Io[e.toLowerCase()]||vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),V$=e=>Object.keys(Io).find(t=>Io[t]===e),X$=e=>Object.keys(vr).find(t=>vr[t]===e);function Yy(e){Xy=e||"all"}function Lo(){return Xy||"all"}function Y$(){return Ke.slice(0)}function J$(){return Ke.map(e=>V$(e)||X$(e)||String.fromCharCode(e))}function Q$(){const e=[];return Object.keys(Je).forEach(t=>{Je[t].forEach(r=>{let{key:i,scope:s,mods:a,shortcut:u}=r;e.push({scope:s,shortcut:u,mods:a,keys:i.split("+").map(c=>Pi(c))})})}),e}function eI(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const s=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(s||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function tI(e){return typeof e=="string"&&(e=Pi(e)),Ke.indexOf(e)!==-1}function rI(e,t){let r,i;e||(e=Lo());for(const s in Je)if(Object.prototype.hasOwnProperty.call(Je,s))for(r=Je[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(u=>{let{element:c}=u;return _f(c)}):i++;Lo()===e&&Yy(t||"all")}function nI(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Pi(e.key));const r=Ke.indexOf(t);if(r>=0&&Ke.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Ke.splice(0,Ke.length),(t===93||t===224)&&(t=91),t in vt){vt[t]=!1;for(const i in vr)vr[i]===t&&(mr[i]=!1)}}function Jy(e){if(typeof e>"u")Object.keys(Je).forEach(s=>{Array.isArray(Je[s])&&Je[s].forEach(a=>na(a)),delete Je[s]}),_f(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&na(s)});else if(typeof e=="object")e.key&&na(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let[s,a]=r;typeof s=="function"&&(a=s,s=""),na({key:e,scope:s,method:a,splitKey:"+"})}}const na=e=>{let{key:t,scope:r,method:i,splitKey:s="+"}=e;Vy(t).forEach(u=>{const c=u.split(s),f=c.length,m=c[f-1],y=m==="*"?"*":Pi(m);if(!Je[y])return;r||(r=Lo());const p=f>1?Ky(vr,c):[],g=[];Je[y]=Je[y].filter(v=>{const d=(i?v.method===i:!0)&&v.scope===r&&K$(v.mods,p);return d&&g.push(v.element),!d}),g.forEach(v=>_f(v))})};function Om(e,t,r,i){if(t.element!==i)return;let s;if(t.scope===r||t.scope==="all"){s=t.mods.length>0;for(const a in vt)Object.prototype.hasOwnProperty.call(vt,a)&&(!vt[a]&&t.mods.indexOf(+a)>-1||vt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!vt[16]&&!vt[18]&&!vt[17]&&!vt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Ke),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Am(e,t){const r=Je["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!mr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Ke.indexOf(i)===-1&&i!==229&&Ke.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const f=wo[c];e[c]&&Ke.indexOf(f)===-1?Ke.push(f):!e[c]&&Ke.indexOf(f)>-1?Ke.splice(Ke.indexOf(f),1):c==="metaKey"&&e[c]&&(Ke=Ke.filter(m=>m in wo||m===i))}),i in vt){vt[i]=!0;for(const c in vr)if(Object.prototype.hasOwnProperty.call(vr,c)){const f=wo[vr[c]];mr[c]=e[f]}if(!r)return}for(const c in vt)Object.prototype.hasOwnProperty.call(vt,c)&&(vt[c]=e[wo[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ke.indexOf(17)===-1&&Ke.push(17),Ke.indexOf(18)===-1&&Ke.push(18),vt[17]=!0,vt[18]=!0);const s=Lo();if(r)for(let c=0;c<r.length;c++)r[c].scope===s&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&Om(e,r[c],s,t);if(!(i in Je))return;const a=Je[i],u=a.length;for(let c=0;c<u;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const f=a[c],{splitKey:m}=f,y=f.key.split(m),p=[];for(let g=0;g<y.length;g++)p.push(Pi(y[g]));p.sort().join("")===Ke.sort().join("")&&Om(e,f,s,t)}}function mr(e,t,r){Ke=[];const i=Vy(e);let s=[],a="all",u=document,c=0,f=!1,m=!0,y="+",p=!1,g=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(u=t.element),t.keyup&&(f=t.keyup),t.keydown!==void 0&&(m=t.keydown),t.capture!==void 0&&(p=t.capture),typeof t.splitKey=="string"&&(y=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(a=t),g&&Jy(e,a);c<i.length;c++)e=i[c].split(y),s=[],e.length>1&&(s=Ky(vr,e)),e=e[e.length-1],e=e==="*"?"*":Pi(e),e in Je||(Je[e]=[]),Je[e].push({keyup:f,keydown:m,scope:a,mods:s,shortcut:i[c],method:r,key:i[c],splitKey:y,element:u});if(typeof u<"u"&&window){if(!Gr.has(u)){const v=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Am(d,u)},x=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Am(d,u),nI(d)};Gr.set(u,{keydownListener:v,keyupListenr:x,capture:p}),tc(u,"keydown",v,p),tc(u,"keyup",x,p)}if(!Po){const v=()=>{Ke=[]};Po={listener:v,capture:p},tc(window,"focus",v,p)}}}function iI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Je).forEach(r=>{Je[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function _f(e){const t=Object.values(Je).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Gr.get(e)||{};i&&s&&(mo(e,"keyup",s,a),mo(e,"keydown",i,a),Gr.delete(e))}if((t.length<=0||Gr.size<=0)&&(Object.keys(Gr).forEach(s=>{const{keydownListener:a,keyupListenr:u,capture:c}=Gr.get(s)||{};a&&u&&(mo(s,"keyup",u,c),mo(s,"keydown",a,c),Gr.delete(s))}),Gr.clear(),Object.keys(Je).forEach(s=>delete Je[s]),Po)){const{listener:s,capture:a}=Po;mo(window,"focus",s,a),Po=null}}const rc={getPressedKeyString:J$,setScope:Yy,getScope:Lo,deleteScope:rI,getPressedKeyCodes:Y$,getAllKeyCodes:Q$,isPressed:tI,filter:eI,trigger:iI,unbind:Jy,keyMap:Io,modifier:vr,modifierMap:wo};for(const e in rc)Object.prototype.hasOwnProperty.call(rc,e)&&(mr[e]=rc[e]);if(typeof window<"u"){const e=window.hotkeys;mr.noConflict=t=>(t&&window.hotkeys===mr&&(window.hotkeys=e),mr),window.hotkeys=mr}mr.filter=()=>!0;function oI(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:s=!0}=r,a=W.useCallback((c,f)=>{s&&c.preventDefault(),setTimeout(()=>t(c,f))},i),u=()=>{mr.unbind(e,a)};W.useEffect(()=>(mr(e,r,a),u),[e,r,a])}const sI=(e,t="click")=>{const r=W.useRef(null);return W.useEffect(()=>{const i=s=>{r.current&&!r.current.contains(s.target)&&e(s)};return document.addEventListener(t,i,!0),()=>{document.removeEventListener(t,i,!0)}},[e,t]),r};function aI(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function uI(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function lI(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function cI(e){const[t,r]=W.useState(e),i=(a,u)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:u}}}))},s=W.useCallback((...a)=>a.every(u=>{var c;return(c=t.features[u])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:s}}const Qy=W.createContext(""),fI=e=>F.jsx(Qy.Provider,{value:e.value,children:e.children}),dI=()=>{const e=W.useContext(Qy);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function pI(e){const[t,r]=W.useState(e),i=W.useMemo(()=>hI(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function hI(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Ye.upperFirst(s)}`]:a=>t(u=>({...u,[s]:a}))}),{})}const gI=(e,t,r={})=>{r={timeout:200,...r};const i=W.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return W.useCallback((a,...u)=>{s(),t&&a.detail===1&&(i.current=setTimeout(()=>{t(a,...u)},r.timeout)),a.detail%2===0&&e(a,...u)},[t,e,r.timeout])};function yt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(process.env.NODE_ENV!=="production"){var s=SI[e],a=s?typeof s=="function"?s.apply(null,r):s:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(u){return"'"+u+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ti(e){return!!e&&!!e[Kt]}function Gn(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var s=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===EI})(e)||Array.isArray(e)||!!e[Lm]||!!(!((t=e.constructor)===null||t===void 0)&&t[Lm])||Of(e)||Af(e))}function Mo(e,t,r){r===void 0&&(r=!1),Ci(e)===0?(r?Object.keys:Cf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function Ci(e){var t=e[Kt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Of(e)?2:Af(e)?3:0}function Pc(e,t){return Ci(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function mI(e,t){return Ci(e)===2?e.get(t):e[t]}function e0(e,t,r){var i=Ci(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function vI(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Of(e){return wI&&e instanceof Map}function Af(e){return xI&&e instanceof Set}function Nn(e){return e.o||e.t}function Tf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=_I(e);delete t[Kt];for(var r=Cf(t),i=0;i<r.length;i++){var s=r[i],a=t[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function Fo(e,t){return t===void 0&&(t=!1),Rf(e)||Ti(e)||!Gn(e)||(Ci(e)>1&&(e.set=e.add=e.clear=e.delete=yI),Object.freeze(e),t&&Mo(e,(function(r,i){return Fo(i,!0)}),!0)),e}function yI(){yt(2)}function Rf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function $r(e){var t=OI[e];return t||yt(18,e),t}function Tm(){return process.env.NODE_ENV==="production"||Ri||yt(0),Ri}function nc(e,t){t&&($r("Patches"),e.u=[],e.s=[],e.v=t)}function Ra(e){Cc(e),e.p.forEach(bI),e.p=null}function Cc(e){e===Ri&&(Ri=e.l)}function Rm(e){return Ri={p:[],l:Ri,h:e,m:!0,_:0}}function bI(e){var t=e[Kt];t.i===0||t.i===1?t.j():t.g=!0}function ic(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||$r("ES5").S(t,e,i),i?(r[Kt].P&&(Ra(t),yt(4)),Gn(e)&&(e=Pa(t,e),t.l||Ca(t,e)),t.u&&$r("Patches").M(r[Kt].t,e,t.u,t.s)):e=Pa(t,r,[]),Ra(t),t.u&&t.v(t.u,t.s),e!==r0?e:void 0}function Pa(e,t,r){if(Rf(t))return t;var i=t[Kt];if(!i)return Mo(t,(function(c,f){return Pm(e,i,t,c,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Ca(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=Tf(i.k):i.o,a=s,u=!1;i.i===3&&(a=new Set(s),s.clear(),u=!0),Mo(a,(function(c,f){return Pm(e,i,s,c,f,r,u)})),Ca(e,s,!1),r&&e.u&&$r("Patches").N(i,r,e.u,e.s)}return i.o}function Pm(e,t,r,i,s,a,u){if(process.env.NODE_ENV!=="production"&&s===r&&yt(5),Ti(s)){var c=Pa(e,s,a&&t&&t.i!==3&&!Pc(t.R,i)?a.concat(i):void 0);if(e0(r,i,c),!Ti(c))return;e.m=!1}else u&&r.add(s);if(Gn(s)&&!Rf(s)){if(!e.h.D&&e._<1)return;Pa(e,s),t&&t.A.l||Ca(e,s)}}function Ca(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Fo(t,r)}function oc(e,t){var r=e[Kt];return(r?Nn(r):e)[t]}function Cm(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function kc(e){e.P||(e.P=!0,e.l&&kc(e.l))}function sc(e){e.o||(e.o=Tf(e.t))}function $c(e,t,r){var i=Of(t)?$r("MapSet").F(t,r):Af(t)?$r("MapSet").T(t,r):e.O?(function(s,a){var u=Array.isArray(s),c={i:u?1:0,A:a?a.A:Tm(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=c,m=Ic;u&&(f=[c],m=xo);var y=Proxy.revocable(f,m),p=y.revoke,g=y.proxy;return c.k=g,c.j=p,g})(t,r):$r("ES5").J(t,r);return(r?r.A:Tm()).p.push(i),i}function t0(e){return Ti(e)||yt(22,e),(function t(r){if(!Gn(r))return r;var i,s=r[Kt],a=Ci(r);if(s){if(!s.P&&(s.i<4||!$r("ES5").K(s)))return s.t;s.I=!0,i=km(r,a),s.I=!1}else i=km(r,a);return Mo(i,(function(u,c){s&&mI(s.t,u)===c||e0(i,u,t(c))})),a===3?new Set(i):i})(e)}function km(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Tf(e)}var $m,Ri,Pf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wI=typeof Map<"u",xI=typeof Set<"u",Im=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",r0=Pf?Symbol.for("immer-nothing"):(($m={})["immer-nothing"]=!0,$m),Lm=Pf?Symbol.for("immer-draftable"):"__$immer_draftable",Kt=Pf?Symbol.for("immer-state"):"__$immer_state",SI={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},EI=""+Object.prototype.constructor,Cf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,_I=Object.getOwnPropertyDescriptors||function(e){var t={};return Cf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},OI={},Ic={get:function(e,t){if(t===Kt)return e;var r=Nn(e);if(!Pc(r,t))return(function(s,a,u){var c,f=Cm(a,u);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(s.k):void 0})(e,r,t);var i=r[t];return e.I||!Gn(i)?i:i===oc(e.t,t)?(sc(e),e.o[t]=$c(e.A.h,i,e)):i},has:function(e,t){return t in Nn(e)},ownKeys:function(e){return Reflect.ownKeys(Nn(e))},set:function(e,t,r){var i=Cm(Nn(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=oc(Nn(e),t),a=s==null?void 0:s[Kt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(vI(r,s)&&(r!==void 0||Pc(e.t,t)))return!0;sc(e),kc(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return oc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,sc(e),kc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Nn(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){yt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){yt(12)}},xo={};Mo(Ic,(function(e,t){xo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&yt(13),xo.set.call(this,e,t,void 0)},xo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&yt(14),Ic.set.call(this,e[0],t,r,e[0])};var AI=(function(){function e(r){var i=this;this.O=Im,this.D=!0,this.produce=function(s,a,u){if(typeof s=="function"&&typeof a!="function"){var c=a;a=s;var f=i;return function(d){var w=this;d===void 0&&(d=c);for(var h=arguments.length,S=Array(h>1?h-1:0),E=1;E<h;E++)S[E-1]=arguments[E];return f.produce(d,(function(R){var O;return(O=a).call.apply(O,[w,R].concat(S))}))}}var m;if(typeof a!="function"&&yt(6),u!==void 0&&typeof u!="function"&&yt(7),Gn(s)){var y=Rm(i),p=$c(i,s,void 0),g=!0;try{m=a(p),g=!1}finally{g?Ra(y):Cc(y)}return typeof Promise<"u"&&m instanceof Promise?m.then((function(d){return nc(y,u),ic(d,y)}),(function(d){throw Ra(y),d})):(nc(y,u),ic(m,y))}if(!s||typeof s!="object"){if((m=a(s))===void 0&&(m=s),m===r0&&(m=void 0),i.D&&Fo(m,!0),u){var v=[],x=[];$r("Patches").M(s,m,v,x),u(v,x)}return m}yt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(m){for(var y=arguments.length,p=Array(y>1?y-1:0),g=1;g<y;g++)p[g-1]=arguments[g];return i.produceWithPatches(m,(function(v){return s.apply(void 0,[v].concat(p))}))};var u,c,f=i.produce(s,a,(function(m,y){u=m,c=y}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(m){return[m,u,c]})):[f,u,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Gn(r)||yt(8),Ti(r)&&(r=t0(r));var i=Rm(this),s=$c(this,r,void 0);return s[Kt].C=!0,Cc(i),s},t.finishDraft=function(r,i){var s=r&&r[Kt];process.env.NODE_ENV!=="production"&&(s&&s.C||yt(9),s.I&&yt(10));var a=s.A;return nc(a,i),ic(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Im&&yt(20),this.O=r},t.applyPatches=function(r,i){var s;for(s=i.length-1;s>=0;s--){var a=i[s];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}s>-1&&(i=i.slice(s+1));var u=$r("Patches").$;return Ti(r)?u(r,i):this.produce(r,(function(c){return u(c,i)}))},e})(),Vt=new AI,TI=Vt.produce;Vt.produceWithPatches.bind(Vt);Vt.setAutoFreeze.bind(Vt);Vt.setUseProxies.bind(Vt);Vt.applyPatches.bind(Vt);Vt.createDraft.bind(Vt);Vt.finishDraft.bind(Vt);function RI(e){var t=W.useState(function(){return Fo(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],W.useCallback(function(i){r(typeof i=="function"?TI(i):Fo(i))},[])]}const PI=process.env.NODE_ENV==="development",ac=PI&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,CI=(e,t,r)=>{const[i,s]=RI(e),a=W.useRef(null);W.useEffect(()=>{var f;return r&&(a.current=ac==null?void 0:ac.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var m,y;(y=(m=a.current)==null?void 0:m.disconnect)==null||y.call(m)}},[]);const u=t&&typeof t=="object"?t:{},c=W.useMemo(()=>Object.keys(u).reduce((f,m)=>({...f,[m]:y=>(s(p=>{var g;u[m](p,y),(g=a.current)==null||g.send({type:u[m].name},t0(p))}),c)}),{}),[s]);return{state:i,dispatch:c}};function Xr(e){return typeof e=="function"}function n0(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var uc=n0(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
201
|
+
}`;var Te=Dh(function(){return Le(A,le+"return "+ee).apply(r,P)});if(Te.source=ee,bl(Te))throw Te;return Te}function IT(n){return Ne(n).toLowerCase()}function $T(n){return Ne(n).toUpperCase()}function LT(n,o,c){if(n=Ne(n),n&&(c||o===r))return Ud(n);if(!n||!(o=Wt(o)))return n;var b=fr(n),_=fr(o),A=qd(b,_),P=Gd(b,_)+1;return mn(b,A,P).join("")}function MT(n,o,c){if(n=Ne(n),n&&(c||o===r))return n.slice(0,Vd(n)+1);if(!n||!(o=Wt(o)))return n;var b=fr(n),_=Gd(b,fr(o))+1;return mn(b,0,_).join("")}function DT(n,o,c){if(n=Ne(n),n&&(c||o===r))return n.replace(bu,"");if(!n||!(o=Wt(o)))return n;var b=fr(n),_=qd(b,fr(o));return mn(b,_).join("")}function NT(n,o){var c=j,b=D;if(et(o)){var _="separator"in o?o.separator:_;c="length"in o?Ee(o.length):c,b="omission"in o?Wt(o.omission):b}n=Ne(n);var A=n.length;if(si(n)){var P=fr(n);A=P.length}if(c>=A)return n;var L=c-ai(b);if(L<1)return b;var B=P?mn(P,0,L).join(""):n.slice(0,L);if(_===r)return B+b;if(P&&(L+=B.length-L),wl(_)){if(n.slice(L).search(_)){var K,Y=B;for(_.global||(_=Du(_.source,Ne(dd.exec(_))+"g")),_.lastIndex=0;K=_.exec(Y);)var ee=K.index;B=B.slice(0,ee===r?L:ee)}}else if(n.indexOf(Wt(_),L)!=L){var se=B.lastIndexOf(_);se>-1&&(B=B.slice(0,se))}return B+b}function FT(n){return n=Ne(n),n&&Xb.test(n)?n.replace(ud,h1):n}var jT=hi(function(n,o,c){return n+(c?" ":"")+o.toUpperCase()}),_l=Dp("toUpperCase");function Mh(n,o,c){return n=Ne(n),o=c?r:o,o===r?l1(n)?v1(n):e1(n):n.match(o)||[]}var Dh=Ae(function(n,o){try{return jt(n,r,o)}catch(c){return bl(c)?c:new be(c)}}),zT=qr(function(n,o){return zt(o,function(c){c=pr(c),Er(n,c,vl(n[c],n))}),n});function BT(n){var o=n==null?0:n.length,c=ge();return n=o?Ye(n,function(b){if(typeof b[1]!="function")throw new Qt(u);return[c(b[0]),b[1]]}):[],Ae(function(b){for(var _=-1;++_<o;){var A=n[_];if(jt(A[0],this,b))return jt(A[1],this,b)}})}function WT(n){return hx(tr(n,g))}function Tl(n){return function(){return n}}function HT(n,o){return n==null||n!==n?o:n}var UT=Fp(),qT=Fp(!0);function Mt(n){return n}function Ol(n){return hp(typeof n=="function"?n:tr(n,g))}function GT(n){return mp(tr(n,g))}function ZT(n,o){return vp(n,tr(o,g))}var VT=Ae(function(n,o){return function(c){return Gi(c,n,o)}}),KT=Ae(function(n,o){return function(c){return Gi(n,c,o)}});function Al(n,o,c){var b=pt(o),_=As(o,b);c==null&&!(et(o)&&(_.length||!b.length))&&(c=o,o=n,n=this,_=As(o,pt(o)));var A=!(et(c)&&"chain"in c)||!!c.chain,P=Zr(n);return zt(_,function(L){var B=o[L];n[L]=B,P&&(n.prototype[L]=function(){var K=this.__chain__;if(A||K){var Y=n(this.__wrapped__),ee=Y.__actions__=It(this.__actions__);return ee.push({func:B,args:arguments,thisArg:n}),Y.__chain__=K,Y}return B.apply(n,cn([this.value()],arguments))})}),n}function YT(){return gt._===this&&(gt._=E1),this}function Rl(){}function XT(n){return n=Ee(n),Ae(function(o){return yp(o,n)})}var JT=il(Ye),QT=il(jd),eO=il(Pu);function Nh(n){return fl(n)?Cu(pr(n)):kx(n)}function tO(n){return function(o){return n==null?r:Dn(n,o)}}var rO=zp(),nO=zp(!0);function Pl(){return[]}function Cl(){return!1}function iO(){return{}}function oO(){return""}function sO(){return!0}function aO(n,o){if(n=Ee(n),n<1||n>ce)return[];var c=ne,b=Et(n,ne);o=ge(o),n-=ne;for(var _=$u(b,o);++c<n;)o(c);return _}function uO(n){return Se(n)?Ye(n,pr):Ht(n)?[n]:It(rh(Ne(n)))}function lO(n){var o=++x1;return Ne(n)+o}var cO=$s(function(n,o){return n+o},0),fO=ol("ceil"),dO=$s(function(n,o){return n/o},1),pO=ol("floor");function hO(n){return n&&n.length?Os(n,Mt,Uu):r}function gO(n,o){return n&&n.length?Os(n,ge(o,2),Uu):r}function mO(n){return Wd(n,Mt)}function vO(n,o){return Wd(n,ge(o,2))}function yO(n){return n&&n.length?Os(n,Mt,Vu):r}function bO(n,o){return n&&n.length?Os(n,ge(o,2),Vu):r}var wO=$s(function(n,o){return n*o},1),xO=ol("round"),SO=$s(function(n,o){return n-o},0);function EO(n){return n&&n.length?Iu(n,Mt):0}function _O(n,o){return n&&n.length?Iu(n,ge(o,2)):0}return O.after=ZE,O.ary=ph,O.assign=L_,O.assignIn=Ah,O.assignInWith=Rh,O.assignWith=xl,O.at=M_,O.before=hh,O.bind=vl,O.bindAll=zT,O.bindKey=gh,O.castArray=o_,O.chain=ch,O.chunk=hS,O.compact=gS,O.concat=mS,O.cond=BT,O.conforms=WT,O.constant=Tl,O.countBy=_E,O.create=D_,O.curry=mh,O.curryRight=vh,O.debounce=yh,O.defaults=N_,O.defaultsDeep=F_,O.defer=VE,O.delay=KE,O.difference=vS,O.differenceBy=yS,O.differenceWith=bS,O.drop=wS,O.dropRight=xS,O.dropRightWhile=SS,O.dropWhile=ES,O.fill=_S,O.filter=OE,O.flatMap=PE,O.flatMapDeep=CE,O.flatMapDepth=kE,O.flatten=sh,O.flattenDeep=TS,O.flattenDepth=OS,O.flip=YE,O.flow=UT,O.flowRight=qT,O.fromPairs=AS,O.functions=q_,O.functionsIn=G_,O.groupBy=IE,O.initial=PS,O.intersection=CS,O.intersectionBy=kS,O.intersectionWith=IS,O.invert=V_,O.invertBy=K_,O.invokeMap=LE,O.iteratee=Ol,O.keyBy=ME,O.keys=pt,O.keysIn=Lt,O.map=zs,O.mapKeys=X_,O.mapValues=J_,O.matches=GT,O.matchesProperty=ZT,O.memoize=Ws,O.merge=Q_,O.mergeWith=Ph,O.method=VT,O.methodOf=KT,O.mixin=Al,O.negate=Hs,O.nthArg=XT,O.omit=eT,O.omitBy=tT,O.once=XE,O.orderBy=DE,O.over=JT,O.overArgs=JE,O.overEvery=QT,O.overSome=eO,O.partial=yl,O.partialRight=bh,O.partition=NE,O.pick=rT,O.pickBy=Ch,O.property=Nh,O.propertyOf=tO,O.pull=DS,O.pullAll=uh,O.pullAllBy=NS,O.pullAllWith=FS,O.pullAt=jS,O.range=rO,O.rangeRight=nO,O.rearg=QE,O.reject=zE,O.remove=zS,O.rest=e_,O.reverse=gl,O.sampleSize=WE,O.set=iT,O.setWith=oT,O.shuffle=HE,O.slice=BS,O.sortBy=GE,O.sortedUniq=VS,O.sortedUniqBy=KS,O.split=RT,O.spread=t_,O.tail=YS,O.take=XS,O.takeRight=JS,O.takeRightWhile=QS,O.takeWhile=eE,O.tap=gE,O.throttle=r_,O.thru=js,O.toArray=_h,O.toPairs=kh,O.toPairsIn=Ih,O.toPath=uO,O.toPlainObject=Oh,O.transform=sT,O.unary=n_,O.union=tE,O.unionBy=rE,O.unionWith=nE,O.uniq=iE,O.uniqBy=oE,O.uniqWith=sE,O.unset=aT,O.unzip=ml,O.unzipWith=lh,O.update=uT,O.updateWith=lT,O.values=vi,O.valuesIn=cT,O.without=aE,O.words=Mh,O.wrap=i_,O.xor=uE,O.xorBy=lE,O.xorWith=cE,O.zip=fE,O.zipObject=dE,O.zipObjectDeep=pE,O.zipWith=hE,O.entries=kh,O.entriesIn=Ih,O.extend=Ah,O.extendWith=Rh,Al(O,O),O.add=cO,O.attempt=Dh,O.camelCase=hT,O.capitalize=$h,O.ceil=fO,O.clamp=fT,O.clone=s_,O.cloneDeep=u_,O.cloneDeepWith=l_,O.cloneWith=a_,O.conformsTo=c_,O.deburr=Lh,O.defaultTo=HT,O.divide=dO,O.endsWith=gT,O.eq=hr,O.escape=mT,O.escapeRegExp=vT,O.every=TE,O.find=AE,O.findIndex=ih,O.findKey=j_,O.findLast=RE,O.findLastIndex=oh,O.findLastKey=z_,O.floor=pO,O.forEach=fh,O.forEachRight=dh,O.forIn=B_,O.forInRight=W_,O.forOwn=H_,O.forOwnRight=U_,O.get=Sl,O.gt=f_,O.gte=d_,O.has=Z_,O.hasIn=El,O.head=ah,O.identity=Mt,O.includes=$E,O.indexOf=RS,O.inRange=dT,O.invoke=Y_,O.isArguments=jn,O.isArray=Se,O.isArrayBuffer=p_,O.isArrayLike=$t,O.isArrayLikeObject=it,O.isBoolean=h_,O.isBuffer=vn,O.isDate=g_,O.isElement=m_,O.isEmpty=v_,O.isEqual=y_,O.isEqualWith=b_,O.isError=bl,O.isFinite=w_,O.isFunction=Zr,O.isInteger=wh,O.isLength=Us,O.isMap=xh,O.isMatch=x_,O.isMatchWith=S_,O.isNaN=E_,O.isNative=__,O.isNil=O_,O.isNull=T_,O.isNumber=Sh,O.isObject=et,O.isObjectLike=nt,O.isPlainObject=Ji,O.isRegExp=wl,O.isSafeInteger=A_,O.isSet=Eh,O.isString=qs,O.isSymbol=Ht,O.isTypedArray=mi,O.isUndefined=R_,O.isWeakMap=P_,O.isWeakSet=C_,O.join=$S,O.kebabCase=yT,O.last=nr,O.lastIndexOf=LS,O.lowerCase=bT,O.lowerFirst=wT,O.lt=k_,O.lte=I_,O.max=hO,O.maxBy=gO,O.mean=mO,O.meanBy=vO,O.min=yO,O.minBy=bO,O.stubArray=Pl,O.stubFalse=Cl,O.stubObject=iO,O.stubString=oO,O.stubTrue=sO,O.multiply=wO,O.nth=MS,O.noConflict=YT,O.noop=Rl,O.now=Bs,O.pad=xT,O.padEnd=ST,O.padStart=ET,O.parseInt=_T,O.random=pT,O.reduce=FE,O.reduceRight=jE,O.repeat=TT,O.replace=OT,O.result=nT,O.round=xO,O.runInContext=z,O.sample=BE,O.size=UE,O.snakeCase=AT,O.some=qE,O.sortedIndex=WS,O.sortedIndexBy=HS,O.sortedIndexOf=US,O.sortedLastIndex=qS,O.sortedLastIndexBy=GS,O.sortedLastIndexOf=ZS,O.startCase=PT,O.startsWith=CT,O.subtract=SO,O.sum=EO,O.sumBy=_O,O.template=kT,O.times=aO,O.toFinite=Vr,O.toInteger=Ee,O.toLength=Th,O.toLower=IT,O.toNumber=ir,O.toSafeInteger=$_,O.toString=Ne,O.toUpper=$T,O.trim=LT,O.trimEnd=MT,O.trimStart=DT,O.truncate=NT,O.unescape=FT,O.uniqueId=lO,O.upperCase=jT,O.upperFirst=_l,O.each=fh,O.eachRight=dh,O.first=ah,Al(O,(function(){var n={};return _r(O,function(o,c){De.call(O.prototype,c)||(n[c]=o)}),n})(),{chain:!1}),O.VERSION=i,zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){O[n].placeholder=O}),zt(["drop","take"],function(n,o){Pe.prototype[n]=function(c){c=c===r?1:ft(Ee(c),0);var b=this.__filtered__&&!o?new Pe(this):this.clone();return b.__filtered__?b.__takeCount__=Et(c,b.__takeCount__):b.__views__.push({size:Et(c,ne),type:n+(b.__dir__<0?"Right":"")}),b},Pe.prototype[n+"Right"]=function(c){return this.reverse()[n](c).reverse()}}),zt(["filter","map","takeWhile"],function(n,o){var c=o+1,b=c==k||c==J;Pe.prototype[n]=function(_){var A=this.clone();return A.__iteratees__.push({iteratee:ge(_,3),type:c}),A.__filtered__=A.__filtered__||b,A}}),zt(["head","last"],function(n,o){var c="take"+(o?"Right":"");Pe.prototype[n]=function(){return this[c](1).value()[0]}}),zt(["initial","tail"],function(n,o){var c="drop"+(o?"":"Right");Pe.prototype[n]=function(){return this.__filtered__?new Pe(this):this[c](1)}}),Pe.prototype.compact=function(){return this.filter(Mt)},Pe.prototype.find=function(n){return this.filter(n).head()},Pe.prototype.findLast=function(n){return this.reverse().find(n)},Pe.prototype.invokeMap=Ae(function(n,o){return typeof n=="function"?new Pe(this):this.map(function(c){return Gi(c,n,o)})}),Pe.prototype.reject=function(n){return this.filter(Hs(ge(n)))},Pe.prototype.slice=function(n,o){n=Ee(n);var c=this;return c.__filtered__&&(n>0||o<0)?new Pe(c):(n<0?c=c.takeRight(-n):n&&(c=c.drop(n)),o!==r&&(o=Ee(o),c=o<0?c.dropRight(-o):c.take(o-n)),c)},Pe.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pe.prototype.toArray=function(){return this.take(ne)},_r(Pe.prototype,function(n,o){var c=/^(?:filter|find|map|reject)|While$/.test(o),b=/^(?:head|last)$/.test(o),_=O[b?"take"+(o=="last"?"Right":""):o],A=b||/^find/.test(o);_&&(O.prototype[o]=function(){var P=this.__wrapped__,L=b?[1]:arguments,B=P instanceof Pe,K=L[0],Y=B||Se(P),ee=function(Re){var Ce=_.apply(O,cn([Re],L));return b&&se?Ce[0]:Ce};Y&&c&&typeof K=="function"&&K.length!=1&&(B=Y=!1);var se=this.__chain__,le=!!this.__actions__.length,me=A&&!se,Te=B&&!le;if(!A&&Y){P=Te?P:new Pe(this);var pe=n.apply(P,L);return pe.__actions__.push({func:js,args:[ee],thisArg:r}),new er(pe,se)}return me&&Te?n.apply(this,L):(pe=this.thru(ee),me?b?pe.value()[0]:pe.value():pe)})}),zt(["pop","push","shift","sort","splice","unshift"],function(n){var o=fs[n],c=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",b=/^(?:pop|shift)$/.test(n);O.prototype[n]=function(){var _=arguments;if(b&&!this.__chain__){var A=this.value();return o.apply(Se(A)?A:[],_)}return this[c](function(P){return o.apply(Se(P)?P:[],_)})}}),_r(Pe.prototype,function(n,o){var c=O[o];if(c){var b=c.name+"";De.call(fi,b)||(fi[b]=[]),fi[b].push({name:o,func:c})}}),fi[Is(r,S).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=j1,Pe.prototype.reverse=z1,Pe.prototype.value=B1,O.prototype.at=mE,O.prototype.chain=vE,O.prototype.commit=yE,O.prototype.next=bE,O.prototype.plant=xE,O.prototype.reverse=SE,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=EE,O.prototype.first=O.prototype.head,ji&&(O.prototype[ji]=wE),O}),ui=y1();kn?((kn.exports=ui)._=ui,Tu._=ui):gt._=ui}).call(o$)})(Oo,Oo.exports)),Oo.exports}var Ie=s$();const Fc={FdSave:Qe.FdSave,FdWarningDanger:Qe.FdWarningDanger,FdInfoCircle:Qe.FdInfoCircle,FdInfoBold:Qe.FdInfoBold};var $f=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))($f||{}),Vn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Vn||{}),Ei=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Ei||{});const c0={[Vn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Vn.DANGER]:{icon:"red-500",button:"primary-dark"},[Vn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},lc=({color:e=Vn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=c0[e].button,u=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return I.jsx("button",{autoFocus:i,className:Be("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",u),...s,children:r})},a$=({name:e,color:t=Vn.PRIMARY,className:r="w-8 h-8"})=>{const i=Fc[e]||Fc.FdInfoCircle,s=`text-${c0[t].icon}`;return I.jsx(i,{className:Be(r,s)})},u$=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:u=3e3,views:l,width:f=520,hasOverlay:p=!0,container:m,onClose:d,onEdit:g})=>{const y=w=>{d({id:e,reason:w})};M.useEffect(()=>{function w(v){v.key==="Escape"&&y(Ei.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=Ie.merge(Ie.values(l==null?void 0:l.toggles).flatMap(w=>w.value?w.warnings||[]:[]),l==null?void 0:l.tips),h=(w,v)=>{var E;if(!(l!=null&&l.toggles))return;const S=Ie.cloneDeep(l);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=v),g({id:e,views:S})};return Qn.createPortal(I.jsx(Ca,{appear:!0,show:!0,as:M.Fragment,children:I.jsx("div",{className:Be("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":p}),style:{zIndex:u},onClick:()=>y(Ei.CANCELED),children:I.jsx(Ca.Child,{as:M.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:I.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:I.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?I.jsx("div",{className:"flex items-center justify-center",children:I.jsx(a$,{name:i,color:a,className:"w-6 h-6"})}):null,I.jsx(l$,{condition:t,children:I.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),I.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),I.jsx("div",{className:"text-xs text-white",children:Ie.values(l==null?void 0:l.toggles).map(w=>I.jsx("div",{children:I.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[I.jsx(Vy,{size:"xs",value:w.value,onChange:v=>h(w.key,v)}),I.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),I.jsx(c$,{warnings:x}),I.jsx("div",{className:"flex items-center gap-4",children:s===$f.CONFIRM?I.jsxs(I.Fragment,{children:[I.jsx(lc,{autoFocus:!0,color:a,onClick:()=>y(Ei.CONFIRMED),children:"Confirm"}),I.jsx(lc,{color:a,variant:"outlined",onClick:()=>y(Ei.CANCELED),children:"Cancel"})]}):I.jsx(lc,{autoFocus:!0,onClick:()=>y(),children:"OK"})})]})})})})}),m||document.body)},l$=e=>e.condition?I.jsx(I.Fragment,{children:e.children}):null,c$=e=>e.warnings?I.jsx(Ca,{appear:!0,show:!!e.warnings.length,as:M.Fragment,children:I.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)=>I.jsx(Ca.Child,{as:M.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:I.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[I.jsx(Qe.FdWarningDanger,{className:Be({"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")}),I.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var f0=(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))(f0||{});const f$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>I.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[I.jsx(Qe.FdMinusNaked,{onClick:s,className:Be("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),I.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),I.jsx(Qe.FdPlusNaked,{onClick:i,className:Be("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),d$=$.forwardRef(((e,t)=>$.createElement(Pn.span,rt({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),p$=d$;function Um(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[d0]=hf("Tooltip",[Ka]),Lf=Ka(),h$=700,[k2,g$]=d0("TooltipProvider",{isOpenDelayed:!0,delayDuration:h$,onOpen:()=>{},onClose:()=>{}}),[m$,tu]=d0("Tooltip"),v$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:u}=e,l=g$("Tooltip",t),f=Lf(t),[p,m]=$.useState(null),d=fy(),g=$.useRef(0),y=u??l.delayDuration,x=$.useRef(!1),{onOpen:h,onClose:w}=l,[v=!1,S]=Ey({prop:i,defaultProp:s,onChange:C=>{C&&(document.dispatchEvent(new CustomEvent("tooltip.open")),h()),a==null||a(C)}}),E=$.useMemo((()=>v?x.current?"delayed-open":"instant-open":"closed"),[v]),R=$.useCallback((()=>{window.clearTimeout(g.current),x.current=!1,S(!0)}),[S]),T=$.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{x.current=!0,S(!0)}),y)}),[y,S]);return $.useEffect((()=>()=>window.clearTimeout(g.current)),[]),$.createElement(wy,f,$.createElement(m$,{scope:t,contentId:d,open:v,stateAttribute:E,trigger:p,onTriggerChange:m,onTriggerEnter:$.useCallback((()=>{l.isOpenDelayed?T():R()}),[l.isOpenDelayed,T,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(g.current),S(!1),w()}),[S,w])},r))},y$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=tu("TooltipTrigger",r),a=Lf(r),u=Rn(t,s.onTriggerChange),l=$.useRef(!1),f=$.useCallback((()=>l.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(xy,rt({asChild:!0},a),$.createElement(Pn.button,rt({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:u,onMouseEnter:Zt(e.onMouseEnter,s.onTriggerEnter),onMouseLeave:Zt(e.onMouseLeave,s.onClose),onMouseDown:Zt(e.onMouseDown,(()=>{s.onClose(),l.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:Zt(e.onFocus,(()=>{l.current||s.onOpen()})),onBlur:Zt(e.onBlur,s.onClose),onClick:Zt(e.onClick,(p=>{p.detail===0&&s.onClose()}))})))})),b$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=tu("TooltipContent",e.__scopeTooltip);return $.createElement(df,{present:r||s.open},$.createElement(w$,rt({ref:t},i)))})),w$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...u}=e,l=tu("TooltipContent",r),f=Lf(r),p=a?pf:$.Fragment,{onClose:m}=l;return gy((()=>m())),$.useEffect((()=>(document.addEventListener("tooltip.open",m),()=>document.removeEventListener("tooltip.open",m))),[m]),$.createElement(p,null,$.createElement(x$,{__scopeTooltip:r}),$.createElement(Sy,rt({"data-state":l.stateAttribute},f,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(hy,null,i),$.createElement(p$,{id:l.contentId,role:"tooltip"},s||i)))}));function x$(e){const{__scopeTooltip:t}=e,r=tu("CheckTriggerMoved",t),i=vy(r.trigger),s=i==null?void 0:i.left,a=Um(s),u=i==null?void 0:i.top,l=Um(u),f=r.onClose;return $.useEffect((()=>{(a!==void 0&&a!==s||l!==void 0&&l!==u)&&f()}),[f,a,l,s,u]),null}const S$=v$,E$=y$,_$=b$;function T$(e){const t=M.isValidElement(e.children)?M.Children.only(e.children):I.jsx("span",{className:"inline-flex",children:e.children});return I.jsxs(S$,{delayDuration:e.delayDuration,open:e.open,children:[I.jsx(E$,{tabIndex:-1,asChild:!0,children:t}),I.jsxs(_$,{portalled:!0,side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,className:Be("z-[1000] max-w-[240px] rounded-md bg-primary-light px-2 py-1 text-s font-semibold text-primary-dark shadow-md"),children:[typeof e.message=="string"&&I.jsx("p",{children:e.message}),typeof e.message!="string"&&e.message]})]})}const Pr=30,p0=.3,h0=.6,O$=()=>typeof window>"u"?400:Math.round(window.innerHeight*p0),g0=()=>typeof window>"u"?600:Math.round(window.innerHeight*h0),qm=e=>{const t=g0();return Math.min(Math.max(e,Pr),t)},A$=()=>I.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),R$=e=>{const[t,r]=M.useState(Pr),i=M.useRef(),s=M.useRef(null),a=g0(),u=O$(),l=t>Pr;M.useEffect(()=>{r(e.isOpen?u:Pr)},[e.isOpen,u]),M.useEffect(()=>{const p=()=>{r(m=>m<=Pr?Pr:qm(m))};return window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p),s.current&&cancelAnimationFrame(s.current)}},[]);const f=()=>{if(l){r(Pr),e.onClose();return}r(u),e.onOpen()};return I.jsx("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:I.jsx(AO.Resizable,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:a,minHeight:Pr,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(l?Pr:u):i.current=Date.now()},onResize:(p,m,d)=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{var g;(g=e.onResize)==null||g.call(e),s.current=null})},onResizeStop:(p,m,d,g)=>{r(y=>qm(y+g.height))},handleComponent:{top:I.jsx(A$,{})},children:I.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ie.kebabCase(e.path)}`,children:[I.jsxs("div",{className:Be("flex justify-between items-center px-3 py-0.5",{"flex-1":!l}),children:[I.jsxs("div",{className:"group flex items-center justify-start",children:[I.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),e.tipKey?I.jsx(Dy,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,I.jsx("button",{"data-cy":`contextualPanel-toggle-button-${l?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:f,children:l?I.jsx(Qe.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):I.jsx(Qe.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),I.jsxs(va,{of:l,children:[I.jsx(va,{of:e.render,children:e.render}),I.jsx(va,{of:!e.render,children:e.children})]})]})})})};function m0({children:e,viewBox:t="0 0 24 24",...r}){return I.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...Ie.omit(r,"isIndeterminate","isChecked"),children:e})}function v0(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return I.jsx(m0,{viewBox:"0 0 24 24",...e,children:I.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function P$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:u,...l}){const f=M.useRef(null),p=i||I.jsx(v0,{}),m=l.checked??e;M.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const d=m||t,g=["base-checkbox-container",a].join(" ");return I.jsxs("label",{className:g,style:u,"data-invalid":r,children:[I.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:m,...l,"aria-invalid":r||void 0}),I.jsx("span",{className:"base-checkbox-control",children:d&&p&&M.cloneElement(p,{isChecked:m,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&I.jsx("span",{className:"base-checkbox-label",children:s})]})}const C$=M.forwardRef(({label:e,Icon:t,as:r="button",className:i="",disableHover:s=!1,iconClassname:a,...u},l)=>{const[f,p]=M.useState(null),[m,d]=M.useState(!1);return M.useImperativeHandle(l,()=>f,[f]),I.jsxs(I.Fragment,{children:[I.jsx(r,{ref:p,className:Be("rounded p-1 text-white focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",{"hover:bg-primary-hover":!s},i),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onMouseDown:()=>d(!1),...u,children:I.jsx(t,{className:Be("h-4 w-4",a)})}),m&&Qn.createPortal(I.jsx(u0,{label:e,referenceElement:f}),document.body)]})}),k$=({onChange:e,value:t,delay:r,placeholder:i,containerClassName:s,onFocusInput:a,icon:u,"data-cy":l})=>{const[f,p]=M.useState(t),m=M.useRef(null);return I.jsxs("div",{className:"w-full flex gap-x-1",children:[u&&I.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 d;return(d=m.current)==null?void 0:d.focus()},children:I.jsx("span",{className:`text-base fa ${u}`})}),I.jsxs("div",{className:Be("flex h-6 w-full rounded bg-grey-300 pl-1.5 pr-1 focus-within:outline-none focus-within:ring-[1px] focus-within:ring-primary-dark mb-1",s),children:[I.jsx("span",{className:"flex items-center justify-center",children:!u&&I.jsx(Qe.FdSearch,{className:"text-grey-100"})}),I.jsx("input",{ref:m,"data-cy":l||"search-cy",type:"text",className:"w-full rounded bg-grey-300 py-1.5 pl-1 pr-1 text-xs placeholder-grey-200 focus:outline-none focus:ring-0",placeholder:i||"Search",onChange:d=>{p(d.currentTarget.value);const g=Ie.escapeRegExp(d.target.value);if(!r)return e(g);Ie.debounce(e,r)(g)},value:f,onFocus:()=>a&&a(),onDrop:d=>d.preventDefault()}),t&&I.jsx("span",{onClick:()=>{e(""),p("")},className:"flex cursor-pointer items-center justify-center",children:I.jsx(Qe.FdCloseNaked,{})})]})]})},I$=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:i,onReset:s,resetButtonLabel:a="Reset Page"})=>I.jsx("div",{className:"flex h-full w-full items-center justify-center",children:I.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[I.jsxs("div",{className:"relative",children:[I.jsx(Qe.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-red-500 rounded-full"}),I.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"})]}),I.jsx("p",{className:"mb-2 mt-4 text-2xl text-white",children:e}),I.jsx("p",{className:"text-md mb-4 font-extralight text-grey-100",children:t}),I.jsxs("div",{className:"flex gap-4",children:[i&&I.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&&I.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&&I.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 _i(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function $$({rowGap:e,columnGap:t,templateColumns:r,templateRows:i,height:s,width:a,style:u,...l}){return I.jsx("div",{...l,style:{display:"grid",rowGap:_i(e),columnGap:_i(t),gridTemplateColumns:r,gridTemplateRows:i,height:_i(s),width:_i(a),...u}})}function L$({colStart:e,colSpan:t,rowStart:r,rowSpan:i,sx:s,style:a,...u}){return I.jsx("div",{...u,style:{gridColumnStart:e,gridColumnEnd:t?`span ${t}`:void 0,gridRowStart:r,gridRowEnd:i?`span ${i}`:void 0,...s,...a}})}function M$({columns:e=1,spacingX:t,spacingY:r,style:i,...s}){return I.jsx("div",{...s,style:{display:"grid",gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`,columnGap:_i(t),rowGap:_i(r),...i}})}const y0=M.forwardRef(({fallback:e=null,onError:t,onLoad:r,src:i,style:s,...a},u)=>{const[l,f]=M.useState(!1);return M.useEffect(()=>{f(!1)},[i]),!i||l?I.jsx(I.Fragment,{children:e}):I.jsx("img",{...a,ref:u,src:i,style:s,onLoad:p=>{f(!1),r==null||r(p)},onError:p=>{f(!0),t==null||t(p)}})});y0.displayName="Image";function D$(e,t){const r=M.useRef(!1);M.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const cc=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function fc(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function Eo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function b0(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 w0(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 N$(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 zo={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,"-":cc?173:189,"=":cc?61:187,";":cc?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},xr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Ao={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},bt={16:!1,18:!1,17:!1,91:!1},tt={};for(let e=1;e<20;e++)zo["f".concat(e)]=111+e;let Je=[],Do=null,x0="all";const Xr=new Map,Di=e=>zo[e.toLowerCase()]||xr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),F$=e=>Object.keys(zo).find(t=>zo[t]===e),j$=e=>Object.keys(xr).find(t=>xr[t]===e);function S0(e){x0=e||"all"}function Bo(){return x0||"all"}function z$(){return Je.slice(0)}function B$(){return Je.map(e=>F$(e)||j$(e)||String.fromCharCode(e))}function W$(){const e=[];return Object.keys(tt).forEach(t=>{tt[t].forEach(r=>{let{key:i,scope:s,mods:a,shortcut:u}=r;e.push({scope:s,shortcut:u,mods:a,keys:i.split("+").map(l=>Di(l))})})}),e}function H$(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 U$(e){return typeof e=="string"&&(e=Di(e)),Je.indexOf(e)!==-1}function q$(e,t){let r,i;e||(e=Bo());for(const s in tt)if(Object.prototype.hasOwnProperty.call(tt,s))for(r=tt[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(u=>{let{element:l}=u;return Mf(l)}):i++;Bo()===e&&S0(t||"all")}function G$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Di(e.key));const r=Je.indexOf(t);if(r>=0&&Je.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Je.splice(0,Je.length),(t===93||t===224)&&(t=91),t in bt){bt[t]=!1;for(const i in xr)xr[i]===t&&(br[i]=!1)}}function E0(e){if(typeof e>"u")Object.keys(tt).forEach(s=>{Array.isArray(tt[s])&&tt[s].forEach(a=>la(a)),delete tt[s]}),Mf(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&la(s)});else if(typeof e=="object")e.key&&la(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=""),la({key:e,scope:s,method:a,splitKey:"+"})}}const la=e=>{let{key:t,scope:r,method:i,splitKey:s="+"}=e;w0(t).forEach(u=>{const l=u.split(s),f=l.length,p=l[f-1],m=p==="*"?"*":Di(p);if(!tt[m])return;r||(r=Bo());const d=f>1?b0(xr,l):[],g=[];tt[m]=tt[m].filter(y=>{const h=(i?y.method===i:!0)&&y.scope===r&&N$(y.mods,d);return h&&g.push(y.element),!h}),g.forEach(y=>Mf(y))})};function Gm(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 bt)Object.prototype.hasOwnProperty.call(bt,a)&&(!bt[a]&&t.mods.indexOf(+a)>-1||bt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!bt[16]&&!bt[18]&&!bt[17]&&!bt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Je),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Zm(e,t){const r=tt["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!br.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Je.indexOf(i)===-1&&i!==229&&Je.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(l=>{const f=Ao[l];e[l]&&Je.indexOf(f)===-1?Je.push(f):!e[l]&&Je.indexOf(f)>-1?Je.splice(Je.indexOf(f),1):l==="metaKey"&&e[l]&&(Je=Je.filter(p=>p in Ao||p===i))}),i in bt){bt[i]=!0;for(const l in xr)if(Object.prototype.hasOwnProperty.call(xr,l)){const f=Ao[xr[l]];br[l]=e[f]}if(!r)return}for(const l in bt)Object.prototype.hasOwnProperty.call(bt,l)&&(bt[l]=e[Ao[l]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Je.indexOf(17)===-1&&Je.push(17),Je.indexOf(18)===-1&&Je.push(18),bt[17]=!0,bt[18]=!0);const s=Bo();if(r)for(let l=0;l<r.length;l++)r[l].scope===s&&(e.type==="keydown"&&r[l].keydown||e.type==="keyup"&&r[l].keyup)&&Gm(e,r[l],s,t);if(!(i in tt))return;const a=tt[i],u=a.length;for(let l=0;l<u;l++)if((e.type==="keydown"&&a[l].keydown||e.type==="keyup"&&a[l].keyup)&&a[l].key){const f=a[l],{splitKey:p}=f,m=f.key.split(p),d=[];for(let g=0;g<m.length;g++)d.push(Di(m[g]));d.sort().join("")===Je.sort().join("")&&Gm(e,f,s,t)}}function br(e,t,r){Je=[];const i=w0(e);let s=[],a="all",u=document,l=0,f=!1,p=!0,m="+",d=!1,g=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(u=t.element),t.keyup&&(f=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(m=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(a=t),g&&E0(e,a);l<i.length;l++)e=i[l].split(m),s=[],e.length>1&&(s=b0(xr,e)),e=e[e.length-1],e=e==="*"?"*":Di(e),e in tt||(tt[e]=[]),tt[e].push({keyup:f,keydown:p,scope:a,mods:s,shortcut:i[l],method:r,key:i[l],splitKey:m,element:u});if(typeof u<"u"&&window){if(!Xr.has(u)){const y=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Zm(h,u)},x=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Zm(h,u),G$(h)};Xr.set(u,{keydownListener:y,keyupListenr:x,capture:d}),fc(u,"keydown",y,d),fc(u,"keyup",x,d)}if(!Do){const y=()=>{Je=[]};Do={listener:y,capture:d},fc(window,"focus",y,d)}}}function Z$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(tt).forEach(r=>{tt[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function Mf(e){const t=Object.values(tt).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Xr.get(e)||{};i&&s&&(Eo(e,"keyup",s,a),Eo(e,"keydown",i,a),Xr.delete(e))}if((t.length<=0||Xr.size<=0)&&(Object.keys(Xr).forEach(s=>{const{keydownListener:a,keyupListenr:u,capture:l}=Xr.get(s)||{};a&&u&&(Eo(s,"keyup",u,l),Eo(s,"keydown",a,l),Xr.delete(s))}),Xr.clear(),Object.keys(tt).forEach(s=>delete tt[s]),Do)){const{listener:s,capture:a}=Do;Eo(window,"focus",s,a),Do=null}}const dc={getPressedKeyString:B$,setScope:S0,getScope:Bo,deleteScope:q$,getPressedKeyCodes:z$,getAllKeyCodes:W$,isPressed:U$,filter:H$,trigger:Z$,unbind:E0,keyMap:zo,modifier:xr,modifierMap:Ao};for(const e in dc)Object.prototype.hasOwnProperty.call(dc,e)&&(br[e]=dc[e]);if(typeof window<"u"){const e=window.hotkeys;br.noConflict=t=>(t&&window.hotkeys===br&&(window.hotkeys=e),br),window.hotkeys=br}br.filter=()=>!0;function V$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:s=!0}=r,a=M.useCallback((l,f)=>{s&&l.preventDefault(),setTimeout(()=>t(l,f))},i),u=()=>{br.unbind(e,a)};M.useEffect(()=>(br(e,r,a),u),[e,r,a])}const K$=(e,t="click")=>{const r=M.useRef(null);return M.useEffect(()=>{const i=s=>{r.current&&!r.current.contains(s.target)&&e(s)};return document.addEventListener(t,i,!0),()=>{document.removeEventListener(t,i,!0)}},[e,t]),r};function Y$(e){const t=M.useRef();return M.useEffect(()=>{t.current=e},[e]),t.current}function X$(e){const t=M.useRef(e);return M.useEffect(()=>{t.current=e},[e]),t}function J$(e){const t=M.useRef(null);return M.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function Q$(e){const[t,r]=M.useState(e),i=(a,u)=>{r(l=>({...l,features:{...l.features,[a]:{enabled:u}}}))},s=M.useCallback((...a)=>a.every(u=>{var l;return(l=t.features[u])==null?void 0:l.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:s}}const _0=M.createContext(""),eL=e=>I.jsx(_0.Provider,{value:e.value,children:e.children}),tL=()=>{const e=M.useContext(_0);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function rL(e){const[t,r]=M.useState(e),i=M.useMemo(()=>nL(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function nL(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Ie.upperFirst(s)}`]:a=>t(u=>({...u,[s]:a}))}),{})}const iL=(e,t,r={})=>{r={timeout:200,...r};const i=M.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return M.useCallback((a,...u)=>{s(),t&&a.detail===1&&(i.current=setTimeout(()=>{t(a,...u)},r.timeout)),a.detail%2===0&&e(a,...u)},[t,e,r.timeout])};function wt(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=fL[e],a=s?typeof s=="function"?s.apply(null,r):s:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(u){return"'"+u+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Li(e){return!!e&&!!e[Yt]}function Jn(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)===dL})(e)||Array.isArray(e)||!!e[tv]||!!(!((t=e.constructor)===null||t===void 0)&&t[tv])||Df(e)||Nf(e))}function Wo(e,t,r){r===void 0&&(r=!1),Ni(e)===0?(r?Object.keys:Bf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function Ni(e){var t=e[Yt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Df(e)?2:Nf(e)?3:0}function jc(e,t){return Ni(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oL(e,t){return Ni(e)===2?e.get(t):e[t]}function T0(e,t,r){var i=Ni(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function sL(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Df(e){return lL&&e instanceof Map}function Nf(e){return cL&&e instanceof Set}function Hn(e){return e.o||e.t}function Ff(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=pL(e);delete t[Yt];for(var r=Bf(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 Ho(e,t){return t===void 0&&(t=!1),jf(e)||Li(e)||!Jn(e)||(Ni(e)>1&&(e.set=e.add=e.clear=e.delete=aL),Object.freeze(e),t&&Wo(e,(function(r,i){return Ho(i,!0)}),!0)),e}function aL(){wt(2)}function jf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Dr(e){var t=hL[e];return t||wt(18,e),t}function Vm(){return process.env.NODE_ENV==="production"||Mi||wt(0),Mi}function pc(e,t){t&&(Dr("Patches"),e.u=[],e.s=[],e.v=t)}function La(e){zc(e),e.p.forEach(uL),e.p=null}function zc(e){e===Mi&&(Mi=e.l)}function Km(e){return Mi={p:[],l:Mi,h:e,m:!0,_:0}}function uL(e){var t=e[Yt];t.i===0||t.i===1?t.j():t.g=!0}function hc(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||Dr("ES5").S(t,e,i),i?(r[Yt].P&&(La(t),wt(4)),Jn(e)&&(e=Ma(t,e),t.l||Da(t,e)),t.u&&Dr("Patches").M(r[Yt].t,e,t.u,t.s)):e=Ma(t,r,[]),La(t),t.u&&t.v(t.u,t.s),e!==A0?e:void 0}function Ma(e,t,r){if(jf(t))return t;var i=t[Yt];if(!i)return Wo(t,(function(l,f){return Ym(e,i,t,l,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Da(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=Ff(i.k):i.o,a=s,u=!1;i.i===3&&(a=new Set(s),s.clear(),u=!0),Wo(a,(function(l,f){return Ym(e,i,s,l,f,r,u)})),Da(e,s,!1),r&&e.u&&Dr("Patches").N(i,r,e.u,e.s)}return i.o}function Ym(e,t,r,i,s,a,u){if(process.env.NODE_ENV!=="production"&&s===r&&wt(5),Li(s)){var l=Ma(e,s,a&&t&&t.i!==3&&!jc(t.R,i)?a.concat(i):void 0);if(T0(r,i,l),!Li(l))return;e.m=!1}else u&&r.add(s);if(Jn(s)&&!jf(s)){if(!e.h.D&&e._<1)return;Ma(e,s),t&&t.A.l||Da(e,s)}}function Da(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ho(t,r)}function gc(e,t){var r=e[Yt];return(r?Hn(r):e)[t]}function Xm(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 Bc(e){e.P||(e.P=!0,e.l&&Bc(e.l))}function mc(e){e.o||(e.o=Ff(e.t))}function Wc(e,t,r){var i=Df(t)?Dr("MapSet").F(t,r):Nf(t)?Dr("MapSet").T(t,r):e.O?(function(s,a){var u=Array.isArray(s),l={i:u?1:0,A:a?a.A:Vm(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=l,p=Hc;u&&(f=[l],p=Ro);var m=Proxy.revocable(f,p),d=m.revoke,g=m.proxy;return l.k=g,l.j=d,g})(t,r):Dr("ES5").J(t,r);return(r?r.A:Vm()).p.push(i),i}function O0(e){return Li(e)||wt(22,e),(function t(r){if(!Jn(r))return r;var i,s=r[Yt],a=Ni(r);if(s){if(!s.P&&(s.i<4||!Dr("ES5").K(s)))return s.t;s.I=!0,i=Jm(r,a),s.I=!1}else i=Jm(r,a);return Wo(i,(function(u,l){s&&oL(s.t,u)===l||T0(i,u,t(l))})),a===3?new Set(i):i})(e)}function Jm(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ff(e)}var Qm,Mi,zf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",lL=typeof Map<"u",cL=typeof Set<"u",ev=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",A0=zf?Symbol.for("immer-nothing"):((Qm={})["immer-nothing"]=!0,Qm),tv=zf?Symbol.for("immer-draftable"):"__$immer_draftable",Yt=zf?Symbol.for("immer-state"):"__$immer_state",fL={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,Bf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,pL=Object.getOwnPropertyDescriptors||function(e){var t={};return Bf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},hL={},Hc={get:function(e,t){if(t===Yt)return e;var r=Hn(e);if(!jc(r,t))return(function(s,a,u){var l,f=Xm(a,u);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(s.k):void 0})(e,r,t);var i=r[t];return e.I||!Jn(i)?i:i===gc(e.t,t)?(mc(e),e.o[t]=Wc(e.A.h,i,e)):i},has:function(e,t){return t in Hn(e)},ownKeys:function(e){return Reflect.ownKeys(Hn(e))},set:function(e,t,r){var i=Xm(Hn(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=gc(Hn(e),t),a=s==null?void 0:s[Yt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(sL(r,s)&&(r!==void 0||jc(e.t,t)))return!0;mc(e),Bc(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 gc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,mc(e),Bc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Hn(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){wt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){wt(12)}},Ro={};Wo(Hc,(function(e,t){Ro[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ro.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&wt(13),Ro.set.call(this,e,t,void 0)},Ro.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&wt(14),Hc.set.call(this,e[0],t,r,e[0])};var gL=(function(){function e(r){var i=this;this.O=ev,this.D=!0,this.produce=function(s,a,u){if(typeof s=="function"&&typeof a!="function"){var l=a;a=s;var f=i;return function(h){var w=this;h===void 0&&(h=l);for(var v=arguments.length,S=Array(v>1?v-1:0),E=1;E<v;E++)S[E-1]=arguments[E];return f.produce(h,(function(R){var T;return(T=a).call.apply(T,[w,R].concat(S))}))}}var p;if(typeof a!="function"&&wt(6),u!==void 0&&typeof u!="function"&&wt(7),Jn(s)){var m=Km(i),d=Wc(i,s,void 0),g=!0;try{p=a(d),g=!1}finally{g?La(m):zc(m)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(h){return pc(m,u),hc(h,m)}),(function(h){throw La(m),h})):(pc(m,u),hc(p,m))}if(!s||typeof s!="object"){if((p=a(s))===void 0&&(p=s),p===A0&&(p=void 0),i.D&&Ho(p,!0),u){var y=[],x=[];Dr("Patches").M(s,p,y,x),u(y,x)}return p}wt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(p){for(var m=arguments.length,d=Array(m>1?m-1:0),g=1;g<m;g++)d[g-1]=arguments[g];return i.produceWithPatches(p,(function(y){return s.apply(void 0,[y].concat(d))}))};var u,l,f=i.produce(s,a,(function(p,m){u=p,l=m}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(p){return[p,u,l]})):[f,u,l]},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){Jn(r)||wt(8),Li(r)&&(r=O0(r));var i=Km(this),s=Wc(this,r,void 0);return s[Yt].C=!0,zc(i),s},t.finishDraft=function(r,i){var s=r&&r[Yt];process.env.NODE_ENV!=="production"&&(s&&s.C||wt(9),s.I&&wt(10));var a=s.A;return pc(a,i),hc(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!ev&&wt(20),this.O=r},t.applyPatches=function(r,i){var s;for(s=i.length-1;s>=0;s--){var a=i[s];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}s>-1&&(i=i.slice(s+1));var u=Dr("Patches").$;return Li(r)?u(r,i):this.produce(r,(function(l){return u(l,i)}))},e})(),Xt=new gL,mL=Xt.produce;Xt.produceWithPatches.bind(Xt);Xt.setAutoFreeze.bind(Xt);Xt.setUseProxies.bind(Xt);Xt.applyPatches.bind(Xt);Xt.createDraft.bind(Xt);Xt.finishDraft.bind(Xt);function vL(e){var t=M.useState(function(){return Ho(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],M.useCallback(function(i){r(typeof i=="function"?mL(i):Ho(i))},[])]}const yL=process.env.NODE_ENV==="development",vc=yL&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,bL=(e,t,r)=>{const[i,s]=vL(e),a=M.useRef(null);M.useEffect(()=>{var f;return r&&(a.current=vc==null?void 0:vc.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var p,m;(m=(p=a.current)==null?void 0:p.disconnect)==null||m.call(p)}},[]);const u=t&&typeof t=="object"?t:{},l=M.useMemo(()=>Object.keys(u).reduce((f,p)=>({...f,[p]:m=>(s(d=>{var g;u[p](d,m),(g=a.current)==null||g.send({type:u[p].name},O0(d))}),l)}),{}),[s]);return{state:i,dispatch:l}},wL=e=>{const t=td(e),r=()=>{const{id:i,namespace:s}=t,a=window.DataSource.spaces[s];if(a&&a.sources)return a.sources[i]};return{actions:{setProperty:(i,s)=>{try{const a=r();a&&a.setValue(i,s)}catch{}},getValue:()=>r()}}},xL=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:i,namespace:s}=td(e),[a,u]=M.useState(!1),l=M.useCallback(()=>{try{return window.DataSource.getSource(i,s)}catch{return}},[s,i]),f=(d,g)=>{const y=l();y&&y.setValue(d,g)},p=async()=>{const d=l();if(!d)return;const g=await(d==null?void 0:d.getValue());r==null||r(g)},m=d=>{const{id:g}=d;!a&&g&&g.startsWith(i)&&u(!0)};return M.useEffect(()=>{if(a){const d=l();return d?(d==null||d.addListener("changed",p),()=>d==null?void 0:d.removeListener("changed",p)):void 0}},[a]),M.useEffect(()=>{if(t)return window.addEventListener("datasource:created",m),()=>window.removeEventListener("datasource:created",m)},[t]),{loaded:a,setCurrentSource:f}};function SL(e=!1){const[t,r]=M.useState(e),i=M.useMemo(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(s=>!s)}),[]);return[t,i]}function EL(e){const t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useCallback((...r)=>{var i;return(i=t.current)==null?void 0:i.call(t,...r)},[])}function R0(e,t){const r=e!==void 0;return[r,r?e:t]}function _L({value:e,defaultValue:t,onChange:r}){const[i,s]=M.useState(t),[a,u]=R0(e,i),l=M.useCallback(f=>{const p=typeof f=="function"?f(u):f;a||s(p),p!==u&&(r==null||r(p))},[u,a,r]);return[u,l]}const TL=typeof window<"u"?M.useLayoutEffect:M.useEffect;function OL(e,t){const r=M.useRef(!1);M.useEffect(()=>{if(!r.current){r.current=!0;return}return e()},t)}function AL(e){return{...e,isDisabled:e.isDisabled??e.disabled,isReadOnly:e.isReadOnly??e.readOnly,isRequired:e.isRequired??e.required}}function en(e){return typeof e=="function"}function P0(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 yc=P0(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
202
202
|
`+r.map(function(i,s){return s+1+") "+i.toString()}).join(`
|
|
203
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Lc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ka=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,s,a;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=mc(u),f=c.next();!f.done;f=c.next()){var m=f.value;m.remove(this)}}catch(d){t={error:d}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else u.remove(this);var y=this.initialTeardown;if(Xr(y))try{y()}catch(d){a=d instanceof uc?d.errors:[d]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var g=mc(p),v=g.next();!v.done;v=g.next()){var x=v.value;try{Mm(x)}catch(d){a=a??[],d instanceof uc?a=Sa(Sa([],vc(a)),vc(d.errors)):a.push(d)}}}catch(d){i={error:d}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}}if(a)throw new uc(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Mm(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Lc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Lc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),i0=Ka.EMPTY;function o0(e){return e instanceof Ka||e&&"closed"in e&&Xr(e.remove)&&Xr(e.add)&&Xr(e.unsubscribe)}function Mm(e){Xr(e)?e():e.unsubscribe()}var kI={Promise:void 0},$I={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Sa([e,t],vc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function II(e){$I.setTimeout(function(){throw e})}function Fm(){}function ga(e){e()}var s0=(function(e){ja(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,o0(r)&&r.add(i)):i.destination=FI,i}return t.create=function(r,i,s){return new Mc(r,i,s)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ka),LI=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){ia(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ia(i)}else ia(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ia(r)}},e})(),Mc=(function(e){ja(t,e);function t(r,i,s){var a=e.call(this)||this,u;return Xr(r)||!r?u={next:r??void 0,error:i??void 0,complete:s??void 0}:u=r,a.destination=new LI(u),a}return t})(s0);function ia(e){II(e)}function MI(e){throw e}var FI={closed:!0,next:Fm,error:MI,complete:Fm},DI=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function NI(e){return e}function jI(e){return e.length===0?NI:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var Dm=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var s=this,a=WI(t)?t:new Mc(t,r,i);return ga(function(){var u=s,c=u.operator,f=u.source;a.add(c?c.call(a,f):f?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Nm(r),new r(function(s,a){var u=new Mc({next:function(c){try{t(c)}catch(f){a(f),u.unsubscribe()}},error:a,complete:s});i.subscribe(u)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[DI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return jI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Nm(t),new t(function(i,s){var a;r.subscribe(function(u){return a=u},function(u){return s(u)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function Nm(e){var t;return(t=e??kI.Promise)!==null&&t!==void 0?t:Promise}function zI(e){return e&&Xr(e.next)&&Xr(e.error)&&Xr(e.complete)}function WI(e){return e&&e instanceof s0||zI(e)&&o0(e)}var UI=n0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Mr=(function(e){ja(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new jm(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new UI},t.prototype.next=function(r){var i=this;ga(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=mc(i.currentObservers),c=u.next();!c.done;c=u.next()){var f=c.value;f.next(r)}}catch(m){s={error:m}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var i=this;ga(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var s=i.observers;s.length;)s.shift().error(r)}})},t.prototype.complete=function(){var r=this;ga(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,s=this,a=s.hasError,u=s.isStopped,c=s.observers;return a||u?i0:(this.currentObservers=null,c.push(r),new Ka(function(){i.currentObservers=null,Lc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,s=i.hasError,a=i.thrownError,u=i.isStopped;s?r.error(a):u&&r.complete()},t.prototype.asObservable=function(){var r=new Dm;return r.source=this,r},t.create=function(r,i){return new jm(r,i)},t})(Dm),jm=(function(e){ja(t,e);function t(r,i){var s=e.call(this)||this;return s.destination=r,s.source=i,s}return t.prototype.next=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,r)},t.prototype.error=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&s!==void 0?s:i0},t})(Mr),a0=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(a0||{}),u0=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(u0||{});const BI=new Mr,HI=new Mr,l0=new Mr;var c0=(e=>(e.SAVE_ALL="save-all",e))(c0||{});const qI=new Mr;var f0=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(f0||{});const ZI=new Mr;var d0=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(d0||{});const GI=new Mr,KI=new Mr;var Do=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Do||{});const ka=new Mr,VI=new Mr,kf=255;var $f=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${kf} characters (including extension)`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))($f||{});function p0(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>kf)throw new Error($f.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(r))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(r))throw new Error("Invalid name");return!0}function XI(e){if(!e)return null;if(typeof e=="string")try{p0(e)}catch(t){return t.message}}function YI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Ye.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Ye.isObject(i)||Array.isArray(i))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function JI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Va(e){const{PLACEHOLDER_PREFIX:t,counter:r}=JI();let i=r;const s=[],a="@!",u=y=>(s.push(y),`${t}${i++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,u);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(y,p,g)=>p+u(g)),c=c.replace(/:\d{2}:\d{2}/g,u);const f=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let m=c.replace(f,"");for(let y=0;y<s.length;y++){const g=`${t}${y}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),v=new RegExp(g,"g");m=m.replace(v,s[y])}return m}var If=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(If||{});const wn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Xe=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Xe||{}),On=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(On||{}),Lf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Lf||{});const h0="roles.json",g0="qodlyApp.json",QI="model.4DModel",m0="HTTPHandlers.json",v0="Shared/i18n.json";function eL(e){const t=Mf(e);switch(t){case Xe.SETTINGS:return{filename:"Settings",type:t};case Xe.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case Xe.ROLES:return{filename:"Roles & Privileges",type:t};case Xe.LOCALIZATION:return{filename:"Localization",type:t};case Xe.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function Mf(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Xe.MODEL;case r==="WebForm":return Xe.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===wn.METHODS):return Xe.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===wn.CLASSES):return Xe.CLASS;case e===h0:return Xe.ROLES;case e===m0:return Xe.HTTP_HANDLERS;case e===g0:return Xe.SETTINGS;case e===v0:return Xe.LOCALIZATION;default:return Xe.TEXT}}function tL(e,t=!1){switch(e){case wn.REPORTS:case"report":return"QoDoc";case wn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case wn.CLASSES:case wn.METHODS:return t?"4qs":"4dm";default:return""}}function rL(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function nL(e,t,r){switch(t){case Xe.MOBILEFORM:return`${e}.MForm`;case Xe.WEBFORM:return`${e}.WebForm`;case Xe.REPORT:return`${e}.QoDoc`;case Xe.METHOD:case Xe.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class y0{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(s=>{t=s}),i=this.current.then(()=>t);return this.current=r,i}}function Ff(){const e=new y0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const b0=Ye.curry((e,t,r)=>e&&Ye.get(r,e)===t),iL=Ye.curry((e,t,r)=>Ye.get(r,e)!==t),oL=Ye.curry((e,t)=>Ye.get(t,"id")!==e),sL=Ye.curry((e,t)=>Ye.get(t,"id")===e),aL=Ye.curry((e,t)=>Ye.get(t,"path")===e);function uL(e="id",t,r){return r.findIndex(b0(e,t))!==-1}function w0(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function lL(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function cL(e=""){const t=e.trim().split(":")||[];let r="",i="";return t.length>1?(r=t[1],i=t[0]):r=t[0],{id:r,namespace:i,root:r.split(".").filter(Boolean)[0],original:i?`${i}:${r}`:r,parts:t}}function x0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function fL(e){return e.type==="object"}function S0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function E0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!x0(e)}function dL(e){return S0(e)||E0(e)}function pL(e){return e.applyTo==="dataStore"}function hL(e){return e.applyTo==="dataClass"}function gL(e){return e.applyTo==="entity"}function mL(e){return e.applyTo==="entityCollection"}function vL(e){return e.type==="entity"}function yL(e){return e.type==="entitysel"}function _0(e){return e.dataType==="array"}function O0(e){return e.dataType==="object"}function A0(e){return e.type==="scalar"}function bL(e){return _0(e)||O0(e)||A0(e)}const wL=e=>e!=null&&e.type==="entity",xL=e=>e.type==="entitysel",SL=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",EL=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",_L=e=>e.type==="scalar"&&e.dataType==="date",OL=(e,t)=>(e||"")===(t||"");function AL(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function TL(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const So="Qodly",T0="Location",R0="UserLanguage",P0="Title",$a={[So]:[{id:P0,dataType:"string",type:"scalar",namespace:So,initialValue:""},{id:T0,dataType:"object",type:"scalar",namespace:So,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:R0,dataType:"object",type:"scalar",namespace:So,initialValue:{selected:{},supported:[]},schema:{type:"object",properties:[{name:"selected",type:"object",initialValue:{},attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]},{name:"supported",type:"array",initialValue:[],attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]}]}}]};var No=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(No||{}),C0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(C0||{}),Df=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Df||{});const RL={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function PL(e){var a;let t={};try{const u=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(u)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:No.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Df.table}},...i}}function k0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[No.capable,No.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function CL(e,t,r=!1){const i=Ye.isString(t)?t:k0(t);if(!r&&$0(e))return e;const s=I0(e);return`//%attributes = ${i}\r
|
|
204
|
-
${s}`}function $0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function I0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const kL=()=>Jc.uuid().replaceAll("-","").toUpperCase(),$L=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");function L0(e){var r;if(!e||typeof e!="object")return[];const t=((r=e.__STATUS)==null?void 0:r.errors)??e.__ERRORS??e.errorStack;return Array.isArray(t)?t:[]}function M0(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function IL(e,t){const r=L0(e);return M0(r,t)}function LL(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}const at="/rest/$designer",Go="/rest/$designer-ext";function ML(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(i=>{typeof r[i]=="string"&&(r[i]=new Date(r[i]))}),r}}class Fc extends Error{constructor(t,r,i){super(),this.url=t,this.response=r,this.data=i}log(){console.error("Error while sending the request",this)}}async function Ne(e,t){var s;ka.next({action:Do.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const u=await r.json();((s=u==null?void 0:u.__ERROR)==null?void 0:s.some(f=>f.errCode===1651))&&ka.next({action:Do.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Fc(e,r,u)}catch{a=new Fc(e,r)}throw a.log(),a}return await r.json()}function FL(e){return ka.next({action:Do.REQUEST_SENT}),e}var Er={},mt={},zm;function zn(){if(zm)return mt;zm=1;var e=mt.ValidationError=function(d,w,h,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(C,U){return C+c(U)},"instance")):S!==void 0&&(this.property=S),d&&(this.message=d),h){var O=h.$id||h.id;this.schema=O||h}w!==void 0&&(this.instance=w),this.name=E,this.argument=R,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=mt.ValidatorResult=function(d,w,h,S){this.instance=d,this.schema=w,this.options=h,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=h&&h.throwError,this.throwFirst=h&&h.throwFirst,this.throwAll=h&&h.throwAll,this.disableFormat=h&&h.disableFormat===!0};t.prototype.addError=function(d){var w;if(typeof d=="string")w=new e(d,this.instance,this.schema,this.path);else{if(!d)throw new Error("Missing error detail");if(!d.message)throw new Error("Missing error message");if(!d.name)throw new Error("Missing validator type");w=new e(d.message,this.instance,this.schema,this.path,d.name,d.argument)}if(this.errors.push(w),this.throwFirst)throw new i(this);if(this.throwError)throw w;return w},t.prototype.importErrors=function(d){typeof d=="string"||d&&d.validatorType?this.addError(d):d&&d.errors&&(this.errors=this.errors.concat(d.errors))};function r(x,d){return d+": "+x.toString()+`
|
|
205
|
-
`}t.prototype.toString=function(d){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),mt.ValidatorResultError=i;function i(x){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,i),this.instance=x.instance,this.schema=x.schema,this.options=x.options,this.errors=x.errors}i.prototype=new Error,i.prototype.constructor=i,i.prototype.name="Validation Error";var s=mt.SchemaError=function x(d,w){this.message=d,this.schema=w,Error.call(this,d),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,x)};s.prototype=Object.create(Error.prototype,{constructor:{value:s,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=mt.SchemaContext=function(d,w,h,S,E){this.schema=d,this.options=w,Array.isArray(h)?(this.path=h,this.propertyPath=h.reduce(function(R,O){return R+c(O)},"instance")):this.propertyPath=h,this.base=S,this.schemas=E};a.prototype.resolve=function(d){return v(this.base,d)},a.prototype.makeChild=function(d,w){var h=w===void 0?this.path:this.path.concat([w]),S=d.$id||d.id;let E=v(this.base,S||"");var R=new a(d,this.options,h,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=d),R};var u=mt.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var d=!0;try{new RegExp(x)}catch{d=!1}return d},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};u.regexp=u.regex,u.pattern=u.regex,u.ipv4=u["ip-address"],mt.isFormat=function(d,w,h){if(typeof d=="string"&&u[w]!==void 0){if(u[w]instanceof RegExp)return u[w].test(d);if(typeof u[w]=="function")return u[w](d)}else if(h&&h.customFormats&&typeof h.customFormats[w]=="function")return h.customFormats[w](d);return!0};var c=mt.makeSuffix=function(d){return d=d.toString(),!d.match(/[.\s\[\]]/)&&!d.match(/^[\d]/)?"."+d:d.match(/^\d+$/)?"["+d+"]":"["+JSON.stringify(d)+"]"};mt.deepCompareStrict=function x(d,w){if(typeof d!=typeof w)return!1;if(Array.isArray(d))return!Array.isArray(w)||d.length!==w.length?!1:d.every(function(E,R){return x(d[R],w[R])});if(typeof d=="object"){if(!d||!w)return d===w;var h=Object.keys(d),S=Object.keys(w);return h.length!==S.length?!1:h.every(function(E){return x(d[E],w[E])})}return d===w};function f(x,d,w,h){typeof w=="object"?d[h]=p(x[h],w):x.indexOf(w)===-1&&d.push(w)}function m(x,d,w){d[w]=x[w]}function y(x,d,w,h){typeof d[h]!="object"||!d[h]?w[h]=d[h]:x[h]?w[h]=p(x[h],d[h]):w[h]=d[h]}function p(x,d){var w=Array.isArray(d),h=w&&[]||{};return w?(x=x||[],h=h.concat(x),d.forEach(f.bind(null,x,h))):(x&&typeof x=="object"&&Object.keys(x).forEach(m.bind(null,x,h)),Object.keys(d).forEach(y.bind(null,x,d,h))),h}mt.deepMerge=p,mt.objectGetPath=function(d,w){for(var h=w.split("/").slice(1),S;typeof(S=h.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in d))return;d=d[E]}return d};function g(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}mt.encodePath=function(d){return d.map(g).join("")},mt.getDecimalPlaces=function(d){var w=0;if(isNaN(d))return w;typeof d!="number"&&(d=Number(d));var h=d.toString().split("e");if(h.length===2){if(h[1][0]!=="-")return w;w=Number(h[1].slice(1))}var S=h[0].split(".");return S.length===2&&(w+=S[1].length),w},mt.isSchema=function(d){return typeof d=="object"&&d||typeof d=="boolean"};var v=mt.resolveUrl=function(d,w){const h=new URL(w,new URL(d,"resolve://"));if(h.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=h;return S+E+R}return h.toString()};return mt}var lc,Wm;function DL(){if(Wm)return lc;Wm=1;var e=zn(),t=e.ValidatorResult,r=e.SchemaError,i={};i.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var s=i.validators={};s.type=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x),w=Array.isArray(g.type)?g.type:[g.type];if(!w.some(this.testType.bind(this,p,g,v,x))){var h=w.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});d.addError({name:"type",argument:h,message:"is not of a type(s) "+h})}return d};function a(y,p,g,v,x){var d=p.throwError,w=p.throwAll;p.throwError=!1,p.throwAll=!1;var h=this.validateSchema(y,x,p,g);return p.throwError=d,p.throwAll=w,!h.valid&&v instanceof Function&&v(h),h.valid}s.anyOf=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x),w=new t(p,g,v,x);if(!Array.isArray(g.anyOf))throw new r("anyOf must be an array");if(!g.anyOf.some(a.bind(this,p,v,x,function(S){w.importErrors(S)}))){var h=g.anyOf.map(function(S,E){var R=S.$id||S.id;return R?"<"+R+">":S.title&&JSON.stringify(S.title)||S.$ref&&"<"+S.$ref+">"||"[subschema "+E+"]"});v.nestedErrors&&d.importErrors(w),d.addError({name:"anyOf",argument:h,message:"is not any of "+h.join(",")})}return d},s.allOf=function(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.allOf))throw new r("allOf must be an array");var d=new t(p,g,v,x),w=this;return g.allOf.forEach(function(h,S){var E=w.validateSchema(p,h,v,x);if(!E.valid){var R=h.$id||h.id,O=R||h.title&&JSON.stringify(h.title)||h.$ref&&"<"+h.$ref+">"||"[subschema "+S+"]";d.addError({name:"allOf",argument:{id:O,length:E.errors.length,valid:E},message:"does not match allOf schema "+O+" with "+E.errors.length+" error[s]:"}),d.importErrors(E)}}),d},s.oneOf=function(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.oneOf))throw new r("oneOf must be an array");var d=new t(p,g,v,x),w=new t(p,g,v,x),h=g.oneOf.filter(a.bind(this,p,v,x,function(E){w.importErrors(E)})).length,S=g.oneOf.map(function(E,R){var O=E.$id||E.id;return O||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return h!==1&&(v.nestedErrors&&d.importErrors(w),d.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),d},s.if=function(p,g,v,x){if(p===void 0)return null;if(!e.isSchema(g.if))throw new Error('Expected "if" keyword to be a schema');var d=a.call(this,p,v,x,null,g.if),w=new t(p,g,v,x),h;if(d){if(g.then===void 0)return;if(!e.isSchema(g.then))throw new Error('Expected "then" keyword to be a schema');h=this.validateSchema(p,g.then,v,x.makeChild(g.then)),w.importErrors(h)}else{if(g.else===void 0)return;if(!e.isSchema(g.else))throw new Error('Expected "else" keyword to be a schema');h=this.validateSchema(p,g.else,v,x.makeChild(g.else)),w.importErrors(h)}return w};function u(y,p){if(Object.hasOwnProperty.call(y,p))return y[p];if(p in y){for(;y=Object.getPrototypeOf(y);)if(Object.propertyIsEnumerable.call(y,p))return y[p]}}s.propertyNames=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.propertyNames!==void 0?g.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var h in p)if(u(p,h)!==void 0){var S=this.validateSchema(h,w,v,x.makeChild(w));d.importErrors(S)}return d}},s.properties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.properties||{};for(var h in w){var S=w[h];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof v.preValidateProperty=="function"&&v.preValidateProperty(p,h,S,v,x);var E=u(p,h),R=this.validateSchema(E,S,v,x.makeChild(S,h));R.instance!==d.instance[h]&&(d.instance[h]=R.instance),d.importErrors(R)}}return d}};function c(y,p,g,v,x,d){if(this.types.object(y)&&!(p.properties&&p.properties[x]!==void 0))if(p.additionalProperties===!1)d.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=p.additionalProperties||{};typeof g.preValidateProperty=="function"&&g.preValidateProperty(y,x,w,g,v);var h=this.validateSchema(y[x],w,g,v.makeChild(w,x));h.instance!==d.instance[x]&&(d.instance[x]=h.instance),d.importErrors(h)}}s.patternProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.patternProperties||{};for(var h in p){var S=!0;for(var E in w){var R=w[E];if(R!==void 0){if(R===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var O=new RegExp(E,"u")}catch{O=new RegExp(E)}if(O.test(h)){S=!1,typeof v.preValidateProperty=="function"&&v.preValidateProperty(p,h,R,v,x);var C=this.validateSchema(p[h],R,v,x.makeChild(R,h));C.instance!==d.instance[h]&&(d.instance[h]=C.instance),d.importErrors(C)}}}S&&c.call(this,p,g,v,x,h,d)}return d}},s.additionalProperties=function(p,g,v,x){if(this.types.object(p)){if(g.patternProperties)return null;var d=new t(p,g,v,x);for(var w in p)c.call(this,p,g,v,x,w,d);return d}},s.minProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=Object.keys(p);return w.length>=g.minProperties||d.addError({name:"minProperties",argument:g.minProperties,message:"does not meet minimum property length of "+g.minProperties}),d}},s.maxProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=Object.keys(p);return w.length<=g.maxProperties||d.addError({name:"maxProperties",argument:g.maxProperties,message:"does not meet maximum property length of "+g.maxProperties}),d}},s.items=function(p,g,v,x){var d=this;if(this.types.array(p)&&g.items!==void 0){var w=new t(p,g,v,x);return p.every(function(h,S){if(Array.isArray(g.items))var E=g.items[S]===void 0?g.additionalItems:g.items[S];else var E=g.items;if(E===void 0)return!0;if(E===!1)return w.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=d.validateSchema(h,E,v,x.makeChild(E,S));return R.instance!==w.instance[S]&&(w.instance[S]=R.instance),w.importErrors(R),!0}),w}},s.contains=function(p,g,v,x){var d=this;if(this.types.array(p)&&g.contains!==void 0){if(!e.isSchema(g.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(p,g,v,x),h=p.some(function(S,E){var R=d.validateSchema(S,g.contains,v,x.makeChild(g.contains,E));return R.errors.length===0});return h===!1&&w.addError({name:"contains",argument:g.contains,message:"must contain an item matching given schema"}),w}},s.minimum=function(p,g,v,x){if(this.types.number(p)){var d=new t(p,g,v,x);return g.exclusiveMinimum&&g.exclusiveMinimum===!0?p>g.minimum||d.addError({name:"minimum",argument:g.minimum,message:"must be greater than "+g.minimum}):p>=g.minimum||d.addError({name:"minimum",argument:g.minimum,message:"must be greater than or equal to "+g.minimum}),d}},s.maximum=function(p,g,v,x){if(this.types.number(p)){var d=new t(p,g,v,x);return g.exclusiveMaximum&&g.exclusiveMaximum===!0?p<g.maximum||d.addError({name:"maximum",argument:g.maximum,message:"must be less than "+g.maximum}):p<=g.maximum||d.addError({name:"maximum",argument:g.maximum,message:"must be less than or equal to "+g.maximum}),d}},s.exclusiveMinimum=function(p,g,v,x){if(typeof g.exclusiveMinimum!="boolean"&&this.types.number(p)){var d=new t(p,g,v,x),w=p>g.exclusiveMinimum;return w||d.addError({name:"exclusiveMinimum",argument:g.exclusiveMinimum,message:"must be strictly greater than "+g.exclusiveMinimum}),d}},s.exclusiveMaximum=function(p,g,v,x){if(typeof g.exclusiveMaximum!="boolean"&&this.types.number(p)){var d=new t(p,g,v,x),w=p<g.exclusiveMaximum;return w||d.addError({name:"exclusiveMaximum",argument:g.exclusiveMaximum,message:"must be strictly less than "+g.exclusiveMaximum}),d}};var f=function(p,g,v,x,d,w){if(this.types.number(p)){var h=g[d];if(h==0)throw new r(d+" cannot be zero");var S=new t(p,g,v,x),E=e.getDecimalPlaces(p),R=e.getDecimalPlaces(h),O=Math.max(E,R),C=Math.pow(10,O);return Math.round(p*C)%Math.round(h*C)!==0&&S.addError({name:d,argument:h,message:w+JSON.stringify(h)}),S}};s.multipleOf=function(p,g,v,x){return f.call(this,p,g,v,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(p,g,v,x){return f.call(this,p,g,v,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(p,g,v,x){var d=new t(p,g,v,x);return p===void 0&&g.required===!0?d.addError({name:"required",message:"is required"}):this.types.object(p)&&Array.isArray(g.required)&&g.required.forEach(function(w){u(p,w)===void 0&&d.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),d},s.pattern=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=g.pattern;try{var h=new RegExp(w,"u")}catch{h=new RegExp(w)}return p.match(h)||d.addError({name:"pattern",argument:g.pattern,message:"does not match pattern "+JSON.stringify(g.pattern.toString())}),d}},s.format=function(p,g,v,x){if(p!==void 0){var d=new t(p,g,v,x);return!d.disableFormat&&!e.isFormat(p,g.format,this)&&d.addError({name:"format",argument:g.format,message:"does not conform to the "+JSON.stringify(g.format)+" format"}),d}},s.minLength=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=p.match(/[\uDC00-\uDFFF]/g),h=p.length-(w?w.length:0);return h>=g.minLength||d.addError({name:"minLength",argument:g.minLength,message:"does not meet minimum length of "+g.minLength}),d}},s.maxLength=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=p.match(/[\uDC00-\uDFFF]/g),h=p.length-(w?w.length:0);return h<=g.maxLength||d.addError({name:"maxLength",argument:g.maxLength,message:"does not meet maximum length of "+g.maxLength}),d}},s.minItems=function(p,g,v,x){if(this.types.array(p)){var d=new t(p,g,v,x);return p.length>=g.minItems||d.addError({name:"minItems",argument:g.minItems,message:"does not meet minimum length of "+g.minItems}),d}},s.maxItems=function(p,g,v,x){if(this.types.array(p)){var d=new t(p,g,v,x);return p.length<=g.maxItems||d.addError({name:"maxItems",argument:g.maxItems,message:"does not meet maximum length of "+g.maxItems}),d}};function m(y,p,g){var v,x=g.length;for(v=p+1,x;v<x;v++)if(e.deepCompareStrict(y,g[v]))return!1;return!0}return s.uniqueItems=function(p,g,v,x){if(g.uniqueItems===!0&&this.types.array(p)){var d=new t(p,g,v,x);return p.every(m)||d.addError({name:"uniqueItems",message:"contains duplicate item"}),d}},s.dependencies=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x);for(var w in g.dependencies)if(p[w]!==void 0){var h=g.dependencies[w],S=x.makeChild(h,w);if(typeof h=="string"&&(h=[h]),Array.isArray(h))h.forEach(function(R){p[R]===void 0&&d.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(p,h,v,S);d.instance!==E.instance&&(d.instance=E.instance),E&&E.errors.length&&(d.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),d.importErrors(E))}}return d}},s.enum=function(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.enum))throw new r("enum expects an array",g);var d=new t(p,g,v,x);return g.enum.some(e.deepCompareStrict.bind(null,p))||d.addError({name:"enum",argument:g.enum,message:"is not one of enum values: "+g.enum.map(String).join(",")}),d},s.const=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x);return e.deepCompareStrict(g.const,p)||d.addError({name:"const",argument:g.const,message:"does not exactly match expected constant: "+g.const}),d},s.not=s.disallow=function(p,g,v,x){var d=this;if(p===void 0)return null;var w=new t(p,g,v,x),h=g.not||g.disallow;return h?(Array.isArray(h)||(h=[h]),h.forEach(function(S){if(d.testType(p,g,v,x,S)){var E=S&&(S.$id||S.id),R=E||S;w.addError({name:"not",argument:R,message:"is of prohibited type "+R})}}),w):null},lc=i,lc}var oa={},Um;function Dc(){if(Um)return oa;Um=1;var e=zn();oa.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return oa.scan=function(i,s){function a(y,p){if(!p||typeof p!="object")return;if(p.$ref){let d=e.resolveUrl(y,p.$ref);m[d]=m[d]?m[d]+1:0;return}var g=p.$id||p.id;let v=e.resolveUrl(y,g);var x=g?v:y;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],p))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=p,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=p)}u(x+"/items",Array.isArray(p.items)?p.items:[p.items]),u(x+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),a(x+"/additionalItems",p.additionalItems),c(x+"/properties",p.properties),a(x+"/additionalProperties",p.additionalProperties),c(x+"/definitions",p.definitions),c(x+"/patternProperties",p.patternProperties),c(x+"/dependencies",p.dependencies),u(x+"/disallow",p.disallow),u(x+"/allOf",p.allOf),u(x+"/anyOf",p.anyOf),u(x+"/oneOf",p.oneOf),a(x+"/not",p.not)}function u(y,p){if(Array.isArray(p))for(var g=0;g<p.length;g++)a(y+"/"+g,p[g])}function c(y,p){if(!(!p||typeof p!="object"))for(var g in p)a(y+"/"+g,p[g])}var f={},m={};return a(i,s),new t(f,m)},oa}var cc,Bm;function NL(){if(Bm)return cc;Bm=1;var e=DL(),t=zn(),r=Dc().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,u=t.SchemaContext,c="/",f=function p(){this.customFormats=Object.create(p.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(y),this.attributes=Object.create(e.validators)};f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(g,v){var x=this;if(!g)return null;var d=r(v||c,g),w=v||g.$id||g.id;for(var h in d.id)this.schemas[h]=d.id[h];for(var h in d.ref)this.unresolvedRefs.push(h);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[w]},f.prototype.addSubSchemaArray=function(g,v){if(Array.isArray(v))for(var x=0;x<v.length;x++)this.addSubSchema(g,v[x])},f.prototype.addSubSchemaObject=function(g,v){if(!(!v||typeof v!="object"))for(var x in v)this.addSubSchema(g,v[x])},f.prototype.setSchemas=function(g){this.schemas=g},f.prototype.getSchema=function(g){return this.schemas[g]},f.prototype.validate=function(g,v,x,d){if(typeof v!="boolean"&&typeof v!="object"||v===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var w=v.$id||v.id;let h=t.resolveUrl(x.base,w||"");if(!d){d=new u(v,x,[],h,Object.create(this.schemas)),d.schemas[h]||(d.schemas[h]=v);var S=r(h,v);for(var E in S.id){var R=S.id[E];d.schemas[E]=R}}if(x.required&&g===void 0){var O=new i(g,v,x,d);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(g,v,x,d);if(O){if(x.throwAll&&O.errors.length)throw new s(O)}else throw new Error("Result undefined");return O};function m(p){var g=typeof p=="string"?p:p.$ref;return typeof g=="string"?g:!1}f.prototype.validateSchema=function(g,v,x,d){var w=new i(g,v,x,d);if(typeof v=="boolean")v===!0?v={}:v===!1&&(v={type:[]});else if(!v)throw new Error("schema is undefined");if(v.extends)if(Array.isArray(v.extends)){var h={schema:v,ctx:d};v.extends.forEach(this.schemaTraverser.bind(this,h)),v=h.schema,h.schema=null,h.ctx=null,h=null}else v=t.deepMerge(v,this.superResolve(v.extends,d));var S=m(v);if(S){var E=this.resolve(v,S,d),R=new u(E.subschema,x,d.path,E.switchSchema,d.schemas);return this.validateSchema(g,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var C in v)if(!e.ignoreProperties[C]&&O.indexOf(C)<0){var U=null,M=this.attributes[C];if(M)U=M.call(this,g,v,x,d);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+C,v);U&&w.importErrors(U)}if(typeof x.rewrite=="function"){var D=x.rewrite.call(this,g,v,x,d);w.instance=D}return w},f.prototype.schemaTraverser=function(g,v){g.schema=t.deepMerge(g.schema,this.superResolve(v,g.ctx))},f.prototype.superResolve=function(g,v){var x=m(g);return x?this.resolve(g,x,v).subschema:g},f.prototype.resolve=function(g,v,x){if(v=x.resolve(v),x.schemas[v])return{subschema:x.schemas[v],switchSchema:v};let w=new URL(v,"thismessage::/").hash;var h=w&&w.length&&v.substr(0,v.length-w.length);if(!h||!x.schemas[h])throw new a("no such schema <"+v+">",g);var S=t.objectGetPath(x.schemas[h],w.substr(1));if(S===void 0)throw new a("no such schema "+w+" located in <"+h+">",g);return{subschema:S,switchSchema:v}},f.prototype.testType=function(g,v,x,d,w){if(w!==void 0){if(w===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[w]=="function")return this.types[w].call(this,g);if(w&&typeof w=="object"){var h=this.validateSchema(g,w,x,d);return h===void 0||!(h&&h.errors.length)}return!0}};var y=f.prototype.types={};return y.string=function(g){return typeof g=="string"},y.number=function(g){return typeof g=="number"&&isFinite(g)},y.integer=function(g){return typeof g=="number"&&g%1===0},y.boolean=function(g){return typeof g=="boolean"},y.array=function(g){return Array.isArray(g)},y.null=function(g){return g===null},y.date=function(g){return g instanceof Date},y.any=function(g){return!0},y.object=function(g){return g&&typeof g=="object"&&!Array.isArray(g)&&!(g instanceof Date)},cc=f,cc}var Hm;function jL(){if(Hm)return Er;Hm=1;var e=Er.Validator=NL();return Er.ValidatorResult=zn().ValidatorResult,Er.ValidatorResultError=zn().ValidatorResultError,Er.ValidationError=zn().ValidationError,Er.SchemaError=zn().SchemaError,Er.SchemaScanResult=Dc().SchemaScanResult,Er.scan=Dc().scan,Er.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},Er}var zL=jL();const F0=(e,t,r)=>{const i=e instanceof RegExp?qm(e,r):e,s=t instanceof RegExp?qm(t,r):t,a=i!==null&&s!=null&&WL(i,s,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+i.length,a[1]),post:r.slice(a[1]+s.length)}},qm=(e,t)=>{const r=t.match(e);return r?r[0]:null},WL=(e,t,r)=>{let i,s,a,u,c,f=r.indexOf(e),m=r.indexOf(t,f+1),y=f;if(f>=0&&m>0){if(e===t)return[f,m];for(i=[],a=r.length;y>=0&&!c;){if(y===f)i.push(y),f=r.indexOf(e,y+1);else if(i.length===1){const p=i.pop();p!==void 0&&(c=[p,m])}else s=i.pop(),s!==void 0&&s<a&&(a=s,u=m),m=r.indexOf(t,y+1);y=f<m&&f>=0?f:m}i.length&&u!==void 0&&(c=[a,u])}return c},D0="\0SLASH"+Math.random()+"\0",N0="\0OPEN"+Math.random()+"\0",Nf="\0CLOSE"+Math.random()+"\0",j0="\0COMMA"+Math.random()+"\0",z0="\0PERIOD"+Math.random()+"\0",UL=new RegExp(D0,"g"),BL=new RegExp(N0,"g"),HL=new RegExp(Nf,"g"),qL=new RegExp(j0,"g"),ZL=new RegExp(z0,"g"),GL=/\\\\/g,KL=/\\{/g,VL=/\\}/g,XL=/\\,/g,YL=/\\\./g,JL=1e5;function fc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function QL(e){return e.replace(GL,D0).replace(KL,N0).replace(VL,Nf).replace(XL,j0).replace(YL,z0)}function e2(e){return e.replace(UL,"\\").replace(BL,"{").replace(HL,"}").replace(qL,",").replace(ZL,".")}function W0(e){if(!e)return[""];const t=[],r=F0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,u=i.split(",");u[u.length-1]+="{"+s+"}";const c=W0(a);return a.length&&(u[u.length-1]+=c.shift(),u.push.apply(u,c)),t.push.apply(t,u),t}function t2(e,t={}){if(!e)return[];const{max:r=JL}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Eo(QL(e),r,!0).map(e2)}function r2(e){return"{"+e+"}"}function n2(e){return/^-?0\d/.test(e)}function i2(e,t){return e<=t}function o2(e,t){return e>=t}function Eo(e,t,r){const i=[],s=F0("{","}",e);if(!s)return[e];const a=s.pre,u=s.post.length?Eo(s.post,t,!1):[""];if(/\$$/.test(s.pre))for(let c=0;c<u.length&&c<t;c++){const f=a+"{"+s.body+"}"+u[c];i.push(f)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),m=c||f,y=s.body.indexOf(",")>=0;if(!m&&!y)return s.post.match(/,(?!,).*\}/)?(e=s.pre+"{"+s.body+Nf+s.post,Eo(e,t,!0)):[e];let p;if(m)p=s.body.split(/\.\./);else if(p=W0(s.body),p.length===1&&p[0]!==void 0&&(p=Eo(p[0],t,!1).map(r2),p.length===1))return u.map(v=>s.pre+p[0]+v);let g;if(m&&p[0]!==void 0&&p[1]!==void 0){const v=fc(p[0]),x=fc(p[1]),d=Math.max(p[0].length,p[1].length);let w=p.length===3&&p[2]!==void 0?Math.max(Math.abs(fc(p[2])),1):1,h=i2;x<v&&(w*=-1,h=o2);const E=p.some(n2);g=[];for(let R=v;h(R,x);R+=w){let O;if(f)O=String.fromCharCode(R),O==="\\"&&(O="");else if(O=String(R),E){const C=d-O.length;if(C>0){const U=new Array(C+1).join("0");R<0?O="-"+U+O.slice(1):O=U+O}}g.push(O)}}else{g=[];for(let v=0;v<p.length;v++)g.push.apply(g,Eo(p[v],t,!1))}for(let v=0;v<g.length;v++)for(let x=0;x<u.length&&i.length<t;x++){const d=a+g[v]+u[x];(!r||m||d)&&i.push(d)}}return i}const s2=1024*64,Ia=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>s2)throw new TypeError("pattern is too long")},a2={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},vo=e=>e.replace(/[[\]\\-]/g,"\\$&"),u2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zm=e=>e.join(""),l2=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],s=[];let a=r+1,u=!1,c=!1,f=!1,m=!1,y=r,p="";e:for(;a<e.length;){const d=e.charAt(a);if((d==="!"||d==="^")&&a===r+1){m=!0,a++;continue}if(d==="]"&&u&&!f){y=a+1;break}if(u=!0,d==="\\"&&!f){f=!0,a++;continue}if(d==="["&&!f){for(const[w,[h,S,E]]of Object.entries(a2))if(e.startsWith(w,a)){if(p)return["$.",!1,e.length-r,!0];a+=w.length,E?s.push(h):i.push(h),c=c||S;continue e}}if(f=!1,p){d>p?i.push(vo(p)+"-"+vo(d)):d===p&&i.push(vo(d)),p="",a++;continue}if(e.startsWith("-]",a+1)){i.push(vo(d+"-")),a+=2;continue}if(e.startsWith("-",a+1)){p=d,a+=2;continue}i.push(vo(d)),a++}if(y<a)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,e.length-r,!0];if(s.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!m){const d=i[0].length===2?i[0].slice(-1):i[0];return[u2(d),!1,y-r,!1]}const g="["+(m?"^":"")+Zm(i)+"]",v="["+(m?"":"^")+Zm(s)+"]";return[i.length&&s.length?"("+g+"|"+v+")":i.length?g:v,c,y-r,!0]},_o=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var Lt;const c2=new Set(["!","?","+","*","@"]),Nc=e=>c2.has(e),Gm=e=>Nc(e.type),f2=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),d2=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),p2=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Km=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),h2="(?!(?:^|/)\\.\\.?(?:$|/))",sa="(?!\\.)",g2=new Set(["[","."]),m2=new Set(["..","."]),v2=new Set("().*{}+?[]^$\\!"),y2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jf="[^/]",Vm=jf+"*?",Xm=jf+"+?";let b2=0;var st,dt,Vr,we,Ge,vn,Wn,yn,Ar,Tr,xi,Ie,U0,xn,ma,B0,jc,va,H0,zc,q0,Z0,G0,ya,Wc,K0;class Xa{constructor(t,r,i={}){gt(this,Ie);ye(this,"type");gt(this,st);gt(this,dt);gt(this,Vr,!1);gt(this,we,[]);gt(this,Ge);gt(this,vn);gt(this,Wn);gt(this,yn,!1);gt(this,Ar);gt(this,Tr);gt(this,xi,!1);ye(this,"id",++b2);this.type=t,t&&je(this,dt,!0),je(this,Ge,r),je(this,st,Y(this,Ge)?Y(Y(this,Ge),st):this),je(this,Ar,Y(this,st)===this?i:Y(Y(this,st),Ar)),je(this,Wn,Y(this,st)===this?[]:Y(Y(this,st),Wn)),t==="!"&&!Y(Y(this,st),yn)&&Y(this,Wn).push(this),je(this,vn,Y(this,Ge)?Y(Y(this,Ge),we).length:0)}get depth(){var t;return(((t=Y(this,Ge))==null?void 0:t.depth)??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){var t;return{"@@type":"AST",id:this.id,type:this.type,root:Y(this,st).id,parent:(t=Y(this,Ge))==null?void 0:t.id,depth:this.depth,partsLength:Y(this,we).length,parts:Y(this,we)}}get hasMagic(){if(Y(this,dt)!==void 0)return Y(this,dt);for(const t of Y(this,we))if(typeof t!="string"&&(t.type||t.hasMagic))return je(this,dt,!0);return Y(this,dt)}toString(){return Y(this,Tr)!==void 0?Y(this,Tr):this.type?je(this,Tr,this.type+"("+Y(this,we).map(t=>String(t)).join("|")+")"):je(this,Tr,Y(this,we).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Lt&&Y(r,Ge)===this))throw new Error("invalid part: "+r);Y(this,we).push(r)}}toJSON(){var r;const t=this.type===null?Y(this,we).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...Y(this,we).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Y(this,st)||Y(Y(this,st),yn)&&((r=Y(this,Ge))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(Y(this,st)===this)return!0;if(!((r=Y(this,Ge))!=null&&r.isStart()))return!1;if(Y(this,vn)===0)return!0;const t=Y(this,Ge);for(let i=0;i<Y(this,vn);i++){const s=Y(t,we)[i];if(!(s instanceof Lt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(Y(this,st)===this||((r=Y(this,Ge))==null?void 0:r.type)==="!")return!0;if(!((i=Y(this,Ge))!=null&&i.isEnd()))return!1;if(!this.type)return(s=Y(this,Ge))==null?void 0:s.isEnd();const t=Y(this,Ge)?Y(Y(this,Ge),we).length:0;return Y(this,vn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Lt(this.type,t);for(const i of Y(this,we))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Lt(null,void 0,r);return de(s=Lt,xn,ma).call(s,t,i,0,r,0),i}toMMPattern(){if(this!==Y(this,st))return Y(this,st).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||Y(this,dt)||Y(this,Ar).nocase&&!Y(this,Ar).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(Y(this,Ar).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return Y(this,Ar)}toRegExpSource(t){var f;const r=t??!!Y(this,Ar).dot;if(Y(this,st)===this&&(de(this,Ie,ya).call(this),de(this,Ie,U0).call(this)),!Gm(this)){const m=this.isStart()&&this.isEnd()&&!Y(this,we).some(x=>typeof x!="string"),y=Y(this,we).map(x=>{var E;const[d,w,h,S]=typeof x=="string"?de(E=Lt,xn,K0).call(E,x,Y(this,dt),m):x.toRegExpSource(t);return je(this,dt,Y(this,dt)||h),je(this,Vr,Y(this,Vr)||S),d}).join("");let p="";if(this.isStart()&&typeof Y(this,we)[0]=="string"&&!(Y(this,we).length===1&&m2.has(Y(this,we)[0]))){const d=g2,w=r&&d.has(y.charAt(0))||y.startsWith("\\.")&&d.has(y.charAt(2))||y.startsWith("\\.\\.")&&d.has(y.charAt(4)),h=!r&&!t&&d.has(y.charAt(0));p=w?h2:h?sa:""}let g="";return this.isEnd()&&Y(Y(this,st),yn)&&((f=Y(this,Ge))==null?void 0:f.type)==="!"&&(g="(?:$|\\/)"),[p+y+g,_o(y),je(this,dt,!!Y(this,dt)),Y(this,Vr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=de(this,Ie,Wc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const m=this.toString(),y=this;return je(y,we,[m]),y.type=null,je(y,dt,void 0),[m,_o(this.toString()),!1,!1]}let u=!i||t||r||!sa?"":de(this,Ie,Wc).call(this,!0);u===a&&(u=""),u&&(a=`(?:${a})(?:${u})*?`);let c="";if(this.type==="!"&&Y(this,xi))c=(this.isStart()&&!r?sa:"")+Xm;else{const m=this.type==="!"?"))"+(this.isStart()&&!r&&!t?sa:"")+Vm+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&u?")":this.type==="*"&&u?")?":`)${this.type}`;c=s+a+m}return[c,_o(a),je(this,dt,!!Y(this,dt)),Y(this,Vr)]}}st=new WeakMap,dt=new WeakMap,Vr=new WeakMap,we=new WeakMap,Ge=new WeakMap,vn=new WeakMap,Wn=new WeakMap,yn=new WeakMap,Ar=new WeakMap,Tr=new WeakMap,xi=new WeakMap,Ie=new WeakSet,U0=function(){if(this!==Y(this,st))throw new Error("should only call on root");if(Y(this,yn))return this;this.toString(),je(this,yn,!0);let t;for(;t=Y(this,Wn).pop();){if(t.type!=="!")continue;let r=t,i=Y(r,Ge);for(;i;){for(let s=Y(r,vn)+1;!i.type&&s<Y(i,we).length;s++)for(const a of Y(t,we)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(Y(i,we)[s])}r=i,i=Y(r,Ge)}}return this},xn=new WeakSet,ma=function(t,r,i,s,a){var d,w,h,S;const u=s.maxExtglobRecursion??2;let c=!1,f=!1,m=-1,y=!1;if(r.type===null){let E=i,R="";for(;E<t.length;){const O=t.charAt(E++);if(c||O==="\\"){c=!c,R+=O;continue}if(f){E===m+1?(O==="^"||O==="!")&&(y=!0):O==="]"&&!(E===m+2&&y)&&(f=!1),R+=O;continue}else if(O==="["){f=!0,m=E,y=!1,R+=O;continue}if(!s.noext&&Nc(O)&&t.charAt(E)==="("&&a<=u){r.push(R),R="";const U=new Lt(O,r);E=de(d=Lt,xn,ma).call(d,t,U,E,s,a+1),r.push(U);continue}R+=O}return r.push(R),E}let p=i+1,g=new Lt(null,r);const v=[];let x="";for(;p<t.length;){const E=t.charAt(p++);if(c||E==="\\"){c=!c,x+=E;continue}if(f){p===m+1?(E==="^"||E==="!")&&(y=!0):E==="]"&&!(p===m+2&&y)&&(f=!1),x+=E;continue}else if(E==="["){f=!0,m=p,y=!1,x+=E;continue}if(!s.noext&&Nc(E)&&t.charAt(p)==="("&&(a<=u||r&&de(w=r,Ie,va).call(w,E))){const O=r&&de(h=r,Ie,va).call(h,E)?0:1;g.push(x),x="";const C=new Lt(E,g);g.push(C),p=de(S=Lt,xn,ma).call(S,t,C,p,s,a+O);continue}if(E==="|"){g.push(x),x="",v.push(g),g=new Lt(null,r);continue}if(E===")")return x===""&&Y(r,we).length===0&&je(r,xi,!0),g.push(x),x="",r.push(...v,g),p;x+=E}return r.type=null,je(r,dt,void 0),je(r,we,[t.substring(i-1)]),p},B0=function(t){return de(this,Ie,jc).call(this,t,d2)},jc=function(t,r=f2){if(!t||typeof t!="object"||t.type!==null||Y(t,we).length!==1||this.type===null)return!1;const i=Y(t,we)[0];return!i||typeof i!="object"||i.type===null?!1:de(this,Ie,va).call(this,i.type,r)},va=function(t,r=p2){var i;return!!((i=r.get(this.type))!=null&&i.includes(t))},H0=function(t,r){const i=Y(t,we)[0],s=new Lt(null,i,this.options);Y(s,we).push(""),i.push(s),de(this,Ie,zc).call(this,t,r)},zc=function(t,r){const i=Y(t,we)[0];Y(this,we).splice(r,1,...Y(i,we));for(const s of Y(i,we))typeof s=="object"&&je(s,Ge,this);je(this,Tr,void 0)},q0=function(t){const r=Km.get(this.type);return!!(r!=null&&r.has(t))},Z0=function(t){if(!t||typeof t!="object"||t.type!==null||Y(t,we).length!==1||this.type===null||Y(this,we).length!==1)return!1;const r=Y(t,we)[0];return!r||typeof r!="object"||r.type===null?!1:de(this,Ie,q0).call(this,r.type)},G0=function(t){const r=Km.get(this.type),i=Y(t,we)[0],s=r==null?void 0:r.get(i.type);if(!s)return!1;je(this,we,Y(i,we));for(const a of Y(this,we))typeof a=="object"&&je(a,Ge,this);this.type=s,je(this,Tr,void 0),je(this,xi,!1)},ya=function(){var t,r;if(Gm(this)){let i=0,s=!1;do{s=!0;for(let a=0;a<Y(this,we).length;a++){const u=Y(this,we)[a];typeof u=="object"&&(de(r=u,Ie,ya).call(r),de(this,Ie,jc).call(this,u)?(s=!1,de(this,Ie,zc).call(this,u,a)):de(this,Ie,B0).call(this,u)?(s=!1,de(this,Ie,H0).call(this,u,a)):de(this,Ie,Z0).call(this,u)&&(s=!1,de(this,Ie,G0).call(this,u)))}}while(!s&&++i<10)}else for(const i of Y(this,we))typeof i=="object"&&de(t=i,Ie,ya).call(t);je(this,Tr,void 0)},Wc=function(t){return Y(this,we).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,u]=r.toRegExpSource(t);return je(this,Vr,Y(this,Vr)||u),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},K0=function(t,r,i=!1){let s=!1,a="",u=!1,c=!1;for(let f=0;f<t.length;f++){const m=t.charAt(f);if(s){s=!1,a+=(v2.has(m)?"\\":"")+m;continue}if(m==="*"){if(c)continue;c=!0,a+=i&&/^[*]+$/.test(t)?Xm:Vm,r=!0;continue}else c=!1;if(m==="\\"){f===t.length-1?a+="\\\\":s=!0;continue}if(m==="["){const[y,p,g,v]=l2(t,f);if(g){a+=y,u=u||p,f+=g-1,r=r||v;continue}}if(m==="?"){a+=jf,r=!0;continue}a+=y2(m)}return[a,_o(t),!!r,u]},gt(Xa,xn);Lt=Xa;const w2=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),_t=(e,t,r={})=>(Ia(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ya(t,r).match(e)),x2=/^\*+([^+@!?*[(]*)$/,S2=e=>t=>!t.startsWith(".")&&t.endsWith(e),E2=e=>t=>t.endsWith(e),_2=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),O2=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),A2=/^\*+\.\*+$/,T2=e=>!e.startsWith(".")&&e.includes("."),R2=e=>e!=="."&&e!==".."&&e.includes("."),P2=/^\.\*+$/,C2=e=>e!=="."&&e!==".."&&e.startsWith("."),k2=/^\*+$/,$2=e=>e.length!==0&&!e.startsWith("."),I2=e=>e.length!==0&&e!=="."&&e!=="..",L2=/^\?+([^+@!?*[(]*)?$/,M2=([e,t=""])=>{const r=V0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},F2=([e,t=""])=>{const r=X0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},D2=([e,t=""])=>{const r=X0([e]);return t?i=>r(i)&&i.endsWith(t):r},N2=([e,t=""])=>{const r=V0([e]);return t?i=>r(i)&&i.endsWith(t):r},V0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},X0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Y0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ym={win32:{sep:"\\"},posix:{sep:"/"}},j2=Y0==="win32"?Ym.win32.sep:Ym.posix.sep;_t.sep=j2;const St=Symbol("globstar **");_t.GLOBSTAR=St;const z2="[^/]",W2=z2+"*?",U2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",B2="(?:(?!(?:\\/|^)\\.).)*?",H2=(e,t={})=>r=>_t(r,e,t);_t.filter=H2;const nr=(e,t={})=>Object.assign({},e,t),q2=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return _t;const t=_t;return Object.assign((i,s,a={})=>t(i,s,nr(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,nr(e,a))}static defaults(s){return t.defaults(nr(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,u={}){super(s,a,nr(e,u))}static fromGlob(s,a={}){return t.AST.fromGlob(s,nr(e,a))}},unescape:(i,s={})=>t.unescape(i,nr(e,s)),escape:(i,s={})=>t.escape(i,nr(e,s)),filter:(i,s={})=>t.filter(i,nr(e,s)),defaults:i=>t.defaults(nr(e,i)),makeRe:(i,s={})=>t.makeRe(i,nr(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,nr(e,s)),match:(i,s,a={})=>t.match(i,s,nr(e,a)),sep:t.sep,GLOBSTAR:St})};_t.defaults=q2;const J0=(e,t={})=>(Ia(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:t2(e,{max:t.braceExpandMax}));_t.braceExpand=J0;const Z2=(e,t={})=>new Ya(e,t).makeRe();_t.makeRe=Z2;const G2=(e,t,r={})=>{const i=new Ya(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};_t.match=G2;const Jm=/[?*]|[+@!]\(.*?\)|\[|\]/,K2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var Zt,Q0,Uc,mi;class Ya{constructor(t,r={}){gt(this,Zt);ye(this,"options");ye(this,"set");ye(this,"pattern");ye(this,"windowsPathsNoEscape");ye(this,"nonegate");ye(this,"negate");ye(this,"comment");ye(this,"empty");ye(this,"preserveMultipleSlashes");ye(this,"partial");ye(this,"globSet");ye(this,"globParts");ye(this,"nocase");ye(this,"isWindows");ye(this,"platform");ye(this,"windowsNoMagicRoot");ye(this,"maxGlobstarRecursion");ye(this,"regexp");Ia(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||Y0,this.isWindows=this.platform==="win32";const i="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((a,u,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=a[0]===""&&a[1]===""&&(a[2]==="?"||!Jm.test(a[2]))&&!Jm.test(a[3]),m=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(y=>this.parse(y))];if(m)return[a[0],...a.slice(1).map(y=>this.parse(y))]}return a.map(f=>this.parse(f))});if(this.debug(this.pattern,s),this.set=s.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const u=this.set[a];u[0]===""&&u[1]===""&&this.globParts[a][2]==="?"&&typeof u[3]=="string"&&/^[a-z]:$/i.test(u[3])&&(u[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(const i of t)for(let s=0;s<i.length;s++)i[s]==="**"&&(i[s]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let s=i;for(;r[s+1]==="**";)s++;s!==i&&r.splice(i,s-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,s)=>{const a=i[i.length-1];return s==="**"&&a==="**"?i:s===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(i.pop(),i):(i.push(s),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){const a=t[s];s===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const s=t[i-1];s&&s!=="."&&s!==".."&&s!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(s))&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let s=-1;for(;(s=i.indexOf("**",s+1))!==-1;){let u=s;for(;i[u+1]==="**";)u++;u>s&&i.splice(s+1,u-s);let c=i[s+1];const f=i[s+2],m=i[s+3];if(c!==".."||!f||f==="."||f===".."||!m||m==="."||m==="..")continue;r=!0,i.splice(s,1);const y=i.slice(0);y[s]="**",t.push(y),s--}if(!this.preserveMultipleSlashes){for(let u=1;u<i.length-1;u++){const c=i[u];u===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(u,1),u--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let a=0;for(;(a=i.indexOf("..",a+1))!==-1;){const u=i[a-1];if(u&&u!=="."&&u!==".."&&u!=="**"){r=!0;const f=a===1&&i[a+1]==="**"?["."]:[];i.splice(a-1,2,...f),i.length===0&&i.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const s=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(s){t[r]=[],t[i]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let s=0,a=0,u=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])u.push(c==="b"?r[a]:t[s]),s++,a++;else if(i&&t[s]==="**"&&r[a]===t[s+1])u.push(t[s]),s++;else if(i&&r[a]==="**"&&t[s]===r[a+1])u.push(r[a]),a++;else if(t[s]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",u.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="a")return!1;c="b",u.push(r[a]),s++,a++}else return!1;return t.length===r.length&&u}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){let s=0,a=0;if(this.isWindows){const c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),m=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),y=!m&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=f?3:c?0:void 0,g=y?3:m?0:void 0;if(typeof p=="number"&&typeof g=="number"){const[v,x]=[t[p],r[g]];v.toLowerCase()===x.toLowerCase()&&(r[g]=v,a=g,s=p)}}const{optimizationLevel:u=1}=this.options;return u>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(St)?de(this,Zt,Q0).call(this,t,r,i,s,a):de(this,Zt,mi).call(this,t,r,i,s,a)}braceExpand(){return J0(this.pattern,this.options)}parse(t){Ia(t);const r=this.options;if(t==="**")return St;if(t==="")return"";let i,s=null;(i=t.match(k2))?s=r.dot?I2:$2:(i=t.match(x2))?s=(r.nocase?r.dot?O2:_2:r.dot?E2:S2)(i[1]):(i=t.match(L2))?s=(r.nocase?r.dot?F2:M2:r.dot?D2:N2)(i):(i=t.match(A2))?s=r.dot?R2:T2:(i=t.match(P2))&&(s=C2);const a=Xa.fromGlob(t,this.options).toMMPattern();return s&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:s}),a}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?W2:r.dot?U2:B2,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const m=f.map(p=>{if(p instanceof RegExp)for(const g of p.flags.split(""))s.add(g);return typeof p=="string"?K2(p):p===St?St:p._src});m.forEach((p,g)=>{const v=m[g+1],x=m[g-1];p!==St||x===St||(x===void 0?v!==void 0&&v!==St?m[g+1]="(?:\\/|"+i+"\\/)?"+v:m[g]=i:v===void 0?m[g-1]=x+"(?:\\/|\\/"+i+")?":v!==St&&(m[g-1]=x+"(?:\\/|\\/"+i+"\\/)"+v,m[g+1]=St))});const y=m.filter(p=>p!==St);if(this.partial&&y.length>=1){const p=[];for(let g=1;g<=y.length;g++)p.push(y.slice(0,g).join("/"));return"(?:"+p.join("|")+")"}return y.join("/")}).join("|");const[u,c]=t.length>1?["(?:",")"]:["",""];a="^"+u+a+c+"$",this.partial&&(a="^(?:\\/|"+u+a.slice(1,-1)+c+")$"),this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const a=this.set;this.debug(this.pattern,"set",a);let u=s[s.length-1];if(!u)for(let c=s.length-2;!u&&c>=0;c--)u=s[c];for(const c of a){let f=s;if(i.matchBase&&c.length===1&&(f=[u]),this.matchOne(f,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return _t.defaults(t).Minimatch}}Zt=new WeakSet,Q0=function(t,r,i,s,a){const u=r.indexOf(St,a),c=r.lastIndexOf(St),[f,m,y]=i?[r.slice(a,u),r.slice(u+1),[]]:[r.slice(a,u),r.slice(u+1,c),r.slice(c+1)];if(f.length){const S=t.slice(s,s+f.length);if(!de(this,Zt,mi).call(this,S,f,i,0,0))return!1;s+=f.length,a+=f.length}let p=0;if(y.length){if(y.length+s>t.length)return!1;let S=t.length-y.length;if(de(this,Zt,mi).call(this,t,y,i,S,0))p=y.length;else{if(t[t.length-1]!==""||s+y.length===t.length||(S--,!de(this,Zt,mi).call(this,t,y,i,S,0)))return!1;p=y.length+1}}if(!m.length){let S=!!p;for(let E=s;E<t.length-p;E++){const R=String(t[E]);if(S=!0,R==="."||R===".."||!this.options.dot&&R.startsWith("."))return!1}return i||S}const g=[[[],0]];let v=g[0],x=0;const d=[0];for(const S of m)S===St?(d.push(x),v=[[],0],g.push(v)):(v[0].push(S),x++);let w=g.length-1;const h=t.length-p;for(const S of g)S[1]=h-(d[w--]+S[0].length);return!!de(this,Zt,Uc).call(this,t,g,s,0,i,0,!!p)},Uc=function(t,r,i,s,a,u,c){const f=r[s];if(!f){for(let p=i;p<t.length;p++){c=!0;const g=t[p];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1}return c}const[m,y]=f;for(;i<=y;){if(de(this,Zt,mi).call(this,t.slice(0,i+m.length),m,a,i,0)&&u<this.maxGlobstarRecursion){const v=de(this,Zt,Uc).call(this,t,r,i+m.length,s+1,a,u+1,c);if(v!==!1)return v}const g=t[i];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1;i++}return a||null},mi=function(t,r,i,s,a){let u,c,f,m;for(u=s,c=a,m=t.length,f=r.length;u<m&&c<f;u++,c++){this.debug("matchOne loop");let y=r[c],p=t[u];if(this.debug(r,y,p),y===!1||y===St)return!1;let g;if(typeof y=="string"?(g=p===y,this.debug("string match",y,p,g)):(g=y.test(p),this.debug("pattern match",y,p,g)),!g)return!1}if(u===m&&c===f)return!0;if(u===m)return i;if(c===f)return u===m-1&&t[u]==="";throw new Error("wtf?")};_t.AST=Xa;_t.Minimatch=Ya;_t.escape=w2;_t.unescape=_o;const jo="/$shared",V2={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/i18n.json":{parser:"json",content:{keys:{},userLang:{primary:"",supported:[]}},schema:{type:"object",properties:{keys:{type:"object"},userLang:{type:"object",properties:{primary:{type:"string"},supported:{type:"array",items:{type:"string"}}},required:["primary","supported"]}},required:["keys","userLang"]}},"**/*.json":{parser:"json",content:{}}};function eb(e){const t=Object.entries(V2).find(([r])=>_t(e,r));return t==null?void 0:t[1]}function Ja(e){var i;const t=(i=eb(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${jo}/`,"Shared/");zf({name:r,content:t,asText:typeof t=="string"})}async function X2(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Ne(`${jo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){tb(r)&&Ja(`${jo}/${t}`)}}function Ko({path:e,createIfNotExists:t=!1}){const r=`${jo}/${e}`;return Ne(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=eb(e);let a=i;if(!s)return a;if(typeof a=="string")try{switch(s.parser){case"json":a=JSON.parse(a);break;default:break}}catch{throw new Error("Cannot parse")}if(s.schema&&!new zL.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(tb(i)&&t){const s=Y2(i,e);l0.next({message:s,kind:"warning"}),Ja(r)}throw i})}function tb(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function Y2(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function J2(e){return Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function Q2(e){return Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const rb=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Lf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function eM(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:On.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const u=`http://${e}:${s.webServerHTTPPort}`,c=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?i?c:u:s.webServerHTTPPort?u:c})();return{projectOpened:s.webServerHTTPSPort>0||s.webServerHTTPPort>0,remoteDebuggerMode:s.remoteDebuggerMode,baseUrl:a,qodly:typeof s.qodly>"u"?!0:s.qodly,urls:{renderer:s.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:s.isRESTActive}}catch(s){return console.error(s),rb()}}async function nb(e){return await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function tM(...e){return(await Promise.all(e.map(i=>nb({root:i,verb:On.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:u})=>({name:s,type:u,date:a,path:`${u}/${s}`}))).flat()}function rM(e,t={}){const{sanitize:r=!0}=t;return Ne(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const s=new Map;return{...i,components:Ye.entries(i.components).map(([a,u])=>{const c=a,{resolvedName:f}=u.type;if(f==="WebformLoader"){const m=Jc.generate();s.set(a,m),a=m}return[a,u,c]}).reduce((a,[u,c,f])=>{var m;return c.nodes&&(c.nodes=c.nodes.map(y=>s.get(y)||y)),c.linkedNodes&&(c.linkedNodes=Ye.entries(c.linkedNodes).reduce((y,[p,g])=>({...y,[p]:s.get(g)||g}),{})),(m=c.props)!=null&&m.events&&(c.props.events=c.props.events.map(y=>(y.type==="navigation"&&y.loader&&(y.loader=s.get(y.loader)||y.loader),y))),{...a,[u]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function nM(e){return Ne(at,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Xe.METHOD,Xe.CLASS].includes(t.type)?Va(t.content):t.content}))}function iM(e){return e.type==="folder"?Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function oM(e){return e.type==="folder"?(await Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function sM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function aM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function uM(e){return(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function lM(...e){return await Ne(at,{method:"POST",body:JSON.stringify({verb:On.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function cM(e){const t=await Ne("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function fM(){return await Ne("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function dM(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,i=await(await fetch(t)).text(),{supported:s}=JSON.parse(i);return s}catch{return[]}}async function pM({name:e,path:t="",root:r="root",asText:i=!1}){return Ne(at,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function hM(e={}){try{return{...await Ko({path:"shared_datasources.json",...e}),...$a}}catch{return{...$a}}}async function gM(e={}){try{return await Ko({path:"shared_app_events.json",...e})}catch{return[]}}async function mM(e={}){try{return await Ko({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function vM(e={}){try{return await Ko({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function yM(){try{return await Ne("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function bM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const wM=Ff(),xM=async e=>{const t={verb:On.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ye.omit(e,Ye.keys($a))};return wM(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},SM=Ff(),EM=async e=>{const t={verb:On.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return SM(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},zf=async e=>{const t=await Ne(at,{method:"POST",body:JSON.stringify({...e,verb:On.SET_FILE_CONTENT,root:If.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Mf(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},_M=async e=>await zf({name:"crafted_components.json",path:wn.WEBFORMS,content:e});function OM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function AM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function TM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function RM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?Va(t.content):t.content}).catch(t=>{var r,i;throw((i=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:i.errCode)===1839&&Ja(e.path),t})}function PM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function CM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function kM(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function $M(e){const t=CM(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),u=s.split(":")[1].trim();return{name:a,type:u}}),r=kM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function IM(e,t){const i=e.split(".").pop();try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});s.content=Va(s.content);const{params:a,result:u}=$M(s.parameters);return{...s,params:a,returns:u}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var ib=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(ib||{});function LM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function MM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var ob=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(ob||{}),sb=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(sb||{}),ab=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(ab||{}),ub=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(ub||{});const FM={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},DM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=at;exports.AppLoader=w$;exports.BaseCheckboxIcon=Zy;exports.Checkbox=q$;exports.ControlledSwitch=Oy;exports.DATASOURCE_THEMES=FM;exports.DatasourcesActions=u0;exports.DebuggerActions=d0;exports.DefaultCheckboxIcon=Gy;exports.DesignerRequestVerb=On;exports.Dialog=eT;exports.DialogBody=hv;exports.EActivity=ib;exports.EDITOR=DM;exports.EIDENTIFIERS=ab;exports.ERROR_CODES=ub;exports.EWebFormStyleClassScope=ob;exports.EXT_API_PREFIX=Go;exports.FileFolderType=Xe;exports.FloatingTooltip=W$;exports.FolderRootPath=wn;exports.FolderRootType=If;exports.HTTPError=Fc;exports.HTTP_HANDLERS_TAB_PATH=m0;exports.IPreemptive=No;exports.IPublished=C0;exports.IPublishedRestScope=Df;exports.IdentityProvider=fI;exports.Incase=fa;exports.IndentLines=Rv;exports.InvalidJsonError=Z$;exports.LOCALIZATION_TAB_PATH=v0;exports.LOCATION_DATASOURCE_ID=T0;exports.LogoSVG=jy;exports.LspActions=f0;exports.MAX_FILE_NAME_LENGTH=kf;exports.MODEL_TAB_PATH=QI;exports.Modal=_$;exports.ModalCloseReason=vi;exports.ModalColor=Bn;exports.ModalIcons=Rc;exports.ModalType=Sf;exports.Mutex=y0;exports.NameError=$f;exports.Overlay=pv;exports.PANEL_COLLAPSED_HEIGHT=Or;exports.PANEL_INITIAL_OPEN_RATIO=By;exports.PANEL_MAX_RATIO=Hy;exports.Panel=H$;exports.Portal=tv;exports.PublishOptions=RL;exports.QODLY_NAMESPACE=So;exports.ROLES_TAB_PATH=h0;exports.RemoteDebuggerMode=Lf;exports.SETTINGS_TAB_PATH=g0;exports.SHARED_API_PREFIX=jo;exports.SHARED_USER_NAMESPACE=$a;exports.SourceCodeDescriptor=sb;exports.Switcher=Pv;exports.TITLE_DATASOURCE_ID=P0;exports.TabEventsActions=c0;exports.Tip=py;exports.TipsProvider=TC;exports.Toast=aR;exports.Tooltip=y$;exports.Tree=OR;exports.TreeIcon=_v;exports.TreeNode=Qc;exports.USER_LANGUAGE_DATASOURCE_ID=R0;exports.WebformActions=a0;exports.WebformEventsActions=Do;exports.ZoomComponent=T$;exports.ZoomLevel=Wy;exports._isArrayDatasource=SL;exports._isObjectDatasource=EL;exports.addAttributesToContent=CL;exports.addFolder=sM;exports.by=b0;exports.byId=sL;exports.byPath=aL;exports.callServerSideParser=FL;exports.checkUpdates=J2;exports.createFolder=OM;exports.datasourcesSubject=BI;exports.debuggerSubject=GI;exports.dropFile=oM;exports.dropFolder=uM;exports.exists=uL;exports.extractWebformName=rL;exports.filterBySeriousError=M0;exports.formatErrorsAsBulletToast=LL;exports.generateUUID=kL;exports.getAppSettings=eM;exports.getCatalog=fM;exports.getDatasourceId=lL;exports.getDefaultAppSettings=rb;exports.getDisplayableFeedbackErrors=IL;exports.getErrorListFromPayload=L0;exports.getFile=nM;exports.getFileContent=pM;exports.getFileExtentionFromType=tL;exports.getFilenameAndTypeFromPath=eL;exports.getFilenameFromType=nL;exports.getFilesInfo=lM;exports.getFolder=nb;exports.getFolders=tM;exports.getFunctionContent=IM;exports.getMonacoTheme=bM;exports.getNodeInfo=RM;exports.getSavedConditions=vM;exports.getSharedAppEvents=gM;exports.getSharedCSS=mM;exports.getSharedDatasources=hM;exports.getSharedResource=Ko;exports.getSupportedLanguages=dM;exports.getTypeFromExtension=Mf;exports.getUserPrivileges=yM;exports.getWebForm=rM;exports.hasAttributesString=$0;exports.http=Ne;exports.i18nSubject=VI;exports.initializeDefaultProjectFiles=X2;exports.installUpdates=Q2;exports.isArrayDatasource=_0;exports.isDataClassMethod=hL;exports.isDataStoreMethod=pL;exports.isDateDatasource=_L;exports.isEntity=wL;exports.isEntityDatasource=vL;exports.isEntityMethod=gL;exports.isEntitySelection=xL;exports.isEntitySelectionDatasource=yL;exports.isEntitySelectionMethod=mL;exports.isObjectAttribute=fL;exports.isObjectDatasource=O0;exports.isRelatedAttribute=dL;exports.isRelatedEntitiesAttribute=S0;exports.isRelatedEntityAttribute=E0;exports.isSameNamespace=OL;exports.isScalarDatasource=A0;exports.isSimpleAttribute=x0;exports.isSimpleDatasource=bL;exports.loadDS=AL;exports.loadI18n=TL;exports.localeCompare=w0;exports.log=LM;exports.login=cM;exports.lspSubject=ZI;exports.moveItem=TM;exports.outBy=iL;exports.outById=oL;exports.parseAttributes=PL;exports.queue=Ff;exports.removeAttributesString=I0;exports.removeItem=AM;exports.renameFile=iM;exports.renameFolder=aM;exports.sanitizeContent=Va;exports.sanitizeNameCY=$L;exports.saveContent=PM;exports.setCraftedComponents=_M;exports.setFileContent=zf;exports.setSharedAppEvents=EM;exports.setSharedSources=xM;exports.splitDatasourceID=cL;exports.stringifyAttributes=k0;exports.tabEventsSubject=qI;exports.tasksManagerSubject=KI;exports.toastSubject=l0;exports.trackEvent=MM;exports.transformDates=ML;exports.tryCreateSharedResource=Ja;exports.useDidMountEffect=G$;exports.useDoubleClick=gI;exports.useEnhancedState=CI;exports.useFeatureFlags=cI;exports.useForwardedRef=lI;exports.useHotkeys=oI;exports.useIdentity=dI;exports.useOutsideClick=sI;exports.usePrevious=aI;exports.useStateObject=pI;exports.useStateRef=uI;exports.useTip=dy;exports.validateName=p0;exports.validateServerSide=XI;exports.validateValue=YI;exports.webformEventsSubject=ka;exports.webformSubject=HI;
|
|
203
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Uc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ru=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,s,a;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var l=Oc(u),f=l.next();!f.done;f=l.next()){var p=f.value;p.remove(this)}}catch(h){t={error:h}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}else u.remove(this);var m=this.initialTeardown;if(en(m))try{m()}catch(h){a=h instanceof yc?h.errors:[h]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var g=Oc(d),y=g.next();!y.done;y=g.next()){var x=y.value;try{rv(x)}catch(h){a=a??[],h instanceof yc?a=Ra(Ra([],Ac(a)),Ac(h.errors)):a.push(h)}}}catch(h){i={error:h}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}}if(a)throw new yc(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)rv(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)&&Uc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Uc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),C0=ru.EMPTY;function k0(e){return e instanceof ru||e&&"closed"in e&&en(e.remove)&&en(e.add)&&en(e.unsubscribe)}function rv(e){en(e)?e():e.unsubscribe()}var RL={Promise:void 0},PL={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Ra([e,t],Ac(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function CL(e){PL.setTimeout(function(){throw e})}function nv(){}function xa(e){e()}var I0=(function(e){Za(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,k0(r)&&r.add(i)):i.destination=$L,i}return t.create=function(r,i,s){return new qc(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})(ru),kL=(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){ca(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ca(i)}else ca(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ca(r)}},e})(),qc=(function(e){Za(t,e);function t(r,i,s){var a=e.call(this)||this,u;return en(r)||!r?u={next:r??void 0,error:i??void 0,complete:s??void 0}:u=r,a.destination=new kL(u),a}return t})(I0);function ca(e){CL(e)}function IL(e){throw e}var $L={closed:!0,next:nv,error:IL,complete:nv},LL=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ML(e){return e}function DL(e){return e.length===0?ML:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var iv=(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=FL(t)?t:new qc(t,r,i);return xa(function(){var u=s,l=u.operator,f=u.source;a.add(l?l.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=ov(r),new r(function(s,a){var u=new qc({next:function(l){try{t(l)}catch(f){a(f),u.unsubscribe()}},error:a,complete:s});i.subscribe(u)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[LL]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return DL(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=ov(t),new t(function(i,s){var a;r.subscribe(function(u){return a=u},function(u){return s(u)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function ov(e){var t;return(t=e??RL.Promise)!==null&&t!==void 0?t:Promise}function NL(e){return e&&en(e.next)&&en(e.error)&&en(e.complete)}function FL(e){return e&&e instanceof I0||NL(e)&&k0(e)}var jL=P0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),jr=(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 sv(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new jL},t.prototype.next=function(r){var i=this;xa(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=Oc(i.currentObservers),l=u.next();!l.done;l=u.next()){var f=l.value;f.next(r)}}catch(p){s={error:p}}finally{try{l&&!l.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var i=this;xa(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;xa(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,s=this,a=s.hasError,u=s.isStopped,l=s.observers;return a||u?C0:(this.currentObservers=null,l.push(r),new ru(function(){i.currentObservers=null,Uc(l,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,s=i.hasError,a=i.thrownError,u=i.isStopped;s?r.error(a):u&&r.complete()},t.prototype.asObservable=function(){var r=new iv;return r.source=this,r},t.create=function(r,i){return new sv(r,i)},t})(iv),sv=(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:C0},t})(jr),$0=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))($0||{}),L0=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(L0||{});const zL=new jr,BL=new jr,Wf=new jr;var M0=(e=>(e.SAVE_ALL="save-all",e))(M0||{});const WL=new jr;var D0=(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))(D0||{});const HL=new jr;var N0=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(N0||{});const UL=new jr,qL=new jr;var Uo=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Uo||{});const Na=new jr,GL=new jr,Hf=255;var Uf=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Hf} 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))(Uf||{});function nu(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>Hf)throw new Error(Uf.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 ZL(e){if(!e)return null;if(typeof e=="string")try{nu(e)}catch(t){return t.message}}function VL(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Ie.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Ie.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 KL(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function iu(e){const{PLACEHOLDER_PREFIX:t,counter:r}=KL();let i=r;const s=[],a="@!",u=m=>(s.push(m),`${t}${i++}${a}`);let l=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,u);l=l.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(m,d,g)=>d+u(g)),l=l.replace(/:\d{2}:\d{2}/g,u);const f=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let p=l.replace(f,"");for(let m=0;m<s.length;m++){const g=`${t}${m}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),y=new RegExp(g,"g");p=p.replace(y,s[m])}return p}const F0=(e,t,r)=>{const i=e instanceof RegExp?av(e,r):e,s=t instanceof RegExp?av(t,r):t,a=i!==null&&s!=null&&YL(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)}},av=(e,t)=>{const r=t.match(e);return r?r[0]:null},YL=(e,t,r)=>{let i,s,a,u,l,f=r.indexOf(e),p=r.indexOf(t,f+1),m=f;if(f>=0&&p>0){if(e===t)return[f,p];for(i=[],a=r.length;m>=0&&!l;){if(m===f)i.push(m),f=r.indexOf(e,m+1);else if(i.length===1){const d=i.pop();d!==void 0&&(l=[d,p])}else s=i.pop(),s!==void 0&&s<a&&(a=s,u=p),p=r.indexOf(t,m+1);m=f<p&&f>=0?f:p}i.length&&u!==void 0&&(l=[a,u])}return l},j0="\0SLASH"+Math.random()+"\0",z0="\0OPEN"+Math.random()+"\0",qf="\0CLOSE"+Math.random()+"\0",B0="\0COMMA"+Math.random()+"\0",W0="\0PERIOD"+Math.random()+"\0",XL=new RegExp(j0,"g"),JL=new RegExp(z0,"g"),QL=new RegExp(qf,"g"),eM=new RegExp(B0,"g"),tM=new RegExp(W0,"g"),rM=/\\\\/g,nM=/\\{/g,iM=/\\}/g,oM=/\\,/g,sM=/\\\./g,aM=1e5;function bc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function uM(e){return e.replace(rM,j0).replace(nM,z0).replace(iM,qf).replace(oM,B0).replace(sM,W0)}function lM(e){return e.replace(XL,"\\").replace(JL,"{").replace(QL,"}").replace(eM,",").replace(tM,".")}function H0(e){if(!e)return[""];const t=[],r=F0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,u=i.split(",");u[u.length-1]+="{"+s+"}";const l=H0(a);return a.length&&(u[u.length-1]+=l.shift(),u.push.apply(u,l)),t.push.apply(t,u),t}function cM(e,t={}){if(!e)return[];const{max:r=aM}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Po(uM(e),r,!0).map(lM)}function fM(e){return"{"+e+"}"}function dM(e){return/^-?0\d/.test(e)}function pM(e,t){return e<=t}function hM(e,t){return e>=t}function Po(e,t,r){const i=[],s=F0("{","}",e);if(!s)return[e];const a=s.pre,u=s.post.length?Po(s.post,t,!1):[""];if(/\$$/.test(s.pre))for(let l=0;l<u.length&&l<t;l++){const f=a+"{"+s.body+"}"+u[l];i.push(f)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),p=l||f,m=s.body.indexOf(",")>=0;if(!p&&!m)return s.post.match(/,(?!,).*\}/)?(e=s.pre+"{"+s.body+qf+s.post,Po(e,t,!0)):[e];let d;if(p)d=s.body.split(/\.\./);else if(d=H0(s.body),d.length===1&&d[0]!==void 0&&(d=Po(d[0],t,!1).map(fM),d.length===1))return u.map(y=>s.pre+d[0]+y);let g;if(p&&d[0]!==void 0&&d[1]!==void 0){const y=bc(d[0]),x=bc(d[1]),h=Math.max(d[0].length,d[1].length);let w=d.length===3&&d[2]!==void 0?Math.max(Math.abs(bc(d[2])),1):1,v=pM;x<y&&(w*=-1,v=hM);const E=d.some(dM);g=[];for(let R=y;v(R,x);R+=w){let T;if(f)T=String.fromCharCode(R),T==="\\"&&(T="");else if(T=String(R),E){const C=h-T.length;if(C>0){const W=new Array(C+1).join("0");R<0?T="-"+W+T.slice(1):T=W+T}}g.push(T)}}else{g=[];for(let y=0;y<d.length;y++)g.push.apply(g,Po(d[y],t,!1))}for(let y=0;y<g.length;y++)for(let x=0;x<u.length&&i.length<t;x++){const h=a+g[y]+u[x];(!r||p||h)&&i.push(h)}}return i}const gM=1024*64,Fa=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>gM)throw new TypeError("pattern is too long")},mM={"[: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]},_o=e=>e.replace(/[[\]\\-]/g,"\\$&"),vM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),uv=e=>e.join(""),yM=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],s=[];let a=r+1,u=!1,l=!1,f=!1,p=!1,m=r,d="";e:for(;a<e.length;){const h=e.charAt(a);if((h==="!"||h==="^")&&a===r+1){p=!0,a++;continue}if(h==="]"&&u&&!f){m=a+1;break}if(u=!0,h==="\\"&&!f){f=!0,a++;continue}if(h==="["&&!f){for(const[w,[v,S,E]]of Object.entries(mM))if(e.startsWith(w,a)){if(d)return["$.",!1,e.length-r,!0];a+=w.length,E?s.push(v):i.push(v),l=l||S;continue e}}if(f=!1,d){h>d?i.push(_o(d)+"-"+_o(h)):h===d&&i.push(_o(h)),d="",a++;continue}if(e.startsWith("-]",a+1)){i.push(_o(h+"-")),a+=2;continue}if(e.startsWith("-",a+1)){d=h,a+=2;continue}i.push(_o(h)),a++}if(m<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])&&!p){const h=i[0].length===2?i[0].slice(-1):i[0];return[vM(h),!1,m-r,!1]}const g="["+(p?"^":"")+uv(i)+"]",y="["+(p?"":"^")+uv(s)+"]";return[i.length&&s.length?"("+g+"|"+y+")":i.length?g:y,l,m-r,!0]},Co=(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 Dt;const bM=new Set(["!","?","+","*","@"]),Gc=e=>bM.has(e),lv=e=>Gc(e.type),wM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),xM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),SM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),cv=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),EM="(?!(?:^|/)\\.\\.?(?:$|/))",fa="(?!\\.)",_M=new Set(["[","."]),TM=new Set(["..","."]),OM=new Set("().*{}+?[]^$\\!"),AM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Gf="[^/]",fv=Gf+"*?",dv=Gf+"+?";let RM=0;var ut,ht,Qr,we,Xe,Sn,Gn,En,Cr,kr,Ri,Me,U0,Tn,Sa,q0,Zc,Ea,G0,Vc,Z0,V0,K0,_a,Kc,Y0;class ou{constructor(t,r,i={}){vt(this,Me);ye(this,"type");vt(this,ut);vt(this,ht);vt(this,Qr,!1);vt(this,we,[]);vt(this,Xe);vt(this,Sn);vt(this,Gn);vt(this,En,!1);vt(this,Cr);vt(this,kr);vt(this,Ri,!1);ye(this,"id",++RM);this.type=t,t&&He(this,ht,!0),He(this,Xe,r),He(this,ut,X(this,Xe)?X(X(this,Xe),ut):this),He(this,Cr,X(this,ut)===this?i:X(X(this,ut),Cr)),He(this,Gn,X(this,ut)===this?[]:X(X(this,ut),Gn)),t==="!"&&!X(X(this,ut),En)&&X(this,Gn).push(this),He(this,Sn,X(this,Xe)?X(X(this,Xe),we).length:0)}get depth(){var t;return(((t=X(this,Xe))==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:X(this,ut).id,parent:(t=X(this,Xe))==null?void 0:t.id,depth:this.depth,partsLength:X(this,we).length,parts:X(this,we)}}get hasMagic(){if(X(this,ht)!==void 0)return X(this,ht);for(const t of X(this,we))if(typeof t!="string"&&(t.type||t.hasMagic))return He(this,ht,!0);return X(this,ht)}toString(){return X(this,kr)!==void 0?X(this,kr):this.type?He(this,kr,this.type+"("+X(this,we).map(t=>String(t)).join("|")+")"):He(this,kr,X(this,we).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Dt&&X(r,Xe)===this))throw new Error("invalid part: "+r);X(this,we).push(r)}}toJSON(){var r;const t=this.type===null?X(this,we).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...X(this,we).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===X(this,ut)||X(X(this,ut),En)&&((r=X(this,Xe))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(X(this,ut)===this)return!0;if(!((r=X(this,Xe))!=null&&r.isStart()))return!1;if(X(this,Sn)===0)return!0;const t=X(this,Xe);for(let i=0;i<X(this,Sn);i++){const s=X(t,we)[i];if(!(s instanceof Dt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(X(this,ut)===this||((r=X(this,Xe))==null?void 0:r.type)==="!")return!0;if(!((i=X(this,Xe))!=null&&i.isEnd()))return!1;if(!this.type)return(s=X(this,Xe))==null?void 0:s.isEnd();const t=X(this,Xe)?X(X(this,Xe),we).length:0;return X(this,Sn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Dt(this.type,t);for(const i of X(this,we))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Dt(null,void 0,r);return de(s=Dt,Tn,Sa).call(s,t,i,0,r,0),i}toMMPattern(){if(this!==X(this,ut))return X(this,ut).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||X(this,ht)||X(this,Cr).nocase&&!X(this,Cr).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const l=(X(this,Cr).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,l),{_src:r,_glob:t})}get options(){return X(this,Cr)}toRegExpSource(t){var f;const r=t??!!X(this,Cr).dot;if(X(this,ut)===this&&(de(this,Me,_a).call(this),de(this,Me,U0).call(this)),!lv(this)){const p=this.isStart()&&this.isEnd()&&!X(this,we).some(x=>typeof x!="string"),m=X(this,we).map(x=>{var E;const[h,w,v,S]=typeof x=="string"?de(E=Dt,Tn,Y0).call(E,x,X(this,ht),p):x.toRegExpSource(t);return He(this,ht,X(this,ht)||v),He(this,Qr,X(this,Qr)||S),h}).join("");let d="";if(this.isStart()&&typeof X(this,we)[0]=="string"&&!(X(this,we).length===1&&TM.has(X(this,we)[0]))){const h=_M,w=r&&h.has(m.charAt(0))||m.startsWith("\\.")&&h.has(m.charAt(2))||m.startsWith("\\.\\.")&&h.has(m.charAt(4)),v=!r&&!t&&h.has(m.charAt(0));d=w?EM:v?fa:""}let g="";return this.isEnd()&&X(X(this,ut),En)&&((f=X(this,Xe))==null?void 0:f.type)==="!"&&(g="(?:$|\\/)"),[d+m+g,Co(m),He(this,ht,!!X(this,ht)),X(this,Qr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=de(this,Me,Kc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const p=this.toString(),m=this;return He(m,we,[p]),m.type=null,He(m,ht,void 0),[p,Co(this.toString()),!1,!1]}let u=!i||t||r||!fa?"":de(this,Me,Kc).call(this,!0);u===a&&(u=""),u&&(a=`(?:${a})(?:${u})*?`);let l="";if(this.type==="!"&&X(this,Ri))l=(this.isStart()&&!r?fa:"")+dv;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?fa:"")+fv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&u?")":this.type==="*"&&u?")?":`)${this.type}`;l=s+a+p}return[l,Co(a),He(this,ht,!!X(this,ht)),X(this,Qr)]}}ut=new WeakMap,ht=new WeakMap,Qr=new WeakMap,we=new WeakMap,Xe=new WeakMap,Sn=new WeakMap,Gn=new WeakMap,En=new WeakMap,Cr=new WeakMap,kr=new WeakMap,Ri=new WeakMap,Me=new WeakSet,U0=function(){if(this!==X(this,ut))throw new Error("should only call on root");if(X(this,En))return this;this.toString(),He(this,En,!0);let t;for(;t=X(this,Gn).pop();){if(t.type!=="!")continue;let r=t,i=X(r,Xe);for(;i;){for(let s=X(r,Sn)+1;!i.type&&s<X(i,we).length;s++)for(const a of X(t,we)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(X(i,we)[s])}r=i,i=X(r,Xe)}}return this},Tn=new WeakSet,Sa=function(t,r,i,s,a){var h,w,v,S;const u=s.maxExtglobRecursion??2;let l=!1,f=!1,p=-1,m=!1;if(r.type===null){let E=i,R="";for(;E<t.length;){const T=t.charAt(E++);if(l||T==="\\"){l=!l,R+=T;continue}if(f){E===p+1?(T==="^"||T==="!")&&(m=!0):T==="]"&&!(E===p+2&&m)&&(f=!1),R+=T;continue}else if(T==="["){f=!0,p=E,m=!1,R+=T;continue}if(!s.noext&&Gc(T)&&t.charAt(E)==="("&&a<=u){r.push(R),R="";const W=new Dt(T,r);E=de(h=Dt,Tn,Sa).call(h,t,W,E,s,a+1),r.push(W);continue}R+=T}return r.push(R),E}let d=i+1,g=new Dt(null,r);const y=[];let x="";for(;d<t.length;){const E=t.charAt(d++);if(l||E==="\\"){l=!l,x+=E;continue}if(f){d===p+1?(E==="^"||E==="!")&&(m=!0):E==="]"&&!(d===p+2&&m)&&(f=!1),x+=E;continue}else if(E==="["){f=!0,p=d,m=!1,x+=E;continue}if(!s.noext&&Gc(E)&&t.charAt(d)==="("&&(a<=u||r&&de(w=r,Me,Ea).call(w,E))){const T=r&&de(v=r,Me,Ea).call(v,E)?0:1;g.push(x),x="";const C=new Dt(E,g);g.push(C),d=de(S=Dt,Tn,Sa).call(S,t,C,d,s,a+T);continue}if(E==="|"){g.push(x),x="",y.push(g),g=new Dt(null,r);continue}if(E===")")return x===""&&X(r,we).length===0&&He(r,Ri,!0),g.push(x),x="",r.push(...y,g),d;x+=E}return r.type=null,He(r,ht,void 0),He(r,we,[t.substring(i-1)]),d},q0=function(t){return de(this,Me,Zc).call(this,t,xM)},Zc=function(t,r=wM){if(!t||typeof t!="object"||t.type!==null||X(t,we).length!==1||this.type===null)return!1;const i=X(t,we)[0];return!i||typeof i!="object"||i.type===null?!1:de(this,Me,Ea).call(this,i.type,r)},Ea=function(t,r=SM){var i;return!!((i=r.get(this.type))!=null&&i.includes(t))},G0=function(t,r){const i=X(t,we)[0],s=new Dt(null,i,this.options);X(s,we).push(""),i.push(s),de(this,Me,Vc).call(this,t,r)},Vc=function(t,r){const i=X(t,we)[0];X(this,we).splice(r,1,...X(i,we));for(const s of X(i,we))typeof s=="object"&&He(s,Xe,this);He(this,kr,void 0)},Z0=function(t){const r=cv.get(this.type);return!!(r!=null&&r.has(t))},V0=function(t){if(!t||typeof t!="object"||t.type!==null||X(t,we).length!==1||this.type===null||X(this,we).length!==1)return!1;const r=X(t,we)[0];return!r||typeof r!="object"||r.type===null?!1:de(this,Me,Z0).call(this,r.type)},K0=function(t){const r=cv.get(this.type),i=X(t,we)[0],s=r==null?void 0:r.get(i.type);if(!s)return!1;He(this,we,X(i,we));for(const a of X(this,we))typeof a=="object"&&He(a,Xe,this);this.type=s,He(this,kr,void 0),He(this,Ri,!1)},_a=function(){var t,r;if(lv(this)){let i=0,s=!1;do{s=!0;for(let a=0;a<X(this,we).length;a++){const u=X(this,we)[a];typeof u=="object"&&(de(r=u,Me,_a).call(r),de(this,Me,Zc).call(this,u)?(s=!1,de(this,Me,Vc).call(this,u,a)):de(this,Me,q0).call(this,u)?(s=!1,de(this,Me,G0).call(this,u,a)):de(this,Me,V0).call(this,u)&&(s=!1,de(this,Me,K0).call(this,u)))}}while(!s&&++i<10)}else for(const i of X(this,we))typeof i=="object"&&de(t=i,Me,_a).call(t);He(this,kr,void 0)},Kc=function(t){return X(this,we).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,u]=r.toRegExpSource(t);return He(this,Qr,X(this,Qr)||u),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Y0=function(t,r,i=!1){let s=!1,a="",u=!1,l=!1;for(let f=0;f<t.length;f++){const p=t.charAt(f);if(s){s=!1,a+=(OM.has(p)?"\\":"")+p;continue}if(p==="*"){if(l)continue;l=!0,a+=i&&/^[*]+$/.test(t)?dv:fv,r=!0;continue}else l=!1;if(p==="\\"){f===t.length-1?a+="\\\\":s=!0;continue}if(p==="["){const[m,d,g,y]=yM(t,f);if(g){a+=m,u=u||d,f+=g-1,r=r||y;continue}}if(p==="?"){a+=Gf,r=!0;continue}a+=AM(p)}return[a,Co(t),!!r,u]},vt(ou,Tn);Dt=ou;const PM=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),xt=(e,t,r={})=>(Fa(t),!r.nocomment&&t.charAt(0)==="#"?!1:new su(t,r).match(e)),CM=/^\*+([^+@!?*[(]*)$/,kM=e=>t=>!t.startsWith(".")&&t.endsWith(e),IM=e=>t=>t.endsWith(e),$M=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),LM=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),MM=/^\*+\.\*+$/,DM=e=>!e.startsWith(".")&&e.includes("."),NM=e=>e!=="."&&e!==".."&&e.includes("."),FM=/^\.\*+$/,jM=e=>e!=="."&&e!==".."&&e.startsWith("."),zM=/^\*+$/,BM=e=>e.length!==0&&!e.startsWith("."),WM=e=>e.length!==0&&e!=="."&&e!=="..",HM=/^\?+([^+@!?*[(]*)?$/,UM=([e,t=""])=>{const r=X0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},qM=([e,t=""])=>{const r=J0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},GM=([e,t=""])=>{const r=J0([e]);return t?i=>r(i)&&i.endsWith(t):r},ZM=([e,t=""])=>{const r=X0([e]);return t?i=>r(i)&&i.endsWith(t):r},X0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},J0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Q0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",pv={win32:{sep:"\\"},posix:{sep:"/"}},VM=Q0==="win32"?pv.win32.sep:pv.posix.sep;xt.sep=VM;const Tt=Symbol("globstar **");xt.GLOBSTAR=Tt;const KM="[^/]",YM=KM+"*?",XM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",JM="(?:(?!(?:\\/|^)\\.).)*?",QM=(e,t={})=>r=>xt(r,e,t);xt.filter=QM;const or=(e,t={})=>Object.assign({},e,t),eD=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return xt;const t=xt;return Object.assign((i,s,a={})=>t(i,s,or(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,or(e,a))}static defaults(s){return t.defaults(or(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,u={}){super(s,a,or(e,u))}static fromGlob(s,a={}){return t.AST.fromGlob(s,or(e,a))}},unescape:(i,s={})=>t.unescape(i,or(e,s)),escape:(i,s={})=>t.escape(i,or(e,s)),filter:(i,s={})=>t.filter(i,or(e,s)),defaults:i=>t.defaults(or(e,i)),makeRe:(i,s={})=>t.makeRe(i,or(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,or(e,s)),match:(i,s,a={})=>t.match(i,s,or(e,a)),sep:t.sep,GLOBSTAR:Tt})};xt.defaults=eD;const eb=(e,t={})=>(Fa(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:cM(e,{max:t.braceExpandMax}));xt.braceExpand=eb;const tD=(e,t={})=>new su(e,t).makeRe();xt.makeRe=tD;const rD=(e,t,r={})=>{const i=new su(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};xt.match=rD;const hv=/[?*]|[+@!]\(.*?\)|\[|\]/,nD=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var Vt,tb,Yc,Si;class su{constructor(t,r={}){vt(this,Vt);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");Fa(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||Q0,this.isWindows=this.platform==="win32";const i="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((a,u,l)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=a[0]===""&&a[1]===""&&(a[2]==="?"||!hv.test(a[2]))&&!hv.test(a[3]),p=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(m=>this.parse(m))];if(p)return[a[0],...a.slice(1).map(m=>this.parse(m))]}return a.map(f=>this.parse(f))});if(this.debug(this.pattern,s),this.set=s.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const u=this.set[a];u[0]===""&&u[1]===""&&this.globParts[a][2]==="?"&&typeof u[3]=="string"&&/^[a-z]:$/i.test(u[3])&&(u[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(const i of t)for(let s=0;s<i.length;s++)i[s]==="**"&&(i[s]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let s=i;for(;r[s+1]==="**";)s++;s!==i&&r.splice(i,s-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,s)=>{const a=i[i.length-1];return s==="**"&&a==="**"?i:s===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(i.pop(),i):(i.push(s),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){const a=t[s];s===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const s=t[i-1];s&&s!=="."&&s!==".."&&s!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(s))&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let s=-1;for(;(s=i.indexOf("**",s+1))!==-1;){let u=s;for(;i[u+1]==="**";)u++;u>s&&i.splice(s+1,u-s);let l=i[s+1];const f=i[s+2],p=i[s+3];if(l!==".."||!f||f==="."||f===".."||!p||p==="."||p==="..")continue;r=!0,i.splice(s,1);const m=i.slice(0);m[s]="**",t.push(m),s--}if(!this.preserveMultipleSlashes){for(let u=1;u<i.length-1;u++){const l=i[u];u===1&&l===""&&i[0]===""||(l==="."||l==="")&&(r=!0,i.splice(u,1),u--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let a=0;for(;(a=i.indexOf("..",a+1))!==-1;){const u=i[a-1];if(u&&u!=="."&&u!==".."&&u!=="**"){r=!0;const f=a===1&&i[a+1]==="**"?["."]:[];i.splice(a-1,2,...f),i.length===0&&i.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const s=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(s){t[r]=[],t[i]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let s=0,a=0,u=[],l="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])u.push(l==="b"?r[a]:t[s]),s++,a++;else if(i&&t[s]==="**"&&r[a]===t[s+1])u.push(t[s]),s++;else if(i&&r[a]==="**"&&t[s]===r[a+1])u.push(r[a]),a++;else if(t[s]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(l==="b")return!1;l="a",u.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(l==="a")return!1;l="b",u.push(r[a]),s++,a++}else return!1;return t.length===r.length&&u}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){let s=0,a=0;if(this.isWindows){const l=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!l&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),p=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),m=!p&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),d=f?3:l?0:void 0,g=m?3:p?0:void 0;if(typeof d=="number"&&typeof g=="number"){const[y,x]=[t[d],r[g]];y.toLowerCase()===x.toLowerCase()&&(r[g]=y,a=g,s=d)}}const{optimizationLevel:u=1}=this.options;return u>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(Tt)?de(this,Vt,tb).call(this,t,r,i,s,a):de(this,Vt,Si).call(this,t,r,i,s,a)}braceExpand(){return eb(this.pattern,this.options)}parse(t){Fa(t);const r=this.options;if(t==="**")return Tt;if(t==="")return"";let i,s=null;(i=t.match(zM))?s=r.dot?WM:BM:(i=t.match(CM))?s=(r.nocase?r.dot?LM:$M:r.dot?IM:kM)(i[1]):(i=t.match(HM))?s=(r.nocase?r.dot?qM:UM:r.dot?GM:ZM)(i):(i=t.match(MM))?s=r.dot?NM:DM:(i=t.match(FM))&&(s=jM);const a=ou.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?YM:r.dot?XM:JM,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const p=f.map(d=>{if(d instanceof RegExp)for(const g of d.flags.split(""))s.add(g);return typeof d=="string"?nD(d):d===Tt?Tt:d._src});p.forEach((d,g)=>{const y=p[g+1],x=p[g-1];d!==Tt||x===Tt||(x===void 0?y!==void 0&&y!==Tt?p[g+1]="(?:\\/|"+i+"\\/)?"+y:p[g]=i:y===void 0?p[g-1]=x+"(?:\\/|\\/"+i+")?":y!==Tt&&(p[g-1]=x+"(?:\\/|\\/"+i+"\\/)"+y,p[g+1]=Tt))});const m=p.filter(d=>d!==Tt);if(this.partial&&m.length>=1){const d=[];for(let g=1;g<=m.length;g++)d.push(m.slice(0,g).join("/"));return"(?:"+d.join("|")+")"}return m.join("/")}).join("|");const[u,l]=t.length>1?["(?:",")"]:["",""];a="^"+u+a+l+"$",this.partial&&(a="^(?:\\/|"+u+a.slice(1,-1)+l+")$"),this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const a=this.set;this.debug(this.pattern,"set",a);let u=s[s.length-1];if(!u)for(let l=s.length-2;!u&&l>=0;l--)u=s[l];for(const l of a){let f=s;if(i.matchBase&&l.length===1&&(f=[u]),this.matchOne(f,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return xt.defaults(t).Minimatch}}Vt=new WeakSet,tb=function(t,r,i,s,a){const u=r.indexOf(Tt,a),l=r.lastIndexOf(Tt),[f,p,m]=i?[r.slice(a,u),r.slice(u+1),[]]:[r.slice(a,u),r.slice(u+1,l),r.slice(l+1)];if(f.length){const S=t.slice(s,s+f.length);if(!de(this,Vt,Si).call(this,S,f,i,0,0))return!1;s+=f.length,a+=f.length}let d=0;if(m.length){if(m.length+s>t.length)return!1;let S=t.length-m.length;if(de(this,Vt,Si).call(this,t,m,i,S,0))d=m.length;else{if(t[t.length-1]!==""||s+m.length===t.length||(S--,!de(this,Vt,Si).call(this,t,m,i,S,0)))return!1;d=m.length+1}}if(!p.length){let S=!!d;for(let E=s;E<t.length-d;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 y=g[0],x=0;const h=[0];for(const S of p)S===Tt?(h.push(x),y=[[],0],g.push(y)):(y[0].push(S),x++);let w=g.length-1;const v=t.length-d;for(const S of g)S[1]=v-(h[w--]+S[0].length);return!!de(this,Vt,Yc).call(this,t,g,s,0,i,0,!!d)},Yc=function(t,r,i,s,a,u,l){const f=r[s];if(!f){for(let d=i;d<t.length;d++){l=!0;const g=t[d];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1}return l}const[p,m]=f;for(;i<=m;){if(de(this,Vt,Si).call(this,t.slice(0,i+p.length),p,a,i,0)&&u<this.maxGlobstarRecursion){const y=de(this,Vt,Yc).call(this,t,r,i+p.length,s+1,a,u+1,l);if(y!==!1)return y}const g=t[i];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1;i++}return a||null},Si=function(t,r,i,s,a){let u,l,f,p;for(u=s,l=a,p=t.length,f=r.length;u<p&&l<f;u++,l++){this.debug("matchOne loop");let m=r[l],d=t[u];if(this.debug(r,m,d),m===!1||m===Tt)return!1;let g;if(typeof m=="string"?(g=d===m,this.debug("string match",m,d,g)):(g=m.test(d),this.debug("pattern match",m,d,g)),!g)return!1}if(u===p&&l===f)return!0;if(u===p)return i;if(l===f)return u===p-1&&t[u]==="";throw new Error("wtf?")};xt.AST=ou;xt.Minimatch=su;xt.escape=PM;xt.unescape=Co;var Zf=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Zf||{});const wr={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ke=(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))(ke||{}),Cn=(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))(Cn||{}),Vf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Vf||{});const Kf="roles.json",Yf="qodlyApp.json",rb="model.4DModel",Xf="HTTPHandlers.json",Jf="Shared/i18n.json",nb=[{pattern:Yf,editor:{key:"editors:settings"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:Kf,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:Xf,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:Jf,editor:{key:"editors:localization"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:rb,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 iD(e){const t=Qf(e);switch(t){case ke.SETTINGS:return{filename:"Settings",type:t};case ke.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case ke.ROLES:return{filename:"Roles & Privileges",type:t};case ke.LOCALIZATION:return{filename:"Localization",type:t};case ke.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function oD(e){const t=nb.find(({pattern:r})=>xt(e,r,{nocase:!0}));return t||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function Qf(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return ke.MODEL;case r==="WebForm":return ke.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===wr.METHODS):return ke.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===wr.CLASSES):return ke.CLASS;case e===Kf:return ke.ROLES;case e===Xf:return ke.HTTP_HANDLERS;case e===Yf:return ke.SETTINGS;case e===Jf:return ke.LOCALIZATION;default:return ke.TEXT}}function ib(e,t=!1){switch(e){case wr.REPORTS:case"report":return"QoDoc";case wr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case wr.CLASSES:case wr.METHODS:return t?"4qs":"4dm";default:return""}}function sD(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function aD(e,t,r){switch(t){case ke.MOBILEFORM:return`${e}.MForm`;case ke.WEBFORM:return`${e}.WebForm`;case ke.REPORT:return`${e}.QoDoc`;case ke.METHOD:case ke.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class ob{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 ed(){const e=new ob;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const uD="4DWS_PREFS",sb=Ie.curry((e,t,r)=>e&&Ie.get(r,e)===t),lD=Ie.curry((e,t,r)=>Ie.get(r,e)!==t),cD=Ie.curry((e,t)=>Ie.get(t,"id")!==e),fD=Ie.curry((e,t)=>Ie.get(t,"id")===e),dD=Ie.curry((e,t)=>Ie.get(t,"path")===e);function pD(e="id",t,r){return r.findIndex(sb(e,t))!==-1}function ab(e,t){return e==null?void 0:e.localeCompare(t,void 0,{numeric:!0})}function hD(){try{const e=localStorage.getItem(uD);return{...e?JSON.parse(e):{},"features.experimental.i18n":!0}}catch(e){console.error(e)}}function gD(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function td(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 ub(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function mD(e){return e.type==="object"}function lb(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function cb(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!ub(e)}function vD(e){return lb(e)||cb(e)}function yD(e){return e.applyTo==="dataStore"}function bD(e){return e.applyTo==="dataClass"}function wD(e){return e.applyTo==="entity"}function xD(e){return e.applyTo==="entityCollection"}function SD(e){return e.type==="entity"}function ED(e){return e.type==="entitysel"}function fb(e){return e.dataType==="array"}function db(e){return e.dataType==="object"}function pb(e){return e.type==="scalar"}function _D(e){return fb(e)||db(e)||pb(e)}const TD=e=>e!=null&&e.type==="entity",OD=e=>e.type==="entitysel",AD=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",RD=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",PD=e=>e.type==="scalar"&&e.dataType==="date",CD=(e,t)=>(e||"")===(t||"");function kD(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function ID(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const ko="Qodly",hb="Location",gb="UserLanguage",mb="Title",ja={[ko]:[{id:mb,dataType:"string",type:"scalar",namespace:ko,initialValue:""},{id:hb,dataType:"object",type:"scalar",namespace:ko,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:gb,dataType:"object",type:"scalar",namespace:ko,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 qo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(qo||{}),vb=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(vb||{}),rd=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(rd||{});const $D={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function LD(e){var a;let t={};try{const u=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(u)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:qo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:rd.table}},...i}}function yb(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[qo.capable,qo.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 MD(e,t,r=!1){const i=Ie.isString(t)?t:yb(t);if(!r&&bb(e))return e;const s=wb(e);return`//%attributes = ${i}\r
|
|
204
|
+
${s}`}function bb(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function wb(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const Xc=()=>On.uuid().replaceAll("-","").toUpperCase();function DD(e){var s,a;const t=new Map,r=new Map,i=new Map;return(s=e.singletons)==null||s.forEach(({methods:u=[],...l})=>{i.set(l.name,{...l,methods:u})}),(a=e.dataClasses)==null||a.forEach(({methods:u=[],...l})=>{const f={...l,methods:u};if(f.uuid||(f.uuid=Xc()),f.attributes){const p=["storage","relatedEntity"];f.attributes=f.attributes.map(m=>p.includes(m.kind)&&!m.uuid?{...m,uuid:Xc()}:m)}r.set(f.className,f),t.set(f.collectionName,f)}),{...e,methods:e.methods||[],dataClasses:Object.fromEntries(r.entries()),dataClassByCollectionName:Object.fromEntries(t.entries()),singletons:Object.fromEntries(i.entries())}}const ND=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var ze=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(ze||{}),Ke=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(Ke||{});const FD=[ze.DATASTORE,ze.DATACLASS,ze.ATTRIBUTE,ze.SINGLETON_METHOD,ze.SINGLETON,ze.METHOD,Ke.DS_METHOD,Ke.DATACLASS_METHOD,Ke.ENTITY_METHOD,Ke.ENTITY_SEL_METHOD],gv=e=>[Ke.DS_METHOD,Ke.ENTITY_METHOD,Ke.DATACLASS_METHOD].includes(e)?ze.METHOD:e,za="guest",nd=[{key:"read",label:"Read",canApplyTo:[ze.DATASTORE,ze.DATACLASS,ze.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[ze.DATASTORE,ze.DATACLASS,ze.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[ze.DATASTORE,ze.DATACLASS,ze.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[ze.DATASTORE,ze.DATACLASS,ze.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[ze.DATASTORE,ze.DATACLASS,ze.METHOD,Ke.DS_METHOD,Ke.DATACLASS_METHOD,Ke.ENTITY_METHOD,Ke.ENTITY_SEL_METHOD,ze.SINGLETON,ze.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[ze.METHOD,Ke.DS_METHOD,Ke.DATACLASS_METHOD,Ke.ENTITY_METHOD,Ke.ENTITY_SEL_METHOD,ze.SINGLETON_METHOD]}];function lr(e,...t){return Array.from(new Set([...e,...t]))}function xb(e){const t={},r=new Map;e.forEach(f=>{const p=f.id||On.generate();t[p]={...f,id:p,parents:[],includes:lr(f.includes||[]),resources:[]},r.set(f.privilege,p)}),Object.entries(t).forEach(([f,p])=>{const m=p.includes.map(d=>{const g=r.get(d);return g?(t[g].parents=lr(t[g].parents,g),g):""}).filter(Boolean);t[f]={...p,includes:m}});const i=Sb(t),s=new Set;function a(f){s.add(f.id),f.includes=f.includes.filter(p=>!s.has(p))}if(i.forEach(a),i.forEach(f=>f.parents=[]),i.forEach(f=>{f.includes.forEach(p=>t[p].parents.push(f.id))}),Object.values(t).find(({privilege:f})=>f===za))return t;const l=On.generate();return{[l]:{id:l,privilege:za,includes:[],parents:[],resources:[]},...t}}function Sb(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function au(e,t){const r=t[e];let i=[];return r&&r.parents.forEach(s=>{i=lr(i,...au(s,t),s)}),i}function Ba(e,t){const r=t[e];let i=[];return r&&r.includes.forEach(s=>{i=lr(i,...Ba(s,t),s)}),i}function jD(e,t){const r=t[e];if(!r)return[];const i=[e,...au(e,t),...r.includes];return Object.keys(t).filter(s=>!i.includes(s))}function zD(e,t){return t[e]?Object.keys(t).reduce((i,s)=>s===e?i:{...i,[s]:{...t[s],parents:t[s].parents.filter(a=>a!==e),includes:t[s].includes.filter(a=>a!==e)}},{}):t}function BD(e,t,r){const i=r[e],s=r[t];return!i||!s?r:{...r,[e]:{...r[e],includes:lr(i.includes,t)},[t]:{...r[t],parents:lr(s.parents,e)}}}function WD(e,t,r){const i=r[e],s=r[t];return!i||!s?r:{...r,[e]:{...r[e],includes:r[e].includes.filter(a=>a!==t)},[t]:{...r[t],parents:r[t].parents.filter(a=>a!==e)}}}function HD(e,t){nu(e),Object.entries(t).forEach(([,{privilege:i}])=>{if(e.toLowerCase()===i.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const r=On.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function UD(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:i,id:s}])=>{if(e.toLowerCase()===i.toLowerCase()&&t!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...r,[t]:{...r[t],privilege:e}}}function qD(e,t){return e.map(r=>rn(r,t))}function rn(e,t){return t[e]?t[e]:null}function Eb({applyTo:e,type:t,...r}){return Object.entries(r).reduce((i,[s,a])=>{const u=Ie.find(nd,["key",s]);return!u||!u.canApplyTo.includes(t)||(typeof a=="string"?a.split(","):a).forEach(f=>{i[f]=lr(i[f]||[],s)}),i},{})}const mv=(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 id(e){return{permissions:nd.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const i={name:t,from:[]};switch(e.type){case ze.DATASTORE:return{...i,info:mv(r,!0)};case ze.DATACLASS:return{...i,info:mv(r)};default:return i}}),resource:e.applyTo,type:e.type}}function _b(e,t){const r=Tb(t),i={};return e.filter(({type:s})=>FD.includes(s)).forEach(s=>{const a=Eb(s);Object.entries(a).forEach(([u,l])=>{var m;const f=(m=r[u])==null?void 0:m.id;if(!f)return;i[f]=i[f]||{...t[f]};let p=Ie.find(i[f].resources,{resource:s.applyTo,type:s.type});p||(p=id(s),i[f].resources.push(p)),p.permissions=p.permissions.map(d=>({...d,checked:d.checked||l.includes(d.name)}))})}),{...t,...i}}function Tb(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function GD(e){var r;if(!e)throw new Error("Invalid roles data");const t=xb(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:_b(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:i=On.generate(),role:s,privileges:a=[]})=>({id:i,role:s,privileges:lr(a).map(u=>{var l;return(l=Object.values(t).find(({privilege:f})=>f===u))==null?void 0:l.id}).filter(Boolean)})).reduce((i,s)=>({...i,[s.id]:{...s}}),{})}}function ZD(e){const t=Object.values(e.privileges).filter(({includes:i})=>i.length===0).map(({id:i})=>i),r=[...t,...t.map(i=>au(i,e.privileges).reverse())].flat().filter((i,s,a)=>a.indexOf(i)===s).map(i=>e.privileges[i]);return{forceLogin:e.forceLogin||!1,restrictedByDefault:e.restrictedByDefault||!1,permissions:{allowed:Object.values(e.privileges).reduce((i,s)=>(s.resources.forEach(({permissions:a,resource:u,type:l})=>{let f=Ie.find(i,{applyTo:u,type:gv(l)});f||(f={applyTo:u,type:gv(l)},i.push(f)),a.forEach(({name:p,checked:m})=>{m&&f&&(f[p]=f[p]||[],f[p].push(s.privilege))})}),i),[])},privileges:r.filter(({privilege:i})=>i!==za).map(({id:i,includes:s,privilege:a})=>({id:i,privilege:a,includes:s.map(u=>e.privileges[u].privilege)})),roles:Object.values(e.roles).map(i=>({...i,privileges:i.privileges.map(s=>{var a;return(a=e.privileges[s])==null?void 0:a.privilege}).filter(Boolean)}))}}function VD(e,t){const r=t[e],i={children:[],links:[],parents:[],selected:e};if(!r)return i;function s(l,f,p=[]){const m=l.reduce((d,g)=>[...d,...t[g][f]],[]);return m.length===0?p:(p.push(m),s(m,f,p))}function a(l){const f=[],p=[];for(let m=l.length-1;m>=0;m-=1){const d=l[m].filter(g=>f.includes(g)?!1:(f.push(g),!0));d.length>0&&p.unshift(lr(d))}return p}function u(l,f){const p=[];return l.reduce((m,d)=>(d.forEach(g=>{t[g][f==="parents"?"includes":"parents"].forEach(x=>{p.includes(x)&&m.push(f==="parents"?{source:g,target:x}:{source:x,target:g})}),p.push(g)}),m),[])}return i.children=s([e],"includes"),i.children=a(i.children),i.parents=s([e],"parents"),i.parents=a(i.parents),i.links=[...u([[e],...i.parents],"parents"),...u([[e],...i.children],"includes")],i}function KD(e,t,r){const i=rn(e,r);if(!i||Ie.find(i.resources,{resource:t.applyTo,type:t.type}))return r;const s={...i,resources:[...i.resources,id(t)]};return{...r,[e]:s}}function YD(e,t,r){const i=rn(e,r);if(!i)return r;const s={...i,resources:i.resources.filter(({resource:a,type:u})=>a!==t.applyTo||u!==t.type)};return{...r,[e]:s}}function XD(e,t){const r=Object.entries(e).map(([i,s])=>{const a=rn(i,t);if(!a)return{[i]:t[i]};const u={...a,resources:a.resources.filter(({resource:l,type:f})=>!s.some(p=>p.applyTo===l&&p.type===f))};return{[i]:u}}).reduce((i,s)=>({...i,...s}),{});return{...t,...r}}function JD(e,t){const r=rn(e,t);if(!r)return t;const i={...r,resources:r.resources.filter(s=>s.permissions.some(a=>a.from.length)).map(s=>({...s,permissions:s.permissions.map(a=>({...a,checked:!1}))}))};return{...t,[e]:i}}function QD(e,t,r,i){const s=rn(e,i);if(!s)return i;const u=Ie.find(s.resources,{type:t.type,resource:t.resource})?{...s,resources:s.resources.map(l=>l.type===t.type&&l.resource===t.resource?{...l,permissions:t.permissions.map(f=>f.name===r.name?{...f,checked:!f.checked,from:[]}:f)}:l)}:{...s,resources:[...s.resources,{...t,permissions:t.permissions.map(l=>({...l,checked:r.name===l.name,from:[]}))}]};return{...i,[e]:u}}function eN(e,t){var f;const r=Ob(e,t)||[],i=((f=rn(e,t))==null?void 0:f.resources)||[],u=([...r,...i].filter(({type:p})=>[Ke.DS_METHOD,Ke.DATACLASS_METHOD,Ke.ENTITY_METHOD,Ke.ENTITY_SEL_METHOD].includes(p))||[]).map(({resource:p})=>p);return Object.entries(t).reduce((p,[m,{resources:d}])=>(d.filter(({resource:g,type:y})=>[Ke.DS_METHOD,Ke.DATACLASS_METHOD,Ke.ENTITY_METHOD,Ke.ENTITY_SEL_METHOD].includes(y)&&u.includes(g)).forEach(({permissions:g,resource:y})=>{var h;((h=g.find(({name:w})=>w==="promote"))==null?void 0:h.checked)&&(p[y]=lr(p[y]||[],m))}),p),{})}function Ob(e,t){var u;const r=rn(e,t);if(!r)return[];const i=(u=Object.values(t).find(l=>l.privilege===za))==null?void 0:u.id;return(i&&i!==e?lr(Ba(e,t),i):Ba(e,t)).reduce((l,f)=>(t[f].resources.forEach(m=>{if(m.permissions.filter(({checked:y,name:x})=>y&&x!=="promote").length===0)return;const g=Ie.find(l,{type:m.type,resource:m.resource});if(!g){l.push({...m,permissions:m.permissions.map(y=>({...y,from:y.checked?[f]:[],checked:!1}))});return}g.permissions=g.permissions.map((y,x)=>{let{from:h=[]}=y;return m.permissions[x].checked&&!h.includes(f)&&(h=[...h,f]),{...y,from:h,checked:y.checked}})}),l),Ie.clone(r.resources.map(l=>({...l,permissions:l.permissions.map(({checked:f,...p})=>({...p,checked:!!f}))}))))}const tN=(e,t,r)=>{const i={id:e,role:t,privileges:[]};return{...r,[i.id]:i}},rN=(e,t)=>t[e]?Object.values(t).reduce((r,i)=>e===i.id||i.role===""?r:{...r,[i.id]:i},{}):t,nN=(e,t)=>{if(nu(e.role),Object.values(t).find(i=>i.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(t).reduce((i,s)=>e.id===s.id?{...i,[e.id]:e}:{...i,[s.id]:s},{})};function Ab(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 Rb(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function iN(e,t){const r=Ab(e);return Rb(r,t)}function oN(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}var Pb=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Pb||{}),Cb=(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))(Cb||{}),kb=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(kb||{}),od=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(od||{}),Ib=(e=>(e.GRID="grid",e.COMPACT="compact",e))(Ib||{}),$b=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))($b||{}),Lb=(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))(Lb||{});const sN={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"};var Mb=(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))(Mb||{});const Db={label:"Base",id:"root"},aN=["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"],uN=e=>e.id===Db.id,sd=(e,t,r="")=>t?e.type==="currentState"&&e.value===t?{...e,value:r}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(i=>sd(i,t,r))}:e:e;function lN(e,t){const{id:r,label:i}=t;return{...e,components:Object.entries(e.components||{}).reduce((s,[a,u])=>({...s,[a]:{...u,custom:Object.entries(u.custom).reduce((l,[f,p])=>f===`states:${r}`?l:{...l,[f]:p},{}),props:Object.entries(u.props).reduce((l,[f,p])=>{let m=p;return f==="events"&&(m=m.map(d=>{var g,y;return d.type==="simple-action"?{...d,state:{...d.state,states:(y=(g=d.state)==null?void 0:g.states)==null?void 0:y.filter(x=>x!==r)}}:d})),{...l,[f]:m}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(s=>(s==null?void 0:s.id)!==r).map(s=>s.conditions?{...s,conditions:sd(s.conditions,i)}:s)}}}const Nb=(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(i=>Nb(i,t,r))}}return e},Fb=(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(i=>Fb(i,t)).filter(Boolean);return r.length===1?{...r[0],id:e.id}:{...e,conditions:r}}return e},jb=e=>e.id?e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(jb)}:e:{...e,id:On.generate()};function cN(e,t={}){switch(e){case ke.WEBFORM:case ke.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"]===od.AIRY&&(r.components.ROOT.props.airyMode=!0),r}case ke.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 ke.METHOD:case ke.METHODS:return`//%attributes = {}
|
|
205
|
+
`;case ke.HTTP_HANDLERS:return[];case ke.LOCALIZATION:case ke.SETTINGS:return{};case ke.ROLES:return{permissions:{allowed:[]},privileges:[],roles:[]};default:return""}}function fN(e,t){return Ie.isEqual(e,t)}function dN(e,t){const{qodly:r=!0,withExtension:i=!0}=t||{},s=ib(e.type,r);let a="";switch(e.type){case ke.WEBFORM:a=`${wr.WEBFORMS}/${e.name}`;break;case ke.METHOD:a=`${wr.METHODS}/${e.name}`;break;case ke.CLASS:a=`${wr.CLASSES}/${e.name}`;break;default:return""}return`${a}${i?`.${s}`:""}`}function zb(...e){return(...t)=>{e.forEach(r=>r==null?void 0:r(...t))}}const pN=zb;function hN(e){return e?"":void 0}function gN(e,t){if(!e)return;const r=()=>{e.focus(t)};if(t!=null&&t.nextTick){requestAnimationFrame(r);return}r()}function mN(...e){return t=>{e.forEach(r=>{if(r){if(typeof r=="function"){r(t);return}r.current=t}})}}function vN({condition:e,message:t}){!e||process.env.NODE_ENV==="production"||console.warn(t)}const yN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function bN(e,t){return e.some(r=>String(r)===String(t))?e:[...e,t]}function wN(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"}function xN(e){e.preventDefault(),e.stopPropagation()}const lt="/rest/$designer",Qo="/rest/$designer-ext";function SN(...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 Jc 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 We(e,t){var s;Na.next({action:Uo.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const u=await r.json();((s=u==null?void 0:u.__ERROR)==null?void 0:s.some(f=>f.errCode===1651))&&Na.next({action:Uo.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Jc(e,r,u)}catch{a=new Jc(e,r)}throw a.log(),a}return await r.json()}function EN(e){return Na.next({action:Uo.REQUEST_SENT}),e}var Ar={},yt={},vv;function qn(){if(vv)return yt;vv=1;var e=yt.ValidationError=function(h,w,v,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(C,W){return C+l(W)},"instance")):S!==void 0&&(this.property=S),h&&(this.message=h),v){var T=v.$id||v.id;this.schema=T||v}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=yt.ValidatorResult=function(h,w,v,S){this.instance=h,this.schema=w,this.options=v,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=v&&v.throwError,this.throwFirst=v&&v.throwFirst,this.throwAll=v&&v.throwAll,this.disableFormat=v&&v.disableFormat===!0};t.prototype.addError=function(h){var w;if(typeof h=="string")w=new e(h,this.instance,this.schema,this.path);else{if(!h)throw new Error("Missing error detail");if(!h.message)throw new Error("Missing error message");if(!h.name)throw new Error("Missing validator type");w=new e(h.message,this.instance,this.schema,this.path,h.name,h.argument)}if(this.errors.push(w),this.throwFirst)throw new i(this);if(this.throwError)throw w;return w},t.prototype.importErrors=function(h){typeof h=="string"||h&&h.validatorType?this.addError(h):h&&h.errors&&(this.errors=this.errors.concat(h.errors))};function r(x,h){return h+": "+x.toString()+`
|
|
206
|
+
`}t.prototype.toString=function(h){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),yt.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=yt.SchemaError=function x(h,w){this.message=h,this.schema=w,Error.call(this,h),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=yt.SchemaContext=function(h,w,v,S,E){this.schema=h,this.options=w,Array.isArray(v)?(this.path=v,this.propertyPath=v.reduce(function(R,T){return R+l(T)},"instance")):this.propertyPath=v,this.base=S,this.schemas=E};a.prototype.resolve=function(h){return y(this.base,h)},a.prototype.makeChild=function(h,w){var v=w===void 0?this.path:this.path.concat([w]),S=h.$id||h.id;let E=y(this.base,S||"");var R=new a(h,this.options,v,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=h),R};var u=yt.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 h=!0;try{new RegExp(x)}catch{h=!1}return h},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};u.regexp=u.regex,u.pattern=u.regex,u.ipv4=u["ip-address"],yt.isFormat=function(h,w,v){if(typeof h=="string"&&u[w]!==void 0){if(u[w]instanceof RegExp)return u[w].test(h);if(typeof u[w]=="function")return u[w](h)}else if(v&&v.customFormats&&typeof v.customFormats[w]=="function")return v.customFormats[w](h);return!0};var l=yt.makeSuffix=function(h){return h=h.toString(),!h.match(/[.\s\[\]]/)&&!h.match(/^[\d]/)?"."+h:h.match(/^\d+$/)?"["+h+"]":"["+JSON.stringify(h)+"]"};yt.deepCompareStrict=function x(h,w){if(typeof h!=typeof w)return!1;if(Array.isArray(h))return!Array.isArray(w)||h.length!==w.length?!1:h.every(function(E,R){return x(h[R],w[R])});if(typeof h=="object"){if(!h||!w)return h===w;var v=Object.keys(h),S=Object.keys(w);return v.length!==S.length?!1:v.every(function(E){return x(h[E],w[E])})}return h===w};function f(x,h,w,v){typeof w=="object"?h[v]=d(x[v],w):x.indexOf(w)===-1&&h.push(w)}function p(x,h,w){h[w]=x[w]}function m(x,h,w,v){typeof h[v]!="object"||!h[v]?w[v]=h[v]:x[v]?w[v]=d(x[v],h[v]):w[v]=h[v]}function d(x,h){var w=Array.isArray(h),v=w&&[]||{};return w?(x=x||[],v=v.concat(x),h.forEach(f.bind(null,x,v))):(x&&typeof x=="object"&&Object.keys(x).forEach(p.bind(null,x,v)),Object.keys(h).forEach(m.bind(null,x,h,v))),v}yt.deepMerge=d,yt.objectGetPath=function(h,w){for(var v=w.split("/").slice(1),S;typeof(S=v.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in h))return;h=h[E]}return h};function g(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}yt.encodePath=function(h){return h.map(g).join("")},yt.getDecimalPlaces=function(h){var w=0;if(isNaN(h))return w;typeof h!="number"&&(h=Number(h));var v=h.toString().split("e");if(v.length===2){if(v[1][0]!=="-")return w;w=Number(v[1].slice(1))}var S=v[0].split(".");return S.length===2&&(w+=S[1].length),w},yt.isSchema=function(h){return typeof h=="object"&&h||typeof h=="boolean"};var y=yt.resolveUrl=function(h,w){const v=new URL(w,new URL(h,"resolve://"));if(v.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=v;return S+E+R}return v.toString()};return yt}var wc,yv;function _N(){if(yv)return wc;yv=1;var e=qn(),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(d,g,y,x){if(d===void 0)return null;var h=new t(d,g,y,x),w=Array.isArray(g.type)?g.type:[g.type];if(!w.some(this.testType.bind(this,d,g,y,x))){var v=w.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});h.addError({name:"type",argument:v,message:"is not of a type(s) "+v})}return h};function a(m,d,g,y,x){var h=d.throwError,w=d.throwAll;d.throwError=!1,d.throwAll=!1;var v=this.validateSchema(m,x,d,g);return d.throwError=h,d.throwAll=w,!v.valid&&y instanceof Function&&y(v),v.valid}s.anyOf=function(d,g,y,x){if(d===void 0)return null;var h=new t(d,g,y,x),w=new t(d,g,y,x);if(!Array.isArray(g.anyOf))throw new r("anyOf must be an array");if(!g.anyOf.some(a.bind(this,d,y,x,function(S){w.importErrors(S)}))){var v=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+"]"});y.nestedErrors&&h.importErrors(w),h.addError({name:"anyOf",argument:v,message:"is not any of "+v.join(",")})}return h},s.allOf=function(d,g,y,x){if(d===void 0)return null;if(!Array.isArray(g.allOf))throw new r("allOf must be an array");var h=new t(d,g,y,x),w=this;return g.allOf.forEach(function(v,S){var E=w.validateSchema(d,v,y,x);if(!E.valid){var R=v.$id||v.id,T=R||v.title&&JSON.stringify(v.title)||v.$ref&&"<"+v.$ref+">"||"[subschema "+S+"]";h.addError({name:"allOf",argument:{id:T,length:E.errors.length,valid:E},message:"does not match allOf schema "+T+" with "+E.errors.length+" error[s]:"}),h.importErrors(E)}}),h},s.oneOf=function(d,g,y,x){if(d===void 0)return null;if(!Array.isArray(g.oneOf))throw new r("oneOf must be an array");var h=new t(d,g,y,x),w=new t(d,g,y,x),v=g.oneOf.filter(a.bind(this,d,y,x,function(E){w.importErrors(E)})).length,S=g.oneOf.map(function(E,R){var T=E.$id||E.id;return T||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return v!==1&&(y.nestedErrors&&h.importErrors(w),h.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),h},s.if=function(d,g,y,x){if(d===void 0)return null;if(!e.isSchema(g.if))throw new Error('Expected "if" keyword to be a schema');var h=a.call(this,d,y,x,null,g.if),w=new t(d,g,y,x),v;if(h){if(g.then===void 0)return;if(!e.isSchema(g.then))throw new Error('Expected "then" keyword to be a schema');v=this.validateSchema(d,g.then,y,x.makeChild(g.then)),w.importErrors(v)}else{if(g.else===void 0)return;if(!e.isSchema(g.else))throw new Error('Expected "else" keyword to be a schema');v=this.validateSchema(d,g.else,y,x.makeChild(g.else)),w.importErrors(v)}return w};function u(m,d){if(Object.hasOwnProperty.call(m,d))return m[d];if(d in m){for(;m=Object.getPrototypeOf(m);)if(Object.propertyIsEnumerable.call(m,d))return m[d]}}s.propertyNames=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,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 v in d)if(u(d,v)!==void 0){var S=this.validateSchema(v,w,y,x.makeChild(w));h.importErrors(S)}return h}},s.properties=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,x),w=g.properties||{};for(var v in w){var S=w[v];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof y.preValidateProperty=="function"&&y.preValidateProperty(d,v,S,y,x);var E=u(d,v),R=this.validateSchema(E,S,y,x.makeChild(S,v));R.instance!==h.instance[v]&&(h.instance[v]=R.instance),h.importErrors(R)}}return h}};function l(m,d,g,y,x,h){if(this.types.object(m)&&!(d.properties&&d.properties[x]!==void 0))if(d.additionalProperties===!1)h.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=d.additionalProperties||{};typeof g.preValidateProperty=="function"&&g.preValidateProperty(m,x,w,g,y);var v=this.validateSchema(m[x],w,g,y.makeChild(w,x));v.instance!==h.instance[x]&&(h.instance[x]=v.instance),h.importErrors(v)}}s.patternProperties=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,x),w=g.patternProperties||{};for(var v in d){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 T=new RegExp(E,"u")}catch{T=new RegExp(E)}if(T.test(v)){S=!1,typeof y.preValidateProperty=="function"&&y.preValidateProperty(d,v,R,y,x);var C=this.validateSchema(d[v],R,y,x.makeChild(R,v));C.instance!==h.instance[v]&&(h.instance[v]=C.instance),h.importErrors(C)}}}S&&l.call(this,d,g,y,x,v,h)}return h}},s.additionalProperties=function(d,g,y,x){if(this.types.object(d)){if(g.patternProperties)return null;var h=new t(d,g,y,x);for(var w in d)l.call(this,d,g,y,x,w,h);return h}},s.minProperties=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,x),w=Object.keys(d);return w.length>=g.minProperties||h.addError({name:"minProperties",argument:g.minProperties,message:"does not meet minimum property length of "+g.minProperties}),h}},s.maxProperties=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,x),w=Object.keys(d);return w.length<=g.maxProperties||h.addError({name:"maxProperties",argument:g.maxProperties,message:"does not meet maximum property length of "+g.maxProperties}),h}},s.items=function(d,g,y,x){var h=this;if(this.types.array(d)&&g.items!==void 0){var w=new t(d,g,y,x);return d.every(function(v,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=h.validateSchema(v,E,y,x.makeChild(E,S));return R.instance!==w.instance[S]&&(w.instance[S]=R.instance),w.importErrors(R),!0}),w}},s.contains=function(d,g,y,x){var h=this;if(this.types.array(d)&&g.contains!==void 0){if(!e.isSchema(g.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(d,g,y,x),v=d.some(function(S,E){var R=h.validateSchema(S,g.contains,y,x.makeChild(g.contains,E));return R.errors.length===0});return v===!1&&w.addError({name:"contains",argument:g.contains,message:"must contain an item matching given schema"}),w}},s.minimum=function(d,g,y,x){if(this.types.number(d)){var h=new t(d,g,y,x);return g.exclusiveMinimum&&g.exclusiveMinimum===!0?d>g.minimum||h.addError({name:"minimum",argument:g.minimum,message:"must be greater than "+g.minimum}):d>=g.minimum||h.addError({name:"minimum",argument:g.minimum,message:"must be greater than or equal to "+g.minimum}),h}},s.maximum=function(d,g,y,x){if(this.types.number(d)){var h=new t(d,g,y,x);return g.exclusiveMaximum&&g.exclusiveMaximum===!0?d<g.maximum||h.addError({name:"maximum",argument:g.maximum,message:"must be less than "+g.maximum}):d<=g.maximum||h.addError({name:"maximum",argument:g.maximum,message:"must be less than or equal to "+g.maximum}),h}},s.exclusiveMinimum=function(d,g,y,x){if(typeof g.exclusiveMinimum!="boolean"&&this.types.number(d)){var h=new t(d,g,y,x),w=d>g.exclusiveMinimum;return w||h.addError({name:"exclusiveMinimum",argument:g.exclusiveMinimum,message:"must be strictly greater than "+g.exclusiveMinimum}),h}},s.exclusiveMaximum=function(d,g,y,x){if(typeof g.exclusiveMaximum!="boolean"&&this.types.number(d)){var h=new t(d,g,y,x),w=d<g.exclusiveMaximum;return w||h.addError({name:"exclusiveMaximum",argument:g.exclusiveMaximum,message:"must be strictly less than "+g.exclusiveMaximum}),h}};var f=function(d,g,y,x,h,w){if(this.types.number(d)){var v=g[h];if(v==0)throw new r(h+" cannot be zero");var S=new t(d,g,y,x),E=e.getDecimalPlaces(d),R=e.getDecimalPlaces(v),T=Math.max(E,R),C=Math.pow(10,T);return Math.round(d*C)%Math.round(v*C)!==0&&S.addError({name:h,argument:v,message:w+JSON.stringify(v)}),S}};s.multipleOf=function(d,g,y,x){return f.call(this,d,g,y,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(d,g,y,x){return f.call(this,d,g,y,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(d,g,y,x){var h=new t(d,g,y,x);return d===void 0&&g.required===!0?h.addError({name:"required",message:"is required"}):this.types.object(d)&&Array.isArray(g.required)&&g.required.forEach(function(w){u(d,w)===void 0&&h.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),h},s.pattern=function(d,g,y,x){if(this.types.string(d)){var h=new t(d,g,y,x),w=g.pattern;try{var v=new RegExp(w,"u")}catch{v=new RegExp(w)}return d.match(v)||h.addError({name:"pattern",argument:g.pattern,message:"does not match pattern "+JSON.stringify(g.pattern.toString())}),h}},s.format=function(d,g,y,x){if(d!==void 0){var h=new t(d,g,y,x);return!h.disableFormat&&!e.isFormat(d,g.format,this)&&h.addError({name:"format",argument:g.format,message:"does not conform to the "+JSON.stringify(g.format)+" format"}),h}},s.minLength=function(d,g,y,x){if(this.types.string(d)){var h=new t(d,g,y,x),w=d.match(/[\uDC00-\uDFFF]/g),v=d.length-(w?w.length:0);return v>=g.minLength||h.addError({name:"minLength",argument:g.minLength,message:"does not meet minimum length of "+g.minLength}),h}},s.maxLength=function(d,g,y,x){if(this.types.string(d)){var h=new t(d,g,y,x),w=d.match(/[\uDC00-\uDFFF]/g),v=d.length-(w?w.length:0);return v<=g.maxLength||h.addError({name:"maxLength",argument:g.maxLength,message:"does not meet maximum length of "+g.maxLength}),h}},s.minItems=function(d,g,y,x){if(this.types.array(d)){var h=new t(d,g,y,x);return d.length>=g.minItems||h.addError({name:"minItems",argument:g.minItems,message:"does not meet minimum length of "+g.minItems}),h}},s.maxItems=function(d,g,y,x){if(this.types.array(d)){var h=new t(d,g,y,x);return d.length<=g.maxItems||h.addError({name:"maxItems",argument:g.maxItems,message:"does not meet maximum length of "+g.maxItems}),h}};function p(m,d,g){var y,x=g.length;for(y=d+1,x;y<x;y++)if(e.deepCompareStrict(m,g[y]))return!1;return!0}return s.uniqueItems=function(d,g,y,x){if(g.uniqueItems===!0&&this.types.array(d)){var h=new t(d,g,y,x);return d.every(p)||h.addError({name:"uniqueItems",message:"contains duplicate item"}),h}},s.dependencies=function(d,g,y,x){if(this.types.object(d)){var h=new t(d,g,y,x);for(var w in g.dependencies)if(d[w]!==void 0){var v=g.dependencies[w],S=x.makeChild(v,w);if(typeof v=="string"&&(v=[v]),Array.isArray(v))v.forEach(function(R){d[R]===void 0&&h.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(d,v,y,S);h.instance!==E.instance&&(h.instance=E.instance),E&&E.errors.length&&(h.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),h.importErrors(E))}}return h}},s.enum=function(d,g,y,x){if(d===void 0)return null;if(!Array.isArray(g.enum))throw new r("enum expects an array",g);var h=new t(d,g,y,x);return g.enum.some(e.deepCompareStrict.bind(null,d))||h.addError({name:"enum",argument:g.enum,message:"is not one of enum values: "+g.enum.map(String).join(",")}),h},s.const=function(d,g,y,x){if(d===void 0)return null;var h=new t(d,g,y,x);return e.deepCompareStrict(g.const,d)||h.addError({name:"const",argument:g.const,message:"does not exactly match expected constant: "+g.const}),h},s.not=s.disallow=function(d,g,y,x){var h=this;if(d===void 0)return null;var w=new t(d,g,y,x),v=g.not||g.disallow;return v?(Array.isArray(v)||(v=[v]),v.forEach(function(S){if(h.testType(d,g,y,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},wc=i,wc}var da={},bv;function Qc(){if(bv)return da;bv=1;var e=qn();da.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return da.scan=function(i,s){function a(m,d){if(!d||typeof d!="object")return;if(d.$ref){let h=e.resolveUrl(m,d.$ref);p[h]=p[h]?p[h]+1:0;return}var g=d.$id||d.id;let y=e.resolveUrl(m,g);var x=g?y:m;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],d))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=d,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=d)}u(x+"/items",Array.isArray(d.items)?d.items:[d.items]),u(x+"/extends",Array.isArray(d.extends)?d.extends:[d.extends]),a(x+"/additionalItems",d.additionalItems),l(x+"/properties",d.properties),a(x+"/additionalProperties",d.additionalProperties),l(x+"/definitions",d.definitions),l(x+"/patternProperties",d.patternProperties),l(x+"/dependencies",d.dependencies),u(x+"/disallow",d.disallow),u(x+"/allOf",d.allOf),u(x+"/anyOf",d.anyOf),u(x+"/oneOf",d.oneOf),a(x+"/not",d.not)}function u(m,d){if(Array.isArray(d))for(var g=0;g<d.length;g++)a(m+"/"+g,d[g])}function l(m,d){if(!(!d||typeof d!="object"))for(var g in d)a(m+"/"+g,d[g])}var f={},p={};return a(i,s),new t(f,p)},da}var xc,wv;function TN(){if(wv)return xc;wv=1;var e=_N(),t=qn(),r=Qc().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,u=t.SchemaContext,l="/",f=function d(){this.customFormats=Object.create(d.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(m),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,y){var x=this;if(!g)return null;var h=r(y||l,g),w=y||g.$id||g.id;for(var v in h.id)this.schemas[v]=h.id[v];for(var v in h.ref)this.unresolvedRefs.push(v);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[w]},f.prototype.addSubSchemaArray=function(g,y){if(Array.isArray(y))for(var x=0;x<y.length;x++)this.addSubSchema(g,y[x])},f.prototype.addSubSchemaObject=function(g,y){if(!(!y||typeof y!="object"))for(var x in y)this.addSubSchema(g,y[x])},f.prototype.setSchemas=function(g){this.schemas=g},f.prototype.getSchema=function(g){return this.schemas[g]},f.prototype.validate=function(g,y,x,h){if(typeof y!="boolean"&&typeof y!="object"||y===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var w=y.$id||y.id;let v=t.resolveUrl(x.base,w||"");if(!h){h=new u(y,x,[],v,Object.create(this.schemas)),h.schemas[v]||(h.schemas[v]=y);var S=r(v,y);for(var E in S.id){var R=S.id[E];h.schemas[E]=R}}if(x.required&&g===void 0){var T=new i(g,y,x,h);return T.addError("is required, but is undefined"),T}var T=this.validateSchema(g,y,x,h);if(T){if(x.throwAll&&T.errors.length)throw new s(T)}else throw new Error("Result undefined");return T};function p(d){var g=typeof d=="string"?d:d.$ref;return typeof g=="string"?g:!1}f.prototype.validateSchema=function(g,y,x,h){var w=new i(g,y,x,h);if(typeof y=="boolean")y===!0?y={}:y===!1&&(y={type:[]});else if(!y)throw new Error("schema is undefined");if(y.extends)if(Array.isArray(y.extends)){var v={schema:y,ctx:h};y.extends.forEach(this.schemaTraverser.bind(this,v)),y=v.schema,v.schema=null,v.ctx=null,v=null}else y=t.deepMerge(y,this.superResolve(y.extends,h));var S=p(y);if(S){var E=this.resolve(y,S,h),R=new u(E.subschema,x,h.path,E.switchSchema,h.schemas);return this.validateSchema(g,E.subschema,x,R)}var T=x&&x.skipAttributes||[];for(var C in y)if(!e.ignoreProperties[C]&&T.indexOf(C)<0){var W=null,N=this.attributes[C];if(N)W=N.call(this,g,y,x,h);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+C,y);W&&w.importErrors(W)}if(typeof x.rewrite=="function"){var F=x.rewrite.call(this,g,y,x,h);w.instance=F}return w},f.prototype.schemaTraverser=function(g,y){g.schema=t.deepMerge(g.schema,this.superResolve(y,g.ctx))},f.prototype.superResolve=function(g,y){var x=p(g);return x?this.resolve(g,x,y).subschema:g},f.prototype.resolve=function(g,y,x){if(y=x.resolve(y),x.schemas[y])return{subschema:x.schemas[y],switchSchema:y};let w=new URL(y,"thismessage::/").hash;var v=w&&w.length&&y.substr(0,y.length-w.length);if(!v||!x.schemas[v])throw new a("no such schema <"+y+">",g);var S=t.objectGetPath(x.schemas[v],w.substr(1));if(S===void 0)throw new a("no such schema "+w+" located in <"+v+">",g);return{subschema:S,switchSchema:y}},f.prototype.testType=function(g,y,x,h,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 v=this.validateSchema(g,w,x,h);return v===void 0||!(v&&v.errors.length)}return!0}};var m=f.prototype.types={};return m.string=function(g){return typeof g=="string"},m.number=function(g){return typeof g=="number"&&isFinite(g)},m.integer=function(g){return typeof g=="number"&&g%1===0},m.boolean=function(g){return typeof g=="boolean"},m.array=function(g){return Array.isArray(g)},m.null=function(g){return g===null},m.date=function(g){return g instanceof Date},m.any=function(g){return!0},m.object=function(g){return g&&typeof g=="object"&&!Array.isArray(g)&&!(g instanceof Date)},xc=f,xc}var xv;function ON(){if(xv)return Ar;xv=1;var e=Ar.Validator=TN();return Ar.ValidatorResult=qn().ValidatorResult,Ar.ValidatorResultError=qn().ValidatorResultError,Ar.ValidationError=qn().ValidationError,Ar.SchemaError=qn().SchemaError,Ar.SchemaScanResult=Qc().SchemaScanResult,Ar.scan=Qc().scan,Ar.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},Ar}var AN=ON();const Go="/$shared",RN={"**/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 Bb(e){const t=Object.entries(RN).find(([r])=>xt(e,r));return t==null?void 0:t[1]}function uu(e){var i;const t=(i=Bb(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Go}/`,"Shared/");ad({name:r,content:t,asText:typeof t=="string"})}async function PN(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await We(`${Go}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){Wb(r)&&uu(`${Go}/${t}`)}}function es({path:e,createIfNotExists:t=!1}){const r=`${Go}/${e}`;return We(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=Bb(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 AN.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(Wb(i)&&t){const s=CN(i,e);Wf.next({message:s,kind:"warning"}),uu(r)}throw i})}function Wb(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 CN(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 kN(e){return We(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function IN(e){return We(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Hb=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Vf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function $N(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await We(lt,{method:"POST",body:JSON.stringify({verb:Cn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const u=`http://${e}:${s.webServerHTTPPort}`,l=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?i?l:u:s.webServerHTTPPort?u:l})();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),Hb()}}async function Ub(e){return await We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function LN(...e){return(await Promise.all(e.map(i=>Ub({root:i,verb:Cn.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:u})=>({name:s,type:u,date:a,path:`${u}/${s}`}))).flat()}function MN(e,t={}){const{sanitize:r=!0}=t;return We(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const s=new Map;return{...i,components:Ie.entries(i.components).map(([a,u])=>{const l=a,{resolvedName:f}=u.type;if(f==="WebformLoader"){const p=On.generate();s.set(a,p),a=p}return[a,u,l]}).reduce((a,[u,l,f])=>{var p;return l.nodes&&(l.nodes=l.nodes.map(m=>s.get(m)||m)),l.linkedNodes&&(l.linkedNodes=Ie.entries(l.linkedNodes).reduce((m,[d,g])=>({...m,[d]:s.get(g)||g}),{})),(p=l.props)!=null&&p.events&&(l.props.events=l.props.events.map(m=>(m.type==="navigation"&&m.loader&&(m.loader=s.get(m.loader)||m.loader),m))),{...a,[u]:{...l,props:{...l.props,__originalID:f}}}},{})}})}function DN(e){return We(lt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ke.METHOD,ke.CLASS].includes(t.type)?iu(t.content):t.content}))}function NN(e){return e.type==="folder"?We(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function FN(e){return e.type==="folder"?(await We(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function jN(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function zN(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function BN(e){return(await We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function WN(...e){return await We(lt,{method:"POST",body:JSON.stringify({verb:Cn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function HN(e){const t=await We("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function UN(){return await We("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function qN(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 GN({name:e,path:t="",root:r="root",asText:i=!1}){return We(lt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function ZN(e={}){try{return{...await es({path:"shared_datasources.json",...e}),...ja}}catch{return{...ja}}}async function VN(e={}){try{return await es({path:"shared_app_events.json",...e})}catch{return[]}}async function KN(e={}){try{return await es({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function YN(e={}){try{return await es({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function XN(){try{return await We("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function JN(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const QN=ed(),e2=async e=>{const t={verb:Cn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ie.omit(e,Ie.keys(ja))};return QN(()=>We(lt,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},t2=ed(),r2=async e=>{const t={verb:Cn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return t2(()=>We(lt,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},ad=async e=>{const t=await We(lt,{method:"POST",body:JSON.stringify({...e,verb:Cn.SET_FILE_CONTENT,root:Zf.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Qf(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},n2=async e=>await ad({name:"crafted_components.json",path:wr.WEBFORMS,content:e});function i2(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function o2(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function s2(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function a2(e){return We(lt,{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)?iu(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&&uu(e.path),t})}function u2(e){return We(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function l2(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function c2(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 f2(e){const t=l2(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),u=s.split(":")[1].trim();return{name:a,type:u}}),r=c2(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function d2(e,t){const i=e.split(".").pop();try{const s=await We(lt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});s.content=iu(s.content);const{params:a,result:u}=f2(s.parameters);return{...s,params:a,returns:u}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var qb=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(qb||{});function p2(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function h2(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}const g2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},m2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}},Gb=M.createContext(void 0),v2=M.memo(({children:e,isInsideStudio:t,isStandaloneEditor:r})=>{const i=M.useMemo(()=>({isInsideStudio:t,isStandaloneEditor:r}),[t,r]);return I.jsx(Gb.Provider,{value:i,children:e})});function y2(){const e=M.useContext(Gb);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}const Zb=M.createContext(null),b2=5e3,w2={top:"top-4",bottom:"bottom-4"};function x2({children:e}){const[t,r]=M.useState([]),i=M.useRef(0),s=M.useCallback(l=>{r(f=>f.filter(p=>p.id!==l))},[]),a=M.useCallback((l,f)=>{const p=++i.current,m={id:p,containerStyle:f==null?void 0:f.containerStyle,duration:l.duration??b2,position:l.position??"bottom",render:l.render};return r(d=>[...d,m]),p},[]);M.useEffect(()=>{const l=Wf.subscribe(f=>{a({position:"bottom",render:({onClose:p})=>I.jsx(Gv,{...f,onClose:p})})});return()=>{l.unsubscribe()}},[a]);const u=M.useMemo(()=>({pushToast:a,removeToast:s}),[a,s]);return I.jsxs(Zb.Provider,{value:u,children:[e,typeof document<"u"?Qn.createPortal(I.jsx(I.Fragment,{children:["top","bottom"].map(l=>{const f=t.filter(p=>p.position===l);return f.length===0?null:I.jsx("div",{className:`pointer-events-none fixed inset-x-4 z-[2147483647] flex flex-col items-center gap-3 ${w2[l]}`,children:f.map(p=>I.jsx(S2,{toast:p,onClose:()=>s(p.id)},p.id))},l)})}),document.body):null]})}function S2({toast:e,onClose:t}){return M.useEffect(()=>{if(e.duration===null)return;const r=window.setTimeout(t,e.duration);return()=>window.clearTimeout(r)},[t,e.duration]),I.jsx("div",{className:"pointer-events-auto",style:e.containerStyle,children:e.render({onClose:t})})}function E2(e){const t=M.useContext(Zb);if(!t)throw new Error("useToast must be used within a ToastProvider");return M.useCallback(r=>t.pushToast(r,e),[t,e])}exports.API_PREFIX=lt;exports.AppLoader=i$;exports.BaseCheckboxIcon=m0;exports.Checkbox=P$;exports.ControlledSwitch=Vy;exports.DATASOURCE_THEMES=g2;exports.DatasourcesActions=L0;exports.DebuggerActions=N0;exports.DefaultCheckboxIcon=v0;exports.DesignerRequestVerb=Cn;exports.Dialog=jA;exports.DialogBody=Dv;exports.EActivity=qb;exports.ECustomStylePropsViewMode=Ib;exports.EDITOR=m2;exports.EDisplayMode=od;exports.EIDENTIFIERS=Lb;exports.EPermissionType=ze;exports.ERROR_CODES=Mb;exports.ESetting=Cb;exports.ESubPermissionType=Ke;exports.ETooltipBehavior=kb;exports.EWebFormStyleClassScope=Pb;exports.EXT_API_PREFIX=Qo;exports.FileFolderType=ke;exports.FloatingTooltip=T$;exports.FolderRootPath=wr;exports.FolderRootType=Zf;exports.Grid=$$;exports.GridItem=L$;exports.HTTPError=Jc;exports.HTTP_HANDLERS_TAB_PATH=Xf;exports.IPreemptive=qo;exports.IPublished=vb;exports.IPublishedRestScope=rd;exports.IdentityProvider=eL;exports.Image=y0;exports.Incase=va;exports.IndentLines=Xv;exports.InvalidJsonError=I$;exports.LOCALIZATION_TAB_PATH=Jf;exports.LOCATION_DATASOURCE_ID=hb;exports.LogoSVG=l0;exports.LspActions=D0;exports.MAX_FILE_NAME_LENGTH=Hf;exports.MODEL_TAB_PATH=rb;exports.Modal=u$;exports.ModalCloseReason=Ei;exports.ModalColor=Vn;exports.ModalIcons=Fc;exports.ModalType=$f;exports.Mutex=ob;exports.NameError=Uf;exports.Overlay=Mv;exports.PANEL_COLLAPSED_HEIGHT=Pr;exports.PANEL_INITIAL_OPEN_RATIO=p0;exports.PANEL_MAX_RATIO=h0;exports.PERMISSIONS=nd;exports.Panel=R$;exports.PopperTooltip=u0;exports.Portal=_v;exports.PublishOptions=$D;exports.QODLY_NAMESPACE=ko;exports.ROLES_TAB_PATH=Kf;exports.ROOT_WEBFORM_STATE=Db;exports.RemoteDebuggerMode=Vf;exports.SETTINGS_TAB_PATH=Yf;exports.SHARED_API_PREFIX=Go;exports.SHARED_USER_NAMESPACE=ja;exports.SearchInput=k$;exports.SimpleGrid=M$;exports.SourceCodeDescriptor=$b;exports.StudioContextProvider=v2;exports.Switcher=Jv;exports.THEME_CLASSES=aN;exports.TITLE_DATASOURCE_ID=mb;exports.TabEventsActions=M0;exports.Tip=Dy;exports.TipsProvider=fk;exports.Toast=Gv;exports.ToastProvider=x2;exports.ToolbarIcon=C$;exports.Tooltip=r$;exports.Tree=lP;exports.TreeIcon=Zv;exports.TreeNode=ff;exports.USER_LANGUAGE_DATASOURCE_ID=gb;exports.WT_FLAGS_KEYS=sN;exports.WebformActions=$0;exports.WebformEventsActions=Uo;exports.ZoomComponent=f$;exports.ZoomLevel=f0;exports._isArrayDatasource=AD;exports._isObjectDatasource=RD;exports.actionsToPrivs=Eb;exports.addAttributesToContent=MD;exports.addFolder=jN;exports.addItem=bN;exports.addPermission=KD;exports.addPrivilegeIn=BD;exports.allowed=jD;exports.by=sb;exports.byId=fD;exports.byPath=dD;exports.callAll=zb;exports.callAllHandlers=pN;exports.callServerSideParser=EN;exports.checkUpdates=kN;exports.children=Ba;exports.createFolder=i2;exports.createPrivilege=HD;exports.createRole=tN;exports.dataAttr=hN;exports.datasourcesSubject=zL;exports.debuggerSubject=UL;exports.deepDeleteCondition=Fb;exports.deepSanitizeCondition=jb;exports.dropFile=FN;exports.dropFolder=BN;exports.editors=nb;exports.exists=pD;exports.extractWebformName=sD;exports.filterBySeriousError=Rb;exports.focus=gN;exports.formatErrorsAsBulletToast=oN;exports.generateUUID=Xc;exports.getAppSettings=$N;exports.getCashedPrefrences=hD;exports.getCatalog=UN;exports.getDatasourceId=gD;exports.getDefaultAppSettings=Hb;exports.getDefaultContent=cN;exports.getDictByName=Tb;exports.getDisplayableFeedbackErrors=iN;exports.getEditors=oD;exports.getErrorListFromPayload=Ab;exports.getFile=DN;exports.getFileContent=GN;exports.getFileExtentionFromType=ib;exports.getFilePath=dN;exports.getFilenameAndTypeFromPath=iD;exports.getFilenameFromType=aD;exports.getFilesInfo=WN;exports.getFolder=Ub;exports.getFolders=LN;exports.getFunctionContent=d2;exports.getGraphData=VD;exports.getInheritedResources=Ob;exports.getMonacoTheme=JN;exports.getNodeInfo=a2;exports.getPrivilegeById=rn;exports.getPromotions=eN;exports.getResourceFromType=id;exports.getSavedConditions=YN;exports.getSharedAppEvents=VN;exports.getSharedCSS=KN;exports.getSharedDatasources=ZN;exports.getSharedResource=es;exports.getSupportedLanguages=qN;exports.getTypeFromExtension=Qf;exports.getUserPrivileges=XN;exports.getWebForm=MN;exports.hasAttributesString=bb;exports.http=We;exports.i18nSubject=GL;exports.initializeDefaultProjectFiles=PN;exports.installUpdates=IN;exports.isArrayDatasource=fb;exports.isBaseState=uN;exports.isDataClassMethod=bD;exports.isDataStoreMethod=yD;exports.isDateDatasource=PD;exports.isEntity=TD;exports.isEntityDatasource=SD;exports.isEntityMethod=wD;exports.isEntitySelection=OD;exports.isEntitySelectionDatasource=ED;exports.isEntitySelectionMethod=xD;exports.isInputEvent=wN;exports.isObjectAttribute=mD;exports.isObjectDatasource=db;exports.isRelatedAttribute=vD;exports.isRelatedEntitiesAttribute=lb;exports.isRelatedEntityAttribute=cb;exports.isSameNamespace=CD;exports.isScalarDatasource=pb;exports.isSimpleAttribute=ub;exports.isSimpleDatasource=_D;exports.loadDS=kD;exports.loadI18n=ID;exports.localeCompare=ab;exports.log=p2;exports.login=HN;exports.lspSubject=HL;exports.mergeRefs=mN;exports.moveItem=s2;exports.outBy=lD;exports.outById=cD;exports.parents=au;exports.parseAttributes=LD;exports.parseCatalog=DD;exports.populateShallow=qD;exports.queue=ed;exports.refactorConditions=sd;exports.refactorWebform=lN;exports.removeAttributesString=wb;exports.removeItem=o2;exports.removeMultiplePermissions=XD;exports.removePermission=YD;exports.removePrivilege=zD;exports.removePrivilegeFrom=WD;exports.removeRole=rN;exports.renameFile=NN;exports.renameFolder=zN;exports.renamePrivilege=UD;exports.resetResources=JD;exports.rolesToAPI=ZD;exports.sanitizeContent=iu;exports.sanitizeNameCY=ND;exports.sanitizePermissions=_b;exports.sanitizePrivileges=xb;exports.sanitizeRoles=GD;exports.saveContent=u2;exports.saveRole=nN;exports.selectorEqualityFn=fN;exports.setCraftedComponents=n2;exports.setFileContent=ad;exports.setSharedAppEvents=r2;exports.setSharedSources=e2;exports.sortPrivileges=Sb;exports.splitDatasourceID=td;exports.stopEvent=xN;exports.stringifyAttributes=yb;exports.tabEventsSubject=WL;exports.tasksManagerSubject=qL;exports.toastSubject=Wf;exports.togglePermission=QD;exports.trackEvent=h2;exports.transformDates=SN;exports.tryCreateSharedResource=uu;exports.uniquePush=lr;exports.updateDsCondition=Nb;exports.useBoolean=SL;exports.useCallbackRef=EL;exports.useControllableProp=R0;exports.useControllableState=_L;exports.useDidMountEffect=D$;exports.useDoubleClick=iL;exports.useDsChangeRenderer=xL;exports.useDsRendererAdapter=wL;exports.useEnhancedState=bL;exports.useFeatureFlags=Q$;exports.useFormControlProps=AL;exports.useForwardedRef=J$;exports.useHotkeys=V$;exports.useIdentity=tL;exports.useOutsideClick=K$;exports.usePrevious=Y$;exports.useSafeLayoutEffect=TL;exports.useStateObject=rL;exports.useStateRef=X$;exports.useStudioContext=y2;exports.useTip=My;exports.useToast=E2;exports.useUpdateEffect=OL;exports.validateName=nu;exports.validateServerSide=ZL;exports.validateValue=VL;exports.visuallyHiddenStyle=yN;exports.warn=vN;exports.webformEventsSubject=Na;exports.webformSubject=BL;
|
|
206
207
|
//# sourceMappingURL=index.cjs.js.map
|